diff options
author | AlexSm <alex@ydb.tech> | 2024-11-21 12:10:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 11:10:38 +0000 |
commit | f5d673a0ae2a0d131a2169bc5db666e1d906dc4a (patch) | |
tree | 28cfcecb463d1d3ac32b9e073feaf6fc58e0ed64 | |
parent | 45513a5b190a63e4fd2e6482f39c8f6ba324a7e1 (diff) | |
download | ydb-f5d673a0ae2a0d131a2169bc5db666e1d906dc4a.tar.gz |
build: refresh Embedded UI (v6.36.1) (#11833)
Co-authored-by: Raubzeug <Raubzeug@users.noreply.github.com>
57 files changed, 89 insertions, 89 deletions
diff --git a/ydb/core/viewer/monitoring/asset-manifest.json b/ydb/core/viewer/monitoring/asset-manifest.json index 512b10e609..eeec3ffb7c 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.cc9be0a9.css", - "main.js": "./static/js/main.2e9a830c.js", + "main.css": "./static/css/main.26df18be.css", + "main.js": "./static/js/main.29d0e3af.js", "static/js/4226.b1a9f9a0.chunk.js": "./static/js/4226.b1a9f9a0.chunk.js", "static/js/6595.bc7ea867.chunk.js": "./static/js/6595.bc7ea867.chunk.js", "static/js/2503.69406a9c.chunk.js": "./static/js/2503.69406a9c.chunk.js", @@ -151,26 +151,26 @@ "static/js/4657.375c590c.chunk.js": "./static/js/4657.375c590c.chunk.js", "static/js/2780.482ff693.chunk.js": "./static/js/2780.482ff693.chunk.js", "static/js/8645.597fca49.chunk.js": "./static/js/8645.597fca49.chunk.js", - "static/css/2740.5d10d58b.chunk.css": "./static/css/2740.5d10d58b.chunk.css", - "static/js/2740.a9c16626.chunk.js": "./static/js/2740.a9c16626.chunk.js", - "static/css/949.8587e62b.chunk.css": "./static/css/949.8587e62b.chunk.css", - "static/js/949.6da34892.chunk.js": "./static/js/949.6da34892.chunk.js", - "static/css/3556.7f1e27c2.chunk.css": "./static/css/3556.7f1e27c2.chunk.css", - "static/js/3556.12b7e853.chunk.js": "./static/js/3556.12b7e853.chunk.js", - "static/css/7641.5846cd46.chunk.css": "./static/css/7641.5846cd46.chunk.css", - "static/js/7641.f4b4d38a.chunk.js": "./static/js/7641.f4b4d38a.chunk.js", - "static/css/6703.b2a0c589.chunk.css": "./static/css/6703.b2a0c589.chunk.css", - "static/js/6703.8678859a.chunk.js": "./static/js/6703.8678859a.chunk.js", + "static/css/6894.dec87f60.chunk.css": "./static/css/6894.dec87f60.chunk.css", + "static/js/6894.46e65325.chunk.js": "./static/js/6894.46e65325.chunk.js", + "static/css/3933.5f7354e1.chunk.css": "./static/css/3933.5f7354e1.chunk.css", + "static/js/3933.1914913e.chunk.js": "./static/js/3933.1914913e.chunk.js", + "static/css/5879.555349bb.chunk.css": "./static/css/5879.555349bb.chunk.css", + "static/js/5879.abdba9dc.chunk.js": "./static/js/5879.abdba9dc.chunk.js", + "static/css/2881.afcb07f6.chunk.css": "./static/css/2881.afcb07f6.chunk.css", + "static/js/2881.44a91214.chunk.js": "./static/js/2881.44a91214.chunk.js", + "static/css/4135.f4bca932.chunk.css": "./static/css/4135.f4bca932.chunk.css", + "static/js/4135.066e893b.chunk.js": "./static/js/4135.066e893b.chunk.js", "static/css/6395.f2109564.chunk.css": "./static/css/6395.f2109564.chunk.css", - "static/js/6395.9408fa97.chunk.js": "./static/js/6395.9408fa97.chunk.js", - "static/css/7054.948a6e7b.chunk.css": "./static/css/7054.948a6e7b.chunk.css", - "static/js/7054.89f72d9d.chunk.js": "./static/js/7054.89f72d9d.chunk.js", - "static/css/1276.dace99fe.chunk.css": "./static/css/1276.dace99fe.chunk.css", - "static/js/1276.0132c95a.chunk.js": "./static/js/1276.0132c95a.chunk.js", + "static/js/6395.c9121a28.chunk.js": "./static/js/6395.c9121a28.chunk.js", + "static/css/7054.c5c1bf09.chunk.css": "./static/css/7054.c5c1bf09.chunk.css", + "static/js/7054.356e5176.chunk.js": "./static/js/7054.356e5176.chunk.js", + "static/css/1276.4de79a91.chunk.css": "./static/css/1276.4de79a91.chunk.css", + "static/js/1276.bc76b58b.chunk.js": "./static/js/1276.bc76b58b.chunk.js", "static/css/6866.2c643863.chunk.css": "./static/css/6866.2c643863.chunk.css", "static/js/6866.de45efb9.chunk.js": "./static/js/6866.de45efb9.chunk.js", "static/js/1072.13801473.chunk.js": "./static/js/1072.13801473.chunk.js", - "static/js/633.220bc737.chunk.js": "./static/js/633.220bc737.chunk.js", + "static/js/633.e316425c.chunk.js": "./static/js/633.e316425c.chunk.js", "static/css/5118.a86ede1f.chunk.css": "./static/css/5118.a86ede1f.chunk.css", "static/js/4609.4537e278.chunk.js": "./static/js/4609.4537e278.chunk.js", "static/js/9530.f9b76944.chunk.js": "./static/js/9530.f9b76944.chunk.js", @@ -259,20 +259,20 @@ "static/js/3828.d46cab67.chunk.js": "./static/js/3828.d46cab67.chunk.js", "static/js/2598.ca5e9f76.chunk.js": "./static/js/2598.ca5e9f76.chunk.js", "static/js/856.fd02cec2.chunk.js": "./static/js/856.fd02cec2.chunk.js", - "static/js/165.a31f2a03.chunk.js": "./static/js/165.a31f2a03.chunk.js", + "static/js/2840.9c4aae7d.chunk.js": "./static/js/2840.9c4aae7d.chunk.js", "static/css/328.86929762.chunk.css": "./static/css/328.86929762.chunk.css", "static/js/328.a089accc.chunk.js": "./static/js/328.a089accc.chunk.js", "static/js/7812.f9c2eea9.chunk.js": "./static/js/7812.f9c2eea9.chunk.js", "static/js/9687.f3eeaa60.chunk.js": "./static/js/9687.f3eeaa60.chunk.js", - "static/js/8337.5c096a37.chunk.js": "./static/js/8337.5c096a37.chunk.js", - "static/css/8918.3fe0ca8d.chunk.css": "./static/css/8918.3fe0ca8d.chunk.css", - "static/js/8918.4e9353d7.chunk.js": "./static/js/8918.4e9353d7.chunk.js", - "static/js/6906.a88e05fd.chunk.js": "./static/js/6906.a88e05fd.chunk.js", + "static/js/433.81528b91.chunk.js": "./static/js/433.81528b91.chunk.js", + "static/css/1198.3fe0ca8d.chunk.css": "./static/css/1198.3fe0ca8d.chunk.css", + "static/js/1198.40c55cbb.chunk.js": "./static/js/1198.40c55cbb.chunk.js", + "static/js/3062.5a010e35.chunk.js": "./static/js/3062.5a010e35.chunk.js", "static/js/5130.8076069a.chunk.js": "./static/js/5130.8076069a.chunk.js", - "static/css/7474.21806beb.chunk.css": "./static/css/7474.21806beb.chunk.css", - "static/js/7474.a87e4163.chunk.js": "./static/js/7474.a87e4163.chunk.js", - "static/js/896.420e70ab.chunk.js": "./static/js/896.420e70ab.chunk.js", - "static/js/2136.b0ce42ab.chunk.js": "./static/js/2136.b0ce42ab.chunk.js", + "static/css/3017.3afd70ce.chunk.css": "./static/css/3017.3afd70ce.chunk.css", + "static/js/3017.cd53b447.chunk.js": "./static/js/3017.cd53b447.chunk.js", + "static/js/896.178c5b16.chunk.js": "./static/js/896.178c5b16.chunk.js", + "static/js/5986.f8e39c8a.chunk.js": "./static/js/5986.f8e39c8a.chunk.js", "ts.worker.js": "./ts.worker.js", "css.worker.js": "./css.worker.js", "html.worker.js": "./html.worker.js", @@ -285,7 +285,7 @@ "index.html": "./index.html" }, "entrypoints": [ - "static/css/main.cc9be0a9.css", - "static/js/main.2e9a830c.js" + "static/css/main.26df18be.css", + "static/js/main.29d0e3af.js" ] }
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/index.html b/ydb/core/viewer/monitoring/index.html index ce867ee5a5..42d851c44e 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.2e9a830c.js"></script><link href="./static/css/main.cc9be0a9.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.29d0e3af.js"></script><link href="./static/css/main.26df18be.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/8918.3fe0ca8d.chunk.css b/ydb/core/viewer/monitoring/static/css/1198.3fe0ca8d.chunk.css index f313c9cc19..f313c9cc19 100644 --- a/ydb/core/viewer/monitoring/static/css/8918.3fe0ca8d.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/1198.3fe0ca8d.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/1276.4de79a91.chunk.css b/ydb/core/viewer/monitoring/static/css/1276.4de79a91.chunk.css new file mode 100644 index 0000000000..833e082026 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/1276.4de79a91.chunk.css @@ -0,0 +1 @@ +.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.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:150px;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}.kv-user{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.kv-user,.kv-user__name{display:inline-block}.kv-user__name:first-letter{color:var(--g-color-text-danger)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.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(--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(--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(--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(--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}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.clusters{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:auto;padding-top:15px}.clusters__autorefresh{margin-left:auto}.clusters__cluster{align-items:center;display:flex}.clusters__cluster-status{border-radius:3px;height:18px;margin-right:8px;width:18px}.clusters__cluster-status span{align-items:center;display:flex}.clusters__cluster-status_type_green{background-color:var(--ydb-color-status-green)}.clusters__cluster-status_type_yellow{background-color:var(--ydb-color-status-yellow)}.clusters__cluster-status_type_blue{background-color:var(--ydb-color-status-blue)}.clusters__cluster-status_type_red{background:var(--ydb-color-status-red)}.clusters__cluster-status_type_grey{background:var(--ydb-color-status-grey)}.clusters__cluster-status_type_orange{background:var(--ydb-color-status-orange)}.clusters__cluster-name{color:var(--g-color-text-link);text-decoration:none;white-space:normal}.clusters__cluster-versions{text-decoration:none}.clusters__cluster-version{overflow:hidden;text-overflow:ellipsis}.clusters__cluster-dc{white-space:normal}.clusters__controls{display:flex;margin-bottom:20px}.clusters__control{margin-right:15px;width:200px}.clusters__control_wide{width:300px}.clusters__empty-cell{color:var(--g-color-text-secondary)}.clusters__tooltip-content{word-break:break-all}.clusters .g-progress__item{transition:none}.clusters__aggregation,.clusters__controls{margin-left:15px;margin-right:15px}.clusters__aggregation{align-items:center;background:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);border-radius:10px;display:flex;height:46px;margin-bottom:20px;padding:10px 20px;width:max-content}.clusters__aggregation-value-container{align-items:center;display:flex;font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);max-width:230px}.clusters__aggregation-value-container:not(:last-child){margin-right:30px}.clusters__aggregation-label{color:var(--g-color-text-complementary);font-weight:200;margin-right:8px}.clusters__text{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.clusters__text:first-letter{color:var(--g-color-text-danger)}.clusters__description{max-width:200px;white-space:pre-wrap}.clusters__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;padding-left:5px}.clusters__table-content{height:100%;overflow:auto}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__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}.clusters__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.clusters__table .data-table__head-row:first-child .data-table__th:nth-child(0),.clusters__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{box-shadow:unset}.clusters__balancer-cell{align-items:center;display:flex;flex-direction:row}.clusters__balancer-text{display:inline-block;margin-right:5px;max-width:92%;overflow:hidden;overflow-wrap:break-word!important;text-overflow:ellipsis}.clusters__balancer-icon{align-items:center;display:flex}.clusters__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-left:15px}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/1276.dace99fe.chunk.css b/ydb/core/viewer/monitoring/static/css/1276.dace99fe.chunk.css deleted file mode 100644 index c6bc6e1f48..0000000000 --- a/ydb/core/viewer/monitoring/static/css/1276.dace99fe.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.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:150px;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}.kv-user{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.kv-user,.kv-user__name{display:inline-block}.kv-user__name:first-letter{color:var(--g-color-text-danger)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.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(--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(--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(--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(--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}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.clusters{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:auto;padding-top:15px}.clusters__cluster{align-items:center;display:flex}.clusters__cluster-status{border-radius:3px;height:18px;margin-right:8px;width:18px}.clusters__cluster-status span{align-items:center;display:flex}.clusters__cluster-status_type_green{background-color:var(--ydb-color-status-green)}.clusters__cluster-status_type_yellow{background-color:var(--ydb-color-status-yellow)}.clusters__cluster-status_type_blue{background-color:var(--ydb-color-status-blue)}.clusters__cluster-status_type_red{background:var(--ydb-color-status-red)}.clusters__cluster-status_type_grey{background:var(--ydb-color-status-grey)}.clusters__cluster-status_type_orange{background:var(--ydb-color-status-orange)}.clusters__cluster-name{color:var(--g-color-text-link);text-decoration:none;white-space:normal}.clusters__cluster-versions{text-decoration:none}.clusters__cluster-version{overflow:hidden;text-overflow:ellipsis}.clusters__cluster-dc{white-space:normal}.clusters__controls{display:flex;margin-bottom:20px}.clusters__control{margin-right:15px;width:200px}.clusters__control_wide{width:300px}.clusters__empty-cell{color:var(--g-color-text-secondary)}.clusters__tooltip-content{word-break:break-all}.clusters .g-progress__item{transition:none}.clusters__aggregation,.clusters__controls{margin-left:15px}.clusters__aggregation{align-items:center;background:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);border-radius:10px;display:flex;height:46px;margin-bottom:20px;padding:10px 20px;width:max-content}.clusters__aggregation-value-container{align-items:center;display:flex;font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);max-width:200px}.clusters__aggregation-value-container:not(:last-child){margin-right:30px}.clusters__aggregation-label{color:var(--g-color-text-complementary);font-weight:200;margin-right:8px}.clusters__text{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.clusters__text:first-letter{color:var(--g-color-text-danger)}.clusters__description{max-width:200px;white-space:pre-wrap}.clusters__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;padding-left:5px}.clusters__table-content{height:100%;overflow:auto}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__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}.clusters__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.clusters__table .data-table__head-row:first-child .data-table__th:nth-child(0),.clusters__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{box-shadow:unset}.clusters__balancer-cell{align-items:center;display:flex;flex-direction:row}.clusters__balancer-text{display:inline-block;margin-right:5px;max-width:92%;overflow:hidden;overflow-wrap:break-word!important;text-overflow:ellipsis}.clusters__balancer-icon{align-items:center;display:flex}.clusters__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-left:15px}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/2740.5d10d58b.chunk.css b/ydb/core/viewer/monitoring/static/css/2740.5d10d58b.chunk.css deleted file mode 100644 index f9907f554c..0000000000 --- a/ydb/core/viewer/monitoring/static/css/2740.5d10d58b.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.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-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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.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-cluster-versions-bar{display:flex;flex-direction:column;min-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}.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(--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(--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(--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(--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-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}.ydb-tree-view__item:hover .ydb-versions-nodes-tree-title__clipboard-button,.ydb-versions-nodes-tree-title__clipboard-button:focus-visible{opacity:1}.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:unset;box-shadow:unset}.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:unset}.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{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.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}.ydb-versions__overall-wrapper{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px;padding:20px}.ydb-versions__overall-progress{border-radius:5px;height:20px;line-height:20px}.ydb-versions__overall-progress .g-progress__stack{height:20px;line-height:20px}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-doughnut-metrics{--doughnut-border:11px;--doughnut-color:var(--ydb-color-status-green)}.ydb-doughnut-metrics__doughnut{aspect-ratio:1;background-color:var(--doughnut-color);border-radius:50%;position:relative;width:172px}.ydb-doughnut-metrics__doughnut:before{aspect-ratio:1;background-color:var(--g-color-base-background);border-radius:50%;content:"";display:block;height:calc(100% - var(--doughnut-border)*2);transform:translate(var(--doughnut-border),var(--doughnut-border))}.ydb-doughnut-metrics__doughnut_status_warning{--doughnut-color:var(--ydb-color-status-yellow)}.ydb-doughnut-metrics__doughnut_status_danger{--doughnut-color:var(--ydb-color-status-red)}.ydb-doughnut-metrics__text-wrapper{--wrapper-indent:calc(var(--doughnut-border) + 5px);align-items:center;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;position:absolute;right:var(--wrapper-indent);text-align:center;top:var(--wrapper-indent);width:calc(100% - var(--wrapper-indent)*2)}.ydb-doughnut-metrics__value{bottom:20px;position:absolute}.ydb-doughnut-metrics__legend{height:50%;white-space:pre-wrap}.ydb-disk-groups-stats{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.gc-definition-list{margin:0}.gc-definition-list__title{margin-block-end:var(--g-spacing-3)}.gc-definition-list .gc-definition-list__item:is(.gc-definition-list__item_grouped)+.gc-definition-list__item:not(.gc-definition-list__item_grouped),.gc-definition-list__title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 300px;overflow:hidden;position:relative}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.ydb-cluster-dashboard{left:0;padding-top:16px;position:sticky}.ydb-cluster-dashboard__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-cluster-dashboard__card{display:flex;flex-direction:column;height:252px}.ydb-cluster-dashboard__card_size_s{height:unset}.ydb-cluster-dashboard__card_size_l{height:unset;width:100%}.ydb-cluster-dashboard__skeleton-wrapper{border:unset;padding:unset}.ydb-cluster-dashboard__doughnut{margin-top:auto}.ydb-cluster-dashboard__cards{display:flex}.ydb-cluster-dashboard__card-title{margin-bottom:var(--g-spacing-2)}.ydb-cluster-dashboard__skeleton{height:100%}.ydb-cluster-dashboard__cards-container{display:grid;gap:var(--g-spacing-4);grid-auto-flow:column dense;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,118px)}.ydb-cluster-dashboard__double-height{grid-row:span 2}.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}.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-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;height:20px;justify-content:center;min-width:26px;padding:0 var(--g-spacing-1);width:max-content}.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:20px 0}.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__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}.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-cluster{flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-cluster__header{left:0;padding:20px 0;position:sticky}.ydb-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)}.ydb-cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.ydb-cluster__tabs-sticky-wrapper{background-color:var(--g-color-base-background);left:0;margin-right:-40px;margin-top:20px;padding-left:20px;padding-right:40px;position:sticky;top:0;transform:translateX(-20px);z-index:3}.ydb-cluster__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex}.ydb-cluster__sticky-wrapper{left:0;position:sticky;top:66px;z-index:4}.ydb-cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-46px}.ydb-cluster .ydb-table-with-controls-layout__controls-wrapper{top:40px}.ydb-cluster__tablets .data-table__sticky_moving{top:40px!important}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/2881.afcb07f6.chunk.css b/ydb/core/viewer/monitoring/static/css/2881.afcb07f6.chunk.css new file mode 100644 index 0000000000..21078a92c3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/2881.afcb07f6.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.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))}}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.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-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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{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-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.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)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.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-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3017.3afd70ce.chunk.css b/ydb/core/viewer/monitoring/static/css/3017.3afd70ce.chunk.css new file mode 100644 index 0000000000..4192c44016 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/3017.3afd70ce.chunk.css @@ -0,0 +1 @@ +.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-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;display:inline-flex;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}.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:150px;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{--data-table-sticky-top-offset:62px;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:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.ydb-search{min-width:100px}.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);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;transform:translateZ(0);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:none!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-cell-with-popover__popover_full-width{width:100%}.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:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;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}.hover-popup{padding:var(--g-spacing-3)}.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}.entity-status{--button-width:28px;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%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--g-color-base-float);padding:var(--g-spacing-1);width:min-content}.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{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.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-vdisk-component{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.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__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{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.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:unset;border:unset;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}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.memory-viewer{min-width:150px;padding:0 var(--g-spacing-1);position:relative;z-index:0}.memory-viewer__progress-container{background:var(--g-color-base-generic);border-radius:2px;height:20px;overflow:hidden;position:relative}.memory-viewer__container{display:flex;padding:2px 0}.memory-viewer__legend{border-radius:2px;bottom:2px;height:20px;position:absolute;width:20px}.memory-viewer__legend_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__legend_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__legend_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__legend_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__legend_type_Other{background-color:var(--g-color-base-neutral-light-hover)}.memory-viewer__segment{height:100%;position:absolute}.memory-viewer__segment_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__segment_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__segment_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__segment_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__segment_type_Other{background-color:var(--g-color-base-neutral-light-hover)}.memory-viewer__name{padding-left:28px}.memory-viewer_theme_dark{color:var(--g-color-text-light-primary)}.memory-viewer_theme_dark .memory-viewer__segment{opacity:.75}.memory-viewer_status_good .memory-viewer__progress-container{background-color:var(--g-color-base-positive-light)}.memory-viewer_status_warning .memory-viewer__progress-container{background-color:var(--g-color-base-yellow-light)}.memory-viewer_status_danger .memory-viewer__progress-container{background-color:var(--g-color-base-danger-light)}.memory-viewer__text{align-items:center;display:flex;justify-content:center}.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}.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-nodes-columns__column-cpu,.ydb-nodes-columns__column-ram{min-width:40px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.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}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3556.7f1e27c2.chunk.css b/ydb/core/viewer/monitoring/static/css/3556.7f1e27c2.chunk.css deleted file mode 100644 index 6453382fa1..0000000000 --- a/ydb/core/viewer/monitoring/static/css/3556.7f1e27c2.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.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}.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))}}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.ydb-pdisk-info__links,.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)}.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:unset;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/css/3933.5f7354e1.chunk.css b/ydb/core/viewer/monitoring/static/css/3933.5f7354e1.chunk.css new file mode 100644 index 0000000000..27ff3b2afb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/3933.5f7354e1.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}.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-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.operations__search{width:220px}.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-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: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:unset;box-shadow:unset}.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:unset}.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}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.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}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.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}.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}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.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:unset;box-shadow:unset}.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:unset}.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:unset}.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 15px 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-family:var(--g-text-subheader-font-family);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-family:var(--g-text-body-font-family);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:unset;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:unset;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:unset}.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-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-family:var(--g-text-subheader-font-family);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__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.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}.ydb-object-summary__overview-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-object-summary__overview-item-content{text-align:end;white-space:nowrap}.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/4135.f4bca932.chunk.css b/ydb/core/viewer/monitoring/static/css/4135.f4bca932.chunk.css new file mode 100644 index 0000000000..f2b61c16cc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/4135.f4bca932.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.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))}}.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%}.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)}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding: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)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/5879.555349bb.chunk.css b/ydb/core/viewer/monitoring/static/css/5879.555349bb.chunk.css new file mode 100644 index 0000000000..37faf5313b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/5879.555349bb.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.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}.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))}}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.ydb-pdisk-info__links,.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)}.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:unset;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/css/6703.b2a0c589.chunk.css b/ydb/core/viewer/monitoring/static/css/6703.b2a0c589.chunk.css deleted file mode 100644 index ab2791048d..0000000000 --- a/ydb/core/viewer/monitoring/static/css/6703.b2a0c589.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.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))}}.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%}.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)}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding: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)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/6894.dec87f60.chunk.css b/ydb/core/viewer/monitoring/static/css/6894.dec87f60.chunk.css new file mode 100644 index 0000000000..3bbfb898cd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/6894.dec87f60.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.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))}}.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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{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-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.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-cluster-versions-bar{display:flex;flex-direction:column;min-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}.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(--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(--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(--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(--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-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}.ydb-tree-view__item:hover .ydb-versions-nodes-tree-title__clipboard-button,.ydb-versions-nodes-tree-title__clipboard-button:focus-visible{opacity:1}.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:unset;box-shadow:unset}.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:unset}.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{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.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}.ydb-versions__overall-wrapper{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px;padding:20px}.ydb-versions__overall-progress{border-radius:5px;height:20px;line-height:20px}.ydb-versions__overall-progress .g-progress__stack{height:20px;line-height:20px}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-doughnut-metrics{--doughnut-border:11px;--doughnut-color:var(--ydb-color-status-green)}.ydb-doughnut-metrics__doughnut{aspect-ratio:1;background-color:var(--doughnut-color);border-radius:50%;position:relative;width:172px}.ydb-doughnut-metrics__doughnut:before{aspect-ratio:1;background-color:var(--g-color-base-background);border-radius:50%;content:"";display:block;height:calc(100% - var(--doughnut-border)*2);transform:translate(var(--doughnut-border),var(--doughnut-border))}.ydb-doughnut-metrics__doughnut_status_warning{--doughnut-color:var(--ydb-color-status-yellow)}.ydb-doughnut-metrics__doughnut_status_danger{--doughnut-color:var(--ydb-color-status-red)}.ydb-doughnut-metrics__text-wrapper{--wrapper-indent:calc(var(--doughnut-border) + 5px);align-items:center;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;position:absolute;right:var(--wrapper-indent);text-align:center;top:var(--wrapper-indent);width:calc(100% - var(--wrapper-indent)*2)}.ydb-doughnut-metrics__value{bottom:20px;position:absolute}.ydb-doughnut-metrics__legend{height:50%;white-space:pre-wrap}.ydb-disk-groups-stats{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.gc-definition-list{margin:0}.gc-definition-list__title{margin-block-end:var(--g-spacing-3)}.gc-definition-list .gc-definition-list__item:is(.gc-definition-list__item_grouped)+.gc-definition-list__item:not(.gc-definition-list__item_grouped),.gc-definition-list__title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 300px;overflow:hidden;position:relative}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.ydb-cluster-dashboard{left:0;padding-top:16px;position:sticky}.ydb-cluster-dashboard__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-cluster-dashboard__card{display:flex;flex-direction:column;height:252px}.ydb-cluster-dashboard__card_size_s{height:unset}.ydb-cluster-dashboard__card_size_l{height:unset;width:100%}.ydb-cluster-dashboard__skeleton-wrapper{border:unset;padding:unset}.ydb-cluster-dashboard__doughnut{margin-top:auto}.ydb-cluster-dashboard__cards{display:flex}.ydb-cluster-dashboard__card-title{margin-bottom:var(--g-spacing-2)}.ydb-cluster-dashboard__skeleton{height:100%}.ydb-cluster-dashboard__cards-container{display:grid;gap:var(--g-spacing-4);grid-auto-flow:column dense;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,118px)}.ydb-cluster-dashboard__double-height{grid-row:span 2}.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}.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-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;height:20px;justify-content:center;min-width:26px;padding:0 var(--g-spacing-1);width:max-content}.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:20px 0}.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__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}.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-cluster{flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-cluster__header{left:0;padding:20px 0;position:sticky}.ydb-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)}.ydb-cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.ydb-cluster__tabs-sticky-wrapper{background-color:var(--g-color-base-background);left:0;margin-right:-40px;margin-top:20px;padding-left:20px;padding-right:40px;position:sticky;top:0;transform:translateX(-20px);z-index:3}.ydb-cluster__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex}.ydb-cluster__sticky-wrapper{left:0;position:sticky;top:66px;z-index:4}.ydb-cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-46px}.ydb-cluster .ydb-table-with-controls-layout__controls-wrapper{top:40px}.ydb-cluster__tablets .data-table__sticky_moving{top:40px!important}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/7054.948a6e7b.chunk.css b/ydb/core/viewer/monitoring/static/css/7054.948a6e7b.chunk.css deleted file mode 100644 index 10e49e1a40..0000000000 --- a/ydb/core/viewer/monitoring/static/css/7054.948a6e7b.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.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;display:inline-flex;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}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.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-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%}.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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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,.ydb-tablet-info__link{color:var(--g-color-text-link);text-decoration:none}.link:hover,.ydb-tablet-info__link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-info__section-title{font-family:var(--g-text-subheader-font-family);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:var(--g-spacing-1) 0 var(--g-spacing-3)}.ydb-tablet-storage-info__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-tablet-storage-info__table tr:hover{background-color:var(--g-color-base-generic-hover)!important}.ydb-tablet-storage-info__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-tablet-storage-info__table :is(.ydb-tablet-storage-info__table-header-cell){background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);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-tablet-storage-info__table :is(.ydb-tablet-storage-info__table-cell){font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:40px;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-tablet-storage-info__table-header-cell_align_right .ydb-tablet-storage-info__table-header-content{justify-content:flex-end;text-align:right}.ydb-tablet-storage-info__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);vertical-align:middle}:is(.ydb-tablet-storage-info__table-cell_align_right){text-align:right}.ydb-tablet-storage-info__metrics-cell{white-space:nowrap}.ydb-tablet-storage-info__metrics-cell,.ydb-tablet-storage-info__name-wrapper{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-tablet-storage-info__with-padding{padding-left:calc(var(--g-spacing-2) + var(--g-spacing-6))}.ydb-tablet-storage-info__name-content_no-control{padding-left:var(--g-spacing-6)}.gt-table{--gc-tree-view-padding:0px;--gc-draggable-row-marker-offset:20px;border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{height:inherit;text-align:start}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__header-cell_sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto;width:100%}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute;width:100%}.gt-table_with-row-virtualization .gt-table__cell,.gt-table_with-row-virtualization .gt-table__footer-cell,.gt-table_with-row-virtualization .gt-table__header-cell{display:flex}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.entity-status{--button-width:28px;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%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;padding-right:var(--button-width);position:relative}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--g-color-base-float);padding:var(--g-spacing-1);width:min-content}.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{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.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}.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-tablet-page{font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-tablet-page__placeholder{align-items:center;display:flex;flex:1 1 auto;justify-content:center}.ydb-tablet-page__loader{margin-left:var(--g-spacing-2)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/7054.c5c1bf09.chunk.css b/ydb/core/viewer/monitoring/static/css/7054.c5c1bf09.chunk.css new file mode 100644 index 0000000000..de5dd1c766 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/7054.c5c1bf09.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.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;display:inline-flex;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}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.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-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%}.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-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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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,.ydb-tablet-info__link{color:var(--g-color-text-link);text-decoration:none}.link:hover,.ydb-tablet-info__link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-info__section-title{font-family:var(--g-text-subheader-font-family);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:var(--g-spacing-1) 0 var(--g-spacing-3)}.ydb-tablet-storage-info__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-tablet-storage-info__table tr:hover{background-color:var(--g-color-base-generic-hover)!important}.ydb-tablet-storage-info__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-tablet-storage-info__table :is(.ydb-tablet-storage-info__table-header-cell){background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);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-tablet-storage-info__table :is(.ydb-tablet-storage-info__table-cell){font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:40px;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-tablet-storage-info__table-header-cell_align_right .ydb-tablet-storage-info__table-header-content{justify-content:flex-end;text-align:right}.ydb-tablet-storage-info__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);vertical-align:middle}:is(.ydb-tablet-storage-info__table-cell_align_right){text-align:right}.ydb-tablet-storage-info__metrics-cell{white-space:nowrap}.ydb-tablet-storage-info__metrics-cell,.ydb-tablet-storage-info__name-wrapper{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-tablet-storage-info__with-padding{padding-left:calc(var(--g-spacing-2) + var(--g-spacing-6))}.ydb-tablet-storage-info__name-content_no-control{padding-left:var(--g-spacing-6)}.gt-table{--gc-tree-view-padding:0px;--gc-draggable-row-marker-offset:20px;border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{height:inherit;text-align:start}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__header-cell_sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto;width:100%}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute;width:100%}.gt-table_with-row-virtualization .gt-table__cell,.gt-table_with-row-virtualization .gt-table__footer-cell,.gt-table_with-row-virtualization .gt-table__header-cell{display:flex}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.entity-status{--button-width:28px;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%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--g-color-base-float);padding:var(--g-spacing-1);width:min-content}.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{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.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}.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-tablet-page{font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-tablet-page__placeholder{align-items:center;display:flex;flex:1 1 auto;justify-content:center}.ydb-tablet-page__loader{margin-left:var(--g-spacing-2)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/7474.21806beb.chunk.css b/ydb/core/viewer/monitoring/static/css/7474.21806beb.chunk.css deleted file mode 100644 index 876a4a9e95..0000000000 --- a/ydb/core/viewer/monitoring/static/css/7474.21806beb.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-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;display:inline-flex;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}.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:150px;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{--data-table-sticky-top-offset:62px;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:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.ydb-search{min-width:100px}.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);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-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:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;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}.hover-popup{padding:var(--g-spacing-3)}.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{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.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%)}.entity-status{--button-width:28px;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%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;padding-right:var(--button-width);position:relative}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--g-color-base-float);padding:var(--g-spacing-1);width:min-content}.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{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.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-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.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{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.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:unset;border:unset;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}.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}.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}.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-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.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}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/7641.5846cd46.chunk.css b/ydb/core/viewer/monitoring/static/css/7641.5846cd46.chunk.css deleted file mode 100644 index 5ba0824675..0000000000 --- a/ydb/core/viewer/monitoring/static/css/7641.5846cd46.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.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: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)}.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}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{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}.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:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{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 - 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)}}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.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}.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-family:var(--g-text-subheader-font-family);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)}.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))}}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.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-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:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;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:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{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:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{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-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.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)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.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-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/949.8587e62b.chunk.css b/ydb/core/viewer/monitoring/static/css/949.8587e62b.chunk.css deleted file mode 100644 index 9eb07fa2cd..0000000000 --- a/ydb/core/viewer/monitoring/static/css/949.8587e62b.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}.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-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.operations__search{width:220px}.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: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:unset;box-shadow:unset}.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:unset}.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}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.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:unset;box-shadow:unset}.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:unset}.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:unset}.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 15px 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-family:var(--g-text-subheader-font-family);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-family:var(--g-text-body-font-family);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:unset;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:unset;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:unset}.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-family:var(--g-text-subheader-font-family);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}.ydb-object-summary__overview-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-object-summary__overview-item-content{text-align:end;white-space:nowrap}.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/main.cc9be0a9.css b/ydb/core/viewer/monitoring/static/css/main.26df18be.css index 0986e244e8..66915aa74b 100644 --- a/ydb/core/viewer/monitoring/static/css/main.cc9be0a9.css +++ b/ydb/core/viewer/monitoring/static/css/main.26df18be.css @@ -6,4 +6,4 @@ --g-text-input-border-width,var(--g-text-area-border-width,1px) );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{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);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);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)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);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);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);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);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);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)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);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)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);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)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger);font-family:var(--g-text-body-font-family);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)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);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-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-all}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-clipboard-button__icon{pointer-events:none}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);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)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip,.tabletsOverall-tooltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label,.tabletsOverall-tooltip__label{color:var(--g-color-text-secondary);padding-right:15px}.json-tooltip{padding:20px 20px 20px 0}.json-tooltip__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%}.json-tooltip__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.json-tooltip__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.json-tooltip__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.json-tooltip__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.json-tooltip__inspector .json-inspector__key{color:var(--g-color-text-misc)}.json-tooltip__inspector .json-inspector__leaf{padding-left:20px;position:relative}.json-tooltip__inspector .json-inspector__leaf_root{padding-left:0}.json-tooltip__inspector .json-inspector__line{padding-left:20px}.json-tooltip__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.json-tooltip__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}.json-tooltip__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.json-tooltip__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.json-tooltip__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.json-tooltip__inspector .json-inspector__show-original:hover:after,.json-tooltip__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.json-tooltip__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.json-tooltip__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.json-tooltip__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.json-tooltip__inspector .json-inspector__line:hover:after{background:#0000}.json-tooltip__inspector .json-inspector__show-original:hover:after,.json-tooltip__inspector .json-inspector__show-original:hover:before{color:#0000}.json-tooltip__inspector .json-inspector__value_helper{display:none}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-float);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{opacity:1;transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);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);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file + );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);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)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);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);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);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);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);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)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);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)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);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)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger);font-family:var(--g-text-body-font-family);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)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);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-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-clipboard-button__icon{pointer-events:none}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);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)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip,.tabletsOverall-tooltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label,.tabletsOverall-tooltip__label{color:var(--g-color-text-secondary);padding-right:15px}.json-tooltip{padding:20px 20px 20px 0}.json-tooltip__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%}.json-tooltip__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.json-tooltip__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.json-tooltip__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.json-tooltip__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.json-tooltip__inspector .json-inspector__key{color:var(--g-color-text-misc)}.json-tooltip__inspector .json-inspector__leaf{padding-left:20px;position:relative}.json-tooltip__inspector .json-inspector__leaf_root{padding-left:0}.json-tooltip__inspector .json-inspector__line{padding-left:20px}.json-tooltip__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.json-tooltip__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}.json-tooltip__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.json-tooltip__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.json-tooltip__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.json-tooltip__inspector .json-inspector__show-original:hover:after,.json-tooltip__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.json-tooltip__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.json-tooltip__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.json-tooltip__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.json-tooltip__inspector .json-inspector__line:hover:after{background:#0000}.json-tooltip__inspector .json-inspector__show-original:hover:after,.json-tooltip__inspector .json-inspector__show-original:hover:before{color:#0000}.json-tooltip__inspector .json-inspector__value_helper{display:none}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-float);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{opacity:1;transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);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);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1198.40c55cbb.chunk.js b/ydb/core/viewer/monitoring/static/js/1198.40c55cbb.chunk.js new file mode 100644 index 0000000000..ad03531506 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1198.40c55cbb.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 1198.40c55cbb.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1198],{47471:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n,s=i(34706);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}const r=function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06l2.5 2.5zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3v.25z",clipRule:"evenodd"})))}},22884:(e,t,i)=>{"use strict";i.d(t,{a:()=>a,p:()=>r});var n=i(21975);const s=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),o=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),r=new n.mb;r.registerKeysets("en",s),r.registerKeysets("ru",o);const a=r.i18n.bind(r)},14345:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>b});var n=i(23337),s=i(34706),o=i(22884),r=i(86636),a=i(51281);const l=()=>`ck.${((e,t)=>{let i="";for(let n=e;n>0;--n)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,d=s.memo;var h=i(95936);const c=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends s.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.Wn.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,o.a)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):s.createElement("div",null,t)}return this.props.children}}var p=i(81550);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,n._T)(e,["renderPluginLoader"]);const o=null===t||void 0===t?void 0:t();return"undefined"!==typeof o?o:s.createElement("div",{className:m()},s.createElement(p.a,Object.assign({},i)))},_=c("chartkit"),v=e=>{const t=s.useRef(),{instanceRef:i,id:d,type:h,isMobile:c,renderPluginLoader:u}=e,g=(0,n._T)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=s.useMemo((()=>l()),[]),m=d||p,v=r.X.get("lang"),b=r.X.get("plugins").find((e=>e.type===h));if(!b)throw new a.Dx({code:a.Wn.UNKNOWN_PLUGIN,message:(0,o.a)("error","label_unknown-plugin",{type:h})});const C=b.renderer;return s.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),s.createElement(s.Suspense,{fallback:s.createElement(f,{renderPluginLoader:u})},s.createElement("div",{className:_({mobile:c},"chartkit-theme_common")},s.createElement(C,Object.assign({ref:t,id:m,lang:v},g))))},b=d(s.forwardRef((function(e,t){return s.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},s.createElement(v,Object.assign({instanceRef:t},e)))})))},51281:(e,t,i)=>{"use strict";i.d(t,{Dx:()=>s,Wn:()=>n});const n={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class s extends Error{constructor(){let{originalError:e,message:t,code:i=n.UNKNOWN}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},86636:(e,t,i)=>{"use strict";i.d(t,{X:()=>p});var n=i(10859),s=i(74718),o=i.n(s),r=i(6395),a=i.n(r),l=i(22884);var d=i(76986),h=i.n(d);function c(e,t,i){if("plugins"===i){const i=[...e],n=[...t];let s=i.map((e=>{const t=n.findIndex((t=>{let{type:i}=t;return i===e.type}));if(-1!==t){const i=n[t];return n.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return n.length>0&&(s=[...s,...n]),s}return h()(e)?a()(e,t,c):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((e=>{let{id:i}=e;return i!==t})))}dispatch(e,t){this.events[e]&&this.events[e].forEach((e=>{let{action:i}=e;i(t)}))}},g=e=>{(0,n.jQ)({lang:e}),l.p.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return o()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,t)=>{let[i,n]=t;return"undefined"!==typeof n&&(e[i]=n),e}),{}));var i;if(this.settings=a()(this.settings,t,c),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},19214:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>n});const n={type:"yagr",renderer:i(34706).lazy((()=>Promise.all([i.e(5130),i.e(5118)]).then(i.bind(i,55130))))}},20134:(e,t,i)=>{"use strict";i.d(t,{w:()=>p});var n=i(34706),s=i(99175);const o=(0,i(38534).G)("definition-list");const r=e=>"label"in e&&!("name"in e);function a(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function l(e){let{copyText:t,content:i,copyPosition:r}=e;const a="inside"===r,l=null!==i&&void 0!==i?i:"\u2014";return t?n.createElement("div",{className:o("copy-container",{"icon-inside":a})},n.createElement("span",null,l),n.createElement(s.m,{size:"s",text:t,className:o("copy-button"),view:a?"raised":"flat-secondary"})):l}var d=i(23795);function h(e){let{label:t}=e;return n.createElement("div",{className:o("title")},n.createElement(d.x,{variant:"subheader-1",color:"complementary"},t))}var c=i(91807);function u(e){let{note:t}=e;if(!t)return null;const i=o("item-note-tooltip");return"string"===typeof t?n.createElement(c.J,{className:i,content:t,placement:["bottom","top"]}):"object"===typeof t?n.createElement(c.J,Object.assign({className:i,placement:["bottom","top"]},t)):null}function g(e){let{note:t,name:i,nameTitle:s,multilineName:r}=e;const l=n.createElement(n.Fragment,null,"\xa0",n.createElement(u,{note:t}));return n.createElement(n.Fragment,null,n.createElement("div",{className:o("term-wrapper")},n.createElement("span",{title:a(s,i)},i),r&&l),!r&&l,n.createElement("div",{className:o("dots",{"with-note":Boolean(t)})}))}function p(e){let{items:t,responsive:i,nameMaxWidth:s,contentMaxWidth:d="auto",className:c,itemClassName:u,copyPosition:p="outside",qa:m}=e;const f=s?{flexBasis:s}:{},_="number"===typeof d?{flexBasis:d,maxWidth:d}:{},v=n.useMemo((()=>function(e){return e.reduce(((e,t)=>{var i;if(r(t)){e.push({label:t.label});const n=[...null!==(i=t.items)&&void 0!==i?i:[]].map((e=>Object.assign(Object.assign({},e),{isGrouped:!0})));e.push(...n)}else e.push(t);return e}),[])}(t).map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return n.createElement("dl",{className:o({responsive:i},c),"data-qa":m},v.map((e=>{if(r(e)){const{key:t,label:i}=e;return n.createElement(h,{key:t,label:i})}const{name:t,key:i,content:s,contentTitle:d,nameTitle:c,copyText:m,note:v,multilineName:b,isGrouped:C}=e;return n.createElement("div",{key:i,className:o("item",{grouped:C},u)},n.createElement("dt",{className:o("term-container",{multiline:b}),style:f},n.createElement(g,{name:t,nameTitle:c,note:v,multilineName:b})),n.createElement("dd",{className:o("definition"),title:a(d,s),style:Object.assign(Object.assign({},_),{lineBreak:"string"===typeof s&&(y=20,function(e){return e.split(/\s+/).some((e=>e.length>y))})(s)?"anywhere":void 0})},n.createElement(l,{copyPosition:p,copyText:m,content:s})));var y})))}},91807:(e,t,i)=>{"use strict";i.d(t,{J:()=>d});var n=i(34706),s=i(29837),o=i(16318),r=i(14561);const a=(0,i(38534).G)("help-popover"),l=16;function d(e){var t;return n.createElement(o.J,Object.assign({},e,{className:a(null,e.className)}),n.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),n.createElement(r.J,{data:s.Z,size:l})))}},38534:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(95936);(0,n.withNaming)({e:"__",m:"_",v:"_"});const s=(0,n.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},54431:(e,t,i)=>{"use strict";i.d(t,{H:()=>Qt});var n=i(10161),s=i(34706);const o=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.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75ZM10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0v.75ZM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8H3Z",clipRule:"evenodd"}));var r=i(56952),a=i(7947),l=i(14082),d=i(86357),h=i(72616),c=i(14561);const u="g-date-",g=(0,i(95936).withNaming)({n:u,e:"__",m:"_"});function p(e){let{name:t,value:i,onReset:o,form:r,disabled:a,toStringValue:l}=e;const d=function(e){let{initialValue:t,onReset:i}=e;const[n,o]=s.useState(null),r=s.useRef(t);s.useEffect((()=>{if(!n||!i)return;const e=()=>{i(r.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,i]);const a=s.useCallback((e=>{var t;o(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return a}({initialValue:i,onReset:o});if(!t)return null;const h=l?l(i):`${null!==i&&void 0!==i?i:""}`;return(0,n.jsx)("input",{ref:d,type:"hidden",name:t,value:h,disabled:a,form:r})}function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(42805),_=i(7360),v=i(24874);const b=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("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21l.102-1.21Zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328l-.674-.808ZM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431Zm5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97Z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),C=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:"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 0ZM8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275V4.5Z",clipRule:"evenodd"}));var y=i(15178),w=i(67904),S=i(67258),x=i(81778);var L=i(3581);const k=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),D=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),N=(0,L.e)({en:k,ru:D},`${u}calendar`),E="yc-button_disabled g-button_disabled";function T(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:N("Switch to months view"),quarters:N("Switch to quarters view"),years:N("Switch to years view")}[t[i]]}function I(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}const M=["days","months","quarters","years"],A=g("calendar"),R=s.forwardRef((function(e,t){const{state:i}=e,{calendarProps:o,modeButtonProps:r,nextButtonProps:a,previousButtonProps:d}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:t.focusedDate.format("days"===t.mode?"MMMM YYYY":"YYYY"),{focusWithinProps:n}=(0,l.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),o=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},n),r=t.availableModes.indexOf(t.mode),a=r+1===t.availableModes.length,d=r+2===t.availableModes.length,h=t.disabled||a,c={disabled:t.disabled,className:h?E:void 0,onClick:h?void 0:()=>{t.zoomOut(),d&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":T(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=s.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();s.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?E:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":N("Previous"),"aria-disabled":g?"true":void 0}},m=s.useRef(!1),f=t.disabled||t.isNextPageInvalid();return s.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:o,modeButtonProps:c,nextButtonProps:{disabled:t.disabled,className:f?E:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":N("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return s.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,n.jsxs)("div",Object.assign({},o,{className:A({size:e.size}),children:[(0,n.jsxs)("div",{className:A("header"),children:[(0,n.jsx)(h.z,Object.assign({},r,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,n.jsx)("span",{className:A("mode-label",A("years-label")),children:r.children},"label"):[(0,n.jsx)("span",{className:A("mode-label"),children:r.children},"label"),(0,n.jsx)(h.z.Icon,{children:(0,n.jsx)(x.F,{direction:"bottom"})},"icon")]})),(0,n.jsxs)("div",{className:A("controls"),children:[(0,n.jsx)(h.z,Object.assign({},d,{view:"flat",size:e.size,children:(0,n.jsx)(h.z.Icon,{children:(0,n.jsx)(w.Z,{className:A("control-icon")})})})),(0,n.jsx)(h.z,Object.assign({},a,{view:"flat",size:e.size,children:(0,n.jsx)(h.z.Icon,{children:(0,n.jsx)(S.Z,{className:A("control-icon")})})}))]})]}),(0,n.jsx)(O,{state:i})]}))}));function O(e){let{state:t}=e;const[i,o]=s.useState((()=>Object.assign(Object.assign({},t),{isFocused:!1}))),r=t.mode!==i.mode,a=!t.startDate.isSame(i.startDate,"days");let d;r?d=M.indexOf(i.mode)>M.indexOf(t.mode)?"zoom-out":"zoom-in":a&&(d=t.startDate.isBefore(i.startDate)?"forward":"backward");const{gridProps:h}=function(e){const{focusWithinProps:t}=(0,l.L)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:e.focusedDate.format("days"===e.mode?"MMMM YYYY":"YYYY"),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(t);return(0,n.jsxs)("div",Object.assign({className:A("grid")},h,{children:[d&&(0,n.jsx)(P,{className:A("previous-state"),state:i,animation:d}),(0,n.jsx)(P,{className:A("current-state"),state:t,animation:d,onAnimationEnd:()=>{o(Object.assign(Object.assign({},t),{isFocused:!1}))}},"current")]}))}function P(e){let{className:t,state:i,animation:s,onAnimationEnd:o}=e;return(0,n.jsxs)("div",{className:A("content",{animation:s},t),onAnimationEnd:o,role:"presentation",children:["days"===i.mode&&(0,n.jsx)(F,{state:i}),(0,n.jsx)(B,{state:i})]})}function F(e){let{state:t}=e;const i=function(){const e=[],t=(0,f.CQ)().startOf("week");for(let i=0;i<7;i++){const n=t.add({days:i});e.push(n)}return e}();return(0,n.jsx)("div",{className:A("grid-row"),role:"row",children:i.map((e=>(0,n.jsx)("div",{className:A("weekday",{weekend:t.isWeekend(e)}),role:"columnheader","aria-label":e.format("dddd"),children:e.format("dd")},e.day())))})}function B(e){let{state:t}=e;const i="days"===t.mode?6:4,s="days"===t.mode?7:3+("quarters"===t.mode?1:0),o=function(e,t,i){const n=[];if("days"===i){const t=e.startOf("week");for(let e=0;e<42;e++)n.push(t.add({days:e}))}else if("quarters"===i)for(let s=0;s<16;s++)n.push(e.add(s,"quarters"));else for(let s=0;s<12;s++)n.push(e.add({[i]:s}));return n}(t.startDate,t.endDate,t.mode);return(0,n.jsx)("div",{className:A("grid-rowgroup",{mode:t.mode}),role:"rowgroup",children:[...new Array(i).keys()].map((e=>(0,n.jsxs)("div",{className:A("grid-row"),role:"row",children:["quarters"===t.mode?(0,n.jsx)("span",{role:"rowheader",className:A("grid-rowgroup-header"),children:o[e*s].format("YYYY")}):null,o.slice(e*s,(e+1)*s).map((e=>(0,n.jsx)(V,{date:e,state:t},e.unix())))]},e)))})}function V(e){let{date:t,state:i}=e;const{cellProps:o,buttonProps:r,formattedDate:a,isDisabled:l,isSelected:d,isRangeSelection:h,isSelectionStart:c,isSelectionEnd:u,isOutsideCurrentRange:g,isUnavailable:p,isCurrent:m,isWeekend:f}=function(e,t){const i=s.useRef(null),n=t.isCellFocused(e);s.useEffect((()=>{var e;n&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[n]);const o=t.focusedDate.isSame(e,t.mode)?0:-1,r=t.isCellDisabled(e),a=t.isSelected(e),l="highlightedRange"in t&&t.highlightedRange,d=Boolean(l&&a),h=a&&l&&e.isSame(l.start,t.mode),c=a&&l&&e.isSame(l.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!r&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){let i="";return"days"===t?i=`${e.format("dddd")}, ${e.format("LL")}`:"months"===t?i=`${e.format("MMMM YYYY")}`:"quarters"===t?i=`${e.format("[Q]Q YYYY")}`:"years"===t&&(i=`${e.format("YYYY")}`),i}(e,t.mode),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":r?"true":void 0},b={ref:i,role:"button",tabIndex:r?void 0:o,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let C=e.format("D");return"months"===t.mode?C=e.format("MMM"):"quarters"===t.mode?C=e.format("[Q]Q"):"years"===t.mode&&(C=e.format("YYYY")),{cellProps:v,buttonProps:b,formattedDate:C,isDisabled:r,isSelected:a,isRangeSelection:d,isSelectionStart:h,isSelectionEnd:c,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}(t,i);return(0,n.jsx)("div",Object.assign({},o,{children:(0,n.jsx)("div",Object.assign({},r,{className:A("button",{disabled:l,selected:d,"range-selection":h,"selection-start":c,"selection-end":u,"out-of-boundary":g,unavailable:p,current:m,weekend:f}),children:a}))}))}function W(e){let{placeholderValue:t,timeZone:i}=e;return null!==t&&void 0!==t?t:(0,f.CQ)({timeZone:i}).set("hour",0).set("minute",0).set("second",0)}function H(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function z(e){const t=e?e.timeZone():"default",[i,n]=s.useState(t);e&&t!==i&&n(t);return e?t:i}const j={days:!0,months:!0,quarters:!1,years:!0};function U(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function K(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=U(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function q(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"days";return!I(e,t,i).isSame(e,n)}const $=s.forwardRef((function(e,t){const i=function(e){var t,i,n;const{disabled:o,readOnly:r,modes:l=j}=e,[d,h]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),c=M.filter((e=>l[e])),u=c[0]||"days",[g,p]=(0,a.z)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&c.includes(g)?g:u,_=z(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,b=s.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),C=s.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),y=s.useMemo((()=>e.focusedValue?I(e.focusedValue.timeZone(v),b,C):e.focusedValue),[e.focusedValue,b,C,v]),w=s.useMemo((()=>{var t;return I((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:d)||void 0===t?void 0:t.timeZone(v))||W({timeZone:v}).startOf(u),b,C)}),[C,b,e.defaultFocusedValue,v,d,u]),[S,x]=(0,a.z)(y,w,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),L=null!==(n=null===S||void 0===S?void 0:S.timeZone(v))&&void 0!==n?n:I(W({timeZone:v}),b,C);function k(e){x(I(e.startOf(m),b,C))}q(L,b,C)&&x(I(L,b,C));const[D,N]=s.useState(e.autoFocus||!1),E=U(L,m),T=K(L,m);return{disabled:o,readOnly:r,value:d,setValue(e){if(!o&&!r){let t=I(e,b,C);if(this.isCellUnavailable(t))return;d&&(t=H(t,d.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o||(r||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:b,maxValue:C,focusedDate:L,startDate:E,endDate:T,setFocusedDate(e){k(e),N(!0)},focusNextCell(){k(L.add(1,this.mode))},focusPreviousCell(){k(L.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?k(L.add(1,"week")):"quarters"===this.mode?k(L.add(1,"years")):k(L.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?k(L.subtract(1,"week")):"quarters"===this.mode?k(L.subtract(1,"years")):k(L.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?k(L.add({months:e?12:1})):"quarters"===this.mode?k(L.add(4,"years")):k(L.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?k(L.subtract({months:e?12:1})):"quarters"===this.mode?k(L.subtract(4,"years")):k(L.subtract(12,this.mode))},focusSectionStart(){k(U(L,this.mode))},focusSectionEnd(){k(K(L,this.mode))},zoomIn(){const e=c[c.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=c[c.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(L,!0)},isFocused:D,setFocused:N,isInvalid(e){return q(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(d&&e.isSame(d.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&L&&e.isSame(L,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(e){return"days"===this.mode&&[0,6].includes(e.day())},isCurrent(e){return(0,f.CQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:c}}(e);return(0,n.jsx)(R,Object.assign({ref:t},e,{state:i}))}));var G=i(23337);const Y=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),Z=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),Q=(0,L.e)({en:Y,ru:Z},`${u}date-field`),X={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},J={start:"[",end:"]"},ee={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function te(e){return 4===(0,f.CQ)().format(e).length}function ie(e,t){const{type:i,format:n}=e;switch(i){case"year":{const e=te(n);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.CQ)().set("hour",15).format(e)}(n)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function ne(e,t){const i=e.type;switch(i){case"year":return te(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const se={weekday:"day",day:"date",dayPeriod:"hour"};function oe(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in se?se[e]:e}function re(e,t){switch(e.type){case"year":return Q("year_placeholder").repeat((0,f.CQ)().format(t).length);case"month":return Q("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return Q("day_placeholder").repeat(2);case"weekday":return Q("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return Q("hour_placeholder").repeat(2);case"minute":return Q("minute_placeholder").repeat(2);case"second":return Q("second_placeholder").repeat(2);case"dayPeriod":return Q("dayPeriod_placeholder");default:return t}}function ae(e){const t=[],i=(0,f._u)(e);let n="",s=!1,o=!1;for(let r=0;r<i.length;r++){const e=i[r]||"";if(o){if(e===J.end){o=!1;continue}n+=e}else e.match(/[a-zA-Z]/)?(s&&(de(t,n),n=""),s=!1,n+=e):(s||(le(t,n),n=""),s=!0,e===J.start?o=!0:n+=e)}return n&&(s?de(t,n):le(t,n)),t}function le(e,t){if(!t)return;const i=function(e){const t=ee[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),n=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return te(i)?"0001"===(0,f.CQ)().set("year",1).format(i):"01"===(0,f.CQ)().set("year",2001).format(i);case"month":return(0,f.CQ)().startOf("year").format(i).length>1;case"day":return(0,f.CQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.CQ)().startOf("week").format(i).length>1;case"hour":return(0,f.CQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.CQ)().set("minute",1).format(i).length>1;case"second":return(0,f.CQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:re(i,t),options:he(i,t),hasLeadingZeros:n}))}function de(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function he(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let n=(0,f.CQ)().startOf("year");const s=[];for(let e=0;e<12;e++)s.push(n.format(i).toLocaleUpperCase()),n=n.add(1,"months");return s}case"dayPeriod":{const e=(0,f.CQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let n=(0,f.CQ)().day(0);const s=[];for(let e=0;e<7;e++)s.push(n.format(i).toLocaleUpperCase()),n=n.add(1,"day");return s}}}function ce(e,t,i){let n=1;const s=[];let o=-1;for(let r=0;r<e.length;r++){const a=e[r];if(!a)continue;const l=ge(a,t,i,n,o);if(s.push(l),ue(a)){for(let e=Math.max(0,o);e<=r;e++){const t=s[e];t&&(t.nextEditableSection=r,-1===t.previousEditableSection&&(t.previousEditableSection=r))}o=r}n+=l.textValue.length}return s}function ue(e){var t;return null!==(t=X[e.type])&&void 0!==t&&t}function ge(e,t,i,n,s){const o=ue(e);let r=e.placeholder;(o&&i[e.type]||"timeZoneName"===e.type)&&(r=t.format(e.format),"digit"===e.contentType&&r.length<e.placeholder.length&&(r=r.padStart(e.placeholder.length,"0"))),r="\u2068"+r+"\u2069";const a=r.length;return Object.assign(Object.assign(Object.assign({},e),{value:ne(e,t),textValue:r,start:n,end:n+a,modified:!1,previousEditableSection:s,nextEditableSection:s}),ie(e,t))}function pe(e,t){const i="all"===t||-1===t?0:t,n=e[i];return n&&!X[n.type]?n.nextEditableSection:n?i:-1}function me(e){let t=(0,f.CQ)(e);return(0,f.JY)(t)||(t=(0,f.CQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function fe(e,t){return Object.keys(e).every((e=>t[e]))}function _e(e,t){const i=s.useRef(null),[,n]=s.useState({});function o(t){e.setSelectedSections(t),n({})}function r(){var t,s;e.readOnly?o(-1):(e.focusSectionInPosition(null!==(s=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==s?s:0),n({}))}s.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const n=e.sections[e.selectedSectionIndexes.startIndex],s=e.sections[e.selectedSectionIndexes.endIndex];if(n&&s){const e=n.start,i=s.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=s.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(n){var s;if(null===(s=t.onFocus)||void 0===s||s.call(t,n),null!==e.selectedSectionIndexes)return;const a=n.target,l=!i.current;setTimeout((()=>{a&&a===i.current&&(l?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?o("all"):r())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),o(-1)},onKeyDown(i){var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),o("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,inputMode:a,onClick(){r()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],n=/^\d+$/.test(i),s=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&n||"letter"===t.contentType&&s)))return void e.onInput(i);if(n||s)return}e.setValueFromString(i)}}}}}const ve={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function be(e){var t,i;const[n,o]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),r=z(e.value||e.defaultValue||e.placeholderValue),l=e.timeZone||r,d=e=>{o(e?e.timeZone(r):e)},[h,c]=s.useState((()=>W({placeholderValue:e.placeholderValue,timeZone:l}))),u=e.format||"L",g=function(e){const t=e,[i,n]=s.useState((()=>ae(t))),[o,r]=s.useState(t);return t!==o&&(r(t),n(ae(t))),i}(u),p=s.useMemo((()=>g.filter((e=>X[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=s.useState((()=>n?Object.assign({},p):{}));let _=m[0];const v=m[1];n&&!fe(p,_)&&v(Object.assign({},p)),!n&&fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),c(W({placeholderValue:e.placeholderValue,timeZone:l})));const b=n&&(0,f.JY)(n)&&fe(p,_)?n.timeZone(l):h.timeZone(l),C=function(e,t,i){const[n,o]=s.useState((()=>({value:t,sections:e,validSegments:i,editableSections:ce(e,t,i)})));e===n.sections&&i===n.validSegments&&t.isSame(n.value)&&t.timeZone()===n.value.timeZone()||o({value:t,sections:e,validSegments:i,editableSections:ce(e,t,i)});return n}(g,b,_),[y,w]=s.useState(-1),S=s.useMemo((()=>{if(-1===y)return null;if("all"===y)return{startIndex:0,endIndex:C.editableSections.length-1};if("number"===typeof y)return{startIndex:y,endIndex:y};if("string"===typeof y){const e=C.editableSections.findIndex((e=>e.type===y));return{startIndex:e,endIndex:e}}return y}),[y,C.editableSections]);function x(t){e.disabled||e.readOnly||(fe(p,_)?n&&t.isSame(n)||d(t):(n&&d(null),c(t)))}function L(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const k=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(n,e.minValue,e.maxValue)?"invalid":void 0)||(n&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,n))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:n,editableSections:o,selectedSectionIndexes:r,selectedSections:a,isEmpty:l,flushAllValidSections:d,flushValidSection:h,setSelectedSections:c,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:b}=e,C=s.useRef(""),{hasDate:y,hasTime:w}=s.useMemo((()=>{let e=!1,t=!1;for(const i of o)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[o]);return{value:t,isEmpty:l,displayValue:n,setValue:u,setDate:g,text:(S=o,"\u2066"+S.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:o,hasDate:y,hasTime:w,selectedSectionIndexes:r,validationState:i,setSelectedSections(e){C.current="",c(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,n=this.sections[i];n&&this.setSelectedSections(X[n.type]?i:n.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,n=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==n&&this.setSelectedSections(n)},focusPreviousSection(){var e,t;const i="all"===a?0:a,n=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==n&&this.setSelectedSections(n)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&c(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,ve[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,-(ve[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(C.current="","all"===a)return void this.clearAll();const t=pe(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],n=W({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),s=f(t);let o=s;if("dayPeriod"===i.type){const e=s.hour()>=12,t=n.hour()>=12;e&&!t?o=s.set("hour",s.hour()-12):!e&&t&&(o=s.set("hour",s.hour()+12))}else{const e=oe(i.type);o=s.set(e,n[e]())}_(t,o)},clearAll(){if(this.readOnly||this.disabled)return;C.current="",d(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=pe(this.sections,a);if(-1===t)return;const i=this.sections[t];let n=C.current+e;const s=s=>{var o,r,a;let l="month"===i.type?s-1:s;const d=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(l>(null!==(o=i.maxValue)&&void 0!==o?o:0)&&(l=Number(e)-("month"===i.type?1:0),n=e,l>(null!==(r=i.maxValue)&&void 0!==r?r:0)))return void(C.current="")}else s>12&&(l=Number(e)),12===i.minValue&&l>1&&(l+=12);const h=l>0||0===l&&d;h&&m(t,l),Number(s+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||n.length>=String(i.maxValue).length?(C.current="",h&&this.focusNextSection()):C.current=n},o=s=>{var o;const r=null!==(o=i.options)&&void 0!==o?o:[];let a=s.toLocaleUpperCase(),l=r.filter((e=>e.startsWith(a)));if(0===l.length&&(s!==e&&(a=e.toLocaleUpperCase(),l=r.filter((e=>e.startsWith(a)))),0===l.length))return void(C.current="");const d=l[0],h=r.indexOf(d);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),l.length>1?C.current=n:(C.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(n)))return;s(Number(n));break;case"dayPeriod":o(n);break;case"weekday":case"month":Number.isInteger(Number(n))?s(Number(n)):o(n)}},setValueFromString:e=>(C.current="",b(e))};var S}({value:n,displayValue:b,placeholderValue:e.placeholderValue,timeZone:l,validationState:k,editableSections:C.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:S,selectedSections:y,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=C.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:w,setValue:x,setDate:d,adjustSection:function(e,t){const i=C.editableSections[e];i&&(_[i.type]?x(function(e,t,i){var n;let s=null!==(n=e.value)&&void 0!==n?n:0;if("dayPeriod"===e.type)s=t.hour()+(t.hour()>=12?-12:12);else{s+=i;const t=e.minValue,n=e.maxValue;if("number"===typeof t&&"number"===typeof n){const e=n-t+1;s=(s-t+e)%e+t}}"year"!==e.type||te(e.format)||(s=(0,f.CQ)({input:`${s}`.padStart(2,"0"),format:e.format}).year());const o=oe(e.type);return t.set(o,s)}(i,b,t)):(L(i.type),Object.keys(_).length>=Object.keys(p).length&&x(b)))},setSection:function(e,t){const i=C.editableSections[e];i&&(L(i.type),x(function(e,t,i){const n=e.type;switch(n){case"year":return t.set("year",te(e.format)?i:(0,f.CQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(oe(n),i);case"dayPeriod":{const e=t.hour(),n=e>=12;return i>=12===n?t:t.set("hour",n?e-12:e+12)}case"hour":{let n=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==n||(n=0),e&&n<12&&(n+=12)}return t.set("hour",n)}case"minute":case"second":return t.set(n,i)}return t}(i,b,t)))},getSectionValue:function(e){return b},setSectionValue:function(e,t){x(t)},createPlaceholder:function(){return W({placeholderValue:e.placeholderValue,timeZone:l}).timeZone(l)},setValueFromString:function(e){const t=function(e,t,i){let n=me({input:e,format:t,timeZone:i});(0,f.JY)(n)&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(n=H(n,me({input:e,format:t})));return n}(e,u,l);return!!(0,f.JY)(t)&&(d(t),!0)}})}const Ce=g("date-field");function ye(e){var{className:t}=e,i=(0,G._T)(e,["className"]);const o=be(i),{inputProps:r}=_e(o,i),[a,h]=s.useState(!1),{focusWithinProps:c}=(0,l.L)({onFocusWithinChange(e){h(e)}});return(0,n.jsxs)("div",Object.assign({className:Ce(null,t),style:i.style},c,{children:[(0,n.jsx)(d.o,Object.assign({},r,{value:o.isEmpty&&!a&&i.placeholder?"":r.value})),(0,n.jsx)(p,{name:i.name,value:o.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{o.setDate(e)},disabled:o.disabled,form:i.form})]}))}const we=g("mobile-calendar");function Se(e){let{props:t,state:i}=e;var s,o;let r="date";return i.hasTime&&i.hasDate?r="datetime-local":i.hasTime&&(r="time"),(0,n.jsx)("input",{className:we(),disabled:t.disabled,type:r,value:Le(i.dateFieldState.displayValue,r),id:t.id,min:Le(null===(s=t.minValue)||void 0===s?void 0:s.timeZone(i.timeZone),r),max:Le(null===(o=t.maxValue)||void 0===o?void 0:o.timeZone(i.timeZone),r),tabIndex:-1,onChange:e=>{var n,s;if(t.readOnly)return;const o=e.target.value;if(o){const e=(0,f.CQ)({input:o,format:xe(r),timeZone:"system"}).timeZone(i.timeZone,!0);let a=i.hasDate?e:W({placeholderValue:null===(n=t.placeholderValue)||void 0===n?void 0:n.timeZone(i.timeZone),timeZone:i.timeZone});a=i.hasTime?H(a,e):i.value?H(a,i.value.timeZone(i.timeZone)):H(a,W({placeholderValue:null===(s=t.placeholderValue)||void 0===s?void 0:s.timeZone(i.timeZone),timeZone:i.timeZone})),i.setValue(a)}else i.setValue(null)}})}function xe(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Le(e,t){if(!e)return"";const i=xe(t);return e.format(i)}const ke=g("stub-button");function De(e){let{size:t,icon:i}=e;return(0,n.jsx)("span",{className:ke({size:t}),children:(0,n.jsx)("span",{className:ke("icon"),children:(0,n.jsx)(c.J,{data:i})})})}function Ne(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const i=t<0||arguments.length<=t?void 0:arguments[t];if(i)for(const t of Object.keys(i)){const n=e[t],s=i[t];"function"===typeof n&&"function"===typeof s&&t.startsWith("on")&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?e[t]=Ee(n,s):e[t]="className"===t&&"string"===typeof n&&"string"===typeof s?n+" "+s:"controlProps"===t&&"object"===typeof n&&"object"===typeof s?Ne(n,s):void 0===s?n:s}}return e}function Ee(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(){for(const e of t)"function"===typeof e&&e(...arguments)}}const Te=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ie=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Me=(0,L.e)({en:Te,ru:Ie},`${u}relative-date-picker`);function Ae(e,t){var{onFocus:i,onBlur:n}=t,o=(0,G._T)(t,["onFocus","onBlur"]);const{mode:r,setMode:d,datePickerState:h,relativeDateState:c}=e,[u,g]=s.useState("relative"===r?c.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=s.useState(c.lastCorrectDate);p!==c.lastCorrectDate&&(f(c.lastCorrectDate),g(c.lastCorrectDate));const[_,v]=s.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:b}=(0,l.L)({onFocusWithin:i,onBlurWithin:n,onFocusWithinChange(t){t||e.setActive(!1)}}),[C,w]=(0,a.z)(void 0,!1,o.onOpenChange);!e.isActive&&C&&w(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),w(!0))},errorMessage:o.errorMessage,errorPlacement:o.errorPlacement,controlProps:{onClick:()=>{e.disabled||C||(e.setActive(!0),w(!0))}}},{inputProps:x}=_e(h.dateFieldState,Object.assign(Object.assign({},o),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:L}=function(e,t){const[i,n]=s.useState(e.lastCorrectDate),[o,r]=s.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(n(e.lastCorrectDate),r(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:o,onFocusUpdate:r},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(c,Object.assign(Object.assign({},o),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let k=o.validationState;k||(k="relative"===r?c.validationState:h.dateFieldState.validationState);const D=s.useRef(null),N=(0,y.c)(D,"relative"===r?L.controlRef:x.controlRef),E=s.useRef(null);function T(){setTimeout((()=>{var e;null===(e=E.current)||void 0===e||e.focus()}))}function I(){setTimeout((()=>{var e;null===(e=D.current)||void 0===e||e.focus({preventScroll:!0})}))}const M=s.useRef(null);return{groupProps:Object.assign(Object.assign({ref:M,tabIndex:-1,role:"group"},b),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),w(!0),T())}}),fieldProps:Ne(S,"relative"===r?L:x,"absolute"===r&&h.dateFieldState.isEmpty&&!e.isActive&&o.placeholder?{value:""}:void 0,{controlRef:N,validationState:k}),modeSwitcherProps:{size:m(o.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===r,extraProps:{"aria-label":Me("Formula input mode")},onClick:()=>{if(d("relative"===r?"absolute":"relative"),"relative"===r){const e=h.value;e&&g(e)}else c.parsedDate&&g(c.parsedDate);I()}},calendarButtonProps:{size:m(o.size),disabled:e.disabled,extraProps:{"aria-label":Me("Calendar"),"aria-haspopup":"dialog","aria-expanded":C},view:"flat-secondary",onClick:()=>{e.setActive(!0),w(!C),C||T()}},popupProps:{open:C,onEscapeKeyDown:()=>{w(!1),I()},onOutsideClick:e=>{var t;e.target&&!(null===(t=M.current)||void 0===t?void 0:t.contains(e.target))&&w(!1)},onTransitionExited:()=>{g("relative"===r?c.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:E,size:"s"===o.size?"m":o.size,readOnly:o.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(w(!1),I())},focusedValue:u,onFocusUpdate:g,minValue:o.minValue,maxValue:o.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:o.timeZone,hasClear:o.hasClear,size:o.size}}}const Re=function(e){let{getPlaceholderTime:t,mergeDateTime:i,setTimezone:n,getDateTime:o,useDateFieldState:r}=e;return function(e){var l,d;const{disabled:h,readOnly:c}=e,[u,g]=(0,a.z)(e.open,null!==(l=e.defaultOpen)&&void 0!==l&&l,e.onOpenChange),p=g,[m,f]=(0,a.z)(e.value,null!==(d=e.defaultValue)&&void 0!==d?d:null,e.onUpdate),[_,v]=s.useState(null),[b,C]=s.useState(null),y=z(o(e.value)||o(e.defaultValue)||e.placeholderValue),w=e.timeZone||y;let S=_,x=b;const L=e.format||"L",k=(e,t)=>{h||c||(f(n(i(e,t),y)),v(null),C(null))},D=r(Object.assign(Object.assign({},e),{value:m,onUpdate(e){e?k(e,e):f(null)},disabled:h,readOnly:c,validationState:e.validationState,minValue:e.minValue,maxValue:e.maxValue,isDateUnavailable:e.isDateUnavailable,format:L,placeholderValue:e.placeholderValue,timeZone:w})),N=s.useMemo((()=>{if(!D.hasTime)return;const e=[],t=D.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=D.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const n=D.sections.find((e=>"second"===e.type));n&&e.push(n.format);const s=D.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(s?` ${s.format}`:"")}),[D.hasTime,D.sections]);m&&(S=n(m,w),D.hasTime&&(x=n(m,w)));return D.hasTime&&!x&&(x=D.displayValue),{value:m,setValue(t){e.readOnly||e.disabled||f(t?n(t,y):null)},dateValue:S,timeValue:x,setDateValue:e=>{if(h||c)return;const t=!D.hasTime;D.hasTime?x||t?k(e,x||e):v(e):k(e,e),t&&p(!1,"ValueSelected")},setTimeValue:i=>{if(h||c)return;const n=null!==i&&void 0!==i?i:t(e.placeholderValue,w);S?k(S,n):C(n)},disabled:h,readOnly:c,format:L,hasDate:D.hasDate,hasTime:D.hasTime,timeFormat:N,timeZone:w,isOpen:u,setOpen(i,n){!i&&!m&&S&&D.hasTime&&k(S,x||t(e.placeholderValue,e.timeZone)),p(i,n)},dateFieldState:D}}}({getPlaceholderTime:function(e,t){return W({placeholderValue:e,timeZone:t})},mergeDateTime:H,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:be});function Oe(e){var t;const[i,n]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[o,r]=s.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[l,d]=s.useState(i);i!==l&&(d(i),i&&i.type!==o&&r(i.type));const[h,c]=s.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&c(i.value);const u=Re({value:h,onUpdate:e=>{c(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||n(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=s.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,n]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[o,r]=s.useState(null!==i&&void 0!==i?i:"");i&&i!==o&&r(i);const l=s.useMemo((()=>{var t;return i&&null!==(t=(0,f.J)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[d,h]=s.useState(l);l&&l!==d&&h(l);const c=e.validationState||o&&!l?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||n(t)},text:o,setText:t=>{if(!e.disabled&&!e.readOnly)if(r(t),(0,f.KN)(t)){const e=(0,f.J)(t);e&&(0,f.JY)(e)?n(t):n(null)}else n(null)},parsedDate:l,lastCorrectDate:d,validationState:c,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||n(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===o&&h?c(null):"relative"===o&&g&&p(null));const _="relative"===o?m.parsedDate:u.dateFieldState.displayValue,[v,b]=s.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||n(t)},disabled:e.disabled,readOnly:e.readOnly,mode:o,setMode(t){e.readOnly||e.disabled||t===o||(r(t),"relative"===t?(!i&&g||i)&&n(g?{type:"relative",value:g}:null):(!i&&h||i)&&n(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:b}}const Pe=g("relative-date-picker");function Fe(e){var t;const i=Oe(e),{groupProps:a,fieldProps:l,modeSwitcherProps:u,calendarButtonProps:g,popupProps:m,calendarProps:f,timeInputProps:_}=Ae(i,e),w=s.useRef(null),S=(0,y.c)(w,a.ref),x=(0,r.X)(),L=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,n.jsxs)("div",Object.assign({},a,{ref:S,className:Pe(null,e.className),children:[x&&"absolute"===i.mode&&(0,n.jsx)(Se,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,n.jsx)(d.o,Object.assign({},l,{controlProps:Object.assign(Object.assign({},l.controlProps),{disabled:x&&"absolute"===i.mode,className:Pe("input",{mobile:x&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(x&&"absolute"===i.mode),startContent:(0,n.jsx)(h.z,Object.assign({},u,{children:(0,n.jsx)(c.J,{data:b})})),endContent:(0,n.jsxs)(s.Fragment,{children:[!x&&!L&&(0,n.jsx)(h.z,Object.assign({},g,{children:(0,n.jsx)(c.J,{data:o})})),!x&&L&&(0,n.jsx)(De,{size:g.size,icon:C}),x&&"absolute"===i.mode&&(0,n.jsx)(De,{size:g.size,icon:L?C:o})]})})),(0,n.jsx)(p,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,n.jsx)(p,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!x&&!L&&(0,n.jsx)(v.G,Object.assign({},m,{anchorRef:w,children:(0,n.jsxs)("div",{className:Pe("popup-content"),children:["function"===typeof e.children?e.children(f):(0,n.jsx)($,Object.assign({},f)),i.datePickerState.hasTime&&(0,n.jsx)("div",{className:Pe("time-field-wrapper"),children:(0,n.jsx)(ye,Object.assign({},_))})]})}))]}))}var Be=i(72555),Ve=i(76943),We=i(29837),He=i(74718),ze=i.n(He),je=i(48509),Ue=i.n(je),Ke=i(68062),qe=i.n(Ke),$e=i(87578),Ge=i(35035);const Ye=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),Ze=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),Qe=(0,L.e)({en:Ye,ru:Ze},"Table");function Xe(e){(0,Ge.O)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Je(e,t){return"left"===e?(Xe(t),"start"):"right"===e?(Xe(t),"end"):e}const et=(0,$e.Ge)("table");class tt extends s.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>s.createRef()))},this.tableRef=s.createRef(),this.scrollContainerRef=s.createRef(),this.horizontalScrollBarRef=s.createRef(),this.horizontalScrollBarInnerRef=s.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:n,onRowClick:o,onRowMouseEnter:r,onRowMouseLeave:a,onRowMouseDown:l,getRowClassNames:d,verticalAlign:h,edgePadding:c,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===n||void 0===n?void 0:n(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===d||void 0===d?void 0:d(e,t))||[],v=Boolean(!f&&o);return s.createElement("tr",{key:tt.getRowId(this.props,e,t),onClick:!f&&o?o.bind(null,e,t):void 0,onMouseEnter:!f&&r?r.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&l?l.bind(null,e,t):void 0,className:et("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,n)=>{const{id:o,align:r,primary:a,className:l,sticky:d}=i,h=tt.getBodyCellContent(i,e,t),g=Je(r,"column.align"),m=Je(d,"column.sticky");return s.createElement("td",{key:o,style:p[n],className:et("cell",{align:g,primary:a,sticky:m,"edge-padding":c,"word-wrap":u},l)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:n,getRowId:s,getRowDescriptor:o}=e,r=null!==i&&void 0!==i?i:n.indexOf(t),a=null===o||void 0===o?void 0:o(t,r);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof s?s(t,r):String(s&&s in t?t[s]:r)}static getHeadCellContent(e){const{id:t,name:i}=e;let n;return n="function"===typeof i?i():"string"===typeof i?i:t,n}static getBodyCellContent(e,t,i){const{id:n,template:s,placeholder:o}=e;let r,a;return r="function"===typeof o?o(t,i):null!==o&&void 0!==o?o:"\u2014","function"===typeof s?a=s(t,i):"string"===typeof s?a=ze()(t,s):Ue()(t,n)&&(a=ze()(t,n)),[void 0,null,""].includes(a)&&r?r:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>s.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:n}=this.props,o=e.some((e=>{let{primary:t}=e;return t}));return s.createElement("div",{className:et({"with-primary":o,"with-sticky-scroll":t},i),"data-qa":n},t?s.createElement(s.Fragment,null,s.createElement("div",{ref:this.scrollContainerRef,className:et("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:n}=this.state;return s.createElement("thead",{className:et("head")},s.createElement("tr",{className:et("row")},e.map(((e,o)=>{const{id:r,align:a,primary:l,sticky:d,className:h}=e,c=Je(a,"column.align"),u=Je(d,"column.sticky"),g=tt.getHeadCellContent(e);return s.createElement("th",{key:r,ref:this.state.columnHeaderRefs[o],style:n[o],className:et("cell",{align:c,primary:l,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return s.createElement("tbody",{className:et("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return s.createElement("table",{ref:this.tableRef,className:et("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return s.createElement("tr",{className:et("row",{empty:!0})},s.createElement("td",{className:et("cell"),colSpan:e.length},t||Qe("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return s.createElement("div",{ref:this.horizontalScrollBarRef,className:et("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},s.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:et("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,n=i[e],s={};if("string"===typeof n.width)return{maxWidth:0,width:n.width};if("undefined"!==typeof n.width&&(s.width=n.width),!n.sticky)return s;const o="left"===n.sticky||"start"===n.sticky?t.slice(0,e):t.slice(e+1);return s["left"===n.sticky||"start"===n.sticky?"insetInlineStart":"insetInlineEnd"]=o.reduce(((e,t)=>qe()(t)?e+t:e),0),s}}tt.defaultProps={edgePadding:!0};var it=i(16318);const nt=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last {count} {unit}":"Last {{count}} {{unit}}","m":["minute","minutes","minutes"],"h":["hour","hours","hours"],"d":["day","days","days"],"w":["week","weeks","weeks"],"M":["month","months","months"],"y":["year","years","years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),st=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last {count} {unit}":"Last {{count}} {{unit}}","m":["minute","minutes","minutes"],"h":["hour","hours","hours"],"d":["day","days","days"],"w":["week","weeks","weeks"],"M":["month","months","months"],"y":["year","years","years"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),ot=(0,L.e)({en:nt,ru:st},`${u}relative-range-date-picker-presets`),rt=g("relative-range-date-picker-presets-doc"),at=[{id:"title",name:()=>ot("Range")},{id:"from",name:()=>ot("From")},{id:"to",name:()=>ot("To")}],lt=[{get title(){return ot("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return ot("From start of day")},from:"now/d",to:"now"},{get title(){return ot("This week")},from:"now/w",to:"now/w"},{get title(){return ot("From start of week")},from:"now/w",to:"now"},{get title(){return ot("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function dt(e){let{size:t,docs:i}=e;return(0,n.jsx)(tt,{columns:at,data:i,className:rt("table",{size:t})})}function ht(e){let{className:t,size:i,docs:s}=e;return(0,n.jsx)(it.J,{className:rt(null,t),tooltipContentClassName:rt("content"),hasArrow:!1,content:(0,n.jsx)(dt,{size:i,docs:s}),children:(0,n.jsx)(h.z,{className:rt("button"),view:"flat-secondary",size:m(i),children:(0,n.jsx)(c.J,{data:We.Z})})})}function ct(e){let{className:t,size:i,docs:o}=e;const[r,a]=s.useState(!1);return(0,n.jsxs)("div",{className:rt(null,t),children:[(0,n.jsx)(h.z,{className:rt("button"),view:"flat-secondary",size:"l",onClick:()=>{a(!0)},children:(0,n.jsx)(c.J,{data:We.Z})}),(0,n.jsx)(_.y,{visible:r,onClose:()=>a(!1),children:(0,n.jsx)(dt,{size:i,docs:o})})]})}function ut(e){let{className:t,size:i,docs:s=lt}=e;const o=(0,r.X)();return Array.isArray(s)&&0!==s.length?o?(0,n.jsx)(ct,{className:t,size:i,docs:s}):(0,n.jsx)(ht,{className:t,size:i,docs:s}):null}const gt=[{from:"now-1d",to:"now",get title(){return ot("Last day")}},{from:"now-3d",to:"now",get title(){return ot("Last 3 days")}},{from:"now-1w",to:"now",get title(){return ot("Last week")}},{from:"now-1M",to:"now",get title(){return ot("Last month")}},{from:"now-3M",to:"now",get title(){return ot("Last 3 months")}},{from:"now-6M",to:"now",get title(){return ot("Last 6 months")}},{from:"now-1y",to:"now",get title(){return ot("Last year")}},{from:"now-3y",to:"now",get title(){return ot("Last 3 years")}}],pt=[{from:"now-5m",to:"now",get title(){return ot("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return ot("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return ot("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return ot("Last hour")}},{from:"now-3h",to:"now",get title(){return ot("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return ot("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return ot("Last 12 hours")}}],mt=[{from:"now/d",to:"now/d",get title(){return ot("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return ot("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return ot("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return ot("This week")}},{from:"now/M",to:"now/M",get title(){return ot("This month")}},{from:"now/y",to:"now/y",get title(){return ot("This year")}},{from:"now/d",to:"now",get title(){return ot("From start of day")}},{from:"now/w",to:"now",get title(){return ot("From start of week")}},{from:"now/M",to:"now",get title(){return ot("From start of month")}},{from:"now/y",to:"now",get title(){return ot("From start of year")}}],ft=pt.concat(gt,mt);function _t(e,t){return e.filter((e=>{const i=(0,f.J)(e.from),n=(0,f.J)(e.to,{roundUp:!0});return!(!i||!n)&&(!n.isBefore(i)&&(!t||!i.isBefore(t)))}))}const vt=g("relative-range-date-picker-presets");function bt(e){let{className:t,size:i="m",minValue:o,withTime:r,onChoosePreset:a,presetTabs:l,docs:d}=e;var h,c;const u=s.useMemo((()=>function(e){let{minValue:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(((e,i)=>{const n=_t(i.presets,t);return n.length&&e.push(Object.assign(Object.assign({},i),{presets:n})),e}),[])}(null!==l&&void 0!==l?l:function(e){let{withTime:t,minValue:i}=e;const n=[],s={id:"main",title:ot("Main"),presets:[]},o=gt;t&&o.unshift(...pt),s.presets=_t(o,i),s.presets.length>0&&n.push(s);const r={id:"other",title:ot("Other"),presets:_t(mt,i)};return r.presets.length>0&&n.push(r),n}({withTime:r}),{minValue:o})),[r,o,l]),[g,p]=s.useState(null===(h=u[0])||void 0===h?void 0:h.id);if(0===u.length)return null;const m=null!==(c=u.find((e=>e.id===g)))&&void 0!==c?c:u[0];return m?(m.id!==g&&p(m.id),(0,n.jsxs)("div",{className:vt({size:i},t),children:[(0,n.jsxs)("div",{className:vt("tabs"),children:[(0,n.jsx)(Be.m,{activeTab:g,onSelectTab:p,items:u,size:"s"===i?"m":i}),(0,n.jsx)(ut,{className:vt("doc"),size:i,docs:d})]}),(0,n.jsx)("div",{className:vt("content"),children:(0,n.jsx)(yt,{presets:m.presets,onChoosePreset:a,size:i})})]})):null}const Ct={s:28,m:28,l:32,xl:36};function yt(e){let{presets:t,onChoosePreset:i,size:o="m"}=e;const r=s.useRef(null);return s.useEffect((()=>{var e,t;const i=r.current,n=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&n)try{n.setAttribute("tabindex","0"),n.setAttribute("class",vt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return n.addEventListener("focus",e),()=>{n.removeEventListener("focus",e)}}catch(s){}}),[]),(0,n.jsx)(Ve.a,{ref:r,className:vt("list"),itemClassName:vt("item"),items:t,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ct[o],onItemClick:e=>{i(e.from,e.to)}})}var wt=i(26390),St=i(23795);function xt(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.CQ)({timeZone:e}).timeZone():e}(e)}function Lt(e){return`UTC ${(0,f.CQ)({timeZone:e}).format("Z")}`}function kt(e){let{value:t,timeZone:i,alwaysShowAsAbsolute:n,format:s="L",presets:o}=e;var r,a,l,d,h,c;if(!t)return"";const u="default"===i?"":` (${Lt(i)})`;let g="";t.start&&(g="relative"!==t.start.type||n?null!==(a=null===(r=(0,f.J)(t.start.value,{timeZone:i}))||void 0===r?void 0:r.format(s))&&void 0!==a?a:"":t.start.value);let p="";if(t.end&&(p="relative"!==t.end.type||n?null!==(d=null===(l=(0,f.J)(t.end.value,{timeZone:i,roundUp:!0}))||void 0===l?void 0:l.format(s))&&void 0!==d?d:"":t.end.value),!n&&"relative"===(null===(h=t.start)||void 0===h?void 0:h.type)&&"relative"===(null===(c=t.end)||void 0===c?void 0:c.type))return`${function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft;const n=e.replace(/\s+/g,""),s=t.replace(/\s+/g,"");for(const o of i)if(o.from===n&&o.to===s)return o.title;if("now"===t){const t=/^now-(\d+)([m|h|d|w|M|y])$/.exec(e);if(t){const[,e,i]=t;if(["m","h","d","w","M","y"].includes(i))return ot("Last {count} {unit}",{count:e,unit:ot(i,{count:Number(e)})})}}return n+" \u2014 "+s}(t.start.value,t.end.value,o)}${u}`;return`${g} \u2014 ${p}${u}`}const Dt=JSON.parse('{"default":"Default","system":"Browser time"}'),Nt=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Et=(0,L.e)({en:Dt,ru:Nt},`${u}relative-range-date-picker-zones`),Tt={},It=(0,f.m3)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let n=Tt[i];n||(n={label:i,options:[]},Tt[i]=n,e.push(n)),n.options.push({value:t})}return e}),[]);It.unshift({value:"UTC"}),It.unshift({value:"system",get content(){return Et("system")}}),It.unshift({value:"default",get content(){return Et("default")}});const Mt=g("relative-range-date-picker-zones");function At(e){const t=xt(e.value),i=e.isMobile?"xl":e.size;return(0,n.jsx)(wt.P,{value:[t],options:It,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:s=>{const o="system"===t||"default"===t?Et(t):t;return(0,n.jsxs)(h.z,{onClick:s.onClick,ref:s.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,extraProps:{"aria-haspopup":"listbox","aria-expanded":s.open,onKeyDown:s.onKeyDown},className:Mt("control"),children:[`${o} (${Lt(t)})`,(0,n.jsx)(c.J,{className:Mt("control-icon"),data:S.Z,size:e.isMobile?20:16})]})},renderOption:e=>{let{value:t,content:i}=e;const s=null!==i&&void 0!==i?i:t;return(0,n.jsxs)("span",{className:Mt("item"),children:[(0,n.jsxs)("span",{className:Mt("item-title"),title:t,children:[s,"\xa0"]}),(0,n.jsx)(St.x,{color:"secondary",children:Lt(t)})]})},filterable:!0})}const Rt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),Ot=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Pt=(0,L.e)({en:Rt,ru:Ot},`${u}relative-range-date-picker-dialog`),Ft=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),Bt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),Vt=(0,L.e)({en:Ft,ru:Bt},`${u}validation`);function Wt(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Value";const r=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),l=e&&(null===n||void 0===n?void 0:n(e))||!1,d=r||a||l,h=[];return d&&(a&&t&&h.push(Vt("Value must be {minValue} or later.",{minValue:t.timeZone(s).format(),value:o})),r&&i&&h.push(Vt("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(s).format(),value:o})),l&&h.push(Vt("Selected date unavailable."))),{isInvalid:d,errors:h}}function Ht(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n;if(!e&&!t)return null;const{isInvalid:s}=zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(n=i.timeZone)&&void 0!==n?n:"default");return s?null:{start:e,end:t}}function zt(e,t,i,n,s,o,r){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.J)(e.value,{timeZone:r}):null,l=t?(0,f.J)(t.value,{timeZone:r,roundUp:!0}):null,d=Wt(a,n,s,o,r);a||i||(d.isInvalid=!0,d.errors.push(Pt("Value is required.")));const h=Wt(l,n,s,o,r);return l||i||(h.isInvalid=!0,h.errors.push(Pt("Value is required."))),a&&l&&l.isBefore(a)&&(d.isInvalid=!0,d.errors.push(Pt('"From" can\'t be after "To".'))),{isInvalid:d.isInvalid||h.isInvalid,startValidationResult:d,endValidationResult:h}}const jt=g("relative-range-date-picker-dialog");function Ut(e){let{props:t,state:i,open:s,onClose:o,focusInput:r,isMobile:a,anchorRef:l,className:d}=e;return a?(0,n.jsx)(_.y,{visible:s,onClose:o,contentClassName:jt("content",{mobile:!0,size:"xl"},d),children:(0,n.jsx)(Kt,Object.assign({},t,{size:"xl",state:i,onApply:o}))}):(0,n.jsx)(v.G,{open:s,onEscapeKeyDown:()=>{o(),r()},onClose:o,role:"dialog",anchorRef:l,contentClassName:jt("content",{size:t.size},d),autoFocus:!0,focusTrap:!0,children:(0,n.jsx)(Kt,Object.assign({},t,{state:i,onApply:o}))})}function Kt(e){var t,i,o,r,a,l,d;const c=function(e,t){var i,n,o,r;const{withApplyButton:a,allowNullableValues:l}=t,[d,h]=s.useState(null!==(n=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==n?n:null),[c,u]=s.useState(null!==(r=null===(o=e.value)||void 0===o?void 0:o.end)&&void 0!==r?r:null),[g,p]=s.useState(e.timeZone),m=a?g:e.timeZone,f=s.useMemo((()=>zt(d,c,l,t.minValue,t.maxValue,t.isDateUnavailable,m)),[l,c,t.isDateUnavailable,t.maxValue,t.minValue,d,m]);return{start:d,end:c,timeZone:m,setStart:function(i){h(i),a||e.setValue(Ht(i,c,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Ht(d,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,n){h(i),u(n),a||e.setValue(Ht(i,n,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Ht(d,c,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Ht(d,c,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),u=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.CQ)({timeZone:e.state.timeZone}),g={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:jt("pickers"),children:[(0,n.jsx)(Fe,Object.assign({},g,{validationState:(null===(i=c.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(r=null===(o=c.startValidation)||void 0===o?void 0:o.errors)||void 0===r?void 0:r.join("\n"))||Pt("Value is incorrect."),placeholderValue:u.startOf("day"),label:Pt("From"),value:c.start,onUpdate:c.setStart})),(0,n.jsx)(Fe,Object.assign({},g,{validationState:(null===(a=c.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(d=null===(l=c.endValidation)||void 0===l?void 0:l.errors)||void 0===d?void 0:d.join("\n"))||Pt("Value is incorrect."),placeholderValue:u.endOf("day"),label:Pt("To"),value:c.end,onUpdate:c.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,n.jsx)(h.z,{disabled:c.isInvalid,size:e.size,onClick:()=>{c.applyValue(),e.onApply()},className:jt("apply"),width:"max",children:Pt("Apply")}):null,e.withPresets&&!e.readOnly?(0,n.jsx)(bt,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{c.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:jt("presets")}):null,e.withZonesList?(0,n.jsx)("div",{className:jt("zone"),children:(0,n.jsx)(At,{value:c.timeZone,onUpdate:c.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const qt=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),$t=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),Gt=(0,L.e)({en:qt,ru:$t},`${u}relative-range-date-picker`);function Yt(e){var t,i;const[n,o]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[r,l]=(0,a.z)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),d=s.useMemo((()=>function(e,t,i,n,s,o){if(!e)return{isInvalid:!1,errors:[]};const r=e.start?(0,f.J)(e.start.value,{timeZone:o}):null,a=e.end?(0,f.J)(e.end.value,{timeZone:o,roundUp:!0}):null,l=Wt(r,i,n,s,o,Gt('"From"'));r||t||(l.isInvalid=!0,l.errors.push(Gt('"From" is required.')));const d=Wt(a,i,n,s,o,Gt('"To"'));a||t||(d.isInvalid=!0,d.errors.push(Gt('"To" is required.')));r&&a&&a.isBefore(r)&&(l.isInvalid=!0,l.errors.push(Gt('"From" can\'t be after "To".')));return{isInvalid:l.isInvalid||d.isInvalid,errors:l.errors.concat(d.errors)}}(n,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,r)),[n,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,r]);return Object.assign({value:n,timeZone:r,setValue(t,i){var s;o(t),l(i),(n!==t||n&&r!==i)&&(null===(s=e.onUpdate)||void 0===s||s.call(e,t,i))}},d)}const Zt=g("relative-range-date-picker");function Qt(e){var t;const i=Yt(e),u=(0,r.X)(),g=s.useRef(null),f=s.useRef(null),[_,v]=s.useState(!1),[b,C]=(0,a.z)(void 0,!1,e.onOpenChange),{focusWithinProps:y}=(0,l.L)({isDisabled:e.disabled,onFocusWithin:t=>{var i;_||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;b||(v(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}}),{alwaysShowAsAbsolute:w,presetTabs:S,getRangeTitle:x}=e,L=e.format||"L",k=s.useMemo((()=>"function"===typeof x?x(i.value,i.timeZone):kt({value:i.value,timeZone:i.timeZone,alwaysShowAsAbsolute:w,format:L,presets:null===S||void 0===S?void 0:S.flatMap((e=>{let{presets:t}=e;return t}))})),[w,L,x,S,i.timeZone,i.value]),D=e.validationState||(i.isInvalid?"invalid":void 0),N=null!==(t=e.errorMessage)&&void 0!==t?t:i.errors.join("\n");return(0,n.jsxs)("div",Object.assign({ref:g},y,{className:Zt(null,e.className),style:e.style,children:[(0,n.jsx)(d.o,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:k,placeholder:e.placeholder,onUpdate:t=>{e.readOnly||t||i.setValue(null,"default")},controlProps:{"aria-haspopup":"dialog","aria-expanded":b,disabled:u,className:Zt("input",{mobile:u}),onClick:()=>{e.disabled||b||(v(!0),C(!0))}},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),C(!0))},onFocus:()=>{_||(v(!0),C(!0))},validationState:D,errorMessage:N,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,n.jsx)(h.z,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":b},onClick:()=>{v(!0),C(!b)},children:(0,n.jsx)(c.J,{data:o})})}),u?(0,n.jsx)("button",{className:Zt("mobile-trigger",{"has-clear":Boolean(e.hasClear&&i.value),"has-errors":i.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:()=>{v(!0),C(!0)}}):null,(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t;return Xt(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t;return Xt(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,onReset:e=>{i.setValue(e.value,e.timeZone)},value:{value:i.value,timeZone:i.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,n.jsx)(Ut,{state:i,props:e,open:b,onClose:()=>{C(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:g,isMobile:u,className:e.popupClassName})]}))}function Xt(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},54296:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706l7.706 7.706Zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z",clipRule:"evenodd"}))},58903:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56l2.97 2.97Zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56l2.97 2.97Z",clipRule:"evenodd"}))},29651:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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 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.056-1.645.28-.196.402-.332.46-.425a.543.543 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a.997.997 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},12205:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"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 0ZM5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Z",clipRule:"evenodd"}))},92921:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"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 0ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},49459:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M13.5 6H8.75v2.5h4.75V6ZM7.25 6H2.5v2.5h4.75V6ZM1 6V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6Zm7.75 4h4.75v1a1.5 1.5 0 0 1-1.5 1.5H8.75V10ZM2.5 10h4.75v2.5H4A1.5 1.5 0 0 1 2.5 11v-1Z",clipRule:"evenodd"}))},7603:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299Zm-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.077 2.077 0 0 0-1.88-1.88Zm3.098.658a3.59 3.59 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88l-1.28 1.28Z",clipRule:"evenodd"}))},87669:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm1 1.225a.71.71 0 0 0-.679-.72A11.087 11.087 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10c.058 0 .117 0 .175.002.442.008.825-.335.825-.777Zm3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848l2.822-2.822Zm-.883 4.76 3.068-3.067a.767.767 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.766.766 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848Z",clipRule:"evenodd"}))},81101:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164l8.505-4.917Z",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},71267:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1Z",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},13872:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.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 3Zm-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3v-7Zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07l3.5-4.5Z",clipRule:"evenodd"}))},1995:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5H4.5ZM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25ZM2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9Zm11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))},34996:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5ZM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H4Zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0ZM8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5h-2.5Z",clipRule:"evenodd"}))},44899:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2Zm2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5H11Zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438l.315-7.562Zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0Zm3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))},92243:(e,t,i)=>{"use strict";i.d(t,{hP:()=>E,od:()=>we});var n=i(37547);function s(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const o="ParanoidC";function r(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const r=s("+","plus"),a=s("-","minus"),l=s("1:1","normal"),d=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",o),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const s=t.colors||{};return new n.fabric.Canvas(o,{selection:!1,backgroundColor:s.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,n){const s=document.createElement("div");s.className="paranoid-controls";const o=document.createElement("style");return o.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(n),s.appendChild(o),s.appendChild(t),s.appendChild(e),s.appendChild(i),s}(r,a,l,t.colors);return i.appendChild(h),function(e,t,i,n,s){const o=s.minZoom||.2,r=s.zoomStep||.2,a=s.maxZoom||2,l=s.startZoom||1;e.setZoom(l),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=r,i<o&&(i=o),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=r,i>a&&(i=a),e.setZoom(i)})),n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(d,r,a,l,t),function(e){let t=!1,i=0,n=0;e.on("mouse:down",(s=>{s.target||(e.setCursor("grabbing"),t=!0,i=s.pointer.x,n=s.pointer.y)})),e.on("mouse:move",(s=>{t&&(e.viewportTransform[4]+=s.pointer.x-i,e.viewportTransform[5]+=s.pointer.y-n,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=s.pointer.x,n=s.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(d),d}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},l={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},d="Arial, sans-serif",h=13,c=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(1868);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let n=!1;i&&(i.children.length>0?t.unshift(...i.children):n=!0,e(i,n))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const n=this.findSources(i,e.links);let s=[],o={},r=new Map;return n.forEach((t=>{const n=this.mapNodesToTree(t,i,e.links);o=Object.assign(Object.assign({},n.groups),o),r=new Map([...r,...n.notGroupMemebersChildren]),s.push(n.tree)})),r.forEach(((e,t)=>{o[t]&&o[t].addNodes(e)})),s=s.reduce(((e,t)=>{const i=t.root.data.group;return i?o[i].members.push(t):e.push(t),e}),[]),s}getGroups(e){let{nodes:t}=e;const i=new Map;return t.forEach((e=>{if(e.group){const t=i.get(e.group);t?t.push(e.name):i.set(e.group,[e.name])}})),i}findSources(e,t){const i=t.map((e=>{let{to:t}=e;return t}));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var n;const s=this.createNode(e),o={};this.appendGoup(o,s);const r=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(r,o)(s,(null===(n=r.find((t=>t.name===e.name)))||void 0===n?void 0:n.children)||[]);return{tree:new p(s),groups:o,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,n=(s,o)=>{const r=o.map((i=>{const s=e.find((e=>{let{name:t}=e;return t===i})),o=this.createNode(s);return this.appendGoup(t,o),s.children.length>0&&n(o,s.children),o})),a=s.data.group,l=Boolean(a),d=[],h=[];if(r.forEach((e=>{const t=e.data.group;l?a===t?d.push(e):h.push(e):d.push(e)})),s.addNodes(d),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return n}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}const v=16,b=16,C=24;function y(e){switch(e){case 0:return 0;case 1:return b;default:return C}}function w(e,t,i,n,s,o){const r=function(e,t,i,n,s,o,r){const a=new Map,l=new Map,d=new Map,h=[];return n.traverseBF((n=>{const{object:s,width:o,height:l}=function(e,t,i,n,s,o,r){var a,l;const d=null!==(a=t.shapeInstance)&&void 0!==a?a:o.node(e,{top:i,left:n},t,s,r),h=null!==(l=t.canvasNode)&&void 0!==l?l:d.getShape();return t.addShapeInstance(d),t.addCanvasNode(h),{object:h,top:i,left:n,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,n,0,0,t,i,r);a.set(n,{width:o,height:l}),h.push(s)})),function e(t){const{width:i}=a.get(t);let n=i,s=0;if(t.parent&&1===t.parent.children.length&&l.has(t.parent)){const e=l.get(t.parent);n<e&&(n=e)}return l.set(t,n),t.children.length>0&&(s=(t.children.length-1)*v+t.children.reduce(((t,i)=>t+e(i)),0),d.set(t,s)),n=Math.max(n,s),l.set(t,n),n}(n.root),function e(t,i,n){let s=n,o=n;for(const r of t){const{width:t,height:n}=a.get(r),h=l.get(r),c=i,u=s+Math.floor(h/2)-Math.floor(t/2);if(r.canvasNode.set({top:c,left:u}),r.canvasNode.setCoords(),s=s+h+v,r.children.length){let t=0;const s=d.get(r);s<h&&(t=Math.floor((h-s)/2));const a=i+n+y(r.children.length),l=o+t;e(r.children,a,l)}o=s}}([n.root],s,o),h}(e.canvas,n,s,e,t,i,o);let a=0,l=0;return r.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),l=Math.max(l,(e.top||0)+e.getScaledHeight())})),{nodes:r,bottom:l,right:a}}function S(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function x(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class L{constructor(e,t,i,n){this.canvas=r(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=n,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(o);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,s=t;const o=this.opts.initialTop;let r=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:n,right:a}=w(e,o,r,this.opts,this.shapes,this.em);r=a+15,i=Math.max(n,i),s=Math.max(a,s),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,s=[];return e.data.links.reduce(((t,o)=>{let{from:r}=o;const a=e.nodes.get(r);if(a&&1===a.children.length&&!s.includes(r)){const{x:e,y:o}=S(a),d=new n.fabric.Path(`M ${e} ${o}\n V ${o+b}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new n.fabric.Group([d],Object.assign({},l))),s.push(r)}if(a&&a.children.length>1&&!s.includes(r)){const{x:e,y:o}=S(a),d=C/2,h=6,c=[new n.fabric.Path(`M ${e} ${o}\n V ${o+d}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=x(a.children[0]),{x:p,y:m}=x(a.children[a.children.length-1]),f=new n.fabric.Path(`M ${u} ${g}\n V ${g-d+h}\n Q ${u} ${g-d} ${u+h} ${g-d}\n H ${p-h}\n Q ${p} ${m-d} ${p} ${m+h-d}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});c.push(f),a.children.forEach(((e,t)=>{if(0===t||t===a.children.length-1)return;const{x:s,y:o}=x(e),r=new n.fabric.Path(`M ${s} ${o}\n V ${o-d}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});c.push(r)})),t.push(new n.fabric.Group(c,Object.assign({},l))),s.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:n,left:s,height:o,width:r}=i.getBoundingRect(),a=s+r,l=n+o;a>e&&(e=a),l>t&&(t=l)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,s=this.canvas.getHeight()/t,o=Math.min(i,s);if(o<1){this.canvas.setZoom(o);const e=this.opts.initialTop*o,t=this.opts.initialLeft*o,i=this.opts.initialTop-e,s=this.opts.initialLeft-t;this.canvas.relativePan(new n.fabric.Point(s,i))}}}function k(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,n)=>{const s=t.getPropertyValue(e[n]).replace(/ /g,"");return s&&(i[n]=s),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const D={linkType:"arrow"};function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),k()),t)})}function E(e,t,i,n){const s=N(i);return new L(e,s,t,n)}var T=i(34706),I=(i(58399),i(74647),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,n){return e[0]===t&&(i=n,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},t.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,n=this.__entries__;i<n.length;i++){var s=n[i];e.call(t,s[1],s[0])}},t}()}()),M="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),R="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},O=2;var P=20,F=["top","right","bottom","left","width","height","size","weight"],B="undefined"!==typeof MutationObserver,V=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,n=!1,s=0;function o(){i&&(i=!1,e()),n&&a()}function r(){R(o)}function a(){var e=Date.now();if(i){if(e-s<O)return;n=!0}else i=!0,n=!1,setTimeout(r,t);s=e}return a}(this.refresh.bind(this),P)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){M&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){M&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;F.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),W=function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var s=n[i];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},H=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},z=G(0,0,0,0);function j(e){return parseFloat(e)||0}function U(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+j(e["border-"+i+"-width"])}),0)}function K(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return z;var n=H(e).getComputedStyle(e),s=function(e){for(var t={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var s=n[i],o=e["padding-"+s];t[s]=j(o)}return t}(n),o=s.left+s.right,r=s.top+s.bottom,a=j(n.width),l=j(n.height);if("border-box"===n.boxSizing&&(Math.round(a+o)!==t&&(a-=U(n,"left","right")+o),Math.round(l+r)!==i&&(l-=U(n,"top","bottom")+r)),!function(e){return e===H(e).document.documentElement}(e)){var d=Math.round(a+o)-t,h=Math.round(l+r)-i;1!==Math.abs(d)&&(a-=d),1!==Math.abs(h)&&(l-=h)}return G(s.left,s.top,a,l)}var q="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof H(e).SVGGraphicsElement}:function(e){return e instanceof H(e).SVGElement&&"function"===typeof e.getBBox};function $(e){return M?q(e)?function(e){var t=e.getBBox();return G(0,0,t.width,t.height)}(e):K(e):z}function G(e,t,i,n){return{x:e,y:t,width:i,height:n}}var Y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=G(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=$(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Z=function(e,t){var i=function(e){var t=e.x,i=e.y,n=e.width,s=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(o.prototype);return W(r,{x:t,y:i,width:n,height:s,top:i,right:t+n,bottom:s+i,left:t}),r}(t);W(this,{target:e,contentRect:i})},Q=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new I,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof H(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof H(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Z(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),X="undefined"!==typeof WeakMap?new WeakMap:new I,J=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=V.getInstance(),n=new Q(t,i,this);X.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){J.prototype[e]=function(){var t;return(t=X.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;class ee extends T.Component{constructor(e){super(e),this.handleResize=debounce((e=>{var t,i,n;const{contentRect:s}=e[0];null===this.paranoid||void 0===t||t.getCanvas().setWidth(s.width),null===this.paranoid||void 0===i||i.getCanvas().setHeight(s.height),null===this.paranoid||void 0===n||n.getCanvas().renderAll()}),300),this.container=React.createRef(),this.resizeObserver=new ResizeObserver(this.handleResize)}componentDidMount(){this.paranoid=getTopology(paranoidRoot,this.props.data,this.props.opts,this.props.shapes),this.paranoid.render(),this.resizeObserver.observe(this.container.current),this.props.initListeners&&this.props.initListeners(this.paranoid)}componentDidUpdate(e){let{data:t,opts:i}=e;var n;!this.paranoid||isEqual(t,this.props.data)&&isEqual(i,this.props.opts)||(null===this.paranoid||void 0===n||n.destroy(),this.paranoid=getTopology(paranoidRoot,this.props.data,this.props.opts,this.props.shapes),this.paranoid.render(),this.props.initListeners&&this.props.initListeners(this.paranoid))}componentWillUnmount(){this.paranoid&&(this.paranoid.destroy(),this.paranoid=void 0),this.resizeObserver.disconnect()}render(){const{styles:e}=this.props;return React.createElement("div",{ref:this.container,id:paranoidRoot,style:e||{height:"100%"}})}}class te extends T.Component{componentDidMount(){this.paranoid=getCompactTopology(CompactTopology_paranoidRoot,this.props.data,this.props.opts),this.paranoid.renderCompactTopology()}componentDidUpdate(e){let{data:t,opts:i}=e;var n;!this.paranoid||isEqual(t,this.props.data)&&isEqual(i,this.props.opts)||(null===this.paranoid||void 0===n||n.destroy(),this.paranoid=getCompactTopology(CompactTopology_paranoidRoot,this.props.data,this.props.opts),this.paranoid.renderCompactTopology())}componentWillUnmount(){this.paranoid&&this.paranoid.destroy()}render(){const{styles:e}=this.props;return React.createElement("div",{id:CompactTopology_paranoidRoot,style:e||{height:"100%"}})}}var ie=i(74718),ne=i.n(ie);const se={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class oe{constructor(e,t,i,n){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=n,this.textProps={fontSize:se.textFontSize,lineHeight:se.textLineHeight,fontFamily:d,fill:null===n||void 0===n?void 0:n.titleColor},this.selectedGroup=t[0].group;const s=this.createTitles(),o=s.map((e=>e.getScaledHeight())),r=Math.max.apply(null,o);this.lineTop=this.top+r+se.textOffset;const a=this.createLine();this.content=this.createContent(s),this.group=this.createGroup(s,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((e=>{let{group:t}=e;return t})).map((t=>{var i,s;const o=new n.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(s=this.colors)||void 0===s?void 0:s.textColor}));return e+=o.getScaledWidth()+se.statsOffset,o}))}createLine(){return new n.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${se.expandedWidth-2*se.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map(((t,i)=>{let{group:s,stats:o}=t;const r=this.getContentItems(o,this.lineTop),a=e[i],l=a.left||0,d=l+a.getScaledWidth();return{group:s,items:new n.fabric.Group(r,{opacity:this.selectedGroup===s?1:0}),title:a,hoverLine:this.createHoverLine(l,d,s)}}))}getContentItems(e,t){let i=t+2*se.textOffset;const s=[],o=e=>{e.forEach((e=>{let{name:t,value:o}=e;var r;const a=new n.fabric.Text(t,Object.assign({left:this.left,top:i},this.textProps)),l=se.expandedWidth/2-se.padding,d=se.expandedWidth-2*se.padding,h=new n.fabric.Textbox(String(o),Object.assign(Object.assign({left:l,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:d-l}));s.push(a,h),i+=Math.max(a.getScaledHeight(),h.getScaledHeight())+se.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?o(e):e.forEach(((t,r)=>{let{name:a,items:l}=t;const d=new n.fabric.Text(a,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(s.push(d),i+=d.getScaledHeight()+se.textOffset,o(l),r!==e.length-1){const e=new n.fabric.Path(`M ${this.left} ${i}\n H ${se.expandedWidth-2*se.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});s.push(e),i+=e.getScaledHeight()+se.textOffset}})),s}createGroup(e,t,i){const s=i.map((e=>{let{items:t}=e;return t})),o=i.map((e=>{let{hoverLine:t}=e;return t}));return new n.fabric.Group([...e,t,...s,...o],Object.assign({left:this.coords.left,top:this.coords.top},l))}createHoverLine(e,t,i){return new n.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((e=>{let{group:t,title:i,items:n,hoverLine:s}=e;i.on("mousedown",(()=>{const e=this.selectedGroup,o=this.content.find((t=>t.group===e));o&&(o.title.set({fill:this.colors.textColor}),o.items.set({opacity:0}),o.hoverLine.set({opacity:0}),i.set({fill:this.colors.titleColor}),n.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=t,this.canvas.requestRenderAll())}))}))}}function re(e,t,i,n,s){return new oe(e,t,{top:i,left:n},s).getCanvasObject()}function ae(e,t,i){return new n.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:d,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const le={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:16,textOffset:8},de={scaleX:16/512,scaleY:16/512,originY:"center"};function he(e,t,i){const s=new n.fabric.Text(e,{fontSize:le.textFontSize,lineHeight:le.textFontSize,fontFamily:d,fill:i.getCommonColor("text-misc"),originY:"center"}),o=[s];let r;switch(e){case"Merge":r=new n.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",de);break;case"UnionAll":r=new n.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",de);break;case"HashShuffle":r=new n.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",de);break;case"Map":r=new n.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",de);break;case"Broadcast":r=new n.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",de)}return r&&(r.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),s.set({left:22}),o.push(r)),new n.fabric.Group(o,Object.assign(Object.assign({},l),{hoverCursor:t?"pointer":"default"}))}class ce{constructor(e,t,i,n,s){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=s,this.data=ne()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+le.padding,new n.fabric.Rect({width:le.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:le.borderRadius,ry:le.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ae(this.data.id,this.isExpandable(),this.opts.colors),he(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=le.padding,n=this.expanded?le.expandedWidth:le.width,s=t.getScaledWidth();e.set({left:0,top:4,width:n-4}),t.set({left:n/2-s/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,n=i.getScaledWidth();let s,o;this.expanded?(this.stats=re(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+le.padding,(this.group.left||0)+le.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*le.padding,s=le.expandedWidth,o=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(s=le.width,o=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const r=function(e,t){const i=[];return t.forEachObject((n=>{i.push(n),t.removeWithUpdate(n),e.add(n)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:s,height:o,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:s-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-n/2}),r()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const ue={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:c,padding:12};class ge{constructor(e,t,i,s,o){this.nodeHeight=0,this.coords=t,this.opts=s,this.data=ne()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ue.padding,new n.fabric.Polygon([{x:ue.bevelSize,y:0},{x:ue.width-ue.bevelSize,y:0},{x:ue.width,y:ue.bevelSize},{x:ue.width,y:this.nodeHeight-ue.bevelSize},{x:ue.width-ue.bevelSize,y:this.nodeHeight},{x:ue.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-ue.bevelSize},{x:0,y:ue.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new n.fabric.Text(e.join("\n"),{fontSize:ue.titleFontSize,lineHeight:ue.titleLineHeight,left:0,top:26,fontFamily:d,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=ue.padding,i=e.getScaledWidth();e.set({left:ue.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const pe=40,me=40,fe=20;class _e{constructor(e,t,i,s,o){this.coords=t,this.opts=s,this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new n.fabric.Rect({width:pe,height:me,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:fe,ry:fe,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body],Object.assign({top:e,left:t},l))}}const ve={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,textOffset:8};class be{constructor(e,t,i,s,o){this.nodeHeight=0,this.coords=t,this.opts=s,this.data=ne()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ve.padding,new n.fabric.Rect({width:ve.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new n.fabric.Text(e.join("\n"),{fontSize:ve.textFontSize,lineHeight:ve.textLineHeight,left:0,top:26,fontFamily:d,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=ve.padding,i=e.getScaledWidth();e.set({left:ve.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const Ce={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,textOffset:8};class ye{constructor(e,t,i,s,o){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=o,this.data=ne()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+Ce.padding,new n.fabric.Rect({width:Ce.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:Ce.borderRadius,ry:Ce.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ae(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],s=this.isExpandable(),o=this.opts.colors,new n.fabric.Text(i.join("\n"),{fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:o.getCommonColor("text-primary"),hoverCursor:s?"pointer":"default"}));var i,s,o;const r=function(e,t){if(0===e.length)return new n.fabric.Group([],Object.assign({top:0,left:0},l));const i=new n.fabric.Text("Tables:",{fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),s=i.getScaledWidth()+2,o=Ce.width-2*Ce.padding-s,r=new n.fabric.Textbox(e.join("\n"),{left:s,width:o,fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new n.fabric.Group([i,r],Object.assign({top:0,left:0},l))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new n.fabric.Group([],Object.assign({top:0,left:0},l));const i=new n.fabric.Text("CTE:",{fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),s=i.getScaledWidth()+2,o=Ce.width-2*Ce.padding-s,r=new n.fabric.Textbox(e,{left:s,width:o,fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new n.fabric.Group([i,r],Object.assign({top:0,left:0},l))}(this.data.cte||"",this.opts.colors);return[e,t,r,a]}setShapeObjectsCoords(){const[e,t,i,n]=this.objects;let s=Ce.padding;const o=Ce.padding;e.set({left:0,top:4,width:(this.expanded?Ce.expandedWidth:Ce.width)-4}),t.set({left:o,top:s}),s+=t.getScaledHeight(),i.set({left:o,top:s+(0===i.size()?0:Ce.textOffset)}),s+=i.getScaledHeight(),n.set({left:o,top:s+(0===n.size()?0:Ce.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=Ce.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=re(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+Ce.padding,(this.group.left||0)+Ce.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*Ce.padding;const t=Ce.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function we(e,t,i,n,s){return function(e){const t=ne()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ce(e,t,i,n,s):function(e){const t=ne()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new be(e,t,i,n,s):function(e){const t=ne()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new _e(e,t,i,n,s):function(e){const t=ne()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new ge(e,t,i,n,s):new ye(e,t,i,n,s)}},74679:(e,t,i)=>{"use strict";i.d(t,{b:()=>R});var n=i(34706),s=i(2915),o=i(72616),r=i(38610),a=i(14561),l=i(24840),d=i(1713),h=i(79777);const c=n.createContext(null),u=()=>{const e=n.useContext(c);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return n.createElement(o.z,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(87578);const m=18,f=(0,p.Ge)("alert"),_=e=>{let{layout:t,view:i,children:s}=e;return n.createElement(c.Provider,{value:{layout:t,view:i}},s)};var v=i(3948),b=i(92921),C=i(29254),y=i(52232);const w=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 14Zm3.1-8.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"}));var S=i(22927),x=i(15268),L=i(78167);const k=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",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.216 2.216 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414Z"}));var D=i(83619);const N={danger:{filled:v.Z,outlined:b.Z},info:{filled:C.Z,outlined:y.Z},success:{filled:w,outlined:S.Z},warning:{filled:x.Z,outlined:L.Z},utility:{filled:k,outlined:D.Z},normal:null};var E=i(23795);var T=i(3581);const I=JSON.parse('{"label_close":"Close"}'),M=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),A=(0,T.e)({en:I,ru:M},"Alert"),R=e=>{const{theme:t="normal",view:i="filled",layout:c="vertical",message:u,className:g,corners:p,style:v,onClose:b,align:C,qa:y}=e;return n.createElement(_,{layout:c,view:i},n.createElement(r.Z,{style:v,className:f({corners:p},(0,d.W)({py:4,px:5},g)),theme:t,view:i,qa:y},n.createElement(h.k,{gap:"3",alignItems:C},"undefined"===typeof e.icon?n.createElement(R.Icon,{theme:t,view:i}):e.icon,n.createElement(h.k,{direction:"vertical"===c?"column":"row",gap:"5",grow:!0},n.createElement(h.k,{gap:"2",grow:!0,className:f("text-content")},n.createElement(h.k,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?n.createElement(R.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(R.Actions,{items:e.actions}):e.actions),b&&n.createElement(o.z,{view:"flat",className:f("close-btn"),onClick:b,extraProps:{"aria-label":A("label_close")}},n.createElement(a.J,{data:s.Z,size:m,className:(0,l.V)({color:"secondary"})})))))};R.Icon=e=>{let{className:t,theme:i,view:s="filled",size:o=m}=e;const r=N[i];if(!r)return null;let d;return"success"===i?d="positive":"normal"!==i&&(d=i),n.createElement("div",{className:f("icon",(0,l.V)({color:d},t))},n.createElement(a.J,{data:r[s],size:o}))},R.Title=e=>{let{text:t,className:i}=e;return n.createElement(E.x,{variant:"subheader-2",className:f("title",i)},t)},R.Actions=e=>{let{items:t,children:i,className:s}=e;const{layout:o}=u();return n.createElement(h.k,{className:f("actions",{minContent:"horizontal"===o},s),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===o?"center":"flex-start"},(null===t||void 0===t?void 0:t.map(((e,t)=>{let{handler:i,text:s}=e;return n.createElement(g,{key:t,onClick:i},s)})))||i)},R.Action=g},38610:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(23337),s=i(34706),o=i(75813),r=i(22396);const a=(0,i(87578).Ge)("card"),l=s.forwardRef((function(e,t){const{type:i="container",theme:l,view:d,size:h="m",children:c,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,n._T)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,b=("action"===i||_)&&Boolean(g)&&!p,C=v?"normal":void 0,y=v||_?"outlined":void 0,w=b?g:void 0,{onKeyDown:S}=(0,o.b)(g);return s.createElement(r.x,Object.assign({ref:t,role:b?"button":void 0,className:a({theme:l||C,view:d||y,type:i,selected:m,size:h,disabled:p,clickable:b},u),onClick:w,onKeyDown:b?S:void 0,tabIndex:b?0:void 0},f),c)}))},46640:(e,t,i)=>{"use strict";i.d(t,{y:()=>o});var n=i(34706);const s=(0,i(87578).Ge)("spin"),o=n.forwardRef((function(e,t){const{size:i="m",style:o,className:r,qa:a}=e;return n.createElement("div",{ref:t,style:o,className:s({size:i},r),"data-qa":a},n.createElement("div",{className:s("inner")}))}))},81187:(e,t,i)=>{"use strict";i.d(t,{u:()=>h});var n=i(34706),s=i(15178),o=i(95868),r=i(24874),a=i(23795);const l=(0,i(87578).Ge)("tooltip"),d=["bottom","top"],h=e=>{const{children:t,content:i,disabled:h,placement:c=d,qa:u,id:g,className:p,style:m,disablePortal:f,contentClassName:_,openDelay:v=1e3,closeDelay:b}=e,[C,y]=n.useState(null),w=(0,o.p)(C,{openDelay:v,closeDelay:b,preventTriggerOnFocus:!0}),S=n.Children.only(t),x=S.ref,L=(0,s.c)(y,x);return n.createElement(n.Fragment,null,n.cloneElement(S,{ref:L}),C?n.createElement(r.G,{id:g,role:"tooltip",className:l(null,p),style:m,open:w&&!h,placement:c,anchorRef:{current:C},disablePortal:f,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:u},n.createElement("div",{className:l("content",_)},n.createElement(a.x,{variant:"body-short",color:"complementary"},i))):null)}},57857:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,n=0,s="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)s[n]=e[n];for(n=0;256!=n;++n)for(i=e[n],t=256+n;t<4096;t+=256)i=s[t]=i>>>8^e[255&i];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!==typeof Int32Array?s.subarray(256*n,256*n+256):s.slice(256*n,256*n+256);return o}(t),n=i[0],s=i[1],o=i[2],r=i[3],a=i[4],l=i[5],d=i[6],h=i[7],c=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var n=-1^i,s=0,o=e.length;s<o;)n=n>>>8^t[255&(n^e.charCodeAt(s++))];return~n},e.buf=function(e,i){for(var v=-1^i,b=e.length-15,C=0;C<b;)v=_[e[C++]^255&v]^f[e[C++]^v>>8&255]^m[e[C++]^v>>16&255]^p[e[C++]^v>>>24]^g[e[C++]]^u[e[C++]]^c[e[C++]]^h[e[C++]]^d[e[C++]]^l[e[C++]]^a[e[C++]]^r[e[C++]]^o[e[C++]]^s[e[C++]]^n[e[C++]]^t[e[C++]];for(b+=15;C<b;)v=v>>>8^t[255&(v^e[C++])];return~v},e.str=function(e,i){for(var n=-1^i,s=0,o=e.length,r=0,a=0;s<o;)(r=e.charCodeAt(s++))<128?n=n>>>8^t[255&(n^r)]:r<2048?n=(n=n>>>8^t[255&(n^(192|r>>6&31))])>>>8^t[255&(n^(128|63&r))]:r>=55296&&r<57344?(r=64+(1023&r),a=1023&e.charCodeAt(s++),n=(n=(n=(n=n>>>8^t[255&(n^(240|r>>8&7))])>>>8^t[255&(n^(128|r>>2&63))])>>>8^t[255&(n^(128|a>>6&15|(3&r)<<4))])>>>8^t[255&(n^(128|63&a))]):n=(n=(n=n>>>8^t[255&(n^(224|r>>12&15))])>>>8^t[255&(n^(128|r>>6&63))])>>>8^t[255&(n^(128|63&r))];return~n}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},37547:(e,t,i)=>{var n,s=s||{version:"5.3.0"};if(t.fabric=s,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?s.document=document:s.document=document.implementation.createHTMLDocument(""),s.window=window;else{var o=new(i(24960).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;s.document=o.document,s.jsdomImplForWrapper=i(26759).implForWrapper,s.nodeCanvas=i(56272).Canvas,s.window=o,DOMParser=s.window.DOMParser}function r(e,t){var i=e.canvas,n=t.targetCanvas,s=n.getContext("2d");s.translate(0,n.height),s.scale(1,-1);var o=i.height-n.height;s.drawImage(i,0,o,n.width,n.height,0,0,n.width,n.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),n=t.destinationWidth,s=t.destinationHeight,o=n*s*4,r=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);e.readPixels(0,0,n,s,e.RGBA,e.UNSIGNED_BYTE,r);var l=new ImageData(a,n,s);i.putImageData(l,0,0)}s.isTouchSupported="ontouchstart"in s.window||"ontouchstart"in s.document||s.window&&s.window.navigator&&s.window.navigator.maxTouchPoints>0,s.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,s.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],s.DPI=96,s.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",s.commaWsp="(?:\\s+,?\\s*|,\\s*)",s.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,s.reNonWord=/[ \n\.,;!\?\-]/,s.fontPaths={},s.iMatrix=[1,0,0,1,0,0],s.svgNS="http://www.w3.org/2000/svg",s.perfLimitSizeTotal=2097152,s.maxCacheSideLimit=4096,s.minCacheSideLimit=256,s.charWidthsCache={},s.textureSize=2048,s.disableStyleCopyPaste=!1,s.enableGLFiltering=!0,s.devicePixelRatio=s.window.devicePixelRatio||s.window.webkitDevicePixelRatio||s.window.mozDevicePixelRatio||1,s.browserShadowBlurConstant=1,s.arcToSegmentsCache={},s.boundsOfCurveCache={},s.cachesBoundsOfCurve=!0,s.forceGLPutImageData=!1,s.initFilterBackend=function(){return s.enableGLFiltering&&s.isWebglSupported&&s.isWebglSupported(s.textureSize)?(console.log("max texture size: "+s.maxTextureSize),new s.WebglFilterBackend({tileSize:s.textureSize})):s.Canvas2dFilterBackend?new s.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=s),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:s.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}s.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var n=0,s=i.length;n<s;n++)i[n]&&i[n].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var n in e)t.call(this,n,e[n]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var n in t)e.call(this,n,t[n]);else e.call(this,t,i);return this}}}(),s.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var n=this._objects;return i?n[t]=e:n.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,n=0,s=arguments.length;n<s;n++)-1!==(e=t.indexOf(arguments[n]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[n]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),n=0,s=i.length;n<s;n++)e.call(t,i[n],n,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},s.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof s.Gradient||this.set(t,new s.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof s.Pattern?i&&i():this.set(t,new s.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,n=Math.pow,o=Math.PI/180,r=Math.PI/2;s.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/r){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/r){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*o},radiansToDegrees:function(e){return e/o},rotatePoint:function(e,t,i){var n=new s.Point(e.x-t.x,e.y-t.y),o=s.util.rotateVector(n,i);return new s.Point(o.x,o.y).addEquals(t)},rotateVector:function(e,t){var i=s.util.sin(t),n=s.util.cos(t);return{x:e.x*n-e.y*i,y:e.x*i+e.y*n}},createVector:function(e,t){return new s.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new s.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var n=s.util.createVector(e,t),o=s.util.createVector(e,i),r=s.util.calcAngleBetweenVectors(n,o),a=r*(0===s.util.calcAngleBetweenVectors(s.util.rotateVector(n,r),o)?1:-1)/2;return{vector:s.util.getHatVector(s.util.rotateVector(n,a)),angle:r}},projectStrokeOnPoints:function(e,t,i){var n=[],o=t.strokeWidth/2,r=t.strokeUniform?new s.Point(1/t.scaleX,1/t.scaleY):new s.Point(1,1),a=function(e){var t=o/Math.hypot(e.x,e.y);return new s.Point(e.x*t*r.x,e.y*t*r.y)};return e.length<=1||e.forEach((function(l,d){var h,c,u=new s.Point(l.x,l.y);0===d?(c=e[d+1],h=i?a(s.util.createVector(c,u)).addEquals(u):e[e.length-1]):d===e.length-1?(h=e[d-1],c=i?a(s.util.createVector(h,u)).addEquals(u):e[0]):(h=e[d-1],c=e[d+1]);var g,p,m=s.util.getBisector(u,h,c),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-o/Math.sin(_/2),p=new s.Point(f.x*g*r.x,f.y*g*r.y),Math.hypot(p.x,p.y)/o<=t.strokeMiterLimit))return n.push(u.add(p)),void n.push(u.subtract(p));g=-o*Math.SQRT2,p=new s.Point(f.x*g*r.x,f.y*g*r.y),n.push(u.add(p)),n.push(u.subtract(p))})),n},transformPoint:function(e,t,i){return i?new s.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new s.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=s.util.transformPoint(e[i],t);var n=[e[0].x,e[1].x,e[2].x,e[3].x],o=s.util.array.min(n),r=s.util.array.max(n)-o,a=[e[0].y,e[1].y,e[2].y,e[3].y],l=s.util.array.min(a);return{left:o,top:l,width:r,height:s.util.array.max(a)-l}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],n=s.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-n.x,i[5]=-n.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),n=parseFloat(e);switch(t||(t=s.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return n*s.DPI/25.4;case"cm":return n*s.DPI/2.54;case"in":return n*s.DPI;case"pt":return n*s.DPI/72;case"pc":return n*s.DPI/72*12;case"em":return n*t;default:return n}},falseFunction:function(){return!1},getKlass:function(e,t){return e=s.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),s.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return s;var i,n=t.split("."),o=n.length,r=e||s.window;for(i=0;i<o;++i)r=r[n[i]];return r},loadImage:function(e,t,i,n){if(e){var o=s.util.createImage(),r=function(){t&&t.call(i,o,!1),o=o.onload=o.onerror=null};o.onload=r,o.onerror=function(){s.log("Error loading "+o.src),t&&t.call(i,null,!0),o=o.onload=o.onerror=null},0!==e.indexOf("data")&&void 0!==n&&null!==n&&(o.crossOrigin=n),"data:image/svg"===e.substring(0,14)&&(o.onload=null,s.util.loadImageInDom(o,r)),o.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=s.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),s.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,n){var o=[],r=0,a=(e=e||[]).length;function l(){++r===a&&t&&t(o.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?s.util.getKlass(e.type,i).fromObject(e,(function(i,s){s||(o[t]=i),n&&n(e,i,s),l()})):l()})):t&&t(o)},enlivenObjectEnlivables:function(e,t,i){var n=s.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));s.util.enlivenObjects(n.map((function(t){return e[t]})),(function(e){var s={};n.forEach((function(i,n){s[i]=e[n],t&&(t[i]=e[n])})),i&&i(s)}))},enlivenPatterns:function(e,t){function i(){++o===r&&t&&t(n)}var n=[],o=0,r=(e=e||[]).length;r?e.forEach((function(e,t){e&&e.source?new s.Pattern(e,(function(e){n[t]=e,i()})):(n[t]=e,i())})):t&&t(n)},groupSVGElements:function(e,t,i){var n;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),n=new s.Group(e,t),"undefined"!==typeof i&&(n.sourcePath=i),n)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var n=0,s=i.length;n<s;n++)i[n]in e&&(t[i[n]]=e[i[n]])},createCanvasElement:function(){return s.document.createElement("canvas")},copyCanvasElement:function(e){var t=s.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return s.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var s=i(e[1],e[0]),r=n(e[0],2)+n(e[1],2),a=t(r),l=(e[0]*e[3]-e[2]*e[1])/a,d=i(e[0]*e[2]+e[1]*e[3],r);return{angle:s/o,scaleX:a,scaleY:l,skewX:d/o,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return s.iMatrix.concat();var t=s.util.degreesToRadians(e.angle),i=s.util.cos(t),n=s.util.sin(t);return[i,n,-n,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,n=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],o=s.util.multiplyTransformMatrices,r=s.util.degreesToRadians;return e.skewX&&(n=o(n,[1,0,Math.tan(r(e.skewX)),1],!0)),e.skewY&&(n=o(n,[1,Math.tan(r(e.skewY)),0,1],!0)),n},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=s.util.multiplyTransformMatrices;return e.angle&&(t=i(t,s.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,s.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,n){n>0&&(t>n?t-=n:t=0,i>n?i-=n:i=0);var s,o=!0,r=e.getImageData(t,i,2*n||1,2*n||1),a=r.data.length;for(s=3;s<a&&!1!==(o=r.data[s]<=0);s+=4);return r=null,o},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",n=e.split(" ");return n&&n.length&&("meet"!==(i=n.pop())&&"slice"!==i?(t=i,i="meet"):n.length&&(t=n.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?s.charWidthsCache[e]&&delete s.charWidthsCache[e]:s.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),n=Math.floor(t/i);return{x:Math.floor(i),y:n}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return s.util.toFixed(e,s.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=s.util.invertTransform(t),n=s.util.multiplyTransformMatrices(i,e.calcOwnMatrix());s.util.applyTransformToObject(e,n)},addTransformToObject:function(e,t){s.util.applyTransformToObject(e,s.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=s.util.qrDecompose(t),n=new s.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(n,"center","center")},sizeAfterTransform:function(e,t,i){var n=e/2,o=t/2,r=[{x:-n,y:-o},{x:n,y:-o},{x:-n,y:o},{x:n,y:o}],a=s.util.calcDimensionsMatrix(i),l=s.util.makeBoundingBoxFromPoints(r,a);return{x:l.width,y:l.height}},mergeClipPaths:function(e,t){var i=e,n=t;i.inverted&&!n.inverted&&(i=t,n=e),s.util.applyTransformToObject(n,s.util.multiplyTransformMatrices(s.util.invertTransform(i.calcTransformMatrix()),n.calcTransformMatrix()));var o=i.inverted&&n.inverted;return o&&(i.inverted=n.inverted=!1),new s.Group([i],{clipPath:n,inverted:o})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=s.util.object.clone(e,!0);for(var i=t.split("\n"),n=-1,o={},r=[],a=0;a<i.length;a++)if(e[a])for(var l=0;l<i[a].length;l++){n++;var d=e[a][l];if(d&&Object.keys(d).length>0)s.util.hasStyleChanged(o,d,!0)?r.push({start:n,end:n+1,style:d}):r[r.length-1].end++;o=d||{}}else n+=i[a].length;return r},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),n=-1,s=0,o={},r=0;r<i.length;r++)for(var a=0;a<i[r].length;a++)n++,e[s]&&e[s].start<=n&&n<e[s].end&&(o[r]=o[r]||{},o[r][a]=Object.assign({},e[s].style),n===e[s].end-1&&s++);return o}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function n(e,t,i,n,o,r,a,l,d,h,c){var u=s.util.cos(e),g=s.util.sin(e),p=s.util.cos(t),m=s.util.sin(t),f=i*o*p-n*r*m+a,_=n*o*p+i*r*m+l;return["C",h+d*(-i*o*g-n*r*u),c+d*(-n*o*g+i*r*u),f+d*(i*o*m+n*r*p),_+d*(n*o*m-i*r*p),f,_]}function o(e,t,i,n){var s=Math.atan2(t,e),o=Math.atan2(n,i);return o>=s?o-s:2*Math.PI-(s-o)}function r(e,t,i){for(var r=i[1],a=i[2],l=i[3],d=i[4],h=i[5],c=function(e,t,i,r,a,l,d){var h=Math.PI,c=d*h/180,u=s.util.sin(c),g=s.util.cos(c),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,b=(r=Math.abs(r))*r,C=_*_,y=f*f,w=v*b-v*C-b*y,S=0;if(w<0){var x=Math.sqrt(1-w/(v*b));i*=x,r*=x}else S=(a===l?-1:1)*Math.sqrt(w/(v*C+b*y));var L=S*i*_/r,k=-S*r*f/i,D=g*L-u*k+.5*e,N=u*L+g*k+.5*t,E=o(1,0,(f-L)/i,(_-k)/r),T=o((f-L)/i,(_-k)/r,(-f-L)/i,(-_-k)/r);0===l&&T>0?T-=2*h:1===l&&T<0&&(T+=2*h);for(var I=Math.ceil(Math.abs(T/h*2)),M=[],A=T/I,R=8/3*Math.sin(A/4)*Math.sin(A/4)/Math.sin(A/2),O=E+A,P=0;P<I;P++)M[P]=n(E,O,g,u,i,r,D,N,R,p,m),p=M[P][5],m=M[P][6],E=O,O+=A;return M}(i[6]-e,i[7]-t,r,a,d,h,l),u=0,g=c.length;u<g;u++)c[u][1]+=e,c[u][2]+=t,c[u][3]+=e,c[u][4]+=t,c[u][5]+=e,c[u][6]+=t;return c}function a(e,t,i,n){return Math.sqrt((i-e)*(i-e)+(n-t)*(n-t))}function l(e,t,i,n,s,o,r,a){return function(l){var d,h=(d=l)*d*d,c=function(e){return 3*e*e*(1-e)}(l),u=function(e){return 3*e*(1-e)*(1-e)}(l),g=function(e){return(1-e)*(1-e)*(1-e)}(l);return{x:r*h+s*c+i*u+e*g,y:a*h+o*c+n*u+t*g}}}function d(e,t,i,n,s,o,r,a){return function(l){var d=1-l,h=3*d*d*(i-e)+6*d*l*(s-i)+3*l*l*(r-s),c=3*d*d*(n-t)+6*d*l*(o-n)+3*l*l*(a-o);return Math.atan2(c,h)}}function h(e,t,i,n,s,o){return function(r){var a,l=(a=r)*a,d=function(e){return 2*e*(1-e)}(r),h=function(e){return(1-e)*(1-e)}(r);return{x:s*l+i*d+e*h,y:o*l+n*d+t*h}}}function c(e,t,i,n,s,o){return function(r){var a=1-r,l=2*a*(i-e)+2*r*(s-i),d=2*a*(n-t)+2*r*(o-n);return Math.atan2(d,l)}}function u(e,t,i){var n,s,o={x:t,y:i},r=0;for(s=1;s<=100;s+=1)n=e(s/100),r+=a(o.x,o.y,n.x,n.y),o=n;return r}function g(e,t){for(var i,n,s,o=0,r=0,l=e.iterator,d={x:e.x,y:e.y},h=.01,c=e.angleFinder;r<t&&h>1e-4;)i=l(o),s=o,(n=a(d.x,d.y,i.x,i.y))+r>t?(o-=h,h/=2):(d=i,o+=h,r+=n);return i.angle=c(s),i}function p(e){for(var t,i,n,s,o=0,r=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<r;v++){switch(n={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":n.length=0,m=g=t[1],f=p=t[2];break;case"L":n.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s=d(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n.iterator=i,n.angleFinder=s,n.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),s=c(g,p,t[1],t[2],t[3],t[4]),n.iterator=i,n.angleFinder=s,n.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":n.destX=m,n.destY=f,n.length=a(g,p,m,f),g=m,p=f}o+=n.length,_.push(n)}return _.push({length:o,x:g,y:p}),_}s.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},s.util.parsePath=function(e){var n,o,r,a,l,d=[],h=[],c=s.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+s.commaWsp,p="([01])"+s.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return d;for(var f,_=0,v=(l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(n=l[_]).slice(1).trim(),h.length=0;var b=n.charAt(0);if(f=[b],"a"===b.toLowerCase())for(var C;C=m.exec(a);)for(var y=1;y<C.length;y++)h.push(C[y]);else for(;r=c.exec(a);)h.push(r[0]);y=0;for(var w=h.length;y<w;y++)o=parseFloat(h[y]),isNaN(o)||f.push(o);var S=t[b.toLowerCase()],x=i[b]||b;if(f.length-1>S)for(var L=1,k=f.length;L<k;L+=S)d.push([b].concat(f.slice(L,L+S))),b=x;else d.push(f)}return d},s.util.makePathSimpler=function(e){var t,i,n,s,o,a,l=0,d=0,h=e.length,c=0,u=0,g=[];for(i=0;i<h;++i){switch(n=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=l,t[2]+=d;case"L":l=t[1],d=t[2];break;case"h":t[1]+=l;case"H":t[0]="L",t[2]=d,l=t[1];break;case"v":t[1]+=d;case"V":t[0]="L",d=t[1],t[1]=l,t[2]=d;break;case"m":t[0]="M",t[1]+=l,t[2]+=d;case"M":l=t[1],d=t[2],c=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d,t[5]+=l,t[6]+=d;case"C":o=t[3],a=t[4],l=t[5],d=t[6];break;case"s":t[0]="S",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d;case"S":"C"===s?(o=2*l-o,a=2*d-a):(o=l,a=d),l=t[3],d=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=o,t[2]=a,o=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d;case"Q":o=t[1],a=t[2],l=t[3],d=t[4];break;case"t":t[0]="T",t[1]+=l,t[2]+=d;case"T":"Q"===s?(o=2*l-o,a=2*d-a):(o=l,a=d),t[0]="Q",l=t[1],d=t[2],t[1]=o,t[2]=a,t[3]=l,t[4]=d;break;case"a":t[0]="A",t[6]+=l,t[7]+=d;case"A":n=!0,g=g.concat(r(l,d,t)),l=t[6],d=t[7];break;case"z":case"Z":l=c,d=u}n||g.push(t),s=t[0]}return g},s.util.getSmoothPathFromPoints=function(e,t){var i,n=[],o=new s.Point(e[0].x,e[0].y),r=new s.Point(e[1].x,e[1].y),a=e.length,l=1,d=0,h=a>2;for(t=t||0,h&&(l=e[2].x<r.x?-1:e[2].x===r.x?0:1,d=e[2].y<r.y?-1:e[2].y===r.y?0:1),n.push(["M",o.x-l*t,o.y-d*t]),i=1;i<a;i++){if(!o.eq(r)){var c=o.midPointFrom(r);n.push(["Q",o.x,o.y,c.x,c.y])}o=e[i],i+1<e.length&&(r=e[i+1])}return h&&(l=o.x>e[i-2].x?1:o.x===e[i-2].x?0:-1,d=o.y>e[i-2].y?1:o.y===e[i-2].y?0:-1),n.push(["L",o.x+l*t,o.y+d*t]),n},s.util.getPathSegmentsInfo=p,s.util.getBoundsOfCurve=function(t,i,n,o,r,a,l,d){var h;if(s.cachesBoundsOfCurve&&(h=e.call(arguments),s.boundsOfCurveCache[h]))return s.boundsOfCurveCache[h];var c,u,g,p,m,f,_,v,b=Math.sqrt,C=Math.min,y=Math.max,w=Math.abs,S=[],x=[[],[]];u=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*l,g=3*n-3*t;for(var L=0;L<2;++L)if(L>0&&(u=6*i-12*o+6*a,c=-3*i+9*o-9*a+3*d,g=3*o-3*i),w(c)<1e-12){if(w(u)<1e-12)continue;0<(p=-g/u)&&p<1&&S.push(p)}else(_=u*u-4*g*c)<0||(0<(m=(-u+(v=b(_)))/(2*c))&&m<1&&S.push(m),0<(f=(-u-v)/(2*c))&&f<1&&S.push(f));for(var k,D,N,E=S.length,T=E;E--;)k=(N=1-(p=S[E]))*N*N*t+3*N*N*p*n+3*N*p*p*r+p*p*p*l,x[0][E]=k,D=N*N*N*i+3*N*N*p*o+3*N*p*p*a+p*p*p*d,x[1][E]=D;x[0][T]=t,x[1][T]=i,x[0][T+1]=l,x[1][T+1]=d;var I=[{x:C.apply(null,x[0]),y:C.apply(null,x[1])},{x:y.apply(null,x[0]),y:y.apply(null,x[1])}];return s.cachesBoundsOfCurve&&(s.boundsOfCurveCache[h]=I),I},s.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var n=0;t-i[n].length>0&&n<i.length-2;)t-=i[n].length,n++;var o,r=i[n],a=t/r.length,l=r.command,d=e[n];switch(l){case"M":return{x:r.x,y:r.y,angle:0};case"Z":case"z":return(o=new s.Point(r.x,r.y).lerp(new s.Point(r.destX,r.destY),a)).angle=Math.atan2(r.destY-r.y,r.destX-r.x),o;case"L":return(o=new s.Point(r.x,r.y).lerp(new s.Point(d[1],d[2]),a)).angle=Math.atan2(d[2]-r.y,d[1]-r.x),o;case"C":case"Q":return g(r,t)}},s.util.transformPath=function(e,t,i){return i&&(t=s.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),n={},o=1;o<e.length-1;o+=2)n.x=e[o],n.y=e[o+1],n=s.util.transformPoint(n,t),i[o]=n.x,i[o+1]=n.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var n=e.length-1,s=t?e[n][t]:e[n];if(t)for(;n--;)i(e[n][t],s)&&(s=e[n][t]);else for(;n--;)i(e[n],s)&&(s=e[n]);return s}}s.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var n=e.call(arguments,2),s=[],o=0,r=t.length;o<r;o++)s[o]=n.length?t[o][i].apply(t[o],n):t[o][i].call(t[o]);return s},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,n){if(n)if(!s.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var o=0,r=i.length;o<r;o++)t[o]=e({},i[o],n)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],n));else t=i;else for(var a in i)t[a]=i[a];return t}s.util.object={extend:e,clone:function(t,i){return e({},t,i)}},s.util.object.extend(s.util,s.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var n=e.charCodeAt(t+1);if(56320>n||n>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var s=e.charCodeAt(t-1);if(55296>s||s>56319)throw"Low surrogate without preceding high surrogate";return!1}s.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,n=0,s=[];for(n=0;n<t.length;n++)!1!==(i=e(t,n))&&s.push(i);return s}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),n=function(e,t,n){for(var s in t)s in e.prototype&&"function"===typeof e.prototype[s]&&(t[s]+"").indexOf("callSuper")>-1?e.prototype[s]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=n;var s=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return s}}(s):e.prototype[s]=t[s],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function o(){}function r(t){for(var i=null,n=this;n.constructor.superclass;){var s=n.constructor.superclass.prototype[t];if(n[t]!==s){i=s;break}n=n.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}s.util.createClass=function(){var i=null,s=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof s[0]&&(i=s.shift()),a.superclass=i,a.subclasses=[],i&&(o.prototype=i.prototype,a.prototype=new o,i.subclasses.push(a));for(var l=0,d=s.length;l<d;l++)n(a,s[l],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=r,a}}(),function(){var e=!!s.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];s.util.addListener=function(t,i,n,s){t&&t.addEventListener(i,n,!e&&s)},s.util.removeListener=function(t,i,n,s){t&&t.removeEventListener(i,n,!e&&s)},s.util.getPointer=function(e){var t=e.target,i=s.util.getScrollLeftTop(t),n=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:n.clientX+i.left,y:n.clientY+i.top}},s.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=s.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,n=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,o=function(e){return e};t?o=function(e,t){return e.style.opacity=t,e}:i&&(o=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),n.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(n,t)):i.filter+=" alpha(opacity="+100*t+")",e}),s.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?o(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var n in t)if("opacity"===n)o(e,t[n]);else{var s="float"===n||"cssFloat"===n?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":n;i.setProperty(s,t[n])}return e}}(),function(){var e=Array.prototype.slice;var t,i,n=function(t){return e.call(t,0)};try{t=n(s.document.childNodes)instanceof Array}catch(a){}function o(e,t){var i=s.document.createElement(e);for(var n in t)"class"===n?i.className=t[n]:"for"===n?i.htmlFor=t[n]:i.setAttribute(n,t[n]);return i}function r(e){for(var t=0,i=0,n=s.document.documentElement,o=s.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===s.document?(t=o.scrollLeft||n.scrollLeft||0,i=o.scrollTop||n.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(n=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=s.document.defaultView&&s.document.defaultView.getComputedStyle?function(e,t){var i=s.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=s.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";s.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=s.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},s.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),s.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},s.util.getById=function(e){return"string"===typeof e?s.document.getElementById(e):e},s.util.toArray=n,s.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},s.util.makeElement=o,s.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=o(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},s.util.getScrollLeftTop=r,s.util.getElementOffset=function(e){var t,n,s=e&&e.ownerDocument,o={left:0,top:0},a={left:0,top:0},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!s)return a;for(var d in l)a[l[d]]+=parseInt(i(e,d),10)||0;return t=s.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=r(e),{left:o.left+n.left-(t.clientLeft||0)+a.left,top:o.top+n.top-(t.clientTop||0)+a.top}},s.util.getNodeCanvas=function(e){var t=s.jsdomImplForWrapper(e);return t._canvas||t._image},s.util.cleanUpJsdomNode=function(e){if(s.isLikelyNode){var t=s.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}s.util.request=function(t,i){i||(i={});var n=i.method?i.method.toUpperCase():"GET",o=i.onComplete||function(){},r=new s.window.XMLHttpRequest,a=i.body||i.parameters;return r.onreadystatechange=function(){4===r.readyState&&(o(r),r.onreadystatechange=e)},"GET"===n&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),r.open(n,t,!0),"POST"!==n&&"PUT"!==n||r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(a),r}}(),s.log=console.log,s.warn=console.warn,function(){var e=s.util.object.extend,t=s.util.object.clone,i=[];function n(){return!1}function o(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t}s.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var r=s.window.requestAnimationFrame||s.window.webkitRequestAnimationFrame||s.window.mozRequestAnimationFrame||s.window.oRequestAnimationFrame||s.window.msRequestAnimationFrame||function(e){return s.window.setTimeout(e,1e3/60)},a=s.window.cancelAnimationFrame||s.window.clearTimeout;function l(){return r.apply(s.window,arguments)}s.util.animate=function(i){i||(i={});var r,a=!1,d=function(){var e=s.runningAnimations.indexOf(r);return e>-1&&s.runningAnimations.splice(e,1)[0]};return r=e(t(i),{cancel:function(){return a=!0,d()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),s.runningAnimations.push(r),l((function(e){var t,s=e||+new Date,h=i.duration||500,c=s+h,u=i.onChange||n,g=i.abort||n,p=i.onComplete||n,m=i.easing||o,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,b=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var n=(t=i||+new Date)>c?h:t-s,o=n/h,C=f?_.map((function(e,t){return m(n,_[t],b[t],h)})):m(n,_,b,h),y=f?Math.abs((C[0]-_[0])/b[0]):Math.abs((C-_)/b);if(r.currentValue=f?C.slice():C,r.completionRate=y,r.durationRate=o,!a){if(!g(C,y,o))return t>c?(r.currentValue=f?v.slice():v,r.completionRate=1,r.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void d()):(u(C,y,o),void l(e));d()}}(s)})),r.cancel},s.util.requestAnimFrame=l,s.util.cancelAnimFrame=function(){return a.apply(s.window,arguments)},s.runningAnimations=i}(),function(){function e(e,t,i){var n="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return n+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),n+=")"}s.util.animateColor=function(t,i,n,o){var r=new s.Color(t).getSource(),a=new s.Color(i).getSource(),l=o.onComplete,d=o.onChange;return o=o||{},s.util.animate(s.util.object.extend(o,{duration:n||500,startValue:r,endValue:a,byValue:a,easing:function(t,i,n,s){return e(i,n,o.colorEasing?o.colorEasing(t,s):1-Math.cos(t/s*(Math.PI/2)))},onComplete:function(t,i,n){if(l)return l(e(a,a,0),i,n)},onChange:function(t,i,n){if(d){if(Array.isArray(t))return d(e(t,t,0),i,n);d(t,i,n)}}}))}}(),function(){function e(e,t,i,n){return e<Math.abs(t)?(e=t,n=i/4):n=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:n}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,s){return i-n(s-e,0,i,s)+t}function n(e,t,i,n){return(e/=n)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}s.util.ease={easeInQuad:function(e,t,i,n){return i*(e/=n)*e+t},easeOutQuad:function(e,t,i,n){return-i*(e/=n)*(e-2)+t},easeInOutQuad:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,n){return i*(e/=n)*e*e+t},easeOutCubic:function(e,t,i,n){return i*((e=e/n-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,n){return i*(e/=n)*e*e*e+t},easeOutQuart:function(e,t,i,n){return-i*((e=e/n-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,n){return i*(e/=n)*e*e*e*e+t},easeOutQuint:function(e,t,i,n){return i*((e=e/n-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,n){return i*Math.sin(e/n*(Math.PI/2))+t},easeInOutSine:function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t},easeInExpo:function(e,t,i,n){return 0===e?t:i*Math.pow(2,10*(e/n-1))+t},easeOutExpo:function(e,t,i,n){return e===n?t+i:i*(1-Math.pow(2,-10*e/n))+t},easeInOutExpo:function(e,t,i,n){return 0===e?t:e===n?t+i:(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,n){return-i*(Math.sqrt(1-(e/=n)*e)-1)+t},easeOutCirc:function(e,t,i,n){return i*Math.sqrt(1-(e=e/n-1)*e)+t},easeInOutCirc:function(e,t,i,n){return(e/=n/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,n,s,o){var r=0;return 0===i?n:1===(i/=o)?n+s:(r||(r=.3*o),-t(e(s,s,r,1.70158),i,o)+n)},easeOutElastic:function(t,i,n,s){var o=0;if(0===t)return i;if(1===(t/=s))return i+n;o||(o=.3*s);var r=e(n,n,o,1.70158);return r.a*Math.pow(2,-10*t)*Math.sin((t*s-r.s)*(2*Math.PI)/r.p)+r.c+i},easeInOutElastic:function(i,n,s,o){var r=0;if(0===i)return n;if(2===(i/=o/2))return n+s;r||(r=o*(.3*1.5));var a=e(s,s,r,1.70158);return i<1?-.5*t(a,i,o)+n:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+n},easeInBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),i*(e/=n)*e*((s+1)*e-s)+t},easeOutBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),i*((e=e/n-1)*e*((s+1)*e+s)+1)+t},easeInOutBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),(e/=n/2)<1?i/2*(e*e*((1+(s*=1.525))*e-s))+t:i/2*((e-=2)*e*((1+(s*=1.525))*e+s)+2)+t},easeInBounce:i,easeOutBounce:n,easeInOutBounce:function(e,t,s,o){return e<o/2?.5*i(2*e,0,s,o)+t:.5*n(2*e-o,0,s,o)+.5*s+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s=t.util.toFixed,o=t.util.parseUnit,r=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},l={stroke:"strokeOpacity",fill:"fillOpacity"},d="font-size",h="clip-path";function c(e){return e in a?a[e]:e}function u(e,i,n,s){var a,l=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=n&&n.transformMatrix?r(n.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,n&&!1===n.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),n&&"undefined"!==typeof n.opacity&&(i*=n.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=o(i,s)/s*1e3;else if("paintFirst"===e){var d=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(d>-1&&h>-1&&h<d||-1===d&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=l?i.map(o):o(i,s)}}else i="";return!l&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,n,s,o,r=[];for(s=0,o=t.length;s<o;s++)i=t[s],n=e.getElementsByTagName(i),r=r.concat(Array.prototype.slice.call(n));return r}function m(e,t){var i,n=!0;return(i=f(e,t.pop()))&&t.length&&(n=function(e,t){var i,n=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)n&&(i=t.pop()),n=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&n&&0===t.length}function f(e,t){var i,n,s=e.nodeName,o=e.getAttribute("class"),r=e.getAttribute("id");if(i=new RegExp("^"+s,"i"),t=t.replace(i,""),r&&t.length&&(i=new RegExp("#"+r+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),o&&t.length)for(n=(o=o.split(" ")).length;n--;)i=new RegExp("\\."+o[n]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var n,s,o,r=e.getElementsByTagName("*");for(s=0,o=r.length;s<o;s++)if(t===(n=r[s]).getAttribute("id"))return n}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,n){e[n]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,n=t.reNum,s=t.commaWsp,o="(?:"+("(?:(matrix)\\s*\\(\\s*("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+n+")(?:"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+n+")(?:"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+n+")(?:"+s+"("+n+")"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+n+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+n+")\\s*\\))")+")",r=new RegExp("^\\s*(?:"+("(?:"+o+"(?:"+s+"*"+o+")*)")+"?)\\s*$"),a=new RegExp(o,"g");return function(n){var s=i.concat(),l=[];if(!n||n&&!r.test(n))return s;n.replace(a,(function(n){var r=new RegExp(o).exec(n).filter((function(e){return!!e})),a=r[1],d=r.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(s,d);break;case"rotate":d[0]=t.util.degreesToRadians(d[0]),function(e,i){var n=t.util.cos(i[0]),s=t.util.sin(i[0]),o=0,r=0;3===i.length&&(o=i[1],r=i[2]),e[0]=n,e[1]=s,e[2]=-s,e[3]=n,e[4]=o-(n*o-s*r),e[5]=r-(s*o+n*r)}(s,d);break;case"scale":!function(e,t){var i=t[0],n=2===t.length?t[1]:t[0];e[0]=i,e[3]=n}(s,d);break;case"skewX":e(s,d,2);break;case"skewY":e(s,d,1);break;case"matrix":s=d}l.push(s.concat()),s=i.concat()}));for(var d=l[0];l.length>1;)l.shift(),d=t.util.multiplyTransformMatrices(d,l[0]);return d}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function b(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,n,s,r,a,l,d=e.getAttribute("viewBox"),h=1,c=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!d||!(d=d.match(v)),b=!u||!g||"100%"===u||"100%"===g,C=_&&b,y={},w="",S=0,x=0;if(y.width=0,y.height=0,y.toBeParsed=C,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(w=" translate("+o(p)+" "+o(m)+") ",a=(e.getAttribute("transform")||"")+w,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),C)return y;if(_)return y.width=o(u),y.height=o(g),y;if(i=-parseFloat(d[1]),n=-parseFloat(d[2]),s=parseFloat(d[3]),r=parseFloat(d[4]),y.minX=i,y.minY=n,y.viewBoxWidth=s,y.viewBoxHeight=r,b?(y.width=s,y.height=r):(y.width=o(u),y.height=o(g),h=y.width/s,c=y.height/r),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(c=h=h>c?c:h),"slice"===f.meetOrSlice&&(c=h=h>c?h:c),S=y.width-s*h,x=y.height-r*h,"Mid"===f.alignX&&(S/=2),"Mid"===f.alignY&&(x/=2),"Min"===f.alignX&&(S=0),"Min"===f.alignY&&(x=0)),1===h&&1===c&&0===i&&0===n&&0===p&&0===m)return y;if((p||m)&&"#document"!==e.parentNode.nodeName&&(w=" translate("+o(p)+" "+o(m)+") "),a=w+" matrix("+h+" 0 0 "+c+" "+(i*h+S)+" "+(n*c+x)+") ","svg"===e.nodeName){for(l=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)l.appendChild(e.firstChild);e.appendChild(l)}else(l=e).removeAttribute("x"),l.removeAttribute("y"),a=l.getAttribute("transform")+a;return l.setAttribute("transform",a),y}function C(e,t){var i="xlink:href",n=_(e,t.getAttribute(i).slice(1));if(n&&n.getAttribute(i)&&C(e,n),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){n&&!t.hasAttribute(e)&&n.hasAttribute(e)&&t.setAttribute(e,n.getAttribute(e))})),!t.children.length)for(var s=n.cloneNode(!0);s.firstChild;)t.appendChild(s.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,s,o){if(e){!function(e){for(var i=p(e,["use","svg:use"]),n=0;i.length&&n<i.length;){var s=i[n],o=s.getAttribute("xlink:href")||s.getAttribute("href");if(null===o)return;var r,a,l,d,h=o.slice(1),c=s.getAttribute("x")||0,u=s.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+c+", "+u+")",f=i.length,v=t.svgNS;if(b(g),/^svg$/i.test(g.nodeName)){var C=g.ownerDocument.createElementNS(v,"g");for(a=0,d=(l=g.attributes).length;a<d;a++)r=l.item(a),C.setAttributeNS(v,r.nodeName,r.nodeValue);for(;g.firstChild;)C.appendChild(g.firstChild);g=C}for(a=0,d=(l=s.attributes).length;a<d;a++)"x"!==(r=l.item(a)).nodeName&&"y"!==r.nodeName&&"xlink:href"!==r.nodeName&&"href"!==r.nodeName&&("transform"===r.nodeName?m=r.nodeValue+" "+m:g.setAttribute(r.nodeName,r.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),s.parentNode.replaceChild(g,s),i.length===f&&n++}}(e);var r,a,l=t.Object.__uid++,d=b(e),h=t.util.toArray(e.getElementsByTagName("*"));if(d.crossOrigin=o&&o.crossOrigin,d.svgUid=l,0===h.length&&t.isLikelyNode){var c=[];for(r=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;r<a;r++)c[r]=h[r];h=c}var u=h.filter((function(e){return b(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=g,t.parseElements(u,(function(e,n){i&&(i(e,d,n,h),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),n(d),s,o)}}};var y=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(y);if(i){var n=i[1],s=i[3],r=i[4],a=i[5],l=i[6];n&&(t.fontStyle=n),s&&(t.fontWeight=isNaN(parseFloat(s))?s:parseFloat(s)),r&&(t.fontSize=o(r)),l&&(t.fontFamily=l),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),n=0,s={};for(n=i.length;n--;)(t=i[n]).getAttribute("xlink:href")&&C(e,t),s[t.getAttribute("id")]=t;return s},parseAttributes:function(e,n,r){if(e){var a,g,p,f={};"undefined"===typeof r&&(r=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,n,r));var _=n.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var n={};for(var s in t.cssRules[i])if(m(e,s.split(" ")))for(var o in t.cssRules[i][s])n[o]=t.cssRules[i][s][o];return n}(e,r),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[d]&&(_[d]=g=o(_[d],p));var b,C,y={};for(var w in _)C=u(b=c(w),_[w],f,g),y[b]=C;y&&y.font&&t.parseFontDeclaration(y.font,y);var S=i(f,y);return t.svgValidParentsRegEx.test(e.nodeName)?S:function(e){for(var i in l)if("undefined"!==typeof e[l[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var n=new t.Color(e[i]);e[i]=n.setAlpha(s(n.getAlpha()*e[l[i]],2)).toRgba()}}return e}(S)}},parseElements:function(e,i,n,s,o){new t.ElementsParser(e,i,n,s,o).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,n;e.replace(/;\s*$/,"").split(";").forEach((function(e){var s=e.split(":");i=s[0].trim().toLowerCase(),n=s[1].trim(),t[i]=n}))}(i,t):function(e,t){var i,n;for(var s in e)"undefined"!==typeof e[s]&&(i=s.toLowerCase(),n=e[s],t[i]=n)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,n=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)n.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return n},getCSSRules:function(e){var i,n,s=e.getElementsByTagName("style"),o={};for(i=0,n=s.length;i<n;i++){var r=s[i].textContent;""!==(r=r.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&r.split("}").filter((function(e){return e.trim()})).forEach((function(e){var s=e.split("{"),r={},a=s[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,n=a.length;i<n;i++){var l=a[i].split(":"),d=l[0].trim(),h=l[1].trim();r[d]=h}(e=s[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(o[e]?t.util.object.extend(o[e],r):o[e]=t.util.object.clone(r))}))}))}return o},loadSVGFromURL:function(e,i,n,s){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var o=e.responseXML;if(!o||!o.documentElement)return i&&i(null),!1;t.parseSVGDocument(o.documentElement,(function(e,t,n,s){i&&i(e,t,n,s)}),n,s)}})},loadSVGFromString:function(e,i,n,s){var o=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(o.documentElement,(function(e,t,n,s){i(e,t,n,s)}),n,s)}})}(t),s.ElementsParser=function(e,t,i,n,s,o){this.elements=e,this.callback=t,this.options=i,this.reviver=n,this.svgUid=i&&i.svgUid||0,this.parsingOptions=s,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=o},(n=s.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},n.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},n.findTag=function(e){return s[s.util.string.capitalize(e.tagName.replace("svg:",""))]},n.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(n){s.log(n)}else this.checkIfDone()},n.createCallback=function(e,t){var i=this;return function(n){var o;i.resolveGradient(n,t,"fill"),i.resolveGradient(n,t,"stroke"),n instanceof s.Image&&n._originalElement&&(o=n.parsePreserveAspectRatioAttribute(t)),n._removeTransformMatrix(o),i.resolveClipPath(n,t),i.reviver&&i.reviver(t,n),i.instances[e]=n,i.checkIfDone()}},n.extractPropertyDefinition=function(e,t,i){var n=e[t],o=this.regexUrl;if(o.test(n)){o.lastIndex=0;var r=o.exec(n)[1];return o.lastIndex=0,s[i][this.svgUid][r]}},n.resolveGradient=function(e,t,i){var n=this.extractPropertyDefinition(e,i,"gradientDefs");if(n){var o=t.getAttribute(i+"-opacity"),r=s.Gradient.fromElement(n,e,o,this.options);e.set(i,r)}},n.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},n.resolveClipPath=function(e,t){var i,n,o,r,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){o=[],n=s.util.invertTransform(e.calcTransformMatrix());for(var l=a[0].parentNode,d=t;d.parentNode&&d.getAttribute("clip-path")!==e.clipPath;)d=d.parentNode;d.parentNode.appendChild(l);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,o),this.options);a=1===o.length?o[0]:new s.Group(o),r=s.util.multiplyTransformMatrices(n,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,d);var c=s.util.qrDecompose(r);a.flipX=!1,a.flipY=!1,a.set("scaleX",c.scaleX),a.set("scaleY",c.scaleY),a.angle=c.angle,a.skewX=c.skewX,a.skewY=0,a.setPositionByOrigin({x:c.translateX,y:c.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},n.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,n,s,o){var r,a=(o.x-s.x)*(e.y-s.y)-(o.y-s.y)*(e.x-s.x),l=(n.x-e.x)*(e.y-s.y)-(n.y-e.y)*(e.x-s.x),d=(o.y-s.y)*(n.x-e.x)-(o.x-s.x)*(n.y-e.y);if(0!==d){var h=a/d,c=l/d;0<=h&&h<=1&&0<=c&&c<=1?(r=new i("Intersection")).appendPoint(new t.Point(e.x+h*(n.x-e.x),e.y+h*(n.y-e.y))):r=new i}else r=new i(0===a||0===l?"Coincident":"Parallel");return r},t.Intersection.intersectLinePolygon=function(e,t,n){var s,o,r,a,l=new i,d=n.length;for(a=0;a<d;a++)s=n[a],o=n[(a+1)%d],r=i.intersectLineLine(e,t,s,o),l.appendPoints(r.points);return l.points.length>0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var n,s=new i,o=e.length;for(n=0;n<o;n++){var r=e[n],a=e[(n+1)%o],l=i.intersectLinePolygon(r,a,t);s.appendPoints(l.points)}return s.points.length>0&&(s.status="Intersection"),s},t.Intersection.intersectPolygonRectangle=function(e,n,s){var o=n.min(s),r=n.max(s),a=new t.Point(r.x,o.y),l=new t.Point(o.x,r.y),d=i.intersectLinePolygon(o,a,e),h=i.intersectLinePolygon(a,r,e),c=i.intersectLinePolygon(r,l,e),u=i.intersectLinePolygon(l,o,e),g=new i;return g.appendPoints(d.points),g.appendPoints(h.points),g.appendPoints(c.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function n(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,n){e/=255,i/=255,n/=255;var s,o,r,a=t.util.array.max([e,i,n]),l=t.util.array.min([e,i,n]);if(r=(a+l)/2,a===l)s=o=0;else{var d=a-l;switch(o=r>.5?d/(2-a-l):d/(a+l),a){case e:s=(i-n)/d+(i<n?6:0);break;case i:s=(n-e)/d+2;break;case n:s=(e-i)/d+4}s/=6}return[Math.round(360*s),Math.round(100*o),Math.round(100*r)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,n=this.getSource();return e=1===(e=n[0].toString(16)).length?"0"+e:e,t=1===(t=n[1].toString(16)).length?"0"+t:t,i=1===(i=n[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),n=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,n]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,n=[],s=this.getAlpha(),o=this.getSource(),r=e.getSource();for(t=0;t<3;t++)n.push(Math.round(.5*o[t]+.5*r[t]));return n[3]=s,this.setSource(n),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var n=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),s=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),o=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(n,10),parseInt(s,10),parseInt(o,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var s,o,r,a=(parseFloat(t[1])%360+360)%360/360,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),d=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)s=o=r=d;else{var h=d<=.5?d*(l+1):d+l-d*l,c=2*d-h;s=n(c,h,a+1/3),o=n(c,h,a),r=n(c,h,a-1/3)}return[Math.round(255*s),Math.round(255*o),Math.round(255*r),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),n=3===t.length||4===t.length,s=8===t.length||4===t.length,o=n?t.charAt(0)+t.charAt(0):t.substring(0,2),r=n?t.charAt(1)+t.charAt(1):t.substring(2,4),a=n?t.charAt(2)+t.charAt(2):t.substring(4,6),l=s?n?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(o,16),parseInt(r,16),parseInt(a,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],n=["ns","nesw","ew","nwse"],s={},o="left",r="top",a="right",l="bottom",d="center",h={top:l,bottom:r,left:a,right:o,center:d},c=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+c(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var n=i.transform.target,s=n.canvas,o=t.util.object.clone(i);o.target=n,s&&s.fire("object:"+e,o),n.fire(e,i)}function m(e,t){var i=t.canvas,n=e[i.uniScaleKey];return i.uniformScaling&&!n||!i.uniformScaling&&n}function f(e){return e.originX===d&&e.originY===d}function _(e,t,i){var n=e.lockScalingX,s=e.lockScalingY;return!(!n||!s)||(!(t||!n&&!s||!i)||(!(!n||"x"!==t)||!(!s||"y"!==t)))}function v(e,t,i,n){return{e:e,transform:t,pointer:{x:i,y:n}}}function b(e){return function(t,i,n,s){var o=i.target,r=o.getCenterPoint(),a=o.translateToOriginPoint(r,i.originX,i.originY),l=e(t,i,n,s);return o.setPositionByOrigin(a,i.originX,i.originY),l}}function C(e,t){return function(i,n,s,o){var r=t(i,n,s,o);return r&&p(e,v(i,n,s,o)),r}}function y(e,i,n,s,o){var r=e.target,a=r.controls[e.corner],l=r.canvas.getZoom(),d=r.padding/l,h=r.toLocalPoint(new t.Point(s,o),i,n);return h.x>=d&&(h.x-=d),h.x<=-d&&(h.x+=d),h.y>=d&&(h.y-=d),h.y<=d&&(h.y+=d),h.x-=a.offsetX,h.y-=a.offsetY,h}function w(e){return e.flipX!==e.flipY}function S(e,t,i,n,s){if(0!==e[t]){var o=s/e._getTransformedDimensions()[n]*e[i];e.set(i,o)}}function x(e,t,i,n){var s,d=t.target,h=d._getTransformedDimensions(0,d.skewY),u=y(t,t.originX,t.originY,i,n),g=Math.abs(2*u.x)-h.x,p=d.skewX;g<2?s=0:(s=c(Math.atan2(g/d.scaleX,h.y/d.scaleY)),t.originX===o&&t.originY===l&&(s=-s),t.originX===a&&t.originY===r&&(s=-s),w(d)&&(s=-s));var m=p!==s;if(m){var f=d._getTransformedDimensions().y;d.set("skewX",s),S(d,"skewY","scaleY","y",f)}return m}function L(e,t,i,n){var s,d=t.target,h=d._getTransformedDimensions(d.skewX,0),u=y(t,t.originX,t.originY,i,n),g=Math.abs(2*u.y)-h.y,p=d.skewY;g<2?s=0:(s=c(Math.atan2(g/d.scaleY,h.x/d.scaleX)),t.originX===o&&t.originY===l&&(s=-s),t.originX===a&&t.originY===r&&(s=-s),w(d)&&(s=-s));var m=p!==s;if(m){var f=d._getTransformedDimensions().x;d.set("skewY",s),S(d,"skewX","scaleX","x",f)}return m}function k(e,t,i,n,s){s=s||{};var o,r,a,l,d,c,g=t.target,p=g.lockScalingX,v=g.lockScalingY,b=s.by,C=m(e,g),w=_(g,b,C),S=t.gestureScale;if(w)return!1;if(S)r=t.scaleX*S,a=t.scaleY*S;else{if(o=y(t,t.originX,t.originY,i,n),d="y"!==b?u(o.x):1,c="x"!==b?u(o.y):1,t.signX||(t.signX=d),t.signY||(t.signY=c),g.lockScalingFlip&&(t.signX!==d||t.signY!==c))return!1;if(l=g._getTransformedDimensions(),C&&!b){var x=Math.abs(o.x)+Math.abs(o.y),L=t.original,k=x/(Math.abs(l.x*L.scaleX/g.scaleX)+Math.abs(l.y*L.scaleY/g.scaleY));r=L.scaleX*k,a=L.scaleY*k}else r=Math.abs(o.x*g.scaleX/l.x),a=Math.abs(o.y*g.scaleY/l.y);f(t)&&(r*=2,a*=2),t.signX!==d&&"y"!==b&&(t.originX=h[t.originX],r*=-1,t.signX=d),t.signY!==c&&"x"!==b&&(t.originY=h[t.originY],a*=-1,t.signY=c)}var D=g.scaleX,N=g.scaleY;return b?("x"===b&&g.set("scaleX",r),"y"===b&&g.set("scaleY",a)):(!p&&g.set("scaleX",r),!v&&g.set("scaleY",a)),D!==g.scaleX||N!==g.scaleY}s.scaleCursorStyleHandler=function(e,t,n){var s=m(e,n),o="";if(0!==t.x&&0===t.y?o="x":0===t.x&&0!==t.y&&(o="y"),_(n,o,s))return"not-allowed";var r=g(n,t);return i[r]+"-resize"},s.skewCursorStyleHandler=function(e,t,i){var s="not-allowed";if(0!==t.x&&i.lockSkewingY)return s;if(0!==t.y&&i.lockSkewingX)return s;var o=g(i,t)%4;return n[o]+"-resize"},s.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?s.skewCursorStyleHandler(e,t,i):s.scaleCursorStyleHandler(e,t,i)},s.rotationWithSnapping=C("rotating",b((function(e,t,i,n){var s=t,o=s.target,r=o.translateToOriginPoint(o.getCenterPoint(),s.originX,s.originY);if(o.lockRotation)return!1;var a,l=Math.atan2(s.ey-r.y,s.ex-r.x),d=Math.atan2(n-r.y,i-r.x),h=c(d-l+s.theta);if(o.snapAngle>0){var u=o.snapAngle,g=o.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=o.angle!==h,o.angle=h,a}))),s.scalingEqually=C("scaling",b((function(e,t,i,n){return k(e,t,i,n)}))),s.scalingX=C("scaling",b((function(e,t,i,n){return k(e,t,i,n,{by:"x"})}))),s.scalingY=C("scaling",b((function(e,t,i,n){return k(e,t,i,n,{by:"y"})}))),s.scalingYOrSkewingX=function(e,t,i,n){return e[t.target.canvas.altActionKey]?s.skewHandlerX(e,t,i,n):s.scalingY(e,t,i,n)},s.scalingXOrSkewingY=function(e,t,i,n){return e[t.target.canvas.altActionKey]?s.skewHandlerY(e,t,i,n):s.scalingX(e,t,i,n)},s.changeWidth=C("resizing",b((function(e,t,i,n){var s=t.target,o=y(t,t.originX,t.originY,i,n),r=s.strokeWidth/(s.strokeUniform?s.scaleX:1),a=f(t)?2:1,l=s.width,d=Math.abs(o.x*a/s.scaleX)-r;return s.set("width",Math.max(d,0)),l!==d}))),s.skewHandlerX=function(e,t,i,n){var s,l=t.target,h=l.skewX,c=t.originY;return!l.lockSkewingX&&(0===h?s=y(t,d,d,i,n).x>0?o:a:(h>0&&(s=c===r?o:a),h<0&&(s=c===r?a:o),w(l)&&(s=s===o?a:o)),t.originX=s,C("skewing",b(x))(e,t,i,n))},s.skewHandlerY=function(e,t,i,n){var s,a=t.target,h=a.skewY,c=t.originX;return!a.lockSkewingY&&(0===h?s=y(t,d,d,i,n).y>0?r:l:(h>0&&(s=c===o?r:l),h<0&&(s=c===o?l:r),w(a)&&(s=s===r?l:r)),t.originY=s,C("skewing",b(L))(e,t,i,n))},s.dragHandler=function(e,t,i,n){var s=t.target,o=i-t.offsetX,r=n-t.offsetY,a=!s.get("lockMovementX")&&s.left!==o,l=!s.get("lockMovementY")&&s.top!==r;return a&&s.set("left",o),l&&s.set("top",r),(a||l)&&p("moving",v(e,t,i,n)),a||l},s.scaleOrSkewActionName=function(e,t,i){var n=e[i.canvas.altActionKey];return 0===t.x?n?"skewX":"scaleY":0===t.y?n?"skewY":"scaleX":void 0},s.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},s.fireEvent=p,s.wrapWithFixedAnchor=b,s.wrapWithFireEvent=C,s.getLocalPoint=y,t.controlsUtils=s}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,n=t.controlsUtils;n.renderCircleControl=function(e,t,i,n,s){n=n||{};var o,r=this.sizeX||n.cornerSize||s.cornerSize,a=this.sizeY||n.cornerSize||s.cornerSize,l="undefined"!==typeof n.transparentCorners?n.transparentCorners:s.transparentCorners,d=l?"stroke":"fill",h=!l&&(n.cornerStrokeColor||s.cornerStrokeColor),c=t,u=i;e.save(),e.fillStyle=n.cornerColor||s.cornerColor,e.strokeStyle=n.cornerStrokeColor||s.cornerStrokeColor,r>a?(o=r,e.scale(1,a/r),u=i*r/a):a>r?(o=a,e.scale(r/a,1),c=t*a/r):o=r,e.lineWidth=1,e.beginPath(),e.arc(c,u,o/2,0,2*Math.PI,!1),e[d](),h&&e.stroke(),e.restore()},n.renderSquareControl=function(e,t,n,s,o){s=s||{};var r=this.sizeX||s.cornerSize||o.cornerSize,a=this.sizeY||s.cornerSize||o.cornerSize,l="undefined"!==typeof s.transparentCorners?s.transparentCorners:o.transparentCorners,d=l?"stroke":"fill",h=!l&&(s.cornerStrokeColor||o.cornerStrokeColor),c=r/2,u=a/2;e.save(),e.fillStyle=s.cornerColor||o.cornerColor,e.strokeStyle=s.cornerStrokeColor||o.cornerStrokeColor,e.lineWidth=1,e.translate(t,n),e.rotate(i(o.angle)),e[d+"Rect"](-c,-u,r,a),h&&e.strokeRect(-c,-u,r,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,n,s,o){var r,a,l,d,h=o?this.touchSizeX:this.sizeX,c=o?this.touchSizeY:this.sizeY;if(h&&c&&h!==c){var u=Math.atan2(c,h),g=Math.sqrt(h*h+c*c)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);r=g*t.util.cos(p),a=g*t.util.sin(p),l=g*t.util.cos(m),d=g*t.util.sin(m)}else{g=.7071067812*(h&&c?h:i);p=t.util.degreesToRadians(45-e);r=l=g*t.util.cos(p),a=d=g*t.util.sin(p)}return{tl:{x:n-d,y:s-l},tr:{x:n+r,y:s-a},bl:{x:n-r,y:s+a},br:{x:n+d,y:s+l}}},render:function(e,i,n,s,o){if("circle"===((s=s||{}).cornerStyle||o.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,n,s,o);else t.controlsUtils.renderSquareControl.call(this,e,i,n,s,o)}}}(t),function(){function e(e,t){var i,n,o,r,a=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,a){var d=a.split(/\s*;\s*/);for(""===d[d.length-1]&&d.pop(),r=d.length;r--;){var h=d[r].split(/\s*:\s*/),c=h[0].trim(),u=h[1].trim();"stop-color"===c?i=u:"stop-opacity"===c&&(o=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),o||(o=e.getAttribute("stop-opacity")),n=(i=new s.Color(i)).getAlpha(),o=isNaN(parseFloat(o))?1:parseFloat(o),o*=n*t,{offset:l,color:i.toRgb(),opacity:o}}var t=s.util.object.clone;s.Gradient=s.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+s.Object.__uid++:this.id=s.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new s.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return s.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var n,o,r,a,l=t(this.coords,!0),d=(i=i||{},t(this.colorStops,!0)),h=l.r1>l.r2,c=this.gradientTransform?this.gradientTransform.concat():s.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(d.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),c[4]-=u,c[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+s.util.matrixToSVG(c)+'" ',"linear"===this.type?r=["<linearGradient ",a,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(r=["<radialGradient ",a,' cx="',h?l.x1:l.x2,'" cy="',h?l.y1:l.y2,'" r="',h?l.r1:l.r2,'" fx="',h?l.x2:l.x1,'" fy="',h?l.y2:l.y1,'">\n']),"radial"===this.type){if(h)for((d=d.concat()).reverse(),n=0,o=d.length;n<o;n++)d[n].offset=1-d[n].offset;var f=Math.min(l.r1,l.r2);if(f>0){var _=f/Math.max(l.r1,l.r2);for(n=0,o=d.length;n<o;n++)d[n].offset+=_*(1-d[n].offset)}}for(n=0,o=d.length;n<o;n++){var v=d[n];r.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return r.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),r.join("")},toLive:function(e){var t,i,n,o=s.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(o.x1,o.y1,o.x2,o.y2):"radial"===this.type&&(t=e.createRadialGradient(o.x1,o.y1,o.r1,o.x2,o.y2,o.r2)),i=0,n=this.colorStops.length;i<n;i++){var r=this.colorStops[i].color,a=this.colorStops[i].opacity,l=this.colorStops[i].offset;"undefined"!==typeof a&&(r=new s.Color(r).setAlpha(a).toRgba()),t.addColorStop(l,r)}return t}}}),s.util.object.extend(s.Gradient,{fromElement:function(t,i,n,o){var r=parseFloat(n)/(/%$/.test(n)?100:1);r=r<0?0:r>1?1:r,isNaN(r)&&(r=1);var a,l,d,h,c=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",l=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",l=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),d=c.length;d--;)p.push(e(c[d],r));return h=s.parseTransformAttribute(g),function(e,t,i,n){var s,o;Object.keys(t).forEach((function(e){"Infinity"===(s=t[e])?o=1:"-Infinity"===s?o=0:(o=parseFloat(t[e],10),"string"===typeof s&&/^(\d+\.\d+)%|(\d+)%$/.test(s)&&(o*=.01,"pixels"===n&&("x1"!==e&&"x2"!==e&&"r2"!==e||(o*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(o*=i.viewBoxHeight||i.height)))),t[e]=o}))}(0,l,o,u),"pixels"===u&&(m=-i.left,f=-i.top),new s.Gradient({id:t.getAttribute("id"),type:a,coords:l,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=s.util.toFixed;s.Pattern=s.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=s.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=s.util.createImage(),s.util.loadImage(e.source,(function(e,n){i.source=e,t&&t(i,n)}),null,this.crossOrigin)}},toObject:function(t){var i,n,o=s.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),n={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,o),offsetY:e(this.offsetY,o),patternTransform:this.patternTransform?this.patternTransform.concat():null},s.util.populateWithProperties(this,n,t),n},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,n=t.height/e.height,s=this.offsetX/e.width,o=this.offsetY/e.height,r="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(n=1,o&&(n+=Math.abs(o))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,s&&(i+=Math.abs(s))),t.src?r=t.src:t.toDataURL&&(r=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+s+'" y="'+o+'" width="'+i+'" height="'+n+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+r+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),n=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(n[1],10)||0,offsetY:parseFloat(n[2],10)||0,blur:parseFloat(n[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var n=40,s=40,o=t.Object.NUM_FRACTION_DIGITS,r=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(n=100*i((Math.abs(r.x)+this.blur)/e.width,o)+20,s=100*i((Math.abs(r.y)+this.blur)/e.height,o)+20),e.flipX&&(r.x*=-1),e.flipY&&(r.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+s+'%" height="'+(100+2*s)+'%" x="-'+n+'%" width="'+(100+2*n)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,o)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(r.x,o)+'" dy="'+i(r.y,o)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(s.StaticCanvas)s.warn("fabric.StaticCanvas is already defined.");else{var e=s.util.object.extend,t=s.util.getElementOffset,i=s.util.removeFromArray,n=s.util.toFixed,o=s.util.transformPoint,r=s.util.invertTransform,a=s.util.getNodeCanvas,l=s.util.createCanvasElement,d=new Error("Could not initialize `canvas` element");s.StaticCanvas=s.util.createClass(s.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:s.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return s.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,s.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=s.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,n){return"string"===typeof t?s.util.loadImage(t,(function(t,o){if(t){var r=new s.Image(t,n);this[e]=r,r.canvas=this}i&&i(t,o)}),this,n&&n.crossOrigin):(n&&t.setOptions(n),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=l();if(!e)throw d;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw d;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=s.util.getById(e)||this._createCanvasElement(),s.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var n in t=t||{},e)i=e[n],t.cssOnly||(this._setBackstoreDimension(n,e[n]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(n,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,n,s=this._activeObject,o=this.backgroundImage,r=this.overlayImage;for(this.viewportTransform=e,i=0,n=this._objects.length;i<n;i++)(t=this._objects[i]).group||t.setCoords(!0);return s&&s.setCoords(),o&&o.setCoords(!0),r&&r.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,n=this.viewportTransform.slice(0);e=o(e,r(this.viewportTransform)),n[0]=t,n[3]=t;var s=o(e,n);return n[4]+=i.x-s.x,n[5]+=i.y-s.y,this.setViewportTransform(n)},setZoom:function(e){return this.zoomToPoint(new s.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new s.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=s.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,n=r(this.viewportTransform);return e.tl=o({x:0,y:0},n),e.br=o({x:t,y:i},n),e.tr=new s.Point(e.br.x,e.tl.y),e.bl=new s.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(s.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,n=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),s.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),n&&(n.canvas=this,n.shouldCache(),n._transformDone=!0,n.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,n;for(i=0,n=t.length;i<n;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],n=this[t+"Image"],s=this.viewportTransform,o=this[t+"Vpt"];if(i||n){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,o&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var r=i.gradientTransform||i.patternTransform;r&&e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.fill(),e.restore()}n&&(e.save(),o&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),n.render(e),e.restore())}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new s.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new s.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new s.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new s.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new s.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=r(this.viewportTransform);return o(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var n=this.clipPath,o={version:s.version,objects:this._toObjects(t,i)};return n&&!n.excludeFromExport&&(o.clipPath=this._toObject(this.clipPath,t,i)),e(o,this.__serializeBgOverlay(t,i)),s.util.populateWithProperties(this,o,i),o},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var n;this.includeDefaultValues||(n=e.includeDefaultValues,e.includeDefaultValues=!1);var s=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=n),s},__serializeBgOverlay:function(e,t){var i={},n=this.backgroundImage,s=this.overlayImage,o=this.backgroundColor,r=this.overlayColor;return o&&o.toObject?o.excludeFromExport||(i.background=o.toObject(t)):o&&(i.background=o),r&&r.toObject?r.excludeFromExport||(i.overlay=r.toObject(t)):r&&(i.overlay=r),n&&!n.excludeFromExport&&(i.backgroundImage=this._toObject(n,e,t)),s&&!s.excludeFromExport&&(i.overlayImage=this._toObject(s,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,o=t.width||this.width,r=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',l=s.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+n(-i[4]/i[0],l)+" "+n(-i[5]/i[3],l)+" "+n(this.width/i[0],l)+" "+n(this.height/i[3],l)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',o,'" ','height="',r,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",s.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+s.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var n=e[t+"Vpt"],o=e.viewportTransform,r={width:e.width/(n?o[0]:1),height:e.height/(n?o[3]:1)};return i.toSVG(r,{additionalTransform:n?s.util.matrixToSVG(o):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,n,o,r,a,l,d="",h={},c=s.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,l=u.length;a<l;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&c[t]&&(h[t]=!0,e.styles))for(o in i=e.styles)for(r in n=i[o])!h[t=n[r].fontFamily]&&c[t]&&(h[t]=!0);for(var g in h)d+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",c[g],"');\n","\t\t}\n"].join("");return d&&(d=['\t<style type="text/css">',"<![CDATA[\n",d,"]]>","</style>\n"].join("")),d},_setSVGObjects:function(e,t){var i,n,s,o=this._objects;for(n=0,s=o.length;n<s;n++)(i=o[n]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],n=this.viewportTransform,o=this.width,r=this.height;if(i)if(i.toLive){var a=i.repeat,l=s.util.invertTransform(n),d=this[t+"Vpt"]?s.util.matrixToSVG(l):"";e.push('<rect transform="'+d+" translate(",o/2,",",r/2,')"',' x="',i.offsetX-o/2,'" y="',i.offsetY-r/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:o,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:r,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,n,s,o=this._activeObject;if(e===o&&"activeSelection"===e.type)for(t=(s=o._objects).length;t--;)n=s[t],i(this._objects,n),this._objects.unshift(n);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,n,s,o=this._activeObject;if(e===o&&"activeSelection"===e.type)for(s=o._objects,t=0;t<s.length;t++)n=s[t],i(this._objects,n),this._objects.push(n);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var n,s,o,r,a,l=this._activeObject,d=0;if(e===l&&"activeSelection"===e.type)for(a=l._objects,n=0;n<a.length;n++)s=a[n],(o=this._objects.indexOf(s))>0+d&&(r=o-1,i(this._objects,s),this._objects.splice(r,0,s)),d++;else 0!==(o=this._objects.indexOf(e))&&(r=this._findNewLowerIndex(e,o,t),i(this._objects,e),this._objects.splice(r,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var n,s;if(i)for(n=t,s=t-1;s>=0;--s){if(e.intersectsWithObject(this._objects[s])||e.isContainedWithinObject(this._objects[s])||this._objects[s].isContainedWithinObject(e)){n=s;break}}else n=t-1;return n},bringForward:function(e,t){if(!e)return this;var n,s,o,r,a,l=this._activeObject,d=0;if(e===l&&"activeSelection"===e.type)for(n=(a=l._objects).length;n--;)s=a[n],(o=this._objects.indexOf(s))<this._objects.length-1-d&&(r=o+1,i(this._objects,s),this._objects.splice(r,0,s)),d++;else(o=this._objects.indexOf(e))!==this._objects.length-1&&(r=this._findNewUpperIndex(e,o,t),i(this._objects,e),this._objects.splice(r,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var n,s,o;if(i)for(n=t,s=t+1,o=this._objects.length;s<o;++s){if(e.intersectsWithObject(this._objects[s])||e.isContainedWithinObject(this._objects[s])||this._objects[s].isContainedWithinObject(e)){n=s;break}}else n=t+1;return n},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(s.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),s.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),s.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(s.StaticCanvas.prototype,s.Observable),e(s.StaticCanvas.prototype,s.Collection),e(s.StaticCanvas.prototype,s.DataURLExporter),e(s.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),s.StaticCanvas.prototype.toJSON=s.StaticCanvas.prototype.toObject,s.isLikelyNode&&(s.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},s.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),s.BaseBrush=s.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,n=e.getZoom();e&&e._isRetinaScaling()&&(n*=s.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*n,i.shadowOffsetX=t.offsetX*n,i.shadowOffsetY=t.offsetY*n}},needsFullRender:function(){return new s.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),s.PencilBrush=s.util.createClass(s.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var n=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,n.x,n.y),n},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,n=i.length,s=this.canvas.contextTop;this._saveAndTransform(s),this.oldEnd&&(s.beginPath(),s.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(s,i[n-2],i[n-1],!0),s.stroke(),s.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new s.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new s.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,n=this._points[0],o=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&n.x===o.x&&n.y===o.y){var r=this.width/1e3;n=new s.Point(n.x,n.y),o=new s.Point(o.x,o.y),n.x-=r,o.x+=r}for(e.moveTo(n.x,n.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,n,o),n=this._points[t],o=this._points[t+1];e.lineTo(n.x,n.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return s.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===s.util.joinPath(e)},createPath:function(e){var t=new s.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new s.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,n=this.canvas.getZoom(),s=Math.pow(t/n,2),o=e.length-1,r=e[0],a=[r];for(i=1;i<o-1;i++)Math.pow(r.x-e[i].x,2)+Math.pow(r.y-e[i].y,2)>=s&&(r=e[i],a.push(r));return a.push(e[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),s.CircleBrush=s.util.createClass(s.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,n=this.points;for(this._saveAndTransform(i),e=0,t=n.length;e<t;e++)this.dot(i,n[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var n=[];for(e=0,t=this.points.length;e<t;e++){var o=this.points[e],r=new s.Circle({radius:o.radius,left:o.x,top:o.y,originX:"center",originY:"center",fill:o.fill});this.shadow&&(r.shadow=new s.Shadow(this.shadow)),n.push(r)}var a=new s.Group(n);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new s.Point(e.x,e.y),i=s.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,n=new s.Color(this.color).setAlpha(s.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=n,this.points.push(t),t}}),s.SprayBrush=s.util.createClass(s.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,n=this.sprayChunks.length;i<n;i++)for(var o=this.sprayChunks[i],r=0,a=o.length;r<a;r++){var l=new s.Rect({width:o[r].width,height:o[r].width,left:o[r].x+1,top:o[r].y+1,originX:"center",originY:"center",fill:this.color});t.push(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var d=new s.Group(t);this.shadow&&d.set("shadow",new s.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:d}),this.canvas.add(d),this.canvas.fire("path:created",{path:d}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,n,s={};for(i=0,n=e.length;i<n;i++)s[t=e[i].left+""+e[i].top]||(s[t]=e[i]);var o=[];for(t in s)o.push(s[t]);return o},render:function(e){var t,i,n=this.canvas.contextTop;for(n.fillStyle=this.color,this._saveAndTransform(n),t=0,i=e.length;t<i;t++){var s=e[t];"undefined"!==typeof s.opacity&&(n.globalAlpha=s.opacity),n.fillRect(s.x,s.y,s.width,s.width)}n.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,n,o,r=this.width/2;for(o=0;o<this.density;o++){t=s.util.getRandomInt(e.x-r,e.x+r),i=s.util.getRandomInt(e.y-r,e.y+r),n=this.dotWidthVariance?s.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new s.Point(t,i);a.width=n,this.randomOpacity&&(a.opacity=s.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),s.PatternBrush=s.util.createClass(s.PencilBrush,{getPatternSrc:function(){var e=s.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new s.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=s.util.getPointer,t=s.util.degreesToRadians,i=s.util.isTouchEvent;for(var n in s.Canvas=s.util.createClass(s.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=s.PencilBrush&&new s.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,n=this.getActiveObjects();if(n.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var s=0,o=this._objects.length;s<o;s++)e=this._objects[s],-1===n.indexOf(e)?t.push(e):i.push(e);n.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),n=s.util.invertTransform(i),o=this.restorePointerVpt(t);return s.util.transformPoint(o,n)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var n=this._normalizePointer(e,{x:t,y:i}),o=Math.max(e.cacheTranslationX+n.x*e.zoomX,0),r=Math.max(e.cacheTranslationY+n.y*e.zoomY,0);return s.util.isTransparent(e._cacheContext,Math.round(o),Math.round(r),this.targetFindTolerance)}var a=this.contextCache,l=e.selectionBackgroundColor,d=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),e.render(a),a.restore(),e.selectionBackgroundColor=l,s.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),n=this._activeObject;return!t||t&&n&&i.length>1&&-1===i.indexOf(t)&&n!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&n&&n!==t},_shouldCenterTransform:function(e,t,i){var n;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?n=this.centeredScaling||e.centeredScaling:"rotate"===t&&(n=this.centeredRotation||e.centeredRotation),n?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,n){if(!t||!e)return"drag";var s=n.controls[t];return s.getActionName(i,s,n)},_setupCurrentTransform:function(e,i,n){if(i){var o=this.getPointer(e),r=i.__corner,a=i.controls[r],l=n&&r?a.getActionHandler(e,i,a):s.controlsUtils.dragHandler,d=this._getActionFromCorner(n,r,e,i),h=this._getOriginFromCorner(i,r),c=e[this.centeredKey],u={target:i,action:d,actionHandler:l,corner:r,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:o.x-i.left,offsetY:o.y-i.top,originX:h.x,originY:h.y,ex:o.x,ey:o.y,lastX:o.x,lastY:o.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:c,original:s.util.saveObjectTransform(i)};this._shouldCenterTransform(i,d,c)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new s.Point(t.ex,t.ey),n=s.util.transformPoint(i,this.viewportTransform),o=new s.Point(t.ex+t.left,t.ey+t.top),r=s.util.transformPoint(o,this.viewportTransform),a=Math.min(n.x,r.x),l=Math.min(n.y,r.y),d=Math.max(n.x,r.x),h=Math.max(n.y,r.y),c=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,l,d-a,h-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=c,l+=c,d-=c,h-=c,s.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,l,d-a,h-l))},findTarget:function(e,t){if(!this.skipTargetFind){var n,s,o=this.getPointer(e,!0),r=this._activeObject,a=this.getActiveObjects(),l=i(e),d=a.length>1&&!t||1===a.length;if(this.targets=[],d&&r._findTargetCorner(o,l))return r;if(a.length>1&&!t&&r===this._searchPossibleTargets([r],o))return r;if(1===a.length&&r===this._searchPossibleTargets([r],o)){if(!this.preserveObjectStacking)return r;n=r,s=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,o);return e[this.altSelectionKey]&&h&&n&&h!==n&&(h=n,this.targets=s),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,n,o=e.length;o--;){var r=e[o],a=r.group?this._normalizePointer(r.group,t):t;if(this._checkTarget(a,r,t)){(i=e[o]).subTargetCheck&&i instanceof s.Group&&(n=this._searchPossibleTargets(i._objects,t))&&this.targets.push(n);break}}return i},restorePointerVpt:function(e){return s.util.transformPoint(e,s.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var n,s=e(t),o=this.upperCanvasEl,r=o.getBoundingClientRect(),a=r.width||0,l=r.height||0;a&&l||("top"in r&&"bottom"in r&&(l=Math.abs(r.top-r.bottom)),"right"in r&&"left"in r&&(a=Math.abs(r.right-r.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,i||(s=this.restorePointerVpt(s));var d=this.getRetinaScaling();return 1!==d&&(s.x/=d,s.y/=d),n=0===a||0===l?{width:1,height:1}:{width:o.width/a,height:o.height/l},{x:s.x*n.width,y:s.y*n.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),s.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=s.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),s.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),s.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;s.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,s.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,n=this.getActiveObjects(),s=[],o=[];e.forEach((function(e){-1===n.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),o.push(e))})),n.forEach((function(n){-1===e.indexOf(n)&&(i=!0,n.fire("selected",{e:t,target:n}),s.push(n))})),e.length>0&&n.length>0?i&&this.fire("selection:updated",{e:t,selected:s,deselected:o}):n.length>0?this.fire("selection:created",{e:t,selected:s}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:o})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){s.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,s.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var n=this._realizeGroupTransformOnObject(e),s=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,n),s},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),s.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var n=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,n)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),s.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),s.StaticCanvas)"prototype"!==n&&(s.Canvas[n]=s.StaticCanvas[n])}(),function(){var e=s.util.addListener,t=s.util.removeListener,i={passive:!1};function n(e,t){return e.button&&e.button===t-1}s.util.object.extend(s.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var n=this.upperCanvasEl,o=this._getEventPrefix();e(s.window,"resize",this._onResize),e(n,o+"down",this._onMouseDown),e(n,o+"move",this._onMouseMove,i),e(n,o+"out",this._onMouseOut),e(n,o+"enter",this._onMouseEnter),e(n,"wheel",this._onMouseWheel),e(n,"contextmenu",this._onContextMenu),e(n,"dblclick",this._onDoubleClick),e(n,"dragover",this._onDragOver),e(n,"dragenter",this._onDragEnter),e(n,"dragleave",this._onDragLeave),e(n,"drop",this._onDrop),this.enablePointerEvents||e(n,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](n,"gesture",this._onGesture),eventjs[t](n,"drag",this._onDrag),eventjs[t](n,"orientation",this._onOrientationChange),eventjs[t](n,"shake",this._onShake),eventjs[t](n,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(s.document,e+"up",this._onMouseUp),t(s.document,"touchend",this._onTouchEnd,i),t(s.document,e+"move",this._onMouseMove,i),t(s.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(n){i.fire("mouse:out",{target:t,e:e}),n&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(n){n.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(n)),this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();e(s.document,"touchend",this._onTouchEnd,i),e(s.document,"touchmove",this._onMouseMove,i),t(o,r+"down",this._onMouseDown)},_onMouseDown:function(n){this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();t(o,r+"move",this._onMouseMove,i),e(s.document,r+"up",this._onMouseUp),e(s.document,r+"move",this._onMouseMove,i)},_onTouchEnd:function(n){if(!(n.touches.length>0)){this.__onMouseUp(n),this._resetTransformEventData(),this.mainTouchId=null;var o=this._getEventPrefix();t(s.document,"touchend",this._onTouchEnd,i),t(s.document,"touchmove",this._onMouseMove,i);var r=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(r.upperCanvasEl,o+"down",r._onMouseDown),r._willAddMouseDown=0}),400)}},_onMouseUp:function(n){this.__onMouseUp(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();this._isMainEvent(n)&&(t(s.document,r+"up",this._onMouseUp),t(s.document,r+"move",this._onMouseMove,i),e(o,r+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,o=this._groupSelector,r=!1,a=!o||0===o.left&&0===o.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),n(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(n(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),r=i.actionPerformed),!a){var l=t===this._activeObject;this._maybeGroupObjects(e),r||(r=this._shouldRender(t)||!l&&t===this._activeObject)}var d,h;if(t){if(d=t._findTargetCorner(this.getPointer(e,!0),s.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),r=!0;else{var c=t.controls[d],u=c&&c.getMouseUpHandler(e,t,c);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==d)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,c);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),r?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),n=this.targets,s={e:t,target:i,subTargets:n};if(this.fire(e,s),i&&i.fire(e,s),!n)return i;for(var o=0;o<n.length;o++)n[o].fire(e,s);return i},_handleEvent:function(e,t,i,n){var s=this._target,o=this.targets||[],r={e:e,target:s,subTargets:o,button:i||1,isClick:n||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(r.currentTarget=this.findTarget(e),r.currentSubTargets=this.targets),this.fire("mouse:"+t,r),s&&s.fire("mouse"+t,r);for(var a=0;a<o.length;a++)o[a].fire("mouse"+t,r)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,n={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",n)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(n(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(n(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var o=this._shouldRender(t),r=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):r&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var l=t._findTargetCorner(this.getPointer(e,!0),s.util.isTouchEvent(e));if(t.__corner=l,t===this._activeObject&&(l||!r)){this._setupCurrentTransform(e,t,a);var d=t.controls[l],h=(i=this.getPointer(e),d&&d.getMouseDownHandler(e,t,d));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(o||r)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var n=this._groupSelector;n?(i=this._absolutePointer,n.left=i.x-n.ex,n.top=i.y-n.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,n=this._hoveredTargets,s=this.targets,o=Math.max(n.length,s.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var r=0;r<o;r++)this.fireSyntheticInOutEvents(s[r],t,{oldTarget:n[r],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,n=this._hoveredTargets,s=this.targets,o=Math.max(n.length,s.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var r=0;r<o;r++)this.fireSyntheticInOutEvents(s[r],t,{oldTarget:n[r],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var n,s,o,r=i.oldTarget,a=r!==e,l=i.canvasEvtIn,d=i.canvasEvtOut;a&&(n={e:t,target:e,previousTarget:r},s={e:t,target:r,nextTarget:e}),o=e&&a,r&&a&&(d&&this.fire(d,s),r.fire(i.evtOut,s)),o&&(l&&this.fire(l,n),e.fire(i.evtIn,n))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var n=i.x,s=i.y,o=t.action,r=!1,a=t.actionHandler;a&&(r=a(e,t,n,s)),"drag"===o&&r&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||r},_fire:s.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,n=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,s=(!n||!n.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));s?this.setCursor(this.getCornerCursor(s,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var n=t.controls[e];return n.cursorStyleHandler(i,n,t)}})}(),function(){var e=Math.min,t=Math.max;s.util.object.extend(s.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,n=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(n,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),n=this._createGroup(e);this._hoveredTarget=n,this._setActiveObject(n,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new s.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new s.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var n,o=[],r=this._groupSelector.ex,a=this._groupSelector.ey,l=r+this._groupSelector.left,d=a+this._groupSelector.top,h=new s.Point(e(r,l),e(a,d)),c=new s.Point(t(r,l),t(a,d)),u=!this.selectionFullyContained,g=r===l&&a===d,p=this._objects.length;p--&&!((n=this._objects[p])&&n.selectable&&n.visible&&(u&&n.intersectsWithRect(h,c,!0)||n.isContainedWithinRect(h,c,!0)||u&&n.containsPoint(h,null,!0)||u&&n.containsPoint(c,null,!0))&&(o.push(n),g)););return o.length>1&&(o=o.filter((function(e){return!e.onSelect({e:i})}))),o},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),s.util.object.extend(s.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,n=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),o=this.toCanvasElement(n,e);return s.util.toDataURL(o,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,n=(t.height||this.height)*e,o=this.getZoom(),r=this.width,a=this.height,l=o*e,d=this.viewportTransform,h=(d[4]-(t.left||0))*e,c=(d[5]-(t.top||0))*e,u=this.interactive,g=[l,0,0,l,h,c],p=this.enableRetinaScaling,m=s.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=n,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=n,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=d,this.width=r,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),s.util.object.extend(s.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var n="string"===typeof e?JSON.parse(e):s.util.object.clone(e),o=this,r=n.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete n.clipPath,this._enlivenObjects(n.objects,(function(e){o.clear(),o._setBgOverlay(n,(function(){r?o._enlivenObjects([r],(function(i){o.clipPath=i[0],o.__setupCanvas.call(o,n,e,a,t)})):o.__setupCanvas.call(o,n,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,n){var s=this;t.forEach((function(e,t){s.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),n&&n()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var n=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,n),this.__setBgOverlay("overlayImage",e.overlayImage,i,n),this.__setBgOverlay("backgroundColor",e.background,i,n),this.__setBgOverlay("overlayColor",e.overlay,i,n)}else t&&t()},__setBgOverlay:function(e,t,i,n){var o=this;if(!t)return i[e]=!0,void(n&&n());"backgroundImage"===e||"overlayImage"===e?s.util.enlivenObjects([t],(function(t){o[e]=t[0],i[e]=!0,n&&n()})):this["set"+s.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,n&&n()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?s.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(n){i(n.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=s.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new s.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s=t.util.toFixed,o=t.util.string.capitalize,r=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,n=e.width,s=e.height,o=t.maxCacheSideLimit,r=t.minCacheSideLimit;if(n<=o&&s<=o&&n*s<=i)return n<r&&(e.width=r),s<r&&(e.height=r),e;var a=n/s,l=t.util.limitDimsByArea(a,i),d=t.util.capValue,h=d(r,l.x,o),c=d(r,l.y,o);return n>h&&(e.zoomX/=n/h,e.width=h,e.capped=!0),s>c&&(e.zoomY/=s/c,e.height=c,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,n=t.y*e.scaleY/this.scaleY;return{width:i+2,height:n+2,zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:n}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var i=e._currentTransform.target,n=e._currentTransform.action;if(this===i&&n.slice&&"scale"===n.slice(0,5))return!1}var s,o,r=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),l=t.minCacheSideLimit,d=a.width,h=a.height,c=a.zoomX,u=a.zoomY,g=d!==this.cacheWidth||h!==this.cacheHeight,p=this.zoomX!==c||this.zoomY!==u,m=g||p,f=0,_=0,v=!1;if(g){var b=this._cacheCanvas.width,C=this._cacheCanvas.height,y=d>b||h>C;v=y||(d<.9*b||h<.9*C)&&b>l&&C>l,y&&!a.capped&&(d>l||h>l)&&(f=.1*d,_=.1*h)}return this instanceof t.Text&&this.path&&(m=!0,v=!0,f+=this.getHeightOfLine(0)*this.zoomX,_+=this.getHeightOfLine(0)*this.zoomY),!!m&&(v?(r.width=Math.ceil(d+f),r.height=Math.ceil(h+_)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-o)+o,this.cacheWidth=d,this.cacheHeight=h,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(c,u),this.zoomX=c,this.zoomY=u,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,n={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:s(this.left,i),top:s(this.top,i),width:s(this.width,i),height:s(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:s(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:s(this.strokeMiterLimit,i),scaleX:s(this.scaleX,i),scaleY:s(this.scaleY,i),angle:s(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:s(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:s(this.skewX,i),skewY:s(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(n.clipPath=this.clipPath.toObject(e),n.clipPath.inverted=this.clipPath.inverted,n.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,n,e),this.includeDefaultValues||(n=this._removeDefaultValues(n)),n},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+o(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var n=this.canvas.getZoom(),s=this.canvas.getRetinaScaling();t*=n*s,i*=n*s}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var n="scaleX"===e||"scaleY"===e,s=this[e]!==i,o=!1;return n&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,s&&(o=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,o&&this.group.set("dirty",!0)):o&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var n=t.util.invertTransform(this.calcTransformMatrix());e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,n=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=n},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var n,s,o,a=this.getViewportTransform(),l=this.calcTransformMatrix();s="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(a,l),n=t.util.qrDecompose(l),e.save(),e.translate(n.translateX,n.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(n.angle-=180),e.rotate(r(this.group?n.angle:this.angle)),i.forActiveSelection||this.group?s&&this.drawBordersInGroup(e,n,i):s&&this.drawBorders(e,i),o&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,n=this.shadow,s=this.canvas,o=s&&s.viewportTransform[0]||1,r=s&&s.viewportTransform[3]||1;i=n.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),s&&s._isRetinaScaling()&&(o*=t.devicePixelRatio,r*=t.devicePixelRatio),e.shadowColor=n.color,e.shadowBlur=n.blur*t.browserShadowBlurConstant*(o+r)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=n.offsetX*o*i.scaleX,e.shadowOffsetY=n.offsetY*r*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,n=-this.width/2+t.offsetX||0,s=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,n,s):e.transform(1,0,0,1,n,s),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:n,offsetY:s}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var n,s=this._limitCacheSize(this._getCacheCanvasDimensions()),o=t.util.createCanvasElement(),r=this.canvas.getRetinaScaling(),a=s.x/this.scaleX/r,l=s.y/this.scaleY/r;o.width=a,o.height=l,(n=o.getContext("2d")).beginPath(),n.moveTo(0,0),n.lineTo(a,0),n.lineTo(a,l),n.lineTo(0,l),n.closePath(),n.translate(a/2,l/2),n.scale(s.zoomX/this.scaleX/r,s.zoomY/this.scaleY/r),this._applyPatternGradientTransform(n,i),n.fillStyle=i.toLive(e),n.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(r*this.scaleX/s.zoomX,r*this.scaleY/s.zoomY),e.strokeStyle=n.createPattern(o,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var n=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(n,e):t.Object._fromObject("Object",n,e)},cloneAsImage:function(e,i){var n=this.toCanvasElement(i);return e&&e(new t.Image(n)),this},toCanvasElement:function(e){e||(e={});var i=t.util,n=i.saveObjectTransform(this),s=this.group,o=this.shadow,r=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,d,h,c,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(d=p.blur,l=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(r(p.offsetX)+d)*r(l.scaleX),m.y=2*Math.round(r(p.offsetY)+d)*r(l.scaleY)),h=g.width+m.x,c=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(c);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=o,this.set("canvas",_),s&&(this.group=s),this.set(n).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var n=new t.Point(i.x,i.y),s=this._getLeftTopCoords();return this.angle&&(n=t.util.rotatePoint(n,s,r(-this.angle))),{x:n.x-s.x,y:n.y-s.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,s,o){var r=t[e];i=n(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=o?new r(i[o],i):new r(i);s&&s(e)}))}))},t.Object.__uid=0)}(t),function(){var e=s.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};s.util.object.extend(s.Object.prototype,{translateToGivenOrigin:function(e,n,o,r,a){var l,d,h,c=e.x,u=e.y;return"string"===typeof n?n=t[n]:n-=.5,"string"===typeof r?r=t[r]:r-=.5,"string"===typeof o?o=i[o]:o-=.5,"string"===typeof a?a=i[a]:a-=.5,d=a-o,((l=r-n)||d)&&(h=this._getTransformedDimensions(),c=e.x+l*h.x,u=e.y+d*h.y),new s.Point(c,u)},translateToCenterPoint:function(t,i,n){var o=this.translateToGivenOrigin(t,i,n,"center","center");return this.angle?s.util.rotatePoint(o,t,e(this.angle)):o},translateToOriginPoint:function(t,i,n){var o=this.translateToGivenOrigin(t,"center","center",i,n);return this.angle?s.util.rotatePoint(o,t,e(this.angle)):o},getCenterPoint:function(){var e=new s.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,n){var o,r,a=this.getCenterPoint();return o="undefined"!==typeof i&&"undefined"!==typeof n?this.translateToGivenOrigin(a,"center","center",i,n):new s.Point(this.left,this.top),r=new s.Point(t.x,t.y),this.angle&&(r=s.util.rotatePoint(r,a,-e(this.angle))),r.subtractEquals(o)},setPositionByOrigin:function(e,t,i){var n=this.translateToCenterPoint(e,t,i),s=this.translateToOriginPoint(n,this.originX,this.originY);this.set("left",s.x),this.set("top",s.y)},adjustPosition:function(i){var n,o,r=e(this.angle),a=this.getScaledWidth(),l=s.util.cos(r)*a,d=s.util.sin(r)*a;n="string"===typeof this.originX?t[this.originX]:this.originX-.5,o="string"===typeof i?t[i]:i-.5,this.left+=l*(o-n),this.top+=d*(o-n),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=s.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,n=e.transformPoint;e.object.extend(s.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new s.Point(i.tl.x,i.tl.y),new s.Point(i.tr.x,i.tr.y),new s.Point(i.br.x,i.br.y),new s.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,n){var o=this.getCoords(i,n);return"Intersection"===s.Intersection.intersectPolygonRectangle(o,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===s.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var n=this.getCoords(t,i),s=t?e.aCoords:e.lineCoords,o=0,r=e._getImageLines(s);o<4;o++)if(!e.containsPoint(n[o],r))return!1;return!0},isContainedWithinRect:function(e,t,i,n){var s=this.getBoundingRect(i,n);return s.left>=e.x&&s.left+s.width<=t.x&&s.top>=e.y&&s.top+s.height<=t.y},containsPoint:function(e,t,i,n){var s=this._getCoords(i,n),o=(t=t||this._getImageLines(s),this._findCrossPoints(e,t));return 0!==o&&o%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var n={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(n,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,n,s,o=0;for(var r in t)if(!((s=t[r]).o.y<e.y&&s.d.y<e.y)&&!(s.o.y>=e.y&&s.d.y>=e.y)&&(s.o.x===s.d.x&&s.o.x>=e.x?n=s.o.x:(0,i=(s.d.y-s.o.y)/(s.d.x-s.o.x),n=-(e.y-0*e.x-(s.o.y-i*s.o.x))/(0-i)),n>=e.x&&(o+=1),2===o))break;return o},getBoundingRect:function(t,i){var n=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(n)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),s=this.padding,o=t(this.angle),r=e.cos(o)*s,a=e.sin(o)*s,l=r+a,d=r-a,h=this.calcACoords(),c={tl:n(h.tl,i),tr:n(h.tr,i),bl:n(h.bl,i),br:n(h.br,i)};return s&&(c.tl.x-=d,c.tl.y-=l,c.tr.x+=l,c.tr.y-=d,c.bl.x-=l,c.bl.y+=d,c.br.x+=d,c.br.y+=l),c},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=this.getViewportTransform(),s=i(n,t),o=i(s,e),r=(o=i(o,[1/n[0],0,0,1/n[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(r,o,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=i(t,e),o=this._getTransformedDimensions(),r=o.x/2,a=o.y/2;return{tl:n({x:-r,y:-a},s),tr:n({x:r,y:-a},s),bl:n({x:-r,y:a},s),br:n({x:r,y:a},s)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var n=this.transformMatrixKey(e),s=this.matrixCache||(this.matrixCache={});return s.key===n?s.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),s.key=n,s.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var n=this._calcTranslateMatrix(),s={angle:this.angle,translateX:n[4],translateY:n[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(s),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var n,s,o,r=0===t&&0===i;if(this.strokeUniform?(s=this.width,o=this.height):(s=(n=this._getNonTransformedDimensions()).x,o=n.y),r)return this._finalizeDimensions(s*this.scaleX,o*this.scaleY);var a=e.sizeAfterTransform(s,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return n(t,e,!0).scalarAdd(2*this.padding)}})}(),s.util.object.extend(s.Object.prototype,{sendToBack:function(){return this.group?s.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?s.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?s.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?s.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?s.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new s.Color(t),n=e+": "+i.toRgb()+"; ",o=i.getAlpha();return 1!==o&&(n+=e+"-opacity: "+o.toString()+"; "),n}return e+": none; "}var t=s.util.toFixed;s.util.object.extend(s.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",n=this.strokeWidth?this.strokeWidth:"0",s=this.strokeDashArray?this.strokeDashArray.join(" "):"none",o=this.strokeDashOffset?this.strokeDashOffset:"0",r=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",d="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",c=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",n,"; ","stroke-dasharray: ",s,"; ","stroke-linecap: ",r,"; ","stroke-dashoffset: ",o,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",l,"; ",u,"fill-rule: ",i,"; ","opacity: ",d,";",c,h].join("")},getSvgSpanStyles:function(t,i){var n="; ",s=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+n:"",o=t.strokeWidth?"stroke-width: "+t.strokeWidth+n:"",r=(s=s,t.fontSize?"font-size: "+t.fontSize+"px"+n:""),a=t.fontStyle?"font-style: "+t.fontStyle+n:"",l=t.fontWeight?"font-weight: "+t.fontWeight+n:"",d=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",c=this.getSvgTextDecoration(t);return c&&(c="text-decoration: "+c+n),[h,o,s,r,a,l,c,d,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+s.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=s.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,n=t.additionalTransform||"",s=[this.getSvgTransform(!0,n),this.getSvgCommons()].join(""),o=e.indexOf("COMMON_PARTS");return e[o]=s,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,n,o=(t=t||{}).noStyle,r=t.reviver,a=o?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",d=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",c=d&&d.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return d&&(d.clipPathId="CLIPPATH_"+s.Object.__uid++,n='<clipPath id="'+d.clipPathId+'" >\n'+d.toClipPathSVG(r)+"</clipPath>\n"),c&&m.push("<g ",l,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),c?"":l+this.getSvgCommons()," >\n"),i=[a,h,o?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),d&&m.push(n),m.push(e.join("")),m.push("</g>\n"),c&&m.push("</g>\n"),r?r(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=s.util.object.extend,t="stateProperties";function i(t,i,n){var s={};n.forEach((function(e){s[e]=t[e]})),e(t[i],s,!0)}function n(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var s=0,o=e.length;s<o;s++)if(!n(e[s],t[s]))return!1;return!0}if(e&&"object"===typeof e){var r,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(s=0,o=a.length;s<o;s++)if("canvas"!==(r=a[s])&&"group"!==r&&!n(e[r],t[r]))return!1;return!0}}s.util.object.extend(s.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!n(this[i],this,!0)},saveState:function(e){var n=e&&e.propertySet||t,s="_"+n;return this[s]?(i(this,s,this[n]),e&&e.stateProperties&&i(this,s,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=s.util.degreesToRadians;s.util.object.extend(s.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,n,s,o=e.x,r=e.y,a=Object.keys(this.oCoords),l=a.length-1;for(this.__corner=0;l>=0;l--)if(s=a[l],this.isControlVisible(s)&&(n=this._getImageLines(t?this.oCoords[s].touchCorner:this.oCoords[s].corner),0!==(i=this._findCrossPoints({x:o,y:r},n))&&i%2===1))return this.__corner=s,s;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),n=this._calculateCurrentDimensions(),s=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/s[0],1/s[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-n.x/2,-n.y/2,n.x,n.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),n=this.borderScaleFactor,s=i.x+n,o=i.y+n,r="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-s/2,-o/2,s,o),r&&(e.beginPath(),this.forEachControl((function(t,i,n){t.withConnection&&t.getVisibility(n,i)&&(a=!0,e.moveTo(t.x*s,t.y*o),e.lineTo(t.x*s+t.offsetX,t.y*o+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var n=s.util.sizeAfterTransform(this.width,this.height,t),o=this.strokeWidth,r=this.strokeUniform,a=this.borderScaleFactor,l=n.x+o*(r?this.canvas.getZoom():t.scaleX)+a,d=n.y+o*(r?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-l/2,-d/2,l,d),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,n,o=this.canvas.getRetinaScaling();return e.setTransform(o,0,0,o,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(o,r,a){n=a.oCoords[r],o.getVisibility(a,r)&&(i&&(n=s.util.transformPoint(n,i)),o.render(e,n.x,n.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),s.util.object.extend(s.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),r.requestRenderAll(),o()},onComplete:function(){e.setCoords(),n()}})},fxCenterObjectV:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),r.requestRenderAll(),o()},onComplete:function(){e.setCoords(),n()}})},fxRemove:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),r.requestRenderAll(),o()},onComplete:function(){r.remove(e),n()}})}}),s.util.object.extend(s.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],n=[];for(e in arguments[0])i.push(e);for(var s=0,o=i.length;s<o;s++)e=i[s],t=s!==o-1,n.push(this._animate(e,arguments[0][e],arguments[1],t));return n}return this._animate.apply(this,arguments)},_animate:function(e,t,i,n){var o,r=this;t=t.toString(),i=i?s.util.object.clone(i):{},~e.indexOf(".")&&(o=e.split("."));var a=r.colorProperties.indexOf(e)>-1||o&&r.colorProperties.indexOf(o[1])>-1,l=o?this.get(o[0])[o[1]]:this.get(e);"from"in i||(i.from=l),a||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var d={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,n){return i.abort.call(r,e,t,n)},onChange:function(t,s,a){o?r[o[0]][o[1]]=t:r.set(e,t),n||i.onChange&&i.onChange(t,s,a)},onComplete:function(e,t,s){n||(r.setCoords(),i.onComplete&&i.onComplete(e,t,s))}};return a?s.util.animateColor(d.startValue,d.endValue,d.duration,d):s.util.animate(d)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s={x1:1,x2:1,y1:1,y2:1};function o(e,t){var i=e.origin,n=e.axis1,s=e.axis2,o=e.dimension,r=t.nearest,a=t.center,l=t.farthest;return function(){switch(this.get(i)){case r:return Math.min(this.get(n),this.get(s));case a:return Math.min(this.get(n),this.get(s))+.5*this.get(o);case l:return Math.max(this.get(n),this.get(s))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof s[e]&&this._setWidthHeight(),this},_getLeftToOriginX:o({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:o({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,n=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:n,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,n,s){s=s||{};var o=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),r=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];n(new t.Line(r,i(o,s)))},t.Line.fromObject=function(e,i){var s=n(e,!0);s.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",s,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,n=(this.endAngle-this.startAngle)%360;if(0===n)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var s=i(this.startAngle),o=i(this.endAngle),r=this.radius;e=['<path d="M '+t.util.cos(s)*r+" "+t.util.sin(s)*r," A "+r+" "+r," 0 ",+(n>180?"1":"0")+" 1"," "+t.util.cos(o)*r+" "+t.util.sin(o)*r,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var n,s=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(n=s)&&n.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,i(new t.Circle(s))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var n=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);n.left=(n.left||0)-n.rx,n.top=(n.top||0)-n.ry,i(new t.Ellipse(n))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,n=this.width,s=this.height,o=-this.width/2,r=-this.height/2,a=0!==t||0!==i,l=.4477152502;e.beginPath(),e.moveTo(o+t,r),e.lineTo(o+n-t,r),a&&e.bezierCurveTo(o+n-l*t,r,o+n,r+l*i,o+n,r+i),e.lineTo(o+n,r+s-i),a&&e.bezierCurveTo(o+n,r+s-l*i,o+n-l*t,r+s,o+n-t,r+s),e.lineTo(o+t,r+s),a&&e.bezierCurveTo(o+l*t,r+s,o,r+s-l*i,o,r+s-i),e.lineTo(o,r+i),a&&e.bezierCurveTo(o,r+l*i,o+l*t,r,o+t,r),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,n,s){if(!e)return n(null);s=s||{};var o=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var r=new t.Rect(i(s?t.util.object.clone(s):{},o));r.visible=r.visible&&r.width>0&&r.height>0,n(r)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.array.min,s=t.util.array.max,o=t.util.toFixed,r=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return r(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),n=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-n,this.height=i.height-n,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+n/2,y:i.top-this.strokeWidth/2+n/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+n/2,y:i.top+this.height/2+n/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=n(e,"x")||0,i=n(e,"y")||0;return{left:t,top:i,width:(s(e,"x")||0)-t,height:(s(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,n=this.pathOffset.y,s=t.Object.NUM_FRACTION_DIGITS,r=0,a=this.points.length;r<a;r++)e.push(o(this.points[r].x-i,s),",",o(this.points[r].y-n,s)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,n=this.pathOffset.x,s=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-n,this.points[0].y-s);for(var o=0;o<i;o++)t=this.points[o],e.lineTo(t.x-n,t.y-s);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(n,s,o){if(!n)return s(null);o||(o={});var r=t.parsePointsAttribute(n.getAttribute("points")),a=t.parseAttributes(n,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,s(new t[e](r,i(a,o)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,n=t.util.array.max,s=t.util.object.extend,o=t.util.object.clone,r=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=o(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,n=0,s=0,o=0,r=0,a=0,l=-this.pathOffset.x,d=-this.pathOffset.y;e.beginPath();for(var h=0,c=this.path.length;h<c;++h)switch((t=this.path[h])[0]){case"L":s=t[1],o=t[2],e.lineTo(s+l,o+d);break;case"M":i=s=t[1],n=o=t[2],e.moveTo(s+l,o+d);break;case"C":s=t[5],o=t[6],r=t[3],a=t[4],e.bezierCurveTo(t[1]+l,t[2]+d,r+l,a+d,s+l,o+d);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+d,t[3]+l,t[4]+d),s=t[3],o=t[4],r=t[1],a=t[2];break;case"z":case"Z":s=i,o=n,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return s(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+r(-this.pathOffset.x,e)+", "+r(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,s,o=[],r=[],a=0,l=0,d=0,h=0,c=0,u=this.path.length;c<u;++c){switch((e=this.path[c])[0]){case"L":d=e[1],h=e[2],s=[];break;case"M":a=d=e[1],l=h=e[2],s=[];break;case"C":s=t.util.getBoundsOfCurve(d,h,e[1],e[2],e[3],e[4],e[5],e[6]),d=e[5],h=e[6];break;case"Q":s=t.util.getBoundsOfCurve(d,h,e[1],e[2],e[1],e[2],e[3],e[4]),d=e[3],h=e[4];break;case"z":case"Z":d=a,h=l}s.forEach((function(e){o.push(e.x),r.push(e.y)})),o.push(d),r.push(h)}var g=i(o)||0,p=i(r)||0;return{left:g,top:p,width:(n(o)||0)-g,height:(n(r)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var n=e.sourcePath;t.loadSVGFromURL(n,(function(n){var s=n[0];s.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){s.clipPath=e[0],i&&i(s)})):i&&i(s)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,n){var o=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new t.Path(o.d,s(o,n)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,n=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var n=this._objects.length;n--;)this._objects[n].group=this;if(i)this._updateObjectsACoords();else{var s=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),s||this._calcBounds(),this._updateObjectsCoords(s),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,n=e.top;e.set({left:i-t.x,top:n-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var n=this._objects.length;if(this.useSetOnGroup)for(;n--;)this._objects[n].setOnGroup(e,i);if("canvas"===e)for(;n--;)this._objects[n]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,n=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var n=t.includeDefaultValues;t.includeDefaultValues=i;var s=t.toObject(e);return t.includeDefaultValues=n,s})),s=t.Object.prototype.toObject.call(this,e);return s.objects=n,s},toDatalessObject:function(e){var i,n=this.sourcePath;if(n)i=n;else{var s=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=s;var n=t.toDatalessObject(e);return t.includeDefaultValues=i,n}))}var o=t.Object.prototype.toDatalessObject.call(this,e);return o.objects=i,o},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,n=this._objects.length;i<n;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var n=this.cacheWidth/this.zoomX,s=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-n/2,-s/2,n,s)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var n=this.toObject();delete n.objects;var s=new t.ActiveSelection([]);return s.set(n),s.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=s,e.dirty=!0,i.add(e)})),s.canvas=i,s._objects=e,i._activeObject=s,s.setCoords(),s}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,n,s,o=[],r=[],a=["tr","br","bl","tl"],l=0,d=this._objects.length,h=a.length;l<d;++l){for(n=(t=this._objects[l]).calcACoords(),s=0;s<h;s++)i=a[s],o.push(n[i].x),r.push(n[i].y);t.aCoords=n}this._getBounds(o,r,e)},_getBounds:function(e,s,o){var r=new t.Point(i(e),i(s)),a=new t.Point(n(e),n(s)),l=r.y||0,d=r.x||0,h=a.x-r.x||0,c=a.y-r.y||0;this.width=h,this.height=c,o||this.setPositionByOrigin({x:d,y:l},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,n=this._objects.length;i<n;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,n=this._objects.length;i<n;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var n=e.objects,s=t.util.object.clone(e,!0);delete s.objects,"string"!==typeof n?t.util.enlivenObjects(n,(function(n){t.util.enlivenObjectEnlivables(e,s,(function(){i&&i(new t.Group(n,s,!0))}))})):t.loadSVGFromURL(n,(function(o){var r=t.util.groupSVGElements(o,e,n),a=s.clipPath;delete s.clipPath,r.set(s),a?t.util.enlivenObjects([a],(function(e){r.clipPath=e[0],i&&i(r)})):i&&i(r)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var n=this._objects.length;n--;)this._objects[n].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),n=new t.Group([]);if(delete i.type,n.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=n})),n._objects=e,!this.canvas)return n;var s=this.canvas;return s.add(n),s._activeObject=n,n.setCoords(),n},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",e,t),"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var n=0,s=this._objects.length;n<s;n++)this._objects[n]._renderControls(e,i);e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(n){delete e.objects,i&&i(new t.ActiveSelection(n,e,!0))}))})}(t),function(e){"use strict";var t=s.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?s.warn("fabric.Image is already defined."):(s.Image=s.util.createClass(s.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:s.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:s.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+s.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=s.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){s.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var n=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(n.resizeFilter=this.resizeFilter.toObject()),n},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],n=this._element,o=-this.width/2,r=-this.height/2,a="",l="";if(!n)return[];if(this.hasCrop()){var d=s.Object.__uid++;t.push('<clipPath id="imageCrop_'+d+'">\n','\t<rect x="'+o+'" y="'+r+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+d+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',o-this.cropX,'" y="',r-this.cropY,'" width="',n.width||n.naturalWidth,'" height="',n.height||n.height,l,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',o,'" y="',r,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return s.util.loadImage(e,(function(e,n){this.setElement(e,i),this._setWidthHeight(),t&&t(this,n)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),n=i.scaleX,o=i.scaleY,r=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||n>t&&o>t)return this._element=r,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=n,void(this._lastScaleY=o);s.filterBackend||(s.filterBackend=s.initFilterBackend());var a=s.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,d=r.width,h=r.height;a.width=d,a.height=h,this._element=a,this._lastScaleX=e.scaleX=n,this._lastScaleY=e.scaleY=o,s.filterBackend.applyFilters([e],r,d,h,this._element,l),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,n=t.naturalHeight||t.height;if(this._element===this._originalElement){var o=s.util.createCanvasElement();o.width=i,o.height=n,this._element=o,this._filteredEl=o}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,n),this._lastScaleX=1,this._lastScaleY=1;return s.filterBackend||(s.filterBackend=s.initFilterBackend()),s.filterBackend.applyFilters(e,this._originalElement,i,n,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){s.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){s.util.setImageSmoothing(e,this.imageSmoothing),s.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,n=this._filterScalingY,s=this.width,o=this.height,r=Math.min,a=Math.max,l=a(this.cropX,0),d=a(this.cropY,0),h=t.naturalWidth||t.width,c=t.naturalHeight||t.height,u=l*i,g=d*n,p=r(s*i,h-u),m=r(o*n,c-g),f=-s/2,_=-o/2,v=r(s,h/i-l),b=r(o,c/n-d);t&&e.drawImage(t,u,g,p,m,f,_,v,b)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(s.util.getById(e),t),s.util.addClass(this.getElement(),s.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?s.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=s.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,n=this._element.height,o=1,r=1,a=0,l=0,d=0,h=0,c=this.width,u=this.height,g={width:c,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(o=c/i,r=u/n):("meet"===t.meetOrSlice&&(e=(c-i*(o=r=s.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-n*r)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(e=i-c/(o=r=s.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(d=e/2),"Max"===t.alignX&&(d=e),e=n-u/r,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=c/o,n=u/r)),{width:i,height:n,scaleX:o,scaleY:r,offsetLeft:a,offsetTop:l,cropX:d,cropY:h}}}),s.Image.CSS_CANVAS="canvas-img",s.Image.prototype.getSvgSrc=s.Image.prototype.getSrc,s.Image.fromObject=function(e,t){var i=s.util.object.clone(e);s.util.loadImage(i.src,(function(e,n){n?t&&t(null,!0):s.Image.prototype._initFilters.call(i,i.filters,(function(n){i.filters=n||[],s.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(n){i.resizeFilter=n[0],s.util.enlivenObjectEnlivables(i,i,(function(){var n=new s.Image(e,i);t(n,!1)}))}))}))}),null,i.crossOrigin)},s.Image.fromURL=function(e,t,i){s.util.loadImage(e,(function(e,n){t&&t(new s.Image(e,i),n)}),null,i&&i.crossOrigin)},s.Image.ATTRIBUTE_NAMES=s.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),s.Image.fromElement=function(e,i,n){var o=s.parseAttributes(e,s.Image.ATTRIBUTE_NAMES);s.Image.fromURL(o["xlink:href"],i,t(n?s.util.object.clone(n):{},o))})}(t),s.util.object.extend(s.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,n=e.onChange||t,o=this;return s.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){o.rotate(e),n()},onComplete:function(){o.setCoords(),i()}})}}),s.util.object.extend(s.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",n=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(n,i),e.compileShader(n),!!e.getShaderParameter(n,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}s.isWebglSupported=function(t){if(s.isLikelyNode)return!1;t=t||s.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),n=i.getContext("webgl")||i.getContext("experimental-webgl"),o=!1;if(n){s.maxTextureSize=n.getParameter(n.MAX_TEXTURE_SIZE),o=s.maxTextureSize>=t;for(var r=["highp","mediump","lowp"],a=0;a<3;a++)if(e(n,r[a])){s.webGlPrecision=r[a];break}}return this.isSupported=o,o},s.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,n="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var o="undefined"!==typeof ArrayBuffer,l="undefined"!==typeof Uint8ClampedArray;if(n&&i&&o&&l){var d=s.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(s.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var c,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:d};d.width=e,d.height=t,c=window.performance.now(),r.call(g,this.gl,g),u=window.performance.now()-c,c=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-c?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=r}},createWebGLCanvas:function(e,t){var i=s.util.createCanvasElement();i.width=e,i.height=t;var n={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},o=i.getContext("webgl",n);o||(o=i.getContext("experimental-webgl",n)),o&&(o.clearColor(0,0,0,0),this.canvas=i,this.gl=o)},applyFilters:function(e,t,i,n,s,o){var r,a=this.gl;o&&(r=this.getCachedTexture(o,t));var l={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:n,destinationWidth:i,destinationHeight:n,context:a,sourceTexture:this.createTexture(a,i,n,!r&&t),targetTexture:this.createTexture(a,i,n),originalTexture:r||this.createTexture(a,i,n,!r&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},d=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,d),e.forEach((function(e){e&&e.applyTo(l)})),function(e){var t=e.targetCanvas,i=t.width,n=t.height,s=e.destinationWidth,o=e.destinationHeight;i===s&&n===o||(t.width=s,t.height=o)}(l),this.copyGLTo2D(a,l),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(l.sourceTexture),a.deleteTexture(l.targetTexture),a.deleteFramebuffer(d),s.getContext("2d").setTransform(1,0,0,1,0,0),l},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,n,s){var o=e.createTexture();return e.bindTexture(e.TEXTURE_2D,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,s||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,s||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),o},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:r,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var n=e.getParameter(i.UNMASKED_RENDERER_WEBGL),s=e.getParameter(i.UNMASKED_VENDOR_WEBGL);n&&(t.renderer=n.toLowerCase()),s&&(t.vendor=s.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}s.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,n,s){var o=s.getContext("2d");o.drawImage(t,0,0,i,n);var r={sourceWidth:i,sourceHeight:n,imageData:o.getImageData(0,0,i,n),originalEl:t,originalImageData:o.getImageData(0,0,i,n),canvasEl:s,ctx:o,filterBackend:this};return e.forEach((function(e){e.applyTo(r)})),r.imageData.width===i&&r.imageData.height===n||(s.width=r.imageData.width,s.height=r.imageData.height),o.putImageData(r.imageData,0,0),r}}}(),s.Image=s.Image||{},s.Image.filters=s.Image.filters||{},s.Image.filters.BaseFilter=s.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==s.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+s.webGlPrecision+" float"));var n=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(n,i),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(n));var o=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(o,t),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(o));var r=e.createProgram();if(e.attachShader(r,n),e.attachShader(r,o),e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(r));var a=this.getAttributeLocations(e,r),l=this.getUniformLocations(e,r)||{};return l.uStepW=e.getUniformLocation(r,"uStepW"),l.uStepH=e.getUniformLocation(r,"uStepH"),{program:r,attributeLocations:a,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var n=t.aPosition,s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.enableVertexAttribArray(n),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,n=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(n.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(n,t,i)),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.targetTexture,0)):(n.bindFramebuffer(n.FRAMEBUFFER,null),n.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=s.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),s.Image.filters.BaseFilter.fromObject=function(e,t){var i=new s.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.ColorMatrix=n(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,n,s,o,r=e.imageData.data,a=r.length,l=this.matrix,d=this.colorsOnly;for(o=0;o<a;o+=4)t=r[o],i=r[o+1],n=r[o+2],d?(r[o]=t*l[0]+i*l[1]+n*l[2]+255*l[4],r[o+1]=t*l[5]+i*l[6]+n*l[7]+255*l[9],r[o+2]=t*l[10]+i*l[11]+n*l[12]+255*l[14]):(s=r[o+3],r[o]=t*l[0]+i*l[1]+n*l[2]+s*l[3]+255*l[4],r[o+1]=t*l[5]+i*l[6]+n*l[7]+s*l[8]+255*l[9],r[o+2]=t*l[10]+i*l[11]+n*l[12]+s*l[13]+255*l[14],r[o+3]=t*l[15]+i*l[16]+n*l[17]+s*l[18]+255*l[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,n=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],s=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,n),e.uniform4fv(t.uConstants,s)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Brightness=n(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,n=i.length,s=Math.round(255*this.brightness);for(t=0;t<n;t+=4)i[t]=i[t]+s,i[t+1]=i[t+1]+s,i[t+2]=i[t+2]+s}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.Convolute=s(n.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),n=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,n)),e.programCache[i]},applyTo2d:function(e){var t,i,n,s,o,r,a,l,d,h,c,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),b=p.width,C=p.height,y=e.ctx.createImageData(b,C),w=y.data,S=this.opaque?1:0;for(c=0;c<C;c++)for(h=0;h<b;h++){for(o=4*(c*b+h),t=0,i=0,n=0,s=0,g=0;g<_;g++)for(u=0;u<_;u++)r=h+u-v,(a=c+g-v)<0||a>=C||r<0||r>=b||(l=4*(a*b+r),d=f[g*_+u],t+=m[l]*d,i+=m[l+1]*d,n+=m[l+2]*d,S||(s+=m[l+3]*d));w[o]=t,w[o+1]=i,w[o+2]=n,w[o+3]=S?m[o+3]:s}e.imageData=y},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Grayscale=n(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,n=e.imageData.data,s=n.length,o=this.mode;for(t=0;t<s;t+=4)"average"===o?i=(n[t]+n[t+1]+n[t+2])/3:"lightness"===o?i=(Math.min(n[t],n[t+1],n[t+2])+Math.max(n[t],n[t+1],n[t+2]))/2:"luminosity"===o&&(i=.21*n[t]+.72*n[t+1]+.07*n[t+2]),n[t]=i,n[t+1]=i,n[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Invert=n(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,n=i.length;for(t=0;t<n;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.Noise=s(n.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,n=e.imageData.data,s=n.length,o=this.noise;for(t=0,s=n.length;t<s;t+=4)i=(.5-Math.random())*o,n[t]+=i,n[t+1]+=i,n[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Pixelate=n(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,n,s,o,r,a,l,d,h,c,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(n=0;n<m;n+=this.blocksize)for(s=g[t=4*i*m+4*n],o=g[t+1],r=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),c=Math.min(n+this.blocksize,m),l=i;l<h;l++)for(d=n;d<c;d++)g[t=4*l*m+4*d]=s,g[t+1]=o,g[t+2]=r,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.RemoveColor=s(n.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,n,s,o,r=e.imageData.data,a=255*this.distance,l=new t.Color(this.color).getSource(),d=[l[0]-a,l[1]-a,l[2]-a],h=[l[0]+a,l[1]+a,l[2]+a];for(i=0;i<r.length;i+=4)n=r[i],s=r[i+1],o=r[i+2],n>d[0]&&s>d[1]&&o>d[2]&&n<h[0]&&s<h[1]&&o<h[2]&&(r[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var n=new t.Color(this.color).getSource(),s=parseFloat(this.distance),o=[0+n[0]/255-s,0+n[1]/255-s,0+n[2]/255-s,1],r=[n[0]/255+s,n[1]/255+s,n[2]/255+s,1];e.uniform4fv(i.uLow,o),e.uniform4fv(i.uHigh,r)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass,s={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in s)i[o]=n(i.ColorMatrix,{type:o,matrix:s[o],mainParameter:!1,colorsOnly:!0}),t.Image.filters[o].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,n=t.util.createClass;i.BlendColor=n(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,n,s,o,r,a,l,d=e.imageData.data,h=d.length,c=1-this.alpha;i=(l=new t.Color(this.color).getSource())[0]*this.alpha,n=l[1]*this.alpha,s=l[2]*this.alpha;for(var u=0;u<h;u+=4)switch(o=d[u],r=d[u+1],a=d[u+2],this.mode){case"multiply":d[u]=o*i/255,d[u+1]=r*n/255,d[u+2]=a*s/255;break;case"screen":d[u]=255-(255-o)*(255-i)/255,d[u+1]=255-(255-r)*(255-n)/255,d[u+2]=255-(255-a)*(255-s)/255;break;case"add":d[u]=o+i,d[u+1]=r+n,d[u+2]=a+s;break;case"diff":case"difference":d[u]=Math.abs(o-i),d[u+1]=Math.abs(r-n),d[u+2]=Math.abs(a-s);break;case"subtract":d[u]=o-i,d[u+1]=r-n,d[u+2]=a-s;break;case"darken":d[u]=Math.min(o,i),d[u+1]=Math.min(r,n),d[u+2]=Math.min(a,s);break;case"lighten":d[u]=Math.max(o,i),d[u+1]=Math.max(r,n),d[u+2]=Math.max(a,s);break;case"overlay":d[u]=i<128?2*o*i/255:255-2*(255-o)*(255-i)/255,d[u+1]=n<128?2*r*n/255:255-2*(255-r)*(255-n)/255,d[u+2]=s<128?2*a*s/255:255-2*(255-a)*(255-s)/255;break;case"exclusion":d[u]=i+o-2*i*o/255,d[u+1]=n+r-2*n*r/255,d[u+2]=s+a-2*s*a/255;break;case"tint":d[u]=i+o*c,d[u+1]=n+r*c,d[u+2]=s+a*c}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var n=new t.Color(this.color).getSource();n[0]=this.alpha*n[0]/255,n[1]=this.alpha*n[1]/255,n[2]=this.alpha*n[2]/255,n[3]=this.alpha,e.uniform4fv(i.uColor,n)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,n=t.util.createClass;i.BlendImage=n(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,n,s,o,r,a,l,d,h,c,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,b=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),c=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):c.clearRect(0,0,_,v),c.setTransform(b.scaleX,0,0,b.scaleY,b.left,b.top),c.drawImage(b._element,0,0,_,v),u=c.getImageData(0,0,_,v).data;for(var C=0;C<f;C+=4)switch(r=m[C],a=m[C+1],l=m[C+2],d=m[C+3],i=u[C],n=u[C+1],s=u[C+2],o=u[C+3],this.mode){case"multiply":m[C]=r*i/255,m[C+1]=a*n/255,m[C+2]=l*s/255,m[C+3]=d*o/255;break;case"mask":m[C+3]=o}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(n){var s=t.util.object.clone(e);s.image=n,i(new t.Image.filters.BlendImage(s))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,n=Math.floor,s=Math.sqrt,o=Math.abs,r=Math.round,a=Math.sin,l=Math.ceil,d=t.Image.filters,h=t.util.createClass;d.Resize=h(d.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var n=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,n)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),n=new Array(i),s=1;s<=i;s++)n[s-1]=e(s*t);return n},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,n=1;n<=e;n++)t[n-1]=n+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,n=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/n;var s,o=t.width,a=t.height,l=r(o*i),d=r(a*n);"sliceHack"===this.resizeType?s=this.sliceByTwo(e,o,a,l,d):"hermite"===this.resizeType?s=this.hermiteFastResize(e,o,a,l,d):"bilinear"===this.resizeType?s=this.bilinearFiltering(e,o,a,l,d):"lanczos"===this.resizeType&&(s=this.lanczosResize(e,o,a,l,d)),e.imageData=s},sliceByTwo:function(e,i,s,o,r){var a,l,d=e.imageData,h=.5,c=!1,u=!1,g=i*h,p=s*h,m=t.filterBackend.resources,f=0,_=0,v=i,b=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<s)&&(a.width=1.5*i,a.height=s),(l=a.getContext("2d")).clearRect(0,0,1.5*i,s),l.putImageData(d,0,0),o=n(o),r=n(r);!c||!u;)i=g,s=p,o<n(g*h)?g=n(g*h):(g=o,c=!0),r<n(p*h)?p=n(p*h):(p=r,u=!0),l.drawImage(a,f,_,i,s,v,b,g,p),f=v,_=b,b+=p;return l.getImageData(f,_,o,r)},lanczosResize:function(e,t,r,a,d){var h=e.imageData.data,c=e.ctx.createImageData(a,d),u=c.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=l(p*this.lanczosLobes/2),b=l(m*this.lanczosLobes/2),C={},y={},w={};return function e(l){var S,x,L,k,D,N,E,T,I,M,A;for(y.x=(l+.5)*p,w.x=n(y.x),S=0;S<d;S++){for(y.y=(S+.5)*m,w.y=n(y.y),D=0,N=0,E=0,T=0,I=0,x=w.x-v;x<=w.x+v;x++)if(!(x<0||x>=t)){M=n(1e3*o(x-y.x)),C[M]||(C[M]={});for(var R=w.y-b;R<=w.y+b;R++)R<0||R>=r||(A=n(1e3*o(R-y.y)),C[M][A]||(C[M][A]=g(s(i(M*f,2)+i(A*_,2))/1e3)),(L=C[M][A])>0&&(D+=L,N+=L*h[k=4*(R*t+x)],E+=L*h[k+1],T+=L*h[k+2],I+=L*h[k+3]))}u[k=4*(S*a+l)]=N/D,u[k+1]=E/D,u[k+2]=T/D,u[k+3]=I/D}return++l<a?e(l):c}(0)},bilinearFiltering:function(e,t,i,s,o){var r,a,l,d,h,c,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),b=e.imageData.data,C=e.ctx.createImageData(s,o),y=C.data;for(l=0;l<o;l++)for(d=0;d<s;d++)for(h=f*d-(r=n(f*d)),c=_*l-(a=n(_*l)),p=4*(a*t+r),u=0;u<4;u++)g=b[p+u]*(1-h)*(1-c)+b[p+4+u]*h*(1-c)+b[p+v+u]*c*(1-h)+b[p+v+4+u]*h*c,y[m++]=g;return C},hermiteFastResize:function(e,t,i,r,a){for(var d=this.rcpScaleX,h=this.rcpScaleY,c=l(d/2),u=l(h/2),g=e.imageData.data,p=e.ctx.createImageData(r,a),m=p.data,f=0;f<a;f++)for(var _=0;_<r;_++){for(var v=4*(_+f*r),b=0,C=0,y=0,w=0,S=0,x=0,L=0,k=(f+.5)*h,D=n(f*h);D<(f+1)*h;D++)for(var N=o(k-(D+.5))/u,E=(_+.5)*d,T=N*N,I=n(_*d);I<(_+1)*d;I++){var M=o(E-(I+.5))/c,A=s(T+M*M);A>1&&A<-1||(b=2*A*A*A-3*A*A+1)>0&&(L+=b*g[(M=4*(I+D*t))+3],y+=b,g[M+3]<255&&(b=b*g[M+3]/250),w+=b*g[M],S+=b*g[M+1],x+=b*g[M+2],C+=b)}m[v]=w/C,m[v+1]=S/C,m[v+2]=x/C,m[v+3]=L/y}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Contrast=n(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,n=i.length,s=Math.floor(255*this.contrast),o=259*(s+255)/(255*(259-s));for(t=0;t<n;t+=4)i[t]=o*(i[t]-128)+128,i[t+1]=o*(i[t+1]-128)+128,i[t+2]=o*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Saturation=n(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,n=e.imageData.data,s=n.length,o=-this.saturation;for(t=0;t<s;t+=4)i=Math.max(n[t],n[t+1],n[t+2]),n[t]+=i!==n[t]?(i-n[t])*o:0,n[t+1]+=i!==n[t+1]?(i-n[t+1])*o:0,n[t+2]+=i!==n[t+2]?(i-n[t+2])*o:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Vibrance=n(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,n,s,o=e.imageData.data,r=o.length,a=-this.vibrance;for(t=0;t<r;t+=4)i=Math.max(o[t],o[t+1],o[t+2]),n=(o[t]+o[t+1]+o[t+2])/3,s=2*Math.abs(i-n)/255*a,o[t]+=i!==o[t]?(i-o[t])*s:0,o[t+1]+=i!==o[t+1]?(i-o[t+1])*s:0,o[t+2]+=i!==o[t+2]?(i-o[t+2])*s:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Blur=n(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,n,s=e.filterBackend.resources,o=e.imageData.width,r=e.imageData.height;s.blurLayer1||(s.blurLayer1=t.util.createCanvasElement(),s.blurLayer2=t.util.createCanvasElement()),i=s.blurLayer1,n=s.blurLayer2,i.width===o&&i.height===r||(n.width=i.width=o,n.height=i.height=r);var a,l,d,h,c=i.getContext("2d"),u=n.getContext("2d"),g=15,p=.06*this.blur*.5;for(c.putImageData(e.imageData,0,0),u.clearRect(0,0,o,r),h=-15;h<=g;h++)d=p*(l=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,d,a),c.drawImage(n,0,0),u.globalAlpha=1,u.clearRect(0,0,n.width,n.height);for(h=-15;h<=g;h++)d=p*(l=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,a,d),c.drawImage(n,0,0),u.globalAlpha=1,u.clearRect(0,0,n.width,n.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return c.globalAlpha=1,c.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Gamma=n(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,n=this.gamma,s=i.length,o=1/n[0],r=1/n[1],a=1/n[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,s=256;t<s;t++)this.rVals[t]=255*Math.pow(t/255,o),this.gVals[t]=255*Math.pow(t/255,r),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,s=i.length;t<s;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Composed=n(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var n=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),s=new t.Image.filters.Composed({subFilters:n});return i&&i(s),s}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.HueRotation=n(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),n=t.util.sin(e),s=1/3,o=Math.sqrt(s)*n,r=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+r/3,this.matrix[1]=s*r-o,this.matrix[2]=s*r+o,this.matrix[5]=s*r+o,this.matrix[6]=i+s*r,this.matrix[7]=s*r-o,this.matrix[10]=s*r-o,this.matrix[11]=s*r+o,this.matrix[12]=i+s*r},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var n="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(n),cacheProperties:t.Object.prototype.cacheProperties.concat(n),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var e,t,i,n,s,o,r,a=0,l=this._textLines.length;a<l;a++)if(("justify"===this.textAlign||a!==l-1&&!this.isEndOfWrapping(a))&&(n=0,s=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(r=this.textLines[a].match(this._reSpacesAndTabs)))){i=r.length,e=(this.width-t)/i;for(var d=0,h=s.length;d<=h;d++)o=this.__charBounds[a][d],this._reSpaceAndTab.test(s[d])?(o.width+=e,o.kernedWidth+=e,o.left+=n,n+=e):o.left+=n}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var n=this.getLineWidth(t);n>e&&(e=n)}return e},_renderTextLine:function(e,t,i,n,s,o){this._renderChars(e,t,i,n,s,o)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,n,s,o,r,a,l=e.fillStyle,d=this._getLeftOffset(),h=this._getTopOffset(),c=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){n=this._textLines[p],i=this._getLineLeftOffset(p),u=0,c=0,s=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=n.length;f<_;f++)o=this.__charBounds[p][f],r=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(o.renderLeft,o.renderTop),e.rotate(o.angle),e.fillStyle=r,r&&e.fillRect(-o.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),o.width,t/this.lineHeight),e.restore()):r!==s?(a=d+i+c,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=s,s&&e.fillRect(a,h,u,t/this.lineHeight),c=o.left,u=o.width,s=r):u+=o.kernedWidth;r&&!g&&(a=d+i+c,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=r,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=l,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var n=t.charWidthsCache[i],s=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return n[s]||(n[s]={}),n[s]},_measureChar:function(e,t,i,n){var s,o,r,a,l=this.getFontCache(t),d=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(n),c=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==l[i]&&(r=l[i]),void 0!==l[e]&&(a=s=l[e]),h&&void 0!==l[d]&&(a=(o=l[d])-r),void 0===s||void 0===r||void 0===o){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===s&&(a=s=u.measureText(e).width,l[e]=s),void 0===r&&h&&i&&(r=u.measureText(i).width,l[i]=r),h&&void 0===o&&(o=u.measureText(d).width,l[d]=o,a=o-r),{width:s*c,kernedWidth:a*c}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,n,s,o,r,a,l=0,d=this._textLines[e],h=new Array(d.length),c=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<d.length;i++)n=d[i],o=this._getGraphemeBox(n,e,i,s),h[i]=o,l+=o.kernedWidth,s=n;if(h[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(r=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,r.y+=u.pathOffset.y,this.textAlign){case"left":c=g?a-l:0;break;case"center":c=(a-l)/2;break;case"right":c=g?0:a-l}for(c+=this.pathStartOffset*(g?-1:1),i=g?d.length-1:0;g?i>=0:i<d.length;g?i--:i++)o=h[i],c>a?c%=a:c<0&&(c+=a),this._setGraphemeOnPath(c,o,r),c+=o.kernedWidth}return{width:l,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,n){var s=e+i.kernedWidth/2,o=this.path,r=t.util.getPointOnPath(o.path,s,o.segmentsInfo);i.renderLeft=r.x-n.x,i.renderTop=r.y-n.y,i.angle=r.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,n,s){var o,r=this.getCompleteStyleDeclaration(t,i),a=n?this.getCompleteStyleDeclaration(t,i-1):{},l=this._measureChar(e,r,n,a),d=l.kernedWidth,h=l.width;0!==this.charSpacing&&(h+=o=this._getWidthOfCharSpacing(),d+=o);var c={width:h,left:0,height:r.fontSize,kernedWidth:d,deltaY:r.deltaY};if(i>0&&!s){var u=this.__charBounds[t][i-1];c.left=u.left+u.width+l.kernedWidth-l.width}return c},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),n=1,s=t.length;n<s;n++)i=Math.max(this.getHeightOfChar(e,n),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,n=this._textLines.length;i<n;i++)e=this.getHeightOfLine(i),t+=i===n-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,n=this._getLeftOffset(),s=this._getTopOffset(),o=0,r=this._textLines.length;o<r;o++){var a=this.getHeightOfLine(o),l=a/this.lineHeight,d=this._getLineLeftOffset(o);this._renderTextLine(t,e,this._textLines[o],n+d,s+i+l,o),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,n,s,o,r){var a,l,d,h,c,u=this.getHeightOfLine(r),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(r)&&!f,v="ltr"===this.direction,b="ltr"===this.direction?1:-1,C=i.canvas.getAttribute("dir");if(i.save(),C!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),o-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,r,0,n.join(""),s,o,u),void i.restore();for(var y=0,w=n.length-1;y<=w;y++)h=y===w||this.charSpacing||f,p+=n[y],d=this.__charBounds[r][y],0===m?(s+=b*(d.kernedWidth-d.width),m+=d.width):m+=d.kernedWidth,g&&!h&&this._reSpaceAndTab.test(n[y])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(r,y),l=this.getCompleteStyleDeclaration(r,y+1),h=t.util.hasStyleChanged(a,l,!1)),h&&(f?(i.save(),i.translate(d.renderLeft,d.renderTop),i.rotate(d.angle),this._renderChar(e,i,r,y,p,-m/2,0,u),i.restore()):(c=s,this._renderChar(e,i,r,y,p,c,o,u)),p="",a=l,s+=b*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,n=t.util.createCanvasElement(),s=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return n.width=s,n.height=o,(i=n.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(s,0),i.lineTo(s,o),i.lineTo(0,o),i.closePath(),i.translate(s/2,o/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(n,"no-repeat")},handleFiller:function(e,t,i){var n,s;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(n=-this.width/2,s=-this.height/2,e.translate(n,s),e[t]=this._applyPatternGradientTransformText(i),{offsetX:n,offsetY:s}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,n,s,o,r){var a,l,d=this._getStyleDeclaration(i,n),h=this.getCompleteStyleDeclaration(i,n),c="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||c)&&(t.save(),c&&(a=this._setFillStyles(t,h)),u&&(l=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),d&&d.textBackgroundColor&&this._removeShadow(t),d&&d.deltaY&&(r+=d.deltaY),c&&t.fillText(s,o-a.offsetX,r-a.offsetY),u&&t.strokeText(s,o-l.offsetX,r-l.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var n=this.get2DCursorLocation(e,!0),s=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"fontSize"),o=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"deltaY"),r={fontSize:s*i.size,deltaY:o+s*i.baseline};return this.setSelectionStyles(r,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,n=this.textAlign,s=this.direction,o=0,r=this.isEndOfWrapping(e);return"justify"===n||"justify-center"===n&&!r||"justify-right"===n&&!r||"justify-left"===n&&!r?0:("center"===n&&(o=i/2),"right"===n&&(o=i),"justify-center"===n&&(o=i/2),"justify-right"===n&&(o=i),"rtl"===s&&(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var n=this._getStyleDeclaration(e,t);return n&&"undefined"!==typeof n[i]?n[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){for(var i,n,s,o,r,a,l,d,h,c,u,g,p,m,f,_,v=this._getLeftOffset(),b=this._getTopOffset(),C=this.path,y=this._getWidthOfCharSpacing(),w=this.offsets[t],S=0,x=this._textLines.length;S<x;S++)if(i=this.getHeightOfLine(S),this[t]||this.styleHas(t,S)){l=this._textLines[S],m=i/this.lineHeight,o=this._getLineLeftOffset(S),c=0,u=0,d=this.getValueOfPropertyAt(S,0,t),_=this.getValueOfPropertyAt(S,0,"fill"),h=b+m*(1-this._fontSizeFraction),n=this.getHeightOfChar(S,0),r=this.getValueOfPropertyAt(S,0,"deltaY");for(var L=0,k=l.length;L<k;L++)if(g=this.__charBounds[S][L],p=this.getValueOfPropertyAt(S,L,t),f=this.getValueOfPropertyAt(S,L,"fill"),s=this.getHeightOfChar(S,L),a=this.getValueOfPropertyAt(S,L,"deltaY"),C&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,w*s+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==d||f!==_||s!==n||a!==r)&&u>0){var D=v+o+c;"rtl"===this.direction&&(D=this.width-D-u),d&&_&&(e.fillStyle=_,e.fillRect(D,h+w*n+r,u,this.fontSize/15)),c=g.left,u=g.width,d=p,_=f,n=s,r=a}else u+=g.kernedWidth;D=v+o+c;"rtl"===this.direction&&(D=this.width-D-u),e.fillStyle=f,p&&f&&e.fillRect(D,h+w*n+r,u-y,this.fontSize/15),b+=i}else b+=i;this._removeShadow(e)}},_getFontDeclaration:function(e,i){var n=e||this,s=this.fontFamily,o=t.Text.genericFonts.indexOf(s.toLowerCase())>-1,r=void 0===s||s.indexOf("'")>-1||s.indexOf(",")>-1||s.indexOf('"')>-1||o?n.fontFamily:'"'+n.fontFamily+'"';return[t.isLikelyNode?n.fontWeight:n.fontStyle,t.isLikelyNode?n.fontStyle:n.fontWeight,i?this.CACHE_FONT_SIZE+"px":n.fontSize+"px",r].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),n=new Array(i.length),s=["\n"],o=[],r=0;r<i.length;r++)n[r]=t.util.string.graphemeSplit(i[r]),o=o.concat(n[r],s);return o.pop(),{_unwrappedLines:n,lines:i,graphemeText:o,graphemeLines:n}},toObject:function(e){var i=n.concat(e),s=this.callSuper("toObject",i);return s.styles=t.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(e,t){this.callSuper("set",e,t);var i=!1,n=!1;if("object"===typeof e)for(var s in e)"path"===s&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(s),n=n||"path"===s;else i=-1!==this._dimensionAffectingProps.indexOf(e),n="path"===e;return n&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,n,s){if(!e)return n(null);var o=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),r=o.textAnchor||"left";if((s=t.util.object.extend(s?i(s):{},o)).top=s.top||0,s.left=s.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf("underline")&&(s.underline=!0),-1!==a.indexOf("overline")&&(s.overline=!0),-1!==a.indexOf("line-through")&&(s.linethrough=!0),delete s.textDecoration}"dx"in o&&(s.left+=o.dx),"dy"in o&&(s.top+=o.dy),"fontSize"in s||(s.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var d=s.strokeWidth;s.strokeWidth=0;var h=new t.Text(l,s),c=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*c,g=h.getScaledHeight()+u,p=0;"center"===r&&(p=h.getScaledWidth()/2),"right"===r&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof d?d:1}),n(h)},t.Text.fromObject=function(e,n){var s=i(e),o=e.path;return delete s.path,t.Object._fromObject("Text",s,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),o?t.Object._fromObject("Path",o,(function(e){i.set("path",e),n(i)}),"path"):n(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),s.util.object.extend(s.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var n in t[i])for(var s in t[i][n])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var n in i)for(var s in i[n])if("undefined"!==typeof i[n][s][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,n=this.styles,s=0,o=!0,r=0;for(var a in n){for(var l in t=0,n[a]){var d;s++,(d=n[a][l]).hasOwnProperty(e)?(i?d[e]!==i&&(o=!1):i=d[e],d[e]===this[e]&&delete d[e]):o=!1,0!==Object.keys(d).length?t++:delete n[a][l]}0===t&&delete n[a]}for(var h=0;h<this._textLines.length;h++)r+=this._textLines[h].length;o&&s===r&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,n,s=this.styles;for(i in s){for(n in t=s[i])delete t[n][e],0===Object.keys(t[n]).length&&delete t[n];0===Object.keys(t).length&&delete s[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),s.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,n=i.length,s=0;s<n;s++){if(e<=i[s].length)return{lineIndex:s,charIndex:e};e-=i[s].length+this.missingNewlineOffset(s)}return{lineIndex:s-1,charIndex:i[s-1].length<e?i[s-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var n=[],s=e;s<t;s++)n.push(this.getStyleAtPosition(s,i));return n},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var n=t;n<i;n++)this._extendStyles(n,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,n=this._getStyleDeclaration(e,t)||{},s={},o=0;o<this._styleProperties.length;o++)s[i=this._styleProperties[o]]="undefined"===typeof n[i]?this[i]:n[i];return s},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}s.IText=s.util.createClass(s.Text,s.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),n=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:n.left,topOffset:n.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,n,s,o=0,r=0,a=this.get2DCursorLocation(e);n=a.charIndex,i=a.lineIndex;for(var l=0;l<i;l++)o+=this.getHeightOfLine(l);t=this._getLineLeftOffset(i);var d=this.__charBounds[i][n];return d&&(r=d.left),0!==this.charSpacing&&n===this._textLines[i].length&&(r-=this._getWidthOfCharSpacing()),s={top:o,left:t+(r>0?r:0)},"rtl"===this.direction&&(s.left*=-1),this.cursorOffsetCache=s,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),n=i.lineIndex,s=i.charIndex>0?i.charIndex-1:0,o=this.getValueOfPropertyAt(n,s,"fontSize"),r=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/r,l=e.topOffset,d=this.getValueOfPropertyAt(n,s,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(n)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(n,s,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,l+e.top+d,a,o)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,n=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,s=-1!==this.textAlign.indexOf("justify"),o=this.get2DCursorLocation(i),r=this.get2DCursorLocation(n),a=o.lineIndex,l=r.lineIndex,d=o.charIndex<0?0:o.charIndex,h=r.charIndex<0?0:r.charIndex,c=a;c<=l;c++){var u,g=this._getLineLeftOffset(c)||0,p=this.getHeightOfLine(c),m=0,f=0;if(c===a&&(m=this.__charBounds[a][d].left),c>=a&&c<l)f=s&&!this.isEndOfWrapping(c)?this.width:this.getLineWidth(c)||5;else if(c===l)if(0===h)f=this.__charBounds[l][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[l][h-1].left+this.__charBounds[l][h-1].width-_}u=p,(this.lineHeight<1||c===l&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,b=f-m,C=p,y=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",C=1,y=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-b),t.fillRect(v,e.top+e.topOffset+y,b,C),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),s.IText.fromObject=function(t,i){var n=s.util.stylesFromArray(t.styles,t.text),o=Object.assign({},t,{styles:n});if(e(o),o.styles)for(var r in o.styles)for(var a in o.styles[r])e(o.styles[r][a]);s.Object._fromObject("IText",o,i,"text")}}(),function(){var e=s.util.object.clone;s.util.object.extend(s.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],s.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,n){var s;return s={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){s.isAborted||e[n]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return s.isAborted}}),s},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,n=this._reSpace.test(i[e])?e-1:e,o=i[n],r=s.reNonWord;!r.test(o)&&n>0&&n<i.length;)o=i[n+=t];return r.test(o)&&(n+=1===t?0:1),n},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,n=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==n||i!==t&&n!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===n||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var n=i.slice(0,e),o=s.util.string.graphemeSplit(n).length;if(e===t)return{selectionStart:o,selectionEnd:o};var r=i.slice(e,t);return{selectionStart:o,selectionEnd:o+s.util.string.graphemeSplit(r).length}},fromGraphemeToStringSelection:function(e,t,i){var n=i.slice(0,e).join("").length;return e===t?{selectionStart:n,selectionEnd:n}:{selectionStart:n,selectionEnd:n+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),n=i.lineIndex,o=i.charIndex,r=this.getValueOfPropertyAt(n,o,"fontSize")*this.lineHeight,a=t.leftOffset,l=this.calcTransformMatrix(),d={x:t.left+a,y:t.top+t.topOffset+r},h=this.canvas.getRetinaScaling(),c=this.canvas.upperCanvasEl,u=c.width/h,g=c.height/h,p=u-r,m=g-r,f=c.clientWidth/u,_=c.clientHeight/g;return d=s.util.transformPoint(d,l),(d=s.util.transformPoint(d,this.canvas.viewportTransform)).x*=f,d.y*=_,d.x<0&&(d.x=0),d.x>p&&(d.x=p),d.y<0&&(d.y=0),d.y>m&&(d.y=m),d.x+=this.canvas._offset.left,d.y+=this.canvas._offset.top,{left:d.x+"px",top:d.y+"px",fontSize:r+"px",charHeight:r}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,n,s=this.get2DCursorLocation(e,!0),o=this.get2DCursorLocation(t,!0),r=s.lineIndex,a=s.charIndex,l=o.lineIndex,d=o.charIndex;if(r!==l){if(this.styles[r])for(i=a;i<this._unwrappedTextLines[r].length;i++)delete this.styles[r][i];if(this.styles[l])for(i=d;i<this._unwrappedTextLines[l].length;i++)(n=this.styles[l][i])&&(this.styles[r]||(this.styles[r]={}),this.styles[r][a+i-d]=n);for(i=r+1;i<=l;i++)delete this.styles[i];this.shiftLineStyles(l,r-l)}else if(this.styles[r]){n=this.styles[r];var h,c,u=d-a;for(i=a;i<d;i++)delete n[i];for(c in this.styles[r])(h=parseInt(c,10))>=d&&(n[h-u]=n[c],delete n[c])}},shiftLineStyles:function(t,i){var n=e(this.styles);for(var s in this.styles){var o=parseInt(s,10);o>t&&(this.styles[o+i]=n[o],n[o-i]||delete this.styles[o])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,n,s){var o,r={},a=!1,l=this._unwrappedTextLines[t].length===i;for(var d in n||(n=1),this.shiftLineStyles(t,n),this.styles[t]&&(o=this.styles[t][0===i?i:i-1]),this.styles[t]){var h=parseInt(d,10);h>=i&&(a=!0,r[h-i]=this.styles[t][d],l&&0===i||delete this.styles[t][d])}var c=!1;for(a&&!l&&(this.styles[t+n]=r,c=!0),c&&n--;n>0;)s&&s[n-1]?this.styles[t+n]={0:e(s[n-1])}:o?this.styles[t+n]={0:e(o)}:delete this.styles[t+n],n--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,n,s){this.styles||(this.styles={});var o=this.styles[t],r=o?e(o):{};for(var a in n||(n=1),r){var l=parseInt(a,10);l>=i&&(o[l+n]=r[l],r[l-n]||delete o[l])}if(this._forceClearCache=!0,s)for(;n--;)Object.keys(s[n]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+n]=e(s[n]));else if(o)for(var d=o[i?i-1:1];d&&n--;)this.styles[t][i+n]=e(d)},insertNewStyleBlock:function(e,t,i){for(var n=this.get2DCursorLocation(t,!0),s=[0],o=0,r=0;r<e.length;r++)"\n"===e[r]?s[++o]=0:s[o]++;s[0]>0&&(this.insertCharStyleObject(n.lineIndex,n.charIndex,s[0],i),i=i&&i.slice(s[0]+1)),o&&this.insertNewlineStyleObject(n.lineIndex,n.charIndex+s[0],o);for(r=1;r<o;r++)s[r]>0?this.insertCharStyleObject(n.lineIndex+r,0,s[r],i):i&&this.styles[n.lineIndex+r]&&i[0]&&(this.styles[n.lineIndex+r][0]=i[0]),i=i&&i.slice(s[r]+1);s[r]>0&&this.insertCharStyleObject(n.lineIndex+r,0,s[r],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),s.util.object.extend(s.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,n=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,n,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),n=0,s=0,o=0,r=0,a=0,l=0,d=this._textLines.length;l<d&&o<=i.y;l++)o+=this.getHeightOfLine(l)*this.scaleY,a=l,l>0&&(r+=this._textLines[l-1].length+this.missingNewlineOffset(l-1));s=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+s);for(var h=0,c=t.length;h<c&&(n=s,(s+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)r++;return this._getNewSelectionStartFromOffset(i,n,s,r,c)},_getNewSelectionStartFromOffset:function(e,t,i,n,s){var o=e.x-t,r=i-e.x,a=n+(r>o||r<0?0:1);return this.flipX&&(a=s-a),a>this._text.length&&(a=this._text.length),a}}),s.util.object.extend(s.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=s.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):s.document.body.appendChild(this.hiddenTextarea),s.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),s.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),s.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),s.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),s.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),s.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(s.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,n,o,r,a,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,d=this._text.length,h=l.length,c=h-d,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),c+=g-u):h<d&&(i=f?this._text.slice(g+c,g):this._text.slice(u,u-c)),n=l.slice(m.selectionEnd-c,m.selectionEnd),i&&i.length&&(n.length&&(o=this.getSelectionStyles(u,u+1,!1),o=n.map((function(){return o[0]}))),p?(r=u,a=g):f?(r=g-i.length,a=g):(r=g,a=g+i.length),this.removeStyleFromTo(r,a)),n.length&&(t&&n.join("")===s.copiedText&&!s.disableStyleCopyPaste&&(o=s.copiedTextStyle),this.insertNewStyleBlock(n,u,o)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(s.copiedText=this.getSelectedText(),s.disableStyleCopyPaste?s.copiedTextStyle=null:s.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||s.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,n=this._getLineLeftOffset(e);return t>0&&(n+=(i=this.__charBounds[e][t-1]).left+i.width),n},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),n=this.get2DCursorLocation(i),s=n.lineIndex;if(s===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var o=n.charIndex,r=this._getWidthBeforeCursor(s,o),a=this._getIndexOnLine(s+1,r);return this._textLines[s].slice(o).length+a+1+this.missingNewlineOffset(s)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),n=this.get2DCursorLocation(i),s=n.lineIndex;if(0===s||e.metaKey||33===e.keyCode)return-i;var o=n.charIndex,r=this._getWidthBeforeCursor(s,o),a=this._getIndexOnLine(s-1,r),l=this._textLines[s].slice(0,o),d=this.missingNewlineOffset(s-1);return-this._textLines[s-1].length+a-l.length+(1-d)},_getIndexOnLine:function(e,t){for(var i,n,s=this._textLines[e],o=this._getLineLeftOffset(e),r=0,a=0,l=s.length;a<l;a++)if((o+=i=this.__charBounds[e][a].width)>t){n=!0;var d=o-i,h=o,c=Math.abs(d-t);r=Math.abs(h-t)<c?a:a-1;break}return n||(r=s.length-1),r},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var n;if(e.altKey)n=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;n=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof n&&this[t]!==n)return this[t]=n,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,n){"undefined"===typeof n&&(n=i),n>i&&this.removeStyleFromTo(i,n);var o=s.util.string.graphemeSplit(e);this.insertNewStyleBlock(o,i,t),this._text=[].concat(this._text.slice(0,i),o,this._text.slice(n)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=s.util.toFixed,t=/ +/g;s.util.object.extend(s.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,n=[],s=[],o=e;this._setSVGBg(s);for(var r=0,a=this._textLines.length;r<a;r++)i=this._getLineLeftOffset(r),(this.textBackgroundColor||this.styleHas("textBackgroundColor",r))&&this._setSVGTextLineBg(s,r,t+i,o),this._setSVGTextLineText(n,r,t+i,o),o+=this.getHeightOfLine(r);return{textSpans:n,textBgRects:s}},_createTextCharSpan:function(i,n,o,r){var a=i!==i.trim()||i.match(t),l=this.getSvgSpanStyles(n,a),d=l?'style="'+l+'"':"",h=n.deltaY,c="",u=s.Object.NUM_FRACTION_DIGITS;return h&&(c=' dy="'+e(h,u)+'" '),['<tspan x="',e(o,u),'" y="',e(r,u),'" ',c,d,">",s.util.string.escapeXml(i),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,n){var o,r,a,l,d,h=this.getHeightOfLine(t),c=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];n+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)d=m===f||this.charSpacing,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,c&&!d&&this._reSpaceAndTab.test(p[m])&&(d=!0),d||(o=o||this.getCompleteStyleDeclaration(t,m),r=this.getCompleteStyleDeclaration(t,m+1),d=s.util.hasStyleChanged(o,r,!0)),d&&(l=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,l,i,n)),u="",o=r,i+=g,g=0)},_pushTextBgRect:function(t,i,n,o,r,a){var l=s.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(n,l),'" y="',e(o,l),'" width="',e(r,l),'" height="',e(a,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,n){for(var s,o,r=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,l=0,d=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),c=0,u=r.length;c<u;c++)s=this.__charBounds[t][c],(o=this.getValueOfPropertyAt(t,c,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+d,n,l,a),d=s.left,l=s.width,h=o):l+=s.kernedWidth;o&&this._pushTextBgRect(e,o,i+d,n,l,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new s.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,n=0;n<e;n++)i+=this.getHeightOfLine(n);return t=this.getHeightOfLine(n),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return s.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,n=0,s={},o=0;o<e.graphemeLines.length;o++)"\n"===e.graphemeText[n]&&o>0?(i=0,n++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[n])&&o>0&&(i++,n++),s[o]={line:t,offset:i},n+=e.graphemeLines[o].length,i+=e.graphemeLines[o].length;return s},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[i];n&&(i=n.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,n=0,s=!1,o=this._styleMap[e],r=this._styleMap[e+1];for(var a in o&&(e=o.line,n=o.offset),r&&(s=r.line===e,t=r.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var l in i[a])if(l>=n&&(!s||l<t))for(var d in i[a][l])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var n=this._styleMap[e];e=n.line,t=n.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,n=[];for(this.isWrapping=!0,i=0;i<e.length;i++)n=n.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,n},_measureWord:function(e,t,i){var n,s=0;i=i||0;for(var o=0,r=e.length;o<r;o++){s+=this._getGraphemeBox(e[o],t,o+i,n,true).kernedWidth,n=e[o]}return s},_wrapLine:function(e,i,n,s){var o=0,r=this.splitByGrapheme,a=[],l=[],d=r?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",c=0,u=r?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();s=s||0;0===d.length&&d.push([]),n-=s;for(var v=0;v<d.length;v++)h=r?d[v]:t.util.string.graphemeSplit(d[v]),g=this._measureWord(h,i,c),c+=h.length,(o+=p+g-_)>n&&!f?(a.push(l),l=[],o=g,f=!0):o+=_,f||r||l.push(u),l=l.concat(h),p=r?0:this._measureWord([u],i,c),c++,f=!1,g>m&&(m=g);return v&&a.push(l),m+s>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+s),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e){return this.splitByGrapheme?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),n=this._wrapText(i.lines,this.width),s=new Array(n.length),o=0;o<n.length;o++)s[o]=n[o].join("");return i.lines=s,i.graphemeLines=n,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var n=t.util.stylesFromArray(e.styles,e.text),s=Object.assign({},e,{styles:n});return t.Object._fromObject("Textbox",s,i,"text")}}(t),function(){var e=s.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,n=e.scalingEqually,o=e.scalingYOrSkewingX,r=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,l=s.Object.prototype.controls;if(l.ml=new s.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mr=new s.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mb=new s.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mt=new s.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.tl=new s.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:n}),l.tr=new s.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:n}),l.bl=new s.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:n}),l.br=new s.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:n}),l.mtr=new s.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),s.Textbox){var d=s.Textbox.prototype.controls={};d.mtr=l.mtr,d.tr=l.tr,d.br=l.br,d.tl=l.tl,d.bl=l.bl,d.mt=l.mt,d.mb=l.mb,d.mr=new s.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),d.ml=new s.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},47943:(e,t,i)=>{var n=i(75719),s=i(54670);e.exports=function e(t,i,o,r,a){var l=-1,d=t.length;for(o||(o=s),a||(a=[]);++l<d;){var h=t[l];i>0&&o(h)?i>1?e(h,i-1,o,r,a):n(a,h):r||(a[a.length]=h)}return a}},38697:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},21873:(e,t,i)=>{var n=i(10834),s=i(77691),o=i(24495),r=i(22413);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[r(s(t))]}},51976:(e,t,i)=>{var n=i(18975);e.exports=function(e){return n(e)?void 0:e}},49611:(e,t,i)=>{var n=i(12038),s=i(60466),o=i(11646);e.exports=function(e){return o(s(e,void 0,n),e+"")}},54670:(e,t,i)=>{var n=i(72211),s=i(15543),o=i(97182),r=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||s(e)||!!(r&&e&&e[r])}},24495:(e,t,i)=>{var n=i(33270),s=i(48077);e.exports=function(e,t){return t.length<2?e:n(e,s(t,0,-1))}},12038:(e,t,i)=>{var n=i(47943);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},48509:(e,t,i)=>{var n=i(38697),s=i(5832);e.exports=function(e,t){return null!=e&&s(e,t,n)}},68062:(e,t,i)=>{var n=i(71519),s=i(80640),o="[object Number]";e.exports=function(e){return"number"==typeof e||s(e)&&n(e)==o}},77691:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6395:(e,t,i)=>{var n=i(20085),s=i(63379)((function(e,t,i,s){n(e,t,i,s)}));e.exports=s},83351:(e,t,i)=>{var n=i(6703),s=i(54721),o=i(21873),r=i(10834),a=i(44526),l=i(51976),d=i(49611),h=i(87859),c=d((function(e,t){var i={};if(null==e)return i;var d=!1;t=n(t,(function(t){return t=r(t,e),d||(d=t.length>1),t})),a(e,h(e),i),d&&(i=s(i,7,l));for(var c=t.length;c--;)o(i,t[c]);return i}));e.exports=c},56017:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Vl,Emitter:()=>Wl,KeyCode:()=>Hl,KeyMod:()=>zl,MarkerSeverity:()=>$l,MarkerTag:()=>Gl,Position:()=>jl,Range:()=>Ul,Selection:()=>Kl,SelectionDirection:()=>ql,Token:()=>Zl,Uri:()=>Yl,default:()=>td,editor:()=>Ql,languages:()=>Xl});var n={};i.r(n),i.d(n,{CancellationTokenSource:()=>Vl,Emitter:()=>Wl,KeyCode:()=>Hl,KeyMod:()=>zl,MarkerSeverity:()=>$l,MarkerTag:()=>Gl,Position:()=>jl,Range:()=>Ul,Selection:()=>Kl,SelectionDirection:()=>ql,Token:()=>Zl,Uri:()=>Yl,editor:()=>Ql,languages:()=>Xl});i(98098),i(23053),i(15968),i(32944),i(34564),i(19757),i(13391);var s=i(50238),o=(i(79623),i(52722),i(21476),i(61778),i(8295),i(63950),i(29134),i(1377),i(44870),i(61522),i(66953),i(17987),i(45713),i(63776),i(91135),i(13499),i(95851),i(95879),i(67069),i(76198),i(81584),i(11506),i(49116),i(48628),i(40335),i(37434),i(38259),i(54829),i(70597),i(25025),i(73166),i(27353),i(46030),i(36513),i(81927),i(10628),i(3394),i(71571),i(70902),i(40606),i(23977),i(36920),i(97737),i(89489),i(78201),i(79908),i(67017),i(34338),i(82148),i(53295),i(48208),i(77042),i(49724),i(39422),i(71636),i(78564),i(97235),i(77137),i(67364)),r=i(31197),a=i(11801),l=i(53186),d=i(78701),h=i(91387),c=i(88775),u=i(60548),g=i(74246),p=i(53335),m=i(65184);class f extends m.Q8{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const e of t)s[e]=n(e,i);return s}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var _=i(90582),v=i(13785),b=i(36362),C=i(18841),y=i(91342),w=i(5580),S=i(76326),x=i(31708),L=i(24032),k=i(23058),D=i(82335),N=i(58296),E=i(34415),T=i(97869),I=i(23614);function M(e){return!function(e){return Array.isArray(e)}(e)}function A(e){return"string"===typeof e}function R(e){return!A(e)}function O(e){return!e}function P(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function F(e){return e.replace(/[&<>'"_]/g,"-")}function B(e,t){return new Error(`${e.languageId}: ${t}`)}function V(e,t,i,n,s){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,d,h,c,u,g){return O(a)?O(l)?!O(d)&&d<n.length?P(e,n[d]):!O(c)&&e&&"string"===typeof e[c]?e[c]:(null===o&&(o=s.split("."),o.unshift(s)),!O(h)&&h<o.length?P(e,o[h]):""):P(e,i):"$"}))}function W(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var H,z=i(30600),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};class K{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new q(e,t);let i=q.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new q(e,t),this._entries[i]=n,n)}}K._INSTANCE=new K(5);class q{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return q._equals(this,e)}push(e){return K.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return K.create(this.parent,e)}}class ${constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new $(this.languageId,this.state)}}class G{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new Y(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Y(e,t);const i=q.getStackElementId(e);let n=this._entries[i];return n||(n=new Y(e,null),this._entries[i]=n,n)}}G._INSTANCE=new G(5);class Y{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:G.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof Y&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class Z{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new C.WU(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,o=i.state,r=C.RW.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;const a=r.tokenize(e,t,o);if(0!==n)for(const l of a.tokens)this._tokens.push(new C.WU(l.offset+n,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new C.hG(this._tokens,e)}}class Q{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,s=t.length,o=null!==i?i.length:0;if(0===n&&0===s&&0===o)return new Uint32Array(0);if(0===n&&0===s)return i;if(0===s&&0===o)return e;const r=new Uint32Array(n+s+o);null!==e&&r.set(e);for(let a=0;a<s;a++)r[n+a]=t[a];return null!==i&&r.set(i,n+s),r}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,o=i.state,r=C.RW.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;const a=r.tokenizeEncoded(e,t,o);if(0!==n)for(let l=0,d=a.tokens.length;l<d;l+=2)a.tokens[l]+=n;return this._prependTokens=Q._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new C.DI(Q._merge(this._prependTokens,this._tokens,null),e)}}let X=H=class extends l.JT{constructor(e,t,i,n,s){super(),this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let o=!1;this._register(C.RW.onDidChange((e=>{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){const n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(o=!0,C.RW.handleChange([this._languageId]),o=!1)}))),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=C.RW.get(t);if(i){if(i instanceof H){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else C.RW.isResolved(t)||e.push(C.RW.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=K.create(null,this._lexer.start);return G.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Ri)(this._languageId,i);const n=new Z,s=this._tokenize(e,t,i,n);return n.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new Q(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=W(this._lexer,t.stack.state),!i))throw B(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(const o of i){if(!R(o.action)||"@pop"!==o.action.nextEmbedded)continue;s=!0;let i=o.resolveRegex(t.stack.state);const r=i.source;if("^(?:"===r.substr(0,4)&&")"===r.substr(r.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(r.substr(4,r.length-5),e)}const a=e.search(i);-1===a||0!==a&&o.matchOnlyAtLineStart||(-1===n||a<n)&&(n=a)}if(!s)throw B(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,s){const o=this._findLeavingNestedLanguageOffset(e,i);if(-1===o){const o=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return G.create(i.stack,new $(i.embeddedLanguageData.languageId,o))}const r=e.substring(0,o);r.length>0&&s.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(o);return this._myTokenize(a,t,i,n+o,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);const o=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,d=i.stack,h=0,c=null,u=!0;for(;u||h<a;){const i=h,m=d.depth,f=c?c.groups.length:0,_=d.state;let v=null,b=null,C=null,y=null,w=null;if(c){v=c.matches;const e=c.groups.shift();b=e.matched,C=e.action,y=c.rule,0===c.groups.length&&(c=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=W(this._lexer,_),!e))throw B(this._lexer,"tokenizer state is not defined: "+_);const t=r.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(h<a&&(v=[r.charAt(h)],b=v[0]),C=this._lexer.defaultToken),null===b)break;for(h+=b.length;M(C)&&R(C)&&C.test;)C=C.test(b,v,_,h===a);let S=null;if("string"===typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){if(S=C.tokenSubst?V(this._lexer,C.token,b,v,_):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw B(this._lexer,"cannot pop embedded language if not inside one");l=null}else{if(l)throw B(this._lexer,"cannot enter embedded language from within an embedded language");w=V(this._lexer,C.nextEmbedded,b,v,_)}if(C.goBack&&(h=Math.max(0,h-C.goBack)),C.switchTo&&"string"===typeof C.switchTo){let e=V(this._lexer,C.switchTo,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!W(this._lexer,e))throw B(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.switchTo(e)}else{if(C.transform&&"function"===typeof C.transform)throw B(this._lexer,"action.transform not supported");if(C.next)if("@push"===C.next){if(d.depth>=this._lexer.maxStack)throw B(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(_)}else if("@pop"===C.next){if(d.depth<=1)throw B(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));d=d.pop()}else if("@popall"===C.next)d=d.popall();else{let e=V(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!W(this._lexer,e))throw B(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.push(e)}}C.log&&"string"===typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+V(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw B(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));const x=i=>{const o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(o);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,G.create(d,r),n+h,s)}return G.create(d,r)};if(Array.isArray(S)){if(c&&c.groups.length>0)throw B(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(v.length!==S.length+1)throw B(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==b.length)throw B(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));c={rule:y,matches:v,groups:[]};for(let t=0;t<S.length;t++)c.groups[t]={action:S[t],matched:v[t+1]};h-=b.length}else{{if("@rematch"===S&&(h-=b.length,b="",v=null,S="",null!==w))return x(w);if(0===b.length){if(0===a||m!==d.depth||_!==d.state||(c?c.groups.length:0)!==f)continue;throw B(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(y))}let e=null;if(A(S)&&0===S.indexOf("@brackets")){const t=S.substr("@brackets".length),i=J(this._lexer,b);if(!i)throw B(this._lexer,"@brackets token returned but no bracket defined as: "+b);e=F(i.token+t)}else{e=F(""===S?"":S+this._lexer.tokenPostfix)}i<o&&s.emit(i+n,e)}if(null!==w)return x(w)}}var g,p;return G.create(d,l)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new $(e,x.TJ);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),C.RW.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=C.RW.get(e);return new $(e,t?t.getInitialState():x.TJ)}};function J(e,t){if(!t)return null;t=P(e,t);const i=e.brackets;for(const n of i){if(n.open===t)return{token:n.token,bracketType:1};if(n.close===t)return{token:n.token,bracketType:-1}}return null}X=H=j([U(4,z.Ui)],X);const ee=(0,N.Z)("standaloneColorizer",{createHTML:e=>e});class te{static colorizeElement(e,t,i,n){const s=(n=n||{}).theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const r=t.getLanguageIdByMimeType(o)||o;e.setTheme(s);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+s;return this.colorize(t,a||"",r,n).then((e=>{var t;const n=null!==(t=null===ee||void 0===ee?void 0:ee.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>console.error(e)))}static async colorize(e,t,i,n){const s=e.languageIdCodec;let o=4;n&&"number"===typeof n.tabSize&&(o=n.tabSize),d.uS(t)&&(t=t.substr(1));const r=d.uq(t);if(!e.isRegisteredLanguageId(i))return ie(r,o,s);const a=await C.RW.getOrCreate(i);return a?function(e,t,i,n){return new Promise(((s,o)=>{const r=()=>{const a=function(e,t,i,n){let s=[],o=i.getInitialState();for(let r=0,a=e.length;r<a;r++){const a=e[r],l=i.tokenizeEncoded(a,!0,o);E.A.convertToEndOffset(l.tokens,a.length);const d=new E.A(l.tokens,a,n),h=I.wA.isBasicASCII(a,!0),c=I.wA.containsRTL(a,h,!0),u=(0,T.tF)(new T.IJ(!1,!0,a,!1,h,c,0,d.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(u.html),s.push("<br/>"),o=l.endState}return s.join("")}(e,t,i,n);if(i instanceof X){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,o)}s(a)};r()}))}(r,o,a,s):ie(r,o,s)}static colorizeLine(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:4;const o=I.wA.isBasicASCII(e,t),r=I.wA.containsRTL(e,o,i);return(0,T.tF)(new T.IJ(!1,!0,e,!1,o,r,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const s=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i)}}function ie(e,t,i){let n=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let o=0,r=e.length;o<r;o++){const r=e[o];s[0]=r.length;const a=new E.A(s,r,i),l=I.wA.isBasicASCII(r,!0),d=I.wA.containsRTL(r,l,!0),h=(0,T.tF)(new T.IJ(!1,!0,r,!1,l,d,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(h.html),n.push("<br/>")}return n.join("")}var ne=i(83945),se=i(87545),oe=i(76595),re=i(32060),ae=i(39706),le=i(64450),de=i(46673),he=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ce=function(e,t){return function(i,n){t(i,n,e)}};let ue=class extends l.JT{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new ae.Q5),this._onCodeEditorAdd=this._register(new ae.Q5),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new ae.Q5),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new ae.Q5),this._onDiffEditorAdd=this._register(new ae.Q5),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new ae.Q5),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new le.S,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const s=await n(e,t,i);if(null!==s)return s}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,l.OF)(t)}};ue=he([ce(0,de.XE)],ue);var ge=i(47116),pe=i(23026),me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},fe=function(e,t){return function(i,n){t(i,n,e)}};let _e=class extends ue{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===re.lg.http||i===re.lg.https)return(0,oe.V3)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};_e=me([fe(0,ge.i6),fe(1,de.XE)],_e),(0,pe.z)(g.$,_e,0);var ve=i(51833),be=i(87775);const Ce=(0,be.yh)("layoutService");var ye=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},we=function(e,t){return function(i,n){t(i,n,e)}};let Se=class{get mainContainer(){var e,t;return null!==(t=null===(e=(0,ve.Xh)(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:a.E.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null===i||void 0===i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return oe.D6(this.mainContainer)}get activeContainerDimension(){return oe.D6(this.activeContainer)}get containers(){return(0,ve.kX)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=ae.ju.None,this.onDidLayoutActiveContainer=ae.ju.None,this.onDidLayoutContainer=ae.ju.None,this.onDidChangeActiveContainer=ae.ju.None,this.onDidAddContainer=ae.ju.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Se=ye([we(0,g.$)],Se);let xe=class extends Se{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};xe=ye([we(1,g.$)],xe),(0,pe.z)(Ce,Se,1);var Le=i(16015),ke=i(28889),De=i(5887),Ne=i(21182),Ee=i(61758),Te=i(40938),Ie=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};const Ae=!1;function Re(e){return e.scheme===re.lg.file?e.fsPath:e.path}let Oe=0;class Pe{constructor(e,t,i,n,s,o,r){this.id=++Oe,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=o,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Fe{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Be{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements){(0===n.reason?e:t).push(n.resourceLabel)}const i=[];return e.length>0&&i.push(De.NC({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(De.NC({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Ve{constructor(e,t,i,n,s,o,r){this.id=++Oe,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=o,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new Be),this.removedResources.has(t)||this.removedResources.set(t,new Fe(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Be),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Fe(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class We{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i<n;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new Te.YO(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let r=0,a=this._past.length;r<a;r++,n++){const o=this._past[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=0),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let r=this._future.length-1;r>=0;r--,n++){const s=this._future[r];i&&(n>=t||s.id!==e.elements[n])&&(i=!1,o=r),i||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}-1!==s&&(this._past=this._past.slice(0,s)),-1!==o&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class He{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const ze=new We("","");ze.locked=!0;let je=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te.Xt.None,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Te.gJ.None;if(0===e.type){const n=Re(e.resource),s=this.getUriComparisonKey(e.resource);this._pushElement(new Pe(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const n=new Set,s=[],o=[];for(const t of e.resources){const e=Re(t),i=this.getUriComparisonKey(t);n.has(i)||(n.add(i),s.push(e),o.push(i))}1===s.length?this._pushElement(new Pe(e,s[0],o[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Ve(e,s,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],n=e.strResources[t];let s;this._editStacks.has(n)?s=this._editStacks.get(n):(s=new We(i,n),this._editStacks.set(n,s)),s.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),n=new Map;for(const s of i){const e=Re(s.resource),t=this.getUriComparisonKey(s.resource),i=new Pe(s,e,t,0,0,0,0);n.set(i.strResource,i)}for(const s of e.strResources){if(t&&t.has(s))continue;this._editStacks.get(s).splitPastWorkspaceElement(e,n)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),n=new Map;for(const s of i){const e=Re(s.resource),t=this.getUriComparisonKey(s.resource),i=new Pe(s,e,t,0,0,0,0);n.set(i.strResource,i)}for(const s of e.strResources){if(t&&t.has(s))continue;this._editStacks.get(s).splitFutureWorkspaceElement(e,n)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const n=this.getUriComparisonKey(e);if(this._editStacks.has(n)){this._editStacks.get(n).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new Te.YO(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestPastElement();o&&(o.sourceId===e&&(!t||o.sourceOrder>t.sourceOrder)&&(t=o,i=n))}return[t,i]}canUndo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,Le.dL)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){const o=this._acquireLocks(i);let r;try{r=t()}catch(a){return o(),n.dispose(),this._onError(a,e)}return r?r.then((()=>(o(),n.dispose(),s())),(t=>(o(),n.dispose(),this._onError(t,e)))):(o(),n.dispose(),s())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return l.JT.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?l.JT.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(l.JT.None);const i=e.actual.prepareUndoRedo();return i?(0,l.Wf)(i)?t(i):i.then((e=>t(e))):t(l.JT.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||ze);return new He(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Ue(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Ue}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,De.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,De.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const r of i.editStacks)r.getClosestPastElement()!==t&&s.push(r.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,De.NC({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const o=[];for(const r of i.editStacks)r.locked&&o.push(r.resourceLabel);return o.length>0?this._tryToSplitAndUndo(e,t,null,De.NC({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,De.NC({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let s;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(s||(s={}));const{result:o}=await this._dialogService.prompt({type:ke.Z.Info,message:De.NC("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:De.NC({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>s.All},{label:De.NC({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>s.This}],cancelButton:{run:()=>s.Cancel}});if(o===s.Cancel)return;if(o===s.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;n=!0}let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const o=this._checkWorkspaceUndo(e,t,i,!0);if(o)return s.dispose(),o.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,s,(()=>this._continueUndoInGroup(t.groupId,n)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new He([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=De.NC({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestPastElement();o&&(o.groupId===e&&(!t||o.groupOrder>t.groupOrder)&&(t=o,i=n))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[e,n]=this._findClosestUndoElementInGroup(s.groupId);if(s!==e&&n)return this._undo(n,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return 1===s.type?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{Ae}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:De.NC("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:De.NC({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:De.NC("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestFutureElement();o&&(o.sourceId===e&&(!t||o.sourceOrder<t.sourceOrder)&&(t=o,i=n))}return[t,i]}canRedo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new Ue(this._redo(e));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Ue}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,De.NC({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,De.NC({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const r of i.editStacks)r.getClosestFutureElement()!==t&&s.push(r.resourceLabel);if(s.length>0)return this._tryToSplitAndRedo(e,t,null,De.NC({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const o=[];for(const r of i.editStacks)r.locked&&o.push(r.resourceLabel);return o.length>0?this._tryToSplitAndRedo(e,t,null,De.NC({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,De.NC({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new He([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=De.NC({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestFutureElement();o&&(o.groupId===e&&(!t||o.groupOrder<t.groupOrder)&&(t=o,i=n))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ae}}}};je=Ie([Me(0,Ne.S),Me(1,Ee.lT)],je);class Ue{constructor(e){this.returnValue=e}}(0,pe.z)(Te.tJ,je,1);i(14386);var Ke=i(33454),qe=i(4085),$e=i(15688),Ge=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ye=function(e,t){return function(i,n){t(i,n,e)}};let Ze=class extends l.JT{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new qe.$(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};Ze=Ge([Ye(0,de.XE),Ye(1,Ke.VZ),Ye(2,y.O)],Ze),(0,pe.z)($e.s,Ze,1);var Qe=i(45298);function Xe(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(Xe):!!e.exclusive)}class Je{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class et{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new ae.Q5,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,l.OF)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),s=n?new Je(e.uri,e.getLanguageId(),n.uri,n.type):new Je(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(s))){this._lastCandidate=s;for(const t of this._entries)if(t._score=(0,Qe.G)(t.selector,s.uri,s.languageId,(0,L.pt)(e),s.notebookUri,s.notebookType),Xe(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(et._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:tt(e.selector)&&!tt(t.selector)?1:!tt(e.selector)&&tt(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function tt(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(tt):Boolean(e.isBuiltin))}var it=i(53869);(0,pe.z)(it.p,class{constructor(){this.referenceProvider=new et(this._score.bind(this)),this.renameProvider=new et(this._score.bind(this)),this.newSymbolNamesProvider=new et(this._score.bind(this)),this.codeActionProvider=new et(this._score.bind(this)),this.definitionProvider=new et(this._score.bind(this)),this.typeDefinitionProvider=new et(this._score.bind(this)),this.declarationProvider=new et(this._score.bind(this)),this.implementationProvider=new et(this._score.bind(this)),this.documentSymbolProvider=new et(this._score.bind(this)),this.inlayHintsProvider=new et(this._score.bind(this)),this.colorProvider=new et(this._score.bind(this)),this.codeLensProvider=new et(this._score.bind(this)),this.documentFormattingEditProvider=new et(this._score.bind(this)),this.documentRangeFormattingEditProvider=new et(this._score.bind(this)),this.onTypeFormattingEditProvider=new et(this._score.bind(this)),this.signatureHelpProvider=new et(this._score.bind(this)),this.hoverProvider=new et(this._score.bind(this)),this.documentHighlightProvider=new et(this._score.bind(this)),this.multiDocumentHighlightProvider=new et(this._score.bind(this)),this.selectionRangeProvider=new et(this._score.bind(this)),this.foldingRangeProvider=new et(this._score.bind(this)),this.linkProvider=new et(this._score.bind(this)),this.inlineCompletionsProvider=new et(this._score.bind(this)),this.inlineEditProvider=new et(this._score.bind(this)),this.completionProvider=new et(this._score.bind(this)),this.linkedEditingRangeProvider=new et(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new et(this._score.bind(this)),this.documentSemanticTokensProvider=new et(this._score.bind(this)),this.documentOnDropEditProvider=new et(this._score.bind(this)),this.documentPasteEditProvider=new et(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1);var nt=i(6009),st=i(82854),ot=i(79086),rt=i(25371),at=i(22367),lt=i(7341),dt=i(34912),ht=i(35978),ct=i(73971),ut=i(90388),gt=i(71940),pt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},mt=function(e,t){return function(i,n){t(i,n,e)}};const ft=oe.$;let _t=class extends lt.${get _targetWindow(){return oe.Jj(this._target.targetElements[0])}get _targetDocumentElement(){return oe.Jj(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,n,s,r){var a,d,h,c,u,g,p,m;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=s,this._accessibilityService=r,this._messageListeners=new l.SL,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new ae.Q5),this._onRequestLayout=this._register(new ae.Q5),this._linkHandler=e.linkHandler||(t=>(0,ht.N)(this._openerService,t,(0,ct.Fr)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new bt(e.target),this._hoverPointer=(null===(a=e.appearance)||void 0===a?void 0:a.showPointer)?ft("div.workbench-hover-pointer"):void 0,this._hover=this._register(new at.c8),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),(null===(d=e.appearance)||void 0===d?void 0:d.compact)&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),(null===(h=e.appearance)||void 0===h?void 0:h.skipFadeInAnimation)&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),(null===(c=e.position)||void 0===c?void 0:c.forcePosition)&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=null!==(g=null===(u=e.position)||void 0===u?void 0:u.hoverPosition)&&void 0!==g?g:3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(oe.nm(this._targetWindow,"blur",(()=>this.dispose())));const f=ft("div.hover-row.markdown-hover"),_=ft("div.hover-contents");if("string"===typeof e.content)_.textContent=e.content,_.style.whiteSpace="pre-wrap";else if(e.content instanceof HTMLElement)_.appendChild(e.content),_.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(ht.$,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||o.hL.fontFamily}),{element:n}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{_.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});_.appendChild(n)}if(f.appendChild(_),this._hover.contentsDomNode.appendChild(f),e.actions&&e.actions.length>0){const t=ft("div.hover-row.status-bar"),i=ft("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;at.Sr.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let v;if(this._hoverContainer=ft("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),v=!(e.actions&&e.actions.length>0)&&(void 0===(null===(p=e.persistence)||void 0===p?void 0:p.hideOnHover)?"string"===typeof e.content||(0,ct.Fr)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),v&&(null===(m=e.appearance)||void 0===m?void 0:m.showHoverHint)){const e=ft("div.hover-row.status-bar"),t=ft("div.info");t.textContent=(0,De.NC)("hoverhint","Hold {0} key to mouse over",ut.dz?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const b=[...this._target.targetElements];v||b.push(this._hoverContainer);const C=this._register(new vt(b));if(this._register(C.onMouseOut((()=>{this._isLocked||this.dispose()}))),v){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new vt(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=C}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=oe.Ce(this._hoverContainer,ft("div")),n=oe.R3(this._hoverContainer,ft("div"));i.tabIndex=0,n.tabIndex=0,this._register(oe.nm(n,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(oe.nm(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,at.uX)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===t?void 0:t.getAriaLabel());i&&(0,ne.i7)(i),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=oe.I8(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:n,left:s}=e[0],o=i-s,r=n-t,a={top:t,right:i,bottom:n,left:s,width:o,height:r,center:{x:s+o/2,y:t+r/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+o/2,a.center.y=a.top+r/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(n<e.left||n>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};_t=pt([mt(1,rt.d),mt(2,z.Ui),mt(3,dt.v),mt(4,be.TG),mt(5,gt.F)],_t);class vt extends lt.${get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new ae.Q5),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=oe.Jj(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(oe.Jj(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class bt{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Ct,yt=i(10381),wt=i(81068),St=i(32906);function xt(e,t,i){const n=i.mode===Ct.ALIGN?i.offset:i.offset+i.size,s=i.mode===Ct.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=s?s-t:Math.max(e-t,0):t<=s?s-t:t<=e-n?n:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Ct||(Ct={}));class Lt extends l.JT{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=l.JT.None,this.toDisposeOnSetContainer=l.JT.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=oe.$(".context-view"),oe.Cp(this.view),this.setContainer(e,t),this._register((0,l.OF)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;this.useFixedPosition=1!==t;const n=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||n!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=oe.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=kt,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(oe.$("slot"))}else this.container.appendChild(this.view);const t=new l.SL;Lt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(oe.mu(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),Lt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(oe.mu(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){var t,i,n;this.isVisible()&&this.hide(),oe.PO(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(null!==(t=e.layer)&&void 0!==t?t:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",oe.$Z(this.view),this.toDisposeOnClean=e.render(this.view)||l.JT.None,this.delegate=e,this.doLayout(),null===(n=(i=this.delegate).focus)||void 0===n||n.call(i)}getViewElement(){return this.view}layout(){var e,t;this.isVisible()&&(!1!==this.delegate.canRelayout||ut.gn&&wt.D.pointerEvents?(null===(t=null===(e=this.delegate)||void 0===e?void 0:e.layout)||void 0===t||t.call(e),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(e instanceof HTMLElement){const i=oe.i(e),n=oe.I8(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=oe.w(this.view),n=oe.wn(this.view),s=this.delegate.anchorPosition||0,o=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,l;const d=oe.WN();if(0===r){const e={offset:t.top-d.pageYOffset,size:t.height,position:0===s?0:1},r={offset:t.left,size:t.width,position:0===o?0:1,mode:Ct.ALIGN};a=xt(d.innerHeight,n,e)+d.pageYOffset,St.e.intersects({start:a,end:a+n},{start:e.offset,end:e.offset+e.size})&&(r.mode=Ct.AVOID),l=xt(d.innerWidth,i,r)}else{const e={offset:t.left,size:t.width,position:0===o?0:1},r={offset:t.top,size:t.height,position:0===s?0:1,mode:Ct.ALIGN};l=xt(d.innerWidth,i,e),St.e.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(r.mode=Ct.AVOID),a=xt(d.innerHeight,n,r)+d.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===s?"bottom":"top"),this.view.classList.add(0===o?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=oe.i(this.container);this.view.style.top=a-(this.useFixedPosition?oe.i(this.view).top:h.top)+"px",this.view.style.left=l-(this.useFixedPosition?oe.i(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),oe.Cp(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,oe.Jj(e).document.activeElement):t&&!oe.jg(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Lt.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Lt.BUBBLE_DOWN_EVENTS=["click"];const kt='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Dt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Nt=function(e,t){return function(i,n){t(i,n,e)}};let Et=class extends l.JT{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=this._register(new l.XK),this.contextView=this._register(new Lt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,oe.Jj)(t))?1:i?3:2:1,this.contextView.setContainer(null!==t&&void 0!==t?t:this.layoutService.activeContainer,n),this.contextView.show(e);const s=(0,l.OF)((()=>{this.currentViewDisposable===s&&this.hideContextView()}));return this.currentViewDisposable.value=s,s}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};Et=Dt([Nt(0,Ce)],Et);class Tt extends Et{getContextViewElement(){return this.contextView.getViewElement()}}var It=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Mt=function(e,t){return function(i,n){t(i,n,e)}};let At=class extends l.JT{constructor(e,t,i,n,s){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=n,this._accessibilityService=s,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new Et(this._layoutService))}showHover(e,t,i){var n,s,o,r;if(Rt(this._currentHoverOptions)===Rt(e))return;if(this._currentHover&&(null===(s=null===(n=this._currentHoverOptions)||void 0===n?void 0:n.persistence)||void 0===s?void 0:s.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const d=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),h=(0,oe.vY)();i||(this._lastFocusedElementBeforeOpen=d&&h?h:void 0);const c=new l.SL,u=this._instantiationService.createInstance(_t,e);if((null===(o=e.persistence)||void 0===o?void 0:o.sticky)&&(u.isLocked=!0),u.onDispose((()=>{var t,i;(null===(t=this._currentHover)||void 0===t?void 0:t.domNode)&&(0,oe.b5)(this._currentHover.domNode)&&(null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),c.dispose()})),!e.container){const t=e.target instanceof HTMLElement?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,oe.Jj)(t))}if(this._contextViewHandler.showContextView(new Ot(u,t),e.container),u.onRequestLayout((()=>this._contextViewHandler.layout())),null===(r=e.persistence)||void 0===r?void 0:r.sticky)c.add((0,oe.nm)((0,oe.Jj)(e.container).document,oe.tw.MOUSE_DOWN,(e=>{(0,oe.jg)(e.target,u.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)c.add((0,oe.nm)(i,oe.tw.CLICK,(()=>this.hideHover())));else c.add((0,oe.nm)(e.target,oe.tw.CLICK,(()=>this.hideHover())));const t=(0,oe.vY)();if(t){const i=(0,oe.Jj)(t).document;c.add((0,oe.nm)(t,oe.tw.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add((0,oe.nm)(i,oe.tw.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add((0,oe.nm)(t,oe.tw.KEY_UP,(e=>this._keyUp(e,u)))),c.add((0,oe.nm)(i,oe.tw.KEY_UP,(e=>this._keyUp(e,u))))}}if("IntersectionObserver"in a.E){const t=new IntersectionObserver((e=>this._intersectionChange(e,u)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),c.add((0,l.OF)((()=>t.disconnect())))}return this._currentHover=u,u}hideHover(){var e;!(null===(e=this._currentHover)||void 0===e?void 0:e.isLocked)&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}_keyDown(e,t,i){var n,s;if("Alt"===e.key)return void(t.isLocked=!0);const o=new yt.y(e);this._keybindingService.resolveKeyboardEvent(o).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(o,o.target).kind||!i||(null===(n=this._currentHoverOptions)||void 0===n?void 0:n.trapFocus)&&"Tab"===e.key||(this.hideHover(),null===(s=this._lastFocusedElementBeforeOpen)||void 0===s||s.focus())}_keyUp(e,t){var i;"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()))}};function Rt(e){var t;if(void 0!==e)return null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:e}At=It([Mt(0,be.TG),Mt(1,ot.i),Mt(2,rt.d),Mt(3,Ce),Mt(4,gt.F)],At);class Ot{get anchorPosition(){return this._hover.anchor}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}(0,pe.z)(st.Bs,At,1),(0,de.Ic)(((e,t)=>{const i=e.getColor(nt.CNo);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var Pt=i(91811),Ft=i(80427),Bt=i(50142),Vt=i(56154),Wt=i(74633),Ht=i(28928),zt=i(43537),jt=i(19399),Ut=i(94943),Kt=i(38079),qt=i(47624),$t=i(49817),Gt=i(76322);function Yt(e){return Object.isFrozen(e)?e:p._A(e)}class Zt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0;this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof Zt)return e;const t=new Qt("");return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,z.Mt)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Yt(i.rawConfiguration.getValue(e))},get override(){return t?Yt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Yt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:n,identifiers:s,keys:o}of i.rawConfiguration.overrides){const i=new Zt(n,o).getValue(e);void 0!==i&&t.push({identifiers:s,value:i})}return t.length?Yt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,z.Mt)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(){var e,t;const i=p.I8(this.contents),n=p.I8(this.overrides),s=[...this.keys],o=(null===(e=this.raw)||void 0===e?void 0:e.length)?[...this.raw]:[this];for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];for(const d of a)if(o.push(...(null===(t=d.raw)||void 0===t?void 0:t.length)?d.raw:[d]),!d.isEmpty()){this.mergeContents(i,d.contents);for(const e of d.overrides){const[t]=n.filter((t=>ve.fS(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=ve.EB(t.keys)):n.push(p.I8(e))}for(const e of d.keys)-1===s.indexOf(e)&&s.push(e)}return new Zt(i,s,n,o.every((e=>e instanceof Zt))?void 0:o)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const n of ve.EB([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[n];const s=t[n];s&&("object"===typeof e&&"object"===typeof s?(e=p.I8(e),this.mergeContents(e,s)):e=s),i[n]=e}return new Zt(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&qt.Kn(e[i])&&qt.Kn(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.I8(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=p.I8(e))};for(const s of this.overrides)1===s.identifiers.length&&s.identifiers[0]===e?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,z.xL)(this.contents,e),$t.eU.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>ve.fS(t.identifiers,(0,$t.ny)(e)))),1))}updateValue(e,t,i){(0,z.KV)(this.contents,e,t,(e=>console.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),$t.eU.test(e)&&this.overrides.push({identifiers:(0,$t.ny)(e),keys:Object.keys(this.contents[e]),contents:(0,z.Od)(this.contents[e],(e=>console.error(e)))})}}class Qt{constructor(e){this._name=e,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||new Zt}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:s,restricted:o,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new Zt(i,n,s,r?[e]:void 0),this._restrictedConfigurations=o||[]}doParseRaw(e,t){const i=Gt.B.as($t.IP.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);e=n.raw;return{contents:(0,z.Od)(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var s,o,r;let a=!1;if(!(null===n||void 0===n?void 0:n.scopes)&&!(null===n||void 0===n?void 0:n.skipRestricted)&&!(null===(s=null===n||void 0===n?void 0:n.exclude)||void 0===s?void 0:s.length))return{raw:e,restricted:[],hasExcludedProperties:a};const l={},d=[];for(const h in e)if($t.eU.test(h)&&i){const i=this.filter(e[h],t,!1,n);l[h]=i.raw,a=a||i.hasExcludedProperties,d.push(...i.restricted)}else{const i=t[h],s=i?"undefined"!==typeof i.scope?i.scope:3:void 0;(null===i||void 0===i?void 0:i.restricted)&&d.push(h),(null===(o=n.exclude)||void 0===o?void 0:o.includes(h))||!(null===(r=n.include)||void 0===r?void 0:r.includes(h))&&(void 0!==s&&void 0!==n.scopes&&!n.scopes.includes(s)||n.skipRestricted&&(null===i||void 0===i?void 0:i.restricted))?a=!0:l[h]=e[h]}return{raw:l,restricted:d,hasExcludedProperties:a}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if($t.eU.test(n)){const s={};for(const t in e[n])s[t]=e[n][t];i.push({identifiers:(0,$t.ny)(n),keys:Object.keys(s),contents:(0,z.Od)(s,t)})}return i}}class Xt{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=s,this.policyConfiguration=o,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=d,this.workspaceConfiguration=h,this.folderConfigurationModel=c,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==(null===e||void 0===e?void 0:e.value)||void 0!==(null===e||void 0===e?void 0:e.override)||void 0!==(null===e||void 0===e?void 0:e.overrides)?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class Jt{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Zt,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Zt,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Kt.Y9,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:new Zt,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new Kt.Y9;this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=s,this._workspaceConfiguration=o,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Kt.Y9,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new Zt,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),s=this.getFolderConfigurationModelForResource(t.resource,i),o=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const a of n.overrides)for(const t of a.identifiers)void 0!==n.getOverrideValue(e,t)&&r.add(t);return new Xt(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,s||void 0,o)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource(e,t){let{resource:i}=e,n=this.getWorkspaceConsolidatedConfiguration();if(t&&i){const e=t.getFolder(i);e&&(n=this.getFolderConsolidatedConfiguration(e.uri)||n);const s=this._memoryConfigurationByResource.get(i);s&&(n=n.merge(s))}return n}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e}),[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),o=this.parseConfigurationModel(e.workspace),r=e.folders.reduce(((e,t)=>(e.set(h.o.revive(t[0]),this.parseConfigurationModel(t[1])),e)),new Kt.Y9);return new Jt(t,i,n,s,new Zt,o,r,new Zt,new Kt.Y9)}static parseConfigurationModel(e){return new Zt(e.contents,e.keys,e.overrides)}}class ei{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const s of e.keys)this.affectedKeys.add(s);for(const[,s]of e.overrides)for(const e of s)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const s of this.affectedKeys)this._affectsConfigStr+=s+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Jt.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,s=this._affectsConfigStr.indexOf(n);if(s<0)return!1;const o=s+n.length;if(o>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(o);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.fS(n,s)}return!0}}var ti=i(53372),ii=i(11052);const ni={kind:0},si={kind:1};class oi{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=oi.handleRemovals([].concat(e).concat(t));for(let s=0,o=this._keybindings.length;s<o;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=null===(n=e.when)||void 0===n?void 0:n.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let n=0;n<t.length;n++)if(t[n]!==e.chords[n])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ge.Fb)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let n=0,s=e.length;n<s;n++){const i=e[n];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];if(!s.command||0===s.command.length){i.push(s);continue}if("-"===s.command.charAt(0))continue;const o=t.get(s.command);if(!o||!s.isDefault){i.push(s);continue}let r=!1;for(const e of o){const t=e.when;if(this._isTargetedForRemoval(s,e.chords,t)){r=!0;break}}r||i.push(s)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let n=i.length-1;n>=0;n--){const e=i[n];if(e.command===t.command)continue;let s=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){s=!1;break}s&&(oi.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,n=t.length;i<n;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ge.K8)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let n=i.length-1;n>=0;n--){const e=i[n];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const s=this._map.get(n[0]);if(void 0===s)return this._log("\\ No keybinding entries."),ni;let o=null;if(n.length<2)o=s;else{o=[];for(let e=0,t=s.length;e<t;e++){const t=s[e];if(n.length>t.chords.length)continue;let i=!0;for(let e=1;e<n.length;e++)if(t.chords[e]!==n[e]){i=!1;break}i&&o.push(t)}}const r=this._findCommand(e,o);return r?n.length<r.chords.length?(this._log(`\\ From ${o.length} keybinding entries, awaiting ${r.chords.length-n.length} more chord(s), when: ${ri(r.when)}, source: ${ai(r)}.`),si):(this._log(`\\ From ${o.length} keybinding entries, matched ${r.command}, when: ${ri(r.when)}, source: ${ai(r)}.`),a=r.command,l=r.commandArgs,d=r.bubble,{kind:2,commandId:a,commandArgs:l,isBubble:d}):(this._log(`\\ From ${o.length} keybinding entries, no when clauses matched the context.`),ni);var a,l,d}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(oi._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function ri(e){return e?`${e.serialize()}`:"no when condition"}function ai(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const li=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class di extends l.JT{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ae.ju.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new ae.Q5),this._currentChords=[],this._currentChordChecker=new ti.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new ti._F,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),ni;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),ni;const s=this._contextKeyService.getContext(t),o=this._currentChords.map((e=>{let{keypress:t}=e;return t}));return this._getResolver().resolve(s,o,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,Le.L6)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(De.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((e=>{let{label:t}=e;return t})).join(", ");this._currentChordStatusMessage=this._notificationService.status(De.NC("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),ii.F.enabled&&ii.F.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],ii.F.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=hi.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getChords();return this._ignoreSingleModifiers=new hi(s),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n;let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let o=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();o=t,r=t?[t]:[]}else[o]=e.getDispatchChords(),r=this._currentChords.map((e=>{let{keypress:t}=e;return t}));if(null===o)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const a=this._contextKeyService.getContext(t),l=e.getLabel(),d=this._getResolver().resolve(a,r,o);switch(d.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((e=>{let{label:t}=e;return t})).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(De.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(o,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${d.commandId} ]`),null===d.commandId||""===d.commandId){if(this.inChordMode){const e=this._currentChords.map((e=>{let{label:t}=e;return t})).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(De.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),d.isBubble||(s=!0),this._log(`+ Invoking command ${d.commandId}.`),this._currentlyDispatchingCommandId=d.commandId;try{"undefined"===typeof d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}li.test(d.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class hi{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}hi.EMPTY=new hi(null);var ci=i(85412);class ui{constructor(e,t,i,n,s,o,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?gi(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=gi(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=o,this.isBuiltinExtension=r}}function gi(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n)return[];t.push(n)}return t}var pi=i(17344),mi=i(47202);class fi extends Pt.f1{constructor(e,t){if(super(),0===t.length)throw(0,Le.b1)("chords");this._os=e,this._chords=t}getLabel(){return mi.xo.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return mi.X4.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:mi.jC.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return mi.r6.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new Pt.aZ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class _i extends fi{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return pi.kL.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":pi.kL.toString(e.keyCode)}_getElectronAccelerator(e){return pi.kL.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=pi.kL.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return _i.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=pi.kL.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=pi.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Pt.$M)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Pt.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=gi(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new _i(i,t)]:[]}}var vi=i(60297),bi=i(97757),Ci=i(57823),yi=i(99818),wi=i(23523),Si=i(30506),xi=i(72514),Li=i(27351),ki=i(90255),Di=i(96682);let Ni=[],Ei=[],Ti=[];function Ii(e){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,Li.Qc)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Di.KR.sep)>=0}}(e,t);Ni.push(n),n.userConfigured?Ti.push(n):Ei.push(n);i&&!n.userConfigured&&Ni.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function Mi(e,t){return function(e,t){let i;if(e)switch(e.scheme){case re.lg.file:i=e.fsPath;break;case re.lg.data:i=Si.Vb.parseMetaData(e).get(Si.Vb.META_DATA_LABEL);break;case re.lg.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:ki.v.unknown}];i=i.toLowerCase();const n=(0,Di.EZ)(i),s=Ai(i,n,Ti);if(s)return[s,{id:S.bd,mime:ki.v.text}];const o=Ai(i,n,Ei);if(o)return[o,{id:S.bd,mime:ki.v.text}];if(t){const e=function(e){(0,d.uS)(e)&&(e=e.substr(1));if(e.length>0)for(let t=Ni.length-1;t>=0;t--){const i=Ni[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}return}(t);if(e)return[e,{id:S.bd,mime:ki.v.text}]}return[{id:"unknown",mime:ki.v.unknown}]}(e,t).map((e=>e.id))}function Ai(e,t,i){var n;let s,o,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){s=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return s||(o||(r||void 0))}const Ri=Object.prototype.hasOwnProperty,Oi="vs.editor.nullLanguage";class Pi{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Oi,0),this._register(S.bd,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||Oi}}class Fi extends l.JT{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this._onDidChange=this._register(new ae.Q5),this.onDidChange=this._onDidChange.event,Fi.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Pi,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(S.dQ.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){Fi.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Ni=Ni.filter((e=>e.userConfigured)),Ei=[];const e=[].concat(S.dQ.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),Gt.B.as($t.IP.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ri.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)Ii({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Ii({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Ii({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,d.IO)(t)||Ii({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(r){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,r)}}e.aliases.push(i);let s=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(const a of s)a&&0!==a.length&&e.aliases.push(a);const o=null!==s&&s.length>0;if(o&&null===s[0]);else{const t=(o?s[0]:null)||i;!o&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&Ri.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ri.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ri.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?Mi(e,t):[]}}Fi.instanceCount=0;class Bi extends l.JT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];super(),this._onDidRequestBasicLanguageFeatures=this._register(new ae.Q5),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new ae.Q5),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new ae.Q5({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,Bi.instanceCount++,this._registry=this._register(new Fi(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){Bi.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,ve.Xh)(i,null)}createById(e){return new Vi(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new Vi(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=S.bd),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),C.RW.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}Bi.instanceCount=0;class Vi{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new ae.Q5({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}var Wi=i(51828),Hi=i(51887),zi=i(6178),ji=i(65179),Ui=i(27748),Ki=i(68068),qi=i(7144),$i=i(26031),Gi=i(24622),Yi=i(61542),Zi=i(87487),Qi=i(73045),Xi=i(77048);const Ji=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,en=/(&)?(&)([^\s&])/g;var tn,nn;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(tn||(tn={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(nn||(nn={}));class sn extends qi.o{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),super(s,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...ut.dz||ut.IJ?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=s,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(Ki.o.addTarget(s)),this._register((0,oe.nm)(s,oe.tw.KEY_DOWN,(e=>{new yt.y(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,oe.nm)(s,oe.tw.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){oe.zB.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof rn&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),ut.IJ&&this._register((0,oe.nm)(s,oe.tw.KEY_DOWN,(e=>{const t=new yt.y(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),oe.zB.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),oe.zB.stop(e,!0))}))),this._register((0,oe.nm)(this.domNode,oe.tw.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,oe.jg)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,oe.nm)(this.actionsList,oe.tw.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,oe.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(Ki.o.addTarget(this.actionsList)),this._register((0,oe.nm)(this.actionsList,Ki.t.Tap,(e=>{let t=e.initialTarget;if(t&&(0,oe.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Gi.s$(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this.styleScrollElement(r,n),this._register((0,oe.nm)(s,Ki.t.Change,(e=>{oe.zB.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,oe.nm)(r,oe.tw.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,oe.Jj)(e);s.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,n)=>{var s;if(null===(s=i.submenuIds)||void 0===s?void 0:s.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof Wi.Z0){if(n===t.length-1||0===n)return!1;if(t[n-1]instanceof Wi.Z0)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof an))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,oe.OO)(e)?this.styleSheet=(0,oe.dS)(e):(sn.globalStyleSheet||(sn.globalStyleSheet=(0,oe.dS)()),this.styleSheet=sn.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${ln(Yi.l.menuSelection)}\n${ln(Yi.l.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderHoverBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderActiveBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,oe.OO)(e))}styleScrollElement(e,t){var i,n;const s=null!==(i=t.foregroundColor)&&void 0!==i?i:"",o=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius="5px",e.style.color=s,e.style.backgroundColor=o,e.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof Wi.Z0)return new an(t.context,e,{icon:!0},this.menuStyles);if(e instanceof Wi.wY){const n=new rn(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const n=t.getKeyBinding(e);if(n){const e=n.getLabel();e&&(i.keybinding=e)}}const n=new on(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}}}class on extends $i.YH{constructor(e,t,i,n){if(i.isMenu=!0,super(t,t,i),this.menuStyle=n,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=Ji.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new ti.pY((()=>{this.element&&(this._register((0,oe.nm)(this.element,oe.tw.MOUSE_UP,(e=>{if(oe.zB.stop(e,!0),Ui.vU){if(new ji.n((0,oe.Jj)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,oe.nm)(this.element,oe.tw.CONTEXT_MENU,(e=>{oe.zB.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,oe.R3)(this.element,(0,oe.$)("a.action-menu-item")),this._action.id===Wi.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,oe.R3)(this.item,(0,oe.$)("span.menu-item-check"+Qi.k.asCSSSelector(Yi.l.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,oe.R3)(this.item,(0,oe.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,oe.R3)(this.item,(0,oe.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,oe.PO)(this.label);let t=(0,Xi.x$)(this.action.label);if(t){const i=function(e){const t=Ji,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=Ji.exec(t);if(n){t=d.YU(t),en.lastIndex=0;let i=en.exec(t);for(;i&&i[1];)i=en.exec(t);const s=e=>e.replace(/&&/g,"&");i?this.label.append(d.j3(s(t.substr(0,i.index))," "),(0,oe.$)("u",{"aria-hidden":"true"},i[3]),d.oL(s(t.substr(i.index+i[0].length))," ")):this.label.innerText=s(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!==t&&void 0!==t?t:"",this.item.style.backgroundColor=null!==i&&void 0!==i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=null!==t&&void 0!==t?t:"")}}class rn extends on{constructor(e,t,i,n,s){super(e,e,n,s),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new l.SL),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:{horizontal:tn.Right,vertical:nn.Below},this.showScheduler=new ti.pY((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new ti.pY((()=>{this.element&&!(0,oe.jg)((0,oe.vY)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,oe.R3)(this.item,(0,oe.$)("span.submenu-indicator"+Qi.k.asCSSSelector(Yi.l.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,oe.nm)(this.element,oe.tw.KEY_UP,(e=>{const t=new yt.y(e);(t.equals(17)||t.equals(3))&&(oe.zB.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,oe.nm)(this.element,oe.tw.KEY_DOWN,(e=>{const t=new yt.y(e);(0,oe.vY)()===this.item&&(t.equals(17)||t.equals(3))&&oe.zB.stop(e,!0)}))),this._register((0,oe.nm)(this.element,oe.tw.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,oe.nm)(this.element,oe.tw.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,oe.nm)(this.element,oe.tw.FOCUS_OUT,(e=>{this.element&&!(0,oe.jg)((0,oe.vY)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){oe.zB.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(t){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=xt(e.width,t.width,{position:n.horizontal===tn.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(s.left=i.left+10),i.top+=10,i.height=0),s.top=xt(e.height,t.height,{position:0,offset:i.top,size:0}),s.top+t.height===i.top&&s.top+i.height+t.height<=e.height&&(s.top+=i.height),s}createSubmenu(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,oe.R3)(this.element,(0,oe.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,oe.Jj)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new sn(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new Wi.eZ],this.submenuOptions,this.menuStyle);const n=this.element.getBoundingClientRect(),s={top:n.top-i,left:n.left,height:n.height+2*i,width:n.width},o=this.submenuContainer.getBoundingClientRect(),r=(0,oe.Jj)(this.element),{top:a,left:l}=this.calculateSubmenuMenuLayout(new oe.Ro(r.innerWidth,r.innerHeight),oe.Ro.lift(o),s,this.expandDirection);this.submenuContainer.style.left=l-o.left+"px",this.submenuContainer.style.top=a-o.top+"px",this.submenuDisposables.add((0,oe.nm)(this.submenuContainer,oe.tw.KEY_UP,(e=>{new yt.y(e).equals(15)&&(oe.zB.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,oe.nm)(this.submenuContainer,oe.tw.KEY_DOWN,(e=>{new yt.y(e).equals(15)&&oe.zB.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!==e&&void 0!==e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class an extends $i.gU{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function ln(e){const t=(0,Zi.u)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var dn=i(93617);class hn{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,oe.vY)();const n=e.domForShadowRoot instanceof HTMLElement?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var s;this.lastContainer=n;const o=e.getMenuClassName?e.getMenuClassName():"";o&&(n.className+=" "+o),this.options.blockMouse&&(this.block=n.appendChild((0,oe.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(s=this.blockDisposable)||void 0===s||s.dispose(),this.blockDisposable=(0,oe.nm)(this.block,oe.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new l.SL,a=e.actionRunner||new Wi.Wi;a.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),a.onDidRun(this.onDidActionRun,this,r),i=new sn(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},dn.ZR),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const d=(0,oe.Jj)(n);return r.add((0,oe.nm)(d,oe.tw.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,oe.nm)(d,oe.tw.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ji.n(d,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,l.F8)(r,i)},focus:()=>{null===i||void 0===i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,s;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&((0,oe.vY)()===this.lastContainer||(0,oe.jg)((0,oe.vY)(),this.lastContainer))&&(null===(s=this.focusToReturn)||void 0===s||s.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,Le.n2)(e.error)&&this.notificationService.error(e.error)}}var cn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},un=function(e,t){return function(i,n){t(i,n,e)}};let gn=class extends l.JT{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new hn(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,s,o){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=s,this.contextKeyService=o,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new ae.Q5),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new ae.Q5)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=pn.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}}),oe._q.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var pn;gn=cn([un(0,Ci.b),un(1,Ee.lT),un(2,ot.u),un(3,rt.d),un(4,zi.co),un(5,ge.i6)],gn),function(e){e.transform=function(e,t,i){if(!((n=e)&&n.menuId instanceof zi.eH))return e;var n;const{menuId:s,menuActionOptions:o,contextKeyService:r}=e;return{...e,getActions:()=>{const n=[];if(s){const e=t.createMenu(s,null!==r&&void 0!==r?r:i);(0,Hi.LJ)(e,o,n),e.dispose()}return e.getActions?Wi.Z0.join(e.getActions(),n):n}}}}(pn||(pn={}));var mn,fn=i(76946),_n=i(33080);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(mn||(mn={}));var vn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},bn=function(e,t){return function(i,n){t(i,n,e)}};let Cn=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,re.xn)(e,re.lg.command))return!1;if(!(null===t||void 0===t?void 0:t.allowCommands))return!0;if("string"===typeof e&&(e=h.o.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,_n.Qc)(decodeURIComponent(e.query))}catch(n){try{i=(0,_n.Qc)(e.query)}catch(s){}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Cn=vn([bn(0,Ut.H)],Cn);let yn=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.o.parse(e));const{selection:i,uri:n}=(0,dt.x)(e);return(e=n).scheme===re.lg.file&&(e=(0,Si.AH)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null===t||void 0===t?void 0:t.fromUserGesture)?mn.USER:mn.API,...null===t||void 0===t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}};yn=vn([bn(0,g.$)],yn);let wn=class{constructor(e,t){this._openers=new le.S,this._validators=new le.S,this._resolvers=new le.S,this._resolvedUriTargets=new Kt.Y9((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new le.S,this._defaultExternalOpener={openExternal:async e=>((0,re.Gs)(e,re.lg.http,re.lg.https)?oe.V3(e):a.E.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!(null===t||void 0===t?void 0:t.openExternal)&&!(0,re.Gs)(e,re.lg.mailto,re.lg.http,re.lg.https,re.lg.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Cn(t)),this._openers.push(new yn(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;const n="string"===typeof e?h.o.parse(e):e,s=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const o of this._validators)if(!await o.shouldOpen(s,t))return!1;for(const o of this._openers){if(await o.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const n of this._resolvers)try{const i=await n.resolveExternalUri(e,t);if(i)return this._resolvedUriTargets.has(i.resolved)||this._resolvedUriTargets.set(i.resolved,e),i}catch(i){}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.o.parse(e):e;let n,s;try{n=(await this.resolveExternalUri(i,t)).resolved}catch(o){n=i}if(s="string"===typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null===t||void 0===t?void 0:t.allowContributedOpeners){const e="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(s,{sourceUri:i,preferredOpenerId:e},fn.T.None))return!0}}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},fn.T.None)}dispose(){this._validators.clear()}};wn=vn([bn(0,g.$),bn(1,Ut.H)],wn);var Sn=i(69115),xn=i(76390),Ln=i(12354),kn=i(35863),Dn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Nn=function(e,t){return function(i,n){t(i,n,e)}};let En=class extends l.JT{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new ae.Q5),this._markerDecorations=new Kt.Y9,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Tn(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==re.lg.inMemory&&e.uri.scheme!==re.lg.internal&&e.uri.scheme!==re.lg.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};En=Dn([Nn(0,k.q),Nn(1,xn.lT)],En);class Tn extends l.JT{constructor(e){super(),this.model=e,this._map=new Kt.YQ,this._register((0,l.OF)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,kn.q)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const n=i.map((e=>this._map.get(e))),s=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),o=this.model.deltaDecorations(n,s);for(const r of i)this._map.delete(r);for(let r=0;r<o.length;r++)this._map.set(t[r],o[r]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=Ht.e.lift(t);if(t.severity!==xn.ZL.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new Ht.e(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n<i.endColumn&&(i=new Ht.e(i.startLineNumber,n,i.endLineNumber,i.endColumn),t.startColumn=n)}return i}_createDecorationOption(e){let t,i,n,s,o;switch(e.severity){case xn.ZL.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case xn.ZL.Info:t="squiggly-info",i=(0,de.EN)(Ln.eS),n=10,o={color:(0,de.EN)(nt.Gvr),position:1};break;case xn.ZL.Warning:t="squiggly-warning",i=(0,de.EN)(Ln.Re),n=20,o={color:(0,de.EN)(nt.Ivo),position:1};break;case xn.ZL.Error:default:t="squiggly-error",i=(0,de.EN)(Ln.lK),n=30,o={color:(0,de.EN)(nt.Gj_),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(s="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(s="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:L.sh.Right},minimap:o,zIndex:n,inlineClassName:s}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}var In,Mn=i(79316),An=i(13277),Rn=i(47998),On=i(95075),Pn=i(81158),Fn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Bn=function(e,t){return function(i,n){t(i,n,e)}};function Vn(e){return e.toString()}class Wn{constructor(e,t,i){this.model=e,this._modelEventListeners=new l.SL,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const Hn=ut.IJ||ut.dz?1:2;class zn{constructor(e,t,i,n,s,o,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=o,this.versionId=r,this.alternativeVersionId=a}}let jn=In=class extends l.JT{constructor(e,t,i,n,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=s,this._onModelAdded=this._register(new ae.Q5),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new ae.Q5),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new ae.Q5),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=Rn.D.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let o=Rn.D.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=Hn;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=Rn.D.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let d=Rn.D.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=Rn.D.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=Rn.D.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:s,insertSpaces:o,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===ut.OS||2===ut.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let s=this._modelCreationOptionsByLanguageAndResource[n+t];if(!s){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);s=In._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=s}return s}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,s=i.length;n<s;n++){const s=i[n],o=this._models[s],r=o.model.getLanguageId(),a=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:r,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:r,resource:a}))continue;const l=t[r+a],d=this.getCreationOptions(r,a,o.model.isForSimpleWidget);In._setModelOptionsForModel(o.model,d,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,p.fS)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(Vn(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(Vn(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(Vn(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),o=new An.yO(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(Vn(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),s=!!n.canComputeSHA1(o)&&n.computeSHA1(o)===e.sha1;if(s||e.sharesUndoRedoStack){for(const e of t.past)(0,Pn.e9)(e)&&e.matchesResource(i)&&e.setModel(o);for(const e of t.future)(0,Pn.e9)(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Pn.e9)(e)&&e.matchesResource(i))),s&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=Vn(o.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new Wn(o,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i){let n,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n=t?this._createModelData(e,t,i,s):this._createModelData(e,S.bd,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push(this._models[n].model)}return e}getModel(e){const t=Vn(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===re.lg.file||e.scheme===re.lg.vscodeRemote||e.scheme===re.lg.vscodeUserData||e.scheme===re.lg.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=Vn(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let s=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,Pn.e9)(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,Pn.e9)(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const r=In.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(s)if(n||!(o>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,Pn.e9)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new zn(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);In._setModelOptionsForModel(e,o,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new Un}};jn.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,jn=In=Fn([Bn(0,z.Ui),Bn(1,jt.y),Bn(2,Te.tJ),Bn(3,y.O),Bn(4,w.c_)],jn);class Un{canComputeSHA1(e){return e.getValueLength()<=Un.MAX_MODEL_SIZE}computeSHA1(e){const t=new On.yP,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}}Un.MAX_MODEL_SIZE=10485760;var Kn=i(99009),qn=i(2033),$n=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Gn=function(e,t){return function(i,n){t(i,n,e)}};let Yn=class extends l.JT{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Gt.B.as(Kn.IP.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n,s,o;const[r,a]=this.getOrInstantiateProvider(e),d=this.visibleQuickAccess,h=null===d||void 0===d?void 0:d.descriptor;if(d&&a&&h===a)return e===a.prefix||(null===i||void 0===i?void 0:i.preserveValue)||(d.picker.value=e),void this.adjustValueSelection(d.picker,a,i);if(a&&!(null===i||void 0===i?void 0:i.preserveValue)){let t;if(d&&h&&h!==a){const e=d.value.substr(h.prefix.length);e&&(t=`${a.prefix}${e}`)}if(!t){const e=null===r||void 0===r?void 0:r.defaultFilterValue;e===Kn.Ry.LAST?t=this.lastAcceptedPickerValues.get(a):"string"===typeof e&&(t=`${a.prefix}${e}`)}"string"===typeof t&&(e=t)}const c=null===(n=null===d||void 0===d?void 0:d.picker)||void 0===n?void 0:n.valueSelection,u=null===(s=null===d||void 0===d?void 0:d.picker)||void 0===s?void 0:s.value,g=new l.SL,p=g.add(this.quickInputService.createQuickPick());let m;p.value=e,this.adjustValueSelection(p,a,i),p.placeholder=null===a||void 0===a?void 0:a.placeholder,p.quickNavigate=null===i||void 0===i?void 0:i.quickNavigateConfiguration,p.hideInput=!!p.quickNavigate&&!d,("number"===typeof(null===i||void 0===i?void 0:i.itemActivation)||(null===i||void 0===i?void 0:i.quickNavigateConfiguration))&&(p.itemActivation=null!==(o=null===i||void 0===i?void 0:i.itemActivation)&&void 0!==o?o:qn.jG.SECOND),p.contextKey=null===a||void 0===a?void 0:a.contextKey,p.filterValue=e=>e.substring(a?a.prefix.length:0),t&&(m=new ti.CR,g.add(ae.ju.once(p.onWillAccept)((e=>{e.veto(),p.hide()})))),g.add(this.registerPickerListeners(p,r,a,e,null===i||void 0===i?void 0:i.providerOptions));const f=g.add(new fn.A);return r&&g.add(r.provide(p,f.token,null===i||void 0===i?void 0:i.providerOptions)),ae.ju.once(p.onDidHide)((()=>{0===p.selectedItems.length&&f.cancel(),g.dispose(),null===m||void 0===m||m.complete(p.selectedItems.slice(0))})),p.show(),c&&u===e&&(p.valueSelection=c),t?null===m||void 0===m?void 0:m.p:void 0}adjustValueSelection(e,t,i){var n;let s;s=(null===i||void 0===i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n,s){const o=new l.SL,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add((0,l.OF)((()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),o.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:s}):r.value=e}))),i&&o.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};Yn=$n([Gn(0,qn.eJ),Gn(1,be.TG)],Yn);var Zn=i(81502),Qn=i(24199),Xn=i(27691),Jn=i(30441),es=i(21150),ts=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class is{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}ts([es.H],is.prototype,"toString",null);const ns=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ss={},os=new Jn.R("quick-input-button-icon-");function rs(e,t,i){let n=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ss[i]?t=ss[i]:(t=os.nextId(),oe.fk(`.${t}, .hc-light .${t}`,`background-image: ${oe.wY(e.light||e.dark)}`),oe.fk(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${oe.wY(e.dark)}`),ss[i]=t),t}(e.iconPath);return e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:i}}function as(e,t,i){oe.mc(t);const n=function(e){const t=[];let i,n=0;for(;i=ns.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,s,o,,r]=i;r?t.push({label:s,href:o,title:r}):t.push({label:s,href:o}),n=i.index+i[0].length}return n<e.length&&t.push(e.substring(n)),new is(t)}(e);let s=0;for(const o of n.nodes)if("string"===typeof o)t.append(...(0,Xn.T)(o));else{let e=o.title;!e&&o.href.startsWith("command:")?e=(0,De.NC)("executeCommand","Click to execute command '{0}'",o.href.substring("command:".length)):e||(e=o.href);const n=oe.$("a",{href:o.href,title:e,tabIndex:s++},o.label);n.style.textDecoration="underline";const r=e=>{oe.cl(e)&&oe.zB.stop(e,!0),i.callback(o.href)},a=i.disposables.add(new Qn.Y(n,oe.tw.CLICK)).event,l=i.disposables.add(new Qn.Y(n,oe.tw.KEY_DOWN)).event,d=ae.ju.chain(l,(e=>e.filter((e=>{const t=new yt.y(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(Ki.o.addTarget(n));const h=i.disposables.add(new Qn.Y(n,Ki.t.Tap)).event;ae.ju.any(a,h,d)(r,null,i.disposables),t.appendChild(n)}}var ls=i(35412),ds=i(83172),hs=i(23014),cs=i(25112),us=i(20447);const gs=new us.o((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new us.o((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new us.o((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function ps(e,t,i){const n=e.toLowerCase(),s=t.toLowerCase(),o=function(e,t,i){const n=e.toLowerCase(),s=t.toLowerCase(),o=n.startsWith(i),r=s.startsWith(i);if(o!==r)return o?-1:1;if(o&&r){if(n.length<s.length)return-1;if(n.length>s.length)return 1}return 0}(e,t,i);if(o)return o;const r=n.endsWith(i);if(r!==s.endsWith(i))return r?-1:1;const a=function(e,t){const i=e||"",n=t||"",s=gs.value.collator.compare(i,n);return gs.value.collatorIsNumeric&&0===s&&i!==n?i<n?-1:1:s}(n,s);return 0!==a?a:n.localeCompare(s)}var ms,fs=i(47213),_s=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},vs=function(e,t){return function(i,n){t(i,n,e)}};const bs=oe.$;var Cs,ys;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(Cs||(Cs={}));class ws{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new us.o((()=>{var e;const t=null!==(e=i.label)&&void 0!==e?e:"",n=(0,Xi.Ho)(t).text.trim(),s=i.ariaLabel||[t,this.saneDescription,this.saneDetail].map((e=>(0,Xi.JL)(e))).filter((e=>!!e)).join(", ");return{saneLabel:t,saneSortLabel:n,saneAriaLabel:s}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class Ss extends ws{constructor(e,t,i,n,s,o){var r,a,l;super(e,t,s),this.fireButtonTriggered=i,this._onChecked=n,this.item=s,this._separator=o,this._checked=!1,this.onChecked=t?ae.ju.map(ae.ju.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):ae.ju.None,this._saneDetail=s.detail,this._labelHighlights=null===(r=s.highlights)||void 0===r?void 0:r.label,this._descriptionHighlights=null===(a=s.highlights)||void 0===a?void 0:a.description,this._detailHighlights=null===(l=s.highlights)||void 0===l?void 0:l.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(ys||(ys={}));class xs extends ws{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=ys.NONE}}class Ls{getHeight(e){return e instanceof xs?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof Ss?Ns.ID:Es.ID}}class ks{getWidgetAriaLabel(){return(0,De.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof Ss)return{value:e.checked,onDidChange:e.onChecked}}}class Ds{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new l.SL,t.toDisposeTemplate=new l.SL,t.entry=oe.R3(e,bs(".quick-input-list-entry"));const i=oe.R3(t.entry,bs("label.quick-input-list-label"));t.toDisposeTemplate.add(oe.mu(i,oe.tw.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=oe.R3(i,bs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const n=oe.R3(i,bs(".quick-input-list-rows")),s=oe.R3(n,bs(".quick-input-list-row")),o=oe.R3(n,bs(".quick-input-list-row"));t.label=new ds.g(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=oe.Ce(t.label.element,bs(".quick-input-list-icon"));const r=oe.R3(s,bs(".quick-input-list-entry-keybinding"));t.keybinding=new hs.e(r,ut.OS),t.toDisposeTemplate.add(t.keybinding);const a=oe.R3(o,bs(".quick-input-list-label-meta"));return t.detail=new ds.g(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=oe.R3(t.entry,bs(".quick-input-list-separator")),t.actionBar=new qi.o(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Ns=ms=class extends Ds{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return ms.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(oe.mu(t.checkbox,oe.tw.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){var n,s,o;const r=e.element;i.element=r,r.element=null!==(n=i.entry)&&void 0!==n?n:void 0;const a=r.item;i.checkbox.checked=r.checked,i.toDisposeElement.add(r.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=r.checkboxDisabled;const{labelHighlights:l,descriptionHighlights:d,detailHighlights:c}=r;if(a.iconPath){const e=(0,cs._T)(this.themeService.getColorTheme().type)?a.iconPath.dark:null!==(s=a.iconPath.light)&&void 0!==s?s:a.iconPath.dark,t=h.o.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=oe.wY(t)}else i.icon.style.backgroundImage="",i.icon.className=a.iconClass?`quick-input-list-icon ${a.iconClass}`:"";let u;!r.saneTooltip&&r.saneDescription&&(u={markdown:{value:r.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDescription});const g={matches:l||[],descriptionTitle:u,descriptionMatches:d||[],labelEscapeNewLines:!0};if(g.extraClasses=a.iconClasses,g.italic=a.italic,g.strikethrough=a.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(r.saneLabel,r.saneDescription,g),i.keybinding.set(a.keybinding),r.saneDetail){let e;r.saneTooltip||(e={markdown:{value:r.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(r.saneDetail,void 0,{matches:c,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";(null===(o=r.separator)||void 0===o?void 0:o.label)?(i.separator.textContent=r.separator.label,i.separator.style.display="",this.addItemWithSeparator(r)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!r.separator);const p=a.buttons;p&&p.length?(i.actionBar.push(p.map(((e,t)=>rs(e,`id-${t}`,(()=>r.fireButtonTriggered({button:e,item:r.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Ns.ID="quickpickitem",Ns=ms=_s([vs(1,de.XE)],Ns);class Es extends Ds{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return Es.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;const s=e.element;i.element=s,s.element=null!==(n=i.entry)&&void 0!==n?n:void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const o=s.separator,{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=s;let d;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(d={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const h={matches:r||[],descriptionTitle:d,descriptionMatches:a||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,h),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const c=o.buttons;c&&c.length?(i.actionBar.push(c.map(((e,t)=>rs(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||null===(n=e.element.element)||void 0===n||n.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}Es.ID="quickpickseparator";let Ts=class extends l.JT{constructor(e,t,i,n,s){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this._onKeyDown=new ae.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new ae.Q5,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new ae.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new ae.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new ae.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new ae.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new ae.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new ae.Q5,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onTriggerEmptySelectionOrFocus=new ae.Q5,this._elementChecked=new ae.Q5,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new l.SL),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._container=oe.R3(this.parent,bs(".quick-input-list")),this._separatorRenderer=new Es(t),this._itemRenderer=s.createInstance(Ns,t),this._tree=this._register(s.createInstance(ls.PF,"QuickInput",this._container,new Ls,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new ks,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:fs.E4.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,identityProvider:{getId:e=>{var t,i,n,s,o,r,a,l;return null!==(l=null!==(r=null!==(s=null!==(i=null===(t=e.item)||void 0===t?void 0:t.id)&&void 0!==i?i:null===(n=e.item)||void 0===n?void 0:n.label)&&void 0!==s?s:null===(o=e.separator)||void 0===o?void 0:o.id)&&void 0!==r?r:null===(a=e.separator)||void 0===a?void 0:a.label)&&void 0!==l?l:""}},alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return ae.ju.map(ae.ju.any(this._tree.onDidChangeFocus,this._onTriggerEmptySelectionOrFocus.event),(e=>e.elements.filter((e=>e instanceof Ss)).map((e=>e.item))))}get onDidChangeSelection(){return ae.ju.map(ae.ju.any(this._tree.onDidChangeSelection,this._onTriggerEmptySelectionOrFocus.event),(e=>({items:e.elements.filter((e=>e instanceof Ss)).map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=null!==e&&void 0!==e?e:""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new yt.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(ut.dz?e.metaKey:e.ctrlKey)&&this._tree.setFocus(this._itemElements);break;case 16:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case 18:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}}this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(oe.nm(this._container,oe.tw.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(oe.nm(this._container,oe.tw.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnElementChecked(){this._register(this._elementChecked.event((e=>this._fireCheckedEvents())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new ti.rH(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{var i;if(t.browserEvent.target instanceof HTMLAnchorElement)e.cancel();else if(t.browserEvent.relatedTarget instanceof HTMLAnchorElement||!oe.jg(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element))try{await e.trigger((async()=>{t.element instanceof Ss&&this.showHover(t.element)}))}catch(t){if(!(0,Le.n2)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{var i;oe.jg(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&ys.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=ys.ACTIVE_ITEM:i.focusInsideSeparator&=~ys.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&ys.MOUSE_HOVER)||(i.focusInsideSeparator|=ys.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&ys.MOUSE_HOVER)&&(i.focusInsideSeparator&=~ys.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof Ss));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof xs&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter((e=>e.checked)).length}getVisibleCount(){return this._itemElements.filter((e=>!e.hidden)).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){this._elementDisposable.clear(),this._inputElements=e;const t=this.parent.classList.contains("show-checkboxes");let i;this._itemElements=new Array,this._elementTree=e.reduce(((n,s,o)=>{let r;if("separator"===s.type){if(!s.buttons)return n;i=new xs(o,(e=>this.fireSeparatorButtonTriggered(e)),s),r=i}else{const a=o>0?e[o-1]:void 0;let l;a&&"separator"===a.type&&!a.buttons&&(i=void 0,l=a);const d=new Ss(o,t,(e=>this.fireButtonTriggered(e)),this._elementChecked,s,l);if(this._itemElements.push(d),i)return i.children.push(d),n;r=d}return n.push(r),n}),new Array);const n=new Array;let s=0;for(const o of this._elementTree)o instanceof xs?(n.push({element:o,collapsible:!1,collapsed:!1,children:o.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}),s+=o.children.length+1):(n.push({element:o,collapsible:!1,collapsed:!1}),s++);this._tree.setChildren(null,n),this._onChangedVisibleCount.fire(s)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var t;if(this._itemElements.length)switch(e===Cs.Second&&this._itemElements.length<2&&(e=Cs.First),e){case Cs.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof Ss));break;case Cs.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case Cs.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case Cs.Next:this._tree.focusNext(void 0,!0,void 0,(e=>e.element instanceof Ss&&(this._tree.reveal(e.element),!0)));break;case Cs.Previous:this._tree.focusPrevious(void 0,!0,void 0,(e=>{if(!(e.element instanceof Ss))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Cs.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof Ss&&(this._tree.reveal(e.element),!0)));break;case Cs.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof Ss))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Cs.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof xs)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof Ss){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}));t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case Cs.PreviousSeparator:{let e,i=!!(null===(t=this._tree.getFocus()[0])||void 0===t?void 0:t.separator);this._tree.focusPrevious(void 0,!0,void 0,(t=>{if(t.element instanceof xs)i?e||(this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element.children[0]):i=!0;else if(t.element instanceof Ss&&!e)if(t.element.separator)this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._elementTree.forEach((n=>{var s,o,r,a;let l;l="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(s=(0,Xi.Gt)(e,(0,Xi.Ho)(n.saneLabel)))&&void 0!==s?s:void 0:this.matchOnLabel&&null!==(o=function(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return Is(e,i);const s=(0,d.j3)(i," "),o=i.length-s.length,r=Is(e,s);if(r)for(const a of r){const e=n[a.start+o]+o;a.start+=e,a.end+=e}return r}(t,(0,Xi.Ho)(n.saneLabel)))&&void 0!==o?o:void 0;const h=this.matchOnDescription&&null!==(r=(0,Xi.Gt)(e,(0,Xi.Ho)(n.saneDescription||"")))&&void 0!==r?r:void 0,c=this.matchOnDetail&&null!==(a=(0,Xi.Gt)(e,(0,Xi.Ho)(n.saneDetail||"")))&&void 0!==a?a:void 0;if(l||h||c?(n.labelHighlights=l,n.descriptionHighlights=h,n.detailHighlights=c,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){const e=n.index&&this._inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this._elementTree.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>function(e,t,i){const n=e.labelHighlights||[],s=t.labelHighlights||[];if(n.length&&!s.length)return-1;if(!n.length&&s.length)return 1;if(0===n.length&&0===s.length)return 0;return ps(e.saneSortLabel,t.saneSortLabel,i)}(e,i,t)))}let n;const s=i.reduce(((e,t,i)=>(t instanceof Ss?n?n.children.push(t):e.push(t):t instanceof xs&&(t.children=[],n=t,e.push(t)),e)),new Array),o=new Array;for(const a of s)a instanceof xs?o.push({element:a,collapsible:!1,collapsed:!1,children:a.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):o.push({element:a,collapsible:!1,collapsed:!1});const r=this._tree.getFocus().length;return this._tree.setChildren(null,o),r>0&&0===o.length&&this._onTriggerEmptySelectionOrFocus.fire({elements:[]}),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;const e=this._tree.getFocus().filter((e=>e instanceof Ss)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return"none"!==this._container.style.display}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!(null===e||void 0===e?void 0:e.saneTooltip)||!(e instanceof Ss))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new l.SL;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof Ss&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_allVisibleChecked(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}_fireCheckedEvents(){this._shouldFireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}fireSeparatorButtonTriggered(e){this._onSeparatorButtonTriggered.fire(e)}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function Is(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}_s([es.H],Ts.prototype,"onDidChangeFocus",null),_s([es.H],Ts.prototype,"onDidChangeSelection",null),Ts=_s([vs(4,be.TG)],Ts);var Ms=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},As=function(e,t){return function(i,n){t(i,n,e)}};const Rs={iconClass:Qi.k.asClassName(Yi.l.quickInputBack),tooltip:(0,De.NC)("quickInput.back","Back"),handle:-1};class Os extends l.JT{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=Os.noPromptMessage,this._severity=ke.Z.Ignore,this.onDidTriggerButtonEmitter=this._register(new ae.Q5),this.onDidHideEmitter=this._register(new ae.Q5),this.onWillHideEmitter=this._register(new ae.Q5),this.onDisposeEmitter=this._register(new ae.Q5),this.visibleDisposables=this._register(new l.SL),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!ut.gn;this._ignoreFocusOut=e&&!ut.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!==e&&void 0!==e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Jq.Other;this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Jq.Other;this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?oe.mc(this.ui.widget,this._widget):oe.mc(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new ti._F,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===Rs)).map(((e,t)=>rs(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==Rs)).map(((e,t)=>rs(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof Zn.Z)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const s=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==s&&(this._lastValidationMessage=s,oe.mc(this.ui.message),as(s,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,De.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ke.Z.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Os.noPromptMessage=(0,De.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Ps extends Os{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new ae.Q5),this.onWillAcceptEmitter=this._register(new ae.Q5),this.onDidAcceptEmitter=this._register(new ae.Q5),this.onDidCustomEmitter=this._register(new ae.Q5),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=qn.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new ae.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new ae.Q5),this.onDidTriggerItemButtonEmitter=this._register(new ae.Q5),this.onDidTriggerSeparatorButtonEmitter=this._register(new ae.Q5),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?qn.X5:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(Cs.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:(ut.dz?e.metaKey:e.altKey)?this.ui.list.focus(Cs.NextSeparator):this.ui.list.focus(Cs.Next),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 16:(ut.dz?e.metaKey:e.altKey)?this.ui.list.focus(Cs.PreviousSeparator):this.ui.list.focus(Cs.Previous),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 12:this.ui.list.focus(Cs.NextPage),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 11:this.ui.list.focus(Cs.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cs.First),oe.zB.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cs.Last),oe.zB.stop(e,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,ve.fS)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((e=>{let{items:t,event:i}=e;this.canSelectMany?t.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,ve.fS)(t,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=t,this.onDidChangeSelectionEmitter.fire(t),t.length&&this.handleAccept(oe.N5(i)&&1===i.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,ve.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return oe.nm(this.ui.container,oe.tw.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new yt.y(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const n=e.getChords();return!(n.length>1)&&(n[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!n[0].altKey||6!==i)||(!(!n[0].ctrlKey||5!==i)||!(!n[0].metaKey||57!==i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(!n&&i.inputBox&&(n=this.placeholder||Ps.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=null!==n&&void 0!==n?n:null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated){this.itemsUpdated=!1;const e=this._activeItems;switch(this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case qn.jG.NONE:e.length>0&&(this._activeItems=[],this.onDidChangeActiveEmitter.fire(this._activeItems)),this._itemActivation=qn.jG.FIRST;break;case qn.jG.SECOND:this.ui.list.focus(Cs.Second),this._itemActivation=qn.jG.FIRST;break;case qn.jG.LAST:this.ui.list.focus(Cs.Last),this._itemActivation=qn.jG.FIRST;break;default:this.trySelectFirst()}}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Cs.First)),this.keepScrollPosition&&(this.scrollTop=e)}}Ps.DEFAULT_ARIA_LABEL=(0,De.NC)("quickInputBox.ariaLabel","Type to narrow down results.");class Fs extends Os{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new ae.Q5),this.onDidAcceptEmitter=this._register(new ae.Q5),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Bs=class extends st.mQ{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){var t;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(e.content instanceof HTMLElement?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Bs=Ms([As(0,z.Ui),As(1,st.Bs)],Bs);var Vs=i(33013),Ws=i(45337);const Hs="done",zs="active",js="infinite",Us="infinite-long-running",Ks="discrete";class qs extends l.JT{constructor(e,t){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new ti.pY((()=>(0,oe.$Z)(this.element)),0)),this.longRunningScheduler=this._register(new ti.pY((()=>this.infiniteLongRunning()),qs.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null===t||void 0===t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(zs,js,Us,Ks),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Hs),this.element.classList.contains(js)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Ks,Hs,Us),this.element.classList.add(zs,js),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Us)}getContainer(){return this.element}}qs.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var $s=i(22406);const Gs=oe.$;class Ys extends l.JT{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>oe.mu(this.findInput.inputBox.inputElement,oe.tw.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=oe.R3(this.parent,Gs(".quick-input-box")),this.findInput=this._register(new $s.V(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ke.Z.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ke.Z.Info?1:e===ke.Z.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ke.Z.Info?1:e===ke.Z.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Zs,Qs=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Xs=function(e,t){return function(i,n){t(i,n,e)}};const Js=oe.$;let eo=Zs=class extends l.JT{get container(){return this._container}constructor(e,t,i){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.enabled=!0,this.onDidAcceptEmitter=this._register(new ae.Q5),this.onDidCustomEmitter=this._register(new ae.Q5),this.onDidTriggerButtonEmitter=this._register(new ae.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new ae.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new ae.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(ae.ju.runAndSubscribe(oe.Xo,(e=>{let{window:t,disposables:i}=e;return this.registerKeyModsListeners(t,i)}),{window:a.E,disposables:this._store})),this._register(oe.Jc((e=>{this.ui&&oe.Jj(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const n of[oe.tw.KEY_DOWN,oe.tw.KEY_UP,oe.tw.MOUSE_DOWN])t.add(oe.nm(e,n,i,!0))}getUI(e){if(this.ui)return e&&oe.Jj(this._container)!==oe.Jj(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=oe.R3(this._container,Js(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=oe.dS(t),n=oe.R3(t,Js(".quick-input-titlebar")),s=this._register(new qi.o(n,{hoverDelegate:this.options.hoverDelegate}));s.domNode.classList.add("quick-input-left-action-bar");const o=oe.R3(n,Js(".quick-input-title")),r=this._register(new qi.o(n,{hoverDelegate:this.options.hoverDelegate}));r.domNode.classList.add("quick-input-right-action-bar");const a=oe.R3(t,Js(".quick-input-header")),l=oe.R3(a,Js("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,De.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(oe.mu(l,oe.tw.CHANGE,(e=>{const t=l.checked;k.setAllVisibleChecked(t)}))),this._register(oe.nm(l,oe.tw.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const d=oe.R3(a,Js(".quick-input-description")),h=oe.R3(a,Js(".quick-input-and-message")),c=oe.R3(h,Js(".quick-input-filter")),u=this._register(new Ys(c,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=oe.R3(c,Js(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new Ws.Z(g,{countFormat:(0,De.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=oe.R3(c,Js(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new Ws.Z(m,{countFormat:(0,De.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=oe.R3(a,Js(".quick-input-action")),v=this._register(new Vs.z(_,this.styles.button));v.label=(0,De.NC)("ok","OK"),this._register(v.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=oe.R3(a,Js(".quick-input-action")),C=this._register(new Vs.z(b,{...this.styles.button,supportIcons:!0}));C.label=(0,De.NC)("custom","Custom"),this._register(C.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=oe.R3(h,Js(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new qs(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const S=oe.R3(t,Js(".quick-input-html-widget"));S.tabIndex=-1;const x=oe.R3(t,Js(".quick-input-description")),L=this.idPrefix+"list",k=this._register(this.instantiationService.createInstance(Ts,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,L));u.setAttribute("aria-controls",L),this._register(k.onDidChangeFocus((()=>{var e;u.setAttribute("aria-activedescendant",null!==(e=k.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(k.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(k.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(k.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(k.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof Ps&&this.controller.canSelectMany&&k.clearFocus())}),0)})));const D=oe.go(t);return this._register(D),this._register(oe.nm(t,oe.tw.FOCUS,(e=>{oe.jg(e.relatedTarget,t)||(this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0)}),!0)),this._register(D.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(qn.Jq.Blur),this.previousFocusElement=void 0}))),this._register(oe.nm(t,oe.tw.FOCUS,(e=>{u.setFocus()}))),this._register(oe.mu(t,oe.tw.KEY_DOWN,(e=>{if(!oe.jg(e.target,S))switch(e.keyCode){case 3:oe.zB.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:oe.zB.stop(e,!0),this.hide(qn.Jq.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(oe.jg(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(oe.zB.stop(e,!0),k.clearFocus()):!e.shiftKey&&oe.jg(e.target,n[n.length-1])&&(oe.zB.stop(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(oe.zB.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:s,titleBar:n,title:o,description1:x,description2:d,widget:S,rightActionBar:r,checkAll:l,inputContainer:h,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:_,ok:v,message:y,customButtonContainer:b,customButton:C,list:k,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,oe.R3(this._container,this.ui.container))}pick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn.T.None;return new Promise(((n,s)=>{let o=e=>{var i;o=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,r.keyMods),n(e)};if(i.isCancellationRequested)return void o(void 0);const r=this.createQuickPick();let a;const d=[r,r.onDidAccept((()=>{if(r.canSelectMany)o(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(o(e),r.hide())}})),r.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),r.onDidChangeSelection((e=>{if(!r.canSelectMany){const t=e[0];t&&(o(t),r.hide())}})),r.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice(),i=e.splice(t,1),n=r.activeItems.filter((e=>e!==i[0])),s=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=e,n&&(r.activeItems=n),r.keepScrollPosition=s}}}))),r.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),r.onDidChangeValue((e=>{!a||e||1===r.activeItems.length&&r.activeItems[0]===a||(r.activeItems=[a])})),i.onCancellationRequested((()=>{r.hide()})),r.onDidHide((()=>{(0,l.B9)(d),o(void 0)}))];r.title=t.title,r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.quickNavigate=t.quickNavigate,r.hideInput=!!t.hideInput,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then((e=>{let[t,i]=e;a=i,r.busy=!1,r.items=t,r.canSelectMany&&(r.selectedItems=t.filter((e=>"separator"!==e.type&&e.picked))),a&&(r.activeItems=[a])})),r.show(),Promise.resolve(e).then(void 0,(e=>{s(e),r.hide()}))}))}createQuickPick(){const e=this.getUI(!0);return new Ps(e)}createInputBox(){const e=this.getUI(!0);return new Fs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,null===i||void 0===i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",oe.mc(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ke.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oe.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();Rs.tooltip=n?(0,De.NC)("quickInput.backWithKeybinding","Back ({0})",n):(0,De.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;n.willHide(e);const s=null===(t=this.ui)||void 0===t?void 0:t.container,o=s&&!oe.b5(s);if(this.controller=null,this.onHideEmitter.fire(),s&&(s.style.display="none"),!o){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null===e||void 0===e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,Zs.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!==e&&void 0!==e?e:"",this.ui.container.style.backgroundColor=null!==t&&void 0!==t?t:"",this.ui.container.style.color=null!==i&&void 0!==i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.list.style(this.styles.list);const o=[];this.styles.pickerGroup.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&o.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(o.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&o.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&o.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&o.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&o.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&o.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),o.push("}"));const r=o.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}};eo.MAX_WIDTH=600,eo=Zs=Qs([Xs(1,Ce),Xs(2,be.TG)],eo);var to=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},io=function(e,t){return function(i,n){t(i,n,e)}};let no=class extends de.bB{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Yn))),this._quickAccess}constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=s,this._onShow=this._register(new ae.Q5),this._onHide=this._register(new ae.Q5),this.contexts=new Map}createController(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.layoutService,t=arguments.length>1?arguments[1]:void 0;const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(dt.v).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Bs))},n=this._register(this.instantiationService.createInstance(eo,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,oe.Jj)(e.activeContainer)===(0,oe.Jj)(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ge.uy(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null===t||void 0===t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn.T.None;return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,nt.n_1)(nt.zKr),quickInputForeground:(0,nt.n_1)(nt.tZ6),quickInputTitleBackground:(0,nt.n_1)(nt.loF),widgetBorder:(0,nt.n_1)(nt.A42),widgetShadow:(0,nt.n_1)(nt.rh)},inputBox:dn.Hc,toggle:dn.pl,countBadge:dn.ku,button:dn.wG,progressBar:dn.b5,keybindingLabel:dn.eO,list:(0,dn.TU)({listBackground:nt.zKr,listFocusBackground:nt.Vqd,listFocusForeground:nt.NPS,listInactiveFocusForeground:nt.NPS,listInactiveSelectionIconForeground:nt.cbQ,listInactiveFocusBackground:nt.Vqd,listFocusOutline:nt.xL1,listInactiveFocusOutline:nt.xL1}),pickerGroup:{pickerGroupBorder:(0,nt.n_1)(nt.opG),pickerGroupForeground:(0,nt.n_1)(nt.kJk)}}}};no=to([io(0,be.TG),io(1,ge.i6),io(2,de.XE),io(3,Ce),io(4,z.Ui)],no);var so=i(66870),oo=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ro=function(e,t){return function(i,n){t(i,n,e)}};let ao=class extends no{constructor(e,t,i,n,s,o){super(t,i,n,new xe(e.getContainerDomNode(),s),o),this.host=void 0;const r=ho.get(e);if(r){const t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return ae.ju.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return ae.ju.None},get onDidAddContainer(){return ae.ju.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};ao=oo([ro(1,be.TG),ro(2,ge.i6),ro(3,de.XE),ro(4,g.$),ro(5,z.Ui)],ao);let lo=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(ao,e);this.mapEditorToService.set(e,t),(0,so.M)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn.T.None;return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};lo=oo([ro(0,be.TG),ro(1,g.$)],lo);class ho{static get(e){return e.getContribution(ho.ID)}constructor(e){this.editor=e,this.widget=new co(this.editor)}dispose(){this.widget.dispose()}}ho.ID="editor.controller.quickInput";class co{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return co.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}co.ID="editor.contrib.quickInputWidget",(0,u._K)(ho.ID,ho,4);var uo=i(84633),go=i(79737),po=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},mo=function(e,t){return function(i,n){t(i,n,e)}};let fo=class extends l.JT{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new ae.Q5,this._onDidChangeReducedMotion=new ae.Q5,this._accessibilityModeEnabledContext=gt.U.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const s=a.E.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(s)}initReducedMotionListeners(e){this._register((0,oe.nm)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};fo=po([mo(0,ge.i6),mo(1,Ce),mo(2,z.Ui)],fo);var _o,vo,bo=i(87650),Co=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},yo=function(e,t){return function(i,n){t(i,n,e)}};let wo=class{constructor(e,t){this._commandService=e,this._hiddenStates=new So(t)}createMenu(e,t,i){return new Lo(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};wo=Co([yo(0,Ut.H),yo(1,bo.Uy)],wo);let So=_o=class{constructor(e){this._storageService=e,this._disposables=new l.SL,this._onDidChange=new ae.Q5,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(_o._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,_o._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(_o._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const s=this._isHiddenByDefault(e,t),o=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return s?!o:o}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const n=this._data[e.id];if(i)if(n){n.indexOf(t)<0&&n.push(t)}else this._data[e.id]=[t];else if(n){const i=n.indexOf(t);i>=0&&(0,ve.LS)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(_o._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};So._key="menu.hiddenCommands",So=_o=Co([yo(0,bo.Uy)],So);let xo=vo=class{constructor(e,t,i,n,s){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._contextKeyService=s,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=zi.BH.getMenuItems(this._id);let t;e.sort(vo._compareMenuItems);for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(vo._fillInKbExprKeys(e.when,this._structureContextKeys),(0,zi.vr)(e)){if(e.command.precondition&&vo._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;vo._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&zi.BH.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,s]=i,o=[];for(const t of s)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,zi.vr)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const n=ko(this._id,i?t.command:t,this._hiddenStates);if(i)o.push(new zi.U8(t.command,t.alt,e,n,this._contextKeyService,this._commandService));else{const i=new vo(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(e),s=Wi.Z0.join(...i.map((e=>e[1])));s.length>0&&o.push(new zi.NZ(t,n,s))}}o.length>0&&t.push([n,o])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(!i)return 1;if(!n)return-1;if("navigation"===i)return-1;if("navigation"===n)return 1;const e=i.localeCompare(n);if(0!==e)return e}const s=e.order||0,o=t.order||0;return s<o?-1:s>o?1:vo._compareTitles((0,zi.vr)(e)?e.command.title:e.title,(0,zi.vr)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,n="string"===typeof t?t:t.original;return i.localeCompare(n)}};xo=vo=Co([yo(3,Ut.H),yo(4,ge.i6)],xo);let Lo=class{constructor(e,t,i,n,s){this._disposables=new l.SL,this._menuInfo=new xo(e,t,i.emitEventsForSubmenuChanges,n,s);const o=new ti.pY((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(o),this._disposables.add(zi.BH.onDidChangeMenu((t=>{t.has(e)&&o.schedule()})));const r=this._disposables.add(new l.SL);this._onDidChange=new ae.D0({onWillAddFirstListener:()=>{r.add(s.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),r.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:r.clear.bind(r),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,n=!1;for(const s of e)if(t=t||s.isStructuralChange,i=i||s.isEnablementChange,n=n||s.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function ko(e,t,i){const n=(0,zi.f6)(t)?t.submenu.id:t.id,s="string"===typeof t.title?t.title:t.title.value,o=(0,Wi.xw)({id:`hide/${e.id}/${n}`,label:(0,De.NC)("hide.label","Hide '{0}'",s),run(){i.updateHidden(e,n,!0)}}),r=(0,Wi.xw)({id:`toggle/${e.id}/${n}`,label:s,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:o,toggle:r,get isHidden(){return!r.checked}}}Lo=Co([yo(3,Ut.H),yo(4,ge.i6)],Lo);var Do,No=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Eo=function(e,t){return function(i,n){t(i,n,e)}};let To=Do=class extends l.JT{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(Ui.G6||Ui.MG)&&this.installWebKitWriteTextWorkaround(),this._register(ae.ju.runAndSubscribe(oe.Xo,(e=>{let{window:t,disposables:i}=e;i.add((0,oe.nm)(t.document,"copy",(()=>this.clearResources())))}),{window:a.E,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new ti.CR;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(ae.ju.runAndSubscribe(this.layoutService.onDidAddContainer,(t=>{let{container:i,disposables:n}=t;n.add((0,oe.nm)(i,"click",e)),n.add((0,oe.nm)(i,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,oe.uP)(),i=t.activeElement,n=t.body.appendChild((0,oe.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),i instanceof HTMLElement&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,On.vp)(e.substring(0,Do.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};To.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,To=Do=No([Eo(0,Ce),Eo(1,Ke.VZ)],To);var Io=i(63826),Mo=i(2706),Ao=i(61700),Ro=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Oo=function(e,t){return function(i,n){t(i,n,e)}};const Po="data-keybinding-context";class Fo{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Bo extends Fo{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Bo.INSTANCE=new Bo;class Vo extends Fo{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Ao.Id.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(e=>{let[t]=e;return t}));this._values.clear(),i.fire(new zo(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...Mo.$.map(n,(e=>{let[t]=e;return t}))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new zo(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(Vo._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Vo._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Vo._keyPrefix="config.";class Wo{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Ho{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class zo{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class jo{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Uo extends l.JT{constructor(e){super(),this._onDidChangeContext=this._register(new ae.K3({merge:e=>new jo(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Wo(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new qo(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Ho(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Ho(e))}getContext(e){return this._isDisposed?Bo.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Po)){const t=e.getAttribute(Po);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Ko=class extends Uo{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new Vo(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Bo.INSTANCE:this._contexts.get(e)||Bo.INSTANCE}createChildContext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._myContextId;if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new Fo(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Ko=Ro([Oo(0,z.Ui)],Ko);class qo extends Uo{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new l.XK),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Po)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Po,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Po),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Bo.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._myContextId;if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}Ut.P.registerCommand("_setContext",(function(e,t,i){e.get(ge.i6).createKey(String(t),function(e){return(0,p.rs)(e,(e=>"object"===typeof e&&1===e.$mid?h.o.revive(e).toString():e instanceof h.o?e.toString():void 0))}(i))})),Ut.P.registerCommand({id:"getContextKeyInfo",handler:()=>[...ge.uy.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,De.NC)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),Ut.P.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ge.uy.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var $o=i(46479);class Go{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class Yo{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new Go(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}var Zo=i(45234);class Qo extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class Xo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zo.y,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var s;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._activeInstantiations=new Set,this._services.set(be.TG,this),this._globalGraph=n?null!==(s=null===i||void 0===i?void 0:i._globalGraph)&&void 0!==s?s:new Yo((e=>e)):void 0}createChild(e){return new Xo(e,this._strict,this,this._enableTracing)}invokeFunction(e){const t=Jo.traceInvocation(this._enableTracing,e);let i=!1;try{const r={get:e=>{if(i)throw(0,Le.L6)("service accessor is only valid during the invocation of its target method");const n=this._getOrCreateServiceInstance(e,t);if(!n)throw new Error(`[invokeFunction] unknown service '${e}'`);return n}};for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return e(r,...s)}finally{i=!0,t.stop()}}createInstance(e){let t,i;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return e instanceof $o.M?(t=Jo.traceCreation(this._enableTracing,e.ctor),i=this._createInstance(e.ctor,e.staticArguments.concat(s),t)):(t=Jo.traceCreation(this._enableTracing,e),i=this._createInstance(e,s,t)),t.stop(),i}_createInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;const n=be.I8.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),s=[];for(const r of n){const t=this._getOrCreateServiceInstance(r.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`,!1),s.push(t)}const o=n.length>0?n[0].index:t.length;if(t.length!==o){console.trace(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);const i=o-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,o)}return Reflect.construct(e,t.concat(s))}_setServiceInstance(e,t){if(this._services.get(e)instanceof $o.M)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof $o.M?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const s=new Yo((e=>e.id.toString()));let o=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const t=r.pop();if(s.lookupOrInsertNode(t),o++>1e3)throw new Qo(s);for(const i of be.I8.getServiceDependencies(t.desc.ctor)){const o=this._getServiceInstanceOrDescriptor(i.id);if(o||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),o instanceof $o.M){const e={id:i.id,desc:o,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new Qo(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof $o.M){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(this._services.get(e)instanceof $o.M)return this._createServiceInstance(e,t,i,n,s);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,s);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>4?arguments[4]:void 0;if(arguments.length>3?arguments[3]:void 0){const s=new Xo(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,r=new ti.R5((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const n=e[t];if("function"===typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return o.clear(),e}));return new Proxy(Object.create(null),{get(e,t){if(!r.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=o.get(t);e||(e=new le.S,o.set(t,e));return(i,n,s)=>{if(r.isInitialized)return r.value[t](i,n,s);{const t={listener:[i,n,s],disposable:void 0},o=e.push(t);return(0,l.OF)((()=>{var e;o(),null===(e=t.disposable)||void 0===e||e.dispose()}))}}}if(t in e)return e[t];const i=r.value;let n=i[t];return"function"!==typeof n||(n=n.bind(i),e[t]=n),n},set:(e,t,i)=>(r.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}return this._createInstance(t,i,n)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class Jo{static traceInvocation(e,t){return e?new Jo(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):Jo._None}static traceCreation(e,t){return e?new Jo(1,t.name):Jo._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new Jo(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;Jo._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){const s=[],o=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,s.push(`${o}CREATES -> ${r}`);const n=e(i+1,l);n&&s.push(n)}else s.push(`${o}uses -> ${r}`);return s.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Jo._totals.toFixed(2)}ms)`];(e>2||t)&&Jo.all.add(i.join("\n"))}}Jo.all=new Set,Jo._None=new class extends Jo{constructor(){super(0,null)}stop(){}branch(){return this}},Jo._totals=0;const er=new Set([re.lg.inMemory,re.lg.vscodeSourceControl,re.lg.walkThrough,re.lg.walkThroughSnippet,re.lg.vscodeChatCodeBlock]);class tr{constructor(){this._byResource=new Kt.Y9,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let s=this._byOwner.get(t);s||(s=new Kt.Y9,this._byOwner.set(t,s)),s.set(e,i)}get(e,t){const i=this._byResource.get(e);return null===i||void 0===i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const s=this._byResource.get(e);s&&(i=s.delete(t));const o=this._byOwner.get(t);if(o&&(n=o.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,s;return"string"===typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:Mo.$.empty():h.o.isUri(e)?null!==(s=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==s?s:Mo.$.empty():Mo.$.map(Mo.$.concat(...this._byOwner.values()),(e=>e[1]))}}class ir{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Kt.Y9,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(er.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===xn.ZL.Error?t.errors+=1:i===xn.ZL.Warning?t.warnings+=1:i===xn.ZL.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class nr{constructor(){this._onMarkerChanged=new ae.D0({delay:0,merge:nr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new tr,this._stats=new ir(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,ve.XY)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const n=[];for(const s of i){const i=nr._toMarker(e,t,s);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:h,relatedInformation:c,tags:u}=i;if(o)return a=a>0?a:1,l=l>0?l:1,d=d>=a?d:a,h=h>0?h:l,{resource:t,owner:e,code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:h,relatedInformation:c,tags:u}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const s of n){const t=Mo.$.first(s);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,ve.Of)(t)){const n=new Kt.Y9;for(const{resource:s,marker:o}of t){const t=nr._toMarker(e,s,o);if(!t)continue;const r=n.get(s);r?r.push(t):(n.set(s,[t]),i.push(s))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null),{owner:t,resource:i,severities:n,take:s}=e;if((!s||s<0)&&(s=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(nr._accept(i,n)){const e=t.push(i);if(s>0&&e===s)break}return t}return[]}if(t||i){const e=this._data.values(null!==i&&void 0!==i?i:t),o=[];for(const t of e)for(const e of t)if(nr._accept(e,n)){const t=o.push(e);if(s>0&&t===s)return o}return o}{const e=[];for(const t of this._data.values())for(const i of t)if(nr._accept(i,n)){const t=e.push(i);if(s>0&&t===s)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new Kt.Y9;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}class sr extends l.JT{constructor(){super(...arguments),this._configurationModel=new Zt}get configurationModel(){return this._configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=new Zt;const e=Gt.B.as($t.IP.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],s=t[n];void 0!==e?this._configurationModel.addValue(n,e):s?this._configurationModel.addValue(n,s.default):this._configurationModel.removeValue(n)}}}var or=i(88622);class rr extends l.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];super(),this.logger=new Ke.qA([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.trace(e,...i)}debug(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.debug(e,...i)}info(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.info(e,...i)}warn(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.warn(e,...i)}error(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.error(e,...i)}}var ar=i(26993),lr=i(68664),dr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},hr=function(e,t){return function(i,n){t(i,n,e)}};class cr{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new ae.Q5}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let ur=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new l.Jz(new cr(t))):Promise.reject(new Error("Model not found"))}};ur=dr([hr(0,k.q)],ur);class gr{show(){return gr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}gr.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class pr{info(e){return this.notify({severity:ke.Z.Info,message:e})}warn(e){return this.notify({severity:ke.Z.Warning,message:e})}error(e){return this.notify({severity:ke.Z.Error,message:e})}notify(e){switch(e.severity){case ke.Z.Error:console.error(e.message);break;case ke.Z.Warning:console.warn(e.message);break;default:console.log(e.message)}return pr.NO_OP}prompt(e,t,i,n){return pr.NO_OP}status(e,t){return l.JT.None}}pr.NO_OP=new Ee.EO;let mr=class{constructor(e){this._onWillExecuteCommand=new ae.Q5,this._onDidExecuteCommand=new ae.Q5,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e){const t=Ut.P.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];this._onWillExecuteCommand.fire({commandId:e,args:n});const o=this._instantiationService.invokeFunction.apply(this._instantiationService,[t.handler,...n]);return this._onDidExecuteCommand.fire({commandId:e,args:n}),Promise.resolve(o)}catch(o){return Promise.reject(o)}}};mr=dr([hr(0,be.TG)],mr);let fr=class extends di{constructor(e,t,i,n,s,o){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const r=e=>{const t=new l.SL;t.add(oe.nm(e,oe.tw.KEY_DOWN,(e=>{const t=new yt.y(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(oe.nm(e,oe.tw.KEY_UP,(e=>{const t=new yt.y(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new _r(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},d=e=>{e.getOption(61)||r(e.getContainerDomNode())};this._register(o.onCodeEditorAdd(d)),this._register(o.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),o.listCodeEditors().forEach(d);const h=e=>{r(e.getContainerDomNode())};this._register(o.onDiffEditorAdd(h)),this._register(o.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),o.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return(0,l.F8)(Ut.P.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:(0,Pt.Z9)(e.keybinding,ut.OS),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,l.OF)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(ci.W.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new oi(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.E.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const s of e){const e=s.when||void 0,o=s.keybinding;if(o){const r=_i.resolveKeybinding(o,ut.OS);for(const o of r)i[n++]=new ui(o,s.command,s.commandArgs,e,t,null,!1)}else i[n++]=new ui(void 0,s.command,s.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new Pt.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new _i([t],ut.OS)}};fr=dr([hr(0,ge.i6),hr(1,Ut.H),hr(2,Ci.b),hr(3,Ee.lT),hr(4,Ke.VZ),hr(5,g.$)],fr);class _r extends l.JT{constructor(e,t){super(),this.domNode=e,this._register(t)}}function vr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.o)}class br{constructor(){this._onDidChangeConfiguration=new ae.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new sr;this._configuration=new Jt(e.reload(),new Zt,new Zt,new Zt),e.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,n=vr(e)?e:vr(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new ei({keys:i,overrides:[]},t,this._configuration);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._configuration.inspect(e,t,void 0)}}let Cr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new ae.Q5,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=Wt.L.isIPosition(t)?t:null,s=n?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,o=e?this.getLanguage(e,n):void 0;return"undefined"===typeof s?this.configurationService.getValue({resource:e,overrideIdentifier:o}):this.configurationService.getValue(s,{resource:e,overrideIdentifier:o})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Cr=dr([hr(0,z.Ui),hr(1,k.q),hr(2,y.O)],Cr);let yr=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:ut.IJ||ut.dz?"\n":"\r\n"}};yr=dr([hr(0,z.Ui)],yr);class wr{constructor(){const e=h.o.from({scheme:wr.SCHEME,authority:"model",path:"/"});this.workspace={id:yi.p$,folders:[new yi.md({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===wr.SCHEME?this.workspace.folders[0]:null}}function Sr(e,t,i){if(!t)return;if(!(e instanceof br))return;const n=[];Object.keys(t).forEach((e=>{(0,Bt.ei)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,Bt.Pe)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}wr.SCHEME="inmemory";let xr=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:Ft.fo.convert(e),n=new Map;for(const r of i){if(!(r instanceof Ft.Gl))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let t=n.get(e);t||(t=[],n.set(e,t)),t.push(Vt.h.replaceMove(Ht.e.lift(r.textEdit.range),r.textEdit.text))}let s=0,o=0;for(const[r,a]of n)r.pushStackElement(),r.pushEditOperations([],a,(()=>[])),r.pushStackElement(),o+=1,s+=a.length;return{ariaSummary:d.WU(wi.iN.bulkEditServiceSummary,s,o),isApplied:s>0}}};xr=dr([hr(0,k.q)],xr);let Lr=class extends Tt{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Lr=dr([hr(0,Ce),hr(1,g.$)],Lr);let kr=class extends gn{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o),this.configure({blockMouse:!1})}};kr=dr([hr(0,Ci.b),hr(1,Ee.lT),hr(2,ot.u),hr(3,rt.d),hr(4,zi.co),hr(5,ge.i6)],kr);var Dr;(0,pe.z)(z.Ui,br,0),(0,pe.z)(jt.V,Cr,0),(0,pe.z)(jt.y,yr,0),(0,pe.z)(yi.ec,wr,0),(0,pe.z)(vi.e,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Si.EZ)(e)}},0),(0,pe.z)(Ci.b,class{publicLog2(){}},0),(0,pe.z)(Ne.S,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),a.E.confirm(i)}async prompt(e){var t,i;let n;if(this.doConfirm(e.message,e.detail)){const s=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&s.push(e.cancelButton),n=await(null===(i=s[0])||void 0===i?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:ke.Z.Error,message:e,detail:t})}},0),(0,pe.z)(lr.Y,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,pe.z)(Ee.lT,pr,0),(0,pe.z)(xn.lT,nr,0),(0,pe.z)(y.O,class extends Bi{constructor(){super()}},0),(0,pe.z)(go.Z,uo.nI,0),(0,pe.z)(Ke.VZ,class extends rr{constructor(){super(new Ke.kw)}},0),(0,pe.z)(k.q,jn,0),(0,pe.z)(Mn.i,En,0),(0,pe.z)(ge.i6,Ko,0),(0,pe.z)(bi.R9,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,pe.z)(bi.ek,gr,0),(0,pe.z)(bo.Uy,bo.vm,0),(0,pe.z)(Sn.p,m.eu,0),(0,pe.z)(Ft.vu,xr,0),(0,pe.z)(xi.Y,class{constructor(){this._neverEmitter=new ae.Q5,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,pe.z)(zt.S,ur,0),(0,pe.z)(gt.F,fo,0),(0,pe.z)(ls.Lw,ls.XN,0),(0,pe.z)(Ut.H,mr,0),(0,pe.z)(rt.d,fr,0),(0,pe.z)(qn.eJ,lo,0),(0,pe.z)(ot.u,Lr,0),(0,pe.z)(dt.v,wn,0),(0,pe.z)(Io.p,To,0),(0,pe.z)(ot.i,kr,0),(0,pe.z)(zi.co,wo,0),(0,pe.z)(or.IV,class{async playSignal(e,t){}},0),function(e){const t=new Zo.y;for(const[r,a]of(0,pe.d)())t.set(r,a);const i=new Xo(t,!0);t.set(be.TG,i),e.get=function(e){n||o({});const s=t.get(e);if(!s)throw new Error("Missing service "+e);return s instanceof $o.M?i.invokeFunction((t=>t.get(e))):s};let n=!1;const s=new ae.Q5;function o(e){if(n)return i;n=!0;for(const[i,n]of(0,pe.d)())t.get(i)||t.set(i,n);for(const i in e)if(e.hasOwnProperty(i)){const n=(0,be.yh)(i);t.get(n)instanceof $o.M&&t.set(n,e[i])}const o=(0,ar.n)();for(const t of o)try{i.createInstance(t)}catch(r){(0,Le.dL)(r)}return s.fire(),i}e.initialize=o,e.withServices=function(e){if(n)return e();const t=new l.SL,i=t.add(s.event((()=>{i.dispose(),t.add(e())})));return t}}(Dr||(Dr={}));var Nr=i(61369),Er=i(97133),Tr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ir=function(e,t){return function(i,n){t(i,n,e)}};let Mr=0,Ar=!1;let Rr=class extends s.Gm{constructor(e,t,i,n,s,o,r,l,d,h,c,u){const g={...t};g.ariaLabel=g.ariaLabel||wi.B8.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+wi.B8.accessibilityHelpMessage,super(e,g,{},i,n,s,o,l,d,h,c,u),this._standaloneKeybindingService=r instanceof fr?r:null,function(e){if(!e){if(Ar)return;Ar=!0}ne.wW(e||a.E.document.body)}(g.ariaContainerElement),(0,Er.rM)(((e,t)=>i.createInstance(st.mQ,e,t,{})))}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Mr,s=ge.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){var t=this;if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.JT.None;const i=e.id,n=e.label,s=ge.Ao.and(ge.Ao.equals("editorId",this.getId()),ge.Ao.deserialize(e.precondition)),o=e.keybindings,r=ge.Ao.and(s,ge.Ao.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,d=e.contextMenuOrder||0,h=function(i){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return Promise.resolve(e.run(t,...s))},c=new l.SL,u=this.getId()+":"+i;if(c.add(Ut.P.registerCommand(u,h)),a){const e={command:{id:u,title:n},when:s,group:a,order:d};c.add(zi.BH.appendMenuItem(zi.eH.EditorContext,e))}if(Array.isArray(o))for(const l of o)c.add(this._standaloneKeybindingService.addDynamicKeybinding(u,l,h,r));const g=new se.p(u,n,n,void 0,s,(function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return Promise.resolve(e.run(t,...n))}),this._contextKeyService);return this._actions.set(i,g),c.add((0,l.OF)((()=>{this._actions.delete(i)}))),c}_triggerCommand(e,t){if(this._codeEditorService instanceof _e)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};Rr=Tr([Ir(2,be.TG),Ir(3,g.$),Ir(4,Ut.H),Ir(5,ge.i6),Ir(6,rt.d),Ir(7,de.XE),Ir(8,Ee.lT),Ir(9,gt.F),Ir(10,w.c_),Ir(11,it.p)],Rr);let Or=class extends Rr{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p){const m={...t};Sr(d,m,!1);const f=a.registerEditorContainer(e);"string"===typeof m.theme&&a.setTheme(m.theme),"undefined"!==typeof m.autoDetectHighContrast&&a.setAutoDetectHighContrast(Boolean(m.autoDetectHighContrast));const _=m.model;let v;if(delete m.model,super(e,m,i,n,s,o,r,a,l,h,g,p),this._configurationService=d,this._standaloneThemeService=a,this._register(f),"undefined"===typeof _){const e=u.getLanguageIdByMimeType(m.language)||m.language||S.bd;v=Fr(c,u,m.value||"",e,void 0),this._ownsModel=!0}else v=_,this._ownsModel=!1;if(this._attachModel(v),v){const e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Sr(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Or=Tr([Ir(2,be.TG),Ir(3,g.$),Ir(4,Ut.H),Ir(5,ge.i6),Ir(6,rt.d),Ir(7,go.Z),Ir(8,Ee.lT),Ir(9,z.Ui),Ir(10,gt.F),Ir(11,k.q),Ir(12,y.O),Ir(13,w.c_),Ir(14,it.p)],Or);let Pr=class extends Nr.p{constructor(e,t,i,n,s,o,r,a,l,d,h,c){const u={...t};Sr(a,u,!0);const g=o.registerEditorContainer(e);"string"===typeof u.theme&&o.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&o.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},n,i,s,c,d),this._configurationService=a,this._standaloneThemeService=o,this._register(g)}dispose(){super.dispose()}updateOptions(e){Sr(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(Rr,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function Fr(e,t,i,n,s){if(i=i||"",!n){const n=i.indexOf("\n");let o=i;return-1!==n&&(o=i.substring(0,n)),Br(e,i,t.createByFilepathOrFirstLine(s||null,o),s)}return Br(e,i,t.createById(n),s)}function Br(e,t,i,n){return e.createModel(t,i,n)}Pr=Tr([Ir(2,be.TG),Ir(3,ge.i6),Ir(4,g.$),Ir(5,go.Z),Ir(6,Ee.lT),Ir(7,z.Ui),Ir(8,ot.i),Ir(9,bi.ek),Ir(10,Io.p),Ir(11,or.IV)],Pr);var Vr=i(43704),Wr=i(36348),Hr=i(91206),zr=i(82297),jr=i(91181),Ur=i(93845),Kr=i(24854),qr=i(35770),$r=i(31936),Gr=i(70006),Yr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Zr=function(e,t){return function(i,n){t(i,n,e)}};class Qr{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Xr=class extends l.JT{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,zr.uh)(this,void 0),this._collapsed=(0,Vr.nK)(this,(e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)})),this._editorContentHeight=(0,zr.uh)(this,500),this.contentHeight=(0,Vr.nK)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,zr.uh)(this,0),this._modifiedWidth=(0,zr.uh)(this,0),this._originalContentWidth=(0,zr.uh)(this,0),this._originalWidth=(0,zr.uh)(this,0),this.maxScroll=(0,Vr.nK)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,oe.h)("div.multiDiffEntry",[(0,oe.h)("div.header@header",[(0,oe.h)("div.header-content",[(0,oe.h)("div.collapse-button@collapseButton"),(0,oe.h)("div.file-path",[(0,oe.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,oe.h)("div.status.deleted@status",["R"]),(0,oe.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,oe.h)("div.actions@actions")])]),(0,oe.h)("div.editorParent",[(0,oe.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Nr.p,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=Jr(this.editor.getModifiedEditor()),this.isOriginalFocused=Jr(this.editor.getOriginalEditor()),this.isFocused=(0,Vr.nK)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new l.SL,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const s=new Vs.z(this._elements.collapseButton,{});this._register((0,Vr.EH)((e=>{s.element.className="",s.icon=this._collapsed.read(e)?Yi.l.chevronRight:Yi.l.chevronDown}))),this._register(s.onDidClick((()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Vr.EH)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,zr.Bl)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Vr.EH)((e=>{const t=this.isFocused.read(e);this._elements.root.classList.toggle("focused",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance($r.r,this._elements.actions,zi.eH.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Gr.D((()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri}))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,Hi.Id)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))}))),(0,zr.Bl)((n=>{var s,o,r,a;null===(s=this._resourceLabel)||void 0===s||s.setUri(null!==(o=e.viewModel.modifiedUri)&&void 0!==o?o:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let l=!1,d=!1,h=!1,c="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(c="R",l=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(c="A",h=!0):(c="D",d=!0),this._elements.status.classList.toggle("renamed",l),this._elements.status.classList.toggle("deleted",d),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=c,null===(r=this._resourceLabel2)||void 0===r||r.setUri(l?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(a=i.options)&&void 0!==a?a:{}))}))}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const s=e.length-this._headerHeight,o=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${o}px)`,(0,zr.Bl)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",o>0||i>0),this._elements.header.classList.toggle("collapsed",o===s)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function Jr(e){return(0,Vr.rD)((t=>{const i=new l.SL;return i.add(e.onDidFocusEditorWidget((()=>t(!0)))),i.add(e.onDidBlurEditorWidget((()=>t(!1)))),i}),(()=>e.hasTextFocus()))}Xr=Yr([Zr(3,be.TG)],Xr);class ea{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=null!==(t=n.find((t=>this._itemData.get(t).getId()===e.getId())))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var ta=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ia=function(e,t){return function(i,n){t(i,n,e)}};let na=class extends l.JT{constructor(e,t,i,n,s,o){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=s,this._parentInstantiationService=o,this._elements=(0,oe.h)("div.monaco-component.multiDiffEditor",[(0,oe.h)("div@content",{style:{overflow:"hidden"}}),(0,oe.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._sizeObserver=this._register(new Wr.DU(this._element,void 0)),this._objectPool=this._register(new ea((e=>{const t=this._instantiationService.createInstance(Xr,this._elements.content,this._elements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this._scrollable=this._register(new jr.Rm({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,oe.jL)((0,oe.Jj)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new Gi.$Z(this._elements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.scrollTop=(0,Vr.rD)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Vr.rD)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItems=(0,Vr.Be)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return[];return i.items.read(e).map((e=>{var i;const n=t.add(new sa(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=null===(i=this._lastDocStates)||void 0===i?void 0:i[n.getKey()];return s&&(0,zr.PS)((e=>{n.setViewState(s,e)})),n}))})),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this.activeDiffItem=(0,Vr.nK)(this,(e=>this._viewItems.read(e).find((t=>{var i;return null===(i=t.template.read(e))||void 0===i?void 0:i.isFocused.read(e)})))),this.lastActiveDiffItem=(0,Vr.bx)(((e,t)=>{var i;return null!==(i=this.activeDiffItem.read(e))&&void 0!==i?i:t})),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._parentInstantiationService.createChild(new Zo.y([ge.i6,this._contextKeyService])),this._lastDocStates={},this._contextKeyService.createKey(qr.u.inMultiDiffEditor.key,!0),this._register((0,Vr.gp)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[n,s]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(n,void 0);e.set(s),t.add((0,l.OF)((()=>e.reset())))}})));const r=this._parentContextKeyService.createKey(qr.u.multiDiffEditorAllCollapsed.key,!1);this._register((0,Vr.EH)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));r.set(i)}}))),this._register((0,Vr.EH)((e=>{const t=this.lastActiveDiffItem.read(e);(0,zr.PS)((i=>{var n;null===(n=this._viewModel.read(e))||void 0===n||n.activeDiffItem.set(null===t||void 0===t?void 0:t.viewModel,i)}))}))),this._register((0,Vr.EH)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._elements.content.style.position="relative",this._register((0,Vr.EH)((e=>{const t=this._sizeObserver.height.read(e);this._elements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._elements.content.style.height=`${i}px`;const n=this._sizeObserver.width.read(e);let s=n;const o=this._viewItems.read(e),r=(0,Hr.dI)(o,(t=>t.maxScroll.read(e).maxScroll));if(r){s=n+r.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:n,height:t,scrollHeight:i,scrollWidth:s})}))),e.replaceChildren(this._scrollableElement.getDomNode()),this._register((0,l.OF)((()=>{e.replaceChildren()}))),this._register(this._register((0,Vr.EH)((e=>{(0,zr.Bl)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,s=0;const o=this._sizeObserver.height.read(e),r=Ur.q.ofStartAndLength(t,o),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const d=l.contentHeight.read(e),h=Math.min(d,o),c=Ur.q.ofStartAndLength(n,h),u=Ur.q.ofStartAndLength(s,d);if(u.isBefore(r))i-=d-h,l.hide();else if(u.isAfter(r))l.hide();else{const e=Math.max(0,Math.min(r.start-u.start,d-h));i-=e;const n=Ur.q.ofStartAndLength(t+i,o);l.render(c,e,a,n)}n+=h+this._spaceBetweenPx,s+=d+this._spaceBetweenPx}this._elements.content.style.transform=`translateY(${-(t+i)}px)`}};na=ta([ia(4,ge.i6),ia(5,be.TG)],na);class sa extends l.JT{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register((0,zr.DN)(this,void 0)),this.contentHeight=(0,Vr.nK)(this,(e=>{var t,i,n;return null!==(n=null===(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.contentHeight)||void 0===i?void 0:i.read(e))&&void 0!==n?n:this.viewModel.lastTemplateData.read(e).contentHeight})),this.maxScroll=(0,Vr.nK)(this,(e=>{var t,i;return null!==(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.maxScroll.read(e))&&void 0!==i?i:{maxScroll:0,scrollWidth:0}})),this.template=(0,Vr.nK)(this,(e=>{var t;return null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object})),this._isHidden=(0,Vr.uh)(this,!1),this._register((0,Vr.EH)((e=>{var t;const i=this._scrollLeft.read(e);null===(t=this._templateRef.read(e))||void 0===t||t.object.setScrollLeft(i)}))),this._register((0,Vr.EH)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${null===(e=this.viewModel.entry.value.modified)||void 0===e?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),s=null===(i=e.selections)||void 0===i?void 0:i.map(Kr.Y.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:s},t);const o=this._templateRef.get();o&&s&&o.object.editor.setSelections(s)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:null!==(t=i.object.editor.getSelections())&&void 0!==t?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,zr.PS)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let s=this._templateRef.get();if(!s){s=this._objectPool.getUnusedObj(new Qr(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(s,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&s.object.editor.setSelections(e)}s.object.render(e,i,t,n)}}(0,nt.P6G)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,De.NC)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,nt.P6G)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,De.NC)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,nt.P6G)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,De.NC)("multiDiffEditor.border","The border color of the multi file diff editor"));var oa=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ra=function(e,t){return function(i,n){t(i,n,e)}};let aa=class extends l.JT{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Vr.uh)(this,void 0),this._viewModel=(0,Vr.uh)(this,void 0),this._widgetImpl=(0,Vr.Be)(this,((e,t)=>((0,Wr.NW)(Xr,e),t.add(this._instantiationService.createInstance((0,Wr.NW)(na,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Vr.jx)(this._widgetImpl))}};function la(e,t,i){return Dr.initialize(i||{}).createInstance(Or,e,t)}function da(e){return Dr.get(g.$).onCodeEditorAdd((t=>{e(t)}))}function ha(e){return Dr.get(g.$).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Dr.get(g.$).listCodeEditors()}function ua(){return Dr.get(g.$).listDiffEditors()}function ga(e,t,i){return Dr.initialize(i||{}).createInstance(Pr,e,t)}function pa(e,t){const i=Dr.initialize(t||{});return new aa(e,{},i)}function ma(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Ut.P.registerCommand(e.id,e.run)}function fa(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ge.Ao.deserialize(e.precondition),i=new l.SL;if(i.add(Ut.P.registerCommand(e.id,(function(i){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return u._l.runEditorCommand(i,s,t,((t,i,n)=>Promise.resolve(e.run(i,...n))))}))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(zi.BH.appendMenuItem(zi.eH.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=Dr.get(rt.d);if(n instanceof fr){const s=ge.Ao.and(t,ge.Ao.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:s})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function _a(e){return va([e])}function va(e){const t=Dr.get(rt.d);return t instanceof fr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ge.Ao.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.JT.None)}function ba(e,t,i){const n=Dr.get(y.O),s=n.getLanguageIdByMimeType(t)||t;return Fr(Dr.get(k.q),n,e,s,i)}function Ca(e,t){const i=Dr.get(y.O),n=i.getLanguageIdByMimeType(t)||t||S.bd;e.setLanguage(i.createById(n))}function ya(e,t,i){if(e){Dr.get(xn.lT).changeOne(t,e.uri,i)}}function wa(e){Dr.get(xn.lT).changeAll(e,[])}function Sa(e){return Dr.get(xn.lT).read(e)}function xa(e){return Dr.get(xn.lT).onMarkerChanged(e)}function La(e){return Dr.get(k.q).getModel(e)}function ka(){return Dr.get(k.q).getModels()}function Da(e){return Dr.get(k.q).onModelAdded(e)}function Na(e){return Dr.get(k.q).onModelRemoved(e)}function Ea(e){return Dr.get(k.q).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t,i){return new f(e,t,i)}(Dr.get(k.q),Dr.get(w.c_),e)}function Ia(e,t){const i=Dr.get(y.O),n=Dr.get(go.Z);return te.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))}function Ma(e,t,i){const n=Dr.get(y.O);return Dr.get(go.Z).registerEditorContainer(a.E.document.body),te.colorize(n,e,t,i)}function Aa(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;return Dr.get(go.Z).registerEditorContainer(a.E.document.body),te.colorizeModelLine(e,t,i)}function Ra(e,t){C.RW.getOrCreate(t);const i=function(e){const t=C.RW.get(e);return t||{getInitialState:()=>x.TJ,tokenize:(t,i,n)=>(0,x.Ri)(e,n)}}(t),n=(0,d.uq)(e),s=[];let o=i.getInitialState();for(let r=0,a=n.length;r<a;r++){const e=n[r],t=i.tokenize(e,!0,o);s[r]=t.tokens,o=t.endState}return s}function Oa(e,t){Dr.get(go.Z).defineTheme(e,t)}function Pa(e){Dr.get(go.Z).setTheme(e)}function Fa(){c.g.clearAllFontInfos()}function Ba(e,t){return Ut.P.registerCommand({id:e,handler:t})}function Va(e){return Dr.get(dt.v).registerOpener({open:async t=>("string"===typeof t&&(t=h.o.parse(t)),e.open(t))})}function Wa(e){return Dr.get(g.$).registerCodeEditorOpenHandler((async(t,i,n)=>{var s;if(!i)return null;const o=null===(s=t.options)||void 0===s?void 0:s.selection;let r;return o&&"number"===typeof o.endLineNumber&&"number"===typeof o.endColumn?r=o:o&&(r={lineNumber:o.startLineNumber,column:o.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}aa=oa([ra(2,be.TG)],aa);var Ha=i(63932);function za(e,t){return"boolean"===typeof e?e:t}function ja(e,t){return"string"===typeof e?e:t}function Ua(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Ka(e,t,i){t=t.replace(/@@/g,"\x01");let n,s=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,s){n=!0;let o="";if("string"===typeof e[s])o=e[s];else{if(!(e[s]&&e[s]instanceof RegExp))throw void 0===e[s]?B(e,"language definition does not contain attribute '"+s+"', used at: "+t):B(e,"attribute reference '"+s+"' must be a string, used at: "+t);o=e[s].source}return O(o)?"":"(?:"+o+")"})),s++}while(n&&s<5);t=t.replace(/\x01/g,"@");const o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return s=>(n&&i===s||(i=s,n=new RegExp(function(e,t,i){let n=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,s){return null===n&&(n=i.split("."),n.unshift(i)),!O(s)&&s<n.length?P(e,n[s]):""}))}(e,t,s),o)),n)}}return new RegExp(t,o)}function qa(e,t,i,n){let s=-1,o=i,r=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);r&&(r[3]&&(s=parseInt(r[3]),r[2]&&(s+=100)),o=r[4]);let a,l="~",d=o;if(o&&0!==o.length?/^\w*$/.test(d)?l="==":(r=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),r&&(l=r[1],d=r[2])):(l="!=",d=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(d))if("@"===l||"!@"===l){const i=e[d];if(!i)throw B(e,"the @ match target '"+d+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw B(e,"the @ match target '"+d+"' must be an array of strings, in rule: "+t);const n=Ua(i,e.ignoreCase);a=function(e){return"@"===l?n(e):!n(e)}}else if("~"===l||"!~"===l)if(d.indexOf("$")<0){const t=Ka(e,"^"+d+"$",!1);a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,n,s){return Ka(e,"^"+V(e,d,i,n,s)+"$",!1).test(t)};else if(d.indexOf("$")<0){const t=P(e,d);a=function(e){return"=="===l?e===t:e!==t}}else{const t=P(e,d);a=function(i,n,s,o,r){const a=V(e,t,n,s,o);return"=="===l?i===a:i!==a}}else{const t=Ua(d.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===s?{name:i,value:n,test:function(e,t,i,n){return a(e,e,t,i,n)}}:{name:i,value:n,test:function(e,t,i,n){const o=function(e,t,i,n){if(n<0)return e;if(n<t.length)return t[n];if(n>=100){n-=100;const e=i.split(".");if(e.unshift(i),n<e.length)return e[n]}return null}(e,t,i,s);return a(o||"",e,t,i,n)}}}function $a(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw B(e,"a 'token' attribute must be of type string, in rule: "+t);{const n={token:i.token};if(i.token.indexOf("$")>=0&&(n.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw B(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!==typeof i.next)throw B(e,"the next state must be a string value in rule: "+t);{let s=i.next;if(!/^(@pop|@push|@popall)$/.test(s)&&("@"===s[0]&&(s=s.substr(1)),s.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,V(e,s,"",[],""))))throw B(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=s}}return"number"===typeof i.goBack&&(n.goBack=i.goBack),"string"===typeof i.switchTo&&(n.switchTo=i.switchTo),"string"===typeof i.log&&(n.log=i.log),"string"===typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=$a(e,t,i[s]);return{group:n}}if(i.cases){const n=[];for(const o in i.cases)if(i.cases.hasOwnProperty(o)){const s=$a(e,t,i.cases[o]);"@default"===o||"@"===o||""===o?n.push({test:void 0,value:s,name:o}):"@eos"===o?n.push({test:function(e,t,i,n){return n},value:s,name:o}):n.push(qa(e,t,o,s))}const s=e.defaultToken;return{test:function(e,t,i,o){for(const s of n){if(!s.test||s.test(e,t,i,o))return s.value}return s}}}throw B(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class Ga{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"===typeof t)i=t;else{if(!(t instanceof RegExp))throw B(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Ka(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=$a(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ya(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={};i.languageId=e,i.includeLF=za(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"===typeof t.start?t.start:null,i.ignoreCase=za(t.ignoreCase,!1),i.unicode=za(t.unicode,!1),i.tokenPostfix=ja(t.tokenPostfix,"."+i.languageId),i.defaultToken=ja(t.defaultToken,"source"),i.usesEmbedded=!1;const n=t;function s(e,o,r){for(const a of r){let r=a.include;if(r){if("string"!==typeof r)throw B(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw B(i,"include target '"+r+"' is not defined at: "+e);s(e+"."+r,o,t.tokenizer[r])}else{const t=new Ga(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw B(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw B(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=za(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}o.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw B(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const r in t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){i.start||(i.start=r);const e=t.tokenizer[r];i.tokenizer[r]=new Array,s("tokenizer."+r,i.tokenizer[r],e)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw B(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(const r of t.brackets){let e=r;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw B(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw B(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:e.token+i.tokenPostfix,open:P(i,e.open),close:P(i,e.close)})}return i.brackets=o,i.noThrow=!0,i}function Za(e){S.dQ.registerLanguage(e)}function Qa(){let e=[];return e=e.concat(S.dQ.getLanguages()),e}function Xa(e){return Dr.get(y.O).languageIdCodec.encodeLanguageId(e)}function Ja(e,t){return Dr.withServices((()=>{const i=Dr.get(y.O).onDidRequestRichLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))}function el(e,t){return Dr.withServices((()=>{const i=Dr.get(y.O).onDidRequestBasicLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))}function tl(e,t){if(!Dr.get(y.O).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Dr.get(w.c_).register(e,t,100)}class il{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return nl.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new C.DI(n.tokens,n.endState)}}class nl{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,o=e.length;s<o;s++){const o=e[s];let r=o.startIndex;0===s?r=0:r<n&&(r=n),i[s]=new C.WU(r,o.scopes,t),n=r}return i}static adaptTokenize(e,t,i,n){const s=t.tokenize(i,n),o=nl._toClassicTokens(s.tokens,e);let r;return r=s.endState.equals(n)?n:s.endState,new C.hG(o,r)}tokenize(e,t,i){return nl.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),n=this._standaloneThemeService.getColorTheme().tokenTheme,s=[];let o=0,r=0;for(let l=0,d=t.length;l<d;l++){const e=t[l],a=1024|n.match(i,e.scopes);if(o>0&&s[o-1]===a)continue;let d=e.startIndex;0===l?d=0:d<r&&(d=r),s[o++]=d,s[o++]=a,r=d}const a=new Uint32Array(o);for(let l=0;l<o;l++)a[l]=s[l];return a}tokenizeEncoded(e,t,i){const n=this._actual.tokenize(e,i),s=this._toBinaryTokens(this._languageService.languageIdCodec,n.tokens);let o;return o=n.endState.equals(i)?i:n.endState,new C.DI(s,o)}}function sl(e){return e&&"function"===typeof e.then}function ol(e){const t=Dr.get(go.Z);if(e){const i=[null];for(let t=1,n=e.length;t<n;t++)i[t]=Ha.Il.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function rl(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new il(e,t):new nl(e,t,Dr.get(y.O),Dr.get(go.Z))}function al(e,t){const i=new C.MO((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?rl(e,i):new X(Dr.get(y.O),Dr.get(go.Z),e,Ya(e,i),Dr.get(z.Ui)):null}));return C.RW.registerFactory(e,i)}function ll(e,t){if(!Dr.get(y.O).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return sl(t)?al(e,{create:()=>t}):C.RW.register(e,rl(e,t))}function dl(e,t){return sl(t)?al(e,{create:()=>t}):C.RW.register(e,(t=>new X(Dr.get(y.O),Dr.get(go.Z),e,Ya(e,t),Dr.get(z.Ui)))(t))}function hl(e,t){return Dr.get(it.p).referenceProvider.register(e,t)}function cl(e,t){return Dr.get(it.p).renameProvider.register(e,t)}function ul(e,t){return Dr.get(it.p).newSymbolNamesProvider.register(e,t)}function gl(e,t){return Dr.get(it.p).signatureHelpProvider.register(e,t)}function pl(e,t){return Dr.get(it.p).hoverProvider.register(e,{provideHover:(e,i,n)=>{const s=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then((e=>{if(e)return!e.range&&s&&(e.range=new Ht.e(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)),e.range||(e.range=new Ht.e(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function ml(e,t){return Dr.get(it.p).documentSymbolProvider.register(e,t)}function fl(e,t){return Dr.get(it.p).documentHighlightProvider.register(e,t)}function _l(e,t){return Dr.get(it.p).linkedEditingRangeProvider.register(e,t)}function vl(e,t){return Dr.get(it.p).definitionProvider.register(e,t)}function bl(e,t){return Dr.get(it.p).implementationProvider.register(e,t)}function Cl(e,t){return Dr.get(it.p).typeDefinitionProvider.register(e,t)}function yl(e,t){return Dr.get(it.p).codeLensProvider.register(e,t)}function wl(e,t,i){return Dr.get(it.p).codeActionProvider.register(e,{providedCodeActionKinds:null===i||void 0===i?void 0:i.providedCodeActionKinds,documentation:null===i||void 0===i?void 0:i.documentation,provideCodeActions:(e,i,n,s)=>{const o=Dr.get(xn.lT).read({resource:e.uri}).filter((e=>Ht.e.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:o,only:n.only,trigger:n.trigger},s)},resolveCodeAction:t.resolveCodeAction})}function Sl(e,t){return Dr.get(it.p).documentFormattingEditProvider.register(e,t)}function xl(e,t){return Dr.get(it.p).documentRangeFormattingEditProvider.register(e,t)}function Ll(e,t){return Dr.get(it.p).onTypeFormattingEditProvider.register(e,t)}function kl(e,t){return Dr.get(it.p).linkProvider.register(e,t)}function Dl(e,t){return Dr.get(it.p).completionProvider.register(e,t)}function Nl(e,t){return Dr.get(it.p).colorProvider.register(e,t)}function El(e,t){return Dr.get(it.p).foldingRangeProvider.register(e,t)}function Tl(e,t){return Dr.get(it.p).declarationProvider.register(e,t)}function Il(e,t){return Dr.get(it.p).selectionRangeProvider.register(e,t)}function Ml(e,t){return Dr.get(it.p).documentSemanticTokensProvider.register(e,t)}function Al(e,t){return Dr.get(it.p).documentRangeSemanticTokensProvider.register(e,t)}function Rl(e,t){return Dr.get(it.p).inlineCompletionsProvider.register(e,t)}function Ol(e,t){return Dr.get(it.p).inlineEditProvider.register(e,t)}function Pl(e,t){return Dr.get(it.p).inlayHintsProvider.register(e,t)}var Fl=i(37806);o.BH.wrappingIndent.defaultValue=0,o.BH.glyphMargin.defaultValue=!1,o.BH.autoIndent.defaultValue=3,o.BH.overviewRulerLanes.defaultValue=2,Fl.xC.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Bl=(0,r.O)();Bl.editor={create:la,getEditors:ca,getDiffEditors:ua,onDidCreateEditor:da,onDidCreateDiffEditor:ha,createDiffEditor:ga,addCommand:ma,addEditorAction:fa,addKeybindingRule:_a,addKeybindingRules:va,createModel:ba,setModelLanguage:Ca,setModelMarkers:ya,getModelMarkers:Sa,removeAllMarkers:wa,onDidChangeMarkers:xa,getModels:ka,getModel:La,onDidCreateModel:Da,onWillDisposeModel:Na,onDidChangeModelLanguage:Ea,createWebWorker:Ta,colorizeElement:Ia,colorize:Ma,colorizeModelLine:Aa,tokenize:Ra,defineTheme:Oa,setTheme:Pa,remeasureFonts:Fa,registerCommand:Ba,registerLinkOpener:Va,registerEditorOpener:Wa,AccessibilitySupport:D.ao,ContentWidgetPositionPreference:D.r3,CursorChangeReason:D.Vi,DefaultEndOfLine:D._x,EditorAutoIndentStrategy:D.rf,EditorOption:D.wT,EndOfLinePreference:D.gm,EndOfLineSequence:D.jl,MinimapPosition:D.F5,MinimapSectionHeaderStyle:D.WG,MouseTargetType:D.MG,OverlayWidgetPositionPreference:D.E$,OverviewRulerLane:D.sh,GlyphMarginLane:D.U,RenderLineNumbersType:D.Lu,RenderMinimap:D.vQ,ScrollbarVisibility:D.g_,ScrollType:D.g4,TextEditorCursorBlinkingStyle:D.In,TextEditorCursorStyle:D.d2,TrackedRangeStickiness:D.OI,WrappingIndent:D.up,InjectedTextCursorStops:D.RM,PositionAffinity:D.py,ShowLightbulbIconMode:D.$r,ConfigurationChangedEvent:o.Bb,BareFontInfo:v.E4,FontInfo:v.pR,TextModelResolvedOptions:L.dJ,FindMatch:L.tk,ApplyUpdateResult:o.rk,EditorZoom:_.C,createMultiFileDiffEditor:pa,EditorType:b.g,EditorOptions:o.BH},Bl.languages={register:Za,getLanguages:Qa,onLanguage:Ja,onLanguageEncountered:el,getEncodedLanguageId:Xa,setLanguageConfiguration:tl,setColorMap:ol,registerTokensProviderFactory:al,setTokensProvider:ll,setMonarchTokensProvider:dl,registerReferenceProvider:hl,registerRenameProvider:cl,registerNewSymbolNameProvider:ul,registerCompletionItemProvider:Dl,registerSignatureHelpProvider:gl,registerHoverProvider:pl,registerDocumentSymbolProvider:ml,registerDocumentHighlightProvider:fl,registerLinkedEditingRangeProvider:_l,registerDefinitionProvider:vl,registerImplementationProvider:bl,registerTypeDefinitionProvider:Cl,registerCodeLensProvider:yl,registerCodeActionProvider:wl,registerDocumentFormattingEditProvider:Sl,registerDocumentRangeFormattingEditProvider:xl,registerOnTypeFormattingEditProvider:Ll,registerLinkProvider:kl,registerColorProvider:Nl,registerFoldingRangeProvider:El,registerDeclarationProvider:Tl,registerSelectionRangeProvider:Il,registerDocumentSemanticTokensProvider:Ml,registerDocumentRangeSemanticTokensProvider:Al,registerInlineCompletionsProvider:Rl,registerInlineEditProvider:Ol,registerInlayHintsProvider:Pl,DocumentHighlightKind:D.MY,CompletionItemKind:D.cm,CompletionItemTag:D.we,CompletionItemInsertTextRule:D.a7,SymbolKind:D.cR,SymbolTag:D.r4,IndentAction:D.wU,CompletionTriggerKind:D.Ij,SignatureHelpTriggerKind:D.WW,InlayHintKind:D.gl,InlineCompletionTriggerKind:D.bw,InlineEditTriggerKind:D.rn,CodeActionTriggerType:D.np,NewSymbolNameTag:D.w,PartialAcceptTriggerKind:D.NA,FoldingRangeKind:C.AD,SelectedSuggestionInfo:C.ln};const Vl=Bl.CancellationTokenSource,Wl=Bl.Emitter,Hl=Bl.KeyCode,zl=Bl.KeyMod,jl=Bl.Position,Ul=Bl.Range,Kl=Bl.Selection,ql=Bl.SelectionDirection,$l=Bl.MarkerSeverity,Gl=Bl.MarkerTag,Yl=Bl.Uri,Zl=Bl.Token,Ql=Bl.editor,Xl=Bl.languages,Jl=globalThis.MonacoEnvironment;((null===Jl||void 0===Jl?void 0:Jl.globalAPI)||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Bl),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var ed;i(67709),i(41777),i(26525),i(52016),i(7067),i(86543),i(59134),i(65340),i(7389),i(66493),i(12867),i(78859),i(94385),i(80198),i(39019),i(33693),i(76434),i(16842),i(14983),i(61466),i(56454),i(76799),i(29679),i(47281),i(13078),i(55799),i(83443),i(45115),i(41645),i(82686),i(54205),i(86703),i(1072),i(902),i(72107),i(30539),i(66405),i(45189),i(81888),i(13162),i(31518),i(60601),i(78626),i(13763),i(6581),i(44758),i(35281),i(97611),i(63874),i(29075),i(51083),i(97810),i(22920),i(89045),i(14366),i(54872),i(66333),i(34789),i(64646),i(31e3),i(94380),i(87133),i(87259),i(47526),i(30408),i(10211),i(55167),i(89673),i(56536),i(17535),i(21914),i(63235),i(70600),i(8940),i(187),i(92176),i(86394),i(59280),i(79397),i(6174),i(13536),i(7717),i(32434),i(19736),i(91063);self.MonacoEnvironment=(ed={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var n=i.p,s=(n?n.replace(/\/$/,"")+"/":"")+ed[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var o=String(window.location),r=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,r.length)!==r){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var a=new Blob(["/*"+t+'*/importScripts("'+s+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return s}});const td=n},27748:(e,t,i)=>{"use strict";i.d(t,{$W:()=>m,Dt:()=>g,G6:()=>c,MG:()=>u,Pf:()=>d,i7:()=>h,ie:()=>r,uB:()=>o,vU:()=>l});var n=i(11801);class s{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function o(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function r(e){return s.INSTANCE.getZoomFactor(e)}s.INSTANCE=new s;const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,d=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,c=!h&&a.indexOf("Safari")>=0,u=!h&&!c&&d,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof n.E.matchMedia){const e=n.E.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.E.matchMedia("(display-mode: fullscreen)");p=e.matches,o(n.E,e,(e=>{let{matches:i}=e;p&&t.matches||(p=i)}))}function m(){return p}},81068:(e,t,i)=>{"use strict";i.d(t,{D:()=>r});var n=i(27748),s=i(11801),o=i(90388);const r={clipboard:{writeText:o.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.tY||n.$W()?0:navigator.keyboard||n.G6?1:2,touch:"ontouchstart"in s.E||navigator.maxTouchPoints>0,pointerEvents:s.E.PointerEvent&&("ontouchstart"in s.E||navigator.maxTouchPoints>0)}},37405:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(90255).v.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},76595:(e,t,i)=>{"use strict";i.d(t,{$:()=>Oe,$Z:()=>Fe,Ay:()=>te,Ce:()=>Te,Cp:()=>Be,D6:()=>W,Dx:()=>V,FK:()=>G,GQ:()=>M,H9:()=>ne,I8:()=>q,If:()=>Y,Jc:()=>L,Jj:()=>_,N5:()=>be,OO:()=>ee,PO:()=>D,R3:()=>Ee,Ro:()=>z,Uh:()=>Ve,V3:()=>We,WN:()=>re,XT:()=>Ue,Xo:()=>x,ZY:()=>y,_0:()=>Le,_F:()=>Ke,_h:()=>je,_q:()=>$e,aU:()=>le,b5:()=>se,cl:()=>we,dS:()=>he,dp:()=>U,e4:()=>Ne,ed:()=>w,eg:()=>Ge,ey:()=>k,fk:()=>fe,go:()=>De,h:()=>Ze,i:()=>K,iJ:()=>Pe,jL:()=>P,jg:()=>Q,jt:()=>He,lI:()=>O,mc:()=>Ie,mu:()=>I,ne:()=>F,nm:()=>E,sQ:()=>qe,se:()=>A,tw:()=>ye,uN:()=>_e,uP:()=>oe,uU:()=>X,vL:()=>xe,vY:()=>ie,vd:()=>Ce,vx:()=>R,w:()=>$,wY:()=>ze,wn:()=>Z,xQ:()=>j,zB:()=>Se});var n=i(27748),s=i(81068),o=i(10381),r=i(65179),a=i(53372),l=i(16015),d=i(39706),h=i(20707),c=i(53186),u=i(32060),g=i(90388),p=i(95075),m=i(11801);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:b,getWindowsCount:C,getWindowId:y,getWindowById:w,hasWindow:S,onDidRegisterWindow:x,onWillUnregisterWindow:L,onDidUnregisterWindow:k}=function(){const e=new Map;(0,m.H)(m.E,1);const t={window:m.E,disposables:new c.SL};e.set(m.E.vscodeWindowId,t);const i=new d.Q5,n=new d.Q5,s=new d.Q5;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:s.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return c.JT.None;const o=new c.SL,r={window:t,disposables:o.add(new c.SL)};return e.set(t.vscodeWindowId,r),o.add((0,c.OF)((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),o.add(E(t,ye.BEFORE_UNLOAD,(()=>{s.fire(t)}))),i.fire(r),o},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){const s="number"===typeof i?e.get(i):void 0;return null!==s&&void 0!==s?s:n?t:void 0},getWindow(e){var t;const i=e;if(null===(t=null===i||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null===n||void 0===n?void 0:n.view)?n.view.window:m.E},getDocument:e=>_(e).document}}();function D(e){for(;e.firstChild;)e.firstChild.remove()}class N{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function E(e,t,i,n){return new N(e,t,i,n)}function T(e,t){return function(i){return t(new r.n(e,i))}}const I=function(e,t,i,n){let s=i;return"click"===t||"mousedown"===t?s=T(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(s=function(e){return function(t){return e(new o.y(t))}}(i)),E(e,t,s,n)},M=function(e,t,i){return function(e,t,i){return E(e,g.gn&&s.D.pointerEvents?ye.POINTER_DOWN:ye.MOUSE_DOWN,t,i)}(e,T(_(e),t),i)};function A(e,t,i){return(0,a.y5)(e,t,i)}class R extends a.hF{constructor(e,t){super(e,t)}}let O,P;class F extends a.zh{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!==i&&void 0!==i?i:this.defaultTarget)}}class B{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function V(e){return _(e).getComputedStyle(e,null)}function W(e,t){const i=_(e),n=i.document;if(e!==n.body)return new z(e.clientWidth,e.clientHeight);if(g.gn&&(null===i||void 0===i?void 0:i.visualViewport))return new z(i.visualViewport.width,i.visualViewport.height);if((null===i||void 0===i?void 0:i.innerWidth)&&i.innerHeight)return new z(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new z(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new z(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return W(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,n=new Map,s=s=>{var o;i.set(s,!1);const r=null!==(o=e.get(s))&&void 0!==o?o:[];for(t.set(s,r),e.set(s,[]),n.set(s,!0);r.length>0;){r.sort(B.sort);r.shift().execute()}n.set(s,!1)};P=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=y(t),a=new B(n,o);let l=e.get(r);return l||(l=[],e.set(r,l)),l.push(a),i.get(r)||(i.set(r,!0),t.requestAnimationFrame((()=>s(r)))),a},O=(e,i,s)=>{const o=y(e);if(n.get(o)){const e=new B(i,s);let n=t.get(o);return n||(n=[],t.set(o,n)),n.push(e),e}return P(e,i,s)}}();class H{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=V(e),s=n?n.getPropertyValue(t):"0";return H.convertToPixels(e,s)}static getBorderLeftWidth(e){return H.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return H.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return H.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return H.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return H.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return H.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return H.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return H.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return H.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return H.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return H.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return H.getDimension(e,"margin-bottom","marginBottom")}}class z{constructor(e,t){this.width=e,this.height=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.width,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.height;return e!==this.width||t!==this.height?new z(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof z?e:new z(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function j(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const s=J(e)?null:V(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=H.getBorderLeftWidth(e),i+=H.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function U(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function K(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function q(e){let t=e,i=1;do{const e=V(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function $(e){const t=H.getMarginLeft(e)+H.getMarginRight(e);return e.offsetWidth+t}function G(e){const t=H.getBorderLeftWidth(e)+H.getBorderRightWidth(e),i=H.getPaddingLeft(e)+H.getPaddingRight(e);return e.offsetWidth-t-i}function Y(e){const t=H.getBorderTopWidth(e)+H.getBorderBottomWidth(e),i=H.getPaddingTop(e)+H.getPaddingBottom(e);return e.offsetHeight-t-i}function Z(e){const t=H.getMarginTop(e)+H.getMarginBottom(e);return e.offsetHeight+t}function Q(e,t){return Boolean(null===t||void 0===t?void 0:t.contains(e))}function X(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(var t;e.parentNode;){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=oe().activeElement;for(;null===e||void 0===e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ne(e){return ie()===e}function se(e){return Q(ie(),e)}function oe(){var e;if(C()<=1)return m.E.document;return null!==(e=Array.from(b()).map((e=>{let{window:t}=e;return t.document})).find((e=>e.hasFocus())))&&void 0!==e?e:m.E.document}function re(){var e,t;return null!==(t=null===(e=oe().defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:m.E}z.None=new z(0,0);const ae=new Map;function le(){return new de}class de{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.E.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.E.document.head,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;const n=document.createElement("style");if(n.type="text/css",n.media="screen",null===t||void 0===t||t(n),e.appendChild(n),i&&i.add((0,c.OF)((()=>e.removeChild(n)))),e===m.E.document.head){const e=new Set;ae.set(n,e);for(const{window:t,disposables:s}of b()){if(t===m.E)continue;const o=s.add(ce(n,e,t));null===i||void 0===i||i.add(o)}}return n}function ce(e,t,i){var n,s;const o=new c.SL,r=e.cloneNode(!0);i.document.head.appendChild(r),o.add((0,c.OF)((()=>i.document.head.removeChild(r))));for(const a of me(e))null===(n=r.sheet)||void 0===n||n.insertRule(a.cssText,null===(s=r.sheet)||void 0===s?void 0:s.cssRules.length);return o.add(ue.observe(e,o,{childList:!0})((()=>{r.textContent=e.textContent}))),t.add(r),o.add((0,c.OF)((()=>t.delete(r)))),o}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const s=(0,p.vp)(i);let o=n.get(s);if(o)o.users+=1;else{const r=new d.Q5,a=new MutationObserver((e=>r.fire(e)));a.observe(e,i);const l=o={users:1,observer:a,onDidMutate:r.event};t.add((0,c.OF)((()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),null===n||void 0===n||n.delete(s),0===(null===n||void 0===n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(s,o)}return o.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){var t,i;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null===e||void 0===e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function fe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pe();var n,s;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(s=ae.get(i))&&void 0!==s?s:[])fe(e,t,n)}}function _e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe();var i,n;if(!t)return;const s=me(t),o=[];for(let r=0;r<s.length;r++){const t=s[r];ve(t)&&-1!==t.selectorText.indexOf(e)&&o.push(r)}for(let r=o.length-1;r>=0;r--)null===(i=t.sheet)||void 0===i||i.deleteRule(o[r]);for(const r of null!==(n=ae.get(t))&&void 0!==n?n:[])_e(e,r)}function ve(e){return"string"===typeof e.selectorText}function be(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function Ce(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const ye={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Pf?"webkitAnimationIteration":"animationiteration"};function we(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Se={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function xe(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function Le(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ke extends c.JT{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=te(e);return Q(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return Q(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new d.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.Q5),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,(e instanceof HTMLElement?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?s():n())},this._register(E(e,ye.FOCUS,n,!0)),this._register(E(e,ye.BLUR,s,!0)),e instanceof HTMLElement&&(this._register(E(e,ye.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(E(e,ye.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function De(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ee(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(e.append(...i),1===i.length&&"string"!==typeof i[0])return i[0]}function Te(e,t){return e.insertBefore(t,e.firstChild),t}function Ie(e){e.innerText="";for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];Ee(e,...i)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ae;function Re(e,t,i){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const s=n[1]||"div";let o;o=e!==Ae.HTML?document.createElementNS(e,s):document.createElement(s),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((e=>{let[t,i]=e;"undefined"!==typeof i&&(/^on\w+$/.test(t)?o[t]=i:"selected"===t?i&&o.setAttribute(t,"true"):o.setAttribute(t,i))}));for(var r=arguments.length,a=new Array(r>3?r-3:0),l=3;l<r;l++)a[l-3]=arguments[l];return o.append(...a),o}function Oe(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return Re(Ae.HTML,e,t,...n)}function Pe(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];e?Fe(...i):Be(...i)}function Fe(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const n of t)n.style.display="",n.removeAttribute("aria-hidden")}function Be(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const n of t)n.style.display="none",n.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function We(e){m.E.open(e,"_blank","noopener")}function He(e,t){const i=()=>{t(),n=P(e,i)};let n=P(e,i);return(0,c.OF)((()=>n.dispose()))}function ze(e){return e?`url('${u.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function je(e){return`'${e.replace(/'/g,"%27")}'`}function Ue(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ue(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Ke(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=document.createElement("a");return h.v5("afterSanitizeAttributes",(n=>{for(const s of["href","src"])if(n.hasAttribute(s)){const o=n.getAttribute(s);if("href"===s&&o.startsWith("#"))continue;if(i.href=o,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===s&&i.href.startsWith("data:"))continue;n.removeAttribute(s)}}})),(0,c.OF)((()=>{h.ok("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Ae||(Ae={})),Oe.SVG=function(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return Re(Ae.SVG,e,t,...n)},u.WX.setPreferredWebSchema(/^https:/.test(m.E.location.href)?"https":"http");const qe=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class $e extends d.Q5{constructor(){super(),this._subscriptions=new c.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(d.ju.runAndSubscribe(x,(e=>{let{window:t,disposables:i}=e;return this.registerListeners(t,i)}),{window:m.E,disposables:this._subscriptions}))}registerListeners(e,t){t.add(E(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new o.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(E(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(E(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(E(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(E(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(E(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return $e.instance||($e.instance=new $e),$e.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Ge extends c.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(E(this.element,ye.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(E(this.element,ye.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(E(this.element,ye.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(E(this.element,ye.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(E(this.element,ye.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(E(this.element,ye.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(E(this.element,ye.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Ye=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Ze(e){let t,i;Array.isArray(arguments.length<=1?void 0:arguments[1])?(t={},i=arguments.length<=1?void 0:arguments[1]):(t=(arguments.length<=1?void 0:arguments[1])||{},i=arguments.length<=2?void 0:arguments[2]);const n=Ye.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const s=n.groups.tag||"div",o=document.createElement(s);n.groups.id&&(o.id=n.groups.id);const r=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&r.push(l);if(void 0!==t.className)for(const l of t.className.split("."))""!==l&&r.push(l);r.length>0&&(o.className=r.join(" "));const a={};if(n.groups.name&&(a[n.groups.name]=o),i)for(const l of i)l instanceof HTMLElement?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(a,l),o.appendChild(l.root));for(const[l,d]of Object.entries(t))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(d))o.style.setProperty(Qe(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=d:o.setAttribute(Qe(l),d.toString());return a.root=o,a}function Qe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},20707:(e,t,i)=>{"use strict";i.d(t,{Nw:()=>J,ok:()=>te,v5:()=>ee});const{entries:n,setPrototypeOf:s,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:d,create:h}=Object,{apply:c,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e,t,i){return e.apply(t,i)}),l||(l=function(e){return e}),d||(d=function(e){return e}),u||(u=function(e,t){return new e(...t)});const g=L(Array.prototype.forEach),p=L(Array.prototype.pop),m=L(Array.prototype.push),f=L(String.prototype.toLowerCase),_=L(String.prototype.toString),v=L(String.prototype.match),b=L(String.prototype.replace),C=L(String.prototype.indexOf),y=L(String.prototype.trim),w=L(RegExp.prototype.test),S=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(x,t)});var x;function L(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return c(e,t,n)}}function k(e,t,i){var n;i=null!==(n=i)&&void 0!==n?n:f,s&&s(e,null);let r=t.length;for(;r--;){let n=t[r];if("string"===typeof n){const e=i(n);e!==n&&(o(t)||(t[r]=e),n=e)}e[n]=!0}return e}function D(e){const t=h(null);for(const[i,s]of n(e))t[i]=s;return t}function N(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return L(i.get);if("function"===typeof i.value)return L(i.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const E=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=l(["#text"]),P=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),F=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=d(/<%[\w\W]*|[\w\W]*%>/gm),z=d(/\${[\w\W]*}/gm),j=d(/^data-[\-\w.\u00B7-\uFFFF]/),U=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=d(/^(?:\w+script|data):/i),$=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=d(/^html$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:H,TMPLIT_EXPR:z,DATA_ATTR:j,ARIA_ATTR:U,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:G});const Z=()=>"undefined"===typeof window?null:window,Q=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}};var X=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const i=t=>e(t);if(i.version="3.0.5",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;const s=t.document,o=s.currentScript;let{document:r}=t;const{DocumentFragment:a,HTMLTemplateElement:d,Node:h,Element:c,NodeFilter:u,NamedNodeMap:x=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:W,trustedTypes:H}=t,z=c.prototype,j=N(z,"cloneNode"),U=N(z,"nextSibling"),q=N(z,"childNodes"),$=N(z,"parentNode");if("function"===typeof d){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let X,J="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ie,getElementsByTagName:ne}=r,{importNode:se}=s;let oe={};i.isSupported="function"===typeof n&&"function"===typeof $&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:re,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:de,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:ue}=Y;let{IS_ALLOWED_URI:ge}=Y,pe=null;const me=k({},[...E,...T,...I,...A,...O]);let fe=null;const _e=k({},[...P,...F,...B,...V]);let ve=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,Ce=null,ye=!0,we=!0,Se=!1,xe=!0,Le=!1,ke=!1,De=!1,Ne=!1,Ee=!1,Te=!1,Ie=!1,Me=!0,Ae=!1,Re=!0,Oe=!1,Pe={},Fe=null;const Be=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const We=k({},["audio","video","img","source","image","track"]);let He=null;const ze=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),je="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let qe=Ke,$e=!1,Ge=null;const Ye=k({},[je,Ue,Ke],_);let Ze;const Qe=["application/xhtml+xml","text/html"];let Xe,Je=null;const et=r.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},it=function(e){if(!Je||Je!==e){if(e&&"object"===typeof e||(e={}),e=D(e),Ze=Ze=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===Ze?_:f,pe="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS,Xe):me,fe="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR,Xe):_e,Ge="ALLOWED_NAMESPACES"in e?k({},e.ALLOWED_NAMESPACES,_):Ye,He="ADD_URI_SAFE_ATTR"in e?k(D(ze),e.ADD_URI_SAFE_ATTR,Xe):ze,Ve="ADD_DATA_URI_TAGS"in e?k(D(We),e.ADD_DATA_URI_TAGS,Xe):We,Fe="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS,Xe):Be,be="FORBID_TAGS"in e?k({},e.FORBID_TAGS,Xe):{},Ce="FORBID_ATTR"in e?k({},e.FORBID_ATTR,Xe):{},Pe="USE_PROFILES"in e&&e.USE_PROFILES,ye=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Ae=e.SANITIZE_NAMED_PROPS||!1,Re=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||K,qe=e.NAMESPACE||Ke,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(we=!1),Te&&(Ee=!0),Pe&&(pe=k({},[...O]),fe=[],!0===Pe.html&&(k(pe,E),k(fe,P)),!0===Pe.svg&&(k(pe,T),k(fe,F),k(fe,V)),!0===Pe.svgFilters&&(k(pe,I),k(fe,F),k(fe,V)),!0===Pe.mathMl&&(k(pe,A),k(fe,B),k(fe,V))),e.ADD_TAGS&&(pe===me&&(pe=D(pe)),k(pe,e.ADD_TAGS,Xe)),e.ADD_ATTR&&(fe===_e&&(fe=D(fe)),k(fe,e.ADD_ATTR,Xe)),e.ADD_URI_SAFE_ATTR&&k(He,e.ADD_URI_SAFE_ATTR,Xe),e.FORBID_CONTENTS&&(Fe===Be&&(Fe=D(Fe)),k(Fe,e.FORBID_CONTENTS,Xe)),Re&&(pe["#text"]=!0),ke&&k(pe,["html","head","body"]),pe.table&&(k(pe,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=e.TRUSTED_TYPES_POLICY,J=X.createHTML("")}else void 0===X&&(X=Q(H,o)),null!==X&&"string"===typeof J&&(J=X.createHTML(""));l&&l(e),Je=e}},nt=k({},["mi","mo","mn","ms","mtext"]),st=k({},["foreignobject","desc","title","annotation-xml"]),ot=k({},["title","style","font","a","script"]),rt=k({},T);k(rt,I),k(rt,M);const at=k({},A);k(at,R);const lt=function(e){m(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},dt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!fe[e])if(Ee||Te)try{lt(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},ht=function(e){let t,i;if(Ne)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Ze&&qe===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=X?X.createHTML(e):e;if(qe===Ke)try{t=(new W).parseFromString(n,Ze)}catch(o){}if(!t||!t.documentElement){t=ee.createDocument(qe,"template",null);try{t.documentElement.innerHTML=$e?J:n}catch(o){}}const s=t.body||t.documentElement;return e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),qe===Ke?ne.call(t,ke?"html":"body")[0]:ke?t.documentElement:s},ct=function(e){return te.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ut=function(e){return"object"===typeof h?e instanceof h:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},gt=function(e,t,n){oe[e]&&g(oe[e],(e=>{e.call(i,t,n,Je)}))},pt=function(e){let t;if(gt("beforeSanitizeElements",e,null),(n=e)instanceof L&&("string"!==typeof n.nodeName||"string"!==typeof n.textContent||"function"!==typeof n.removeChild||!(n.attributes instanceof x)||"function"!==typeof n.removeAttribute||"function"!==typeof n.setAttribute||"string"!==typeof n.namespaceURI||"function"!==typeof n.insertBefore||"function"!==typeof n.hasChildNodes))return lt(e),!0;var n;const s=Xe(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:s,allowedTags:pe}),e.hasChildNodes()&&!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return lt(e),!0;if(!pe[s]||be[s]){if(!be[s]&&ft(s)){if(ve.tagNameCheck instanceof RegExp&&w(ve.tagNameCheck,s))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(s))return!1}if(Re&&!Fe[s]){const t=$(e)||e.parentNode,i=q(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n)t.insertBefore(j(i[n],!0),U(e))}}return lt(e),!0}return e instanceof c&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:qe,tagName:"template"});const i=f(e.tagName),n=f(t.tagName);return!!Ge[e.namespaceURI]&&(e.namespaceURI===Ue?t.namespaceURI===Ke?"svg"===i:t.namespaceURI===je?"svg"===i&&("annotation-xml"===n||nt[n]):Boolean(rt[i]):e.namespaceURI===je?t.namespaceURI===Ke?"math"===i:t.namespaceURI===Ue?"math"===i&&st[n]:Boolean(at[i]):e.namespaceURI===Ke?!(t.namespaceURI===Ue&&!st[n])&&!(t.namespaceURI===je&&!nt[n])&&!at[i]&&(ot[i]||!rt[i]):!("application/xhtml+xml"!==Ze||!Ge[e.namespaceURI]))}(e)?(lt(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=b(t,re," "),t=b(t,ae," "),t=b(t,le," "),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(lt(e),!0)},mt=function(e,t,i){if(Me&&("id"===t||"name"===t)&&(i in r||i in et))return!1;if(we&&!Ce[t]&&w(de,t));else if(ye&&w(he,t));else if(!fe[t]||Ce[t]){if(!(ft(e)&&(ve.tagNameCheck instanceof RegExp&&w(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&w(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&w(ve.tagNameCheck,i)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(i))))return!1}else if(He[t]);else if(w(ge,b(i,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(i,"data:")||!Ve[e]){if(Se&&!w(ce,b(i,ue,"")));else if(i)return!1}else;return!0},ft=function(e){return e.indexOf("-")>0},_t=function(e){let t,n,s,o;gt("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:fe};for(o=r.length;o--;){t=r[o];const{name:d,namespaceURI:h}=t;if(n="value"===d?t.value:y(t.value),s=Xe(d),a.attrName=s,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(dt(d,e),!a.keepAttr)continue;if(!xe&&w(/\/>/i,n)){dt(d,e);continue}Le&&(n=b(n,re," "),n=b(n,ae," "),n=b(n,le," "));const c=Xe(e.nodeName);if(mt(c,s,n)){if(!Ae||"id"!==s&&"name"!==s||(dt(d,e),n="user-content-"+n),X&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(h);else switch(H.getAttributeType(c,s)){case"TrustedHTML":n=X.createHTML(n);break;case"TrustedScriptURL":n=X.createScriptURL(n)}try{h?e.setAttributeNS(h,d,n):e.setAttribute(d,n),p(i.removed)}catch(l){}}}gt("afterSanitizeAttributes",e,null)},vt=function e(t){let i;const n=ct(t);for(gt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)gt("uponSanitizeShadowNode",i,null),pt(i)||(i.content instanceof a&&e(i.content),_t(i));gt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t,n,o,r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($e=!e,$e&&(e="\x3c!--\x3e"),"string"!==typeof e&&!ut(e)){if("function"!==typeof e.toString)throw S("toString is not a function");if("string"!==typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!i.isSupported)return e;if(De||it(l),i.removed=[],"string"===typeof e&&(Oe=!1),Oe){if(e.nodeName){const t=Xe(e.nodeName);if(!pe[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)t=ht("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Ee&&!Le&&!ke&&-1===e.indexOf("<"))return X&&Ie?X.createHTML(e):e;if(t=ht(e),!t)return Ee?null:Ie?J:""}t&&Ne&<(t.firstChild);const d=ct(Oe?e:t);for(;o=d.nextNode();)pt(o)||(o.content instanceof a&&vt(o.content),_t(o));if(Oe)return e;if(Ee){if(Te)for(r=ie.call(t.ownerDocument);t.firstChild;)r.appendChild(t.firstChild);else r=t;return(fe.shadowroot||fe.shadowrootmode)&&(r=se.call(s,r,!0)),r}let c=ke?t.outerHTML:t.innerHTML;return ke&&pe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&w(G,t.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+c),Le&&(c=b(c,re," "),c=b(c,ae," "),c=b(c,le," ")),X&&Ie?X.createHTML(c):c},i.setConfig=function(e){it(e),De=!0},i.clearConfig=function(){Je=null,De=!1},i.isValidAttribute=function(e,t,i){Je||it({});const n=Xe(e),s=Xe(t);return mt(n,s,i)},i.addHook=function(e,t){"function"===typeof t&&(oe[e]=oe[e]||[],m(oe[e],t))},i.removeHook=function(e){if(oe[e])return p(oe[e])},i.removeHooks=function(e){oe[e]&&(oe[e]=[])},i.removeAllHooks=function(){oe={}},i}();X.version,X.isSupported;const J=X.sanitize,ee=(X.setConfig,X.clearConfig,X.isValidAttribute,X.addHook),te=X.removeHook;X.removeHooks,X.removeAllHooks},24199:(e,t,i)=>{"use strict";i.d(t,{Y:()=>s});var n=i(39706);class s{get event(){return this.emitter.event}constructor(e,t,i){const s=e=>this.emitter.fire(e);this.emitter=new n.Q5({onWillAddFirstListener:()=>e.addEventListener(t,s,i),onDidRemoveLastListener:()=>e.removeEventListener(t,s,i)})}dispose(){this.emitter.dispose()}}},75816:(e,t,i)=>{"use strict";i.d(t,{X:()=>o,Z:()=>n});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=s(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=s(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=s(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=s(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=s(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=s(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=s(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=s(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=s(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=s(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=s(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function s(e){return"number"===typeof e?`${e}px`:e}function o(e){return new n(e)}},90030:(e,t,i)=>{"use strict";i.d(t,{BO:()=>o,IY:()=>s,az:()=>r});var n=i(76595);function s(e){const t=r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return t.textContent=e,t}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=r(t);return l(i,function(e,t){const i={type:1,children:[]};let n=0,s=i;const o=[],r=new a(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==h(r.peek(),t);if(i&&(e=r.next()),!i&&d(e,t)&&e===r.peek()){r.advance(),2===s.type&&(s=o.pop());const i=h(e,t);if(s.type===i||5===s.type&&6===i)s=o.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),s.children.push(e),o.push(s),s=e}}else if("\n"===e)2===s.type&&(s=o.pop()),s.children.push({type:8});else if(2!==s.type){const t={type:2,content:e};s.children.push(t),o.push(s),s=t}else s.content+=e}2===s.type&&(s=o.pop());o.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,s){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&s)o=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(n.mu(e,"click",(e=>{i.callback(String(t.index),e)}))),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach((e=>{l(o,e,i,s)}))}function d(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},21406:(e,t,i)=>{"use strict";i.d(t,{C:()=>o});var n=i(76595),s=i(53186);class o{constructor(){this._hooks=new s.SL,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,o,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=o,this._onStopCallback=r;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,s.OF)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(l){a=n.Jj(e)}this._hooks.add(n.nm(a,n.tw.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(n.nm(a,n.tw.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},10381:(e,t,i)=>{"use strict";i.d(t,{y:()=>d});var n=i(27748),s=i(17344),o=i(91811),r=i(90388);const a=r.dz?256:2048,l=r.dz?2048:256;class d{constructor(e){var t;this._standardKeyboardEventBrand=!0;const i=e;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=null===(t=i.getModifierState)||void 0===t?void 0:t.call(i,"AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return s.kL.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.vU)switch(t){case 59:return 85;case 60:if(r.IJ)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(r.dz)return 57}else if(n.Pf){if(r.dz&&93===t)return 57;if(!r.dz&&92===t)return 57}return s.H_[t]||0}(i),this.code=i.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.$M(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},16315:(e,t,i)=>{"use strict";i.d(t,{ap:()=>k,et:()=>I});var n=i(76595),s=i(20707),o=i(24199),r=i(90030),a=i(10381),l=i(65179),d=i(27691),h=i(16015),c=i(39706),u=i(73971),g=i(77048),p=i(30441),m=i(20447),f=i(53186);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function n(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},h=function(e){return d[e]};function c(e,t){if(t){if(o.test(e))return e.replace(r,h)}else if(a.test(e))return e.replace(l,h);return e}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;function m(e,t){e="string"===typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var f=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,i){if(e){var n;try{n=decodeURIComponent(g(i)).replace(f,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!_.test(i)&&(i=function(e,t){b[" "+e]||(C.test(e)?b[" "+e]=e+"/":b[" "+e]=k(e,"/",!0));var i=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(w,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i}var b={},C=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,w=/^([^:]+:\/*[^/]*)[\s\S]*$/,S={exec:function(){}};function x(e){for(var t,i,n=1;n<arguments.length;n++)for(i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}function L(e,t){var i=e.replace(/\|/g,(function(e,t,i){for(var n=!1,s=t;--s>=0&&"\\"===i[s];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function k(e,t,i){var n=e.length;if(0===n)return"";for(var s=0;s<n;){var o=e.charAt(n-s-1);if(o!==t||i){if(o===t||!i)break;s++}else s++}return e.slice(0,n-s)}function D(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function N(e,t){if(t<1)return"";for(var i="";t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function E(e,t,i,n){var s=t.href,o=t.title?c(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:s,title:o,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:s,title:o,text:c(r)}}var T=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:k(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=k(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,s,o,r,a,l,d,h,c,u,g,p,m=t[1].trim(),f=m.length>1,_={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=f?m:"[*+-]");for(var v=new RegExp("^( {0,3}"+m+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(i=t[0],e=e.substring(i.length),h=t[2].split("\n",1)[0],c=e.split("\n",1)[0],this.options.pedantic?(r=2,g=h.trimLeft()):(r=(r=t[2].search(/[^ ]/))>4?1:r,g=h.slice(r),r+=t[1].length),l=!1,!h&&/^ *$/.test(c)&&(i+=c+"\n",e=e.substring(c.length+1),p=!0),!p)for(var b=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),C=new RegExp("^ {0,"+Math.min(3,r-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,r-1)+"}#");e&&(h=u=e.split("\n",1)[0],this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(h))&&!w.test(h)&&!b.test(h)&&!C.test(e);){if(h.search(/[^ ]/)>=r||!h.trim())g+="\n"+h.slice(r);else{if(l)break;g+="\n"+h}l||h.trim()||(l=!0),i+=u+"\n",e=e.substring(u.length+1)}_.loose||(d?_.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==s[0],g=g.replace(/^\[[ xX]\] +/,"")),_.items.push({type:"list_item",raw:i,task:!!s,checked:o,loose:!1,text:g}),_.raw+=i}_.items[_.items.length-1].raw=i.trimRight(),_.items[_.items.length-1].text=g.trimRight(),_.raw=_.raw.trimRight();var S=_.items.length;for(a=0;a<S;a++){this.lexer.state.top=!1,_.items[a].tokens=this.lexer.blockTokens(_.items[a].text,[]);var x=_.items[a].tokens.filter((function(e){return"space"===e.type})),L=x.every((function(e){for(var t,i=0,s=n(e.raw.split(""));!(t=s()).done;)if("\n"===t.value&&(i+=1),i>1)return!0;return!1}));!_.loose&&x.length&&L&&(_.loose=!0,_.items[a].loose=!0)}return _}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):c(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:L(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,s,o,r,a=i.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(a=i.rows.length,n=0;n<a;n++)i.rows[n]=L(i.rows[n],i.header.length).map((function(e){return{text:e}}));for(a=i.header.length,s=0;s<a;s++)i.header[s].tokens=this.lexer.inline(i.header[s].text);for(a=i.rows.length,s=0;s<a;s++)for(r=i.rows[s],o=0;o<r.length;o++)r[o].tokens=this.lexer.inline(r[o].text);return i}}},i.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},i.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}},i.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},i.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:c(t[1])}},i.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):c(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;var n=k(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{var s=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var i=e.length,n=0,s=0;s<i;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&--n<0)return s;return-1}(t[2],"()");if(s>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(i)?r.slice(1):r.slice(1,-1)),E(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return E(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var s=n[1]||n[2]||"";if(!s||s&&(""===i||this.rules.inline.punctuation.exec(i))){var o,r,a=n[0].length-1,l=a,d=0,h="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=h.exec(t));)if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=o.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+d),Math.min(a,r)%2){var c=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:c,tokens:this.lexer.inlineTokens(c)}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u)}}}else d+=r}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=c(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,s=this.rules.inline.autolink.exec(e);if(s)return n="@"===s[2]?"mailto:"+(i=c(this.options.mangle?t(s[1]):s[1])):i=c(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,s;if("@"===i[2])s="mailto:"+(n=c(this.options.mangle?t(i[0]):i[0]));else{var o;do{o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(o!==i[0]);n=c(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):c(n[0]):n[0]:c(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),I={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:S,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};I.def=m(I.def).replace("label",I._label).replace("title",I._title).getRegex(),I.bullet=/(?:[*+-]|\d{1,9}[.)])/,I.listItemStart=m(/^( *)(bull) */).replace("bull",I.bullet).getRegex(),I.list=m(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex(),I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,I.html=m(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.blockquote=m(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=x({},I),I.gfm=x({},I.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.table=m(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.gfm.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",I.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.pedantic=x({},I.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:S,paragraph:m(I.normal._paragraph).replace("hr",I.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function A(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function R(e){var t,i,n="",s=e.length;for(t=0;t<s;t++)i=e.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}M._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",M.punctuation=m(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=m(I._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=m(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=m(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=m(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,M.autolink=m(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=m(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=m(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=m(M.reflink).replace("label",M._label).replace("ref",I._label).getRegex(),M.nolink=m(M.nolink).replace("ref",I._label).getRegex(),M.reflinkSearch=m(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=x({},M),M.pedantic=x({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=x({},M.normal,{escape:m(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),M.gfm.url=m(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=x({},M.gfm,{br:m(M.br).replace("{2,}","*").getRegex(),text:m(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var O=function(){function i(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new T,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var i={block:I.normal,inline:M.normal};this.options.pedantic?(i.block=I.pedantic,i.inline=M.pedantic):this.options.gfm&&(i.block=I.gfm,this.options.breaks?i.inline=M.breaks:i.inline=M.gfm),this.tokenizer.rules=i}i.lex=function(e,t){return new i(t).lex(e)},i.lexInline=function(e,t){return new i(t).inlineTokens(e)};var n,s,o,r=i.prototype;return r.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},r.blockTokens=function(e,t){var i,n,s,o,r=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,i){return t+" ".repeat(i.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(s=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"===typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(s)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),o=s.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},r.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},r.inlineTokens=function(e,t){var i,n,s,o=this;void 0===t&&(t=[]);var r,a,l,d=e;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(d));)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,r.index)+"["+N("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,r.index)+"["+N("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,r.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:o},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,d,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,R))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,R))){if(s=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;o.options.extensions.startInline.forEach((function(e){"number"===typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(s,A))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},n=i,o=[{key:"rules",get:function(){return{block:I,inline:M}}}],(s=null)&&t(n.prototype,s),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),P=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,n);null!=s&&s!==e&&(i=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+c(n,!0)+'">'+(i?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:c(e,!0))+"</code></pre>\n"},i.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+n.slug(i))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},i.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"},i.listitem=function(e){return"<li>"+e+"</li>\n"},i.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},i.paragraph=function(e){return"<p>"+e+"</p>\n"},i.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},i.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"</"+i+">\n"},i.strong=function(e){return"<strong>"+e+"</strong>"},i.em=function(e){return"<em>"+e+"</em>"},i.codespan=function(e){return"<code>"+e+"</code>"},i.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.del=function(e){return"<del>"+e+"</del>"},i.link=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<a href="'+c(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>"},i.image=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<img src="'+e+'" alt="'+i+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},i.text=function(e){return e},t}(),F=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),V=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new B}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,s,o,r,a,l,d,h,c,u,p,m,f,_,v,b,C,y,w="",S=e.length;for(i=0;i<S;i++)if(c=e[i],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(y=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(c.tokens),c.depth,g(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",o=c.header.length,n=0;n<o;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(d+=this.renderer.tablerow(l),h="",o=c.rows.length,n=0;n<o;n++){for(l="",r=(a=c.rows[n]).length,s=0;s<r;s++)l+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:c.align[s]});h+=this.renderer.tablerow(l)}w+=this.renderer.table(d,h);continue;case"blockquote":h=this.parse(c.tokens),w+=this.renderer.blockquote(h);continue;case"list":for(u=c.ordered,p=c.start,m=c.loose,o=c.items.length,h="",n=0;n<o;n++)v=(_=c.items[n]).checked,b=_.task,f="",_.task&&(C=this.renderer.checkbox(v),m?_.tokens.length>0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=C+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=C+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:C}):f+=C),f+=this.parse(_.tokens,m),h+=this.renderer.listitem(f,b,v);w+=this.renderer.list(h,u,p);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(h=c.tokens?this.parseInline(c.tokens):c.text;i+1<S&&"text"===e[i+1].type;)h+="\n"+((c=e[++i]).tokens?this.parseInline(c.tokens):c.text);w+=t?this.renderer.paragraph(h):h;continue;default:var x='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(x);throw new Error(x)}else w+=y||"";return w},i.parseInline=function(e,t){t=t||this.renderer;var i,n,s,o="",r=e.length;for(i=0;i<r;i++)if(n=e[i],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(s=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":case"text":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=s||"";return o},t}();function W(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(i=t,t=null),D(t=x({},W.defaults,t||{})),i){var n,s=t.highlight;try{n=O.lex(e,t)}catch(d){return i(d)}var o=function(e){var o;if(!e)try{t.walkTokens&&W.walkTokens(n,t.walkTokens),o=V.parse(n,t)}catch(d){e=d}return t.highlight=s,e?i(e):i(null,o)};if(!s||s.length<3)return o();if(delete t.highlight,!n.length)return o();var r=0;return W.walkTokens(n,(function(e){"code"===e.type&&(r++,setTimeout((function(){s(e.text,e.lang,(function(t,i){if(t)return o(t);null!=i&&i!==e.text&&(e.text=i,e.escaped=!0),0===--r&&o()}))}),0))})),void(0===r&&o())}function a(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+c(e.message+"",!0)+"</pre>";throw e}try{var l=O.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(W.walkTokens(l,t.walkTokens)).then((function(){return V.parse(l,t)})).catch(a);W.walkTokens(l,t.walkTokens)}return V.parse(l,t)}catch(d){a(d)}}W.options=W.setOptions=function(t){var i;return x(W.defaults,t),i=W.defaults,e.defaults=i,W},W.getDefaults=s,W.defaults=e.defaults,W.use=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,s=x.apply(void 0,[{}].concat(t)),o=W.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=W.defaults.renderer||new P,i=function(i){var n=t[i];t[i]=function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];var a=e.renderer[i].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.renderer)i(n);s.renderer=t}(),e.tokenizer&&function(){var t=W.defaults.tokenizer||new T,i=function(i){var n=t[i];t[i]=function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];var a=e.tokenizer[i].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.tokenizer)i(n);s.tokenizer=t}(),e.walkTokens){var t=W.defaults.walkTokens;s.walkTokens=function(i){var n=[];return n.push(e.walkTokens.call(this,i)),t&&(n=n.concat(t.call(this,i))),n}}n&&(s.extensions=o),W.setOptions(s)}))},W.walkTokens=function(e,t){for(var i,s=[],o=function(){var e=i.value;switch(s=s.concat(t.call(W,e)),e.type){case"table":for(var o,r=n(e.header);!(o=r()).done;){var a=o.value;s=s.concat(W.walkTokens(a.tokens,t))}for(var l,d=n(e.rows);!(l=d()).done;)for(var h,c=n(l.value);!(h=c()).done;){var u=h.value;s=s.concat(W.walkTokens(u.tokens,t))}break;case"list":s=s.concat(W.walkTokens(e.items,t));break;default:W.defaults.extensions&&W.defaults.extensions.childTokens&&W.defaults.extensions.childTokens[e.type]?W.defaults.extensions.childTokens[e.type].forEach((function(i){s=s.concat(W.walkTokens(e[i],t))})):e.tokens&&(s=s.concat(W.walkTokens(e.tokens,t)))}},r=n(e);!(i=r()).done;)o();return s},W.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");D(t=x({},W.defaults,t||{}));try{var i=O.lexInline(e,t);return t.walkTokens&&W.walkTokens(i,t.walkTokens),V.parseInline(i,t)}catch(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+c(n.message+"",!0)+"</pre>";throw n}},W.Parser=V,W.parser=V.parse,W.Renderer=P,W.TextRenderer=F,W.Lexer=O,W.lexer=O.lex,W.Tokenizer=T,W.Slugger=B,W.parse=W;var H=W.options,z=W.setOptions,j=W.use,U=W.walkTokens,K=W.parseInline,q=W,$=V.parse,G=O.lex;e.Lexer=O,e.Parser=V,e.Renderer=P,e.Slugger=B,e.TextRenderer=F,e.Tokenizer=T,e.getDefaults=s,e.lexer=G,e.marked=W,e.options=H,e.parse=q,e.parseInline=K,e.parser=$,e.setOptions=z,e.use=j,e.walkTokens=U,Object.defineProperty(e,"__esModule",{value:!0})},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Lexer||exports.Lexer,_.Parser||exports.Parser,_.Renderer||exports.Renderer,_.Slugger||exports.Slugger,_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.getDefaults||exports.getDefaults,_.lexer||exports.lexer;var v=_.marked||exports.marked,b=(_.options||exports.options,_.parse||exports.parse,_.parseInline||exports.parseInline,_.parser||exports.parser,_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(33080)),C=i(32060),y=i(53335),w=i(30506),S=i(78701),x=i(91387);const L=Object.freeze({image:(e,t,i)=>{let n=[],s=[];return e&&(({href:e,dimensions:n}=(0,u.v1)(e)),s.push(`src="${(0,u.d9)(e)}"`)),i&&s.push(`alt="${(0,u.d9)(i)}"`),t&&s.push(`title="${(0,u.d9)(t)}"`),n.length&&(s=s.concat(n)),"<img "+s.join(" ")+">"},paragraph:e=>`<p>${e}</p>`,link:(e,t,i)=>"string"!==typeof e?"":(e===i&&(i=(0,u.oR)(i)),t="string"===typeof t?(0,u.d9)((0,u.oR)(t)):"",`<a href="${e=(e=(0,u.oR)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${i}</a>`)});function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var s,u;const m=new f.SL;let _=!1;const w=(0,r.az)(t),k=function(t){let i;try{i=(0,b.Qc)(decodeURIComponent(t))}catch(n){}return i?(i=(0,y.rs)(i,(t=>e.uris&&e.uris[t]?x.o.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},T=function(t,i){const n=e.uris&&e.uris[t];let s=x.o.revive(n);return i?t.startsWith(C.lg.data+":")?t:(s||(s=x.o.parse(t)),C.Gi.uriToBrowserUri(s).toString(!0)):s?x.o.parse(t).toString()===s.toString()?t:(s.query&&(s=s.with({query:k(s.query)})),s.toString()):t},I=new v.Renderer;I.image=L.image,I.link=L.link,I.paragraph=L.paragraph;const M=[],A=[];if(t.codeBlockRendererSync?I.code=(e,i)=>{const n=p.a.nextId(),s=t.codeBlockRendererSync(D(i),e);return A.push([n,s]),`<div class="code" data-code="${n}">${(0,S.YU)(e)}</div>`}:t.codeBlockRenderer&&(I.code=(e,i)=>{const n=p.a.nextId(),s=t.codeBlockRenderer(D(i),e);return M.push(s.then((e=>[n,e]))),`<div class="code" data-code="${n}">${(0,S.YU)(e)}</div>`}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let s=n.dataset.href;s&&(e.baseUri&&(s=N(x.o.from(e.baseUri),s)),t.actionHandler.callback(s,i))}catch(s){(0,h.dL)(s)}finally{i.preventDefault()}},s=t.actionHandler.disposables.add(new o.Y(w,"click")),r=t.actionHandler.disposables.add(new o.Y(w,"auxclick"));t.actionHandler.disposables.add(c.ju.any(s.event,r.event)((e=>{const t=new l.n(n.Jj(w),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.nm(w,"keydown",(e=>{const t=new a.y(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=I;let R,P=null!==(s=e.value)&&void 0!==s?s:"";if(P.length>1e5&&(P=`${P.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(P=(0,g.f$)(P)),t.fillInIncompleteTokens){const e={...v.defaults,...i},t=function(e){let t,i;for(t=0;t<e.length;t++){const n=e[t];let s;if("paragraph"===n.type&&(s=n.raw.match(/(\n|^)(````*)/))){const n=s[2];i=F(e.slice(t),n);break}if("paragraph"===n.type&&n.raw.match(/(\n|^)\|/)){i=q(e.slice(t));break}if(t===e.length-1&&"paragraph"===n.type){const e=O(n);if(e){i=[e];break}}}if(i){const n=[...e.slice(0,t),...i];return n.links=e.links,n}return e}(v.lexer(P,e));R=v.parser(t,e)}else R=v.parse(P,i);if(e.supportThemeIcons){R=(0,d.T)(R).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const B=(new DOMParser).parseFromString(E(e,R),"text/html");if(B.body.querySelectorAll("img").forEach((t=>{const i=t.getAttribute("src");if(i){let s=i;try{e.baseUri&&(s=N(x.o.from(e.baseUri),s))}catch(n){}t.src=T(s,!0)}})),B.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=T(i,!1);e.baseUri&&(n=N(x.o.from(e.baseUri),i)),t.dataset.href=n}})),w.innerHTML=E(e,B.body.innerHTML),M.length>0)Promise.all(M).then((e=>{var i,s;if(_)return;const o=new Map(e),r=w.querySelectorAll("div[data-code]");for(const t of r){const e=o.get(null!==(i=t.dataset.code)&&void 0!==i?i:"");e&&n.mc(t,e)}null===(s=t.asyncRenderCallback)||void 0===s||s.call(t)}));else if(A.length>0){const e=new Map(A),t=w.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(u=i.dataset.code)&&void 0!==u?u:"");t&&n.mc(i,t)}}if(t.asyncRenderCallback)for(const o of w.getElementsByTagName("img")){const e=m.add(n.nm(o,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:w,dispose:()=>{_=!0,m.dispose()}}}function D(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function N(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,w.i3)(e,t).toString():(0,w.i3)((0,w.XX)(e),t).toString()}function E(e,t){const{config:i,allowedSchemes:o}=function(e){const t=[C.lg.http,C.lg.https,C.lg.mailto,C.lg.data,C.lg.file,C.lg.vscodeFileResource,C.lg.vscodeRemote,C.lg.vscodeRemoteResource];e.isTrusted&&t.push(C.lg.command);return{config:{ALLOWED_TAGS:[...n.sQ],ALLOWED_ATTR:T,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);s.v5("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}})),s.v5("uponSanitizeElement",((e,t)=>{var i,n;"input"===t.tagName&&("checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)?e.setAttribute("disabled",""):null===(n=e.parentElement)||void 0===n||n.removeChild(e))}));const r=n._F(o);try{return s.Nw(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{s.ok("uponSanitizeAttribute"),r.dispose()}}const T=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];function I(e){return"string"===typeof e?e:function(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return E({isTrusted:!1},v.parse(i,{renderer:A.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=M.get(e))&&void 0!==t?t:e}))).toString()}(e)}const M=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),A=new m.o((()=>{const e=new v.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function R(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function O(e){var t,i;for(let n=0;n<e.tokens.length;n++){const s=e.tokens[n];if("text"===s.type){const o=s.raw.split("\n"),r=o[o.length-1];if(r.includes("`"))return B(e);if(r.includes("**"))return K(e,"**");if(r.match(/\*\w/))return V(e);if(r.match(/(^|\s)__\w/))return U(e);if(r.match(/(^|\s)_\w/))return W(e);if(r.match(/(^|\s)\[.*\]\(\w*/)){const s=e.tokens.slice(n+1);return"link"===(null===(t=s[0])||void 0===t?void 0:t.type)&&"text"===(null===(i=s[1])||void 0===i?void 0:i.type)&&s[1].raw.match(/^ *"[^"]*$/)?z(e):H(e)}if(P(r))return H(e);if(r.match(/(^|\s)\[\w/)&&!e.tokens.slice(n+1).some((e=>P(e.raw))))return j(e)}}}function P(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function F(e,t){const i=R(e);return v.lexer(i+`\n${t}`)}function B(e){return K(e,"`")}function V(e){return K(e,"*")}function W(e){return K(e,"_")}function H(e){return K(e,")")}function z(e){return K(e,'")')}function j(e){return K(e,"](about:blank)")}function U(e){return K(e,"__")}function K(e,t){const i=R(Array.isArray(e)?e:[e]);return v.lexer(i+t)[0]}function q(e){const t=R(e),i=t.split("\n");let n,s=!1;for(let o=0;o<i.length;o++){const e=i[o].trim();if("undefined"===typeof n&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(n=t.length)}else if("number"===typeof n){if(!e.match(/^\s*\|/))return;if(o!==i.length-1)return;s=!0}}if("number"===typeof n&&n>0){const e=s?i.slice(0,-1).join("\n"):t,o=!!e.match(/\|\s*$/),r=e+(o?"":"|")+`\n|${" --- |".repeat(n)}`;return v.lexer(r)}}},65179:(e,t,i)=>{"use strict";i.d(t,{n:()=>l,q:()=>d});var n=i(27748);const s=new WeakMap;function o(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class r{static getSameOriginWindowChain(e){let t=s.get(e);if(!t){t=[],s.set(e,t);let i,n=e;do{i=o(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let s=0,o=0;const r=this.getSameOriginWindowChain(e);for(const a of r){const e=a.window.deref();if(s+=null!==(i=null===e||void 0===e?void 0:e.scrollY)&&void 0!==i?i:0,o+=null!==(n=null===e||void 0===e?void 0:e.scrollX)&&void 0!==n?n:0,e===t)break;if(!a.iframeElement)break;const r=a.iframeElement.getBoundingClientRect();s+=r.top,o+=r.left}return{top:s,left:o}}}var a=i(90388);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=r.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class d{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;var s;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let o=!1;if(n.i7){const e=navigator.userAgent.match(/Chrome\/(\d+)/);o=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=(null===(s=e.view)||void 0===s?void 0:s.devicePixelRatio)||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=o?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)n.G6&&a.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=o?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=o?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},9922:(e,t,i)=>{"use strict";var n;i.d(t,{B:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},s={...t};let o=0;const r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function l(){performance.mark("input/start"),r.input=1,c()}function d(){1===r.input&&(performance.mark("input/end"),r.input=2)}function h(){1===r.render&&(performance.mark("render/end"),r.render=2)}function c(){setTimeout(u)}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",s),o++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/o,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(d)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(h),c())},e.getAndClearMeasurements=function(){if(0===o)return;const e={keydown:p(t),input:p(i),render:p(n),total:p(s),sampleCount:o};return m(t),m(i),m(n),m(s),o=0,e}}(n||(n={}))},20796:(e,t,i)=>{"use strict";i.d(t,{T:()=>l});var n=i(76595),s=i(39706),o=i(53186);class r extends o.JT{constructor(e){super(),this._onDidChange=this._register(new s.Q5),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends o.JT{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new s.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new r(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const l=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,n.ZY)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,o.dk)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,o.dk)(s.ju.once(n.ey)((e=>{let{vscodeWindowId:n}=e;n===t&&(null===i||void 0===i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},68068:(e,t,i)=>{"use strict";i.d(t,{o:()=>u,t:()=>n});var n,s=i(76595),o=i(11801),r=i(51833),a=i(21150),l=i(39706),d=i(53186),h=i(64450),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class u extends d.JT{constructor(){super(),this.dispatched=!1,this.targets=new h.S,this.ignoreTargets=new h.S,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.ju.runAndSubscribe(s.Xo,(e=>{let{window:t,disposables:i}=e;i.add(s.nm(t.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),i.add(s.nm(t.document,"touchend",(e=>this.onTouchEnd(t,e)))),i.add(s.nm(t.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:o.E,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return d.JT.None;u.INSTANCE||(u.INSTANCE=(0,d.dk)(new u));const t=u.INSTANCE.targets.push(e);return(0,d.OF)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return d.JT.None;u.INSTANCE||(u.INSTANCE=(0,d.dk)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,d.OF)(t)}static isTouchDevice(){return"ontouchstart"in o.E||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,s=e.targetTouches.length;i<s;i++){const s=e.targetTouches.item(i);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:t,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[t],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};const o=this.newGestureEvent(n.Start,s.target);o.pageX=s.pageX,o.pageY=s.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),s=Object.keys(this.activeTouches).length;for(let o=0,a=t.changedTouches.length;o<a;o++){const a=t.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const l=this.activeTouches[a.identifier],d=Date.now()-l.initialTimeStamp;if(d<u.HOLD_DELAY&&Math.abs(l.initialPageX-r.Gb(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.Gb(l.rollingPageY))<30){const e=this.newGestureEvent(n.Tap,l.initialTarget);e.pageX=r.Gb(l.rollingPageX),e.pageY=r.Gb(l.rollingPageY),this.dispatchEvent(e)}else if(d>=u.HOLD_DELAY&&Math.abs(l.initialPageX-r.Gb(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.Gb(l.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,l.initialTarget);e.pageX=r.Gb(l.rollingPageX),e.pageY=r.Gb(l.rollingPageY),this.dispatchEvent(e)}else if(1===s){const t=r.Gb(l.rollingPageX),n=r.Gb(l.rollingPageY),s=r.Gb(l.rollingTimestamps)-l.rollingTimestamps[0],o=t-l.rollingPageX[0],a=n-l.rollingPageY[0],d=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,d,i,Math.abs(o)/s,o>0?1:-1,t,Math.abs(a)/s,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(n.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let n=0,s=e.initialTarget;for(;s&&s!==i;)n++,s=s.parentElement;t.push([n,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,n]of t)n.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,o,r,a,l,d,h){this.handle=s.jL(e,(()=>{const s=Date.now(),c=s-i;let g=0,p=0,m=!0;o+=u.SCROLL_FRICTION*c,l+=u.SCROLL_FRICTION*c,o>0&&(m=!1,g=r*o*c),l>0&&(m=!1,p=d*l*c);const f=this.newGestureEvent(n.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,s,o,r,a+g,l,d,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,s=e.changedTouches.length;i<s;i++){const s=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}const o=this.activeTouches[s.identifier],a=this.newGestureEvent(n.Change,o.initialTarget);a.translationX=s.pageX-r.Gb(o.rollingPageX),a.translationY=s.pageY-r.Gb(o.rollingPageY),a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(s.pageX),o.rollingPageY.push(s.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}u.SCROLL_FRICTION=-.005,u.HOLD_DELAY=700,u.CLEAR_TAP_COUNT_TIME=400,c([a.H],u,"isTouchDevice",null)},58296:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(11801),s=i(16015);function o(e,t){var i;const o=globalThis.MonacoEnvironment;if(null===o||void 0===o?void 0:o.createTrustedTypesPolicy)try{return o.createTrustedTypesPolicy(e,t)}catch(r){return void(0,s.dL)(r)}try{return null===(i=n.E.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(r){return void(0,s.dL)(r)}}},26031:(e,t,i)=>{"use strict";i.d(t,{gU:()=>E,YH:()=>N,Lc:()=>T});var n=i(27748),s=i(37405),o=i(76595),r=i(68068),a=i(97133),l=i(71371),d=i(24199),h=i(10381),c=i(16315),u=i(69394),g=i(51833),p=i(39706),m=i(17344),f=i(53186),_=i(90388),v=i(5887);const b=o.$,C="selectOption.entry.template";class y{get templateId(){return C}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=o.R3(e,b(".option-text")),t.detail=o.R3(e,b(".option-detail")),t.decoratorRight=o.R3(e,b(".option-decorator-right")),t}renderElement(e,t,i){const n=i,s=e.text,o=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=s,n.detail.textContent=o||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class w extends f.JT{constructor(e,t,i,n,s){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=s||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=w.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.Q5,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,l.g)((0,a.tM)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return C}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=o.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=o.R3(this.selectDropDownContainer,b(".select-box-details-pane"));const t=o.R3(this.selectDropDownContainer,b(".select-box-dropdown-container-width-control")),i=o.R3(t,b(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",o.R3(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=o.dS(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(o.nm(this.selectDropDownContainer,o.tw.DRAG_START,(e=>{o.zB.stop(e,!0)})))}registerListeners(){let e;this._register(o.mu(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(o.nm(this.selectElement,o.tw.CLICK,(e=>{o.zB.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(o.nm(this.selectElement,o.tw.MOUSE_DOWN,(e=>{o.zB.stop(e)}))),this._register(o.nm(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(o.nm(this.selectElement,"touchend",(t=>{o.zB.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(o.nm(this.selectElement,o.tw.KEY_DOWN,(e=>{const t=new h.y(e);let i=!1;_.dz?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),o.zB.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",s=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",o=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=s,this.selectElement.style.borderColor=o}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=o.XT(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const s=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=s,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(t){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=o.Jj(this.selectElement),i=o.i(this.selectElement),n=o.Jj(this.selectElement).getComputedStyle(this.selectElement),s=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,d=this.setWidthControlElement(this.widthControlElement),h=Math.max(d,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let c=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=c+s+u,p=Math.floor((r-s-u)/this.getHeight()),m=Math.floor((a-s-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<w.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>r&&(c=p*this.getHeight())}else g>a&&(c=m*this.getHeight());return this.selectList.layout(c),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=c+s+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=c+s+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const s=e.detail?e.detail.length:0,o=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+s+o;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=o.w(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=o.R3(e,b(".select-box-dropdown-list-container")),this.listRenderer=new y,this.selectList=new u.aV("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.NC)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.dz?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new d.Y(this.selectDropDownListContainer,"keydown")),i=p.ju.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new h.y(e)))));this._register(p.ju.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(o.nm(this.selectList.getHTMLElement(),o.tw.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(o.nm(this.selectDropDownContainer,o.tw.FOCUS_OUT,(e=>{this._isVisible&&!o.jg(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;o.zB.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),s=i.classList.contains("option-disabled");n>=0&&n<this.options.length&&!s&&(this.selected=n,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes.item(t);"img"===(n.tagName&&n.tagName.toLowerCase())?e.removeChild(n):i(n)}},n=(0,c.ap)({value:e,supportThemeIcons:!0},{actionHandler:t});return n.element.classList.add("select-box-description-markdown"),i(n.element),n.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){var t,i;this.selectionDetailsPane.innerText="";const n=this.options[e],s=null!==(t=null===n||void 0===n?void 0:n.description)&&void 0!==t?t:"",o=null!==(i=null===n||void 0===n?void 0:n.descriptionIsMarkdown)&&void 0!==i&&i;if(s){if(o){const e=n.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(s,e))}else this.selectionDetailsPane.innerText=s;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){o.zB.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){o.zB.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){o.zB.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){o.zB.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){o.zB.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){o.zB.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){o.zB.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){o.zB.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.kL.toString(e.keyCode);let i=-1;for(let n=0;n<this.options.length-1;n++)if(i=(n+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),o.zB.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}w.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32,w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2,w.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3;class S extends f.JT{constructor(e,t,i,n){super(),this.selected=0,this.selectBoxOptions=n||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.Q5),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(r.o.addTarget(this.selectElement)),[r.t.Tap].forEach((e=>{this._register(o.nm(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(o.mu(this.selectElement,"click",(e=>{o.zB.stop(e,!0)}))),this._register(o.mu(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(o.mu(this.selectElement,"keydown",(e=>{let t=!1;_.dz?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){var e,t,i;this.selectElement&&(this.selectElement.style.backgroundColor=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",this.selectElement.style.color=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",this.selectElement.style.borderColor=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"")}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}}var x=i(7341);class L extends x.${constructor(e,t,i,n,s){super(),_.dz&&!(null===s||void 0===s?void 0:s.useCustomDrawn)?this.selectBoxDelegate=new S(e,t,n,s):this.selectBoxDelegate=new w(e,t,i,n,s),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var k=i(51828),D=i(47624);i(4025);class N extends f.JT{get action(){return this._action}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(),this.options=i,this._context=e||this,this._action=t,t instanceof k.aU&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new k.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,o.nm)(e,o.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(s.g.TEXT,this._action.label)})))),this._register((0,o.nm)(t,r.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,o.nm)(t,o.tw.MOUSE_DOWN,(e=>{i||o.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.dz&&this._register((0,o.nm)(t,o.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,o.nm)(t,o.tw.CLICK,(e=>{o.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,o.nm)(t,o.tw.DBLCLICK,(e=>{o.zB.stop(e,!0)}))),[o.tw.MOUSE_UP,o.tw.MOUSE_OUT].forEach((e=>{this._register((0,o.nm)(t,e,(e=>{o.zB.stop(e),t.classList.remove("active")})))}))}onClick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i;o.zB.stop(e,!0);const n=D.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover||""===n)this.customHover&&this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,a.tM)("element");this.customHover=this._store.add((0,l.g)(e,this.element,n))}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class E extends N{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),D.p_(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===k.Z0.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!==e&&void 0!==e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class T extends N{constructor(e,t,i,n,s,o,r){super(e,t),this.selectBox=new L(i,n,s,o,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},7144:(e,t,i)=>{"use strict";i.d(t,{o:()=>c});var n=i(76595),s=i(10381),o=i(26031),r=i(97133),a=i(51828),l=i(39706),d=i(53186),h=i(47624);i(4025);class c extends d.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i,h,c,u,g,p,m;let f,_;switch(super(),this._actionRunnerDisposables=this._register(new d.SL),this.viewItemDisposables=this._register(new d.b2),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.Q5({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.Q5),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.Q5),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(h=this.options.orientation)&&void 0!==h?h:0,this._triggerKeys={keyDown:null!==(u=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keyDown)&&void 0!==u&&u,keys:null!==(p=null===(g=this.options.triggerKeys)||void 0===g?void 0:g.keys)&&void 0!==p?p:[3,10]},this._hoverDelegate=null!==(m=t.hoverDelegate)&&void 0!==m?m:this._register((0,r.p0)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.Wi,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:f=[15],_=[17];break;case 1:f=[16],_=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new s.y(e);let i=!0;const n="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;f&&(t.equals(f[0])||t.equals(f[1]))?i=this.focusPrevious():_&&(t.equals(_[0])||t.equals(_[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof o.YH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new s.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof o.YH&&e.isEnabled()));e instanceof o.YH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof o.YH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;i<this.actionsList.children.length;i++){const s=this.actionsList.children[i];if(n.jg(n.vY(),s)){this.focusedItem=i,null===(t=null===(e=this.viewItems[this.focusedItem])||void 0===e?void 0:e.showHover)||void 0===t||t.call(e);break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"===typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Array.isArray(e)?e:[e];let s=h.hj(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e,a)),r||(r=new o.gU(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(r,n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof o.YH&&0===this.viewItems.length&&r.setFocusable(!0),null===s||s<0||s>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r)):(this.actionsList.insertBefore(i,this.actionsList.children[s]),this.viewItems.splice(s,0,r),s++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,d.B9)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.PO(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n,s;"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const o=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(o){let n=!0;h.mf(o.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.mf(o.isEnabled)&&!o.isEnabled()&&(n=!1),o.action.id===a.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(s=o.showHover)||void 0===s||s.call(o))}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof o.YH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,d.B9)(this.viewItems),this.getContainer().remove(),super.dispose()}}},83945:(e,t,i)=>{"use strict";i.d(t,{Z9:()=>c,wW:()=>h,i7:()=>u});var n=i(76595);const s=2e4;let o,r,a,l,d;function h(e){o=document.createElement("div"),o.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),o.appendChild(e),e};r=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),o.appendChild(e),e};l=i(),d=i(),e.appendChild(o)}function c(e){o&&(r.textContent!==e?(n.PO(a),g(r,e)):(n.PO(r),g(a,e)))}function u(e){o&&(l.textContent!==e?(n.PO(d),g(l,e)):(n.PO(l),g(d,e)))}function g(e,t){n.PO(e),t.length>s&&(t=t.substr(0,s)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},33013:(e,t,i)=>{"use strict";i.d(t,{z:()=>f});var n=i(76595),s=i(20707),o=i(10381),r=i(16315),a=i(68068),l=i(97133),d=i(71371),h=i(27691),c=i(63932),u=i(39706),g=i(73971),p=i(53186),m=i(73045);c.Il.white.toString(),c.Il.white.toString();class f extends p.JT{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new u.Q5),this._onDidEscape=this._register(new u.Q5),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,s=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=s||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.title&&this.setTitle(t.title),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.o.addTarget(this._element)),[n.tw.CLICK,a.t.Tap].forEach((e=>{this._register((0,n.nm)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.zB.stop(e)})))})),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.zB.stop(t,!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,h.T)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,g.Fr)(this._label)&&(0,g.Fr)(e)&&(0,g.g_)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,g.Fr)(e)){const o=(0,r.ap)(e,{inline:!0});o.dispose();const a=null===(t=o.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,s.Nw)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.mc)(i)}else this.options.supportIcons?(0,n.mc)(i,...this.getContentElements(e)):i.textContent=e;let o="";"string"===typeof this.options.title?o=this.options.title:this.options.title&&(o=(0,r.et)(e)),this.setTitle(o),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",o),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...m.k.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){var t;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,d.g)(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,l.tM)("mouse"),this._element,e))}}},60951:()=>{},45337:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(76595),s=i(78701);class o{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,s.WU)(this.countFormat,this.count),this.element.title=(0,s.WU)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},86406:(e,t,i)=>{"use strict";i.d(t,{C:()=>g});var n=i(76595),s=i(26031),o=i(10381),r=i(68068),a=i(51828),l=i(39706);class d extends a.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.R3)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.R3)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const o of[n.tw.CLICK,n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this.element,o,(e=>n.zB.stop(e,!0))));for(const o of[n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this._label,o,(e=>{(0,n.N5)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.nm)(this._label,n.tw.KEY_UP,(e=>{const t=new o.y(e);(t.equals(3)||t.equals(10))&&(n.zB.stop(e,!0),this.visible?this.hide():this.show())})));const s=i(this._label);s&&this._register(s),this._register(r.o.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends d{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var c=i(71371),u=i(97133);class g extends s.YH{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object.create(null);super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{var t;this.element=(0,n.R3)(e,(0,n.$)("a.action-label"));let i=[];return"string"===typeof this.options.classNames?i=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(i=this.options.classNames),i.find((e=>"icon"===e))||i.push("codicon"),this.element.classList.add(...i),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,c.g)(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,u.tM)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!==e&&void 0!==e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},22406:(e,t,i)=>{"use strict";i.d(t,{V:()=>u});var n=i(76595),s=i(33741),o=i(58799),r=i(7341),a=i(39706),l=(i(69850),i(5887)),d=i(53186),h=i(97133);const c=l.NC("defaultLabel","input");class u extends r.${constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new d.XK),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.Q5),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.Q5),this._onKeyUp=this._register(new a.Q5),this._onCaseSensitiveKeyDown=this._register(new a.Q5),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.Q5),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||c,this.showCommonFindToggles=!!i.showCommonFindToggles;const r=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.pG(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.p0)());if(this.showCommonFindToggles){this.regex=this._register(new s.eH({appendTitle:u,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new s.Qx({appendTitle:l,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new s.rk({appendTitle:r,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let s=-1;t.equals(17)?s=(i+1)%e.length:t.equals(15)&&(s=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):s>=0&&e[s].focus(),n.zB.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null===i||void 0===i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null===e||void 0===e||e.appendChild(this.domNode),this._register(n.nm(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.nm(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new d.SL;for(const t of null!==e&&void 0!==e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t,i,n,s,o,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(s=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==s?s:0)+(null!==(r=null===(o=this.regex)||void 0===o?void 0:o.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},33741:(e,t,i)=>{"use strict";i.d(t,{Qx:()=>c,eH:()=>u,rk:()=>h});var n=i(97133),s=i(81502),o=i(61542),r=i(5887);const a=r.NC("caseDescription","Match Case"),l=r.NC("wordsDescription","Match Whole Word"),d=r.NC("regexDescription","Use Regular Expression");class h extends s.Z{constructor(e){var t;super({icon:o.l.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class c extends s.Z{constructor(e){var t;super({icon:o.l.wholeWord,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends s.Z{constructor(e){var t;super({icon:o.l.regex,title:d+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},24504:(e,t,i)=>{"use strict";i.d(t,{q:()=>d});var n=i(76595),s=i(97133),o=i(71371),r=i(27691),a=i(53186),l=i(53335);class d extends a.JT{constructor(e,t){var i;super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null===t||void 0===t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.R3(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=""),(arguments.length>3?arguments[3]:void 0)&&(e=d.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&l.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,a;const l=[];let d=0;for(const s of this.highlights){if(s.end===s.start)continue;if(d<s.start){const e=this.text.substring(d,s.start);this.supportIcons?l.push(...(0,r.T)(e)):l.push(e),d=s.start}const e=this.text.substring(d,s.end),t=n.$("span.highlight",void 0,...this.supportIcons?(0,r.T)(e):[e]);s.extraClasses&&t.classList.add(...s.extraClasses),l.push(t),d=s.end}if(d<this.text.length){const e=this.text.substring(d);this.supportIcons?l.push(...(0,r.T)(e)):l.push(e)}if(n.mc(this.domNode,...l),null===(t=null===(e=this.options)||void 0===e?void 0:e.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=null!==(a=null===(i=this.options)||void 0===i?void 0:i.hoverDelegate)&&void 0!==a?a:(0,s.tM)("mouse");this.customHover=this._register((0,o.g)(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,n=0;return e.replace(/\r\n|\r|\n/g,((e,s)=>{n="\r\n"===e?-1:0,s+=i;for(const i of t)i.end<=s||(i.start>=s&&(i.start+=n),i.end>=s&&(i.end+=n));return i+=n,"\u23ce"}))}}},97133:(e,t,i)=>{"use strict";i.d(t,{p0:()=>d,rM:()=>a,tM:()=>l});var n=i(20447);let s=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const o=new n.o((()=>s("mouse",!1))),r=new n.o((()=>s("element",!1)));function a(e){s=e}function l(e){return"element"===e?r.value:o.value}function d(){return s("element",!0)}},22367:(e,t,i)=>{"use strict";i.d(t,{Sr:()=>h,c8:()=>d,uX:()=>c});var n=i(76595),s=i(10381),o=i(24622),r=i(53186),a=i(5887);const l=n.$;class d extends r.JT{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new o.s$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends r.JT{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionContainer=n.R3(e,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.R3(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.R3(this.action,l(`span.icon.${t.iconClass}`));n.R3(this.action,l("span")).textContent=i?`${t.label} (${i})`:t.label,this._register(n.nm(this.actionContainer,n.tw.CLICK,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this._register(n.nm(this.actionContainer,n.tw.KEY_DOWN,(e=>{const i=new s.y(e);(i.equals(3)||i.equals(10))&&(e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer))}))),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function c(e,t){return e&&t?(0,a.NC)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.NC)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},71371:(e,t,i)=>{"use strict";i.d(t,{O:()=>c,g:()=>p});var n=i(76595),s=i(53372),o=i(76946),r=i(73971),a=i(77048),l=i(53186),d=i(47624),h=i(5887);function c(e,t){(0,d.HD)(t)?e.title=(0,a.x$)(t):(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class u{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,d.HD)(e)||e instanceof HTMLElement)s=e;else if((0,d.mf)(e.markdown)){this._hoverWidget||this.show((0,h.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new o.A;const i=this._cancellationTokenSource.token;if(s=await e.markdown(i),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else s=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(s,t)}null===n||void 0===n||n.dispose()}hasContent(e){return!!e&&(!(0,r.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function g(e,t){for(t=null!==t&&void 0!==t?t:n.Jj(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}function p(e,t,i,o){let r,a;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const d=(t,i)=>{var n;const s=void 0!==a;t&&(null===a||void 0===a||a.dispose(),a=void 0),i&&(null===r||void 0===r||r.dispose(),r=void 0),s&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),a=void 0)},h=(n,r,l)=>new s._F((async()=>{a&&!a.isDisposed||(a=new u(e,l||t,n>0),await a.update("function"===typeof i?i():i,r,o))}),n);let c=!1;const p=n.nm(t,n.tw.MOUSE_DOWN,(()=>{c=!0,d(!0,!0)}),!0),m=n.nm(t,n.tw.MOUSE_UP,(()=>{c=!1}),!0),f=n.nm(t,n.tw.MOUSE_LEAVE,(e=>{c=!1,d(!1,e.fromElement===t)}),!0),_=n.nm(t,n.tw.MOUSE_OVER,(i=>{if(r)return;const s=new l.SL,o={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{o.x=e.x+10,e.target instanceof HTMLElement&&g(e.target,t)!==t&&d(!0,!0)};s.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}r=s,i.target instanceof HTMLElement&&g(i.target,t)!==t||s.add(h(e.delay,!1,o))}),!0),v=()=>{if(c||r)return;const i={targetElements:[t],dispose:()=>{}},s=new l.SL;s.add(n.nm(t,n.tw.BLUR,(()=>d(!0,!0)),!0)),s.add(h(e.delay,!1,i)),r=s};let b;const C=t.tagName.toLowerCase();"input"!==C&&"textarea"!==C&&(b=n.nm(t,n.tw.FOCUS,v,!0));return{show:e=>{d(!1,!0),h(0,e)},hide:()=>{d(!0,!0)},update:async(e,t)=>{i=e,await(null===a||void 0===a?void 0:a.update(i,void 0,t))},dispose:()=>{_.dispose(),f.dispose(),p.dispose(),m.dispose(),null===b||void 0===b||b.dispose(),d(!0,!0)}}}},83172:(e,t,i)=>{"use strict";i.d(t,{g:()=>c});var n=i(76595),s=i(24504),o=i(71371),r=i(53186),a=i(53335),l=i(32906),d=i(97133);class h{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class c extends r.JT{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new h(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container")),(null===t||void 0===t?void 0:t.supportHighlights)||(null===t||void 0===t?void 0:t.supportIcons)?this.nameNode=this._register(new g(this.nameContainer,!!t.supportIcons)):this.nameNode=new u(this.nameContainer),this.hoverDelegate=null!==(i=null===t||void 0===t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,d.tM)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const o=["monaco-icon-label"],r=["monaco-icon-label-container"];let a="";if(i&&(i.extraClasses&&o.push(...i.extraClasses),i.italic&&o.push("italic"),i.strikethrough&&o.push("strikethrough"),i.disabledCommand&&r.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e)),this.domNode.className=o.join(" "),this.domNode.element.setAttribute("aria-label",a),this.labelContainer.className=r.join(" "),this.setupHover((null===i||void 0===i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null===i||void 0===i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof s.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null===i||void 0===i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null===i||void 0===i?void 0:i.descriptionTitle)):(e.textContent=t&&(null===i||void 0===i?void 0:i.labelEscapeNewLines)?s.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null===i||void 0===i?void 0:i.descriptionTitle)||""),e.empty=!t)}if((null===i||void 0===i?void 0:i.suffix)||this.suffixNode){this.getOrCreateSuffixNode().textContent=null!==(n=null===i||void 0===i?void 0:i.suffix)&&void 0!==n?n:""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover)(0,o.O)(e,t);else{const i=(0,o.g)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new h(n.e4(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new h(n.R3(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new h(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new s.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new h(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class u{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const s=e[i],o=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${i}`;n.R3(this.container,n.$("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},s)),i<e.length-1&&n.R3(this.container,n.$("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}}}class g extends r.JT{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new s.q(n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(null===t||void 0===t?void 0:t.separator)||"/",o=function(e,t,i){if(!i)return;let n=0;return e.map((e=>{const s={start:n,end:n+e.length},o=i.map((e=>l.e.intersect(s,e))).filter((e=>!l.e.isEmpty(e))).map((e=>{let{start:t,end:i}=e;return{start:t-n,end:i-n}}));return n=s.end+t.length,o}))}(e,i,null===t||void 0===t?void 0:t.matches);for(let r=0;r<e.length;r++){const a=e[r],l=o?o[r]:void 0,d=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${r}`,h=n.$("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"});this._register(new s.q(n.R3(this.container,h),{supportIcons:this.supportIcons})).set(a,l,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines),r<e.length-1&&n.R3(h,n.$("span.label-separator",void 0,i))}}}}},27691:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,h:()=>a});var n=i(76595),s=i(73045);const o=new RegExp(`(\\\\)?\\$\\((${s.k.iconNameExpression}(?:${s.k.iconModifierExpression})?)\\)`,"g");function r(e){const t=new Array;let i,n=0,s=0;for(;null!==(i=o.exec(e));){s=i.index||0,n<s&&t.push(e.substring(n,s)),n=(i.index||0)+i[0].length;const[,o,r]=i;t.push(o?`$(${r})`:a({id:r}))}return n<e.length&&t.push(e.substring(n)),t}function a(e){const t=n.$("span");return t.classList.add(...s.k.asClassNameArray(e)),t}},58799:(e,t,i)=>{"use strict";i.d(t,{pG:()=>C,g4:()=>v});var n=i(76595),s=i(24199),o=i(90030),r=i(7144),a=i(83945),l=i(97133),d=i(71371),h=i(24622),c=i(7341),u=i(39706);class g{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t-1;this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(53335),f=i(5887);const _=n.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class b extends c.${constructor(e,t,i){var o;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(o=this.options.tooltip)&&void 0!==o?o:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,_(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",l=n.R3(this.element,_(".ibwrapper"));if(this.input=n.R3(l,_(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(l,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new s.Y(e.ownerDocument,"selectionchange")),i=u.ju.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null===t||void 0===t?void 0:t.anchorNode)===l}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,d.g)((0,l.tM)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.H9(this.input)}select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;const t=this.input.selectionStart;if(null===t)return null;return{start:t,end:null!==(e=this.input.selectionEnd)&&void 0!==e?e:t}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.fS)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.XT(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.w(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var s,r;if(!this.message)return null;e=n.R3(i,_(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,o.BO)(this.message.content,a):(0,o.IY)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const d=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(s=d.background)&&void 0!==s?s:"",l.style.color=null!==(r=d.foreground)&&void 0!==r?r:"",l.style.border=d.border?`1px solid ${d.border}`:"",n.R3(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.NC("alertWarningMessage","Warning: {0}",this.message.content):f.NC("alertInfoMessage","Info: {0}",this.message.content),a.Z9(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){var e,t,i;const s=this.options.inputBoxStyles,o=null!==(e=s.inputBackground)&&void 0!==e?e:"",r=null!==(t=s.inputForeground)&&void 0!==t?t:"",a=null!==(i=s.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=o,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${n.XT(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;null!==i&&null!==n&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class C extends b{constructor(e,t,i){const s=f.NC({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),o=f.NC({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.Q5),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(o)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?s:o,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.H9(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(o)||e(s)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!==e&&void 0!==e?e:"",a.i7(this.value?this.value:f.NC("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},23014:(e,t,i)=>{"use strict";i.d(t,{e:()=>u,F:()=>c});var n=i(76595),s=i(97133),o=i(71371),r=i(47202),a=i(53186),l=i(53335),d=i(5887);const h=n.$,c={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.JT{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const r=this.options.keybindingLabelForeground;this.domNode=n.R3(e,h(".monaco-keybinding")),r&&(this.domNode.style.color=r),this.hover=this._register((0,o.g)((0,s.tM)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e<t.length;e++)n.R3(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,t[e],this.matches?this.matches.chordPart:null);const i=null!==(e=this.options.disableTitle)&&void 0!==e&&e?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(i),this.domNode.setAttribute("aria-label",i||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){n.PO(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const n=r.xo.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,Boolean(null===i||void 0===i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,Boolean(null===i||void 0===i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,Boolean(null===i||void 0===i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,Boolean(null===i||void 0===i?void 0:i.metaKey),n.separator);const s=t.keyLabel;s&&this.renderKey(e,s,Boolean(null===i||void 0===i?void 0:i.keyCode),"")}renderKey(e,t,i,s){n.R3(e,this.createKeyElement(t,i?".highlight":"")),s&&n.R3(e,h("span.monaco-keybinding-key-separator",void 0,s))}renderUnbound(e){n.R3(e,this.createKeyElement((0,d.NC)("unbound","Unbound")))}createKeyElement(e){const t=h("span.monaco-keybinding-key"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),void 0,e);return this.keyElements.add(t),this.options.keybindingLabelBackground&&(t.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(t.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(t.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(t.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),t}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,l.fS)(e.firstPart,t.firstPart)&&(0,l.fS)(e.chordPart,t.chordPart)}}},23252:(e,t,i)=>{"use strict";i.d(t,{kX:()=>x,Bv:()=>N});var n=i(37405),s=i(76595),o=i(24199),r=i(68068),a=i(24622),l=i(51833),d=i(53372),h=i(21150),c=i(39706),u=i(53186),g=i(32906),p=i(91181);function m(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end<n.range.start)break;const t=g.e.intersect(e,n.range);g.e.isEmpty(t)||i.push({range:t,size:n.size})}return i}function f(e,t){let{start:i,end:n}=e;return{start:i+t,end:n+t}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=null!==e&&void 0!==e?e:0,this._size=this._paddingTop}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=i.length-t,s=m({start:0,end:e},this.groups),o=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){const t=[];let i=null;for(const n of e){const e=n.range.start,s=n.range.end,o=n.size;i&&o===i.size?i.range.end=s:(i={range:{start:e,end:s},size:o},t.push(i))}return t}(t.reduce(((e,t)=>e.concat(t)),[]))}(s,r,o),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const n of this.groups){const s=n.range.end-n.range.start,o=i+s*n.size;if(e<o)return t+Math.floor((e-i)/n.size);t+=s,i=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,o=i+s;if(e<o)return this._paddingTop+t+(e-i)*n.size;t+=s*n.size,i=o}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,s.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),function(e){var t;try{null===(t=e.parentElement)||void 0===t||t.removeChild(e)}catch(i){}}(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var b=i(16015),C=i(56155),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};const w={CurrentDragAndDropData:void 0},S={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class x{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class k{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class D{constructor(e){(null===e||void 0===e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,i)=>i,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class N{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S;var o,l,h,g,m,f,_,b,C,y,w,x,L;if(this.virtualDelegate=t,this.domId="list_id_"+ ++N.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.JT.None,this.onDragLeaveTimeout=u.JT.None,this.disposables=new u.SL,this._onDidChangeContentHeight=new c.Q5,this._onDidChangeContentWidth=new c.Q5,this.onDidChangeContentHeight=c.ju.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(o=n.paddingTop)&&void 0!==o?o:0);for(const s of i)this.renderers.set(s.templateId,s);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(l=n.horizontalScrolling)&&void 0!==l?l:S.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new D(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(null!==(h=n.transformOptimization)&&void 0!==h?h:S.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(r.o.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,s.jL)((0,s.Jj)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(m=n.alwaysConsumeMouseWheel)&&void 0!==m?m:S.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(f=n.verticalScrollMode)&&void 0!==f?f:S.verticalScrollMode,useShadows:null!==(_=n.useShadows)&&void 0!==_?_:S.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.nm)(this.rowsContainer,r.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,s.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,s.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(b=n.setRowLineHeight)&&void 0!==b?b:S.setRowLineHeight,this.setRowHeight=null!==(C=n.setRowHeight)&&void 0!==C?C:S.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:S.supportDynamicHeights,this.dnd=null!==(w=n.dnd)&&void 0!==w?w:this.disposables.add(S.dnd),this.layout(null===(x=n.initialSize)||void 0===x?void 0:x.height,null===(L=n.initialSize)||void 0===L?void 0:L.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!==t&&void 0!==t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},o=g.e.intersect(n,s),r=new Map;for(let u=o.end-1;u>=o.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=r.get(e.templateId);t||(t=[],r.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.push(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=g.e.intersect(a,n),d=g.e.relativeComplement(a,n),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.JT.None,checkedDisposable:u.JT.None,stale:!1})));let c;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),c=this.items,this.items=h):(this.rangeMap.splice(e,t,h),c=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(l,p),v=g.e.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const b=g.e.relativeComplement(_,m);for(const u of b)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const C=d.map((e=>f(e,p))),y=[{start:e,end:e+i.length},...C].map((e=>g.e.intersect(m,e))).reverse();for(const u of y)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=r.get(t.templateId),n=null===i||void 0===i?void 0:i.pop();this.insertItemInDOM(e,n)}for(const u of r.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),c.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,s.jL)((0,s.Jj)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,s.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,s.FK)(this.domNode)})}render(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const r=this.getRenderRange(t,i),a=g.e.relativeComplement(r,e).reverse(),l=g.e.relativeComplement(e,r);if(o){const t=g.e.intersect(e,r);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of l)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==s&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,o;const r=this.items[e];if(!r.row)if(t)r.row=t,r.stale=!0;else{const e=this.cache.alloc(r.templateId);r.row=e.row,r.stale||(r.stale=e.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(r.element);if("boolean"===typeof l)r.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const e=e=>r.row.domNode.setAttribute("aria-checked",String(!!e));e(l.value),r.checkedDisposable=l.onDidChange(e)}if(r.stale||!r.row.domNode.parentElement){const t=null!==(o=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==o?o:null;this.rowsContainer.insertBefore(r.row.domNode,t),r.stale=!1}this.updateItemInDOM(r,e);const d=this.renderers.get(r.templateId);if(!d)throw new Error(`No renderer found for template id ${r.templateId}`);null===d||void 0===d||d.renderElement(r.element,e,r.row.templateData,r.size);const h=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!h,h&&(r.dragStartDisposable=(0,s.nm)(r.row.domNode,"dragstart",(e=>this.onDragStart(r.element,h,e)))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,s.FK)(e.row.domNode);const t=(0,s.Jj)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return c.ju.filter(c.ju.map(this.disposables.add(new o.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return c.ju.any(c.ju.map(this.disposables.add(new o.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),c.ju.map(this.disposables.add(new o.Y(this.domNode,r.t.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return c.ju.map(this.disposables.add(new o.Y(this.rowsContainer,r.t.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var o,r;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),"undefined"===typeof e&&(e=String(a.length));const t=(0,s.$)(".monaco-drag-image");t.textContent=e;const n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>n.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new x(a),w.CurrentDragAndDropData=new L(a),null===(r=(o=this.dnd).onDragStart)||void 0===r||r.call(o,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),w.CurrentDragAndDropData&&"vscode-ui"===w.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(w.CurrentDragAndDropData)this.currentDragData=w.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new k}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let s;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",s="boolean"!==typeof n&&n.feedback?n.feedback:"undefined"===typeof e.index?[-1]:[e.index],s=(0,l.EB)(s).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),s=-1===s[0]?[-1]:s;let o="boolean"!==typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(r=this.currentDragFeedback,a=s,(Array.isArray(r)&&Array.isArray(a)?(0,l.fS)(r,a):r===a)&&this.currentDragFeedbackPosition===o)return!0;var r,a;if(this.currentDragFeedback=s,this.currentDragFeedbackPosition=o,this.currentDragFeedbackDisposable.dispose(),-1===s[0])this.domNode.classList.add(o),this.rowsContainer.classList.add(o),this.currentDragFeedbackDisposable=(0,u.OF)((()=>{this.domNode.classList.remove(o),this.rowsContainer.classList.remove(o)}));else{if(s.length>1&&"drop-target"!==o)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===o&&s[0]<this.length-1&&(s[0]+=1,o="drop-target-before");for(const e of s){const t=this.items[e];t.dropTarget=!0,null===(i=t.row)||void 0===i||i.domNode.classList.add(o)}this.currentDragFeedbackDisposable=(0,u.OF)((()=>{var e;for(const t of s){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(o)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.Vg)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,w.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,w.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,s.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.jt)((0,s.Jj)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return(0,C.uZ)(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let s,o;e===this.elementTop(n.start)?(s=n.start,o=0):n.end-n.start>1&&(s=n.start+1,o=this.elementTop(s)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),r+=t,l=l||0!==t}if(!l){0!==r&&this.eventuallyUpdateScrollDimensions();const t=g.e.relativeComplement(n,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const l=g.e.relativeComplement(a,n).reverse();for(const e of l)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof s){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,n=this.elementTop(s)-o+t;this.setScrollTop(n,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){var t,i,n;const o=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(o.element);if(null!==e){const t=o.size;return o.size=e,o.lastDynamicHeightWidth=this.renderWidth,e-t}}if(!o.hasDynamicHeight||o.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(o.element))return 0;const r=o.size;if(o.row)return o.row.domNode.style.height="",o.size=o.row.domNode.offsetHeight,0!==o.size||(0,s.jg)(o.row.domNode,(0,s.Jj)(o.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!"),o.lastDynamicHeightWidth=this.renderWidth,o.size-r;const{row:a}=this.cache.alloc(o.templateId);a.domNode.style.height="",this.rowsContainer.appendChild(a.domNode);const l=this.renderers.get(o.templateId);if(!l)throw new b.he("Missing renderer for templateId: "+o.templateId);return l.renderElement(o.element,e,a.templateData,void 0),o.size=a.domNode.offsetHeight,null===(t=l.disposeElement)||void 0===t||t.call(l,o.element,e,a.templateData,void 0),null===(n=(i=this.virtualDelegate).setDynamicHeight)||void 0===n||n.call(i,o.element,o.size),o.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(a.domNode),this.cache.release(a),o.size-r}getElementDomId(e){return`${this.domId}_${e}`}dispose(){var e,t;for(const i of this.items)if(i.dragStartDisposable.dispose(),i.checkedDisposable.dispose(),i.row){const t=this.renderers.get(i.row.templateId);t&&(null===(e=t.disposeElement)||void 0===e||e.call(t,i.element,-1,i.row.templateData,void 0),t.disposeTemplate(i.row.templateData))}this.items=[],this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),null===(t=this.dragOverAnimationDisposable)||void 0===t||t.dispose(),this.disposables.dispose()}}N.InstanceCount=0,y([h.H],N.prototype,"onMouseClick",null),y([h.H],N.prototype,"onMouseDblClick",null),y([h.H],N.prototype,"onMouseMiddleClick",null),y([h.H],N.prototype,"onMouseDown",null),y([h.H],N.prototype,"onMouseOver",null),y([h.H],N.prototype,"onMouseOut",null),y([h.H],N.prototype,"onContextMenu",null),y([h.H],N.prototype,"onTouchStart",null),y([h.H],N.prototype,"onTap",null)},69394:(e,t,i)=>{"use strict";i.d(t,{wD:()=>q,aV:()=>ee,sx:()=>K,AA:()=>C,dk:()=>R,iK:()=>F,cK:()=>T,$B:()=>A,hD:()=>M,wn:()=>j,Zo:()=>z,xf:()=>P,Et:()=>O,uZ:()=>$});var n=i(76595),s=i(24199),o=i(10381),r=i(68068),a=i(83945);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var d=i(51833),h=i(53372),c=i(63932),u=i(21150),g=i(39706),p=i(34835),m=i(53186),f=i(56155),_=i(90388),v=i(47624);i(40753);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var C,y,w=i(23252),S=i(65179),x=i(43704),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class k{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index<e?n.push(s):s.index>=e+t&&n.push({index:s.index+i-t,templateData:s.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class D{get name(){return this._trait}get renderer(){return new k(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,s=e+t,o=[];let r=0;for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]<e;)o.push(this.sortedIndexes[r++]);for(let a=0;a<i.length;a++)i[a]&&o.push(a+e);for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]>=s;)o.push(this.sortedIndexes[r++]+n);this.renderer.splice(e,t,i.length),this._set(o,o)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Z),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=Y(s,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,d.ry)(this.sortedIndexes,e,Z)>=0}dispose(){(0,m.B9)(this._onChange)}}L([u.H],D.prototype,"renderer",null);class N extends D{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class E{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=new Set(n),o=i.map((e=>s.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,o)}}function T(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function I(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&I(e.parentElement,t))}function M(e){return I(e,"monaco-editor")}function A(e){return I(e,"monaco-custom-toggle")}function R(e){return I(e,"action-item")}function O(e){return I(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class B{get onKeyDown(){return g.ju.chain(this.disposables.add(new s.Y(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!T(e.target))).map((e=>new o.y(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.SL,this.multipleSelectionDisposables=new m.SL,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.dz?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,d.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}L([u.H],B.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(C||(C={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(y||(y={}));const V=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class W{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=y.Idle,this.mode=C.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.SL,this.disposables=new m.SL,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:C.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.ju.chain(this.enabledDisposables.add(new s.Y(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!T(e.target))).filter((()=>this.mode===C.Automatic||this.triggered)).map((e=>new o.y(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.zB.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.ju.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.ju.reduce(g.ju.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));"string"===typeof i?(0,a.Z9)(i):i&&(0,a.Z9)(i.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=y.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===y.Idle?1:0;this.state=y.Typing;for(let s=0;s<this.list.length;s++){const t=(i+s+n)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),r=o&&o.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof r){if((0,p.Ji)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const n=(0,p.XU)(e,r);if(n){if(n[0].end-n[0].start>1&&1===n.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof r||(0,p.Ji)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class H{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.SL;const i=g.ju.chain(this.disposables.add(new s.Y(t.domNode,"keydown")).event,(e=>e.filter((e=>!T(e.target))).map((e=>new o.y(e)))));g.ju.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const s=i.querySelector("[tabIndex]");if(!s||!(s instanceof HTMLElement)||-1===s.tabIndex)return;const o=(0,n.Jj)(s).getComputedStyle(s);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),s.focus())}dispose(){this.disposables.dispose()}}function z(e){return _.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}const U={isSelectionSingleChangeEvent:z,isSelectionRangeChangeEvent:j};class K{constructor(e){this.list=e,this.disposables=new m.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){M(e.browserEvent.target)||(0,n.vY)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(T(e.browserEvent.target)||M(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(T(e.browserEvent.target)||M(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,n.N5)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(T(e.browserEvent.target)||M(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){const e=this.list.getFocus()[0];i=null!==e&&void 0!==e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),o=(0,d.w6)(n,s+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let s=i-1;for(;s>=0&&e[s]===t-(i-s);)n.push(e[s--]);n.reverse(),s=i;for(;s<e.length&&e[s]===t+(s-i);)n.push(e[s++]);return n}(Y(r,[i]),i);if(0===a.length)return;const l=Y(o,function(e,t){const i=[];let n=0,s=0;for(;n<e.length||s<t.length;)if(n>=e.length)i.push(t[s++]);else if(s>=t.length)i.push(e[n++]);else{if(e[n]===t[s]){n++,s++;continue}e[n]<t[s]?i.push(e[n++]):s++}return i}(r,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),n=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class q{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const s=this.selectorSuffix&&`.${this.selectorSuffix}`,o=[];e.listBackground&&o.push(`.monaco-list${s} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(o.push(`.monaco-list${s}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),o.push(`.monaco-list${s}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(o.push(`.monaco-list${s}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),o.push(`.monaco-list${s}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(o.push(`.monaco-list${s} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),o.push(`.monaco-list${s} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&o.push(`.monaco-list${s} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(o.push(`.monaco-list${s} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),o.push(`.monaco-list${s} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(o.push(`.monaco-list${s} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),o.push(`.monaco-list${s} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&o.push(`.monaco-list${s} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&o.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&o.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=(0,n.XT)(e.listFocusAndSelectionOutline,(0,n.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));r&&o.push(`.monaco-list${s}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${s}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.XT)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&o.push(`.monaco-list${s} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&o.push(`.monaco-list${s} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&o.push(`.monaco-list${s} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&o.push(`.monaco-list${s} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&o.push(`\n\t\t\t\t.monaco-list${s}.drop-target,\n\t\t\t\t.monaco-list${s} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${s} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(o.push(`\n\t\t\t.monaco-list${s} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${s} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),o.push(`\n\t\t\t.monaco-list${s} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${s} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&o.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&o.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=o.join("\n")}}const $={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:c.Il.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:c.Il.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:c.Il.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},G={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function Y(e,t){const i=[];let n=0,s=0;for(;n<e.length||s<t.length;)if(n>=e.length)i.push(t[s++]);else if(s>=t.length)i.push(e[n++]);else{if(e[n]===t[s]){i.push(e[n]),n++,s++;continue}e[n]<t[s]?i.push(e[n++]):i.push(t[s++])}return i}const Z=(e,t)=>e-t;class Q{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let s=0;for(const o of this.renderers)o.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let o=0;for(const r of this.renderers)null===(s=r.disposeElement)||void 0===s||s.call(r,e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class X{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.SL}}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e),s=n&&"string"!==typeof n?n:(0,x.Dz)(n);i.disposables.add((0,x.EH)((e=>{this.setAriaLabel(e.readObservable(s),i.container)})));const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?i.container.setAttribute("aria-level",`${o}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,n){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,s){return this.dnd.onDragOver(e,t,i,n,s)}onDragLeave(e,t,i,n){var s,o;null===(o=(s=this.dnd).onDragLeave)||void 0===o||o.call(s,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,s){this.dnd.drop(e,t,i,n,s)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.ju.chain(this.disposables.add(new s.Y(this.view.domNode,"keydown")).event,(t=>t.map((e=>new o.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.zB.stop(e,!0))).filter((()=>!1)))),i=g.ju.chain(this.disposables.add(new s.Y(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new o.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.zB.stop(e,!0))).map((e=>{let{browserEvent:t}=e;const i=this.getFocus(),n=i.length?i[0]:void 0;return{index:n,element:"undefined"!==typeof n?this.view.element(n):void 0,anchor:"undefined"!==typeof n?this.view.domElement(n):this.view.domNode,browserEvent:t}})))),r=g.ju.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((e=>{let{element:t,index:i,browserEvent:s}=e;return{element:t,index:i,anchor:new S.n((0,n.Jj)(this.view.domNode),s),browserEvent:s}}))));return g.ju.any(t,i,r)}get onKeyDown(){return this.disposables.add(new s.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new s.Y(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.ju.signal(this.disposables.add(new s.Y(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:G;var r,a,d,h;this.user=e,this._options=o,this.focus=new D("focused"),this.anchor=new D("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new m.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const c=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new N("listbox"!==c);const u=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(u.push(new X(this.accessibilityProvider)),null===(d=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===d||d.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),s=s.map((e=>new Q(e.templateId,[...u,e])));const p={...o,dnd:o.dnd&&new J(this,o.dnd)};if(this.view=this.createListView(t,i,s,p),this.view.domNode.setAttribute("role",c),o.styleController)this.styleController=o.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new q(e,this.view.domId)}if(this.spliceable=new l([new E(this.focus,this.view,o.identityProvider),new E(this.selection,this.view,o.identityProvider),new E(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new H(this,this.view)),("boolean"!==typeof o.keyboardSupport||o.keyboardSupport)&&(this.keyboardController=new B(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const e=o.keyboardNavigationDelegate||V;this.typeNavigationController=new W(this,this.view,o.keyboardNavigationLabelProvider,null!==(h=o.keyboardNavigationEventFilter)&&void 0!==h?h:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new w.Bv(e,t,i,n)}createMouseController(e){return new K(this)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,d.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if(0===this.length)return;const s=this.focus.get(),o=this.findNextIndex(s.length>0?s[0]+e:0,t,n);o>-1&&this.setFocus([o],i)}focusPrevious(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if(0===this.length)return;const s=this.focus.get(),o=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);o>-1&&this.setFocus([o],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let o=s+this.view.renderHeight;i>n&&(o-=this.view.elementHeight(i)),this.view.setScrollTop(o),this.view.getScrollTop()!==s&&(this.setFocus([]),await(0,h.Vs)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>0;const s=n(),o=this.view.getScrollTop()+s;i=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);const r=this.getFocus()[0];if(r!==i&&(void 0===r||r>=i)){const n=this.findNextIndex(i,!1,t);n>-1&&r!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const i=o;this.view.setScrollTop(o-this.view.renderHeight-s),this.view.getScrollTop()+n()!==i&&(this.setFocus([]),await(0,h.Vs)(0),await this.focusPreviousPage(e,t,n))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;for(let n=0;n<this.length;n++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;for(let n=0;n<this.length;n++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),s=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,v.hj)(t)){const e=o-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.uZ)(t,0,1)+s-i)}else{const e=s+o,t=n+this.view.renderHeight;s<n+i&&e>=t||(s<n+i||e>=t&&o>=this.view.renderHeight?this.view.setScrollTop(s-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(n<i+t||n+s>i+this.view.renderHeight)return null;const o=s-this.view.renderHeight+t;return Math.abs((i+t-n)/o)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent(e){let{indexes:t,browserEvent:i}=e;return{indexes:t,elements:t.map((e=>this.view.element(e))),browserEvent:i}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}L([u.H],ee.prototype,"onDidChangeFocus",null),L([u.H],ee.prototype,"onDidChangeSelection",null),L([u.H],ee.prototype,"onContextMenu",null),L([u.H],ee.prototype,"onKeyDown",null),L([u.H],ee.prototype,"onDidFocus",null),L([u.H],ee.prototype,"onDidBlur",null)},10173:(e,t,i)=>{"use strict";i.d(t,{f:()=>a});var n=i(76595),s=i(38571),o=i(39706),r=i(53186);class a{constructor(){let e;this._onDidWillResize=new o.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new o.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new r.SL,this._size=new n.Ro(0,0),this._minSize=new n.Ro(0,0),this._maxSize=new n.Ro(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new s.g(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new s.g(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new s.g(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:s.l.North}),this._southSash=new s.g(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:s.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(o.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(o.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(o.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(o.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.size.height,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size.width;const{height:i,width:s}=this._minSize,{height:o,width:r}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(s,Math.min(r,t));const a=new n.Ro(t,e);n.Ro.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},38571:(e,t,i)=>{"use strict";i.d(t,{l:()=>u,g:()=>b});var n=i(76595),s=i(24199),o=i(68068),r=i(53372),a=i(21150),l=i(39706),d=i(53186),h=i(90388),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new l.Q5;const p=new l.Q5;class m{constructor(e){this.el=e,this.disposables=new d.SL}get onPointerMove(){return this.disposables.add(new s.Y((0,n.Jj)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new s.Y((0,n.Jj)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}c([a.H],m.prototype,"onPointerMove",null),c([a.H],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new s.Y(this.el,o.t.Change)).event}get onPointerUp(){return this.disposables.add(new s.Y(this.el,o.t.End)).event}constructor(e){this.el=e,this.disposables=new d.SL}dispose(){this.disposables.dispose()}}c([a.H],f.prototype,"onPointerMove",null),c([a.H],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}c([a.H],_.prototype,"onPointerMove",null),c([a.H],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class b extends d.JT{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,d.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new s.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new s.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,d.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new s.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new s.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new r.vp(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.Q5),this._onDidStart=this._register(new l.Q5),this._onDidChange=this._register(new l.Q5),this._onDidReset=this._register(new l.Q5),this._onDidEnd=this._register(new l.Q5),this.orthogonalStartSashDisposables=this._register(new d.SL),this.orthogonalStartDragHandleDisposables=this._register(new d.SL),this.orthogonalEndSashDisposables=this._register(new d.SL),this.orthogonalEndDragHandleDisposables=this._register(new d.SL),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,n.R3)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.dz&&this.el.classList.add("mac");const a=this._register(new s.Y(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const c=this._register(new s.Y(this.el,"dblclick")).event;this._register(c(this.onPointerDoublePress,this));const u=this._register(new s.Y(this.el,"mouseenter")).event;this._register(u((()=>b.onMouseEnter(this))));const _=this._register(new s.Y(this.el,"mouseleave")).event;this._register(_((()=>b.onMouseLeave(this)))),this._register(o.o.addTarget(this.el));const v=this._register(new s.Y(this.el,o.t.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const C=this._register(new s.Y(this.el,o.t.Tap)).event;let y;this._register(C((e=>{if(y)return clearTimeout(y),y=void 0,void this.onPointerDoublePress(e);clearTimeout(y),y=setTimeout((()=>y=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}onPointerStart(e,t){n.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const s=this.el.ownerDocument.getElementsByTagName("iframe");for(const n of s)n.classList.add(v);const o=e.pageX,r=e.pageY,a=e.altKey,l={startX:o,currentX:o,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=(0,n.dS)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.dz?"col-resize":"ew-resize",c.textContent=`* { cursor: ${e} !important; }`},g=new d.SL;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{n.zB.stop(e,!1);const t={startX:o,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{n.zB.stop(e,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of s)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&b.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&b.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){b.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},24622:(e,t,i)=>{"use strict";i.d(t,{s$:()=>N,Io:()=>x,NB:()=>k,$Z:()=>D});var n=i(27748),s=i(76595),o=i(75816),r=i(65179),a=i(21406),l=i(7341),d=i(53372),h=i(73045);const c=11;class u extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.k.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a.C),this._register(s.mu(this.bgDomNode,s.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(s.mu(this.domNode,s.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new s.ne),this._pointerdownScheduleRepeatTimer=this._register(new d._F)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,s.Jj(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(53186);class p extends g.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new d._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(90388);class f extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a.C),this._shouldRender=!0,this.domNode=(0,o.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(s.nm(this.domNode.domNode,s.tw.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,o.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(s.nm(this.slider.domNode,s.tw.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=s.i(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const s=this._sliderOrthogonalPointerPosition(e),o=Math.abs(s-i);if(m.ED&&o>140)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(32657),v=i(61542);class b extends f{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,s.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-c)/2,i=(t.horizontalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v.l.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,1,0))}),this._createArrow({className:"scra",icon:v.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class C extends f{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-c)/2,i=(t.verticalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v.l.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,1))}),this._createArrow({className:"scra",icon:v.l.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var y=i(39706),w=i(91181);class S{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class x{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const s=n===this._front?e:Math.pow(2,-i);if(e-=s,t+=this._memory[n].score*s,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(n.i7){const t=s.Jj(e.browserEvent),i=(0,n.ie)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let n=null;const s=new S(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=s,this._front=0,this._rear=0):(n=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=s),s.score=this._computeScore(s,n)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const n=Math.abs(e.deltaX),s=Math.abs(e.deltaY),o=Math.abs(t.deltaX),r=Math.abs(t.deltaY),a=Math.max(Math.min(n,o),1),l=Math.max(Math.min(s,r),1),d=Math.max(n,o),h=Math.max(s,r);d%a===0&&h%l===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}x.INSTANCE=new x;class L extends l.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new y.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new y.Q5),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.dz&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new C(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new b(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,o.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,o.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,o.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new d._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new r.q(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.q(e))};this._mouseWheelToDispose.push(s.nm(this._listenOnDomNode,s.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=x.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,s=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&s+t===0?s=t=0:Math.abs(t)>=Math.abs(s)?s=0:t=0),this._options.flipAxes&&([t,s]=[s,t]);const o=!m.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||s||(s=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(s*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=50*t,i=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(s){const e=50*s,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let s=n;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",s=t?" top":"",o=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${o}${s}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class k extends L{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new w.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>s.jL(s.Jj(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class D extends L{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class N extends L{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new w.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>s.jL(s.Jj(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},32657:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e,t,i,n,s,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const o=Math.max(0,i-e),r=Math.max(0,o-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),d=(r-l)/(n-i),h=s*d;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=n._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},41090:(e,t,i)=>{"use strict";i.d(t,{M:()=>b,z:()=>C});var n=i(76595),s=i(24199),o=i(38571),r=i(24622),a=i(51833),l=i(63932),d=i(39706),h=i(53186),c=i(56155),u=i(91181),g=i(47624);const p={separatorBorder:l.Il.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,c.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(s){console.error("Splitview: Failed to set visible view"),console.error(s)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,b;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(b||(b={}));class C extends h.JT{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i,o,a,l,h;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new d.Q5),this._onDidSashReset=this._register(new d.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(o=t.inverseAltBehavior)&&void 0!==o&&o,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=this._register(new u.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,n.jL)((0,n.Jj)(this.el),e)})),this.scrollableElement=this._register(new r.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(h=t.scrollbarVisibility)&&void 0!==h?h:1:2},this.scrollable));const c=this._register(new s.Y(this.viewContainer,"scroll")).event;this._register(c((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.length,n=arguments.length>3?arguments[3]:void 0;this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){const n=this.viewItems[i],s=this.proportions[i];"number"===typeof s?t+=s:e-=n.size}for(let i=0;i<this.viewItems.length;i++){const n=this.viewItems[i],s=this.proportions[i];"number"===typeof s&&t>0&&(n.size=(0,c.uZ)(Math.round(s*e/t),n.minimumSize,n.maximumSize))}}else{const t=(0,a.w6)(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),s=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,s)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart(e){let{sash:t,start:i,alt:s}=e;for(const n of this.viewItems)n.enabled=!1;const o=this.sashItems.findIndex((e=>e.sash===t)),r=(0,h.F8)((0,n.nm)(this.el.ownerDocument.body,"keydown",(e=>l(this.sashDragState.current,e.altKey))),(0,n.nm)(this.el.ownerDocument.body,"keyup",(()=>l(this.sashDragState.current,!1)))),l=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,s,l=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(o===this.sashItems.length-1){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,d=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,d=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.w6)(o,-1),t=(0,a.w6)(o+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),d=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),c=Math.max(r,h),u=Math.min(d,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?c-t:c+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);s={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:d,alt:t,snapBefore:n,snapAfter:s,disposable:r}};l(i,s)}onSashChange(e){let{current:t}=e;const{index:i,start:n,sizes:s,alt:o,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:d}=this.sashDragState;this.sashDragState.current=t;const h=t-n,c=this.resize(i,h,s,void 0,void 0,r,a,l,d);if(o){const e=i===this.sashItems.length-1,t=this.viewItems.map((e=>e.size)),n=e?i:i+1,s=this.viewItems[n],o=s.size-s.maximumSize,r=s.size-s.minimumSize,a=e?i-1:i+1;this.resize(a,-c,t,void 0,void 0,o,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,c.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],s=i.filter((e=>2===this.viewItems[e].priority)),o=this.viewItems[e];t=Math.round(t),t=(0,c.uZ)(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(n,s)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const r of this.viewItems)r.maximumSize-r.minimumSize>0&&(e.push(r),t+=r.size);const i=Math.floor(t/e.length);for(const r of e)r.size=(0,c.uZ)(i,r.minimumSize,r.maximumSize);const n=(0,a.w6)(this.viewItems.length),s=n.filter((e=>1===this.viewItems[e].priority)),o=n.filter((e=>2===this.viewItems[e].priority));this.relayout(s,o)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.length,s=arguments.length>3?arguments[3]:void 0;if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const r=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),c=(0,h.OF)((()=>this.viewContainer.removeChild(r))),u=(0,h.F8)(l,c);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(r,e,g,u):new _(r,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new o.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new o.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=d.ju.map(t.onDidStart,n)(this.onSashStart,this),r=d.ju.map(t.onDidChange,n)(this.onSashChange,this),l=d.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),c=l(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.w6)(e,-1),n=(0,a.w6)(e+1,this.viewItems.length),s=this.findFirstSnapIndex(i),o=this.findFirstSnapIndex(n);("number"!==typeof s||this.viewItems[s].visible)&&("number"!==typeof o||this.viewItems[o].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.F8)(s,r,c,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;r.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),s||this.relayout([i],m),s||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.map((e=>e.size)),n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Number.NEGATIVE_INFINITY,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Number.POSITIVE_INFINITY,l=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0;if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.w6)(e,-1),u=(0,a.w6)(e+1,this.viewItems.length);if(s)for(const c of s)(0,a.zI)(h,c),(0,a.zI)(u,c);if(n)for(const c of n)(0,a.al)(h,c),(0,a.al)(u,c);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),y=Math.max(_,C,o),w=Math.min(b,v,r);let S=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;S=i!==e.visible,e.setVisible(i,l.size)}if(!S&&d){const e=this.viewItems[d.index],i=t<d.limitDelta;S=i!==e.visible,e.setVisible(i,d.size)}if(S)return this.resize(e,t,i,n,s,o,r);for(let a=0,x=t=(0,c.uZ)(t,y,w);a<g.length;a++){const e=g[a],t=(0,c.uZ)(p[a]+x,e.minimumSize,e.maximumSize);x-=t-p[a],e.size=t}for(let a=0,x=t;a<m.length;a++){const e=m[a],t=(0,c.uZ)(f[a]-x,e.minimumSize,e.maximumSize);x+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const n=(0,a.w6)(this.viewItems.length-1,-1),s=n.filter((e=>1===this.viewItems[e].priority)),o=n.filter((e=>2===this.viewItems[e].priority));for(const r of o)(0,a.zI)(n,r);for(const r of s)(0,a.al)(n,r);"number"===typeof e&&(0,a.al)(n,e);for(let r=0;0!==i&&r<n.length;r++){const e=this.viewItems[n[r]],t=(0,c.uZ)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const s=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const o=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let l=0;l<this.sashItems.length;l++){const{sash:e}=this.sashItems[l];r+=this.viewItems[l].size;const n=!(t[l]&&o[l+1]),d=!(i[l]&&s[l+1]);if(n&&d){const i=(0,a.w6)(l,-1),n=(0,a.w6)(l+1,this.viewItems.length),o=this.findFirstSnapIndex(i),d=this.findFirstSnapIndex(n),h="number"===typeof o&&!this.viewItems[o].visible,c="number"===typeof d&&!this.viewItems[d].visible;h&&s[l]&&(r>0||this.startSnappingEnabled)?e.state=1:c&&t[l]&&(r<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=n&&!d?1:!n&&d?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,h.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},81502:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d,D:()=>l});var n=i(7341),s=i(73045),o=i(39706),r=i(71371),a=i(97133);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class d extends n.${constructor(e){var t;super(),this._onChange=this._register(new o.Q5),this.onChange=this._onChange.event,this._onKeyDown=this._register(new o.Q5),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const i=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,i.push(...s.k.asClassNameArray(this._icon))),this._opts.actionClassName&&i.push(...this._opts.actionClassName.split(" ")),this._checked&&i.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,r.g)(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,a.tM)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...i),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},47213:(e,t,i)=>{"use strict";i.d(t,{CH:()=>$,cz:()=>D,E4:()=>n,Zd:()=>M,sZ:()=>I});var n,s=i(76595),o=(i(24199),i(10381)),r=(i(7144),i(22406),i(58799)),a=i(23252),l=i(69394),d=i(81502),h=i(5572),c=i(73337),u=(i(51828),i(51833)),g=i(53372),p=i(61542),m=i(73045),f=i(38079),_=i(39706),v=i(34835),b=i(53186),C=i(56155),y=i(47624),w=i(5887),S=(i(97133),i(43704));class x extends a.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function L(e){return e instanceof a.kX?new x(e):e}class k{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=b.JT.None,this.disposables=new b.SL}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,L(e),t)}onDragOver(e,t,i,n,s){let o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const r=this.dnd.onDragOver(L(e),t&&t.element,i,n,s),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return r;if(a&&"boolean"!==typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,g.Vg)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof r||!r.accept||"undefined"===typeof r.bubble||r.feedback){if(!o){return{accept:"boolean"===typeof r?r:r.accept,effect:"boolean"===typeof r?void 0:r.effect,feedback:[i]}}return r}if(1===r.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,s,!1)}const l=this.modelProvider(),d=l.getNodeLocation(t),h=l.getListIndex(d),c=l.getListRenderCount(d);return{...r,feedback:(0,u.w6)(h,h+c)}}drop(e,t,i,n,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(L(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class D{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(n||(n={}));class N{get elements(){return this._elements}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._elements=t,this.disposables=new b.SL,this.onDidChange=_.ju.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class E{constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=s,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=E.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=b.JT.None,this.disposables=new b.SL,this.templateId=e.templateId,this.updateOptions(o),_.ju.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(r=e.onDidChangeTwistieState)||void 0===r||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!==typeof e.indent){const t=(0,C.uZ)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==n.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new b.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,s.R3)(e,(0,s.$)(".monaco-tl-row")),i=(0,s.R3)(t,(0,s.$)(".monaco-tl-indent")),n=(0,s.R3)(t,(0,s.$)(".monaco-tl-twistie")),o=(0,s.R3)(t,(0,s.$)(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:n,indentGuidesDisposable:b.JT.None,templateData:r}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,o;i.indentGuidesDisposable.dispose(),null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,e,t,i.templateData,n),"number"===typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=E.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.k.asClassNameArray(p.l.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...m.k.asClassNameArray(p.l.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,s.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new b.SL,n=this.modelProvider();for(;;){const o=n.getNodeLocation(e),r=n.getParentNodeLocation(o);if(!r)break;const a=n.getNode(r),l=(0,s.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add((0,b.OF)((()=>this.renderedIndentGuides.delete(a,l)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const s=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):s&&t.add(i.getNode(s))}catch(s){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,b.B9)(this.disposables)}}E.DefaultIndent=8;class T{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new b.SL,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"===typeof n?n?1:0:(0,h.gB)(n)?(0,h.aG)(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.CL.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const o of s){const e=o&&o.toString();if("undefined"===typeof e)return{data:v.CL.Default,visibility:i};let t;if(this.tree.findMatchType===M.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.EW)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===s.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.CL.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,b.B9)(this.disposables)}}r.g4,d.D;var I,M;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(M||(M={}));class A{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var r,a;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this.options=o,this._pattern="",this.width=0,this._onDidChangeMode=new _.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.Q5,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.Q5,this._onDidChangeOpenState=new _.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new b.SL,this.disposables=new b.SL,this._mode=null!==(r=e.options.defaultFindMode)&&void 0!==r?r:I.Highlight,this._matchType=null!==(a=e.options.defaultFindMatchType)&&void 0!==a?a:M.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const s=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&s?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,w.NC)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.CL.isDefault(e.filterData))}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function R(e,t){return e.position===t.position&&O(e,t)}function O(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.fS)(this.stickyNodes,e.stickyNodes,R)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.fS)(this.stickyNodes,e.stickyNodes,O))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class F{constrainStickyScrollNodes(e,t,i){for(let n=0;n<e.length;n++){const s=e[n];if(s.position+s.height>i||n>=t)return e.slice(0,n)}return e}}class B extends b.JT{constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var r;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=s,this.maxWidgetViewRatio=.4;const a=this.validateStickySettings(o);this.stickyScrollMaxItemCount=a.stickyScrollMaxItemCount,this.stickyScrollDelegate=null!==(r=o.stickyScrollDelegate)&&void 0!==r?r:new F,this._widget=this._register(new V(i.getScrollableElement(),i,e,n,s,o.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,n=0,s=this.getNextStickyNode(i,void 0,n);for(;s&&(t.push(s),n+=s.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(s),i));)s=this.getNextStickyNode(i,s.node,n);const o=this.constrainStickyNodes(t);return o.length?new P(o):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),s=t;return this.view.scrollTop===n-s}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:s}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(s,t,i),height:i,startIndex:n,endIndex:s}}getAncestorUnderPrevious(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let n=this.view.getRelativeTop(e);if(null===n&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);n=i?i-t/this.view.renderHeight:null}if(null===n)return t;const s=this.view.element(e),o=this.treeDelegate.getHeight(s),r=n*this.view.renderHeight+o;return t+i>r&&t<=r?r-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];const s=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||s.position+s.height>t)throw new Error("stickyScrollDelegate violates constraints");return n}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let s=0;s<t.length&&s<this.stickyScrollMaxItemCount;s++)n+=this.treeDelegate.getHeight(t[s]);return n}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.stickyScrollMaxItemCount)return;const t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update())}validateStickySettings(e){let t=7;return"number"===typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t}}}class V{constructor(e,t,i,n,o,r){this.view=t,this.tree=i,this.treeRenderers=n,this.treeDelegate=o,this.accessibilityProvider=r,this._previousElements=[],this._previousStateDisposables=new b.SL,this._rootDomNode=(0,s.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,s.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const n=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${n.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const n=e.stickyNodes[i],{element:s,disposable:o}=this.createElement(n,i,e.count);t[i]=s,this._rootDomNode.appendChild(s),this._previousStateDisposables.add(o)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${n.position+n.height}px`}createElement(e,t,i){const n=e.startIndex,s=document.createElement("div");s.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(s.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(s.style.lineHeight=`${e.height}px`),s.classList.add("monaco-tree-sticky-row"),s.classList.add("monaco-list-row"),s.setAttribute("data-index",`${n}`),s.setAttribute("data-parity",n%2===0?"even":"odd"),s.setAttribute("id",this.view.getElementID(n));const o=this.setAccessibilityAttributes(s,e.node.element,t,i),r=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===r));if(!a)throw new Error(`No renderer found for template id ${r}`);let l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const d=a.renderTemplate(s);a.renderElement(l,e.startIndex,d,e.height);const h=(0,b.OF)((()=>{o.dispose(),a.disposeElement(l,e.startIndex,d,e.height),a.disposeTemplate(d),s.remove()}));return{element:s,disposable:h}}setAccessibilityAttributes(e,t,i,n){var s;if(!this.accessibilityProvider)return b.JT.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",null!==(s=this.accessibilityProvider.getRole(t))&&void 0!==s?s:"treeitem");const o=this.accessibilityProvider.getAriaLabel(t),r=o&&"string"!==typeof o?o:(0,S.Dz)(o),a=(0,S.EH)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof o||o&&e.setAttribute("aria-label",o.get());const l=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof l&&e.setAttribute("aria-level",`${l}`),e.setAttribute("aria-selected",String(!1)),a}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends b.JT{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new _.Q5,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.Q5,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",(()=>this.onFocus())),this.container.addEventListener("blur",(()=>this.onBlur())),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,l.xf)(t)&&!(0,l.Et)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,s.vd)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>{var i;return t.node.element===(null===(i=e.element)||void 0===i?void 0:i.element)}));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,n=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:n,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,l.xf)(t)||(0,l.Et)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,C.uZ)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],n=t.count>1?t.stickyNodes[t.count-2]:void 0,s=this.view.getElementTop(e),o=n?n.position+n.height+i.height:i.height;this.view.scrollTop=s-o}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function H(e){let t=c.sD.Unknown;return(0,s.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=c.sD.Twistie:(0,s.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=c.sD.Element:(0,s.uU)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=c.sD.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,l.xf)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function j(e,t){t(e),e.children.forEach((e=>j(e,t)))}class U{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new _.Q5,this.onDidChange=this._onDidChange.event}set(e,t){!(null===t||void 0===t?void 0:t.__forceEvent)&&(0,u.fS)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice(e){let{insertedNodes:t,deletedNodes:i}=e;if(!this.identityProvider){const e=this.createNodeSet(),t=t=>e.delete(t);return i.forEach((e=>j(e,t))),void this.set([...e.values()])}const n=new Set,s=e=>n.add(this.identityProvider.getId(e.element).toString());i.forEach((e=>j(e,s)));const o=new Map,r=e=>o.set(this.identityProvider.getId(e.element).toString(),e);t.forEach((e=>j(e,r)));const a=[];for(const l of this.nodes){const e=this.identityProvider.getId(l.element).toString();if(n.has(e)){const t=o.get(e);t&&t.visible&&a.push(t)}else a.push(l)}if(this.nodes.length>0&&0===a.length){const e=this.getFirstViewElementWithTrait();e&&a.push(e)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends l.sx{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.iK)(e.browserEvent.target)||(0,l.cK)(e.browserEvent.target)||(0,l.hD)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,s=(0,l.Et)(e.browserEvent.target);let o=!1;if(o=!!s||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),s)this.handleStickyScrollMouseEvent(e,t);else{if(o&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!s||n)){const i=this.tree.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,s),o&&n)return void(e.browserEvent.isHandledByList=!0)}s||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,l.$B)(e.browserEvent.target)||(0,l.dk)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),s=this.list.getElementTop(n),o=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=s-o,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,l.xf)(t)||(0,l.Et)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,l.xf)(t)||(0,l.Et)(t)||super.onContextMenu(e)}}class q extends l.aV{constructor(e,t,i,n,s,o,r,a){super(e,t,i,n,a),this.focusTrait=s,this.selectionTrait=o,this.anchorTrait=r}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(super.splice(e,t,i),0===i.length)return;const n=[],s=[];let o;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&s.push(e+i),this.anchorTrait.has(t)&&(o=e+i)})),n.length>0&&super.setFocus((0,u.EB)([...super.getFocus(),...n])),s.length>0&&super.setSelection((0,u.EB)([...super.getSelection(),...s])),"number"===typeof o&&super.setAnchor(o)}setFocus(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class ${get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return _.ju.filter(_.ju.map(this.view.onMouseDblClick,H),(e=>e.target!==c.sD.Filter))}get onMouseOver(){return _.ju.map(this.view.onMouseOver,H)}get onMouseOut(){return _.ju.map(this.view.onMouseOut,H)}get onContextMenu(){var e,t;return _.ju.any(_.ju.filter(_.ju.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.onContextMenu)&&void 0!==t?t:_.ju.None)}get onPointer(){return _.ju.map(this.view.onPointer,H)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.ju.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:M.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};var d;this._user=e,this._options=a,this.eventBufferer=new _.E7,this.onDidChangeFindOpenState=_.ju.None,this.onDidChangeStickyScrollFocused=_.ju.None,this.disposables=new b.SL,this._onWillRefilter=new _.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.Q5,this.treeDelegate=new D(i);const h=new _.ZD,c=new _.ZD,u=this.disposables.add(new N(c.event)),p=new f.ri;this.renderers=r.map((e=>new E(e,(()=>this.model),h.event,u,p,a)));for(const n of this.renderers)this.disposables.add(n);let m;var v,C;a.keyboardNavigationLabelProvider&&(m=new T(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:m},this.disposables.add(m)),this.focus=new U((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new U((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new U((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new q(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(v=()=>this.model,C=a,C&&{...C,identityProvider:C.identityProvider&&{getId:e=>C.identityProvider.getId(e.element)},dnd:C.dnd&&new k(v,C.dnd),multipleSelectionController:C.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>C.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>C.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:C.accessibilityProvider&&{...C.accessibilityProvider,getSetSize(e){const t=v(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:C.accessibilityProvider&&C.accessibilityProvider.isChecked?e=>C.accessibilityProvider.isChecked(e.element):void 0,getRole:C.accessibilityProvider&&C.accessibilityProvider.getRole?e=>C.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>C.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>C.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:C.accessibilityProvider&&C.accessibilityProvider.getWidgetRole?()=>C.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:C.accessibilityProvider&&C.accessibilityProvider.getAriaLevel?e=>C.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:C.accessibilityProvider.getActiveDescendantId&&(e=>C.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:C.keyboardNavigationLabelProvider&&{...C.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>C.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),h.input=this.model.onDidChangeCollapseState;const y=_.ju.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);y((()=>null),null,this.disposables);const w=this.disposables.add(new _.Q5),S=this.disposables.add(new g.vp(0));if(this.disposables.add(_.ju.any(y,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);w.fire([...e.values()])}))}))),c.input=w.event,!1!==a.keyboardSupport){const e=_.ju.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.cK)(e.target))).map((e=>new o.y(e)))));_.ju.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.ju.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.ju.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(d=a.findWidgetEnabled)||void 0===d||d)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new A(this,this.model,this.view,m,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.ju.None,this.onDidChangeFindMatchType=_.ju.None;a.enableStickyScroll&&(this.stickyScrollController=new B(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,s.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===n.Always)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===n.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new B(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.ju.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){var e;(null===(e=this.stickyScrollController)||void 0===e?void 0:e.focusedLast())?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,y.hj)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),e.listBackground&&(n.push(`.monaco-list${i} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${e.listBackground}; }`),n.push(`.monaco-list${i} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${e.listBackground}; }`)),e.listFocusForeground&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const o=(0,s.XT)(e.listFocusAndSelectionOutline,(0,s.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));o&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${o}; outline-offset: -1px;}`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=n.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,!0,t)}expand(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}))}focusNext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,s.vd)(i)&&i.altKey?void 0:this.focusNavigationFilter;this.view.focusNext(e,t,i,n)}focusPrevious(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,s.vd)(i)&&i.altKey?void 0:this.focusNavigationFilter;this.view.focusPrevious(e,t,i,n)}focusNextPage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.vd)(e)&&e.altKey?void 0:this.focusNavigationFilter;return this.view.focusNextPage(e,t)}focusPreviousPage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.vd)(e)&&e.altKey?void 0:this.focusNavigationFilter;return this.view.focusPreviousPage(e,t,(()=>{var e,t;return null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.height)&&void 0!==t?t:0}))}focusFirst(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.vd)(e)&&e.altKey?void 0:this.focusNavigationFilter;this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){var e;(0,b.B9)(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}},5572:(e,t,i)=>{"use strict";i.d(t,{X:()=>g,aG:()=>c,gB:()=>h});var n=i(73337),s=i(51833),o=i(53372),r=i(76294),a=i(1794),l=i(39706),d=i(2706);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function c(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var s;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new l.E7,this._onDidChangeCollapseState=new l.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new o.vp(r.n),this.collapseByDefault="undefined"!==typeof n.collapseByDefault&&n.collapseByDefault,this.allowNonCollapsibleParents=null!==(s=n.allowNonCollapsibleParents)&&void 0!==s&&s,this.filter=n.filter,this.autoExpandSingleChildren="undefined"!==typeof n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.$.empty(),s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0===e.length)throw new n.ac(this.user,"Invalid tree location");s.diffIdentityProvider?this.spliceSmart(s.diffIdentityProvider,e,t,i,s):this.spliceSimple(e,t,i,s)}spliceSmart(e,t,i,n,s,o){var r;void 0===n&&(n=d.$.empty()),void 0===o&&(o=null!==(r=s.diffDepth)&&void 0!==r?r:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const h=[...n],c=t[t.length-1],u=new a.Hs({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,c),...h,...l.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(u.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,h,s);const g=t.slice(0,-1),p=(t,i,n)=>{if(o>0)for(let r=0;r<n;r++)t--,i--,this.spliceSmart(e,[...g,t,0],Number.MAX_SAFE_INTEGER,h[i].children,s,o-1)};let m=Math.min(l.children.length,c+i),f=h.length;for(const a of u.changes.sort(((e,t)=>t.originalStart-e.originalStart)))p(m,f,m-(a.originalStart+a.originalLength)),m=a.originalStart,f=a.modifiedStart-c,this.spliceSimple([...g,m],a.originalLength,d.$.slice(h,f,f+a.modifiedLength),s);p(m,f,m)}spliceSimple(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.$.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:r}=arguments.length>3?arguments[3]:void 0;const{parentNode:a,listIndex:l,revealed:h,visible:c}=this.getParentNodeWithListIndex(e),u=[],g=d.$.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,n))),p=e[e.length-1];let m=0;for(let s=p;s>=0&&s<a.children.length;s--){const e=a.children[s];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const s of g)f.push(s),v+=s.renderNodeCount,s.visible&&(s.visibleChildIndex=m+_++);const b=(0,s.db)(a.children,p,t,f);r?a.lastDiffIds?(0,s.db)(a.lastDiffIds,p,t,f.map((e=>r.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>r.getId(e.element).toString())):a.lastDiffIds=void 0;let C=0;for(const s of b)s.visible&&C++;if(0!==C)for(let s=p+f.length;s<a.children.length;s++){const e=a.children[s];e.visible&&(e.visibleChildIndex-=C)}if(a.visibleChildrenCount+=_-C,h&&c){const e=b.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,u)}if(b.length>0&&o){const e=t=>{o(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:b});let y=a;for(;y;){if(2===y.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}y=y.parent}}rerender(e){if(0===e.length)throw new n.ac(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:s}=this.getTreeNodeWithListIndex(e);t.visible&&s&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&o&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(n>-1){n=-1;break}n=e}}n>-1&&this._setCollapseState([...e,n],t)}return o}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const o=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=o-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(u(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,o){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&s.push(r);const l=e.children||d.$.empty(),h=n&&0!==a&&!r.collapsed;let c=0,u=1;for(const d of l){const e=this.createTreeNode(d,r,a,h,s,o);r.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=c++)}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=c,r.visible=2===a?c>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=u):(r.renderNodeCount=0,n&&s.pop()),null===o||void 0===o||o(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i){let n,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const o=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const o of e.children)r=this._updateNodeAfterFilterChange(o,n,i,s&&!e.collapsed)||r,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?r:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-o):(e.renderNodeCount=0,s&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,c(i.visibility)):(e.filterData=void 0,c(i))}hasTreeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root;if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root;if(!e||0===e.length)return t;const[i,...s]=e;if(i<0||i>t.children.length)throw new n.ac(this.user,"Invalid tree location");return this.getTreeNode(s,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:s,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new n.ac(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:s,visible:o&&a.visible}}getParentNodeWithListIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const[r,...a]=e;if(r<0||r>t.children.length)throw new n.ac(this.user,"Invalid tree location");for(let n=0;n<r;n++)i+=t.children[n].renderNodeCount;return s=s&&!t.collapsed,o=o&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:s,visible:o}:this.getParentNodeWithListIndex(a,t.children[r],i+1,s,o)}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.getTreeNode(e)}getNodeLocation(e){const t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,s.JH)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},73337:(e,t,i)=>{"use strict";var n,s;i.d(t,{VA:()=>r,ac:()=>o,kn:()=>n,sD:()=>s}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(n||(n={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(s||(s={}));class o extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class r{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},7341:(e,t,i)=>{"use strict";i.d(t,{$:()=>l});var n=i(76595),s=i(10381),o=i(65179),r=i(68068),a=i(53186);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(i=>t(new o.n(n.Jj(e),i)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(i=>t(new o.n(n.Jj(e),i)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(i=>t(new o.n(n.Jj(e),i)))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,(i=>t(new o.n(n.Jj(e),i)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new s.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new s.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){return r.o.ignoreTarget(e)}}},11801:(e,t,i)=>{"use strict";function n(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{E:()=>s,H:()=>n});const s=window},51828:(e,t,i)=>{"use strict";i.d(t,{Wi:()=>a,Z0:()=>l,aU:()=>r,eZ:()=>h,wY:()=>d,xw:()=>c});var n=i(39706),s=i(53186),o=i(5887);class r extends s.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends s.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(){let e=[];for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];for(const s of i)s.length&&(e=e.length?[...e,new l,...s]:s);return e}async run(){}}l.ID="vs.actions.separator";class d{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class h extends r{constructor(){super(h.ID,o.NC("submenu.empty","(empty)"),void 0,!1)}}function c(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async function(){return e.run(...arguments)},tooltip:e.label}}h.ID="vs.actions.empty"},51833:(e,t,i)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[e.length-(1+t)]}function s(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,s=e.length;n<s;n++)if(!i(e[n],t[n]))return!1;return!0}function r(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,n=e-1;for(;i<=n;){const e=(i+n)/2|0,s=t(e);if(s<0)i=e+1;else{if(!(s>0))return e;n=e-1}}return-(i+1)}(e.length,(n=>i(e[n],t)))}function l(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],s=[],o=[],r=[];for(const a of t){const e=i(a,n);e<0?s.push(a):e>0?o.push(a):r.push(a)}return e<s.length?l(e,s,i):e<s.length+r.length?r[0]:l(e-(s.length+r.length),o,i)}function d(e,t){const i=[];let n;for(const s of e.slice(0).sort(t))n&&0===t(n[0],s)?n.push(s):(n=[s],i.push(n));return i}function*h(e,t){let i,n;for(const s of e)void 0!==n&&t(n,s)?i.push(s):(i&&(yield i),i=[s]),n=s;i&&(yield i)}function c(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function v(e,t){return e.length>0?e[0]:t}function b(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let s=i;s<t;s++)n.push(s);else for(let s=i;s>t;s--)n.push(s);return n}function C(e,t,i){const n=e.slice(0,t),s=e.slice(t);return n.concat(i,s)}function y(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function w(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function S(e,t){for(const i of t)e.push(i)}function x(e){return Array.isArray(e)?e:[e]}function L(e,t,i,n){const s=k(e,t);let o=e.splice(s,i);return void 0===o&&(o=[]),function(e,t,i){const n=k(e,t),s=e.length,o=i.length;e.length=s+o;for(let r=s-1;r>=n;r--)e[r+o]=e[r];for(let r=0;r<o;r++)e[r+n]=i[r]}(e,s,n),o}function k(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var D;function N(e,t){return(i,n)=>t(e(i),e(n))}function E(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(e,i)=>{for(const n of t){const t=n(e,i);if(!D.isNeitherLessOrGreaterThan(t))return t}return D.neitherLessOrGreaterThan}}i.d(t,{BV:()=>M,EB:()=>_,Gb:()=>n,H9:()=>A,HW:()=>l,JH:()=>s,KO:()=>u,LS:()=>r,Of:()=>f,Rs:()=>p,W$:()=>R,XY:()=>m,Xh:()=>v,Zv:()=>C,_2:()=>x,_i:()=>O,al:()=>w,db:()=>L,fS:()=>o,f_:()=>E,fv:()=>T,kX:()=>g,mw:()=>h,nW:()=>I,ry:()=>a,tT:()=>N,vA:()=>S,vM:()=>d,w6:()=>b,zI:()=>y,zy:()=>c}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(D||(D={}));const T=(e,t)=>e-t,I=(e,t)=>T(e?1:0,t?1:0);function M(e){return(t,i)=>-e(t,i)}class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class R{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new R((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new R((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||D.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}R.empty=new R((e=>{}));class O{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,n)=>t(e[i],e[n])));return new O(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new O(e)}}},91206:(e,t,i)=>{"use strict";function n(e,t,i){const n=function(e,t){for(let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function s(e,t){const i=o(e,t);return-1===i?void 0:e[i]}function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;for(;i<n;){const s=Math.floor((i+n)/2);t(e[s])?i=s+1:n=s}return i-1}function r(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;for(;i<n;){const s=Math.floor((i+n)/2);t(e[s])?n=s:i=s+1}return i}i.d(t,{Fr:()=>g,J_:()=>a,Jw:()=>o,Ph:()=>c,b1:()=>l,cn:()=>r,dF:()=>n,dI:()=>d,jV:()=>h,tQ:()=>u,ti:()=>s});class l{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=o(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){const s=e[n];t(s,i)>0&&(i=s)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){const s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return d(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n<e.length;n++){t(e[n],e[i])>0&&(i=n)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}l.assertInvariants=!1},56702:(e,t,i)=>{"use strict";i.d(t,{DM:()=>l,eZ:()=>a,ok:()=>s,vE:()=>o,wN:()=>r});var n=i(16015);function s(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function o(e){throw new Error(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unreachable")}function r(e){e||(0,n.dL)(new n.he("Soft Assertion Failed"))}function a(e){e()||(e(),(0,n.dL)(new n.he("Assertion Failed")))}function l(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},53372:(e,t,i)=>{"use strict";i.d(t,{Aq:()=>D,CR:()=>L,J8:()=>d,PG:()=>h,Ps:()=>_,R5:()=>x,Vg:()=>f,Vs:()=>m,_F:()=>v,eP:()=>c,hF:()=>S,jT:()=>k,jg:()=>y,pY:()=>C,rH:()=>p,vp:()=>g,y5:()=>w,zS:()=>E,zh:()=>b});var n=i(76946),s=i(16015),o=i(39706),r=i(53186),a=i(90388),l=i(76294);function d(e){return!!e&&"function"===typeof e.then}function h(e){const t=new n.A,i=e(t.token),o=new Promise(((e,n)=>{const o=t.token.onCancellationRequested((()=>{o.dispose(),n(new s.FU)}));Promise.resolve(i).then((i=>{o.dispose(),t.dispose(),e(i)}),(e=>{o.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}function c(e,t,i){return new Promise(((n,s)=>{const o=t.onCancellationRequested((()=>{o.dispose(),n(i)}));e.then(n,s).finally((()=>o.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultDelay;this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.n?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}})(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new s.FU),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,n)=>{const o=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(o),r.dispose(),n(new s.FU)}))})):h((t=>m(e,t)))}function f(e){let t=arguments.length>2?arguments[2]:void 0;const i=setTimeout((()=>{e(),t&&n.dispose()}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=(0,r.OF)((()=>{clearTimeout(i),null===t||void 0===t||t.deleteAndLeak(n)}));return null===t||void 0===t||t.add(n),n}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>!!e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=0;const s=e.length,o=()=>{if(n>=s)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):o()))};return o()}class v{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class b{constructor(){this.disposable=void 0}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis;this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=(0,r.OF)((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel()}}class C{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let y,w;w="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a.fn)((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let s=!1;return{dispose(){s||(s=!0,e.cancelIdleCallback(n))}}},y=e=>w(globalThis,e);class S{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=w(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class x extends S{constructor(e){super(globalThis,e)}}class L{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new s.FU)}}var k;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(n){i(n)}}))}}(k||(k={}));class D{static fromArray(e){return new D((t=>{t.emitMany(e)}))}static fromPromise(e){return new D((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new D((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new D((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new o.Q5,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await o.ju.toPromise(this._onStateChanged.event)}}}}static map(e,t){return new D((async i=>{for await(const n of e)i.emitOne(t(n))}))}map(e){return D.map(this,e)}static filter(e,t){return new D((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return D.filter(this,e)}static coalesce(e){return D.filter(e,(e=>!!e))}coalesce(){return D.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return D.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}D.EMPTY=D.fromArray([]);class N extends D{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function E(e){const t=new n.A,i=e(t.token);return new N(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new s.FU)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(o){n.dispose(),t.dispose(),e.reject(o)}}))}},9730:(e,t,i)=>{"use strict";i.d(t,{Ag:()=>d,Cg:()=>u,KN:()=>r,Q$:()=>c,T4:()=>h,mP:()=>a,oq:()=>l});var n=i(20447);const s="undefined"!==typeof Buffer;new n.o((()=>new Uint8Array(256)));let o;class r{static wrap(e){return s&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return s?this.buffer.toString():(o||(o=new TextDecoder),o.decode(this.buffer))}}function a(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function d(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function c(e,t){return e[t]}function u(e,t,i){e[i]=t}},40084:(e,t,i)=>{"use strict";i.d(t,{b:()=>s,t:()=>n});class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify;this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},76946:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,T:()=>o});var n=i(39706);const s=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof r||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s})}(o||(o={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=o.Cancelled}dispose(){var e;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.cancel(),null===(e=this._parentListener)||void 0===e||e.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=o.None}}},61542:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(87487);const s={...{add:(0,n.z)("add",6e4),plus:(0,n.z)("plus",6e4),gistNew:(0,n.z)("gist-new",6e4),repoCreate:(0,n.z)("repo-create",6e4),lightbulb:(0,n.z)("lightbulb",60001),lightBulb:(0,n.z)("light-bulb",60001),repo:(0,n.z)("repo",60002),repoDelete:(0,n.z)("repo-delete",60002),gistFork:(0,n.z)("gist-fork",60003),repoForked:(0,n.z)("repo-forked",60003),gitPullRequest:(0,n.z)("git-pull-request",60004),gitPullRequestAbandoned:(0,n.z)("git-pull-request-abandoned",60004),recordKeys:(0,n.z)("record-keys",60005),keyboard:(0,n.z)("keyboard",60005),tag:(0,n.z)("tag",60006),gitPullRequestLabel:(0,n.z)("git-pull-request-label",60006),tagAdd:(0,n.z)("tag-add",60006),tagRemove:(0,n.z)("tag-remove",60006),person:(0,n.z)("person",60007),personFollow:(0,n.z)("person-follow",60007),personOutline:(0,n.z)("person-outline",60007),personFilled:(0,n.z)("person-filled",60007),gitBranch:(0,n.z)("git-branch",60008),gitBranchCreate:(0,n.z)("git-branch-create",60008),gitBranchDelete:(0,n.z)("git-branch-delete",60008),sourceControl:(0,n.z)("source-control",60008),mirror:(0,n.z)("mirror",60009),mirrorPublic:(0,n.z)("mirror-public",60009),star:(0,n.z)("star",60010),starAdd:(0,n.z)("star-add",60010),starDelete:(0,n.z)("star-delete",60010),starEmpty:(0,n.z)("star-empty",60010),comment:(0,n.z)("comment",60011),commentAdd:(0,n.z)("comment-add",60011),alert:(0,n.z)("alert",60012),warning:(0,n.z)("warning",60012),search:(0,n.z)("search",60013),searchSave:(0,n.z)("search-save",60013),logOut:(0,n.z)("log-out",60014),signOut:(0,n.z)("sign-out",60014),logIn:(0,n.z)("log-in",60015),signIn:(0,n.z)("sign-in",60015),eye:(0,n.z)("eye",60016),eyeUnwatch:(0,n.z)("eye-unwatch",60016),eyeWatch:(0,n.z)("eye-watch",60016),circleFilled:(0,n.z)("circle-filled",60017),primitiveDot:(0,n.z)("primitive-dot",60017),closeDirty:(0,n.z)("close-dirty",60017),debugBreakpoint:(0,n.z)("debug-breakpoint",60017),debugBreakpointDisabled:(0,n.z)("debug-breakpoint-disabled",60017),debugHint:(0,n.z)("debug-hint",60017),terminalDecorationSuccess:(0,n.z)("terminal-decoration-success",60017),primitiveSquare:(0,n.z)("primitive-square",60018),edit:(0,n.z)("edit",60019),pencil:(0,n.z)("pencil",60019),info:(0,n.z)("info",60020),issueOpened:(0,n.z)("issue-opened",60020),gistPrivate:(0,n.z)("gist-private",60021),gitForkPrivate:(0,n.z)("git-fork-private",60021),lock:(0,n.z)("lock",60021),mirrorPrivate:(0,n.z)("mirror-private",60021),close:(0,n.z)("close",60022),removeClose:(0,n.z)("remove-close",60022),x:(0,n.z)("x",60022),repoSync:(0,n.z)("repo-sync",60023),sync:(0,n.z)("sync",60023),clone:(0,n.z)("clone",60024),desktopDownload:(0,n.z)("desktop-download",60024),beaker:(0,n.z)("beaker",60025),microscope:(0,n.z)("microscope",60025),vm:(0,n.z)("vm",60026),deviceDesktop:(0,n.z)("device-desktop",60026),file:(0,n.z)("file",60027),fileText:(0,n.z)("file-text",60027),more:(0,n.z)("more",60028),ellipsis:(0,n.z)("ellipsis",60028),kebabHorizontal:(0,n.z)("kebab-horizontal",60028),mailReply:(0,n.z)("mail-reply",60029),reply:(0,n.z)("reply",60029),organization:(0,n.z)("organization",60030),organizationFilled:(0,n.z)("organization-filled",60030),organizationOutline:(0,n.z)("organization-outline",60030),newFile:(0,n.z)("new-file",60031),fileAdd:(0,n.z)("file-add",60031),newFolder:(0,n.z)("new-folder",60032),fileDirectoryCreate:(0,n.z)("file-directory-create",60032),trash:(0,n.z)("trash",60033),trashcan:(0,n.z)("trashcan",60033),history:(0,n.z)("history",60034),clock:(0,n.z)("clock",60034),folder:(0,n.z)("folder",60035),fileDirectory:(0,n.z)("file-directory",60035),symbolFolder:(0,n.z)("symbol-folder",60035),logoGithub:(0,n.z)("logo-github",60036),markGithub:(0,n.z)("mark-github",60036),github:(0,n.z)("github",60036),terminal:(0,n.z)("terminal",60037),console:(0,n.z)("console",60037),repl:(0,n.z)("repl",60037),zap:(0,n.z)("zap",60038),symbolEvent:(0,n.z)("symbol-event",60038),error:(0,n.z)("error",60039),stop:(0,n.z)("stop",60039),variable:(0,n.z)("variable",60040),symbolVariable:(0,n.z)("symbol-variable",60040),array:(0,n.z)("array",60042),symbolArray:(0,n.z)("symbol-array",60042),symbolModule:(0,n.z)("symbol-module",60043),symbolPackage:(0,n.z)("symbol-package",60043),symbolNamespace:(0,n.z)("symbol-namespace",60043),symbolObject:(0,n.z)("symbol-object",60043),symbolMethod:(0,n.z)("symbol-method",60044),symbolFunction:(0,n.z)("symbol-function",60044),symbolConstructor:(0,n.z)("symbol-constructor",60044),symbolBoolean:(0,n.z)("symbol-boolean",60047),symbolNull:(0,n.z)("symbol-null",60047),symbolNumeric:(0,n.z)("symbol-numeric",60048),symbolNumber:(0,n.z)("symbol-number",60048),symbolStructure:(0,n.z)("symbol-structure",60049),symbolStruct:(0,n.z)("symbol-struct",60049),symbolParameter:(0,n.z)("symbol-parameter",60050),symbolTypeParameter:(0,n.z)("symbol-type-parameter",60050),symbolKey:(0,n.z)("symbol-key",60051),symbolText:(0,n.z)("symbol-text",60051),symbolReference:(0,n.z)("symbol-reference",60052),goToFile:(0,n.z)("go-to-file",60052),symbolEnum:(0,n.z)("symbol-enum",60053),symbolValue:(0,n.z)("symbol-value",60053),symbolRuler:(0,n.z)("symbol-ruler",60054),symbolUnit:(0,n.z)("symbol-unit",60054),activateBreakpoints:(0,n.z)("activate-breakpoints",60055),archive:(0,n.z)("archive",60056),arrowBoth:(0,n.z)("arrow-both",60057),arrowDown:(0,n.z)("arrow-down",60058),arrowLeft:(0,n.z)("arrow-left",60059),arrowRight:(0,n.z)("arrow-right",60060),arrowSmallDown:(0,n.z)("arrow-small-down",60061),arrowSmallLeft:(0,n.z)("arrow-small-left",60062),arrowSmallRight:(0,n.z)("arrow-small-right",60063),arrowSmallUp:(0,n.z)("arrow-small-up",60064),arrowUp:(0,n.z)("arrow-up",60065),bell:(0,n.z)("bell",60066),bold:(0,n.z)("bold",60067),book:(0,n.z)("book",60068),bookmark:(0,n.z)("bookmark",60069),debugBreakpointConditionalUnverified:(0,n.z)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,n.z)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,n.z)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,n.z)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,n.z)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,n.z)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,n.z)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,n.z)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,n.z)("debug-breakpoint-log-disabled",60075),briefcase:(0,n.z)("briefcase",60076),broadcast:(0,n.z)("broadcast",60077),browser:(0,n.z)("browser",60078),bug:(0,n.z)("bug",60079),calendar:(0,n.z)("calendar",60080),caseSensitive:(0,n.z)("case-sensitive",60081),check:(0,n.z)("check",60082),checklist:(0,n.z)("checklist",60083),chevronDown:(0,n.z)("chevron-down",60084),chevronLeft:(0,n.z)("chevron-left",60085),chevronRight:(0,n.z)("chevron-right",60086),chevronUp:(0,n.z)("chevron-up",60087),chromeClose:(0,n.z)("chrome-close",60088),chromeMaximize:(0,n.z)("chrome-maximize",60089),chromeMinimize:(0,n.z)("chrome-minimize",60090),chromeRestore:(0,n.z)("chrome-restore",60091),circleOutline:(0,n.z)("circle-outline",60092),circle:(0,n.z)("circle",60092),debugBreakpointUnverified:(0,n.z)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,n.z)("terminal-decoration-incomplete",60092),circleSlash:(0,n.z)("circle-slash",60093),circuitBoard:(0,n.z)("circuit-board",60094),clearAll:(0,n.z)("clear-all",60095),clippy:(0,n.z)("clippy",60096),closeAll:(0,n.z)("close-all",60097),cloudDownload:(0,n.z)("cloud-download",60098),cloudUpload:(0,n.z)("cloud-upload",60099),code:(0,n.z)("code",60100),collapseAll:(0,n.z)("collapse-all",60101),colorMode:(0,n.z)("color-mode",60102),commentDiscussion:(0,n.z)("comment-discussion",60103),creditCard:(0,n.z)("credit-card",60105),dash:(0,n.z)("dash",60108),dashboard:(0,n.z)("dashboard",60109),database:(0,n.z)("database",60110),debugContinue:(0,n.z)("debug-continue",60111),debugDisconnect:(0,n.z)("debug-disconnect",60112),debugPause:(0,n.z)("debug-pause",60113),debugRestart:(0,n.z)("debug-restart",60114),debugStart:(0,n.z)("debug-start",60115),debugStepInto:(0,n.z)("debug-step-into",60116),debugStepOut:(0,n.z)("debug-step-out",60117),debugStepOver:(0,n.z)("debug-step-over",60118),debugStop:(0,n.z)("debug-stop",60119),debug:(0,n.z)("debug",60120),deviceCameraVideo:(0,n.z)("device-camera-video",60121),deviceCamera:(0,n.z)("device-camera",60122),deviceMobile:(0,n.z)("device-mobile",60123),diffAdded:(0,n.z)("diff-added",60124),diffIgnored:(0,n.z)("diff-ignored",60125),diffModified:(0,n.z)("diff-modified",60126),diffRemoved:(0,n.z)("diff-removed",60127),diffRenamed:(0,n.z)("diff-renamed",60128),diff:(0,n.z)("diff",60129),diffSidebyside:(0,n.z)("diff-sidebyside",60129),discard:(0,n.z)("discard",60130),editorLayout:(0,n.z)("editor-layout",60131),emptyWindow:(0,n.z)("empty-window",60132),exclude:(0,n.z)("exclude",60133),extensions:(0,n.z)("extensions",60134),eyeClosed:(0,n.z)("eye-closed",60135),fileBinary:(0,n.z)("file-binary",60136),fileCode:(0,n.z)("file-code",60137),fileMedia:(0,n.z)("file-media",60138),filePdf:(0,n.z)("file-pdf",60139),fileSubmodule:(0,n.z)("file-submodule",60140),fileSymlinkDirectory:(0,n.z)("file-symlink-directory",60141),fileSymlinkFile:(0,n.z)("file-symlink-file",60142),fileZip:(0,n.z)("file-zip",60143),files:(0,n.z)("files",60144),filter:(0,n.z)("filter",60145),flame:(0,n.z)("flame",60146),foldDown:(0,n.z)("fold-down",60147),foldUp:(0,n.z)("fold-up",60148),fold:(0,n.z)("fold",60149),folderActive:(0,n.z)("folder-active",60150),folderOpened:(0,n.z)("folder-opened",60151),gear:(0,n.z)("gear",60152),gift:(0,n.z)("gift",60153),gistSecret:(0,n.z)("gist-secret",60154),gist:(0,n.z)("gist",60155),gitCommit:(0,n.z)("git-commit",60156),gitCompare:(0,n.z)("git-compare",60157),compareChanges:(0,n.z)("compare-changes",60157),gitMerge:(0,n.z)("git-merge",60158),githubAction:(0,n.z)("github-action",60159),githubAlt:(0,n.z)("github-alt",60160),globe:(0,n.z)("globe",60161),grabber:(0,n.z)("grabber",60162),graph:(0,n.z)("graph",60163),gripper:(0,n.z)("gripper",60164),heart:(0,n.z)("heart",60165),home:(0,n.z)("home",60166),horizontalRule:(0,n.z)("horizontal-rule",60167),hubot:(0,n.z)("hubot",60168),inbox:(0,n.z)("inbox",60169),issueReopened:(0,n.z)("issue-reopened",60171),issues:(0,n.z)("issues",60172),italic:(0,n.z)("italic",60173),jersey:(0,n.z)("jersey",60174),json:(0,n.z)("json",60175),kebabVertical:(0,n.z)("kebab-vertical",60176),key:(0,n.z)("key",60177),law:(0,n.z)("law",60178),lightbulbAutofix:(0,n.z)("lightbulb-autofix",60179),linkExternal:(0,n.z)("link-external",60180),link:(0,n.z)("link",60181),listOrdered:(0,n.z)("list-ordered",60182),listUnordered:(0,n.z)("list-unordered",60183),liveShare:(0,n.z)("live-share",60184),loading:(0,n.z)("loading",60185),location:(0,n.z)("location",60186),mailRead:(0,n.z)("mail-read",60187),mail:(0,n.z)("mail",60188),markdown:(0,n.z)("markdown",60189),megaphone:(0,n.z)("megaphone",60190),mention:(0,n.z)("mention",60191),milestone:(0,n.z)("milestone",60192),gitPullRequestMilestone:(0,n.z)("git-pull-request-milestone",60192),mortarBoard:(0,n.z)("mortar-board",60193),move:(0,n.z)("move",60194),multipleWindows:(0,n.z)("multiple-windows",60195),mute:(0,n.z)("mute",60196),noNewline:(0,n.z)("no-newline",60197),note:(0,n.z)("note",60198),octoface:(0,n.z)("octoface",60199),openPreview:(0,n.z)("open-preview",60200),package:(0,n.z)("package",60201),paintcan:(0,n.z)("paintcan",60202),pin:(0,n.z)("pin",60203),play:(0,n.z)("play",60204),run:(0,n.z)("run",60204),plug:(0,n.z)("plug",60205),preserveCase:(0,n.z)("preserve-case",60206),preview:(0,n.z)("preview",60207),project:(0,n.z)("project",60208),pulse:(0,n.z)("pulse",60209),question:(0,n.z)("question",60210),quote:(0,n.z)("quote",60211),radioTower:(0,n.z)("radio-tower",60212),reactions:(0,n.z)("reactions",60213),references:(0,n.z)("references",60214),refresh:(0,n.z)("refresh",60215),regex:(0,n.z)("regex",60216),remoteExplorer:(0,n.z)("remote-explorer",60217),remote:(0,n.z)("remote",60218),remove:(0,n.z)("remove",60219),replaceAll:(0,n.z)("replace-all",60220),replace:(0,n.z)("replace",60221),repoClone:(0,n.z)("repo-clone",60222),repoForcePush:(0,n.z)("repo-force-push",60223),repoPull:(0,n.z)("repo-pull",60224),repoPush:(0,n.z)("repo-push",60225),report:(0,n.z)("report",60226),requestChanges:(0,n.z)("request-changes",60227),rocket:(0,n.z)("rocket",60228),rootFolderOpened:(0,n.z)("root-folder-opened",60229),rootFolder:(0,n.z)("root-folder",60230),rss:(0,n.z)("rss",60231),ruby:(0,n.z)("ruby",60232),saveAll:(0,n.z)("save-all",60233),saveAs:(0,n.z)("save-as",60234),save:(0,n.z)("save",60235),screenFull:(0,n.z)("screen-full",60236),screenNormal:(0,n.z)("screen-normal",60237),searchStop:(0,n.z)("search-stop",60238),server:(0,n.z)("server",60240),settingsGear:(0,n.z)("settings-gear",60241),settings:(0,n.z)("settings",60242),shield:(0,n.z)("shield",60243),smiley:(0,n.z)("smiley",60244),sortPrecedence:(0,n.z)("sort-precedence",60245),splitHorizontal:(0,n.z)("split-horizontal",60246),splitVertical:(0,n.z)("split-vertical",60247),squirrel:(0,n.z)("squirrel",60248),starFull:(0,n.z)("star-full",60249),starHalf:(0,n.z)("star-half",60250),symbolClass:(0,n.z)("symbol-class",60251),symbolColor:(0,n.z)("symbol-color",60252),symbolConstant:(0,n.z)("symbol-constant",60253),symbolEnumMember:(0,n.z)("symbol-enum-member",60254),symbolField:(0,n.z)("symbol-field",60255),symbolFile:(0,n.z)("symbol-file",60256),symbolInterface:(0,n.z)("symbol-interface",60257),symbolKeyword:(0,n.z)("symbol-keyword",60258),symbolMisc:(0,n.z)("symbol-misc",60259),symbolOperator:(0,n.z)("symbol-operator",60260),symbolProperty:(0,n.z)("symbol-property",60261),wrench:(0,n.z)("wrench",60261),wrenchSubaction:(0,n.z)("wrench-subaction",60261),symbolSnippet:(0,n.z)("symbol-snippet",60262),tasklist:(0,n.z)("tasklist",60263),telescope:(0,n.z)("telescope",60264),textSize:(0,n.z)("text-size",60265),threeBars:(0,n.z)("three-bars",60266),thumbsdown:(0,n.z)("thumbsdown",60267),thumbsup:(0,n.z)("thumbsup",60268),tools:(0,n.z)("tools",60269),triangleDown:(0,n.z)("triangle-down",60270),triangleLeft:(0,n.z)("triangle-left",60271),triangleRight:(0,n.z)("triangle-right",60272),triangleUp:(0,n.z)("triangle-up",60273),twitter:(0,n.z)("twitter",60274),unfold:(0,n.z)("unfold",60275),unlock:(0,n.z)("unlock",60276),unmute:(0,n.z)("unmute",60277),unverified:(0,n.z)("unverified",60278),verified:(0,n.z)("verified",60279),versions:(0,n.z)("versions",60280),vmActive:(0,n.z)("vm-active",60281),vmOutline:(0,n.z)("vm-outline",60282),vmRunning:(0,n.z)("vm-running",60283),watch:(0,n.z)("watch",60284),whitespace:(0,n.z)("whitespace",60285),wholeWord:(0,n.z)("whole-word",60286),window:(0,n.z)("window",60287),wordWrap:(0,n.z)("word-wrap",60288),zoomIn:(0,n.z)("zoom-in",60289),zoomOut:(0,n.z)("zoom-out",60290),listFilter:(0,n.z)("list-filter",60291),listFlat:(0,n.z)("list-flat",60292),listSelection:(0,n.z)("list-selection",60293),selection:(0,n.z)("selection",60293),listTree:(0,n.z)("list-tree",60294),debugBreakpointFunctionUnverified:(0,n.z)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,n.z)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,n.z)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,n.z)("debug-stackframe-active",60297),circleSmallFilled:(0,n.z)("circle-small-filled",60298),debugStackframeDot:(0,n.z)("debug-stackframe-dot",60298),terminalDecorationMark:(0,n.z)("terminal-decoration-mark",60298),debugStackframe:(0,n.z)("debug-stackframe",60299),debugStackframeFocused:(0,n.z)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,n.z)("debug-breakpoint-unsupported",60300),symbolString:(0,n.z)("symbol-string",60301),debugReverseContinue:(0,n.z)("debug-reverse-continue",60302),debugStepBack:(0,n.z)("debug-step-back",60303),debugRestartFrame:(0,n.z)("debug-restart-frame",60304),debugAlt:(0,n.z)("debug-alt",60305),callIncoming:(0,n.z)("call-incoming",60306),callOutgoing:(0,n.z)("call-outgoing",60307),menu:(0,n.z)("menu",60308),expandAll:(0,n.z)("expand-all",60309),feedback:(0,n.z)("feedback",60310),gitPullRequestReviewer:(0,n.z)("git-pull-request-reviewer",60310),groupByRefType:(0,n.z)("group-by-ref-type",60311),ungroupByRefType:(0,n.z)("ungroup-by-ref-type",60312),account:(0,n.z)("account",60313),gitPullRequestAssignee:(0,n.z)("git-pull-request-assignee",60313),bellDot:(0,n.z)("bell-dot",60314),debugConsole:(0,n.z)("debug-console",60315),library:(0,n.z)("library",60316),output:(0,n.z)("output",60317),runAll:(0,n.z)("run-all",60318),syncIgnored:(0,n.z)("sync-ignored",60319),pinned:(0,n.z)("pinned",60320),githubInverted:(0,n.z)("github-inverted",60321),serverProcess:(0,n.z)("server-process",60322),serverEnvironment:(0,n.z)("server-environment",60323),pass:(0,n.z)("pass",60324),issueClosed:(0,n.z)("issue-closed",60324),stopCircle:(0,n.z)("stop-circle",60325),playCircle:(0,n.z)("play-circle",60326),record:(0,n.z)("record",60327),debugAltSmall:(0,n.z)("debug-alt-small",60328),vmConnect:(0,n.z)("vm-connect",60329),cloud:(0,n.z)("cloud",60330),merge:(0,n.z)("merge",60331),export:(0,n.z)("export",60332),graphLeft:(0,n.z)("graph-left",60333),magnet:(0,n.z)("magnet",60334),notebook:(0,n.z)("notebook",60335),redo:(0,n.z)("redo",60336),checkAll:(0,n.z)("check-all",60337),pinnedDirty:(0,n.z)("pinned-dirty",60338),passFilled:(0,n.z)("pass-filled",60339),circleLargeFilled:(0,n.z)("circle-large-filled",60340),circleLarge:(0,n.z)("circle-large",60341),circleLargeOutline:(0,n.z)("circle-large-outline",60341),combine:(0,n.z)("combine",60342),gather:(0,n.z)("gather",60342),table:(0,n.z)("table",60343),variableGroup:(0,n.z)("variable-group",60344),typeHierarchy:(0,n.z)("type-hierarchy",60345),typeHierarchySub:(0,n.z)("type-hierarchy-sub",60346),typeHierarchySuper:(0,n.z)("type-hierarchy-super",60347),gitPullRequestCreate:(0,n.z)("git-pull-request-create",60348),runAbove:(0,n.z)("run-above",60349),runBelow:(0,n.z)("run-below",60350),notebookTemplate:(0,n.z)("notebook-template",60351),debugRerun:(0,n.z)("debug-rerun",60352),workspaceTrusted:(0,n.z)("workspace-trusted",60353),workspaceUntrusted:(0,n.z)("workspace-untrusted",60354),workspaceUnknown:(0,n.z)("workspace-unknown",60355),terminalCmd:(0,n.z)("terminal-cmd",60356),terminalDebian:(0,n.z)("terminal-debian",60357),terminalLinux:(0,n.z)("terminal-linux",60358),terminalPowershell:(0,n.z)("terminal-powershell",60359),terminalTmux:(0,n.z)("terminal-tmux",60360),terminalUbuntu:(0,n.z)("terminal-ubuntu",60361),terminalBash:(0,n.z)("terminal-bash",60362),arrowSwap:(0,n.z)("arrow-swap",60363),copy:(0,n.z)("copy",60364),personAdd:(0,n.z)("person-add",60365),filterFilled:(0,n.z)("filter-filled",60366),wand:(0,n.z)("wand",60367),debugLineByLine:(0,n.z)("debug-line-by-line",60368),inspect:(0,n.z)("inspect",60369),layers:(0,n.z)("layers",60370),layersDot:(0,n.z)("layers-dot",60371),layersActive:(0,n.z)("layers-active",60372),compass:(0,n.z)("compass",60373),compassDot:(0,n.z)("compass-dot",60374),compassActive:(0,n.z)("compass-active",60375),azure:(0,n.z)("azure",60376),issueDraft:(0,n.z)("issue-draft",60377),gitPullRequestClosed:(0,n.z)("git-pull-request-closed",60378),gitPullRequestDraft:(0,n.z)("git-pull-request-draft",60379),debugAll:(0,n.z)("debug-all",60380),debugCoverage:(0,n.z)("debug-coverage",60381),runErrors:(0,n.z)("run-errors",60382),folderLibrary:(0,n.z)("folder-library",60383),debugContinueSmall:(0,n.z)("debug-continue-small",60384),beakerStop:(0,n.z)("beaker-stop",60385),graphLine:(0,n.z)("graph-line",60386),graphScatter:(0,n.z)("graph-scatter",60387),pieChart:(0,n.z)("pie-chart",60388),bracket:(0,n.z)("bracket",60175),bracketDot:(0,n.z)("bracket-dot",60389),bracketError:(0,n.z)("bracket-error",60390),lockSmall:(0,n.z)("lock-small",60391),azureDevops:(0,n.z)("azure-devops",60392),verifiedFilled:(0,n.z)("verified-filled",60393),newline:(0,n.z)("newline",60394),layout:(0,n.z)("layout",60395),layoutActivitybarLeft:(0,n.z)("layout-activitybar-left",60396),layoutActivitybarRight:(0,n.z)("layout-activitybar-right",60397),layoutPanelLeft:(0,n.z)("layout-panel-left",60398),layoutPanelCenter:(0,n.z)("layout-panel-center",60399),layoutPanelJustify:(0,n.z)("layout-panel-justify",60400),layoutPanelRight:(0,n.z)("layout-panel-right",60401),layoutPanel:(0,n.z)("layout-panel",60402),layoutSidebarLeft:(0,n.z)("layout-sidebar-left",60403),layoutSidebarRight:(0,n.z)("layout-sidebar-right",60404),layoutStatusbar:(0,n.z)("layout-statusbar",60405),layoutMenubar:(0,n.z)("layout-menubar",60406),layoutCentered:(0,n.z)("layout-centered",60407),target:(0,n.z)("target",60408),indent:(0,n.z)("indent",60409),recordSmall:(0,n.z)("record-small",60410),errorSmall:(0,n.z)("error-small",60411),terminalDecorationError:(0,n.z)("terminal-decoration-error",60411),arrowCircleDown:(0,n.z)("arrow-circle-down",60412),arrowCircleLeft:(0,n.z)("arrow-circle-left",60413),arrowCircleRight:(0,n.z)("arrow-circle-right",60414),arrowCircleUp:(0,n.z)("arrow-circle-up",60415),layoutSidebarRightOff:(0,n.z)("layout-sidebar-right-off",60416),layoutPanelOff:(0,n.z)("layout-panel-off",60417),layoutSidebarLeftOff:(0,n.z)("layout-sidebar-left-off",60418),blank:(0,n.z)("blank",60419),heartFilled:(0,n.z)("heart-filled",60420),map:(0,n.z)("map",60421),mapHorizontal:(0,n.z)("map-horizontal",60421),foldHorizontal:(0,n.z)("fold-horizontal",60421),mapFilled:(0,n.z)("map-filled",60422),mapHorizontalFilled:(0,n.z)("map-horizontal-filled",60422),foldHorizontalFilled:(0,n.z)("fold-horizontal-filled",60422),circleSmall:(0,n.z)("circle-small",60423),bellSlash:(0,n.z)("bell-slash",60424),bellSlashDot:(0,n.z)("bell-slash-dot",60425),commentUnresolved:(0,n.z)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,n.z)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,n.z)("git-pull-request-new-changes",60428),searchFuzzy:(0,n.z)("search-fuzzy",60429),commentDraft:(0,n.z)("comment-draft",60430),send:(0,n.z)("send",60431),sparkle:(0,n.z)("sparkle",60432),insert:(0,n.z)("insert",60433),mic:(0,n.z)("mic",60434),thumbsdownFilled:(0,n.z)("thumbsdown-filled",60435),thumbsupFilled:(0,n.z)("thumbsup-filled",60436),coffee:(0,n.z)("coffee",60437),snake:(0,n.z)("snake",60438),game:(0,n.z)("game",60439),vr:(0,n.z)("vr",60440),chip:(0,n.z)("chip",60441),piano:(0,n.z)("piano",60442),music:(0,n.z)("music",60443),micFilled:(0,n.z)("mic-filled",60444),repoFetch:(0,n.z)("repo-fetch",60445),copilot:(0,n.z)("copilot",60446),lightbulbSparkle:(0,n.z)("lightbulb-sparkle",60447),robot:(0,n.z)("robot",60448),sparkleFilled:(0,n.z)("sparkle-filled",60449),diffSingle:(0,n.z)("diff-single",60450),diffMultiple:(0,n.z)("diff-multiple",60451),surroundWith:(0,n.z)("surround-with",60452),share:(0,n.z)("share",60453),gitStash:(0,n.z)("git-stash",60454),gitStashApply:(0,n.z)("git-stash-apply",60455),gitStashPop:(0,n.z)("git-stash-pop",60456),vscode:(0,n.z)("vscode",60457),vscodeInsiders:(0,n.z)("vscode-insiders",60458),codeOss:(0,n.z)("code-oss",60459),runCoverage:(0,n.z)("run-coverage",60460),runAllCoverage:(0,n.z)("run-all-coverage",60461),coverage:(0,n.z)("coverage",60462),githubProject:(0,n.z)("github-project",60463),mapVertical:(0,n.z)("map-vertical",60464),foldVertical:(0,n.z)("fold-vertical",60464),mapVerticalFilled:(0,n.z)("map-vertical-filled",60465),foldVerticalFilled:(0,n.z)("fold-vertical-filled",60465)},...{dialogError:(0,n.z)("dialog-error","error"),dialogWarning:(0,n.z)("dialog-warning","warning"),dialogInfo:(0,n.z)("dialog-info","info"),dialogClose:(0,n.z)("dialog-close","close"),treeItemExpanded:(0,n.z)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,n.z)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,n.z)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,n.z)("tree-filter-clear","close"),treeItemLoading:(0,n.z)("tree-item-loading","loading"),menuSelection:(0,n.z)("menu-selection","check"),menuSubmenu:(0,n.z)("menu-submenu","chevron-right"),menuBarMore:(0,n.z)("menubar-more","more"),scrollbarButtonLeft:(0,n.z)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,n.z)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,n.z)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,n.z)("scrollbar-button-down","triangle-down"),toolBarMore:(0,n.z)("toolbar-more","more"),quickInputBack:(0,n.z)("quick-input-back","arrow-left"),dropDownButton:(0,n.z)("drop-down-button",60084),symbolCustomColor:(0,n.z)("symbol-customcolor",60252),exportIcon:(0,n.z)("export",60332),workspaceUnspecified:(0,n.z)("workspace-unspecified",60355),newLine:(0,n.z)("newline",60394),thumbsDownFilled:(0,n.z)("thumbsdown-filled",60435),thumbsUpFilled:(0,n.z)("thumbsup-filled",60436),gitFetch:(0,n.z)("git-fetch",60445),lightbulbSparkleAutofix:(0,n.z)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,n.z)("debug-breakpoint-pending",60377)}}},87487:(e,t,i)=>{"use strict";i.d(t,{u:()=>r,z:()=>o});var n=i(47624);const s=Object.create(null);function o(e,t){if((0,n.HD)(t)){const i=s[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return s[e]=t,{id:e}}function r(){return s}},35863:(e,t,i)=>{"use strict";function n(e,t){const i=[],n=[];for(const s of e)t.has(s)||i.push(s);for(const s of t)e.has(s)||n.push(s);return{removed:i,added:n}}function s(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}i.d(t,{j:()=>s,q:()=>n})},63932:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:()=>a,Oz:()=>o,VS:()=>s,tx:()=>r});class s{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class o{constructor(e,t,i,s){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,d=0;const h=(a+r)/2,c=r-a;if(c>0){switch(d=Math.min(h<=.5?c/(2*h):c/(2-2*h),1),r){case t:l=(i-n)/c+(i<n?6:0);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l*=60,l=Math.round(l)}return new o(l,d,h,s)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,d;if(0===i)a=l=d=n;else{const e=n<.5?n*(1+i):n+i-n*i,s=2*n-e;a=o._hue2rgb(s,e,t+1/3),l=o._hue2rgb(s,e,t),d=o._hue2rgb(s,e,t-1/3)}return new s(Math.round(255*a),Math.round(255*l),Math.round(255*d),r)}}class r{constructor(e,t,i,s){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),o=s-Math.min(t,i,n),a=0===s?0:o/s;let l;return l=0===o?0:s===t?((i-n)/o%6+6)%6:s===i?(n-t)/o+2:(t-i)/o+4,new r(Math.round(60*l),a,s,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:o}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[d,h,c]=[0,0,0];return t<60?(d=r,h=a):t<120?(d=a,h=r):t<180?(h=r,c=a):t<240?(h=a,c=r):t<300?(d=a,c=r):t<=360&&(d=r,c=a),d=Math.round(255*(d+l)),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),new s(d,h,c,o)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof s)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}equals(e){return!!e&&s.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:n,a:o}=this.rgba;return new a(new s(t,i,n,o*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new s(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:n,a:o}=this.rgba;return new a(new s(e.rgba.r-o*(e.rgba.r-t),e.rgba.g-o*(e.rgba.g-i),e.rgba.b-o*(e.rgba.b-n),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(s-n)/s,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const n=e.getRelativeLuminance();return i=i*(n-t.getRelativeLuminance())/n,e.darken(i)}}a.white=new a(new s(255,255,255,1)),a.black=new a(new s(0,0,0,1)),a.red=new a(new s(255,0,0,1)),a.blue=new a(new s(0,0,255,1)),a.green=new a(new s(0,255,0,1)),a.cyan=new a(new s(0,255,255,1)),a.lightgrey=new a(new s(211,211,211,1)),a.transparent=new a(new s(0,0,0,0)),function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function n(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*n(t.charCodeAt(1))+n(t.charCodeAt(2)),o=16*n(t.charCodeAt(3))+n(t.charCodeAt(4)),r=16*n(t.charCodeAt(5))+n(t.charCodeAt(6));return new e(new s(i,o,r,1))}if(9===i){const i=16*n(t.charCodeAt(1))+n(t.charCodeAt(2)),o=16*n(t.charCodeAt(3))+n(t.charCodeAt(4)),r=16*n(t.charCodeAt(5))+n(t.charCodeAt(6)),a=16*n(t.charCodeAt(7))+n(t.charCodeAt(8));return new e(new s(i,o,r,a/255))}if(4===i){const i=n(t.charCodeAt(1)),o=n(t.charCodeAt(2)),r=n(t.charCodeAt(3));return new e(new s(16*i+i,16*o+o,16*r+r))}if(5===i){const i=n(t.charCodeAt(1)),o=n(t.charCodeAt(2)),r=n(t.charCodeAt(3)),a=n(t.charCodeAt(4));return new e(new s(16*i+i,16*o+o,16*r+r,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},44609:(e,t,i)=>{"use strict";i.d(t,{Hl:()=>l,Ix:()=>a,SN:()=>h,Z0:()=>u,ZO:()=>r});var n=i(51833),s=i(2706),o=i(94913);function r(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const n={id:(0,o.R)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>n,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return s.$.some(this,(e=>{let[t,i]=e;return i.asFile()}))&&t.push("files"),c(d(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return d(e)}}function d(e){return e.toLowerCase()}function h(e,t){return c(d(e),t.map(d))}function c(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,s,o]=i;return"*"===o&&t.some((e=>e.startsWith(s+"/")))}const u=Object.freeze({create:e=>(0,n.EB)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},21150:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,s=null;if("function"===typeof i.value?(n="value",s=i.value,0!==s.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(n="get",s=i.get),!s)throw new Error("not supported");const o=`$memoize$${t}`;i[n]=function(){if(!this.hasOwnProperty(o)){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:s.apply(this,t)})}return this[o]}}i.d(t,{H:()=>n})},1794:(e,t,i)=>{"use strict";i.d(t,{Hs:()=>h,a$:()=>r});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var s=i(95075);class o{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i<n;i++)t[i]=e.charCodeAt(i);return t}}function r(e,t,i){return new h(new o(e),new o(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,i,n,s){for(let o=0;o<s;o++)i[n+o]=e[t+o]}static Copy2(e,t,i,n,s){for(let o=0;o<s;o++)i[n+o]=e[t+o]}}class d{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,s,o]=h._getElements(e),[r,a,l]=h._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=s,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i<n;i++)e[i]=(0,s.Cv)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,n,s){const o=[!1];let r=this.ComputeDiffRecursive(e,t,i,n,o);return s&&(r=this.PrettifyChanges(r)),{quitEarly:o[0],changes:r}}ComputeDiffRecursive(e,t,i,s,o){for(o[0]=!1;e<=t&&i<=s&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&s>=i&&this.ElementsAreEqual(t,s);)t--,s--;if(e>t||i>s){let o;return i<=s?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new n(e,0,i,s-i+1)]):e<=t?(a.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),o=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const r=[0],l=[0],d=this.ComputeRecursionPoint(e,t,i,s,r,l,o),h=r[0],c=l[0];if(null!==d)return d;if(!o[0]){const r=this.ComputeDiffRecursive(e,h,i,c,o);let a=[];return a=o[0]?[new n(h+1,t-(h+1)+1,c+1,s-(c+1)+1)]:this.ComputeDiffRecursive(h+1,t,c+1,s,o),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,s-i+1)]}WALKTRACE(e,t,i,s,o,r,a,l,h,c,u,g,p,m,f,_,v,b){let C=null,y=null,w=new d,S=t,x=i,L=p[0]-_[0]-s,k=-1073741824,D=this.m_forwardHistory.length-1;do{const t=L+e;t===S||t<x&&h[t-1]<h[t+1]?(m=(u=h[t+1])-L-s,u<k&&w.MarkNextChange(),k=u,w.AddModifiedElement(u+1,m),L=t+1-e):(m=(u=h[t-1]+1)-L-s,u<k&&w.MarkNextChange(),k=u-1,w.AddOriginalElement(u,m+1),L=t-1-e),D>=0&&(e=(h=this.m_forwardHistory[D])[0],S=1,x=h.length-1)}while(--D>=-1);if(C=w.getReverseChanges(),b[0]){let e=p[0]+1,t=_[0]+1;if(null!==C&&C.length>0){const i=C[C.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}y=[new n(e,g-e+1,t,f-t+1)]}else{w=new d,S=r,x=a,L=p[0]-_[0]-l,k=1073741824,D=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=L+o;e===S||e<x&&c[e-1]>=c[e+1]?(m=(u=c[e+1]-1)-L-l,u>k&&w.MarkNextChange(),k=u+1,w.AddOriginalElement(u+1,m+1),L=e+1-o):(m=(u=c[e-1])-L-l,u>k&&w.MarkNextChange(),k=u,w.AddModifiedElement(u+1,m+1),L=e-1-o),D>=0&&(o=(c=this.m_reverseHistory[D])[0],S=1,x=c.length-1)}while(--D>=-1);y=w.getChanges()}return this.ConcatenateChanges(C,y)}ComputeRecursionPoint(e,t,i,s,o,r,a){let d=0,h=0,c=0,u=0,g=0,p=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(s-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),b=s-i,C=t-e,y=e-i,w=t-s,S=(C-b)%2===0;_[b]=e,v[C]=t,a[0]=!1;for(let x=1;x<=m/2+1;x++){let m=0,L=0;c=this.ClipDiagonalBound(b-x,x,b,f),u=this.ClipDiagonalBound(b+x,x,b,f);for(let e=c;e<=u;e+=2){d=e===c||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=d-(e-b)-y;const i=d;for(;d<t&&h<s&&this.ElementsAreEqual(d+1,h+1);)d++,h++;if(_[e]=d,d+h>m+L&&(m=d,L=h),!S&&Math.abs(e-C)<=x-1&&d>=v[e])return o[0]=d,r[0]=h,i<=v[e]&&x<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):null}const k=(m-e+(L-i)-x)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,k))return a[0]=!0,o[0]=m,r[0]=L,k>0&&x<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):(e++,i++,[new n(e,t-e+1,i,s-i+1)]);g=this.ClipDiagonalBound(C-x,x,C,f),p=this.ClipDiagonalBound(C+x,x,C,f);for(let n=g;n<=p;n+=2){d=n===g||n<p&&v[n-1]>=v[n+1]?v[n+1]-1:v[n-1],h=d-(n-C)-w;const l=d;for(;d>e&&h>i&&this.ElementsAreEqual(d,h);)d--,h--;if(v[n]=d,S&&Math.abs(n-b)<=x&&d<=_[n])return o[0]=d,r[0]=h,l>=_[n]&&x<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):null}if(x<=1447){let e=new Int32Array(u-c+2);e[0]=b-c+1,l.Copy2(_,c,e,1,u-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],n=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,s=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=i.originalLength>0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength<n&&i.modifiedStart+i.modifiedLength<s&&(!o||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!r||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let n=0,s=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,s=i.modifiedStart+i.modifiedLength}const o=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,d=i.modifiedStart-e;if(t<n||d<s)break;if(o&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(r&&!this.ModifiedElementsAreEqual(d,d+i.modifiedLength))break;const h=(t===n&&d===s?5:0)+this._boundaryScore(t,i.originalLength,d,i.modifiedLength);h>l&&(l=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const d=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],d)&&(e[t-1]=d[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const i=e[t-1],n=e[t],s=n.originalStart-i.originalStart-i.originalLength,o=i.originalStart,r=n.originalStart+n.originalLength,a=r-o,l=i.modifiedStart,d=n.modifiedStart+n.modifiedLength,h=d-l;if(s<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(o,a,l,h,s);if(e){const[t,o]=e;t===i.originalStart+i.originalLength&&o===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=o-i.modifiedStart,n.originalStart=t+s,n.modifiedStart=o+s,n.originalLength=r-n.originalStart,n.modifiedLength=d-n.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,n,s){if(t<s||n<s)return null;const o=e+t-s+1,r=i+n-s+1;let a=0,l=0,d=0;for(let h=e;h<o;h++)for(let e=i;e<r;e++){const t=this._contiguousSequenceScore(h,e,s);t>0&&t>a&&(a=t,l=h,d=e)}return a>0?[l,d]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,t+s))return 0;n+=this._originalStringElements[e+s].length}return n}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const s=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(s,o,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e<n)return e;const s=t%2===0;if(e<0){return s===(i%2===0)?0:1}return s===((n-i-1)%2===0)?n-1:n-2}}},16015:(e,t,i)=>{"use strict";i.d(t,{B8:()=>g,Cp:()=>o,F0:()=>h,FU:()=>d,L6:()=>u,b1:()=>c,dL:()=>s,he:()=>m,n2:()=>l,ri:()=>r});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function s(e){l(e)||n.onUnexpectedError(e)}function o(e){l(e)||n.onUnexpectedExternalError(e)}function r(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof d||e instanceof Error&&e.name===a&&e.message===a}class d extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},39706:(e,t,i)=>{"use strict";i.d(t,{D0:()=>b,E7:()=>w,K3:()=>v,Q5:()=>m,SZ:()=>C,Sp:()=>f,ZD:()=>S,ju:()=>d,z5:()=>y});var n=i(16015),s=i(66870),o=i(53186),r=i(64450),a=i(6617);const l=!1;var d;!function(e){function t(e){if(l){const{onDidAddListener:t}=e,i=u.create();let n=0;e.onDidAddListener=()=>{2===++n&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),i.print()),null===t||void 0===t||t()}}}function i(e){return function(t){let i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,arguments.length>2?arguments[2]:void 0),s&&i.dispose(),i}}function n(e,t,i){return r((function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>i.call(n,t(e))),null,arguments.length>2?arguments[2]:void 0)}),i)}function s(e,t,i){return r((function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>t(e)&&i.call(n,e)),null,arguments.length>2?arguments[2]:void 0)}),i)}function r(e,i){let n;const s={onWillAddFirstListener(){n=e(o.fire,o)},onDidRemoveLastListener(){null===n||void 0===n||n.dispose()}};i||t(s);const o=new m(s);return null===i||void 0===i||i.add(o),o.event}function a(e,i){let n,s,o,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],h=arguments.length>6?arguments[6]:void 0,c=0;const u={leakWarningThreshold:arguments.length>5?arguments[5]:void 0,onWillAddFirstListener(){n=e((e=>{c++,s=i(s,e),l&&!o&&(g.fire(s),s=void 0),r=()=>{const e=s;s=void 0,o=void 0,(!l||c>1)&&g.fire(e),c=0},"number"===typeof a?(clearTimeout(o),o=setTimeout(r,a)):void 0===o&&(o=0,queueMicrotask(r))}))},onWillRemoveListener(){d&&c>0&&(null===r||void 0===r||r())},onDidRemoveLastListener(){r=void 0,n.dispose()}};h||t(u);const g=new m(u);return null===h||void 0===h||h.add(g),g.event}e.None=()=>o.JT.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.map=n,e.forEach=function(e,t,i){return r((function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>{t(e),i.call(n,e)}),null,arguments.length>2?arguments[2]:void 0)}),i)},e.filter=s,e.signal=function(e){return e},e.any=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,o.F8)(...t.map((t=>t((t=>e.call(i,t)))))),n)}},e.reduce=function(e,t,i,s){let o=i;return n(e,(e=>(o=t(o,e),o)),s)},e.debounce=a,e.accumulate=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)},e.latch=function(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,t)=>e===t,n=!0;return s(e,(e=>{const s=n||!i(e,t);return n=!1,t=e,s}),arguments.length>2?arguments[2]:void 0)},e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]},e.buffer=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>3?arguments[3]:void 0,n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).slice(),s=e((e=>{n?n.push(e):r.fire(e)}));i&&i.add(s);const o=()=>{null===n||void 0===n||n.forEach((e=>r.fire(e))),n=null},r=new m({onWillAddFirstListener(){s||(s=e((e=>r.fire(e))),i&&i.add(s))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(r),r.event},e.chain=function(e,t){return(i,n,s)=>{const o=t(new h);return e((function(e){const t=o.evaluate(e);t!==d&&i.call(n,t)}),void 0,s)}};const d=Symbol("HaltChainable");class h{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:d)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(e,t)=>e===t,i=!0;return this.steps.push((n=>{const s=i||!t(n,e);return i=!1,e=n,s?n:d})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===d)break;return e}}e.fromNodeEventEmitter=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;const n=function(){return s.fire(i(...arguments))},s=new m({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return s.event},e.fromDOMEventEmitter=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;const n=function(){return s.fire(i(...arguments))},s=new m({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return s.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class c{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(n),this.emitter=new m(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,n)=>{let s=0,r=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),r&&(r=!1,t.call(i)))},handlePossibleChange(){},handleChange(){r=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return n instanceof o.SL?n.add(l):Array.isArray(n)&&n.push(l),l}}}(d||(d={}));class h{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${h._idPool++}`,h.all.add(this)}start(e){this._stopWatch=new a.G,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}h.all=new Set,h._idPool=0;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random().toString(18).slice(2,5);this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(const[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class u{static create(){var e;return new u(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class g{constructor(e){this.value=e}}const p=void 0;class m{constructor(e){var t,i,n,s,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new c(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(s=this._options)||void 0===s?void 0:s._profName)?new h(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,s,r,a,l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),o.JT.None;if(this._disposed)return o.JT.None;t&&(e=e.bind(t));const d=new g(e);let h;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=u.create(),h=this._leakageMon.check(d.stack,this._size+1)),this._listeners?this._listeners instanceof g?(null!==(l=this._deliveryQueue)&&void 0!==l||(this._deliveryQueue=new _),this._listeners=[this._listeners,d]):this._listeners.push(d):(null===(s=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===s||s.call(n,this),this._listeners=d,null===(a=null===(r=this._options)||void 0===r?void 0:r.onDidAddFirstListener)||void 0===a||a.call(r,this)),this._size++;const c=(0,o.OF)((()=>{null===p||void 0===p||p.unregister(c),null===h||void 0===h||h(),this._removeListener(d)}));if(i instanceof o.SL?i.add(c):Array.isArray(i)&&i.push(c),p){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();p.register(c,e,c)}return c}),this._event}_removeListener(e){var t,i,n,s;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(s=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===s||s.call(n,this),void(this._size=0);const o=this._listeners,r=o.indexOf(e);if(-1===r)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[r]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t<o.length;t++)o[t]?o[e++]=o[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);o.length=e}}_deliver(e,t){var i;if(!e)return;const s=(null===(i=this._options)||void 0===i?void 0:i.onListenerError)||n.dL;if(s)try{e.value(t)}catch(o){s(o)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,i,n,s;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(i=this._perfMon)||void 0===i||i.stop()),null===(n=this._perfMon)||void 0===n||n.start(this._size),this._listeners)if(this._listeners instanceof g)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(s=this._perfMon)||void 0===s||s.stop()}hasListeners(){return this._size>0}}const f=()=>new _;class _{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class v extends m{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.S,this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends v{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class C extends m{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null===e||void 0===e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class y{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new m({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,o.OF)((0,s.M)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class w{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class S{constructor(){this.listening=!1,this.inputEvent=d.None,this.inputEventListener=o.JT.None,this.emitter=new m({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},51082:(e,t,i)=>{"use strict";i.d(t,{KM:()=>h,ej:()=>a,fn:()=>l,oP:()=>u,yj:()=>d});var n=i(96682),s=i(90388),o=i(78701);function r(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.KR.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.KR.sep;if(!e)return"";const i=e.length,s=e.charCodeAt(0);if(r(s)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let n=3;const s=n;for(;n<i&&!r(e.charCodeAt(n));n++);if(s!==n&&!r(e.charCodeAt(n+1)))for(n+=1;n<i;n++)if(r(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(c(s)&&58===e.charCodeAt(1))return r(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<i;o++)if(r(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.ir;if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,o.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===s&&i--,e.charAt(i)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.ED)&&(c(e.charCodeAt(0))&&58===e.charCodeAt(1))}},34835:(e,t,i)=>{"use strict";i.d(t,{CL:()=>ie,mX:()=>ne,jB:()=>H,mB:()=>z,EW:()=>se,l7:()=>re,ir:()=>f,Oh:()=>V,XU:()=>W,Ji:()=>p,Sy:()=>_,KZ:()=>A,or:()=>g});var n=i(38079);function s(e){const t=function(e){if(o=0,a(e,l,4352),o>0)return r.subarray(0,o);if(a(e,d,4449),o>0)return r.subarray(0,o);if(a(e,h,4520),o>0)return r.subarray(0,o);if(a(e,c,12593),o)return r.subarray(0,o);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),s=Math.floor(i/28),u=i%28-1;if(n<l.length?a(n,l,0):4352+n-12593<c.length&&a(4352+n,c,12593),s<d.length?a(s,d,0):4449+s-12593<c.length&&a(4449+s-12593,c,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<c.length&&a(4520+u-12593,c,12593)),o>0)return r.subarray(0,o)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let o=0;const r=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;r[o++]=255&e,e>>8&&(r[o++]=e>>8&255);e>>16&&(r[o++]=e>>16&255)}(t[e-i])}const l=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),d=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),c=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(78701);function g(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e,i){for(let n=0,s=t.length;n<s;n++){const s=t[n](e,i);if(s)return s}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let n;return n=e?u.ok(i,t):0===i.indexOf(t),n?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let s=null;return(s=v(e,t,i+1,n+1))?E({start:n,end:n+1},s):null}return v(e,t,i,n+1)}function b(e){return 97<=e&&e<=122}function C(e){return 65<=e&&e<=90}function y(e){return 48<=e&&e<=57}function w(e){return 32===e||9===e||10===e||13===e}const S=new Set;function x(e){return w(e)||S.has(e)}function L(e,t){return e===t||x(e)&&x(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>S.add(e.charCodeAt(0))));const k=new Map;function D(e){if(k.has(e))return k.get(e);let t;const i=s(e);return i&&(t=i),k.set(e,t),t}function N(e){return b(e)||C(e)||y(e)}function E(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function T(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(C(t)||y(t)||i>0&&!N(e.charCodeAt(i-1)))return i}return e.length}function I(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let s=null,o=n+1;for(s=I(e,t,i+1,n+1);!s&&(o=T(t,o))<t.length;)s=I(e,t,i+1,o),o++;return null===s?null:E({start:n,end:n+1},s)}}function M(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,n=0,s=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o),C(n)&&t++,b(n)&&i++,w(n)&&s++;return 0!==t&&0!==i||0!==s?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,n=0,s=0,o=0;for(let r=0;r<e.length;r++)o=e.charCodeAt(r),C(o)&&t++,b(o)&&i++,N(o)&&n++,y(o)&&s++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:n/e.length,numericPercent:s/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:s}=e;return i>.2&&t<.8&&n>.6&&s<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,s=0;for(e=e.toLowerCase();s<t.length&&null===(n=I(e,t,0,s));)s=T(t,s+1);return n}function A(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||0===t.length)return null;let n=null,s=0;for(e=e.toLowerCase(),t=t.toLowerCase();s<t.length&&(n=R(e,t,0,s,i),null===n);)s=O(t,s+1);return n}function R(e,t,i,n,s){let o=0;if(i===e.length)return[];if(n===t.length)return null;if(!L(e.charCodeAt(i),t.charCodeAt(n))){const s=D(e.charCodeAt(i));if(!s)return null;for(let e=0;e<s.length;e++)if(!L(s[e],t.charCodeAt(n+e)))return null;o+=s.length-1}let r=null,a=n+o+1;if(r=R(e,t,i+1,a,s),!s)for(;!r&&(a=O(t,a))<t.length;)r=R(e,t,i+1,a,s),a++;if(!r)return null;if(e.charCodeAt(i)!==t.charCodeAt(n)){const s=D(e.charCodeAt(i));if(!s)return r;for(let e=0;e<s.length;e++)if(s[e]!==t.charCodeAt(n+e))return r}return E({start:n,end:n+o+1},r)}function O(e,t){for(let i=t;i<e.length;i++)if(x(e.charCodeAt(i))||i>0&&x(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,M,f),F=g(p,M,_),B=new n.z6(1e4);function V(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e||"string"!==typeof t)return null;let n=B.get(e);n||(n=new RegExp(u.un(e),"i"),B.set(e,n));const s=n.exec(t);return s?[{start:s.index,end:s.index+s[0].length}]:i?F(e,t):P(e,t)}function W(e,t){const i=se(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?z(i):null}function H(e,t,i,n,s,o){const r=Math.min(13,e.length);for(;i<r;i++){const r=se(e,t,i,n,s,o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(r)return r}return[0,o]}function z(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let n=e.length-1;n>1;n--){const s=e[n]+i,o=t[t.length-1];o&&o.end===s?o.end=s+1:t.push({start:s,end:s+1})}return t}const j=128;function U(){const e=[],t=[];for(let i=0;i<=j;i++)t[i]=0;for(let i=0;i<=j;i++)e.push(t.slice(0));return e}function K(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const q=K(2*j),$=K(2*j),G=U(),Y=U(),Z=U(),Q=!1;function X(e,t,i,n,s){function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";for(;e.length<t;)e=i+e;return e}let r=` | |${n.split("").map((e=>o(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)r+=0===a?" |":`${t[a-1]}|`,r+=e[a].slice(0,s+1).map((e=>o(e.toString(),3))).join("|")+"\n";return r}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.C8(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class ne{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function se(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:ne.default;const a=e.length>j?j:e.length,l=n.length>j?j:n.length;if(i>=a||o>=l||a-i>l-o)return;if(!function(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]&&arguments[6];for(;t<i&&s<o;)e[t]===n[s]&&(r&&(q[t]=s),t+=1),s+=1;return t===i}(t,i,a,s,o,l,!0))return;!function(e,t,i,n,s,o){let r=e-1,a=t-1;for(;r>=i&&a>=n;)s[r]===o[a]&&($[r]=a,r--),a--}(a,l,i,o,t,s);let d=1,h=1,c=i,u=o;const g=[!1];for(d=1,c=i;c<a;d++,c++){const r=q[c],p=$[c],m=c+1<a?$[c+1]:l;for(h=r-o+1,u=r;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=oe(e,t,c,i,n,s,u,l,o,0===G[d-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+Y[d-1][h-1]);const _=u>r,v=_?Y[d][h-1]+(G[d][h-1]>0?-5:0):0,b=u>r+1&&G[d][h-1]>0,C=b?Y[d][h-2]+(G[d][h-2]>0?-5:0):0;if(b&&(!_||C>=v)&&(!m||C>=f))Y[d][h]=C,Z[d][h]=3,G[d][h]=0;else if(_&&(!m||v>=f))Y[d][h]=v,Z[d][h]=2,G[d][h]=0;else{if(!m)throw new Error("not possible");Y[d][h]=f,Z[d][h]=1,G[d][h]=G[d-1][h-1]+1}}}if(Q&&function(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(X(Y,e,e.length,i,i.length)),console.log(X(Z,e,e.length,i,i.length)),console.log(X(G,e,e.length,i,i.length))}(e,i,n,o),!g[0]&&!r.firstMatchCanBeWeak)return;d--,h--;const p=[Y[d][h],o];let m=0,f=0;for(;d>=1;){let e=h;do{const t=Z[d][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+d-1]===s[o+h-1]&&!te(e+o-1,n,s)&&m+1>G[d][e]&&(e=h),e===h?m++:m=1,f||(f=e),d--,h=e-1,p.push(h)}l===a&&r.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function oe(e,t,i,n,s,o,r,a,l,d,h){if(t[i]!==o[r])return Number.MIN_SAFE_INTEGER;let c=1,u=!1;return r===i-n?c=e[i]===s[r]?7:5:!te(r,s,o)||0!==r&&te(r-1,s,o)?!J(o,r)||0!==r&&J(o,r-1)?(J(o,r-1)||ee(o,r-1))&&(c=5,u=!0):c=5:(c=e[i]===s[r]?7:5,u=!0),c>1&&i===n&&(h[0]=!0),u||(u=te(r,s,o)||J(o,r-1)||ee(o,r-1)),i===n?r>l&&(c-=u?3:5):c+=d?u?2:0:u?0:1,r+1===a&&(c-=u?3:5),c}function re(e,t,i,n,s,o,r){return function(e,t,i,n,s,o,r,a){let l=se(e,t,i,n,s,o,a);if(l&&!r)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;r<t;r++){const t=ae(e,r);if(t){const e=se(t,t.toLowerCase(),i,n,s,o,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,i,n,s,o,!0,r)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}ne.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},66870:(e,t,i)=>{"use strict";function n(e,t){const i=this;let n,s=!1;return function(){if(s)return n;if(s=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}i.d(t,{M:()=>n})},27351:(e,t,i)=>{"use strict";i.d(t,{EQ:()=>T,Qc:()=>I});var n=i(53372),s=i(51082),o=i(38079),r=i(96682),a=i(90388),l=i(78701);const d="**",h="/",c="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${c}|${u}+${c}${t?`|${c}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let n=!1,s=!1,o="";for(const r of e){switch(r){case t:if(!n&&!s){i.push(o),o="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}o+=r}return o&&i.push(o),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===d)))t=".*";else{let e=!1;i.forEach(((n,s)=>{if(n===d){if(e)return;t+=p(2,s===i.length-1)}else{let e=!1,o="",r=!1,a="";for(const i of n)if("}"!==i&&e)o+=i;else if(!r||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=`(?:${m(o,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,o="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,l.ec)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,l.ec)(i):"^",a+=e}s<i.length-1&&(i[s+1]!==d||s+2<i.length)&&(t+=c)}e=n===d}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,b=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,C=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,y=/^\*\*((\/[\w\.-]+)+)\/?$/,w=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,S=new o.z6(1e4),x=function(){return!1},L=function(){return null};function k(e,t){if(!e)return L;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const n=`${i}_${!!t.trimForExclusions}`;let s,o=S.get(n);return o||(o=_.test(i)?function(e,t){return function(i,n){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(s=v.exec(N(i,t)))?function(e,t){const i=`/${e}`,n=`\\${e}`,s=function(s,o){return"string"!==typeof s?null:o?o===e?t:null:s===e||s.endsWith(i)||s.endsWith(n)?t:null},o=[e];return s.basenames=o,s.patterns=[t],s.allBasenames=o,s}(s[1],i):(t.trimForExclusions?C:b).test(i)?function(e,t){const i=M(e.slice(1,-1).split(",").map((e=>k(e,t))).filter((e=>e!==L)),e),n=i.length;if(!n)return L;if(1===n)return i[0];const s=function(t,n){for(let s=0,o=i.length;s<o;s++)if(i[s](t,n))return e;return null},o=i.find((e=>!!e.allBasenames));o&&(s.allBasenames=o.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);r.length&&(s.allPaths=r);return s}(i,t):(s=y.exec(N(i,t)))?E(s[1].substr(1),i,!0):(s=w.exec(N(i,t)))?E(s[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return L}}(i),S.set(n,o)),D(o,e)}function D(e,t){if("string"===typeof t)return e;const i=function(i,n){return(0,s.KM)(i,t.base,!a.IJ)?e((0,l.j3)(i.substr(t.base.length),r.ir),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function E(e,t,i){const n=r.ir===r.KR.sep,s=n?e:e.replace(g,r.ir),o=r.ir+s,a=r.KR.sep+e;let l;return l=i?function(i,r){return"string"!==typeof i||i!==s&&!i.endsWith(o)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,o){return"string"!==typeof i||i!==s&&(n||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function T(e,t,i){return!(!e||"string"!==typeof t)&&I(e)(t,void 0,i)}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return x;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=k(e,t);if(i===L)return x;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=M(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return L;const s=k(e,i);if(s===L)return L;if("boolean"===typeof t)return s;if(t){const i=t.when;if("string"===typeof i){const t=(t,o,r,a)=>{if(!a||!s(t,o))return null;const l=a(i.replace("$(basename)",(()=>r)));return(0,n.J8)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return s}(i,e[i],t))).filter((e=>e!==L))),s=i.length;if(!s)return L;if(!i.some((e=>!!e.requiresSiblings))){if(1===s)return i[0];const e=function(e,t){let s;for(let o=0,r=i.length;o<r;o++){const r=i[o](e,t);if("string"===typeof r)return r;(0,n.J8)(r)&&(s||(s=[]),s.push(r))}return s?(async()=>{for(const e of s){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,s){let o,a;for(let l=0,d=i.length;l<d;l++){const d=i[l];d.requiresSiblings&&s&&(t||(t=(0,r.EZ)(e)),o||(o=t.substr(0,t.length-(0,r.DZ)(e).length)));const h=d(e,t,o,s);if("string"===typeof h)return h;(0,n.J8)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(o.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(o.allPaths=l);return o}(e,t)}function M(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let s;if(t){s=[];for(let e=0,i=n.length;e<i;e++)s.push(t)}else s=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const o=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?s[i]:null};o.basenames=n,o.patterns=s,o.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(o),r}},95075:(e,t,i)=>{"use strict";i.d(t,{Cv:()=>a,SP:()=>o,vp:()=>s,yP:()=>c});var n=i(78701);function s(e){return o(e,0)}function o(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>o(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),o(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i<n;i++)t=r(e.charCodeAt(i),t);return t}function l(e,t){const i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:32)-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(let s=0;s<i;s++)e[t+s]=n}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let s,o,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(s=a,o=-1,a=0):(s=e.charCodeAt(0),o=0);;){let l=s;if(n.ZG(s)){if(!(o+1<t)){a=s;break}{const t=e.charCodeAt(o+1);n.YK(t)?(o++,l=n.rL(s,t)):l=65533}}else n.YK(s)&&(l=65533);if(r=this._push(i,r,l),o++,!(o<t))break;s=e.charCodeAt(o)}this._buffLen=r,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let l=0;l<64;l+=4)e.setUint32(l,t.getUint32(l,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,l(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let i,n,s,o=this._h0,r=this._h1,a=this._h2,d=this._h3,h=this._h4;for(let c=0;c<80;c++)c<20?(i=r&a|~r&d,n=1518500249):c<40?(i=r^a^d,n=1859775393):c<60?(i=r&a|r&d|a&d,n=2400959708):(i=r^a^d,n=3395469782),s=l(o,5)+i+h+n+e.getUint32(4*c,!1)&4294967295,h=d,d=a,a=l(r,30),r=o,o=s;this._h0=this._h0+o&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+h&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},34277:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+n.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return new n((this.value?[this.value,...t]:t).join(n.sep))}}n.sep=".",n.None=new n("@@none@@"),n.Empty=new n("")},73971:(e,t,i)=>{"use strict";i.d(t,{CP:()=>d,Fr:()=>h,W5:()=>l,d9:()=>u,g_:()=>c,oR:()=>g,v1:()=>p});var n=i(16015),s=i(77048),o=i(30506),r=i(78701),a=i(91387);class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i,s,o;if(this.value=e,"string"!==typeof this.value)throw(0,n.b1)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(s=t.supportThemeIcons)&&void 0!==s&&s,this.supportHtml=null!==(o=t.supportHtml)&&void 0!==o&&o)}appendText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var i;return this.value+=(i=this.supportThemeIcons?(0,s.Qo)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){var i,n;const s=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,o=s>=3?s+1:3;return[`${"`".repeat(o)}${t}`,e,`${"`".repeat(o)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,r.ec)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function d(e){return h(e)?!e.value:!Array.isArray(e)||e.every(d)}function h(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function c(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,o.Xy)(a.o.from(e.baseUri),a.o.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),s=e?e[1]:"",o=i?i[1]:"",r=isFinite(parseInt(o)),a=isFinite(parseInt(s));r&&t.push(`width="${o}"`),a&&t.push(`height="${s}"`)}return{href:e,dimensions:t}}},77048:(e,t,i)=>{"use strict";i.d(t,{Gt:()=>_,Ho:()=>f,JL:()=>p,Qo:()=>d,f$:()=>c,x$:()=>g});var n=i(34835),s=i(78701),o=i(73045);const r="$(",a=new RegExp(`\\$\\(${o.k.iconNameExpression}(?:${o.k.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function d(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function c(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${o.k.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let n=0;for(;;){const s=m.lastIndex,o=m.exec(e),r=e.substring(s,null===o||void 0===o?void 0:o.index);if(r.length>0){t+=r;for(let e=0;e<r.length;e++)i.push(n)}if(!o)break;n+=o[0].length}return{text:t,iconOffsets:i}}function _(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{text:o,iconOffsets:r}=t;if(!r||0===r.length)return(0,n.Oh)(e,o,i);const a=(0,s.j3)(o," "),l=o.length-a.length,d=(0,n.Oh)(e,a,i);if(d)for(const n of d){const e=r[n.start+l]+l;n.start+=e,n.end+=e}return d}},30441:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,a:()=>s});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const s=new n("id#")},11052:(e,t,i)=>{"use strict";i.d(t,{F:()=>s});var n=i(39706);const s=new class{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},2706:(e,t,i)=>{"use strict";var n;i.d(t,{$:()=>n}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.concat=function*(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const n of t)yield*n},e.reduce=function(e,t,i){let n=i;for(const s of e)n=t(n,s);return n},e.slice=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return function*(){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]}()},e.consume=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;const n=[];if(0===i)return[n,t];const s=t[Symbol.iterator]();for(let o=0;o<i;o++){const t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(n||(n={}))},17344:(e,t,i)=>{"use strict";i.d(t,{H_:()=>a,Vd:()=>u,gx:()=>m,kL:()=>p});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const s=new n,o=new n,r=new n,a=new Array(230),l={},d=[],h=Object.create(null),c=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const p of t){const[e,t,m,f,_,v,b,C,y]=p;if(n[t]||(n[t]=!0,d[t]=m,h[m]=t,c[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);s.define(f,_),o.define(f,C||_),r.define(f,y||C||_)}v&&(a[v]=f),b&&(l[b]=f)}g[3]=46}(),function(e){e.toString=function(e){return s.keyCodeToStr(e)},e.fromString=function(e){return s.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return s.keyCodeToStr(e)}}(p||(p={}))},47202:(e,t,i)=>{"use strict";i.d(t,{X4:()=>r,jC:()=>a,r6:()=>l,xo:()=>o});var n=i(5887);class s{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=i(o);if(null===r)return null;n[s]=d(o,r,this.modifierLabels[e])}return n.join(" ")}}const o=new s({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:n.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),r=new s({ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:n.NC({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new s({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),l=new s({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function d(e,t,i){if(null===t)return"";const n=[];return e.ctrlKey&&n.push(i.ctrlKey),e.shiftKey&&n.push(i.shiftKey),e.altKey&&n.push(i.altKey),e.metaKey&&n.push(i.metaKey),""!==t&&n.push(t),n.join(i.separator)}},91811:(e,t,i)=>{"use strict";i.d(t,{$M:()=>r,Z9:()=>s,aZ:()=>l,f1:()=>d});var n=i(16015);function s(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[o(i,t),o(n,t)]:[o(i,t)])}{const i=[];for(let n=0;n<e.length;n++)i.push(o(e[n],t));return new a(i)}}function o(e,t){const i=!!(2048&e),n=!!(256&e);return new r(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}class r{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s}equals(e){return e instanceof r&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,n.b1)("chords");this.chords=e}}class l{constructor(e,t,i,n,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=o}}class d{}},20447:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},53186:(e,t,i)=>{"use strict";i.d(t,{B9:()=>c,F8:()=>u,JT:()=>m,Jz:()=>v,L6:()=>_,Nq:()=>a,OF:()=>g,SL:()=>p,Wf:()=>h,XK:()=>f,b2:()=>b,dk:()=>d,wi:()=>r});var n=i(66870),s=i(2706);let o=null;function r(e){return null===o||void 0===o||o.trackDisposable(e),e}function a(e){null===o||void 0===o||o.markAsDisposed(e)}function l(e,t){null===o||void 0===o||o.setParent(e,t)}function d(e){return null===o||void 0===o||o.markAsSingleton(e),e}function h(e){return"function"===typeof e.dispose&&0===e.dispose.length}function c(e){if(s.$.is(e)){const i=[];for(const n of e)if(n)try{n.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=g((()=>c(t)));return function(e,t){if(o)for(const i of e)o.setParent(i,t)}(t,n),n}function g(e){const t=r({dispose:(0,n.M)((()=>{a(t),e()}))});return t}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,r(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}p.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new p,r(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,r(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,a(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class b{constructor(){this._store=new Map,this._isDisposed=!1,r(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},64450:(e,t,i)=>{"use strict";i.d(t,{S:()=>s});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class s{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},38079:(e,t,i)=>{"use strict";var n,s;i.d(t,{Y9:()=>r,YQ:()=>d,ri:()=>h,z6:()=>l});class o{constructor(e,t){this.uri=e,this.value=t}}class r{constructor(e,t){if(this[n]="ResourceMap",e instanceof r)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:r.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:r.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:r.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new o(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}r.defaultToKey=e=>e.toString();class a{constructor(){this[s]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(s=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class l extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class h{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},33080:(e,t,i)=>{"use strict";i.d(t,{Pz:()=>o,Qc:()=>r});var n=i(9730),s=i(91387);function o(e){return JSON.stringify(e,a)}function r(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return s.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=l(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=l(e[i],t+1))}return e}},90255:(e,t,i)=>{"use strict";i.d(t,{v:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},32060:(e,t,i)=>{"use strict";i.d(t,{Gi:()=>g,Gs:()=>h,WX:()=>c,lg:()=>n,xn:()=>d});var n,s=i(16015),o=i(90388),r=i(78701),a=i(91387),l=i(96682);function d(e,t){return a.o.isUri(e)?(0,r.qq)(e.scheme,t):(0,r.ok)(e,t+":")}function h(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return i.some((t=>d(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.codeSetting="code-setting"}(n||(n={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.KR.join(this._serverRootPath,n.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return s.dL(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const r=this._ports[t],l=this._connectionTokens[t];let d=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(d+=`&tkn=${encodeURIComponent(l)}`),a.o.from({scheme:o.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:d})}};class u{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?c.rewrite(e):e.scheme!==n.file||!o.tY&&o.qB!==`${n.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:n.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}}u.FALLBACK_AUTHORITY="vscode-app";const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"===typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:a.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const s=null===n||void 0===n?void 0:n.get(i);if(s)return t.get(s)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const s=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,s):e[i]=s}}(p||(p={}))},56155:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{N:()=>o,nM:()=>s,uZ:()=>n});class s{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class o{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},53335:(e,t,i)=>{"use strict";i.d(t,{$E:()=>c,I8:()=>s,IU:()=>u,_A:()=>o,fS:()=>h,jB:()=>d,rs:()=>a});var n=i(47624);function s(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((e=>{let[i,n]=e;t[i]=n&&"object"===typeof n?s(n):n})),t}function o(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const s=e[i];"object"!==typeof s||Object.isFrozen(s)||(0,n.fU)(s)||t.push(s)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const s=t(e);if("undefined"!==typeof s)return s;if(Array.isArray(e)){const n=[];for(const s of e)n.push(l(s,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const s in e)r.call(e,s)&&(n[s]=l(e[s],t,i));return i.delete(e),n}return e}function d(e,t){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((s=>{s in e?i&&((0,n.Kn)(e[s])&&(0,n.Kn)(t[s])?d(e[s],t[s],i):e[s]=t[s]):e[s]=t[s]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const s=[];for(n in e)s.push(n);s.sort();const o=[];for(n in t)o.push(n);if(o.sort(),!h(s,o))return!1;for(i=0;i<s.length;i++)if(!h(e[s[i]],t[s[i]]))return!1}return!0}function c(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const s of e)n[s]=i(s);return n}},43704:(e,t,i)=>{"use strict";i.d(t,{EH:()=>d,nJ:()=>c,UV:()=>h,gp:()=>u,Dz:()=>p.Dz,nK:()=>s.nK,aK:()=>s.aK,bx:()=>p.bx,bk:()=>s.bk,Be:()=>s.Be,DN:()=>n.DN,rD:()=>p.rD,GN:()=>p.GN,aq:()=>p.aq,uh:()=>n.uh,jx:()=>p.DN,c8:()=>n.c8,PS:()=>n.PS,F_:()=>m});var n=i(82297),s=i(205),o=i(56702),r=i(53186),a=i(38530),l=i(91870);function d(e){return new g(new a.IZ(void 0,void 0,e),e,void 0,void 0)}function h(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function c(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e){const t=new r.SL,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,r.OF)((()=>{i.dispose(),t.dispose()}))}class g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var s,o;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(s=this.createChangeSummary)||void 0===s?void 0:s.call(this),null===(o=(0,l.jl)())||void 0===o||o.handleAutorunCreated(this),this._runIfNeeded(),(0,r.wi)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.Nq)(this)}_runIfNeeded(){var e,t,i;if(3===this.state)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const s=this.disposed;try{if(!s){null===(e=(0,l.jl)())||void 0===e||e.handleAutorunTriggered(this);const i=this.changeSummary;this.changeSummary=null===(t=this.createChangeSummary)||void 0===t?void 0:t.call(this),this._runFn(this,i)}}finally{s||null===(i=(0,l.jl)())||void 0===i||i.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,o.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=g}(d||(d={}));var p=i(92441);function m(e,t,i){return new Promise(((n,s)=>{let o=!0,r=!1;const a=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),l=d((e=>{const{isFinished:t,error:i,state:d}=a.read(e);(t||i)&&(o?r=!0:l.dispose(),i?s(!0===i?d:i):n(d))}));o=!1,r&&l.dispose()}))}},82297:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>m,DN:()=>y,Hr:()=>f,Jn:()=>h,MK:()=>d,Nc:()=>u,PS:()=>p,c8:()=>_,hm:()=>g,mT:()=>c,uh:()=>b});var n=i(38530),s=i(91870);let o,r,a,l;function d(e){o=e}function h(e){r=e}function c(e){a=e}class u{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return a({owner:i,debugName:()=>{const e=(0,n.$P)(s);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`}},(e=>s(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}}class g extends u{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function p(e,t){const i=new v(e,t);try{e(i)}finally{i.finish()}}function m(e){if(l)e(l);else{const t=new v(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function f(e,t){const i=new v(e,t);try{await e(i)}finally{i.finish()}}function _(e,t,i){e?t(e):p(t,i)}class v{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,s.jl)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.$P)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let i=0;i<t.length;i++){const{observer:e,observable:n}=t[i];e.endUpdate(n)}this.updatingObservers=null,null===(e=(0,s.jl)())||void 0===e||e.handleEndTransaction()}}function b(e,t){return"string"===typeof e?new C(void 0,e,t):new C(e,void 0,t)}class C extends g{get debugName(){var e;return null!==(e=new n.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"ObservableValue"}constructor(e,t,i){super(),this._owner=e,this._debugName=t,this._value=i}get(){return this._value}set(e,t,i){var n;if(this._value===e)return;let o;t||(t=o=new v((()=>{}),(()=>`Setting ${this.debugName}`)));try{const o=this._value;this._setValue(e),null===(n=(0,s.jl)())||void 0===n||n.handleObservableChanged(this,{oldValue:o,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{o&&o.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function y(e,t){return"string"===typeof e?new w(void 0,e,t):new w(e,void 0,t)}class w extends C{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},38530:(e,t,i)=>{"use strict";i.d(t,{$P:()=>l,IZ:()=>n});class n{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){var i;const n=o.get(e);if(n)return n;const d=function(e,t){const i=o.get(e);if(i)return i;const n=t.owner?function(e){var t;const i=a.get(e);if(i)return i;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=null!==(t=r.get(n))&&void 0!==t?t:0;s++,r.set(n,s);const o=1===s?n:`${n}#${s}`;return a.set(e,o),o}(t.owner)+".":"";let s;const d=t.debugNameSource;if(void 0!==d){if("function"!==typeof d)return n+d;if(s=d(),void 0!==s)return n+s}const h=t.referenceFn;if(void 0!==h&&(s=l(h),void 0!==s))return n+s;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return n+i}return}(e,t);if(d){let t=null!==(i=s.get(d))&&void 0!==i?i:0;t++,s.set(d,t);const n=1===t?d:`${d}#${t}`;return o.set(e,n),n}return}(e,this)}}const s=new Map,o=new WeakMap;const r=new Map,a=new WeakMap;function l(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return null===n||void 0===n?void 0:n.trim()}},205:(e,t,i)=>{"use strict";i.d(t,{Be:()=>u,aK:()=>c,bk:()=>h,kA:()=>g,nK:()=>d});var n=i(56702),s=i(53186),o=i(82297),r=i(38530),a=i(91870);const l=(e,t)=>e===t;function d(e,t){return void 0!==t?new p(new r.IZ(e,void 0,t),t,void 0,void 0,void 0,l):new p(new r.IZ(void 0,void 0,e),e,void 0,void 0,void 0,l)}function h(e,t){var i;return new p(new r.IZ(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function c(e,t){var i;return new p(new r.IZ(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function u(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new s.SL;return new p(new r.IZ(n,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),l)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new s.SL;return new p(new r.IZ(n,void 0,i),(e=>{o.clear();const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>o.dispose()),l)}(0,o.mT)(h);class p extends o.hm{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;var r,l;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=s,this._equalityComparator=o,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(r=this.createChangeSummary)||void 0===r?void 0:r.call(this),null===(l=(0,a.jl)())||void 0===l||l.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=0!==this.state,s=this.value;this.state=3;const o=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,o)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=n&&!this._equalityComparator(s,this.value);if(null===(t=(0,a.jl)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:s,newValue:this.value,change:void 0,didChange:r,hadValue:n}),r)for(const a of this.observers)a.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}},91870:(e,t,i)=>{"use strict";let n;function s(e){n=e}function o(){return n}i.d(t,{EK:()=>s,Qy:()=>r,jl:()=>o});class r{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let n="";function s(e){if("length"in e)for(const t of e)t&&s(t);else"text"in e?(n+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}s(e);const o=[n,...t];return o.push(...i),o}([a(c("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),d(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),d(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),d(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return d(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("derived recomputed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([l("observable from event triggered"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("autorun"),d(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([l("transaction"),d(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return d(e,{color:"black"})}function l(e){return d(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{color:"black"};const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(n=i,Object.entries(n).reduce(((e,t)=>{let[i,n]=t;return`${e}${i}:${n};`}),""))};var n}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",n=!0;for(const s of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${h(s,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",n=!0;for(const[s,o]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${s}: ${h(o,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function c(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}},92441:(e,t,i)=>{"use strict";i.d(t,{DN:()=>f,Dz:()=>l,GN:()=>p,Zg:()=>b,aq:()=>u,bx:()=>v,rD:()=>h});var n=i(53186),s=i(82297),o=i(38530),r=i(205),a=i(91870);function l(e){return new d(e)}class d extends s.Nc{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function h(e,t){return new c(e,t)}class c extends s.hm{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,o=!this.hasValue||n!==i;let r=!1;o&&(this.value=i,this.hasValue&&(r=!0,(0,s.c8)(c.globalTransaction,(e=>{var t;null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue});for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue})}}getDebugName(){return(0,o.$P)(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function u(e,t){return new g(e,t)}!function(e){e.Observer=c,e.batchEventsGlobally=function(e,t){let i=!1;void 0===c.globalTransaction&&(c.globalTransaction=e,i=!0);try{t()}finally{i&&(c.globalTransaction=void 0)}}}(h||(h={}));class g extends s.hm{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,s.PS)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function p(e){return"string"===typeof e?new m(e):new m(void 0,e)}class m extends s.hm{get debugName(){var e;return null!==(e=new o.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,s.PS)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function f(e,t){const i=new _(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.OF)((()=>{e.removeObserver(i)}))}(0,s.Jn)((function(e){const t=new _(!1,void 0);return e.addObserver(t),(0,n.OF)((()=>{e.removeObserver(t)}))})),(0,s.MK)(f);class _{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function v(e){let t;return(0,r.nK)((i=>(t=e(i,t),t)))}function b(e,t,i,n){let s=new C(i,n);return(0,r.bk)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{s.dispose(),s=new C(i)}},(e=>(s.setItems(t.read(e)),s.getItems())))}class C{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const s of e){const e=this._keySelector?this._keySelector(s):s;let o=this._cache.get(e);if(o)i.delete(e);else{const t=new n.SL;o={out:this._map(s,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(const n of i){this._cache.get(n).store.dispose(),this._cache.delete(n)}this._items=t}getItems(){return this._items}}},96682:(e,t,i)=>{"use strict";i.d(t,{DB:()=>x,DZ:()=>N,EZ:()=>D,Fv:()=>S,Gf:()=>L,KR:()=>w,Ku:()=>C,XX:()=>k,ir:()=>E});var n=i(3739);const s=65,o=97,r=90,a=122,l=46,d=47,h=92,c=58;class u extends Error{constructor(e,t,i){let n;"string"===typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${s} ${n} of type ${t}`;o+=". Received type "+typeof i,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const p="win32"===n.Jv;function m(e){return e===d||e===h}function f(e){return e===d}function _(e){return e>=s&&e<=r||e>=o&&e<=a}function v(e,t,i,n){let s="",o=0,r=-1,a=0,h=0;for(let c=0;c<=e.length;++c){if(c<e.length)h=e.charCodeAt(c);else{if(n(h))break;h=d}if(n(h)){if(r===c-1||1===a);else if(2===a){if(s.length<2||2!==o||s.charCodeAt(s.length-1)!==l||s.charCodeAt(s.length-2)!==l){if(s.length>2){const e=s.lastIndexOf(i);-1===e?(s="",o=0):(s=s.slice(0,e),o=s.length-1-s.lastIndexOf(i)),r=c,a=0;continue}if(0!==s.length){s="",o=0,r=c,a=0;continue}}t&&(s+=s.length>0?`${i}..`:"..",o=2)}else s.length>0?s+=`${i}${e.slice(r+1,c)}`:s=e.slice(r+1,c),o=c-r-1;r=c,a=0}else h===l&&-1!==a?++a:a=-1}return s}function b(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const C={resolve(){let e="",t="",i=!1;for(let s=arguments.length-1;s>=-1;s--){let o;if(s>=0){if(o=s<0||arguments.length<=s?void 0:arguments[s],g(o,"path"),0===o.length)continue}else 0===e.length?o=n.Vj():(o={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${e}`]||n.Vj(),(void 0===o||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===h)&&(o=`${e}\\`));const r=o.length;let a=0,l="",d=!1;const u=o.charCodeAt(0);if(1===r)m(u)&&(a=1,d=!0);else if(m(u))if(d=!0,m(o.charCodeAt(1))){let e=2,t=e;for(;e<r&&!m(o.charCodeAt(e));)e++;if(e<r&&e!==t){const i=o.slice(t,e);for(t=e;e<r&&m(o.charCodeAt(e));)e++;if(e<r&&e!==t){for(t=e;e<r&&!m(o.charCodeAt(e));)e++;e!==r&&e===t||(l=`\\\\${i}\\${o.slice(t,e)}`,a=e)}}}else a=1;else _(u)&&o.charCodeAt(1)===c&&(l=o.slice(0,2),a=2,r>2&&m(o.charCodeAt(2))&&(d=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=d,d&&e.length>0)break}return t=v(t,!i,"\\",m),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let i,n=0,s=!1;const o=e.charCodeAt(0);if(1===t)return f(o)?"\\":e;if(m(o))if(s=!0,m(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!m(e.charCodeAt(s));)s++;if(s<t&&s!==o){const r=e.slice(o,s);for(o=s;s<t&&m(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&!m(e.charCodeAt(s));)s++;if(s===t)return`\\\\${r}\\${e.slice(o)}\\`;s!==o&&(i=`\\\\${r}\\${e.slice(o,s)}`,n=s)}}}else n=1;else _(o)&&e.charCodeAt(1)===c&&(i=e.slice(0,2),n=2,t>2&&m(e.charCodeAt(2))&&(s=!0,n=3));let r=n<t?v(e.slice(n),!s,"\\",m):"";return 0!==r.length||s||(r="."),r.length>0&&m(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?s?`\\${r}`:r:s?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return m(i)||t>2&&_(i)&&e.charCodeAt(1)===c&&m(e.charCodeAt(2))},join(){if(0===arguments.length)return".";let e,t;for(let s=0;s<arguments.length;++s){const i=s<0||arguments.length<=s?void 0:arguments[s];g(i,"path"),i.length>0&&(void 0===e?e=t=i:e+=`\\${i}`)}if(void 0===e)return".";let i=!0,n=0;if("string"===typeof t&&m(t.charCodeAt(0))){++n;const e=t.length;e>1&&m(t.charCodeAt(1))&&(++n,e>2&&(m(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n<e.length&&m(e.charCodeAt(n));)n++;n>=2&&(e=`\\${e.slice(n)}`)}return C.normalize(e)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const i=C.resolve(e),n=C.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===h;)s++;let o=e.length;for(;o-1>s&&e.charCodeAt(o-1)===h;)o--;const r=o-s;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const d=l-a,c=r<d?r:d;let u=-1,p=0;for(;p<c;p++){const i=e.charCodeAt(s+p);if(i!==t.charCodeAt(a+p))break;i===h&&(u=p)}if(p!==c){if(-1===u)return n}else{if(d>c){if(t.charCodeAt(a+p)===h)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}r>c&&(e.charCodeAt(s+p)===h?u=p:2===p&&(u=3)),-1===u&&(u=0)}let m="";for(p=s+u+1;p<=o;++p)p!==o&&e.charCodeAt(p)!==h||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${n.slice(a,l)}`:(n.charCodeAt(a)===h&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=C.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===c&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const s=e.charCodeAt(0);if(1===t)return m(s)?e:".";if(m(s)){if(i=n=1,m(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!m(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&m(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&!m(e.charCodeAt(s));)s++;if(s===t)return e;s!==o&&(i=n=s+1)}}}}else _(s)&&e.charCodeAt(1)===c&&(i=t>2&&m(e.charCodeAt(2))?3:2,n=i);let o=-1,r=!0;for(let a=t-1;a>=n;--a)if(m(e.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,s=-1,o=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===c&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(m(l)){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(m(e.charCodeAt(i))){if(!o){n=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname(e){g(e,"path");let t=0,i=-1,n=0,s=-1,o=!0,r=0;e.length>=2&&e.charCodeAt(1)===c&&_(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!o){n=a+1;break}}else-1===s&&(o=!1,s=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===s||0===r||1===r&&i===s-1&&i===n+1?"":e.slice(i,s)},format:b.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,s=e.charCodeAt(0);if(1===i)return m(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(s)){if(n=1,m(e.charCodeAt(1))){let t=2,s=t;for(;t<i&&!m(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&m(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&!m(e.charCodeAt(t));)t++;t===i?n=t:t!==s&&(n=t+1)}}}}else if(_(s)&&e.charCodeAt(1)===c){if(i<=2)return t.root=t.dir=e,t;if(n=2,m(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let o=-1,r=n,a=-1,d=!0,h=e.length-1,u=0;for(;h>=n;--h)if(s=e.charCodeAt(h),m(s)){if(!d){r=h+1;break}}else-1===a&&(d=!1,a=h+1),s===l?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1);return-1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,o),t.base=e.slice(r,a),t.ext=e.slice(o,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y=(()=>{if(p){const e=/\\/g;return()=>{const t=n.Vj().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n.Vj()})(),w={resolve(){let e="",t=!1;for(let i=arguments.length-1;i>=-1&&!t;i--){const n=i>=0?i<0||arguments.length<=i?void 0:arguments[i]:y();g(n,"path"),0!==n.length&&(e=`${n}/${e}`,t=n.charCodeAt(0)===d)}return e=v(e,!t,"/",f),t?`/${e}`:e.length>0?e:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===d,i=e.charCodeAt(e.length-1)===d;return 0===(e=v(e,!t,"/",f)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===d),join(){if(0===arguments.length)return".";let e;for(let t=0;t<arguments.length;++t){const i=t<0||arguments.length<=t?void 0:arguments[t];g(i,"path"),i.length>0&&(void 0===e?e=i:e+=`/${i}`)}return void 0===e?".":w.normalize(e)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=w.resolve(e))===(t=w.resolve(t)))return"";const i=e.length,n=i-1,s=t.length-1,o=n<s?n:s;let r=-1,a=0;for(;a<o;a++){const i=e.charCodeAt(1+a);if(i!==t.charCodeAt(1+a))break;i===d&&(r=a)}if(a===o)if(s>o){if(t.charCodeAt(1+a)===d)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(e.charCodeAt(1+a)===d?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==d||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===d;let i=-1,n=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===d){if(!n){i=s;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===d){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===d){if(!o){n=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname(e){g(e,"path");let t=-1,i=0,n=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==d)-1===n&&(s=!1,n=r+1),a===l?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){i=r+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:b.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===d;let n;i?(t.root="/",n=1):n=0;let s=-1,o=0,r=-1,a=!0,h=e.length-1,c=0;for(;h>=n;--h){const t=e.charCodeAt(h);if(t!==d)-1===r&&(a=!1,r=h+1),t===l?-1===s?s=h:1!==c&&(c=1):-1!==s&&(c=-1);else if(!a){o=h+1;break}}if(-1!==r){const n=0===o&&i?1:o;-1===s||0===c||1===c&&s===r-1&&s===o+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,s),t.base=e.slice(n,r),t.ext=e.slice(s,r))}return o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=C.win32=C,w.posix=C.posix=w;const S=p?C.normalize:w.normalize,x=p?C.resolve:w.resolve,L=p?C.relative:w.relative,k=p?C.dirname:w.dirname,D=p?C.basename:w.basename,N=p?C.extname:w.extname,E=p?C.sep:w.sep},90388:(e,t,i)=>{"use strict";i.d(t,{$L:()=>I,Dt:()=>$,ED:()=>D,G6:()=>K,IJ:()=>E,OS:()=>V,dK:()=>P,dz:()=>N,fn:()=>B,gn:()=>A,i7:()=>j,qB:()=>M,r:()=>z,tY:()=>T,tq:()=>R,un:()=>q,vU:()=>U});var n,s,o=i(5887);const r="en";let a,l,d=!1,h=!1,c=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=!1,v=!1,b=r,C=null,y=null;const w=globalThis;let S;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?S=w.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(n=null===process||void 0===process?void 0:process.versions)||void 0===n?void 0:n.node)&&(S=process);const x="string"===typeof(null===(s=null===S||void 0===S?void 0:S.versions)||void 0===s?void 0:s.electron),L=x&&"renderer"===(null===S||void 0===S?void 0:S.type);if("object"===typeof S){d="win32"===S.platform,h="darwin"===S.platform,c="linux"===S.platform,u=c&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,m=x,_=!!S.env.CI||!!S.env.BUILD_ARTIFACTSTAGINGDIRECTORY,a=r,b=r;const e=S.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];a=t.locale,C=t.osLocale,b=i||r,y=t._translationsConfigFile}catch(G){}g=!0}else if("object"!==typeof navigator||L)console.error("Unable to resolve platform.");else{l=navigator.userAgent,d=l.indexOf("Windows")>=0,h=l.indexOf("Macintosh")>=0,f=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=l.indexOf("Linux")>=0,v=(null===l||void 0===l?void 0:l.indexOf("Mobi"))>=0,p=!0;a=o.aj(o.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||r,b=a,C=navigator.language}let k=0;h?k=1:d?k=3:c&&(k=2);const D=d,N=h,E=c,T=g,I=p,M=p&&"function"===typeof w.importScripts?w.origin:void 0,A=f,R=v,O=l,P=b,F="function"===typeof w.postMessage&&!w.importScripts,B=(()=>{if(F){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i<n;i++){const n=e[i];if(n.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void n.callback()}}));let t=0;return i=>{const n=++t;e.push({id:n,callback:i}),w.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),V=h||f?2:d?1:3;let W=!0,H=!1;function z(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);W=513===t[0]}return W}const j=!!(O&&O.indexOf("Chrome")>=0),U=!!(O&&O.indexOf("Firefox")>=0),K=!!(!j&&O&&O.indexOf("Safari")>=0),q=!!(O&&O.indexOf("Edg/")>=0),$=!!(O&&O.indexOf("Android")>=0)},3739:(e,t,i)=>{"use strict";i.d(t,{Jv:()=>l,OB:()=>a,Vj:()=>r});var n=i(90388);let s;const o=globalThis.vscode;if("undefined"!==typeof o&&"undefined"!==typeof o.process){const e=o.process;s={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else s="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return n.ED?"win32":n.dz?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const r=s.cwd,a=s.env,l=s.platform},32906:(e,t,i)=>{"use strict";var n;i.d(t,{e:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],s={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return i(s)||n.push(s),i(o)||n.push(o),n}}(n||(n={}))},30506:(e,t,i)=>{"use strict";i.d(t,{AH:()=>v,DZ:()=>m,EZ:()=>p,Hx:()=>g,SF:()=>c,Vb:()=>S,Vo:()=>_,XX:()=>f,Xy:()=>u,i3:()=>C,lX:()=>b,z_:()=>d});var n=i(51082),s=i(32060),o=i(96682),r=i(90388),a=i(78701),l=i(91387);function d(e){return(0,l.q)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t?0:(0,a.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.scheme===t.scheme){if(e.scheme===s.lg.file)return n.KM(d(e),d(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(y(e.authority,t.authority))return n.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return l.o.joinPath(e,...i)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return o.KR.basename(e.path)}extname(e){return o.KR.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===s.lg.file?t=l.o.file(o.XX(d(e))).path:(t=o.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===s.lg.file?l.o.file(o.Fv(d(e))).path:o.KR.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!y(e.authority,t.authority))return;if(e.scheme===s.lg.file){const i=o.Gf(d(e),d(t));return r.ED?n.ej(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return o.KR.relative(i,a)}resolvePath(e,t){if(e.scheme===s.lg.file){const i=l.o.file(o.DB(d(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.fn(t),e.with({path:o.KR.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.qq)(e,t)}hasTrailingPathSeparator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ir;if(e.scheme===s.lg.file){const i=d(e);return i.length>n.yj(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ir;return w(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ir,i=!1;if(e.scheme===s.lg.file){const s=d(e);i=void 0!==s&&s.length===n.yj(s).length&&s[s.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||w(e,t)?e:e.with({path:e.path+"/"})}}const c=new h((()=>!1)),u=(new h((e=>e.scheme!==s.lg.file||!r.IJ)),new h((e=>!0)),c.isEqual.bind(c)),g=(c.isEqualOrParent.bind(c),c.getComparisonKey.bind(c),c.basenameOrAuthority.bind(c)),p=c.basename.bind(c),m=c.extname.bind(c),f=c.dirname.bind(c),_=c.joinPath.bind(c),v=c.normalizePath.bind(c),b=c.relativePath.bind(c),C=c.resolvePath.bind(c),y=(c.isAbsolutePath.bind(c),c.isEqualAuthority.bind(c)),w=c.hasTrailingPathSeparator.bind(c);c.removeTrailingPathSeparator.bind(c),c.addTrailingPathSeparator.bind(c);var S;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(S||(S={}))},91181:(e,t,i)=>{"use strict";i.d(t,{Rm:()=>r});var n=i(39706),s=i(53186);class o{constructor(e,t,i,n,s,o,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,s|=0,o|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),r+s>o&&(r=o-s),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=o,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new o(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new o(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:s,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends s.JT{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new o(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new d(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class d{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e<t?(r=e+.75*i,a=t-.75*i):(r=e-.75*i,a=t+.75*i),n=l(e,r),s=l(a,t),o=.33,function(e){return e<o?n(e/o):s((e-o)/(1-o))}}var n,s,o;return l(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return d.start(e,t,i)}static start(e,t,i){i+=10;const n=Date.now()-10;return new d(e,t,n,i)}}},28889:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n,s=i(78701);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",i="warning",n="warn",o="info",r="ignore";e.fromValue=function(r){return r?s.qq(t,r)?e.Error:s.qq(i,r)||s.qq(n,r)?e.Warning:s.qq(o,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return o;default:return r}}}(n||(n={}));const o=n},6617:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});const n=globalThis.performance&&"function"===typeof globalThis.performance.now;class s{static create(e){return new s(e)}constructor(e){this._now=n&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},78701:(e,t,i)=>{"use strict";i.d(t,{$i:()=>$,B4:()=>re,C8:()=>Q,Fw:()=>C,GF:()=>_,HO:()=>z,IO:()=>v,J_:()=>j,K7:()=>Z,Kw:()=>ee,LC:()=>y,Mh:()=>A,P1:()=>R,PJ:()=>te,Qe:()=>G,R1:()=>f,T5:()=>N,TT:()=>L,Ut:()=>K,V8:()=>w,W1:()=>W,WU:()=>l,YK:()=>P,YU:()=>h,ZG:()=>O,ZH:()=>B,ZK:()=>ae,ab:()=>Y,c1:()=>X,df:()=>T,ec:()=>c,fA:()=>d,fy:()=>u,j3:()=>g,j_:()=>D,m5:()=>r,mK:()=>E,oH:()=>se,oL:()=>p,ok:()=>M,ow:()=>S,qq:()=>I,qu:()=>x,rL:()=>F,uS:()=>J,un:()=>m,uq:()=>b,vH:()=>H,vU:()=>le,zY:()=>k});var n,s=i(40084),o=i(20447);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return 0===i.length?e:e.replace(a,(function(e,t){const n=parseInt(t,10);return isNaN(n)||n<0||n>=i.length?e:i[n]}))}function d(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function h(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function c(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return p(g(e,t),t)}function g(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function p(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let s=n,o=-1;for(;o=e.lastIndexOf(t,s-1),-1!==o&&o+i===s;){if(0===o)return"";s=o}return e.substring(0,s)}function m(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e){return e.replace(/\*/g,"")}function _(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("Cannot create regex from empty string");t||(e=c(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function v(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function b(e){return e.split(/\r\n|\r|\n/)}function C(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(n.length/2);s++)i.push(n[2*s]+(null!==(t=n[2*s+1])&&void 0!==t?t:""));return i}function y(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;for(let n=t;n<i;n++){const i=e.charCodeAt(n);if(32!==i&&9!==i)return e.substring(t,n)}return e.substring(t,i)}function S(e){for(let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;t>=0;t--){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function x(e,t){return e<t?-1:e>t?1:0}function L(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;for(;i<n&&s<o;i++,s++){const n=e.charCodeAt(i),o=t.charCodeAt(s);if(n<o)return-1;if(n>o)return 1}const r=n-i,a=o-s;return r<a?-1:r>a?1:0}function k(e,t){return D(e,t,0,e.length,0,t.length)}function D(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;for(;i<n&&s<o;i++,s++){let r=e.charCodeAt(i),a=t.charCodeAt(s);if(r===a)continue;if(r>=128||a>=128)return L(e.toLowerCase(),t.toLowerCase(),i,n,s,o);E(r)&&(r-=32),E(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=o-s;return r<a?-1:r>a?1:0}function N(e){return e>=48&&e<=57}function E(e){return e>=97&&e<=122}function T(e){return e>=65&&e<=90}function I(e,t){return e.length===t.length&&0===D(e,t)}function M(e,t){const i=t.length;return!(t.length>e.length)&&0===D(e,t,0,i)}function A(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function R(e,t){const i=Math.min(e.length,t.length);let n;const s=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(s-n)!==t.charCodeAt(o-n))return n;return i}function O(e){return 55296<=e&&e<=56319}function P(e){return 56320<=e&&e<=57343}function F(e,t){return t-56320+(e-55296<<10)+65536}function B(e,t,i){const n=e.charCodeAt(i);if(O(n)&&i+1<t){const t=e.charCodeAt(i+1);if(P(t))return F(n,t)}return n}class V{get offset(){return this._offset}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(P(i)&&t>1){const n=e.charCodeAt(t-2);if(O(n))return F(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=B(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class W{get offset(){return this._iterator.offset}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._iterator=new V(e,t)}nextGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,s=e.getGraphemeBreakType(t.nextCodePoint());if(ie(n,s)){t.setOffset(i);break}n=s}return t.offset-i}prevGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,s=e.getGraphemeBreakType(t.prevCodePoint());if(ie(s,n)){t.setOffset(i);break}n=s}return i-t.offset}eol(){return this._iterator.eol()}}function H(e,t){return new W(e,t).nextGraphemeLength()}function z(e,t){return new W(e,t).prevGraphemeLength()}function j(e,t){t>0&&P(e.charCodeAt(t))&&t--;const i=t+H(e,t);return[i-z(e,i),i]}let U;function K(e){return U||(U=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),U.test(e)}const q=/^[\t\n\r\x20-\x7E]*$/;function $(e){return q.test(e)}const G=/[\u2028\u2029]/;function Y(e){return G.test(e)}function Z(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function J(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ee(e){return!!e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function te(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function ie(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ne{static getInstance(){return ne._INSTANCE||(ne._INSTANCE=new ne),ne._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(e<t[3*n])n*=2;else{if(!(e>t[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new V(t,e);let n=i.prevCodePoint();for(;oe(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!Q(n))return;let s=i.offset;if(s>0){8205===i.prevCodePoint()&&(s=i.offset)}return s}(e,t);if(void 0!==i)return i;const n=new V(t,e);return n.prevCodePoint(),n.offset}function oe(e){return 127995<=e&&e<=127999}ne._INSTANCE=null;const re="\xa0";class ae{static getInstance(e){return n.cache.get(Array.from(e))}static getLocales(){return n._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=ae,ae.ambiguousCharacterData=new o.o((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ae.cache=new s.t((e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[n,s]of e)t.has(n)&&i.set(n,s);return i}const s=n.ambiguousCharacterData.value;let o,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const n of r){o=i(o,t(s[n]))}const a=function(e,t){const i=new Map(e);for(const[n,s]of t)i.set(n,s);return i}(t(s._common),o);return new n(a)})),ae._locales=new o.o((()=>Object.keys(n.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class le{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(le.getRawData())),this._data}static isInvisibleCharacter(e){return le.getData().has(e)}static get codePoints(){return le.getData()}}le._data=void 0},76294:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=Symbol("MicrotaskDelay")},61700:(e,t,i)=>{"use strict";i.d(t,{Id:()=>d});var n=i(78701);class s{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class o{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.TT)(e,this._value,0,e.length,this._from,this._to):(0,n.j_)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class r{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.TT)(e,this._value,0,e.length,this._from,this._to):(0,n.j_)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new r(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,n.zY)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,n.zY)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,n.qu)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,n.qu)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class l{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}get heightRight(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}class d{static forUris(){return new d(new a(arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!1))}static forStrings(){return new d(new s)}static forConfigKeys(){return new d(new o)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const s=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),s.push([0,n]),n=n.mid}}const o=n.value;n.value=t,n.key=e;for(let r=s.length-1;r>=0;r--){const e=s[r][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=s[r][0],i=s[r+1][0];if(1===t&&1===i)s[r][1]=e.rotateLeft();else if(-1===t&&-1===i)s[r][1]=e.rotateRight();else if(1===t&&-1===i)e.right=s[r+1][1]=s[r+1][1].rotateRight(),s[r][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=s[r+1][1]=s[r+1][1].rotateLeft(),s[r][1]=e.rotateRight()}if(r>0)switch(s[r-1][0]){case-1:s[r-1][1].left=s[r][1];break;case 1:s[r-1][1].right=s[r][1];break;case 0:s[r-1][1].mid=s[r][1]}else this._root=s[0][1]}}return o}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),s=[];let o=this._root;for(;o;){const e=n.cmp(o.segment);if(e>0)s.push([-1,o]),o=o.left;else if(e<0)s.push([1,o]),o=o.right;else{if(!n.hasNext())break;n.next(),s.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const e=this._min(o.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),o.key=t,o.value=i,o.segment=n}}else{const e=null!==(i=o.left)&&void 0!==i?i:o.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},73045:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});var n,s,o=i(61542);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(o.l.error);const[,s,r]=n,a=["codicon","codicon-"+s];return r&&a.push("codicon-modifier-"+r.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||n.isThemeColor(e.color))};const s=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=s.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(s||(s={}))},47624:(e,t,i)=>{"use strict";function n(e){return"string"===typeof e}function s(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function r(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function d(e){return"undefined"===typeof e}function h(e){return!c(e)}function c(e){return d(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(c(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let n=0;n<i;n++)f(e[n],t[n])}function f(e,t){if(n(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch(i){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{$K:()=>h,D8:()=>m,HD:()=>n,Jp:()=>c,Kn:()=>s,TW:()=>a,cW:()=>g,fU:()=>o,hj:()=>r,jn:()=>l,mf:()=>p,o8:()=>d,p_:()=>u})},47228:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function s(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:()=>s,K:()=>n})},91387:(e,t,i)=>{"use strict";i.d(t,{o:()=>c,q:()=>_});var n=i(96682),s=i(90388);const o=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;const l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,n,s){let h=arguments.length>5&&void 0!==arguments[5]&&arguments[5];"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||l),this.query=n||l,this.fragment=s||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:s,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===i?i=this.authority:null===i&&(i=l),void 0===n?n=this.path:null===n&&(n=l),void 0===s?s=this.query:null===s&&(s=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&i===this.authority&&n===this.path&&s===this.query&&o===this.fragment?this:new g(t,i,n,s,o)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=h.exec(e);return i?new g(i[2]||l,y(i[4]||l),y(i[5]||l),y(i[7]||l),y(i[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(s.ED&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return t=s.ED&&"file"===e.scheme?c.file(n.Ku.join(_(e,!0),...o)).path:n.KR.join(e.path,...o),e.with({path:t})}toString(){return v(this,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof c)return e;{const n=new g(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===u&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const u=s.ED?1:void 0;class g extends c{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let n,s=-1;for(let o=0;o<e.length;o++){const r=e.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==s&&(n+=encodeURIComponent(e.substring(s,o)),s=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));const t=p[r];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,o)),s=-1),n+=t):-1===s&&(s=o)}}return-1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function f(e){let t;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);35===n||63===n?(void 0===t&&(t=e.substr(0,i)),t+=p[n]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,s.ED&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let n="",{scheme:s,authority:o,path:r,query:a,fragment:l}=e;if(s&&(n+=s,n+=":"),(o||"file"===s)&&(n+=d,n+=d),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?n+=i(o,!1,!0):(n+=i(o.substr(0,e),!1,!0),n+=o.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:m(l,!1,!1)),n}function b(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const C=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(C)?e.replace(C,(e=>b(e))):e}},94913:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let n=0;n<256;n++)i.push(n.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let n=0,s="";return s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s}}()},48398:(e,t,i)=>{"use strict";i.d(t,{H:()=>m});var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,c.languages.register(e);const i=p.getOrCreate(t);c.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),c.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();c.languages.setLanguageConfiguration(t,e.conf)}))}},67709:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(4609).then(i.bind(i,54609))})},41777:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9530).then(i.bind(i,29530))})},26525:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(4535).then(i.bind(i,34535))})},52016:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(5682).then(i.bind(i,45682))})},7067:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(7043).then(i.bind(i,97043))})},86543:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(2262).then(i.bind(i,22262))})},59134:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(6062).then(i.bind(i,96062))})},65340:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(1222).then(i.bind(i,11222))})},7389:(e,t,i)=>{"use strict";var n=i(48398);(0,n.H)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(4231).then(i.bind(i,44231))}),(0,n.H)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(4231).then(i.bind(i,44231))})},66493:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(4628).then(i.bind(i,84628))})},12867:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>i.e(5685).then(i.bind(i,85685))})},78859:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(6659).then(i.bind(i,16659))})},80198:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(1410).then(i.bind(i,1410))})},39019:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(6010).then(i.bind(i,56010))})},33693:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(7828).then(i.bind(i,57828))})},76434:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(6435).then(i.bind(i,96435))})},16842:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(8504).then(i.bind(i,68504))})},14983:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(835).then(i.bind(i,10835))})},61466:(e,t,i)=>{"use strict";var n=i(48398);(0,n.H)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAutoInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAngleInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagBracketInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAngleInterpolationBracket))}),(0,n.H)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagBracketInterpolationBracket))}),(0,n.H)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAutoInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAutoInterpolationBracket))})},56454:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7852).then(i.bind(i,57852))})},76799:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(1460).then(i.bind(i,91460))})},29679:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(453).then(i.bind(i,60453))})},47281:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(3230).then(i.bind(i,3230))})},13078:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(4859).then(i.bind(i,14859))})},55799:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(346).then(i.bind(i,40346))})},45115:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(5467).then(i.bind(i,75467))})},41645:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(5319).then(i.bind(i,15319))})},82686:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(6914).then(i.bind(i,56914))})},86703:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(8297).then(i.bind(i,98297))})},1072:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(5484).then(i.bind(i,85484))})},902:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(4087).then(i.bind(i,44087))})},72107:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(8427).then(i.bind(i,18427))})},30539:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(5160).then(i.bind(i,95160))})},66405:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(682).then(i.bind(i,10682))})},45189:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(228).then(i.bind(i,30228))})},81888:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(6953).then(i.bind(i,36953))})},13162:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(7441).then(i.bind(i,17441))})},31518:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(521).then(i.bind(i,60521))})},60601:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2570).then(i.bind(i,12570))})},78626:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6698).then(i.bind(i,56698))})},13763:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(3972).then(i.bind(i,43972))})},6581:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(1854).then(i.bind(i,61854))})},44758:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(5124).then(i.bind(i,75124))})},35281:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(8908).then(i.bind(i,48908))})},97611:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(6289).then(i.bind(i,66289))})},63874:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(4099).then(i.bind(i,54099))})},29075:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pla",extensions:[".pla"],loader:()=>i.e(1758).then(i.bind(i,6751))})},51083:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(5605).then(i.bind(i,75605))})},97810:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(9776).then(i.bind(i,89776))})},22920:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(2293).then(i.bind(i,92293))})},89045:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(9396).then(i.bind(i,49396))})},14366:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(7690).then(i.bind(i,47690))})},54872:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(6246).then(i.bind(i,26246))})},66333:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(778).then(i.bind(i,40778))})},34789:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(3421).then(i.bind(i,23421))})},64646:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8835).then(i.bind(i,88835))})},31e3:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(1376).then(i.bind(i,71376))})},94380:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(6118).then(i.bind(i,76118))})},87133:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(1670).then(i.bind(i,1670))})},87259:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(5154).then(i.bind(i,55154))})},47526:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(6898).then(i.bind(i,36898))})},30408:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(1957).then(i.bind(i,21957))})},10211:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(8606).then(i.bind(i,48606))})},55167:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7628).then(i.bind(i,57628))})},89673:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(8329).then(i.bind(i,18329))})},56536:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(7083).then(i.bind(i,87083))})},17535:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(1948).then(i.bind(i,1948))})},21914:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(7289).then(i.bind(i,17289))})},63235:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(9811).then(i.bind(i,19811))})},70600:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(8122).then(i.bind(i,8122))})},8940:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(3107).then(i.bind(i,23107))})},187:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(2807).then(i.bind(i,92807))})},92176:(e,t,i)=>{"use strict";var n=i(48398);(0,n.H)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(4222).then(i.bind(i,75503))}),(0,n.H)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(4222).then(i.bind(i,75503))})},86394:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(766).then(i.bind(i,30766))})},59280:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(4066).then(i.bind(i,44066))})},79397:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(2869).then(i.bind(i,2869))})},13536:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(1640).then(i.bind(i,11640))})},7717:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3166).then(i.bind(i,83166))})},32434:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(3010).then(i.bind(i,33010))})},19736:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(1487).then(i.bind(i,45247))})},64295:(e,t,i)=>{"use strict";i.d(t,{N:()=>s});var n=i(75816);function s(e,t){e instanceof n.Z?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},17067:(e,t,i)=>{"use strict";i.d(t,{I:()=>r});var n=i(53186),s=i(39706),o=i(76595);class r extends n.JT{constructor(e,t){super(),this._onDidChange=this._register(new s.Q5),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const s=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{(0,o.jL)((0,o.Jj)(this._referenceDomElement),(()=>{n=!1,s()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,s()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},88775:(e,t,i)=>{"use strict";i.d(t,{g:()=>p});var n=i(76595),s=i(20796),o=i(39706),r=i(53186),a=i(64295);class l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class d{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.N)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.N)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");(0,a.N)(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const s=[];for(const o of this._requests){let e;0===o.type&&(e=t),2===o.type&&(e=i),1===o.type&&(e=n),e.appendChild(document.createElement("br"));const r=document.createElement("span");d._render(r,o),e.appendChild(r),s.push(r)}this._container=e,this._testElements=s}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(67364),c=i(13785);class u extends r.JT{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=(0,n.ZY)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const s of i)s.isTrusted||(n=!0,t.remove(s));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new c.pR({pixelRatio:s.T.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,n){const s=new l(e,t);return i.push(s),null===n||void 0===n||n.push(s),s}_actualReadFontInfo(e,t){const i=[],n=[],o=this._createRequest("n",0,i,n),r=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),u=this._createRequest("1",0,i,n),g=this._createRequest("2",0,i,n),p=this._createRequest("3",0,i,n),m=this._createRequest("4",0,i,n),f=this._createRequest("5",0,i,n),_=this._createRequest("6",0,i,n),v=this._createRequest("7",0,i,n),b=this._createRequest("8",0,i,n),C=this._createRequest("9",0,i,n),y=this._createRequest("\u2192",0,i,n),w=this._createRequest("\uffeb",0,i,null),S=this._createRequest("\xb7",0,i,n),x=this._createRequest(String.fromCharCode(11825),0,i,null),L="|/-_ilm%";for(let s=0,d=L.length;s<d;s++)this._createRequest(L.charAt(s),0,i,n),this._createRequest(L.charAt(s),1,i,n),this._createRequest(L.charAt(s),2,i,n);!function(e,t,i){new d(t,i).read(e)}(e,t,i);const k=Math.max(l.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,b.width,C.width);let D=t.fontFeatureSettings===h.n0.OFF;const N=n[0].width;for(let s=1,d=n.length;D&&s<d;s++){const e=N-n[s].width;if(e<-.001||e>.001){D=!1;break}}let E=!0;return D&&w.width!==N&&(E=!1),w.width>y.width&&(E=!1),new c.pR({pixelRatio:s.T.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:E,spaceWidth:a.width,middotWidth:S.width,wsmiddotWidth:x.width,maxDigitWidth:k},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},52274:(e,t,i)=>{"use strict";i.d(t,{n:()=>s});var n=i(39706);const s=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},90356:(e,t,i)=>{"use strict";i.d(t,{Fz:()=>S,Nl:()=>y,RA:()=>C,Tj:()=>L,b6:()=>x,pd:()=>n});var n,s=i(27748),o=i(76595),r=i(24199),a=i(10381),l=i(9922),d=i(53372),h=i(39706),c=i(53186),u=i(90255),g=i(78701),p=i(13593),m=i(24854),f=i(71940),_=i(33454),v=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const C={forceCopyWithSyntaxHighlighting:!1};class y{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}y.INSTANCE=new y;class w{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let S=class extends c.JT{get textAreaState(){return this._textAreaState}constructor(e,t,i,n,s,o){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._accessibilityService=s,this._logService=o,this._onFocus=this._register(new h.Q5),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.Q5),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.Q5),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.Q5),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.Q5),this.onCut=this._onCut.event,this._onPaste=this._register(new h.Q5),this.onPaste=this._onPaste.event,this._onType=this._register(new h.Q5),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.Q5),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.Q5),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.Q5),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.Q5),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new c.XK),this._asyncTriggerCut=this._register(new d.pY((()=>this._onCut.fire()),0)),this._textAreaState=p.un.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.ju.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new d.pY((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let r=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.y(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),r=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.y(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.al&&console.log("[compositionstart]",e);const t=new w;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&r&&r.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===r.code||"ArrowLeft"===r.code))return p.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.al&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p.un.readFromTextArea(this._textArea,this._textAreaState),i=p.un.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p.un.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.al&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p.un.readFromTextArea(this._textArea,this._textAreaState),t=p.un.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p.un.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.al&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p.un.readFromTextArea(this._textArea,this._textAreaState),i=p.un.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.ZG(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=x.getTextData(e.clipboardData);t&&(i=i||y.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new d.pY((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return o.nm(this._textArea.ownerDocument,"selectionchange",(t=>{if(l.B.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100)return;if(!this._textAreaState.selection)return;const o=this._textArea.getValue();if(this._textAreaState.value!==o)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const d=this._textAreaState.deduceEditorPosition(r),h=this._host.deduceModelPosition(d[0],d[1],d[2]),c=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(c[0],c[1],c[2]),g=new m.Y(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};y.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&x.setTextData(e.clipboardData,t.text,t.html,i)}};S=v([b(4,f.F),b(5,_.VZ)],S);const x={getTextData(e){const t=e.getData(u.v.text);let i=null;const n=e.getData("vscode-editor-data");if("string"===typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(s){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,n){e.setData(u.v.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}};class L extends c.JT{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new r.Y(this._actual,"keydown")).event,this.onKeyUp=this._register(new r.Y(this._actual,"keyup")).event,this.onCompositionStart=this._register(new r.Y(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new r.Y(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new r.Y(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new r.Y(this._actual,"beforeinput")).event,this.onInput=this._register(new r.Y(this._actual,"input")).event,this.onCut=this._register(new r.Y(this._actual,"cut")).event,this.onCopy=this._register(new r.Y(this._actual,"copy")).event,this.onPaste=this._register(new r.Y(this._actual,"paste")).event,this.onFocus=this._register(new r.Y(this._actual,"focus")).event,this.onBlur=this._register(new r.Y(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.Q5),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>l.B.onKeyDown()))),this._register(this.onBeforeInput((()=>l.B.onBeforeInput()))),this._register(this.onInput((()=>l.B.onInput()))),this._register(this.onKeyUp((()=>l.B.onKeyUp()))),this._register(o.nm(this._actual,n.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=o.Ay(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&o.vY()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let r=null;const a=o.Ay(n);r=a?a.activeElement:o.vY();const l=o.Jj(r),d=r===n,h=n.selectionStart,c=n.selectionEnd;if(d&&h===t&&c===i)s.vU&&l.parent!==l&&n.focus();else{if(d)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(s.vU&&l.parent!==l&&n.focus());try{const e=o.vL(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),o._0(n,e)}catch(u){}}}}},13593:(e,t,i)=>{"use strict";i.d(t,{al:()=>o,ee:()=>a,un:()=>r});var n=i(78701),s=i(28928);const o=!1;class r{constructor(e,t,i,n,s){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=s}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),s=e.getSelectionEnd();let o;if(t){i.substring(0,n)===t.value.substring(0,t.selectionStart)&&(o=t.newlineCountBeforeSelection)}return new r(i,n,s,null,o)}collapseSelection(){return this.selectionStart===this.value.length?this:new r(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){o&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,s,o,r,a,l;if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(null!==(i=null===(t=this.selection)||void 0===t?void 0:t.getStartPosition())&&void 0!==i?i:null,n,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(null!==(s=null===(n=this.selection)||void 0===n?void 0:n.getEndPosition())&&void 0!==s?s:null,t,1)}const d=this.value.substring(this.selectionStart,e);if(-1===d.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(null!==(r=null===(o=this.selection)||void 0===o?void 0:o.getStartPosition())&&void 0!==r?r:null,d,1);const h=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(null!==(l=null===(a=this.selection)||void 0===a?void 0:a.getEndPosition())&&void 0!==l?l:null,h,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,s=-1;for(;-1!==(s=t.indexOf("\n",s+1));)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};o&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const s=Math.min(n.Mh(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(s,e.value.length-r),l=t.value.substring(s,t.value.length-r),d=e.selectionStart-s,h=e.selectionEnd-s,c=t.selectionStart-s,u=t.selectionEnd-s;if(o&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${d}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${c}, selectionEnd: ${u}`)),c===u){const t=e.selectionStart-s;return o&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:h-d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(o&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Mh(e.value,t.value),e.selectionEnd),s=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(i,e.value.length-s),a=t.value.substring(i,t.value.length-s),l=e.selectionStart-i,d=e.selectionEnd-i,h=t.selectionStart-i,c=t.selectionEnd-i;return o&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${r}>, selectionStart: ${l}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${c}`)),{text:a,replacePrevCharCnt:d,replaceNextCharCnt:r.length-d,positionDelta:c-a.length}}}r.EMPTY=new r("",0,0,null,void 0);class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new s.e(n,1,o+1,1)}static fromEditorSelection(e,t,i,n){const o=500,l=a._getPageOfLine(t.startLineNumber,i),d=a._getRangeForPage(l,i),h=a._getPageOfLine(t.endLineNumber,i),c=a._getRangeForPage(h,i);let u=d.intersectRanges(new s.e(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(u,1)>o){const t=e.modifyPosition(u.getEndPosition(),-500);u=s.e.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=c.intersectRanges(new s.e(t.endLineNumber,t.endColumn,p,m));if(n&&e.getValueLengthInRange(f,1)>o){const t=e.modifyPosition(f.getStartPosition(),o);f=s.e.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(l===h||l+1===h)v=e.getValueInRange(t,1);else{const i=d.intersectRanges(t),n=c.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(n,1)}return n&&v.length>1e3&&(v=v.substring(0,o)+String.fromCharCode(8230)+v.substring(v.length-o,v.length)),new r(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},15968:(e,t,i)=>{"use strict";i.d(t,{wk:()=>E,Ox:()=>x});var n=i(5887),s=i(27748),o=i(47624),r=i(83945),a=i(60548),l=i(74246),d=i(80646),h=i(74633),c=i(28928);class u{static columnSelect(e,t,i,n,s,o){const r=Math.abs(s-i)+1,a=i>s,l=n>o,u=n<o,g=[];for(let p=0;p<r;p++){const s=i+(a?-p:p),r=e.columnFromVisibleColumn(t,s,n),m=e.columnFromVisibleColumn(t,s,o),f=e.visibleColumnFromColumn(t,new h.L(s,r)),_=e.visibleColumnFromColumn(t,new h.L(s,m));if(u){if(f>o)continue;if(_<n)continue}if(l){if(_>n)continue;if(f<o)continue}g.push(new d.rS(new c.e(s,r,s,r),0,0,new h.L(s,m),0))}if(0===g.length)for(let p=0;p<r;p++){const e=i+(a?-p:p),n=t.getLineMaxColumn(e);g.push(new d.rS(new c.e(e,n,e,n),0,0,new h.L(e,n),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:n,toLineNumber:s,toVisualColumn:o}}static columnSelectLeft(e,t,i){let n=i.toViewVisualColumn;return n>0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const s=Math.min(i.fromViewLineNumber,i.toViewLineNumber),o=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=s;a<=o;a++){const i=t.getLineMaxColumn(a),s=e.visibleColumnFromColumn(t,new h.L(a,i));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r<n&&r++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}static columnSelectUp(e,t,i,n){const s=n?e.pageSize:1,o=Math.max(1,i.toViewLineNumber-s);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}static columnSelectDown(e,t,i,n){const s=n?e.pageSize:1,o=Math.min(t.getLineCount(),i.toViewLineNumber+s);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}}var g=i(1603),p=i(93033),m=i(69922),f=i(35770),_=i(47116),v=i(85412),b=i(76595);const C=0;class y extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i||{})}}var w,S,x;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!o.Kn(e))return!1;const t=e;return!!o.HD(t.to)&&(!(!o.o8(t.by)&&!o.HD(t.by))&&(!(!o.o8(t.value)&&!o.hj(t.value))&&!(!o.o8(t.revealCursor)&&!o.jn(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,n;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Page:n=3;break;case e.RawUnit.HalfPage:n=4;break;case e.RawUnit.Editor:n=5;break;case e.RawUnit.Column:n=6;break;default:n=2}return{direction:i,unit:n,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(w||(w={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!o.Kn(e))return!1;const t=e;return!(!o.hj(t.lineNumber)&&!o.HD(t.lineNumber))&&!(!o.o8(t.at)&&!o.HD(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(S||(S={}));class L{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.$).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,b.vY)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.$).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}!function(e){class t extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends y{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>d.Vi.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.fK)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if("undefined"===typeof n.position||"undefined"===typeof n.viewPosition||"undefined"===typeof n.mouseColumn)return null;const s=e.model.validatePosition(n.position),o=e.coordinatesConverter.validateViewPosition(new h.L(n.viewPosition.lineNumber,n.viewPosition.column),s),r=n.doColumnSelect?i.fromViewLineNumber:o.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,o.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class o extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.fK)(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.fK)(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.fK)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.fK)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends y{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.N.metadata})}runCoreEditorCommand(e,t){const i=p.N.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const n=i.select,s=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.P.simpleMove(e,t,i.direction,n,s,i.unit);case 11:case 13:case 12:case 14:return p.P.viewportMove(e,t,i.direction,n,s);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.fK)(new g);class m extends y{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.fK)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.fK)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1039}})),e.CursorRight=(0,a.fK)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.fK)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1041}})),e.CursorUp=(0,a.fK)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.fK)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.fK)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.fK)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1035}})),e.CursorDown=(0,a.fK)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.fK)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.fK)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.fK)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.fK)(new class extends y{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const s=i.modelState?i.modelState.position:null,o=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;i<r;i++){const r=n[i];if((!s||r.modelState.selection.containsPosition(s))&&(!o||r.viewState.selection.containsPosition(o)))return n.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,n)}}n.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}),e.LastCursorMoveToSelect=(0,a.fK)(new class extends y{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0);s[i]=p.P.moveTo(e,n[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}});class _ extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.fK)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.fK)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i],s=n.modelState.position.lineNumber;t[i]=d.Vi.fromModelState(n.modelState.move(this._inSelectionMode,s,1,0))}return t}}e.CursorLineStart=(0,a.fK)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.fK)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:1311}}}));class b extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.fK)(new b({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:C,kbExpr:f.u.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.fK)(new b({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:C,kbExpr:f.u.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class x extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n],o=s.modelState.position.lineNumber,r=e.model.getLineMaxColumn(o);i[n]=d.Vi.fromModelState(s.modelState.move(this._inSelectionMode,o,r,0))}return i}}e.CursorLineEnd=(0,a.fK)(new x({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.fK)(new x({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:1315}}}));class k extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.fK)(new k({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.fK)(new k({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3086,mac:{primary:3088}}}));class D extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.fK)(new D({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.fK)(new D({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3085,mac:{primary:3090}}}));class N extends y{constructor(){super({id:"editorScroll",precondition:void 0,metadata:w.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=w.parse(t);if(!i)return;const n=this.determineScrollMethod(i);n&&n(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const n=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const s=e.getCompletelyVisibleViewRangeAtScrollTop(n);e.setCursorStates(t,3,[p.P.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),s,i.select)])}e.viewLayout.setScrollPosition({scrollTop:n},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),n=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),s=e.coordinatesConverter.convertViewRangeToModelRange(n);let o;o=1===t.direction?Math.max(1,s.startLineNumber-t.value):Math.min(e.model.getLineCount(),s.startLineNumber+t.value);const r=e.coordinatesConverter.convertModelPositionToViewPosition(new h.L(o,1));return e.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const n=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+n*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const n=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:n},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=N,e.EditorScroll=(0,a.fK)(new N),e.ScrollLineUp=(0,a.fK)(new class extends y{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Up,by:w.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.fK)(new class extends y{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Up,by:w.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.fK)(new class extends y{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Up,by:w.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.fK)(new class extends y{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Down,by:w.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.fK)(new class extends y{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Down,by:w.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.fK)(new class extends y{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Down,by:w.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.fK)(new class extends y{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Left,by:w.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.fK)(new class extends y{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Right,by:w.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class E extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.fK)(new E({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.fK)(new E({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.fK)(new class extends y{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0),o=n[i];s[i]=p.P.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}});class T extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.fK)(new T({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.fK)(new T({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class I extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0);s[i]=p.P.line(e,n[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}e.LastCursorLineSelect=(0,a.fK)(new I({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.fK)(new I({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.fK)(new class extends y{constructor(){super({id:"cancelSelection",precondition:f.u.hasNonEmptySelection,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.fK)(new class extends y{constructor(){super({id:"removeSecondaryCursors",precondition:f.u.hasMultipleSelections,kbOpts:{weight:C+1,kbExpr:f.u.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,r.i7)(n.NC("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.fK)(new class extends y{constructor(){super({id:"revealLine",precondition:void 0,metadata:S.metadata})}runCoreEditorCommand(e,t){const i=t,n=i.lineNumber||0;let s="number"===typeof n?n+1:parseInt(n)+1;s<1&&(s=1);const o=e.model.getLineCount();s>o&&(s=o);const r=new c.e(s,1,s,e.model.getLineMaxColumn(s));let a=0;if(i.at)switch(i.at){case S.RawAtArgument.Top:a=3;break;case S.RawAtArgument.Center:a=1;break;case S.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends L{constructor(){super(a.Sq)}runDOMCommand(e){s.vU&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.P.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.fK)(new class extends y{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[d.Vi.fromModelSelection(t.selection)]))}})}(x||(x={}));const k=_.Ao.and(f.u.textInputFocus,f.u.columnSelection);function D(e,t){v.W.registerKeybindingRule({id:e,primary:t,when:k,weight:C+1})}function N(e){return e.register(),e}var E;D(x.CursorColumnSelectLeft.id,1039),D(x.CursorColumnSelectRight.id,1041),D(x.CursorColumnSelectUp.id,1040),D(x.CursorColumnSelectPageUp.id,1035),D(x.CursorColumnSelectDown.id,1042),D(x.CursorColumnSelectPageDown.id,1036),function(e){class t extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.fK)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.u.writable,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u6.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.fK)(new class extends t{constructor(){super({id:"outdent",precondition:f.u.writable,kbOpts:{weight:C,kbExpr:_.Ao.and(f.u.editorTextFocus,f.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u6.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.fK)(new class extends t{constructor(){super({id:"tab",precondition:f.u.writable,kbOpts:{weight:C,kbExpr:_.Ao.and(f.u.editorTextFocus,f.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u6.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.fK)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,s]=g.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.fK)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,s]=g.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(3)}}),e.Undo=new class extends L{constructor(){super(a.n_)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().undo()}},e.Redo=new class extends L{constructor(){super(a.kz)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().redo()}}}(E||(E={}));class T extends a.mY{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.$).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function I(e,t){N(new T("default:"+e,e)),N(new T(e,e,t))}I("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),I("replacePreviousChar"),I("compositionType"),I("compositionStart"),I("compositionEnd"),I("paste"),I("cut")},32613:(e,t,i)=>{"use strict";i.d(t,{B:()=>l,L:()=>c});var n=i(37405),s=i(44609),o=i(90255),r=i(91387),a=i(90601);function l(e){const t=new s.Hl;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise((e=>i.getAsString(e)));t.append(e,(0,s.ZO)(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,d(n))}}return t}function d(e){const t=e.path?r.o.parse(e.path):void 0;return(0,s.Ix)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.Km.EDITORS,a.Km.FILES,n.g.RESOURCES,n.g.INTERNAL_URI_LIST]);function c(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=l(e),a=i.get(n.g.INTERNAL_URI_LIST);if(a)i.replace(o.v.uriList,a);else if(t||!i.has(o.v.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(r.o.file(i).toString()):t.push(r.o.parse(e.name,!0).toString())}catch(d){}}}t.length&&i.replace(o.v.uriList,(0,s.ZO)(s.Z0.create(t)))}for(const n of h)i.delete(n);return i}},48850:(e,t,i)=>{"use strict";i.d(t,{CL:()=>s,Pi:()=>r,QI:()=>o});var n=i(36362);function s(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===n.g.ICodeEditor}function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===n.g.IDiffEditor}function r(e){return s(e)?e:o(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&s(e.activeCodeEditor)?e.activeCodeEditor:null}},76046:(e,t,i)=>{"use strict";i.d(t,{AL:()=>v,N5:()=>f,Pp:()=>p,YN:()=>d,gy:()=>m,kG:()=>g,rU:()=>h,t7:()=>b,tC:()=>_});var n=i(76595),s=i(21406),o=i(65179),r=i(53372),a=i(53186),l=i(6009);class d{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new d(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class c{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=n.i(e);return new c(t.left,t.top,t.width,t.height)}function p(e,t,i){const n=t.width/e.offsetWidth,s=t.height/e.offsetHeight,o=(i.x-t.x)/n,r=(i.y-t.y)/s;return new u(o,r)}class m extends o.n{constructor(e,t,i){super(n.Jj(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new d(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return n.nm(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return n.nm(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return n.nm(e,n.tw.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.nm(e,n.tw.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return n.nm(e,n.tw.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return n.nm(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return n.nm(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.nm(e,n.tw.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return n.nm(e,n.tw.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return n.nm(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.JT{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new s.C),this._keydownListener=null}startMonitoring(e,t,i,s,o){this._keydownListener=n.mu(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{s(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),o(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class b{constructor(e){this._editor=e,this._instanceId=++b._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new r.pY((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const s=this._counter++;i=new C(t,`dyn-rule-${this._instanceId}-${s}`,n.OO(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}b._idPool=0;class C{constructor(e,t,i,s){this.key=e,this.className=t,this.properties=s,this._referenceCount=0,this._styleElementDisposables=new a.SL,this._styleElement=n.dS(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const n in t){const e=t[n];let s;s="object"===typeof e?(0,l.n_1)(e.id):e;i+=`\n\t${y(n)}: ${s};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function y(e){return e.replace(/(^[A-Z])/,(e=>{let[t]=e;return t.toLowerCase()})).replace(/([A-Z])/g,(e=>{let[t]=e;return`-${t.toLowerCase()}`}))}},60548:(e,t,i)=>{"use strict";i.d(t,{AJ:()=>y,QG:()=>I,Qr:()=>E,R6:()=>x,Sq:()=>F,Uc:()=>n,_K:()=>M,_l:()=>S,fK:()=>N,jY:()=>L,kz:()=>P,mY:()=>C,n_:()=>O,rn:()=>T,sb:()=>D,x1:()=>k});var n,s=i(5887),o=i(91387),r=i(74246),a=i(74633),l=i(23058),d=i(43537),h=i(6178),c=i(94943),u=i(47116),g=i(87775),p=i(85412),m=i(76322),f=i(57823),_=i(47624),v=i(33454),b=i(76595);class C{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.Ao.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.W.registerKeybindingRule(i)}}c.P.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class y extends C{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.VZ),n=e.get(u.i6);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const s of this._implementations){if(s.when){const e=n.getContext((0,b.vY)());if(!s.when.evaluate(e))continue}const o=s.implementation(e,t);if(o){if(i.trace(`Command '${this.id}' was handled by '${s.name}'.`),"boolean"===typeof o)return;return o}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class w extends C{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class S extends C{static bindToContribution(e){return class extends S{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,n){const s=e(i);s&&this._callback(s,n)}}}static runEditorCommand(e,t,i,n){const s=e.get(r.$),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{if(e.get(u.i6).contextMatchesRules(null!==i&&void 0!==i?i:void 0))return n(e,o,t)}))}runCommand(e,t){return S.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class x extends S{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.eH.EditorContext),t.title||(t.title=e.label),t.when=u.Ao.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(x.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class L extends x{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const n of this._implementations){const s=n[1](e,t,i);if(s){if("boolean"===typeof s)return;return s}}}}class k extends h.Ke{run(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const s=e.get(r.$),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{var t,n;const s=e.get(u.i6),r=e.get(v.VZ);if(s.contextMatchesRules(null!==(t=this.desc.precondition)&&void 0!==t?t:void 0))return this.runEditorCommand(e,o,...i);r.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,null===(n=this.desc.precondition)||void 0===n?void 0:n.serialize())}))}}function D(e,t){c.P.registerCommand(e,(function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];const r=e.get(g.TG),[h,c]=n;(0,_.p_)(o.o.isUri(h)),(0,_.p_)(a.L.isIPosition(c));const u=e.get(l.q).getModel(h);if(u){const e=a.L.lift(c);return r.invokeFunction(t,u,e,...n.slice(2))}return e.get(d.S).createModelReference(h).then((e=>new Promise(((i,s)=>{try{i(r.invokeFunction(t,e.object.textEditorModel,a.L.lift(c),n.slice(2)))}catch(o){s(o)}})).finally((()=>{e.dispose()}))))}))}function N(e){return A.INSTANCE.registerEditorCommand(e),e}function E(e){const t=new e;return A.INSTANCE.registerEditorAction(t),t}function T(e){return A.INSTANCE.registerEditorAction(e),e}function I(e){A.INSTANCE.registerEditorAction(e)}function M(e,t,i){A.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return A.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return A.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return A.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return A.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return A.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class A{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function R(e){return e.register(),e}A.INSTANCE=new A,m.B.add("editor.contributions",A.INSTANCE);const O=R(new y({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:s.NC({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.eH.CommandPalette,group:"",title:s.NC("undo","Undo"),order:1}]}));R(new w(O,{id:"default:undo",precondition:void 0}));const P=R(new y({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:s.NC({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.eH.CommandPalette,group:"",title:s.NC("redo","Redo"),order:1}]}));R(new w(P,{id:"default:redo",precondition:void 0}));const F=R(new y({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.eH.MenubarSelectionMenu,group:"1_basic",title:s.NC({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.eH.CommandPalette,group:"",title:s.NC("selectAll","Select All"),order:1}]}))},80427:(e,t,i)=>{"use strict";i.d(t,{Gl:()=>l,fo:()=>a,vu:()=>r});var n=i(87775),s=i(91387),o=i(47624);const r=(0,n.yh)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(l.is(e))return l.lift(e);if(d.is(e))return d.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,o.Kn)(e)&&s.o.isUri(e.resource)&&(0,o.Kn)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;super(arguments.length>3?arguments[3]:void 0),this.resource=e,this.textEdit=t,this.versionId=i}}class d extends a{static is(e){return e instanceof d||(0,o.Kn)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof d?e:new d(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(arguments.length>3?arguments[3]:void 0),this.oldResource=e,this.newResource=t,this.options=i}}},74246:(e,t,i)=>{"use strict";i.d(t,{$:()=>n});const n=(0,i(87775).yh)("codeEditorService")},65184:(e,t,i)=>{"use strict";i.d(t,{Q8:()=>He,eu:()=>Oe});var n=i(53372),s=i(53186),o=i(16015),r=i(39706),a=i(53335),l=i(90388),d=i(78701);const h="$initialize";let c=!1;function u(e){l.$L&&(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class p{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class m{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise(((n,s)=>{this._pendingReplies[i]={resolve:n,reject:s},this._send(new g(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new r.Q5({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new m(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,o.ri)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,o.ri)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class b extends s.JT{constructor(e,t,i){super();let n=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",(e=>{this._protocol.handleMessage(e)}),(e=>{null===n||void 0===n||n(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!==typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}},handleEvent:(e,t)=>{if(y(e)){const n=i[e].call(i,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(C(e)){const t=i[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let s=null;const o=globalThis.require;"undefined"!==typeof o&&"function"===typeof o.getConfig?s=o.getConfig():"undefined"!==typeof globalThis.requirejs&&(s=globalThis.requirejs.s.contexts._.config);const r=(0,a.$E)(i);this._onModuleLoaded=this._protocol.sendMessage(h,[this._worker.getId(),JSON.parse(JSON.stringify(s)),t,r]);const l=(e,t)=>this._request(e,t),d=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(w(t,l,d))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){console.error(e),console.info(t)}}function C(e){return"o"===e[0]&&"n"===e[1]&&d.df(e.charCodeAt(2))}function y(e){return/^onDynamic/.test(e)&&d.df(e.charCodeAt(9))}function w(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s=e=>function(t){return i(e,t)},o={};for(const r of e)y(r)?o[r]=s(r):C(r)?o[r]=i(r,void 0):o[r]=n(r);return o}const S=(0,i(58296).Z)("defaultWorkerFactory",{createScriptURL:e=>e});class x extends s.JT{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;const r=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"===typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"===typeof t.getWorkerUrl){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(S?S.createScriptURL(i):i,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"===typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"===typeof e.addEventListener&&e.addEventListener("error",o)})),this._register((0,s.OF)((()=>{var e;null===(e=this.worker)||void 0===e||e.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",o),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then((i=>{try{i.postMessage(e,t)}catch(n){(0,o.dL)(n),(0,o.dL)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:n}))}}))}}class L{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++L.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new x(e,n,this._label||"anonymous"+n,t,(e=>{u(e),this._webWorkerFailedBeforeError=e,i(e)}))}}L.LAST_WORKER_ID=0;var k=i(28928),D=i(5580),N=i(1794),E=i(91387),T=i(74633),I=i(48749);class M{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new T.L(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;n<t;n++)i[n]=this._lines[n].length+e;this._lineStarts=new I.oQ(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,d.uq)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const n=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(e.lineNumber+s-1,0,i[s]),n[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}var A=i(67331),R=i(47498);class O{constructor(e,t,i){const n=new Uint8Array(e*t);for(let s=0,o=e*t;s<o;s++)n[s]=i;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class P{constructor(e){let t=0,i=0;for(let s=0,o=e.length;s<o;s++){const[n,o,r]=e[s];o>t&&(t=o),n>i&&(i=n),r>i&&(i=r)}t++,i++;const n=new O(i,t,0);for(let s=0,o=e.length;s<o;s++){const[t,i,o]=e[s];n.set(t,i,o)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let F=null;let B=null;class V{static _createLink(e,t,i,n,s){let o=s-1;do{const i=t.charCodeAt(o);if(2!==e.get(i))break;o--}while(o>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null===F&&(F=new P([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),F);const i=function(){if(null===B){B=new R.N(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)B.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)B.set(t.charCodeAt(i),2)}return B}(),n=[];for(let s=1,o=e.getLineCount();s<=o;s++){const o=e.getLineContent(s),r=o.length;let a=0,l=0,d=0,h=1,c=!1,u=!1,g=!1,p=!1;for(;a<r;){let e=!1;const r=o.charCodeAt(a);if(13===h){let t;switch(r){case 40:c=!0,t=0;break;case 41:t=c?0:1;break;case 91:g=!0,u=!0,t=0;break;case 93:g=!1,t=u?0:1;break;case 123:p=!0,t=0;break;case 125:t=p?0:1;break;case 39:case 34:case 96:t=d===r?1:39===d||34===d||96===d?0:1;break;case 42:t=42===d?1:0;break;case 124:t=124===d?1:0;break;case 32:t=g?0:1;break;default:t=i.get(r)}1===t&&(n.push(V._createLink(i,o,s,l,a)),e=!0)}else if(12===h){let t;91===r?(u=!0,t=0):t=i.get(r),1===t?e=!0:h=13}else h=t.nextState(h,r),0===h&&(e=!0);e&&(h=1,c=!1,u=!1,p=!1,l=a+1,d=r),a++}13===h&&n.push(V._createLink(i,o,s,l,r))}return n}}class W{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,n,s){if(e&&t){const i=this.doNavigateValueSet(t,s);if(i)return{range:e,value:i}}if(i&&n){const e=this.doNavigateValueSet(n,s);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let n=Number(e);const s=parseFloat(e);return isNaN(n)||isNaN(s)||n!==s?null:0!==n||t?(n=Math.floor(n*i),n+=t?i:-i,String(n/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let n=null;for(let s=0,o=e.length;null===n&&s<o;s++)n=this.valueSetReplace(e[s],t,i);return n}valueSetReplace(e,t,i){let n=e.indexOf(t);return n>=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}W.INSTANCE=new W;var H=i(31197),z=i(6617),j=i(97050),U=i(67391),K=i(17053),q=i(56702),$=i(47638);const G=3;class Y{computeDiff(e,t,i){var n;const s=new te(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let r=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new $.z(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new $.z(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new $.z(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new $.z(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new K.gB(e,t,null===(n=a.charChanges)||void 0===n?void 0:n.map((e=>new K.iy(new k.e(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new k.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));r&&(r.modified.endLineNumberExclusive!==i.modified.startLineNumber&&r.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new K.gB(r.original.join(i.original),r.modified.join(i.modified),r.innerChanges&&i.innerChanges?r.innerChanges.concat(i.innerChanges):void 0),o.pop())),o.push(i),r=i}return(0,q.eZ)((()=>(0,q.DM)(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new U.h(o,[],s.quitEarly)}}function Z(e,t,i,n){return new N.Hs(e,t,i).ComputeDiff(n)}class Q{constructor(e){const t=[],i=[];for(let n=0,s=e.length;n<s;n++)t[n]=ie(e[n],1),i[n]=ne(e[n],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const n=[],s=[],o=[];let r=0;for(let a=t;a<=i;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,d=e?this._endColumns[a]:t.length+1;for(let e=l;e<d;e++)n[r]=t.charCodeAt(e-1),s[r]=a+1,o[r]=e,r++;!e&&a<i&&(n[r]=10,s[r]=a+1,o[r]=t.length+1,r++)}return new X(n,s,o)}}class X{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class J{constructor(e,t,i,n,s,o,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),s=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),d=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new J(n,s,o,r,a,l,d,h)}}class ee{constructor(e,t,i,n,s){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=s}static createFromDiffResult(e,t,i,n,s,o,r){let a,l,d,h,c;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(d=n.getStartLineNumber(t.modifiedStart)-1,h=0):(d=n.getStartLineNumber(t.modifiedStart),h=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&s()){const o=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=Z(o,a,s,!0).changes;r&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,s=e.length;n<s;n++){const s=e[n],o=s.originalStart-(i.originalStart+i.originalLength),r=s.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(o,r)<G?(i.originalLength=s.originalStart+s.originalLength-i.originalStart,i.modifiedLength=s.modifiedStart+s.modifiedLength-i.modifiedStart):(t.push(s),i=s)}return t}(e)),c=[];for(let t=0,i=e.length;t<i;t++)c.push(J.createFromDiffChange(e[t],o,a))}}return new ee(a,l,d,h,c)}}class te{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Q(e),this.modified=new Q(t),this.continueLineDiff=se(i.maxComputationTime),this.continueCharDiff=se(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Z(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,n=t.length;i<n;i++)e.push(ee.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const n=[];let s=0,o=0;for(let r=-1,a=t.length;r<a;r++){const e=r+1<a?t[r+1]:null,i=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;s<i&&o<l;){const e=this.originalLines[s],t=this.modifiedLines[o];if(e!==t){{let i=ie(e,1),r=ie(t,1);for(;i>1&&r>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(r-2))break;i--,r--}(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,s+1,1,i,o+1,1,r)}{let i=ne(e,1),r=ne(t,1);const a=e.length+1,l=t.length+1;for(;i<a&&r<l;){if(e.charCodeAt(i-1)!==e.charCodeAt(r-1))break;i++,r++}(i<a||r<l)&&this._pushTrimWhitespaceCharChange(n,s+1,i,a,o+1,r,l)}}s++,o++}e&&(n.push(ee.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:i,changes:n}}_pushTrimWhitespaceCharChange(e,t,i,n,s,o,r){if(this._mergeTrimWhitespaceCharChange(e,t,i,n,s,o,r))return;let a;this.shouldComputeCharChanges&&(a=[new J(t,i,t,n,s,o,s,r)]),e.push(new ee(t,t,s,s,a))}_mergeTrimWhitespaceCharChange(e,t,i,n,s,o,r){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new J(t,i,t,n,s,o,s,r)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===s&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new J(t,i,t,n,s,o,s,r)),!0))}}function ie(e,t){const i=d.LC(e);return-1===i?t:i+1}function ne(e,t){const i=d.ow(e);return-1===i?t:i+2}function se(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var oe=i(809);const re=()=>new Y,ae=()=>new oe.DW;var le=i(63932);function de(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function he(e,t,i,n){return{red:e/255,blue:i/255,green:t/255,alpha:n}}function ce(e,t){const i=t.index,n=t[0].length;if(!i)return;const s=e.positionAt(i);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+n}}function ue(e,t){if(!e)return;const i=le.Il.Format.CSS.parseHex(t);return i?{range:e,color:he(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function ge(e,t,i){if(!e||1!==t.length)return;const n=de(t[0].values());return{range:e,color:he(n[0],n[1],n[2],i?n[3]:1)}}function pe(e,t,i){if(!e||1!==t.length)return;const n=de(t[0].values()),s=new le.Il(new le.Oz(n[0],n[1]/100,n[2]/100,i?n[3]:1));return{range:e,color:he(s.rgba.r,s.rgba.g,s.rgba.b,s.rgba.a)}}function me(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function fe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=me(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter((e=>void 0!==e)),s=i[1],o=i[2];if(!o)continue;let r;if("rgb"===s){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;r=ge(ce(e,n),me(o,t),!1)}else if("rgba"===s){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=ge(ce(e,n),me(o,t),!0)}else if("hsl"===s){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;r=pe(ce(e,n),me(o,t),!1)}else if("hsla"===s){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=pe(ce(e,n),me(o,t),!0)}else"#"===s&&(r=ue(ce(e,n),s+o));r&&t.push(r)}return t}(e):[]}const _e=/\bMARK:\s*(.*)$/d,ve=/^-+|-+$/g;function be(e,t){var i;let n=[];if(t.findRegionSectionHeaders&&(null===(i=t.foldingRules)||void 0===i?void 0:i.markers)){const i=function(e,t){const i=[],n=e.getLineCount();for(let s=1;s<=n;s++){const n=e.getLineContent(s),o=n.match(t.foldingRules.markers.start);if(o){const e={startLineNumber:s,startColumn:o[0].length+1,endLineNumber:s,endColumn:n.length+1};if(e.endColumn>e.startColumn){const t={range:e,...ye(n.substring(o[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let n=1;n<=i;n++){Ce(e.getLineContent(n),n,t)}return t}(e);n=n.concat(t)}return n}function Ce(e,t,i){_e.lastIndex=0;const n=_e.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...ye(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function ye(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(ve,""),hasSeparatorLine:t}}class we extends M{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const n=this._lines[i],s=this.offsetAt(new T.L(i+1,1)),o=n.matchAll(e);for(const e of o)(e.index||0===e.index)&&(e.index=e.index+s),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=(0,A.t2)(e.column,(0,A.eq)(t),this._lines[e.lineNumber-1],0);return i?new k.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let n=0,s="",o=0,r=[];return{*[Symbol.iterator](){for(;;)if(o<r.length){const e=s.substring(r[o].start,r[o].end);o+=1,yield e}else{if(!(n<t.length))break;s=t[n],r=i(s,e),o=0,n+=1}}}}getLineWords(e,t){const i=this._lines[e-1],n=this._wordenize(i,t),s=[];for(const o of n)s.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(e,t){const i=[];let n;for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,n=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let o=i+1;o<n;o++)s.push(this._lines[o]);return s.push(this._lines[n].substring(0,e.endColumn-1)),s.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!T.L.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,n=!1;if(t<1)t=1,i=1,n=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class Se{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new we(E.o.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,i){const n=this._getModel(e);return n?j.a.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const i=this._getModel(e);return i?be(i,t):[]}async computeDiff(e,t,i,n){const s=this._getModel(e),o=this._getModel(t);if(!s||!o)return null;return Se.computeDiff(s,o,i,n)}static computeDiff(e,t,i,n){const s="advanced"===n?ae():re(),o=e.getLinesContent(),r=t.getLinesContent(),a=s.computeDiff(o,r,i);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++){if(e.getLineContent(n)!==t.getLineContent(n))return!1}return!0}async computeMoreMinimalEdits(e,t,i){const n=this._getModel(e);if(!n)return t;const s=[];let o;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return k.e.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let r=0;for(let a=1;a<t.length;a++)k.e.getEndPosition(t[r].range).equals(k.e.getStartPosition(t[a].range))?(t[r].range=k.e.fromPositions(k.e.getStartPosition(t[r].range),k.e.getEndPosition(t[a].range)),t[r].text+=t[a].text):(r++,t[r]=t[a]);t.length=r+1;for(let{range:a,text:l,eol:d}of t){if("number"===typeof d&&(o=d),k.e.isEmpty(a)&&!l)continue;const e=n.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,n.eol),e===l)continue;if(Math.max(l.length,e.length)>Se._diffLimit){s.push({range:a,text:l});continue}const t=(0,N.a$)(e,l,i),r=n.offsetAt(k.e.lift(a).getStartPosition());for(const i of t){const e=n.positionAt(r+i.originalStart),t=n.positionAt(r+i.originalStart+i.originalLength),o={text:l.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};n.getValueInRange(o.range)!==o.text&&s.push(o)}}return"number"===typeof o&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?V.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?fe(t):null}async textualSuggest(e,t,i,n){const s=new z.G,o=new RegExp(i,n),r=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(o))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>Se._suggestionsLimit))break e}return{words:Array.from(r),duration:s.elapsed()}}async computeWordRanges(e,t,i,n){const s=this._getModel(e);if(!s)return Object.create(null);const o=new RegExp(i,n),r=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=s.getLineWords(a,o);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=r[t.word];e||(e=[],r[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return r}async navigateValueSet(e,t,i,n,s){const o=this._getModel(e);if(!o)return null;const r=new RegExp(n,s);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},r);if(!l)return null;const d=o.getValueInRange(l);return W.INSTANCE.navigateValueSet(t,a,l,d,i)}loadForeignModule(e,t,i){const n={host:(0,a.IU)(i,((e,t)=>this._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,a.$E)(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}Se._diffLimit=1e5,Se._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco=(0,H.O)());var xe=i(23058),Le=i(19399),ke=i(51833),De=i(33454),Ne=i(53869),Ee=i(11801),Te=i(76595),Ie=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};const Ae=3e5;function Re(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let Oe=class extends s.JT{constructor(e,t,i,n,s){super(),this._modelService=e,this._workerManager=this._register(new Fe(this._modelService,n)),this._logService=i,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>Re(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(s.completionProvider.register("*",new Pe(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return Re(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((n=>n.computedUnicodeHighlights(e,t,i)))}async computeDiff(e,t,i,n){const s=await this._workerManager.withWorker().then((s=>s.computeDiff(e,t,i,n)));if(!s)return null;return{identical:s.identical,quitEarly:s.quitEarly,changes:o(s.changes),moves:s.moves.map((e=>new U.y(new K.f0(new $.z(e[0],e[1]),new $.z(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>{var t;return new K.gB(new $.z(e[0],e[1]),new $.z(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map((e=>new K.iy(new k.e(e[0],e[1],e[2],e[3]),new k.e(e[4],e[5],e[6],e[7])))))}))}}computeMoreMinimalEdits(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,ke.Of)(t)){if(!Re(this._modelService,e))return Promise.resolve(t);const s=z.G.create(),o=this._workerManager.withWorker().then((n=>n.computeMoreMinimalEdits(e,t,i)));return o.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([o,(0,n.Vs)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return Re(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return Re(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}findSectionHeaders(e,t){return this._workerManager.withWorker().then((i=>i.findSectionHeaders(e,t)))}};Oe=Ie([Me(0,xe.q),Me(1,Le.V),Me(2,De.VZ),Me(3,D.c_),Me(4,Ne.p)],Oe);class Pe{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestions)Re(this._modelService,e.uri)&&n.push(e.uri);else for(const h of this._modelService.getModels())Re(this._modelService,h.uri)&&(h===e?n.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||n.push(h.uri));if(0===n.length)return;const s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),r=o?new k.e(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):k.e.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=await this._workerManager.withWorker(),d=await l.textualSuggest(n,null===o||void 0===o?void 0:o.word,s);return d?{duration:d.duration,suggestions:d.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}}class Fe extends s.JT{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new Te.ne).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),Ee.E),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>Ae&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new He(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Be extends s.JT{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new n.zh;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,s.B9)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new s.SL;o.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),o.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),o.add((0,s.OF)((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,s.B9)(t)}}class Ve{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class We{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class He extends s.JT{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new L(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new b(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new We(this)))}catch(e){u(e),this._worker=new Ve(new Se(new We(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(u(e),this._worker=new Ve(new Se(new We(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Be(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._disposed?Promise.reject((0,o.F0)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((s=>s.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeMoreMinimalEdits(e.toString(),t,i)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then((t=>t.computeDefaultDocumentColors(e.toString())))}async textualSuggest(e,t,i){const n=await this._withSyncedResources(e),s=i.source,o=i.flags;return n.textualSuggest(e.map((e=>e.toString())),t,s,o)}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const s=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=s.source,r=s.flags;return i.computeWordRanges(e.toString(),t,o,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{const s=this._modelService.getModel(e);if(!s)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=o.source,a=o.flags;return n.navigateValueSet(e.toString(),t,i,r,a)}))}findSectionHeaders(e,t){return this._withSyncedResources([e]).then((i=>i.findSectionHeaders(e.toString(),t)))}dispose(){super.dispose(),this._disposed=!0}}},52432:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});class n{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new n(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const s=e.getVisibleRanges();if(s.length>0){t=s[0].getStartPosition();const n=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-n}return new n(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=s}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}},55751:(e,t,i)=>{"use strict";i.d(t,{CH:()=>d,CR:()=>a,D4:()=>l,u7:()=>o,xh:()=>s,yu:()=>r});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class s extends n{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class o{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class r{static from(e){const t=new Array(e.length);for(let i=0,n=e.length;i<n;i++){const n=e[i];t[i]=new r(n.left,n.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class d{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},13056:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>m,ob:()=>p,dL:()=>w});var n=i(27748),s=i(75816),o=i(90388),r=i(55751);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,s){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,n),o.getClientRects()}catch(r){return null}finally{this._detachRange(o,s)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(r.CR.compare);const t=[];let i=0,n=e[0];for(let s=1,o=e.length;s<o;s++){const o=e[s];n.left+n.width+.9>=o.left?n.width=Math.max(n.width,o.left+o.width-n.left):(t[i++]=n,n=o)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const n=[];for(let s=0,o=e.length;s<o;s++){const o=e[s];n[s]=new r.CR(Math.max(0,(o.left-t)/i),o.width/i)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,i,n,s,o){const r=e.children.length-1;if(0>r)return null;if((t=Math.min(r,Math.max(0,t)))===(n=Math.min(r,Math.max(0,n)))&&i===s&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,o.clientRectDeltaLeft,o.clientRectScale)}t!==n&&n>0&&0===s&&(n--,s=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===s&&n>0&&(l=e.children[n-1].firstChild,s=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),s=Math.min(l.textContent.length,Math.max(0,s));const d=this._readClientRects(a,i,l,s,o.endNode);return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(d,o.clientRectDeltaLeft,o.clientRectScale)}}var l=i(21770),d=i(97869),h=i(25112),c=i(67364);const u=!!o.tY||!(o.IJ||n.vU||n.G6);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(50),s=i.get(38);this.renderWhitespace="off"===s?i.get(99):"none",this.renderControlCharacters=i.get(94),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(117),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,s.X)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.c3)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n,s){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const o=n.getViewLineRenderingData(e),r=this._options,a=l.Kp.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let p=null;if((0,h.c3)(r.themeType)||"selection"===this._options.renderWhitespace){const t=n.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:o.minColumn,n=i.endLineNumber===e?i.endColumn:o.maxColumn;t<n&&((0,h.c3)(r.themeType)&&a.push(new l.Kp(t,n,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new d.zG(t-1,n-1))))}}const _=new d.IJ(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==c.n0.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;" class="'),s.appendString(m.CLASS_NAME),s.appendString('">');const v=(0,d.d1)(_,s);s.appendString("</div>");let C=null;return g&&u&&o.isBasicASCII&&r.useMonospaceOptimizations&&0===v.containsForeignElements&&(C=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),C||(C=b(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=C,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const s=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==s&&t>s+1&&i>s+1)return new r.CH(!0,[new r.CR(this.getWidth(n),0)]);-1!==s&&t>s+1&&(t=s+1),-1!==s&&i>s+1&&(i=s+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return o&&o.length>0?new r.CH(!1,o):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}m.CLASS_NAME="view-line";class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e<n;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null===e||void 0===e||e.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return b(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const s=this._getColumnPixelOffset(e,t,n),o=this._getColumnPixelOffset(e,i,n);return[new r.CR(s,o-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const n=Math.floor((t-1)/300)-1,s=300*(n+1)+1;let o=-1;if(this._keyColumnPixelOffsetCache&&(o=this._keyColumnPixelOffsetCache[n],-1===o&&(o=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[n]=o)),-1===o){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const r=this._characterMapping.getHorizontalOffset(s),a=this._characterMapping.getHorizontalOffset(t);return o+this._charWidth*(a-r)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),s=a.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return s&&0!==s.length?s[0].left:-1}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class _{constructor(e,t,i,n,s){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=s,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null===e||void 0===e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const s=this._readPixelOffset(this.domNode,e,t,n);if(-1===s)return null;const o=this._readPixelOffset(this.domNode,e,i,n);return-1===o?null:[new r.CR(s,o-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,s){if(i===n){const n=this._readPixelOffset(e,t,i,s);return-1===n?null:[new r.CR(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,s)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);const t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const s=this._pixelOffsetCache[i];if(-1!==s)return s;const o=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=o,o}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);const s=this._characterMapping.getDomPosition(i),o=a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!o||0===o.length)return-1;const r=o[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new r.CR(0,this.getWidth(n))];const s=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,o.partIndex,o.charIndex,n)}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,n,s){const o=super._readVisibleRangesForRange(e,t,i,n,s);if(!o||0===o.length||i===n||1===i&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,s);if(-1!==i){const e=o[o.length-1];e.left<i&&(e.width=i-e.left)}}return o}}const b=n.Pf?C:y;function C(e,t,i,n,s){return new v(e,t,i,n,s)}function y(e,t,i,n,s){return new _(e,t,i,n,s)}function w(e,t,i){const n=t.textContent.length;let s=-1;for(;t;)t=t.previousSibling,s++;return e.getColumn(new d.Nd(s,i),n)}},50238:(e,t,i)=>{"use strict";i.d(t,{Gm:()=>Ys});var n=i(79316),s=i(60548),o=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},r=function(e,t){return function(i,n){t(i,n,e)}};let a=class{constructor(e,t){}dispose(){}};a.ID="editor.contrib.markerDecorations",a=o([r(1,n.i)],a),(0,s._K)(a.ID,a,0);var l=i(76595),d=i(16015),h=i(39706),c=i(53186),u=i(32060),g=i(64295),p=i(27748),m=i(51833),f=i(53335),_=i(90388),v=i(17067),b=i(88775);class C{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=C._read(e,this.key);this.migrate(t,(t=>C._read(e,t)),((t,i)=>C._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const s=t.substring(0,n);return e[s]=e[s]||{},void this._write(e[s],t.substring(n+1),i)}e[t]=i}}function y(e,t){C.items.push(new C(e,t))}function w(e,t){y(e,((i,n,s)=>{if("undefined"!==typeof i)for(const[o,r]of t)if(i===o)return void s(e,r)}))}C.items=[],w("wordWrap",[[!0,"on"],[!1,"off"]]),w("lineNumbers",[[!0,"on"],[!1,"off"]]),w("cursorBlinking",[["visible","solid"]]),w("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),w("renderLineHighlight",[[!0,"line"],[!1,"none"]]),w("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),w("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),w("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("autoIndent",[[!1,"advanced"],[!0,"full"]]),w("matchBrackets",[[!0,"always"],[!1,"never"]]),w("renderFinalNewline",[[!0,"on"],[!1,"off"]]),w("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),w("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),w("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),y("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),y("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),y("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const S={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};y("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const n of Object.entries(S)){!1===e[n[0]]&&"undefined"===typeof t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),y("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),y("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),y("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),y("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const n={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,n[i[0]]=i[1]?"explicit":"never"):n[i[0]]=i[1];t&&i("codeActionsOnSave",n)}})),y("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),y("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var x=i(52274),L=i(67364),k=i(90582),D=i(13785),N=i(71940),E=i(20796),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=class extends c.JT{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.Q5),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.Q5),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new L.LJ,this.isSimpleWidget=e,this._containerObserver=this._register(new v.I(i,t.dimension)),this._targetWindowId=(0,l.Jj)(i).vscodeWindowId,this._rawOptions=F(t),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(k.C.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(x.n.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(b.g.onDidChange((()=>this._recomputeOptions()))),this._register(E.T.getInstance((0,l.Jj)(i)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=D.E4.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:x.n.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:A(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Pf||p.vU,pixelRatio:E.T.getInstance((0,l.ed)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return b.g.readFontInfo((0,l.ed)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function A(){let e="";return p.G6||p.MG||(e+="no-user-select "),p.G6&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.dz&&(e+="mac "),e}M=T([I(3,N.F)],M);class R{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class O{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new R;for(const i of L.Bc){const n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new O;for(const n of L.Bc)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.fS(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const s of L.Bc){const o=!P._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=o,o&&(n=!0)}return n?new L.Bb(i):null}static applyUpdate(e,t){let i=!1;for(const n of L.Bc)if(t.hasOwnProperty(n.name)){const s=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=s.newValue,i=i||s.didChange}return i}}function F(e){const t=f.I8(e);return function(e){C.items.forEach((t=>t.apply(e)))}(t),t}var B=i(74246),V=i(75816),W=i(9922),H=i(76046);class z extends c.JT{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i<n;i++){const n=e[i];switch(n.type){case 0:this.onCompositionStart(n)&&(t=!0);break;case 1:this.onCompositionEnd(n)&&(t=!0);break;case 2:this.onConfigurationChanged(n)&&(t=!0);break;case 3:this.onCursorStateChanged(n)&&(t=!0);break;case 4:this.onDecorationsChanged(n)&&(t=!0);break;case 5:this.onFlushed(n)&&(t=!0);break;case 6:this.onFocusChanged(n)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(n)&&(t=!0);break;case 8:this.onLineMappingChanged(n)&&(t=!0);break;case 9:this.onLinesChanged(n)&&(t=!0);break;case 10:this.onLinesDeleted(n)&&(t=!0);break;case 11:this.onLinesInserted(n)&&(t=!0);break;case 12:this.onRevealRangeRequest(n)&&(t=!0);break;case 13:this.onScrollChanged(n)&&(t=!0);break;case 15:this.onTokensChanged(n)&&(t=!0);break;case 14:this.onThemeChanged(n)&&(t=!0);break;case 16:this.onTokensColorsChanged(n)&&(t=!0);break;case 17:this.onZonesChanged(n)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(n)}}t&&(this._shouldRender=!0)}}class j extends z{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class U{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let n=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[n++]=this.read(e)),e=e.parentElement;const s=new Uint8Array(n);for(let o=0;o<n;o++)s[o]=i[n-o-1];return s}}var K,q=i(13056),$=i(74633),G=i(28928),Y=i(32653),Z=i(54256),Q=i(20447);class X{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const n=e.getPositionFromDOMInfo(t,i);return n?new J(n,t,null):new X(t)}}(K||(K={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!t&&e?new G.e(e.lineNumber,e.column,e.lineNumber,e.column):null!==t&&void 0!==t?t:null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,n,s,o){return{type:e,element:t,mouseColumn:i,position:n,range:s,detail:o}}static createViewZone(e,t,i,n,s){return{type:e,element:t,mouseColumn:i,position:n,range:this._deduceRage(n),detail:s}}static createContentText(e,t,i,n,s){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,n),detail:s}}static createContentEmpty(e,t,i,n){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:n}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,n){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:n}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class ne{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(145),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(116),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return ne.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,s=e.viewModel.getLineCount();let o,r=null,a=null;return i.afterLineNumber!==s&&(a=new $.L(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new $.L(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),o=null===a?r:null===r?a:t<n?r:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:r,positionAfter:a,position:o}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new G.e(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new G.e(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return ne._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class se{constructor(e,t,i,n){this.editorPos=t,this.pos=i,this.relativePos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,le._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class oe extends se{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=U.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,s){super(e,t,i,n),this.hitTestResult=new Q.o((()=>le.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=s;const o=Boolean(this._eventTarget);this._useHitTestTarget=!o}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?Y.i.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,n){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,n)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const re={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class le{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=U.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,n,s){const o=new ne(this._context,this._viewHelper,e),r=new oe(o,t,i,n,s);try{const e=le._createMouseTarget(o,r);if(6===e.type&&o.stickyTabStops&&null!==e.position){const t=le._snapToSoftTabBoundary(e.position,o.viewModel),i=G.e.fromPositions(t,t).plusRange(e.range);return r.fulfillContentText(t,i,e.detail)}return e}catch(a){return r.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let n=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(n=n||t.fulfillUnknown()),n=n||le._hitTestContentWidget(e,i),n=n||le._hitTestOverlayWidget(e,i),n=n||le._hitTestMinimap(e,i),n=n||le._hitTestScrollbarSlider(e,i),n=n||le._hitTestViewZone(e,i),n=n||le._hitTestMargin(e,i),n=n||le._hitTestViewCursor(e,i),n=n||le._hitTestTextArea(e,i),n=n||le._hitTestViewLines(e,i),n=n||le._hitTestScrollbar(e,i),n||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,n=t.mouseContentHorizontalOffset,s=t.mouseVerticalOffset;for(const o of i){if(n<o.contentLeft)continue;if(n>o.contentLeft+o.width)continue;const i=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(i<=s&&s<=i+o.height)return t.fulfillContentText(o.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let s=Math.abs(t.relativePos.x);const o={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:s};if(s-=e.layoutInfo.glyphMarginLeft,s<=e.layoutInfo.glyphMarginWidth){const r=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(r.lineNumber);return o.glyphMarginLane=a[Math.floor(s/e.lineHeight)],t.fulfillMargin(2,n,i.range,o)}return s-=e.layoutInfo.glyphMarginWidth,s<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,o):(s-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,o))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new $.L(1,1),re);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new $.L(i,n),re)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const n=e.getLineWidth(i),s=ae(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new $.L(i,1),s)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const s=ae(t.mouseContentHorizontalOffset-n),o=new $.L(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(o,s)}}const i=t.hitTestResult.value;return 1===i.type?le.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.L(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.L(i,n))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.L(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(145),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return le._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,s){const o=n.lineNumber,r=n.column,a=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(n,e)}const d=e.visibleRangeForPosition(o,r);if(!d)return t.fulfillUnknown(n);const h=d.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!s,injectedText:s});const c=[];if(c.push({offset:d.left,column:r}),r>1){const t=e.visibleRangeForPosition(o,r-1);t&&c.push({offset:t.left,column:r-1})}if(r<e.viewModel.getLineMaxColumn(o)){const t=e.visibleRangeForPosition(o,r+1);t&&c.push({offset:t.left,column:r+1})}c.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(l.Jj(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let l=1;l<c.length;l++){const e=c[l-1],i=c[l];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new G.e(o,e.column,o,i.column);n=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new $.L(o,e.column):new $.L(o,i.column);break}}return t.fulfillContentText(n,m,{mightBeForeignElement:!p||!!s,injectedText:s})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.getVerticalOffsetForLineNumber(i),s=n+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>s)){const i=Math.floor((n+s)/2);let o=t.pos.y+(i-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+t.editorPos.height&&(o=t.editorPos.y+t.editorPos.height-1);const r=new H.YN(t.pos.x,o),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates(l.Jj(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(l.Jj(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=l.Ay(e.viewDomNode);let n;if(n=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let s=e.elementFromPoint(t,i);if(null!==s){for(;s&&s.firstChild&&s.firstChild.nodeType!==s.firstChild.TEXT_NODE&&s.lastChild&&s.lastChild.firstChild;)s=s.lastChild;const e=s.getBoundingClientRect(),i=l.Jj(s),o=`${i.getComputedStyle(s,null).getPropertyValue("font-style")} ${i.getComputedStyle(s,null).getPropertyValue("font-variant")} ${i.getComputedStyle(s,null).getPropertyValue("font-weight")} ${i.getComputedStyle(s,null).getPropertyValue("font-size")}/${i.getComputedStyle(s,null).getPropertyValue("line-height")} ${i.getComputedStyle(s,null).getPropertyValue("font-family")}`,r=s.innerText;let a,d=e.left,h=0;if(t>e.left+e.width)h=r.length;else{const e=de.getInstance();for(let i=0;i<r.length+1;i++){if(a=e.getCharWidth(r.charAt(i),o)/2,d+=a,t<d){h=i;break}d+=a}}n.setStart(s.firstChild,h),n.setEnd(s.firstChild,h)}return n}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new X;const s=n.startContainer;if(s.nodeType===s.TEXT_NODE){const t=s.parentNode,i=t?t.parentNode:null,o=i?i.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===q.Nt.CLASS_NAME?K.createFromDOMInfo(e,t,n.startOffset):new X(s.parentNode)}if(s.nodeType===s.ELEMENT_NODE){const t=s.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===q.Nt.CLASS_NAME?K.createFromDOMInfo(e,s,s.textContent.length):new X(s)}return new X}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,n=t?t.parentNode:null,s=n?n.parentNode:null;return(s&&s.nodeType===s.ELEMENT_NODE?s.className:null)===q.Nt.CLASS_NAME?K.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new X(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,n=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,s=t?t.parentNode:null,o=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(n===q.Nt.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return K.createFromDOMInfo(e,t,0)}else if(o===q.Nt.CLASS_NAME)return K.createFromDOMInfo(e,i.offsetNode,0)}return new X(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),s=Z.l.atomicPosition(i,e.column-1,n,2);return-1!==s?new $.L(e.lineNumber,s+1):e}static doHitTest(e,t){let i=new X;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(l.Jj(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),n=e.viewModel.normalizePosition(i.position,2);!t&&n.equals(i.position)||(i=new J(n,i.spanNode,t))}return i}}class de{static getInstance(){return de._INSTANCE||(de._INSTANCE=new de),de._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const n=this._canvas.getContext("2d");n.font=t;const s=n.measureText(e).width;return this._cache[i]=s,s}}de._INSTANCE=null;var he=i(81068),ce=i(68068),ue=i(11801),ge=i(65179),pe=i(24854),me=i(24622);class fe extends z{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new le(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;const n=new H.N5(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=l.nm(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new H.gy(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let s=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{s=t}))),this._register(l.nm(this.viewHelper.viewDomNode,l.tw.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,s)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.Io.INSTANCE;let t=0,i=k.C.getZoomLevel(),n=!1,s=0;function o(e){return _.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(l.nm(this.viewHelper.viewDomNode,l.tw.MOUSE_WHEEL,(r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(76))return;const a=new ge.q(r);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(o(r)){const e=k.C.getZoomLevel(),t=a.deltaY>0?1:-1;k.C.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=k.C.getZoomLevel(),n=o(r),s=0),t=Date.now(),s+=a.deltaY,n&&(k.C.setZoomLevel(i+s/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(145)){const e=this._context.configuration.options.get(145).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new H.rU(e,t).toPageCoordinates(l.Jj(this.viewHelper.viewDomNode)),n=(0,H.kG)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;const s=(0,H.Pp)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,s,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=l.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,s=2===i.type||3===i.type||4===i.type,o=3===i.type,r=this._context.configuration.options.get(109),a=8===i.type||5===i.type,l=9===i.type;let d=e.leftButton||e.middleButton;_.dz&&e.leftButton&&e.ctrlKey&&(d=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(d&&(n||o&&r))h(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(a){const n=i.detail;d&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends c.JT{constructor(e,t,i,n,s,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=s,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new H.AL(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ce,this._currentSelection=new pe.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const s=this._context.configuration.options;if(!s.get(91)&&s.get(35)&&!s.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);l.vd(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,o=Math.max(n.getCurrentScrollTop()-i,0),r=ne.getZoneAtCoord(this._context,o);if(r){const e=this._helpPositionJumpOverViewZone(r);if(e)return te.createOutsideEditor(s,e,"above",i)}const a=n.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(s,new $.L(a,1),"above",i)}if(e.posy>t.y+t.height){const o=e.posy-t.y-t.height,r=n.getCurrentScrollTop()+e.relativePos.y,a=ne.getZoneAtCoord(this._context,r);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(s,e,"below",o)}const l=n.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(s,new $.L(l,i.getLineMaxColumn(l)),"below",o)}const o=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(s,new $.L(o,1),"left",i)}if(e.posx>t.x+t.width){const n=e.posx-t.x-t.width;return te.createOutsideEditor(s,new $.L(o,i.getLineMaxColumn(o)),"right",n)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return te.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new $.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends c.JT{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new be(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class be extends c.JT{constructor(e,t,i,n,s,o){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=s,this._mouseEvent=o,this._lastTime=Date.now(),this._animationFrameDisposable=l.jL(l.Jj(o.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(145).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const n=this._context.viewLayout.getLinesViewportData(),s="above"===this._position.outsidePosition?n.startLineNumber:n.endLineNumber;let o;{const e=(0,H.kG)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(145).horizontalScrollbarHeight,i=new H.YN(this._mouseEvent.pos.x,e.y+e.height-t-.1),n=(0,H.Pp)(this._viewHelper.viewDomNode,e,i);o=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,n,null)}o.position&&o.position.lineNumber===s||(o="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new $.L(s,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new $.L(s,this._context.viewModel.getLineMaxColumn(s)),"below",this._position.outsideDistance)),this._dispatchMouse(o,!0,2),this._animationFrameDisposable=l.jL(l.Jj(o.element),(()=>this._execute()))}}class Ce{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ce.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Ce.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ye=i(90356);class we extends fe{constructor(e,t,i){super(e,t,i),this._register(ce.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Tap,(e=>this.onTap(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Change,(e=>this.onChange(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Contextmenu,(e=>this._onContextMenu(new H.gy(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(l.nm(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new H.tC(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new H.gy(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(ce.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Tap,(e=>this.onTap(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Change,(e=>this.onChange(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Contextmenu,(e=>this._onContextMenu(new H.gy(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new H.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(ye.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class xe extends c.JT{constructor(e,t,i){super();(_.gn||_.Dt&&_.tq)&&he.D.pointerEvents?this.handler=this._register(new we(e,t,i)):ue.E.TouchEvent?this.handler=this._register(new Se(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Le=i(5887),ke=i(78701),De=i(13593);class Ne extends z{}var Ee=i(46673),Te=i(12354);class Ie extends Ne{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new $.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);const i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.IJ?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));s.sort(((e,t)=>G.e.compareRangesUsingEnds(e.range,t.range)));let o=0;const r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=n;l++){const e=l-i;let n=this._getLineRenderLineNumber(l),d="";for(;o<s.length&&s[o].range.endLineNumber<l;)o++;for(let t=o;t<s.length;t++){const{range:e,options:i}=s[t];e.startLineNumber<=l&&(d+=" "+i.lineNumberClassName)}n||d?(l===r&&0===this._context.viewModel.getLineLength(l)&&("off"===this._renderFinalNewline&&(n=""),"dimmed"===this._renderFinalNewline&&(d+=" dimmed-line-number")),l===this._activeLineNumber&&(d+=" active-line-number"),a[e]=`<div class="${Ie.CLASS_NAME}${t}${d}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${n}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ie.CLASS_NAME="line-numbers",(0,Ee.Ic)(((e,t)=>{const i=e.getColor(Te.hw),n=e.getColor(Te.Bj);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Me extends j{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setClassName(Me.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,V.X)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Me.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Me.CLASS_NAME="glyph-margin",Me.OUTER_CLASS_NAME="margin";var Ae=i(55412);const Re="monaco-mouse-cursor-text";var Oe=i(18841),Pe=i(63932),Fe=i(11052),Be=i(25371),Ve=i(87775),We=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},He=function(e,t){return function(i,n){t(i,n,e)}};class ze{constructor(e,t,i,n,s){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=s,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new $.L(this.modelLineNumber,this.distanceToModelLineStart+1),i=new $.L(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const je=p.vU;let Ue=class extends j{constructor(e,t,i,n,s){super(e),this._keybindingService=n,this._instantiationService=s,this._primaryCursorPosition=new $.L(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const o=this._context.configuration.options,r=o.get(145);this._setAccessibilityOptions(o),this._contentLeft=r.contentLeft,this._contentWidth=r.contentWidth,this._contentHeight=r.height,this._fontInfo=o.get(50),this._lineHeight=o.get(67),this._emptySelectionClipboard=o.get(37),this._copyWithSyntaxHighlighting=o.get(25),this._visibleTextArea=null,this._selections=[new pe.Y(1,1,1,1)],this._modelSelections=[new pe.Y(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,V.X)(document.createElement("textarea")),U.write(this.textArea,7),this.textArea.setClassName(`inputarea ${Re}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(o)),this.textArea.setAttribute("aria-required",o.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(o.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Le.NC("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",o.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,V.X)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const l={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},d={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.ED),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),n=Array.isArray(e)?e:null,s=Array.isArray(e)?e.join(t):e;let o,r=null;if(ye.RA.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&s.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(o=e.html,r=e.mode)}return{isFromEmptySelection:i,multicursorText:n,text:s,html:o,mode:r}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.dz&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new De.un(i,i.length,i.length,G.e.fromPositions(t),0)}const t=500;if(_.dz&&!e.isEmpty()&&l.getValueLengthInRange(e,0)<t){const t=l.getValueInRange(e,0);return new De.un(t,0,t.length,e,0)}if(p.G6&&!e.isEmpty()){const e="vscode-placeholder";return new De.un(e,0,e.length,null,void 0)}return De.un.EMPTY}if(p.Dt){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,n]=this._getAndroidWordAtPosition(t);if(i.length>0)return new De.un(i,n,n,G.e.fromPositions(t),0)}return De.un.EMPTY}return De.ee.fromEditorSelection(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new ye.Tj(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(ye.Fz,d,h,_.OS,{isAndroid:p.Dt,isChrome:p.i7,isFirefox:p.vU,isSafari:p.G6})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(De.al&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(De.al&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:n,widthOfHiddenTextBefore:s}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),n=e.lastIndexOf("\n"),s=e.substring(n+1),o=s.lastIndexOf("\t"),r=s.length-o-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),d=a.column-1-l,h=s.substring(0,s.length-l),{tabSize:c}=this._context.viewModel.model.getOptions(),u=function(e,t,i,n){if(0===t.length)return 0;const s=e.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";const o=e.createElement("span");(0,g.N)(o,i),o.style.whiteSpace="pre",o.style.tabSize=n*i.spaceWidth+"px",o.append(t),s.appendChild(o),e.body.appendChild(s);const r=o.offsetWidth;return e.body.removeChild(s),r}(this.textArea.domNode.ownerDocument,h,this._fontInfo,c);return{distanceToModelLineStart:d,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:o}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),n=e.indexOf("\n"),s=-1===n?e:e.substring(0,n),o=s.indexOf("\t"),r=-1===o?s.length:s.length-o-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,G.e.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new ze(this._context,i.startLineNumber,n,s,o),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Re} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${Re}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.F.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ae.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let n=!0,s=e.column,o=!0,r=e.column,a=0;for(;a<50&&(n||o);){if(n&&s<=1&&(n=!1),n){const e=t.charCodeAt(s-2);0!==i.get(e)?n=!1:s--}if(o&&r>t.length&&(o=!1),o){const e=t.charCodeAt(r-1);0!==i.get(e)?o=!1:r++}a++}return[t.substring(s-1,r-1),e.column-s]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ae.u)(this._context.configuration.options.get(131),[]);let n=e.column,s=0;for(;n>1;){const o=t.charCodeAt(n-2);if(0!==i.get(o)||s>50)return t.substring(n-1,e.column-1);s++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!ke.ZG(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){var t,i,n;if(1===e.get(2)){const e=null===(t=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))||void 0===t?void 0:t.getAriaLabel(),s=null===(i=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))||void 0===i?void 0:i.getAriaLabel(),o=null===(n=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))||void 0===n?void 0:n.getAriaLabel(),r=Le.NC("accessibilityModeOff","The editor is not accessible at this time.");return e?Le.NC("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",r,e):s?Le.NC("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",r,s):o?Le.NC("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",r,o):r}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===L.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(145).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=je?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=n*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(124))),(e.hasChanged(34)||e.hasChanged(91))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.F.enabled||e.get(34)&&e.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new $.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,n=this._visibleTextArea.endPosition;if(i&&n&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const s=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,o=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,r+=e,l-=e}l>this._contentWidth&&(l=this._contentWidth);const d=this._context.viewModel.getViewLineData(i.lineNumber),h=d.tokens.findTokenIndexAtOffset(i.column-1),c=h===d.tokens.findTokenIndexAtOffset(n.column-1),u=this._visibleTextArea.definePresentation(c?d.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=o*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:s,left:a,width:l,height:this._lineHeight,useCover:!1,color:(Oe.RW.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight)this._renderAtTopLeft();else if(_.dz||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=null!==(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)&&void 0!==e?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:je?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:je?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.N)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Il.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Me.OUTER_CLASS_NAME):0!==n.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ie.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ue=We([He(3,Be.d),He(4,Ve.TG)],Ue);var Ke=i(55751),qe=i(15968);class $e{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){qe.Ox.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new $.L(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.IJ&&t.get(107),n=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){qe.Ox.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){qe.Ox.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),qe.Ox.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),qe.Ox.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){qe.Ox.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){qe.Ox.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){qe.Ox.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){qe.Ox.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){qe.Ox.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){qe.Ox.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){qe.Ox.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){qe.Ox.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){qe.Ox.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var Ge=i(58296),Ye=i(130);class Ze{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new d.he("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>n)return null;let s=0,o=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===o?(s=i,o=1):o++)}if(e<i){let n=0;n=t<i?t-e+1:i-e,this._rendLineNumberStart-=n}return this._lines.splice(s,o)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const n=this.getStartLineNumber(),s=this.getEndLineNumber();let o=!1;for(let r=e;r<=i;r++)r>=n&&r<=s&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s){return this._lines.splice(e-this._rendLineNumberStart,s-e+1)}const o=[];for(let h=0;h<i;h++)o[h]=this._createLine();const r=e-this._rendLineNumberStart,a=this._lines.slice(0,r),l=this._lines.slice(r,this._lines.length-i),d=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(o).concat(l),d}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let n=!1;for(let s=0,o=e.length;s<o;s++){const o=e[s];if(o.toLineNumber<t||o.fromLineNumber>i)continue;const r=Math.max(t,o.fromLineNumber),a=Math.min(i,o.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class Qe{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Ze((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,V.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;i<n;i++){const e=t[i].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;i<n;i++){const e=t[i].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Xe(this.domNode.domNode,this._host,e),n={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},s=i.render(n,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(s.rendLineNumberStart,s.lines)}}class Xe{constructor(e,t,i){this.domNode=e,this.host=t,this.viewportData=i}render(e,t,i,n){const s={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(s.rendLineNumberStart+s.linesLength-1<t||i<s.rendLineNumberStart){s.rendLineNumberStart=t,s.linesLength=i-t+1,s.lines=[];for(let e=t;e<=i;e++)s.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(s,!0,n),s}if(this._renderUntouchedLines(s,Math.max(t-s.rendLineNumberStart,0),Math.min(i-s.rendLineNumberStart,s.linesLength-1),n,t),s.rendLineNumberStart>t){const e=t,o=Math.min(i,s.rendLineNumberStart-1);e<=o&&(this._insertLinesBefore(s,e,o,n,t),s.linesLength+=o-e+1)}else if(s.rendLineNumberStart<t){const e=Math.min(s.linesLength,t-s.rendLineNumberStart);e>0&&(this._removeLinesBefore(s,e),s.linesLength-=e)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1<i){const e=s.rendLineNumberStart+s.linesLength,o=i;e<=o&&(this._insertLinesAfter(s,e,o,n,t),s.linesLength+=o-e+1)}else if(s.rendLineNumberStart+s.linesLength-1>i){const e=Math.max(0,i-s.rendLineNumberStart+1),t=s.linesLength-1-e+1;t>0&&(this._removeLinesAfter(s,t),s.linesLength-=t)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const o=e.rendLineNumberStart,r=e.lines;for(let a=t;a<=i;a++){const e=o+a;r[a].layoutLine(e,n[e-s],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,s){const o=[];let r=0;for(let a=t;a<=i;a++)o[r++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,n,s){const o=[];let r=0;for(let a=t;a<=i;a++)o[r++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let n=0;n<t;n++){const t=e.lines[i+n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,n){Xe._ttPolicy&&(i=Xe._ttPolicy.createHTML(i));const s=this.domNode.lastChild;t||!s?this.domNode.innerHTML=i:s.insertAdjacentHTML("afterend",i);let o=this.domNode.lastChild;for(let r=e.linesLength-1;r>=0;r--){const t=e.lines[r];n[r]&&(t.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Xe._ttPolicy&&(t=Xe._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;s<e.linesLength;s++){const t=e.lines[s];if(i[s]){const e=n.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}_finishRendering(e,t,i){const n=Xe._sb,s=e.linesLength,o=e.lines,r=e.rendLineNumberStart,a=[];{n.reset();let l=!1;for(let e=0;e<s;e++){const t=o[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+r,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(a[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,n.build(),a)}{n.reset();let t=!1;const l=[];for(let e=0;e<s;e++){const s=o[e];if(l[e]=!1,a[e])continue;s.renderLine(e+r,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,n.build(),l)}}}Xe._ttPolicy=(0,Ge.Z)("editorViewLayer",{createHTML:e=>e}),Xe._sb=new Ye.HT(1e5);class Je extends j{constructor(e){super(e),this._visibleLines=new Qe(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.N)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new et(this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.N)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,n=t.length;i<n;i++){const n=t[i];n.prepareRender(e),n.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,V.X)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,n,s){let o="";for(let r=0,a=this._dynamicOverlays.length;r<a;r++){o+=this._dynamicOverlays[r].render(n.startLineNumber,e)}return this._renderedContent!==o&&(this._renderedContent=o,s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;">'),s.appendString(o),s.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(145);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.N)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.N)(this.domNode,t.get(50));const i=t.get(145);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class nt{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}emitKeyUp(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}emitContextMenu(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}emitMouseWheel(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return nt.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new $.L(e.afterLineNumber,1)).lineNumber}}}class st extends j{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(145),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const n=t.contentLeft;return this.contentLeft!==n&&(this.contentLeft=n,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;const n=e.getDecorationsInViewport();for(const s of n){if(!s.options.blockClassName)continue;let n,o,r=this.blocks[i];r||(r=this.blocks[i]=(0,V.X)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),o=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(n=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),o=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[a,l,d,h]=null!==(t=s.options.blockPadding)&&void 0!==t?t:[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-h),r.setWidth(this.contentWidth+h+l),r.setTop(n-e.scrollTop-a),r.setHeight(o-n+a+d),i++}for(let s=i;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=i}}class ot extends j{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,V.X)(document.createElement("div")),U.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,V.X)(document.createElement("div")),U.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new rt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n,s){this._widgets[e.getId()].setPosition(t,i,n,s),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class rt{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,V.X)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(145);this._fixedOverflowWidgets=n.get(42),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(145)){const e=t.get(145);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function n(e,t,i){if(!e)return new at(null,null);const n=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(n)){const s=t.coordinatesConverter.convertModelPositionToViewPosition(n,null!==i&&void 0!==i?i:void 0);return new at(e,s)}return new at(e,null)}this._affinity=e,this._primaryAnchor=n(t,this._context.viewModel,this._affinity),this._secondaryAnchor=n(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?(null===t||void 0===t?void 0:t.innerWidth)||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,n){this._setPosition(n,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const s=e.top,o=s,r=e.top+e.height,a=s-i,l=o>=i,d=r,h=n.viewportHeight-r>=i;let c=e.left;return c+t>n.scrollLeft+n.viewportWidth&&(c=n.scrollLeft+n.viewportWidth-t),c<n.scrollLeft&&(c=n.scrollLeft),{fitsAbove:l,aboveTop:a,fitsBelow:h,belowTop:d,left:c}}_layoutHorizontalSegmentInPage(e,t,i,n){var s;const o=Math.max(15,t.left-n),r=Math.min(t.left+t.width+n,e.width-15),a=this._viewDomNode.domNode.ownerDocument.defaultView;let l=t.left+i-(null!==(s=null===a||void 0===a?void 0:a.scrollX)&&void 0!==s?s:0);if(l+n>r){const e=l-(r-n);l-=e,i-=e}if(l<o){const e=l-o;l-=e,i-=e}return[i,l]}_layoutBoxInPage(e,t,i,n){var s,o;const r=e.top-i,a=e.top+e.height,d=l.i(this._viewDomNode.domNode),h=this._viewDomNode.domNode.ownerDocument,c=h.defaultView,u=d.top+r-(null!==(s=null===c||void 0===c?void 0:c.scrollY)&&void 0!==s?s:0),g=d.top+a-(null!==(o=null===c||void 0===c?void 0:c.scrollY)&&void 0!==o?o:0),p=l.D6(h.body),[m,f]=this._layoutHorizontalSegmentInPage(p,d,e.left-n.scrollLeft+this._contentLeft,t),_=u>=22,v=g+i<=p.height-22;return this._fixedOverflowWidgets?{fitsAbove:_,aboveTop:Math.max(u,22),fitsBelow:v,belowTop:g,left:f}:{fitsAbove:_,aboveTop:r,fitsBelow:v,belowTop:a,left:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new lt(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;return{primary:n(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:n((null===(t=this._secondaryAnchor.viewPosition)||void 0===t?void 0:t.lineNumber)===(null===(i=this._primaryAnchor.viewPosition)||void 0===i?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function n(t,i,n){if(!t)return null;const s=e.visibleRangeForPosition(t);if(!s)return null;const o=1===t.column&&3===i?0:s.left,r=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new dt(r,o,n)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(50);let s=t.left;return s=s<e.left?Math.max(s,e.left-i+n.typicalFullwidthCharacterWidth):Math.min(s,e.left+i-n.typicalFullwidthCharacterWidth),new dt(e.top,s,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return null;if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const n=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let s;s=this.allowEditorOverflow?this._layoutBoxInPage(n,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(n,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let o=1;o<=2;o++)for(const e of this._preference)if(1===e){if(!s)return null;if(2===o||s.fitsAbove)return{coordinate:new lt(s.aboveTop,s.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new lt(n.top,n.left)),position:0}:{coordinate:new lt(n.top,n.left),position:0};if(!s)return null;if(2===o||s.fitsBelow)return{coordinate:new lt(s.belowTop,s.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class lt{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class dt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t){try{for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.call(t,...n)}catch(o){return null}}var ct=i(25112);class ut extends Ne{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(145);this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.Y(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const s of this._selections)t.add(s.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.fS(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=[];for(let o=t;o<=i;o++){n[o-t]=""}if(this._wordWrap){const s=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const o=this._context.viewModel.coordinatesConverter,r=o.convertViewPositionToModelPosition(new $.L(e,1)).lineNumber,a=o.convertModelPositionToViewPosition(new $.L(r,1)).lineNumber,l=o.convertModelPositionToViewPosition(new $.L(r,this._context.viewModel.model.getLineMaxColumn(r))).lineNumber,d=Math.max(a,t),h=Math.min(l,i);for(let e=d;e<=h;e++){n[e-t]=s}}}const s=this._renderOne(e,!0);for(const o of this._cursorLineNumbers){if(o<t||o>i)continue;n[o-t]=s}this._renderData=n}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,Ee.Ic)(((e,t)=>{const i=e.getColor(Te.Kh);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Te.Mm)){const i=e.getColor(Te.Mm);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,ct.c3)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends Ne{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let a=0,l=t.length;a<l;a++){const e=t[a];e.options.className&&(i[n++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return i<n?-1:i>n?1:G.e.compareRangesUsingStarts(e.range,t.range)}));const s=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,r=[];for(let a=s;a<=o;a++){r[a-s]=""}this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let o=0,r=t.length;o<r;o++){const e=t[o];if(!e.options.isWholeLine)continue;const r='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,n),l=Math.min(e.range.endLineNumber,s);for(let t=a;t<=l;t++){i[t-n]+=r}}}_renderNormalDecorations(e,t,i){var n;const s=e.visibleRange.startLineNumber;let o=null,r=!1,a=null,l=!1;for(let d=0,h=t.length;d<h;d++){const h=t[d];if(h.options.isWholeLine)continue;const c=h.options.className,u=Boolean(h.options.showIfCollapsed);let g=h.range;u&&1===g.endColumn&&g.endLineNumber!==g.startLineNumber&&(g=new G.e(g.startLineNumber,g.startColumn,g.endLineNumber-1,this._context.viewModel.getLineMaxColumn(g.endLineNumber-1))),o===c&&r===u&&G.e.areIntersectingOrTouching(a,g)?a=G.e.plusRange(a,g):(null!==o&&this._renderNormalDecoration(e,a,o,l,r,s,i),o=c,r=u,a=g,l=null!==(n=h.options.shouldFillLineOnLineBreak)&&void 0!==n&&n)}null!==o&&this._renderNormalDecoration(e,a,o,l,r,s,i)}_renderNormalDecoration(e,t,i,n,s,o,r){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let l=0,d=a.length;l<d;l++){const e=a[l];if(e.outsideRenderedLine)continue;const t=e.lineNumber-o;if(s&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),n=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new Ke.yu(n,this._typicalHalfwidthCharacterWidth)}}for(let s=0,o=e.ranges.length;s<o;s++){const a=n&&e.continuesOnNextLine&&1===o,l=e.ranges[s],d='<div class="cdr '+i+'" style="left:'+String(l.left)+"px;width:"+(a?"100%;":String(l.width)+"px;")+'"></div>';r[t]+=d}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends j{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,o=s.get(103),r=s.get(75),a=s.get(40),d=s.get(106),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,Ee.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:o.vertical,horizontal:o.horizontal,verticalHasArrows:o.verticalHasArrows,horizontalHasArrows:o.horizontalHasArrows,verticalScrollbarSize:o.verticalScrollbarSize,verticalSliderSize:o.verticalSliderSize,horizontalScrollbarSize:o.horizontalScrollbarSize,horizontalSliderSize:o.horizontalSliderSize,handleMouseWheel:o.handleMouseWheel,alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel,arrowSize:o.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:d,scrollByPage:o.scrollByPage};this.scrollbar=this._register(new me.$Z(t.domNode,h,this._context.viewLayout.getScrollable())),U.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,V.X)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const c=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(n,1)};this._register(l.nm(i.domNode,"scroll",(e=>c(i.domNode,!0,!0)))),this._register(l.nm(t.domNode,"scroll",(e=>c(t.domNode,!0,!1)))),this._register(l.nm(n.domNode,"scroll",(e=>c(n.domNode,!0,!1)))),this._register(l.nm(this.scrollbarDomNode.domNode,"scroll",(e=>c(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(145);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(103)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(103),i=e.get(75),n=e.get(40),s=e.get(106),o={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:s};this.scrollbar.updateOptions(o)}return e.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Ee.m6)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(24032);class vt{constructor(e,t,i,n,s){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=n,this._decorationToRenderBrand=void 0,this.zIndex=null!==s&&void 0!==s?s:0}}class bt{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Ct{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class yt extends Ne{_render(e,t,i){const n=[];for(let r=e;r<=t;r++){n[r-e]=new Ct}if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let s=null,o=0;for(let r=0,a=i.length;r<a;r++){const a=i[r],l=a.className,d=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const c=Math.min(a.endLineNumber,t)-e;s===l?(h=Math.max(o+1,h),o=Math.max(o,c)):(s=l,o=c);for(let e=h;e<=o;e++)n[e].add(new bt(l,d,a.tooltip))}return n}}class wt extends j{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(145);this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,V.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!G.e.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){var t;const i=e.getId();if(this._widgets[i]){const e=this._widgets[i].domNode.domNode;delete this._widgets[i],null===(t=e.parentNode)||void 0===t||t.removeChild(e),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){var i,n,s;const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.getDecorationsInViewport();for(const l of a){const e=l.options.glyphMarginClassName;if(!e)continue;const a=Math.max(l.range.startLineNumber,o),d=Math.min(l.range.endLineNumber,r),h=null!==(n=null===(i=l.options.glyphMargin)||void 0===i?void 0:i.position)&&void 0!==n?n:_t.U.Center,c=null!==(s=l.options.zIndex)&&void 0!==s?s:0;for(let i=a;i<=d;i++){const n=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(i,0)),s=this._context.viewModel.glyphLanes.getLanesAtLine(n.lineNumber).indexOf(h);t.push(new St(i,s,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(const s of Object.values(this._widgets)){const e=s.preference.range,{startLineNumber:o,endLineNumber:r}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(G.e.lift(e));if(!o||!r||r<i||o>n)continue;const a=Math.max(o,i),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(a,0)),d=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(s.preference.lane);t.push(new xt(a,d,s.preference.zIndex,s))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const n of Object.values(this._widgets))n.renderInfo=null;const t=new m.H9(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const n=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!n||0===n.length)break;const s=n[0];if(0===s.type){const e=[];for(const t of n){if(t.zIndex!==s.zIndex||t.type!==s.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(s.accept(e.join(" ")))}else s.widget.renderInfo={lineNumber:s.lineNumber,laneIndex:s.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();null===e||void 0===e||e.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const n=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],s=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(n),i.domNode.setLeft(s),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const n=this._decorationGlyphsToRender[i],s=e.viewportData.relativeVerticalOffset[n.lineNumber-e.viewportData.startLineNumber],o=this._glyphMarginLeft+n.laneIndex*this._lineHeight;let r;i<this._managedDomNodes.length?r=this._managedDomNodes[i]:(r=(0,V.X)(document.createElement("div")),this._managedDomNodes.push(r),this.domNode.appendChild(r)),r.setClassName("cgmr codicon "+n.combinedClassName),r.setPosition("absolute"),r.setTop(s),r.setLeft(o),r.setWidth(t),r.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();null===e||void 0===e||e.domNode.remove()}}}class St{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=n,this.type=0}accept(e){return new Lt(this.lineNumber,this.laneIndex,e)}}class xt{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=n,this.type=1}}class Lt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var kt=i(47624),Dt=i(67263),Nt=i(58410);class Et extends Ne{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(146),n=t.get(50);this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146),n=t.get(50);return this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,s;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._primaryPosition,d=this.getGuidesByLine(o,Math.min(r+1,this._context.viewModel.getLineCount()),l),h=[];for(let c=o;c<=r;c++){const r=c-o,l=d[r];let u="";const g=null!==(i=null===(t=e.visibleRangeForPosition(new $.L(c,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of l){const i=-1===t.column?g+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new $.L(c,t.column)).left;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const o=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(s=null===(n=e.visibleRangeForPosition(new $.L(c,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==s?s:i+this._spaceWidth)-i:this._spaceWidth;u+=`<div class="core-guide ${t.className} ${o}" style="left:${i}px;width:${r}px"></div>`}h[r]=u}this._renderResult=h}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?Nt.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?Nt.s6.EnabledForActive:Nt.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let o=0,r=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);o=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const t=new Array;d.push(t);const i=n?n[h-e]:[],c=new m.H9(i),u=s?s[h-e]:0;for(let e=1;e<=u;e++){const n=(e-1)*l+1,s=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&o<=h&&h<=r&&e===a;t.push(...c.takeWhile((e=>e.visibleColumn<n))||[]);const d=c.peek();d&&d.visibleColumn===n&&!d.horizontalLine||t.push(new Nt.UO(n,-1,"core-guide-indent lvl-"+(e-1)%30+(s?" indent-active":""),null,-1,-1))}t.push(...c.takeWhile((e=>!0))||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Tt(e){if(!e||!e.isTransparent())return e}(0,Ee.Ic)(((e,t)=>{const i=[{bracketColor:Te.zJ,guideColor:Te.oV,guideColorActive:Te.Qb},{bracketColor:Te.Vs,guideColor:Te.m$,guideColorActive:Te.m3},{bracketColor:Te.CE,guideColor:Te.DS,guideColorActive:Te.To},{bracketColor:Te.UP,guideColor:Te.lS,guideColorActive:Te.L7},{bracketColor:Te.r0,guideColor:Te.Jn,guideColorActive:Te.HV},{bracketColor:Te.m1,guideColor:Te.YF,guideColorActive:Te.f9}],n=new Dt.W,s=[{indentColor:Te.gS,indentColorActive:Te.qe},{indentColor:Te.Tf,indentColorActive:Te.Xy},{indentColor:Te.H_,indentColorActive:Te.cK},{indentColor:Te.h1,indentColorActive:Te.N8},{indentColor:Te.vP,indentColorActive:Te.zd},{indentColor:Te.e9,indentColorActive:Te.ll}],o=i.map((t=>{var i,n;const s=e.getColor(t.bracketColor),o=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=Tt(null!==(i=Tt(o))&&void 0!==i?i:null===s||void 0===s?void 0:s.transparent(.3)),l=Tt(null!==(n=Tt(r))&&void 0!==n?n:s);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(kt.$K),r=s.map((t=>{const i=e.getColor(t.indentColor),n=e.getColor(t.indentColorActive),s=Tt(i),o=Tt(n);if(s&&o)return{indentColor:s,indentColorActive:o}})).filter(kt.$K);if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${n.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${n.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${n.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var It=i(53372);class Mt{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class At{constructor(){this._currentVisibleRange=new G.e(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Rt{constructor(e,t,i,n,s,o,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=o,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Ot{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let o=t[0].startLineNumber,r=t[0].endLineNumber;for(let a=1,l=t.length;a<l;a++){const e=t[a];o=Math.min(o,e.startLineNumber),r=Math.max(r,e.endLineNumber)}this.minLineNumber=o,this.maxLineNumber=r}}class Pt extends j{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Qe(this),this.domNode=this._visibleLines.domNode;const i=this._context.configuration,n=this._context.configuration.options,s=n.get(50),o=n.get(146);this._lineHeight=n.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=n.get(100),this._cursorSurroundingLines=n.get(29),this._cursorSurroundingLinesStyle=n.get(30),this._canUseLayerHinting=!n.get(32),this._viewLineOptions=new q.ob(i,this._context.theme.type),U.write(this.domNode,8),this.domNode.setClassName(`view-lines ${Re}`),(0,g.N)(this.domNode,s),this._maxLineWidth=0,this._asyncUpdateLineWidths=new It.pY((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new It.pY((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new At,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(115).enabled,this._maxNumberStickyLines=n.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new q.Nt(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(146)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),n=t.get(146);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(100),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(115).enabled,this._maxNumberStickyLines=t.get(115).maxLineCount,(0,g.N)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new q.ob(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Rt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Ot(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(n))return new $.L(n,1);const s=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(n<s||n>o)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(n);return r<a&&(r=a),new $.L(n,r)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===q.Nt.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++){if(e===this._visibleLines.getVisibleLine(n).getDomNode())return n}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=G.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let o=0;const r=new Mt(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(h<l||h>d)continue;const e=h===n.startLineNumber?n.startColumn:1,c=h!==n.endLineNumber,u=c?this._context.viewModel.getLineMaxColumn(h):n.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,r);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}s[o++]=new Ke.u7(g.outsideRenderedLine,h,Ke.yu.from(g.ranges),c)}}return this._updateLineWidthsSlowIfDomDidLayout(r),0===o?null:s}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new Ke.D4(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let o=t;o<=i;o++){const t=this._visibleLines.getVisibleLine(o);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth(null)):s=!1}return s&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const i=this._visibleLines.getVisibleLine(s);if(i.needsMonospaceFontCheck()){const n=i.getWidth(null);n>t&&(t=n,e=s)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++){this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,n,s,o){const r=e.top,a=e.height,l=r+a;let d,h,c;if(s&&s.length>0){let e=s[0].startLineNumber,t=s[0].endLineNumber;for(let i=1,n=s.length;i<n;i++){const n=s[i];e=Math.min(e,n.startLineNumber),t=Math.max(t,n.endLineNumber)}d=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),c=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!n)return-1;d=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),c=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=Math.min(a/this._lineHeight/2,this._cursorSurroundingLines);g=this._stickyScrollEnabled?Math.max(e,this._maxNumberStickyLines)*this._lineHeight:e*this._lineHeight,p=Math.max(0,e-1)*this._lineHeight}if(i||0!==o&&4!==o||(p+=this._lineHeight),h-=g,c+=p,c-h>a){if(!d)return-1;u=h}else if(5===o||6===o)if(6===o&&r<=h&&c<=l)u=r;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=c-a;u=Math.max(t,e)}else if(1===o||2===o)if(2===o&&r<=h&&c<=l)u=r;else{const e=(h+c)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(r,l,h,c,3===o,4===o);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(145),n=t.left,s=n+t.width-i.verticalScrollbarWidth;let o=1073741824,r=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)o=Math.min(o,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)o=Math.min(o,Math.round(t.left)),r=Math.max(r,Math.round(t.left+t.width))}if(e.minimalReveal||(o=Math.max(0,o-Pt.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),"selections"===e.type&&r-o>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(n,s,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,o){s=!!s,o=!!o;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)<r?s?i:o?Math.max(0,n-r):i<e?i:n>t?Math.max(0,n-r):e:i}}Pt.HORIZONTAL_EXTRA_PX=30;class Ft extends yt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(145);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t,i;const n=e.getDecorationsInViewport(),s=[];let o=0;for(let r=0,a=n.length;r<a;r++){const e=n[r],a=e.options.linesDecorationsClassName,l=e.options.zIndex;a&&(s[o++]=new vt(e.range.startLineNumber,e.range.endLineNumber,a,null!==(t=e.options.linesDecorationsTooltip)&&void 0!==t?t:null,l));const d=e.options.firstLineDecorationClassName;d&&(s[o++]=new vt(e.range.startLineNumber,e.range.startLineNumber,d,null!==(i=e.options.linesDecorationsTooltip)&&void 0!==i?i:null,l))}return s}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',o=[];for(let r=t;r<=i;r++){const e=r-t,i=n[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=s,a+=e}o[e]=a}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Bt extends yt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,o=t.length;s<o;s++){const e=t[s],o=e.options.marginClassName,r=e.options.zIndex;o&&(i[n++]=new vt(e.range.startLineNumber,e.range.endLineNumber,o,null,r))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s=[];for(let o=t;o<=i;o++){const e=o-t,i=n[e].getDecorations();let r="";for(const t of i)r+='<div class="cmdr '+t.className+'" style=""></div>';s[e]=r}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Vt=i(21406);class Wt{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Wt._clamp(e),this.g=Wt._clamp(t),this.b=Wt._clamp(i),this.a=Wt._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Wt.Empty=new Wt(0,0,0,0);class Ht extends c.JT{static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,c.dk)(new Ht)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Oe.RW.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Oe.RW.getColorMap();if(!e)return this._colors=[Wt.Empty],void(this._backgroundIsLight=!0);this._colors=[Wt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Wt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Ht._INSTANCE=null;var zt=i(23614),jt=i(6009);const Ut=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var Kt=i(47228);class qt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=qt.soften(e,.8),this.charDataLight=qt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;n<s;n++)i[n]=(0,Kt.K)(e[n]*t);return i}renderChar(e,t,i,n,s,o,r,a,l,d,h){const c=1*this.scale,u=2*this.scale,g=h?1:u;if(t+c>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=d?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,_=r.r,v=r.g,b=r.b,C=s.r-_,y=s.g-v,w=s.b-b,S=Math.max(o,a),x=e.data;let L=m*c*u,k=i*f+4*t;for(let D=0;D<g;D++){let e=k;for(let t=0;t<c;t++){const t=p[L++]/255*(o/255);x[e++]=_+C*t,x[e++]=v+y*t,x[e++]=b+w*t,x[e++]=S}k+=f}}blockRenderChar(e,t,i,n,s,o,r,a){const l=1*this.scale,d=2*this.scale,h=a?1:d;if(t+l>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const c=4*e.width,u=s/255*.5,g=o.r,p=o.g,m=o.b,f=g+(n.r-g)*u,_=p+(n.g-p)*u,v=m+(n.b-m)*u,b=Math.max(s,r),C=e.data;let y=i*c+4*t;for(let w=0;w<h;w++){let e=y;for(let t=0;t<l;t++)C[e++]=f,C[e++]=_,C[e++]=v,C[e++]=b;y+=c}}}var $t=i(66870);const Gt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},Yt=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=Gt[e[i]]<<4|15&Gt[e[i+1]];return t},Zt={1:(0,$t.M)((()=>Yt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,$t.M)((()=>Yt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Qt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Zt[e]?new qt(Zt[e](),e):Qt.createFromSampleData(Qt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const s of Ut)i.fillText(String.fromCharCode(s),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Qt._downsample(e,t);return new qt(i,t)}static _downsampleChar(e,t,i,n,s){const o=1*s,r=2*s;let a=n,l=0;for(let d=0;d<r;d++){const n=d/r*16,s=(d+1)/r*16;for(let r=0;r<o;r++){const d=r/o*10,h=(r+1)/o*10;let c=0,u=0;for(let i=n;i<s;i++){const n=t+3840*Math.floor(i),s=1-(i-Math.floor(i));for(let t=d;t<h;t++){const i=1-(t-Math.floor(t)),o=n+4*Math.floor(t),r=i*s;u+=r,c+=e[o]*e[o+3]/255*r}}const g=c/u;l=Math.max(l,g),i[a++]=(0,Kt.K)(g)}}return l}static _downsample(e,t){const i=2*t*1*t,n=96*i,s=new Uint8ClampedArray(n);let o=0,r=0,a=0;for(let l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,r,s,o,t)),o+=i,r+=40;if(a>0){const e=255/a;for(let t=0;t<n;t++)s[t]*=e}return s}}var Xt=i(38079);const Jt=_.ED?'"Segoe WPC", "Segoe UI", sans-serif':_.dz?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif';class ei{constructor(e,t,i){const n=e.options,s=n.get(143),o=n.get(145),r=o.minimap,a=n.get(50),l=n.get(73);this.renderMinimap=r.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=r.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=n.get(105),this.paddingTop=n.get(84).top,this.paddingBottom=n.get(84).bottom,this.showSlider=l.showSlider,this.autohide=l.autohide,this.pixelRatio=s,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(67),this.minimapLeft=r.minimapLeft,this.minimapWidth=r.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=r.minimapCanvasInnerWidth,this.canvasInnerHeight=r.minimapCanvasInnerHeight,this.canvasOuterWidth=r.minimapCanvasOuterWidth,this.canvasOuterHeight=r.minimapCanvasOuterHeight,this.isSampling=r.minimapIsSampling,this.editorHeight=o.height,this.fontScale=r.minimapScale,this.minimapLineHeight=r.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt,this.sectionHeaderFontSize=l.sectionHeaderFontSize*s,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,$t.M)((()=>Qt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(jt.kVY);return i?new Wt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(jt.Itd);return t?Wt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(jt.NOs);return i?new Wt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,n,s,o,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=o,this.topPaddingLineCount=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,s,o,r,a,l,d,h){const c=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,s-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(s*s/t)),n=Math.max(0,e.minimapHeight-i),o=n/(d-s),h=l*o,c=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(l,d,c,o,h,i,g,1,Math.min(r,u))}let m;if(o&&i!==r){const e=i-t+1;m=Math.floor(e*u/c)}else{const e=s/p;m=Math.floor(e*u/c)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=s/p;v=Math.max(v,e-1)}if(v>0){_=(f+r+v-s/p-1)*u/c}else _=Math.max(0,(f+r)*u/c-m);_=Math.min(e.minimapHeight-m,_);const b=_/(d-s),C=l*b;if(g>=f+r+v){return new ti(l,d,_>0,b,C,m,f,1,r)}{let i,s;i=t>1?t+f:Math.max(1,l/p);let o=Math.max(1,Math.floor(i-C*c/u));o<f?(s=f-o+1,o=1):(s=0,o=Math.max(1,o-f)),h&&h.scrollHeight===d&&(h.scrollTop>l&&(o=Math.min(o,h.startLineNumber),s=Math.max(s,h.topPaddingLineCount)),h.scrollTop<l&&(o=Math.max(o,h.startLineNumber),s=Math.min(s,h.topPaddingLineCount)));const a=Math.min(r,o-s+g-1),_=(l-n)/p;let v;return v=l>=e.paddingTop?(t-o+s+_)*u/c:l/e.paddingTop*(s+_)*u/c,new ti(l,d,!0,b,v,m,s,o,a)}}}class ii{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}ii.INVALID=new ii(-1);class ni{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Ze((()=>ii.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,n=t.length;i<n;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class si{constructor(e,t,i,n){this._backgroundFillData=si._createBackgroundFillData(t,i,n),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const n=i.r,s=i.g,o=i.b,r=i.a,a=new Uint8ClampedArray(e*t*4);let l=0;for(let d=0;d<t;d++)for(let t=0;t<e;t++)a[l]=n,a[l+1]=s,a[l+2]=o,a[l+3]=r,l+=4;return a}}class oi{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:n}=L.gk.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),s=t/n,o=s/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,n>1){for(let t=0,i=n-1;t<i;t++)e[t]=Math.round(t*s+o);e[n-1]=t}return[new oi(s,e),[]]}const r=i.minimapLines,a=r.length,l=[];let d=0,h=0,c=1;let u=[],g=null;for(let p=0;p<n;p++){const e=Math.max(c,Math.round(p*s)),i=Math.max(e,Math.round((p+1)*s));for(;d<a&&r[d]<e;){if(u.length<10){const e=d+1+h;g&&"deleted"===g.type&&g._oldIndex===d-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}d++}let m;if(d<a&&r[d]<=i)m=r[d],d++;else if(m=0===p?1:p+1===n?t:Math.round(p*s+o),u.length<10){const e=d+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}l[p]=m,c=m}if(u.length<10)for(;d<a;){const e=d+1+h;g&&"deleted"===g.type&&g._oldIndex===d-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,d++}else u=[{type:"flush"}];return[new oi(s,l),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1<this.minimapLines.length&&this.minimapLines[n+1]<=t;)n++;if(i===n){const n=this.minimapLines[i];if(n<e||n>t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]<e.fromLineNumber);s--)this.minimapLines[s]<=e.toLineNumber?(this.minimapLines[s]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,s),n=Math.max(n,s)):this.minimapLines[s]-=t;return[i,n]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class ri extends j{constructor(e){super(e),this._sectionHeaderCache=new Xt.z6(10,1.5),this.tokensColorTracker=Ht.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=oi.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const n={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=oi.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,o=t-e+1;s<o;s++)i[s]?n[s]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+s-1]):n[s]=null;return n}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.Y(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),s=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new zt.$l(new G.e(n,i.startColumn,s,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,n=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-n)),this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const n=this._samplingState.minimapLines[e-1],s=this._samplingState.minimapLines[t-1];i=new G.e(n,1,s,this._context.viewModel.getLineMaxColumn(s))}else i=new G.e(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;const n=null===(i=e.options.minimap)||void 0===i?void 0:i.sectionHeaderText;if(!n)return null;const s=this._sectionHeaderCache.get(n);if(s)return s;const o=t(n);return this._sectionHeaderCache.set(n,o),o}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new G.e(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends c.JT{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(jt.ov3),this._domNode=(0,V.X)(document.createElement("div")),U.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,V.X)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,V.X)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,V.X)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,V.X)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,V.X)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=l.mu(this._domNode.domNode,l.tw.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=l.i(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderPointerMoveMonitor=new Vt.C,this._sliderPointerDownListener=l.mu(this._slider.domNode,l.tw.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=ce.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=l.nm(this._domNode.domNode,ce.t.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=l.nm(this._domNode.domNode,ce.t.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=l.mu(this._domNode.domNode,ce.t.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(e,s)=>{const o=l.i(this._domNode.domNode),r=Math.min(Math.abs(s-n),Math.abs(s-o.left),Math.abs(s-o.left-o.width));if(_.ED&&r>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>s(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new si(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(jt.ov3),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(G.e.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,o=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,s);const d=new li(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,d,e,o),this._renderDecorationsLineHighlights(l,i,d,e,o);const h=new li(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,h,e,o,a,r,n),this._renderDecorationsHighlights(l,i,h,e,o,a,r,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let o=0,r=0;for(const a of t){const t=n.intersectWithViewport(a);if(!t)continue;const[l,d]=t;for(let e=l;e<=d;e++)i.set(e,!0);const h=n.getYForLineNumber(l,s),c=n.getYForLineNumber(d,s);r>=h||(r>o&&e.fillRect(L.y0,o,e.canvas.width,r-o),o=h),r=c}r>o&&e.fillRect(L.y0,o,e.canvas.width,r-o)}_renderDecorationsLineHighlights(e,t,i,n,s){const o=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||1!==l.position)continue;const d=n.intersectWithViewport(a.range);if(!d)continue;const[h,c]=d,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=o.get(u.toString());g||(g=u.transparent(.5).toString(),o.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=c;t++){if(i.has(t))continue;i.set(t,!0);const o=n.getYForLineNumber(h,s);e.fillRect(L.y0,o,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,o,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=n.intersectWithViewport(l);if(!t)continue;const[d,h]=t;for(let c=d;c<=h;c++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,c,s,s,o,r,a)}}_renderDecorationsHighlights(e,t,i,n,s,o,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const d=n.intersectWithViewport(l.range);if(!d)continue;const[h,c]=d,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=c;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,n,g,s,s,o,r,a);continue;case 2:{const t=n.getYForLineNumber(g,s),i=2;this.renderDecoration(e,u,i,t,2,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,o,r,a,l,d,h){const c=s.getYForLineNumber(o,a);if(c+r<0||c>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===o?i.startColumn:1,m=g===o?i.endColumn:this._model.getLineMaxColumn(o),f=this.getXOffsetForPosition(t,o,p,l,d,h),_=this.getXOffsetForPosition(t,o,m,l,d,h);this.renderDecoration(e,n,f,c,_-f,r)}getXOffsetForPosition(e,t,i,n,s,o){if(1===i)return L.y0;if((i-1)*s>=o)return o;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[L.y0];let a=L.y0;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),l=a+(9===t?n*s:ke.K7(t)?2*s:s);if(l>=o){r[e]=o;break}r[e]=l,a=l}e.set(t,r)}return i-1<r.length?r[i-1]:o}renderDecoration(e,t,i,n,s,o){e.fillStyle=t&&t.toString()||"",e.fillRect(i,n,s,o)}_renderSectionHeaders(e){var t;const i=this._model.options.minimapLineHeight,n=this._model.options.sectionHeaderFontSize,s=1.5*n,{canvasInnerWidth:o}=this._model.options,r=this._model.options.backgroundColor,a=`rgb(${r.r} ${r.g} ${r.b} / .7)`,l=this._model.options.sectionHeaderFontColor,d=`rgb(${l.r} ${l.g} ${l.b})`,h=d,c=this._decorationsCanvas.domNode.getContext("2d");c.font=n+"px "+this._model.options.sectionHeaderFontFamily,c.strokeStyle=h,c.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,c,o-L.y0);for(const p of u){const r=e.getYForLineNumber(p.range.startLineNumber,i)+n,l=r-n,h=l+2,u=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(c,u,2===(null===(t=p.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle),a,d,o,l,s,r,h)}}static _fitSectionHeader(e,t,i){if(!i)return i;const n=e.measureText(i).width,s=e.measureText("\u2026").width;if(n<=t||n<=s)return i;const o=i.length,r=n/i.length,a=Math.floor((t-s)/r)-1;let l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"\u2026"+i.substring(o-(a-l))}static _renderSectionLabel(e,t,i,n,s,o,r,a,l,d){t&&(e.fillStyle=n,e.fillRect(0,r,o,a),e.fillStyle=s,e.fillText(t,L.y0,l)),i&&(e.beginPath(),e.moveTo(0,d),e.lineTo(o,d),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new ni(e,t.imageData,t.lines)}const s=this._getBuffer();if(!s)return null;const[o,r,a]=ai._renderUntouchedLines(s,e.topPaddingLineCount,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),d=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,c=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,b=(1===m?2:3)*_,C=n>b?Math.floor((n-b)/2):0,y=c.a/255,w=new Wt(Math.round((c.r-h.r)*y+h.r),Math.round((c.g-h.g)*y+h.g),Math.round((c.b-h.b)*y+h.b),255);let S=e.topPaddingLineCount*n;const x=[];for(let D=0,N=i-t+1;D<N;D++)a[D]&&ai._renderLine(s,w,c.a,p,m,v,g,u,f,S,C,d,l[D],_,n),x[D]=new ii(S),S+=n;const L=-1===o?0:o,k=(-1===r?s.height:r)-L;return this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,L,s.width,k),new ni(e,s,x)}static _renderUntouchedLines(e,t,i,n,s,o){const r=[];if(!o){for(let e=0,t=n-i+1;e<t;e++)r[e]=!0;return[-1,-1,r]}const a=o._get(),l=a.imageData.data,d=a.rendLineNumberStart,h=a.lines,c=h.length,u=e.width,g=e.data,p=(n-i+1)*s*u*4;let m=-1,f=-1,_=-1,v=-1,b=-1,C=-1,y=t*s;for(let w=i;w<=n;w++){const e=w-i,t=w-d,n=t>=0&&t<c?h[t].dy:-1;if(-1===n){r[e]=!0,y+=s;continue}const o=n*u*4,a=(n+s)*u*4,S=y*u*4,x=(y+s)*u*4;v===o&&C===S?(v=a,C=x):(-1!==_&&(g.set(l.subarray(_,v),b),-1===m&&0===_&&_===b&&(m=v),-1===f&&v===p&&_===b&&(f=_)),_=o,v=a,b=S,C=x),r[e]=!1,y+=s}-1!==_&&(g.set(l.subarray(_,v),b),-1===m&&0===_&&_===b&&(m=v),-1===f&&v===p&&_===b&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),r]}static _renderLine(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p){const m=u.content,f=u.tokens,_=e.width-o,v=1===p;let b=L.y0,C=0,y=0;for(let w=0,S=f.getCount();w<S;w++){const u=f.getEndOffset(w),p=f.getForeground(w),S=r.getColor(p);for(;C<u;C++){if(b>_)return;const r=m.charCodeAt(C);if(9===r){const e=c-(C+y)%c;y+=e-1,b+=e*o}else if(32===r)b+=o;else{const c=ke.K7(r)?2:1;for(let u=0;u<c;u++)if(2===s?l.blockRenderChar(e,b,d+h,S,a,t,i,v):l.renderChar(e,b,d+h,r,S,a,t,i,g,n,v),b+=o,b>_)return}}}}}class li{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;n<s;n++)this._values[n]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class di extends j{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,V.X)(document.createElement("div")),U.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,V.X)(document.createElement("div")),U.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,V.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?(this._updateMaxMinWidth(),!1):(i.preference=t,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,t;let i=0;const n=Object.keys(this._widgets);for(let s=0,o=n.length;s<o;s++){const o=n[s],r=null===(t=(e=this._widgets[o].widget).getMinContentWidthInPx)||void 0===t?void 0:t.call(e);"undefined"!==typeof r&&(i=Math.max(i,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(i)}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else if(2===e.preference)t.setTop(0),t.domNode.style.right="50%";else{const{top:i,left:n}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;t.setTop(i+e.top),t.setLeft(n+e.left),t.setPosition("fixed")}else t.setTop(i),t.setLeft(n),t.setPosition("absolute")}else t.setTop("")}prepareRender(e){this._viewDomNodeRect=l.i(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i<n;i++){const e=t[i];this._renderWidget(this._widgets[e])}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(143),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const n=t.getColor(Te.zw);this.borderColor=n?n.toString():null,this.hideCursor=i.get(59);const s=t.getColor(Te.n0);this.cursorColorSingle=s?s.transparent(.7).toString():null;const o=t.getColor(Te.jD);this.cursorColorPrimary=o?o.transparent(.7).toString():null;const r=t.getColor(Te.x_);this.cursorColorSecondary=r?r.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),l=a.enabled,d=a.side,h=t.getColor(Te.e_),c=Oe.RW.getDefaultBackground();this.backgroundColor=h||(l&&"right"===d?c:null);const u=i.get(145).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const n=t-e;if(i>=3){const t=Math.floor(n/3),i=Math.floor(n/3),s=n-t-i,o=e+t;return[[0,e,o,e,e+t+s,e,o,e],[0,t,s,t+s,i,t+s+i,s+i,t+s+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Il.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class ci extends j{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,V.X)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Oe.RW.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new $.L(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let n=this._settings.cursorColorSingle;i>1&&(n=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:n})}return this._cursorPositions.sort(((e,t)=>$.L.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Il.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(zt.SQ.compareByRenderingProps),1!==this._actualShouldRender||zt.SQ.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.fS)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,n=this._settings.canvasHeight,s=this._settings.lineHeight,o=this._context.viewLayout,r=n/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,l=a/2|0,d=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(d.fillStyle=Pe.Il.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):(d.clearRect(0,0,i,n),d.fillStyle=Pe.Il.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):d.clearRect(0,0,i,n);const h=this._settings.x,c=this._settings.w;for(const u of t){const e=u.color,t=u.data;d.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=o.getVerticalOffsetForLineNumber(m)*r|0,v=(o.getVerticalOffsetForLineNumber(f)+s)*r|0;if(v-_<a){let e=(_+v)/2|0;e<l?e=l:e+l>n&&(e=n-l),_=e-l,v=e+l}_>p+1||e!==i?(0!==u&&d.fillRect(h[i],g,c[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}d.fillRect(h[i],g,c[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],s=this._settings.w[7];let a=-100,l=-100,h=null;for(let c=0,u=this._cursorPositions.length;c<u;c++){const u=this._cursorPositions[c].color;if(!u)continue;const g=this._cursorPositions[c].position;let p=o.getVerticalOffsetForLineNumber(g.lineNumber)*r|0;p<t?p=t:p+t>n&&(p=n-t);const m=p-t,f=m+e;m>l+1||u!==h?(0!==c&&h&&d.fillRect(i,a,s,l-a),a=m,l=f):f>l&&(l=f),h=u,d.fillStyle=u}h&&d.fillRect(i,a,s,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,n),d.stroke(),d.moveTo(0,0),d.lineTo(i,0),d.stroke())}}var ui,gi=i(86950);class pi extends z{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,V.X)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.Tj((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(143)&&(this._zoneManager.setPixelRatio(t.get(143)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,o=0,r=0;for(const a of t){const t=a.colorId,l=a.from,d=a.to;t!==s?(e.fillRect(0,o,n,r-o),s=t,e.fillStyle=i[s],o=l,r=d):r>=l?r=Math.max(r,d):(e.fillRect(0,o,n,r-o),o=l,r=d)}e.fillRect(0,o,n,r-o)}}class mi extends j{constructor(e){super(e),this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),n=i;let s=t-e;for(;s>0;){const e=(0,V.X)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),s--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],n=this._rulers[t];i.setBoxShadow(n.color?`1px 0 0 0 ${n.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(n.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends j{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(103);this._useShadows=t.useShadows,this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(145);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(103);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function bi(e){return new _i(e)}function Ci(e){return new vi(e.lineNumber,e.ranges.map(bi))}class yi extends Ne{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,o=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!s&&e<i.length;e++)i[e].lineNumber===n&&(s=i[e].ranges[0]);const r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!o&&e>=0;e--)i[e].lineNumber===r&&(o=i[e].ranges[0]);s&&!s.startStyle&&(s=null),o&&!o.startStyle&&(o=null)}for(let r=0,a=t.length;r<a;r++){const e=t[r].ranges[0],i=e.left,l=e.left+e.width,d={top:0,bottom:0},h={top:0,bottom:0};if(r>0){const e=t[r-1].ranges[0].left,s=t[r-1].ranges[0].left+t[r-1].ranges[0].width;wi(i-e)<n?d.top=2:i>e&&(d.top=1),wi(l-s)<n?h.top=2:e<l&&l<s&&(h.top=1)}else s&&(d.top=s.startStyle.top,h.top=s.endStyle.top);if(r+1<a){const e=t[r+1].ranges[0].left,s=t[r+1].ranges[0].left+t[r+1].ranges[0].width;wi(i-e)<n?d.bottom=2:e<i&&i<s&&(d.bottom=1),wi(l-s)<n?h.bottom=2:l<s&&(h.bottom=1)}else o&&(d.bottom=o.startStyle.bottom,h.bottom=o.endStyle.bottom);e.startStyle=d,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const n=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ci);return!this._visibleRangesHaveGaps(n)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,n,i),n}_createSelectionPiece(e,t,i,n,s){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+n.toString()+"px;width:"+s.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const s=!!n[0].ranges[0].startStyle,o=n[0].lineNumber,r=n[n.length-1].lineNumber;for(let a=0,l=n.length;a<l;a++){const l=n[a],d=l.lineNumber,h=d-t,c=i&&d===o?1:0,u=i&&d!==o&&d===r?1:0;let g="",p="";for(let e=0,t=l.ranges.length;e<t;e++){const t=l.ranges[e];if(s){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(c,u,yi.SELECTION_CLASS_NAME,t.left-yi.ROUNDED_PIECE_WIDTH,yi.ROUNDED_PIECE_WIDTH);let i=yi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+yi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+yi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(c,u,i,t.left-yi.ROUNDED_PIECE_WIDTH,yi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(c,u,yi.SELECTION_CLASS_NAME,t.left+t.width,yi.ROUNDED_PIECE_WIDTH);let e=yi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+yi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+yi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(c,u,e,t.left+t.width,yi.ROUNDED_PIECE_WIDTH)}}let i=yi.SELECTION_CLASS_NAME;if(s){const e=t.startStyle,n=t.endStyle;0===e.top&&(i+=" "+yi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+yi.SELECTION_BOTTOM_LEFT),0===n.top&&(i+=" "+yi.SELECTION_TOP_RIGHT),0===n.bottom&&(i+=" "+yi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(c,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let o=i;o<=n;o++){t[o-i]=["",""]}const s=[];for(let o=0,r=this._selections.length;o<r;o++){const n=this._selections[o];if(n.isEmpty()){s[o]=null;continue}const r=this._getVisibleRangesWithStyle(n,e,this._previousFrameVisibleRangesWithStyle[o]);s[o]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map((e=>{let[t,i]=e;return t+i}))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function wi(e){return e<0?-e:e}yi.SELECTION_CLASS_NAME="selected-text",yi.SELECTION_TOP_LEFT="top-left-radius",yi.SELECTION_BOTTOM_LEFT="bottom-left-radius",yi.SELECTION_TOP_RIGHT="top-right-radius",yi.SELECTION_BOTTOM_RIGHT="bottom-right-radius",yi.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",yi.ROUNDED_PIECE_WIDTH=10,(0,Ee.Ic)(((e,t)=>{const i=e.getColor(jt.yb5);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class Si{constructor(e,t,i,n,s,o,r){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=s,this.textContent=o,this.textContentClassName=r}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class xi{constructor(e,t){this._context=e;const i=this._context.configuration.options,n=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setClassName(`cursor ${Re}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.N)(this._domNode,n),this._domNode.setDisplay("none"),this._position=new $.L(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.N)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=ke.J_(i,t-1);return[new $.L(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="",i="";const[n,s]=this._getGraphemeAwarePosition();if(this._cursorStyle===L.d2.Line||this._cursorStyle===L.d2.LineThin){const o=e.visibleRangeForPosition(n);if(!o||o.outsideRenderedLine)return null;const r=l.Jj(this._domNode.domNode);let a;this._cursorStyle===L.d2.Line?(a=l.Uh(r,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=s,i=this._getTokenClassName(n))):a=l.Uh(r,1);let d=o.left,h=0;a>=2&&d>=1&&(h=1,d-=h);const c=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new Si(c,d,h,a,this._lineHeight,t,i)}const o=e.linesVisibleRangesForRange(new G.e(n.lineNumber,n.column,n.lineNumber,n.column+s.length),!1);if(!o||0===o.length)return null;const r=o[0];if(r.outsideRenderedLine||0===r.ranges.length)return null;const a=r.ranges[0],d="\t"===s||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===L.d2.Block&&(t=s,i=this._getTokenClassName(n));let h=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,c=this._lineHeight;return this._cursorStyle!==L.d2.Underline&&this._cursorStyle!==L.d2.UnderlineThin||(h+=this._lineHeight-2,c=2),new Si(h,a.left,0,d,c,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${Re} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Li extends j{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new xi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new It._F,this._cursorFlatBlinkInterval=new l.ne,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;i<n;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const n=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,n),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new xi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let s=0;s<t.length;s++)this._secondaryCursors[s].onCursorPositionChanged(t[s],n)}onCursorStateChanged(e){const t=[];for(let n=0,s=e.selections.length;n<s;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,n=e.ranges.length;i<n;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Li.BLINK_INTERVAL,(0,l.Jj)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Li.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case L.d2.Line:e+=" cursor-line-style";break;case L.d2.Block:e+=" cursor-block-style";break;case L.d2.Underline:e+=" cursor-underline-style";break;case L.d2.LineThin:e+=" cursor-line-thin-style";break;case L.d2.BlockOutline:e+=" cursor-block-outline-style";break;case L.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const n=this._primaryCursor.render(e);n&&(t[i++]=n);for(let s=0,o=this._secondaryCursors.length;s<o;s++){const n=this._secondaryCursors[s].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}Li.BLINK_INTERVAL=500,(0,Ee.Ic)(((e,t)=>{const i=[{class:".cursor",foreground:Te.n0,background:Te.fY},{class:".cursor-primary",foreground:Te.jD,background:Te.s2},{class:".cursor-secondary",foreground:Te.x_,background:Te.P0}];for(const n of i){const i=e.getColor(n.foreground);if(i){let s=e.getColor(n.background);s||(s=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${n.class} { background-color: ${i}; border-color: ${i}; color: ${s}; }`),(0,ct.c3)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${n.class} { border-left: 1px solid ${s}; border-right: 1px solid ${s}; }`)}}}));const ki=()=>{throw new Error("Invalid change accessor")};class Di extends j{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,V.X)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let s=0,o=n.length;s<o;s++){const o=n[s],r=this._zones[o],a=this._computeWhitespaceProps(r.delegate);r.isInHiddenArea=a.isInHiddenArea;const l=t.get(o);!l||l.afterLineNumber===a.afterViewLineNumber&&l.height===a.heightInPx||(e.changeOneWhitespace(o,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(r.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){var t,i;return null!==(i=null!==(t=e.ordinal)&&void 0!==t?t:e.afterColumn)&&void 0!==i?i:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new $.L(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),s=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!s,afterViewLineNumber:n.lineNumber,heightInPx:s?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,d.dL)(i)}}(e,n),n.addZone=ki,n.removeZone=ki,n.layoutZone=ki})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,V.X)(t.domNode),marginDomNode:t.marginDomNode?(0,V.X)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,d.dL)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,d.dL)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const o of t)this._zones[o.id].isInHiddenArea||(i[o.id]=o,n=!0);const s=Object.keys(this._zones);for(let o=0,r=s.length;o<r;o++){const t=s[o],n=this._zones[t];let r=0,a=0,l="none";i.hasOwnProperty(t)?(r=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,l="block",n.isVisible||(n.domNode.setAttribute("monaco-visible-view-zone","true"),n.isVisible=!0),this._safeCallOnDomNodeTop(n.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(n.isVisible&&(n.domNode.removeAttribute("monaco-visible-view-zone"),n.isVisible=!1),this._safeCallOnDomNodeTop(n.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),n.domNode.setTop(r),n.domNode.setHeight(a),n.domNode.setDisplay(l),n.marginDomNode&&(n.marginDomNode.setTop(r),n.marginDomNode.setHeight(a),n.marginDomNode.setDisplay(l))}n&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var Ni=i(97869);class Ei extends Ne{constructor(e){super(),this._context=e,this._options=new Ti(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ti(this._context.configuration);return this._options.equals(t)?e.hasChanged(145):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,n=new Array(i);for(let o=0;o<i;o++)n[o]=!0;const s=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,n);this._renderResult=[];for(let o=e.viewportData.startLineNumber;o<=e.viewportData.endLineNumber;o++){const t=o-e.viewportData.startLineNumber,i=s.data[t];let n=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<o||t.startLineNumber>o)continue;const e=t.startLineNumber===o?t.startColumn:i.minColumn,s=t.endLineNumber===o?t.endColumn:i.maxColumn;e<s&&(n||(n=[]),n.push(new Ni.zG(e-1,s-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,o,n,i)}}_applyRenderWhitespace(e,t,i,n){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&n.continuesWithWrappedLine)return"";const s=this._context.theme.getColor(Te.dI),o=this._options.renderWithSVG,r=n.content,a=-1===this._options.stopRenderingLineAfter?r.length:Math.min(this._options.stopRenderingLineAfter,r.length),l=n.continuesWithWrappedLine,d=n.minColumn-1,h="boundary"===this._options.renderWhitespace,c="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,b="",C=!1,y=ke.LC(r);-1===y?(C=!0,y=a,v=a):v=ke.ow(r);let w=0,S=i&&i[w],x=0;for(let L=d;L<a;L++){const n=r.charCodeAt(L);if(S&&L>=S.endOffset&&(w++,S=i&&i[w]),9!==n&&32!==n)continue;if(c&&!C&&L<=v)continue;if(h&&L>=y&&L<=v&&32===n){const e=L-1>=0?r.charCodeAt(L-1):0,t=L+1<a?r.charCodeAt(L+1):0;if(32!==e&&32!==t)continue}if(h&&l&&L===a-1){const e=L-1>=0?r.charCodeAt(L-1):0;if(32===n&&32!==e&&9!==e)continue}if(i&&(!S||S.startOffset>L||S.endOffset<=L))continue;const s=e.visibleRangeForPosition(new $.L(t,L+1));s&&(o?(x=Math.max(x,s.left),b+=9===n?this._renderArrow(u,m,s.left):`<circle cx="${(s.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):b+=9===n?`<div class="mwh" style="left:${s.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${s.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return o?(x=Math.round(x+m),`<svg style="bottom:0;position:absolute;width:${x}px;height:${u}px" viewBox="0 0 ${x} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${s}">`+b+"</svg>"):b}_renderArrow(e,t,i){const n=e/2,s=i,o={x:0,y:t/7/2},r={x:.8*t,y:o.y},a={x:r.x-.2*r.x,y:r.y+.2*r.x},l={x:a.x+.1*r.x,y:a.y+.1*r.x},d={x:l.x+.35*r.x,y:l.y-.35*r.x};return`<path d="M ${[o,r,a,l,d,{x:d.x,y:-d.y},{x:l.x,y:-l.y},{x:a.x,y:-a.y},{x:r.x,y:-r.y},{x:o.x,y:-o.y}].map((e=>`${(s+e.x).toFixed(2)} ${(n+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ti{constructor(e){const t=e.options,i=t.get(50),n=t.get(38);"off"===n?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===n?(this.renderWhitespace=t.get(99),this.renderWithSVG=!0):(this.renderWhitespace=t.get(99),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(117)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ii{constructor(e,t,i,n){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new G.e(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Mi{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Ai{constructor(e,t,i){this.configuration=e,this.theme=new Mi(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Ri=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Oi=function(e,t){return function(i,n){t(i,n,e)}};let Pi=class extends z{constructor(e,t,i,n,s,o,r){super(),this._instantiationService=r,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.Y(1,1,1,1)],this._renderAnimationFrame=null;const a=new $e(t,n,s,e);this._context=new Ai(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ue,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,V.X)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,V.X)(document.createElement("div")),U.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Di(this._context),this._viewParts.push(this._viewZones);const l=new ci(this._context);this._viewParts.push(l);const d=new fi(this._context);this._viewParts.push(d);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new yi(this._context)),h.addDynamicOverlay(new Et(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new Ei(this._context));const c=new it(this._context);this._viewParts.push(c),c.addDynamicOverlay(new pt(this._context)),c.addDynamicOverlay(new Bt(this._context)),c.addDynamicOverlay(new Ft(this._context)),c.addDynamicOverlay(new Ie(this._context)),this._glyphMarginWidgets=new wt(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Me(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(c.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new ot(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Li(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new di(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new st(this._context);this._viewParts.push(p);const m=new ri(this._context);if(this._viewParts.push(m),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),o?(o.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),o.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new xe(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],n=0;i=i.concat(e.getAllMarginDecorations().map((e=>{var t,i,s;const o=null!==(i=null===(t=e.options.glyphMargin)||void 0===t?void 0:t.position)&&void 0!==i?i:_t.U.Center;return n=Math.max(n,e.range.endLineNumber),{range:e.range,lane:o,persist:null===(s=e.options.glyphMargin)||void 0===s?void 0:s.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return n=Math.max(n,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>G.e.compareRangesUsingStarts(e.range,t.range))),t.reset(n);for(const s of i)t.push(s.lane,s.range,s.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new $.L(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(145);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+(0,Ee.m6)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new d.he;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Bi.INSTANCE.scheduleCoordinatedRendering({window:l.Jj(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new d.he;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new d.he;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new d.he;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new d.he;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,n]=t;Fi((()=>e.prepareRender(i,n))),Fi((()=>e.render(i,n)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}W.B.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ii(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new Ke.xh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new $.L(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?nt.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,s,o,r,a,l;this._contentWidgets.setWidgetPosition(e.widget,null!==(i=null===(t=e.position)||void 0===t?void 0:t.position)&&void 0!==i?i:null,null!==(s=null===(n=e.position)||void 0===n?void 0:n.secondaryPosition)&&void 0!==s?s:null,null!==(r=null===(o=e.position)||void 0===o?void 0:o.preference)&&void 0!==r?r:null,null!==(l=null===(a=e.position)||void 0===a?void 0:a.positionAffinity)&&void 0!==l?l:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,d.dL)(t),null}}Pi=Ri([Oi(6,Ve.TG)],Pi);class Bi{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,l.lI(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];t[i]=Fi((()=>n.renderText()))}for(let i=0,n=e.length;i<n;i++){const n=e[i],s=t[i];if(!s)continue;const[o,r]=s;Fi((()=>n.prepareRender(o,r)))}for(let i=0,n=e.length;i<n;i++){const n=e[i],s=t[i];if(!s)continue;const[o,r]=s;Fi((()=>n.render(o,r)))}}}Bi.INSTANCE=new Bi;var Vi=i(56702);class Wi{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&i>this.injectionOffsets[n];n++)i<this.injectionOffsets[n]+this.injectionOptions[n].content.length?i=this.injectionOffsets[n]:i-=this.injectionOptions[n].content.length;return i}translateToOutputPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=e;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&!(e<this.injectionOffsets[n])&&(1===t||e!==this.injectionOffsets[n]);n++)i+=this.injectionOptions[n].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=0,n=this.breakOffsets.length-1,s=0,o=0;for(;i<=n;){s=i+(n-i)/2|0;const r=this.breakOffsets[s];if(o=s>0?this.breakOffsets[s-1]:0,0===t)if(e<=o)n=s-1;else{if(!(e>r))break;i=s+1}else if(e<o)n=s-1;else{if(!(e>=r))break;i=s+1}}let r=e-o;return s>0&&(r+=this.wrappedTextIndentLength),new ji(s,r)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new ji(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new ji(e+1,this.getMinOutputOffset(e+1))}return new ji(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Hi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(zi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Hi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!zi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Vi.vE)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let s=0;s<t.length;s++){const o=i[s].content.length,r=t[s]+n,a=t[s]+n+o;if(r>e)break;if(e<=a)return{injectedTextIndex:s,offsetInInputWithInjections:r,length:o};n+=o}}}}function Hi(e){return null===e||void 0===e||(e===_t.RM.Right||e===_t.RM.Both)}function zi(e){return null===e||void 0===e||(e===_t.RM.Left||e===_t.RM.Both)}class ji{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new $.L(e+this.outputLineIndex,this.outputOffset+1)}}var Ui=i(75324);const Ki=(0,Ge.Z)("domLineBreaksComputer",{createHTML:e=>e});class qi{static create(e){return new qi(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,s){const o=[],r=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t)},finalize:()=>function(e,t,i,n,s,o,r,a){var l;function d(e){const i=a[e];if(i){const n=Ui.gk.applyInjectedText(t[e],i),s=i.map((e=>e.options)),o=i.map((e=>e.column-1));return new Wi(o,s,[n.length],[],0)}return null}if(-1===s){const e=[];for(let i=0,n=t.length;i<n;i++)e[i]=d(i);return e}const h=Math.round(s*i.typicalHalfwidthCharacterWidth),c=3===o?2:2===o?1:0,u=Math.round(n*c),p=Math.ceil(i.spaceWidth*u),m=document.createElement("div");(0,g.N)(m,i);const f=new Ye.HT(1e4),_=[],v=[],b=[],C=[],y=[];for(let g=0;g<t.length;g++){const e=Ui.gk.applyInjectedText(t[g],a[g]);let s=0,r=0,l=h;if(0!==o)if(s=ke.LC(e),-1===s)s=0;else{for(let i=0;i<s;i++){r+=9===e.charCodeAt(i)?n-r%n:1}const t=Math.ceil(i.spaceWidth*r);t+i.typicalFullwidthCharacterWidth>h?(s=0,r=0):l=h-t}const d=e.substr(s),c=$i(d,r,n,l,f,p);_[g]=s,v[g]=r,b[g]=d,C[g]=c[0],y[g]=c[1]}const w=f.build(),S=null!==(l=null===Ki||void 0===Ki?void 0:Ki.createHTML(w))&&void 0!==l?l:w;m.innerHTML=S,m.style.position="absolute",m.style.top="10000","keepAll"===r?(m.style.wordBreak="keep-all",m.style.overflowWrap="anywhere"):(m.style.wordBreak="inherit",m.style.overflowWrap="break-word");e.document.body.appendChild(m);const x=document.createRange(),L=Array.prototype.slice.call(m.children,0),k=[];for(let g=0;g<t.length;g++){const e=Gi(x,L[g],b[g],C[g]);if(null===e){k[g]=d(g);continue}const t=_[g],i=v[g]+u,n=y[g],s=[];for(let a=0,d=e.length;a<d;a++)s[a]=n[e[a]];if(0!==t)for(let a=0,d=e.length;a<d;a++)e[a]+=t;let o,r;const l=a[g];l?(o=l.map((e=>e.options)),r=l.map((e=>e.column-1))):(o=null,r=null),k[g]=new Wi(r,o,e,s,i)}return e.document.body.removeChild(m),k}((0,kt.cW)(this.targetWindow.deref()),o,e,t,i,n,s,r)}}}function $i(e,t,i,n,s,o){if(0!==o){const e=String(o);s.appendString('<div style="text-indent: -'),s.appendString(e),s.appendString("px; padding-left: "),s.appendString(e),s.appendString("px; box-sizing: border-box; width:")}else s.appendString('<div style="width:');s.appendString(String(n)),s.appendString('px;">');const r=e.length;let a=t,l=0;const d=[],h=[];let c=0<r?e.charCodeAt(0):0;s.appendString("<span>");for(let u=0;u<r;u++){0!==u&&u%16384===0&&s.appendString("</span><span>"),d[u]=l,h[u]=a;const t=c;c=u+1<r?e.charCodeAt(u+1):0;let n=1,o=1;switch(t){case 9:n=i-a%i,o=n;for(let e=1;e<=n;e++)e<n?s.appendCharCode(160):s.appendASCIICharCode(32);break;case 32:32===c?s.appendCharCode(160):s.appendASCIICharCode(32);break;case 60:s.appendString("<");break;case 62:s.appendString(">");break;case 38:s.appendString("&");break;case 0:s.appendString("�");break;case 65279:case 8232:case 8233:case 133:s.appendCharCode(65533);break;default:ke.K7(t)&&o++,t<32?s.appendCharCode(9216+t):s.appendCharCode(t)}l+=n,a+=o}return s.appendString("</span>"),d[e.length]=l,h[e.length]=a,s.appendString("</div>"),[d,h]}function Gi(e,t,i,n){if(i.length<=1)return null;const s=Array.prototype.slice.call(t.children,0),o=[];try{Yi(e,s,n,0,null,i.length-1,null,o)}catch(r){return console.log(r),null}return 0===o.length?null:(o.push(i.length),o)}function Yi(e,t,i,n,s,o,r,a){if(n===o)return;if(s=s||Zi(e,t,i[n],i[n+1]),r=r||Zi(e,t,i[o],i[o+1]),Math.abs(s[0].top-r[0].top)<=.1)return;if(n+1===o)return void a.push(o);const l=n+(o-n)/2|0,d=Zi(e,t,i[l],i[l+1]);Yi(e,t,i,n,s,l,d,a),Yi(e,t,i,l,d,o,r,a)}function Zi(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}class Qi extends c.JT{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new c.b2),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const n of t)this._pending.has(n.id)?(0,d.dL)(new Error(`Cannot have two contributions with the same id ${n.id}`)):this._pending.set(n.id,n);this._instantiateSome(0),this._register((0,l.se)((0,l.Jj)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,l.se)((0,l.Jj)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,l.se)((0,l.Jj)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return(0,l.se)((0,l.Jj)(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,d.dL)(i)}}}}var Xi=i(59571),Ji=i(87545),en=i(36362),tn=i(35770),nn=i(5580),sn=i(13277),on=i(53869),rn=i(47498);class an{static create(e){return new an(e.get(134),e.get(133))}constructor(e,t){this.classifier=new ln(e,t)}createLineBreaksComputer(e,t,i,n,s){const o=[],r=[],a=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,d=[];for(let e=0,h=o.length;e<h;e++){const h=r[e],c=a[e];!c||c.injectionOptions||h?d[e]=un(this.classifier,o[e],h,t,i,l,n,s):d[e]=cn(this.classifier,c,o[e],t,i,l,n,s)}return dn.length=0,hn.length=0,d}}}}class ln extends rn.N{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let dn=[],hn=[];function cn(e,t,i,n,s,o,r,a){if(-1===s)return null;const l=i.length;if(l<=1)return null;const d="keepAll"===a,h=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=fn(i,n,s,o,r),g=s-u,p=dn,m=hn;let f=0,_=0,v=0,b=s;const C=h.length;let y=0;if(y>=0){let e=Math.abs(c[y]-b);for(;y+1<C;){const t=Math.abs(c[y+1]-b);if(t>=e)break;e=t,y++}}for(;y<C;){let t=y<0?0:h[y],s=y<0?0:c[y];_>t&&(t=_,s=v);let r=0,a=0,u=0,w=0;if(s<=b){let v=s,C=0===t?0:i.charCodeAt(t-1),y=0===t?0:e.get(C),S=!0;for(let s=t;s<l;s++){const t=s,l=i.charCodeAt(s);let h,c;if(ke.ZG(l)?(s++,h=0,c=2):(h=e.get(l),c=gn(l,v,n,o)),t>_&&mn(C,y,l,h,d)&&(r=t,a=v),v+=c,v>b){t>_?(u=t,w=v-c):(u=s+1,w=v),v-a>g&&(r=0),S=!1;break}C=l,y=h}if(S){f>0&&(p[f]=h[h.length-1],m[f]=c[h.length-1],f++);break}}if(0===r){let l=s,h=i.charCodeAt(t),c=e.get(h),p=!1;for(let n=t-1;n>=_;n--){const t=n+1,s=i.charCodeAt(n);if(9===s){p=!0;break}let m,f;if(ke.YK(s)?(n--,m=0,f=2):(m=e.get(s),f=ke.K7(s)?o:1),l<=b){if(0===u&&(u=t,w=l),l<=b-g)break;if(mn(s,m,h,c,d)){r=t,a=l;break}}l-=f,h=s,c=m}if(0!==r){const e=g-(w-a);if(e<=n){const t=i.charCodeAt(u);let s;s=ke.ZG(t)?2:gn(t,w,n,o),e-s<0&&(r=0)}}if(p){y--;continue}}if(0===r&&(r=u,a=w),r<=_){const e=i.charCodeAt(_);ke.ZG(e)?(r=_+2,a=v+2):(r=_+1,a=v+gn(e,v,n,o))}for(_=r,p[f]=r,v=a,m[f]=a,f++,b=a+g;y<0||y<C&&c[y]<a;)y++;let S=Math.abs(c[y]-b);for(;y+1<C;){const e=Math.abs(c[y+1]-b);if(e>=S)break;S=e,y++}}return 0===f?null:(p.length=f,m.length=f,dn=t.breakOffsets,hn=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function un(e,t,i,n,s,o,r,a){const l=Ui.gk.applyInjectedText(t,i);let d,h;if(i&&i.length>0?(d=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(d=null,h=null),-1===s)return d?new Wi(h,d,[l.length],[],0):null;const c=l.length;if(c<=1)return d?new Wi(h,d,[l.length],[],0):null;const u="keepAll"===a,g=fn(l,n,s,o,r),p=s-g,m=[],f=[];let _=0,v=0,b=0,C=s,y=l.charCodeAt(0),w=e.get(y),S=gn(y,0,n,o),x=1;ke.ZG(y)&&(S+=1,y=l.charCodeAt(1),w=e.get(y),x++);for(let L=x;L<c;L++){const t=L,i=l.charCodeAt(L);let s,r;ke.ZG(i)?(L++,s=0,r=2):(s=e.get(i),r=gn(i,S,n,o)),mn(y,w,i,s,u)&&(v=t,b=S),S+=r,S>C&&((0===v||S-b>p)&&(v=t,b=S-r),m[_]=v,f[_]=b,_++,C=b+p,v=0),y=i,w=s}return 0!==_||i&&0!==i.length?(m[_]=c,f[_]=S,new Wi(h,d,m,f,g)):null}function gn(e,t,i,n){return 9===e?i-t%i:ke.K7(e)||e<32?n:1}function pn(e,t){return t-e%t}function mn(e,t,i,n,s){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!s&&3===t&&2!==n||!s&&3===n&&1!==t)}function fn(e,t,i,n,s){let o=0;if(0!==s){const r=ke.LC(e);if(-1!==r){for(let i=0;i<r;i++){o+=9===e.charCodeAt(i)?pn(o,t):1}const a=3===s?2:2===s?1:0;for(let e=0;e<a;e++){o+=pn(o,t)}o+n>i&&(o=0)}}return o}var _n=i(91206),vn=i(80646);class bn{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new vn.rS(new G.e(1,1,1,1),0,0,new $.L(1,1),0),new vn.rS(new G.e(1,1,1,1),0,0,new $.L(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new vn.Vi(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.Y.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.Y.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),o=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,o),a=this._validatePositionWithCache(e,s,n,r);return i.equals(o)&&n.equals(r)&&s.equals(a)?t:new vn.rS(G.e.fromPositions(r,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-r.column,o,t.leftoverVisibleColumns+i.column-o.column)}_setState(e,t,i){if(i&&(i=bn._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,s=e.model.validatePosition(t.position),o=t.position.equals(s)?t.leftoverVisibleColumns:0;t=new vn.rS(i,t.selectionStartKind,n,s,o)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new vn.rS(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new vn.rS(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new $.L(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new $.L(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),o=new G.e(n.lineNumber,n.column,s.lineNumber,s.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new vn.rS(o,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cn{constructor(e){this.context=e,this.cursors=[new bn(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,_n.Ph)(this.cursors,(0,m.tT)((e=>e.viewState.position),$.L.compare)).viewState.position}getBottomMostViewPosition(){return(0,_n.jV)(this.cursors,(0,m.tT)((e=>e.viewState.position),$.L.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(vn.Vi.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let n=0;n<i;n++)this.cursors[n+1].setState(this.context,e[n].modelState,e[n].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new bn(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;i<n;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.tT)((e=>e.selection),G.e.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const n=t[i],s=t[i+1],o=n.selection,r=s.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=r.isEmpty()||o.isEmpty()?r.getStartPosition().isBeforeOrEqual(o.getEndPosition()):r.getStartPosition().isBefore(o.getEndPosition()),a){const o=n.index<s.index?i:i+1,r=n.index<s.index?i+1:i,a=t[r].index,l=t[o].index,d=t[r].selection,h=t[o].selection;if(!d.equalsSelection(h)){const i=d.plusRange(h),n=d.selectionStartLineNumber===d.startLineNumber&&d.selectionStartColumn===d.startColumn,s=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let r,c;a===this.lastAddedCursorIndex?(r=n,this.lastAddedCursorIndex=l):r=s,c=r?new pe.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.Y(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[o].selection=c;const u=vn.Vi.fromModelSelection(c);e[l].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}class yn{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}var wn=i(1603),Sn=i(69922);class xn{constructor(){this.type=0}}class Ln{constructor(){this.type=1}}class kn{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Dn{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class Nn{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class En{constructor(){this.type=5}}class Tn{constructor(e){this.type=6,this.isFocused=e}}class In{constructor(){this.type=7}}class Mn{constructor(){this.type=8}}class An{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Rn{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class On{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Pn{constructor(e,t,i,n,s,o,r){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=s,this.revealHorizontal=o,this.scrollType=r,this.type=12}}class Fn{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Bn{constructor(e){this.theme=e,this.type=14}}class Vn{constructor(e){this.type=15,this.ranges=e}}class Wn{constructor(){this.type=16}}class Hn{constructor(){this.type=17}}class zn extends c.JT{constructor(){super(),this._onEvent=this._register(new h.Q5),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new jn),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class jn{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Un{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Un(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Kn{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new Kn(this.oldHasFocus,e.hasFocus)}}class qn{constructor(e,t,i,n,s,o,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=o,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new qn(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class $n{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Gn{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Yn{constructor(e,t,i,n,s,o,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=o,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!e[n].equalsSelection(t[n]))return!1;return!0}isNoOp(){return Yn._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new Yn(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Zn{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Qn{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Xn{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Jn{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class es{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class ts{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class is{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class ns extends c.JT{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new yn(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new Cn(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,c.B9)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new yn(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,n){let s=!1;const o=this.context.cursorConfig.multiCursorLimit;null!==n&&n.length>o&&(n=n.slice(0,o),s=!0);const r=ss.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,s,o){const r=this._cursors.getViewPositions();let a=null,l=null;r.length>1?l=this._cursors.getViewSelections():a=G.e.fromPositions(r[0],r[0]),e.emitViewEvent(new Pn(t,i,a,l,n,s,o))}revealPrimary(e,t,i,n,s,o){const r=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Pn(t,i,null,r,n,s,o))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push({inSelectionMode:!n.isEmpty(),selectionStart:{lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn},position:{lineNumber:n.positionLineNumber,column:n.positionColumn}})}return e}restoreState(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const e=t[n];let s=1,o=1;e.position&&e.position.lineNumber&&(s=e.position.lineNumber),e.position&&e.position.column&&(o=e.position.column);let r=s,a=o;e.selectionStart&&e.selectionStart.lineNumber&&(r=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:r,selectionStartColumn:a,positionLineNumber:s,positionColumn:o})}this.setStates(e,"restoreState",0,vn.Vi.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Ui.D8){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const n=i.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new Cn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=vn.Vi.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,vn.Vi.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,vn.Vi.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let r=0,a=e.length;r<a;r++)i.push({range:e[r],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),n.push({range:t[r],options:{description:"auto-closed-enclosing",stickiness:1}});const s=this._model.deltaDecorations([],i),o=this._model.deltaDecorations([],n);this._autoClosedActions.push(new os(this._model,s,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=rs.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],n=[];for(let t=0;t<e.commands.length;t++){const s=e.commands[t];s instanceof Sn.g_&&s.enclosingRange&&s.closeCharacterRange&&(i.push(s.closeCharacterRange),n.push(s.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const o=ss.from(this._model,this);if(o.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Dn(a,r,i)),!n||n.cursorState.length!==o.cursorState.length||o.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Yn(a,r,l,o.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n.text||n.text.indexOf("\n")>=0)return null;const s=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!s)return null;const o=s[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(o);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-s[2].length-1,d=n.text.lastIndexOf(a,l-1);if(-1===d)return null;t.push([d,l])}return t}executeEdits(e,t,i,n){let s=null;"snippet"===t&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const o=[],r=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(s)for(let i=0,n=s.length;i<n;i++){const[t,n]=s[i],a=e[i],l=a.range.startLineNumber,d=a.range.startColumn-1+t,h=a.range.startColumn-1+n;o.push(new G.e(l,h+1,l,h+2)),r.push(new G.e(l,d+1,l,h+2))}const t=n(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),o.length>0&&this._pushAutoClosedAction(o,r)}_executeEdit(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.context.cursorConfig.readOnly)return;const s=ss.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){(0,d.dL)(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return os.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ls(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Sn.u6.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=ke.vH(t,i),n=t.substr(i,e);this._executeEditOperation(Sn.u6.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),n)),i+=e}}else this._executeEditOperation(Sn.u6.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,n,s,o){if(0!==t.length||0!==i||0!==n)this._executeEdit((()=>{this._executeEditOperation(Sn.u6.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))}),e,o);else if(0!==s){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.Y(t.lineNumber,t.column+s,t.lineNumber,t.column+s)}));this.setSelections(e,o,t,0)}}paste(e,t,i,n,s){this._executeEdit((()=>{this._executeEditOperation(Sn.u6.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,s,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(wn.A.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new vn.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new vn.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class ss{static from(e,t){return new ss(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class os{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(G.e.compareRangesUsingStarts),e.sort(G.e.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class rs{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let o=0,r=n.trackedRanges.length;o<r;o++)n.model._setTrackedRange(n.trackedRanges[o],null,0);return s}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const n=i.operations,s=this._getLoserCursorMap(n);if(s.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const o=[];for(let l=0,d=n.length;l<d;l++)s.hasOwnProperty(n[l].identifier.major.toString())||o.push(n[l]);i.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,o,(i=>{const n=[];for(let t=0;t<e.selectionsBefore.length;t++)n[t]=[];for(const e of i)e.identifier&&n[e.identifier.major].push(e);const s=(e,t)=>e.identifier.minor-t.identifier.minor,o=[];for(let r=0;r<e.selectionsBefore.length;r++)n[r].length>0?(n[r].sort(s),o[r]=t[r].computeCursorState(e.model,{getInverseEditOperations:()=>n[r],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.Y(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new pe.Y(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):o[r]=e.selectionsBefore[r];return o}));r||(r=e.selectionsBefore);const a=[];for(const l in s)s.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort(((e,t)=>t-e));for(const l of a)r.splice(l,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],n=!1;for(let s=0,o=t.length;s<o;s++){const o=t[s];if(o){const t=this._getEditOperationsFromCommand(e,s,o);i=i.concat(t.operations),n=n||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:n}}static _getEditOperationsFromCommand(e,t,i){const n=[];let s=0;const o=function(e,o){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];G.e.isEmpty(e)&&""===o||n.push({identifier:{major:t,minor:s++},range:e,text:o,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:o,addTrackedEditOperation:(e,t,i)=>{r=!0,o(e,t,i)},trackSelection:(t,i)=>{const n=pe.Y.liftSelection(t);let s;if(n.isEmpty())if("boolean"===typeof i)s=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);s=n.startColumn===t?2:3}else s=1;const o=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,s);return e.trackedRanges[o]=r,e.trackedRangesDirection[o]=n.getDirection(),o.toString()}};try{i.getEditOperations(e.model,a)}catch(l){return(0,d.dL)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-G.e.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const n=e[i-1],s=e[i];if(G.e.getStartPosition(n.range).isBefore(G.e.getEndPosition(s.range))){let o;o=n.identifier.major>s.identifier.major?n.identifier.major:s.identifier.major,t[o.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===o&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class as{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ls{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new as(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=ls._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ls._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const n=[];for(let s=0,o=this._original.length;s<o;s++)n.push(ls._deduceOutcome(this._original[s],i[s]));return n}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,ke.Mh(e.text,t.text)),n=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,ke.P1(e.text,t.text)),s=e.text.substring(i,e.text.length-n),o=t.text.substring(i,t.text.length-n);return new Sn.Nu(s,e.startSelection-i,e.endSelection-i,o,t.startSelection-i,t.endSelection-i)}}var ds=i(76326),hs=i(85779),cs=i(91181);class us{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class gs{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class ps{constructor(e,t,i,n){this._instanceId=ke.PJ(++ps.INSTANCE_COUNT),this._pendingChanges=new us,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n<s;){const o=n+s>>>1;t===e[o].afterLineNumber?i<e[o].ordinal?s=o:n=o+1:t<e[o].afterLineNumber?s=o:n=o+1}return n}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,n,s)=>{t=!0,e|=0,i|=0,n|=0,s|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new gs(o,e,i,n,s)),o},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const a of i)n.add(a.id);const s=new Map;for(const a of t)s.set(a.id,a);const o=e=>{const t=[];for(const i of e)if(!n.has(i.id)){if(s.has(i.id)){const e=s.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=o(this._arr).concat(o(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=ps.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;i<n;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const n=this._findWhitespaceIndex(e);if(-1!==n&&(this._arr[n].height!==i&&(this._arr[n].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)),this._arr[n].afterLineNumber!==t)){const e=this._arr[n];this._removeWhitespace(n),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,n=this._arr.length;i<n;i++){const n=this._arr[i].afterLineNumber;e<=n&&n<=t?this._arr[i].afterLineNumber=e-1:n>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i<n;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,n=t.length-1;for(;i<=n;){const s=i+((n-i|0)/2|0)|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;i=s+1|0}else n=s-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e){let t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkPendingChanges(),t=(e|=0)>1?this._lineHeight*(e-1):0;return t+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(i?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,s=t;for(;n<s;){const t=(n+s)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+i)n=t+1;else{if(e>=o)return t;s=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(n);let o=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,d;-1===r?(r=a,d=o+1,l=0):(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let h=s,c=h;const u=5e5;let g=0;s>=u&&(g=Math.floor(s/u)*u,g=Math.floor(g/i)*i,c-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let C=n;C<=o;C++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=C)}for(h+=i,p[C-n]=c,c+=i;d===C;)c+=l,h+=l,r++,r>=a?d=o+1:(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(h>=t){o=C;break}}-1===f&&(f=o);const _=0|this.getVerticalOffsetForLineNumber(o);let v=n,b=o;return v<b&&s<e&&v++,v<b&&_+i>t&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:o,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const n=Math.floor((t+i)/2),s=this.getVerticalOffsetForWhitespaceIndex(n);if(e>=s+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=s)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let o=i;o<=n;o++){const e=this.getVerticalOffsetForWhitespaceIndex(o),i=this.getHeightForWhitespaceIndex(o);if(e>=t)break;s.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:e,height:i})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}ps.INSTANCE_COUNT=0;class ms{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class fs extends c.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new ms(0,0,0,0),this._scrollable=this._register(new cs.Rm({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Un(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class _s extends c.JT{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(145),o=n.get(84);this._linesLayout=new ps(t,n.get(67),o.top,o.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new fs(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new ms(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(145)){const e=t.get(145),i=e.contentWidth,n=e.height,s=this._scrollable.getScrollDimensions(),o=s.contentWidth;this._scrollable.setScrollDimensions(new ms(i,s.contentWidth,n,this._getContentHeight(i,n,o)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(103);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(105)?s+=Math.max(0,t-n.get(67)-n.get(84).bottom):n.get(103).ignoreHorizontalScrollbarInContentHeight||(s+=this._getHorizontalScrollbarHeight(e,i)),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new ms(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new zt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new zt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),s=e.get(145);if(i.isViewportWrapping){const i=e.get(73);return t>s.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+s.verticalScrollbarWidth:t}{const i=e.get(104)*n.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+s.verticalScrollbarWidth,o,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ms(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var vs=i(61558),bs=i(34415);function Cs(e,t){return null===e?t?ws.INSTANCE:Ss.INSTANCE:new ys(e,t)}class ys{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let o;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Ui.gk(0,0,e+1,this._projectionData.injectionOptions[t],0)));o=Ui.gk.applyInjectedText(e.getLineContent(t),i).substring(n,s)}else o=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(o=Ls(this._projectionData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,o,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,d=a.injectionOptions;let h,c=null;if(l){c=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const n=new Array;c[i]=n;const s=i>0?a.breakOffsets[i-1]:0,o=a.breakOffsets[i];for(;t<l.length;){const r=d[t].content.length,h=l[t]+e,c=h+r;if(h>o)break;if(s<c){const e=d[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,r=t+Math.max(h-s,0),l=t+Math.min(c-s,o-s);r!==l&&n.push(new zt.Wx(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(c<=o))break;e+=r,t++}}}h=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:d[t].content,tokenMetadata:bs.A.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+n;u++){const e=s+u-i;o[e]?r[e]=this._getViewLineData(h,c?c[u]:null,u):r[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const n=this._projectionData,s=i>0?n.wrappedTextIndentLength:0,o=i>0?n.breakOffsets[i-1]:0,r=n.breakOffsets[i],a=e.sliceAndInflate(o,r,s);let l=a.getLineContent();i>0&&(l=Ls(n.wrappedTextIndentLength)+l);const d=this._projectionData.getMinOutputOffset(i)+1,h=l.length+1,c=i+1<this.getViewLineCount(),u=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new zt.IP(l,c,d,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class ws{constructor(){}isVisible(){return!0}setVisible(e){return e?this:Ss.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const n=e.tokenization.getLineTokens(t),s=n.getLineContent();return new zt.IP(s,!1,1,s.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,s,o,r){o[s]?r[s]=this.getViewLineData(e,t,0):r[s]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new $.L(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}ws.INSTANCE=new ws;class Ss{constructor(){}isVisible(){return!1}setVisible(e){return e?ws.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,n,s,o,r){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}Ss.INSTANCE=new Ss;const xs=[""];function Ls(e){if(e>=xs.length)for(let t=1;t<=e;t++)xs[t]=ks(t);return xs[e]}function ks(e){return new Array(e+1).join(" ")}var Ds=i(48749);class Ns{constructor(e,t,i,n,s,o,r,a,l,d){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=o,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=d,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Is(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,o=this.createLineBreaksComputer(),r=new m.H9(Ui.gk.fromDecorations(n));for(let p=0;p<s;p++){const e=r.takeWhile((e=>e.lineNumber===p+1));o.addRequest(i[p],e,t?t[p]:null)}const a=o.finalize(),l=[],d=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(G.e.compareRangesUsingStarts);let h=1,c=0,u=-1,g=u+1<d.length?c+1:s+2;for(let p=0;p<s;p++){const e=p+1;e===g&&(u++,h=d[u].startLineNumber,c=d[u].endLineNumber,g=u+1<d.length?c+1:s+2);const t=e>=h&&e<=c,i=Cs(a[p],!t);l[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Ds.Ck(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(G.e.compareRangesUsingStarts);const i=[];let n=t[0].startLineNumber,s=t[0].endLineNumber;for(let o=1,r=t.length;o<r;o++){const e=t[o];e.startLineNumber>s+1?(i.push(new G.e(n,1,s,1)),n=e.startLineNumber,s=e.endLineNumber):e.endLineNumber>s&&(s=e.endLineNumber)}return i.push(new G.e(n,1,s,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(G.e.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n<t.length;n++)if(!t[n].equalsRange(i[n])){e=!0;break}if(!e)return!1}const n=t.map((e=>({range:e,options:sn.qx.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,n);const s=t;let o=1,r=0,a=-1,l=a+1<s.length?r+1:this.modelLineProjections.length+2,d=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===l&&(a++,o=s[a].startLineNumber,r=s[a].endLineNumber,l=a+1<s.length?r+1:this.modelLineProjections.length+2);let t=!1;if(e>=o&&e<=r?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(d=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,s){const o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n,d=this.wordBreak===s;if(o&&r&&a&&l&&d)return!1;const h=o&&r&&!a&&l&&d;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=s;let c=null;if(h){c=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)c[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,c),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const n=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,s=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Rn(n,s)}onModelLinesInserted(e,t,i,n){if(!e||e<=this._validModelVersionId)return null;const s=t>2&&!this.modelLineProjections[t-2].isVisible(),o=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let d=0,h=n.length;d<h;d++){const e=Cs(n[d],!s);a.push(e);const t=e.getViewLineCount();r+=t,l[d]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new On(o,o+r-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const n=t-1,s=this.modelLineProjections[n].getViewLineCount(),o=Cs(i,this.modelLineProjections[n].isVisible());this.modelLineProjections[n]=o;const r=this.modelLineProjections[n].getViewLineCount();let a=!1,l=0,d=-1,h=0,c=-1,u=0,g=-1;s>r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1,u=d+1,g=u+(s-r)-1,a=!0):s<r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+s-1,h=d+1,c=h+(r-s)-1,a=!0):(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1),this.projectedModelLineLineCounts.setValue(n,r);return[a,l<=d?new An(l,d-l+1):null,h<=c?new On(h,c):null,u<=g?new Rn(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new Es(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new $.L(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new $.L(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let o=this.getModelStartPositionOfViewLine(i),r=new Array;for(let a=i.modelLineNumber;a<=n.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=a===n.modelLineNumber?n.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<s;e++)r.push(new Es(a,e))}if(!e.isVisible()&&o){const e=new $.L(a-1,this.model.getLineMaxColumn(a-1)+1),t=G.e.fromPositions(o,e);s.push(new Ts(t,r)),r=[],o=null}else e.isVisible()&&!o&&(o=new $.L(a,1))}if(o){const e=G.e.fromPositions(o,this.getModelEndPositionOfViewLine(n));s.push(new Ts(e,r))}return s}getViewLinesBracketGuides(e,t,i,n){const s=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,o=[];for(const r of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=r.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,r.modelRange.endLineNumber,s,n);for(const i of r.viewLines){const n=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(n.lineNumber===i.modelLineWrappedLineIdx)t=n.column;else if(n.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(n.lineNumber>i.modelLineWrappedLineIdx)return}const n=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return s.lineNumber===i.modelLineWrappedLineIdx?new Nt.UO(e.visibleColumn,t,e.className,new Nt.vW(e.horizontalLine.top,n.column),-1,-1):s.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new Nt.UO(e.visibleColumn,t,e.className,new Nt.vW(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));o.push(n.filter((e=>!!e)))}}return o}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const o=[],r=[],a=i.lineNumber-1,l=n.lineNumber-1;let d=null;for(let g=a;g<=l;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),n=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),s=n-t+1;let l=0;s>1&&1===e.getViewLineMinColumn(this.model,g+1,n)&&(l=0===t?1:2),o.push(s),r.push(l),null===d&&(d=new $.L(g+1,0))}else null!==d&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,g)),d=null)}null!==d&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,c=new Array(h);let u=0;for(let g=0,p=s.length;g<p;g++){let e=s[g];const t=Math.min(h-u,o[g]),i=r[g];let n;n=2===i?0:1===i?1:t;for(let s=0;s<t;s++)s===n&&(e=0),c[u++]=e}return c}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.projectedModelLineLineCounts.getIndexOf(e-1);let s=e;const o=n.index,r=n.remainder,a=[];for(let l=o,d=this.model.getLineCount();l<d;l++){const n=this.modelLineProjections[l];if(!n.isVisible())continue;const d=l===o?r:0;let h=n.getViewLineCount()-d,c=!1;if(s+h>t&&(c=!0,h=t-s+1),n.getViewLinesData(this.model,l+1,d,h,s-e,i,a),s+=h,c)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,o=n.remainder,r=this.modelLineProjections[s],a=r.getViewLineMinColumn(this.model,s+1,o),l=r.getViewLineMaxColumn(this.model,s+1,o);t<a&&(t=a),t>l&&(t=l);const d=r.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new $.L(s+1,d)).equals(i)?new $.L(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new G.e(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new $.L(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new G.e(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=this.model.validatePosition(new $.L(e,t)),r=o.lineNumber,a=o.column;let l=r-1,d=!1;if(s)for(;l<this.modelLineProjections.length&&!this.modelLineProjections[l].isVisible();)l++,d=!0;else for(;l>0&&!this.modelLineProjections[l].isVisible();)l--,d=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new $.L(n?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(l);let c;return c=d?s?this.modelLineProjections[l].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(l+1),i):this.modelLineProjections[r-1].getViewPositionOfModelPosition(h,a,i),c}convertModelRangeToViewRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return G.e.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new G.e(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,s){const o=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-o.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new G.e(o.lineNumber,1,r.lineNumber,r.column),t,i,n,s);let a=[];const l=o.lineNumber-1,d=r.lineNumber-1;let h=null;for(let p=l;p<=d;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new $.L(p+1,p===l?o.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new G.e(h.lineNumber,h.column,p,e),t,i,n)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new G.e(h.lineNumber,h.column,r.lineNumber,r.column),t,i,n)),h=null),a.sort(((e,t)=>{const i=G.e.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const c=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,c[u++]=p)}return c}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class Es{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Ts{constructor(e,t){this.modelRange=e,this.viewLines=t}}class Is{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,n){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,n)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class Ms{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new As(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Rn(t,i)}onModelLinesInserted(e,t,i,n){return new On(t,i)}onModelLineChanged(e,t,i){return[!1,new An(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;s<i;s++)n[s]=0;return n}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new zt.IP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const n=this.model.getLineCount();e=Math.min(Math.max(1,e),n),t=Math.min(Math.max(1,t),n);const s=[];for(let o=e;o<=t;o++){const t=o-e;s[t]=i[t]?this.getViewLineData(o):null}return s}getDecorationsInRange(e,t,i,n,s){return this.model.getDecorationsInRange(e,t,i,n,s)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class As{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Rs=_t.U.Right;class Os{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Rs/8))}reset(e){const t=Math.ceil((e+1)*Rs/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const t=Rs*n+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(n))}}getLanesAtLine(e){const t=[];let i=Rs*e;for(let n=0;n<Rs;n++)(this.persist&1<<n||this.lanes[i>>>3]&1<<i%8)&&t.push(n+1),i++;return t.length?t:[_t.U.Center]}countAtLine(e){let t=Rs*e,i=0;for(let n=0;n<Rs;n++)(this.persist&1<<n||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Ps extends c.JT{constructor(e,t,i,n,s,o,r,a,l){if(super(),this.languageConfigurationService=r,this._themeService=a,this._attachedView=l,this.hiddenAreasModel=new Vs,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new zn,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new It.pY((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Fs.create(this.model),this.glyphLanes=new Os(0),this.model.isTooLargeForTokenization())this._lines=new Ms(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(139),o=e.get(146),r=e.get(138),a=e.get(129);this._lines=new Ns(this._editorId,this.model,n,s,t,this.model.getOptions().tabSize,i,o.wrappingColumn,r,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new ns(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new _s(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fn(e)),this._eventDispatcher.emitOutgoingEvent(new qn(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new vs.CU(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Ht.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Wn)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Bn(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new G.e(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Tn(e)),this._eventDispatcher.emitOutgoingEvent(new Kn(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new xn)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Ln)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new $.L(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Hs(t,this._viewportStart.startLineDelta)}return new Hs(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,s=n.get(50),o=n.get(139),r=n.get(146),a=n.get(138),l=n.get(129);this._lines.setWrappingSettings(s,o,r.wrappingColumn,a,l)&&(e.emitViewEvent(new En),e.emitViewEvent(new Mn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(91)&&(this._decorations.reset(),e.emitViewEvent(new Nn(null))),t.hasChanged(98)&&(this._decorations.reset(),e.emitViewEvent(new Nn(null))),e.emitViewEvent(new kn(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),vn.LM.shouldRecreate(t)&&(this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const s=e instanceof Ui.fV?e.rawContentChangedEvent.changes:e.changes,o=e instanceof Ui.fV?e.rawContentChangedEvent.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of s)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let n=e.injectedTexts[t];n&&(n=n.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize(),l=new m.H9(a);for(const e of s)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new En),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(o,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=l.takeCount(e.detail.length),s=this._lines.onModelLinesInserted(o,e.fromLineNumber,e.toLineNumber,n);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesInserted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[s,r,a,d]=this._lines.onModelLineChanged(o,e.lineNumber,i);n=s,r&&t.emitViewEvent(r),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}null!==o&&this._lines.acceptVersionId(o),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Mn),t.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Ui.fV&&t.emitOutgoingEvent(new es(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,n=e.ranges.length;i<n;i++){const n=e.ranges[i],s=this.coordinatesConverter.convertModelPositionToViewPosition(new $.L(n.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new $.L(n.toLineNumber,this.model.getLineMaxColumn(n.toLineNumber))).lineNumber;t[i]={fromLineNumber:s,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new Vn(t)),this._eventDispatcher.emitOutgoingEvent(new is(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new In),this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Jn(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Xn(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new En),e.emitViewEvent(new Mn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new ts(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Nn(e)),this._eventDispatcher.emitOutgoingEvent(new Qn(e))})))}setHiddenAreas(e,t){var i;this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const s=this._captureStableViewport();let o=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();o=this._lines.setHiddenAreas(n),o&&(e.emitViewEvent(new En),e.emitViewEvent(new Mn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=null===(i=s.viewportStartModelPosition)||void 0===i?void 0:i.lineNumber;t&&n.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),o&&this._eventDispatcher.emitOutgoingEvent(new Gn)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(145),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),o=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new G.e(s,this.getLineMinColumn(s),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const n=[];let s=0,o=t.startLineNumber,r=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let d=0,h=i.length;d<h;d++){const e=i[d].startLineNumber,t=i[d].endLineNumber;t<o||(e>a||(o<e&&(n[s++]=new G.e(o,r,e-1,this.model.getLineMaxColumn(e-1))),o=t+1,r=1))}return(o<a||o===a&&r<l)&&(n[s++]=new G.e(o,r,a,l)),n}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new G.e(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,n=t.completelyVisibleEndLineNumber;return new G.e(i,this.getLineMinColumn(i),n,this.getLineMaxColumn(n))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),n=this.coordinatesConverter.convertViewPositionToModelPosition(new $.L(i,this.getLineMinColumn(i))),s=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:n,firstPositionDeltaTop:s}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=ke.LC(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=ke.ow(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),o=this._lines.getViewLineData(e);return o.inlineDecorations&&(t=[...t,...o.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new zt.wA(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,i,n,o.tokens,t,s,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new zt.ud(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,L.$J)(this._configuration.options)),i=new Bs;for(const n of t){const t=n.options,s=t.overviewRuler;if(!s)continue;const o=s.position;if(0===o)continue;const r=s.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,o)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;null===e||void 0===e||e.invalidateCachedColor();const i=t.options.minimap;null===i||void 0===i||i.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),n=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(n)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const s=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(s)}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(G.e.compareRangesUsingStarts);let s=!1,o=!1;for(const a of e)a.isEmpty()?s=!0:o=!0;if(!o){if(!t)return"";const i=e.map((e=>e.startLineNumber));let s="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(s+=this.model.getLineContent(i[e])+n);return s}if(s&&t){const t=[];let n=0;for(const s of e){const e=s.startLineNumber;s.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(s,i?2:0)),n=e}return 1===t.length?t[0]:t}const r=[];for(const a of e)a.isEmpty()||r.push(this.model.getValueInRange(a,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===ds.bd)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new G.e(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const s=this._configuration.options.get(50),o=this._getColorMap();let r;if(/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===L.hL.fontFamily)r=L.hL.fontFamily;else{r=s.fontFamily,r=r.replace(/"/g,"'");if(!/[,']/.test(r)){/[+ ]/.test(r)&&(r=`'${r}'`)}r=`${r}, ${L.hL.fontFamily}`}return{mode:i,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${r};font-weight: ${s.fontWeight};font-size: ${s.fontSize}px;line-height: ${s.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(n,o)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn,r=this.getTabSize();let a="";for(let l=i;l<=s;l++){const e=this.model.tokenization.getLineTokens(l),d=e.getLineContent(),h=l===i?n-1:0,c=l===s?o-1:d.length;a+=""===d?"<br>":(0,hs.Fq)(d,e.inflate(),t,h,c,r,_.ED)}return a}_getColorMap(){const e=Oe.RW.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;i<n;i++)t[i]=Pe.Il.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((n=>this._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Zn):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,s){this._executeCursorEdit((o=>this._cursor.compositionType(o,e,t,i,n,s)))}paste(e,t,i,n){this._executeCursorEdit((s=>this._cursor.paste(s,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._withViewEventsCollector((n=>this._cursor.revealAll(n,e,i,0,t,0)))}revealPrimaryCursor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._withViewEventsCollector((n=>this._cursor.revealPrimary(n,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new G.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pn(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new G.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pn(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,n,s){this._withViewEventsCollector((o=>o.emitViewEvent(new Pn(e,!1,i,null,n,t,s))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Hn),this._eventDispatcher.emitOutgoingEvent(new $n))}_withViewEventsCollector(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Fs{static create(e){const t=e._setTrackedRange(null,new G.e(1,1,1,1),1);return new Fs(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new $.L(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new G.e(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),o=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=o-s}invalidate(){this._isValid=!1}}class Bs{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const o=this._asMap[e];if(o){const e=o.data,t=e[e.length-3],r=e[e.length-1];if(t===s&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(s,i,n)}else{const o=new zt.SQ(e,t,[s,i,n]);this._asMap[e]=o,this.asArray.push(o)}}}class Vs{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Ws(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let n=0,s=0;for(;n<e.length&&s<t.length;){const o=e[n],r=t[s];if(o.endLineNumber<r.startLineNumber-1)i.push(e[n++]);else if(r.endLineNumber<o.startLineNumber-1)i.push(t[s++]);else{const e=Math.min(o.startLineNumber,r.startLineNumber),t=Math.max(o.endLineNumber,r.endLineNumber);i.push(new G.e(e,1,t,1)),n++,s++}}for(;n<e.length;)i.push(e[n++]);for(;s<t.length;)i.push(t[s++]);return i}(e,t)),[]);return Ws(this.ranges,e)||(this.ranges=e),this.ranges}}function Ws(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Hs{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),n=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:n+this.startLineDelta},1)}}var zs,js=i(94943),Us=i(47116),Ks=i(45234),qs=i(61758),$s=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Gs=function(e,t){return function(i,n){t(i,n,e)}};let Ys=zs=class extends c.JT{get isSimpleWidget(){return this._configuration.isSimpleWidget}constructor(e,t,i,n,o,r,a,c,u,g,p,m){var f;super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Sp)(),this._contributions=this._register(new Qi),this._onDidDispose=this._register(new h.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Xs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Xs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new Js(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new Js(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new Js(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new Js(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),o.willCreateCodeEditor();const _={...t};let v;this._domElement=e,this._overflowWidgetsDomNode=_.overflowWidgetsDomNode,delete _.overflowWidgetsDomNode,this._id=++Zs,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,_,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(145)){const e=t.get(145);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=o,this._commandService=r,this._themeService=c,this._register(new eo(this,this._contextKeyService)),this._register(new to(this,this._contextKeyService,m)),this._instantiationService=n.createChild(new Ks.y([Us.i6,this._contextKeyService])),this._modelData=null,this._focusTracker=new io(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},v=Array.isArray(i.contributions)?i.contributions:s.Uc.getEditorContributions(),this._contributions.initialize(this,v,this._instantiationService);for(const l of s.Uc.getEditorActions()){if(this._actions.has(l.id)){(0,d.dL)(new Error(`Cannot have two actions with the same id ${l.id}`));continue}const e=new Ji.p(l.id,l.label,l.alias,l.metadata,null!==(f=l.precondition)&&void 0!==f?f:void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(l.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const b=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new l.eg(this._domElement,{onDragOver:e=>{if(!b())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!b())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;null===(t=this._modelData)||void 0===t||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i){return new M(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return en.g.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Xi.w.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),e):null}getValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(){var e;const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:(null===(e=this._modelData)||void 0===e?void 0:e.model.uri)||null,newModelUrl:(null===t||void 0===t?void 0:t.uri)||null};this._onWillChangeModel.fire(i);const n=this.hasTextFocus(),s=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(s),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const s=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(o.lineNumber,n)}getTopForLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._modelData?zs._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zs._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber,n)}getBottomForLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._modelData?zs._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e,t){var i;null===(i=this._modelData)||void 0===i||i.viewModel.setHiddenAreas(e.map((e=>G.e.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Y.i.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";if(this._modelData){if(!$.L.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!G.e.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,o,t,n)}revealLine(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,0,t)}revealLineInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,2,t)}revealLineNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new G.e(e,1,e,1),t,!1,i)}revealPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,0,!0,t)}revealPositionInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,2,!0,t)}revealPositionNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!$.L.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new G.e(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";const i=pe.Y.isISelection(e),n=G.e.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.Y(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,0,i)}revealLinesInCenter(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,2,i)}revealLinesNearTop(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new G.e(e,1,t,1),i,!1,n)}revealRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,2,!0,t)}revealRangeNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,6,!0,t)}revealRangeAtTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!G.e.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(G.e.lift(e),t,i,n)}setSelections(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.Y.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){var e;null===(e=this._getViewModel())||void 0===e||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run(i)).then(void 0,d.dL):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s,o){if(!this._modelData)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:o,range:new G.e(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=s.Uc.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,d.dL)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(91)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(91)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(91))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new no(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,L.$J)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,L.$J)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(145);return{top:zs._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.N)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new Ps(this._id,this._configuration,e,qi.create(l.Jj(this._domElement)),an.create(this._configuration.options),(e=>l.jL(l.Jj(this._domElement),e)),this.languageConfigurationService,this._themeService,i);t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(n.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Le.NC("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(qs.zb.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Le.NC("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let s=0,o=t.selections.length;s<o;s++)e[s]=t.selections[s].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const n={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(n);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[s,o]=this._createView(n);if(o){this._domElement.appendChild(s.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addGlyphMarginWidget(this._glyphMarginWidgets[i])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Qs(e,n,s,o,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,n)=>{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const s={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",s)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const s={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",s)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new nt(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){null===e||void 0===e||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if(null===(e=this._contributionsDisposable)||void 0===e||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&this._domElement.removeChild(i),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),t}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new G.e(e.lineNumber,e.column,e.lineNumber,e.column),options:zs.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}};Ys.dropIntoEditorDecorationOptions=sn.qx.register({description:"workbench-dnd-target",className:"dnd-target"}),Ys=zs=$s([Gs(3,Ve.TG),Gs(4,B.$),Gs(5,js.H),Gs(6,Us.i6),Gs(7,Ee.XE),Gs(8,qs.lT),Gs(9,N.F),Gs(10,nn.c_),Gs(11,on.p)],Ys);let Zs=0;class Qs{constructor(e,t,i,n,s,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s,this.attachedView=o}dispose(){(0,c.B9)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class Xs extends c.JT{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.Q5(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.Q5(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class Js extends h.Q5{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class eo extends c.JT{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=tn.u.editorSimpleInput.bindTo(t),this._editorFocus=tn.u.focus.bindTo(t),this._textInputFocus=tn.u.textInputFocus.bindTo(t),this._editorTextFocus=tn.u.editorTextFocus.bindTo(t),this._tabMovesFocus=tn.u.tabMovesFocus.bindTo(t),this._editorReadonly=tn.u.readOnly.bindTo(t),this._inDiffEditor=tn.u.inDiffEditor.bindTo(t),this._editorColumnSelection=tn.u.columnSelection.bindTo(t),this._hasMultipleSelections=tn.u.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=tn.u.hasNonEmptySelection.bindTo(t),this._canUndo=tn.u.canUndo.bindTo(t),this._canRedo=tn.u.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(x.n.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(x.n.getTabFocusMode()),this._editorReadonly.set(e.get(91)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class to extends c.JT{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=tn.u.languageId.bindTo(t),this._hasCompletionItemProvider=tn.u.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=tn.u.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=tn.u.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=tn.u.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=tn.u.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=tn.u.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=tn.u.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=tn.u.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=tn.u.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=tn.u.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=tn.u.hasReferenceProvider.bindTo(t),this._hasRenameProvider=tn.u.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=tn.u.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=tn.u.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=tn.u.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=tn.u.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=tn.u.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=tn.u.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=tn.u.isInEmbeddedEditor.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.lg.walkThroughSnippet||e.uri.scheme===u.lg.vscodeChatCodeBlock)})):this.reset()}}class io extends c.JT{constructor(e,t){super(),this._onChange=this._register(new h.Q5),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(l.go(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(l.go(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return null!==(e=this._hadFocus)&&void 0!==e&&e}}class no{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const so=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),oo=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function ro(e){return so+encodeURIComponent(e.toString())+oo}const ao=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),lo=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,Ee.Ic)(((e,t)=>{const i=e.getColor(jt.lXJ);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${ro(i)}") repeat-x bottom left; }`);const n=e.getColor(jt.uoC);n&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${ro(n)}") repeat-x bottom left; }`);const s=e.getColor(jt.c63);s&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${ro(s)}") repeat-x bottom left; }`);const o=e.getColor(jt.Dut);o&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return ao+encodeURIComponent(e.toString())+lo}(o)}") no-repeat bottom left; }`);const r=e.getColor(Te.zu);r&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${r.rgba.a}; }`)}))},2822:(e,t,i)=>{"use strict";i.d(t,{H:()=>f});var n=i(53335),s=i(74246),o=i(50238),r=i(5580),a=i(53869),l=i(71940),d=i(94943),h=i(47116),c=i(87775),u=i(61758),g=i(46673),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=class extends o.Gm{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,s,o,r,a,l,d,h,c,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.jB(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,c.TG),m(5,s.$),m(6,d.H),m(7,h.i6),m(8,g.XE),m(9,u.lT),m(10,l.F),m(11,r.c_),m(12,a.p)],f)},29134:(e,t,i)=>{"use strict";var n=i(61542),s=i(76595),o=i(60548),r=i(74246),a=i(61369),l=i(35770),d=i(5887),h=i(6178),c=i(30600),u=i(47116);i(79987);class g extends h.Ke{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,d.vv)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:n.l.map,toggled:u.Ao.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.Ao.has("isInDiffEditor"),menu:{when:u.Ao.has("isInDiffEditor"),id:h.eH.EditorTitle,order:22,group:"navigation"}})}run(e){const t=e.get(c.Ui),i=!t.getValue("diffEditor.hideUnchangedRegions.enabled");t.updateValue("diffEditor.hideUnchangedRegions.enabled",i)}}class p extends h.Ke{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,d.vv)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.Ao.has("isInDiffEditor")})}run(e){const t=e.get(c.Ui),i=!t.getValue("diffEditor.experimental.showMoves");t.updateValue("diffEditor.experimental.showMoves",i)}}class m extends h.Ke{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,d.vv)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.Ao.has("isInDiffEditor")})}run(e){const t=e.get(c.Ui),i=!t.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");t.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",i)}}const f=(0,d.vv)("diffEditor","Diff Editor");class _ extends o.x1{constructor(){super({id:"diffEditor.switchSide",title:(0,d.vv)("switchSide","Switch Side"),icon:n.l.arrowSwap,precondition:u.Ao.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const n=L(e);if(n instanceof a.p){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class v extends o.x1{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,d.vv)("exitCompareMove","Exit Compare Move"),icon:n.l.close,precondition:l.u.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t){const i=L(e);i instanceof a.p&&i.exitCompareMove()}}class b extends o.x1{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,d.vv)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:n.l.fold,precondition:u.Ao.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t){const i=L(e);i instanceof a.p&&i.collapseAllUnchangedRegions()}}class C extends o.x1{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,d.vv)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:n.l.unfold,precondition:u.Ao.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t){const i=L(e);i instanceof a.p&&i.showAllUnchangedRegions()}}class y extends h.Ke{constructor(){super({id:"diffEditor.revert",title:(0,d.vv)("revert","Revert"),f1:!1,category:f})}run(e,t){var i;const n=function(e,t,i){const n=e.get(r.$);return n.listDiffEditors().find((e=>{var n,s;const o=e.getModifiedEditor(),r=e.getOriginalEditor();return o&&(null===(n=o.getModel())||void 0===n?void 0:n.uri.toString())===i.toString()&&r&&(null===(s=r.getModel())||void 0===s?void 0:s.uri.toString())===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);n instanceof a.p&&n.revertRangeMappings(null!==(i=t.mapping.innerChanges)&&void 0!==i?i:[])}}const w=(0,d.vv)("accessibleDiffViewer","Accessible Diff Viewer");class S extends h.Ke{constructor(){super({id:S.id,title:(0,d.vv)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:w,precondition:u.Ao.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=L(e);null===t||void 0===t||t.accessibleDiffViewerNext()}}S.id="editor.action.accessibleDiffViewer.next";class x extends h.Ke{constructor(){super({id:x.id,title:(0,d.vv)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:w,precondition:u.Ao.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=L(e);null===t||void 0===t||t.accessibleDiffViewerPrev()}}function L(e){const t=e.get(r.$).listDiffEditors(),i=(0,s.vY)();if(i)for(const n of t){if(k(n.getContainerDomNode(),i))return n}return null}function k(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}x.id="editor.action.accessibleDiffViewer.prev";var D=i(94943);(0,h.r1)(g),(0,h.r1)(p),(0,h.r1)(m),h.BH.appendMenuItem(h.eH.EditorTitle,{command:{id:(new m).desc.id,title:(0,d.NC)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.Ao.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.Ao.has("isInDiffEditor")},order:11,group:"1_diff",when:u.Ao.and(l.u.diffEditorRenderSideBySideInlineBreakpointReached,u.Ao.has("isInDiffEditor"))}),h.BH.appendMenuItem(h.eH.EditorTitle,{command:{id:(new p).desc.id,title:(0,d.NC)("showMoves","Show Moved Code Blocks"),icon:n.l.move,toggled:u.cP.create("config.diffEditor.experimental.showMoves",!0),precondition:u.Ao.has("isInDiffEditor")},order:10,group:"1_diff",when:u.Ao.has("isInDiffEditor")}),(0,h.r1)(y);for(const N of[{icon:n.l.arrowRight,key:l.u.diffEditorInlineMode.toNegated()},{icon:n.l.discard,key:l.u.diffEditorInlineMode}])h.BH.appendMenuItem(h.eH.DiffEditorHunkToolbar,{command:{id:(new y).desc.id,title:(0,d.NC)("revertHunk","Revert Block"),icon:N.icon},when:u.Ao.and(l.u.diffEditorModifiedWritable,N.key),order:5,group:"primary"}),h.BH.appendMenuItem(h.eH.DiffEditorSelectionToolbar,{command:{id:(new y).desc.id,title:(0,d.NC)("revertSelection","Revert Selection"),icon:N.icon},when:u.Ao.and(l.u.diffEditorModifiedWritable,N.key),order:5,group:"primary"});(0,h.r1)(_),(0,h.r1)(v),(0,h.r1)(b),(0,h.r1)(C),h.BH.appendMenuItem(h.eH.EditorTitle,{command:{id:S.id,title:(0,d.NC)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.Ao.has("isInDiffEditor")},order:10,group:"2_diff",when:u.Ao.and(l.u.accessibleDiffViewerVisible.negate(),u.Ao.has("isInDiffEditor"))}),D.P.registerCommandAlias("editor.action.diffReview.next",S.id),(0,h.r1)(S),D.P.registerCommandAlias("editor.action.diffReview.prev",x.id),(0,h.r1)(x)},61369:(e,t,i)=>{"use strict";i.d(t,{p:()=>zt});var n=i(76595),s=i(91206),o=i(16015),r=i(39706),a=i(53186),l=i(43704),d=i(205),h=i(60548),c=i(74246),u=i(52432),g=i(50238),p=i(58296),m=i(7144),f=i(24622),_=i(51828),v=i(51833),b=i(61542),C=i(73045),y=i(64295),w=i(36348),S=i(67364),x=i(47638),L=i(93845),k=i(74633),D=i(28928),N=i(17053),E=i(91342),T=i(34415),I=i(97869),M=i(23614),A=i(5887),R=i(88622),O=i(87775),P=i(54329),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};const V=(0,P.q5)("diff-review-insert",b.l.add,(0,A.NC)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),W=(0,P.q5)("diff-review-remove",b.l.remove,(0,A.NC)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),H=(0,P.q5)("diff-review-close",b.l.close,(0,A.NC)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let z=class extends a.JT{constructor(e,t,i,n,s,o,r,a,d){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=s,this._height=o,this._diffs=r,this._models=a,this._instantiationService=d,this._state=(0,l.Be)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const n=t.add(this._instantiationService.createInstance(j,this._diffs,this._models,this._setVisible,this._canClose));return{model:n,view:t.add(this._instantiationService.createInstance(Q,this._parentNode,n,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,l.PS)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,l.PS)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,l.PS)((e=>{this._setVisible(!1,e)}))}};z._ttPolicy=(0,p.Z)("diffReview",{createHTML:e=>e}),z=F([B(8,O.TG)],z);let j=class extends a.JT{constructor(e,t,i,n,s){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=s,this._groups=(0,l.uh)(this,[]),this._currentGroupIdx=(0,l.uh)(this,0),this._currentElementIdx=(0,l.uh)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>{var i;return null===(i=this.currentGroup.read(t))||void 0===i?void 0:i.lines[e]})),this._register((0,l.EH)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const n=[];for(const s of(0,v.mw)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*U))){const e=[];e.push(new $);const o=new x.z(Math.max(1,s[0].original.startLineNumber-U),Math.min(s[s.length-1].original.endLineNumberExclusive+U,t+1)),r=new x.z(Math.max(1,s[0].modified.startLineNumber-U),Math.min(s[s.length-1].modified.endLineNumberExclusive+U,i+1));(0,v.zy)(s,((t,i)=>{const n=new x.z(t?t.original.endLineNumberExclusive:o.startLineNumber,i?i.original.startLineNumber:o.endLineNumberExclusive),s=new x.z(t?t.modified.endLineNumberExclusive:r.startLineNumber,i?i.modified.startLineNumber:r.endLineNumberExclusive);n.forEach((t=>{e.push(new Z(t,s.startLineNumber+(t-n.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new G(i,t))})),i.modified.forEach((t=>{e.push(new Y(i,t))})))}));const a=s[0].modified.join(s[s.length-1].modified),l=s[0].original.join(s[s.length-1].original);n.push(new q(new N.f0(a,l),e))}return n}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,l.PS)((e=>{const t=this._models.getModifiedPosition();if(t){const n=i.findIndex((e=>(null===t||void 0===t?void 0:t.lineNumber)<e.range.modified.endLineNumberExclusive));-1!==n&&this._currentGroupIdx.set(n,e)}this._groups.set(i,e)}))}))),this._register((0,l.EH)((e=>{const t=this.currentElement.read(e);(null===t||void 0===t?void 0:t.type)===K.Deleted?this._accessibilitySignalService.playSignal(R.iP.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(null===t||void 0===t?void 0:t.type)===K.Added&&this._accessibilitySignalService.playSignal(R.iP.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,l.EH)((e=>{var t;const i=this.currentElement.read(e);if(i&&i.type!==K.Header){const e=null!==(t=i.modifiedLineNumber)&&void 0!==t?t:i.diff.modified.startLineNumber;this._models.modifiedSetSelection(D.e.fromPositions(new k.L(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,l.c8)(t,(t=>{this._currentGroupIdx.set(L.q.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,l.PS)((i=>{this._currentElementIdx.set(L.q.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,l.PS)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===K.Deleted?this._models.originalReveal(D.e.fromPositions(new k.L(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==K.Header?D.e.fromPositions(new k.L(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};j=F([B(4,R.IV)],j);const U=3;var K;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(K||(K={}));class q{constructor(e,t){this.range=e,this.lines=t}}class ${constructor(){this.type=K.Header}}class G{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=K.Deleted,this.modifiedLineNumber=void 0}}class Y{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=K.Added,this.originalLineNumber=void 0}}class Z{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=K.Unchanged}}let Q=class extends a.JT{constructor(e,t,i,s,o,r){super(),this._element=e,this._model=t,this._width=i,this._height=s,this._models=o,this._languageService=r,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const d=document.createElement("div");d.className="diff-review-actions",this._actionBar=this._register(new m.o(d)),this._register((0,l.EH)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.aU("diffreview.close",(0,A.NC)("label.close","Close"),"close-diff-review "+C.k.asClassName(H),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new f.s$(this._content,{})),(0,n.mc)(this.domNode,this._scrollbar.getDomNode(),d),this._register((0,l.EH)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.OF)((()=>{(0,n.mc)(this.domNode)}))),this._register((0,w.bg)(this.domNode,{width:this._width,height:this._height})),this._register((0,w.bg)(this._content,{width:this._width,height:this._height})),this._register((0,l.gp)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,n.mu)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),s=document.createElement("div");s.className="diff-review-table",s.setAttribute("role","list"),s.setAttribute("aria-label",(0,A.NC)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,y.N)(s,i.get(50)),(0,n.mc)(this._content,s);const o=this._models.getOriginalModel(),r=this._models.getModifiedModel();if(!o||!r)return;const a=o.getOptions(),d=r.getOptions(),h=i.get(67),c=this._model.currentGroup.get();for(const u of(null===c||void 0===c?void 0:c.lines)||[]){if(!c)break;let g;if(u.type===K.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=c.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,s=e=>0===e?(0,A.NC)("no_lines_changed","no lines changed"):1===e?(0,A.NC)("one_line_changed","1 line changed"):(0,A.NC)("more_lines_changed","{0} lines changed",e),o=s(t.original.length),r=s(t.modified.length);e.setAttribute("aria-label",(0,A.NC)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,o,t.modified.startLineNumber,r));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,o,a,i,r,d);s.appendChild(g);const p=(0,l.nK)((e=>this._model.currentElement.read(e)===u));e.add((0,l.EH)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,n.nm)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,s,o,r,a,l){const d=n.get(145),h=d.glyphMarginWidth+d.lineNumbersWidth,c=r.get(145),u=10+c.glyphMarginWidth+c.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case K.Added:g="diff-review-row line-insert",p=" char-insert",m=V;break;case K.Deleted:g="diff-review-row line-delete",p=" char-delete",m=W}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const b=document.createElement("span");b.style.width=u+"px",b.style.minWidth=u+"px",b.style.paddingRight="10px",b.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?b.appendChild(document.createTextNode(String(e.modifiedLineNumber))):b.innerText="\xa0",_.appendChild(b);const y=document.createElement("span");if(y.className="diff-review-spacer",m){const e=document.createElement("span");e.className=C.k.asClassName(m),e.innerText="\xa0\xa0",y.appendChild(e)}else y.innerText="\xa0\xa0";let w;if(_.appendChild(y),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,r,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);z._ttPolicy&&(t=z._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),w=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(s,n,o.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);z._ttPolicy&&(t=z._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),w=s.getLineContent(e.originalLineNumber)}0===w.length&&(w=(0,A.NC)("blankLine","blank"));let S="";switch(e.type){case K.Unchanged:S=e.originalLineNumber===e.modifiedLineNumber?(0,A.NC)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",w,e.originalLineNumber):(0,A.NC)("equalLine","{0} original line {1} modified line {2}",w,e.originalLineNumber,e.modifiedLineNumber);break;case K.Added:S=(0,A.NC)("insertLine","+ {0} modified line {1}",w,e.modifiedLineNumber);break;case K.Deleted:S=(0,A.NC)("deleteLine","- {0} original line {1}",w,e.originalLineNumber)}return f.setAttribute("aria-label",S),f}_getLineHtml(e,t,i,n,s){const o=e.getLineContent(n),r=t.get(50),a=T.A.createEmpty(o,s),l=M.wA.isBasicASCII(o,e.mightContainNonBasicASCII()),d=M.wA.containsRTL(o,l,e.mightContainRTL());return(0,I.tF)(new I.IJ(r.isMonospace&&!t.get(33),r.canUseHalfwidthRightwardsArrow,o,!1,l,d,0,a,[],i,0,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,t.get(117),t.get(99),t.get(94),t.get(51)!==S.n0.OFF,null)).html}};Q=F([B(5,E.O)],Q);class X{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return null!==(e=this.editors.modified.getPosition())&&void 0!==e?e:void 0}}class J extends a.JT{constructor(e,t,i,n,s){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=s,this._originalScrollTop=(0,l.rD)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.rD)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,l.aq)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,l.uh)(this,0),this._modifiedViewZonesChangedSignal=(0,l.aq)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,l.aq)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,l.Be)(this,((e,t)=>{var i;this._element.replaceChildren();const n=this._diffModel.read(e),s=null===(i=null===n||void 0===n?void 0:n.diff.read(e))||void 0===i?void 0:i.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const o=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!o||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const a=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const n=i(t.lineRangeMapping.original,this._editors.original),s=this._originalScrollTop.read(e),o=i(t.lineRangeMapping.modified,this._editors.modified),r=n-s,a=o-this._modifiedScrollTop.read(e),l=Math.min(n,o),d=Math.max(n,o);return{range:new L.q(l,d),from:r,to:a,fromWithoutScroll:n,toWithoutScroll:o,move:t}}));a.sort((0,v.f_)((0,v.tT)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.nW),(0,v.tT)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.fv)));const d=ee.compute(a.map((e=>e.range))),h=o.verticalScrollbarWidth,c=10*(d.getTrackCount()-1)+20,u=h+c+(r.contentLeft-J.movedCodeBlockPadding);let g=0;for(const p of a){const e=h+10+10*d.getTrack(g),i=15,s=15,o=u,a=r.glyphMarginWidth+r.lineNumbersWidth,c=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-a)),m.setAttribute("y",""+(p.to-c/2)),m.setAttribute("width",`${a}`),m.setAttribute("height",`${c}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${p.from} L ${e} ${p.from} L ${e} ${p.to} L ${o-s} ${p.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,l.EH)((e=>{_.classList.toggle("currentMove",p.move===n.activeMovedText.read(e)),v.classList.toggle("currentMove",p.move===n.activeMovedText.read(e))}))),v.setAttribute("points",`${o-s},${p.to-i/2} ${o},${p.to} ${o-s},${p.to+i/2}`),f.appendChild(v),this._element.appendChild(f),g++}this.width.set(c,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.OF)((()=>this._element.remove()))),this._register((0,l.EH)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-J.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,l.jx)(this._state));const o=(0,l.nK)((e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new w.GD((0,l.Dz)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new w.GD((0,l.Dz)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,w.Sv)(this._editors.original,o.map((e=>e.map((e=>e.original)))))),this._register((0,w.Sv)(this._editors.modified,o.map((e=>e.map((e=>e.modified)))))),this._register((0,l.gp)(((e,t)=>{const i=o.read(e);for(const n of i)t.add(new te(this._editors.original,n.original,n.move,"original",this._diffModel.get())),t.add(new te(this._editors.modified,n.modified,n.move,"modified",this._diffModel.get()))})));const r=(0,l.aq)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),d=(0,l.aq)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,l.nJ)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(r)&&(h="original"),e.didChange(d)&&(h="modified"),!0)},(e=>{r.read(e),d.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let n;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}n!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(n)})))}}J.movedCodeBlockPadding=4;class ee{static compute(e){const t=[],i=[];for(const n of e){let e=t.findIndex((e=>!e.intersectsStrict(n)));if(-1===e){const i=6;t.length>=i?e=(0,s.tQ)(t,(0,v.tT)((e=>e.intersectWithRangeLength(n)),v.fv)):(e=t.length,t.push(new L.M))}t[e].addRange(n),i.push(e)}return new ee(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class te extends w.N9{constructor(e,t,i,s,o){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._editor=e,this._move=i,this._kind=s,this._diffModel=o,this._nodes=(0,n.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,n.h)("div.text-content@textContent"),(0,n.h)("div.action-bar@actionBar")]),r.root.appendChild(this._nodes.root);const a=(0,l.rD)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let d;this._register((0,w.bg)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),d=i.changes.length>0?"original"===this._kind?(0,A.NC)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.NC)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,A.NC)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.NC)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.o(this._nodes.actionBar,{highlightToggledItems:!0})),c=new _.aU("",d,"",!1);h.push(c,{icon:!1,label:!0});const u=new _.aU("","Compare",C.k.asClassName(b.l.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,l.EH)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}var ie=i(79987);class ne extends a.JT{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,l.nK)(this,(e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e);if(!i)return null;const n=this._diffModel.read(e).movedTextToCompare.read(e),s=this._options.renderIndicators.read(e),o=this._options.showEmptyDecorations.read(e),r=[],a=[];if(!n)for(const d of i.mappings)if(d.lineRangeMapping.original.isEmpty||r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:s?ie.iq:ie.i_}),d.lineRangeMapping.modified.isEmpty||a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:s?ie.vv:ie.rd}),d.lineRangeMapping.modified.isEmpty||d.lineRangeMapping.original.isEmpty)d.lineRangeMapping.original.isEmpty||r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:ie.W3}),d.lineRangeMapping.modified.isEmpty||a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:ie.Jv});else for(const e of d.lineRangeMapping.innerChanges||[])d.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&r.push({range:e.originalRange,options:e.originalRange.isEmpty()&&o?ie.$F:ie.rq}),d.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&o?ie.n_:ie.LE});if(n)for(const d of n.changes){const e=d.original.toInclusiveRange();e&&r.push({range:e,options:s?ie.iq:ie.i_});const t=d.modified.toInclusiveRange();t&&a.push({range:t,options:s?ie.vv:ie.rd});for(const i of d.innerChanges||[])r.push({range:i.originalRange,options:ie.rq}),a.push({range:i.modifiedRange,options:ie.LE})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const d of i.movedTexts)r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(d===l?" currentMove":""),blockPadding:[J.movedCodeBlockPadding,0,J.movedCodeBlockPadding,J.movedCodeBlockPadding]}}),a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(d===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:r,modifiedDecorations:a}})),this._register((0,w.RP)(this._editors.original,this._decorations.map((e=>(null===e||void 0===e?void 0:e.originalDecorations)||[])))),this._register((0,w.RP)(this._editors.modified,this._decorations.map((e=>(null===e||void 0===e?void 0:e.modifiedDecorations)||[]))))}}var se=i(38571);class oe extends a.JT{constructor(e,t,i,n){super(),this._options=e,this._domNode=t,this._dimensions=i,this._sashes=n,this._sashRatio=(0,l.uh)(this,void 0),this.sashLeft=(0,l.nK)(this,(e=>{var t;const i=null!==(t=this._sashRatio.read(e))&&void 0!==t?t:this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(i,e)})),this._sash=this._register(new se.g(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{const t=this._dimensions.width.get(),i=this._computeSashLeft((this._startSashPosition+(e.currentX-e.startX))/t,void 0);this._sashRatio.set(i/t,void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._sashRatio.set(void 0,void 0)))),this._register((0,l.EH)((e=>{const t=this._sashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,l.EH)((e=>{const t=this._options.enableSplitViewResizing.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}_computeSashLeft(e,t){const i=this._dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),s=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n,o=100;return i<=200?n:s<o?o:s>i-o?i-o:s}}var re,ae=i(53372),le=i(47624),de=i(76946),he=i(23026),ce=i(6617),ue=i(69115),ge=i(57823),pe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},me=function(e,t){return function(i,n){t(i,n,e)}};const fe=(0,O.yh)("diffProviderFactoryService");let _e=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(ve,e)}};_e=pe([me(0,O.TG)],_e),(0,he.z)(fe,_e,1);let ve=re=class{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new r.Q5,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;null===(e=this.diffAlgorithmOnDidChangeSubscription)||void 0===e||e.dispose()}async computeDiff(e,t,i,n){var s,o;if("string"!==typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new N.gB(new x.z(1,2),new x.z(1,t.getLineCount()+1),[new N.iy(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),a=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),l=re.diffCache.get(r);if(l&&l.context===a)return l.result;const d=ce.G.create(),h=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),c=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:c,timedOut:null===(s=null===h||void 0===h?void 0:h.quitEarly)||void 0===s||s,detectedMoves:i.computeMoves?null!==(o=null===h||void 0===h?void 0:h.moves.length)&&void 0!==o?o:0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!h)throw new Error("no diff result available");return re.diffCache.size>10&&re.diffCache.delete(re.diffCache.keys().next().value),re.diffCache.set(r,{result:h,context:a}),h}setOptions(e){var t;let i=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(null===(t=this.diffAlgorithmOnDidChangeSubscription)||void 0===t||t.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!==typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),i=!0),i&&this.onDidChangeEventEmitter.fire()}};ve.diffCache=new Map,ve=re=pe([me(1,ue.p),me(2,ge.b)],ve);var be=i(809),Ce=i(41432),ye=i(70266),we=i(30886),Se=i(56702),xe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Le=function(e,t){return function(i,n){t(i,n,e)}};let ke=class extends a.JT{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,l.uh)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,l.uh)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,l.uh)(this,void 0),this.unchangedRegions=(0,l.nK)(this,(e=>{var t,i;return this._options.hideUnchangedRegions.read(e)?null!==(i=null===(t=this._unchangedRegions.read(e))||void 0===t?void 0:t.regions)&&void 0!==i?i:[]:((0,l.PS)((e=>{var t;for(const i of(null===(t=this._unchangedRegions.get())||void 0===t?void 0:t.regions)||[])i.collapseAll(e)})),[])})),this.movedTextToCompare=(0,l.uh)(this,void 0),this._activeMovedText=(0,l.uh)(this,void 0),this._hoveredMovedText=(0,l.uh)(this,void 0),this.activeMovedText=(0,l.nK)(this,(e=>{var t,i;return null!==(i=null!==(t=this.movedTextToCompare.read(e))&&void 0!==t?t:this._hoveredMovedText.read(e))&&void 0!==i?i:this._activeMovedText.read(e)})),this._cancellationTokenSource=new de.A,this._diffProvider=(0,l.nK)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,l.aq)("onDidChange",t.onDidChange)}})),this._register((0,a.OF)((()=>this._cancellationTokenSource.cancel())));const n=(0,l.GN)("contentChangedSignal"),s=this._register(new ae.pY((()=>n.trigger(void 0)),200));this._register((0,l.EH)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const n=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0)),s=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0)),o=i.regions.map(((e,i)=>n[i]&&s[i]?new Ee(n[i].startLineNumber,s[i].startLineNumber,n[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(le.$K),r=[];let a=!1;for(const e of(0,v.mw)(o,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new Ee(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());r.push(i)}else r.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,r.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),n=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,l.PS)((e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:n},e)}))}})));const o=(t,i,n)=>{const s=Ee.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(n),this._options.hideUnchangedRegionsContextLineCount.read(n));let o;const r=this._unchangedRegions.get();if(r){const t=r.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0)),i=r.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0));let s=(0,w.W7)(r.regions.map(((e,n)=>{if(!t[n]||!i[n])return;const s=t[n].length;return new Ee(t[n].startLineNumber,i[n].startLineNumber,s,Math.min(e.visibleLineCountTop.get(),s),Math.min(e.visibleLineCountBottom.get(),s-e.visibleLineCountTop.get()))})).filter(le.$K),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new N.f0(e.getHiddenOriginalRange(n),e.getHiddenModifiedRange(n))));s=N.f0.clip(s,x.z.ofLength(1,e.original.getLineCount()),x.z.ofLength(1,e.modified.getLineCount())),o=N.f0.inverse(s,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(o)for(const e of s){const t=o.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...s);const l=e.original.deltaDecorations((null===r||void 0===r?void 0:r.originalDecorationIds)||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),d=e.modified.deltaDecorations((null===r||void 0===r?void 0:r.modifiedDecorationIds)||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:d},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=Ce.Q.fromModelContentChanges(t.changes),n=Ie(this._lastDiff,i,e.original,e.modified);n&&(this._lastDiff=n,(0,l.PS)((e=>{this._diff.set(De.fromDiffResult(this._lastDiff),e),o(n,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),s.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=Ce.Q.fromModelContentChanges(t.changes),n=Te(this._lastDiff,i,e.original,e.modified);n&&(this._lastDiff=n,(0,l.PS)((e=>{this._diff.set(De.fromDiffResult(this._lastDiff),e),o(n,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),s.schedule()}))),this._register((0,l.gp)((async(t,i)=>{var r,a;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),s.cancel(),n.read(t);const d=this._diffProvider.read(t);d.onChangeSignal.read(t),(0,w.NW)(be.DW,t),(0,w.NW)(we.xG,t),this._isDiffUpToDate.set(!1,void 0);let h=[];i.add(e.original.onDidChangeContent((e=>{const t=Ce.Q.fromModelContentChanges(e.changes);h=(0,ye.o)(h,t)})));let c=[];i.add(e.modified.onDidChangeContent((e=>{const t=Ce.Q.fromModelContentChanges(e.changes);c=(0,ye.o)(c,t)})));let u=await d.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var g,p,m;this._cancellationTokenSource.token.isCancellationRequested||(g=u,p=e.original,m=e.modified,u={changes:g.changes.map((e=>new N.gB(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let n=e.originalRange,s=e.modifiedRange;return(1!==n.endColumn||1!==s.endColumn)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&s.endColumn===i.getLineMaxColumn(s.endLineNumber)&&n.endLineNumber<t.getLineCount()&&s.endLineNumber<i.getLineCount()&&(n=n.setEndPosition(n.endLineNumber+1,1),s=s.setEndPosition(s.endLineNumber+1,1)),new N.iy(n,s)}(e,p,m))):void 0))),moves:g.moves,identical:g.identical,quitEarly:g.quitEarly},u=null!==(r=Te(u,h,e.original,e.modified))&&void 0!==r?r:u,u=null!==(a=Ie(u,c,e.original,e.modified))&&void 0!==a?a:u,(0,l.PS)((e=>{o(u,e),this._lastDiff=u;const t=De.fromDiffResult(u);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)})))})))}ensureModifiedLineIsVisible(e,t,i){var n,s;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const o=(null===(s=this._unchangedRegions.get())||void 0===s?void 0:s.regions)||[];for(const r of o)if(r.getHiddenModifiedRange(void 0).contains(e))return void r.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){var n,s;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const o=(null===(s=this._unchangedRegions.get())||void 0===s?void 0:s.regions)||[];for(const r of o)if(r.getHiddenOriginalRange(void 0).contains(e))return void r.showOriginalLine(e,t,i)}async waitForDiff(){await(0,l.F_)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:null===e||void 0===e?void 0:e.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){var t;const i=null===(t=e.collapsedRegions)||void 0===t?void 0:t.map((e=>x.z.deserialize(e.range))),n=this._unchangedRegions.get();n&&i&&(0,l.PS)((e=>{for(const t of n.regions)for(const n of i)if(t.modifiedUnchangedRange.intersect(n)){t.setHiddenModifiedRange(n,e);break}}))}};ke=xe([Le(2,fe)],ke);class De{static fromDiffResult(e){return new De(e.changes.map((e=>new Ne(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n}}class Ne{constructor(e){this.lineRangeMapping=e}}class Ee{static fromDiffs(e,t,i,n,s){const o=N.gB.inverse(e,t,i),r=[];for(const a of o){let e=a.original.startLineNumber,o=a.modified.startLineNumber,l=a.original.length;const d=1===e&&1===o,h=e+l===t+1&&o+l===i+1;(d||h)&&l>=s+n?(d&&!h&&(l-=s),h&&!d&&(e+=s,o+=s,l-=s),r.push(new Ee(e,o,l,0,0))):l>=2*s+n&&(e+=s,o+=s,l-=2*s,r.push(new Ee(e,o,l,0,0)))}return r}get originalUnchangedRange(){return x.z.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return x.z.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,n,s){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,l.uh)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,l.uh)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,l.nK)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,l.uh)(this,void 0);const o=Math.max(Math.min(n,this.lineCount),0),r=Math.max(Math.min(s,this.lineCount-n),0);(0,Se.wN)(n===o),(0,Se.wN)(s===r),this._visibleLineCountTop.set(o,void 0),this._visibleLineCountBottom.set(r,void 0)}setVisibleRanges(e,t){const i=[],n=new x.i(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let s=this.originalLineNumber,o=this.modifiedLineNumber;const r=this.modifiedLineNumber+this.lineCount;if(0===n.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of n.ranges){const l=e===n.ranges.length-1;e++;const d=(l?r:a.endLineNumberExclusive)-o,h=new Ee(s,o,d,0,0);h.setHiddenModifiedRange(a,t),i.push(h),s=h.originalUnchangedRange.endLineNumberExclusive,o=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return x.z.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return x.z.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),s=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+n,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+s,i)}showOriginalLine(e,t,i){const n=e-this.originalLineNumber,s=this.originalLineNumber+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+s-n,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+n-s,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function Te(e,t,i,n){}function Ie(e,t,i,n){}var Me=i(90388);class Ae extends a.JT{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,i,s,o,r,a,l,d){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=s,this._editor=o,this._viewLineCounts=r,this._originalTextModel=a,this._contextMenuService=l,this._clipboardService=d,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=C.k.asClassName(b.l.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let c=0;const u=i.getOption(127)&&!Me.gn,g=(e,t)=>{var n;this._contextMenuService.showContextMenu({domForShadowRoot:u&&null!==(n=i.getDomNode())&&void 0!==n?n:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=s.modified.isEmpty;e.push(new _.aU("diff.clipboard.copyDeletedContent",t?s.original.length>1?(0,A.NC)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,A.NC)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):s.original.length>1?(0,A.NC)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,A.NC)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(s.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),s.original.length>1&&e.push(new _.aU("diff.clipboard.copyDeletedLineContent",t?(0,A.NC)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",s.original.startLineNumber+c):(0,A.NC)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",s.original.startLineNumber+c),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(s.original.startLineNumber+c);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(91)||e.push(new _.aU("diff.inline.revertChange",(0,A.NC)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,n.mu)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,n.i)(this._diffActions),s=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+s)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:s}=(0,n.i)(e),o=t-s,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],r<e)return t}return r}}var Re=i(130),Oe=i(21770);const Pe=(0,p.Z)("diffEditorWidget",{createHTML:e=>e});function Fe(e,t,i,n){(0,y.N)(n,t.fontInfo);const s=i.length>0,o=new Re.HT(1e4);let r=0,a=0;const l=[];for(let c=0;c<e.lineTokens.length;c++){const n=c+1,d=e.lineTokens[c],h=e.lineBreakData[c],u=Oe.Kp.filter(i,n,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const n of h.breakOffsets){const l=d.sliceAndInflate(i,n,0);r=Math.max(r,We(a,l,Oe.Kp.extractWrapped(u,i,n),s,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++,i=n}l.push(h.breakOffsets.length)}else l.push(1),r=Math.max(r,We(a,d,u,s,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++}r+=t.scrollBeyondLastColumn;const d=o.build(),h=Pe?Pe.createHTML(d):d;n.innerHTML=h;return{heightInLines:a,minWidthInPx:r*t.typicalHalfwidthCharacterWidth,viewLineCounts:l}}class Be{constructor(e,t,i,n){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=n}}class Ve{static fromEditor(e){var t;const i=e.getOptions(),n=i.get(50),s=i.get(145);return new Ve((null===(t=e.getModel())||void 0===t?void 0:t.getOptions().tabSize)||0,n,i.get(33),n.typicalHalfwidthCharacterWidth,i.get(104),i.get(67),s.decorationsWidth,i.get(117),i.get(99),i.get(94),i.get(51))}constructor(e,t,i,n,s,o,r,a,l,d,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=n,this.scrollBeyondLastColumn=s,this.lineHeight=o,this.lineDecorationsWidth=r,this.stopRenderingLineAfter=a,this.renderWhitespace=l,this.renderControlCharacters=d,this.fontLigatures=h}}function We(e,t,i,n,s,o,r,a){a.appendString('<div class="view-line'),n||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*r.lineHeight)),a.appendString('px;width:1000000px;">');const l=t.getLineContent(),d=M.wA.isBasicASCII(l,s),h=M.wA.containsRTL(l,d,o),c=(0,I.d1)(new I.IJ(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==S.n0.OFF,null),a);return a.appendString("</div>"),c.characterMapping.getHorizontalOffset(c.characterMapping.length)}var He=i(63826),ze=i(79086),je=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ue=function(e,t){return function(i,n){t(i,n,e)}};let Ke=class extends a.JT{constructor(e,t,i,s,o,r,d,h,c,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=s,this._diffEditorWidget=o,this._canIgnoreViewZoneUpdateEvent=r,this._origViewZonesToIgnore=d,this._modViewZonesToIgnore=h,this._clipboardService=c,this._contextMenuService=u,this._originalTopPadding=(0,l.uh)(this,0),this._originalScrollOffset=(0,l.uh)(this,0),this._originalScrollOffsetAnimated=(0,w.Vm)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,l.uh)(this,0),this._modifiedScrollOffset=(0,l.uh)(this,0),this._modifiedScrollOffsetAnimated=(0,w.Vm)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,l.uh)("invalidateAlignmentsState",0),p=this._register(new ae.pY((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,l.rD)(e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>null===e||void 0===e?void 0:e.read(t))),f=(0,l.nK)((e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!t||!i)return null;g.read(e);const n=this._options.renderSideBySide.read(e);return qe(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,n)})),_=(0,l.nK)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);if(!i)return null;g.read(e);const n=i.changes.map((e=>new Ne(e)));return qe(this._editors.original,this._editors.modified,n,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const S=this._register(new a.SL);this.viewZones=(0,l.Be)(this,((e,t)=>{var i,s,r,a,l,d,h,c;S.clear();const u=f.read(e)||[],g=[],p=[],w=this._modifiedTopPadding.read(e);w>0&&p.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:w,showInHiddenAreas:!0,suppressMouseDown:!0});const x=this._originalTopPadding.read(e);x>0&&g.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:x,showInHiddenAreas:!0,suppressMouseDown:!0});const L=this._options.renderSideBySide.read(e),k=L||null===(i=this._editors.modified._getViewModel())||void 0===i?void 0:i.createLineBreaksComputer();if(k){const O=this._editors.original.getModel();for(const P of u)if(P.diff)for(let F=P.originalRange.startLineNumber;F<P.originalRange.endLineNumberExclusive;F++){if(F>O.getLineCount())return{orig:g,mod:p};null===k||void 0===k||k.addRequest(O.getLineContent(F),null,null)}}const D=null!==(s=null===k||void 0===k?void 0:k.finalize())&&void 0!==s?s:[];let N=0;const E=this._editors.modified.getOption(67),T=null===(r=this._diffModel.read(e))||void 0===r?void 0:r.movedTextToCompare.read(e),I=null!==(l=null===(a=this._editors.original.getModel())||void 0===a?void 0:a.mightContainNonBasicASCII())&&void 0!==l&&l,A=null!==(h=null===(d=this._editors.original.getModel())||void 0===d?void 0:d.mightContainRTL())&&void 0!==h&&h,R=Ve.fromEditor(this._editors.modified);for(const B of u)if(B.diff&&!L){if(!B.originalRange.isEmpty){m.read(e);const W=document.createElement("div");W.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const H=this._editors.original.getModel();if(B.originalRange.endLineNumberExclusive-1>H.getLineCount())return{orig:g,mod:p};const z=new Be(B.originalRange.mapToLineArray((e=>H.tokenization.getLineTokens(e))),B.originalRange.mapToLineArray((e=>D[N++])),I,A),j=[];for(const $ of B.diff.innerChanges||[])j.push(new M.$t($.originalRange.delta(-(B.diff.original.startLineNumber-1)),ie.rq.className,0));const U=Fe(z,R,j,W),K=document.createElement("div");if(K.className="inline-deleted-margin-view-zone",(0,y.N)(K,R.fontInfo),this._options.renderIndicators.read(e))for(let G=0;G<U.heightInLines;G++){const Y=document.createElement("div");Y.className=`delete-sign ${C.k.asClassName(ie.fO)}`,Y.setAttribute("style",`position:absolute;top:${G*E}px;width:${R.lineDecorationsWidth}px;height:${E}px;right:0;`),K.appendChild(Y)}let q;S.add(new Ae((()=>(0,le.cW)(q)),K,this._editors.modified,B.diff,this._diffEditorWidget,U.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let Z=0;Z<U.viewLineCounts.length;Z++){const Q=U.viewLineCounts[Z];Q>1&&g.push({afterLineNumber:B.originalRange.startLineNumber+Z,domNode:v(),heightInPx:(Q-1)*E,showInHiddenAreas:!0,suppressMouseDown:!0})}p.push({afterLineNumber:B.modifiedRange.startLineNumber-1,domNode:W,heightInPx:U.heightInLines*E,minWidthInPx:U.minWidthInPx,marginDomNode:K,setZoneId(e){q=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const V=document.createElement("div");V.className="gutter-delete",g.push({afterLineNumber:B.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:B.modifiedHeightInPx,marginDomNode:V,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const X=B.modifiedHeightInPx-B.originalHeightInPx;if(X>0){if(null===T||void 0===T?void 0:T.lineRangeMapping.original.delta(-1).deltaLength(2).contains(B.originalRange.endLineNumberExclusive-1))continue;g.push({afterLineNumber:B.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:X,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(null===T||void 0===T?void 0:T.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(B.modifiedRange.endLineNumberExclusive-1))continue;function J(){const e=document.createElement("div");return e.className="arrow-revert-change "+C.k.asClassName(b.l.arrowRight),t.add((0,n.nm)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,n.nm)(e,"click",(e=>{e.stopPropagation(),o.revert(B.diff)}))),(0,n.$)("div",{},e)}let ee;B.diff&&B.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(ee=J()),p.push({afterLineNumber:B.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-X,marginDomNode:ee,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const te of null!==(c=_.read(e))&&void 0!==c?c:[]){if(!(null===T||void 0===T?void 0:T.lineRangeMapping.original.intersect(te.originalRange))||!(null===T||void 0===T?void 0:T.lineRangeMapping.modified.intersect(te.modifiedRange)))continue;const ne=te.modifiedHeightInPx-te.originalHeightInPx;ne>0?g.push({afterLineNumber:te.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:ne,showInHiddenAreas:!0,suppressMouseDown:!0}):p.push({afterLineNumber:te.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-ne,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:g,mod:p}}));let x=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!x&&(x=!0,this._editors.modified.setScrollLeft(e.scrollLeft),x=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!x&&(x=!0,this._editors.original.setScrollLeft(e.scrollLeft),x=!1)}))),this._originalScrollTop=(0,l.rD)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.rD)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,l.EH)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,l.EH)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,l.EH)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);let n=0;if(i){const e=this._editors.original.getTopForLineNumber(i.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();n=this._editors.modified.getTopForLineNumber(i.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}n>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(n,void 0)):n<0?(this._modifiedTopPadding.set(-n,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-n,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+n,void 0,!0)})))}};function qe(e,t,i,n,s,o){const r=new v.H9($e(e,n)),a=new v.H9($e(t,s)),l=e.getOption(67),d=t.getOption(67),h=[];let c=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;const s=i?i.lineNumber-c:Number.MAX_VALUE,o=n?n.lineNumber-u:Number.MAX_VALUE;s<o?(r.dequeue(),n={lineNumber:i.lineNumber-c+u,heightInPx:0}):s>o?(a.dequeue(),i={lineNumber:n.lineNumber-u+c,heightInPx:0}):(r.dequeue(),a.dequeue()),h.push({originalRange:x.z.ofLength(i.lineNumber,1),modifiedRange:x.z.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:d+n.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,b=m.original.startLineNumber;function C(e,t){var i,n,s,o;if(e<b||t<_)return;if(f)f=!1;else if(e===b||t===_)return;const c=new x.z(b,e),u=new x.z(_,t);if(c.isEmpty&&u.isEmpty)return;const g=null!==(n=null===(i=r.takeWhile((t=>t.lineNumber<e)))||void 0===i?void 0:i.reduce(((e,t)=>e+t.heightInPx),0))&&void 0!==n?n:0,m=null!==(o=null===(s=a.takeWhile((e=>e.lineNumber<t)))||void 0===s?void 0:s.reduce(((e,t)=>e+t.heightInPx),0))&&void 0!==o?o:0;h.push({originalRange:c,modifiedRange:u,originalHeightInPx:c.length*l+g,modifiedHeightInPx:u.length*d+m,diff:p.lineRangeMapping}),b=e,_=t}if(o)for(const y of m.innerChanges||[]){y.originalRange.startColumn>1&&y.modifiedRange.startColumn>1&&C(y.originalRange.startLineNumber,y.modifiedRange.startLineNumber);const w=e.getModel(),S=y.originalRange.endLineNumber<=w.getLineCount()?w.getLineMaxColumn(y.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;y.originalRange.endColumn<S&&C(y.originalRange.endLineNumber,y.modifiedRange.endLineNumber)}C(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive),c=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function $e(e,t){const i=[],n=[],s=-1!==e.getOption(146).wrappingColumn,o=e._getViewModel().coordinatesConverter,r=e.getOption(67);if(s)for(let a=1;a<=e.getModel().getLineCount();a++){const e=o.getModelLineViewLineCount(a);e>1&&n.push({lineNumber:a,heightInPx:r*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:o.convertViewPositionToModelPosition(new k.L(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,w.Ap)(i,n,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}Ke=je([Ue(8,He.p),Ue(9,ze.i)],Ke);var Ge,Ye=i(20289),Ze=i(75816),Qe=i(32657),Xe=i(86950),Je=i(6009),et=i(46673),tt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},it=function(e,t){return function(i,n){t(i,n,e)}};let nt=Ge=class extends a.JT{constructor(e,t,i,s,o,r,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=s,this._rootHeight=o,this._modifiedEditorLayoutInfo=r,this._themeService=a,this.width=Ge.ENTIRE_DIFF_OVERVIEW_WIDTH;const d=(0,l.rD)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,l.nK)((e=>{const t=d.read(e);return{insertColor:t.getColor(Je.P6Y)||(t.getColor(Je.ypS)||Je.CzK).transparent(2),removeColor:t.getColor(Je.F9q)||(t.getColor(Je.P4M)||Je.keg).transparent(2)}})),c=(0,Ze.X)(document.createElement("div"));c.setClassName("diffViewport"),c.setPosition("absolute");const u=(0,n.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:Ge.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,w.xx)(u,c.domNode)),this._register((0,n.mu)(u,n.tw.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,n.nm)(u,n.tw.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,w.xx)(this._rootElement,u)),this._register((0,l.gp)(((e,t)=>{const i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add((0,w.xx)(u,n.getDomNode())));const s=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(s&&(t.add(s),t.add((0,w.xx)(u,s.getDomNode()))),!n||!s)return;const o=(0,l.aq)("viewZoneChanged",this._editors.original.onDidChangeViewZones),r=(0,l.aq)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,l.aq)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),d=(0,l.aq)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,l.EH)((e=>{var t;o.read(e),r.read(e),a.read(e),d.read(e);const l=h.read(e),c=null===(t=null===i||void 0===i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function u(e,t,i){const n=i._getViewModel();return n?e.filter((e=>e.length>0)).map((e=>{const i=n.coordinatesConverter.convertModelPositionToViewPosition(new k.L(e.startLineNumber,1)),s=n.coordinatesConverter.convertModelPositionToViewPosition(new k.L(e.endLineNumberExclusive,1)),o=s.lineNumber-i.lineNumber;return new Xe.EY(i.lineNumber,s.lineNumber,o,t.toString())})):[]}const g=u((c||[]).map((e=>e.lineRangeMapping.original)),l.removeColor,this._editors.original),p=u((c||[]).map((e=>e.lineRangeMapping.modified)),l.insertColor,this._editors.modified);null===n||void 0===n||n.setZones(g),null===s||void 0===s||s.setZones(p)}))),t.add((0,l.EH)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),o=this._modifiedEditorLayoutInfo.read(e);if(o){const i=Ge.ENTIRE_DIFF_OVERVIEW_WIDTH-2*Ge.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+Ge.ONE_OVERVIEW_WIDTH,width:Ge.ONE_OVERVIEW_WIDTH}),s.setLayout({top:0,height:t,right:0,width:Ge.ONE_OVERVIEW_WIDTH});const r=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(103),d=new Qe.M(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,o.height,a,r);c.setTop(d.getSliderPosition()),c.setHeight(d.getSliderSize())}else c.setTop(0),c.setHeight(0);u.style.height=t+"px",u.style.left=i-Ge.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",c.setWidth(Ge.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};nt.ONE_OVERVIEW_WIDTH=15,nt.ENTIRE_DIFF_OVERVIEW_WIDTH=2*Ge.ONE_OVERVIEW_WIDTH,nt=Ge=tt([it(6,et.XE)],nt);var st=i(27691),ot=i(24032);const rt=[];class at extends a.JT{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=(0,l.nK)(this,(e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!i)return rt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return rt;const s=new x.i(n.map((e=>x.z.fromRangeInclusive(e)))),o=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>D.e.areIntersecting(e.modifiedRange,t)))))})));return 0===o.length||o.every((e=>0===e.rangeMappings.length))?rt:o})),this._register((0,l.gp)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),n=null===i||void 0===i?void 0:i.diff.read(e);if(!i||!n)return;if(i.movedTextToCompare.read(e))return;const s=[],o=this._selectedDiffs.read(e),r=new Set(o.map((e=>e.mapping)));if(o.length>0){const i=this._editors.modifiedSelections.read(e),n=t.add(new lt(i[i.length-1].positionLineNumber,this._widget,o.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(n),s.push(n)}for(const a of n.mappings)if(!r.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new lt(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),s.push(e)}t.add((0,a.OF)((()=>{for(const e of s)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class lt extends a.JT{getId(){return this._id}constructor(e,t,i,s){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=s,this._id="revertButton"+lt.counter++,this._domNode=(0,n.h)("div.revertButton",{title:this._revertSelection?(0,A.NC)("revertSelectedChanges","Revert Selected Changes"):(0,A.NC)("revertChange","Revert Change")},[(0,st.h)(b.l.arrowRight)]).root,this._register((0,n.nm)(this._domNode,n.tw.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,n.nm)(this._domNode,n.tw.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,n.nm)(this._domNode,n.tw.CLICK,(e=>{this._diffs instanceof N.f0?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ot.U.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}lt.counter=0;var dt=i(36362),ht=i(35770),ct=i(47116),ut=i(45234),gt=i(97757),pt=i(25371),mt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ft=function(e,t){return function(i,n){t(i,n,e)}};let _t=class extends a.JT{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,n,s,o,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=s,this._instantiationService=o,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new r.Q5),this.modifiedScrollTop=(0,l.rD)(this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,l.rD)(this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedModel=(0,l.rD)(this.modified.onDidChangeModel,(()=>this.modified.getModel())),this.modifiedSelections=(0,l.rD)(this.modified.onDidChangeCursorSelection,(()=>{var e;return null!==(e=this.modified.getSelections())&&void 0!==e?e:[]})),this.modifiedCursor=(0,l.bk)({owner:this,equalityComparer:k.L.equals},(e=>{var t,i;return null!==(i=null===(t=this.modifiedSelections.read(e)[0])||void 0===t?void 0:t.getPosition())&&void 0!==i?i:new k.L(1,1)})),this.originalCursor=(0,l.rD)(this.original.onDidChangeCursorPosition,(()=>{var e;return null!==(e=this.original.getPosition())&&void 0!==e?e:new k.L(1,1)})),this._argCodeEditorWidgetOptions=null,this._register((0,l.nJ)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){const s=this._createInnerEditor(e,t,i,n);return this._register(s.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+nt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),s}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=S.BH.revealHorizontalRightPadding.defaultValue+nt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;e||(e="");const i=(0,A.NC)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))||void 0===t?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};_t=mt([ft(5,O.TG),ft(6,pt.d)],_t);class vt extends a.JT{constructor(){super(...arguments),this._id=++vt.idCounter,this._onDidDispose=this._register(new r.Q5),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._targetEditor.setPosition(e,t)}revealLine(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLine(e,t)}revealLineInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLineNearTop(e,t)}revealPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._targetEditor.setSelection(e,t)}setSelections(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._targetEditor.setSelections(e,t)}revealLines(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._targetEditor.revealRange(e,t,i,n)}revealRangeInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}vt.idCounter=0;var bt=i(50328),Ct=i(71940),yt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},wt=function(e,t){return function(i,n){t(i,n,e)}};let St=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,l.uh)(this,0),this._screenReaderMode=(0,l.rD)(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,l.nK)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,l.nK)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,l.nK)(this,(e=>this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e)))),this.readOnly=(0,l.nK)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,l.nK)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,l.nK)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,l.nK)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,l.nK)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,l.nK)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,l.nK)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,l.nK)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,l.nK)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,l.nK)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,l.nK)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,l.nK)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,l.nK)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,l.nK)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,l.nK)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,l.nK)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,l.nK)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.hideUnchangedRegions=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount));const i={...e,...xt(e,bt.k)};this._options=(0,l.uh)(this,i)}updateOptions(e){const t=xt(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};function xt(e,t){var i,n,s,o,r,a,l,d;return{enableSplitViewResizing:(0,S.O7)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,S.L_)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,S.O7)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,S.O7)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,S.Zc)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,S.Zc)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,S.O7)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,S.O7)(e.renderIndicators,t.renderIndicators),originalEditable:(0,S.O7)(e.originalEditable,t.originalEditable),diffCodeLens:(0,S.O7)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,S.O7)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,S.NY)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,S.NY)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,S.O7)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,S.O7)(null===(i=e.experimental)||void 0===i?void 0:i.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,S.O7)(null===(n=e.experimental)||void 0===n?void 0:n.showEmptyDecorations,t.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:(0,S.O7)(null!==(o=null===(s=e.hideUnchangedRegions)||void 0===s?void 0:s.enabled)&&void 0!==o?o:null===(r=e.experimental)||void 0===r?void 0:r.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,S.Zc)(null===(a=e.hideUnchangedRegions)||void 0===a?void 0:a.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,S.Zc)(null===(l=e.hideUnchangedRegions)||void 0===l?void 0:l.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,S.Zc)(null===(d=e.hideUnchangedRegions)||void 0===d?void 0:d.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,S.O7)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,S.O7)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,S.Zc)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,S.O7)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,S.O7)(e.renderGutterMenu,t.renderGutterMenu)}}St=yt([wt(1,Ct.F)],St);class Lt extends a.JT{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,l.rD)(this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,l.rD)(this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,l.aq)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,l.aq)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,l.GN)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const s=this._domNode.appendChild((0,n.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),o=new ResizeObserver((()=>{(0,l.PS)((e=>{this.domNodeSizeChanged.trigger(e)}))}));o.observe(this._domNode),this._register((0,a.OF)((()=>o.disconnect()))),this._register((0,l.EH)((e=>{s.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,l.EH)((e=>this.render(e))))}dispose(){super.dispose(),(0,n.mc)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),s=L.q.ofStartAndLength(0,this._domNode.clientHeight);if(!s.isEmpty)for(const o of i){const i=new x.z(o.startLineNumber,o.endLineNumber+1),r=this.itemProvider.getIntersectingGutterItems(i,e);(0,l.PS)((e=>{for(const o of r){if(!o.range.intersect(i))continue;n.delete(o.id);let r=this.views.get(o.id);if(r)r.item.set(o,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,l.uh)("item",o),i=this.itemProvider.createView(t,e);r=new kt(t,i,e),this.views.set(o.id,r)}const a=o.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(o.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(o.range.startLineNumber-1,!1)-t,d=(o.range.isEmpty?a:this._editor.getBottomForLineNumber(o.range.endLineNumberExclusive-1,!0)-t)-a;r.domNode.style.top=`${a}px`,r.domNode.style.height=`${d}px`,r.gutterItemView.layout(L.q.ofStartAndLength(a,d),s)}}))}for(const o of n){const e=this.views.get(o);e.gutterItemView.dispose(),this._domNode.removeChild(e.domNode),this.views.delete(o)}}}class kt{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var Dt=i(70006),Nt=i(44053),Et=i(78757);class Tt extends Nt.MS{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Et.A(e-1,t)}}var It=i(31936),Mt=i(6178),At=i(82854),Rt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ot=function(e,t){return function(i,n){t(i,n,e)}};const Pt=[];let Ft=class extends a.JT{constructor(e,t,i,s,o,r){super(),this._diffModel=t,this._editors=i,this._instantiationService=s,this._contextKeyService=o,this._menuService=r,this._menu=this._register(this._menuService.createMenu(Mt.eH.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,l.rD)(this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this.width=(0,l.nK)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,n.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,l.nK)(this,(e=>{var t;const i=this._diffModel.read(e);if(!i)return;const n=null===(t=i.diff.read(e))||void 0===t?void 0:t.mappings,s=this._editors.modifiedCursor.read(e);return s?null===n||void 0===n?void 0:n.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,l.nK)(this,(e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!i)return Pt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return Pt;const s=new x.i(n.map((e=>x.z.fromRangeInclusive(e)))),o=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>D.e.areIntersecting(e.modifiedRange,t)))))})));return 0===o.length||o.every((e=>0===e.rangeMappings.length))?Pt:o})),this._register((0,w.RL)(e,this.elements.root)),this._register((0,n.nm)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,w.bg)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),this._register(new Lt(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const n=i.diff.read(t);if(!n)return[];const s=this._selectedDiffs.read(t);if(s.length>0){const e=N.gB.fromRangeMappings(s.flatMap((e=>e.rangeMappings)));return[new Bt(e,!0,Mt.eH.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const o=this._currentDiff.read(t);return n.mappings.map((e=>new Bt(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===(null===o||void 0===o?void 0:o.lineRangeMapping),Mt.eH.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(Vt,e,t,this)})),this._register((0,n.nm)(this.elements.gutter,n.tw.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){var t;const i=null!==(t=e.innerChanges)&&void 0!==t?t:[];return new Nt.PY(i.map((e=>new Nt.At(e.originalRange,this._editors.modifiedModel.get().getValueInRange(e.modifiedRange))))).apply(new Tt(this._editors.original.getModel()))}layout(e){this.elements.gutter.style.left=e+"px"}};Ft=Rt([Ot(3,O.TG),Ot(4,ct.i6),Ot(5,Mt.co)],Ft);class Bt{constructor(e,t,i,n,s,o){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=s,this.modifiedUri=o}get id(){return this.mapping.modified.toString()}get range(){var e;return null!==(e=this.rangeOverride)&&void 0!==e?e:this.mapping.modified}}let Vt=class extends a.JT{constructor(e,t,i,s){super(),this._item=e,this._elements=(0,n.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,n.h)("div.background@background",{},[]),(0,n.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,l.uh)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const o=this._register(s.createInstance(At.mQ,"element",!0,{position:{hoverPosition:1}}));this._register((0,w.xx)(t,this._elements.root)),this._register((0,l.EH)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,l.gp)(((e,t)=>{this._elements.buttons.replaceChildren();const n=t.add(s.createInstance(It.r,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:o,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new Dt.D((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(n.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight,this._elements.root.style.top=e.start+"px",this._elements.root.style.height=e.length+"px";const n=e.length/2-i/2,s=i;let o=e.start+n;const r=L.q.tryCreate(s,t.endExclusive-s-i),a=L.q.tryCreate(e.start+s,e.endExclusive-i-s);a&&r&&a.start<a.endExclusive&&(o=r.clip(o),o=a.clip(o)),this._elements.buttons.style.top=o-e.start+"px"}};Vt=Rt([Ot(3,O.TG)],Vt);var Wt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ht=function(e,t){return function(i,n){t(i,n,e)}};let zt=class extends vt{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,s,o,h,c,g){var p;super(),this._domElement=e,this._parentContextKeyService=s,this._parentInstantiationService=o,this._accessibilitySignalService=c,this._editorProgressService=g,this.elements=(0,n.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,n.h)("div.noModificationsOverlay@overlay",{style:{position:"absolute",height:"100%",visibility:"hidden"}},[(0,n.$)("span",{},"No Changes")]),(0,n.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=(0,l.uh)(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=r.ju.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._parentInstantiationService.createChild(new ut.y([ct.i6,this._contextKeyService])),this._boundarySashes=(0,l.uh)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,l.uh)(this,!1),this._accessibleDiffViewerVisible=(0,l.nK)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,l.uh)(this,void 0),this._layoutInfo=(0,l.nK)(this,(e=>{var t,i,n,s,o;const r=this._rootSizeObserver.width.read(e),a=this._rootSizeObserver.height.read(e),l=this._sash.read(e),d=this._gutter.read(e),h=null!==(t=null===d||void 0===d?void 0:d.width.read(e))&&void 0!==t?t:0,c=null!==(n=null===(i=this._overviewRulerPart.read(e))||void 0===i?void 0:i.width)&&void 0!==n?n:0;let u,g,p,m,f;if(!!l){const t=l.sashLeft.read(e);u=0,g=t-h-(null!==(o=null===(s=this._movedBlocksLinesPart.read(e))||void 0===s?void 0:s.width.read(e))&&void 0!==o?o:0),f=t-h,p=t,m=r-p-c}else f=0,u=h,g=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),p=h+g,m=r-p-c;return this.elements.original.style.left=u+"px",this.elements.original.style.width=g+"px",this._editors.original.layout({width:g,height:a},!0),null===d||void 0===d||d.layout(f),this.elements.modified.style.left=p+"px",this.elements.modified.style.width=m+"px",this._editors.modified.layout({width:m,height:a},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>null===e||void 0===e?void 0:e.diff.read(t))),this.onDidUpdateDiff=r.ju.fromObservableLight(this._diffValue),h.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.OF)((()=>this._domElement.removeChild(this.elements.root)))),this._rootSizeObserver=this._register(new w.DU(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(null!==(p=t.automaticLayout)&&void 0!==p&&p),this._options=this._instantiationService.createInstance(St,t),this._register((0,l.EH)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(ht.u.isEmbeddedDiffEditor.key,!1),this._register((0,w.GU)(ht.u.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,w.GU)(ht.u.comparingMovedCode,this._contextKeyService,(e=>{var t;return!!(null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e))}))),this._register((0,w.GU)(ht.u.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,w.GU)(ht.u.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,w.GU)(ht.u.hasChanges,this._contextKeyService,(e=>{var t,i,n;return(null!==(n=null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)&&void 0!==n?n:0)>0}))),this._editors=this._register(this._instantiationService.createInstance(_t,this.elements.original,this.elements.modified,this._options,i,((e,t,i,n)=>this._createInnerEditor(e,t,i,n)))),this._register((0,w.GU)(ht.u.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,w.GU)(ht.u.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,w.GU)(ht.u.diffEditorOriginalUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.original.uri.toString())&&void 0!==i?i:""}))),this._register((0,w.GU)(ht.u.diffEditorModifiedUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.modified.uri.toString())&&void 0!==i?i:""}))),this._overviewRulerPart=(0,d.kA)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,w.NW)(nt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store),this._sash=(0,d.kA)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new oe(this._options,this.elements.root,{height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>{var i,n;return e-(null!==(n=null===(i=this._overviewRulerPart.read(t))||void 0===i?void 0:i.width)&&void 0!==n?n:0)}))},this._boundarySashes):void 0})).recomputeInitiallyAndOnChange(this._store);const m=(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(Ye.O,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(ne,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const f=new Set,_=new Set;let v=!1;const b=(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(Ke,e),(0,n.Jj)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>v||m.get().isUpdatingHiddenAreas),f,_))).recomputeInitiallyAndOnChange(this._store),C=(0,l.nK)(this,(e=>{const t=b.read(e).viewZones.read(e).orig,i=m.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,l.nK)(this,(e=>{const t=b.read(e).viewZones.read(e).mod,i=m.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let S;this._register((0,w.Sv)(this._editors.original,C,(e=>{v=e}),f)),this._register((0,w.Sv)(this._editors.modified,y,(e=>{v=e,v?S=u.Z.capture(this._editors.modified):(null===S||void 0===S||S.restore(this._editors.modified),S=void 0)}),_)),this._accessibleDiffViewer=(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(z,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>{var i;return null===(i=null===e||void 0===e?void 0:e.diff.read(t))||void 0===i?void 0:i.mappings.map((e=>e.lineRangeMapping))})),new X(this._editors)))).recomputeInitiallyAndOnChange(this._store);const x=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,w.bg)(this.elements.modified,{visibility:x})),this._register((0,w.bg)(this.elements.original,{visibility:x})),this._createDiffEditorContributions(),h.addDiffEditor(this),this._gutter=(0,d.kA)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,w.NW)(Ft,e),this.elements.root,this._diffModel,this._editors):void 0)),this._register((0,l.jx)(this._layoutInfo)),(0,d.kA)(this,(e=>new((0,w.NW)(J,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register((0,w.bg)(this.elements.overlay,{width:this._layoutInfo.map(((e,t)=>e.originalEditor.width+(this._options.renderSideBySide.read(t)?0:e.modifiedEditor.width))),visibility:(0,l.nK)((e=>{var t,i;return this._options.hideUnchangedRegions.read(e)&&0===(null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)?"visible":"hidden"}))})),this._register(r.ju.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(r.ju.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const L=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,l.gp)(((e,t)=>{if(!0===L.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.OF)((()=>e.done())))}}))),this._register((0,a.OF)((()=>{var e;this._shouldDisposeDiffModel&&(null===(e=this._diffModel.get())||void 0===e||e.dispose())}))),this._register((0,l.gp)(((e,t)=>{t.add(new((0,w.NW)(at,e))(this._editors,this._diffModel,this._options,this))})))}_createInnerEditor(e,t,i,n){return e.createInstance(g.Gm,t,i,n)}_createDiffEditorContributions(){const e=h.Uc.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,o.dL)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return dt.g.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:null===(e=this._diffModel.get())||void 0===e?void 0:e.serializeState()}}restoreViewState(e){var t;if(e&&e.original&&e.modified){const i=e;this._editors.original.restoreViewState(i.original),this._editors.modified.restoreViewState(i.modified),i.modelState&&(null===(t=this._diffModel.get())||void 0===t||t.restoreSerializedState(i.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ke,e,this._options)}getModel(){var e,t;return null!==(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.model)&&void 0!==t?t:null}setModel(e,t){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const i=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==(null===i||void 0===i?void 0:i.model)&&(0,l.c8)(t,(e=>{var t;l.rD.batchEventsGlobally(e,(()=>{this._editors.original.setModel(i?i.model.model.original:null),this._editors.modified.setModel(i?i.model.model.modified:null)}));const n=this._diffModel.get(),s=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=null!==(t=null===i||void 0===i?void 0:i.shouldDispose)&&void 0!==t&&t,this._diffModel.set(null===i||void 0===i?void 0:i.model,e),s&&(null===n||void 0===n||n.dispose())}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get();return t?t.mappings.map((e=>{const t=e.lineRangeMapping;let i,n,s,o,r=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,n=0,r=void 0):(i=t.original.startLineNumber,n=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(s=t.modified.startLineNumber-1,o=0,r=void 0):(s=t.modified.startLineNumber,o=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:n,modifiedStartLineNumber:s,modifiedEndLineNumber:o,charChanges:null===r||void 0===r?void 0:r.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new k.L(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var t,i,n,o;const r=null===(i=null===(t=this._diffModel.get())||void 0===t?void 0:t.diff.get())||void 0===i?void 0:i.mappings;if(!r||0===r.length)return;const a=this._editors.modified.getPosition().lineNumber;let l;l="next"===e?null!==(n=r.find((e=>e.lineRangeMapping.modified.startLineNumber>a)))&&void 0!==n?n:r[0]:null!==(o=(0,s.dF)(r,(e=>e.lineRangeMapping.modified.startLineNumber<a)))&&void 0!==o?o:r[r.length-1],this._goTo(l),l.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(R.iP.diffLineDeleted,{source:"diffEditor.goToDiff"}):l.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(R.iP.diffLineInserted,{source:"diffEditor.goToDiff"}):l&&this._accessibilitySignalService.playSignal(R.iP.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{var t;const i=null===(t=e.diff.get())||void 0===t?void 0:t.mappings;i&&0!==i.length&&this._goTo(i[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,t;const i=this._editors.modified.hasWidgetFocus(),n=i?this._editors.modified:this._editors.original,s=i?this._editors.original:this._editors.modified;let o;const r=n.getSelection();if(r){const n=null===(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get())||void 0===t?void 0:t.mappings.map((e=>i?e.lineRangeMapping.flip():e.lineRangeMapping));if(n){const e=(0,w.cV)(r.getStartPosition(),n),t=(0,w.cV)(r.getEndPosition(),n);o=D.e.plusRange(e,t)}}return{destination:s,destinationSelection:o}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.PS)((e=>{for(const i of t)i.collapseAll(e)}))}showAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.PS)((e=>{for(const i of t)i.showAll(e)}))}_handleCursorPositionChange(e,t){var i,n;if(3===(null===e||void 0===e?void 0:e.reason)){const s=null===(n=null===(i=this._diffModel.get())||void 0===i?void 0:i.diff.get())||void 0===n?void 0:n.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));(null===s||void 0===s?void 0:s.lineRangeMapping.modified.isEmpty)?this._accessibilitySignalService.playSignal(R.iP.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):(null===s||void 0===s?void 0:s.lineRangeMapping.original.isEmpty)?this._accessibilitySignalService.playSignal(R.iP.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):s&&this._accessibilitySignalService.playSignal(R.iP.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};zt=Wt([Ht(3,ct.i6),Ht(4,O.TG),Ht(5,c.$),Ht(6,R.IV),Ht(7,gt.ek)],zt)},20289:(e,t,i)=>{"use strict";i.d(t,{O:()=>w});var n,s=i(76595),o=i(27691),r=i(61542),a=i(73971),l=i(53186),d=i(43704),h=i(205),c=i(73045),u=i(47624),g=i(36348),p=i(47638),m=i(74633),f=i(28928),_=i(18841),v=i(5887),b=i(87775),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};let w=n=class extends l.JT{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=s,this._modifiedOutlineSource=(0,h.kA)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=n._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.PS)((e=>{for(const i of this._editors.original.getSelections()||[])null===t||void 0===t||t.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),null===t||void 0===t||t.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.PS)((e=>{for(const i of this._editors.modified.getSelections()||[])null===t||void 0===t||t.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),null===t||void 0===t||t.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const o=this._diffModel.map(((e,t)=>{var i,n;const s=null!==(i=null===e||void 0===e?void 0:e.unchangedRegions.read(t))&&void 0!==i?i:[];return 1===s.length&&1===s[0].modifiedLineNumber&&s[0].lineCount===(null===(n=this._editors.modifiedModel.read(t))||void 0===n?void 0:n.getLineCount())?[]:s}));this.viewZones=(0,d.Be)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const n=[],s=[],r=this._options.renderSideBySide.read(e),a=o.read(e);for(const o of a)if(!o.shouldHideControls(e)){{const e=(0,d.nK)(this,(e=>o.getHiddenOriginalRange(e).startLineNumber-1)),s=new g.GD(e,24);n.push(s),t.add(new S(this._editors.original,s,o,o.originalUnchangedRange,!r,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,d.nK)(this,(e=>o.getHiddenModifiedRange(e).startLineNumber-1)),n=new g.GD(e,24);s.push(n),t.add(new S(this._editors.modified,n,o,o.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}return{origViewZones:n,modViewZones:s}}));const l={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},_={description:"Fold Unchanged",glyphMarginHoverMessage:new a.W5(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,v.NC)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+c.k.asClassName(r.l.fold),zIndex:10001};this._register((0,g.RP)(this._editors.original,(0,d.nK)(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:f.e.fromPositions(new m.L(n.originalLineNumber,1)),options:_});return i})))),this._register((0,g.RP)(this._editors.modified,(0,d.nK)(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:p.z.ofLength(n.modifiedLineNumber,1).toInclusiveRange(),options:_});return i})))),this._register((0,d.EH)((e=>{const t=o.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.$K)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.$K))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};w._breadcrumbsSourceFactory=(0,d.uh)("breadcrumbsSourceFactory",void 0),w=n=C([y(3,b.TG)],w);class S extends g.N9{constructor(e,t,i,n,a,l,h,c){const u=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=a,this._modifiedOutlineSource=l,this._revealModifiedHiddenLine=h,this._options=c,this._nodes=(0,s.h)("div.diff-hidden-lines",[(0,s.h)("div.top@top",{title:(0,v.NC)("diff.hiddenLines.top","Click or drag to show more above")}),(0,s.h)("div.center@content",{style:{display:"flex"}},[(0,s.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,s.$)("a",{title:(0,v.NC)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,o.T)("$(unfold)"))]),(0,s.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,s.h)("div.bottom@bottom",{title:(0,v.NC)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root);const p=(0,d.rD)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));this._hide?(0,s.mc)(this._nodes.first):this._register((0,g.bg)(this._nodes.first,{width:p.map((e=>e.contentLeft))})),this._register((0,d.EH)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),n=this._editor.getDomNode();n&&(n.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(n.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),n.classList.toggle("canMoveBottom",!t)):"bottom"===i?(n.classList.toggle("canMoveTop",!t),n.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(n.classList.toggle("canMoveTop",!1),n.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,s.nm)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const o=(0,s.Jj)(this._nodes.top),r=(0,s.nm)(o,"mousemove",(e=>{const s=e.clientY-t;i=i||Math.abs(s)>2;const o=Math.round(s/m.getOption(67)),r=Math.max(0,Math.min(n+o,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(r,void 0)})),a=(0,s.nm)(o,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),r.dispose(),a.dispose()}))}))),this._register((0,s.nm)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const o=(0,s.Jj)(this._nodes.bottom),r=(0,s.nm)(o,"mousemove",(e=>{const s=e.clientY-t;i=i||Math.abs(s)>2;const o=Math.round(s/m.getOption(67)),r=Math.max(0,Math.min(n-o,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(r,void 0);const l=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(l-a))})),a=(0,s.nm)(o,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),r.dispose(),a.dispose()}))}))),this._register((0,d.EH)((e=>{const t=[];if(!this._hide){const n=i.getHiddenModifiedRange(e).length,a=(0,v.NC)("hiddenLines","{0} hidden lines",n),l=(0,s.$)("span",{title:(0,v.NC)("diff.hiddenLines.expandAll","Double click to unfold")},a);l.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(l);const d=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(d,e);if(h.length>0){t.push((0,s.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],n=_.uZ.toIcon(i.kind),a=(0,s.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,o.h)(n),"\xa0",i.name,...e===h.length-1?[]:[(0,o.h)(r.l.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,s.mc)(this._nodes.others,...t)})))}}},79987:(e,t,i)=>{"use strict";i.d(t,{$F:()=>C,Jv:()=>f,LE:()=>m,W3:()=>b,fO:()=>h,i_:()=>p,iq:()=>u,n_:()=>_,rd:()=>g,rq:()=>v,vv:()=>c});var n=i(61542),s=i(73045),o=i(13277),r=i(5887),a=i(6009),l=i(54329);(0,a.P6G)("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},(0,r.NC)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.P6G)("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},(0,r.NC)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.P6G)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,r.NC)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const d=(0,l.q5)("diff-insert",n.l.add,(0,r.NC)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,l.q5)("diff-remove",n.l.remove,(0,r.NC)("diffRemoveIcon","Line decoration for removals in the diff editor.")),c=o.qx.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+s.k.asClassName(d),marginClassName:"gutter-insert"}),u=o.qx.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+s.k.asClassName(h),marginClassName:"gutter-delete"}),g=o.qx.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=o.qx.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=o.qx.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=o.qx.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=o.qx.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=o.qx.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),b=o.qx.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),C=o.qx.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},36348:(e,t,i)=>{"use strict";i.d(t,{t2:()=>D,DU:()=>b,GD:()=>w,N9:()=>y,Vm:()=>C,xx:()=>_,RP:()=>f,bg:()=>x,Sv:()=>k,GU:()=>E,W7:()=>T,Ap:()=>m,RL:()=>v,NW:()=>L,cV:()=>N});var n=i(91206),s=i(76946),o=i(3739);function r(){return o.OB&&!!o.OB.VSCODE_DEV}function a(e){if(r()){const t=function(){l||(l=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e};for(const i of l){const e=i(t);if(e)return e}});return l}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let l;r()&&a((e=>{let{oldExports:t,newSrc:i,config:n}=e;if("patch-prototype"===n.mode)return e=>{var i,n;for(const s in e){const o=e[s];if(console.log(`[hot-reload] Patching prototype methods of '${s}'`,{exportedItem:o}),"function"===typeof o&&o.prototype){const r=t[s];if(r){for(const e of Object.getOwnPropertyNames(o.prototype)){const t=Object.getOwnPropertyDescriptor(o.prototype,e),a=Object.getOwnPropertyDescriptor(r.prototype,e);(null===(i=null===t||void 0===t?void 0:t.value)||void 0===i?void 0:i.toString())!==(null===(n=null===a||void 0===a?void 0:a.value)||void 0===n?void 0:n.toString())&&console.log(`[hot-reload] Patching prototype method '${s}.${e}'`),Object.defineProperty(r.prototype,e,t)}e[s]=r}}}return!0}}));var d=i(53186),h=i(43704),c=i(17067),u=i(74633),g=i(28928),p=i(78757);function m(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;const s=[];let o=0,r=0;for(;o<e.length&&r<t.length;){const a=e[o],l=t[r],d=i(a),h=i(l);d<h?(s.push(a),o++):d>h?(s.push(l),r++):(s.push(n(a,l)),o++,r++)}for(;o<e.length;)s.push(e[o]),o++;for(;r<t.length;)s.push(t[r]),r++;return s}function f(e,t){const i=new d.SL,n=e.createDecorationsCollection();return i.add((0,h.UV)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function _(e,t){return e.appendChild(t),(0,d.OF)((()=>{e.removeChild(t)}))}function v(e,t){return e.prepend(t),(0,d.OF)((()=>{e.removeChild(t)}))}class b extends d.JT{get width(){return this._width}get height(){return this._height}constructor(e,t){super(),this.elementSizeObserver=this._register(new c.I(e,t)),this._width=(0,h.uh)(this,this.elementSizeObserver.getWidth()),this._height=(0,h.uh)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,h.PS)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function C(e,t,i){let n=t.get(),s=n,o=n;const r=(0,h.uh)("animatedValue",n);let a=-1;const l=300;let d;function c(){const t=Date.now()-a;var i,h,u,g;o=Math.floor((h=s,u=n-s,(i=t)===(g=l)?h+u:u*(1-Math.pow(2,-10*i/g))+h)),t<l?d=e.requestAnimationFrame(c):o=n,r.set(o,void 0)}return i.add((0,h.nJ)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,r)=>{void 0!==d&&(e.cancelAnimationFrame(d),d=void 0),s=o,n=t.read(i),a=Date.now()-(r.animate?0:l),c()}))),r}class y extends d.JT{constructor(e,t,i){super(),this._register(new S(e,i)),this._register(x(i,{height:t.actualHeight,top:t.actualTop}))}}class w{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,h.uh)(this,void 0),this._actualHeight=(0,h.uh)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class S{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+S._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function x(e,t){return(0,h.EH)((i=>{for(let[n,s]of Object.entries(t))s&&"object"===typeof s&&"read"in s&&(s=s.read(i)),"number"===typeof s&&(s=`${s}px`),n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[n]=s}))}function L(e,t){return function(e,t){if(r()){(0,h.aq)("reload",(t=>a((i=>{let{oldExports:n}=i;if([...Object.values(n)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}function k(e,t,i,n){const s=new d.SL,o=[];return s.add((0,h.gp)(((s,r)=>{const a=t.read(s),l=new Map,d=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of o)e.removeZone(t),null===n||void 0===n||n.delete(t);o.length=0;for(const t of a){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),o.push(i),null===n||void 0===n||n.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,h.nJ)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=d.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,n)=>{for(const e of a)e.onChange&&(d.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of n.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),s.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of o)e.removeZone(t)})),null===n||void 0===n||n.clear(),i&&i(!1)}}),s}S._counter=0;class D extends s.A{dispose(){super.dispose(!0)}}function N(e,t){const i=(0,n.dF)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return g.e.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return g.e.fromPositions(new u.L(t,e.column))}if(!i.innerChanges)return g.e.fromPositions(new u.L(i.modified.startLineNumber,1));const s=(0,n.dF)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!s){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return g.e.fromPositions(new u.L(t,e.column))}if(s.originalRange.containsPosition(e))return s.modifiedRange;{const t=(o=s.originalRange.getEndPosition(),r=e,o.lineNumber===r.lineNumber?new p.A(0,r.column-o.column):new p.A(r.lineNumber-o.lineNumber,r.column-1));return g.e.fromPositions(t.addToPosition(s.modifiedRange.getEndPosition()))}var o,r}function E(e,t,i){const n=e.bindTo(t);return(0,h.UV)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}function T(e,t){let i;return e.filter((e=>{const n=t(e,i);return i=e,n}))}},35978:(e,t,i)=>{"use strict";i.d(t,{$:()=>f,N:()=>_});var n,s=i(16315),o=i(58296),r=i(16015),a=i(39706),l=i(53186),d=i(64295),h=i(91342),c=i(76326),u=i(85779),g=i(34912),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=n=class{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.Q5,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const n=new l.SL,o=n.add((0,s.ap)(e,{...this._getRenderOptions(e,n),...t},i));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{var i,s,o;let r;e?r=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(r=null===(i=this._options.editor.getModel())||void 0===i?void 0:i.getLanguageId()),r||(r=c.bd);const a=await(0,u.C2)(this._languageService,t,r),l=document.createElement("span");if(l.innerHTML=null!==(o=null===(s=n._ttpTokenizer)||void 0===s?void 0:s.createHTML(a))&&void 0!==o?o:a,this._options.editor){const e=this._options.editor.getOption(50);(0,d.N)(l,e)}else this._options.codeBlockFontFamily&&(l.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(l.style.fontSize=this._options.codeBlockFontSize),l},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(n){return(0,r.dL)(n),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f._ttpTokenizer=(0,o.Z)("tokenizeToString",{createHTML:e=>e}),f=n=p([m(1,h.O),m(2,g.v)],f)},70006:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});var n=i(51828);class s extends n.Wi{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},2196:(e,t,i)=>{"use strict";i.d(t,{OY:()=>o,Sj:()=>r,T4:()=>s,Uo:()=>a,hP:()=>l});var n=i(24854);class s{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getEndPosition())}}class o{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromRange(i,0)}}class r{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=s}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class l{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},80869:(e,t,i)=>{"use strict";i.d(t,{U:()=>p});var n,s=i(78701),o=i(32653),r=i(28928),a=i(24854),l=i(37036),d=i(5580),h=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,n){t(i,n,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}let p=n=class{static unshiftIndent(e,t,i,n,s){const r=o.i.visibleColumnFromColumn(e,t,i);if(s){const e=g(" ",n);return g(e,o.i.prevIndentTabStop(r,n)/n)}return g("\t",o.i.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,s){const r=o.i.visibleColumnFromColumn(e,t,i);if(s){const e=g(" ",n);return g(e,o.i.nextIndentTabStop(r,n)/n)}return g("\t",o.i.nextRenderTabStop(r,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:d,indentSize:h,insertSpaces:c}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=s.LC(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(o.i.visibleColumnFromColumn(a,_+1,d)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,l.A)(this._opts.autoIndent,e,new r.e(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?n.unshiftIndent(a,_+1,d,h,c):n.shiftIndent(a,_+1,d,h,c),this._addEditOperation(t,new r.e(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const n=c?g(" ",h):"\t";for(let o=i;o<=a;o++){const a=e.getLineContent(o);let l=s.LC(a);if((!this._opts.isUnshift||0!==a.length&&0!==l)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===l&&(l=a.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,h);for(let e=0;e<l;e++){if(9===a.charCodeAt(e)){l=e+1;break}}this._addEditOperation(t,new r.e(o,1,o,l+1),"")}else this._addEditOperation(t,new r.e(o,1,o,1),n),o!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.Y(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.Y(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.Y(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=n=h([c(2,d.c_)],p)},50328:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});const n={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}},50142:(e,t,i)=>{"use strict";i.d(t,{Pe:()=>m,ei:()=>p,wk:()=>d});var n=i(50328),s=i(67364),o=i(47998),r=i(5887),a=i(49817),l=i(76322);const d=Object.freeze({id:"editor",order:5,type:"object",title:r.NC("editorConfigurationTitle","Editor"),scope:5}),h={...d,properties:{"editor.tabSize":{type:"number",default:o.D.tabSize,minimum:1,markdownDescription:r.NC("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:r.NC("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:o.D.insertSpaces,markdownDescription:r.NC("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:o.D.detectIndentation,markdownDescription:r.NC("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:o.D.trimAutoWhitespace,description:r.NC("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:o.D.largeFileOptimizations,description:r.NC("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[r.NC("wordBasedSuggestions.off","Turn off Word Based Suggestions."),r.NC("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),r.NC("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),r.NC("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:r.NC("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[r.NC("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),r.NC("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),r.NC("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:r.NC("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r.NC("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r.NC("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:r.NC("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:r.NC("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:r.NC("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:r.NC("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:r.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:r.NC("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:r.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:n.k.maxComputationTime,description:r.NC("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:n.k.maxFileSize,description:r.NC("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:n.k.renderSideBySide,description:r.NC("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:n.k.renderSideBySideInlineBreakpoint,description:r.NC("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:n.k.useInlineViewWhenSpaceIsLimited,description:r.NC("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:n.k.renderMarginRevertIcon,description:r.NC("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:n.k.renderGutterMenu,description:r.NC("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:n.k.ignoreTrimWhitespace,description:r.NC("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:n.k.renderIndicators,description:r.NC("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:n.k.diffCodeLens,description:r.NC("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:n.k.diffWordWrap,markdownEnumDescriptions:[r.NC("wordWrap.off","Lines will never wrap."),r.NC("wordWrap.on","Lines will wrap at the viewport width."),r.NC("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:n.k.diffAlgorithm,markdownEnumDescriptions:[r.NC("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),r.NC("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:n.k.hideUnchangedRegions.enabled,markdownDescription:r.NC("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:n.k.hideUnchangedRegions.revealLineCount,markdownDescription:r.NC("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:n.k.hideUnchangedRegions.minimumLineCount,markdownDescription:r.NC("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:n.k.hideUnchangedRegions.contextLineCount,markdownDescription:r.NC("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:n.k.experimental.showMoves,markdownDescription:r.NC("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:n.k.experimental.showEmptyDecorations,description:r.NC("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(const f of s.Bc){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(c=e).type||"undefined"!==typeof c.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var c;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}l.B.as(a.IP.Configuration).registerConfiguration(h)},67364:(e,t,i)=>{"use strict";i.d(t,{$J:()=>A,$r:()=>N,Av:()=>O,BH:()=>H,Bb:()=>h,Bc:()=>V,Bo:()=>T,LJ:()=>c,L_:()=>y,NY:()=>x,O7:()=>_,Zc:()=>b,d2:()=>D,gk:()=>M,hL:()=>B,n0:()=>E,qt:()=>P,rk:()=>g,y0:()=>d});var n=i(51833),s=i(53335),o=i(90388),r=i(47998),a=i(67331),l=i(5887);const d=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class c{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&n.fS(e,t);return new g(t,!i)}let i=!1;for(const n in t)if(t.hasOwnProperty(n)){const s=p(e[n],t[n]);s.didChange&&(e[n]=s.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;"undefined"!==typeof n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return _(e,this.defaultValue)}}function b(e,t,i,n){if("undefined"===typeof e)return t;let s=parseInt(e,10);return isNaN(s)?t:(s=Math.max(i,s),s=Math.min(n,s),0|s)}class C extends f{static clampedInt(e,t,i,n){return b(e,t,i,n)}constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;"undefined"!==typeof o&&(o.type="integer",o.default=i,o.minimum=n,o.maximum=s),super(e,t,i,o),this.minimum=n,this.maximum=s}validate(e){return C.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function y(e,t,i,n){if("undefined"===typeof e)return t;const s=w.float(e,t);return w.clamp(s,i,n)}class w extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){"undefined"!==typeof s&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(w.float(e,this.defaultValue))}}class S extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;"undefined"!==typeof n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return S.string(e,this.defaultValue)}}function x(e,t,i,n){return"string"!==typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class L extends f{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;"undefined"!==typeof s&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return x(e,this.defaultValue,this._allowedValues)}}class k extends u{constructor(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;"undefined"!==typeof r&&(r.type="string",r.enum=s,r.default=n),super(e,t,i,r),this._allowedValues=s,this._convert=o}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var D,N;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(D||(D={}));class E extends u{constructor(){super(51,"fontLigatures",E.OFF,{anyOf:[{type:"boolean",description:l.NC("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:l.NC("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:l.NC("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?E.OFF:"true"===e?E.ON:e:Boolean(e)?E.ON:E.OFF}}E.OFF='"liga" off, "calt" off',E.ON='"liga" on, "calt" on';class T extends u{constructor(){super(54,"fontVariations",T.OFF,{anyOf:[{type:"boolean",description:l.NC("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:l.NC("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:l.NC("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?T.OFF:"true"===e?T.TRANSLATE:e:Boolean(e)?T.TRANSLATE:T.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}T.OFF="normal",T.TRANSLATE="translate";class I extends u{constructor(){super(53,"fontWeight",B.fontWeight,{anyOf:[{type:"number",minimum:I.MINIMUM_VALUE,maximum:I.MAXIMUM_VALUE,errorMessage:l.NC("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:I.SUGGESTION_VALUES}],default:B.fontWeight,description:l.NC("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(C.clampedInt(e,B.fontWeight,I.MINIMUM_VALUE,I.MAXIMUM_VALUE))}}I.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],I.MINIMUM_VALUE=1,I.MAXIMUM_VALUE=1e3;class M extends m{constructor(){super(145)}compute(e,t,i){return M.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:Math.floor(e.viewLineCount/s)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const o=t.stableMinimapLayoutInput,r=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=s>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,b=e.isViewportWrapping,C=c?2:3;let y=Math.floor(s*n);const w=y/s;let S=!1,x=!1,L=C*u,k=u/s,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:c}=M.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:s});if(_/c>1)S=!0,x=!0,u=1,L=1,k=u/s;else{let n=!1,h=u+1;if("fit"===p){const e=Math.ceil((o+_+l)*L);b&&r&&v<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>y}if("fill"===p||n){S=!0;const n=u;L=Math.min(a*s,Math.max(1,Math.floor(1/d))),b&&r&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(L/C))),u>n&&(D=Math.min(2,u/n)),k=u/s/D,y=Math.ceil(Math.max(i,o+_+l)*L),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(g*k),E=Math.min(N,Math.max(0,Math.floor((v-f-2)*k/(l+k)))+d);let T=Math.floor(s*E);const I=T/s;T=Math.floor(T*D);return{renderMinimap:c?1:2,minimapLeft:"left"===m?0:i-E-f,minimapWidth:E,minimapHeightIsEditorHeight:S,minimapIsSampling:x,minimapScale:u,minimapLineHeight:L,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,s=0|t.lineHeight,o=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,h=e.get(137),u="inherit"===h?e.get(136):h,g="inherit"===u?e.get(132):u,p=e.get(135),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),b=e.get(105),C=e.get(84),y=e.get(73),w=e.get(103),S=w.verticalScrollbarSize,x=w.verticalHasArrows,L=w.arrowSize,k=w.horizontalScrollbarSize,D=e.get(43),N="never"!==e.get(110);let E=e.get(66);D&&N&&(E+=16);let T=0;if(_){const e=Math.max(o,v);T=Math.round(e*a)}let I=0;f&&(I=s*t.glyphMarginDecorationLaneCount);let A=0,R=A+I,O=R+T,P=O+E;const F=i-I-T-E;let B=!1,V=!1,W=-1;"inherit"===u&&m?(B=!0,V=!0):"on"===g||"bounded"===g?V=!0:"wordWrapColumn"===g&&(W=p);const H=M._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:C.top,paddingBottom:C.bottom,minimap:y,verticalScrollbarWidth:S,viewLineCount:d,remainingWidth:F,isViewportWrapping:V},t.memory||new c);0!==H.renderMinimap&&0===H.minimapLeft&&(A+=H.minimapWidth,R+=H.minimapWidth,O+=H.minimapWidth,P+=H.minimapWidth);const z=F-H.minimapWidth,j=Math.max(1,Math.floor((z-S-2)/r)),U=x?L:0;return V&&(W=Math.max(1,j),"bounded"===g&&(W=Math.min(W,p))),{width:i,height:n,glyphMarginLeft:A,glyphMarginWidth:I,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:T,decorationsLeft:O,decorationsWidth:E,contentLeft:P,contentWidth:z,minimap:H,viewportColumn:j,isWordWrapMinified:B,isViewportWrapping:V,wrappingColumn:W,verticalScrollbarWidth:S,horizontalScrollbarHeight:k,overviewRuler:{top:U,width:S,height:n-2*U,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(N||(N={}));function A(e){const t=e.get(98);return"editable"===t?e.get(91):"on"!==t}function R(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const O="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const B={fontFamily:o.dz?"Menlo, Monaco, 'Courier New', monospace":o.IJ?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.dz?12:14,lineHeight:0,letterSpacing:0},V=[];function W(e){return V[e.id]=e,e}const H={acceptSuggestionOnCommitCharacter:W(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:l.NC("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:W(new L(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",l.NC("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:l.NC("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:W(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[l.NC("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),l.NC("accessibilitySupport.on","Optimize for usage with a Screen Reader."),l.NC("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:l.NC("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:W(new C(3,"accessibilityPageSize",10,1,1073741824,{description:l.NC("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:W(new S(4,"ariaLabel",l.NC("editorViewAccessibleLabel","Editor content"))),ariaRequired:W(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:W(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:l.NC("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:W(new L(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.NC("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),l.NC("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:l.NC("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:W(new L(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.NC("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),l.NC("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:l.NC("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:W(new L(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",l.NC("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:l.NC("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:W(new L(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",l.NC("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:l.NC("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:W(new L(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.NC("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),l.NC("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:l.NC("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:W(new k(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[l.NC("editor.autoIndent.none","The editor will not insert indentation automatically."),l.NC("editor.autoIndent.keep","The editor will keep the current line's indentation."),l.NC("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),l.NC("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),l.NC("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:l.NC("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:W(new v(13,"automaticLayout",!1)),autoSurround:W(new L(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[l.NC("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),l.NC("editor.autoSurround.quotes","Surround with quotes but not brackets."),l.NC("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:l.NC("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:W(new class extends u{constructor(){const e={enabled:r.D.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:r.D.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.NC("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:l.NC("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:W(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.NC("editor.guides.bracketPairs.true","Enables bracket pair guides."),l.NC("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),l.NC("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:l.NC("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.NC("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),l.NC("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),l.NC("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:l.NC("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:l.NC("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:l.NC("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[l.NC("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),l.NC("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),l.NC("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:l.NC("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:W(new v(116,"stickyTabStops",!1,{description:l.NC("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:W(new v(17,"codeLens",!0,{description:l.NC("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:W(new S(18,"codeLensFontFamily","",{description:l.NC("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:W(new C(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:l.NC("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:W(new v(20,"colorDecorators",!0,{description:l.NC("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:W(new L(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[l.NC("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),l.NC("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),l.NC("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:l.NC("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:W(new C(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:l.NC("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:W(new v(22,"columnSelection",!1,{description:l.NC("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:W(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:l.NC("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:l.NC("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:W(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:W(new v(25,"copyWithSyntaxHighlighting",!0,{description:l.NC("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:W(new k(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:l.NC("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:W(new L(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[l.NC("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),l.NC("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),l.NC("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:l.NC("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:W(new k(28,"cursorStyle",D.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return D.Line;case"block":return D.Block;case"underline":return D.Underline;case"line-thin":return D.LineThin;case"block-outline":return D.BlockOutline;case"underline-thin":return D.UnderlineThin}}),{description:l.NC("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:W(new C(29,"cursorSurroundingLines",0,0,1073741824,{description:l.NC("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:W(new L(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[l.NC("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),l.NC("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:l.NC("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:W(new C(31,"cursorWidth",0,0,1073741824,{markdownDescription:l.NC("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:W(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:W(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:W(new v(34,"domReadOnly",!1)),dragAndDrop:W(new v(35,"dragAndDrop",!0,{description:l.NC("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:W(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:l.NC("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:W(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.NC("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:l.NC("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[l.NC("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),l.NC("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:x(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:W(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:l.NC("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:l.NC("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:l.NC("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:l.NC("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:C.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:x(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:W(new L(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[l.NC("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),l.NC("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),l.NC("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:l.NC("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:W(new S(39,"extraEditorClassName","")),fastScrollSensitivity:W(new w(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:l.NC("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:W(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:l.NC("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[l.NC("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),l.NC("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),l.NC("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:l.NC("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[l.NC("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),l.NC("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),l.NC("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:l.NC("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:l.NC("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:l.NC("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:l.NC("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":x(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":x(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:W(new v(42,"fixedOverflowWidgets",!1)),folding:W(new v(43,"folding",!0,{description:l.NC("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:W(new L(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[l.NC("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),l.NC("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:l.NC("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:W(new v(45,"foldingHighlight",!0,{description:l.NC("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:W(new v(46,"foldingImportsByDefault",!1,{description:l.NC("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:W(new C(47,"foldingMaximumRegions",5e3,10,65e3,{description:l.NC("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:W(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:l.NC("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:W(new S(49,"fontFamily",B.fontFamily,{description:l.NC("fontFamily","Controls the font family.")})),fontInfo:W(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:W(new E),fontSize:W(new class extends f{constructor(){super(52,"fontSize",B.fontSize,{type:"number",minimum:6,maximum:100,default:B.fontSize,description:l.NC("fontSize","Controls the font size in pixels.")})}validate(e){const t=w.float(e,this.defaultValue);return 0===t?B.fontSize:w.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:W(new I),fontVariations:W(new T),formatOnPaste:W(new v(55,"formatOnPaste",!1,{description:l.NC("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:W(new v(56,"formatOnType",!1,{description:l.NC("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:W(new v(57,"glyphMargin",!0,{description:l.NC("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:W(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[l.NC("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),l.NC("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),l.NC("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:l.NC("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:l.NC("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:l.NC("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:l.NC("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:l.NC("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:l.NC("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:l.NC("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:l.NC("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:l.NC("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:l.NC("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:l.NC("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,o;if(!e||"object"!==typeof e)return this.defaultValue;const r=e;return{multiple:x(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:x(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:x(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:x(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(s=r.multipleImplementations)&&void 0!==s?s:x(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=r.multipleReferences)&&void 0!==o?o:x(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:S.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:S.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:S.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:S.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:S.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:W(new v(59,"hideCursorInOverviewRuler",!1,{description:l.NC("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:W(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:l.NC("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:l.NC("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:l.NC("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:l.NC("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:l.NC("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:C.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:C.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:W(new v(61,"inDiffEditor",!1)),letterSpacing:W(new w(64,"letterSpacing",B.letterSpacing,(e=>w.clamp(e,-5,20)),{description:l.NC("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:W(new class extends u{constructor(){const e={enabled:N.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[N.Off,N.OnCode,N.On],default:e.enabled,enumDescriptions:[l.NC("editor.lightbulb.enabled.off","Disable the code action menu."),l.NC("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),l.NC("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:l.NC("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:x(e.enabled,this.defaultValue.enabled,[N.Off,N.OnCode,N.On])}}}),lineDecorationsWidth:W(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return C.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?C.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:W(new class extends w{constructor(){super(67,"lineHeight",B.lineHeight,(e=>w.clamp(e,0,150)),{markdownDescription:l.NC("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:W(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[l.NC("lineNumbers.off","Line numbers are not rendered."),l.NC("lineNumbers.on","Line numbers are rendered as absolute number."),l.NC("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),l.NC("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:l.NC("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:W(new C(69,"lineNumbersMinChars",5,1,300)),linkedEditing:W(new v(70,"linkedEditing",!1,{description:l.NC("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:W(new v(71,"links",!0,{description:l.NC("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:W(new L(72,"matchBrackets","always",["always","near","never"],{description:l.NC("matchBrackets","Highlight matching brackets.")})),minimap:W(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:l.NC("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:l.NC("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[l.NC("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),l.NC("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),l.NC("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:l.NC("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:l.NC("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:l.NC("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:l.NC("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:l.NC("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:l.NC("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:l.NC("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:l.NC("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:l.NC("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;if(!e||"object"!==typeof e)return this.defaultValue;const i=e;return{enabled:_(i.enabled,this.defaultValue.enabled),autohide:_(i.autohide,this.defaultValue.autohide),size:x(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:x(i.side,this.defaultValue.side,["right","left"]),showSlider:x(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(i.renderCharacters,this.defaultValue.renderCharacters),scale:C.clampedInt(i.scale,1,1,3),maxColumn:C.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(i.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(i.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:w.clamp(null!==(t=i.sectionHeaderFontSize)&&void 0!==t?t:this.defaultValue.sectionHeaderFontSize,4,32)}}}),mouseStyle:W(new L(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:W(new w(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:l.NC("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:W(new v(76,"mouseWheelZoom",!1,{markdownDescription:o.dz?l.NC("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):l.NC("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:W(new v(77,"multiCursorMergeOverlapping",!0,{description:l.NC("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:W(new k(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?o.dz?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[l.NC("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),l.NC("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:l.NC({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:W(new L(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[l.NC("multiCursorPaste.spread","Each cursor pastes a single line of the text."),l.NC("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:l.NC("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:W(new C(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:l.NC("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:W(new L(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[l.NC("occurrencesHighlight.off","Does not highlight occurrences."),l.NC("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),l.NC("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:l.NC("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:W(new v(82,"overviewRulerBorder",!0,{description:l.NC("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:W(new C(83,"overviewRulerLanes",3,0,3)),padding:W(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:l.NC("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:l.NC("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:C.clampedInt(t.top,0,0,1e3),bottom:C.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:W(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.NC("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:l.NC("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[l.NC("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),l.NC("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:x(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:W(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:l.NC("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:l.NC("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:W(new L(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[l.NC("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),l.NC("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:l.NC("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:W(new v(88,"definitionLinkOpensInPeek",!1,{description:l.NC("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:W(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[l.NC("on","Quick suggestions show inside the suggest widget"),l.NC("inline","Quick suggestions show as ghost text"),l.NC("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:l.NC("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:l.NC("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:l.NC("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:l.NC("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let o,r,a;return o="boolean"===typeof t?t?"on":"off":x(t,this.defaultValue.other,s),r="boolean"===typeof i?i?"on":"off":x(i,this.defaultValue.comments,s),a="boolean"===typeof n?n?"on":"off":x(n,this.defaultValue.strings,s),{other:o,comments:r,strings:a}}}),quickSuggestionsDelay:W(new C(90,"quickSuggestionsDelay",10,0,1073741824,{description:l.NC("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:W(new v(91,"readOnly",!1)),readOnlyMessage:W(new class extends u{constructor(){super(92,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:W(new v(93,"renameOnType",!1,{description:l.NC("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:l.NC("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:W(new v(94,"renderControlCharacters",!0,{description:l.NC("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:W(new L(95,"renderFinalNewline",o.IJ?"dimmed":"on",["off","on","dimmed"],{description:l.NC("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:W(new L(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",l.NC("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:l.NC("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:W(new v(97,"renderLineHighlightOnlyWhenFocus",!1,{description:l.NC("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:W(new L(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:W(new L(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",l.NC("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),l.NC("renderWhitespace.selection","Render whitespace characters only on selected text."),l.NC("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:l.NC("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:W(new C(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:W(new v(101,"roundedSelection",!0,{description:l.NC("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:W(new class extends u{constructor(){const e=[],t={type:"number",description:l.NC("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:l.NC("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:l.NC("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:C.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:C.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:W(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.NC("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),l.NC("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),l.NC("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:l.NC("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.NC("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),l.NC("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),l.NC("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:l.NC("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:l.NC("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:l.NC("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:l.NC("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:l.NC("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,i=C.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=C.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:C.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R(t.vertical,this.defaultValue.vertical),horizontal:R(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:C.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:C.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:W(new C(104,"scrollBeyondLastColumn",4,0,1073741824,{description:l.NC("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:W(new v(105,"scrollBeyondLastLine",!0,{description:l.NC("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:W(new v(106,"scrollPredominantAxis",!0,{description:l.NC("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:W(new v(107,"selectionClipboard",!0,{description:l.NC("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.IJ})),selectionHighlight:W(new v(108,"selectionHighlight",!0,{description:l.NC("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:W(new v(109,"selectOnLineNumbers",!0)),showFoldingControls:W(new L(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[l.NC("showFoldingControls.always","Always show the folding controls."),l.NC("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),l.NC("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:l.NC("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:W(new v(111,"showUnused",!0,{description:l.NC("showUnused","Controls fading out of unused code.")})),showDeprecated:W(new v(140,"showDeprecated",!0,{description:l.NC("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:W(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:l.NC("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[l.NC("editor.inlayHints.on","Inlay hints are enabled"),l.NC("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",o.dz?"Ctrl+Option":"Ctrl+Alt"),l.NC("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",o.dz?"Ctrl+Option":"Ctrl+Alt"),l.NC("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:l.NC("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:l.NC("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:l.NC("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:x(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:C.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:W(new L(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[l.NC("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),l.NC("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),l.NC("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),l.NC("snippetSuggestions.none","Do not show snippet suggestions.")],description:l.NC("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:W(new class extends u{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:l.NC("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:l.NC("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:W(new v(114,"smoothScrolling",!1,{description:l.NC("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:W(new C(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:W(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[l.NC("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),l.NC("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:l.NC("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:l.NC("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:l.NC("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:l.NC("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[l.NC("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),l.NC("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),l.NC("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),l.NC("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:l.NC("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:l.NC("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:l.NC("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:l.NC("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:l.NC("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:l.NC("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:l.NC("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:l.NC("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:x(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:x(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:x(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:W(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:l.NC("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.NC("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),l.NC("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),l.NC("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:l.NC("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:l.NC("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:l.NC("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:x(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:x(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:W(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:l.NC("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.NC("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),l.NC("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),l.NC("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:l.NC("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:l.NC("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:l.NC("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:x(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:_(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}),inlineCompletionsAccessibilityVerbose:W(new v(149,"inlineCompletionsAccessibilityVerbose",!1,{description:l.NC("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:W(new C(119,"suggestFontSize",0,0,1e3,{markdownDescription:l.NC("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:W(new C(120,"suggestLineHeight",0,0,1e3,{markdownDescription:l.NC("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:W(new v(121,"suggestOnTriggerCharacters",!0,{description:l.NC("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:W(new L(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[l.NC("suggestSelection.first","Always select the first suggestion."),l.NC("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),l.NC("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:l.NC("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:W(new L(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[l.NC("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.NC("tabCompletion.off","Disable tab completions."),l.NC("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.NC("tabCompletion","Enables tab completions.")})),tabIndex:W(new C(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:W(new class extends u{constructor(){const e={nonBasicASCII:O,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:O,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.nonBasicASCII,description:l.NC("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:l.NC("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:l.NC("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.includeComments,description:l.NC("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.includeStrings,description:l.NC("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:l.NC("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:l.NC("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(s.fS(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(s.fS(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new g(n.newValue,!0):n}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,O,[!0,!1,O]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,O,[!0,!1,O]),includeStrings:F(t.includeStrings,O,[!0,!1,O]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[n,s]of Object.entries(e))!0===s&&(i[n]=!0);return i}}),unusualLineTerminators:W(new L(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[l.NC("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),l.NC("unusualLineTerminators.off","Unusual line terminators are ignored."),l.NC("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:l.NC("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:W(new v(127,"useShadowDOM",!0)),useTabStops:W(new v(128,"useTabStops",!0,{description:l.NC("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:W(new L(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[l.NC("wordBreak.normal","Use the default line break rule."),l.NC("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:l.NC("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:W(new class extends u{constructor(){super(130,"wordSegmenterLocales",[],{anyOf:[{description:l.NC("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:l.NC("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const i=[];for(const n of e)if("string"===typeof n)try{Intl.Segmenter.supportedLocalesOf(n).length>0&&i.push(n)}catch(t){}return i}return this.defaultValue}}),wordSeparators:W(new S(131,"wordSeparators",a.vu,{description:l.NC("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:W(new L(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[l.NC("wordWrap.off","Lines will never wrap."),l.NC("wordWrap.on","Lines will wrap at the viewport width."),l.NC({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),l.NC({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:l.NC({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:W(new S(133,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:W(new S(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:W(new C(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:l.NC({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:W(new L(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:W(new L(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:W(new class extends m{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(74)?n.push("mouse-default"):"copy"===t.get(74)&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:W(new v(147,"defaultColorDecorators",!1,{markdownDescription:l.NC("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:W(new class extends m{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:W(new v(144,"tabFocusMode",!1,{markdownDescription:l.NC("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:W(new M),wrappingInfo:W(new class extends m{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:W(new class extends u{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[l.NC("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),l.NC("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),l.NC("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),l.NC("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:l.NC("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:W(new class extends u{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[l.NC("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),l.NC("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:l.NC("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return x(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},90582:(e,t,i)=>{"use strict";i.d(t,{C:()=>s});var n=i(39706);const s=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},13785:(e,t,i)=>{"use strict";i.d(t,{E4:()=>a,pR:()=>l});var n=i(90388),s=i(67364),o=i(90582);const r=n.dz?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const n=e.get(49),s=e.get(53),o=e.get(52),r=e.get(51),l=e.get(54),d=e.get(67),h=e.get(64);return a._create(n,s,o,r,l,d,h,t,i)}static _create(e,t,i,n,l,d,h,c,u){0===d?d=r*i:d<8&&(d*=i),(d=Math.round(d))<8&&(d=8);const g=1+(u?0:.1*o.C.getZoomLevel());if(i*=g,d*=g,l===s.Bo.TRANSLATE)if("normal"===t||"bold"===t)l=s.Bo.OFF;else{l=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:l,lineHeight:d,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=s.hL.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},47498:(e,t,i)=>{"use strict";i.d(t,{N:()=>s,q:()=>o});var n=i(47228);class s{constructor(e){const t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class o{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},32653:(e,t,i)=>{"use strict";i.d(t,{i:()=>s});var n=i(78701);class s{static _nextVisibleColumn(e,t,i){return 9===e?s.nextRenderTabStop(t,i):n.K7(e)||n.C8(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const s=Math.min(t-1,e.length),o=e.substring(0,s),r=new n.W1(o);let a=0;for(;!r.eol();){const e=n.ZH(o,s,r.offset);r.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const s=e.length,o=new n.W1(e);let r=0,a=1;for(;!o.eol();){const l=n.ZH(e,s,o.offset);o.nextGraphemeLength();const d=this._nextVisibleColumn(l,r,i),h=o.offset+1;if(d>=t){return d-t<t-r?h:a}r=d,a=h}return s+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},56154:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});var n=i(28928);class s{static insert(e,t){return{range:new n.e(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},12354:(e,t,i)=>{"use strict";i.d(t,{Bj:()=>M,CE:()=>j,DS:()=>Z,HV:()=>se,H_:()=>y,Jn:()=>X,Kh:()=>a,L7:()=>ne,Mm:()=>l,N8:()=>N,P0:()=>p,Qb:()=>ee,Re:()=>V,Tf:()=>C,To:()=>ie,UP:()=>U,Vs:()=>z,Xy:()=>k,YF:()=>J,cK:()=>D,dI:()=>m,e9:()=>x,eS:()=>W,e_:()=>R,f9:()=>oe,fY:()=>h,gS:()=>b,h1:()=>w,hw:()=>f,jD:()=>c,lK:()=>B,lS:()=>Q,ll:()=>T,m$:()=>Y,m1:()=>q,m3:()=>te,m9:()=>F,n0:()=>d,oV:()=>G,qe:()=>L,r0:()=>K,s2:()=>u,ts:()=>$,vP:()=>S,x_:()=>g,zJ:()=>H,zd:()=>E,zu:()=>O,zw:()=>A});var n=i(5887),s=i(63932),o=i(6009),r=i(46673);const a=(0,o.P6G)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,o.P6G)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.lRK},n.NC("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),d=((0,o.P6G)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},n.NC("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,o.P6G)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},n.NC("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),(0,o.P6G)("editor.symbolHighlightBackground",{dark:o.MUv,light:o.MUv,hcDark:null,hcLight:null},n.NC("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,o.P6G)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},n.NC("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),(0,o.P6G)("editorCursor.foreground",{dark:"#AEAFAD",light:s.Il.black,hcDark:s.Il.white,hcLight:"#0F4A85"},n.NC("caret","Color of the editor cursor."))),h=(0,o.P6G)("editorCursor.background",null,n.NC("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=(0,o.P6G)("editorMultiCursor.primary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},n.NC("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,o.P6G)("editorMultiCursor.primary.background",{dark:h,light:h,hcDark:h,hcLight:h},n.NC("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,o.P6G)("editorMultiCursor.secondary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},n.NC("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,o.P6G)("editorMultiCursor.secondary.background",{dark:h,light:h,hcDark:h,hcLight:h},n.NC("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,o.P6G)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},n.NC("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,o.P6G)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:s.Il.white,hcLight:"#292929"},n.NC("editorLineNumbers","Color of editor line numbers.")),_=(0,o.P6G)("editorIndentGuide.background",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorIndentGuides","Color of the editor indentation guides."),!1,n.NC("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,o.P6G)("editorIndentGuide.activeBackground",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,n.NC("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),b=(0,o.P6G)("editorIndentGuide.background1",{dark:_,light:_,hcDark:_,hcLight:_},n.NC("editorIndentGuides1","Color of the editor indentation guides (1).")),C=(0,o.P6G)("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides2","Color of the editor indentation guides (2).")),y=(0,o.P6G)("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides3","Color of the editor indentation guides (3).")),w=(0,o.P6G)("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides4","Color of the editor indentation guides (4).")),S=(0,o.P6G)("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides5","Color of the editor indentation guides (5).")),x=(0,o.P6G)("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides6","Color of the editor indentation guides (6).")),L=(0,o.P6G)("editorIndentGuide.activeBackground1",{dark:v,light:v,hcDark:v,hcLight:v},n.NC("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),k=(0,o.P6G)("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),D=(0,o.P6G)("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),N=(0,o.P6G)("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),E=(0,o.P6G)("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),T=(0,o.P6G)("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),I=(0,o.P6G)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.xL1,hcLight:o.xL1},n.NC("editorActiveLineNumber","Color of editor active line number"),!1,n.NC("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),M=((0,o.P6G)("editorLineNumber.activeForeground",{dark:I,light:I,hcDark:I,hcLight:I},n.NC("editorActiveLineNumber","Color of editor active line number")),(0,o.P6G)("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),A=((0,o.P6G)("editorRuler.foreground",{dark:"#5A5A5A",light:s.Il.lightgrey,hcDark:s.Il.white,hcLight:"#292929"},n.NC("editorRuler","Color of the editor rulers.")),(0,o.P6G)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},n.NC("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,o.P6G)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},n.NC("editorBracketMatchBackground","Background color behind matching brackets")),(0,o.P6G)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.lRK,hcLight:o.lRK},n.NC("editorBracketMatchBorder","Color for matching brackets boxes")),(0,o.P6G)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},n.NC("editorOverviewRulerBorder","Color of the overview ruler border."))),R=(0,o.P6G)("editorOverviewRuler.background",null,n.NC("editorOverviewRulerBackground","Background color of the editor overview ruler.")),O=((0,o.P6G)("editorGutter.background",{dark:o.cvW,light:o.cvW,hcDark:o.cvW,hcLight:o.cvW},n.NC("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,o.P6G)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:s.Il.fromHex("#fff").transparent(.8),hcLight:o.lRK},n.NC("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,o.P6G)("editorUnnecessaryCode.opacity",{dark:s.Il.fromHex("#000a"),light:s.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,o.P6G)("editorGhostText.border",{dark:null,light:null,hcDark:s.Il.fromHex("#fff").transparent(.8),hcLight:s.Il.fromHex("#292929").transparent(.8)},n.NC("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,o.P6G)("editorGhostText.foreground",{dark:s.Il.fromHex("#ffffff56"),light:s.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,o.P6G)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorGhostTextBackground","Background color of the ghost text in the editor.")),new s.Il(new s.VS(0,122,204,.6))),F=(0,o.P6G)("editorOverviewRuler.rangeHighlightForeground",{dark:P,light:P,hcDark:P,hcLight:P},n.NC("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),B=(0,o.P6G)("editorOverviewRuler.errorForeground",{dark:new s.Il(new s.VS(255,18,18,.7)),light:new s.Il(new s.VS(255,18,18,.7)),hcDark:new s.Il(new s.VS(255,50,50,1)),hcLight:"#B5200D"},n.NC("overviewRuleError","Overview ruler marker color for errors.")),V=(0,o.P6G)("editorOverviewRuler.warningForeground",{dark:o.uoC,light:o.uoC,hcDark:o.pW3,hcLight:o.pW3},n.NC("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,o.P6G)("editorOverviewRuler.infoForeground",{dark:o.c63,light:o.c63,hcDark:o.T83,hcLight:o.T83},n.NC("overviewRuleInfo","Overview ruler marker color for infos.")),H=(0,o.P6G)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},n.NC("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,o.P6G)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},n.NC("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),j=(0,o.P6G)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},n.NC("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),U=(0,o.P6G)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,o.P6G)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),q=(0,o.P6G)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),$=(0,o.P6G)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new s.Il(new s.VS(255,18,18,.8)),light:new s.Il(new s.VS(255,18,18,.8)),hcDark:new s.Il(new s.VS(255,50,50,1)),hcLight:""},n.NC("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),G=(0,o.P6G)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Y=(0,o.P6G)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),Z=(0,o.P6G)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Q=(0,o.P6G)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),X=(0,o.P6G)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),J=(0,o.P6G)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),ee=(0,o.P6G)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),te=(0,o.P6G)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),ie=(0,o.P6G)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,o.P6G)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),se=(0,o.P6G)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,o.P6G)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,o.P6G)("editorUnicodeHighlight.border",{dark:o.uoC,light:o.uoC,hcDark:o.uoC,hcLight:o.uoC},n.NC("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,o.P6G)("editorUnicodeHighlight.background",{dark:o.gpD,light:o.gpD,hcDark:o.gpD,hcLight:o.gpD},n.NC("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,r.Ic)(((e,t)=>{const i=e.getColor(o.cvW),n=e.getColor(a),s=n&&!n.isTransparent()?n:i;s&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${s}; }`)}))},47056:(e,t,i)=>{"use strict";function n(e){let t=0,i=0,n=0,s=0;for(let o=0,r=e.length;o<r;o++){const a=e.charCodeAt(o);13===a?(0===t&&(i=o),t++,o+1<r&&10===e.charCodeAt(o+1)?(s|=2,o++):s|=3,n=o+1):10===a&&(s|=1,0===t&&(i=o),t++,n=o+1)}return 0===t&&(i=e.length),[t,i,e.length-n,s]}i.d(t,{Q:()=>n})},42156:(e,t,i)=>{"use strict";i.d(t,{x:()=>o});var n=i(78701),s=i(32653);function o(e,t,i){let o=n.LC(e);return-1===o&&(o=e.length),function(e,t,i){let n=0;for(let r=0;r<e.length;r++)"\t"===e.charAt(r)?n=s.i.nextIndentTabStop(n,t):n++;let o="";if(!i){const e=Math.floor(n/t);n%=t;for(let t=0;t<e;t++)o+="\t"}for(let s=0;s<n;s++)o+=" ";return o}(e.substring(0,o),t,i)+e.substring(o)}},47638:(e,t,i)=>{"use strict";i.d(t,{i:()=>l,z:()=>a});var n=i(16015),s=i(93845),o=i(28928),r=i(91206);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new l(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new n.he("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let n=1;n<e.length;n++)t=Math.min(t,e[n].startLineNumber),i=Math.max(i,e[n].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new n.he(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new o.e(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new o.e(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new s.q(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,r.J_)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.Jw)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const n=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,n)}}contains(e){const t=(0,r.ti)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,r.ti)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,n=0,s=null;for(;i<this._normalizedRanges.length||n<e._normalizedRanges.length;){let o=null;if(i<this._normalizedRanges.length&&n<e._normalizedRanges.length){const t=this._normalizedRanges[i],s=e._normalizedRanges[n];t.startLineNumber<s.startLineNumber?(o=t,i++):(o=s,n++)}else i<this._normalizedRanges.length?(o=this._normalizedRanges[i],i++):(o=e._normalizedRanges[n],n++);null===s?s=o:s.endLineNumberExclusive>=o.startLineNumber?s=new a(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(t.push(s),s=o)}return null!==s&&t.push(s),new l(t)}subtractFrom(e){const t=(0,r.J_)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.Jw)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new l([e]);const n=[];let s=e.startLineNumber;for(let o=t;o<i;o++){const e=this._normalizedRanges[o];e.startLineNumber>s&&n.push(new a(s,e.startLineNumber)),s=e.endLineNumberExclusive}return s<e.endLineNumberExclusive&&n.push(new a(s,e.endLineNumberExclusive)),new l(n)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,n=0;for(;i<this._normalizedRanges.length&&n<e._normalizedRanges.length;){const s=this._normalizedRanges[i],o=e._normalizedRanges[n],r=s.intersect(o);r&&!r.isEmpty&&t.push(r),s.endLineNumberExclusive<o.endLineNumberExclusive?i++:n++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},93845:(e,t,i)=>{"use strict";i.d(t,{M:()=>o,q:()=>s});var n=i(16015);class s{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let n=i;for(;n<t.length&&t[n].start<=e.endExclusive;)n++;if(i===n)t.splice(i,0,e);else{const o=Math.min(e.start,t[i].start),r=Math.max(e.endExclusive,t[n-1].endExclusive);t.splice(i,n-i,new s(o,r))}}static tryCreate(e,t){if(!(e>t))return new s(e,t)}static ofLength(e){return new s(0,e)}static ofStartAndLength(e,t){return new s(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new n.he(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new s(this.start+e,this.endExclusive+e)}deltaStart(e){return new s(this.start+e,this.endExclusive)}deltaEnd(e){return new s(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new s(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new s(t,i)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new n.he(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new n.he(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}class o{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const n=Math.min(e.start,this._sortedRanges[t].start),o=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new s(n,o))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new o;for(const i of this._sortedRanges){const n=i.intersect(e);n&&t.addRange(n)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},74633:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return n.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,n=0|t.lineNumber;if(i===n){return(0|e.column)-(0|t.column)}return i-n}clone(){return new n(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new n(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},28928:(e,t,i)=>{"use strict";i.d(t,{e:()=>s});var n=i(74633);class s{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return s.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return s.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return s.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return s.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return s.plusRange(this,e)}static plusRange(e,t){let i,n,o,r;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,n=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,n=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,n=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new s(i,n,o,r)}intersectRanges(e){return s.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,h=t.endColumn;return i<a?(i=a,n=l):i===a&&(n=Math.max(n,l)),o>d?(o=d,r=h):o===d&&(r=Math.min(r,h)),i>o||i===o&&n>r?null:new s(i,n,o,r)}equalsRange(e){return s.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return s.getEndPosition(this)}static getEndPosition(e){return new n.L(e.endLineNumber,e.endColumn)}getStartPosition(){return s.getStartPosition(this)}static getStartPosition(e){return new n.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new s(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new s(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return s.collapseToStart(this)}static collapseToStart(e){return new s(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return s.collapseToEnd(this)}static collapseToEnd(e){return new s(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new s(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,n=0|t.startLineNumber;if(i===n){const i=0|e.startColumn,n=0|t.startColumn;if(i===n){const i=0|e.endLineNumber,n=0|t.endLineNumber;if(i===n){return(0|e.endColumn)-(0|t.endColumn)}return i-n}return i-n}return i-n}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},24854:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(74633),s=i(28928);class o extends s.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.L(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new o(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,n,s){return 0===s?new o(e,t,i,n):new o(i,n,e,t)}}},130:(e,t,i)=>{"use strict";i.d(t,{HT:()=>u,kH:()=>c,oe:()=>h});var n=i(78701),s=i(90388),o=i(9730);let r,a,l;function d(){return r||(r=new TextDecoder("UTF-16LE")),r}function h(){return l||(l=s.r()?d():(a||(a=new TextDecoder("UTF-16BE")),a)),l}function c(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let s=0;for(let r=0;r<i;r++){const i=o.mP(e,t);t+=2,n[s++]=String.fromCharCode(i)}return n.join("")}(e,t,i):d().decode(n)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.ZG(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},53687:(e,t,i)=>{"use strict";i.d(t,{b:()=>a,q:()=>r});var n=i(9730),s=i(130);function o(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${o(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${o(this.oldText)}")`:`(replace@${this.oldPosition} "${o(this.oldText)}" with "${o(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const s=t.length;n.T4(e,s,i),i+=4;for(let o=0;o<s;o++)n.oq(e,t.charCodeAt(o),i),i+=2;return i}static _readString(e,t){const i=n.Ag(e,t);return t+=4,(0,s.kH)(e,t,i)}writeSize(){return 8+r._writeStringSize(this.oldText)+r._writeStringSize(this.newText)}write(e,t){return n.T4(e,this.oldPosition,t),t+=4,n.T4(e,this.newPosition,t),t+=4,t=r._writeString(e,this.oldText,t),t=r._writeString(e,this.newText,t)}static read(e,t,i){const s=n.Ag(e,t);t+=4;const o=n.Ag(e,t);t+=4;const a=r._readString(e,t);t+=r._writeStringSize(a);const l=r._readString(e,t);return t+=r._writeStringSize(l),i.push(new r(s,a,o,l)),t}}function a(e,t){if(null===e||0===e.length)return t;return new l(e,t).compress()}class l{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),n=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(n),n=this._getCurr(++t);continue}if(null===n){this._acceptPrev(i),i=this._getPrev(++e);continue}if(n.oldEnd<=i.newPosition){this._acceptCurr(n),n=this._getCurr(++t);continue}if(i.newEnd<=n.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(n.oldPosition<i.newPosition){const[e,t]=l._splitCurr(n,i.newPosition-n.oldPosition);this._acceptCurr(e),n=t;continue}if(i.newPosition<n.oldPosition){const[e,t]=l._splitPrev(i,n.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let s,o;if(n.oldEnd===i.newEnd)s=i,o=n,i=this._getPrev(++e),n=this._getCurr(++t);else if(n.oldEnd<i.newEnd){const[e,r]=l._splitPrev(i,n.oldLength);s=e,o=n,i=r,n=this._getCurr(++t)}else{const[t,r]=l._splitCurr(n,i.newLength);s=i,o=t,i=this._getPrev(++e),n=r}this._result[this._resultLen++]=new r(s.oldPosition,s.oldText,o.newPosition,o.newText),this._prevDeltaOffset+=s.newLength-s.oldLength,this._currDeltaOffset+=o.newLength-o.oldLength}const s=l._merge(this._result);return l._removeNoOps(s)}_acceptCurr(e){this._result[this._resultLen++]=l._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=l._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new r(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new r(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),n=e.newText.substr(t);return[new r(e.oldPosition,e.oldText,e.newPosition,i),new r(e.oldEnd,"",e.newPosition+t,n)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),n=e.oldText.substr(t);return[new r(e.oldPosition,i,e.newPosition,e.newText),new r(e.oldPosition+t,n,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,n=e[0];for(let s=1;s<e.length;s++){const o=e[s];n.oldEnd===o.oldPosition?n=new r(n.oldPosition,n.oldText+o.oldText,n.newPosition,n.newText+o.newText):(t[i++]=n,n=o)}return t[i++]=n,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let n=0;n<e.length;n++){const s=e[n];s.oldText!==s.newText&&(t[i++]=s)}return t}}},44053:(e,t,i)=>{"use strict";i.d(t,{MS:()=>g,At:()=>c,PY:()=>h});var n=i(56702),s=i(16015),o=i(74633),r=i(93845),a=i(78757);class l{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new r.q(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.A(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var d=i(28928);class h{constructor(e){this.edits=e,(0,n.eZ)((()=>(0,n.DM)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new o.L(1,1);for(const s of this.edits){const n=s.range,o=n.getStartPosition(),r=n.getEndPosition(),a=u(i,o);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=s.text,i=r}const n=u(i,e.endPositionExclusive);return n.isEmpty()||(t+=e.getValueOfRange(n)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,n=0;for(const s of this.edits){const r=a.A.ofText(s.text),l=o.L.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===t?n:0)}),d=r.createRange(l);e.push(d),i=d.endLineNumber-s.range.endLineNumber,n=d.endColumn-s.range.endColumn,t=s.range.endLineNumber}return e}}class c{constructor(e,t){this.range=e,this.text=t}}function u(e,t){if(!e.isBeforeOrEqual(t))throw new s.he("start must be before end");return new d.e(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new o.L(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new l(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},78757:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(74633),s=i(28928);class o{static ofText(e){let t=0,i=0;for(const n of e)"\n"===n?(t++,i=0):i++;return new o(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}createRange(e){return 0===this.lineCount?new s.e(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new s.e(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new n.L(e.lineNumber,e.column+this.columnCount):new n.L(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}o.zero=new o(0,0)},47998:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});const n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},55412:(e,t,i)=>{"use strict";i.d(t,{u:()=>a});var n=i(38079),s=i(47498);class o extends s.N{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,n=e.length;i<n;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const n of this._getIntlSegmenterWordsOnLine(e)){if(n.index>t)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const r=new n.z6(10);function a(e,t){const i=`${e}/${t.join(",")}`;let n=r.get(i);return n||(n=new o(e,t),r.set(i,n)),n}},67331:(e,t,i)=>{"use strict";i.d(t,{Af:()=>r,eq:()=>a,t2:()=>d,vu:()=>o});var n=i(2706),s=i(64450);const o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="(-?\\d*\\.\\d\\w*)|([^";for(const i of o)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const l=new s.S;function d(e,t,i,s,o){if(t=a(t),o||(o=n.$.first(l)),i.length>o.maxLen){let n=e-o.maxLen/2;return n<0?n=0:s+=n,d(e,t,i=i.substring(n,e+o.maxLen/2),s,o)}const r=Date.now(),c=e-1-s;let u=-1,g=null;for(let n=1;!(Date.now()-r>=o.timeBudget);n++){const e=c-o.windowSize*n;t.lastIndex=Math.max(0,e);const s=h(t,i,c,u);if(!s&&g)break;if(g=s,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:s+1+g.index,endColumn:s+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,n){let s;for(;s=e.exec(t);){const t=s.index||0;if(t<=i&&e.lastIndex>=i)return s;if(n>0&&t>n)return null}return null}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},54256:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(32653);class s{static whitespaceVisibleColumn(e,t,i){const s=e.length;let o=0,r=-1,a=-1;for(let l=0;l<s;l++){if(l===t)return[r,a,o];o%i===0&&(r=l,a=o);switch(e.charCodeAt(l)){case 32:o+=1;break;case 9:o=n.i.nextRenderTabStop(o,i);break;default:return[-1,-1,-1]}}return t===s?[r,a,o]:[-1,-1,-1]}static atomicPosition(e,t,i,o){const r=e.length,[a,l,d]=s.whitespaceVisibleColumn(e,t,i);if(-1===d)return-1;let h;switch(o){case 0:h=!0;break;case 1:h=!1;break;case 2:if(d%i===0)return t;h=d%i<=i/2}if(h){if(-1===a)return-1;let t=l;for(let s=a;s<r;++s){if(t===l+i)return a;switch(e.charCodeAt(s)){case 32:t+=1;break;case 9:t=n.i.nextRenderTabStop(t,i);break;default:return-1}}return t===l+i?a:-1}const c=n.i.nextRenderTabStop(d,i);let u=d;for(let s=t;s<r;s++){if(u===c)return s;switch(e.charCodeAt(s)){case 32:u+=1;break;case 9:u=n.i.nextRenderTabStop(u,i);break;default:return-1}}return u===c?r:-1}}},1603:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(78701),s=i(2196),o=i(80646),r=i(32653),a=i(67663),l=i(28928),d=i(74633);class h{static deleteRight(e,t,i,n){const o=[];let r=3!==e;for(let d=0,h=n.length;d<h;d++){const e=n[d];let h=e;if(h.isEmpty()){const n=e.getPosition(),s=a.o.right(t,i,n);h=new l.e(s.lineNumber,s.column,n.lineNumber,n.column)}h.isEmpty()?o[d]=null:(h.startLineNumber!==h.endLineNumber&&(r=!0),o[d]=new s.T4(h,""))}return[r,o]}static isAutoClosingPairDelete(e,t,i,n,s,r,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let l=0,d=r.length;l<d;l++){const d=r[l],h=d.getPosition();if(!d.isEmpty())return!1;const c=s.getLineContent(h.lineNumber);if(h.column<2||h.column>=c.length+1)return!1;const u=c.charAt(h.column-2),g=n.get(u);if(!g)return!1;if((0,o.LN)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=c.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const n=[];for(let o=0,r=i.length;o<r;o++){const e=i[o].getPosition(),t=new l.e(e.lineNumber,e.column-1,e.lineNumber,e.column+1);n[o]=new s.T4(t,"")}return[!0,n]}static deleteLeft(e,t,i,n,o){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,n,o))return this._runAutoClosingPairDelete(t,i,n);const r=[];let a=2!==e;for(let l=0,d=n.length;l<d;l++){const e=h.getDeleteRange(n[l],i,t);e.isEmpty()?r[l]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),r[l]=new s.T4(e,""))}return[a,r]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const s=e.getPosition();if(i.useTabStops&&s.column>1){const e=t.getLineContent(s.lineNumber),o=n.LC(e),a=-1===o?e.length+1:o+1;if(s.column<=a){const e=i.visibleColumnFromColumn(t,s),n=r.i.prevIndentTabStop(e,i.indentSize),o=i.columnFromVisibleColumn(t,s.lineNumber,n);return new l.e(s.lineNumber,o,s.lineNumber,s.column)}}return l.e.fromPositions(h.getPositionAfterDeleteLeft(s,t),s)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.oH(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new d.L(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let r=null;i.sort(((e,t)=>d.L.compare(e.getStartPosition(),t.getEndPosition())));for(let o=0,a=i.length;o<a;o++){const a=i[o];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,d,h,c;e.lineNumber<t.getLineCount()?(i=e.lineNumber,d=1,h=e.lineNumber+1,c=1):e.lineNumber>1&&(null===r||void 0===r?void 0:r.endLineNumber)!==e.lineNumber?(i=e.lineNumber-1,d=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,d=1,h=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber));const u=new l.e(i,d,h,c);r=u,u.isEmpty()?n[o]=null:n[o]=new s.T4(u,"")}else n[o]=null;else n[o]=new s.T4(a,"")}return new o.Tp(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},93033:(e,t,i)=>{"use strict";i.d(t,{N:()=>n,P:()=>h});var n,s=i(47624),o=i(80646),r=i(67663),a=i(59571),l=i(74633),d=i(28928);class h{static addCursorDown(e,t,i){const n=[];let s=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];n[s++]=new o.Vi(l.modelState,l.viewState),n[s++]=i?o.Vi.fromModelState(r.o.translateDown(e.cursorConfig,e.model,l.modelState)):o.Vi.fromViewState(r.o.translateDown(e.cursorConfig,e,l.viewState))}return n}static addCursorUp(e,t,i){const n=[];let s=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];n[s++]=new o.Vi(l.modelState,l.viewState),n[s++]=i?o.Vi.fromModelState(r.o.translateUp(e.cursorConfig,e.model,l.modelState)):o.Vi.fromViewState(r.o.translateUp(e.cursorConfig,e,l.viewState))}return n}static moveToBeginningOfLine(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s];n[s]=this._moveToLineStart(e,o,i)}return n}static _moveToLineStart(e,t,i){const n=t.viewState.position.column,s=n===t.modelState.position.column,o=t.viewState.position.lineNumber,r=e.getLineFirstNonWhitespaceColumn(o);return s||n===r?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return o.Vi.fromViewState(r.o.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return o.Vi.fromModelState(r.o.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,n){const s=[];for(let o=0,r=t.length;o<r;o++){const r=t[o];s[o]=this._moveToLineEnd(e,r,i,n)}return s}static _moveToLineEnd(e,t,i,n){const s=t.viewState.position,o=e.getLineMaxColumn(s.lineNumber),r=s.column===o,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),d=o-s.column===l-a.column;return r||d?this._moveToLineEndByModel(e,t,i,n):this._moveToLineEndByView(e,t,i,n)}static _moveToLineEndByView(e,t,i,n){return o.Vi.fromViewState(r.o.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,n))}static _moveToLineEndByModel(e,t,i,n){return o.Vi.fromModelState(r.o.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,n))}static expandLineSelection(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n],r=s.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,c=s.modelState.selection.endLineNumber;c===a?h=e.model.getLineMaxColumn(a):(c++,h=1),i[n]=o.Vi.fromModelState(new o.rS(new d.e(r,1,r,1),0,0,new l.L(c,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];n[s]=o.Vi.fromModelState(r.o.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return n}static moveToEndOfBuffer(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];n[s]=o.Vi.fromModelState(r.o.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return n}static selectAll(e,t){const i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return o.Vi.fromModelState(new o.rS(new d.e(1,1,1,1),0,0,new l.L(i,n),0))}static line(e,t,i,n,s){const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new l.L(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);if(!i){const t=e.model.getLineCount();let i=r.lineNumber+1,n=1;return i>t&&(i=t,n=e.model.getLineMaxColumn(i)),o.Vi.fromModelState(new o.rS(new d.e(r.lineNumber,1,i,n),2,0,new l.L(i,n),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<h)return o.Vi.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(r.lineNumber>h){const i=e.getLineCount();let n=a.lineNumber+1,s=1;return n>i&&(n=i,s=e.getLineMaxColumn(n)),o.Vi.fromViewState(t.viewState.move(!0,n,s,0))}{const e=t.modelState.selectionStart.getEndPosition();return o.Vi.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const s=e.model.validatePosition(n);return o.Vi.fromModelState(a.w.word(e.cursorConfig,e.model,t.modelState,i,s))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new o.Vi(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return o.Vi.fromViewState(new o.rS(new d.e(i,n,i,n),0,0,new l.L(i,n),0))}static moveTo(e,t,i,n,s){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,s)}const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new l.L(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return o.Vi.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,s,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,s);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,s);case 2:return 2===a?this._moveUpByViewLines(e,t,n,s):this._moveUpByModelLines(e,t,n,s);case 3:return 2===a?this._moveDownByViewLines(e,t,n,s):this._moveDownByModelLines(e,t,n,s);case 4:return 2===a?t.map((t=>o.Vi.fromViewState(r.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>o.Vi.fromModelState(r.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>o.Vi.fromViewState(r.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>o.Vi.fromModelState(r.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,s){const o=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,s),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,s),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 14:{const i=[];for(let s=0,r=t.length;s<r;s++){const r=t[s];i[s]=this.findPositionInViewportIfOutside(e,r,o,n)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,n){const s=t.viewState.position.lineNumber;if(i.startLineNumber<=s&&s<=i.endLineNumber-1)return new o.Vi(t.modelState,t.viewState);{let a;a=s>i.endLineNumber-1?i.endLineNumber-1:s<i.startLineNumber?i.startLineNumber:s;const l=r.o.vertical(e.cursorConfig,e,s,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return o.Vi.fromViewState(t.viewState.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.min(t.endLineNumber,n+i-1)}static _lastLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.max(n,t.endLineNumber-i+1)}static _moveLeft(e,t,i,n){return t.map((t=>o.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s],l=a.viewState.position.lineNumber,d=Math.round(e.getLineLength(l)/2);n[s]=o.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,a.viewState,i,d))}return n}static _moveRight(e,t,i,n){return t.map((t=>o.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s],l=a.viewState.position.lineNumber,d=Math.round(e.getLineLength(l)/2);n[s]=o.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,a.viewState,i,d))}return n}static _moveDownByViewLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromViewState(r.o.moveDown(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveDownByModelLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromModelState(r.o.moveDown(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveUpByViewLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromViewState(r.o.moveUp(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveUpByModelLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromModelState(r.o.moveUp(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveToViewPosition(e,t,i,n,s){return o.Vi.fromViewState(t.viewState.move(i,n,s,0))}static _moveToModelPosition(e,t,i,n,s){return o.Vi.fromModelState(t.modelState.move(i,n,s,0))}static _moveToViewMinColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineMinColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewCenterColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(r)+e.getLineMinColumn(r))/2);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewMaxColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineMaxColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewLastNonWhitespaceColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!s.Kn(e))return!1;const t=e;return!!s.HD(t.to)&&(!(!s.o8(t.select)&&!s.jn(t.select))&&(!(!s.o8(t.by)&&!s.HD(t.by))&&!(!s.o8(t.value)&&!s.hj(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let n=0;switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Character:n=3;break;case e.RawUnit.HalfLine:n=4}return{direction:i,unit:n,select:!!t.select,value:t.value||1}}}(n||(n={}))},67663:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var n=i(78701),s=i(32653),o=i(74633),r=i(28928),a=i(54256),l=i(80646);class d{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-n.HO(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new o.L(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),s=e.getLineContent(t.lineNumber),r=a.l.atomicPosition(s,t.column-1,i,0);if(-1!==r&&r+1>=n)return new o.L(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new d(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,s){let o,r;if(i.hasSelection()&&!n)o=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(s-1)),a=t.normalizePosition(h.clipPositionColumn(n,t),0),l=h.left(e,t,a);o=l.lineNumber,r=l.column}return i.move(n,o,r,0)}static clipPositionColumn(e,t){return new o.L(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=n.vH(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new o.L(t,i)}static rightPositionAtomicSoftTabs(e,t,i,n,s){if(i<e.getLineIndentColumn(t)){const s=e.getLineContent(t),r=a.l.atomicPosition(s,i-1,n,1);if(-1!==r)return new o.L(t,r+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const n=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new d(n.lineNumber,n.column,0)}static moveRight(e,t,i,n,s){let o,r;if(i.hasSelection()&&!n)o=i.selection.endLineNumber,r=i.selection.endColumn;else{const n=i.position.delta(void 0,s-1),a=t.normalizePosition(h.clipPositionColumn(n,t),1),l=h.right(e,t,a);o=l.lineNumber,r=l.column}return i.move(n,o,r,0)}static vertical(e,t,i,n,r,a,l,h){const c=s.i.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize)+r,u=t.getLineCount(),g=1===i&&1===n,p=i===u&&n===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,n=l?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),n)):i>u?(i=u,n=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,c),r=m?0:c-s.i.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==h){const e=new o.L(i,n),s=t.normalizePosition(e,h);r+=n-s.column,i=s.lineNumber,n=s.column}return new d(i,n,r)}static down(e,t,i,n,s,o,r){return this.vertical(e,t,i,n,s,i+o,r,4)}static moveDown(e,t,i,n,s){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);let l,d=0;do{l=h.down(e,t,r+d,a,i.leftoverVisibleColumns,s,!0);if(t.normalizePosition(new o.L(l.lineNumber,l.column),2).lineNumber>r)break}while(d++<10&&r+d<t.getLineCount());return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const n=i.selection,s=h.down(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.rS(new r.e(s.lineNumber,s.column,s.lineNumber,s.column),0,s.leftoverVisibleColumns,new o.L(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,n,s,o,r){return this.vertical(e,t,i,n,s,i-o,r,3)}static moveUp(e,t,i,n,s){let o,r;i.hasSelection()&&!n?(o=i.selection.startLineNumber,r=i.selection.startColumn):(o=i.position.lineNumber,r=i.position.column);const a=h.up(e,t,o,r,i.leftoverVisibleColumns,s,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const n=i.selection,s=h.up(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.rS(new r.e(s.lineNumber,s.column,s.lineNumber,s.column),0,s.leftoverVisibleColumns,new o.L(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let s=i.position.lineNumber;for(;s>1&&this._isBlankLine(t,s);)s--;for(;s>1&&!this._isBlankLine(t,s);)s--;return i.move(n,s,t.getLineMinColumn(s),0)}static moveToNextBlankLine(e,t,i,n){const s=t.getLineCount();let o=i.position.lineNumber;for(;o<s&&this._isBlankLine(t,o);)o++;for(;o<s&&!this._isBlankLine(t,o);)o++;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToBeginningOfLine(e,t,i,n){const s=i.position.lineNumber,o=t.getLineMinColumn(s),r=t.getLineFirstNonWhitespaceColumn(s)||o;let a;return a=i.position.column===r?o:r,i.move(n,s,a,0)}static moveToEndOfLine(e,t,i,n,s){const o=i.position.lineNumber,r=t.getLineMaxColumn(o);return i.move(n,o,r,s?1073741824-r:0)}static moveToBeginningOfBuffer(e,t,i,n){return i.move(n,1,1,0)}static moveToEndOfBuffer(e,t,i,n){const s=t.getLineCount(),o=t.getLineMaxColumn(s);return i.move(n,s,o,0)}}},69922:(e,t,i)=>{"use strict";i.d(t,{Nu:()=>y,u6:()=>b,g_:()=>C});var n=i(16015),s=i(78701),o=i(2196),r=i(80869),a=i(28928),l=i(24854);class d{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.e(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),n=i[0].range,s=i[1].range;return new l.Y(n.endLineNumber,n.endColumn,s.endLineNumber,s.endColumn-this._charAfterSelection.length)}}class h{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new l.Y(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}var c=i(80646),u=i(55412),g=i(74633),p=i(39260),m=i(5580),f=i(35734),_=i(62553),v=i(37036);class b{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=new r.U(i[s],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=new r.U(i[s],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.U.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.U.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){const s=[];for(let r=0,a=i.length;r<a;r++)s[r]=new o.T4(i[r],n[r]);return new c.Tp(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,s){const r=[];for(let l=0,d=i.length;l<d;l++){const e=i[l],t=e.getPosition();if(s&&!e.isEmpty()&&(s=!1),s&&n.indexOf("\n")!==n.length-1&&(s=!1),s){const i=new a.e(t.lineNumber,1,t.lineNumber,1);r[l]=new o.hP(i,n,e,!0)}else r[l]=new o.T4(e,n)}return new c.Tp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,o){if(n)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));const e=s.uq(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,s,o){const r=this._distributePasteToCursors(e,i,n,s,o);return r?(i=i.sort(a.e.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,s)}static _goodIndentForLine(e,t,i){let n=null,o="";const r=(0,_.r7)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,o=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(s.ow(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),l=(0,v.A)(e.autoIndent,t,new a.e(n,r,n,r),e.languageConfigurationService);l&&(o=l.indentation+l.appendText)}return n&&(n===p.wU.Indent&&(o=b.shiftIndent(e,o)),n===p.wU.Outdent&&(o=b.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,n){let s="";const r=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,r),n=e.indentSize,o=n-i%n;for(let e=0;e<o;e++)s+=" "}else s="\t";return new o.T4(i,s,n)}static tab(e,t,i){const n=[];for(let s=0,l=i.length;s<l;s++){const l=i[s];if(l.isEmpty()){const i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||"\t";const d=e.normalizeIndentation(r);if(!i.startsWith(d)){n[s]=new o.T4(new a.e(l.startLineNumber,1,l.startLineNumber,i.length+1),d,!0);continue}}n[s]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){const i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[s]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[s]=new r.U(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,s,o,r,a){const l=n.map((e=>this._compositionType(i,e,s,o,r,a)));return new c.Tp(4,l,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,s,r){if(!t.isEmpty())return null;const l=t.getPosition(),d=Math.max(1,l.column-n),h=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+s),c=new a.e(l.lineNumber,d,l.lineNumber,h);return e.getValueInRange(c)===i&&0===r?null:new o.Uo(c,i,0,r)}static _typeCommand(e,t,i){return i?new o.Sj(e,t,!0):new o.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return b._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){const o=t.getLineContent(n.startLineNumber),r=s.V8(o).substring(0,n.startColumn-1);return b._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}const r=(0,v.A)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===p.wU.None)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.wU.Indent)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.wU.IndentOutdent){const t=e.normalizeIndentation(r.indentation),s=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+s+"\n"+t;return i?new o.Sj(n,a,!0):new o.Uo(n,a,-1,s.length-t.length,!0)}if(r.indentAction===p.wU.Outdent){const t=b.unshiftIndent(e,r.indentation);return b._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}const a=t.getLineContent(n.startLineNumber),l=s.V8(a).substring(0,n.startColumn-1);if(e.autoIndent>=4){const r=(0,_.UF)(e.autoIndent,t,n,{unshiftIndent:t=>b.unshiftIndent(e,t),shiftIndent:t=>b.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let a=e.visibleColumnFromColumn(t,n.getEndPosition());const l=n.endColumn,d=t.getLineContent(n.endLineNumber),h=s.LC(d);if(n=h>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,h+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new o.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new o.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return b._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,s=i.length;n<s;n++)if(!t.tokenization.isCheapToTokenize(i[n].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){const s=(0,m.u0)(t,i.startLineNumber,i.startColumn),o=(0,_.$9)(e.autoIndent,t,i,n,{shiftIndent:t=>b.shiftIndent(e,t),unshiftIndent:t=>b.unshiftIndent(e,t)},e.languageConfigurationService);if(null===o)return null;if(o!==e.normalizeIndentation(s)){const s=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===s?b._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+n,!1):b._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+t.getLineContent(i.startLineNumber).substring(s-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let o=0,r=i.length;o<r;o++){const r=i[o];if(!r.isEmpty())return!1;const a=r.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==s)return!1;const d=(0,c.LN)(s);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&d)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){const i=n[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,s){const r=[];for(let l=0,d=n.length;l<d;l++){const e=n[l].getPosition(),t=new a.e(e.lineNumber,e.column,e.lineNumber,e.column+1);r[l]=new o.T4(t,s)}return new c.Tp(4,r,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],s=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],o=n.some((e=>t.startsWith(e.open))),r=s.some((e=>t.startsWith(e.close)));return!o&&r}static _findAutoClosingPairOpen(e,t,i,n){const s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let o=null;for(const r of s)if(null===o||r.open.length>o.open.length){let e=!0;for(const s of i){if(t.getValueInRange(new a.e(s.lineNumber,s.column-r.open.length+1,s.lineNumber,s.column))+n!==r.open){e=!1;break}}e&&(o=r)}return o}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let s=null;for(const o of n)o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!s||o.open.length>s.open.length)&&(s=o);return s}static _getAutoClosingPairClose(e,t,i,n,s){for(const c of i)if(!c.isEmpty())return null;const o=i.map((e=>{const t=e.getPosition();return s?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),r=this._findAutoClosingPairOpen(e,t,o.map((e=>new g.L(e.lineNumber,e.beforeColumn))),n);if(!r)return null;let a,l;if((0,c.LN)(n))a=e.autoClosingQuotes,l=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&r.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,l=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,l=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const d=this._findContainedAutoClosingPair(e,r),h=d?d.close:"";let p=!0;for(const c of o){const{lineNumber:i,beforeColumn:s,afterColumn:o}=c,d=t.getLineContent(i),g=d.substring(0,s-1),m=d.substring(o-1);if(m.startsWith(h)||(p=!1),m.length>0){const t=m.charAt(0);if(!b._isBeforeClosingBrace(e,m)&&!l(t))return null}if(1===r.open.length&&("'"===n||'"'===n)&&"always"!==a){const t=(0,u.u)(e.wordSeparators,[]);if(g.length>0){const e=g.charCodeAt(g.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,f.wH)(_,s-1);if(!r.shouldAutoClose(v,s-v.firstCharOffset))return null;const C=r.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,s,C);if(!r.isOK(e))return null}}return p?r.close.substring(0,r.close.length-h.length):r.close}static _runAutoClosingOpenCharType(e,t,i,n,s,o,r){const a=[];for(let l=0,d=n.length;l<d;l++){const e=n[l];a[l]=new C(e,s,!o,r)}return new c.Tp(4,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,c.LN)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!b._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;const s=(0,c.LN)(n);for(const o of i){if(o.isEmpty())return!1;let e=!0;for(let i=o.startLineNumber;i<=o.endLineNumber;i++){const n=t.getLineContent(i),s=i===o.startLineNumber?o.startColumn-1:0,r=i===o.endLineNumber?o.endColumn-1:n.length,a=n.substring(s,r);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(s&&o.startLineNumber===o.endLineNumber&&o.startColumn+1===o.endColumn){const e=t.getValueInRange(o);if((0,c.LN)(e))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,s){const o=[];for(let r=0,a=n.length;r<a;r++){const e=n[r],i=t.surroundingPairs[s];o[r]=new d(e,s,i)}return new c.Tp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,r,l){if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;const d=r.getPosition();i.tokenization.forceTokenization(d.lineNumber);const h=i.tokenization.getLineTokens(d.lineNumber);let u;try{u=t.onElectricCharacter(l,h,d.column)}catch(g){return(0,n.dL)(g),null}if(!u)return null;if(u.matchOpenBracket){const n=(h.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:d.lineNumber,column:n},500);if(r){if(r.startLineNumber===d.lineNumber)return null;const n=i.getLineContent(r.startLineNumber),h=s.V8(n),u=t.normalizeIndentation(h),g=i.getLineContent(d.lineNumber),p=i.getLineFirstNonWhitespaceColumn(d.lineNumber)||d.column,m=u+g.substring(p-1,d.column-1)+l,f=new a.e(d.lineNumber,1,d.lineNumber,d.column),_=new o.T4(f,m);return new c.Tp(w(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,s,r){if(!n)return null;let l=null;for(const o of n)if(null===l)l=o.insertedText;else if(l!==o.insertedText)return null;if(!l||1!==l.length)return null;const d=l;let u=!1;for(const o of n)if(0!==o.deletedText.length){u=!0;break}if(u){if(!b._shouldSurroundChar(t,d)||!t.surroundingPairs.hasOwnProperty(d))return null;const e=(0,c.LN)(d);for(const t of n){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,c.LN)(t.deletedText))return null}const i=[];for(const t of s){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==n.length)return null;const o=[];for(let s=0,r=i.length;s<r;s++)o.push(new h(i[s],n[s].deletedText,t.surroundingPairs[d]));return new c.Tp(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,s,r,d)){const e=s.map((e=>new o.T4(new a.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const g=this._getAutoClosingPairClose(t,i,s,d,!0);return null!==g?this._runAutoClosingOpenCharType(e,t,i,s,d,!0,g):null}static typeWithInterceptors(e,t,i,n,s,r,a){if(!e&&"\n"===a){const e=[];for(let t=0,o=s.length;t<o;t++)e[t]=b._enter(i,n,!1,s[t]);return new c.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,s)){const e=[];let t=!1;for(let o=0,r=s.length;o<r;o++)if(e[o]=this._runAutoIndentType(i,n,s[o],a),!e[o]){t=!0;break}if(!t)return new c.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,s,r,a))return this._runAutoClosingOvertype(t,i,n,s,a);if(!e){const e=this._getAutoClosingPairClose(i,n,s,a,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,s,a,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,s,a))return this._runSurroundSelectionType(t,i,n,s,a);if(!e&&this._isTypeInterceptorElectricChar(i,n,s)){const e=this._typeInterceptorElectricChar(t,i,n,s[0],a);if(e)return e}const l=[];for(let h=0,c=s.length;h<c;h++)l[h]=new o.T4(s[h],a);const d=w(a,t);return new c.Tp(d,l,{shouldPushStackElementBefore:S(t,d),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,s){const r=[];for(let l=0,d=n.length;l<d;l++)r[l]=new o.T4(n[l],s);const a=w(s,e);return new c.Tp(a,r,{shouldPushStackElementBefore:S(e,a),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,r=i.length;s<r;s++){let r=i[s].positionLineNumber;if(1===r)n[s]=new o.Sj(new a.e(1,1,1,1),"\n");else{r--;const i=t.getLineMaxColumn(r);n[s]=this._enter(e,t,!1,new a.e(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,o=i.length;s<o;s++){const o=i[s].positionLineNumber,r=t.getLineMaxColumn(o);n[s]=this._enter(e,t,!1,new a.e(o,r,o,r))}return n}static lineBreakInsert(e,t,i){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=this._enter(e,t,!0,i[s]);return n}}class C extends o.Uo{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.e(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new a.e(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class y{constructor(e,t,i,n,s,o){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=s,this.insertedSelectionEnd=o}}function w(e,t){return" "===e?5===t||6===t?6:5:4}function S(e,t){return!(!L(e)||L(t))||5!==e&&x(e)!==x(t)}function x(e){return 6===e||5===e?"space":e}function L(e){return 4===e||5===e||6===e}},59571:(e,t,i)=>{"use strict";i.d(t,{L:()=>h,w:()=>d});var n=i(78701),s=i(80646),o=i(1603),r=i(55412),a=i(74633),l=i(28928);class d{static _createWord(e,t,i,n,s){return{start:n,end:s,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;const s=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let o=i.column-2;o>=0;o--){const i=e.charCodeAt(o),r=t.get(i);if(s&&o===s.index)return this._createIntlWord(s,r);if(0===r){if(2===n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const s=t.findNextIntlWordAtOrAfterOffset(e,n),o=e.length;for(let r=n;r<o;r++){const n=e.charCodeAt(r),o=t.get(n);if(s&&r===s.index+s.segment.length)return r;if(1===o)return r;if(1===i&&2===o)return r;if(2===i&&0===o)return r}return o}static _findNextWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(n,e,i)}static _doFindNextWordOnLine(e,t,i){let n=0;const s=e.length,o=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let r=i.column-1;r<s;r++){const i=e.charCodeAt(r),s=t.get(i);if(o&&r===o.index)return this._createIntlWord(o,s);if(0===s){if(2===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r);n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r);n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r)}return 0!==n?this._createWord(e,n,1,this._findStartOfWord(e,t,n,s-1),s):null}static _findStartOfWord(e,t,i,n){const s=t.findPrevIntlWordBeforeOrAtOffset(e,n);for(let o=n;o>=0;o--){const n=e.charCodeAt(o),r=t.get(n);if(s&&o===s.index)return o;if(1===r)return o+1;if(1===i&&2===r)return o+1;if(2===i&&0===r)return o+1}return 0}static moveWordLeft(e,t,i,n){let s=i.lineNumber,o=i.column;1===o&&s>1&&(s-=1,o=t.getLineMaxColumn(s));let r=d._findPreviousWordOnLine(e,t,new a.L(s,o));if(0===n)return new a.L(s,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start===1&&0===r.nextCharClass&&(r=d._findPreviousWordOnLine(e,t,new a.L(s,r.start+1))),new a.L(s,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=d._findPreviousWordOnLine(e,t,new a.L(s,r.start+1));return new a.L(s,r?r.start+1:1)}return r&&o<=r.end+1&&(r=d._findPreviousWordOnLine(e,t,new a.L(s,r.start+1))),new a.L(s,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.L(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const e=o.charCodeAt(r-2),t=o.charCodeAt(r-1);if(95===e&&95!==t)return new a.L(i,r);if(45===e&&45!==t)return new a.L(i,r);if((n.mK(e)||n.T5(e))&&n.df(t))return new a.L(i,r);if(n.df(e)&&n.df(t)&&r+1<s){const e=o.charCodeAt(r);if(n.mK(e)||n.T5(e))return new a.L(i,r)}}return new a.L(i,1)}static moveWordRight(e,t,i,n){let s=i.lineNumber,o=i.column,r=!1;o===t.getLineMaxColumn(s)&&s<t.getLineCount()&&(r=!0,s+=1,o=1);let l=d._findNextWordOnLine(e,t,new a.L(s,o));if(2===n)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new a.L(s,l.end+1))),o=l?l.end+1:t.getLineMaxColumn(s);else if(3===n){for(r&&(o=0);l&&(2===l.wordType||l.start+1<=o);)l=d._findNextWordOnLine(e,t,new a.L(s,l.end+1));o=l?l.start+1:t.getLineMaxColumn(s)}else l&&!r&&o>=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.L(s,l.end+1))),o=l?l.start+1:t.getLineMaxColumn(s);return new a.L(s,o)}static _moveWordPartRight(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(t.column===s)return i<e.getLineCount()?new a.L(i+1,1):t;const o=e.getLineContent(i);for(let r=t.column+1;r<s;r++){const e=o.charCodeAt(r-2),t=o.charCodeAt(r-1);if(95!==e&&95===t)return new a.L(i,r);if(45!==e&&45===t)return new a.L(i,r);if((n.mK(e)||n.T5(e))&&n.df(t))return new a.L(i,r);if(n.df(e)&&n.df(t)&&r+1<s){const e=o.charCodeAt(r);if(n.mK(e)||n.T5(e))return new a.L(i,r)}}return new a.L(i,s)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-2,o=n.ow(i,s);return o+1<s?new l.e(t.lineNumber,o+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,n=e.model,s=e.selection,r=e.whitespaceHeuristics;if(!s.isEmpty())return s;if(o.A.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new l.e(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.L(s.positionLineNumber,s.positionColumn);let c=h.lineNumber,u=h.column;if(1===c&&1===u)return null;if(r){const e=this._deleteWordLeftWhitespace(n,h);if(e)return e}let g=d._findPreviousWordOnLine(i,n,h);return 0===t?g?u=g.start+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c)):(g&&u<=g.end+1&&(g=d._findPreviousWordOnLine(i,n,new a.L(c,g.start+1))),g?u=g.end+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c))),new l.e(c,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.L(i.positionLineNumber,i.positionColumn),s=this._deleteInsideWordWhitespace(t,n);return s||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let s=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,s))return null;let o=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,o))return null;for(;s>0&&this._charAtIsWhitespace(i,s-1);)s--;for(;o+1<n&&this._charAtIsWhitespace(i,o+1);)o++;return new l.e(t.lineNumber,s+1,t.lineNumber,o+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const n=t.getLineContent(i.lineNumber),s=n.length;if(0===s)return i.lineNumber>1?new l.e(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.e(i.lineNumber,1,i.lineNumber+1,1):new l.e(i.lineNumber,1,i.lineNumber,1);const o=e=>e.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.e(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<s&&this._charAtIsWhitespace(n,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},h=d._findPreviousWordOnLine(e,t,i);if(h&&o(h))return a(h);const c=d._findNextWordOnLine(e,t,i);return c&&o(c)?a(c):h&&c?r(h.end+1,c.start+1):h?r(h.start+1,h.end+1):c?r(c.start+1,c.end+1):r(1,s+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartLeft(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n<i;n++){const t=e.charAt(n);if(" "!==t&&"\t"!==t)return n}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-1,s=this._findFirstNonWhitespaceChar(i,n);return n+1<s?new l.e(t.lineNumber,t.column,t.lineNumber,s+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,n=e.model,s=e.selection,o=e.whitespaceHeuristics;if(!s.isEmpty())return s;const r=new a.L(s.positionLineNumber,s.positionColumn);let h=r.lineNumber,c=r.column;const u=n.getLineCount(),g=n.getLineMaxColumn(h);if(h===u&&c===g)return null;if(o){const e=this._deleteWordRightWhitespace(n,r);if(e)return e}let p=d._findNextWordOnLine(i,n,r);return 2===t?p?c=p.end+1:c<g||h===u?c=g:(h++,p=d._findNextWordOnLine(i,n,new a.L(h,1)),c=p?p.start+1:n.getLineMaxColumn(h)):(p&&c>=p.start+1&&(p=d._findNextWordOnLine(i,n,new a.L(h,p.end+1))),p?c=p.start+1:c<g||h===u?c=g:(h++,p=d._findNextWordOnLine(i,n,new a.L(h,1)),c=p?p.start+1:n.getLineMaxColumn(h))),new l.e(h,c,r.lineNumber,r.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartRight(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _createWordAtPosition(e,t,i){const n=new l.e(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(n),startColumn:n.startColumn,endColumn:n.endColumn}}static getWordAtPosition(e,t,i,n){const s=(0,r.u)(t,i),o=d._findPreviousWordOnLine(s,e,n);if(o&&1===o.wordType&&o.start<=n.column-1&&n.column-1<=o.end)return d._createWordAtPosition(e,n.lineNumber,o);const a=d._findNextWordOnLine(s,e,n);return a&&1===a.wordType&&a.start<=n.column-1&&n.column-1<=a.end?d._createWordAtPosition(e,n.lineNumber,a):null}static word(e,t,i,n,o){const h=(0,r.u)(e.wordSeparators,e.wordSegmenterLocales),c=d._findPreviousWordOnLine(h,t,o),u=d._findNextWordOnLine(h,t,o);if(!n){let e,i;return c&&1===c.wordType&&c.start<=o.column-1&&o.column-1<=c.end?(e=c.start+1,i=c.end+1):u&&1===u.wordType&&u.start<=o.column-1&&o.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=c?c.end+1:1,i=u?u.start+1:t.getLineMaxColumn(o.lineNumber)),new s.rS(new l.e(o.lineNumber,e,o.lineNumber,i),1,0,new a.L(o.lineNumber,i),0)}let g,p;c&&1===c.wordType&&c.start<o.column-1&&o.column-1<c.end?(g=c.start+1,p=c.end+1):u&&1===u.wordType&&u.start<o.column-1&&o.column-1<u.end?(g=u.start+1,p=u.end+1):(g=o.column,p=o.column);const m=o.lineNumber;let f;if(i.selectionStart.containsPosition(o))f=i.selectionStart.endColumn;else if(o.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.L(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.L(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends d{static deleteWordPartLeft(e){const t=c([d.deleteWordLeft(e,0),d.deleteWordLeft(e,2),d._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.e.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=c([d.deleteWordRight(e,0),d.deleteWordRight(e,2),d._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.e.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){const n=c([d.moveWordLeft(e,t,i,0),d.moveWordLeft(e,t,i,2),d._moveWordPartLeft(t,i)]);return n.sort(a.L.compare),n[2]}static moveWordPartRight(e,t,i){const n=c([d.moveWordRight(e,t,i,0),d.moveWordRight(e,t,i,2),d._moveWordPartRight(t,i)]);return n.sort(a.L.compare),n[0]}}function c(e){return e.filter((e=>Boolean(e)))}},80646:(e,t,i)=>{"use strict";i.d(t,{LM:()=>u,LN:()=>v,Tp:()=>_,Vi:()=>g,rS:()=>f});var n=i(74633),s=i(28928),o=i(24854),r=i(35734),a=i(32653),l=i(42156);const d=()=>!0,h=()=>!1,c=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(145)||e.hasChanged(131)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(128)||e.hasChanged(50)||e.hasChanged(91)||e.hasChanged(130)}constructor(e,t,i,n){var s;this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,r=o.get(145),a=o.get(50);this.readOnly=o.get(91),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(116),this.lineHeight=a.lineHeight,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(128),this.wordSeparators=o.get(131),this.emptySelectionClipboard=o.get(37),this.copyWithSyntaxHighlighting=o.get(25),this.multiCursorMergeOverlapping=o.get(77),this.multiCursorPaste=o.get(79),this.multiCursorLimit=o.get(80),this.autoClosingBrackets=o.get(6),this.autoClosingComments=o.get(7),this.autoClosingQuotes=o.get(11),this.autoClosingDelete=o.get(9),this.autoClosingOvertype=o.get(10),this.autoSurround=o.get(14),this.autoIndent=o.get(12),this.wordSegmenterLocales=o.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const l=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(l)for(const h of l)this.surroundingPairs[h.open]=h.close;const d=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=null!==(s=null===d||void 0===d?void 0:d.blockCommentStartToken)&&void 0!==s?s:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t)for(const e of t)this._electricChars[e]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=(0,r.wH)(t,i-1),s=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return s?s.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return(0,l.x)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return c;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return d;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.i.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=a.i.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),s=e.getLineMinColumn(t);if(n<s)return s;const o=e.getLineMaxColumn(t);return n>o?o:n}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=o.Y.liftSelection(e),i=new f(s.e.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,n,s){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=n,this.leftoverVisibleColumns=s,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,o){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new n.L(t,i),o):new f(new s.e(t,i,t,i),0,o,new n.L(t,i),o)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?o.Y.fromPositions(e.getStartPosition(),t):o.Y.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},36598:(e,t,i)=>{"use strict";i.d(t,{KU:()=>r,NT:()=>h,i8:()=>a,n0:()=>d,zl:()=>l});var n=i(51833),s=i(16015),o=i(93845);class r{static trivial(e,t){return new r([new a(o.q.ofLength(e.length),o.q.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new r([new a(o.q.ofLength(e.length),o.q.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,n.zy)(e,((e,n)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():l.zero,n?n.getStarts():new l(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new o.q(e.offset1,t.offset1),new o.q(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}l.zero=new l(0,0),l.max=new l(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class d{isValid(){return!0}}d.instance=new d;class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new s.he("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},809:(e,t,i)=>{"use strict";i.d(t,{DW:()=>M});var n=i(51833),s=i(56702),o=i(47638),r=i(93845),a=i(28928),l=i(36598);class d{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class c{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let n=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const e=t[s];for(let t=0;t<e.length;t++){n++;const i=e[t],s=c.getKey(i);this.histogram[s]=(this.histogram[s]||0)+1}n++;const i=c.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=n}computeSimilarity(e){var t,i;let n=0;const s=Math.max(this.histogram.length,e.histogram.length);for(let o=0;o<s;o++)n+=Math.abs((null!==(t=this.histogram[o])&&void 0!==t?t:0)-(null!==(i=e.histogram[o])&&void 0!==i?i:0));return 1-n/(this.totalCount+e.totalCount)}}c.chrKeys=new Map;class u{compute(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.n0.instance,n=arguments.length>3?arguments[3]:void 0;if(0===e.length||0===t.length)return l.KU.trivial(e,t);const s=new d(e.length,t.length),o=new d(e.length,t.length),a=new d(e.length,t.length);for(let r=0;r<e.length;r++)for(let d=0;d<t.length;d++){if(!i.isValid())return l.KU.trivialTimedOut(e,t);const h=0===r?0:s.get(r-1,d),c=0===d?0:s.get(r,d-1);let u;e.getElement(r)===t.getElement(d)?(u=0===r||0===d?0:s.get(r-1,d-1),r>0&&d>0&&3===o.get(r-1,d-1)&&(u+=a.get(r-1,d-1)),u+=n?n(r,d):1):u=-1;const g=Math.max(h,c,u);if(g===u){const e=r>0&&d>0?a.get(r-1,d-1):0;a.set(r,d,e+1),o.set(r,d,3)}else g===h?(a.set(r,d,0),o.set(r,d,1)):g===c&&(a.set(r,d,0),o.set(r,d,2));s.set(r,d,g)}const h=[];let c=e.length,u=t.length;function g(e,t){e+1===c&&t+1===u||h.push(new l.i8(new r.q(e+1,c),new r.q(t+1,u))),c=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===o.get(p,m)?(g(p,m),p--,m--):1===o.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new l.KU(h,!1)}}class g{compute(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.n0.instance;if(0===e.length||0===t.length)return l.KU.trivial(e,t);const n=e,s=t;function o(e,t){for(;e<n.length&&t<s.length&&n.getElement(e)===s.getElement(t);)e++,t++;return e}let a=0;const d=new m;d.set(0,o(0,0));const h=new f;h.set(0,0===d.get(0)?null:new p(null,0,0,d.get(0)));let c=0;e:for(;;){if(a++,!i.isValid())return l.KU.trivialTimedOut(n,s);const e=-Math.min(a,s.length+a%2),t=Math.min(a,n.length+a%2);for(c=e;c<=t;c+=2){let i=0;const r=c===t?-1:d.get(c+1),a=c===e?-1:d.get(c-1)+1;i++;const l=Math.min(Math.max(r,a),n.length),u=l-c;if(i++,l>n.length||u>s.length)continue;const g=o(l,u);d.set(c,g);const m=l===r?h.get(c+1):h.get(c-1);if(h.set(c,g!==l?new p(m,l,u,g-l):m),d.get(c)===n.length&&d.get(c)-c===s.length)break e}}let u=h.get(c);const g=[];let _=n.length,v=s.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new l.i8(new r.q(e,_),new r.q(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new l.KU(g,!1)}}class p{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var _=i(17053),v=i(91206),b=i(38079),C=i(74633);class y{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let n=!1;t.start>0&&t.endExclusive>=e.length&&(t=new r.q(t.start-1,t.endExclusive),n=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let t=e[s],o=0;if(n)o=t.length,t="",n=!1;else if(!i){const e=t.trimStart();o=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(o);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));s<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new r.q(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=L(e>0?this.elements[e-1]:-1),i=L(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let n=0;return t!==i&&(n+=10,0===t&&1===i&&(n+=1)),n+=x(t),n+=x(i),n}translateOffset(e){if(this.lineRange.isEmpty)return new C.L(this.lineRange.start+1,1);const t=(0,v.Jw)(this.firstCharOffsetByLine,(t=>t<=e));return new C.L(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return a.e.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!w(this.elements[e]))return;let t=e;for(;t>0&&w(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&w(this.elements[i]);)i++;return new r.q(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,i;const n=null!==(t=(0,v.ti)(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,s=null!==(i=(0,v.cn)(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==i?i:this.elements.length;return new r.q(n,s)}}function w(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const S={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function x(e){return S[e]}function L(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function k(e,t,i,s,r,a){let{moves:l,excludedChanges:d}=function(e,t,i,n){const s=[],o=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new c(e.original,t,e))),r=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new c(e.modified,i,e)))),a=new Set;for(const l of o){let e,t=-1;for(const i of r){const n=l.computeSimilarity(i);n>t&&(t=n,e=i)}if(t>.9&&e&&(r.delete(e),s.push(new _.f0(l.range,e.range)),a.add(l.source),a.add(e.source)),!n.isValid())return{moves:s,excludedChanges:a}}return{moves:s,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,s,r,a){const l=[],d=new b.ri;for(const n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;d.add(i,{range:new o.z(e,e+3)})}const h=[];e.sort((0,n.tT)((e=>e.modified.startLineNumber),n.fv));for(const n of e){let e=[];for(let t=n.modified.startLineNumber;t<n.modified.endLineNumberExclusive-2;t++){const n=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,s=new o.z(t,t+3),r=[];d.forEach(n,(t=>{let{range:i}=t;for(const a of e)if(a.originalLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive&&a.modifiedLineRange.endLineNumberExclusive+1===s.endLineNumberExclusive)return a.originalLineRange=new o.z(a.originalLineRange.startLineNumber,i.endLineNumberExclusive),a.modifiedLineRange=new o.z(a.modifiedLineRange.startLineNumber,s.endLineNumberExclusive),void r.push(a);const n={modifiedLineRange:s,originalLineRange:i};h.push(n),r.push(n)})),e=r}if(!a.isValid())return[]}h.sort((0,n.BV)((0,n.tT)((e=>e.modifiedLineRange.length),n.fv)));const c=new o.i,u=new o.i;for(const n of h){const e=n.modifiedLineRange.startLineNumber-n.originalLineRange.startLineNumber,t=c.subtractFrom(n.modifiedLineRange),i=u.subtractFrom(n.originalLineRange).getWithDelta(e),s=t.getIntersection(i);for(const n of s.ranges){if(n.length<3)continue;const t=n,i=n.delta(-e);l.push(new _.f0(i,t)),c.addRange(t),u.addRange(i)}}l.sort((0,n.tT)((e=>e.original.startLineNumber),n.fv));const g=new v.b1(e);for(let n=0;n<l.length;n++){const t=l[n],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),d=(0,v.ti)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-d.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.ti)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let b,C;for(b=0;b<h;b++){const e=t.original.startLineNumber-b-1,i=t.modified.startLineNumber-b-1;if(e>s.length||i>r.length)break;if(c.contains(i)||u.contains(e))break;if(!D(s[e-1],r[i-1],a))break}for(b>0&&(u.addRange(new o.z(t.original.startLineNumber-b,t.original.startLineNumber)),c.addRange(new o.z(t.modified.startLineNumber-b,t.modified.startLineNumber))),C=0;C<f;C++){const e=t.original.endLineNumberExclusive+C,i=t.modified.endLineNumberExclusive+C;if(e>s.length||i>r.length)break;if(c.contains(i)||u.contains(e))break;if(!D(s[e-1],r[i-1],a))break}C>0&&(u.addRange(new o.z(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+C)),c.addRange(new o.z(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+C))),(b>0||C>0)&&(l[n]=new _.f0(new o.z(t.original.startLineNumber-b,t.original.endLineNumberExclusive+C),new o.z(t.modified.startLineNumber-b,t.modified.endLineNumberExclusive+C)))}return l}(e.filter((e=>!d.has(e))),s,r,t,i,a);return(0,n.vA)(l,h),l=function(e){if(0===e.length)return e;e.sort((0,n.tT)((e=>e.original.startLineNumber),n.fv));const t=[e[0]];for(let i=1;i<e.length;i++){const n=t[t.length-1],s=e[i],o=s.original.startLineNumber-n.original.endLineNumberExclusive,r=s.modified.startLineNumber-n.modified.endLineNumberExclusive;o>=0&&r>=0&&o+r<=2?t[t.length-1]=n.join(s):t.push(s)}return t}(l),l=l.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const n of e)t(n)&&i++;return i}(i,(e=>e.length>=2))>=2})),l=function(e,t){const i=new v.b1(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.f0(new o.z(1,1),new o.z(1,1)))!==(0,v.ti)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,l),l}function D(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const n=(new g).compute(new y([e],new r.q(0,1),!1),new y([t],new r.q(0,1),!1),i);let s=0;const o=l.i8.invert(n.diffs,e.length);for(const r of o)r.seq1Range.forEach((t=>{h(e.charCodeAt(t))||s++}));const a=function(t){let i=0;for(let n=0;n<e.length;n++)h(t.charCodeAt(n))||i++;return i}(e.length>t.length?e:t);return s/a>.6&&a>10}var N=i(30886);class E{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:T(this.lines[e-1]))+(e===this.lines.length?0:T(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function T(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var I=i(67391);class M{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,n.fS)(e,t,((e,t)=>e===t)))return new I.h([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new I.h([new _.gB(new o.z(1,e.length+1),new o.z(1,t.length+1),[new _.iy(new a.e(1,1,e.length,e[0].length+1),new a.e(1,1,t.length,t[0].length+1))])],[],!1);const d=0===i.maxComputationTimeMs?l.n0.instance:new l.NT(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,c=new Map;function u(e){let t=c.get(e);return void 0===t&&(t=c.size,c.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new E(g,e),f=new E(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,d,((i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99)):this.myersDiffingAlgorithm.compute(m,f))();let b=v.diffs,C=v.hitTimeout;b=(0,N.xG)(m,f,b),b=(0,N.rh)(m,f,b);const y=[],w=i=>{if(h)for(let n=0;n<i;n++){const i=S+n,s=x+n;if(e[i]!==t[s]){const n=this.refineDiff(e,t,new l.i8(new r.q(i,i+1),new r.q(s,s+1)),d,h);for(const e of n.mappings)y.push(e);n.hitTimeout&&(C=!0)}}};let S=0,x=0;for(const n of b){(0,s.eZ)((()=>n.seq1Range.start-S===n.seq2Range.start-x));w(n.seq1Range.start-S),S=n.seq1Range.endExclusive,x=n.seq2Range.endExclusive;const i=this.refineDiff(e,t,n,d,h);i.hitTimeout&&(C=!0);for(const e of i.mappings)y.push(e)}w(e.length-S);const L=A(y,e,t);let k=[];return i.computeMoves&&(k=this.computeMoves(L,e,t,g,p,d,h)),(0,s.eZ)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const s of L){if(!s.innerChanges)return!1;for(const n of s.innerChanges){if(!(i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e)))return!1}if(!n(s.modified,t)||!n(s.original,e))return!1}return!0})),new I.h(L,k,C)}computeMoves(e,t,i,n,s,o,r){return k(e,t,i,n,s,o).map((e=>{const n=A(this.refineDiff(t,i,new l.i8(e.original.toOffsetRange(),e.modified.toOffsetRange()),o,r).mappings,t,i,!0);return new I.y(e,n)}))}refineDiff(e,t,i,n,s){const o=new y(e,i.seq1Range,s),r=new y(t,i.seq2Range,s),a=o.length+r.length<500?this.dynamicProgrammingDiffing.compute(o,r,n):this.myersDiffingAlgorithm.compute(o,r,n);let l=a.diffs;l=(0,N.xG)(o,r,l),l=(0,N.g0)(o,r,l),l=(0,N.oK)(o,r,l),l=(0,N.DI)(o,r,l);return{mappings:l.map((e=>new _.iy(o.translateRange(e.seq1Range),r.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function A(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=[];for(const s of(0,n.mw)(e.map((e=>function(e,t,i){let n=0,s=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(s=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(n=1);const r=new o.z(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+s),a=new o.z(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+s);return new _.gB(r,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];a.push(new _.gB(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,s.eZ)((()=>{if(!r&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,s.DM)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),a}},30886:(e,t,i)=>{"use strict";i.d(t,{DI:()=>u,g0:()=>h,oK:()=>d,rh:()=>c,xG:()=>r});var n=i(51833),s=i(93845),o=i(36598);function r(e,t,i){let n=i;return n=a(e,t,n),n=a(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n<i.length;n++){const o=n>0?i[n-1]:void 0,r=i[n],a=n+1<i.length?i[n+1]:void 0,d=new s.q(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new s.q(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);r.seq1Range.isEmpty?i[n]=l(r,e,t,d,h):r.seq2Range.isEmpty&&(i[n]=l(r.swap(),t,e,h,d).swap())}return i}(e,t,n),n}function a(e,t,i){if(0===i.length)return i;const n=[];n.push(i[0]);for(let a=1;a<i.length;a++){const r=n[n.length-1];let l=i[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const i=l.seq1Range.start-r.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(l.seq1Range.start-a)===e.getElement(l.seq1Range.endExclusive-a)&&t.getElement(l.seq2Range.start-a)===t.getElement(l.seq2Range.endExclusive-a));a++);if(a--,a===i){n[n.length-1]=new o.i8(new s.q(r.seq1Range.start,l.seq1Range.endExclusive-i),new s.q(r.seq2Range.start,l.seq2Range.endExclusive-i));continue}l=l.delta(-a)}n.push(l)}const r=[];for(let a=0;a<n.length-1;a++){const i=n[a+1];let l=n[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const r=i.seq1Range.start-l.seq1Range.endExclusive;let d;for(d=0;d<r&&(e.isStronglyEqual(l.seq1Range.start+d,l.seq1Range.endExclusive+d)&&t.isStronglyEqual(l.seq2Range.start+d,l.seq2Range.endExclusive+d));d++);if(d===r){n[a+1]=new o.i8(new s.q(l.seq1Range.start+r,i.seq1Range.endExclusive),new s.q(l.seq2Range.start+r,i.seq2Range.endExclusive));continue}d>0&&(l=l.delta(d))}r.push(l)}return n.length>0&&r.push(n[n.length-1]),r}function l(e,t,i,n,s){let o=1;for(;e.seq1Range.start-o>=n.start&&e.seq2Range.start-o>=s.start&&i.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let r=0;for(;e.seq1Range.start+r<n.endExclusive&&e.seq2Range.endExclusive+r<s.endExclusive&&i.isStronglyEqual(e.seq2Range.start+r,e.seq2Range.endExclusive+r)&&r<100;)r++;if(0===o&&0===r)return e;let a=0,l=-1;for(let d=-o;d<=r;d++){const n=e.seq2Range.start+d,s=e.seq2Range.endExclusive+d,o=e.seq1Range.start+d,r=t.getBoundaryScore(o)+i.getBoundaryScore(n)+i.getBoundaryScore(s);r>l&&(l=r,a=d)}return e.delta(a)}function d(e,t,i){const n=[];for(const s of i){const e=n[n.length-1];e?s.seq1Range.start-e.seq1Range.endExclusive<=2||s.seq2Range.start-e.seq2Range.endExclusive<=2?n[n.length-1]=new o.i8(e.seq1Range.join(s.seq1Range),e.seq2Range.join(s.seq2Range)):n.push(s):n.push(s)}return n}function h(e,t,i){const n=o.i8.invert(i,e.length),s=[];let r=new o.zl(0,0);function a(i,a){if(i.offset1<r.offset1||i.offset2<r.offset2)return;const l=e.findWordContaining(i.offset1),d=t.findWordContaining(i.offset2);if(!l||!d)return;let h=new o.i8(l,d);const c=h.intersect(a);let u=c.seq1Range.length,g=c.seq2Range.length;for(;n.length>0;){const i=n[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const s=e.findWordContaining(i.seq1Range.start),r=t.findWordContaining(i.seq2Range.start),a=new o.i8(s,r),l=a.intersect(i);if(u+=l.seq1Range.length,g+=l.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;n.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&s.push(h),r=h.getEndExclusives()}for(;n.length>0;){const e=n.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const n=e[0],s=t[0];let o;o=n&&(!s||n.seq1Range.start<s.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=o.seq1Range.start?i[i.length-1]=i[i.length-1].join(o):i.push(o)}return i}(i,s)}function c(e,t,i){let n=i;if(0===n.length)return n;let o,r=0;do{o=!1;const a=[n[0]];for(let l=1;l<n.length;l++){const d=n[l],h=a[a.length-1];function c(t,i){const n=new s.q(h.seq1Range.endExclusive,d.seq1Range.start);return e.getText(n).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}c(h,d)?(o=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}n=a}while(r++<10&&o);return n}function u(e,t,i){let r=i;if(0===r.length)return r;let a,l=0;do{a=!1;const h=[r[0]];for(let c=1;c<r.length;c++){const u=r[c],g=h[h.length-1];function p(i,n){const o=new s.q(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const r=e.getText(o).trim();if(r.length>20||r.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),l=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,c=e.countLinesIn(n.seq1Range),p=n.seq1Range.length,m=t.countLinesIn(n.seq2Range),f=n.seq2Range.length,_=130;function v(e){return Math.min(e,_)}return Math.pow(Math.pow(v(40*a+l),1.5)+Math.pow(v(40*d+h),1.5),1.5)+Math.pow(Math.pow(v(40*c+p),1.5)+Math.pow(v(40*m+f),1.5),1.5)>(_**1.5)**1.5*1.3}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}r=h}while(l++<10&&a);const d=[];return(0,n.KO)(r,((t,i,n)=>{let r=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const l=e.extendToFullLines(i.seq1Range),h=e.getText(new s.q(l.start,i.seq1Range.start));a(h)&&(r=r.deltaStart(-h.length));const c=e.getText(new s.q(i.seq1Range.endExclusive,l.endExclusive));a(c)&&(r=r.deltaEnd(c.length));const u=o.i8.fromOffsetPairs(t?t.getEndExclusives():o.zl.zero,n?n.getStarts():o.zl.max),g=r.intersect(u);d.length>0&&g.getStarts().equals(d[d.length-1].getEndExclusives())?d[d.length-1]=d[d.length-1].join(g):d.push(g)})),d}},67391:(e,t,i)=>{"use strict";i.d(t,{h:()=>n,y:()=>s});class n{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class s{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},17053:(e,t,i)=>{"use strict";i.d(t,{f0:()=>s,gB:()=>o,iy:()=>r});var n=i(47638);class s{static inverse(e,t,i){const o=[];let r=1,a=1;for(const d of e){const e=new s(new n.z(r,d.original.startLineNumber),new n.z(a,d.modified.startLineNumber));e.modified.isEmpty||o.push(e),r=d.original.endLineNumberExclusive,a=d.modified.endLineNumberExclusive}const l=new s(new n.z(r,t+1),new n.z(a,i+1));return l.modified.isEmpty||o.push(l),o}static clip(e,t,i){const n=[];for(const o of e){const e=o.original.intersect(t),r=o.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&n.push(new s(e,r))}return n}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new s(this.modified,this.original)}join(e){return new s(this.original.join(e.original),this.modified.join(e.modified))}}class o extends s{static fromRangeMappings(e){const t=n.z.join(e.map((e=>n.z.fromRangeInclusive(e.originalRange)))),i=n.z.join(e.map((e=>n.z.fromRangeInclusive(e.modifiedRange))));return new o(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){var e;return new o(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new o(this.original,this.modified,[new r(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class r{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new r(this.modifiedRange,this.originalRange)}}},87545:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});class n{constructor(e,t,i,n,s,o,r){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=s,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},36362:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});const n={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},35770:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});var n,s=i(5887),o=i(47116);!function(e){e.editorSimpleInput=new o.uy("editorSimpleInput",!1,!0),e.editorTextFocus=new o.uy("editorTextFocus",!1,s.NC("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new o.uy("editorFocus",!1,s.NC("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new o.uy("textInputFocus",!1,s.NC("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new o.uy("editorReadonly",!1,s.NC("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new o.uy("inDiffEditor",!1,s.NC("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new o.uy("isEmbeddedDiffEditor",!1,s.NC("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new o.uy("inMultiDiffEditor",!1,s.NC("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new o.uy("multiDiffEditorAllCollapsed",void 0,s.NC("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new o.uy("diffEditorHasChanges",!1,s.NC("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new o.uy("comparingMovedCode",!1,s.NC("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new o.uy("accessibleDiffViewerVisible",!1,s.NC("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new o.uy("diffEditorRenderSideBySideInlineBreakpointReached",!1,s.NC("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new o.uy("diffEditorInlineMode",!1,s.NC("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new o.uy("diffEditorOriginalWritable",!1,s.NC("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new o.uy("diffEditorModifiedWritable",!1,s.NC("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new o.uy("diffEditorOriginalUri","",s.NC("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new o.uy("diffEditorModifiedUri","",s.NC("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new o.uy("editorColumnSelection",!1,s.NC("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new o.uy("editorHasSelection",!1,s.NC("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new o.uy("editorHasMultipleSelections",!1,s.NC("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new o.uy("editorTabMovesFocus",!1,s.NC("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new o.uy("isInEmbeddedEditor",!1,!0),e.canUndo=new o.uy("canUndo",!1,!0),e.canRedo=new o.uy("canRedo",!1,!0),e.hoverVisible=new o.uy("editorHoverVisible",!1,s.NC("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new o.uy("editorHoverFocused",!1,s.NC("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new o.uy("stickyScrollFocused",!1,s.NC("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new o.uy("stickyScrollVisible",!1,s.NC("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new o.uy("standaloneColorPickerVisible",!1,s.NC("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new o.uy("standaloneColorPickerFocused",!1,s.NC("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new o.uy("inCompositeEditor",void 0,s.NC("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new o.uy("editorLangId","",s.NC("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new o.uy("editorHasCompletionItemProvider",!1,s.NC("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new o.uy("editorHasCodeActionsProvider",!1,s.NC("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new o.uy("editorHasCodeLensProvider",!1,s.NC("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new o.uy("editorHasDefinitionProvider",!1,s.NC("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new o.uy("editorHasDeclarationProvider",!1,s.NC("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new o.uy("editorHasImplementationProvider",!1,s.NC("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new o.uy("editorHasTypeDefinitionProvider",!1,s.NC("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new o.uy("editorHasHoverProvider",!1,s.NC("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new o.uy("editorHasDocumentHighlightProvider",!1,s.NC("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new o.uy("editorHasDocumentSymbolProvider",!1,s.NC("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new o.uy("editorHasReferenceProvider",!1,s.NC("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new o.uy("editorHasRenameProvider",!1,s.NC("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new o.uy("editorHasSignatureHelpProvider",!1,s.NC("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new o.uy("editorHasInlayHintsProvider",!1,s.NC("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new o.uy("editorHasDocumentFormattingProvider",!1,s.NC("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new o.uy("editorHasDocumentSelectionFormattingProvider",!1,s.NC("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new o.uy("editorHasMultipleDocumentFormattingProvider",!1,s.NC("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new o.uy("editorHasMultipleDocumentSelectionFormattingProvider",!1,s.NC("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(n||(n={}))},26993:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,y:()=>s});const n=[];function s(e){n.push(e)}function o(){return n.slice(0)}},9556:(e,t,i)=>{"use strict";i.d(t,{N:()=>n});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(s+=`text-decoration:${o};`),s}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},45298:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});var n=i(27351),s=i(96682);function o(e,t,i,r,a,l){if(Array.isArray(e)){let n=0;for(const s of e){const e=o(s,t,i,r,a,l);if(10===e)return e;e>n&&(n=e)}return n}if("string"===typeof e)return r?"*"===e?5:e===i?10:0:0;if(e){const{language:o,pattern:d,scheme:h,hasAccessToAllModels:c,notebookType:u}=e;if(!r&&!c)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(o)if(o===i)g=10;else{if("*"!==o)return 0;g=Math.max(g,5)}if(u)if(u===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}if(d){let e;if(e="string"===typeof d?d:{...d,base:(0,s.Fv)(d.base)},e!==t.fsPath&&!(0,n.EQ)(e,t.fsPath))return 0;g=10}return g}return 0}},18841:(e,t,i)=>{"use strict";i.d(t,{mY:()=>x,gX:()=>d,MY:()=>g,Nq:()=>c,DI:()=>_,AD:()=>k,gl:()=>L,bw:()=>h,rn:()=>E,MO:()=>D,w:()=>S,ln:()=>v,WW:()=>u,uZ:()=>w,WU:()=>m,RW:()=>N,hG:()=>f,R4:()=>y,vx:()=>b});var n=i(61542),s=i(91387),o=i(28928),r=i(39706),a=i(53186);class l extends a.JT{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var d,h,c,u,g,p=i(5887);class m{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class f{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class _{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){const t=new Map;t.set(0,n.l.symbolMethod),t.set(1,n.l.symbolFunction),t.set(2,n.l.symbolConstructor),t.set(3,n.l.symbolField),t.set(4,n.l.symbolVariable),t.set(5,n.l.symbolClass),t.set(6,n.l.symbolStruct),t.set(7,n.l.symbolInterface),t.set(8,n.l.symbolModule),t.set(9,n.l.symbolProperty),t.set(10,n.l.symbolEvent),t.set(11,n.l.symbolOperator),t.set(12,n.l.symbolUnit),t.set(13,n.l.symbolValue),t.set(15,n.l.symbolEnum),t.set(14,n.l.symbolConstant),t.set(15,n.l.symbolEnum),t.set(16,n.l.symbolEnumMember),t.set(17,n.l.symbolKeyword),t.set(27,n.l.symbolSnippet),t.set(18,n.l.symbolText),t.set(19,n.l.symbolColor),t.set(20,n.l.symbolFile),t.set(21,n.l.symbolReference),t.set(22,n.l.symbolCustomColor),t.set(23,n.l.symbolFolder),t.set(24,n.l.symbolTypeParameter),t.set(25,n.l.account),t.set(26,n.l.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=n.l.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let n=i.get(e);return"undefined"!==typeof n||t||(n=9),n}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));class v{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return o.e.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&s.o.isUri(e.uri)&&o.e.isIRange(e.range)&&(o.e.isIRange(e.originSelectionRange)||o.e.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(c||(c={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));const C={17:(0,p.NC)("Array","array"),16:(0,p.NC)("Boolean","boolean"),4:(0,p.NC)("Class","class"),13:(0,p.NC)("Constant","constant"),8:(0,p.NC)("Constructor","constructor"),9:(0,p.NC)("Enum","enumeration"),21:(0,p.NC)("EnumMember","enumeration member"),23:(0,p.NC)("Event","event"),7:(0,p.NC)("Field","field"),0:(0,p.NC)("File","file"),11:(0,p.NC)("Function","function"),10:(0,p.NC)("Interface","interface"),19:(0,p.NC)("Key","key"),5:(0,p.NC)("Method","method"),1:(0,p.NC)("Module","module"),2:(0,p.NC)("Namespace","namespace"),20:(0,p.NC)("Null","null"),15:(0,p.NC)("Number","number"),18:(0,p.NC)("Object","object"),24:(0,p.NC)("Operator","operator"),3:(0,p.NC)("Package","package"),6:(0,p.NC)("Property","property"),14:(0,p.NC)("String","string"),22:(0,p.NC)("Struct","struct"),25:(0,p.NC)("TypeParameter","type parameter"),12:(0,p.NC)("Variable","variable")};function y(e,t){return(0,p.NC)("symbolAriaLabel","{0} ({1})",e,C[t])}var w,S,x,L;!function(e){const t=new Map;t.set(0,n.l.symbolFile),t.set(1,n.l.symbolModule),t.set(2,n.l.symbolNamespace),t.set(3,n.l.symbolPackage),t.set(4,n.l.symbolClass),t.set(5,n.l.symbolMethod),t.set(6,n.l.symbolProperty),t.set(7,n.l.symbolField),t.set(8,n.l.symbolConstructor),t.set(9,n.l.symbolEnum),t.set(10,n.l.symbolInterface),t.set(11,n.l.symbolFunction),t.set(12,n.l.symbolVariable),t.set(13,n.l.symbolConstant),t.set(14,n.l.symbolString),t.set(15,n.l.symbolNumber),t.set(16,n.l.symbolBoolean),t.set(17,n.l.symbolArray),t.set(18,n.l.symbolObject),t.set(19,n.l.symbolKey),t.set(20,n.l.symbolNull),t.set(21,n.l.symbolEnumMember),t.set(22,n.l.symbolStruct),t.set(23,n.l.symbolEvent),t.set(24,n.l.symbolOperator),t.set(25,n.l.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=n.l.symbolProperty),i}}(w||(w={}));class k{static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}k.Comment=new k("comment"),k.Imports=new k("imports"),k.Region=new k("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(S||(S={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(x||(x={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(L||(L={}));class D{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.OF)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();const n=new l(this,e,t);return this._factories.set(e,n),(0,a.OF)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var E;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(E||(E={}))},62553:(e,t,i)=>{"use strict";i.d(t,{$9:()=>h,UF:()=>d,n8:()=>l,r7:()=>a,tI:()=>c});var n=i(78701),s=i(39260),o=i(35734),r=i(5580);function a(e,t,i){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e<4)return null;const r=(arguments.length>4?arguments[4]:void 0).getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!r)return null;if(i<=1)return{indentation:"",action:null};for(let n=i-1;n>0&&""===t.getLineContent(n);n--)if(1===n)return{indentation:"",action:null};const a=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let s,o=-1;for(s=t-1;s>=1;s--){if(e.tokenization.getLanguageIdAtPosition(s,0)!==n)return o;const t=e.getLineContent(s);if(!i.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return s;o=s}}return-1}(t,i,r);if(a<0)return null;if(a<1)return{indentation:"",action:null};const l=t.getLineContent(a);if(r.shouldIncrease(l)||r.shouldIndentNextLine(l))return{indentation:n.V8(l),action:s.wU.Indent,line:a};if(r.shouldDecrease(l))return{indentation:n.V8(l),action:null,line:a};{if(1===a)return{indentation:n.V8(t.getLineContent(a)),action:null,line:a};const e=a-1,i=r.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--)if(!r.shouldIndentNextLine(t.getLineContent(n))){i=n;break}return{indentation:n.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:n.V8(t.getLineContent(a)),action:null,line:a};for(let o=a;o>0;o--){const e=t.getLineContent(o);if(r.shouldIncrease(e))return{indentation:n.V8(e),action:s.wU.Indent,line:o};if(r.shouldIndentNextLine(e)){let e=0;for(let i=o-1;i>0;i--)if(!r.shouldIndentNextLine(t.getLineContent(o))){e=i;break}return{indentation:n.V8(t.getLineContent(e+1)),action:null,line:e+1}}if(r.shouldDecrease(e))return{indentation:n.V8(e),action:null,line:o}}return{indentation:n.V8(t.getLineContent(1)),action:null,line:1}}}function l(e,t,i,o,r,l){if(e<4)return null;const d=l.getLanguageConfiguration(i);if(!d)return null;const h=l.getLanguageConfiguration(i).indentRulesSupport;if(!h)return null;const c=a(e,t,o,void 0,l),u=t.getLineContent(o);if(c){const i=c.line;if(void 0!==i){let a=!0;for(let e=i;e<o-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){a=!1;break}if(a){const o=d.onEnter(e,"",t.getLineContent(i),"");if(o){let e=n.V8(t.getLineContent(i));return o.removeText&&(e=e.substring(0,e.length-o.removeText)),o.indentAction===s.wU.Indent||o.indentAction===s.wU.IndentOutdent?e=r.shiftIndent(e):o.indentAction===s.wU.Outdent&&(e=r.unshiftIndent(e)),h.shouldDecrease(u)&&(e=r.unshiftIndent(e)),o.appendText&&(e+=o.appendText),n.V8(e)}}}return h.shouldDecrease(u)?c.action===s.wU.Indent?c.indentation:r.unshiftIndent(c.indentation):c.action===s.wU.Indent?r.shiftIndent(c.indentation):c.indentation}return null}function d(e,t,i,l,d){if(e<4)return null;t.tokenization.forceTokenization(i.startLineNumber);const h=t.tokenization.getLineTokens(i.startLineNumber),c=(0,o.wH)(h,i.startColumn-1),u=c.getLineContent();let g,p,m=!1;if(c.firstCharOffset>0&&h.getLanguageId(0)!==c.languageId?(m=!0,g=u.substr(0,i.startColumn-1-c.firstCharOffset)):g=h.getLineContent().substring(0,i.startColumn-1),i.isEmpty())p=u.substr(i.startColumn-1-c.firstCharOffset);else{p=(0,r.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-c.firstCharOffset)}const f=d.getLanguageConfiguration(c.languageId).indentRulesSupport;if(!f)return null;const _=g,v=n.V8(g),b={tokenization:{getLineTokens:e=>t.tokenization.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i)},getLineContent:e=>e===i.startLineNumber?_:t.getLineContent(e)},C=n.V8(h.getLineContent()),y=a(e,b,i.startLineNumber+1,void 0,d);if(!y){const e=m?C:v;return{beforeEnter:e,afterEnter:e}}let w=m?C:y.indentation;return y.action===s.wU.Indent&&(w=l.shiftIndent(w)),f.shouldDecrease(p)&&(w=l.unshiftIndent(w)),{beforeEnter:m?C:v,afterEnter:w}}function h(e,t,i,n,o,l){if(e<4)return null;const d=(0,r.n2)(t,i.startLineNumber,i.startColumn);if(d.firstCharOffset)return null;const h=l.getLanguageConfiguration(d.languageId).indentRulesSupport;if(!h)return null;const c=d.getLineContent(),u=c.substr(0,i.startColumn-1-d.firstCharOffset);let g;if(i.isEmpty())g=c.substr(i.startColumn-1-d.firstCharOffset);else{g=(0,r.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-d.firstCharOffset)}if(!h.shouldDecrease(u+g)&&h.shouldDecrease(u+n+g)){const n=a(e,t,i.startLineNumber,!1,l);if(!n)return null;let r=n.indentation;return n.action!==s.wU.Indent&&(r=o.unshiftIndent(r)),r}return null}function c(e,t,i){const n=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}},37036:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(39260),s=i(5580);function o(e,t,i,o){const r=(0,s.n2)(t,i.startLineNumber,i.startColumn),a=o.getLanguageConfiguration(r.languageId);if(!a)return null;const l=r.getLineContent(),d=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;if(i.isEmpty())h=l.substr(i.startColumn-1-r.firstCharOffset);else{h=(0,s.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset)}let c="";if(i.startLineNumber>1&&0===r.firstCharOffset){const e=(0,s.n2)(t,i.startLineNumber-1);e.languageId===r.languageId&&(c=e.getLineContent())}const u=a.onEnter(e,c,d,h);if(!u)return null;const g=u.indentAction;let p=u.appendText;const m=u.removeText||0;p?g===n.wU.Indent&&(p="\t"+p):p=g===n.wU.Indent||g===n.wU.IndentOutdent?"\t":"";let f=(0,s.u0)(t,i.startLineNumber,i.startColumn);return m&&(f=f.substring(0,f.length-m)),{indentAction:g,appendText:p,removeText:m,indentation:f}}},91342:(e,t,i)=>{"use strict";i.d(t,{O:()=>n});const n=(0,i(87775).yh)("languageService")},39260:(e,t,i)=>{"use strict";var n;i.d(t,{V6:()=>s,c$:()=>o,wU:()=>n}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class s{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class o{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}}function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},5580:(e,t,i)=>{"use strict";i.d(t,{c_:()=>I,u0:()=>O,n2:()=>P});var n=i(39706),s=i(53186),o=i(78701),r=i(67331),a=i(39260),l=i(35734);class d{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.V6(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.V6({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.V6({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t";var h=i(51833),c=i(516);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,h.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if((0,l.Bu)(t.getStandardTokenType(n)))return null;const s=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,r=c.Vr.findPrevBracketInRange(s,1,o,0,o.length);if(!r)return null;const a=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const d=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(16015);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let s=0,o=this._regExpRules.length;s<o;s++){const e=this._regExpRules[s];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:n},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&n.length>0)for(let s=0,o=this._brackets.length;s<o;s++){const e=this._brackets[s];if(e.openRegExp.test(i)&&e.closeRegExp.test(n))return{indentAction:a.wU.IndentOutdent}}if(e>=2&&i.length>0)for(let s=0,o=this._brackets.length;s<o;s++){if(this._brackets[s].openRegExp.test(i))return{indentAction:a.wU.Indent}}return null}static _createOpenBracketRegExp(e){let t=o.ec(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=o.ec(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dL)(t),null}}}var _=i(87775),v=i(30600),b=i(91342),C=i(23026),y=i(76326),w=i(40084);class S{constructor(e,t){this.languageId=e;const i=t.brackets?x(t.brackets):[],n=new w.b((e=>{const t=new Set;return{info:new k(this,e,t),closing:t}})),s=new w.b((e=>{const t=new Set,i=new Set;return{info:new D(this,e,t,i),opening:t,openingColorized:i}}));for(const[r,a]of i){const e=n.get(r),t=s.get(a);e.closing.add(t.info),t.opening.add(e.info)}const o=t.colorizedBracketPairs?x(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[r,a]of o){const e=n.get(r),t=s.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...n.cachedValues].map((e=>{let[t,i]=e;return[t,i.info]}))),this._closingBrackets=new Map([...s.cachedValues].map((e=>{let[t,i]=e;return[t,i.info]})))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function x(e){return e.filter((e=>{let[t,i]=e;return""!==t&&""!==i}))}class L{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class k extends L{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class D extends L{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var N=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},E=function(e,t){return function(i,n){t(i,n,e)}};class T{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const I=(0,_.yh)("languageConfigurationService");let M=class extends s.JT{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new H),this.onDidChangeEmitter=this._register(new n.Q5),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(A));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((e=>{let[t,n]=e;return n.some((e=>i.has(e)))})).map((e=>{let[t]=e;return t}));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new T(void 0));else for(const i of n)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new T(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new T(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let s=t.getLanguageConfiguration(e);if(!s){if(!n.isRegisteredLanguageId(e))return new z(e,{});s=new z(e,{})}const o=function(e,t){const i=t.getValue(A.brackets,{overrideIdentifier:e}),n=t.getValue(A.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:R(i),colorizedBracketPairs:R(n)}}(s.languageId,i),r=B([s.underlyingConfig,o]);return new z(s.languageId,r)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};M=N([E(0,v.Ui),E(1,b.O)],M);const A={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function R(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function O(e,t,i){const n=e.getLineContent(t);let s=o.V8(n);return s.length>i-1&&(s=s.substring(0,i-1)),s}function P(e,t,i){e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t),s="undefined"===typeof i?e.getLineMaxColumn(t)-1:i-1;return(0,l.wH)(n,s)}class F{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new V(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,s.OF)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new z(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(V.cmp),B(this._entries.map((e=>e.configuration))))}}function B(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class V{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class W{constructor(e){this.languageId=e}}class H extends s.JT{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._register(this.register(y.bd,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this._entries.get(e);n||(n=new F(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new W(e)),(0,s.OF)((()=>{o.dispose(),this._onDidChange.fire(new W(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return(null===t||void 0===t?void 0:t.getResolvedConfiguration())||null}}class z{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=z._handleComments(this.underlyingConfig),this.characterPair=new d(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||r.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new S(e,this.underlyingConfig)}getWordDefinition(){return(0,r.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new c.EA(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new a.c$(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}(0,C.z)(I,M,1)},76326:(e,t,i)=>{"use strict";i.d(t,{bd:()=>d,dQ:()=>l});var n=i(5887),s=i(39706),o=i(76322),r=i(90255),a=i(49817);const l=new class{constructor(){this._onDidChangeLanguages=new s.Q5,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};o.B.add("editor.modesRegistry",l);const d="plaintext";l.registerLanguage({id:d,extensions:[".txt"],aliases:[n.NC("plainText.alias","Plain Text"),"text"],mimetypes:[r.v.text]}),o.B.as(a.IP.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},31708:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,Ri:()=>o,TJ:()=>s});var n=i(18841);const s=new class{clone(){return this}equals(e){return this===e}};function o(e,t){return new n.hG([new n.WU(0,"",e)],t)}function r(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e<<0|2<<24)>>>0,new n.DI(i,null===t?s:t)}},35734:(e,t,i)=>{"use strict";function n(e,t){const i=e.getCount(),n=e.findTokenIndexAtOffset(t),o=e.getLanguageId(n);let r=n;for(;r+1<i&&e.getLanguageId(r+1)===o;)r++;let a=n;for(;a>0&&e.getLanguageId(a-1)===o;)a--;return new s(e,o,a,r+1,e.getStartOffset(a),e.getEndOffset(r))}i.d(t,{Bu:()=>o,wH:()=>n});class s{constructor(e,t,i,n,s,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=s,this._lastCharOffset=o}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function o(e){return 0!==(3&e)}},516:(e,t,i)=>{"use strict";i.d(t,{EA:()=>a,Vr:()=>p});var n=i(78701),s=i(130),o=i(28928);class r{constructor(e,t,i,n,s,o){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=s,this.reversedRegex=o,this._openSet=r._toSet(this.open),this._closeSet=r._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let r=0;r<t;r++)i[r]=r;const n=(e,t)=>{const[i,n]=e,[s,o]=t;return i===s||i===o||n===s||n===o},s=(e,n)=>{const s=Math.min(e,n),o=Math.max(e,n);for(let r=0;r<t;r++)i[r]===o&&(i[r]=s)};for(let r=0;r<t;r++){const o=e[r];for(let a=r+1;a<t;a++)n(o,e[a])&&s(i[r],i[a])}const o=[];for(let r=0;r<t;r++){const n=[],s=[];for(let o=0;o<t;o++)if(i[o]===r){const[t,i]=e[o];n.push(t),s.push(i)}n.length>0&&o.push({open:n,close:s})}return o}(t);this.brackets=i.map(((t,n)=>new r(e,n,t.open,t.close,function(e,t,i,n){let s=[];s=s.concat(e),s=s.concat(t);for(let o=0,r=s.length;o<r;o++)l(s[o],i,n,s);return s=h(s),s.sort(d),s.reverse(),u(s)}(t.open,t.close,i,n),function(e,t,i,n){let s=[];s=s.concat(e),s=s.concat(t);for(let o=0,r=s.length;o<r;o++)l(s[o],i,n,s);return s=h(s),s.sort(d),s.reverse(),u(s.map(g))}(t.open,t.close,i,n)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const e of n.open)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of n.close)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function l(e,t,i,n){for(let s=0,o=t.length;s<o;s++){if(s===i)continue;const o=t[s];for(const t of o.open)t.indexOf(e)>=0&&n.push(t);for(const t of o.close)t.indexOf(e)>=0&&n.push(t)}}function d(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function c(e){const t=/^[\w ]+$/.test(e);return e=n.ec(e),t?`\\b${e}\\b`:e}function u(e){const t=`(${e.map(c).join(")|(")})`;return n.GF(t,!0)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return s.oe().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=i.length-(s.index||0),a=s[0].length,l=n+r;return new o.e(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,s){const o=g(i).substring(i.length-s,i.length-n);return this._findPrevBracketInText(e,t,o,n)}static findNextBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=s.index||0,a=s[0].length;if(0===a)return null;const l=n+r;return new o.e(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,s){const o=i.substring(n,s);return this.findNextBracketInText(e,t,o,n)}}},85779:(e,t,i)=>{"use strict";i.d(t,{C2:()=>l,Fq:()=>d});var n=i(78701),s=i(34415),o=i(18841),r=i(31708);const a={getInitialState:()=>r.TJ,tokenizeEncoded:(e,t,i)=>(0,r.Dy)(0,i)};async function l(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const n=await o.RW.getOrCreate(i);return h(t,e.languageIdCodec,n||a)}function d(e,t,i,n,s,o,r){let a="<div>",l=n,d=0,h=!0;for(let c=0,u=t.getCount();c<u;c++){const u=t.getEndOffset(c);if(u<=n)continue;let g="";for(;l<u&&l<s;l++){const t=e.charCodeAt(l);switch(t){case 9:{let e=o-(l+d)%o;for(d+=e-1;e>0;)r&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:r&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(c,i)}">${g}</span>`,u>s||l>=s)break}return a+="</div>",a}function h(e,t,i){let o='<div class="monaco-tokenized-source">';const r=n.uq(e);let a=i.getInitialState();for(let l=0,d=r.length;l<d;l++){const e=r[l];l>0&&(o+="<br/>");const d=i.tokenizeEncoded(e,!0,a);s.A.convertToEndOffset(d.tokens,e.length);const h=new s.A(d.tokens,e,t).inflate();let c=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),s=h.getEndOffset(t);o+=`<span class="${i}">${n.YU(e.substring(c,s))}</span>`,c=s}a=d.endState}return o+="</div>",o}},24032:(e,t,i)=>{"use strict";i.d(t,{Hf:()=>d,Qi:()=>h,RM:()=>o,Tx:()=>c,U:()=>s,dJ:()=>a,je:()=>u,pt:()=>g,sh:()=>n,tk:()=>l});var n,s,o,r=i(53335);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(s||(s={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(o||(o={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,r.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function d(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,n,s,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=s,this._isTracked=o}}class c{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},22671:(e,t,i)=>{"use strict";i.d(t,{BH:()=>f,Dm:()=>v,Kd:()=>l,Y0:()=>d,n2:()=>_});var n=i(16015),s=i(32653),o=i(41525),r=i(74809);class a{get length(){return this._length}constructor(e){this._length=e}}class l extends a{static create(e,t,i){let n=e.length;return t&&(n=(0,o.Ii)(n,t.length)),i&&(n=(0,o.Ii)(n,i.length)),new l(n,e,t,i,t?t.missingOpeningBracketIds:r.tS.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,n,s){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=s}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,o.Ii)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class d extends a{static create23(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e.length,r=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(s=(0,o.Ii)(s,t.length),r=r.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");s=(0,o.Ii)(s,i.length),r=r.merge(i.missingOpeningBracketIds)}return n?new c(s,e.listHeight+1,e,t,i,r):new h(s,e.listHeight+1,e,t,i,r)}static getEmpty(){return new g(o.xl,0,[],r.tS.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new n.he;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;n<e;n++){const e=this.getChild(n);t=(0,o.Ii)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,n=e;for(let s=0;s<this.childrenLength;s++){const e=this.getChild(s);e&&(i=Math.min(i,e.computeMinIndentation(n,t)),n=(0,o.Ii)(n,e.length))}return this.cachedMinIndentation=i,i}}class h extends d{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,n,s,o){super(e,t,o),this._item1=i,this._item2=n,this._item3=s}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class c extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends d{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,n){super(e,t,n),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return r.tS.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,o.Hw)(e),n=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,r=(0,o.W9)((0,o.Ii)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let o=n;o<=r;o++){const e=t.getLineFirstNonWhitespaceColumn(o),i=t.getLineContent(o);if(0===e)continue;const n=s.i.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,n)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return r.tS.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},41432:(e,t,i)=>{"use strict";i.d(t,{Q:()=>o,Y:()=>r});var n=i(28928),s=i(41525);class o{static fromModelContentChanges(e){return e.map((e=>{const t=n.e.lift(e.range);return new o((0,s.PZ)(t.getStartPosition()),(0,s.PZ)(t.getEndPosition()),(0,s.oR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,s.Hw)(this.startOffset)}...${(0,s.Hw)(this.endOffset)}) -> ${(0,s.Hw)(this.newLength)}`}}class r{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,s.BE)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,s.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,s.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,s.Hw)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,s.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,s.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,s.By)(i,e))break;{this.nextEditIdx++;const e=(0,s.Hw)(i),n=(0,s.Hw)(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-n.lineCount;this.deltaOldToNewLineCount+=o;const r=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-n.columnCount;this.deltaOldToNewColumnCount=r+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,s.Hw)(t),this.endOffsetAfterObj=(0,s.Hw)((0,s.Ii)(e,i)),this.offsetObj=(0,s.Hw)(e)}}},6872:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(78701),s=i(22671),o=i(41525),r=i(74809),a=i(13549);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const n=new Map;for(const l of e.bracketsNew.openingBrackets){const e=(0,o.Hg)(0,l.bracketText.length),t=i(l),d=r.tS.getEmpty().add(t,r.Qw);n.set(l.bracketText,new a.WU(e,1,t,d,s.n2.create(e,l,d)))}for(const l of e.bracketsNew.closingBrackets){const e=(0,o.Hg)(0,l.bracketText.length);let t=r.tS.getEmpty();const d=l.getOpeningBrackets();for(const n of d)t=t.add(i(n),r.Qw);n.set(l.bracketText,new a.WU(e,2,i(d[0]),t,s.n2.create(e,l,t)))}return new l(n)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,n.ec)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class d{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},70266:(e,t,i)=>{"use strict";i.d(t,{o:()=>r});var n=i(51833),s=i(41432),o=i(41525);function r(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new n.H9(l(e)),r=l(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let d=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return d&&e.unshift(d),e}const t=[];for(;d&&!(0,o.xd)(e);){const[n,s]=d.splitAt(e);t.push(n),e=(0,o.BE)(n.lengthAfter,e),d=null!==s&&void 0!==s?s:i.dequeue()}return(0,o.xd)(e)||t.push(new a(!1,e,e)),t}const c=[];function u(e,t,i){if(c.length>0&&(0,o.rM)(c[c.length-1].endOffset,e)){const e=c[c.length-1];c[c.length-1]=new s.Q(e.startOffset,t,(0,o.Ii)(e.newLength,i))}else c.push({startOffset:e,endOffset:t,newLength:i})}let g=o.xl;for(const n of r){const e=h(n.lengthBefore);if(n.modified){const t=(0,o.tQ)(e,(e=>e.lengthBefore)),i=(0,o.Ii)(g,t);u(g,i,n.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,o.Ii)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return c}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,o.BE)(e,this.lengthAfter);return(0,o.rM)(t,o.xl)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,o.xl,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,o.Hw)(this.lengthBefore)} -> ${(0,o.Hw)(this.lengthAfter)}`}}function l(e){const t=[];let i=o.xl;for(const n of e){const e=(0,o.BE)(i,n.startOffset);(0,o.xd)(e)||t.push(new a(!1,e,e));const s=(0,o.BE)(n.startOffset,n.endOffset);t.push(new a(!0,s,n.newLength)),i=n.endOffset}return t}},41525:(e,t,i)=>{"use strict";i.d(t,{BE:()=>_,By:()=>b,F_:()=>g,Hg:()=>h,Hw:()=>c,Ii:()=>p,PZ:()=>y,Qw:()=>w,VR:()=>v,W9:()=>u,Zq:()=>C,av:()=>r,oR:()=>S,rM:()=>f,tQ:()=>m,xd:()=>l,xl:()=>a});var n=i(78701),s=i(28928),o=i(78757);function r(e,t,i,n){return e!==i?h(i-e,n):h(0,n-t)}const a=0;function l(e){return 0===e}const d=2**26;function h(e,t){return e*d+t}function c(e){const t=e,i=Math.floor(t/d),n=t-i*d;return new o.A(i,n)}function u(e){return Math.floor(e/d)}function g(e){return e}function p(e,t){let i=e+t;return t>=d&&(i-=e%d),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,n=t;if(n-i<=0)return a;const s=Math.floor(i/d),o=Math.floor(n/d),r=n-o*d;if(s===o){return h(0,r-(i-s*d))}return h(o-s,r)}function v(e,t){return e<t}function b(e,t){return e<=t}function C(e,t){return e>=t}function y(e){return h(e.lineNumber-1,e.column-1)}function w(e,t){const i=e,n=Math.floor(i/d),o=i-n*d,r=t,a=Math.floor(r/d),l=r-a*d;return new s.e(n+1,o+1,a+1,l+1)}function S(e){const t=(0,n.uq)(e);return h(t.length-1,t[t.length-1].length)}},86649:(e,t,i)=>{"use strict";i.d(t,{w:()=>g});var n=i(22671),s=i(41432),o=i(74809),r=i(41525);function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const s=i>>1;for(let o=0;o<s;o++){const s=o<<1;e[o]=n.Y0.create23(e[s],e[s+1],s+3===i?e[s+2]:null,t)}i=s}return n.Y0.create23(e[0],e[1],i>=3?e[2]:null,t)}function l(e,t){return Math.abs(e.listHeight-t.listHeight)}function d(e,t){return e.listHeight===t.listHeight?n.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const s=[];let o;for(;;){if(t.listHeight===i.listHeight){o=t;break}if(4!==i.kind)throw new Error("unexpected");s.push(i),i=i.makeLastElementMutable()}for(let r=s.length-1;r>=0;r--){const e=s[r];o?e.childrenLength>=3?o=n.Y0.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?n.Y0.create23(e,o,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const s=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");s.push(i),i=i.makeFirstElementMutable()}let o=t;for(let r=s.length-1;r>=0;r--){const e=s[r];o?e.childrenLength>=3?o=n.Y0.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?n.Y0.create23(o,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=r.xl,this.nextNodes=[e],this.offsets=[r.xl],this.idxs=[]}readLongestNodeAt(e,t){if((0,r.VR)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const n=u(this.offsets);if((0,r.VR)(e,n))return;if((0,r.VR)(n,e))if((0,r.Ii)(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=c(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=c(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),n=c(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push((0,r.Ii)(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;for(;;){if(t++,t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,n){return new p(e,t,i,n).parseDocument()}class p{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new s.Y(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(o.tS.getEmpty(),0);return e||(e=n.Y0.getEmpty()),e}parseList(e,t){const i=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}4===n.kind&&0===n.childrenLength||i.push(n)}const n=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===n;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),s=i();if(!s)return n;for(let o=i();o;o=i())l(n,s)<=l(s,o)?(n=d(n,s),s=o):s=d(s,o);return d(n,s)}(i):a(i,this.createImmutableLists);return n}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,r.xd)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,r.VR)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new n.Dm(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new n.BH(i.length);const s=e.merge(i.bracketIds),o=this.parseList(s,t+1),r=this.tokenizer.peek();return r&&2===r.kind&&(r.bracketId===i.bracketId||r.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),n.Kd.create(i.astNode,o,r.astNode)):n.Kd.create(i.astNode,o,null)}default:throw new Error("unexpected")}}}},74809:(e,t,i)=>{"use strict";i.d(t,{FE:()=>r,Qw:()=>o,tS:()=>s});const n=[];class s{static create(e,t){if(e<=128&&0===t.length){let i=s.cache[e];return i||(i=new s(e,t),s.cache[e]=i),i}return new s(e,t)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let n=i>>5;if(0===n){const e=1<<i|this.items;return e===this.items?this:s.create(e,this.additionalItems)}n--;const o=this.additionalItems.slice(0);for(;o.length<n;)o.push(0);return o[n]|=1<<(31&i),s.create(this.items,o)}merge(e){const t=this.items|e.items;if(this.additionalItems===n&&e.additionalItems===n)return t===this.items?this:t===e.items?e:s.create(t,n);const i=[];for(let n=0;n<Math.max(this.additionalItems.length,e.additionalItems.length);n++){const t=this.additionalItems[n]||0,s=e.additionalItems[n]||0;i.push(t|s)}return s.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}s.cache=new Array(129),s.empty=s.create(0,n);const o={getKey:e=>e};class r{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},13549:(e,t,i)=>{"use strict";i.d(t,{WU:()=>l,g:()=>c,xH:()=>d});var n=i(16015),s=i(9556),o=i(22671),r=i(41525),a=i(74809);class l{constructor(e,t,i,n,s){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=n,this.astNode=s}}class d{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=r.xl,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,r.Hg)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,r.Ii)(this._offset,e);const t=(0,r.Hw)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,r.Ii)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,r.F_)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,o=n.getCount();let a=null;if(this.lineTokenOffset<o){const l=n.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&l===n.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const d=0===s.N.getTokenType(l),h=s.N.containsBalancedBrackets(l),c=n.getEndOffset(this.lineTokenOffset);if(h&&d&&this.lineCharOffset<c){const e=n.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),i=this.bracketTokens.getSingleLanguageBracketTokens(e),s=i.regExpGlobal;if(s){s.lastIndex=0;const e=s.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=c-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,r.F_)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const n=(0,r.av)(e,t,this.lineIdx,this.lineCharOffset);return new l(n,0,-1,a.tS.getEmpty(),new o.BH(n))}}class c{constructor(e,t){this.text=e,this._offset=r.xl,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+"|\n","gi"):null,s=[];let d,h=0,c=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new l((0,r.Hg)(0,_),0,-1,a.tS.getEmpty(),new o.BH((0,r.Hg)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new l((0,r.Hg)(1,_),0,-1,a.tS.getEmpty(),new o.BH((0,r.Hg)(1,_))));if(n)for(n.lastIndex=0;null!==(d=n.exec(e));){const e=d.index,i=d[0];if("\n"===i)h++,c=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,r.Hg)(0,i);t=new l(e,0,-1,a.tS.getEmpty(),new o.BH(e))}}else{const i=h-g,n=e-c;if(1===i&&n<m.length)t=m[n];else{const e=(0,r.Hg)(i,n);t=new l(e,0,-1,a.tS.getEmpty(),new o.BH(e))}}s.push(t)}s.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,r.Hg)(0,f-u):(0,r.Hg)(h-g,f-c);s.push(new l(e,0,-1,a.tS.getEmpty(),new o.BH(e)))}this.length=(0,r.Hg)(h,f-c),this.tokens=s}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new n.B8}}},81158:(e,t,i)=>{"use strict";i.d(t,{NL:()=>f,e9:()=>m});var n=i(5887),s=i(16015),o=i(24854),r=i(91387),a=i(53687),l=i(9730),d=i(30506);function h(e){return e.toString()}class c{static create(e,t){const i=e.getAlternativeVersionId(),n=p(e);return new c(i,i,n,n,t,t,[])}constructor(e,t,i,n,s,o,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=o,this.changes=r}append(e,t,i,n,s){t.length>0&&(this.changes=(0,a.b)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.T4(e,t?t.length:0,i),i+=4,t)for(const n of t)l.T4(e,n.selectionStartLineNumber,i),i+=4,l.T4(e,n.selectionStartColumn,i),i+=4,l.T4(e,n.positionLineNumber,i),i+=4,l.T4(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.Ag(e,t);t+=4;for(let s=0;s<n;s++){const n=l.Ag(e,t);t+=4;const s=l.Ag(e,t);t+=4;const r=l.Ag(e,t);t+=4;const a=l.Ag(e,t);t+=4,i.push(new o.Y(n,s,r,a))}return t}serialize(){let e=10+c._writeSelectionsSize(this.beforeCursorState)+c._writeSelectionsSize(this.afterCursorState)+4;for(const n of this.changes)e+=n.writeSize();const t=new Uint8Array(e);let i=0;l.T4(t,this.beforeVersionId,i),i+=4,l.T4(t,this.afterVersionId,i),i+=4,l.Cg(t,this.beforeEOL,i),i+=1,l.Cg(t,this.afterEOL,i),i+=1,i=c._writeSelections(t,this.beforeCursorState,i),i=c._writeSelections(t,this.afterCursorState,i),l.T4(t,this.changes.length,i),i+=4;for(const n of this.changes)i=n.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const n=l.Ag(t,i);i+=4;const s=l.Ag(t,i);i+=4;const o=l.Q$(t,i);i+=1;const r=l.Q$(t,i);i+=1;const d=[];i=c._readSelections(t,i,d);const h=[];i=c._readSelections(t,i,h);const u=l.Ag(t,i);i+=4;const g=[];for(let l=0;l<u;l++)i=a.q.read(t,i,g);return new c(n,s,o,r,d,h,g)}}class u{get type(){return 0}get resource(){return r.o.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,n){this.label=e,this.code=t,this.model=i,this._data=c.create(i,n)}toString(){return(this._data instanceof c?this._data:c.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(r.o.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof c}append(e,t,i,n,s){this._data instanceof c&&this._data.append(e,t,i,n,s)}close(){this._data instanceof c&&(this._data=this._data.serialize())}open(){this._data instanceof c||(this._data=c.deserialize(this._data))}undo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof c&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const e=h(n.resource);this._editStackElementsMap.set(e,n)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(r.o.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,n,s){const o=h(e.uri);this._editStackElementsMap.get(o).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,d.EZ)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const s=new u(n.NC("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(s,t),s}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const s=this._getOrCreateEditStackElement(e,n),o=this._model.applyEdits(t,!0),r=f._computeCursorState(i,o),a=o.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),s.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,s.dL)(i),null}}}},67263:(e,t,i)=>{"use strict";i.d(t,{W:()=>u,l:()=>c});var n=i(91206),s=i(78701),o=i(32653),r=i(28928),a=i(42101),l=i(82412),d=i(58410),h=i(16015);class c extends a.U{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.q)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new h.he("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(s&&s.offSide);let r=-2,a=-1,l=-2,d=-1;const c=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,d=-1;for(let t=e;t<n;t++){const e=this._computeIndentLevel(t);if(e>=0){l=t,d=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<n;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,b=0,C=!0,y=0,w=0;for(let h=0;v||C;h++){const s=e-h,r=e+h;h>1&&(s<1||s<t)&&(v=!1),h>1&&(r>n||r>i)&&(C=!1),h>5e4&&(v=!1,C=!1);let p=-1;if(v&&s>=1){const e=this._computeIndentLevel(s-1);e>=0?(l=s-1,d=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(c(s),p=this._getIndentLevelForWhitespaceLine(o,a,d))}let S=-1;if(C&&r<=n){const e=this._computeIndentLevel(r-1);e>=0?(u=r-1,g=e,S=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(r),S=this._getIndentLevelForWhitespaceLine(o,g,m))}if(0!==h){if(1===h){if(r<=n&&S>=0&&w+1===S){v=!1,_=r,b=r,y=S;continue}if(s>=1&&p>=0&&p-1===w){C=!1,_=s,b=s,y=p;continue}if(_=e,b=e,y=w,0===y)return{startLineNumber:_,endLineNumber:b,indent:y}}v&&(p>=y?_=s:v=!1),C&&(S>=y?b=r:C=!1)}else w=p}return{startLineNumber:_,endLineNumber:b,indent:y}}getLinesBracketGuides(e,t,i,o){var a;const l=[];for(let n=e;n<=t;n++)l.push([]);const h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new r.e(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let c;if(i&&h.length>0){const s=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(r.e.fromPositions(i)).toArray()).filter((e=>r.e.strictContainsPosition(e.range,i)));c=null===(a=(0,n.dF)(s,(e=>true)))||void 0===a?void 0:a.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const n of h){if(!n.closingBracketRange)continue;const i=c&&n.range.equalsRange(c);if(!i&&!o.includeInactive)continue;const r=p.getInlineClassName(n.nestingLevel,n.nestingLevelOfEqualBracketType,g)+(o.highlightActive&&i?" "+p.activeClassName:""),a=n.openingBracketRange.getStartPosition(),h=n.closingBracketRange.getStartPosition(),u=o.horizontalGuides===d.s6.Enabled||o.horizontalGuides===d.s6.EnabledForActive&&i;if(n.range.startLineNumber===n.range.endLineNumber){u&&l[n.range.startLineNumber-e].push(new d.UO(-1,n.openingBracketRange.getEndPosition().column,r,new d.vW(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(n.openingBracketRange.getStartPosition()),_=Math.min(f,m,n.minVisibleColumnIndentation+1);let v=!1;s.LC(this.textModel.getLineContent(n.closingBracketRange.startLineNumber))<n.closingBracketRange.startColumn-1&&(v=!0);const b=Math.max(a.lineNumber,e),C=Math.min(h.lineNumber,t),y=v?1:0;for(let t=b;t<C+y;t++)l[t-e].push(new d.UO(_,-1,r,null,t===a.lineNumber?a.column:-1,t===h.lineNumber?h.column:-1));u&&(a.lineNumber>=e&&f>_&&l[a.lineNumber-e].push(new d.UO(_,-1,r,new d.vW(!1,a.column),-1,-1)),h.lineNumber<=t&&m>_&&l[h.lineNumber-e].push(new d.UO(_,-1,r,new d.vW(!v,h.column),-1,-1)))}for(const n of l)n.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return l}getVisibleColumnFromPosition(e){return o.i.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(s&&s.offSide),r=new Array(t-e+1);let a=-2,l=-1,d=-2,h=-1;for(let c=e;c<=t;c++){const t=c-e,s=this._computeIndentLevel(c-1);if(s>=0)a=c-1,l=s,r[t]=Math.ceil(s/n.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=c-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==d&&(-2===d||d<c-1)){d=-1,h=-1;for(let e=c;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){d=e,h=t;break}}}r[t]=this._getIndentLevelForWhitespaceLine(o,l,h)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/n.indentSize):t===i||e?Math.ceil(i/n.indentSize):1+Math.floor(i/n.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},48749:(e,t,i)=>{"use strict";i.d(t,{Ck:()=>r,oQ:()=>o});var n=i(51833),s=i(47228);class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,s.A)(e);const i=this.values,n=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,s.A)(e),t=(0,s.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,s.A)(e),t=(0,s.A)(t);const i=this.values,n=this.prefixSum;if(e>=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,s.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,s=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,s=this.prefixSum[n],o=s-this.values[n],e<o)i=n-1;else{if(!(e>=s))break;t=n+1}return new a(n,e-o)}}class r{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,n.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n<t;n++)this._indexBySum[i+n]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},13277:(e,t,i)=>{"use strict";i.d(t,{HS:()=>Ht,qx:()=>zt,yO:()=>Mt});var n=i(51833),s=i(63932),o=i(16015),r=i(39706),a=i(53186),l=i(78701),d=i(91387),h=i(47056),c=i(42156),u=i(47638),g=i(74633),p=i(28928),m=i(24854),f=i(47998),_=i(91342),v=i(5580),b=i(24032),C=i(35734),y=i(516);class w{constructor(e,t,i,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=n}}class S{constructor(e,t,i,n,s,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=s,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class x extends S{constructor(e,t,i,n,s,o,r){super(e,t,i,n,s,o),this.minVisibleColumnIndentation=r}}var L=i(41432),k=i(6872),D=i(41525),N=i(86649),E=i(74809),T=i(13549),I=i(70266);class M extends a.JT{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.Q5,this.denseKeyProvider=new E.FE,this.brackets=new k.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new T.g(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,N.w)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens(e){let{ranges:t}=e;const i=t.map((e=>new L.Q((0,D.Hg)(e.fromLineNumber-1,0),(0,D.Hg)(e.toLineNumber,0),(0,D.Hg)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(i,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=L.Q.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,I.o)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,I.o)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new T.xH(this.textModel,this.brackets);return(0,N.w)(s,e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,D.Hg)(e.startLineNumber-1,e.startColumn-1),s=(0,D.Hg)(e.endLineNumber-1,e.endColumn-1);return new n.W$((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens;O(n,D.xl,n.length,i,s,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,D.PZ)(e.getStartPosition()),s=(0,D.PZ)(e.getEndPosition());return new n.W$((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens,o=new P(e,t,this.textModel);F(n,D.xl,n.length,i,s,o,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return R(t,D.xl,t.length,(0,D.PZ)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return A(t,D.xl,t.length,(0,D.PZ)(e))}}function A(e,t,i,n){if(4===e.kind||2===e.kind){const s=[];for(const n of e.children)i=(0,D.Ii)(t,n.length),s.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=s.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:o}=s[t];if((0,D.VR)(i,n)){const s=A(e.children[t],i,o,n);if(s)return s}}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qw)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function R(e,t,i,n){if(4===e.kind||2===e.kind){for(const s of e.children){if(i=(0,D.Ii)(t,s.length),(0,D.VR)(n,i)){const e=R(s,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qw)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function O(e,t,i,n,s,o,r,a,l,d){let h=arguments.length>10&&void 0!==arguments[10]&&arguments[10];if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,D.Ii)(t,a.length),(0,D.By)(t,s)&&(0,D.Zq)(i,n)){if((0,D.Zq)(i,s)){e=a;continue e}if(!O(a,t,i,n,s,o,r,0,l,d))return!1}t=i}}return!0}case 2:{const h=!d||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let c=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),c=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,D.Ii)(t,u.length),(0,D.By)(t,s)&&(0,D.Zq)(i,n)){if((0,D.Zq)(i,s)&&1!==u.kind){e=u,h?(r++,a=c+1):a=c;continue e}if(h||1!==u.kind||!e.closingBracket){if(!O(u,t,i,n,s,o,h?r+1:r,h?c+1:c,l,d,!e.closingBracket))return!1}}t=i}}return null===l||void 0===l||l.set(e.openingBracket.text,c),!0}case 3:{const e=(0,D.Qw)(t,i);return o(new w(e,r-1,0,!0))}case 1:{const e=(0,D.Qw)(t,i);return o(new w(e,r-1,a-1,h))}case 0:return!0}}class P{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function F(e,t,i,n,s,o,r,a){var l;if(r>200)return!0;let d=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=(0,D.Ii)(t,e.openingBracket.length);let u=-1;if(o.includeMinIndentation&&(u=e.computeMinIndentation(t,o.textModel)),d=o.push(new x((0,D.Qw)(t,i),(0,D.Qw)(t,c),e.closingBracket?(0,D.Qw)((0,D.Ii)(c,(null===(l=e.child)||void 0===l?void 0:l.length)||D.xl),i):void 0,r,h,e,u)),t=c,d&&e.child){const l=e.child;if(i=(0,D.Ii)(t,l.length),(0,D.By)(t,s)&&(0,D.Zq)(i,n)&&(d=F(l,t,i,n,s,o,r+1,a),!d))return!1}null===a||void 0===a||a.set(e.openingBracket.text,h)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,D.Ii)(i,t.length),(0,D.By)(e,s)&&(0,D.By)(n,i)&&(d=F(t,e,i,n,s,o,r,a),!d))return!1}}return d}class B extends a.JT{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.XK),this.onDidChangeEmitter=new r.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange((e=>{var t;e.languageId&&!(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())})))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.SL;this.bracketPairsTree.value=(e=i.add(new M(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null===t||void 0===t?void 0:t.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||n.W$.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||n.W$.empty}getBracketsInRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(i=this.bracketPairsTree.value)||void 0===i?void 0:i.object.getBracketsInRange(e,t))||n.W$.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const n=this.getBracketPairsInRange(p.e.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),o=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!o)return null;const r=o.textIsBracket[t];return r?H(this._findMatchingBracketUp(r,n,V(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(p.e.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,n.tT)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),p.e.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=V(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),o=t.getLanguageId(n);let r=Math.max(0,e.column-1-i.maxBracketLength);for(let l=n-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=r)break;if((0,C.Bu)(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){r=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let l=n+1;l<s;l++){const e=t.getStartOffset(l);if(e>=a)break;if((0,C.Bu)(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){a=e;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(o)).brackets;if(r&&!(0,C.Bu)(n.getStandardTokenType(o))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,r,o),d=null;for(;;){const n=y.Vr.findNextBracketInRange(r.forwardRegex,i,s,a,l);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=s.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),i=this._matchFoundBracket(n,r.textIsBracket[e],r.textIsOpenBracket[e],t);if(i){if(i instanceof W)return null;d=i}}a=n.endColumn-1}if(d)return d}if(o>0&&n.getStartOffset(o)===e.column-1){const r=o-1,a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!(0,C.Bu)(n.getStandardTokenType(r))){const{searchStartOffset:o,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,a,r),d=y.Vr.findPrevBracketInRange(a.reversedRegex,i,s,o,l);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn){const e=s.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),i=this._matchFoundBracket(d,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof W?null:i}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof W?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let o=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100===0&&!i())return W.INSTANCE;const d=y.Vr.findPrevBracketInRange(s,t,n,a,l);if(!d)break;const h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return d;l=d.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),s=this.textModel.getLineContent(l);let o=i-1,r=s.length,d=s.length;l===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,d=t.column-1);let h=!0;for(;o>=0;o--){const t=e.getLanguageId(o)===n&&!(0,C.Bu)(e.getStandardTokenType(o));if(t)h?r=e.getStartOffset(o):(r=e.getStartOffset(o),d=e.getEndOffset(o));else if(h&&r!==d){const e=a(l,s,r,d);if(e)return e}h=t}if(h&&r!==d){const e=a(l,s,r,d);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let o=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100===0&&!i())return W.INSTANCE;const d=y.Vr.findNextBracketInRange(s,t,n,a,l);if(!d)break;const h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return d;a=d.endColumn-1}return null},l=this.textModel.getLineCount();for(let d=t.lineNumber;d<=l;d++){const e=this.textModel.tokenization.getLineTokens(d),i=e.getCount(),s=this.textModel.getLineContent(d);let o=0,r=0,l=0;d===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,l=t.column-1);let h=!0;for(;o<i;o++){const t=e.getLanguageId(o)===n&&!(0,C.Bu)(e.getStandardTokenType(o));if(t)h||(r=e.getStartOffset(o)),l=e.getEndOffset(o);else if(h&&r!==l){const e=a(d,s,r,l);if(e)return e}h=t}if(h&&r!==l){const e=a(d,s,r,l);if(e)return e}}return null}findPrevBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketBefore(i))||null;let n=null,s=null,o=null;for(let r=i.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),t=e.getCount(),a=this.textModel.getLineContent(r);let l=t-1,d=a.length,h=a.length;if(r===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),d=i.column-1,h=i.column-1;const t=e.getLanguageId(l);n!==t&&(n=t,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let c=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(s&&o&&c&&d!==h){const e=y.Vr.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e);c=!1}n=t,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const i=!!s&&!(0,C.Bu)(e.getStandardTokenType(l));if(i)c?d=e.getStartOffset(l):(d=e.getStartOffset(l),h=e.getEndOffset(l));else if(o&&s&&c&&d!==h){const e=y.Vr.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e)}c=i}if(o&&s&&c&&d!==h){const e=y.Vr.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,o=null,r=null;for(let a=i.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),t=e.getCount(),n=this.textModel.getLineContent(a);let l=0,d=0,h=0;if(a===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),d=i.column-1,h=i.column-1;const t=e.getLanguageId(l);s!==t&&(s=t,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let c=!0;for(;l<t;l++){const t=e.getLanguageId(l);if(s!==t){if(r&&o&&c&&d!==h){const e=y.Vr.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e);c=!1}s=t,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!o&&!(0,C.Bu)(e.getStandardTokenType(l));if(i)c||(d=e.getStartOffset(l)),h=e.getEndOffset(l);else if(r&&o&&c&&d!==h){const e=y.Vr.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e)}c=i}if(r&&o&&c&&d!==h){const e=y.Vr.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=p.e.fromPositions(i),t=this.getBracketPairsInRange(p.e.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=V(t),s=this.textModel.getLineCount(),o=new Map;let r=[];const a=(e,t)=>{if(!o.has(e)){const i=[];for(let e=0,n=t?t.brackets.length:0;e<n;e++)i[e]=0;o.set(e,i)}r=o.get(e)};let l=0;const d=(e,t,i,s,o)=>{for(;;){if(n&&++l%100===0&&!n())return W.INSTANCE;const a=y.Vr.findNextBracketInRange(e.forwardRegex,t,i,s,o);if(!a)break;const d=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[d];if(h&&(h.isOpen(d)?r[h.index]++:h.isClose(d)&&r[h.index]--,-1===r[h.index]))return this._matchFoundBracket(a,h,!1,n);s=a.endColumn-1}return null};let h=null,c=null;for(let u=i.lineNumber;u<=s;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),n=this.textModel.getLineContent(u);let s=0,o=0,r=0;if(u===i.lineNumber){s=e.findTokenIndexAtOffset(i.column-1),o=i.column-1,r=i.column-1;const t=e.getLanguageId(s);h!==t&&(h=t,c=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,c))}let l=!0;for(;s<t;s++){const t=e.getLanguageId(s);if(h!==t){if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e);l=!1}h=t,c=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,c)}const i=!!c&&!(0,C.Bu)(e.getStandardTokenType(s));if(i)l||(o=e.getStartOffset(s)),r=e.getEndOffset(s);else if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e)}l=i}if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function V(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class W{constructor(){this._searchCanceledBrand=void 0}}function H(e){return e instanceof W?null:e}W.INSTANCE=new W;var z=i(12354),j=i(46673);class U extends a.JT{constructor(e){super(),this.textModel=e,this.colorProvider=new K,this.onDidChangeEmitter=new r.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){if(n)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new p.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}class K{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,j.Ic)(((e,t)=>{const i=[z.zJ,z.Vs,z.CE,z.UP,z.r0,z.m1],n=new K;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(z.ts)}; }`);const s=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let o=0;o<30;o++){const e=s[o%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(o)} { color: ${e}; }`)}}));var q=i(81158),$=i(67263);class G{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Y(e,t,i,n,s){let o;for(s.spacesDiff=0,s.looksLikeAlignment=!1,o=0;o<t&&o<n;o++){if(e.charCodeAt(o)!==i.charCodeAt(o))break}let r=0,a=0;for(let u=o;u<t;u++){32===e.charCodeAt(u)?r++:a++}let l=0,d=0;for(let u=o;u<n;u++){32===i.charCodeAt(u)?l++:d++}if(r>0&&a>0)return;if(l>0&&d>0)return;const h=Math.abs(a-d),c=Math.abs(r-l);if(0===h)return s.spacesDiff=c,void(c>0&&0<=l-1&&l-1<e.length&&l<i.length&&32!==i.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(s.looksLikeAlignment=!0));c%h!==0||(s.spacesDiff=c/h)}function Z(e,t,i){const n=Math.min(e.getLineCount(),1e4);let s=0,o=0,r="",a=0;const l=[2,4,6,8,3,5,7],d=[0,0,0,0,0,0,0,0,0],h=new G;for(let g=1;g<=n;g++){const n=e.getLineLength(g),l=e.getLineContent(g),c=n<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=n;t<i;t++){const i=c?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?s++:m>1&&o++,Y(r,a,l,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&d[_]++,r=l,a=p}let c=i;s!==o&&(c=s<o);let u=t;if(c){let e=c?0:.1*n;l.forEach((t=>{const i=d[t];i>e&&(e=i,u=t)})),4===u&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(u=2)}return{insertSpaces:c,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t<<0}function J(e){return(2&e.metadata)>>>1===1}function ee(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function te(e){return(4&e.metadata)>>>2===1}function ie(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ne(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function oe(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class ae{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,ie(this,!1),se(this,!1),oe(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ee(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;ie(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),oe(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const le=new ae(null,0,0);le.parent=le,le.left=le,le.right=le,X(le,0);class de{constructor(){this.root=le,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s,o){return this.root===le?[]:function(e,t,i,n,s,o,r){let a=e.root,l=0,d=0,h=0,c=0;const u=[];let g=0;for(;a!==le;)if(J(a))ee(a.left,!1),ee(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!J(a.left)){if(d=l+a.maxEnd,d<t){ee(a,!0);continue}if(a.left!==le){a=a.left;continue}}if(h=l+a.start,h>i)ee(a,!0);else{if(c=l+a.end,c>=t){a.setCachedOffsets(h,c,o);let e=!0;n&&a.ownerId&&a.ownerId!==n&&(e=!1),s&&te(a)&&(e=!1),r&&!ne(a)&&(e=!1),e&&(u[g++]=a)}ee(a,!0),a.right===le||J(a.right)||(l+=a.delta,a=a.right)}}return ee(e.root,!1),u}(this,e,t,i,n,s,o)}search(e,t,i,n){return this.root===le?[]:function(e,t,i,n,s){let o=e.root,r=0,a=0,l=0;const d=[];let h=0;for(;o!==le;){if(J(o)){ee(o.left,!1),ee(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;continue}if(o.left!==le&&!J(o.left)){o=o.left;continue}a=r+o.start,l=r+o.end,o.setCachedOffsets(a,l,n);let e=!0;t&&o.ownerId&&o.ownerId!==t&&(e=!1),i&&te(o)&&(e=!1),s&&!ne(o)&&(e=!1),e&&(d[h++]=o),ee(o,!0),o.right===le||J(o.right)||(r+=o.delta,o=o.right)}return ee(e.root,!1),d}(this,e,t,i,n)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const n=[];let s=0;for(;i!==le;)J(i)?(ee(i.left,!1),ee(i.right,!1),i=i.parent):i.left===le||J(i.left)?(i.ownerId===t&&(n[s++]=i),ee(i,!0),i.right===le||J(i.right)||(i=i.right)):i=i.left;return ee(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let n=0;for(;t!==le;)J(t)?(ee(t.left,!1),ee(t.right,!1),t=t.parent):t.left===le||J(t.left)?t.right===le||J(t.right)?(i[n++]=t,ee(t,!0)):t=t.right:t=t.left;return ee(e.root,!1),i}(this)}insert(e){ue(this,e),this._normalizeDeltaIfNecessary()}delete(e){ge(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,o=i.end+n;i.setCachedOffsets(s,o,t)}acceptReplace(e,t,i,n){const s=function(e,t,i){let n=e.root,s=0,o=0,r=0,a=0;const l=[];let d=0;for(;n!==le;)if(J(n))ee(n.left,!1),ee(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;else{if(!J(n.left)){if(o=s+n.maxEnd,o<t){ee(n,!0);continue}if(n.left!==le){n=n.left;continue}}r=s+n.start,r>i?ee(n,!0):(a=s+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[d++]=n),ee(n,!0),n.right===le||J(n.right)||(s+=n.delta,n=n.right))}return ee(e.root,!1),l}(this,e,e+t);for(let o=0,r=s.length;o<r;o++){ge(this,s[o])}this._normalizeDeltaIfNecessary(),function(e,t,i,n){let s=e.root,o=0,r=0,a=0;const l=n-(i-t);for(;s!==le;)if(J(s))ee(s.left,!1),ee(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),ve(s),s=s.parent;else{if(!J(s.left)){if(r=o+s.maxEnd,r<t){ee(s,!0);continue}if(s.left!==le){s=s.left;continue}}a=o+s.start,a>i?(s.start+=l,s.end+=l,s.delta+=l,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0),ee(s,!0)):(ee(s,!0),s.right===le||J(s.right)||(o+=s.delta,s=s.right))}ee(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let o=0,r=s.length;o<r;o++){const r=s[o];r.start=r.cachedAbsoluteStart,r.end=r.cachedAbsoluteEnd,ce(r,e,e+t,i,n),r.maxEnd=r.end,ue(this,r)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==le;)t.left===le||J(t.left)?t.right===le||J(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,ve(t),ee(t,!0),ee(t.left,!1),ee(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;ee(e.root,!1)}(this))}}function he(e,t,i,n){return e<i||!(e>i)&&(1!==n&&(2===n||t))}function ce(e,t,i,n,s){const o=function(e){return(24&e.metadata)>>>3}(e),r=0===o||2===o,a=1===o||2===o,l=i-t,d=n,h=Math.min(l,d),c=e.start;let u=!1;const g=e.end;let p=!1;t<=c&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=s?1:l>0?2:0;!u&&he(c,r,t,e)&&(u=!0),!p&&he(g,a,t,e)&&(p=!0)}if(h>0&&!s){const e=l>d?2:0;!u&&he(c,r,t+h,e)&&(u=!0),!p&&he(g,a,t+h,e)&&(p=!0)}{const n=s?1:0;!u&&he(c,r,i,n)&&(e.start=t+d,u=!0),!p&&he(g,a,i,n)&&(e.end=t+d,p=!0)}const m=d-l;u||(e.start=Math.max(0,c+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function ue(e,t){if(e.root===le)return t.parent=le,t.left=le,t.right=le,X(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const s=t.start,o=t.end;for(;;){if(Ce(s,o,n.start+i,n.end+i)<0){if(n.left===le){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===le){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}}t.parent=n,t.left=le,t.right=le,X(t,1)}(e,t),be(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),fe(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,fe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}return X(e.root,0),t}function ge(e,t){let i,n;if(t.left===le?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===le?(i=t.left,n=t):(n=function(e){for(;e.left!==le;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,X(i,0),t.detach(),pe(),ve(i),void(e.root.parent=le);const s=1===Q(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,X(n,Q(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==le&&(n.left.parent=n),n.right!==le&&(n.right.parent=n)),t.detach(),s)return be(i.parent),n!==t&&(be(n),be(n.parent)),void pe();let o;for(be(i),be(i.parent),n!==t&&(be(n),be(n.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(o=i.parent.right,1===Q(o)&&(X(o,0),X(i.parent,1),me(e,i.parent),o=i.parent.right),0===Q(o.left)&&0===Q(o.right)?(X(o,1),i=i.parent):(0===Q(o.right)&&(X(o.left,0),X(o,1),fe(e,o),o=i.parent.right),X(o,Q(i.parent)),X(i.parent,0),X(o.right,0),me(e,i.parent),i=e.root)):(o=i.parent.left,1===Q(o)&&(X(o,0),X(i.parent,1),fe(e,i.parent),o=i.parent.left),0===Q(o.left)&&0===Q(o.right)?(X(o,1),i=i.parent):(0===Q(o.left)&&(X(o.right,0),X(o,1),me(e,o),o=i.parent.left),X(o,Q(i.parent)),X(i.parent,0),X(o.left,0),fe(e,i.parent),i=e.root));X(i,0),pe()}function pe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==le&&(i.left.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,ve(t),ve(i)}function fe(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==le&&(i.right.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,ve(t),ve(i)}function _e(e){let t=e.end;if(e.left!==le){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==le){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function ve(e){e.maxEnd=_e(e)}function be(e){for(;e!==le;){const t=_e(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,n){return e===i?t-n:e-i}class ye{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==we)return Se(this.right);let e=this;for(;e.parent!==we&&e.parent.left!==e;)e=e.parent;return e.parent===we?we:e.parent}prev(){if(this.left!==we)return xe(this.left);let e=this;for(;e.parent!==we&&e.parent.right!==e;)e=e.parent;return e.parent===we?we:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const we=new ye(null,0);function Se(e){for(;e.left!==we;)e=e.left;return e}function xe(e){for(;e.right!==we;)e=e.right;return e}function Le(e){return e===we?0:e.size_left+e.piece.length+Le(e.right)}function ke(e){return e===we?0:e.lf_left+e.piece.lineFeedCnt+ke(e.right)}function De(){we.parent=we}function Ne(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==we&&(i.left.parent=t),i.parent=t.parent,t.parent===we?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function Ee(e,t){const i=t.left;t.left=i.right,i.right!==we&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===we?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function Te(e,t){let i,n;if(t.left===we?(n=t,i=n.right):t.right===we?(n=t,i=n.left):(n=Se(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),De(),void(e.root.parent=we);const s=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Ae(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Ae(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==we&&(n.left.parent=n),n.right!==we&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Ae(e,n)),t.detach(),i.parent.left===i){const t=Le(i),n=ke(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const s=t-i.parent.size_left,o=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Me(e,i.parent,s,o)}}if(Ae(e,i.parent),s)return void De();let o;for(;i!==e.root&&0===i.color;)i===i.parent.left?(o=i.parent.right,1===o.color&&(o.color=0,i.parent.color=1,Ne(e,i.parent),o=i.parent.right),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.right.color&&(o.left.color=0,o.color=1,Ee(e,o),o=i.parent.right),o.color=i.parent.color,i.parent.color=0,o.right.color=0,Ne(e,i.parent),i=e.root)):(o=i.parent.left,1===o.color&&(o.color=0,i.parent.color=1,Ee(e,i.parent),o=i.parent.left),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.left.color&&(o.right.color=0,o.color=1,Ne(e,o),o=i.parent.left),o.color=i.parent.color,i.parent.color=0,o.left.color=0,Ee(e,i.parent),i=e.root));i.color=0,De()}function Ie(e,t){for(Ae(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Ne(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ee(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Ee(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ne(e,t.parent.parent))}e.root.color=0}function Me(e,t,i,n){for(;t!==e.root&&t!==we;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Ae(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=Le((t=t.parent).left)-t.size_left,n=ke(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}we.parent=we,we.left=we,we.right=we,we.color=0;var Re=i(39471);const Oe=65535;function Pe(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Fe{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Be(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=[0];let n=1;for(let s=0,o=e.length;s<o;s++){const t=e.charCodeAt(s);13===t?s+1<o&&10===e.charCodeAt(s+1)?(i[n++]=s+2,s++):i[n++]=s+1:10===t&&(i[n++]=s+1)}return t?Pe(i):i}class Ve{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class We{constructor(e,t){this.buffer=e,this.lineStarts=t}}class He{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==we&&e.iterate(e.root,(e=>(e!==we&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class ze{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n<i.length;n++){const s=i[n];(null===s.node.parent||s.nodeStartOffset>=e)&&(i[n]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class je{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new We("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=we,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,o=e.length;s<o;s++)if(e[s].buffer.length>0){e[s].lineStarts||(e[s].lineStarts=Be(e[s].buffer));const t=new Ve(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,t)}this._searchCache=new ze(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=65535-Math.floor(21845),i=2*t;let n="",s=0;const o=[];if(this.iterate(this.root,(r=>{const a=this.getNodeContent(r),l=a.length;if(s<=t||s+l<i)return n+=a,s+=l,!0;const d=n.replace(/\r\n|\r|\n/g,e);return o.push(new We(d,Be(d))),n=a,s=l,!0})),s>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new We(t,Be(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new He(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==we;)if(n.left!==we&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;return i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1)}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==we;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){const e=n-this.getOffsetAt(i+1,1);return new g.L(i+1,e+1)}return new g.L(i+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===we){const t=n-e-this.getOffsetAt(i+1,1);return new g.L(i+1,t+1)}t=t.right}return new g.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(s+e.remainder,s+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let o=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==we;){const e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){o+=e.substring(n,n+t.remainder);break}o+=e.substr(n,i.piece.length),i=i.next()}return o}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,(s=>{if(s===we)return!0;const o=s.piece;let r=o.length;if(0===r)return!0;const a=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,d=o.start.line,h=o.end.line;let c=l[d]+o.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(d===h)return this._EOLNormalized||13!==a.charCodeAt(c+r-1)?i+=a.substr(c,r):(n=!0,i+=a.substr(c,r-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,l[d+1]-this._EOLLength)):a.substring(c,l[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=d+1;n<h;n++)i=this._EOLNormalized?a.substring(l[n],l[n+1]-this._EOLLength):a.substring(l[n],l[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(l[h]+o.end.column-1)?i=a.substr(l[h],o.end.column):(n=!0,0===o.end.column?t--:i=a.substr(l[h],o.end.column-1)),!0})),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],n=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(n)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,s,o,r,a,l,d,h){const c=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,s),m=this.offsetInBuffer(e.piece.bufferIndex,o);let f;const _={line:0,column:0};let v,b;t._wordSeparators?(v=c.buffer.substring(g,m),b=e=>e+g,t.reset(0)):(v=c.buffer,b=e=>e,t.reset(g));do{if(f=t.next(v),f){if(b(f.index)>=m)return d;this.positionInBuffer(e,b(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,s,_),o=_.line===s.line?_.column-s.column+n:_.column+1,r=o+f[0].length;if(h[d++]=(0,Re.iE)(new p.e(i+t,o,i+t,r),f,a),b(f.index)+f[0].length>=m)return d;if(d>=l)return d}}while(f);return d}findMatchesLineByLine(e,t,i,n){const s=[];let o=0;const r=new Re.sz(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let d=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,h,t,i,n,o,s),s;let c=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,d,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[d.line+l],p=c===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(u,r,c,p,d,this.positionInBuffer(u,g-h),t,i,n,o,s),o>=n)return s;c+=l}const h=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){const a=this.getLineContent(c).substring(h,e.endColumn-1);return o=this._findMatchesInLine(t,r,a,e.endLineNumber,h,o,s,i,n),s}if(o=this._findMatchesInLine(t,r,this.getLineContent(c).substr(h),c,h,o,s,i,n),o>=n)return s;c++,a=this.nodeAt2(c,1),u=a.node,d=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){const a=c===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(c).substring(a,e.endColumn-1);return o=this._findMatchesInLine(t,r,l,e.endLineNumber,a,o,s,i,n),s}const g=c===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,r,c,g,d,h,t,i,n,o,s),s}_findMatchesInLine(e,t,i,n,s,o,r,a,l){const d=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let c=-a;for(;-1!==(c=i.indexOf(t,c+a));)if((!d||(0,Re.cM)(d,i,h,c,a))&&(r[o++]=new b.tk(new p.e(n,c+1+s,n,c+1+a+s),null),o>=l))return o;return o}let h;t.reset(0);do{if(h=t.next(i),h&&(r[o++]=(0,Re.iE)(new p.e(n,h.index+1+s,n,h.index+1+h[0].length+s),h,a),o>=l))return o}while(h);return o}insert(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==we){const{node:i,remainder:n,nodeStartOffset:s}=this.nodeAt(e),o=i.piece,r=o.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&s+o.length===e&&t.length<Oe)return this.appendToNode(i,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(s+i.piece.length>e){const e=[];let s=new Ve(o.bufferIndex,a,o.end,this.getLineFeedCnt(o.bufferIndex,a,o.end),this.offsetInBuffer(r,o.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,n)){const e={line:s.start.line+1,column:0};s=new Ve(s.bufferIndex,e,s.end,this.getLineFeedCnt(s.bufferIndex,e,s.end),s.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){const s=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,s),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);s.length>0&&this.rbInsertRight(i,s);let d=i;for(let t=0;t<l.length;t++)d=this.rbInsertRight(d,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===we)return;const i=this.nodeAt(e),n=this.nodeAt(e+t),s=i.node,o=n.node;if(s===o){const o=this.positionInBuffer(s,i.remainder),r=this.positionInBuffer(s,n.remainder);if(i.nodeStartOffset===e){if(t===s.piece.length){const e=s.next();return Te(this,s),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(s,r),this._searchCache.validate(e),this.validateCRLFWithPrevNode(s),void this.computeBufferMetadata()}return i.nodeStartOffset+s.piece.length===e+t?(this.deleteNodeTail(s,o),this.validateCRLFWithNextNode(s),void this.computeBufferMetadata()):(this.shrinkNode(s,o,r),void this.computeBufferMetadata())}const r=[],a=this.positionInBuffer(s,i.remainder);this.deleteNodeTail(s,a),this._searchCache.validate(e),0===s.piece.length&&r.push(s);const l=this.positionInBuffer(o,n.remainder);this.deleteNodeHead(o,l),0===o.piece.length&&r.push(o);for(let h=s.next();h!==we&&h!==o;h=h.next())r.push(h);const d=0===s.piece.length?s.prev():s;this.deleteNodes(r),this.validateCRLFWithNextNode(d),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const n=t.piece,s={line:n.start.line+1,column:0},o=new Ve(n.bufferIndex,s,n.end,this.getLineFeedCnt(n.bufferIndex,s,n.end),n.length-1);t.piece=o,e+="\n",Me(this,t,-1,-1),0===t.piece.length&&i.push(t)}const n=this.createNewPieces(e);let s=this.rbInsertLeft(t,n[n.length-1]);for(let o=n.length-2;o>=0;o--)s=this.rbInsertLeft(s,n[o]);this.validateCRLFWithPrevNode(s),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let s=n;for(let o=1;o<i.length;o++)s=this.rbInsertRight(s,i[o]);this.validateCRLFWithPrevNode(n)}positionInBuffer(e,t,i){const n=e.piece,s=e.piece.bufferIndex,o=this._buffers[s].lineStarts,r=o[n.start.line]+n.start.column+t;let a=n.start.line,l=n.end.line,d=0,h=0,c=0;for(;a<=l&&(d=a+(l-a)/2|0,c=o[d],d!==l);)if(h=o[d+1],r<c)l=d-1;else{if(!(r>=h))break;a=d+1}return i?(i.line=d,i.column=r-c,null):{line:d,column:r-c}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const s=n[i.line+1],o=n[i.line]+i.column;if(s>o+1)return i.line-t.line;const r=o-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Te(this,e[t])}createNewPieces(e){if(e.length>Oe){const t=[];for(;e.length>Oe;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,Oe),e=e.substring(Oe));const s=Be(n);t.push(new Ve(this._buffers.length,{line:0,column:0},{line:s.length-1,column:n.length-s[s.length-1]},s.length-1,n.length)),this._buffers.push(new We(n,s))}const i=Be(e);return t.push(new Ve(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new We(e,i)),t}let t=this._buffers[0].buffer.length;const i=Be(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const s=this._buffers[0].buffer.length,o=this._buffers[0].lineStarts.length-1,r={line:o,column:s-this._buffers[0].lineStarts[o]},a=new Ve(0,n,r,this.getLineFeedCnt(0,n,r),s-t);return this._lastChangeBufferPos=r,[a]}getLineRawContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.root,n="";const s=this._searchCache.get2(e);if(s){i=s.node;const o=this.getAccumulatedValue(i,e-s.nodeStartLineNumber-1),r=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(s.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const n=this.getAccumulatedValue(i,e-s.nodeStartLineNumber);return r.substring(a+o,a+n-t)}n=r.substring(a+o,a+i.piece.length)}else{let s=0;const o=e;for(;i!==we;)if(i.left!==we&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:s,nodeStartLineNumber:o-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),s=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=s.substring(o+t,o+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==we;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(i,0),o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(o,o+s-t),n}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==we;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),s=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==s)return{index:t,remainder:0}}return{index:s,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,s=i.start.line+t+1;return s>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[s]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.end),o=t,r=this.offsetInBuffer(i.bufferIndex,o),a=this.getLineFeedCnt(i.bufferIndex,i.start,o),l=a-n,d=r-s,h=i.length+d;e.piece=new Ve(i.bufferIndex,i.start,o,a,h),Me(this,e,d,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.start),o=t,r=this.getLineFeedCnt(i.bufferIndex,o,i.end),a=r-n,l=s-this.offsetInBuffer(i.bufferIndex,o),d=i.length+l;e.piece=new Ve(i.bufferIndex,o,i.end,r,d),Me(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,s=n.start,o=n.end,r=n.length,a=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,s);e.piece=new Ve(n.bufferIndex,n.start,l,d,h),Me(this,e,h-r,d-a);const c=new Ve(n.bufferIndex,i,o,this.getLineFeedCnt(n.bufferIndex,i,o),this.offsetInBuffer(n.bufferIndex,o)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const s=Be(t,!1);for(let c=0;c<s.length;c++)s[c]+=n;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1));const o=this._buffers[0].lineStarts.length-1,r={line:o,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[o]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,r),h=d-l;e.piece=new Ve(e.piece.bufferIndex,e.piece.start,r,d,a),this._lastChangeBufferPos=r,Me(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let n=0;for(;t!==we;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==we;)if(i.left!==we&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(s+t-1,o),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2);if(s+t-1<=i.piece.length)return{node:i,remainder:s+t-1,nodeStartOffset:n};t-=i.piece.length-s;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==we;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===we||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,s=i[n]+t.start.column;if(n===i.length-1)return!1;return!(i[n+1]>s+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(s)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==we&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let s;s=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new Ve(e.piece.bufferIndex,e.piece.start,s,r,o),Me(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ve(t.piece.bufferIndex,a,t.piece.end,d,l),Me(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let c=0;c<i.length;c++)Te(this,i[c])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)Te(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},n=e.length-1,s=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ve(e.bufferIndex,t,e.end,s,n),Me(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===we)return t(we);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===we)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,n=this.offsetInBuffer(i.bufferIndex,i.start),s=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(n,s)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),n=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,n)}rbInsertRight(e,t){const i=new ye(t,1);i.left=we,i.right=we,i.parent=we,i.size_left=0,i.lf_left=0;if(this.root===we)this.root=i,i.color=0;else if(e.right===we)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ie(this,i),i}rbInsertLeft(e,t){const i=new ye(t,1);if(i.left=we,i.right=we,i.parent=we,i.size_left=0,i.lf_left=0,this.root===we)this.root=i,i.color=0;else if(e.left===we)e.left=i,i.parent=e;else{const t=xe(e.left);t.right=i,i.parent=t}return Ie(this,i),i}}var Ue=i(53687);class Ke extends a.JT{constructor(e,t,i,n,s,o,a){super(),this._onDidChangeContent=this._register(new r.Q5),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._pieceTree=new je(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,n=this.getPositionAt(e),s=this.getPositionAt(i);return new p.e(n.lineNumber,n.column,s.lineNumber,s.column)}getValueInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),n=this.getOffsetAt(e.endLineNumber,e.endColumn);let s=0;const o=this._getEndOfLine(t),r=this.getEOL();if(o.length!==r.length){s=(o.length-r.length)*(e.endLineNumber-e.startLineNumber)}return n-i+s}getCharacterCountInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._mightContainNonBasicASCII){let i=0;const n=e.startLineNumber,s=e.endLineNumber;for(let t=n;t<=s;t++){const o=this.getLineContent(t),r=t===n?e.startColumn-1:0,a=t===s?e.endColumn-1:o.length;for(let e=r;e<a;e++)l.ZG(o.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(s-n),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=l.LC(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=l.ow(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let n=this._mightContainRTL,s=this._mightContainUnusualLineTerminators,o=this._mightContainNonBasicASCII,r=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];r&&t._isTracked&&(r=!1);const i=t.range;if(t.text){let e=!0;o||(e=!l.$i(t.text),o=e),!n&&e&&(n=l.Ut(t.text)),!s&&e&&(s=l.ab(t.text))}let d="",c=0,u=0,g=0;if(t.text){let e;[c,u,g,e]=(0,h.Q)(t.text);const i=this.getEOL();d=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:d,eolCount:c,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ke._sortOpsAscending);let d=!1;for(let l=0,h=a.length-1;l<h;l++){const e=a[l].range.getEndPosition(),t=a[l+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");d=!0}}r&&(a=this._reduceOperations(a));const c=i||t?Ke._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=c[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let n="";i===t.startLineNumber&&(n=this.getLineContent(e.range.startLineNumber),-1!==l.LC(n))||u.push({lineNumber:i,oldContent:n})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],n=c[t],s=this.getValueInRange(i.range),o=i.rangeOffset+e;e+=i.text.length-s.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:n,text:s,textChange:new Ue.q(i.rangeOffset,s,o,i.text)}}d||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=o;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===l.LC(n)&&m.push(t)}}return this._onDidChangeContent.fire(),new b.je(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,s=new p.e(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let o=i.startLineNumber,r=i.startColumn;const a=[];for(let h=0,g=e.length;h<g;h++){const i=e[h],n=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new p.e(o,r,n.startLineNumber,n.startColumn))),i.text.length>0&&a.push(i.text),o=n.endLineNumber,r=n.endColumn}const l=a.join(""),[d,c,u]=(0,h.Q)(l);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:l,eolCount:d,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ke._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const n=e[i],s=n.range.startLineNumber,o=n.range.startColumn,r=n.range.endLineNumber,a=n.range.endColumn;if(s===r&&o===a&&0===n.text.length)continue;n.text?(this._pieceTree.delete(n.rangeOffset,n.rangeLength),this._pieceTree.insert(n.rangeOffset,n.text,!0)):this._pieceTree.delete(n.rangeOffset,n.rangeLength);const l=new p.e(s,o,r,a);t.push({range:l,rangeLength:n.rangeLength,text:n.text,rangeOffset:n.rangeOffset,forceMoveMarkers:n.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,n){return this._pieceTree.findMatchesLineByLine(e,t,i,n)}static _getInverseEditRanges(e){const t=[];let i=0,n=0,s=null;for(let o=0,r=e.length;o<r;o++){const r=e[o];let a,l,d;if(s?s.range.endLineNumber===r.range.startLineNumber?(a=i,l=n+(r.range.startColumn-s.range.endColumn)):(a=i+(r.range.startLineNumber-s.range.endLineNumber),l=r.range.startColumn):(a=r.range.startLineNumber,l=r.range.startColumn),r.text.length>0){const e=r.eolCount+1;d=1===e?new p.e(a,l,a,l+r.firstLineLength):new p.e(a,l,a+e-1,r.lastLineLength+1)}else d=new p.e(a,l,a,l);i=d.endLineNumber,n=d.endColumn,t.push(d),s=r}return t}static _sortOpsAscending(e,t){const i=p.e.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=p.e.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class qe{constructor(e,t,i,n,s,o,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=s,this._containsRTL=o,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let s=0,o=i.length;s<o;s++){const e=i[s].buffer.replace(/\r\n|\r|\n/g,t),n=Be(e);i[s]=new We(e,n)}const n=new Ke(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}class $e{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&l.uS(e)&&(this.BOM=l.c1,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,s=0,o=0,r=!0;for(let l=0,d=t.length;l<d;l++){const a=t.charCodeAt(l);13===a?l+1<d&&10===t.charCodeAt(l+1)?(o++,e[i++]=l+2,l++):(n++,e[i++]=l+1):10===a?(s++,e[i++]=l+1):r&&9!==a&&(a<32||a>126)&&(r=!1)}const a=new Fe(Pe(e),n,s,o,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new We(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=l.Ut(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=l.ab(e)))}finish(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._finish(),new qe(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Be(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ge=i(53372),Ye=i(67331),Ze=i(18841),Qe=i(42101),Xe=i(90388),Je=i(6617),et=i(93845),tt=i(31708);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const n=this._store.slice(0,e),s=this._store.slice(e+t),o=function(e,t){const i=[];for(let n=0;n<e;n++)i[n]=t;return i}(i,this._default);this._store=n.concat(o,s)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let n=0;n<t;n++)i[n]=this._default;this._store=(0,n.Zv)(this._store,e,i)}}class nt{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class st{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new nt(e,[t]))}finalize(){return this._tokens}}var ot=i(34415);class rt{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lt(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends rt{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const s=this._textModel.getLineContent(n.lineNumber),o=ct(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n.startState);e.add(n.lineNumber,o.tokens),this.store.setEndState(n.lineNumber,o.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),o=s.substring(0,e.column-1)+t+s.substring(e.column-1),r=ct(this._languageIdCodec,n,this.tokenizationSupport,o,!0,i),a=new ot.A(r.tokens,o,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column,o=this.getStartState(n);if(!o)return null;const r=this._textModel.getLineContent(n),a=r.substring(0,s-1)+i+r.substring(s-1+t),l=this._textModel.getLanguageIdAtPosition(n,0),d=ct(this._languageIdCodec,l,this.tokenizationSupport,a,!0,o);return new ot.A(d.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let n=this.guessStartState(t);const s=this._textModel.getLanguageId();for(let o=t;o<=i;o++){const t=this._textModel.getLineContent(o),i=ct(this._languageIdCodec,s,this.tokenizationSupport,t,!0,n);e.add(o,i.tokens),n=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let n=null;for(let r=e-1;t>1&&r>=1;r--){const e=this._textModel.getLineFirstNonWhitespaceColumn(r);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(r)),t=e,n=this.getStartState(r),n)))break}n||(n=this.tokenizationSupport.getInitialState()),i.reverse();const s=this._textModel.getLanguageId();let o=n;for(const r of i){o=ct(this._languageIdCodec,s,this.tokenizationSupport,r,!1,o).endState}return o}}class lt{constructor(e){this.lineCount=e,this._tokenizationStateStore=new dt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.q(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new o.he("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.q(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.q(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.Q)(t.text);this.acceptChange(new u.z(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.q(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new o.he("Start state must be defined");return{lineNumber:t,startState:i}}}class dt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.q(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.q(i.start,e):this._ranges.splice(t,1,new et.q(i.start,e),new et.q(e+1,i.endExclusive))}}addRange(e){et.q.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusive<this._ranges[n].start);)n++;const s=t-e.length;for(let o=n;o<this._ranges.length;o++)this._ranges[o]=this._ranges[o].delta(s);if(i===n){const n=new et.q(e.start,e.start+t);n.isEmpty||this._ranges.splice(i,0,n)}else{const t=Math.min(e.start,this._ranges[i].start),o=Math.max(e.endExclusive,this._ranges[n-1].endExclusive),r=new et.q(t,o+s);r.isEmpty?this._ranges.splice(i,n-i):this._ranges.splice(i,n-i,r)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ct(e,t,i,n,s,r){let a=null;if(i)try{a=i.tokenizeEncoded(n,s,r.clone())}catch(l){(0,o.dL)(l)}return a||(a=(0,tt.Dy)(e.encodeLanguageId(t),r)),ot.A.convertToEndOffset(a.tokens,n.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Ge.jg)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Xe.fn)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new st,i=Je.G.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){var t;const i=null===(t=this._tokenizerWithStateStore)||void 0===t?void 0:t.getFirstInvalidLine();return i?(this._tokenizerWithStateStore.updateTokensUntilLine(e,i.lineNumber),i.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new u.z(e,t))}}const gt=new Uint32Array(0).buffer;class pt{static deleteBeginning(e,t){return null===e||e===gt?e:pt.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===gt)return e;const i=mt(e),n=i[i.length-2];return pt.delete(e,t,n)}static delete(e,t,i){if(null===e||e===gt||t===i)return e;const n=mt(e),s=n.length>>>1;if(0===t&&n[n.length-2]===i)return gt;const o=ot.A.findIndexInTokensArray(n,t),r=o>0?n[o-1<<1]:0;if(i<n[o<<1]){const r=i-t;for(let e=o;e<s;e++)n[e<<1]-=r;return e}let a,l;r!==t?(n[o<<1]=t,a=o+1<<1,l=t):(a=o<<1,l=r);const d=i-t;for(let c=o+1;c<s;c++){const e=n[c<<1]-d;e>l&&(n[a++]=e,n[a++]=n[1+(c<<1)],l=e)}if(a===n.length)return e;const h=new Uint32Array(a);return h.set(n.subarray(0,a),0),h.buffer}static append(e,t){if(t===gt)return e;if(e===gt)return t;if(null===e)return e;if(null===t)return null;const i=mt(e),n=mt(t),s=n.length>>>1,o=new Uint32Array(i.length+n.length);o.set(i,0);let r=i.length;const a=i[i.length-2];for(let l=0;l<s;l++)o[r++]=n[l<<1]+a,o[r++]=n[1+(l<<1)];return o.buffer}static insert(e,t,i){if(null===e||e===gt)return e;const n=mt(e),s=n.length>>>1;let o=ot.A.findIndexInTokensArray(n,t);if(o>0){n[o-1<<1]===t&&o--}for(let r=o;r<s;r++)n[r<<1]+=i;return e}}function mt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var ft=i(9556);class _t{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let n=null;if(t<this._len&&(n=this._lineTokens[t]),null!==n&&n!==gt)return new ot.A(mt(n),i,this._languageIdCodec);const s=new Uint32Array(2);return s[0]=i.length,s[1]=vt(this._languageIdCodec.encodeLanguageId(e)),new ot.A(s,i,this._languageIdCodec)}static _massageTokens(e,t,i){const n=i?mt(i):null;if(0===t){let t=!1;if(n&&n.length>1&&(t=ft.N.getLanguageId(n[1])!==e),!t)return gt}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=vt(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let n=0;n<t;n++)i[n]=null;this._lineTokens=n.Zv(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,n,s){const o=_t._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,n);this._ensureLine(t);const r=this._lineTokens[t];return this._lineTokens[t]=o,!!s&&!_t._equals(r,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=mt(e),n=mt(t);if(i.length!==n.length)return!1;for(let s=0,o=i.length;s<o;s++)if(i[s]!==n[s])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new g.L(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=pt.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=pt.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i<this._len&&(n=pt.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=pt.append(this._lineTokens[t],n),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const n=e.lineNumber-1;n>=this._len||(0!==t?(this._lineTokens[n]=pt.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=pt.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=pt.insert(this._lineTokens[n],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];let o=0,r=0,a=!1;for(let e=s.startLineNumber;e<=s.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),s.getLineTokens(e),!1),r=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),s.getLineTokens(e),!0)&&(a=!0,o=e,r=e)}a&&i.push({fromLineNumber:o,toLineNumber:r})}return{changes:i}}}function vt(e){return(32768|e<<0|2<<24|1024)>>>0}class bt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),s=t[t.length-1].getRange();if(!n||!s)return e;i=e.plusRange(n).plusRange(s)}let s=null;for(let n=0,o=this._pieces.length;n<o;n++){const e=this._pieces[n];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){s=s||{index:n};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(n,1),n--,o--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){s=s||{index:n};continue}const[t,r]=e.split(i);t.isEmpty()?s=s||{index:n}:r.isEmpty()||(this._pieces.splice(n,1,t,r),n++,o++,s=s||{index:n})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=n.Zv(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const n=i[bt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const s=t.getCount(),o=n.getCount();let r=0;const a=[];let l=0,d=0;const h=(e,t)=>{e!==d&&(d=e,a[l++]=e,a[l++]=t)};for(let c=0;c<o;c++){const e=n.getStartCharacter(c),i=n.getEndCharacter(c),o=n.getMetadata(c),a=((1&o?2048:0)|(2&o?4096:0)|(4&o?8192:0)|(8&o?16384:0)|(16&o?16744448:0)|(32&o?4278190080:0))>>>0,l=~a>>>0;for(;r<s&&t.getEndOffset(r)<=e;)h(t.getEndOffset(r),t.getMetadata(r)),r++;for(r<s&&t.getStartOffset(r)<e&&h(e,t.getMetadata(r));r<s&&t.getEndOffset(r)<i;)h(t.getEndOffset(r),t.getMetadata(r)&l|o&a),r++;if(r<s)h(i,t.getMetadata(r)&l|o&a),t.getEndOffset(r)===i&&r++;else{const e=Math.min(Math.max(0,r-1),s-1);h(i,t.getMetadata(e)&l|o&a)}}for(;r<s;)h(t.getEndOffset(r),t.getMetadata(r)),r++;return new ot.A(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,n=e.length-1;for(;i<n;){let s=i+Math.floor((n-i)/2);if(e[s].endLineNumber<t)i=s+1;else{if(!(e[s].startLineNumber>t)){for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}n=s-1}}return i}acceptEdit(e,t,i,n,s){for(const o of this._pieces)o.acceptEdit(e,t,i,n,s)}}class Ct extends Qe.U{constructor(e,t,i,n,s,o){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=s,this._attachedViews=o,this._semanticTokens=new bt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.Q5),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.Q5),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.Q5),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new yt(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews)),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(this.grammarTokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,n]=(0,h.Q)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,n,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new o.he("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[o,r]=Ct._findLanguageBoundaries(n,s),a=(0,Ye.t2)(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(o,r),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(s>0&&o===t.column-1){const[o,r]=Ct._findLanguageBoundaries(n,s-1),a=(0,Ye.t2)(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(o,r),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let s=e.getLineContent().length;for(let o=t,r=e.getCount();o<r&&e.getLanguageId(o)===i;o++)s=e.getEndOffset(o);return[n,s]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new g.L(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}setLanguageId(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this.grammarTokens.resetTokenization(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}}class yt extends a.JT{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.XK),this._tokens=new _t(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.XK),this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.Q5),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.Q5),this.onDidChangeTokens=this._onDidChangeTokens.event,this._attachedViewStates=this._register(new a.b2),this._register(Ze.RW.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((e=>{let{view:t,state:i}=e;if(i){let e=this._attachedViewStates.get(t);e||(e=new wt((()=>this.refreshRanges(e.lineRanges))),this._attachedViewStates.set(t,e)),e.handleStateChange(i)}else this._attachedViewStates.deleteAndDispose(t)})))}resetTokenization(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;this._tokens.flush(),null===(t=this._debugBackgroundTokens)||void 0===t||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lt(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[i,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Ze.RW.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,o.dL)(i),[null,null]}return[e,t]})();if(this._tokenizer=i&&n?new at(this._textModel.getLineCount(),i,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{var i;if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&(null===(i=this._tokenizer)||void 0===i||i.store.setEndState(e,t))}};i&&i.createBackgroundTokenizer&&!i.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),(null===i||void 0===i?void 0:i.backgroundTokenizerShouldOnlyVerifyTokens)&&i.createBackgroundTokenizer?(this._debugBackgroundTokens=new _t(this._languageIdCodec),this._debugBackgroundStates=new lt(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,{setTokens:e=>{var t;null===(t=this._debugBackgroundTokens)||void 0===t||t.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{var i;null===(i=this._debugBackgroundStates)||void 0===i||i.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;null===(e=this._defaultBackgroundTokenizer)||void 0===e||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const i of e.changes){const[e,n]=(0,h.Q)(i.text);this._tokens.acceptEdit(i.range,e,n),null===(t=this._debugBackgroundTokens)||void 0===t||t.acceptEdit(i.range,e,n)}null===(i=this._debugBackgroundStates)||void 0===i||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=u.z.joinMany([...this._attachedViewStates].map((e=>{let[t,i]=e;return i.lineRanges})));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const s=new st,{heuristicTokens:o}=this._tokenizer.tokenizeHeuristically(s,e,t),r=this.setTokens(s.finalize());if(o)for(const a of r.changes)null===(i=this._backgroundTokenizer.value)||void 0===i||i.requestTokens(a.fromLineNumber,a.toLineNumber+1);null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.checkFinished()}forceTokenization(e){var t,i;const n=new st;null===(t=this._tokenizer)||void 0===t||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),null===(i=this._defaultBackgroundTokenizer)||void 0===i||i.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(s)&&(null===(t=this._debugBackgroundTokenizer.value)||void 0===t?void 0:t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new g.L(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class wt extends a.JT{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Ge.pY((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,n.fS)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}var St,xt=i(75324),Lt=i(40938),kt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Dt=function(e,t){return function(i,n){t(i,n,e)}};function Nt(e,t){let i;return i="string"===typeof e?function(e){const t=new $e;return t.acceptChunk(e),t.finish()}(e):b.Hf(e)?function(e){const t=new $e;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Et=0;class Tt{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const It=()=>{throw new Error("Invalid change accessor")};let Mt=St=class extends a.JT{static resolveOptions(e,t){if(t.detectIndentation){const i=Z(e,t.tabSize,t.insertSpaces);return new b.dJ({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new b.dJ(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.F8)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,h=arguments.length>6?arguments[6]:void 0;super(),this._undoRedoService=s,this._languageService=o,this._languageConfigurationService=h,this._onWillDispose=this._register(new r.Q5),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Kt((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.Q5),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.Q5),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.Q5),this._eventEmitter=this._register(new qt),this._languageSelectionListener=this._register(new a.XK),this._deltaDecorationCallCnt=0,this._attachedViews=new $t,Et++,this.id="$model"+Et,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof n||null===n?d.o.parse("inmemory://model/"+Et):n,this._attachedEditorCount=0;const{textBuffer:c,disposable:u}=Nt(e,i.defaultEOL);this._buffer=c,this._bufferDisposable=u,this._options=St.resolveOptions(this._buffer,i);const g="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new B(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new $.l(this,this._languageConfigurationService)),this._decorationProvider=this._register(new U(this)),this._tokenizationTextModelPart=new Ct(this._languageService,this._languageConfigurationService,this,this._bracketPairs,g,this._attachedViews);const m=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new p.e(1,1,m,this._buffer.getLineLength(m)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=f>St.LARGE_FILE_SIZE_THRESHOLD||m>St.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=f>St.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=f>St._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=l.PJ(Et),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ot,this._commandManager=new q.NL(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(g)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ke([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.JT.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new xt.fV(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,o.b1)();const{textBuffer:t,disposable:i}=Nt(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,o,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:s,isRedoing:o,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Ot,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new xt.dQ([new xt.Jx],this._versionId,!1,!1),this._createContentChanged2(new p.e(1,1,s,o),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new xt.dQ([new xt.CZ],this._versionId,!1,!1),this._createContentChanged2(new p.e(1,1,s,o),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i<n;i++){const n=t[i],s=n.range,o=n.cachedAbsoluteStart-n.start,r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);n.cachedAbsoluteStart=r,n.cachedAbsoluteEnd=a,n.cachedVersionId=e,n.start=r-o,n.end=a-o,ve(n)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,n="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,s="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new b.dJ({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:o});if(this._options.equals(r))return;const a=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=Z(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,c.x)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.findMatches(l.Qe.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new o.he("Operation would exceed heap memory limits");const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Tt(this._buffer.createSnapshot(e))}getValueLength(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new o.he("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let s=Math.floor("number"!==typeof i||isNaN(i)?1:i),o=Math.floor("number"!==typeof n||isNaN(n)?1:n);if(s<1)s=1,o=1;else if(s>t)s=t,o=this.getLineMaxColumn(s);else if(o<=1)o=1;else{const e=this.getLineMaxColumn(s);o>=e&&(o=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof r||isNaN(r)?1:r),d=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,d=1;else if(l>t)l=t,d=this.getLineMaxColumn(l);else if(d<=1)d=1;else{const e=this.getLineMaxColumn(l);d>=e&&(d=e)}return i===s&&n===o&&r===l&&a===d&&e instanceof p.e&&!(e instanceof m.Y)?e:new p.e(s,o,l,d)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(l.ZG(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!==typeof e||isNaN(e)?1:e),s=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(n<1)return new g.L(1,1);if(n>o)return new g.L(o,this.getLineMaxColumn(o));if(s<=1)return new g.L(n,1);const r=this.getLineMaxColumn(n);if(s>=r)return new g.L(n,r);if(1===i){const e=this._buffer.getLineCharCode(n,s-2);if(l.ZG(e))return new g.L(n,s-1)}return new g.L(n,s)}validatePosition(e){return this._assertNotDisposed(),e instanceof g.L&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(s,o,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,r=l.ZG(e),a=l.ZG(t);return!r&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof p.e&&!(e instanceof m.Y)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,s=t.column,o=i.lineNumber,r=i.column;{const e=s>1?this._buffer.getLineCharCode(n,s-2):0,t=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,i=l.ZG(e),a=l.ZG(t);return i||a?n===o&&s===r?new p.e(n,s-1,o,r-1):i&&a?new p.e(n,s-1,o,r+1):i?new p.e(n,s-1,o,r):new p.e(n,s,o,r+1):new p.e(n,s,o,r)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new p.e(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:999;this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>p.e.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let d;if(l.push(a.reduce(((e,t)=>p.e.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Re.bc(e,i,n,s).parseSearchRequest();if(!t)return[];d=e=>this.findMatchesLineByLine(e,t,o,r)}else d=t=>Re.pM.findMatches(this,new Re.bc(e,i,n,s),t,o,r);return l.map(d).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,s,o){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Re.bc(e,i,n,s).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new p.e(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),d=this.findMatchesLineByLine(l,t,o,1);return Re.pM.findNextMatch(this,new Re.bc(e,i,n,s),r,o),d.length>0?d[0]:(l=new p.e(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),d=this.findMatchesLineByLine(l,t,o,1),d.length>0?d[0]:null)}return Re.pM.findNextMatch(this,new Re.bc(e,i,n,s),r,o)}findPreviousMatch(e,t,i,n,s,o){this._assertNotDisposed();const r=this.validatePosition(t);return Re.pM.findPreviousMatch(this,new Re.bc(e,i,n,s),r,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof b.Qi?e:new b.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,n){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,s=e.length;t<s;t++){const s=e[t];let o=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,n=t.startLineNumber>s.endLineNumber,r=s.startLineNumber>t.endLineNumber;if(!n&&!r){o=!0;break}}if(!o){n=!1;break}}if(n)for(let e=0,s=this._trimAutoWhitespaceLines.length;e<s;e++){const n=this._trimAutoWhitespaceLines[e],s=this.getLineMaxColumn(n);let o=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,r=i[e].text;if(!(n<t.startLineNumber||n>t.endLineNumber)&&(!(n===t.startLineNumber&&t.startColumn===s&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0))&&!(n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1)))){o=!1;break}}if(o){const e=new p.e(n,1,n,s);t.push(new b.Qi(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const s=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new p.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new p.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),s=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=s.changes;if(this._trimAutoWhitespaceLines=s.trimAutoWhitespaceLineNumbers,0!==r.length){for(let i=0,n=r.length;i<n;i++){const e=r[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,s=r.length;i<s;i++){const s=r[i],[a]=(0,h.Q)(s.text);this._onDidChangeDecorations.fire();const l=s.range.startLineNumber,d=s.range.endLineNumber,c=d-l,u=a,p=Math.min(c,u),m=u-c,f=o-t-m+l,_=f,v=f+u,b=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new g.L(_,1)),this.getOffsetAt(new g.L(v,this.getLineMaxColumn(v))),0),C=xt.gk.fromDecorations(b),y=new n.H9(C);for(let t=p;t>=0;t--){const i=l+t,n=f+t;y.takeFromEndWhile((e=>e.lineNumber>n));const s=y.takeFromEndWhile((e=>e.lineNumber===n));e.push(new xt.rU(i,this.getLineContent(n),s))}if(p<c){const t=l+p;e.push(new xt.lN(t+1,d))}if(p<u){const i=new n.H9(C),s=l+p,r=u-p,a=o-t-r+s+1,d=[],h=[];for(let e=0;e<r;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),d[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new xt.Tx(s+1,l+u,h,d))}t+=m}this._emitContentChangedEvent(new xt.dQ(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===s.reverseEdits?void 0:s.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new xt.rU(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new xt.D8(t))}changeDecorations(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Ut(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let n=null;try{n=t(i)}catch(s){(0,o.dL)(s)}return i.addDecoration=It,i.changeDecoration=It,i.changeDecorationOptions=It,i.removeDecoration=It,i.deltaDecorations=It,n}deltaDecorations(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,o.dL)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:jt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,s),n.setOptions(jt[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;i<n;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const r=this.getLineCount(),a=Math.min(r,Math.max(1,e)),l=Math.min(r,Math.max(1,t)),d=this.getLineMaxColumn(l),h=new p.e(a,1,l,d),c=this._getDecorationsInRange(h,i,s,o);return(0,n.vA)(c,this._decorationProvider.getDecorationsInRange(h,i,s)),c}getDecorationsInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const r=this.validateRange(e),a=this._getDecorationsInRange(r,t,i,o);return(0,n.vA)(a,this._decorationProvider.getDecorationsInRange(r,t,i,s)),a}getOverviewRulerDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return xt.gk.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const s=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,s,o,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),s=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const o=n!==s,r=function(e){return!!e.after||!!e.before}(t)!==Rt(i);o||r?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=this.getVersionId(),o=t.length;let r=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const d=new Array(a);for(;r<o||l<a;){let h=null;if(r<o){do{h=this._decorations[t[r++]]}while(!h&&r<o);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),n||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new ae(t,0,0),this._decorations[t]=h}const t=i[l],o=this._validateRangeRelaxedNoAllocations(t.range),r=Ut(t.options),a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),c=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);h.ownerId=e,h.reset(s,a,c,o),h.setOptions(r),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber),n||this._onDidChangeDecorations.checkAffectedAndFire(r),this._decorationsTree.insert(h),d[l]=h.id,l++}else h&&delete this._decorations[h.id]}return d}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function At(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Rt(e){return!!e.options.after||!!e.options.before}Mt._MODEL_SYNC_LIMIT=52428800,Mt.LARGE_FILE_SIZE_THRESHOLD=20971520,Mt.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Mt.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456,Mt.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:f.D.tabSize,indentSize:f.D.indentSize,insertSpaces:f.D.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:f.D.trimAutoWhitespace,largeFileOptimizations:f.D.largeFileOptimizations,bracketPairColorizationOptions:f.D.bracketPairColorizationOptions},Mt=St=kt([Dt(4,Lt.tJ),Dt(5,_.O),Dt(6,v.c_)],Mt);class Ot{constructor(){this._decorationsTree0=new de,this._decorationsTree1=new de,this._injectedTextDecorationsTree=new de}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,s,o){const r=e.getVersionId(),a=this._intervalSearch(t,i,n,s,r,o);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,n,s,o){const r=this._decorationsTree0.intervalSearch(e,t,i,n,s,o),a=this._decorationsTree1.intervalSearch(e,t,i,n,s,o),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,s,o);return r.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,n){const s=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,s,!1);return this._ensureNodesHaveRanges(e,o).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n,s){const o=e.getVersionId(),r=this._search(t,i,n,o,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n,s){if(i)return this._decorationsTree1.search(e,t,n,s);{const i=this._decorationsTree0.search(e,t,n,s),o=this._decorationsTree1.search(e,t,n,s),r=this._injectedTextDecorationsTree.search(e,t,n,s);return i.concat(o).concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){Rt(e)?this._injectedTextDecorationsTree.insert(e):At(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Rt(e)?this._injectedTextDecorationsTree.delete(e):At(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Rt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):At(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function Pt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Ft{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Bt extends Ft{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:b.sh.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Vt{constructor(e){var t;this.position=null!==(t=null===e||void 0===e?void 0:e.position)&&void 0!==t?t:b.U.Center,this.persistLane=null===e||void 0===e?void 0:e.persistLane}}class Wt extends Ft{constructor(e){var t,i;super(e),this.position=e.position,this.sectionHeaderStyle=null!==(t=e.sectionHeaderStyle)&&void 0!==t?t:null,this.sectionHeaderText=null!==(i=e.sectionHeaderText)&&void 0!==i?i:null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?s.Il.fromHex(e):t.getColor(e.id)}}class Ht{static from(e){return e instanceof Ht?e:new Ht(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class zt{static register(e){return new zt(e)}static createDynamic(e){return new zt(e)}constructor(e){var t,i,n,s,o,r;this.description=e.description,this.blockClassName=e.blockClassName?Pt(e.blockClassName):null,this.blockDoesNotCollapse=null!==(t=e.blockDoesNotCollapse)&&void 0!==t?t:null,this.blockIsAfterEnd=null!==(i=e.blockIsAfterEnd)&&void 0!==i?i:null,this.blockPadding=null!==(n=e.blockPadding)&&void 0!==n?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Pt(e.className):null,this.shouldFillLineOnLineBreak=null!==(s=e.shouldFillLineOnLineBreak)&&void 0!==s?s:null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Bt(e.overviewRuler):null,this.minimap=e.minimap?new Wt(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new Vt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Pt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Pt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Pt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?l.fA(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Pt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Pt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Pt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Pt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Pt(e.afterContentClassName):null,this.after=e.after?Ht.from(e.after):null,this.before=e.before?Ht.from(e.before):null,this.hideInCommentTokens=null!==(o=e.hideInCommentTokens)&&void 0!==o&&o,this.hideInStringTokens=null!==(r=e.hideInStringTokens)&&void 0!==r&&r}}zt.EMPTY=zt.register({description:"empty"});const jt=[zt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),zt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),zt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),zt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Ut(e){return e instanceof zt?e:zt.createDynamic(e)}class Kt extends a.JT{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.Q5),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var t,i;this._affectsMinimap||(this._affectsMinimap=!!(null===(t=e.minimap)||void 0===t?void 0:t.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(null===(i=e.overviewRuler)||void 0===i?void 0:i.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class qt extends a.JT{constructor(){super(),this._fastEmitter=this._register(new r.Q5),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.Q5),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}class $t{constructor(){this._onDidChangeVisibleRanges=new r.Q5,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new Gt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class Gt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new u.z(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}},42101:(e,t,i)=>{"use strict";i.d(t,{U:()=>s});var n=i(53186);class s extends n.JT{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},39471:(e,t,i)=>{"use strict";i.d(t,{bc:()=>l,cM:()=>u,iE:()=>d,pM:()=>c,sz:()=>g});var n=i(78701),s=i(55412),o=i(74633),r=i(28928),a=i(24032);class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const n=e.charCodeAt(t);if(10===n)return!0;if(92===n){if(t++,t>=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.GF(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.Tx(t,this.wordSeparators?(0,s.u)(this.wordSeparators,[]):null,i?this.searchString:null)}}function d(e,t,i){if(!i)return new a.tk(e,null);const n=[];for(let s=0,o=t.length;s<o;s++)n[s]=t[s];return new a.tk(e,n)}class h{constructor(e){const t=[];let i=0;for(let n=0,s=e.length;n<s;n++)10===e.charCodeAt(n)&&(t[i++]=n);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,n=t.length-1;if(-1===n)return 0;if(e<=t[0])return 0;for(;i<n;){const s=i+((n-i)/2>>0);t[s]>=e?n=s-1:t[s+1]>=e?(i=s,n=s):i=s+1}return i+1}}class c{static findMatches(e,t,i,n,s){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new g(o.wordSeparators,o.regex),n,s):this._doFindMatchesLineByLine(e,i,o,n,s):[]}static _getMultilineMatchRange(e,t,i,n,s,o){let a,l,d=0;if(n?(d=n.findLineFeedCountBeforeOffset(s),a=t+s+d):a=t+s,n){const e=n.findLineFeedCountBeforeOffset(s+o.length)-d;l=a+o.length+e}else l=a+o.length;const h=e.getPositionAt(a),c=e.getPositionAt(l);return new r.e(h.lineNumber,h.column,c.lineNumber,c.column)}static _doFindMatchesMultiline(e,t,i,n,s){const o=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(r):null,l=[];let c,u=0;for(i.reset(0);c=i.next(r);)if(l[u++]=d(this._getMultilineMatchRange(e,o,r,a,c.index,c[0]),c,n),u>=s)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,s){const o=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,o,n,s),o}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,o,n,s);for(let l=t.startLineNumber+1;l<t.endLineNumber&&r<s;l++)r=this._findMatchesInLine(i,e.getLineContent(l),l,0,r,o,n,s);if(r<s){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);r=this._findMatchesInLine(i,a,t.endLineNumber,0,r,o,n,s)}return o}static _findMatchesInLine(e,t,i,n,s,o,l,h){const c=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,d=l.length,g=t.length;let p=-d;for(;-1!==(p=t.indexOf(l,p+d));)if((!c||u(c,t,g,p,d))&&(o[s++]=new a.tk(new r.e(i,p+1+n,i,p+1+d+n),null),s>=h))return s;return s}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(o[s++]=d(new r.e(i,m.index+1+n,i,m.index+1+m[0].length+n),m,l),s>=h))return s}while(m);return s}static findNextMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const o=new g(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)}static _doFindNextMatchMultiline(e,t,i,n){const s=new o.L(t.lineNumber,1),a=e.getOffsetAt(s),l=e.getLineCount(),c=e.getValueInRange(new r.e(s.lineNumber,s.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(c):null;i.reset(t.column-1);const g=i.next(c);return g?d(this._getMultilineMatchRange(e,a,c,u,g.index,g[0]),g,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o.L(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const s=e.getLineCount(),o=t.lineNumber,r=e.getLineContent(o),a=this._findFirstMatchInLine(i,r,o,t.column,n);if(a)return a;for(let l=1;l<=s;l++){const t=(o+l-1)%s,r=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,r,t+1,1,n);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,n,s){e.reset(n-1);const o=e.next(t);return o?d(new r.e(i,o.index+1,i,o.index+1+o[0].length),o,s):null}static findPreviousMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const o=new g(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const s=this._doFindMatchesMultiline(e,new r.e(1,1,t.lineNumber,t.column),i,n,9990);if(s.length>0)return s[s.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new o.L(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const s=e.getLineCount(),o=t.lineNumber,r=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,o,n);if(a)return a;for(let l=1;l<=s;l++){const t=(s+o-l-1)%s,r=e.getLineContent(t+1),a=this._findLastMatchInLine(i,r,t+1,n);if(a)return a}return null}static _findLastMatchInLine(e,t,i,n){let s,o=null;for(e.reset(0);s=e.next(t);)o=d(new r.e(i,s.index+1,i,s.index+1+s[0].length),s,n);return o}}function u(e,t,i,n,s){return function(e,t,i,n,s){if(0===n)return!0;const o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(s>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,s)&&function(e,t,i,n,s){if(n+s===i)return!0;const o=t.charCodeAt(n+s);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(s>0){const i=t.charCodeAt(n+s-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,s)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const s=i.index,o=i[0].length;if(s===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){n.ZH(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=o,!this._wordSeparators||u(this._wordSeparators,e,t,s,o))return i}while(i);return null}}},82412:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0;const s=e.length;for(;n<s;){const s=e.charCodeAt(n);if(32===s)i++;else{if(9!==s)break;i=i-i%t+t}n++}return n===s?-1:i}i.d(t,{q:()=>n})},31197:(e,t,i)=>{"use strict";i.d(t,{O:()=>g});var n=i(76946),s=i(39706),o=i(17344),r=i(91387),a=i(74633),l=i(28928),d=i(24854),h=i(18841),c=i(82335);class u{static chord(e,t){return(0,o.gx)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.A,Emitter:s.Q5,KeyCode:c.VD,KeyMod:u,Position:a.L,Range:l.e,Selection:d.Y,SelectionDirection:c.a$,MarkerSeverity:c.ZL,MarkerTag:c.eB,Uri:r.o,Token:h.WU}}u.CtrlCmd=2048,u.Shift=1024,u.Alt=512,u.WinCtrl=256},69115:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(87775).yh)("editorWorkerService")},14386:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var n=i(95075),s=i(38079),o=i(56155),r=i(68664),a=i(23026),l=i(87775),d=i(33454),h=i(32060),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};const g=(0,l.yh)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new s.z6(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,n.SP)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,o.uZ)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new o.N(6),this._cache.set(i,n));const s=(0,o.uZ)(n.update(t),this._min,this._max);return(0,h.xn)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o.nM;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,o.uZ)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){var n,s,o;const r=null!==(n=null===i||void 0===i?void 0:i.min)&&void 0!==n?n:50,a=null!==(s=null===i||void 0===i?void 0:i.max)&&void 0!==s?s:r**2,l=null!==(o=null===i||void 0===i?void 0:i.key)&&void 0!==o?o:void 0,d=`${p.of(e)},${r}${l?","+l:""}`;let h=this._data.get(d);return h||(this._isDev?h=new f(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a):(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),h=new m(1.5*r)),this._data.set(d,h)),h}_overallAverage(){const e=new o.nM;for(const t of this._data.values())e.update(t.default());return e.value}};_=c([u(0,d.VZ),u(1,r.Y)],_),(0,a.z)(g,_,1)},53869:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(87775).yh)("ILanguageFeaturesService")},79316:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});const n=(0,i(87775).yh)("markerDecorationsService")},23058:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});const n=(0,i(87775).yh)("modelService")},43537:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(87775).yh)("textModelService")},4085:(e,t,i)=>{"use strict";i.d(t,{$:()=>m,h:()=>f});var n=i(9556),s=i(46673),o=i(33454),r=i(74633),a=i(28928),l=i(47056);class d{static create(e,t){return new d(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.e(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,o]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new d(this._startLineNumber,n),new d(this._startLineNumber+o,s)]}applyEdit(e,t){const[i,n,s]=(0,l.Q)(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new r.L(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(0===t&&0===i)return;const o=e.lineNumber-this._startLineNumber;if(o<0)return void(this._startLineNumber+=t);o>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(o,e.column-1,t,i,n,s)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new a.e(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const n=t+Math.floor((i-t)/2),s=this._getDeltaLine(n);if(s<e)t=n+1;else{if(!(s>e)){let s=n;for(;s>t&&this._getDeltaLine(s-1)===e;)s--;let o=n;for(;o<i&&this._getDeltaLine(o+1)===e;)o++;return new c(this._tokens.subarray(4*s,4*o+4))}i=n-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){const s=this._tokens,o=this._tokenCount;let r=0,a=!1,l=0;for(let d=0;d<o;d++){const o=4*d,h=s[o],c=s[o+1],u=s[o+2],g=s[o+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&c<=n))a=!0;else{if(0===r&&(l=h),a){const e=4*r;s[e]=h-l,s[e+1]=c,s[e+2]=u,s[e+3]=g}r++}}return this._tokenCount=r,l}split(e,t,i,n){const s=this._tokens,o=this._tokenCount,r=[],a=[];let l=r,d=0,c=0;for(let h=0;h<o;h++){const o=4*h,r=s[o],u=s[o+1],g=s[o+2],p=s[o+3];if(r>e||r===e&&g>=t){if(r<i||r===i&&u<=n)continue;l!==a&&(l=a,d=0,c=r)}l[d++]=r-c,l[d++]=u,l[d++]=g,l[d++]=p}return[new h(new Uint32Array(r)),new h(new Uint32Array(a)),c]}acceptDeleteRange(e,t,i,n,s){const o=this._tokens,r=this._tokenCount,a=n-t;let l=0,d=!1;for(let h=0;h<r;h++){const c=4*h;let u=o[c],g=o[c+1],p=o[c+2];const m=o[c+3];if(u<t||u===t&&p<=i){l++;continue}if(u===t&&g<i)u===n&&p>s?p-=s-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>s)){d=!0;continue}p-=s-i}else if(u<n||u===n&&g<s){if(!(u===n&&p>s)){d=!0;continue}u=t,g=i,p=g+(p-s)}else if(u>n){if(0===a&&!d){l=r;break}u-=a}else{if(!(u===n&&g>=s))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=s-i,p-=s-i}const f=4*l;o[f]=u,o[f+1]=g,o[f+2]=p,o[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,s,o){const r=0===i&&1===n&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,l=this._tokenCount;for(let d=0;d<l;d++){const o=4*d;let l=a[o],h=a[o+1],c=a[o+2];if(!(l<e||l===e&&c<t)){if(l===e&&c===t){if(!r)continue;c+=1}else if(l===e&&h<t&&t<c)0===i?c+=n:c=t;else{if(l===e&&h===t&&r)continue;if(l===e)if(l+=i,0===i)h+=n,c+=n;else{const e=c-h;h=s+(h-t),c=h+e}else l+=i}a[o]=l,a[o+1]=h,a[o+2]=c}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=i(91342),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};let m=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),r=this._hashTable.get(e,t,s);let a;if(r)a=r.metadata,this._logService.getLevel()===o.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${n.N.getForeground(a)}, fontStyle ${n.N.getFontStyle(a).toString(2)}`);else{let r=this._legend.tokenTypes[e];const l=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&l.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===o.in.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const n=this._themeService.getColorTheme().getTokenStyleMetadata(r,l,i);if("undefined"===typeof n)a=2147483647;else{if(a=0,"undefined"!==typeof n.italic){a|=1|(n.italic?1:0)<<11}if("undefined"!==typeof n.bold){a|=2|(n.bold?2:0)<<11}if("undefined"!==typeof n.underline){a|=4|(n.underline?4:0)<<11}if("undefined"!==typeof n.strikethrough){a|=8|(n.strikethrough?8:0)<<11}if(n.foreground){a|=16|n.foreground<<15}0===a&&(a=2147483647)}}else this._logService.getLevel()===o.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,r="not-in-legend";this._hashTable.add(e,t,s,a),this._logService.getLevel()===o.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${r}) / ${t} (${l.join(" ")}): foreground ${n.N.getForeground(a)}, fontStyle ${n.N.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};function f(e,t,i){const n=e.data,s=e.data.length/5|0,o=Math.max(Math.ceil(s/1024),400),r=[];let a=0,l=1,h=0;for(;a<s;){const e=a;let c=Math.min(e+o,s);if(c<s){let t=c;for(;t-1>e&&0===n[5*t];)t--;if(t-1===e){let e=c;for(;e+1<s&&0===n[5*e];)e++;c=e}else c=t}let u=new Uint32Array(4*(c-e)),g=0,p=0,m=0,f=0;for(;a<c;){const e=5*a,s=n[e],o=n[e+1],r=l+s|0,d=0===s?h+o|0:o,c=d+n[e+2]|0,_=n[e+3],v=n[e+4];if(c<=d)t.warnInvalidLengthSemanticTokens(r,d+1);else if(m===r&&f>d)t.warnOverlappingSemanticTokens(r,d+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=r),u[g]=r-p,u[g+1]=d,u[g+2]=c,u[g+3]=e,g+=4,m=r,f=c)}l=r,h=d,a++}g!==u.length&&(u=u.subarray(0,g));const _=d.create(p,u);r.push(_)}return r}m=g([p(1,s.XE),p(2,u.O),p(3,o.VZ)],m);class _{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class v{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const n=this._hashFunc(e,t,i);let s=this._elements[n];for(;s;){if(s.tokenTypeIndex===e&&s.tokenModifierSet===t&&s.languageId===i)return s;s=s.next}return null}add(e,t,i,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,n))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}v._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},15688:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});const n=(0,i(87775).yh)("semanticTokensStylingService")},19399:(e,t,i)=>{"use strict";i.d(t,{V:()=>s,y:()=>o});var n=i(87775);const s=(0,n.yh)("textResourceConfigurationService"),o=(0,n.yh)("textResourcePropertiesService")},97050:(e,t,i)=>{"use strict";i.d(t,{a:()=>l});var n=i(28928),s=i(39471),o=i(78701),r=i(56702),a=i(67331);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),c=new d(t),u=c.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${o.ec(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new s.sz(null,g),f=[];let _,v=!1,b=0,C=0,y=0;e:for(let s=l,d=h;s<=d;s++){const t=e.getLineContent(s),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);o.ZG(i)&&e--}if(l+1<i){const e=t.charCodeAt(l-1);o.ZG(e)&&l++}const d=t.substring(e,l);let h=(0,a.t2)(e+1,a.Af,t,0);h&&h.endColumn<=e+1&&(h=null);const u=c.shouldHighlightNonBasicASCII(d,h?h.word:null);if(0!==u){3===u?b++:2===u?C++:1===u?y++:(0,r.vE)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new n.e(s,e+1,s,l+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:b,invisibleCharacterCount:C,nonBasicAsciiCharacterCount:y}}static computeUnicodeHighlightReason(e,t){const i=new d(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const n=e.codePointAt(0),s=i.ambiguousCharacters.getPrimaryConfusable(n),r=o.ZK.getLocales().filter((e=>!o.ZK.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n)));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class d{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=o.ZK.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of o.vU.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,s=!1;if(t)for(const r of t){const e=r.codePointAt(0),t=o.$i(r);n=n||t,t||this.ambiguousCharacters.isAmbiguous(e)||o.vU.isInvisibleCharacter(e)||(s=!0)}return!n&&s?0:this.options.invisibleCharacters&&!h(e)&&o.vU.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},82335:(e,t,i)=>{"use strict";var n,s,o,r,a,l,d,h,c,u,g,p,m,f,_,v,b,C,y,w,S,x,L,k,D,N,E,T,I,M,A,R,O,P,F,B,V,W,H,z,j,U,K,q;i.d(t,{$r:()=>V,E$:()=>T,F5:()=>k,Ij:()=>l,In:()=>j,Lu:()=>R,MG:()=>N,MY:()=>u,NA:()=>M,OI:()=>K,RM:()=>b,U:()=>_,VD:()=>S,Vi:()=>h,WG:()=>D,WW:()=>W,ZL:()=>x,_x:()=>c,a$:()=>B,a7:()=>o,ao:()=>n,bw:()=>y,cR:()=>H,cm:()=>r,d2:()=>U,eB:()=>L,g4:()=>P,g_:()=>F,gl:()=>C,gm:()=>m,jl:()=>f,np:()=>s,py:()=>A,r3:()=>d,r4:()=>z,rf:()=>g,rn:()=>w,sh:()=>I,up:()=>q,vQ:()=>O,w:()=>E,wT:()=>p,wU:()=>v,we:()=>a}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(n||(n={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(s||(s={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(o||(o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(r||(r={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(d||(d={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(c||(c={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(y||(y={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(w||(w={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(x||(x={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(k||(k={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(D||(D={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(N||(N={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(E||(E={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(I||(I={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(M||(M={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(A||(A={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(R||(R={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(O||(O={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(P||(P={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(F||(F={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(V||(V={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(W||(W={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(H||(H={})),function(e){e[e.Deprecated=1]="Deprecated"}(z||(z={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(j||(j={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(U||(U={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(K||(K={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},23523:(e,t,i)=>{"use strict";i.d(t,{B8:()=>l,UX:()=>r,aq:()=>a,iN:()=>h,ld:()=>o,qq:()=>s,ug:()=>n,xi:()=>d});var n,s,o,r,a,l,d,h,c=i(5887);!function(e){e.inspectTokensAction=c.NC("inspectTokens","Developer: Inspect Tokens")}(n||(n={})),function(e){e.gotoLineActionLabel=c.NC("gotoLineActionLabel","Go to Line/Column...")}(s||(s={})),function(e){e.helpQuickAccessActionLabel=c.NC("helpQuickAccess","Show all Quick Access Providers")}(o||(o={})),function(e){e.quickCommandActionLabel=c.NC("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=c.NC("quickCommandActionHelp","Show And Run Commands")}(r||(r={})),function(e){e.quickOutlineActionLabel=c.NC("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=c.NC("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=c.NC("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=c.NC("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=c.NC("toggleHighContrast","Toggle High Contrast Theme")}(d||(d={})),function(e){e.bulkEditServiceSummary=c.NC("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},75324:(e,t,i)=>{"use strict";i.d(t,{CZ:()=>l,D8:()=>h,Jx:()=>n,Tx:()=>a,dQ:()=>d,fV:()=>c,gk:()=>s,lN:()=>r,rU:()=>o});class n{constructor(){this.changeType=1}}class s{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new s(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new s(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}}class o{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class d{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),n=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new d(i,n,s,o)}}class h{constructor(e){this.changes=e}}class c{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=d.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=c._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new c(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),n=t.eol,s=t.versionId,o=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:n,isEolChange:e.isEolChange&&t.isEolChange,versionId:s,isUndoing:o,isRedoing:r,isFlush:a}}}},58410:(e,t,i)=>{"use strict";var n;i.d(t,{UO:()=>s,s6:()=>n,vW:()=>o}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(n||(n={}));class s{constructor(e,t,i,n,s,o){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=n,this.forWrappedLinesAfterColumn=s,this.forWrappedLinesBeforeOrAtColumn=o,-1!==e===(-1!==t))throw new Error}}class o{constructor(e,t){this.top=e,this.endColumn=t}}},34415:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(9556);class s{static createEmpty(e,t){const i=s.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new s(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof s&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,s=n+(i<<1);for(let o=n;o<s;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.N.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.N.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.N.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.N.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.N.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return n.N.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return s.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new o(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let n=0;n<i;n++)e[n<<1]=e[n+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,n=(e.length>>>1)-1;for(;i<n;){const s=i+Math.floor((n-i)/2),o=e[s<<1];if(o===t)return s+1;o<t?i=s+1:o>t&&(n=s)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const o=new Array;let r=0;for(;;){const s=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==s&&(null===a||s<=a.offset)){n+=this._text.substring(r,s);const e=this._tokens[1+(t<<1)];o.push(n.length,e),t++,r=s}else{if(!a)break;if(a.offset>r){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];o.push(n.length,e),r=a.offset}n+=a.text,o.push(n.length,a.tokenMetadata),i++}}return new s(new Uint32Array(o),n,this._languageIdCodec)}}s.defaultTokenMetadata=33587200;class o{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let s=this._firstTokenIndex,o=e.getCount();s<o;s++){if(e.getStartOffset(s)>=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},21770:(e,t,i)=>{"use strict";i.d(t,{Kp:()=>s,k:()=>a});var n=i(78701);class s{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!s._equals(e[n],t[n]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const n=t+1,o=i+1,r=i-t,a=[];let l=0;for(const d of e)d.endColumn<=n||d.startColumn>=o||(a[l++]=new s(Math.max(1,d.startColumn-n+1),Math.min(r+1,d.endColumn-n+1),d.className,d.type));return a}static filter(e,t,i,n){if(0===e.length)return[];const o=[];let r=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],d=l.range;if(d.endLineNumber<t||d.startLineNumber>t)continue;if(d.isEmpty()&&(0===l.type||3===l.type))continue;const h=d.startLineNumber===t?d.startColumn:i,c=d.endLineNumber===t?d.endColumn:n;o[r++]=new s(h,c,l.inlineClassName,l.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=s._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class o{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=n}}class r{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,n=e.length;i<n;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new o(t,this.stopOffsets[e],this.classNames.join(" "),r._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(i.push(new o(t,e-1,this.classNames.join(" "),r._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],s=new r;let o=0;for(let r=0,a=t.length;r<a;r++){const a=t[r];let l=a.startColumn,d=a.endColumn;const h=a.className,c=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);n.ZG(t)&&l--}if(d>1){const t=e.charCodeAt(d-2);n.ZG(t)&&d--}const u=l-1,g=d-2;o=s.consumeLowerThan(u,o,i),0===s.count&&(o=u),s.insert(g,h,c)}return s.consumeLowerThan(1073741824,o,i),i}}},97869:(e,t,i)=>{"use strict";i.d(t,{Nd:()=>h,zG:()=>l,IJ:()=>d,d1:()=>g,tF:()=>m});var n=i(5887),s=i(78701),o=i(130),r=i(21770);class a{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class d{constructor(e,t,i,n,s,o,a,l,d,h,c,u,g,p,m,f,_,v,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=s,this.containsRTL=o,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=d.sort(r.Kp.compare),this.tabSize=h,this.startVisibleColumn=c,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.Kp.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class c{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const s=(t<<16|i<<0)>>>0;this._data[e-1]=s,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=c.getPartIndex(t),n=c.getCharIndex(t);return new h(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const n=(e<<16|i<<0)>>>0;let s=0,o=this.length-1;for(;s+1<o;){const e=s+o>>>1,t=this._data[e];if(t===n)return e;t>n?o=e:s=e}if(s===o)return s;const r=this._data[s],a=this._data[o];if(r===n)return s;if(a===n)return o;const l=c.getPartIndex(r),d=c.getCharIndex(r);let h;h=l!==c.getPartIndex(a)?t:c.getCharIndex(a);return i-d<=h-i?s:o}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,n=0,s=0;for(const r of e.lineDecorations)1!==r.type&&2!==r.type||(t.appendString('<span class="'),t.appendString(r.className),t.appendString('"></span>'),1===r.type&&(s|=1,i++),2===r.type&&(s|=2,n++));t.appendString("</span>");const o=new c(1,i+n);return o.setColumnInfo(1,i,0,0),new u(o,!1,s)}return t.appendString("<span><span></span></span>"),new u(new c(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,a=e.lineContent,l=e.len,d=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,b=e.containsRTL,C=e.spaceWidth,y=e.renderSpaceCharCode,w=e.renderWhitespace,S=e.renderControlCharacters,x=new c(l+1,g.length);let L=!1,k=0,D=f,N=0,E=0,T=0;b?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let n=0,c=g.length;n<c;n++){const e=g[n],d=e.endIndex,h=e.type,c=e.containsRTL,u=0!==w&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!r),b=k===d&&e.isPseudoAfter();if(N=0,t.appendString("<span "),c&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=k,i=D;for(;t<d;t++){const n=0|(9===a.charCodeAt(t)?m-i%m:1);e+=n,t>=p&&(i+=n)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(C*e)),t.appendString('px"')),t.appendASCIICharCode(62);k<d;k++){x.setColumnInfo(k+1,n-T,N,E),T=0;let e,i;if(9===a.charCodeAt(k)){e=m-D%m|0,i=e,!o||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(y),t.appendCharCode(8204);N+=e,E+=i,k>=p&&(D+=i)}}else for(t.appendASCIICharCode(62);k<d;k++){x.setColumnInfo(k+1,n-T,N,E),T=0;const e=a.charCodeAt(k);let i=1,o=1;switch(e){case 9:i=m-D%m,o=i;for(let e=1;e<=i;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:S?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:s.K7(e)&&o++,S&&e<32?t.appendCharCode(9216+e):S&&127===e?t.appendCharCode(9249):S&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,o=i):t.appendCharCode(e)}N+=i,E+=o,k>=p&&(D+=o)}b?T++:T=0,k>=l&&!L&&e.isPseudoAfter()&&(L=!0,x.setColumnInfo(k+1,n,N,E)),t.appendString("</span>")}L||x.setColumnInfo(l+1,g.length-1,N,E);d&&(t.appendString('<span class="mtkoverflow">'),t.appendString(n.NC("showMore","Show more ({0})",function(e){if(e<1024)return n.NC("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(x,b,r)}(function(e){const t=e.lineContent;let i,n,o;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,n=t.length-e.stopRenderingLineAfter,o=e.stopRenderingLineAfter):(i=!1,n=0,o=t.length);let l=function(e,t,i,n,o){const r=[];let l=0;n>0&&(r[l++]=new a(n,"",0,!1));let d=n;for(let h=0,c=i.getCount();h<c;h++){const c=i.getEndOffset(h);if(c<=n)continue;const u=i.getClassName(h);if(c>=o){const i=!!t&&s.Ut(e.substring(d,o));r[l++]=new a(o,u,0,i);break}const g=!!t&&s.Ut(e.substring(d,c));r[l++]=new a(c,u,0,g),d=c}return r}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,o);e.renderControlCharacters&&!e.isBasicASCII&&(l=function(e,t){const i=[];let n=new a(0,"",0,!1),s=0;for(const o of t){const t=o.endIndex;for(;s<t;s++){_(e.charCodeAt(s))&&(s>n.endIndex&&(n=new a(s,o.type,o.metadata,o.containsRTL),i.push(n)),n=new a(s+1,"mtkcontrol",o.metadata,!1),i.push(n))}s>n.endIndex&&(n=new a(t,o.type,o.metadata,o.containsRTL),i.push(n))}return i}(t,l));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,n){const o=e.continuesWithWrappedLine,r=e.fauxIndentLength,l=e.tabSize,d=e.startVisibleColumn,h=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex;const y=n.length;let w,S=!1,x=s.LC(t);-1===x?(S=!0,x=i,w=i):w=s.ow(t);let L=!1,k=0,D=c&&c[k],N=d%l;for(let T=r;T<i;T++){const e=t.charCodeAt(T);let o;if(D&&T>=D.endOffset&&(k++,D=c&&c[k]),T<x||T>w)o=!0;else if(9===e)o=!0;else if(32===e)if(u)if(L)o=!0;else{const e=T+1<i?t.charCodeAt(T+1):0;o=32===e||9===e}else o=!0;else o=!1;if(o&&c&&(o=!!D&&D.startOffset<=T&&D.endOffset>T),o&&g&&(o=S||T>w),o&&b&&T>=x&&T<=w&&(o=!1),L){if(!o||!h&&N>=l){if(p){for(let e=(f>0?m[f-1].endIndex:r)+1;e<=T;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(T,"mtkw",1,!1);N%=l}}else(T===C||o&&T>r)&&(m[f++]=new a(T,v,0,b),N%=l);for(9===e?N=l:s.K7(e)?N+=2:N++,L=o;T===C&&(_++,_<y);)v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex}let E=!1;if(L)if(o&&u){const e=i>0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(E=!0)}else E=!0;if(E)if(p){for(let e=(f>0?m[f-1].endIndex:r)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,b);return m}(e,t,o,l));let d=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?d|=1:2===i.type&&(d|=2)}l=function(e,t,i,n){n.sort(r.Kp.compare);const s=r.k.normalize(e,n),o=s.length;let l=0;const d=[];let h=0,c=0;for(let r=0,g=i.length;r<g;r++){const e=i[r],t=e.endIndex,n=e.type,u=e.metadata,g=e.containsRTL;for(;l<o&&s[l].startOffset<t;){const e=s[l];if(e.startOffset>c&&(c=e.startOffset,d[h++]=new a(c,n,u,g)),!(e.endOffset+1<=t)){c=t,d[h++]=new a(c,n+" "+e.className,u|e.metadata,g);break}c=e.endOffset+1,d[h++]=new a(c,n+" "+e.className,u|e.metadata,g),l++}t>c&&(c=t,d[h++]=new a(c,n,u,g))}const u=i[i.length-1].endIndex;if(l<o&&s[l].startOffset===u)for(;l<o&&s[l].startOffset===u;){const e=s[l];d[h++]=new a(c,e.className,e.metadata,!1),l++}return d}(t,0,l,e.lineDecorations)}e.containsRTL||(l=function(e,t,i){let n=0;const s=[];let o=0;if(i)for(let r=0,l=t.length;r<l;r++){const i=t[r],l=i.endIndex;if(n+50<l){const t=i.type,r=i.metadata,d=i.containsRTL;let h=-1,c=n;for(let i=n;i<l;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-c>=50&&(s[o++]=new a(h+1,t,r,d),c=h+1,h=-1);c!==l&&(s[o++]=new a(l,t,r,d))}else s[o++]=i;n=l}else for(let r=0,l=t.length;r<l;r++){const e=t[r],i=e.endIndex,l=i-n;if(l>50){const t=e.type,r=e.metadata,d=e.containsRTL,h=Math.ceil(l/50);for(let e=1;e<h;e++){const i=n+50*e;s[o++]=new a(i,t,r,d)}s[o++]=new a(i,t,r,d)}else s[o++]=e;n=i}return s}(t,l,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,o,i,n,l,d,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function m(e){const t=new o.HT(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=s,this.overflowingCharCount=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=d,this.startVisibleColumn=h,this.containsRTL=c,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},23614:(e,t,i)=>{"use strict";i.d(t,{$l:()=>u,$t:()=>h,IP:()=>l,SQ:()=>g,Wx:()=>c,l_:()=>r,ud:()=>a,wA:()=>d});var n=i(51833),s=i(78701),o=i(28928);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class l{constructor(e,t,i,n,s,o,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=o,this.inlineDecorations=r}}class d{constructor(e,t,i,n,s,o,r,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=d.isBasicASCII(i,o),this.containsRTL=d.containsRTL(i,this.isBasicASCII,s),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||s.$i(e)}static containsRTL(e,t,i){return!(t||!i)&&s.Ut(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class c{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new h(new o.e(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&n.fS(e.data,t.data)}static equalsArr(e,t){return n.fS(e,t,g.equals)}}},86950:(e,t,i)=>{"use strict";i.d(t,{EY:()=>s,Tj:()=>o});class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class s{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class o{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(s.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),s=i/Math.floor(this._outerHeight),o=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){r.push(e);continue}}const d=this._getVerticalOffsetForLine(l.startLineNumber),h=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:d+l.heightInLines*t,c=Math.floor(s*d),u=Math.floor(s*h);let g=Math.floor((c+u)/2),p=u-g;p<o&&(p=o),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=l.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new n(g-p,g+p,f);l.setColorZone(_),r.push(_)}return this._colorZonesInvalid=!1,r.sort(n.compare),r}}},61558:(e,t,i)=>{"use strict";i.d(t,{$t:()=>d,CU:()=>a,Fd:()=>l,zg:()=>h});var n=i(74633),s=i(28928),o=i(23614),r=i(67364);class a{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const r=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(r.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);l=new s.e(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(r,1);i=new o.$l(l,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=new s.e(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$J)(this.configuration.options),t,i),a=e.startLineNumber,d=e.endLineNumber,h=[];let c=0;const u=[];for(let s=a;s<=d;s++)u[s-a]=[];for(let r=0,g=n.length;r<g;r++){const e=n[r],t=e.options;if(!l(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[c++]=i,t.inlineClassName){const e=new o.$t(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),n=Math.min(d,g.endLineNumber);for(let t=i;t<=n;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=d){const e=new o.$t(new s.e(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=d){const e=new o.$t(new s.e(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function l(e,t){return(!t.options.hideInCommentTokens||!d(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function d(e,t){return c(e,t.range,(e=>1===e))}function h(e,t){return c(e,t.range,(e=>2===e))}function c(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const s=e.tokenization.getLineTokens(n),o=n===t.startLineNumber,r=n===t.endLineNumber;let a=o?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<s.getCount();){if(r){if(s.getStartOffset(a)>t.endColumn-1)break}if(!i(s.getStandardTokenType(a)))return!1;a++}}return!0}},98098:(e,t,i)=>{"use strict";var n,s=i(83945),o=i(73971),r=i(17344),a=i(60548),l=i(24854),d=i(35770),h=i(5887),c=i(47116),u=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=new c.uy("selectionAnchorSet",!1);let m=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(l.Y.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new o.W5).appendText((0,h.NC)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,s.Z9)((0,h.NC)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(l.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=n=u([g(1,c.i6)],m);class f extends a.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.NC)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,r.gx)(2089,2080),weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.setSelectionAnchor()}}class _ extends a.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.NC)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.goToSelectionAnchor()}}class v extends a.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.NC)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,r.gx)(2089,2089),weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.selectFromAnchorToCursor()}}class b extends a.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.NC)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:d.u.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.cancelSelectionAnchor()}}(0,a._K)(m.ID,m,4),(0,a.Qr)(f),(0,a.Qr)(_),(0,a.Qr)(v),(0,a.Qr)(b)},23053:(e,t,i)=>{"use strict";var n=i(53372),s=i(53186),o=i(60548),r=i(74633),a=i(28928),l=i(24854),d=i(35770),h=i(24032),c=i(13277),u=i(5887),g=i(6178),p=i(6009),m=i(46673);const f=(0,p.P6G)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},u.NC("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends o.R6{constructor(){super({id:"editor.action.jumpToBracket",label:u.NC("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.jumpToBracket()}}class v extends o.R6{constructor(){super({id:"editor.action.selectToBracket",label:u.NC("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.vv("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&!1===i.selectBrackets&&(s=!1),null===(n=y.get(t))||void 0===n||n.selectToBracket(s)}}class b extends o.R6{constructor(){super({id:"editor.action.removeBrackets",label:u.NC("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.removeBrackets(this.id)}}class C{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class y extends s.JT{static get(e){return e.getContribution(y.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new n.pY((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.bracketPairs.matchBracket(i);let s=null;if(n)n[0].containsPosition(i)&&!n[1].containsPosition(i)?s=n[1].getStartPosition():n[1].containsPosition(i)&&(s=n[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)s=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(s=t.range.getStartPosition())}}return s?new l.Y(s.lineNumber,s.column,s.lineNumber,s.column):new l.Y(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const e=t.bracketPairs.findNextBracket(s);e&&e.range&&(o=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,d=null;if(o){o.sort(a.e.compareRangesUsingStarts);const[t,i]=o;if(r=e?t.getStartPosition():t.getEndPosition(),d=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(s)){const e=r;r=d,d=e}}r&&d&&i.push(new l.Y(r.lineNumber,r.column,d.lineNumber,d.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())}))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let r=0,c=e.length;r<c;r++){const t=e[r];t.isEmpty()&&(s[o++]=t.getStartPosition())}s.length>1&&s.sort(r.L.compare);const a=[];let l=0,d=0;const h=n.length;for(let r=0,c=s.length;r<c;r++){const e=s[r];for(;d<h&&n[d].position.isBefore(e);)d++;if(d<h&&n[d].position.equals(e))a[l++]=n[d];else{let i=t.bracketPairs.matchBracket(e,20),n=y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),n=y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new C(e,i,n)}}this._lastBracketsData=a,this._lastVersionId=i}}y.ID="editor.contrib.bracketMatchingController",y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=c.qx.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.EN)(f),position:h.sh.Center}}),y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=c.qx.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,o._K)(y.ID,y,1),(0,o.Qr)(v),(0,o.Qr)(_),(0,o.Qr)(b),g.BH.appendMenuItem(g.eH.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.NC({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},32944:(e,t,i)=>{"use strict";var n=i(60548),s=i(35770),o=i(28928),r=i(24854);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if((!this._isMovingLeft||1!==n)&&(this._isMovingLeft||s!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new o.e(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new o.e(i,s,i,s),a)}else{const r=new o.e(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new o.e(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new r.Y(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new r.Y(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var l=i(5887);class d extends n.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new a(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Qr)(class extends d{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:s.u.writable})}}),(0,n.Qr)(class extends d{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:s.u.writable})}})},34564:(e,t,i)=>{"use strict";var n=i(60548),s=i(2196),o=i(67663),r=i(28928),a=i(35770),l=i(5887);class d extends n.R6{constructor(){super({id:"editor.action.transposeLetters",label:l.NC("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.u.writable,kbOpts:{kbExpr:a.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],a=t.getSelections();for(const l of a){if(!l.isEmpty())continue;const e=l.startLineNumber,t=l.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const d=t===a?l.getPosition():o.o.rightPosition(i,l.getPosition().lineNumber,l.getPosition().column),h=o.o.leftPosition(i,d),c=o.o.leftPosition(i,h),u=i.getValueInRange(r.e.fromPositions(c,h)),g=i.getValueInRange(r.e.fromPositions(h,d)),p=r.e.fromPositions(c,d);n.push(new s.T4(p,g+u))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Qr)(d)},19757:(e,t,i)=>{"use strict";var n=i(27748),s=i(76595),o=i(90388),r=i(90356),a=i(60548),l=i(74246),d=i(35770),h=i(21981),c=i(5887),u=i(6178),g=i(63826),p=i(47116);const m="9_cutcopypaste",f=o.tY||document.queryCommandSupported("cut"),_=o.tY||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!n.vU||document.queryCommandSupported("paste");function b(e){return e.register(),e}const C=f?b(new a.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.eH.EditorContext,group:m,title:c.NC("actions.clipboard.cutLabel","Cut"),when:d.u.writable,order:1},{menuId:u.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.eH.SimpleEditorContext,group:m,title:c.NC("actions.clipboard.cutLabel","Cut"),when:d.u.writable,order:1}]})):void 0,y=_?b(new a.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.eH.EditorContext,group:m,title:c.NC("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.eH.SimpleEditorContext,group:m,title:c.NC("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.BH.appendMenuItem(u.eH.MenubarEditMenu,{submenu:u.eH.MenubarCopy,title:c.vv("copy as","Copy As"),group:"2_ccp",order:3}),u.BH.appendMenuItem(u.eH.EditorContext,{submenu:u.eH.EditorContextCopy,title:c.vv("copy as","Copy As"),group:m,order:3}),u.BH.appendMenuItem(u.eH.EditorContext,{submenu:u.eH.EditorContextShare,title:c.vv("share","Share"),group:"11_share",order:-1,when:p.Ao.and(p.Ao.notEquals("resourceScheme","output"),d.u.editorTextFocus)}),u.BH.appendMenuItem(u.eH.EditorTitleContext,{submenu:u.eH.EditorTitleContextShare,title:c.vv("share","Share"),group:"11_share",order:-1}),u.BH.appendMenuItem(u.eH.ExplorerContext,{submenu:u.eH.ExplorerContextShare,title:c.vv("share","Share"),group:"11_share",order:-1});const w=v?b(new a.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.eH.EditorContext,group:m,title:c.NC("actions.clipboard.pasteLabel","Paste"),when:d.u.writable,order:4},{menuId:u.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.eH.SimpleEditorContext,group:m,title:c.NC("actions.clipboard.pasteLabel","Paste"),when:d.u.writable,order:4}]})):void 0;class S extends a.R6{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:c.NC("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.u.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(r.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),r.RA.forceCopyWithSyntaxHighlighting=!1)}}function x(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(l.$).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(37),i=n.getSelection();return i&&i.isEmpty()&&!e||n.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,s.uP)().execCommand(t),!0))))}x(C,"cut"),x(y,"copy"),w&&(w.addImplementation(1e4,"code-editor",((e,t)=>{var i,n;const s=e.get(l.$),a=e.get(g.p),d=s.getFocusedCodeEditor();if(d&&d.hasTextFocus()){return d.getContainerDomNode().ownerDocument.execCommand("paste")?null!==(n=null===(i=h.bO.get(d))||void 0===i?void 0:i.finishedPaste())&&void 0!==n?n:Promise.resolve():!o.$L||(async()=>{const e=await a.readText();if(""!==e){const t=r.Nl.INSTANCE.get(e);let i=!1,n=null,s=null;t&&(i=d.getOption(37)&&!!t.isFromEmptySelection,n="undefined"!==typeof t.multicursorText?t.multicursorText:null,s=t.mode),d.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:s})}})()}return!1})),w.addImplementation(0,"generic-dom",((e,t)=>((0,s.uP)().execCommand("paste"),!0)))),_&&(0,a.Qr)(S)},87851:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>x,LR:()=>A,MN:()=>L,RB:()=>y,TM:()=>D,UX:()=>M,aI:()=>T,cz:()=>w,pZ:()=>S,uH:()=>k});var n=i(51833),s=i(76946),o=i(16015),r=i(53186),a=i(91387),l=i(80427),d=i(28928),h=i(24854),c=i(53869),u=i(23058),g=i(8037),p=i(5887),m=i(94943),f=i(61758),_=i(97757),v=i(57823),b=i(33215),C=i(34277);const y="editor.action.codeAction",w="editor.action.quickFix",S="editor.action.autoFix",x="editor.action.refactor",L="editor.action.sourceAction",k="editor.action.organizeImports",D="editor.action.fixAll";class N extends r.JT{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator(e,t){let{action:i}=e,{action:s}=t;return i.isAI&&!s.isAI?1:!i.isAI&&s.isAI?-1:(0,n.Of)(i.diagnostics)?(0,n.Of)(s.diagnostics)?N.codeActionsPreferredComparator(i,s):-1:(0,n.Of)(s.diagnostics)?1:N.codeActionsPreferredComparator(i,s)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(N.codeActionsComparator),this.validActions=this.allActions.filter((e=>{let{action:t}=e;return!t.disabled}))}get hasAutoFix(){return this.validActions.some((e=>{let{action:t}=e;return!!t.kind&&b.yN.QuickFix.contains(new C.o(t.kind))&&!!t.isPreferred}))}get hasAIFix(){return this.validActions.some((e=>{let{action:t}=e;return!!t.isAI}))}get allAIFixes(){return this.validActions.every((e=>{let{action:t}=e;return!!t.isAI}))}}const E={actions:[],documentation:void 0};async function T(e,t,i,s,a,l){var d;const h=s.filter||{},c={...h,excludes:[...h.excludes||[],b.yN.Notebook]},u={only:null===(d=h.include)||void 0===d?void 0:d.value,trigger:s.type},p=new g.YQ(t,l),m=2===s.type,f=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,b.EU)(i,new C.o(e))))))}(e,t,m?c:h),_=new r.SL,v=f.map((async e=>{try{a.report(e);const n=await e.provideCodeActions(t,i,u,p.token);if(n&&_.add(n),p.token.isCancellationRequested)return E;const s=((null===n||void 0===n?void 0:n.actions)||[]).filter((e=>e&&(0,b.Yl)(h,e))),o=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new C.o(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null===e||void 0===e?void 0:e.command}for(const s of t)if(s.kind)for(const e of n)if(e.kind.contains(new C.o(s.kind)))return e.command;return}(e,s,h.include);return{actions:s.map((t=>new b.bA(t,e))),documentation:o}}catch(n){if((0,o.n2)(n))throw n;return(0,o.Cp)(n),E}})),y=e.onDidChange((()=>{const i=e.all(t);(0,n.fS)(i,f)||p.cancel()}));try{const i=await Promise.all(v),o=i.map((e=>e.actions)).flat(),r=[...(0,n.kX)(i.map((e=>e.documentation))),...I(e,t,s,o)];return new N(o,r,_)}finally{y.dispose(),p.dispose()}}function*I(e,t,i,n){var s,o,r;if(t&&n.length)for(const a of e.all(t))a._getAdditionalMenuItems&&(yield*null===(s=a._getAdditionalMenuItems)||void 0===s?void 0:s.call(a,{trigger:i.type,only:null===(r=null===(o=i.filter)||void 0===o?void 0:o.include)||void 0===r?void 0:r.value},n.map((e=>e.action))))}var M;async function A(e,t,i,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.T.None;var r;const a=e.get(l.vu),d=e.get(m.H),h=e.get(v.b),c=e.get(f.lT);if(h.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(o),!o.isCancellationRequested){if(null===(r=t.action.edit)||void 0===r?void 0:r.edits.length){if(!(await a.apply(t.action.edit,{editor:null===n||void 0===n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==M.OnSave,showPreview:null===n||void 0===n?void 0:n.preview})).isApplied)return}if(t.action.command)try{await d.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(u){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(u);c.error("string"===typeof e?e:p.NC("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(M||(M={})),m.P.registerCommand("_executeCodeActionProvider",(async function(e,t,i,n,r){if(!(t instanceof a.o))throw(0,o.b1)();const{codeActionProvider:l}=e.get(c.p),g=e.get(u.q).getModel(t);if(!g)throw(0,o.b1)();const p=h.Y.isISelection(i)?h.Y.liftSelection(i):d.e.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,o.b1)();const m="string"===typeof n?new C.o(n):void 0,f=await T(l,g,p,{type:1,triggerAction:b.aQ.Default,filter:{includeSourceActions:!0,include:m}},_.Ex.None,s.T.None),v=[],y=Math.min(f.validActions.length,"number"===typeof r?r:0);for(let o=0;o<y;o++)v.push(f.validActions[o].resolve(s.T.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},13391:(e,t,i)=>{"use strict";var n=i(60548),s=i(50142),o=i(34277),r=i(78701),a=i(35770),l=i(87851),d=i(5887),h=i(47116),c=i(33215),u=i(30796),g=i(31385);function p(e){return h.Ao.regex(g.fj.keys()[0],new RegExp("(\\s|^)"+(0,r.ec)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:d.NC("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:d.NC("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[d.NC("args.schema.apply.first","Always apply the first returned code action."),d.NC("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),d.NC("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:d.NC("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:c.aQ.Default;if(e.hasModel()){const o=u.G.get(e);null===o||void 0===o||o.manualTriggerAtCurrentPosition(t,s,i,n)}}class _ extends n.R6{constructor(){super({id:l.cz,label:d.NC("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),kbOpts:{kbExpr:a.u.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,d.NC("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,c.aQ.QuickFix)}}class v extends n._l{constructor(){super({id:l.RB,precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const n=c.wZ.fromUser(i,{kind:o.o.Empty,apply:"ifSingle"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.NC("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):d.NC("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?d.NC("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):d.NC("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class b extends n.R6{constructor(){super({id:l.Bb,label:d.NC("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),kbOpts:{kbExpr:a.u.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.Ao.and(a.u.writable,p(c.yN.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=c.wZ.fromUser(i,{kind:c.yN.Refactor,apply:"never"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.NC("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):d.NC("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?d.NC("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):d.NC("editor.action.refactor.noneMessage","No refactorings available"),{include:c.yN.Refactor.contains(n.kind)?n.kind:o.o.None,onlyIncludePreferredActions:n.preferred},n.apply,c.aQ.Refactor)}}class C extends n.R6{constructor(){super({id:l.MN,label:d.NC("source.label","Source Action..."),alias:"Source Action...",precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.Ao.and(a.u.writable,p(c.yN.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=c.wZ.fromUser(i,{kind:c.yN.Source,apply:"never"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.NC("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):d.NC("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?d.NC("editor.action.source.noneMessage.preferred","No preferred source actions available"):d.NC("editor.action.source.noneMessage","No source actions available"),{include:c.yN.Source.contains(n.kind)?n.kind:o.o.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,c.aQ.SourceAction)}}class y extends n.R6{constructor(){super({id:l.uH,label:d.NC("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.Ao.and(a.u.writable,p(c.yN.SourceOrganizeImports)),kbOpts:{kbExpr:a.u.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,d.NC("editor.action.organize.noneMessage","No organize imports action available"),{include:c.yN.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",c.aQ.OrganizeImports)}}class w extends n.R6{constructor(){super({id:l.TM,label:d.NC("fixAll.label","Fix All"),alias:"Fix All",precondition:h.Ao.and(a.u.writable,p(c.yN.SourceFixAll))})}run(e,t){return f(t,d.NC("fixAll.noneMessage","No fix all action available"),{include:c.yN.SourceFixAll,includeSourceActions:!0},"ifSingle",c.aQ.FixAll)}}class S extends n.R6{constructor(){super({id:l.pZ,label:d.NC("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.Ao.and(a.u.writable,p(c.yN.QuickFix)),kbOpts:{kbExpr:a.u.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,d.NC("editor.action.autoFix.noneMessage","No auto fixes available"),{include:c.yN.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",c.aQ.AutoFix)}}var x=i(38859),L=i(49817),k=i(76322);(0,n._K)(u.G.ID,u.G,3),(0,n._K)(x.f.ID,x.f,4),(0,n.Qr)(_),(0,n.Qr)(b),(0,n.Qr)(C),(0,n.Qr)(y),(0,n.Qr)(S),(0,n.Qr)(w),(0,n.fK)(new v),k.B.as(L.IP.Configuration).registerConfiguration({...s.wk,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:d.NC("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),k.B.as(L.IP.Configuration).registerConfiguration({...s.wk,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:d.NC("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}})},30796:(e,t,i)=>{"use strict";i.d(t,{G:()=>ce});var n,s=i(76595),o=i(83945),r=i(16015),a=i(20447),l=i(53186),d=i(74633),h=i(13277),c=i(53869),u=i(87851),g=i(34277),p=i(33215),m=i(25371),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=n=class{constructor(e){this.keybindingService=e}getResolver(){const e=new a.o((()=>this.keybindingService.getKeybindings().filter((e=>n.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.uH?t={kind:p.yN.SourceOrganizeImports.value}:e.command===u.TM&&(t={kind:p.yN.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.wZ.fromUser(t,{kind:g.o.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return null===i||void 0===i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.o(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v.codeActionCommands=[u.Bb,u.RB,u.MN,u.uH,u.TM],v=n=f([_(0,m.d)],v);i(60951);var b=i(61542),C=(i(95451),i(5887));const y=Object.freeze({kind:g.o.Empty,title:(0,C.NC)("codeAction.widget.id.more","More Actions...")}),w=Object.freeze([{kind:p.yN.QuickFix,title:(0,C.NC)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.yN.RefactorExtract,title:(0,C.NC)("codeAction.widget.id.extract","Extract"),icon:b.l.wrench},{kind:p.yN.RefactorInline,title:(0,C.NC)("codeAction.widget.id.inline","Inline"),icon:b.l.wrench},{kind:p.yN.RefactorRewrite,title:(0,C.NC)("codeAction.widget.id.convert","Rewrite"),icon:b.l.wrench},{kind:p.yN.RefactorMove,title:(0,C.NC)("codeAction.widget.id.move","Move"),icon:b.l.wrench},{kind:p.yN.SurroundWith,title:(0,C.NC)("codeAction.widget.id.surround","Surround With"),icon:b.l.surroundWith},{kind:p.yN.Source,title:(0,C.NC)("codeAction.widget.id.source","Source Action"),icon:b.l.symbolFile},y]);var S=i(38859),x=i(10843),L=i(7144),k=i(23014),D=i(69394),N=i(76946),E=i(90388),T=i(73045),I=i(79086),M=i(93617),A=i(6009),R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},O=function(e,t){return function(i,n){t(i,n,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class B{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=null!==(s=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==s?s:""}disposeTemplate(e){}}let V=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new k.e(e,E.OS)}}renderElement(e,t,i){var n,o,r;if((null===(n=e.group)||void 0===n?void 0:n.icon)?(i.icon.className=T.k.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,A.n_1)(e.group.icon.color.id))):(i.icon.className=T.k.asClassName(b.l.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=U(e.label),i.keybinding.set(e.keybinding),s.iJ(!!e.keybinding,i.keybinding.element);const a=null===(o=this._keybindingService.lookupKeybinding(P))||void 0===o?void 0:o.getLabel(),l=null===(r=this._keybindingService.lookupKeybinding(F))||void 0===r?void 0:r.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview&&e.canPreview?i.container.title=(0,C.NC)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,l):i.container.title=(0,C.NC)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};V=R([O(1,m.d)],V);class W extends UIEvent{constructor(){super("acceptSelectedAction")}}class H extends UIEvent{constructor(){super("previewSelectedAction")}}function z(e){if("action"===e.kind)return e.label}let j=class extends l.JT{constructor(e,t,i,n,s,o){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=o,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new N.A),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const r={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new D.aV(e,this.domNode,r,[new V(t,this._keybindingService),new B],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:z},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?U(null===e||void 0===e?void 0:e.label):"";return e.disabled&&(t=(0,C.NC)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,C.NC)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(M.O2),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let n=e;if(this._allMenuItems.length>=50)n=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));n=Math.max(...t,e)}const s=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(s,n),this.domNode.style.height=`${s}px`,this._list.domFocus(),n}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new H:new W;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof H):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(0===i.length)return;const n=i[0],s=this._list.element(n);null===(t=(e=this._delegate).onFocus)||void 0===t||t.call(e,s.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function U(e){return e.replace(/\r\n|\r|\n/g," ")}j=R([O(4,I.u),O(5,m.d)],j);var K=i(6178),q=i(47116),$=i(23026),G=i(87775),Y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Z=function(e,t){return function(i,n){t(i,n,e)}};(0,A.P6G)("actionBar.toggledBackground",{dark:A.XEs,light:A.XEs,hcDark:A.XEs,hcLight:A.XEs},(0,C.NC)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const Q={Visible:new q.uy("codeActionMenuVisible",!1,(0,C.NC)("codeActionMenuVisible","Whether the action widget list is visible"))},X=(0,G.yh)("actionWidgetService");let J=class extends l.JT{get isVisible(){return Q.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new l.XK)}show(e,t,i,n,s,o,r){const a=Q.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(j,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:e=>(a.set(!0),this._renderWidget(e,l,null!==r&&void 0!==r?r:[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},o,!1)}acceptSelected(e){var t;null===(t=this._list.value)||void 0===t||t.acceptSelected(e)}focusPrevious(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusPrevious()}focusNext(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusNext()}hide(){var e;null===(e=this._list.value)||void 0===e||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,!this._list.value)throw new Error("List has no value");o.appendChild(this._list.value.domNode);const r=new l.SL,a=document.createElement("div"),d=e.appendChild(a);d.classList.add("context-view-block"),r.add(s.nm(d,s.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const h=document.createElement("div"),c=e.appendChild(h);c.classList.add("context-view-pointerBlock"),r.add(s.nm(c,s.tw.POINTER_MOVE,(()=>c.remove()))),r.add(s.nm(c,s.tw.MOUSE_DOWN,(()=>c.remove())));let u=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(o.appendChild(e.getContainer().parentElement),r.add(e),u=e.getContainer().offsetWidth)}const g=null===(n=this._list.value)||void 0===n?void 0:n.layout(u);o.style.width=`${g}px`;const p=r.add(s.go(e));return r.add(p.onDidBlur((()=>this.hide()))),r}_createActionBar(e,t){if(!t.length)return;const i=s.$(e),n=new L.o(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e)}};J=Y([Z(0,I.u),Z(1,q.i6),Z(2,G.TG)],J),(0,$.z)(X,J,1);const ee=1100;(0,K.r1)(class extends K.Ke{constructor(){super({id:"hideCodeActionWidget",title:(0,C.vv)("hideCodeActionWidget.title","Hide action widget"),precondition:Q.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(X).hide()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:"selectPrevCodeAction",title:(0,C.vv)("selectPrevCodeAction.title","Select previous action"),precondition:Q.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(X);t instanceof J&&t.focusPrevious()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:"selectNextCodeAction",title:(0,C.vv)("selectNextCodeAction.title","Select next action"),precondition:Q.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(X);t instanceof J&&t.focusNext()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:P,title:(0,C.vv)("acceptSelected.title","Accept selected action"),precondition:Q.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(X);t instanceof J&&t.acceptSelected()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:F,title:(0,C.vv)("previewSelected.title","Preview selected action"),precondition:Q.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(X);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(94943),ne=i(30600),se=i(76390),oe=i(97757),re=i(25112),ae=i(46673),le=i(31385),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};let ce=te=class extends l.JT{static get(e){return e.getContribution(te.ID)}constructor(e,t,i,n,s,o,r,d,h,c){super(),this._commandService=r,this._configurationService=d,this._actionWidgetService=h,this._instantiationService=c,this._activeCodeActions=this._register(new l.XK),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new le.Jt(this._editor,s.codeActionProvider,t,i,o,d)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.o((()=>{const e=this._editor.getContribution(S.f.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=n.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.UX.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var s;if(!this._editor.hasModel())return;null===(s=x.O.get(this._editor))||void 0===s||s.closeMessage();const o=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:o}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,n){try{await this._instantiationService.invokeFunction(u.LR,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.aQ.QuickFix,filter:{}})}}async update(e){var t,i,n,s,o,a,l;if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let d;try{d=await e.actions}catch(h){return void(0,r.dL)(h)}if(!this._disposed)if(null===(i=this._lightBulbWidget.value)||void 0===i||i.update(d,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,d);if(t){try{null===(s=this._lightBulbWidget.value)||void 0===s||s.hide(),await this._applyCodeAction(t,!1,!1,u.UX.FromCodeActions)}finally{d.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,d);if(t&&t.action.disabled)return null===(o=x.O.get(this._editor))||void 0===o||o.showMessage(t.action.disabled,e.trigger.context.position),void d.dispose()}}const t=!!(null===(a=e.trigger.filter)||void 0===a?void 0:a.include);if(e.trigger.context&&(!d.allActions.length||!t&&!d.validActions.length))return null===(l=x.O.get(this._editor))||void 0===l||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=d,void d.dispose();this._activeCodeActions.value=d,this.showCodeActionList(d,this.toCoords(e.position),{includeDisabledActions:t,fromLightbulb:!1})}else this._actionWidgetService.isVisible?d.dispose():this._activeCodeActions.value=d}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((e=>{let{action:t}=e;return t.disabled})):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}async showCodeActionList(e,t,i){const n=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const r=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!r.length)return;const a=d.L.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,u.UX.FromCodeActions),this._actionWidgetService.hide(),n.clear()},onHide:()=>{var e;null===(e=this._editor)||void 0===e||e.focus(),n.clear()},onHover:async(e,t)=>{var i;if(t.isCancellationRequested)return;let n=!1;const s=e.action.kind;if(s){const e=new g.o(s);n=[p.yN.RefactorExtract,p.yN.RefactorInline,p.yN.RefactorRewrite].some((t=>t.contains(e)))}return{canPreview:n||!!(null===(i=e.action.edit)||void 0===i?void 0:i.edits.length)}},onFocus:e=>{var t,i;if(e&&e.action){const s=e.action.ranges,r=e.action.diagnostics;if(n.clear(),s&&s.length>0){const e=r&&(null===r||void 0===r?void 0:r.length)>1?r.map((e=>({range:e,options:te.DECORATION}))):s.map((e=>({range:e,options:te.DECORATION})));n.set(e)}else if(r&&r.length>0){const e=r.map((e=>({range:e,options:te.DECORATION})));n.set(e);const s=r[0];if(s.startLineNumber&&s.startColumn){const e=null===(i=null===(t=this._editor.getModel())||void 0===t?void 0:t.getWordAtPosition({lineNumber:s.startLineNumber,column:s.startColumn}))||void 0===i?void 0:i.word;o.i7((0,C.NC)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,s.startLineNumber,s.startColumn))}}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>{var t;return{kind:"action",item:e,group:y,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!(null===(t=e.action.edit)||void 0===t?void 0:t.edits.length)}}));const n=w.map((e=>({group:e,actions:[]})));for(const o of e){const e=o.action.kind?new g.o(o.action.kind):g.o.None;for(const t of n)if(t.group.kind.contains(e)){t.actions.push(o);break}}const s=[];for(const o of n)if(o.actions.length){s.push({kind:"header",group:o.group});for(const e of o.actions){const t=o.group;s.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:b.l.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return s}(r,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,s,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,s.i)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:null===t||void 0===t?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map((e=>{var t;return{id:e.id,label:e.title,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:"",class:void 0,enabled:!0,run:()=>{var t;return this._commandService.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}}}));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:(0,C.NC)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,C.NC)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};ce.ID="editor.contrib.codeActionController",ce.DECORATION=h.qx.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"}),ce=te=de([he(1,se.lT),he(2,q.i6),he(3,G.TG),he(4,c.p),he(5,oe.ek),he(6,ie.H),he(7,ne.Ui),he(8,X),he(9,G.TG)],ce),(0,ae.Ic)(((e,t)=>{var i,n;i=".quickfix-edit-highlight",(n=e.getColor(A.MUv))&&t.addRule(`.monaco-editor ${i} { background-color: ${n}; }`);const s=e.getColor(A.EiJ);s&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,re.c3)(e.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`)}))},31385:(e,t,i)=>{"use strict";i.d(t,{Jt:()=>y,fj:()=>f});var n=i(53372),s=i(16015),o=i(39706),r=i(53186),a=i(30506),l=i(67364),d=i(74633),h=i(24854),c=i(47116),u=i(97757),g=i(33215),p=i(87851),m=i(34277);const f=new c.uy("supportedCodeAction",""),_="_typescript.applyFixAllCodeAction";class v extends r.JT{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:250;super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=s,this._autoTriggerTimer=this._register(new n._F),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.Xy)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.aQ.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==l.$r.Off){if(i===l.$r.On)return t;if(i===l.$r.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:n}=t.getPosition(),s=e.getLineContent(i);if(0===s.length)return;if(1===n){if(/\s/.test(s[0]))return}else if(n===e.getLineMaxColumn(i)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[n-2])&&/\s/.test(s[n-1]))return}return t}}}var b;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,s.n2)(e))return C;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(b||(b={}));const C=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class y extends r.JT{constructor(e,t,i,n,s,a){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._configurationService=a,this._codeActionOracle=this._register(new r.XK),this._state=b.Empty,this._onDidChangeState=this._register(new o.Q5),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=f.bindTo(n),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(b.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:null===t||void 0===t?void 0:t.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(b.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap((e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]}));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new v(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(b.Empty);const s=t.selection.getStartPosition(),o=(0,n.PG)((async i=>{var n,s,o,r,a,l,c,f,v,b;if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.aQ.QuickFix||(null===(s=null===(n=t.trigger.filter)||void 0===n?void 0:n.include)||void 0===s?void 0:s.contains(g.yN.QuickFix)))){const n=await(0,p.aI)(this._registry,e,t.selection,t.trigger,u.Ex.None,i),s=[...n.allActions];if(i.isCancellationRequested)return C;const y=null===(o=n.validActions)||void 0===o?void 0:o.some((e=>!!e.action.kind&&g.yN.QuickFix.contains(new m.o(e.action.kind)))),w=this._markerService.read({resource:e.uri});if(y){for(const e of n.validActions)(null===(a=null===(r=e.action.command)||void 0===r?void 0:r.arguments)||void 0===a?void 0:a.some((e=>"string"===typeof e&&e.includes(_))))&&(e.action.diagnostics=[...w.filter((e=>e.relatedInformation))]);return{validActions:n.validActions,allActions:s,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}if(!y&&w.length>0){const o=t.selection.getPosition();let r=o,a=Number.MAX_VALUE;const m=[...n.validActions];for(const y of w){const C=y.endColumn,S=y.endLineNumber,x=y.startLineNumber;if(S===o.lineNumber||x===o.lineNumber){r=new d.L(S,C);const y={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:(null===(l=t.trigger.filter)||void 0===l?void 0:l.include)?null===(c=t.trigger.filter)||void 0===c?void 0:c.include:g.yN.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:(null===(f=t.trigger.context)||void 0===f?void 0:f.notAvailableMessage)||"",position:r}},x=new h.Y(r.lineNumber,r.column,r.lineNumber,r.column),L=await(0,p.aI)(this._registry,e,x,y,u.Ex.None,i);if(0!==L.validActions.length){for(const e of L.validActions)(null===(b=null===(v=e.action.command)||void 0===v?void 0:v.arguments)||void 0===b?void 0:b.some((e=>"string"===typeof e&&e.includes(_))))&&(e.action.diagnostics=[...w.filter((e=>e.relatedInformation))]);0===n.allActions.length&&s.push(...L.allActions),Math.abs(o.column-C)<a?m.unshift(...L.validActions):m.push(...L.validActions)}a=Math.abs(o.column-C)}}const C=m.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return C.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:C,allActions:s,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}}return(0,p.aI)(this._registry,e,t.selection,t.trigger,u.Ex.None,i)}));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(o,250));const r=new b.Triggered(t.trigger,s,o);let a=!1;1===this._state.type&&(a=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),a||this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.aQ.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},38859:(e,t,i)=>{"use strict";i.d(t,{f:()=>v});var n,s,o=i(76595),r=i(68068),a=i(61542),l=i(39706),d=i(53186),h=i(73045),c=i(82412),u=i(87851),g=i(5887),p=i(94943),m=i(25371),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(s||(s={}));let v=n=class extends d.JT{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new l.Q5),this.onClick=this._onClick.event,this._state=s.Hidden,this._iconClasses=[],this._domNode=o.$("div.lightBulbWidget"),this._register(r.o.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),this._register(o.GQ(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=o.i(this._domNode),n=this._editor.getOption(67);let s=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(s+=n),this._onClick.fire({x:e.posx,y:t+i+s,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(o.nm(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(l.ju.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{var e,t,i,n;this._preferredKbLabel=null!==(t=null===(e=this._keybindingService.lookupKeybinding(u.pZ))||void 0===e?void 0:e.getLabel())&&void 0!==t?t:void 0,this._quickFixKbLabel=null!==(n=null===(i=this._keybindingService.lookupKeybinding(u.cz))||void 0===i?void 0:i.getLabel())&&void 0!==n?n:void 0,this._updateLightBulbTitleAndIcon()})))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=this._editor.getOptions().get(50),h=o.getLineContent(r),u=(0,c.q)(h,l),g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let p=r,m=1;if(!(d.spaceWidth*u>22)){if(r>1&&!g(r-1))p-=1;else if(r<o.getLineCount()&&!g(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide();m=/^\S\s*$/.test(o.getLineContent(p))?2:1}this.state=new s.Showing(e,t,i,{position:{lineNumber:p,column:m},preference:n._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==s.Hidden&&(this.state=s.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=a.l.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?a.l.lightbulbSparkleAutofix:a.l.lightbulbAutofix:this.state.actions.hasAIFix?a.l.lightbulbSparkle:a.l.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=h.k.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=g.NC("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=g.NC("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=g.NC("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=g.NC("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};v.ID="editor.contrib.lightbulbWidget",v._posPref=[0],v=n=f([_(1,m.d),_(2,p.H)],v)},33215:(e,t,i)=>{"use strict";i.d(t,{EU:()=>a,Yl:()=>l,aQ:()=>r,bA:()=>c,wZ:()=>h,yN:()=>o});var n=i(16015),s=i(34277);const o=new class{constructor(){this.QuickFix=new s.o("quickfix"),this.Refactor=new s.o("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new s.o("notebook"),this.Source=new s.o("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var r;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>d(t,i,e.include))))&&!(!e.includeSourceActions&&o.Source.contains(t)))}function l(e,t){const i=t.kind?new s.o(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>d(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&o.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function d(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(r||(r={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new s.o(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class c{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(i){(0,n.Cp)(i)}t&&(this.action.edit=t.edit)}return this}}},79623:(e,t,i)=>{"use strict";var n=i(53372),s=i(16015),o=i(53186),r=i(52432),a=i(60548),l=i(67364),d=i(35770),h=i(76946),c=i(47624),u=i(91387),g=i(23058),p=i(94943),m=i(53869);class f{constructor(){this.lenses=[],this._disposables=new o.SL}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const n=e.ordered(t),o=new Map,r=new f,a=n.map((async(e,n)=>{o.set(e,n);try{const n=await Promise.resolve(e.provideCodeLenses(t,i));n&&r.add(n,e)}catch(a){(0,s.Cp)(a)}}));return await Promise.all(a),r.lenses=r.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:o.get(e.provider)<o.get(t.provider)?-1:o.get(e.provider)>o.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),r}p.P.registerCommand("_executeCodeLensProvider",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];let[r,a]=i;(0,c.p_)(u.o.isUri(r)),(0,c.p_)("number"===typeof a||!a);const{codeLensProvider:l}=e.get(m.p),d=e.get(g.q).getModel(r);if(!d)throw(0,s.b1)();const p=[],f=new o.SL;return _(l,d,h.T.None).then((e=>{f.add(e);const t=[];for(const i of e.lenses)void 0===a||null===a||Boolean(i.symbol.command)?p.push(i.symbol):a-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(d,i.symbol,h.T.None)).then((e=>p.push(e||i.symbol))));return Promise.all(t)})).then((()=>p)).finally((()=>{setTimeout((()=>f.dispose()),100)}))}));var v=i(39706),b=i(38079),C=i(28928),y=i(23026),w=i(87775),S=i(87650),x=i(11801),L=i(76595),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const N=(0,w.yh)("ICodeLensCache");class E{constructor(e,t){this.lineCount=e,this.data=t}}let T=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new b.z6(20,.75);(0,L.se)(x.E,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),v.ju.once(e.onWillSaveState)((i=>{i.reason===S.fk.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new f;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new E(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new C.e(e,1,e,11)});const s=new f;s.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new E(i.lineCount,s))}}catch(t){}}};T=k([D(0,S.Uy)],T),(0,y.z)(N,T,1);var I=i(27691),M=i(13277);class A{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class R{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+R._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s<e.length;s++){const t=e[s];if(t&&(n=!0,t.command)){const n=(0,I.T)(t.command.title.trim());if(t.command.id){const e="c"+R._idPool++;i.push(L.$("a",{id:e,title:t.command.tooltip,role:"button"},...n)),this._commands.set(e,t.command)}else i.push(L.$("span",{title:t.command.tooltip},...n));s+1<e.length&&i.push(L.$("span",void 0,"\xa0|\xa0"))}}n?(L.mc(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):L.mc(this._domNode,L.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}R._idPool=0;class O{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,n=t.length;i<n;i++)this._addDecorationsCallbacks[i](t[i])}}const P=M.qx.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,n,s,o){let r;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),r=r?C.e.plusRange(r,e.symbol.range):C.e.lift(e.symbol.range)})),this._viewZone=new A(r.startLineNumber-1,s,o),this._viewZoneId=n.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new R(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null===t||void 0===t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||C.e.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var B=i(5887),V=i(61758),W=i(2033),H=i(14386),z=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},j=function(e,t){return function(i,n){t(i,n,e)}};let U=class{constructor(e,t,i,s,r,a){this._editor=e,this._languageFeaturesService=t,this._commandService=s,this._notificationService=r,this._codeLensCache=a,this._disposables=new o.SL,this._localToDispose=new o.SL,this._lenses=[],this._oldCodeLensModels=new o.SL,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new n.pY((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.hL.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,n.Vg)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const n of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof n.onDidChange){const e=n.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new n.pY((()=>{var t;const o=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.PG)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const n=this._provideCodeLensDebounce.update(e,Date.now()-o);i.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),s.dL)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,o.OF)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{var e;this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));const s=new O;i.forEach((e=>{e.dispose(s,t),this._lenses.splice(this._lenses.indexOf(e),1)})),s.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,o.OF)((()=>{if(this._editor.getModel()){const e=r.Z.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null===t||void 0===t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null===t||void 0===t?void 0:t.tagName))for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new O;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const r of e.lenses){const e=r.symbol.range.startLineNumber;e<1||e>t||(n&&n[n.length-1].symbol.range.startLineNumber===e?n.push(r):(n=[r],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=r.Z.capture(this._editor),o=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const n=new O;let s=0,r=0;for(;r<i.length&&s<this._lenses.length;){const e=i[r][0].symbol.range.startLineNumber,a=this._lenses[s].getLineNumber();a<e?(this._lenses[s].dispose(n,t),this._lenses.splice(s,1)):a===e?(this._lenses[s].updateCodeLensSymbols(i[r],n),r++,s++):(this._lenses.splice(s,0,new F(i[r],this._editor,n,t,o.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),s++,r++)}for(;s<this._lenses.length;)this._lenses[s].dispose(n,t),this._lenses.splice(s,1);for(;r<i.length;)this._lenses.push(new F(i[r],this._editor,n,t,o.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),r++;n.commit(e)}))})),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],o=[];if(this._lenses.forEach((e=>{const n=e.computeIfNecessary(t);n&&(i.push(n),o.push(e))})),0===i.length)return;const r=Date.now(),a=(0,n.PG)((e=>{const n=i.map(((i,n)=>{const r=new Array(i.length),a=i.map(((i,n)=>i.symbol.command||"function"!==typeof i.provider.resolveCodeLens?(r[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{r[n]=e}),s.Cp)));return Promise.all(a).then((()=>{e.isCancellationRequested||o[n].isDisposed()||o[n].updateCommands(r)}))}));return Promise.all(n)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,s.dL)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,(null===(e=this._currentCodeLensModel)||void 0===e?void 0:e.isDisposed)?void 0:this._currentCodeLensModel}};U.ID="css.editor.codeLens",U=z([j(1,m.p),j(2,H.A),j(3,p.H),j(4,V.lT),j(5,N)],U),(0,a._K)(U.ID,U,1),(0,a.Qr)(class extends a.R6{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:d.u.hasCodeLensProvider,label:(0,B.NC)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(W.eJ),n=e.get(p.H),s=e.get(V.lT),o=t.getSelection().positionLineNumber,r=t.getContribution(U.ID);if(!r)return;const a=await r.getModel();if(!a)return;const l=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===o&&l.push({label:u.symbol.command.title,command:u.symbol.command});if(0===l.length)return;const d=await i.pick(l,{canPickMany:!1,placeHolder:(0,B.NC)("placeHolder","Select a command")});if(!d)return;let h=d.command;if(a.isDisposed){const e=await r.getModel(),t=null===e||void 0===e?void 0:e.lenses.find((e=>{var t;return e.symbol.range.startLineNumber===o&&(null===(t=e.symbol.command)||void 0===t?void 0:t.title)===h.title}));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await n.executeCommand(h.id,...h.arguments||[])}catch(c){s.error(c)}}})},54919:(e,t,i)=>{"use strict";i.d(t,{E:()=>u,R:()=>g});var n=i(76946),s=i(16015),o=i(91387),r=i(28928),a=i(23058),l=i(94943),d=i(53869),h=i(20161),c=i(30600);async function u(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return _(new p,e,t,i,n)}function g(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}class p{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const o of s)n.push({colorInfo:o,provider:e});return Array.isArray(s)}}class m{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const o of s)n.push({range:o.range,color:[o.color.red,o.color.green,o.color.blue,o.color.alpha]});return Array.isArray(s)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,s){const o=await e.provideColorPresentations(t,this.colorInfo,n.T.None);return Array.isArray(o)&&s.push(...o),Array.isArray(o)}}async function _(e,t,i,n,o){let r,a=!1;const l=[],d=t.ordered(i);for(let u=d.length-1;u>=0;u--){const t=d[u];if(t instanceof h.G)r=t;else try{await e.compute(t,i,n,l)&&(a=!0)}catch(c){(0,s.Cp)(c)}}return a?l:r&&o?(await e.compute(r,i,n,l),l):[]}function v(e,t){const{colorProvider:i}=e.get(d.p),n=e.get(a.q).getModel(t);if(!n)throw(0,s.b1)();return{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(c.Ui).getValue("editor.defaultColorDecorators",{resource:t})}}l.P.registerCommand("_executeDocumentColorProvider",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];const[a]=i;if(!(a instanceof o.o))throw(0,s.b1)();const{model:l,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:h}=v(e,a);return _(new m,d,l,n.T.None,h)})),l.P.registerCommand("_executeColorPresentationProvider",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];const[l,d]=i,{uri:h,range:c}=d;if(!(h instanceof o.o)||!Array.isArray(l)||4!==l.length||!r.e.isIRange(c))throw(0,s.b1)();const{model:u,colorProviderRegistry:g,isDefaultColorDecoratorsEnabled:p}=v(e,h),[m,b,C,y]=l;return _(new f({range:c,color:{red:m,green:b,blue:C,alpha:y}}),g,u,n.T.None,p)}))},52722:(e,t,i)=>{"use strict";var n=i(53186),s=i(60548),o=i(28928),r=i(14900),a=i(61672),l=i(81584),d=i(82213);class h extends n.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==r.Ak)return;if(!i.range)return;const n=this._editor.getContribution(l.c.ID);if(n&&!n.isColorPickerVisible){const e=new o.e(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(e,1,0,!1,!0)}}}h.ID="editor.contrib.colorContribution",(0,s._K)(h.ID,h,2),d.Ae.register(a.nh)},14900:(e,t,i)=>{"use strict";i.d(t,{Ak:()=>y,if:()=>w});var n,s=i(53372),o=i(63932),r=i(16015),a=i(39706),l=i(53186),d=i(6617),h=i(78701),c=i(76046),u=i(60548),g=i(28928),p=i(13277),m=i(14386),f=i(53869),_=i(54919),v=i(30600),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=Object.create({});let w=n=class extends l.JT{constructor(e,t,i,s){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new l.SL),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new c.t7(this._editor),this._decoratorLimitReporter=new S,this._colorDecorationClassRefs=this._register(new l.SL),this._debounceInformation=s.for(i.colorProvider,"Document Colors",{min:n.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),n=e.hasChanged(147);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new s._F,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,s.PG)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new d.G(!1),n=await(0,_.E)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,r.dL)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.qx.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let s=0;s<e.length&&t.length<i;s++){const{red:i,green:n,blue:r,alpha:a}=e[s].colorInfo.color,l=new o.VS(Math.round(255*i),Math.round(255*n),Math.round(255*r),a),d=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`,c=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:d}));t.push({range:{startLineNumber:e[s].colorInfo.range.startLineNumber,startColumn:e[s].colorInfo.range.startColumn,endLineNumber:e[s].colorInfo.range.endLineNumber,endColumn:e[s].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.B4,inlineClassName:`${c.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:y}}})}const n=i<e.length&&i;this._decoratorLimitReporter.update(e.length,n),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.e.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};w.ID="editor.contrib.colorDetector",w.RECOMPUTE_TIME=1e3,w=n=b([C(1,v.Ui),C(2,f.p),C(3,m.A)],w);class S{constructor(){this._onDidChange=new a.Q5,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u._K)(w.ID,w,1)},61672:(e,t,i)=>{"use strict";i.d(t,{nh:()=>O,PQ:()=>F});var n=i(53372),s=i(76946),o=i(63932),r=i(53186),a=i(28928),l=i(54919),d=i(14900),h=i(39706);class c{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){i=n;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(20796),g=i(76595),p=i(21406),m=i(7341),f=i(61542),_=i(73045),v=(i(32416),i(5887)),b=i(6009),C=i(54329);const y=g.$;class w extends r.JT{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=y(".colorpicker-header"),g.R3(e,this._domNode),this._pickedColorNode=g.R3(this._domNode,y(".picked-color")),g.R3(this._pickedColorNode,y("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.R3(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const s=(0,v.NC)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",s),this._originalColorNode=g.R3(this._domNode,y(".original-color")),this._originalColorNode.style.backgroundColor=o.Il.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(b.yJx)||o.Il.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(b.yJx)||o.Il.white}))),this._register(g.nm(this._pickedColorNode,g.tw.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.nm(this._originalColorNode,g.tw.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=o.Il.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new S(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=o.Il.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class S extends r.JT{constructor(e){super(),this._onClicked=this._register(new h.Q5),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.R3(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.R3(this._button,t);g.R3(t,y(".button"+_.k.asCSSSelector((0,C.q5)("color-picker-close",f.l.close,(0,v.NC)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.nm(this._button,g.tw.CLICK,(()=>{this._onClicked.fire()})))}}class x extends r.JT{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=y(".colorpicker-body"),g.R3(e,this._domNode),this._saturationBox=new L(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new D(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new N(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new E(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange(e){let{s:t,v:i}=e;const n=this.model.color.hsva;this.model.color=new o.Il(new o.tx(n.h,t,i,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new o.Il(new o.tx(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new o.Il(new o.tx(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class L extends r.JT{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,this._domNode=y(".saturation-wrap"),g.R3(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.R3(this._domNode,this._canvas),this.selection=y(".saturation-selection"),g.R3(this._domNode,this.selection),this.layout(),this._register(g.nm(this._domNode,g.tw.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p.C);const t=g.i(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.nm(e.target.ownerDocument,g.tw.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new o.Il(new o.tx(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this._canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=o.Il.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class k extends r.JT{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super(),this.model=t,this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.R3(e,y(".standalone-strip")),this.overlay=g.R3(this.domNode,y(".standalone-overlay"))):(this.domNode=g.R3(e,y(".strip")),this.overlay=g.R3(this.domNode,y(".overlay"))),this.slider=g.R3(this.domNode,y(".slider")),this.slider.style.top="0px",this._register(g.nm(this.domNode,g.tw.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p.C),i=g.i(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const n=g.nm(e.target.ownerDocument,g.tw.POINTER_UP,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class D extends k{constructor(e,t){super(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,s=new o.Il(new o.VS(t,i,n,1)),r=new o.Il(new o.VS(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class N extends k{constructor(e,t){super(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class E extends r.JT{constructor(e){super(),this._onClicked=this._register(new h.Q5),this.onClicked=this._onClicked.event,this._button=g.R3(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.nm(this._button,g.tw.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class T extends m.${constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];super(),this.model=t,this.pixelRatio=i,this._register(u.T.getInstance(g.Jj(e)).onDidChange((()=>this.layout())));const o=y(".colorpicker-widget");e.appendChild(o),this.header=this._register(new w(o,this.model,n,s)),this.body=this._register(new x(o,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}var I=i(46673),M=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let O=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return n.Aq.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const n=d.if.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const e=n.getColorData(s.range.getStartPosition());if(e){return[await B(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){return V(this,this._editor,this._themeService,t,e)}};O=M([A(1,I.XE)],O);class P{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let F=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!d.if.get(this._editor))return null;const n=await(0,l.E)(i,this._editor.getModel(),s.T.None);let o=null,r=null;for(const s of n){const t=s.colorInfo;a.e.containsRange(t.range,e.range)&&(o=t,r=s.provider)}const h=null!==o&&void 0!==o?o:e,c=null!==r&&void 0!==r?r:t,u=!!o;return{colorHover:await B(this,this._editor.getModel(),h,c),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.e(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await H(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return V(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function B(e,t,i,n){const r=t.getValueInRange(i.range),{red:d,green:h,blue:u,alpha:g}=i.color,p=new o.VS(Math.round(255*d),Math.round(255*h),Math.round(255*u),g),m=new o.Il(p),f=await(0,l.R)(t,i,n,s.T.None),_=new c(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,r),e instanceof O?new R(e,a.e.lift(i.range),_,n):new P(e,a.e.lift(i.range),_,n)}function V(e,t,i,n,s){if(0===n.length||!t.hasModel())return r.JT.None;if(s.setMinimumDimensions){const e=t.getOption(67)+8;s.setMinimumDimensions(new g.Ro(302,e))}const o=new r.SL,l=n[0],d=t.getModel(),h=l.model,c=o.add(new T(s.fragment,h,t.getOption(143),i,e instanceof F));s.setColorPicker(c);let u=!1,p=new a.e(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof F){const t=n[0].model.color;e.color=t,H(d,h,t,p,l),o.add(h.onColorFlushed((t=>{e.color=t})))}else o.add(h.onColorFlushed((async e=>{await H(d,h,e,p,l),u=!0,p=W(t,p,h)})));return o.add(h.onDidChangeColor((e=>{H(d,h,e,p,l)}))),o.add(t.onDidChangeModelContent((e=>{u?u=!1:(s.hide(),t.focus())}))),o}function W(e,t,i){var n,s;const o=[],r=null!==(n=i.presentation.textEdit)&&void 0!==n?n:{range:t,text:i.presentation.label,forceMoveMarkers:!1};o.push(r),i.presentation.additionalTextEdits&&o.push(...i.presentation.additionalTextEdits);const l=a.e.lift(r.range),d=e.getModel()._setTrackedRange(null,l,3);return e.executeEdits("colorpicker",o),e.pushUndoStop(),null!==(s=e.getModel()._getTrackedRange(d))&&void 0!==s?s:l}async function H(e,t,i,n,o){const r=await(0,l.R)(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},o.provider,s.T.None);t.colorPresentations=r||[]}F=M([A(1,I.XE)],F)},20161:(e,t,i)=>{"use strict";i.d(t,{G:()=>u});var n=i(63932),s=i(65184),o=i(23058),r=i(5580),a=i(53186),l=i(53869),d=i(26993),h=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,n){t(i,n,e)}};class u{constructor(e,t){this._editorWorkerClient=new s.Q8(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const s=t.range,o=t.color,r=o.alpha,a=new n.Il(new n.VS(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),r)),l=r?n.Il.Format.CSS.formatRGB(a):n.Il.Format.CSS.formatRGBA(a),d=r?n.Il.Format.CSS.formatHSL(a):n.Il.Format.CSS.formatHSLA(a),h=r?n.Il.Format.CSS.formatHex(a):n.Il.Format.CSS.formatHexA(a),c=[];return c.push({label:l,textEdit:{range:s,text:l}}),c.push({label:d,textEdit:{range:s,text:d}}),c.push({label:h,textEdit:{range:s,text:h}}),c}}let g=class extends a.JT{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new u(e,t)))}};g=h([c(0,o.q),c(1,r.c_),c(2,l.p)],g),(0,d.y)(g)},21476:(e,t,i)=>{"use strict";var n,s,o=i(60548),r=i(5887),a=i(53186),l=i(61672),d=i(87775),h=i(48171),c=i(25371),u=i(39706),g=i(53869),p=i(35770),m=i(47116),f=i(23058),_=i(5580),v=i(20161),b=i(76595),C=(i(32416),function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}),y=function(e,t){return function(i,n){t(i,n,e)}};let w=n=class extends a.JT{constructor(e,t,i,n,s,o,r){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=s,this._languageFeatureService=o,this._languageConfigurationService=r,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.u.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.u.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||null===(e=this._standaloneColorPickerWidget)||void 0===e||e.focus():this._standaloneColorPickerWidget=new S(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),null===(e=this._standaloneColorPickerWidget)||void 0===e||e.hide(),this._editor.focus()}insertColor(){var e;null===(e=this._standaloneColorPickerWidget)||void 0===e||e.updateEditor(),this.hide()}static get(e){return e.getContribution(n.ID)}};w.ID="editor.contrib.standaloneColorPickerController",w=n=C([y(1,m.i6),y(2,f.q),y(3,c.d),y(4,d.TG),y(5,g.p),y(6,_.c_)],w),(0,o._K)(w.ID,w,1);let S=s=class extends a.JT{constructor(e,t,i,n,s,o,r,a){var d;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=s,this._keybindingService=o,this._languageFeaturesService=r,this._languageConfigurationService=a,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.Q5),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(l.PQ,this._editor),this._position=null===(d=this._editor._getViewModel())||void 0===d?void 0:d.getPrimaryCursorState().modelState.position;const h=this._editor.getSelection(),c=h?{startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},g=this._register(b.go(this._body));this._register(g.onDidBlur((e=>{this.hide()}))),this._register(g.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{var t;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList;i&&i.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(c),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return s.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new x(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new v.G(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment();let n;const s={fragment:i,statusBar:this._register(new h.mR(this._keybindingService)),setColorPicker:e=>n=e,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),void 0===n)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),n.layout();const o=n.body,r=o.saturationBox.domNode.clientWidth,a=o.domNode.clientWidth-r-22-8,l=n.body.enterButton;null===l||void 0===l||l.onClicked((()=>{this.updateEditor(),this.hide()}));const d=n.header;d.pickedColorNode.style.width=r+8+"px";d.originalColorNode.style.width=a+"px";const c=n.header.closeButton;null===c||void 0===c||c.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S.ID="editor.contrib.standaloneColorPickerWidget",S=s=C([y(3,d.TG),y(4,f.q),y(5,c.d),y(6,g.p),y(7,_.c_)],S);class x{constructor(e,t){this.value=e,this.foundInEditor=t}}var L=i(6178);class k extends o.x1{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,r.vv)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,r.NC)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:L.eH.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=w.get(t))||void 0===i||i.showOrFocus()}}class D extends o.R6{constructor(){super({id:"editor.action.hideColorPicker",label:(0,r.NC)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.u.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var i;null===(i=w.get(t))||void 0===i||i.hide()}}class N extends o.R6{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,r.NC)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.u.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var i;null===(i=w.get(t))||void 0===i||i.insertColor()}}(0,o.Qr)(D),(0,o.Qr)(N),(0,L.r1)(k)},61778:(e,t,i)=>{"use strict";var n=i(17344),s=i(60548),o=i(28928),r=i(35770),a=i(5580),l=i(56154),d=i(74633),h=i(24854);class c{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length;if(i+n>e.length)return!1;for(let s=0;s<n;s++){const n=e.charCodeAt(i+s),o=t.charCodeAt(s);if(n!==o&&(!(n>=65&&n<=90&&n+32===o)&&!(o>=65&&o<=90&&o+32===n)))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,h=e.endColumn,u=s.getLineContent(a),g=s.getLineContent(d);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===d){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),n=g.substring(0,f);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(n&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),n&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=c._createRemoveBlockCommentOperations(new o.e(a,m+t.length+1,d,f+1),t,i)):(p=c._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const o of p)r.addTrackedEditOperation(o.range,o.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return o.e.isEmpty(e)?n.push(l.h.delete(new o.e(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(l.h.delete(new o.e(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(l.h.delete(new o.e(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return o.e.isEmpty(e)?s.push(l.h.replace(new o.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(l.h.insert(new d.L(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(l.h.insert(new d.L(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),o=this.languageConfigurationService.getLanguageConfiguration(s).comments;o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.Y(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.Y(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(78701);class g{constructor(e,t,i,n,s,o,r){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=o,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),o=n.getLanguageConfiguration(s).comments,r=o?o.lineCommentToken:null;if(!r)return null;const a=[];for(let l=0,d=i-t+1;l<d;l++)a[l]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return a}static _analyzeLines(e,t,i,n,s,o,r,a){let l,d=!0;l=0===e||1!==e;for(let h=0,g=n.length;h<g;h++){const a=n[h],g=s+h;if(g===s&&r){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.LC(p);if(-1!==m){if(d=!1,a.ignore=!1,a.commentStrOffset=m,l&&!c._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?l=!1:1===e||(a.ignore=!0)),l&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=o,a.commentStrOffset=p.length}if(0===e&&d){l=!1;for(let e=0,t=n.length;e<t;e++)n[e].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:n}}static _gatherPreflightData(e,t,i,n,s,o,r,a){const l=g._gatherPreflightCommentStrings(i,n,s,a);return null===l?{supported:!1}:g._analyzeLines(e,t,i,l,n,o,r,a)}_executeLineComments(e,t,i,n){let s;i.shouldRemoveComments?s=g._createRemoveLineCommentsOperations(i.lines,n.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,n.startLineNumber,this._indentSize),s=this._createAddLineCommentsOperations(i.lines,n.startLineNumber));const r=new d.L(n.positionLineNumber,n.positionColumn);for(let a=0,l=s.length;a<l;a++)if(t.addEditOperation(s[a].range,s[a].text),o.e.isEmpty(s[a].range)&&o.e.getStartPosition(s[a].range).equals(r)){e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(s[a].text||"").length)}this._selectionId=t.trackSelection(n)}_attemptRemoveBlockComment(e,t,i,n){let s=t.startLineNumber,r=t.endLineNumber;const a=n.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let l=e.getLineContent(s).lastIndexOf(i,a-1),d=e.getLineContent(r).indexOf(n,t.endColumn-1-i.length);return-1!==l&&-1===d&&(d=e.getLineContent(s).indexOf(n,l+i.length),r=s),-1===l&&-1!==d&&(l=e.getLineContent(r).lastIndexOf(i,d),s=r),!t.isEmpty()||-1!==l&&-1!==d||(l=e.getLineContent(s).indexOf(i),-1!==l&&(d=e.getLineContent(s).indexOf(n,l+i.length))),-1!==l&&32===e.getLineContent(s).charCodeAt(l+i.length)&&(i+=" "),-1!==d&&32===e.getLineContent(r).charCodeAt(d-1)&&(n=" "+n,d-=1),-1!==l&&-1!==d?c._createRemoveBlockCommentOperations(new o.e(s,l+i.length+1,r,d+1),i,n):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const n=e.getLanguageIdAtPosition(i.startLineNumber,1),s=this.languageConfigurationService.getLanguageConfiguration(n).comments;if(!s||!s.blockCommentStartToken||!s.blockCommentEndToken)return;const r=s.blockCommentStartToken,a=s.blockCommentEndToken;let l=this._attemptRemoveBlockComment(e,i,r,a);if(!l){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let n=u.LC(t);-1===n&&(n=t.length),l=c._createAddBlockCommentOperations(new o.e(i.startLineNumber,n+1,i.startLineNumber,t.length+1),r,a,this._insertSpace)}else l=c._createAddBlockCommentOperations(new o.e(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),r,a,this._insertSpace);1===l.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(i);for(const o of l)t.addEditOperation(o.range,o.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new o.e(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return n.supported?this._executeLineComments(e,t,n,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.Y(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];s.ignore||i.push(l.h.delete(new o.e(t+n,s.commentStrOffset+1,t+n,s.commentStrOffset+s.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],n=this._insertSpace?" ":"";for(let s=0,o=e.length;s<o;s++){const o=e[s];o.ignore||i.push(l.h.insert(new d.L(t+s,o.commentStrOffset+1),o.commentStr+n))}return i}static nextVisibleColumn(e,t,i,n){return i?e+(t-e%t):e+n}static _normalizeInsertionPoint(e,t,i,n){let s,o,r=1073741824;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const s=e.getLineContent(i+a);let o=0;for(let e=0,i=t[a].commentStrOffset;o<r&&e<i;e++)o=g.nextVisibleColumn(o,n,9===s.charCodeAt(e),1);o<r&&(r=o)}r=Math.floor(r/n)*n;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(i+a);let d=0;for(s=0,o=t[a].commentStrOffset;d<r&&s<o;s++)d=g.nextVisibleColumn(d,n,9===l.charCodeAt(s),1);t[a].commentStrOffset=d>r?s-1:s}}}var p=i(5887),m=i(6178);class f extends s.R6{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.c_);if(!t.hasModel())return;const n=[],s=t.getModel().getOptions(),r=t.getOption(23),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>o.e.compareRangesUsingStarts(e.selection,t.selection)));let d=l[0];for(let o=1;o<l.length;o++){const e=l[o];d.selection.endLineNumber===e.selection.startLineNumber&&(d.index<e.index?e.ignoreFirstLine=!0:(d.ignoreFirstLine=!0,d=e))}for(const o of l)n.push(new g(i,o.selection,s.indentSize,this._type,r.insertSpace,r.ignoreEmptyLines,o.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class _ extends s.R6{constructor(){super({id:"editor.action.blockComment",label:p.NC("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.eH.MenubarEditMenu,group:"5_insert",title:p.NC({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.c_);if(!t.hasModel())return;const n=t.getOption(23),s=[],o=t.getSelections();for(const r of o)s.push(new c(r,n.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}(0,s.Qr)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.NC("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.eH.MenubarEditMenu,group:"5_insert",title:p.NC({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,s.Qr)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.NC("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:(0,n.gx)(2089,2081),weight:100}})}}),(0,s.Qr)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.NC("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:(0,n.gx)(2089,2099),weight:100}})}}),(0,s.Qr)(_)},8295:(e,t,i)=>{"use strict";var n,s=i(76595),o=i(26031),r=i(51828),a=i(53186),l=i(90388),d=i(60548),h=i(35770),c=i(5887),u=i(6178),g=i(47116),p=i(79086),m=i(25371),f=i(30600),_=i(99818),v=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};let C=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,o,r,l,d){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=o,this._menuService=r,this._configurationService=l,this._workspaceContextService=d,this._toDispose=new a.SL,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&s.Ay(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?u.eH.SimpleEditorContext:u.eH.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const o of s){const[,t]=o;let n=0;for(const s of t)if(s instanceof u.NZ){const t=this._getMenuActions(e,s.item.submenu);t.length>0&&(i.push(new r.wY(s.id,s.label,t)),n++)}else i.push(s),n++;n&&i.push(new r.Z0)}return i.length&&i.pop(),i}_doShowContextMenu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=s.i(this._editor.getDomNode()),i=t.left+e.left,o=t.top+e.top+e.height;n={x:i,y:o}}const r=this._editor.getOption(127)&&!l.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new o.gU(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new o.gU(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.x)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const n=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),s=(e,t,s,o,a)=>{if(!t)return n({label:e,enabled:t,run:()=>{}});const l=e=>()=>{this._configurationService.updateValue(s,e)},d=[];for(const i of a)d.push(n({label:i.label,checked:o===i.value,run:l(i.value)}));return((e,t)=>new r.wY("menu-action-"+ ++i,e,t,void 0))(e,d)},o=[];o.push(n({label:c.NC("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),o.push(new r.Z0),o.push(n({label:c.NC("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),o.push(s(c.NC("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:c.NC("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:c.NC("context.minimap.size.fill","Fill"),value:"fill"},{label:c.NC("context.minimap.size.fit","Fit"),value:"fit"}])),o.push(s(c.NC("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:c.NC("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:c.NC("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(127)&&!l.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>o,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};C.ID="editor.contrib.contextmenu",C=n=v([b(1,p.i),b(2,p.u),b(3,g.i6),b(4,m.d),b(5,u.co),b(6,f.Ui),b(7,_.ec)],C);class y extends d.R6{constructor(){super({id:"editor.action.showContextMenu",label:c.NC("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.u.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=C.get(t))||void 0===i||i.showContextMenu()}}(0,d._K)(C.ID,C,2),(0,d.Qr)(y)},63950:(e,t,i)=>{"use strict";var n=i(53186),s=i(60548),o=i(35770),r=i(5887);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class l{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class d extends n.JT{static get(e){return e.getContribution(d.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new l(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}d.ID="editor.contrib.cursorUndoRedoController";class h extends s.R6{constructor(){super({id:"cursorUndo",label:r.NC("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:o.u.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorUndo()}}class c extends s.R6{constructor(){super({id:"cursorRedo",label:r.NC("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorRedo()}}(0,s._K)(d.ID,d,0),(0,s.Qr)(h),(0,s.Qr)(c)},1377:(e,t,i)=>{"use strict";var n=i(51833),s=i(43704),o=i(20289),r=i(36348),a=i(53869),l=i(9895),d=i(53186),h=i(39706),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends d.JT{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,s.uh)(this,void 0);const n=(0,s.aq)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),o=(0,s.aq)("_textModel.onDidChangeContent",h.ju.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,s.gp)((async(e,t)=>{n.read(e),o.read(e);const i=t.add(new r.t2),s=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(s,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const s=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return s.sort((0,n.BV)((0,n.tT)((e=>e.range.endLineNumber-e.range.startLineNumber),n.fv))),s.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=c([u(1,a.p),u(2,l.Je)],g),o.O.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},44870:(e,t,i)=>{"use strict";var n=i(53186),s=i(90388),o=i(60548),r=i(74633),a=i(28928),l=i(24854),d=i(13277);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.e(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function c(e){return s.dz?e.altKey:e.ctrlKey}class u extends n.JT{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(c(e)&&(this._modifierPressed=!0),this._mouseDown&&c(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(c(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}c(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new r.L(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:s}=e;i=[new l.Y(n,s,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new l.Y(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(c(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,c(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new a.e(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}u.ID="editor.contrib.dragAndDrop",u.TRIGGER_KEY_VALUE=s.dz?6:5,u._DECORATION_OPTIONS=d.qx.register({description:"dnd-target",className:"dnd-target"}),(0,o._K)(u.ID,u,2)},61522:(e,t,i)=>{"use strict";var n=i(76946),s=i(47624),o=i(91387),r=i(43537),a=i(9895);i(94943).P.registerCommand("_executeDocumentSymbolProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),l=1;l<t;l++)i[l-1]=arguments[l];const[d]=i;(0,s.p_)(o.o.isUri(d));const h=e.get(a.Je),c=e.get(r.S),u=await c.createModelReference(d);try{return(await h.getOrCreate(u.object.textEditorModel,n.T.None)).getTopLevelSymbols()}finally{u.dispose()}}))},9895:(e,t,i)=>{"use strict";i.d(t,{C3:()=>y,H3:()=>C,Je:()=>w,sT:()=>b});var n=i(51833),s=i(76946),o=i(16015),r=i(2706),a=i(38079),l=i(74633),d=i(28928),h=i(14386),c=i(87775),u=i(23026),g=i(23058),p=i(53186),m=i(53869),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};class v{remove(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let s=0;void 0!==t.children.get(n);s++)n=`${i}_${s}`;return n}static empty(e){return 0===e.children.size}}class b extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class C extends v{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class y extends v{static create(e,t,i){const r=new s.A(i),a=new y(t.uri),l=e.ordered(t),d=l.map(((e,i)=>{var n;const s=v.findId(`provider_${i}`,a),l=new C(s,a,null!==(n=e.displayName)&&void 0!==n?n:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,r.token)).then((e=>{for(const t of e||[])y._makeOutlineElement(t,l);return l}),(e=>((0,o.Cp)(e),l))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,n.fS)(i,l)||r.cancel()}));return Promise.all(d).then((()=>r.token.isCancellationRequested&&!i.isCancellationRequested?y.create(e,t,i):a._compact())).finally((()=>{r.dispose(),h.dispose(),r.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),n=new b(i,t,e);if(e.children)for(const s of e.children)y._makeOutlineElement(s,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=r.$.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof b?e.push(t.symbol):e.push(...r.$.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>d.e.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return y._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.L.compare(d.e.getStartPosition(e.range),d.e.getStartPosition(t.range))||l.L.compare(d.e.getEndPosition(t.range),d.e.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&y._flattenDocumentSymbols(e,n.children,n.name)}}const w=(0,c.yh)("IOutlineModelService");let S=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.SL,this._cache=new a.z6(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,o=i.ordered(e);let r=this._cache.get(e.id);if(!r||r.versionId!==e.getVersionId()||!(0,n.fS)(r.provider,o)){const t=new s.A;r={versionId:e.getVersionId(),provider:o,promiseCnt:0,source:t,promise:y.create(i,e,t.token),model:void 0},this._cache.set(e.id,r);const n=Date.now();r.promise.then((t=>{r.model=t,this._debounceInformation.update(e,Date.now()-n)})).catch((t=>{this._cache.delete(e.id)}))}if(r.model)return r.model;r.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--r.promiseCnt&&(r.source.cancel(),this._cache.delete(e.id))}));try{return await r.promise}finally{a.dispose()}}};S=f([_(0,m.p),_(1,h.A),_(2,g.q)],S),(0,u.z)(w,S,1)},66953:(e,t,i)=>{"use strict";var n,s=i(34277),o=i(60548),r=i(35770),a=i(26993),l=i(21981),d=i(51916),h=i(5887);(0,o._K)(l.bO.ID,l.bO,0),(0,a.y)(d.vJ),(0,o.fK)(new class extends o._l{constructor(){super({id:l.iE,precondition:l.wS,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){var i;return null===(i=l.bO.get(t))||void 0===i?void 0:i.changePasteType()}}),(0,o.fK)(new class extends o._l{constructor(){super({id:"editor.hidePasteWidget",precondition:l.wS,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){var i;null===(i=l.bO.get(t))||void 0===i||i.clearWidgets()}}),(0,o.Qr)(((n=class extends o.R6{constructor(){super({id:"editor.action.pasteAs",label:h.NC("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.u.writable,metadata:{description:"Paste as",args:[{name:"args",schema:n.argsSchema}]}})}run(e,t,i){var n;let o="string"===typeof(null===i||void 0===i?void 0:i.kind)?i.kind:void 0;return!o&&i&&(o="string"===typeof i.id?i.id:void 0),null===(n=l.bO.get(t))||void 0===n?void 0:n.pasteAs(o?new s.o(o):void 0)}}).argsSchema={type:"object",properties:{kind:{type:"string",description:h.NC("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},n)),(0,o.Qr)(class extends o.R6{constructor(){super({id:"editor.action.pasteAsText",label:h.NC("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.u.writable})}run(e,t){var i;return null===(i=l.bO.get(t))||void 0===i?void 0:i.pasteAs({providerId:d.f8.id})}})},21981:(e,t,i)=>{"use strict";i.d(t,{bO:()=>P,iE:()=>A,wS:()=>R});var n,s=i(76595),o=i(51833),r=i(53372),a=i(44609),l=i(34277),d=i(53186),h=i(90255),c=i(90388),u=i(94913),g=i(90356),p=i(32613),m=i(80427),f=i(28928),_=i(18841),v=i(53869),b=i(51916),C=i(73472),y=i(8037),w=i(54829),S=i(10843),x=i(5887),L=i(63826),k=i(47116),D=i(87775),N=i(97757),E=i(2033),T=i(97818),I=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const A="editor.changePasteType",R=new k.uy("pasteWidgetVisible",!1,(0,x.NC)("pasteWidgetVisible","Whether the paste widget is showing")),O="application/vnd.code.copyMetadata";let P=n=class extends d.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,o,r,a){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=r,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register((0,s.nm)(l,"copy",(e=>this.handleCopy(e)))),this._register((0,s.nm)(l,"cut",(e=>this.handleCopy(e)))),this._register((0,s.nm)(l,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new w.r("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(T.p,"pasteIntoEditor",e,R,{id:A,label:(0,x.NC)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,s.uP)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus())return;if(c.$L&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled())return;const s=this._editor.getModel(),a=this._editor.getSelections();if(!s||!(null===a||void 0===a?void 0:a.length))return;const l=this._editor.getOption(37);let d=a;const h=1===a.length&&a[0].isEmpty();if(h){if(!l)return;d=[new f.e(d[0].startLineNumber,1,d[0].startLineNumber,1+s.getLineLength(d[0].startLineNumber))]}const g=null===(t=this._editor._getViewModel())||void 0===t?void 0:t.getPlainTextToCopy(a,l,c.ED),m={multicursorText:Array.isArray(g)?g:null,pasteOnNewLine:h,mode:null},_=this._languageFeaturesService.documentPasteEditProvider.ordered(s).filter((e=>!!e.prepareDocumentPaste));if(!_.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:m});const v=(0,p.B)(e.clipboardData),b=_.flatMap((e=>{var t;return null!==(t=e.copyMimeTypes)&&void 0!==t?t:[]})),C=(0,u.R)();this.setCopyMetadata(e.clipboardData,{id:C,providerCopyMimeTypes:b,defaultPastePayload:m});const y=(0,r.PG)((async e=>{const t=(0,o.kX)(await Promise.all(_.map((async t=>{try{return await t.prepareDocumentPaste(s,d,v,e)}catch(i){return void console.error(i)}}))));t.reverse();for(const i of t)for(const[e,t]of i)v.replace(e,t);return v}));null===(i=n._currentCopyOperation)||void 0===i||i.dataTransferPromise.cancel(),n._currentCopyOperation={handle:C,dataTransferPromise:y}}async handlePaste(e){var t,i,n,s;if(!e.clipboardData||!this._editor.hasTextFocus())return;null===(t=S.O.get(this._editor))||void 0===t||t.closeMessage(),null===(i=this._currentPasteOperation)||void 0===i||i.cancel(),this._currentPasteOperation=void 0;const o=this._editor.getModel(),r=this._editor.getSelections();if(!(null===r||void 0===r?void 0:r.length)||!o)return;if(!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const l=this.fetchCopyMetadata(e),d=(0,p.L)(e.clipboardData);d.delete(O);const c=[...e.clipboardData.types,...null!==(n=null===l||void 0===l?void 0:l.providerCopyMimeTypes)&&void 0!==n?n:[],h.v.uriList],u=this._languageFeaturesService.documentPasteEditProvider.ordered(o).filter((e=>{var t,i;const n=null===(t=this._pasteAsActionContext)||void 0===t?void 0:t.preferred;return!(n&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,n))&&(null===(i=e.pasteMimeTypes)||void 0===i?void 0:i.some((e=>(0,a.SN)(e,c))))}));u.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,u,r,d,l):this.doPasteInline(u,r,d,l,e)):(null===(s=this._pasteAsActionContext)||void 0===s?void 0:s.preferred)&&this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){var i;null===(i=S.O.get(this._editor))||void 0===i||i.showMessage((0,x.NC)("pasteAsError","No paste edits for '{0}' found",t instanceof l.o?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,s){const o=(0,r.PG)((async r=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),d=new y.Dl(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(i,n,d.token),d.token.isCancellationRequested)return;const o=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!o.length||1===o.length&&o[0]instanceof b.f8)return this.applyDefaultPasteHandler(i,n,d.token,s);const r={triggerKind:_.Nq.Automatic},h=await this.getPasteEdits(o,i,l,t,r,d.token);if(d.token.isCancellationRequested)return;if(1===h.length&&h[0].provider instanceof b.f8)return this.applyDefaultPasteHandler(i,n,d.token,s);if(h.length){const e="afterPaste"===a.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:h},e,(async(e,t)=>{var i,n;const s=await(null===(n=(i=e.provider).resolveDocumentPasteEdit)||void 0===n?void 0:n.call(i,e,t));return s&&(e.additionalEdit=s.additionalEdit),e}),d.token)}await this.applyDefaultPasteHandler(i,n,d.token,s)}finally{d.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,x.NC)("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,i,n,s){const o=(0,r.PG)((async r=>{const a=this._editor;if(!a.hasModel())return;const d=a.getModel(),h=new y.Dl(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(n,s,h.token),h.token.isCancellationRequested)return;let o=t.filter((t=>this.isSupportedPasteProvider(t,n,e)));e&&(o=o.filter((t=>this.providerMatchesPreference(t,e))));const r={triggerKind:_.Nq.PasteAs,only:e&&e instanceof l.o?e:void 0};let a,c=await this.getPasteEdits(o,n,d,i,r,h.token);if(h.token.isCancellationRequested)return;if(e&&(c=c.filter((t=>e instanceof l.o?e.contains(t.kind):e.providerId===t.provider.id))),!c.length)return void(r.only&&this.showPasteAsNoEditMessage(i,r.only));if(e)a=c.at(0);else{const e=await this._quickInputService.pick(c.map((e=>{var t;return{label:e.title,description:null===(t=e.kind)||void 0===t?void 0:t.value,edit:e}})),{placeHolder:(0,x.NC)("pasteAsPickerPlaceholder","Select Paste Action")});a=null===e||void 0===e?void 0:e.edit}if(!a)return;const u=(0,C.n)(d.uri,i,a);await this._bulkEditService.apply(u,{editor:this._editor})}finally{h.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,x.NC)("pasteAsProgress","Running paste handlers")},(()=>o))}setCopyMetadata(e,t){e.setData(O,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(O);if(i)try{return JSON.parse(i)}catch(o){return}const[n,s]=g.b6.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:null!==(t=s.multicursorText)&&void 0!==t?t:null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){var s;if((null===t||void 0===t?void 0:t.id)&&(null===(s=n._currentCopyOperation)||void 0===s?void 0:s.handle)===t.id){const t=await n._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,n]of t)e.replace(i,n)}if(!e.has(h.v.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(h.v.uriList,(0,a.ZO)(a.Z0.create(t)))}}async getPasteEdits(e,t,i,n,s,a){const l=await(0,r.eP)(Promise.all(e.map((async e=>{var o,r;try{const l=await(null===(o=e.provideDocumentPasteEdits)||void 0===o?void 0:o.call(e,i,n,t,s,a));return null===(r=null===l||void 0===l?void 0:l.edits)||void 0===r?void 0:r.map((t=>({...t,provider:e})))}catch(l){console.error(l)}}))),a),d=(0,o.kX)(null!==l&&void 0!==l?l:[]).flat().filter((e=>!s.only||s.only.contains(e.kind)));return(0,C.C)(d)}async applyDefaultPasteHandler(e,t,i,n){var s,o,r,a;const l=null!==(s=e.get(h.v.text))&&void 0!==s?s:e.get("text"),d=null!==(o=await(null===l||void 0===l?void 0:l.asString()))&&void 0!==o?o:"";if(i.isCancellationRequested)return;const c={clipboardEvent:n,text:d,pasteOnNewLine:null!==(r=null===t||void 0===t?void 0:t.defaultPastePayload.pasteOnNewLine)&&void 0!==r&&r,multicursorText:null!==(a=null===t||void 0===t?void 0:t.defaultPastePayload.multicursorText)&&void 0!==a?a:null,mode:null};this._editor.trigger("keyboard","paste",c)}isSupportedPasteProvider(e,t,i){var n;return!!(null===(n=e.pasteMimeTypes)||void 0===n?void 0:n.some((e=>t.matches(e))))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.o?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};P.ID="editor.contrib.copyPasteActionController",P=n=I([M(1,D.TG),M(2,m.vu),M(3,L.p),M(4,v.p),M(5,E.eJ),M(6,N.R9)],P)},51916:(e,t,i)=>{"use strict";i.d(t,{P4:()=>S,f8:()=>v,vJ:()=>x});var n=i(51833),s=i(44609),o=i(34277),r=i(53186),a=i(90255),l=i(32060),d=i(30506),h=i(91387),c=i(18841),u=i(53869),g=i(5887),p=i(99818),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};class _{async provideDocumentPasteEdits(e,t,i,n,s){const o=await this.getEdit(i,s);if(o)return{dispose(){},edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}]}}async provideDocumentOnDropEdits(e,t,i,n){const s=await this.getEdit(i,n);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.v.text],this.pasteMimeTypes=[a.v.text]}async getEdit(e,t){const i=e.get(a.v.text);if(!i)return;if(e.has(a.v.uriList))return;const n=await i.asString();return{handledMimeType:a.v.text,title:(0,g.NC)("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}v.id="text",v.kind=new o.o("text.plain");class b extends _{constructor(){super(...arguments),this.kind=new o.o("uri.absolute"),this.dropMimeTypes=[a.v.uriList],this.pasteMimeTypes=[a.v.uriList]}async getEdit(e,t){const i=await w(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map((e=>{let{uri:t,originalText:i}=e;return t.scheme===l.lg.file?t.fsPath:(n++,i)})).join(" ");let o;return o=n>0?i.length>1?(0,g.NC)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.NC)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.NC)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.NC)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.v.uriList,insertText:s,title:o,kind:this.kind}}}let C=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new o.o("uri.relative"),this.dropMimeTypes=[a.v.uriList],this.pasteMimeTypes=[a.v.uriList]}async getEdit(e,t){const i=await w(e);if(!i.length||t.isCancellationRequested)return;const s=(0,n.kX)(i.map((e=>{let{uri:t}=e;const i=this._workspaceContextService.getWorkspaceFolder(t);return i?(0,d.lX)(i.uri,t):void 0})));return s.length?{handledMimeType:a.v.uriList,insertText:s.join(" "),title:i.length>1?(0,g.NC)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.NC)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};C=m([f(0,p.ec)],C);class y{constructor(){this.kind=new o.o("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.v.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var o;if(n.triggerKind!==c.Nq.PasteAs&&!(null===(o=n.only)||void 0===o?void 0:o.contains(this.kind)))return;const r=i.get("text/html"),a=await(null===r||void 0===r?void 0:r.asString());return a&&!s.isCancellationRequested?{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:(0,g.NC)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function w(e){const t=e.get(a.v.uriList);if(!t)return[];const i=await t.asString(),n=[];for(const r of s.Z0.parse(i))try{n.push({uri:h.o.parse(r),originalText:r})}catch(o){}return n}let S=class extends r.JT{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new v)),this._register(e.documentOnDropEditProvider.register("*",new b)),this._register(e.documentOnDropEditProvider.register("*",new C(t)))}};S=m([f(0,u.p),f(1,p.ec)],S);let x=class extends r.JT{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new b)),this._register(e.documentPasteEditProvider.register("*",new C(t))),this._register(e.documentPasteEditProvider.register("*",new y))}};x=m([f(0,u.p),f(1,p.ec)],x)},17987:(e,t,i)=>{"use strict";var n=i(60548),s=i(50142),o=i(26993),r=i(51916),a=i(5887),l=i(49817),d=i(76322),h=i(51833),c=i(53372),u=i(44609),g=i(34277),p=i(53186),m=i(32613),f=i(28928),_=i(53869);class v{constructor(e){this.identifier=e}}var b=i(23026),C=i(87775);const y=(0,C.yh)("treeViewsDndService");(0,b.z)(y,class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},1);var w,S=i(8037),x=i(54829),L=i(30600),k=i(47116),D=i(90601),N=i(73472),E=i(97818),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};const M="editor.experimental.dropIntoEditor.defaultProvider",A="editor.changeDropType",R=new k.uy("dropWidgetVisible",!1,(0,a.NC)("dropWidgetVisible","Whether the drop widget is showing"));let O=w=class extends p.JT{static get(e){return e.getContribution(w.ID)}constructor(e,t,i,n,s){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=D.Ej.getInstance(),this._dropProgressManager=this._register(t.createInstance(x.r,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(E.p,"dropIntoEditor",e,R,{id:A,label:(0,a.NC)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;null===(n=this._currentOperation)||void 0===n||n.cancel(),e.focus(),e.setPosition(t);const s=(0,c.PG)((async n=>{const o=new S.Dl(e,1,void 0,n);try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const r=e.getModel();if(!r)return;const a=this._languageFeaturesService.documentOnDropEditProvider.ordered(r).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=await this.getDropEdits(a,r,t,s,o);if(o.token.isCancellationRequested)return;if(l.length){const i=this.getInitialActiveEditIndex(r,l),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([f.e.fromPositions(t)],{activeEditIndex:i,allEdits:l},s,(async e=>e),n)}}finally{o.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,a.NC)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s),this._currentOperation=s}async getDropEdits(e,t,i,n,s){const o=await(0,c.eP)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentOnDropEdits(t,i,n,s.token);return null===o||void 0===o?void 0:o.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),s.token),r=(0,h.kX)(null!==o&&void 0!==o?o:[]).flat();return(0,N.C)(r)}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(M,{resource:e.uri});for(const[n,s]of Object.entries(i)){const e=new g.o(s),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,u.SN)(n,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new u.Hl;const t=(0,m.L)(e.dataTransfer);if(this.treeItemsTransfer.hasData(v.prototype)){const e=this.treeItemsTransfer.getData(v.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,n]of e)t.replace(i,n)}}return t}};O.ID="editor.contrib.dropIntoEditorController",O=w=T([I(1,C.TG),I(2,L.Ui),I(3,_.p),I(4,y)],O),(0,n._K)(O.ID,O,2),(0,o.y)(r.P4),(0,n.fK)(new class extends n._l{constructor(){super({id:A,precondition:R,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){var n;null===(n=O.get(t))||void 0===n||n.changeDropType()}}),(0,n.fK)(new class extends n._l{constructor(){super({id:"editor.hideDropWidget",precondition:R,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){var n;null===(n=O.get(t))||void 0===n||n.clearWidgets()}}),d.B.as(l.IP.Configuration).registerConfiguration({...s.wk,properties:{[M]:{type:"object",scope:5,description:a.NC("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},73472:(e,t,i)=>{"use strict";i.d(t,{C:()=>r,n:()=>o});var n=i(80427),s=i(86532);function o(e,t,i){var o,r,a,l;return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(r=null===(o=i.additionalEdit)||void 0===o?void 0:o.edits)&&void 0!==r?r:[]}:{edits:[...t.map((t=>new n.Gl(e,{range:t,text:"string"===typeof i.insertText?s.Yj.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...null!==(l=null===(a=i.additionalEdit)||void 0===a?void 0:a.edits)&&void 0!==l?l:[]]}}function r(e){var t;function i(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const n=new Map;for(const r of e)for(const s of null!==(t=r.yieldTo)&&void 0!==t?t:[])for(const t of e)if(t!==r&&i(s,t)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(t)}if(!n.size)return Array.from(e);const s=new Set,o=[];return function e(t){if(!t.length)return[];const i=t[0];if(o.includes(i))return console.warn("Yield to cycle detected",i),t;if(s.has(i))return e(t.slice(1));let r=[];const a=n.get(i);return a&&(o.push(i),r=e(a),o.pop()),s.add(i),[...r,i,...e(t.slice(1))]}(Array.from(e))}},97818:(e,t,i)=>{"use strict";i.d(t,{p:()=>v});var n,s=i(76595),o=i(33013),r=i(51828),a=i(39706),l=i(53186),d=i(80427),h=i(73472),c=i(47116),u=i(79086),g=i(87775),p=i(25371),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=n=class extends l.JT{constructor(e,t,i,n,s,o,r,d,h,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=o,this.onSelectNewEdit=r,this._contextMenuService=d,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(h),this.visibleContext.set(!0),this._register((0,l.OF)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,l.OF)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{s.containsPosition(e.position)||this.dispose()}))),this._register(a.ju.runAndSubscribe(c.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){var e;const t=null===(e=this._keybindingService.lookupKeybinding(this.showCommand.id))||void 0===e?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=s.$(".post-edit-widget"),this.button=this._register(new o.z(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(s.nm(this.domNode,s.tw.CLICK,(()=>this.showSelector())))}getId(){return n.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=s.i(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,r.xw)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};_.baseId="editor.widget.postEditWidget",_=n=m([f(7,u.i),f(8,c.i6),f(9,p.d)],_);let v=class extends l.JT{constructor(e,t,i,n,s,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=o,this._currentWidget=this._register(new l.XK),this._register(a.ju.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,n,s){const o=this._editor.getModel();if(!o||!e.length)return;const r=t.allEdits.at(t.activeEditIndex);if(!r)return;const a=await n(r,s),l=(0,h.n)(o.uri,e,a),d=e[0],c=o.deltaDecorations([],[{range:d,options:{description:"paste-line-suffix",stickiness:0}}]);let u,g;try{u=await this._bulkEditService.apply(l,{editor:this._editor,token:s}),g=o.getDecorationRange(c[0])}finally{o.deltaDecorations(c,[])}i&&u.isApplied&&t.allEdits.length>1&&this.show(null!==g&&void 0!==g?g:d,t,(async o=>{const r=this._editor.getModel();r&&(await r.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:o,allEdits:t.allEdits},i,n,s))}))}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(_,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showSelector()}};v=m([f(4,g.TG),f(5,d.vu)],v)},8037:(e,t,i)=>{"use strict";i.d(t,{yy:()=>f,Dl:()=>_,YQ:()=>v});var n=i(78701),s=i(28928),o=i(76946),r=i(53186),a=i(60548),l=i(47116),d=i(64450),h=i(87775),c=i(23026),u=i(5887);const g=(0,h.yh)("IEditorCancelService"),p=new l.uy("cancellableOperation",!1,(0,u.NC)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,c.z)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.i6)),tokens:new d.S}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends o.A{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.fK)(new class extends a._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?n.WU("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.SL,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&s.e.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&s.e.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends o.A{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},45713:(e,t,i)=>{"use strict";i.d(t,{pR:()=>ft});var n=i(53372),s=i(53186),o=i(78701),r=i(60548),a=i(12354),l=i(35770),d=i(24032),h=i(91206),c=i(2196),u=i(74633),g=i(28928),p=i(24854),m=i(39471),f=i(13277),_=i(6009),v=i(46673);class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===b._FIND_MATCH_DECORATION||e===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n<s;n++){const s=this._editor.getModel().getDecorationRange(this._decorations[n]);if(e.equalsRange(s)){t=this._decorations[n],i=n+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.e(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let n=b._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,o=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let n=1,l=e.length;n<l;n++){const t=e[n].range;a+o>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(s.push({range:new g.e(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=t.startLineNumber,a=t.endLineNumber)}s.push({range:new g.e(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const o=new Array(e.length);for(let t=0,r=e.length;t<r;t++)o[t]={range:e[t].range,options:n};this._decorations=i.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,s),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),(null===t||void 0===t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,b._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.endLineNumber>e.lineNumber)){if(n.endLineNumber<e.lineNumber)return n;if(!(n.endColumn>e.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.startLineNumber<e.lineNumber)){if(n.startLineNumber>e.lineNumber)return n;if(!(n.startColumn<e.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}b._CURRENT_FIND_MATCH_DECORATION=f.qx.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,v.EN)(_.Fm_),position:d.sh.Center},minimap:{color:(0,v.EN)(_.SUY),position:1}}),b._FIND_MATCH_DECORATION=f.qx.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,v.EN)(_.Fm_),position:d.sh.Center},minimap:{color:(0,v.EN)(_.SUY),position:1}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=f.qx.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.qx.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.EN)(_.Fm_),position:d.sh.Center}}),b._RANGE_HIGHLIGHT_DECORATION=f.qx.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=f.qx.register({description:"find-scope",className:"findScope",isWholeLine:!0});class C{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.e.compareRangesUsingStarts(e.range,t.range)));const i=[];let n=e[0];for(let t=1;t<e.length;t++)n.range.endLineNumber===e[t].range.startLineNumber&&n.range.endColumn===e[t].range.startColumn?(n.range=n.range.plusRange(e[t].range),n.text=n.text+e[t].text):(i.push(n),n=e[t]);i.push(n);for(const s of i)t.addEditOperation(s.range,s.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function y(e,t){if(e&&""!==e[0]){const i=w(e,t,"-"),n=w(e,t,"_");return i&&!n?S(e,t,"-"):!i&&n?S(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():o.Kw(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function w(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function S(e,t,i){const n=t.split(i),s=e[0].split(i);let o="";return n.forEach(((e,t)=>{o+=y([s[t]],e)+i})),o.slice(0,-1)}class x{constructor(e){this.staticValue=e,this.kind=0}}class L{constructor(e){this.pieces=e,this.kind=1}}class k{static fromStaticValue(e){return new k([D.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new x(e[0].staticValue):this._state=new L(e):this._state=new x("")}buildReplaceString(e,t){if(0===this._state.kind)return t?y(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n<s;n++){const t=this._state.pieces[n];if(null!==t.staticValue){i+=t.staticValue;continue}let s=k._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let n=0;for(let o=0,r=s.length;o<r;o++){if(n>=i){e.push(s.slice(o));break}switch(t.caseOps[n]){case"U":e.push(s[o].toUpperCase());break;case"u":e.push(s[o].toUpperCase()),n++;break;case"L":e.push(s[o].toLowerCase());break;case"l":e.push(s[o].toLowerCase()),n++;break;default:e.push(s[o])}}s=e.join("")}i+=s}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class D{static staticValue(e){return new D(e,-1,null)}static caseOps(e,t){return new D(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class N{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=D.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new k(this._result)}}var E=i(47116);const T=new E.uy("findWidgetVisible",!1),I=(T.toNegated(),new E.uy("findInputFocussed",!1)),M=new E.uy("replaceInputFocussed",!1),A={primary:545,mac:{primary:2593}},R={primary:565,mac:{primary:2613}},O={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},B="actions.find",V="actions.findWithSelection",W="editor.actions.findWithArgs",H="editor.action.nextMatchFindAction",z="editor.action.previousMatchFindAction",j="editor.action.goToMatchFindAction",U="editor.action.nextSelectionMatchFindAction",K="editor.action.previousSelectionMatchFindAction",q="editor.action.startFindReplaceAction",$="closeFindWidget",G="toggleFindCaseSensitive",Y="toggleFindWholeWord",Z="toggleFindRegex",Q="toggleFindInSelection",X="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class ne{constructor(e,t){this._toDispose=new s.SL,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new n._F,this._decorations=new b(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new n.pY((()=>this.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,s.B9)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.e(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const n=this._findMatches(i,!1,ie);this._decorations.set(n,i);const s=this._editor.getSelection();let o=this._decorations.getCurrentMatchesPosition(s);if(0===o&&n.length>0){const e=(0,h.J_)(n.map((e=>e.range)),(e=>g.e.compareRangesUsingStarts(e,s)>=0));o=e>0?e-1+1:o}this._state.changeMatchInfo(o,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||1===n?(1===i?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new u.L(i,n)}_moveToPrevMatch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),n=ne._getSearchRange(this._editor.getModel(),i);n.getEndPosition().isBefore(e)&&(e=n.getEndPosition()),e.isBefore(n.getStartPosition())&&(e=n.getEndPosition());const{lineNumber:s,column:o}=e,r=this._editor.getModel();let a=new u.L(s,o),l=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1)),l?t||n.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new u.L(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._cannotFind())return null;const s=this._decorations.getFindScope(),o=ne._getSearchRange(this._editor.getModel(),s);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());const{lineNumber:r,column:a}=e,l=this._editor.getModel();let d=new u.L(r,a),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t)),h?n||o.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new k(null);const t=[],i=new N(e);for(let n=0,s=e.length;n<s;n++){const o=e.charCodeAt(n);if(92!==o){if(36===o){if(n++,n>=s)break;const o=e.charCodeAt(n);if(36===o){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===o||38===o){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=o&&o<=57){let r=o-48;if(n+1<s){const s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),i.emitUnchanged(n-2),i.emitMatchIndex(r,n+1,t),t.length=0;continue}}i.emitUnchanged(n-1),i.emitMatchIndex(r,n+1,t),t.length=0;continue}}}else{if(n++,n>=s)break;const o=e.charCodeAt(n);switch(o){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(o))}}}return i.finalize()}(this._state.replaceString):k.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const n=e.buildReplaceString(i.matches,this._state.preserveCase),s=new c.T4(t,n);this._executeEditorCommand("replace",s),this._decorations.setStartPosition(new u.L(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const n=(e||[null]).map((e=>ne._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.bc(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),n=i.getValue(1),s=i.getFullModelRange(),o=this._getReplacePattern();let r;const a=this._state.preserveCase;r=o.hasReplacementPatterns||a?n.replace(t,(function(){return o.buildReplaceString(arguments,a)})):n.replace(t,o.buildReplaceString(null,a));const l=new c.hP(s,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let o=0,r=i.length;o<r;o++)n[o]=t.buildReplaceString(i[o].matches,this._state.preserveCase);const s=new C(this._editor.getSelection(),i.map((e=>e.range)),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let n=0,s=t.length;n<s;n++){if(t[n].equalsRange(i)){t=[i].concat(t.slice(0,n)).concat(t.slice(n+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var se=i(76595),oe=i(33741),re=i(7341),ae=i(97133);class le extends re.${constructor(e,t,i){super(),this._hideSoon=this._register(new n.pY((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s={inputActiveOptionBorder:(0,_.n_1)(_.PRb),inputActiveOptionForeground:(0,_.n_1)(_.Pvw),inputActiveOptionBackground:(0,_.n_1)(_.XEs)},o=this._register((0,ae.p0)());this.caseSensitive=this._register(new oe.rk({appendTitle:this._keybindingLabelFor(G),isChecked:this._state.matchCase,hoverDelegate:o,...s})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new oe.Qx({appendTitle:this._keybindingLabelFor(Y),isChecked:this._state.wholeWord,hoverDelegate:o,...s})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new oe.eH({appendTitle:this._keybindingLabelFor(Z),isChecked:this._state.isRegex,hoverDelegate:o,...s})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(se.nm(this._domNode,se.tw.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(se.nm(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return le.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}le.ID="editor.contrib.findOptionsWidget";var de=i(39706);function he(e,t){return 1===e||2!==e&&t}class ce extends s.JT{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new de.Q5),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),"undefined"!==typeof i&&(g.e.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t){var i;const n={moveCursor:t,updateHistory:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;const o=this.isRegex,r=this.wholeWord,a=this.matchCase,l=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,n.searchString=!0,s=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,n.replaceString=!0,s=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,n.isRevealed=!0,s=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,n.isReplaceRevealed=!0,s=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&((null===(i=e.searchScope)||void 0===i?void 0:i.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!g.e.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,n.searchScope=!0,s=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,n.loop=!0,s=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,n.isSearching=!0,s=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,n.filters=!0,s=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,o!==this.isRegex&&(s=!0,n.isRegex=!0),r!==this.wholeWord&&(s=!0,n.wholeWord=!0),a!==this.matchCase&&(s=!0,n.matchCase=!0),l!==this.preserveCase&&(s=!0,n.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(n)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(83945),ge=i(81502),pe=i(38571),me=i(61542),fe=i(16015),_e=i(90388),ve=i(5887),be=i(35650);function Ce(e){var t,i;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(i=e.lookupKeybinding("history.showNext"))||void 0===i?void 0:i.getElectronAccelerator())}var ye=i(54329),we=i(73045),Se=i(25112),xe=i(47624),Le=i(93617),ke=i(71371);const De=(0,ye.q5)("find-selection",me.l.selection,ve.NC("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Ne=(0,ye.q5)("find-collapsed",me.l.chevronRight,ve.NC("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Ee=(0,ye.q5)("find-expanded",me.l.chevronDown,ve.NC("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Te=(0,ye.q5)("find-replace",me.l.replace,ve.NC("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ie=(0,ye.q5)("find-replace-all",me.l.replaceAll,ve.NC("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Me=(0,ye.q5)("find-previous-match",me.l.arrowUp,ve.NC("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ae=(0,ye.q5)("find-next-match",me.l.arrowDown,ve.NC("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Re=ve.NC("label.findDialog","Find / Replace"),Oe=ve.NC("label.find","Find"),Pe=ve.NC("placeholder.find","Find"),Fe=ve.NC("label.previousMatchButton","Previous Match"),Be=ve.NC("label.nextMatchButton","Next Match"),Ve=ve.NC("label.toggleSelectionFind","Find in Selection"),We=ve.NC("label.closeButton","Close"),He=ve.NC("label.replace","Replace"),ze=ve.NC("placeholder.replace","Replace"),je=ve.NC("label.replaceButton","Replace"),Ue=ve.NC("label.replaceAllButton","Replace All"),Ke=ve.NC("label.toggleReplaceButton","Toggle Replace"),qe=ve.NC("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),$e=ve.NC("label.matchesLocation","{0} of {1}"),Ge=ve.NC("label.noResults","No results"),Ye=419;let Ze=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.dz?256:2048;class Je{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function et(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function tt(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEnd<i.value.length&&e.stopPropagation()}class it extends re.${constructor(e,t,i,o,r,a,l,d,h){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=o,this._keybindingService=r,this._contextKeyService=a,this._storageService=d,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!d.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new n.vp(500),this._register((0,s.OF)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(91)&&(this._codeEditor.getOption(91)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(145)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Je(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=I.bindTo(a),this._findFocusTracker=this._register(se.go(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=M.bindTo(a),this._replaceFocusTracker=this._register(se.go(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Je(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return it.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(91)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=se.w(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dL)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Ze+"px",this._state.matchesCount>=ie?this._matchesCount.title=qe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=o.WU($e,i,t)}else e=Ge;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.Z9)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Ze=Math.max(Ze,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ge)return""===i?ve.NC("ariaSearchNoResultEmpty","{0} found",e):ve.NC("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=ve.NC("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();if(s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1){return`${s.getLineContent(t.startLineNumber)}, ${n}`}return n}return ve.NC("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(91);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=se.i(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),o=n.left+(s?s.left:0),r=s?s.top:0;if(this._viewZone&&r<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=se.xQ(this._domNode).left;o>i&&(t=!1);const s=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(s?s.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Je(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const n=this._getHeight();if(n===t.heightInPx)return;const s=n-t.heightInPx;return t.heightInPx=n,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s))}{let n=this._getHeight();if(n-=this._codeEditor.getOption(84).top,n<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let n=!1,s=!1,o=!1;if(this._resized){if(se.w(this._domNode)>Ye)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=se.w(this._findInput.domNode))}if(447+i>=t&&(s=!0),447+i-Ze>=t&&(o=!0),447+i-Ze>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",o),this._domNode.classList.toggle("reduced-find-widget",s),o||n||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:o,reducedFindWidget:s}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.e.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?tt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.ED&&_e.tY&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.NC("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?tt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new be.Yb(null,this._contextViewProvider,{width:221,label:Oe,placeholder:Pe,appendCaseSensitiveLabel:this._keybindingLabelFor(G),appendWholeWordsLabel:this._keybindingLabelFor(Y),appendRegexLabel:this._keybindingLabelFor(Z),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:true,flexibleWidth:true,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ce(this._keybindingService),inputBoxStyles:Le.Hc,toggleStyles:Le.pl},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.IJ&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const e=this._register((0,ae.p0)());this._prevBtn=this._register(new nt({label:Fe+this._keybindingLabelFor(z),icon:Me,hoverDelegate:e,onTrigger:()=>{(0,xe.cW)(this._codeEditor.getAction(z)).run().then(void 0,fe.dL)}})),this._nextBtn=this._register(new nt({label:Be+this._keybindingLabelFor(H),icon:Ae,hoverDelegate:e,onTrigger:()=>{(0,xe.cW)(this._codeEditor.getAction(H)).run().then(void 0,fe.dL)}}));const t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);const i=document.createElement("div");i.className="find-actions",t.appendChild(i),i.appendChild(this._matchesCount),i.appendChild(this._prevBtn.domNode),i.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.Z({icon:De,title:Ve+this._keybindingLabelFor(Q),isChecked:!1,hoverDelegate:e,inputActiveOptionBackground:(0,_.n_1)(_.XEs),inputActiveOptionBorder:(0,_.n_1)(_.PRb),inputActiveOptionForeground:(0,_.n_1)(_.Pvw)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),i.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new nt({label:We+this._keybindingLabelFor($),icon:ye.s_,hoverDelegate:e,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),this._replaceInput=this._register(new be.Nq(null,void 0,{label:He,placeholder:ze,appendPreserveCaseLabel:this._keybindingLabelFor(X),history:[],flexibleHeight:true,flexibleWidth:true,flexibleMaxHeight:118,showHistoryHint:()=>Ce(this._keybindingService),inputBoxStyles:Le.Hc,toggleStyles:Le.pl},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const n=this._register((0,ae.p0)());this._replaceBtn=this._register(new nt({label:je+this._keybindingLabelFor(J),icon:Te,hoverDelegate:n,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new nt({label:Ue+this._keybindingLabelFor(ee),icon:Ie,hoverDelegate:n,onTrigger:()=>{this._controller.replaceAll()}}));const s=document.createElement("div");s.className="replace-part",s.appendChild(this._replaceInput.domNode);const o=document.createElement("div");o.className="replace-actions",s.appendChild(o),o.appendChild(this._replaceBtn.domNode),o.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new nt({label:Ke,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Re,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(s),this._resizeSash=this._register(new pe.g(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let r=Ye;this._register(this._resizeSash.onDidStart((()=>{r=se.w(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=r+e.startX-e.currentX;if(t<Ye)return;t>(parseFloat(se.Dx(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=se.w(this._domNode);if(e<Ye)return;let t=Ye;if(!this._resized||e===Ye){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}it.ID="editor.contrib.findWidget";class nt extends re.${constructor(e){var t;super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+we.k.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register((0,ke.g)(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,ae.tM)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...we.k.asClassNameArray(Ne)),this._domNode.classList.add(...we.k.asClassNameArray(Ee))):(this._domNode.classList.remove(...we.k.asClassNameArray(Ee)),this._domNode.classList.add(...we.k.asClassNameArray(Ne)))}}(0,v.Ic)(((e,t)=>{const i=e.getColor(_.EiJ);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,Se.c3)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const n=e.getColor(_.gkn);n&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,Se.c3)(e.type)?"dashed":"solid"} ${n}; }`);const s=e.getColor(_.lRK);s&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${s}; }`)}));var st,ot=i(6178),rt=i(63826),at=i(79086),lt=i(25371),dt=i(61758),ht=i(2033),ct=i(87650),ut=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},gt=function(e,t){return function(i,n){t(i,n,e)}};const pt=524288;function mt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)<pt)return e.getModel().getValueInRange(n);return null}let ft=st=class extends s.JT{get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,s,o){super(),this._editor=e,this._findWidgetVisible=T.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=s,this._notificationService=o,this._updateHistoryDelayer=new n.vp(500),this._state=this._register(new ce),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!I.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=o.ec(e)),this._state.change({searchString:e},!1)}highlightFindOptions(){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=mt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=o.ec(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=mt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new ne(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){var e;return!!this._model&&((null===(e=this._editor.getModel())||void 0===e?void 0:e.isTooLargeForHeapOperation())?(this._notificationService.warn(ve.NC("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ft.ID="editor.contrib.findController",ft=st=ut([gt(1,E.i6),gt(2,ct.Uy),gt(3,rt.p),gt(4,dt.lT)],ft);let _t=class extends ft{constructor(e,t,i,n,s,o,r,a){super(e,i,r,a,o),this._contextViewService=t,this._keybindingService=n,this._themeService=s,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||n,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new it(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new le(this._editor,this._state,this._keybindingService))}};_t=ut([gt(1,at.u),gt(2,E.i6),gt(3,lt.d),gt(4,v.XE),gt(5,dt.lT),gt(6,ct.Uy),gt(7,rt.p)],_t);(0,r.rn)(new r.jY({id:B,label:ve.NC("startFindAction","Find"),alias:"Find",precondition:E.Ao.or(l.u.focus,E.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ot.eH.MenubarEditMenu,group:"3_find",title:ve.NC({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const n=ft.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const vt={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class bt extends r.R6{constructor(){super({id:W,label:ve.NC("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:vt})}async run(e,t,i){const n=ft.get(t);if(n){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null===i||void 0===i?void 0:i.findInSelection)||!1,loop:t.getOption(41).loop},e),n.setGlobalBufferTerm(n.getState().searchString)}}}class Ct extends r.R6{constructor(){super({id:V,label:ve.NC("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=ft.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class yt extends r.R6{async run(e,t){const i=ft.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class wt extends r.R6{constructor(){super({id:j,label:ve.NC("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:T}),this._highlightDecorations=[]}run(e,t,i){const n=ft.get(t);if(!n)return;const s=n.getState().matchesCount;if(s<1){return void e.get(dt.lT).notify({severity:dt.zb.Warning,message:ve.NC("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(ht.eJ).createInputBox();o.placeholder=ve.NC("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",s);const r=e=>{const t=parseInt(e);if(isNaN(t))return;const i=n.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},a=e=>{const i=r(e);if("number"===typeof i){o.validationMessage=void 0,n.goToMatch(i);const e=n.getState().currentMatch;e&&this.addDecorations(t,e)}else o.validationMessage=ve.NC("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};o.onDidChangeValue((e=>{a(e)})),o.onDidAccept((()=>{const e=r(o.value);"number"===typeof e?(n.goToMatch(e),o.hide()):o.validationMessage=ve.NC("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)})),o.onDidHide((()=>{this.clearDecorations(t),o.dispose()})),o.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.EN)(a.m9),position:d.sh.Full}}}])}))}}class St extends r.R6{async run(e,t){const i=ft.get(t);if(!i)return;const n=mt(t,"single",!1);n&&i.setSearchString(n),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,r.rn)(new r.jY({id:q,label:ve.NC("startReplace","Replace"),alias:"Replace",precondition:E.Ao.or(l.u.focus,E.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ot.eH.MenubarEditMenu,group:"3_find",title:ve.NC({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(91))return!1;const n=ft.get(t);if(!n)return!1;const s=t.getSelection(),o=n.isFindInputFocused(),r=!s.isEmpty()&&s.startLineNumber===s.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!o,a=o||r?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,r._K)(ft.ID,_t,0),(0,r.Qr)(bt),(0,r.Qr)(Ct),(0,r.Qr)(class extends yt{constructor(){super({id:H,label:ve.NC("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.u.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:E.Ao.and(l.u.focus,I),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,r.Qr)(class extends yt{constructor(){super({id:z,label:ve.NC("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.u.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:E.Ao.and(l.u.focus,I),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,r.Qr)(wt),(0,r.Qr)(class extends St{constructor(){super({id:U,label:ve.NC("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,r.Qr)(class extends St{constructor(){super({id:K,label:ve.NC("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const xt=r._l.bindToContribution(ft.get);(0,r.fK)(new xt({id:$,precondition:T,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:E.Ao.and(l.u.focus,E.Ao.not("isComposing")),primary:9,secondary:[1033]}})),(0,r.fK)(new xt({id:G,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),(0,r.fK)(new xt({id:Y,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),(0,r.fK)(new xt({id:Z,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,r.fK)(new xt({id:Q,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,r.fK)(new xt({id:X,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,r.fK)(new xt({id:J,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:3094}})),(0,r.fK)(new xt({id:J,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:E.Ao.and(l.u.focus,M),primary:3}})),(0,r.fK)(new xt({id:ee,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:2563}})),(0,r.fK)(new xt({id:ee,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:E.Ao.and(l.u.focus,M),primary:void 0,mac:{primary:2051}}})),(0,r.fK)(new xt({id:te,precondition:T,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:515}}))},63776:(e,t,i)=>{"use strict";i.d(t,{f:()=>W,n:()=>H});var n=i(53372),s=i(76946),o=i(16015),r=i(17344),a=i(53186),l=i(78701),d=i(47624),h=i(52432),c=i(60548),u=i(35770),g=i(18841),p=i(5580),m=i(91421),f=i(91206),_=i(39706),v=i(28928),b=i(47056);class C{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.Q5,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,b.Q)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,s=Number.MAX_VALUE,o=-1;const r=this._foldingModel.regions;for(;i<r.length;i++){if(!r.isCollapsed(i))continue;const a=r.getStartLineNumber(i)+1,l=r.getEndLineNumber(i);s<=a&&l<=o||(!e&&n<this._hiddenRanges.length&&this._hiddenRanges[n].startLineNumber===a&&this._hiddenRanges[n].endLineNumber===l?(t.push(this._hiddenRanges[n]),n++):(e=!0,t.push(new v.e(a,1,l,1))),s=a,o=l)}(this._hasLineChanges||e||n<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==y(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const s=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=y(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let o=0,r=e.length;o<r;o++){let n=e[o];const r=s(n.startLineNumber);r&&(n=n.setStartPosition(r,i.getLineMaxColumn(r)),t=!0);const a=s(n.endLineNumber);a&&(n=n.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[o]=n}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function y(e,t){const i=(0,f.J_)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var w,S=i(44687),x=i(5887),L=i(47116),k=i(10960),D=i(58012),N=i(2943),E=i(61758),T=i(14386),I=i(6617),M=i(53869),A=i(94943),R=i(91387),O=i(23058),P=i(30600),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};const V=new L.uy("foldingEnabled",!1);let W=w=class extends a.JT{static get(e){return e.getContribution(w.ID)}static getFoldingRangeProviders(e,t){var i,n;const s=e.foldingRangeProvider.ordered(t);return null!==(n=null===(i=w._foldingRangeSelector)||void 0===i?void 0:i.call(w,s,t))&&void 0!==n?n:s}constructor(e,t,i,n,s,o){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=o,this.localToDispose=this._register(new a.SL),this.editor=e,this._foldingLimitReporter=new H(e);const r=this.editor.getOptions();this._isEnabled=r.get(43),this._useFoldingProviders="indentation"!==r.get(44),this._unfoldOnClickAfterEndOfLine=r.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=r.get(46),this.updateDebounceInfo=s.for(o.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new k.fF(e),this.foldingDecorationProvider.showFoldingControls=r.get(110),this.foldingDecorationProvider.showFoldingHighlights=r.get(45),this.foldingEnabled=V.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(110)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(110),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.av(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new C(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new n.vp(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.pY((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{var e,t;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),null===(e=this.updateScheduler)||void 0===e||e.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,null===(t=this.rangeProvider)||void 0===t||t.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;null===(e=this.rangeProvider)||void 0===e||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new S.aI(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=w.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new N.e(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new I.G,i=this.getRangeProvider(e.textModel),s=this.foldingRegionPromise=(0,n.PG)((e=>i.compute(e)));return s.then((i=>{if(i&&s===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.AD.Imports.value,!0);e&&(n=h.Z.capture(this.editor),this._currentModelHasFoldedImports=e)}const s=this.editor.getSelections(),o=s?s.map((e=>e.startLineNumber)):[];e.update(i,o),null===n||void 0===n||n.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,o.dL)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,o.dL)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,s=e.target.range;if(!s||s.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||s.startColumn!==e.getLineMaxColumn(i))return}const o=t.getRegionAtLine(i);if(o&&o.startLineNumber===i){const s=o.isCollapsed;if(n||s){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(o)&&!o.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&n.push(t);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(o))e.isCollapsed===s&&n.push(e);!s&&i&&0!==n.length||n.push(o)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};W.ID="editor.contrib.folding",W=w=F([B(1,L.i6),B(2,p.c_),B(3,E.lT),B(4,T.A),B(5,M.p)],W);class H{constructor(e){this.editor=e,this._onDidChange=new _.Q5,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class z extends c.R6{runEditorCommand(e,t,i){const n=e.get(p.c_),s=W.get(t);if(!s)return;const o=s.getFoldingModel();return o?(this.reportTelemetry(e,t),o.then((e=>{if(e){this.invoke(s,e,t,i,n);const o=t.getSelection();o&&s.reveal(o.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function j(e){if(!d.o8(e)){if(!d.Kn(e))return!1;const t=e;if(!d.o8(t.levels)&&!d.hj(t.levels))return!1;if(!d.o8(t.direction)&&!d.HD(t.direction))return!1;if(!d.o8(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(d.hj)))return!1}return!0}class U extends z{getFoldingLevel(){return parseInt(this.id.substr(U.ID_PREFIX.length))}invoke(e,t,i){(0,m.Ln)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}U.ID_PREFIX="editor.foldLevel",U.ID=e=>U.ID_PREFIX+e;(0,c._K)(W.ID,W,0),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfold",label:x.NC("unfoldAction.label","Unfold"),alias:"Unfold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:j,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=n&&n.levels||1,o=this.getLineNumbers(n,i);n&&"up"===n.direction?(0,m.gU)(t,!1,s,o):(0,m.R$)(t,!1,s,o)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldRecursively",label:x.NC("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2142),weight:100}})}invoke(e,t,i,n){(0,m.R$)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.fold",label:x.NC("foldAction.label","Fold"),alias:"Fold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:j,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=this.getLineNumbers(n,i),o=n&&n.levels,r=n&&n.direction;"number"!==typeof o&&"string"!==typeof r?(0,m.HX)(t,!0,s):"up"===r?(0,m.gU)(t,!0,o||1,s):(0,m.R$)(t,!0,o||1,s)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldRecursively",label:x.NC("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.R$)(t,!0,Number.MAX_VALUE,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAll",label:x.NC("foldAllAction.label","Fold All"),alias:"Fold All",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.R$)(t,!0)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldAll",label:x.NC("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.R$)(t,!1)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAllBlockComments",label:x.NC("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2138),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.MW)(t,g.AD.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).comments;if(n&&n.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,l.ec)(n.blockCommentStartToken));(0,m.DW)(t,e,!0)}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAllMarkerRegions",label:x.NC("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2077),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.MW)(t,g.AD.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,m.DW)(t,e,!0)}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:x.NC("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2078),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.MW)(t,g.AD.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,m.DW)(t,e,!1)}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAllExcept",label:x.NC("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2136),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.YT)(t,!0,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldAllExcept",label:x.NC("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2134),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.YT)(t,!1,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.toggleFold",label:x.NC("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2090),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.d8)(t,1,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.gotoParentFold",label:x.NC("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.PV)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.gotoPreviousFold",label:x.NC("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.sK)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.gotoNextFold",label:x.NC("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.hE)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:x.NC("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2135),weight:100}})}invoke(e,t,i){var n;const s=[],o=i.getSelections();if(o){for(const e of o){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=D.MN.sanitizeAndMerge(t.regions,s,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(D.MN.fromFoldRanges(e))}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.removeManualFoldingRanges",label:x.NC("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const i=[];for(const e of n){const{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let K=1;K<=7;K++)(0,c.QG)(new U({id:U.ID(K),label:x.NC("foldLevelAction.label","Fold Level {0}",K),alias:`Fold Level ${K}`,precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2048|21+K),weight:100}}));A.P.registerCommand("_executeFoldingRangeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[r]=i;if(!(r instanceof R.o))throw(0,o.b1)();const a=e.get(M.p),l=e.get(O.q).getModel(r);if(!l)throw(0,o.b1)();const d=e.get(P.Ui);if(!d.getValue("editor.folding",{resource:r}))return[];const h=e.get(p.c_),c=d.getValue("editor.foldingStrategy",{resource:r}),u={get limit(){return d.getValue("editor.foldingMaximumRegions",{resource:r})},update:(e,t)=>{}},m=new S.aI(l,h,u);let f=m;if("indentation"!==c){const e=W.getFoldingRangeProviders(a,l);e.length&&(f=new N.e(l,e,(()=>{}),u,m))}const _=await f.compute(s.T.None),v=[];try{if(_)for(let e=0;e<_.length;e++){const t=_.getType(e);v.push({start:_.getStartLineNumber(e),end:_.getEndLineNumber(e),kind:t?g.AD.fromValue(t):void 0})}return v}finally{f.dispose()}}))},10960:(e,t,i)=>{"use strict";i.d(t,{Iy:()=>c,f5:()=>u,fF:()=>v});var n=i(61542),s=i(13277),o=i(5887),r=i(6009),a=i(54329),l=i(46673),d=i(73045);const h=(0,r.P6G)("editor.foldBackground",{light:(0,r.ZnX)(r.hEj,.3),dark:(0,r.ZnX)(r.hEj,.3),hcDark:null,hcLight:null},(0,o.NC)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6G)("editorGutter.foldingControlForeground",{dark:r.XZx,light:r.XZx,hcDark:r.XZx,hcLight:r.XZx},(0,o.NC)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const c=(0,a.q5)("folding-expanded",n.l.chevronDown,(0,o.NC)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.q5)("folding-collapsed",n.l.chevronRight,(0,o.NC)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.q5)("folding-manual-collapsed",u,(0,o.NC)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.q5)("folding-manual-expanded",c,(0,o.NC)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,l.EN)(h),position:1},f=(0,o.NC)("linesCollapsed","Click to expand the range."),_=(0,o.NC)("linesExpanded","Click to collapse the range.");class v{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}v.COLLAPSED_VISUAL_DECORATION=s.qx.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(u)}),v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=s.qx.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(u)}),v.MANUALLY_COLLAPSED_VISUAL_DECORATION=s.qx.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(g)}),v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=s.qx.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(g)}),v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=s.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f}),v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=s.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f}),v.EXPANDED_VISUAL_DECORATION=s.qx.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.k.asClassName(c),linesDecorationsTooltip:_}),v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=s.qx.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:d.k.asClassName(c),linesDecorationsTooltip:_}),v.MANUALLY_EXPANDED_VISUAL_DECORATION=s.qx.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.k.asClassName(p),linesDecorationsTooltip:_}),v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=s.qx.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:d.k.asClassName(p),linesDecorationsTooltip:_}),v.NO_CONTROLS_EXPANDED_RANGE_DECORATION=s.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),v.HIDDEN_RANGE_DECORATION=s.qx.register({description:"folding-hidden-range-decoration",stickiness:1})},91421:(e,t,i)=>{"use strict";i.d(t,{DW:()=>g,HX:()=>h,Ln:()=>c,MW:()=>p,PV:()=>m,R$:()=>l,YT:()=>u,av:()=>r,d8:()=>a,gU:()=>d,hE:()=>_,sK:()=>f});var n=i(39706),s=i(58012),o=i(95075);class r{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new n.Q5,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new s.MN(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,s=-1,o=-1;const r=e=>{for(;n<e;){const e=this._regions.getEndLineNumber(n),t=this._regions.isCollapsed(n);if(e<=s){const s=0!==this.regions.getSource(n);i.changeDecorationOptions(this._editorDecorationIds[n],this._decorationProvider.getDecorationOption(t,e<=o,s))}t&&e>o&&(o=e),n++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,r(e);const n=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,n),s=Math.max(s,this._regions.getEndLineNumber(e))}}r(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let n=0;n<this._regions.length;n++){const e=this._regions.toFoldRange(n);0!==e.source&&i(e)||t.push(e)}this.updatePost(s.MN.fromFoldRanges(t))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const i=this._currentFoldedOrManualRanges(t),n=s.MN.sanitizeAndMerge(e,i,this._textModel.getLineCount());this.updatePost(s.MN.fromFoldRanges(n))}updatePost(e){const t=[];let i=-1;for(let n=0,s=e.length;n<s;n++){const s=e.getStartLineNumber(n),o=e.getEndLineNumber(n),r=e.isCollapsed(n),a=0!==e.getSource(n),l={startLineNumber:s,startColumn:this._textModel.getLineMaxColumn(s),endLineNumber:o,endColumn:this._textModel.getLineMaxColumn(o)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(r,o<=i,a)}),r&&o>i&&(i=o)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=(t,i)=>{for(const n of e)if(t<n&&n<=i)return!0;return!1},i=[];for(let n=0,s=this._regions.length;n<s;n++){let e=this.regions.isCollapsed(n);const s=this.regions.getSource(n);if(e||0!==s){const o=this._regions.toFoldRange(n),r=this._textModel.getDecorationRange(this._editorDecorationIds[n]);r&&(e&&t(r.startLineNumber,r.endLineNumber)&&(e=!1),i.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,type:o.type,isCollapsed:e,source:s}))}}return i}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let n=0,s=e.length;n<s;n++){const s=e[n];if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>i)continue;const o=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:o})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],o=this._textModel.getLineCount();for(const s of e){if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>o)continue;const e=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);s.checksum&&e!==s.checksum||n.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,type:void 0,isCollapsed:null===(t=s.isCollapsed)||void 0===t||t,source:null!==(i=s.source)&&void 0!==i?i:0})}const r=s.MN.sanitizeAndMerge(this._regions,n,o);this.updatePost(s.MN.fromFoldRanges(r))}_getLinesChecksum(e,t){return(0,o.vp)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),s=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,s)||i.push(e),s++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,s=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let o=n,r=this._regions.length;o<r;o++){const n=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<s))break;for(;e.length>0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let o=n,r=this._regions.length;o<r;o++){const e=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<s))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const n=[];for(const s of i){const i=e.getRegionAtLine(s);if(i){const s=!i.isCollapsed;if(n.push(i),t>1){const o=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==s&&i<t));n.push(...o)}}}e.toggleCollapseState(n)}function l(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_VALUE,n=arguments.length>3?arguments[3]:void 0;const s=[];if(n&&n.length>0)for(const o of n){const n=e.getRegionAtLine(o);if(n&&(n.isCollapsed!==t&&s.push(n),i>1)){const o=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&n<i));s.push(...o)}}else{const n=e.getRegionsInside(null,((e,n)=>e.isCollapsed!==t&&n<i));s.push(...n)}e.toggleCollapseState(s)}function d(e,t,i,n){const s=[];for(const o of n){const n=e.getAllRegionsAtLine(o,((e,n)=>e.isCollapsed!==t&&n<=i));s.push(...n)}e.toggleCollapseState(s)}function h(e,t,i){const n=[];for(const s of i){const i=e.getAllRegionsAtLine(s,(e=>e.isCollapsed!==t));i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}function c(e,t,i,n){const s=e.getRegionsInside(null,((e,s)=>s===t&&e.isCollapsed!==i&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(s)}function u(e,t,i){const n=[];for(const o of i){const t=e.getAllRegionsAtLine(o,void 0);t.length>0&&n.push(t[0])}const s=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(s)}function g(e,t,i){const n=e.textModel,s=e.regions,o=[];for(let r=s.length-1;r>=0;r--)if(i!==s.isCollapsed(r)){const e=s.getStartLineNumber(r);t.test(n.getLineContent(e))&&o.push(s.toRegion(r))}e.toggleCollapseState(o)}function p(e,t,i){const n=e.regions,s=[];for(let o=n.length-1;o>=0;o--)i!==n.isCollapsed(o)&&t===n.getType(o)&&s.push(n.toRegion(o));e.toggleCollapseState(s)}function m(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},58012:(e,t,i)=>{"use strict";i.d(t,{MN:()=>a,Xl:()=>s});const n={0:" ",1:"u",2:"r"},s=16777215,o=4278190080;class r{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,n=e%32,s=this._states[i];this._states[i]=t?s|1<<n:s&~(1<<n)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new r(e.length),this._userDefinedStates=new r(e.length),this._recoveredStates=new r(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;i<n;i++){const n=this._startIndexes[i],o=this._endIndexes[i];if(n>s||o>s)throw new Error("startLineNumber or endLineNumber must not exceed "+s);for(;e.length>0&&!t(n,o);)e.pop();const r=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&r)<<24),this._endIndexes[i]=o+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&s}getEndLineNumber(e){return this._endIndexes[e]&s}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n<this._types.length;n++)this._types[n]===e&&(this.setCollapsed(n,t),i=!0);return i}toRegion(e){return new l(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&o)>>>24)+((this._endIndexes[e]&o)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const n=Math.floor((t+i)/2);e<this.getStartLineNumber(n)?i=n:t=n+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${n[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&s,endLineNumber:this._endIndexes[e]&s,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),n=new Uint32Array(t);let s=[],o=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,n[a]=t.endLineNumber,s.push(t.type),t.type&&(o=!0)}o||(s=void 0);const r=new a(i,n,s);for(let a=0;a<t;a++)e[a].isCollapsed&&r.setCollapsed(a,!0),r.setSource(a,e[a].source);return r}static sanitizeAndMerge(e,t,i){i=null!==i&&void 0!==i?i:Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,s=n(e,e.length),o=n(t,t.length);let r=0,a=0,l=s(0),d=o(0);const h=[];let c,u=0;const g=[];for(;l||d;){let e;if(d&&(!l||l.startLineNumber>=d.startLineNumber))l&&l.startLineNumber===d.startLineNumber?(1===d.source?e=d:(e=l,e.isCollapsed=d.isCollapsed&&l.endLineNumber===d.endLineNumber,e.source=0),l=s(++r)):(e=d,d.isCollapsed&&0===d.source&&(e.source=2)),d=o(++a);else{let t=a,i=d;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=s(++r)}if(e){for(;c&&c.endLineNumber<e.startLineNumber;)c=h.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!c||c.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,c&&h.push(c),c=e)}}return g}}class l{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},44687:(e,t,i)=>{"use strict";i.d(t,{aI:()=>o});var n=i(82412),s=i(58012);class o{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,s=t&&t.markers;return Promise.resolve(function(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;const o=e.getOptions().tabSize,l=new r(s);let d;i&&(d=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],c=e.getLineCount()+1;h.push({indent:-1,endAbove:c,line:c});for(let r=e.getLineCount();r>0;r--){const i=e.getLineContent(r),s=(0,n.q)(i,o);let a,c=h[h.length-1];if(-1!==s){if(d&&(a=i.match(d))){if(!a[1]){h.push({indent:-2,endAbove:r,line:r});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,c=h[e],l.insertFirst(r,c.line,s),c.line=r,c.indent=s,c.endAbove=r;continue}}}if(c.indent>s){do{h.pop(),c=h[h.length-1]}while(c.indent>s);const e=c.endAbove-1;e-r>=1&&l.insertFirst(r,e,s)}c.indent===s?c.endAbove=r:h.push({indent:s,endAbove:r,line:r})}else t&&(c.endAbove=r)}return l.toIndentRanges(e)}(this.editorModel,i,s,this.foldingRangesLimit))}}class r{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>s.Xl||t>s.Xl)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new s.MN(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,o=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const n=this._indentOccurrences[e];if(n){if(n+i>t){o=e;break}i+=n}}const r=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let s=this._length-1,d=0;s>=0;s--){const h=this._startIndexes[s],c=e.getLineContent(h),u=(0,n.q)(c,r);(u<o||u===o&&i++<t)&&(a[d]=h,l[d]=this._endIndexes[s],d++)}return new s.MN(a,l)}}}const a={limit:5e3,update:()=>{}}},2943:(e,t,i)=>{"use strict";i.d(t,{e:()=>a});var n=i(16015),s=i(53186),o=i(58012);const r={};class a{constructor(e,t,i,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id="syntax",this.disposables=new s.SL,o&&this.disposables.add(o);for(const s of t)"function"===typeof s.onDidChange&&this.disposables.add(s.onDidChange(i))}compute(e){return function(e,t,i){let s=null;const o=e.map(((e,o)=>Promise.resolve(e.provideFoldingRanges(t,r,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(s)||(s=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&s.push({start:t.start,end:t.end,rank:o,kind:t.kind})}}),n.Cp)));return Promise.all(o).then((e=>s))}(this.providers,this.editorModel,e).then((t=>{var i,n;if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),n=new l(t);let s;const o=[];for(const r of i)if(s){if(r.start>s.start)if(r.end<=s.end)o.push(s),s=r,n.add(r.start,r.end,r.kind&&r.kind.value,o.length);else{if(r.start>s.end){do{s=o.pop()}while(s&&r.start>s.end);s&&o.push(s),s=r}n.add(r.start,r.end,r.kind&&r.kind.value,o.length)}}else s=r,n.add(r.start,r.end,r.kind&&r.kind.value,o.length);return n.toIndentRanges()}(t,this.foldingRangesLimit)}return null!==(n=null===(i=this.fallbackRangeProvider)||void 0===i?void 0:i.compute(e))&&void 0!==n?n:null}))}dispose(){this.disposables.dispose()}}class l{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>o.Xl||t>o.Xl)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._nestingLevels[s]=n,this._types[s]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new o.MN(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let o=0;o<this._nestingLevelCounts.length;o++){const n=this._nestingLevelCounts[o];if(n){if(n+t>e){i=o;break}t+=n}}const n=new Uint32Array(e),s=new Uint32Array(e),r=[];for(let o=0,a=0;o<this._length;o++){const l=this._nestingLevels[o];(l<i||l===i&&t++<e)&&(n[a]=this._startIndexes[o],s[a]=this._endIndexes[o],r[a]=this._types[o],a++)}return new o.MN(n,s,r)}}}},91135:(e,t,i)=>{"use strict";var n=i(60548),s=i(90582),o=i(5887);class r extends n.R6{constructor(){super({id:"editor.action.fontZoomIn",label:o.NC("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){s.C.setZoomLevel(s.C.getZoomLevel()+1)}}class a extends n.R6{constructor(){super({id:"editor.action.fontZoomOut",label:o.NC("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){s.C.setZoomLevel(s.C.getZoomLevel()-1)}}class l extends n.R6{constructor(){super({id:"editor.action.fontZoomReset",label:o.NC("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){s.C.setZoomLevel(0)}}(0,n.Qr)(r),(0,n.Qr)(a),(0,n.Qr)(l)},37806:(e,t,i)=>{"use strict";i.d(t,{xC:()=>k,x$:()=>D,Qq:()=>E,Qs:()=>I});var n=i(51833),s=i(76946),o=i(16015),r=i(2706),a=i(64450),l=i(47624),d=i(91387),h=i(8037),c=i(48850),u=i(74633),g=i(28928),p=i(24854),m=i(69115),f=i(43537),_=i(75549),v=i(94943);class b{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class C{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(b.toKey(e))}has(e){return this._set.has(b.toKey(e))}}var y=i(87775),w=i(53869),S=i(33454),x=i(88622);function L(e,t,i){const n=[],s=new C,o=e.ordered(i);for(const a of o)n.push(a),a.extensionId&&s.add(a.extensionId);const r=t.ordered(i);for(const a of r){if(a.extensionId){if(s.has(a.extensionId))continue;s.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return n}class k{static setFormatterSelector(e){return{dispose:k._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;const s=r.$.first(k._selectors);return s?await s(e,t,i,n):void 0}}async function D(e,t,i,n,s,o,r){const a=e.get(y.TG),{documentRangeFormattingEditProvider:l}=e.get(w.p),d=(0,c.CL)(t)?t.getModel():t,h=l.ordered(d),u=await k.select(h,d,n,2);u&&(s.report(u),await a.invokeFunction(N,u,t,i,o,r))}async function N(e,t,i,s,o,r){var a,l;const d=e.get(m.p),u=e.get(S.VZ),f=e.get(x.IV);let v,b;(0,c.CL)(i)?(v=i.getModel(),b=new h.Dl(i,5,void 0,o)):(v=i,b=new h.YQ(i,o));const C=[];let y=0;for(const h of(0,n._2)(s).sort(g.e.compareRangesUsingStarts))y>0&&g.e.areIntersectingOrTouching(C[y-1],h)?C[y-1]=g.e.fromPositions(C[y-1].getStartPosition(),h.getEndPosition()):y=C.push(h);const w=async e=>{var i,n;u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);const s=await t.provideDocumentRangeFormattingEdits(v,e,v.getFormattingOptions(),b.token)||[];return u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,s),s},L=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.e.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.e.intersectRanges(i,e.range))))return!1;for(const n of e)for(const e of t)if(g.e.intersectRanges(n.range,e.range))return!0;return!1},k=[],D=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(a=t.extensionId)||void 0===a?void 0:a.value,C);const e=await t.provideDocumentRangesFormattingEdits(v,C,v.getFormattingOptions(),b.token)||[];u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(l=t.extensionId)||void 0===l?void 0:l.value,e),D.push(e)}else{for(const e of C){if(b.token.isCancellationRequested)return!0;D.push(await w(e))}for(let e=0;e<C.length;++e)for(let t=e+1;t<C.length;++t){if(b.token.isCancellationRequested)return!0;if(L(D[e],D[t])){const i=g.e.plusRange(C[e],C[t]),n=await w(i);C.splice(t,1),C.splice(e,1),C.push(i),D.splice(t,1),D.splice(e,1),D.push(n),e=0,t=0}}}for(const e of D){if(b.token.isCancellationRequested)return!0;const t=await d.computeMoreMinimalEdits(v.uri,e);t&&k.push(...t)}}finally{b.dispose()}if(0===k.length)return!1;if((0,c.CL)(i))_.V.execute(i,k,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=k,t=new p.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);v.pushEditOperations([t],k.map((e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new p.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return f.playSignal(x.iP.format,{userGesture:r}),!0}async function E(e,t,i,n,s,o){const r=e.get(y.TG),a=e.get(w.p),l=(0,c.CL)(t)?t.getModel():t,d=L(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),h=await k.select(d,l,i,1);h&&(n.report(h),await r.invokeFunction(T,h,t,i,s,o))}async function T(e,t,i,n,s,o){const r=e.get(m.p),a=e.get(x.IV);let l,d,u;(0,c.CL)(i)?(l=i.getModel(),d=new h.Dl(i,5,void 0,s)):(l=i,d=new h.YQ(i,s));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),d.token);if(u=await r.computeMoreMinimalEdits(l.uri,e),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!u||0===u.length)return!1;if((0,c.CL)(i))_.V.execute(i,u,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],u.map((e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new p.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(x.iP.format,{userGesture:o}),!0}function I(e,t,i,n,s,r,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(s)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,s,r,a)).catch(o.Cp).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}k._selectors=new a.S,v.P.registerCommand("_executeFormatRangeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];const[a,h,c]=i;(0,l.p_)(d.o.isUri(a)),(0,l.p_)(g.e.isIRange(h));const u=e.get(f.S),p=e.get(m.p),_=e.get(w.p),v=await u.createModelReference(a);try{return async function(e,t,i,s,r,a){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const d of l){const t=await Promise.resolve(d.provideDocumentRangeFormattingEdits(i,s,r,a)).catch(o.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(p,_,v.object.textEditorModel,g.e.lift(h),c,s.T.None)}finally{v.dispose()}})),v.P.registerCommand("_executeFormatDocumentProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];const[a,h]=i;(0,l.p_)(d.o.isUri(a));const c=e.get(f.S),u=e.get(m.p),g=e.get(w.p),p=await c.createModelReference(a);try{return async function(e,t,i,s,r){const a=L(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const l of a){const t=await Promise.resolve(l.provideDocumentFormattingEdits(i,s,r)).catch(o.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(u,g,p.object.textEditorModel,h,s.T.None)}finally{p.dispose()}})),v.P.registerCommand("_executeFormatOnTypeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[o,r,a,h]=i;(0,l.p_)(d.o.isUri(o)),(0,l.p_)(u.L.isIPosition(r)),(0,l.p_)("string"===typeof a);const c=e.get(f.S),g=e.get(m.p),p=e.get(w.p),_=await c.createModelReference(o);try{return I(g,p,_.object.textEditorModel,u.L.lift(r),a,h,s.T.None)}finally{_.dispose()}}))},13499:(e,t,i)=>{"use strict";var n=i(51833),s=i(76946),o=i(16015),r=i(17344),a=i(53186),l=i(60548),d=i(74246),h=i(47498),c=i(28928),u=i(35770),g=i(69115),p=i(53869),m=i(37806),f=i(75549),_=i(5887),v=i(88622),b=i(94943),C=i(47116),y=i(87775),w=i(97757),S=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},x=function(e,t){return function(i,n){t(i,n,e)}};let L=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new a.SL,this._sessionDisposables=new a.SL,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.q;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),o=new s.A,r=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return o.cancel(),void r.dispose();for(let t=0,n=e.changes.length;t<n;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return o.cancel(),void r.dispose()}}));(0,m.Qs)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),o.token).then((e=>{o.token.isCancellationRequested||(0,n.Of)(e)&&(this._accessibilitySignalService.playSignal(v.iP.format,{userGesture:!1}),f.V.execute(this._editor,e,!0))})).finally((()=>{r.dispose()}))}};L.ID="editor.contrib.autoFormat",L=S([x(1,p.p),x(2,g.p),x(3,v.IV)],L);let k=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.SL,this._callOnModel=new a.SL,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((e=>{let{range:t}=e;return this._trigger(t)})))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.x$,this.editor,e,2,w.Ex.None,s.T.None,!1).catch(o.dL))}};k.ID="editor.contrib.formatOnPaste",k=S([x(1,p.p),x(2,y.TG)],k);class D extends l.R6{constructor(){super({id:"editor.action.formatDocument",label:_.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:C.Ao.and(u.u.notInCompositeEditor,u.u.writable,u.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(y.TG),n=e.get(w.ek);await n.showWhile(i.invokeFunction(m.Qq,t,1,w.Ex.None,s.T.None,!0),250)}}}class N extends l.R6{constructor(){super({id:"editor.action.formatSelection",label:_.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:C.Ao.and(u.u.writable,u.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2084),weight:100},contextMenuOpts:{when:u.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(y.TG),n=t.getModel(),o=t.getSelections().map((e=>e.isEmpty()?new c.e(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),r=e.get(w.ek);await r.showWhile(i.invokeFunction(m.x$,t,o,1,w.Ex.None,s.T.None,!0),250)}}(0,l._K)(L.ID,L,2),(0,l._K)(k.ID,k,2),(0,l.Qr)(D),(0,l.Qr)(N),b.P.registerCommand("editor.action.format",(async e=>{const t=e.get(d.$).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(b.H);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},75549:(e,t,i)=>{"use strict";i.d(t,{V:()=>r});var n=i(56154),s=i(28928),o=i(52432);class r{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)"number"===typeof s.eol&&(i=s.eol),s.range&&"string"===typeof s.text&&n.push(s);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const a=o.Z.capture(e),l=r._handleEolEdits(e,t);1===l.length&&r._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>n.h.replace(s.e.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>n.h.replaceMove(s.e.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},95851:(e,t,i)=>{"use strict";i.d(t,{c:()=>re,v:()=>le});var n=i(61542),s=i(53186),o=i(60548),r=i(74246),a=i(74633),l=i(28928),d=i(35770),h=i(51833),c=i(39706),u=i(64450),g=i(78701),p=i(91387),m=i(23026),f=i(87775),_=i(76390),v=i(30600),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let w=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new c.Q5,this.onDidChange=this._onDidChange.event,this._dispoables=new s.SL,this._markers=[],this._nextIdx=-1,p.o.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),o=(e,t)=>{let i=(0,g.qu)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?l.e.compareRangesUsingStarts(e,t)||_.ZL.compare(e.severity,t.severity):_.ZL.compare(e.severity,t.severity)||l.e.compareRangesUsingStarts(e,t)),i},r=()=>{this._markers=this._markerService.read({resource:p.o.isUri(e)?e:void 0,severities:_.ZL.Error|_.ZL.Warning|_.ZL.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(o)};r(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(r(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new y(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));s<0&&(s=(0,h.ry)(this._markers,{resource:e.uri},((e,t)=>(0,g.qu)(e.resource.toString(),t.resource.toString()))),s<0&&(s=~s));for(let o=s;o<this._markers.length;o++){let i=l.e.lift(this._markers[o]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new l.e(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=o,n=!0;break}if(this._markers[o].resource.toString()!==e.uri.toString())break}n||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const n=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),n!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(l.e.containsPosition(this._markers[i],t))return new y(this._markers[i],i+1,this._markers.length)}};w=b([C(1,_.lT),C(2,v.Ui)],w);const S=(0,f.yh)("IMarkerNavigationService");let x=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.S}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new w(e,this._markerService,this._configService)}};x=b([C(0,_.lT),C(1,v.Ui)],x),(0,m.z)(S,x,1);var L,k=i(5887),D=i(6178),N=i(47116),E=i(54329),T=i(76595),I=i(24622),M=i(63932),A=i(30506),R=i(60737),O=i(51887),P=i(60297),F=i(34912),B=i(73045),V=i(28889);!function(e){e.className=function(e){switch(e){case V.Z.Ignore:return"severity-ignore "+B.k.asClassName(n.l.info);case V.Z.Info:return B.k.asClassName(n.l.info);case V.Z.Warning:return B.k.asClassName(n.l.warning);case V.Z.Error:return B.k.asClassName(n.l.error);default:return""}}}(L||(L={}));var W,H=i(6009),z=i(46673),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};class K{constructor(e,t,i,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new s.SL,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(T.mu(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new I.NB(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{r.style.left=`-${e.scrollLeft}px`,r.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,s.B9)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let o=((null===t||void 0===t?void 0:t.length)||0)+"()".length;s&&(o+="string"===typeof s?s.length:s.value.length);const r=(0,g.uq)(i);this._lines=r.length,this._longestLineLength=0;for(const h of r)this._longestLineLength=Math.max(h.length+o,this._longestLineLength);T.PO(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of r)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||s){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(s)if("string"===typeof s){const t=document.createElement("span");t.innerText=`(${s})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=T.$("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(s.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};T.R3(this._codeLink,T.$("span")).innerText=s.value,e.appendChild(this._codeLink)}}if(T.PO(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.Of)(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const s=document.createElement("span");s.innerText=t.message,i.appendChild(n),i.appendChild(s),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(50),d=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),c=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:c})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.ZL.Error:t=k.NC("Error","Error");break;case _.ZL.Warning:t=k.NC("Warning","Warning");break;case _.ZL.Info:t=k.NC("Info","Info");break;case _.ZL.Hint:t=k.NC("Hint","Hint")}let i=k.NC("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();if(n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1){i=`${n.getLineContent(e.startLineNumber)}, ${i}`}return i}}let q=W=class extends R.vk{constructor(e,t,i,n,o,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new s.SL,this._onDidSelectRelatedInformation=new c.Q5,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.ZL.Warning,this._backgroundColor=M.Il.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Z,i=Q;this._severity===_.ZL.Warning?(t=X,i=J):this._severity===_.ZL.Info&&(t=ee,i=te);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(R.IH),secondaryHeadingColor:e.getColor(R.R7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.createMenu(W.TitleMenu,this._contextKeyService);(0,O.vr)(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=T.R3(e,T.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new K(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=l.e.lift(e),s=this.editor.getPosition(),o=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(o,this.computeRequiredHeight());const r=this.editor.getModel();if(r){const e=i>1?k.NC("problems","{0} of {1} problems",t,i):k.NC("change","{0} of {1} problem",t,i);this.setTitle((0,A.EZ)(r.uri),e)}this._icon.className=`codicon ${L.className(_.ZL.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(o,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};q.TitleMenu=new D.eH("gotoErrorTitleMenu"),q=W=j([U(1,z.XE),U(2,F.v),U(3,D.co),U(4,f.TG),U(5,N.i6),U(6,P.e)],q);const $=(0,H.kwl)(H.lXJ,H.b6y),G=(0,H.kwl)(H.uoC,H.pW3),Y=(0,H.kwl)(H.c63,H.T83),Z=(0,H.P6G)("editorMarkerNavigationError.background",{dark:$,light:$,hcDark:H.lRK,hcLight:H.lRK},k.NC("editorMarkerNavigationError","Editor marker navigation widget error color.")),Q=(0,H.P6G)("editorMarkerNavigationError.headerBackground",{dark:(0,H.ZnX)(Z,.1),light:(0,H.ZnX)(Z,.1),hcDark:null,hcLight:null},k.NC("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),X=(0,H.P6G)("editorMarkerNavigationWarning.background",{dark:G,light:G,hcDark:H.lRK,hcLight:H.lRK},k.NC("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,H.P6G)("editorMarkerNavigationWarning.headerBackground",{dark:(0,H.ZnX)(X,.1),light:(0,H.ZnX)(X,.1),hcDark:"#0C141F",hcLight:(0,H.ZnX)(X,.2)},k.NC("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,H.P6G)("editorMarkerNavigationInfo.background",{dark:Y,light:Y,hcDark:H.lRK,hcLight:H.lRK},k.NC("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,H.P6G)("editorMarkerNavigationInfo.headerBackground",{dark:(0,H.ZnX)(ee,.1),light:(0,H.ZnX)(ee,.1),hcDark:null,hcLight:null},k.NC("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,H.P6G)("editorMarkerNavigation.background",{dark:H.cvW,light:H.cvW,hcDark:H.cvW,hcLight:H.cvW},k.NC("editorMarkerNavigationBackground","Editor marker navigation widget background."));var ne,se=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},oe=function(e,t){return function(i,n){t(i,n,e)}};let re=ne=class{static get(e){return e.getContribution(ne.ID)}constructor(e,t,i,n,o){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new s.SL,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(q,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.e.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.e.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.L(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){var i,n;if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const o=await this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);o&&(null===(i=ne.get(o))||void 0===i||i.close(),null===(n=ne.get(o))||void 0===n||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}}};re.ID="editor.contrib.markerController",re=ne=se([oe(1,S),oe(2,N.i6),oe(3,r.$),oe(4,f.TG)],re);class ae extends o.R6{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){var i;t.hasModel()&&(null===(i=re.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}}class le extends ae{constructor(){super(!0,!1,{id:le.ID,label:le.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:578,weight:100},menuOpts:{menuId:q.TitleMenu,title:le.LABEL,icon:(0,E.q5)("marker-navigation-next",n.l.arrowDown,k.NC("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}le.ID="editor.action.marker.next",le.LABEL=k.NC("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class de extends ae{constructor(){super(!1,!1,{id:de.ID,label:de.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:1602,weight:100},menuOpts:{menuId:q.TitleMenu,title:de.LABEL,icon:(0,E.q5)("marker-navigation-previous",n.l.arrowUp,k.NC("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}de.ID="editor.action.marker.prev",de.LABEL=k.NC("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");(0,o._K)(re.ID,re,4),(0,o.Qr)(le),(0,o.Qr)(de),(0,o.Qr)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:k.NC("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:66,weight:100},menuOpts:{menuId:D.eH.MenubarGoMenu,title:k.NC({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,o.Qr)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:k.NC("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:1090,weight:100},menuOpts:{menuId:D.eH.MenubarGoMenu,title:k.NC({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new N.uy("markersNavigationVisible",!1),ce=o._l.bindToContribution(re.get);(0,o.fK)(new ce({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.u.focus,primary:9,secondary:[1033]}}))},67069:(e,t,i)=>{"use strict";i.d(t,{BT:()=>ee,Bj:()=>J,_k:()=>X});var n=i(83945),s=i(53372),o=i(17344),r=i(47624),a=i(91387),l=i(8037),d=i(48850),h=i(60548),c=i(74246),u=i(2822),g=i(74633),p=i(28928),m=i(35770),f=i(18841),_=i(6823),v=i(37080),b=i(39706),C=i(53186),y=i(30506),w=i(5887),S=i(47116),x=i(23026),L=i(87775),k=i(25371),D=i(85412),N=i(61758),E=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};const I=new S.uy("hasSymbols",!1,(0,w.NC)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),M=(0,L.yh)("ISymbolNavigationService");let A=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=I.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new R(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),s=i.getPosition();if(!n||!s)return;let o=!1,r=!1;for(const a of t.references)if((0,y.Xy)(a.uri,n.uri))o=!0,r=r||p.e.containsPosition(a.range,s);else if(o)break;o&&r||this.reset()}));this._currentState=(0,C.F8)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.e.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,w.NC)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,w.NC)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};A=E([T(0,S.i6),T(1,c.$),T(2,N.lT),T(3,k.d)],A),(0,x.z)(M,A,1),(0,h.fK)(new class extends h._l{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:I,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(M).revealNext(t)}}),D.W.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:I,primary:9,handler(e){e.get(M).reset()}});let R=class{constructor(e){this._listener=new Map,this._disposables=new C.SL,this._onDidChange=new b.Q5,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,C.B9)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,C.F8)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};R=E([T(0,c.$)],R);var O,P,F,B,V,W,H,z,j=i(10843),U=i(60737),K=i(6178),q=i(94943),$=i(97757),G=i(18277),Y=i(53869),Z=i(2706),Q=i(48495);K.BH.appendMenuItem(K.eH.EditorContext,{submenu:K.eH.EditorContextPeek,title:w.NC("peek.submenu","Peek"),group:"navigation",order:100});class X{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof X||!(!g.L.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class J extends h.x1{static all(){return J._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of Z.$.wrap(t.menu))i.id!==K.eH.EditorContext&&i.id!==K.eH.EditorContextPeek||(i.when=S.Ao.and(e.precondition,i.when));return t}constructor(e,t){super(J._patchConfig(t)),this.configuration=e,J._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,o){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(N.lT),a=e.get(c.$),d=e.get($.ek),h=e.get(M),u=e.get(Y.p),g=e.get(L.TG),p=t.getModel(),m=t.getPosition(),f=X.is(i)?i:new X(p,m),_=new l.Dl(t,5),v=(0,s.eP)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{var s;if(!e||_.token.isCancellationRequested)return;let r;if((0,n.Z9)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!J._activeAlternativeCommands.has(e)&&J._allSymbolNavigationCommands.has(e)&&(r=J._allSymbolNavigationCommands.get(e))}const l=e.references.length;if(0===l){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);null===(s=j.O.get(t))||void 0===s||s.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==l||!r)return this._onResult(a,h,t,e,o);J._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>r.runEditorCommand(e,t,i,o).finally((()=>{J._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{r.error(e)})).finally((()=>{_.dispose()}));return d.showWhile(v,250),v}async _onResult(e,t,i,n,s){const o=this._getGoToPreference(i);if(i instanceof u.H||!(this.configuration.openInPeek||"peek"===o&&n.references.length>1)){const r=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===o,l=await this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n,s):n.dispose(),"goto"===o&&t.put(r)}else this._openInPeek(i,n,s)}async _openReference(e,t,i,n,s){let o;if((0,f.vx)(i)&&(o=i.targetSelectionRange),o||(o=i.range),!o)return;const r=await t.openCodeEditor({resource:i.uri,options:{selection:p.e.collapseToStart(o),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(r){if(s){const e=r.getModel(),t=r.createDecorationsCollection([{range:o,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{r.getModel()===e&&t.clear()}),350)}return r}}_openInPeek(e,t,i){const n=_.J.get(e);n&&e.hasModel()?n.toggleWidget(null!==i&&void 0!==i?i:e.getSelection(),(0,s.PG)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}J._allSymbolNavigationCommands=new Map,J._activeAlternativeCommands=new Set;class ee extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.nD)(e.definitionProvider,t,i,n),w.NC("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("noResultWord","No definition found for '{0}'",e.word):w.NC("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,K.r1)(((O=class extends ee{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:O.id,title:{...w.vv("actions.goToDecl.label","Go to Definition"),mnemonicTitle:w.NC({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.u.hasDefinitionProvider,keybinding:[{when:m.u.editorTextFocus,primary:70,weight:100},{when:S.Ao.and(m.u.editorTextFocus,Q.Pf),primary:2118,weight:100}],menu:[{id:K.eH.EditorContext,group:"navigation",order:1.1},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),q.P.registerCommandAlias("editor.action.goToDeclaration",O.id)}}).id="editor.action.revealDefinition",O)),(0,K.r1)(((P=class extends ee{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:P.id,title:w.vv("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:S.Ao.and(m.u.hasDefinitionProvider,m.u.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.u.editorTextFocus,primary:(0,o.gx)(2089,70),weight:100},{when:S.Ao.and(m.u.editorTextFocus,Q.Pf),primary:(0,o.gx)(2089,2118),weight:100}]}),q.P.registerCommandAlias("editor.action.openDeclarationToTheSide",P.id)}}).id="editor.action.revealDefinitionAside",P)),(0,K.r1)(((F=class extends ee{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:F.id,title:w.vv("actions.previewDecl.label","Peek Definition"),precondition:S.Ao.and(m.u.hasDefinitionProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),keybinding:{when:m.u.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:K.eH.EditorContextPeek,group:"peek",order:2}}),q.P.registerCommandAlias("editor.action.previewDeclaration",F.id)}}).id="editor.action.peekDefinition",F));class te extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.zq)(e.declarationProvider,t,i,n),w.NC("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("decl.noResultWord","No declaration found for '{0}'",e.word):w.NC("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,K.r1)(((B=class extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:B.id,title:{...w.vv("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:w.NC({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:S.Ao.and(m.u.hasDeclarationProvider,m.u.isInEmbeddedEditor.toNegated()),menu:[{id:K.eH.EditorContext,group:"navigation",order:1.3},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?w.NC("decl.noResultWord","No declaration found for '{0}'",e.word):w.NC("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",B)),(0,K.r1)(class extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:w.vv("actions.peekDecl.label","Peek Declaration"),precondition:S.Ao.and(m.u.hasDeclarationProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),menu:{id:K.eH.EditorContextPeek,group:"peek",order:3}})}});class ie extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.L3)(e.typeDefinitionProvider,t,i,n),w.NC("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):w.NC("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,K.r1)(((V=class extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:V.ID,title:{...w.vv("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:w.NC({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.u.hasTypeDefinitionProvider,keybinding:{when:m.u.editorTextFocus,primary:0,weight:100},menu:[{id:K.eH.EditorContext,group:"navigation",order:1.4},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",V)),(0,K.r1)(((W=class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:W.ID,title:w.vv("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:S.Ao.and(m.u.hasTypeDefinitionProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),menu:{id:K.eH.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",W));class ne extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.f4)(e.implementationProvider,t,i,n),w.NC("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):w.NC("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,K.r1)(((H=class extends ne{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:H.ID,title:{...w.vv("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:w.NC({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.u.hasImplementationProvider,keybinding:{when:m.u.editorTextFocus,primary:2118,weight:100},menu:[{id:K.eH.EditorContext,group:"navigation",order:1.45},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",H)),(0,K.r1)(((z=class extends ne{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:z.ID,title:w.vv("actions.peekImplementation.label","Peek Implementations"),precondition:S.Ao.and(m.u.hasImplementationProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),keybinding:{when:m.u.editorTextFocus,primary:3142,weight:100},menu:{id:K.eH.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",z));class se extends J{_getNoResultFoundMessage(e){return e?w.NC("references.no","No references found for '{0}'",e.word):w.NC("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,K.r1)(class extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...w.vv("goToReferences.label","Go to References"),mnemonicTitle:w.NC({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:S.Ao.and(m.u.hasReferenceProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),keybinding:{when:m.u.editorTextFocus,primary:1094,weight:100},menu:[{id:K.eH.EditorContext,group:"navigation",order:1.45},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.aA)(e.referenceProvider,t,i,!0,n),w.NC("ref.title","References"))}}),(0,K.r1)(class extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:w.vv("references.action.label","Peek References"),precondition:S.Ao.and(m.u.hasReferenceProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),menu:{id:K.eH.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.aA)(e.referenceProvider,t,i,!1,n),w.NC("ref.title","References"))}});class oe extends J{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:w.vv("label.generic","Go to Any Symbol"),precondition:S.Ao.and(U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new v.oQ(this._references,w.NC("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&w.NC("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}q.P.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.o},{name:"position",description:"The position at which to start",constraint:g.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,n,s,o,l)=>{(0,r.p_)(a.o.isUri(t)),(0,r.p_)(g.L.isIPosition(i)),(0,r.p_)(Array.isArray(n)),(0,r.p_)("undefined"===typeof s||"string"===typeof s),(0,r.p_)("undefined"===typeof l||"boolean"===typeof l);const h=e.get(c.$),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,d.CL)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends oe{_getNoResultFoundMessage(e){return o||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(o),openInPeek:Boolean(l),openToSide:!1},n,s);e.get(L.TG).invokeFunction(t.run.bind(t),u)}))}}),q.P.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.o},{name:"position",description:"The position at which to start",constraint:g.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,n,s)=>{e.get(q.H).executeCommand("editor.action.goToLocations",t,i,n,s,void 0,!0)}}),q.P.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,r.p_)(a.o.isUri(t)),(0,r.p_)(g.L.isIPosition(i));const n=e.get(Y.p),o=e.get(c.$);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((e=>{if(!(0,d.CL)(e)||!e.hasModel())return;const t=_.J.get(e);if(!t)return;const o=(0,s.PG)((t=>(0,G.aA)(n.referenceProvider,e.getModel(),g.L.lift(i),!1,t).then((e=>new v.oQ(e,w.NC("ref.title","References")))))),r=new p.e(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(r,o,!1))}))}}),q.P.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},18277:(e,t,i)=>{"use strict";i.d(t,{L3:()=>g,aA:()=>p,f4:()=>u,nD:()=>h,zq:()=>c});var n=i(51833),s=i(76946),o=i(16015),r=i(60548),a=i(53869),l=i(37080);async function d(e,t,i,s){const r=i.ordered(e).map((i=>Promise.resolve(s(i,e,t)).then(void 0,(e=>{(0,o.Cp)(e)})))),a=await Promise.all(r);return(0,n.kX)(a.flat())}function h(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function c(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function u(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function g(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function p(e,t,i,n,s){return d(t,i,e,(async(e,t,i)=>{const o=await e.provideReferences(t,i,{includeDeclaration:!0},s);if(!n||!o||2!==o.length)return o;const r=await e.provideReferences(t,i,{includeDeclaration:!1},s);return r&&1===r.length?r:o}))}async function m(e){const t=await e(),i=new l.oQ(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}(0,r.sb)("_executeDefinitionProvider",((e,t,i)=>{const n=h(e.get(a.p).definitionProvider,t,i,s.T.None);return m((()=>n))})),(0,r.sb)("_executeTypeDefinitionProvider",((e,t,i)=>{const n=g(e.get(a.p).typeDefinitionProvider,t,i,s.T.None);return m((()=>n))})),(0,r.sb)("_executeDeclarationProvider",((e,t,i)=>{const n=c(e.get(a.p).declarationProvider,t,i,s.T.None);return m((()=>n))})),(0,r.sb)("_executeReferenceProvider",((e,t,i)=>{const n=p(e.get(a.p).referenceProvider,t,i,!1,s.T.None);return m((()=>n))})),(0,r.sb)("_executeImplementationProvider",((e,t,i)=>{const n=u(e.get(a.p).implementationProvider,t,i,s.T.None);return m((()=>n))}))},18519:(e,t,i)=>{"use strict";i.d(t,{yN:()=>c});var n=i(39706),s=i(53186),o=i(90388);function r(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=r(e.event,t.triggerModifier),this.hasSideBySideModifier=r(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=r(e,t.triggerModifier)}}class d{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?o.dz?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):o.dz?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}class c extends s.JT{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.Q5),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.Q5),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.Q5),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=null!==(i=null===t||void 0===t?void 0:t.extractLineNumberFromMouseEvent)&&void 0!==i?i:e=>e.target.position?e.target.position.lineNumber:0,this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},76198:(e,t,i)=>{"use strict";i.d(t,{S:()=>S});var n,s=i(53372),o=i(16015),r=i(73971),a=i(53186),l=i(8037),d=i(60548),h=i(28928),c=i(91342),u=i(43537),g=i(18519),p=i(60737),m=i(5887),f=i(47116),_=i(67069),v=i(18277),b=i(53869),C=i(13277),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};let S=n=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new a.SL,this.toUnhookForKeyboard=new a.SL,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new g.yN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown((e=>{let[t,i]=e;this.startFindDefinitionFromMouse(t,null!==i&&void 0!==i?i:void 0)}))),this.toUnhook.add(s.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,o.dL)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(s.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(n.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new l.yy(this.editor,15);let a;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,s.PG)((t=>this.findDefinition(e,t)));try{a=await this.previousPromise}catch(c){return void(0,o.dL)(c)}if(!a||!a.length||!n.validate(this.editor))return void this.removeLinkDecorations();const d=a[0].originSelectionRange?h.e.lift(a[0].originSelectionRange):new h.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(a.length>1){let e=d;for(const{originSelectionRange:t}of a)t&&(e=h.e.plusRange(e,t));this.addDecoration(e,(new r.W5).appendText(m.NC("multipleResults","Click to show {0} definitions.",a.length)))}else{const e=a[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:n}=e.range;if(n<1||n>i.getLineCount())return void t.dispose();const s=this.getPreviewValue(i,n,e),o=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(d,s?(new r.W5).appendCodeblock(o||"",s):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let s=i.range;s.endLineNumber-s.startLineNumber>=n.MAX_SOURCE_PREVIEW_LINES&&(s=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,s)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let s=t+1;s<i.endLineNumber;s++){const t=e.getLineFirstNonWhitespaceColumn(s);n=Math.min(n,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${n-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),s=Math.min(e.getLineCount(),t+n.MAX_SOURCE_PREVIEW_LINES);let o=t+1;for(;o<s;o++){if(i===e.getLineFirstNonWhitespaceColumn(o))break}return new h.e(t,1,o+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){var i;return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!((null===(i=e.target.detail.injectedText)||void 0===i?void 0:i.options)instanceof C.HS)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.nD)(this.languageFeaturesService.definitionProvider,i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(88)&&!this.isInPeekEditor(e);return new _.BT({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.i6);return p.Jy.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=n=y([w(1,u.S),w(2,c.O),w(3,b.p)],S),(0,d._K)(S.ID,S,2)},6823:(e,t,i)=>{"use strict";i.d(t,{J:()=>ue});var n,s=i(53372),o=i(16015),r=i(17344),a=i(53186),l=i(74246),d=i(74633),h=i(28928),c=i(60737),u=i(5887),g=i(94943),p=i(30600),m=i(47116),f=i(87775),_=i(85412),v=i(35412),b=i(61758),C=i(87650),y=i(37080),w=i(76595),S=i(41090),x=i(63932),L=i(39706),k=i(32060),D=i(30506),N=i(2822),E=i(13277),T=i(5580),I=i(76326),M=i(91342),A=i(43537),R=i(45337),O=i(24504),P=i(83172),F=i(34835),B=i(25371),V=i(60297),W=i(93617),H=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}};let j=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof y.oQ||e instanceof y.F2}getChildren(e){if(e instanceof y.oQ)return e.groups;if(e instanceof y.F2)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};j=H([z(0,A.S)],j);class U{getHeight(){return 23}getTemplateId(e){return e instanceof y.F2?G.id:Z.id}}let K=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof y.WX){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,D.EZ)(e.uri)}};K=H([z(0,B.d)],K);class q{getId(e){return e instanceof y.WX?e.id:e.uri}}let $=class extends a.JT{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new P.g(i,{supportHighlights:!0})),this.badge=new R.Z(w.R3(i,w.$(".count")),{},W.ku),e.appendChild(i)}set(e,t){const i=(0,D.XX)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,u.NC)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,u.NC)("referenceCount","{0} reference",n))}};$=H([z(1,V.e)],$);let G=n=class{constructor(e){this._instantiationService=e,this.templateId=n.id}renderTemplate(e){return this._instantiationService.createInstance($,e)}renderElement(e,t,i){i.set(e.element,(0,F.mB)(e.filterData))}disposeTemplate(e){e.dispose()}};G.id="FileReferencesRenderer",G=n=H([z(0,f.TG)],G);class Y extends a.JT{constructor(e){super(),this.label=this._register(new O.q(e))}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!F.CL.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,F.mB)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,D.EZ)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Z{constructor(){this.templateId=Z.id}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}Z.id="OneReferenceRenderer";class Q{getWidgetAriaLabel(){return(0,u.NC)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var X=i(46673),J=i(40938),ee=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},te=function(e,t){return function(i,n){t(i,n,e)}};class ie{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.SL,this._callOnModelChange=new a.SL,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n];this._decorationIgnoreSet.has(s.id)||s.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:s.range,options:ie.DecorationOptions}),i.push(n))}this._editor.changeDecorations((n=>{const s=n.deltaDecorations([],t);for(let t=0;t<s.length;t++)this._decorations.set(s[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,n]of this._decorations){const s=t.getDecorationRange(i);if(!s)continue;let o=!1;if(!h.e.equalsRange(s,n.range)){if(h.e.spansMultipleLines(s))o=!0;else{n.range.endColumn-n.range.startColumn!==s.endColumn-s.startColumn&&(o=!0)}o?(this._decorationIgnoreSet.add(n.id),e.push(i)):n.range=s}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}ie.DecorationOptions=E.qx.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class ne{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(n){}return{ratio:t||.7,heightInLines:i||18}}}class se extends v.ls{}let oe=class extends c.vk{constructor(e,t,i,n,s,o,r,l,d,h,c,u){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},o),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=s,this._instantiationService=o,this._peekViewService=r,this._uriLabel=l,this._undoRedoService=d,this._keybindingService=h,this._languageService=c,this._languageConfigurationService=u,this._disposeOnNewModel=new a.SL,this._callOnDispose=new a.SL,this._onDidSelectReference=new L.Q5,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new w.Ro(0,0),this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.B9)(this._preview),(0,a.B9)(this._previewNotAvailableMessage),(0,a.B9)(this._tree),(0,a.B9)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(c.SC)||x.Il.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(c.KY)||x.Il.transparent,primaryHeadingColor:e.getColor(c.IH),secondaryHeadingColor:e.getColor(c.R7)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=w.R3(e,w.$("div.messages")),w.Cp(this._messageContainer),this._splitView=new S.z(e,{orientation:1}),this._previewContainer=w.R3(e,w.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(N.H,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),w.Cp(this._previewContainer),this._previewNotAvailableMessage=new E.yO(u.NC("missingPreviewMessage","no preview available"),I.bd,E.yO.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=w.R3(e,w.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Q,keyboardNavigationLabelProvider:this._instantiationService.createInstance(K),identityProvider:new q,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:c.M8}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(w.mu(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(se,"ReferencesWidget",this._treeContainer,new U,[this._instantiationService.createInstance(G),this._instantiationService.createInstance(Z)],this._instantiationService.createInstance(j),t),this._splitView.addView({onDidChange:L.ju.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},S.M.Distribute),this._splitView.addView({onDidChange:L.ju.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},S.M.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof y.WX&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),w.Cp(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new w.Ro(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.NC("noResults","No results"),w.$Z(this._messageContainer),Promise.resolve(void 0)):(w.Cp(this._messageContainer),this._decorationsManager=new ie(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),w.$Z(this._treeContainer),w.$Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof y.WX?e:e instanceof y.F2&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==k.lg.inMemory?this.setTitle((0,D.Hx)(e.uri),this._uriLabel.getUriLabel((0,D.XX)(e.uri))):this.setTitle(u.NC("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const n=await i;if(!this._model)return void n.dispose();(0,a.B9)(this._previewModelReference);const s=n.object;if(s){const t=this._preview.getModel()===s.textEditorModel?0:1,i=h.e.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}};oe=ee([te(3,X.XE),te(4,A.S),te(5,f.TG),te(6,c.Fw),te(7,V.e),te(8,J.tJ),te(9,B.d),te(10,M.O),te(11,T.c_)],oe);var re,ae=i(35770),le=i(48495),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};const ce=new m.uy("referenceSearchVisible",!1,u.NC("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ue=re=class{static get(e){return e.getContribution(re.ID)}constructor(e,t,i,n,s,o,r,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=o,this._storageService=r,this._configurationService=l,this._disposables=new a.SL,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const s="peekViewLayout",o=ne.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oe,this._editor,this._defaultTreeKeyboardSupport,o),this._widget.setTitle(u.NC("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.NC("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new d.L(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),o=this._widget.isPreviewEditorFocused();await this._widget.setSelection(n),await this._gotoReference(n,!1),s?this._editor.focus():this._widget&&o&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;null===(i=this._widget)||void 0===i||i.hide(),this._ignoreModelChangeEvent=!0;const n=h.e.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{var t;if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(n),this._widget.focusOnReferenceTree();else{const i=re.get(e),o=this._model.clone();this.closeWidget(),e.focus(),null===i||void 0===i||i.toggleWidget(n,(0,s.PG)((e=>Promise.resolve(o))),null!==(t=this._peekMode)&&void 0!==t&&t)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,o.dL)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function ge(e,t){const i=(0,c.rc)(e);if(!i)return;const n=ue.get(i);n&&t(n)}ue.ID="editor.contrib.referencesController",ue=re=de([he(2,m.i6),he(3,l.$),he(4,b.lT),he(5,f.TG),he(6,C.Uy),he(7,p.Ui)],ue),_.W.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,r.gx)(2089,60),when:m.Ao.or(ce,c.Jy.inPeekEditor),handler(e){ge(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.W.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.Ao.or(ce,c.Jy.inPeekEditor),handler(e){ge(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.W.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.Ao.or(ce,c.Jy.inPeekEditor),handler(e){ge(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.P.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.P.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.P.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.P.registerCommand("closeReferenceSearch",(e=>ge(e,(e=>e.closeWidget())))),_.W.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.Ao.and(c.Jy.inPeekEditor,m.Ao.not("config.editor.stablePeek"))}),_.W.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.Ao.and(ce,m.Ao.not("config.editor.stablePeek"),m.Ao.or(ae.u.editorTextFocus,le.Ul.negate()))}),_.W.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.Ao.and(ce,v.CQ,v.PS.negate(),v.uJ.negate()),handler(e){var t;const i=null===(t=e.get(v.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.WX&&ge(e,(e=>e.revealReference(i[0])))}}),_.W.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.Ao.and(ce,v.CQ,v.PS.negate(),v.uJ.negate()),handler(e){var t;const i=null===(t=e.get(v.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.WX&&ge(e,(e=>e.openReference(i[0],!0,!0)))}}),g.P.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(v.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.WX&&ge(e,(e=>e.openReference(i[0],!1,!0)))}))},37080:(e,t,i)=>{"use strict";i.d(t,{F2:()=>p,WX:()=>u,oQ:()=>m});var n=i(16015),s=i(39706),o=i(30441),r=i(53186),a=i(38079),l=i(30506),d=i(78701),h=i(28928),c=i(5887);class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=o.a.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,c.NC)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,c.NC)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:o,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:s-t}),l=new h.e(n,a.startColumn,n,s),d=new h.e(o,r,o,1073741824),c=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:c+u+i.getValueInRange(d).replace(/\s+$/,""),highlight:{start:c.length,end:c.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.Y9}dispose(){(0,r.B9)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,c.NC)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.EZ)(this.uri),this.uri.fsPath):(0,c.NC)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.EZ)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,n.dL)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new s.Q5,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(m._compareReferences);for(const s of e)if(n&&l.SF.isEqual(n.uri,s.uri,!0)||(n=new p(this,s.uri),this.groups.push(n)),0===n.children.length||0!==m._compareReferences(s,n.children[n.children.length-1])){const e=new u(i===s,n,s,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,r.B9)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,c.NC)("aria.result.0","No results found"):1===this.references.length?(0,c.NC)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,c.NC)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,c.NC)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,o=i.parent.groups.length;return 1===o||t&&n+1<s||!t&&n>0?(n=t?(n+1)%s:(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%o,i.parent.groups[n].children[0]):(n=(n+o-1)%o,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:d.Mh(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.e.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.SF.compare(e.uri,t.uri)||h.e.compareRangesUsingStarts(e.range,t.range)}}},48171:(e,t,i)=>{"use strict";i.d(t,{hT:()=>D,Hb:()=>I,mR:()=>M});var n=i(76595),s=i(22367),o=i(51833),r=i(53186),a=i(74633),l=i(28928),d=i(13277),h=i(18841),c=i(16902),u=i(82213),g=i(87775),p=i(25371),m=i(53372),f=i(35770),_=i(47116),v=i(10173);class b extends r.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new n.Ro(10,10);super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new v.f),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=n.Ro.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new n.Ro(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return(null===(e=this._contentPosition)||void 0===e?void 0:e.position)?a.L.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return n.i(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=n.i(t),o=n.D6(t.ownerDocument.body),r=s.top+i.top+i.height;return o.height-r-24}_findPositionPreference(e,t){var i,n;const s=Math.min(null!==(i=this._availableVerticalSpaceBelow(t))&&void 0!==i?i:1/0,e),o=Math.min(null!==(n=this._availableVerticalSpaceAbove(t))&&void 0!==n?n:1/0,e),r=Math.min(Math.max(o,s),e),a=Math.min(e,r);let l;return l=this._editor.getOption(60).above?a<=o?1:2:a<=s?2:1,1===l?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var C,y,w=i(30600),S=i(71940),x=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}};const k=n.$;let D=C=class extends r.JT{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(I,this._editor)),this._participants=[];for(const n of u.Ae.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._computer=new A(this._editor,this._participants),this._hoverOperation=this._register(new c.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new N(this._computer.anchor,t,e.isComplete))}))),this._register(n.mu(this._widget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.RW.onDidChange((()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,n,s){if(!this._widget.position||!this._currentResult)return!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0);return this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!(!e||!this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){if(this._widget.position&&this._currentResult&&this._currentResult.isComplete){if(!e.isComplete)return;if(this._computer.insistOnKeepingHoverVisible&&0===e.messages.length)return}this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=C.computeHoverRanges(this._editor,e.range,t),o=new r.SL,a=o.add(new M(this._keybindingService)),l=document.createDocumentFragment();let d=null;const h={fragment:l,statusBar:a,setColorPicker:e=>d=e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:e=>this._widget.setMinimumDimensions(e),hide:()=>this.hide()};for(const r of this._participants){const e=t.filter((e=>e.owner===r));e.length>0&&o.add(r.renderHoverParts(h,e))}const c=t.some((e=>e.isBeforeContent));if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const e=this._editor.createDecorationsCollection();e.set([{range:s,options:C._DECORATION_OPTIONS}]),o.add((0,r.OF)((()=>{e.clear()})))}this._widget.showAt(l,new T(e.initialMousePosX,e.initialMousePosY,d,i,n,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,c,o))}else o.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const i=e._getViewModel(),s=i.coordinatesConverter,o=s.convertModelRangeToViewRange(t),r=new a.L(o.startLineNumber,i.getLineMinColumn(o.startLineNumber));n=s.convertViewPositionToModelPosition(r).column}const s=t.startLineNumber;let o=t.startColumn,r=i[0].range,d=null;for(const a of i)r=l.e.plusRange(r,a.range),a.range.startLineNumber===s&&a.range.endLineNumber===s&&(o=Math.max(Math.min(o,a.range.startColumn),n)),a.forceShowAtRange&&(d=a.range);return{showAtPosition:d?d.getStartPosition():new a.L(s,t.startColumn),showAtSecondaryPosition:d?d.getStartPosition():new a.L(s,o),highlightRange:r}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const i=n.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;if(6===i.type&&t.push(new u.Qj(0,i.range,e.event.posx,e.event.posy)),7===i.type){const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<n&&t.push(new u.Qj(0,i.range,e.event.posx,e.event.posy))}return 0===t.length?this._startShowingOrUpdateHover(null,0,0,!1,e):(t.sort(((e,t)=>t.priority-e.priority)),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new u.Qj(0,e,void 0,void 0),t,i,n,null)}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};D._DECORATION_OPTIONS=d.qx.register({description:"content-hover-highlight",className:"hoverHighlight"}),D=C=x([L(1,g.TG),L(2,p.d)],D);class N{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.messages.length?this:new E(this,this.anchor,t,this.isComplete)}}class E extends N{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class T{constructor(e,t,i,n,s,o,r,a,l,d){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=n,this.showAtSecondaryPosition=s,this.preferAbove=o,this.stoleFocus=r,this.source=a,this.isBeforeContent=l,this.disposables=d,this.closestMouseDistance=void 0}}let I=y=class extends b{get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}get isVisibleFromKeyboard(){var e;return 1===(null===(e=this._visibleData)||void 0===e?void 0:e.source)}get isVisible(){var e;return null!==(e=this._hoverVisibleKey.get())&&void 0!==e&&e}get isFocused(){var e;return null!==(e=this._hoverFocusedKey.get())&&void 0!==e&&e}constructor(e,t,i,o,r){const a=e.getOption(67)+8,l=new n.Ro(150,a);super(e,l),this._configurationService=i,this._accessibilityService=o,this._keybindingService=r,this._hover=this._register(new s.c8),this._minimumSize=l,this._hoverVisibleKey=f.u.hoverVisible.bindTo(t),this._hoverFocusedKey=f.u.hoverFocused.bindTo(t),n.R3(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const d=this._register(n.go(this._resizableNode.domNode));this._register(d.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(d.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),null===(e=this._visibleData)||void 0===e||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return y.ID}static _applyDimensions(e,t,i){const n="number"===typeof t?`${t}px`:t,s="number"===typeof i?`${i}px`:i;e.style.width=n,e.style.height=s}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return y._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return y._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n="number"===typeof t?`${t}px`:t,s="number"===typeof i?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=s}_setHoverWidgetMaxDimensions(e,t){y._applyMaxDimensions(this._hover.contentsDomNode,e,t),y._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){const e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){const e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,i-10))}_updateResizableNodeMaxDimensions(){var e,t;const i=null!==(e=this._findMaximumRenderingWidth())&&void 0!==e?e:1/0,s=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._resizableNode.maxSize=new n.Ro(i,s),this._setHoverWidgetMaxDimensions(i,s)}_resize(e){var t,i;y._lastDimensions=new n.Ro(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),null===(i=null===(t=this._visibleData)||void 0===t?void 0:t.colorPicker)||void 0===i||i.layout()}_findAvailableSpaceVertically(){var e;const t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition;if(t)return 1===this._positionPreference?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),this._hasHorizontalScrollbar()&&(t+=10),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return n.D6(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if("undefined"===typeof this._visibleData.initialMousePosX||"undefined"===typeof this._visibleData.initialMousePosY)return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=n.i(this.getDomNode());"undefined"===typeof this._visibleData.closestMouseDistance&&(this._visibleData.closestMouseDistance=R(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const s=R(e,t,i.left,i.top,i.width,i.height);return!(s>this._visibleData.closestMouseDistance+4)&&(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,s),!0)}_setHoverData(e){var t;null===(t=this._visibleData)||void 0===t||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,y._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,y._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[null!==(e=this._positionPreference)&&void 0!==e?e:1]}:null}showAt(e,t){var i,o,r,a;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const l=n.wn(this._hover.containerDomNode),d=t.showAtPosition;this._positionPreference=null!==(i=this._findPositionPreference(l,d))&&void 0!==i?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),null===(o=t.colorPicker)||void 0===o||o.layout();const h=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,s.uX)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null!==(a=null===(r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===r?void 0:r.getAriaLabel())&&void 0!==a?a:"");h&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+h)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new n.Ro(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;const i=this._hover.containerDomNode,s=this._hover.contentsDomNode,o=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._setContainerDomNodeDimensions(n.w(i),Math.min(o,e)),this._setContentsDomNodeDimensions(n.w(s),Math.min(o,e-10))}setMinimumDimensions(e){this._minimumSize=new n.Ro(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new n.Ro(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=n.wn(t),s=n.w(t);if(this._resizableNode.layout(i,s),this._setHoverWidgetDimensions(s,i),i=n.wn(t),s=n.w(t),this._contentWidth=s,this._updateMinimumWidth(),this._resizableNode.layout(i,s),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(i)),null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition){const e=n.wn(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};I.ID="editor.contrib.resizableContentHoverWidget",I._lastDimensions=new n.Ro(0,0),I=y=x([L(1,_.i6),L(2,w.Ui),L(3,S.F),L(4,p.d)],I);let M=class extends r.JT{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=k("div.hover-row.status-bar"),this.actionsElement=n.R3(this.hoverElement,k("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(s.Sr.render(this.actionsElement,e,i))}append(e){const t=n.R3(this.actionsElement,e);return this._hasContent=!0,t}};M=x([L(0,p.d)],M);class A{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,o=e.range.endLineNumber===n?e.range.endColumn:s;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>o)return!1}else if(i>t.range.startColumn||t.range.endColumn>o)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return m.Aq.EMPTY;const i=A._getLineDecorations(this._editor,t);return m.Aq.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):m.Aq.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=A._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,o.kX)(t)}}function R(e,t,i,n,s,o){const r=i+s/2,a=n+o/2,l=Math.max(Math.abs(e-r)-s/2,0),d=Math.max(Math.abs(t-a)-o/2,0);return Math.sqrt(l*l+d*d)}},94293:(e,t,i)=>{"use strict";i.d(t,{R8:()=>d});var n=i(53372),s=i(76946),o=i(16015),r=i(60548),a=i(53869);class l{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function d(e,t,i,s){const r=e.ordered(t).map(((e,n)=>async function(e,t,i,n,s){try{const o=await Promise.resolve(e.provideHover(i,n,s));if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new l(e,o,t)}catch(r){(0,o.Cp)(r)}}(e,n,t,i,s)));return n.Aq.fromPromises(r).coalesce()}(0,r.sb)("_executeHoverProvider",((e,t,i)=>function(e,t,i,n){return d(e,t,i,n).map((e=>e.hover)).toPromise()}(e.get(a.p).hoverProvider,t,i,s.T.None)))},81584:(e,t,i)=>{"use strict";i.d(t,{c:()=>Z});var n=i(17344),s=i(53186),o=i(60548),r=i(28928),a=i(35770),l=i(91342),d=i(76198),h=i(48171),c=i(76595),u=i(51833),g=i(73971),p=i(35978),m=i(16902),f=i(22367),_=i(24032);const v=c.$;class b extends s.JT{constructor(e,t,i){super(),this._renderDisposeables=this._register(new s.SL),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new f.c8),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new p.$({editor:this._editor},t,i)),this._computer=new C(this._editor),this._hoverOperation=this._register(new m.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return b.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const e=v("div.hover-row.markdown-hover"),t=c.R3(e,v("div.hover-contents")),s=this._renderDisposeables.add(this._markdownRenderer.render(n.value));t.appendChild(s.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(67),o=i-n-(this._hover.containerDomNode.clientHeight-s)/2,r=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${r}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(o),0)}px`}}b.ID="editor.contrib.modesGlyphHoverWidget";class C{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=_.U.Center}computeSync(){var e,t;const i=e=>({value:e}),n=this._editor.getLineDecorations(this._lineNumber),s=[],o="lineNo"===this._laneOrLine;if(!n)return s;for(const r of n){const n=null!==(t=null===(e=r.options.glyphMargin)||void 0===e?void 0:e.position)&&void 0!==t?t:_.U.Center;if(!o&&n!==this._laneOrLine)continue;const a=o?r.options.lineNumberHoverMessage:r.options.glyphMarginHoverMessage;a&&!(0,g.CP)(a)&&s.push(...(0,u._2)(a).map(i))}return s}}var y=i(87775),w=i(34912),S=i(6009),x=i(46673),L=i(82213),k=i(58354),D=i(53372),N=i(16015),E=i(30506),T=i(53869),I=i(79316),M=i(87851),A=i(30796),R=i(33215),O=i(95851),P=i(5887),F=i(76390),B=i(97757),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};const H=c.$;class z{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const j={type:1,filter:{include:R.yN.QuickFix},triggerAction:R.aQ.QuickFixHover};let U=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),o=[];for(const a of t){const t=a.range.startLineNumber===n?a.range.startColumn:1,l=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new r.e(e.range.startLineNumber,t,e.range.startLineNumber,l);o.push(new z(this,h,d))}return o}renderHoverParts(e,t){if(!t.length)return s.JT.None;const i=new s.SL;t.forEach((t=>e.fragment.appendChild(this.renderMarkerHover(t,i))));const n=1===t.length?t[0]:t.sort(((e,t)=>F.ZL.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=H("div.hover-row"),n=c.R3(i,H("div.marker.hover-contents")),{source:s,message:o,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=c.R3(n,H("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=o,s||r)if(r&&"string"!==typeof r){const e=H("span");if(s){c.R3(e,H("span")).innerText=s}const i=c.R3(e,H("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(c.nm(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));c.R3(i,H("span")).innerText=r.value;const o=c.R3(n,e);o.style.opacity="0.6",o.style.paddingLeft="6px"}else{const e=c.R3(n,H("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=s&&r?`${s}(${r})`:s||`(${r})`}if((0,u.Of)(a))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of a){const e=c.R3(n,H("div"));e.style.marginTop="8px";const i=c.R3(e,H("a"));i.innerText=`${(0,E.EZ)(h)}(${u}, ${g}): `,i.style.cursor="pointer",t.add(c.nm(i,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(N.dL)})));const s=c.R3(e,H("span"));s.innerText=d,this._editor.applyFontInfo(s)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===F.ZL.Error||t.marker.severity===F.ZL.Warning||t.marker.severity===F.ZL.Info){const i=O.c.get(this._editor);i&&e.statusBar.addAction({label:P.NC("view problem","View Problem"),commandId:O.v.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const n=e.statusBar.append(H("div"));this.recentMarkerCodeActionsInfo&&(F.H0.makeKey(this.recentMarkerCodeActionsInfo.marker)===F.H0.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=P.NC("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?s.JT.None:(0,D.Vg)((()=>n.textContent=P.NC("checkingForQuickFixes","Checking for quick fixes...")),200,i);n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,s.OF)((()=>r.cancel()))),r.then((r=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(n.textContent=P.NC("noQuickFixes","No quick fixes available"));n.style.display="none";let a=!1;i.add((0,s.OF)((()=>{a||r.dispose()}))),e.statusBar.addAction({label:P.NC("quick fixes","Quick Fix..."),commandId:M.cz,run:t=>{a=!0;const i=A.G.get(this._editor),n=c.i(t);e.hide(),null===i||void 0===i||i.showCodeActions(j,r,{x:n.left,y:n.top,width:n.width,height:n.height})}})}),N.dL)}}getCodeActions(e){return(0,D.PG)((t=>(0,M.aI)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new r.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),j,B.Ex.None,t)))}};U=V([W(1,I.i),W(2,w.v),W(3,T.p)],U);var K,q=i(12062),$=i(25371),G=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Y=function(e,t){return function(i,n){t(i,n,e)}};let Z=K=class extends s.JT{constructor(e,t,i,n,o){super(),this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._keybindingService=o,this._listenersStore=new s.SL,this._hoverState={mouseDown:!1,contentHoverFocused:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new D.pY((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(K.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._hoverState.mouseDown=!0;const i=e.target;9!==i.type||i.detail!==h.Hb.ID?12===i.type&&i.detail===b.ID||(12!==i.type&&(this._hoverState.contentHoverFocused=!1),(null===(t=this._contentWidget)||void 0===t?void 0:t.widget.isResizing)||this._hideWidgets()):this._hoverState.contentHoverFocused=!0}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){var t,i;this._cancelScheduler();const n=e.event.browserEvent.relatedTarget;(null===(t=this._contentWidget)||void 0===t?void 0:t.widget.isResizing)||(null===(i=this._contentWidget)||void 0===i?void 0:i.containsNode(n))||this._hideWidgets()}_isMouseOverWidget(e){var t,i,n,s,o;const r=e.target,a=this._hoverSettings.sticky;return!(!a||9!==r.type||r.detail!==h.Hb.ID)||(!(!a||!(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(null===(i=e.event.browserEvent.view)||void 0===i?void 0:i.document.activeElement))||(null===(s=null===(n=e.event.browserEvent.view)||void 0===n?void 0:n.getSelection())||void 0===s?void 0:s.isCollapsed))||(!(a||9!==r.type||r.detail!==h.Hb.ID||!(null===(o=this._contentWidget)||void 0===o?void 0:o.isColorPickerVisible))||!(!a||12!==r.type||r.detail!==b.ID)))}_onEditorMouseMove(e){var t,i,n,s;if(this._mouseMoveEvent=e,(null===(t=this._contentWidget)||void 0===t?void 0:t.isFocused)||(null===(i=this._contentWidget)||void 0===i?void 0:i.isResizing))return;if(this._hoverState.mouseDown&&this._hoverState.contentHoverFocused)return;const o=this._hoverSettings.sticky;if(o&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isVisibleFromKeyboard))return;if(this._isMouseOverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const r=this._hoverSettings.hidingDelay;(null===(s=this._contentWidget)||void 0===s?void 0:s.isVisible)&&o&&r>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(r):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t,i,n,s;if(!e)return;const o=e.target,r=null===(t=o.element)||void 0===t?void 0:t.classList.contains("colorpicker-color-decoration"),a=this._editor.getOption(148),l=this._hoverSettings.enabled,d=this._hoverState.activatedByDecoratorClick;if(r&&("click"===a&&!d||"hover"===a&&!l||"clickAndHover"===a&&!l&&!d)||!r&&!l&&!d)return void this._hideWidgets();if(this._getOrCreateContentWidget().showsOrWillShow(e))null===(i=this._glyphWidget)||void 0===i||i.hide();else if(2===o.type&&o.position&&o.detail.glyphMarginLane){null===(n=this._contentWidget)||void 0===n||n.hide();this._getOrCreateGlyphWidget().startShowingAt(o.position.lineNumber,o.detail.glyphMarginLane)}else if(3===o.type&&o.position){null===(s=this._contentWidget)||void 0===s||s.hide();this._getOrCreateGlyphWidget().startShowingAt(o.position.lineNumber,"lineNo")}else this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=1===i.kind||2===i.kind&&"editor.action.showHover"===i.commandId&&(null===(t=this._contentWidget)||void 0===t?void 0:t.isVisible);5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&this._hoverState.contentHoverFocused&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible)||q.QG.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._hoverState.contentHoverFocused=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(h.hT,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=new b(this._editor,this._languageService,this._openerService)),this._glyphWidget}showContentHover(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}focus(){var e;null===(e=this._contentWidget)||void 0===e||e.focus()}scrollUp(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollUp()}scrollDown(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollDown()}scrollLeft(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollLeft()}scrollRight(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollRight()}pageUp(){var e;null===(e=this._contentWidget)||void 0===e||e.pageUp()}pageDown(){var e;null===(e=this._contentWidget)||void 0===e||e.pageDown()}goToTop(){var e;null===(e=this._contentWidget)||void 0===e||e.goToTop()}goToBottom(){var e;null===(e=this._contentWidget)||void 0===e||e.goToBottom()}get isColorPickerVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};var Q;Z.ID="editor.contrib.hover",Z=K=G([Y(1,y.TG),Y(2,w.v),Y(3,l.O),Y(4,$.d)],Z),function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(Q||(Q={}));class X extends o.R6{constructor(){super({id:"editor.action.showHover",label:P.NC({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[Q.NoAutoFocus,Q.FocusIfVisible,Q.AutoFocusImmediately],enumDescriptions:[P.NC("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),P.NC("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),P.NC("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:Q.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:a.u.editorTextFocus,primary:(0,n.gx)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=Z.get(t);if(!n)return;const s=null===i||void 0===i?void 0:i.focus;let o=Q.FocusIfVisible;Object.values(Q).includes(s)?o=s:"boolean"===typeof s&&s&&(o=Q.AutoFocusImmediately);const a=e=>{const i=t.getPosition(),s=new r.e(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==Q.NoAutoFocus?n.focus():a(l):a(l||o===Q.AutoFocusImmediately)}}class J extends o.R6{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:P.NC({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Z.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new r.e(n.lineNumber,n.column,n.lineNumber,n.column),o=d.S.get(t);if(!o)return;o.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(s,1,1,!0)}))}}class ee extends o.R6{constructor(){super({id:"editor.action.scrollUpHover",label:P.NC({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:16,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollUp()}}class te extends o.R6{constructor(){super({id:"editor.action.scrollDownHover",label:P.NC({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:18,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollDown()}}class ie extends o.R6{constructor(){super({id:"editor.action.scrollLeftHover",label:P.NC({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:15,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollLeft()}}class ne extends o.R6{constructor(){super({id:"editor.action.scrollRightHover",label:P.NC({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:17,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollRight()}}class se extends o.R6{constructor(){super({id:"editor.action.pageUpHover",label:P.NC({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const i=Z.get(t);i&&i.pageUp()}}class oe extends o.R6{constructor(){super({id:"editor.action.pageDownHover",label:P.NC({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const i=Z.get(t);i&&i.pageDown()}}class re extends o.R6{constructor(){super({id:"editor.action.goToTopHover",label:P.NC({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const i=Z.get(t);i&&i.goToTop()}}class ae extends o.R6{constructor(){super({id:"editor.action.goToBottomHover",label:P.NC({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const i=Z.get(t);i&&i.goToBottom()}}(0,o._K)(Z.ID,Z,2),(0,o.Qr)(X),(0,o.Qr)(J),(0,o.Qr)(ee),(0,o.Qr)(te),(0,o.Qr)(ie),(0,o.Qr)(ne),(0,o.Qr)(se),(0,o.Qr)(oe),(0,o.Qr)(re),(0,o.Qr)(ae),L.Ae.register(k.D5),L.Ae.register(U),(0,x.Ic)(((e,t)=>{const i=e.getColor(S.CNo);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))}))},16902:(e,t,i)=>{"use strict";i.d(t,{H:()=>l});var n=i(53372),s=i(16015),o=i(39706),r=i(53186);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class l extends r.JT{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new o.Q5),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new n.pY((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new n.pY((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new n.pY((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,n.zS)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,s.dL)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},82213:(e,t,i)=>{"use strict";i.d(t,{Ae:()=>o,Qj:()=>n,YM:()=>s});class n{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class s{constructor(e,t,i,n,s,o){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=o,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},58354:(e,t,i)=>{"use strict";i.d(t,{D5:()=>y,c:()=>w,hU:()=>C});var n=i(76595),s=i(51833),o=i(53372),r=i(73971),a=i(53186),l=i(35978),d=i(74633),h=i(28928),c=i(91342),u=i(94293),g=i(5887),p=i(30600),m=i(34912),f=i(53869),_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};const b=n.$;class C{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let y=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=3}createLoadingMessage(e){return new C(this,e.range,[(new r.W5).appendText(g.NC("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),a=[];let l=1e3;const d=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(117),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let m=!1;u>=0&&d>u&&e.range.startColumn>=u&&(m=!0,a.push(new C(this,e.range,[{value:g.NC("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,l++))),!m&&"number"===typeof p&&d>=p&&a.push(new C(this,e.range,[{value:g.NC("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,l++));let f=!1;for(const g of t){const t=g.range.startLineNumber===n?g.range.startColumn:1,i=g.range.endLineNumber===n?g.range.endColumn:o,d=g.options.hoverMessage;if(!d||(0,r.CP)(d))continue;g.options.beforeContentClassName&&(f=!0);const c=new h.e(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new C(this,c,(0,s._2)(d),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return o.Aq.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return o.Aq.EMPTY;const s=new d.L(e.range.startLineNumber,e.range.startColumn);return(0,u.R8)(this._languageFeaturesService.hoverProvider,n,s,i).filter((e=>!(0,r.CP)(e.hover.contents))).map((t=>{const i=t.hover.range?h.e.lift(t.hover.range):e.range;return new C(this,i,t.hover.contents,!1,t.ordinal)}))}renderHoverParts(e,t){return w(e,t,this._editor,this._languageService,this._openerService)}};function w(e,t,i,s,o){t.sort(((e,t)=>e.ordinal-t.ordinal));const d=new a.SL;for(const a of t)for(const t of a.contents){if((0,r.CP)(t))continue;const a=b("div.hover-row.markdown-hover"),h=n.R3(a,b("div.hover-contents")),c=d.add(new l.$({editor:i},s,o));d.add(c.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()})));const u=d.add(c.render(t));h.appendChild(u.element),e.fragment.appendChild(a)}return d}y=_([v(1,c.O),v(2,m.v),v(3,p.Ui),v(4,f.p)],y)},49116:(e,t,i)=>{"use strict";var n=i(53372),s=i(16015),o=i(8037),r=i(60548),a=i(28928),l=i(24854),d=i(35770),h=i(13277),c=i(69115),u=i(5887);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.Y(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.Y(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var i;null===(i=this.currentRequest)||void 0===i||i.cancel();const r=this.editor.getSelection(),d=this.editor.getModel();if(!d||!r)return;let h=r;if(h.startLineNumber!==h.endLineNumber)return;const c=new o.yy(this.editor,5),u=d.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=(0,n.PG)((e=>this.editorWorkerService.navigateValueSet(u,h,t))),this.currentRequest.then((t=>{var i;if(!t||!t.range||!t.value)return;if(!c.validate(this.editor))return;const o=a.e.lift(t.range);let r=t.range;const d=t.value.length-(h.endColumn-h.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},d>1&&(h=new l.Y(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+d-1));const u=new g(o,h,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),null===(i=this.decorationRemover)||void 0===i||i.cancel(),this.decorationRemover=(0,n.Vs)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(s.dL)})).catch(s.dL)):Promise.resolve(void 0)}};_.ID="editor.contrib.inPlaceReplaceController",_.DECORATION=h.qx.register({description:"in-place-replace",className:"valueSetReplacement"}),_=p=m([f(1,c.p)],_);class v extends r.R6{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.NC("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class b extends r.R6{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.NC("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,r._K)(_.ID,_,4),(0,r.Qr)(v),(0,r.Qr)(b)},48628:(e,t,i)=>{"use strict";var n=i(53186),s=i(78701),o=i(60548),r=i(80869),a=i(28928),l=i(35770),d=i(5580),h=i(23058),c=i(27847),u=i(5887),g=i(2033),p=i(62553),m=i(56154),f=i(42156),_=i(24854);function v(e,t,i,n,o){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const a=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!a)return[];for(n=Math.min(n,e.getLineCount());i<=n&&a.unIndentedLinePattern;){const t=e.getLineContent(i);if(!a.unIndentedLinePattern.test(t))break;i++}if(i>n-1)return[];const{tabSize:l,indentSize:d,insertSpaces:h}=e.getOptions(),c=(e,t)=>(t=t||1,r.U.shiftIndent(e,e.length+t,l,d,h)),u=(e,t)=>(t=t||1,r.U.unshiftIndent(e,e.length+t,l,d,h)),g=[];let p;const v=e.getLineContent(i);let b=v;if(void 0!==o&&null!==o){p=o;const e=s.V8(v);b=p+v.substring(e.length),a.decreaseIndentPattern&&a.decreaseIndentPattern.test(b)&&(p=u(p),b=p+v.substring(e.length)),v!==b&&g.push(m.h.replaceMove(new _.Y(i,1,i,e.length+1),(0,f.x)(p,d,h)))}else p=s.V8(v);let C=p;a.increaseIndentPattern&&a.increaseIndentPattern.test(b)?(C=c(C),p=c(p)):a.indentNextLinePattern&&a.indentNextLinePattern.test(b)&&(C=c(C));for(let r=++i;r<=n;r++){const t=e.getLineContent(r),i=s.V8(t),n=C+t.substring(i.length);a.decreaseIndentPattern&&a.decreaseIndentPattern.test(n)&&(C=u(C),p=u(p)),i!==C&&g.push(m.h.replaceMove(new _.Y(r,1,r,i.length+1),(0,f.x)(C,d,h))),a.unIndentedLinePattern&&a.unIndentedLinePattern.test(t)||(a.increaseIndentPattern&&a.increaseIndentPattern.test(n)?(p=c(p),C=p):C=a.indentNextLinePattern&&a.indentNextLinePattern.test(n)?c(C):p)}return g}var b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y extends o.R6{constructor(){super({id:y.ID,label:u.NC("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.u.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const o=new A(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}y.ID="editor.action.indentationToSpaces";class w extends o.R6{constructor(){super({id:w.ID,label:u.NC("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.u.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const o=new R(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}w.ID="editor.action.indentationToTabs";class S extends o.R6{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.eJ),n=e.get(h.q),s=t.getModel();if(!s)return;const o=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),r=s.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===o.tabSize&&e===r.tabSize?u.NC("configuredTabSize","Configured Tab Size"):e===o.tabSize?u.NC("defaultTabSize","Default Tab Size"):e===r.tabSize?u.NC("currentTabSize","Current Tab Size"):void 0}))),l=Math.min(s.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.NC({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&s&&!s.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?s.updateOptions({tabSize:t}):s.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class x extends S{constructor(){super(!1,!1,{id:x.ID,label:u.NC("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}x.ID="editor.action.indentUsingTabs";class L extends S{constructor(){super(!0,!1,{id:L.ID,label:u.NC("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}L.ID="editor.action.indentUsingSpaces";class k extends S{constructor(){super(!0,!0,{id:k.ID,label:u.NC("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}}k.ID="editor.action.changeTabDisplaySize";class D extends o.R6{constructor(){super({id:D.ID,label:u.NC("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(h.q),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}D.ID="editor.action.detectIndentation";class N extends o.R6{constructor(){super({id:"editor.action.reindentlines",label:u.NC("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.u.writable})}run(e,t){const i=e.get(d.c_),n=t.getModel();if(!n)return;const s=v(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class E extends o.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:u.NC("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.u.writable})}run(e,t){const i=e.get(d.c_),n=t.getModel();if(!n)return;const s=t.getSelections();if(null===s)return;const o=[];for(const r of s){let e=r.startLineNumber,t=r.endLineNumber;if(e!==t&&1===r.endColumn&&t--,1===e){if(e===t)continue}else e--;const s=v(n,i,e,t);o.push(...s)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class T{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(a.e.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let I=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new n.SL,this.callOnModel=new n.SL,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((e=>{let{range:t}=e;this.trigger(t)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(12),{tabSize:o,indentSize:l,insertSpaces:d}=i.getOptions(),h=[],u={shiftIndent:e=>r.U.shiftIndent(e,e.length+1,o,l,d),unshiftIndent:e=>r.U.unshiftIndent(e,e.length+1,o,l,d)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.n8)(n,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=s.V8(m),n=c.Y(e,o);if(n!==c.Y(t,o)){const e=c.J(n,o,d);h.push({range:new a.e(g,1,g,t.length+1),text:e}),m=e+m.substr(t.length)}else{const e=(0,p.tI)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},r=(0,p.n8)(n,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==r){const t=c.Y(r,o),n=c.Y(s.V8(i.getLineContent(g+1)),o);if(t!==n){const r=t-n;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),n=s.V8(e),l=c.Y(n,o)+r,u=c.J(l,o,d);u!==n&&h.push({range:new a.e(t,1,t,n.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new T(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let s="";for(let r=0;r<i;r++)s+=" ";const o=new RegExp(s,"gi");for(let r=1,l=e.getLineCount();r<=l;r++){let i=e.getLineFirstNonWhitespaceColumn(r);if(0===i&&(i=e.getLineMaxColumn(r)),1===i)continue;const l=new a.e(r,1,r,i),d=e.getValueInRange(l),h=n?d.replace(/\t/gi,s):d.replace(o,"\t");t.addEditOperation(l,h)}}I.ID="editor.contrib.autoIndentOnPaste",I=b([C(1,d.c_)],I);class A{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class R{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,o._K)(I.ID,I,2),(0,o.Qr)(y),(0,o.Qr)(w),(0,o.Qr)(x),(0,o.Qr)(L),(0,o.Qr)(k),(0,o.Qr)(D),(0,o.Qr)(N),(0,o.Qr)(E)},27847:(e,t,i)=>{"use strict";function n(e,t){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;return i}function s(e,t,i){e=e<0?0:e;let n="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)n+="\t"}for(let s=0;s<e;s++)n+=" ";return n}i.d(t,{J:()=>s,Y:()=>n})},40335:(e,t,i)=>{"use strict";var n=i(60548),s=i(82213),o=i(76595),r=i(51833),a=i(53372),l=i(76946),d=i(16015),h=i(53186),c=i(38079),u=i(47624),g=i(91387),p=i(76046),m=i(52432),f=i(67364),_=i(56154),v=i(28928),b=i(18841),C=i(24032),y=i(13277),w=i(14386),S=i(53869),x=i(43537),L=i(18519),k=i(74633),D=i(32060);class N{constructor(e,t){this.range=e,this.direction=t}}class E{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new E(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){var t,i,n;try{const s=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null===s||void 0===s?void 0:s.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null===s||void 0===s?void 0:s.label)&&void 0!==i?i:this.hint.label,this.hint.textEdits=null!==(n=null===s||void 0===s?void 0:s.textEdits)&&void 0!==n?n:this.hint.textEdits,this._isResolved=!0}catch(s){(0,d.Cp)(s),this._isResolved=!1}}}class T{static async create(e,t,i,n){const s=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const o=await e.provideInlayHints(t,i,n);((null===o||void 0===o?void 0:o.hints.length)||e.onDidChangeInlayHints)&&s.push([null!==o&&void 0!==o?o:T._emptyInlayHintList,e])}catch(o){(0,d.Cp)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new d.FU;return new T(i,s,t)}constructor(e,t,i){this._disposables=new h.SL,this.ranges=e,this.provider=new Set;const n=[];for(const[s,o]of t){this._disposables.add(s),this.provider.add(o);for(const e of s.hints){const t=i.validatePosition(e.position);let s="before";const r=T._getRangeAtPosition(i,t);let a;r.getStartPosition().isBefore(t)?(a=v.e.fromPositions(r.getStartPosition(),t),s="after"):(a=v.e.fromPositions(t,r.getEndPosition()),s="before"),n.push(new E(e,new N(a,s),o))}}this.items=n.sort(((e,t)=>k.L.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new v.e(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),o=t.column-1,r=s.findTokenIndexAtOffset(o);let a=s.getStartOffset(r),l=s.getEndOffset(r);return l-a===1&&(a===o&&r>1?(a=s.getStartOffset(r-1),l=s.getEndOffset(r-1)):l===o&&r<s.getCount()-1&&(a=s.getStartOffset(r+1),l=s.getEndOffset(r+1))),new v.e(i,a+1,i,l+1)}}T._emptyInlayHintList=Object.freeze({dispose(){},hints:[]});var I,M=i(31368),A=i(94943),R=i(23026),O=i(87775),P=i(61758),F=i(6009),B=i(46673),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};class H{constructor(){this._entries=new c.z6(50)}get(e){const t=H._key(e);return this._entries.get(t)}set(e,t){const i=H._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const z=(0,O.yh)("IInlayHintsCache");(0,R.z)(z,H,1);class j{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let K=I=class{static get(e){var t;return null!==(t=e.getContribution(I.ID))&&void 0!==t?t:void 0}constructor(e,t,i,n,s,o,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=o,this._instaService=r,this._disposables=new h.SL,this._sessionDisposables=new h.SL,this._decorationsMetadata=new Map,this._ruleFactory=new p.t7(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(141)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(141);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(o._q.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),r.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,h.OF)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const s=new Set,r=new a.pY((async()=>{const e=Date.now();null===n||void 0===n||n.dispose(!0),n=new l.A;const i=t.onWillDispose((()=>null===n||void 0===n?void 0:n.cancel()));try{const i=n.token,o=await T.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(r.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void o.dispose();for(const e of o.provider)"function"!==typeof e.onDidChangeInlayHints||s.has(e)||(s.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{r.isScheduled()||r.schedule()}))));this._sessionDisposables.add(o),this._updateHintsDecorators(o.ranges,o.items),this._cacheHintsForFastRestore(t)}catch(o){(0,d.dL)(o)}finally{n.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(r),this._sessionDisposables.add((0,h.OF)((()=>null===n||void 0===n?void 0:n.dispose(!0)))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&r.isScheduled()||r.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{null===n||void 0===n||n.cancel();const t=Math.max(r.delay,1250);r.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>r.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new h.SL,t=e.add(new L.yN(this._editor)),i=new h.SL;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),s=this._editor.getModel();if(!n||!s)return void i.clear();const o=new l.A;i.add((0,h.OF)((()=>o.dispose(!0)))),n.item.resolve(o.token),this._activeInlayHintPart=n.part.command||n.part.location?new U(n,t.hasTriggerModifier):void 0;const r=s.validatePosition(n.item.hint.position).lineNumber,a=new v.e(r,1,r,s.getLineMaxColumn(r)),d=this._getInlineHintsForRange(a);this._updateHintsDecorators([a],d),i.add((0,h.OF)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([a],d)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(M.K,e,this._editor,i.location):b.mY.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(l.T.None),(0,r.Of)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>_.h.replace(v.e.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(M.u,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.HS&&(null===i||void 0===i?void 0:i.attachedData)instanceof j?i.attachedData:void 0}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(n){this._notificationService.notify({severity:P.zb.Error,source:t.provider.displayName,message:n})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const e=new N(s,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(v.e.compareRangesUsingStarts)){const t=e.validateRange(new v.e(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&v.e.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=v.e.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){var i,n;const s=[],o=(e,t,i,n,o)=>{const r={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o};s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?r:void 0}}})},a=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(l/3|0)+"px",display:"inline-block"});o(e,i,"\u200a",t?C.RM.Right:C.RM.None)},{fontSize:l,fontFamily:d,padding:h,isUniform:c}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,d);let g={line:0,totalLen:0};for(const m of t){if(g.line!==m.anchor.range.startLineNumber&&(g={line:m.anchor.range.startLineNumber,totalLen:0}),g.totalLen>I._MAX_LABEL_LEN)continue;m.hint.paddingLeft&&a(m,!1);const e="string"===typeof m.hint.label?[{label:m.hint.label}]:m.hint.label;for(let t=0;t<e.length;t++){const n=e[t],s=0===t,a=t===e.length-1,d={fontSize:`${l}px`,fontFamily:`var(${u}), ${f.hL.fontFamily}`,verticalAlign:c?"baseline":"middle",unicodeBidi:"isolate"};(0,r.Of)(m.hint.textEdits)&&(d.cursor="default"),this._fillInColors(d,m.hint),(n.command||n.location)&&(null===(i=this._activeInlayHintPart)||void 0===i?void 0:i.part.item)===m&&this._activeInlayHintPart.part.index===t&&(d.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(d.color=(0,B.EN)(F._Yy),d.cursor="pointer")),h&&(s&&a?(d.padding=`1px ${0|Math.max(1,l/4)}px`,d.borderRadius=(l/4|0)+"px"):s?(d.padding=`1px 0 1px ${0|Math.max(1,l/4)}px`,d.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):a?(d.padding=`1px ${0|Math.max(1,l/4)}px 1px 0`,d.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):d.padding="1px 0 1px 0");let p=n.label;g.totalLen+=p.length;let _=!1;const v=g.totalLen-I._MAX_LABEL_LEN;if(v>0&&(p=p.slice(0,-v)+"\u2026",_=!0),o(m,this._ruleFactory.createClassNameRef(d),q(p),a&&!m.hint.paddingRight?C.RM.Right:C.RM.None,new j(m,t)),_)break}if(m.hint.paddingRight&&a(m,!0),s.length>I._MAX_DECORATORS)break}const p=[];for(const[r,m]of this._decorationsMetadata){const t=null===(n=this._editor.getModel())||void 0===n?void 0:n.getDecorationRange(r);t&&e.some((e=>e.containsRange(t)))&&(p.push(r),m.classNameRef.dispose(),this._decorationsMetadata.delete(r))}const _=m.Z.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(p,s.map((e=>e.decoration)));for(let i=0;i<t.length;i++){const e=s[i];this._decorationsMetadata.set(t[i],e)}})),_.restore(this._editor)}_fillInColors(e,t){t.kind===b.gl.Parameter?(e.backgroundColor=(0,B.EN)(F.phM),e.color=(0,B.EN)(F.HCL)):t.kind===b.gl.Type?(e.backgroundColor=(0,B.EN)(F.bKB),e.color=(0,B.EN)(F.hX8)):(e.backgroundColor=(0,B.EN)(F.PpC),e.color=(0,B.EN)(F.VVv))}_getLayoutInfo(){const e=this._editor.getOption(141),t=e.padding,i=this._editor.getOption(52),n=this._editor.getOption(49);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const o=e.fontFamily||n;return{fontSize:s,fontFamily:o,padding:t,isUniform:!t&&o===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function q(e){return e.replace(/[ \t]/g,"\xa0")}K.ID="editor.contrib.InlayHints",K._MAX_DECORATORS=1500,K._MAX_LABEL_LEN=43,K=I=V([W(1,S.p),W(2,w.A),W(3,z),W(4,A.H),W(5,P.lT),W(6,O.TG)],K),A.P.registerCommand("_executeInlayHintProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[s,o]=i;(0,u.p_)(g.o.isUri(s)),(0,u.p_)(v.e.isIRange(o));const{inlayHintsProvider:r}=e.get(S.p),a=await e.get(x.S).createModelReference(s);try{const e=await T.create(r,a.object.textEditorModel,[v.e.lift(o)],l.T.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{a.dispose()}}));var $=i(73971),G=i(91342),Y=i(94293),Z=i(58354),Q=i(30600),X=i(34912),J=i(5887),ee=i(90388),te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};class ne extends s.YM{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let se=class extends Z.D5{constructor(e,t,i,n,s,o){super(e,t,i,n,o),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!K.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.HS&&i.attachedData instanceof j?new ne(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof ne?new a.Aq((async t=>{const{part:n}=e;if(await n.item.resolve(i),i.isCancellationRequested)return;let s,o;if("string"===typeof n.item.hint.tooltip?s=(new $.W5).appendText(n.item.hint.tooltip):n.item.hint.tooltip&&(s=n.item.hint.tooltip),s&&t.emitOne(new Z.hU(this,e.range,[s],!1,0)),(0,r.Of)(n.item.hint.textEdits)&&t.emitOne(new Z.hU(this,e.range,[(new $.W5).appendText((0,J.NC)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof n.part.tooltip?o=(new $.W5).appendText(n.part.tooltip):n.part.tooltip&&(o=n.part.tooltip),o&&t.emitOne(new Z.hU(this,e.range,[o],!1,1)),n.part.location||n.part.command){let i;const s="altKey"===this._editor.getOption(78)?ee.dz?(0,J.NC)("links.navigate.kb.meta.mac","cmd + click"):(0,J.NC)("links.navigate.kb.meta","ctrl + click"):ee.dz?(0,J.NC)("links.navigate.kb.alt.mac","option + click"):(0,J.NC)("links.navigate.kb.alt","alt + click");n.part.location&&n.part.command?i=(new $.W5).appendText((0,J.NC)("hint.defAndCommand","Go to Definition ({0}), right click for more",s)):n.part.location?i=(new $.W5).appendText((0,J.NC)("hint.def","Go to Definition ({0})",s)):n.part.command&&(i=new $.W5(`[${(0,J.NC)("hint.cmd","Execute Command")}](${a=n.part.command,g.o.from({scheme:D.lg.command,path:a.id,query:a.arguments&&encodeURIComponent(JSON.stringify(a.arguments))}).toString()} "${n.part.command.title}") (${s})`,{isTrusted:!0})),i&&t.emitOne(new Z.hU(this,e.range,[i],!1,1e4))}var a;const l=await this._resolveInlayHintLabelPartHover(n,i);for await(const e of l)t.emitOne(e)})):a.Aq.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return a.Aq.EMPTY;const{uri:i,range:n}=e.part.location,s=await this._resolverService.createModelReference(i);try{const i=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,Y.R8)(this._languageFeaturesService.hoverProvider,i,new k.L(n.startLineNumber,n.startColumn),t).filter((e=>!(0,$.CP)(e.hover.contents))).map((t=>new Z.hU(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):a.Aq.EMPTY}finally{s.dispose()}}};se=te([ie(1,G.O),ie(2,X.v),ie(3,Q.Ui),ie(4,x.S),ie(5,S.p)],se),(0,n._K)(K.ID,K,1),s.Ae.register(se)},31368:(e,t,i)=>{"use strict";i.d(t,{K:()=>v,u:()=>_});var n=i(76595),s=i(51828),o=i(76946),r=i(94913),a=i(28928),l=i(43537),d=i(67069),h=i(60737),c=i(6178),u=i(94943),g=i(47116),p=i(79086),m=i(87775),f=i(61758);async function _(e,t,i,h){var g;const _=e.get(l.S),v=e.get(p.i),b=e.get(u.H),C=e.get(m.TG),y=e.get(f.lT);if(await h.item.resolve(o.T.None),!h.part.location)return;const w=h.part.location,S=[],x=new Set(c.BH.getMenuItems(c.eH.EditorContext).map((e=>(0,c.vr)(e)?e.command.id:(0,r.R)())));for(const n of d.Bj.all())x.has(n.desc.id)&&S.push(new s.aU(n.desc.id,c.U8.label(n.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await _.createModelReference(w.uri);try{const i=new d._k(e.object.textEditorModel,a.e.getStartPosition(w.range)),s=h.item.anchor.range;await C.invokeFunction(n.runEditorCommand.bind(n),t,i,s)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new s.Z0),S.push(new s.aU(e.id,e.title,void 0,!0,(async()=>{var t;try{await b.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(i){y.notify({severity:f.zb.Error,source:h.item.provider.displayName,message:i})}})))}const L=t.getOption(127);v.showContextMenu({domForShadowRoot:L&&null!==(g=t.getDomNode())&&void 0!==g?g:void 0,getAnchor:()=>{const e=n.i(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,n){const s=e.get(l.S),o=await s.createModelReference(n.uri);await i.invokeWithinContext((async e=>{const s=t.hasSideBySideModifier,r=e.get(g.i6),l=h.Jy.inPeekEditor.getValue(r),c=!s&&i.getOption(88)&&!l;return new d.BT({openToSide:s,openInPeek:c,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new d._k(o.object.textEditorModel,a.e.getStartPosition(n.range)),a.e.lift(n.range))})),o.dispose()}},37318:(e,t,i)=>{"use strict";i.d(t,{Np:()=>s,OW:()=>o,Ou:()=>n});const n="editor.action.inlineSuggest.commit",s="editor.action.inlineSuggest.showPrevious",o="editor.action.inlineSuggest.showNext"},28160:(e,t,i)=>{"use strict";i.d(t,{HL:()=>u,NY:()=>d,Vb:()=>l,bY:()=>c,s1:()=>h});var n=i(51833),s=i(78701),o=i(74633),r=i(28928),a=i(44053);class l{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.PY([...this.parts.map((e=>new a.At(r.e.fromPositions(new o.L(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class d{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,s.uq)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=n,this.parts=[new d(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,s.uq)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function c(e,t){return(0,n.fS)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof l&&t instanceof l||e instanceof h&&t instanceof h)&&e.equals(t))}},75118:(e,t,i)=>{"use strict";i.d(t,{rw:()=>x,Wd:()=>S});var n=i(58296),s=i(39706),o=i(53186),r=i(43704),a=i(78701),l=i(64295),d=i(67364),h=i(74633),c=i(28928),u=i(130),g=i(91342),p=i(24032),m=i(34415),f=i(21770),_=i(97869),v=i(28160),b=i(88782),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};const w="ghost-text";let S=class extends o.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.uh)(this,!1),this.currentTextModel=(0,r.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.nK)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const n=i instanceof v.s1?i.columnRange:void 0,s=[],o=[];function r(e,t){if(o.length>0){const i=o[o.length-1];t&&i.decorations.push(new f.Kp(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)o.push({content:i,decorations:t?[new f.Kp(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,d=0;for(const c of i.parts){let e=c.lines;void 0===l?(s.push({column:c.column,text:e[0],preview:c.preview}),e=e.slice(1)):r([a.substring(d,c.column-1)],void 0),e.length>0&&(r(e,w),void 0===l&&c.column<=a.length&&(l=c.column)),d=c.column-1}void 0!==l&&r([a.substring(d)],void 0);const h=void 0!==l?new b.rv(l,a.length+1):void 0;return{replacedRange:n,inlineTexts:s,additionalLines:o,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.nK)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const n of t.inlineTexts)i.push({range:c.e.fromPositions(new h.L(t.lineNumber,n.column)),options:{description:w,after:{content:n.text,inlineClassName:n.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:p.RM.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new x(this.editor,this.languageService.languageIdCodec,(0,r.nK)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,o.OF)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,b.RP)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};S=C([y(2,g.O)],S);class x extends o.JT{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.aq)("editorOptionChanged",s.ju.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(117)||e.hasChanged(99)||e.hasChanged(94)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.EH)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const o=Math.max(t.length,i);if(o>0){const i=document.createElement("div");!function(e,t,i,n,s){const o=n.get(33),r=n.get(117),h="none",c=n.get(94),g=n.get(51),p=n.get(50),f=n.get(67),v=new u.HT(1e4);v.appendString('<div class="suggest-preview-text">');for(let l=0,u=i.length;l<u;l++){const e=i[l],n=e.content;v.appendString('<div class="view-line'),v.appendString('" style="top:'),v.appendString(String(l*f)),v.appendString('px;width:1000000px;">');const u=a.$i(n),b=a.Ut(n),C=m.A.createEmpty(n,s);(0,_.d1)(new _.IJ(p.isMonospace&&!o,p.canUseHalfwidthRightwardsArrow,n,!1,u,b,0,C,e.decorations,t,0,p.spaceWidth,p.middotWidth,p.wsmiddotWidth,r,h,c,g!==d.n0.OFF,null),v),v.appendString("</div>")}v.appendString("</div>"),(0,l.N)(e,p);const b=v.build(),C=L?L.createHTML(b):b;e.innerHTML=C}(i,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:o,domNode:i,afterColumnAffinity:1})}}))}}const L=(0,n.Z)("editorGhostText",{createHTML:e=>e})},51842:(e,t,i)=>{"use strict";i.d(t,{f:()=>d});var n=i(43704),s=i(78701),o=i(32653),r=i(47116),a=i(53186),l=i(5887);class d extends a.JT{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=d.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=d.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=d.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=d.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,n.EH)((e=>{const t=this.model.read(e),i=null===t||void 0===t?void 0:t.state.read(e),n=!!(null===i||void 0===i?void 0:i.inlineCompletion)&&void 0!==(null===i||void 0===i?void 0:i.primaryGhostText)&&!(null===i||void 0===i?void 0:i.primaryGhostText.isEmpty());this.inlineCompletionVisible.set(n),(null===i||void 0===i?void 0:i.primaryGhostText)&&(null===i||void 0===i?void 0:i.inlineCompletion)&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,n.EH)((e=>{const t=this.model.read(e);let i=!1,n=!0;const r=null===t||void 0===t?void 0:t.primaryGhostText.read(e);if((null===t||void 0===t?void 0:t.selectedSuggestItem)&&r&&r.parts.length>0){const{column:e,lines:a}=r.parts[0],l=a[0];if(e<=t.textModel.getLineIndentColumn(r.lineNumber)){let e=(0,s.LC)(l);-1===e&&(e=l.length-1),i=e>0;const r=t.textModel.getOptions().tabSize;n=o.i.visibleColumnFromColumn(l,e+1,r)<r}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(n)})))}}d.inlineSuggestionVisible=new r.uy("inlineSuggestionVisible",!1,(0,l.NC)("inlineSuggestionVisible","Whether an inline suggestion is visible")),d.inlineSuggestionHasIndentation=new r.uy("inlineSuggestionHasIndentation",!1,(0,l.NC)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),d.inlineSuggestionHasIndentationLessThanTabSize=new r.uy("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,l.NC)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),d.suppressSuggestions=new r.uy("inlineSuggestionSuppressSuggestions",void 0,(0,l.NC)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))},37434:(e,t,i)=>{"use strict";var n=i(60548),s=i(82213),o=i(43704),r=i(82297),a=i(35770),l=i(37318),d=i(51842),h=i(76595),c=i(83945),u=i(53186),g=i(15968),p=i(74633),m=i(14386),f=i(53869),_=i(75118),v=i(12062),b=i(51833),C=i(91206),y=i(16015),w=i(78701),S=i(47624),x=i(56154),L=i(28928),k=i(24854),D=i(18841),N=i(5580),E=i(28160),T=i(76946),I=i(34835),M=i(56702),A=i(53372),R=i(38079),O=i(6872),P=i(41525),F=i(86649),B=i(74809),V=i(13549);class W{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var H=i(88782),z=i(86532);async function j(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:T.T.None,o=arguments.length>5?arguments[5]:void 0;const r=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new L.e(e.lineNumber,i.startColumn,e.lineNumber,n):L.e.fromPositions(e,e.with(void 0,n))}(t,i),a=e.all(i),l=new R.ri;for(const _ of a)_.groupId&&l.add(_.groupId,_);function d(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=l.get(i);for(const i of e)t.push(i)}return t}const h=new Map,c=new Set;function u(e,t){if(t=[...t,e],c.has(e))return t;c.add(e);try{const i=d(e);for(const e of i){const i=u(e,t);if(i)return i}}finally{c.delete(e)}}function g(e){const o=h.get(e);if(o)return o;const r=u(e,[]);r&&(0,y.Cp)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${r.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const a=new A.CR;return h.set(e,a.p),(async()=>{if(!r){const t=d(e);for(const e of t){const t=await g(e);if(t&&t.items.length>0)return}}try{return await e.provideInlineCompletions(i,t,n,s)}catch(o){return void(0,y.Cp)(o)}})().then((e=>a.complete(e)),(e=>a.error(e))),a.p}const p=await Promise.all(a.map((async e=>({provider:e,completions:await g(e)})))),m=new Map,f=[];for(const _ of p){const e=_.completions;if(!e)continue;const t=new K(e,_.provider);f.push(t);for(const n of e.items){const e=q.from(n,t,r,i,o);m.set(e.hash(),e)}}return new U(Array.from(m.values()),new Set(m.keys()),f)}class U{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class K{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class q{static from(e,t,i,n,s){let o,r,a=e.range?L.e.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,s&&e.completeBracketPairs){o=$(o,a.getStartPosition(),n,s);const t=o.length-e.insertText.length;0!==t&&(a=new L.e(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+t))}r=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(s&&e.completeBracketPairs){e.insertText.snippet=$(e.insertText.snippet,a.getStartPosition(),n,s);const i=e.insertText.snippet.length-t;0!==i&&(a=new L.e(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+i))}const i=(new z.Yj).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof z.xv?(o=i.children[0].value,r=void 0):(o=i.toString(),r={snippet:e.insertText.snippet,range:a})}else(0,M.vE)(e.insertText);return new q(o,e.command,a,o,r,e.additionalTextEdits||(0,H.He)(),e,t)}constructor(e,t,i,n,s,o,r,a){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=s,this.additionalTextEdits=o,this.sourceInlineCompletion=r,this.source=a,n=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new q(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function $(e,t,i,n){const s=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,o=i.tokenization.tokenizeLineWithEdit(t,s.length-(t.column-1),e),r=null===o||void 0===o?void 0:o.sliceAndInflate(t.column-1,s.length,0);if(!r)return e;const a=function(e,t){const i=new B.FE,n=new O.Z(i,(e=>t.getLanguageConfiguration(e))),s=new V.xH(new W([e]),n),o=(0,F.w)(s,[],void 0,!0);let r="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,P.Ii)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,P.Ii)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,P.Ii)(i,t.closingBracket.length);else{const e=n.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);r+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)r+=a.substring((0,P.F_)(i),(0,P.F_)((0,P.Ii)(i,t.length)));else if(4===t.kind)for(const n of t.children)e(n,i),i=(0,P.Ii)(i,n.length)}(o,P.xl),r}(r,n);return a}var G=i(44053),Y=i(1794),Z=i(78757);function Q(e,t,i){const n=i?e.range.intersectRanges(i):e.range;if(!n)return e;const s=t.getValueInRange(n,1),o=(0,w.Mh)(s,e.text),r=Z.A.ofText(s.substring(0,o)).addToPosition(e.range.getStartPosition()),a=e.text.substring(o),l=L.e.fromPositions(r,e.range.getEndPosition());return new G.At(l,a)}function X(e,t){return e.text.startsWith(t.text)&&(i=e.range,(n=t.range).getStartPosition().equals(i.getStartPosition())&&n.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,n}function J(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=Q(e,t);if(o.range.endLineNumber!==o.range.startLineNumber)return;const r=t.getLineContent(o.range.startLineNumber),a=(0,w.V8)(r).length;if(o.range.startColumn-1<=a){const e=(0,w.V8)(o.text).length,t=r.substring(o.range.startColumn-1,a),[i,n]=[o.range.getStartPosition(),o.range.getEndPosition()],s=i.column+t.length<=n.column?i.delta(0,t.length):n,l=L.e.fromPositions(s,n),d=o.text.startsWith(t)?o.text.substring(t.length):o.text.substring(e);o=new G.At(l,d)}const l=t.getValueInRange(o.range),d=function(e,t){if((null===ee||void 0===ee?void 0:ee.originalValue)===e&&(null===ee||void 0===ee?void 0:ee.newValue)===t)return null===ee||void 0===ee?void 0:ee.changes;{let i=ie(e,t,!0);if(i){const n=te(i);if(n>0){const s=ie(e,t,!1);s&&te(s)<n&&(i=s)}}return ee={originalValue:e,newValue:t,changes:i},i}}(l,o.text);if(!d)return;const h=o.range.startLineNumber,c=new Array;if("prefix"===i){const e=d.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=o.text.length-s;for(const g of d){const e=o.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===o.range.startLineNumber&&e<n.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,s=Math.max(g.modifiedStart,Math.min(t,u)),r=o.text.substring(g.modifiedStart,s),a=o.text.substring(s,Math.max(g.modifiedStart,t));r.length>0&&c.push(new E.NY(e,r,!1)),a.length>0&&c.push(new E.NY(e,a,!0))}return new E.Vb(h,c)}let ee;function te(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ie(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);n>t&&(t=n)}return t}const s=Math.max(n(e),n(t));function o(e){if(e<0)throw new Error("unexpected");return s+e+1}function r(e){let t=0,n=0;const s=new Int32Array(e.length);for(let r=0,a=e.length;r<a;r++)if(i&&"("===e[r]){const e=100*n+t;s[r]=o(2*e),t++}else if(i&&")"===e[r]){t=Math.max(t-1,0);const e=100*n+t;s[r]=o(2*e+1),0===t&&n++}else s[r]=e.charCodeAt(r);return s}const a=r(e),l=r(t);return new Y.Hs({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},se=function(e,t){return function(i,n){t(i,n,e)}};let oe=class extends u.JT{constructor(e,t,i,n,s){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=s,this._updateOperation=this._register(new u.XK),this.inlineCompletions=(0,o.DN)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,o.DN)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){var n,s;const r=new re(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(null===(n=this._updateOperation.value)||void 0===n?void 0:n.request.satisfies(r))return this._updateOperation.value.promise;if(null===(s=a.get())||void 0===s?void 0:s.request.satisfies(r))return Promise.resolve(!0);const l=!!this._updateOperation.value;this._updateOperation.clear();const d=new T.A,h=(async()=>{var n,s;if((l||t.triggerKind===D.bw.Automatic)&&await(n=this._debounceValue.get(this.textModel),s=d.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),n);s&&(t=s.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const h=new Date,c=await j(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,d.token,this.languageConfigurationService);if(d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new le(c,r,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!c.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,o.PS)((e=>{a.set(g,e)})),!0})(),c=new ae(r,d,h);return this._updateOperation.value=c,h}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;(null===(t=this._updateOperation.value)||void 0===t?void 0:t.request.context.selectedSuggestionInfo)&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};oe=ne([se(3,f.p),se(4,N.c_)],oe);class re{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&function(e,t,i){if(!e||!t)return e===t;return i(e,t)}(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,((e,t)=>e.equals(t)))&&(e.context.triggerKind===D.bw.Automatic||this.context.triggerKind===D.bw.Explicit)&&this.versionId===e.versionId}}class ae{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class le{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=i,this.versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=(0,o.nK)(this,(e=>{this.versionId.read(e);let t=!1;for(const i of this._inlineCompletions)t=t||i._updateRange(this.textModel);return t&&this._rangeVersionIdValue++,this._rangeVersionIdValue}));const s=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new de(e,s[t],this._rangeVersionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this.textModel.isDisposed()||this.textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new de(e,n,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}}class de{get forwardStable(){var e;return null!==(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)&&void 0!==e&&e}constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=i,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=null!==n&&void 0!==n?n:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new G.At(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,i){const n=Q(this._toFilterTextReplacement(i),e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(i).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const s=e.getValueInRange(n.range,1),o=n.text,r=Math.max(0,t.column-n.range.startColumn);let a=o.substring(0,r),l=o.substring(r),d=s.substring(0,r),h=s.substring(r);const c=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=c&&(d=d.trimStart(),0===d.length&&(h=h.trimStart()),a=a.trimStart(),0===a.length&&(l=l.trimStart())),a.startsWith(d)&&!!(0,I.Sy)(h,l)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new G.At(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return he(this._getUpdatedRange(e)).isBefore(he(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){const t=e.getDecorationRange(this.decorationId);return t?!this._updatedRange.equalsRange(t)&&(this._updatedRange=t,!0):(this._isValid=!1,!0)}}function he(e){return e.startLineNumber===e.endLineNumber?new p.L(1,1+e.endColumn-e.startColumn):new p.L(1+e.endLineNumber-e.startLineNumber,e.endColumn)}var ce,ue=i(67017),ge=i(94943),pe=i(87775),me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},fe=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ce||(ce={}));let _e=class extends u.JT{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,n,s,r,a,l,d,h,c,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this.textModelVersionId=i,this._positions=n,this._debounceValue=s,this._suggestPreviewEnabled=r,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=d,this._instantiationService=h,this._commandService=c,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(oe,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=(0,o.uh)(this,!1),this._forceUpdateSignal=(0,o.GN)("forceUpdate"),this._selectedInlineCompletionId=(0,o.uh)(this,void 0),this._primaryPosition=(0,o.nK)(this,(e=>{var t;return null!==(t=this._positions.read(e)[0])&&void 0!==t?t:new p.L(1,1)})),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ce.Redo,ce.Undo,ce.AcceptWord]),this._fetchInlineCompletions=(0,o.aK)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:D.bw.Automatic}),handleChange:(e,t)=>(e.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(e.change)?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateSignal)&&(t.inlineCompletionTriggerKind=e.change),!0)},((e,t)=>{this._forceUpdateSignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this.textModelVersionId.read(e);const i=this.selectedInlineCompletion.get(),n=t.preserveCurrentCompletion||(null===i||void 0===i?void 0:i.forwardStable)?i:void 0,s=this._source.suggestWidgetInlineCompletions.get(),r=this.selectedSuggestItem.read(e);if(s&&!r){const e=this._source.inlineCompletions.get();(0,o.PS)((t=>{(!e||s.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(s.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const a=this._primaryPosition.read(e),l={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:null===r||void 0===r?void 0:r.toSelectedSuggestionInfo()};return this._source.fetch(a,l,n)})),this._filteredInlineCompletionItems=(0,o.nK)(this,(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),n=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return n})),this.selectedInlineCompletionIndex=(0,o.nK)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),n=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===n?(this._selectedInlineCompletionId.set(void 0,void 0),0):n})),this.selectedInlineCompletion=(0,o.nK)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>null===e||void 0===e?void 0:e.request.context.triggerKind)),this.inlineCompletionsCount=(0,o.nK)(this,(e=>this.lastTriggerKind.read(e)===D.bw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,o.bk)({owner:this,equalityComparer:(e,t)=>e&&t?(0,E.bY)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{var t,i;const n=this.textModel,s=this.selectedSuggestItem.read(e);if(s){const o=Q(s.toSingleTextEdit(),n),r=this._computeAugmentation(o,e);if(!this._suggestPreviewEnabled.read(e)&&!r)return;const a=null!==(t=null===r||void 0===r?void 0:r.edit)&&void 0!==t?t:o,l=r?r.edit.text.length-o.text.length:0,d=this._suggestPreviewMode.read(e),h=this._positions.read(e),c=[a,...ve(this.textModel,h,a)],u=c.map(((e,t)=>J(e,n,d,h[t],l))).filter(S.$K);return{edits:c,primaryGhostText:null!==(i=u[0])&&void 0!==i?i:new E.Vb(a.range.endLineNumber,[]),ghostTexts:u,inlineCompletion:null===r||void 0===r?void 0:r.completion,suggestItem:s}}{if(!this._isActive.read(e))return;const t=this.selectedInlineCompletion.read(e);if(!t)return;const i=t.toSingleTextEdit(e),s=this._inlineSuggestMode.read(e),o=this._positions.read(e),r=[i,...ve(this.textModel,o,i)],a=r.map(((e,t)=>J(e,n,s,o[t],0))).filter(S.$K);if(!a[0])return;return{edits:r,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:t,suggestItem:void 0}}})),this.ghostTexts=(0,o.bk)({owner:this,equalityComparer:E.bY},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,o.bk)({owner:this,equalityComparer:E.HL},(e=>{const t=this.state.read(e);if(t)return null===t||void 0===t?void 0:t.primaryGhostText})),this._register((0,o.jx)(this._fetchInlineCompletions)),this._register((0,o.EH)((e=>{var t,i;const n=this.state.read(e),s=null===n||void 0===n?void 0:n.inlineCompletion;if((null===s||void 0===s?void 0:s.semanticId)!==(null===g||void 0===g?void 0:g.semanticId)&&(g=s,s)){const e=s.inlineCompletion,n=e.source;null===(i=(t=n.provider).handleItemDidShow)||void 0===i||i.call(t,n.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletions.get()}async triggerExplicitly(e){(0,o.c8)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateSignal.trigger(e,D.bw.Explicit)})),await this._fetchInlineCompletions.get()}stop(e){(0,o.c8)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),s=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(S.$K);return(0,C.Fr)(s,(n=>{let s=n.toSingleTextEdit(t);return s=Q(s,i,L.e.fromPositions(s.range.getStartPosition(),e.range.getEndPosition())),X(s,e)?{completion:n,edit:s}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){var t;if(e.getModel()!==this.textModel)throw new y.he;const i=this.state.get();if(!i||i.primaryGhostText.isEmpty()||!i.inlineCompletion)return;const n=i.inlineCompletion.toInlineCompletion(void 0);if(e.pushUndoStop(),n.snippetInfo)e.executeEdits("inlineSuggestion.accept",[x.h.replaceMove(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),null===(t=ue.f.get(e))||void 0===t||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1});else{const t=i.edits,s=be(t).map((e=>k.Y.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...t.map((e=>x.h.replaceMove(e.range,e.text))),...n.additionalTextEdits]),e.setSelections(s,"inlineCompletionAccept")}n.command&&n.source.addRef(),(0,o.PS)((e=>{this._source.clear(e),this._isActive.set(!1,e)})),n.command&&(await this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,y.Cp),n.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),n=this._languageConfigurationService.getLanguageConfiguration(i),s=new RegExp(n.wordDefinition.source,n.wordDefinition.flags.replace("g","")),o=t.match(s);let r=0;r=o&&void 0!==o.index?0===o.index?o[0].length:o.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<r&&(r=a.index+a[0].length),r}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new y.he;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const s=n.primaryGhostText,o=n.inlineCompletion.toInlineCompletion(void 0);if(o.snippetInfo||o.filterText!==o.insertText)return void await this.accept(e);const r=s.parts[0],a=new p.L(s.lineNumber,r.column),l=r.text,d=t(a,l);if(d===l.length&&1===s.parts.length)return void this.accept(e);const h=l.substring(0,d),c=this._positions.get(),u=c[0];o.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=L.e.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,n=new G.At(t,i),s=[n,...ve(this.textModel,c,n)],o=be(s).map((e=>k.Y.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",s.map((e=>x.h.replaceMove(e.range,e.text)))),e.setSelections(o,"inlineCompletionPartialAccept")}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){const t=L.e.fromPositions(o.range.getStartPosition(),Z.A.ofText(h).addToPosition(a)),n=e.getModel().getValueInRange(t,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,n.length,{kind:i})}}finally{o.source.removeRef()}}handleSuggestAccepted(e){var t,i;const n=Q(e.toSingleTextEdit(),this.textModel),s=this._computeAugmentation(n,void 0);if(!s)return;const o=s.completion.inlineCompletion;null===(i=(t=o.source.provider).handlePartialAccept)||void 0===i||i.call(t,o.source.inlineCompletions,o.sourceInlineCompletion,n.text.length,{kind:2})}};function ve(e,t,i){if(1===t.length)return[];const n=t[0],s=t.slice(1),o=i.range.getStartPosition(),r=i.range.getEndPosition(),a=e.getValueInRange(L.e.fromPositions(n,r)),l=(0,H.Bm)(n,o);if(l.lineNumber<1)return(0,y.dL)(new y.he(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${n.toString()} and ${o.toString()}`)),[];const d=function(e,t){let i="";const n=(0,w.Fw)(e);for(let s=t.lineNumber-1;s<n.length;s++)i+=n[s].substring(s===t.lineNumber-1?t.column-1:0);return i}(i.text,l);return s.map((t=>{const i=(0,H.QO)((0,H.Bm)(t,o),r),n=e.getValueInRange(L.e.fromPositions(t,i)),s=(0,w.Mh)(a,n),l=L.e.fromPositions(t,t.delta(0,s));return new G.At(l,d)}))}function be(e){const t=b._i.createSortPermutation(e,((e,t)=>L.e.compareRangesUsingStarts(e.range,t.range))),i=new G.PY(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}_e=me([fe(9,pe.TG),fe(10,ge.H),fe(11,N.c_)],_e);var Ce=i(39706),ye=i(32676),we=i(82148);class Se extends u.JT{get selectedItem(){return this._selectedItem}constructor(e,t,i,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,o.uh)(this,void 0),this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=we.n.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{(0,o.PS)((e=>this.checkModelVersion(e)));const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),a=r?Q(r,n):void 0;if(!a)return-1;const l=p.L.lift(t),d=i.map(((e,t)=>{const i=Q(xe.fromSuggestion(s,n,l,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:X(a,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),h=(0,C.dI)(d,(0,b.tT)((e=>e.prefixLength),b.fv));return h?h.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(Ce.ju.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=xe.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,(0,o.PS)((e=>{this.checkModelVersion(e),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,e)})))}getSuggestItemInfo(){const e=we.n.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();return t&&i&&n?xe.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=we.n.get(this.editor);null===e||void 0===e||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=we.n.get(this.editor);null===e||void 0===e||e.forceRenderingAbove()}}class xe{static fromSuggestion(e,t,i,n,s){let{insertText:o}=n.completion,r=!1;if(4&n.completion.insertTextRules){const e=(new z.Yj).parse(o);e.children.length<100&&ye.l.adjustWhitespace(t,i,!0,e),o=e.toString(),r=!0}const a=e.getOverwriteInfo(n,s);return new xe(L.e.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),o,n.completion.kind,r)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new D.ln(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new G.At(this.range,this.insertText)}}var Le,ke=i(5887),De=i(88622),Ne=i(30600),Ee=i(47116),Te=i(25371),Ie=i(92441),Me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ae=function(e,t){return function(i,n){t(i,n,e)}};let Re=Le=class extends u.JT{static get(e){return e.getContribution(Le.ID)}constructor(e,t,i,n,s,r,a,c,m){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=s,this._debounceService=r,this._languageFeaturesService=a,this._accessibilitySignalService=c,this._keybindingService=m,this.model=this._register((0,o.DN)("inlineCompletionModel",void 0)),this._textModelVersionId=(0,o.uh)(this,-1),this._positions=(0,o.uh)(this,[new p.L(1,1)]),this._suggestWidgetAdaptor=this._register(new Se(this.editor,(()=>{var e,t;return null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)}),(e=>this.updateObservables(e,ce.Other)),(e=>{(0,o.PS)((t=>{var i;this.updateObservables(t,ce.Other),null===(i=this.model.get())||void 0===i||i.handleSuggestAccepted(e)}))}))),this._enabled=(0,o.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._fontFamily=(0,o.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._ghostTexts=(0,o.nK)(this,(e=>{var t;const i=this.model.read(e);return null!==(t=null===i||void 0===i?void 0:i.ghostTexts.read(e))&&void 0!==t?t:[]})),this._stablizedGhostTexts=function(e,t){const i=(0,o.uh)("result",[]),n=[];return t.add((0,o.EH)((t=>{const s=e.read(t);(0,o.PS)((e=>{if(s.length!==n.length){n.length=s.length;for(let e=0;e<n.length;e++)n[e]||(n[e]=(0,o.uh)("item",s[e]));i.set([...n],e)}n.forEach(((t,i)=>t.set(s[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,Ie.Zg)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(_.Wd,this.editor,{ghostText:e,minReservedLineCount:(0,o.Dz)(0),targetTextModel:this.model.map((e=>null===e||void 0===e?void 0:e.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=(0,o.GN)(this),this._isReadonly=(0,o.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(91))),this._textModel=(0,o.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this._textModelIfWritable=(0,o.nK)((e=>this._isReadonly.read(e)?void 0:this._textModel.read(e))),this._register(new d.f(this._contextKeyService,this.model)),this._register((0,o.EH)((i=>{const n=this._textModelIfWritable.read(i);(0,o.PS)((i=>{if(this.model.set(void 0,i),this.updateObservables(i,ce.Other),n){const s=t.createInstance(_e,n,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,(0,o.rD)(e.onDidChangeConfiguration,(()=>e.getOption(118).preview)),(0,o.rD)(e.onDidChangeConfiguration,(()=>e.getOption(118).previewMode)),(0,o.rD)(e.onDidChangeConfiguration,(()=>e.getOption(62).mode)),this._enabled);this.model.set(s,i)}}))})));const f=this._register((0,h.aU)());this._register((0,o.EH)((e=>{const t=this._fontFamily.read(e);f.setStyle(""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`)})));const b=e=>{var t;return e.isUndoing?ce.Undo:e.isRedoing?ce.Redo:(null===(t=this.model.get())||void 0===t?void 0:t.isAcceptingPartially)?ce.AcceptWord:ce.Other};let C;this._register(e.onDidChangeModelContent((e=>(0,o.PS)((t=>this.updateObservables(t,b(e))))))),this._register(e.onDidChangeCursorPosition((e=>(0,o.PS)((t=>{var i;this.updateObservables(t,ce.Other),3!==e.reason&&"api"!==e.source||null===(i=this.model.get())||void 0===i||i.stop(t)}))))),this._register(e.onDidType((()=>(0,o.PS)((e=>{var t;this.updateObservables(e,ce.Other),this._enabled.get()&&(null===(t=this.model.get())||void 0===t||t.trigger(e))}))))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([g.wk.Tab.id,g.wk.DeleteLeft.id,g.wk.DeleteRight.id,l.Ou,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&(0,o.PS)((e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)}))}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||v.QG.dropDownVisible||(0,o.PS)((e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)}))}))),this._register((0,o.EH)((e=>{var t;const i=null===(t=this.model.read(e))||void 0===t?void 0:t.state.read(e);(null===i||void 0===i?void 0:i.suggestItem)?i.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,u.OF)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,o.nJ)({handleChange:(e,t)=>(e.didChange(this._playAccessibilitySignal)&&(C=void 0),!0)},(async e=>{this._playAccessibilitySignal.read(e);const t=this.model.read(e),i=null===t||void 0===t?void 0:t.state.read(e);if(t&&i&&i.inlineCompletion){if(i.inlineCompletion.semanticId!==C){C=i.inlineCompletion.semanticId;const e=t.textModel.getLineContent(i.primaryGhostText.lineNumber);this._accessibilitySignalService.playSignal(De.iP.inlineSuggestion).then((()=>{this.editor.getOption(8)&&this.provideScreenReaderUpdate(i.primaryGhostText.renderForScreenReader(e))}))}}else C=void 0}))),this._register(new v.oU(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let n;!t&&i&&this.editor.getOption(149)&&(n=(0,ke.NC)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),n?(0,c.Z9)(e+", "+n):(0,c.Z9)(e)}updateObservables(e,t){var i,n,s;const o=this.editor.getModel();this._textModelVersionId.set(null!==(i=null===o||void 0===o?void 0:o.getVersionId())&&void 0!==i?i:-1,e,t),this._positions.set(null!==(s=null===(n=this.editor.getSelections())||void 0===n?void 0:n.map((e=>e.getPosition())))&&void 0!==s?s:[new p.L(1,1)],e)}shouldShowHoverAt(e){var t;const i=null===(t=this.model.get())||void 0===t?void 0:t.primaryGhostText.get();return!!i&&i.parts.some((t=>e.containsPosition(new p.L(i.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._ghostTextWidgets.get()[0])||void 0===t?void 0:t.ownsViewZone(e))&&void 0!==i&&i}};Re.ID="editor.contrib.inlineCompletionsController",Re=Le=Me([Ae(1,pe.TG),Ae(2,Ee.i6),Ae(3,Ne.Ui),Ae(4,ge.H),Ae(5,m.A),Ae(6,f.p),Ae(7,De.IV),Ae(8,Te.d)],Re);var Oe=i(34042),Pe=i(6178);class Fe extends n.R6{constructor(){super({id:Fe.ID,label:ke.NC("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=Re.get(t);null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i||i.next()}}Fe.ID=l.OW;class Be extends n.R6{constructor(){super({id:Be.ID,label:ke.NC("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=Re.get(t);null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i||i.previous()}}Be.ID=l.Np;class Ve extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:ke.NC("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.u.writable})}async run(e,t){const i=Re.get(t);await(0,r.Hr)((async e=>{var t;await(null===(t=null===i||void 0===i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e)),null===i||void 0===i||i.playAccessibilitySignal(e)}))}}class We extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:ke.NC("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible)},menuOpts:[{menuId:Pe.eH.InlineSuggestionToolbar,title:ke.NC("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;const n=Re.get(t);await(null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextWord(n.editor))}}class He extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:ke.NC("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Pe.eH.InlineSuggestionToolbar,title:ke.NC("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;const n=Re.get(t);await(null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextLine(n.editor))}}class ze extends n.R6{constructor(){super({id:l.Ou,label:ke.NC("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:d.f.inlineSuggestionVisible,menuOpts:[{menuId:Pe.eH.InlineSuggestionToolbar,title:ke.NC("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Ee.Ao.and(d.f.inlineSuggestionVisible,a.u.tabMovesFocus.toNegated(),d.f.inlineSuggestionHasIndentationLessThanTabSize,Oe._y.Visible.toNegated(),a.u.hoverFocused.toNegated())}})}async run(e,t){var i;const n=Re.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}class je extends n.R6{constructor(){super({id:je.ID,label:ke.NC("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:d.f.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Re.get(t);(0,o.PS)((e=>{var t;null===(t=null===i||void 0===i?void 0:i.model.get())||void 0===t||t.stop(e)}))}}je.ID="editor.action.inlineSuggest.hide";class Ue extends Pe.Ke{constructor(){super({id:Ue.ID,title:ke.NC("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Pe.eH.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Ee.Ao.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Ne.Ui),n="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",n)}}Ue.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Ke=i(73971),qe=i(91342),$e=i(35978),Ge=i(71940),Ye=i(34912),Ze=i(57823),Qe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Xe=function(e,t){return function(i,n){t(i,n,e)}};class Je{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let et=class{constructor(e,t,i,n,s,o){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=s,this._telemetryService=o,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Re.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new s.YM(1e3,this,L.e.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Re.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new Je(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new u.SL,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&this.renderScreenReaderText(e,n,i);const s=n.controller.model.get(),r=this._instantiationService.createInstance(v.QG,this._editor,!1,(0,o.Dz)(null),s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]})));return e.fragment.appendChild(r.getDomNode()),s.triggerExplicitly(),i.add(r),i}renderScreenReaderText(e,t,i){const n=h.$,s=n("div.hover-row.markdown-hover"),r=h.R3(s,n("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new $e.$({editor:this._editor},this._languageService,this._openerService));i.add((0,o.EH)((n=>{var s;const o=null===(s=t.controller.model.read(n))||void 0===s?void 0:s.primaryGhostText.read(n);if(o){const t=this._editor.getModel().getLineContent(o.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{r.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=ke.NC("inlineSuggestionFollows","Suggestion:"),s=i.add(a.render((new Ke.W5).appendText(n).appendCodeblock("text",t)));r.replaceChildren(s.element)})(o.renderForScreenReader(t))}else h.mc(r)}))),e.fragment.appendChild(s)}};et=Qe([Xe(1,qe.O),Xe(2,Ye.v),Xe(3,Ge.F),Xe(4,pe.TG),Xe(5,Ze.b)],et),(0,n._K)(Re.ID,Re,3),(0,n.Qr)(Ve),(0,n.Qr)(Fe),(0,n.Qr)(Be),(0,n.Qr)(We),(0,n.Qr)(He),(0,n.Qr)(ze),(0,n.Qr)(je),(0,Pe.r1)(Ue),s.Ae.register(et)},12062:(e,t,i)=>{"use strict";i.d(t,{oU:()=>I,QG:()=>R});var n,s=i(76595),o=i(26031),r=i(23014),a=i(51828),l=i(51833),d=i(53372),h=i(61542),c=i(53186),u=i(43704),g=i(90388),p=i(73045),m=i(74633),f=i(18841),_=i(37318),v=i(5887),b=i(51887),C=i(31936),y=i(6178),w=i(94943),S=i(47116),x=i(79086),L=i(87775),k=i(25371),D=i(57823),N=i(54329),E=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};let I=class extends c.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.rD)(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.nK)(this,(e=>{var t,i,n;const s=null===(t=this.model.read(e))||void 0===t?void 0:t.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!s||0===s.parts.length)return this.sessionPosition=void 0,null;const o=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const r=new m.L(s.lineNumber,Math.min(o,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,u.gp)(((t,i)=>{const n=this.model.read(t);if(!n||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(R,this.editor,!0,this.position,n.selectedInlineCompletionIndex,n.inlineCompletionsCount,n.selectedInlineCompletion.map((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]}))));e.addContentWidget(s),i.add((0,c.OF)((()=>e.removeContentWidget(s)))),i.add((0,u.EH)((e=>{this.position.read(e)&&n.lastTriggerKind.read(e)!==f.bw.Explicit&&n.triggerExplicitly()})))})))}};I=E([T(2,L.TG)],I);const M=(0,N.q5)("inline-suggestion-hints-next",h.l.chevronRight,(0,v.NC)("parameterHintsNextIcon","Icon for show next parameter hint.")),A=(0,N.q5)("inline-suggestion-hints-previous",h.l.chevronLeft,(0,v.NC)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let R=n=class extends c.JT{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new a.aU(e,t,i,!0,(()=>this._commandService.executeCommand(e))),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let o=t;return s&&(o=(0,v.NC)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=o,n}constructor(e,t,i,o,r,h,c,g,m,f,b){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=o,this._suggestionCount=r,this._extraCommands=h,this._commandService=c,this.keybindingService=m,this._contextKeyService=f,this._menuService=b,this.id="InlineSuggestionHintsContentWidget"+n.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,s.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,s.h)("div@toolBar")]),this.previousAction=this.createCommandAction(_.Np,(0,v.NC)("previous","Previous"),p.k.asClassName(A)),this.availableSuggestionCountAction=new a.aU("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(_.OW,(0,v.NC)("next","Next"),p.k.asClassName(M)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(y.eH.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new d.pY((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new d.pY((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.lastCommands=[],this.toolBar=this._register(g.createInstance(F,this.nodes.toolBar,y.eH.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof y.U8)return g.createInstance(P,e,void 0);if(e===this.availableSuggestionCountAction){const t=new O(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{n._dropDownVisible=e}))),this._register((0,u.EH)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.EH)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.EH)((e=>{const t=this._extraCommands.read(e);if((0,l.fS)(this.lastCommands,t))return;this.lastCommands=t;const i=t.map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[n,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof y.U8&&i.push(e);i.length>0&&i.unshift(new a.Z0),this.toolBar.setAdditionalSecondaryActions(i)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};R._dropDownVisible=!1,R.id=0,R=n=E([T(6,w.H),T(7,L.TG),T(8,k.d),T(9,S.i6),T(10,y.co)],R);class O extends o.gU{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class P extends b.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,s.h)("div.keybinding").root;this._register(new r.e(t,g.OS,{disableTitle:!0,...r.F})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let F=class extends C.T{constructor(e,t,i,n,s,o,r,a){super(e,{resetMenu:t,...i},n,s,o,r,a),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,o,r;const a=[],l=[];(0,b.vr)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(s=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===s?void 0:s.shouldInlineSubmenu,null===(r=null===(o=this.options2)||void 0===o?void 0:o.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setPrependedPrimaryActions(e){(0,l.fS)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,l.fS)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};F=E([T(3,y.co),T(4,S.i6),T(5,x.i),T(6,k.d),T(7,D.b)],F)},88782:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>g,He:()=>d,QO:()=>u,RP:()=>c,rv:()=>h});var n=i(16015),s=i(53186),o=i(43704),r=i(74633),a=i(28928);const l=[];function d(){return l}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new n.he(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.e(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function c(e,t){const i=new s.SL,n=e.createDecorationsCollection();return i.add((0,o.UV)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function u(e,t){return new r.L(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new r.L(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},38259:(e,t,i)=>{"use strict";var n=i(60548),s=i(82213),o=i(35770);var r=i(53186),a=i(43704),l=i(56154),d=i(74633),h=i(28928),c=i(91342),u=i(24032),g=i(21770),p=i(75118),m=i(88782),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const v="inline-edit";let b=class extends r.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,a.uh)(this,!1),this.currentTextModel=(0,a.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,a.nK)(this,(e=>{var t;if(this.isDisposed.read(e))return;const i=this.currentTextModel.read(e);if(i!==this.model.targetTextModel.read(e))return;const n=this.model.ghostText.read(e);if(!n)return;let s=null===(t=this.model.range)||void 0===t?void 0:t.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const o=(!s||s.startLineNumber===s.endLineNumber)&&1===n.parts.length&&1===n.parts[0].lines.length,r=1===n.parts.length&&n.parts[0].lines.every((e=>0===e.length)),a=[],l=[];function d(e,t){if(l.length>0){const i=l[l.length-1];t&&i.decorations.push(new g.Kp(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)l.push({content:i,decorations:t?[new g.Kp(1,i.length+1,t,0)]:[]})}const h=i.getLineContent(n.lineNumber);let c,u=0;if(!r){for(const e of n.parts){let t=e.lines;s&&!o&&(d(t,v),t=[]),void 0===c?(a.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):d([h.substring(u,e.column-1)],void 0),t.length>0&&(d(t,v),void 0===c&&e.column<=h.length&&(c=e.column)),u=e.column-1}void 0!==c&&d([h.substring(u)],void 0)}const p=void 0!==c?new m.rv(c,h.length+1):void 0,f=o||!s?n.lineNumber:s.endLineNumber-1;return{inlineTexts:a,additionalLines:l,hiddenRange:p,lineNumber:f,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:i,range:s,isSingleLine:o,isPureRemove:r,backgroundColoring:this.model.backgroundColoring.read(e)}})),this.decorations=(0,a.nK)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n<i;n++){const i=t.range.startLineNumber+n,s=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),o=t.targetTextModel.getLineLastNonWhitespaceColumn(i),r=new h.e(i,s,i,o);e.push(r)}}else{const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n<i;n++){const i=t.range.startLineNumber+n,s=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),o=t.targetTextModel.getLineLastNonWhitespaceColumn(i),r=new h.e(i,s,i,o);e.push(r)}}const n=t.backgroundColoring?"inline-edit-remove backgroundColoring":"inline-edit-remove";for(const t of e)i.push({range:t,options:{inlineClassName:n,description:"inline-edit-remove"}})}for(const n of t.inlineTexts)i.push({range:h.e.fromPositions(new d.L(t.lineNumber,n.column)),options:{description:v,after:{content:n.text,inlineClassName:n.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:u.RM.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new p.rw(this.editor,this.languageService.languageIdCodec,(0,a.nK)((e=>{const t=this.uiState.read(e);return t&&!t.isPureRemove?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,r.OF)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,m.RP)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};b=f([_(2,c.O)],b);var C,y=i(47116),w=i(87775),S=i(18841),x=i(53869),L=i(76946),k=i(28160),D=i(94943),N=i(76595),E=i(23014),T=i(51828),I=i(51833),M=i(90388),A=i(51887),R=i(31936),O=i(6178),P=i(79086),F=i(25371),B=i(57823),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};let H=class extends r.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,a.nK)(this,(e=>{var t,i,n;const s=null===(t=this.model.read(e))||void 0===t?void 0:t.widget.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!s||0===s.parts.length)return this.sessionPosition=void 0,null;const o=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const r=new d.L(s.lineNumber,Math.min(o,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,a.gp)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const n=i.add(this.instantiationService.createInstance(z,this.editor,!0,this.position));e.addContentWidget(n),i.add((0,r.OF)((()=>e.removeContentWidget(n))))})))}};H=V([W(2,w.TG)],H);let z=C=class extends r.JT{constructor(e,t,i,n,s,o){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=s,this._menuService=o,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,N.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,N.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(O.eH.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(n.createInstance(U,this.nodes.toolBar,this.editor,O.eH.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof O.U8)return n.createInstance(j,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,a.EH)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,a.EH)((e=>{const t=[];for(const[i,n]of this.inlineCompletionsActionsMenus.getActions())for(const e of n)e instanceof O.U8&&t.push(e);t.length>0&&t.unshift(new T.Z0),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};z._dropDownVisible=!1,z.id=0,z=C=V([W(3,w.TG),W(4,y.i6),W(5,O.co)],z);class j extends A.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,N.h)("div.keybinding").root;this._register(new E.e(t,M.OS,{disableTitle:!0,...E.F})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let U=class extends R.T{constructor(e,t,i,n,s,o,r,a,l){super(e,{resetMenu:i,...n},s,o,r,a,l),this.editor=t,this.menuId=i,this.options2=n,this.menuService=s,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,o,r;const a=[],l=[];(0,A.vr)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(s=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===s?void 0:s.shouldInlineSubmenu,null===(r=null===(o=this.options2)||void 0===o?void 0:o.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setAdditionalSecondaryActions(e){(0,I.fS)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=V([W(4,O.co),W(5,y.i6),W(6,P.i),W(7,F.d),W(8,B.b)],U);var K,q=i(30600),$=i(16015),G=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Y=function(e,t){return function(i,n){t(i,n,e)}};class Z{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let Q=K=class extends r.JT{static get(e){return e.getContribution(K.ID)}constructor(e,t,i,n,s,o){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=n,this._commandService=s,this._configurationService=o,this._isVisibleContext=K.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=K.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register((0,a.DN)(this,void 0)),this._isAccepting=(0,a.uh)(this,!1),this._enabled=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily)),this._backgroundColoring=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).backgroundColoring));const r=(0,a.aq)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,a.EH)((t=>{this._enabled.read(t)&&(r.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const l=(0,a.rD)(e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,a.EH)((e=>{if(!this._enabled.read(e))return;const t=l.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,a.EH)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const n=e.getPosition();n&&this.checkCursorPosition(n)})));const d=(0,a.aq)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,a.EH)((async t=>{var i;this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(null===(i=this._currentRequestCts)||void 0===i||i.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const h=(0,a.aq)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,a.EH)((t=>{this._enabled.read(t)&&(h.read(t),this.getInlineEdit(e,!0))})));const c=this._register((0,N.aU)());this._register((0,a.EH)((e=>{const t=this._fontFamily.read(e);c.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new H(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(e){var t;if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i?this._isCursorAtInlineEditContext.set(h.e.containsPosition(i.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){var i,n;if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const s=t.range.endLineNumber;if(t.range.endColumn!==(null!==(n=null===(i=e.getModel())||void 0===i?void 0:i.getLineLength(s))&&void 0!==n?n:0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const n=i.getVersionId(),s=this.languageFeaturesService.inlineEditProvider.all(i);if(0===s.length)return;const o=s[0];this._currentRequestCts=new L.A;const r=this._currentRequestCts.token,a=t?S.rn.Automatic:S.rn.Invoke;var l,d;if(t&&await(l=50,d=r,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);d&&(t=d.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),r.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)return;const h=await o.provideInlineEdit(i,{triggerKind:a},r);return h&&!r.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===n&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){var i;this._isCursorAtInlineEditContext.set(!1),await this.clear();const n=await this.fetchInlineEdit(e,t);if(!n)return;const s=n.range.endLineNumber,o=n.range.endColumn,r=new k.Vb(s,[new k.NY(o,n.text,!1)]),l=this.instantiationService.createInstance(b,this.editor,{ghostText:(0,a.Dz)(r),minReservedLineCount:(0,a.Dz)(0),targetTextModel:(0,a.Dz)(null!==(i=this.editor.getModel())&&void 0!==i?i:void 0),range:(0,a.Dz)(n.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new Z(l,n),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var e;this._isAccepting.set(!0,void 0);const t=null===(e=this._currentEdit.get())||void 0===e?void 0:e.edit;if(!t)return;let i=t.text;t.text.startsWith("\n")&&(i=t.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[l.h.replace(h.e.lift(t.range),i)]),t.accepted&&await this._commandService.executeCommand(t.accepted.id,...t.accepted.arguments||[]).then(void 0,$.Cp),this.freeEdit(t),(0,a.PS)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){var e,t;this._jumpBackPosition=null===(e=this.editor.getSelection())||void 0===e?void 0:e.getStartPosition();const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;if(!i)return;const n=d.L.lift({lineNumber:i.range.startLineNumber,column:i.range.startColumn});this.editor.setPosition(n),this.editor.revealPositionInCenterIfOutsideViewport(n)}async clear(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i&&(null===i||void 0===i?void 0:i.rejected)&&e&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,$.Cp),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}shouldShowHoverAt(e){const t=this._currentEdit.get();if(!t)return!1;const i=t.edit,n=t.widget.model;if(h.e.containsPosition(i.range,e.getStartPosition())||h.e.containsPosition(i.range,e.getEndPosition()))return!0;const s=n.ghostText.get();return!!s&&s.parts.some((t=>e.containsPosition(new d.L(s.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.widget.ownsViewZone(e))&&void 0!==i&&i}};Q.ID="editor.contrib.inlineEditController",Q.inlineEditVisibleKey="inlineEditVisible",Q.inlineEditVisibleContext=new y.uy(K.inlineEditVisibleKey,!1),Q.cursorAtInlineEditKey="cursorAtInlineEdit",Q.cursorAtInlineEditContext=new y.uy(K.cursorAtInlineEditKey,!1),Q=K=G([Y(1,w.TG),Y(2,y.i6),Y(3,x.p),Y(4,D.H),Y(5,q.Ui)],Q);class X extends n.R6{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:y.Ao.and(o.u.writable,Q.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:y.Ao.and(o.u.writable,Q.inlineEditVisibleContext,Q.cursorAtInlineEditContext)}],menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=Q.get(t);await(null===i||void 0===i?void 0:i.accept())}}class J extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,y.Ao.not(Q.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=Q.get(t);null===i||void 0===i||i.trigger()}}class ee extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,Q.inlineEditVisibleContext,y.Ao.not(Q.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=Q.get(t);null===i||void 0===i||i.jumpToCurrent()}}class te extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,Q.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=Q.get(t);null===i||void 0===i||i.jumpBack()}}class ie extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,Q.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=Q.get(t);await(null===i||void 0===i?void 0:i.clear())}}var ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},se=function(e,t){return function(i,n){t(i,n,e)}};class oe{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let re=class{constructor(e,t,i){this._editor=e,this._instantiationService=t,this._telemetryService=i,this.hoverOrdinal=5}suggestHoverAnchor(e){const t=Q.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId)){const t=i.range;return new s.YM(1e3,this,t,e.event.posx,e.event.posy,!1)}}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(63).showToolbar)return[];const i=Q.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new oe(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new r.SL;this._telemetryService.publicLog2("inlineEditHover.shown");const n=this._instantiationService.createInstance(z,this._editor,!1,(0,a.Dz)(null));return e.fragment.appendChild(n.getDomNode()),i.add(n),i}};re=ne([se(1,w.TG),se(2,B.b)],re),(0,n.Qr)(X),(0,n.Qr)(ie),(0,n.Qr)(ee),(0,n.Qr)(te),(0,n.Qr)(J),(0,n._K)(Q.ID,Q,3),s.Ae.register(re)},54829:(e,t,i)=>{"use strict";i.d(t,{r:()=>f});var n=i(76595),s=i(53372),o=i(61542),r=i(53186),a=i(78701),l=i(73045),d=i(28928),h=i(13277),c=i(87775),u=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=h.qx.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.B4,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends r.JT{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=n.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=n.$("span.icon");this.domNode.append(t),t.classList.add(...l.k.asClassNameArray(o.l.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(n.nm(this.domNode,n.tw.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}m.baseId="editor.widget.inlineProgressWidget";let f=class extends r.JT{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new r.XK),this._currentWidget=new r.XK,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=(0,s.Vg)((()=>{const n=d.e.fromPositions(e);this._currentDecorations.set([{range:n,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,n,t,i))}),this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,c.TG)],f)},25025:(e,t,i)=>{"use strict";var n=i(60548),s=i(93033),o=i(35770),r=i(5887);class a extends n.R6{constructor(){super({id:"expandLineSelection",label:r.NC("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:o.u.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,s.P.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(i.source,!0)}}(0,n.Qr)(a)},73166:(e,t,i)=>{"use strict";var n=i(17344),s=i(15968),o=i(60548),r=i(2196),a=i(78701),l=i(56154),d=i(28928);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const n=[];let s=0,o=0;const r=t.length;for(let h=1,c=e.getLineCount();h<=c;h++){const c=e.getLineContent(h),u=c.length+1;let g=0;if(o<r&&t[o].lineNumber===h&&(g=t[o].column,o++,g===u))continue;if(0===c.length)continue;const p=a.ow(c);let m=0;if(-1===p)m=1;else{if(p===c.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),n[s++]=l.h.delete(new d.e(h,m,h,u))}return n}(e,this._cursors,this._trimInRegexesAndStrings);for(let n=0,s=i.length;n<s;n++){const e=i[n];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var c=i(69922),u=i(74633),g=i(24854),p=i(35770);class m{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=[];for(let o=i.startLineNumber;o<=i.endLineNumber;o++)n.push(e.getLineContent(o));const s=n.join("\n");""===s&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new d.e(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new d.e(i.startLineNumber,1,i.startLineNumber,1),s+"\n"):t.addEditOperation(new d.e(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+s),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,n=i.endLineNumber,s=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(n+=this._endLineNumberDelta,s=1),i=g.Y.createWithDirection(e,t,n,s,this._selectionDirection)}return i}}var f=i(80869),_=i(39260),v=i(5580),b=i(27847),C=i(62553),y=i(37036),w=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};let x=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const{tabSize:s,indentSize:o,insertSpaces:r}=e.getOptions(),l=this.buildIndentConverter(s,o,r),h={tokenization:{getLineTokens:t=>e.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){const i=n.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new d.e(1,1,1,1),null):(t.addEditOperation(new d.e(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new d.e(s,1,s,e.getLineMaxColumn(s)),null)),n=new g.Y(s,1,s,1)}else{let i,o;if(this._isMovingDown){i=n.endLineNumber+1,o=e.getLineContent(i),t.addEditOperation(new d.e(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let c=o;if(this.shouldAutoIndent(e,n)){const u=this.matchEnterRule(e,l,s,i,n.startLineNumber-1);if(null!==u){const t=a.V8(e.getLineContent(i)),n=u+b.Y(t,s),l=b.J(n,s,r);c=l+this.trimStart(o)}else{h.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);const t=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber,l,this._languageConfigurationService);if(null!==t){const n=a.V8(e.getLineContent(i)),l=b.Y(t,s);if(l!==b.Y(n,s)){const e=b.J(l,s,r);c=e+this.trimStart(o)}}}t.addEditOperation(new d.e(n.startLineNumber,1,n.startLineNumber,1),c+"\n");const g=this.matchEnterRuleMovingDown(e,l,s,n.startLineNumber,i,c);if(null!==g)0!==g&&this.getIndentEditsOfMovingBlock(e,t,n,s,r,g);else{h.getLineContent=t=>t===n.startLineNumber?c:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);const o=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,l,this._languageConfigurationService);if(null!==o){const i=a.V8(e.getLineContent(n.startLineNumber)),l=b.Y(o,s),d=b.Y(i,s);if(l!==d){const i=l-d;this.getIndentEditsOfMovingBlock(e,t,n,s,r,i)}}}}else t.addEditOperation(new d.e(n.startLineNumber,1,n.startLineNumber,1),c+"\n")}else if(i=n.startLineNumber-1,o=e.getLineContent(i),t.addEditOperation(new d.e(i,1,i+1,1),null),t.addEditOperation(new d.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,n)){h.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);const o=this.matchEnterRule(e,l,s,n.startLineNumber,n.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,n,s,r,o);else{const o=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(n.startLineNumber,1),i,l,this._languageConfigurationService);if(null!==o){const i=a.V8(e.getLineContent(n.startLineNumber)),l=b.Y(o,s),d=b.Y(i,s);if(l!==d){const i=l-d;this.getIndentEditsOfMovingBlock(e,t,n,s,r,i)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>f.U.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>f.U.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,s){if(s){let o=s.indentation;s.indentAction===_.wU.None||s.indentAction===_.wU.Indent?o=s.indentation+s.appendText:s.indentAction===_.wU.IndentOutdent?o=s.indentation:s.indentAction===_.wU.Outdent&&(o=t.unshiftIndent(s.indentation)+s.appendText);const r=e.getLineContent(n);if(this.trimStart(r).indexOf(this.trimStart(o))>=0){const s=a.V8(e.getLineContent(n));let r=a.V8(o);const l=(0,C.tI)(e,n,this._languageConfigurationService);null!==l&&2&l&&(r=t.unshiftIndent(r));return b.Y(r,i)-b.Y(s,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,s,o){if(a.ow(o)>=0){const o=e.getLineMaxColumn(s),r=(0,y.A)(this._autoIndent,e,new d.e(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let s=n-1;for(;s>=1;){const t=e.getLineContent(s);if(a.ow(t)>=0)break;s--}if(s<1||n>e.getLineCount())return null;const o=e.getLineMaxColumn(s),r=(0,y.A)(this._autoIndent,e,new d.e(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,s,o){let r=s;for(;r>=1;){let t;t=r===s&&void 0!==o?o:e.getLineContent(r);if(a.ow(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(r),h=(0,y.A)(this._autoIndent,e,new d.e(r,l,r,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,s,o){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const l=e.getLineContent(r),h=a.V8(l),c=b.Y(h,n)+o,u=b.J(c,n,s);u!==h&&(t.addEditOperation(new d.e(r,1,r,h.length+1),u),r===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};x=w([S(3,v.c_)],x);class L{static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const n=k(e,t,i);if(!n)return null;return l.h.replace(new d.e(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),n.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const n=k(e,t,i);if(!n)return!1;for(let s=0,o=n.before.length;s<o;s++)if(n.before[s]!==n.after[s])return!0;return!1}}function k(e,t,i){const n=t.startLineNumber;let s=t.endLineNumber;if(1===t.endColumn&&s--,n>=s)return null;const o=[];for(let a=n;a<=s;a++)o.push(e.getLineContent(a));let r=o.slice(0);return r.sort(L.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:s,before:o,after:r}}L._COLLATOR=null;var D=i(5887),N=i(6178),E=i(30600);class T extends o.R6{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>d.e.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let o=1;o<i.length;o++){const e=i[o];n.selection.endLineNumber===e.selection.startLineNumber&&(n.index<e.index?e.ignore=!0:(n.ignore=!0,n=e))}const s=[];for(const o of i)s.push(new m(o.selection,this.down,o.ignore));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class I extends o.R6{constructor(){super({id:"editor.action.duplicateSelection",label:D.NC("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:p.u.writable,menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const n=[],s=t.getSelections(),o=t.getModel();for(const a of s)if(a.isEmpty())n.push(new m(a,!0));else{const e=new g.Y(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);n.push(new r.OY(e,o.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends o.R6{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(v.c_),n=[],s=t.getSelections()||[],o=t.getOption(12);for(const r of s)n.push(new x(r,this.down,o,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class A extends o.R6{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let n=t.getSelections();1===n.length&&n[0].isEmpty()&&(n=[new g.Y(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const o of n)if(!L.canRun(t.getModel(),o,this.descending))return;const s=[];for(let o=0,r=n.length;o<r;o++)s[o]=new L(n[o],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class R extends o.R6{constructor(){super({id:"editor.action.removeDuplicateLines",label:D.NC("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:p.u.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const n=[],s=[];let o=0,r=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new g.Y(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],r=!1);for(const d of a){const e=new Set,t=[];for(let n=d.startLineNumber;n<=d.endLineNumber;n++){const s=i.getLineContent(n);e.has(s)||(t.push(s),e.add(s))}const r=new g.Y(d.startLineNumber,1,d.endLineNumber,i.getLineMaxColumn(d.endLineNumber)),a=d.startLineNumber-o,h=new g.Y(a,1,a+t.length-1,t[t.length-1].length);n.push(l.h.replace(r,t.join("\n"))),s.push(h),o+=d.endLineNumber-d.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,n,r?s:void 0),t.pushUndoStop()}}class O extends o.R6{constructor(){super({id:O.ID,label:D.NC("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:(0,n.gx)(2089,2102),weight:100}})}run(e,t,i){let n=[];"auto-save"===i.reason&&(n=(t.getSelections()||[]).map((e=>new u.L(e.positionLineNumber,e.positionColumn))));const s=t.getSelection();if(null===s)return;const o=e.get(E.Ui),r=t.getModel(),a=o.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:null===r||void 0===r?void 0:r.getLanguageId(),resource:null===r||void 0===r?void 0:r.uri}),l=new h(s,n,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),t.pushUndoStop()}}O.ID="editor.action.trimTrailingWhitespace";class P extends o.R6{constructor(){super({id:"editor.action.deleteLines",label:D.NC("lines.delete","Delete Line"),alias:"Delete Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let s=0;const o=[],r=[];for(let a=0,d=i.length;a<d;a++){const e=i[a];let t=e.startLineNumber,d=e.endLineNumber,h=1,c=n.getLineMaxColumn(d);d<n.getLineCount()?(d+=1,c=1):t>1&&(t-=1,h=n.getLineMaxColumn(t)),o.push(l.h.replace(new g.Y(t,h,d,c),"")),r.push(new g.Y(t-s,e.positionColumn,t-s,e.positionColumn)),s+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let s=1;s<t.length;s++)n.endLineNumber+1>=t[s].startLineNumber?n.endLineNumber=t[s].endLineNumber:(i.push(n),n=t[s]);return i.push(n),i}}class F extends o.R6{constructor(){super({id:"editor.action.indentLines",label:D.NC("lines.indent","Indent Line"),alias:"Indent Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.u6.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class B extends o.R6{constructor(){super({id:"editor.action.outdentLines",label:D.NC("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2140,weight:100}})}run(e,t){s.wk.Outdent.runEditorCommand(e,t,null)}}class V extends o.R6{constructor(){super({id:"editor.action.insertLineBefore",label:D.NC("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.u6.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends o.R6{constructor(){super({id:"editor.action.insertLineAfter",label:D.NC("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.u6.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class H extends o.R6{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),s=[];for(let a=0,l=n.length-1;a<l;a++){const e=n[a],t=n[a+1];null===d.e.intersectRanges(e,t)?s.push(e):n[a+1]=d.e.plusRange(e,t)}s.push(n[n.length-1]);const o=this._getEndCursorState(i,s),r=s.map((e=>l.h.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}}class z extends o.R6{constructor(){super({id:"editor.action.joinLines",label:D.NC("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(d.e.compareRangesUsingStarts);const s=[],o=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(s.push(e),t):new g.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(s.push(e),t):new g.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));s.push(o);const r=t.getModel();if(null===r)return;const a=[],h=[];let c=n,u=0;for(let p=0,m=s.length;p<m;p++){const e=s[p],t=e.startLineNumber,i=1;let o,m,f=0;const _=r.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<r.getLineCount()?(o=t+1,m=r.getLineMaxColumn(o)):(o=i.lineNumber,m=r.getLineMaxColumn(i.lineNumber))}else o=e.endLineNumber,m=r.getLineMaxColumn(o);let v=r.getLineContent(t);for(let n=t+1;n<=o;n++){const e=r.getLineContent(n),t=r.getLineFirstNonWhitespaceColumn(n);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const n=e.substr(t-1);v+=(i?" ":"")+n,f=i?n.length+1:n.length}else f=0}const b=new d.e(t,i,o,m);if(!b.isEmpty()){let i;e.isEmpty()?(a.push(l.h.replace(b,v)),i=new g.Y(b.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(l.h.replace(b,v)),i=new g.Y(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(l.h.replace(b,v)),i=new g.Y(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==d.e.intersectRanges(b,n)?c=i:h.push(i)}u+=b.endLineNumber-b.startLineNumber}h.unshift(c),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class j extends o.R6{constructor(){super({id:"editor.action.transpose",label:D.NC("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:p.u.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const s=[];for(let o=0,a=i.length;o<a;o++){const e=i[o];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=n.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===n.getLineCount())continue;const e=new d.e(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=n.getValueInRange(e).split("").reverse().join("");s.push(new r.T4(new g.Y(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new d.e(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=n.getValueInRange(e).split("").reverse().join("");s.push(new r.hP(e,i,new g.Y(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class U extends o.R6{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const s=t.getOption(131),o=[];for(const r of i)if(r.isEmpty()){const e=r.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new d.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=n.getValueInRange(a);o.push(l.h.replace(a,this._modifyText(h,s)))}else{const e=n.getValueInRange(r);o.push(l.h.replace(r,this._modifyText(e,s)))}t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class q extends U{constructor(){super({id:"editor.action.transformToTitlecase",label:D.NC("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:p.u.writable})}_modifyText(e,t){const i=q.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}q.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class $ extends U{constructor(){super({id:"editor.action.transformToSnakecase",label:D.NC("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:p.u.writable})}_modifyText(e,t){const i=$.caseBoundary.get(),n=$.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}$.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu"),$.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class G extends U{constructor(){super({id:"editor.action.transformToCamelcase",label:D.NC("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:p.u.writable})}_modifyText(e,t){const i=G.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}G.wordBoundary=new K("[_\\s-]","gm");class Y extends U{constructor(){super({id:"editor.action.transformToPascalcase",label:D.NC("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:p.u.writable})}_modifyText(e,t){const i=Y.wordBoundary.get(),n=Y.wordBoundaryToMaintain.get();if(!i||!n)return e;return e.split(n).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}Y.wordBoundary=new K("[_\\s-]","gm"),Y.wordBoundaryToMaintain=new K("(?<=\\.)","gm");class Z extends U{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}constructor(){super({id:"editor.action.transformToKebabcase",label:D.NC("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:p.u.writable})}_modifyText(e,t){const i=Z.caseBoundary.get(),n=Z.singleLetters.get(),s=Z.underscoreBoundary.get();return i&&n&&s?e.replace(s,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}Z.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu"),Z.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),Z.underscoreBoundary=new K("(\\S)(_)(\\S)","gm"),(0,o.Qr)(class extends T{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:D.NC("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,o.Qr)(class extends T{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:D.NC("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,o.Qr)(I),(0,o.Qr)(class extends M{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:D.NC("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,o.Qr)(class extends M{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:D.NC("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,o.Qr)(class extends A{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:D.NC("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:p.u.writable})}}),(0,o.Qr)(class extends A{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:D.NC("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:p.u.writable})}}),(0,o.Qr)(R),(0,o.Qr)(O),(0,o.Qr)(P),(0,o.Qr)(F),(0,o.Qr)(B),(0,o.Qr)(V),(0,o.Qr)(W),(0,o.Qr)(class extends H{constructor(){super({id:"deleteAllLeft",label:D.NC("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let s=0;return t.forEach((t=>{let o;if(1===t.endColumn&&s>0){const e=t.startLineNumber-s;o=new g.Y(e,t.startColumn,e,t.startColumn)}else o=new g.Y(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);s+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=o:n.push(o)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(d.e.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineLength(t)+1;return new d.e(t,i,e.startLineNumber,1)}return new d.e(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new d.e(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,o.Qr)(class extends H{constructor(){super({id:"deleteAllRight",label:D.NC("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let s=0,o=t.length,r=0;s<o;s++){const o=t[s],a=new g.Y(o.startLineNumber-r,o.startColumn,o.startLineNumber-r,o.startColumn);o.intersectRanges(e)?i=a:n.push(a)}return i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const n=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new d.e(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new d.e(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(d.e.compareRangesUsingStarts),n}}),(0,o.Qr)(z),(0,o.Qr)(j),(0,o.Qr)(class extends U{constructor(){super({id:"editor.action.transformToUppercase",label:D.NC("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:p.u.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,o.Qr)(class extends U{constructor(){super({id:"editor.action.transformToLowercase",label:D.NC("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:p.u.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),$.caseBoundary.isSupported()&&$.singleLetters.isSupported()&&(0,o.Qr)($),G.wordBoundary.isSupported()&&(0,o.Qr)(G),Y.wordBoundary.isSupported()&&(0,o.Qr)(Y),q.titleBoundary.isSupported()&&(0,o.Qr)(q),Z.isSupported()&&(0,o.Qr)(Z)},27353:(e,t,i)=>{"use strict";var n,s=i(51833),o=i(53372),r=i(76946),a=i(63932),l=i(16015),d=i(39706),h=i(53186),c=i(78701),u=i(91387),g=i(60548),p=i(74246),m=i(74633),f=i(28928),_=i(35770),v=i(13277),b=i(5580),C=i(5887),y=i(47116),w=i(53869),S=i(6009),x=i(14386),L=i(6617),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const N=new y.uy("LinkedEditingInputVisible",!1);let E=n=class extends h.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,s){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new h.SL),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=N.bindTo(t),this._debounceInformation=s.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(93))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(93))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(d.ju.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new o.vp(this._debounceInformation.get(t)),s=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},r=new o.vp(0),a=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{s()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}s()}))),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const s=[];for(let o=1,r=this._currentDecorations.length;o<r;o++){const e=this._currentDecorations.getRange(o);if(e)if(e.startLineNumber!==e.endLineNumber)s.push({range:e,text:n});else{let i=t.getValueInRange(e),o=n,r=e.startColumn,a=e.endColumn;const l=c.Mh(i,o);r+=l,i=i.substr(l),o=o.substr(l);const d=c.P1(i,o);a-=d,i=i.substr(0,i.length-d),o=o.substr(0,o.length-d),r===a&&0===o.length||s.push({range:new f.e(e.startLineNumber,r,e.endLineNumber,a),text:o})}}if(0!==s.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",s),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),s=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===s){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=s;const o=this._currentRequestCts=new r.A;try{const e=new L.G(!1),r=await M(this._providers,i,t,o.token);if(this._debounceInformation.update(i,e.elapsed()),o!==this._currentRequestCts)return;if(this._currentRequestCts=null,s!==i.getVersionId())return;let a=[];(null===r||void 0===r?void 0:r.ranges)&&(a=r.ranges),this._currentWordPattern=(null===r||void 0===r?void 0:r.wordPattern)||this._languageWordPattern;let l=!1;for(let i=0,n=a.length;i<n;i++)if(f.e.containsPosition(a[i],t)){if(l=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!l)return void this.clearRanges();const d=a.map((e=>({range:e,options:n.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(d),this._syncRangesToken++}catch(a){(0,l.n2)(a)||(0,l.dL)(a),this._currentRequestCts!==o&&this._currentRequestCts||this.clearRanges()}}};E.ID="editor.contrib.linkedEditing",E.DECORATION=v.qx.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),E=n=k([D(1,y.i6),D(2,w.p),D(3,b.c_),D(4,x.A)],E);class T extends g.R6{constructor(){super({id:"editor.action.linkedEditing",label:C.NC("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:y.Ao.and(_.u.writable,_.u.hasRenameProvider),kbOpts:{kbExpr:_.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.$),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return u.o.isUri(n)&&m.L.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(s),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),l.dL):super.runCommand(e,t)}run(e,t){const i=E.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const I=g._l.bindToContribution(E.get);function M(e,t,i,n){const r=e.ordered(t);return(0,o.Ps)(r.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,n)}catch(s){return void(0,l.Cp)(s)}})),(e=>!!e&&s.Of(null===e||void 0===e?void 0:e.ranges)))}(0,g.fK)(new I({id:"cancelLinkedEditingInput",precondition:N,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,S.P6G)("editor.linkedEditingBackground",{dark:a.Il.fromHex("#f00").transparent(.3),light:a.Il.fromHex("#f00").transparent(.3),hcDark:a.Il.fromHex("#f00").transparent(.3),hcLight:a.Il.white},C.NC("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.sb)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(w.p);return M(n,t,i,r.T.None)})),(0,g._K)(E.ID,E,1),(0,g.Qr)(T)},46030:(e,t,i)=>{"use strict";var n=i(53372),s=i(76946),o=i(16015),r=i(73971),a=i(53186),l=i(32060),d=i(90388),h=i(30506),c=i(6617),u=i(91387),g=i(60548),p=i(13277),m=i(14386),f=i(53869),_=i(18519),v=i(51833),b=i(47624),C=i(28928),y=i(23058),w=i(94943);class S{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class x{constructor(e){this._disposables=new a.SL;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new S(e,n)));t=x._union(t,e),(0,a.Wf)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,s,o,r;for(n=0,o=0,s=e.length,r=t.length;n<s&&o<r;){const s=e[n],r=t[o];if(C.e.areIntersectingOrTouching(s.range,r.range)){n++;continue}C.e.compareRangesUsingStarts(s.range,r.range)<0?(i.push(s),n++):(i.push(r),o++)}for(;n<s;n++)i.push(e[n]);for(;o<r;o++)i.push(t[o]);return i}}function L(e,t,i){const n=[],s=e.ordered(t).reverse().map(((e,s)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[s]=[t,e])}),o.Cp)));return Promise.all(s).then((()=>{const e=new x((0,v.kX)(n));return i.isCancellationRequested?(e.dispose(),new x([])):e}))}w.P.registerCommand("_executeLinkProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];let[o,r]=i;(0,b.p_)(o instanceof u.o),"number"!==typeof r&&(r=0);const{linkProvider:a}=e.get(f.p),l=e.get(y.q).getModel(o);if(!l)return[];const d=await L(a,l,s.T.None);if(!d)return[];for(let c=0;c<Math.min(r,d.links.length);c++)await d.links[c].resolve(s.T.None);const h=d.links.slice(0);return d.dispose(),h}));var k,D=i(5887),N=i(61758),E=i(34912),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=k=class extends a.JT{static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s,o){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=s,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new n.pY((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new _.yN(e));this._register(r.onMouseMoveOrRelevantKeyDown((e=>{let[t,i]=e;this._onEditorMouseMove(t,i)}))),this._register(r.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(r.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,n.PG)((t=>L(this.providers,e,t)));try{const t=new c.G(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,o.dL)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],n=Object.keys(this.currentOccurrences);for(const o of n){const e=this.currentOccurrences[o];i.push(e.decorationId)}const s=[];if(e)for(const o of e)s.push(O.decoration(o,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,s=n.length;i<s;i++){const t=new O(e[i],n[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.openerService)return;const{link:n}=e;n.resolve(s.T.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.lg.file&&e.startsWith(`${l.lg.file}:`)){const i=u.o.parse(e);if(i.scheme===l.lg.file){const n=h.z_(i);let s=null;n.startsWith("/./")||n.startsWith("\\.\\")?s=`.${n.substr(1)}`:(n.startsWith("//./")||n.startsWith("\\\\.\\"))&&(s=`.${n.substr(2)}`),s&&(e=h.Vo(t,s))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(D.NC("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(D.NC("missing.url","Failed to open this link because its target is missing.")):(0,o.dL)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};M.ID="editor.linkDetector",M=k=T([I(1,E.v),I(2,N.lT),I(3,f.p),I(4,m.A)],M);const A=p.qx.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),R=p.qx.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class O{static decoration(e,t){return{range:e.range,options:O._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n={...i?R:A};return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?D.NC("links.navigate.executeCmd","Execute command"):D.NC("links.navigate.follow","Follow link"),s=t?d.dz?D.NC("links.navigate.kb.meta.mac","cmd + click"):D.NC("links.navigate.kb.meta","ctrl + click"):d.dz?D.NC("links.navigate.kb.alt.mac","option + click"):D.NC("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=D.NC("tooltip.explanation","Execute command {0}",e)}}return new r.W5("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${s})`)}return(new r.W5).appendText(`${n} (${s})`)}(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,O._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,O._getOptions(this.link,t,!1))}}class P extends g.R6{constructor(){super({id:"editor.action.openLink",label:D.NC("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=M.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const s of n){const e=i.getLinkOccurrence(s.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g._K)(M.ID,M,1),(0,g.Qr)(P)},36513:(e,t,i)=>{"use strict";var n=i(53186),s=i(60548);class o extends n.JT{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(117);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}o.ID="editor.contrib.longLinesHelper",(0,s._K)(o.ID,o,2)},10843:(e,t,i)=>{"use strict";i.d(t,{O:()=>v});var n,s=i(16315),o=i(83945),r=i(39706),a=i(73971),l=i(53186),d=i(60548),h=i(28928),c=i(35978),u=i(5887),g=i(47116),p=i(34912),m=i(76595),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new l.XK,this._messageListeners=new l.SL,this._mouseOverMessage=!1,this._editor=e,this._visible=n.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;null===(e=this._message)||void 0===e||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,o.Z9)((0,a.Fr)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.Fr)(e)?(0,s.ap)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,c.N)(this._openerService,t,(0,a.Fr)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new C(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(r.ju.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.jg(m.vY(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.nm(this._messageWidget.value.getDomNode(),m.tw.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.nm(this._messageWidget.value.getDomNode(),m.tw.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.e(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(C.fadeOut(this._messageWidget.value))}};v.ID="editor.contrib.messageController",v.MESSAGE_VISIBLE=new g.uy("messageVisible",!1,u.NC("messageVisible","Whether the editor is currently showing an inline message")),v=n=f([_(1,g.i6),_(2,p.v)],v);const b=d._l.bindToContribution(v.get);(0,d.fK)(new b({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class C{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,t,i){let{lineNumber:n,column:s}=t;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(n,n,0),this._position={lineNumber:n,column:s},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");"string"===typeof i?(r.classList.add("message"),r.textContent=i):(i.classList.add("message"),r.appendChild(i)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,d._K)(v.ID,v,4)},81927:(e,t,i)=>{"use strict";var n,s=i(83945),o=i(53372),r=i(17344),a=i(53186),l=i(60548),d=i(93033),h=i(28928),c=i(24854),u=i(35770),g=i(45713),p=i(5887),m=i(6178),f=i(47116),_=i(53869),v=i(11797),b=i(87775),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};function w(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.NC("cursorAdded","Cursor added: {0}",e):p.NC("cursorsAdded","Cursors added: {0}",e);(0,s.i7)(t)}}class S extends l.R6{constructor(){super({id:"editor.action.insertCursorAbove",label:p.NC("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.u.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const o=s.getCursorStates();s.setCursorStates(i.source,3,d.P.addCursorUp(s,o,n)),s.revealTopMostCursor(i.source),w(o,s.getCursorStates())}}class x extends l.R6{constructor(){super({id:"editor.action.insertCursorBelow",label:p.NC("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.u.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const o=s.getCursorStates();s.setCursorStates(i.source,3,d.P.addCursorDown(s,o,n)),s.revealBottomMostCursor(i.source),w(o,s.getCursorStates())}}class L extends l.R6{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.NC("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.u.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){const e=t.getLineMaxColumn(n);i.push(new c.Y(n,e,n,e))}e.endColumn>1&&i.push(new c.Y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),s=t._getViewModel(),o=s.getCursorStates(),r=[];n.forEach((e=>this.getCursorsForSelection(e,i,r))),r.length>0&&t.setSelections(r),w(o,s.getCursorStates())}}class k extends l.R6{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.NC("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),s=[];for(let a=i[0].startLineNumber;a<=n;a++)s.push(new c.Y(a,i[0].startColumn,a,i[0].endColumn));const o=t._getViewModel(),r=o.getCursorStates();s.length>0&&t.setSelections(s),w(r,o.getCursorStates())}}class D extends l.R6{constructor(){super({id:"editor.action.addCursorsToTop",label:p.NC("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let r=i[0].startLineNumber;r>=1;r--)n.push(new c.Y(r,i[0].startColumn,r,i[0].endColumn));const s=t._getViewModel(),o=s.getCursorStates();n.length>0&&t.setSelections(n),w(o,s.getCursorStates())}}class N{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class E{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new E(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,s,o=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(o=!0,n=!0,s=!0):(n=i.wholeWord,s=i.matchCase);const a=e.getSelection();let l,d=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,d=new c.Y(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new E(e,t,o,l,n,s,d)}constructor(e,t,i,n,s,o,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=s,this.matchCase=o,this.currentMatch=r}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new c.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new c.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}class T extends a.JT{static get(e){return e.getContribution(T.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.SL),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=E.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new c.Y(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!R(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let n=0,s=t.length;n<s;n++)i[n]=this._expandEmptyToWord(e,t[n]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){const n=t[i];if(n.range.intersectRanges(e)){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map((e=>new c.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}T.ID="editor.contrib.multiCursorController";class I extends l.R6{run(e,t){const i=T.get(t);if(!i)return;const n=t._getViewModel();if(n){const s=n.getCursorStates(),o=g.pR.get(t);if(o)this._run(i,o);else{const n=e.get(b.TG).createInstance(g.pR,t);this._run(i,n),n.dispose()}w(s,n.getCursorStates())}}}class M{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.e.compareRangesUsingStarts)),this._cachedFindMatches}}let A=n=class extends a.JT{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(108),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new o.pY((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(108)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.pR.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(n._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const s=T.get(i);if(!s)return null;const o=g.pR.get(i);if(!o)return null;let r=s.getSession(o);if(!r){const e=i.getSelections();if(e.length>1){const t=o.getState().matchCase;if(!R(i.getModel(),e,t))return null}r=E.create(i,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=o.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=r.searchText;if(l||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new M(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(131):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(h.e.compareRangesUsingStarts);const s=[];for(let l=0,d=0,c=i.length,u=n.length;l<c;){const e=i[l];if(d>=u)s.push(e),l++;else{const t=h.e.compareRangesUsingStarts(e,n[d]);t<0?(!n[d].isEmpty()&&h.e.areIntersecting(e,n[d])||s.push(e),l++):(t>0||l++,d++)}}const o="off"!==this.editor.getOption(81),r=this._languageFeaturesService.documentHighlightProvider.has(t)&&o,a=s.map((e=>({range:e,options:(0,v.w)(r)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function R(e,t,i){const n=O(e,t[0],!i);for(let s=1,o=t.length;s<o;s++){const o=t[s];if(o.isEmpty())return!1;if(n!==O(e,o,!i))return!1}return!0}function O(e,t,i){const n=e.getValueInRange(t);return i?n.toLowerCase():n}A.ID="editor.contrib.selectionHighlighter",A=n=C([y(1,_.p)],A);class P extends l.R6{constructor(){super({id:"editor.action.focusNextCursor",label:p.NC("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.NC("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const s=Array.from(n.getCursorStates()),o=s.shift();o&&(s.push(o),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),w(s,n.getCursorStates()))}}class F extends l.R6{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.NC("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.NC("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const s=Array.from(n.getCursorStates()),o=s.pop();o&&(s.unshift(o),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),w(s,n.getCursorStates()))}}(0,l._K)(T.ID,T,4),(0,l._K)(A.ID,A,1),(0,l.Qr)(S),(0,l.Qr)(x),(0,l.Qr)(L),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.NC("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.u.focus,primary:2082,weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.NC("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.NC("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.u.focus,primary:(0,r.gx)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.NC("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.selectHighlights",label:p.NC("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.u.focus,primary:3114,weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.changeAll",label:p.NC("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.Ao.and(u.u.writable,u.u.editorTextFocus),kbOpts:{kbExpr:u.u.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,l.Qr)(k),(0,l.Qr)(D),(0,l.Qr)(P),(0,l.Qr)(F)},10628:(e,t,i)=>{"use strict";var n=i(20447),s=i(53186),o=i(60548),r=i(35770),a=i(18841),l=i(53869),d=i(53372),h=i(16015),c=i(39706),u=i(47498),g=i(76946),p=i(47624),m=i(91387),f=i(74633),_=i(43537),v=i(94943),b=i(47116);const C={Visible:new b.uy("parameterHintsVisible",!1),MultipleSignatures:new b.uy("parameterHintsMultipleSignatures",!1)};async function y(e,t,i,n,s){const o=e.ordered(t);for(const a of o)try{const e=await a.provideSignatureHelp(t,i,s,n);if(e)return e}catch(r){(0,h.Cp)(r)}}var w;v.P.registerCommand("_executeSignatureHelpProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[s,o,r]=i;(0,p.p_)(m.o.isUri(s)),(0,p.p_)(f.L.isIPosition(o)),(0,p.p_)("string"===typeof r||!r);const d=e.get(l.p),h=await e.get(_.S).createModelReference(s);try{const e=await y(d.signatureHelpProvider,h.object.textEditorModel,f.L.lift(o),{triggerKind:a.WW.Invoke,isRetrigger:!1,triggerCharacter:r},g.T.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{h.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(w||(w={}));class S extends s.JT{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.DEFAULT_DELAY;super(),this._onChangedHints=this._register(new c.Q5),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=w.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new s.XK),this.triggerChars=new u.q,this.retriggerChars=new u.q,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new d.vp(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state=w.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(n)),t).catch(h.dL)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new w.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(x);this._pendingTriggers=[];const s={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const o=this.editor.getModel(),r=this.editor.getPosition();this.state=new w.Pending((0,d.PG)((e=>y(this.providers,o,r,s,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(null===t||void 0===t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new w.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null===t||void 0===t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=w.Default),(0,h.dL)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WW.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WW.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function x(e,t){switch(t.triggerKind){case a.WW.Invoke:return t;case a.WW.ContentChange:return e;case a.WW.TriggerCharacter:default:return t}}S.DEFAULT_DELAY=120;var L,k=i(5887),D=i(87775),N=i(76595),E=i(83945),T=i(24622),I=i(61542),M=i(78701),A=i(91342),R=i(35978),O=i(34912),P=i(6009),F=i(54329),B=i(73045),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};const H=N.$,z=(0,F.q5)("parameter-hints-next",I.l.chevronDown,k.NC("parameterHintsNextIcon","Icon for show next parameter hint.")),j=(0,F.q5)("parameter-hints-previous",I.l.chevronUp,k.NC("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let U=L=class extends s.JT{constructor(e,t,i,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new s.SL),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new R.$({editor:e},o,n)),this.keyVisible=C.Visible.bindTo(i),this.keyMultipleSignatures=C.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=H(".editor-widget.parameter-hints-widget"),t=N.R3(e,H(".phwrapper"));t.tabIndex=-1;const i=N.R3(t,H(".controls")),n=N.R3(i,H(".button"+B.k.asCSSSelector(j))),s=N.R3(i,H(".overloads")),o=N.R3(i,H(".button"+B.k.asCSSSelector(z)));this._register(N.nm(n,"click",(e=>{N.zB.stop(e),this.previous()}))),this._register(N.nm(o,"click",(e=>{N.zB.stop(e),this.next()})));const r=H(".body"),a=new T.s$(r,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=N.R3(r,H(".signature")),d=N.R3(r,H(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:s,docs:d,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${e.fontSize}px`,this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};h(),this._register(c.ju.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{var e;null===(e=this.domNodes)||void 0===e||e.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const s=N.R3(this.domNodes.signature,H(".code")),o=this.editor.getOption(50);s.style.fontSize=`${o.fontSize}px`,s.style.fontFamily=o.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;if(r)this.renderParameters(s,n,a);else{N.R3(s,H("span")).textContent=n.label}const l=n.parameters[a];if(null===l||void 0===l?void 0:l.documentation){const e=H("span.documentation");if("string"===typeof l.documentation)e.textContent=l.documentation;else{const t=this.renderMarkdownDocs(l.documentation);e.appendChild(t.element)}N.R3(this.domNodes.docs,H("p",{},e))}if(void 0===n.documentation);else if("string"===typeof n.documentation)N.R3(this.domNodes.docs,H("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);N.R3(this.domNodes.docs,e.element)}const d=this.hasDocs(n,l);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,l){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+="string"===typeof n.documentation?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(E.Z9(k.NC("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.cW)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.cW)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.cW)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.cW)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[n,s]=this.getParameterLabelOffsets(t,i),o=document.createElement("span");o.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,s),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(s),N.R3(e,o,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,M.ec)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return L.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};U.ID="editor.widget.parameterHintsWidget",U=L=V([W(2,b.i6),W(3,O.v),W(4,A.O)],U),(0,P.P6G)("editorHoverWidget.highlightForeground",{dark:P.Gwp,light:P.Gwp,hcDark:P.Gwp,hcLight:P.Gwp},k.NC("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var K,q=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},$=function(e,t){return function(i,n){t(i,n,e)}};let G=K=class extends s.JT{static get(e){return e.getContribution(K.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new S(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{var t;e?(this.widget.value.show(),this.widget.value.render(e)):null===(t=this.widget.rawValue)||void 0===t||t.hide()}))),this.widget=new n.o((()=>this._register(t.createInstance(U,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){var e;null===(e=this.widget.rawValue)||void 0===e||e.previous()}next(){var e;null===(e=this.widget.rawValue)||void 0===e||e.next()}trigger(e){this.model.trigger(e,0)}};G.ID="editor.controller.parameterHints",G=K=q([$(1,D.TG),$(2,l.p)],G);class Y extends o.R6{constructor(){super({id:"editor.action.triggerParameterHints",label:k.NC("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:r.u.hasSignatureHelpProvider,kbOpts:{kbExpr:r.u.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=G.get(t);null===i||void 0===i||i.trigger({triggerKind:a.WW.Invoke})}}(0,o._K)(G.ID,G,2),(0,o.Qr)(Y);const Z=o._l.bindToContribution(G.get);(0,o.fK)(new Z({id:"closeParameterHints",precondition:C.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:9,secondary:[1033]}})),(0,o.fK)(new Z({id:"showPrevParameterHint",precondition:b.Ao.and(C.Visible,C.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,o.fK)(new Z({id:"showNextParameterHint",precondition:b.Ao.and(C.Visible,C.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},60737:(e,t,i)=>{"use strict";i.d(t,{Fw:()=>A,Jy:()=>R,vk:()=>B,rc:()=>P,SC:()=>z,M8:()=>j,KY:()=>V,IH:()=>W,R7:()=>H});var n=i(76595),s=i(7144),o=i(51828),r=i(61542),a=i(73045),l=i(63932),d=i(39706),h=i(53335),c=i(60548),u=i(74246),g=i(2822),p=i(38571),m=i(30441),f=i(53186),_=i(28928),v=i(13277);const b=new l.Il(new l.VS(0,122,204)),C={showArrow:!0,showFrame:!0,className:"",frameColor:b,arrowColor:b,keepEditorSelection:!1};class y{constructor(e,t,i,n,s,o,r,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=r,this.ordinal=a,this._onDomNodeTop=s,this._onComputedHeight=o}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class w{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class S{constructor(e){this._editor=e,this._ruleName=S._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),n.uN(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){n.uN(this._ruleName),n.fk(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.e.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}S._IdGenerator=new m.R(".arrow-decoration-");class x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.SL,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.I8(t),h.jB(this.options,C,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}null===(t=this._resizeSash)||void 0===t||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.e.isIRange(e)?_.e.lift(e):_.e.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.qx.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),null===(e=this._arrow)||void 0===e||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const o=document.createElement("div");o.style.overflow="hidden";const r=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,e)}let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(r/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new y(o,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new w("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const d=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,s),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.e(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.g(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var L=i(5887),k=i(51887),D=i(47116),N=i(23026),E=i(87775),T=i(6009),I=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const A=(0,E.yh)("IPeekViewService");var R;(0,N.z)(A,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new D.uy("inReferenceSearchEditor",!0,L.NC("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(R||(R={}));let O=class{constructor(e,t){e instanceof g.H&&R.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.$).getFocusedCodeEditor();return t instanceof g.H?t.getParentEditor():t}O.ID="editor.contrib.referenceController",O=I([M(1,D.i6)],O),(0,c._K)(O.ID,O,0);const F={headerBackgroundColor:l.Il.white,primaryHeadingColor:l.Il.fromHex("#333333"),secondaryHeadingColor:l.Il.fromHex("#6c6c6cb3")};let B=class extends x{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new d.Q5,this.onDidClose=this._onDidClose.event,h.jB(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n.$(".head"),this._bodyElement=n.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=n.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),n.mu(this._titleElement,"click",(e=>this._onTitleClick(e)))),n.R3(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=n.$("span.filename"),this._secondaryHeading=n.$("span.dirname"),this._metaHeading=n.$("span.meta"),n.R3(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=n.$(".peekview-actions");n.R3(this._headElement,i);const l=this._getActionBarOptions();this._actionbarWidget=new s.o(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new o.aU("peekview.close",L.NC("label.close","Close"),a.k.asClassName(r.l.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:k.Id.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:n.PO(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n.$Z(this._metaHeading)):n.Cp(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};B=I([M(2,E.TG)],B);const V=(0,T.P6G)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Il.black,hcLight:l.Il.white},L.NC("peekViewTitleBackground","Background color of the peek view title area.")),W=(0,T.P6G)("peekViewTitleLabel.foreground",{dark:l.Il.white,light:l.Il.black,hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewTitleForeground","Color of the peek view title.")),H=(0,T.P6G)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},L.NC("peekViewTitleInfoForeground","Color of the peek view title info.")),z=(0,T.P6G)("peekView.border",{dark:T.c63,light:T.c63,hcDark:T.lRK,hcLight:T.lRK},L.NC("peekViewBorder","Color of the peek view borders and arrow.")),j=(0,T.P6G)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Il.black,hcLight:l.Il.white},L.NC("peekViewResultsBackground","Background color of the peek view result list.")),U=((0,T.P6G)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,T.P6G)("peekViewResult.fileForeground",{dark:l.Il.white,light:"#1E1E1E",hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,T.P6G)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},L.NC("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,T.P6G)("peekViewResult.selectionForeground",{dark:l.Il.white,light:"#6C6C6C",hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,T.P6G)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Il.black,hcLight:l.Il.white},L.NC("peekViewEditorBackground","Background color of the peek view editor.")));(0,T.P6G)("peekViewEditorGutter.background",{dark:U,light:U,hcDark:U,hcLight:U},L.NC("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,T.P6G)("peekViewEditorStickyScroll.background",{dark:U,light:U,hcDark:U,hcLight:U},L.NC("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,T.P6G)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},L.NC("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,T.P6G)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},L.NC("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,T.P6G)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:T.xL1,hcLight:T.xL1},L.NC("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},28599:(e,t,i)=>{"use strict";i.d(t,{X:()=>h});var n=i(66870),s=i(53186),o=i(48850),r=i(24032),a=i(12354),l=i(46673),d=i(83945);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new s.SL;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new s.XK);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange((()=>{o.value=void 0,o.value=this.doProvide(e,t)}))),n}doProvide(e,t){var i;const r=new s.SL,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const l={editor:a},d=(0,o.Pi)(a);if(d){let e=null!==(i=a.saveViewState())&&void 0!==i?i:void 0;r.add(d.onDidChangeCursorPosition((()=>{var t;e=null!==(t=a.saveViewState())&&void 0!==t?t:void 0}))),l.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},r.add((0,n.M)(t.onCancellationRequested)((()=>{var e;return null===(e=l.restoreViewState)||void 0===e?void 0:e.call(l)})))}r.add((0,s.OF)((()=>this.clearDecorations(a)))),r.add(this.provideWithTextEditor(l,e,t))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation(e,t){let{editor:i}=e;i.setSelection(t.range,"code.jump"),i.revealRangeInCenter(t.range,0),t.preserveFocus||i.focus();const n=i.getModel();n&&"getLineContent"in n&&(0,d.i7)(`${n.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return(0,o.QI)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,l.EN)(a.m9),position:r.sh.Full}}}],[s,o]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:o}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},40606:(e,t,i)=>{"use strict";var n=i(73971),s=i(53186),o=i(60548),r=i(10843),a=i(5887);class l extends s.JT{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=r.O.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(92);t||(t=this.editor.isSimpleWidget?new n.W5(a.NC("editor.simple.readonly","Cannot edit in read-only input")):new n.W5(a.NC("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}l.ID="editor.contrib.readOnlyMessageController",(0,o._K)(l.ID,l,2)},36920:(e,t,i)=>{"use strict";var n=i(83945),s=i(53372),o=i(76946),r=i(16015),a=i(73971),l=i(53186),d=i(47624),h=i(91387),c=i(60548),u=i(80427),g=i(74246),p=i(74633),m=i(28928),f=i(35770),_=i(53869),v=i(19399),b=i(8037),C=i(10843),y=i(5887),w=i(6178),S=i(49817),x=i(47116),L=i(87775),k=i(33454),D=i(61758),N=i(97757),E=i(76322),T=i(57823),I=i(76595),M=i(27691),A=i(69394),R=i(51833),O=i(61542),P=i(39706),F=i(6617),B=i(64295),V=i(18841),W=i(25371),H=i(93617),z=i(6009),j=i(46673),U=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},K=function(e,t){return function(i,n){t(i,n,e)}};const q=new x.uy("renameInputVisible",!1,(0,y.NC)("renameInputVisible","Whether the rename input widget is visible"));new x.uy("renameInputFocused",!1,(0,y.NC)("renameInputFocused","Whether the rename input widget is focused"));let $=class{constructor(e,t,i,n,s,o){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=o,this.allowEditorOverflow=!0,this._disposables=new l.SL,this._visibleContextKey=q.bindTo(s),this._isEditingRenameCandidate=!1,this._beforeFirstInputFieldEditSW=new F.G,this._input=new Y,this._disposables.add(this._input),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._input.domNode),this._renameCandidateListView=this._disposables.add(new G(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._input.domNode.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._input.onDidChange((()=>{var e,t,i,n;void 0!==(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),!1===(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,s;if(!this._domNode)return;const o=e.getColor(z.rh),r=e.getColor(z.A42);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(z.D0T))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?` 0 0 8px 2px ${o}`:"",this._domNode.style.border=r?`1px solid ${r}`:"",this._domNode.style.color=String(null!==(i=e.getColor(z.zJb))&&void 0!==i?i:""),this._input.domNode.style.backgroundColor=String(null!==(n=e.getColor(z.sEe))&&void 0!==n?n:"");const a=e.getColor(z.dt_);this._input.domNode.style.borderWidth=a?"1px":"0px",this._input.domNode.style.borderStyle=a?"solid":"none",this._input.domNode.style.borderColor=null!==(s=null===a||void 0===a?void 0:a.toString())&&void 0!==s?s:"none"}_updateFont(){if(void 0===this._domNode)return;(0,d.p_)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._input.domNode);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.D6(this.getDomNode().ownerDocument.body),t=I.i(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const n=this._editor.getOption(67),{totalHeight:s}=Z.getLayoutInfo({lineHeight:n}),o=this._nPxAvailableBelow>6*s?[2,1]:[1,2];return{position:this._position,preference:o}}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=(0,y.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,d.p_)(this._renameCandidateListView),(0,d.p_)(void 0!==this._nPxAvailableAbove),(0,d.p_)(void 0!==this._nPxAvailableBelow);const t=I.wn(this._input.domNode),i=I.wn(this._label);let n;n=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:n-i-t,width:I.w(this._input.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())||(this._input.domNode.value=this._currentName)}focusPreviousRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())||(this._input.domNode.value=this._currentName)}getInput(e,t,i,n,r){const{start:a,end:h}=this._getSelection(e,t);this._renameCandidateProvidersCts=new o.A;const c=n(this._renameCandidateProvidersCts.token);this._updateRenameCandidates(c,t,r.token),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.L(e.startLineNumber,e.startColumn),this._currentName=t,this._input.domNode.value=t,this._input.domNode.setAttribute("selectionStart",a.toString()),this._input.domNode.setAttribute("selectionEnd",h.toString()),this._input.domNode.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset();const u=new l.SL;u.add((0,l.OF)((()=>r.dispose(!0)))),u.add((0,l.OF)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})));const g=new s.CR;return g.p.finally((()=>{u.dispose(),this._hide()})),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),g.complete(e),!0},this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,d.p_)(void 0!==this._renameCandidateListView);const n=this._renameCandidateListView.nCandidates;let s,o;const r=this._renameCandidateListView.focusedCandidate;void 0!==r?(this._trace("using new name from renameSuggestion"),s=r,o={k:"renameSuggestion"}):(this._trace("using new name from inputField"),s=this._input.domNode.value,o=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),s!==t&&0!==s.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),g.complete({newName:s,wantsPreview:i&&e,stats:{source:o,nRenameSuggestions:n,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},u.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),u.add(this._editor.onDidBlurEditorWidget((()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")}))),this._show(),g.p}_getSelection(e,t){(0,d.p_)(this._editor.hasModel());const i=this._editor.getSelection();let n=0,s=t.length;return m.e.isEmpty(i)||m.e.spansMultipleLines(i)||!m.e.containsRange(e,i)||(n=Math.max(0,i.startColumn-e.startColumn),s=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._input.domNode.focus(),this._input.domNode.setSelectionRange(parseInt(this._input.domNode.getAttribute("selectionStart")),parseInt(this._input.domNode.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){var n=this;const o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n._trace("_updateRenameCandidates",...t)};o("start");const r=await(0,s.eP)(Promise.allSettled(e),i);if(void 0===r)return void o("returning early - received updateRenameCandidates results - undefined");const a=r.flatMap((e=>"fulfilled"===e.status&&(0,d.$K)(e.value)?e.value:[]));o(`received updateRenameCandidates results - total (unfiltered) ${a.length} candidates.`);const l=R.EB(a,(e=>e.newSymbolName));o(`distinct candidates - ${l.length} candidates.`);const h=l.filter((e=>{let{newSymbolName:i}=e;return i.trim().length>0&&i!==this._input.domNode.value&&i!==t}));o(`valid distinct candidates - ${a.length} candidates.`),h.length<1?o("returning early - no valid distinct candidates"):(o("setting candidates"),this._renameCandidateListView.setCandidates(h),o("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];this._logService.trace("RenameWidget",...t)}};$=U([K(2,j.XE),K(3,W.d),K(4,x.i6),K(5,k.VZ)],$);class G{constructor(e,t){this._disposables=new l.SL,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),e.appendChild(this._listContainer),this._listWidget=G._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,H.TU)({listInactiveFocusForeground:z.NPS,listInactiveFocusBackground:z.Vqd}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout(e){let{height:t,width:i}=e;this._availableHeight=t,this._minimumWidth=i}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(e.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,n.i7((0,y.NC)("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();return 0===e.length?(this._listWidget.focusFirst(),!0):e[0]===this._listWidget.length-1?(this._listWidget.setFocus([]),!1):(this._listWidget.focusNext(),!0)}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();return 0===e.length?(this._listWidget.focusLast(),!0):0===e[0]?(this._listWidget.setFocus([]),!1):(this._listWidget.focusPrevious(),!0)}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=Z.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new Z(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new A.aV("NewSymbolNameCandidates",e,n,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Y{constructor(){this._onDidChange=new P.Q5,this.onDidChange=this._onDidChange.event,this._disposables=new l.SL}get domNode(){return this._domNode||(this._domNode=document.createElement("input"),this._domNode.className="rename-input",this._domNode.type="text",this._domNode.setAttribute("aria-label",(0,y.NC)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._disposables.add(I.nm(this._domNode,"input",(()=>this._onDidChange.fire())))),this._domNode}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}}class Z{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${Z._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,M.h)(O.l.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),(0,B.N)(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;const i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(V.w.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo(e){let{lineHeight:t}=e;return{totalHeight:t+2*Z._PADDING}}dispose(){}}Z._PADDING=2;var Q,X=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},J=function(e,t){return function(i,n){t(i,n,e)}};class ee{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const n=await i.resolveRenameLocation(this.model,this.position,e);if(n){if(!n.rejectReason)return n;t.push(n.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.e(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.e.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,n){const s=this._providers[t];if(!s)return{edits:[],rejectReason:i.join("\n")};const o=await s.provideRenameEdits(this.model,this.position,e,n);return o?o.rejectReason?this._provideRenameEdits(e,t+1,i.concat(o.rejectReason),n):o:this._provideRenameEdits(e,t+1,i.concat(y.NC("no result","No result.")),n)}}let te=Q=class{static get(e){return e.getContribution(Q.ID)}constructor(e,t,i,n,s,r,a,d,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=d,this._telemetryService=h,this._disposableStore=new l.SL,this._cts=new o.A,this._renameWidget=this._disposableStore.add(this._instaService.createInstance($,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;const i=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new o.A,!this.editor.hasModel())return void i("editor has no model");const l=this.editor.getPosition(),d=new ee(this.editor.getModel(),l,this._languageFeaturesService.renameProvider);if(!d.hasProvider())return void i("skeleton has no provider");const h=new b.Dl(this.editor,5,void 0,this._cts.token);let c;try{i("resolving rename location");const e=d.resolveRenameLocation(h.token);this._progressService.showWhile(e,250),c=await e,i("resolved rename location")}catch(w){return void(w instanceof r.FU?i("resolve rename location cancelled",JSON.stringify(w,null,"\t")):(i("resolve rename location failed",w instanceof Error?w:JSON.stringify(w,null,"\t")),("string"===typeof w||(0,a.Fr)(w))&&(null===(e=C.O.get(this.editor))||void 0===e||e.showMessage(w||y.NC("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),l))))}finally{h.dispose()}if(!c)return void i("returning early - no loc");if(c.rejectReason)return i(`returning early - rejected with reason: ${c.rejectReason}`,c.rejectReason),void(null===(t=C.O.get(this.editor))||void 0===t||t.showMessage(c.rejectReason,l));if(h.token.isCancellationRequested)return void i("returning early - cts1 cancelled");const u=new b.Dl(this.editor,5,c.range,this._cts.token),g=this.editor.getModel(),p=this._languageFeaturesService.newSymbolNamesProvider.all(g);i("creating rename input field and awaiting its result");const f=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),_=await this._renameWidget.getInput(c.range,c.text,f,(e=>p.map((t=>t.provideNewSymbolNames(g,c.range,e)))),u);if(i("received response from rename input field"),p.length>0&&this._reportTelemetry(p.length,g.getLanguageId(),_),"boolean"===typeof _)return i(`returning early - rename input field response - ${_}`),_&&this.editor.focus(),void u.dispose();this.editor.focus(),i("requesting rename edits");const v=(0,s.eP)(d.provideRenameEdits(_.newName,u.token),u.token).then((async e=>{if(e)if(this.editor.hasModel()){if(e.rejectReason)return i(`returning early - rejected with reason: ${e.rejectReason}`),void this._notificationService.info(e.rejectReason);this.editor.setSelection(m.e.fromPositions(this.editor.getSelection().getPosition())),i("applying edits"),this._bulkEditService.apply(e,{editor:this.editor,showPreview:_.wantsPreview,label:y.NC("label","Renaming '{0}' to '{1}'",null===c||void 0===c?void 0:c.text,_.newName),code:"undoredo.rename",quotableLabel:y.NC("quotableLabel","Renaming {0} to {1}",null===c||void 0===c?void 0:c.text,_.newName),respectAutoSaveConfig:!0}).then((e=>{i("edits applied"),e.ariaSummary&&(0,n.Z9)(y.NC("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",c.text,_.newName,e.ariaSummary))})).catch((e=>{i(`error when applying edits ${JSON.stringify(e,null,"\t")}`),this._notificationService.error(y.NC("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))}else i("returning early - no model after rename edits are provided");else i("returning early - no rename edits result")}),(e=>{i("error when providing rename edits",JSON.stringify(e,null,"\t")),this._notificationService.error(y.NC("rename.failed","Rename failed to compute edits")),this._logService.error(e)})).finally((()=>{u.dispose()}));return i("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const n="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview};this._telemetryService.publicLog2("renameInvokedEvent",n)}};te.ID="editor.contrib.renameController",te=Q=X([J(1,L.TG),J(2,D.lT),J(3,u.vu),J(4,N.ek),J(5,k.VZ),J(6,v.V),J(7,_.p),J(8,T.b)],te);class ie extends c.R6{constructor(){super({id:"editor.action.rename",label:y.NC("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:x.Ao.and(f.u.writable,f.u.hasRenameProvider),kbOpts:{kbExpr:f.u.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.$),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return h.o.isUri(n)&&p.L.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(s),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),r.dL):super.runCommand(e,t)}run(e,t){const i=e.get(k.VZ),n=te.get(t);return n?(i.trace("[RenameAction] got controller, running..."),n.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,c._K)(te.ID,te,4),(0,c.Qr)(ie);const ne=c._l.bindToContribution(te.get);(0,c.fK)(new ne({id:"acceptRenameInput",precondition:q,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:x.Ao.and(f.u.focus,x.Ao.not("isComposing")),primary:3}})),(0,c.fK)(new ne({id:"acceptRenameInputWithPreview",precondition:x.Ao.and(q,x.Ao.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:x.Ao.and(f.u.focus,x.Ao.not("isComposing")),primary:2051}})),(0,c.fK)(new ne({id:"cancelRenameInput",precondition:q,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.u.focus,primary:9,secondary:[1033]}})),(0,w.r1)(class extends w.Ke{constructor(){super({id:"focusNextRenameSuggestion",title:{...y.vv("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:q,keybinding:[{primary:2,secondary:[18],weight:199}]})}run(e){const t=e.get(g.$).getFocusedCodeEditor();if(!t)return;const i=te.get(t);i&&i.focusNextRenameSuggestion()}}),(0,w.r1)(class extends w.Ke{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...y.vv("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:q,keybinding:[{primary:1026,secondary:[16],weight:199}]})}run(e){const t=e.get(g.$).getFocusedCodeEditor();if(!t)return;const i=te.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,c.sb)("_executeDocumentRenameProvider",(function(e,t,i){for(var n=arguments.length,s=new Array(n>3?n-3:0),r=3;r<n;r++)s[r-3]=arguments[r];const[a]=s;(0,d.p_)("string"===typeof a);const{renameProvider:l}=e.get(_.p);return async function(e,t,i,n){const s=new ee(t,i,e),r=await s.resolveRenameLocation(o.T.None);return(null===r||void 0===r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:s.provideRenameEdits(n,o.T.None)}(l,t,i,a)})),(0,c.sb)("_executePrepareRename",(async function(e,t,i){const{renameProvider:n}=e.get(_.p),s=new ee(t,i,n),r=await s.resolveRenameLocation(o.T.None);if(null===r||void 0===r?void 0:r.rejectReason)throw new Error(r.rejectReason);return r})),E.B.as(S.IP.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:y.NC("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},97737:(e,t,i)=>{"use strict";var n=i(53372),s=i(53186),o=i(60548),r=i(5580),a=i(13277),l=i(69115),d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};let c=class extends s.JT{constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{var i;const n=null===(i=this.editor.getModel())||void 0===i?void 0:i.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this.computeSectionHeaders=this._register(new n.pY((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,n=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||(null===n||void 0===n?void 0:n.markers)?{foldingRules:n,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){var e,t;if(!this.editor.hasModel()||!(null===(e=this.options)||void 0===e?void 0:e.findMarkSectionHeaders)&&!(null===(t=this.options)||void 0===t?void 0:t.findRegionSectionHeaders))return;const i=this.editor.getModel();if(i.isDisposed()||i.isTooLargeForSyncing())return;const n=i.getVersionId();this.editorWorkerService.findSectionHeaders(i.uri,this.options).then((e=>{i.isDisposed()||i.getVersionId()!==n||this.updateDecorations(e)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),n=t.tokenization.getLineTokens(i.startLineNumber),s=n.findTokenIndexAtOffset(i.startColumn-1),o=n.getStandardTokenType(s);return n.getLanguageId(s)===t.getLanguageId()&&1===o})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),n=e.map((e=>function(e){return{range:e.range,options:a.qx.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={};for(let i=0,n=s.length;i<n;i++){const t={sectionHeader:e[i],decorationId:s[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};c.ID="editor.sectionHeaderDetector",c=d([h(1,r.c_),h(2,l.p)],c),(0,o._K)(c.ID,c,1)},89489:(e,t,i)=>{"use strict";var n,s=i(53186),o=i(16015),r=i(23058),a=i(30600),l=i(53372),d=i(76946),h=i(46673),c=i(4085),u=i(28020),g=i(14386),p=i(6617),m=i(53869),f=i(15688),_=i(26993),v=i(38573),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};let y=class extends s.JT{constructor(e,t,i,n,s,o){super(),this._watchers=Object.create(null);const r=t=>{this._watchers[t.uri.toString()]=new w(t,e,i,s,o)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.t)(e,i,n)?t||r(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.t)(e,i,n)&&r(e)})),this._register(t.onModelAdded((e=>{(0,v.t)(e,i,n)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(n.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.e)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};y=b([C(0,f.s),C(1,r.q),C(2,h.XE),C(3,a.Ui),C(4,g.A),C(5,m.p)],y);let w=n=class extends s.JT{constructor(e,t,i,o,r){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentSemanticTokens",{min:n.REQUEST_MIN_DELAY,max:n.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new l.pY((()=>this._fetchDocumentSemanticTokensNow()),n.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,s.B9)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,s.B9)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.Jc)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new d.A,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=(0,u.ML)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const s=[],r=this._model.onDidChangeContent((e=>{s.push(e)})),a=new p.G(!1);n.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,n,s)}else this._setDocumentSemanticTokens(null,null,null,s)}),(e=>{e&&(o.n2(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||o.dL(e),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(s.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let o=0;o<s;o++)i[n+o]=e[t+o]}_setDocumentSemanticTokens(e,t,i,s){const o=this._currentDocumentResponse,r=()=>{(s.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void r();if((0,u.Vj)(t)){if(!o)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const s=o.data,r=new Uint32Array(s.length+e);let a=s.length,l=r.length;for(let d=t.edits.length-1;d>=0;d--){const e=t.edits[d];if(e.start>s.length)return i.warnInvalidEditStart(o.resultId,t.resultId,d,e.start,s.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(n._copy(s,a-h,r,l-h,h),l-=h),e.data&&(n._copy(e.data,0,r,l-e.data.length,e.data.length),l-=e.data.length),a=e.start}a>0&&n._copy(s,0,r,0,a),t={resultId:t.resultId,data:r}}}if((0,u.Vl)(t)){this._currentDocumentResponse=new S(e,t.resultId,t.data);const n=(0,c.h)(t,i,this._model.getLanguageId());if(s.length>0)for(const e of s)for(const t of n)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(n,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}else this._model.tokenization.setSemanticTokens(null,!1)}};w.REQUEST_MIN_DELAY=300,w.REQUEST_MAX_DELAY=2e3,w=n=b([C(1,f.s),C(2,h.XE),C(3,g.A),C(4,m.p)],w);class S{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.y)(y)},78201:(e,t,i)=>{"use strict";var n=i(53372),s=i(53186),o=i(60548),r=i(28020),a=i(38573),l=i(4085),d=i(30600),h=i(46673),c=i(14386),u=i(6617),g=i(53869),p=i(15688),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=class extends s.JT{constructor(e,t,i,s,o,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=s,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new n.pY((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.e)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.t)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,r.KO)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),s=(0,n.PG)((i=>Promise.resolve((0,r.OG)(this._provider,e,t,i)))),o=new u.G(!1);return s.then((n=>{if(this._debounceInformation.update(e,o.elapsed()),!n||!n.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:s,tokens:r}=n,a=this._semanticTokensStylingService.getStyling(s);e.tokenization.setPartialSemanticTokens(t,(0,l.h)(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(s)),(()=>this._removeOutstandingRequest(s))),s}};_.ID="editor.contrib.viewportSemanticTokens",_=m([f(1,p.s),f(2,h.XE),f(3,d.Ui),f(4,c.A),f(5,g.p)],_),(0,o._K)(_.ID,_,1)},28020:(e,t,i)=>{"use strict";i.d(t,{OG:()=>w,ML:()=>v,KO:()=>C,Jc:()=>_,Vl:()=>p,Vj:()=>m});var n=i(76946),s=i(16015),o=i(91387),r=i(23058),a=i(94943),l=i(47624),d=i(9730),h=i(90388);function c(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return h.r()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],n=e[t+1],s=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=s,e[t+2]=n,e[t+3]=i}}(t),d.KN.wrap(t)}(t)}var u=i(28928),g=i(53869);function p(e){return e&&!!e.data}function m(e){return e&&Array.isArray(e.edits)}class f{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function _(e,t){return e.has(t)}async function v(e,t,i,n,s){const o=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),r=await Promise.all(o.map((async e=>{let o,r=null;try{o=await e.provideDocumentSemanticTokens(t,e===i?n:null,s)}catch(a){r=a,o=null}return o&&(p(o)||m(o))||(o=null),new f(e,o,r)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null}class b{constructor(e,t){this.provider=e,this.tokens=t}}function C(e,t){return e.has(t)}function y(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function w(e,t,i,n){const o=y(e,t),r=await Promise.all(o.map((async e=>{let o;try{o=await e.provideDocumentRangeSemanticTokens(t,i,n)}catch(r){(0,s.Cp)(r),o=null}return o&&p(o)||(o=null),new b(e,o)})));for(const s of r)if(s.tokens)return s;return r.length>0?r[0]:null}a.P.registerCommand("_provideDocumentSemanticTokensLegend",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[s]=i;(0,l.p_)(s instanceof o.o);const d=e.get(r.q).getModel(s);if(!d)return;const{documentSemanticTokensProvider:h}=e.get(g.p),c=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(h,d);return c?c[0].getLegend():e.get(a.H).executeCommand("_provideDocumentRangeSemanticTokensLegend",s)})),a.P.registerCommand("_provideDocumentSemanticTokens",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[d]=i;(0,l.p_)(d instanceof o.o);const h=e.get(r.q).getModel(d);if(!h)return;const{documentSemanticTokensProvider:u}=e.get(g.p);if(!_(u,h))return e.get(a.H).executeCommand("_provideDocumentRangeSemanticTokens",d,h.getFullModelRange());const m=await v(u,h,null,null,n.T.None);if(!m)return;const{provider:f,tokens:b}=m;if(!b||!p(b))return;const C=c({id:0,type:"full",data:b.data});return b.resultId&&f.releaseDocumentSemanticTokens(b.resultId),C})),a.P.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[a,d]=i;(0,l.p_)(a instanceof o.o);const h=e.get(r.q).getModel(a);if(!h)return;const{documentRangeSemanticTokensProvider:c}=e.get(g.p),p=y(c,h);if(0===p.length)return;if(1===p.length)return p[0].getLegend();if(!d||!u.e.isIRange(d))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),p[0].getLegend();const m=await w(c,h,u.e.lift(d),n.T.None);return m?m.provider.getLegend():void 0})),a.P.registerCommand("_provideDocumentRangeSemanticTokens",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[a,d]=i;(0,l.p_)(a instanceof o.o),(0,l.p_)(u.e.isIRange(d));const h=e.get(r.q).getModel(a);if(!h)return;const{documentRangeSemanticTokensProvider:p}=e.get(g.p),m=await w(p,h,u.e.lift(d),n.T.None);return m&&m.tokens?c({id:0,type:"full",data:m.tokens.data}):void 0}))},38573:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,t:()=>s});const n="editor.semanticHighlighting";function s(e,t,i){var s;const o=null===(s=i.getValue(n,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===s?void 0:s.enabled;return"boolean"===typeof o?o:t.getColorTheme().semanticHighlighting}},6880:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var n=i(64450),s=i(74633),o=i(28928);class r{async provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t);const s=new Map;await new Promise((t=>r._bracketsRightYield(t,0,e,n,s))),await new Promise((i=>r._bracketsLeftYield(i,0,e,n,s,t)))}return i}static _bracketsRightYield(e,t,i,s,o){const a=new Map,l=Date.now();for(;;){if(t>=r._maxRounds){e();break}if(!s){e();break}const d=i.bracketPairs.findNextBracket(s);if(!d){e();break}if(Date.now()-l>r._maxDuration){setTimeout((()=>r._bracketsRightYield(e,t+1,i,s,o)));break}if(d.bracketInfo.isOpeningBracket){const e=d.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=d.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=o.get(e);t||(t=new n.S,o.set(e,t)),t.push(d.range)}}s=d.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,s,a){const l=new Map,d=Date.now();for(;;){if(t>=r._maxRounds&&0===s.size){e();break}if(!n){e();break}const h=i.bracketPairs.findPrevBracket(n);if(!h){e();break}if(Date.now()-d>r._maxDuration){setTimeout((()=>r._bracketsLeftYield(e,t+1,i,n,s,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.set(e,Math.max(0,t)),t<0){const t=s.get(e);if(t){const n=t.shift();0===t.size&&s.delete(e);const l=o.e.fromPositions(h.range.getEndPosition(),n.getStartPosition()),d=o.e.fromPositions(h.range.getStartPosition(),n.getEndPosition());a.push({range:l}),a.push({range:d}),r._addBracketLeading(i,d,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.set(e,t+1)}n=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(n);0!==r&&r!==t.startColumn&&(i.push({range:o.e.fromPositions(new s.L(n,r),t.getEndPosition())}),i.push({range:o.e.fromPositions(new s.L(n,1),t.getEndPosition())}));const a=n-1;if(a>0){const n=e.getLineFirstNonWhitespaceColumn(a);n===t.startColumn&&n!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:o.e.fromPositions(new s.L(a,n),t.getEndPosition())}),i.push({range:o.e.fromPositions(new s.L(a,1),t.getEndPosition())}))}}}r._maxDuration=30,r._maxRounds=2},79908:(e,t,i)=>{"use strict";var n=i(51833),s=i(76946),o=i(16015),r=i(60548),a=i(74633),l=i(28928),d=i(24854),h=i(35770),c=i(6880),u=i(78701);class g{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:o}=n,r=i.column-o;let a=r,d=r,h=0;for(;a>=0;a--){const e=s.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if((0,u.mK)(e)&&(0,u.df)(h))break;h=e}for(a+=1;d<s.length;d++){const e=s.charCodeAt(d);if((0,u.df)(e)&&(0,u.mK)(h))break;if(95===e||45===e)break;h=e}a<d&&e.push({range:new l.e(i.lineNumber,o+a,i.lineNumber,o+d)})}_addWordRanges(e,t,i){const n=t.getWordAtPosition(i);n&&e.push({range:new l.e(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new l.e(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(5887),f=i(6178),_=i(94943),v=i(53869),b=i(43537),C=i(47624),y=i(91387),w=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};class x{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new x(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let L=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await D(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(113),s.T.None).then((e=>{var i;if(n.Of(e)&&e.length===t.length&&this._editor.hasModel()&&n.fS(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new x(0,e))),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const o=this._state.map((e=>d.Y.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}};L.ID="editor.contrib.smartSelectController",L=p=w([S(1,v.p)],L);class k extends r.R6{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=L.get(t);i&&await i.run(this._forward)}}_.P.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function D(e,t,i,s,r){const d=e.all(t).concat(new g(s.selectSubwords));1===d.length&&d.unshift(new c.x);const h=[],u=[];for(const a of d)h.push(Promise.resolve(a.provideSelectionRanges(t,i,r)).then((e=>{if(n.Of(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const n of e[t])l.e.isIRange(n.range)&&l.e.containsPosition(n.range,i[t])&&u[t].push(l.e.lift(n.range))}}),o.Cp));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.L.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.L.isBefore(t.getStartPosition(),e.getStartPosition())||a.L.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.L.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let n;for(const t of e)(!n||l.e.containsRange(t,n)&&!l.e.equalsRange(t,n))&&(i.push(t),n=t);if(!s.selectLeadingAndTrailingWhitespace)return i;const o=[i[0]];for(let s=1;s<i.length;s++){const e=i[s-1],n=i[s];if(n.startLineNumber!==e.startLineNumber||n.endLineNumber!==e.endLineNumber){const i=new l.e(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&n.containsRange(i)&&!n.equalsRange(i)&&o.push(i);const s=new l.e(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));s.containsRange(e)&&!s.equalsRange(i)&&n.containsRange(s)&&!n.equalsRange(s)&&o.push(s)}o.push(n)}return o}))}(0,r._K)(L.ID,L,4),(0,r.Qr)(class extends k{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.NC("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.u.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.eH.MenubarSelectionMenu,group:"1_basic",title:m.NC({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,r.Qr)(class extends k{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.NC("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.u.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.eH.MenubarSelectionMenu,group:"1_basic",title:m.NC({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.P.registerCommand("_executeSelectionRangeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[o,r]=i;(0,C.p_)(y.o.isUri(o));const a=e.get(v.p).selectionRangeProvider,l=await e.get(b.S).createModelReference(o);try{return D(a,l.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},s.T.None)}finally{l.dispose()}}))},67017:(e,t,i)=>{"use strict";i.d(t,{f:()=>b});var n,s=i(53186),o=i(47624),r=i(60548),a=i(74633),l=i(35770),d=i(5580),h=i(53869),c=i(34042),u=i(5887),g=i(47116),p=i(33454),m=i(32676),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let b=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,o,r){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=r,this._snippetListener=new s.SL,this._modelVersionId=-1,this._inSnippet=n.InSnippetMode.bindTo(o),this._hasNextTabstop=n.HasNextTabstop.bindTo(o),this._hasPrevTabstop=n.HasPrevTabstop.bindTo(o)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,o.p_)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.l(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.L.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const n=e.getValueInRange(i.range),s=Boolean(i.choice.options.find((e=>e.value===n))),o=[];for(let r=0;r<i.choice.options.length;r++){const e=i.choice.options[r];o.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(r+1),range:i.range,filterText:s?`${n}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.NC)("next","Go to next placeholder...")}})}return{suggestions:o}}},t=this._editor.getModel();let i,n=!1;const s=()=>{null===i||void 0===i||i.dispose(),n=!1},o=()=>{n||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),n=!0)};this._choiceCompletions={provider:e,enable:o,disable:s}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:t}=this._session;if(!t||!this._choiceCompletions)return null===(e=this._choiceCompletions)||void 0===e||e.disable(),void(this._currentChoice=void 0);this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,c.i5)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};b.ID="snippetController2",b.InSnippetMode=new g.uy("inSnippetMode",!1,(0,u.NC)("inSnippetMode","Whether the editor in current in snippet mode")),b.HasNextTabstop=new g.uy("hasNextTabstop",!1,(0,u.NC)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),b.HasPrevTabstop=new g.uy("hasPrevTabstop",!1,(0,u.NC)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),b=n=f([_(1,p.VZ),_(2,h.p),_(3,g.i6),_(4,d.c_)],b),(0,r._K)(b.ID,b,4);const C=r._l.bindToContribution(b.get);(0,r.fK)(new C({id:"jumpToNextSnippetPlaceholder",precondition:g.Ao.and(b.InSnippetMode,b.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:l.u.editorTextFocus,primary:2}})),(0,r.fK)(new C({id:"jumpToPrevSnippetPlaceholder",precondition:g.Ao.and(b.InSnippetMode,b.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:l.u.editorTextFocus,primary:1026}})),(0,r.fK)(new C({id:"leaveSnippet",precondition:b.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:l.u.editorTextFocus,primary:9,secondary:[1033]}})),(0,r.fK)(new C({id:"acceptSnippet",precondition:b.InSnippetMode,handler:e=>e.finish()}))},86532:(e,t,i)=>{"use strict";i.d(t,{Lv:()=>l,Vm:()=>a,Yj:()=>p,xv:()=>o,y1:()=>g});class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,s=this.value.charCodeAt(e);if(t=n._table[s],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(n.isDigitCharacter(s)){t=8;do{i+=1,s=this.value.charCodeAt(e+i)}while(n.isDigitCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}if(n.isVariableCharacter(s)){t=9;do{s=this.value.charCodeAt(e+ ++i)}while(n.isVariableCharacter(s)||n.isDigitCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,s=this.value.charCodeAt(e+i)}while(!isNaN(s)&&"undefined"===typeof n._table[s]&&!n.isDigitCharacter(s)&&!n.isVariableCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}}n._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class s{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class o extends s{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new o(this.value)}}class r extends s{}class a extends r{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class l extends s{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new l;return this.options.forEach(e.appendChild,e),e}}class d extends s{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new d;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends s{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class c extends r{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}clone(){const e=new c(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends s{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((n=>n===e?(i=!0,!1):(t+=n.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof c&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new g;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!==i&&void 0!==i&&i,null!==t&&void 0!==t&&t),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):s.push(e)),!0)));const o=(e,i)=>{const s=n.get(e.index);if(!s)return;const r=new a(e.index);r.transform=e.transform;for(const t of s){const e=t.clone();r.appendChild(e),e instanceof a&&n.has(e.index)&&!i.has(e.index)&&(i.add(e.index),o(e,i),i.delete(e.index))}t.replace(e,[r])},r=new Set;for(const a of s)o(a,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new c(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new c(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new d;let i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(s){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(n))),!0;if(this._accept(4))return e.appendChild(new h(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(n),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},32676:(e,t,i)=>{"use strict";i.d(t,{l:()=>P});var n=i(51833),s=i(53186),o=i(78701),r=i(56154),a=i(28928),l=i(24854),d=i(5580),h=i(13277),c=i(60297),u=i(99818),g=i(86532),p=i(51082),m=i(90388);function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.ED;return(0,p.oP)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(96682),v=i(30506),b=i(94913),C=i(5887),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class S{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class x{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),n=(0,o.V8)(i,0,this._selection.startColumn-1);let s=n;e.snippet.walk((t=>t!==e&&(t instanceof g.xv&&(s=(0,o.V8)((0,o.uq)(t.value).pop())),!0)));const r=(0,o.Mh)(s,n);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${s.substr(r)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class L{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.EZ(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.EZ(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.XX(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.XX)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class k{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,o.m5)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let D=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n)return"LINE_COMMENT"===t?n.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?n.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&n.blockCommentEndToken||void 0}};D=y([w(2,d.c_)],D);class N{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return N.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return N.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return N.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return N.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),n=i<10?"0"+i:i,s=Math.abs(e)-60*i;return t+n+":"+(s<10?"0"+s:s)}}}N.dayNames=[C.NC("Sunday","Sunday"),C.NC("Monday","Monday"),C.NC("Tuesday","Tuesday"),C.NC("Wednesday","Wednesday"),C.NC("Thursday","Thursday"),C.NC("Friday","Friday"),C.NC("Saturday","Saturday")],N.dayNamesShort=[C.NC("SundayShort","Sun"),C.NC("MondayShort","Mon"),C.NC("TuesdayShort","Tue"),C.NC("WednesdayShort","Wed"),C.NC("ThursdayShort","Thu"),C.NC("FridayShort","Fri"),C.NC("SaturdayShort","Sat")],N.monthNames=[C.NC("January","January"),C.NC("February","February"),C.NC("March","March"),C.NC("April","April"),C.NC("May","May"),C.NC("June","June"),C.NC("July","July"),C.NC("August","August"),C.NC("September","September"),C.NC("October","October"),C.NC("November","November"),C.NC("December","December")],N.monthNamesShort=[C.NC("JanuaryShort","Jan"),C.NC("FebruaryShort","Feb"),C.NC("MarchShort","Mar"),C.NC("AprilShort","Apr"),C.NC("MayShort","May"),C.NC("JuneShort","Jun"),C.NC("JulyShort","Jul"),C.NC("AugustShort","Aug"),C.NC("SeptemberShort","Sep"),C.NC("OctoberShort","Oct"),C.NC("NovemberShort","Nov"),C.NC("DecemberShort","Dec")];class E{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.uT)(this._workspaceService.getWorkspace());return(0,u.c$)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.eb)(e))return _.EZ(e.uri.path);let t=_.EZ(e.configPath.path);return t.endsWith(u.A6)&&(t=t.substr(0,t.length-u.A6.length-1)),t}_resoveWorkspacePath(e){if((0,u.eb)(e))return f(e.uri.fsPath);const t=_.EZ(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class T{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,b.R)():void 0}}var I,M=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,n.vM)(t.placeholders,g.Vm.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),s=this._snippet.fullLen(i),o=a.e.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+s)),r=i.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive,l=t.addDecoration(o,r);this._placeholderDecorations.set(i,l)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(i),s=this._editor.getModel().getValueInRange(n),o=t.transform.resolve(s).split(/\r\n|\r|\n/);for(let e=1;e<o.length;e++)o[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+o[e]);e.push(r.h.replace(n,o.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,n=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const o=this._placeholderDecorations.get(s),r=this._editor.getModel().getDecorationRange(o);n.push(new l.Y(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(s),e.changeDecorationOptions(o,s.isFinalTabstop?R._decor.activeFinal:R._decor.active),i.add(s);for(const t of this._snippet.enclosingPlaceholders(s)){const n=this._placeholderDecorations.get(t);e.changeDecorationOptions(n,t.isFinalTabstop?R._decor.activeFinal:R._decor.active),i.add(t)}}for(const[t,s]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(s,t.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive);return n}));return t?this.move(e):null!==i&&void 0!==i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Vm){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const t=this._placeholderDecorations.get(n),s=this._editor.getModel().getDecorationRange(t);if(!s){e.delete(n.index);break}i.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null===e||void 0===e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.Lv,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(-1!==s._offset),console.assert(!s._placeholderDecorations);const o=s._snippet.placeholderInfo.last.index;for(const e of s._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(o+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,s._snippet.children);const r=this._placeholderDecorations.get(n);i.removeDecoration(r),this._placeholderDecorations.delete(n);for(const e of s._snippet.placeholders){const n=s._snippet.offset(e),o=s._snippet.fullLen(e),r=a.e.fromPositions(t.getPositionAt(s._offset+n),t.getPositionAt(s._offset+n+o)),l=i.addDecoration(r,R._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=(0,n.vM)(this._snippet.placeholders,g.Vm.compareByIndex)}))}}R._decor={active:h.qx.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.qx.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.qx.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.qx.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const O={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=I=class{static adjustWhitespace(e,t,i,n,s){const r=e.getLineContent(t.lineNumber),a=(0,o.V8)(r,0,t.column-1);let l;return n.walk((t=>{if(!(t instanceof g.xv)||t.parent instanceof g.Lv)return!0;if(s&&!s.has(t))return!0;const o=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)o[0]=e.normalizeIndentation(o[0]);else{l=null!==l&&void 0!==l?l:n.toString();const t=l.charCodeAt(i-1);10!==t&&13!==t||(o[0]=e.normalizeIndentation(a+o[0]))}for(let t=1;t<o.length;t++)o[t]=e.normalizeIndentation(a+o[t])}const r=o.join(e.getEOL());return r!==t.value&&(t.parent.replace(t,[new g.xv(r)]),l=void 0),!0})),a}static adjustSelection(e,t,i,n){if(0!==i||0!==n){const{positionLineNumber:s,positionColumn:o}=t,r=o-i,a=o+n,d=e.validateRange({startLineNumber:s,startColumn:r,endLineNumber:s,endColumn:a});t=l.Y.createWithDirection(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,n,s,o,l,d,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.ec))),v=e.invokeWithinContext((e=>new L(e.get(c.e),f))),b=()=>l,C=f.getValueInRange(I.adjustSelection(f,e.getSelection(),i,0)),y=f.getValueInRange(I.adjustSelection(f,e.getSelection(),0,n)),w=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),M=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.e.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:c}of M){let l=I.adjustSelection(f,a,i,0),u=I.adjustSelection(f,a,0,n);C!==f.getValueInRange(l)&&(l=a),y!==f.getValueInRange(u)&&(u=a);const L=a.setStartPosition(l.startLineNumber,l.startColumn).setEndPosition(u.endLineNumber,u.endColumn),A=(new g.Yj).parse(t,!0,s),O=L.getStartPosition(),P=I.adjustWhitespace(f,O,o||c>0&&w!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),A);A.resolveVariables(new S([v,new k(b,c,M.length,"spread"===e.getOption(79)),new x(f,a,c,d),new D(f,a,h),new N,new E(_),new T])),p[c]=r.h.replace(L,A.toString()),p[c].identifier={major:c,minor:0},p[c]._isTracked=!0,m[c]=new R(e,A,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,n,s,o,l){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const d=[],h=e.getModel(),p=new g.Yj,m=new g.y1,f=new S([e.invokeWithinContext((e=>new L(e.get(c.e),h))),new k((()=>s),0,e.getSelections().length,"spread"===e.getOption(79)),new x(h,e.getSelection(),0,o),new D(h,e.getSelection(),l),new N,new E(e.invokeWithinContext((e=>e.get(u.ec)))),new T]);t=t.sort(((e,t)=>a.e.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let c=0;c<t.length;c++){const{range:e,template:i}=t[c];if(c>0){const i=t[c-1].range,n=a.e.fromPositions(i.getEndPosition(),e.getStartPosition()),s=new g.xv(h.getValueInRange(n));m.appendChild(s),_+=s.value.length}const n=p.parseFragment(i,m);I.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(n)),m.resolveVariables(f);const s=m.toString(),o=s.slice(_);_=s.length;const l=r.h.replace(e,o);l.identifier={major:c,minor:0},l._isTracked=!0,d.push(l)}return p.ensureFinalTabstop(m,i,!0),{edits:d,snippets:[new R(e,m,"")]}}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,n=arguments.length>3?arguments[3]:void 0;this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){(0,s.B9)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?I.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):I.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let n=0;n<t.length;n++)t[n].initialize(i[n].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>l.Y.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O;if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=I.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let s=0;s<n.length;s++)n[s].initialize(t[s].textChange);const i=n[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(n);console.assert(0===n.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>l.Y.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const n=i.computePossibleSelections();if(0===t.size)for(const[i,s]of n){s.sort(a.e.compareRangesUsingStarts);for(const n of e)if(s[0].containsRange(n)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...n.get(t))}))}e.sort(a.e.compareRangesUsingStarts);for(const[i,n]of t)if(n.length===e.length){n.sort(a.e.compareRangesUsingStarts);for(let s=0;s<n.length;s++)n[s].containsRange(e[s])||t.delete(i)}else t.delete(i);return t.size>0}};P=I=M([A(3,d.c_)],P)},34338:(e,t,i)=>{"use strict";var n=i(60548),s=i(5887);const o=Object.freeze({View:(0,s.vv)("view","View"),Help:(0,s.vv)("help","Help"),Test:(0,s.vv)("test","Test"),File:(0,s.vv)("file","File"),Preferences:(0,s.vv)("preferences","Preferences"),Developer:(0,s.vv)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var r=i(6178),a=i(30600),l=i(47116),d=i(35770),h=i(53186),c=i(53869),u=i(76595),g=i(58296),p=i(51833),m=i(73045),f=i(13056),_=i(2822),v=i(74633),b=i(130),C=i(21770),y=i(97869),w=i(10960);class S{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=n}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.fS)(this.startLineNumbers,e.startLineNumbers)&&(0,p.fS)(this.endLineNumbers,e.endLineNumbers)}}const x=(0,g.Z)("stickyScrollViewLayer",{createHTML:e=>e}),L="data-sticky-line-index",k="data-sticky-is-line",D="data-sticky-is-folding-icon";class N extends h.JT{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.SL,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.H),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(115).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const n=this._isWidgetHeightZero(e),s=n?void 0:e,o=n?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(s,t,o),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,n=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===n?0:n}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const r of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(r);const n=this._editor.getLayoutInfo(),s=this._lineNumbers.slice(i);for(const[r,a]of s.entries()){const e=this._renderChildNode(r+i,a,t,n);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const o=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${o}px`,this._linesDomNodeScrollable.style.height=`${o}px`,this._rootDomNode.style.height=`${o}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+n.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(110)&&(this._foldingIconStore.add(u.nm(this._lineNumbersDomNode,u.tw.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.nm(this._lineNumbersDomNode,u.tw.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,n){const s=this._editor._getViewModel();if(!s)return;const o=s.coordinatesConverter.convertModelPositionToViewPosition(new v.L(t,1)).lineNumber,r=s.getViewLineRenderingData(o),a=this._editor.getOption(68);let l;try{l=C.Kp.filter(r.inlineDecorations,o,r.minColumn,r.maxColumn)}catch(S){l=[]}const d=new y.IJ(!0,!0,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,0,r.tokens,l,r.tabSize,r.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new b.HT(2e3),c=(0,y.d1)(d,h);let u;u=x?x.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(L,String(e)),g.setAttribute(k,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(L,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=n.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${n.lineNumbersWidth}px`,f.style.paddingLeft=`${n.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const w=new E(e,t,g,p,_,c.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(w)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,s=e.lineNumberDomNode,o=i===this._lineNumbers.length-1;n.style.zIndex=o?"0":"1",s.style.zIndex=o?"0":"1";const r=`${i*this._lineHeight+this._lastLineRelativePosition+((null===(t=e.foldingIcon)||void 0===t?void 0:t.isCollapsed)?1:0)}px`,a=i*this._lineHeight+"px";return n.style.top=o?r:a,s.style.top=o?r:a,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(110);if(!e||"never"===i)return;const n=e.regions,s=n.findRange(t),o=n.getStartLineNumber(s);if(!(t===o))return;const r=n.isCollapsed(s),a=new T(r,o,n.getEndLineNumber(s),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(r||"always"===i)),a.domNode.setAttribute(D,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.dL)(t.characterMapping,e,0);return new v.L(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return null!==(i=null===(t=this._getRenderedStickyLineFromChildDomNode(e))||void 0===t?void 0:t.lineNumber)&&void 0!==i?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,L);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,k)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,D)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class E{constructor(e,t,i,n,s,o,r){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=s,this.characterMapping=o,this.scrollWidth=r}}class T{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=m.k.asClassName(e?w.f5:w.Iy)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var I=i(76946),M=i(53372),A=i(39706),R=i(5580),O=i(9895),P=i(63776),F=i(2943),B=i(44687),V=i(16015);class W{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class H{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class z{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var j,U,K=i(2706),q=i(87775),$=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},G=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(j||(j={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(U||(U={}));let Y=class extends h.JT{constructor(e,t,i,n){switch(super(),this._editor=e,this._languageConfigurationService=i,this._languageFeaturesService=n,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new M.vp(300)),this._updateOperation=this._register(new h.SL),this._editor.getOption(115).defaultModel){case j.OUTLINE_MODEL:this._modelProviders.push(new Q(this._editor,n));case j.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,n));case j.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:n}=t.computeStickyModel(e);this._modelPromise=n;const s=await i;if(this._modelPromise!==n)return null;switch(s){case U.CANCELED:return this._updateOperation.clear(),null;case U.VALID:return t.stickyModel}}return null})).catch((e=>((0,V.dL)(e),null)))}};Y=$([G(2,q.TG),G(3,c.p)],Y);class Z extends h.JT{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,U.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,M.PG)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?U.CANCELED:(this._stickyModel=this.createStickyModel(e,t),U.VALID):this._invalid())).then(void 0,(e=>((0,V.dL)(e),U.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let Q=class extends Z{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return O.C3.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){var i;const{stickyOutlineElement:n,providerID:s}=this._stickyModelFromOutlineModel(t,null===(i=this._stickyModel)||void 0===i?void 0:i.outlineProviderId),o=this._editor.getModel();return new z(o.uri,o.getVersionId(),n,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(K.$.first(e.children.values())instanceof O.H3){const n=K.$.find(e.children.values(),(e=>e.id===t));if(n)i=n.children;else{let n,s="",o=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>o&&(n=i,o=e,s=i.id)}t=s,i=n.children}}else i=e.children;const n=[],s=Array.from(i.values()).sort(((e,t)=>{const i=new W(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),n=new W(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,n)}));for(const o of s)n.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new H(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const s of e.children.values())if(s.symbol.selectionRange.startLineNumber!==s.symbol.range.endLineNumber)if(s.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(s,s.symbol.selectionRange.startLineNumber));else for(const e of s.children.values())i.push(this._stickyModelFromOutlineElement(e,s.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const n=new W(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new H(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof O.sT?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};Q=$([G(1,c.p)],Q);class X extends Z{constructor(e){super(e),this._foldingLimitReporter=new P.n(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),n=this._editor.getModel();return new z(n.uri,n.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],n=new H(void 0,[],void 0);for(let s=0;s<t;s++){const t=e.getParentIndex(s);let o;o=-1!==t?i[t]:n;const r=new H(new W(e.getStartLineNumber(s),e.getEndLineNumber(s)+1),[],o);o.children.push(r),i.push(r)}return n}}let J=class extends X{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new B.aI(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=$([G(1,R.c_)],J);let ee=class extends X{constructor(e,t,i){super(e),this._languageFeaturesService=i;const n=P.f.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());n.length>0&&(this.provider=this._register(new F.e(e.getModel(),n,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){var t,i;return null!==(i=null===(t=this.provider)||void 0===t?void 0:t.compute(e))&&void 0!==i?i:null}};ee=$([G(2,c.p)],ee);var te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};class ne{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let se=class extends h.JT{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new A.Q5),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.SL),this._updateSoon=this._register(new M.pY((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(115).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.OF)((()=>{var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){var e;return null===(e=this._model)||void 0===e?void 0:e.version}updateStickyModelProvider(){var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new Y(t,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){var e;null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new I.A,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,s){if(0===t.children.length)return;let o=s;const r=[];for(let d=0;d<t.children.length;d++){const e=t.children[d];e.range&&r.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.ry)(r,e.startLineNumber,((e,t)=>e-t))),l=this.updateIndex((0,p.ry)(r,e.startLineNumber+n,((e,t)=>e-t)));for(let d=a;d<=l;d++){const r=t.children[d];if(!r)return;if(r.range){const t=r.range.startLineNumber,s=r.range.endLineNumber;e.startLineNumber<=s+1&&t-1<=e.endLineNumber&&t!==o&&(o=t,i.push(new ne(t,s-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n,s)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(null===(t=this._model)||void 0===t?void 0:t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const s=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(s)for(const o of s)n=n.filter((e=>!(e.startLineNumber>=o.startLineNumber&&e.endLineNumber<=o.endLineNumber+1)));return n}};se=te([ie(1,c.p),ie(2,R.c_)],se);var oe,re=i(79086),ae=i(18519),le=i(28928),de=i(18277),he=i(31368),ce=i(14386),ue=i(65179),ge=i(91421),pe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},me=function(e,t){return function(i,n){t(i,n,e)}};let fe=oe=class extends h.JT{constructor(e,t,i,n,s,o,r){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=r,this._sessionStore=new h.SL,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new N(this._editor),this._stickyLineCandidateProvider=new se(this._editor,i,s),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new S([],[],0),this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(115)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(110))&&this._readConfiguration()}))),this._register(u.nm(a,u.tw.CONTEXT_MENU,(async e=>{this._onContextMenu(u.Jj(a),e)}))),this._stickyScrollFocusedContextKey=d.u.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=d.u.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(u.go(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.nm(a,u.tw.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(oe.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),null===(e=this._focusDisposableStore)||void 0===e||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.SL,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(le.e.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.SL),t=this._register(new ae.yN(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new le.e(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},n=this._stickyScrollWidget.getDomNode();this._register(u.mu(n,u.tw.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.L(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.L(i,1)}this._revealPosition(t)}))),this._register(u.mu(n,u.tw.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(u.nm(n,u.tw.MOUSE_LEAVE,(e=>{null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((t=>{let[n,s]=t;const o=i(n);if(!o||!n.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:a}=o;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===a.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const l=new I.A;let d;e.add((0,h.OF)((()=>l.dispose(!0)))),(0,de.nD)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.L(r.startLineNumber,r.startColumn+1),l.token).then((t=>{if(!l.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=a;d!==i?(e.clear(),d=i,d.style.textDecoration="underline",e.add((0,h.OF)((()=>{d.style.textDecoration="none"})))):d||(d=i,d.style.textDecoration="underline",e.add((0,h.OF)((()=>{d.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.K,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.n(e,t);this._contextMenuService.showContextMenu({menuId:r.eH.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=null===t||void 0===t?void 0:t.foldingIcon;if(!i)return;(0,ge.d8)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(115);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=null,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=null,this._renderStickyScroll(0)})))}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){var t,i;const n=this._editor.getModel();if(!n||n.isTooLargeForTokenization())return this._foldingModel=null,void this._stickyScrollWidget.setState(void 0,null);const s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===n.getVersionId())if(this._foldingModel=null!==(i=await(null===(t=P.f.get(this._editor))||void 0===t?void 0:t.getFoldingModel()))&&void 0!==i?i:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(!(0===this._widgetState.startLineNumbers.length)),this._focused)if(-1===this._focusedStickyElementIndex)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const t=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(t)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(115).maxLineCount),i=this._editor.getScrollTop();let n=0;const s=[],o=[],r=this._editor.getVisibleRanges();if(0!==r.length){const a=new W(r[0].startLineNumber,r[r.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const r of l){const a=r.startLineNumber,l=r.endLineNumber,d=r.nestingDepth;if(l-a>0){const r=(d-1)*e,h=d*e,c=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(r>u&&r<=g){s.push(a),o.push(l+1),n=g-h;break}if(h>c&&h<=g&&(s.push(a),o.push(l+1)),s.length===t)break}}}return this._endLineNumbers=o,new S(s,o,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe.ID="store.contrib.stickyScrollController",fe=oe=pe([me(1,re.i),me(2,c.p),me(3,q.TG),me(4,R.c_),me(5,ce.A),me(6,l.i6)],fe);class _e extends r.Ke{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,s.vv)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,s.NC)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},category:o.View,toggled:{condition:l.Ao.equals("config.editor.stickyScroll.enabled",!0),title:(0,s.NC)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,s.NC)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:r.eH.CommandPalette},{id:r.eH.MenubarAppearanceMenu,group:"4_editor",order:3},{id:r.eH.StickyScrollContext}]})}async run(e){const t=e.get(a.Ui),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class be extends n.x1{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,s.vv)("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:(0,s.NC)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:l.Ao.and(l.Ao.has("config.editor.stickyScroll.enabled"),d.u.stickyScrollVisible),menu:[{id:r.eH.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focus()}}class Ce extends n.x1{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,s.vv)("selectNextStickyScrollLine.title","Select next sticky scroll line"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focusNext()}}class ye extends n.x1{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,s.vv)("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focusPrevious()}}class we extends n.x1{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,s.vv)("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.goToFocused()}}class Se extends n.x1{constructor(){super({id:"editor.action.selectEditor",title:(0,s.vv)("selectEditor.title","Select Editor"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.selectEditor()}}(0,n._K)(fe.ID,fe,1),(0,r.r1)(_e),(0,r.r1)(be),(0,r.r1)(ye),(0,r.r1)(Ce),(0,r.r1)(we),(0,r.r1)(Se)},473:(e,t,i)=>{"use strict";i.d(t,{_:()=>a,t:()=>r});var n=i(51833),s=i(34835),o=i(78701);class r{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,n,o,r){let l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:s.mX.default,d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0;this.clipboardText=d,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===r?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,d=[],h=!this._options.filterGraceful||l.length>2e3?s.EW:s.l7;for(let n=0;n<l.length;n++){const c=l[n];if(c.isInvalid)continue;const u=this._itemsByProvider.get(c.provider);u?u.push(c):this._itemsByProvider.set(c.provider,[c]);const g=c.position.column-c.editStart.column,p=g+i-(c.position.column-this._column);if(r.length!==p&&(r=0===p?"":t.slice(-p),a=r.toLowerCase()),c.word=r,0===p)c.score=s.CL.Default;else{let e=0;for(;e<g;){const t=r.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)c.score=s.CL.Default;else if("string"===typeof c.completion.filterText){const t=h(r,a,e,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,o.zY)(c.completion.filterText,c.textLabel)?c.score=t:(c.score=(0,s.jB)(r,a,e,c.textLabel,c.labelLow,0),c.score[0]=t[0])}else{const t=h(r,a,e,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;c.score=t}}c.idx=n,c.distance=this._wordDistance.distance(c.position,c.completion),d.push(c),e.push(c.textLabel.length)}this._filteredItems=d.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,n.HW)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},34042:(e,t,i)=>{"use strict";i.d(t,{A9:()=>w,GI:()=>C,ZJ:()=>x,_y:()=>b,i5:()=>E,kL:()=>k,tG:()=>T});var n=i(76946),s=i(16015),o=i(34835),r=i(53186),a=i(6617),l=i(47624),d=i(91387),h=i(74633),c=i(28928),u=i(43537),g=i(86532),p=i(5887),m=i(6178),f=i(94943),_=i(47116),v=i(53869);const b={Visible:i(35650).iX,HasFocusedSuggestion:new _.uy("suggestWidgetHasFocusedSuggestion",!1,(0,p.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.uy("suggestWidgetDetailsVisible",!1,(0,p.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.uy("suggestWidgetMultipleSuggestions",!1,(0,p.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.uy("suggestionMakesTextEdit",!0,(0,p.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.uy("acceptSuggestionOnEnter",!0,(0,p.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.uy("suggestionHasInsertAndReplaceRange",!1,(0,p.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.uy("suggestionInsertMode",void 0,{type:"string",description:(0,p.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.uy("suggestionCanResolve",!1,(0,p.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},C=new m.eH("suggestWidgetStatusBar");class y{constructor(e,t,i,n){var s;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=o.CL.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:null===(s=t.label)||void 0===s?void 0:s.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,c.e.isIRange(t.range)?(this.editStart=new h.L(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.L(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.L(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||c.e.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.L(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.L(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.L(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||c.e.spansMultipleLines(t.range.insert)||c.e.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.G(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,s.n2)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class w{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}let S;function x(){return S}w.default=new w;class L{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function k(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w.default,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{triggerKind:0},d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:n.T.None;const h=new a.G;i=i.clone();const u=t.getWordAtPosition(i),p=u?new c.e(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):c.e.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new r.SL,v=[];let b=!1;const C=(e,t,n)=>{var s,a,l;let d=!1;if(!t)return d;for(const r of t.suggestions)if(!o.kindFilter.has(r.kind)){if(!o.showDeprecated&&(null===(s=null===r||void 0===r?void 0:r.tags)||void 0===s?void 0:s.includes(1)))continue;r.range||(r.range=m),r.sortText||(r.sortText="string"===typeof r.label?r.label:r.label.label),!b&&r.insertTextRules&&4&r.insertTextRules&&(b=g.Yj.guessNeedsClipboard(r.insertText)),f.push(new y(i,r,t,e)),d=!0}return(0,r.Wf)(t)&&_.add(t),v.push({providerName:null!==(a=e._debugDisplayName)&&void 0!==a?a:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),d},x=(async()=>{if(!S||o.kindFilter.has(27))return;const e=o.providerItemsToReuse.get(S);if(e)return void e.forEach((e=>f.push(e)));if(o.providerFilter.size>0&&!o.providerFilter.has(S))return;const n=new a.G,s=await S.provideCompletionItems(t,i,l,d);C(S,s,n)})();for(const n of e.orderedGroups(t)){let e=!1;if(await Promise.all(n.map((async n=>{if(o.providerItemsToReuse.has(n)){const t=o.providerItemsToReuse.get(n);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(o.providerFilter.size>0)||o.providerFilter.has(n))try{const s=new a.G,o=await n.provideCompletionItems(t,i,l,d);e=C(n,o,s)||e}catch(r){(0,s.Cp)(r)}}))),e||d.isCancellationRequested)break}return await x,d.isCancellationRequested?(_.dispose(),Promise.reject(new s.FU)):new L(f.sort((k=o.snippetSortOrder,N.get(k))),b,{entries:v,elapsed:h.elapsed()},_);var k}function D(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const N=new Map;function E(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)}N.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return D(e,t)})),N.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return D(e,t)})),N.set(1,D),f.P.registerCommand("_executeCompletionItemProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[o,r,a,c]=i;(0,l.p_)(d.o.isUri(o)),(0,l.p_)(h.L.isIPosition(r)),(0,l.p_)("string"===typeof a||!a),(0,l.p_)("number"===typeof c||!c);const{completionProvider:g}=e.get(v.p),p=await e.get(u.S).createModelReference(o);try{const e={incomplete:!1,suggestions:[]},t=[],i=p.object.textEditorModel.validatePosition(r),s=await k(g,p.object.textEditorModel,i,void 0,{triggerCharacter:null!==a&&void 0!==a?a:void 0,triggerKind:a?1:0});for(const o of s.items)t.length<(null!==c&&void 0!==c?c:0)&&t.push(o.resolve(n.T.None)),e.incomplete=e.incomplete||o.container.incomplete,e.suggestions.push(o.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>s.disposable.dispose()),100)}}finally{p.dispose()}}));class T{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},82148:(e,t,i)=>{"use strict";i.d(t,{n:()=>Qe});var n,s=i(83945),o=i(51833),r=i(76946),a=i(16015),l=i(39706),d=i(91811),h=i(53186),c=i(90388),u=i(6617),g=i(47624),p=i(52432),m=i(60548),f=i(56154),_=i(74633),v=i(28928),b=i(35770),C=i(67017),y=i(86532),w=i(71435),S=i(47116),x=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}};let k=n=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=n.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(123)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(123);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};k.AtEnd=new S.uy("atEndOfWord",!1),k=n=x([L(1,S.i6)],k);var D,N=i(5887),E=i(94943),T=i(87775),I=i(33454),M=i(34042),A=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}};let O=D=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=D.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set(e,t){let{model:i,index:n}=e;if(0===i.items.length)return void this.reset();D._moveIndex(!0,i,n)!==n?(this._acceptNext=t,this._model=i,this._index=n,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let n=i;for(let s=t.items.length;s>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,n!==i)&&t.items[n].completion.additionalTextEdits;s--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=D._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};O.OtherSuggestions=new S.uy("hasOtherSuggestions",!1),O=D=A([R(1,S.i6)],O);var P=i(47498);class F{constructor(e,t,i,n){this._disposables=new h.SL,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((s=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=s.charCodeAt(s.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}})))}_onItem(e){if(!e||!(0,o.Of)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.q;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var B=i(95703);class V{constructor(e,t){this._disposables=new h.SL,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let n=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){n=!0;break}if(!n)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const s=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(s.getValueLengthInRange(i)>V._maxSelectionLength)return;this._lastOvertyped[e]={value:s.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}V._maxSelectionLength=51200;var W=i(76595),H=(i(60951),i(69394)),z=i(53372),j=i(56155),U=i(78701),K=i(2822),q=i(7144),$=i(51887),G=i(6178),Y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Z=function(e,t){return function(i,n){t(i,n,e)}};class Q extends $.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=(0,N.NC)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,Q.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"\u23ce")}}let X=class{constructor(e,t,i,n,s){this._menuId=t,this._menuService=n,this._contextKeyService=s,this._menuDisposables=new h.SL,this.element=W.R3(e,W.$(".suggest-status-bar"));const o=e=>e instanceof G.U8?i.createInstance(Q,e,void 0):void 0;this._leftActions=new q.o(this.element,{actionViewItemProvider:o}),this._rightActions=new q.o(this.element,{actionViewItemProvider:o}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[n,s]of e.getActions())"left"===n?t.push(...s):i.push(...s);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=Y([Z(2,T.TG),Z(3,G.co),Z(4,S.i6)],X);i(95451);var J=i(87650),ee=i(6009),te=i(25112),ie=i(46673),ne=i(10173),se=i(24622),oe=i(61542),re=i(73045),ae=i(73971),le=i(35978),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};function ce(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let ue=class{constructor(e,t){this._editor=e,this._onDidClose=new l.Q5,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.Q5,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.SL,this._renderDisposeable=new h.SL,this._borderWidth=1,this._size=new W.Ro(330,0),this.domNode=W.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(le.$,{editor:e}),this._body=W.$(".body"),this._scrollbar=new se.s$(this._body,{alwaysConsumeMouseWheel:!0}),W.R3(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=W.R3(this._body,W.$(".header")),this._close=W.R3(this._header,W.$("span"+re.k.asCSSSelector(oe.l.close))),this._close.title=N.NC("details.close","Close"),this._type=W.R3(this._header,W.$("p.type")),this._docs=W.R3(this._body,W.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),n=e.get(119)||t.fontSize,s=e.get(120)||t.lineHeight,o=t.fontWeight,r=`${n}px`,a=`${s}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+s/n,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(120)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=N.NC("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:o}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(n=e.completion.commitCharacters)||void 0===n?void 0:n.join("")}\n`,o=(new ae.W5).appendCodeblock("empty",t),s=`Provider: ${e.provider._debugDisplayName}`}if(t||ce(e)){if(this.domNode.classList.remove("no-docs","no-type"),s){const e=s.length>1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=e,this._type.title=e,W.$Z(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else W.PO(this._type),this._type.title="",W.Cp(this._type),this.domNode.classList.add("no-type");if(W.PO(this._docs),"string"===typeof o)this._docs.classList.remove("markdown-docs"),this._docs.textContent=o;else if(o){this._docs.classList.add("markdown-docs"),W.PO(this._docs);const e=this._markdownRenderer.render(o);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new W.Ro(e,t);W.Ro.equals(i,this._size)||(this._size=i,W.dp(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;this._body.scrollTop+=e}scrollUp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};ue=de([he(1,T.TG)],ue);class ge{constructor(e,t){let i,n;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.SL,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ne.f,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let s=0,o=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,n=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(o=n.width-e.dimension.width,t=!0),e.north&&(s=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+s,left:i.left+o})}e.done&&(i=void 0,n=void 0,s=0,o=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=W.D6(this.getDomNode().ownerDocument.body),o=this.widget.getLayoutInfo(),r=new W.Ro(220,2*o.lineHeight),a=e.top,l=function(){const i=s.width-(e.left+e.width+o.borderWidth+o.horizontalPadding),n=-o.borderWidth+e.left+e.width,l=new W.Ro(i,s.height-e.top-o.borderHeight-o.verticalPadding),d=l.with(void 0,e.top+e.height-o.borderHeight-o.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),d=function(){const i=e.left-o.borderWidth-o.horizontalPadding,n=Math.max(o.horizontalPadding,e.left-t.width-o.borderWidth),l=new W.Ro(i,s.height-e.top-o.borderHeight-o.verticalPadding),d=l.with(void 0,e.top+e.height-o.borderHeight-o.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),h=function(){const i=e.left,n=-o.borderWidth+e.top+e.height,a=new W.Ro(e.width-o.borderHeight,s.height-e.top-e.height-o.verticalPadding);return{top:n,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),c=[l,d,h],u=null!==(n=c.find((e=>e.fit>=0)))&&void 0!==n?n:c.sort(((e,t)=>t.fit-e.fit))[0],g=e.top+e.height-o.borderHeight;let p,m=t.height;const f=Math.max(u.maxSizeTop.height,u.maxSizeBottom.height);let _;m>f&&(m=f),i?m<=u.maxSizeTop.height?(p=!0,_=u.maxSizeTop):(p=!1,_=u.maxSizeBottom):m<=u.maxSizeBottom.height?(p=!1,_=u.maxSizeBottom):(p=!0,_=u.maxSizeTop);let{top:v,left:b}=u;!p&&m>e.height&&(v=g-m);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();v-=e.top,b-=e.left}this._applyTopLeft({left:b,top:v}),this._resizable.enableSashes(!p,u===l,p,u!==l),this._resizable.minSize=u.minSize,this._resizable.maxSize=_,this._resizable.layout(m,Math.min(_.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var pe,me=i(83172),fe=i(34835),_e=i(91387),ve=i(18841),be=i(32060),Ce=i(30506),ye=i(76326);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(pe||(pe={}));const we=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function Se(e,t,i,n,s){if(s)return[`codicon-${s.id}`,"predefined-file-icon"];const o=n===pe.ROOT_FOLDER?["rootfolder-icon"]:n===pe.FOLDER?["folder-icon"]:["file-icon"];if(i){let s;if(i.scheme===be.lg.data){s=Ce.Vb.parseMetaData(i).get(Ce.Vb.META_DATA_LABEL)}else{const e=i.path.match(we);e?(s=xe(e[2].toLowerCase()),e[1]&&o.push(`${xe(e[1].toLowerCase())}-name-dir-icon`)):s=xe(i.authority.toLowerCase())}if(n===pe.ROOT_FOLDER)o.push(`${s}-root-name-folder-icon`);else if(n===pe.FOLDER)o.push(`${s}-name-folder-icon`);else{if(s){if(o.push(`${s}-name-file-icon`),o.push("name-file-icon"),s.length<=255){const e=s.split(".");for(let t=1;t<e.length;t++)o.push(`${e.slice(t).join(".")}-ext-file-icon`)}o.push("ext-file-icon")}const n=function(e,t,i){if(!i)return null;let n=null;if(i.scheme===be.lg.data){const e=Ce.Vb.parseMetaData(i).get(Ce.Vb.META_DATA_MIME);e&&(n=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(n=t.getLanguageId())}if(n&&n!==ye.bd)return n;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);n&&o.push(`${xe(n)}-lang-file-icon`)}}return o}function xe(e){return e.replace(/[\11\12\14\15\40]/g,"/")}var Le,ke=i(23058),De=i(91342),Ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ee=function(e,t){return function(i,n){t(i,n,e)}};function Te(e){return`suggest-aria-id:${e}`}const Ie=(0,i(54329).q5)("suggest-more-info",oe.l.chevronRight,N.NC("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Me=new((Le=class{extract(e,t){if(e.textLabel.match(Le._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(Le._regexStrict))return t[0]=e.completion.detail,!0;if(e.completion.documentation){const i="string"===typeof e.completion.documentation?e.completion.documentation:e.completion.documentation.value,n=Le._regexRelaxed.exec(i);if(n&&(0===n.index||n.index+n[0].length===i.length))return t[0]=n[0],!0}return!1}})._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Le._regexStrict=new RegExp(`^${Le._regexRelaxed.source}$`,"i"),Le);let Ae=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new l.Q5,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.SL,i=e;i.classList.add("show-file-icons");const n=(0,W.R3)(e,(0,W.$)(".icon")),s=(0,W.R3)(n,(0,W.$)("span.colorspan")),o=(0,W.R3)(e,(0,W.$)(".contents")),r=(0,W.R3)(o,(0,W.$)(".main")),a=(0,W.R3)(r,(0,W.$)(".icon-label.codicon")),l=(0,W.R3)(r,(0,W.$)("span.left")),d=(0,W.R3)(r,(0,W.$)("span.right")),c=new me.g(l,{supportHighlights:!0,supportIcons:!0});t.add(c);const u=(0,W.R3)(l,(0,W.$)("span.signature-label")),g=(0,W.R3)(l,(0,W.$)("span.qualifier-label")),p=(0,W.R3)(d,(0,W.$)("span.details-label")),m=(0,W.R3)(d,(0,W.$)("span.readMore"+re.k.asCSSSelector(Ie)));m.title=N.NC("readMore","Read More");return{root:i,left:l,right:d,icon:n,colorspan:s,iconLabel:c,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),s=t.getMassagedFontFamily(),o=t.fontFeatureSettings,a=e.get(119)||t.fontSize,l=e.get(120)||t.lineHeight,d=t.fontWeight,h=`${a}px`,c=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=d,i.style.letterSpacing=u,r.style.fontFamily=s,r.style.fontFeatureSettings=o,r.style.lineHeight=c,n.style.height=c,n.style.width=c,m.style.height=c,m.style.width=c}}}renderElement(e,t,i){i.configureFont();const{completion:n}=e;i.root.id=Te(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:(0,fe.mB)(e.score)},o=[];if(19===n.kind&&Me.extract(e,o))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=o[0];else if(20===n.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:e.textLabel}),pe.FILE),o=Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:n.detail}),pe.FILE);s.extraClasses=t.length>o.length?t:o}else 23===n.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:e.textLabel}),pe.FOLDER),Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:n.detail}),pe.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.k.asClassNameArray(ve.gX.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),"string"===typeof n.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Re(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Re(n.label.detail||""),i.detailsLabel.textContent=Re(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(118).showInlineDetails?(0,W.$Z)(i.detailsLabel):(0,W.Cp)(i.detailsLabel),ce(e)?(i.right.classList.add("can-expand-details"),(0,W.$Z)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,W.Cp)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Re(e){return e.replace(/\r\n|\r|\n/g,"")}Ae=Ne([Ee(1,ke.q),Ee(2,De.O),Ee(3,ie.XE)],Ae);var Oe,Pe=i(93617),Fe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Be=function(e,t){return function(i,n){t(i,n,e)}};(0,ee.P6G)("editorSuggestWidget.background",{dark:ee.D0T,light:ee.D0T,hcDark:ee.D0T,hcLight:ee.D0T},N.NC("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,ee.P6G)("editorSuggestWidget.border",{dark:ee.D1_,light:ee.D1_,hcDark:ee.D1_,hcLight:ee.D1_},N.NC("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ve=(0,ee.P6G)("editorSuggestWidget.foreground",{dark:ee.NOs,light:ee.NOs,hcDark:ee.NOs,hcLight:ee.NOs},N.NC("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,ee.P6G)("editorSuggestWidget.selectedForeground",{dark:ee.NPS,light:ee.NPS,hcDark:ee.NPS,hcLight:ee.NPS},N.NC("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,ee.P6G)("editorSuggestWidget.selectedIconForeground",{dark:ee.cbQ,light:ee.cbQ,hcDark:ee.cbQ,hcLight:ee.cbQ},N.NC("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const We=(0,ee.P6G)("editorSuggestWidget.selectedBackground",{dark:ee.Vqd,light:ee.Vqd,hcDark:ee.Vqd,hcLight:ee.Vqd},N.NC("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,ee.P6G)("editorSuggestWidget.highlightForeground",{dark:ee.Gwp,light:ee.Gwp,hcDark:ee.Gwp,hcLight:ee.Gwp},N.NC("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,ee.P6G)("editorSuggestWidget.focusHighlightForeground",{dark:ee.PX0,light:ee.PX0,hcDark:ee.PX0,hcLight:ee.PX0},N.NC("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,ee.P6G)("editorSuggestWidgetStatus.foreground",{dark:(0,ee.ZnX)(Ve,.5),light:(0,ee.ZnX)(Ve,.5),hcDark:(0,ee.ZnX)(Ve,.5),hcLight:(0,ee.ZnX)(Ve,.5)},N.NC("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class He{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof K.H}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(W.Ro.is(e))return W.Ro.lift(e)}catch(i){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let ze=Oe=class{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.XK,this._pendingShowDetails=new h.XK,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new z._F,this._disposables=new h.SL,this._onDidSelect=new l.K3,this._onDidFocus=new l.K3,this._onDidHide=new l.Q5,this._onDidShow=new l.Q5,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.Q5,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ne.f,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new je(this,e),this._persistedSize=new He(t,e);class o{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let r;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),r=new o(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,n,s;if(this._resize(e.dimension.width,e.dimension.height),r&&(r.persistHeight=r.persistHeight||!!e.north||!!e.south,r.persistWidth=r.persistWidth||!!e.east||!!e.west),e.done){if(r){const{itemHeight:e,defaultSize:o}=this.getLayoutInfo(),a=Math.round(e/2);let{width:l,height:d}=this.element.size;(!r.persistHeight||Math.abs(r.currentSize.height-d)<=a)&&(d=null!==(i=null===(t=r.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:o.height),(!r.persistWidth||Math.abs(r.currentSize.width-l)<=a)&&(l=null!==(s=null===(n=r.persistedSize)||void 0===n?void 0:n.width)&&void 0!==s?s:o.width),this._persistedSize.store(new W.Ro(l,d))}this._contentWidget.unlockPreference(),r=void 0}}))),this._messageElement=W.R3(this.element.domNode,W.$(".message")),this._listElement=W.R3(this.element.domNode,W.$(".tree"));const a=this._disposables.add(s.createInstance(ue,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ge(a,this.editor);const d=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(118).showIcons);d();const c=s.createInstance(Ae,this.editor);this._disposables.add(c),this._disposables.add(c.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new H.aV("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[c],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>N.NC("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:n}=e.completion.label;i&&n?t=N.NC("label.full","{0} {1}, {2}",t,i,n):i?t=N.NC("label.detail","{0} {1}",t,i):n&&(t=N.NC("label.desc","{0}, {1}",t,n))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:n}=e.completion,s=U.WU("{0}{1}",n||"",i?"string"===typeof i?i:i.value:"");return N.NC("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,s)}}}),this._list.style((0,Pe.TU)({listInactiveFocusBackground:We,listInactiveFocusOutline:ee.xL1})),this._status=s.createInstance(X,this.element.domNode,M.GI);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(118).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(118)&&(u(),d()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(119)||e.hasChanged(120))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=M._y.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=M._y.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=M._y.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=M._y.HasFocusedSuggestion.bindTo(i),this._disposables.add(W.mu(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,te.c3)(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=(0,z.PG)((async e=>{const t=(0,z.Vg)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),n=e.onCancellationRequested((()=>t.dispose()));try{return await i.resolve(e)}finally{t.dispose(),n.dispose()}})),this._currentSuggestionDetails.then((()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Te(n)}))})).catch(a.dL)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:W.Cp(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Oe.LOADING_MESSAGE,W.Cp(this._listElement,this._status.element),W.$Z(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,s.i7)(Oe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Oe.NO_SUGGESTIONS_MESSAGE,W.Cp(this._listElement,this._status.element),W.$Z(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,s.i7)(Oe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:W.Cp(this._messageElement),W.$Z(this._listElement,this._status.element),this._show();break;case 5:W.Cp(this._messageElement),W.$Z(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,z.Vg)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,n,s){var o,r;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(o=this._loadingTimeout)||void 0===o||o.dispose(),null===(r=this._currentSuggestionDetails)||void 0===r||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const a=this._completionModel.items.length,l=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l)return this._setState(n?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(s?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=W.lI(W.Jj(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!ce(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=W.lI(W.Jj(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.height<i&&this._persistedSize.store(t.with(void 0,i))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){var t,i,n;if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const s=W.D6(this.element.domNode.ownerDocument.body),o=this.getLayoutInfo();e||(e=o.defaultSize);let r=e.height,a=e.width;if(this._status.element.style.height=`${o.itemHeight}px`,2===this._state||1===this._state)r=o.itemHeight+o.borderHeight,a=o.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new W.Ro(a,r),this._contentWidget.setPreference(2);else{const l=s.width-o.borderHeight-2*o.horizontalPadding;a>l&&(a=l);const d=this._completionModel?this._completionModel.stats.pLabelLen*o.typicalHalfwidthCharacterWidth:a,h=o.statusBarHeight+this._list.contentHeight+o.borderHeight,c=o.itemHeight+o.statusBarHeight,u=W.i(this.editor.getDomNode()),g=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=u.top+g.top+g.height,m=Math.min(s.height-p-o.verticalPadding,h),f=u.top+g.top-o.verticalPadding,_=Math.min(f,h);let v=Math.min(Math.max(_,m)+o.borderHeight,h);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),r<c&&(r=c),r>v&&(r=v);const b=150;r>m||this._forceRenderingAbove&&f>b?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),v=_):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),v=m),this.element.preferredSize=new W.Ro(d,o.defaultSize.height),this.element.maxSize=new W.Ro(l,v),this.element.minSize=new W.Ro(220,c),this._cappedHeight=r===h?{wanted:null!==(n=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==n?n:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=t-s+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,j.uZ)(this.editor.getOption(120)||e.lineHeight,8,1e3),i=this.editor.getOption(118).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new W.Ro(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};ze.LOADING_MESSAGE=N.NC("suggestWidget.loading","Loading..."),ze.NO_SUGGESTIONS_MESSAGE=N.NC("suggestWidget.noSuggestions","No suggestions."),ze=Oe=Fe([Be(1,J.Uy),Be(2,S.i6),Be(3,ie.XE),Be(4,T.TG)],ze);class je{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new W.Ro(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Ue,Ke=i(57823),qe=i(95075),$e=i(13277),Ge=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ye=function(e,t){return function(i,n){t(i,n,e)}};class Ze{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=$e.qx.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),n=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.e.fromPositions(t,n),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Qe=Ue=class{static get(e){return e.getContribution(Ue.ID)}constructor(e,t,i,n,s,o,r){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=o,this._telemetryService=r,this._lineSuffix=new h.XK,this._toDispose=new h.SL,this._selectors=new Xe((e=>e.priority)),this._onWillInsertSuggestItem=new l.Q5,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=s.createInstance(B.U,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=M._y.InsertMode.bindTo(n);a.set(e.getOption(118).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(118).insertMode)))),this.widget=this._toDispose.add(new W.vx((0,W.Jj)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(ze,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=M._y.MakesTextEdit.bindTo(this._contextKeyService),n=M._y.HasInsertAndReplaceRange.bindTo(this._contextKeyService),s=M._y.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.OF)((()=>{i.reset(),n.reset(),s.reset()}))),this._toDispose.add(e.onDidFocus((e=>{let{item:t}=e;const o=this.editor.getPosition(),r=t.editStart.column,a=o.column;let l=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!t.completion.additionalTextEdits&&!(4&t.completion.insertTextRules)&&a-r===t.completion.insertText.length){l=this.editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:r,endLineNumber:o.lineNumber,endColumn:a})!==t.completion.insertText}i.set(l),n.set(!_.L.equals(t.editInsertEnd,t.editReplaceEnd)),s.set(Boolean(t.provider.resolveCompletionItem)||Boolean(t.completion.documentation)||t.completion.detail!==t.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new d.$M(!0,!1,!1,!1,33))||c.dz&&e.toKeyCodeChord().equals(new d.$M(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new W.vx((0,W.Jj)(e.getDomNode()),(()=>this._toDispose.add(new V(this.editor,this.model))))),this._alternatives=this._toDispose.add(new W.vx((0,W.Jj)(e.getDomNode()),(()=>this._toDispose.add(new O(this.editor,this._contextKeyService))))),this._toDispose.add(s.createInstance(k,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ze(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const n of this._selectors.itemsOrderedByPriorityDesc)if(t=n.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(118);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=M._y.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=C.f.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:o}=e,l=[],d=new r.A;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(o,Boolean(8&t));this._memoryService.memorize(n,this.editor.getPosition(),o);const c=o.isResolved;let g=-1,m=-1;if(Array.isArray(o.completion.additionalTextEdits)){this.model.cancel();const e=p.Z.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",o.completion.additionalTextEdits.map((e=>{let t=v.e.lift(e.range);if(t.startLineNumber===o.position.lineNumber&&t.startColumn>o.position.column){const e=this.editor.getPosition().column-o.position.column,i=e,n=v.e.spansMultipleLines(t)?0:e;t=new v.e(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+n)}return f.h.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!c){const e=new u.G;let i;const s=n.onDidChangeContent((e=>{if(e.isFlush)return d.cancel(),void s.dispose();for(const t of e.changes){const e=v.e.getEndPosition(t.range);i&&!_.L.isBefore(e,i)||(i=e)}})),r=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&r||this.editor.pushUndoStop()}));l.push(o.resolve(d.token).then((()=>{if(!o.completion.additionalTextEdits||d.token.isCancellationRequested)return;if(i&&o.completion.additionalTextEdits.some((e=>_.L.isBefore(i,v.e.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.Z.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",o.completion.additionalTextEdits.map((e=>f.h.replaceMove(v.e.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{s.dispose(),h.dispose()})))}let{insertText:b}=o.completion;if(4&o.completion.insertTextRules||(b=y.Yj.escape(b)),this.model.cancel(),i.insert(b,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&o.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),o.completion.command)if(o.completion.command.id===Je.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.G;l.push(this._commandService.executeCommand(o.completion.command.id,...o.completion.command.arguments?[...o.completion.command.arguments]:[]).catch((e=>{o.completion.extensionId?(0,a.Cp)(e):(0,a.dL)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(d.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(o),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(o,n,c,g,m),this.model.clear(),d.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,n,s){var o,r,a;0!==Math.floor(100*Math.random())&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:null!==(r=null===(o=e.extensionId)||void 0===o?void 0:o.value)&&void 0!==r?r:"unknown",providerId:null!==(a=e.provider._debugDisplayName)&&void 0!==a?a:"unknown",kind:e.completion.kind,basenameHash:(0,qe.vp)((0,Ce.EZ)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,Ce.DZ)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:s})}getOverwriteInfo(e,t){(0,g.p_)(this.editor.hasModel());let i="replace"===this.editor.getOption(118).insertMode;t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:n+(this.editor.getPosition().column-e.position.column),overwriteAfter:s+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,o.Of)(e.completion.additionalTextEdits)){const t=N.NC("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,s.Z9)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:null!==t&&void 0!==t&&t,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,n=t.column;if(n-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.ju.once(this.model.onDidTrigger)((e=>{const t=[];l.ju.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.B9)(t),i()}),void 0,t),this.model.onDidSuggest((e=>{let{completionModel:s}=e;if((0,h.B9)(t),0===s.items.length)return void i();const o=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),s.items),r=s.items[o];n(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:o,item:r,model:s},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Qe.ID="editor.contrib.suggestController",Qe=Ue=Ge([Ye(1,w.Fh),Ye(2,E.H),Ye(3,S.i6),Ye(4,T.TG),Ye(5,I.VZ),Ye(6,Ke.b)],Qe);class Xe{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Je extends m.R6{constructor(){super({id:Je.id,label:N.NC("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:S.Ao.and(b.u.writable,b.u.hasCompletionItemProvider,M._y.Visible.toNegated()),kbOpts:{kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=Qe.get(t);if(!n)return;let s;i&&"object"===typeof i&&!0===i.auto&&(s=!0),n.triggerSuggest(void 0,s,void 0)}}Je.id="editor.action.triggerSuggest",(0,m._K)(Qe.ID,Qe,2),(0,m.Qr)(Je);const et=190,tt=m._l.bindToContribution(Qe.get);(0,m.fK)(new tt({id:"acceptSelectedSuggestion",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:S.Ao.and(M._y.Visible,b.u.textInputFocus),weight:et},{primary:3,kbExpr:S.Ao.and(M._y.Visible,b.u.textInputFocus,M._y.AcceptSuggestionsOnEnter,M._y.MakesTextEdit),weight:et}],menuOpts:[{menuId:M.GI,title:N.NC("accept.insert","Insert"),group:"left",order:1,when:M._y.HasInsertAndReplaceRange.toNegated()},{menuId:M.GI,title:N.NC("accept.insert","Insert"),group:"left",order:1,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("insert"))},{menuId:M.GI,title:N.NC("accept.replace","Replace"),group:"left",order:1,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("replace"))}]})),(0,m.fK)(new tt({id:"acceptAlternativeSelectedSuggestion",precondition:S.Ao.and(M._y.Visible,b.u.textInputFocus,M._y.HasFocusedSuggestion),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:M.GI,group:"left",order:2,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("insert")),title:N.NC("accept.replace","Replace")},{menuId:M.GI,group:"left",order:2,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("replace")),title:N.NC("accept.insert","Insert")}]})),E.P.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.fK)(new tt({id:"hideSuggestWidget",precondition:M._y.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:9,secondary:[1033]}})),(0,m.fK)(new tt({id:"selectNextSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.fK)(new tt({id:"selectNextPageSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:12,secondary:[2060]}})),(0,m.fK)(new tt({id:"selectLastSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.fK)(new tt({id:"selectPrevSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.fK)(new tt({id:"selectPrevPageSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:11,secondary:[2059]}})),(0,m.fK)(new tt({id:"selectFirstSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.fK)(new tt({id:"focusSuggestion",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.fK)(new tt({id:"focusAndAcceptSuggestion",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.fK)(new tt({id:"toggleSuggestionDetails",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:M.GI,group:"right",order:1,when:S.Ao.and(M._y.DetailsVisible,M._y.CanResolve),title:N.NC("detail.more","show less")},{menuId:M.GI,group:"right",order:1,when:S.Ao.and(M._y.DetailsVisible.toNegated(),M._y.CanResolve),title:N.NC("detail.less","show more")}]})),(0,m.fK)(new tt({id:"toggleExplainMode",precondition:M._y.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.fK)(new tt({id:"toggleSuggestionFocus",precondition:M._y.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.fK)(new tt({id:"insertBestCompletion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),k.AtEnd,M._y.Visible.toNegated(),O.OtherSuggestions.toNegated(),C.f.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Kn)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:et,primary:2}})),(0,m.fK)(new tt({id:"insertNextSuggestion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),O.OtherSuggestions,M._y.Visible.toNegated(),C.f.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2}})),(0,m.fK)(new tt({id:"insertPrevSuggestion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),O.OtherSuggestions,M._y.Visible.toNegated(),C.f.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:1026}})),(0,m.Qr)(class extends m.R6{constructor(){super({id:"editor.action.resetSuggestSize",label:N.NC("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=Qe.get(t))||void 0===i||i.resetWidgetSize()}})},53295:(e,t,i)=>{"use strict";var n=i(76946),s=i(34835),o=i(2706),r=i(53186),a=i(74246),l=i(28928),d=i(26993),h=i(53869),c=i(473),u=i(34042),g=i(71435),p=i(95703),m=i(39671),f=i(63826),_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};class b{constructor(e,t,i,n,s,o){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=o}}let C=class extends r.L6{constructor(e,t,i,n,s,o){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=o}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){var e;const t=[],{items:i}=this.completionModel,r=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},i),a=o.$.slice(i,r),d=o.$.slice(i,0,r);let h=5;for(const c of o.$.concat(a,d)){if(c.score===s.CL.Default)continue;const i=new l.e(c.editStart.lineNumber,c.editStart.column,c.editInsertEnd.lineNumber,c.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),o=c.completion.insertTextRules&&4&c.completion.insertTextRules?{snippet:c.completion.insertText}:c.completion.insertText;t.push(new b(i,o,null!==(e=c.filterTextLow)&&void 0!==e?e:c.labelLow,c.completion.additionalTextEdits,c.completion.command,c)),h-- >=0&&c.resolve(n.T.None)}return t}};C=_([v(5,g.Fh)],C);let y=class extends r.JT{constructor(e,t,i,n){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=n,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,n){var s;if(i.selectedSuggestionInfo)return;let o;for(const l of this._editorService.listCodeEditors())if(l.getModel()===e){o=l;break}if(!o)return;const r=o.getOption(89);if(u.tG.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),d=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.tG.valueFor(r,d))return;let h,g,f=e.getWordAtPosition(t);if((null===f||void 0===f?void 0:f.word)||(h=this._getTriggerCharacterInfo(e,t)),!(null===f||void 0===f?void 0:f.word)&&!h)return;if(f||(f=e.getWordUntilPosition(t)),f.endColumn!==t.column)return;const _=e.getValueInRange(new l.e(t.lineNumber,1,t.lineNumber,t.column));if(!h&&(null===(s=this._lastResult)||void 0===s?void 0:s.canBeReused(e,t.lineNumber,f))){const e=new c.t(_,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),g=this._lastResult}else{const i=await(0,u.kL)(this._languageFeatureService.completionProvider,e,t,new u.A9(void 0,p.U.createSuggestFilter(o).itemKind,null===h||void 0===h?void 0:h.providers),h&&{triggerKind:1,triggerCharacter:h.ch},n);let s;i.needsClipboard&&(s=await this._clipboardService.readText());const r=new c._(i.items,t.column,new c.t(_,0),m.K.None,o.getOption(118),o.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},s);g=new C(e,t.lineNumber,f,r,i,this._suggestMemoryService)}return this._lastResult=g,g}handleItemDidShow(e,t){t.completion.resolve(n.T.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(l.e.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const o of this._languageFeatureService.completionProvider.all(e))(null===(i=o.triggerCharacters)||void 0===i?void 0:i.includes(n))&&s.add(o);if(0!==s.size)return{providers:s,ch:n}}};y=_([v(0,h.p),v(1,f.p),v(2,g.Fh),v(3,a.$)],y),(0,d.y)(y)},71435:(e,t,i)=>{"use strict";i.d(t,{Fh:()=>v});var n,s=i(53372),o=i(53186),r=i(38079),a=i(61700),l=i(18841),d=i(30600),h=i(23026),c=i(87775),u=i(87650),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const n=i[0].score[0];for(let s=0;s<i.length;s++){const{score:e,completion:t}=i[s];if(e[0]!==n)break;if(t.preselect)return s}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}let _=n=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new o.SL,this._persistSoon=new s.pY((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.fk.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const s=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if((null===(i=this._strategy)||void 0===i?void 0:i.name)!==s){this._saveState();const e=n._strategyCtors.get(s)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${n._storagePrefix}/${s}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(o){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${n._storagePrefix}/${this._strategy.name}`,t,e,1)}}};_._strategyCtors=new Map([["recentlyUsedByPrefix",class extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.Id.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${n}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const s=`${e.getLanguageId()}/${n}`;let o=this._trie.get(s);if(o||(o=this._trie.findSubstr(s)),o)for(let r=0;r<i.length;r++){const{kind:e,insertText:t}=i[r].completion;if(e===o.type&&t===o.insertText)return r}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:l.gX.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends m{constructor(){super("recentlyUsed"),this._cache=new r.z6(300,.66),this._seq=0}memorize(e,t,i){const n=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(n,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);const s=i[0].score[0];let o=-1,r=-1,a=-1;for(let l=0;l<i.length&&i[l].score[0]===s;l++){const t=`${e.getLanguageId()}/${i[l].textLabel}`,n=this._cache.peek(t);if(n&&n.touch>a&&n.type===i[l].completion.kind&&n.insertText===i[l].completion.insertText&&(a=n.touch,r=l),i[l].completion.preselect&&-1===o)return l}return-1!==r?r:-1!==o?o:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:l.gX.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",f]]),_._storagePrefix="suggest/memories",_=n=g([p(0,u.Uy),p(1,d.Ui)],_);const v=(0,c.yh)("ISuggestMemories");(0,h.z)(v,_,1)},95703:(e,t,i)=>{"use strict";i.d(t,{U:()=>E});var n,s=i(53372),o=i(76946),r=i(16015),a=i(39706),l=i(53186),d=i(78701),h=i(24854),c=i(69115),u=i(39671),g=i(63826),p=i(30600),m=i(47116),f=i(33454),_=i(57823),v=i(473),b=i(34042),C=i(53869),y=i(34835),w=i(47624),S=i(51842),x=i(67017),L=i(68664),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};class N{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!!n&&((n.endColumn===i.column||n.startColumn+1===i.column)&&!!isNaN(Number(n.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let E=n=class{constructor(e,t,i,n,o,r,d,c,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=r,this._configurationService=d,this._languageFeaturesService=c,this._envService=u,this._toDispose=new l.SL,this._triggerCharacterListener=new l.SL,this._triggerQuickSuggest=new s._F,this._triggerState=void 0,this._completionDisposables=new l.SL,this._onDidCancel=new a.Q5,this._onDidTrigger=new a.Q5,this._onDidSuggest=new a.Q5,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.Y(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,l.B9)(this._triggerCharacterListener),(0,l.B9)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let n=e.get(t);n||(n=new Set,n.add((0,b.ZJ)()),e.set(t,n)),n.add(i)}const t=t=>{var i;if(!function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const n=t.getContextKeyValue(S.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(N.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";(0,d.YK)(t.charCodeAt(t.length-1))?(0,d.ZG)(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const s=e.get(n);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:Boolean(this._completionModel),clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;b.tG.isAllOff(this._editor.getOption(89))||this._editor.getOption(118).snippetsPreventQuickSuggestions&&(null===(e=x.f.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!N.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(89);if(!b.tG.isAllOff(i)){if(!b.tG.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),s=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==b.tG.valueFor(i,s))return}(function(e,t,i){if(!Boolean(t.getContextKeyValue(S.f.inlineSuggestionVisible.key)))return!0;const n=t.getContextKeyValue(S.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(90)))}_refilterCompletionItems(){(0,w.p_)(this._editor.hasModel()),(0,w.p_)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new N(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){var t,i,s,a,l,d;if(!this._editor.hasModel())return;const h=this._editor.getModel(),c=new N(h,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:null!==(t=e.shy)&&void 0!==t&&t,position:this._editor.getPosition()}),this._context=c;let g={triggerKind:null!==(i=e.triggerKind)&&void 0!==i?i:0};e.triggerCharacter&&(g={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new o.A;let p=1;switch(this._editor.getOption(112)){case"top":p=0;break;case"bottom":p=2}const{itemKind:m,showDeprecated:f}=n.createSuggestFilter(this._editor),_=new b.A9(p,null!==(a=null===(s=e.completionOptions)||void 0===s?void 0:s.kindFilter)&&void 0!==a?a:m,null===(l=e.completionOptions)||void 0===l?void 0:l.providerFilter,null===(d=e.completionOptions)||void 0===d?void 0:d.providerItemsToReuse,f),C=u.K.create(this._editorWorkerService,this._editor),w=(0,b.kL)(this._languageFeaturesService.completionProvider,h,this._editor.getPosition(),_,g,this._requestToken.token);Promise.all([w,C]).then((async t=>{let[i,n]=t;var s;if(null===(s=this._requestToken)||void 0===s||s.dispose(),!this._editor.hasModel())return;let o=null===e||void 0===e?void 0:e.clipboardText;if(!o&&i.needsClipboard&&(o=await this._clipboardService.readText()),void 0===this._triggerState)return;const r=this._editor.getModel(),a=new N(r,this._editor.getPosition(),e),l={...y.mX.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new v._(i.items,this._context.column,{leadingLineContent:a.leadingLineContent,characterCountDelta:a.column-this._context.column},n,this._editor.getOption(118),this._editor.getOption(112),l,o),this._completionDisposables.add(i.disposable),this._onNewContext(a),this._reportDurationsTelemetry(i.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of i.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(r.dL)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(112)&&t.add(27);const i=e.getOption(118);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,d.V8)(e.leadingLineContent)===(0,d.V8)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(N.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const n=N.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(n&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};E=n=k([D(1,c.p),D(2,g.p),D(3,_.b),D(4,f.VZ),D(5,m.i6),D(6,p.Ui),D(7,C.p),D(8,L.Y)],E)},39671:(e,t,i)=>{"use strict";i.d(t,{K:()=>r});var n=i(51833),s=i(28928),o=i(6880);class r{static async create(e,t){if(!t.getOption(118).localityBonus)return r.None;if(!t.hasModel())return r.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return r.None;const[l]=await(new o.x).provideSelectionRanges(i,[a]);if(0===l.length)return r.None;const d=await e.computeWordRanges(i.uri,l[0].range);if(!d)return r.None;const h=i.getWordUntilPosition(a);return delete d[h.word],new class extends r{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const o="string"===typeof i.label?i.label:i.label.label,r=d[o];if((0,n.XY)(r))return 2<<20;const h=(0,n.ry)(r,s.e.fromPositions(e),s.e.compareRangesUsingStarts),c=h>=0?r[h]:r[Math.max(0,~h-1)];let u=l.length;for(const t of l){if(!s.e.containsRange(t.range,c))break;u-=1}return u}}}}r.None=new class extends r{distance(){return 0}}},95451:(e,t,i)=>{"use strict";var n=i(5887),s=i(6009);(0,s.P6G)("symbolIcon.arrayForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.booleanForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.colorForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.constantForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.fileForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.folderForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.keyForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.keywordForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.moduleForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.namespaceForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.nullForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.numberForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.objectForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.operatorForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.packageForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.propertyForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.referenceForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.snippetForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.stringForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.structForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.textForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.typeParameterForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.unitForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},77042:(e,t,i)=>{"use strict";var n=i(83945),s=i(52274),o=i(5887),r=i(6178);class a extends r.Ke{constructor(){super({id:a.ID,title:o.vv({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(){const e=!s.n.getTabFocusMode();s.n.setTabFocusMode(e),e?(0,n.Z9)(o.NC("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.Z9)(o.NC("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",(0,r.r1)(a)},49724:(e,t,i)=>{"use strict";var n=i(6617),s=i(60548),o=i(5887);class r extends s.R6{constructor(){super({id:"editor.action.forceRetokenize",label:o.NC("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const s=new n.G;i.tokenization.forceTokenization(i.getLineCount()),s.stop(),console.log(`tokenization took ${s.elapsed()}`)}}(0,s.Qr)(r)},39422:(e,t,i)=>{"use strict";var n=i(53372),s=i(61542),o=i(73971),r=i(53186),a=i(90388),l=i(78701),d=i(60548),h=i(67364),c=i(13277),u=i(97050),g=i(69115),p=i(91342),m=i(61558),f=i(82213),_=i(58354),v=i(76595),b=i(7144),C=i(51828),y=i(35978),w=i(87775),S=i(24199),x=i(10381),L=i(68068),k=i(39706),D=i(34912),N=i(71371),E=i(97133),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=class extends r.JT{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;var s,o;super(),this._link=t,this._enabled=!0,this.el=(0,v.R3)(e,(0,v.$)("a.monaco-link",{tabIndex:null!==(s=t.tabIndex)&&void 0!==s?s:0,href:t.href},t.label)),this.hoverDelegate=null!==(o=i.hoverDelegate)&&void 0!==o?o:(0,E.tM)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new S.Y(this.el,"click")),a=this._register(new S.Y(this.el,"keypress")),l=k.ju.chain(a.event,(e=>e.map((e=>new x.y(e))).filter((e=>3===e.keyCode)))),d=this._register(new S.Y(this.el,L.t.Tap)).event;this._register(L.o.addTarget(this.el));const h=k.ju.any(r.event,l,d);this._register(h((e=>{this.enabled&&(v.zB.stop(e,!0),(null===i||void 0===i?void 0:i.opener)?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=null!==e&&void 0!==e?e:"":!this.hover&&e?this.hover=this._register((0,N.g)(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};M=T([I(3,D.v)],M);var A=i(54329),R=i(73045),O=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},P=function(e,t){return function(i,n){t(i,n,e)}};let F=class extends r.JT{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(B))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}}),this._editor.setBanner(this.banner.element,26)}};F=O([P(1,w.TG)],F);let B=class extends r.JT{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(y.$,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.PO)(this.element)}show(e){(0,v.PO)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.R3)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${R.k.asCSSSelector(e.icon)}`));const n=(0,v.R3)(this.element,(0,v.$)("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.R3)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const o of e.actions)this._register(this.instantiationService.createInstance(M,this.messageActionsContainer,{...o,tabIndex:-1},{}));const s=(0,v.R3)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new b.o(s)),this.actionBar.push(this._register(new C.aU("banner.close","Close Banner",R.k.asClassName(A.s_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};B=O([P(0,w.TG)],B);var V=i(5887),W=i(30600),H=i(2033),z=i(72514),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};const K=(0,A.q5)("extensions-warning-message",s.l.warning,V.NC("warningIcon","Icon shown with a warning message in the extensions editor."));let q=class extends r.JT{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:V.NC("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new oe};else if(e.ambiguousCharacterCount>=t)i={message:V.NC("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new ne};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:V.NC("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new se}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:K,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(125),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(125)&&(this._options=e.getOption(125),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.Av?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.Av?!e:t.includeComments,includeStrings:t.includeStrings===h.Av?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.dK:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new $(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new G(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};q.ID="editor.contrib.unicodeHighlighter",q=j([U(1,g.p),U(2,z.Y),U(3,w.TG)],q);let $=class extends r.JT{constructor(e,t,i,s){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=s,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.Fd)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.$t)(t,e),inString:(0,m.zg)(t,e)}}};$=j([U(3,g.p)],$);class G extends r.JT{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const e=u.a.computeUnicodeHighlights(this._model,this._options,n);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.Fd)(t,e)?{reason:J(i,this._options),inComment:(0,m.$t)(t,e),inString:(0,m.zg)(t,e)}:null}}const Y=V.NC("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Z=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=this._editor.getContribution(q.ID);if(!n)return[];const s=[],r=new Set;let a=300;for(const d of t){const e=n.getDecorationInfo(d);if(!e)continue;const t=i.getValueInRange(d.range).codePointAt(0),h=X(t);let c;switch(e.reason.kind){case 0:c=(0,l.$i)(e.reason.confusableWith)?V.NC("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,X(e.reason.confusableWith.codePointAt(0))):V.NC("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,X(e.reason.confusableWith.codePointAt(0)));break;case 1:c=V.NC("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:c=V.NC("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(r.has(c))continue;r.add(c);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=V.NC("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${re.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new o.W5("",!0).appendMarkdown(c).appendText(" ").appendLink(p,g,Y);s.push(new _.hU(this,d.range,[m],!1,a++))}return s}renderHoverParts(e,t){return(0,_.c)(e,t,this._editor,this._languageService,this._openerService)}};function Q(e){return`U+${e.toString(16).padStart(4,"0")}`}function X(e){let t=`\`${Q(e)}\``;return l.vU.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.a.computeUnicodeHighlightReason(e,t)}Z=j([U(1,p.O),U(2,D.v)],Z);class ee{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=c.qx.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}ee.instance=new ee;class te extends d.R6{constructor(){super({id:ne.ID,label:V.NC("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.includeComments,!1,2)}}class ie extends d.R6{constructor(){super({id:ne.ID,label:V.NC("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.includeStrings,!1,2)}}class ne extends d.R6{constructor(){super({id:ne.ID,label:V.NC("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.ambiguousCharacters,!1,2)}}ne.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class se extends d.R6{constructor(){super({id:se.ID,label:V.NC("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.invisibleCharacters,!1,2)}}se.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class oe extends d.R6{constructor(){super({id:oe.ID,label:V.NC("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.nonBasicASCII,!1,2)}}oe.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class re extends d.R6{constructor(){super({id:re.ID,label:V.NC("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:n,reason:s,inString:o,inComment:r}=i,a=String.fromCodePoint(n),d=e.get(H.eJ),c=e.get(W.Ui);const u=[];if(0===s.kind)for(const l of s.notAmbiguousInLocales)u.push({label:V.NC("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',l),run:async()=>{ae(c,[l])}});if(u.push({label:function(e){return l.vU.isInvisibleCharacter(e)?V.NC("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Q(e)):V.NC("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Q(e)} "${a}"`)}(n),run:()=>async function(e,t){const i=e.getValue(h.qt.allowedCharacters);let n;n="object"===typeof i&&i?i:{};for(const s of t)n[String.fromCodePoint(s)]=!0;await e.updateValue(h.qt.allowedCharacters,n,2)}(c,[n])}),r){const e=new te;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(o){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(c)})}if(0===s.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(1===s.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(2===s.kind){const e=new oe;u.push({label:e.label,run:async()=>e.runAction(c)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(s);const g=await d.pick(u,{title:Y});g&&await g.run()}}async function ae(e,t){var i;const n=null===(i=e.inspect(h.qt.allowedLocales).user)||void 0===i?void 0:i.value;let s;s="object"===typeof n&&n?Object.assign({},n):{};for(const o of t)s[o]=!0;await e.updateValue(h.qt.allowedLocales,s,2)}re.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,d.Qr)(ne),(0,d.Qr)(se),(0,d.Qr)(oe),(0,d.Qr)(re),(0,d._K)(q.ID,q,1),f.Ae.register(Z)},71636:(e,t,i)=>{"use strict";var n=i(53186),s=i(30506),o=i(60548),r=i(74246),a=i(5887),l=i(21182),d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};const c="ignoreUnusualLineTerminators";let u=class extends n.JT{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,c)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(91))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.NC("unusualLineTerminators.title","Unusual Line Terminators"),message:a.NC("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.NC("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,s.EZ)(e.uri)),primaryButton:a.NC({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.NC("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,c,i)}(this._codeEditorService,e,!0)}};u.ID="editor.contrib.unusualLineTerminatorsDetector",u=d([h(1,l.S),h(2,r.$)],u),(0,o._K)(u.ID,u,1)},11797:(e,t,i)=>{"use strict";i.d(t,{G:()=>b,w:()=>C});var n=i(24032),s=i(13277),o=i(18841),r=i(5887),a=i(6009),l=i(46673);const d=(0,a.P6G)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},r.NC("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.P6G)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},r.NC("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.P6G)("editor.wordHighlightTextBackground",{light:d,dark:d,hcDark:d,hcLight:d},r.NC("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.P6G)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},r.NC("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.P6G)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},r.NC("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.P6G)("editor.wordHighlightTextBorder",{light:h,dark:h,hcDark:h,hcLight:h},r.NC("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const c=(0,a.P6G)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},r.NC("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.P6G)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},r.NC("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.P6G)("editorOverviewRuler.wordHighlightTextForeground",{dark:a.SPM,light:a.SPM,hcDark:a.SPM,hcLight:a.SPM},r.NC("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=s.qx.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.EN)(u),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),m=s.qx.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.EN)(g),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),f=s.qx.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.EN)(a.SPM),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),_=s.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=s.qx.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.EN)(c),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}});function b(e){return e===o.MY.Write?p:e===o.MY.Text?m:v}function C(e){return e?_:f}(0,l.Ic)(((e,t)=>{const i=e.getColor(a.Rzx);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},78564:(e,t,i)=>{"use strict";var n,s,o=i(5887),r=i(51833),a=i(83945),l=i(53372),d=i(76946),h=i(16015),c=i(53186),u=i(48850),g=i(60548),p=i(74246),m=i(28928),f=i(35770),_=i(18841),v=i(24032),b=i(53869),C=i(11797),y=i(47116),w=i(32060),S=i(38079),x=i(45298),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},k=function(e,t){return function(i,n){t(i,n,e)}};const D=new y.uy("hasWordHighlights",!1);function N(e,t,i,n){const s=e.ordered(t);return(0,l.Ps)(s.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,h.Cp))),r.Of).then((e=>{if(e){const i=new S.Y9;return i.set(t.uri,e),i}return new S.Y9}))}class E{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,l.PG)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new m.e(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,o=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let l=0,d=i.length;!a&&l<d;l++){const e=i.getRange(l);e&&e.startLineNumber===n&&e.startColumn<=s&&e.endColumn>=o&&(a=!0)}return a}cancel(){this.result.cancel()}}class T extends E{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return N(this._providers,e,t.getPosition(),n).then((e=>e||new S.Y9))}}class I extends E{constructor(e,t,i,n,s){super(e,t,i),this._providers=n,this._otherModels=s}_compute(e,t,i,n){return function(e,t,i,n,s,o){const r=e.ordered(t);return(0,l.Ps)(r.map((e=>()=>{const n=o.filter((e=>(0,v.pt)(e))).filter((t=>(0,x.G)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,n,s)).then(void 0,h.Cp)})),(e=>e instanceof S.Y9&&e.size>0))}(this._providers,e,t.getPosition(),0,n,this._otherModels).then((e=>e||new S.Y9))}}class M extends E{constructor(e,t,i,n,s){super(e,t,n),this._otherModels=s,this._selectionIsEmpty=t.isEmpty(),this._word=i}_compute(e,t,i,n){return(0,l.Vs)(250,n).then((()=>{const n=new S.Y9;let s;if(s=this._word?this._word:e.getWordAtPosition(t.getPosition()),!s)return new S.Y9;const o=[e,...this._otherModels];for(const e of o){if(e.isDisposed())continue;const t=e.findMatches(s.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:_.MY.Text})));t&&n.set(e.uri,t)}return n}))}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}(0,g.sb)("_executeDocumentHighlights",(async(e,t,i)=>{const n=e.get(b.p),s=await N(n.documentHighlightProvider,t,i,d.T.None);return null===s||void 0===s?void 0:s.get(t.uri)}));let A=n=class{constructor(e,t,i,s,o){this.toUnhook=new c.SL,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new S.Y9,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=o,this._hasWordHighlights=D.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this._run())}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():n.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,n.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(m.e.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.Z9)(`${s}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.Z9)(`${s}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=n.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),n.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const e=this.codeEditorService.listCodeEditors(),t=[];for(const i of e){if(!i.hasModel())continue;const e=n.storedDecorations.get(i.getModel().uri);if(!e)continue;i.removeDecorations(e),t.push(i.getModel().uri);const s=R.get(i);(null===s||void 0===s?void 0:s.wordHighlighter)&&(s.wordHighlighter.decorations.length>0&&(s.wordHighlighter.decorations.clear(),s.wordHighlighter.workerRequest=null,s.wordHighlighter._hasWordHighlights.set(!1)))}for(const i of t)n.storedDecorations.delete(i)}_stopSingular(){var e,t,i,s;this._removeSingleDecorations(),this.editor.hasTextFocus()&&((null===(e=this.editor.getModel())||void 0===e?void 0:e.uri.scheme)!==w.lg.vscodeNotebookCell&&(null===(i=null===(t=n.query)||void 0===t?void 0:t.modelInfo)||void 0===i?void 0:i.model.uri.scheme)!==w.lg.vscodeNotebookCell?(n.query=null,this._run()):(null===(s=n.query)||void 0===s?void 0:s.modelInfo)&&(n.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){var t;"off"!==this.occurrencesHighlight&&(3===e.reason||(null===(t=this.editor.getModel())||void 0===t?void 0:t.uri.scheme)===w.lg.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===w.lg.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){const i=n.getModel();i&&i!==e&&i.uri.scheme===w.lg.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){if(!(0,u.QI)(n))continue;const i=n.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const n of i){const i=n.getModel();i&&i!==e&&t.push(i)}return t}_run(){var e;let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return n.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,o=this._getWord();if(!o||o.startColumn>i||o.endColumn<s)return n.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),n.query={modelInfo:{model:this.model,selection:e},word:o}}else if(!n.query)return;if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!n.query.modelInfo||n.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(n.query.modelInfo.model,n.query.modelInfo.selection,n.query.word,i),null===(e=this.workerRequest)||void 0===e||e.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),h.dL)}}computeWithModel(e,t,i,n){return n.length?function(e,t,i,n,s,o){return e.has(t)?new I(t,i,s,e,o):new M(t,i,n,s,o)}(this.multiDocumentProviders,e,t,i,this.editor.getOption(131),n):function(e,t,i,n,s){return e.has(t)?new T(t,i,s,e):new M(t,i,n,s,[])}(this.providers,e,t,i,this.editor.getOption(131))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){var e,t,i;this.renderDecorationsTimer=-1;const s=this.codeEditorService.listCodeEditors();for(const o of s){const s=R.get(o);if(!s)continue;const r=[],a=null===(e=o.getModel())||void 0===e?void 0:e.uri;if(a&&this.workerRequestValue.has(a)){const e=n.storedDecorations.get(a),l=this.workerRequestValue.get(a);if(l)for(const t of l)t.range&&r.push({range:t.range,options:(0,C.G)(t.kind)});let d=[];o.changeDecorations((t=>{d=t.deltaDecorations(null!==e&&void 0!==e?e:[],r)})),n.storedDecorations=n.storedDecorations.set(a,d),r.length>0&&(null===(t=s.wordHighlighter)||void 0===t||t.decorations.set(r),null===(i=s.wordHighlighter)||void 0===i||i._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};A.storedDecorations=new S.Y9,A.query=null,A=n=L([k(4,p.$)],A);let R=s=class extends c.JT{static get(e){return e.getContribution(s.ID)}constructor(e,t,i,n){super(),this._wordHighlighter=null;const s=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new A(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,n))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),s()}))),s()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveNext()}moveBack(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};R.ID="editor.contrib.wordHighlighter",R=s=L([k(1,y.i6),k(2,b.p),k(3,p.$)],R);class O extends g.R6{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=R.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class P extends g.R6{constructor(){super({id:"editor.action.wordHighlight.trigger",label:o.NC("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:D.toNegated(),kbOpts:{kbExpr:f.u.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=R.get(t);n&&n.restoreViewState(!0)}}(0,g._K)(R.ID,R,0),(0,g.Qr)(class extends O{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:o.NC("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.u.editorTextFocus,primary:65,weight:100}})}}),(0,g.Qr)(class extends O{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:o.NC("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.u.editorTextFocus,primary:1089,weight:100}})}}),(0,g.Qr)(P)},97235:(e,t,i)=>{"use strict";i.d(t,{IA:()=>v,t8:()=>y});var n=i(60548),s=i(2196),o=i(67364),r=i(80646),a=i(59571),l=i(55412),d=i(74633),h=i(28928),c=i(24854),u=i(35770),g=i(5580),p=i(5887),m=i(71940),f=i(47116),_=i(48495);class v extends n._l{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=(0,l.u)(t.getOption(131),t.getOption(130)),s=t.getModel(),o=t.getSelections().map((e=>{const t=new d.L(e.positionLineNumber,e.positionColumn),i=this._move(n,s,t,this._wordNavigationType);return this._moveTo(e,i,this._inSelectionMode)}));if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,o.map((e=>r.Vi.fromModelSelection(e)))),1===o.length){const e=new d.L(o[0].positionLineNumber,o[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new c.Y(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new c.Y(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends v{_move(e,t,i,n){return a.w.moveWordLeft(e,t,i,n)}}class C extends v{_move(e,t,i,n){return a.w.moveWordRight(e,t,i,n)}}class y extends n._l{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(g.c_);if(!t.hasModel())return;const o=(0,l.u)(t.getOption(131),t.getOption(130)),r=t.getModel(),a=t.getSelections(),d=t.getOption(6),h=t.getOption(11),c=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:o,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:d,autoClosingQuotes:h,autoClosingPairs:c,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new s.T4(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class w extends y{_delete(e,t){const i=a.w.deleteWordLeft(e,t);return i||new h.e(1,1,1,1)}}class S extends y{_delete(e,t){const i=a.w.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new h.e(n,s,n,s)}}class x extends n.R6{constructor(){super({id:"deleteInsideWord",precondition:u.u.writable,label:p.NC("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=(0,l.u)(t.getOption(131),t.getOption(130)),o=t.getModel(),r=t.getSelections().map((e=>{const t=a.w.deleteInsideWord(n,o,e);return new s.T4(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,n.fK)(new class extends C{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,n.fK)(new class extends C{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends w{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.u.writable})}}),(0,n.fK)(new class extends w{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.u.writable})}}),(0,n.fK)(new class extends w{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,n.fK)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.u.writable})}}),(0,n.fK)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.u.writable})}}),(0,n.fK)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,n.Qr)(x)},77137:(e,t,i)=>{"use strict";var n=i(60548),s=i(59571),o=i(28928),r=i(35770),a=i(97235),l=i(94943);class d extends a.t8{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.u.writable,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=s.L.deleteWordPartLeft(e);return i||new o.e(1,1,1,1)}}class h extends a.t8{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.u.writable,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=s.L.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),r=e.model.getLineMaxColumn(n);return new o.e(n,r,n,r)}}class c extends a.IA{_move(e,t,i,n){return s.L.moveWordPartLeft(e,t,i)}}l.P.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");l.P.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.IA{_move(e,t,i,n){return s.L.moveWordPartRight(e,t,i)}}(0,n.fK)(new d),(0,n.fK)(new h),(0,n.fK)(new class extends c{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,n.fK)(new class extends c{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,n.fK)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,n.fK)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},11506:(e,t,i)=>{"use strict";var n=i(76595),s=i(53186),o=i(60548),r=i(90388);class a extends s.JT{constructor(e){super(),this.editor=e,this.widget=null,r.gn&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(91);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}a.ID="editor.contrib.iPadShowKeyboard";class l extends s.JT{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(n.nm(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(n.nm(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}l.ID="editor.contrib.ShowKeyboardWidget",(0,o._K)(a.ID,a,3)},70597:(e,t,i)=>{"use strict";var n,s=i(76595),o=i(63932),r=i(53186),a=i(60548),l=i(18841),d=i(9556),h=i(31708),c=i(91342),u=i(79737),g=i(23523),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=n=class extends r.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(l.RW.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f.ID="editor.contrib.inspectTokens",f=n=p([m(1,u.Z),m(2,c.O)],f);class _ extends a.R6{constructor(){super({id:"editor.action.inspectTokens",label:g.ug.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);null===i||void 0===i||i.launch()}}class v extends r.JT{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=l.RW.get(t);if(i)return i;const n=e.encodeLanguageId(t);return{getInitialState:()=>h.TJ,tokenize:(e,i,n)=>(0,h.Ri)(t,n),tokenizeEncoded:(e,t,i)=>(0,h.Dy)(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let s=t.tokens1.length-1;s>=0;s--){const n=t.tokens1[s];if(e.column-1>=n.offset){i=s;break}}let n=0;for(let s=t.tokens2.length>>>1;s>=0;s--)if(e.column-1>=t.tokens2[s<<1]){n=s;break}const r=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,n=i+1<t.tokens1.length?t.tokens1[i+1].offset:r.length;a=r.substring(e,n)}(0,s.mc)(this._domNode,(0,s.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);switch(n){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(n)}}return t}(a),(0,s.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,s.R3)(this._domNode,(0,s.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const l=1+(n<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(n<<1)]):null;(0,s.R3)(this._domNode,(0,s.$)("table.tm-metadata-table",void 0,(0,s.$)("tbody",void 0,(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"language"),(0,s.$)("td.tm-metadata-value",void 0,`${l?l.languageId:"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"token type"),(0,s.$)("td.tm-metadata-value",void 0,`${l?this._tokenTypeToString(l.tokenType):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"font style"),(0,s.$)("td.tm-metadata-value",void 0,`${l?this._fontStyleToString(l.fontStyle):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"foreground"),(0,s.$)("td.tm-metadata-value",void 0,`${l?o.Il.Format.CSS.formatHex(l.foreground):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"background"),(0,s.$)("td.tm-metadata-value",void 0,`${l?o.Il.Format.CSS.formatHex(l.background):"-?-"}`))))),(0,s.R3)(this._domNode,(0,s.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,s.R3)(this._domNode,(0,s.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=l.RW.getColorMap(),i=d.N.getLanguageId(e),n=d.N.getTokenType(e),s=d.N.getFontStyle(e),o=d.N.getForeground(e),r=d.N.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:n,fontStyle:s,foreground:t[o],background:t[r]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),n=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:n.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}v._ID="editor.contrib.inspectTokensWidget",(0,a._K)(f.ID,f,4),(0,a.Qr)(_)},3394:(e,t,i)=>{"use strict";var n=i(76322),s=i(99009),o=i(23523),r=i(74246),a=i(77048),l=i(51833),d=i(47624),h=i(5887);function c(e,t){return t&&(e.stack||e.stacktrace)?h.NC("stackTrace.format","{0}: {1}",g(e),u(e.stack)||u(e.stacktrace)):g(e)}function u(e){return Array.isArray(e)?e.join("\n"):e}function g(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?h.NC("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=l.kX(e),n=p(i[0],t);return i.length>1?h.NC("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(d.HD(e))return e;if(e.detail){const i=e.detail;if(i.error)return c(i.error,t);if(i.exception)return c(i.exception,t)}return e.stack?c(e,t):e.message?e.message:h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var m=i(16015),f=i(34835),_=i(66870),v=i(53186),b=i(38079);class C{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,s=[];for(const[o,r]of this.documents){if(t.isCancellationRequested)return[];for(const e of r.chunks){const t=this.computeSimilarityScore(e,i,n);t>0&&s.push({key:o,score:t})}}return s}static termFrequencies(e){return function(e){var t;const i=new Map;for(const n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(C.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const e=[];for(const n of i.textChunks){const i=C.termFrequencies(n);for(const e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:n,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[s,o]of Object.entries(t)){const t=e.tf.get(s);if(!t)continue;let r=i.get(s);"number"!==typeof r&&(r=this.computeIdf(s),i.set(s,r));n+=t*r*o}return n}computeEmbedding(e){const t=C.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}var y,w=i(94943),S=i(30600),x=i(21182),L=i(87775),k=i(25371),D=i(33454),N=i(53372),E=i(76946);function T(e){const t=e;return Array.isArray(t.items)}function I(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(y||(y={}));class M extends v.JT{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const s=new v.SL;let o;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new v.XK),a=async()=>{var n;const s=r.value=new v.SL;null===o||void 0===o||o.dispose(!0),e.busy=!1,o=new E.A(t);const a=o.token;let l=e.value.substring(this.prefix.length);(null===(n=this.options)||void 0===n?void 0:n.shouldSkipTrimPickFilter)||(l=l.trim());const h=this._getPicks(l,s,a,i),c=(t,i)=>{var n;let s,o;if(T(t)?(s=t.items,o=t.active):s=t,0===s.length){if(i)return!1;(l.length>0||e.hideInput)&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(s=(0,d.mf)(this.options.noResultsPick)?[this.options.noResultsPick(l)]:[this.options.noResultsPick])}return e.items=s,o&&(e.activeItems=[o]),!0},u=async t=>{let i=!1,n=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,N.Vs)(t.mergeDelay),a.isCancellationRequested)||n||(i=c(t.picks,!0))})(),(async()=>{e.busy=!0;try{const n=await t.additionalPicks;if(a.isCancellationRequested)return;let s,o,r,l;if(T(t.picks)?(s=t.picks.items,o=t.picks.active):s=t.picks,T(n)?(r=n.items,l=n.active):r=n,r.length>0||!i){let t;if(!o&&!l){const i=e.activeItems[0];i&&-1!==s.indexOf(i)&&(t=i)}c({items:[...s,...r],active:o||l||t})}}finally{a.isCancellationRequested||(e.busy=!1),n=!0}})()])};if(null===h);else if(I(h))await u(h);else if(h instanceof Promise){e.busy=!0;try{const e=await h;if(a.isCancellationRequested)return;I(e)?await u(e):c(e)}finally{a.isCancellationRequested||(e.busy=!1)}}else c(h)};s.add(e.onDidChangeValue((()=>a()))),a(),s.add(e.onDidAccept((t=>{const[i]=e.selectedItems;"function"===typeof(null===i||void 0===i?void 0:i.accept)&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))})));const l=async(i,n)=>{var s,o;if("function"!==typeof n.trigger)return;const r=null!==(o=null===(s=n.buttons)||void 0===s?void 0:s.indexOf(i))&&void 0!==o?o:-1;if(r>=0){const i=n.trigger(r,e.keyMods),s="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(s){case y.NO_ACTION:break;case y.CLOSE_PICKER:e.hide();break;case y.REFRESH_PICKER:a();break;case y.REMOVE_ITEM:{const t=e.items.indexOf(n);if(-1!==t){const i=e.items.slice(),n=i.splice(t,1),s=e.activeItems.filter((e=>e!==n[0])),o=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,s&&(e.activeItems=s),e.keepScrollPosition=o}break}}}};return s.add(e.onDidTriggerItemButton((e=>{let{button:t,item:i}=e;return l(t,i)}))),s.add(e.onDidTriggerSeparatorButton((e=>{let{button:t,separator:i}=e;return l(t,i)}))),s}}var A,R,O=i(87650),P=i(57823),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};let V=A=class extends M{constructor(e,t,i,n,s,o){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=o,this.commandsHistory=this._register(this.instantiationService.createInstance(W)),this.options=e}async _getPicks(e,t,i,n){var s,o,r,a;const l=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const d=(0,_.M)((()=>{const t=new C;t.updateDocuments(l.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){var t,i;const n=e.slice(0);n.sort(((e,t)=>t.score-e.score));const s=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(s>0)for(const o of n)o.score/=s;return n}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),c=[];for(const h of l){const t=null!==(s=A.WORD_FILTER(e,h.label))&&void 0!==s?s:void 0,n=h.commandAlias&&null!==(o=A.WORD_FILTER(e,h.commandAlias))&&void 0!==o?o:void 0;if(t||n)h.highlights={label:t,detail:this.options.showAlias?n:void 0},c.push(h);else if(e===h.commandId)c.push(h);else if(e.length>=3){const e=d();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===h.commandId));t&&(h.tfIdfScore=t.score,c.push(h))}}const u=new Map;for(const h of c){const e=u.get(h.label);e?(h.description=h.commandId,e.description=e.commandId):u.set(h.label,h)}c.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);if(i&&n)return i>n?-1:1;if(i)return-1;if(n)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),n=this.options.suggestedCommandIds.has(t.commandId);if(i&&n)return 0;if(i)return-1;if(n)return 1}return e.label.localeCompare(t.label)}));const g=[];let p=!1,m=!0,f=!!this.options.suggestedCommandIds;for(let _=0;_<c.length;_++){const e=c[_];0===_&&this.commandsHistory.peek(e.commandId)&&(g.push({type:"separator",label:(0,h.NC)("recentlyUsed","recently used")}),p=!0),m&&void 0!==e.tfIdfScore&&(g.push({type:"separator",label:(0,h.NC)("suggested","similar commands")}),m=!1),f&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&(null===(r=this.options.suggestedCommandIds)||void 0===r?void 0:r.has(e.commandId))&&(g.push({type:"separator",label:(0,h.NC)("commonlyUsed","commonly used")}),p=!0,f=!1),!p||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||(null===(a=this.options.suggestedCommandIds)||void 0===a?void 0:a.has(e.commandId))||(g.push({type:"separator",label:(0,h.NC)("morecCommands","other commands")}),p=!1),g.push(this.toCommandPick(e,n))}return this.hasAdditionalCommandPicks(e,i)?{picks:g,additionalPicks:(async()=>{var t;const s=await this.getAdditionalCommandPicks(l,c,e,i);if(i.isCancellationRequested)return[];const o=s.map((e=>this.toCommandPick(e,n)));return m&&"separator"!==(null===(t=o[0])||void 0===t?void 0:t.type)&&o.unshift({type:"separator",label:(0,h.NC)("suggested","similar commands")}),o})()}:g}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?(0,h.NC)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{var i,n;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:null!==(i=null===t||void 0===t?void 0:t.from)&&void 0!==i?i:"quick open"});try{(null===(n=e.args)||void 0===n?void 0:n.length)?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(s){(0,m.n2)(s)||this.dialogService.error((0,h.NC)("canNotRun","Command '{0}' resulted in an error",e.label),p(s))}}}}getTfIdfChunk(e){let{label:t,commandAlias:i,commandDescription:n}=e,s=t;return i&&i!==t&&(s+=` - ${i}`),n&&n.value!==t&&(s+=` - ${n.value===n.original?n.value:`${n.value} (${n.original})`}`),s}};V.PREFIX=">",V.TFIDF_THRESHOLD=.5,V.TFIDF_MAX_RESULTS=5,V.WORD_FILTER=(0,f.or)(f.Ji,f.KZ,f.ir),V=A=F([B(1,L.TG),B(2,k.d),B(3,w.H),B(4,P.b),B(5,x.S)],V);let W=R=class extends v.JT{constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===O.fk.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=R.getConfiguredCommandHistoryLength(this.configurationService),R.cache&&R.cache.limit!==this.configuredCommandsHistoryLength&&(R.cache.limit=this.configuredCommandsHistoryLength,R.hasChanges=!0))}load(){const e=this.storageService.get(R.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(n){this.logService.error(`[CommandsHistory] invalid data: ${n}`)}const i=R.cache=new b.z6(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}R.counter=this.storageService.getNumber(R.PREF_KEY_COUNTER,0,R.counter)}push(e){R.cache&&(R.cache.set(e,R.counter++),R.hasChanges=!0)}peek(e){var t;return null===(t=R.cache)||void 0===t?void 0:t.peek(e)}saveState(){if(!R.cache)return;if(!R.hasChanges)return;const e={usesLRU:!0,entries:[]};R.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(R.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(R.PREF_KEY_COUNTER,R.counter,0,0),R.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var t,i;const n=null===(i=null===(t=e.getValue().workbench)||void 0===t?void 0:t.commandPalette)||void 0===i?void 0:i.history;return"number"===typeof n?n:R.DEFAULT_COMMANDS_HISTORY_LENGTH}};W.DEFAULT_COMMANDS_HISTORY_LENGTH=50,W.PREF_KEY_CACHE="commandPalette.mru.cache",W.PREF_KEY_COUNTER="commandPalette.mru.counter",W.counter=1,W.hasChanges=!1,W=R=F([B(0,O.Uy),B(1,S.Ui),B(2,D.VZ)],W);class H extends V{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,a.x$)(i.label)||i.id});return t}}var z=i(60548),j=i(35770),U=i(2033),K=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},q=function(e,t){return function(i,n){t(i,n,e)}};let $=class extends H{get activeTextEditorControl(){var e;return null!==(e=this.codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}constructor(e,t,i,n,s,o){super({showAlias:!1},e,i,n,s,o),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};$=K([q(0,L.TG),q(1,r.$),q(2,k.d),q(3,w.H),q(4,P.b),q(5,x.S)],$);class G extends z.R6{constructor(){super({id:G.ID,label:o.UX.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:j.u.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(U.eJ).quickAccess.show($.PREFIX)}}G.ID="editor.action.quickCommand",(0,z.Qr)(G),n.B.as(s.IP.Quickaccess).registerQuickAccessProvider({ctor:$,prefix:$.PREFIX,helpEntries:[{description:o.UX.quickCommandHelp,commandId:G.ID}]})},95879:(e,t,i)=>{"use strict";var n=i(53186),s=i(48850),o=i(28599),r=i(5887);class a extends o.X{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,r.NC)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n.JT.None}provideWithTextEditor(e,t,i){const o=e.editor,r=new n.SL;r.add(t.onDidAccept((i=>{const[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(o,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const l=()=>{const e=this.parsePosition(o,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(o,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(o,e.lineNumber))return void this.clearDecorations(o);const n=this.toRange(e.lineNumber,e.column);o.revealRangeInCenter(n,0),this.addDecorations(o,n)};l(),r.add(t.onDidChangeValue((()=>l())));const d=(0,s.Pi)(o);if(d){2===d.getOptions().get(68).renderType&&(d.updateOptions({lineNumbers:"on"}),r.add((0,n.OF)((()=>d.updateOptions({lineNumbers:"relative"})))))}return r}toRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,r.NC)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,r.NC)("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?(0,r.NC)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):(0,r.NC)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}a.PREFIX=":";var l=i(76322),d=i(99009),h=i(74246),c=i(23523),u=i(39706),g=i(60548),p=i(35770),m=i(2033),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.ju.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};v=f([_(0,h.$)],v);class b extends g.R6{constructor(){super({id:b.ID,label:c.qq.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.eJ).quickAccess.show(v.PREFIX)}}b.ID="editor.action.gotoLine",(0,g.Qr)(b),l.B.as(d.IP.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:c.qq.gotoLineActionLabel,commandId:b.ID}]})},70902:(e,t,i)=>{"use strict";i(60951),i(95451);var n=i(53372),s=i(76946),o=i(61542),r=i(73045),a=i(34835),l=i(96682),d=i(90388),h=i(78701);const c=[void 0,[]];function u(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=t;return s.values&&s.values.length>1?function(e,t,i,n){let s=0;const o=[];for(const r of t){const[t,a]=g(e,r,i,n);if("number"!==typeof t)return c;s+=t,o.push(...a)}return[s,p(o)]}(e,s.values,i,n):g(e,t,i,n)}function g(e,t,i,n){const s=(0,a.EW)(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return s?[s[0],(0,a.mB)(s)]:c}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let n;for(const s of t)n&&m(n,s)?(n.start=Math.min(n.start,s.start),n.end=Math.max(n.end,s.end)):(n=s,i.push(s));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}const _=" ";function v(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:n,normalizedLowercase:s}=b(e),o=i.indexOf(l.ir)>=0,r=f(e);let a;const d=e.split(_);if(d.length>1)for(const l of d){const e=f(l),{pathNormalized:t,normalized:i,normalizedLowercase:n}=b(l);i&&(a||(a=[]),a.push({original:l,originalLowercase:l.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:n,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:s,values:a,containsPathSeparator:o,expectContiguousMatch:r}}function b(e){let t;t=d.ED?e.replace(/\//g,l.ir):e.replace(/\\/g,l.ir);const i=(0,h.R1)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?v(e.map((e=>e.original)).join(_)):v(e.original)}var y,w=i(53186),S=i(28928),x=i(18841),L=i(9895),k=i(28599),D=i(5887),N=i(53869),E=i(91206),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=y=class extends k.X{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.create(null);super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,D.NC)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),w.JT.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):w.JT.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new w.SL;return this.provideLabelPick(i,(0,D.NC)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,s)&&!n.isCancellationRequested&&s.add(this.doProvideWithEditorSymbols(e,t,i,n))})(),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new n.CR,s=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(s.dispose(),i.complete(!0))})));return t.add((0,w.OF)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,n){var o;const r=e.editor,a=new w.SL;a.add(i.onDidAccept((t=>{const[n]=i.selectedItems;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((t=>{let{item:n}=t;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const l=this.getDocumentSymbols(t,n);let d;const h=async e=>{null===d||void 0===d||d.dispose(!0),i.busy=!1,d=new s.A(n),i.busy=!0;try{const t=v(i.value.substr(y.PREFIX.length).trim()),s=await this.doGetSymbolPicks(l,t,void 0,d.token);if(n.isCancellationRequested)return;if(s.length>0){if(i.items=s,e&&0===t.original.length){const t=(0,E.dF)(s,(t=>Boolean("separator"!==t.type&&t.range&&S.e.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else t.original.length>0?this.provideLabelPick(i,(0,D.NC)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,D.NC)("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(null===(o=r.getSelection())||void 0===o?void 0:o.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(r.revealRangeInCenter(e.range.selection,0),this.addDecorations(r,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,n){var s,a;const l=await e;if(n.isCancellationRequested)return[];const d=0===t.original.indexOf(y.SCOPE_PREFIX),c=d?1:0;let g,p,m;t.values&&t.values.length>1?(g=C(t.values[0]),p=C(t.values.slice(1))):g=t;const f=null===(a=null===(s=this.options)||void 0===s?void 0:s.openSideBySideDirection)||void 0===a?void 0:a.call(s);f&&(m=[{iconClass:"right"===f?r.k.asClassName(o.l.splitHorizontal):r.k.asClassName(o.l.splitVertical),tooltip:"right"===f?(0,D.NC)("openToSide","Open to the Side"):(0,D.NC)("openToBottom","Open to the Bottom")}]);const _=[];for(let w=0;w<l.length;w++){const L=l[w],k=(0,h.fy)(L.name),N=`$(${x.uZ.toIcon(L.kind).id}) ${k}`,E=N.length-k.length;let T,I,M,O,P=L.containerName;if((null===i||void 0===i?void 0:i.extraContainerLabel)&&(P=P?`${i.extraContainerLabel} \u2022 ${P}`:i.extraContainerLabel),t.original.length>c){let B=!1;if(g!==t&&([T,I]=u(N,{...t,values:void 0},c,E),"number"===typeof T&&(B=!0)),"number"!==typeof T&&([T,I]=u(N,g,c,E),"number"!==typeof T))continue;if(!B&&p){if(P&&p.original.length>0&&([M,O]=u(P,p)),"number"!==typeof M)continue;"number"===typeof T&&(T+=M)}}const F=L.tags&&L.tags.indexOf(1)>=0;_.push({index:w,kind:L.kind,score:T,label:N,ariaLabel:(0,x.R4)(L.name,L.kind),description:P,highlights:F?void 0:{label:I,description:O},range:{selection:S.e.collapseToStart(L.selectionRange),decoration:L.range},strikethrough:F,buttons:m})}const v=_.sort(((e,t)=>d?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let b=[];if(d){let V,W,H=0;function z(){W&&"number"===typeof V&&H>0&&(W.label=(0,h.WU)(R[V]||A,H))}for(const j of v)V!==j.kind?(z(),V=j.kind,H=1,W={type:"separator"},b.push(W)):H++,b.push(j);z()}else v.length>0&&(b=[{label:(0,D.NC)("symbols","symbols ({0})",_.length),type:"separator"},...v]);return b}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=R[e.kind]||A,n=R[t.kind]||A,s=i.localeCompare(n);return 0===s?this.compareByScore(e,t):s}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};M.PREFIX="@",M.SCOPE_PREFIX=":",M.PREFIX_BY_CATEGORY=`${y.PREFIX}${y.SCOPE_PREFIX}`,M=y=T([I(0,N.p),I(1,L.Je)],M);const A=(0,D.NC)("property","properties ({0})"),R={5:(0,D.NC)("method","methods ({0})"),11:(0,D.NC)("function","functions ({0})"),8:(0,D.NC)("_constructor","constructors ({0})"),12:(0,D.NC)("variable","variables ({0})"),4:(0,D.NC)("class","classes ({0})"),22:(0,D.NC)("struct","structs ({0})"),23:(0,D.NC)("event","events ({0})"),24:(0,D.NC)("operator","operators ({0})"),10:(0,D.NC)("interface","interfaces ({0})"),2:(0,D.NC)("namespace","namespaces ({0})"),3:(0,D.NC)("package","packages ({0})"),25:(0,D.NC)("typeParameter","type parameters ({0})"),1:(0,D.NC)("modules","modules ({0})"),6:(0,D.NC)("property","properties ({0})"),9:(0,D.NC)("enum","enumerations ({0})"),21:(0,D.NC)("enumMember","enumeration members ({0})"),14:(0,D.NC)("string","strings ({0})"),0:(0,D.NC)("file","files ({0})"),17:(0,D.NC)("array","arrays ({0})"),15:(0,D.NC)("number","numbers ({0})"),16:(0,D.NC)("boolean","booleans ({0})"),18:(0,D.NC)("object","objects ({0})"),19:(0,D.NC)("key","keys ({0})"),7:(0,D.NC)("field","fields ({0})"),13:(0,D.NC)("constant","constants ({0})")};var O=i(76322),P=i(99009),F=i(74246),B=i(23523),V=i(39706),W=i(60548),H=i(35770),z=i(2033),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};let K=class extends M{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=V.ju.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};K=j([U(0,F.$),U(1,N.p),U(2,L.Je)],K);class q extends W.R6{constructor(){super({id:q.ID,label:B.aq.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:H.u.hasDocumentSymbolProvider,kbOpts:{kbExpr:H.u.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(z.eJ).quickAccess.show(M.PREFIX,{itemActivation:z.jG.NONE})}}q.ID="editor.action.quickOutline",(0,W.Qr)(q),O.B.as(P.IP.Quickaccess).registerQuickAccessProvider({ctor:K,prefix:M.PREFIX,helpEntries:[{description:B.aq.quickOutlineActionLabel,prefix:M.PREFIX,commandId:q.ID},{description:B.aq.quickOutlineByCategoryActionLabel,prefix:M.PREFIX_BY_CATEGORY}]})},71571:(e,t,i)=>{"use strict";var n,s=i(76322),o=i(99009),r=i(23523),a=i(5887),l=i(53186),d=i(25371),h=i(2033),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=n=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=s.B.as(o.IP.Quickaccess)}provide(e){const t=new l.SL;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(n.PREFIX.length));t&&t.prefix&&t.prefix!==n.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==n.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,n=i||"\u2026";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.NC)("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}}))}};g.PREFIX="?",g=n=c([u(0,h.eJ),u(1,d.d)],g),s.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:r.ld.helpQuickAccessActionLabel}]})},23977:(e,t,i)=>{"use strict";var n=i(60548),s=i(74246),o=i(6823),r=i(30600),a=i(47116),l=i(87775),d=i(61758),h=i(87650),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends o.J{constructor(e,t,i,n,s,o,r){super(!0,e,t,i,n,s,o,r)}};g=c([u(1,a.i6),u(2,s.$),u(3,d.lT),u(4,l.TG),u(5,h.Uy),u(6,r.Ui)],g),(0,n._K)(o.J.ID,g,4)},84633:(e,t,i)=>{"use strict";i.d(t,{kR:()=>M,MU:()=>A,nI:()=>W,rW:()=>I,TG:()=>T});var n=i(76595),s=i(27748),o=i(63932),r=i(39706),a=i(18841),l=i(9556);class d{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class c{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=o.Il.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let n=0,s=e.length;n<s;n++){const s=e[n];let o=-1;if("string"===typeof s.fontStyle){o=0;const e=s.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let r=null;"string"===typeof s.foreground&&(r=s.foreground);let a=null;"string"===typeof s.background&&(a=s.background),t[i++]=new d(s.token||"",n,o,r,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,n="000000",s="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(s=t.background)}const o=new c;for(const h of t)o.getId(h);const r=o.getId(n),a=o.getId(s),l=new p(i,r,a),d=new m(l);for(let h=0,c=e.length;h<c;h++){const t=e[h];d.insert(t.token,t.fontStyle,o.getId(t.foreground),o.getId(t.background))}return new u(o,d)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),n=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|n<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,n;-1===t?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return"undefined"!==typeof s?s.match(n):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);const s=e.indexOf(".");let o,r;-1===s?(o=e,r=""):(o=e.substring(0,s),r=e.substring(s+1));let a=this._children.get(o);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,i,n)}}var f=i(12354),_=i(6009);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.cvW]:"#FFFFFE",[_.NOs]:"#000000",[_.ES4]:"#E5EBF1",[f.gS]:"#D3D3D3",[f.qe]:"#939393",[_.Rzx]:"#ADD6FF4D"}},b={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.cvW]:"#1E1E1E",[_.NOs]:"#D4D4D4",[_.ES4]:"#3A3D41",[f.gS]:"#404040",[f.qe]:"#707070",[_.Rzx]:"#ADD6FF26"}},C={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.cvW]:"#000000",[_.NOs]:"#FFFFFF",[f.gS]:"#FFFFFF",[f.qe]:"#FFFFFF"}},y={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.cvW]:"#FFFFFF",[_.NOs]:"#292929",[f.gS]:"#292929",[f.qe]:"#292929"}};var w=i(76322),S=i(46673),x=i(53186),L=i(25112),k=i(73045),D=i(54329);class N{getIcon(e){const t=(0,D.Ks)();let i=e.defaults;for(;k.k.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var E=i(11801);const T="vs",I="vs-dark",M="hc-black",A="hc-light",R=w.B.as(_.IPX.ColorContribution),O=w.B.as(S.IP.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,o.Il.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=B(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,o.Il.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=R.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case T:return L.eL.LIGHT;case M:return L.eL.HIGH_CONTRAST_DARK;case A:return L.eL.HIGH_CONTRAST_LIGHT;default:return L.eL.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=B(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,s=l.N.getForeground(n),o=l.N.getFontStyle(n);return{foreground:s,italic:Boolean(1&o),bold:Boolean(2&o),underline:Boolean(4&o),strikethrough:Boolean(8&o)}}}function F(e){return e===T||e===I||e===M||e===A}function B(e){switch(e){case T:return v;case I:return b;case M:return C;case A:return y}}function V(e){const t=B(e);return new P(e,t)}class W extends x.JT{constructor(){super(),this._onColorThemeChange=this._register(new r.Q5),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.Q5),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new N,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(T,V(T)),this._knownThemes.set(I,V(I)),this._knownThemes.set(M,V(M)),this._knownThemes.set(A,V(A));const e=this._register(function(e){const t=new x.SL,i=t.add(new r.Q5),s=(0,D.Ks)();return t.add(s.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new N,i={},o=e=>{const s=t.getIcon(e);if(!s)return;const o=s.font;return o?(i[o.id]=o.definition,`.codicon-${e.id}:before { content: '${s.fontCharacter}'; font-family: ${(0,n._h)(o.id)}; }`):`.codicon-${e.id}:before { content: '${s.fontCharacter}'; }`},r=[];for(const e of s.getIcons()){const t=o(e);t&&r.push(t)}for(const e in i){const t=i[e],s=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,n.wY)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,n._h)(e)};${s}${o} font-display: block; }`)}return r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(T),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,s.uB)(E.E,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return n.OO(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=n.dS(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),x.JT.None}_registerShadowDomContainer(e){const t=n.dS(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(e)&&this._knownThemes.forEach((t=>{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(T),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=E.E.matchMedia("(forced-colors: active)").matches;if(e!==(0,L.c3)(this._theme.type)){let t;t=(0,L._T)(this._theme.type)?e?M:I:e?A:T,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};O.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=[];for(const o of R.getColors()){const e=this._theme.getColor(o.id,!0);e&&n.push(`${(0,_.QO2)(o.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join("\n")} }`);const s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,n=e.length;i<n;i++){const n=e[i];t[i]=`.mtk${i} { color: ${n}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(s)),this._themeCSS=e.join("\n"),this._updateCSS(),a.RW.setColorMap(s),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},48208:(e,t,i)=>{"use strict";var n=i(60548),s=i(79737),o=i(23523),r=i(25112),a=i(84633);class l extends n.R6{constructor(){super({id:"editor.action.toggleHighContrast",label:o.xi.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(s.Z),n=i.getColorTheme();(0,r.c3)(n.type)?(i.setTheme(this._originalThemeName||((0,r._T)(n.type)?a.rW:a.TG)),this._originalThemeName=null):(i.setTheme((0,r._T)(n.type)?a.kR:a.MU),this._originalThemeName=n.themeName)}}(0,n.Qr)(l)},79737:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=(0,i(87775).yh)("themeService")},94385:(e,t,i)=>{"use strict";var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=class{constructor(e,t,i){this._onDidChange=new c.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(4465).then(i.bind(i,94465))}c.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},c.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),c.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),c.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},83443:(e,t,i)=>{"use strict";var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=class{constructor(e,t,i){this._onDidChange=new c.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=x(m,g,p(m)),b=v.defaults,C=x(f,g,p(f)),y=C.defaults,w=x(_,g,p(_)),S=w.defaults;function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(e);const s=new u(e,t,n);let o;const r=c.languages.onLanguage(e,(async()=>{o=(await i.e(1109).then(i.bind(i,71109))).setupMode(s)}));return{defaults:s,dispose(){r.dispose(),o?.dispose(),o=void 0}}}c.languages.html={htmlDefaults:b,razorDefaults:S,handlebarDefaults:y,htmlLanguageService:v,handlebarLanguageService:C,razorLanguageService:w,registerHTMLLanguageService:x}},54205:(e,t,i)=>{"use strict";var n=i(56017),s=new class{constructor(e,t,i){this._onDidChange=new n.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function o(){return i.e(2769).then(i.bind(i,32769))}n.languages.json={jsonDefaults:s,getWorker:()=>o().then((e=>e.getWorker()))},n.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),n.languages.onLanguage("json",(()=>{o().then((e=>e.setupMode(s)))}))},6174:(e,t,i)=>{"use strict";i.d(t,{TG:()=>b});var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,n,s){this._onDidChange=new c.Emitter,this._onDidExtraLibsChange=new c.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(s),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},b=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),C=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function y(){return i.e(5503).then(i.bind(i,25503))}c.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.0.2",typescriptDefaults:b,javascriptDefaults:C,getTypeScriptWorker:()=>y().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>y().then((e=>e.getJavaScriptWorker()))},c.languages.onLanguage("typescript",(()=>y().then((e=>e.setupTypeScript(b))))),c.languages.onLanguage("javascript",(()=>y().then((e=>e.setupJavaScript(C)))))},5887:(e,t,i)=>{"use strict";i.d(t,{NC:()=>o,aj:()=>a,vv:()=>r});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],s=t[n];let o=e;return"string"===typeof s?o=s:"number"!==typeof s&&"boolean"!==typeof s&&void 0!==s&&null!==s||(o=String(s)),o})),n&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function o(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];return s(t,n)}function r(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];const r=s(t,n);return{value:r,original:r}}function a(e){}},71940:(e,t,i)=>{"use strict";i.d(t,{F:()=>s,U:()=>o});var n=i(47116);const s=(0,i(87775).yh)("accessibilityService"),o=new n.uy("accessibilityModeEnabled",!1)},88622:(e,t,i)=>{"use strict";i.d(t,{IV:()=>o,iP:()=>l});var n=i(87775),s=i(5887);const o=(0,n.yh)("accessibilitySignalService");class r{static register(e){return new r(e.fileName)}constructor(e){this.fileName=e}}r.error=r.register({fileName:"error.mp3"}),r.warning=r.register({fileName:"warning.mp3"}),r.foldedArea=r.register({fileName:"foldedAreas.mp3"}),r.break=r.register({fileName:"break.mp3"}),r.quickFixes=r.register({fileName:"quickFixes.mp3"}),r.taskCompleted=r.register({fileName:"taskCompleted.mp3"}),r.taskFailed=r.register({fileName:"taskFailed.mp3"}),r.terminalBell=r.register({fileName:"terminalBell.mp3"}),r.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"}),r.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"}),r.diffLineModified=r.register({fileName:"diffLineModified.mp3"}),r.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"}),r.chatResponsePending=r.register({fileName:"chatResponsePending.mp3"}),r.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"}),r.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"}),r.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"}),r.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"}),r.clear=r.register({fileName:"clear.mp3"}),r.save=r.register({fileName:"save.mp3"}),r.format=r.register({fileName:"format.mp3"}),r.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"}),r.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"});class a{constructor(e){this.randomOneOf=e}}class l{static register(e){const t=new a("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new l(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return l._signals.add(i),i}constructor(e,t,i,n,s,o){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=n,this.legacyAnnouncementSettingsKey=s,this.announcementMessage=o}}l._signals=new Set,l.error=l.register({name:(0,s.NC)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.NC)("accessibility.signals.lineHasError","Error"),settingsKey:"accessibility.signals.lineHasError"}),l.warning=l.register({name:(0,s.NC)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.NC)("accessibility.signals.lineHasWarning","Warning"),settingsKey:"accessibility.signals.lineHasWarning"}),l.foldedArea=l.register({name:(0,s.NC)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.NC)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),l.break=l.register({name:(0,s.NC)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.NC)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),l.inlineSuggestion=l.register({name:(0,s.NC)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),l.terminalQuickFix=l.register({name:(0,s.NC)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.NC)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),l.onDebugBreak=l.register({name:(0,s.NC)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.NC)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),l.noInlayHints=l.register({name:(0,s.NC)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.NC)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),l.taskCompleted=l.register({name:(0,s.NC)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.NC)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),l.taskFailed=l.register({name:(0,s.NC)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.NC)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),l.terminalCommandFailed=l.register({name:(0,s.NC)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.NC)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),l.terminalBell=l.register({name:(0,s.NC)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.NC)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),l.notebookCellCompleted=l.register({name:(0,s.NC)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.NC)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),l.notebookCellFailed=l.register({name:(0,s.NC)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.NC)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),l.diffLineInserted=l.register({name:(0,s.NC)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),l.diffLineDeleted=l.register({name:(0,s.NC)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),l.diffLineModified=l.register({name:(0,s.NC)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),l.chatRequestSent=l.register({name:(0,s.NC)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.NC)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),l.chatResponseReceived=l.register({name:(0,s.NC)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),l.chatResponsePending=l.register({name:(0,s.NC)("accessibilitySignals.chatResponsePending","Chat Response Pending"),sound:r.chatResponsePending,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.chatResponsePending",announcementMessage:(0,s.NC)("accessibility.signals.chatResponsePending","Chat Response Pending"),settingsKey:"accessibility.signals.chatResponsePending"}),l.clear=l.register({name:(0,s.NC)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.NC)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),l.save=l.register({name:(0,s.NC)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.NC)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),l.format=l.register({name:(0,s.NC)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.NC)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),l.voiceRecordingStarted=l.register({name:(0,s.NC)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),l.voiceRecordingStopped=l.register({name:(0,s.NC)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})},51887:(e,t,i)=>{"use strict";i.d(t,{Mm:()=>I,Id:()=>O,vr:()=>E,LJ:()=>N});var n=i(76595),s=i(10381),o=i(26031),r=i(86406),a=i(51828),l=i(47202),d=i(53186),h=i(90388),c=i(5887),u=i(6178);var g=i(47116),p=i(79086),m=i(87775),f=i(25371),_=i(61758),v=i(87650),b=i(46673),C=i(73045),y=i(25112),w=i(47624),S=i(6009),x=i(93617),L=i(71940),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};function N(e,t,i,s){const o=e.getActions(t),r=n._q.getInstance();T(o,i,r.keyStatus.altKey||(h.ED||h.IJ)&&r.keyStatus.shiftKey,s?e=>e===s:e=>"navigation"===e)}function E(e,t,i,n,s,o){T(e.getActions(t),i,!1,"string"===typeof n?e=>e===n:n,s,o)}function T(e,t,i){let n,s,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>"navigation"===e,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Array.isArray(t)?(n=t,s=t):(n=t.primary,s=t.secondary);const d=new Set;for(const[h,c]of e){let e;o(h)?(e=n,e.length>0&&l&&e.push(new a.Z0)):(e=s,e.length>0&&e.push(new a.Z0));for(let t of c){i&&(t=t instanceof u.U8&&t.alt?t.alt:t);const n=e.push(t);t instanceof a.wY&&d.add({group:h,action:t,index:n-1})}}for(const{group:a,action:h,index:c}of d){const e=o(a)?n:s,t=h.actions;r(h,a,e.length)&&e.splice(c,1,...t)}}let I=class extends o.gU{constructor(e,t,i,s,o,r,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===t||void 0===t?void 0:t.draggable,keybinding:null===t||void 0===t?void 0:t.keybinding,hoverDelegate:null===t||void 0===t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=s,this._contextKeyService=o,this._themeService=r,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new d.XK),this._altKey=n._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.nm)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,n.nm)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let s=i?(0,c.NC)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,c.NC)("titleAndKb","{0} ({1})",e,i):e;s=(0,c.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,l.xo.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const s=this._commandAction.checked&&((o=e.toggled)&&void 0!==o.condition)&&e.toggled.icon?e.toggled.icon:e.icon;var o;if(s)if(C.k.isThemeIcon(s)){const e=C.k.asClassNameArray(s);i.classList.add(...e),this._itemClassDispose.value=(0,d.OF)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,y._T)(this._themeService.getColorTheme().type)?(0,n.wY)(s.dark):(0,n.wY)(s.light),i.classList.add("icon"),this._itemClassDispose.value=(0,d.F8)((0,d.OF)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=k([D(2,f.d),D(3,_.lT),D(4,g.i6),D(5,b.XE),D(6,p.i),D(7,L.F)],I);let M=class extends r.C{constructor(e,t,i,n,s){var o,r,a;const l={...t,menuAsChild:null!==(o=null===t||void 0===t?void 0:t.menuAsChild)&&void 0!==o&&o,classNames:null!==(r=null===t||void 0===t?void 0:t.classNames)&&void 0!==r?r:C.k.isThemeIcon(e.item.icon)?C.k.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null===t||void 0===t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=s}render(e){super.render(e),(0,w.p_)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!C.k.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,y._T)(this._themeService.getColorTheme().type)?(0,n.wY)(i.dark):(0,n.wY)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};M=k([D(2,f.d),D(3,p.i),D(4,b.XE)],M);let A=class extends o.YH{constructor(e,t,i,n,s,o,l,d){var h,c,g;let p;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=o,this._instaService=l,this._storageService=d,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const m=(null===t||void 0===t?void 0:t.persistLastActionId)?d.get(this._storageKey,1):void 0;m&&(p=e.actions.find((e=>m===e.id))),p||(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});const f={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(h=null===t||void 0===t?void 0:t.menuAsChild)||void 0===h||h,classNames:null!==(c=null===t||void 0===t?void 0:t.classNames)&&void 0!==c?c:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null===t||void 0===t?void 0:t.actionRunner)&&void 0!==g?g:new a.Wi};this._dropdown=new r.C(e,e.actions,this._contextMenuService,f),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.U8&&this.update(e.action)})))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Ce)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.R3)(this._container,t)),this._register((0,n.nm)(t,n.tw.KEY_DOWN,(e=>{const t=new s.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.R3)(this._container,i)),this._register((0,n.nm)(i,n.tw.KEY_DOWN,(e=>{var t;const i=new s.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};A=k([D(2,f.d),D(3,_.lT),D(4,p.i),D(5,u.co),D(6,m.TG),D(7,v.Uy)],A);let R=class extends o.Lc{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.Z0.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,x.BM,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,S.n_1)(S.a9O)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function O(e,t,i){return t instanceof u.U8?e.createInstance(I,t,i):t instanceof u.NZ?t.item.isSelection?e.createInstance(R,t):t.item.rememberDefaultAction?e.createInstance(A,t,{...i,persistLastActionId:!0}):e.createInstance(M,t,i):void 0}R=k([D(1,p.u)],R)},31936:(e,t,i)=>{"use strict";i.d(t,{r:()=>E,T:()=>N});var n=i(76595),s=i(65179),o=i(7144),r=i(86406),a=i(51828),l=i(61542),d=i(73045),h=i(39706),c=i(53186),u=i(5887),g=i(97133);class p extends c.JT{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{orientation:0};var n;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h.z5),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new c.SL),i.hoverDelegate=null!==(n=i.hoverDelegate)&&void 0!==n?n:this._register((0,g.p0)()),this.options=i,this.lookupKeybindings="function"===typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new m((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new o.o(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var s;if(e.id===m.ID)return this.toggleMenuActionViewItem=new r.C(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:d.k.asClassNameArray(null!==(s=i.moreIcon)&&void 0!==s?s:l.l.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof a.wY){const i=new r.C(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const s=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return null!==(n=null===s||void 0===s?void 0:s.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.aU{constructor(e,t){t=t||u.NC("moreActions","More Actions..."),super(m.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}m.ID="toolbar.toggle.more";var f=i(51833),_=i(35863),v=i(16015),b=i(2706),C=i(51887),y=i(6178),w=i(47116),S=i(79086),x=i(25371),L=i(57823),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};let N=class extends p{constructor(e,t,i,n,s,o,r){super(e,s,{getKeyBinding:e=>{var t;return null!==(t=o.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"===typeof(null===t||void 0===t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new c.SL);const a=null===t||void 0===t?void 0:t.telemetrySource;a&&this._store.add(this.actionBar.onDidRun((e=>r.publicLog2("workbenchActionExecuted",{id:e.action.id,from:a}))))}setActions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;var o,r,l;this._sessionDisposables.clear();const d=e.slice(),h=t.slice(),c=[];let g=0;const p=[];let m=!1;if(-1!==(null===(o=this._options)||void 0===o?void 0:o.hiddenItemStrategy))for(let n=0;n<d.length;n++){const e=d[n];(e instanceof y.U8||e instanceof y.NZ)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&g++,e.hideActions.isHidden&&(m=!0,d[n]=void 0,0!==(null===(r=this._options)||void 0===r?void 0:r.hiddenItemStrategy)&&(p[n]=e))))}if(void 0!==(null===(l=this._options)||void 0===l?void 0:l.overflowBehavior)){const e=(0,_.j)(new Set(this._options.overflowBehavior.exempted),b.$.map(d,(e=>null===e||void 0===e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n<d.length;n++){const s=d[n];s&&(i++,e.has(s.id)||i>=t&&(d[n]=void 0,p[n]=s))}}(0,f.Rs)(d),(0,f.Rs)(p),super.setActions(d,a.Z0.join(p,h)),c.length>0&&this._sessionDisposables.add((0,n.nm)(this.getElement(),"contextmenu",(e=>{var t,o,r,l,d;const h=new s.n((0,n.Jj)(this.getElement()),e),p=this.getItemAction(h.target);if(!p)return;h.preventDefault(),h.stopPropagation();let f,_=!1;if(1===g&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){_=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.xw)({id:p.id,label:p.label,checked:!0,enabled:!1,run(){}});break}}if(!_&&(p instanceof y.U8||p instanceof y.NZ)){if(!p.hideActions)return;f=p.hideActions.hide}else f=(0,a.xw)({id:"label",label:(0,u.NC)("hide","Hide"),enabled:!1,run(){}});const v=a.Z0.join([f],c);(null===(o=this._options)||void 0===o?void 0:o.resetMenu)&&!i&&(i=[this._options.resetMenu]),m&&i&&(v.push(new a.Z0),v.push((0,a.xw)({id:"resetThisMenu",label:(0,u.NC)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>h,getActions:()=>v,menuId:null===(r=this._options)||void 0===r?void 0:r.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(l=this._options)||void 0===l?void 0:l.menuOptions},skipTelemetry:"string"===typeof(null===(d=this._options)||void 0===d?void 0:d.telemetrySource),contextKeyService:this._contextKeyService})})))}};N=k([D(2,y.co),D(3,w.i6),D(4,S.i),D(5,x.d),D(6,L.b)],N);let E=class extends N{constructor(e,t,i,n,s,o,r,a){super(e,{resetMenu:t,...i},n,s,o,r,a),this._onDidChangeMenuItems=this._store.add(new h.Q5),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(n.createMenu(t,s,{emitEventsForSubmenuChanges:!0})),d=()=>{var t,n,s;const o=[],r=[];(0,C.vr)(l,null===i||void 0===i?void 0:i.menuOptions,{primary:o,secondary:r},null===(t=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(s=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===s?void 0:s.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===o.length&&0===r.length),super.setActions(o,r)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.he("This toolbar is populated from a menu.")}};E=k([D(3,y.co),D(4,w.i6),D(5,S.i),D(6,x.d),D(7,L.b)],E)},6178:(e,t,i)=>{"use strict";i.d(t,{BH:()=>C,Ke:()=>S,NZ:()=>y,U8:()=>w,co:()=>v,eH:()=>_,f6:()=>f,r1:()=>x,vr:()=>m});var n,s=i(51828),o=i(73045),r=i(39706),a=i(53186),l=i(64450),d=i(94943),h=i(47116),c=i(87775),u=i(85412),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}_._instances=new Map,_.CommandPalette=new _("CommandPalette"),_.DebugBreakpointsContext=new _("DebugBreakpointsContext"),_.DebugCallStackContext=new _("DebugCallStackContext"),_.DebugConsoleContext=new _("DebugConsoleContext"),_.DebugVariablesContext=new _("DebugVariablesContext"),_.NotebookVariablesContext=new _("NotebookVariablesContext"),_.DebugHoverContext=new _("DebugHoverContext"),_.DebugWatchContext=new _("DebugWatchContext"),_.DebugToolBar=new _("DebugToolBar"),_.DebugToolBarStop=new _("DebugToolBarStop"),_.EditorContext=new _("EditorContext"),_.SimpleEditorContext=new _("SimpleEditorContext"),_.EditorContent=new _("EditorContent"),_.EditorLineNumberContext=new _("EditorLineNumberContext"),_.EditorContextCopy=new _("EditorContextCopy"),_.EditorContextPeek=new _("EditorContextPeek"),_.EditorContextShare=new _("EditorContextShare"),_.EditorTitle=new _("EditorTitle"),_.EditorTitleRun=new _("EditorTitleRun"),_.EditorTitleContext=new _("EditorTitleContext"),_.EditorTitleContextShare=new _("EditorTitleContextShare"),_.EmptyEditorGroup=new _("EmptyEditorGroup"),_.EmptyEditorGroupContext=new _("EmptyEditorGroupContext"),_.EditorTabsBarContext=new _("EditorTabsBarContext"),_.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu"),_.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu"),_.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu"),_.ExplorerContext=new _("ExplorerContext"),_.ExplorerContextShare=new _("ExplorerContextShare"),_.ExtensionContext=new _("ExtensionContext"),_.GlobalActivity=new _("GlobalActivity"),_.CommandCenter=new _("CommandCenter"),_.CommandCenterCenter=new _("CommandCenterCenter"),_.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu"),_.LayoutControlMenu=new _("LayoutControlMenu"),_.MenubarMainMenu=new _("MenubarMainMenu"),_.MenubarAppearanceMenu=new _("MenubarAppearanceMenu"),_.MenubarDebugMenu=new _("MenubarDebugMenu"),_.MenubarEditMenu=new _("MenubarEditMenu"),_.MenubarCopy=new _("MenubarCopy"),_.MenubarFileMenu=new _("MenubarFileMenu"),_.MenubarGoMenu=new _("MenubarGoMenu"),_.MenubarHelpMenu=new _("MenubarHelpMenu"),_.MenubarLayoutMenu=new _("MenubarLayoutMenu"),_.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu"),_.PanelAlignmentMenu=new _("PanelAlignmentMenu"),_.PanelPositionMenu=new _("PanelPositionMenu"),_.ActivityBarPositionMenu=new _("ActivityBarPositionMenu"),_.MenubarPreferencesMenu=new _("MenubarPreferencesMenu"),_.MenubarRecentMenu=new _("MenubarRecentMenu"),_.MenubarSelectionMenu=new _("MenubarSelectionMenu"),_.MenubarShare=new _("MenubarShare"),_.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu"),_.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu"),_.MenubarTerminalMenu=new _("MenubarTerminalMenu"),_.MenubarViewMenu=new _("MenubarViewMenu"),_.MenubarHomeMenu=new _("MenubarHomeMenu"),_.OpenEditorsContext=new _("OpenEditorsContext"),_.OpenEditorsContextShare=new _("OpenEditorsContextShare"),_.ProblemsPanelContext=new _("ProblemsPanelContext"),_.SCMInputBox=new _("SCMInputBox"),_.SCMChangesSeparator=new _("SCMChangesSeparator"),_.SCMIncomingChanges=new _("SCMIncomingChanges"),_.SCMIncomingChangesContext=new _("SCMIncomingChangesContext"),_.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting"),_.SCMOutgoingChanges=new _("SCMOutgoingChanges"),_.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext"),_.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting"),_.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext"),_.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext"),_.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext"),_.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext"),_.SCMChangeContext=new _("SCMChangeContext"),_.SCMResourceContext=new _("SCMResourceContext"),_.SCMResourceContextShare=new _("SCMResourceContextShare"),_.SCMResourceFolderContext=new _("SCMResourceFolderContext"),_.SCMResourceGroupContext=new _("SCMResourceGroupContext"),_.SCMSourceControl=new _("SCMSourceControl"),_.SCMSourceControlInline=new _("SCMSourceControlInline"),_.SCMSourceControlTitle=new _("SCMSourceControlTitle"),_.SCMTitle=new _("SCMTitle"),_.SearchContext=new _("SearchContext"),_.SearchActionMenu=new _("SearchActionContext"),_.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu"),_.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu"),_.StickyScrollContext=new _("StickyScrollContext"),_.TestItem=new _("TestItem"),_.TestItemGutter=new _("TestItemGutter"),_.TestMessageContext=new _("TestMessageContext"),_.TestMessageContent=new _("TestMessageContent"),_.TestPeekElement=new _("TestPeekElement"),_.TestPeekTitle=new _("TestPeekTitle"),_.TouchBarContext=new _("TouchBarContext"),_.TitleBarContext=new _("TitleBarContext"),_.TitleBarTitleContext=new _("TitleBarTitleContext"),_.TunnelContext=new _("TunnelContext"),_.TunnelPrivacy=new _("TunnelPrivacy"),_.TunnelProtocol=new _("TunnelProtocol"),_.TunnelPortInline=new _("TunnelInline"),_.TunnelTitle=new _("TunnelTitle"),_.TunnelLocalAddressInline=new _("TunnelLocalAddressInline"),_.TunnelOriginInline=new _("TunnelOriginInline"),_.ViewItemContext=new _("ViewItemContext"),_.ViewContainerTitle=new _("ViewContainerTitle"),_.ViewContainerTitleContext=new _("ViewContainerTitleContext"),_.ViewTitle=new _("ViewTitle"),_.ViewTitleContext=new _("ViewTitleContext"),_.CommentEditorActions=new _("CommentEditorActions"),_.CommentThreadTitle=new _("CommentThreadTitle"),_.CommentThreadActions=new _("CommentThreadActions"),_.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions"),_.CommentThreadTitleContext=new _("CommentThreadTitleContext"),_.CommentThreadCommentContext=new _("CommentThreadCommentContext"),_.CommentTitle=new _("CommentTitle"),_.CommentActions=new _("CommentActions"),_.CommentsViewThreadActions=new _("CommentsViewThreadActions"),_.InteractiveToolbar=new _("InteractiveToolbar"),_.InteractiveCellTitle=new _("InteractiveCellTitle"),_.InteractiveCellDelete=new _("InteractiveCellDelete"),_.InteractiveCellExecute=new _("InteractiveCellExecute"),_.InteractiveInputExecute=new _("InteractiveInputExecute"),_.IssueReporter=new _("IssueReporter"),_.NotebookToolbar=new _("NotebookToolbar"),_.NotebookStickyScrollContext=new _("NotebookStickyScrollContext"),_.NotebookCellTitle=new _("NotebookCellTitle"),_.NotebookCellDelete=new _("NotebookCellDelete"),_.NotebookCellInsert=new _("NotebookCellInsert"),_.NotebookCellBetween=new _("NotebookCellBetween"),_.NotebookCellListTop=new _("NotebookCellTop"),_.NotebookCellExecute=new _("NotebookCellExecute"),_.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo"),_.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary"),_.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle"),_.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle"),_.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle"),_.NotebookOutputToolbar=new _("NotebookOutputToolbar"),_.NotebookOutlineFilter=new _("NotebookOutlineFilter"),_.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu"),_.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure"),_.NotebookKernelSource=new _("NotebookKernelSource"),_.BulkEditTitle=new _("BulkEditTitle"),_.BulkEditContext=new _("BulkEditContext"),_.TimelineItemContext=new _("TimelineItemContext"),_.TimelineTitle=new _("TimelineTitle"),_.TimelineTitleContext=new _("TimelineTitleContext"),_.TimelineFilterSubMenu=new _("TimelineFilterSubMenu"),_.AccountsContext=new _("AccountsContext"),_.SidebarTitle=new _("SidebarTitle"),_.PanelTitle=new _("PanelTitle"),_.AuxiliaryBarTitle=new _("AuxiliaryBarTitle"),_.AuxiliaryBarHeader=new _("AuxiliaryBarHeader"),_.TerminalInstanceContext=new _("TerminalInstanceContext"),_.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext"),_.TerminalNewDropdownContext=new _("TerminalNewDropdownContext"),_.TerminalTabContext=new _("TerminalTabContext"),_.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext"),_.TerminalStickyScrollContext=new _("TerminalStickyScrollContext"),_.WebviewContext=new _("WebviewContext"),_.InlineCompletionsActions=new _("InlineCompletionsActions"),_.InlineEditActions=new _("InlineEditActions"),_.NewFile=new _("NewFile"),_.MergeInput1Toolbar=new _("MergeToolbar1Toolbar"),_.MergeInput2Toolbar=new _("MergeToolbar2Toolbar"),_.MergeBaseToolbar=new _("MergeBaseToolbar"),_.MergeInputResultToolbar=new _("MergeToolbarResultToolbar"),_.InlineSuggestionToolbar=new _("InlineSuggestionToolbar"),_.InlineEditToolbar=new _("InlineEditToolbar"),_.ChatContext=new _("ChatContext"),_.ChatCodeBlock=new _("ChatCodeblock"),_.ChatMessageTitle=new _("ChatMessageTitle"),_.ChatExecute=new _("ChatExecute"),_.ChatExecuteSecondary=new _("ChatExecuteSecondary"),_.ChatInputSide=new _("ChatInputSide"),_.AccessibleView=new _("AccessibleView"),_.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar"),_.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar"),_.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar");const v=(0,c.yh)("menuService");class b{static for(e){let t=this._all.get(e);return t||(t=new b(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof b&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}b._all=new Map;const C=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new r.SZ({merge:b.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(b.for(_.CommandPalette)),(0,a.OF)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(b.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.S,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(b.for(e)),(0,a.OF)((()=>{n(),this._onDidChangeMenu.fire(b.for(e))}))}appendMenuItems(e){const t=new a.SL;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class y extends s.wY{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let w=n=class{static label(e,t){return(null===t||void 0===t?void 0:t.renderShortTitle)&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,s,r,a){var l,d;let h;if(this.hideActions=s,this._commandService=a,this.id=e.id,this.label=n.label(e,i),this.tooltip=null!==(d="string"===typeof e.tooltip?e.tooltip:null===(l=e.tooltip)||void 0===l?void 0:l.value)&&void 0!==d?d:"",this.enabled=!e.precondition||r.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=r.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&o.k.isThemeIcon(t.icon)&&(h=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}h||(h=o.k.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new n(t,void 0,i,s,r,a):void 0,this._options=i,this.class=h&&o.k.asClassName(h)}run(){var e,t;let i=[];if((null===(e=this._options)||void 0===e?void 0:e.arg)&&(i=[...i,this._options.arg]),null===(t=this._options)||void 0===t?void 0:t.shouldForwardArgs){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];i=[...i,...s]}return this._commandService.executeCommand(this.id,...i)}};w=n=g([p(4,h.i6),p(5,d.H)],w);class S{constructor(e){this.desc=e}}function x(e){const t=new a.SL,i=new e,{f1:n,menu:s,keybinding:o,...r}=i.desc;if(d.P.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(t.add(d.P.registerCommand({id:r.id,handler:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return i.run(e,...n)},metadata:r.metadata})),Array.isArray(s))for(const a of s)t.add(C.appendMenuItem(a.id,{command:{...r,precondition:null===a.precondition?void 0:r.precondition},...a}));else s&&t.add(C.appendMenuItem(s.id,{command:{...r,precondition:null===s.precondition?void 0:r.precondition},...s}));if(n&&(t.add(C.appendMenuItem(_.CommandPalette,{command:r,when:r.precondition})),t.add(C.addCommand(r))),Array.isArray(o))for(const a of o)t.add(u.W.registerKeybindingRule({...a,id:r.id,when:r.precondition?h.Ao.and(r.precondition,a.when):a.when}));else o&&t.add(u.W.registerKeybindingRule({...o,id:r.id,when:r.precondition?h.Ao.and(r.precondition,o.when):o.when}));return t}},63826:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(87775).yh)("clipboardService")},94943:(e,t,i)=>{"use strict";i.d(t,{H:()=>l,P:()=>d});var n=i(39706),s=i(2706),o=i(53186),r=i(64450),a=i(47624);const l=(0,i(87775).yh)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const n of e.metadata.args)t.push(n.constraint);const i=e.handler;e.handler=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return(0,a.D8)(s,t),i(e,...s)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new r.S,this._commands.set(i,n));const s=n.unshift(e),l=(0,o.OF)((()=>{s();const e=this._commands.get(i);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return d.registerCommand(e,(function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return e.get(l).executeCommand(t,...n)}))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return s.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};d.registerCommand("noop",(()=>{}))},30600:(e,t,i)=>{"use strict";i.d(t,{KV:()=>o,Mt:()=>l,Od:()=>s,UI:()=>d,Ui:()=>n,xL:()=>r});const n=(0,i(87775).yh)("configurationService");function s(e,t){const i=Object.create(null);for(const n in e)o(i,n,e[n],t);return i}function o(e,t,i,n){const s=t.split("."),o=s.pop();let r=e;for(let l=0;l<s.length;l++){const e=s[l];let i=r[e];switch(typeof i){case"undefined":i=r[e]=Object.create(null);break;case"object":break;default:return void n(`Ignoring ${t} as ${s.slice(0,l+1).join(".")} is ${JSON.stringify(i)}`)}r=i}if("object"===typeof r&&null!==r)try{r[o]=i}catch(a){n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`)}else n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`)}function r(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const n=e[i];"object"!==typeof n||Array.isArray(n)||(a(n,t),0===Object.keys(n).length&&delete e[i])}}else delete e[i]}function l(e,t,i){const n=function(e,t){let i=e;for(const n of t){if("object"!==typeof i||null===i)return;i=i[n]}return i}(e,t.split("."));return"undefined"===typeof n?i:n}function d(e){return e.replace(/[\[\]]/g,"")}},49817:(e,t,i)=>{"use strict";i.d(t,{IP:()=>h,eU:()=>w,ny:()=>S});var n=i(51833),s=i(39706),o=i(47624),r=i(5887),a=i(30600),l=i(97830),d=i(76322);const h={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=d.B.as(l.I.JSONContribution);const b="\\[([^\\]]+)\\]",C=new RegExp(b,"g"),y=`^(${b})+$`,w=new RegExp(y);function S(e){const t=[];if(w.test(e)){let i=C.exec(e);for(;null===i||void 0===i?void 0:i.length;){const n=i[1].trim();n&&t.push(n),i=C.exec(e)}}return(0,n.EB)(t)}const x=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new s.Q5,this._onDidUpdateConfiguration=new s.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.registerConfigurations([e],t)}registerConfigurations(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:s,source:l}of e)for(const e in s)if(t.add(e),w.test(e)){const t=this.configurationDefaultsOverrides.get(e),d=null!==(i=null===t||void 0===t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(l)for(const i of Object.keys(s[e]))d.set(i,l);const h={...(null===t||void 0===t?void 0:t.value)||{},...s[e]};this.configurationDefaultsOverrides.set(e,{source:l,value:h,valuesSources:d});const c=(0,a.UI)(e),u={type:"object",default:h,description:r.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",c),$ref:_,defaultDefaultValue:h,source:o.HD(l)?void 0:l,defaultValueSource:l};n.push(...S(e)),this.configurationProperties[e]=u,this.defaultLanguageConfigurationOverridesNode.properties[e]=u}else{this.configurationDefaultsOverrides.set(e,{value:s[e],source:l});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,r=arguments.length>5?arguments[5]:void 0;var a;s=o.Jp(e.scope)?s:e.scope;const l=e.properties;if(l)for(const h in l){const e=l[h];t&&L(h,e)?delete l[h]:(e.source=i,e.defaultDefaultValue=l[h].default,this.updatePropertyDefaultValue(h,e),w.test(h)?e.scope=void 0:(e.scope=o.Jp(e.scope)?s:e.scope,e.restricted=o.Jp(e.restricted)?!!(null===n||void 0===n?void 0:n.includes(h)):e.restricted),!l[h].hasOwnProperty("included")||l[h].included?(this.configurationProperties[h]=l[h],(null===(a=l[h].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[h].policy.name,h),!l[h].deprecationMessage&&l[h].markdownDeprecationMessage&&(l[h].deprecationMessage=l[h].markdownDeprecationMessage),r.add(h)):(this.excludedConfigurationProperties[h]=l[h],delete l[h]))}const d=e.allOf;if(d)for(const o of d)this.validateAndRegisterProperties(o,t,i,n,s,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const n=e.allOf;null===n||void 0===n||n.forEach(t)};t(e)}updateSchema(e,t){switch(c.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),c.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};c.patternProperties[y]=e,u.patternProperties[y]=e,g.patternProperties[y]=e,p.patternProperties[y]=e,m.patternProperties[y]=e,f.patternProperties[y]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null===i||void 0===i?void 0:i.value,s=null===i||void 0===i?void 0:i.source;o.o8(n)&&(n=t.defaultDefaultValue,s=void 0),o.o8(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=s}};function L(e,t){var i,n,s,o;return e.trim()?w.test(e)?r.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==x.getConfigurationProperties()[e]?r.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==x.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?r.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(s=t.policy)||void 0===s?void 0:s.name,x.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:r.NC("config.property.empty","Cannot register an empty property")}d.B.add(h.Configuration,x)},47116:(e,t,i)=>{"use strict";i.d(t,{cP:()=>T,Ao:()=>x,i6:()=>q,uy:()=>K,Fb:()=>L,K8:()=>Y});var n=i(90388),s=i(78701),o=i(16015),r=i(5887);function a(){switch(arguments.length){case 1:return(0,r.NC)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",arguments.length<=0?void 0:arguments[0]);case 2:return(0,r.NC)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]);case 3:return(0,r.NC)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]);default:return}}const l=(0,r.NC)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,r.NC)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.L6)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}h._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),h._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var c=i(87775);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.dz),u.set("isLinux",n.IJ),u.set("isWindows",n.ED),u.set("isWeb",n.$L),u.set("isMacNative",n.dz&&!n.$L),u.set("isEdge",n.un),u.set("isFirefox",n.vU),u.set("isChrome",n.i7),u.set("isSafari",n.G6);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,r.NC)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,r.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,r.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,r.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,r.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,r.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,r.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),w=(0,r.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),D.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),null===e||void 0===e?void 0:e.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,s=i.lastIndexOf("/"),o=s===i.length-1?void 0:this._removeFlagsGY(i.substring(s+1));let r;try{r=new RegExp(i.substring(1,s),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(n,r)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let s=this._peek(),o=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:o++;break;case 1:o--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--}if(o<0)break;i.push(h.getLexeme(s)),this._advance(),s=this._peek()}const r=i.join(""),a=r.lastIndexOf("/"),l=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));let d;try{d=new RegExp(r.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(n,d)}case 18:{const t=e.lexeme;this._advance();let o=null;if(!(0,s.m5)(t)){const n=t.indexOf("/"),s=t.lastIndexOf("/");if(n!==s&&n>=0){const r=t.slice(n+1,s),a="i"===t[s+1]?"i":"";try{o=new RegExp(r,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===o)throw this._errExpectedButGot("REGEX",e);return W.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return x.notIn(n,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(n,e);switch(e){case"true":return x.has(n);case"false":return x.not(n);default:return x.equals(n,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(n,e);switch(e){case"true":return x.not(n);case"false":return x.has(n);default:return x.notEquals(n,e)}}case 5:return this._advance(),B.create(n,this._value());case 6:return this._advance(),V.create(n,this._value());case 7:return this._advance(),P.create(n,this._value());case 8:return this._advance(),F.create(n,this._value());case 13:return this._advance(),x.in(n,this._value());default:return x.has(n)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:w}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,r.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),s=t.offset,o=h.getLexeme(t);return this._parsingErrors.push({message:n,offset:s,lexeme:o,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}S._parseError=new Error;class x{static false(){return D.INSTANCE}static true(){return N.INSTANCE}static has(e){return E.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return A.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return M.create(e,t)}static not(e){return R.create(e)}static and(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return j.create(t,null,!0)}static or(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return U.create(t,null,!0)}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function L(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function k(e,t){return e.cmp(t)}x._parser=new S({regexParsingWithErrorRecovery:!1});class D{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}D.INSTANCE=new D;class N{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}N.INSTANCE=new N;class E{static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=u.get(e);return"boolean"===typeof i?i?N.INSTANCE:D.INSTANCE:new E(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:D.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class T{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("boolean"===typeof t)return t?E.create(e,i):R.create(e,i);const n=u.get(e);if("boolean"===typeof n){return t===(n?"true":"false")?N.INSTANCE:D.INSTANCE}return new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:D.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=M.create(this.key,this.valueKey)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class A{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("boolean"===typeof t)return t?R.create(e,i):E.create(e,i);const n=u.get(e);if("boolean"===typeof n){return t===(n?"true":"false")?D.INSTANCE:N.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?D.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class R{static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=u.get(e);return"boolean"===typeof i?i?D.INSTANCE:N.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?D.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):D.INSTANCE}class P{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class F{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new V(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this)),this.negated}}class H{static create(e){return new H(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;i<n;i++){const n=e[i].substituteConstants();if(e[i]!==n&&null===t){t=[];for(let n=0;n<i;n++)t[n]=e[n]}null!==t&&(t[i]=n)}return null===t?e:t}class j{static create(e,t,i){return j._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=k(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=z(this.expr);return e===this.expr?this:j.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const n=[];let s=!1;for(const o of e)if(o)if(1!==o.type){if(0===o.type)return D.INSTANCE;6!==o.type?n.push(o):n.push(...o.expr)}else s=!0;if(0===n.length&&s)return N.INSTANCE;if(0!==n.length){if(1===n.length)return n[0];n.sort(k);for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];for(;n.length>1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),s=0===n.length,o=U.create(e.expr.map((e=>j.create([e,t],null,i))),null,s);o&&(n.push(o),n.sort(k))}if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return D.INSTANCE;if(1===n.length)return n[0]}return new j(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=k(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=z(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],s=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return N.INSTANCE;9!==i.type?n.push(i):n=n.concat(i.expr)}else s=!0}if(0===n.length&&s)return D.INSTANCE;n.sort(k)}if(0!==n.length){if(1===n.length)return n[0];for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return N.INSTANCE;if(1===n.length)return n[0]}return new U(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of Q(t))for(const t of Q(i))n.push(j.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class K extends E{static all(){return K._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?K._info.push({...i,key:e}):!0!==i&&K._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}K._info=[];const q=(0,c.yh)("contextKeyService");function $(e,t){return e<t?-1:e>t?1:0}function G(e,t,i,n){return e<i?-1:e>i?1:t<n?-1:t>n?1:0}function Y(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Z(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Y(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Z(t.expr,e.expr);for(const i of e.expr)if(Y(i,t))return!0;return!1}return e.equals(t)}function Z(e,t){let i=0,n=0;for(;i<e.length&&n<t.length;){const s=e[i].cmp(t[n]);if(s<0)return!1;0===s?(i++,n++):n++}return i===e.length}function Q(e){return 9===e.type?e.expr:[e]}},48495:(e,t,i)=>{"use strict";i.d(t,{Pf:()=>a,Ul:()=>d,cv:()=>r,d0:()=>l});var n=i(90388),s=i(5887),o=i(47116);new o.uy("isMac",n.dz,(0,s.NC)("isMac","Whether the operating system is macOS")),new o.uy("isLinux",n.IJ,(0,s.NC)("isLinux","Whether the operating system is Linux"));const r=new o.uy("isWindows",n.ED,(0,s.NC)("isWindows","Whether the operating system is Windows")),a=new o.uy("isWeb",n.$L,(0,s.NC)("isWeb","Whether the platform is a web browser")),l=(new o.uy("isMacNative",n.dz&&!n.$L,(0,s.NC)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new o.uy("isIOS",n.gn,(0,s.NC)("isIOS","Whether the operating system is iOS")),new o.uy("isMobile",n.tq,(0,s.NC)("isMobile","Whether the platform is a mobile web browser")),new o.uy("isDevelopment",!1,!0),new o.uy("productQualityType","",(0,s.NC)("productQualityType","Quality type of VS Code")),"inputFocus"),d=new o.uy(l,!1,(0,s.NC)("inputFocus","Whether keyboard focus is inside an input box"))},79086:(e,t,i)=>{"use strict";i.d(t,{i:()=>o,u:()=>s});var n=i(87775);const s=(0,n.yh)("contextViewService"),o=(0,n.yh)("contextMenuService")},21182:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(87775).yh)("dialogService")},90601:(e,t,i)=>{"use strict";i.d(t,{Ej:()=>o,Km:()=>s});var n=i(76322);const s={EDITORS:"CodeEditors",FILES:"CodeFiles"};n.B.add("workbench.contributions.dragAndDrop",new class{});class o{constructor(){}static getInstance(){return o.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}o.INSTANCE=new o},68664:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n});const n=(0,i(87775).yh)("environmentService")},35650:(e,t,i)=>{"use strict";i.d(t,{Yb:()=>N,Nq:()=>E,iX:()=>y});var n=i(22406),s=i(76595),o=i(81502),r=i(58799),a=i(7341),l=i(61542),d=i(39706),h=(i(69850),i(5887)),c=i(97133);const u=h.NC("defaultLabel","input"),g=h.NC("label.preserveCaseToggle","Preserve Case");class p extends o.Z{constructor(e){var t;super({icon:l.l.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,c.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.${constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new d.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new d.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new d.Q5),this._onInput=this._register(new d.Q5),this._onKeyUp=this._register(new d.Q5),this._onPreserveCaseKeyDown=this._register(new d.Q5),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||u;const o=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,h=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.pG(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:h,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:o,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),s.zB.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),null===e||void 0===e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(47116),_=i(85412),v=i(53186),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=new f.uy("suggestWidgetVisible",!1,(0,h.NC)("suggestWidgetVisible","Whether suggestion are visible")),w="historyNavigationWidgetFocus",S="historyNavigationForwardsEnabled",x="historyNavigationBackwardsEnabled";let L;const k=[];function D(e,t){if(k.includes(t))throw new Error("Cannot register the same widget multiple times");k.push(t);const i=new v.SL,n=new f.uy(w,!1).bindTo(e),o=new f.uy(S,!0).bindTo(e),r=new f.uy(x,!0).bindTo(e),a=()=>{n.set(!0),L=t},l=()=>{n.set(!1),L===t&&(L=void 0)};return(0,s.H9)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,v.OF)((()=>{k.splice(k.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:r,dispose(){i.dispose()}}}let N=class extends n.V{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(D(s,this.inputBox))}};N=b([C(3,f.i6)],N);let E=class extends m{constructor(e,t,i,n){super(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4],i);const s=this._register(n.createScoped(this.inputBox.element));this._register(D(s,this.inputBox))}};E=b([C(3,f.i6)],E),_.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(x,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null===L||void 0===L||L.showPreviousValue()}}),_.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(S,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null===L||void 0===L||L.showNextValue()}})},82854:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>d,mQ:()=>h});var n=i(87775),s=i(53186),o=i(30600),r=i(76595),a=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},l=function(e,t){return function(i,n){t(i,n,e)}};const d=(0,n.yh)("hoverService");let h=class extends s.JT{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=n,this.hoverService=o,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new s.SL),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=e.target instanceof HTMLElement?[e.target]:e.target.targetElements;for(const o of n)this.hoverDisposables.add((0,r.mu)(o,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const s=e.content instanceof HTMLElement?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:s,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([l(3,o.Ui),l(4,d)],h)},46479:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},23026:(e,t,i)=>{"use strict";i.d(t,{d:()=>r,z:()=>o});var n=i(46479);const s=[];function o(e,t,i){t instanceof n.M||(t=new n.M(t,[],Boolean(i))),s.push([e,t])}function r(){return s}},87775:(e,t,i)=>{"use strict";var n;i.d(t,{I8:()=>n,TG:()=>s,yh:()=>o}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const s=o("instantiationService");function o(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,s){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}(t,e,s)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},45234:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(){this._entries=new Map;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const[n,s]of t)this.set(n,s)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},97830:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(39706),s=i(76322);const o={JSONContribution:"base.contributions.json"};const r=new class{constructor(){this._onDidChangeSchema=new n.Q5,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};s.B.add(o.JSONContribution,r)},25371:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});const n=(0,i(87775).yh)("keybindingService")},85412:(e,t,i)=>{"use strict";i.d(t,{W:()=>h});var n=i(91811),s=i(90388),o=i(94943),r=i(76322),a=i(53186),l=i(64450);class d{constructor(){this._coreKeybindings=new l.S,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===s.OS){if(e&&e.win)return e.win}else if(2===s.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=d.bindToCurrentPlatform(e),i=new a.SL;if(t&&t.primary){const o=(0,n.Z9)(t.primary,s.OS);o&&i.add(this._registerDefaultKeybinding(o,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let o=0,r=t.secondary.length;o<r;o++){const r=t.secondary[o],a=(0,n.Z9)(r,s.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-o-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.F8)(this.registerKeybindingRule(e),o.P.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,s,o){const r=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:o,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.OF)((()=>{r(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)}}const h=new d;function c(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}r.B.add("platform.keybindingsRegistry",h)},60297:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});const n=(0,i(87775).yh)("labelService")},35412:(e,t,i)=>{"use strict";i.d(t,{Lw:()=>be,XN:()=>Ce,ls:()=>ft,CQ:()=>Le,PF:()=>gt,PS:()=>Ie,uJ:()=>Ae});var n=i(76595),s=i(51833),o=i(76946),r=i(39706),a=i(53186),l=(i(40753),i(69394));class d{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.JT.None}}renderElement(e,t,i,n){var s;if(null===(s=i.disposable)||void 0===s||s.dispose(),!i.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,i.data,n);const a=new o.A,l=r.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class c{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=()=>this.model,r=n.map((e=>new d(e,o)));this.list=new l.aV(e,t,i,r,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(o,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return r.ju.map(this.list.onMouseDblClick,(e=>{let{element:t,index:i,browserEvent:n}=e;return{element:void 0===t?void 0:this._model.get(t),index:i,browserEvent:n}}))}get onPointer(){return r.ju.map(this.list.onPointer,(e=>{let{element:t,index:i,browserEvent:n}=e;return{element:void 0===t?void 0:this._model.get(t),index:i,browserEvent:n}}))}get onDidChangeSelection(){return r.ju.map(this.list.onDidChangeSelection,(e=>{let{elements:t,indexes:i,browserEvent:n}=e;return{elements:t.map((e=>this._model.get(e))),indexes:i,browserEvent:n}}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,s.w6)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(97133),g=i(71371),p=i(41090);class m{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const s of e){const e=n.get(s.templateId);if(!e)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],s=[];for(let r=0;r<this.columns.length;r++){const e=this.renderers[r],o=(0,n.R3)(t,(0,n.$)(".monaco-table-td",{"data-col-index":r}));o.style.width=`${this.getColumnSize(r)}px`,i.push(o),s.push(e.renderTemplate(o))}const o={container:e,cellContainers:i,cellTemplateData:s};return this.renderedTemplates.add(o),o}renderElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){const o=this.columns[s].project(e);this.renderers[s].renderElement(o,t,i.cellTemplateData[s],n)}}disposeElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){const o=this.renderers[s];if(o.disposeElement){const r=this.columns[s].project(e);o.disposeElement(r,t,i.cellTemplateData[s],n)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,n.PO)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}m.TemplateId="row";class f extends a.JT{get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:r.ju.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new r.Q5,this.onDidLayout=this._onDidLayout.event,this.element=(0,n.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,g.g)((0,u.tM)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(e,t,i,s,o,d){this.virtualDelegate=i,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.SL,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,n.R3)(t,(0,n.$)(`.monaco-table.${this.domId}`));const h=s.map(((e,t)=>this.disposables.add(new f(e,t)))),c={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:c})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(s,o,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new l.aV(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],d)),r.ju.any(...h.map((e=>e.onDidLayout)))((e=>{let[t,i]=e;return u.layoutColumn(t,i)}),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=s.reduce(((e,t)=>e+t.weight),0),i=s[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style(l.uZ)}updateOptions(e){this.list.updateOptions(e)}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}_.InstanceCount=0;var v=i(47213),b=i(23252),C=i(5572),y=i(73337),w=i(2706);class S{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new C.X(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;const n=new Set,s=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{var t;if(null===e.element)return;const o=e;if(n.add(o.element),this.nodes.set(o.element,o),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();s.add(e),this.nodesByIdentity.set(e,o)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,o)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const o=e;if(n.has(o.element)||this.nodes.delete(o.element),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();s.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,o)}})}preserveCollapseState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.$.empty();return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),w.$.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===y.kn.Collapsed||e.collapsed===y.kn.PreserveOrCollapsed||e.collapsed!==y.kn.Expanded&&e.collapsed!==y.kn.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let n;return n="undefined"===typeof e.collapsed||e.collapsed===y.kn.PreserveOrCollapsed||e.collapsed===y.kn.PreserveOrExpanded?t.collapsed:e.collapsed===y.kn.Collapsed||e.collapsed!==y.kn.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new y.ac(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function x(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:w.$.map(w.$.from(e.children),x),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e){const t=[e.element],i=e.incompressible||!1;let n,s;for(;[s,n]=w.$.consume(w.$.from(e.children),2),1===s.length&&!s[0].incompressible;)e=s[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:w.$.map(w.$.concat(s,n),L),collapsible:e.collapsible,collapsed:e.collapsed}}function k(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=i<e.element.elements.length-1?[k(e,i+1)]:w.$.map(w.$.from(e.children),(e=>k(e,0))),0===i&&e.element.incompressible?{element:e.element.elements[i],children:t,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[i],children:t,collapsible:e.collapsible,collapsed:e.collapsed}}function D(e){return k(e,0)}function N(e,t,i){return e.element===t?{...e,children:i}:{...e,children:w.$.map(w.$.from(e.children),(e=>N(e,t,i)))}}class E{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new S(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;const n=i.diffIdentityProvider&&(o=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>o.getId(e).toString())).join("\0")});var o;if(null===e){const e=w.$.map(t,this.enabled?L:x);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new y.ac(this.user,"Unknown compressed tree node");const a=this.model.getNode(r),l=this.model.getParentNodeLocation(r),d=this.model.getNode(l),h=N(D(a),e,t),c=(this.enabled?L:x)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,s.fS)(c.element.elements,a.element.elements,u))return void this._setChildren(r,c.children||w.$.empty(),{diffIdentityProvider:n,diffDepth:1});const g=d.children.map((e=>e===a?c:e));this._setChildren(d.element,g,{diffIdentityProvider:n,diffDepth:a.depth-d.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=w.$.map(t,D),n=w.$.map(i,e?L:x);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);return t}}const T=e=>e[e.length-1];class I{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new I(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class M{get onDidSplice(){return r.ju.map(this.model.onDidSplice,(e=>{let{insertedNodes:t,deletedNodes:i}=e;return{insertedNodes:t.map((e=>this.nodeMapper.map(e))),deletedNodes:i.map((e=>this.nodeMapper.map(e)))}}))}get onDidChangeCollapseState(){return r.ju.map(this.model.onDidChangeCollapseState,(e=>{let{node:t,deep:i}=e;return{node:this.nodeMapper.map(t),deep:i}}))}get onDidChangeRenderNodeCount(){return r.ju.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.rootRef=null,this.elementMapper=i.elementMapper||T;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new y.VA((e=>new I(n,e))),this.model=new E(e,function(e,t){return{splice(i,n,s){t.splice(i,n,s.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}}}(n,i))}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.model.getNode(e)}}var A=i(21150),R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class O extends v.CH{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n){super(e,t,i,n,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}),this.user=e}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new S(e,t,i)}}class P{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let s=this.stickyScrollDelegate.getCompressedNode(e);s||(s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===s.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,o,r,a;i.compressedTreeNode?null===(o=(s=this.renderer).disposeCompressedElements)||void 0===o||o.call(s,i.compressedTreeNode,t,i.data,n):null===(a=(r=this.renderer).disposeElement)||void 0===a||a.call(r,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}R([A.H],P.prototype,"compressedTreeNodeProvider",null);class F{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;n<e.length;n++){const s=e[n],o=s.position+s.height;if(n+1<e.length&&o+e[n+1].height>i||n>=t-1&&t<e.length){const t=e.slice(0,n),i=e.slice(n);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");if(!this.modelProvider().isCompressionEnabled())return e[0];const t=[];for(const a of e){const e=this.modelProvider().getCompressedTreeNode(a.node.element);if(e.element){if(e.element.incompressible)break;t.push(...e.element.elements)}}if(t.length<2)return e[0];const i=e[e.length-1],n={elements:t,incompressible:!1},s={...i.node,children:[],element:n},o=new Proxy(e[0].node,{}),r={node:o,startIndex:e[0].startIndex,endIndex:i.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,s),r}}function B(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(s){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}}}class V extends O{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=()=>this,r=new F((()=>this.model));super(e,t,i,n.map((e=>new P(o,r,e))),{...B(o,s),stickyScrollDelegate:r})}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;this.model.setChildren(e,t,i)}createModel(e,t,i){return new M(e,t,i)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.model.getCompressedTreeNode(e)}}var W=i(53372),H=i(61542),z=i(73045),j=i(16015),U=i(47624);function K(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function q(e,t){return!!t.parent&&(t.parent===e||q(e,t.parent))}class ${get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new $(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class G{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...z.k.asClassNameArray(H.l.treeItemLoading)),!0):(t.classList.remove(...z.k.asClassNameArray(H.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function Y(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Z(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Q extends b.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function X(e){return e instanceof b.kX?new Q(e):e}class J{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,X(e),t)}onDragOver(e,t,i,n,s){return this.dnd.onDragOver(X(e),t&&t.element,i,n,s)}drop(e,t,i,n,s){this.dnd.drop(X(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return r.ju.map(this.tree.onDidChangeFocus,Y)}get onDidChangeSelection(){return r.ju.map(this.tree.onDidChangeSelection,Y)}get onMouseDblClick(){return r.ju.map(this.tree.onMouseDblClick,Z)}get onPointer(){return r.ju.map(this.tree.onPointer,Z)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.Q5,this._onDidChangeNodeSlowState=new r.Q5,this.nodeMapper=new y.VA((e=>new $(e))),this.disposables=new a.SL,this.identityProvider=o.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.getDefaultCollapseState=e=>o.collapseByDefault?o.collapseByDefault(e)?y.kn.PreserveOrCollapsed:y.kn.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,o),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=K({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,s){const o=new v.cz(i),r=n.map((e=>new G(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(s)||{};return new O(e,t,o,r,a)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if("undefined"===typeof this.root.element)throw new y.ac(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event));const o=this.getDataNode(e);if(await this.refreshAndRenderNode(o,t,n,s),i)try{this.tree.rerender(o)}catch(a){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element;const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"===typeof this.root.element)throw new y.ac(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element;const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new y.ac(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n)}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach(((s,o)=>{!n&&function(e,t){return e===t||q(e,t)||q(t,e)}(o,e)&&(n=s.then((()=>this.refreshNode(e,t,i))))})),n)return n;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await W.jT.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,U.TW)(t))n=Promise.resolve(t);else{const i=(0,W.Vs)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(w.$.empty());try{const s=await n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,j.n2)(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,U.TW)(i)?this.processChildren(i):(t=(0,W.PG)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState(e){let{node:t,deep:i}=e;null!==t.element&&!t.collapsed&&t.element.stale&&(i?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(j.dL))}setChildren(e,t,i,n){const s=[...t];if(0===e.children.length&&0===s.length)return[];const o=new Map,r=new Map;for(const d of e.children)o.set(d.element,d),this.identityProvider&&r.set(d.id,{node:d,collapsed:this.tree.hasElement(d)&&this.tree.isCollapsed(d)});const a=[],l=s.map((t=>{const s=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=K({element:t,parent:e,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&i.defaultCollapseState===y.kn.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),d=r.get(l);if(d){const e=d.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=s,i?d.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):s&&!d.collapsed&&a.push(e),e}const h=K({element:t,parent:e,id:l,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(h),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(h),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||s&&h.defaultCollapseState===y.kn.PreserveOrExpanded)&&a.push(h),h}));for(const d of o.values())te(d,(e=>this.nodes.delete(e.element)));for(const d of l)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),s=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?w.$.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class ne{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new ne(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class se{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...z.k.asClassNameArray(H.l.treeItemLoading)),!0):(t.classList.remove(...z.k.asClassNameArray(H.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeCompressedElements)||void 0===o||o.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.B9)(this.disposables)}}class oe extends ie{constructor(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};super(e,t,i,s,o,r),this.compressionDelegate=n,this.compressibleNodeMapper=new y.VA((e=>new ne(e))),this.filter=r.filter}createTree(e,t,i,n,s){const o=new v.cz(i),r=n.map((e=>new se(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(s)||{};return new V(e,t,o,r,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),s=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},o=s(this.tree.getSelection()),r=s(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let l=!1;const d=this.getFocus();let h=!1;const c=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=n(t.elements[i].element),s=t.elements[t.elements.length-1].element;o.has(e)&&-1===a.indexOf(s)&&(a.push(s),l=!0),r.has(e)&&-1===d.indexOf(s)&&(d.push(s),h=!0)}e.children.forEach(c)};c(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),h&&this.setFocus(d)}processChildren(e){return this.filter&&(e=w.$.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(n=t)?n?1:0:(0,C.gB)(n)?(0,C.aG)(n.visibility):(0,C.aG)(n);var n;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class re extends v.CH{constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};super(e,t,i,n,o),this.user=e,this.dataSource=s,this.identityProvider=o.identityProvider}createModel(e,t,i){return new S(e,t,i)}}var ae=i(5887),le=i(30600),de=i(49817),he=i(47116),ce=i(48495),ue=i(79086),ge=i(87775),pe=i(25371),me=i(76322),fe=i(93617),_e=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ve=function(e,t){return function(i,n){t(i,n,e)}};const be=(0,ge.yh)("listService");class Ce{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new l.wD((0,n.dS)(),"").style(fe.O2)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,n.H9)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.F8)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.OF)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const ye=new he.uy("listScrollAtBoundary","none"),we=(he.Ao.or(ye.isEqualTo("top"),ye.isEqualTo("both")),he.Ao.or(ye.isEqualTo("bottom"),ye.isEqualTo("both")),new he.uy("listFocus",!0)),Se=new he.uy("treestickyScrollFocused",!1),xe=new he.uy("listSupportsMultiselect",!0),Le=he.Ao.and(we,he.Ao.not(ce.d0),Se.negate()),ke=new he.uy("listHasSelectionOrFocus",!1),De=new he.uy("listDoubleSelection",!1),Ne=new he.uy("listMultiSelection",!1),Ee=new he.uy("listSelectionNavigation",!1),Te=new he.uy("listSupportsFind",!0),Ie=new he.uy("treeElementCanCollapse",!1),Me=new he.uy("treeElementHasParent",!1),Ae=new he.uy("treeElementCanExpand",!1),Re=new he.uy("treeElementHasChild",!1),Oe=new he.uy("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Be(e,t){const i=e.createScoped(t.getHTMLElement());return we.bindTo(i),i}function Ve(e,t){const i=ye.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const We="workbench.list.multiSelectModifier",He="workbench.list.openMode",ze="workbench.list.horizontalScrolling",je="workbench.list.defaultFindMode",Ue="workbench.list.typeNavigationMode",Ke="workbench.list.keyboardNavigation",qe="workbench.list.scrollByPage",$e="workbench.list.defaultFindMatchType",Ge="workbench.tree.indent",Ye="workbench.tree.renderIndentGuides",Ze="workbench.list.smoothScrolling",Qe="workbench.list.mouseWheelScrollSensitivity",Xe="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(We)}class nt extends a.JT{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.Zo)(e)}isSelectionRangeChangeEvent(e){return(0,l.wn)(e)}}function st(e,t){var i;const n=e.get(le.Ui),s=e.get(pe.d),o=new a.SL;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(n.getValue(Ze)),mouseWheelScrollSensitivity:n.getValue(Qe),fastScrollSensitivity:n.getValue(Xe),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:o.add(new nt(n)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(n.getValue(qe))},o]}let ot=class extends l.aV{constructor(e,t,i,n,s,o,r,a,l){const d="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(a.getValue(ze)),[h,c]=l.invokeFunction(st,s);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(c),this.contextKeyService=Be(o,this),this.disposables.add(Ve(this.contextKeyService,this)),this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.listDoubleSelection=De.bindTo(this.contextKeyService),this.listMultiSelection=Ne.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(qe)){const e=Boolean(a.getValue(qe));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ze)){const e=Boolean(a.getValue(Ze));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Qe)){const e=a.getValue(Qe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new dt(this,{configurationService:a,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.TU)(e):fe.O2)}};ot=_e([ve(5,he.i6),ve(6,be),ve(7,le.Ui),ve(8,ge.TG)],ot);let rt=class extends c{constructor(e,t,i,n,s,o,r,l,d){const h="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(l.getValue(ze)),[c,u]=d.invokeFunction(st,s);super(e,t,i,n,{keyboardSupport:!1,...c,horizontalScrolling:h}),this.disposables=new a.SL,this.disposables.add(u),this.contextKeyService=Be(o,this),this.disposables.add(Ve(this.contextKeyService,this.widget)),this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(qe)){const e=Boolean(l.getValue(qe));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ze)){const e=Boolean(l.getValue(Ze));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Qe)){const e=l.getValue(Qe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new dt(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.TU)(e):fe.O2)}dispose(){this.disposables.dispose(),super.dispose()}};rt=_e([ve(5,he.i6),ve(6,be),ve(7,le.Ui),ve(8,ge.TG)],rt);let at=class extends _{constructor(e,t,i,n,s,o,r,a,l,d){const h="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(ze)),[c,u]=d.invokeFunction(st,o);super(e,t,i,n,s,{keyboardSupport:!1,...c,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Be(r,this),this.disposables.add(Ve(this.contextKeyService,this)),this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.listDoubleSelection=De.bindTo(this.contextKeyService),this.listMultiSelection=Ne.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(qe)){const e=Boolean(l.getValue(qe));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ze)){const e=Boolean(l.getValue(Ze));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Qe)){const e=l.getValue(Qe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.TU)(e):fe.O2)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.i6),ve(7,be),ve(8,le.Ui),ve(9,ge.TG)],at);class lt extends a.JT{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new r.Q5),this.onDidOpen=this._onDidOpen.event,this._register(r.ju.filter(this.widget.onDidChangeSelection,(e=>(0,n.vd)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(He)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(He)&&(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(He)))})))):this.openOnSingleClick=null===(i=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,n="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,s){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class dt extends lt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends lt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ct extends lt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let gt=class extends O{constructor(e,t,i,n,s,o,r,a,l){const{options:d,getTypeNavigationMode:h,disposable:c}=o.invokeFunction(Ct,s);super(e,t,i,n,d),this.disposables.add(c),this.internals=new yt(this,s,h,s.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge.TG),ve(6,he.i6),ve(7,be),ve(8,le.Ui)],gt);let pt=class extends V{constructor(e,t,i,n,s,o,r,a,l){const{options:d,getTypeNavigationMode:h,disposable:c}=o.invokeFunction(Ct,s);super(e,t,i,n,d),this.disposables.add(c),this.internals=new yt(this,s,h,s.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge.TG),ve(6,he.i6),ve(7,be),ve(8,le.Ui)],pt);let mt=class extends re{constructor(e,t,i,n,s,o,r,a,l,d){const{options:h,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Ct,o);super(e,t,i,n,s,h),this.disposables.add(u),this.internals=new yt(this,o,c,o.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge.TG),ve(7,he.i6),ve(8,be),ve(9,le.Ui)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,s,o,r,a,l,d){const{options:h,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Ct,o);super(e,t,i,n,s,h),this.disposables.add(u),this.internals=new yt(this,o,c,o.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge.TG),ve(7,he.i6),ve(8,be),ve(9,le.Ui)],ft);let _t=class extends oe{constructor(e,t,i,n,s,o,r,a,l,d,h){const{options:c,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Ct,r);super(e,t,i,n,s,o,c),this.disposables.add(g),this.internals=new yt(this,r,u,r.overrideStyles,l,d,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(je);if("highlight"===t)return v.sZ.Highlight;if("filter"===t)return v.sZ.Filter;const i=e.getValue(Ke);return"simple"===i||"highlight"===i?v.sZ.Highlight:"filter"===i?v.sZ.Filter:void 0}function bt(e){const t=e.getValue($e);return"fuzzy"===t?v.Zd.Fuzzy:"contiguous"===t?v.Zd.Contiguous:void 0}function Ct(e,t){var i;const n=e.get(le.Ui),s=e.get(ue.u),o=e.get(he.i6),r=e.get(ge.TG),a=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(ze)),[d,h]=r.invokeFunction(st,t),c=t.paddingBottom,u=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(Ye);return{getTypeNavigationMode:()=>{const e=o.getContextKeyValue(Pe);if("automatic"===e)return l.AA.Automatic;if("trigger"===e)return l.AA.Trigger;if(!1===o.getContextKeyValue(Fe))return l.AA.Trigger;const t=n.getValue(Ue);return"automatic"===t?l.AA.Automatic:"trigger"===t?l.AA.Trigger:void 0},disposable:h,options:{keyboardSupport:!1,...d,indent:"number"===typeof n.getValue(Ge)?n.getValue(Ge):void 0,renderIndentGuides:u,smoothScrolling:Boolean(n.getValue(Ze)),defaultFindMode:vt(n),defaultFindMatchType:bt(n),horizontalScrolling:a,scrollByPage:Boolean(n.getValue(qe)),paddingBottom:c,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.uX,enableStickyScroll:Boolean(n.getValue(et)),stickyScrollMaxItemCount:Number(n.getValue(tt))}}}_t=_e([ve(7,ge.TG),ve(8,he.i6),ve(9,be),ve(10,le.Ui)],_t);let yt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,s,o,r){var a;this.tree=e,this.disposables=[],this.contextKeyService=Be(s,e),this.disposables.push(Ve(this.contextKeyService,e)),this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Te.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.hasDoubleSelection=De.bindTo(this.contextKeyService),this.hasMultiSelection=Ne.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ie.bindTo(this.contextKeyService),this.treeElementHasParent=Me.bindTo(this.contextKeyService),this.treeElementCanExpand=Ae.bindTo(this.contextKeyService),this.treeElementHasChild=Re.bindTo(this.contextKeyService),this.treeFindOpen=Oe.bindTo(this.contextKeyService),this.treeStickyScrollFocused=Se.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(r),this.updateStyleOverrides(n);const l=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},d=new Set;d.add(Pe),d.add(Fe),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),l()})),e.onDidChangeCollapseState(l),e.onDidChangeModel(l),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),r.onDidChangeConfiguration((n=>{let s={};if(n.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(r)),n.affectsConfiguration(Ge)){const e=r.getValue(Ge);s={...s,indent:e}}if(n.affectsConfiguration(Ye)&&void 0===t.renderIndentGuides){const e=r.getValue(Ye);s={...s,renderIndentGuides:e}}if(n.affectsConfiguration(Ze)){const e=Boolean(r.getValue(Ze));s={...s,smoothScrolling:e}}if(n.affectsConfiguration(je)||n.affectsConfiguration(Ke)){const e=vt(r);s={...s,defaultFindMode:e}}if(n.affectsConfiguration(Ue)||n.affectsConfiguration(Ke)){const e=i();s={...s,typeNavigationMode:e}}if(n.affectsConfiguration($e)){const e=bt(r);s={...s,defaultFindMatchType:e}}if(n.affectsConfiguration(ze)&&void 0===t.horizontalScrolling){const e=Boolean(r.getValue(ze));s={...s,horizontalScrolling:e}}if(n.affectsConfiguration(qe)){const e=Boolean(r.getValue(qe));s={...s,scrollByPage:e}}if(n.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(s={...s,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(Je)}),n.affectsConfiguration(et)){const e=r.getValue(et);s={...s,enableStickyScroll:e}}if(n.affectsConfiguration(tt)){const e=Math.max(1,r.getValue(tt));s={...s,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(Qe)){const e=r.getValue(Qe);s={...s,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(Xe)){const e=r.getValue(Xe);s={...s,fastScrollSensitivity:e}}Object.keys(s).length>0&&e.updateOptions(s)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new ct(e,{configurationService:r,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.TU)(e):fe.O2)}dispose(){this.disposables=(0,a.B9)(this.disposables)}};yt=_e([ve(4,he.i6),ve(5,be),ve(6,le.Ui)],yt);me.B.as(de.IP.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.NC)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[We]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.NC)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.NC)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.NC)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[He]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.NC)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[ze]:{type:"boolean",default:!1,description:(0,ae.NC)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[qe]:{type:"boolean",default:!1,description:(0,ae.NC)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[Ge]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.NC)("tree indent setting","Controls tree indentation in pixels.")},[Ye]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.NC)("render tree indent guides","Controls whether the tree should render indent guides.")},[Ze]:{type:"boolean",default:!1,description:(0,ae.NC)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Qe]:{type:"number",default:1,markdownDescription:(0,ae.NC)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Xe]:{type:"number",default:5,markdownDescription:(0,ae.NC)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[je]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.NC)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.NC)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.NC)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[Ke]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.NC)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.NC)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.NC)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.NC)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.NC)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[$e]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.NC)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.NC)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.NC)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.NC)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[et]:{type:"boolean",default:!0,description:(0,ae.NC)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.NC)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[Ue]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.NC)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},33454:(e,t,i)=>{"use strict";i.d(t,{VZ:()=>r,in:()=>a,kw:()=>h,qA:()=>c});var n=i(39706),s=i(53186),o=i(47116);const r=(0,i(87775).yh)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const l=a.Info;class d extends s.JT{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new n.Q5),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];super(),this.useColors=t,this.setLevel(e)}trace(e){if(this.checkLogLevel(a.Trace)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%cTRACE","color: #888",e,...i):console.log(e,...i)}}debug(e){if(this.checkLogLevel(a.Debug)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...i):console.log(e,...i)}}info(e){if(this.checkLogLevel(a.Info)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%c INFO","color: #33f",e,...i):console.log(e,...i)}}warn(e){if(this.checkLogLevel(a.Warning)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%c WARN","color: #993",e,...i):console.log(e,...i)}}error(e){if(this.checkLogLevel(a.Error)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%c ERR","color: #f33",e,...i):console.error(e,...i)}}}class c extends d{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.trace(e,...i)}debug(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.debug(e,...i)}info(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.info(e,...i)}warn(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.warn(e,...i)}error(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.error(e,...i)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new o.uy("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},76390:(e,t,i)=>{"use strict";i.d(t,{H0:()=>s,ZL:()=>n,lT:()=>l});var n,s,o=i(28889),r=i(5887),a=i(87775);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,r.NC)("sev.error","Error"),t[e.Warning]=(0,r.NC)("sev.warning","Warning"),t[e.Info]=(0,r.NC)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case o.Z.Error:return e.Error;case o.Z.Warning:return e.Warning;case o.Z.Info:return e.Info;case o.Z.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return o.Z.Error;case e.Warning:return o.Z.Warning;case e.Info:return o.Z.Info;case e.Hint:return o.Z.Ignore}}}(n||(n={})),function(e){const t="";function i(e,i){const s=[t];return e.source?s.push(e.source.replace("\xa6","\\\xa6")):s.push(t),e.code?"string"===typeof e.code?s.push(e.code.replace("\xa6","\\\xa6")):s.push(e.code.value.replace("\xa6","\\\xa6")):s.push(t),void 0!==e.severity&&null!==e.severity?s.push(n.toString(e.severity)):s.push(t),e.message&&i?s.push(e.message.replace("\xa6","\\\xa6")):s.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?s.push(e.startLineNumber.toString()):s.push(t),void 0!==e.startColumn&&null!==e.startColumn?s.push(e.startColumn.toString()):s.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?s.push(e.endLineNumber.toString()):s.push(t),void 0!==e.endColumn&&null!==e.endColumn?s.push(e.endColumn.toString()):s.push(t),s.push(t),s.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(s||(s={}));const l=(0,a.yh)("markerService")},61758:(e,t,i)=>{"use strict";i.d(t,{EO:()=>a,lT:()=>r,zb:()=>o});var n=i(28889),s=i(87775),o=n.Z;const r=(0,s.yh)("notificationService");class a{}},34912:(e,t,i)=>{"use strict";i.d(t,{v:()=>n,x:()=>s});const n=(0,i(87775).yh)("openerService");function s(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},97757:(e,t,i)=>{"use strict";i.d(t,{Ex:()=>o,R9:()=>s,ek:()=>r});var n=i(87775);const s=(0,n.yh)("progressService");Object.freeze({total(){},worked(){},done(){}});class o{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}o.None=Object.freeze({report(){}});const r=(0,n.yh)("editorProgressService")},99009:(e,t,i)=>{"use strict";i.d(t,{IP:()=>a,Ry:()=>n});var n,s=i(51833),o=i(53186),r=i(76322);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.B.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,o.OF)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,s.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},2033:(e,t,i)=>{"use strict";i.d(t,{Jq:()=>o,X5:()=>s,eJ:()=>a,jG:()=>r});var n=i(87775);const s={ctrlCmd:!1,alt:!1};var o,r;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(o||(o={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={}));new class{constructor(e){this.options=e}};const a=(0,n.yh)("quickInputService")},76322:(e,t,i)=>{"use strict";i.d(t,{B:()=>o});var n=i(56702),s=i(47624);const o=new class{constructor(){this.data=new Map}add(e,t){n.ok(s.HD(e)),n.ok(s.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},87650:(e,t,i)=>{"use strict";i.d(t,{Uy:()=>p,vm:()=>_,fk:()=>m});var n,s,o=i(39706),r=i(53186),a=i(47624),l=i(53372),d=i(33080);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(s||(s={}));class h extends r.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o.K3),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=s.None,this.cache=new Map,this.flushDelayer=this._register(new l.rH(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===s.Closed)return;let i=!1;if((0,a.Jp)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.Jp)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:parseInt(i,10)}async set(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.state===s.Closed)return;if((0,a.Jp)(t))return this.delete(e,i);const n=(0,a.Kn)(t)||Array.isArray(t)?(0,d.Pz)(t):String(t);return this.cache.get(e)!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.state===s.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===n.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}h.DEFAULT_FLUSH_DELAY=100;class c{constructor(){this.onDidChangeItemsExternal=o.ju.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}var u=i(87775);const g="__$__targetStorageMarker",p=(0,u.yh)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends r.JT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flushInterval:f.DEFAULT_FLUSH_INTERVAL};super(),this.options=e,this._onDidChangeValue=this._register(new o.K3),this._onDidChangeTarget=this._register(new o.K3),this._onWillSaveState=this._register(new o.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return o.ju.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,a.Jp)(t)?this.remove(e,i,s):this.withPausedEmitters((()=>{var o;this.updateKeyTarget(e,i,n),null===(o=this.getStorage(i))||void 0===o||o.set(e,t,s)}))}remove(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var s,o;const r=this.getKeyTargets(t);"number"===typeof i?r[e]!==i&&(r[e]=i,null===(s=this.getStorage(t))||void 0===s||s.set(g,JSON.stringify(r),n)):"number"===typeof r[e]&&(delete r[e],null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(r),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}f.DEFAULT_FLUSH_INTERVAL=6e4;class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},57823:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(87775).yh)("telemetryService")},93617:(e,t,i)=>{"use strict";i.d(t,{BM:()=>p,Hc:()=>d,O2:()=>u,TU:()=>g,ZR:()=>m,b5:()=>a,eO:()=>o,ku:()=>c,pl:()=>l,uX:()=>h,wG:()=>r});var n=i(6009),s=i(63932);const o={keybindingLabelBackground:(0,n.n_1)(n.oQ$),keybindingLabelForeground:(0,n.n_1)(n.lWp),keybindingLabelBorder:(0,n.n_1)(n.AWI),keybindingLabelBottomBorder:(0,n.n_1)(n.K19),keybindingLabelShadow:(0,n.n_1)(n.rh)},r={buttonForeground:(0,n.n_1)(n.j5u),buttonSeparator:(0,n.n_1)(n.iFQ),buttonBackground:(0,n.n_1)(n.b7$),buttonHoverBackground:(0,n.n_1)(n.GO4),buttonSecondaryForeground:(0,n.n_1)(n.qBU),buttonSecondaryBackground:(0,n.n_1)(n.ESD),buttonSecondaryHoverBackground:(0,n.n_1)(n.xEn),buttonBorder:(0,n.n_1)(n.GYc)},a={progressBarBackground:(0,n.n_1)(n.zRJ)},l={inputActiveOptionBorder:(0,n.n_1)(n.PRb),inputActiveOptionForeground:(0,n.n_1)(n.Pvw),inputActiveOptionBackground:(0,n.n_1)(n.XEs)},d=((0,n.n_1)(n.SUp),(0,n.n_1)(n.nd),(0,n.n_1)(n.BQ0),(0,n.n_1)(n.D0T),(0,n.n_1)(n.Hfx),(0,n.n_1)(n.rh),(0,n.n_1)(n.lRK),(0,n.n_1)(n.JpG),(0,n.n_1)(n.BOY),(0,n.n_1)(n.OLZ),(0,n.n_1)(n.url),{inputBackground:(0,n.n_1)(n.sEe),inputForeground:(0,n.n_1)(n.zJb),inputBorder:(0,n.n_1)(n.dt_),inputValidationInfoBorder:(0,n.n_1)(n.EPQ),inputValidationInfoBackground:(0,n.n_1)(n._lC),inputValidationInfoForeground:(0,n.n_1)(n.YI3),inputValidationWarningBorder:(0,n.n_1)(n.C3g),inputValidationWarningBackground:(0,n.n_1)(n.RV_),inputValidationWarningForeground:(0,n.n_1)(n.SUG),inputValidationErrorBorder:(0,n.n_1)(n.OZR),inputValidationErrorBackground:(0,n.n_1)(n.paE),inputValidationErrorForeground:(0,n.n_1)(n._t9)}),h={listFilterWidgetBackground:(0,n.n_1)(n.vGG),listFilterWidgetOutline:(0,n.n_1)(n.oSI),listFilterWidgetNoMatchesOutline:(0,n.n_1)(n.Saq),listFilterWidgetShadow:(0,n.n_1)(n.y65),inputBoxStyles:d,toggleStyles:l},c={badgeBackground:(0,n.n_1)(n.g8u),badgeForeground:(0,n.n_1)(n.qeD),badgeBorder:(0,n.n_1)(n.lRK)},u=((0,n.n_1)(n.ixd),(0,n.n_1)(n.l80),(0,n.n_1)(n.H6q),(0,n.n_1)(n.H6q),(0,n.n_1)(n.fSI),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.n_1)(n._bK),listFocusForeground:(0,n.n_1)(n._2n),listFocusOutline:(0,n.n_1)(n.Oop),listActiveSelectionBackground:(0,n.n_1)(n.dCr),listActiveSelectionForeground:(0,n.n_1)(n.M6C),listActiveSelectionIconForeground:(0,n.n_1)(n.Tnx),listFocusAndSelectionOutline:(0,n.n_1)(n.Bqu),listFocusAndSelectionBackground:(0,n.n_1)(n.dCr),listFocusAndSelectionForeground:(0,n.n_1)(n.M6C),listInactiveSelectionBackground:(0,n.n_1)(n.rg2),listInactiveSelectionIconForeground:(0,n.n_1)(n.kvU),listInactiveSelectionForeground:(0,n.n_1)(n.ytC),listInactiveFocusBackground:(0,n.n_1)(n.s$),listInactiveFocusOutline:(0,n.n_1)(n.F3d),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listDropOverBackground:(0,n.n_1)(n.pdn),listDropBetweenBackground:(0,n.n_1)(n.XVp),listSelectionOutline:(0,n.n_1)(n.xL1),listHoverOutline:(0,n.n_1)(n.xL1),treeIndentGuidesStroke:(0,n.n_1)(n.UnT),treeInactiveIndentGuidesStroke:(0,n.n_1)(n.KjV),tableColumnsBorder:(0,n.n_1)(n.uxu),tableOddRowsBackgroundColor:(0,n.n_1)(n.EQn)});function g(e){return function(e,t){const i={...t};for(const s in e){const t=e[s];i[s]=void 0!==t?(0,n.n_1)(t):void 0}return i}(e,u)}const p={selectBackground:(0,n.n_1)(n.XV0),selectListBackground:(0,n.n_1)(n.Fgs),selectForeground:(0,n.n_1)(n._g0),decoratorRightForeground:(0,n.n_1)(n.kJk),selectBorder:(0,n.n_1)(n.a9O),focusBorder:(0,n.n_1)(n.R80),listFocusBackground:(0,n.n_1)(n.Vqd),listInactiveSelectionIconForeground:(0,n.n_1)(n.cbQ),listFocusForeground:(0,n.n_1)(n.NPS),listFocusOutline:(0,n.BtC)(n.xL1,s.Il.transparent.toString()),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listHoverOutline:(0,n.n_1)(n.xL1),selectListBorder:(0,n.n_1)(n.D1_),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,n.n_1)(n.rh),borderColor:(0,n.n_1)(n.Cdg),foregroundColor:(0,n.n_1)(n.DEr),backgroundColor:(0,n.n_1)(n.Hz8),selectionForegroundColor:(0,n.n_1)(n.jbW),selectionBackgroundColor:(0,n.n_1)(n.$DX),selectionBorderColor:(0,n.n_1)(n.E3h),separatorColor:(0,n.n_1)(n.ZGJ),scrollbarShadow:(0,n.n_1)(n._wn),scrollbarSliderBackground:(0,n.n_1)(n.etL),scrollbarSliderHoverBackground:(0,n.n_1)(n.ABB),scrollbarSliderActiveBackground:(0,n.n_1)(n.ynu)}},6009:(e,t,i)=>{"use strict";i.d(t,{IPX:()=>u,xL1:()=>E,n_1:()=>h,QO2:()=>d,BtC:()=>c,g8u:()=>I,qeD:()=>M,fSI:()=>ke,ixd:()=>xe,H6q:()=>Le,l80:()=>Se,b7$:()=>mt,GYc:()=>_t,j5u:()=>gt,GO4:()=>ft,ESD:()=>bt,qBU:()=>vt,xEn:()=>Ct,iFQ:()=>pt,SUp:()=>yt,nd:()=>St,BQ0:()=>wt,lRK:()=>N,CzK:()=>pe,keg:()=>me,ypS:()=>fe,P6Y:()=>ve,F9q:()=>be,P4M:()=>_e,_Yy:()=>Q,cvW:()=>B,b6y:()=>U,lXJ:()=>j,MUv:()=>ie,EiJ:()=>ne,gkn:()=>se,NOs:()=>V,Dut:()=>Z,yJx:()=>oe,CNo:()=>re,ES4:()=>ee,T83:()=>Y,c63:()=>G,PpC:()=>le,VVv:()=>ae,phM:()=>ue,HCL:()=>ce,bKB:()=>he,hX8:()=>de,hEj:()=>X,yb5:()=>J,Rzx:()=>te,gpD:()=>K,pW3:()=>$,uoC:()=>q,D0T:()=>W,D1_:()=>z,Hfx:()=>H,R80:()=>D,dRz:()=>L,XZx:()=>k,XEs:()=>Xe,PRb:()=>Qe,Pvw:()=>Je,sEe:()=>Ge,dt_:()=>Ze,zJb:()=>Ye,paE:()=>rt,OZR:()=>lt,_t9:()=>at,_lC:()=>et,EPQ:()=>it,YI3:()=>tt,RV_:()=>nt,C3g:()=>ot,SUG:()=>st,oQ$:()=>xt,AWI:()=>kt,K19:()=>Dt,lWp:()=>Lt,dCr:()=>Mt,M6C:()=>At,Tnx:()=>Rt,XVp:()=>jt,pdn:()=>zt,vGG:()=>Yt,Saq:()=>Qt,oSI:()=>Zt,y65:()=>Xt,Bqu:()=>It,_bK:()=>Nt,_2n:()=>Et,PX0:()=>Kt,Oop:()=>Tt,Gwp:()=>Ut,mV1:()=>Wt,$d5:()=>Ht,s$:()=>Bt,F3d:()=>Vt,rg2:()=>Ot,ytC:()=>Pt,kvU:()=>Ft,Hz8:()=>oi,Cdg:()=>ni,DEr:()=>si,$DX:()=>ai,E3h:()=>li,jbW:()=>ri,ZGJ:()=>di,kVY:()=>qe,Gj_:()=>Ke,SUY:()=>We,Itd:()=>$e,Gvr:()=>je,ov3:()=>ze,IYc:()=>He,Ivo:()=>Ue,kwl:()=>v,Fm_:()=>Oe,SPM:()=>Pe,opG:()=>pi,kJk:()=>gi,JpG:()=>Fe,OLZ:()=>Ve,BOY:()=>Be,zRJ:()=>F,zKr:()=>hi,tZ6:()=>ci,Vqd:()=>vi,NPS:()=>fi,cbQ:()=>_i,loF:()=>ui,P6G:()=>p,_wn:()=>A,ynu:()=>P,etL:()=>R,ABB:()=>O,XV0:()=>dt,a9O:()=>ut,_g0:()=>ct,Fgs:()=>ht,uxu:()=>ti,EQn:()=>ii,url:()=>T,ZnX:()=>_,KjV:()=>ei,UnT:()=>Jt,A42:()=>ye,rh:()=>Ce});var n=i(56702),s=i(53372),o=i(63932),r=i(39706),a=i(97830),l=i(76322);function d(e){return`--vscode-${e.replace(/\./g,"-")}`}function h(e){return`var(${d(e)})`}function c(e,t){return`var(${d(e)}, ${t})`}const u={ColorContribution:"base.contributions.colors"};const g=new class{constructor(){this._onDidChangeSchema=new r.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0;const o={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:s};this.colorsById[e]=o;const r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(r.deprecationMessage=s),n&&(r.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",r.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=r,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){return C(i.defaults[t.type],t)}}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function p(e,t,i,n,s){return g.registerColor(e,t,i,n,s)}function m(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function _(e,t){return{op:2,value:e,factor:t}}function v(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return{op:4,values:t}}function b(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function C(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?o.Il.fromHex(e):t.getColor(e):e instanceof o.Il?e:"object"===typeof e?function(e,t){var i,s,r,a;switch(e.op){case 0:return null===(i=C(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(s=C(e.value,t))||void 0===s?void 0:s.lighten(e.factor);case 2:return null===(r=C(e.value,t))||void 0===r?void 0:r.transparent(e.factor);case 3:{const i=C(e.background,t);return i?null===(a=C(e.value,t))||void 0===a?void 0:a.makeOpaque(i):C(e.value,t)}case 4:for(const i of e.values){const e=C(i,t);if(e)return e}return;case 6:return C(t.defines(e.if)?e.then:e.else,t);case 5:{const i=C(e.value,t);if(!i)return;const n=C(e.background,t);return n?i.isDarkerThan(n)?o.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):o.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,n.vE)(e)}}(e,t):void 0}l.B.add(u.ColorContribution,g);const y="vscode://schemas/workbench-colors",w=l.B.as(a.I.JSONContribution);w.registerSchema(y,g.getColorSchema());const S=new s.pY((()=>w.notifySchemaChanged(y)),200);g.onDidChangeSchema((()=>{S.isScheduled()||S.schedule()}));var x=i(5887);const L=p("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},x.NC("foreground","Overall foreground color. This color is only used if not overridden by a component.")),k=(p("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},x.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),p("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},x.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),p("descriptionForeground",{light:"#717171",dark:_(L,.7),hcDark:_(L,.7),hcLight:_(L,.7)},x.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),p("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},x.NC("iconForeground","The default color for icons in the workbench."))),D=p("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},x.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),N=p("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},x.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),E=p("contrastActiveBorder",{light:null,dark:null,hcDark:D,hcLight:D},x.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),T=(p("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},x.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),p("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},x.NC("textLinkForeground","Foreground color for links in text."))),I=(p("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},x.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),p("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:o.Il.black,hcLight:"#292929"},x.NC("textSeparatorForeground","Color for text separators.")),p("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},x.NC("textPreformatForeground","Foreground color for preformatted text segments.")),p("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},x.NC("textPreformatBackground","Background color for preformatted text segments.")),p("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},x.NC("textBlockQuoteBackground","Background color for block quotes in text.")),p("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:o.Il.white,hcLight:"#292929"},x.NC("textBlockQuoteBorder","Border color for block quotes in text.")),p("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:o.Il.black,hcLight:"#F2F2F2"},x.NC("textCodeBlockBackground","Background color for code blocks in text.")),p("sash.hoverBorder",{dark:D,light:D,hcDark:D,hcLight:D},x.NC("sashActiveBorder","Border color of active sashes.")),p("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:o.Il.black,hcLight:"#0F4A85"},x.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),M=p("badge.foreground",{dark:o.Il.white,light:"#333",hcDark:o.Il.white,hcLight:o.Il.white},x.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),A=p("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},x.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),R=p("scrollbarSlider.background",{dark:o.Il.fromHex("#797979").transparent(.4),light:o.Il.fromHex("#646464").transparent(.4),hcDark:_(N,.6),hcLight:_(N,.4)},x.NC("scrollbarSliderBackground","Scrollbar slider background color.")),O=p("scrollbarSlider.hoverBackground",{dark:o.Il.fromHex("#646464").transparent(.7),light:o.Il.fromHex("#646464").transparent(.7),hcDark:_(N,.8),hcLight:_(N,.8)},x.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),P=p("scrollbarSlider.activeBackground",{dark:o.Il.fromHex("#BFBFBF").transparent(.4),light:o.Il.fromHex("#000000").transparent(.6),hcDark:N,hcLight:N},x.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),F=p("progressBar.background",{dark:o.Il.fromHex("#0E70C0"),light:o.Il.fromHex("#0E70C0"),hcDark:N,hcLight:N},x.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),B=p("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("editorBackground","Editor background color.")),V=p("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Il.white,hcLight:L},x.NC("editorForeground","Editor default foreground color.")),W=(p("editorStickyScroll.background",{light:B,dark:B,hcDark:B,hcLight:B},x.NC("editorStickyScrollBackground","Background color of sticky scroll in the editor")),p("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),p("editorStickyScroll.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("editorStickyScrollBorder","Border color of sticky scroll in the editor")),p("editorStickyScroll.shadow",{dark:A,light:A,hcDark:A,hcLight:A},x.NC("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),p("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Il.white},x.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),H=p("editorWidget.foreground",{dark:L,light:L,hcDark:L,hcLight:L},x.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),z=p("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:N,hcLight:N},x.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),j=(p("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},x.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),p("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},x.NC("editorError.foreground","Foreground color of error squigglies in the editor."))),U=p("editorError.border",{dark:null,light:null,hcDark:o.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},x.NC("errorBorder","If set, color of double underlines for errors in the editor.")),K=p("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),q=p("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},x.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$=p("editorWarning.border",{dark:null,light:null,hcDark:o.Il.fromHex("#FFCC00").transparent(.8),hcLight:o.Il.fromHex("#FFCC00").transparent(.8)},x.NC("warningBorder","If set, color of double underlines for warnings in the editor.")),G=(p("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},x.NC("editorInfo.foreground","Foreground color of info squigglies in the editor."))),Y=p("editorInfo.border",{dark:null,light:null,hcDark:o.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},x.NC("infoBorder","If set, color of double underlines for infos in the editor.")),Z=p("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},x.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Q=(p("editorHint.border",{dark:null,light:null,hcDark:o.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},x.NC("hintBorder","If set, color of double underlines for hints in the editor.")),p("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hcDark:o.Il.cyan,hcLight:"#292929"},x.NC("activeLinkForeground","Color of active links."))),X=p("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},x.NC("editorSelectionBackground","Color of the editor selection.")),J=p("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Il.white},x.NC("editorSelectionForeground","Color of the selected text for high contrast.")),ee=p("editor.inactiveSelectionBackground",{light:_(X,.5),dark:_(X,.5),hcDark:_(X,.7),hcLight:_(X,.5)},x.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),te=p("editor.selectionHighlightBackground",{light:b(X,B,.3,.6),dark:b(X,B,.3,.6),hcDark:null,hcLight:null},x.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),ie=(p("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},x.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),p("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},x.NC("editorFindMatch","Color of the current search match.")),p("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},x.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ne=(p("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},x.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),p("editor.findMatchBorder",{light:null,dark:null,hcDark:E,hcLight:E},x.NC("editorFindMatchBorder","Border color of the current search match.")),p("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},x.NC("findMatchHighlightBorder","Border color of the other search matches."))),se=p("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:_(E,.4),hcLight:_(E,.4)},x.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),oe=(p("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},x.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorHoverWidget.background",{light:W,dark:W,hcDark:W,hcLight:W},x.NC("hoverBackground","Background color of the editor hover."))),re=(p("editorHoverWidget.foreground",{light:H,dark:H,hcDark:H,hcLight:H},x.NC("hoverForeground","Foreground color of the editor hover.")),p("editorHoverWidget.border",{light:z,dark:z,hcDark:z,hcLight:z},x.NC("hoverBorder","Border color of the editor hover."))),ae=(p("editorHoverWidget.statusBarBackground",{dark:f(oe,.2),light:m(oe,.05),hcDark:W,hcLight:W},x.NC("statusBarBackground","Background color of the editor hover status bar.")),p("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:o.Il.white,hcLight:o.Il.black},x.NC("editorInlayHintForeground","Foreground color of inline hints"))),le=p("editorInlayHint.background",{dark:_(I,.1),light:_(I,.1),hcDark:_(o.Il.white,.1),hcLight:_(I,.1)},x.NC("editorInlayHintBackground","Background color of inline hints")),de=p("editorInlayHint.typeForeground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},x.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),he=p("editorInlayHint.typeBackground",{dark:le,light:le,hcDark:le,hcLight:le},x.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),ce=p("editorInlayHint.parameterForeground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},x.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),ue=p("editorInlayHint.parameterBackground",{dark:le,light:le,hcDark:le,hcLight:le},x.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),ge=p("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},x.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),pe=(p("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},x.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),p("editorLightBulbAi.foreground",{dark:ge,light:ge,hcDark:ge,hcLight:ge},x.NC("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),p("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hcDark:new o.Il(new o.VS(124,124,124,.3)),hcLight:new o.Il(new o.VS(10,50,100,.2))},x.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),p("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),p("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),p("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},x.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new o.Il(new o.VS(155,185,85,.2))),me=new o.Il(new o.VS(255,0,0,.2)),fe=p("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},x.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),_e=p("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},x.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ve=(p("diffEditor.insertedLineBackground",{dark:pe,light:pe,hcDark:null,hcLight:null},x.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),p("diffEditor.removedLineBackground",{dark:me,light:me,hcDark:null,hcLight:null},x.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),p("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),p("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),p("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),be=p("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Ce=(p("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},x.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),p("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},x.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),p("diffEditor.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("diffEditorBorder","Border color between the two text editors.")),p("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},x.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),p("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},x.NC("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),p("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},x.NC("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),p("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},x.NC("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),p("widget.shadow",{dark:_(o.Il.black,.36),light:_(o.Il.black,.16),hcDark:null,hcLight:null},x.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ye=p("widget.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("widgetBorder","Border color of widgets such as find/replace inside the editor.")),we=p("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},x.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Se=(p("toolbar.hoverOutline",{dark:null,light:null,hcDark:E,hcLight:E},x.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),p("toolbar.activeBackground",{dark:f(we,.1),light:m(we,.1),hcDark:null,hcLight:null},x.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),p("breadcrumb.foreground",{light:_(L,.8),dark:_(L,.8),hcDark:_(L,.8),hcLight:_(L,.8)},x.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),xe=p("breadcrumb.background",{light:B,dark:B,hcDark:B,hcLight:B},x.NC("breadcrumbsBackground","Background color of breadcrumb items.")),Le=p("breadcrumb.focusForeground",{light:m(L,.2),dark:f(L,.1),hcDark:f(L,.1),hcLight:f(L,.1)},x.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),ke=p("breadcrumb.activeSelectionForeground",{light:m(L,.2),dark:f(L,.1),hcDark:f(L,.1),hcLight:f(L,.1)},x.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),De=(p("breadcrumbPicker.background",{light:W,dark:W,hcDark:W,hcLight:W},x.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),o.Il.fromHex("#40C8AE").transparent(.5)),Ne=o.Il.fromHex("#40A6FF").transparent(.5),Ee=o.Il.fromHex("#606060").transparent(.4),Te=.4,Ie=p("merge.currentHeaderBackground",{dark:De,light:De,hcDark:null,hcLight:null},x.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Me=(p("merge.currentContentBackground",{dark:_(Ie,Te),light:_(Ie,Te),hcDark:_(Ie,Te),hcLight:_(Ie,Te)},x.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.incomingHeaderBackground",{dark:Ne,light:Ne,hcDark:null,hcLight:null},x.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Ae=(p("merge.incomingContentBackground",{dark:_(Me,Te),light:_(Me,Te),hcDark:_(Me,Te),hcLight:_(Me,Te)},x.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.commonHeaderBackground",{dark:Ee,light:Ee,hcDark:null,hcLight:null},x.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Re=(p("merge.commonContentBackground",{dark:_(Ae,Te),light:_(Ae,Te),hcDark:_(Ae,Te),hcLight:_(Ae,Te)},x.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},x.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),Oe=(p("editorOverviewRuler.currentContentForeground",{dark:_(Ie,1),light:_(Ie,1),hcDark:Re,hcLight:Re},x.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.incomingContentForeground",{dark:_(Me,1),light:_(Me,1),hcDark:Re,hcLight:Re},x.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.commonContentForeground",{dark:_(Ae,1),light:_(Ae,1),hcDark:Re,hcLight:Re},x.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},x.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),Pe=p("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},x.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Fe=p("problemsErrorIcon.foreground",{dark:j,light:j,hcDark:j,hcLight:j},x.NC("problemsErrorIconForeground","The color used for the problems error icon.")),Be=p("problemsWarningIcon.foreground",{dark:q,light:q,hcDark:q,hcLight:q},x.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),Ve=p("problemsInfoIcon.foreground",{dark:G,light:G,hcDark:G,hcLight:G},x.NC("problemsInfoIconForeground","The color used for the problems info icon.")),We=p("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},x.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),He=p("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},x.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),ze=p("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},x.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),je=p("minimap.infoHighlight",{dark:G,light:G,hcDark:Y,hcLight:Y},x.NC("minimapInfo","Minimap marker color for infos.")),Ue=p("minimap.warningHighlight",{dark:q,light:q,hcDark:$,hcLight:$},x.NC("overviewRuleWarning","Minimap marker color for warnings.")),Ke=p("minimap.errorHighlight",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:"#B5200D"},x.NC("minimapError","Minimap marker color for errors.")),qe=p("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("minimapBackground","Minimap background color.")),$e=p("minimap.foregroundOpacity",{dark:o.Il.fromHex("#000f"),light:o.Il.fromHex("#000f"),hcDark:o.Il.fromHex("#000f"),hcLight:o.Il.fromHex("#000f")},x.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ge=(p("minimapSlider.background",{light:_(R,.5),dark:_(R,.5),hcDark:_(R,.5),hcLight:_(R,.5)},x.NC("minimapSliderBackground","Minimap slider background color.")),p("minimapSlider.hoverBackground",{light:_(O,.5),dark:_(O,.5),hcDark:_(O,.5),hcLight:_(O,.5)},x.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),p("minimapSlider.activeBackground",{light:_(P,.5),dark:_(P,.5),hcDark:_(P,.5),hcLight:_(P,.5)},x.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),p("charts.foreground",{dark:L,light:L,hcDark:L,hcLight:L},x.NC("chartsForeground","The foreground color used in charts.")),p("charts.lines",{dark:_(L,.5),light:_(L,.5),hcDark:_(L,.5),hcLight:_(L,.5)},x.NC("chartsLines","The color used for horizontal lines in charts.")),p("charts.red",{dark:j,light:j,hcDark:j,hcLight:j},x.NC("chartsRed","The red color used in chart visualizations.")),p("charts.blue",{dark:G,light:G,hcDark:G,hcLight:G},x.NC("chartsBlue","The blue color used in chart visualizations.")),p("charts.yellow",{dark:q,light:q,hcDark:q,hcLight:q},x.NC("chartsYellow","The yellow color used in chart visualizations.")),p("charts.orange",{dark:We,light:We,hcDark:We,hcLight:We},x.NC("chartsOrange","The orange color used in chart visualizations.")),p("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},x.NC("chartsGreen","The green color used in chart visualizations.")),p("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},x.NC("chartsPurple","The purple color used in chart visualizations.")),p("input.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputBoxBackground","Input box background."))),Ye=p("input.foreground",{dark:L,light:L,hcDark:L,hcLight:L},x.NC("inputBoxForeground","Input box foreground.")),Ze=p("input.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("inputBoxBorder","Input box border.")),Qe=p("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:N,hcLight:N},x.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Xe=(p("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},x.NC("inputOption.hoverBackground","Background color of activated options in input fields.")),p("inputOption.activeBackground",{dark:_(D,.4),light:_(D,.2),hcDark:o.Il.transparent,hcLight:o.Il.transparent},x.NC("inputOption.activeBackground","Background hover color of options in input fields."))),Je=p("inputOption.activeForeground",{dark:o.Il.white,light:o.Il.black,hcDark:L,hcLight:L},x.NC("inputOption.activeForeground","Foreground color of activated options in input fields.")),et=(p("input.placeholderForeground",{light:_(L,.5),dark:_(L,.5),hcDark:_(L,.7),hcLight:_(L,.7)},x.NC("inputPlaceholderForeground","Input box foreground color for placeholder text.")),p("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputValidationInfoBackground","Input validation background color for information severity."))),tt=p("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:L},x.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),it=p("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:N,hcLight:N},x.NC("inputValidationInfoBorder","Input validation border color for information severity.")),nt=p("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),st=p("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:L},x.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),ot=p("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:N,hcLight:N},x.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),rt=p("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputValidationErrorBackground","Input validation background color for error severity.")),at=p("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:L},x.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),lt=p("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:N,hcLight:N},x.NC("inputValidationErrorBorder","Input validation border color for error severity.")),dt=p("dropdown.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},x.NC("dropdownBackground","Dropdown background.")),ht=p("dropdown.listBackground",{dark:null,light:null,hcDark:o.Il.black,hcLight:o.Il.white},x.NC("dropdownListBackground","Dropdown list background.")),ct=p("dropdown.foreground",{dark:"#F0F0F0",light:L,hcDark:o.Il.white,hcLight:L},x.NC("dropdownForeground","Dropdown foreground.")),ut=p("dropdown.border",{dark:dt,light:"#CECECE",hcDark:N,hcLight:N},x.NC("dropdownBorder","Dropdown border.")),gt=p("button.foreground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:o.Il.white},x.NC("buttonForeground","Button foreground color.")),pt=p("button.separator",{dark:_(gt,.4),light:_(gt,.4),hcDark:_(gt,.4),hcLight:_(gt,.4)},x.NC("buttonSeparator","Button separator color.")),mt=p("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},x.NC("buttonBackground","Button background color.")),ft=p("button.hoverBackground",{dark:f(mt,.2),light:m(mt,.2),hcDark:mt,hcLight:mt},x.NC("buttonHoverBackground","Button background color when hovering.")),_t=p("button.border",{dark:N,light:N,hcDark:N,hcLight:N},x.NC("buttonBorder","Button border color.")),vt=p("button.secondaryForeground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:L},x.NC("buttonSecondaryForeground","Secondary button foreground color.")),bt=p("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:o.Il.white},x.NC("buttonSecondaryBackground","Secondary button background color.")),Ct=p("button.secondaryHoverBackground",{dark:f(bt,.2),light:m(bt,.2),hcDark:null,hcLight:null},x.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),yt=p("checkbox.background",{dark:dt,light:dt,hcDark:dt,hcLight:dt},x.NC("checkbox.background","Background color of checkbox widget.")),wt=(p("checkbox.selectBackground",{dark:W,light:W,hcDark:W,hcLight:W},x.NC("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),p("checkbox.foreground",{dark:ct,light:ct,hcDark:ct,hcLight:ct},x.NC("checkbox.foreground","Foreground color of checkbox widget."))),St=p("checkbox.border",{dark:ut,light:ut,hcDark:ut,hcLight:ut},x.NC("checkbox.border","Border color of checkbox widget.")),xt=(p("checkbox.selectBorder",{dark:k,light:k,hcDark:k,hcLight:k},x.NC("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),p("keybindingLabel.background",{dark:new o.Il(new o.VS(128,128,128,.17)),light:new o.Il(new o.VS(221,221,221,.4)),hcDark:o.Il.transparent,hcLight:o.Il.transparent},x.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),Lt=p("keybindingLabel.foreground",{dark:o.Il.fromHex("#CCCCCC"),light:o.Il.fromHex("#555555"),hcDark:o.Il.white,hcLight:L},x.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),kt=p("keybindingLabel.border",{dark:new o.Il(new o.VS(51,51,51,.6)),light:new o.Il(new o.VS(204,204,204,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:N},x.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Dt=p("keybindingLabel.bottomBorder",{dark:new o.Il(new o.VS(68,68,68,.6)),light:new o.Il(new o.VS(187,187,187,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:L},x.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Nt=p("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Et=p("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Tt=p("list.focusOutline",{dark:D,light:D,hcDark:E,hcLight:E},x.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),It=p("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),Mt=p("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),At=p("list.activeSelectionForeground",{dark:o.Il.white,light:o.Il.white,hcDark:null,hcLight:null},x.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Rt=p("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ot=p("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Pt=p("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ft=p("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Bt=p("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Vt=p("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Wt=p("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:o.Il.white.transparent(.1),hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ht=p("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),zt=p("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},x.NC("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),jt=p("list.dropBetweenBackground",{dark:k,light:k,hcDark:null,hcLight:null},x.NC("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Ut=p("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:D,hcLight:D},x.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Kt=p("list.focusHighlightForeground",{dark:Ut,light:(qt=Mt,$t=Ut,Gt="#BBE7FF",{op:6,if:qt,then:$t,else:Gt}),hcDark:Ut,hcLight:Ut},x.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var qt,$t,Gt;p("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},x.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),p("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},x.NC("listErrorForeground","Foreground color of list items containing errors.")),p("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},x.NC("listWarningForeground","Foreground color of list items containing warnings."));const Yt=p("listFilterWidget.background",{light:m(W,0),dark:f(W,0),hcDark:W,hcLight:W},x.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Zt=p("listFilterWidget.outline",{dark:o.Il.transparent,light:o.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},x.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Qt=p("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:N,hcLight:N},x.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Xt=p("listFilterWidget.shadow",{dark:Ce,light:Ce,hcDark:Ce,hcLight:Ce},x.NC("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Jt=(p("list.filterMatchBackground",{dark:ie,light:ie,hcDark:null,hcLight:null},x.NC("listFilterMatchHighlight","Background color of the filtered match.")),p("list.filterMatchBorder",{dark:ne,light:ne,hcDark:N,hcLight:E},x.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),p("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},x.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),p("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},x.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),ei=p("tree.inactiveIndentGuidesStroke",{dark:_(Jt,.4),light:_(Jt,.4),hcDark:_(Jt,.4),hcLight:_(Jt,.4)},x.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),ti=p("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},x.NC("tableColumnsBorder","Table border color between columns.")),ii=p("tree.tableOddRowsBackground",{dark:_(L,.04),light:_(L,.04),hcDark:null,hcLight:null},x.NC("tableOddRowsBackgroundColor","Background color for odd table rows.")),ni=p("menu.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("menuBorder","Border color of menus.")),si=p("menu.foreground",{dark:ct,light:ct,hcDark:ct,hcLight:ct},x.NC("menuForeground","Foreground color of menu items.")),oi=p("menu.background",{dark:dt,light:dt,hcDark:dt,hcLight:dt},x.NC("menuBackground","Background color of menu items.")),ri=p("menu.selectionForeground",{dark:At,light:At,hcDark:At,hcLight:At},x.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),ai=p("menu.selectionBackground",{dark:Mt,light:Mt,hcDark:Mt,hcLight:Mt},x.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),li=p("menu.selectionBorder",{dark:null,light:null,hcDark:E,hcLight:E},x.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),di=p("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:N,hcLight:N},x.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),hi=p("quickInput.background",{dark:W,light:W,hcDark:W,hcLight:W},x.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ci=p("quickInput.foreground",{dark:H,light:H,hcDark:H,hcLight:H},x.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),ui=p("quickInputTitle.background",{dark:new o.Il(new o.VS(255,255,255,.105)),light:new o.Il(new o.VS(0,0,0,.06)),hcDark:"#000000",hcLight:o.Il.white},x.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),gi=p("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:o.Il.white,hcLight:"#0F4A85"},x.NC("pickerGroupForeground","Quick picker color for grouping labels.")),pi=p("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:o.Il.white,hcLight:"#0F4A85"},x.NC("pickerGroupBorder","Quick picker color for grouping borders.")),mi=p("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,x.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),fi=p("quickInputList.focusForeground",{dark:At,light:At,hcDark:At,hcLight:At},x.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),_i=p("quickInputList.focusIconForeground",{dark:Rt,light:Rt,hcDark:Rt,hcLight:Rt},x.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),vi=p("quickInputList.focusBackground",{dark:v(mi,Mt),light:v(mi,Mt),hcDark:null,hcLight:null},x.NC("quickInput.listFocusBackground","Quick picker background color for the focused item."));p("search.resultsInfoForeground",{light:L,dark:_(L,.65),hcDark:L,hcLight:L},x.NC("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),p("searchEditor.findMatchBackground",{light:_(ie,.66),dark:_(ie,.66),hcDark:ie,hcLight:ie},x.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),p("searchEditor.findMatchBorder",{light:_(ne,.66),dark:_(ne,.66),hcDark:ne,hcLight:ne},x.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},54329:(e,t,i)=>{"use strict";i.d(t,{Ks:()=>_,q5:()=>f,s_:()=>y});var n=i(53372),s=i(61542),o=i(87487),r=i(73045),a=i(39706),l=i(47624),d=i(91387),h=i(5887),c=i(97830),u=i(76322);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;r.k.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,l.HD)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,l.HD)(e.format)&&(0,l.HD)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:d.o.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${r.k.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return s}const o={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=o;const r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;r.k.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const s of n.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${r.k.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter((e=>!r.k.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n")}};function f(e,t,i,n){return m.registerIcon(e,t,i,n)}function _(){return m}u.B.add("base.contributions.icons",m),function(){const e=(0,o.u)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",b=u.B.as(c.I.JSONContribution);b.registerSchema(v,m.getIconSchema());const C=new n.pY((()=>b.notifySchemaChanged(v)),200);m.onDidChange((()=>{C.isScheduled()||C.schedule()}));const y=f("widget-close",s.l.close,(0,h.NC)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",s.l.arrowUp,(0,h.NC)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",s.l.arrowDown,(0,h.NC)("nextChangeIcon","Icon for goto next editor location.")),r.k.modify(s.l.sync,"spin"),r.k.modify(s.l.loading,"spin")},25112:(e,t,i)=>{"use strict";var n;function s(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function o(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{_T:()=>o,c3:()=>s,eL:()=>n}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(n||(n={}))},46673:(e,t,i)=>{"use strict";i.d(t,{EN:()=>d,IP:()=>c,Ic:()=>g,XE:()=>l,bB:()=>p,m6:()=>h});var n=i(39706),s=i(53186),o=i(87775),r=i(76322),a=i(25112);const l=(0,o.yh)("themeService");function d(e){return{id:e}}function h(e){switch(e){case a.eL.DARK:return"vs-dark";case a.eL.HIGH_CONTRAST_DARK:return"hc-black";case a.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const c={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}r.B.add(c.ThemingContribution,u);class p extends s.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},40938:(e,t,i)=>{"use strict";i.d(t,{Xt:()=>o,YO:()=>s,gJ:()=>r,tJ:()=>n});const n=(0,i(87775).yh)("undoRedoService");class s{constructor(e,t){this.resource=e,this.elements=t}}class o{constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}o._ID=0,o.None=new o;class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r},99818:(e,t,i)=>{"use strict";i.d(t,{A6:()=>g,c$:()=>l,eb:()=>a,ec:()=>r,md:()=>u,p$:()=>p,uT:()=>c,x:()=>m});var n=i(5887),s=i(96682),o=(i(61700),i(91387));const r=(0,i(87775).yh)("contextService");function a(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&o.o.isUri(t.uri)}function l(e){return"string"===typeof(null===e||void 0===e?void 0:e.id)&&!a(e)&&!function(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&o.o.isUri(t.configPath)}(e)}const d={id:"ext-dev"},h={id:"empty-window"};function c(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,s.EZ)(e)}:t?d:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,n.NC)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},72514:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n});const n=(0,i(87775).yh)("workspaceTrustManagementService")},72549:(e,t,i)=>{"use strict";i.d(t,{yt:()=>h,pR:()=>u,Vl:()=>c,HT:()=>l});const n=new RegExp("^[$A-Z_\\s]+$");var s=i(30586);const o={},r={};class a{static getOrCreate(e){return r[e]||(r[e]=new a(e)),r[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function l(e){const t=e.id;o[t]=e,s.Mj.register(e);const i=a.getOrCreate(t);s.Mj.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),s.Mj.onLanguage(t,(()=>{i.load().then((e=>{s.Mj.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&d(t,e.completions)}))}function d(e,t){const i=[];const o=s.Mj[e];o&&!o.modeConfiguration.completionItems||i.push(s.Mj.registerCompletionItemProvider(e,function(e,t){const i=[];for(const s in t)if(!isNaN(Number(s))){const o=`${t[s].toLowerCase()}List`;if(o in e)for(const t of e[o])i.push({label:t,filterText:n.test(t)?t.toLowerCase():t,insertText:t,kind:Number(s),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,n,s){const o=e.getWordUntilPosition(t),r={startLineNumber:t.lineNumber,startColumn:o.startColumn,endLineNumber:t.lineNumber,endColumn:o.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:r})))}}}}(t,s.Mj.CompletionItemKind))),o&&i.push(o.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),d(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new s.Q5,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const c={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},30586:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>n.languages,Q5:()=>n.Emitter,j6:()=>n.editor});var n=i(56017)},91063:(e,t,i)=>{"use strict";var n=i(72549),s=i(30586);const o="clickhouse";(0,n.HT)({id:o,extensions:[],loader:()=>i.e(3828).then(i.bind(i,43828)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const r=new n.yt(o,n.pR,n.Vl);s.Mj[o]=r;(0,n.HT)({id:"s-expression",extensions:[],loader:()=>i.e(2598).then(i.bind(i,72598))}),s.j6.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),s.j6.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(54975);(0,n.HT)({id:"yql_ansi",extensions:[],loader:()=>i.e(856).then(i.bind(i,60856)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))})},54975:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});var n=i(72549);const s="yql";(0,n.HT)({id:s,extensions:[],loader:()=>i.e(856).then(i.bind(i,60856)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},39862:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>d,default:()=>g,monaco:()=>n});var n=i(56017),s=i(34706);function o(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function r(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},a.apply(this,arguments)};function l(e){var t=e.width,i=e.height,r=e.value,l=e.defaultValue,d=e.language,h=e.theme,c=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,b=e.originalUri,C=e.modifiedUri,y=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null),x=(0,s.useRef)(null),L=o(t),k=o(i),D=(0,s.useMemo)((function(){return{width:L,height:k}}),[L,k]);return(0,s.useEffect)((function(){y.current&&(g(n),w.current=n.editor.createDiffEditor(y.current,a(a(a({},_?{extraEditorClassName:_}:{}),c),h?{theme:h}:{}),u),function(){var e=null!=r?r:l,t=null===b||void 0===b?void 0:b(n),i=null===C||void 0===C?void 0:C(n),s=t&&n.editor.getModel(t),o=i&&n.editor.getModel(i);s?(s.setValue(v),n.editor.setModelLanguage(s,d)):s=n.editor.createModel(e,d,t),o?(s.setValue(e),n.editor.setModelLanguage(o,d)):o=n.editor.createModel(e,d,i),w.current.setModel({original:s,modified:o})}(),function(){p(w.current,n);var e=w.current.getModel().modified;S.current=e.onDidChangeContent((function(t){x.current||f(e.getValue(),t)}))}())}),[]),(0,s.useEffect)((function(){w.current&&w.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),c))}),[_,c]),(0,s.useEffect)((function(){w.current&&w.current.layout()}),[t,i]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel(),t=e.original,i=e.modified;n.editor.setModelLanguage(t,d),n.editor.setModelLanguage(i,d)}}),[d]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel().modified;x.current=!0,w.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:r}]),w.current.getModifiedEditor().pushUndoStop(),x.current=!1}}),[r]),(0,s.useEffect)((function(){n.editor.setTheme(h)}),[h]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,s.useEffect)((function(){return function(){if(w.current){m(w.current,n),w.current.dispose();var e=w.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}S.current&&S.current.dispose()}}),[]),s.createElement("div",{ref:y,style:D,className:"react-monaco-editor-container"})}l.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:r,editorDidMount:r,editorWillUnmount:r,onChange:r,className:null},l.displayName="MonacoDiffEditor";const d=l;var h=function(){return h=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},h.apply(this,arguments)},c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]])}return i};function u(e){var t=e.width,i=e.height,r=e.value,a=e.defaultValue,l=e.language,d=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,b=e.uri,C=(0,s.useRef)(null),y=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null),x=o(t),L=o(i),k=(0,s.useMemo)((function(){return{width:x,height:L}}),[x,L]);return(0,s.useEffect)((function(){var e=null!==r?r:a;if(C.current){var t=h(h({},u),p(n)||{}),i=null===b||void 0===b?void 0:b(n),s=i&&n.editor.getModel(i);s?(s.setValue(e),n.editor.setModelLanguage(s,l)):s=n.editor.createModel(e,l,i),y.current=n.editor.create(C.current,h(h(h({model:s},v?{extraEditorClassName:v}:{}),t),d?{theme:d}:{}),g),m(y.current,n),w.current=y.current.onDidChangeModelContent((function(e){S.current||_(y.current.getValue(),e)}))}}),[]),(0,s.useEffect)((function(){if(y.current){if(r===y.current.getValue())return;var e=y.current.getModel();S.current=!0,y.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:r}],void 0),y.current.pushUndoStop(),S.current=!1}}),[r]),(0,s.useEffect)((function(){if(y.current){var e=y.current.getModel();n.editor.setModelLanguage(e,l)}}),[l]),(0,s.useEffect)((function(){if(y.current){u.model;var e=c(u,["model"]);y.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,s.useEffect)((function(){y.current&&y.current.layout()}),[t,i]),(0,s.useEffect)((function(){n.editor.setTheme(d)}),[d]),(0,s.useEffect)((function(){return function(){y.current&&(f(y.current,n),y.current.dispose()),w.current&&w.current.dispose()}}),[]),s.createElement("div",{ref:C,style:k,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:r,editorDidMount:r,editorWillUnmount:r,onChange:r,className:null},u.displayName="MonacoEditor";const g=u},28206:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});var n=i(34706),s=i(21035),o=i.n(s),r="undefined"!==typeof window?window:null,a=null===r,l=a?void 0:r.document,d="addEventListener",h="removeEventListener",c="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},b=function(e){if(v(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},C=function(e,t,i){var n=e[t];return void 0!==n?n:i},y=function(e,t,i,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(i){if("start"===n)return 0;if("center"===n)return e/2}return e},w=function(e,t){var i=l.createElement("div");return i.className="gutter gutter-"+t,i},S=function(e,t,i){var n={};return v(t)?n[e]=t:n[e]=_+"("+t+"% - "+i+"px)",n},x=function(e,t){var i;return(i={})[e]=t+"px",i};const L=function(e,t){if(void 0===t&&(t={}),a)return{};var i,n,s,o,_,v,L=e;Array.from&&(L=Array.from(L));var k=b(L[0]).parentNode,D=getComputedStyle?getComputedStyle(k):null,N=D?D.flexDirection:null,E=C(t,"sizes")||L.map((function(){return 100/L.length})),T=C(t,"minSize",100),I=Array.isArray(T)?T:L.map((function(){return T})),M=C(t,"maxSize",1/0),A=Array.isArray(M)?M:L.map((function(){return M})),R=C(t,"expandToMin",!1),O=C(t,"gutterSize",10),P=C(t,"gutterAlign","center"),F=C(t,"snapOffset",30),B=Array.isArray(F)?F:L.map((function(){return F})),V=C(t,"dragInterval",1),W=C(t,"direction",m),H=C(t,"cursor",W===m?"col-resize":"row-resize"),z=C(t,"gutter",w),j=C(t,"elementStyle",S),U=C(t,"gutterStyle",x);function K(e,t,n,s){var o=j(i,t,n,s);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function q(){return v.map((function(e){return e.size}))}function $(e){return"touches"in e?e.touches[0][n]:e[n]}function G(e){var t=v[this.a],i=v[this.b],n=t.size+i.size;t.size=e/this.size*n,i.size=n-e/this.size*n,K(t.element,t.size,this[g],t.i),K(i.element,i.size,this[p],i.i)}function Y(e){var i,n=v[this.a],s=v[this.b];this.dragging&&(i=$(e)-this.start+(this[g]-this.dragOffset),V>1&&(i=Math.round(i/V)*V),i<=n.minSize+n.snapOffset+this[g]?i=n.minSize+this[g]:i>=this.size-(s.minSize+s.snapOffset+this[p])&&(i=this.size-(s.minSize+this[p])),i>=n.maxSize-n.snapOffset+this[g]?i=n.maxSize+this[g]:i<=this.size-(s.maxSize-s.snapOffset+this[p])&&(i=this.size-(s.maxSize+this[p])),G.call(this,i),C(t,"onDrag",f)(q()))}function Z(){var e=v[this.a].element,t=v[this.b].element,n=e[c](),r=t[c]();this.size=n[i]+r[i]+this[g]+this[p],this.start=n[s],this.end=n[o]}function Q(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=W===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(k);if(null===t)return e;if(I.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,n=[],s=e.map((function(s,o){var r=t*s/100,a=y(O,0===o,o===e.length-1,P),l=I[o]+a;return r<l?(i+=l-r,n.push(0),l):(n.push(r-l),r)}));return 0===i?e:s.map((function(e,s){var o=e;if(i>0&&n[s]-i>0){var r=Math.min(i,n[s]-i);i-=r,o=e-r}return o/t*100}))}function X(){var e=this,i=v[e.a].element,n=v[e.b].element;e.dragging&&C(t,"onDragEnd",f)(q()),e.dragging=!1,r[h]("mouseup",e.stop),r[h]("touchend",e.stop),r[h]("touchcancel",e.stop),r[h]("mousemove",e.move),r[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),n[h]("selectstart",f),n[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,n=v[i.a].element,s=v[i.b].element;i.dragging||C(t,"onDragStart",f)(q()),e.preventDefault(),i.dragging=!0,i.move=Y.bind(i),i.stop=X.bind(i),r[d]("mouseup",i.stop),r[d]("touchend",i.stop),r[d]("touchcancel",i.stop),r[d]("mousemove",i.move),r[d]("touchmove",i.move),n[d]("selectstart",f),n[d]("dragstart",f),s[d]("selectstart",f),s[d]("dragstart",f),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",i.gutter.style.cursor=H,i.parent.style.cursor=H,l.body.style.cursor=H,Z.call(i),i.dragOffset=$(e)-i.end}}W===m?(i="width",n="clientX",s="left",o="right",_="clientWidth"):"vertical"===W&&(i="height",n="clientY",s="top",o="bottom",_="clientHeight"),E=Q(E);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Z.call(i);var n=t?i.size-e.minSize-i[p]:e.minSize+i[g];G.call(i,n)}return(v=L.map((function(e,t){var n,s={element:b(e),size:E[t],minSize:I[t],maxSize:A[t],snapOffset:B[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:W,parent:k})[g]=y(O,t-1===0,!1,P),n[p]=y(O,!1,t===L.length-1,P),"row-reverse"===N||"column-reverse"===N)){var o=n.a;n.a=n.b,n.b=o}if(t>0){var r=z(t,W,s.element);!function(e,t,n){var s=U(i,t,n);Object.keys(s).forEach((function(t){e.style[t]=s[t]}))}(r,O,t),n[u]=J.bind(n),r[d]("mousedown",n[u]),r[d]("touchstart",n[u]),k.insertBefore(r,s.element),n.gutter=r}return K(s.element,s.size,y(O,0===t,t===L.length-1,P),t),t>0&&ee.push(n),s}))).forEach((function(e){var t=e.element[c]()[i];t<e.minSize&&(R?te(e):e.minSize=t)})),{setSizes:function(e){var t=Q(e);t.forEach((function(e,i){if(i>0){var n=ee[i-1],s=v[n.a],o=v[n.b];s.size=t[i-1],o.size=e,K(s.element,s.size,n[g],s.i),K(o.element,o.size,n[p],o.i)}}))},getSizes:q,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[h]("mousedown",n[u]),n.gutter[h]("touchstart",n[u])),!0!==e){var s=j(i,n.a.size,n[g]);Object.keys(s).forEach((function(e){v[n.a].element.style[e]="",v[n.b].element.style[e]=""}))}}))},parent:k,pairs:ee}};function k(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(i[n]=e[n]);return i}var D=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=k(e,["children","gutter"]);i.gutter=function(e,i){var n;return t?n=t(e,i):(n=document.createElement("div")).className="gutter gutter-"+i,n.__isSplitGutter=!0,n},this.split=L(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var n=i.minSize,s=i.sizes,o=i.collapsed,r=k(i,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,d=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(n)&&Array.isArray(a)){var c=!1;n.forEach((function(e,t){c=c||e!==a[t]})),h=h||c}else h=!(!Array.isArray(n)&&!Array.isArray(a))||(h||n!==a);if(h)r.minSize=n,r.sizes=s||this.split.getSizes(),this.split.destroy(!0,!0),r.gutter=function(e,t,i){return i.previousSibling},this.split=L(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),r);else if(s){var u=!1;s.forEach((function(e,t){u=u||e!==l[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==d||h)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,s=k(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return n.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},s),i)},t}(n.Component);D.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},D.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const N=D},40145:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});const n={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var s,o=new Uint8Array(16);function r(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}for(var a=[],l=0;l<256;++l)a.push((l+256).toString(16).slice(1));function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(n.randomUUID&&!t&&!e)return n.randomUUID();var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=s[o];return t}return d(s)}},91517:(e,t,i)=>{"use strict";i.d(t,{f:()=>W});var n=i(10161),s=i(34706),o=i(75868),r=i.n(o),a=i(67303),l=i(83202),d=i(3581);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),c=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,d.e)({en:h,ru:c},"ydb-navigation-tree"),g=(0,a.G)("ydb-navigation-tree-view-empty");function p(e){let{level:t}=e;return(0,n.jsx)(l.L,{name:(0,n.jsx)("span",{className:g(),children:u("label_empty")}),level:t})}const m=(0,a.G)("ydb-navigation-tree-view-error");function f(e){let{level:t}=e;return(0,n.jsx)(l.L,{name:(0,n.jsx)("span",{className:m(),children:u("label_error")}),level:t})}var _=i(46640);const v=(0,a.G)("ydb-navigation-tree-view-loader");function b(e){let{level:t}=e;return(0,n.jsx)(l.L,{name:(0,n.jsx)("div",{className:v(),children:(0,n.jsx)(_.y,{size:"xs"})}),level:t})}function C(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function y(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function w(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function S(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function x(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function L(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function k(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function D(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function N(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function E(e){return(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,n.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,n.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,n.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function T(e){return(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function I(e){return"status"in e}function M(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=e[t];if(s&&(i(s,n,t,e),!s.collapsed))for(const o of s.children)M(e,`${t}/${o}`,i,n+1)}var A;function R(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var i,n;switch(t.type){case A.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case A.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case A.FinishLoading:{const s=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){s[t.payload.path].children=t.payload.data.map((e=>{let{name:t}=e;return t}));for(const o of t.payload.data){const r=`${t.payload.path}/${o.name}`,{activePath:a=""}=t.payload,l=null!==(n=null===(i=e[r])||void 0===i?void 0:i.collapsed)&&void 0!==n?n:!a.startsWith(`${r}/`);s[r]=R(Object.assign(Object.assign({},o),{collapsed:l,path:r}))}}return s}case A.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case A.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function P(e,t){const i=[];return M(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const n=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);n&&i.push(n)})),i}function F(e,t){switch(e){case"async_replication":return(0,n.jsx)(C,{height:16});case"database":return(0,n.jsx)(w,{height:14});case"directory":return t?(0,n.jsx)(L,{height:16}):(0,n.jsx)(k,{height:16});case"index":return(0,n.jsx)(D,{height:16});case"table":case"index_table":return(0,n.jsx)(N,{height:16});case"column_table":return(0,n.jsx)(y,{height:16});case"stream":case"topic":return(0,n.jsx)(E,{height:16});case"external_table":return(0,n.jsx)(x,{height:16});case"external_data_source":return(0,n.jsx)(S,{height:16});case"view":return(0,n.jsx)(T,{height:16});default:return null}}function B(e){let{path:t,fetchPath:i,activePath:o,state:r,level:a,dispatch:d,children:h,onActivate:c,getActions:u,renderAdditionalNodeElements:g,cache:p}=e;const m=r[t];s.useEffect((()=>{m.collapsed?p||d({type:A.ResetNode,payload:{path:t}}):m.loaded||m.loading||(d({type:A.StartLoading,payload:{path:t}}),i(t).then((e=>{d({type:A.FinishLoading,payload:{path:t,activePath:o,data:e}})})).catch((e=>{d({type:A.ErrorLoading,payload:{path:t,error:e}})})))}),[m.collapsed]);const f=s.useCallback((()=>{c&&c(t)}),[t,c]),_=s.useCallback((()=>{d({type:A.ToggleCollapsed,payload:{path:t}})}),[d,t]),v=s.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),b=s.useMemo((()=>null===u||void 0===u?void 0:u(m.path,m.type)),[u,m]);return(0,n.jsx)(l.L,{name:m.name,icon:F(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===o,actions:b,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,level:a,children:h})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(A||(A={}));const V=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,n.jsx)(b,{level:e.level},t):"error"===e.status?(0,n.jsx)(f,{level:e.level},t):(0,n.jsx)(p,{level:e.level},t)};function W(e){let{rootState:t,fetchPath:i,getActions:o,renderAdditionalNodeElements:a,activePath:l,onActivePathUpdate:d,cache:h=!0,virtualize:c=!1}=e;const[u,g]=s.useReducer(O,{[t.path]:R(t)}),p=s.useMemo((()=>P(u,t.path)),[t.path,u]),m=e=>(0,n.jsx)(B,{state:u,path:e.path,activePath:l,fetchPath:i,dispatch:g,onActivate:d,getActions:o,renderAdditionalNodeElements:a,cache:h,level:e.level},e.path);return c?(0,n.jsx)(r(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return I(t)?V(t):m(t)}}):(0,n.jsx)(s.Fragment,{children:p.map((e=>I(e)?V(e):m(e)))})}},83202:(e,t,i)=>{"use strict";i.d(t,{L:()=>d});var n=i(10161),s=i(34706),o=i(36413),r=i(67303);const a="--ydb-tree-view-level",l=(0,r.G)("ydb-tree-view");function d(e){let{children:t,name:i,title:r,icon:d,collapsed:h=!0,active:c=!1,onClick:u,onArrowClick:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}=e;const v=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),b=g||u;let C="tree-view_arrow",y="tree-view_children";return h&&(C+=" tree-view_arrow-collapsed",y+=" tree-view_children-collapsed"),(0,n.jsx)("div",{className:l(),style:{[a]:_},children:(0,n.jsxs)("div",{className:"tree-view",children:[(0,n.jsxs)("div",{className:`tree-view_item ${l("item",{active:c})}`,onClick:v,children:[(0,n.jsx)("button",{type:"button",className:`${C} ${l("arrow",{collapsed:h,hidden:!p})}`,disabled:!b,onClick:b}),(0,n.jsxs)("div",{className:l("content"),children:[d&&(0,n.jsx)("div",{className:l("icon"),children:d}),(0,n.jsx)("div",{className:l("text"),title:r,children:i}),m&&m.length>0&&(0,n.jsxs)("div",{className:l("actions"),children:[f,(0,n.jsx)(o.h,{defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,n.jsx)("div",{className:`${y} ${l("container",{collapsed:h})}`,children:h?null:t})]})})}},67303:(e,t,i)=>{"use strict";i.d(t,{G:()=>n});const n=(0,i(95936).withNaming)({e:"__",m:"_"})},4025:()=>{},69850:()=>{},40753:()=>{},32416:()=>{},25219:()=>{},94941:(e,t,i)=>{"use strict";i.d(t,{F:()=>d});var n=i(55247);const s=(e,t,i)=>{if(e&&"reportValidity"in e){const s=(0,n.U2)(i,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},o=(e,t)=>{for(const i in t.fields){const n=t.fields[i];n&&n.ref&&"reportValidity"in n.ref?s(n.ref,i,e):n.refs&&n.refs.forEach((t=>s(t,i,e)))}},r=(e,t)=>{t.shouldUseNativeValidation&&o(e,t);const i={};for(const s in e){const o=(0,n.U2)(t.fields,s),r=Object.assign(e[s]||{},{ref:o&&o.ref});if(a(t.names||Object.keys(e),s)){const e=Object.assign({},(0,n.U2)(i,s));(0,n.t8)(e,"root",r),(0,n.t8)(i,s,e)}else(0,n.t8)(i,s,r)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var l=function(e,t){for(var i={};e.length;){var s=e[0],o=s.code,r=s.message,a=s.path.join(".");if(!i[a])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];i[a]={message:l.message,type:l.code}}else i[a]={message:r,type:o};if("unionErrors"in s&&s.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var d=i[a].types,h=d&&d[s.code];i[a]=(0,n.KN)(a,t,i,o,h?[].concat(h,s.message):s.message)}e.shift()}return i},d=function(e,t,i){return void 0===i&&(i={}),function(n,s,a){try{return Promise.resolve(function(s,r){try{var l=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](n,t)).then((function(e){return a.shouldUseNativeValidation&&o({},a),{errors:{},values:i.raw?n:e}}))}catch(d){return r(d)}return l&&l.then?l.then(void 0,r):l}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:r(l(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(d){return Promise.reject(d)}}}},62105:(e,t,i)=>{"use strict";i.d(t,{Vi:()=>E});var n={grad:.9,turn:360,rad:360/(2*Math.PI)},s=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:r(e.r,0,255),g:r(e.g,0,255),b:r(e.b,0,255),a:r(e.a)}},d=function(e){return{r:o(e.r),g:o(e.g),b:o(e.b),a:o(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,c=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,n=e.b,s=e.a,o=Math.max(t,i,n),r=o-Math.min(t,i,n),a=r?o===t?(i-n)/r:o===i?2+(n-t)/r:4+(t-i)/r:0;return{h:60*(a<0?a+6:a),s:o?r/o*100:0,v:o/255*100,a:s}},g=function(e){var t=e.h,i=e.s,n=e.v,s=e.a;t=t/360*6,i/=100,n/=100;var o=Math.floor(t),r=n*(1-i),a=n*(1-(t-o)*i),l=n*(1-(1-t+o)*i),d=o%6;return{r:255*[n,a,r,r,l,n][d],g:255*[l,n,n,a,r,r][d],b:255*[r,r,l,n,n,a][d],a:s}},p=function(e){return{h:a(e.h),s:r(e.s,0,100),l:r(e.l,0,100),a:r(e.a)}},m=function(e){return{h:o(e.h),s:o(e.s),l:o(e.l),a:o(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((n=t.l)<50?n:100-n)/100)>0?2*i/(n+i)*100:0,v:n+i,a:t.a}));var t,i,n},_=function(e){return{h:(t=u(e)).h,s:(s=(200-(i=t.s))*(n=t.v)/100)>0&&s<200?i*n/100/(s<=100?s:200-s)*100:0,l:s/2,a:t.a};var t,i,n,s},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?o(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?o(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=C.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||b.exec(e);if(!t)return null;var i,s,o=p({h:(i=t[1],s=t[2],void 0===s&&(s="deg"),Number(i)*(n[s]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(o)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,n=e.b,o=e.a,r=void 0===o?1:o;return s(t)&&s(i)&&s(n)?l({r:Number(t),g:Number(i),b:Number(n),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,i=e.s,n=e.l,o=e.a,r=void 0===o?1:o;if(!s(t)||!s(i)||!s(n))return null;var a=p({h:Number(t),s:Number(i),l:Number(n),a:Number(r)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,n=e.v,o=e.a,l=void 0===o?1:o;if(!s(t)||!s(i)||!s(n))return null;var d=function(e){return{h:a(e.h),s:r(e.s,0,100),v:r(e.v,0,100),a:r(e.a)}}({h:Number(t),s:Number(i),v:Number(n),a:Number(l)});return g(d)},"hsv"]]},S=function(e,t){for(var i=0;i<t.length;i++){var n=t[i][0](e);if(n)return[n,t[i][1]]}return[null,void 0]},x=function(e){return"string"==typeof e?S(e.trim(),w.string):"object"==typeof e&&null!==e?S(e,w.object):[null,void 0]},L=function(e,t){var i=_(e);return{h:i.h,s:r(i.s+100*t,0,100),l:i.l,a:i.a}},k=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},D=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:r(i.l+100*t,0,100),a:i.a}},N=function(){function e(e){this.parsed=x(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return o(k(this.rgba),2)},e.prototype.isDark=function(){return k(this.rgba)<.5},e.prototype.isLight=function(){return k(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=d(this.rgba)).r,i=e.g,n=e.b,r=(s=e.a)<1?c(o(255*s)):"","#"+c(t)+c(i)+c(n)+r;var e,t,i,n,s,r},e.prototype.toRgb=function(){return d(this.rgba)},e.prototype.toRgbString=function(){return t=(e=d(this.rgba)).r,i=e.g,n=e.b,(s=e.a)<1?"rgba("+t+", "+i+", "+n+", "+s+")":"rgb("+t+", "+i+", "+n+")";var e,t,i,n,s},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,n=e.l,(s=e.a)<1?"hsla("+t+", "+i+"%, "+n+"%, "+s+")":"hsl("+t+", "+i+"%, "+n+"%)";var e,t,i,n,s},e.prototype.toHsv=function(){return e=u(this.rgba),{h:o(e.h),s:o(e.s),v:o(e.v),a:o(e.a,3)};var e},e.prototype.invert=function(){return E({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),E(L(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),E(L(this.rgba,-e))},e.prototype.grayscale=function(){return E(L(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),E(D(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),E(D(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?E({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):o(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?E({h:e,s:t.s,l:t.l,a:t.a}):o(t.h)},e.prototype.isEqual=function(e){return this.toHex()===E(e).toHex()},e}(),E=function(e){return e instanceof N?e:new N(e)}},55247:(e,t,i)=>{"use strict";i.d(t,{KN:()=>P,Qr:()=>O,U2:()=>f,cI:()=>we,t8:()=>C});var n=i(34706),s=e=>"checkbox"===e.type,o=e=>e instanceof Date,r=e=>null==e;const a=e=>"object"===typeof e;var l=e=>!r(e)&&!Array.isArray(e)&&a(e)&&!o(e),d=e=>l(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),c=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||e instanceof FileList)||!i&&!l(e))return e;if(t=i?[]:{},i||c(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!l(e))return i;const n=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>r(e)?e:e[t]),e);return m(n)||n===e?m(e[t])?i:e[t]:n},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),b=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,t,i)=>{let n=-1;const s=v(t)?[t]:b(t),o=s.length,r=o-1;for(;++n<o;){const t=s[n];let o=i;if(n!==r){const i=e[t];o=l(i)||Array.isArray(i)?i:isNaN(+s[n+1])?{}:[]}if("__proto__"===t)return;e[t]=o,e=e[t]}return e};const y={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},w={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},x=n.createContext(null),L=()=>n.useContext(x);var k=function(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const s=o;return t._proxyFormState[s]!==w.all&&(t._proxyFormState[s]=!n||w.all),i&&(i[s]=!0),e[s]}});return s},D=e=>l(e)&&!Object.keys(e).length,N=(e,t,i,n)=>{i(e);const{name:s,...o}=e;return D(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||w.all)))},E=e=>Array.isArray(e)?e:[e],T=(e,t,i)=>!e||!t||e===t||E(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function I(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var M=e=>"string"===typeof e,A=(e,t,i,n,s)=>M(e)?(n&&t.watch.add(e),f(i,e,s)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),f(i,e)))):(n&&(t.watchAll=!0),i);function R(e){const t=L(),{name:i,disabled:s,control:o=t.control,shouldUnregister:r}=e,a=h(o._names.array,i),l=function(e){const t=L(),{control:i=t.control,name:s,defaultValue:o,disabled:r,exact:a}=e||{},l=n.useRef(s);l.current=s,I({disabled:r,subject:i._subjects.values,next:e=>{T(l.current,e.name,a)&&h(g(A(l.current,i._names,e.values||i._formValues,!1,o)))}});const[d,h]=n.useState(i._getWatch(s,o));return n.useEffect((()=>i._removeUnmounted())),d}({control:o,name:i,defaultValue:f(o._formValues,i,f(o._defaultValues,i,e.defaultValue)),exact:!0}),c=function(e){const t=L(),{control:i=t.control,disabled:s,name:o,exact:r}=e||{},[a,l]=n.useState(i._formState),d=n.useRef(!0),h=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=n.useRef(o);return c.current=o,I({disabled:s,next:e=>d.current&&T(c.current,e.name,r)&&N(e,h.current,i._updateFormState)&&l({...i._formState,...e}),subject:i._subjects.state}),n.useEffect((()=>(d.current=!0,h.current.isValid&&i._updateValid(!0),()=>{d.current=!1})),[i]),k(a,i,h.current,!1)}({control:o,name:i}),u=n.useRef(o.register(i,{...e.rules,value:l,..._(e.disabled)?{disabled:e.disabled}:{}}));return n.useEffect((()=>{const e=o._options.shouldUnregister||r,t=(e,t)=>{const i=f(o._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(o._options.defaultValues,i));C(o._defaultValues,i,e),m(f(o._formValues,i))&&C(o._formValues,i,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(i):t(i,!1)}}),[i,o,a,r]),n.useEffect((()=>{f(o._fields,i)&&o._updateDisabledField({disabled:s,fields:o._fields,name:i,value:f(o._fields,i)._f.value})}),[s,i,o]),{field:{name:i,value:l,..._(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:n.useCallback((e=>u.current.onChange({target:{value:d(e),name:i},type:y.CHANGE})),[i]),onBlur:n.useCallback((()=>u.current.onBlur({target:{value:f(o._formValues,i),name:i},type:y.BLUR})),[i,o]),ref:e=>{const t=f(o._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(c.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(c.validatingFields,i)},error:{enumerable:!0,get:()=>f(c.errors,i)}})}}const O=e=>e.render(R(e));var P=(e,t,i,n,s)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[n]:s||!0}}:{},F=e=>({isOnSubmit:!e||e===w.onSubmit,isOnBlur:e===w.onBlur,isOnChange:e===w.onChange,isOnAll:e===w.all,isOnTouch:e===w.onTouched}),B=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const V=(e,t,i,n)=>{for(const s of i||Object.keys(e)){const i=f(e,s);if(i){const{_f:e,...o}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],s)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;V(o,t)}else l(o)&&V(o,t)}}};var W=(e,t,i)=>{const n=E(f(e,i));return C(n,"root",t[i]),C(e,i,n),e},H=e=>"file"===e.type,z=e=>"function"===typeof e,j=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},U=e=>M(e),K=e=>"radio"===e.type,q=e=>e instanceof RegExp;const $={value:!1,isValid:!1},G={value:!0,isValid:!0};var Y=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?G:{value:e[0].value,isValid:!0}:G:$}return $};const Z={isValid:!1,value:null};var Q=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Z):Z;function X(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(U(e)||Array.isArray(e)&&e.every(U)||_(e)&&!e)return{type:i,message:U(e)?e:"",ref:t}}var J=e=>l(e)&&!q(e)?e:{value:e,message:""},ee=async(e,t,i,n,o)=>{const{ref:a,refs:d,required:h,maxLength:c,minLength:u,min:g,max:p,pattern:v,validate:b,name:C,valueAsNumber:y,mount:w,disabled:x}=e._f,L=f(t,C);if(!w||x)return{};const k=d?d[0]:a,N=e=>{n&&k.reportValidity&&(k.setCustomValidity(_(e)?"":e||""),k.reportValidity())},E={},T=K(a),I=s(a),A=T||I,R=(y||H(a))&&m(a.value)&&m(L)||j(a)&&""===a.value||""===L||Array.isArray(L)&&!L.length,O=P.bind(null,C,i,E),F=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S.maxLength,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:S.minLength;const o=e?t:i;E[C]={type:e?n:s,message:o,ref:a,...O(e?n:s,o)}};if(o?!Array.isArray(L)||!L.length:h&&(!A&&(R||r(L))||_(L)&&!L||I&&!Y(d).isValid||T&&!Q(d).isValid)){const{value:e,message:t}=U(h)?{value:!!h,message:h}:J(h);if(e&&(E[C]={type:S.required,message:t,ref:k,...O(S.required,t)},!i))return N(t),E}if(!R&&(!r(g)||!r(p))){let e,t;const n=J(p),s=J(g);if(r(L)||isNaN(L)){const i=a.valueAsDate||new Date(L),o=e=>new Date((new Date).toDateString()+" "+e),r="time"==a.type,l="week"==a.type;M(n.value)&&L&&(e=r?o(L)>o(n.value):l?L>n.value:i>new Date(n.value)),M(s.value)&&L&&(t=r?o(L)<o(s.value):l?L<s.value:i<new Date(s.value))}else{const i=a.valueAsNumber||(L?+L:L);r(n.value)||(e=i>n.value),r(s.value)||(t=i<s.value)}if((e||t)&&(F(!!e,n.message,s.message,S.max,S.min),!i))return N(E[C].message),E}if((c||u)&&!R&&(M(L)||o&&Array.isArray(L))){const e=J(c),t=J(u),n=!r(e.value)&&L.length>+e.value,s=!r(t.value)&&L.length<+t.value;if((n||s)&&(F(n,e.message,t.message),!i))return N(E[C].message),E}if(v&&!R&&M(L)){const{value:e,message:t}=J(v);if(q(e)&&!L.match(e)&&(E[C]={type:S.pattern,message:t,ref:a,...O(S.pattern,t)},!i))return N(t),E}if(b)if(z(b)){const e=X(await b(L,t),k);if(e&&(E[C]={...e,...O(S.validate,e.message)},!i))return N(e.message),E}else if(l(b)){let e={};for(const n in b){if(!D(e)&&!i)break;const s=X(await b[n](L,t),k,n);s&&(e={...s,...O(n,s.message)},N(s.message),i&&(E[C]=e))}if(!D(e)&&(E[C]={ref:k,...e},!i))return E}return N(!0),E};function te(e,t){const i=Array.isArray(t)?t:v(t)?[t]:b(t),n=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let n=0;for(;n<i;)e=m(e)?n++:e[t[n++]];return e}(e,i),s=i.length-1,o=i[s];return n&&delete n[o],0!==s&&(l(n)&&D(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(n))&&te(e,i.slice(0,-1)),e}var ie=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},ne=e=>r(e)||!a(e);function se(e,t){if(ne(e)||ne(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const s of i){const i=e[s];if(!n.includes(s))return!1;if("ref"!==s){const e=t[s];if(o(i)&&o(e)||l(i)&&l(e)||Array.isArray(i)&&Array.isArray(e)?!se(i,e):i!==e)return!1}}return!0}var oe=e=>"select-multiple"===e.type,re=e=>K(e)||s(e),ae=e=>j(e)&&e.isConnected,le=e=>{for(const t in e)if(z(e[t]))return!0;return!1};function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Array.isArray(e);if(l(e)||i)for(const n in e)Array.isArray(e[n])||l(e[n])&&!le(e[n])?(t[n]=Array.isArray(e[n])?[]:{},de(e[n],t[n])):r(e[n])||(t[n]=!0);return t}function he(e,t,i){const n=Array.isArray(e);if(l(e)||n)for(const s in e)Array.isArray(e[s])||l(e[s])&&!le(e[s])?m(t)||ne(i[s])?i[s]=Array.isArray(e[s])?de(e[s],[]):{...de(e[s])}:he(e[s],r(t)?{}:t[s],i[s]):i[s]=!se(e[s],t[s]);return i}var ce=(e,t)=>he(e,t,de(t)),ue=(e,t)=>{let{valueAsNumber:i,valueAsDate:n,setValueAs:s}=t;return m(e)?e:i?""===e?NaN:e?+e:e:n&&M(e)?new Date(e):s?s(e):e};function ge(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return H(t)?t.files:K(t)?Q(e.refs).value:oe(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):s(t)?Y(e.refs).value:ue(m(t.value)?e.ref.value:t.value,e)}var pe=(e,t,i,n)=>{const s={};for(const o of e){const e=f(t,o);e&&C(s,o,e._f)}return{criteriaMode:i,names:[...e],fields:s,shouldUseNativeValidation:n}},me=e=>m(e)?e:q(e)?e.source:l(e)?q(e.value)?e.value.source:e.value:e,fe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _e(e,t,i){const n=f(e,i);if(n||v(i))return{error:n,name:i};const s=i.split(".");for(;s.length;){const n=s.join("."),o=f(t,n),r=f(e,n);if(o&&!Array.isArray(o)&&i!==n)return{name:i};if(r&&r.type)return{name:n,error:r};s.pop()}return{name:i}}var ve=(e,t,i,n,s)=>!s.isOnAll&&(!i&&s.isOnTouch?!(t||e):(i?n.isOnBlur:s.isOnBlur)?!e:!(i?n.isOnChange:s.isOnChange)||e),be=(e,t)=>!p(f(e,t)).length&&te(e,t);const Ce={mode:w.onSubmit,reValidateMode:w.onChange,shouldFocusError:!0};function ye(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={...Ce,...t},n={submitCount:0,isDirty:!1,isLoading:z(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},c=(l(i.defaultValues)||l(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(c),b={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},x=0;const L={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},k={values:ie(),array:ie(),state:ie()},N=F(i.mode),T=F(i.reValidateMode),I=i.criteriaMode===w.all,R=async e=>{if(L.isValid||e){const e=i.resolver?D((await q()).errors):await G(a,!0);e!==n.isValid&&k.state.next({isValid:e})}},O=(e,t)=>{(L.isValidating||L.validatingFields)&&((e||Array.from(S.mount)).forEach((e=>{e&&(t?C(n.validatingFields,e,t):te(n.validatingFields,e))})),k.state.next({validatingFields:n.validatingFields,isValidating:!D(n.validatingFields)}))},P=(e,t,i,n)=>{const s=f(a,e);if(s){const o=f(v,e,m(i)?f(c,e):i);m(o)||n&&n.defaultChecked||t?C(v,e,t?o:ge(s._f)):Q(e,o),b.mount&&R()}},U=(e,t,i,s,o)=>{let r=!1,l=!1;const d={name:e},h=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!i||s){L.isDirty&&(l=n.isDirty,n.isDirty=d.isDirty=Y(),r=l!==d.isDirty);const i=h||se(f(c,e),t);l=!(h||!f(n.dirtyFields,e)),i||h?te(n.dirtyFields,e):C(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,r=r||L.dirtyFields&&l!==!i}if(i){const t=f(n.touchedFields,e);t||(C(n.touchedFields,e,i),d.touchedFields=n.touchedFields,r=r||L.touchedFields&&t!==i)}return r&&o&&k.state.next(d),r?d:{}},K=(i,s,o,r)=>{const a=f(n.errors,i),l=L.isValid&&_(s)&&n.isValid!==s;var d;if(t.delayError&&o?(d=()=>((e,t)=>{C(n.errors,e,t),k.state.next({errors:n.errors})})(i,o),e=e=>{clearTimeout(x),x=setTimeout(d,e)},e(t.delayError)):(clearTimeout(x),e=null,o?C(n.errors,i,o):te(n.errors,i)),(o?!se(a,o):a)||!D(r)||l){const e={...r,...l&&_(s)?{isValid:s}:{},errors:n.errors,name:i};n={...n,...e},k.state.next(e)}},q=async e=>{O(e,!0);const t=await i.resolver(v,i.context,pe(e||S.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return O(e),t},$=async e=>{const{errors:t}=await q(e);if(e)for(const i of e){const e=f(t,i);e?C(n.errors,i,e):te(n.errors,i)}else n.errors=t;return t},G=async function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const o in e){const r=e[o];if(r){const{_f:e,...a}=r;if(e){const a=S.array.has(e.name);O([o],!0);const l=await ee(r,v,I,i.shouldUseNativeValidation&&!t,a);if(O([o]),l[e.name]&&(s.valid=!1,t))break;!t&&(f(l,e.name)?a?W(n.errors,l,e.name):C(n.errors,e.name,l[e.name]):te(n.errors,e.name))}a&&await G(a,t,s)}}return s.valid},Y=(e,t)=>(e&&t&&C(v,e,t),!se(ye(),c)),Z=(e,t,i)=>A(e,S,{...b.mount?v:m(t)?c:M(e)?{[e]:t}:t},i,t),Q=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=f(a,e);let o=t;if(n){const i=n._f;i&&(!i.disabled&&C(v,e,ue(t,i)),o=j(i.ref)&&r(t)?"":t,oe(i.ref)?[...i.ref.options].forEach((e=>e.selected=o.includes(e.value))):i.refs?s(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):i.refs[0]&&(i.refs[0].checked=!!o):i.refs.forEach((e=>e.checked=e.value===o)):H(i.ref)?i.ref.value="":(i.ref.value=o,i.ref.type||k.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&U(e,o,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&he(e)},X=(e,t,i)=>{for(const n in t){const s=t[n],r=`${e}.${n}`,l=f(a,r);!S.array.has(e)&&ne(s)&&(!l||l._f)||o(s)?Q(r,s,i):X(r,s,i)}},J=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=f(a,e),o=S.array.has(e),l=g(t);C(v,e,l),o?(k.array.next({name:e,values:{...v}}),(L.isDirty||L.dirtyFields)&&i.shouldDirty&&k.state.next({name:e,dirtyFields:ce(c,v),isDirty:Y(e,l)})):!s||s._f||r(l)?Q(e,l,i):X(e,l,i),B(e,S)&&k.state.next({...n}),k.values.next({name:b.mount?e:void 0,values:{...v}})},le=async t=>{b.mount=!0;const s=t.target;let o=s.name,r=!0;const l=f(a,o),h=e=>{r=Number.isNaN(e)||e===f(v,o,e)};if(l){let c,u;const g=s.type?ge(l._f):d(t),p=t.type===y.BLUR||t.type===y.FOCUS_OUT,m=!fe(l._f)&&!i.resolver&&!f(n.errors,o)&&!l._f.deps||ve(p,f(n.touchedFields,o),n.isSubmitted,T,N),_=B(o,S,p);C(v,o,g),p?(l._f.onBlur&&l._f.onBlur(t),e&&e(0)):l._f.onChange&&l._f.onChange(t);const b=U(o,g,p,!1),w=!D(b)||_;if(!p&&k.values.next({name:o,type:t.type,values:{...v}}),m)return L.isValid&&R(),w&&k.state.next({name:o,..._?{}:b});if(!p&&_&&k.state.next({...n}),i.resolver){const{errors:e}=await q([o]);if(h(g),r){const t=_e(n.errors,a,o),i=_e(e,a,t.name||o);c=i.error,o=i.name,u=D(e)}}else O([o],!0),c=(await ee(l,v,I,i.shouldUseNativeValidation))[o],O([o]),h(g),r&&(c?u=!1:L.isValid&&(u=await G(a,!0)));r&&(l._f.deps&&he(l._f.deps),K(o,u,c,b))}},de=(e,t)=>{if(f(n.errors,t)&&e.focus)return e.focus(),1},he=async function(e){let t,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=E(e);if(i.resolver){const i=await $(m(e)?e:r);t=D(i),s=e?!r.some((e=>f(i,e))):t}else e?(s=(await Promise.all(r.map((async e=>{const t=f(a,e);return await G(t&&t._f?{[e]:t}:t)})))).every(Boolean),(s||n.isValid)&&R()):s=t=await G(a);return k.state.next({...!M(e)||L.isValid&&t!==n.isValid?{}:{name:e},...i.resolver||!e?{isValid:t}:{},errors:n.errors}),o.shouldFocus&&!s&&V(a,de,e?r:S.mount),s},ye=e=>{const t={...b.mount?v:c};return m(e)?t:M(e)?f(t,e):e.map((e=>f(t,e)))},we=(e,t)=>({invalid:!!f((t||n).errors,e),isDirty:!!f((t||n).dirtyFields,e),error:f((t||n).errors,e),isValidating:!!f(n.validatingFields,e),isTouched:!!f((t||n).touchedFields,e)}),Se=(e,t,i)=>{const s=(f(a,e,{_f:{}})._f||{}).ref,o=f(n.errors,e)||{},{ref:r,message:l,type:d,...h}=o;C(n.errors,e,{...h,...t,ref:s}),k.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&s&&s.focus&&s.focus()},xe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const s of e?E(e):S.mount)S.mount.delete(s),S.array.delete(s),t.keepValue||(te(a,s),te(v,s)),!t.keepError&&te(n.errors,s),!t.keepDirty&&te(n.dirtyFields,s),!t.keepTouched&&te(n.touchedFields,s),!t.keepIsValidating&&te(n.validatingFields,s),!i.shouldUnregister&&!t.keepDefaultValue&&te(c,s);k.values.next({values:{...v}}),k.state.next({...n,...t.keepDirty?{isDirty:Y()}:{}}),!t.keepIsValid&&R()},Le=e=>{let{disabled:t,name:i,field:n,fields:s,value:o}=e;if(_(t)&&b.mount||t){const e=t?void 0:m(o)?ge(n?n._f:f(s,i)._f):o;C(v,i,e),U(i,e,!1,!1,!0)}},ke=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(a,e);const s=_(t.disabled);return C(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),n?Le({field:n,disabled:t.disabled,name:e,value:t.value}):P(e,!0,t.value),{...s?{disabled:t.disabled}:{},...i.progressive?{required:!!t.required,min:me(t.min),max:me(t.max),minLength:me(t.minLength),maxLength:me(t.maxLength),pattern:me(t.pattern)}:{},name:e,onChange:le,onBlur:le,ref:s=>{if(s){ke(e,t),n=f(a,e);const i=m(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,o=re(i),r=n._f.refs||[];if(o?r.find((e=>e===i)):i===n._f.ref)return;C(a,e,{_f:{...n._f,...o?{refs:[...r.filter(ae),i,...Array.isArray(f(c,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),P(e,!1,void 0,i)}else n=f(a,e,{}),n._f&&(n._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(S.array,e)||!b.action)&&S.unMount.add(e)}}},De=()=>i.shouldFocusError&&V(a,de,S.mount),Ne=(e,t)=>async s=>{let o;s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist());let r=g(v);if(k.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await q();n.errors=e,r=t}else await G(a);if(te(n.errors,"root"),D(n.errors)){k.state.next({errors:{}});try{await e(r,s)}catch(l){o=l}}else t&&await t({...n.errors},s),De(),setTimeout(De);if(k.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:D(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},Ee=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e?g(e):c,o=g(s),r=D(e),l=r?c:o;if(i.keepDefaultValues||(c=s),!i.keepValues){if(i.keepDirtyValues)for(const e of S.mount)f(n.dirtyFields,e)?C(l,e,f(v,e)):J(e,f(l,e));else{if(u&&m(e))for(const e of S.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(j(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=t.shouldUnregister?i.keepDefaultValues?g(c):{}:g(l),k.array.next({values:{...l}}),k.values.next({values:{...l}})}S={mount:i.keepDirtyValues?S.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!L.isValid||!!i.keepIsValid||!!i.keepDirtyValues,b.watch=!!t.shouldUnregister,k.state.next({submitCount:i.keepSubmitCount?n.submitCount:0,isDirty:!r&&(i.keepDirty?n.isDirty:!(!i.keepDefaultValues||se(e,c))),isSubmitted:!!i.keepIsSubmitted&&n.isSubmitted,dirtyFields:r?{}:i.keepDirtyValues?i.keepDefaultValues&&v?ce(c,v):n.dirtyFields:i.keepDefaultValues&&e?ce(c,e):i.keepDirty?n.dirtyFields:{},touchedFields:i.keepTouched?n.touchedFields:{},errors:i.keepErrors?n.errors:{},isSubmitSuccessful:!!i.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},Te=(e,t)=>Ee(z(e)?e(v):e,t);return{control:{register:ke,unregister:xe,getFieldState:we,handleSubmit:Ne,setError:Se,_executeSchema:q,_getWatch:Z,_getDirty:Y,_updateValid:R,_removeUnmounted:()=>{for(const e of S.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ae(e))):!ae(t._f.ref))&&xe(e)}S.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(s&&i){if(b.action=!0,r&&Array.isArray(f(a,e))){const t=i(f(a,e),s.argA,s.argB);o&&C(a,e,t)}if(r&&Array.isArray(f(n.errors,e))){const t=i(f(n.errors,e),s.argA,s.argB);o&&C(n.errors,e,t),be(n.errors,e)}if(L.touchedFields&&r&&Array.isArray(f(n.touchedFields,e))){const t=i(f(n.touchedFields,e),s.argA,s.argB);o&&C(n.touchedFields,e,t)}L.dirtyFields&&(n.dirtyFields=ce(c,v)),k.state.next({name:e,isDirty:Y(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(v,e,t)},_updateDisabledField:Le,_getFieldArray:e=>p(f(b.mount?v:c,e,t.shouldUnregister?f(c,e,[]):[])),_reset:Ee,_resetDefaultValues:()=>z(i.defaultValues)&&i.defaultValues().then((e=>{Te(e,i.resetOptions),k.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{_(e)&&(k.state.next({disabled:e}),V(a,((t,i)=>{const n=f(a,i);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:k,_proxyFormState:L,_setErrors:e=>{n.errors=e,k.state.next({errors:n.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return b},set _state(e){b=e},get _defaultValues(){return c},get _names(){return S},set _names(e){S=e},get _formState(){return n},set _formState(e){n=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:he,register:ke,handleSubmit:Ne,watch:(e,t)=>z(e)?k.values.subscribe({next:i=>e(Z(void 0,t),i)}):Z(e,t,!0),setValue:J,getValues:ye,reset:Te,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(a,e)&&(m(t.defaultValue)?J(e,g(f(c,e))):(J(e,t.defaultValue),C(c,e,g(t.defaultValue))),t.keepTouched||te(n.touchedFields,e),t.keepDirty||(te(n.dirtyFields,e),n.isDirty=t.defaultValue?Y(e,g(f(c,e))):Y()),t.keepError||(te(n.errors,e),L.isValid&&R()),k.state.next({...n}))},clearErrors:e=>{e&&E(e).forEach((e=>te(n.errors,e))),k.state.next({errors:e?n.errors:{}})},unregister:xe,setError:Se,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=f(a,e),n=i&&i._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:we}}function we(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=n.useRef(),i=n.useRef(),[s,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ye(e),formState:s});const r=t.current.control;return r._options=e,I({subject:r._subjects.state,next:e=>{N(e,r._proxyFormState,r._updateFormState,!0)&&o({...r._formState})}}),n.useEffect((()=>r._disableForm(e.disabled)),[r,e.disabled]),n.useEffect((()=>{if(r._proxyFormState.isDirty){const e=r._getDirty();e!==s.isDirty&&r._subjects.state.next({isDirty:e})}}),[r,s.isDirty]),n.useEffect((()=>{e.values&&!se(e.values,i.current)?(r._reset(e.values,r._options.resetOptions),i.current=e.values,o((e=>({...e})))):r._resetDefaultValues()}),[e.values,r]),n.useEffect((()=>{e.errors&&r._setErrors(e.errors)}),[e.errors,r]),n.useEffect((()=>{r._state.mount||(r._updateValid(),r._state.mount=!0),r._state.watch&&(r._state.watch=!1,r._subjects.state.next({...r._formState})),r._removeUnmounted()})),n.useEffect((()=>{e.shouldUnregister&&r._subjects.values.next({values:r._getWatch()})}),[e.shouldUnregister,r]),t.current.formState=k(s,r),t.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8918.4e9353d7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/1198.40c55cbb.chunk.js.LICENSE.txt index 7f9b0a686b..7f9b0a686b 100644 --- a/ydb/core/viewer/monitoring/static/js/8918.4e9353d7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/1198.40c55cbb.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/1276.0132c95a.chunk.js b/ydb/core/viewer/monitoring/static/js/1276.0132c95a.chunk.js deleted file mode 100644 index 9a9e69ae43..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1276.0132c95a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1276],{74003:(e,s,t)=>{t.d(s,{q:()=>h});var r=t(26714),l=t(72616),a=t(26390),n=t(78759),o=t(99294),i=t(55842),c=t(37711);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(10161);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")})]})]})}},66498:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(41989)},20760:(e,s,t)=>{t.d(s,{y:()=>v});var r=t(53216),l=t(99294),a=t(14075),n=t(95440),o=t(73689),i=t(10161);const c=(0,l.cn)("progress-viewer"),d=e=>(0,a.uf)((0,a.W0)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v(e){let{value:s,capacity:t,formatValues:l=u,percents:a,className:d,size:v="xs",colorizeProgress:m,inverseColorize:h,warningThreshold:N=60,dangerThreshold:g=80}=e;const p=(0,r.F)();let S=Math.round(parseFloat(String(s))/parseFloat(String(t))*100)||0;S=S>100?100:S;let x=s,f=t,b="/";a?(x=S+"%",f="",b=""):l&&([x,f]=l(Number(s),Number(t)));const E=(0,n.S)({fillWidth:S,warningThreshold:N,dangerThreshold:g,colorizeProgress:m,inverseColorize:h});m&&!(0,o.kE)(t)&&(S=100);const j={width:S+"%"};return(0,o.kE)(s)?(0,i.jsxs)("div",{className:c({size:v,theme:p,status:E},d),children:[(0,i.jsx)("div",{className:c("line"),style:j}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kE)(t)?`${x} ${b} ${f}`:x})]}):(0,i.jsx)("div",{className:`${c({size:v})} ${d} error`,children:"no data"})}},74116:(e,s,t)=>{t.d(s,{G:()=>c});var r=t(59769),l=t(71624),a=t(99294),n=t(46154),o=t(10161);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})})}},76485:(e,s,t)=>{t.d(s,{o:()=>i});var r=t(34706),l=t(86357),a=t(99294),n=t(10161);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)}})}},17784:(e,s,t)=>{t.d(s,{o:()=>r.o});var r=t(76485)},61490:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>ee});var r=t(34706),l=t(71624),a=t(26390),n=t(53366),o=t(42152),i=t(74003),c=t(15327),d=t(66498),u=t(74116),v=t(17784),m=t(33921),h=t(78171),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(27810),C=t(55842),O=t(97485),w=t(58274),_=t(20760),A=t(14075),y=t(37711);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"}'),z=(0,y.wZ)("ydb-clusters-page",{ru:I,en:R});var D=t(99294);const L=(0,D.cn)("clusters");var P=t(10161);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:L("aggregation"),children:[(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_clusters")}),s]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_hosts")}),a]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_tenants")}),n]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_nodes")}),(0,P.jsx)(_.y,{size:"ns",value:l,capacity:r,colorizeProgress:!0,inverseColorize:!0})]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_load")}),(0,P.jsx)(_.y,{size:"ns",value:o,capacity:i,colorizeProgress:!0})]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_storage")}),(0,P.jsx)(_.y,{size:"ns",value:c,capacity:d,formatValues:A.QO,colorizeProgress:!0})]})]})};var k=t(91807),U=t(17823),G=t(30963),W=t(99175),M=t(75147);const Z=(0,D.cn)("kv-user");function H(e){let{login:s,className:t}=e;const r=(0,M.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(25791),$=t(4128);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:L("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:L("cluster"),children:[i?(0,P.jsx)(U.r,{href:o,children:(0,P.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,P.jsx)("div",{className:L("cluster-status"),children:(0,P.jsx)(k.J,{content:(0,P.jsx)("span",{className:L("tooltip-content"),children:(null===(t=r.cluster)||void 0===t?void 0:t.error)||z("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,P.jsx)("div",{className:L("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:L("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:L("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:L("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:170,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:170,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:170,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:L("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:L("balancer-cell"),children:[(0,P.jsx)("div",{className:L("balancer-text"),children:t}),(0,P.jsx)(W.m,{size:"s",text:t,className:L("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]),D=s.data,{servicesToSelect:k,versions:U}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==D&&void 0!==D?D:[]).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})))}}),[D]),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!==D&&void 0!==D?D:[],{clusterName:h,status:N,service:_,version:A})),[h,D,_,N,A]),W=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]),M=r.useMemo((()=>Array.from(new Set((null!==D&&void 0!==D?D:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[D]);return(0,P.jsxs)("div",{className:L(),children:[(0,P.jsx)(o.ql,{children:(0,P.jsx)("title",{children:z("page_title")})}),(0,P.jsx)(V,{stats:W,count:G.length}),(0,P.jsxs)("div",{className:L("controls"),children:[(0,P.jsx)("div",{className:L("control",{wide:!0}),children:(0,P.jsx)(v.o,{placeholder:z("controls_search-placeholder"),onChange:e=>{t((0,m.g_)({clusterName:e}))},value:h})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:z("controls_select-placeholder"),label:z("controls_status-select-label"),value:N,options:M,onUpdate:e=>{t((0,m.g_)({status:e}))},width:"max"})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:z("controls_select-placeholder"),label:z("controls_service-select-label"),value:_,options:k,onUpdate:e=>{t((0,m.g_)({service:e}))},width:"max"})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:z("controls_select-placeholder"),label:z("controls_version-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.g_)({version:e}))},width:"max"})}),(0,P.jsx)("div",{className:L("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:L("error")}):null,s.isLoading?(0,P.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,P.jsx)("div",{className:L("table-wrapper"),children:(0,P.jsx)("div",{className:L("table-content"),children:(0,P.jsx)(u.G,{columnsWidthLSKey:K,wrapperClassName:L("table"),data:G,columns:y,settings:{...T.LE,dynamicRender:!1},initialSortOrder:{columnId:q.TITLE,order:l.ZP.ASCENDING}})})}):null]})}},97485:(e,s,t)=>{t.d(s,{N:()=>a});var r=t(34706),l=t(9951);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])}}},46154:(e,s,t)=>{t.d(s,{M:()=>n});var r=t(34706),l=t(59769),a=t(9951);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})}},95440:(e,s,t)=>{function r(e){let{inverseColorize:s,warningThreshold:t=60,dangerThreshold:r=80,colorizeProgress:l,fillWidth:a}=e,n=s?"danger":"good";return l&&(a>t&&a<=r?n="warning":a>r&&(n=s?"good":"danger")),n}t.d(s,{S:()=>r})},91807:(e,s,t)=>{t.d(s,{J:()=>c});var r=t(34706),l=t(29837),a=t(16318),n=t(14561);const o=(0,t(38534).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})))}},38534:(e,s,t)=>{t.d(s,{G:()=>l});var r=t(95936);(0,r.withNaming)({e:"__",m:"_",v:"_"});const l=(0,r.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},30963:(e,s,t)=>{t.d(s,{E:()=>u});var r=t(34706);const l=(0,t(87578).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/1276.bc76b58b.chunk.js b/ydb/core/viewer/monitoring/static/js/1276.bc76b58b.chunk.js new file mode 100644 index 0000000000..a1a1224535 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1276.bc76b58b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1276],{74003:(e,s,t)=>{t.d(s,{q:()=>h});var r=t(26714),l=t(72616),a=t(26390),n=t(78759),o=t(99294),i=t(55842),c=t(37711);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(10161);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-secondary",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,qa:"ydb-autorefresh-select",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")})]})]})}},66498:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(41989)},20760:(e,s,t)=>{t.d(s,{y:()=>v});var r=t(53216),l=t(99294),a=t(38980),n=t(95440),o=t(73689),i=t(10161);const c=(0,l.cn)("progress-viewer"),d=e=>(0,a.uf)((0,a.W0)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v(e){let{value:s,capacity:t,formatValues:l=u,percents:a,className:d,size:v="xs",colorizeProgress:m,inverseColorize:h,warningThreshold:N=60,dangerThreshold:g=80,hideCapacity:p}=e;const S=(0,r.F)();let f=Math.round(parseFloat(String(s))/parseFloat(String(t))*100)||0;f=f>100?100:f;let x=s,b=t,E="/";a?(x=f+"%",b="",E=""):l&&([x,b]=l(Number(s),Number(t)));const j=(0,n.S)({fillWidth:f,warningThreshold:N,dangerThreshold:g,colorizeProgress:m,inverseColorize:h});m&&!(0,o.kE)(t)&&(f=100);const T={width:f+"%"};return(0,o.kE)(s)?(0,i.jsxs)("div",{className:c({size:v,theme:S,status:j},d),children:[(0,i.jsx)("div",{className:c("line"),style:T}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kE)(t)&&!p?`${x} ${E} ${b}`:x})]}):(0,i.jsx)("div",{className:`${c({size:v})} ${d} error`,children:"no data"})}},74116:(e,s,t)=>{t.d(s,{G:()=>c});var r=t(59769),l=t(71624),a=t(99294),n=t(46154),o=t(10161);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})})}},76485:(e,s,t)=>{t.d(s,{o:()=>i});var r=t(34706),l=t(86357),a=t(99294),n=t(10161);const o=(0,a.cn)("ydb-search"),i=e=>{let{onChange:s,value:t="",width:a,className:i,debounce:c=200,placeholder:d}=e;const[u,v]=r.useState(t),m=r.useRef();r.useEffect((()=>{v((e=>e!==t?t:e))}),[t]);return(0,n.jsx)(l.o,{hasClear:!0,autoFocus:!0,style:{width:a},className:o(null,i),placeholder:d,value:u,onUpdate:e=>{v(e),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===s||void 0===s||s(e)}),c)}})}},17784:(e,s,t)=>{t.d(s,{o:()=>r.o});var r=t(76485)},61490:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>ee});var r=t(34706),l=t(71624),a=t(26390),n=t(53366),o=t(42152),i=t(74003),c=t(15327),d=t(66498),u=t(74116),v=t(17784),m=t(33921),h=t(78171),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,f=e=>e.clusters.version,x=(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(27810),C=t(55842),w=t(97485),O=t(58274),_=t(20760),A=t(38980),y=t(37711);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"}'),z=(0,y.wZ)("ydb-clusters-page",{ru:I,en:R});var D=t(99294);const L=(0,D.cn)("clusters");var P=t(10161);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:L("aggregation"),children:[(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_clusters")}),s]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_hosts")}),a]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_tenants")}),n]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_nodes")}),(0,P.jsx)(_.y,{size:"ns",value:l,capacity:r,colorizeProgress:!0,inverseColorize:!0})]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_load")}),(0,P.jsx)(_.y,{size:"ns",value:o,capacity:i,colorizeProgress:!0})]}),(0,P.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,P.jsx)("span",{className:L("aggregation-label"),children:z("statistics_storage")}),(0,P.jsx)(_.y,{size:"ns",value:c,capacity:d,formatValues:A.QO,colorizeProgress:!0})]})]})};var k=t(91807),U=t(17823),G=t(30963),W=t(99175),M=t(75147);const Z=(0,D.cn)("kv-user");function H(e){let{login:s,className:t}=e;const r=(0,M.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(25791),$=t(4128);const q="selectedColumns",J={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=[J.TITLE,J.VERSIONS,J.SERVICE,J.STATUS,J.NODES,J.LOAD,J.STORAGE,J.HOSTS,J.TENANTS,J.OWNER,J.BALANCER],X={[J.TITLE]:"Cluster",[J.VERSIONS]:"Versions",[J.DC]:"DC",[J.SERVICE]:"Service",[J.STATUS]:"Status",[J.NODES]:"Nodes",[J.LOAD]:"Load",[J.STORAGE]:"Storage",[J.HOSTS]:"Hosts",[J.TENANTS]:"Tenants",[J.OWNER]:"Owner",[J.DESCRIPTION]:"Description",[J.BALANCER]:"Balancer"},K="clustersTableColumnsWidth",Q=(0,P.jsx)("span",{className:L("empty-cell"),children:"\u2014"}),Y=[{name:J.TITLE,header:X[J.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:L("cluster"),children:[i?(0,P.jsx)(U.r,{href:o,children:(0,P.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,P.jsx)("div",{className:L("cluster-status"),children:(0,P.jsx)(k.J,{content:(0,P.jsx)("span",{className:L("tooltip-content"),children:(null===(t=r.cluster)||void 0===t?void 0:t.error)||z("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,P.jsx)("div",{className:L("cluster-name"),children:(0,P.jsx)(U.r,{href:o,children:r.title})})]})},defaultOrder:l.ZP.ASCENDING},{name:J.VERSIONS,header:X[J.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:L("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:L("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:J.DC,header:X[J.DC],width:120,sortable:!1,render:e=>{let{row:s}=e;const t=s.cluster&&s.cluster.DataCenters||[];return(0,P.jsx)("div",{className:L("cluster-dc"),children:t.join(", ")||Q})}},{name:J.SERVICE,header:X[J.SERVICE],width:100,sortable:!0},{name:J.STATUS,header:X[J.STATUS],width:150,sortable:!0},{name:J.NODES,header:X[J.NODES],resizeMinWidth:170,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:J.LOAD,header:X[J.LOAD],resizeMinWidth:170,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:J.STORAGE,header:X[J.STORAGE],resizeMinWidth:170,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:J.HOSTS,header:X[J.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:J.TENANTS,header:X[J.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:J.OWNER,header:X[J.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:J.DESCRIPTION,header:X[J.DESCRIPTION],sortable:!1,width:150,render:e=>{let{row:s}=e;return s.description?(0,P.jsx)("div",{className:L("description"),children:s.description}):Q}},{name:J.BALANCER,header:X[J.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:L("balancer-cell"),children:[(0,P.jsx)("div",{className:L("balancer-text"),children:t}),(0,P.jsx)(W.m,{size:"s",text:t,className:L("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)(f),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,w.N)(Y,q,X,F,[J.TITLE]),D=s.data,{servicesToSelect:k,versions:U}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==D&&void 0!==D?D:[]).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,O.H)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[D]),G=r.useMemo((()=>function(e,s){return e.filter((e=>x(e,s.status)&&b(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==D&&void 0!==D?D:[],{clusterName:h,status:N,service:_,version:A})),[h,D,_,N,A]),W=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]),M=r.useMemo((()=>Array.from(new Set((null!==D&&void 0!==D?D:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[D]);return(0,P.jsxs)("div",{className:L(),children:[(0,P.jsx)(o.ql,{children:(0,P.jsx)("title",{children:z("page_title")})}),(0,P.jsx)(V,{stats:W,count:G.length}),(0,P.jsxs)("div",{className:L("controls"),children:[(0,P.jsx)("div",{className:L("control",{wide:!0}),children:(0,P.jsx)(v.o,{placeholder:z("controls_search-placeholder"),onChange:e=>{t((0,m.g_)({clusterName:e}))},value:h})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:z("controls_select-placeholder"),label:z("controls_status-select-label"),value:N,options:M,onUpdate:e=>{t((0,m.g_)({status:e}))},width:"max"})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:z("controls_select-placeholder"),label:z("controls_service-select-label"),value:_,options:k,onUpdate:e=>{t((0,m.g_)({service:e}))},width:"max"})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:z("controls_select-placeholder"),label:z("controls_version-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.g_)({version:e}))},width:"max"})}),(0,P.jsx)("div",{className:L("control"),children:(0,P.jsx)(n.N,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,P.jsx)(i.q,{className:L("autorefresh")})]}),s.isError?(0,P.jsx)(c.V,{error:s.error,className:L("error")}):null,s.isLoading?(0,P.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,P.jsx)("div",{className:L("table-wrapper"),children:(0,P.jsx)("div",{className:L("table-content"),children:(0,P.jsx)(u.G,{columnsWidthLSKey:K,wrapperClassName:L("table"),data:G,columns:y,settings:{...T.LE,dynamicRender:!1},initialSortOrder:{columnId:J.TITLE,order:l.ZP.ASCENDING}})})}):null]})}},97485:(e,s,t)=>{t.d(s,{N:()=>a});var r=t(34706),l=t(9951);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])}}},46154:(e,s,t)=>{t.d(s,{M:()=>n});var r=t(34706),l=t(59769),a=t(9951);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})}},95440:(e,s,t)=>{function r(e){let{inverseColorize:s,warningThreshold:t=60,dangerThreshold:r=80,colorizeProgress:l,fillWidth:a}=e,n=s?"danger":"good";return l&&(a>t&&a<=r?n="warning":a>r&&(n=s?"good":"danger")),n}t.d(s,{S:()=>r})},91807:(e,s,t)=>{t.d(s,{J:()=>c});var r=t(34706),l=t(29837),a=t(16318),n=t(14561);const o=(0,t(38534).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})))}},38534:(e,s,t)=>{t.d(s,{G:()=>l});var r=t(95936);(0,r.withNaming)({e:"__",m:"_",v:"_"});const l=(0,r.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},30963:(e,s,t)=>{t.d(s,{E:()=>u});var r=t(34706);const l=(0,t(87578).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/165.a31f2a03.chunk.js b/ydb/core/viewer/monitoring/static/js/165.a31f2a03.chunk.js deleted file mode 100644 index 6348a015e2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/165.a31f2a03.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[165],{10165:(t,e,s)=>{s.r(e),s.d(e,{TableOrViewSuggestion:()=>us,parseClickHouseQuery:()=>Ib,parseClickHouseQueryWithoutCursor:()=>Ob,parseMySqlQuery:()=>Ab,parseMySqlQueryWithoutCursor:()=>Rb,parsePostgreSqlQuery:()=>lb,parsePostgreSqlQueryWithoutCursor:()=>Sb,parseYqQuery:()=>Cb,parseYqQueryWithoutCursor:()=>Lb,parseYqlQuery:()=>Nb,parseYqlQueryWithoutCursor:()=>ub});var a,i,r,c,n=Object.defineProperty,h=(t,e)=>n(t,"name",{value:e,configurable:!0});(i=a||(a={})).EOF=-1,i.UNKNOWN_SOURCE_NAME="<unknown>",(c=r||(r={})).INVALID_TYPE=0,c.EPSILON=-2,c.MIN_USER_TOKEN_TYPE=1,c.EOF=a.EOF,c.DEFAULT_CHANNEL=0,c.HIDDEN_CHANNEL=1,c.MIN_USER_CHANNEL_VALUE=2;var E=h((t=>{const e=t;return void 0!==e.tokenSource&&void 0!==e.channel}),"isToken"),T=class t{static{h(this,"Interval")}static INVALID_INTERVAL=new t(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;start;stop;static#t=[];#e;constructor(t,e){this.start=t,this.stop=e,this.#e=Math.imul(651+t,31)+e}static of(e,s){return e!==s||e<0||e>t.INTERVAL_POOL_MAX_VALUE?new t(e,s):(t.#t[e]||(t.#t[e]=new t(e,e)),t.#t[e])}equals(t){return this.start===t.start&&this.stop===t.stop}hashCode(){return this.#e}startsBeforeDisjoint(t){return this.start<t.start&&this.stop<t.start}startsBeforeNonDisjoint(t){return this.start<=t.start&&this.stop>=t.start}startsAfter(t){return this.start>t.start}startsAfterDisjoint(t){return this.start>t.stop}startsAfterNonDisjoint(t){return this.start>t.start&&this.start<=t.stop}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.start===t.stop+1||this.stop===t.start-1}properlyContains(t){return t.start>=this.start&&t.stop<=this.stop}union(e){return t.of(Math.min(this.start,e.start),Math.max(this.stop,e.stop))}intersection(e){return t.of(Math.max(this.start,e.start),Math.min(this.stop,e.stop))}differenceNotProperlyContained(e){let s=null;return e.startsBeforeNonDisjoint(this)?s=t.of(Math.max(this.start,e.stop+1),this.stop):e.startsAfterNonDisjoint(this)&&(s=t.of(this.start,e.start-1)),s}toString(){return this.start===this.stop?this.start.toString():this.start.toString()+".."+this.stop.toString()}get length(){return this.stop<this.start?0:this.stop-this.start+1}},o=class t{static{h(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new t(t.EMPTY_NAMES,t.EMPTY_NAMES,t.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(e,s,a){this.literalNames=e??t.EMPTY_NAMES,this.symbolicNames=s??t.EMPTY_NAMES,this.displayNames=a??t.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(e){if(null==e||0===e.length)return t.EMPTY_VOCABULARY;const s=[...e],a=[...e];for(let t=0;t<e.length;t++){const i=e[t];if(null!=i){if(i?.length>0){const e=i.charAt(0);if("'"===e){a[t]=null;continue}if(e.toUpperCase()===e){s[t]=null;continue}}s[t]=null,a[t]=null}}return new t(s,a,e)}getMaxTokenType(){return this.maxTokenType}getLiteralName(t){return t>=0&&t<this.literalNames.length?this.literalNames[t]:null}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===r.EOF?"EOF":null}getDisplayName(t){if(t>=0&&t<this.displayNames.length){const e=this.displayNames[t];if(null!=e)return e}const e=this.getLiteralName(t);if(null!=e)return e;const s=this.getSymbolicName(t);return null!=s?s:`${t}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},R=class t{static{h(this,"MurmurHash")}static#s=701;constructor(){}static initialize(e=t.#s){return e}static updateFromComparable(t,e){return this.update(t,e?.hashCode()??0)}static update(t,e){return e=(e=Math.imul(e,3432918353))<<15|e>>>17,t=(t^=e=Math.imul(e,461845907))<<13|t>>>19,t=Math.imul(t,5)+3864292196}static finish=(t,e)=>(t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),t^=t>>>16);static hashCode=(e,s)=>t.finish(t.update(s??t.#s,e),1)},A=class t{static{h(this,"IntervalSet")}#a=[];#e;constructor(t){t&&this.addSet(t)}static of(e,s){const a=new t;return a.addRange(e,s),a}[Symbol.iterator](){return this.#a[Symbol.iterator]()}get(t){return this.#a[t]}get minElement(){return 0===this.#a.length?r.INVALID_TYPE:this.#a[0].start}get maxElement(){return 0===this.#a.length?r.INVALID_TYPE:this.#a[this.#a.length-1].stop}clear(){this.#e=void 0,this.#a=[]}addOne(t){this.addInterval(new T(t,t))}addRange(t,e){this.addInterval(new T(t,e))}addInterval(t){if(this.#e=void 0,0===this.#a.length)this.#a.push(t);else{for(let e=0;e<this.#a.length;e++){const s=this.#a[e];if(t.equals(s))return;if(t.adjacent(s)||!t.disjoint(s)){const a=t.union(s);this.#a[e]=a;for(let t=e+1;t<this.#a.length;){const s=this.#a[t];if(!a.adjacent(s)&&a.disjoint(s))break;this.#a.splice(t,1),this.#a[e]=a.union(s)}return}if(t.startsBeforeDisjoint(s))return void this.#a.splice(e,0,t)}this.#a.push(t)}}addSet(t){return t.#a.forEach((t=>this.addInterval(t)),this),this}complementWithVocabulary(e){const s=new t;return e?0===e.length?s:(s.addSet(e),s.subtract(this)):s}complement(e,s){const a=new t;return a.addInterval(new T(e,s)),a.subtract(this)}or(e){const s=new t;return s.addSet(this),e.forEach((t=>s.addSet(t))),s}and(e){if(0===e.length)return new t;const s=this.#a,a=e.#a;let i;const r=s.length,c=a.length;let n=0,h=0;for(;n<r&&h<c;){const e=s[n],r=a[h];e.startsBeforeDisjoint(r)?n++:r.startsBeforeDisjoint(e)?h++:e.properlyContains(r)?(i||(i=new t),i.addInterval(e.intersection(r)),h++):r.properlyContains(e)?(i||(i=new t),i.addInterval(e.intersection(r)),n++):e.disjoint(r)||(i||(i=new t),i.addInterval(e.intersection(r)),e.startsAfterNonDisjoint(r)?h++:r.startsAfterNonDisjoint(e)&&n++)}return i||new t}subtract(e){if(0===this.length)return new t;const s=new t(this);if(0===e.length)return s;let a=0,i=0;for(;a<s.#a.length&&i<e.#a.length;){const t=s.#a[a],r=e.#a[i];if(r.stop<t.start){i++;continue}if(r.start>t.stop){a++;continue}let c,n;r.start>t.start&&(c=new T(t.start,r.start-1)),r.stop<t.stop&&(n=new T(r.stop+1,t.stop)),c?n?(s.#a[a]=c,s.#a.splice(a+1,0,n),a++,i++):(s.#a[a]=c,a++):n?(s.#a[a]=n,i++):s.#a.splice(a,1)}return s}contains(t){let e=0,s=this.#a.length-1;for(;e<=s;){const a=Math.floor((e+s)/2),i=this.#a[a];if(i.stop<t)e=a+1;else{if(!(i.start>t))return!0;s=a-1}}return!1}removeRange(t){if(this.#e=void 0,t.start===t.stop)this.removeOne(t.start);else if(null!==this.#a){let e=0;for(const s of this.#a){if(t.stop<=s.start)return;if(t.start>s.start&&t.stop<s.stop){this.#a[e]=new T(s.start,t.start);const a=new T(t.stop,s.stop);return void this.#a.splice(e,0,a)}t.start<=s.start&&t.stop>=s.stop?(this.#a.splice(e,1),e-=1):t.start<s.stop?this.#a[e]=new T(s.start,t.start):t.stop<s.stop&&(this.#a[e]=new T(t.stop,s.stop)),e+=1}}}removeOne(t){this.#e=void 0;for(let e=0;e<this.#a.length;e++){const s=this.#a[e];if(t<s.start)return;if(t===s.start&&t===s.stop)return void this.#a.splice(e,1);if(t===s.start)return void(this.#a[e]=new T(s.start+1,s.stop));if(t===s.stop)return void(this.#a[e]=new T(s.start,s.stop));if(t<s.stop){const a=new T(s.start,t);return this.#a[e]=new T(t+1,s.stop),void this.#a.splice(e,0,a)}}}hashCode(){if(void 0===this.#e){let t=R.initialize();for(const e of this.#a)t=R.update(t,e.start),t=R.update(t,e.stop);this.#e=R.finish(t,2*this.#a.length)}return this.#e}equals(t){if(this===t)return!0;if(this.#a.length!==t.#a.length)return!1;for(let e=0;e<this.#a.length;e++)if(!this.#a[e].equals(t.#a[e]))return!1;return!0}toString(t){if(0===this.#a.length)return"{}";let e="";this.length>1&&(e+="{");for(let s=0;s<this.#a.length;++s){const a=this.#a[s],i=a.start,c=a.stop;i===c?i===r.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(c)+"'":i+".."+c,s<this.#a.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toStringWithVocabulary(t){if(0===this.#a.length)return"{}";let e="";this.length>1&&(e+="{");for(let s=0;s<this.#a.length;++s){const a=this.#a[s],i=a.start,c=a.stop;if(i===c)i===r.EOF?e+="<EOF>":e+=this.elementName(t,i);else for(let s=i;s<=c;++s)s>i&&(e+=", "),e+=this.elementName(t,s);s<this.#a.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toStringWithRuleNames(t){if(0===this.#a.length)return"{}";let e="";this.length>1&&(e+="{");const s=o.fromTokenNames(t);for(let a=0;a<this.#a.length;++a){const t=this.#a[a],i=t.start,c=t.stop;if(i===c)i===r.EOF?e+="<EOF>":e+=this.elementName(s,i);else for(let a=i;a<=c;++a)a>i&&(e+=", "),e+=this.elementName(s,a);a<this.#a.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toArray(){const t=[];for(const e of this.#a)for(let s=e.start;s<=e.stop;s++)t.push(s);return t}get length(){let t=0;if(1===this.#a.length){const t=this.#a[0];return t.stop-t.start+1}for(const e of this.#a)t+=e.length;return t}elementName(t,e){return e===r.EOF?"<EOF>":e===r.EPSILON?"<EPSILON>":t.getDisplayName(e)}},S=class{static{h(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(t){this.target=t}get isEpsilon(){return!1}get label(){return null}},l=class extends S{static{h(this,"SetTransition")}set;constructor(t,e){super(t),this.set=e||A.of(r.INVALID_TYPE,r.INVALID_TYPE)}get transitionType(){return S.SET}get label(){return this.set}matches(t,e,s){return this.set.contains(t)}toString(){return this.set.toString()}},O=class extends l{static{h(this,"NotSetTransition")}get transitionType(){return S.NOT_SET}matches(t,e,s){return t>=e&&t<=s&&!super.matches(t,e,s)}toString(){return"~"+super.toString()}},I=class t{static{h(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static EMPTY;static traceATNSimulator=!1;#e;constructor(t){this.#e=t}static calculateEmptyHashCode(){let t=R.initialize(31);return t=R.finish(t,0),t}static calculateHashCodeSingle(t,e){let s=R.initialize(31);return s=R.updateFromComparable(s,t),s=R.update(s,e),s=R.finish(s,2),s}static calculateHashCodeList(t,e){let s=R.initialize(31);for(const a of t)s=R.updateFromComparable(s,a);for(const a of e)s=R.update(s,a);return s=R.finish(s,2*t.length),s}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===t.EMPTY_RETURN_STATE}hashCode(){return this.#e}toString(t){return""}},u=h((t=>null===t?"null":t),"valueToString"),N=h((t=>Array.isArray(t)?"["+t.map(u).join(", ")+"]":"null"),"arrayToString"),L=h(((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++){const a=t[s],i=e[s];if(a!==i&&(!a||!a.equals(i)))return!1}return!0}),"equalArrays"),C=h(((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}),"equalNumberArrays"),_=h(((t,e=!1)=>(t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"\xb7")),t)),"escapeWhitespace"),P=class t extends I{static{h(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(t,e){return super(I.calculateHashCodeList(t,e)),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===I.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(e){return this===e||e instanceof t&&this.hashCode()===e.hashCode()&&(C(this.returnStates,e.returnStates)&&L(this.parents,e.parents))}toString(){if(this.isEmpty())return"[]";const t=[];for(let e=0;e<this.returnStates.length;e++)this.returnStates[e]!==I.EMPTY_RETURN_STATE?(t.push(this.returnStates[e].toString()),this.parents[e]?t.push(this.parents[e].toString()):t.push("null")):t.push("$");return`[${t.join(", ")}]`}},M=class t extends I{static{h(this,"SingletonPredictionContext")}parent;returnState;constructor(t,e){super(t?I.calculateHashCodeSingle(t,e):I.calculateEmptyHashCode()),this.parent=t??null,this.returnState=e}static create(e,s){return s===I.EMPTY_RETURN_STATE&&null===e?I.EMPTY:new t(e,s)}getParent(t){return this.parent}getReturnState(t){return this.returnState}equals(e){return this===e||e instanceof t&&(this.hashCode()===e.hashCode()&&(this.returnState===e.returnState&&(null==this.parent?null==e.parent:this.parent.equals(e.parent))))}toString(){const t=null===this.parent?"":this.parent.toString();return 0===t.length?this.returnState===I.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}},d=class t extends M{static{h(this,"EmptyPredictionContext")}static instance=new t;constructor(){super(void 0,I.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(t){return this===t}toString(){return"$"}static{I.EMPTY=new t}},U=class{static{h(this,"TerminalNode")}parent=null;symbol;constructor(t){this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return T.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new T(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===r.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},m=class extends U{static{h(this,"ErrorNode")}accept(t){return t.visitErrorNode(this)}},D=class t{static{h(this,"Trees")}static toStringTree(e,s,a){s=s??null,null!==(a=a??null)&&(s=a.ruleNames);let i=t.getNodeText(e,s);i=_(i,!1);const r=e.getChildCount();if(0===r)return i;let c="("+i+" ";r>0&&(i=t.toStringTree(e.getChild(0),s),c=c.concat(i));for(let n=1;n<r;n++)i=t.toStringTree(e.getChild(n),s),c=c.concat(" "+i);return c=c.concat(")"),c}static getNodeText(t,e,s){if(e=e??null,null!==(s=s??null)&&(e=s.ruleNames),null!==e){if(t instanceof p){const s=t.ruleContext.getAltNumber();return 0!==s?e[t.ruleIndex]+":"+s:e[t.ruleIndex]}if(t instanceof m)return t.toString();if(t instanceof U&&null!==t.symbol)return t.symbol.text}const a=t.getPayload();return E(a)?a.text:String(t.getPayload())}static getChildren(t){const e=[];for(let s=0;s<t.getChildCount();s++)e.push(t.getChild(s));return e}static getAncestors(t){if(null===t.parent)return[];let e=[],s=t.parent;for(;null!==s;)e=[s].concat(e),s=s.parent;return e}static findAllTokenNodes(e,s){return t.findAllNodes(e,s,!0)}static findAllRuleNodes(e,s){return t.findAllNodes(e,s,!1)}static findAllNodes(e,s,a){const i=[];return t.doFindAllNodes(e,s,a,i),i}static descendants(e){let s=[e];for(let a=0;a<e.getChildCount();a++)s=s.concat(t.descendants(e.getChild(a)));return s}static doFindAllNodes(e,s,a,i){a&&e instanceof U?e.symbol?.type===s&&i.push(e):!a&&e instanceof p&&e.ruleIndex===s&&i.push(e);for(let r=0;r<e.getChildCount();r++)t.doFindAllNodes(e.getChild(r),s,a,i)}},p=class t{static{h(this,"ParserRuleContext")}static empty=new t(null);start=null;stop=null;children=[];invokingState;#i;constructor(t,e=-1){this.#i=t,this.invokingState=e}copyFrom(t){this.#i=t.#i,this.invokingState=t.invokingState,this.children.slice(0,this.children.length),this.start=t.start,this.stop=t.stop,t.children&&t.children.forEach((t=>{t instanceof m&&(this.children.push(t),t.parent=this)}))}enterRule(t){}exitRule(t){}addChild(t){return this.children.push(t),t}removeLastChild(){this.children.pop()}addTokenNode(t){const e=new U(t);return this.children.push(e),e.parent=this,e}addErrorNode(t){return t.parent=this,this.children.push(t),t}getChild(t,e){if(t<0||t>=this.children.length)return null;if(!e)return this.children[t];for(const s of this.children)if(s instanceof e){if(0===t)return s;t-=1}return null}getToken(t,e){if(e<0||e>=this.children.length)return null;for(const s of this.children)if("symbol"in s&&s.symbol?.type===t){if(0===e)return s;e-=1}return null}getTokens(t){const e=[];for(const s of this.children)"symbol"in s&&s.symbol?.type===t&&e.push(s);return e}getRuleContext(t,e){return this.getChild(t,e)}getRuleContexts(t){const e=[];for(const s of this.children)s instanceof t&&e.push(s);return e}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start||null===this.stop?T.INVALID_INTERVAL:new T(this.start.tokenIndex,this.stop.tokenIndex)}get parent(){return this.#i}set parent(t){this.#i=t}depth(){let t=0,e=this;for(;null!==e;)e=e.parent,t+=1;return t}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((t=>t.getText())).join("")}getAltNumber(){return q.INVALID_ALT_NUMBER}setAltNumber(t){}accept(t){return t.visitChildren(this)}toStringTree(...t){return 1===t.length?D.toStringTree(this,null,t[0]):D.toStringTree(this,t[0],t[1])}toString(t,e){t=t??null,e=e??null;let s=this,a="[";for(;null!==s&&s!==e;){if(null===t)s.isEmpty()||(a+=s.invokingState);else{const e=s.ruleIndex;a+=e>=0&&e<t.length?t[e]:""+e}null===s.parent||null===t&&s.parent.isEmpty()||(a+=" "),s=s.parent}return a+="]",a}},g=class t{static{h(this,"ObjectEqualityComparator")}static instance=new t;hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}},x=class t{static{h(this,"DefaultEqualityComparator")}static instance=new t;hashCode(t){return null==t?0:g.instance.hashCode(t)}equals(t,e){return null==t?null==e:"string"===typeof t||"number"===typeof t?t===e:g.instance.equals(t,e)}},k=class t{static{h(this,"HashSet")}static#r=.75;static#c=16;#n;#h;#E=0;#T;constructor(e,s=t.#c){if(e instanceof t){this.#n=e.#n,this.#h=e.#h.slice(0);for(let t=0;t<this.#h.length;t++){const e=this.#h[t];e&&(this.#h[t]=e.slice(0))}this.#E=e.#E,this.#T=e.#T}else this.#n=e??x.instance,this.#h=this.createBuckets(s),this.#T=Math.floor(t.#c*t.#r)}getOrAdd(t){this.#E>this.#T&&this.expand();const e=this.getBucket(t);let s=this.#h[e];if(!s)return s=[t],this.#h[e]=s,++this.#E,t;for(const a of s)if(this.#n.equals(a,t))return a;return s.push(t),++this.#E,t}get(t){if(null==t)return t;const e=this.getBucket(t),s=this.#h[e];if(s)for(const a of s)if(this.#n.equals(a,t))return a}hashCode(){let t=R.initialize();for(const e of this.#h)if(null!=e)for(const s of e){if(null==s)break;t=R.update(t,this.#n.hashCode(s))}return t=R.finish(t,this.size),t}equals(e){return e===this||e instanceof t&&(e.size===this.size&&this.containsAll(e))}add(t){return this.getOrAdd(t)===t}contains(t){return this.containsFast(t)}containsFast(t){return null!=t&&void 0!==this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(const s of this.#h)if(null!=s)for(const a of s){if(null==a)break;t[e++]=a}return t}containsAll(e){if(e instanceof t){for(const t of e.#h)if(null!=t)for(const e of t){if(null==e)break;if(!this.containsFast(e))return!1}}else for(const t of e)if(!this.containsFast(t))return!1;return!0}addAll(t){let e=!1;for(const s of t){this.getOrAdd(s)!==s&&(e=!0)}return e}clear(){this.#h=this.createBuckets(t.#c),this.#E=0,this.#T=Math.floor(t.#c*t.#r)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(const s of this.#h)if(null!=s)for(const a of s){if(null==a)break;e?e=!1:t+=", ",t+=a.toString()}return t+="}",t}toTableString(){let t="";for(const e of this.#h){if(null==e){t+="null\n";continue}t+="[";let s=!0;for(const a of e)s?s=!1:t+=" ",t+=null==a?"_":a.toString();t+="]\n"}return t}getBucket(t){return this.#n.hashCode(t)&this.#h.length-1}expand(){const e=this.#h,s=2*this.#h.length,a=this.createBuckets(s);this.#h=a,this.#T=Math.floor(s*t.#r);for(const t of e)if(t)for(const e of t){const t=this.getBucket(e);let s=this.#h[t];s||(s=[],this.#h[t]=s),s.push(e)}}get size(){return this.#E}get isEmpty(){return 0===this.#E}createBuckets(t){return new Array(t)}},H=class{static{h(this,"MapKeyEqualityComparator")}keyComparator;constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}},G=class t{static{h(this,"HashMap")}backingStore;constructor(e){this.backingStore=new k(e instanceof t?e.backingStore:new H(e))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){const e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}set(t,e){const s=this.backingStore.get({key:t,value:e});let a;return s?(a=s.value,s.value=e):this.backingStore.add({key:t,value:e}),a}setIfAbsent(t,e){const s=this.backingStore.get({key:t,value:e});let a;return s?a=s.value:this.backingStore.add({key:t,value:e}),a}values(){return this.backingStore.toArray().map((t=>t.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return this.backingStore.equals(t.backingStore)}},F=h(((t,e)=>{if(e||(e=p.empty),!e.parent||e===p.empty)return I.EMPTY;const s=F(t,e.parent),a=t.states[e.invokingState].transitions[0];return M.create(s,a.followState.stateNumber)}),"predictionContextFromRuleContext"),v=h(((t,e,s)=>{if(t.isEmpty())return t;let a=s.get(t);if(a)return a;if(a=e.get(t),a)return s.set(t,a),a;let i,r=!1,c=[];for(let n=0;n<c.length;n++){const a=v(t.getParent(n),e,s);if(r||a!==t.getParent(n)){if(!r){c=[];for(let e=0;e<t.length;e++)c[e]=t.getParent(e);r=!0}c[n]=a}}return r?(i=0===c.length?I.EMPTY:1===c.length?M.create(c[0]??void 0,t.getReturnState(0)):new P(c,t.returnStates),e.add(i),s.set(i,i),s.set(t,i),i):(e.add(t),s.set(t,t),t)}),"getCachedPredictionContext"),B=h(((t,e,s,a)=>{if(t===e)return t;if(t instanceof M&&e instanceof M)return Y(t,e,s,a);if(s){if(t instanceof d)return t;if(e instanceof d)return e}return t instanceof M&&(t=new P([t.parent],[t.returnState])),e instanceof M&&(e=new P([e.parent],[e.returnState])),y(t,e,s,a)}),"merge"),y=h(((t,e,s,a)=>{if(a){let s=a.get(t,e);if(s)return s;if(s=a.get(e,t),s)return s}let i=0,r=0,c=0,n=new Array(t.returnStates.length+e.returnStates.length).fill(0),h=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&r<e.returnStates.length;){const E=t.parents[i],T=e.parents[r];if(t.returnStates[i]===e.returnStates[r]){const e=t.returnStates[i];e===I.EMPTY_RETURN_STATE&&null===E&&null===T||null!==E&&null!==T&&E===T?(h[c]=E,n[c]=e):(h[c]=B(E,T,s,a),n[c]=e),i+=1,r+=1}else t.returnStates[i]<e.returnStates[r]?(h[c]=E,n[c]=t.returnStates[i],i+=1):(h[c]=T,n[c]=e.returnStates[r],r+=1);c+=1}if(i<t.returnStates.length)for(let T=i;T<t.returnStates.length;T++)h[c]=t.parents[T],n[c]=t.returnStates[T],c+=1;else for(let T=r;T<e.returnStates.length;T++)h[c]=e.parents[T],n[c]=e.returnStates[T],c+=1;if(c<h.length){if(1===c){const s=M.create(h[0]??void 0,n[0]);return null!==a&&a.set(t,e,s),s}h=h.slice(0,c),n=n.slice(0,c)}const E=new P(h,n);return E.equals(t)?(null!==a&&a.set(t,e,t),I.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):E.equals(e)?(null!==a&&a.set(t,e,e),e):(f(h),null!==a&&a.set(t,e,E),I.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> "+E),E)}),"mergeArrays"),f=h((t=>{const e=new G(g.instance);for(const s of t)s&&(e.containsKey(s)||e.set(s,s));for(let s=0;s<t.length;s++)t[s]&&(t[s]=e.get(t[s])??null)}),"combineCommonParents"),Y=h(((t,e,s,a)=>{if(null!==a){let s=a.get(t,e);if(null!==s)return s;if(s=a.get(e,t),null!==s)return s}const i=w(t,e,s);if(null!==i)return null!==a&&a.set(t,e,i),i;if(t.returnState===e.returnState){const i=B(t.parent,e.parent,s,a);if(i===t.parent)return t;if(i===e.parent)return e;const r=M.create(i,t.returnState);return null!==a&&a.set(t,e,r),r}{let s=null;if((t===e||null!==t.parent&&t.parent===e.parent)&&(s=t.parent),null!==s){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const r=new P([s,s],i);return null!==a&&a.set(t,e,r),r}const i=[t.returnState,e.returnState];let r=[t.parent,e.parent];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,r=[e.parent,t.parent]);const c=new P(r,i);return null!==a&&a.set(t,e,c),c}}),"mergeSingletons"),w=h(((t,e,s)=>{if(s){if(t===I.EMPTY||e===I.EMPTY)return I.EMPTY}else{if(t===I.EMPTY&&e===I.EMPTY)return I.EMPTY;if(t===I.EMPTY){const t=[e.returnState,I.EMPTY_RETURN_STATE],s=[e.parent,null];return new P(s,t)}if(e===I.EMPTY){const e=[t.returnState,I.EMPTY_RETURN_STATE],s=[t.parent,null];return new P(s,e)}}return null}),"mergeRoot"),b=class{static{h(this,"BitSet")}data;constructor(t){this.data=t?new Uint32Array(t.map((t=>t>>>0))):new Uint32Array(1)}[Symbol.iterator](){const t=this.data.length;let e=0,s=this.data[e];const a=this.data;return{[Symbol.iterator](){return this},next:()=>{for(;e<t;){if(0!==s){const t=s&-s,a=(e<<5)+this.bitCount(t-1);return s^=t,{done:!1,value:a}}e++,e<t&&(s=a[e])}return{done:!0,value:void 0}}}}clear(t){void 0===t?this.data=new Uint32Array:(this.resize(t),this.data[t>>>5]&=~(1<<t))}or(t){const e=Math.min(this.data.length,t.data.length);for(let s=0;s<e;++s)this.data[s]|=t.data[s];if(this.data.length<t.data.length){this.resize((t.data.length<<5)-1);const s=t.data.length;for(let a=e;a<s;++a)this.data[a]=t.data[a]}}get(t){if(t<0)throw new RangeError("index cannot be negative");const e=t>>>5;return!(e>=this.data.length)&&0!==(this.data[e]&1<<t%32)}get length(){let t=0;const e=this.data.length,s=this.data;for(let a=0;a<e;a++)t+=this.bitCount(s[a]);return t}values(){const t=new Array(this.length);let e=0;const s=this.data.length;for(let a=0;a<s;++a){let s=this.data[a];for(;0!==s;){const i=s&-s;t[e++]=(a<<5)+this.bitCount(i-1),s^=i}}return t}nextSetBit(t){if(t<0)throw new RangeError("index cannot be negative");for(const e of this)if(e>t)return e}set(t){if(t<0)throw new RangeError("index cannot be negative");this.resize(t),this.data[t>>>5]|=1<<t%32}toString(){return"{"+this.values().join(", ")+"}"}resize(t){const e=t+32>>>5;if(e<=this.data.length)return;const s=new Uint32Array(e);s.set(this.data),s.fill(0,this.data.length),this.data=s}bitCount(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,63&(t+=t>>16)}},W=class t{static{h(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=t.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(t){return this.stateNumber===t.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(t,e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(t,1,e)}addTransition(t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(t)}setTransition(t,e){this.transitions.splice(t,1,e)}removeTransition(t){return this.transitions.splice(t,1)[0]}},V=class t{static{h(this,"SemanticContext")}cachedHashCode;static andContext(e,s){if(null===e||e===t.NONE)return s;if(null===s||s===t.NONE)return e;const a=new X(e,s);return 1===a.operands.length?a.operands[0]:a}static orContext(e,s){if(null===e)return s;if(null===s)return e;if(e===t.NONE||s===t.NONE)return t.NONE;const a=new K(e,s);return 1===a.operands.length?a.operands[0]:a}static filterPrecedencePredicates(e){const s=[];for(const a of e)a instanceof t.PrecedencePredicate&&s.push(a);return s}evalPrecedence(t,e){return this}},X=class t extends V{static{h(this,"AND")}operands;constructor(e,s){super();const a=new k;e instanceof t?e.operands.forEach((t=>{a.add(t)})):a.add(e),s instanceof t?s.operands.forEach((t=>{a.add(t)})):a.add(s);const i=V.filterPrecedencePredicates(a);if(i.length>0){let t=null;i.forEach((e=>{(null===t||e.precedence<t.precedence)&&(t=e)})),t&&a.add(t)}this.operands=a.toArray()}equals(e){return this===e||e instanceof t&&L(this.operands,e.operands)}hashCode(){if(void 0===this.cachedHashCode){let t=R.initialize();for(const e of this.operands)t=R.updateFromComparable(t,e);t=R.update(t,3813686060),this.cachedHashCode=R.finish(t,this.operands.length+1)}return this.cachedHashCode}evaluate(t,e){for(const s of this.operands)if(!s.evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let s=!1;const a=[];for(const r of this.operands){const i=r.evalPrecedence(t,e);if(s||=i!==r,null===i)return null;i!==V.NONE&&a.push(i)}if(!s)return this;if(0===a.length)return V.NONE;let i=null;return a.forEach((t=>{i=null===i?t:V.andContext(i,t)})),i}toString(){const t=this.operands.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}},K=class t extends V{static{h(this,"OR")}operands;constructor(e,s){super();const a=new k;e instanceof t?e.operands.forEach((t=>{a.add(t)})):a.add(e),s instanceof t?s.operands.forEach((t=>{a.add(t)})):a.add(s);const i=V.filterPrecedencePredicates(a);if(i.length>0){const t=i.sort(((t,e)=>t.compareTo(e))),e=t[t.length-1];a.add(e)}this.operands=a.toArray()}equals(e){return this===e||e instanceof t&&L(this.operands,e.operands)}hashCode(){if(void 0===this.cachedHashCode){let t=R.initialize();for(const e of this.operands)t=R.updateFromComparable(t,e);t=R.update(t,3383313031),this.cachedHashCode=R.finish(t,this.operands.length+1)}return this.cachedHashCode}evaluate(t,e){for(const s of this.operands)if(s.evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let s=!1;const a=[];for(const r of this.operands){const i=r.evalPrecedence(t,e);if(s||=i!==r,i===V.NONE)return V.NONE;null!==i&&a.push(i)}if(!s)return this;if(0===a.length)return null;let i=null;return a.forEach((t=>{i=null===i?t:V.orContext(i,t)})),i}toString(){const t=this.operands.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}};(t=>{class e extends t{static{h(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(t,e,s){super(),this.ruleIndex=t??-1,this.predIndex=e??-1,this.isCtxDependent=s??!1}evaluate(t,e){const s=this.isCtxDependent?e:null;return t.sempred(s,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let t=R.initialize();t=R.update(t,this.ruleIndex),t=R.update(t,this.predIndex),t=R.update(t,this.isCtxDependent?1:0),t=R.finish(t,3),this.cachedHashCode=t}return this.cachedHashCode}equals(t){return this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}t.Predicate=e;class s extends t{static{h(this,"PrecedencePredicate")}precedence;constructor(t){super(),this.precedence=t??0}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,s){return e.precpred(s??null,this.precedence)?t.NONE:null}compareTo(t){return this.precedence-t.precedence}hashCode(){return 31+this.precedence}equals(t){return this===t||this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}t.PrecedencePredicate=s,t.NONE=new e})(V||(V={}));var Q,J=class t{static{h(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#o}cachedHashCode;#R=null;#o;constructor(t,e,s,a){this.state=e,this.alt=t.alt,this.context=s,this.#o=a??V.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,void 0!==t.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=t.precedenceFilterSuppressed)}static duplicate(e,s){return new t(e,e.state,e.context,s??e.semanticContext)}static createWithContext(e,s,a,i){return new t({alt:s},e,a,i)}static createWithConfig(e,s,a){return new t(s,e,a??s.context,s.semanticContext)}static createWithSemanticContext(e,s,a){return new t(s,e??s.state,s.context,a)}hashCode(){if(void 0===this.cachedHashCode){let t=R.initialize(7);t=R.update(t,this.state.stateNumber),t=R.update(t,this.alt),t=R.updateFromComparable(t,this.#R),t=R.updateFromComparable(t,this.semanticContext),t=R.finish(t,4),this.cachedHashCode=t}return this.cachedHashCode}get context(){return this.#R}set context(t){this.#R=t,this.cachedHashCode=void 0}equals(t){return this===t||this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}toString(t,e=!0){let s="";return e&&(s=","+this.alt),"("+this.state+s+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==V.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},Z=class t{static{h(this,"LL1Analyzer")}static hitPredicate=r.INVALID_TYPE;#A;getDecisionLookahead(e){if(!e)return;const s=e.transitions.length,a=new Array(s);for(let i=0;i<s;i++){const s=new A,r=new k;this.doLook(e.transitions[i].target,void 0,I.EMPTY,s,r,new b,!1,!1),s.length>0&&!s.contains(t.hitPredicate)&&(a[i]=s)}return a}look(t,e,s,a){this.#A=t;const i=new A,r=a?F(t,a):null;return this.doLook(e,s,r,i,new k,new b,!0,!0),i}doLook(e,s,a,i,c,n,h,E){const T=J.createWithContext(e,0,a);if(!c.get(T)){if(c.add(T),e===s){if(!a)return void i.addOne(r.EPSILON);if(a.isEmpty()&&E)return void i.addOne(r.EOF)}if(e.constructor.stateType===W.RULE_STOP){if(!a)return void i.addOne(r.EPSILON);if(a.isEmpty()&&E)return void i.addOne(r.EOF);if(a!==I.EMPTY){const t=n.get(e.ruleIndex);try{n.clear(e.ruleIndex);for(let t=0;t<a.length;t++){const e=this.#A.states[a.getReturnState(t)];this.doLook(e,s,a.getParent(t),i,c,n,h,E)}}finally{t&&n.set(e.ruleIndex)}return}}for(const T of e.transitions)switch(T.transitionType){case S.RULE:{if(n.get(T.target.ruleIndex))continue;const t=M.create(a??void 0,T.followState.stateNumber);try{n.set(T.target.ruleIndex),this.doLook(T.target,s,t,i,c,n,h,E)}finally{n.clear(T.target.ruleIndex)}break}case S.PREDICATE:case S.PRECEDENCE:h?this.doLook(T.target,s,a,i,c,n,h,E):i.addOne(t.hitPredicate);break;case S.WILDCARD:i.addRange(r.MIN_USER_TOKEN_TYPE,this.#A.maxTokenType);break;default:if(T.isEpsilon)this.doLook(T.target,s,a,i,c,n,h,E);else{let t=T.label;t&&(T instanceof O&&(t=t.complement(r.MIN_USER_TOKEN_TYPE,this.#A.maxTokenType)),i.addSet(t))}}}}},q=class t{static{h(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];static#S=new Z;constructor(t,e){this.grammarType=t,this.maxTokenType=e}nextTokens(e,s){if(!s&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const a=t.#S.look(this,e,void 0,s);return s||(e.nextTokenWithinRule=a),a}addState(t){t&&(t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new Error("Invalid state number.");const s=this.states[t];let a=this.nextTokens(s);if(!a.contains(r.EPSILON))return a;let i=e;const c=new A;for(c.addSet(a),c.removeOne(r.EPSILON);null!==i&&i.invokingState>=0&&a.contains(r.EPSILON);){const t=this.states[i.invokingState].transitions[0];a=this.nextTokens(t.followState),c.addSet(a),c.removeOne(r.EPSILON),i=i.parent}return a.contains(r.EPSILON)&&c.addOne(r.EOF),c}},j=class t{static{h(this,"KeyTypeEqualityComparer")}static instance=new t;hashCode(t){let e=7;return e=31*e+t.state.stateNumber,e=31*e+t.alt,e=31*e+t.semanticContext.hashCode(),e}equals(t,e){return t===e||t.state.stateNumber===e.state.stateNumber&&t.alt===e.alt&&t.semanticContext.equals(e.semanticContext)}},z=class{static{h(this,"ATNConfigSet")}configLookup=new k(j.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#e=-1;constructor(t){if(void 0!==t)if("boolean"===typeof t)this.fullCtx=t??!0;else{const e=t;this.addAll(e.configs),this.uniqueAlt=e.uniqueAlt,this.conflictingAlts=e.conflictingAlts,this.hasSemanticContext=e.hasSemanticContext,this.dipsIntoOuterContext=e.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(t,e=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||t.state.constructor.stateType!==W.RULE_STOP||(this.firstStopState=t),this.hasSemanticContext||=t.semanticContext!==V.NONE,this.dipsIntoOuterContext||=t.reachesIntoOuterContext;const s=this.configLookup.getOrAdd(t);if(s===t)return this.#e=-1,void this.configs.push(t);const a=!this.fullCtx,i=B(s.context,t.context,a,e);s.reachesIntoOuterContext||=t.reachesIntoOuterContext,s.precedenceFilterSuppressed||=t.precedenceFilterSuppressed,s.context=i}get elements(){return this.configs}getAlts(){const t=new b;for(const e of this.configs)t.set(e.alt);return t}getPredicates(){const t=[];for(const e of this.configs)e.semanticContext!==V.NONE&&t.push(e.semanticContext);return t}getStates(){const t=new k;for(const e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const e of this.configs)e.context=t.getCachedContext(e.context)}addAll(t){for(const e of t)this.add(e);return!1}equals(t){return this===t||!(this.fullCtx!==t.fullCtx||this.uniqueAlt!==t.uniqueAlt||this.conflictingAlts!==t.conflictingAlts||this.hasSemanticContext!==t.hasSemanticContext||this.dipsIntoOuterContext!==t.dipsIntoOuterContext||!L(this.configs,t.configs))}hashCode(){return-1===this.#e&&(this.#e=this.computeHashCode()),this.#e}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(t)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#e=-1,this.configLookup=new k(j.instance)}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return N(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==q.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let t=R.initialize();return this.configs.forEach((e=>{t=R.update(t,e.hashCode())})),t=R.finish(t,this.configs.length),t}},$=class extends W{static{h(this,"BasicState")}static stateType=W.BASIC},tt=class extends W{static{h(this,"DecisionState")}decision=-1;nonGreedy=!1},et=class extends tt{static{h(this,"BlockStartState")}endState},st=class extends W{static{h(this,"BlockEndState")}static stateType=W.BLOCK_END;startState},at=class extends W{static{h(this,"LoopEndState")}static stateType=W.LOOP_END;loopBackState},it=class extends W{static{h(this,"RuleStartState")}static stateType=W.RULE_START;stopState;isLeftRecursiveRule=!1;isPrecedenceRule=!1},rt=class extends W{static{h(this,"RuleStopState")}static stateType=W.RULE_STOP},ct=class extends tt{static{h(this,"TokensStartState")}static stateType=W.TOKEN_START},nt=class extends tt{static{h(this,"PlusLoopbackState")}static stateType=W.PLUS_LOOP_BACK},ht=class extends W{static{h(this,"StarLoopbackState")}static stateType=W.STAR_LOOP_BACK},Et=class extends tt{static{h(this,"StarLoopEntryState")}static stateType=W.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},Tt=class extends et{static{h(this,"PlusBlockStartState")}static stateType=W.PLUS_BLOCK_START;loopBackState},ot=class extends et{static{h(this,"StarBlockStartState")}static stateType=W.STAR_BLOCK_START},Rt=class extends et{static{h(this,"BasicBlockStartState")}static stateType=W.BLOCK_START},At=class extends S{static{h(this,"AtomTransition")}labelValue;#l;constructor(t,e){super(t),this.labelValue=e,this.#l=A.of(e,e)}get label(){return this.#l}get transitionType(){return S.ATOM}matches(t){return this.labelValue===t}toString(){return this.labelValue.toString()}},St=class extends S{static{h(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(t,e,s,a){super(t),this.ruleIndex=e,this.precedence=s,this.followState=a}get isEpsilon(){return!0}get transitionType(){return S.RULE}matches(t,e,s){return!1}},lt=class extends S{static{h(this,"RangeTransition")}start;stop;#l=new A;constructor(t,e,s){super(t),this.start=e,this.stop=s,this.#l.addRange(e,s)}get label(){return this.#l}get transitionType(){return S.RANGE}matches(t,e,s){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},Ot=class extends S{static{h(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(t,e,s,a){super(t),this.ruleIndex=e,this.actionIndex=void 0===s?-1:s,this.isCtxDependent=void 0!==a&&a}get isEpsilon(){return!0}get transitionType(){return S.ACTION}matches(t,e,s){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},It=class extends S{static{h(this,"EpsilonTransition")}#O;constructor(t,e=-1){super(t),this.#O=e}get outermostPrecedenceReturn(){return this.#O}get isEpsilon(){return!0}get transitionType(){return S.EPSILON}matches(){return!1}toString(){return"epsilon"}},ut=class extends S{static{h(this,"WildcardTransition")}get transitionType(){return S.WILDCARD}matches(t,e,s){return t>=e&&t<=s}toString(){return"."}},Nt=class extends S{static{h(this,"AbstractPredicateTransition")}constructor(t){super(t)}},Lt=class extends Nt{static{h(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(t,e,s,a){super(t),this.ruleIndex=e,this.predIndex=s,this.isCtxDependent=a}get isEpsilon(){return!0}matches(t,e,s){return!1}get transitionType(){return S.PREDICATE}getPredicate(){return new V.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},Ct=class extends Nt{static{h(this,"PrecedencePredicateTransition")}precedence;constructor(t,e){super(t),this.precedence=e}get isEpsilon(){return!0}matches(t,e,s){return!1}getPredicate(){return new V.PrecedencePredicate(this.precedence)}get transitionType(){return S.PRECEDENCE}toString(){return this.precedence+" >= _p"}},_t=0,Pt=1,Mt=2,dt=3,Ut=4,mt=5,Dt=6,pt=7,gt=class t{static{h(this,"LexerSkipAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=Dt}equals(t){return t===this}hashCode(){return Dt}execute(t){t.skip()}toString(){return"skip"}},xt=class t{static{h(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=_t,this.channel=t}execute(t){t.channel=this.channel}hashCode(){if(void 0===this.#e){let t=R.initialize();t=R.update(t,this.actionType),t=R.update(t,this.channel),this.#e=R.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.channel===e.channel}toString(){return"channel("+this.channel+")"}},kt=class t{static{h(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;#e;constructor(t,e){this.actionType=Pt,this.ruleIndex=t,this.actionIndex=e}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.#e){let t=R.initialize();t=R.update(t,this.actionType),t=R.update(t,this.ruleIndex),t=R.update(t,this.actionIndex),this.#e=R.finish(t,3)}return this.#e}equals(e){return this===e||e instanceof t&&(this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex)}},Ht=class t{static{h(this,"LexerMoreAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=dt}equals(t){return t===this}hashCode(){return dt}execute(t){t.more()}toString(){return"more"}},Gt=class t{static{h(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=pt,this.type=t}execute(t){t.type=this.type}hashCode(){if(void 0===this.#e){let t=R.initialize();t=R.update(t,this.actionType),t=R.update(t,this.type),this.#e=R.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.type===e.type}toString(){return"type("+this.type+")"}},Ft=class t{static{h(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=mt,this.mode=t}execute(t){t.pushMode(this.mode)}hashCode(){if(void 0===this.#e){let t=R.initialize();t=R.update(t,this.actionType),t=R.update(t,this.mode),this.#e=R.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.mode===e.mode}toString(){return"pushMode("+this.mode+")"}},vt=class t{static{h(this,"LexerPopModeAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=Ut}equals(t){return t===this}hashCode(){return Ut}execute(t){t.popMode()}toString(){return"popMode"}},Bt=class t{static{h(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Mt,this.mode=t}execute(t){t.mode=this.mode}hashCode(){if(void 0===this.#e){let t=R.initialize();t=R.update(t,this.actionType),t=R.update(t,this.mode),this.#e=R.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.mode===e.mode}toString(){return"mode("+this.mode+")"}},yt=class t{static{h(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[W.INVALID_TYPE,void 0],[W.BASIC,$],[W.RULE_START,it],[W.BLOCK_START,Rt],[W.PLUS_BLOCK_START,Tt],[W.STAR_BLOCK_START,ot],[W.TOKEN_START,ct],[W.RULE_STOP,rt],[W.BLOCK_END,st],[W.STAR_LOOP_BACK,ht],[W.STAR_LOOP_ENTRY,Et],[W.PLUS_LOOP_BACK,nt],[W.LOOP_END,at]]);static lexerActionFactoryMapper=new Map([[_t,t=>new xt(t)],[Pt,(t,e)=>new kt(t,e)],[Mt,t=>new Bt(t)],[dt,()=>Ht.instance],[Ut,()=>vt.instance],[mt,t=>new Ft(t)],[Dt,()=>gt.instance],[pt,t=>new Gt(t)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(t){t||(t={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=t}deserialize(t){this.data=t,this.checkVersion();const e=this.readATN();this.readStates(e),this.readRules(e),this.readModes(e);const s=[];return this.readSets(e,s),this.readEdges(e,s),this.readDecisions(e),this.readLexerActions(e),this.markPrecedenceDecisions(e),this.verifyATN(e),this.deserializationOptions.generateRuleBypassTransitions&&e.grammarType===q.PARSER&&(this.generateRuleBypassTransitions(e),this.verifyATN(e)),e}checkVersion(){const e=this.data[this.pos++];if(e!==t.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+e+" (expected "+t.SERIALIZED_VERSION+").")}readATN(){const t=this.data[this.pos++],e=this.data[this.pos++];return new q(t,e)}readStates(t){let e,s;const a=[],i=[],r=this.data[this.pos++];for(let h=0;h<r;h++){const e=this.data[this.pos++];if(e===W.INVALID_TYPE){t.addState(null);continue}const s=this.data[this.pos++],r=this.stateFactory(e,s);if(e===W.LOOP_END){const t=this.data[this.pos++];a.push([r,t])}else if(r instanceof et){const t=this.data[this.pos++];i.push([r,t])}t.addState(r)}for(e=0;e<a.length;e++){const s=a[e];s[0].loopBackState=t.states[s[1]]??void 0}for(e=0;e<i.length;e++){const s=i[e];s[0].endState=t.states[s[1]]}const c=this.data[this.pos++];for(e=0;e<c;e++)s=this.data[this.pos++],t.states[s].nonGreedy=!0;const n=this.data[this.pos++];for(e=0;e<n;e++)s=this.data[this.pos++],t.states[s].isPrecedenceRule=!0}readRules(t){let e;const s=this.data[this.pos++];for(t.grammarType===q.LEXER&&(t.ruleToTokenType=new Array(s),t.ruleToTokenType.fill(0)),t.ruleToStartState=new Array(s),t.ruleToStartState.fill(null),e=0;e<s;e++){const s=this.data[this.pos++];if(t.ruleToStartState[e]=t.states[s],t.grammarType===q.LEXER){const s=this.data[this.pos++];t.ruleToTokenType[e]=s}}for(t.ruleToStopState=new Array(s),t.ruleToStopState.fill(null),e=0;e<t.states.length;e++){const s=t.states[e];s instanceof rt&&(t.ruleToStopState[s.ruleIndex]=s,t.ruleToStartState[s.ruleIndex].stopState=s)}}readModes(t){const e=this.data[this.pos++];for(let s=0;s<e;s++){const e=this.data[this.pos++];t.modeToStartState.push(t.states[e])}}readSets(t,e){const s=this.data[this.pos++];for(let a=0;a<s;a++){const t=new A;e.push(t);const s=this.data[this.pos++];0!==this.data[this.pos++]&&t.addOne(-1);for(let e=0;e<s;e++){const e=this.data[this.pos++],s=this.data[this.pos++];t.addRange(e,s)}}}readEdges(t,e){let s,a,i,r,c;const n=this.data[this.pos++];for(s=0;s<n;s++){const s=this.data[this.pos++],a=this.data[this.pos++],i=this.data[this.pos++],c=this.data[this.pos++],n=this.data[this.pos++],h=this.data[this.pos++];r=this.edgeFactory(t,i,a,c,n,h,e);t.states[s].addTransition(r)}for(s=0;s<t.states.length;s++)for(i=t.states[s],a=0;a<i.transitions.length;a++){const e=i.transitions[a];if(!(e instanceof St))continue;let s=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(s=e.target.ruleIndex),r=new It(e.followState,s),t.ruleToStopState[e.target.ruleIndex].addTransition(r)}for(s=0;s<t.states.length;s++){if(i=t.states[s],i instanceof et){if(!i.endState)throw new Error("IllegalState");if(i.endState.startState)throw new Error("IllegalState");i.endState.startState=i}if(i instanceof nt)for(a=0;a<i.transitions.length;a++)c=i.transitions[a].target,c instanceof Tt&&(c.loopBackState=i);else if(i instanceof ht)for(a=0;a<i.transitions.length;a++)c=i.transitions[a].target,c instanceof Et&&(c.loopBackState=i)}}readDecisions(t){const e=this.data[this.pos++];for(let s=0;s<e;s++){const e=this.data[this.pos++],a=t.states[e];t.decisionToState.push(a),a.decision=s}}readLexerActions(t){if(t.grammarType===q.LEXER){const e=this.data[this.pos++];t.lexerActions=[];for(let s=0;s<e;s++){const e=this.data[this.pos++],s=this.data[this.pos++],a=this.data[this.pos++];t.lexerActions.push(this.lexerActionFactory(e,s,a))}}}generateRuleBypassTransitions(t){let e;const s=t.ruleToStartState.length;for(e=0;e<s;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<s;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let s,a;const i=new Rt;i.ruleIndex=e,t.addState(i);const r=new st;r.ruleIndex=e,t.addState(r),i.endState=r,t.defineDecisionState(i),r.startState=i;let c=null,n=null;if(t.ruleToStartState[e].isPrecedenceRule){for(n=null,s=0;s<t.states.length;s++)if(a=t.states[s],this.stateIsEndStateFor(a,e)){n=a,c=a.loopBackState.transitions[0];break}if(null===c)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else n=t.ruleToStopState[e];for(s=0;s<t.states.length;s++){a=t.states[s];for(const t of a.transitions)t!==c&&t.target===n&&(t.target=r)}const h=t.ruleToStartState[e],E=h.transitions.length;for(;E>0;)i.addTransition(h.transitions[E-1]),h.transitions=h.transitions.slice(-1);t.ruleToStartState[e].addTransition(new It(i)),n&&r.addTransition(new It(n));const T=new $;t.addState(T),T.addTransition(new At(r,t.ruleToTokenType[e])),i.addTransition(new It(T))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof Et))return null;const s=t.transitions[t.transitions.length-1].target;return s instanceof at&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof rt?t:null}markPrecedenceDecisions(t){for(const e of t.states)if(e instanceof Et&&t.ruleToStartState[e.ruleIndex].isPrecedenceRule){const t=e.transitions[e.transitions.length-1].target;t instanceof at&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof rt&&(e.precedenceRuleDecision=!0)}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(const e of t.states)if(null!==e)if(this.checkCondition(e.epsilonOnlyTransitions||e.transitions.length<=1),e instanceof Tt)this.checkCondition(null!==e.loopBackState);else if(e instanceof Et)if(this.checkCondition(null!==e.loopBackState),this.checkCondition(2===e.transitions.length),e.transitions[0].target instanceof ot)this.checkCondition(e.transitions[1].target instanceof at),this.checkCondition(!e.nonGreedy);else{if(!(e.transitions[0].target instanceof at))throw new Error("IllegalState");this.checkCondition(e.transitions[1].target instanceof ot),this.checkCondition(e.nonGreedy)}else e instanceof ht?(this.checkCondition(1===e.transitions.length),this.checkCondition(e.transitions[0].target instanceof Et)):e instanceof at?this.checkCondition(null!==e.loopBackState):e instanceof it?this.checkCondition(null!==e.stopState):e instanceof et?this.checkCondition(null!==e.endState):e instanceof st?this.checkCondition(null!==e.startState):e instanceof tt?this.checkCondition(e.transitions.length<=1||e.decision>=0):this.checkCondition(e.transitions.length<=1||e instanceof rt)}checkCondition(t,e){if(!t)throw void 0!==e&&null!==e||(e="IllegalState"),e}edgeFactory(t,e,s,a,i,c,n){const h=t.states[s];switch(e){case S.EPSILON:return new It(h);case S.RANGE:return new lt(h,0!==c?r.EOF:a,i);case S.RULE:return new St(t.states[a],i,c,h);case S.PREDICATE:return new Lt(h,a,i,0!==c);case S.PRECEDENCE:return new Ct(h,a);case S.ATOM:return new At(h,0!==c?r.EOF:a);case S.ACTION:return new Ot(h,a,i,0!==c);case S.SET:return new l(h,n[a]);case S.NOT_SET:return new O(h,n[a]);case S.WILDCARD:return new ut(h);default:throw new Error("The specified transition type: "+e+" is not valid.")}}stateFactory(e,s){const a=t.stateTypeMapper.get(e);if(!a)throw new Error("The specified state type "+e+" is not valid.");const i=new a;return i.ruleIndex=s,i}lexerActionFactory(e,s,a){const i=t.lexerActionFactoryMapper.get(e);if(!i)throw new Error("The specified lexer action type "+e+" is not valid.");return i(s,a)}},ft=class t extends(null){static{h(this,"OrderedHashMap")}#I=[];clear(){super.clear(),this.#I=[]}get(t){return super.get(t)}set(t,e){const s=super.set(t,e);return void 0===s&&this.#I.push(t),s}setIfAbsent(t,e){const s=super.setIfAbsent(t,e);return void 0===s&&this.#I.push(t),s}values(){return{[Symbol.iterator]:()=>{let t=0;return{next:()=>t<this.#I.length?{done:!1,value:super.get(this.#I[t++])}:{done:!0,value:void 0}}}}}keys(){return this.#I[Symbol.iterator]()}equals(e){return e instanceof t&&super.equals(e)}},Yt=(class t{static{h(this,"ATNSerializer")}atn;data=[];sets=new ft(g.instance);nonGreedyStates=[];precedenceStates=[];constructor(t){this.atn=t}static getSerialized(e){return new t(e).serialize()}static serializeSets(t,e){t.push(e.length);for(const s of e){const e=s.contains(r.EOF);e&&s.get(0).stop===r.EOF?t.push(s.length-1):t.push(s.length),t.push(e?1:0);for(const a of s){if(a.start===r.EOF){if(a.stop===r.EOF)continue;t.push(0)}else t.push(a.start);t.push(a.stop)}}}serialize(){this.addPreamble();const t=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();let e=null;return e=this.addSets(),this.addEdges(t,e),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(yt.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===q.LEXER){this.data.push(this.atn.lexerActions.length);for(const t of this.atn.lexerActions)switch(this.data.push(t.actionType),t.actionType){case _t:{const e=t.channel;this.data.push(e),this.data.push(0);break}case Pt:{const e=t.ruleIndex,s=t.actionIndex;this.data.push(e),this.data.push(s);break}case Mt:{const e=t.mode;this.data.push(e),this.data.push(0);break}case dt:case Ut:this.data.push(0),this.data.push(0);break;case mt:{const e=t.mode;this.data.push(e),this.data.push(0);break}case Dt:this.data.push(0),this.data.push(0);break;case pt:{const e=t.type;this.data.push(e),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${t.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const t of this.atn.decisionToState)this.data.push(t.stateNumber)}addEdges(...t){switch(t.length){case 0:{let t=0;this.data.push(this.atn.states.length);for(const e of this.atn.states){if(null===e){this.data.push(W.INVALID_TYPE);continue}const s=e.constructor.stateType;e instanceof tt&&e.nonGreedy&&this.nonGreedyStates.push(e.stateNumber),e instanceof it&&e.isLeftRecursiveRule&&this.precedenceStates.push(e.stateNumber),this.data.push(s),this.data.push(e.ruleIndex),e.constructor.stateType===W.LOOP_END?this.data.push(e.loopBackState.stateNumber):e instanceof et&&this.data.push(e.endState.stateNumber),e.constructor.stateType!==W.RULE_STOP&&(t+=e.transitions.length);for(const t of e.transitions){const e=t.transitionType;if(e===S.SET||e===S.NOT_SET){const e=t;this.sets.set(e.set,!0)}}}return t}case 2:{const[e,s]=t;this.data.push(e);for(const t of this.atn.states)if(null!==t&&t.constructor.stateType!==W.RULE_STOP)for(const e of t.transitions){if(null===this.atn.states[e.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const a=t.stateNumber;let i=e.target.stateNumber;const c=e.transitionType;let n=0,h=0,E=0;switch(c){case S.RULE:i=e.followState.stateNumber,n=e.target.stateNumber,h=e.ruleIndex,E=e.precedence;break;case S.PRECEDENCE:n=e.precedence;break;case S.PREDICATE:{const t=e;n=t.ruleIndex,h=t.predIndex,E=t.isCtxDependent?1:0;break}case S.RANGE:n=e.start,h=e.stop,n===r.EOF&&(n=0,E=1);break;case S.ATOM:n=e.labelValue,n===r.EOF&&(n=0,E=1);break;case S.ACTION:{const t=e;n=t.ruleIndex,h=t.actionIndex,E=t.isCtxDependent?1:0;break}case S.SET:case S.NOT_SET:n=s.get(e.set)}this.data.push(a),this.data.push(i),this.data.push(c),this.data.push(n),this.data.push(h),this.data.push(E)}break}default:throw new Error("Invalid number of arguments")}}addSets(){t.serializeSets(this.data,[...this.sets.keys()]);const e=new Map;let s=0;for(const t of this.sets.keys())e.set(t,s++);return e}addModeStartStates(){const t=this.atn.modeToStartState.length;if(this.data.push(t),t>0)for(const e of this.atn.modeToStartState)this.data.push(e.stateNumber)}addRuleStatesAndLexerTokenTypes(){const t=this.atn.ruleToStartState.length;this.data.push(t);for(let e=0;e<t;e++){const t=this.atn.ruleToStartState[e];this.data.push(t.stateNumber),this.atn.grammarType===q.LEXER&&this.data.push(this.atn.ruleToTokenType[e])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const t of this.precedenceStates)this.data.push(t)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const t of this.nonGreedyStates)this.data.push(t)}},class t{static{h(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(t){t&&(this.configs=t)}static fromState(e){const s=new t;return s.stateNumber=e,s}static fromConfigs(e){return new t(e)}static hashCode(t){return t.configs.hashCode()}static equals(t,e){return t.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber,t+=":",t+=this.configs?this.configs.toString():"",this.isAcceptState&&(t+="=>",this.predicates?t+=N(this.predicates):t+=this.prediction),t.toString()}}),wt=class{static{h(this,"ATNSimulator")}static ERROR=Yt.fromState(2147483647);atn;sharedContextCache;constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(!this.sharedContextCache)return t;const e=new G(g.instance);return v(t,this.sharedContextCache,e)}},bt=(class t{static{h(this,"CodePointTransitions")}static createWithCodePoint(e,s){return t.createWithCodePointRange(e,s,s)}static createWithCodePointRange(t,e,s){return e===s?new At(t,e):new lt(t,e,s)}},class{static{h(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(t){this.decision=t,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString1(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),Wt=class t extends J{static{h(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(e,s,a,i){return super(e,s,a??e.context,a?V.NONE:e.semanticContext),this.lexerActionExecutor=a?i:e.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=t.checkNonGreedyDecision(e,this.state),this}static createWithExecutor(e,s,a){return new t(e,s,e.context,a)}static createWithConfig(e,s,a){return new t(s,e,a??null,s.lexerActionExecutor)}static createWithContext(e,s,a){return new t({alt:s},e,a,null)}static checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||"nonGreedy"in e&&e.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let t=R.initialize(7);t=R.update(t,this.state.stateNumber),t=R.update(t,this.alt),t=R.updateFromComparable(t,this.context),t=R.updateFromComparable(t,this.semanticContext),t=R.update(t,this.passedThroughNonGreedyDecision?1:0),t=R.updateFromComparable(t,this.lexerActionExecutor),t=R.finish(t,6),this.cachedHashCode=t}return this.cachedHashCode}equals(t){return this===t||this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&t.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}},Vt=class{static{h(this,"BaseErrorListener")}syntaxError(t,e,s,a,i,r){}reportAmbiguity(t,e,s,a,i,r,c){}reportAttemptingFullContext(t,e,s,a,i,r){}reportContextSensitivity(t,e,s,a,i,r){}},Xt=class t extends Vt{static{h(this,"ConsoleErrorListener")}static instance=new t;syntaxError(t,e,s,a,i,r){console.error("line "+s+":"+a+" "+i)}},Kt=class extends Vt{constructor(t){return super(),this.delegates=t,this}static{h(this,"ProxyErrorListener")}syntaxError(t,e,s,a,i,r){this.delegates.forEach((c=>{c.syntaxError(t,e,s,a,i,r)}))}reportAmbiguity(t,e,s,a,i,r,c){this.delegates.forEach((n=>{n.reportAmbiguity(t,e,s,a,i,r,c)}))}reportAttemptingFullContext(t,e,s,a,i,r){this.delegates.forEach((c=>{c.reportAttemptingFullContext(t,e,s,a,i,r)}))}reportContextSensitivity(t,e,s,a,i,r){this.delegates.forEach((c=>{c.reportContextSensitivity(t,e,s,a,i,r)}))}},Qt=class t{static{h(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;#u=[Xt.instance];#N=-1;checkVersion(t){const e="4.13.1";e!==t&&console.error("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this.#u.push(t)}removeErrorListeners(){this.#u=[]}removeErrorListener(t){for(let e=0;e<this.#u.length;e++)if(this.#u[e]===t)return void this.#u.splice(e,1)}getErrorListeners(){return this.#u}getTokenTypeMap(){const e=this.vocabulary;let s=t.tokenTypeMapCache.get(e);if(!s){s=new Map;for(let t=0;t<=this.atn.maxTokenType;t++){const a=e.getLiteralName(t);a&&s.set(a,t);const i=e.getSymbolicName(t);i&&s.set(i,t)}s.set("EOF",r.EOF),t.tokenTypeMapCache.set(e,s)}return s}getRuleIndexMap(){const e=this.ruleNames;let s=t.ruleIndexMapCache.get(e);return s||(s=new Map,e.forEach(((t,e)=>s.set(t,e))),t.ruleIndexMapCache.set(e,s)),s}getTokenType(t){const e=this.getTokenTypeMap().get(t);return e||r.INVALID_TYPE}getErrorHeader(t){const e=t.offendingToken?.line,s=t.offendingToken?.column;return"line "+e+":"+s}get errorListenerDispatch(){return new Kt(this.#u)}sempred(t,e,s){return!0}precpred(t,e){return!0}action(t,e,s){}get atn(){return this.interpreter.atn}get state(){return this.#N}set state(t){this.#N=t}getSerializedATN(){throw new Error("there is no serialized ATN")}getParseInfo(){return null}},Jt=class t{static{h(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#L;constructor(t){this.type=t.type,this.source=t.source,this.tokenIndex=t.tokenIndex??-1,this.line=t.line??0,this.column=t.column??-1,this.channel=t.channel??r.DEFAULT_CHANNEL,this.start=t.start??0,this.stop=t.stop??0,this.#L=t.text,null!==t.source[0]&&(this.line=t.source[0].line,this.column=t.source[0].column)}static fromToken(e){let s;return s="source"in e?e.source:[e.tokenSource,e.inputStream],new t({type:e.type,line:e.line,tokenIndex:e.tokenIndex,column:e.column,channel:e.channel,start:e.start,stop:e.stop,text:e.text,source:s})}static fromType(e,s){return new t({type:e,text:s,source:t.EMPTY_SOURCE})}static fromSource(e,s,a,i,r){return new t({type:s,channel:a,start:i,stop:r,source:e})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}clone(){return new t({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#L})}toString(t){let e="";this.channel>0&&(e=",channel="+this.channel);let s=this.text;s?(s=s.replace(/\n/g,"\\n"),s=s.replace(/\r/g,"\\r"),s=s.replace(/\t/g,"\\t")):s="<no text>";let a=String(this.type);return t&&(a=t.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+s+"',<"+a+">"+e+","+this.line+":"+this.column+"]"}get text(){if(this.#L)return this.#L;const t=this.inputStream;if(!t)return;const e=t.size;return this.start<e&&this.stop<e?t.getTextFromRange(this.start,this.stop):"<EOF>"}set text(t){this.#L=t}setText(t){this.#L=t}setType(t){this.type=t}setLine(t){this.line=t}setCharPositionInLine(t){this.column=t}setChannel(t){this.channel=t}setTokenIndex(t){this.tokenIndex=t}},Zt=class t{static{h(this,"CommonTokenFactory")}static DEFAULT=new t;copyText=!1;constructor(t){this.copyText=t??!1}create(t,e,s,a,i,r,c,n){const h=Jt.fromSource(t,e,a,i,r);return h.line=c,h.column=n,s?h.text=s:this.copyText&&null!==t[1]&&(h.text=t[1].getTextFromRange(i,r)),h}},qt=class t extends Error{static{h(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(e){super(e.message),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},jt=class extends qt{static{h(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(t,e,s,a){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=s,this.deadEndConfigs=a}toString(){let t="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getTextFromRange(this.startIndex,this.startIndex)),"LexerNoViableAltException"+t}},zt=class t extends Qt{static{h(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL;static HIDDEN=r.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=t.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;#C;#_=null;#P=!1;#M=[];#L;#d;constructor(t,e){super(),this.options={...this.options,...e},this.#C=t,this.#d=Zt.DEFAULT}reset(e=!0){e&&this.#C.seek(0),this.#_=null,this.type=r.INVALID_TYPE,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#L=void 0,this.#P=!1,this.mode=t.DEFAULT_MODE,this.#M=[],this.interpreter.reset()}nextToken(){if(null===this.#C)throw new Error("nextToken requires a non-null input stream.");const e=this.#C.mark();try{for(;;){if(this.#P)return this.emitEOF(),this.#_;this.#_=null,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.#C.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#L=void 0;let e=!1;for(;;){this.type=r.INVALID_TYPE;let a=t.SKIP;try{a=this.interpreter.match(this.#C,this.mode)}catch(s){if(!(s instanceof jt))throw s;this.notifyListeners(s),this.recover(s)}if(this.#C.LA(1)===r.EOF&&(this.#P=!0),this.type===r.INVALID_TYPE&&(this.type=a),this.type===t.SKIP){e=!0;break}if(this.type!==t.MORE)break}if(!e)return null===this.#_&&this.emit(),this.#_}}finally{this.#C.release(e)}}skip(){this.type=t.SKIP}more(){this.type=t.MORE}pushMode(t){ne.debug&&console.log("pushMode "+t),this.#M.push(this.mode),this.mode=t}popMode(){if(0===this.#M.length)throw new Error("Empty Stack");return ne.debug&&console.log("popMode back to "+this.#M.slice(0,-1)),this.mode=this.#M.pop(),this.mode}get modeStack(){return this.#M}emitToken(t){this.#_=t}emit(){const t=this.#d.create([this,this.#C],this.type,this.#L,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(t),t}emitEOF(){const t=this.#d.create([this,this.#C],r.EOF,void 0,r.DEFAULT_CHANNEL,this.#C.index,this.#C.index-1,this.line,this.column);return this.emitToken(t),t}getCharIndex(){return this.#C.index}getAllTokens(){const t=[];let e=this.nextToken();for(;e.type!==r.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){const e=this.tokenStartCharIndex,s=this.#C.index,a=this.#C.getTextFromRange(e,s),i="token recognition error at: '"+this.getErrorDisplay(a)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,i,t)}getErrorDisplay(t){return t}getErrorDisplayForChar(t){return t.charCodeAt(0)===r.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(t){this.#C.LA(1)!==r.EOF&&(t instanceof jt?this.interpreter.consume(this.#C):this.#C.consume())}get inputStream(){return this.#C}set inputStream(t){this.reset(!1),this.#C=t}set tokenFactory(t){this.#d=t}get tokenFactory(){return this.#d}get sourceName(){return this.#C.getSourceName()}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get column(){return this.interpreter.column}set column(t){this.interpreter.column=t}get text(){return this.#L?this.#L:this.interpreter.getText(this.#C)}set text(t){this.#L=t}},$t=class t extends Error{static{h(this,"ParseCancellationException")}constructor(e){super(),Error.captureStackTrace(this,t)}},te=(class{static{h(this,"InterpreterDataReader")}static parseInterpreterData(t){const e=[],s=[],a=[],i=[],r=[],c=t.split("\n");let n=0,h=c[n++];if("token literal names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=c[n++],0===h.length)break;i.push("null"===h?null:h)}if(h=c[n++],"token symbolic names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=c[n++],0===h.length)break;r.push("null"===h?null:h)}if(h=c[n++],"rule names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=c[n++],0===h.length)break;e.push(h)}if(h=c[n++],"channel names:"===h){for(;;){if(h=c[n++],0===h.length)break;s.push(h)}if(h=c[n++],"mode names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=c[n++],0===h.length)break;a.push(h)}}if(h=c[n++],"atn:"!==h)throw new Error("Unexpected data entry");h=c[n++];const E=h.split(",");let T;const R=[];for(let o=0;o<E.length;++o){const t=E[o];T=t.startsWith("[")?Number(t.substring(1).trim()):t.endsWith("]")?Number(t.substring(0,t.length-1).trim()):Number(t.trim()),R[o]=T}return{atn:(new yt).deserialize(R),vocabulary:new o(i,r,[]),ruleNames:e,channels:s.length>0?s:void 0,modes:a.length>0?a:void 0}}},class t extends k{static{h(this,"OrderedHashSet")}#U=[];getOrAdd(t){const e=this.size,s=super.getOrAdd(t);return this.size>e&&this.#U.push(t),s}equals(e){return e instanceof t&&super.equals(e)}add(t){return!!super.add(t)&&(this.#U.push(t),!0)}clear(){super.clear(),this.#U=[]}*[Symbol.iterator](){yield*this.#U}toArray(){return this.#U.slice(0)}}),ee=class extends z{static{h(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new te}},se=class t{static{h(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;#e;constructor(t,e){this.actionType=e.actionType,this.offset=t,this.action=e}execute(t){this.action.execute(t)}hashCode(){if(void 0===this.#e){let t=R.initialize();t=R.update(t,this.offset),t=R.updateFromComparable(t,this.action),this.#e=R.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&(this.offset===e.offset&&this.action===e.action)}},ae=class t{static{h(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;#e;constructor(t){return this.actionType=-1,this.lexerActions=t??[],this}static append(e,s){if(null===e)return new t([s]);const a=e.lexerActions.concat([s]);return new t(a)}fixOffsetBeforeMatch(e){let s=null;for(let t=0;t<this.lexerActions.length;t++)!this.lexerActions[t].isPositionDependent||this.lexerActions[t]instanceof se||(null===s&&(s=this.lexerActions.concat([])),s[t]=new se(e,this.lexerActions[t]));return null===s?this:new t(s)}execute(t,e,s){if(void 0===e||void 0===s)return;let a=!1;const i=e.index;try{for(const r of this.lexerActions){let c=r;if(r instanceof se){const t=r.offset;e.seek(s+t),c=r.action,a=s+t!==i}else r.isPositionDependent&&(e.seek(i),a=!1);c.execute(t)}}finally{a&&e.seek(i)}}hashCode(){if(void 0===this.#e){let t=R.initialize(7);for(const e of this.lexerActions)t=R.update(t,e.hashCode());this.#e=R.finish(t,this.lexerActions.length)}return this.#e}equals(t){return this===t||this.#e===t.#e&&(this.lexerActions.length===t.lexerActions.length&&this.lexerActions.every(((e,s)=>e.equals(t.lexerActions[s]))))}},ie=class{static{h(this,"DFASerializer")}dfa;vocabulary;constructor(t,e){this.dfa=t,this.vocabulary=e}toString(){if(!this.dfa.s0)return"";let t="";const e=this.dfa.getStates();for(const s of e){let e=0;e=s.edges.length;for(let a=0;a<e;a++){const e=s.edges[a];if(e&&2147483647!==e.stateNumber){t+=this.getStateString(s);t+="-",t+=this.getEdgeLabel(a),t+="->",t+=this.getStateString(e),t+="\n"}}}return t}getEdgeLabel(t){return`${this.vocabulary.getDisplayName(t-1)}`}getStateString(t){const e=t.stateNumber,s=(t.isAcceptState?":":"")+"s"+e+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?`${s}=>${t.predicates.toString()}`:`${s}=>${t.prediction}`:`${s}`}},re=class extends ie{static{h(this,"LexerDFASerializer")}constructor(t){super(t,o.EMPTY_VOCABULARY)}getEdgeLabel=t=>"'"+String.fromCharCode(t)+"'"},ce=class{static{h(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;#m=new Map;constructor(t,e){this.atnStartState=t,this.decision=e??0;let s=!1;t instanceof Et&&t.precedenceRuleDecision&&(s=!0,this.s0=Yt.fromState(-1)),this.isPrecedenceDfa=s}[Symbol.iterator]=()=>this.#m.values()[Symbol.iterator]();getPrecedenceStartState=t=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||t<0||t>=this.s0.edges.length))return this.s0.edges[t]};setPrecedenceStartState=(t,e)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||!this.s0||(this.s0.edges[t]=e)};getStates(){const t=[...this.#m.values()];return t.sort(((t,e)=>t.stateNumber-e.stateNumber)),t}getState(t){return this.#m.get(t.configs.hashCode())??null}getStateForConfigs(t){return this.#m.get(t.hashCode())??null}addState(t){const e=t.configs.hashCode();this.#m.has(e)||(this.#m.set(e,t),t.stateNumber=this.#m.size-1)}toString(t){if(!t)return this.toString(o.EMPTY_VOCABULARY);if(!this.s0)return"";return new ie(this,t).toString()??""}toLexerString(){if(!this.s0)return"";return new re(this).toString()??""}get length(){return this.#m.size}},ne=class t extends wt{static{h(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=zt.DEFAULT_MODE;#D;#p;#g;constructor(t,e,s,a){super(e,a),this.decisionToDFA=s,this.recognizer=t,t&&(this.#p=t.options)}match(t,e){this.mode=e;const s=t.mark();try{this.startIndex=t.index,this.#D=void 0;const s=this.decisionToDFA[e];return s.s0?this.execATN(t,s.s0):this.matchATN(t)}finally{t.release(s)}}reset(){this.#D=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=zt.DEFAULT_MODE}clearDFA(){for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new ce(this.atn.getDecisionState(t),t)}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getTextFromRange(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return t===r.EOF?"EOF":"'"+String.fromCharCode(t)+"'"}matchATN(e){const s=this.atn.modeToStartState[this.mode];t.debug&&console.log("matchATN mode "+this.mode+" start: "+s);const a=this.mode,i=this.computeStartState(e,s),r=i.hasSemanticContext;i.hasSemanticContext=!1;const c=this.addDFAState(i);r||(this.decisionToDFA[this.mode].s0=c);const n=this.execATN(e,c);return t.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[a].toLexerString()),n}execATN(e,s){t.debug&&console.log("start state closure="+s.configs),s.isAcceptState&&this.captureSimState(e,s);let a=e.LA(1);for(;;){t.debug&&console.log("execATN loop starting closure: "+s.configs);let i=this.getExistingTargetState(s,a);if(i||(i=this.computeTargetState(e,s,a)),i===wt.ERROR)break;if(a!==r.EOF&&this.consume(e),i.isAcceptState&&(this.captureSimState(e,i),a===r.EOF))break;a=e.LA(1),s=i}return this.failOrAccept(e,s.configs,a)}getExistingTargetState(e,s){if(s>=this.#p.minDFAEdge&&s<=this.#p.maxDFAEdge){const a=e.edges[s-this.#p.minDFAEdge];return t.debug&&a&&console.log("reuse state "+e.stateNumber+" edge to "+a.stateNumber),a}}computeTargetState(t,e,s){const a=new ee;return this.getReachableConfigSet(t,e.configs,a,s),0===a.length?(a.hasSemanticContext||this.addDFAEdge(e,s,wt.ERROR),wt.ERROR):this.addDFAEdge(e,s,null,a)}failOrAccept(t,e,s){if(this.#D?.dfaState){const{dfaState:e,index:s,line:a,column:i}=this.#D;return this.accept(t,e.lexerActionExecutor,this.startIndex,s,a,i),e.prediction}if(s===r.EOF&&t.index===this.startIndex)return r.EOF;throw new jt(this.recognizer,t,this.startIndex,e)}getReachableConfigSet(e,s,a,i){let c=q.INVALID_ALT_NUMBER;for(const n of s){const s=n.alt===c;if(!s||!n.passedThroughNonGreedyDecision){t.debug&&console.log("testing %s at %s\n",this.getTokenName(i),n.toString(this.recognizer,!0));for(const t of n.state.transitions){const h=this.getReachableTarget(t,i);if(h){let t=n.lexerActionExecutor;t&&(t=t.fixOffsetBeforeMatch(e.index-this.startIndex));const E=i===r.EOF,T=Wt.createWithExecutor(n,h,t);this.closure(e,T,a,s,!0,E)&&(c=n.alt)}}}}}accept(e,s,a,i,r,c){t.debug&&console.log("ACTION %s\n",s),e.seek(i),this.line=r,this.column=c,s&&this.recognizer&&s.execute(this.recognizer,e,a)}getReachableTarget(t,e){return t.matches(e,this.#p.minCodePoint,this.#p.maxCodePoint)?t.target:void 0}computeStartState(t,e){const s=I.EMPTY,a=new ee;for(let i=0;i<e.transitions.length;i++){const r=e.transitions[i].target,c=Wt.createWithContext(r,i+1,s);this.closure(t,c,a,!1,!1,!1)}return a}closure(e,s,a,i,r,c){let n=null;if(t.debug&&console.log("closure("+s.toString(this.recognizer,!0)+")"),s.state.constructor.stateType===W.RULE_STOP){if(t.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[s.state.ruleIndex],s):console.log("closure at rule stop %s\n",s)),!s.context||s.context.hasEmptyPath()){if(!s.context||s.context.isEmpty())return a.add(s),!0;a.add(Wt.createWithConfig(s.state,s,I.EMPTY)),i=!0}if(s.context&&!s.context.isEmpty())for(let t=0;t<s.context.length;t++)if(s.context.getReturnState(t)!==I.EMPTY_RETURN_STATE){const h=s.context.getParent(t),E=this.atn.states[s.context.getReturnState(t)];n=Wt.createWithConfig(E,s,h),i=this.closure(e,n,a,i,r,c)}return i}s.state.epsilonOnlyTransitions||i&&s.passedThroughNonGreedyDecision||a.add(s);for(const t of s.state.transitions)n=this.getEpsilonTarget(e,s,t,a,r,c),n&&(i=this.closure(e,n,a,i,r,c));return i}getEpsilonTarget(t,e,s,a,i,r){this.#g||this.setupATNFactoryLookup();const c=this.#g[s.transitionType];return c?c(t,e,s,a,i,r):null}setupATNFactoryLookup(){this.#g=[],this.#g[S.RULE]=(t,e,s)=>{const a=M.create(e.context??void 0,s.followState.stateNumber);return Wt.createWithConfig(s.target,e,a)},this.#g[S.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.#g[S.PREDICATE]=(e,s,a,i,r)=>{const c=a;return t.debug&&console.log("EVAL rule "+c.ruleIndex+":"+c.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,c.ruleIndex,c.predIndex,r)?Wt.createWithConfig(a.target,s):null},this.#g[S.ACTION]=(t,e,s)=>{if(null===e.context||e.context.hasEmptyPath()){const t=ae.append(e.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);return Wt.createWithExecutor(e,s.target,t)}return Wt.createWithConfig(s.target,e)},this.#g[S.EPSILON]=(t,e,s)=>Wt.createWithConfig(s.target,e);const e=h(((t,e,s,a,i,c)=>c&&s.matches(r.EOF,this.#p.minCodePoint,this.#p.maxCodePoint)?Wt.createWithConfig(s.target,e):null),"simple");this.#g[S.ATOM]=e,this.#g[S.RANGE]=e,this.#g[S.SET]=e}evaluatePredicate(t,e,s,a){if(!this.recognizer)return!0;if(!a)return this.recognizer.sempred(null,e,s);const i=this.column,r=this.line,c=t.index,n=t.mark();try{return this.consume(t),this.recognizer.sempred(null,e,s)}finally{this.column=i,this.line=r,t.seek(c),t.release(n)}}captureSimState(t,e){this.#D={index:t.index,line:this.line,column:this.column,dfaState:e}}addDFAEdge(e,s,a,i){if(!a&&i){const t=i.hasSemanticContext;if(i.hasSemanticContext=!1,a=this.addDFAState(i),t)return a}return s<this.#p.minDFAEdge||s>this.#p.maxDFAEdge||(t.debug&&console.log("EDGE "+e+" -> "+a+" upon "+s),e.edges[s-this.#p.minDFAEdge]=a),a}addDFAState(t){const e=this.decisionToDFA[this.mode],s=e.getStateForConfigs(t);if(s)return s;const a=Yt.fromConfigs(t),i=t.firstStopState;return i&&(a.isAcceptState=!0,a.lexerActionExecutor=i.lexerActionExecutor,a.prediction=this.atn.ruleToTokenType[i.state.ruleIndex]),t.setReadonly(!0),e.addState(a),a}},he=(class{static{h(this,"ParseInfo")}atnSimulator;constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const t=this.atnSimulator.getDecisionInfo(),e=new Array;for(let s=0;s<t.length;s++){t[s].llFallback>0&&e.push(s)}return e}getTotalTimeInPrediction(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.timeInPrediction;return e}getTotalSLLLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllTotalLook;return e}getTotalLLLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.llTotalLook;return e}getTotalSLLATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllATNTransitions;return e}getTotalLLATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.llATNTransitions;return e}getTotalATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllATNTransitions,e+=s.llATNTransitions;return e}getDFASize(t){if(void 0===t){let t=0;const e=this.atnSimulator.decisionToDFA;for(let s=0;s<e.length;s++)t+=this.getDFASize(s);return t}return this.atnSimulator.decisionToDFA[t].length}},class extends qt{static{h(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(t,e=null,s=null,a=null,i=null,r=null){r=r??t.context,a=a??t.getCurrentToken(),s=s??t.getCurrentToken(),super({message:"",recognizer:t,input:e=e??t.inputStream,ctx:r}),this.deadEndConfigs=i,this.startToken=s,this.offendingToken=a}}),Ee=class{static{h(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new G(x.instance)}get(t,e){const s=this.cacheMap.get(t)??null;return null===s?null:s.get(e)??null}set(t,e,s){let a=this.cacheMap.get(t);a||(a=new G(x.instance),this.cacheMap.set(t,a)),a.set(e,s)}},Te=class t{static{h(this,"SubsetEqualityComparer")}static instance=new t;hashCode(t){let e=R.initialize(7);return e=R.update(e,t.state.stateNumber),e=R.updateFromComparable(e,t.context),e=R.finish(e,2),e}equals(t,e){return t.state.stateNumber===e.state.stateNumber&&(t.context?.equals(e.context)??!0)}},oe=class t{static{h(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(e,s){if(t.allConfigsInRuleStopStates(s))return!0;if(e===t.SLL&&s.hasSemanticContext){const t=new z;for(let e of s)e=J.duplicate(e,V.NONE),t.add(e);s=t}const a=t.getConflictingAltSubsets(s);return t.hasConflictingAltSet(a)&&!t.hasStateAssociatedWithOneAlt(s)}static hasConfigInRuleStopState(t){for(const e of t)if(e.state instanceof rt)return!0;return!1}static allConfigsInRuleStopStates(t){for(const e of t)if(!(e.state instanceof rt))return!1;return!0}static resolvesToJustOneViableAlt(e){return t.getSingleViableAlt(e)}static allSubsetsConflict(e){return!t.hasNonConflictingAltSet(e)}static hasNonConflictingAltSet(t){for(const e of t)if(1===e.length)return!0;return!1}static hasConflictingAltSet(t){for(const e of t)if(e.length>1)return!0;return!1}static allSubsetsEqual(t){let e=null;for(const s of t)if(null===e)e=s;else if(s!==e)return!1;return!0}static getUniqueAlt(e){const s=t.getAlts(e);return 1===s.length?s.nextSetBit(0):q.INVALID_ALT_NUMBER}static getAlts(t){const e=new b;return t.forEach((t=>{e.or(t)})),e}static getConflictingAltSubsets(t){const e=new G(Te.instance);for(const s of t){let t=e.get(s);t||(t=new b,e.set(s,t)),t.set(s.alt)}return Array.from(e.values())}static getStateToAltMap(t){const e=new G(g.instance);for(const s of t){let t=e.get(s.state);t||(t=new b,e.set(s.state,t)),t.set(s.alt)}return e}static hasStateAssociatedWithOneAlt(t){const e={};for(const s of t){const t=s.state.stateNumber;e[t]||(e[t]=0),e[t]++}return Object.values(e).some((t=>1===t))}static getSingleViableAlt(t){let e=null;for(const s of t){const t=s.nextSetBit(0);if(null===e)e=t;else if(e!==t)return q.INVALID_ALT_NUMBER}return e??0}},Re=class t extends wt{static{h(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new Ee;predictionState;constructor(t,e,s,a){super(e,a),this.parser=t,this.decisionToDFA=s}static getUniqueAlt(t){let e=q.INVALID_ALT_NUMBER;for(const s of t)if(e===q.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return q.INVALID_ALT_NUMBER;return e}reset(){}clearDFA(){for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new ce(this.atn.getDecisionState(t),t)}adaptivePredict(e,s,a){(t.debug||t.traceATNSimulator)&&console.log("adaptivePredict decision "+s+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column);const i=this.decisionToDFA[s];this.predictionState={input:e,startIndex:e.index,outerContext:a??void 0,dfa:i};const r=e.mark(),c=e.index;try{let s;if(s=i.isPrecedenceDfa?i.getPrecedenceStartState(this.parser.getPrecedence()):i.s0,!s){a||(a=p.empty),t.debug&&console.log("predictATN decision "+i.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+a.toString(this.parser.ruleNames));const r=!1;let c=this.computeStartState(i.atnStartState,p.empty,r);i.isPrecedenceDfa?(c=this.applyPrecedenceFilter(c),s=this.addDFAState(i,Yt.fromConfigs(c)),i.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(i,Yt.fromConfigs(c)),i.s0=s)}const r=this.execATN(i,s,e,c,a);return t.debug&&console.log("DFA after predictATN: "+i.toString(this.parser.vocabulary)),r}finally{this.predictionState.dfa=void 0,this.mergeCache=new Ee,e.seek(c),e.release(r)}}execATN(e,s,a,i,c){let n;(t.debug||t.traceATNSimulator)&&console.log("execATN decision "+e.decision+", DFA state "+s+", LA(1)=="+this.getLookaheadName(a)+" line "+a.LT(1).line+":"+a.LT(1).column);let h=s,E=a.LA(1);for(;;){let s=this.getExistingTargetState(h,E);if(s||(s=this.computeTargetState(e,h,E)),s===wt.ERROR){const t=this.noViableAlt(a,c,h.configs,i);if(a.seek(i),n=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h.configs,c),n!==q.INVALID_ALT_NUMBER)return n;throw t}if(s.requiresFullContext&&this.predictionMode!==oe.SLL){let r=null;if(null!==s.predicates){t.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=a.index;if(e!==i&&a.seek(i),r=this.evalSemanticContext(s.predicates,c,!0),1===r.length)return t.debug&&console.log("Full LL avoided"),r.nextSetBit(0);e!==i&&a.seek(e)}t.dfaDebug&&console.log("ctx sensitive state "+c+" in "+s);const h=!0,E=this.computeStartState(e.atnStartState,c,h);return this.reportAttemptingFullContext(e,r,s.configs,i,a.index),n=this.execATNWithFullContext(e,s,E,a,i,c),n}if(s.isAcceptState){if(null===s.predicates)return s.prediction;const t=a.index;a.seek(i);const r=this.evalSemanticContext(s.predicates,c,!0);if(0===r.length)throw this.noViableAlt(a,c,s.configs,i);return 1===r.length||this.reportAmbiguity(e,s,i,t,!1,r,s.configs),r.nextSetBit(0)}h=s,E!==r.EOF&&(a.consume(),E=a.LA(1))}}getExistingTargetState(t,e){return t.edges[e+1]}computeTargetState(e,s,a){const i=this.computeReachSet(s.configs,a,!1);if(null===i)return this.addDFAEdge(e,s,a,wt.ERROR),wt.ERROR;let r=Yt.fromConfigs(i);const c=t.getUniqueAlt(i);if(t.debug){const t=oe.getConflictingAltSubsets(i);console.log("SLL altSubSets="+N(t)+", configs="+i+", predict="+c+", allSubsetsConflict="+oe.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(i))}return c!==q.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=c,r.prediction=c):oe.hasSLLConflictTerminatingPrediction(this.predictionMode,i)&&(r.configs.conflictingAlts=this.getConflictingAlts(i),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.nextSetBit(0)),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(e.decision)),null!==r.predicates&&(r.prediction=q.INVALID_ALT_NUMBER)),r=this.addDFAEdge(e,s,a,r),r}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getTokenName(t){if(t===r.EOF)return"EOF";const e=(this.parser?.vocabulary??o.EMPTY_VOCABULARY).getDisplayName(t);return e===t.toString()?e:e+"<"+t+">"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.deadEndConfigs;for(const s of e){let t="no edges";if(s.state.transitions.length>0){const e=s.state.transitions[0];if(e instanceof At)t="Atom "+this.getTokenName(e.labelValue);else if(e instanceof l){t=(e instanceof O?"~":"")+"Set "+e.label}}console.error(s.toString(this.parser,!0)+":"+t)}}predicateDFAState(t,e){const s=e.transitions.length,a=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(a,t.configs,s);null!==i?(t.predicates=this.getPredicatePredictions(a,i),t.prediction=q.INVALID_ALT_NUMBER):t.prediction=a.nextSetBit(0)}execATNWithFullContext(e,s,a,i,c,n){(t.debug||t.traceATNSimulator)&&console.log("execATNWithFullContext "+a);let h,E=!1,T=a;i.seek(c);let o=i.LA(1),R=-1;for(;;){if(h=this.computeReachSet(T,o,true),null===h){const t=this.noViableAlt(i,n,T,c);i.seek(c);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(T,n);if(e!==q.INVALID_ALT_NUMBER)return e;throw t}const e=oe.getConflictingAltSubsets(h);if(t.debug&&console.log("LL altSubSets="+e+", predict="+oe.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+oe.resolvesToJustOneViableAlt(e)),h.uniqueAlt=t.getUniqueAlt(h),h.uniqueAlt!==q.INVALID_ALT_NUMBER){R=h.uniqueAlt;break}if(this.predictionMode!==oe.LL_EXACT_AMBIG_DETECTION){if(R=oe.resolvesToJustOneViableAlt(e),R!==q.INVALID_ALT_NUMBER)break}else if(oe.allSubsetsConflict(e)&&oe.allSubsetsEqual(e)){E=!0,R=oe.getSingleViableAlt(e);break}T=h,o!==r.EOF&&(i.consume(),o=i.LA(1))}return h.uniqueAlt!==q.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,R,h,c,i.index),R):(this.reportAmbiguity(e,s,c,i.index,E,void 0,h),R)}computeReachSet(e,s,a){t.debug&&console.log("in computeReachSet, starting closure: "+e);const i=new z(a);let c=null;for(const h of e)if(t.debug&&console.log("testing "+this.getTokenName(s)+" at "+h),h.state instanceof rt)(a||s===r.EOF)&&(null===c&&(c=[]),c.push(h));else for(const e of h.state.transitions){const a=this.getReachableTarget(e,s);if(null!==a){const e=J.createWithConfig(a,h);i.add(e,this.mergeCache),t.debugAdd&&console.log("added "+e+" to intermediate")}}let n=null;if(null===c&&s!==r.EOF&&(1===i.length||t.getUniqueAlt(i)!==q.INVALID_ALT_NUMBER)&&(n=i),null===n){n=new z(a);const t=new k,e=s===r.EOF;for(const s of i)this.closure(s,n,t,!1,a,e)}if(s===r.EOF&&(n=this.removeAllConfigsNotInRuleStopState(n,n===i)),null!==c&&(!a||!oe.hasConfigInRuleStopState(n)))for(const t of c)n.add(t,this.mergeCache);return t.traceATNSimulator&&console.log("computeReachSet "+e+" -> "+n),0===n.length?null:n}removeAllConfigsNotInRuleStopState(t,e){if(oe.allConfigsInRuleStopStates(t))return t;const s=new z(t.fullCtx);for(const a of t)if(a.state instanceof rt)s.add(a,this.mergeCache);else if(e&&a.state.epsilonOnlyTransitions){if(this.atn.nextTokens(a.state).contains(r.EPSILON)){const t=this.atn.ruleToStopState[a.state.ruleIndex];s.add(J.createWithConfig(t,a),this.mergeCache)}}return s}computeStartState(e,s,a){const i=F(this.atn,s),r=new z(a);t.traceATNSimulator&&console.log("computeStartState from ATN state "+e+" initialContext="+i.toString(this.parser));for(let t=0;t<e.transitions.length;t++){const s=e.transitions[t].target,c=J.createWithContext(s,t+1,i),n=new k;this.closure(c,r,n,!0,a,!1)}return r}applyPrecedenceFilter(t){const e=[],s=new z(t.fullCtx);for(const a of t){if(1!==a.alt)continue;const t=a.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==t&&(e[a.state.stateNumber]=a.context,t!==a.semanticContext?s.add(J.duplicate(a,t),this.mergeCache):s.add(a,this.mergeCache))}for(const a of t)if(1!==a.alt){if(!a.precedenceFilterSuppressed){const t=e[a.state.stateNumber]||null;if(null!==t&&t.equals(a.context))continue}s.add(a,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(e,s,a){let i=[];for(const t of s)e.get(t.alt)&&(i[t.alt]=V.orContext(i[t.alt]??null,t.semanticContext));let r=0;for(let t=1;t<a+1;t++){const e=i[t]??null;null===e?i[t]=V.NONE:e!==V.NONE&&(r+=1)}return 0===r&&(i=null),t.debug&&console.log("getPredsForAmbigAlts result "+N(i)),i}getPredicatePredictions(t,e){const s=[];let a=!1;for(let i=1;i<e.length;i++){const r=e[i];t.get(i)&&s.push({pred:r,alt:i}),r!==V.NONE&&(a=!0)}return a?s:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const s=this.splitAccordingToSemanticValidity(t,e),a=s[0],i=s[1];let r=this.getAltThatFinishedDecisionEntryRule(a);return r!==q.INVALID_ALT_NUMBER||i.length>0&&(r=this.getAltThatFinishedDecisionEntryRule(i),r!==q.INVALID_ALT_NUMBER)?r:q.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(const s of t)(s.reachesIntoOuterContext||s.state instanceof rt&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt);return 0===e.length?q.INVALID_ALT_NUMBER:Math.min(...e)}splitAccordingToSemanticValidity(t,e){const s=new z(t.fullCtx),a=new z(t.fullCtx);for(const i of t)if(i.semanticContext!==V.NONE){i.semanticContext.evaluate(this.parser,e)?s.add(i):a.add(i)}else s.add(i);return[s,a]}evalSemanticContext(e,s,a){const i=new b;for(const r of e){if(r.pred===V.NONE){if(i.set(r.alt),!a)break;continue}const e=r.pred.evaluate(this.parser,s);if((t.debug||t.dfaDebug)&&console.log("eval pred "+r+"="+e),e&&(i.set(r.alt),!a))break}return i}closure(t,e,s,a,i,r){this.closureCheckingStopState(t,e,s,a,i,0,r)}closureCheckingStopState(e,s,a,i,r,c,n){if((t.traceATNSimulator||t.debugClosure)&&console.log("closure("+e.toString(this.parser,!0)+")"),e.state instanceof rt){if(e.context&&!e.context.isEmpty()){for(let h=0;h<e.context.length;h++){if(e.context.getReturnState(h)===I.EMPTY_RETURN_STATE){if(r){s.add(J.createWithConfig(e.state,e,I.EMPTY),this.mergeCache);continue}t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,s,a,i,r,c,n);continue}const E=this.atn.states[e.context.getReturnState(h)],T=e.context.getParent(h),o=J.createWithContext(E,e.alt,T,e.semanticContext);o.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(o,s,a,i,r,c-1,n)}return}if(r)return void s.add(e,this.mergeCache);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,s,a,i,r,c,n)}closure_(e,s,a,i,r,c,n){const h=e.state;h.epsilonOnlyTransitions||s.add(e,this.mergeCache);for(let E=0;E<h.transitions.length;E++){if(0===E&&this.canDropLoopEntryEdgeInLeftRecursiveRule(e))continue;const T=h.transitions[E],o=i&&!(T instanceof Ot),R=this.getEpsilonTarget(e,T,o,0===c,r,n);if(R){let i=c;if(e.state.constructor.stateType===W.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){T.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(R.precedenceFilterSuppressed=!0)}if(R.reachesIntoOuterContext=!0,a.getOrAdd(R)!==R)continue;s.dipsIntoOuterContext=!0,i-=1,t.debug&&console.log("dips into outer ctx: "+R)}else{if(!T.isEpsilon&&a.getOrAdd(R)!==R)continue;T instanceof St&&i>=0&&(i+=1)}this.closureCheckingStopState(R,s,a,o,r,i,n)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.constructor.stateType!==W.STAR_LOOP_ENTRY||!t.context)return!1;if(!e.precedenceRuleDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const s=t.context.length;for(let r=0;r<s;r++){if(this.atn.states[t.context.getReturnState(r)].ruleIndex!==e.ruleIndex)return!1}const a=e.transitions[0].target.endState.stateNumber,i=this.atn.states[a];for(let r=0;r<s;r++){const s=t.context.getReturnState(r),a=this.atn.states[s];if(1!==a.transitions.length||!a.transitions[0].isEpsilon)return!1;const c=a.transitions[0].target;if((a.constructor.stateType!==W.BLOCK_END||c!==e)&&(a!==i&&c!==i&&(c.constructor.stateType!==W.BLOCK_END||1!==c.transitions.length||!c.transitions[0].isEpsilon||c.transitions[0].target!==e)))return!1}return!0}getEpsilonTarget(e,s,a,i,c,n){switch(s.transitionType){case S.RULE:return this.ruleTransition(e,s);case S.PRECEDENCE:return this.precedenceTransition(e,s,a,i,c);case S.PREDICATE:return this.predTransition(e,s,a,i,c);case S.ACTION:if(t.debug){const t=s,e=-1===t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+e)}return J.createWithConfig(s.target,e);case S.EPSILON:return J.createWithConfig(s.target,e);case S.ATOM:case S.RANGE:case S.SET:return n&&s.matches(r.EOF,0,1)?J.createWithConfig(s.target,e):null;default:return null}}precedenceTransition(e,s,a,i,r){t.debug&&(console.log("PRED (collectPredicates="+a+") "+s.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+N(this.parser.getRuleInvocationStack())));let c=null;if(a&&i)if(r&&this.predictionState?.input){const t=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const a=s.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(t),a&&(c=J.createWithConfig(s.target,e))}else{const t=V.andContext(e.semanticContext,s.getPredicate());c=J.createWithSemanticContext(s.target,e,t)}else c=J.createWithConfig(s.target,e);return t.debug&&console.log("config from pred transition="+c),c}predTransition(e,s,a,i,r){t.debug&&(console.log("PRED (collectPredicates="+a+") "+s.ruleIndex+":"+s.predIndex+", ctx dependent="+s.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+N(this.parser.getRuleInvocationStack())));let c=null;if(a&&(s.isCtxDependent&&i||!s.isCtxDependent))if(r&&this.predictionState?.input){const t=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const a=s.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(t),a&&(c=J.createWithConfig(s.target,e))}else{const t=V.andContext(e.semanticContext,s.getPredicate());c=J.createWithSemanticContext(s.target,e,t)}else c=J.createWithConfig(s.target,e);return t.debug&&console.log("config from pred transition="+c),c}ruleTransition(e,s){t.debug&&console.log("CALL rule "+this.getRuleName(s.target.ruleIndex)+", ctx="+e.context);const a=s.followState,i=M.create(e.context??void 0,a.stateNumber);return J.createWithConfig(s.target,e,i)}getConflictingAlts(t){const e=oe.getConflictingAltSubsets(t);return oe.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e;return t.uniqueAlt!==q.INVALID_ALT_NUMBER?(e=new b,e.set(t.uniqueAlt)):e=t.conflictingAlts,e}noViableAlt(t,e,s,a){return new he(this.parser,t,t.get(a),t.LT(1),s,e)}addDFAEdge(e,s,a,i){return t.debug&&console.log("EDGE "+s+" -> "+i+" upon "+this.getTokenName(a)),i=this.addDFAState(e,i),a<-1||a>this.atn.maxTokenType||(t.debug&&console.log("DFA=\n"+e.toString(null!=this.parser?this.parser.vocabulary:o.EMPTY_VOCABULARY)),s.edges[a+1]=i),i}addDFAState(e,s){if(s===wt.ERROR)return s;const a=e.getState(s);return null!==a?a:(s.configs.readOnly||(s.configs.optimizeConfigs(this),s.configs.setReadonly(!0)),t.traceATNSimulator&&console.log("addDFAState new "+s),e.addState(s),s)}reportAttemptingFullContext(e,s,a,i,r){if(t.debug||t.retryDebug){const t=new T(i,r+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,e,i,r,s,a)}reportContextSensitivity(e,s,a,i,r){if(t.debug||t.retryDebug){const t=new T(i,r+1);console.log("reportContextSensitivity decision="+e.decision+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,e,i,r,s,a)}reportAmbiguity(e,s,a,i,r,c,n){if(t.debug||t.retryDebug){const t=new T(a,i+1);console.log("reportAmbiguity "+c+":"+n+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,e,a,i,r,c,n)}},Ae=class{static{h(this,"PredictionContextCache")}cache=new G(g.instance);add(t){if(t===I.EMPTY)return t;const e=this.cache.get(t);return e||(this.cache.set(t,t),t)}get(t){return this.cache.get(t)}get length(){return this.cache.size}},Se=class extends Re{static{h(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;#x=0;#k=0;constructor(t){const e=t.interpreter.sharedContextCache;if(super(t,t.interpreter.atn,t.interpreter.decisionToDFA,e),e){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let t=0;t<this.numDecisions;t++)this.decisions[t]=new bt(t)}}adaptivePredict(t,e,s){try{this.#x=-1,this.#k=-1,this.currentDecision=e;const a=performance.now(),i=super.adaptivePredict(t,e,s),r=performance.now();this.decisions[e].timeInPrediction+=r-a,this.decisions[e].invocations++;const c=this.#x-this.predictionState.startIndex+1;if(this.decisions[e].sllTotalLook+=c,this.decisions[e].sllMinLook=0===this.decisions[e].sllMinLook?c:Math.min(this.decisions[e].sllMinLook,c),c>this.decisions[e].sllMaxLook&&(this.decisions[e].sllMaxLook=c,this.decisions[e].sllMaxLookEvent={decision:e,configs:null,predictedAlt:i,input:t,startIndex:this.predictionState.startIndex,stopIndex:this.#x,fullCtx:!1}),this.#k>=0){const s=this.#k-this.predictionState.startIndex+1;this.decisions[e].llTotalLook+=s,this.decisions[e].llMinLook=0===this.decisions[e].llMinLook?s:Math.min(this.decisions[e].llMinLook,s),s>this.decisions[e].llMaxLook&&(this.decisions[e].llMaxLook=s,this.decisions[e].llMaxLookEvent={decision:e,configs:null,predictedAlt:i,input:t,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!0})}return i}finally{this.currentDecision=-1}}getExistingTargetState(t,e){if(this.predictionState?.input){this.#x=this.predictionState.input.index;const s=super.getExistingTargetState(t,e);return null!==s&&(this.decisions[this.currentDecision].sllDFATransitions++,s===wt.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#x,fullCtx:!1})),this.currentState=s,s}}computeTargetState(t,e,s){const a=super.computeTargetState(t,e,s);return this.currentState=a,a}computeReachSet(t,e,s){s&&this.predictionState?.input&&(this.#k=this.predictionState.input.index);const a=super.computeReachSet(t,e,s);return this.predictionState?.input&&(s?(this.decisions[this.currentDecision].llATNTransitions++,null===a&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#x,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===a&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#x,fullCtx:!1}))),a}reportAttemptingFullContext(t,e,s,a,i){this.conflictingAltResolvedBySLL=null!==e?e.nextSetBit(0):s.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,e&&super.reportAttemptingFullContext(t,e,s,a,i)}reportContextSensitivity(t,e,s,a,i){e!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:s,input:this.predictionState.input,startIndex:a,stopIndex:i,fullCtx:!0}),super.reportContextSensitivity(t,e,s,a,i)}reportAmbiguity(t,e,s,a,i,r,c){let n;n=r?r.nextSetBit(0):c.getAlts().nextSetBit(0),this.predictionState?.input&&(c.fullCtx&&n!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:c,input:this.predictionState.input,startIndex:s,stopIndex:a,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:r,decision:this.currentDecision,configs:c,input:this.predictionState.input,startIndex:s,stopIndex:a,fullCtx:c.fullCtx})),super.reportAmbiguity(t,e,s,a,i,r,c)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(Q||(Q={})).toString=h((t=>`(${t.pred}, ${t.alt})`),"toString");var le,Oe=class{static{h(this,"AbstractParseTreeVisitor")}visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult();const s=t.getChildCount();for(let a=0;a<s&&this.shouldVisitNextChild(t,e);a++){const s=t.getChild(a);if(s){const t=s.accept(this);e=this.aggregateResult(e,t)}}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(t,e){return!0}aggregateResult(t,e){return e}};(class t{static{h(this,"ParseTreeWalker")}static DEFAULT=new t;walk(t,e){if(e instanceof m)t.visitErrorNode(e);else if(e instanceof U)t.visitTerminal(e);else{const s=e;this.enterRule(t,s);for(let a=0;a<e.getChildCount();a++)this.walk(t,e.getChild(a));this.exitRule(t,s)}}enterRule(t,e){const s=e.ruleContext;t.enterEveryRule(s),s.enterRule(t)}exitRule(t,e){const s=e.ruleContext;s.exitRule(t),t.exitEveryRule(s)}});(le||(le={})).fromString=h((t=>new Ie(t)),"fromString");var Ie=class{static{h(this,"CharStreamImpl")}name="";index=0;data;constructor(t){const e=[];for(const s of t)e.push(s.codePointAt(0));this.data=new Uint32Array(e)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(t){if(0===t)return 0;t<0&&(t+=1);const e=this.index+t-1;return e<0||e>=this.data.length?r.EOF:this.data[e]}mark(){return-1}release(t){}seek(t){t<=this.index?this.index=t:this.index=Math.min(t,this.data.length)}getTextFromRange(t,e){return(e=e??this.data.length-1)>=this.data.length&&(e=this.data.length-1),t>=this.data.length?"":this.#H(t,e+1)}getTextFromInterval(t){const e=t.start;let s=t.stop;return s>=this.data.length&&(s=this.data.length-1),e>=this.data.length?"":this.#H(e,s+1)}toString(){return this.#H(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:a.UNKNOWN_SOURCE_NAME}#H(t,e){const s=this.data.slice(t,e);let a="";return s.forEach((t=>{a+=String.fromCodePoint(t)})),a}},ue=class{static{h(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(t){this.tokenSource=t}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get index(){return this.p}get(t){return this.lazyInit(),this.tokens[t]}consume(){let t=!1;if(t=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){const e=t-this.tokens.length+1;if(e>0){return this.fetch(e)>=e}return!0}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){const t=this.tokenSource.nextToken();if(t.tokenIndex=this.tokens.length,this.tokens.push(t),t.type===r.EOF)return this.fetchedEOF=!0,e+1}return t}getTokens(t,e,s){if(this.lazyInit(),void 0===t&&void 0===e)return this.tokens;if(t??=0,void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===s)return this.tokens.slice(t,e+1);const a=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(let i=t;i<e;i++){const t=this.tokens[i];if(t.type===r.EOF){a.push(t);break}s.has(t.type)&&a.push(t)}return a}LA(t){return this.LT(t)?.type??r.INVALID_TYPE}LB(t){return this.p-t<0?null:this.tokens[this.p-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.tokens.length)return-1;let s=this.tokens[t];for(;s.channel!==e;){if(s.type===r.EOF)return-1;t+=1,this.sync(t),s=this.tokens[t]}return t}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw new Error(`${t} not in 0..${this.tokens.length-1}`);const s=this.nextTokenOnChannel(t+1,zt.DEFAULT_TOKEN_CHANNEL),a=t+1,i=-1===s?this.tokens.length-1:s;return this.filterForChannel(a,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw new Error(`${t} not in 0..${this.tokens.length-1}`);const s=this.previousTokenOnChannel(t-1,zt.DEFAULT_TOKEN_CHANNEL);if(s===t-1)return;const a=s+1,i=t-1;return this.filterForChannel(a,i,e)}filterForChannel(t,e,s){const a=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===s?t.channel!==zt.DEFAULT_TOKEN_CHANNEL&&a.push(t):t.channel===s&&a.push(t)}if(0!==a.length)return a}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(T.of(0,this.size-1))}getTextFromInterval(t){const e=t.start;let s=t.stop;if(e<0||s<0)return"";this.sync(s),s>=this.tokens.length&&(s=this.tokens.length-1);let a="";for(let i=e;i<=s;++i){const t=this.tokens[i];if(t.type===r.EOF)break;a+=t.text}return a}getTextFromContext(t){return this.getTextFromInterval(t.getSourceInterval())}getTextFromRange(t,e){return null!==t&&null!==e?this.getTextFromInterval(T.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}},Ne=class extends ue{static{h(this,"CommonTokenStream")}channel=r.DEFAULT_CHANNEL;constructor(t,e){super(t),this.channel=e??r.DEFAULT_CHANNEL}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,s=1;for(;s<=t;)e=this.previousTokenOnChannel(e-1,this.channel),s+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,s=1;for(;s<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),s+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(const e of this.tokens)if(e.channel===this.channel&&(t+=1),e.type===r.EOF)break;return t}},Le=class t extends zt{static{h(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new Ae)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}action(t,e,s){if(4===e)this.ID_action(t,s)}ID_action(e,s){if(0===s){const e=this.text;e.charAt(0)===e.charAt(0).toUpperCase()?this.type=t.TOKEN_REF:this.type=t.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static vocabulary=new o(t.literalNames,t.symbolicNames,[]);get vocabulary(){return t.vocabulary}static decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))},Ce=class extends Vt{static{h(this,"XPathLexerErrorListener")}syntaxError(t,e,s,a,i,r){}},_e=class{static{h(this,"XPathElement")}invert;nodeName;constructor(t){this.nodeName=t,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Pe=class extends _e{static{h(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return D.findAllRuleNodes(t,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Me=class extends _e{static{h(this,"XPathRuleElement")}ruleIndex;constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){const e=[];for(const s of D.getChildren(t))s instanceof p&&(s.ruleIndex===this.ruleIndex&&!this.invert||s.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(s);return e}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},de=class extends _e{static{h(this,"XPathTokenAnywhereElement")}tokenType;constructor(t,e){super(t),this.tokenType=e}evaluate(t){return D.findAllTokenNodes(t,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Ue=class extends _e{static{h(this,"XPathTokenElement")}tokenType;constructor(t,e){super(t),this.tokenType=e}evaluate(t){const e=[];for(const s of D.getChildren(t))s instanceof U&&s.symbol&&(s.symbol.type===this.tokenType&&!this.invert||s.symbol.type!==this.tokenType&&this.invert)&&e.push(s);return e}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},me=class extends _e{static{h(this,"XPathWildcardAnywhereElement")}constructor(){super(pe.WILDCARD)}evaluate(t){return this.invert?[]:D.descendants(t)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},De=class extends _e{static{h(this,"XPathWildcardElement")}constructor(){super(pe.WILDCARD)}evaluate(t){const e=[];if(this.invert)return e;for(const s of D.getChildren(t))e.push(s);return e}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},pe=class t{static{h(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}static findAll(e,s,a){return new t(a,s).evaluate(e)}split(t){const e=new Le(le.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new Ce);const s=new Ne(e);try{s.fill()}catch(h){if(h instanceof jt){const s="Invalid tokens or characters at index "+e.column+" in path '"+t+"' -- "+h.message;throw new RangeError(s)}throw h}const a=s.getTokens(),i=[],c=a.length;let n=0;t:for(;n<c;){const t=a[n];let e;switch(t.type){case Le.ROOT:case Le.ANYWHERE:const s=t.type===Le.ANYWHERE;n++,e=a[n];const c=e.type===Le.BANG;c&&(n++,e=a[n]);const h=this.getXPathElement(e,s);h.invert=c,i.push(h),n++;break;case Le.TOKEN_REF:case Le.RULE_REF:case Le.WILDCARD:i.push(this.getXPathElement(t,!1)),++n;break;case r.EOF:break t;default:throw new Error("Unknown path element "+t)}}return i}evaluate(t){const e=new p(null);e.addChild(t);let s=new Set([e]),a=0;for(;a<this.elements.length;){const t=new Set;for(const e of s)if(e.getChildCount()>0){this.elements[a].evaluate(e).forEach((e=>{t.add(e)}),t)}a++,s=t}return s}getXPathElement(t,e){if(t.type===r.EOF)throw new Error("Missing path element at end of path");const s=t.text;if(null==s)throw new Error("Expected wordToken to have text content.");const a=this.parser.getTokenType(s),i=this.parser.getRuleIndex(s);switch(t.type){case Le.WILDCARD:return e?new me:new De;case Le.TOKEN_REF:case Le.STRING:if(a===r.INVALID_TYPE)throw new Error(s+" at index "+t.start+" isn't a valid token name");return e?new de(s,a):new Ue(s,a);default:if(-1===i)throw new Error(s+" at index "+t.start+" isn't a valid rule name");return e?new Pe(s,i):new Me(s,i)}}},ge=class{static{h(this,"Chunk")}},xe=class{static{h(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(t,e,s,a){this.tree=t,this.pattern=e,this.labels=s,this.mismatchedNode=a}get(t){const e=this.labels.get(t);return e&&0!==e.length?e[e.length-1]:null}getAll(t){return this.labels.get(t)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},ke=class{static{h(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(t,e,s,a){this.matcher=t,this.patternRuleIndex=s,this.pattern=e,this.patternTree=a}match(t){return this.matcher.match(t,this)}matches(t){return this.matcher.match(t,this).succeeded()}findAll(t,e){const s=pe.findAll(t,e,this.matcher.getParser()),a=new Array;for(const i of s){const t=this.match(i);t.succeeded()&&a.push(t)}return a}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},He=class extends qt{static{h(this,"InputMismatchException")}constructor(t){super({message:"",recognizer:t,input:t.inputStream,ctx:t.context}),this.offendingToken=t.getCurrentToken()}},Ge=class extends qt{static{h(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(t,e,s=null){super({message:Fe(e??"no predicate",s??null),recognizer:t,input:t.inputStream,ctx:t.context});const a=t.atn.states[t.state].transitions[0];a instanceof Lt?(this.ruleIndex=a.ruleIndex,this.predicateIndex=a.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}},Fe=h(((t,e)=>null!==e?e:"failed predicate: {"+t+"}?"),"formatMessage"),ve=class{static{h(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new A;nextTokensContext=null;nextTokenState=0;reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=new A,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof he?this.reportNoViableAlternative(t,e):e instanceof He?this.reportInputMismatch(t,e):e instanceof Ge?this.reportFailedPredicate(t,e):t.notifyErrorListeners(e.message,e.offendingToken,e))}recover(t,e){this.lastErrorIndex===t.inputStream?.index&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream?.index??0,this.lastErrorStates.addOne(t.state);const s=this.getErrorRecoverySet(t);this.consumeUntil(t,s)}sync(t){if(this.inErrorRecoveryMode(t))return;const e=t.atn.states[t.state],s=t.tokenStream.LA(1),a=t.atn.nextTokens(e);if(a.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=W.INVALID_STATE_NUMBER);if(a.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokenState=t.state);else switch(e.constructor.stateType){case W.BLOCK_START:case W.STAR_BLOCK_START:case W.PLUS_BLOCK_START:case W.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new He(t);case W.PLUS_LOOP_BACK:case W.STAR_LOOP_BACK:{this.reportUnwantedToken(t);const e=new A;e.addSet(t.getExpectedTokens());const s=e.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,s);break}}}reportNoViableAlternative(t,e){if(e.message.length>0)return void t.notifyErrorListeners(e.message,e.offendingToken,e);const s=t.tokenStream;let a;a=null!==s&&e.startToken?e.startToken.type===r.EOF?"<EOF>":s.getTextFromRange(e.startToken,e.offendingToken):"<unknown input>";const i="no viable alternative at input "+this.escapeWSAndQuote(a);t.notifyErrorListeners(i,e.offendingToken,e)}reportInputMismatch(t,e){if(e.message.length>0)return void t.notifyErrorListeners(e.message,e.offendingToken,e);const s="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toStringWithVocabulary(t.vocabulary);t.notifyErrorListeners(s,e.offendingToken,e)}reportFailedPredicate(t,e){const s="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;t.notifyErrorListeners(s,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),s="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringWithVocabulary(t.vocabulary);t.notifyErrorListeners(s,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),s="missing "+this.getExpectedTokens(t).toStringWithVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(s,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new He(t)}singleTokenInsertion(t){const e=t.tokenStream?.LA(1)??-1,s=t.atn,a=s.states[t.state].transitions[0].target;return!!s.nextTokens(a,t.context??void 0).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(t){const e=t.getCurrentToken(),s=this.getExpectedTokens(t);let a,i=r.INVALID_TYPE;0!==s.length&&(i=s.minElement),a=i===r.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let c=e;const n=t.tokenStream?.LT(-1);return c.type===r.EOF&&null!==n&&(c=n),t.getTokenFactory().create(c.source,i,a,r.DEFAULT_CHANNEL,-1,-1,c.line,c.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return e||(e=t.type===r.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(t){const e=t.atn;let s=t.context;const a=new A;for(;null!==s&&s.invokingState>=0;){const t=e.states[s.invokingState].transitions[0],i=e.nextTokens(t.followState);a.addSet(i),s=s.parent}return a.removeOne(r.EPSILON),a}consumeUntil(t,e){let s=t.tokenStream?.LA(1)??-1;for(;s!==r.EOF&&!e.contains(s);)t.consume(),s=t.tokenStream?.LA(1)??-1}},Be=class extends ve{static{h(this,"BailErrorStrategy")}recover(t,e){throw new $t(e)}recoverInline(t){const e=new He(t);throw new $t(e)}sync(t){}},ye=class{static{h(this,"ListTokenSource")}sourceName;tokenFactory=Zt.DEFAULT;tokens;i;eofToken;constructor(t,e){this.tokens=t,this.sourceName=e??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1],e=t.text;if(e){const t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.column+t.stop-t.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let t=-1;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1].stop;-1!==e&&(t=e+1)}const e=Math.max(-1,t-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],r.EOF,"EOF",r.DEFAULT_CHANNEL,t,e,this.line,this.column)}return this.eofToken}const t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===r.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1];let e=t.line;const s=t.text;if(s)for(const a of s)"\n"===a&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const t=this.inputStream;return null!==t?t.getSourceName():"List"}},fe=class extends p{static{h(this,"InterpreterRuleContext")}#G;constructor(t,e,s){super(e,s),this.#G=t}get ruleIndex(){return this.#G}},Ye=class{static{h(this,"TraceListener")}parser;constructor(t){this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(t){console.log("consume "+t.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(t){}},we=class extends Qt{static{h(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new ve;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;#F=null;#v=null;#B;constructor(t){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#B=t}reset(t=!0){t&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}getParseListeners(){return this.parseListeners??[]}addParseListener(t){if(null===t)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(t)}removeParseListener(t){if(null!==this.parseListeners&&null!==t){const e=this.parseListeners.indexOf(t);e>=0&&this.parseListeners.splice(e,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const t=this.context;this.parseListeners.forEach((e=>{e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const t=this.context;this.parseListeners.slice(0).reverse().forEach((e=>{t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(t){this.inputStream.tokenSource.tokenFactory=t}compileParseTreePattern(t,e,s){if(!s&&null!==this.tokenStream){const t=this.tokenStream.tokenSource;t instanceof zt&&(s=t)}if(!s)throw new Error("Parser can't discover a lexer to use");return new Je(s,this).compile(t,e)}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.#v)return this.#v;return this.#v=new yt({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(t),this.#v}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#B}set inputStream(t){this.tokenStream=t}get tokenStream(){return this.#B}set tokenStream(t){this.reset(!1),this.#B=t}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(t,e,s){s=s??null,null===(e=e??null)&&(e=this.getCurrentToken()),this.syntaxErrors+=1;const a=e.line,i=e.column;this.errorListenerDispatch.syntaxError(this,e,a,i,t,s)}consume(){const t=this.getCurrentToken();t.type!==r.EOF&&this.tokenStream.consume();const e=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||e){let s;s=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,t)):this.context.addTokenNode(t),e&&this.parseListeners.forEach((t=>{s instanceof m?t.visitErrorNode(s):t.visitTerminal(s)}))}return t}addContextToParseTree(){null!==this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(t,e,s){this.state=e,this.context=t,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this.context!==t&&null!==this.context.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(t)),this.context=t}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(t,e,s,a){this.state=e,this.precedenceStack.push(a),this.context=t,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,s){const a=this.context;a.parent=t,a.invokingState=e,a.stop=this.inputStream.LT(-1),this.context=t,this.context.start=a.start,this.buildParseTrees&&this.context.addChild(a),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const e=this.context,s=this.getParseListeners();if(null!==s&&s.length>0)for(;this.context!==t;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=t;e.parent=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this.context;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parent}return null}precpred(t,e){return e>=this.precedenceStack[this.precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(t){const e=this.interpreter.atn;let s=this.context;const a=e.states[this.state];let i=e.nextTokens(a);if(i.contains(t))return!0;if(!i.contains(r.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&i.contains(r.EPSILON);){const a=e.states[s.invokingState].transitions[0];if(i=e.nextTokens(a.followState),i.contains(t))return!0;s=s.parent}return!(!i.contains(r.EPSILON)||t!==r.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}getRuleInvocationStack(t){null===(t=t??null)&&(t=this.context);const e=[];for(;null!==t;){const s=t.ruleIndex;s<0?e.push("n/a"):e.push(this.ruleNames[s]),t=t.parent}return e}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let t=!1;for(const e of this.interpreter.decisionToDFA)e.length>0&&(t&&console.log(),this.printer&&(this.printer.println("Decision "+e.decision+":"),this.printer.print(e.toString(this.vocabulary))),t=!0)}getSourceName(){return this.inputStream.getSourceName()}setProfile(t){const e=this.interpreter,s=e.predictionMode;if(t)e instanceof Se||(this.interpreter=new Se(this));else if(e instanceof Se){const t=e.sharedContextCache;if(t){const s=new Re(this,this.atn,e.decisionToDFA,t);this.interpreter=s}}this.interpreter.predictionMode=s}setTrace(t){t?(null!==this.#F&&this.removeParseListener(this.#F),this.#F=new Ye(this),this.addParseListener(this.#F)):(this.removeParseListener(this.#F),this.#F=null)}createTerminalNode(t,e){return new U(e)}createErrorNode(t,e){return new m(e)}},be=class extends we{static{h(this,"ParserInterpreter")}rootContext;parentContextStack=[];#y=-1;#f=-1;#Y=-1;#w=!1;#b=null;#W;#A;#V;#X;#K;#Q=new Ae;#J;constructor(t,e,s,a,i){super(i),this.#W=t,this.#A=a,this.#V=s.slice(0),this.#X=e,this.#J=new b;for(const r of a.states)r instanceof Et&&r.precedenceRuleDecision&&this.#J.set(r.stateNumber);this.#K=a.decisionToState.map(((t,e)=>new ce(t,e))),this.interpreter=new Re(this,a,this.#K,this.#Q)}reset(){super.reset(),this.#w=!1,this.#b=null}get atn(){return this.#A}get vocabulary(){return this.#X}get ruleNames(){return this.#V}get grammarFileName(){return this.#W}get atnState(){return this.#A.states[this.state]}parse(t){const e=this.#A.ruleToStartState[t];for(this.rootContext=this.createInterpreterRuleContext(null,W.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this.rootContext,e.stateNumber,t,0):this.enterRule(this.rootContext,e.stateNumber,t);;){const t=this.atnState;if(t.constructor.stateType===W.RULE_STOP){if(this.context?.isEmpty){if(e.isPrecedenceRule){const t=this.context,e=this.parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this.rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(s){if(!(s instanceof qt))throw s;this.state=this.#A.ruleToStopState[t.ruleIndex].stateNumber,this.errorHandler.reportError(this,s),this.recover(s)}}}addDecisionOverride(t,e,s){this.#y=t,this.#f=e,this.#Y=s}get overrideDecisionRoot(){return this.#b}enterRecursionRule(t,e,s,a){this.parentContextStack.push([this.context,t.invokingState]),super.enterRecursionRule(t,e,s,a)}visitState(t){let e=1;t instanceof tt&&(e=this.visitDecisionState(t));const s=t.transitions[e-1];switch(s.transitionType){case S.EPSILON:if(this.#J.get(t.stateNumber)&&s.target.constructor.stateType!==W.LOOP_END){const e=this.parentContextStack[this.parentContextStack.length-1],s=this.createInterpreterRuleContext(e[0],e[1],this.context.ruleIndex);this.pushNewRecursionContext(s,this.#A.ruleToStartState[t.ruleIndex].stateNumber,this.context.ruleIndex)}break;case S.ATOM:this.match(s.label.minElement);break;case S.RANGE:case S.SET:case S.NOT_SET:s.matches(this.inputStream.LA(1),r.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case S.WILDCARD:this.matchWildcard();break;case S.RULE:const e=s.target,a=e.ruleIndex,i=this.createInterpreterRuleContext(this.context,t.stateNumber,a);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,a,s.precedence):this.enterRule(i,s.target.stateNumber,a);break;case S.PREDICATE:const c=s;if(!this.sempred(this.context,c.ruleIndex,c.predIndex))throw new Ge(this);break;case S.ACTION:const n=s;this.action(this.context,n.ruleIndex,n.actionIndex);break;case S.PRECEDENCE:if(!this.precpred(this.context,s.precedence)){const t=s.precedence;throw new Ge(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=s.target.stateNumber}visitDecisionState(t){let e=1;if(t.transitions.length>1){this.errorHandler.sync(this);const s=t.decision;s!==this.#y||this.inputStream.index!==this.#f||this.#w?e=this.interpreter.adaptivePredict(this.inputStream,s,this.context):(e=this.#Y,this.#w=!0)}return e}createInterpreterRuleContext(t,e,s){return new fe(s,t,e)}visitRuleStopState(t){if(this.#A.ruleToStartState[t.ruleIndex].isPrecedenceRule){const[t,e]=this.parentContextStack.pop();this.unrollRecursionContexts(t),this.state=e}else this.exitRule();const e=this.#A.states[this.state].transitions[0];this.state=e.followState.stateNumber}recover(t){const e=this.inputStream.index;if(this.errorHandler.recover(this,t),this.inputStream.index===e){const e=t.offendingToken;if(!e)throw new Error("Expected exception to have an offending token");const s=e.tokenSource,a=[s,s?.inputStream??null];if(t instanceof He){const s=t.getExpectedTokens();if(!s)throw new Error("Expected the exception to provide expected tokens");let i=r.INVALID_TYPE;0!==s.length&&(i=s.minElement);const c=this.getTokenFactory().create(a,i,e.text,r.DEFAULT_CHANNEL,-1,-1,e.line,e.column);this.context.addErrorNode(this.createErrorNode(this.context,c))}else{const t=this.getTokenFactory().create(a,r.INVALID_TYPE,e.text,r.DEFAULT_CHANNEL,-1,-1,e.line,e.column);this.context.addErrorNode(this.createErrorNode(this.context,t))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},We=class extends Map{static{h(this,"MultiMap")}map(t,e){let s=this.get(t);s||(s=new Array,this.set(t,s)),s.push(e)}getPairs(){const t=new Array;for(const e of this.keys()){const s=this.get(e)??[];for(const a of s)t.push([e,a])}return t}},Ve=class{static{h(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(t,e,s){this.ruleName=t,this.bypassTokenType=e,this.label=s}get channel(){return r.DEFAULT_CHANNEL}get text(){return null!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},Xe=class extends ge{static{h(this,"TagChunk")}tag;label;constructor(...t){let e,s;if(1===t.length?s=t[0]:(e=t[0],s=t[1]),super(),!s)throw new Error("tag cannot be null or empty");this.label=e,this.tag=s}toString(){return null!==this.label?this.label+":"+this.tag:this.tag}},Ke=class extends ge{static{h(this,"TextChunk")}text;constructor(t){super(),this.text=t}toString(){return"'"+this.text+"'"}},Qe=class extends Jt{static{h(this,"TokenTagToken")}tokenName;label;constructor(t,e,s){super({type:e,source:Jt.EMPTY_SOURCE}),this.tokenName=t,this.label=s}get text(){return null!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Je=class t{static{h(this,"ParseTreePatternMatcher")}static CannotInvokeStartRule=class extends Error{static{h(this,"CannotInvokeStartRule")}constructor(t){super(),this.cause=t}};static StartRuleDoesNotConsumeFullPattern=class extends Error{static{h(this,"StartRuleDoesNotConsumeFullPattern")}};start="<";stop=">";escape="\\";lexer;parser;constructor(t,e){this.lexer=t,this.parser=e}setDelimiters(t,e,s){if(null===t||0===t.length)throw new Error("start cannot be null or empty");if(null===e||0===e.length)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=s}matches(...t){switch(t.length){case 2:{const[e,s]=t,a=new We;return null===this.matchImpl(e,s.getPatternTree(),a)}case 3:{const[e,s,a]=t,i=this.compile(s,a);return this.matches(e,i)}default:throw new Error("Invalid number of arguments")}}match(...t){switch(t.length){case 2:{const[e,s]=t,a=new We,i=this.matchImpl(e,s.getPatternTree(),a);return new xe(e,s,a,i)}case 3:{const[e,s,a]=t,i=this.compile(s,a);return this.match(e,i)}default:throw new Error("Invalid number of arguments")}}compile(e,s){const a=this.tokenize(e),i=new ye(a),c=new Ne(i),n=new be(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),c);let h=null;try{n.errorHandler=new Be,h=n.parse(s)}catch(E){if(E instanceof $t){throw E.cause}throw E instanceof qt?E:E instanceof Error?new t.CannotInvokeStartRule(E):E}if(c.LA(1)!==r.EOF)throw new t.StartRuleDoesNotConsumeFullPattern;return new ke(this,e,s,h)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(t){const e=this.split(t),s=new Array;for(const a of e)if(a instanceof Xe){const e=a,i=e.tag[0];if(i===i.toUpperCase()){const a=this.parser.getTokenType(e.tag);if(a===r.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);const i=new Qe(e.tag,a,e.label);s.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{const a=this.parser.getRuleIndex(e.tag);if(-1===a)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);const i=this.parser.getATNWithBypassAlts().ruleToTokenType[a];s.push(new Ve(e.tag,i,e.label))}}}else{const t=a,e=le.fromString(t.text);this.lexer.inputStream=e;let i=this.lexer.nextToken();for(;i.type!==r.EOF;)s.push(i),i=this.lexer.nextToken()}return s}split(t){let e=0;const s=t.length,a=new Array,i=new Array,r=new Array;for(;e<s;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(r.push(e),e+=this.stop.length):e++;if(i.length>r.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<r.length)throw new Error("missing start tag in pattern: "+t);const c=i.length;for(let n=0;n<c;n++)if(i[n]>=r[n])throw new Error("tag delimiters out of order in pattern: "+t);if(0===c){const e=t.substring(0,s);a.push(new Ke(e))}if(c>0&&i[0]>0){const e=t.substring(0,i[0]);a.push(new Ke(e))}for(let n=0;n<c;n++){const e=t.substring(i[n]+this.start.length,r[n]);let s,h=e;const E=e.indexOf(":");if(E>=0&&(s=e.substring(0,E),h=e.substring(E+1,e.length)),a.push(new Xe(s,h)),n+1<c){const e=t.substring(r[n]+this.stop.length,i[n+1]);a.push(new Ke(e))}}if(c>0){const e=r[c-1]+this.stop.length;if(e<s){const i=t.substring(e,s);a.push(new Ke(i))}}for(let n=0;n<a.length;n++){const t=a[n];if(t instanceof Ke){const e=t,s=e.text.replace(this.escape,"");s.length<e.text.length&&(a[n]=new Ke(s))}}return a}matchImpl(t,e,s){if(t instanceof U&&e instanceof U){const a=t,i=e;let r;if(a.getSymbol().type===i.getSymbol().type)if(i.getSymbol()instanceof Qe){const e=i.getSymbol();s.map(e.tokenName,t),void 0!==e.label&&s.map(e.label,t)}else a.getText()===i.getText()||r||(r=a);else r||(r=a);return r}if(t instanceof p&&e instanceof p){let a;const i=this.getRuleTagToken(e);if(i)return t.ruleIndex===e.ruleIndex?(s.map(i.ruleName,t),i.label&&s.map(i.label,t)):a||(a=t),a;if(t.getChildCount()!==e.getChildCount())return a||(a=t),a;const r=t.getChildCount();for(let c=0;c<r;c++){const a=this.matchImpl(t.getChild(c),e.getChild(c),s);if(a)return a}return a}return t}getRuleTagToken(t){if(t instanceof p&&1===t.getChildCount()&&t.getChild(0)instanceof U){const e=t.getChild(0);if(e.getSymbol()instanceof Ve)return e.getSymbol()}}},Ze=(class extends(null){static{h(this,"DiagnosticErrorListener")}exactOnly;constructor(t){super(),this.exactOnly=t??!0}reportAmbiguity=(t,e,s,a,i,r,c)=>{if(this.exactOnly&&!i)return;const n=this.getDecisionDescription(t,e),h=this.getConflictingAlts(r,c),E=t.tokenStream?.getTextFromInterval(T.of(s,a)),o=`reportAmbiguity d=${n}: ambigAlts=${h}, input='${E}'`;t.notifyErrorListeners(o,null,null)};reportAttemptingFullContext=(t,e,s,a,i,r)=>{const c=this.getDecisionDescription(t,e),n=t.tokenStream?.getTextFromInterval(T.of(s,a)),h=`reportAttemptingFullContext d=${c}, input='${n}'`;t.notifyErrorListeners(h,null,null)};reportContextSensitivity=(t,e,s,a,i,r)=>{const c=this.getDecisionDescription(t,e),n=t.tokenStream?.getTextFromInterval(T.of(s,a)),h=`reportContextSensitivity d=${c}, input='${n}'`;t.notifyErrorListeners(h,null,null)};getDecisionDescription=(t,e)=>{const s=e.decision,a=e.atnStartState.ruleIndex,i=t.ruleNames;if(a<0||a>=i.length)return s.toString();const r=i[a];return 0===r.length?s.toString():`${s} (${r})`};getConflictingAlts=(t,e)=>{if(t)return t;const s=new b;for(let a=0;a<e.configs.length;a++)s.set(e.configs[a].alt);return s}},class extends(null){static{h(this,"LexerInterpreter")}#W;#A;#V;#Z;#q;#X;#K;#Q=new Ae;constructor(t,e,s,a,i,r,c){if(super(c),r.grammarType!==q.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#W=t,this.#A=r,this.#V=s.slice(0),this.#Z=a.slice(0),this.#q=i.slice(0),this.#X=e,this.#K=r.decisionToState.map(((t,e)=>new ce(t,e))),this.interpreter=new ne(this,r,this.#K,this.#Q)}get atn(){return this.#A}get grammarFileName(){return this.#W}get ruleNames(){return this.#V}get channelNames(){return this.#Z}get modeNames(){return this.#q}get vocabulary(){return this.#X}},class t{static{h(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME=null;static PROGRAM_INIT_SIZE=null;static MIN_TOKEN_INDEX=null;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(t){this.tokens=t}getTokenStream(){return this.tokens}insertAfter(e,s,a=t.DEFAULT_PROGRAM_NAME){let i;i="number"===typeof e?e:e.tokenIndex;const r=this.getProgram(a),c=new qe(this.tokens,i,r.length,s);r.push(c)}insertBefore(e,s,a=t.DEFAULT_PROGRAM_NAME){let i;i="number"===typeof e?e:e.tokenIndex;const r=this.getProgram(a),c=new Ze(this.tokens,i,r.length,s);r.push(c)}replaceSingle(e,s,a=t.DEFAULT_PROGRAM_NAME){this.replace(e,e,s,a)}replace(e,s,a,i=t.DEFAULT_PROGRAM_NAME){if("number"!==typeof e&&(e=e.tokenIndex),"number"!==typeof s&&(s=s.tokenIndex),e>s||e<0||s<0||s>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${s}(size=${this.tokens.size})`);const r=this.getProgram(i),c=new je(this.tokens,e,s,r.length,a);r.push(c)}delete(e,s,a=t.DEFAULT_PROGRAM_NAME){null==s&&(s=e),this.replace(e,s,null,a)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e,s=t.DEFAULT_PROGRAM_NAME){let a;a=e instanceof T?e:new T(0,this.tokens.size-1),"string"===typeof e&&(s=e);const i=this.programs.get(s);let c=a.start,n=a.stop;if(n>this.tokens.size-1&&(n=this.tokens.size-1),c<0&&(c=0),null==i||0===i.length)return this.tokens.getTextFromInterval(new T(c,n));const h=[],E=this.reduceToSingleOperationPerIndex(i);let o=c;for(;o<=n&&o<this.tokens.size;){const t=E.get(o);E.delete(o);const e=this.tokens.get(o);null==t?(e.type!==r.EOF&&h.push(String(e.text)),o++):o=t.execute(h)}if(n===this.tokens.size-1)for(const t of E.values())t&&t.index>=this.tokens.size-1&&h.push(String(t.text));return h.join("")}reduceToSingleOperationPerIndex(t){for(let s=0;s<t.length;s++){const e=t[s];if(null==e)continue;if(!(e instanceof je))continue;const a=e,i=this.getKindOfOps(t,Ze,s);for(const s of i)s.index===a.index?(t[s.instructionIndex]=null,a.text=String(s.text)+(null!=a.text?a.text.toString():"")):s.index>a.index&&s.index<=a.lastIndex&&(t[s.instructionIndex]=null);const r=this.getKindOfOps(t,je,s);for(const s of r){if(s.index>=a.index&&s.lastIndex<=a.lastIndex){t[s.instructionIndex]=null;continue}const e=s.lastIndex<a.index||s.index>a.lastIndex;if(null!=s.text||null!=a.text||e){if(!e)throw new Error(`replace op boundaries of ${a} overlap with previous ${s}`)}else t[s.instructionIndex]=null,a.index=Math.min(s.index,a.index),a.lastIndex=Math.max(s.lastIndex,a.lastIndex)}}for(let s=0;s<t.length;s++){const e=t[s];if(null==e)continue;if(!(e instanceof Ze))continue;const a=e,i=this.getKindOfOps(t,Ze,s);for(const s of i)s.index===a.index&&(s instanceof qe?(a.text=this.catOpText(s.text,a.text),t[s.instructionIndex]=null):s instanceof Ze&&(a.text=this.catOpText(a.text,s.text),t[s.instructionIndex]=null));const r=this.getKindOfOps(t,je,s);for(const c of r)if(a.index!==c.index){if(a.index>=c.index&&a.index<=c.lastIndex)throw new Error(`insert op ${a} within boundaries of previous ${c}`)}else c.text=this.catOpText(a.text,c.text),t[s]=null}const e=new Map;for(const s of t)if(null!=s){if(null!=e.get(s.index))throw new Error("should only be one op per index");e.set(s.index,s)}return e}catOpText(t,e){let s="",a="";return null!=t&&(s=t.toString()),null!=e&&(a=e.toString()),s+a}getKindOfOps(t,e,s){return t.slice(0,s).filter((t=>t&&t instanceof e))}},class{static{h(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(t,e,s,a){this.tokens=t,this.instructionIndex=s,this.index=e,this.text=void 0===a?"":a}execute(t){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}},class extends(null){static{h(this,"InsertBeforeOp")}constructor(t,e,s,a){super(t,e,s,a)}execute(t){return this.text&&t.push(this.text.toString()),this.tokens.get(this.index).type!==r.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),qe=class extends(null){static{h(this,"InsertAfterOp")}constructor(t,e,s,a){super(t,e+1,s,a)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},je=class extends(null){static{h(this,"ReplaceOp")}lastIndex;constructor(t,e,s,a,i){super(t,e,a,i),this.lastIndex=s}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ze=Object.defineProperty,$e=(t,e)=>ze(t,"name",{value:e,configurable:!0}),ts=class{static{$e(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#i;constructor(t=""){this.name=t}get parent(){return this.#i}get firstSibling(){if(this.#i)return this.#i?.firstChild}get previousSibling(){if(this.#i)return this.#i?this.#i.previousSiblingOf(this):this}get nextSibling(){return this.#i?.nextSiblingOf(this)}get lastSibling(){return this.#i?.lastChild}get next(){return this.#i?.nextOf(this)}get root(){let t=this.#i;for(;t;){if(!t.parent||this.isSymbolTable(t.parent))return t;t=t.parent}return t}get symbolTable(){if(this.isSymbolTable(this))return this;let t=this.#i;for(;t;){if(this.isSymbolTable(t))return t;t=t.parent}}get symbolPath(){const t=[];let e=this;for(;e&&(t.push(e),e.parent);)e=e.parent;return t}setParent(t){this.#i=t}removeFromParent(){this.#i?.removeSymbol(this),this.#i=void 0}async resolve(t,e=!1){return this.#i?.resolve(t,e)}resolveSync(t,e=!1){return this.#i?.resolveSync(t,e)}getParentOfType(t){let e=this.#i;for(;e;){if(e instanceof t)return e;e=e.parent}}qualifiedName(t=".",e=!1,s=!1){if(!s&&0===this.name.length)return"";let a=0===this.name.length?"<anonymous>":this.name,i=this.#i;for(;i&&((s||i.name.length>0)&&(a=(0===i.name.length?"<anonymous>":i.name)+t+a),e&&i.parent);)i=i.parent;return a}isSymbolTable(t){return void 0!==t.info}},es=(class extends(null){static{$e(this,"ArrayType")}elementType;size;referenceKind;constructor(t,e,s,a=0){super(t),this.referenceKind=e,this.elementType=s,this.size=a}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{$e(this,"DuplicateSymbolError")}}),ss=class t extends ts{static{$e(this,"ScopedSymbol")}#j=[];#z=new Map;constructor(t=""){super(t)}get directScopes(){return this.getSymbolsOfType(t)}get children(){return this.#j}get firstChild(){if(this.#j.length>0)return this.#j[0]}get lastChild(){if(this.#j.length>0)return this.#j[this.#j.length-1]}clear(){this.#j=[],this.#z.clear()}addSymbol(t){t.removeFromParent();const e=this.symbolTable,s=this.#z.get(t.name);if(e&&e.options.allowDuplicateSymbols)this.#z.set(t.name,void 0===s?1:s+1);else{if(void 0!==s)throw new es("Attempt to add duplicate symbol '"+(t.name??"<anonymous>")+"'");this.#z.set(t.name,1);if(this.#j.indexOf(t)>-1)throw new es("Attempt to add duplicate symbol '"+(t.name??"<anonymous>")+"'")}this.#j.push(t),t.setParent(this)}removeSymbol(t){const e=this.#j.indexOf(t);if(e>-1){this.#j.splice(e,1),t.setParent(void 0);const s=this.#z.get(t.name);void 0!==s&&(1===s?this.#z.delete(t.name):this.#z.set(t.name,s-1))}}async getNestedSymbolsOfType(e){const s=[],a=[];this.#j.forEach((i=>{i instanceof e&&s.push(i),i instanceof t&&a.push(i.getNestedSymbolsOfType(e))}));return(await Promise.all(a)).forEach((t=>{s.push(...t)})),s}getNestedSymbolsOfTypeSync(e){const s=[];return this.#j.forEach((a=>{a instanceof e&&s.push(a),a instanceof t&&s.push(...a.getNestedSymbolsOfTypeSync(e))})),s}async getAllNestedSymbols(e){const s=[],a=[];this.#j.forEach((i=>{e&&i.name!==e||s.push(i),i instanceof t&&a.push(i.getAllNestedSymbols(e))}));return(await Promise.all(a)).forEach((t=>{s.push(...t)})),s}getAllNestedSymbolsSync(e){const s=[];return this.#j.forEach((a=>{e&&a.name!==e||s.push(a),a instanceof t&&s.push(...a.getAllNestedSymbolsSync(e))})),s}getSymbolsOfType(t){return new Promise((e=>{const s=[];this.#j.forEach((e=>{e instanceof t&&s.push(e)})),e(s)}))}async getAllSymbols(t,e=!1){const s=[];for(const a of this.#j)if(a instanceof t&&s.push(a),this.isNamespace(a)){const e=await a.getAllSymbols(t,!0);s.push(...e)}if(!e&&this.parent){const e=await this.getAllSymbols(t,!0);s.push(...e)}return s}getAllSymbolsSync(t,e=!1){const s=[];for(const a of this.#j)if(a instanceof t&&s.push(a),this.isNamespace(a)){const e=a.getAllSymbolsSync(t,!0);s.push(...e)}if(!e&&this.parent){const e=this.getAllSymbolsSync(t,!0);s.push(...e)}return s}async resolve(t,e=!1){return new Promise((s=>{for(const e of this.#j)if(e.name===t)return void s(e);e||!this.parent?s(void 0):s(this.parent.resolve(t,!1))}))}resolveSync(t,e=!1){for(const s of this.#j)if(s.name===t)return s;if(!e&&this.parent)return this.parent.resolveSync(t,!1)}symbolFromPath(e,s="."){const a=e.split(s);let i=0;a[0]!==this.name&&0!==a[0].length||++i;let r=this;for(;i<a.length;){if(!(r instanceof t))return;const e=r.children.find((t=>t.name===a[i]));if(!e)return;r=e,++i}return r}indexOfChild(t){return this.#j.findIndex((e=>e===t))}nextSiblingOf(t){const e=this.indexOfChild(t);if(!(-1===e||e>=this.#j.length-1))return this.#j[e+1]}previousSiblingOf(t){const e=this.indexOfChild(t);if(!(e<1))return this.#j[e-1]}nextOf(e){if(!e.parent)return;if(e.parent!==this)return e.parent.nextOf(e);if(e instanceof t&&e.children.length>0)return e.children[0];const s=this.nextSiblingOf(e);return s||this.parent.nextOf(this)}isNamespace(t){return void 0!==t.inline&&void 0!==t.attributes}},as=(class extends(null){static{$e(this,"BlockSymbol")}},class extends ts{static{$e(this,"TypedSymbol")}type;constructor(t,e){super(t),this.type=e}}),is=class extends(null){static{$e(this,"VariableSymbol")}value;constructor(t,e,s){super(t,s),this.value=e}},rs=class extends(null){static{$e(this,"FieldSymbol")}setter;getter},cs=class extends(null){static{$e(this,"ParameterSymbol")}},ns=(class extends(null){static{$e(this,"RoutineSymbol")}returnType;constructor(t,e){super(t),this.returnType=e}getVariables(t=!0){return this.getSymbolsOfType(is)}getParameters(t=!0){return this.getSymbolsOfType(cs)}},class extends(null){static{$e(this,"MethodSymbol")}methodFlags=0}),hs=(class extends(null){static{$e(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(t,e,s){super(t),this.extends=e,this.implements=s}get baseTypes(){return this.extends}get kind(){return 7}getMethods(t=!1){return this.getSymbolsOfType(ns)}getFields(t=!1){return this.getSymbolsOfType(rs)}},class t{static{$e(this,"FundamentalType")}static integerType=new t("int",1,3);static floatType=new t("float",2,3);static stringType=new t("string",4,3);static boolType=new t("bool",6,3);name;typeKind;referenceKind;constructor(t,e=0,s=0){this.name=t,this.typeKind=e,this.referenceKind=s}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends(null){static{$e(this,"InterfaceSymbol")}reference=0;extends;constructor(t,e){super(t),this.extends=e}get baseTypes(){return this.extends}get kind(){return 8}getMethods(t=!1){return this.getSymbolsOfType(ns)}getFields(t=!1){return this.getSymbolsOfType(rs)}},class extends(null){static{$e(this,"LiteralSymbol")}value;constructor(t,e,s){super(t,s),this.value=e}},class extends ss{static{$e(this,"NamespaceSymbol")}inline;attributes;constructor(t,e=!1,s=[]){super(t),this.inline=e,this.attributes=s}}),Es=(class extends(null){static{$e(this,"TypeAlias")}targetType;constructor(t,e){super(t),this.targetType=e}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},$e(((t,e)=>{if(!t||!e)return[];let s;for(s=0;s<Math.min(t.length,e.length)&&t[s]===e[s];s++);return t.slice(0,s)}),"longestCommonPrefix")),Ts=class{static{$e(this,"CandidatesCollection")}tokens=new Map;rules=new Map},os=class{static{$e(this,"FollowSetWithPath")}intervals;path=[];following=[]},Rs=class t{static{$e(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new Ts;constructor(t){this.parser=t,this.atn=t.atn,this.vocabulary=t.vocabulary,this.ruleNames=t.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(t,e){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=e?.start?e.start.tokenIndex:0;const s=this.parser.tokenStream;this.tokens=[];let a=this.tokenStartIndex;for(;;){const e=s.get(a++);if(!e)break;if(e.channel===r.DEFAULT_CHANNEL&&(this.tokens.push(e),e.tokenIndex>=t||e.type===r.EOF))break;if(e.type===r.EOF)break}const i=e?e.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[i],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const e of this.candidates.rules){let t="";for(const s of e[1].ruleList)t+=this.ruleNames[s]+" ";console.log(this.ruleNames[e[0]]+", path: ",t)}const t=new Set;for(const e of this.candidates.tokens){let s=this.vocabulary.getDisplayName(e[0])??"";for(const t of e[1])s+=" "+this.vocabulary.getDisplayName(t);t.add(s)}console.log("\n\nCollected tokens:\n");for(const e of t)console.log(e);console.log("\n\n")}return this.candidates}checkPredicate(t){return t.getPredicate().evaluate(this.parser,p.empty)}translateStackToRuleIndex(t){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let e=t.length-1;e>=0;e--)if(this.translateToRuleIndex(e,t))return!0}else for(let e=0;e<t.length;e++)if(this.translateToRuleIndex(e,t))return!0;return!1}translateToRuleIndex(t,e){const{ruleIndex:s,startTokenIndex:a}=e[t];if(this.preferredRules.has(s)){const i=e.slice(0,t).map((({ruleIndex:t})=>t));let r=!0;for(const t of this.candidates.rules)if(t[0]===s&&t[1].ruleList.length===i.length&&i.every(((e,s)=>e===t[1].ruleList[s]))){r=!1;break}return r&&(this.candidates.rules.set(s,{startTokenIndex:a,ruleList:i}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[s])),!0}return!1}getFollowingTokens(t){const e=[],s=[t.target];for(;s.length>0;){const t=s.pop();t&&t.transitions.forEach((t=>{if(t.transitionType===S.ATOM)if(t.isEpsilon)s.push(t.target);else{const a=t.label.toArray();1!==a.length||this.ignoredTokens.has(a[0])||(e.push(a[0]),s.push(t.target))}}))}return e}determineFollowSets(t,e){const s=[],a=this.collectFollowSets(t,e,s,[],[]),i=new A;for(const r of s)i.addSet(r.intervals);return{sets:s,isExhaustive:a,combined:i}}collectFollowSets(t,e,s,a,i){if(a.find((e=>e===t)))return!0;if(a.push(t),t===e||t.constructor.stateType===W.RULE_STOP)return a.pop(),!1;let c=!0;for(const n of t.transitions)if(n.transitionType===S.RULE){const t=n;if(-1!==i.indexOf(t.target.ruleIndex))continue;i.push(t.target.ruleIndex);const r=this.collectFollowSets(n.target,e,s,a,i);if(i.pop(),!r){const r=this.collectFollowSets(t.followState,e,s,a,i);c&&=r}}else if(n.transitionType===S.PREDICATE){if(this.checkPredicate(n)){const t=this.collectFollowSets(n.target,e,s,a,i);c&&=t}}else if(n.isEpsilon){const t=this.collectFollowSets(n.target,e,s,a,i);c&&=t}else if(n.transitionType===S.WILDCARD){const t=new os;t.intervals=A.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),t.path=i.slice(),s.push(t)}else{let t=n.label;if(t&&t.length>0){n.transitionType===S.NOT_SET&&(t=t.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const e=new os;e.intervals=t??new A,e.path=i.slice(),e.following=this.getFollowingTokens(n),s.push(e)}}return a.pop(),c}processRule(e,s,a,i,c){let n=this.shortcutMap.get(e.ruleIndex);if(n){if(n.has(s))return this.showDebugOutput&&console.log("=====> shortcut"),n.get(s)}else n=new Map,this.shortcutMap.set(e.ruleIndex,n);const h=new Set;let E=t.followSetsByATN.get(this.parser.constructor.name);E||(E=new Map,t.followSetsByATN.set(this.parser.constructor.name,E));let T=E.get(e.stateNumber);if(!T){const t=this.atn.ruleToStopState[e.ruleIndex];T=this.determineFollowSets(e,t),E.set(e.stateNumber,T)}const o=this.tokens[s].tokenIndex;if(a.push({startTokenIndex:o,ruleIndex:e.ruleIndex}),s>=this.tokens.length-1){if(this.preferredRules.has(e.ruleIndex))this.translateStackToRuleIndex(a);else for(const t of T.sets){const e=a.slice(),s=t.path.map((t=>({startTokenIndex:o,ruleIndex:t})));if(e.push(...s),!this.translateStackToRuleIndex(e))for(const a of t.intervals.toArray())this.ignoredTokens.has(a)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(a)),this.candidates.tokens.has(a)?this.candidates.tokens.get(a)!==t.following&&this.candidates.tokens.set(a,[]):this.candidates.tokens.set(a,t.following))}return T.isExhaustive||h.add(s),a.pop(),h}{const t=this.tokens[s].type;if(T.isExhaustive&&!T.combined.contains(t))return a.pop(),h}e.isPrecedenceRule&&this.precedenceStack.push(i);const R=[];let l;for(R.push({state:e,tokenListIndex:s});R.length>0;){l=R.pop(),++this.statesProcessed;const t=this.tokens[l.tokenListIndex].type,e=l.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(c,l.state,this.generateBaseDescription(l.state),l.tokenListIndex),this.showRuleStack&&this.printRuleState(a)),l.state.constructor.stateType===W.RULE_STOP){h.add(l.tokenListIndex);continue}const s=l.state.transitions;for(const i of s)switch(i.transitionType){case S.RULE:{const t=i,e=this.processRule(i.target,l.tokenListIndex,a,t.precedence,c+1);for(const s of e)R.push({state:i.followState,tokenListIndex:s});break}case S.PREDICATE:this.checkPredicate(i)&&R.push({state:i.target,tokenListIndex:l.tokenListIndex});break;case S.PRECEDENCE:i.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&R.push({state:i.target,tokenListIndex:l.tokenListIndex});break;case S.WILDCARD:if(e){if(!this.translateStackToRuleIndex(a))for(const t of A.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(t)||this.candidates.tokens.set(t,[])}else R.push({state:i.target,tokenListIndex:l.tokenListIndex+1});break;default:{if(i.isEpsilon){R.push({state:i.target,tokenListIndex:l.tokenListIndex});continue}let s=i.label;if(s&&s.length>0)if(i.transitionType===S.NOT_SET&&(s=s.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),e){if(!this.translateStackToRuleIndex(a)){const t=s.toArray(),e=1===t.length;for(const s of t)if(!this.ignoredTokens.has(s)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s));const t=e?this.getFollowingTokens(i):[];this.candidates.tokens.has(s)?this.candidates.tokens.set(s,Es(t,this.candidates.tokens.get(s))):this.candidates.tokens.set(s,t)}}}else s.contains(t)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(t)),R.push({state:i.target,tokenListIndex:l.tokenListIndex+1}))}}}return a.pop(),e.isPrecedenceRule&&this.precedenceStack.pop(),n.set(s,h),h}generateBaseDescription(e){return`[${e.stateNumber===W.INVALID_STATE_NUMBER?"Invalid":e.stateNumber} ${t.atnStateTypeMap[e.constructor.stateType]}] in ${this.ruleNames[e.ruleIndex]}`}printDescription(e,s,a,i){const r=" ".repeat(e);let c=r,n="";if(this.debugOutputWithTransitions)for(const h of s.transitions){let e="";const s=h.label?h.label.toArray():[];if(s.length>2)e=this.vocabulary.getDisplayName(s[0])+" .. "+this.vocabulary.getDisplayName(s[s.length-1]);else for(const t of s)e.length>0&&(e+=", "),e+=this.vocabulary.getDisplayName(t);0===e.length&&(e="\u03b5");const a=t.atnStateTypeMap[h.target.constructor.stateType];n+=`\n${r}\t(${e}) [${h.target.stateNumber} ${a}] in ${this.ruleNames[h.target.ruleIndex]}`}i>=this.tokens.length-1?c+=`<<${this.tokenStartIndex+i}>> `:c+=`<${this.tokenStartIndex+i}> `,console.log(c+"Current state: "+a+n)}printRuleState(t){if(0!==t.length)for(const e of t)console.log(this.ruleNames[e.ruleIndex]);else console.log("<empty stack>")}},As=class extends ss{constructor(t,e){super(t),this.options=e}static{$e(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...t){t.forEach((t=>{this.dependencies.add(t)}))}removeDependency(t){this.dependencies.has(t)&&this.dependencies.delete(t)}addNewSymbolOfType(t,e,...s){const a=new t(...s);return e&&e!==this?e.addSymbol(a):this.addSymbol(a),a}async addNewNamespaceFromPath(t,e,s="."){const a=e.split(s);let i=0,r=void 0===t?this:t;for(;i<a.length-1;){let t=await r.resolve(a[i],!0);void 0===t&&(t=this.addNewSymbolOfType(hs,r,a[i])),r=t,++i}return this.addNewSymbolOfType(hs,r,a[a.length-1])}addNewNamespaceFromPathSync(t,e,s="."){const a=e.split(s);let i=0,r=void 0===t?this:t;for(;i<a.length-1;){let t=r.resolveSync(a[i],!0);void 0===t&&(t=this.addNewSymbolOfType(hs,r,a[i])),r=t,++i}return this.addNewSymbolOfType(hs,r,a[a.length-1])}async getAllSymbols(t,e=!1){const s=await super.getAllSymbols(t,e);if(!e){(await Promise.all([...this.dependencies].map((s=>s.getAllSymbols(t,e))))).forEach((t=>{s.push(...t)}))}return s}getAllSymbolsSync(t,e=!1){const s=super.getAllSymbolsSync(t,e);return e||this.dependencies.forEach((a=>{s.push(...a.getAllSymbolsSync(t,e))})),s}async symbolWithContext(t){const e=$e((s=>{if(s.context===t)return s;if(s instanceof ss)for(const t of s.children){const s=e(t);if(s)return s}}),"findRecursive");let s=await this.getAllSymbols(ts);for(const a of s){const t=e(a);if(t)return t}for(const a of this.dependencies){s=await a.getAllSymbols(ts);for(const t of s){const s=e(t);if(s)return s}}}symbolWithContextSync(t){const e=$e((s=>{if(s.context===t)return s;if(s instanceof ss)for(const t of s.children){const s=e(t);if(s)return s}}),"findRecursive");let s=this.getAllSymbolsSync(ts);for(const a of s){const t=e(a);if(t)return t}for(const a of this.dependencies){s=a.getAllSymbolsSync(ts);for(const t of s){const s=e(t);if(s)return s}}}async resolve(t,e=!1){let s=await super.resolve(t,e);if(!s&&!e)for(const a of this.dependencies)if(s=await a.resolve(t,!1),s)return s;return s}resolveSync(t,e=!1){let s=super.resolveSync(t,e);if(!s&&!e)for(const a of this.dependencies)if(s=a.resolveSync(t,!1),s)return s;return s}},Ss=class extends as{constructor(t,e,s){super(t,s),this.name=t,this.alias=e}};function ls(t){return function(t=[]){let e=t.reduce(((t,e)=>{let s=t[e.name]??new Set;return e.alias&&s.add(e.alias),t[e.name]=s,t}),{});return Object.keys(e).reduce(((t,s)=>{let a=e[s];return a.size>0?a?.forEach((e=>{t.push({name:s,alias:e})})):t.push({name:s}),t}),[])}(t.symbolTable.getNestedSymbolsOfTypeSync(Ss))}var Os=class extends as{constructor(t,e){super(t,e),this.name=t}};var Is,us=(Is=us||{},Is.ALL="ALL",Is.TABLES="TABLES",Is.VIEWS="VIEWS",Is),Ns=/^\p{L}+$/u,Ls=class extends zt{constructor(){super(...arguments),this.tags=[]}pushTag(){this.tags.push(this.text)}isTag(){return this.text===this.tags[0]}popTag(){this.tags.shift()}checkLA(t){return this.inputStream.LA(1)!==t}charIsLetter(){return Ns.test(this.inputStream.LA(-1))}HandleNumericFail(){this.inputStream.seek(this.inputStream.index-2),this.type=658}HandleLessLessGreaterGreater(){"<<"==this.text?this.type=18:">>"==this.text&&(this.type=19)}UnterminatedBlockCommentDebugAssert(){}CheckIfUtf32Letter(){let t,e=this.inputStream.LA(-2)<<8+this.inputStream.LA(-1);return e<65536?t=[e]:(e-=65536,t=[e/1024+55296,e%1024+56320]),Ns.test(`${t[0]}`)}},Cs=class t extends Ls{static{this.Dollar=1}static{this.OPEN_PAREN=2}static{this.CLOSE_PAREN=3}static{this.OPEN_BRACKET=4}static{this.CLOSE_BRACKET=5}static{this.COMMA=6}static{this.SEMI=7}static{this.COLON=8}static{this.STAR=9}static{this.EQUAL=10}static{this.DOT=11}static{this.PLUS=12}static{this.MINUS=13}static{this.SLASH=14}static{this.CARET=15}static{this.LT=16}static{this.GT=17}static{this.LESS_LESS=18}static{this.GREATER_GREATER=19}static{this.COLON_EQUALS=20}static{this.LESS_EQUALS=21}static{this.EQUALS_GREATER=22}static{this.GREATER_EQUALS=23}static{this.DOT_DOT=24}static{this.NOT_EQUALS=25}static{this.TYPECAST=26}static{this.PERCENT=27}static{this.PARAM=28}static{this.Operator=29}static{this.ALL=30}static{this.ANALYSE=31}static{this.ANALYZE=32}static{this.AND=33}static{this.ANY=34}static{this.ARRAY=35}static{this.AS=36}static{this.ASC=37}static{this.ASYMMETRIC=38}static{this.BOTH=39}static{this.CASE=40}static{this.CAST=41}static{this.CHECK=42}static{this.COLLATE=43}static{this.COLUMN=44}static{this.CONSTRAINT=45}static{this.CREATE=46}static{this.CURRENT_CATALOG=47}static{this.CURRENT_DATE=48}static{this.CURRENT_ROLE=49}static{this.CURRENT_TIME=50}static{this.CURRENT_TIMESTAMP=51}static{this.CURRENT_USER=52}static{this.DEFAULT=53}static{this.DEFERRABLE=54}static{this.DESC=55}static{this.DISTINCT=56}static{this.DO=57}static{this.ELSE=58}static{this.EXCEPT=59}static{this.FALSE_P=60}static{this.FETCH=61}static{this.FOR=62}static{this.FOREIGN=63}static{this.FROM=64}static{this.GRANT=65}static{this.GROUP_P=66}static{this.HAVING=67}static{this.IN_P=68}static{this.INITIALLY=69}static{this.INTERSECT=70}static{this.INTO=71}static{this.LATERAL_P=72}static{this.LEADING=73}static{this.LIMIT=74}static{this.LOCALTIME=75}static{this.LOCALTIMESTAMP=76}static{this.NOT=77}static{this.NULL_P=78}static{this.OFFSET=79}static{this.ON=80}static{this.ONLY=81}static{this.OR=82}static{this.ORDER=83}static{this.PLACING=84}static{this.PRIMARY=85}static{this.REFERENCES=86}static{this.RETURNING=87}static{this.SELECT=88}static{this.SESSION_USER=89}static{this.SOME=90}static{this.SYMMETRIC=91}static{this.TABLE=92}static{this.THEN=93}static{this.TO=94}static{this.TRAILING=95}static{this.TRUE_P=96}static{this.UNION=97}static{this.UNIQUE=98}static{this.USER=99}static{this.USING=100}static{this.VARIADIC=101}static{this.WHEN=102}static{this.WHERE=103}static{this.WINDOW=104}static{this.WITH=105}static{this.AUTHORIZATION=106}static{this.BINARY=107}static{this.COLLATION=108}static{this.CONCURRENTLY=109}static{this.CROSS=110}static{this.CURRENT_SCHEMA=111}static{this.FREEZE=112}static{this.FULL=113}static{this.ILIKE=114}static{this.INNER_P=115}static{this.IS=116}static{this.ISNULL=117}static{this.JOIN=118}static{this.LEFT=119}static{this.LIKE=120}static{this.NATURAL=121}static{this.NOTNULL=122}static{this.OUTER_P=123}static{this.OVER=124}static{this.OVERLAPS=125}static{this.RIGHT=126}static{this.SIMILAR=127}static{this.VERBOSE=128}static{this.ABORT_P=129}static{this.ABSOLUTE_P=130}static{this.ACCESS=131}static{this.ACTION=132}static{this.ADD_P=133}static{this.ADMIN=134}static{this.AFTER=135}static{this.AGGREGATE=136}static{this.ALSO=137}static{this.ALTER=138}static{this.ALWAYS=139}static{this.ASSERTION=140}static{this.ASSIGNMENT=141}static{this.AT=142}static{this.ATTRIBUTE=143}static{this.BACKWARD=144}static{this.BEFORE=145}static{this.BEGIN_P=146}static{this.BY=147}static{this.CACHE=148}static{this.CALLED=149}static{this.CASCADE=150}static{this.CASCADED=151}static{this.CATALOG=152}static{this.CHAIN=153}static{this.CHARACTERISTICS=154}static{this.CHECKPOINT=155}static{this.CLASS=156}static{this.CLOSE=157}static{this.CLUSTER=158}static{this.COMMENT=159}static{this.COMMENTS=160}static{this.COMMIT=161}static{this.COMMITTED=162}static{this.CONFIGURATION=163}static{this.CONNECTION=164}static{this.CONSTRAINTS=165}static{this.CONTENT_P=166}static{this.CONTINUE_P=167}static{this.CONVERSION_P=168}static{this.COPY=169}static{this.COST=170}static{this.CSV=171}static{this.CURSOR=172}static{this.CYCLE=173}static{this.DATA_P=174}static{this.DATABASE=175}static{this.DAY_P=176}static{this.DEALLOCATE=177}static{this.DECLARE=178}static{this.DEFAULTS=179}static{this.DEFERRED=180}static{this.DEFINER=181}static{this.DELETE_P=182}static{this.DELIMITER=183}static{this.DELIMITERS=184}static{this.DICTIONARY=185}static{this.DISABLE_P=186}static{this.DISCARD=187}static{this.DOCUMENT_P=188}static{this.DOMAIN_P=189}static{this.DOUBLE_P=190}static{this.DROP=191}static{this.EACH=192}static{this.ENABLE_P=193}static{this.ENCODING=194}static{this.ENCRYPTED=195}static{this.ENUM_P=196}static{this.ESCAPE=197}static{this.EVENT=198}static{this.EXCLUDE=199}static{this.EXCLUDING=200}static{this.EXCLUSIVE=201}static{this.EXECUTE=202}static{this.EXPLAIN=203}static{this.EXTENSION=204}static{this.EXTERNAL=205}static{this.FAMILY=206}static{this.FIRST_P=207}static{this.FOLLOWING=208}static{this.FORCE=209}static{this.FORWARD=210}static{this.FUNCTION=211}static{this.FUNCTIONS=212}static{this.GLOBAL=213}static{this.GRANTED=214}static{this.HANDLER=215}static{this.HEADER_P=216}static{this.HOLD=217}static{this.HOUR_P=218}static{this.IDENTITY_P=219}static{this.IF_P=220}static{this.IMMEDIATE=221}static{this.IMMUTABLE=222}static{this.IMPLICIT_P=223}static{this.INCLUDING=224}static{this.INCREMENT=225}static{this.INDEX=226}static{this.INDEXES=227}static{this.INHERIT=228}static{this.INHERITS=229}static{this.INLINE_P=230}static{this.INSENSITIVE=231}static{this.INSERT=232}static{this.INSTEAD=233}static{this.INVOKER=234}static{this.ISOLATION=235}static{this.KEY=236}static{this.LABEL=237}static{this.LANGUAGE=238}static{this.LARGE_P=239}static{this.LAST_P=240}static{this.LEAKPROOF=241}static{this.LEVEL=242}static{this.LISTEN=243}static{this.LOAD=244}static{this.LOCAL=245}static{this.LOCATION=246}static{this.LOCK_P=247}static{this.MAPPING=248}static{this.MATCH=249}static{this.MATCHED=250}static{this.MATERIALIZED=251}static{this.MAXVALUE=252}static{this.MERGE=253}static{this.MINUTE_P=254}static{this.MINVALUE=255}static{this.MODE=256}static{this.MONTH_P=257}static{this.MOVE=258}static{this.NAME_P=259}static{this.NAMES=260}static{this.NEXT=261}static{this.NO=262}static{this.NOTHING=263}static{this.NOTIFY=264}static{this.NOWAIT=265}static{this.NULLS_P=266}static{this.OBJECT_P=267}static{this.OF=268}static{this.OFF=269}static{this.OIDS=270}static{this.OPERATOR=271}static{this.OPTION=272}static{this.OPTIONS=273}static{this.OWNED=274}static{this.OWNER=275}static{this.PARSER=276}static{this.PARTIAL=277}static{this.PARTITION=278}static{this.PASSING=279}static{this.PASSWORD=280}static{this.PLANS=281}static{this.PRECEDING=282}static{this.PREPARE=283}static{this.PREPARED=284}static{this.PRESERVE=285}static{this.PRIOR=286}static{this.PRIVILEGES=287}static{this.PROCEDURAL=288}static{this.PROCEDURE=289}static{this.PROGRAM=290}static{this.QUOTE=291}static{this.RANGE=292}static{this.READ=293}static{this.REASSIGN=294}static{this.RECHECK=295}static{this.RECURSIVE=296}static{this.REF=297}static{this.REFRESH=298}static{this.REINDEX=299}static{this.RELATIVE_P=300}static{this.RELEASE=301}static{this.RENAME=302}static{this.REPEATABLE=303}static{this.REPLACE=304}static{this.REPLICA=305}static{this.RESET=306}static{this.RESTART=307}static{this.RESTRICT=308}static{this.RETURNS=309}static{this.REVOKE=310}static{this.ROLE=311}static{this.ROLLBACK=312}static{this.ROWS=313}static{this.RULE=314}static{this.SAVEPOINT=315}static{this.SCHEMA=316}static{this.SCROLL=317}static{this.SEARCH=318}static{this.SECOND_P=319}static{this.SECURITY=320}static{this.SEQUENCE=321}static{this.SEQUENCES=322}static{this.SERIALIZABLE=323}static{this.SERVER=324}static{this.SESSION=325}static{this.SET=326}static{this.SHARE=327}static{this.SHOW=328}static{this.SIMPLE=329}static{this.SNAPSHOT=330}static{this.STABLE=331}static{this.STANDALONE_P=332}static{this.START=333}static{this.STATEMENT=334}static{this.STATISTICS=335}static{this.STDIN=336}static{this.STDOUT=337}static{this.STORAGE=338}static{this.STRICT_P=339}static{this.STRIP_P=340}static{this.SYSID=341}static{this.SYSTEM_P=342}static{this.TABLES=343}static{this.TABLESPACE=344}static{this.TEMP=345}static{this.TEMPLATE=346}static{this.TEMPORARY=347}static{this.TEXT_P=348}static{this.TRANSACTION=349}static{this.TRIGGER=350}static{this.TRUNCATE=351}static{this.TRUSTED=352}static{this.TYPE_P=353}static{this.TYPES_P=354}static{this.UNBOUNDED=355}static{this.UNCOMMITTED=356}static{this.UNENCRYPTED=357}static{this.UNKNOWN=358}static{this.UNLISTEN=359}static{this.UNLOGGED=360}static{this.UNTIL=361}static{this.UPDATE=362}static{this.VACUUM=363}static{this.VALID=364}static{this.VALIDATE=365}static{this.VALIDATOR=366}static{this.VARYING=367}static{this.VERSION_P=368}static{this.VIEW=369}static{this.VOLATILE=370}static{this.WHITESPACE_P=371}static{this.WITHOUT=372}static{this.WORK=373}static{this.WRAPPER=374}static{this.WRITE=375}static{this.XML_P=376}static{this.YEAR_P=377}static{this.YES_P=378}static{this.ZONE=379}static{this.BETWEEN=380}static{this.BIGINT=381}static{this.BIT=382}static{this.BOOLEAN_P=383}static{this.CHAR_P=384}static{this.CHARACTER=385}static{this.COALESCE=386}static{this.DEC=387}static{this.DECIMAL_P=388}static{this.EXISTS=389}static{this.EXTRACT=390}static{this.FLOAT_P=391}static{this.GREATEST=392}static{this.INOUT=393}static{this.INT_P=394}static{this.INTEGER=395}static{this.INTERVAL=396}static{this.LEAST=397}static{this.NATIONAL=398}static{this.NCHAR=399}static{this.NONE=400}static{this.NULLIF=401}static{this.NUMERIC=402}static{this.OVERLAY=403}static{this.POSITION=404}static{this.PRECISION=405}static{this.REAL=406}static{this.ROW=407}static{this.SETOF=408}static{this.SMALLINT=409}static{this.SUBSTRING=410}static{this.TIME=411}static{this.TIMESTAMP=412}static{this.TREAT=413}static{this.TRIM=414}static{this.VALUES=415}static{this.VARCHAR=416}static{this.XMLATTRIBUTES=417}static{this.XMLCOMMENT=418}static{this.XMLAGG=419}static{this.XML_IS_WELL_FORMED=420}static{this.XML_IS_WELL_FORMED_DOCUMENT=421}static{this.XML_IS_WELL_FORMED_CONTENT=422}static{this.XPATH=423}static{this.XPATH_EXISTS=424}static{this.XMLCONCAT=425}static{this.XMLELEMENT=426}static{this.XMLEXISTS=427}static{this.XMLFOREST=428}static{this.XMLPARSE=429}static{this.XMLPI=430}static{this.XMLROOT=431}static{this.XMLSERIALIZE=432}static{this.CALL=433}static{this.CURRENT_P=434}static{this.ATTACH=435}static{this.DETACH=436}static{this.EXPRESSION=437}static{this.GENERATED=438}static{this.LOGGED=439}static{this.STORED=440}static{this.INCLUDE=441}static{this.ROUTINE=442}static{this.TRANSFORM=443}static{this.IMPORT_P=444}static{this.POLICY=445}static{this.METHOD=446}static{this.REFERENCING=447}static{this.NEW=448}static{this.OLD=449}static{this.VALUE_P=450}static{this.SUBSCRIPTION=451}static{this.PUBLICATION=452}static{this.OUT_P=453}static{this.END_P=454}static{this.ROUTINES=455}static{this.SCHEMAS=456}static{this.PROCEDURES=457}static{this.INPUT_P=458}static{this.SUPPORT=459}static{this.PARALLEL=460}static{this.SQL_P=461}static{this.DEPENDS=462}static{this.OVERRIDING=463}static{this.CONFLICT=464}static{this.SKIP_P=465}static{this.LOCKED=466}static{this.TIES=467}static{this.ROLLUP=468}static{this.CUBE=469}static{this.GROUPING=470}static{this.SETS=471}static{this.TABLESAMPLE=472}static{this.ORDINALITY=473}static{this.XMLTABLE=474}static{this.COLUMNS=475}static{this.XMLNAMESPACES=476}static{this.ROWTYPE=477}static{this.NORMALIZED=478}static{this.WITHIN=479}static{this.FILTER=480}static{this.GROUPS=481}static{this.OTHERS=482}static{this.NFC=483}static{this.NFD=484}static{this.NFKC=485}static{this.NFKD=486}static{this.UESCAPE=487}static{this.VIEWS=488}static{this.NORMALIZE=489}static{this.DUMP=490}static{this.PRINT_STRICT_PARAMS=491}static{this.VARIABLE_CONFLICT=492}static{this.ERROR=493}static{this.USE_VARIABLE=494}static{this.USE_COLUMN=495}static{this.ALIAS=496}static{this.CONSTANT=497}static{this.PERFORM=498}static{this.GET=499}static{this.DIAGNOSTICS=500}static{this.STACKED=501}static{this.ELSIF=502}static{this.WHILE=503}static{this.REVERSE=504}static{this.FOREACH=505}static{this.SLICE=506}static{this.EXIT=507}static{this.RETURN=508}static{this.QUERY=509}static{this.RAISE=510}static{this.SQLSTATE=511}static{this.DEBUG=512}static{this.LOG=513}static{this.INFO=514}static{this.NOTICE=515}static{this.WARNING=516}static{this.EXCEPTION=517}static{this.ASSERT=518}static{this.LOOP=519}static{this.OPEN=520}static{this.ABS=521}static{this.CBRT=522}static{this.CEIL=523}static{this.CEILING=524}static{this.DEGREES=525}static{this.DIV=526}static{this.EXP=527}static{this.FACTORIAL=528}static{this.FLOOR=529}static{this.GCD=530}static{this.LCM=531}static{this.LN=532}static{this.LOG10=533}static{this.MIN_SCALE=534}static{this.MOD=535}static{this.PI=536}static{this.POWER=537}static{this.RADIANS=538}static{this.ROUND=539}static{this.SCALE=540}static{this.SIGN=541}static{this.SQRT=542}static{this.TRIM_SCALE=543}static{this.TRUNC=544}static{this.WIDTH_BUCKET=545}static{this.RANDOM=546}static{this.SETSEED=547}static{this.ACOS=548}static{this.ACOSD=549}static{this.ASIN=550}static{this.ASIND=551}static{this.ATAN=552}static{this.ATAND=553}static{this.ATAN2=554}static{this.ATAN2D=555}static{this.COS=556}static{this.COSD=557}static{this.COT=558}static{this.COTD=559}static{this.SIN=560}static{this.SIND=561}static{this.TAN=562}static{this.TAND=563}static{this.SINH=564}static{this.COSH=565}static{this.TANH=566}static{this.ASINH=567}static{this.ACOSH=568}static{this.ATANH=569}static{this.BIT_LENGTH=570}static{this.CHAR_LENGTH=571}static{this.CHARACTER_LENGTH=572}static{this.LOWER=573}static{this.OCTET_LENGTH=574}static{this.UPPER=575}static{this.ASCII=576}static{this.BTRIM=577}static{this.CHR=578}static{this.CONCAT=579}static{this.CONCAT_WS=580}static{this.FORMAT=581}static{this.INITCAP=582}static{this.LENGTH=583}static{this.LPAD=584}static{this.LTRIM=585}static{this.MD5=586}static{this.PARSE_IDENT=587}static{this.PG_CLIENT_ENCODING=588}static{this.QUOTE_IDENT=589}static{this.QUOTE_LITERAL=590}static{this.QUOTE_NULLABLE=591}static{this.REGEXP_COUNT=592}static{this.REGEXP_INSTR=593}static{this.REGEXP_LIKE=594}static{this.REGEXP_MATCH=595}static{this.REGEXP_MATCHES=596}static{this.REGEXP_REPLACE=597}static{this.REGEXP_SPLIT_TO_ARRAY=598}static{this.REGEXP_SPLIT_TO_TABLE=599}static{this.REGEXP_SUBSTR=600}static{this.REPEAT=601}static{this.RPAD=602}static{this.RTRIM=603}static{this.SPLIT_PART=604}static{this.STARTS_WITH=605}static{this.STRING_TO_ARRAY=606}static{this.STRING_TO_TABLE=607}static{this.STRPOS=608}static{this.SUBSTR=609}static{this.TO_ASCII=610}static{this.TO_HEX=611}static{this.TRANSLATE=612}static{this.UNISTR=613}static{this.AGE=614}static{this.CLOCK_TIMESTAMP=615}static{this.DATE_BIN=616}static{this.DATE_PART=617}static{this.DATE_TRUNC=618}static{this.ISFINITE=619}static{this.JUSTIFY_DAYS=620}static{this.JUSTIFY_HOURS=621}static{this.JUSTIFY_INTERVAL=622}static{this.MAKE_DATE=623}static{this.MAKE_INTERVAL=624}static{this.MAKE_TIME=625}static{this.MAKE_TIMESTAMP=626}static{this.MAKE_TIMESTAMPTZ=627}static{this.NOW=628}static{this.STATEMENT_TIMESTAMP=629}static{this.TIMEOFDAY=630}static{this.TRANSACTION_TIMESTAMP=631}static{this.TO_TIMESTAMP=632}static{this.TO_CHAR=633}static{this.TO_DATE=634}static{this.TO_NUMBER=635}static{this.Identifier=636}static{this.QuotedIdentifier=637}static{this.UnterminatedQuotedIdentifier=638}static{this.InvalidQuotedIdentifier=639}static{this.InvalidUnterminatedQuotedIdentifier=640}static{this.UnicodeQuotedIdentifier=641}static{this.UnterminatedUnicodeQuotedIdentifier=642}static{this.InvalidUnicodeQuotedIdentifier=643}static{this.InvalidUnterminatedUnicodeQuotedIdentifier=644}static{this.StringConstant=645}static{this.UnterminatedStringConstant=646}static{this.UnicodeEscapeStringConstant=647}static{this.UnterminatedUnicodeEscapeStringConstant=648}static{this.BeginDollarStringConstant=649}static{this.BinaryStringConstant=650}static{this.UnterminatedBinaryStringConstant=651}static{this.InvalidBinaryStringConstant=652}static{this.InvalidUnterminatedBinaryStringConstant=653}static{this.HexadecimalStringConstant=654}static{this.UnterminatedHexadecimalStringConstant=655}static{this.InvalidHexadecimalStringConstant=656}static{this.InvalidUnterminatedHexadecimalStringConstant=657}static{this.Integral=658}static{this.NumericFail=659}static{this.Numeric=660}static{this.PLSQLVARIABLENAME=661}static{this.PLSQLIDENTIFIER=662}static{this.Whitespace=663}static{this.Newline=664}static{this.LineComment=665}static{this.BlockComment=666}static{this.UnterminatedBlockComment=667}static{this.MetaCommand=668}static{this.EndMetaCommand=669}static{this.ErrorCharacter=670}static{this.EscapeStringConstant=671}static{this.UnterminatedEscapeStringConstant=672}static{this.InvalidEscapeStringConstant=673}static{this.InvalidUnterminatedEscapeStringConstant=674}static{this.AfterEscapeStringConstantMode_NotContinued=675}static{this.AfterEscapeStringConstantWithNewlineMode_NotContinued=676}static{this.DollarText=677}static{this.EndDollarStringConstant=678}static{this.AfterEscapeStringConstantWithNewlineMode_Continued=679}static{this.EscapeStringConstantMode=1}static{this.AfterEscapeStringConstantMode=2}static{this.AfterEscapeStringConstantWithNewlineMode=3}static{this.DollarQuotedStringMode=4}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,"'$'","'('","')'","'['","']'","','","';'","':'","'*'","'='","'.'","'+'","'-'","'/'","'^'","'<'","'>'","'<<'","'>>'","':='","'<='","'=>'","'>='","'..'","'<>'","'::'","'%'",null,null,"'ALL'","'ANALYSE'","'ANALYZE'","'AND'","'ANY'","'ARRAY'","'AS'","'ASC'","'ASYMMETRIC'","'BOTH'","'CASE'","'CAST'","'CHECK'","'COLLATE'","'COLUMN'","'CONSTRAINT'","'CREATE'","'CURRENT_CATALOG'","'CURRENT_DATE'","'CURRENT_ROLE'","'CURRENT_TIME'","'CURRENT_TIMESTAMP'","'CURRENT_USER'","'DEFAULT'","'DEFERRABLE'","'DESC'","'DISTINCT'","'DO'","'ELSE'","'EXCEPT'","'FALSE'","'FETCH'","'FOR'","'FOREIGN'","'FROM'","'GRANT'","'GROUP'","'HAVING'","'IN'","'INITIALLY'","'INTERSECT'","'INTO'","'LATERAL'","'LEADING'","'LIMIT'","'LOCALTIME'","'LOCALTIMESTAMP'","'NOT'","'NULL'","'OFFSET'","'ON'","'ONLY'","'OR'","'ORDER'","'PLACING'","'PRIMARY'","'REFERENCES'","'RETURNING'","'SELECT'","'SESSION_USER'","'SOME'","'SYMMETRIC'","'TABLE'","'THEN'","'TO'","'TRAILING'","'TRUE'","'UNION'","'UNIQUE'","'USER'","'USING'","'VARIADIC'","'WHEN'","'WHERE'","'WINDOW'","'WITH'","'AUTHORIZATION'","'BINARY'","'COLLATION'","'CONCURRENTLY'","'CROSS'","'CURRENT_SCHEMA'","'FREEZE'","'FULL'","'ILIKE'","'INNER'","'IS'","'ISNULL'","'JOIN'","'LEFT'","'LIKE'","'NATURAL'","'NOTNULL'","'OUTER'","'OVER'","'OVERLAPS'","'RIGHT'","'SIMILAR'","'VERBOSE'","'ABORT'","'ABSOLUTE'","'ACCESS'","'ACTION'","'ADD'","'ADMIN'","'AFTER'","'AGGREGATE'","'ALSO'","'ALTER'","'ALWAYS'","'ASSERTION'","'ASSIGNMENT'","'AT'","'ATTRIBUTE'","'BACKWARD'","'BEFORE'","'BEGIN'","'BY'","'CACHE'","'CALLED'","'CASCADE'","'CASCADED'","'CATALOG'","'CHAIN'","'CHARACTERISTICS'","'CHECKPOINT'","'CLASS'","'CLOSE'","'CLUSTER'","'COMMENT'","'COMMENTS'","'COMMIT'","'COMMITTED'","'CONFIGURATION'","'CONNECTION'","'CONSTRAINTS'","'CONTENT'","'CONTINUE'","'CONVERSION'","'COPY'","'COST'","'CSV'","'CURSOR'","'CYCLE'","'DATA'","'DATABASE'","'DAY'","'DEALLOCATE'","'DECLARE'","'DEFAULTS'","'DEFERRED'","'DEFINER'","'DELETE'","'DELIMITER'","'DELIMITERS'","'DICTIONARY'","'DISABLE'","'DISCARD'","'DOCUMENT'","'DOMAIN'","'DOUBLE'","'DROP'","'EACH'","'ENABLE'","'ENCODING'","'ENCRYPTED'","'ENUM'","'ESCAPE'","'EVENT'","'EXCLUDE'","'EXCLUDING'","'EXCLUSIVE'","'EXECUTE'","'EXPLAIN'","'EXTENSION'","'EXTERNAL'","'FAMILY'","'FIRST'","'FOLLOWING'","'FORCE'","'FORWARD'","'FUNCTION'","'FUNCTIONS'","'GLOBAL'","'GRANTED'","'HANDLER'","'HEADER'","'HOLD'","'HOUR'","'IDENTITY'","'IF'","'IMMEDIATE'","'IMMUTABLE'","'IMPLICIT'","'INCLUDING'","'INCREMENT'","'INDEX'","'INDEXES'","'INHERIT'","'INHERITS'","'INLINE'","'INSENSITIVE'","'INSERT'","'INSTEAD'","'INVOKER'","'ISOLATION'","'KEY'","'LABEL'","'LANGUAGE'","'LARGE'","'LAST'","'LEAKPROOF'","'LEVEL'","'LISTEN'","'LOAD'","'LOCAL'","'LOCATION'","'LOCK'","'MAPPING'","'MATCH'","'MATCHED'","'MATERIALIZED'","'MAXVALUE'","'MERGE'","'MINUTE'","'MINVALUE'","'MODE'","'MONTH'","'MOVE'","'NAME'","'NAMES'","'NEXT'","'NO'","'NOTHING'","'NOTIFY'","'NOWAIT'","'NULLS'","'OBJECT'","'OF'","'OFF'","'OIDS'","'OPERATOR'","'OPTION'","'OPTIONS'","'OWNED'","'OWNER'","'PARSER'","'PARTIAL'","'PARTITION'","'PASSING'","'PASSWORD'","'PLANS'","'PRECEDING'","'PREPARE'","'PREPARED'","'PRESERVE'","'PRIOR'","'PRIVILEGES'","'PROCEDURAL'","'PROCEDURE'","'PROGRAM'","'QUOTE'","'RANGE'","'READ'","'REASSIGN'","'RECHECK'","'RECURSIVE'","'REF'","'REFRESH'","'REINDEX'","'RELATIVE'","'RELEASE'","'RENAME'","'REPEATABLE'","'REPLACE'","'REPLICA'","'RESET'","'RESTART'","'RESTRICT'","'RETURNS'","'REVOKE'","'ROLE'","'ROLLBACK'","'ROWS'","'RULE'","'SAVEPOINT'","'SCHEMA'","'SCROLL'","'SEARCH'","'SECOND'","'SECURITY'","'SEQUENCE'","'SEQUENCES'","'SERIALIZABLE'","'SERVER'","'SESSION'","'SET'","'SHARE'","'SHOW'","'SIMPLE'","'SNAPSHOT'","'STABLE'","'STANDALONE'","'START'","'STATEMENT'","'STATISTICS'","'STDIN'","'STDOUT'","'STORAGE'","'STRICT'","'STRIP'","'SYSID'","'SYSTEM'","'TABLES'","'TABLESPACE'","'TEMP'","'TEMPLATE'","'TEMPORARY'","'TEXT'","'TRANSACTION'","'TRIGGER'","'TRUNCATE'","'TRUSTED'","'TYPE'","'TYPES'","'UNBOUNDED'","'UNCOMMITTED'","'UNENCRYPTED'","'UNKNOWN'","'UNLISTEN'","'UNLOGGED'","'UNTIL'","'UPDATE'","'VACUUM'","'VALID'","'VALIDATE'","'VALIDATOR'","'VARYING'","'VERSION'","'VIEW'","'VOLATILE'","'WHITESPACE'","'WITHOUT'","'WORK'","'WRAPPER'","'WRITE'","'XML'","'YEAR'","'YES'","'ZONE'","'BETWEEN'","'BIGINT'","'BIT'","'BOOLEAN'","'CHAR'","'CHARACTER'","'COALESCE'","'DEC'","'DECIMAL'","'EXISTS'","'EXTRACT'","'FLOAT'","'GREATEST'","'INOUT'","'INT'","'INTEGER'","'INTERVAL'","'LEAST'","'NATIONAL'","'NCHAR'","'NONE'","'NULLIF'","'NUMERIC'","'OVERLAY'","'POSITION'","'PRECISION'","'REAL'","'ROW'","'SETOF'","'SMALLINT'","'SUBSTRING'","'TIME'","'TIMESTAMP'","'TREAT'","'TRIM'","'VALUES'","'VARCHAR'","'XMLATTRIBUTES'","'XMLCOMMENT'","'XMLAGG'","'XML_IS_WELL_FORMED'","'XML_IS_WELL_FORMED_DOCUMENT'","'XML_IS_WELL_FORMED_CONTENT'","'XPATH'","'XPATH_EXISTS'","'XMLCONCAT'","'XMLELEMENT'","'XMLEXISTS'","'XMLFOREST'","'XMLPARSE'","'XMLPI'","'XMLROOT'","'XMLSERIALIZE'","'CALL'","'CURRENT'","'ATTACH'","'DETACH'","'EXPRESSION'","'GENERATED'","'LOGGED'","'STORED'","'INCLUDE'","'ROUTINE'","'TRANSFORM'","'IMPORT'","'POLICY'","'METHOD'","'REFERENCING'","'NEW'","'OLD'","'VALUE'","'SUBSCRIPTION'","'PUBLICATION'","'OUT'","'END'","'ROUTINES'","'SCHEMAS'","'PROCEDURES'","'INPUT'","'SUPPORT'","'PARALLEL'","'SQL'","'DEPENDS'","'OVERRIDING'","'CONFLICT'","'SKIP'","'LOCKED'","'TIES'","'ROLLUP'","'CUBE'","'GROUPING'","'SETS'","'TABLESAMPLE'","'ORDINALITY'","'XMLTABLE'","'COLUMNS'","'XMLNAMESPACES'","'ROWTYPE'","'NORMALIZED'","'WITHIN'","'FILTER'","'GROUPS'","'OTHERS'","'NFC'","'NFD'","'NFKC'","'NFKD'","'UESCAPE'","'VIEWS'","'NORMALIZE'","'DUMP'","'PRINT_STRICT_PARAMS'","'VARIABLE_CONFLICT'","'ERROR'","'USE_VARIABLE'","'USE_COLUMN'","'ALIAS'","'CONSTANT'","'PERFORM'","'GET'","'DIAGNOSTICS'","'STACKED'","'ELSIF'","'WHILE'","'REVERSE'","'FOREACH'","'SLICE'","'EXIT'","'RETURN'","'QUERY'","'RAISE'","'SQLSTATE'","'DEBUG'","'LOG'","'INFO'","'NOTICE'","'WARNING'","'EXCEPTION'","'ASSERT'","'LOOP'","'OPEN'","'ABS'","'CBRT'","'CEIL'","'CEILING'","'DEGREES'","'DIV'","'EXP'","'FACTORIAL'","'FLOOR'","'GCD'","'LCM'","'LN'","'LOG10'","'MIN_SCALE'","'MOD'","'PI'","'POWER'","'RADIANS'","'ROUND'","'SCALE'","'SIGN'","'SQRT'","'TRIM_SCALE'","'TRUNC'","'WIDTH_BUCKET'","'RANDOM'","'SETSEED'","'ACOS'","'ACOSD'","'ASIN'","'ASIND'","'ATAN'","'ATAND'","'ATAN2'","'ATAN2D'","'COS'","'COSD'","'COT'","'COTD'","'SIN'","'SIND'","'TAN'","'TAND'","'SINH'","'COSH'","'TANH'","'ASINH'","'ACOSH'","'ATANH'","'BIT_LENGTH'","'CHAR_LENGTH'","'CHARACTER_LENGTH'","'LOWER'","'OCTET_LENGTH'","'UPPER'","'ASCII'","'BTRIM'","'CHR'","'CONCAT'","'CONCAT_WS'","'FORMAT'","'INITCAP'","'LENGTH'","'LPAD'","'LTRIM'","'MD5'","'PARSE_IDENT'","'PG_CLIENT_ENCODING'","'QUOTE_IDENT'","'QUOTE_LITERAL'","'QUOTE_NULLABLE'","'REGEXP_COUNT'","'REGEXP_INSTR'","'REGEXP_LIKE'","'REGEXP_MATCH'","'REGEXP_MATCHES'","'REGEXP_REPLACE'","'REGEXP_SPLIT_TO_ARRAY'","'REGEXP_SPLIT_TO_TABLE'","'REGEXP_SUBSTR'","'REPEAT'","'RPAD'","'RTRIM'","'SPLIT_PART'","'STARTS_WITH'","'STRING_TO_ARRAY'","'STRING_TO_TABLE'","'STRPOS'","'SUBSTR'","'TO_ASCII'","'TO_HEX'","'TRANSLATE'","'UNISTR'","'AGE'","'CLOCK_TIMESTAMP'","'DATE_BIN'","'DATE_PART'","'DATE_TRUNC'","'ISFINITE'","'JUSTIFY_DAYS'","'JUSTIFY_HOURS'","'JUSTIFY_INTERVAL'","'MAKE_DATE'","'MAKE_INTERVAL'","'MAKE_TIME'","'MAKE_TIMESTAMP'","'MAKE_TIMESTAMPTZ'","'NOW'","'STATEMENT_TIMESTAMP'","'TIMEOFDAY'","'TRANSACTION_TIMESTAMP'","'TO_TIMESTAMP'","'TO_CHAR'","'TO_DATE'","'TO_NUMBER'",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"'\\'",null,null,null,null,null,null,null,null,null,"'''"]}static{this.symbolicNames=[null,"Dollar","OPEN_PAREN","CLOSE_PAREN","OPEN_BRACKET","CLOSE_BRACKET","COMMA","SEMI","COLON","STAR","EQUAL","DOT","PLUS","MINUS","SLASH","CARET","LT","GT","LESS_LESS","GREATER_GREATER","COLON_EQUALS","LESS_EQUALS","EQUALS_GREATER","GREATER_EQUALS","DOT_DOT","NOT_EQUALS","TYPECAST","PERCENT","PARAM","Operator","ALL","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASYMMETRIC","BOTH","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","EXCEPT","FALSE_P","FETCH","FOR","FOREIGN","FROM","GRANT","GROUP_P","HAVING","IN_P","INITIALLY","INTERSECT","INTO","LATERAL_P","LEADING","LIMIT","LOCALTIME","LOCALTIMESTAMP","NOT","NULL_P","OFFSET","ON","ONLY","OR","ORDER","PLACING","PRIMARY","REFERENCES","RETURNING","SELECT","SESSION_USER","SOME","SYMMETRIC","TABLE","THEN","TO","TRAILING","TRUE_P","UNION","UNIQUE","USER","USING","VARIADIC","WHEN","WHERE","WINDOW","WITH","AUTHORIZATION","BINARY","COLLATION","CONCURRENTLY","CROSS","CURRENT_SCHEMA","FREEZE","FULL","ILIKE","INNER_P","IS","ISNULL","JOIN","LEFT","LIKE","NATURAL","NOTNULL","OUTER_P","OVER","OVERLAPS","RIGHT","SIMILAR","VERBOSE","ABORT_P","ABSOLUTE_P","ACCESS","ACTION","ADD_P","ADMIN","AFTER","AGGREGATE","ALSO","ALTER","ALWAYS","ASSERTION","ASSIGNMENT","AT","ATTRIBUTE","BACKWARD","BEFORE","BEGIN_P","BY","CACHE","CALLED","CASCADE","CASCADED","CATALOG","CHAIN","CHARACTERISTICS","CHECKPOINT","CLASS","CLOSE","CLUSTER","COMMENT","COMMENTS","COMMIT","COMMITTED","CONFIGURATION","CONNECTION","CONSTRAINTS","CONTENT_P","CONTINUE_P","CONVERSION_P","COPY","COST","CSV","CURSOR","CYCLE","DATA_P","DATABASE","DAY_P","DEALLOCATE","DECLARE","DEFAULTS","DEFERRED","DEFINER","DELETE_P","DELIMITER","DELIMITERS","DICTIONARY","DISABLE_P","DISCARD","DOCUMENT_P","DOMAIN_P","DOUBLE_P","DROP","EACH","ENABLE_P","ENCODING","ENCRYPTED","ENUM_P","ESCAPE","EVENT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXPLAIN","EXTENSION","EXTERNAL","FAMILY","FIRST_P","FOLLOWING","FORCE","FORWARD","FUNCTION","FUNCTIONS","GLOBAL","GRANTED","HANDLER","HEADER_P","HOLD","HOUR_P","IDENTITY_P","IF_P","IMMEDIATE","IMMUTABLE","IMPLICIT_P","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INLINE_P","INSENSITIVE","INSERT","INSTEAD","INVOKER","ISOLATION","KEY","LABEL","LANGUAGE","LARGE_P","LAST_P","LEAKPROOF","LEVEL","LISTEN","LOAD","LOCAL","LOCATION","LOCK_P","MAPPING","MATCH","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MINUTE_P","MINVALUE","MODE","MONTH_P","MOVE","NAME_P","NAMES","NEXT","NO","NOTHING","NOTIFY","NOWAIT","NULLS_P","OBJECT_P","OF","OFF","OIDS","OPERATOR","OPTION","OPTIONS","OWNED","OWNER","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLANS","PRECEDING","PREPARE","PREPARED","PRESERVE","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","QUOTE","RANGE","READ","REASSIGN","RECHECK","RECURSIVE","REF","REFRESH","REINDEX","RELATIVE_P","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURNS","REVOKE","ROLE","ROLLBACK","ROWS","RULE","SAVEPOINT","SCHEMA","SCROLL","SEARCH","SECOND_P","SECURITY","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SIMPLE","SNAPSHOT","STABLE","STANDALONE_P","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STRICT_P","STRIP_P","SYSID","SYSTEM_P","TABLES","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT_P","TRANSACTION","TRIGGER","TRUNCATE","TRUSTED","TYPE_P","TYPES_P","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","VACUUM","VALID","VALIDATE","VALIDATOR","VARYING","VERSION_P","VIEW","VOLATILE","WHITESPACE_P","WITHOUT","WORK","WRAPPER","WRITE","XML_P","YEAR_P","YES_P","ZONE","BETWEEN","BIGINT","BIT","BOOLEAN_P","CHAR_P","CHARACTER","COALESCE","DEC","DECIMAL_P","EXISTS","EXTRACT","FLOAT_P","GREATEST","INOUT","INT_P","INTEGER","INTERVAL","LEAST","NATIONAL","NCHAR","NONE","NULLIF","NUMERIC","OVERLAY","POSITION","PRECISION","REAL","ROW","SETOF","SMALLINT","SUBSTRING","TIME","TIMESTAMP","TREAT","TRIM","VALUES","VARCHAR","XMLATTRIBUTES","XMLCOMMENT","XMLAGG","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_DOCUMENT","XML_IS_WELL_FORMED_CONTENT","XPATH","XPATH_EXISTS","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","CALL","CURRENT_P","ATTACH","DETACH","EXPRESSION","GENERATED","LOGGED","STORED","INCLUDE","ROUTINE","TRANSFORM","IMPORT_P","POLICY","METHOD","REFERENCING","NEW","OLD","VALUE_P","SUBSCRIPTION","PUBLICATION","OUT_P","END_P","ROUTINES","SCHEMAS","PROCEDURES","INPUT_P","SUPPORT","PARALLEL","SQL_P","DEPENDS","OVERRIDING","CONFLICT","SKIP_P","LOCKED","TIES","ROLLUP","CUBE","GROUPING","SETS","TABLESAMPLE","ORDINALITY","XMLTABLE","COLUMNS","XMLNAMESPACES","ROWTYPE","NORMALIZED","WITHIN","FILTER","GROUPS","OTHERS","NFC","NFD","NFKC","NFKD","UESCAPE","VIEWS","NORMALIZE","DUMP","PRINT_STRICT_PARAMS","VARIABLE_CONFLICT","ERROR","USE_VARIABLE","USE_COLUMN","ALIAS","CONSTANT","PERFORM","GET","DIAGNOSTICS","STACKED","ELSIF","WHILE","REVERSE","FOREACH","SLICE","EXIT","RETURN","QUERY","RAISE","SQLSTATE","DEBUG","LOG","INFO","NOTICE","WARNING","EXCEPTION","ASSERT","LOOP","OPEN","ABS","CBRT","CEIL","CEILING","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","ROUND","SCALE","SIGN","SQRT","TRIM_SCALE","TRUNC","WIDTH_BUCKET","RANDOM","SETSEED","ACOS","ACOSD","ASIN","ASIND","ATAN","ATAND","ATAN2","ATAN2D","COS","COSD","COT","COTD","SIN","SIND","TAN","TAND","SINH","COSH","TANH","ASINH","ACOSH","ATANH","BIT_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","LOWER","OCTET_LENGTH","UPPER","ASCII","BTRIM","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LENGTH","LPAD","LTRIM","MD5","PARSE_IDENT","PG_CLIENT_ENCODING","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REGEXP_SUBSTR","REPEAT","RPAD","RTRIM","SPLIT_PART","STARTS_WITH","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","TO_ASCII","TO_HEX","TRANSLATE","UNISTR","AGE","CLOCK_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","STATEMENT_TIMESTAMP","TIMEOFDAY","TRANSACTION_TIMESTAMP","TO_TIMESTAMP","TO_CHAR","TO_DATE","TO_NUMBER","Identifier","QuotedIdentifier","UnterminatedQuotedIdentifier","InvalidQuotedIdentifier","InvalidUnterminatedQuotedIdentifier","UnicodeQuotedIdentifier","UnterminatedUnicodeQuotedIdentifier","InvalidUnicodeQuotedIdentifier","InvalidUnterminatedUnicodeQuotedIdentifier","StringConstant","UnterminatedStringConstant","UnicodeEscapeStringConstant","UnterminatedUnicodeEscapeStringConstant","BeginDollarStringConstant","BinaryStringConstant","UnterminatedBinaryStringConstant","InvalidBinaryStringConstant","InvalidUnterminatedBinaryStringConstant","HexadecimalStringConstant","UnterminatedHexadecimalStringConstant","InvalidHexadecimalStringConstant","InvalidUnterminatedHexadecimalStringConstant","Integral","NumericFail","Numeric","PLSQLVARIABLENAME","PLSQLIDENTIFIER","Whitespace","Newline","LineComment","BlockComment","UnterminatedBlockComment","MetaCommand","EndMetaCommand","ErrorCharacter","EscapeStringConstant","UnterminatedEscapeStringConstant","InvalidEscapeStringConstant","InvalidUnterminatedEscapeStringConstant","AfterEscapeStringConstantMode_NotContinued","AfterEscapeStringConstantWithNewlineMode_NotContinued","DollarText","EndDollarStringConstant","AfterEscapeStringConstantWithNewlineMode_Continued"]}static{this.modeNames=["DEFAULT_MODE","EscapeStringConstantMode","AfterEscapeStringConstantMode","AfterEscapeStringConstantWithNewlineMode","DollarQuotedStringMode"]}static{this.ruleNames=["Dollar","OPEN_PAREN","CLOSE_PAREN","OPEN_BRACKET","CLOSE_BRACKET","COMMA","SEMI","COLON","STAR","EQUAL","DOT","PLUS","MINUS","SLASH","CARET","LT","GT","LESS_LESS","GREATER_GREATER","COLON_EQUALS","LESS_EQUALS","EQUALS_GREATER","GREATER_EQUALS","DOT_DOT","NOT_EQUALS","TYPECAST","PERCENT","PARAM","Operator","OperatorEndingWithPlusMinus","OperatorCharacter","OperatorCharacterNotAllowPlusMinusAtEnd","OperatorCharacterAllowPlusMinusAtEnd","ALL","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASYMMETRIC","BOTH","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","EXCEPT","FALSE_P","FETCH","FOR","FOREIGN","FROM","GRANT","GROUP_P","HAVING","IN_P","INITIALLY","INTERSECT","INTO","LATERAL_P","LEADING","LIMIT","LOCALTIME","LOCALTIMESTAMP","NOT","NULL_P","OFFSET","ON","ONLY","OR","ORDER","PLACING","PRIMARY","REFERENCES","RETURNING","SELECT","SESSION_USER","SOME","SYMMETRIC","TABLE","THEN","TO","TRAILING","TRUE_P","UNION","UNIQUE","USER","USING","VARIADIC","WHEN","WHERE","WINDOW","WITH","AUTHORIZATION","BINARY","COLLATION","CONCURRENTLY","CROSS","CURRENT_SCHEMA","FREEZE","FULL","ILIKE","INNER_P","IS","ISNULL","JOIN","LEFT","LIKE","NATURAL","NOTNULL","OUTER_P","OVER","OVERLAPS","RIGHT","SIMILAR","VERBOSE","ABORT_P","ABSOLUTE_P","ACCESS","ACTION","ADD_P","ADMIN","AFTER","AGGREGATE","ALSO","ALTER","ALWAYS","ASSERTION","ASSIGNMENT","AT","ATTRIBUTE","BACKWARD","BEFORE","BEGIN_P","BY","CACHE","CALLED","CASCADE","CASCADED","CATALOG","CHAIN","CHARACTERISTICS","CHECKPOINT","CLASS","CLOSE","CLUSTER","COMMENT","COMMENTS","COMMIT","COMMITTED","CONFIGURATION","CONNECTION","CONSTRAINTS","CONTENT_P","CONTINUE_P","CONVERSION_P","COPY","COST","CSV","CURSOR","CYCLE","DATA_P","DATABASE","DAY_P","DEALLOCATE","DECLARE","DEFAULTS","DEFERRED","DEFINER","DELETE_P","DELIMITER","DELIMITERS","DICTIONARY","DISABLE_P","DISCARD","DOCUMENT_P","DOMAIN_P","DOUBLE_P","DROP","EACH","ENABLE_P","ENCODING","ENCRYPTED","ENUM_P","ESCAPE","EVENT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXPLAIN","EXTENSION","EXTERNAL","FAMILY","FIRST_P","FOLLOWING","FORCE","FORWARD","FUNCTION","FUNCTIONS","GLOBAL","GRANTED","HANDLER","HEADER_P","HOLD","HOUR_P","IDENTITY_P","IF_P","IMMEDIATE","IMMUTABLE","IMPLICIT_P","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INLINE_P","INSENSITIVE","INSERT","INSTEAD","INVOKER","ISOLATION","KEY","LABEL","LANGUAGE","LARGE_P","LAST_P","LEAKPROOF","LEVEL","LISTEN","LOAD","LOCAL","LOCATION","LOCK_P","MAPPING","MATCH","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MINUTE_P","MINVALUE","MODE","MONTH_P","MOVE","NAME_P","NAMES","NEXT","NO","NOTHING","NOTIFY","NOWAIT","NULLS_P","OBJECT_P","OF","OFF","OIDS","OPERATOR","OPTION","OPTIONS","OWNED","OWNER","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLANS","PRECEDING","PREPARE","PREPARED","PRESERVE","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","QUOTE","RANGE","READ","REASSIGN","RECHECK","RECURSIVE","REF","REFRESH","REINDEX","RELATIVE_P","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURNS","REVOKE","ROLE","ROLLBACK","ROWS","RULE","SAVEPOINT","SCHEMA","SCROLL","SEARCH","SECOND_P","SECURITY","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SIMPLE","SNAPSHOT","STABLE","STANDALONE_P","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STRICT_P","STRIP_P","SYSID","SYSTEM_P","TABLES","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT_P","TRANSACTION","TRIGGER","TRUNCATE","TRUSTED","TYPE_P","TYPES_P","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","VACUUM","VALID","VALIDATE","VALIDATOR","VARYING","VERSION_P","VIEW","VOLATILE","WHITESPACE_P","WITHOUT","WORK","WRAPPER","WRITE","XML_P","YEAR_P","YES_P","ZONE","BETWEEN","BIGINT","BIT","BOOLEAN_P","CHAR_P","CHARACTER","COALESCE","DEC","DECIMAL_P","EXISTS","EXTRACT","FLOAT_P","GREATEST","INOUT","INT_P","INTEGER","INTERVAL","LEAST","NATIONAL","NCHAR","NONE","NULLIF","NUMERIC","OVERLAY","POSITION","PRECISION","REAL","ROW","SETOF","SMALLINT","SUBSTRING","TIME","TIMESTAMP","TREAT","TRIM","VALUES","VARCHAR","XMLATTRIBUTES","XMLCOMMENT","XMLAGG","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_DOCUMENT","XML_IS_WELL_FORMED_CONTENT","XPATH","XPATH_EXISTS","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","CALL","CURRENT_P","ATTACH","DETACH","EXPRESSION","GENERATED","LOGGED","STORED","INCLUDE","ROUTINE","TRANSFORM","IMPORT_P","POLICY","METHOD","REFERENCING","NEW","OLD","VALUE_P","SUBSCRIPTION","PUBLICATION","OUT_P","END_P","ROUTINES","SCHEMAS","PROCEDURES","INPUT_P","SUPPORT","PARALLEL","SQL_P","DEPENDS","OVERRIDING","CONFLICT","SKIP_P","LOCKED","TIES","ROLLUP","CUBE","GROUPING","SETS","TABLESAMPLE","ORDINALITY","XMLTABLE","COLUMNS","XMLNAMESPACES","ROWTYPE","NORMALIZED","WITHIN","FILTER","GROUPS","OTHERS","NFC","NFD","NFKC","NFKD","UESCAPE","VIEWS","NORMALIZE","DUMP","PRINT_STRICT_PARAMS","VARIABLE_CONFLICT","ERROR","USE_VARIABLE","USE_COLUMN","ALIAS","CONSTANT","PERFORM","GET","DIAGNOSTICS","STACKED","ELSIF","WHILE","REVERSE","FOREACH","SLICE","EXIT","RETURN","QUERY","RAISE","SQLSTATE","DEBUG","LOG","INFO","NOTICE","WARNING","EXCEPTION","ASSERT","LOOP","OPEN","ABS","CBRT","CEIL","CEILING","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","ROUND","SCALE","SIGN","SQRT","TRIM_SCALE","TRUNC","WIDTH_BUCKET","RANDOM","SETSEED","ACOS","ACOSD","ASIN","ASIND","ATAN","ATAND","ATAN2","ATAN2D","COS","COSD","COT","COTD","SIN","SIND","TAN","TAND","SINH","COSH","TANH","ASINH","ACOSH","ATANH","BIT_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","LOWER","OCTET_LENGTH","UPPER","ASCII","BTRIM","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LENGTH","LPAD","LTRIM","MD5","PARSE_IDENT","PG_CLIENT_ENCODING","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REGEXP_SUBSTR","REPEAT","RPAD","RTRIM","SPLIT_PART","STARTS_WITH","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","TO_ASCII","TO_HEX","TRANSLATE","UNISTR","AGE","CLOCK_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","STATEMENT_TIMESTAMP","TIMEOFDAY","TRANSACTION_TIMESTAMP","TO_TIMESTAMP","TO_CHAR","TO_DATE","TO_NUMBER","Identifier","IdentifierStartChar","IdentifierChar","StrictIdentifierChar","QuotedIdentifier","UnterminatedQuotedIdentifier","InvalidQuotedIdentifier","InvalidUnterminatedQuotedIdentifier","UnicodeQuotedIdentifier","UnterminatedUnicodeQuotedIdentifier","InvalidUnicodeQuotedIdentifier","InvalidUnterminatedUnicodeQuotedIdentifier","StringConstant","UnterminatedStringConstant","BeginEscapeStringConstant","UnicodeEscapeStringConstant","UnterminatedUnicodeEscapeStringConstant","BeginDollarStringConstant","Tag","BinaryStringConstant","UnterminatedBinaryStringConstant","InvalidBinaryStringConstant","InvalidUnterminatedBinaryStringConstant","HexadecimalStringConstant","UnterminatedHexadecimalStringConstant","InvalidHexadecimalStringConstant","InvalidUnterminatedHexadecimalStringConstant","Integral","NumericFail","Numeric","Digits","PLSQLVARIABLENAME","PLSQLIDENTIFIER","Whitespace","Newline","LineComment","BlockComment","UnterminatedBlockComment","MetaCommand","EndMetaCommand","ErrorCharacter","EscapeStringConstant","UnterminatedEscapeStringConstant","EscapeStringText","InvalidEscapeStringConstant","InvalidUnterminatedEscapeStringConstant","InvalidEscapeStringText","AfterEscapeStringConstantMode_Whitespace","AfterEscapeStringConstantMode_Newline","AfterEscapeStringConstantMode_NotContinued","AfterEscapeStringConstantWithNewlineMode_Whitespace","AfterEscapeStringConstantWithNewlineMode_Newline","AfterEscapeStringConstantWithNewlineMode_Continued","AfterEscapeStringConstantWithNewlineMode_NotContinued","DollarText","EndDollarStringConstant"]}constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new Ae)}get grammarFileName(){return"PostgreSqlLexer.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}action(t,e,s){switch(e){case 28:this.Operator_action(t,s);break;case 656:this.BeginDollarStringConstant_action(t,s);break;case 667:this.NumericFail_action(t,s);break;case 676:this.UnterminatedBlockComment_action(t,s);break;case 688:this.AfterEscapeStringConstantMode_NotContinued_action(t,s);break;case 692:this.AfterEscapeStringConstantWithNewlineMode_NotContinued_action(t,s);break;case 694:this.EndDollarStringConstant_action(t,s)}}Operator_action(t,e){if(0===e)this.HandleLessLessGreaterGreater()}BeginDollarStringConstant_action(t,e){if(1===e)this.pushTag()}NumericFail_action(t,e){if(2===e)this.HandleNumericFail()}UnterminatedBlockComment_action(t,e){if(3===e)this.UnterminatedBlockCommentDebugAssert()}AfterEscapeStringConstantMode_NotContinued_action(t,e){e}AfterEscapeStringConstantWithNewlineMode_NotContinued_action(t,e){e}EndDollarStringConstant_action(t,e){if(6===e)this.popTag()}sempred(t,e,s){switch(e){case 28:return this.Operator_sempred(t,s);case 29:return this.OperatorEndingWithPlusMinus_sempred(t,s);case 640:return this.IdentifierStartChar_sempred(t,s);case 694:return this.EndDollarStringConstant_sempred(t,s)}return!0}Operator_sempred(t,e){switch(e){case 0:return this.checkLA("-");case 1:case 2:return this.checkLA("*")}return!0}OperatorEndingWithPlusMinus_sempred(t,e){switch(e){case 3:case 5:return this.checkLA("-");case 4:return this.checkLA("*")}return!0}IdentifierStartChar_sempred(t,e){switch(e){case 6:return this.charIsLetter();case 7:return}return!0}EndDollarStringConstant_sempred(t,e){return 8!==e||this.isTag()}static{this._serializedATN=[4,0,679,6791,6,-1,6,-1,6,-1,6,-1,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,2,451,7,451,2,452,7,452,2,453,7,453,2,454,7,454,2,455,7,455,2,456,7,456,2,457,7,457,2,458,7,458,2,459,7,459,2,460,7,460,2,461,7,461,2,462,7,462,2,463,7,463,2,464,7,464,2,465,7,465,2,466,7,466,2,467,7,467,2,468,7,468,2,469,7,469,2,470,7,470,2,471,7,471,2,472,7,472,2,473,7,473,2,474,7,474,2,475,7,475,2,476,7,476,2,477,7,477,2,478,7,478,2,479,7,479,2,480,7,480,2,481,7,481,2,482,7,482,2,483,7,483,2,484,7,484,2,485,7,485,2,486,7,486,2,487,7,487,2,488,7,488,2,489,7,489,2,490,7,490,2,491,7,491,2,492,7,492,2,493,7,493,2,494,7,494,2,495,7,495,2,496,7,496,2,497,7,497,2,498,7,498,2,499,7,499,2,500,7,500,2,501,7,501,2,502,7,502,2,503,7,503,2,504,7,504,2,505,7,505,2,506,7,506,2,507,7,507,2,508,7,508,2,509,7,509,2,510,7,510,2,511,7,511,2,512,7,512,2,513,7,513,2,514,7,514,2,515,7,515,2,516,7,516,2,517,7,517,2,518,7,518,2,519,7,519,2,520,7,520,2,521,7,521,2,522,7,522,2,523,7,523,2,524,7,524,2,525,7,525,2,526,7,526,2,527,7,527,2,528,7,528,2,529,7,529,2,530,7,530,2,531,7,531,2,532,7,532,2,533,7,533,2,534,7,534,2,535,7,535,2,536,7,536,2,537,7,537,2,538,7,538,2,539,7,539,2,540,7,540,2,541,7,541,2,542,7,542,2,543,7,543,2,544,7,544,2,545,7,545,2,546,7,546,2,547,7,547,2,548,7,548,2,549,7,549,2,550,7,550,2,551,7,551,2,552,7,552,2,553,7,553,2,554,7,554,2,555,7,555,2,556,7,556,2,557,7,557,2,558,7,558,2,559,7,559,2,560,7,560,2,561,7,561,2,562,7,562,2,563,7,563,2,564,7,564,2,565,7,565,2,566,7,566,2,567,7,567,2,568,7,568,2,569,7,569,2,570,7,570,2,571,7,571,2,572,7,572,2,573,7,573,2,574,7,574,2,575,7,575,2,576,7,576,2,577,7,577,2,578,7,578,2,579,7,579,2,580,7,580,2,581,7,581,2,582,7,582,2,583,7,583,2,584,7,584,2,585,7,585,2,586,7,586,2,587,7,587,2,588,7,588,2,589,7,589,2,590,7,590,2,591,7,591,2,592,7,592,2,593,7,593,2,594,7,594,2,595,7,595,2,596,7,596,2,597,7,597,2,598,7,598,2,599,7,599,2,600,7,600,2,601,7,601,2,602,7,602,2,603,7,603,2,604,7,604,2,605,7,605,2,606,7,606,2,607,7,607,2,608,7,608,2,609,7,609,2,610,7,610,2,611,7,611,2,612,7,612,2,613,7,613,2,614,7,614,2,615,7,615,2,616,7,616,2,617,7,617,2,618,7,618,2,619,7,619,2,620,7,620,2,621,7,621,2,622,7,622,2,623,7,623,2,624,7,624,2,625,7,625,2,626,7,626,2,627,7,627,2,628,7,628,2,629,7,629,2,630,7,630,2,631,7,631,2,632,7,632,2,633,7,633,2,634,7,634,2,635,7,635,2,636,7,636,2,637,7,637,2,638,7,638,2,639,7,639,2,640,7,640,2,641,7,641,2,642,7,642,2,643,7,643,2,644,7,644,2,645,7,645,2,646,7,646,2,647,7,647,2,648,7,648,2,649,7,649,2,650,7,650,2,651,7,651,2,652,7,652,2,653,7,653,2,654,7,654,2,655,7,655,2,656,7,656,2,657,7,657,2,658,7,658,2,659,7,659,2,660,7,660,2,661,7,661,2,662,7,662,2,663,7,663,2,664,7,664,2,665,7,665,2,666,7,666,2,667,7,667,2,668,7,668,2,669,7,669,2,670,7,670,2,671,7,671,2,672,7,672,2,673,7,673,2,674,7,674,2,675,7,675,2,676,7,676,2,677,7,677,2,678,7,678,2,679,7,679,2,680,7,680,2,681,7,681,2,682,7,682,2,683,7,683,2,684,7,684,2,685,7,685,2,686,7,686,2,687,7,687,2,688,7,688,2,689,7,689,2,690,7,690,2,691,7,691,2,692,7,692,2,693,7,693,2,694,7,694,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,27,1,27,4,27,1461,8,27,11,27,12,27,1462,1,28,1,28,1,28,1,28,4,28,1469,8,28,11,28,12,28,1470,1,28,1,28,1,28,3,28,1476,8,28,1,28,1,28,4,28,1480,8,28,11,28,12,28,1481,1,28,3,28,1485,8,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,5,29,1494,8,29,10,29,12,29,1497,9,29,1,29,1,29,3,29,1501,8,29,1,29,1,29,1,29,4,29,1506,8,29,11,29,12,29,1507,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,1,347,1,347,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,1,349,1,349,1,349,1,349,1,349,1,349,1,349,1,349,1,349,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,352,1,352,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,355,1,355,1,355,1,355,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,1,356,1,357,1,357,1,357,1,357,1,357,1,357,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,363,1,363,1,363,1,363,1,363,1,363,1,363,1,363,1,363,1,364,1,364,1,364,1,364,1,364,1,364,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,367,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,1,368,1,368,1,368,1,368,1,368,1,368,1,369,1,369,1,369,1,369,1,369,1,369,1,369,1,369,1,369,1,369,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,372,1,372,1,372,1,372,1,372,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,376,1,376,1,376,1,376,1,376,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,1,378,1,379,1,379,1,379,1,379,1,380,1,380,1,380,1,380,1,380,1,381,1,381,1,381,1,381,1,382,1,382,1,382,1,382,1,382,1,383,1,383,1,383,1,383,1,383,1,383,1,383,1,383,1,384,1,384,1,384,1,384,1,384,1,384,1,384,1,385,1,385,1,385,1,385,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,387,1,387,1,387,1,387,1,387,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,390,1,390,1,390,1,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,394,1,394,1,394,1,394,1,394,1,394,1,395,1,395,1,395,1,395,1,395,1,395,1,395,1,395,1,395,1,396,1,396,1,396,1,396,1,396,1,396,1,397,1,397,1,397,1,397,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,400,1,400,1,400,1,400,1,400,1,400,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,402,1,402,1,402,1,402,1,402,1,402,1,403,1,403,1,403,1,403,1,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,406,1,406,1,406,1,406,1,406,1,406,1,406,1,406,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,409,1,409,1,409,1,409,1,409,1,410,1,410,1,410,1,410,1,411,1,411,1,411,1,411,1,411,1,411,1,412,1,412,1,412,1,412,1,412,1,412,1,412,1,412,1,412,1,413,1,413,1,413,1,413,1,413,1,413,1,413,1,413,1,413,1,413,1,414,1,414,1,414,1,414,1,414,1,415,1,415,1,415,1,415,1,415,1,415,1,415,1,415,1,415,1,415,1,416,1,416,1,416,1,416,1,416,1,416,1,417,1,417,1,417,1,417,1,417,1,418,1,418,1,418,1,418,1,418,1,418,1,418,1,419,1,419,1,419,1,419,1,419,1,419,1,419,1,419,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,426,1,426,1,426,1,426,1,426,1,426,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,428,1,428,1,428,1,428,1,428,1,428,1,428,1,428,1,428,1,428,1,429,1,429,1,429,1,429,1,429,1,429,1,429,1,429,1,429,1,429,1,429,1,430,1,430,1,430,1,430,1,430,1,430,1,430,1,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,433,1,433,1,433,1,433,1,433,1,433,1,434,1,434,1,434,1,434,1,434,1,434,1,434,1,434,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,436,1,436,1,436,1,436,1,436,1,437,1,437,1,437,1,437,1,437,1,437,1,437,1,437,1,438,1,438,1,438,1,438,1,438,1,438,1,438,1,439,1,439,1,439,1,439,1,439,1,439,1,439,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,441,1,441,1,441,1,441,1,441,1,441,1,441,1,441,1,441,1,441,1,442,1,442,1,442,1,442,1,442,1,442,1,442,1,443,1,443,1,443,1,443,1,443,1,443,1,443,1,444,1,444,1,444,1,444,1,444,1,444,1,444,1,444,1,445,1,445,1,445,1,445,1,445,1,445,1,445,1,445,1,446,1,446,1,446,1,446,1,446,1,446,1,446,1,446,1,446,1,446,1,447,1,447,1,447,1,447,1,447,1,447,1,447,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,449,1,449,1,449,1,449,1,449,1,449,1,449,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,451,1,451,1,451,1,451,1,452,1,452,1,452,1,452,1,453,1,453,1,453,1,453,1,453,1,453,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,456,1,456,1,456,1,456,1,457,1,457,1,457,1,457,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,459,1,459,1,459,1,459,1,459,1,459,1,459,1,459,1,460,1,460,1,460,1,460,1,460,1,460,1,460,1,460,1,460,1,460,1,460,1,461,1,461,1,461,1,461,1,461,1,461,1,462,1,462,1,462,1,462,1,462,1,462,1,462,1,462,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,464,1,464,1,464,1,464,1,465,1,465,1,465,1,465,1,465,1,465,1,465,1,465,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,468,1,468,1,468,1,468,1,468,1,469,1,469,1,469,1,469,1,469,1,469,1,469,1,470,1,470,1,470,1,470,1,470,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,472,1,472,1,472,1,472,1,472,1,473,1,473,1,473,1,473,1,473,1,473,1,473,1,473,1,473,1,474,1,474,1,474,1,474,1,474,1,475,1,475,1,475,1,475,1,475,1,475,1,475,1,475,1,475,1,475,1,475,1,475,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,486,1,486,1,486,1,486,1,487,1,487,1,487,1,487,1,488,1,488,1,488,1,488,1,488,1,489,1,489,1,489,1,489,1,489,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,491,1,491,1,491,1,491,1,491,1,491,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,493,1,493,1,493,1,493,1,493,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,496,1,496,1,496,1,496,1,496,1,496,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,499,1,499,1,499,1,499,1,499,1,499,1,500,1,500,1,500,1,500,1,500,1,500,1,500,1,500,1,500,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,502,1,502,1,502,1,502,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,504,1,504,1,504,1,504,1,504,1,504,1,504,1,504,1,505,1,505,1,505,1,505,1,505,1,505,1,506,1,506,1,506,1,506,1,506,1,506,1,507,1,507,1,507,1,507,1,507,1,507,1,507,1,507,1,508,1,508,1,508,1,508,1,508,1,508,1,508,1,508,1,509,1,509,1,509,1,509,1,509,1,509,1,510,1,510,1,510,1,510,1,510,1,511,1,511,1,511,1,511,1,511,1,511,1,511,1,512,1,512,1,512,1,512,1,512,1,512,1,513,1,513,1,513,1,513,1,513,1,513,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,515,1,515,1,515,1,515,1,515,1,515,1,516,1,516,1,516,1,516,1,517,1,517,1,517,1,517,1,517,1,518,1,518,1,518,1,518,1,518,1,518,1,518,1,519,1,519,1,519,1,519,1,519,1,519,1,519,1,519,1,520,1,520,1,520,1,520,1,520,1,520,1,520,1,520,1,520,1,520,1,521,1,521,1,521,1,521,1,521,1,521,1,521,1,522,1,522,1,522,1,522,1,522,1,523,1,523,1,523,1,523,1,523,1,524,1,524,1,524,1,524,1,525,1,525,1,525,1,525,1,525,1,526,1,526,1,526,1,526,1,526,1,527,1,527,1,527,1,527,1,527,1,527,1,527,1,527,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,529,1,529,1,529,1,529,1,530,1,530,1,530,1,530,1,531,1,531,1,531,1,531,1,531,1,531,1,531,1,531,1,531,1,531,1,532,1,532,1,532,1,532,1,532,1,532,1,533,1,533,1,533,1,533,1,534,1,534,1,534,1,534,1,535,1,535,1,535,1,536,1,536,1,536,1,536,1,536,1,536,1,537,1,537,1,537,1,537,1,537,1,537,1,537,1,537,1,537,1,537,1,538,1,538,1,538,1,538,1,539,1,539,1,539,1,540,1,540,1,540,1,540,1,540,1,540,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,542,1,542,1,542,1,542,1,542,1,542,1,543,1,543,1,543,1,543,1,543,1,543,1,544,1,544,1,544,1,544,1,544,1,545,1,545,1,545,1,545,1,545,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,547,1,547,1,547,1,547,1,547,1,547,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,549,1,549,1,549,1,549,1,549,1,549,1,549,1,550,1,550,1,550,1,550,1,550,1,550,1,550,1,550,1,551,1,551,1,551,1,551,1,551,1,552,1,552,1,552,1,552,1,552,1,552,1,553,1,553,1,553,1,553,1,553,1,554,1,554,1,554,1,554,1,554,1,554,1,555,1,555,1,555,1,555,1,555,1,556,1,556,1,556,1,556,1,556,1,556,1,557,1,557,1,557,1,557,1,557,1,557,1,558,1,558,1,558,1,558,1,558,1,558,1,558,1,559,1,559,1,559,1,559,1,560,1,560,1,560,1,560,1,560,1,561,1,561,1,561,1,561,1,562,1,562,1,562,1,562,1,562,1,563,1,563,1,563,1,563,1,564,1,564,1,564,1,564,1,564,1,565,1,565,1,565,1,565,1,566,1,566,1,566,1,566,1,566,1,567,1,567,1,567,1,567,1,567,1,568,1,568,1,568,1,568,1,568,1,569,1,569,1,569,1,569,1,569,1,570,1,570,1,570,1,570,1,570,1,570,1,571,1,571,1,571,1,571,1,571,1,571,1,572,1,572,1,572,1,572,1,572,1,572,1,573,1,573,1,573,1,573,1,573,1,573,1,573,1,573,1,573,1,573,1,573,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,576,1,576,1,576,1,576,1,576,1,576,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,578,1,578,1,578,1,578,1,578,1,578,1,579,1,579,1,579,1,579,1,579,1,579,1,580,1,580,1,580,1,580,1,580,1,580,1,581,1,581,1,581,1,581,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,587,1,587,1,587,1,587,1,587,1,588,1,588,1,588,1,588,1,588,1,588,1,589,1,589,1,589,1,589,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,594,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,595,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,599,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,600,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,602,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,604,1,604,1,604,1,604,1,604,1,604,1,604,1,605,1,605,1,605,1,605,1,605,1,606,1,606,1,606,1,606,1,606,1,606,1,607,1,607,1,607,1,607,1,607,1,607,1,607,1,607,1,607,1,607,1,607,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,609,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,611,1,611,1,611,1,611,1,611,1,611,1,611,1,612,1,612,1,612,1,612,1,612,1,612,1,612,1,613,1,613,1,613,1,613,1,613,1,613,1,613,1,613,1,613,1,614,1,614,1,614,1,614,1,614,1,614,1,614,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,616,1,616,1,616,1,616,1,616,1,616,1,616,1,617,1,617,1,617,1,617,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,619,1,619,1,619,1,619,1,619,1,619,1,619,1,619,1,619,1,620,1,620,1,620,1,620,1,620,1,620,1,620,1,620,1,620,1,620,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,628,1,628,1,628,1,628,1,628,1,628,1,628,1,628,1,628,1,628,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,631,1,631,1,631,1,631,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,633,1,633,1,633,1,633,1,633,1,633,1,633,1,633,1,633,1,633,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,634,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,636,1,636,1,636,1,636,1,636,1,636,1,636,1,636,1,637,1,637,1,637,1,637,1,637,1,637,1,637,1,637,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,639,1,639,5,639,6323,8,639,10,639,12,639,6326,9,639,1,640,1,640,1,640,1,640,1,640,1,640,3,640,6334,8,640,1,641,1,641,3,641,6338,8,641,1,642,1,642,3,642,6342,8,642,1,643,1,643,1,643,1,644,1,644,1,644,1,644,5,644,6351,8,644,10,644,12,644,6354,9,644,1,645,1,645,1,645,1,646,1,646,1,646,1,646,5,646,6363,8,646,10,646,12,646,6366,9,646,1,647,1,647,1,647,1,647,1,648,1,648,1,648,1,648,1,649,1,649,1,649,1,649,1,650,1,650,1,650,1,650,1,651,1,651,1,651,1,652,1,652,1,652,1,652,5,652,6391,8,652,10,652,12,652,6394,9,652,1,653,1,653,1,653,1,653,1,653,1,653,1,654,1,654,1,654,1,655,1,655,1,655,1,655,1,656,1,656,3,656,6411,8,656,1,656,1,656,1,656,1,656,1,656,1,657,1,657,5,657,6420,8,657,10,657,12,657,6423,9,657,1,658,1,658,1,658,1,659,1,659,1,659,5,659,6431,8,659,10,659,12,659,6434,9,659,1,660,1,660,1,660,1,661,1,661,1,661,1,662,1,662,1,662,1,663,1,663,1,663,5,663,6448,8,663,10,663,12,663,6451,9,663,1,664,1,664,1,664,1,665,1,665,1,665,1,666,1,666,1,667,1,667,1,667,1,667,1,667,1,667,1,668,1,668,1,668,3,668,6470,8,668,1,668,1,668,3,668,6474,8,668,1,668,3,668,6477,8,668,1,668,1,668,1,668,1,668,3,668,6483,8,668,1,668,3,668,6486,8,668,1,668,1,668,1,668,3,668,6491,8,668,1,668,1,668,3,668,6495,8,668,1,669,4,669,6498,8,669,11,669,12,669,6499,1,670,1,670,1,670,5,670,6505,8,670,10,670,12,670,6508,9,670,1,671,1,671,1,671,1,671,1,671,1,671,1,671,1,671,5,671,6518,8,671,10,671,12,671,6521,9,671,1,671,1,671,1,672,4,672,6526,8,672,11,672,12,672,6527,1,672,1,672,1,673,1,673,3,673,6534,8,673,1,673,3,673,6537,8,673,1,673,1,673,1,674,1,674,1,674,1,674,5,674,6545,8,674,10,674,12,674,6548,9,674,1,674,1,674,1,675,1,675,1,675,1,675,5,675,6556,8,675,10,675,12,675,6559,9,675,1,675,1,675,1,675,4,675,6564,8,675,11,675,12,675,6565,1,675,1,675,4,675,6570,8,675,11,675,12,675,6571,1,675,5,675,6575,8,675,10,675,12,675,6578,9,675,1,675,5,675,6581,8,675,10,675,12,675,6584,9,675,1,675,1,675,1,675,1,675,1,675,1,676,1,676,1,676,1,676,5,676,6595,8,676,10,676,12,676,6598,9,676,1,676,1,676,1,676,4,676,6603,8,676,11,676,12,676,6604,1,676,1,676,4,676,6609,8,676,11,676,12,676,6610,1,676,3,676,6614,8,676,5,676,6616,8,676,10,676,12,676,6619,9,676,1,676,4,676,6622,8,676,11,676,12,676,6623,1,676,4,676,6627,8,676,11,676,12,676,6628,1,676,5,676,6632,8,676,10,676,12,676,6635,9,676,1,676,3,676,6638,8,676,1,676,1,676,1,677,1,677,1,677,1,677,5,677,6646,8,677,10,677,12,677,6649,9,677,1,677,5,677,6652,8,677,10,677,12,677,6655,9,677,1,677,1,677,5,677,6659,8,677,10,677,12,677,6662,9,677,3,677,6664,8,677,1,678,1,678,1,678,1,679,1,679,1,680,1,680,1,680,1,680,1,680,1,681,1,681,3,681,6678,8,681,1,681,1,681,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,1,682,3,682,6702,8,682,1,682,5,682,6705,8,682,10,682,12,682,6708,9,682,1,683,1,683,1,683,1,683,1,683,1,684,1,684,3,684,6717,8,684,1,684,1,684,1,685,1,685,1,685,1,685,1,685,5,685,6726,8,685,10,685,12,685,6729,9,685,1,686,1,686,1,686,1,686,1,686,1,687,1,687,1,687,1,687,1,687,1,687,1,688,1,688,1,688,1,688,1,688,1,689,1,689,1,689,1,689,1,689,1,690,1,690,1,690,1,690,1,690,1,691,1,691,1,691,1,691,1,691,1,692,1,692,1,692,1,692,1,692,1,693,4,693,6768,8,693,11,693,12,693,6769,1,693,1,693,5,693,6774,8,693,10,693,12,693,6777,9,693,3,693,6779,8,693,1,694,1,694,3,694,6783,8,694,1,694,1,694,1,694,1,694,1,694,1,694,1,694,0,0,695,5,1,7,2,9,3,11,4,13,5,15,6,17,7,19,8,21,9,23,10,25,11,27,12,29,13,31,14,33,15,35,16,37,17,39,18,41,19,43,20,45,21,47,22,49,23,51,24,53,25,55,26,57,27,59,28,61,29,63,0,65,0,67,0,69,0,71,30,73,31,75,32,77,33,79,34,81,35,83,36,85,37,87,38,89,39,91,40,93,41,95,42,97,43,99,44,101,45,103,46,105,47,107,48,109,49,111,50,113,51,115,52,117,53,119,54,121,55,123,56,125,57,127,58,129,59,131,60,133,61,135,62,137,63,139,64,141,65,143,66,145,67,147,68,149,69,151,70,153,71,155,72,157,73,159,74,161,75,163,76,165,77,167,78,169,79,171,80,173,81,175,82,177,83,179,84,181,85,183,86,185,87,187,88,189,89,191,90,193,91,195,92,197,93,199,94,201,95,203,96,205,97,207,98,209,99,211,100,213,101,215,102,217,103,219,104,221,105,223,106,225,107,227,108,229,109,231,110,233,111,235,112,237,113,239,114,241,115,243,116,245,117,247,118,249,119,251,120,253,121,255,122,257,123,259,124,261,125,263,126,265,127,267,128,269,129,271,130,273,131,275,132,277,133,279,134,281,135,283,136,285,137,287,138,289,139,291,140,293,141,295,142,297,143,299,144,301,145,303,146,305,147,307,148,309,149,311,150,313,151,315,152,317,153,319,154,321,155,323,156,325,157,327,158,329,159,331,160,333,161,335,162,337,163,339,164,341,165,343,166,345,167,347,168,349,169,351,170,353,171,355,172,357,173,359,174,361,175,363,176,365,177,367,178,369,179,371,180,373,181,375,182,377,183,379,184,381,185,383,186,385,187,387,188,389,189,391,190,393,191,395,192,397,193,399,194,401,195,403,196,405,197,407,198,409,199,411,200,413,201,415,202,417,203,419,204,421,205,423,206,425,207,427,208,429,209,431,210,433,211,435,212,437,213,439,214,441,215,443,216,445,217,447,218,449,219,451,220,453,221,455,222,457,223,459,224,461,225,463,226,465,227,467,228,469,229,471,230,473,231,475,232,477,233,479,234,481,235,483,236,485,237,487,238,489,239,491,240,493,241,495,242,497,243,499,244,501,245,503,246,505,247,507,248,509,249,511,250,513,251,515,252,517,253,519,254,521,255,523,256,525,257,527,258,529,259,531,260,533,261,535,262,537,263,539,264,541,265,543,266,545,267,547,268,549,269,551,270,553,271,555,272,557,273,559,274,561,275,563,276,565,277,567,278,569,279,571,280,573,281,575,282,577,283,579,284,581,285,583,286,585,287,587,288,589,289,591,290,593,291,595,292,597,293,599,294,601,295,603,296,605,297,607,298,609,299,611,300,613,301,615,302,617,303,619,304,621,305,623,306,625,307,627,308,629,309,631,310,633,311,635,312,637,313,639,314,641,315,643,316,645,317,647,318,649,319,651,320,653,321,655,322,657,323,659,324,661,325,663,326,665,327,667,328,669,329,671,330,673,331,675,332,677,333,679,334,681,335,683,336,685,337,687,338,689,339,691,340,693,341,695,342,697,343,699,344,701,345,703,346,705,347,707,348,709,349,711,350,713,351,715,352,717,353,719,354,721,355,723,356,725,357,727,358,729,359,731,360,733,361,735,362,737,363,739,364,741,365,743,366,745,367,747,368,749,369,751,370,753,371,755,372,757,373,759,374,761,375,763,376,765,377,767,378,769,379,771,380,773,381,775,382,777,383,779,384,781,385,783,386,785,387,787,388,789,389,791,390,793,391,795,392,797,393,799,394,801,395,803,396,805,397,807,398,809,399,811,400,813,401,815,402,817,403,819,404,821,405,823,406,825,407,827,408,829,409,831,410,833,411,835,412,837,413,839,414,841,415,843,416,845,417,847,418,849,419,851,420,853,421,855,422,857,423,859,424,861,425,863,426,865,427,867,428,869,429,871,430,873,431,875,432,877,433,879,434,881,435,883,436,885,437,887,438,889,439,891,440,893,441,895,442,897,443,899,444,901,445,903,446,905,447,907,448,909,449,911,450,913,451,915,452,917,453,919,454,921,455,923,456,925,457,927,458,929,459,931,460,933,461,935,462,937,463,939,464,941,465,943,466,945,467,947,468,949,469,951,470,953,471,955,472,957,473,959,474,961,475,963,476,965,477,967,478,969,479,971,480,973,481,975,482,977,483,979,484,981,485,983,486,985,487,987,488,989,489,991,490,993,491,995,492,997,493,999,494,1001,495,1003,496,1005,497,1007,498,1009,499,1011,500,1013,501,1015,502,1017,503,1019,504,1021,505,1023,506,1025,507,1027,508,1029,509,1031,510,1033,511,1035,512,1037,513,1039,514,1041,515,1043,516,1045,517,1047,518,1049,519,1051,520,1053,521,1055,522,1057,523,1059,524,1061,525,1063,526,1065,527,1067,528,1069,529,1071,530,1073,531,1075,532,1077,533,1079,534,1081,535,1083,536,1085,537,1087,538,1089,539,1091,540,1093,541,1095,542,1097,543,1099,544,1101,545,1103,546,1105,547,1107,548,1109,549,1111,550,1113,551,1115,552,1117,553,1119,554,1121,555,1123,556,1125,557,1127,558,1129,559,1131,560,1133,561,1135,562,1137,563,1139,564,1141,565,1143,566,1145,567,1147,568,1149,569,1151,570,1153,571,1155,572,1157,573,1159,574,1161,575,1163,576,1165,577,1167,578,1169,579,1171,580,1173,581,1175,582,1177,583,1179,584,1181,585,1183,586,1185,587,1187,588,1189,589,1191,590,1193,591,1195,592,1197,593,1199,594,1201,595,1203,596,1205,597,1207,598,1209,599,1211,600,1213,601,1215,602,1217,603,1219,604,1221,605,1223,606,1225,607,1227,608,1229,609,1231,610,1233,611,1235,612,1237,613,1239,614,1241,615,1243,616,1245,617,1247,618,1249,619,1251,620,1253,621,1255,622,1257,623,1259,624,1261,625,1263,626,1265,627,1267,628,1269,629,1271,630,1273,631,1275,632,1277,633,1279,634,1281,635,1283,636,1285,0,1287,0,1289,0,1291,637,1293,638,1295,639,1297,640,1299,641,1301,642,1303,643,1305,644,1307,645,1309,646,1311,0,1313,647,1315,648,1317,649,1319,0,1321,650,1323,651,1325,652,1327,653,1329,654,1331,655,1333,656,1335,657,1337,658,1339,659,1341,660,1343,0,1345,661,1347,662,1349,663,1351,664,1353,665,1355,666,1357,667,1359,668,1361,669,1363,670,1365,671,1367,672,1369,0,1371,673,1373,674,1375,0,1377,0,1379,0,1381,675,1383,0,1385,0,1387,679,1389,676,1391,677,1393,678,5,0,1,2,3,4,51,1,0,48,57,2,0,43,43,45,45,9,0,33,33,35,35,37,38,42,42,60,64,94,94,96,96,124,124,126,126,2,0,42,43,60,62,8,0,33,33,35,35,37,38,63,64,94,94,96,96,124,124,126,126,2,0,65,65,97,97,2,0,76,76,108,108,2,0,78,78,110,110,2,0,89,89,121,121,2,0,83,83,115,115,2,0,69,69,101,101,2,0,90,90,122,122,2,0,68,68,100,100,2,0,82,82,114,114,2,0,67,67,99,99,2,0,77,77,109,109,2,0,84,84,116,116,2,0,73,73,105,105,2,0,66,66,98,98,2,0,79,79,111,111,2,0,72,72,104,104,2,0,75,75,107,107,2,0,85,85,117,117,2,0,71,71,103,103,2,0,80,80,112,112,2,0,70,70,102,102,2,0,88,88,120,120,2,0,86,86,118,118,2,0,81,81,113,113,2,0,87,87,119,119,2,0,74,74,106,106,9,0,65,90,95,95,97,122,170,170,181,181,186,186,192,214,216,246,248,255,2,0,256,55295,57344,65535,1,0,55296,56319,1,0,56320,57343,2,0,0,0,34,34,1,0,34,34,1,0,39,39,1,0,48,49,3,0,48,57,65,70,97,102,3,0,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,2,0,34,34,92,92,2,0,9,9,32,32,2,0,10,10,13,13,2,0,42,42,47,47,4,0,10,10,13,13,34,34,92,92,3,0,10,10,13,13,34,34,3,0,85,85,117,117,120,120,2,0,39,39,92,92,1,0,36,36,6863,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,697,1,0,0,0,0,699,1,0,0,0,0,701,1,0,0,0,0,703,1,0,0,0,0,705,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,711,1,0,0,0,0,713,1,0,0,0,0,715,1,0,0,0,0,717,1,0,0,0,0,719,1,0,0,0,0,721,1,0,0,0,0,723,1,0,0,0,0,725,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,0,731,1,0,0,0,0,733,1,0,0,0,0,735,1,0,0,0,0,737,1,0,0,0,0,739,1,0,0,0,0,741,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,747,1,0,0,0,0,749,1,0,0,0,0,751,1,0,0,0,0,753,1,0,0,0,0,755,1,0,0,0,0,757,1,0,0,0,0,759,1,0,0,0,0,761,1,0,0,0,0,763,1,0,0,0,0,765,1,0,0,0,0,767,1,0,0,0,0,769,1,0,0,0,0,771,1,0,0,0,0,773,1,0,0,0,0,775,1,0,0,0,0,777,1,0,0,0,0,779,1,0,0,0,0,781,1,0,0,0,0,783,1,0,0,0,0,785,1,0,0,0,0,787,1,0,0,0,0,789,1,0,0,0,0,791,1,0,0,0,0,793,1,0,0,0,0,795,1,0,0,0,0,797,1,0,0,0,0,799,1,0,0,0,0,801,1,0,0,0,0,803,1,0,0,0,0,805,1,0,0,0,0,807,1,0,0,0,0,809,1,0,0,0,0,811,1,0,0,0,0,813,1,0,0,0,0,815,1,0,0,0,0,817,1,0,0,0,0,819,1,0,0,0,0,821,1,0,0,0,0,823,1,0,0,0,0,825,1,0,0,0,0,827,1,0,0,0,0,829,1,0,0,0,0,831,1,0,0,0,0,833,1,0,0,0,0,835,1,0,0,0,0,837,1,0,0,0,0,839,1,0,0,0,0,841,1,0,0,0,0,843,1,0,0,0,0,845,1,0,0,0,0,847,1,0,0,0,0,849,1,0,0,0,0,851,1,0,0,0,0,853,1,0,0,0,0,855,1,0,0,0,0,857,1,0,0,0,0,859,1,0,0,0,0,861,1,0,0,0,0,863,1,0,0,0,0,865,1,0,0,0,0,867,1,0,0,0,0,869,1,0,0,0,0,871,1,0,0,0,0,873,1,0,0,0,0,875,1,0,0,0,0,877,1,0,0,0,0,879,1,0,0,0,0,881,1,0,0,0,0,883,1,0,0,0,0,885,1,0,0,0,0,887,1,0,0,0,0,889,1,0,0,0,0,891,1,0,0,0,0,893,1,0,0,0,0,895,1,0,0,0,0,897,1,0,0,0,0,899,1,0,0,0,0,901,1,0,0,0,0,903,1,0,0,0,0,905,1,0,0,0,0,907,1,0,0,0,0,909,1,0,0,0,0,911,1,0,0,0,0,913,1,0,0,0,0,915,1,0,0,0,0,917,1,0,0,0,0,919,1,0,0,0,0,921,1,0,0,0,0,923,1,0,0,0,0,925,1,0,0,0,0,927,1,0,0,0,0,929,1,0,0,0,0,931,1,0,0,0,0,933,1,0,0,0,0,935,1,0,0,0,0,937,1,0,0,0,0,939,1,0,0,0,0,941,1,0,0,0,0,943,1,0,0,0,0,945,1,0,0,0,0,947,1,0,0,0,0,949,1,0,0,0,0,951,1,0,0,0,0,953,1,0,0,0,0,955,1,0,0,0,0,957,1,0,0,0,0,959,1,0,0,0,0,961,1,0,0,0,0,963,1,0,0,0,0,965,1,0,0,0,0,967,1,0,0,0,0,969,1,0,0,0,0,971,1,0,0,0,0,973,1,0,0,0,0,975,1,0,0,0,0,977,1,0,0,0,0,979,1,0,0,0,0,981,1,0,0,0,0,983,1,0,0,0,0,985,1,0,0,0,0,987,1,0,0,0,0,989,1,0,0,0,0,991,1,0,0,0,0,993,1,0,0,0,0,995,1,0,0,0,0,997,1,0,0,0,0,999,1,0,0,0,0,1001,1,0,0,0,0,1003,1,0,0,0,0,1005,1,0,0,0,0,1007,1,0,0,0,0,1009,1,0,0,0,0,1011,1,0,0,0,0,1013,1,0,0,0,0,1015,1,0,0,0,0,1017,1,0,0,0,0,1019,1,0,0,0,0,1021,1,0,0,0,0,1023,1,0,0,0,0,1025,1,0,0,0,0,1027,1,0,0,0,0,1029,1,0,0,0,0,1031,1,0,0,0,0,1033,1,0,0,0,0,1035,1,0,0,0,0,1037,1,0,0,0,0,1039,1,0,0,0,0,1041,1,0,0,0,0,1043,1,0,0,0,0,1045,1,0,0,0,0,1047,1,0,0,0,0,1049,1,0,0,0,0,1051,1,0,0,0,0,1053,1,0,0,0,0,1055,1,0,0,0,0,1057,1,0,0,0,0,1059,1,0,0,0,0,1061,1,0,0,0,0,1063,1,0,0,0,0,1065,1,0,0,0,0,1067,1,0,0,0,0,1069,1,0,0,0,0,1071,1,0,0,0,0,1073,1,0,0,0,0,1075,1,0,0,0,0,1077,1,0,0,0,0,1079,1,0,0,0,0,1081,1,0,0,0,0,1083,1,0,0,0,0,1085,1,0,0,0,0,1087,1,0,0,0,0,1089,1,0,0,0,0,1091,1,0,0,0,0,1093,1,0,0,0,0,1095,1,0,0,0,0,1097,1,0,0,0,0,1099,1,0,0,0,0,1101,1,0,0,0,0,1103,1,0,0,0,0,1105,1,0,0,0,0,1107,1,0,0,0,0,1109,1,0,0,0,0,1111,1,0,0,0,0,1113,1,0,0,0,0,1115,1,0,0,0,0,1117,1,0,0,0,0,1119,1,0,0,0,0,1121,1,0,0,0,0,1123,1,0,0,0,0,1125,1,0,0,0,0,1127,1,0,0,0,0,1129,1,0,0,0,0,1131,1,0,0,0,0,1133,1,0,0,0,0,1135,1,0,0,0,0,1137,1,0,0,0,0,1139,1,0,0,0,0,1141,1,0,0,0,0,1143,1,0,0,0,0,1145,1,0,0,0,0,1147,1,0,0,0,0,1149,1,0,0,0,0,1151,1,0,0,0,0,1153,1,0,0,0,0,1155,1,0,0,0,0,1157,1,0,0,0,0,1159,1,0,0,0,0,1161,1,0,0,0,0,1163,1,0,0,0,0,1165,1,0,0,0,0,1167,1,0,0,0,0,1169,1,0,0,0,0,1171,1,0,0,0,0,1173,1,0,0,0,0,1175,1,0,0,0,0,1177,1,0,0,0,0,1179,1,0,0,0,0,1181,1,0,0,0,0,1183,1,0,0,0,0,1185,1,0,0,0,0,1187,1,0,0,0,0,1189,1,0,0,0,0,1191,1,0,0,0,0,1193,1,0,0,0,0,1195,1,0,0,0,0,1197,1,0,0,0,0,1199,1,0,0,0,0,1201,1,0,0,0,0,1203,1,0,0,0,0,1205,1,0,0,0,0,1207,1,0,0,0,0,1209,1,0,0,0,0,1211,1,0,0,0,0,1213,1,0,0,0,0,1215,1,0,0,0,0,1217,1,0,0,0,0,1219,1,0,0,0,0,1221,1,0,0,0,0,1223,1,0,0,0,0,1225,1,0,0,0,0,1227,1,0,0,0,0,1229,1,0,0,0,0,1231,1,0,0,0,0,1233,1,0,0,0,0,1235,1,0,0,0,0,1237,1,0,0,0,0,1239,1,0,0,0,0,1241,1,0,0,0,0,1243,1,0,0,0,0,1245,1,0,0,0,0,1247,1,0,0,0,0,1249,1,0,0,0,0,1251,1,0,0,0,0,1253,1,0,0,0,0,1255,1,0,0,0,0,1257,1,0,0,0,0,1259,1,0,0,0,0,1261,1,0,0,0,0,1263,1,0,0,0,0,1265,1,0,0,0,0,1267,1,0,0,0,0,1269,1,0,0,0,0,1271,1,0,0,0,0,1273,1,0,0,0,0,1275,1,0,0,0,0,1277,1,0,0,0,0,1279,1,0,0,0,0,1281,1,0,0,0,0,1283,1,0,0,0,0,1291,1,0,0,0,0,1293,1,0,0,0,0,1295,1,0,0,0,0,1297,1,0,0,0,0,1299,1,0,0,0,0,1301,1,0,0,0,0,1303,1,0,0,0,0,1305,1,0,0,0,0,1307,1,0,0,0,0,1309,1,0,0,0,0,1311,1,0,0,0,0,1313,1,0,0,0,0,1315,1,0,0,0,0,1317,1,0,0,0,0,1321,1,0,0,0,0,1323,1,0,0,0,0,1325,1,0,0,0,0,1327,1,0,0,0,0,1329,1,0,0,0,0,1331,1,0,0,0,0,1333,1,0,0,0,0,1335,1,0,0,0,0,1337,1,0,0,0,0,1339,1,0,0,0,0,1341,1,0,0,0,0,1345,1,0,0,0,0,1347,1,0,0,0,0,1349,1,0,0,0,0,1351,1,0,0,0,0,1353,1,0,0,0,0,1355,1,0,0,0,0,1357,1,0,0,0,0,1359,1,0,0,0,0,1361,1,0,0,0,0,1363,1,0,0,0,1,1365,1,0,0,0,1,1367,1,0,0,0,1,1371,1,0,0,0,1,1373,1,0,0,0,2,1377,1,0,0,0,2,1379,1,0,0,0,2,1381,1,0,0,0,3,1383,1,0,0,0,3,1385,1,0,0,0,3,1387,1,0,0,0,3,1389,1,0,0,0,4,1391,1,0,0,0,4,1393,1,0,0,0,5,1395,1,0,0,0,7,1397,1,0,0,0,9,1399,1,0,0,0,11,1401,1,0,0,0,13,1403,1,0,0,0,15,1405,1,0,0,0,17,1407,1,0,0,0,19,1409,1,0,0,0,21,1411,1,0,0,0,23,1413,1,0,0,0,25,1415,1,0,0,0,27,1417,1,0,0,0,29,1419,1,0,0,0,31,1421,1,0,0,0,33,1423,1,0,0,0,35,1425,1,0,0,0,37,1427,1,0,0,0,39,1429,1,0,0,0,41,1432,1,0,0,0,43,1435,1,0,0,0,45,1438,1,0,0,0,47,1441,1,0,0,0,49,1444,1,0,0,0,51,1447,1,0,0,0,53,1450,1,0,0,0,55,1453,1,0,0,0,57,1456,1,0,0,0,59,1458,1,0,0,0,61,1484,1,0,0,0,63,1495,1,0,0,0,65,1511,1,0,0,0,67,1513,1,0,0,0,69,1515,1,0,0,0,71,1517,1,0,0,0,73,1521,1,0,0,0,75,1529,1,0,0,0,77,1537,1,0,0,0,79,1541,1,0,0,0,81,1545,1,0,0,0,83,1551,1,0,0,0,85,1554,1,0,0,0,87,1558,1,0,0,0,89,1569,1,0,0,0,91,1574,1,0,0,0,93,1579,1,0,0,0,95,1584,1,0,0,0,97,1590,1,0,0,0,99,1598,1,0,0,0,101,1605,1,0,0,0,103,1616,1,0,0,0,105,1623,1,0,0,0,107,1639,1,0,0,0,109,1652,1,0,0,0,111,1665,1,0,0,0,113,1678,1,0,0,0,115,1696,1,0,0,0,117,1709,1,0,0,0,119,1717,1,0,0,0,121,1728,1,0,0,0,123,1733,1,0,0,0,125,1742,1,0,0,0,127,1745,1,0,0,0,129,1750,1,0,0,0,131,1757,1,0,0,0,133,1763,1,0,0,0,135,1769,1,0,0,0,137,1773,1,0,0,0,139,1781,1,0,0,0,141,1786,1,0,0,0,143,1792,1,0,0,0,145,1798,1,0,0,0,147,1805,1,0,0,0,149,1808,1,0,0,0,151,1818,1,0,0,0,153,1828,1,0,0,0,155,1833,1,0,0,0,157,1841,1,0,0,0,159,1849,1,0,0,0,161,1855,1,0,0,0,163,1865,1,0,0,0,165,1880,1,0,0,0,167,1884,1,0,0,0,169,1889,1,0,0,0,171,1896,1,0,0,0,173,1899,1,0,0,0,175,1904,1,0,0,0,177,1907,1,0,0,0,179,1913,1,0,0,0,181,1921,1,0,0,0,183,1929,1,0,0,0,185,1940,1,0,0,0,187,1950,1,0,0,0,189,1957,1,0,0,0,191,1970,1,0,0,0,193,1975,1,0,0,0,195,1985,1,0,0,0,197,1991,1,0,0,0,199,1996,1,0,0,0,201,1999,1,0,0,0,203,2008,1,0,0,0,205,2013,1,0,0,0,207,2019,1,0,0,0,209,2026,1,0,0,0,211,2031,1,0,0,0,213,2037,1,0,0,0,215,2046,1,0,0,0,217,2051,1,0,0,0,219,2057,1,0,0,0,221,2064,1,0,0,0,223,2069,1,0,0,0,225,2083,1,0,0,0,227,2090,1,0,0,0,229,2100,1,0,0,0,231,2113,1,0,0,0,233,2119,1,0,0,0,235,2134,1,0,0,0,237,2141,1,0,0,0,239,2146,1,0,0,0,241,2152,1,0,0,0,243,2158,1,0,0,0,245,2161,1,0,0,0,247,2168,1,0,0,0,249,2173,1,0,0,0,251,2178,1,0,0,0,253,2183,1,0,0,0,255,2191,1,0,0,0,257,2199,1,0,0,0,259,2205,1,0,0,0,261,2210,1,0,0,0,263,2219,1,0,0,0,265,2225,1,0,0,0,267,2233,1,0,0,0,269,2241,1,0,0,0,271,2247,1,0,0,0,273,2256,1,0,0,0,275,2263,1,0,0,0,277,2270,1,0,0,0,279,2274,1,0,0,0,281,2280,1,0,0,0,283,2286,1,0,0,0,285,2296,1,0,0,0,287,2301,1,0,0,0,289,2307,1,0,0,0,291,2314,1,0,0,0,293,2324,1,0,0,0,295,2335,1,0,0,0,297,2338,1,0,0,0,299,2348,1,0,0,0,301,2357,1,0,0,0,303,2364,1,0,0,0,305,2370,1,0,0,0,307,2373,1,0,0,0,309,2379,1,0,0,0,311,2386,1,0,0,0,313,2394,1,0,0,0,315,2403,1,0,0,0,317,2411,1,0,0,0,319,2417,1,0,0,0,321,2433,1,0,0,0,323,2444,1,0,0,0,325,2450,1,0,0,0,327,2456,1,0,0,0,329,2464,1,0,0,0,331,2472,1,0,0,0,333,2481,1,0,0,0,335,2488,1,0,0,0,337,2498,1,0,0,0,339,2512,1,0,0,0,341,2523,1,0,0,0,343,2535,1,0,0,0,345,2543,1,0,0,0,347,2552,1,0,0,0,349,2563,1,0,0,0,351,2568,1,0,0,0,353,2573,1,0,0,0,355,2577,1,0,0,0,357,2584,1,0,0,0,359,2590,1,0,0,0,361,2595,1,0,0,0,363,2604,1,0,0,0,365,2608,1,0,0,0,367,2619,1,0,0,0,369,2627,1,0,0,0,371,2636,1,0,0,0,373,2645,1,0,0,0,375,2653,1,0,0,0,377,2660,1,0,0,0,379,2670,1,0,0,0,381,2681,1,0,0,0,383,2692,1,0,0,0,385,2700,1,0,0,0,387,2708,1,0,0,0,389,2717,1,0,0,0,391,2724,1,0,0,0,393,2731,1,0,0,0,395,2736,1,0,0,0,397,2741,1,0,0,0,399,2748,1,0,0,0,401,2757,1,0,0,0,403,2767,1,0,0,0,405,2772,1,0,0,0,407,2779,1,0,0,0,409,2785,1,0,0,0,411,2793,1,0,0,0,413,2803,1,0,0,0,415,2813,1,0,0,0,417,2821,1,0,0,0,419,2829,1,0,0,0,421,2839,1,0,0,0,423,2848,1,0,0,0,425,2855,1,0,0,0,427,2861,1,0,0,0,429,2871,1,0,0,0,431,2877,1,0,0,0,433,2885,1,0,0,0,435,2894,1,0,0,0,437,2904,1,0,0,0,439,2911,1,0,0,0,441,2919,1,0,0,0,443,2927,1,0,0,0,445,2934,1,0,0,0,447,2939,1,0,0,0,449,2944,1,0,0,0,451,2953,1,0,0,0,453,2956,1,0,0,0,455,2966,1,0,0,0,457,2976,1,0,0,0,459,2985,1,0,0,0,461,2995,1,0,0,0,463,3005,1,0,0,0,465,3011,1,0,0,0,467,3019,1,0,0,0,469,3027,1,0,0,0,471,3036,1,0,0,0,473,3043,1,0,0,0,475,3055,1,0,0,0,477,3062,1,0,0,0,479,3070,1,0,0,0,481,3078,1,0,0,0,483,3088,1,0,0,0,485,3092,1,0,0,0,487,3098,1,0,0,0,489,3107,1,0,0,0,491,3113,1,0,0,0,493,3118,1,0,0,0,495,3128,1,0,0,0,497,3134,1,0,0,0,499,3141,1,0,0,0,501,3146,1,0,0,0,503,3152,1,0,0,0,505,3161,1,0,0,0,507,3166,1,0,0,0,509,3174,1,0,0,0,511,3180,1,0,0,0,513,3188,1,0,0,0,515,3201,1,0,0,0,517,3210,1,0,0,0,519,3216,1,0,0,0,521,3223,1,0,0,0,523,3232,1,0,0,0,525,3237,1,0,0,0,527,3243,1,0,0,0,529,3248,1,0,0,0,531,3253,1,0,0,0,533,3259,1,0,0,0,535,3264,1,0,0,0,537,3267,1,0,0,0,539,3275,1,0,0,0,541,3282,1,0,0,0,543,3289,1,0,0,0,545,3295,1,0,0,0,547,3302,1,0,0,0,549,3305,1,0,0,0,551,3309,1,0,0,0,553,3314,1,0,0,0,555,3323,1,0,0,0,557,3330,1,0,0,0,559,3338,1,0,0,0,561,3344,1,0,0,0,563,3350,1,0,0,0,565,3357,1,0,0,0,567,3365,1,0,0,0,569,3375,1,0,0,0,571,3383,1,0,0,0,573,3392,1,0,0,0,575,3398,1,0,0,0,577,3408,1,0,0,0,579,3416,1,0,0,0,581,3425,1,0,0,0,583,3434,1,0,0,0,585,3440,1,0,0,0,587,3451,1,0,0,0,589,3462,1,0,0,0,591,3472,1,0,0,0,593,3480,1,0,0,0,595,3486,1,0,0,0,597,3492,1,0,0,0,599,3497,1,0,0,0,601,3506,1,0,0,0,603,3514,1,0,0,0,605,3524,1,0,0,0,607,3528,1,0,0,0,609,3536,1,0,0,0,611,3544,1,0,0,0,613,3553,1,0,0,0,615,3561,1,0,0,0,617,3568,1,0,0,0,619,3579,1,0,0,0,621,3587,1,0,0,0,623,3595,1,0,0,0,625,3601,1,0,0,0,627,3609,1,0,0,0,629,3618,1,0,0,0,631,3626,1,0,0,0,633,3633,1,0,0,0,635,3638,1,0,0,0,637,3647,1,0,0,0,639,3652,1,0,0,0,641,3657,1,0,0,0,643,3667,1,0,0,0,645,3674,1,0,0,0,647,3681,1,0,0,0,649,3688,1,0,0,0,651,3695,1,0,0,0,653,3704,1,0,0,0,655,3713,1,0,0,0,657,3723,1,0,0,0,659,3736,1,0,0,0,661,3743,1,0,0,0,663,3751,1,0,0,0,665,3755,1,0,0,0,667,3761,1,0,0,0,669,3766,1,0,0,0,671,3773,1,0,0,0,673,3782,1,0,0,0,675,3789,1,0,0,0,677,3800,1,0,0,0,679,3806,1,0,0,0,681,3816,1,0,0,0,683,3827,1,0,0,0,685,3833,1,0,0,0,687,3840,1,0,0,0,689,3848,1,0,0,0,691,3855,1,0,0,0,693,3861,1,0,0,0,695,3867,1,0,0,0,697,3874,1,0,0,0,699,3881,1,0,0,0,701,3892,1,0,0,0,703,3897,1,0,0,0,705,3906,1,0,0,0,707,3916,1,0,0,0,709,3921,1,0,0,0,711,3933,1,0,0,0,713,3941,1,0,0,0,715,3950,1,0,0,0,717,3958,1,0,0,0,719,3963,1,0,0,0,721,3969,1,0,0,0,723,3979,1,0,0,0,725,3991,1,0,0,0,727,4003,1,0,0,0,729,4011,1,0,0,0,731,4020,1,0,0,0,733,4029,1,0,0,0,735,4035,1,0,0,0,737,4042,1,0,0,0,739,4049,1,0,0,0,741,4055,1,0,0,0,743,4064,1,0,0,0,745,4074,1,0,0,0,747,4082,1,0,0,0,749,4090,1,0,0,0,751,4095,1,0,0,0,753,4104,1,0,0,0,755,4115,1,0,0,0,757,4123,1,0,0,0,759,4128,1,0,0,0,761,4136,1,0,0,0,763,4142,1,0,0,0,765,4146,1,0,0,0,767,4151,1,0,0,0,769,4155,1,0,0,0,771,4160,1,0,0,0,773,4168,1,0,0,0,775,4175,1,0,0,0,777,4179,1,0,0,0,779,4187,1,0,0,0,781,4192,1,0,0,0,783,4202,1,0,0,0,785,4211,1,0,0,0,787,4215,1,0,0,0,789,4223,1,0,0,0,791,4230,1,0,0,0,793,4238,1,0,0,0,795,4244,1,0,0,0,797,4253,1,0,0,0,799,4259,1,0,0,0,801,4263,1,0,0,0,803,4271,1,0,0,0,805,4280,1,0,0,0,807,4286,1,0,0,0,809,4295,1,0,0,0,811,4301,1,0,0,0,813,4306,1,0,0,0,815,4313,1,0,0,0,817,4321,1,0,0,0,819,4329,1,0,0,0,821,4338,1,0,0,0,823,4348,1,0,0,0,825,4353,1,0,0,0,827,4357,1,0,0,0,829,4363,1,0,0,0,831,4372,1,0,0,0,833,4382,1,0,0,0,835,4387,1,0,0,0,837,4397,1,0,0,0,839,4403,1,0,0,0,841,4408,1,0,0,0,843,4415,1,0,0,0,845,4423,1,0,0,0,847,4437,1,0,0,0,849,4448,1,0,0,0,851,4455,1,0,0,0,853,4474,1,0,0,0,855,4502,1,0,0,0,857,4529,1,0,0,0,859,4535,1,0,0,0,861,4548,1,0,0,0,863,4558,1,0,0,0,865,4569,1,0,0,0,867,4579,1,0,0,0,869,4589,1,0,0,0,871,4598,1,0,0,0,873,4604,1,0,0,0,875,4612,1,0,0,0,877,4625,1,0,0,0,879,4630,1,0,0,0,881,4638,1,0,0,0,883,4645,1,0,0,0,885,4652,1,0,0,0,887,4663,1,0,0,0,889,4673,1,0,0,0,891,4680,1,0,0,0,893,4687,1,0,0,0,895,4695,1,0,0,0,897,4703,1,0,0,0,899,4713,1,0,0,0,901,4720,1,0,0,0,903,4727,1,0,0,0,905,4734,1,0,0,0,907,4746,1,0,0,0,909,4750,1,0,0,0,911,4754,1,0,0,0,913,4760,1,0,0,0,915,4773,1,0,0,0,917,4785,1,0,0,0,919,4789,1,0,0,0,921,4793,1,0,0,0,923,4802,1,0,0,0,925,4810,1,0,0,0,927,4821,1,0,0,0,929,4827,1,0,0,0,931,4835,1,0,0,0,933,4844,1,0,0,0,935,4848,1,0,0,0,937,4856,1,0,0,0,939,4867,1,0,0,0,941,4876,1,0,0,0,943,4881,1,0,0,0,945,4888,1,0,0,0,947,4893,1,0,0,0,949,4900,1,0,0,0,951,4905,1,0,0,0,953,4914,1,0,0,0,955,4919,1,0,0,0,957,4931,1,0,0,0,959,4942,1,0,0,0,961,4951,1,0,0,0,963,4959,1,0,0,0,965,4973,1,0,0,0,967,4981,1,0,0,0,969,4992,1,0,0,0,971,4999,1,0,0,0,973,5006,1,0,0,0,975,5013,1,0,0,0,977,5020,1,0,0,0,979,5024,1,0,0,0,981,5028,1,0,0,0,983,5033,1,0,0,0,985,5038,1,0,0,0,987,5046,1,0,0,0,989,5052,1,0,0,0,991,5062,1,0,0,0,993,5067,1,0,0,0,995,5087,1,0,0,0,997,5105,1,0,0,0,999,5111,1,0,0,0,1001,5124,1,0,0,0,1003,5135,1,0,0,0,1005,5141,1,0,0,0,1007,5150,1,0,0,0,1009,5158,1,0,0,0,1011,5162,1,0,0,0,1013,5174,1,0,0,0,1015,5182,1,0,0,0,1017,5188,1,0,0,0,1019,5194,1,0,0,0,1021,5202,1,0,0,0,1023,5210,1,0,0,0,1025,5216,1,0,0,0,1027,5221,1,0,0,0,1029,5228,1,0,0,0,1031,5234,1,0,0,0,1033,5240,1,0,0,0,1035,5249,1,0,0,0,1037,5255,1,0,0,0,1039,5259,1,0,0,0,1041,5264,1,0,0,0,1043,5271,1,0,0,0,1045,5279,1,0,0,0,1047,5289,1,0,0,0,1049,5296,1,0,0,0,1051,5301,1,0,0,0,1053,5306,1,0,0,0,1055,5310,1,0,0,0,1057,5315,1,0,0,0,1059,5320,1,0,0,0,1061,5328,1,0,0,0,1063,5336,1,0,0,0,1065,5340,1,0,0,0,1067,5344,1,0,0,0,1069,5354,1,0,0,0,1071,5360,1,0,0,0,1073,5364,1,0,0,0,1075,5368,1,0,0,0,1077,5371,1,0,0,0,1079,5377,1,0,0,0,1081,5387,1,0,0,0,1083,5391,1,0,0,0,1085,5394,1,0,0,0,1087,5400,1,0,0,0,1089,5408,1,0,0,0,1091,5414,1,0,0,0,1093,5420,1,0,0,0,1095,5425,1,0,0,0,1097,5430,1,0,0,0,1099,5441,1,0,0,0,1101,5447,1,0,0,0,1103,5460,1,0,0,0,1105,5467,1,0,0,0,1107,5475,1,0,0,0,1109,5480,1,0,0,0,1111,5486,1,0,0,0,1113,5491,1,0,0,0,1115,5497,1,0,0,0,1117,5502,1,0,0,0,1119,5508,1,0,0,0,1121,5514,1,0,0,0,1123,5521,1,0,0,0,1125,5525,1,0,0,0,1127,5530,1,0,0,0,1129,5534,1,0,0,0,1131,5539,1,0,0,0,1133,5543,1,0,0,0,1135,5548,1,0,0,0,1137,5552,1,0,0,0,1139,5557,1,0,0,0,1141,5562,1,0,0,0,1143,5567,1,0,0,0,1145,5572,1,0,0,0,1147,5578,1,0,0,0,1149,5584,1,0,0,0,1151,5590,1,0,0,0,1153,5601,1,0,0,0,1155,5613,1,0,0,0,1157,5630,1,0,0,0,1159,5636,1,0,0,0,1161,5649,1,0,0,0,1163,5655,1,0,0,0,1165,5661,1,0,0,0,1167,5667,1,0,0,0,1169,5671,1,0,0,0,1171,5678,1,0,0,0,1173,5688,1,0,0,0,1175,5695,1,0,0,0,1177,5703,1,0,0,0,1179,5710,1,0,0,0,1181,5715,1,0,0,0,1183,5721,1,0,0,0,1185,5725,1,0,0,0,1187,5737,1,0,0,0,1189,5756,1,0,0,0,1191,5768,1,0,0,0,1193,5782,1,0,0,0,1195,5797,1,0,0,0,1197,5810,1,0,0,0,1199,5823,1,0,0,0,1201,5835,1,0,0,0,1203,5848,1,0,0,0,1205,5863,1,0,0,0,1207,5878,1,0,0,0,1209,5900,1,0,0,0,1211,5922,1,0,0,0,1213,5936,1,0,0,0,1215,5943,1,0,0,0,1217,5948,1,0,0,0,1219,5954,1,0,0,0,1221,5965,1,0,0,0,1223,5977,1,0,0,0,1225,5993,1,0,0,0,1227,6009,1,0,0,0,1229,6016,1,0,0,0,1231,6023,1,0,0,0,1233,6032,1,0,0,0,1235,6039,1,0,0,0,1237,6049,1,0,0,0,1239,6056,1,0,0,0,1241,6060,1,0,0,0,1243,6076,1,0,0,0,1245,6085,1,0,0,0,1247,6095,1,0,0,0,1249,6106,1,0,0,0,1251,6115,1,0,0,0,1253,6128,1,0,0,0,1255,6142,1,0,0,0,1257,6159,1,0,0,0,1259,6169,1,0,0,0,1261,6183,1,0,0,0,1263,6193,1,0,0,0,1265,6208,1,0,0,0,1267,6225,1,0,0,0,1269,6229,1,0,0,0,1271,6249,1,0,0,0,1273,6259,1,0,0,0,1275,6281,1,0,0,0,1277,6294,1,0,0,0,1279,6302,1,0,0,0,1281,6310,1,0,0,0,1283,6320,1,0,0,0,1285,6333,1,0,0,0,1287,6337,1,0,0,0,1289,6341,1,0,0,0,1291,6343,1,0,0,0,1293,6346,1,0,0,0,1295,6355,1,0,0,0,1297,6358,1,0,0,0,1299,6367,1,0,0,0,1301,6371,1,0,0,0,1303,6375,1,0,0,0,1305,6379,1,0,0,0,1307,6383,1,0,0,0,1309,6386,1,0,0,0,1311,6395,1,0,0,0,1313,6401,1,0,0,0,1315,6404,1,0,0,0,1317,6408,1,0,0,0,1319,6417,1,0,0,0,1321,6424,1,0,0,0,1323,6427,1,0,0,0,1325,6435,1,0,0,0,1327,6438,1,0,0,0,1329,6441,1,0,0,0,1331,6444,1,0,0,0,1333,6452,1,0,0,0,1335,6455,1,0,0,0,1337,6458,1,0,0,0,1339,6460,1,0,0,0,1341,6494,1,0,0,0,1343,6497,1,0,0,0,1345,6501,1,0,0,0,1347,6509,1,0,0,0,1349,6525,1,0,0,0,1351,6536,1,0,0,0,1353,6540,1,0,0,0,1355,6551,1,0,0,0,1357,6590,1,0,0,0,1359,6641,1,0,0,0,1361,6665,1,0,0,0,1363,6668,1,0,0,0,1365,6670,1,0,0,0,1367,6675,1,0,0,0,1369,6706,1,0,0,0,1371,6709,1,0,0,0,1373,6714,1,0,0,0,1375,6727,1,0,0,0,1377,6730,1,0,0,0,1379,6735,1,0,0,0,1381,6741,1,0,0,0,1383,6746,1,0,0,0,1385,6751,1,0,0,0,1387,6756,1,0,0,0,1389,6761,1,0,0,0,1391,6778,1,0,0,0,1393,6780,1,0,0,0,1395,1396,5,36,0,0,1396,6,1,0,0,0,1397,1398,5,40,0,0,1398,8,1,0,0,0,1399,1400,5,41,0,0,1400,10,1,0,0,0,1401,1402,5,91,0,0,1402,12,1,0,0,0,1403,1404,5,93,0,0,1404,14,1,0,0,0,1405,1406,5,44,0,0,1406,16,1,0,0,0,1407,1408,5,59,0,0,1408,18,1,0,0,0,1409,1410,5,58,0,0,1410,20,1,0,0,0,1411,1412,5,42,0,0,1412,22,1,0,0,0,1413,1414,5,61,0,0,1414,24,1,0,0,0,1415,1416,5,46,0,0,1416,26,1,0,0,0,1417,1418,5,43,0,0,1418,28,1,0,0,0,1419,1420,5,45,0,0,1420,30,1,0,0,0,1421,1422,5,47,0,0,1422,32,1,0,0,0,1423,1424,5,94,0,0,1424,34,1,0,0,0,1425,1426,5,60,0,0,1426,36,1,0,0,0,1427,1428,5,62,0,0,1428,38,1,0,0,0,1429,1430,5,60,0,0,1430,1431,5,60,0,0,1431,40,1,0,0,0,1432,1433,5,62,0,0,1433,1434,5,62,0,0,1434,42,1,0,0,0,1435,1436,5,58,0,0,1436,1437,5,61,0,0,1437,44,1,0,0,0,1438,1439,5,60,0,0,1439,1440,5,61,0,0,1440,46,1,0,0,0,1441,1442,5,61,0,0,1442,1443,5,62,0,0,1443,48,1,0,0,0,1444,1445,5,62,0,0,1445,1446,5,61,0,0,1446,50,1,0,0,0,1447,1448,5,46,0,0,1448,1449,5,46,0,0,1449,52,1,0,0,0,1450,1451,5,60,0,0,1451,1452,5,62,0,0,1452,54,1,0,0,0,1453,1454,5,58,0,0,1454,1455,5,58,0,0,1455,56,1,0,0,0,1456,1457,5,37,0,0,1457,58,1,0,0,0,1458,1460,5,36,0,0,1459,1461,7,0,0,0,1460,1459,1,0,0,0,1461,1462,1,0,0,0,1462,1460,1,0,0,0,1462,1463,1,0,0,0,1463,60,1,0,0,0,1464,1480,3,65,30,0,1465,1469,5,43,0,0,1466,1467,5,45,0,0,1467,1469,4,28,0,0,1468,1465,1,0,0,0,1468,1466,1,0,0,0,1469,1470,1,0,0,0,1470,1468,1,0,0,0,1470,1471,1,0,0,0,1471,1475,1,0,0,0,1472,1476,3,65,30,0,1473,1474,5,47,0,0,1474,1476,4,28,1,0,1475,1472,1,0,0,0,1475,1473,1,0,0,0,1476,1480,1,0,0,0,1477,1478,5,47,0,0,1478,1480,4,28,2,0,1479,1464,1,0,0,0,1479,1468,1,0,0,0,1479,1477,1,0,0,0,1480,1481,1,0,0,0,1481,1479,1,0,0,0,1481,1482,1,0,0,0,1482,1485,1,0,0,0,1483,1485,7,1,0,0,1484,1479,1,0,0,0,1484,1483,1,0,0,0,1485,1486,1,0,0,0,1486,1487,6,28,0,0,1487,62,1,0,0,0,1488,1494,3,67,31,0,1489,1490,5,45,0,0,1490,1494,4,29,3,0,1491,1492,5,47,0,0,1492,1494,4,29,4,0,1493,1488,1,0,0,0,1493,1489,1,0,0,0,1493,1491,1,0,0,0,1494,1497,1,0,0,0,1495,1493,1,0,0,0,1495,1496,1,0,0,0,1496,1498,1,0,0,0,1497,1495,1,0,0,0,1498,1500,3,69,32,0,1499,1501,3,61,28,0,1500,1499,1,0,0,0,1500,1501,1,0,0,0,1501,1505,1,0,0,0,1502,1506,5,43,0,0,1503,1504,5,45,0,0,1504,1506,4,29,5,0,1505,1502,1,0,0,0,1505,1503,1,0,0,0,1506,1507,1,0,0,0,1507,1505,1,0,0,0,1507,1508,1,0,0,0,1508,1509,1,0,0,0,1509,1510,6,29,1,0,1510,64,1,0,0,0,1511,1512,7,2,0,0,1512,66,1,0,0,0,1513,1514,7,3,0,0,1514,68,1,0,0,0,1515,1516,7,4,0,0,1516,70,1,0,0,0,1517,1518,7,5,0,0,1518,1519,7,6,0,0,1519,1520,7,6,0,0,1520,72,1,0,0,0,1521,1522,7,5,0,0,1522,1523,7,7,0,0,1523,1524,7,5,0,0,1524,1525,7,6,0,0,1525,1526,7,8,0,0,1526,1527,7,9,0,0,1527,1528,7,10,0,0,1528,74,1,0,0,0,1529,1530,7,5,0,0,1530,1531,7,7,0,0,1531,1532,7,5,0,0,1532,1533,7,6,0,0,1533,1534,7,8,0,0,1534,1535,7,11,0,0,1535,1536,7,10,0,0,1536,76,1,0,0,0,1537,1538,7,5,0,0,1538,1539,7,7,0,0,1539,1540,7,12,0,0,1540,78,1,0,0,0,1541,1542,7,5,0,0,1542,1543,7,7,0,0,1543,1544,7,8,0,0,1544,80,1,0,0,0,1545,1546,7,5,0,0,1546,1547,7,13,0,0,1547,1548,7,13,0,0,1548,1549,7,5,0,0,1549,1550,7,8,0,0,1550,82,1,0,0,0,1551,1552,7,5,0,0,1552,1553,7,9,0,0,1553,84,1,0,0,0,1554,1555,7,5,0,0,1555,1556,7,9,0,0,1556,1557,7,14,0,0,1557,86,1,0,0,0,1558,1559,7,5,0,0,1559,1560,7,9,0,0,1560,1561,7,8,0,0,1561,1562,7,15,0,0,1562,1563,7,15,0,0,1563,1564,7,10,0,0,1564,1565,7,16,0,0,1565,1566,7,13,0,0,1566,1567,7,17,0,0,1567,1568,7,14,0,0,1568,88,1,0,0,0,1569,1570,7,18,0,0,1570,1571,7,19,0,0,1571,1572,7,16,0,0,1572,1573,7,20,0,0,1573,90,1,0,0,0,1574,1575,7,14,0,0,1575,1576,7,5,0,0,1576,1577,7,9,0,0,1577,1578,7,10,0,0,1578,92,1,0,0,0,1579,1580,7,14,0,0,1580,1581,7,5,0,0,1581,1582,7,9,0,0,1582,1583,7,16,0,0,1583,94,1,0,0,0,1584,1585,7,14,0,0,1585,1586,7,20,0,0,1586,1587,7,10,0,0,1587,1588,7,14,0,0,1588,1589,7,21,0,0,1589,96,1,0,0,0,1590,1591,7,14,0,0,1591,1592,7,19,0,0,1592,1593,7,6,0,0,1593,1594,7,6,0,0,1594,1595,7,5,0,0,1595,1596,7,16,0,0,1596,1597,7,10,0,0,1597,98,1,0,0,0,1598,1599,7,14,0,0,1599,1600,7,19,0,0,1600,1601,7,6,0,0,1601,1602,7,22,0,0,1602,1603,7,15,0,0,1603,1604,7,7,0,0,1604,100,1,0,0,0,1605,1606,7,14,0,0,1606,1607,7,19,0,0,1607,1608,7,7,0,0,1608,1609,7,9,0,0,1609,1610,7,16,0,0,1610,1611,7,13,0,0,1611,1612,7,5,0,0,1612,1613,7,17,0,0,1613,1614,7,7,0,0,1614,1615,7,16,0,0,1615,102,1,0,0,0,1616,1617,7,14,0,0,1617,1618,7,13,0,0,1618,1619,7,10,0,0,1619,1620,7,5,0,0,1620,1621,7,16,0,0,1621,1622,7,10,0,0,1622,104,1,0,0,0,1623,1624,7,14,0,0,1624,1625,7,22,0,0,1625,1626,7,13,0,0,1626,1627,7,13,0,0,1627,1628,7,10,0,0,1628,1629,7,7,0,0,1629,1630,7,16,0,0,1630,1631,5,95,0,0,1631,1632,7,14,0,0,1632,1633,7,5,0,0,1633,1634,7,16,0,0,1634,1635,7,5,0,0,1635,1636,7,6,0,0,1636,1637,7,19,0,0,1637,1638,7,23,0,0,1638,106,1,0,0,0,1639,1640,7,14,0,0,1640,1641,7,22,0,0,1641,1642,7,13,0,0,1642,1643,7,13,0,0,1643,1644,7,10,0,0,1644,1645,7,7,0,0,1645,1646,7,16,0,0,1646,1647,5,95,0,0,1647,1648,7,12,0,0,1648,1649,7,5,0,0,1649,1650,7,16,0,0,1650,1651,7,10,0,0,1651,108,1,0,0,0,1652,1653,7,14,0,0,1653,1654,7,22,0,0,1654,1655,7,13,0,0,1655,1656,7,13,0,0,1656,1657,7,10,0,0,1657,1658,7,7,0,0,1658,1659,7,16,0,0,1659,1660,5,95,0,0,1660,1661,7,13,0,0,1661,1662,7,19,0,0,1662,1663,7,6,0,0,1663,1664,7,10,0,0,1664,110,1,0,0,0,1665,1666,7,14,0,0,1666,1667,7,22,0,0,1667,1668,7,13,0,0,1668,1669,7,13,0,0,1669,1670,7,10,0,0,1670,1671,7,7,0,0,1671,1672,7,16,0,0,1672,1673,5,95,0,0,1673,1674,7,16,0,0,1674,1675,7,17,0,0,1675,1676,7,15,0,0,1676,1677,7,10,0,0,1677,112,1,0,0,0,1678,1679,7,14,0,0,1679,1680,7,22,0,0,1680,1681,7,13,0,0,1681,1682,7,13,0,0,1682,1683,7,10,0,0,1683,1684,7,7,0,0,1684,1685,7,16,0,0,1685,1686,5,95,0,0,1686,1687,7,16,0,0,1687,1688,7,17,0,0,1688,1689,7,15,0,0,1689,1690,7,10,0,0,1690,1691,7,9,0,0,1691,1692,7,16,0,0,1692,1693,7,5,0,0,1693,1694,7,15,0,0,1694,1695,7,24,0,0,1695,114,1,0,0,0,1696,1697,7,14,0,0,1697,1698,7,22,0,0,1698,1699,7,13,0,0,1699,1700,7,13,0,0,1700,1701,7,10,0,0,1701,1702,7,7,0,0,1702,1703,7,16,0,0,1703,1704,5,95,0,0,1704,1705,7,22,0,0,1705,1706,7,9,0,0,1706,1707,7,10,0,0,1707,1708,7,13,0,0,1708,116,1,0,0,0,1709,1710,7,12,0,0,1710,1711,7,10,0,0,1711,1712,7,25,0,0,1712,1713,7,5,0,0,1713,1714,7,22,0,0,1714,1715,7,6,0,0,1715,1716,7,16,0,0,1716,118,1,0,0,0,1717,1718,7,12,0,0,1718,1719,7,10,0,0,1719,1720,7,25,0,0,1720,1721,7,10,0,0,1721,1722,7,13,0,0,1722,1723,7,13,0,0,1723,1724,7,5,0,0,1724,1725,7,18,0,0,1725,1726,7,6,0,0,1726,1727,7,10,0,0,1727,120,1,0,0,0,1728,1729,7,12,0,0,1729,1730,7,10,0,0,1730,1731,7,9,0,0,1731,1732,7,14,0,0,1732,122,1,0,0,0,1733,1734,7,12,0,0,1734,1735,7,17,0,0,1735,1736,7,9,0,0,1736,1737,7,16,0,0,1737,1738,7,17,0,0,1738,1739,7,7,0,0,1739,1740,7,14,0,0,1740,1741,7,16,0,0,1741,124,1,0,0,0,1742,1743,7,12,0,0,1743,1744,7,19,0,0,1744,126,1,0,0,0,1745,1746,7,10,0,0,1746,1747,7,6,0,0,1747,1748,7,9,0,0,1748,1749,7,10,0,0,1749,128,1,0,0,0,1750,1751,7,10,0,0,1751,1752,7,26,0,0,1752,1753,7,14,0,0,1753,1754,7,10,0,0,1754,1755,7,24,0,0,1755,1756,7,16,0,0,1756,130,1,0,0,0,1757,1758,7,25,0,0,1758,1759,7,5,0,0,1759,1760,7,6,0,0,1760,1761,7,9,0,0,1761,1762,7,10,0,0,1762,132,1,0,0,0,1763,1764,7,25,0,0,1764,1765,7,10,0,0,1765,1766,7,16,0,0,1766,1767,7,14,0,0,1767,1768,7,20,0,0,1768,134,1,0,0,0,1769,1770,7,25,0,0,1770,1771,7,19,0,0,1771,1772,7,13,0,0,1772,136,1,0,0,0,1773,1774,7,25,0,0,1774,1775,7,19,0,0,1775,1776,7,13,0,0,1776,1777,7,10,0,0,1777,1778,7,17,0,0,1778,1779,7,23,0,0,1779,1780,7,7,0,0,1780,138,1,0,0,0,1781,1782,7,25,0,0,1782,1783,7,13,0,0,1783,1784,7,19,0,0,1784,1785,7,15,0,0,1785,140,1,0,0,0,1786,1787,7,23,0,0,1787,1788,7,13,0,0,1788,1789,7,5,0,0,1789,1790,7,7,0,0,1790,1791,7,16,0,0,1791,142,1,0,0,0,1792,1793,7,23,0,0,1793,1794,7,13,0,0,1794,1795,7,19,0,0,1795,1796,7,22,0,0,1796,1797,7,24,0,0,1797,144,1,0,0,0,1798,1799,7,20,0,0,1799,1800,7,5,0,0,1800,1801,7,27,0,0,1801,1802,7,17,0,0,1802,1803,7,7,0,0,1803,1804,7,23,0,0,1804,146,1,0,0,0,1805,1806,7,17,0,0,1806,1807,7,7,0,0,1807,148,1,0,0,0,1808,1809,7,17,0,0,1809,1810,7,7,0,0,1810,1811,7,17,0,0,1811,1812,7,16,0,0,1812,1813,7,17,0,0,1813,1814,7,5,0,0,1814,1815,7,6,0,0,1815,1816,7,6,0,0,1816,1817,7,8,0,0,1817,150,1,0,0,0,1818,1819,7,17,0,0,1819,1820,7,7,0,0,1820,1821,7,16,0,0,1821,1822,7,10,0,0,1822,1823,7,13,0,0,1823,1824,7,9,0,0,1824,1825,7,10,0,0,1825,1826,7,14,0,0,1826,1827,7,16,0,0,1827,152,1,0,0,0,1828,1829,7,17,0,0,1829,1830,7,7,0,0,1830,1831,7,16,0,0,1831,1832,7,19,0,0,1832,154,1,0,0,0,1833,1834,7,6,0,0,1834,1835,7,5,0,0,1835,1836,7,16,0,0,1836,1837,7,10,0,0,1837,1838,7,13,0,0,1838,1839,7,5,0,0,1839,1840,7,6,0,0,1840,156,1,0,0,0,1841,1842,7,6,0,0,1842,1843,7,10,0,0,1843,1844,7,5,0,0,1844,1845,7,12,0,0,1845,1846,7,17,0,0,1846,1847,7,7,0,0,1847,1848,7,23,0,0,1848,158,1,0,0,0,1849,1850,7,6,0,0,1850,1851,7,17,0,0,1851,1852,7,15,0,0,1852,1853,7,17,0,0,1853,1854,7,16,0,0,1854,160,1,0,0,0,1855,1856,7,6,0,0,1856,1857,7,19,0,0,1857,1858,7,14,0,0,1858,1859,7,5,0,0,1859,1860,7,6,0,0,1860,1861,7,16,0,0,1861,1862,7,17,0,0,1862,1863,7,15,0,0,1863,1864,7,10,0,0,1864,162,1,0,0,0,1865,1866,7,6,0,0,1866,1867,7,19,0,0,1867,1868,7,14,0,0,1868,1869,7,5,0,0,1869,1870,7,6,0,0,1870,1871,7,16,0,0,1871,1872,7,17,0,0,1872,1873,7,15,0,0,1873,1874,7,10,0,0,1874,1875,7,9,0,0,1875,1876,7,16,0,0,1876,1877,7,5,0,0,1877,1878,7,15,0,0,1878,1879,7,24,0,0,1879,164,1,0,0,0,1880,1881,7,7,0,0,1881,1882,7,19,0,0,1882,1883,7,16,0,0,1883,166,1,0,0,0,1884,1885,7,7,0,0,1885,1886,7,22,0,0,1886,1887,7,6,0,0,1887,1888,7,6,0,0,1888,168,1,0,0,0,1889,1890,7,19,0,0,1890,1891,7,25,0,0,1891,1892,7,25,0,0,1892,1893,7,9,0,0,1893,1894,7,10,0,0,1894,1895,7,16,0,0,1895,170,1,0,0,0,1896,1897,7,19,0,0,1897,1898,7,7,0,0,1898,172,1,0,0,0,1899,1900,7,19,0,0,1900,1901,7,7,0,0,1901,1902,7,6,0,0,1902,1903,7,8,0,0,1903,174,1,0,0,0,1904,1905,7,19,0,0,1905,1906,7,13,0,0,1906,176,1,0,0,0,1907,1908,7,19,0,0,1908,1909,7,13,0,0,1909,1910,7,12,0,0,1910,1911,7,10,0,0,1911,1912,7,13,0,0,1912,178,1,0,0,0,1913,1914,7,24,0,0,1914,1915,7,6,0,0,1915,1916,7,5,0,0,1916,1917,7,14,0,0,1917,1918,7,17,0,0,1918,1919,7,7,0,0,1919,1920,7,23,0,0,1920,180,1,0,0,0,1921,1922,7,24,0,0,1922,1923,7,13,0,0,1923,1924,7,17,0,0,1924,1925,7,15,0,0,1925,1926,7,5,0,0,1926,1927,7,13,0,0,1927,1928,7,8,0,0,1928,182,1,0,0,0,1929,1930,7,13,0,0,1930,1931,7,10,0,0,1931,1932,7,25,0,0,1932,1933,7,10,0,0,1933,1934,7,13,0,0,1934,1935,7,10,0,0,1935,1936,7,7,0,0,1936,1937,7,14,0,0,1937,1938,7,10,0,0,1938,1939,7,9,0,0,1939,184,1,0,0,0,1940,1941,7,13,0,0,1941,1942,7,10,0,0,1942,1943,7,16,0,0,1943,1944,7,22,0,0,1944,1945,7,13,0,0,1945,1946,7,7,0,0,1946,1947,7,17,0,0,1947,1948,7,7,0,0,1948,1949,7,23,0,0,1949,186,1,0,0,0,1950,1951,7,9,0,0,1951,1952,7,10,0,0,1952,1953,7,6,0,0,1953,1954,7,10,0,0,1954,1955,7,14,0,0,1955,1956,7,16,0,0,1956,188,1,0,0,0,1957,1958,7,9,0,0,1958,1959,7,10,0,0,1959,1960,7,9,0,0,1960,1961,7,9,0,0,1961,1962,7,17,0,0,1962,1963,7,19,0,0,1963,1964,7,7,0,0,1964,1965,5,95,0,0,1965,1966,7,22,0,0,1966,1967,7,9,0,0,1967,1968,7,10,0,0,1968,1969,7,13,0,0,1969,190,1,0,0,0,1970,1971,7,9,0,0,1971,1972,7,19,0,0,1972,1973,7,15,0,0,1973,1974,7,10,0,0,1974,192,1,0,0,0,1975,1976,7,9,0,0,1976,1977,7,8,0,0,1977,1978,7,15,0,0,1978,1979,7,15,0,0,1979,1980,7,10,0,0,1980,1981,7,16,0,0,1981,1982,7,13,0,0,1982,1983,7,17,0,0,1983,1984,7,14,0,0,1984,194,1,0,0,0,1985,1986,7,16,0,0,1986,1987,7,5,0,0,1987,1988,7,18,0,0,1988,1989,7,6,0,0,1989,1990,7,10,0,0,1990,196,1,0,0,0,1991,1992,7,16,0,0,1992,1993,7,20,0,0,1993,1994,7,10,0,0,1994,1995,7,7,0,0,1995,198,1,0,0,0,1996,1997,7,16,0,0,1997,1998,7,19,0,0,1998,200,1,0,0,0,1999,2e3,7,16,0,0,2e3,2001,7,13,0,0,2001,2002,7,5,0,0,2002,2003,7,17,0,0,2003,2004,7,6,0,0,2004,2005,7,17,0,0,2005,2006,7,7,0,0,2006,2007,7,23,0,0,2007,202,1,0,0,0,2008,2009,7,16,0,0,2009,2010,7,13,0,0,2010,2011,7,22,0,0,2011,2012,7,10,0,0,2012,204,1,0,0,0,2013,2014,7,22,0,0,2014,2015,7,7,0,0,2015,2016,7,17,0,0,2016,2017,7,19,0,0,2017,2018,7,7,0,0,2018,206,1,0,0,0,2019,2020,7,22,0,0,2020,2021,7,7,0,0,2021,2022,7,17,0,0,2022,2023,7,28,0,0,2023,2024,7,22,0,0,2024,2025,7,10,0,0,2025,208,1,0,0,0,2026,2027,7,22,0,0,2027,2028,7,9,0,0,2028,2029,7,10,0,0,2029,2030,7,13,0,0,2030,210,1,0,0,0,2031,2032,7,22,0,0,2032,2033,7,9,0,0,2033,2034,7,17,0,0,2034,2035,7,7,0,0,2035,2036,7,23,0,0,2036,212,1,0,0,0,2037,2038,7,27,0,0,2038,2039,7,5,0,0,2039,2040,7,13,0,0,2040,2041,7,17,0,0,2041,2042,7,5,0,0,2042,2043,7,12,0,0,2043,2044,7,17,0,0,2044,2045,7,14,0,0,2045,214,1,0,0,0,2046,2047,7,29,0,0,2047,2048,7,20,0,0,2048,2049,7,10,0,0,2049,2050,7,7,0,0,2050,216,1,0,0,0,2051,2052,7,29,0,0,2052,2053,7,20,0,0,2053,2054,7,10,0,0,2054,2055,7,13,0,0,2055,2056,7,10,0,0,2056,218,1,0,0,0,2057,2058,7,29,0,0,2058,2059,7,17,0,0,2059,2060,7,7,0,0,2060,2061,7,12,0,0,2061,2062,7,19,0,0,2062,2063,7,29,0,0,2063,220,1,0,0,0,2064,2065,7,29,0,0,2065,2066,7,17,0,0,2066,2067,7,16,0,0,2067,2068,7,20,0,0,2068,222,1,0,0,0,2069,2070,7,5,0,0,2070,2071,7,22,0,0,2071,2072,7,16,0,0,2072,2073,7,20,0,0,2073,2074,7,19,0,0,2074,2075,7,13,0,0,2075,2076,7,17,0,0,2076,2077,7,11,0,0,2077,2078,7,5,0,0,2078,2079,7,16,0,0,2079,2080,7,17,0,0,2080,2081,7,19,0,0,2081,2082,7,7,0,0,2082,224,1,0,0,0,2083,2084,7,18,0,0,2084,2085,7,17,0,0,2085,2086,7,7,0,0,2086,2087,7,5,0,0,2087,2088,7,13,0,0,2088,2089,7,8,0,0,2089,226,1,0,0,0,2090,2091,7,14,0,0,2091,2092,7,19,0,0,2092,2093,7,6,0,0,2093,2094,7,6,0,0,2094,2095,7,5,0,0,2095,2096,7,16,0,0,2096,2097,7,17,0,0,2097,2098,7,19,0,0,2098,2099,7,7,0,0,2099,228,1,0,0,0,2100,2101,7,14,0,0,2101,2102,7,19,0,0,2102,2103,7,7,0,0,2103,2104,7,14,0,0,2104,2105,7,22,0,0,2105,2106,7,13,0,0,2106,2107,7,13,0,0,2107,2108,7,10,0,0,2108,2109,7,7,0,0,2109,2110,7,16,0,0,2110,2111,7,6,0,0,2111,2112,7,8,0,0,2112,230,1,0,0,0,2113,2114,7,14,0,0,2114,2115,7,13,0,0,2115,2116,7,19,0,0,2116,2117,7,9,0,0,2117,2118,7,9,0,0,2118,232,1,0,0,0,2119,2120,7,14,0,0,2120,2121,7,22,0,0,2121,2122,7,13,0,0,2122,2123,7,13,0,0,2123,2124,7,10,0,0,2124,2125,7,7,0,0,2125,2126,7,16,0,0,2126,2127,5,95,0,0,2127,2128,7,9,0,0,2128,2129,7,14,0,0,2129,2130,7,20,0,0,2130,2131,7,10,0,0,2131,2132,7,15,0,0,2132,2133,7,5,0,0,2133,234,1,0,0,0,2134,2135,7,25,0,0,2135,2136,7,13,0,0,2136,2137,7,10,0,0,2137,2138,7,10,0,0,2138,2139,7,11,0,0,2139,2140,7,10,0,0,2140,236,1,0,0,0,2141,2142,7,25,0,0,2142,2143,7,22,0,0,2143,2144,7,6,0,0,2144,2145,7,6,0,0,2145,238,1,0,0,0,2146,2147,7,17,0,0,2147,2148,7,6,0,0,2148,2149,7,17,0,0,2149,2150,7,21,0,0,2150,2151,7,10,0,0,2151,240,1,0,0,0,2152,2153,7,17,0,0,2153,2154,7,7,0,0,2154,2155,7,7,0,0,2155,2156,7,10,0,0,2156,2157,7,13,0,0,2157,242,1,0,0,0,2158,2159,7,17,0,0,2159,2160,7,9,0,0,2160,244,1,0,0,0,2161,2162,7,17,0,0,2162,2163,7,9,0,0,2163,2164,7,7,0,0,2164,2165,7,22,0,0,2165,2166,7,6,0,0,2166,2167,7,6,0,0,2167,246,1,0,0,0,2168,2169,7,30,0,0,2169,2170,7,19,0,0,2170,2171,7,17,0,0,2171,2172,7,7,0,0,2172,248,1,0,0,0,2173,2174,7,6,0,0,2174,2175,7,10,0,0,2175,2176,7,25,0,0,2176,2177,7,16,0,0,2177,250,1,0,0,0,2178,2179,7,6,0,0,2179,2180,7,17,0,0,2180,2181,7,21,0,0,2181,2182,7,10,0,0,2182,252,1,0,0,0,2183,2184,7,7,0,0,2184,2185,7,5,0,0,2185,2186,7,16,0,0,2186,2187,7,22,0,0,2187,2188,7,13,0,0,2188,2189,7,5,0,0,2189,2190,7,6,0,0,2190,254,1,0,0,0,2191,2192,7,7,0,0,2192,2193,7,19,0,0,2193,2194,7,16,0,0,2194,2195,7,7,0,0,2195,2196,7,22,0,0,2196,2197,7,6,0,0,2197,2198,7,6,0,0,2198,256,1,0,0,0,2199,2200,7,19,0,0,2200,2201,7,22,0,0,2201,2202,7,16,0,0,2202,2203,7,10,0,0,2203,2204,7,13,0,0,2204,258,1,0,0,0,2205,2206,7,19,0,0,2206,2207,7,27,0,0,2207,2208,7,10,0,0,2208,2209,7,13,0,0,2209,260,1,0,0,0,2210,2211,7,19,0,0,2211,2212,7,27,0,0,2212,2213,7,10,0,0,2213,2214,7,13,0,0,2214,2215,7,6,0,0,2215,2216,7,5,0,0,2216,2217,7,24,0,0,2217,2218,7,9,0,0,2218,262,1,0,0,0,2219,2220,7,13,0,0,2220,2221,7,17,0,0,2221,2222,7,23,0,0,2222,2223,7,20,0,0,2223,2224,7,16,0,0,2224,264,1,0,0,0,2225,2226,7,9,0,0,2226,2227,7,17,0,0,2227,2228,7,15,0,0,2228,2229,7,17,0,0,2229,2230,7,6,0,0,2230,2231,7,5,0,0,2231,2232,7,13,0,0,2232,266,1,0,0,0,2233,2234,7,27,0,0,2234,2235,7,10,0,0,2235,2236,7,13,0,0,2236,2237,7,18,0,0,2237,2238,7,19,0,0,2238,2239,7,9,0,0,2239,2240,7,10,0,0,2240,268,1,0,0,0,2241,2242,7,5,0,0,2242,2243,7,18,0,0,2243,2244,7,19,0,0,2244,2245,7,13,0,0,2245,2246,7,16,0,0,2246,270,1,0,0,0,2247,2248,7,5,0,0,2248,2249,7,18,0,0,2249,2250,7,9,0,0,2250,2251,7,19,0,0,2251,2252,7,6,0,0,2252,2253,7,22,0,0,2253,2254,7,16,0,0,2254,2255,7,10,0,0,2255,272,1,0,0,0,2256,2257,7,5,0,0,2257,2258,7,14,0,0,2258,2259,7,14,0,0,2259,2260,7,10,0,0,2260,2261,7,9,0,0,2261,2262,7,9,0,0,2262,274,1,0,0,0,2263,2264,7,5,0,0,2264,2265,7,14,0,0,2265,2266,7,16,0,0,2266,2267,7,17,0,0,2267,2268,7,19,0,0,2268,2269,7,7,0,0,2269,276,1,0,0,0,2270,2271,7,5,0,0,2271,2272,7,12,0,0,2272,2273,7,12,0,0,2273,278,1,0,0,0,2274,2275,7,5,0,0,2275,2276,7,12,0,0,2276,2277,7,15,0,0,2277,2278,7,17,0,0,2278,2279,7,7,0,0,2279,280,1,0,0,0,2280,2281,7,5,0,0,2281,2282,7,25,0,0,2282,2283,7,16,0,0,2283,2284,7,10,0,0,2284,2285,7,13,0,0,2285,282,1,0,0,0,2286,2287,7,5,0,0,2287,2288,7,23,0,0,2288,2289,7,23,0,0,2289,2290,7,13,0,0,2290,2291,7,10,0,0,2291,2292,7,23,0,0,2292,2293,7,5,0,0,2293,2294,7,16,0,0,2294,2295,7,10,0,0,2295,284,1,0,0,0,2296,2297,7,5,0,0,2297,2298,7,6,0,0,2298,2299,7,9,0,0,2299,2300,7,19,0,0,2300,286,1,0,0,0,2301,2302,7,5,0,0,2302,2303,7,6,0,0,2303,2304,7,16,0,0,2304,2305,7,10,0,0,2305,2306,7,13,0,0,2306,288,1,0,0,0,2307,2308,7,5,0,0,2308,2309,7,6,0,0,2309,2310,7,29,0,0,2310,2311,7,5,0,0,2311,2312,7,8,0,0,2312,2313,7,9,0,0,2313,290,1,0,0,0,2314,2315,7,5,0,0,2315,2316,7,9,0,0,2316,2317,7,9,0,0,2317,2318,7,10,0,0,2318,2319,7,13,0,0,2319,2320,7,16,0,0,2320,2321,7,17,0,0,2321,2322,7,19,0,0,2322,2323,7,7,0,0,2323,292,1,0,0,0,2324,2325,7,5,0,0,2325,2326,7,9,0,0,2326,2327,7,9,0,0,2327,2328,7,17,0,0,2328,2329,7,23,0,0,2329,2330,7,7,0,0,2330,2331,7,15,0,0,2331,2332,7,10,0,0,2332,2333,7,7,0,0,2333,2334,7,16,0,0,2334,294,1,0,0,0,2335,2336,7,5,0,0,2336,2337,7,16,0,0,2337,296,1,0,0,0,2338,2339,7,5,0,0,2339,2340,7,16,0,0,2340,2341,7,16,0,0,2341,2342,7,13,0,0,2342,2343,7,17,0,0,2343,2344,7,18,0,0,2344,2345,7,22,0,0,2345,2346,7,16,0,0,2346,2347,7,10,0,0,2347,298,1,0,0,0,2348,2349,7,18,0,0,2349,2350,7,5,0,0,2350,2351,7,14,0,0,2351,2352,7,21,0,0,2352,2353,7,29,0,0,2353,2354,7,5,0,0,2354,2355,7,13,0,0,2355,2356,7,12,0,0,2356,300,1,0,0,0,2357,2358,7,18,0,0,2358,2359,7,10,0,0,2359,2360,7,25,0,0,2360,2361,7,19,0,0,2361,2362,7,13,0,0,2362,2363,7,10,0,0,2363,302,1,0,0,0,2364,2365,7,18,0,0,2365,2366,7,10,0,0,2366,2367,7,23,0,0,2367,2368,7,17,0,0,2368,2369,7,7,0,0,2369,304,1,0,0,0,2370,2371,7,18,0,0,2371,2372,7,8,0,0,2372,306,1,0,0,0,2373,2374,7,14,0,0,2374,2375,7,5,0,0,2375,2376,7,14,0,0,2376,2377,7,20,0,0,2377,2378,7,10,0,0,2378,308,1,0,0,0,2379,2380,7,14,0,0,2380,2381,7,5,0,0,2381,2382,7,6,0,0,2382,2383,7,6,0,0,2383,2384,7,10,0,0,2384,2385,7,12,0,0,2385,310,1,0,0,0,2386,2387,7,14,0,0,2387,2388,7,5,0,0,2388,2389,7,9,0,0,2389,2390,7,14,0,0,2390,2391,7,5,0,0,2391,2392,7,12,0,0,2392,2393,7,10,0,0,2393,312,1,0,0,0,2394,2395,7,14,0,0,2395,2396,7,5,0,0,2396,2397,7,9,0,0,2397,2398,7,14,0,0,2398,2399,7,5,0,0,2399,2400,7,12,0,0,2400,2401,7,10,0,0,2401,2402,7,12,0,0,2402,314,1,0,0,0,2403,2404,7,14,0,0,2404,2405,7,5,0,0,2405,2406,7,16,0,0,2406,2407,7,5,0,0,2407,2408,7,6,0,0,2408,2409,7,19,0,0,2409,2410,7,23,0,0,2410,316,1,0,0,0,2411,2412,7,14,0,0,2412,2413,7,20,0,0,2413,2414,7,5,0,0,2414,2415,7,17,0,0,2415,2416,7,7,0,0,2416,318,1,0,0,0,2417,2418,7,14,0,0,2418,2419,7,20,0,0,2419,2420,7,5,0,0,2420,2421,7,13,0,0,2421,2422,7,5,0,0,2422,2423,7,14,0,0,2423,2424,7,16,0,0,2424,2425,7,10,0,0,2425,2426,7,13,0,0,2426,2427,7,17,0,0,2427,2428,7,9,0,0,2428,2429,7,16,0,0,2429,2430,7,17,0,0,2430,2431,7,14,0,0,2431,2432,7,9,0,0,2432,320,1,0,0,0,2433,2434,7,14,0,0,2434,2435,7,20,0,0,2435,2436,7,10,0,0,2436,2437,7,14,0,0,2437,2438,7,21,0,0,2438,2439,7,24,0,0,2439,2440,7,19,0,0,2440,2441,7,17,0,0,2441,2442,7,7,0,0,2442,2443,7,16,0,0,2443,322,1,0,0,0,2444,2445,7,14,0,0,2445,2446,7,6,0,0,2446,2447,7,5,0,0,2447,2448,7,9,0,0,2448,2449,7,9,0,0,2449,324,1,0,0,0,2450,2451,7,14,0,0,2451,2452,7,6,0,0,2452,2453,7,19,0,0,2453,2454,7,9,0,0,2454,2455,7,10,0,0,2455,326,1,0,0,0,2456,2457,7,14,0,0,2457,2458,7,6,0,0,2458,2459,7,22,0,0,2459,2460,7,9,0,0,2460,2461,7,16,0,0,2461,2462,7,10,0,0,2462,2463,7,13,0,0,2463,328,1,0,0,0,2464,2465,7,14,0,0,2465,2466,7,19,0,0,2466,2467,7,15,0,0,2467,2468,7,15,0,0,2468,2469,7,10,0,0,2469,2470,7,7,0,0,2470,2471,7,16,0,0,2471,330,1,0,0,0,2472,2473,7,14,0,0,2473,2474,7,19,0,0,2474,2475,7,15,0,0,2475,2476,7,15,0,0,2476,2477,7,10,0,0,2477,2478,7,7,0,0,2478,2479,7,16,0,0,2479,2480,7,9,0,0,2480,332,1,0,0,0,2481,2482,7,14,0,0,2482,2483,7,19,0,0,2483,2484,7,15,0,0,2484,2485,7,15,0,0,2485,2486,7,17,0,0,2486,2487,7,16,0,0,2487,334,1,0,0,0,2488,2489,7,14,0,0,2489,2490,7,19,0,0,2490,2491,7,15,0,0,2491,2492,7,15,0,0,2492,2493,7,17,0,0,2493,2494,7,16,0,0,2494,2495,7,16,0,0,2495,2496,7,10,0,0,2496,2497,7,12,0,0,2497,336,1,0,0,0,2498,2499,7,14,0,0,2499,2500,7,19,0,0,2500,2501,7,7,0,0,2501,2502,7,25,0,0,2502,2503,7,17,0,0,2503,2504,7,23,0,0,2504,2505,7,22,0,0,2505,2506,7,13,0,0,2506,2507,7,5,0,0,2507,2508,7,16,0,0,2508,2509,7,17,0,0,2509,2510,7,19,0,0,2510,2511,7,7,0,0,2511,338,1,0,0,0,2512,2513,7,14,0,0,2513,2514,7,19,0,0,2514,2515,7,7,0,0,2515,2516,7,7,0,0,2516,2517,7,10,0,0,2517,2518,7,14,0,0,2518,2519,7,16,0,0,2519,2520,7,17,0,0,2520,2521,7,19,0,0,2521,2522,7,7,0,0,2522,340,1,0,0,0,2523,2524,7,14,0,0,2524,2525,7,19,0,0,2525,2526,7,7,0,0,2526,2527,7,9,0,0,2527,2528,7,16,0,0,2528,2529,7,13,0,0,2529,2530,7,5,0,0,2530,2531,7,17,0,0,2531,2532,7,7,0,0,2532,2533,7,16,0,0,2533,2534,7,9,0,0,2534,342,1,0,0,0,2535,2536,7,14,0,0,2536,2537,7,19,0,0,2537,2538,7,7,0,0,2538,2539,7,16,0,0,2539,2540,7,10,0,0,2540,2541,7,7,0,0,2541,2542,7,16,0,0,2542,344,1,0,0,0,2543,2544,7,14,0,0,2544,2545,7,19,0,0,2545,2546,7,7,0,0,2546,2547,7,16,0,0,2547,2548,7,17,0,0,2548,2549,7,7,0,0,2549,2550,7,22,0,0,2550,2551,7,10,0,0,2551,346,1,0,0,0,2552,2553,7,14,0,0,2553,2554,7,19,0,0,2554,2555,7,7,0,0,2555,2556,7,27,0,0,2556,2557,7,10,0,0,2557,2558,7,13,0,0,2558,2559,7,9,0,0,2559,2560,7,17,0,0,2560,2561,7,19,0,0,2561,2562,7,7,0,0,2562,348,1,0,0,0,2563,2564,7,14,0,0,2564,2565,7,19,0,0,2565,2566,7,24,0,0,2566,2567,7,8,0,0,2567,350,1,0,0,0,2568,2569,7,14,0,0,2569,2570,7,19,0,0,2570,2571,7,9,0,0,2571,2572,7,16,0,0,2572,352,1,0,0,0,2573,2574,7,14,0,0,2574,2575,7,9,0,0,2575,2576,7,27,0,0,2576,354,1,0,0,0,2577,2578,7,14,0,0,2578,2579,7,22,0,0,2579,2580,7,13,0,0,2580,2581,7,9,0,0,2581,2582,7,19,0,0,2582,2583,7,13,0,0,2583,356,1,0,0,0,2584,2585,7,14,0,0,2585,2586,7,8,0,0,2586,2587,7,14,0,0,2587,2588,7,6,0,0,2588,2589,7,10,0,0,2589,358,1,0,0,0,2590,2591,7,12,0,0,2591,2592,7,5,0,0,2592,2593,7,16,0,0,2593,2594,7,5,0,0,2594,360,1,0,0,0,2595,2596,7,12,0,0,2596,2597,7,5,0,0,2597,2598,7,16,0,0,2598,2599,7,5,0,0,2599,2600,7,18,0,0,2600,2601,7,5,0,0,2601,2602,7,9,0,0,2602,2603,7,10,0,0,2603,362,1,0,0,0,2604,2605,7,12,0,0,2605,2606,7,5,0,0,2606,2607,7,8,0,0,2607,364,1,0,0,0,2608,2609,7,12,0,0,2609,2610,7,10,0,0,2610,2611,7,5,0,0,2611,2612,7,6,0,0,2612,2613,7,6,0,0,2613,2614,7,19,0,0,2614,2615,7,14,0,0,2615,2616,7,5,0,0,2616,2617,7,16,0,0,2617,2618,7,10,0,0,2618,366,1,0,0,0,2619,2620,7,12,0,0,2620,2621,7,10,0,0,2621,2622,7,14,0,0,2622,2623,7,6,0,0,2623,2624,7,5,0,0,2624,2625,7,13,0,0,2625,2626,7,10,0,0,2626,368,1,0,0,0,2627,2628,7,12,0,0,2628,2629,7,10,0,0,2629,2630,7,25,0,0,2630,2631,7,5,0,0,2631,2632,7,22,0,0,2632,2633,7,6,0,0,2633,2634,7,16,0,0,2634,2635,7,9,0,0,2635,370,1,0,0,0,2636,2637,7,12,0,0,2637,2638,7,10,0,0,2638,2639,7,25,0,0,2639,2640,7,10,0,0,2640,2641,7,13,0,0,2641,2642,7,13,0,0,2642,2643,7,10,0,0,2643,2644,7,12,0,0,2644,372,1,0,0,0,2645,2646,7,12,0,0,2646,2647,7,10,0,0,2647,2648,7,25,0,0,2648,2649,7,17,0,0,2649,2650,7,7,0,0,2650,2651,7,10,0,0,2651,2652,7,13,0,0,2652,374,1,0,0,0,2653,2654,7,12,0,0,2654,2655,7,10,0,0,2655,2656,7,6,0,0,2656,2657,7,10,0,0,2657,2658,7,16,0,0,2658,2659,7,10,0,0,2659,376,1,0,0,0,2660,2661,7,12,0,0,2661,2662,7,10,0,0,2662,2663,7,6,0,0,2663,2664,7,17,0,0,2664,2665,7,15,0,0,2665,2666,7,17,0,0,2666,2667,7,16,0,0,2667,2668,7,10,0,0,2668,2669,7,13,0,0,2669,378,1,0,0,0,2670,2671,7,12,0,0,2671,2672,7,10,0,0,2672,2673,7,6,0,0,2673,2674,7,17,0,0,2674,2675,7,15,0,0,2675,2676,7,17,0,0,2676,2677,7,16,0,0,2677,2678,7,10,0,0,2678,2679,7,13,0,0,2679,2680,7,9,0,0,2680,380,1,0,0,0,2681,2682,7,12,0,0,2682,2683,7,17,0,0,2683,2684,7,14,0,0,2684,2685,7,16,0,0,2685,2686,7,17,0,0,2686,2687,7,19,0,0,2687,2688,7,7,0,0,2688,2689,7,5,0,0,2689,2690,7,13,0,0,2690,2691,7,8,0,0,2691,382,1,0,0,0,2692,2693,7,12,0,0,2693,2694,7,17,0,0,2694,2695,7,9,0,0,2695,2696,7,5,0,0,2696,2697,7,18,0,0,2697,2698,7,6,0,0,2698,2699,7,10,0,0,2699,384,1,0,0,0,2700,2701,7,12,0,0,2701,2702,7,17,0,0,2702,2703,7,9,0,0,2703,2704,7,14,0,0,2704,2705,7,5,0,0,2705,2706,7,13,0,0,2706,2707,7,12,0,0,2707,386,1,0,0,0,2708,2709,7,12,0,0,2709,2710,7,19,0,0,2710,2711,7,14,0,0,2711,2712,7,22,0,0,2712,2713,7,15,0,0,2713,2714,7,10,0,0,2714,2715,7,7,0,0,2715,2716,7,16,0,0,2716,388,1,0,0,0,2717,2718,7,12,0,0,2718,2719,7,19,0,0,2719,2720,7,15,0,0,2720,2721,7,5,0,0,2721,2722,7,17,0,0,2722,2723,7,7,0,0,2723,390,1,0,0,0,2724,2725,7,12,0,0,2725,2726,7,19,0,0,2726,2727,7,22,0,0,2727,2728,7,18,0,0,2728,2729,7,6,0,0,2729,2730,7,10,0,0,2730,392,1,0,0,0,2731,2732,7,12,0,0,2732,2733,7,13,0,0,2733,2734,7,19,0,0,2734,2735,7,24,0,0,2735,394,1,0,0,0,2736,2737,7,10,0,0,2737,2738,7,5,0,0,2738,2739,7,14,0,0,2739,2740,7,20,0,0,2740,396,1,0,0,0,2741,2742,7,10,0,0,2742,2743,7,7,0,0,2743,2744,7,5,0,0,2744,2745,7,18,0,0,2745,2746,7,6,0,0,2746,2747,7,10,0,0,2747,398,1,0,0,0,2748,2749,7,10,0,0,2749,2750,7,7,0,0,2750,2751,7,14,0,0,2751,2752,7,19,0,0,2752,2753,7,12,0,0,2753,2754,7,17,0,0,2754,2755,7,7,0,0,2755,2756,7,23,0,0,2756,400,1,0,0,0,2757,2758,7,10,0,0,2758,2759,7,7,0,0,2759,2760,7,14,0,0,2760,2761,7,13,0,0,2761,2762,7,8,0,0,2762,2763,7,24,0,0,2763,2764,7,16,0,0,2764,2765,7,10,0,0,2765,2766,7,12,0,0,2766,402,1,0,0,0,2767,2768,7,10,0,0,2768,2769,7,7,0,0,2769,2770,7,22,0,0,2770,2771,7,15,0,0,2771,404,1,0,0,0,2772,2773,7,10,0,0,2773,2774,7,9,0,0,2774,2775,7,14,0,0,2775,2776,7,5,0,0,2776,2777,7,24,0,0,2777,2778,7,10,0,0,2778,406,1,0,0,0,2779,2780,7,10,0,0,2780,2781,7,27,0,0,2781,2782,7,10,0,0,2782,2783,7,7,0,0,2783,2784,7,16,0,0,2784,408,1,0,0,0,2785,2786,7,10,0,0,2786,2787,7,26,0,0,2787,2788,7,14,0,0,2788,2789,7,6,0,0,2789,2790,7,22,0,0,2790,2791,7,12,0,0,2791,2792,7,10,0,0,2792,410,1,0,0,0,2793,2794,7,10,0,0,2794,2795,7,26,0,0,2795,2796,7,14,0,0,2796,2797,7,6,0,0,2797,2798,7,22,0,0,2798,2799,7,12,0,0,2799,2800,7,17,0,0,2800,2801,7,7,0,0,2801,2802,7,23,0,0,2802,412,1,0,0,0,2803,2804,7,10,0,0,2804,2805,7,26,0,0,2805,2806,7,14,0,0,2806,2807,7,6,0,0,2807,2808,7,22,0,0,2808,2809,7,9,0,0,2809,2810,7,17,0,0,2810,2811,7,27,0,0,2811,2812,7,10,0,0,2812,414,1,0,0,0,2813,2814,7,10,0,0,2814,2815,7,26,0,0,2815,2816,7,10,0,0,2816,2817,7,14,0,0,2817,2818,7,22,0,0,2818,2819,7,16,0,0,2819,2820,7,10,0,0,2820,416,1,0,0,0,2821,2822,7,10,0,0,2822,2823,7,26,0,0,2823,2824,7,24,0,0,2824,2825,7,6,0,0,2825,2826,7,5,0,0,2826,2827,7,17,0,0,2827,2828,7,7,0,0,2828,418,1,0,0,0,2829,2830,7,10,0,0,2830,2831,7,26,0,0,2831,2832,7,16,0,0,2832,2833,7,10,0,0,2833,2834,7,7,0,0,2834,2835,7,9,0,0,2835,2836,7,17,0,0,2836,2837,7,19,0,0,2837,2838,7,7,0,0,2838,420,1,0,0,0,2839,2840,7,10,0,0,2840,2841,7,26,0,0,2841,2842,7,16,0,0,2842,2843,7,10,0,0,2843,2844,7,13,0,0,2844,2845,7,7,0,0,2845,2846,7,5,0,0,2846,2847,7,6,0,0,2847,422,1,0,0,0,2848,2849,7,25,0,0,2849,2850,7,5,0,0,2850,2851,7,15,0,0,2851,2852,7,17,0,0,2852,2853,7,6,0,0,2853,2854,7,8,0,0,2854,424,1,0,0,0,2855,2856,7,25,0,0,2856,2857,7,17,0,0,2857,2858,7,13,0,0,2858,2859,7,9,0,0,2859,2860,7,16,0,0,2860,426,1,0,0,0,2861,2862,7,25,0,0,2862,2863,7,19,0,0,2863,2864,7,6,0,0,2864,2865,7,6,0,0,2865,2866,7,19,0,0,2866,2867,7,29,0,0,2867,2868,7,17,0,0,2868,2869,7,7,0,0,2869,2870,7,23,0,0,2870,428,1,0,0,0,2871,2872,7,25,0,0,2872,2873,7,19,0,0,2873,2874,7,13,0,0,2874,2875,7,14,0,0,2875,2876,7,10,0,0,2876,430,1,0,0,0,2877,2878,7,25,0,0,2878,2879,7,19,0,0,2879,2880,7,13,0,0,2880,2881,7,29,0,0,2881,2882,7,5,0,0,2882,2883,7,13,0,0,2883,2884,7,12,0,0,2884,432,1,0,0,0,2885,2886,7,25,0,0,2886,2887,7,22,0,0,2887,2888,7,7,0,0,2888,2889,7,14,0,0,2889,2890,7,16,0,0,2890,2891,7,17,0,0,2891,2892,7,19,0,0,2892,2893,7,7,0,0,2893,434,1,0,0,0,2894,2895,7,25,0,0,2895,2896,7,22,0,0,2896,2897,7,7,0,0,2897,2898,7,14,0,0,2898,2899,7,16,0,0,2899,2900,7,17,0,0,2900,2901,7,19,0,0,2901,2902,7,7,0,0,2902,2903,7,9,0,0,2903,436,1,0,0,0,2904,2905,7,23,0,0,2905,2906,7,6,0,0,2906,2907,7,19,0,0,2907,2908,7,18,0,0,2908,2909,7,5,0,0,2909,2910,7,6,0,0,2910,438,1,0,0,0,2911,2912,7,23,0,0,2912,2913,7,13,0,0,2913,2914,7,5,0,0,2914,2915,7,7,0,0,2915,2916,7,16,0,0,2916,2917,7,10,0,0,2917,2918,7,12,0,0,2918,440,1,0,0,0,2919,2920,7,20,0,0,2920,2921,7,5,0,0,2921,2922,7,7,0,0,2922,2923,7,12,0,0,2923,2924,7,6,0,0,2924,2925,7,10,0,0,2925,2926,7,13,0,0,2926,442,1,0,0,0,2927,2928,7,20,0,0,2928,2929,7,10,0,0,2929,2930,7,5,0,0,2930,2931,7,12,0,0,2931,2932,7,10,0,0,2932,2933,7,13,0,0,2933,444,1,0,0,0,2934,2935,7,20,0,0,2935,2936,7,19,0,0,2936,2937,7,6,0,0,2937,2938,7,12,0,0,2938,446,1,0,0,0,2939,2940,7,20,0,0,2940,2941,7,19,0,0,2941,2942,7,22,0,0,2942,2943,7,13,0,0,2943,448,1,0,0,0,2944,2945,7,17,0,0,2945,2946,7,12,0,0,2946,2947,7,10,0,0,2947,2948,7,7,0,0,2948,2949,7,16,0,0,2949,2950,7,17,0,0,2950,2951,7,16,0,0,2951,2952,7,8,0,0,2952,450,1,0,0,0,2953,2954,7,17,0,0,2954,2955,7,25,0,0,2955,452,1,0,0,0,2956,2957,7,17,0,0,2957,2958,7,15,0,0,2958,2959,7,15,0,0,2959,2960,7,10,0,0,2960,2961,7,12,0,0,2961,2962,7,17,0,0,2962,2963,7,5,0,0,2963,2964,7,16,0,0,2964,2965,7,10,0,0,2965,454,1,0,0,0,2966,2967,7,17,0,0,2967,2968,7,15,0,0,2968,2969,7,15,0,0,2969,2970,7,22,0,0,2970,2971,7,16,0,0,2971,2972,7,5,0,0,2972,2973,7,18,0,0,2973,2974,7,6,0,0,2974,2975,7,10,0,0,2975,456,1,0,0,0,2976,2977,7,17,0,0,2977,2978,7,15,0,0,2978,2979,7,24,0,0,2979,2980,7,6,0,0,2980,2981,7,17,0,0,2981,2982,7,14,0,0,2982,2983,7,17,0,0,2983,2984,7,16,0,0,2984,458,1,0,0,0,2985,2986,7,17,0,0,2986,2987,7,7,0,0,2987,2988,7,14,0,0,2988,2989,7,6,0,0,2989,2990,7,22,0,0,2990,2991,7,12,0,0,2991,2992,7,17,0,0,2992,2993,7,7,0,0,2993,2994,7,23,0,0,2994,460,1,0,0,0,2995,2996,7,17,0,0,2996,2997,7,7,0,0,2997,2998,7,14,0,0,2998,2999,7,13,0,0,2999,3e3,7,10,0,0,3e3,3001,7,15,0,0,3001,3002,7,10,0,0,3002,3003,7,7,0,0,3003,3004,7,16,0,0,3004,462,1,0,0,0,3005,3006,7,17,0,0,3006,3007,7,7,0,0,3007,3008,7,12,0,0,3008,3009,7,10,0,0,3009,3010,7,26,0,0,3010,464,1,0,0,0,3011,3012,7,17,0,0,3012,3013,7,7,0,0,3013,3014,7,12,0,0,3014,3015,7,10,0,0,3015,3016,7,26,0,0,3016,3017,7,10,0,0,3017,3018,7,9,0,0,3018,466,1,0,0,0,3019,3020,7,17,0,0,3020,3021,7,7,0,0,3021,3022,7,20,0,0,3022,3023,7,10,0,0,3023,3024,7,13,0,0,3024,3025,7,17,0,0,3025,3026,7,16,0,0,3026,468,1,0,0,0,3027,3028,7,17,0,0,3028,3029,7,7,0,0,3029,3030,7,20,0,0,3030,3031,7,10,0,0,3031,3032,7,13,0,0,3032,3033,7,17,0,0,3033,3034,7,16,0,0,3034,3035,7,9,0,0,3035,470,1,0,0,0,3036,3037,7,17,0,0,3037,3038,7,7,0,0,3038,3039,7,6,0,0,3039,3040,7,17,0,0,3040,3041,7,7,0,0,3041,3042,7,10,0,0,3042,472,1,0,0,0,3043,3044,7,17,0,0,3044,3045,7,7,0,0,3045,3046,7,9,0,0,3046,3047,7,10,0,0,3047,3048,7,7,0,0,3048,3049,7,9,0,0,3049,3050,7,17,0,0,3050,3051,7,16,0,0,3051,3052,7,17,0,0,3052,3053,7,27,0,0,3053,3054,7,10,0,0,3054,474,1,0,0,0,3055,3056,7,17,0,0,3056,3057,7,7,0,0,3057,3058,7,9,0,0,3058,3059,7,10,0,0,3059,3060,7,13,0,0,3060,3061,7,16,0,0,3061,476,1,0,0,0,3062,3063,7,17,0,0,3063,3064,7,7,0,0,3064,3065,7,9,0,0,3065,3066,7,16,0,0,3066,3067,7,10,0,0,3067,3068,7,5,0,0,3068,3069,7,12,0,0,3069,478,1,0,0,0,3070,3071,7,17,0,0,3071,3072,7,7,0,0,3072,3073,7,27,0,0,3073,3074,7,19,0,0,3074,3075,7,21,0,0,3075,3076,7,10,0,0,3076,3077,7,13,0,0,3077,480,1,0,0,0,3078,3079,7,17,0,0,3079,3080,7,9,0,0,3080,3081,7,19,0,0,3081,3082,7,6,0,0,3082,3083,7,5,0,0,3083,3084,7,16,0,0,3084,3085,7,17,0,0,3085,3086,7,19,0,0,3086,3087,7,7,0,0,3087,482,1,0,0,0,3088,3089,7,21,0,0,3089,3090,7,10,0,0,3090,3091,7,8,0,0,3091,484,1,0,0,0,3092,3093,7,6,0,0,3093,3094,7,5,0,0,3094,3095,7,18,0,0,3095,3096,7,10,0,0,3096,3097,7,6,0,0,3097,486,1,0,0,0,3098,3099,7,6,0,0,3099,3100,7,5,0,0,3100,3101,7,7,0,0,3101,3102,7,23,0,0,3102,3103,7,22,0,0,3103,3104,7,5,0,0,3104,3105,7,23,0,0,3105,3106,7,10,0,0,3106,488,1,0,0,0,3107,3108,7,6,0,0,3108,3109,7,5,0,0,3109,3110,7,13,0,0,3110,3111,7,23,0,0,3111,3112,7,10,0,0,3112,490,1,0,0,0,3113,3114,7,6,0,0,3114,3115,7,5,0,0,3115,3116,7,9,0,0,3116,3117,7,16,0,0,3117,492,1,0,0,0,3118,3119,7,6,0,0,3119,3120,7,10,0,0,3120,3121,7,5,0,0,3121,3122,7,21,0,0,3122,3123,7,24,0,0,3123,3124,7,13,0,0,3124,3125,7,19,0,0,3125,3126,7,19,0,0,3126,3127,7,25,0,0,3127,494,1,0,0,0,3128,3129,7,6,0,0,3129,3130,7,10,0,0,3130,3131,7,27,0,0,3131,3132,7,10,0,0,3132,3133,7,6,0,0,3133,496,1,0,0,0,3134,3135,7,6,0,0,3135,3136,7,17,0,0,3136,3137,7,9,0,0,3137,3138,7,16,0,0,3138,3139,7,10,0,0,3139,3140,7,7,0,0,3140,498,1,0,0,0,3141,3142,7,6,0,0,3142,3143,7,19,0,0,3143,3144,7,5,0,0,3144,3145,7,12,0,0,3145,500,1,0,0,0,3146,3147,7,6,0,0,3147,3148,7,19,0,0,3148,3149,7,14,0,0,3149,3150,7,5,0,0,3150,3151,7,6,0,0,3151,502,1,0,0,0,3152,3153,7,6,0,0,3153,3154,7,19,0,0,3154,3155,7,14,0,0,3155,3156,7,5,0,0,3156,3157,7,16,0,0,3157,3158,7,17,0,0,3158,3159,7,19,0,0,3159,3160,7,7,0,0,3160,504,1,0,0,0,3161,3162,7,6,0,0,3162,3163,7,19,0,0,3163,3164,7,14,0,0,3164,3165,7,21,0,0,3165,506,1,0,0,0,3166,3167,7,15,0,0,3167,3168,7,5,0,0,3168,3169,7,24,0,0,3169,3170,7,24,0,0,3170,3171,7,17,0,0,3171,3172,7,7,0,0,3172,3173,7,23,0,0,3173,508,1,0,0,0,3174,3175,7,15,0,0,3175,3176,7,5,0,0,3176,3177,7,16,0,0,3177,3178,7,14,0,0,3178,3179,7,20,0,0,3179,510,1,0,0,0,3180,3181,7,15,0,0,3181,3182,7,5,0,0,3182,3183,7,16,0,0,3183,3184,7,14,0,0,3184,3185,7,20,0,0,3185,3186,7,10,0,0,3186,3187,7,12,0,0,3187,512,1,0,0,0,3188,3189,7,15,0,0,3189,3190,7,5,0,0,3190,3191,7,16,0,0,3191,3192,7,10,0,0,3192,3193,7,13,0,0,3193,3194,7,17,0,0,3194,3195,7,5,0,0,3195,3196,7,6,0,0,3196,3197,7,17,0,0,3197,3198,7,11,0,0,3198,3199,7,10,0,0,3199,3200,7,12,0,0,3200,514,1,0,0,0,3201,3202,7,15,0,0,3202,3203,7,5,0,0,3203,3204,7,26,0,0,3204,3205,7,27,0,0,3205,3206,7,5,0,0,3206,3207,7,6,0,0,3207,3208,7,22,0,0,3208,3209,7,10,0,0,3209,516,1,0,0,0,3210,3211,7,15,0,0,3211,3212,7,10,0,0,3212,3213,7,13,0,0,3213,3214,7,23,0,0,3214,3215,7,10,0,0,3215,518,1,0,0,0,3216,3217,7,15,0,0,3217,3218,7,17,0,0,3218,3219,7,7,0,0,3219,3220,7,22,0,0,3220,3221,7,16,0,0,3221,3222,7,10,0,0,3222,520,1,0,0,0,3223,3224,7,15,0,0,3224,3225,7,17,0,0,3225,3226,7,7,0,0,3226,3227,7,27,0,0,3227,3228,7,5,0,0,3228,3229,7,6,0,0,3229,3230,7,22,0,0,3230,3231,7,10,0,0,3231,522,1,0,0,0,3232,3233,7,15,0,0,3233,3234,7,19,0,0,3234,3235,7,12,0,0,3235,3236,7,10,0,0,3236,524,1,0,0,0,3237,3238,7,15,0,0,3238,3239,7,19,0,0,3239,3240,7,7,0,0,3240,3241,7,16,0,0,3241,3242,7,20,0,0,3242,526,1,0,0,0,3243,3244,7,15,0,0,3244,3245,7,19,0,0,3245,3246,7,27,0,0,3246,3247,7,10,0,0,3247,528,1,0,0,0,3248,3249,7,7,0,0,3249,3250,7,5,0,0,3250,3251,7,15,0,0,3251,3252,7,10,0,0,3252,530,1,0,0,0,3253,3254,7,7,0,0,3254,3255,7,5,0,0,3255,3256,7,15,0,0,3256,3257,7,10,0,0,3257,3258,7,9,0,0,3258,532,1,0,0,0,3259,3260,7,7,0,0,3260,3261,7,10,0,0,3261,3262,7,26,0,0,3262,3263,7,16,0,0,3263,534,1,0,0,0,3264,3265,7,7,0,0,3265,3266,7,19,0,0,3266,536,1,0,0,0,3267,3268,7,7,0,0,3268,3269,7,19,0,0,3269,3270,7,16,0,0,3270,3271,7,20,0,0,3271,3272,7,17,0,0,3272,3273,7,7,0,0,3273,3274,7,23,0,0,3274,538,1,0,0,0,3275,3276,7,7,0,0,3276,3277,7,19,0,0,3277,3278,7,16,0,0,3278,3279,7,17,0,0,3279,3280,7,25,0,0,3280,3281,7,8,0,0,3281,540,1,0,0,0,3282,3283,7,7,0,0,3283,3284,7,19,0,0,3284,3285,7,29,0,0,3285,3286,7,5,0,0,3286,3287,7,17,0,0,3287,3288,7,16,0,0,3288,542,1,0,0,0,3289,3290,7,7,0,0,3290,3291,7,22,0,0,3291,3292,7,6,0,0,3292,3293,7,6,0,0,3293,3294,7,9,0,0,3294,544,1,0,0,0,3295,3296,7,19,0,0,3296,3297,7,18,0,0,3297,3298,7,30,0,0,3298,3299,7,10,0,0,3299,3300,7,14,0,0,3300,3301,7,16,0,0,3301,546,1,0,0,0,3302,3303,7,19,0,0,3303,3304,7,25,0,0,3304,548,1,0,0,0,3305,3306,7,19,0,0,3306,3307,7,25,0,0,3307,3308,7,25,0,0,3308,550,1,0,0,0,3309,3310,7,19,0,0,3310,3311,7,17,0,0,3311,3312,7,12,0,0,3312,3313,7,9,0,0,3313,552,1,0,0,0,3314,3315,7,19,0,0,3315,3316,7,24,0,0,3316,3317,7,10,0,0,3317,3318,7,13,0,0,3318,3319,7,5,0,0,3319,3320,7,16,0,0,3320,3321,7,19,0,0,3321,3322,7,13,0,0,3322,554,1,0,0,0,3323,3324,7,19,0,0,3324,3325,7,24,0,0,3325,3326,7,16,0,0,3326,3327,7,17,0,0,3327,3328,7,19,0,0,3328,3329,7,7,0,0,3329,556,1,0,0,0,3330,3331,7,19,0,0,3331,3332,7,24,0,0,3332,3333,7,16,0,0,3333,3334,7,17,0,0,3334,3335,7,19,0,0,3335,3336,7,7,0,0,3336,3337,7,9,0,0,3337,558,1,0,0,0,3338,3339,7,19,0,0,3339,3340,7,29,0,0,3340,3341,7,7,0,0,3341,3342,7,10,0,0,3342,3343,7,12,0,0,3343,560,1,0,0,0,3344,3345,7,19,0,0,3345,3346,7,29,0,0,3346,3347,7,7,0,0,3347,3348,7,10,0,0,3348,3349,7,13,0,0,3349,562,1,0,0,0,3350,3351,7,24,0,0,3351,3352,7,5,0,0,3352,3353,7,13,0,0,3353,3354,7,9,0,0,3354,3355,7,10,0,0,3355,3356,7,13,0,0,3356,564,1,0,0,0,3357,3358,7,24,0,0,3358,3359,7,5,0,0,3359,3360,7,13,0,0,3360,3361,7,16,0,0,3361,3362,7,17,0,0,3362,3363,7,5,0,0,3363,3364,7,6,0,0,3364,566,1,0,0,0,3365,3366,7,24,0,0,3366,3367,7,5,0,0,3367,3368,7,13,0,0,3368,3369,7,16,0,0,3369,3370,7,17,0,0,3370,3371,7,16,0,0,3371,3372,7,17,0,0,3372,3373,7,19,0,0,3373,3374,7,7,0,0,3374,568,1,0,0,0,3375,3376,7,24,0,0,3376,3377,7,5,0,0,3377,3378,7,9,0,0,3378,3379,7,9,0,0,3379,3380,7,17,0,0,3380,3381,7,7,0,0,3381,3382,7,23,0,0,3382,570,1,0,0,0,3383,3384,7,24,0,0,3384,3385,7,5,0,0,3385,3386,7,9,0,0,3386,3387,7,9,0,0,3387,3388,7,29,0,0,3388,3389,7,19,0,0,3389,3390,7,13,0,0,3390,3391,7,12,0,0,3391,572,1,0,0,0,3392,3393,7,24,0,0,3393,3394,7,6,0,0,3394,3395,7,5,0,0,3395,3396,7,7,0,0,3396,3397,7,9,0,0,3397,574,1,0,0,0,3398,3399,7,24,0,0,3399,3400,7,13,0,0,3400,3401,7,10,0,0,3401,3402,7,14,0,0,3402,3403,7,10,0,0,3403,3404,7,12,0,0,3404,3405,7,17,0,0,3405,3406,7,7,0,0,3406,3407,7,23,0,0,3407,576,1,0,0,0,3408,3409,7,24,0,0,3409,3410,7,13,0,0,3410,3411,7,10,0,0,3411,3412,7,24,0,0,3412,3413,7,5,0,0,3413,3414,7,13,0,0,3414,3415,7,10,0,0,3415,578,1,0,0,0,3416,3417,7,24,0,0,3417,3418,7,13,0,0,3418,3419,7,10,0,0,3419,3420,7,24,0,0,3420,3421,7,5,0,0,3421,3422,7,13,0,0,3422,3423,7,10,0,0,3423,3424,7,12,0,0,3424,580,1,0,0,0,3425,3426,7,24,0,0,3426,3427,7,13,0,0,3427,3428,7,10,0,0,3428,3429,7,9,0,0,3429,3430,7,10,0,0,3430,3431,7,13,0,0,3431,3432,7,27,0,0,3432,3433,7,10,0,0,3433,582,1,0,0,0,3434,3435,7,24,0,0,3435,3436,7,13,0,0,3436,3437,7,17,0,0,3437,3438,7,19,0,0,3438,3439,7,13,0,0,3439,584,1,0,0,0,3440,3441,7,24,0,0,3441,3442,7,13,0,0,3442,3443,7,17,0,0,3443,3444,7,27,0,0,3444,3445,7,17,0,0,3445,3446,7,6,0,0,3446,3447,7,10,0,0,3447,3448,7,23,0,0,3448,3449,7,10,0,0,3449,3450,7,9,0,0,3450,586,1,0,0,0,3451,3452,7,24,0,0,3452,3453,7,13,0,0,3453,3454,7,19,0,0,3454,3455,7,14,0,0,3455,3456,7,10,0,0,3456,3457,7,12,0,0,3457,3458,7,22,0,0,3458,3459,7,13,0,0,3459,3460,7,5,0,0,3460,3461,7,6,0,0,3461,588,1,0,0,0,3462,3463,7,24,0,0,3463,3464,7,13,0,0,3464,3465,7,19,0,0,3465,3466,7,14,0,0,3466,3467,7,10,0,0,3467,3468,7,12,0,0,3468,3469,7,22,0,0,3469,3470,7,13,0,0,3470,3471,7,10,0,0,3471,590,1,0,0,0,3472,3473,7,24,0,0,3473,3474,7,13,0,0,3474,3475,7,19,0,0,3475,3476,7,23,0,0,3476,3477,7,13,0,0,3477,3478,7,5,0,0,3478,3479,7,15,0,0,3479,592,1,0,0,0,3480,3481,7,28,0,0,3481,3482,7,22,0,0,3482,3483,7,19,0,0,3483,3484,7,16,0,0,3484,3485,7,10,0,0,3485,594,1,0,0,0,3486,3487,7,13,0,0,3487,3488,7,5,0,0,3488,3489,7,7,0,0,3489,3490,7,23,0,0,3490,3491,7,10,0,0,3491,596,1,0,0,0,3492,3493,7,13,0,0,3493,3494,7,10,0,0,3494,3495,7,5,0,0,3495,3496,7,12,0,0,3496,598,1,0,0,0,3497,3498,7,13,0,0,3498,3499,7,10,0,0,3499,3500,7,5,0,0,3500,3501,7,9,0,0,3501,3502,7,9,0,0,3502,3503,7,17,0,0,3503,3504,7,23,0,0,3504,3505,7,7,0,0,3505,600,1,0,0,0,3506,3507,7,13,0,0,3507,3508,7,10,0,0,3508,3509,7,14,0,0,3509,3510,7,20,0,0,3510,3511,7,10,0,0,3511,3512,7,14,0,0,3512,3513,7,21,0,0,3513,602,1,0,0,0,3514,3515,7,13,0,0,3515,3516,7,10,0,0,3516,3517,7,14,0,0,3517,3518,7,22,0,0,3518,3519,7,13,0,0,3519,3520,7,9,0,0,3520,3521,7,17,0,0,3521,3522,7,27,0,0,3522,3523,7,10,0,0,3523,604,1,0,0,0,3524,3525,7,13,0,0,3525,3526,7,10,0,0,3526,3527,7,25,0,0,3527,606,1,0,0,0,3528,3529,7,13,0,0,3529,3530,7,10,0,0,3530,3531,7,25,0,0,3531,3532,7,13,0,0,3532,3533,7,10,0,0,3533,3534,7,9,0,0,3534,3535,7,20,0,0,3535,608,1,0,0,0,3536,3537,7,13,0,0,3537,3538,7,10,0,0,3538,3539,7,17,0,0,3539,3540,7,7,0,0,3540,3541,7,12,0,0,3541,3542,7,10,0,0,3542,3543,7,26,0,0,3543,610,1,0,0,0,3544,3545,7,13,0,0,3545,3546,7,10,0,0,3546,3547,7,6,0,0,3547,3548,7,5,0,0,3548,3549,7,16,0,0,3549,3550,7,17,0,0,3550,3551,7,27,0,0,3551,3552,7,10,0,0,3552,612,1,0,0,0,3553,3554,7,13,0,0,3554,3555,7,10,0,0,3555,3556,7,6,0,0,3556,3557,7,10,0,0,3557,3558,7,5,0,0,3558,3559,7,9,0,0,3559,3560,7,10,0,0,3560,614,1,0,0,0,3561,3562,7,13,0,0,3562,3563,7,10,0,0,3563,3564,7,7,0,0,3564,3565,7,5,0,0,3565,3566,7,15,0,0,3566,3567,7,10,0,0,3567,616,1,0,0,0,3568,3569,7,13,0,0,3569,3570,7,10,0,0,3570,3571,7,24,0,0,3571,3572,7,10,0,0,3572,3573,7,5,0,0,3573,3574,7,16,0,0,3574,3575,7,5,0,0,3575,3576,7,18,0,0,3576,3577,7,6,0,0,3577,3578,7,10,0,0,3578,618,1,0,0,0,3579,3580,7,13,0,0,3580,3581,7,10,0,0,3581,3582,7,24,0,0,3582,3583,7,6,0,0,3583,3584,7,5,0,0,3584,3585,7,14,0,0,3585,3586,7,10,0,0,3586,620,1,0,0,0,3587,3588,7,13,0,0,3588,3589,7,10,0,0,3589,3590,7,24,0,0,3590,3591,7,6,0,0,3591,3592,7,17,0,0,3592,3593,7,14,0,0,3593,3594,7,5,0,0,3594,622,1,0,0,0,3595,3596,7,13,0,0,3596,3597,7,10,0,0,3597,3598,7,9,0,0,3598,3599,7,10,0,0,3599,3600,7,16,0,0,3600,624,1,0,0,0,3601,3602,7,13,0,0,3602,3603,7,10,0,0,3603,3604,7,9,0,0,3604,3605,7,16,0,0,3605,3606,7,5,0,0,3606,3607,7,13,0,0,3607,3608,7,16,0,0,3608,626,1,0,0,0,3609,3610,7,13,0,0,3610,3611,7,10,0,0,3611,3612,7,9,0,0,3612,3613,7,16,0,0,3613,3614,7,13,0,0,3614,3615,7,17,0,0,3615,3616,7,14,0,0,3616,3617,7,16,0,0,3617,628,1,0,0,0,3618,3619,7,13,0,0,3619,3620,7,10,0,0,3620,3621,7,16,0,0,3621,3622,7,22,0,0,3622,3623,7,13,0,0,3623,3624,7,7,0,0,3624,3625,7,9,0,0,3625,630,1,0,0,0,3626,3627,7,13,0,0,3627,3628,7,10,0,0,3628,3629,7,27,0,0,3629,3630,7,19,0,0,3630,3631,7,21,0,0,3631,3632,7,10,0,0,3632,632,1,0,0,0,3633,3634,7,13,0,0,3634,3635,7,19,0,0,3635,3636,7,6,0,0,3636,3637,7,10,0,0,3637,634,1,0,0,0,3638,3639,7,13,0,0,3639,3640,7,19,0,0,3640,3641,7,6,0,0,3641,3642,7,6,0,0,3642,3643,7,18,0,0,3643,3644,7,5,0,0,3644,3645,7,14,0,0,3645,3646,7,21,0,0,3646,636,1,0,0,0,3647,3648,7,13,0,0,3648,3649,7,19,0,0,3649,3650,7,29,0,0,3650,3651,7,9,0,0,3651,638,1,0,0,0,3652,3653,7,13,0,0,3653,3654,7,22,0,0,3654,3655,7,6,0,0,3655,3656,7,10,0,0,3656,640,1,0,0,0,3657,3658,7,9,0,0,3658,3659,7,5,0,0,3659,3660,7,27,0,0,3660,3661,7,10,0,0,3661,3662,7,24,0,0,3662,3663,7,19,0,0,3663,3664,7,17,0,0,3664,3665,7,7,0,0,3665,3666,7,16,0,0,3666,642,1,0,0,0,3667,3668,7,9,0,0,3668,3669,7,14,0,0,3669,3670,7,20,0,0,3670,3671,7,10,0,0,3671,3672,7,15,0,0,3672,3673,7,5,0,0,3673,644,1,0,0,0,3674,3675,7,9,0,0,3675,3676,7,14,0,0,3676,3677,7,13,0,0,3677,3678,7,19,0,0,3678,3679,7,6,0,0,3679,3680,7,6,0,0,3680,646,1,0,0,0,3681,3682,7,9,0,0,3682,3683,7,10,0,0,3683,3684,7,5,0,0,3684,3685,7,13,0,0,3685,3686,7,14,0,0,3686,3687,7,20,0,0,3687,648,1,0,0,0,3688,3689,7,9,0,0,3689,3690,7,10,0,0,3690,3691,7,14,0,0,3691,3692,7,19,0,0,3692,3693,7,7,0,0,3693,3694,7,12,0,0,3694,650,1,0,0,0,3695,3696,7,9,0,0,3696,3697,7,10,0,0,3697,3698,7,14,0,0,3698,3699,7,22,0,0,3699,3700,7,13,0,0,3700,3701,7,17,0,0,3701,3702,7,16,0,0,3702,3703,7,8,0,0,3703,652,1,0,0,0,3704,3705,7,9,0,0,3705,3706,7,10,0,0,3706,3707,7,28,0,0,3707,3708,7,22,0,0,3708,3709,7,10,0,0,3709,3710,7,7,0,0,3710,3711,7,14,0,0,3711,3712,7,10,0,0,3712,654,1,0,0,0,3713,3714,7,9,0,0,3714,3715,7,10,0,0,3715,3716,7,28,0,0,3716,3717,7,22,0,0,3717,3718,7,10,0,0,3718,3719,7,7,0,0,3719,3720,7,14,0,0,3720,3721,7,10,0,0,3721,3722,7,9,0,0,3722,656,1,0,0,0,3723,3724,7,9,0,0,3724,3725,7,10,0,0,3725,3726,7,13,0,0,3726,3727,7,17,0,0,3727,3728,7,5,0,0,3728,3729,7,6,0,0,3729,3730,7,17,0,0,3730,3731,7,11,0,0,3731,3732,7,5,0,0,3732,3733,7,18,0,0,3733,3734,7,6,0,0,3734,3735,7,10,0,0,3735,658,1,0,0,0,3736,3737,7,9,0,0,3737,3738,7,10,0,0,3738,3739,7,13,0,0,3739,3740,7,27,0,0,3740,3741,7,10,0,0,3741,3742,7,13,0,0,3742,660,1,0,0,0,3743,3744,7,9,0,0,3744,3745,7,10,0,0,3745,3746,7,9,0,0,3746,3747,7,9,0,0,3747,3748,7,17,0,0,3748,3749,7,19,0,0,3749,3750,7,7,0,0,3750,662,1,0,0,0,3751,3752,7,9,0,0,3752,3753,7,10,0,0,3753,3754,7,16,0,0,3754,664,1,0,0,0,3755,3756,7,9,0,0,3756,3757,7,20,0,0,3757,3758,7,5,0,0,3758,3759,7,13,0,0,3759,3760,7,10,0,0,3760,666,1,0,0,0,3761,3762,7,9,0,0,3762,3763,7,20,0,0,3763,3764,7,19,0,0,3764,3765,7,29,0,0,3765,668,1,0,0,0,3766,3767,7,9,0,0,3767,3768,7,17,0,0,3768,3769,7,15,0,0,3769,3770,7,24,0,0,3770,3771,7,6,0,0,3771,3772,7,10,0,0,3772,670,1,0,0,0,3773,3774,7,9,0,0,3774,3775,7,7,0,0,3775,3776,7,5,0,0,3776,3777,7,24,0,0,3777,3778,7,9,0,0,3778,3779,7,20,0,0,3779,3780,7,19,0,0,3780,3781,7,16,0,0,3781,672,1,0,0,0,3782,3783,7,9,0,0,3783,3784,7,16,0,0,3784,3785,7,5,0,0,3785,3786,7,18,0,0,3786,3787,7,6,0,0,3787,3788,7,10,0,0,3788,674,1,0,0,0,3789,3790,7,9,0,0,3790,3791,7,16,0,0,3791,3792,7,5,0,0,3792,3793,7,7,0,0,3793,3794,7,12,0,0,3794,3795,7,5,0,0,3795,3796,7,6,0,0,3796,3797,7,19,0,0,3797,3798,7,7,0,0,3798,3799,7,10,0,0,3799,676,1,0,0,0,3800,3801,7,9,0,0,3801,3802,7,16,0,0,3802,3803,7,5,0,0,3803,3804,7,13,0,0,3804,3805,7,16,0,0,3805,678,1,0,0,0,3806,3807,7,9,0,0,3807,3808,7,16,0,0,3808,3809,7,5,0,0,3809,3810,7,16,0,0,3810,3811,7,10,0,0,3811,3812,7,15,0,0,3812,3813,7,10,0,0,3813,3814,7,7,0,0,3814,3815,7,16,0,0,3815,680,1,0,0,0,3816,3817,7,9,0,0,3817,3818,7,16,0,0,3818,3819,7,5,0,0,3819,3820,7,16,0,0,3820,3821,7,17,0,0,3821,3822,7,9,0,0,3822,3823,7,16,0,0,3823,3824,7,17,0,0,3824,3825,7,14,0,0,3825,3826,7,9,0,0,3826,682,1,0,0,0,3827,3828,7,9,0,0,3828,3829,7,16,0,0,3829,3830,7,12,0,0,3830,3831,7,17,0,0,3831,3832,7,7,0,0,3832,684,1,0,0,0,3833,3834,7,9,0,0,3834,3835,7,16,0,0,3835,3836,7,12,0,0,3836,3837,7,19,0,0,3837,3838,7,22,0,0,3838,3839,7,16,0,0,3839,686,1,0,0,0,3840,3841,7,9,0,0,3841,3842,7,16,0,0,3842,3843,7,19,0,0,3843,3844,7,13,0,0,3844,3845,7,5,0,0,3845,3846,7,23,0,0,3846,3847,7,10,0,0,3847,688,1,0,0,0,3848,3849,7,9,0,0,3849,3850,7,16,0,0,3850,3851,7,13,0,0,3851,3852,7,17,0,0,3852,3853,7,14,0,0,3853,3854,7,16,0,0,3854,690,1,0,0,0,3855,3856,7,9,0,0,3856,3857,7,16,0,0,3857,3858,7,13,0,0,3858,3859,7,17,0,0,3859,3860,7,24,0,0,3860,692,1,0,0,0,3861,3862,7,9,0,0,3862,3863,7,8,0,0,3863,3864,7,9,0,0,3864,3865,7,17,0,0,3865,3866,7,12,0,0,3866,694,1,0,0,0,3867,3868,7,9,0,0,3868,3869,7,8,0,0,3869,3870,7,9,0,0,3870,3871,7,16,0,0,3871,3872,7,10,0,0,3872,3873,7,15,0,0,3873,696,1,0,0,0,3874,3875,7,16,0,0,3875,3876,7,5,0,0,3876,3877,7,18,0,0,3877,3878,7,6,0,0,3878,3879,7,10,0,0,3879,3880,7,9,0,0,3880,698,1,0,0,0,3881,3882,7,16,0,0,3882,3883,7,5,0,0,3883,3884,7,18,0,0,3884,3885,7,6,0,0,3885,3886,7,10,0,0,3886,3887,7,9,0,0,3887,3888,7,24,0,0,3888,3889,7,5,0,0,3889,3890,7,14,0,0,3890,3891,7,10,0,0,3891,700,1,0,0,0,3892,3893,7,16,0,0,3893,3894,7,10,0,0,3894,3895,7,15,0,0,3895,3896,7,24,0,0,3896,702,1,0,0,0,3897,3898,7,16,0,0,3898,3899,7,10,0,0,3899,3900,7,15,0,0,3900,3901,7,24,0,0,3901,3902,7,6,0,0,3902,3903,7,5,0,0,3903,3904,7,16,0,0,3904,3905,7,10,0,0,3905,704,1,0,0,0,3906,3907,7,16,0,0,3907,3908,7,10,0,0,3908,3909,7,15,0,0,3909,3910,7,24,0,0,3910,3911,7,19,0,0,3911,3912,7,13,0,0,3912,3913,7,5,0,0,3913,3914,7,13,0,0,3914,3915,7,8,0,0,3915,706,1,0,0,0,3916,3917,7,16,0,0,3917,3918,7,10,0,0,3918,3919,7,26,0,0,3919,3920,7,16,0,0,3920,708,1,0,0,0,3921,3922,7,16,0,0,3922,3923,7,13,0,0,3923,3924,7,5,0,0,3924,3925,7,7,0,0,3925,3926,7,9,0,0,3926,3927,7,5,0,0,3927,3928,7,14,0,0,3928,3929,7,16,0,0,3929,3930,7,17,0,0,3930,3931,7,19,0,0,3931,3932,7,7,0,0,3932,710,1,0,0,0,3933,3934,7,16,0,0,3934,3935,7,13,0,0,3935,3936,7,17,0,0,3936,3937,7,23,0,0,3937,3938,7,23,0,0,3938,3939,7,10,0,0,3939,3940,7,13,0,0,3940,712,1,0,0,0,3941,3942,7,16,0,0,3942,3943,7,13,0,0,3943,3944,7,22,0,0,3944,3945,7,7,0,0,3945,3946,7,14,0,0,3946,3947,7,5,0,0,3947,3948,7,16,0,0,3948,3949,7,10,0,0,3949,714,1,0,0,0,3950,3951,7,16,0,0,3951,3952,7,13,0,0,3952,3953,7,22,0,0,3953,3954,7,9,0,0,3954,3955,7,16,0,0,3955,3956,7,10,0,0,3956,3957,7,12,0,0,3957,716,1,0,0,0,3958,3959,7,16,0,0,3959,3960,7,8,0,0,3960,3961,7,24,0,0,3961,3962,7,10,0,0,3962,718,1,0,0,0,3963,3964,7,16,0,0,3964,3965,7,8,0,0,3965,3966,7,24,0,0,3966,3967,7,10,0,0,3967,3968,7,9,0,0,3968,720,1,0,0,0,3969,3970,7,22,0,0,3970,3971,7,7,0,0,3971,3972,7,18,0,0,3972,3973,7,19,0,0,3973,3974,7,22,0,0,3974,3975,7,7,0,0,3975,3976,7,12,0,0,3976,3977,7,10,0,0,3977,3978,7,12,0,0,3978,722,1,0,0,0,3979,3980,7,22,0,0,3980,3981,7,7,0,0,3981,3982,7,14,0,0,3982,3983,7,19,0,0,3983,3984,7,15,0,0,3984,3985,7,15,0,0,3985,3986,7,17,0,0,3986,3987,7,16,0,0,3987,3988,7,16,0,0,3988,3989,7,10,0,0,3989,3990,7,12,0,0,3990,724,1,0,0,0,3991,3992,7,22,0,0,3992,3993,7,7,0,0,3993,3994,7,10,0,0,3994,3995,7,7,0,0,3995,3996,7,14,0,0,3996,3997,7,13,0,0,3997,3998,7,8,0,0,3998,3999,7,24,0,0,3999,4e3,7,16,0,0,4e3,4001,7,10,0,0,4001,4002,7,12,0,0,4002,726,1,0,0,0,4003,4004,7,22,0,0,4004,4005,7,7,0,0,4005,4006,7,21,0,0,4006,4007,7,7,0,0,4007,4008,7,19,0,0,4008,4009,7,29,0,0,4009,4010,7,7,0,0,4010,728,1,0,0,0,4011,4012,7,22,0,0,4012,4013,7,7,0,0,4013,4014,7,6,0,0,4014,4015,7,17,0,0,4015,4016,7,9,0,0,4016,4017,7,16,0,0,4017,4018,7,10,0,0,4018,4019,7,7,0,0,4019,730,1,0,0,0,4020,4021,7,22,0,0,4021,4022,7,7,0,0,4022,4023,7,6,0,0,4023,4024,7,19,0,0,4024,4025,7,23,0,0,4025,4026,7,23,0,0,4026,4027,7,10,0,0,4027,4028,7,12,0,0,4028,732,1,0,0,0,4029,4030,7,22,0,0,4030,4031,7,7,0,0,4031,4032,7,16,0,0,4032,4033,7,17,0,0,4033,4034,7,6,0,0,4034,734,1,0,0,0,4035,4036,7,22,0,0,4036,4037,7,24,0,0,4037,4038,7,12,0,0,4038,4039,7,5,0,0,4039,4040,7,16,0,0,4040,4041,7,10,0,0,4041,736,1,0,0,0,4042,4043,7,27,0,0,4043,4044,7,5,0,0,4044,4045,7,14,0,0,4045,4046,7,22,0,0,4046,4047,7,22,0,0,4047,4048,7,15,0,0,4048,738,1,0,0,0,4049,4050,7,27,0,0,4050,4051,7,5,0,0,4051,4052,7,6,0,0,4052,4053,7,17,0,0,4053,4054,7,12,0,0,4054,740,1,0,0,0,4055,4056,7,27,0,0,4056,4057,7,5,0,0,4057,4058,7,6,0,0,4058,4059,7,17,0,0,4059,4060,7,12,0,0,4060,4061,7,5,0,0,4061,4062,7,16,0,0,4062,4063,7,10,0,0,4063,742,1,0,0,0,4064,4065,7,27,0,0,4065,4066,7,5,0,0,4066,4067,7,6,0,0,4067,4068,7,17,0,0,4068,4069,7,12,0,0,4069,4070,7,5,0,0,4070,4071,7,16,0,0,4071,4072,7,19,0,0,4072,4073,7,13,0,0,4073,744,1,0,0,0,4074,4075,7,27,0,0,4075,4076,7,5,0,0,4076,4077,7,13,0,0,4077,4078,7,8,0,0,4078,4079,7,17,0,0,4079,4080,7,7,0,0,4080,4081,7,23,0,0,4081,746,1,0,0,0,4082,4083,7,27,0,0,4083,4084,7,10,0,0,4084,4085,7,13,0,0,4085,4086,7,9,0,0,4086,4087,7,17,0,0,4087,4088,7,19,0,0,4088,4089,7,7,0,0,4089,748,1,0,0,0,4090,4091,7,27,0,0,4091,4092,7,17,0,0,4092,4093,7,10,0,0,4093,4094,7,29,0,0,4094,750,1,0,0,0,4095,4096,7,27,0,0,4096,4097,7,19,0,0,4097,4098,7,6,0,0,4098,4099,7,5,0,0,4099,4100,7,16,0,0,4100,4101,7,17,0,0,4101,4102,7,6,0,0,4102,4103,7,10,0,0,4103,752,1,0,0,0,4104,4105,7,29,0,0,4105,4106,7,20,0,0,4106,4107,7,17,0,0,4107,4108,7,16,0,0,4108,4109,7,10,0,0,4109,4110,7,9,0,0,4110,4111,7,24,0,0,4111,4112,7,5,0,0,4112,4113,7,14,0,0,4113,4114,7,10,0,0,4114,754,1,0,0,0,4115,4116,7,29,0,0,4116,4117,7,17,0,0,4117,4118,7,16,0,0,4118,4119,7,20,0,0,4119,4120,7,19,0,0,4120,4121,7,22,0,0,4121,4122,7,16,0,0,4122,756,1,0,0,0,4123,4124,7,29,0,0,4124,4125,7,19,0,0,4125,4126,7,13,0,0,4126,4127,7,21,0,0,4127,758,1,0,0,0,4128,4129,7,29,0,0,4129,4130,7,13,0,0,4130,4131,7,5,0,0,4131,4132,7,24,0,0,4132,4133,7,24,0,0,4133,4134,7,10,0,0,4134,4135,7,13,0,0,4135,760,1,0,0,0,4136,4137,7,29,0,0,4137,4138,7,13,0,0,4138,4139,7,17,0,0,4139,4140,7,16,0,0,4140,4141,7,10,0,0,4141,762,1,0,0,0,4142,4143,7,26,0,0,4143,4144,7,15,0,0,4144,4145,7,6,0,0,4145,764,1,0,0,0,4146,4147,7,8,0,0,4147,4148,7,10,0,0,4148,4149,7,5,0,0,4149,4150,7,13,0,0,4150,766,1,0,0,0,4151,4152,7,8,0,0,4152,4153,7,10,0,0,4153,4154,7,9,0,0,4154,768,1,0,0,0,4155,4156,7,11,0,0,4156,4157,7,19,0,0,4157,4158,7,7,0,0,4158,4159,7,10,0,0,4159,770,1,0,0,0,4160,4161,7,18,0,0,4161,4162,7,10,0,0,4162,4163,7,16,0,0,4163,4164,7,29,0,0,4164,4165,7,10,0,0,4165,4166,7,10,0,0,4166,4167,7,7,0,0,4167,772,1,0,0,0,4168,4169,7,18,0,0,4169,4170,7,17,0,0,4170,4171,7,23,0,0,4171,4172,7,17,0,0,4172,4173,7,7,0,0,4173,4174,7,16,0,0,4174,774,1,0,0,0,4175,4176,7,18,0,0,4176,4177,7,17,0,0,4177,4178,7,16,0,0,4178,776,1,0,0,0,4179,4180,7,18,0,0,4180,4181,7,19,0,0,4181,4182,7,19,0,0,4182,4183,7,6,0,0,4183,4184,7,10,0,0,4184,4185,7,5,0,0,4185,4186,7,7,0,0,4186,778,1,0,0,0,4187,4188,7,14,0,0,4188,4189,7,20,0,0,4189,4190,7,5,0,0,4190,4191,7,13,0,0,4191,780,1,0,0,0,4192,4193,7,14,0,0,4193,4194,7,20,0,0,4194,4195,7,5,0,0,4195,4196,7,13,0,0,4196,4197,7,5,0,0,4197,4198,7,14,0,0,4198,4199,7,16,0,0,4199,4200,7,10,0,0,4200,4201,7,13,0,0,4201,782,1,0,0,0,4202,4203,7,14,0,0,4203,4204,7,19,0,0,4204,4205,7,5,0,0,4205,4206,7,6,0,0,4206,4207,7,10,0,0,4207,4208,7,9,0,0,4208,4209,7,14,0,0,4209,4210,7,10,0,0,4210,784,1,0,0,0,4211,4212,7,12,0,0,4212,4213,7,10,0,0,4213,4214,7,14,0,0,4214,786,1,0,0,0,4215,4216,7,12,0,0,4216,4217,7,10,0,0,4217,4218,7,14,0,0,4218,4219,7,17,0,0,4219,4220,7,15,0,0,4220,4221,7,5,0,0,4221,4222,7,6,0,0,4222,788,1,0,0,0,4223,4224,7,10,0,0,4224,4225,7,26,0,0,4225,4226,7,17,0,0,4226,4227,7,9,0,0,4227,4228,7,16,0,0,4228,4229,7,9,0,0,4229,790,1,0,0,0,4230,4231,7,10,0,0,4231,4232,7,26,0,0,4232,4233,7,16,0,0,4233,4234,7,13,0,0,4234,4235,7,5,0,0,4235,4236,7,14,0,0,4236,4237,7,16,0,0,4237,792,1,0,0,0,4238,4239,7,25,0,0,4239,4240,7,6,0,0,4240,4241,7,19,0,0,4241,4242,7,5,0,0,4242,4243,7,16,0,0,4243,794,1,0,0,0,4244,4245,7,23,0,0,4245,4246,7,13,0,0,4246,4247,7,10,0,0,4247,4248,7,5,0,0,4248,4249,7,16,0,0,4249,4250,7,10,0,0,4250,4251,7,9,0,0,4251,4252,7,16,0,0,4252,796,1,0,0,0,4253,4254,7,17,0,0,4254,4255,7,7,0,0,4255,4256,7,19,0,0,4256,4257,7,22,0,0,4257,4258,7,16,0,0,4258,798,1,0,0,0,4259,4260,7,17,0,0,4260,4261,7,7,0,0,4261,4262,7,16,0,0,4262,800,1,0,0,0,4263,4264,7,17,0,0,4264,4265,7,7,0,0,4265,4266,7,16,0,0,4266,4267,7,10,0,0,4267,4268,7,23,0,0,4268,4269,7,10,0,0,4269,4270,7,13,0,0,4270,802,1,0,0,0,4271,4272,7,17,0,0,4272,4273,7,7,0,0,4273,4274,7,16,0,0,4274,4275,7,10,0,0,4275,4276,7,13,0,0,4276,4277,7,27,0,0,4277,4278,7,5,0,0,4278,4279,7,6,0,0,4279,804,1,0,0,0,4280,4281,7,6,0,0,4281,4282,7,10,0,0,4282,4283,7,5,0,0,4283,4284,7,9,0,0,4284,4285,7,16,0,0,4285,806,1,0,0,0,4286,4287,7,7,0,0,4287,4288,7,5,0,0,4288,4289,7,16,0,0,4289,4290,7,17,0,0,4290,4291,7,19,0,0,4291,4292,7,7,0,0,4292,4293,7,5,0,0,4293,4294,7,6,0,0,4294,808,1,0,0,0,4295,4296,7,7,0,0,4296,4297,7,14,0,0,4297,4298,7,20,0,0,4298,4299,7,5,0,0,4299,4300,7,13,0,0,4300,810,1,0,0,0,4301,4302,7,7,0,0,4302,4303,7,19,0,0,4303,4304,7,7,0,0,4304,4305,7,10,0,0,4305,812,1,0,0,0,4306,4307,7,7,0,0,4307,4308,7,22,0,0,4308,4309,7,6,0,0,4309,4310,7,6,0,0,4310,4311,7,17,0,0,4311,4312,7,25,0,0,4312,814,1,0,0,0,4313,4314,7,7,0,0,4314,4315,7,22,0,0,4315,4316,7,15,0,0,4316,4317,7,10,0,0,4317,4318,7,13,0,0,4318,4319,7,17,0,0,4319,4320,7,14,0,0,4320,816,1,0,0,0,4321,4322,7,19,0,0,4322,4323,7,27,0,0,4323,4324,7,10,0,0,4324,4325,7,13,0,0,4325,4326,7,6,0,0,4326,4327,7,5,0,0,4327,4328,7,8,0,0,4328,818,1,0,0,0,4329,4330,7,24,0,0,4330,4331,7,19,0,0,4331,4332,7,9,0,0,4332,4333,7,17,0,0,4333,4334,7,16,0,0,4334,4335,7,17,0,0,4335,4336,7,19,0,0,4336,4337,7,7,0,0,4337,820,1,0,0,0,4338,4339,7,24,0,0,4339,4340,7,13,0,0,4340,4341,7,10,0,0,4341,4342,7,14,0,0,4342,4343,7,17,0,0,4343,4344,7,9,0,0,4344,4345,7,17,0,0,4345,4346,7,19,0,0,4346,4347,7,7,0,0,4347,822,1,0,0,0,4348,4349,7,13,0,0,4349,4350,7,10,0,0,4350,4351,7,5,0,0,4351,4352,7,6,0,0,4352,824,1,0,0,0,4353,4354,7,13,0,0,4354,4355,7,19,0,0,4355,4356,7,29,0,0,4356,826,1,0,0,0,4357,4358,7,9,0,0,4358,4359,7,10,0,0,4359,4360,7,16,0,0,4360,4361,7,19,0,0,4361,4362,7,25,0,0,4362,828,1,0,0,0,4363,4364,7,9,0,0,4364,4365,7,15,0,0,4365,4366,7,5,0,0,4366,4367,7,6,0,0,4367,4368,7,6,0,0,4368,4369,7,17,0,0,4369,4370,7,7,0,0,4370,4371,7,16,0,0,4371,830,1,0,0,0,4372,4373,7,9,0,0,4373,4374,7,22,0,0,4374,4375,7,18,0,0,4375,4376,7,9,0,0,4376,4377,7,16,0,0,4377,4378,7,13,0,0,4378,4379,7,17,0,0,4379,4380,7,7,0,0,4380,4381,7,23,0,0,4381,832,1,0,0,0,4382,4383,7,16,0,0,4383,4384,7,17,0,0,4384,4385,7,15,0,0,4385,4386,7,10,0,0,4386,834,1,0,0,0,4387,4388,7,16,0,0,4388,4389,7,17,0,0,4389,4390,7,15,0,0,4390,4391,7,10,0,0,4391,4392,7,9,0,0,4392,4393,7,16,0,0,4393,4394,7,5,0,0,4394,4395,7,15,0,0,4395,4396,7,24,0,0,4396,836,1,0,0,0,4397,4398,7,16,0,0,4398,4399,7,13,0,0,4399,4400,7,10,0,0,4400,4401,7,5,0,0,4401,4402,7,16,0,0,4402,838,1,0,0,0,4403,4404,7,16,0,0,4404,4405,7,13,0,0,4405,4406,7,17,0,0,4406,4407,7,15,0,0,4407,840,1,0,0,0,4408,4409,7,27,0,0,4409,4410,7,5,0,0,4410,4411,7,6,0,0,4411,4412,7,22,0,0,4412,4413,7,10,0,0,4413,4414,7,9,0,0,4414,842,1,0,0,0,4415,4416,7,27,0,0,4416,4417,7,5,0,0,4417,4418,7,13,0,0,4418,4419,7,14,0,0,4419,4420,7,20,0,0,4420,4421,7,5,0,0,4421,4422,7,13,0,0,4422,844,1,0,0,0,4423,4424,7,26,0,0,4424,4425,7,15,0,0,4425,4426,7,6,0,0,4426,4427,7,5,0,0,4427,4428,7,16,0,0,4428,4429,7,16,0,0,4429,4430,7,13,0,0,4430,4431,7,17,0,0,4431,4432,7,18,0,0,4432,4433,7,22,0,0,4433,4434,7,16,0,0,4434,4435,7,10,0,0,4435,4436,7,9,0,0,4436,846,1,0,0,0,4437,4438,7,26,0,0,4438,4439,7,15,0,0,4439,4440,7,6,0,0,4440,4441,7,14,0,0,4441,4442,7,19,0,0,4442,4443,7,15,0,0,4443,4444,7,15,0,0,4444,4445,7,10,0,0,4445,4446,7,7,0,0,4446,4447,7,16,0,0,4447,848,1,0,0,0,4448,4449,7,26,0,0,4449,4450,7,15,0,0,4450,4451,7,6,0,0,4451,4452,7,5,0,0,4452,4453,7,23,0,0,4453,4454,7,23,0,0,4454,850,1,0,0,0,4455,4456,7,26,0,0,4456,4457,7,15,0,0,4457,4458,7,6,0,0,4458,4459,5,95,0,0,4459,4460,7,17,0,0,4460,4461,7,9,0,0,4461,4462,5,95,0,0,4462,4463,7,29,0,0,4463,4464,7,10,0,0,4464,4465,7,6,0,0,4465,4466,7,6,0,0,4466,4467,5,95,0,0,4467,4468,7,25,0,0,4468,4469,7,19,0,0,4469,4470,7,13,0,0,4470,4471,7,15,0,0,4471,4472,7,10,0,0,4472,4473,7,12,0,0,4473,852,1,0,0,0,4474,4475,7,26,0,0,4475,4476,7,15,0,0,4476,4477,7,6,0,0,4477,4478,5,95,0,0,4478,4479,7,17,0,0,4479,4480,7,9,0,0,4480,4481,5,95,0,0,4481,4482,7,29,0,0,4482,4483,7,10,0,0,4483,4484,7,6,0,0,4484,4485,7,6,0,0,4485,4486,5,95,0,0,4486,4487,7,25,0,0,4487,4488,7,19,0,0,4488,4489,7,13,0,0,4489,4490,7,15,0,0,4490,4491,7,10,0,0,4491,4492,7,12,0,0,4492,4493,5,95,0,0,4493,4494,7,12,0,0,4494,4495,7,19,0,0,4495,4496,7,14,0,0,4496,4497,7,22,0,0,4497,4498,7,15,0,0,4498,4499,7,10,0,0,4499,4500,7,7,0,0,4500,4501,7,16,0,0,4501,854,1,0,0,0,4502,4503,7,26,0,0,4503,4504,7,15,0,0,4504,4505,7,6,0,0,4505,4506,5,95,0,0,4506,4507,7,17,0,0,4507,4508,7,9,0,0,4508,4509,5,95,0,0,4509,4510,7,29,0,0,4510,4511,7,10,0,0,4511,4512,7,6,0,0,4512,4513,7,6,0,0,4513,4514,5,95,0,0,4514,4515,7,25,0,0,4515,4516,7,19,0,0,4516,4517,7,13,0,0,4517,4518,7,15,0,0,4518,4519,7,10,0,0,4519,4520,7,12,0,0,4520,4521,5,95,0,0,4521,4522,7,14,0,0,4522,4523,7,19,0,0,4523,4524,7,7,0,0,4524,4525,7,16,0,0,4525,4526,7,10,0,0,4526,4527,7,7,0,0,4527,4528,7,16,0,0,4528,856,1,0,0,0,4529,4530,7,26,0,0,4530,4531,7,24,0,0,4531,4532,7,5,0,0,4532,4533,7,16,0,0,4533,4534,7,20,0,0,4534,858,1,0,0,0,4535,4536,7,26,0,0,4536,4537,7,24,0,0,4537,4538,7,5,0,0,4538,4539,7,16,0,0,4539,4540,7,20,0,0,4540,4541,5,95,0,0,4541,4542,7,10,0,0,4542,4543,7,26,0,0,4543,4544,7,17,0,0,4544,4545,7,9,0,0,4545,4546,7,16,0,0,4546,4547,7,9,0,0,4547,860,1,0,0,0,4548,4549,7,26,0,0,4549,4550,7,15,0,0,4550,4551,7,6,0,0,4551,4552,7,14,0,0,4552,4553,7,19,0,0,4553,4554,7,7,0,0,4554,4555,7,14,0,0,4555,4556,7,5,0,0,4556,4557,7,16,0,0,4557,862,1,0,0,0,4558,4559,7,26,0,0,4559,4560,7,15,0,0,4560,4561,7,6,0,0,4561,4562,7,10,0,0,4562,4563,7,6,0,0,4563,4564,7,10,0,0,4564,4565,7,15,0,0,4565,4566,7,10,0,0,4566,4567,7,7,0,0,4567,4568,7,16,0,0,4568,864,1,0,0,0,4569,4570,7,26,0,0,4570,4571,7,15,0,0,4571,4572,7,6,0,0,4572,4573,7,10,0,0,4573,4574,7,26,0,0,4574,4575,7,17,0,0,4575,4576,7,9,0,0,4576,4577,7,16,0,0,4577,4578,7,9,0,0,4578,866,1,0,0,0,4579,4580,7,26,0,0,4580,4581,7,15,0,0,4581,4582,7,6,0,0,4582,4583,7,25,0,0,4583,4584,7,19,0,0,4584,4585,7,13,0,0,4585,4586,7,10,0,0,4586,4587,7,9,0,0,4587,4588,7,16,0,0,4588,868,1,0,0,0,4589,4590,7,26,0,0,4590,4591,7,15,0,0,4591,4592,7,6,0,0,4592,4593,7,24,0,0,4593,4594,7,5,0,0,4594,4595,7,13,0,0,4595,4596,7,9,0,0,4596,4597,7,10,0,0,4597,870,1,0,0,0,4598,4599,7,26,0,0,4599,4600,7,15,0,0,4600,4601,7,6,0,0,4601,4602,7,24,0,0,4602,4603,7,17,0,0,4603,872,1,0,0,0,4604,4605,7,26,0,0,4605,4606,7,15,0,0,4606,4607,7,6,0,0,4607,4608,7,13,0,0,4608,4609,7,19,0,0,4609,4610,7,19,0,0,4610,4611,7,16,0,0,4611,874,1,0,0,0,4612,4613,7,26,0,0,4613,4614,7,15,0,0,4614,4615,7,6,0,0,4615,4616,7,9,0,0,4616,4617,7,10,0,0,4617,4618,7,13,0,0,4618,4619,7,17,0,0,4619,4620,7,5,0,0,4620,4621,7,6,0,0,4621,4622,7,17,0,0,4622,4623,7,11,0,0,4623,4624,7,10,0,0,4624,876,1,0,0,0,4625,4626,7,14,0,0,4626,4627,7,5,0,0,4627,4628,7,6,0,0,4628,4629,7,6,0,0,4629,878,1,0,0,0,4630,4631,7,14,0,0,4631,4632,7,22,0,0,4632,4633,7,13,0,0,4633,4634,7,13,0,0,4634,4635,7,10,0,0,4635,4636,7,7,0,0,4636,4637,7,16,0,0,4637,880,1,0,0,0,4638,4639,7,5,0,0,4639,4640,7,16,0,0,4640,4641,7,16,0,0,4641,4642,7,5,0,0,4642,4643,7,14,0,0,4643,4644,7,20,0,0,4644,882,1,0,0,0,4645,4646,7,12,0,0,4646,4647,7,10,0,0,4647,4648,7,16,0,0,4648,4649,7,5,0,0,4649,4650,7,14,0,0,4650,4651,7,20,0,0,4651,884,1,0,0,0,4652,4653,7,10,0,0,4653,4654,7,26,0,0,4654,4655,7,24,0,0,4655,4656,7,13,0,0,4656,4657,7,10,0,0,4657,4658,7,9,0,0,4658,4659,7,9,0,0,4659,4660,7,17,0,0,4660,4661,7,19,0,0,4661,4662,7,7,0,0,4662,886,1,0,0,0,4663,4664,7,23,0,0,4664,4665,7,10,0,0,4665,4666,7,7,0,0,4666,4667,7,10,0,0,4667,4668,7,13,0,0,4668,4669,7,5,0,0,4669,4670,7,16,0,0,4670,4671,7,10,0,0,4671,4672,7,12,0,0,4672,888,1,0,0,0,4673,4674,7,6,0,0,4674,4675,7,19,0,0,4675,4676,7,23,0,0,4676,4677,7,23,0,0,4677,4678,7,10,0,0,4678,4679,7,12,0,0,4679,890,1,0,0,0,4680,4681,7,9,0,0,4681,4682,7,16,0,0,4682,4683,7,19,0,0,4683,4684,7,13,0,0,4684,4685,7,10,0,0,4685,4686,7,12,0,0,4686,892,1,0,0,0,4687,4688,7,17,0,0,4688,4689,7,7,0,0,4689,4690,7,14,0,0,4690,4691,7,6,0,0,4691,4692,7,22,0,0,4692,4693,7,12,0,0,4693,4694,7,10,0,0,4694,894,1,0,0,0,4695,4696,7,13,0,0,4696,4697,7,19,0,0,4697,4698,7,22,0,0,4698,4699,7,16,0,0,4699,4700,7,17,0,0,4700,4701,7,7,0,0,4701,4702,7,10,0,0,4702,896,1,0,0,0,4703,4704,7,16,0,0,4704,4705,7,13,0,0,4705,4706,7,5,0,0,4706,4707,7,7,0,0,4707,4708,7,9,0,0,4708,4709,7,25,0,0,4709,4710,7,19,0,0,4710,4711,7,13,0,0,4711,4712,7,15,0,0,4712,898,1,0,0,0,4713,4714,7,17,0,0,4714,4715,7,15,0,0,4715,4716,7,24,0,0,4716,4717,7,19,0,0,4717,4718,7,13,0,0,4718,4719,7,16,0,0,4719,900,1,0,0,0,4720,4721,7,24,0,0,4721,4722,7,19,0,0,4722,4723,7,6,0,0,4723,4724,7,17,0,0,4724,4725,7,14,0,0,4725,4726,7,8,0,0,4726,902,1,0,0,0,4727,4728,7,15,0,0,4728,4729,7,10,0,0,4729,4730,7,16,0,0,4730,4731,7,20,0,0,4731,4732,7,19,0,0,4732,4733,7,12,0,0,4733,904,1,0,0,0,4734,4735,7,13,0,0,4735,4736,7,10,0,0,4736,4737,7,25,0,0,4737,4738,7,10,0,0,4738,4739,7,13,0,0,4739,4740,7,10,0,0,4740,4741,7,7,0,0,4741,4742,7,14,0,0,4742,4743,7,17,0,0,4743,4744,7,7,0,0,4744,4745,7,23,0,0,4745,906,1,0,0,0,4746,4747,7,7,0,0,4747,4748,7,10,0,0,4748,4749,7,29,0,0,4749,908,1,0,0,0,4750,4751,7,19,0,0,4751,4752,7,6,0,0,4752,4753,7,12,0,0,4753,910,1,0,0,0,4754,4755,7,27,0,0,4755,4756,7,5,0,0,4756,4757,7,6,0,0,4757,4758,7,22,0,0,4758,4759,7,10,0,0,4759,912,1,0,0,0,4760,4761,7,9,0,0,4761,4762,7,22,0,0,4762,4763,7,18,0,0,4763,4764,7,9,0,0,4764,4765,7,14,0,0,4765,4766,7,13,0,0,4766,4767,7,17,0,0,4767,4768,7,24,0,0,4768,4769,7,16,0,0,4769,4770,7,17,0,0,4770,4771,7,19,0,0,4771,4772,7,7,0,0,4772,914,1,0,0,0,4773,4774,7,24,0,0,4774,4775,7,22,0,0,4775,4776,7,18,0,0,4776,4777,7,6,0,0,4777,4778,7,17,0,0,4778,4779,7,14,0,0,4779,4780,7,5,0,0,4780,4781,7,16,0,0,4781,4782,7,17,0,0,4782,4783,7,19,0,0,4783,4784,7,7,0,0,4784,916,1,0,0,0,4785,4786,7,19,0,0,4786,4787,7,22,0,0,4787,4788,7,16,0,0,4788,918,1,0,0,0,4789,4790,7,10,0,0,4790,4791,7,7,0,0,4791,4792,7,12,0,0,4792,920,1,0,0,0,4793,4794,7,13,0,0,4794,4795,7,19,0,0,4795,4796,7,22,0,0,4796,4797,7,16,0,0,4797,4798,7,17,0,0,4798,4799,7,7,0,0,4799,4800,7,10,0,0,4800,4801,7,9,0,0,4801,922,1,0,0,0,4802,4803,7,9,0,0,4803,4804,7,14,0,0,4804,4805,7,20,0,0,4805,4806,7,10,0,0,4806,4807,7,15,0,0,4807,4808,7,5,0,0,4808,4809,7,9,0,0,4809,924,1,0,0,0,4810,4811,7,24,0,0,4811,4812,7,13,0,0,4812,4813,7,19,0,0,4813,4814,7,14,0,0,4814,4815,7,10,0,0,4815,4816,7,12,0,0,4816,4817,7,22,0,0,4817,4818,7,13,0,0,4818,4819,7,10,0,0,4819,4820,7,9,0,0,4820,926,1,0,0,0,4821,4822,7,17,0,0,4822,4823,7,7,0,0,4823,4824,7,24,0,0,4824,4825,7,22,0,0,4825,4826,7,16,0,0,4826,928,1,0,0,0,4827,4828,7,9,0,0,4828,4829,7,22,0,0,4829,4830,7,24,0,0,4830,4831,7,24,0,0,4831,4832,7,19,0,0,4832,4833,7,13,0,0,4833,4834,7,16,0,0,4834,930,1,0,0,0,4835,4836,7,24,0,0,4836,4837,7,5,0,0,4837,4838,7,13,0,0,4838,4839,7,5,0,0,4839,4840,7,6,0,0,4840,4841,7,6,0,0,4841,4842,7,10,0,0,4842,4843,7,6,0,0,4843,932,1,0,0,0,4844,4845,7,9,0,0,4845,4846,7,28,0,0,4846,4847,7,6,0,0,4847,934,1,0,0,0,4848,4849,7,12,0,0,4849,4850,7,10,0,0,4850,4851,7,24,0,0,4851,4852,7,10,0,0,4852,4853,7,7,0,0,4853,4854,7,12,0,0,4854,4855,7,9,0,0,4855,936,1,0,0,0,4856,4857,7,19,0,0,4857,4858,7,27,0,0,4858,4859,7,10,0,0,4859,4860,7,13,0,0,4860,4861,7,13,0,0,4861,4862,7,17,0,0,4862,4863,7,12,0,0,4863,4864,7,17,0,0,4864,4865,7,7,0,0,4865,4866,7,23,0,0,4866,938,1,0,0,0,4867,4868,7,14,0,0,4868,4869,7,19,0,0,4869,4870,7,7,0,0,4870,4871,7,25,0,0,4871,4872,7,6,0,0,4872,4873,7,17,0,0,4873,4874,7,14,0,0,4874,4875,7,16,0,0,4875,940,1,0,0,0,4876,4877,7,9,0,0,4877,4878,7,21,0,0,4878,4879,7,17,0,0,4879,4880,7,24,0,0,4880,942,1,0,0,0,4881,4882,7,6,0,0,4882,4883,7,19,0,0,4883,4884,7,14,0,0,4884,4885,7,21,0,0,4885,4886,7,10,0,0,4886,4887,7,12,0,0,4887,944,1,0,0,0,4888,4889,7,16,0,0,4889,4890,7,17,0,0,4890,4891,7,10,0,0,4891,4892,7,9,0,0,4892,946,1,0,0,0,4893,4894,7,13,0,0,4894,4895,7,19,0,0,4895,4896,7,6,0,0,4896,4897,7,6,0,0,4897,4898,7,22,0,0,4898,4899,7,24,0,0,4899,948,1,0,0,0,4900,4901,7,14,0,0,4901,4902,7,22,0,0,4902,4903,7,18,0,0,4903,4904,7,10,0,0,4904,950,1,0,0,0,4905,4906,7,23,0,0,4906,4907,7,13,0,0,4907,4908,7,19,0,0,4908,4909,7,22,0,0,4909,4910,7,24,0,0,4910,4911,7,17,0,0,4911,4912,7,7,0,0,4912,4913,7,23,0,0,4913,952,1,0,0,0,4914,4915,7,9,0,0,4915,4916,7,10,0,0,4916,4917,7,16,0,0,4917,4918,7,9,0,0,4918,954,1,0,0,0,4919,4920,7,16,0,0,4920,4921,7,5,0,0,4921,4922,7,18,0,0,4922,4923,7,6,0,0,4923,4924,7,10,0,0,4924,4925,7,9,0,0,4925,4926,7,5,0,0,4926,4927,7,15,0,0,4927,4928,7,24,0,0,4928,4929,7,6,0,0,4929,4930,7,10,0,0,4930,956,1,0,0,0,4931,4932,7,19,0,0,4932,4933,7,13,0,0,4933,4934,7,12,0,0,4934,4935,7,17,0,0,4935,4936,7,7,0,0,4936,4937,7,5,0,0,4937,4938,7,6,0,0,4938,4939,7,17,0,0,4939,4940,7,16,0,0,4940,4941,7,8,0,0,4941,958,1,0,0,0,4942,4943,7,26,0,0,4943,4944,7,15,0,0,4944,4945,7,6,0,0,4945,4946,7,16,0,0,4946,4947,7,5,0,0,4947,4948,7,18,0,0,4948,4949,7,6,0,0,4949,4950,7,10,0,0,4950,960,1,0,0,0,4951,4952,7,14,0,0,4952,4953,7,19,0,0,4953,4954,7,6,0,0,4954,4955,7,22,0,0,4955,4956,7,15,0,0,4956,4957,7,7,0,0,4957,4958,7,9,0,0,4958,962,1,0,0,0,4959,4960,7,26,0,0,4960,4961,7,15,0,0,4961,4962,7,6,0,0,4962,4963,7,7,0,0,4963,4964,7,5,0,0,4964,4965,7,15,0,0,4965,4966,7,10,0,0,4966,4967,7,9,0,0,4967,4968,7,24,0,0,4968,4969,7,5,0,0,4969,4970,7,14,0,0,4970,4971,7,10,0,0,4971,4972,7,9,0,0,4972,964,1,0,0,0,4973,4974,7,13,0,0,4974,4975,7,19,0,0,4975,4976,7,29,0,0,4976,4977,7,16,0,0,4977,4978,7,8,0,0,4978,4979,7,24,0,0,4979,4980,7,10,0,0,4980,966,1,0,0,0,4981,4982,7,7,0,0,4982,4983,7,19,0,0,4983,4984,7,13,0,0,4984,4985,7,15,0,0,4985,4986,7,5,0,0,4986,4987,7,6,0,0,4987,4988,7,17,0,0,4988,4989,7,11,0,0,4989,4990,7,10,0,0,4990,4991,7,12,0,0,4991,968,1,0,0,0,4992,4993,7,29,0,0,4993,4994,7,17,0,0,4994,4995,7,16,0,0,4995,4996,7,20,0,0,4996,4997,7,17,0,0,4997,4998,7,7,0,0,4998,970,1,0,0,0,4999,5e3,7,25,0,0,5e3,5001,7,17,0,0,5001,5002,7,6,0,0,5002,5003,7,16,0,0,5003,5004,7,10,0,0,5004,5005,7,13,0,0,5005,972,1,0,0,0,5006,5007,7,23,0,0,5007,5008,7,13,0,0,5008,5009,7,19,0,0,5009,5010,7,22,0,0,5010,5011,7,24,0,0,5011,5012,7,9,0,0,5012,974,1,0,0,0,5013,5014,7,19,0,0,5014,5015,7,16,0,0,5015,5016,7,20,0,0,5016,5017,7,10,0,0,5017,5018,7,13,0,0,5018,5019,7,9,0,0,5019,976,1,0,0,0,5020,5021,7,7,0,0,5021,5022,7,25,0,0,5022,5023,7,14,0,0,5023,978,1,0,0,0,5024,5025,7,7,0,0,5025,5026,7,25,0,0,5026,5027,7,12,0,0,5027,980,1,0,0,0,5028,5029,7,7,0,0,5029,5030,7,25,0,0,5030,5031,7,21,0,0,5031,5032,7,14,0,0,5032,982,1,0,0,0,5033,5034,7,7,0,0,5034,5035,7,25,0,0,5035,5036,7,21,0,0,5036,5037,7,12,0,0,5037,984,1,0,0,0,5038,5039,7,22,0,0,5039,5040,7,10,0,0,5040,5041,7,9,0,0,5041,5042,7,14,0,0,5042,5043,7,5,0,0,5043,5044,7,24,0,0,5044,5045,7,10,0,0,5045,986,1,0,0,0,5046,5047,7,27,0,0,5047,5048,7,17,0,0,5048,5049,7,10,0,0,5049,5050,7,29,0,0,5050,5051,7,9,0,0,5051,988,1,0,0,0,5052,5053,7,7,0,0,5053,5054,7,19,0,0,5054,5055,7,13,0,0,5055,5056,7,15,0,0,5056,5057,7,5,0,0,5057,5058,7,6,0,0,5058,5059,7,17,0,0,5059,5060,7,11,0,0,5060,5061,7,10,0,0,5061,990,1,0,0,0,5062,5063,7,12,0,0,5063,5064,7,22,0,0,5064,5065,7,15,0,0,5065,5066,7,24,0,0,5066,992,1,0,0,0,5067,5068,7,24,0,0,5068,5069,7,13,0,0,5069,5070,7,17,0,0,5070,5071,7,7,0,0,5071,5072,7,16,0,0,5072,5073,5,95,0,0,5073,5074,7,9,0,0,5074,5075,7,16,0,0,5075,5076,7,13,0,0,5076,5077,7,17,0,0,5077,5078,7,14,0,0,5078,5079,7,16,0,0,5079,5080,5,95,0,0,5080,5081,7,24,0,0,5081,5082,7,5,0,0,5082,5083,7,13,0,0,5083,5084,7,5,0,0,5084,5085,7,15,0,0,5085,5086,7,9,0,0,5086,994,1,0,0,0,5087,5088,7,27,0,0,5088,5089,7,5,0,0,5089,5090,7,13,0,0,5090,5091,7,17,0,0,5091,5092,7,5,0,0,5092,5093,7,18,0,0,5093,5094,7,6,0,0,5094,5095,7,10,0,0,5095,5096,5,95,0,0,5096,5097,7,14,0,0,5097,5098,7,19,0,0,5098,5099,7,7,0,0,5099,5100,7,25,0,0,5100,5101,7,6,0,0,5101,5102,7,17,0,0,5102,5103,7,14,0,0,5103,5104,7,16,0,0,5104,996,1,0,0,0,5105,5106,7,10,0,0,5106,5107,7,13,0,0,5107,5108,7,13,0,0,5108,5109,7,19,0,0,5109,5110,7,13,0,0,5110,998,1,0,0,0,5111,5112,7,22,0,0,5112,5113,7,9,0,0,5113,5114,7,10,0,0,5114,5115,5,95,0,0,5115,5116,7,27,0,0,5116,5117,7,5,0,0,5117,5118,7,13,0,0,5118,5119,7,17,0,0,5119,5120,7,5,0,0,5120,5121,7,18,0,0,5121,5122,7,6,0,0,5122,5123,7,10,0,0,5123,1e3,1,0,0,0,5124,5125,7,22,0,0,5125,5126,7,9,0,0,5126,5127,7,10,0,0,5127,5128,5,95,0,0,5128,5129,7,14,0,0,5129,5130,7,19,0,0,5130,5131,7,6,0,0,5131,5132,7,22,0,0,5132,5133,7,15,0,0,5133,5134,7,7,0,0,5134,1002,1,0,0,0,5135,5136,7,5,0,0,5136,5137,7,6,0,0,5137,5138,7,17,0,0,5138,5139,7,5,0,0,5139,5140,7,9,0,0,5140,1004,1,0,0,0,5141,5142,7,14,0,0,5142,5143,7,19,0,0,5143,5144,7,7,0,0,5144,5145,7,9,0,0,5145,5146,7,16,0,0,5146,5147,7,5,0,0,5147,5148,7,7,0,0,5148,5149,7,16,0,0,5149,1006,1,0,0,0,5150,5151,7,24,0,0,5151,5152,7,10,0,0,5152,5153,7,13,0,0,5153,5154,7,25,0,0,5154,5155,7,19,0,0,5155,5156,7,13,0,0,5156,5157,7,15,0,0,5157,1008,1,0,0,0,5158,5159,7,23,0,0,5159,5160,7,10,0,0,5160,5161,7,16,0,0,5161,1010,1,0,0,0,5162,5163,7,12,0,0,5163,5164,7,17,0,0,5164,5165,7,5,0,0,5165,5166,7,23,0,0,5166,5167,7,7,0,0,5167,5168,7,19,0,0,5168,5169,7,9,0,0,5169,5170,7,16,0,0,5170,5171,7,17,0,0,5171,5172,7,14,0,0,5172,5173,7,9,0,0,5173,1012,1,0,0,0,5174,5175,7,9,0,0,5175,5176,7,16,0,0,5176,5177,7,5,0,0,5177,5178,7,14,0,0,5178,5179,7,21,0,0,5179,5180,7,10,0,0,5180,5181,7,12,0,0,5181,1014,1,0,0,0,5182,5183,7,10,0,0,5183,5184,7,6,0,0,5184,5185,7,9,0,0,5185,5186,7,17,0,0,5186,5187,7,25,0,0,5187,1016,1,0,0,0,5188,5189,7,29,0,0,5189,5190,7,20,0,0,5190,5191,7,17,0,0,5191,5192,7,6,0,0,5192,5193,7,10,0,0,5193,1018,1,0,0,0,5194,5195,7,13,0,0,5195,5196,7,10,0,0,5196,5197,7,27,0,0,5197,5198,7,10,0,0,5198,5199,7,13,0,0,5199,5200,7,9,0,0,5200,5201,7,10,0,0,5201,1020,1,0,0,0,5202,5203,7,25,0,0,5203,5204,7,19,0,0,5204,5205,7,13,0,0,5205,5206,7,10,0,0,5206,5207,7,5,0,0,5207,5208,7,14,0,0,5208,5209,7,20,0,0,5209,1022,1,0,0,0,5210,5211,7,9,0,0,5211,5212,7,6,0,0,5212,5213,7,17,0,0,5213,5214,7,14,0,0,5214,5215,7,10,0,0,5215,1024,1,0,0,0,5216,5217,7,10,0,0,5217,5218,7,26,0,0,5218,5219,7,17,0,0,5219,5220,7,16,0,0,5220,1026,1,0,0,0,5221,5222,7,13,0,0,5222,5223,7,10,0,0,5223,5224,7,16,0,0,5224,5225,7,22,0,0,5225,5226,7,13,0,0,5226,5227,7,7,0,0,5227,1028,1,0,0,0,5228,5229,7,28,0,0,5229,5230,7,22,0,0,5230,5231,7,10,0,0,5231,5232,7,13,0,0,5232,5233,7,8,0,0,5233,1030,1,0,0,0,5234,5235,7,13,0,0,5235,5236,7,5,0,0,5236,5237,7,17,0,0,5237,5238,7,9,0,0,5238,5239,7,10,0,0,5239,1032,1,0,0,0,5240,5241,7,9,0,0,5241,5242,7,28,0,0,5242,5243,7,6,0,0,5243,5244,7,9,0,0,5244,5245,7,16,0,0,5245,5246,7,5,0,0,5246,5247,7,16,0,0,5247,5248,7,10,0,0,5248,1034,1,0,0,0,5249,5250,7,12,0,0,5250,5251,7,10,0,0,5251,5252,7,18,0,0,5252,5253,7,22,0,0,5253,5254,7,23,0,0,5254,1036,1,0,0,0,5255,5256,7,6,0,0,5256,5257,7,19,0,0,5257,5258,7,23,0,0,5258,1038,1,0,0,0,5259,5260,7,17,0,0,5260,5261,7,7,0,0,5261,5262,7,25,0,0,5262,5263,7,19,0,0,5263,1040,1,0,0,0,5264,5265,7,7,0,0,5265,5266,7,19,0,0,5266,5267,7,16,0,0,5267,5268,7,17,0,0,5268,5269,7,14,0,0,5269,5270,7,10,0,0,5270,1042,1,0,0,0,5271,5272,7,29,0,0,5272,5273,7,5,0,0,5273,5274,7,13,0,0,5274,5275,7,7,0,0,5275,5276,7,17,0,0,5276,5277,7,7,0,0,5277,5278,7,23,0,0,5278,1044,1,0,0,0,5279,5280,7,10,0,0,5280,5281,7,26,0,0,5281,5282,7,14,0,0,5282,5283,7,10,0,0,5283,5284,7,24,0,0,5284,5285,7,16,0,0,5285,5286,7,17,0,0,5286,5287,7,19,0,0,5287,5288,7,7,0,0,5288,1046,1,0,0,0,5289,5290,7,5,0,0,5290,5291,7,9,0,0,5291,5292,7,9,0,0,5292,5293,7,10,0,0,5293,5294,7,13,0,0,5294,5295,7,16,0,0,5295,1048,1,0,0,0,5296,5297,7,6,0,0,5297,5298,7,19,0,0,5298,5299,7,19,0,0,5299,5300,7,24,0,0,5300,1050,1,0,0,0,5301,5302,7,19,0,0,5302,5303,7,24,0,0,5303,5304,7,10,0,0,5304,5305,7,7,0,0,5305,1052,1,0,0,0,5306,5307,7,5,0,0,5307,5308,7,18,0,0,5308,5309,7,9,0,0,5309,1054,1,0,0,0,5310,5311,7,14,0,0,5311,5312,7,18,0,0,5312,5313,7,13,0,0,5313,5314,7,16,0,0,5314,1056,1,0,0,0,5315,5316,7,14,0,0,5316,5317,7,10,0,0,5317,5318,7,17,0,0,5318,5319,7,6,0,0,5319,1058,1,0,0,0,5320,5321,7,14,0,0,5321,5322,7,10,0,0,5322,5323,7,17,0,0,5323,5324,7,6,0,0,5324,5325,7,17,0,0,5325,5326,7,7,0,0,5326,5327,7,23,0,0,5327,1060,1,0,0,0,5328,5329,7,12,0,0,5329,5330,7,10,0,0,5330,5331,7,23,0,0,5331,5332,7,13,0,0,5332,5333,7,10,0,0,5333,5334,7,10,0,0,5334,5335,7,9,0,0,5335,1062,1,0,0,0,5336,5337,7,12,0,0,5337,5338,7,17,0,0,5338,5339,7,27,0,0,5339,1064,1,0,0,0,5340,5341,7,10,0,0,5341,5342,7,26,0,0,5342,5343,7,24,0,0,5343,1066,1,0,0,0,5344,5345,7,25,0,0,5345,5346,7,5,0,0,5346,5347,7,14,0,0,5347,5348,7,16,0,0,5348,5349,7,19,0,0,5349,5350,7,13,0,0,5350,5351,7,17,0,0,5351,5352,7,5,0,0,5352,5353,7,6,0,0,5353,1068,1,0,0,0,5354,5355,7,25,0,0,5355,5356,7,6,0,0,5356,5357,7,19,0,0,5357,5358,7,19,0,0,5358,5359,7,13,0,0,5359,1070,1,0,0,0,5360,5361,7,23,0,0,5361,5362,7,14,0,0,5362,5363,7,12,0,0,5363,1072,1,0,0,0,5364,5365,7,6,0,0,5365,5366,7,14,0,0,5366,5367,7,15,0,0,5367,1074,1,0,0,0,5368,5369,7,6,0,0,5369,5370,7,7,0,0,5370,1076,1,0,0,0,5371,5372,7,6,0,0,5372,5373,7,19,0,0,5373,5374,7,23,0,0,5374,5375,5,49,0,0,5375,5376,5,48,0,0,5376,1078,1,0,0,0,5377,5378,7,15,0,0,5378,5379,7,17,0,0,5379,5380,7,7,0,0,5380,5381,5,95,0,0,5381,5382,7,9,0,0,5382,5383,7,14,0,0,5383,5384,7,5,0,0,5384,5385,7,6,0,0,5385,5386,7,10,0,0,5386,1080,1,0,0,0,5387,5388,7,15,0,0,5388,5389,7,19,0,0,5389,5390,7,12,0,0,5390,1082,1,0,0,0,5391,5392,7,24,0,0,5392,5393,7,17,0,0,5393,1084,1,0,0,0,5394,5395,7,24,0,0,5395,5396,7,19,0,0,5396,5397,7,29,0,0,5397,5398,7,10,0,0,5398,5399,7,13,0,0,5399,1086,1,0,0,0,5400,5401,7,13,0,0,5401,5402,7,5,0,0,5402,5403,7,12,0,0,5403,5404,7,17,0,0,5404,5405,7,5,0,0,5405,5406,7,7,0,0,5406,5407,7,9,0,0,5407,1088,1,0,0,0,5408,5409,7,13,0,0,5409,5410,7,19,0,0,5410,5411,7,22,0,0,5411,5412,7,7,0,0,5412,5413,7,12,0,0,5413,1090,1,0,0,0,5414,5415,7,9,0,0,5415,5416,7,14,0,0,5416,5417,7,5,0,0,5417,5418,7,6,0,0,5418,5419,7,10,0,0,5419,1092,1,0,0,0,5420,5421,7,9,0,0,5421,5422,7,17,0,0,5422,5423,7,23,0,0,5423,5424,7,7,0,0,5424,1094,1,0,0,0,5425,5426,7,9,0,0,5426,5427,7,28,0,0,5427,5428,7,13,0,0,5428,5429,7,16,0,0,5429,1096,1,0,0,0,5430,5431,7,16,0,0,5431,5432,7,13,0,0,5432,5433,7,17,0,0,5433,5434,7,15,0,0,5434,5435,5,95,0,0,5435,5436,7,9,0,0,5436,5437,7,14,0,0,5437,5438,7,5,0,0,5438,5439,7,6,0,0,5439,5440,7,10,0,0,5440,1098,1,0,0,0,5441,5442,7,16,0,0,5442,5443,7,13,0,0,5443,5444,7,22,0,0,5444,5445,7,7,0,0,5445,5446,7,14,0,0,5446,1100,1,0,0,0,5447,5448,7,29,0,0,5448,5449,7,17,0,0,5449,5450,7,12,0,0,5450,5451,7,16,0,0,5451,5452,7,20,0,0,5452,5453,5,95,0,0,5453,5454,7,18,0,0,5454,5455,7,22,0,0,5455,5456,7,14,0,0,5456,5457,7,21,0,0,5457,5458,7,10,0,0,5458,5459,7,16,0,0,5459,1102,1,0,0,0,5460,5461,7,13,0,0,5461,5462,7,5,0,0,5462,5463,7,7,0,0,5463,5464,7,12,0,0,5464,5465,7,19,0,0,5465,5466,7,15,0,0,5466,1104,1,0,0,0,5467,5468,7,9,0,0,5468,5469,7,10,0,0,5469,5470,7,16,0,0,5470,5471,7,9,0,0,5471,5472,7,10,0,0,5472,5473,7,10,0,0,5473,5474,7,12,0,0,5474,1106,1,0,0,0,5475,5476,7,5,0,0,5476,5477,7,14,0,0,5477,5478,7,19,0,0,5478,5479,7,9,0,0,5479,1108,1,0,0,0,5480,5481,7,5,0,0,5481,5482,7,14,0,0,5482,5483,7,19,0,0,5483,5484,7,9,0,0,5484,5485,7,12,0,0,5485,1110,1,0,0,0,5486,5487,7,5,0,0,5487,5488,7,9,0,0,5488,5489,7,17,0,0,5489,5490,7,7,0,0,5490,1112,1,0,0,0,5491,5492,7,5,0,0,5492,5493,7,9,0,0,5493,5494,7,17,0,0,5494,5495,7,7,0,0,5495,5496,7,12,0,0,5496,1114,1,0,0,0,5497,5498,7,5,0,0,5498,5499,7,16,0,0,5499,5500,7,5,0,0,5500,5501,7,7,0,0,5501,1116,1,0,0,0,5502,5503,7,5,0,0,5503,5504,7,16,0,0,5504,5505,7,5,0,0,5505,5506,7,7,0,0,5506,5507,7,12,0,0,5507,1118,1,0,0,0,5508,5509,7,5,0,0,5509,5510,7,16,0,0,5510,5511,7,5,0,0,5511,5512,7,7,0,0,5512,5513,5,50,0,0,5513,1120,1,0,0,0,5514,5515,7,5,0,0,5515,5516,7,16,0,0,5516,5517,7,5,0,0,5517,5518,7,7,0,0,5518,5519,5,50,0,0,5519,5520,7,12,0,0,5520,1122,1,0,0,0,5521,5522,7,14,0,0,5522,5523,7,19,0,0,5523,5524,7,9,0,0,5524,1124,1,0,0,0,5525,5526,7,14,0,0,5526,5527,7,19,0,0,5527,5528,7,9,0,0,5528,5529,7,12,0,0,5529,1126,1,0,0,0,5530,5531,7,14,0,0,5531,5532,7,19,0,0,5532,5533,7,16,0,0,5533,1128,1,0,0,0,5534,5535,7,14,0,0,5535,5536,7,19,0,0,5536,5537,7,16,0,0,5537,5538,7,12,0,0,5538,1130,1,0,0,0,5539,5540,7,9,0,0,5540,5541,7,17,0,0,5541,5542,7,7,0,0,5542,1132,1,0,0,0,5543,5544,7,9,0,0,5544,5545,7,17,0,0,5545,5546,7,7,0,0,5546,5547,7,12,0,0,5547,1134,1,0,0,0,5548,5549,7,16,0,0,5549,5550,7,5,0,0,5550,5551,7,7,0,0,5551,1136,1,0,0,0,5552,5553,7,16,0,0,5553,5554,7,5,0,0,5554,5555,7,7,0,0,5555,5556,7,12,0,0,5556,1138,1,0,0,0,5557,5558,7,9,0,0,5558,5559,7,17,0,0,5559,5560,7,7,0,0,5560,5561,7,20,0,0,5561,1140,1,0,0,0,5562,5563,7,14,0,0,5563,5564,7,19,0,0,5564,5565,7,9,0,0,5565,5566,7,20,0,0,5566,1142,1,0,0,0,5567,5568,7,16,0,0,5568,5569,7,5,0,0,5569,5570,7,7,0,0,5570,5571,7,20,0,0,5571,1144,1,0,0,0,5572,5573,7,5,0,0,5573,5574,7,9,0,0,5574,5575,7,17,0,0,5575,5576,7,7,0,0,5576,5577,7,20,0,0,5577,1146,1,0,0,0,5578,5579,7,5,0,0,5579,5580,7,14,0,0,5580,5581,7,19,0,0,5581,5582,7,9,0,0,5582,5583,7,20,0,0,5583,1148,1,0,0,0,5584,5585,7,5,0,0,5585,5586,7,16,0,0,5586,5587,7,5,0,0,5587,5588,7,7,0,0,5588,5589,7,20,0,0,5589,1150,1,0,0,0,5590,5591,7,18,0,0,5591,5592,7,17,0,0,5592,5593,7,16,0,0,5593,5594,5,95,0,0,5594,5595,7,6,0,0,5595,5596,7,10,0,0,5596,5597,7,7,0,0,5597,5598,7,23,0,0,5598,5599,7,16,0,0,5599,5600,7,20,0,0,5600,1152,1,0,0,0,5601,5602,7,14,0,0,5602,5603,7,20,0,0,5603,5604,7,5,0,0,5604,5605,7,13,0,0,5605,5606,5,95,0,0,5606,5607,7,6,0,0,5607,5608,7,10,0,0,5608,5609,7,7,0,0,5609,5610,7,23,0,0,5610,5611,7,16,0,0,5611,5612,7,20,0,0,5612,1154,1,0,0,0,5613,5614,7,14,0,0,5614,5615,7,20,0,0,5615,5616,7,5,0,0,5616,5617,7,13,0,0,5617,5618,7,5,0,0,5618,5619,7,14,0,0,5619,5620,7,16,0,0,5620,5621,7,10,0,0,5621,5622,7,13,0,0,5622,5623,5,95,0,0,5623,5624,7,6,0,0,5624,5625,7,10,0,0,5625,5626,7,7,0,0,5626,5627,7,23,0,0,5627,5628,7,16,0,0,5628,5629,7,20,0,0,5629,1156,1,0,0,0,5630,5631,7,6,0,0,5631,5632,7,19,0,0,5632,5633,7,29,0,0,5633,5634,7,10,0,0,5634,5635,7,13,0,0,5635,1158,1,0,0,0,5636,5637,7,19,0,0,5637,5638,7,14,0,0,5638,5639,7,16,0,0,5639,5640,7,10,0,0,5640,5641,7,16,0,0,5641,5642,5,95,0,0,5642,5643,7,6,0,0,5643,5644,7,10,0,0,5644,5645,7,7,0,0,5645,5646,7,23,0,0,5646,5647,7,16,0,0,5647,5648,7,20,0,0,5648,1160,1,0,0,0,5649,5650,7,22,0,0,5650,5651,7,24,0,0,5651,5652,7,24,0,0,5652,5653,7,10,0,0,5653,5654,7,13,0,0,5654,1162,1,0,0,0,5655,5656,7,5,0,0,5656,5657,7,9,0,0,5657,5658,7,14,0,0,5658,5659,7,17,0,0,5659,5660,7,17,0,0,5660,1164,1,0,0,0,5661,5662,7,18,0,0,5662,5663,7,16,0,0,5663,5664,7,13,0,0,5664,5665,7,17,0,0,5665,5666,7,15,0,0,5666,1166,1,0,0,0,5667,5668,7,14,0,0,5668,5669,7,20,0,0,5669,5670,7,13,0,0,5670,1168,1,0,0,0,5671,5672,7,14,0,0,5672,5673,7,19,0,0,5673,5674,7,7,0,0,5674,5675,7,14,0,0,5675,5676,7,5,0,0,5676,5677,7,16,0,0,5677,1170,1,0,0,0,5678,5679,7,14,0,0,5679,5680,7,19,0,0,5680,5681,7,7,0,0,5681,5682,7,14,0,0,5682,5683,7,5,0,0,5683,5684,7,16,0,0,5684,5685,5,95,0,0,5685,5686,7,29,0,0,5686,5687,7,9,0,0,5687,1172,1,0,0,0,5688,5689,7,25,0,0,5689,5690,7,19,0,0,5690,5691,7,13,0,0,5691,5692,7,15,0,0,5692,5693,7,5,0,0,5693,5694,7,16,0,0,5694,1174,1,0,0,0,5695,5696,7,17,0,0,5696,5697,7,7,0,0,5697,5698,7,17,0,0,5698,5699,7,16,0,0,5699,5700,7,14,0,0,5700,5701,7,5,0,0,5701,5702,7,24,0,0,5702,1176,1,0,0,0,5703,5704,7,6,0,0,5704,5705,7,10,0,0,5705,5706,7,7,0,0,5706,5707,7,23,0,0,5707,5708,7,16,0,0,5708,5709,7,20,0,0,5709,1178,1,0,0,0,5710,5711,7,6,0,0,5711,5712,7,24,0,0,5712,5713,7,5,0,0,5713,5714,7,12,0,0,5714,1180,1,0,0,0,5715,5716,7,6,0,0,5716,5717,7,16,0,0,5717,5718,7,13,0,0,5718,5719,7,17,0,0,5719,5720,7,15,0,0,5720,1182,1,0,0,0,5721,5722,7,15,0,0,5722,5723,7,12,0,0,5723,5724,5,53,0,0,5724,1184,1,0,0,0,5725,5726,7,24,0,0,5726,5727,7,5,0,0,5727,5728,7,13,0,0,5728,5729,7,9,0,0,5729,5730,7,10,0,0,5730,5731,5,95,0,0,5731,5732,7,17,0,0,5732,5733,7,12,0,0,5733,5734,7,10,0,0,5734,5735,7,7,0,0,5735,5736,7,16,0,0,5736,1186,1,0,0,0,5737,5738,7,24,0,0,5738,5739,7,23,0,0,5739,5740,5,95,0,0,5740,5741,7,14,0,0,5741,5742,7,6,0,0,5742,5743,7,17,0,0,5743,5744,7,10,0,0,5744,5745,7,7,0,0,5745,5746,7,16,0,0,5746,5747,5,95,0,0,5747,5748,7,10,0,0,5748,5749,7,7,0,0,5749,5750,7,14,0,0,5750,5751,7,19,0,0,5751,5752,7,12,0,0,5752,5753,7,17,0,0,5753,5754,7,7,0,0,5754,5755,7,23,0,0,5755,1188,1,0,0,0,5756,5757,7,28,0,0,5757,5758,7,22,0,0,5758,5759,7,19,0,0,5759,5760,7,16,0,0,5760,5761,7,10,0,0,5761,5762,5,95,0,0,5762,5763,7,17,0,0,5763,5764,7,12,0,0,5764,5765,7,10,0,0,5765,5766,7,7,0,0,5766,5767,7,16,0,0,5767,1190,1,0,0,0,5768,5769,7,28,0,0,5769,5770,7,22,0,0,5770,5771,7,19,0,0,5771,5772,7,16,0,0,5772,5773,7,10,0,0,5773,5774,5,95,0,0,5774,5775,7,6,0,0,5775,5776,7,17,0,0,5776,5777,7,16,0,0,5777,5778,7,10,0,0,5778,5779,7,13,0,0,5779,5780,7,5,0,0,5780,5781,7,6,0,0,5781,1192,1,0,0,0,5782,5783,7,28,0,0,5783,5784,7,22,0,0,5784,5785,7,19,0,0,5785,5786,7,16,0,0,5786,5787,7,10,0,0,5787,5788,5,95,0,0,5788,5789,7,7,0,0,5789,5790,7,22,0,0,5790,5791,7,6,0,0,5791,5792,7,6,0,0,5792,5793,7,5,0,0,5793,5794,7,18,0,0,5794,5795,7,6,0,0,5795,5796,7,10,0,0,5796,1194,1,0,0,0,5797,5798,7,13,0,0,5798,5799,7,10,0,0,5799,5800,7,23,0,0,5800,5801,7,10,0,0,5801,5802,7,26,0,0,5802,5803,7,24,0,0,5803,5804,5,95,0,0,5804,5805,7,14,0,0,5805,5806,7,19,0,0,5806,5807,7,22,0,0,5807,5808,7,7,0,0,5808,5809,7,16,0,0,5809,1196,1,0,0,0,5810,5811,7,13,0,0,5811,5812,7,10,0,0,5812,5813,7,23,0,0,5813,5814,7,10,0,0,5814,5815,7,26,0,0,5815,5816,7,24,0,0,5816,5817,5,95,0,0,5817,5818,7,17,0,0,5818,5819,7,7,0,0,5819,5820,7,9,0,0,5820,5821,7,16,0,0,5821,5822,7,13,0,0,5822,1198,1,0,0,0,5823,5824,7,13,0,0,5824,5825,7,10,0,0,5825,5826,7,23,0,0,5826,5827,7,10,0,0,5827,5828,7,26,0,0,5828,5829,7,24,0,0,5829,5830,5,95,0,0,5830,5831,7,6,0,0,5831,5832,7,17,0,0,5832,5833,7,21,0,0,5833,5834,7,10,0,0,5834,1200,1,0,0,0,5835,5836,7,13,0,0,5836,5837,7,10,0,0,5837,5838,7,23,0,0,5838,5839,7,10,0,0,5839,5840,7,26,0,0,5840,5841,7,24,0,0,5841,5842,5,95,0,0,5842,5843,7,15,0,0,5843,5844,7,5,0,0,5844,5845,7,16,0,0,5845,5846,7,14,0,0,5846,5847,7,20,0,0,5847,1202,1,0,0,0,5848,5849,7,13,0,0,5849,5850,7,10,0,0,5850,5851,7,23,0,0,5851,5852,7,10,0,0,5852,5853,7,26,0,0,5853,5854,7,24,0,0,5854,5855,5,95,0,0,5855,5856,7,15,0,0,5856,5857,7,5,0,0,5857,5858,7,16,0,0,5858,5859,7,14,0,0,5859,5860,7,20,0,0,5860,5861,7,10,0,0,5861,5862,7,9,0,0,5862,1204,1,0,0,0,5863,5864,7,13,0,0,5864,5865,7,10,0,0,5865,5866,7,23,0,0,5866,5867,7,10,0,0,5867,5868,7,26,0,0,5868,5869,7,24,0,0,5869,5870,5,95,0,0,5870,5871,7,13,0,0,5871,5872,7,10,0,0,5872,5873,7,24,0,0,5873,5874,7,6,0,0,5874,5875,7,5,0,0,5875,5876,7,14,0,0,5876,5877,7,10,0,0,5877,1206,1,0,0,0,5878,5879,7,13,0,0,5879,5880,7,10,0,0,5880,5881,7,23,0,0,5881,5882,7,10,0,0,5882,5883,7,26,0,0,5883,5884,7,24,0,0,5884,5885,5,95,0,0,5885,5886,7,9,0,0,5886,5887,7,24,0,0,5887,5888,7,6,0,0,5888,5889,7,17,0,0,5889,5890,7,16,0,0,5890,5891,5,95,0,0,5891,5892,7,16,0,0,5892,5893,7,19,0,0,5893,5894,5,95,0,0,5894,5895,7,5,0,0,5895,5896,7,13,0,0,5896,5897,7,13,0,0,5897,5898,7,5,0,0,5898,5899,7,8,0,0,5899,1208,1,0,0,0,5900,5901,7,13,0,0,5901,5902,7,10,0,0,5902,5903,7,23,0,0,5903,5904,7,10,0,0,5904,5905,7,26,0,0,5905,5906,7,24,0,0,5906,5907,5,95,0,0,5907,5908,7,9,0,0,5908,5909,7,24,0,0,5909,5910,7,6,0,0,5910,5911,7,17,0,0,5911,5912,7,16,0,0,5912,5913,5,95,0,0,5913,5914,7,16,0,0,5914,5915,7,19,0,0,5915,5916,5,95,0,0,5916,5917,7,16,0,0,5917,5918,7,5,0,0,5918,5919,7,18,0,0,5919,5920,7,6,0,0,5920,5921,7,10,0,0,5921,1210,1,0,0,0,5922,5923,7,13,0,0,5923,5924,7,10,0,0,5924,5925,7,23,0,0,5925,5926,7,10,0,0,5926,5927,7,26,0,0,5927,5928,7,24,0,0,5928,5929,5,95,0,0,5929,5930,7,9,0,0,5930,5931,7,22,0,0,5931,5932,7,18,0,0,5932,5933,7,9,0,0,5933,5934,7,16,0,0,5934,5935,7,13,0,0,5935,1212,1,0,0,0,5936,5937,7,13,0,0,5937,5938,7,10,0,0,5938,5939,7,24,0,0,5939,5940,7,10,0,0,5940,5941,7,5,0,0,5941,5942,7,16,0,0,5942,1214,1,0,0,0,5943,5944,7,13,0,0,5944,5945,7,24,0,0,5945,5946,7,5,0,0,5946,5947,7,12,0,0,5947,1216,1,0,0,0,5948,5949,7,13,0,0,5949,5950,7,16,0,0,5950,5951,7,13,0,0,5951,5952,7,17,0,0,5952,5953,7,15,0,0,5953,1218,1,0,0,0,5954,5955,7,9,0,0,5955,5956,7,24,0,0,5956,5957,7,6,0,0,5957,5958,7,17,0,0,5958,5959,7,16,0,0,5959,5960,5,95,0,0,5960,5961,7,24,0,0,5961,5962,7,5,0,0,5962,5963,7,13,0,0,5963,5964,7,16,0,0,5964,1220,1,0,0,0,5965,5966,7,9,0,0,5966,5967,7,16,0,0,5967,5968,7,5,0,0,5968,5969,7,13,0,0,5969,5970,7,16,0,0,5970,5971,7,9,0,0,5971,5972,5,95,0,0,5972,5973,7,29,0,0,5973,5974,7,17,0,0,5974,5975,7,16,0,0,5975,5976,7,20,0,0,5976,1222,1,0,0,0,5977,5978,7,9,0,0,5978,5979,7,16,0,0,5979,5980,7,13,0,0,5980,5981,7,17,0,0,5981,5982,7,7,0,0,5982,5983,7,23,0,0,5983,5984,5,95,0,0,5984,5985,7,16,0,0,5985,5986,7,19,0,0,5986,5987,5,95,0,0,5987,5988,7,5,0,0,5988,5989,7,13,0,0,5989,5990,7,13,0,0,5990,5991,7,5,0,0,5991,5992,7,8,0,0,5992,1224,1,0,0,0,5993,5994,7,9,0,0,5994,5995,7,16,0,0,5995,5996,7,13,0,0,5996,5997,7,17,0,0,5997,5998,7,7,0,0,5998,5999,7,23,0,0,5999,6e3,5,95,0,0,6e3,6001,7,16,0,0,6001,6002,7,19,0,0,6002,6003,5,95,0,0,6003,6004,7,16,0,0,6004,6005,7,5,0,0,6005,6006,7,18,0,0,6006,6007,7,6,0,0,6007,6008,7,10,0,0,6008,1226,1,0,0,0,6009,6010,7,9,0,0,6010,6011,7,16,0,0,6011,6012,7,13,0,0,6012,6013,7,24,0,0,6013,6014,7,19,0,0,6014,6015,7,9,0,0,6015,1228,1,0,0,0,6016,6017,7,9,0,0,6017,6018,7,22,0,0,6018,6019,7,18,0,0,6019,6020,7,9,0,0,6020,6021,7,16,0,0,6021,6022,7,13,0,0,6022,1230,1,0,0,0,6023,6024,7,16,0,0,6024,6025,7,19,0,0,6025,6026,5,95,0,0,6026,6027,7,5,0,0,6027,6028,7,9,0,0,6028,6029,7,14,0,0,6029,6030,7,17,0,0,6030,6031,7,17,0,0,6031,1232,1,0,0,0,6032,6033,7,16,0,0,6033,6034,7,19,0,0,6034,6035,5,95,0,0,6035,6036,7,20,0,0,6036,6037,7,10,0,0,6037,6038,7,26,0,0,6038,1234,1,0,0,0,6039,6040,7,16,0,0,6040,6041,7,13,0,0,6041,6042,7,5,0,0,6042,6043,7,7,0,0,6043,6044,7,9,0,0,6044,6045,7,6,0,0,6045,6046,7,5,0,0,6046,6047,7,16,0,0,6047,6048,7,10,0,0,6048,1236,1,0,0,0,6049,6050,7,22,0,0,6050,6051,7,7,0,0,6051,6052,7,17,0,0,6052,6053,7,9,0,0,6053,6054,7,16,0,0,6054,6055,7,13,0,0,6055,1238,1,0,0,0,6056,6057,7,5,0,0,6057,6058,7,23,0,0,6058,6059,7,10,0,0,6059,1240,1,0,0,0,6060,6061,7,14,0,0,6061,6062,7,6,0,0,6062,6063,7,19,0,0,6063,6064,7,14,0,0,6064,6065,7,21,0,0,6065,6066,5,95,0,0,6066,6067,7,16,0,0,6067,6068,7,17,0,0,6068,6069,7,15,0,0,6069,6070,7,10,0,0,6070,6071,7,9,0,0,6071,6072,7,16,0,0,6072,6073,7,5,0,0,6073,6074,7,15,0,0,6074,6075,7,24,0,0,6075,1242,1,0,0,0,6076,6077,7,12,0,0,6077,6078,7,5,0,0,6078,6079,7,16,0,0,6079,6080,7,10,0,0,6080,6081,5,95,0,0,6081,6082,7,18,0,0,6082,6083,7,17,0,0,6083,6084,7,7,0,0,6084,1244,1,0,0,0,6085,6086,7,12,0,0,6086,6087,7,5,0,0,6087,6088,7,16,0,0,6088,6089,7,10,0,0,6089,6090,5,95,0,0,6090,6091,7,24,0,0,6091,6092,7,5,0,0,6092,6093,7,13,0,0,6093,6094,7,16,0,0,6094,1246,1,0,0,0,6095,6096,7,12,0,0,6096,6097,7,5,0,0,6097,6098,7,16,0,0,6098,6099,7,10,0,0,6099,6100,5,95,0,0,6100,6101,7,16,0,0,6101,6102,7,13,0,0,6102,6103,7,22,0,0,6103,6104,7,7,0,0,6104,6105,7,14,0,0,6105,1248,1,0,0,0,6106,6107,7,17,0,0,6107,6108,7,9,0,0,6108,6109,7,25,0,0,6109,6110,7,17,0,0,6110,6111,7,7,0,0,6111,6112,7,17,0,0,6112,6113,7,16,0,0,6113,6114,7,10,0,0,6114,1250,1,0,0,0,6115,6116,7,30,0,0,6116,6117,7,22,0,0,6117,6118,7,9,0,0,6118,6119,7,16,0,0,6119,6120,7,17,0,0,6120,6121,7,25,0,0,6121,6122,7,8,0,0,6122,6123,5,95,0,0,6123,6124,7,12,0,0,6124,6125,7,5,0,0,6125,6126,7,8,0,0,6126,6127,7,9,0,0,6127,1252,1,0,0,0,6128,6129,7,30,0,0,6129,6130,7,22,0,0,6130,6131,7,9,0,0,6131,6132,7,16,0,0,6132,6133,7,17,0,0,6133,6134,7,25,0,0,6134,6135,7,8,0,0,6135,6136,5,95,0,0,6136,6137,7,20,0,0,6137,6138,7,19,0,0,6138,6139,7,22,0,0,6139,6140,7,13,0,0,6140,6141,7,9,0,0,6141,1254,1,0,0,0,6142,6143,7,30,0,0,6143,6144,7,22,0,0,6144,6145,7,9,0,0,6145,6146,7,16,0,0,6146,6147,7,17,0,0,6147,6148,7,25,0,0,6148,6149,7,8,0,0,6149,6150,5,95,0,0,6150,6151,7,17,0,0,6151,6152,7,7,0,0,6152,6153,7,16,0,0,6153,6154,7,10,0,0,6154,6155,7,13,0,0,6155,6156,7,27,0,0,6156,6157,7,5,0,0,6157,6158,7,6,0,0,6158,1256,1,0,0,0,6159,6160,7,15,0,0,6160,6161,7,5,0,0,6161,6162,7,21,0,0,6162,6163,7,10,0,0,6163,6164,5,95,0,0,6164,6165,7,12,0,0,6165,6166,7,5,0,0,6166,6167,7,16,0,0,6167,6168,7,10,0,0,6168,1258,1,0,0,0,6169,6170,7,15,0,0,6170,6171,7,5,0,0,6171,6172,7,21,0,0,6172,6173,7,10,0,0,6173,6174,5,95,0,0,6174,6175,7,17,0,0,6175,6176,7,7,0,0,6176,6177,7,16,0,0,6177,6178,7,10,0,0,6178,6179,7,13,0,0,6179,6180,7,27,0,0,6180,6181,7,5,0,0,6181,6182,7,6,0,0,6182,1260,1,0,0,0,6183,6184,7,15,0,0,6184,6185,7,5,0,0,6185,6186,7,21,0,0,6186,6187,7,10,0,0,6187,6188,5,95,0,0,6188,6189,7,16,0,0,6189,6190,7,17,0,0,6190,6191,7,15,0,0,6191,6192,7,10,0,0,6192,1262,1,0,0,0,6193,6194,7,15,0,0,6194,6195,7,5,0,0,6195,6196,7,21,0,0,6196,6197,7,10,0,0,6197,6198,5,95,0,0,6198,6199,7,16,0,0,6199,6200,7,17,0,0,6200,6201,7,15,0,0,6201,6202,7,10,0,0,6202,6203,7,9,0,0,6203,6204,7,16,0,0,6204,6205,7,5,0,0,6205,6206,7,15,0,0,6206,6207,7,24,0,0,6207,1264,1,0,0,0,6208,6209,7,15,0,0,6209,6210,7,5,0,0,6210,6211,7,21,0,0,6211,6212,7,10,0,0,6212,6213,5,95,0,0,6213,6214,7,16,0,0,6214,6215,7,17,0,0,6215,6216,7,15,0,0,6216,6217,7,10,0,0,6217,6218,7,9,0,0,6218,6219,7,16,0,0,6219,6220,7,5,0,0,6220,6221,7,15,0,0,6221,6222,7,24,0,0,6222,6223,7,16,0,0,6223,6224,7,11,0,0,6224,1266,1,0,0,0,6225,6226,7,7,0,0,6226,6227,7,19,0,0,6227,6228,7,29,0,0,6228,1268,1,0,0,0,6229,6230,7,9,0,0,6230,6231,7,16,0,0,6231,6232,7,5,0,0,6232,6233,7,16,0,0,6233,6234,7,10,0,0,6234,6235,7,15,0,0,6235,6236,7,10,0,0,6236,6237,7,7,0,0,6237,6238,7,16,0,0,6238,6239,5,95,0,0,6239,6240,7,16,0,0,6240,6241,7,17,0,0,6241,6242,7,15,0,0,6242,6243,7,10,0,0,6243,6244,7,9,0,0,6244,6245,7,16,0,0,6245,6246,7,5,0,0,6246,6247,7,15,0,0,6247,6248,7,24,0,0,6248,1270,1,0,0,0,6249,6250,7,16,0,0,6250,6251,7,17,0,0,6251,6252,7,15,0,0,6252,6253,7,10,0,0,6253,6254,7,19,0,0,6254,6255,7,25,0,0,6255,6256,7,12,0,0,6256,6257,7,5,0,0,6257,6258,7,8,0,0,6258,1272,1,0,0,0,6259,6260,7,16,0,0,6260,6261,7,13,0,0,6261,6262,7,5,0,0,6262,6263,7,7,0,0,6263,6264,7,9,0,0,6264,6265,7,5,0,0,6265,6266,7,14,0,0,6266,6267,7,16,0,0,6267,6268,7,17,0,0,6268,6269,7,19,0,0,6269,6270,7,7,0,0,6270,6271,5,95,0,0,6271,6272,7,16,0,0,6272,6273,7,17,0,0,6273,6274,7,15,0,0,6274,6275,7,10,0,0,6275,6276,7,9,0,0,6276,6277,7,16,0,0,6277,6278,7,5,0,0,6278,6279,7,15,0,0,6279,6280,7,24,0,0,6280,1274,1,0,0,0,6281,6282,7,16,0,0,6282,6283,7,19,0,0,6283,6284,5,95,0,0,6284,6285,7,16,0,0,6285,6286,7,17,0,0,6286,6287,7,15,0,0,6287,6288,7,10,0,0,6288,6289,7,9,0,0,6289,6290,7,16,0,0,6290,6291,7,5,0,0,6291,6292,7,15,0,0,6292,6293,7,24,0,0,6293,1276,1,0,0,0,6294,6295,7,16,0,0,6295,6296,7,19,0,0,6296,6297,5,95,0,0,6297,6298,7,14,0,0,6298,6299,7,20,0,0,6299,6300,7,5,0,0,6300,6301,7,13,0,0,6301,1278,1,0,0,0,6302,6303,7,16,0,0,6303,6304,7,19,0,0,6304,6305,5,95,0,0,6305,6306,7,12,0,0,6306,6307,7,5,0,0,6307,6308,7,16,0,0,6308,6309,7,10,0,0,6309,1280,1,0,0,0,6310,6311,7,16,0,0,6311,6312,7,19,0,0,6312,6313,5,95,0,0,6313,6314,7,7,0,0,6314,6315,7,22,0,0,6315,6316,7,15,0,0,6316,6317,7,18,0,0,6317,6318,7,10,0,0,6318,6319,7,13,0,0,6319,1282,1,0,0,0,6320,6324,3,1285,640,0,6321,6323,3,1287,641,0,6322,6321,1,0,0,0,6323,6326,1,0,0,0,6324,6322,1,0,0,0,6324,6325,1,0,0,0,6325,1284,1,0,0,0,6326,6324,1,0,0,0,6327,6334,7,31,0,0,6328,6329,7,32,0,0,6329,6334,4,640,6,0,6330,6331,7,33,0,0,6331,6332,7,34,0,0,6332,6334,4,640,7,0,6333,6327,1,0,0,0,6333,6328,1,0,0,0,6333,6330,1,0,0,0,6334,1286,1,0,0,0,6335,6338,3,1289,642,0,6336,6338,5,36,0,0,6337,6335,1,0,0,0,6337,6336,1,0,0,0,6338,1288,1,0,0,0,6339,6342,3,1285,640,0,6340,6342,7,0,0,0,6341,6339,1,0,0,0,6341,6340,1,0,0,0,6342,1290,1,0,0,0,6343,6344,3,1293,644,0,6344,6345,5,34,0,0,6345,1292,1,0,0,0,6346,6352,5,34,0,0,6347,6348,5,34,0,0,6348,6351,5,34,0,0,6349,6351,8,35,0,0,6350,6347,1,0,0,0,6350,6349,1,0,0,0,6351,6354,1,0,0,0,6352,6350,1,0,0,0,6352,6353,1,0,0,0,6353,1294,1,0,0,0,6354,6352,1,0,0,0,6355,6356,3,1297,646,0,6356,6357,5,34,0,0,6357,1296,1,0,0,0,6358,6364,5,34,0,0,6359,6360,5,34,0,0,6360,6363,5,34,0,0,6361,6363,8,36,0,0,6362,6359,1,0,0,0,6362,6361,1,0,0,0,6363,6366,1,0,0,0,6364,6362,1,0,0,0,6364,6365,1,0,0,0,6365,1298,1,0,0,0,6366,6364,1,0,0,0,6367,6368,7,22,0,0,6368,6369,5,38,0,0,6369,6370,3,1291,643,0,6370,1300,1,0,0,0,6371,6372,7,22,0,0,6372,6373,5,38,0,0,6373,6374,3,1293,644,0,6374,1302,1,0,0,0,6375,6376,7,22,0,0,6376,6377,5,38,0,0,6377,6378,3,1295,645,0,6378,1304,1,0,0,0,6379,6380,7,22,0,0,6380,6381,5,38,0,0,6381,6382,3,1297,646,0,6382,1306,1,0,0,0,6383,6384,3,1309,652,0,6384,6385,5,39,0,0,6385,1308,1,0,0,0,6386,6392,5,39,0,0,6387,6388,5,39,0,0,6388,6391,5,39,0,0,6389,6391,8,37,0,0,6390,6387,1,0,0,0,6390,6389,1,0,0,0,6391,6394,1,0,0,0,6392,6390,1,0,0,0,6392,6393,1,0,0,0,6393,1310,1,0,0,0,6394,6392,1,0,0,0,6395,6396,7,10,0,0,6396,6397,5,39,0,0,6397,6398,1,0,0,0,6398,6399,6,653,2,0,6399,6400,6,653,3,0,6400,1312,1,0,0,0,6401,6402,3,1315,655,0,6402,6403,5,39,0,0,6403,1314,1,0,0,0,6404,6405,7,22,0,0,6405,6406,5,38,0,0,6406,6407,3,1309,652,0,6407,1316,1,0,0,0,6408,6410,5,36,0,0,6409,6411,3,1319,657,0,6410,6409,1,0,0,0,6410,6411,1,0,0,0,6411,6412,1,0,0,0,6412,6413,5,36,0,0,6413,6414,6,656,4,0,6414,6415,1,0,0,0,6415,6416,6,656,5,0,6416,1318,1,0,0,0,6417,6421,3,1285,640,0,6418,6420,3,1289,642,0,6419,6418,1,0,0,0,6420,6423,1,0,0,0,6421,6419,1,0,0,0,6421,6422,1,0,0,0,6422,1320,1,0,0,0,6423,6421,1,0,0,0,6424,6425,3,1323,659,0,6425,6426,5,39,0,0,6426,1322,1,0,0,0,6427,6428,7,18,0,0,6428,6432,5,39,0,0,6429,6431,7,38,0,0,6430,6429,1,0,0,0,6431,6434,1,0,0,0,6432,6430,1,0,0,0,6432,6433,1,0,0,0,6433,1324,1,0,0,0,6434,6432,1,0,0,0,6435,6436,3,1327,661,0,6436,6437,5,39,0,0,6437,1326,1,0,0,0,6438,6439,7,18,0,0,6439,6440,3,1309,652,0,6440,1328,1,0,0,0,6441,6442,3,1331,663,0,6442,6443,5,39,0,0,6443,1330,1,0,0,0,6444,6445,7,26,0,0,6445,6449,5,39,0,0,6446,6448,7,39,0,0,6447,6446,1,0,0,0,6448,6451,1,0,0,0,6449,6447,1,0,0,0,6449,6450,1,0,0,0,6450,1332,1,0,0,0,6451,6449,1,0,0,0,6452,6453,3,1335,665,0,6453,6454,5,39,0,0,6454,1334,1,0,0,0,6455,6456,7,26,0,0,6456,6457,3,1309,652,0,6457,1336,1,0,0,0,6458,6459,3,1343,669,0,6459,1338,1,0,0,0,6460,6461,3,1343,669,0,6461,6462,5,46,0,0,6462,6463,5,46,0,0,6463,6464,1,0,0,0,6464,6465,6,667,6,0,6465,1340,1,0,0,0,6466,6467,3,1343,669,0,6467,6469,5,46,0,0,6468,6470,3,1343,669,0,6469,6468,1,0,0,0,6469,6470,1,0,0,0,6470,6476,1,0,0,0,6471,6473,7,10,0,0,6472,6474,7,1,0,0,6473,6472,1,0,0,0,6473,6474,1,0,0,0,6474,6475,1,0,0,0,6475,6477,3,1343,669,0,6476,6471,1,0,0,0,6476,6477,1,0,0,0,6477,6495,1,0,0,0,6478,6479,5,46,0,0,6479,6485,3,1343,669,0,6480,6482,7,10,0,0,6481,6483,7,1,0,0,6482,6481,1,0,0,0,6482,6483,1,0,0,0,6483,6484,1,0,0,0,6484,6486,3,1343,669,0,6485,6480,1,0,0,0,6485,6486,1,0,0,0,6486,6495,1,0,0,0,6487,6488,3,1343,669,0,6488,6490,7,10,0,0,6489,6491,7,1,0,0,6490,6489,1,0,0,0,6490,6491,1,0,0,0,6491,6492,1,0,0,0,6492,6493,3,1343,669,0,6493,6495,1,0,0,0,6494,6466,1,0,0,0,6494,6478,1,0,0,0,6494,6487,1,0,0,0,6495,1342,1,0,0,0,6496,6498,7,0,0,0,6497,6496,1,0,0,0,6498,6499,1,0,0,0,6499,6497,1,0,0,0,6499,6500,1,0,0,0,6500,1344,1,0,0,0,6501,6502,5,58,0,0,6502,6506,7,40,0,0,6503,6505,7,41,0,0,6504,6503,1,0,0,0,6505,6508,1,0,0,0,6506,6504,1,0,0,0,6506,6507,1,0,0,0,6507,1346,1,0,0,0,6508,6506,1,0,0,0,6509,6510,5,58,0,0,6510,6511,5,34,0,0,6511,6519,1,0,0,0,6512,6513,5,92,0,0,6513,6518,9,0,0,0,6514,6515,5,34,0,0,6515,6518,5,34,0,0,6516,6518,8,42,0,0,6517,6512,1,0,0,0,6517,6514,1,0,0,0,6517,6516,1,0,0,0,6518,6521,1,0,0,0,6519,6517,1,0,0,0,6519,6520,1,0,0,0,6520,6522,1,0,0,0,6521,6519,1,0,0,0,6522,6523,5,34,0,0,6523,1348,1,0,0,0,6524,6526,7,43,0,0,6525,6524,1,0,0,0,6526,6527,1,0,0,0,6527,6525,1,0,0,0,6527,6528,1,0,0,0,6528,6529,1,0,0,0,6529,6530,6,672,7,0,6530,1350,1,0,0,0,6531,6533,5,13,0,0,6532,6534,5,10,0,0,6533,6532,1,0,0,0,6533,6534,1,0,0,0,6534,6537,1,0,0,0,6535,6537,5,10,0,0,6536,6531,1,0,0,0,6536,6535,1,0,0,0,6537,6538,1,0,0,0,6538,6539,6,673,7,0,6539,1352,1,0,0,0,6540,6541,5,45,0,0,6541,6542,5,45,0,0,6542,6546,1,0,0,0,6543,6545,8,44,0,0,6544,6543,1,0,0,0,6545,6548,1,0,0,0,6546,6544,1,0,0,0,6546,6547,1,0,0,0,6547,6549,1,0,0,0,6548,6546,1,0,0,0,6549,6550,6,674,8,0,6550,1354,1,0,0,0,6551,6552,5,47,0,0,6552,6553,5,42,0,0,6553,6576,1,0,0,0,6554,6556,5,47,0,0,6555,6554,1,0,0,0,6556,6559,1,0,0,0,6557,6555,1,0,0,0,6557,6558,1,0,0,0,6558,6560,1,0,0,0,6559,6557,1,0,0,0,6560,6575,3,1355,675,0,6561,6575,8,45,0,0,6562,6564,5,47,0,0,6563,6562,1,0,0,0,6564,6565,1,0,0,0,6565,6563,1,0,0,0,6565,6566,1,0,0,0,6566,6567,1,0,0,0,6567,6575,8,45,0,0,6568,6570,5,42,0,0,6569,6568,1,0,0,0,6570,6571,1,0,0,0,6571,6569,1,0,0,0,6571,6572,1,0,0,0,6572,6573,1,0,0,0,6573,6575,8,45,0,0,6574,6557,1,0,0,0,6574,6561,1,0,0,0,6574,6563,1,0,0,0,6574,6569,1,0,0,0,6575,6578,1,0,0,0,6576,6574,1,0,0,0,6576,6577,1,0,0,0,6577,6582,1,0,0,0,6578,6576,1,0,0,0,6579,6581,5,42,0,0,6580,6579,1,0,0,0,6581,6584,1,0,0,0,6582,6580,1,0,0,0,6582,6583,1,0,0,0,6583,6585,1,0,0,0,6584,6582,1,0,0,0,6585,6586,5,42,0,0,6586,6587,5,47,0,0,6587,6588,1,0,0,0,6588,6589,6,675,8,0,6589,1356,1,0,0,0,6590,6591,5,47,0,0,6591,6592,5,42,0,0,6592,6617,1,0,0,0,6593,6595,5,47,0,0,6594,6593,1,0,0,0,6595,6598,1,0,0,0,6596,6594,1,0,0,0,6596,6597,1,0,0,0,6597,6599,1,0,0,0,6598,6596,1,0,0,0,6599,6616,3,1355,675,0,6600,6616,8,45,0,0,6601,6603,5,47,0,0,6602,6601,1,0,0,0,6603,6604,1,0,0,0,6604,6602,1,0,0,0,6604,6605,1,0,0,0,6605,6606,1,0,0,0,6606,6614,8,45,0,0,6607,6609,5,42,0,0,6608,6607,1,0,0,0,6609,6610,1,0,0,0,6610,6608,1,0,0,0,6610,6611,1,0,0,0,6611,6612,1,0,0,0,6612,6614,8,45,0,0,6613,6602,1,0,0,0,6613,6608,1,0,0,0,6614,6616,1,0,0,0,6615,6596,1,0,0,0,6615,6600,1,0,0,0,6615,6613,1,0,0,0,6616,6619,1,0,0,0,6617,6615,1,0,0,0,6617,6618,1,0,0,0,6618,6637,1,0,0,0,6619,6617,1,0,0,0,6620,6622,5,47,0,0,6621,6620,1,0,0,0,6622,6623,1,0,0,0,6623,6621,1,0,0,0,6623,6624,1,0,0,0,6624,6638,1,0,0,0,6625,6627,5,42,0,0,6626,6625,1,0,0,0,6627,6628,1,0,0,0,6628,6626,1,0,0,0,6628,6629,1,0,0,0,6629,6638,1,0,0,0,6630,6632,5,47,0,0,6631,6630,1,0,0,0,6632,6635,1,0,0,0,6633,6631,1,0,0,0,6633,6634,1,0,0,0,6634,6636,1,0,0,0,6635,6633,1,0,0,0,6636,6638,3,1357,676,0,6637,6621,1,0,0,0,6637,6626,1,0,0,0,6637,6633,1,0,0,0,6637,6638,1,0,0,0,6638,6639,1,0,0,0,6639,6640,6,676,9,0,6640,1358,1,0,0,0,6641,6653,5,92,0,0,6642,6652,8,46,0,0,6643,6647,5,34,0,0,6644,6646,8,47,0,0,6645,6644,1,0,0,0,6646,6649,1,0,0,0,6647,6645,1,0,0,0,6647,6648,1,0,0,0,6648,6650,1,0,0,0,6649,6647,1,0,0,0,6650,6652,5,34,0,0,6651,6642,1,0,0,0,6651,6643,1,0,0,0,6652,6655,1,0,0,0,6653,6651,1,0,0,0,6653,6654,1,0,0,0,6654,6663,1,0,0,0,6655,6653,1,0,0,0,6656,6660,5,34,0,0,6657,6659,8,47,0,0,6658,6657,1,0,0,0,6659,6662,1,0,0,0,6660,6658,1,0,0,0,6660,6661,1,0,0,0,6661,6664,1,0,0,0,6662,6660,1,0,0,0,6663,6656,1,0,0,0,6663,6664,1,0,0,0,6664,1360,1,0,0,0,6665,6666,5,92,0,0,6666,6667,5,92,0,0,6667,1362,1,0,0,0,6668,6669,9,0,0,0,6669,1364,1,0,0,0,6670,6671,3,1369,682,0,6671,6672,5,39,0,0,6672,6673,1,0,0,0,6673,6674,6,680,10,0,6674,1366,1,0,0,0,6675,6677,3,1369,682,0,6676,6678,5,92,0,0,6677,6676,1,0,0,0,6677,6678,1,0,0,0,6678,6679,1,0,0,0,6679,6680,5,0,0,1,6680,1368,1,0,0,0,6681,6682,5,39,0,0,6682,6705,5,39,0,0,6683,6701,5,92,0,0,6684,6685,5,120,0,0,6685,6702,7,39,0,0,6686,6687,5,117,0,0,6687,6688,7,39,0,0,6688,6689,7,39,0,0,6689,6690,7,39,0,0,6690,6702,7,39,0,0,6691,6692,5,85,0,0,6692,6693,7,39,0,0,6693,6694,7,39,0,0,6694,6695,7,39,0,0,6695,6696,7,39,0,0,6696,6697,7,39,0,0,6697,6698,7,39,0,0,6698,6699,7,39,0,0,6699,6702,7,39,0,0,6700,6702,8,48,0,0,6701,6684,1,0,0,0,6701,6686,1,0,0,0,6701,6691,1,0,0,0,6701,6700,1,0,0,0,6702,6705,1,0,0,0,6703,6705,8,49,0,0,6704,6681,1,0,0,0,6704,6683,1,0,0,0,6704,6703,1,0,0,0,6705,6708,1,0,0,0,6706,6704,1,0,0,0,6706,6707,1,0,0,0,6707,1370,1,0,0,0,6708,6706,1,0,0,0,6709,6710,3,1375,685,0,6710,6711,5,39,0,0,6711,6712,1,0,0,0,6712,6713,6,683,10,0,6713,1372,1,0,0,0,6714,6716,3,1375,685,0,6715,6717,5,92,0,0,6716,6715,1,0,0,0,6716,6717,1,0,0,0,6717,6718,1,0,0,0,6718,6719,5,0,0,1,6719,1374,1,0,0,0,6720,6721,5,39,0,0,6721,6726,5,39,0,0,6722,6723,5,92,0,0,6723,6726,9,0,0,0,6724,6726,8,49,0,0,6725,6720,1,0,0,0,6725,6722,1,0,0,0,6725,6724,1,0,0,0,6726,6729,1,0,0,0,6727,6725,1,0,0,0,6727,6728,1,0,0,0,6728,1376,1,0,0,0,6729,6727,1,0,0,0,6730,6731,3,1349,672,0,6731,6732,1,0,0,0,6732,6733,6,686,11,0,6733,6734,6,686,7,0,6734,1378,1,0,0,0,6735,6736,3,1351,673,0,6736,6737,1,0,0,0,6737,6738,6,687,12,0,6738,6739,6,687,7,0,6739,6740,6,687,13,0,6740,1380,1,0,0,0,6741,6742,6,688,14,0,6742,6743,1,0,0,0,6743,6744,6,688,8,0,6744,6745,6,688,15,0,6745,1382,1,0,0,0,6746,6747,3,1349,672,0,6747,6748,1,0,0,0,6748,6749,6,689,11,0,6749,6750,6,689,7,0,6750,1384,1,0,0,0,6751,6752,3,1351,673,0,6752,6753,1,0,0,0,6753,6754,6,690,12,0,6754,6755,6,690,7,0,6755,1386,1,0,0,0,6756,6757,5,39,0,0,6757,6758,1,0,0,0,6758,6759,6,691,2,0,6759,6760,6,691,16,0,6760,1388,1,0,0,0,6761,6762,6,692,17,0,6762,6763,1,0,0,0,6763,6764,6,692,8,0,6764,6765,6,692,15,0,6765,1390,1,0,0,0,6766,6768,8,50,0,0,6767,6766,1,0,0,0,6768,6769,1,0,0,0,6769,6767,1,0,0,0,6769,6770,1,0,0,0,6770,6779,1,0,0,0,6771,6775,5,36,0,0,6772,6774,8,50,0,0,6773,6772,1,0,0,0,6774,6777,1,0,0,0,6775,6773,1,0,0,0,6775,6776,1,0,0,0,6776,6779,1,0,0,0,6777,6775,1,0,0,0,6778,6767,1,0,0,0,6778,6771,1,0,0,0,6779,1392,1,0,0,0,6780,6782,5,36,0,0,6781,6783,3,1319,657,0,6782,6781,1,0,0,0,6782,6783,1,0,0,0,6783,6784,1,0,0,0,6784,6785,5,36,0,0,6785,6786,1,0,0,0,6786,6787,4,694,8,0,6787,6788,6,694,18,0,6788,6789,1,0,0,0,6789,6790,6,694,15,0,6790,1394,1,0,0,0,78,0,1,2,3,4,1462,1468,1470,1475,1479,1481,1484,1493,1495,1500,1505,1507,6324,6333,6337,6341,6350,6352,6362,6364,6390,6392,6410,6421,6432,6449,6469,6473,6476,6482,6485,6490,6494,6499,6506,6517,6519,6527,6533,6536,6546,6557,6565,6571,6574,6576,6582,6596,6604,6610,6613,6615,6617,6623,6628,6633,6637,6647,6651,6653,6660,6663,6677,6701,6704,6706,6716,6725,6727,6769,6775,6778,6782,19,1,28,0,7,29,0,3,0,0,5,1,0,1,656,1,5,4,0,1,667,2,0,1,0,6,0,0,1,676,3,2,2,0,7,663,0,7,664,0,2,3,0,1,688,4,4,0,0,2,1,0,1,692,5,1,694,6]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},_s=class extends we{ParseRoutineBody(t){let e=null;for(let a of t.createFunctionOptionItem())if(null!==a.LANGUAGE()&&null!==a.nonReservedWordOrSconst()&&null!==a.nonReservedWordOrSconst()?.nonReservedWord()&&null!==a.nonReservedWordOrSconst()?.nonReservedWord()?.identifier()&&null!==a.nonReservedWordOrSconst()?.nonReservedWord()?.identifier()?.Identifier()){e=a.nonReservedWordOrSconst()?.nonReservedWord()?.identifier()?.Identifier()?.getText();break}if(null===e)return;let s=null;for(let a of t.createFunctionOptionItem())if(null!==a.functionAs()){s=a;break}if(null!==s){let t=this.GetRoutineBodyString(s.functionAs()?.sconst(0)),a=this.getPostgreSQLParser(t);switch(e){case"plpgsql":s.functionAs().Definition=a.plsqlroot();break;case"sql":s.functionAs().Definition=a.root()}}}unquote(t){let e=t.length,s="",a=0;for(;a<e;){let i=t.charAt(a);s+=i,"'"===i&&a<e-1&&"'"===t.charAt(a+1)&&a++,a++}return s}GetRoutineBodyString(t){let e=t.anySconst(),s=e.StringConstant();if(null!==s)return this.unquote(this.TrimQuotes(s.getText()));let a=e.UnicodeEscapeStringConstant();if(null!==a)return this.TrimQuotes(a.getText());let i=e.EscapeStringConstant();if(null!==i)return this.TrimQuotes(i.getText());let r="",c=e.DollarText();for(let n of c)r+=n.getText();return r}getPostgreSQLParser(t){let e=le.fromString(t),s=new Cs(e),a=new Ne(s);return new Ps(a)}TrimQuotes(t){return null===t||0===t.length?t:t.substring(1,t.length-1)}},Ps=class t extends _s{static{this.Dollar=1}static{this.OPEN_PAREN=2}static{this.CLOSE_PAREN=3}static{this.OPEN_BRACKET=4}static{this.CLOSE_BRACKET=5}static{this.COMMA=6}static{this.SEMI=7}static{this.COLON=8}static{this.STAR=9}static{this.EQUAL=10}static{this.DOT=11}static{this.PLUS=12}static{this.MINUS=13}static{this.SLASH=14}static{this.CARET=15}static{this.LT=16}static{this.GT=17}static{this.LESS_LESS=18}static{this.GREATER_GREATER=19}static{this.COLON_EQUALS=20}static{this.LESS_EQUALS=21}static{this.EQUALS_GREATER=22}static{this.GREATER_EQUALS=23}static{this.DOT_DOT=24}static{this.NOT_EQUALS=25}static{this.TYPECAST=26}static{this.PERCENT=27}static{this.PARAM=28}static{this.Operator=29}static{this.ALL=30}static{this.ANALYSE=31}static{this.ANALYZE=32}static{this.AND=33}static{this.ANY=34}static{this.ARRAY=35}static{this.AS=36}static{this.ASC=37}static{this.ASYMMETRIC=38}static{this.BOTH=39}static{this.CASE=40}static{this.CAST=41}static{this.CHECK=42}static{this.COLLATE=43}static{this.COLUMN=44}static{this.CONSTRAINT=45}static{this.CREATE=46}static{this.CURRENT_CATALOG=47}static{this.CURRENT_DATE=48}static{this.CURRENT_ROLE=49}static{this.CURRENT_TIME=50}static{this.CURRENT_TIMESTAMP=51}static{this.CURRENT_USER=52}static{this.DEFAULT=53}static{this.DEFERRABLE=54}static{this.DESC=55}static{this.DISTINCT=56}static{this.DO=57}static{this.ELSE=58}static{this.EXCEPT=59}static{this.FALSE_P=60}static{this.FETCH=61}static{this.FOR=62}static{this.FOREIGN=63}static{this.FROM=64}static{this.GRANT=65}static{this.GROUP_P=66}static{this.HAVING=67}static{this.IN_P=68}static{this.INITIALLY=69}static{this.INTERSECT=70}static{this.INTO=71}static{this.LATERAL_P=72}static{this.LEADING=73}static{this.LIMIT=74}static{this.LOCALTIME=75}static{this.LOCALTIMESTAMP=76}static{this.NOT=77}static{this.NULL_P=78}static{this.OFFSET=79}static{this.ON=80}static{this.ONLY=81}static{this.OR=82}static{this.ORDER=83}static{this.PLACING=84}static{this.PRIMARY=85}static{this.REFERENCES=86}static{this.RETURNING=87}static{this.SELECT=88}static{this.SESSION_USER=89}static{this.SOME=90}static{this.SYMMETRIC=91}static{this.TABLE=92}static{this.THEN=93}static{this.TO=94}static{this.TRAILING=95}static{this.TRUE_P=96}static{this.UNION=97}static{this.UNIQUE=98}static{this.USER=99}static{this.USING=100}static{this.VARIADIC=101}static{this.WHEN=102}static{this.WHERE=103}static{this.WINDOW=104}static{this.WITH=105}static{this.AUTHORIZATION=106}static{this.BINARY=107}static{this.COLLATION=108}static{this.CONCURRENTLY=109}static{this.CROSS=110}static{this.CURRENT_SCHEMA=111}static{this.FREEZE=112}static{this.FULL=113}static{this.ILIKE=114}static{this.INNER_P=115}static{this.IS=116}static{this.ISNULL=117}static{this.JOIN=118}static{this.LEFT=119}static{this.LIKE=120}static{this.NATURAL=121}static{this.NOTNULL=122}static{this.OUTER_P=123}static{this.OVER=124}static{this.OVERLAPS=125}static{this.RIGHT=126}static{this.SIMILAR=127}static{this.VERBOSE=128}static{this.ABORT_P=129}static{this.ABSOLUTE_P=130}static{this.ACCESS=131}static{this.ACTION=132}static{this.ADD_P=133}static{this.ADMIN=134}static{this.AFTER=135}static{this.AGGREGATE=136}static{this.ALSO=137}static{this.ALTER=138}static{this.ALWAYS=139}static{this.ASSERTION=140}static{this.ASSIGNMENT=141}static{this.AT=142}static{this.ATTRIBUTE=143}static{this.BACKWARD=144}static{this.BEFORE=145}static{this.BEGIN_P=146}static{this.BY=147}static{this.CACHE=148}static{this.CALLED=149}static{this.CASCADE=150}static{this.CASCADED=151}static{this.CATALOG=152}static{this.CHAIN=153}static{this.CHARACTERISTICS=154}static{this.CHECKPOINT=155}static{this.CLASS=156}static{this.CLOSE=157}static{this.CLUSTER=158}static{this.COMMENT=159}static{this.COMMENTS=160}static{this.COMMIT=161}static{this.COMMITTED=162}static{this.CONFIGURATION=163}static{this.CONNECTION=164}static{this.CONSTRAINTS=165}static{this.CONTENT_P=166}static{this.CONTINUE_P=167}static{this.CONVERSION_P=168}static{this.COPY=169}static{this.COST=170}static{this.CSV=171}static{this.CURSOR=172}static{this.CYCLE=173}static{this.DATA_P=174}static{this.DATABASE=175}static{this.DAY_P=176}static{this.DEALLOCATE=177}static{this.DECLARE=178}static{this.DEFAULTS=179}static{this.DEFERRED=180}static{this.DEFINER=181}static{this.DELETE_P=182}static{this.DELIMITER=183}static{this.DELIMITERS=184}static{this.DICTIONARY=185}static{this.DISABLE_P=186}static{this.DISCARD=187}static{this.DOCUMENT_P=188}static{this.DOMAIN_P=189}static{this.DOUBLE_P=190}static{this.DROP=191}static{this.EACH=192}static{this.ENABLE_P=193}static{this.ENCODING=194}static{this.ENCRYPTED=195}static{this.ENUM_P=196}static{this.ESCAPE=197}static{this.EVENT=198}static{this.EXCLUDE=199}static{this.EXCLUDING=200}static{this.EXCLUSIVE=201}static{this.EXECUTE=202}static{this.EXPLAIN=203}static{this.EXTENSION=204}static{this.EXTERNAL=205}static{this.FAMILY=206}static{this.FIRST_P=207}static{this.FOLLOWING=208}static{this.FORCE=209}static{this.FORWARD=210}static{this.FUNCTION=211}static{this.FUNCTIONS=212}static{this.GLOBAL=213}static{this.GRANTED=214}static{this.HANDLER=215}static{this.HEADER_P=216}static{this.HOLD=217}static{this.HOUR_P=218}static{this.IDENTITY_P=219}static{this.IF_P=220}static{this.IMMEDIATE=221}static{this.IMMUTABLE=222}static{this.IMPLICIT_P=223}static{this.INCLUDING=224}static{this.INCREMENT=225}static{this.INDEX=226}static{this.INDEXES=227}static{this.INHERIT=228}static{this.INHERITS=229}static{this.INLINE_P=230}static{this.INSENSITIVE=231}static{this.INSERT=232}static{this.INSTEAD=233}static{this.INVOKER=234}static{this.ISOLATION=235}static{this.KEY=236}static{this.LABEL=237}static{this.LANGUAGE=238}static{this.LARGE_P=239}static{this.LAST_P=240}static{this.LEAKPROOF=241}static{this.LEVEL=242}static{this.LISTEN=243}static{this.LOAD=244}static{this.LOCAL=245}static{this.LOCATION=246}static{this.LOCK_P=247}static{this.MAPPING=248}static{this.MATCH=249}static{this.MATCHED=250}static{this.MATERIALIZED=251}static{this.MAXVALUE=252}static{this.MERGE=253}static{this.MINUTE_P=254}static{this.MINVALUE=255}static{this.MODE=256}static{this.MONTH_P=257}static{this.MOVE=258}static{this.NAME_P=259}static{this.NAMES=260}static{this.NEXT=261}static{this.NO=262}static{this.NOTHING=263}static{this.NOTIFY=264}static{this.NOWAIT=265}static{this.NULLS_P=266}static{this.OBJECT_P=267}static{this.OF=268}static{this.OFF=269}static{this.OIDS=270}static{this.OPERATOR=271}static{this.OPTION=272}static{this.OPTIONS=273}static{this.OWNED=274}static{this.OWNER=275}static{this.PARSER=276}static{this.PARTIAL=277}static{this.PARTITION=278}static{this.PASSING=279}static{this.PASSWORD=280}static{this.PLANS=281}static{this.PRECEDING=282}static{this.PREPARE=283}static{this.PREPARED=284}static{this.PRESERVE=285}static{this.PRIOR=286}static{this.PRIVILEGES=287}static{this.PROCEDURAL=288}static{this.PROCEDURE=289}static{this.PROGRAM=290}static{this.QUOTE=291}static{this.RANGE=292}static{this.READ=293}static{this.REASSIGN=294}static{this.RECHECK=295}static{this.RECURSIVE=296}static{this.REF=297}static{this.REFRESH=298}static{this.REINDEX=299}static{this.RELATIVE_P=300}static{this.RELEASE=301}static{this.RENAME=302}static{this.REPEATABLE=303}static{this.REPLACE=304}static{this.REPLICA=305}static{this.RESET=306}static{this.RESTART=307}static{this.RESTRICT=308}static{this.RETURNS=309}static{this.REVOKE=310}static{this.ROLE=311}static{this.ROLLBACK=312}static{this.ROWS=313}static{this.RULE=314}static{this.SAVEPOINT=315}static{this.SCHEMA=316}static{this.SCROLL=317}static{this.SEARCH=318}static{this.SECOND_P=319}static{this.SECURITY=320}static{this.SEQUENCE=321}static{this.SEQUENCES=322}static{this.SERIALIZABLE=323}static{this.SERVER=324}static{this.SESSION=325}static{this.SET=326}static{this.SHARE=327}static{this.SHOW=328}static{this.SIMPLE=329}static{this.SNAPSHOT=330}static{this.STABLE=331}static{this.STANDALONE_P=332}static{this.START=333}static{this.STATEMENT=334}static{this.STATISTICS=335}static{this.STDIN=336}static{this.STDOUT=337}static{this.STORAGE=338}static{this.STRICT_P=339}static{this.STRIP_P=340}static{this.SYSID=341}static{this.SYSTEM_P=342}static{this.TABLES=343}static{this.TABLESPACE=344}static{this.TEMP=345}static{this.TEMPLATE=346}static{this.TEMPORARY=347}static{this.TEXT_P=348}static{this.TRANSACTION=349}static{this.TRIGGER=350}static{this.TRUNCATE=351}static{this.TRUSTED=352}static{this.TYPE_P=353}static{this.TYPES_P=354}static{this.UNBOUNDED=355}static{this.UNCOMMITTED=356}static{this.UNENCRYPTED=357}static{this.UNKNOWN=358}static{this.UNLISTEN=359}static{this.UNLOGGED=360}static{this.UNTIL=361}static{this.UPDATE=362}static{this.VACUUM=363}static{this.VALID=364}static{this.VALIDATE=365}static{this.VALIDATOR=366}static{this.VARYING=367}static{this.VERSION_P=368}static{this.VIEW=369}static{this.VOLATILE=370}static{this.WHITESPACE_P=371}static{this.WITHOUT=372}static{this.WORK=373}static{this.WRAPPER=374}static{this.WRITE=375}static{this.XML_P=376}static{this.YEAR_P=377}static{this.YES_P=378}static{this.ZONE=379}static{this.BETWEEN=380}static{this.BIGINT=381}static{this.BIT=382}static{this.BOOLEAN_P=383}static{this.CHAR_P=384}static{this.CHARACTER=385}static{this.COALESCE=386}static{this.DEC=387}static{this.DECIMAL_P=388}static{this.EXISTS=389}static{this.EXTRACT=390}static{this.FLOAT_P=391}static{this.GREATEST=392}static{this.INOUT=393}static{this.INT_P=394}static{this.INTEGER=395}static{this.INTERVAL=396}static{this.LEAST=397}static{this.NATIONAL=398}static{this.NCHAR=399}static{this.NONE=400}static{this.NULLIF=401}static{this.NUMERIC=402}static{this.OVERLAY=403}static{this.POSITION=404}static{this.PRECISION=405}static{this.REAL=406}static{this.ROW=407}static{this.SETOF=408}static{this.SMALLINT=409}static{this.SUBSTRING=410}static{this.TIME=411}static{this.TIMESTAMP=412}static{this.TREAT=413}static{this.TRIM=414}static{this.VALUES=415}static{this.VARCHAR=416}static{this.XMLATTRIBUTES=417}static{this.XMLCOMMENT=418}static{this.XMLAGG=419}static{this.XML_IS_WELL_FORMED=420}static{this.XML_IS_WELL_FORMED_DOCUMENT=421}static{this.XML_IS_WELL_FORMED_CONTENT=422}static{this.XPATH=423}static{this.XPATH_EXISTS=424}static{this.XMLCONCAT=425}static{this.XMLELEMENT=426}static{this.XMLEXISTS=427}static{this.XMLFOREST=428}static{this.XMLPARSE=429}static{this.XMLPI=430}static{this.XMLROOT=431}static{this.XMLSERIALIZE=432}static{this.CALL=433}static{this.CURRENT_P=434}static{this.ATTACH=435}static{this.DETACH=436}static{this.EXPRESSION=437}static{this.GENERATED=438}static{this.LOGGED=439}static{this.STORED=440}static{this.INCLUDE=441}static{this.ROUTINE=442}static{this.TRANSFORM=443}static{this.IMPORT_P=444}static{this.POLICY=445}static{this.METHOD=446}static{this.REFERENCING=447}static{this.NEW=448}static{this.OLD=449}static{this.VALUE_P=450}static{this.SUBSCRIPTION=451}static{this.PUBLICATION=452}static{this.OUT_P=453}static{this.END_P=454}static{this.ROUTINES=455}static{this.SCHEMAS=456}static{this.PROCEDURES=457}static{this.INPUT_P=458}static{this.SUPPORT=459}static{this.PARALLEL=460}static{this.SQL_P=461}static{this.DEPENDS=462}static{this.OVERRIDING=463}static{this.CONFLICT=464}static{this.SKIP_P=465}static{this.LOCKED=466}static{this.TIES=467}static{this.ROLLUP=468}static{this.CUBE=469}static{this.GROUPING=470}static{this.SETS=471}static{this.TABLESAMPLE=472}static{this.ORDINALITY=473}static{this.XMLTABLE=474}static{this.COLUMNS=475}static{this.XMLNAMESPACES=476}static{this.ROWTYPE=477}static{this.NORMALIZED=478}static{this.WITHIN=479}static{this.FILTER=480}static{this.GROUPS=481}static{this.OTHERS=482}static{this.NFC=483}static{this.NFD=484}static{this.NFKC=485}static{this.NFKD=486}static{this.UESCAPE=487}static{this.VIEWS=488}static{this.NORMALIZE=489}static{this.DUMP=490}static{this.PRINT_STRICT_PARAMS=491}static{this.VARIABLE_CONFLICT=492}static{this.ERROR=493}static{this.USE_VARIABLE=494}static{this.USE_COLUMN=495}static{this.ALIAS=496}static{this.CONSTANT=497}static{this.PERFORM=498}static{this.GET=499}static{this.DIAGNOSTICS=500}static{this.STACKED=501}static{this.ELSIF=502}static{this.WHILE=503}static{this.REVERSE=504}static{this.FOREACH=505}static{this.SLICE=506}static{this.EXIT=507}static{this.RETURN=508}static{this.QUERY=509}static{this.RAISE=510}static{this.SQLSTATE=511}static{this.DEBUG=512}static{this.LOG=513}static{this.INFO=514}static{this.NOTICE=515}static{this.WARNING=516}static{this.EXCEPTION=517}static{this.ASSERT=518}static{this.LOOP=519}static{this.OPEN=520}static{this.ABS=521}static{this.CBRT=522}static{this.CEIL=523}static{this.CEILING=524}static{this.DEGREES=525}static{this.DIV=526}static{this.EXP=527}static{this.FACTORIAL=528}static{this.FLOOR=529}static{this.GCD=530}static{this.LCM=531}static{this.LN=532}static{this.LOG10=533}static{this.MIN_SCALE=534}static{this.MOD=535}static{this.PI=536}static{this.POWER=537}static{this.RADIANS=538}static{this.ROUND=539}static{this.SCALE=540}static{this.SIGN=541}static{this.SQRT=542}static{this.TRIM_SCALE=543}static{this.TRUNC=544}static{this.WIDTH_BUCKET=545}static{this.RANDOM=546}static{this.SETSEED=547}static{this.ACOS=548}static{this.ACOSD=549}static{this.ASIN=550}static{this.ASIND=551}static{this.ATAN=552}static{this.ATAND=553}static{this.ATAN2=554}static{this.ATAN2D=555}static{this.COS=556}static{this.COSD=557}static{this.COT=558}static{this.COTD=559}static{this.SIN=560}static{this.SIND=561}static{this.TAN=562}static{this.TAND=563}static{this.SINH=564}static{this.COSH=565}static{this.TANH=566}static{this.ASINH=567}static{this.ACOSH=568}static{this.ATANH=569}static{this.BIT_LENGTH=570}static{this.CHAR_LENGTH=571}static{this.CHARACTER_LENGTH=572}static{this.LOWER=573}static{this.OCTET_LENGTH=574}static{this.UPPER=575}static{this.ASCII=576}static{this.BTRIM=577}static{this.CHR=578}static{this.CONCAT=579}static{this.CONCAT_WS=580}static{this.FORMAT=581}static{this.INITCAP=582}static{this.LENGTH=583}static{this.LPAD=584}static{this.LTRIM=585}static{this.MD5=586}static{this.PARSE_IDENT=587}static{this.PG_CLIENT_ENCODING=588}static{this.QUOTE_IDENT=589}static{this.QUOTE_LITERAL=590}static{this.QUOTE_NULLABLE=591}static{this.REGEXP_COUNT=592}static{this.REGEXP_INSTR=593}static{this.REGEXP_LIKE=594}static{this.REGEXP_MATCH=595}static{this.REGEXP_MATCHES=596}static{this.REGEXP_REPLACE=597}static{this.REGEXP_SPLIT_TO_ARRAY=598}static{this.REGEXP_SPLIT_TO_TABLE=599}static{this.REGEXP_SUBSTR=600}static{this.REPEAT=601}static{this.RPAD=602}static{this.RTRIM=603}static{this.SPLIT_PART=604}static{this.STARTS_WITH=605}static{this.STRING_TO_ARRAY=606}static{this.STRING_TO_TABLE=607}static{this.STRPOS=608}static{this.SUBSTR=609}static{this.TO_ASCII=610}static{this.TO_HEX=611}static{this.TRANSLATE=612}static{this.UNISTR=613}static{this.AGE=614}static{this.CLOCK_TIMESTAMP=615}static{this.DATE_BIN=616}static{this.DATE_PART=617}static{this.DATE_TRUNC=618}static{this.ISFINITE=619}static{this.JUSTIFY_DAYS=620}static{this.JUSTIFY_HOURS=621}static{this.JUSTIFY_INTERVAL=622}static{this.MAKE_DATE=623}static{this.MAKE_INTERVAL=624}static{this.MAKE_TIME=625}static{this.MAKE_TIMESTAMP=626}static{this.MAKE_TIMESTAMPTZ=627}static{this.NOW=628}static{this.STATEMENT_TIMESTAMP=629}static{this.TIMEOFDAY=630}static{this.TRANSACTION_TIMESTAMP=631}static{this.TO_TIMESTAMP=632}static{this.TO_CHAR=633}static{this.TO_DATE=634}static{this.TO_NUMBER=635}static{this.Identifier=636}static{this.QuotedIdentifier=637}static{this.UnterminatedQuotedIdentifier=638}static{this.InvalidQuotedIdentifier=639}static{this.InvalidUnterminatedQuotedIdentifier=640}static{this.UnicodeQuotedIdentifier=641}static{this.UnterminatedUnicodeQuotedIdentifier=642}static{this.InvalidUnicodeQuotedIdentifier=643}static{this.InvalidUnterminatedUnicodeQuotedIdentifier=644}static{this.StringConstant=645}static{this.UnterminatedStringConstant=646}static{this.UnicodeEscapeStringConstant=647}static{this.UnterminatedUnicodeEscapeStringConstant=648}static{this.BeginDollarStringConstant=649}static{this.BinaryStringConstant=650}static{this.UnterminatedBinaryStringConstant=651}static{this.InvalidBinaryStringConstant=652}static{this.InvalidUnterminatedBinaryStringConstant=653}static{this.HexadecimalStringConstant=654}static{this.UnterminatedHexadecimalStringConstant=655}static{this.InvalidHexadecimalStringConstant=656}static{this.InvalidUnterminatedHexadecimalStringConstant=657}static{this.Integral=658}static{this.NumericFail=659}static{this.Numeric=660}static{this.PLSQLVARIABLENAME=661}static{this.PLSQLIDENTIFIER=662}static{this.Whitespace=663}static{this.Newline=664}static{this.LineComment=665}static{this.BlockComment=666}static{this.UnterminatedBlockComment=667}static{this.MetaCommand=668}static{this.EndMetaCommand=669}static{this.ErrorCharacter=670}static{this.EscapeStringConstant=671}static{this.UnterminatedEscapeStringConstant=672}static{this.InvalidEscapeStringConstant=673}static{this.InvalidUnterminatedEscapeStringConstant=674}static{this.AfterEscapeStringConstantMode_NotContinued=675}static{this.AfterEscapeStringConstantWithNewlineMode_NotContinued=676}static{this.DollarText=677}static{this.EndDollarStringConstant=678}static{this.AfterEscapeStringConstantWithNewlineMode_Continued=679}static{this.RULE_root=0}static{this.RULE_plsqlRoot=1}static{this.RULE_statements=2}static{this.RULE_statement=3}static{this.RULE_plsqlConsoleCommand=4}static{this.RULE_callStatement=5}static{this.RULE_optionalWith=6}static{this.RULE_optionalRoleList=7}static{this.RULE_alterOptionalRoleList=8}static{this.RULE_alterRoleElemement=9}static{this.RULE_createRoleElement=10}static{this.RULE_createRoleStatement=11}static{this.RULE_alterRoleStatement=12}static{this.RULE_optionalInDatabase=13}static{this.RULE_alterRoleSetStatement=14}static{this.RULE_dropRoleStatement=15}static{this.RULE_addOrDrop=16}static{this.RULE_createSchemaStatement=17}static{this.RULE_optionalSchemaName=18}static{this.RULE_optionalSchemaList=19}static{this.RULE_schemaStatement=20}static{this.RULE_variableSetStatement=21}static{this.RULE_setStatementEnding=22}static{this.RULE_genericSetClause=23}static{this.RULE_setStatementMore=24}static{this.RULE_variableName=25}static{this.RULE_variableList=26}static{this.RULE_variableValue=27}static{this.RULE_isoLevel=28}static{this.RULE_booleanOrString=29}static{this.RULE_zoneValue=30}static{this.RULE_optionalEncoding=31}static{this.RULE_nonReservedWordOrSconst=32}static{this.RULE_variableResetStatement=33}static{this.RULE_resetClauseRest=34}static{this.RULE_genericResetClause=35}static{this.RULE_setResetClause=36}static{this.RULE_functionSetResetClause=37}static{this.RULE_variableShowStatement=38}static{this.RULE_setConstraintsStatement=39}static{this.RULE_constraintsSetList=40}static{this.RULE_constraintsSetMode=41}static{this.RULE_checkpointStatement=42}static{this.RULE_discardStatement=43}static{this.RULE_alterTableStatement=44}static{this.RULE_alterTableCommands=45}static{this.RULE_partitionCommand=46}static{this.RULE_indexPartitionCommand=47}static{this.RULE_alterTableCommand=48}static{this.RULE_alterColumnDefault=49}static{this.RULE_optionalDropBehavior=50}static{this.RULE_optionalCollateClause=51}static{this.RULE_alterUsing=52}static{this.RULE_replicaIdentity=53}static{this.RULE_relOptions=54}static{this.RULE_optionalRelOptions=55}static{this.RULE_relOptionList=56}static{this.RULE_relOptionElem=57}static{this.RULE_alterIdentityColumnOptionList=58}static{this.RULE_alterIdentityColumnOption=59}static{this.RULE_partitionBoundSpecification=60}static{this.RULE_hashPartitionBoundElement=61}static{this.RULE_hashPartitionBound=62}static{this.RULE_alterCompositeTypeStatement=63}static{this.RULE_alterTypeCommands=64}static{this.RULE_alterTypeCommand=65}static{this.RULE_closePortalStatement=66}static{this.RULE_copyStatement=67}static{this.RULE_fromOrTo=68}static{this.RULE_copyFileName=69}static{this.RULE_copyOptions=70}static{this.RULE_copyOptionsItem=71}static{this.RULE_copyDelimiter=72}static{this.RULE_copyGenericOptionList=73}static{this.RULE_copyGenericOptionElem=74}static{this.RULE_copyGenericOptionArgument=75}static{this.RULE_createStatement=76}static{this.RULE_temporaryOption=77}static{this.RULE_optionalTableElementList=78}static{this.RULE_optionalTypedTableElementList=79}static{this.RULE_tableElementList=80}static{this.RULE_typedTableElementList=81}static{this.RULE_tableElement=82}static{this.RULE_typedTableElement=83}static{this.RULE_columnDefinition=84}static{this.RULE_columnOptions=85}static{this.RULE_columnQualifierList=86}static{this.RULE_columnConstraint=87}static{this.RULE_columnConstraintElement=88}static{this.RULE_generatedWhen=89}static{this.RULE_constraintAttribute=90}static{this.RULE_tableLikeClause=91}static{this.RULE_tableLikeOptionList=92}static{this.RULE_tableLikeOption=93}static{this.RULE_tableConstraint=94}static{this.RULE_constraintElement=95}static{this.RULE_columnListWithParentheses=96}static{this.RULE_columnList=97}static{this.RULE_columnElement=98}static{this.RULE_optionalColumnListInclude=99}static{this.RULE_matchClause=100}static{this.RULE_exclusionConstraintList=101}static{this.RULE_exclusionConstraintElement=102}static{this.RULE_exclusionWhereClause=103}static{this.RULE_keyActions=104}static{this.RULE_onKeyUpdateClause=105}static{this.RULE_onKeyDeleteClause=106}static{this.RULE_keyAction=107}static{this.RULE_inheritClause=108}static{this.RULE_optionalPartitionSpecification=109}static{this.RULE_partitionSpecification=110}static{this.RULE_partitionElements=111}static{this.RULE_partitionElement=112}static{this.RULE_optionalTableAccessMethodClause=113}static{this.RULE_with=114}static{this.RULE_onCommitOption=115}static{this.RULE_optionalTablespace=116}static{this.RULE_usingIndexTablespace=117}static{this.RULE_existingIndex=118}static{this.RULE_createStatsStatement=119}static{this.RULE_alterStatsStatement=120}static{this.RULE_createAsStatement=121}static{this.RULE_createAsTarget=122}static{this.RULE_withData=123}static{this.RULE_createMaterializedViewStatement=124}static{this.RULE_createMaterializedViewTarget=125}static{this.RULE_refreshMaterializedViewStatement=126}static{this.RULE_createSequenceStatement=127}static{this.RULE_alterSequenceStatement=128}static{this.RULE_optionalParenthesizedSeqOptionsList=129}static{this.RULE_sequenceOptionList=130}static{this.RULE_sequenceOptionItem=131}static{this.RULE_numericOnly=132}static{this.RULE_numericOnlyList=133}static{this.RULE_createProcedureLangStatement=134}static{this.RULE_handlerName=135}static{this.RULE_optionalInlineHandler=136}static{this.RULE_validatorClause=137}static{this.RULE_optionalProcedural=138}static{this.RULE_createTablespaceStatement=139}static{this.RULE_optionalTablespaceOwner=140}static{this.RULE_dropTablespaceStatement=141}static{this.RULE_createExtensionStatement=142}static{this.RULE_createExtensionOptionItem=143}static{this.RULE_alterExtensionStatement=144}static{this.RULE_alterExtensionOptionItem=145}static{this.RULE_alterExtensionContentsStatement=146}static{this.RULE_createForeignDataWrapperStatement=147}static{this.RULE_forwardOption=148}static{this.RULE_forwardOptions=149}static{this.RULE_alterForeignDataWrapperStatement=150}static{this.RULE_createGenericOptions=151}static{this.RULE_genericOptionList=152}static{this.RULE_alterGenericOptions=153}static{this.RULE_alterGenericOptionList=154}static{this.RULE_alterGenericOptionElem=155}static{this.RULE_genericOptionElement=156}static{this.RULE_genericOptionName=157}static{this.RULE_genericOptionArgument=158}static{this.RULE_createForeignServerStatement=159}static{this.RULE_optionalType=160}static{this.RULE_foreignServerVersion=161}static{this.RULE_alterForeignServerStatement=162}static{this.RULE_createForeignTableStatement=163}static{this.RULE_importForeignSchemaStatement=164}static{this.RULE_importQualificationType=165}static{this.RULE_importQualification=166}static{this.RULE_createUserMappingStatement=167}static{this.RULE_authIdentifier=168}static{this.RULE_dropUserMappingStatement=169}static{this.RULE_alterUserMappingStatement=170}static{this.RULE_createPolicyStatement=171}static{this.RULE_alterPolicyStatement=172}static{this.RULE_rowSecurityOptionalExpression=173}static{this.RULE_rowSecurityOptionalWithCheck=174}static{this.RULE_rowSecurityOptionalToUser=175}static{this.RULE_rowSecurityDefaultPermissive=176}static{this.RULE_rowSecurityDefaultForCmd=177}static{this.RULE_rowSecurityCommand=178}static{this.RULE_createAccessMethodStatement=179}static{this.RULE_accessMethodType=180}static{this.RULE_createTriggerStatement=181}static{this.RULE_triggerActionTime=182}static{this.RULE_triggerEvents=183}static{this.RULE_triggerOneEvent=184}static{this.RULE_triggerReferencing=185}static{this.RULE_triggerTransitions=186}static{this.RULE_triggerTransition=187}static{this.RULE_transitionOldOrNew=188}static{this.RULE_transitionRowOrTable=189}static{this.RULE_transitionRelName=190}static{this.RULE_triggerForSpec=191}static{this.RULE_triggerForType=192}static{this.RULE_triggerWhen=193}static{this.RULE_functionOrProcedure=194}static{this.RULE_triggerFunctionArguments=195}static{this.RULE_triggerFunctionArgument=196}static{this.RULE_optionalConstraintFromTable=197}static{this.RULE_constraintAttributeSpecification=198}static{this.RULE_constraintAttributeElement=199}static{this.RULE_createEventTriggerStatement=200}static{this.RULE_eventTriggerWhenList=201}static{this.RULE_eventTriggerWhenItem=202}static{this.RULE_eventTriggerValueList=203}static{this.RULE_alterEventTriggerStatement=204}static{this.RULE_enableTrigger=205}static{this.RULE_createAssertionStatement=206}static{this.RULE_defineStatement=207}static{this.RULE_definition=208}static{this.RULE_definitionElement=209}static{this.RULE_definitionArgument=210}static{this.RULE_oldAggregateDefinition=211}static{this.RULE_oldAggregateElement=212}static{this.RULE_enumValueList=213}static{this.RULE_alterEnumStatement=214}static{this.RULE_optionalIfNotExists=215}static{this.RULE_createOperatorClassStatement=216}static{this.RULE_operatorClassItemList=217}static{this.RULE_operatorClassItem=218}static{this.RULE_optionalOperatorFamily=219}static{this.RULE_operatorClassPurpose=220}static{this.RULE_createOperatorFamilyStatement=221}static{this.RULE_alterOperatorFamilyStatement=222}static{this.RULE_operatorClassDropList=223}static{this.RULE_operatorClassDrop=224}static{this.RULE_dropOperatorClassStatement=225}static{this.RULE_dropOperatorFamilyStatement=226}static{this.RULE_dropOwnedStatement=227}static{this.RULE_reassignOwnedStatement=228}static{this.RULE_dropStatement=229}static{this.RULE_objectTypeAnyName=230}static{this.RULE_objectTypeName=231}static{this.RULE_dropTypeName=232}static{this.RULE_objectTypeNameOnAnyName=233}static{this.RULE_anyNameList=234}static{this.RULE_anyName=235}static{this.RULE_attributes=236}static{this.RULE_typeNameList=237}static{this.RULE_truncateStatement=238}static{this.RULE_optionalRestartSequences=239}static{this.RULE_commentStatement=240}static{this.RULE_commentText=241}static{this.RULE_securityLabelStatement=242}static{this.RULE_optionalProvider=243}static{this.RULE_securityLabel=244}static{this.RULE_fetchStatement=245}static{this.RULE_fetchArguments=246}static{this.RULE_fromOrIn=247}static{this.RULE_optionalFromOrIn=248}static{this.RULE_grantStatement=249}static{this.RULE_revokeStatement=250}static{this.RULE_privileges=251}static{this.RULE_privilegeList=252}static{this.RULE_privilege=253}static{this.RULE_privilegeTarget=254}static{this.RULE_granteeList=255}static{this.RULE_grantee=256}static{this.RULE_optionalWithGrantOption=257}static{this.RULE_grantPrivilegeStatement=258}static{this.RULE_revokePrivilegeStatement=259}static{this.RULE_optionalGrantAdminOption=260}static{this.RULE_optionalGrantedBy=261}static{this.RULE_alterDefaultPrivilegesStatement=262}static{this.RULE_defultPrivilegeOption=263}static{this.RULE_defaultPrivelegeAction=264}static{this.RULE_defultPrivilegeTarget=265}static{this.RULE_indexStatement=266}static{this.RULE_optionalAccessMethodClause=267}static{this.RULE_indexParameters=268}static{this.RULE_indexElemOptions=269}static{this.RULE_indexElement=270}static{this.RULE_optionalInclude=271}static{this.RULE_optionalCollate=272}static{this.RULE_optionalClass=273}static{this.RULE_optionalAscOrDesc=274}static{this.RULE_optionalNullsOrder=275}static{this.RULE_createFunctionStatement=276}static{this.RULE_optionalOrReplace=277}static{this.RULE_functionArgumentsList=278}static{this.RULE_functionWithArgumentTypesList=279}static{this.RULE_functionWithArgumentTypes=280}static{this.RULE_functionArgumentsWithDefaultsList=281}static{this.RULE_functionArgumentWithDefault=282}static{this.RULE_functionArgument=283}static{this.RULE_argumentClass=284}static{this.RULE_parameterName=285}static{this.RULE_functionReturn=286}static{this.RULE_functionType=287}static{this.RULE_aggregateArguments=288}static{this.RULE_aggregateArgumentsList=289}static{this.RULE_aggregateWithArgumentTypes=290}static{this.RULE_aggregateWithArgumentTypesList=291}static{this.RULE_createFunctionOptionList=292}static{this.RULE_commonFunctionOptionItem=293}static{this.RULE_createFunctionOptionItem=294}static{this.RULE_functionAs=295}static{this.RULE_transformTypeList=296}static{this.RULE_optionalDefinition=297}static{this.RULE_tableFunctionColumn=298}static{this.RULE_tableFunctionColumnList=299}static{this.RULE_alterFunctionStatement=300}static{this.RULE_removeFunctionStatement=301}static{this.RULE_removeAggregateStatement=302}static{this.RULE_removeOperatorStatement=303}static{this.RULE_operatorArgumentTypes=304}static{this.RULE_anyOperator=305}static{this.RULE_operatorWithArgumentTypesList=306}static{this.RULE_operatorWithArgumentTypes=307}static{this.RULE_doStatement=308}static{this.RULE_doStatementOptionsList=309}static{this.RULE_doStatementOptionItem=310}static{this.RULE_createCastStatement=311}static{this.RULE_castContext=312}static{this.RULE_dropCastStatement=313}static{this.RULE_optionalIfExists=314}static{this.RULE_createTransformStatement=315}static{this.RULE_transformElementList=316}static{this.RULE_dropTransformStatement=317}static{this.RULE_reindexStatement=318}static{this.RULE_reindexTargetType=319}static{this.RULE_reindexOptionList=320}static{this.RULE_reindexOptionElement=321}static{this.RULE_alterTablespaceStatement=322}static{this.RULE_renameStatement=323}static{this.RULE_optionalColumn=324}static{this.RULE_optionalSetData=325}static{this.RULE_alterObjectDependsStatement=326}static{this.RULE_alterObjectSchemaStatement=327}static{this.RULE_alterOperatorStatement=328}static{this.RULE_operatorDefinitionList=329}static{this.RULE_operatorDefinitionElement=330}static{this.RULE_operatorDefinitionArgument=331}static{this.RULE_alterTypeStatement=332}static{this.RULE_alterOwnerStatement=333}static{this.RULE_createPublicationStatement=334}static{this.RULE_optionalPublicationForTables=335}static{this.RULE_publicationForTables=336}static{this.RULE_alterPublicationStatement=337}static{this.RULE_createSubscriptionStatement=338}static{this.RULE_publicationNameList=339}static{this.RULE_publicationNameItem=340}static{this.RULE_alterSubscriptionStatement=341}static{this.RULE_dropSubscriptionStatement=342}static{this.RULE_ruleStatement=343}static{this.RULE_ruleActionList=344}static{this.RULE_ruleActionMulti=345}static{this.RULE_ruleActionStatement=346}static{this.RULE_ruleActionStatementOrEmpty=347}static{this.RULE_event=348}static{this.RULE_optionalInstead=349}static{this.RULE_notifyStatement=350}static{this.RULE_notifyPayload=351}static{this.RULE_listenStatement=352}static{this.RULE_unlistenStatement=353}static{this.RULE_transactionStatement=354}static{this.RULE_optionalTransaction=355}static{this.RULE_transactionModeItem=356}static{this.RULE_transactionModeList=357}static{this.RULE_optionalTransactionChain=358}static{this.RULE_viewStatement=359}static{this.RULE_optionalCheckOption=360}static{this.RULE_loadStatement=361}static{this.RULE_createDatabaseStatement=362}static{this.RULE_createDatabaseOptionList=363}static{this.RULE_createDatabaseOptionItem=364}static{this.RULE_createDatabaseOptionName=365}static{this.RULE_alterDatabaseStatement=366}static{this.RULE_alterDatabaseSetStatement=367}static{this.RULE_dropDatabaseStatement=368}static{this.RULE_alterCollationStatement=369}static{this.RULE_alterSystemStatement=370}static{this.RULE_createDomainStatement=371}static{this.RULE_alterDomainStatement=372}static{this.RULE_alterDomainCommand=373}static{this.RULE_optionalAs=374}static{this.RULE_altertsDictionaryStatement=375}static{this.RULE_altertsConfigurationStatement=376}static{this.RULE_createConversionStatement=377}static{this.RULE_clusterStatement=378}static{this.RULE_clusterIndexSpecification=379}static{this.RULE_vacuumStatement=380}static{this.RULE_analyzeStatement=381}static{this.RULE_vacuumAnalyzeOptionList=382}static{this.RULE_analyzeKeyword=383}static{this.RULE_vacuumAnalyzeOptionElement=384}static{this.RULE_vacuumAnalyzeOptionName=385}static{this.RULE_vacuumAnalyzeOptionArgument=386}static{this.RULE_optionalVerbose=387}static{this.RULE_optionalNameList=388}static{this.RULE_vacuumRelation=389}static{this.RULE_optionalVacuumRelationList=390}static{this.RULE_explainStatement=391}static{this.RULE_explainableStatement=392}static{this.RULE_explainOptionElement=393}static{this.RULE_explainOptionName=394}static{this.RULE_explainOptionArgument=395}static{this.RULE_prepareStatement=396}static{this.RULE_prepareTypeClause=397}static{this.RULE_preparableStatement=398}static{this.RULE_executeStatement=399}static{this.RULE_executeParameterClause=400}static{this.RULE_deallocateStatement=401}static{this.RULE_insertStatement=402}static{this.RULE_insertTarget=403}static{this.RULE_insertRest=404}static{this.RULE_overrideKind=405}static{this.RULE_insertColumnList=406}static{this.RULE_insertColumnItem=407}static{this.RULE_optionalOnConflict=408}static{this.RULE_optionalConflictExpr=409}static{this.RULE_returningClause=410}static{this.RULE_mergeStatement=411}static{this.RULE_mergeInsertClause=412}static{this.RULE_mergeUpdateClause=413}static{this.RULE_mergeDeleteClause=414}static{this.RULE_deleteStatement=415}static{this.RULE_usingClause=416}static{this.RULE_lockStatement=417}static{this.RULE_optionalLock=418}static{this.RULE_lockType=419}static{this.RULE_optionalNowait=420}static{this.RULE_optionalNowaitOrSkip=421}static{this.RULE_updateStatement=422}static{this.RULE_setClauseList=423}static{this.RULE_setClause=424}static{this.RULE_setTarget=425}static{this.RULE_declareCursorStatement=426}static{this.RULE_cursorName=427}static{this.RULE_optionalHold=428}static{this.RULE_selectStatement=429}static{this.RULE_selectWithParenthesis=430}static{this.RULE_selectWithoutParenthesis=431}static{this.RULE_selectClause=432}static{this.RULE_simpleSelectIntersect=433}static{this.RULE_simpleSelectStart=434}static{this.RULE_simpleSelectPramary=435}static{this.RULE_withClause=436}static{this.RULE_commonTableExpression=437}static{this.RULE_optionalMaterialized=438}static{this.RULE_intoClause=439}static{this.RULE_optionalTemporaryTableName=440}static{this.RULE_optionalTable=441}static{this.RULE_allOrDistinct=442}static{this.RULE_distinctClause=443}static{this.RULE_allClause=444}static{this.RULE_optionalSortClause=445}static{this.RULE_sortClause=446}static{this.RULE_sortByList=447}static{this.RULE_sortBy=448}static{this.RULE_selectLimit=449}static{this.RULE_optionalSelectLimit=450}static{this.RULE_limitClause=451}static{this.RULE_offsetClause=452}static{this.RULE_selectLimitValue=453}static{this.RULE_selectOffsetValue=454}static{this.RULE_selectFetchFirstValue=455}static{this.RULE_anyConst=456}static{this.RULE_rowOrRows=457}static{this.RULE_firstOrNext=458}static{this.RULE_groupClause=459}static{this.RULE_groupByList=460}static{this.RULE_groupByItem=461}static{this.RULE_havingClause=462}static{this.RULE_forLockingClause=463}static{this.RULE_forLockingItem=464}static{this.RULE_forLockingStrength=465}static{this.RULE_lockedRelationsList=466}static{this.RULE_valuesClause=467}static{this.RULE_fromClause=468}static{this.RULE_fromList=469}static{this.RULE_nonAnsiJoin=470}static{this.RULE_tableReference=471}static{this.RULE_aliasClause=472}static{this.RULE_optionalAliasClause=473}static{this.RULE_tableAliasClause=474}static{this.RULE_functionAliasClause=475}static{this.RULE_joinType=476}static{this.RULE_joinQualifier=477}static{this.RULE_viewName=478}static{this.RULE_relationExpression=479}static{this.RULE_relationExpressionList=480}static{this.RULE_relationExpressionOptionalAlias=481}static{this.RULE_tableSampleClause=482}static{this.RULE_functionTable=483}static{this.RULE_rowsFromItem=484}static{this.RULE_optionalColumnDefinitionList=485}static{this.RULE_optionalOrdinality=486}static{this.RULE_whereClause=487}static{this.RULE_whereOrCurrentClause=488}static{this.RULE_optionalTableFunctionElementList=489}static{this.RULE_tableFunctionElementList=490}static{this.RULE_tableFunctionElement=491}static{this.RULE_xmlTable=492}static{this.RULE_xmlTableColumnElement=493}static{this.RULE_xmlTableColumnOptionList=494}static{this.RULE_xmlTableColumnOptionElement=495}static{this.RULE_xmlNamespaceList=496}static{this.RULE_xmlNamespaceElement=497}static{this.RULE_typeName=498}static{this.RULE_simpleTypeName=499}static{this.RULE_constTypeName=500}static{this.RULE_genericType=501}static{this.RULE_optionalTypeModifiers=502}static{this.RULE_numeric=503}static{this.RULE_optionalFloat=504}static{this.RULE_bit=505}static{this.RULE_constBit=506}static{this.RULE_bitWithLength=507}static{this.RULE_bitWithoutLength=508}static{this.RULE_character=509}static{this.RULE_constCharacter=510}static{this.RULE_characterChar=511}static{this.RULE_optionalVarying=512}static{this.RULE_constDateTime=513}static{this.RULE_constInterval=514}static{this.RULE_optionalTimezone=515}static{this.RULE_optionalInterval=516}static{this.RULE_intervalSecond=517}static{this.RULE_optionalEscape=518}static{this.RULE_expression1=519}static{this.RULE_expression1Qualifier=520}static{this.RULE_expression1LessLess=521}static{this.RULE_expression1Or=522}static{this.RULE_expression1And=523}static{this.RULE_expression1Between=524}static{this.RULE_expression1In=525}static{this.RULE_expression1UnaryNot=526}static{this.RULE_expression1IsNull=527}static{this.RULE_expression1IsNot=528}static{this.RULE_expression1Compare=529}static{this.RULE_expression1Like=530}static{this.RULE_expression1qualifierOperator=531}static{this.RULE_expression1UnaryQualifierOperator=532}static{this.RULE_expression1Add=533}static{this.RULE_expressionMultiply=534}static{this.RULE_expression1Caret=535}static{this.RULE_expression1UnarySign=536}static{this.RULE_expression1AtTimeZone=537}static{this.RULE_expression1Collate=538}static{this.RULE_expression1Typecast=539}static{this.RULE_expression2=540}static{this.RULE_expression3=541}static{this.RULE_plsqlVariableName=542}static{this.RULE_functionApplication=543}static{this.RULE_functionExpression=544}static{this.RULE_functionExpressionWindowless=545}static{this.RULE_functionExpressionCommonSubexpr=546}static{this.RULE_xmlRootVersion=547}static{this.RULE_optionalXmlRootStandalone=548}static{this.RULE_xmlAttributes=549}static{this.RULE_xmlAttributeList=550}static{this.RULE_xmlAttributeElement=551}static{this.RULE_documentOrContent=552}static{this.RULE_xmlWhitespaceOption=553}static{this.RULE_xmlExistsArgument=554}static{this.RULE_xmlPassingMech=555}static{this.RULE_withinGroupClause=556}static{this.RULE_filterClause=557}static{this.RULE_windowClause=558}static{this.RULE_windowDefinitionList=559}static{this.RULE_windowDefinition=560}static{this.RULE_overClause=561}static{this.RULE_windowSpecification=562}static{this.RULE_optionalExistingWindowName=563}static{this.RULE_optionalPartitionClause=564}static{this.RULE_optionalFrameClause=565}static{this.RULE_frameExtent=566}static{this.RULE_frameBound=567}static{this.RULE_optionalWindowExclusionClause=568}static{this.RULE_row=569}static{this.RULE_explicitRow=570}static{this.RULE_implicitRow=571}static{this.RULE_subType=572}static{this.RULE_allOperator=573}static{this.RULE_mathOperator=574}static{this.RULE_operatorQualifier=575}static{this.RULE_allOperatorQualifier=576}static{this.RULE_subqueryOperator=577}static{this.RULE_expressionList=578}static{this.RULE_functionArgumentList=579}static{this.RULE_functionArgumentExpression=580}static{this.RULE_typeList=581}static{this.RULE_arrayExpression=582}static{this.RULE_arrayExpressionList=583}static{this.RULE_extractList=584}static{this.RULE_extractArgument=585}static{this.RULE_unicodeNormalForm=586}static{this.RULE_overlayList=587}static{this.RULE_positionList=588}static{this.RULE_substrList=589}static{this.RULE_trimList=590}static{this.RULE_inExpression=591}static{this.RULE_caseExpression=592}static{this.RULE_whenClauseList=593}static{this.RULE_whenClause=594}static{this.RULE_caseDefault=595}static{this.RULE_caseArg=596}static{this.RULE_columnReference=597}static{this.RULE_indirectionElement=598}static{this.RULE_indirection=599}static{this.RULE_optionalIndirection=600}static{this.RULE_optionalTargetList=601}static{this.RULE_targetList=602}static{this.RULE_targetElement=603}static{this.RULE_qualifiedNameList=604}static{this.RULE_databaseName=605}static{this.RULE_databaseNameList=606}static{this.RULE_schemaName=607}static{this.RULE_schemaNameList=608}static{this.RULE_indexName=609}static{this.RULE_indexNameList=610}static{this.RULE_triggerName=611}static{this.RULE_constraintName=612}static{this.RULE_sequenceName=613}static{this.RULE_sequenceNameList=614}static{this.RULE_qualifiedName=615}static{this.RULE_nameList=616}static{this.RULE_name=617}static{this.RULE_attributeName=618}static{this.RULE_fileName=619}static{this.RULE_functionName=620}static{this.RULE_aExpressionConst=621}static{this.RULE_xconst=622}static{this.RULE_bconst=623}static{this.RULE_fconst=624}static{this.RULE_iconst=625}static{this.RULE_sconst=626}static{this.RULE_anySconst=627}static{this.RULE_optionalUescape=628}static{this.RULE_signedIconst=629}static{this.RULE_roleName=630}static{this.RULE_roleNameList=631}static{this.RULE_columnId=632}static{this.RULE_tableAlias=633}static{this.RULE_typeFunctionName=634}static{this.RULE_nonReservedWord=635}static{this.RULE_columnLabel=636}static{this.RULE_identifier=637}static{this.RULE_plsqlIdentifier=638}static{this.RULE_unreservedKeyword=639}static{this.RULE_columnNameKeyword=640}static{this.RULE_typeFunctionNameKeyword=641}static{this.RULE_reservedKeyword=642}static{this.RULE_builtinFunctionName=643}static{this.RULE_plsqlFunction=644}static{this.RULE_computeOptions=645}static{this.RULE_computeOption=646}static{this.RULE_sharp=647}static{this.RULE_optionValue=648}static{this.RULE_optionalSemi=649}static{this.RULE_plsqlBlock=650}static{this.RULE_declareSection=651}static{this.RULE_declareStart=652}static{this.RULE_declareStatements=653}static{this.RULE_labelDeclaration=654}static{this.RULE_declareStatement=655}static{this.RULE_declareStatement2=656}static{this.RULE_optionalScrollable=657}static{this.RULE_declareCursorQuery=658}static{this.RULE_declareCursorArgs=659}static{this.RULE_declareCursorArglist=660}static{this.RULE_declareCursorArg=661}static{this.RULE_declareIsOrFor=662}static{this.RULE_declareAliasItem=663}static{this.RULE_declareVarname=664}static{this.RULE_declareConst=665}static{this.RULE_declareDatatype=666}static{this.RULE_declareCollate=667}static{this.RULE_declareNotNull=668}static{this.RULE_declareDefaultValue=669}static{this.RULE_declareDefaultKey=670}static{this.RULE_assignOperator=671}static{this.RULE_procedureSection=672}static{this.RULE_proceduralStatement=673}static{this.RULE_statementPerform=674}static{this.RULE_statementCall=675}static{this.RULE_optionalExpressionList=676}static{this.RULE_statementAssign=677}static{this.RULE_statementGetDiagram=678}static{this.RULE_optionalGetDiagramArea=679}static{this.RULE_getDiagramList=680}static{this.RULE_getDiagramListItem=681}static{this.RULE_getDiagramItem=682}static{this.RULE_getDiagramTarget=683}static{this.RULE_assignVariable=684}static{this.RULE_statementIf=685}static{this.RULE_statementElsifs=686}static{this.RULE_statementElse=687}static{this.RULE_statementCase=688}static{this.RULE_optionalExpressionUntilWhen=689}static{this.RULE_caseWhenList=690}static{this.RULE_caseWhen=691}static{this.RULE_optionalCaseElse=692}static{this.RULE_statementLoop=693}static{this.RULE_statementWhile=694}static{this.RULE_statementFor=695}static{this.RULE_forControl=696}static{this.RULE_optionalForUsingExpression=697}static{this.RULE_optionalCursorParameters=698}static{this.RULE_optionalReverse=699}static{this.RULE_optionalByExpression=700}static{this.RULE_forVariable=701}static{this.RULE_statementForeachA=702}static{this.RULE_foreachSlice=703}static{this.RULE_statementExit=704}static{this.RULE_exitType=705}static{this.RULE_statementReturn=706}static{this.RULE_optionalReturnResult=707}static{this.RULE_statementRaise=708}static{this.RULE_optionalStatementRaiseLevel=709}static{this.RULE_optionalRaiseList=710}static{this.RULE_optionalRaiseUsing=711}static{this.RULE_optionalRaiseUsingElement=712}static{this.RULE_statementAssert=713}static{this.RULE_optionalStatementAssertMessage=714}static{this.RULE_loopBody=715}static{this.RULE_statementExecSql=716}static{this.RULE_statementDynExecute=717}static{this.RULE_optionalExecuteUsing=718}static{this.RULE_optionalExecuteUsingList=719}static{this.RULE_optionalExecuteInto=720}static{this.RULE_statementOpen=721}static{this.RULE_optionalOpenBoundListItem=722}static{this.RULE_statementFetch=723}static{this.RULE_intoTarget=724}static{this.RULE_optionalCursorFrom=725}static{this.RULE_optionalFetchDirection=726}static{this.RULE_statementMove=727}static{this.RULE_statementClose=728}static{this.RULE_statementNull=729}static{this.RULE_statementCommit=730}static{this.RULE_statementRollback=731}static{this.RULE_plsqlOptionalTransactionChain=732}static{this.RULE_statementSet=733}static{this.RULE_cursorVariable=734}static{this.RULE_exceptionSection=735}static{this.RULE_procedureExceptions=736}static{this.RULE_procedureException=737}static{this.RULE_procedureConditions=738}static{this.RULE_procedureCondition=739}static{this.RULE_optionalBlockLabel=740}static{this.RULE_optionalLoopLabel=741}static{this.RULE_optionalLabel=742}static{this.RULE_optionalExitCondition=743}static{this.RULE_anyIdentifier=744}static{this.RULE_plsqlUnreservedKeyword=745}static{this.RULE_sqlExpression=746}static{this.RULE_expressionUntilThen=747}static{this.RULE_expressionUntilSemi=748}static{this.RULE_expressionUntilRightbracket=749}static{this.RULE_expressionUntilLoop=750}static{this.RULE_makeExecuteSqlStatement=751}static{this.RULE_optionalReturningClauseInto=752}static{this.RULE_roleOrAliases=753}static{this.literalNames=[null,"'$'","'('","')'","'['","']'","','","';'","':'","'*'","'='","'.'","'+'","'-'","'/'","'^'","'<'","'>'","'<<'","'>>'","':='","'<='","'=>'","'>='","'..'","'<>'","'::'","'%'",null,null,"'ALL'","'ANALYSE'","'ANALYZE'","'AND'","'ANY'","'ARRAY'","'AS'","'ASC'","'ASYMMETRIC'","'BOTH'","'CASE'","'CAST'","'CHECK'","'COLLATE'","'COLUMN'","'CONSTRAINT'","'CREATE'","'CURRENT_CATALOG'","'CURRENT_DATE'","'CURRENT_ROLE'","'CURRENT_TIME'","'CURRENT_TIMESTAMP'","'CURRENT_USER'","'DEFAULT'","'DEFERRABLE'","'DESC'","'DISTINCT'","'DO'","'ELSE'","'EXCEPT'","'FALSE'","'FETCH'","'FOR'","'FOREIGN'","'FROM'","'GRANT'","'GROUP'","'HAVING'","'IN'","'INITIALLY'","'INTERSECT'","'INTO'","'LATERAL'","'LEADING'","'LIMIT'","'LOCALTIME'","'LOCALTIMESTAMP'","'NOT'","'NULL'","'OFFSET'","'ON'","'ONLY'","'OR'","'ORDER'","'PLACING'","'PRIMARY'","'REFERENCES'","'RETURNING'","'SELECT'","'SESSION_USER'","'SOME'","'SYMMETRIC'","'TABLE'","'THEN'","'TO'","'TRAILING'","'TRUE'","'UNION'","'UNIQUE'","'USER'","'USING'","'VARIADIC'","'WHEN'","'WHERE'","'WINDOW'","'WITH'","'AUTHORIZATION'","'BINARY'","'COLLATION'","'CONCURRENTLY'","'CROSS'","'CURRENT_SCHEMA'","'FREEZE'","'FULL'","'ILIKE'","'INNER'","'IS'","'ISNULL'","'JOIN'","'LEFT'","'LIKE'","'NATURAL'","'NOTNULL'","'OUTER'","'OVER'","'OVERLAPS'","'RIGHT'","'SIMILAR'","'VERBOSE'","'ABORT'","'ABSOLUTE'","'ACCESS'","'ACTION'","'ADD'","'ADMIN'","'AFTER'","'AGGREGATE'","'ALSO'","'ALTER'","'ALWAYS'","'ASSERTION'","'ASSIGNMENT'","'AT'","'ATTRIBUTE'","'BACKWARD'","'BEFORE'","'BEGIN'","'BY'","'CACHE'","'CALLED'","'CASCADE'","'CASCADED'","'CATALOG'","'CHAIN'","'CHARACTERISTICS'","'CHECKPOINT'","'CLASS'","'CLOSE'","'CLUSTER'","'COMMENT'","'COMMENTS'","'COMMIT'","'COMMITTED'","'CONFIGURATION'","'CONNECTION'","'CONSTRAINTS'","'CONTENT'","'CONTINUE'","'CONVERSION'","'COPY'","'COST'","'CSV'","'CURSOR'","'CYCLE'","'DATA'","'DATABASE'","'DAY'","'DEALLOCATE'","'DECLARE'","'DEFAULTS'","'DEFERRED'","'DEFINER'","'DELETE'","'DELIMITER'","'DELIMITERS'","'DICTIONARY'","'DISABLE'","'DISCARD'","'DOCUMENT'","'DOMAIN'","'DOUBLE'","'DROP'","'EACH'","'ENABLE'","'ENCODING'","'ENCRYPTED'","'ENUM'","'ESCAPE'","'EVENT'","'EXCLUDE'","'EXCLUDING'","'EXCLUSIVE'","'EXECUTE'","'EXPLAIN'","'EXTENSION'","'EXTERNAL'","'FAMILY'","'FIRST'","'FOLLOWING'","'FORCE'","'FORWARD'","'FUNCTION'","'FUNCTIONS'","'GLOBAL'","'GRANTED'","'HANDLER'","'HEADER'","'HOLD'","'HOUR'","'IDENTITY'","'IF'","'IMMEDIATE'","'IMMUTABLE'","'IMPLICIT'","'INCLUDING'","'INCREMENT'","'INDEX'","'INDEXES'","'INHERIT'","'INHERITS'","'INLINE'","'INSENSITIVE'","'INSERT'","'INSTEAD'","'INVOKER'","'ISOLATION'","'KEY'","'LABEL'","'LANGUAGE'","'LARGE'","'LAST'","'LEAKPROOF'","'LEVEL'","'LISTEN'","'LOAD'","'LOCAL'","'LOCATION'","'LOCK'","'MAPPING'","'MATCH'","'MATCHED'","'MATERIALIZED'","'MAXVALUE'","'MERGE'","'MINUTE'","'MINVALUE'","'MODE'","'MONTH'","'MOVE'","'NAME'","'NAMES'","'NEXT'","'NO'","'NOTHING'","'NOTIFY'","'NOWAIT'","'NULLS'","'OBJECT'","'OF'","'OFF'","'OIDS'","'OPERATOR'","'OPTION'","'OPTIONS'","'OWNED'","'OWNER'","'PARSER'","'PARTIAL'","'PARTITION'","'PASSING'","'PASSWORD'","'PLANS'","'PRECEDING'","'PREPARE'","'PREPARED'","'PRESERVE'","'PRIOR'","'PRIVILEGES'","'PROCEDURAL'","'PROCEDURE'","'PROGRAM'","'QUOTE'","'RANGE'","'READ'","'REASSIGN'","'RECHECK'","'RECURSIVE'","'REF'","'REFRESH'","'REINDEX'","'RELATIVE'","'RELEASE'","'RENAME'","'REPEATABLE'","'REPLACE'","'REPLICA'","'RESET'","'RESTART'","'RESTRICT'","'RETURNS'","'REVOKE'","'ROLE'","'ROLLBACK'","'ROWS'","'RULE'","'SAVEPOINT'","'SCHEMA'","'SCROLL'","'SEARCH'","'SECOND'","'SECURITY'","'SEQUENCE'","'SEQUENCES'","'SERIALIZABLE'","'SERVER'","'SESSION'","'SET'","'SHARE'","'SHOW'","'SIMPLE'","'SNAPSHOT'","'STABLE'","'STANDALONE'","'START'","'STATEMENT'","'STATISTICS'","'STDIN'","'STDOUT'","'STORAGE'","'STRICT'","'STRIP'","'SYSID'","'SYSTEM'","'TABLES'","'TABLESPACE'","'TEMP'","'TEMPLATE'","'TEMPORARY'","'TEXT'","'TRANSACTION'","'TRIGGER'","'TRUNCATE'","'TRUSTED'","'TYPE'","'TYPES'","'UNBOUNDED'","'UNCOMMITTED'","'UNENCRYPTED'","'UNKNOWN'","'UNLISTEN'","'UNLOGGED'","'UNTIL'","'UPDATE'","'VACUUM'","'VALID'","'VALIDATE'","'VALIDATOR'","'VARYING'","'VERSION'","'VIEW'","'VOLATILE'","'WHITESPACE'","'WITHOUT'","'WORK'","'WRAPPER'","'WRITE'","'XML'","'YEAR'","'YES'","'ZONE'","'BETWEEN'","'BIGINT'","'BIT'","'BOOLEAN'","'CHAR'","'CHARACTER'","'COALESCE'","'DEC'","'DECIMAL'","'EXISTS'","'EXTRACT'","'FLOAT'","'GREATEST'","'INOUT'","'INT'","'INTEGER'","'INTERVAL'","'LEAST'","'NATIONAL'","'NCHAR'","'NONE'","'NULLIF'","'NUMERIC'","'OVERLAY'","'POSITION'","'PRECISION'","'REAL'","'ROW'","'SETOF'","'SMALLINT'","'SUBSTRING'","'TIME'","'TIMESTAMP'","'TREAT'","'TRIM'","'VALUES'","'VARCHAR'","'XMLATTRIBUTES'","'XMLCOMMENT'","'XMLAGG'","'XML_IS_WELL_FORMED'","'XML_IS_WELL_FORMED_DOCUMENT'","'XML_IS_WELL_FORMED_CONTENT'","'XPATH'","'XPATH_EXISTS'","'XMLCONCAT'","'XMLELEMENT'","'XMLEXISTS'","'XMLFOREST'","'XMLPARSE'","'XMLPI'","'XMLROOT'","'XMLSERIALIZE'","'CALL'","'CURRENT'","'ATTACH'","'DETACH'","'EXPRESSION'","'GENERATED'","'LOGGED'","'STORED'","'INCLUDE'","'ROUTINE'","'TRANSFORM'","'IMPORT'","'POLICY'","'METHOD'","'REFERENCING'","'NEW'","'OLD'","'VALUE'","'SUBSCRIPTION'","'PUBLICATION'","'OUT'","'END'","'ROUTINES'","'SCHEMAS'","'PROCEDURES'","'INPUT'","'SUPPORT'","'PARALLEL'","'SQL'","'DEPENDS'","'OVERRIDING'","'CONFLICT'","'SKIP'","'LOCKED'","'TIES'","'ROLLUP'","'CUBE'","'GROUPING'","'SETS'","'TABLESAMPLE'","'ORDINALITY'","'XMLTABLE'","'COLUMNS'","'XMLNAMESPACES'","'ROWTYPE'","'NORMALIZED'","'WITHIN'","'FILTER'","'GROUPS'","'OTHERS'","'NFC'","'NFD'","'NFKC'","'NFKD'","'UESCAPE'","'VIEWS'","'NORMALIZE'","'DUMP'","'PRINT_STRICT_PARAMS'","'VARIABLE_CONFLICT'","'ERROR'","'USE_VARIABLE'","'USE_COLUMN'","'ALIAS'","'CONSTANT'","'PERFORM'","'GET'","'DIAGNOSTICS'","'STACKED'","'ELSIF'","'WHILE'","'REVERSE'","'FOREACH'","'SLICE'","'EXIT'","'RETURN'","'QUERY'","'RAISE'","'SQLSTATE'","'DEBUG'","'LOG'","'INFO'","'NOTICE'","'WARNING'","'EXCEPTION'","'ASSERT'","'LOOP'","'OPEN'","'ABS'","'CBRT'","'CEIL'","'CEILING'","'DEGREES'","'DIV'","'EXP'","'FACTORIAL'","'FLOOR'","'GCD'","'LCM'","'LN'","'LOG10'","'MIN_SCALE'","'MOD'","'PI'","'POWER'","'RADIANS'","'ROUND'","'SCALE'","'SIGN'","'SQRT'","'TRIM_SCALE'","'TRUNC'","'WIDTH_BUCKET'","'RANDOM'","'SETSEED'","'ACOS'","'ACOSD'","'ASIN'","'ASIND'","'ATAN'","'ATAND'","'ATAN2'","'ATAN2D'","'COS'","'COSD'","'COT'","'COTD'","'SIN'","'SIND'","'TAN'","'TAND'","'SINH'","'COSH'","'TANH'","'ASINH'","'ACOSH'","'ATANH'","'BIT_LENGTH'","'CHAR_LENGTH'","'CHARACTER_LENGTH'","'LOWER'","'OCTET_LENGTH'","'UPPER'","'ASCII'","'BTRIM'","'CHR'","'CONCAT'","'CONCAT_WS'","'FORMAT'","'INITCAP'","'LENGTH'","'LPAD'","'LTRIM'","'MD5'","'PARSE_IDENT'","'PG_CLIENT_ENCODING'","'QUOTE_IDENT'","'QUOTE_LITERAL'","'QUOTE_NULLABLE'","'REGEXP_COUNT'","'REGEXP_INSTR'","'REGEXP_LIKE'","'REGEXP_MATCH'","'REGEXP_MATCHES'","'REGEXP_REPLACE'","'REGEXP_SPLIT_TO_ARRAY'","'REGEXP_SPLIT_TO_TABLE'","'REGEXP_SUBSTR'","'REPEAT'","'RPAD'","'RTRIM'","'SPLIT_PART'","'STARTS_WITH'","'STRING_TO_ARRAY'","'STRING_TO_TABLE'","'STRPOS'","'SUBSTR'","'TO_ASCII'","'TO_HEX'","'TRANSLATE'","'UNISTR'","'AGE'","'CLOCK_TIMESTAMP'","'DATE_BIN'","'DATE_PART'","'DATE_TRUNC'","'ISFINITE'","'JUSTIFY_DAYS'","'JUSTIFY_HOURS'","'JUSTIFY_INTERVAL'","'MAKE_DATE'","'MAKE_INTERVAL'","'MAKE_TIME'","'MAKE_TIMESTAMP'","'MAKE_TIMESTAMPTZ'","'NOW'","'STATEMENT_TIMESTAMP'","'TIMEOFDAY'","'TRANSACTION_TIMESTAMP'","'TO_TIMESTAMP'","'TO_CHAR'","'TO_DATE'","'TO_NUMBER'",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"'\\'",null,null,null,null,null,null,null,null,null,"'''"]}static{this.symbolicNames=[null,"Dollar","OPEN_PAREN","CLOSE_PAREN","OPEN_BRACKET","CLOSE_BRACKET","COMMA","SEMI","COLON","STAR","EQUAL","DOT","PLUS","MINUS","SLASH","CARET","LT","GT","LESS_LESS","GREATER_GREATER","COLON_EQUALS","LESS_EQUALS","EQUALS_GREATER","GREATER_EQUALS","DOT_DOT","NOT_EQUALS","TYPECAST","PERCENT","PARAM","Operator","ALL","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASYMMETRIC","BOTH","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","EXCEPT","FALSE_P","FETCH","FOR","FOREIGN","FROM","GRANT","GROUP_P","HAVING","IN_P","INITIALLY","INTERSECT","INTO","LATERAL_P","LEADING","LIMIT","LOCALTIME","LOCALTIMESTAMP","NOT","NULL_P","OFFSET","ON","ONLY","OR","ORDER","PLACING","PRIMARY","REFERENCES","RETURNING","SELECT","SESSION_USER","SOME","SYMMETRIC","TABLE","THEN","TO","TRAILING","TRUE_P","UNION","UNIQUE","USER","USING","VARIADIC","WHEN","WHERE","WINDOW","WITH","AUTHORIZATION","BINARY","COLLATION","CONCURRENTLY","CROSS","CURRENT_SCHEMA","FREEZE","FULL","ILIKE","INNER_P","IS","ISNULL","JOIN","LEFT","LIKE","NATURAL","NOTNULL","OUTER_P","OVER","OVERLAPS","RIGHT","SIMILAR","VERBOSE","ABORT_P","ABSOLUTE_P","ACCESS","ACTION","ADD_P","ADMIN","AFTER","AGGREGATE","ALSO","ALTER","ALWAYS","ASSERTION","ASSIGNMENT","AT","ATTRIBUTE","BACKWARD","BEFORE","BEGIN_P","BY","CACHE","CALLED","CASCADE","CASCADED","CATALOG","CHAIN","CHARACTERISTICS","CHECKPOINT","CLASS","CLOSE","CLUSTER","COMMENT","COMMENTS","COMMIT","COMMITTED","CONFIGURATION","CONNECTION","CONSTRAINTS","CONTENT_P","CONTINUE_P","CONVERSION_P","COPY","COST","CSV","CURSOR","CYCLE","DATA_P","DATABASE","DAY_P","DEALLOCATE","DECLARE","DEFAULTS","DEFERRED","DEFINER","DELETE_P","DELIMITER","DELIMITERS","DICTIONARY","DISABLE_P","DISCARD","DOCUMENT_P","DOMAIN_P","DOUBLE_P","DROP","EACH","ENABLE_P","ENCODING","ENCRYPTED","ENUM_P","ESCAPE","EVENT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXPLAIN","EXTENSION","EXTERNAL","FAMILY","FIRST_P","FOLLOWING","FORCE","FORWARD","FUNCTION","FUNCTIONS","GLOBAL","GRANTED","HANDLER","HEADER_P","HOLD","HOUR_P","IDENTITY_P","IF_P","IMMEDIATE","IMMUTABLE","IMPLICIT_P","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INLINE_P","INSENSITIVE","INSERT","INSTEAD","INVOKER","ISOLATION","KEY","LABEL","LANGUAGE","LARGE_P","LAST_P","LEAKPROOF","LEVEL","LISTEN","LOAD","LOCAL","LOCATION","LOCK_P","MAPPING","MATCH","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MINUTE_P","MINVALUE","MODE","MONTH_P","MOVE","NAME_P","NAMES","NEXT","NO","NOTHING","NOTIFY","NOWAIT","NULLS_P","OBJECT_P","OF","OFF","OIDS","OPERATOR","OPTION","OPTIONS","OWNED","OWNER","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLANS","PRECEDING","PREPARE","PREPARED","PRESERVE","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","QUOTE","RANGE","READ","REASSIGN","RECHECK","RECURSIVE","REF","REFRESH","REINDEX","RELATIVE_P","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURNS","REVOKE","ROLE","ROLLBACK","ROWS","RULE","SAVEPOINT","SCHEMA","SCROLL","SEARCH","SECOND_P","SECURITY","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SIMPLE","SNAPSHOT","STABLE","STANDALONE_P","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STRICT_P","STRIP_P","SYSID","SYSTEM_P","TABLES","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT_P","TRANSACTION","TRIGGER","TRUNCATE","TRUSTED","TYPE_P","TYPES_P","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","VACUUM","VALID","VALIDATE","VALIDATOR","VARYING","VERSION_P","VIEW","VOLATILE","WHITESPACE_P","WITHOUT","WORK","WRAPPER","WRITE","XML_P","YEAR_P","YES_P","ZONE","BETWEEN","BIGINT","BIT","BOOLEAN_P","CHAR_P","CHARACTER","COALESCE","DEC","DECIMAL_P","EXISTS","EXTRACT","FLOAT_P","GREATEST","INOUT","INT_P","INTEGER","INTERVAL","LEAST","NATIONAL","NCHAR","NONE","NULLIF","NUMERIC","OVERLAY","POSITION","PRECISION","REAL","ROW","SETOF","SMALLINT","SUBSTRING","TIME","TIMESTAMP","TREAT","TRIM","VALUES","VARCHAR","XMLATTRIBUTES","XMLCOMMENT","XMLAGG","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_DOCUMENT","XML_IS_WELL_FORMED_CONTENT","XPATH","XPATH_EXISTS","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","CALL","CURRENT_P","ATTACH","DETACH","EXPRESSION","GENERATED","LOGGED","STORED","INCLUDE","ROUTINE","TRANSFORM","IMPORT_P","POLICY","METHOD","REFERENCING","NEW","OLD","VALUE_P","SUBSCRIPTION","PUBLICATION","OUT_P","END_P","ROUTINES","SCHEMAS","PROCEDURES","INPUT_P","SUPPORT","PARALLEL","SQL_P","DEPENDS","OVERRIDING","CONFLICT","SKIP_P","LOCKED","TIES","ROLLUP","CUBE","GROUPING","SETS","TABLESAMPLE","ORDINALITY","XMLTABLE","COLUMNS","XMLNAMESPACES","ROWTYPE","NORMALIZED","WITHIN","FILTER","GROUPS","OTHERS","NFC","NFD","NFKC","NFKD","UESCAPE","VIEWS","NORMALIZE","DUMP","PRINT_STRICT_PARAMS","VARIABLE_CONFLICT","ERROR","USE_VARIABLE","USE_COLUMN","ALIAS","CONSTANT","PERFORM","GET","DIAGNOSTICS","STACKED","ELSIF","WHILE","REVERSE","FOREACH","SLICE","EXIT","RETURN","QUERY","RAISE","SQLSTATE","DEBUG","LOG","INFO","NOTICE","WARNING","EXCEPTION","ASSERT","LOOP","OPEN","ABS","CBRT","CEIL","CEILING","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","ROUND","SCALE","SIGN","SQRT","TRIM_SCALE","TRUNC","WIDTH_BUCKET","RANDOM","SETSEED","ACOS","ACOSD","ASIN","ASIND","ATAN","ATAND","ATAN2","ATAN2D","COS","COSD","COT","COTD","SIN","SIND","TAN","TAND","SINH","COSH","TANH","ASINH","ACOSH","ATANH","BIT_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","LOWER","OCTET_LENGTH","UPPER","ASCII","BTRIM","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LENGTH","LPAD","LTRIM","MD5","PARSE_IDENT","PG_CLIENT_ENCODING","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REGEXP_SUBSTR","REPEAT","RPAD","RTRIM","SPLIT_PART","STARTS_WITH","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","TO_ASCII","TO_HEX","TRANSLATE","UNISTR","AGE","CLOCK_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","STATEMENT_TIMESTAMP","TIMEOFDAY","TRANSACTION_TIMESTAMP","TO_TIMESTAMP","TO_CHAR","TO_DATE","TO_NUMBER","Identifier","QuotedIdentifier","UnterminatedQuotedIdentifier","InvalidQuotedIdentifier","InvalidUnterminatedQuotedIdentifier","UnicodeQuotedIdentifier","UnterminatedUnicodeQuotedIdentifier","InvalidUnicodeQuotedIdentifier","InvalidUnterminatedUnicodeQuotedIdentifier","StringConstant","UnterminatedStringConstant","UnicodeEscapeStringConstant","UnterminatedUnicodeEscapeStringConstant","BeginDollarStringConstant","BinaryStringConstant","UnterminatedBinaryStringConstant","InvalidBinaryStringConstant","InvalidUnterminatedBinaryStringConstant","HexadecimalStringConstant","UnterminatedHexadecimalStringConstant","InvalidHexadecimalStringConstant","InvalidUnterminatedHexadecimalStringConstant","Integral","NumericFail","Numeric","PLSQLVARIABLENAME","PLSQLIDENTIFIER","Whitespace","Newline","LineComment","BlockComment","UnterminatedBlockComment","MetaCommand","EndMetaCommand","ErrorCharacter","EscapeStringConstant","UnterminatedEscapeStringConstant","InvalidEscapeStringConstant","InvalidUnterminatedEscapeStringConstant","AfterEscapeStringConstantMode_NotContinued","AfterEscapeStringConstantWithNewlineMode_NotContinued","DollarText","EndDollarStringConstant","AfterEscapeStringConstantWithNewlineMode_Continued"]}static{this.ruleNames=["root","plsqlRoot","statements","statement","plsqlConsoleCommand","callStatement","optionalWith","optionalRoleList","alterOptionalRoleList","alterRoleElemement","createRoleElement","createRoleStatement","alterRoleStatement","optionalInDatabase","alterRoleSetStatement","dropRoleStatement","addOrDrop","createSchemaStatement","optionalSchemaName","optionalSchemaList","schemaStatement","variableSetStatement","setStatementEnding","genericSetClause","setStatementMore","variableName","variableList","variableValue","isoLevel","booleanOrString","zoneValue","optionalEncoding","nonReservedWordOrSconst","variableResetStatement","resetClauseRest","genericResetClause","setResetClause","functionSetResetClause","variableShowStatement","setConstraintsStatement","constraintsSetList","constraintsSetMode","checkpointStatement","discardStatement","alterTableStatement","alterTableCommands","partitionCommand","indexPartitionCommand","alterTableCommand","alterColumnDefault","optionalDropBehavior","optionalCollateClause","alterUsing","replicaIdentity","relOptions","optionalRelOptions","relOptionList","relOptionElem","alterIdentityColumnOptionList","alterIdentityColumnOption","partitionBoundSpecification","hashPartitionBoundElement","hashPartitionBound","alterCompositeTypeStatement","alterTypeCommands","alterTypeCommand","closePortalStatement","copyStatement","fromOrTo","copyFileName","copyOptions","copyOptionsItem","copyDelimiter","copyGenericOptionList","copyGenericOptionElem","copyGenericOptionArgument","createStatement","temporaryOption","optionalTableElementList","optionalTypedTableElementList","tableElementList","typedTableElementList","tableElement","typedTableElement","columnDefinition","columnOptions","columnQualifierList","columnConstraint","columnConstraintElement","generatedWhen","constraintAttribute","tableLikeClause","tableLikeOptionList","tableLikeOption","tableConstraint","constraintElement","columnListWithParentheses","columnList","columnElement","optionalColumnListInclude","matchClause","exclusionConstraintList","exclusionConstraintElement","exclusionWhereClause","keyActions","onKeyUpdateClause","onKeyDeleteClause","keyAction","inheritClause","optionalPartitionSpecification","partitionSpecification","partitionElements","partitionElement","optionalTableAccessMethodClause","with","onCommitOption","optionalTablespace","usingIndexTablespace","existingIndex","createStatsStatement","alterStatsStatement","createAsStatement","createAsTarget","withData","createMaterializedViewStatement","createMaterializedViewTarget","refreshMaterializedViewStatement","createSequenceStatement","alterSequenceStatement","optionalParenthesizedSeqOptionsList","sequenceOptionList","sequenceOptionItem","numericOnly","numericOnlyList","createProcedureLangStatement","handlerName","optionalInlineHandler","validatorClause","optionalProcedural","createTablespaceStatement","optionalTablespaceOwner","dropTablespaceStatement","createExtensionStatement","createExtensionOptionItem","alterExtensionStatement","alterExtensionOptionItem","alterExtensionContentsStatement","createForeignDataWrapperStatement","forwardOption","forwardOptions","alterForeignDataWrapperStatement","createGenericOptions","genericOptionList","alterGenericOptions","alterGenericOptionList","alterGenericOptionElem","genericOptionElement","genericOptionName","genericOptionArgument","createForeignServerStatement","optionalType","foreignServerVersion","alterForeignServerStatement","createForeignTableStatement","importForeignSchemaStatement","importQualificationType","importQualification","createUserMappingStatement","authIdentifier","dropUserMappingStatement","alterUserMappingStatement","createPolicyStatement","alterPolicyStatement","rowSecurityOptionalExpression","rowSecurityOptionalWithCheck","rowSecurityOptionalToUser","rowSecurityDefaultPermissive","rowSecurityDefaultForCmd","rowSecurityCommand","createAccessMethodStatement","accessMethodType","createTriggerStatement","triggerActionTime","triggerEvents","triggerOneEvent","triggerReferencing","triggerTransitions","triggerTransition","transitionOldOrNew","transitionRowOrTable","transitionRelName","triggerForSpec","triggerForType","triggerWhen","functionOrProcedure","triggerFunctionArguments","triggerFunctionArgument","optionalConstraintFromTable","constraintAttributeSpecification","constraintAttributeElement","createEventTriggerStatement","eventTriggerWhenList","eventTriggerWhenItem","eventTriggerValueList","alterEventTriggerStatement","enableTrigger","createAssertionStatement","defineStatement","definition","definitionElement","definitionArgument","oldAggregateDefinition","oldAggregateElement","enumValueList","alterEnumStatement","optionalIfNotExists","createOperatorClassStatement","operatorClassItemList","operatorClassItem","optionalOperatorFamily","operatorClassPurpose","createOperatorFamilyStatement","alterOperatorFamilyStatement","operatorClassDropList","operatorClassDrop","dropOperatorClassStatement","dropOperatorFamilyStatement","dropOwnedStatement","reassignOwnedStatement","dropStatement","objectTypeAnyName","objectTypeName","dropTypeName","objectTypeNameOnAnyName","anyNameList","anyName","attributes","typeNameList","truncateStatement","optionalRestartSequences","commentStatement","commentText","securityLabelStatement","optionalProvider","securityLabel","fetchStatement","fetchArguments","fromOrIn","optionalFromOrIn","grantStatement","revokeStatement","privileges","privilegeList","privilege","privilegeTarget","granteeList","grantee","optionalWithGrantOption","grantPrivilegeStatement","revokePrivilegeStatement","optionalGrantAdminOption","optionalGrantedBy","alterDefaultPrivilegesStatement","defultPrivilegeOption","defaultPrivelegeAction","defultPrivilegeTarget","indexStatement","optionalAccessMethodClause","indexParameters","indexElemOptions","indexElement","optionalInclude","optionalCollate","optionalClass","optionalAscOrDesc","optionalNullsOrder","createFunctionStatement","optionalOrReplace","functionArgumentsList","functionWithArgumentTypesList","functionWithArgumentTypes","functionArgumentsWithDefaultsList","functionArgumentWithDefault","functionArgument","argumentClass","parameterName","functionReturn","functionType","aggregateArguments","aggregateArgumentsList","aggregateWithArgumentTypes","aggregateWithArgumentTypesList","createFunctionOptionList","commonFunctionOptionItem","createFunctionOptionItem","functionAs","transformTypeList","optionalDefinition","tableFunctionColumn","tableFunctionColumnList","alterFunctionStatement","removeFunctionStatement","removeAggregateStatement","removeOperatorStatement","operatorArgumentTypes","anyOperator","operatorWithArgumentTypesList","operatorWithArgumentTypes","doStatement","doStatementOptionsList","doStatementOptionItem","createCastStatement","castContext","dropCastStatement","optionalIfExists","createTransformStatement","transformElementList","dropTransformStatement","reindexStatement","reindexTargetType","reindexOptionList","reindexOptionElement","alterTablespaceStatement","renameStatement","optionalColumn","optionalSetData","alterObjectDependsStatement","alterObjectSchemaStatement","alterOperatorStatement","operatorDefinitionList","operatorDefinitionElement","operatorDefinitionArgument","alterTypeStatement","alterOwnerStatement","createPublicationStatement","optionalPublicationForTables","publicationForTables","alterPublicationStatement","createSubscriptionStatement","publicationNameList","publicationNameItem","alterSubscriptionStatement","dropSubscriptionStatement","ruleStatement","ruleActionList","ruleActionMulti","ruleActionStatement","ruleActionStatementOrEmpty","event","optionalInstead","notifyStatement","notifyPayload","listenStatement","unlistenStatement","transactionStatement","optionalTransaction","transactionModeItem","transactionModeList","optionalTransactionChain","viewStatement","optionalCheckOption","loadStatement","createDatabaseStatement","createDatabaseOptionList","createDatabaseOptionItem","createDatabaseOptionName","alterDatabaseStatement","alterDatabaseSetStatement","dropDatabaseStatement","alterCollationStatement","alterSystemStatement","createDomainStatement","alterDomainStatement","alterDomainCommand","optionalAs","altertsDictionaryStatement","altertsConfigurationStatement","createConversionStatement","clusterStatement","clusterIndexSpecification","vacuumStatement","analyzeStatement","vacuumAnalyzeOptionList","analyzeKeyword","vacuumAnalyzeOptionElement","vacuumAnalyzeOptionName","vacuumAnalyzeOptionArgument","optionalVerbose","optionalNameList","vacuumRelation","optionalVacuumRelationList","explainStatement","explainableStatement","explainOptionElement","explainOptionName","explainOptionArgument","prepareStatement","prepareTypeClause","preparableStatement","executeStatement","executeParameterClause","deallocateStatement","insertStatement","insertTarget","insertRest","overrideKind","insertColumnList","insertColumnItem","optionalOnConflict","optionalConflictExpr","returningClause","mergeStatement","mergeInsertClause","mergeUpdateClause","mergeDeleteClause","deleteStatement","usingClause","lockStatement","optionalLock","lockType","optionalNowait","optionalNowaitOrSkip","updateStatement","setClauseList","setClause","setTarget","declareCursorStatement","cursorName","optionalHold","selectStatement","selectWithParenthesis","selectWithoutParenthesis","selectClause","simpleSelectIntersect","simpleSelectStart","simpleSelectPramary","withClause","commonTableExpression","optionalMaterialized","intoClause","optionalTemporaryTableName","optionalTable","allOrDistinct","distinctClause","allClause","optionalSortClause","sortClause","sortByList","sortBy","selectLimit","optionalSelectLimit","limitClause","offsetClause","selectLimitValue","selectOffsetValue","selectFetchFirstValue","anyConst","rowOrRows","firstOrNext","groupClause","groupByList","groupByItem","havingClause","forLockingClause","forLockingItem","forLockingStrength","lockedRelationsList","valuesClause","fromClause","fromList","nonAnsiJoin","tableReference","aliasClause","optionalAliasClause","tableAliasClause","functionAliasClause","joinType","joinQualifier","viewName","relationExpression","relationExpressionList","relationExpressionOptionalAlias","tableSampleClause","functionTable","rowsFromItem","optionalColumnDefinitionList","optionalOrdinality","whereClause","whereOrCurrentClause","optionalTableFunctionElementList","tableFunctionElementList","tableFunctionElement","xmlTable","xmlTableColumnElement","xmlTableColumnOptionList","xmlTableColumnOptionElement","xmlNamespaceList","xmlNamespaceElement","typeName","simpleTypeName","constTypeName","genericType","optionalTypeModifiers","numeric","optionalFloat","bit","constBit","bitWithLength","bitWithoutLength","character","constCharacter","characterChar","optionalVarying","constDateTime","constInterval","optionalTimezone","optionalInterval","intervalSecond","optionalEscape","expression1","expression1Qualifier","expression1LessLess","expression1Or","expression1And","expression1Between","expression1In","expression1UnaryNot","expression1IsNull","expression1IsNot","expression1Compare","expression1Like","expression1qualifierOperator","expression1UnaryQualifierOperator","expression1Add","expressionMultiply","expression1Caret","expression1UnarySign","expression1AtTimeZone","expression1Collate","expression1Typecast","expression2","expression3","plsqlVariableName","functionApplication","functionExpression","functionExpressionWindowless","functionExpressionCommonSubexpr","xmlRootVersion","optionalXmlRootStandalone","xmlAttributes","xmlAttributeList","xmlAttributeElement","documentOrContent","xmlWhitespaceOption","xmlExistsArgument","xmlPassingMech","withinGroupClause","filterClause","windowClause","windowDefinitionList","windowDefinition","overClause","windowSpecification","optionalExistingWindowName","optionalPartitionClause","optionalFrameClause","frameExtent","frameBound","optionalWindowExclusionClause","row","explicitRow","implicitRow","subType","allOperator","mathOperator","operatorQualifier","allOperatorQualifier","subqueryOperator","expressionList","functionArgumentList","functionArgumentExpression","typeList","arrayExpression","arrayExpressionList","extractList","extractArgument","unicodeNormalForm","overlayList","positionList","substrList","trimList","inExpression","caseExpression","whenClauseList","whenClause","caseDefault","caseArg","columnReference","indirectionElement","indirection","optionalIndirection","optionalTargetList","targetList","targetElement","qualifiedNameList","databaseName","databaseNameList","schemaName","schemaNameList","indexName","indexNameList","triggerName","constraintName","sequenceName","sequenceNameList","qualifiedName","nameList","name","attributeName","fileName","functionName","aExpressionConst","xconst","bconst","fconst","iconst","sconst","anySconst","optionalUescape","signedIconst","roleName","roleNameList","columnId","tableAlias","typeFunctionName","nonReservedWord","columnLabel","identifier","plsqlIdentifier","unreservedKeyword","columnNameKeyword","typeFunctionNameKeyword","reservedKeyword","builtinFunctionName","plsqlFunction","computeOptions","computeOption","sharp","optionValue","optionalSemi","plsqlBlock","declareSection","declareStart","declareStatements","labelDeclaration","declareStatement","declareStatement2","optionalScrollable","declareCursorQuery","declareCursorArgs","declareCursorArglist","declareCursorArg","declareIsOrFor","declareAliasItem","declareVarname","declareConst","declareDatatype","declareCollate","declareNotNull","declareDefaultValue","declareDefaultKey","assignOperator","procedureSection","proceduralStatement","statementPerform","statementCall","optionalExpressionList","statementAssign","statementGetDiagram","optionalGetDiagramArea","getDiagramList","getDiagramListItem","getDiagramItem","getDiagramTarget","assignVariable","statementIf","statementElsifs","statementElse","statementCase","optionalExpressionUntilWhen","caseWhenList","caseWhen","optionalCaseElse","statementLoop","statementWhile","statementFor","forControl","optionalForUsingExpression","optionalCursorParameters","optionalReverse","optionalByExpression","forVariable","statementForeachA","foreachSlice","statementExit","exitType","statementReturn","optionalReturnResult","statementRaise","optionalStatementRaiseLevel","optionalRaiseList","optionalRaiseUsing","optionalRaiseUsingElement","statementAssert","optionalStatementAssertMessage","loopBody","statementExecSql","statementDynExecute","optionalExecuteUsing","optionalExecuteUsingList","optionalExecuteInto","statementOpen","optionalOpenBoundListItem","statementFetch","intoTarget","optionalCursorFrom","optionalFetchDirection","statementMove","statementClose","statementNull","statementCommit","statementRollback","plsqlOptionalTransactionChain","statementSet","cursorVariable","exceptionSection","procedureExceptions","procedureException","procedureConditions","procedureCondition","optionalBlockLabel","optionalLoopLabel","optionalLabel","optionalExitCondition","anyIdentifier","plsqlUnreservedKeyword","sqlExpression","expressionUntilThen","expressionUntilSemi","expressionUntilRightbracket","expressionUntilLoop","makeExecuteSqlStatement","optionalReturningClauseInto","roleOrAliases"]}get grammarFileName(){return"PostgreSqlParser.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new Ge(this,t,e)}constructor(e){super(e),this.interpreter=new Re(this,t._ATN,t.decisionsToDFA,new Ae)}root(){let e,s=new Ms(this.context,this.state);this.enterRule(s,0,t.RULE_root);try{this.enterOuterAlt(s,1),this.state=1509,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(2===e||31===e||!(e-32&-32)&&1<<e-32&570441729||!(e-65&-32)&&1<<e-65&142606337||105===e||129===e||!(e-138&-32)&&1<<e-138&2159673601||!(e-177&-32)&&1<<e-177&100680739||!(e-232&-32)&&1<<e-232&69244929||!(e-264&-32)&&1<<e-264&1074266113||!(e-298&-32)&&1<<e-298&1346523403||!(e-333&-32)&&1<<e-333&1677983745||!(e-415&-32)&&1<<e-415&537133057||454===e||668===e)&&(this.state=1508,this.statements()),this.state=1511,this.match(t.EOF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}plsqlRoot(){let e=new ds(this.context,this.state);this.enterRule(e,2,t.RULE_plsqlRoot);try{this.enterOuterAlt(e,1),this.state=1513,this.plsqlFunction()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statements(){let e,s=new Us(this.context,this.state);this.enterRule(s,4,t.RULE_statements);try{switch(this.state=1523,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,2,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1515,this.statement(),this.state=1517,this.errorHandler.sync(this),e=this.tokenStream.LA(1),7===e&&(this.state=1516,this.match(t.SEMI));break;case 2:this.enterOuterAlt(s,2),this.state=1519,this.statement(),this.state=1520,this.match(t.SEMI),this.state=1521,this.statements()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statement(){let e=new ms(this.context,this.state);this.enterRule(e,6,t.RULE_statement);try{switch(this.state=1647,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,3,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1525,this.alterEventTriggerStatement();break;case 2:this.enterOuterAlt(e,2),this.state=1526,this.alterCollationStatement();break;case 3:this.enterOuterAlt(e,3),this.state=1527,this.alterDatabaseStatement();break;case 4:this.enterOuterAlt(e,4),this.state=1528,this.alterDatabaseSetStatement();break;case 5:this.enterOuterAlt(e,5),this.state=1529,this.alterDefaultPrivilegesStatement();break;case 6:this.enterOuterAlt(e,6),this.state=1530,this.alterDomainStatement();break;case 7:this.enterOuterAlt(e,7),this.state=1531,this.alterEnumStatement();break;case 8:this.enterOuterAlt(e,8),this.state=1532,this.alterExtensionStatement();break;case 9:this.enterOuterAlt(e,9),this.state=1533,this.alterExtensionContentsStatement();break;case 10:this.enterOuterAlt(e,10),this.state=1534,this.alterForeignDataWrapperStatement();break;case 11:this.enterOuterAlt(e,11),this.state=1535,this.alterForeignServerStatement();break;case 12:this.enterOuterAlt(e,12),this.state=1536,this.alterFunctionStatement();break;case 13:this.enterOuterAlt(e,13),this.state=1537,this.alterObjectDependsStatement();break;case 14:this.enterOuterAlt(e,14),this.state=1538,this.alterObjectSchemaStatement();break;case 15:this.enterOuterAlt(e,15),this.state=1539,this.alterOwnerStatement();break;case 16:this.enterOuterAlt(e,16),this.state=1540,this.alterOperatorStatement();break;case 17:this.enterOuterAlt(e,17),this.state=1541,this.alterTypeStatement();break;case 18:this.enterOuterAlt(e,18),this.state=1542,this.alterPolicyStatement();break;case 19:this.enterOuterAlt(e,19),this.state=1543,this.alterSequenceStatement();break;case 20:this.enterOuterAlt(e,20),this.state=1544,this.alterSystemStatement();break;case 21:this.enterOuterAlt(e,21),this.state=1545,this.alterTableStatement();break;case 22:this.enterOuterAlt(e,22),this.state=1546,this.alterTablespaceStatement();break;case 23:this.enterOuterAlt(e,23),this.state=1547,this.alterCompositeTypeStatement();break;case 24:this.enterOuterAlt(e,24),this.state=1548,this.alterPublicationStatement();break;case 25:this.enterOuterAlt(e,25),this.state=1549,this.alterRoleSetStatement();break;case 26:this.enterOuterAlt(e,26),this.state=1550,this.alterRoleStatement();break;case 27:this.enterOuterAlt(e,27),this.state=1551,this.alterSubscriptionStatement();break;case 28:this.enterOuterAlt(e,28),this.state=1552,this.alterStatsStatement();break;case 29:this.enterOuterAlt(e,29),this.state=1553,this.altertsConfigurationStatement();break;case 30:this.enterOuterAlt(e,30),this.state=1554,this.altertsDictionaryStatement();break;case 31:this.enterOuterAlt(e,31),this.state=1555,this.alterUserMappingStatement();break;case 32:this.enterOuterAlt(e,32),this.state=1556,this.analyzeStatement();break;case 33:this.enterOuterAlt(e,33),this.state=1557,this.callStatement();break;case 34:this.enterOuterAlt(e,34),this.state=1558,this.checkpointStatement();break;case 35:this.enterOuterAlt(e,35),this.state=1559,this.closePortalStatement();break;case 36:this.enterOuterAlt(e,36),this.state=1560,this.clusterStatement();break;case 37:this.enterOuterAlt(e,37),this.state=1561,this.commentStatement();break;case 38:this.enterOuterAlt(e,38),this.state=1562,this.setConstraintsStatement();break;case 39:this.enterOuterAlt(e,39),this.state=1563,this.copyStatement();break;case 40:this.enterOuterAlt(e,40),this.state=1564,this.createAccessMethodStatement();break;case 41:this.enterOuterAlt(e,41),this.state=1565,this.createAsStatement();break;case 42:this.enterOuterAlt(e,42),this.state=1566,this.createAssertionStatement();break;case 43:this.enterOuterAlt(e,43),this.state=1567,this.createCastStatement();break;case 44:this.enterOuterAlt(e,44),this.state=1568,this.createConversionStatement();break;case 45:this.enterOuterAlt(e,45),this.state=1569,this.createDomainStatement();break;case 46:this.enterOuterAlt(e,46),this.state=1570,this.createExtensionStatement();break;case 47:this.enterOuterAlt(e,47),this.state=1571,this.createForeignDataWrapperStatement();break;case 48:this.enterOuterAlt(e,48),this.state=1572,this.createForeignServerStatement();break;case 49:this.enterOuterAlt(e,49),this.state=1573,this.createForeignTableStatement();break;case 50:this.enterOuterAlt(e,50),this.state=1574,this.createFunctionStatement();break;case 51:this.enterOuterAlt(e,51),this.state=1575,this.createMaterializedViewStatement();break;case 52:this.enterOuterAlt(e,52),this.state=1576,this.createOperatorClassStatement();break;case 53:this.enterOuterAlt(e,53),this.state=1577,this.createOperatorFamilyStatement();break;case 54:this.enterOuterAlt(e,54),this.state=1578,this.createPublicationStatement();break;case 55:this.enterOuterAlt(e,55),this.state=1579,this.alterOperatorFamilyStatement();break;case 56:this.enterOuterAlt(e,56),this.state=1580,this.createPolicyStatement();break;case 57:this.enterOuterAlt(e,57),this.state=1581,this.createProcedureLangStatement();break;case 58:this.enterOuterAlt(e,58),this.state=1582,this.createSchemaStatement();break;case 59:this.enterOuterAlt(e,59),this.state=1583,this.createSequenceStatement();break;case 60:this.enterOuterAlt(e,60),this.state=1584,this.createStatement();break;case 61:this.enterOuterAlt(e,61),this.state=1585,this.createSubscriptionStatement();break;case 62:this.enterOuterAlt(e,62),this.state=1586,this.createStatsStatement();break;case 63:this.enterOuterAlt(e,63),this.state=1587,this.createTablespaceStatement();break;case 64:this.enterOuterAlt(e,64),this.state=1588,this.createTransformStatement();break;case 65:this.enterOuterAlt(e,65),this.state=1589,this.createTriggerStatement();break;case 66:this.enterOuterAlt(e,66),this.state=1590,this.createEventTriggerStatement();break;case 67:this.enterOuterAlt(e,67),this.state=1591,this.createRoleStatement();break;case 68:this.enterOuterAlt(e,68),this.state=1592,this.createUserMappingStatement();break;case 69:this.enterOuterAlt(e,69),this.state=1593,this.createDatabaseStatement();break;case 70:this.enterOuterAlt(e,70),this.state=1594,this.deallocateStatement();break;case 71:this.enterOuterAlt(e,71),this.state=1595,this.declareCursorStatement();break;case 72:this.enterOuterAlt(e,72),this.state=1596,this.defineStatement();break;case 73:this.enterOuterAlt(e,73),this.state=1597,this.deleteStatement();break;case 74:this.enterOuterAlt(e,74),this.state=1598,this.discardStatement();break;case 75:this.enterOuterAlt(e,75),this.state=1599,this.doStatement();break;case 76:this.enterOuterAlt(e,76),this.state=1600,this.dropCastStatement();break;case 77:this.enterOuterAlt(e,77),this.state=1601,this.dropOperatorClassStatement();break;case 78:this.enterOuterAlt(e,78),this.state=1602,this.dropOperatorFamilyStatement();break;case 79:this.enterOuterAlt(e,79),this.state=1603,this.dropOwnedStatement();break;case 80:this.enterOuterAlt(e,80),this.state=1604,this.dropStatement();break;case 81:this.enterOuterAlt(e,81),this.state=1605,this.dropSubscriptionStatement();break;case 82:this.enterOuterAlt(e,82),this.state=1606,this.dropTablespaceStatement();break;case 83:this.enterOuterAlt(e,83),this.state=1607,this.dropTransformStatement();break;case 84:this.enterOuterAlt(e,84),this.state=1608,this.dropRoleStatement();break;case 85:this.enterOuterAlt(e,85),this.state=1609,this.dropUserMappingStatement();break;case 86:this.enterOuterAlt(e,86),this.state=1610,this.dropDatabaseStatement();break;case 87:this.enterOuterAlt(e,87),this.state=1611,this.executeStatement();break;case 88:this.enterOuterAlt(e,88),this.state=1612,this.explainStatement();break;case 89:this.enterOuterAlt(e,89),this.state=1613,this.fetchStatement();break;case 90:this.enterOuterAlt(e,90),this.state=1614,this.grantStatement();break;case 91:this.enterOuterAlt(e,91),this.state=1615,this.grantPrivilegeStatement();break;case 92:this.enterOuterAlt(e,92),this.state=1616,this.importForeignSchemaStatement();break;case 93:this.enterOuterAlt(e,93),this.state=1617,this.indexStatement();break;case 94:this.enterOuterAlt(e,94),this.state=1618,this.insertStatement();break;case 95:this.enterOuterAlt(e,95),this.state=1619,this.mergeStatement();break;case 96:this.enterOuterAlt(e,96),this.state=1620,this.listenStatement();break;case 97:this.enterOuterAlt(e,97),this.state=1621,this.refreshMaterializedViewStatement();break;case 98:this.enterOuterAlt(e,98),this.state=1622,this.loadStatement();break;case 99:this.enterOuterAlt(e,99),this.state=1623,this.lockStatement();break;case 100:this.enterOuterAlt(e,100),this.state=1624,this.notifyStatement();break;case 101:this.enterOuterAlt(e,101),this.state=1625,this.prepareStatement();break;case 102:this.enterOuterAlt(e,102),this.state=1626,this.reassignOwnedStatement();break;case 103:this.enterOuterAlt(e,103),this.state=1627,this.reindexStatement();break;case 104:this.enterOuterAlt(e,104),this.state=1628,this.removeAggregateStatement();break;case 105:this.enterOuterAlt(e,105),this.state=1629,this.removeFunctionStatement();break;case 106:this.enterOuterAlt(e,106),this.state=1630,this.removeOperatorStatement();break;case 107:this.enterOuterAlt(e,107),this.state=1631,this.renameStatement();break;case 108:this.enterOuterAlt(e,108),this.state=1632,this.revokeStatement();break;case 109:this.enterOuterAlt(e,109),this.state=1633,this.revokePrivilegeStatement();break;case 110:this.enterOuterAlt(e,110),this.state=1634,this.ruleStatement();break;case 111:this.enterOuterAlt(e,111),this.state=1635,this.securityLabelStatement();break;case 112:this.enterOuterAlt(e,112),this.state=1636,this.selectStatement();break;case 113:this.enterOuterAlt(e,113),this.state=1637,this.transactionStatement();break;case 114:this.enterOuterAlt(e,114),this.state=1638,this.truncateStatement();break;case 115:this.enterOuterAlt(e,115),this.state=1639,this.unlistenStatement();break;case 116:this.enterOuterAlt(e,116),this.state=1640,this.updateStatement();break;case 117:this.enterOuterAlt(e,117),this.state=1641,this.vacuumStatement();break;case 118:this.enterOuterAlt(e,118),this.state=1642,this.variableResetStatement();break;case 119:this.enterOuterAlt(e,119),this.state=1643,this.variableSetStatement();break;case 120:this.enterOuterAlt(e,120),this.state=1644,this.variableShowStatement();break;case 121:this.enterOuterAlt(e,121),this.state=1645,this.viewStatement();break;case 122:this.enterOuterAlt(e,122),this.state=1646,this.plsqlConsoleCommand()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}plsqlConsoleCommand(){let e,s=new Ds(this.context,this.state);this.enterRule(s,8,t.RULE_plsqlConsoleCommand);try{this.enterOuterAlt(s,1),this.state=1649,this.match(t.MetaCommand),this.state=1651,this.errorHandler.sync(this),e=this.tokenStream.LA(1),669===e&&(this.state=1650,this.match(t.EndMetaCommand))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}callStatement(){let e=new ps(this.context,this.state);this.enterRule(e,10,t.RULE_callStatement);try{this.enterOuterAlt(e,1),this.state=1653,this.match(t.CALL),this.state=1654,this.functionApplication()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalWith(){let e=new gs(this.context,this.state);this.enterRule(e,12,t.RULE_optionalWith);try{switch(this.state=1658,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=1656,this.match(t.WITH);break;case t.EOF:case t.OPEN_PAREN:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.PLUS:case t.MINUS:case t.AND:case t.ARRAY:case t.AS:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CREATE:case t.DEFAULT:case t.DO:case t.FETCH:case t.FROM:case t.GRANT:case t.GROUP_P:case t.IN_P:case t.INTO:case t.NULL_P:case t.TABLE:case t.USER:case t.WHERE:case t.BINARY:case t.FREEZE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.ADMIN:case t.BACKWARD:case t.CACHE:case t.CASCADE:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONNECTION:case t.CONTINUE_P:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DELIMITER:case t.ENCODING:case t.ENCRYPTED:case t.ESCAPE:case t.FIRST_P:case t.FORCE:case t.FORWARD:case t.HEADER_P:case t.INCREMENT:case t.INHERIT:case t.INSERT:case t.LAST_P:case t.LOCATION:case t.MAXVALUE:case t.MINVALUE:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.OWNED:case t.OWNER:case t.PASSWORD:case t.PRIOR:case t.QUOTE:case t.RELATIVE_P:case t.RESET:case t.RESTART:case t.ROLE:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SEQUENCE:case t.SET:case t.START:case t.SYSID:case t.TABLESPACE:case t.TEMPLATE:case t.TYPE_P:case t.UNENCRYPTED:case t.VALID:case t.VERSION_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalRoleList(){let e,s=new xs(this.context,this.state);this.enterRule(s,14,t.RULE_optionalRoleList);try{for(this.enterOuterAlt(s,1),this.state=1663,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-33&-32)&&1<<e-33&286268421||!(e-66&-32)&&1<<e-66&67108869||!(e-99&-32)&&1<<e-99&2164391937||!(e-134&-32)&&1<<e-134&1216873473||!(e-167&-32)&&1<<e-167&268435489||!(e-207&-32)&&1<<e-207&35651593||!(e-240&-32)&&1<<e-240&6553601||!(e-272&-32)&&1<<e-272&268452097||!(e-306&-32)&&1<<e-306&1051745||!(e-341&-32)&&1<<e-341&8458241||433===e||434===e||!(e-477&-32)&&1<<e-477&3825197057||!(e-509&-32)&&1<<e-509&3055||!(e-636&-32)&&1<<e-636&100663331;)this.state=1660,this.createRoleElement(),this.state=1665,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterOptionalRoleList(){let e,s=new ks(this.context,this.state);this.enterRule(s,16,t.RULE_alterOptionalRoleList);try{for(this.enterOuterAlt(s,1),this.state=1669,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-33&-32)&&1<<e-33&286268421||66===e||92===e||!(e-99&-32)&&1<<e-99&2164391937||!(e-144&-32)&&1<<e-144&278012417||!(e-195&-32)&&1<<e-195&36865||!(e-228&-32)&&1<<e-228&1073745937||!(e-261&-32)&&1<<e-261&34080771||!(e-300&-32)&&1<<e-300&67311681||!(e-353&-32)&&1<<e-353&2065||433===e||434===e||!(e-477&-32)&&1<<e-477&3825197057||!(e-509&-32)&&1<<e-509&3055||!(e-636&-32)&&1<<e-636&100663331;)this.state=1666,this.alterRoleElemement(),this.state=1671,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterRoleElemement(){let e,s=new Hs(this.context,this.state);this.enterRule(s,18,t.RULE_alterRoleElemement);try{switch(this.state=1691,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PASSWORD:switch(this.enterOuterAlt(s,1),this.state=1672,this.match(t.PASSWORD),this.state=1675,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.state=1673,this.sconst();break;case t.NULL_P:this.state=1674,this.match(t.NULL_P);break;default:throw new he(this)}break;case t.ENCRYPTED:case t.UNENCRYPTED:this.enterOuterAlt(s,2),this.state=1677,e=this.tokenStream.LA(1),195===e||357===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1678,this.match(t.PASSWORD),this.state=1679,this.sconst();break;case t.INHERIT:this.enterOuterAlt(s,3),this.state=1680,this.match(t.INHERIT);break;case t.CONNECTION:this.enterOuterAlt(s,4),this.state=1681,this.match(t.CONNECTION),this.state=1682,this.match(t.LIMIT),this.state=1683,this.signedIconst();break;case t.VALID:this.enterOuterAlt(s,5),this.state=1684,this.match(t.VALID),this.state=1685,this.match(t.UNTIL),this.state=1686,this.sconst();break;case t.GROUP_P:case t.USER:case t.ROLE:this.enterOuterAlt(s,6),this.state=1687,this.roleOrAliases(),this.state=1688,this.roleNameList();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.BACKWARD:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONTINUE_P:case t.CURSOR:case t.FIRST_P:case t.FORWARD:case t.INSERT:case t.LAST_P:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.PRIOR:case t.RELATIVE_P:case t.RESET:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SET:case t.TYPE_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(s,7),this.state=1690,this.identifier();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createRoleElement(){let e,s=new Gs(this.context,this.state);this.enterRule(s,20,t.RULE_createRoleElement);try{switch(this.state=1704,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,11,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1693,this.alterRoleElemement();break;case 2:this.enterOuterAlt(s,2),this.state=1694,this.match(t.SYSID),this.state=1695,this.iconst();break;case 3:this.enterOuterAlt(s,3),this.state=1696,this.match(t.ADMIN),this.state=1697,this.roleNameList();break;case 4:this.enterOuterAlt(s,4),this.state=1699,this.errorHandler.sync(this),e=this.tokenStream.LA(1),68===e&&(this.state=1698,this.match(t.IN_P)),this.state=1701,this.roleOrAliases(),this.state=1702,this.roleNameList()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createRoleStatement(){let e=new Fs(this.context,this.state);this.enterRule(e,22,t.RULE_createRoleStatement);try{this.enterOuterAlt(e,1),this.state=1706,this.match(t.CREATE),this.state=1707,this.roleOrAliases(),this.state=1708,this.roleName(),this.state=1709,this.optionalWith(),this.state=1710,this.optionalRoleList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterRoleStatement(){let e=new vs(this.context,this.state);this.enterRule(e,24,t.RULE_alterRoleStatement);try{this.enterOuterAlt(e,1),this.state=1712,this.match(t.ALTER),this.state=1713,this.roleOrAliases(),this.state=1714,this.roleName(),this.state=1715,this.optionalWith(),this.state=1716,this.alterOptionalRoleList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalInDatabase(){let e=new Bs(this.context,this.state);this.enterRule(e,26,t.RULE_optionalInDatabase);try{switch(this.state=1722,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESET:case t.SET:this.enterOuterAlt(e,1);break;case t.IN_P:this.enterOuterAlt(e,2),this.state=1719,this.match(t.IN_P),this.state=1720,this.match(t.DATABASE),this.state=1721,this.databaseName();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterRoleSetStatement(){let e,s=new ys(this.context,this.state);this.enterRule(s,28,t.RULE_alterRoleSetStatement);try{this.enterOuterAlt(s,1),this.state=1724,this.match(t.ALTER),this.state=1725,this.roleOrAliases(),this.state=1727,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1726,this.match(t.ALL)),this.state=1729,this.roleName(),this.state=1730,this.optionalInDatabase(),this.state=1731,this.setResetClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropRoleStatement(){let e=new fs(this.context,this.state);this.enterRule(e,30,t.RULE_dropRoleStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=1733,this.match(t.DROP),this.state=1734,this.roleOrAliases(),this.state=1737,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,14,this.context)))this.state=1735,this.match(t.IF_P),this.state=1736,this.match(t.EXISTS);this.state=1739,this.roleNameList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}addOrDrop(){let e,s=new Ys(this.context,this.state);this.enterRule(s,32,t.RULE_addOrDrop);try{this.enterOuterAlt(s,1),this.state=1741,e=this.tokenStream.LA(1),133===e||191===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createSchemaStatement(){let e=new ws(this.context,this.state);this.enterRule(e,34,t.RULE_createSchemaStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=1743,this.match(t.CREATE),this.state=1744,this.match(t.SCHEMA),this.state=1748,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)))this.state=1745,this.match(t.IF_P),this.state=1746,this.match(t.NOT),this.state=1747,this.match(t.EXISTS);switch(this.state=1755,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,16,this.context)){case 1:this.state=1750,this.optionalSchemaName(),this.state=1751,this.match(t.AUTHORIZATION),this.state=1752,this.roleName();break;case 2:this.state=1754,this.columnId()}this.state=1757,this.optionalSchemaList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalSchemaName(){let e=new bs(this.context,this.state);this.enterRule(e,36,t.RULE_optionalSchemaName);try{switch(this.state=1761,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=1759,this.columnId();break;case t.AUTHORIZATION:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalSchemaList(){let e,s=new Ws(this.context,this.state);this.enterRule(s,38,t.RULE_optionalSchemaList);try{for(this.enterOuterAlt(s,1),this.state=1766,this.errorHandler.sync(this),e=this.tokenStream.LA(1);46===e||65===e;)this.state=1763,this.schemaStatement(),this.state=1768,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}schemaStatement(){let e=new Vs(this.context,this.state);this.enterRule(e,40,t.RULE_schemaStatement);try{switch(this.state=1775,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,19,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1769,this.createStatement();break;case 2:this.enterOuterAlt(e,2),this.state=1770,this.indexStatement();break;case 3:this.enterOuterAlt(e,3),this.state=1771,this.createSequenceStatement();break;case 4:this.enterOuterAlt(e,4),this.state=1772,this.createTriggerStatement();break;case 5:this.enterOuterAlt(e,5),this.state=1773,this.grantStatement();break;case 6:this.enterOuterAlt(e,6),this.state=1774,this.viewStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}variableSetStatement(){let e,s=new Xs(this.context,this.state);this.enterRule(s,42,t.RULE_variableSetStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=1777,this.match(t.SET),this.state=1779,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,20,this.context)))this.state=1778,e=this.tokenStream.LA(1),245===e||325===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1781,this.setStatementEnding()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setStatementEnding(){let e=new Ks(this.context,this.state);this.enterRule(e,44,t.RULE_setStatementEnding);try{switch(this.state=1791,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1783,this.match(t.TRANSACTION),this.state=1784,this.transactionModeList();break;case 2:this.enterOuterAlt(e,2),this.state=1785,this.match(t.SESSION),this.state=1786,this.match(t.CHARACTERISTICS),this.state=1787,this.match(t.AS),this.state=1788,this.match(t.TRANSACTION),this.state=1789,this.transactionModeList();break;case 3:this.enterOuterAlt(e,3),this.state=1790,this.setStatementMore()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericSetClause(){let e,s=new Qs(this.context,this.state);this.enterRule(s,46,t.RULE_genericSetClause);try{this.enterOuterAlt(s,1),this.state=1793,this.variableName(),this.state=1794,e=this.tokenStream.LA(1),10===e||94===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1795,this.variableList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setStatementMore(){let e=new Js(this.context,this.state);this.enterRule(e,48,t.RULE_setStatementMore);try{switch(this.state=1823,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,22,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1797,this.genericSetClause();break;case 2:this.enterOuterAlt(e,2),this.state=1798,this.variableName(),this.state=1799,this.match(t.FROM),this.state=1800,this.match(t.CURRENT_P);break;case 3:this.enterOuterAlt(e,3),this.state=1802,this.match(t.TIME),this.state=1803,this.match(t.ZONE),this.state=1804,this.zoneValue();break;case 4:this.enterOuterAlt(e,4),this.state=1805,this.match(t.CATALOG),this.state=1806,this.sconst();break;case 5:this.enterOuterAlt(e,5),this.state=1807,this.match(t.SCHEMA),this.state=1808,this.schemaName();break;case 6:this.enterOuterAlt(e,6),this.state=1809,this.match(t.NAMES),this.state=1810,this.optionalEncoding();break;case 7:this.enterOuterAlt(e,7),this.state=1811,this.roleOrAliases(),this.state=1812,this.nonReservedWordOrSconst();break;case 8:this.enterOuterAlt(e,8),this.state=1814,this.match(t.SESSION),this.state=1815,this.match(t.AUTHORIZATION),this.state=1816,this.nonReservedWordOrSconst();break;case 9:this.enterOuterAlt(e,9),this.state=1817,this.match(t.XML_P),this.state=1818,this.match(t.OPTION),this.state=1819,this.documentOrContent();break;case 10:this.enterOuterAlt(e,10),this.state=1820,this.match(t.TRANSACTION),this.state=1821,this.match(t.SNAPSHOT),this.state=1822,this.sconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}variableName(){let e,s=new Zs(this.context,this.state);this.enterRule(s,50,t.RULE_variableName);try{for(this.enterOuterAlt(s,1),this.state=1825,this.columnId(),this.state=1830,this.errorHandler.sync(this),e=this.tokenStream.LA(1);11===e;)this.state=1826,this.match(t.DOT),this.state=1827,this.columnId(),this.state=1832,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}variableList(){let e,s=new qs(this.context,this.state);this.enterRule(s,52,t.RULE_variableList);try{for(this.enterOuterAlt(s,1),this.state=1833,this.variableValue(),this.state=1838,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=1834,this.match(t.COMMA),this.state=1835,this.variableValue(),this.state=1840,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}variableValue(){let e=new js(this.context,this.state);this.enterRule(e,54,t.RULE_variableValue);try{switch(this.state=1843,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.ON:case t.TABLE:case t.TRUE_P:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=1841,this.booleanOrString();break;case t.PLUS:case t.MINUS:case t.Integral:case t.Numeric:this.enterOuterAlt(e,2),this.state=1842,this.numericOnly();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}isoLevel(){let e,s=new zs(this.context,this.state);this.enterRule(s,56,t.RULE_isoLevel);try{switch(this.state=1850,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.READ:this.enterOuterAlt(s,1),this.state=1845,this.match(t.READ),this.state=1846,e=this.tokenStream.LA(1),162===e||356===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.REPEATABLE:this.enterOuterAlt(s,2),this.state=1847,this.match(t.REPEATABLE),this.state=1848,this.match(t.READ);break;case t.SERIALIZABLE:this.enterOuterAlt(s,3),this.state=1849,this.match(t.SERIALIZABLE);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}booleanOrString(){let e=new $s(this.context,this.state);this.enterRule(e,58,t.RULE_booleanOrString);try{switch(this.state=1856,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TRUE_P:this.enterOuterAlt(e,1),this.state=1852,this.match(t.TRUE_P);break;case t.FALSE_P:this.enterOuterAlt(e,2),this.state=1853,this.match(t.FALSE_P);break;case t.ON:this.enterOuterAlt(e,3),this.state=1854,this.match(t.ON);break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,4),this.state=1855,this.nonReservedWordOrSconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}zoneValue(){let e=new ta(this.context,this.state);this.enterRule(e,60,t.RULE_zoneValue);try{switch(this.state=1873,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,28,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1858,this.sconst();break;case 2:this.enterOuterAlt(e,2),this.state=1859,this.identifier();break;case 3:this.enterOuterAlt(e,3),this.state=1860,this.constInterval(),this.state=1861,this.sconst(),this.state=1862,this.optionalInterval();break;case 4:this.enterOuterAlt(e,4),this.state=1864,this.constInterval(),this.state=1865,this.match(t.OPEN_PAREN),this.state=1866,this.iconst(),this.state=1867,this.match(t.CLOSE_PAREN),this.state=1868,this.sconst();break;case 5:this.enterOuterAlt(e,5),this.state=1870,this.numericOnly();break;case 6:this.enterOuterAlt(e,6),this.state=1871,this.match(t.DEFAULT);break;case 7:this.enterOuterAlt(e,7),this.state=1872,this.match(t.LOCAL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalEncoding(){let e=new ea(this.context,this.state);this.enterRule(e,62,t.RULE_optionalEncoding);try{switch(this.state=1878,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=1875,this.sconst();break;case t.DEFAULT:this.enterOuterAlt(e,2),this.state=1876,this.match(t.DEFAULT);break;case t.EOF:case t.SEMI:case t.AS:case t.INTO:case t.NOT:case t.WINDOW:case t.CALLED:case t.COST:case t.EXTERNAL:case t.IMMUTABLE:case t.LANGUAGE:case t.LEAKPROOF:case t.RESET:case t.RESTRICT:case t.RETURNS:case t.ROWS:case t.SECURITY:case t.SET:case t.STABLE:case t.STRICT_P:case t.VOLATILE:case t.TRANSFORM:case t.SUPPORT:case t.PARALLEL:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}nonReservedWordOrSconst(){let e=new sa(this.context,this.state);this.enterRule(e,64,t.RULE_nonReservedWordOrSconst);try{switch(this.state=1882,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=1880,this.nonReservedWord();break;case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,2),this.state=1881,this.sconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}variableResetStatement(){let e=new aa(this.context,this.state);this.enterRule(e,66,t.RULE_variableResetStatement);try{this.enterOuterAlt(e,1),this.state=1884,this.match(t.RESET),this.state=1885,this.resetClauseRest()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}resetClauseRest(){let e=new ia(this.context,this.state);this.enterRule(e,68,t.RULE_resetClauseRest);try{switch(this.state=1895,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,31,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1887,this.genericResetClause();break;case 2:this.enterOuterAlt(e,2),this.state=1888,this.match(t.TIME),this.state=1889,this.match(t.ZONE);break;case 3:this.enterOuterAlt(e,3),this.state=1890,this.match(t.TRANSACTION),this.state=1891,this.match(t.ISOLATION),this.state=1892,this.match(t.LEVEL);break;case 4:this.enterOuterAlt(e,4),this.state=1893,this.match(t.SESSION),this.state=1894,this.match(t.AUTHORIZATION)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericResetClause(){let e=new ra(this.context,this.state);this.enterRule(e,70,t.RULE_genericResetClause);try{switch(this.state=1899,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=1897,this.variableName();break;case t.ALL:this.enterOuterAlt(e,2),this.state=1898,this.match(t.ALL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}setResetClause(){let e=new ca(this.context,this.state);this.enterRule(e,72,t.RULE_setResetClause);try{switch(this.state=1904,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=1901,this.match(t.SET),this.state=1902,this.setStatementEnding();break;case t.RESET:this.enterOuterAlt(e,2),this.state=1903,this.variableResetStatement();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionSetResetClause(){let e=new na(this.context,this.state);this.enterRule(e,74,t.RULE_functionSetResetClause);try{switch(this.state=1909,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=1906,this.match(t.SET),this.state=1907,this.setStatementMore();break;case t.RESET:this.enterOuterAlt(e,2),this.state=1908,this.variableResetStatement();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}variableShowStatement(){let e=new ha(this.context,this.state);this.enterRule(e,76,t.RULE_variableShowStatement);try{switch(this.enterOuterAlt(e,1),this.state=1911,this.match(t.SHOW),this.state=1921,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1912,this.variableName();break;case 2:this.state=1913,this.match(t.TIME),this.state=1914,this.match(t.ZONE);break;case 3:this.state=1915,this.match(t.TRANSACTION),this.state=1916,this.match(t.ISOLATION),this.state=1917,this.match(t.LEVEL);break;case 4:this.state=1918,this.match(t.SESSION),this.state=1919,this.match(t.AUTHORIZATION);break;case 5:this.state=1920,this.match(t.ALL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}setConstraintsStatement(){let e=new Ea(this.context,this.state);this.enterRule(e,78,t.RULE_setConstraintsStatement);try{this.enterOuterAlt(e,1),this.state=1923,this.match(t.SET),this.state=1924,this.match(t.CONSTRAINTS),this.state=1925,this.constraintsSetList(),this.state=1926,this.constraintsSetMode()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintsSetList(){let e=new Ta(this.context,this.state);this.enterRule(e,80,t.RULE_constraintsSetList);try{switch(this.state=1930,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALL:this.enterOuterAlt(e,1),this.state=1928,this.match(t.ALL);break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,2),this.state=1929,this.qualifiedNameList();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintsSetMode(){let e,s=new oa(this.context,this.state);this.enterRule(s,82,t.RULE_constraintsSetMode);try{this.enterOuterAlt(s,1),this.state=1932,e=this.tokenStream.LA(1),180===e||221===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}checkpointStatement(){let e=new Ra(this.context,this.state);this.enterRule(e,84,t.RULE_checkpointStatement);try{this.enterOuterAlt(e,1),this.state=1934,this.match(t.CHECKPOINT)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}discardStatement(){let e,s=new Aa(this.context,this.state);this.enterRule(s,86,t.RULE_discardStatement);try{this.enterOuterAlt(s,1),this.state=1936,this.match(t.DISCARD),this.state=1937,e=this.tokenStream.LA(1),30===e||281===e||!(e-322&-32)&&1<<e-322&41943041?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTableStatement(){let e,s=new Sa(this.context,this.state);this.enterRule(s,88,t.RULE_alterTableStatement);try{switch(this.state=2039,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:if(this.enterOuterAlt(s,1),1===(this.state=1939,this.match(t.ALTER),this.state=1940,this.match(t.TABLE),this.state=1943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,37,this.context)))this.state=1941,this.match(t.IF_P),this.state=1942,this.match(t.EXISTS);switch(this.state=1945,this.relationExpression(),this.state=1948,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOT:case t.ADD_P:case t.ALTER:case t.CLUSTER:case t.DISABLE_P:case t.DROP:case t.ENABLE_P:case t.FORCE:case t.INHERIT:case t.NO:case t.OF:case t.OPTIONS:case t.OWNER:case t.REPLICA:case t.RESET:case t.SET:case t.VALIDATE:this.state=1946,this.alterTableCommands();break;case t.ATTACH:case t.DETACH:this.state=1947,this.partitionCommand();break;default:throw new he(this)}break;case 2:this.enterOuterAlt(s,2),this.state=1950,this.match(t.ALTER),this.state=1951,this.match(t.TABLE),this.state=1952,this.match(t.ALL),this.state=1953,this.match(t.IN_P),this.state=1954,this.match(t.TABLESPACE),this.state=1955,this.name(),this.state=1959,this.errorHandler.sync(this),e=this.tokenStream.LA(1),274===e&&(this.state=1956,this.match(t.OWNED),this.state=1957,this.match(t.BY),this.state=1958,this.roleNameList()),this.state=1961,this.match(t.SET),this.state=1962,this.match(t.TABLESPACE),this.state=1963,this.name(),this.state=1964,this.optionalNowait();break;case 3:if(this.enterOuterAlt(s,3),1===(this.state=1966,this.match(t.ALTER),this.state=1967,this.match(t.INDEX),this.state=1970,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,40,this.context)))this.state=1968,this.match(t.IF_P),this.state=1969,this.match(t.EXISTS);switch(this.state=1972,this.indexName(),this.state=1975,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOT:case t.ADD_P:case t.ALTER:case t.CLUSTER:case t.DISABLE_P:case t.DROP:case t.ENABLE_P:case t.FORCE:case t.INHERIT:case t.NO:case t.OF:case t.OPTIONS:case t.OWNER:case t.REPLICA:case t.RESET:case t.SET:case t.VALIDATE:this.state=1973,this.alterTableCommands();break;case t.ATTACH:this.state=1974,this.indexPartitionCommand();break;default:throw new he(this)}break;case 4:this.enterOuterAlt(s,4),this.state=1977,this.match(t.ALTER),this.state=1978,this.match(t.INDEX),this.state=1979,this.match(t.ALL),this.state=1980,this.match(t.IN_P),this.state=1981,this.match(t.TABLESPACE),this.state=1982,this.name(),this.state=1986,this.errorHandler.sync(this),e=this.tokenStream.LA(1),274===e&&(this.state=1983,this.match(t.OWNED),this.state=1984,this.match(t.BY),this.state=1985,this.roleNameList()),this.state=1988,this.match(t.SET),this.state=1989,this.match(t.TABLESPACE),this.state=1990,this.name(),this.state=1991,this.optionalNowait();break;case 5:if(this.enterOuterAlt(s,5),1===(this.state=1993,this.match(t.ALTER),this.state=1994,this.match(t.VIEW),this.state=1997,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,43,this.context)))this.state=1995,this.match(t.IF_P),this.state=1996,this.match(t.EXISTS);this.state=1999,this.viewName(),this.state=2e3,this.alterTableCommands();break;case 6:if(this.enterOuterAlt(s,6),1===(this.state=2002,this.match(t.ALTER),this.state=2003,this.match(t.MATERIALIZED),this.state=2004,this.match(t.VIEW),this.state=2007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)))this.state=2005,this.match(t.IF_P),this.state=2006,this.match(t.EXISTS);this.state=2009,this.qualifiedName(),this.state=2010,this.alterTableCommands();break;case 7:this.enterOuterAlt(s,7),this.state=2012,this.match(t.ALTER),this.state=2013,this.match(t.MATERIALIZED),this.state=2014,this.match(t.VIEW),this.state=2015,this.match(t.ALL),this.state=2016,this.match(t.IN_P),this.state=2017,this.match(t.TABLESPACE),this.state=2018,this.name(),this.state=2022,this.errorHandler.sync(this),e=this.tokenStream.LA(1),274===e&&(this.state=2019,this.match(t.OWNED),this.state=2020,this.match(t.BY),this.state=2021,this.roleNameList()),this.state=2024,this.match(t.SET),this.state=2025,this.match(t.TABLESPACE),this.state=2026,this.name(),this.state=2027,this.optionalNowait();break;case 8:if(this.enterOuterAlt(s,8),1===(this.state=2029,this.match(t.ALTER),this.state=2030,this.match(t.FOREIGN),this.state=2031,this.match(t.TABLE),this.state=2034,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)))this.state=2032,this.match(t.IF_P),this.state=2033,this.match(t.EXISTS);this.state=2036,this.relationExpression(),this.state=2037,this.alterTableCommands()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTableCommands(){let e,s=new la(this.context,this.state);this.enterRule(s,90,t.RULE_alterTableCommands);try{for(this.enterOuterAlt(s,1),this.state=2041,this.alterTableCommand(),this.state=2046,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2042,this.match(t.COMMA),this.state=2043,this.alterTableCommand(),this.state=2048,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionCommand(){let e=new Oa(this.context,this.state);this.enterRule(e,92,t.RULE_partitionCommand);try{switch(this.state=2057,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ATTACH:this.enterOuterAlt(e,1),this.state=2049,this.match(t.ATTACH),this.state=2050,this.match(t.PARTITION),this.state=2051,this.qualifiedName(),this.state=2052,this.partitionBoundSpecification();break;case t.DETACH:this.enterOuterAlt(e,2),this.state=2054,this.match(t.DETACH),this.state=2055,this.match(t.PARTITION),this.state=2056,this.qualifiedName();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexPartitionCommand(){let e=new Ia(this.context,this.state);this.enterRule(e,94,t.RULE_indexPartitionCommand);try{this.enterOuterAlt(e,1),this.state=2059,this.match(t.ATTACH),this.state=2060,this.match(t.PARTITION),this.state=2061,this.qualifiedName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterTableCommand(){let e,s=new ua(this.context,this.state);this.enterRule(s,96,t.RULE_alterTableCommand);try{switch(this.state=2304,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,53,this.context)){case 1:this.enterOuterAlt(s,1),this.state=2063,this.match(t.ADD_P),this.state=2064,this.columnDefinition();break;case 2:this.enterOuterAlt(s,2),this.state=2065,this.match(t.ADD_P),this.state=2066,this.match(t.IF_P),this.state=2067,this.match(t.NOT),this.state=2068,this.match(t.EXISTS),this.state=2069,this.columnDefinition();break;case 3:this.enterOuterAlt(s,3),this.state=2070,this.match(t.ADD_P),this.state=2071,this.match(t.COLUMN),this.state=2072,this.columnDefinition();break;case 4:this.enterOuterAlt(s,4),this.state=2073,this.match(t.ADD_P),this.state=2074,this.match(t.COLUMN),this.state=2075,this.match(t.IF_P),this.state=2076,this.match(t.NOT),this.state=2077,this.match(t.EXISTS),this.state=2078,this.columnDefinition();break;case 5:this.enterOuterAlt(s,5),this.state=2079,this.match(t.ALTER),this.state=2080,this.optionalColumn(),this.state=2081,this.columnId(),this.state=2082,this.alterColumnDefault();break;case 6:this.enterOuterAlt(s,6),this.state=2084,this.match(t.ALTER),this.state=2085,this.optionalColumn(),this.state=2086,this.columnId(),this.state=2087,this.match(t.DROP),this.state=2088,this.match(t.NOT),this.state=2089,this.match(t.NULL_P);break;case 7:this.enterOuterAlt(s,7),this.state=2091,this.match(t.ALTER),this.state=2092,this.optionalColumn(),this.state=2093,this.columnId(),this.state=2094,this.match(t.SET),this.state=2095,this.match(t.NOT),this.state=2096,this.match(t.NULL_P);break;case 8:this.enterOuterAlt(s,8),this.state=2098,this.match(t.ALTER),this.state=2099,this.optionalColumn(),this.state=2100,this.columnId(),this.state=2101,this.match(t.DROP),this.state=2102,this.match(t.EXPRESSION);break;case 9:this.enterOuterAlt(s,9),this.state=2104,this.match(t.ALTER),this.state=2105,this.optionalColumn(),this.state=2106,this.columnId(),this.state=2107,this.match(t.DROP),this.state=2108,this.match(t.EXPRESSION),this.state=2109,this.match(t.IF_P),this.state=2110,this.match(t.EXISTS);break;case 10:this.enterOuterAlt(s,10),this.state=2112,this.match(t.ALTER),this.state=2113,this.optionalColumn(),this.state=2114,this.columnId(),this.state=2115,this.match(t.SET),this.state=2116,this.match(t.STATISTICS),this.state=2117,this.signedIconst();break;case 11:this.enterOuterAlt(s,11),this.state=2119,this.match(t.ALTER),this.state=2120,this.optionalColumn(),this.state=2121,this.iconst(),this.state=2122,this.match(t.SET),this.state=2123,this.match(t.STATISTICS),this.state=2124,this.signedIconst();break;case 12:this.enterOuterAlt(s,12),this.state=2126,this.match(t.ALTER),this.state=2127,this.optionalColumn(),this.state=2128,this.columnId(),this.state=2129,this.match(t.SET),this.state=2130,this.relOptions();break;case 13:this.enterOuterAlt(s,13),this.state=2132,this.match(t.ALTER),this.state=2133,this.optionalColumn(),this.state=2134,this.columnId(),this.state=2135,this.match(t.RESET),this.state=2136,this.relOptions();break;case 14:this.enterOuterAlt(s,14),this.state=2138,this.match(t.ALTER),this.state=2139,this.optionalColumn(),this.state=2140,this.columnId(),this.state=2141,this.match(t.SET),this.state=2142,this.match(t.STORAGE),this.state=2143,this.columnId();break;case 15:this.enterOuterAlt(s,15),this.state=2145,this.match(t.ALTER),this.state=2146,this.optionalColumn(),this.state=2147,this.columnId(),this.state=2148,this.match(t.ADD_P),this.state=2149,this.match(t.GENERATED),this.state=2150,this.generatedWhen(),this.state=2151,this.match(t.AS),this.state=2152,this.match(t.IDENTITY_P),this.state=2153,this.optionalParenthesizedSeqOptionsList();break;case 16:this.enterOuterAlt(s,16),this.state=2155,this.match(t.ALTER),this.state=2156,this.optionalColumn(),this.state=2157,this.columnId(),this.state=2158,this.alterIdentityColumnOptionList();break;case 17:this.enterOuterAlt(s,17),this.state=2160,this.match(t.ALTER),this.state=2161,this.optionalColumn(),this.state=2162,this.columnId(),this.state=2163,this.match(t.DROP),this.state=2164,this.match(t.IDENTITY_P);break;case 18:this.enterOuterAlt(s,18),this.state=2166,this.match(t.ALTER),this.state=2167,this.optionalColumn(),this.state=2168,this.columnId(),this.state=2169,this.match(t.DROP),this.state=2170,this.match(t.IDENTITY_P),this.state=2171,this.match(t.IF_P),this.state=2172,this.match(t.EXISTS);break;case 19:this.enterOuterAlt(s,19),this.state=2174,this.match(t.DROP),this.state=2175,this.optionalColumn(),this.state=2176,this.match(t.IF_P),this.state=2177,this.match(t.EXISTS),this.state=2178,this.columnId(),this.state=2179,this.optionalDropBehavior();break;case 20:this.enterOuterAlt(s,20),this.state=2181,this.match(t.DROP),this.state=2182,this.optionalColumn(),this.state=2183,this.columnId(),this.state=2184,this.optionalDropBehavior();break;case 21:this.enterOuterAlt(s,21),this.state=2186,this.match(t.ALTER),this.state=2187,this.optionalColumn(),this.state=2188,this.columnId(),this.state=2189,this.optionalSetData(),this.state=2190,this.match(t.TYPE_P),this.state=2191,this.typeName(),this.state=2192,this.optionalCollateClause(),this.state=2193,this.alterUsing();break;case 22:this.enterOuterAlt(s,22),this.state=2195,this.match(t.ALTER),this.state=2196,this.optionalColumn(),this.state=2197,this.columnId(),this.state=2198,this.alterGenericOptions();break;case 23:this.enterOuterAlt(s,23),this.state=2200,this.match(t.ADD_P),this.state=2201,this.tableConstraint();break;case 24:this.enterOuterAlt(s,24),this.state=2202,this.match(t.ALTER),this.state=2203,this.match(t.CONSTRAINT),this.state=2204,this.constraintName(),this.state=2206,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2205,this.constraintAttributeElement(),this.state=2208,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-54&-32)&&1<<e-54&8421377||262===e);break;case 25:this.enterOuterAlt(s,25),this.state=2210,this.match(t.VALIDATE),this.state=2211,this.match(t.CONSTRAINT),this.state=2212,this.constraintName();break;case 26:if(this.enterOuterAlt(s,26),1===(this.state=2213,this.match(t.DROP),this.state=2214,this.match(t.CONSTRAINT),this.state=2217,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,51,this.context)))this.state=2215,this.match(t.IF_P),this.state=2216,this.match(t.EXISTS);this.state=2219,this.constraintName(),this.state=2220,this.optionalDropBehavior();break;case 27:this.enterOuterAlt(s,27),this.state=2222,this.match(t.SET),this.state=2223,this.match(t.WITHOUT),this.state=2224,this.match(t.OIDS);break;case 28:this.enterOuterAlt(s,28),this.state=2225,this.match(t.CLUSTER),this.state=2226,this.match(t.ON),this.state=2227,this.name();break;case 29:this.enterOuterAlt(s,29),this.state=2228,this.match(t.SET),this.state=2229,this.match(t.WITHOUT),this.state=2230,this.match(t.CLUSTER);break;case 30:this.enterOuterAlt(s,30),this.state=2231,this.match(t.SET),this.state=2232,this.match(t.LOGGED);break;case 31:this.enterOuterAlt(s,31),this.state=2233,this.match(t.SET),this.state=2234,this.match(t.UNLOGGED);break;case 32:this.enterOuterAlt(s,32),this.state=2235,this.match(t.ENABLE_P),this.state=2237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(139===e||305===e)&&(this.state=2236,e=this.tokenStream.LA(1),139===e||305===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2239,this.match(t.TRIGGER),this.state=2240,this.triggerName();break;case 33:this.enterOuterAlt(s,33),this.state=2241,this.match(t.ENABLE_P),this.state=2242,this.match(t.TRIGGER),this.state=2243,e=this.tokenStream.LA(1),30===e||99===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 34:this.enterOuterAlt(s,34),this.state=2244,this.match(t.DISABLE_P),this.state=2245,this.match(t.TRIGGER),this.state=2246,this.triggerName();break;case 35:this.enterOuterAlt(s,35),this.state=2247,this.match(t.DISABLE_P),this.state=2248,this.match(t.TRIGGER),this.state=2249,e=this.tokenStream.LA(1),30===e||99===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 36:this.enterOuterAlt(s,36),this.state=2250,this.match(t.ENABLE_P),this.state=2251,this.match(t.RULE),this.state=2252,this.name();break;case 37:this.enterOuterAlt(s,37),this.state=2253,this.match(t.ENABLE_P),this.state=2254,this.match(t.ALWAYS),this.state=2255,this.match(t.RULE),this.state=2256,this.name();break;case 38:this.enterOuterAlt(s,38),this.state=2257,this.match(t.ENABLE_P),this.state=2258,this.match(t.REPLICA),this.state=2259,this.match(t.RULE),this.state=2260,this.name();break;case 39:this.enterOuterAlt(s,39),this.state=2261,this.match(t.DISABLE_P),this.state=2262,this.match(t.RULE),this.state=2263,this.name();break;case 40:this.enterOuterAlt(s,40),this.state=2264,this.match(t.INHERIT),this.state=2265,this.qualifiedName();break;case 41:this.enterOuterAlt(s,41),this.state=2266,this.match(t.NO),this.state=2267,this.match(t.INHERIT),this.state=2268,this.qualifiedName();break;case 42:this.enterOuterAlt(s,42),this.state=2269,this.match(t.OF),this.state=2270,this.anyName();break;case 43:this.enterOuterAlt(s,43),this.state=2271,this.match(t.NOT),this.state=2272,this.match(t.OF);break;case 44:this.enterOuterAlt(s,44),this.state=2273,this.match(t.OWNER),this.state=2274,this.match(t.TO),this.state=2275,this.roleName();break;case 45:this.enterOuterAlt(s,45),this.state=2276,this.match(t.SET),this.state=2277,this.match(t.TABLESPACE),this.state=2278,this.name();break;case 46:this.enterOuterAlt(s,46),this.state=2279,this.match(t.SET),this.state=2280,this.relOptions();break;case 47:this.enterOuterAlt(s,47),this.state=2281,this.match(t.RESET),this.state=2282,this.relOptions();break;case 48:this.enterOuterAlt(s,48),this.state=2283,this.match(t.REPLICA),this.state=2284,this.match(t.IDENTITY_P),this.state=2285,this.replicaIdentity();break;case 49:this.enterOuterAlt(s,49),this.state=2286,this.match(t.ENABLE_P),this.state=2287,this.match(t.ROW),this.state=2288,this.match(t.LEVEL),this.state=2289,this.match(t.SECURITY);break;case 50:this.enterOuterAlt(s,50),this.state=2290,this.match(t.DISABLE_P),this.state=2291,this.match(t.ROW),this.state=2292,this.match(t.LEVEL),this.state=2293,this.match(t.SECURITY);break;case 51:this.enterOuterAlt(s,51),this.state=2294,this.match(t.FORCE),this.state=2295,this.match(t.ROW),this.state=2296,this.match(t.LEVEL),this.state=2297,this.match(t.SECURITY);break;case 52:this.enterOuterAlt(s,52),this.state=2298,this.match(t.NO),this.state=2299,this.match(t.FORCE),this.state=2300,this.match(t.ROW),this.state=2301,this.match(t.LEVEL),this.state=2302,this.match(t.SECURITY);break;case 53:this.enterOuterAlt(s,53),this.state=2303,this.alterGenericOptions()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterColumnDefault(){let e=new Na(this.context,this.state);this.enterRule(e,98,t.RULE_alterColumnDefault);try{switch(this.state=2311,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=2306,this.match(t.SET),this.state=2307,this.match(t.DEFAULT),this.state=2308,this.expression1();break;case t.DROP:this.enterOuterAlt(e,2),this.state=2309,this.match(t.DROP),this.state=2310,this.match(t.DEFAULT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalDropBehavior(){let e=new La(this.context,this.state);this.enterRule(e,100,t.RULE_optionalDropBehavior);try{switch(this.state=2316,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CASCADE:this.enterOuterAlt(e,1),this.state=2313,this.match(t.CASCADE);break;case t.RESTRICT:this.enterOuterAlt(e,2),this.state=2314,this.match(t.RESTRICT);break;case t.EOF:case t.COMMA:case t.SEMI:case t.INTO:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalCollateClause(){let e=new Ca(this.context,this.state);this.enterRule(e,102,t.RULE_optionalCollateClause);try{switch(this.state=2321,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COLLATE:this.enterOuterAlt(e,1),this.state=2318,this.match(t.COLLATE),this.state=2319,this.anyName();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.INTO:case t.USING:case t.CASCADE:case t.RESTRICT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterUsing(){let e=new _a(this.context,this.state);this.enterRule(e,104,t.RULE_alterUsing);try{switch(this.state=2326,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=2323,this.match(t.USING),this.state=2324,this.expression1();break;case t.EOF:case t.COMMA:case t.SEMI:case t.INTO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replicaIdentity(){let e=new Pa(this.context,this.state);this.enterRule(e,106,t.RULE_replicaIdentity);try{switch(this.state=2334,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOTHING:this.enterOuterAlt(e,1),this.state=2328,this.match(t.NOTHING);break;case t.FULL:this.enterOuterAlt(e,2),this.state=2329,this.match(t.FULL);break;case t.DEFAULT:this.enterOuterAlt(e,3),this.state=2330,this.match(t.DEFAULT);break;case t.USING:this.enterOuterAlt(e,4),this.state=2331,this.match(t.USING),this.state=2332,this.match(t.INDEX),this.state=2333,this.indexName();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}relOptions(){let e=new Ma(this.context,this.state);this.enterRule(e,108,t.RULE_relOptions);try{this.enterOuterAlt(e,1),this.state=2336,this.match(t.OPEN_PAREN),this.state=2337,this.relOptionList(),this.state=2338,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalRelOptions(){let e=new da(this.context,this.state);this.enterRule(e,110,t.RULE_optionalRelOptions);try{switch(this.state=2343,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=2340,this.match(t.WITH),this.state=2341,this.relOptions();break;case t.EOF:case t.SEMI:case t.AS:case t.CREATE:case t.GRANT:case t.INTO:case t.WHERE:case t.TABLESPACE:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}relOptionList(){let e,s=new Ua(this.context,this.state);this.enterRule(s,112,t.RULE_relOptionList);try{for(this.enterOuterAlt(s,1),this.state=2345,this.relOptionElem(),this.state=2350,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2346,this.match(t.COMMA),this.state=2347,this.relOptionElem(),this.state=2352,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}relOptionElem(){let e,s=new ma(this.context,this.state);this.enterRule(s,114,t.RULE_relOptionElem);try{switch(this.enterOuterAlt(s,1),this.state=2353,this.columnLabel(),this.state=2362,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUAL:this.state=2354,this.match(t.EQUAL),this.state=2355,this.definitionArgument();break;case t.DOT:this.state=2356,this.match(t.DOT),this.state=2357,this.columnLabel(),this.state=2360,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=2358,this.match(t.EQUAL),this.state=2359,this.definitionArgument());case t.CLOSE_PAREN:case t.COMMA:}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterIdentityColumnOptionList(){let e,s=new Da(this.context,this.state);this.enterRule(s,116,t.RULE_alterIdentityColumnOptionList);try{this.enterOuterAlt(s,1),this.state=2365,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2364,this.alterIdentityColumnOption(),this.state=2367,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(307===e||326===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterIdentityColumnOption(){let e,s=new pa(this.context,this.state);this.enterRule(s,118,t.RULE_alterIdentityColumnOption);try{switch(this.state=2381,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESTART:this.enterOuterAlt(s,1),this.state=2369,this.match(t.RESTART),this.state=2373,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(12===e||13===e||105===e||658===e||660===e)&&(this.state=2370,this.optionalWith(),this.state=2371,this.numericOnly());break;case t.SET:switch(this.enterOuterAlt(s,2),this.state=2375,this.match(t.SET),this.state=2379,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:case t.CACHE:case t.CYCLE:case t.INCREMENT:case t.MAXVALUE:case t.MINVALUE:case t.NO:case t.OWNED:case t.RESTART:case t.SEQUENCE:case t.START:this.state=2376,this.sequenceOptionItem();break;case t.GENERATED:this.state=2377,this.match(t.GENERATED),this.state=2378,this.generatedWhen();break;default:throw new he(this)}break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionBoundSpecification(){let e=new ga(this.context,this.state);this.enterRule(e,120,t.RULE_partitionBoundSpecification);try{switch(this.state=2409,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,67,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2383,this.match(t.FOR),this.state=2384,this.match(t.VALUES),this.state=2385,this.match(t.WITH),this.state=2386,this.match(t.OPEN_PAREN),this.state=2387,this.hashPartitionBound(),this.state=2388,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2),this.state=2390,this.match(t.FOR),this.state=2391,this.match(t.VALUES),this.state=2392,this.match(t.IN_P),this.state=2393,this.match(t.OPEN_PAREN),this.state=2394,this.expressionList(),this.state=2395,this.match(t.CLOSE_PAREN);break;case 3:this.enterOuterAlt(e,3),this.state=2397,this.match(t.FOR),this.state=2398,this.match(t.VALUES),this.state=2399,this.match(t.FROM),this.state=2400,this.match(t.OPEN_PAREN),this.state=2401,this.expressionList(),this.state=2402,this.match(t.CLOSE_PAREN),this.state=2403,this.match(t.TO),this.state=2404,this.match(t.OPEN_PAREN),this.state=2405,this.expressionList(),this.state=2406,this.match(t.CLOSE_PAREN);break;case 4:this.enterOuterAlt(e,4),this.state=2408,this.match(t.DEFAULT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}hashPartitionBoundElement(){let e=new xa(this.context,this.state);this.enterRule(e,122,t.RULE_hashPartitionBoundElement);try{this.enterOuterAlt(e,1),this.state=2411,this.nonReservedWord(),this.state=2412,this.iconst()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}hashPartitionBound(){let e,s=new ka(this.context,this.state);this.enterRule(s,124,t.RULE_hashPartitionBound);try{for(this.enterOuterAlt(s,1),this.state=2414,this.hashPartitionBoundElement(),this.state=2419,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2415,this.match(t.COMMA),this.state=2416,this.hashPartitionBoundElement(),this.state=2421,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterCompositeTypeStatement(){let e=new Ha(this.context,this.state);this.enterRule(e,126,t.RULE_alterCompositeTypeStatement);try{this.enterOuterAlt(e,1),this.state=2422,this.match(t.ALTER),this.state=2423,this.match(t.TYPE_P),this.state=2424,this.anyName(),this.state=2425,this.alterTypeCommands()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterTypeCommands(){let e,s=new Ga(this.context,this.state);this.enterRule(s,128,t.RULE_alterTypeCommands);try{for(this.enterOuterAlt(s,1),this.state=2427,this.alterTypeCommand(),this.state=2432,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2428,this.match(t.COMMA),this.state=2429,this.alterTypeCommand(),this.state=2434,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTypeCommand(){let e=new Fa(this.context,this.state);this.enterRule(e,130,t.RULE_alterTypeCommand);try{switch(this.state=2458,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD_P:this.enterOuterAlt(e,1),this.state=2435,this.match(t.ADD_P),this.state=2436,this.match(t.ATTRIBUTE),this.state=2437,this.tableFunctionElement(),this.state=2438,this.optionalDropBehavior();break;case t.DROP:if(this.enterOuterAlt(e,2),1===(this.state=2440,this.match(t.DROP),this.state=2441,this.match(t.ATTRIBUTE),this.state=2444,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,70,this.context)))this.state=2442,this.match(t.IF_P),this.state=2443,this.match(t.EXISTS);this.state=2446,this.columnId(),this.state=2447,this.optionalDropBehavior();break;case t.ALTER:this.enterOuterAlt(e,3),this.state=2449,this.match(t.ALTER),this.state=2450,this.match(t.ATTRIBUTE),this.state=2451,this.columnId(),this.state=2452,this.optionalSetData(),this.state=2453,this.match(t.TYPE_P),this.state=2454,this.typeName(),this.state=2455,this.optionalCollateClause(),this.state=2456,this.optionalDropBehavior();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}closePortalStatement(){let e=new va(this.context,this.state);this.enterRule(e,132,t.RULE_closePortalStatement);try{switch(this.enterOuterAlt(e,1),this.state=2460,this.match(t.CLOSE),this.state=2463,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=2461,this.cursorName();break;case t.ALL:this.state=2462,this.match(t.ALL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}copyStatement(){let e,s=new Ba(this.context,this.state);this.enterRule(s,134,t.RULE_copyStatement);try{switch(this.state=2493,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,76,this.context)){case 1:this.enterOuterAlt(s,1),this.state=2465,this.match(t.COPY),this.state=2467,this.errorHandler.sync(this),e=this.tokenStream.LA(1),107===e&&(this.state=2466,this.match(t.BINARY)),this.state=2469,this.qualifiedName(),this.state=2470,this.columnListWithParentheses(),this.state=2471,this.fromOrTo(),this.state=2473,this.errorHandler.sync(this),e=this.tokenStream.LA(1),290===e&&(this.state=2472,this.match(t.PROGRAM)),this.state=2475,this.copyFileName(),this.state=2476,this.copyDelimiter(),this.state=2477,this.optionalWith(),this.state=2478,this.copyOptions(),this.state=2479,this.whereClause();break;case 2:this.enterOuterAlt(s,2),this.state=2481,this.match(t.COPY),this.state=2482,this.match(t.OPEN_PAREN),this.state=2483,this.preparableStatement(),this.state=2484,this.match(t.CLOSE_PAREN),this.state=2485,this.match(t.TO),this.state=2487,this.errorHandler.sync(this),e=this.tokenStream.LA(1),290===e&&(this.state=2486,this.match(t.PROGRAM)),this.state=2489,this.copyFileName(),this.state=2490,this.optionalWith(),this.state=2491,this.copyOptions()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}fromOrTo(){let e,s=new ya(this.context,this.state);this.enterRule(s,136,t.RULE_fromOrTo);try{this.enterOuterAlt(s,1),this.state=2495,e=this.tokenStream.LA(1),64===e||94===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}copyFileName(){let e=new fa(this.context,this.state);this.enterRule(e,138,t.RULE_copyFileName);try{switch(this.state=2500,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=2497,this.sconst();break;case t.STDIN:this.enterOuterAlt(e,2),this.state=2498,this.match(t.STDIN);break;case t.STDOUT:this.enterOuterAlt(e,3),this.state=2499,this.match(t.STDOUT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}copyOptions(){let e,s=new Ya(this.context,this.state);this.enterRule(s,140,t.RULE_copyOptions);try{switch(this.state=2512,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EOF:case t.SEMI:case t.INTO:case t.NULL_P:case t.WHERE:case t.BINARY:case t.FREEZE:case t.CSV:case t.DELIMITER:case t.ENCODING:case t.ESCAPE:case t.FORCE:case t.HEADER_P:case t.QUOTE:for(this.enterOuterAlt(s,1),this.state=2505,this.errorHandler.sync(this),e=this.tokenStream.LA(1);78===e||107===e||112===e||!(e-171&-32)&&1<<e-171&75501569||209===e||216===e||291===e;)this.state=2502,this.copyOptionsItem(),this.state=2507,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case t.OPEN_PAREN:this.enterOuterAlt(s,2),this.state=2508,this.match(t.OPEN_PAREN),this.state=2509,this.copyGenericOptionList(),this.state=2510,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}copyOptionsItem(){let e=new wa(this.context,this.state);this.enterRule(e,142,t.RULE_copyOptionsItem);try{switch(this.state=2549,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2514,this.match(t.BINARY);break;case 2:this.enterOuterAlt(e,2),this.state=2515,this.match(t.FREEZE);break;case 3:this.enterOuterAlt(e,3),this.state=2516,this.match(t.DELIMITER),this.state=2517,this.optionalAs(),this.state=2518,this.sconst();break;case 4:this.enterOuterAlt(e,4),this.state=2520,this.match(t.NULL_P),this.state=2521,this.optionalAs(),this.state=2522,this.sconst();break;case 5:this.enterOuterAlt(e,5),this.state=2524,this.match(t.CSV);break;case 6:this.enterOuterAlt(e,6),this.state=2525,this.match(t.HEADER_P);break;case 7:this.enterOuterAlt(e,7),this.state=2526,this.match(t.QUOTE),this.state=2527,this.optionalAs(),this.state=2528,this.sconst();break;case 8:this.enterOuterAlt(e,8),this.state=2530,this.match(t.ESCAPE),this.state=2531,this.optionalAs(),this.state=2532,this.sconst();break;case 9:this.enterOuterAlt(e,9),this.state=2534,this.match(t.FORCE),this.state=2535,this.match(t.QUOTE),this.state=2536,this.columnList();break;case 10:this.enterOuterAlt(e,10),this.state=2537,this.match(t.FORCE),this.state=2538,this.match(t.QUOTE),this.state=2539,this.match(t.STAR);break;case 11:this.enterOuterAlt(e,11),this.state=2540,this.match(t.FORCE),this.state=2541,this.match(t.NOT),this.state=2542,this.match(t.NULL_P),this.state=2543,this.columnList();break;case 12:this.enterOuterAlt(e,12),this.state=2544,this.match(t.FORCE),this.state=2545,this.match(t.NULL_P),this.state=2546,this.columnList();break;case 13:this.enterOuterAlt(e,13),this.state=2547,this.match(t.ENCODING),this.state=2548,this.sconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}copyDelimiter(){let e,s=new ba(this.context,this.state);this.enterRule(s,144,t.RULE_copyDelimiter);try{switch(this.state=2557,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:case t.DELIMITERS:this.enterOuterAlt(s,1),this.state=2552,this.errorHandler.sync(this),e=this.tokenStream.LA(1),100===e&&(this.state=2551,this.match(t.USING)),this.state=2554,this.match(t.DELIMITERS),this.state=2555,this.sconst();break;case t.EOF:case t.OPEN_PAREN:case t.SEMI:case t.INTO:case t.NULL_P:case t.WHERE:case t.WITH:case t.BINARY:case t.FREEZE:case t.CSV:case t.DELIMITER:case t.ENCODING:case t.ESCAPE:case t.FORCE:case t.HEADER_P:case t.QUOTE:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}copyGenericOptionList(){let e,s=new Wa(this.context,this.state);this.enterRule(s,146,t.RULE_copyGenericOptionList);try{for(this.enterOuterAlt(s,1),this.state=2559,this.copyGenericOptionElem(),this.state=2564,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2560,this.match(t.COMMA),this.state=2561,this.copyGenericOptionElem(),this.state=2566,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}copyGenericOptionElem(){let e=new Va(this.context,this.state);this.enterRule(e,148,t.RULE_copyGenericOptionElem);try{this.enterOuterAlt(e,1),this.state=2567,this.columnLabel(),this.state=2568,this.copyGenericOptionArgument()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}copyGenericOptionArgument(){let e,s=new Xa(this.context,this.state);this.enterRule(s,150,t.RULE_copyGenericOptionArgument);try{switch(this.state=2585,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.ON:case t.TABLE:case t.TRUE_P:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(s,1),this.state=2570,this.booleanOrString();break;case t.PLUS:case t.MINUS:case t.Integral:case t.Numeric:this.enterOuterAlt(s,2),this.state=2571,this.numericOnly();break;case t.STAR:this.enterOuterAlt(s,3),this.state=2572,this.match(t.STAR);break;case t.OPEN_PAREN:for(this.enterOuterAlt(s,4),this.state=2573,this.match(t.OPEN_PAREN),this.state=2574,this.booleanOrString(),this.state=2579,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2575,this.match(t.COMMA),this.state=2576,this.booleanOrString(),this.state=2581,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2582,this.match(t.CLOSE_PAREN);break;case t.CLOSE_PAREN:case t.COMMA:this.enterOuterAlt(s,5);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createStatement(){let e=new Ka(this.context,this.state);this.enterRule(e,152,t.RULE_createStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=2587,this.match(t.CREATE),this.state=2588,this.temporaryOption(),this.state=2589,this.match(t.TABLE),this.state=2593,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,86,this.context)))this.state=2590,this.match(t.IF_P),this.state=2591,this.match(t.NOT),this.state=2592,this.match(t.EXISTS);switch(this.state=2595,this.qualifiedName(),this.state=2626,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.state=2596,this.match(t.OPEN_PAREN),this.state=2597,this.optionalTableElementList(),this.state=2598,this.match(t.CLOSE_PAREN),this.state=2599,this.inheritClause(),this.state=2600,this.optionalPartitionSpecification(),this.state=2601,this.optionalTableAccessMethodClause(),this.state=2602,this.with_(),this.state=2603,this.onCommitOption(),this.state=2604,this.optionalTablespace();break;case t.OF:this.state=2606,this.match(t.OF),this.state=2607,this.anyName(),this.state=2608,this.optionalTypedTableElementList(),this.state=2609,this.optionalPartitionSpecification(),this.state=2610,this.optionalTableAccessMethodClause(),this.state=2611,this.with_(),this.state=2612,this.onCommitOption(),this.state=2613,this.optionalTablespace();break;case t.PARTITION:this.state=2615,this.match(t.PARTITION),this.state=2616,this.match(t.OF),this.state=2617,this.qualifiedName(),this.state=2618,this.optionalTypedTableElementList(),this.state=2619,this.partitionBoundSpecification(),this.state=2620,this.optionalPartitionSpecification(),this.state=2621,this.optionalTableAccessMethodClause(),this.state=2622,this.with_(),this.state=2623,this.onCommitOption(),this.state=2624,this.optionalTablespace();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}temporaryOption(){let e,s=new Qa(this.context,this.state);this.enterRule(s,154,t.RULE_temporaryOption);try{switch(this.state=2636,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TEMPORARY:this.enterOuterAlt(s,1),this.state=2628,this.match(t.TEMPORARY);break;case t.TEMP:this.enterOuterAlt(s,2),this.state=2629,this.match(t.TEMP);break;case t.LOCAL:this.enterOuterAlt(s,3),this.state=2630,this.match(t.LOCAL),this.state=2631,e=this.tokenStream.LA(1),345===e||347===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.GLOBAL:this.enterOuterAlt(s,4),this.state=2632,this.match(t.GLOBAL),this.state=2633,e=this.tokenStream.LA(1),345===e||347===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.UNLOGGED:this.enterOuterAlt(s,5),this.state=2634,this.match(t.UNLOGGED);break;case t.TABLE:case t.RECURSIVE:case t.SEQUENCE:case t.VIEW:this.enterOuterAlt(s,6);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalTableElementList(){let e=new Ja(this.context,this.state);this.enterRule(e,156,t.RULE_optionalTableElementList);try{switch(this.state=2640,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.FOREIGN:case t.PRIMARY:case t.TABLE:case t.UNIQUE:case t.IS:case t.LEFT:case t.LIKE:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=2638,this.tableElementList();break;case t.CLOSE_PAREN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTypedTableElementList(){let e=new Za(this.context,this.state);this.enterRule(e,158,t.RULE_optionalTypedTableElementList);try{switch(this.state=2647,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=2642,this.match(t.OPEN_PAREN),this.state=2643,this.typedTableElementList(),this.state=2644,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.SEMI:case t.CREATE:case t.DEFAULT:case t.FOR:case t.GRANT:case t.INTO:case t.ON:case t.USING:case t.WITH:case t.PARTITION:case t.TABLESPACE:case t.WITHOUT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableElementList(){let e,s=new qa(this.context,this.state);this.enterRule(s,160,t.RULE_tableElementList);try{for(this.enterOuterAlt(s,1),this.state=2649,this.tableElement(),this.state=2654,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2650,this.match(t.COMMA),this.state=2651,this.tableElement(),this.state=2656,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}typedTableElementList(){let e,s=new ja(this.context,this.state);this.enterRule(s,162,t.RULE_typedTableElementList);try{for(this.enterOuterAlt(s,1),this.state=2657,this.typedTableElement(),this.state=2662,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2658,this.match(t.COMMA),this.state=2659,this.typedTableElement(),this.state=2664,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableElement(){let e=new za(this.context,this.state);this.enterRule(e,164,t.RULE_tableElement);try{switch(this.state=2668,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,93,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2665,this.tableConstraint();break;case 2:this.enterOuterAlt(e,2),this.state=2666,this.tableLikeClause();break;case 3:this.enterOuterAlt(e,3),this.state=2667,this.columnDefinition()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}typedTableElement(){let e=new $a(this.context,this.state);this.enterRule(e,166,t.RULE_typedTableElement);try{switch(this.state=2672,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,94,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2670,this.columnOptions();break;case 2:this.enterOuterAlt(e,2),this.state=2671,this.tableConstraint()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnDefinition(){let e=new ti(this.context,this.state);this.enterRule(e,168,t.RULE_columnDefinition);try{this.enterOuterAlt(e,1),this.state=2674,this.columnId(),this.state=2675,this.typeName(),this.state=2676,this.createGenericOptions(),this.state=2677,this.columnQualifierList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnOptions(){let e,s=new ei(this.context,this.state);this.enterRule(s,170,t.RULE_columnOptions);try{this.enterOuterAlt(s,1),this.state=2679,this.columnId(),this.state=2682,this.errorHandler.sync(this),e=this.tokenStream.LA(1),105===e&&(this.state=2680,this.match(t.WITH),this.state=2681,this.match(t.OPTIONS)),this.state=2684,this.columnQualifierList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnQualifierList(){let e,s=new si(this.context,this.state);this.enterRule(s,172,t.RULE_columnQualifierList);try{for(this.enterOuterAlt(s,1),this.state=2689,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-42&-32)&&1<<e-42&134223883||!(e-77&-32)&&1<<e-77&2097923||438===e;)this.state=2686,this.columnConstraint(),this.state=2691,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnConstraint(){let e=new ai(this.context,this.state);this.enterRule(e,174,t.RULE_columnConstraint);try{switch(this.state=2700,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,97,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2692,this.match(t.CONSTRAINT),this.state=2693,this.name(),this.state=2694,this.columnConstraintElement();break;case 2:this.enterOuterAlt(e,2),this.state=2696,this.columnConstraintElement();break;case 3:this.enterOuterAlt(e,3),this.state=2697,this.constraintAttribute();break;case 4:this.enterOuterAlt(e,4),this.state=2698,this.match(t.COLLATE),this.state=2699,this.anyName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnConstraintElement(){let e,s=new ii(this.context,this.state);this.enterRule(s,176,t.RULE_columnConstraintElement);try{switch(this.state=2742,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOT:this.enterOuterAlt(s,1),this.state=2702,this.match(t.NOT),this.state=2703,this.match(t.NULL_P);break;case t.NULL_P:this.enterOuterAlt(s,2),this.state=2704,this.match(t.NULL_P);break;case t.UNIQUE:this.enterOuterAlt(s,3),this.state=2705,this.match(t.UNIQUE),this.state=2706,this.optionalDefinition(),this.state=2707,this.usingIndexTablespace();break;case t.PRIMARY:this.enterOuterAlt(s,4),this.state=2709,this.match(t.PRIMARY),this.state=2710,this.match(t.KEY),this.state=2711,this.optionalDefinition(),this.state=2712,this.usingIndexTablespace();break;case t.CHECK:this.enterOuterAlt(s,5),this.state=2714,this.match(t.CHECK),this.state=2715,this.match(t.OPEN_PAREN),this.state=2716,this.expression1(),this.state=2717,this.match(t.CLOSE_PAREN),this.state=2720,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=2718,this.match(t.NO),this.state=2719,this.match(t.INHERIT));break;case t.DEFAULT:this.enterOuterAlt(s,6),this.state=2722,this.match(t.DEFAULT),this.state=2723,this.expression2(0);break;case t.GENERATED:switch(this.enterOuterAlt(s,7),this.state=2724,this.match(t.GENERATED),this.state=2725,this.generatedWhen(),this.state=2726,this.match(t.AS),this.state=2734,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IDENTITY_P:this.state=2727,this.match(t.IDENTITY_P),this.state=2728,this.optionalParenthesizedSeqOptionsList();break;case t.OPEN_PAREN:this.state=2729,this.match(t.OPEN_PAREN),this.state=2730,this.expression1(),this.state=2731,this.match(t.CLOSE_PAREN),this.state=2732,this.match(t.STORED);break;default:throw new he(this)}break;case t.REFERENCES:this.enterOuterAlt(s,8),this.state=2736,this.match(t.REFERENCES),this.state=2737,this.qualifiedName(),this.state=2738,this.columnListWithParentheses(),this.state=2739,this.matchClause(),this.state=2740,this.keyActions();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}generatedWhen(){let e=new ri(this.context,this.state);this.enterRule(e,178,t.RULE_generatedWhen);try{switch(this.state=2747,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALWAYS:this.enterOuterAlt(e,1),this.state=2744,this.match(t.ALWAYS);break;case t.BY:this.enterOuterAlt(e,2),this.state=2745,this.match(t.BY),this.state=2746,this.match(t.DEFAULT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintAttribute(){let e,s=new ci(this.context,this.state);this.enterRule(s,180,t.RULE_constraintAttribute);try{switch(this.state=2754,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DEFERRABLE:this.enterOuterAlt(s,1),this.state=2749,this.match(t.DEFERRABLE);break;case t.NOT:this.enterOuterAlt(s,2),this.state=2750,this.match(t.NOT),this.state=2751,this.match(t.DEFERRABLE);break;case t.INITIALLY:this.enterOuterAlt(s,3),this.state=2752,this.match(t.INITIALLY),this.state=2753,e=this.tokenStream.LA(1),180===e||221===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableLikeClause(){let e=new ni(this.context,this.state);this.enterRule(e,182,t.RULE_tableLikeClause);try{this.enterOuterAlt(e,1),this.state=2756,this.match(t.LIKE),this.state=2757,this.qualifiedName(),this.state=2758,this.tableLikeOptionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableLikeOptionList(){let e,s=new hi(this.context,this.state);this.enterRule(s,184,t.RULE_tableLikeOptionList);try{for(this.enterOuterAlt(s,1),this.state=2764,this.errorHandler.sync(this),e=this.tokenStream.LA(1);200===e||224===e;)this.state=2760,e=this.tokenStream.LA(1),200===e||224===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2761,this.tableLikeOption(),this.state=2766,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableLikeOption(){let e,s=new Ei(this.context,this.state);this.enterRule(s,186,t.RULE_tableLikeOption);try{this.enterOuterAlt(s,1),this.state=2767,e=this.tokenStream.LA(1),30===e||!(e-160&-32)&&1<<e-160&524321||219===e||227===e||335===e||338===e||438===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableConstraint(){let e=new Ti(this.context,this.state);this.enterRule(e,188,t.RULE_tableConstraint);try{switch(this.state=2774,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONSTRAINT:this.enterOuterAlt(e,1),this.state=2769,this.match(t.CONSTRAINT),this.state=2770,this.name(),this.state=2771,this.constraintElement();break;case t.CHECK:case t.FOREIGN:case t.PRIMARY:case t.UNIQUE:case t.EXCLUDE:this.enterOuterAlt(e,2),this.state=2773,this.constraintElement();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintElement(){let e=new oi(this.context,this.state);this.enterRule(e,190,t.RULE_constraintElement);try{switch(this.state=2834,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CHECK:this.enterOuterAlt(e,1),this.state=2776,this.match(t.CHECK),this.state=2777,this.match(t.OPEN_PAREN),this.state=2778,this.expression1(),this.state=2779,this.match(t.CLOSE_PAREN),this.state=2780,this.constraintAttributeSpecification();break;case t.UNIQUE:switch(this.enterOuterAlt(e,2),this.state=2782,this.match(t.UNIQUE),this.state=2794,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.state=2783,this.match(t.OPEN_PAREN),this.state=2784,this.columnList(),this.state=2785,this.match(t.CLOSE_PAREN),this.state=2786,this.optionalColumnListInclude(),this.state=2787,this.optionalDefinition(),this.state=2788,this.usingIndexTablespace(),this.state=2789,this.constraintAttributeSpecification();break;case t.USING:this.state=2791,this.existingIndex(),this.state=2792,this.constraintAttributeSpecification();break;default:throw new he(this)}break;case t.PRIMARY:switch(this.enterOuterAlt(e,3),this.state=2796,this.match(t.PRIMARY),this.state=2797,this.match(t.KEY),this.state=2809,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.state=2798,this.match(t.OPEN_PAREN),this.state=2799,this.columnList(),this.state=2800,this.match(t.CLOSE_PAREN),this.state=2801,this.optionalColumnListInclude(),this.state=2802,this.optionalDefinition(),this.state=2803,this.usingIndexTablespace(),this.state=2804,this.constraintAttributeSpecification();break;case t.USING:this.state=2806,this.existingIndex(),this.state=2807,this.constraintAttributeSpecification();break;default:throw new he(this)}break;case t.EXCLUDE:this.enterOuterAlt(e,4),this.state=2811,this.match(t.EXCLUDE),this.state=2812,this.optionalAccessMethodClause(),this.state=2813,this.match(t.OPEN_PAREN),this.state=2814,this.exclusionConstraintList(),this.state=2815,this.match(t.CLOSE_PAREN),this.state=2816,this.optionalColumnListInclude(),this.state=2817,this.optionalDefinition(),this.state=2818,this.usingIndexTablespace(),this.state=2819,this.exclusionWhereClause(),this.state=2820,this.constraintAttributeSpecification();break;case t.FOREIGN:this.enterOuterAlt(e,5),this.state=2822,this.match(t.FOREIGN),this.state=2823,this.match(t.KEY),this.state=2824,this.match(t.OPEN_PAREN),this.state=2825,this.columnList(),this.state=2826,this.match(t.CLOSE_PAREN),this.state=2827,this.match(t.REFERENCES),this.state=2828,this.qualifiedName(),this.state=2829,this.columnListWithParentheses(),this.state=2830,this.matchClause(),this.state=2831,this.keyActions(),this.state=2832,this.constraintAttributeSpecification();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnListWithParentheses(){let e=new Ri(this.context,this.state);this.enterRule(e,192,t.RULE_columnListWithParentheses);try{switch(this.state=2841,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=2836,this.match(t.OPEN_PAREN),this.state=2837,this.columnList(),this.state=2838,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.AS:case t.CHECK:case t.COLLATE:case t.CONSTRAINT:case t.DEFAULT:case t.DEFERRABLE:case t.FROM:case t.INITIALLY:case t.INTO:case t.NOT:case t.NULL_P:case t.ON:case t.PRIMARY:case t.REFERENCES:case t.TO:case t.UNIQUE:case t.USING:case t.WITH:case t.MATCH:case t.NO:case t.TABLESPACE:case t.WITHOUT:case t.GENERATED:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnList(){let e,s=new Ai(this.context,this.state);this.enterRule(s,194,t.RULE_columnList);try{for(this.enterOuterAlt(s,1),this.state=2843,this.columnElement(),this.state=2848,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2844,this.match(t.COMMA),this.state=2845,this.columnElement(),this.state=2850,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnElement(){let e=new Si(this.context,this.state);this.enterRule(e,196,t.RULE_columnElement);try{this.enterOuterAlt(e,1),this.state=2851,this.columnId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalColumnListInclude(){let e=new li(this.context,this.state);this.enterRule(e,198,t.RULE_optionalColumnListInclude);try{switch(this.state=2859,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INCLUDE:this.enterOuterAlt(e,1),this.state=2853,this.match(t.INCLUDE),this.state=2854,this.match(t.OPEN_PAREN),this.state=2855,this.columnList(),this.state=2856,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.USING:case t.WHERE:case t.WITH:case t.NO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}matchClause(){let e,s=new Oi(this.context,this.state);this.enterRule(s,200,t.RULE_matchClause);try{switch(this.state=2864,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.MATCH:this.enterOuterAlt(s,1),this.state=2861,this.match(t.MATCH),this.state=2862,e=this.tokenStream.LA(1),113===e||277===e||329===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CHECK:case t.COLLATE:case t.CONSTRAINT:case t.DEFAULT:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.NULL_P:case t.ON:case t.PRIMARY:case t.REFERENCES:case t.UNIQUE:case t.NO:case t.GENERATED:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}exclusionConstraintList(){let e,s=new Ii(this.context,this.state);this.enterRule(s,202,t.RULE_exclusionConstraintList);try{for(this.enterOuterAlt(s,1),this.state=2866,this.exclusionConstraintElement(),this.state=2871,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2867,this.match(t.COMMA),this.state=2868,this.exclusionConstraintElement(),this.state=2873,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}exclusionConstraintElement(){let e=new ui(this.context,this.state);this.enterRule(e,204,t.RULE_exclusionConstraintElement);try{switch(this.enterOuterAlt(e,1),this.state=2874,this.indexElement(),this.state=2875,this.match(t.WITH),this.state=2882,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,113,this.context)){case 1:this.state=2876,this.anyOperator();break;case 2:this.state=2877,this.match(t.OPERATOR),this.state=2878,this.match(t.OPEN_PAREN),this.state=2879,this.anyOperator(),this.state=2880,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}exclusionWhereClause(){let e=new Ni(this.context,this.state);this.enterRule(e,206,t.RULE_exclusionWhereClause);try{switch(this.state=2890,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHERE:this.enterOuterAlt(e,1),this.state=2884,this.match(t.WHERE),this.state=2885,this.match(t.OPEN_PAREN),this.state=2886,this.expression1(),this.state=2887,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.NO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyActions(){let e=new Li(this.context,this.state);this.enterRule(e,208,t.RULE_keyActions);try{switch(this.state=2901,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2892,this.onKeyUpdateClause();break;case 2:this.enterOuterAlt(e,2),this.state=2893,this.onKeyDeleteClause();break;case 3:this.enterOuterAlt(e,3),this.state=2894,this.onKeyUpdateClause(),this.state=2895,this.onKeyDeleteClause();break;case 4:this.enterOuterAlt(e,4),this.state=2897,this.onKeyDeleteClause(),this.state=2898,this.onKeyUpdateClause();break;case 5:this.enterOuterAlt(e,5)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}onKeyUpdateClause(){let e=new Ci(this.context,this.state);this.enterRule(e,210,t.RULE_onKeyUpdateClause);try{this.enterOuterAlt(e,1),this.state=2903,this.match(t.ON),this.state=2904,this.match(t.UPDATE),this.state=2905,this.keyAction()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}onKeyDeleteClause(){let e=new _i(this.context,this.state);this.enterRule(e,212,t.RULE_onKeyDeleteClause);try{this.enterOuterAlt(e,1),this.state=2907,this.match(t.ON),this.state=2908,this.match(t.DELETE_P),this.state=2909,this.keyAction()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyAction(){let e,s=new Pi(this.context,this.state);this.enterRule(s,214,t.RULE_keyAction);try{switch(this.state=2917,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NO:this.enterOuterAlt(s,1),this.state=2911,this.match(t.NO),this.state=2912,this.match(t.ACTION);break;case t.RESTRICT:this.enterOuterAlt(s,2),this.state=2913,this.match(t.RESTRICT);break;case t.CASCADE:this.enterOuterAlt(s,3),this.state=2914,this.match(t.CASCADE);break;case t.SET:this.enterOuterAlt(s,4),this.state=2915,this.match(t.SET),this.state=2916,e=this.tokenStream.LA(1),53===e||78===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}inheritClause(){let e=new Mi(this.context,this.state);this.enterRule(e,216,t.RULE_inheritClause);try{switch(this.state=2925,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INHERITS:this.enterOuterAlt(e,1),this.state=2919,this.match(t.INHERITS),this.state=2920,this.match(t.OPEN_PAREN),this.state=2921,this.qualifiedNameList(),this.state=2922,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.USING:case t.WITH:case t.PARTITION:case t.SERVER:case t.TABLESPACE:case t.WITHOUT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalPartitionSpecification(){let e=new di(this.context,this.state);this.enterRule(e,218,t.RULE_optionalPartitionSpecification);try{switch(this.state=2929,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PARTITION:this.enterOuterAlt(e,1),this.state=2927,this.partitionSpecification();break;case t.EOF:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.USING:case t.WITH:case t.TABLESPACE:case t.WITHOUT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}partitionSpecification(){let e=new Ui(this.context,this.state);this.enterRule(e,220,t.RULE_partitionSpecification);try{this.enterOuterAlt(e,1),this.state=2931,this.match(t.PARTITION),this.state=2932,this.match(t.BY),this.state=2933,this.columnId(),this.state=2934,this.match(t.OPEN_PAREN),this.state=2935,this.partitionElements(),this.state=2936,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}partitionElements(){let e,s=new mi(this.context,this.state);this.enterRule(s,222,t.RULE_partitionElements);try{for(this.enterOuterAlt(s,1),this.state=2938,this.partitionElement(),this.state=2943,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=2939,this.match(t.COMMA),this.state=2940,this.partitionElement(),this.state=2945,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionElement(){let e=new Di(this.context,this.state);this.enterRule(e,224,t.RULE_partitionElement);try{switch(this.state=2960,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,120,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2946,this.columnId(),this.state=2947,this.optionalCollate(),this.state=2948,this.optionalClass();break;case 2:this.enterOuterAlt(e,2),this.state=2950,this.functionExpressionWindowless(),this.state=2951,this.optionalCollate(),this.state=2952,this.optionalClass();break;case 3:this.enterOuterAlt(e,3),this.state=2954,this.match(t.OPEN_PAREN),this.state=2955,this.expression1(),this.state=2956,this.match(t.CLOSE_PAREN),this.state=2957,this.optionalCollate(),this.state=2958,this.optionalClass()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTableAccessMethodClause(){let e=new pi(this.context,this.state);this.enterRule(e,226,t.RULE_optionalTableAccessMethodClause);try{switch(this.state=2965,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=2962,this.match(t.USING),this.state=2963,this.name();break;case t.EOF:case t.SEMI:case t.AS:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.WITH:case t.TABLESPACE:case t.WITHOUT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_(){let e=new gi(this.context,this.state);this.enterRule(e,228,t.RULE_with);try{switch(this.state=2972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=2967,this.match(t.WITH),this.state=2968,this.relOptions();break;case t.WITHOUT:this.enterOuterAlt(e,2),this.state=2969,this.match(t.WITHOUT),this.state=2970,this.match(t.OIDS);break;case t.EOF:case t.SEMI:case t.AS:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.TABLESPACE:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}onCommitOption(){let e=new xi(this.context,this.state);this.enterRule(e,230,t.RULE_onCommitOption);try{switch(this.state=2984,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ON:switch(this.enterOuterAlt(e,1),this.state=2974,this.match(t.ON),this.state=2975,this.match(t.COMMIT),this.state=2981,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DROP:this.state=2976,this.match(t.DROP);break;case t.DELETE_P:this.state=2977,this.match(t.DELETE_P),this.state=2978,this.match(t.ROWS);break;case t.PRESERVE:this.state=2979,this.match(t.PRESERVE),this.state=2980,this.match(t.ROWS);break;default:throw new he(this)}break;case t.EOF:case t.SEMI:case t.AS:case t.CREATE:case t.GRANT:case t.INTO:case t.TABLESPACE:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTablespace(){let e=new ki(this.context,this.state);this.enterRule(e,232,t.RULE_optionalTablespace);try{switch(this.state=2989,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLESPACE:this.enterOuterAlt(e,1),this.state=2986,this.match(t.TABLESPACE),this.state=2987,this.name();break;case t.EOF:case t.SEMI:case t.AS:case t.CREATE:case t.GRANT:case t.INTO:case t.WHERE:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}usingIndexTablespace(){let e=new Hi(this.context,this.state);this.enterRule(e,234,t.RULE_usingIndexTablespace);try{switch(this.state=2996,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=2991,this.match(t.USING),this.state=2992,this.match(t.INDEX),this.state=2993,this.match(t.TABLESPACE),this.state=2994,this.name();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CHECK:case t.COLLATE:case t.CONSTRAINT:case t.DEFAULT:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.NULL_P:case t.PRIMARY:case t.REFERENCES:case t.UNIQUE:case t.WHERE:case t.NO:case t.GENERATED:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}existingIndex(){let e=new Gi(this.context,this.state);this.enterRule(e,236,t.RULE_existingIndex);try{this.enterOuterAlt(e,1),this.state=2998,this.match(t.USING),this.state=2999,this.match(t.INDEX),this.state=3e3,this.indexName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createStatsStatement(){let e=new Fi(this.context,this.state);this.enterRule(e,238,t.RULE_createStatsStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=3002,this.match(t.CREATE),this.state=3003,this.match(t.STATISTICS),this.state=3007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,127,this.context)))this.state=3004,this.match(t.IF_P),this.state=3005,this.match(t.NOT),this.state=3006,this.match(t.EXISTS);this.state=3009,this.anyName(),this.state=3010,this.optionalNameList(),this.state=3011,this.match(t.ON),this.state=3012,this.expressionList(),this.state=3013,this.match(t.FROM),this.state=3014,this.fromList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterStatsStatement(){let e=new vi(this.context,this.state);this.enterRule(e,240,t.RULE_alterStatsStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=3016,this.match(t.ALTER),this.state=3017,this.match(t.STATISTICS),this.state=3020,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,128,this.context)))this.state=3018,this.match(t.IF_P),this.state=3019,this.match(t.EXISTS);this.state=3022,this.anyName(),this.state=3023,this.match(t.SET),this.state=3024,this.match(t.STATISTICS),this.state=3025,this.signedIconst()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createAsStatement(){let e=new Bi(this.context,this.state);this.enterRule(e,242,t.RULE_createAsStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=3027,this.match(t.CREATE),this.state=3028,this.temporaryOption(),this.state=3029,this.match(t.TABLE),this.state=3033,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,129,this.context)))this.state=3030,this.match(t.IF_P),this.state=3031,this.match(t.NOT),this.state=3032,this.match(t.EXISTS);this.state=3035,this.createAsTarget(),this.state=3036,this.match(t.AS),this.state=3037,this.selectStatement(),this.state=3038,this.withData()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createAsTarget(){let e=new yi(this.context,this.state);this.enterRule(e,244,t.RULE_createAsTarget);try{this.enterOuterAlt(e,1),this.state=3040,this.qualifiedName(),this.state=3041,this.columnListWithParentheses(),this.state=3042,this.optionalTableAccessMethodClause(),this.state=3043,this.with_(),this.state=3044,this.onCommitOption(),this.state=3045,this.optionalTablespace()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}withData(){let e=new fi(this.context,this.state);this.enterRule(e,246,t.RULE_withData);try{switch(this.state=3054,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:switch(this.enterOuterAlt(e,1),this.state=3047,this.match(t.WITH),this.state=3051,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DATA_P:this.state=3048,this.match(t.DATA_P);break;case t.NO:this.state=3049,this.match(t.NO),this.state=3050,this.match(t.DATA_P);break;default:throw new he(this)}break;case t.EOF:case t.SEMI:case t.INTO:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createMaterializedViewStatement(){let e,s=new Yi(this.context,this.state);this.enterRule(s,248,t.RULE_createMaterializedViewStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=3056,this.match(t.CREATE),this.state=3058,this.errorHandler.sync(this),e=this.tokenStream.LA(1),360===e&&(this.state=3057,this.match(t.UNLOGGED)),this.state=3060,this.match(t.MATERIALIZED),this.state=3061,this.match(t.VIEW),this.state=3065,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,133,this.context)))this.state=3062,this.match(t.IF_P),this.state=3063,this.match(t.NOT),this.state=3064,this.match(t.EXISTS);this.state=3067,this.createMaterializedViewTarget(),this.state=3068,this.match(t.AS),this.state=3069,this.selectStatement(),this.state=3070,this.withData()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createMaterializedViewTarget(){let e=new wi(this.context,this.state);this.enterRule(e,250,t.RULE_createMaterializedViewTarget);try{this.enterOuterAlt(e,1),this.state=3072,this.qualifiedName(),this.state=3073,this.columnListWithParentheses(),this.state=3074,this.optionalTableAccessMethodClause(),this.state=3075,this.optionalRelOptions(),this.state=3076,this.optionalTablespace()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}refreshMaterializedViewStatement(){let e,s=new bi(this.context,this.state);this.enterRule(s,252,t.RULE_refreshMaterializedViewStatement);try{this.enterOuterAlt(s,1),this.state=3078,this.match(t.REFRESH),this.state=3079,this.match(t.MATERIALIZED),this.state=3080,this.match(t.VIEW),this.state=3082,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=3081,this.match(t.CONCURRENTLY)),this.state=3084,this.qualifiedName(),this.state=3085,this.withData()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createSequenceStatement(){let e,s=new Wi(this.context,this.state);this.enterRule(s,254,t.RULE_createSequenceStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=3087,this.match(t.CREATE),this.state=3088,this.temporaryOption(),this.state=3089,this.match(t.SEQUENCE),this.state=3093,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,135,this.context)))this.state=3090,this.match(t.IF_P),this.state=3091,this.match(t.NOT),this.state=3092,this.match(t.EXISTS);this.state=3095,this.qualifiedName(),this.state=3097,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(36===e||148===e||173===e||!(e-225&-32)&&1<<e-225&1207959553||262===e||274===e||!(e-307&-32)&&1<<e-307&67125249)&&(this.state=3096,this.sequenceOptionList())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterSequenceStatement(){let e=new Vi(this.context,this.state);this.enterRule(e,256,t.RULE_alterSequenceStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=3099,this.match(t.ALTER),this.state=3100,this.match(t.SEQUENCE),this.state=3103,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,137,this.context)))this.state=3101,this.match(t.IF_P),this.state=3102,this.match(t.EXISTS);this.state=3105,this.sequenceName(),this.state=3106,this.sequenceOptionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalParenthesizedSeqOptionsList(){let e=new Xi(this.context,this.state);this.enterRule(e,258,t.RULE_optionalParenthesizedSeqOptionsList);try{switch(this.state=3113,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=3108,this.match(t.OPEN_PAREN),this.state=3109,this.sequenceOptionList(),this.state=3110,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CHECK:case t.COLLATE:case t.CONSTRAINT:case t.DEFAULT:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.NULL_P:case t.PRIMARY:case t.REFERENCES:case t.UNIQUE:case t.GENERATED:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sequenceOptionList(){let e,s=new Ki(this.context,this.state);this.enterRule(s,260,t.RULE_sequenceOptionList);try{this.enterOuterAlt(s,1),this.state=3116,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3115,this.sequenceOptionItem(),this.state=3118,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(36===e||148===e||173===e||!(e-225&-32)&&1<<e-225&1207959553||262===e||274===e||!(e-307&-32)&&1<<e-307&67125249)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sequenceOptionItem(){let e,s=new Qi(this.context,this.state);this.enterRule(s,262,t.RULE_sequenceOptionItem);try{switch(this.state=3151,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.enterOuterAlt(s,1),this.state=3120,this.match(t.AS),this.state=3121,this.simpleTypeName();break;case t.CACHE:this.enterOuterAlt(s,2),this.state=3122,this.match(t.CACHE),this.state=3123,this.numericOnly();break;case t.CYCLE:this.enterOuterAlt(s,3),this.state=3124,this.match(t.CYCLE);break;case t.INCREMENT:this.enterOuterAlt(s,4),this.state=3125,this.match(t.INCREMENT),this.state=3127,this.errorHandler.sync(this),e=this.tokenStream.LA(1),147===e&&(this.state=3126,this.match(t.BY)),this.state=3129,this.numericOnly();break;case t.MAXVALUE:this.enterOuterAlt(s,5),this.state=3130,this.match(t.MAXVALUE),this.state=3131,this.numericOnly();break;case t.MINVALUE:this.enterOuterAlt(s,6),this.state=3132,this.match(t.MINVALUE),this.state=3133,this.numericOnly();break;case t.NO:this.enterOuterAlt(s,7),this.state=3134,this.match(t.NO),this.state=3135,e=this.tokenStream.LA(1),173===e||252===e||255===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.OWNED:this.enterOuterAlt(s,8),this.state=3136,this.match(t.OWNED),this.state=3137,this.match(t.BY),this.state=3138,this.anyName();break;case t.SEQUENCE:this.enterOuterAlt(s,9),this.state=3139,this.match(t.SEQUENCE),this.state=3140,this.match(t.NAME_P),this.state=3141,this.anyName();break;case t.START:this.enterOuterAlt(s,10),this.state=3142,this.match(t.START),this.state=3143,this.optionalWith(),this.state=3144,this.numericOnly();break;case t.RESTART:this.enterOuterAlt(s,11),this.state=3146,this.match(t.RESTART),this.state=3147,this.optionalWith(),this.state=3149,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(12===e||13===e||658===e||660===e)&&(this.state=3148,this.numericOnly());break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}numericOnly(){let e=new Ji(this.context,this.state);this.enterRule(e,264,t.RULE_numericOnly);try{switch(this.state=3159,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,143,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3153,this.fconst();break;case 2:this.enterOuterAlt(e,2),this.state=3154,this.match(t.PLUS),this.state=3155,this.fconst();break;case 3:this.enterOuterAlt(e,3),this.state=3156,this.match(t.MINUS),this.state=3157,this.fconst();break;case 4:this.enterOuterAlt(e,4),this.state=3158,this.signedIconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}numericOnlyList(){let e,s=new Zi(this.context,this.state);this.enterRule(s,266,t.RULE_numericOnlyList);try{for(this.enterOuterAlt(s,1),this.state=3161,this.numericOnly(),this.state=3166,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=3162,this.match(t.COMMA),this.state=3163,this.numericOnly(),this.state=3168,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createProcedureLangStatement(){let e,s=new qi(this.context,this.state);this.enterRule(s,268,t.RULE_createProcedureLangStatement);try{this.enterOuterAlt(s,1),this.state=3169,this.match(t.CREATE),this.state=3170,this.optionalOrReplace(),this.state=3172,this.errorHandler.sync(this),e=this.tokenStream.LA(1),352===e&&(this.state=3171,this.match(t.TRUSTED)),this.state=3174,this.optionalProcedural(),this.state=3175,this.match(t.LANGUAGE),this.state=3176,this.name(),this.state=3183,this.errorHandler.sync(this),e=this.tokenStream.LA(1),215===e&&(this.state=3177,this.match(t.HANDLER),this.state=3178,this.handlerName(),this.state=3179,this.optionalInlineHandler(),this.state=3181,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(262===e||366===e)&&(this.state=3180,this.validatorClause()))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}handlerName(){let e,s=new ji(this.context,this.state);this.enterRule(s,270,t.RULE_handlerName);try{this.enterOuterAlt(s,1),this.state=3185,this.name(),this.state=3187,this.errorHandler.sync(this),e=this.tokenStream.LA(1),11===e&&(this.state=3186,this.attributes())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalInlineHandler(){let e=new zi(this.context,this.state);this.enterRule(e,272,t.RULE_optionalInlineHandler);try{switch(this.state=3192,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INLINE_P:this.enterOuterAlt(e,1),this.state=3189,this.match(t.INLINE_P),this.state=3190,this.handlerName();break;case t.EOF:case t.SEMI:case t.INTO:case t.NO:case t.VALIDATOR:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}validatorClause(){let e=new $i(this.context,this.state);this.enterRule(e,274,t.RULE_validatorClause);try{switch(this.state=3198,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VALIDATOR:this.enterOuterAlt(e,1),this.state=3194,this.match(t.VALIDATOR),this.state=3195,this.handlerName();break;case t.NO:this.enterOuterAlt(e,2),this.state=3196,this.match(t.NO),this.state=3197,this.match(t.VALIDATOR);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalProcedural(){let e=new tr(this.context,this.state);this.enterRule(e,276,t.RULE_optionalProcedural);try{switch(this.state=3202,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PROCEDURAL:this.enterOuterAlt(e,1),this.state=3200,this.match(t.PROCEDURAL);break;case t.LANGUAGE:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createTablespaceStatement(){let e=new er(this.context,this.state);this.enterRule(e,278,t.RULE_createTablespaceStatement);try{this.enterOuterAlt(e,1),this.state=3204,this.match(t.CREATE),this.state=3205,this.match(t.TABLESPACE),this.state=3206,this.name(),this.state=3207,this.optionalTablespaceOwner(),this.state=3208,this.match(t.LOCATION),this.state=3209,this.sconst(),this.state=3210,this.optionalRelOptions()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTablespaceOwner(){let e=new sr(this.context,this.state);this.enterRule(e,280,t.RULE_optionalTablespaceOwner);try{switch(this.state=3215,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OWNER:this.enterOuterAlt(e,1),this.state=3212,this.match(t.OWNER),this.state=3213,this.roleName();break;case t.LOCATION:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropTablespaceStatement(){let e=new ar(this.context,this.state);this.enterRule(e,282,t.RULE_dropTablespaceStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=3217,this.match(t.DROP),this.state=3218,this.match(t.TABLESPACE),this.state=3221,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,153,this.context)))this.state=3219,this.match(t.IF_P),this.state=3220,this.match(t.EXISTS);this.state=3223,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createExtensionStatement(){let e,s=new ir(this.context,this.state);this.enterRule(s,284,t.RULE_createExtensionStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=3225,this.match(t.CREATE),this.state=3226,this.match(t.EXTENSION),this.state=3230,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,154,this.context)))this.state=3227,this.match(t.IF_P),this.state=3228,this.match(t.NOT),this.state=3229,this.match(t.EXISTS);for(this.state=3232,this.name(),this.state=3233,this.optionalWith(),this.state=3237,this.errorHandler.sync(this),e=this.tokenStream.LA(1);64===e||150===e||316===e||368===e;)this.state=3234,this.createExtensionOptionItem(),this.state=3239,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createExtensionOptionItem(){let e=new rr(this.context,this.state);this.enterRule(e,286,t.RULE_createExtensionOptionItem);try{switch(this.state=3247,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SCHEMA:this.enterOuterAlt(e,1),this.state=3240,this.match(t.SCHEMA),this.state=3241,this.schemaName();break;case t.VERSION_P:this.enterOuterAlt(e,2),this.state=3242,this.match(t.VERSION_P),this.state=3243,this.nonReservedWordOrSconst();break;case t.FROM:this.enterOuterAlt(e,3),this.state=3244,this.match(t.FROM),this.state=3245,this.nonReservedWordOrSconst();break;case t.CASCADE:this.enterOuterAlt(e,4),this.state=3246,this.match(t.CASCADE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterExtensionStatement(){let e,s=new cr(this.context,this.state);this.enterRule(s,288,t.RULE_alterExtensionStatement);try{for(this.enterOuterAlt(s,1),this.state=3249,this.match(t.ALTER),this.state=3250,this.match(t.EXTENSION),this.state=3251,this.name(),this.state=3252,this.match(t.UPDATE),this.state=3256,this.errorHandler.sync(this),e=this.tokenStream.LA(1);94===e;)this.state=3253,this.alterExtensionOptionItem(),this.state=3258,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterExtensionOptionItem(){let e=new nr(this.context,this.state);this.enterRule(e,290,t.RULE_alterExtensionOptionItem);try{this.enterOuterAlt(e,1),this.state=3259,this.match(t.TO),this.state=3260,this.nonReservedWordOrSconst()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterExtensionContentsStatement(){let e=new hr(this.context,this.state);this.enterRule(e,292,t.RULE_alterExtensionContentsStatement);try{switch(this.state=3401,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,158,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3262,this.match(t.ALTER),this.state=3263,this.match(t.EXTENSION),this.state=3264,this.name(),this.state=3265,this.addOrDrop(),this.state=3266,this.objectTypeName(),this.state=3267,this.name();break;case 2:this.enterOuterAlt(e,2),this.state=3269,this.match(t.ALTER),this.state=3270,this.match(t.EXTENSION),this.state=3271,this.name(),this.state=3272,this.addOrDrop(),this.state=3273,this.match(t.ROLE),this.state=3274,this.roleName();break;case 3:this.enterOuterAlt(e,3),this.state=3276,this.match(t.ALTER),this.state=3277,this.match(t.EXTENSION),this.state=3278,this.name(),this.state=3279,this.addOrDrop(),this.state=3280,this.match(t.DATABASE),this.state=3281,this.databaseName();break;case 4:this.enterOuterAlt(e,4),this.state=3283,this.match(t.ALTER),this.state=3284,this.match(t.EXTENSION),this.state=3285,this.name(),this.state=3286,this.addOrDrop(),this.state=3287,this.match(t.SCHEMA),this.state=3288,this.schemaName();break;case 5:this.enterOuterAlt(e,5),this.state=3290,this.match(t.ALTER),this.state=3291,this.match(t.EXTENSION),this.state=3292,this.name(),this.state=3293,this.addOrDrop(),this.state=3294,this.match(t.INDEX),this.state=3295,this.indexName();break;case 6:this.enterOuterAlt(e,6),this.state=3297,this.match(t.ALTER),this.state=3298,this.match(t.EXTENSION),this.state=3299,this.name(),this.state=3300,this.addOrDrop(),this.state=3301,this.objectTypeAnyName(),this.state=3302,this.anyName();break;case 7:this.enterOuterAlt(e,7),this.state=3304,this.match(t.ALTER),this.state=3305,this.match(t.EXTENSION),this.state=3306,this.name(),this.state=3307,this.addOrDrop(),this.state=3308,this.match(t.SEQUENCE),this.state=3309,this.sequenceName();break;case 8:this.enterOuterAlt(e,8),this.state=3311,this.match(t.ALTER),this.state=3312,this.match(t.EXTENSION),this.state=3313,this.name(),this.state=3314,this.addOrDrop(),this.state=3315,this.match(t.AGGREGATE),this.state=3316,this.aggregateWithArgumentTypes();break;case 9:this.enterOuterAlt(e,9),this.state=3318,this.match(t.ALTER),this.state=3319,this.match(t.EXTENSION),this.state=3320,this.name(),this.state=3321,this.addOrDrop(),this.state=3322,this.match(t.CAST),this.state=3323,this.match(t.OPEN_PAREN),this.state=3324,this.typeName(),this.state=3325,this.match(t.AS),this.state=3326,this.typeName(),this.state=3327,this.match(t.CLOSE_PAREN);break;case 10:this.enterOuterAlt(e,10),this.state=3329,this.match(t.ALTER),this.state=3330,this.match(t.EXTENSION),this.state=3331,this.name(),this.state=3332,this.addOrDrop(),this.state=3333,this.match(t.DOMAIN_P),this.state=3334,this.typeName();break;case 11:this.enterOuterAlt(e,11),this.state=3336,this.match(t.ALTER),this.state=3337,this.match(t.EXTENSION),this.state=3338,this.name(),this.state=3339,this.addOrDrop(),this.state=3340,this.match(t.FUNCTION),this.state=3341,this.functionWithArgumentTypes();break;case 12:this.enterOuterAlt(e,12),this.state=3343,this.match(t.ALTER),this.state=3344,this.match(t.EXTENSION),this.state=3345,this.name(),this.state=3346,this.addOrDrop(),this.state=3347,this.match(t.OPERATOR),this.state=3348,this.operatorWithArgumentTypes();break;case 13:this.enterOuterAlt(e,13),this.state=3350,this.match(t.ALTER),this.state=3351,this.match(t.EXTENSION),this.state=3352,this.name(),this.state=3353,this.addOrDrop(),this.state=3354,this.match(t.OPERATOR),this.state=3355,this.match(t.CLASS),this.state=3356,this.anyName(),this.state=3357,this.match(t.USING),this.state=3358,this.name();break;case 14:this.enterOuterAlt(e,14),this.state=3360,this.match(t.ALTER),this.state=3361,this.match(t.EXTENSION),this.state=3362,this.name(),this.state=3363,this.addOrDrop(),this.state=3364,this.match(t.OPERATOR),this.state=3365,this.match(t.FAMILY),this.state=3366,this.anyName(),this.state=3367,this.match(t.USING),this.state=3368,this.name();break;case 15:this.enterOuterAlt(e,15),this.state=3370,this.match(t.ALTER),this.state=3371,this.match(t.EXTENSION),this.state=3372,this.name(),this.state=3373,this.addOrDrop(),this.state=3374,this.match(t.PROCEDURE),this.state=3375,this.functionWithArgumentTypes();break;case 16:this.enterOuterAlt(e,16),this.state=3377,this.match(t.ALTER),this.state=3378,this.match(t.EXTENSION),this.state=3379,this.name(),this.state=3380,this.addOrDrop(),this.state=3381,this.match(t.ROUTINE),this.state=3382,this.functionWithArgumentTypes();break;case 17:this.enterOuterAlt(e,17),this.state=3384,this.match(t.ALTER),this.state=3385,this.match(t.EXTENSION),this.state=3386,this.name(),this.state=3387,this.addOrDrop(),this.state=3388,this.match(t.TRANSFORM),this.state=3389,this.match(t.FOR),this.state=3390,this.typeName(),this.state=3391,this.match(t.LANGUAGE),this.state=3392,this.name();break;case 18:this.enterOuterAlt(e,18),this.state=3394,this.match(t.ALTER),this.state=3395,this.match(t.EXTENSION),this.state=3396,this.name(),this.state=3397,this.addOrDrop(),this.state=3398,this.match(t.TYPE_P),this.state=3399,this.typeName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createForeignDataWrapperStatement(){let e,s=new Er(this.context,this.state);this.enterRule(s,294,t.RULE_createForeignDataWrapperStatement);try{this.enterOuterAlt(s,1),this.state=3403,this.match(t.CREATE),this.state=3404,this.match(t.FOREIGN),this.state=3405,this.match(t.DATA_P),this.state=3406,this.match(t.WRAPPER),this.state=3407,this.name(),this.state=3409,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(215===e||262===e||366===e)&&(this.state=3408,this.forwardOptions()),this.state=3411,this.createGenericOptions()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}forwardOption(){let e=new Tr(this.context,this.state);this.enterRule(e,296,t.RULE_forwardOption);try{switch(this.state=3421,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,160,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3413,this.match(t.HANDLER),this.state=3414,this.handlerName();break;case 2:this.enterOuterAlt(e,2),this.state=3415,this.match(t.NO),this.state=3416,this.match(t.HANDLER);break;case 3:this.enterOuterAlt(e,3),this.state=3417,this.match(t.VALIDATOR),this.state=3418,this.handlerName();break;case 4:this.enterOuterAlt(e,4),this.state=3419,this.match(t.NO),this.state=3420,this.match(t.VALIDATOR)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}forwardOptions(){let e,s=new or(this.context,this.state);this.enterRule(s,298,t.RULE_forwardOptions);try{this.enterOuterAlt(s,1),this.state=3424,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3423,this.forwardOption(),this.state=3426,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(215===e||262===e||366===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterForeignDataWrapperStatement(){let e,s=new Rr(this.context,this.state);this.enterRule(s,300,t.RULE_alterForeignDataWrapperStatement);try{switch(this.state=3445,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,163,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3428,this.match(t.ALTER),this.state=3429,this.match(t.FOREIGN),this.state=3430,this.match(t.DATA_P),this.state=3431,this.match(t.WRAPPER),this.state=3432,this.name(),this.state=3434,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(215===e||262===e||366===e)&&(this.state=3433,this.forwardOptions()),this.state=3436,this.alterGenericOptions();break;case 2:this.enterOuterAlt(s,2),this.state=3438,this.match(t.ALTER),this.state=3439,this.match(t.FOREIGN),this.state=3440,this.match(t.DATA_P),this.state=3441,this.match(t.WRAPPER),this.state=3442,this.name(),this.state=3443,this.forwardOptions()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createGenericOptions(){let e=new Ar(this.context,this.state);this.enterRule(e,302,t.RULE_createGenericOptions);try{switch(this.state=3453,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPTIONS:this.enterOuterAlt(e,1),this.state=3447,this.match(t.OPTIONS),this.state=3448,this.match(t.OPEN_PAREN),this.state=3449,this.genericOptionList(),this.state=3450,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CHECK:case t.COLLATE:case t.CONSTRAINT:case t.DEFAULT:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.NULL_P:case t.PRIMARY:case t.REFERENCES:case t.UNIQUE:case t.GENERATED:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericOptionList(){let e,s=new Sr(this.context,this.state);this.enterRule(s,304,t.RULE_genericOptionList);try{for(this.enterOuterAlt(s,1),this.state=3455,this.genericOptionElement(),this.state=3460,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=3456,this.match(t.COMMA),this.state=3457,this.genericOptionElement(),this.state=3462,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterGenericOptions(){let e=new lr(this.context,this.state);this.enterRule(e,306,t.RULE_alterGenericOptions);try{this.enterOuterAlt(e,1),this.state=3463,this.match(t.OPTIONS),this.state=3464,this.match(t.OPEN_PAREN),this.state=3465,this.alterGenericOptionList(),this.state=3466,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterGenericOptionList(){let e,s=new Or(this.context,this.state);this.enterRule(s,308,t.RULE_alterGenericOptionList);try{for(this.enterOuterAlt(s,1),this.state=3468,this.alterGenericOptionElem(),this.state=3473,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=3469,this.match(t.COMMA),this.state=3470,this.alterGenericOptionElem(),this.state=3475,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterGenericOptionElem(){let e=new Ir(this.context,this.state);this.enterRule(e,310,t.RULE_alterGenericOptionElem);try{switch(this.state=3483,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,167,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3476,this.genericOptionElement();break;case 2:this.enterOuterAlt(e,2),this.state=3477,this.match(t.SET),this.state=3478,this.genericOptionElement();break;case 3:this.enterOuterAlt(e,3),this.state=3479,this.match(t.ADD_P),this.state=3480,this.genericOptionElement();break;case 4:this.enterOuterAlt(e,4),this.state=3481,this.match(t.DROP),this.state=3482,this.genericOptionName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericOptionElement(){let e=new ur(this.context,this.state);this.enterRule(e,312,t.RULE_genericOptionElement);try{this.enterOuterAlt(e,1),this.state=3485,this.genericOptionName(),this.state=3486,this.genericOptionArgument()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericOptionName(){let e=new Nr(this.context,this.state);this.enterRule(e,314,t.RULE_genericOptionName);try{this.enterOuterAlt(e,1),this.state=3488,this.columnLabel()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericOptionArgument(){let e=new Lr(this.context,this.state);this.enterRule(e,316,t.RULE_genericOptionArgument);try{this.enterOuterAlt(e,1),this.state=3490,this.sconst()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createForeignServerStatement(){let e,s=new Cr(this.context,this.state);this.enterRule(s,318,t.RULE_createForeignServerStatement);try{switch(this.state=3521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,170,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3492,this.match(t.CREATE),this.state=3493,this.match(t.SERVER),this.state=3494,this.name(),this.state=3495,this.optionalType(),this.state=3497,this.errorHandler.sync(this),e=this.tokenStream.LA(1),368===e&&(this.state=3496,this.foreignServerVersion()),this.state=3499,this.match(t.FOREIGN),this.state=3500,this.match(t.DATA_P),this.state=3501,this.match(t.WRAPPER),this.state=3502,this.name(),this.state=3503,this.createGenericOptions();break;case 2:this.enterOuterAlt(s,2),this.state=3505,this.match(t.CREATE),this.state=3506,this.match(t.SERVER),this.state=3507,this.match(t.IF_P),this.state=3508,this.match(t.NOT),this.state=3509,this.match(t.EXISTS),this.state=3510,this.name(),this.state=3511,this.optionalType(),this.state=3513,this.errorHandler.sync(this),e=this.tokenStream.LA(1),368===e&&(this.state=3512,this.foreignServerVersion()),this.state=3515,this.match(t.FOREIGN),this.state=3516,this.match(t.DATA_P),this.state=3517,this.match(t.WRAPPER),this.state=3518,this.name(),this.state=3519,this.createGenericOptions()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalType(){let e=new _r(this.context,this.state);this.enterRule(e,320,t.RULE_optionalType);try{switch(this.state=3526,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TYPE_P:this.enterOuterAlt(e,1),this.state=3523,this.match(t.TYPE_P),this.state=3524,this.sconst();break;case t.FOREIGN:case t.VERSION_P:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}foreignServerVersion(){let e=new Pr(this.context,this.state);this.enterRule(e,322,t.RULE_foreignServerVersion);try{switch(this.enterOuterAlt(e,1),this.state=3528,this.match(t.VERSION_P),this.state=3531,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.state=3529,this.sconst();break;case t.NULL_P:this.state=3530,this.match(t.NULL_P);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterForeignServerStatement(){let e,s=new Mr(this.context,this.state);this.enterRule(s,324,t.RULE_alterForeignServerStatement);try{switch(this.enterOuterAlt(s,1),this.state=3533,this.match(t.ALTER),this.state=3534,this.match(t.SERVER),this.state=3535,this.name(),this.state=3541,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPTIONS:this.state=3536,this.alterGenericOptions();break;case t.VERSION_P:this.state=3537,this.foreignServerVersion(),this.state=3539,this.errorHandler.sync(this),e=this.tokenStream.LA(1),273===e&&(this.state=3538,this.alterGenericOptions());break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createForeignTableStatement(){let e=new dr(this.context,this.state);this.enterRule(e,326,t.RULE_createForeignTableStatement);try{switch(this.state=3599,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,175,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3543,this.match(t.CREATE),this.state=3544,this.match(t.FOREIGN),this.state=3545,this.match(t.TABLE),this.state=3546,this.qualifiedName(),this.state=3547,this.match(t.OPEN_PAREN),this.state=3548,this.optionalTableElementList(),this.state=3549,this.match(t.CLOSE_PAREN),this.state=3550,this.inheritClause(),this.state=3551,this.match(t.SERVER),this.state=3552,this.name(),this.state=3553,this.createGenericOptions();break;case 2:this.enterOuterAlt(e,2),this.state=3555,this.match(t.CREATE),this.state=3556,this.match(t.FOREIGN),this.state=3557,this.match(t.TABLE),this.state=3558,this.match(t.IF_P),this.state=3559,this.match(t.NOT),this.state=3560,this.match(t.EXISTS),this.state=3561,this.qualifiedName(),this.state=3562,this.match(t.OPEN_PAREN),this.state=3563,this.optionalTableElementList(),this.state=3564,this.match(t.CLOSE_PAREN),this.state=3565,this.inheritClause(),this.state=3566,this.match(t.SERVER),this.state=3567,this.name(),this.state=3568,this.createGenericOptions();break;case 3:this.enterOuterAlt(e,3),this.state=3570,this.match(t.CREATE),this.state=3571,this.match(t.FOREIGN),this.state=3572,this.match(t.TABLE),this.state=3573,this.qualifiedName(),this.state=3574,this.match(t.PARTITION),this.state=3575,this.match(t.OF),this.state=3576,this.qualifiedName(),this.state=3577,this.optionalTypedTableElementList(),this.state=3578,this.partitionBoundSpecification(),this.state=3579,this.match(t.SERVER),this.state=3580,this.name(),this.state=3581,this.createGenericOptions();break;case 4:this.enterOuterAlt(e,4),this.state=3583,this.match(t.CREATE),this.state=3584,this.match(t.FOREIGN),this.state=3585,this.match(t.TABLE),this.state=3586,this.match(t.IF_P),this.state=3587,this.match(t.NOT),this.state=3588,this.match(t.EXISTS),this.state=3589,this.qualifiedName(),this.state=3590,this.match(t.PARTITION),this.state=3591,this.match(t.OF),this.state=3592,this.qualifiedName(),this.state=3593,this.optionalTypedTableElementList(),this.state=3594,this.partitionBoundSpecification(),this.state=3595,this.match(t.SERVER),this.state=3596,this.name(),this.state=3597,this.createGenericOptions()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}importForeignSchemaStatement(){let e=new Ur(this.context,this.state);this.enterRule(e,328,t.RULE_importForeignSchemaStatement);try{this.enterOuterAlt(e,1),this.state=3601,this.match(t.IMPORT_P),this.state=3602,this.match(t.FOREIGN),this.state=3603,this.match(t.SCHEMA),this.state=3604,this.name(),this.state=3605,this.importQualification(),this.state=3606,this.match(t.FROM),this.state=3607,this.match(t.SERVER),this.state=3608,this.name(),this.state=3609,this.match(t.INTO),this.state=3610,this.name(),this.state=3611,this.createGenericOptions()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}importQualificationType(){let e=new mr(this.context,this.state);this.enterRule(e,330,t.RULE_importQualificationType);try{switch(this.state=3616,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LIMIT:this.enterOuterAlt(e,1),this.state=3613,this.match(t.LIMIT),this.state=3614,this.match(t.TO);break;case t.EXCEPT:this.enterOuterAlt(e,2),this.state=3615,this.match(t.EXCEPT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}importQualification(){let e=new Dr(this.context,this.state);this.enterRule(e,332,t.RULE_importQualification);try{switch(this.state=3624,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EXCEPT:case t.LIMIT:this.enterOuterAlt(e,1),this.state=3618,this.importQualificationType(),this.state=3619,this.match(t.OPEN_PAREN),this.state=3620,this.relationExpressionList(),this.state=3621,this.match(t.CLOSE_PAREN);break;case t.FROM:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createUserMappingStatement(){let e=new pr(this.context,this.state);this.enterRule(e,334,t.RULE_createUserMappingStatement);try{switch(this.state=3647,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,178,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3626,this.match(t.CREATE),this.state=3627,this.match(t.USER),this.state=3628,this.match(t.MAPPING),this.state=3629,this.match(t.FOR),this.state=3630,this.authIdentifier(),this.state=3631,this.match(t.SERVER),this.state=3632,this.name(),this.state=3633,this.createGenericOptions();break;case 2:this.enterOuterAlt(e,2),this.state=3635,this.match(t.CREATE),this.state=3636,this.match(t.USER),this.state=3637,this.match(t.MAPPING),this.state=3638,this.match(t.IF_P),this.state=3639,this.match(t.NOT),this.state=3640,this.match(t.EXISTS),this.state=3641,this.match(t.FOR),this.state=3642,this.authIdentifier(),this.state=3643,this.match(t.SERVER),this.state=3644,this.name(),this.state=3645,this.createGenericOptions()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}authIdentifier(){let e=new gr(this.context,this.state);this.enterRule(e,336,t.RULE_authIdentifier);try{switch(this.state=3651,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FETCH:case t.SESSION_USER:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=3649,this.roleName();break;case t.USER:this.enterOuterAlt(e,2),this.state=3650,this.match(t.USER);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropUserMappingStatement(){let e=new xr(this.context,this.state);this.enterRule(e,338,t.RULE_dropUserMappingStatement);try{switch(this.state=3671,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,180,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3653,this.match(t.DROP),this.state=3654,this.match(t.USER),this.state=3655,this.match(t.MAPPING),this.state=3656,this.match(t.FOR),this.state=3657,this.authIdentifier(),this.state=3658,this.match(t.SERVER),this.state=3659,this.name();break;case 2:this.enterOuterAlt(e,2),this.state=3661,this.match(t.DROP),this.state=3662,this.match(t.USER),this.state=3663,this.match(t.MAPPING),this.state=3664,this.match(t.IF_P),this.state=3665,this.match(t.EXISTS),this.state=3666,this.match(t.FOR),this.state=3667,this.authIdentifier(),this.state=3668,this.match(t.SERVER),this.state=3669,this.name()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterUserMappingStatement(){let e=new kr(this.context,this.state);this.enterRule(e,340,t.RULE_alterUserMappingStatement);try{this.enterOuterAlt(e,1),this.state=3673,this.match(t.ALTER),this.state=3674,this.match(t.USER),this.state=3675,this.match(t.MAPPING),this.state=3676,this.match(t.FOR),this.state=3677,this.authIdentifier(),this.state=3678,this.match(t.SERVER),this.state=3679,this.name(),this.state=3680,this.alterGenericOptions()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createPolicyStatement(){let e=new Hr(this.context,this.state);this.enterRule(e,342,t.RULE_createPolicyStatement);try{this.enterOuterAlt(e,1),this.state=3682,this.match(t.CREATE),this.state=3683,this.match(t.POLICY),this.state=3684,this.name(),this.state=3685,this.match(t.ON),this.state=3686,this.qualifiedName(),this.state=3687,this.rowSecurityDefaultPermissive(),this.state=3688,this.rowSecurityDefaultForCmd(),this.state=3689,this.rowSecurityOptionalToUser(),this.state=3690,this.rowSecurityOptionalExpression(),this.state=3691,this.rowSecurityOptionalWithCheck()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterPolicyStatement(){let e=new Gr(this.context,this.state);this.enterRule(e,344,t.RULE_alterPolicyStatement);try{this.enterOuterAlt(e,1),this.state=3693,this.match(t.ALTER),this.state=3694,this.match(t.POLICY),this.state=3695,this.name(),this.state=3696,this.match(t.ON),this.state=3697,this.qualifiedName(),this.state=3698,this.rowSecurityOptionalToUser(),this.state=3699,this.rowSecurityOptionalExpression(),this.state=3700,this.rowSecurityOptionalWithCheck()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowSecurityOptionalExpression(){let e=new Fr(this.context,this.state);this.enterRule(e,346,t.RULE_rowSecurityOptionalExpression);try{switch(this.state=3708,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=3702,this.match(t.USING),this.state=3703,this.match(t.OPEN_PAREN),this.state=3704,this.expression1(),this.state=3705,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.SEMI:case t.INTO:case t.WITH:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowSecurityOptionalWithCheck(){let e=new vr(this.context,this.state);this.enterRule(e,348,t.RULE_rowSecurityOptionalWithCheck);try{switch(this.state=3717,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=3710,this.match(t.WITH),this.state=3711,this.match(t.CHECK),this.state=3712,this.match(t.OPEN_PAREN),this.state=3713,this.expression1(),this.state=3714,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.SEMI:case t.INTO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowSecurityOptionalToUser(){let e=new Br(this.context,this.state);this.enterRule(e,350,t.RULE_rowSecurityOptionalToUser);try{switch(this.state=3722,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TO:this.enterOuterAlt(e,1),this.state=3719,this.match(t.TO),this.state=3720,this.roleNameList();break;case t.EOF:case t.SEMI:case t.INTO:case t.USING:case t.WITH:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowSecurityDefaultPermissive(){let e=new yr(this.context,this.state);this.enterRule(e,352,t.RULE_rowSecurityDefaultPermissive);try{switch(this.state=3727,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.enterOuterAlt(e,1),this.state=3724,this.match(t.AS),this.state=3725,this.identifier();break;case t.EOF:case t.SEMI:case t.FOR:case t.INTO:case t.TO:case t.USING:case t.WITH:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowSecurityDefaultForCmd(){let e=new fr(this.context,this.state);this.enterRule(e,354,t.RULE_rowSecurityDefaultForCmd);try{switch(this.state=3732,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(e,1),this.state=3729,this.match(t.FOR),this.state=3730,this.rowSecurityCommand();break;case t.EOF:case t.SEMI:case t.INTO:case t.TO:case t.USING:case t.WITH:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowSecurityCommand(){let e,s=new Yr(this.context,this.state);this.enterRule(s,356,t.RULE_rowSecurityCommand);try{this.enterOuterAlt(s,1),this.state=3734,e=this.tokenStream.LA(1),30===e||88===e||182===e||232===e||362===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createAccessMethodStatement(){let e=new wr(this.context,this.state);this.enterRule(e,358,t.RULE_createAccessMethodStatement);try{this.enterOuterAlt(e,1),this.state=3736,this.match(t.CREATE),this.state=3737,this.match(t.ACCESS),this.state=3738,this.match(t.METHOD),this.state=3739,this.name(),this.state=3740,this.match(t.TYPE_P),this.state=3741,this.accessMethodType(),this.state=3742,this.match(t.HANDLER),this.state=3743,this.handlerName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}accessMethodType(){let e,s=new br(this.context,this.state);this.enterRule(s,360,t.RULE_accessMethodType);try{this.enterOuterAlt(s,1),this.state=3745,e=this.tokenStream.LA(1),92===e||226===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createTriggerStatement(){let e=new Wr(this.context,this.state);this.enterRule(e,362,t.RULE_createTriggerStatement);try{switch(this.state=3785,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,186,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3747,this.match(t.CREATE),this.state=3748,this.match(t.TRIGGER),this.state=3749,this.name(),this.state=3750,this.triggerActionTime(),this.state=3751,this.triggerEvents(),this.state=3752,this.match(t.ON),this.state=3753,this.qualifiedName(),this.state=3754,this.triggerReferencing(),this.state=3755,this.triggerForSpec(),this.state=3756,this.triggerWhen(),this.state=3757,this.match(t.EXECUTE),this.state=3758,this.functionOrProcedure(),this.state=3759,this.functionName(),this.state=3760,this.match(t.OPEN_PAREN),this.state=3761,this.triggerFunctionArguments(),this.state=3762,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2),this.state=3764,this.match(t.CREATE),this.state=3765,this.match(t.CONSTRAINT),this.state=3766,this.match(t.TRIGGER),this.state=3767,this.name(),this.state=3768,this.match(t.AFTER),this.state=3769,this.triggerEvents(),this.state=3770,this.match(t.ON),this.state=3771,this.qualifiedName(),this.state=3772,this.optionalConstraintFromTable(),this.state=3773,this.constraintAttributeSpecification(),this.state=3774,this.match(t.FOR),this.state=3775,this.match(t.EACH),this.state=3776,this.match(t.ROW),this.state=3777,this.triggerWhen(),this.state=3778,this.match(t.EXECUTE),this.state=3779,this.functionOrProcedure(),this.state=3780,this.functionName(),this.state=3781,this.match(t.OPEN_PAREN),this.state=3782,this.triggerFunctionArguments(),this.state=3783,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}triggerActionTime(){let e=new Vr(this.context,this.state);this.enterRule(e,364,t.RULE_triggerActionTime);try{switch(this.state=3791,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BEFORE:this.enterOuterAlt(e,1),this.state=3787,this.match(t.BEFORE);break;case t.AFTER:this.enterOuterAlt(e,2),this.state=3788,this.match(t.AFTER);break;case t.INSTEAD:this.enterOuterAlt(e,3),this.state=3789,this.match(t.INSTEAD),this.state=3790,this.match(t.OF);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}triggerEvents(){let e,s=new Xr(this.context,this.state);this.enterRule(s,366,t.RULE_triggerEvents);try{for(this.enterOuterAlt(s,1),this.state=3793,this.triggerOneEvent(),this.state=3798,this.errorHandler.sync(this),e=this.tokenStream.LA(1);82===e;)this.state=3794,this.match(t.OR),this.state=3795,this.triggerOneEvent(),this.state=3800,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerOneEvent(){let e=new Kr(this.context,this.state);this.enterRule(e,368,t.RULE_triggerOneEvent);try{switch(this.state=3808,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,189,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3801,this.match(t.INSERT);break;case 2:this.enterOuterAlt(e,2),this.state=3802,this.match(t.DELETE_P);break;case 3:this.enterOuterAlt(e,3),this.state=3803,this.match(t.UPDATE);break;case 4:this.enterOuterAlt(e,4),this.state=3804,this.match(t.UPDATE),this.state=3805,this.match(t.OF),this.state=3806,this.columnList();break;case 5:this.enterOuterAlt(e,5),this.state=3807,this.match(t.TRUNCATE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}triggerReferencing(){let e=new Qr(this.context,this.state);this.enterRule(e,370,t.RULE_triggerReferencing);try{switch(this.state=3813,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.REFERENCING:this.enterOuterAlt(e,1),this.state=3810,this.match(t.REFERENCING),this.state=3811,this.triggerTransitions();break;case t.FOR:case t.WHEN:case t.EXECUTE:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}triggerTransitions(){let e,s=new Jr(this.context,this.state);this.enterRule(s,372,t.RULE_triggerTransitions);try{this.enterOuterAlt(s,1),this.state=3816,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3815,this.triggerTransition(),this.state=3818,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(448===e||449===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerTransition(){let e=new Zr(this.context,this.state);this.enterRule(e,374,t.RULE_triggerTransition);try{this.enterOuterAlt(e,1),this.state=3820,this.transitionOldOrNew(),this.state=3821,this.transitionRowOrTable(),this.state=3822,this.optionalAs(),this.state=3823,this.transitionRelName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transitionOldOrNew(){let e,s=new qr(this.context,this.state);this.enterRule(s,376,t.RULE_transitionOldOrNew);try{this.enterOuterAlt(s,1),this.state=3825,e=this.tokenStream.LA(1),448===e||449===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}transitionRowOrTable(){let e,s=new jr(this.context,this.state);this.enterRule(s,378,t.RULE_transitionRowOrTable);try{this.enterOuterAlt(s,1),this.state=3827,e=this.tokenStream.LA(1),92===e||407===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}transitionRelName(){let e=new zr(this.context,this.state);this.enterRule(e,380,t.RULE_transitionRelName);try{this.enterOuterAlt(e,1),this.state=3829,this.columnId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}triggerForSpec(){let e,s=new $r(this.context,this.state);this.enterRule(s,382,t.RULE_triggerForSpec);try{switch(this.state=3837,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(s,1),this.state=3831,this.match(t.FOR),this.state=3833,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=3832,this.match(t.EACH)),this.state=3835,this.triggerForType();break;case t.WHEN:case t.EXECUTE:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerForType(){let e,s=new tc(this.context,this.state);this.enterRule(s,384,t.RULE_triggerForType);try{this.enterOuterAlt(s,1),this.state=3839,e=this.tokenStream.LA(1),334===e||407===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerWhen(){let e=new ec(this.context,this.state);this.enterRule(e,386,t.RULE_triggerWhen);try{switch(this.state=3847,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHEN:this.enterOuterAlt(e,1),this.state=3841,this.match(t.WHEN),this.state=3842,this.match(t.OPEN_PAREN),this.state=3843,this.expression1(),this.state=3844,this.match(t.CLOSE_PAREN);break;case t.EXECUTE:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionOrProcedure(){let e,s=new sc(this.context,this.state);this.enterRule(s,388,t.RULE_functionOrProcedure);try{this.enterOuterAlt(s,1),this.state=3849,e=this.tokenStream.LA(1),211===e||289===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerFunctionArguments(){let e,s=new ac(this.context,this.state);this.enterRule(s,390,t.RULE_triggerFunctionArguments);try{switch(this.enterOuterAlt(s,1),this.state=3853,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALL:case t.ANALYSE:case t.ANALYZE:case t.AND:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASYMMETRIC:case t.BOTH:case t.CASE:case t.CAST:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CREATE:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DEFERRABLE:case t.DESC:case t.DISTINCT:case t.DO:case t.ELSE:case t.EXCEPT:case t.FALSE_P:case t.FETCH:case t.FOR:case t.FOREIGN:case t.FROM:case t.GRANT:case t.GROUP_P:case t.HAVING:case t.IN_P:case t.INITIALLY:case t.INTERSECT:case t.LATERAL_P:case t.LEADING:case t.LIMIT:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.OFFSET:case t.ON:case t.ONLY:case t.OR:case t.ORDER:case t.PLACING:case t.PRIMARY:case t.REFERENCES:case t.RETURNING:case t.SELECT:case t.SESSION_USER:case t.SOME:case t.SYMMETRIC:case t.TABLE:case t.THEN:case t.TO:case t.TRAILING:case t.TRUE_P:case t.UNION:case t.UNIQUE:case t.USER:case t.USING:case t.VARIADIC:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.END_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.state=3851,this.triggerFunctionArgument();break;case t.CLOSE_PAREN:case t.COMMA:break;default:throw new he(this)}for(this.state=3859,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=3855,this.match(t.COMMA),this.state=3856,this.triggerFunctionArgument(),this.state=3861,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerFunctionArgument(){let e=new ic(this.context,this.state);this.enterRule(e,392,t.RULE_triggerFunctionArgument);try{switch(this.state=3866,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.Integral:this.enterOuterAlt(e,1),this.state=3862,this.iconst();break;case t.Numeric:this.enterOuterAlt(e,2),this.state=3863,this.fconst();break;case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,3),this.state=3864,this.sconst();break;case t.ALL:case t.ANALYSE:case t.ANALYZE:case t.AND:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASYMMETRIC:case t.BOTH:case t.CASE:case t.CAST:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CREATE:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DEFERRABLE:case t.DESC:case t.DISTINCT:case t.DO:case t.ELSE:case t.EXCEPT:case t.FALSE_P:case t.FETCH:case t.FOR:case t.FOREIGN:case t.FROM:case t.GRANT:case t.GROUP_P:case t.HAVING:case t.IN_P:case t.INITIALLY:case t.INTERSECT:case t.LATERAL_P:case t.LEADING:case t.LIMIT:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.OFFSET:case t.ON:case t.ONLY:case t.OR:case t.ORDER:case t.PLACING:case t.PRIMARY:case t.REFERENCES:case t.RETURNING:case t.SELECT:case t.SESSION_USER:case t.SOME:case t.SYMMETRIC:case t.TABLE:case t.THEN:case t.TO:case t.TRAILING:case t.TRUE_P:case t.UNION:case t.UNIQUE:case t.USER:case t.USING:case t.VARIADIC:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.END_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,4),this.state=3865,this.columnLabel();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalConstraintFromTable(){let e=new rc(this.context,this.state);this.enterRule(e,394,t.RULE_optionalConstraintFromTable);try{switch(this.state=3871,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FROM:this.enterOuterAlt(e,1),this.state=3868,this.match(t.FROM),this.state=3869,this.qualifiedName();break;case t.DEFERRABLE:case t.FOR:case t.INITIALLY:case t.NOT:case t.NO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintAttributeSpecification(){let e,s=new cc(this.context,this.state);this.enterRule(s,396,t.RULE_constraintAttributeSpecification);try{for(this.enterOuterAlt(s,1),this.state=3876,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-54&-32)&&1<<e-54&8421377||262===e;)this.state=3873,this.constraintAttributeElement(),this.state=3878,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}constraintAttributeElement(){let e=new nc(this.context,this.state);this.enterRule(e,398,t.RULE_constraintAttributeElement);try{switch(this.state=3890,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3879,this.match(t.NOT),this.state=3880,this.match(t.DEFERRABLE);break;case 2:this.enterOuterAlt(e,2),this.state=3881,this.match(t.DEFERRABLE);break;case 3:this.enterOuterAlt(e,3),this.state=3882,this.match(t.INITIALLY),this.state=3883,this.match(t.IMMEDIATE);break;case 4:this.enterOuterAlt(e,4),this.state=3884,this.match(t.INITIALLY),this.state=3885,this.match(t.DEFERRED);break;case 5:this.enterOuterAlt(e,5),this.state=3886,this.match(t.NOT),this.state=3887,this.match(t.VALID);break;case 6:this.enterOuterAlt(e,6),this.state=3888,this.match(t.NO),this.state=3889,this.match(t.INHERIT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createEventTriggerStatement(){let e=new hc(this.context,this.state);this.enterRule(e,400,t.RULE_createEventTriggerStatement);try{switch(this.state=3918,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,201,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3892,this.match(t.CREATE),this.state=3893,this.match(t.EVENT),this.state=3894,this.match(t.TRIGGER),this.state=3895,this.name(),this.state=3896,this.match(t.ON),this.state=3897,this.columnLabel(),this.state=3898,this.match(t.EXECUTE),this.state=3899,this.functionOrProcedure(),this.state=3900,this.functionName(),this.state=3901,this.match(t.OPEN_PAREN),this.state=3902,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2),this.state=3904,this.match(t.CREATE),this.state=3905,this.match(t.EVENT),this.state=3906,this.match(t.TRIGGER),this.state=3907,this.name(),this.state=3908,this.match(t.ON),this.state=3909,this.columnLabel(),this.state=3910,this.match(t.WHEN),this.state=3911,this.eventTriggerWhenList(),this.state=3912,this.match(t.EXECUTE),this.state=3913,this.functionOrProcedure(),this.state=3914,this.functionName(),this.state=3915,this.match(t.OPEN_PAREN),this.state=3916,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}eventTriggerWhenList(){let e,s=new Ec(this.context,this.state);this.enterRule(s,402,t.RULE_eventTriggerWhenList);try{for(this.enterOuterAlt(s,1),this.state=3920,this.eventTriggerWhenItem(),this.state=3925,this.errorHandler.sync(this),e=this.tokenStream.LA(1);33===e;)this.state=3921,this.match(t.AND),this.state=3922,this.eventTriggerWhenItem(),this.state=3927,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}eventTriggerWhenItem(){let e=new Tc(this.context,this.state);this.enterRule(e,404,t.RULE_eventTriggerWhenItem);try{this.enterOuterAlt(e,1),this.state=3928,this.columnId(),this.state=3929,this.match(t.IN_P),this.state=3930,this.match(t.OPEN_PAREN),this.state=3931,this.eventTriggerValueList(),this.state=3932,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}eventTriggerValueList(){let e,s=new oc(this.context,this.state);this.enterRule(s,406,t.RULE_eventTriggerValueList);try{for(this.enterOuterAlt(s,1),this.state=3934,this.sconst(),this.state=3939,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=3935,this.match(t.COMMA),this.state=3936,this.sconst(),this.state=3941,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterEventTriggerStatement(){let e=new Rc(this.context,this.state);this.enterRule(e,408,t.RULE_alterEventTriggerStatement);try{this.enterOuterAlt(e,1),this.state=3942,this.match(t.ALTER),this.state=3943,this.match(t.EVENT),this.state=3944,this.match(t.TRIGGER),this.state=3945,this.name(),this.state=3946,this.enableTrigger()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}enableTrigger(){let e=new Ac(this.context,this.state);this.enterRule(e,410,t.RULE_enableTrigger);try{switch(this.state=3954,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,204,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3948,this.match(t.ENABLE_P);break;case 2:this.enterOuterAlt(e,2),this.state=3949,this.match(t.ENABLE_P),this.state=3950,this.match(t.REPLICA);break;case 3:this.enterOuterAlt(e,3),this.state=3951,this.match(t.ENABLE_P),this.state=3952,this.match(t.ALWAYS);break;case 4:this.enterOuterAlt(e,4),this.state=3953,this.match(t.DISABLE_P)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createAssertionStatement(){let e=new Sc(this.context,this.state);this.enterRule(e,412,t.RULE_createAssertionStatement);try{this.enterOuterAlt(e,1),this.state=3956,this.match(t.CREATE),this.state=3957,this.match(t.ASSERTION),this.state=3958,this.anyName(),this.state=3959,this.match(t.CHECK),this.state=3960,this.match(t.OPEN_PAREN),this.state=3961,this.expression1(),this.state=3962,this.match(t.CLOSE_PAREN),this.state=3963,this.constraintAttributeSpecification()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}defineStatement(){let e,s=new lc(this.context,this.state);this.enterRule(s,414,t.RULE_defineStatement);try{switch(this.state=4073,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,206,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3965,this.match(t.CREATE),this.state=3966,this.optionalOrReplace(),this.state=3967,this.match(t.AGGREGATE),this.state=3968,this.functionName(),this.state=3969,this.aggregateArguments(),this.state=3970,this.definition();break;case 2:this.enterOuterAlt(s,2),this.state=3972,this.match(t.CREATE),this.state=3973,this.optionalOrReplace(),this.state=3974,this.match(t.AGGREGATE),this.state=3975,this.functionName(),this.state=3976,this.oldAggregateDefinition();break;case 3:this.enterOuterAlt(s,3),this.state=3978,this.match(t.CREATE),this.state=3979,this.match(t.OPERATOR),this.state=3980,this.anyOperator(),this.state=3981,this.definition();break;case 4:this.enterOuterAlt(s,4),this.state=3983,this.match(t.CREATE),this.state=3984,this.match(t.TYPE_P),this.state=3985,this.anyName(),this.state=3986,this.definition();break;case 5:this.enterOuterAlt(s,5),this.state=3988,this.match(t.CREATE),this.state=3989,this.match(t.TYPE_P),this.state=3990,this.anyName();break;case 6:this.enterOuterAlt(s,6),this.state=3991,this.match(t.CREATE),this.state=3992,this.match(t.TYPE_P),this.state=3993,this.anyName(),this.state=3994,this.match(t.AS),this.state=3995,this.match(t.OPEN_PAREN),this.state=3996,this.optionalTableFunctionElementList(),this.state=3997,this.match(t.CLOSE_PAREN);break;case 7:this.enterOuterAlt(s,7),this.state=3999,this.match(t.CREATE),this.state=4e3,this.match(t.TYPE_P),this.state=4001,this.anyName(),this.state=4002,this.match(t.AS),this.state=4003,this.match(t.ENUM_P),this.state=4004,this.match(t.OPEN_PAREN),this.state=4006,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-645&-32)&&1<<e-645&67108885&&(this.state=4005,this.enumValueList()),this.state=4008,this.match(t.CLOSE_PAREN);break;case 8:this.enterOuterAlt(s,8),this.state=4010,this.match(t.CREATE),this.state=4011,this.match(t.TYPE_P),this.state=4012,this.anyName(),this.state=4013,this.match(t.AS),this.state=4014,this.match(t.RANGE),this.state=4015,this.definition();break;case 9:this.enterOuterAlt(s,9),this.state=4017,this.match(t.CREATE),this.state=4018,this.match(t.TEXT_P),this.state=4019,this.match(t.SEARCH),this.state=4020,this.match(t.PARSER),this.state=4021,this.anyName(),this.state=4022,this.definition();break;case 10:this.enterOuterAlt(s,10),this.state=4024,this.match(t.CREATE),this.state=4025,this.match(t.TEXT_P),this.state=4026,this.match(t.SEARCH),this.state=4027,this.match(t.DICTIONARY),this.state=4028,this.anyName(),this.state=4029,this.definition();break;case 11:this.enterOuterAlt(s,11),this.state=4031,this.match(t.CREATE),this.state=4032,this.match(t.TEXT_P),this.state=4033,this.match(t.SEARCH),this.state=4034,this.match(t.TEMPLATE),this.state=4035,this.anyName(),this.state=4036,this.definition();break;case 12:this.enterOuterAlt(s,12),this.state=4038,this.match(t.CREATE),this.state=4039,this.match(t.TEXT_P),this.state=4040,this.match(t.SEARCH),this.state=4041,this.match(t.CONFIGURATION),this.state=4042,this.anyName(),this.state=4043,this.definition();break;case 13:this.enterOuterAlt(s,13),this.state=4045,this.match(t.CREATE),this.state=4046,this.match(t.COLLATION),this.state=4047,this.anyName(),this.state=4048,this.definition();break;case 14:this.enterOuterAlt(s,14),this.state=4050,this.match(t.CREATE),this.state=4051,this.match(t.COLLATION),this.state=4052,this.match(t.IF_P),this.state=4053,this.match(t.NOT),this.state=4054,this.match(t.EXISTS),this.state=4055,this.anyName(),this.state=4056,this.definition();break;case 15:this.enterOuterAlt(s,15),this.state=4058,this.match(t.CREATE),this.state=4059,this.match(t.COLLATION),this.state=4060,this.anyName(),this.state=4061,this.match(t.FROM),this.state=4062,this.anyName();break;case 16:this.enterOuterAlt(s,16),this.state=4064,this.match(t.CREATE),this.state=4065,this.match(t.COLLATION),this.state=4066,this.match(t.IF_P),this.state=4067,this.match(t.NOT),this.state=4068,this.match(t.EXISTS),this.state=4069,this.anyName(),this.state=4070,this.match(t.FROM),this.state=4071,this.anyName()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}definition(){let e,s=new Oc(this.context,this.state);this.enterRule(s,416,t.RULE_definition);try{for(this.enterOuterAlt(s,1),this.state=4075,this.match(t.OPEN_PAREN),this.state=4076,this.definitionElement(),this.state=4081,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4077,this.match(t.COMMA),this.state=4078,this.definitionElement(),this.state=4083,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4084,this.match(t.CLOSE_PAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}definitionElement(){let e,s=new Ic(this.context,this.state);this.enterRule(s,418,t.RULE_definitionElement);try{this.enterOuterAlt(s,1),this.state=4086,this.columnLabel(),this.state=4089,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=4087,this.match(t.EQUAL),this.state=4088,this.definitionArgument())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}definitionArgument(){let e=new uc(this.context,this.state);this.enterRule(e,420,t.RULE_definitionArgument);try{switch(this.state=4097,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,209,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4091,this.functionType();break;case 2:this.enterOuterAlt(e,2),this.state=4092,this.reservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=4093,this.allOperatorQualifier();break;case 4:this.enterOuterAlt(e,4),this.state=4094,this.numericOnly();break;case 5:this.enterOuterAlt(e,5),this.state=4095,this.sconst();break;case 6:this.enterOuterAlt(e,6),this.state=4096,this.match(t.NONE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}oldAggregateDefinition(){let e,s=new Nc(this.context,this.state);this.enterRule(s,422,t.RULE_oldAggregateDefinition);try{for(this.enterOuterAlt(s,1),this.state=4099,this.match(t.OPEN_PAREN),this.state=4100,this.oldAggregateElement(),this.state=4105,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4101,this.match(t.COMMA),this.state=4102,this.oldAggregateElement(),this.state=4107,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4108,this.match(t.CLOSE_PAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}oldAggregateElement(){let e=new Lc(this.context,this.state);this.enterRule(e,424,t.RULE_oldAggregateElement);try{this.enterOuterAlt(e,1),this.state=4110,this.identifier(),this.state=4111,this.match(t.EQUAL),this.state=4112,this.definitionArgument()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}enumValueList(){let e,s=new Cc(this.context,this.state);this.enterRule(s,426,t.RULE_enumValueList);try{for(this.enterOuterAlt(s,1),this.state=4114,this.sconst(),this.state=4119,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4115,this.match(t.COMMA),this.state=4116,this.sconst(),this.state=4121,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterEnumStatement(){let e=new _c(this.context,this.state);this.enterRule(e,428,t.RULE_alterEnumStatement);try{switch(this.state=4159,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,212,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4122,this.match(t.ALTER),this.state=4123,this.match(t.TYPE_P),this.state=4124,this.anyName(),this.state=4125,this.match(t.ADD_P),this.state=4126,this.match(t.VALUE_P),this.state=4127,this.optionalIfNotExists(),this.state=4128,this.sconst();break;case 2:this.enterOuterAlt(e,2),this.state=4130,this.match(t.ALTER),this.state=4131,this.match(t.TYPE_P),this.state=4132,this.anyName(),this.state=4133,this.match(t.ADD_P),this.state=4134,this.match(t.VALUE_P),this.state=4135,this.optionalIfNotExists(),this.state=4136,this.sconst(),this.state=4137,this.match(t.BEFORE),this.state=4138,this.sconst();break;case 3:this.enterOuterAlt(e,3),this.state=4140,this.match(t.ALTER),this.state=4141,this.match(t.TYPE_P),this.state=4142,this.anyName(),this.state=4143,this.match(t.ADD_P),this.state=4144,this.match(t.VALUE_P),this.state=4145,this.optionalIfNotExists(),this.state=4146,this.sconst(),this.state=4147,this.match(t.AFTER),this.state=4148,this.sconst();break;case 4:this.enterOuterAlt(e,4),this.state=4150,this.match(t.ALTER),this.state=4151,this.match(t.TYPE_P),this.state=4152,this.anyName(),this.state=4153,this.match(t.RENAME),this.state=4154,this.match(t.VALUE_P),this.state=4155,this.sconst(),this.state=4156,this.match(t.TO),this.state=4157,this.sconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalIfNotExists(){let e=new Pc(this.context,this.state);this.enterRule(e,430,t.RULE_optionalIfNotExists);try{switch(this.state=4165,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IF_P:this.enterOuterAlt(e,1),this.state=4161,this.match(t.IF_P),this.state=4162,this.match(t.NOT),this.state=4163,this.match(t.EXISTS);break;case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createOperatorClassStatement(){let e,s=new Mc(this.context,this.state);this.enterRule(s,432,t.RULE_createOperatorClassStatement);try{this.enterOuterAlt(s,1),this.state=4167,this.match(t.CREATE),this.state=4168,this.match(t.OPERATOR),this.state=4169,this.match(t.CLASS),this.state=4170,this.anyName(),this.state=4172,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=4171,this.match(t.DEFAULT)),this.state=4174,this.match(t.FOR),this.state=4175,this.match(t.TYPE_P),this.state=4176,this.typeName(),this.state=4177,this.match(t.USING),this.state=4178,this.name(),this.state=4179,this.optionalOperatorFamily(),this.state=4180,this.match(t.AS),this.state=4181,this.operatorClassItemList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorClassItemList(){let e,s=new dc(this.context,this.state);this.enterRule(s,434,t.RULE_operatorClassItemList);try{for(this.enterOuterAlt(s,1),this.state=4183,this.operatorClassItem(),this.state=4188,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4184,this.match(t.COMMA),this.state=4185,this.operatorClassItem(),this.state=4190,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorClassItem(){let e,s=new Uc(this.context,this.state);this.enterRule(s,436,t.RULE_operatorClassItem);try{switch(this.state=4218,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,218,this.context)){case 1:this.enterOuterAlt(s,1),this.state=4191,this.match(t.OPERATOR),this.state=4192,this.iconst(),this.state=4193,this.anyOperator(),this.state=4194,this.operatorClassPurpose(),this.state=4196,this.errorHandler.sync(this),e=this.tokenStream.LA(1),295===e&&(this.state=4195,this.match(t.RECHECK));break;case 2:this.enterOuterAlt(s,2),this.state=4198,this.match(t.OPERATOR),this.state=4199,this.iconst(),this.state=4200,this.operatorWithArgumentTypes(),this.state=4201,this.operatorClassPurpose(),this.state=4203,this.errorHandler.sync(this),e=this.tokenStream.LA(1),295===e&&(this.state=4202,this.match(t.RECHECK));break;case 3:this.enterOuterAlt(s,3),this.state=4205,this.match(t.FUNCTION),this.state=4206,this.iconst(),this.state=4207,this.functionWithArgumentTypes();break;case 4:this.enterOuterAlt(s,4),this.state=4209,this.match(t.FUNCTION),this.state=4210,this.iconst(),this.state=4211,this.match(t.OPEN_PAREN),this.state=4212,this.typeList(),this.state=4213,this.match(t.CLOSE_PAREN),this.state=4214,this.functionWithArgumentTypes();break;case 5:this.enterOuterAlt(s,5),this.state=4216,this.match(t.STORAGE),this.state=4217,this.typeName()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalOperatorFamily(){let e=new mc(this.context,this.state);this.enterRule(e,438,t.RULE_optionalOperatorFamily);try{switch(this.state=4223,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FAMILY:this.enterOuterAlt(e,1),this.state=4220,this.match(t.FAMILY),this.state=4221,this.anyName();break;case t.AS:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}operatorClassPurpose(){let e=new Dc(this.context,this.state);this.enterRule(e,440,t.RULE_operatorClassPurpose);try{switch(this.state=4232,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,220,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4225,this.match(t.FOR),this.state=4226,this.match(t.SEARCH);break;case 2:this.enterOuterAlt(e,2),this.state=4227,this.match(t.FOR),this.state=4228,this.match(t.ORDER),this.state=4229,this.match(t.BY),this.state=4230,this.anyName();break;case 3:this.enterOuterAlt(e,3)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createOperatorFamilyStatement(){let e=new pc(this.context,this.state);this.enterRule(e,442,t.RULE_createOperatorFamilyStatement);try{this.enterOuterAlt(e,1),this.state=4234,this.match(t.CREATE),this.state=4235,this.match(t.OPERATOR),this.state=4236,this.match(t.FAMILY),this.state=4237,this.anyName(),this.state=4238,this.match(t.USING),this.state=4239,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterOperatorFamilyStatement(){let e=new gc(this.context,this.state);this.enterRule(e,444,t.RULE_alterOperatorFamilyStatement);try{switch(this.state=4259,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4241,this.match(t.ALTER),this.state=4242,this.match(t.OPERATOR),this.state=4243,this.match(t.FAMILY),this.state=4244,this.anyName(),this.state=4245,this.match(t.USING),this.state=4246,this.name(),this.state=4247,this.match(t.ADD_P),this.state=4248,this.operatorClassItemList();break;case 2:this.enterOuterAlt(e,2),this.state=4250,this.match(t.ALTER),this.state=4251,this.match(t.OPERATOR),this.state=4252,this.match(t.FAMILY),this.state=4253,this.anyName(),this.state=4254,this.match(t.USING),this.state=4255,this.name(),this.state=4256,this.match(t.DROP),this.state=4257,this.operatorClassDropList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}operatorClassDropList(){let e,s=new xc(this.context,this.state);this.enterRule(s,446,t.RULE_operatorClassDropList);try{for(this.enterOuterAlt(s,1),this.state=4261,this.operatorClassDrop(),this.state=4266,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4262,this.match(t.COMMA),this.state=4263,this.operatorClassDrop(),this.state=4268,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorClassDrop(){let e=new kc(this.context,this.state);this.enterRule(e,448,t.RULE_operatorClassDrop);try{switch(this.state=4281,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPERATOR:this.enterOuterAlt(e,1),this.state=4269,this.match(t.OPERATOR),this.state=4270,this.iconst(),this.state=4271,this.match(t.OPEN_PAREN),this.state=4272,this.typeList(),this.state=4273,this.match(t.CLOSE_PAREN);break;case t.FUNCTION:this.enterOuterAlt(e,2),this.state=4275,this.match(t.FUNCTION),this.state=4276,this.iconst(),this.state=4277,this.match(t.OPEN_PAREN),this.state=4278,this.typeList(),this.state=4279,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropOperatorClassStatement(){let e=new Hc(this.context,this.state);this.enterRule(e,450,t.RULE_dropOperatorClassStatement);try{switch(this.state=4301,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4283,this.match(t.DROP),this.state=4284,this.match(t.OPERATOR),this.state=4285,this.match(t.CLASS),this.state=4286,this.anyName(),this.state=4287,this.match(t.USING),this.state=4288,this.name(),this.state=4289,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=4291,this.match(t.DROP),this.state=4292,this.match(t.OPERATOR),this.state=4293,this.match(t.CLASS),this.state=4294,this.match(t.IF_P),this.state=4295,this.match(t.EXISTS),this.state=4296,this.anyName(),this.state=4297,this.match(t.USING),this.state=4298,this.name(),this.state=4299,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropOperatorFamilyStatement(){let e=new Gc(this.context,this.state);this.enterRule(e,452,t.RULE_dropOperatorFamilyStatement);try{switch(this.state=4321,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4303,this.match(t.DROP),this.state=4304,this.match(t.OPERATOR),this.state=4305,this.match(t.FAMILY),this.state=4306,this.anyName(),this.state=4307,this.match(t.USING),this.state=4308,this.name(),this.state=4309,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=4311,this.match(t.DROP),this.state=4312,this.match(t.OPERATOR),this.state=4313,this.match(t.FAMILY),this.state=4314,this.match(t.IF_P),this.state=4315,this.match(t.EXISTS),this.state=4316,this.anyName(),this.state=4317,this.match(t.USING),this.state=4318,this.name(),this.state=4319,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropOwnedStatement(){let e=new Fc(this.context,this.state);this.enterRule(e,454,t.RULE_dropOwnedStatement);try{this.enterOuterAlt(e,1),this.state=4323,this.match(t.DROP),this.state=4324,this.match(t.OWNED),this.state=4325,this.match(t.BY),this.state=4326,this.roleNameList(),this.state=4327,this.optionalDropBehavior()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}reassignOwnedStatement(){let e=new vc(this.context,this.state);this.enterRule(e,456,t.RULE_reassignOwnedStatement);try{this.enterOuterAlt(e,1),this.state=4329,this.match(t.REASSIGN),this.state=4330,this.match(t.OWNED),this.state=4331,this.match(t.BY),this.state=4332,this.roleNameList(),this.state=4333,this.match(t.TO),this.state=4334,this.roleName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropStatement(){let e=new Bc(this.context,this.state);this.enterRule(e,458,t.RULE_dropStatement);try{switch(this.state=4441,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,233,this.context)){case 1:if(this.enterOuterAlt(e,1),1===(this.state=4336,this.match(t.DROP),this.state=4337,this.objectTypeAnyName(),this.state=4340,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=4338,this.match(t.IF_P),this.state=4339,this.match(t.EXISTS);this.state=4342,this.anyNameList(),this.state=4343,this.optionalDropBehavior();break;case 2:if(this.enterOuterAlt(e,2),1===(this.state=4345,this.match(t.DROP),this.state=4346,this.match(t.SEQUENCE),this.state=4349,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,227,this.context)))this.state=4347,this.match(t.IF_P),this.state=4348,this.match(t.EXISTS);this.state=4351,this.sequenceNameList(),this.state=4352,this.optionalDropBehavior();break;case 3:if(this.enterOuterAlt(e,3),1===(this.state=4354,this.match(t.DROP),this.state=4355,this.match(t.INDEX),this.state=4358,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,228,this.context)))this.state=4356,this.match(t.IF_P),this.state=4357,this.match(t.EXISTS);this.state=4360,this.indexNameList(),this.state=4361,this.optionalDropBehavior();break;case 4:if(this.enterOuterAlt(e,4),1===(this.state=4363,this.match(t.DROP),this.state=4364,this.match(t.SCHEMA),this.state=4367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,229,this.context)))this.state=4365,this.match(t.IF_P),this.state=4366,this.match(t.EXISTS);this.state=4369,this.schemaNameList(),this.state=4370,this.optionalDropBehavior();break;case 5:if(this.enterOuterAlt(e,5),1===(this.state=4372,this.match(t.DROP),this.state=4373,this.dropTypeName(),this.state=4376,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,230,this.context)))this.state=4374,this.match(t.IF_P),this.state=4375,this.match(t.EXISTS);this.state=4378,this.nameList(),this.state=4379,this.optionalDropBehavior();break;case 6:if(this.enterOuterAlt(e,6),1===(this.state=4381,this.match(t.DROP),this.state=4382,this.objectTypeNameOnAnyName(),this.state=4385,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,231,this.context)))this.state=4383,this.match(t.IF_P),this.state=4384,this.match(t.EXISTS);this.state=4387,this.name(),this.state=4388,this.match(t.ON),this.state=4389,this.anyName(),this.state=4390,this.optionalDropBehavior();break;case 7:if(this.enterOuterAlt(e,7),1===(this.state=4392,this.match(t.DROP),this.state=4393,this.match(t.TRIGGER),this.state=4396,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,232,this.context)))this.state=4394,this.match(t.IF_P),this.state=4395,this.match(t.EXISTS);this.state=4398,this.triggerName(),this.state=4399,this.match(t.ON),this.state=4400,this.anyName(),this.state=4401,this.optionalDropBehavior();break;case 8:this.enterOuterAlt(e,8),this.state=4403,this.match(t.DROP),this.state=4404,this.match(t.TYPE_P),this.state=4405,this.typeNameList(),this.state=4406,this.optionalDropBehavior();break;case 9:this.enterOuterAlt(e,9),this.state=4408,this.match(t.DROP),this.state=4409,this.match(t.TYPE_P),this.state=4410,this.match(t.IF_P),this.state=4411,this.match(t.EXISTS),this.state=4412,this.typeNameList(),this.state=4413,this.optionalDropBehavior();break;case 10:this.enterOuterAlt(e,10),this.state=4415,this.match(t.DROP),this.state=4416,this.match(t.DOMAIN_P),this.state=4417,this.typeNameList(),this.state=4418,this.optionalDropBehavior();break;case 11:this.enterOuterAlt(e,11),this.state=4420,this.match(t.DROP),this.state=4421,this.match(t.DOMAIN_P),this.state=4422,this.match(t.IF_P),this.state=4423,this.match(t.EXISTS),this.state=4424,this.typeNameList(),this.state=4425,this.optionalDropBehavior();break;case 12:this.enterOuterAlt(e,12),this.state=4427,this.match(t.DROP),this.state=4428,this.match(t.INDEX),this.state=4429,this.match(t.CONCURRENTLY),this.state=4430,this.indexName(),this.state=4431,this.optionalDropBehavior();break;case 13:this.enterOuterAlt(e,13),this.state=4433,this.match(t.DROP),this.state=4434,this.match(t.INDEX),this.state=4435,this.match(t.CONCURRENTLY),this.state=4436,this.match(t.IF_P),this.state=4437,this.match(t.EXISTS),this.state=4438,this.indexName(),this.state=4439,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}objectTypeAnyName(){let e=new yc(this.context,this.state);this.enterRule(e,460,t.RULE_objectTypeAnyName);try{switch(this.state=4464,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,234,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4443,this.match(t.TABLE);break;case 2:this.enterOuterAlt(e,2),this.state=4444,this.match(t.VIEW);break;case 3:this.enterOuterAlt(e,3),this.state=4445,this.match(t.MATERIALIZED),this.state=4446,this.match(t.VIEW);break;case 4:this.enterOuterAlt(e,4),this.state=4447,this.match(t.FOREIGN),this.state=4448,this.match(t.TABLE);break;case 5:this.enterOuterAlt(e,5),this.state=4449,this.match(t.COLLATION);break;case 6:this.enterOuterAlt(e,6),this.state=4450,this.match(t.CONVERSION_P);break;case 7:this.enterOuterAlt(e,7),this.state=4451,this.match(t.STATISTICS);break;case 8:this.enterOuterAlt(e,8),this.state=4452,this.match(t.TEXT_P),this.state=4453,this.match(t.SEARCH),this.state=4454,this.match(t.PARSER);break;case 9:this.enterOuterAlt(e,9),this.state=4455,this.match(t.TEXT_P),this.state=4456,this.match(t.SEARCH),this.state=4457,this.match(t.DICTIONARY);break;case 10:this.enterOuterAlt(e,10),this.state=4458,this.match(t.TEXT_P),this.state=4459,this.match(t.SEARCH),this.state=4460,this.match(t.TEMPLATE);break;case 11:this.enterOuterAlt(e,11),this.state=4461,this.match(t.TEXT_P),this.state=4462,this.match(t.SEARCH),this.state=4463,this.match(t.CONFIGURATION)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}objectTypeName(){let e=new fc(this.context,this.state);this.enterRule(e,462,t.RULE_objectTypeName);try{switch(this.state=4469,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOREIGN:case t.ACCESS:case t.EVENT:case t.EXTENSION:case t.LANGUAGE:case t.PROCEDURAL:case t.SERVER:case t.PUBLICATION:this.enterOuterAlt(e,1),this.state=4466,this.dropTypeName();break;case t.SUBSCRIPTION:this.enterOuterAlt(e,2),this.state=4467,this.match(t.SUBSCRIPTION);break;case t.TABLESPACE:this.enterOuterAlt(e,3),this.state=4468,this.match(t.TABLESPACE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropTypeName(){let e=new Yc(this.context,this.state);this.enterRule(e,464,t.RULE_dropTypeName);try{switch(this.state=4484,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ACCESS:this.enterOuterAlt(e,1),this.state=4471,this.match(t.ACCESS),this.state=4472,this.match(t.METHOD);break;case t.EVENT:this.enterOuterAlt(e,2),this.state=4473,this.match(t.EVENT),this.state=4474,this.match(t.TRIGGER);break;case t.EXTENSION:this.enterOuterAlt(e,3),this.state=4475,this.match(t.EXTENSION);break;case t.FOREIGN:this.enterOuterAlt(e,4),this.state=4476,this.match(t.FOREIGN),this.state=4477,this.match(t.DATA_P),this.state=4478,this.match(t.WRAPPER);break;case t.LANGUAGE:case t.PROCEDURAL:this.enterOuterAlt(e,5),this.state=4479,this.optionalProcedural(),this.state=4480,this.match(t.LANGUAGE);break;case t.PUBLICATION:this.enterOuterAlt(e,6),this.state=4482,this.match(t.PUBLICATION);break;case t.SERVER:this.enterOuterAlt(e,7),this.state=4483,this.match(t.SERVER);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}objectTypeNameOnAnyName(){let e,s=new wc(this.context,this.state);this.enterRule(s,466,t.RULE_objectTypeNameOnAnyName);try{this.enterOuterAlt(s,1),this.state=4486,e=this.tokenStream.LA(1),314===e||445===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}anyNameList(){let e,s=new bc(this.context,this.state);this.enterRule(s,468,t.RULE_anyNameList);try{for(this.enterOuterAlt(s,1),this.state=4488,this.anyName(),this.state=4493,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4489,this.match(t.COMMA),this.state=4490,this.anyName(),this.state=4495,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}anyName(){let e,s=new Wc(this.context,this.state);this.enterRule(s,470,t.RULE_anyName);try{this.enterOuterAlt(s,1),this.state=4496,this.columnId(),this.state=4498,this.errorHandler.sync(this),e=this.tokenStream.LA(1),11===e&&(this.state=4497,this.attributes())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}attributes(){let e=new Vc(this.context,this.state);this.enterRule(e,472,t.RULE_attributes);try{let s;this.enterOuterAlt(e,1),this.state=4502,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new he(this);this.state=4500,this.match(t.DOT),this.state=4501,this.attributeName(),this.state=4504,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,239,this.context)}while(2!==s&&s!==q.INVALID_ALT_NUMBER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}typeNameList(){let e,s=new Xc(this.context,this.state);this.enterRule(s,474,t.RULE_typeNameList);try{for(this.enterOuterAlt(s,1),this.state=4506,this.typeName(),this.state=4511,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4507,this.match(t.COMMA),this.state=4508,this.typeName(),this.state=4513,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}truncateStatement(){let e=new Kc(this.context,this.state);this.enterRule(e,476,t.RULE_truncateStatement);try{this.enterOuterAlt(e,1),this.state=4514,this.match(t.TRUNCATE),this.state=4515,this.optionalTable(),this.state=4516,this.relationExpressionList(),this.state=4517,this.optionalRestartSequences(),this.state=4518,this.optionalDropBehavior()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalRestartSequences(){let e=new Qc(this.context,this.state);this.enterRule(e,478,t.RULE_optionalRestartSequences);try{switch(this.state=4525,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONTINUE_P:this.enterOuterAlt(e,1),this.state=4520,this.match(t.CONTINUE_P),this.state=4521,this.match(t.IDENTITY_P);break;case t.RESTART:this.enterOuterAlt(e,2),this.state=4522,this.match(t.RESTART),this.state=4523,this.match(t.IDENTITY_P);break;case t.EOF:case t.SEMI:case t.INTO:case t.CASCADE:case t.RESTRICT:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commentStatement(){let e=new Jc(this.context,this.state);this.enterRule(e,480,t.RULE_commentStatement);try{switch(this.state=4711,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,243,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4527,this.match(t.COMMENT),this.state=4528,this.match(t.ON),this.state=4529,this.objectTypeAnyName(),this.state=4530,this.anyName(),this.state=4531,this.match(t.IS),this.state=4532,this.commentText();break;case 2:this.enterOuterAlt(e,2),this.state=4534,this.match(t.COMMENT),this.state=4535,this.match(t.ON),this.state=4536,this.match(t.SEQUENCE),this.state=4537,this.sequenceName(),this.state=4538,this.match(t.IS),this.state=4539,this.commentText();break;case 3:this.enterOuterAlt(e,3),this.state=4541,this.match(t.COMMENT),this.state=4542,this.match(t.ON),this.state=4543,this.match(t.INDEX),this.state=4544,this.indexName(),this.state=4545,this.match(t.IS),this.state=4546,this.commentText();break;case 4:this.enterOuterAlt(e,4),this.state=4548,this.match(t.COMMENT),this.state=4549,this.match(t.ON),this.state=4550,this.match(t.COLUMN),this.state=4551,this.anyName(),this.state=4552,this.match(t.IS),this.state=4553,this.commentText();break;case 5:this.enterOuterAlt(e,5),this.state=4555,this.match(t.COMMENT),this.state=4556,this.match(t.ON),this.state=4557,this.objectTypeName(),this.state=4558,this.name(),this.state=4559,this.match(t.IS),this.state=4560,this.commentText();break;case 6:this.enterOuterAlt(e,6),this.state=4562,this.match(t.COMMENT),this.state=4563,this.match(t.ON),this.state=4564,this.match(t.ROLE),this.state=4565,this.roleName(),this.state=4566,this.match(t.IS),this.state=4567,this.commentText();break;case 7:this.enterOuterAlt(e,7),this.state=4569,this.match(t.COMMENT),this.state=4570,this.match(t.ON),this.state=4571,this.match(t.DATABASE),this.state=4572,this.databaseName(),this.state=4573,this.match(t.IS),this.state=4574,this.commentText();break;case 8:this.enterOuterAlt(e,8),this.state=4576,this.match(t.COMMENT),this.state=4577,this.match(t.ON),this.state=4578,this.match(t.SCHEMA),this.state=4579,this.schemaName(),this.state=4580,this.match(t.IS),this.state=4581,this.commentText();break;case 9:this.enterOuterAlt(e,9),this.state=4583,this.match(t.COMMENT),this.state=4584,this.match(t.ON),this.state=4585,this.match(t.TYPE_P),this.state=4586,this.typeName(),this.state=4587,this.match(t.IS),this.state=4588,this.commentText();break;case 10:this.enterOuterAlt(e,10),this.state=4590,this.match(t.COMMENT),this.state=4591,this.match(t.ON),this.state=4592,this.match(t.DOMAIN_P),this.state=4593,this.typeName(),this.state=4594,this.match(t.IS),this.state=4595,this.commentText();break;case 11:this.enterOuterAlt(e,11),this.state=4597,this.match(t.COMMENT),this.state=4598,this.match(t.ON),this.state=4599,this.match(t.AGGREGATE),this.state=4600,this.aggregateWithArgumentTypes(),this.state=4601,this.match(t.IS),this.state=4602,this.commentText();break;case 12:this.enterOuterAlt(e,12),this.state=4604,this.match(t.COMMENT),this.state=4605,this.match(t.ON),this.state=4606,this.match(t.FUNCTION),this.state=4607,this.functionWithArgumentTypes(),this.state=4608,this.match(t.IS),this.state=4609,this.commentText();break;case 13:this.enterOuterAlt(e,13),this.state=4611,this.match(t.COMMENT),this.state=4612,this.match(t.ON),this.state=4613,this.match(t.OPERATOR),this.state=4614,this.operatorWithArgumentTypes(),this.state=4615,this.match(t.IS),this.state=4616,this.commentText();break;case 14:if(this.enterOuterAlt(e,14),1===(this.state=4618,this.match(t.COMMENT),this.state=4619,this.match(t.ON),this.state=4620,this.match(t.CONSTRAINT),this.state=4621,this.constraintName(),this.state=4622,this.match(t.ON),this.state=4624,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,242,this.context)))this.state=4623,this.match(t.DOMAIN_P);this.state=4626,this.anyName(),this.state=4627,this.match(t.IS),this.state=4628,this.commentText();break;case 15:this.enterOuterAlt(e,15),this.state=4630,this.match(t.COMMENT),this.state=4631,this.match(t.ON),this.state=4632,this.objectTypeNameOnAnyName(),this.state=4633,this.name(),this.state=4634,this.match(t.ON),this.state=4635,this.anyName(),this.state=4636,this.match(t.IS),this.state=4637,this.commentText();break;case 16:this.enterOuterAlt(e,16),this.state=4639,this.match(t.COMMENT),this.state=4640,this.match(t.ON),this.state=4641,this.match(t.TRIGGER),this.state=4642,this.triggerName(),this.state=4643,this.match(t.ON),this.state=4644,this.anyName(),this.state=4645,this.match(t.IS),this.state=4646,this.commentText();break;case 17:this.enterOuterAlt(e,17),this.state=4648,this.match(t.COMMENT),this.state=4649,this.match(t.ON),this.state=4650,this.match(t.PROCEDURE),this.state=4651,this.functionWithArgumentTypes(),this.state=4652,this.match(t.IS),this.state=4653,this.commentText();break;case 18:this.enterOuterAlt(e,18),this.state=4655,this.match(t.COMMENT),this.state=4656,this.match(t.ON),this.state=4657,this.match(t.ROUTINE),this.state=4658,this.functionWithArgumentTypes(),this.state=4659,this.match(t.IS),this.state=4660,this.commentText();break;case 19:this.enterOuterAlt(e,19),this.state=4662,this.match(t.COMMENT),this.state=4663,this.match(t.ON),this.state=4664,this.match(t.TRANSFORM),this.state=4665,this.match(t.FOR),this.state=4666,this.typeName(),this.state=4667,this.match(t.LANGUAGE),this.state=4668,this.name(),this.state=4669,this.match(t.IS),this.state=4670,this.commentText();break;case 20:this.enterOuterAlt(e,20),this.state=4672,this.match(t.COMMENT),this.state=4673,this.match(t.ON),this.state=4674,this.match(t.OPERATOR),this.state=4675,this.match(t.CLASS),this.state=4676,this.anyName(),this.state=4677,this.match(t.USING),this.state=4678,this.name(),this.state=4679,this.match(t.IS),this.state=4680,this.commentText();break;case 21:this.enterOuterAlt(e,21),this.state=4682,this.match(t.COMMENT),this.state=4683,this.match(t.ON),this.state=4684,this.match(t.OPERATOR),this.state=4685,this.match(t.FAMILY),this.state=4686,this.anyName(),this.state=4687,this.match(t.USING),this.state=4688,this.name(),this.state=4689,this.match(t.IS),this.state=4690,this.commentText();break;case 22:this.enterOuterAlt(e,22),this.state=4692,this.match(t.COMMENT),this.state=4693,this.match(t.ON),this.state=4694,this.match(t.LARGE_P),this.state=4695,this.match(t.OBJECT_P),this.state=4696,this.numericOnly(),this.state=4697,this.match(t.IS),this.state=4698,this.commentText();break;case 23:this.enterOuterAlt(e,23),this.state=4700,this.match(t.COMMENT),this.state=4701,this.match(t.ON),this.state=4702,this.match(t.CAST),this.state=4703,this.match(t.OPEN_PAREN),this.state=4704,this.typeName(),this.state=4705,this.match(t.AS),this.state=4706,this.typeName(),this.state=4707,this.match(t.CLOSE_PAREN),this.state=4708,this.match(t.IS),this.state=4709,this.commentText()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commentText(){let e=new Zc(this.context,this.state);this.enterRule(e,482,t.RULE_commentText);try{switch(this.state=4715,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=4713,this.sconst();break;case t.NULL_P:this.enterOuterAlt(e,2),this.state=4714,this.match(t.NULL_P);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}securityLabelStatement(){let e=new qc(this.context,this.state);this.enterRule(e,484,t.RULE_securityLabelStatement);try{switch(this.state=4853,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,245,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4717,this.match(t.SECURITY),this.state=4718,this.match(t.LABEL),this.state=4719,this.optionalProvider(),this.state=4720,this.match(t.ON),this.state=4721,this.objectTypeAnyName(),this.state=4722,this.anyName(),this.state=4723,this.match(t.IS),this.state=4724,this.securityLabel();break;case 2:this.enterOuterAlt(e,2),this.state=4726,this.match(t.SECURITY),this.state=4727,this.match(t.LABEL),this.state=4728,this.optionalProvider(),this.state=4729,this.match(t.ON),this.state=4730,this.match(t.SEQUENCE),this.state=4731,this.sequenceName(),this.state=4732,this.match(t.IS),this.state=4733,this.securityLabel();break;case 3:this.enterOuterAlt(e,3),this.state=4735,this.match(t.SECURITY),this.state=4736,this.match(t.LABEL),this.state=4737,this.optionalProvider(),this.state=4738,this.match(t.ON),this.state=4739,this.match(t.INDEX),this.state=4740,this.indexName(),this.state=4741,this.match(t.IS),this.state=4742,this.securityLabel();break;case 4:this.enterOuterAlt(e,4),this.state=4744,this.match(t.SECURITY),this.state=4745,this.match(t.LABEL),this.state=4746,this.optionalProvider(),this.state=4747,this.match(t.ON),this.state=4748,this.match(t.COLUMN),this.state=4749,this.anyName(),this.state=4750,this.match(t.IS),this.state=4751,this.securityLabel();break;case 5:this.enterOuterAlt(e,5),this.state=4753,this.match(t.SECURITY),this.state=4754,this.match(t.LABEL),this.state=4755,this.optionalProvider(),this.state=4756,this.match(t.ON),this.state=4757,this.objectTypeName(),this.state=4758,this.name(),this.state=4759,this.match(t.IS),this.state=4760,this.securityLabel();break;case 6:this.enterOuterAlt(e,6),this.state=4762,this.match(t.SECURITY),this.state=4763,this.match(t.LABEL),this.state=4764,this.optionalProvider(),this.state=4765,this.match(t.ON),this.state=4766,this.match(t.ROLE),this.state=4767,this.roleName(),this.state=4768,this.match(t.IS),this.state=4769,this.securityLabel();break;case 7:this.enterOuterAlt(e,7),this.state=4771,this.match(t.SECURITY),this.state=4772,this.match(t.LABEL),this.state=4773,this.optionalProvider(),this.state=4774,this.match(t.ON),this.state=4775,this.match(t.DATABASE),this.state=4776,this.databaseName(),this.state=4777,this.match(t.IS),this.state=4778,this.securityLabel();break;case 8:this.enterOuterAlt(e,8),this.state=4780,this.match(t.SECURITY),this.state=4781,this.match(t.LABEL),this.state=4782,this.optionalProvider(),this.state=4783,this.match(t.ON),this.state=4784,this.match(t.SCHEMA),this.state=4785,this.schemaName(),this.state=4786,this.match(t.IS),this.state=4787,this.securityLabel();break;case 9:this.enterOuterAlt(e,9),this.state=4789,this.match(t.SECURITY),this.state=4790,this.match(t.LABEL),this.state=4791,this.optionalProvider(),this.state=4792,this.match(t.ON),this.state=4793,this.match(t.TYPE_P),this.state=4794,this.typeName(),this.state=4795,this.match(t.IS),this.state=4796,this.securityLabel();break;case 10:this.enterOuterAlt(e,10),this.state=4798,this.match(t.SECURITY),this.state=4799,this.match(t.LABEL),this.state=4800,this.optionalProvider(),this.state=4801,this.match(t.ON),this.state=4802,this.match(t.DOMAIN_P),this.state=4803,this.typeName(),this.state=4804,this.match(t.IS),this.state=4805,this.securityLabel();break;case 11:this.enterOuterAlt(e,11),this.state=4807,this.match(t.SECURITY),this.state=4808,this.match(t.LABEL),this.state=4809,this.optionalProvider(),this.state=4810,this.match(t.ON),this.state=4811,this.match(t.AGGREGATE),this.state=4812,this.aggregateWithArgumentTypes(),this.state=4813,this.match(t.IS),this.state=4814,this.securityLabel();break;case 12:this.enterOuterAlt(e,12),this.state=4816,this.match(t.SECURITY),this.state=4817,this.match(t.LABEL),this.state=4818,this.optionalProvider(),this.state=4819,this.match(t.ON),this.state=4820,this.match(t.FUNCTION),this.state=4821,this.functionWithArgumentTypes(),this.state=4822,this.match(t.IS),this.state=4823,this.securityLabel();break;case 13:this.enterOuterAlt(e,13),this.state=4825,this.match(t.SECURITY),this.state=4826,this.match(t.LABEL),this.state=4827,this.optionalProvider(),this.state=4828,this.match(t.ON),this.state=4829,this.match(t.LARGE_P),this.state=4830,this.match(t.OBJECT_P),this.state=4831,this.numericOnly(),this.state=4832,this.match(t.IS),this.state=4833,this.securityLabel();break;case 14:this.enterOuterAlt(e,14),this.state=4835,this.match(t.SECURITY),this.state=4836,this.match(t.LABEL),this.state=4837,this.optionalProvider(),this.state=4838,this.match(t.ON),this.state=4839,this.match(t.PROCEDURE),this.state=4840,this.functionWithArgumentTypes(),this.state=4841,this.match(t.IS),this.state=4842,this.securityLabel();break;case 15:this.enterOuterAlt(e,15),this.state=4844,this.match(t.SECURITY),this.state=4845,this.match(t.LABEL),this.state=4846,this.optionalProvider(),this.state=4847,this.match(t.ON),this.state=4848,this.match(t.ROUTINE),this.state=4849,this.functionWithArgumentTypes(),this.state=4850,this.match(t.IS),this.state=4851,this.securityLabel()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalProvider(){let e=new jc(this.context,this.state);this.enterRule(e,486,t.RULE_optionalProvider);try{switch(this.state=4858,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(e,1),this.state=4855,this.match(t.FOR),this.state=4856,this.nonReservedWordOrSconst();break;case t.ON:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}securityLabel(){let e=new zc(this.context,this.state);this.enterRule(e,488,t.RULE_securityLabel);try{switch(this.state=4862,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=4860,this.sconst();break;case t.NULL_P:this.enterOuterAlt(e,2),this.state=4861,this.match(t.NULL_P);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fetchStatement(){let e=new $c(this.context,this.state);this.enterRule(e,490,t.RULE_fetchStatement);try{switch(this.state=4868,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FETCH:this.enterOuterAlt(e,1),this.state=4864,this.match(t.FETCH),this.state=4865,this.fetchArguments();break;case t.MOVE:this.enterOuterAlt(e,2),this.state=4866,this.match(t.MOVE),this.state=4867,this.fetchArguments();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fetchArguments(){let e=new tn(this.context,this.state);this.enterRule(e,492,t.RULE_fetchArguments);try{switch(this.state=4936,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,249,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4870,this.cursorName();break;case 2:this.enterOuterAlt(e,2),this.state=4871,this.fromOrIn(),this.state=4872,this.cursorName();break;case 3:this.enterOuterAlt(e,3),this.state=4874,this.match(t.NEXT),this.state=4875,this.optionalFromOrIn(),this.state=4876,this.cursorName();break;case 4:this.enterOuterAlt(e,4),this.state=4878,this.match(t.PRIOR),this.state=4879,this.optionalFromOrIn(),this.state=4880,this.cursorName();break;case 5:this.enterOuterAlt(e,5),this.state=4882,this.match(t.FIRST_P),this.state=4883,this.optionalFromOrIn(),this.state=4884,this.cursorName();break;case 6:this.enterOuterAlt(e,6),this.state=4886,this.match(t.LAST_P),this.state=4887,this.optionalFromOrIn(),this.state=4888,this.cursorName();break;case 7:this.enterOuterAlt(e,7),this.state=4890,this.match(t.ABSOLUTE_P),this.state=4891,this.signedIconst(),this.state=4892,this.optionalFromOrIn(),this.state=4893,this.cursorName();break;case 8:this.enterOuterAlt(e,8),this.state=4895,this.match(t.RELATIVE_P),this.state=4896,this.signedIconst(),this.state=4897,this.optionalFromOrIn(),this.state=4898,this.cursorName();break;case 9:this.enterOuterAlt(e,9),this.state=4900,this.signedIconst(),this.state=4901,this.optionalFromOrIn(),this.state=4902,this.cursorName();break;case 10:this.enterOuterAlt(e,10),this.state=4904,this.match(t.ALL),this.state=4905,this.optionalFromOrIn(),this.state=4906,this.cursorName();break;case 11:this.enterOuterAlt(e,11),this.state=4908,this.match(t.FORWARD),this.state=4909,this.optionalFromOrIn(),this.state=4910,this.cursorName();break;case 12:this.enterOuterAlt(e,12),this.state=4912,this.match(t.FORWARD),this.state=4913,this.signedIconst(),this.state=4914,this.optionalFromOrIn(),this.state=4915,this.cursorName();break;case 13:this.enterOuterAlt(e,13),this.state=4917,this.match(t.FORWARD),this.state=4918,this.match(t.ALL),this.state=4919,this.optionalFromOrIn(),this.state=4920,this.cursorName();break;case 14:this.enterOuterAlt(e,14),this.state=4922,this.match(t.BACKWARD),this.state=4923,this.optionalFromOrIn(),this.state=4924,this.cursorName();break;case 15:this.enterOuterAlt(e,15),this.state=4926,this.match(t.BACKWARD),this.state=4927,this.signedIconst(),this.state=4928,this.optionalFromOrIn(),this.state=4929,this.cursorName();break;case 16:this.enterOuterAlt(e,16),this.state=4931,this.match(t.BACKWARD),this.state=4932,this.match(t.ALL),this.state=4933,this.optionalFromOrIn(),this.state=4934,this.cursorName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fromOrIn(){let e,s=new en(this.context,this.state);this.enterRule(s,494,t.RULE_fromOrIn);try{this.enterOuterAlt(s,1),this.state=4938,e=this.tokenStream.LA(1),64===e||68===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalFromOrIn(){let e=new sn(this.context,this.state);this.enterRule(e,496,t.RULE_optionalFromOrIn);try{switch(this.state=4942,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FROM:case t.IN_P:this.enterOuterAlt(e,1),this.state=4940,this.fromOrIn();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}grantStatement(){let e=new an(this.context,this.state);this.enterRule(e,498,t.RULE_grantStatement);try{this.enterOuterAlt(e,1),this.state=4944,this.match(t.GRANT),this.state=4945,this.privileges(),this.state=4946,this.match(t.ON),this.state=4947,this.privilegeTarget(),this.state=4948,this.match(t.TO),this.state=4949,this.granteeList(),this.state=4950,this.optionalWithGrantOption()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}revokeStatement(){let e=new rn(this.context,this.state);this.enterRule(e,500,t.RULE_revokeStatement);try{switch(this.state=4971,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,251,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4952,this.match(t.REVOKE),this.state=4953,this.privileges(),this.state=4954,this.match(t.ON),this.state=4955,this.privilegeTarget(),this.state=4956,this.match(t.FROM),this.state=4957,this.granteeList(),this.state=4958,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=4960,this.match(t.REVOKE),this.state=4961,this.match(t.GRANT),this.state=4962,this.match(t.OPTION),this.state=4963,this.match(t.FOR),this.state=4964,this.privileges(),this.state=4965,this.match(t.ON),this.state=4966,this.privilegeTarget(),this.state=4967,this.match(t.FROM),this.state=4968,this.granteeList(),this.state=4969,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}privileges(){let e=new cn(this.context,this.state);this.enterRule(e,502,t.RULE_privileges);try{switch(this.state=4988,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4973,this.privilegeList();break;case 2:this.enterOuterAlt(e,2),this.state=4974,this.match(t.ALL);break;case 3:this.enterOuterAlt(e,3),this.state=4975,this.match(t.ALL),this.state=4976,this.match(t.PRIVILEGES);break;case 4:this.enterOuterAlt(e,4),this.state=4977,this.match(t.ALL),this.state=4978,this.match(t.OPEN_PAREN),this.state=4979,this.columnList(),this.state=4980,this.match(t.CLOSE_PAREN);break;case 5:this.enterOuterAlt(e,5),this.state=4982,this.match(t.ALL),this.state=4983,this.match(t.PRIVILEGES),this.state=4984,this.match(t.OPEN_PAREN),this.state=4985,this.columnList(),this.state=4986,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}privilegeList(){let e,s=new nn(this.context,this.state);this.enterRule(s,504,t.RULE_privilegeList);try{for(this.enterOuterAlt(s,1),this.state=4990,this.privilege(),this.state=4995,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=4991,this.match(t.COMMA),this.state=4992,this.privilege(),this.state=4997,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}privilege(){let e=new hn(this.context,this.state);this.enterRule(e,506,t.RULE_privilege);try{switch(this.state=5007,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:this.enterOuterAlt(e,1),this.state=4998,this.match(t.SELECT),this.state=4999,this.columnListWithParentheses();break;case t.REFERENCES:this.enterOuterAlt(e,2),this.state=5e3,this.match(t.REFERENCES),this.state=5001,this.columnListWithParentheses();break;case t.CREATE:this.enterOuterAlt(e,3),this.state=5002,this.match(t.CREATE),this.state=5003,this.columnListWithParentheses();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,4),this.state=5004,this.columnId(),this.state=5005,this.columnListWithParentheses();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}privilegeTarget(){let e,s=new En(this.context,this.state);this.enterRule(s,508,t.RULE_privilegeTarget);try{switch(this.state=5047,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5009,this.qualifiedNameList();break;case 2:this.enterOuterAlt(s,2),this.state=5010,this.match(t.TABLE),this.state=5011,this.qualifiedNameList();break;case 3:this.enterOuterAlt(s,3),this.state=5012,this.match(t.SEQUENCE),this.state=5013,this.sequenceNameList();break;case 4:this.enterOuterAlt(s,4),this.state=5014,this.match(t.FOREIGN),this.state=5015,this.match(t.DATA_P),this.state=5016,this.match(t.WRAPPER),this.state=5017,this.nameList();break;case 5:this.enterOuterAlt(s,5),this.state=5018,this.match(t.FOREIGN),this.state=5019,this.match(t.SERVER),this.state=5020,this.nameList();break;case 6:this.enterOuterAlt(s,6),this.state=5021,this.match(t.FUNCTION),this.state=5022,this.functionWithArgumentTypesList();break;case 7:this.enterOuterAlt(s,7),this.state=5023,this.match(t.PROCEDURE),this.state=5024,this.functionWithArgumentTypesList();break;case 8:this.enterOuterAlt(s,8),this.state=5025,this.match(t.ROUTINE),this.state=5026,this.functionWithArgumentTypesList();break;case 9:this.enterOuterAlt(s,9),this.state=5027,this.match(t.DATABASE),this.state=5028,this.databaseNameList();break;case 10:this.enterOuterAlt(s,10),this.state=5029,this.match(t.DOMAIN_P),this.state=5030,this.anyNameList();break;case 11:this.enterOuterAlt(s,11),this.state=5031,this.match(t.LANGUAGE),this.state=5032,this.nameList();break;case 12:this.enterOuterAlt(s,12),this.state=5033,this.match(t.LARGE_P),this.state=5034,this.match(t.OBJECT_P),this.state=5035,this.numericOnlyList();break;case 13:this.enterOuterAlt(s,13),this.state=5036,this.match(t.SCHEMA),this.state=5037,this.schemaNameList();break;case 14:this.enterOuterAlt(s,14),this.state=5038,this.match(t.TABLESPACE),this.state=5039,this.nameList();break;case 15:this.enterOuterAlt(s,15),this.state=5040,this.match(t.TYPE_P),this.state=5041,this.anyNameList();break;case 16:this.enterOuterAlt(s,16),this.state=5042,this.match(t.ALL),this.state=5043,e=this.tokenStream.LA(1),212===e||322===e||343===e||455===e||457===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5044,this.match(t.IN_P),this.state=5045,this.match(t.SCHEMA),this.state=5046,this.schemaNameList()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}granteeList(){let e,s=new Tn(this.context,this.state);this.enterRule(s,510,t.RULE_granteeList);try{for(this.enterOuterAlt(s,1),this.state=5049,this.grantee(),this.state=5054,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5050,this.match(t.COMMA),this.state=5051,this.grantee(),this.state=5056,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}grantee(){let e=new on(this.context,this.state);this.enterRule(e,512,t.RULE_grantee);try{switch(this.state=5060,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FETCH:case t.SESSION_USER:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=5057,this.roleName();break;case t.GROUP_P:this.enterOuterAlt(e,2),this.state=5058,this.match(t.GROUP_P),this.state=5059,this.roleName();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalWithGrantOption(){let e=new Rn(this.context,this.state);this.enterRule(e,514,t.RULE_optionalWithGrantOption);try{switch(this.state=5066,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=5062,this.match(t.WITH),this.state=5063,this.match(t.GRANT),this.state=5064,this.match(t.OPTION);break;case t.EOF:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}grantPrivilegeStatement(){let e=new An(this.context,this.state);this.enterRule(e,516,t.RULE_grantPrivilegeStatement);try{this.enterOuterAlt(e,1),this.state=5068,this.match(t.GRANT),this.state=5069,this.privilegeList(),this.state=5070,this.match(t.TO),this.state=5071,this.roleNameList(),this.state=5072,this.optionalGrantAdminOption(),this.state=5073,this.optionalGrantedBy()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}revokePrivilegeStatement(){let e=new Sn(this.context,this.state);this.enterRule(e,518,t.RULE_revokePrivilegeStatement);try{switch(this.state=5092,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5075,this.match(t.REVOKE),this.state=5076,this.privilegeList(),this.state=5077,this.match(t.FROM),this.state=5078,this.roleNameList(),this.state=5079,this.optionalGrantedBy(),this.state=5080,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=5082,this.match(t.REVOKE),this.state=5083,this.match(t.ADMIN),this.state=5084,this.match(t.OPTION),this.state=5085,this.match(t.FOR),this.state=5086,this.privilegeList(),this.state=5087,this.match(t.FROM),this.state=5088,this.roleNameList(),this.state=5089,this.optionalGrantedBy(),this.state=5090,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalGrantAdminOption(){let e=new ln(this.context,this.state);this.enterRule(e,520,t.RULE_optionalGrantAdminOption);try{switch(this.state=5098,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=5094,this.match(t.WITH),this.state=5095,this.match(t.ADMIN),this.state=5096,this.match(t.OPTION);break;case t.EOF:case t.SEMI:case t.INTO:case t.GRANTED:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalGrantedBy(){let e=new On(this.context,this.state);this.enterRule(e,522,t.RULE_optionalGrantedBy);try{switch(this.state=5104,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.GRANTED:this.enterOuterAlt(e,1),this.state=5100,this.match(t.GRANTED),this.state=5101,this.match(t.BY),this.state=5102,this.roleName();break;case t.EOF:case t.SEMI:case t.INTO:case t.CASCADE:case t.RESTRICT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterDefaultPrivilegesStatement(){let e,s=new In(this.context,this.state);this.enterRule(s,524,t.RULE_alterDefaultPrivilegesStatement);try{for(this.enterOuterAlt(s,1),this.state=5106,this.match(t.ALTER),this.state=5107,this.match(t.DEFAULT),this.state=5108,this.match(t.PRIVILEGES),this.state=5112,this.errorHandler.sync(this),e=this.tokenStream.LA(1);62===e||68===e;)this.state=5109,this.defultPrivilegeOption(),this.state=5114,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=5115,this.defaultPrivelegeAction()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}defultPrivilegeOption(){let e=new un(this.context,this.state);this.enterRule(e,526,t.RULE_defultPrivilegeOption);try{switch(this.state=5124,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IN_P:this.enterOuterAlt(e,1),this.state=5117,this.match(t.IN_P),this.state=5118,this.match(t.SCHEMA),this.state=5119,this.schemaNameList();break;case t.FOR:this.enterOuterAlt(e,2),this.state=5120,this.match(t.FOR),this.state=5121,this.roleOrAliases(),this.state=5122,this.roleNameList();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}defaultPrivelegeAction(){let e=new Nn(this.context,this.state);this.enterRule(e,528,t.RULE_defaultPrivelegeAction);try{switch(this.state=5153,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5126,this.match(t.GRANT),this.state=5127,this.privileges(),this.state=5128,this.match(t.ON),this.state=5129,this.defultPrivilegeTarget(),this.state=5130,this.match(t.TO),this.state=5131,this.granteeList(),this.state=5132,this.optionalWithGrantOption();break;case 2:this.enterOuterAlt(e,2),this.state=5134,this.match(t.REVOKE),this.state=5135,this.privileges(),this.state=5136,this.match(t.ON),this.state=5137,this.defultPrivilegeTarget(),this.state=5138,this.match(t.FROM),this.state=5139,this.granteeList(),this.state=5140,this.optionalDropBehavior();break;case 3:this.enterOuterAlt(e,3),this.state=5142,this.match(t.REVOKE),this.state=5143,this.match(t.GRANT),this.state=5144,this.match(t.OPTION),this.state=5145,this.match(t.FOR),this.state=5146,this.privileges(),this.state=5147,this.match(t.ON),this.state=5148,this.defultPrivilegeTarget(),this.state=5149,this.match(t.FROM),this.state=5150,this.granteeList(),this.state=5151,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}defultPrivilegeTarget(){let e,s=new Ln(this.context,this.state);this.enterRule(s,530,t.RULE_defultPrivilegeTarget);try{this.enterOuterAlt(s,1),this.state=5155,e=this.tokenStream.LA(1),212===e||322===e||343===e||354===e||455===e||456===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexStatement(){let e,s=new Cn(this.context,this.state);this.enterRule(s,532,t.RULE_indexStatement);try{switch(this.state=5202,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,270,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5157,this.match(t.CREATE),this.state=5159,this.errorHandler.sync(this),e=this.tokenStream.LA(1),98===e&&(this.state=5158,this.match(t.UNIQUE)),this.state=5161,this.match(t.INDEX),this.state=5163,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5162,this.match(t.CONCURRENTLY)),this.state=5166,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268421||!(e-92&-32)&&1<<e-92&2298478593||!(e-124&-32)&&1<<e-124&4294967269||!(e-156&-32)&&1<<e-156&4294967295||!(e-188&-32)&&1<<e-188&4294967295||!(e-220&-32)&&1<<e-220&3221225471||!(e-252&-32)&&1<<e-252&4294967293||!(e-284&-32)&&1<<e-284&4294967295||!(e-316&-32)&&1<<e-316&4294967295||!(e-348&-32)&&1<<e-348&4294967295||!(e-380&-32)&&1<<e-380&4294967295||!(e-412&-32)&&1<<e-412&4294967295||!(e-444&-32)&&1<<e-444&4026530815||!(e-476&-32)&&1<<e-476&3623878655||!(e-508&-32)&&1<<e-508&4294965247||!(e-540&-32)&&1<<e-540&4294967295||!(e-572&-32)&&1<<e-572&4294967295||!(e-604&-32)&&1<<e-604&4294967295||!(e-636&-32)&&1<<e-636&100663331)&&(this.state=5165,this.name()),this.state=5168,this.match(t.ON),this.state=5169,this.relationExpression(),this.state=5170,this.optionalAccessMethodClause(),this.state=5171,this.match(t.OPEN_PAREN),this.state=5172,this.indexParameters(),this.state=5173,this.match(t.CLOSE_PAREN),this.state=5174,this.optionalInclude(),this.state=5175,this.optionalRelOptions(),this.state=5176,this.optionalTablespace(),this.state=5177,this.whereClause();break;case 2:this.enterOuterAlt(s,2),this.state=5179,this.match(t.CREATE),this.state=5181,this.errorHandler.sync(this),e=this.tokenStream.LA(1),98===e&&(this.state=5180,this.match(t.UNIQUE)),this.state=5183,this.match(t.INDEX),this.state=5185,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5184,this.match(t.CONCURRENTLY)),this.state=5187,this.match(t.IF_P),this.state=5188,this.match(t.NOT),this.state=5189,this.match(t.EXISTS),this.state=5190,this.name(),this.state=5191,this.match(t.ON),this.state=5192,this.relationExpression(),this.state=5193,this.optionalAccessMethodClause(),this.state=5194,this.match(t.OPEN_PAREN),this.state=5195,this.indexParameters(),this.state=5196,this.match(t.CLOSE_PAREN),this.state=5197,this.optionalInclude(),this.state=5198,this.optionalRelOptions(),this.state=5199,this.optionalTablespace(),this.state=5200,this.whereClause()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalAccessMethodClause(){let e=new _n(this.context,this.state);this.enterRule(e,534,t.RULE_optionalAccessMethodClause);try{switch(this.state=5207,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=5204,this.match(t.USING),this.state=5205,this.name();break;case t.OPEN_PAREN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexParameters(){let e,s=new Pn(this.context,this.state);this.enterRule(s,536,t.RULE_indexParameters);try{for(this.enterOuterAlt(s,1),this.state=5209,this.indexElement(),this.state=5214,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5210,this.match(t.COMMA),this.state=5211,this.indexElement(),this.state=5216,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexElemOptions(){let e=new Mn(this.context,this.state);this.enterRule(e,538,t.RULE_indexElemOptions);try{switch(this.state=5228,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,273,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5217,this.optionalCollate(),this.state=5218,this.optionalClass(),this.state=5219,this.optionalAscOrDesc(),this.state=5220,this.optionalNullsOrder();break;case 2:this.enterOuterAlt(e,2),this.state=5222,this.optionalCollate(),this.state=5223,this.anyName(),this.state=5224,this.relOptions(),this.state=5225,this.optionalAscOrDesc(),this.state=5226,this.optionalNullsOrder()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexElement(){let e=new dn(this.context,this.state);this.enterRule(e,540,t.RULE_indexElement);try{switch(this.state=5241,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5230,this.columnId(),this.state=5231,this.indexElemOptions();break;case 2:this.enterOuterAlt(e,2),this.state=5233,this.functionExpressionWindowless(),this.state=5234,this.indexElemOptions();break;case 3:this.enterOuterAlt(e,3),this.state=5236,this.match(t.OPEN_PAREN),this.state=5237,this.expression1(),this.state=5238,this.match(t.CLOSE_PAREN),this.state=5239,this.indexElemOptions()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalInclude(){let e,s=new Un(this.context,this.state);this.enterRule(s,542,t.RULE_optionalInclude);try{switch(this.state=5256,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INCLUDE:for(this.enterOuterAlt(s,1),this.state=5243,this.match(t.INCLUDE),this.state=5244,this.match(t.OPEN_PAREN),this.state=5245,this.indexElement(),this.state=5250,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5246,this.match(t.COMMA),this.state=5247,this.indexElement(),this.state=5252,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=5253,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:case t.WHERE:case t.WITH:case t.TABLESPACE:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalCollate(){let e=new mn(this.context,this.state);this.enterRule(e,544,t.RULE_optionalCollate);try{switch(this.state=5261,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,277,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5258,this.match(t.COLLATE),this.state=5259,this.anyName();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalClass(){let e=new Dn(this.context,this.state);this.enterRule(e,546,t.RULE_optionalClass);try{switch(this.state=5265,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,278,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5263,this.anyName();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalAscOrDesc(){let e=new pn(this.context,this.state);this.enterRule(e,548,t.RULE_optionalAscOrDesc);try{switch(this.state=5270,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ASC:this.enterOuterAlt(e,1),this.state=5267,this.match(t.ASC);break;case t.DESC:this.enterOuterAlt(e,2),this.state=5268,this.match(t.DESC);break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CREATE:case t.FETCH:case t.FOR:case t.GRANT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.RETURNING:case t.WITH:case t.NULLS_P:case t.RANGE:case t.ROWS:case t.GROUPS:case t.LOOP:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalNullsOrder(){let e=new gn(this.context,this.state);this.enterRule(e,550,t.RULE_optionalNullsOrder);try{switch(this.state=5277,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,280,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5272,this.match(t.NULLS_P),this.state=5273,this.match(t.FIRST_P);break;case 2:this.enterOuterAlt(e,2),this.state=5274,this.match(t.NULLS_P),this.state=5275,this.match(t.LAST_P);break;case 3:this.enterOuterAlt(e,3)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createFunctionStatement(){let e,s=new xn(this.context,this.state);this.enterRule(s,552,t.RULE_createFunctionStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=5279,this.match(t.CREATE),this.state=5280,this.optionalOrReplace(),this.state=5281,e=this.tokenStream.LA(1),211===e||289===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5282,this.functionName(),this.state=5283,this.match(t.OPEN_PAREN),this.state=5285,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268421||68===e||92===e||!(e-101&-32)&&1<<e-101&4294967265||!(e-133&-32)&&1<<e-133&4294967295||!(e-165&-32)&&1<<e-165&4294967295||!(e-197&-32)&&1<<e-197&4294967295||!(e-229&-32)&&1<<e-229&4276092927||!(e-261&-32)&&1<<e-261&4294967295||!(e-293&-32)&&1<<e-293&4294967295||!(e-325&-32)&&1<<e-325&4294967295||!(e-357&-32)&&1<<e-357&4294967295||!(e-389&-32)&&1<<e-389&4294967295||!(e-421&-32)&&1<<e-421&4294967295||!(e-453&-32)&&1<<e-453&4294967293||!(e-485&-32)&&1<<e-485&4293656575||!(e-517&-32)&&1<<e-517&4294967291||!(e-549&-32)&&1<<e-549&4294967295||!(e-581&-32)&&1<<e-581&4294967295||!(e-613&-32)&&1<<e-613&301989887||661===e||662===e)&&(this.state=5284,this.functionArgumentsWithDefaultsList()),this.state=5287,this.match(t.CLOSE_PAREN),this.state=5297,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,283,this.context)))switch(this.state=5288,this.match(t.RETURNS),this.state=5295,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,282,this.context)){case 1:this.state=5289,this.functionReturn();break;case 2:this.state=5290,this.match(t.TABLE),this.state=5291,this.match(t.OPEN_PAREN),this.state=5292,this.tableFunctionColumnList(),this.state=5293,this.match(t.CLOSE_PAREN)}this.state=5299,this.createFunctionOptionList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalOrReplace(){let e=new kn(this.context,this.state);this.enterRule(e,554,t.RULE_optionalOrReplace);try{switch(this.state=5304,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OR:this.enterOuterAlt(e,1),this.state=5301,this.match(t.OR),this.state=5302,this.match(t.REPLACE);break;case t.AGGREGATE:case t.FUNCTION:case t.LANGUAGE:case t.PROCEDURAL:case t.PROCEDURE:case t.RULE:case t.TRUSTED:case t.TRANSFORM:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionArgumentsList(){let e,s=new Hn(this.context,this.state);this.enterRule(s,556,t.RULE_functionArgumentsList);try{for(this.enterOuterAlt(s,1),this.state=5306,this.functionArgument(),this.state=5311,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5307,this.match(t.COMMA),this.state=5308,this.functionArgument(),this.state=5313,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionWithArgumentTypesList(){let e,s=new Gn(this.context,this.state);this.enterRule(s,558,t.RULE_functionWithArgumentTypesList);try{for(this.enterOuterAlt(s,1),this.state=5314,this.functionWithArgumentTypes(),this.state=5319,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5315,this.match(t.COMMA),this.state=5316,this.functionWithArgumentTypes(),this.state=5321,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionWithArgumentTypes(){let e,s=new Fn(this.context,this.state);this.enterRule(s,560,t.RULE_functionWithArgumentTypes);try{switch(this.state=5334,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,289,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5322,this.functionName(),this.state=5323,this.match(t.OPEN_PAREN),this.state=5325,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268421||68===e||92===e||!(e-101&-32)&&1<<e-101&4294967265||!(e-133&-32)&&1<<e-133&4294967295||!(e-165&-32)&&1<<e-165&4294967295||!(e-197&-32)&&1<<e-197&4294967295||!(e-229&-32)&&1<<e-229&4276092927||!(e-261&-32)&&1<<e-261&4294967295||!(e-293&-32)&&1<<e-293&4294967295||!(e-325&-32)&&1<<e-325&4294967295||!(e-357&-32)&&1<<e-357&4294967295||!(e-389&-32)&&1<<e-389&4294967295||!(e-421&-32)&&1<<e-421&4294967295||!(e-453&-32)&&1<<e-453&4294967293||!(e-485&-32)&&1<<e-485&4293656575||!(e-517&-32)&&1<<e-517&4294967291||!(e-549&-32)&&1<<e-549&4294967295||!(e-581&-32)&&1<<e-581&4294967295||!(e-613&-32)&&1<<e-613&301989887||661===e||662===e)&&(this.state=5324,this.functionArgumentsList()),this.state=5327,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(s,2),this.state=5329,this.typeFunctionNameKeyword();break;case 3:this.enterOuterAlt(s,3),this.state=5330,this.columnId(),this.state=5332,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(4===e||11===e)&&(this.state=5331,this.indirection())}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionArgumentsWithDefaultsList(){let e,s=new vn(this.context,this.state);this.enterRule(s,562,t.RULE_functionArgumentsWithDefaultsList);try{for(this.enterOuterAlt(s,1),this.state=5336,this.functionArgumentWithDefault(),this.state=5341,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5337,this.match(t.COMMA),this.state=5338,this.functionArgumentWithDefault(),this.state=5343,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionArgumentWithDefault(){let e,s=new Bn(this.context,this.state);this.enterRule(s,564,t.RULE_functionArgumentWithDefault);try{this.enterOuterAlt(s,1),this.state=5344,this.functionArgument(),this.state=5347,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(10===e||53===e)&&(this.state=5345,e=this.tokenStream.LA(1),10===e||53===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5346,this.expression1())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionArgument(){let e=new yn(this.context,this.state);this.enterRule(e,566,t.RULE_functionArgument);try{switch(this.state=5362,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,294,this.context)){case 1:if(this.enterOuterAlt(e,1),1===(this.state=5349,this.argumentClass(),this.state=5351,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,292,this.context)))this.state=5350,this.parameterName();this.state=5353,this.functionType();break;case 2:if(this.enterOuterAlt(e,2),1===(this.state=5355,this.parameterName(),this.state=5357,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,293,this.context)))this.state=5356,this.argumentClass();this.state=5359,this.functionType();break;case 3:this.enterOuterAlt(e,3),this.state=5361,this.functionType()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}argumentClass(){let e=new fn(this.context,this.state);this.enterRule(e,568,t.RULE_argumentClass);try{switch(this.state=5371,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IN_P:if(1===(this.enterOuterAlt(e,1),this.state=5364,this.match(t.IN_P),this.state=5366,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)))this.state=5365,this.match(t.OUT_P);break;case t.OUT_P:this.enterOuterAlt(e,2),this.state=5368,this.match(t.OUT_P);break;case t.INOUT:this.enterOuterAlt(e,3),this.state=5369,this.match(t.INOUT);break;case t.VARIADIC:this.enterOuterAlt(e,4),this.state=5370,this.match(t.VARIADIC);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}parameterName(){let e=new Yn(this.context,this.state);this.enterRule(e,570,t.RULE_parameterName);try{switch(this.state=5377,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.COLUMNS:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=5373,this.typeFunctionName();break;case t.REPLACE:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.REVERSE:case t.LOG:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:this.enterOuterAlt(e,2),this.state=5374,this.builtinFunctionName();break;case t.LEFT:this.enterOuterAlt(e,3),this.state=5375,this.match(t.LEFT);break;case t.RIGHT:this.enterOuterAlt(e,4),this.state=5376,this.match(t.RIGHT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionReturn(){let e=new wn(this.context,this.state);this.enterRule(e,572,t.RULE_functionReturn);try{this.enterOuterAlt(e,1),this.state=5379,this.functionType()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionType(){let e,s=new bn(this.context,this.state);this.enterRule(s,574,t.RULE_functionType);try{switch(this.state=5395,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,300,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5381,this.typeName();break;case 2:switch(this.enterOuterAlt(s,2),this.state=5383,this.errorHandler.sync(this),e=this.tokenStream.LA(1),408===e&&(this.state=5382,this.match(t.SETOF)),this.state=5389,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.REPLACE:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.REVERSE:case t.LOG:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:this.state=5385,this.builtinFunctionName();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.COLUMNS:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=5386,this.typeFunctionName();break;case t.LEFT:this.state=5387,this.match(t.LEFT);break;case t.RIGHT:this.state=5388,this.match(t.RIGHT);break;default:throw new he(this)}this.state=5391,this.attributes(),this.state=5392,this.match(t.PERCENT),this.state=5393,this.match(t.TYPE_P)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}aggregateArguments(){let e=new Wn(this.context,this.state);this.enterRule(e,576,t.RULE_aggregateArguments);try{switch(this.enterOuterAlt(e,1),this.state=5397,this.match(t.OPEN_PAREN),this.state=5408,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,301,this.context)){case 1:this.state=5398,this.match(t.STAR);break;case 2:this.state=5399,this.aggregateArgumentsList();break;case 3:this.state=5400,this.match(t.ORDER),this.state=5401,this.match(t.BY),this.state=5402,this.aggregateArgumentsList();break;case 4:this.state=5403,this.aggregateArgumentsList(),this.state=5404,this.match(t.ORDER),this.state=5405,this.match(t.BY),this.state=5406,this.aggregateArgumentsList()}this.state=5410,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}aggregateArgumentsList(){let e,s=new Vn(this.context,this.state);this.enterRule(s,578,t.RULE_aggregateArgumentsList);try{for(this.enterOuterAlt(s,1),this.state=5412,this.functionArgument(),this.state=5417,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5413,this.match(t.COMMA),this.state=5414,this.functionArgument(),this.state=5419,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}aggregateWithArgumentTypes(){let e=new Xn(this.context,this.state);this.enterRule(e,580,t.RULE_aggregateWithArgumentTypes);try{this.enterOuterAlt(e,1),this.state=5420,this.functionName(),this.state=5421,this.aggregateArguments()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}aggregateWithArgumentTypesList(){let e,s=new Kn(this.context,this.state);this.enterRule(s,582,t.RULE_aggregateWithArgumentTypesList);try{for(this.enterOuterAlt(s,1),this.state=5423,this.aggregateWithArgumentTypes(),this.state=5428,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5424,this.match(t.COMMA),this.state=5425,this.aggregateWithArgumentTypes(),this.state=5430,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createFunctionOptionList(){let e,s=new Qn(this.context,this.state);this.enterRule(s,584,t.RULE_createFunctionOptionList);try{this.enterOuterAlt(s,1),this.state=5432,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=5431,this.createFunctionOptionItem(),this.state=5434,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(36===e||77===e||104===e||149===e||170===e||205===e||222===e||238===e||241===e||!(e-306&-32)&&1<<e-306&34619529||339===e||370===e||!(e-443&-32)&&1<<e-443&196609);this.ParseRoutineBody(s)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}commonFunctionOptionItem(){let e=new Jn(this.context,this.state);this.enterRule(e,586,t.RULE_commonFunctionOptionItem);try{switch(this.state=5473,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,305,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5438,this.match(t.CALLED),this.state=5439,this.match(t.ON),this.state=5440,this.match(t.NULL_P),this.state=5441,this.match(t.INPUT_P);break;case 2:this.enterOuterAlt(e,2),this.state=5442,this.match(t.RETURNS),this.state=5443,this.match(t.NULL_P),this.state=5444,this.match(t.ON),this.state=5445,this.match(t.NULL_P),this.state=5446,this.match(t.INPUT_P);break;case 3:this.enterOuterAlt(e,3),this.state=5447,this.match(t.STRICT_P);break;case 4:this.enterOuterAlt(e,4),this.state=5448,this.match(t.IMMUTABLE);break;case 5:this.enterOuterAlt(e,5),this.state=5449,this.match(t.STABLE);break;case 6:this.enterOuterAlt(e,6),this.state=5450,this.match(t.VOLATILE);break;case 7:this.enterOuterAlt(e,7),this.state=5451,this.match(t.EXTERNAL),this.state=5452,this.match(t.SECURITY),this.state=5453,this.match(t.DEFINER);break;case 8:this.enterOuterAlt(e,8),this.state=5454,this.match(t.EXTERNAL),this.state=5455,this.match(t.SECURITY),this.state=5456,this.match(t.INVOKER);break;case 9:this.enterOuterAlt(e,9),this.state=5457,this.match(t.SECURITY),this.state=5458,this.match(t.DEFINER);break;case 10:this.enterOuterAlt(e,10),this.state=5459,this.match(t.SECURITY),this.state=5460,this.match(t.INVOKER);break;case 11:this.enterOuterAlt(e,11),this.state=5461,this.match(t.LEAKPROOF);break;case 12:this.enterOuterAlt(e,12),this.state=5462,this.match(t.NOT),this.state=5463,this.match(t.LEAKPROOF);break;case 13:this.enterOuterAlt(e,13),this.state=5464,this.match(t.COST),this.state=5465,this.numericOnly();break;case 14:this.enterOuterAlt(e,14),this.state=5466,this.match(t.ROWS),this.state=5467,this.numericOnly();break;case 15:this.enterOuterAlt(e,15),this.state=5468,this.match(t.SUPPORT),this.state=5469,this.anyName();break;case 16:this.enterOuterAlt(e,16),this.state=5470,this.functionSetResetClause();break;case 17:this.enterOuterAlt(e,17),this.state=5471,this.match(t.PARALLEL),this.state=5472,this.columnId()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createFunctionOptionItem(){let e=new Zn(this.context,this.state);this.enterRule(e,588,t.RULE_createFunctionOptionItem);try{switch(this.state=5483,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.enterOuterAlt(e,1),this.state=5475,this.match(t.AS),this.state=5476,this.functionAs();break;case t.LANGUAGE:this.enterOuterAlt(e,2),this.state=5477,this.match(t.LANGUAGE),this.state=5478,this.nonReservedWordOrSconst();break;case t.TRANSFORM:this.enterOuterAlt(e,3),this.state=5479,this.match(t.TRANSFORM),this.state=5480,this.transformTypeList();break;case t.WINDOW:this.enterOuterAlt(e,4),this.state=5481,this.match(t.WINDOW);break;case t.NOT:case t.CALLED:case t.COST:case t.EXTERNAL:case t.IMMUTABLE:case t.LEAKPROOF:case t.RESET:case t.RETURNS:case t.ROWS:case t.SECURITY:case t.SET:case t.STABLE:case t.STRICT_P:case t.VOLATILE:case t.SUPPORT:case t.PARALLEL:this.enterOuterAlt(e,5),this.state=5482,this.commonFunctionOptionItem();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionAs(){let e=new qn(this.context,this.state);this.enterRule(e,590,t.RULE_functionAs);try{switch(this.state=5490,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,307,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5485,e._def=this.sconst();break;case 2:this.enterOuterAlt(e,2),this.state=5486,this.sconst(),this.state=5487,this.match(t.COMMA),this.state=5488,this.sconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transformTypeList(){let e,s=new jn(this.context,this.state);this.enterRule(s,592,t.RULE_transformTypeList);try{for(this.enterOuterAlt(s,1),this.state=5492,this.match(t.FOR),this.state=5493,this.match(t.TYPE_P),this.state=5494,this.typeName(),this.state=5501,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5495,this.match(t.COMMA),this.state=5496,this.match(t.FOR),this.state=5497,this.match(t.TYPE_P),this.state=5498,this.typeName(),this.state=5503,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalDefinition(){let e=new zn(this.context,this.state);this.enterRule(e,594,t.RULE_optionalDefinition);try{switch(this.state=5507,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=5504,this.match(t.WITH),this.state=5505,this.definition();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CHECK:case t.COLLATE:case t.CONSTRAINT:case t.DEFAULT:case t.DEFERRABLE:case t.INITIALLY:case t.INTO:case t.NOT:case t.NULL_P:case t.PRIMARY:case t.REFERENCES:case t.UNIQUE:case t.USING:case t.WHERE:case t.NO:case t.GENERATED:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableFunctionColumn(){let e=new $n(this.context,this.state);this.enterRule(e,596,t.RULE_tableFunctionColumn);try{this.enterOuterAlt(e,1),this.state=5509,this.parameterName(),this.state=5510,this.functionType()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableFunctionColumnList(){let e,s=new th(this.context,this.state);this.enterRule(s,598,t.RULE_tableFunctionColumnList);try{for(this.enterOuterAlt(s,1),this.state=5512,this.tableFunctionColumn(),this.state=5517,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5513,this.match(t.COMMA),this.state=5514,this.tableFunctionColumn(),this.state=5519,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterFunctionStatement(){let e,s=new eh(this.context,this.state);this.enterRule(s,600,t.RULE_alterFunctionStatement);try{this.enterOuterAlt(s,1),this.state=5520,this.match(t.ALTER),this.state=5521,e=this.tokenStream.LA(1),211===e||289===e||442===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5522,this.functionWithArgumentTypes(),this.state=5524,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=5523,this.commonFunctionOptionItem(),this.state=5526,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(77===e||149===e||170===e||205===e||222===e||241===e||!(e-306&-32)&&1<<e-306&34619529||339===e||370===e||459===e||460===e);this.state=5529,this.errorHandler.sync(this),e=this.tokenStream.LA(1),308===e&&(this.state=5528,this.match(t.RESTRICT))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}removeFunctionStatement(){let e=new sh(this.context,this.state);this.enterRule(e,602,t.RULE_removeFunctionStatement);try{switch(this.state=5567,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,313,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5531,this.match(t.DROP),this.state=5532,this.match(t.FUNCTION),this.state=5533,this.functionWithArgumentTypesList(),this.state=5534,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=5536,this.match(t.DROP),this.state=5537,this.match(t.FUNCTION),this.state=5538,this.match(t.IF_P),this.state=5539,this.match(t.EXISTS),this.state=5540,this.functionWithArgumentTypesList(),this.state=5541,this.optionalDropBehavior();break;case 3:this.enterOuterAlt(e,3),this.state=5543,this.match(t.DROP),this.state=5544,this.match(t.PROCEDURE),this.state=5545,this.functionWithArgumentTypesList(),this.state=5546,this.optionalDropBehavior();break;case 4:this.enterOuterAlt(e,4),this.state=5548,this.match(t.DROP),this.state=5549,this.match(t.PROCEDURE),this.state=5550,this.match(t.IF_P),this.state=5551,this.match(t.EXISTS),this.state=5552,this.functionWithArgumentTypesList(),this.state=5553,this.optionalDropBehavior();break;case 5:this.enterOuterAlt(e,5),this.state=5555,this.match(t.DROP),this.state=5556,this.match(t.ROUTINE),this.state=5557,this.functionWithArgumentTypesList(),this.state=5558,this.optionalDropBehavior();break;case 6:this.enterOuterAlt(e,6),this.state=5560,this.match(t.DROP),this.state=5561,this.match(t.ROUTINE),this.state=5562,this.match(t.IF_P),this.state=5563,this.match(t.EXISTS),this.state=5564,this.functionWithArgumentTypesList(),this.state=5565,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}removeAggregateStatement(){let e=new ah(this.context,this.state);this.enterRule(e,604,t.RULE_removeAggregateStatement);try{switch(this.state=5581,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,314,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5569,this.match(t.DROP),this.state=5570,this.match(t.AGGREGATE),this.state=5571,this.aggregateWithArgumentTypesList(),this.state=5572,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=5574,this.match(t.DROP),this.state=5575,this.match(t.AGGREGATE),this.state=5576,this.match(t.IF_P),this.state=5577,this.match(t.EXISTS),this.state=5578,this.aggregateWithArgumentTypesList(),this.state=5579,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}removeOperatorStatement(){let e=new ih(this.context,this.state);this.enterRule(e,606,t.RULE_removeOperatorStatement);try{switch(this.state=5595,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,315,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5583,this.match(t.DROP),this.state=5584,this.match(t.OPERATOR),this.state=5585,this.operatorWithArgumentTypesList(),this.state=5586,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=5588,this.match(t.DROP),this.state=5589,this.match(t.OPERATOR),this.state=5590,this.match(t.IF_P),this.state=5591,this.match(t.EXISTS),this.state=5592,this.operatorWithArgumentTypesList(),this.state=5593,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}operatorArgumentTypes(){let e=new rh(this.context,this.state);this.enterRule(e,608,t.RULE_operatorArgumentTypes);try{switch(this.state=5619,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,316,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5597,this.match(t.OPEN_PAREN),this.state=5598,this.typeName(),this.state=5599,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2),this.state=5601,this.match(t.OPEN_PAREN),this.state=5602,this.typeName(),this.state=5603,this.match(t.COMMA),this.state=5604,this.typeName(),this.state=5605,this.match(t.CLOSE_PAREN);break;case 3:this.enterOuterAlt(e,3),this.state=5607,this.match(t.OPEN_PAREN),this.state=5608,this.match(t.NONE),this.state=5609,this.match(t.COMMA),this.state=5610,this.typeName(),this.state=5611,this.match(t.CLOSE_PAREN);break;case 4:this.enterOuterAlt(e,4),this.state=5613,this.match(t.OPEN_PAREN),this.state=5614,this.typeName(),this.state=5615,this.match(t.COMMA),this.state=5616,this.match(t.NONE),this.state=5617,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}anyOperator(){let e,s=new ch(this.context,this.state);this.enterRule(s,610,t.RULE_anyOperator);try{for(this.enterOuterAlt(s,1),this.state=5626,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-33&-32)&&1<<e-33&286268421||!(e-92&-32)&&1<<e-92&2298478593||!(e-124&-32)&&1<<e-124&4294967269||!(e-156&-32)&&1<<e-156&4294967295||!(e-188&-32)&&1<<e-188&4294967295||!(e-220&-32)&&1<<e-220&3221225471||!(e-252&-32)&&1<<e-252&4294967293||!(e-284&-32)&&1<<e-284&4294967295||!(e-316&-32)&&1<<e-316&4294967295||!(e-348&-32)&&1<<e-348&4294967295||!(e-380&-32)&&1<<e-380&4294967295||!(e-412&-32)&&1<<e-412&4294967295||!(e-444&-32)&&1<<e-444&4026530815||!(e-476&-32)&&1<<e-476&3623878655||!(e-508&-32)&&1<<e-508&4294965247||!(e-540&-32)&&1<<e-540&4294967295||!(e-572&-32)&&1<<e-572&4294967295||!(e-604&-32)&&1<<e-604&4294967295||!(e-636&-32)&&1<<e-636&100663331;)this.state=5621,this.columnId(),this.state=5622,this.match(t.DOT),this.state=5628,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=5629,this.allOperator()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorWithArgumentTypesList(){let e,s=new nh(this.context,this.state);this.enterRule(s,612,t.RULE_operatorWithArgumentTypesList);try{for(this.enterOuterAlt(s,1),this.state=5631,this.operatorWithArgumentTypes(),this.state=5636,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5632,this.match(t.COMMA),this.state=5633,this.operatorWithArgumentTypes(),this.state=5638,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorWithArgumentTypes(){let e=new hh(this.context,this.state);this.enterRule(e,614,t.RULE_operatorWithArgumentTypes);try{this.enterOuterAlt(e,1),this.state=5639,this.anyOperator(),this.state=5640,this.operatorArgumentTypes()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}doStatement(){let e=new Eh(this.context,this.state);this.enterRule(e,616,t.RULE_doStatement);try{this.enterOuterAlt(e,1),this.state=5642,this.match(t.DO),this.state=5643,this.doStatementOptionsList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}doStatementOptionsList(){let e,s=new Th(this.context,this.state);this.enterRule(s,618,t.RULE_doStatementOptionsList);try{this.enterOuterAlt(s,1),this.state=5646,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=5645,this.doStatementOptionItem(),this.state=5648,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(238===e||!(e-645&-32)&&1<<e-645&67108885)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}doStatementOptionItem(){let e=new oh(this.context,this.state);this.enterRule(e,620,t.RULE_doStatementOptionItem);try{switch(this.state=5653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=5650,this.sconst();break;case t.LANGUAGE:this.enterOuterAlt(e,2),this.state=5651,this.match(t.LANGUAGE),this.state=5652,this.nonReservedWordOrSconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createCastStatement(){let e=new Rh(this.context,this.state);this.enterRule(e,622,t.RULE_createCastStatement);try{switch(this.state=5689,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,321,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5655,this.match(t.CREATE),this.state=5656,this.match(t.CAST),this.state=5657,this.match(t.OPEN_PAREN),this.state=5658,this.typeName(),this.state=5659,this.match(t.AS),this.state=5660,this.typeName(),this.state=5661,this.match(t.CLOSE_PAREN),this.state=5662,this.match(t.WITH),this.state=5663,this.match(t.FUNCTION),this.state=5664,this.functionWithArgumentTypes(),this.state=5665,this.castContext();break;case 2:this.enterOuterAlt(e,2),this.state=5667,this.match(t.CREATE),this.state=5668,this.match(t.CAST),this.state=5669,this.match(t.OPEN_PAREN),this.state=5670,this.typeName(),this.state=5671,this.match(t.AS),this.state=5672,this.typeName(),this.state=5673,this.match(t.CLOSE_PAREN),this.state=5674,this.match(t.WITHOUT),this.state=5675,this.match(t.FUNCTION),this.state=5676,this.castContext();break;case 3:this.enterOuterAlt(e,3),this.state=5678,this.match(t.CREATE),this.state=5679,this.match(t.CAST),this.state=5680,this.match(t.OPEN_PAREN),this.state=5681,this.typeName(),this.state=5682,this.match(t.AS),this.state=5683,this.typeName(),this.state=5684,this.match(t.CLOSE_PAREN),this.state=5685,this.match(t.WITH),this.state=5686,this.match(t.INOUT),this.state=5687,this.castContext()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}castContext(){let e=new Ah(this.context,this.state);this.enterRule(e,624,t.RULE_castContext);try{switch(this.state=5696,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,322,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5691,this.match(t.AS),this.state=5692,this.match(t.IMPLICIT_P);break;case 2:this.enterOuterAlt(e,2),this.state=5693,this.match(t.AS),this.state=5694,this.match(t.ASSIGNMENT);break;case 3:this.enterOuterAlt(e,3)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropCastStatement(){let e=new Sh(this.context,this.state);this.enterRule(e,626,t.RULE_dropCastStatement);try{this.enterOuterAlt(e,1),this.state=5698,this.match(t.DROP),this.state=5699,this.match(t.CAST),this.state=5700,this.optionalIfExists(),this.state=5701,this.match(t.OPEN_PAREN),this.state=5702,this.typeName(),this.state=5703,this.match(t.AS),this.state=5704,this.typeName(),this.state=5705,this.match(t.CLOSE_PAREN),this.state=5706,this.optionalDropBehavior()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalIfExists(){let e=new lh(this.context,this.state);this.enterRule(e,628,t.RULE_optionalIfExists);try{switch(this.state=5711,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IF_P:this.enterOuterAlt(e,1),this.state=5708,this.match(t.IF_P),this.state=5709,this.match(t.EXISTS);break;case t.OPEN_PAREN:case t.FOR:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createTransformStatement(){let e=new Oh(this.context,this.state);this.enterRule(e,630,t.RULE_createTransformStatement);try{this.enterOuterAlt(e,1),this.state=5713,this.match(t.CREATE),this.state=5714,this.optionalOrReplace(),this.state=5715,this.match(t.TRANSFORM),this.state=5716,this.match(t.FOR),this.state=5717,this.typeName(),this.state=5718,this.match(t.LANGUAGE),this.state=5719,this.name(),this.state=5720,this.match(t.OPEN_PAREN),this.state=5721,this.transformElementList(),this.state=5722,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transformElementList(){let e=new Ih(this.context,this.state);this.enterRule(e,632,t.RULE_transformElementList);try{switch(this.state=5758,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,324,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5724,this.match(t.FROM),this.state=5725,this.match(t.SQL_P),this.state=5726,this.match(t.WITH),this.state=5727,this.match(t.FUNCTION),this.state=5728,this.functionWithArgumentTypes(),this.state=5729,this.match(t.COMMA),this.state=5730,this.match(t.TO),this.state=5731,this.match(t.SQL_P),this.state=5732,this.match(t.WITH),this.state=5733,this.match(t.FUNCTION),this.state=5734,this.functionWithArgumentTypes();break;case 2:this.enterOuterAlt(e,2),this.state=5736,this.match(t.TO),this.state=5737,this.match(t.SQL_P),this.state=5738,this.match(t.WITH),this.state=5739,this.match(t.FUNCTION),this.state=5740,this.functionWithArgumentTypes(),this.state=5741,this.match(t.COMMA),this.state=5742,this.match(t.FROM),this.state=5743,this.match(t.SQL_P),this.state=5744,this.match(t.WITH),this.state=5745,this.match(t.FUNCTION),this.state=5746,this.functionWithArgumentTypes();break;case 3:this.enterOuterAlt(e,3),this.state=5748,this.match(t.FROM),this.state=5749,this.match(t.SQL_P),this.state=5750,this.match(t.WITH),this.state=5751,this.match(t.FUNCTION),this.state=5752,this.functionWithArgumentTypes();break;case 4:this.enterOuterAlt(e,4),this.state=5753,this.match(t.TO),this.state=5754,this.match(t.SQL_P),this.state=5755,this.match(t.WITH),this.state=5756,this.match(t.FUNCTION),this.state=5757,this.functionWithArgumentTypes()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropTransformStatement(){let e=new uh(this.context,this.state);this.enterRule(e,634,t.RULE_dropTransformStatement);try{this.enterOuterAlt(e,1),this.state=5760,this.match(t.DROP),this.state=5761,this.match(t.TRANSFORM),this.state=5762,this.optionalIfExists(),this.state=5763,this.match(t.FOR),this.state=5764,this.typeName(),this.state=5765,this.match(t.LANGUAGE),this.state=5766,this.name(),this.state=5767,this.optionalDropBehavior()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}reindexStatement(){let e,s=new Nh(this.context,this.state);this.enterRule(s,636,t.RULE_reindexStatement);try{switch(this.state=5830,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,335,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5769,this.match(t.REINDEX),this.state=5774,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=5770,this.match(t.OPEN_PAREN),this.state=5771,this.reindexOptionList(),this.state=5772,this.match(t.CLOSE_PAREN)),this.state=5776,this.reindexTargetType(),this.state=5778,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5777,this.match(t.CONCURRENTLY)),this.state=5780,this.qualifiedName();break;case 2:this.enterOuterAlt(s,2),this.state=5782,this.match(t.REINDEX),this.state=5787,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=5783,this.match(t.OPEN_PAREN),this.state=5784,this.reindexOptionList(),this.state=5785,this.match(t.CLOSE_PAREN)),this.state=5789,this.match(t.DATABASE),this.state=5791,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5790,this.match(t.CONCURRENTLY)),this.state=5793,this.databaseName();break;case 3:this.enterOuterAlt(s,3),this.state=5794,this.match(t.REINDEX),this.state=5799,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=5795,this.match(t.OPEN_PAREN),this.state=5796,this.reindexOptionList(),this.state=5797,this.match(t.CLOSE_PAREN)),this.state=5801,this.match(t.SCHEMA),this.state=5803,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5802,this.match(t.CONCURRENTLY)),this.state=5805,this.schemaName();break;case 4:this.enterOuterAlt(s,4),this.state=5806,this.match(t.REINDEX),this.state=5811,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=5807,this.match(t.OPEN_PAREN),this.state=5808,this.reindexOptionList(),this.state=5809,this.match(t.CLOSE_PAREN)),this.state=5813,this.match(t.INDEX),this.state=5815,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5814,this.match(t.CONCURRENTLY)),this.state=5817,this.indexName();break;case 5:this.enterOuterAlt(s,5),this.state=5818,this.match(t.REINDEX),this.state=5823,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=5819,this.match(t.OPEN_PAREN),this.state=5820,this.reindexOptionList(),this.state=5821,this.match(t.CLOSE_PAREN)),this.state=5825,this.match(t.SYSTEM_P),this.state=5827,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=5826,this.match(t.CONCURRENTLY)),this.state=5829,this.name()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}reindexTargetType(){let e,s=new Lh(this.context,this.state);this.enterRule(s,638,t.RULE_reindexTargetType);try{this.enterOuterAlt(s,1),this.state=5832,e=this.tokenStream.LA(1),92===e||342===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}reindexOptionList(){let e,s=new Ch(this.context,this.state);this.enterRule(s,640,t.RULE_reindexOptionList);try{for(this.enterOuterAlt(s,1),this.state=5834,this.reindexOptionElement(),this.state=5839,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=5835,this.match(t.COMMA),this.state=5836,this.reindexOptionElement(),this.state=5841,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}reindexOptionElement(){let e,s=new _h(this.context,this.state);this.enterRule(s,642,t.RULE_reindexOptionElement);try{this.enterOuterAlt(s,1),this.state=5842,e=this.tokenStream.LA(1),109===e||128===e||344===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTablespaceStatement(){let e=new Ph(this.context,this.state);this.enterRule(e,644,t.RULE_alterTablespaceStatement);try{switch(this.state=5856,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,337,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5844,this.match(t.ALTER),this.state=5845,this.match(t.TABLESPACE),this.state=5846,this.name(),this.state=5847,this.match(t.SET),this.state=5848,this.relOptions();break;case 2:this.enterOuterAlt(e,2),this.state=5850,this.match(t.ALTER),this.state=5851,this.match(t.TABLESPACE),this.state=5852,this.name(),this.state=5853,this.match(t.RESET),this.state=5854,this.relOptions()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}renameStatement(){let e=new Mh(this.context,this.state);this.enterRule(e,646,t.RULE_renameStatement);try{switch(this.state=6295,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,341,this.context)){case 1:this.enterOuterAlt(e,1),this.state=5858,this.match(t.ALTER),this.state=5859,this.match(t.AGGREGATE),this.state=5860,this.aggregateWithArgumentTypes(),this.state=5861,this.match(t.RENAME),this.state=5862,this.match(t.TO),this.state=5863,this.name();break;case 2:this.enterOuterAlt(e,2),this.state=5865,this.match(t.ALTER),this.state=5866,this.match(t.COLLATION),this.state=5867,this.anyName(),this.state=5868,this.match(t.RENAME),this.state=5869,this.match(t.TO),this.state=5870,this.name();break;case 3:this.enterOuterAlt(e,3),this.state=5872,this.match(t.ALTER),this.state=5873,this.match(t.CONVERSION_P),this.state=5874,this.anyName(),this.state=5875,this.match(t.RENAME),this.state=5876,this.match(t.TO),this.state=5877,this.name();break;case 4:this.enterOuterAlt(e,4),this.state=5879,this.match(t.ALTER),this.state=5880,this.match(t.DATABASE),this.state=5881,this.databaseName(),this.state=5882,this.match(t.RENAME),this.state=5883,this.match(t.TO),this.state=5884,this.name();break;case 5:this.enterOuterAlt(e,5),this.state=5886,this.match(t.ALTER),this.state=5887,this.match(t.DOMAIN_P),this.state=5888,this.anyName(),this.state=5889,this.match(t.RENAME),this.state=5890,this.match(t.TO),this.state=5891,this.name();break;case 6:this.enterOuterAlt(e,6),this.state=5893,this.match(t.ALTER),this.state=5894,this.match(t.DOMAIN_P),this.state=5895,this.anyName(),this.state=5896,this.match(t.RENAME),this.state=5897,this.match(t.CONSTRAINT),this.state=5898,this.constraintName(),this.state=5899,this.match(t.TO),this.state=5900,this.name();break;case 7:this.enterOuterAlt(e,7),this.state=5902,this.match(t.ALTER),this.state=5903,this.match(t.FOREIGN),this.state=5904,this.match(t.DATA_P),this.state=5905,this.match(t.WRAPPER),this.state=5906,this.name(),this.state=5907,this.match(t.RENAME),this.state=5908,this.match(t.TO),this.state=5909,this.name();break;case 8:this.enterOuterAlt(e,8),this.state=5911,this.match(t.ALTER),this.state=5912,this.match(t.FUNCTION),this.state=5913,this.functionWithArgumentTypes(),this.state=5914,this.match(t.RENAME),this.state=5915,this.match(t.TO),this.state=5916,this.name();break;case 9:this.enterOuterAlt(e,9),this.state=5918,this.match(t.ALTER),this.state=5919,this.optionalProcedural(),this.state=5920,this.match(t.LANGUAGE),this.state=5921,this.name(),this.state=5922,this.match(t.RENAME),this.state=5923,this.match(t.TO),this.state=5924,this.name();break;case 10:this.enterOuterAlt(e,10),this.state=5926,this.match(t.ALTER),this.state=5927,this.match(t.OPERATOR),this.state=5928,this.match(t.CLASS),this.state=5929,this.anyName(),this.state=5930,this.match(t.USING),this.state=5931,this.name(),this.state=5932,this.match(t.RENAME),this.state=5933,this.match(t.TO),this.state=5934,this.name();break;case 11:this.enterOuterAlt(e,11),this.state=5936,this.match(t.ALTER),this.state=5937,this.match(t.OPERATOR),this.state=5938,this.match(t.FAMILY),this.state=5939,this.anyName(),this.state=5940,this.match(t.USING),this.state=5941,this.name(),this.state=5942,this.match(t.RENAME),this.state=5943,this.match(t.TO),this.state=5944,this.name();break;case 12:this.enterOuterAlt(e,12),this.state=5946,this.match(t.ALTER),this.state=5947,this.match(t.POLICY),this.state=5948,this.name(),this.state=5949,this.match(t.ON),this.state=5950,this.qualifiedName(),this.state=5951,this.match(t.RENAME),this.state=5952,this.match(t.TO),this.state=5953,this.name();break;case 13:this.enterOuterAlt(e,13),this.state=5955,this.match(t.ALTER),this.state=5956,this.match(t.POLICY),this.state=5957,this.match(t.IF_P),this.state=5958,this.match(t.EXISTS),this.state=5959,this.name(),this.state=5960,this.match(t.ON),this.state=5961,this.qualifiedName(),this.state=5962,this.match(t.RENAME),this.state=5963,this.match(t.TO),this.state=5964,this.name();break;case 14:this.enterOuterAlt(e,14),this.state=5966,this.match(t.ALTER),this.state=5967,this.match(t.PROCEDURE),this.state=5968,this.functionWithArgumentTypes(),this.state=5969,this.match(t.RENAME),this.state=5970,this.match(t.TO),this.state=5971,this.name();break;case 15:this.enterOuterAlt(e,15),this.state=5973,this.match(t.ALTER),this.state=5974,this.match(t.PUBLICATION),this.state=5975,this.name(),this.state=5976,this.match(t.RENAME),this.state=5977,this.match(t.TO),this.state=5978,this.name();break;case 16:this.enterOuterAlt(e,16),this.state=5980,this.match(t.ALTER),this.state=5981,this.match(t.ROUTINE),this.state=5982,this.functionWithArgumentTypes(),this.state=5983,this.match(t.RENAME),this.state=5984,this.match(t.TO),this.state=5985,this.name();break;case 17:this.enterOuterAlt(e,17),this.state=5987,this.match(t.ALTER),this.state=5988,this.match(t.SCHEMA),this.state=5989,this.schemaName(),this.state=5990,this.match(t.RENAME),this.state=5991,this.match(t.TO),this.state=5992,this.name();break;case 18:this.enterOuterAlt(e,18),this.state=5994,this.match(t.ALTER),this.state=5995,this.match(t.SERVER),this.state=5996,this.name(),this.state=5997,this.match(t.RENAME),this.state=5998,this.match(t.TO),this.state=5999,this.name();break;case 19:this.enterOuterAlt(e,19),this.state=6001,this.match(t.ALTER),this.state=6002,this.match(t.SUBSCRIPTION),this.state=6003,this.name(),this.state=6004,this.match(t.RENAME),this.state=6005,this.match(t.TO),this.state=6006,this.name();break;case 20:this.enterOuterAlt(e,20),this.state=6008,this.match(t.ALTER),this.state=6009,this.match(t.TABLE),this.state=6010,this.relationExpression(),this.state=6011,this.match(t.RENAME),this.state=6012,this.match(t.TO),this.state=6013,this.name();break;case 21:this.enterOuterAlt(e,21),this.state=6015,this.match(t.ALTER),this.state=6016,this.match(t.TABLE),this.state=6017,this.match(t.IF_P),this.state=6018,this.match(t.EXISTS),this.state=6019,this.relationExpression(),this.state=6020,this.match(t.RENAME),this.state=6021,this.match(t.TO),this.state=6022,this.name();break;case 22:if(this.enterOuterAlt(e,22),1===(this.state=6024,this.match(t.ALTER),this.state=6025,this.match(t.SEQUENCE),this.state=6028,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,338,this.context)))this.state=6026,this.match(t.IF_P),this.state=6027,this.match(t.EXISTS);this.state=6030,this.sequenceName(),this.state=6031,this.match(t.RENAME),this.state=6032,this.match(t.TO),this.state=6033,this.name();break;case 23:this.enterOuterAlt(e,23),this.state=6035,this.match(t.ALTER),this.state=6036,this.match(t.VIEW),this.state=6037,this.qualifiedName(),this.state=6038,this.match(t.RENAME),this.state=6039,this.match(t.TO),this.state=6040,this.name();break;case 24:this.enterOuterAlt(e,24),this.state=6042,this.match(t.ALTER),this.state=6043,this.match(t.VIEW),this.state=6044,this.match(t.IF_P),this.state=6045,this.match(t.EXISTS),this.state=6046,this.qualifiedName(),this.state=6047,this.match(t.RENAME),this.state=6048,this.match(t.TO),this.state=6049,this.name();break;case 25:this.enterOuterAlt(e,25),this.state=6051,this.match(t.ALTER),this.state=6052,this.match(t.MATERIALIZED),this.state=6053,this.match(t.VIEW),this.state=6054,this.qualifiedName(),this.state=6055,this.match(t.RENAME),this.state=6056,this.match(t.TO),this.state=6057,this.name();break;case 26:this.enterOuterAlt(e,26),this.state=6059,this.match(t.ALTER),this.state=6060,this.match(t.MATERIALIZED),this.state=6061,this.match(t.VIEW),this.state=6062,this.match(t.IF_P),this.state=6063,this.match(t.EXISTS),this.state=6064,this.qualifiedName(),this.state=6065,this.match(t.RENAME),this.state=6066,this.match(t.TO),this.state=6067,this.name();break;case 27:if(this.enterOuterAlt(e,27),1===(this.state=6069,this.match(t.ALTER),this.state=6070,this.match(t.INDEX),this.state=6073,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,339,this.context)))this.state=6071,this.match(t.IF_P),this.state=6072,this.match(t.EXISTS);this.state=6075,this.indexName(),this.state=6076,this.match(t.RENAME),this.state=6077,this.match(t.TO),this.state=6078,this.name();break;case 28:this.enterOuterAlt(e,28),this.state=6080,this.match(t.ALTER),this.state=6081,this.match(t.FOREIGN),this.state=6082,this.match(t.TABLE),this.state=6083,this.relationExpression(),this.state=6084,this.match(t.RENAME),this.state=6085,this.match(t.TO),this.state=6086,this.name();break;case 29:this.enterOuterAlt(e,29),this.state=6088,this.match(t.ALTER),this.state=6089,this.match(t.FOREIGN),this.state=6090,this.match(t.TABLE),this.state=6091,this.match(t.IF_P),this.state=6092,this.match(t.EXISTS),this.state=6093,this.relationExpression(),this.state=6094,this.match(t.RENAME),this.state=6095,this.match(t.TO),this.state=6096,this.name();break;case 30:this.enterOuterAlt(e,30),this.state=6098,this.match(t.ALTER),this.state=6099,this.match(t.TABLE),this.state=6100,this.relationExpression(),this.state=6101,this.match(t.RENAME),this.state=6102,this.optionalColumn(),this.state=6103,this.name(),this.state=6104,this.match(t.TO),this.state=6105,this.name();break;case 31:this.enterOuterAlt(e,31),this.state=6107,this.match(t.ALTER),this.state=6108,this.match(t.TABLE),this.state=6109,this.match(t.IF_P),this.state=6110,this.match(t.EXISTS),this.state=6111,this.relationExpression(),this.state=6112,this.match(t.RENAME),this.state=6113,this.optionalColumn(),this.state=6114,this.name(),this.state=6115,this.match(t.TO),this.state=6116,this.name();break;case 32:this.enterOuterAlt(e,32),this.state=6118,this.match(t.ALTER),this.state=6119,this.match(t.VIEW),this.state=6120,this.qualifiedName(),this.state=6121,this.match(t.RENAME),this.state=6122,this.optionalColumn(),this.state=6123,this.name(),this.state=6124,this.match(t.TO),this.state=6125,this.name();break;case 33:this.enterOuterAlt(e,33),this.state=6127,this.match(t.ALTER),this.state=6128,this.match(t.VIEW),this.state=6129,this.match(t.IF_P),this.state=6130,this.match(t.EXISTS),this.state=6131,this.qualifiedName(),this.state=6132,this.match(t.RENAME),this.state=6133,this.optionalColumn(),this.state=6134,this.name(),this.state=6135,this.match(t.TO),this.state=6136,this.name();break;case 34:this.enterOuterAlt(e,34),this.state=6138,this.match(t.ALTER),this.state=6139,this.match(t.MATERIALIZED),this.state=6140,this.match(t.VIEW),this.state=6141,this.qualifiedName(),this.state=6142,this.match(t.RENAME),this.state=6143,this.optionalColumn(),this.state=6144,this.name(),this.state=6145,this.match(t.TO),this.state=6146,this.name();break;case 35:this.enterOuterAlt(e,35),this.state=6148,this.match(t.ALTER),this.state=6149,this.match(t.MATERIALIZED),this.state=6150,this.match(t.VIEW),this.state=6151,this.match(t.IF_P),this.state=6152,this.match(t.EXISTS),this.state=6153,this.qualifiedName(),this.state=6154,this.match(t.RENAME),this.state=6155,this.optionalColumn(),this.state=6156,this.name(),this.state=6157,this.match(t.TO),this.state=6158,this.name();break;case 36:if(this.enterOuterAlt(e,36),1===(this.state=6160,this.match(t.ALTER),this.state=6161,this.match(t.TABLE),this.state=6164,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,340,this.context)))this.state=6162,this.match(t.IF_P),this.state=6163,this.match(t.EXISTS);this.state=6166,this.relationExpression(),this.state=6167,this.match(t.RENAME),this.state=6168,this.match(t.CONSTRAINT),this.state=6169,this.constraintName(),this.state=6170,this.match(t.TO),this.state=6171,this.name();break;case 37:this.enterOuterAlt(e,37),this.state=6173,this.match(t.ALTER),this.state=6174,this.match(t.FOREIGN),this.state=6175,this.match(t.TABLE),this.state=6176,this.relationExpression(),this.state=6177,this.match(t.RENAME),this.state=6178,this.optionalColumn(),this.state=6179,this.name(),this.state=6180,this.match(t.TO),this.state=6181,this.name();break;case 38:this.enterOuterAlt(e,38),this.state=6183,this.match(t.ALTER),this.state=6184,this.match(t.FOREIGN),this.state=6185,this.match(t.TABLE),this.state=6186,this.match(t.IF_P),this.state=6187,this.match(t.EXISTS),this.state=6188,this.relationExpression(),this.state=6189,this.match(t.RENAME),this.state=6190,this.optionalColumn(),this.state=6191,this.name(),this.state=6192,this.match(t.TO),this.state=6193,this.name();break;case 39:this.enterOuterAlt(e,39),this.state=6195,this.match(t.ALTER),this.state=6196,this.match(t.RULE),this.state=6197,this.name(),this.state=6198,this.match(t.ON),this.state=6199,this.qualifiedName(),this.state=6200,this.match(t.RENAME),this.state=6201,this.match(t.TO),this.state=6202,this.name();break;case 40:this.enterOuterAlt(e,40),this.state=6204,this.match(t.ALTER),this.state=6205,this.match(t.TRIGGER),this.state=6206,this.triggerName(),this.state=6207,this.match(t.ON),this.state=6208,this.qualifiedName(),this.state=6209,this.match(t.RENAME),this.state=6210,this.match(t.TO),this.state=6211,this.name();break;case 41:this.enterOuterAlt(e,41),this.state=6213,this.match(t.ALTER),this.state=6214,this.match(t.EVENT),this.state=6215,this.match(t.TRIGGER),this.state=6216,this.name(),this.state=6217,this.match(t.RENAME),this.state=6218,this.match(t.TO),this.state=6219,this.name();break;case 42:this.enterOuterAlt(e,42),this.state=6221,this.match(t.ALTER),this.state=6222,this.roleOrAliases(),this.state=6223,this.roleName(),this.state=6224,this.match(t.RENAME),this.state=6225,this.match(t.TO),this.state=6226,this.roleName();break;case 43:this.enterOuterAlt(e,43),this.state=6228,this.match(t.ALTER),this.state=6229,this.match(t.TABLESPACE),this.state=6230,this.name(),this.state=6231,this.match(t.RENAME),this.state=6232,this.match(t.TO),this.state=6233,this.name();break;case 44:this.enterOuterAlt(e,44),this.state=6235,this.match(t.ALTER),this.state=6236,this.match(t.STATISTICS),this.state=6237,this.anyName(),this.state=6238,this.match(t.RENAME),this.state=6239,this.match(t.TO),this.state=6240,this.name();break;case 45:this.enterOuterAlt(e,45),this.state=6242,this.match(t.ALTER),this.state=6243,this.match(t.TEXT_P),this.state=6244,this.match(t.SEARCH),this.state=6245,this.match(t.PARSER),this.state=6246,this.anyName(),this.state=6247,this.match(t.RENAME),this.state=6248,this.match(t.TO),this.state=6249,this.name();break;case 46:this.enterOuterAlt(e,46),this.state=6251,this.match(t.ALTER),this.state=6252,this.match(t.TEXT_P),this.state=6253,this.match(t.SEARCH),this.state=6254,this.match(t.DICTIONARY),this.state=6255,this.anyName(),this.state=6256,this.match(t.RENAME),this.state=6257,this.match(t.TO),this.state=6258,this.name();break;case 47:this.enterOuterAlt(e,47),this.state=6260,this.match(t.ALTER),this.state=6261,this.match(t.TEXT_P),this.state=6262,this.match(t.SEARCH),this.state=6263,this.match(t.TEMPLATE),this.state=6264,this.anyName(),this.state=6265,this.match(t.RENAME),this.state=6266,this.match(t.TO),this.state=6267,this.name();break;case 48:this.enterOuterAlt(e,48),this.state=6269,this.match(t.ALTER),this.state=6270,this.match(t.TEXT_P),this.state=6271,this.match(t.SEARCH),this.state=6272,this.match(t.CONFIGURATION),this.state=6273,this.anyName(),this.state=6274,this.match(t.RENAME),this.state=6275,this.match(t.TO),this.state=6276,this.name();break;case 49:this.enterOuterAlt(e,49),this.state=6278,this.match(t.ALTER),this.state=6279,this.match(t.TYPE_P),this.state=6280,this.anyName(),this.state=6281,this.match(t.RENAME),this.state=6282,this.match(t.TO),this.state=6283,this.name();break;case 50:this.enterOuterAlt(e,50),this.state=6285,this.match(t.ALTER),this.state=6286,this.match(t.TYPE_P),this.state=6287,this.anyName(),this.state=6288,this.match(t.RENAME),this.state=6289,this.match(t.ATTRIBUTE),this.state=6290,this.name(),this.state=6291,this.match(t.TO),this.state=6292,this.name(),this.state=6293,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalColumn(){let e=new dh(this.context,this.state);this.enterRule(e,648,t.RULE_optionalColumn);try{switch(this.state=6299,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,342,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6297,this.match(t.COLUMN);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalSetData(){let e=new Uh(this.context,this.state);this.enterRule(e,650,t.RULE_optionalSetData);try{switch(this.state=6304,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=6301,this.match(t.SET),this.state=6302,this.match(t.DATA_P);break;case t.TYPE_P:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterObjectDependsStatement(){let e,s=new mh(this.context,this.state);this.enterRule(s,652,t.RULE_alterObjectDependsStatement);try{switch(this.state=6375,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,350,this.context)){case 1:this.enterOuterAlt(s,1),this.state=6306,this.match(t.ALTER),this.state=6307,this.match(t.FUNCTION),this.state=6308,this.functionWithArgumentTypes(),this.state=6310,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=6309,this.match(t.NO)),this.state=6312,this.match(t.DEPENDS),this.state=6313,this.match(t.ON),this.state=6314,this.match(t.EXTENSION),this.state=6315,this.name();break;case 2:this.enterOuterAlt(s,2),this.state=6317,this.match(t.ALTER),this.state=6318,this.match(t.PROCEDURE),this.state=6319,this.functionWithArgumentTypes(),this.state=6321,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=6320,this.match(t.NO)),this.state=6323,this.match(t.DEPENDS),this.state=6324,this.match(t.ON),this.state=6325,this.match(t.EXTENSION),this.state=6326,this.name();break;case 3:this.enterOuterAlt(s,3),this.state=6328,this.match(t.ALTER),this.state=6329,this.match(t.ROUTINE),this.state=6330,this.functionWithArgumentTypes(),this.state=6332,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=6331,this.match(t.NO)),this.state=6334,this.match(t.DEPENDS),this.state=6335,this.match(t.ON),this.state=6336,this.match(t.EXTENSION),this.state=6337,this.name();break;case 4:this.enterOuterAlt(s,4),this.state=6339,this.match(t.ALTER),this.state=6340,this.match(t.TRIGGER),this.state=6341,this.triggerName(),this.state=6342,this.match(t.ON),this.state=6343,this.qualifiedName(),this.state=6345,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=6344,this.match(t.NO)),this.state=6347,this.match(t.DEPENDS),this.state=6348,this.match(t.ON),this.state=6349,this.match(t.EXTENSION),this.state=6350,this.name();break;case 5:this.enterOuterAlt(s,5),this.state=6352,this.match(t.ALTER),this.state=6353,this.match(t.MATERIALIZED),this.state=6354,this.match(t.VIEW),this.state=6355,this.qualifiedName(),this.state=6357,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=6356,this.match(t.NO)),this.state=6359,this.match(t.DEPENDS),this.state=6360,this.match(t.ON),this.state=6361,this.match(t.EXTENSION),this.state=6362,this.name();break;case 6:this.enterOuterAlt(s,6),this.state=6364,this.match(t.ALTER),this.state=6365,this.match(t.INDEX),this.state=6366,this.indexName(),this.state=6368,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=6367,this.match(t.NO)),this.state=6370,this.match(t.DEPENDS),this.state=6371,this.match(t.ON),this.state=6372,this.match(t.EXTENSION),this.state=6373,this.name()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterObjectSchemaStatement(){let e=new Dh(this.context,this.state);this.enterRule(e,654,t.RULE_alterObjectSchemaStatement);try{switch(this.state=6589,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,352,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6377,this.match(t.ALTER),this.state=6378,this.match(t.AGGREGATE),this.state=6379,this.aggregateWithArgumentTypes(),this.state=6380,this.match(t.SET),this.state=6381,this.match(t.SCHEMA),this.state=6382,this.schemaName();break;case 2:this.enterOuterAlt(e,2),this.state=6384,this.match(t.ALTER),this.state=6385,this.match(t.COLLATION),this.state=6386,this.anyName(),this.state=6387,this.match(t.SET),this.state=6388,this.match(t.SCHEMA),this.state=6389,this.schemaName();break;case 3:this.enterOuterAlt(e,3),this.state=6391,this.match(t.ALTER),this.state=6392,this.match(t.CONVERSION_P),this.state=6393,this.anyName(),this.state=6394,this.match(t.SET),this.state=6395,this.match(t.SCHEMA),this.state=6396,this.schemaName();break;case 4:this.enterOuterAlt(e,4),this.state=6398,this.match(t.ALTER),this.state=6399,this.match(t.DOMAIN_P),this.state=6400,this.anyName(),this.state=6401,this.match(t.SET),this.state=6402,this.match(t.SCHEMA),this.state=6403,this.schemaName();break;case 5:this.enterOuterAlt(e,5),this.state=6405,this.match(t.ALTER),this.state=6406,this.match(t.EXTENSION),this.state=6407,this.name(),this.state=6408,this.match(t.SET),this.state=6409,this.match(t.SCHEMA),this.state=6410,this.schemaName();break;case 6:this.enterOuterAlt(e,6),this.state=6412,this.match(t.ALTER),this.state=6413,this.match(t.FUNCTION),this.state=6414,this.functionWithArgumentTypes(),this.state=6415,this.match(t.SET),this.state=6416,this.match(t.SCHEMA),this.state=6417,this.schemaName();break;case 7:this.enterOuterAlt(e,7),this.state=6419,this.match(t.ALTER),this.state=6420,this.match(t.OPERATOR),this.state=6421,this.operatorWithArgumentTypes(),this.state=6422,this.match(t.SET),this.state=6423,this.match(t.SCHEMA),this.state=6424,this.schemaName();break;case 8:this.enterOuterAlt(e,8),this.state=6426,this.match(t.ALTER),this.state=6427,this.match(t.OPERATOR),this.state=6428,this.match(t.CLASS),this.state=6429,this.anyName(),this.state=6430,this.match(t.USING),this.state=6431,this.name(),this.state=6432,this.match(t.SET),this.state=6433,this.match(t.SCHEMA),this.state=6434,this.schemaName();break;case 9:this.enterOuterAlt(e,9),this.state=6436,this.match(t.ALTER),this.state=6437,this.match(t.OPERATOR),this.state=6438,this.match(t.FAMILY),this.state=6439,this.anyName(),this.state=6440,this.match(t.USING),this.state=6441,this.name(),this.state=6442,this.match(t.SET),this.state=6443,this.match(t.SCHEMA),this.state=6444,this.schemaName();break;case 10:this.enterOuterAlt(e,10),this.state=6446,this.match(t.ALTER),this.state=6447,this.match(t.PROCEDURE),this.state=6448,this.functionWithArgumentTypes(),this.state=6449,this.match(t.SET),this.state=6450,this.match(t.SCHEMA),this.state=6451,this.schemaName();break;case 11:this.enterOuterAlt(e,11),this.state=6453,this.match(t.ALTER),this.state=6454,this.match(t.ROUTINE),this.state=6455,this.functionWithArgumentTypes(),this.state=6456,this.match(t.SET),this.state=6457,this.match(t.SCHEMA),this.state=6458,this.schemaName();break;case 12:this.enterOuterAlt(e,12),this.state=6460,this.match(t.ALTER),this.state=6461,this.match(t.TABLE),this.state=6462,this.relationExpression(),this.state=6463,this.match(t.SET),this.state=6464,this.match(t.SCHEMA),this.state=6465,this.schemaName();break;case 13:this.enterOuterAlt(e,13),this.state=6467,this.match(t.ALTER),this.state=6468,this.match(t.TABLE),this.state=6469,this.match(t.IF_P),this.state=6470,this.match(t.EXISTS),this.state=6471,this.relationExpression(),this.state=6472,this.match(t.SET),this.state=6473,this.match(t.SCHEMA),this.state=6474,this.schemaName();break;case 14:this.enterOuterAlt(e,14),this.state=6476,this.match(t.ALTER),this.state=6477,this.match(t.STATISTICS),this.state=6478,this.anyName(),this.state=6479,this.match(t.SET),this.state=6480,this.match(t.SCHEMA),this.state=6481,this.schemaName();break;case 15:this.enterOuterAlt(e,15),this.state=6483,this.match(t.ALTER),this.state=6484,this.match(t.TEXT_P),this.state=6485,this.match(t.SEARCH),this.state=6486,this.match(t.PARSER),this.state=6487,this.anyName(),this.state=6488,this.match(t.SET),this.state=6489,this.match(t.SCHEMA),this.state=6490,this.schemaName();break;case 16:this.enterOuterAlt(e,16),this.state=6492,this.match(t.ALTER),this.state=6493,this.match(t.TEXT_P),this.state=6494,this.match(t.SEARCH),this.state=6495,this.match(t.DICTIONARY),this.state=6496,this.anyName(),this.state=6497,this.match(t.SET),this.state=6498,this.match(t.SCHEMA),this.state=6499,this.schemaName();break;case 17:this.enterOuterAlt(e,17),this.state=6501,this.match(t.ALTER),this.state=6502,this.match(t.TEXT_P),this.state=6503,this.match(t.SEARCH),this.state=6504,this.match(t.TEMPLATE),this.state=6505,this.anyName(),this.state=6506,this.match(t.SET),this.state=6507,this.match(t.SCHEMA),this.state=6508,this.schemaName();break;case 18:this.enterOuterAlt(e,18),this.state=6510,this.match(t.ALTER),this.state=6511,this.match(t.TEXT_P),this.state=6512,this.match(t.SEARCH),this.state=6513,this.match(t.CONFIGURATION),this.state=6514,this.anyName(),this.state=6515,this.match(t.SET),this.state=6516,this.match(t.SCHEMA),this.state=6517,this.schemaName();break;case 19:if(this.enterOuterAlt(e,19),1===(this.state=6519,this.match(t.ALTER),this.state=6520,this.match(t.SEQUENCE),this.state=6523,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,351,this.context)))this.state=6521,this.match(t.IF_P),this.state=6522,this.match(t.EXISTS);this.state=6525,this.sequenceName(),this.state=6526,this.match(t.SET),this.state=6527,this.match(t.SCHEMA),this.state=6528,this.schemaName();break;case 20:this.enterOuterAlt(e,20),this.state=6530,this.match(t.ALTER),this.state=6531,this.match(t.VIEW),this.state=6532,this.qualifiedName(),this.state=6533,this.match(t.SET),this.state=6534,this.match(t.SCHEMA),this.state=6535,this.schemaName();break;case 21:this.enterOuterAlt(e,21),this.state=6537,this.match(t.ALTER),this.state=6538,this.match(t.VIEW),this.state=6539,this.match(t.IF_P),this.state=6540,this.match(t.EXISTS),this.state=6541,this.qualifiedName(),this.state=6542,this.match(t.SET),this.state=6543,this.match(t.SCHEMA),this.state=6544,this.schemaName();break;case 22:this.enterOuterAlt(e,22),this.state=6546,this.match(t.ALTER),this.state=6547,this.match(t.MATERIALIZED),this.state=6548,this.match(t.VIEW),this.state=6549,this.qualifiedName(),this.state=6550,this.match(t.SET),this.state=6551,this.match(t.SCHEMA),this.state=6552,this.schemaName();break;case 23:this.enterOuterAlt(e,23),this.state=6554,this.match(t.ALTER),this.state=6555,this.match(t.MATERIALIZED),this.state=6556,this.match(t.VIEW),this.state=6557,this.match(t.IF_P),this.state=6558,this.match(t.EXISTS),this.state=6559,this.qualifiedName(),this.state=6560,this.match(t.SET),this.state=6561,this.match(t.SCHEMA),this.state=6562,this.schemaName();break;case 24:this.enterOuterAlt(e,24),this.state=6564,this.match(t.ALTER),this.state=6565,this.match(t.FOREIGN),this.state=6566,this.match(t.TABLE),this.state=6567,this.relationExpression(),this.state=6568,this.match(t.SET),this.state=6569,this.match(t.SCHEMA),this.state=6570,this.schemaName();break;case 25:this.enterOuterAlt(e,25),this.state=6572,this.match(t.ALTER),this.state=6573,this.match(t.FOREIGN),this.state=6574,this.match(t.TABLE),this.state=6575,this.match(t.IF_P),this.state=6576,this.match(t.EXISTS),this.state=6577,this.relationExpression(),this.state=6578,this.match(t.SET),this.state=6579,this.match(t.SCHEMA),this.state=6580,this.schemaName();break;case 26:this.enterOuterAlt(e,26),this.state=6582,this.match(t.ALTER),this.state=6583,this.match(t.TYPE_P),this.state=6584,this.anyName(),this.state=6585,this.match(t.SET),this.state=6586,this.match(t.SCHEMA),this.state=6587,this.schemaName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterOperatorStatement(){let e=new ph(this.context,this.state);this.enterRule(e,656,t.RULE_alterOperatorStatement);try{this.enterOuterAlt(e,1),this.state=6591,this.match(t.ALTER),this.state=6592,this.match(t.OPERATOR),this.state=6593,this.operatorWithArgumentTypes(),this.state=6594,this.match(t.SET),this.state=6595,this.match(t.OPEN_PAREN),this.state=6596,this.operatorDefinitionList(),this.state=6597,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}operatorDefinitionList(){let e,s=new gh(this.context,this.state);this.enterRule(s,658,t.RULE_operatorDefinitionList);try{for(this.enterOuterAlt(s,1),this.state=6599,this.operatorDefinitionElement(),this.state=6604,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=6600,this.match(t.COMMA),this.state=6601,this.operatorDefinitionElement(),this.state=6606,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorDefinitionElement(){let e=new xh(this.context,this.state);this.enterRule(e,660,t.RULE_operatorDefinitionElement);try{switch(this.state=6615,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,354,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6607,this.columnLabel(),this.state=6608,this.match(t.EQUAL),this.state=6609,this.match(t.NONE);break;case 2:this.enterOuterAlt(e,2),this.state=6611,this.columnLabel(),this.state=6612,this.match(t.EQUAL),this.state=6613,this.operatorDefinitionArgument()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}operatorDefinitionArgument(){let e=new kh(this.context,this.state);this.enterRule(e,662,t.RULE_operatorDefinitionArgument);try{switch(this.state=6622,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,355,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6617,this.functionType();break;case 2:this.enterOuterAlt(e,2),this.state=6618,this.reservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=6619,this.allOperatorQualifier();break;case 4:this.enterOuterAlt(e,4),this.state=6620,this.numericOnly();break;case 5:this.enterOuterAlt(e,5),this.state=6621,this.sconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterTypeStatement(){let e=new Hh(this.context,this.state);this.enterRule(e,664,t.RULE_alterTypeStatement);try{this.enterOuterAlt(e,1),this.state=6624,this.match(t.ALTER),this.state=6625,this.match(t.TYPE_P),this.state=6626,this.anyName(),this.state=6627,this.match(t.SET),this.state=6628,this.match(t.OPEN_PAREN),this.state=6629,this.operatorDefinitionList(),this.state=6630,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterOwnerStatement(){let e=new Gh(this.context,this.state);this.enterRule(e,666,t.RULE_alterOwnerStatement);try{switch(this.state=6815,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,356,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6632,this.match(t.ALTER),this.state=6633,this.match(t.AGGREGATE),this.state=6634,this.aggregateWithArgumentTypes(),this.state=6635,this.match(t.OWNER),this.state=6636,this.match(t.TO),this.state=6637,this.roleName();break;case 2:this.enterOuterAlt(e,2),this.state=6639,this.match(t.ALTER),this.state=6640,this.match(t.COLLATION),this.state=6641,this.anyName(),this.state=6642,this.match(t.OWNER),this.state=6643,this.match(t.TO),this.state=6644,this.roleName();break;case 3:this.enterOuterAlt(e,3),this.state=6646,this.match(t.ALTER),this.state=6647,this.match(t.CONVERSION_P),this.state=6648,this.anyName(),this.state=6649,this.match(t.OWNER),this.state=6650,this.match(t.TO),this.state=6651,this.roleName();break;case 4:this.enterOuterAlt(e,4),this.state=6653,this.match(t.ALTER),this.state=6654,this.match(t.DATABASE),this.state=6655,this.databaseName(),this.state=6656,this.match(t.OWNER),this.state=6657,this.match(t.TO),this.state=6658,this.roleName();break;case 5:this.enterOuterAlt(e,5),this.state=6660,this.match(t.ALTER),this.state=6661,this.match(t.DOMAIN_P),this.state=6662,this.anyName(),this.state=6663,this.match(t.OWNER),this.state=6664,this.match(t.TO),this.state=6665,this.roleName();break;case 6:this.enterOuterAlt(e,6),this.state=6667,this.match(t.ALTER),this.state=6668,this.match(t.FUNCTION),this.state=6669,this.functionWithArgumentTypes(),this.state=6670,this.match(t.OWNER),this.state=6671,this.match(t.TO),this.state=6672,this.roleName();break;case 7:this.enterOuterAlt(e,7),this.state=6674,this.match(t.ALTER),this.state=6675,this.optionalProcedural(),this.state=6676,this.match(t.LANGUAGE),this.state=6677,this.name(),this.state=6678,this.match(t.OWNER),this.state=6679,this.match(t.TO),this.state=6680,this.roleName();break;case 8:this.enterOuterAlt(e,8),this.state=6682,this.match(t.ALTER),this.state=6683,this.match(t.LARGE_P),this.state=6684,this.match(t.OBJECT_P),this.state=6685,this.numericOnly(),this.state=6686,this.match(t.OWNER),this.state=6687,this.match(t.TO),this.state=6688,this.roleName();break;case 9:this.enterOuterAlt(e,9),this.state=6690,this.match(t.ALTER),this.state=6691,this.match(t.OPERATOR),this.state=6692,this.operatorWithArgumentTypes(),this.state=6693,this.match(t.OWNER),this.state=6694,this.match(t.TO),this.state=6695,this.roleName();break;case 10:this.enterOuterAlt(e,10),this.state=6697,this.match(t.ALTER),this.state=6698,this.match(t.OPERATOR),this.state=6699,this.match(t.CLASS),this.state=6700,this.anyName(),this.state=6701,this.match(t.USING),this.state=6702,this.name(),this.state=6703,this.match(t.OWNER),this.state=6704,this.match(t.TO),this.state=6705,this.roleName();break;case 11:this.enterOuterAlt(e,11),this.state=6707,this.match(t.ALTER),this.state=6708,this.match(t.OPERATOR),this.state=6709,this.match(t.FAMILY),this.state=6710,this.anyName(),this.state=6711,this.match(t.USING),this.state=6712,this.name(),this.state=6713,this.match(t.OWNER),this.state=6714,this.match(t.TO),this.state=6715,this.roleName();break;case 12:this.enterOuterAlt(e,12),this.state=6717,this.match(t.ALTER),this.state=6718,this.match(t.PROCEDURE),this.state=6719,this.functionWithArgumentTypes(),this.state=6720,this.match(t.OWNER),this.state=6721,this.match(t.TO),this.state=6722,this.roleName();break;case 13:this.enterOuterAlt(e,13),this.state=6724,this.match(t.ALTER),this.state=6725,this.match(t.ROUTINE),this.state=6726,this.functionWithArgumentTypes(),this.state=6727,this.match(t.OWNER),this.state=6728,this.match(t.TO),this.state=6729,this.roleName();break;case 14:this.enterOuterAlt(e,14),this.state=6731,this.match(t.ALTER),this.state=6732,this.match(t.SCHEMA),this.state=6733,this.schemaName(),this.state=6734,this.match(t.OWNER),this.state=6735,this.match(t.TO),this.state=6736,this.roleName();break;case 15:this.enterOuterAlt(e,15),this.state=6738,this.match(t.ALTER),this.state=6739,this.match(t.TYPE_P),this.state=6740,this.anyName(),this.state=6741,this.match(t.OWNER),this.state=6742,this.match(t.TO),this.state=6743,this.roleName();break;case 16:this.enterOuterAlt(e,16),this.state=6745,this.match(t.ALTER),this.state=6746,this.match(t.TABLESPACE),this.state=6747,this.name(),this.state=6748,this.match(t.OWNER),this.state=6749,this.match(t.TO),this.state=6750,this.roleName();break;case 17:this.enterOuterAlt(e,17),this.state=6752,this.match(t.ALTER),this.state=6753,this.match(t.STATISTICS),this.state=6754,this.anyName(),this.state=6755,this.match(t.OWNER),this.state=6756,this.match(t.TO),this.state=6757,this.roleName();break;case 18:this.enterOuterAlt(e,18),this.state=6759,this.match(t.ALTER),this.state=6760,this.match(t.TEXT_P),this.state=6761,this.match(t.SEARCH),this.state=6762,this.match(t.DICTIONARY),this.state=6763,this.anyName(),this.state=6764,this.match(t.OWNER),this.state=6765,this.match(t.TO),this.state=6766,this.roleName();break;case 19:this.enterOuterAlt(e,19),this.state=6768,this.match(t.ALTER),this.state=6769,this.match(t.TEXT_P),this.state=6770,this.match(t.SEARCH),this.state=6771,this.match(t.CONFIGURATION),this.state=6772,this.anyName(),this.state=6773,this.match(t.OWNER),this.state=6774,this.match(t.TO),this.state=6775,this.roleName();break;case 20:this.enterOuterAlt(e,20),this.state=6777,this.match(t.ALTER),this.state=6778,this.match(t.FOREIGN),this.state=6779,this.match(t.DATA_P),this.state=6780,this.match(t.WRAPPER),this.state=6781,this.name(),this.state=6782,this.match(t.OWNER),this.state=6783,this.match(t.TO),this.state=6784,this.roleName();break;case 21:this.enterOuterAlt(e,21),this.state=6786,this.match(t.ALTER),this.state=6787,this.match(t.SERVER),this.state=6788,this.name(),this.state=6789,this.match(t.OWNER),this.state=6790,this.match(t.TO),this.state=6791,this.roleName();break;case 22:this.enterOuterAlt(e,22),this.state=6793,this.match(t.ALTER),this.state=6794,this.match(t.EVENT),this.state=6795,this.match(t.TRIGGER),this.state=6796,this.name(),this.state=6797,this.match(t.OWNER),this.state=6798,this.match(t.TO),this.state=6799,this.roleName();break;case 23:this.enterOuterAlt(e,23),this.state=6801,this.match(t.ALTER),this.state=6802,this.match(t.PUBLICATION),this.state=6803,this.name(),this.state=6804,this.match(t.OWNER),this.state=6805,this.match(t.TO),this.state=6806,this.roleName();break;case 24:this.enterOuterAlt(e,24),this.state=6808,this.match(t.ALTER),this.state=6809,this.match(t.SUBSCRIPTION),this.state=6810,this.name(),this.state=6811,this.match(t.OWNER),this.state=6812,this.match(t.TO),this.state=6813,this.roleName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createPublicationStatement(){let e=new Fh(this.context,this.state);this.enterRule(e,668,t.RULE_createPublicationStatement);try{this.enterOuterAlt(e,1),this.state=6817,this.match(t.CREATE),this.state=6818,this.match(t.PUBLICATION),this.state=6819,this.name(),this.state=6820,this.optionalPublicationForTables(),this.state=6821,this.optionalDefinition()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalPublicationForTables(){let e=new vh(this.context,this.state);this.enterRule(e,670,t.RULE_optionalPublicationForTables);try{switch(this.state=6825,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(e,1),this.state=6823,this.publicationForTables();break;case t.EOF:case t.SEMI:case t.INTO:case t.WITH:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}publicationForTables(){let e=new Bh(this.context,this.state);this.enterRule(e,672,t.RULE_publicationForTables);try{switch(this.state=6833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,358,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6827,this.match(t.FOR),this.state=6828,this.match(t.TABLE),this.state=6829,this.relationExpressionList();break;case 2:this.enterOuterAlt(e,2),this.state=6830,this.match(t.FOR),this.state=6831,this.match(t.ALL),this.state=6832,this.match(t.TABLES)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterPublicationStatement(){let e=new yh(this.context,this.state);this.enterRule(e,674,t.RULE_alterPublicationStatement);try{switch(this.state=6862,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,359,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6835,this.match(t.ALTER),this.state=6836,this.match(t.PUBLICATION),this.state=6837,this.name(),this.state=6838,this.match(t.SET),this.state=6839,this.definition();break;case 2:this.enterOuterAlt(e,2),this.state=6841,this.match(t.ALTER),this.state=6842,this.match(t.PUBLICATION),this.state=6843,this.name(),this.state=6844,this.match(t.ADD_P),this.state=6845,this.match(t.TABLE),this.state=6846,this.relationExpressionList();break;case 3:this.enterOuterAlt(e,3),this.state=6848,this.match(t.ALTER),this.state=6849,this.match(t.PUBLICATION),this.state=6850,this.name(),this.state=6851,this.match(t.SET),this.state=6852,this.match(t.TABLE),this.state=6853,this.relationExpressionList();break;case 4:this.enterOuterAlt(e,4),this.state=6855,this.match(t.ALTER),this.state=6856,this.match(t.PUBLICATION),this.state=6857,this.name(),this.state=6858,this.match(t.DROP),this.state=6859,this.match(t.TABLE),this.state=6860,this.relationExpressionList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createSubscriptionStatement(){let e=new fh(this.context,this.state);this.enterRule(e,676,t.RULE_createSubscriptionStatement);try{this.enterOuterAlt(e,1),this.state=6864,this.match(t.CREATE),this.state=6865,this.match(t.SUBSCRIPTION),this.state=6866,this.name(),this.state=6867,this.match(t.CONNECTION),this.state=6868,this.sconst(),this.state=6869,this.match(t.PUBLICATION),this.state=6870,this.publicationNameList(),this.state=6871,this.optionalDefinition()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}publicationNameList(){let e,s=new Yh(this.context,this.state);this.enterRule(s,678,t.RULE_publicationNameList);try{for(this.enterOuterAlt(s,1),this.state=6873,this.publicationNameItem(),this.state=6878,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=6874,this.match(t.COMMA),this.state=6875,this.publicationNameItem(),this.state=6880,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}publicationNameItem(){let e=new wh(this.context,this.state);this.enterRule(e,680,t.RULE_publicationNameItem);try{this.enterOuterAlt(e,1),this.state=6881,this.columnLabel()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterSubscriptionStatement(){let e=new bh(this.context,this.state);this.enterRule(e,682,t.RULE_alterSubscriptionStatement);try{switch(this.state=6920,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,361,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6883,this.match(t.ALTER),this.state=6884,this.match(t.SUBSCRIPTION),this.state=6885,this.name(),this.state=6886,this.match(t.SET),this.state=6887,this.definition();break;case 2:this.enterOuterAlt(e,2),this.state=6889,this.match(t.ALTER),this.state=6890,this.match(t.SUBSCRIPTION),this.state=6891,this.name(),this.state=6892,this.match(t.CONNECTION),this.state=6893,this.sconst();break;case 3:this.enterOuterAlt(e,3),this.state=6895,this.match(t.ALTER),this.state=6896,this.match(t.SUBSCRIPTION),this.state=6897,this.name(),this.state=6898,this.match(t.REFRESH),this.state=6899,this.match(t.PUBLICATION),this.state=6900,this.optionalDefinition();break;case 4:this.enterOuterAlt(e,4),this.state=6902,this.match(t.ALTER),this.state=6903,this.match(t.SUBSCRIPTION),this.state=6904,this.name(),this.state=6905,this.match(t.SET),this.state=6906,this.match(t.PUBLICATION),this.state=6907,this.publicationNameList(),this.state=6908,this.optionalDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=6910,this.match(t.ALTER),this.state=6911,this.match(t.SUBSCRIPTION),this.state=6912,this.name(),this.state=6913,this.match(t.ENABLE_P);break;case 6:this.enterOuterAlt(e,6),this.state=6915,this.match(t.ALTER),this.state=6916,this.match(t.SUBSCRIPTION),this.state=6917,this.name(),this.state=6918,this.match(t.DISABLE_P)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropSubscriptionStatement(){let e=new Wh(this.context,this.state);this.enterRule(e,684,t.RULE_dropSubscriptionStatement);try{switch(this.state=6934,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,362,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6922,this.match(t.DROP),this.state=6923,this.match(t.SUBSCRIPTION),this.state=6924,this.name(),this.state=6925,this.optionalDropBehavior();break;case 2:this.enterOuterAlt(e,2),this.state=6927,this.match(t.DROP),this.state=6928,this.match(t.SUBSCRIPTION),this.state=6929,this.match(t.IF_P),this.state=6930,this.match(t.EXISTS),this.state=6931,this.name(),this.state=6932,this.optionalDropBehavior()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ruleStatement(){let e=new Vh(this.context,this.state);this.enterRule(e,686,t.RULE_ruleStatement);try{this.enterOuterAlt(e,1),this.state=6936,this.match(t.CREATE),this.state=6937,this.optionalOrReplace(),this.state=6938,this.match(t.RULE),this.state=6939,this.name(),this.state=6940,this.match(t.AS),this.state=6941,this.match(t.ON),this.state=6942,this.event(),this.state=6943,this.match(t.TO),this.state=6944,this.qualifiedName(),this.state=6945,this.whereClause(),this.state=6946,this.match(t.DO),this.state=6947,this.optionalInstead(),this.state=6948,this.ruleActionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ruleActionList(){let e=new Xh(this.context,this.state);this.enterRule(e,688,t.RULE_ruleActionList);try{switch(this.state=6956,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,363,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6950,this.match(t.NOTHING);break;case 2:this.enterOuterAlt(e,2),this.state=6951,this.ruleActionStatement();break;case 3:this.enterOuterAlt(e,3),this.state=6952,this.match(t.OPEN_PAREN),this.state=6953,this.ruleActionMulti(),this.state=6954,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ruleActionMulti(){let e,s=new Kh(this.context,this.state);this.enterRule(s,690,t.RULE_ruleActionMulti);try{for(this.enterOuterAlt(s,1),this.state=6958,this.ruleActionStatementOrEmpty(),this.state=6963,this.errorHandler.sync(this),e=this.tokenStream.LA(1);7===e;)this.state=6959,this.match(t.SEMI),this.state=6960,this.ruleActionStatementOrEmpty(),this.state=6965,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}ruleActionStatement(){let e=new Qh(this.context,this.state);this.enterRule(e,692,t.RULE_ruleActionStatement);try{switch(this.state=6971,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,365,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6966,this.selectStatement();break;case 2:this.enterOuterAlt(e,2),this.state=6967,this.insertStatement();break;case 3:this.enterOuterAlt(e,3),this.state=6968,this.updateStatement();break;case 4:this.enterOuterAlt(e,4),this.state=6969,this.deleteStatement();break;case 5:this.enterOuterAlt(e,5),this.state=6970,this.notifyStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ruleActionStatementOrEmpty(){let e=new Jh(this.context,this.state);this.enterRule(e,694,t.RULE_ruleActionStatementOrEmpty);try{switch(this.state=6975,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.SELECT:case t.TABLE:case t.WITH:case t.DELETE_P:case t.INSERT:case t.NOTIFY:case t.UPDATE:case t.VALUES:this.enterOuterAlt(e,1),this.state=6973,this.ruleActionStatement();break;case t.CLOSE_PAREN:case t.SEMI:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}event(){let e,s=new Zh(this.context,this.state);this.enterRule(s,696,t.RULE_event);try{this.enterOuterAlt(s,1),this.state=6977,e=this.tokenStream.LA(1),88===e||182===e||232===e||362===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalInstead(){let e=new qh(this.context,this.state);this.enterRule(e,698,t.RULE_optionalInstead);try{switch(this.state=6982,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INSTEAD:this.enterOuterAlt(e,1),this.state=6979,this.match(t.INSTEAD);break;case t.ALSO:this.enterOuterAlt(e,2),this.state=6980,this.match(t.ALSO);break;case t.OPEN_PAREN:case t.SELECT:case t.TABLE:case t.WITH:case t.DELETE_P:case t.INSERT:case t.NOTHING:case t.NOTIFY:case t.UPDATE:case t.VALUES:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}notifyStatement(){let e=new jh(this.context,this.state);this.enterRule(e,700,t.RULE_notifyStatement);try{this.enterOuterAlt(e,1),this.state=6984,this.match(t.NOTIFY),this.state=6985,this.columnId(),this.state=6986,this.notifyPayload()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}notifyPayload(){let e=new zh(this.context,this.state);this.enterRule(e,702,t.RULE_notifyPayload);try{switch(this.state=6991,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMA:this.enterOuterAlt(e,1),this.state=6988,this.match(t.COMMA),this.state=6989,this.sconst();break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.INTO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}listenStatement(){let e=new $h(this.context,this.state);this.enterRule(e,704,t.RULE_listenStatement);try{this.enterOuterAlt(e,1),this.state=6993,this.match(t.LISTEN),this.state=6994,this.columnId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unlistenStatement(){let e=new tE(this.context,this.state);this.enterRule(e,706,t.RULE_unlistenStatement);try{switch(this.state=7e3,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,369,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6996,this.match(t.UNLISTEN),this.state=6997,this.columnId();break;case 2:this.enterOuterAlt(e,2),this.state=6998,this.match(t.UNLISTEN),this.state=6999,this.match(t.STAR)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transactionStatement(){let e,s=new eE(this.context,this.state);this.enterRule(s,708,t.RULE_transactionStatement);try{switch(this.state=7055,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,372,this.context)){case 1:this.enterOuterAlt(s,1),this.state=7002,this.match(t.ABORT_P),this.state=7003,this.optionalTransaction(),this.state=7004,this.optionalTransactionChain();break;case 2:this.enterOuterAlt(s,2),this.state=7006,this.match(t.BEGIN_P),this.state=7007,this.optionalTransaction(),this.state=7009,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(54===e||77===e||235===e||293===e)&&(this.state=7008,this.transactionModeList());break;case 3:this.enterOuterAlt(s,3),this.state=7011,this.match(t.START),this.state=7012,this.match(t.TRANSACTION),this.state=7014,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(54===e||77===e||235===e||293===e)&&(this.state=7013,this.transactionModeList());break;case 4:this.enterOuterAlt(s,4),this.state=7016,this.match(t.COMMIT),this.state=7017,this.optionalTransaction(),this.state=7018,this.optionalTransactionChain();break;case 5:this.enterOuterAlt(s,5),this.state=7020,this.match(t.END_P),this.state=7021,this.optionalTransaction(),this.state=7022,this.optionalTransactionChain();break;case 6:this.enterOuterAlt(s,6),this.state=7024,this.match(t.ROLLBACK),this.state=7025,this.optionalTransaction(),this.state=7026,this.optionalTransactionChain();break;case 7:this.enterOuterAlt(s,7),this.state=7028,this.match(t.SAVEPOINT),this.state=7029,this.columnId();break;case 8:this.enterOuterAlt(s,8),this.state=7030,this.match(t.RELEASE),this.state=7031,this.match(t.SAVEPOINT),this.state=7032,this.columnId();break;case 9:this.enterOuterAlt(s,9),this.state=7033,this.match(t.RELEASE),this.state=7034,this.columnId();break;case 10:this.enterOuterAlt(s,10),this.state=7035,this.match(t.ROLLBACK),this.state=7036,this.optionalTransaction(),this.state=7037,this.match(t.TO),this.state=7038,this.match(t.SAVEPOINT),this.state=7039,this.columnId();break;case 11:this.enterOuterAlt(s,11),this.state=7041,this.match(t.ROLLBACK),this.state=7042,this.optionalTransaction(),this.state=7043,this.match(t.TO),this.state=7044,this.columnId();break;case 12:this.enterOuterAlt(s,12),this.state=7046,this.match(t.PREPARE),this.state=7047,this.match(t.TRANSACTION),this.state=7048,this.sconst();break;case 13:this.enterOuterAlt(s,13),this.state=7049,this.match(t.COMMIT),this.state=7050,this.match(t.PREPARED),this.state=7051,this.sconst();break;case 14:this.enterOuterAlt(s,14),this.state=7052,this.match(t.ROLLBACK),this.state=7053,this.match(t.PREPARED),this.state=7054,this.sconst()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalTransaction(){let e=new sE(this.context,this.state);this.enterRule(e,710,t.RULE_optionalTransaction);try{switch(this.state=7060,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WORK:this.enterOuterAlt(e,1),this.state=7057,this.match(t.WORK);break;case t.TRANSACTION:this.enterOuterAlt(e,2),this.state=7058,this.match(t.TRANSACTION);break;case t.EOF:case t.SEMI:case t.AND:case t.DEFERRABLE:case t.INTO:case t.NOT:case t.TO:case t.ISOLATION:case t.READ:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transactionModeItem(){let e=new aE(this.context,this.state);this.enterRule(e,712,t.RULE_transactionModeItem);try{switch(this.state=7072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,374,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7062,this.match(t.ISOLATION),this.state=7063,this.match(t.LEVEL),this.state=7064,this.isoLevel();break;case 2:this.enterOuterAlt(e,2),this.state=7065,this.match(t.READ),this.state=7066,this.match(t.ONLY);break;case 3:this.enterOuterAlt(e,3),this.state=7067,this.match(t.READ),this.state=7068,this.match(t.WRITE);break;case 4:this.enterOuterAlt(e,4),this.state=7069,this.match(t.DEFERRABLE);break;case 5:this.enterOuterAlt(e,5),this.state=7070,this.match(t.NOT),this.state=7071,this.match(t.DEFERRABLE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transactionModeList(){let e,s=new iE(this.context,this.state);this.enterRule(s,714,t.RULE_transactionModeList);try{for(this.enterOuterAlt(s,1),this.state=7074,this.transactionModeItem(),this.state=7081,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e||54===e||77===e||235===e||293===e;)this.state=7076,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e&&(this.state=7075,this.match(t.COMMA)),this.state=7078,this.transactionModeItem(),this.state=7083,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalTransactionChain(){let e,s=new rE(this.context,this.state);this.enterRule(s,716,t.RULE_optionalTransactionChain);try{switch(this.state=7090,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:this.enterOuterAlt(s,1),this.state=7084,this.match(t.AND),this.state=7086,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=7085,this.match(t.NO)),this.state=7088,this.match(t.CHAIN);break;case t.EOF:case t.SEMI:case t.INTO:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}viewStatement(){let e,s=new cE(this.context,this.state);this.enterRule(s,718,t.RULE_viewStatement);try{switch(this.enterOuterAlt(s,1),this.state=7092,this.match(t.CREATE),this.state=7095,this.errorHandler.sync(this),e=this.tokenStream.LA(1),82===e&&(this.state=7093,this.match(t.OR),this.state=7094,this.match(t.REPLACE)),this.state=7097,this.temporaryOption(),this.state=7111,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VIEW:this.state=7098,this.match(t.VIEW),this.state=7099,this.qualifiedName(),this.state=7100,this.columnListWithParentheses(),this.state=7101,this.optionalRelOptions();break;case t.RECURSIVE:this.state=7103,this.match(t.RECURSIVE),this.state=7104,this.match(t.VIEW),this.state=7105,this.qualifiedName(),this.state=7106,this.match(t.OPEN_PAREN),this.state=7107,this.columnList(),this.state=7108,this.match(t.CLOSE_PAREN),this.state=7109,this.optionalRelOptions();break;default:throw new he(this)}this.state=7113,this.match(t.AS),this.state=7114,this.selectStatement(),this.state=7115,this.optionalCheckOption()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalCheckOption(){let e,s=new nE(this.context,this.state);this.enterRule(s,720,t.RULE_optionalCheckOption);try{switch(this.state=7124,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(s,1),this.state=7117,this.match(t.WITH),this.state=7119,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(151===e||245===e)&&(this.state=7118,e=this.tokenStream.LA(1),151===e||245===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=7121,this.match(t.CHECK),this.state=7122,this.match(t.OPTION);break;case t.EOF:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}loadStatement(){let e=new hE(this.context,this.state);this.enterRule(e,722,t.RULE_loadStatement);try{this.enterOuterAlt(e,1),this.state=7126,this.match(t.LOAD),this.state=7127,this.fileName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createDatabaseStatement(){let e=new EE(this.context,this.state);this.enterRule(e,724,t.RULE_createDatabaseStatement);try{this.enterOuterAlt(e,1),this.state=7129,this.match(t.CREATE),this.state=7130,this.match(t.DATABASE),this.state=7131,this.name(),this.state=7132,this.optionalWith(),this.state=7133,this.createDatabaseOptionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createDatabaseOptionList(){let e,s=new TE(this.context,this.state);this.enterRule(s,726,t.RULE_createDatabaseOptionList);try{switch(this.state=7141,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.BACKWARD:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONNECTION:case t.CONTINUE_P:case t.CURSOR:case t.ENCODING:case t.FIRST_P:case t.FORWARD:case t.INSERT:case t.LAST_P:case t.LOCATION:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.OWNER:case t.PRIOR:case t.RELATIVE_P:case t.RESET:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SET:case t.TABLESPACE:case t.TEMPLATE:case t.TYPE_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(s,1),this.state=7136,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=7135,this.createDatabaseOptionItem(),this.state=7138,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-33&-32)&&1<<e-33&286268421||!(e-92&-32)&&1<<e-92&2164260865||!(e-130&-32)&&1<<e-130&2290106369||!(e-164&-32)&&1<<e-164&1073742089||!(e-207&-32)&&1<<e-207&33554441||!(e-240&-32)&&1<<e-240&6553665||!(e-272&-32)&&1<<e-272&268451849||!(e-306&-32)&&1<<e-306&1051713||!(e-344&-32)&&1<<e-344&517||433===e||434===e||!(e-477&-32)&&1<<e-477&3825197057||!(e-509&-32)&&1<<e-509&3055||!(e-636&-32)&&1<<e-636&100663331);break;case t.EOF:case t.SEMI:case t.INTO:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDatabaseOptionItem(){let e,s=new oE(this.context,this.state);this.enterRule(s,728,t.RULE_createDatabaseOptionItem);try{switch(this.enterOuterAlt(s,1),this.state=7143,this.createDatabaseOptionName(),this.state=7145,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=7144,this.match(t.EQUAL)),this.state=7150,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,386,this.context)){case 1:this.state=7147,this.signedIconst();break;case 2:this.state=7148,this.booleanOrString();break;case 3:this.state=7149,this.match(t.DEFAULT)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDatabaseOptionName(){let e=new RE(this.context,this.state);this.enterRule(e,730,t.RULE_createDatabaseOptionName);try{switch(this.state=7160,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.BACKWARD:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONTINUE_P:case t.CURSOR:case t.FIRST_P:case t.FORWARD:case t.INSERT:case t.LAST_P:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.PRIOR:case t.RELATIVE_P:case t.RESET:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SET:case t.TYPE_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=7152,this.identifier();break;case t.CONNECTION:this.enterOuterAlt(e,2),this.state=7153,this.match(t.CONNECTION),this.state=7154,this.match(t.LIMIT);break;case t.ENCODING:this.enterOuterAlt(e,3),this.state=7155,this.match(t.ENCODING);break;case t.LOCATION:this.enterOuterAlt(e,4),this.state=7156,this.match(t.LOCATION);break;case t.OWNER:this.enterOuterAlt(e,5),this.state=7157,this.match(t.OWNER);break;case t.TABLESPACE:this.enterOuterAlt(e,6),this.state=7158,this.match(t.TABLESPACE);break;case t.TEMPLATE:this.enterOuterAlt(e,7),this.state=7159,this.match(t.TEMPLATE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterDatabaseStatement(){let e=new AE(this.context,this.state);this.enterRule(e,732,t.RULE_alterDatabaseStatement);try{switch(this.enterOuterAlt(e,1),this.state=7162,this.match(t.ALTER),this.state=7163,this.match(t.DATABASE),this.state=7164,this.databaseName(),this.state=7171,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,388,this.context)){case 1:this.state=7165,this.match(t.WITH),this.state=7166,this.createDatabaseOptionList();break;case 2:this.state=7167,this.createDatabaseOptionList();break;case 3:this.state=7168,this.match(t.SET),this.state=7169,this.match(t.TABLESPACE),this.state=7170,this.name()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterDatabaseSetStatement(){let e=new SE(this.context,this.state);this.enterRule(e,734,t.RULE_alterDatabaseSetStatement);try{this.enterOuterAlt(e,1),this.state=7173,this.match(t.ALTER),this.state=7174,this.match(t.DATABASE),this.state=7175,this.databaseName(),this.state=7176,this.setResetClause()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropDatabaseStatement(){let e,s=new lE(this.context,this.state);this.enterRule(s,736,t.RULE_dropDatabaseStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=7178,this.match(t.DROP),this.state=7179,this.match(t.DATABASE),this.state=7182,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,389,this.context)))this.state=7180,this.match(t.IF_P),this.state=7181,this.match(t.EXISTS);if(this.state=7184,this.databaseName(),this.state=7197,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e||105===e){for(this.state=7185,this.optionalWith(),this.state=7186,this.match(t.OPEN_PAREN),this.state=7187,this.match(t.FORCE),this.state=7192,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7188,this.match(t.COMMA),this.state=7189,this.match(t.FORCE),this.state=7194,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=7195,this.match(t.CLOSE_PAREN)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterCollationStatement(){let e=new OE(this.context,this.state);this.enterRule(e,738,t.RULE_alterCollationStatement);try{this.enterOuterAlt(e,1),this.state=7199,this.match(t.ALTER),this.state=7200,this.match(t.COLLATION),this.state=7201,this.anyName(),this.state=7202,this.match(t.REFRESH),this.state=7203,this.match(t.VERSION_P)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterSystemStatement(){let e,s=new IE(this.context,this.state);this.enterRule(s,740,t.RULE_alterSystemStatement);try{this.enterOuterAlt(s,1),this.state=7205,this.match(t.ALTER),this.state=7206,this.match(t.SYSTEM_P),this.state=7207,e=this.tokenStream.LA(1),306===e||326===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=7208,this.genericSetClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDomainStatement(){let e=new uE(this.context,this.state);this.enterRule(e,742,t.RULE_createDomainStatement);try{this.enterOuterAlt(e,1),this.state=7210,this.match(t.CREATE),this.state=7211,this.match(t.DOMAIN_P),this.state=7212,this.anyName(),this.state=7213,this.optionalAs(),this.state=7214,this.typeName(),this.state=7215,this.columnQualifierList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterDomainStatement(){let e=new NE(this.context,this.state);this.enterRule(e,744,t.RULE_alterDomainStatement);try{this.enterOuterAlt(e,1),this.state=7217,this.match(t.ALTER),this.state=7218,this.match(t.DOMAIN_P),this.state=7219,this.anyName(),this.state=7220,this.alterDomainCommand()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterDomainCommand(){let e=new LE(this.context,this.state);this.enterRule(e,746,t.RULE_alterDomainCommand);try{switch(this.state=7243,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,393,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7222,this.alterColumnDefault();break;case 2:this.enterOuterAlt(e,2),this.state=7223,this.match(t.DROP),this.state=7224,this.match(t.NOT),this.state=7225,this.match(t.NULL_P);break;case 3:this.enterOuterAlt(e,3),this.state=7226,this.match(t.SET),this.state=7227,this.match(t.NOT),this.state=7228,this.match(t.NULL_P);break;case 4:this.enterOuterAlt(e,4),this.state=7229,this.match(t.ADD_P),this.state=7230,this.tableConstraint();break;case 5:if(this.enterOuterAlt(e,5),1===(this.state=7231,this.match(t.DROP),this.state=7232,this.match(t.CONSTRAINT),this.state=7235,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,392,this.context)))this.state=7233,this.match(t.IF_P),this.state=7234,this.match(t.EXISTS);this.state=7237,this.constraintName(),this.state=7238,this.optionalDropBehavior();break;case 6:this.enterOuterAlt(e,6),this.state=7240,this.match(t.VALIDATE),this.state=7241,this.match(t.CONSTRAINT),this.state=7242,this.constraintName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalAs(){let e=new CE(this.context,this.state);this.enterRule(e,748,t.RULE_optionalAs);try{switch(this.state=7247,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.enterOuterAlt(e,1),this.state=7245,this.match(t.AS);break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}altertsDictionaryStatement(){let e=new _E(this.context,this.state);this.enterRule(e,750,t.RULE_altertsDictionaryStatement);try{this.enterOuterAlt(e,1),this.state=7249,this.match(t.ALTER),this.state=7250,this.match(t.TEXT_P),this.state=7251,this.match(t.SEARCH),this.state=7252,this.match(t.DICTIONARY),this.state=7253,this.anyName(),this.state=7254,this.definition()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}altertsConfigurationStatement(){let e=new PE(this.context,this.state);this.enterRule(e,752,t.RULE_altertsConfigurationStatement);try{switch(this.state=7328,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,395,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7256,this.match(t.ALTER),this.state=7257,this.match(t.TEXT_P),this.state=7258,this.match(t.SEARCH),this.state=7259,this.match(t.CONFIGURATION),this.state=7260,this.anyName(),this.state=7261,this.match(t.ADD_P),this.state=7262,this.match(t.MAPPING),this.state=7263,this.match(t.FOR),this.state=7264,this.nameList(),this.state=7265,this.match(t.WITH),this.state=7266,this.anyNameList();break;case 2:this.enterOuterAlt(e,2),this.state=7268,this.match(t.ALTER),this.state=7269,this.match(t.TEXT_P),this.state=7270,this.match(t.SEARCH),this.state=7271,this.match(t.CONFIGURATION),this.state=7272,this.anyName(),this.state=7273,this.match(t.ALTER),this.state=7274,this.match(t.MAPPING),this.state=7275,this.match(t.FOR),this.state=7276,this.nameList(),this.state=7277,this.match(t.WITH),this.state=7278,this.anyNameList();break;case 3:this.enterOuterAlt(e,3),this.state=7280,this.match(t.ALTER),this.state=7281,this.match(t.TEXT_P),this.state=7282,this.match(t.SEARCH),this.state=7283,this.match(t.CONFIGURATION),this.state=7284,this.anyName(),this.state=7285,this.match(t.ALTER),this.state=7286,this.match(t.MAPPING),this.state=7287,this.match(t.REPLACE),this.state=7288,this.anyName(),this.state=7289,this.match(t.WITH),this.state=7290,this.anyName();break;case 4:this.enterOuterAlt(e,4),this.state=7292,this.match(t.ALTER),this.state=7293,this.match(t.TEXT_P),this.state=7294,this.match(t.SEARCH),this.state=7295,this.match(t.CONFIGURATION),this.state=7296,this.anyName(),this.state=7297,this.match(t.ALTER),this.state=7298,this.match(t.MAPPING),this.state=7299,this.match(t.FOR),this.state=7300,this.nameList(),this.state=7301,this.match(t.REPLACE),this.state=7302,this.anyName(),this.state=7303,this.match(t.WITH),this.state=7304,this.anyName();break;case 5:this.enterOuterAlt(e,5),this.state=7306,this.match(t.ALTER),this.state=7307,this.match(t.TEXT_P),this.state=7308,this.match(t.SEARCH),this.state=7309,this.match(t.CONFIGURATION),this.state=7310,this.anyName(),this.state=7311,this.match(t.DROP),this.state=7312,this.match(t.MAPPING),this.state=7313,this.match(t.FOR),this.state=7314,this.nameList();break;case 6:this.enterOuterAlt(e,6),this.state=7316,this.match(t.ALTER),this.state=7317,this.match(t.TEXT_P),this.state=7318,this.match(t.SEARCH),this.state=7319,this.match(t.CONFIGURATION),this.state=7320,this.anyName(),this.state=7321,this.match(t.DROP),this.state=7322,this.match(t.MAPPING),this.state=7323,this.match(t.IF_P),this.state=7324,this.match(t.EXISTS),this.state=7325,this.match(t.FOR),this.state=7326,this.nameList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createConversionStatement(){let e,s=new ME(this.context,this.state);this.enterRule(s,754,t.RULE_createConversionStatement);try{this.enterOuterAlt(s,1),this.state=7330,this.match(t.CREATE),this.state=7332,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=7331,this.match(t.DEFAULT)),this.state=7334,this.match(t.CONVERSION_P),this.state=7335,this.anyName(),this.state=7336,this.match(t.FOR),this.state=7337,this.sconst(),this.state=7338,this.match(t.TO),this.state=7339,this.sconst(),this.state=7340,this.match(t.FROM),this.state=7341,this.anyName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}clusterStatement(){let e=new dE(this.context,this.state);this.enterRule(e,756,t.RULE_clusterStatement);try{switch(this.state=7356,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,397,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7343,this.match(t.CLUSTER),this.state=7344,this.optionalVerbose(),this.state=7345,this.qualifiedName(),this.state=7346,this.clusterIndexSpecification();break;case 2:this.enterOuterAlt(e,2),this.state=7348,this.match(t.CLUSTER),this.state=7349,this.optionalVerbose();break;case 3:this.enterOuterAlt(e,3),this.state=7350,this.match(t.CLUSTER),this.state=7351,this.optionalVerbose(),this.state=7352,this.name(),this.state=7353,this.match(t.ON),this.state=7354,this.qualifiedName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}clusterIndexSpecification(){let e=new UE(this.context,this.state);this.enterRule(e,758,t.RULE_clusterIndexSpecification);try{switch(this.state=7361,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=7358,this.match(t.USING),this.state=7359,this.name();break;case t.EOF:case t.SEMI:case t.INTO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}vacuumStatement(){let e,s=new mE(this.context,this.state);this.enterRule(s,760,t.RULE_vacuumStatement);try{switch(this.state=7382,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,402,this.context)){case 1:this.enterOuterAlt(s,1),this.state=7363,this.match(t.VACUUM),this.state=7365,this.errorHandler.sync(this),e=this.tokenStream.LA(1),113===e&&(this.state=7364,this.match(t.FULL)),this.state=7368,this.errorHandler.sync(this),e=this.tokenStream.LA(1),112===e&&(this.state=7367,this.match(t.FREEZE)),this.state=7370,this.optionalVerbose(),this.state=7372,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(31===e||32===e)&&(this.state=7371,this.analyzeKeyword()),this.state=7374,this.optionalVacuumRelationList();break;case 2:this.enterOuterAlt(s,2),this.state=7376,this.match(t.VACUUM),this.state=7377,this.match(t.OPEN_PAREN),this.state=7378,this.vacuumAnalyzeOptionList(),this.state=7379,this.match(t.CLOSE_PAREN),this.state=7380,this.optionalVacuumRelationList()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}analyzeStatement(){let e=new DE(this.context,this.state);this.enterRule(e,762,t.RULE_analyzeStatement);try{switch(this.state=7394,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,403,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7384,this.analyzeKeyword(),this.state=7385,this.optionalVerbose(),this.state=7386,this.optionalVacuumRelationList();break;case 2:this.enterOuterAlt(e,2),this.state=7388,this.analyzeKeyword(),this.state=7389,this.match(t.OPEN_PAREN),this.state=7390,this.vacuumAnalyzeOptionList(),this.state=7391,this.match(t.CLOSE_PAREN),this.state=7392,this.optionalVacuumRelationList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}vacuumAnalyzeOptionList(){let e,s=new pE(this.context,this.state);this.enterRule(s,764,t.RULE_vacuumAnalyzeOptionList);try{for(this.enterOuterAlt(s,1),this.state=7396,this.vacuumAnalyzeOptionElement(),this.state=7401,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7397,this.match(t.COMMA),this.state=7398,this.vacuumAnalyzeOptionElement(),this.state=7403,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}analyzeKeyword(){let e,s=new gE(this.context,this.state);this.enterRule(s,766,t.RULE_analyzeKeyword);try{this.enterOuterAlt(s,1),this.state=7404,e=this.tokenStream.LA(1),31===e||32===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}vacuumAnalyzeOptionElement(){let e=new xE(this.context,this.state);this.enterRule(e,768,t.RULE_vacuumAnalyzeOptionElement);try{this.enterOuterAlt(e,1),this.state=7406,this.vacuumAnalyzeOptionName(),this.state=7407,this.vacuumAnalyzeOptionArgument()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}vacuumAnalyzeOptionName(){let e=new kE(this.context,this.state);this.enterRule(e,770,t.RULE_vacuumAnalyzeOptionName);try{switch(this.state=7411,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=7409,this.nonReservedWord();break;case t.ANALYSE:case t.ANALYZE:this.enterOuterAlt(e,2),this.state=7410,this.analyzeKeyword();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}vacuumAnalyzeOptionArgument(){let e=new HE(this.context,this.state);this.enterRule(e,772,t.RULE_vacuumAnalyzeOptionArgument);try{switch(this.state=7416,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.ON:case t.TABLE:case t.TRUE_P:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=7413,this.booleanOrString();break;case t.PLUS:case t.MINUS:case t.Integral:case t.Numeric:this.enterOuterAlt(e,2),this.state=7414,this.numericOnly();break;case t.CLOSE_PAREN:case t.COMMA:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalVerbose(){let e=new GE(this.context,this.state);this.enterRule(e,774,t.RULE_optionalVerbose);try{switch(this.state=7420,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VERBOSE:this.enterOuterAlt(e,1),this.state=7418,this.match(t.VERBOSE);break;case t.EOF:case t.OPEN_PAREN:case t.SEMI:case t.ANALYSE:case t.ANALYZE:case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CREATE:case t.DEFAULT:case t.DO:case t.FETCH:case t.INTO:case t.SELECT:case t.TABLE:case t.WITH:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalNameList(){let e=new FE(this.context,this.state);this.enterRule(e,776,t.RULE_optionalNameList);try{switch(this.state=7427,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=7422,this.match(t.OPEN_PAREN),this.state=7423,this.nameList(),this.state=7424,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.COMMA:case t.SEMI:case t.AS:case t.INTO:case t.ON:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}vacuumRelation(){let e=new vE(this.context,this.state);this.enterRule(e,778,t.RULE_vacuumRelation);try{this.enterOuterAlt(e,1),this.state=7429,this.qualifiedName(),this.state=7430,this.optionalNameList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalVacuumRelationList(){let e,s=new BE(this.context,this.state);this.enterRule(s,780,t.RULE_optionalVacuumRelationList);try{switch(this.state=7441,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:for(this.enterOuterAlt(s,1),this.state=7432,this.vacuumRelation(),this.state=7437,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7433,this.match(t.COMMA),this.state=7434,this.vacuumRelation(),this.state=7439,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case t.EOF:case t.SEMI:case t.INTO:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}explainStatement(){let e,s=new yE(this.context,this.state);this.enterRule(s,782,t.RULE_explainStatement);try{switch(this.state=7466,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,412,this.context)){case 1:this.enterOuterAlt(s,1),this.state=7443,this.match(t.EXPLAIN),this.state=7444,this.explainableStatement();break;case 2:this.enterOuterAlt(s,2),this.state=7445,this.match(t.EXPLAIN),this.state=7446,this.analyzeKeyword(),this.state=7447,this.optionalVerbose(),this.state=7448,this.explainableStatement();break;case 3:this.enterOuterAlt(s,3),this.state=7450,this.match(t.EXPLAIN),this.state=7451,this.match(t.VERBOSE),this.state=7452,this.explainableStatement();break;case 4:for(this.enterOuterAlt(s,4),this.state=7453,this.match(t.EXPLAIN),this.state=7454,this.match(t.OPEN_PAREN),this.state=7455,this.explainOptionElement(),this.state=7460,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7456,this.match(t.COMMA),this.state=7457,this.explainOptionElement(),this.state=7462,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=7463,this.match(t.CLOSE_PAREN),this.state=7464,this.explainableStatement()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}explainableStatement(){let e=new fE(this.context,this.state);this.enterRule(e,784,t.RULE_explainableStatement);try{switch(this.state=7477,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,413,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7468,this.selectStatement();break;case 2:this.enterOuterAlt(e,2),this.state=7469,this.insertStatement();break;case 3:this.enterOuterAlt(e,3),this.state=7470,this.updateStatement();break;case 4:this.enterOuterAlt(e,4),this.state=7471,this.deleteStatement();break;case 5:this.enterOuterAlt(e,5),this.state=7472,this.declareCursorStatement();break;case 6:this.enterOuterAlt(e,6),this.state=7473,this.createAsStatement();break;case 7:this.enterOuterAlt(e,7),this.state=7474,this.createMaterializedViewStatement();break;case 8:this.enterOuterAlt(e,8),this.state=7475,this.refreshMaterializedViewStatement();break;case 9:this.enterOuterAlt(e,9),this.state=7476,this.executeStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}explainOptionElement(){let e=new YE(this.context,this.state);this.enterRule(e,786,t.RULE_explainOptionElement);try{this.enterOuterAlt(e,1),this.state=7479,this.explainOptionName(),this.state=7480,this.explainOptionArgument()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}explainOptionName(){let e=new wE(this.context,this.state);this.enterRule(e,788,t.RULE_explainOptionName);try{switch(this.state=7484,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=7482,this.nonReservedWord();break;case t.ANALYSE:case t.ANALYZE:this.enterOuterAlt(e,2),this.state=7483,this.analyzeKeyword();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}explainOptionArgument(){let e=new bE(this.context,this.state);this.enterRule(e,790,t.RULE_explainOptionArgument);try{switch(this.state=7489,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.ON:case t.TABLE:case t.TRUE_P:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=7486,this.booleanOrString();break;case t.PLUS:case t.MINUS:case t.Integral:case t.Numeric:this.enterOuterAlt(e,2),this.state=7487,this.numericOnly();break;case t.CLOSE_PAREN:case t.COMMA:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}prepareStatement(){let e=new WE(this.context,this.state);this.enterRule(e,792,t.RULE_prepareStatement);try{this.enterOuterAlt(e,1),this.state=7491,this.match(t.PREPARE),this.state=7492,this.name(),this.state=7493,this.prepareTypeClause(),this.state=7494,this.match(t.AS),this.state=7495,this.preparableStatement()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}prepareTypeClause(){let e=new VE(this.context,this.state);this.enterRule(e,794,t.RULE_prepareTypeClause);try{switch(this.state=7502,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=7497,this.match(t.OPEN_PAREN),this.state=7498,this.typeList(),this.state=7499,this.match(t.CLOSE_PAREN);break;case t.AS:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}preparableStatement(){let e=new XE(this.context,this.state);this.enterRule(e,796,t.RULE_preparableStatement);try{switch(this.state=7508,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,417,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7504,this.selectStatement();break;case 2:this.enterOuterAlt(e,2),this.state=7505,this.insertStatement();break;case 3:this.enterOuterAlt(e,3),this.state=7506,this.updateStatement();break;case 4:this.enterOuterAlt(e,4),this.state=7507,this.deleteStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}executeStatement(){let e=new KE(this.context,this.state);this.enterRule(e,798,t.RULE_executeStatement);try{switch(this.state=7537,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,418,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7510,this.match(t.EXECUTE),this.state=7511,this.name(),this.state=7512,this.executeParameterClause();break;case 2:this.enterOuterAlt(e,2),this.state=7514,this.match(t.CREATE),this.state=7515,this.temporaryOption(),this.state=7516,this.match(t.TABLE),this.state=7517,this.createAsTarget(),this.state=7518,this.match(t.AS),this.state=7519,this.match(t.EXECUTE),this.state=7520,this.name(),this.state=7521,this.executeParameterClause(),this.state=7522,this.withData();break;case 3:this.enterOuterAlt(e,3),this.state=7524,this.match(t.CREATE),this.state=7525,this.temporaryOption(),this.state=7526,this.match(t.TABLE),this.state=7527,this.match(t.IF_P),this.state=7528,this.match(t.NOT),this.state=7529,this.match(t.EXISTS),this.state=7530,this.createAsTarget(),this.state=7531,this.match(t.AS),this.state=7532,this.match(t.EXECUTE),this.state=7533,this.name(),this.state=7534,this.executeParameterClause(),this.state=7535,this.withData()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}executeParameterClause(){let e=new QE(this.context,this.state);this.enterRule(e,800,t.RULE_executeParameterClause);try{switch(this.state=7544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=7539,this.match(t.OPEN_PAREN),this.state=7540,this.expressionList(),this.state=7541,this.match(t.CLOSE_PAREN);break;case t.EOF:case t.SEMI:case t.INTO:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}deallocateStatement(){let e=new JE(this.context,this.state);this.enterRule(e,802,t.RULE_deallocateStatement);try{switch(this.state=7556,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,420,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7546,this.match(t.DEALLOCATE),this.state=7547,this.name();break;case 2:this.enterOuterAlt(e,2),this.state=7548,this.match(t.DEALLOCATE),this.state=7549,this.match(t.PREPARE),this.state=7550,this.name();break;case 3:this.enterOuterAlt(e,3),this.state=7551,this.match(t.DEALLOCATE),this.state=7552,this.match(t.ALL);break;case 4:this.enterOuterAlt(e,4),this.state=7553,this.match(t.DEALLOCATE),this.state=7554,this.match(t.PREPARE),this.state=7555,this.match(t.ALL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}insertStatement(){let e,s=new ZE(this.context,this.state);this.enterRule(s,804,t.RULE_insertStatement);try{this.enterOuterAlt(s,1),this.state=7559,this.errorHandler.sync(this),e=this.tokenStream.LA(1),105===e&&(this.state=7558,this.withClause()),this.state=7561,this.match(t.INSERT),this.state=7562,this.match(t.INTO),this.state=7563,this.insertTarget(),this.state=7564,this.insertRest(),this.state=7565,this.optionalOnConflict(),this.state=7566,this.returningClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}insertTarget(){let e,s=new qE(this.context,this.state);this.enterRule(s,806,t.RULE_insertTarget);try{this.enterOuterAlt(s,1),this.state=7568,this.qualifiedName(),this.state=7571,this.errorHandler.sync(this),e=this.tokenStream.LA(1),36===e&&(this.state=7569,this.match(t.AS),this.state=7570,this.columnId())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}insertRest(){let e,s=new jE(this.context,this.state);this.enterRule(s,808,t.RULE_insertRest);try{switch(this.state=7592,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,424,this.context)){case 1:this.enterOuterAlt(s,1),this.state=7573,this.selectStatement();break;case 2:this.enterOuterAlt(s,2),this.state=7574,this.match(t.OVERRIDING),this.state=7575,this.overrideKind(),this.state=7576,this.match(t.VALUE_P),this.state=7577,this.selectStatement();break;case 3:this.enterOuterAlt(s,3),this.state=7579,this.match(t.OPEN_PAREN),this.state=7580,this.insertColumnList(),this.state=7581,this.match(t.CLOSE_PAREN),this.state=7586,this.errorHandler.sync(this),e=this.tokenStream.LA(1),463===e&&(this.state=7582,this.match(t.OVERRIDING),this.state=7583,this.overrideKind(),this.state=7584,this.match(t.VALUE_P)),this.state=7588,this.selectStatement();break;case 4:this.enterOuterAlt(s,4),this.state=7590,this.match(t.DEFAULT),this.state=7591,this.match(t.VALUES)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}overrideKind(){let e,s=new zE(this.context,this.state);this.enterRule(s,810,t.RULE_overrideKind);try{this.enterOuterAlt(s,1),this.state=7594,e=this.tokenStream.LA(1),99===e||342===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}insertColumnList(){let e,s=new $E(this.context,this.state);this.enterRule(s,812,t.RULE_insertColumnList);try{for(this.enterOuterAlt(s,1),this.state=7596,this.insertColumnItem(),this.state=7601,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7597,this.match(t.COMMA),this.state=7598,this.insertColumnItem(),this.state=7603,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}insertColumnItem(){let e=new tT(this.context,this.state);this.enterRule(e,814,t.RULE_insertColumnItem);try{this.enterOuterAlt(e,1),this.state=7604,this.columnId(),this.state=7605,this.optionalIndirection()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalOnConflict(){let e=new eT(this.context,this.state);this.enterRule(e,816,t.RULE_optionalOnConflict);try{switch(this.state=7620,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ON:switch(this.enterOuterAlt(e,1),this.state=7607,this.match(t.ON),this.state=7608,this.match(t.CONFLICT),this.state=7609,this.optionalConflictExpr(),this.state=7610,this.match(t.DO),this.state=7617,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.UPDATE:this.state=7611,this.match(t.UPDATE),this.state=7612,this.match(t.SET),this.state=7613,this.setClauseList(),this.state=7614,this.whereClause();break;case t.NOTHING:this.state=7616,this.match(t.NOTHING);break;default:throw new he(this)}break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.INTO:case t.RETURNING:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalConflictExpr(){let e=new sT(this.context,this.state);this.enterRule(e,818,t.RULE_optionalConflictExpr);try{switch(this.state=7631,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.enterOuterAlt(e,1),this.state=7622,this.match(t.OPEN_PAREN),this.state=7623,this.indexParameters(),this.state=7624,this.match(t.CLOSE_PAREN),this.state=7625,this.whereClause();break;case t.ON:this.enterOuterAlt(e,2),this.state=7627,this.match(t.ON),this.state=7628,this.match(t.CONSTRAINT),this.state=7629,this.constraintName();break;case t.DO:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}returningClause(){let e=new aT(this.context,this.state);this.enterRule(e,820,t.RULE_returningClause);try{switch(this.state=7636,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RETURNING:this.enterOuterAlt(e,1),this.state=7633,this.match(t.RETURNING),this.state=7634,this.targetList();break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.INTO:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}mergeStatement(){let e,s=new iT(this.context,this.state);this.enterRule(s,822,t.RULE_mergeStatement);try{switch(this.enterOuterAlt(s,1),this.state=7638,this.match(t.MERGE),this.state=7640,this.errorHandler.sync(this),e=this.tokenStream.LA(1),71===e&&(this.state=7639,this.match(t.INTO)),this.state=7642,this.qualifiedName(),this.state=7644,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268429||!(e-92&-32)&&1<<e-92&2298478593||!(e-124&-32)&&1<<e-124&4294967269||!(e-156&-32)&&1<<e-156&4294967295||!(e-188&-32)&&1<<e-188&4294967295||!(e-220&-32)&&1<<e-220&3221225471||!(e-252&-32)&&1<<e-252&4294967293||!(e-284&-32)&&1<<e-284&4294967295||!(e-316&-32)&&1<<e-316&4294967295||!(e-348&-32)&&1<<e-348&4294967295||!(e-380&-32)&&1<<e-380&4294967295||!(e-412&-32)&&1<<e-412&4294967295||!(e-444&-32)&&1<<e-444&4026530815||!(e-476&-32)&&1<<e-476&3623878655||!(e-508&-32)&&1<<e-508&4294965247||!(e-540&-32)&&1<<e-540&4294967295||!(e-572&-32)&&1<<e-572&4294967295||!(e-604&-32)&&1<<e-604&4294967295||!(e-636&-32)&&1<<e-636&100663331)&&(this.state=7643,this.aliasClause()),this.state=7646,this.match(t.USING),this.state=7649,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.state=7647,this.selectWithParenthesis();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=7648,this.qualifiedName();break;default:throw new he(this)}switch(this.state=7652,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268429||!(e-92&-32)&&1<<e-92&2298478593||!(e-124&-32)&&1<<e-124&4294967269||!(e-156&-32)&&1<<e-156&4294967295||!(e-188&-32)&&1<<e-188&4294967295||!(e-220&-32)&&1<<e-220&3221225471||!(e-252&-32)&&1<<e-252&4294967293||!(e-284&-32)&&1<<e-284&4294967295||!(e-316&-32)&&1<<e-316&4294967295||!(e-348&-32)&&1<<e-348&4294967295||!(e-380&-32)&&1<<e-380&4294967295||!(e-412&-32)&&1<<e-412&4294967295||!(e-444&-32)&&1<<e-444&4026530815||!(e-476&-32)&&1<<e-476&3623878655||!(e-508&-32)&&1<<e-508&4294965247||!(e-540&-32)&&1<<e-540&4294967295||!(e-572&-32)&&1<<e-572&4294967295||!(e-604&-32)&&1<<e-604&4294967295||!(e-636&-32)&&1<<e-636&100663331)&&(this.state=7651,this.aliasClause()),this.state=7654,this.match(t.ON),this.state=7655,this.expression1(),this.state=7664,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,436,this.context)){case 1:if(1===(this.state=7656,this.mergeInsertClause(),this.state=7658,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,434,this.context)))this.state=7657,this.mergeUpdateClause();break;case 2:if(1===(this.state=7660,this.mergeUpdateClause(),this.state=7662,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,435,this.context)))this.state=7661,this.mergeInsertClause()}this.state=7667,this.errorHandler.sync(this),e=this.tokenStream.LA(1),102===e&&(this.state=7666,this.mergeDeleteClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}mergeInsertClause(){let e,s=new rT(this.context,this.state);this.enterRule(s,824,t.RULE_mergeInsertClause);try{this.enterOuterAlt(s,1),this.state=7669,this.match(t.WHEN),this.state=7670,this.match(t.NOT),this.state=7671,this.match(t.MATCHED),this.state=7674,this.errorHandler.sync(this),e=this.tokenStream.LA(1),33===e&&(this.state=7672,this.match(t.AND),this.state=7673,this.expression1()),this.state=7677,this.errorHandler.sync(this),e=this.tokenStream.LA(1),93===e&&(this.state=7676,this.match(t.THEN)),this.state=7679,this.match(t.INSERT),this.state=7684,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=7680,this.match(t.OPEN_PAREN),this.state=7681,this.insertColumnList(),this.state=7682,this.match(t.CLOSE_PAREN)),this.state=7686,this.valuesClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}mergeUpdateClause(){let e,s=new cT(this.context,this.state);this.enterRule(s,826,t.RULE_mergeUpdateClause);try{this.enterOuterAlt(s,1),this.state=7688,this.match(t.WHEN),this.state=7689,this.match(t.MATCHED),this.state=7692,this.errorHandler.sync(this),e=this.tokenStream.LA(1),33===e&&(this.state=7690,this.match(t.AND),this.state=7691,this.expression1()),this.state=7695,this.errorHandler.sync(this),e=this.tokenStream.LA(1),93===e&&(this.state=7694,this.match(t.THEN)),this.state=7697,this.match(t.UPDATE),this.state=7698,this.match(t.SET),this.state=7699,this.setClauseList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}mergeDeleteClause(){let e,s=new nT(this.context,this.state);this.enterRule(s,828,t.RULE_mergeDeleteClause);try{this.enterOuterAlt(s,1),this.state=7701,this.match(t.WHEN),this.state=7702,this.match(t.MATCHED),this.state=7704,this.errorHandler.sync(this),e=this.tokenStream.LA(1),93===e&&(this.state=7703,this.match(t.THEN)),this.state=7706,this.match(t.DELETE_P)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}deleteStatement(){let e,s=new hT(this.context,this.state);this.enterRule(s,830,t.RULE_deleteStatement);try{this.enterOuterAlt(s,1),this.state=7709,this.errorHandler.sync(this),e=this.tokenStream.LA(1),105===e&&(this.state=7708,this.withClause()),this.state=7711,this.match(t.DELETE_P),this.state=7712,this.match(t.FROM),this.state=7713,this.relationExpressionOptionalAlias(),this.state=7714,this.usingClause(),this.state=7715,this.whereOrCurrentClause(),this.state=7716,this.returningClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}usingClause(){let e=new ET(this.context,this.state);this.enterRule(e,832,t.RULE_usingClause);try{switch(this.state=7721,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=7718,this.match(t.USING),this.state=7719,this.fromList();break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.INTO:case t.RETURNING:case t.WHERE:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lockStatement(){let e=new TT(this.context,this.state);this.enterRule(e,834,t.RULE_lockStatement);try{this.enterOuterAlt(e,1),this.state=7723,this.match(t.LOCK_P),this.state=7724,this.optionalTable(),this.state=7725,this.relationExpressionList(),this.state=7726,this.optionalLock(),this.state=7727,this.optionalNowait()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalLock(){let e=new oT(this.context,this.state);this.enterRule(e,836,t.RULE_optionalLock);try{switch(this.state=7734,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IN_P:this.enterOuterAlt(e,1),this.state=7729,this.match(t.IN_P),this.state=7730,this.lockType(),this.state=7731,this.match(t.MODE);break;case t.EOF:case t.SEMI:case t.INTO:case t.NOWAIT:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lockType(){let e,s=new RT(this.context,this.state);this.enterRule(s,838,t.RULE_lockType);try{switch(this.state=7748,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ACCESS:this.enterOuterAlt(s,1),this.state=7736,this.match(t.ACCESS),this.state=7737,e=this.tokenStream.LA(1),201===e||327===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.ROW:this.enterOuterAlt(s,2),this.state=7738,this.match(t.ROW),this.state=7739,e=this.tokenStream.LA(1),201===e||327===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.SHARE:switch(this.enterOuterAlt(s,3),this.state=7740,this.match(t.SHARE),this.state=7745,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.UPDATE:this.state=7741,this.match(t.UPDATE),this.state=7742,this.match(t.EXCLUSIVE);break;case t.ROW:this.state=7743,this.match(t.ROW),this.state=7744,this.match(t.EXCLUSIVE);case t.MODE:}break;case t.EXCLUSIVE:this.enterOuterAlt(s,4),this.state=7747,this.match(t.EXCLUSIVE);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalNowait(){let e=new AT(this.context,this.state);this.enterRule(e,840,t.RULE_optionalNowait);try{switch(this.state=7752,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOWAIT:this.enterOuterAlt(e,1),this.state=7750,this.match(t.NOWAIT);break;case t.EOF:case t.SEMI:case t.INTO:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalNowaitOrSkip(){let e=new ST(this.context,this.state);this.enterRule(e,842,t.RULE_optionalNowaitOrSkip);try{switch(this.state=7758,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOWAIT:this.enterOuterAlt(e,1),this.state=7754,this.match(t.NOWAIT);break;case t.SKIP_P:this.enterOuterAlt(e,2),this.state=7755,this.match(t.SKIP_P),this.state=7756,this.match(t.LOCKED);break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.CREATE:case t.FETCH:case t.FOR:case t.GRANT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.RETURNING:case t.WITH:case t.LOOP:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}updateStatement(){let e,s=new lT(this.context,this.state);this.enterRule(s,844,t.RULE_updateStatement);try{this.enterOuterAlt(s,1),this.state=7761,this.errorHandler.sync(this),e=this.tokenStream.LA(1),105===e&&(this.state=7760,this.withClause()),this.state=7763,this.match(t.UPDATE),this.state=7764,this.relationExpressionOptionalAlias(),this.state=7765,this.match(t.SET),this.state=7766,this.setClauseList(),this.state=7767,this.fromClause(),this.state=7768,this.whereOrCurrentClause(),this.state=7769,this.returningClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setClauseList(){let e,s=new OT(this.context,this.state);this.enterRule(s,846,t.RULE_setClauseList);try{for(this.enterOuterAlt(s,1),this.state=7771,this.setClause(),this.state=7776,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7772,this.match(t.COMMA),this.state=7773,this.setClause(),this.state=7778,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setClause(){let e,s=new IT(this.context,this.state);this.enterRule(s,848,t.RULE_setClause);try{switch(this.state=7796,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(s,1),this.state=7779,this.setTarget(),this.state=7780,this.match(t.EQUAL),this.state=7781,this.expression1();break;case t.OPEN_PAREN:for(this.enterOuterAlt(s,2),this.state=7783,this.match(t.OPEN_PAREN),this.state=7784,this.setTarget(),this.state=7789,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7785,this.match(t.COMMA),this.state=7786,this.setTarget(),this.state=7791,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=7792,this.match(t.CLOSE_PAREN),this.state=7793,this.match(t.EQUAL),this.state=7794,this.expression1();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setTarget(){let e=new uT(this.context,this.state);this.enterRule(e,850,t.RULE_setTarget);try{this.enterOuterAlt(e,1),this.state=7798,this.columnId(),this.state=7799,this.optionalIndirection()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareCursorStatement(){let e,s=new NT(this.context,this.state);this.enterRule(s,852,t.RULE_declareCursorStatement);try{for(this.enterOuterAlt(s,1),this.state=7801,this.match(t.DECLARE),this.state=7802,this.cursorName(),this.state=7810,this.errorHandler.sync(this),e=this.tokenStream.LA(1);107===e||231===e||262===e||317===e;){switch(this.state=7808,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NO:this.state=7803,this.match(t.NO),this.state=7804,this.match(t.SCROLL);break;case t.SCROLL:this.state=7805,this.match(t.SCROLL);break;case t.BINARY:this.state=7806,this.match(t.BINARY);break;case t.INSENSITIVE:this.state=7807,this.match(t.INSENSITIVE);break;default:throw new he(this)}this.state=7812,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}this.state=7813,this.match(t.CURSOR),this.state=7814,this.optionalHold(),this.state=7815,this.match(t.FOR),this.state=7816,this.selectStatement()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}cursorName(){let e=new LT(this.context,this.state);this.enterRule(e,854,t.RULE_cursorName);try{this.enterOuterAlt(e,1),this.state=7818,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalHold(){let e=new CT(this.context,this.state);this.enterRule(e,856,t.RULE_optionalHold);try{switch(this.state=7825,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(e,1);break;case t.WITH:this.enterOuterAlt(e,2),this.state=7821,this.match(t.WITH),this.state=7822,this.match(t.HOLD);break;case t.WITHOUT:this.enterOuterAlt(e,3),this.state=7823,this.match(t.WITHOUT),this.state=7824,this.match(t.HOLD);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectStatement(){let e=new _T(this.context,this.state);this.enterRule(e,858,t.RULE_selectStatement);try{switch(this.state=7829,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,458,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7827,this.selectWithoutParenthesis();break;case 2:this.enterOuterAlt(e,2),this.state=7828,this.selectWithParenthesis()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectWithParenthesis(){let e=new PT(this.context,this.state);this.enterRule(e,860,t.RULE_selectWithParenthesis);try{switch(this.state=7839,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7831,this.match(t.OPEN_PAREN),this.state=7832,this.selectWithoutParenthesis(),this.state=7833,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2),this.state=7835,this.match(t.OPEN_PAREN),this.state=7836,this.selectWithParenthesis(),this.state=7837,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectWithoutParenthesis(){let e,s=new MT(this.context,this.state);this.enterRule(s,862,t.RULE_selectWithoutParenthesis);try{switch(this.state=7864,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.SELECT:case t.TABLE:case t.VALUES:switch(this.enterOuterAlt(s,1),this.state=7841,this.selectClause(),this.state=7842,this.optionalSortClause(),this.state=7850,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.state=7843,this.forLockingClause(),this.state=7844,this.optionalSelectLimit();break;case t.FETCH:case t.LIMIT:case t.OFFSET:this.state=7846,this.selectLimit(),this.state=7848,this.errorHandler.sync(this),e=this.tokenStream.LA(1),62===e&&(this.state=7847,this.forLockingClause());case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.RETURNING:case t.WITH:case t.LOOP:}break;case t.WITH:switch(this.enterOuterAlt(s,2),this.state=7852,this.withClause(),this.state=7853,this.selectClause(),this.state=7854,this.optionalSortClause(),this.state=7862,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.state=7855,this.forLockingClause(),this.state=7856,this.optionalSelectLimit();break;case t.FETCH:case t.LIMIT:case t.OFFSET:this.state=7858,this.selectLimit(),this.state=7860,this.errorHandler.sync(this),e=this.tokenStream.LA(1),62===e&&(this.state=7859,this.forLockingClause());case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.RETURNING:case t.WITH:case t.LOOP:}break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectClause(){let e,s=new dT(this.context,this.state);this.enterRule(s,864,t.RULE_selectClause);try{for(this.enterOuterAlt(s,1),this.state=7866,this.simpleSelectIntersect(),this.state=7873,this.errorHandler.sync(this),e=this.tokenStream.LA(1);59===e||97===e;)this.state=7867,e=this.tokenStream.LA(1),59===e||97===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=7868,this.allOrDistinct(),this.state=7869,this.simpleSelectIntersect(),this.state=7875,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simpleSelectIntersect(){let e,s=new UT(this.context,this.state);this.enterRule(s,866,t.RULE_simpleSelectIntersect);try{for(this.enterOuterAlt(s,1),this.state=7876,this.simpleSelectPramary(),this.state=7883,this.errorHandler.sync(this),e=this.tokenStream.LA(1);70===e;)this.state=7877,this.match(t.INTERSECT),this.state=7878,this.allOrDistinct(),this.state=7879,this.simpleSelectPramary(),this.state=7885,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simpleSelectStart(){let e=new mT(this.context,this.state);this.enterRule(e,868,t.RULE_simpleSelectStart);try{switch(this.state=7901,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.STAR:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:if(1===(this.enterOuterAlt(e,1),this.state=7886,this.targetList(),this.state=7888,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,467,this.context)))this.state=7887,this.intoClause();break;case t.ALL:if(1===(this.enterOuterAlt(e,2),this.state=7890,this.allClause(),this.state=7891,this.optionalTargetList(),this.state=7893,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,468,this.context)))this.state=7892,this.intoClause();break;case t.DISTINCT:if(1===(this.enterOuterAlt(e,3),this.state=7895,this.distinctClause(),this.state=7896,this.targetList(),this.state=7898,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,469,this.context)))this.state=7897,this.intoClause();break;case t.INTO:this.enterOuterAlt(e,4),this.state=7900,this.intoClause();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simpleSelectPramary(){let e=new DT(this.context,this.state);this.enterRule(e,870,t.RULE_simpleSelectPramary);try{switch(this.state=7915,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:this.enterOuterAlt(e,1),this.state=7903,this.match(t.SELECT),this.state=7904,this.simpleSelectStart(),this.state=7905,this.fromClause(),this.state=7906,this.whereClause(),this.state=7907,this.groupClause(),this.state=7908,this.havingClause(),this.state=7909,this.windowClause();break;case t.VALUES:this.enterOuterAlt(e,2),this.state=7911,this.valuesClause();break;case t.TABLE:this.enterOuterAlt(e,3),this.state=7912,this.match(t.TABLE),this.state=7913,this.relationExpression();break;case t.OPEN_PAREN:this.enterOuterAlt(e,4),this.state=7914,this.selectWithParenthesis();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}withClause(){let e,s=new pT(this.context,this.state);this.enterRule(s,872,t.RULE_withClause);try{if(this.enterOuterAlt(s,1),1===(this.state=7917,this.match(t.WITH),this.state=7919,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,472,this.context)))this.state=7918,this.match(t.RECURSIVE);for(this.state=7921,this.commonTableExpression(),this.state=7926,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7922,this.match(t.COMMA),this.state=7923,this.commonTableExpression(),this.state=7928,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}commonTableExpression(){let e=new gT(this.context,this.state);this.enterRule(e,874,t.RULE_commonTableExpression);try{this.enterOuterAlt(e,1),this.state=7929,this.name(),this.state=7930,this.optionalNameList(),this.state=7931,this.match(t.AS),this.state=7932,this.optionalMaterialized(),this.state=7933,this.match(t.OPEN_PAREN),this.state=7934,this.preparableStatement(),this.state=7935,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalMaterialized(){let e=new xT(this.context,this.state);this.enterRule(e,876,t.RULE_optionalMaterialized);try{switch(this.state=7941,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.MATERIALIZED:this.enterOuterAlt(e,1),this.state=7937,this.match(t.MATERIALIZED);break;case t.NOT:this.enterOuterAlt(e,2),this.state=7938,this.match(t.NOT),this.state=7939,this.match(t.MATERIALIZED);break;case t.OPEN_PAREN:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}intoClause(){let e=new kT(this.context,this.state);this.enterRule(e,878,t.RULE_intoClause);try{switch(this.enterOuterAlt(e,1),this.state=7943,this.match(t.INTO),this.state=7949,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,476,this.context)){case 1:if(1===(this.state=7945,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,475,this.context)))this.state=7944,this.match(t.STRICT_P);this.state=7947,this.optionalTemporaryTableName();break;case 2:this.state=7948,this.intoTarget()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTemporaryTableName(){let e,s=new HT(this.context,this.state);this.enterRule(s,880,t.RULE_optionalTemporaryTableName);try{switch(this.state=7965,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,478,this.context)){case 1:this.enterOuterAlt(s,1),this.state=7952,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(213===e||245===e)&&(this.state=7951,e=this.tokenStream.LA(1),213===e||245===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=7954,e=this.tokenStream.LA(1),345===e||347===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=7955,this.optionalTable(),this.state=7956,this.qualifiedName();break;case 2:this.enterOuterAlt(s,2),this.state=7958,this.match(t.UNLOGGED),this.state=7959,this.optionalTable(),this.state=7960,this.qualifiedName();break;case 3:this.enterOuterAlt(s,3),this.state=7962,this.match(t.TABLE),this.state=7963,this.qualifiedName();break;case 4:this.enterOuterAlt(s,4),this.state=7964,this.qualifiedName()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalTable(){let e=new GT(this.context,this.state);this.enterRule(e,882,t.RULE_optionalTable);try{switch(this.state=7969,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,479,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7967,this.match(t.TABLE);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}allOrDistinct(){let e=new FT(this.context,this.state);this.enterRule(e,884,t.RULE_allOrDistinct);try{switch(this.state=7974,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALL:this.enterOuterAlt(e,1),this.state=7971,this.match(t.ALL);break;case t.DISTINCT:this.enterOuterAlt(e,2),this.state=7972,this.match(t.DISTINCT);break;case t.OPEN_PAREN:case t.SELECT:case t.TABLE:case t.VALUES:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}distinctClause(){let e,s=new vT(this.context,this.state);this.enterRule(s,886,t.RULE_distinctClause);try{this.enterOuterAlt(s,1),this.state=7976,this.match(t.DISTINCT),this.state=7982,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=7977,this.match(t.ON),this.state=7978,this.match(t.OPEN_PAREN),this.state=7979,this.expressionList(),this.state=7980,this.match(t.CLOSE_PAREN))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}allClause(){let e=new BT(this.context,this.state);this.enterRule(e,888,t.RULE_allClause);try{this.enterOuterAlt(e,1),this.state=7984,this.match(t.ALL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalSortClause(){let e=new yT(this.context,this.state);this.enterRule(e,890,t.RULE_optionalSortClause);try{switch(this.state=7988,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ORDER:this.enterOuterAlt(e,1),this.state=7986,this.sortClause();break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.CREATE:case t.FETCH:case t.FOR:case t.GRANT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.RETURNING:case t.WITH:case t.RANGE:case t.ROWS:case t.GROUPS:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sortClause(){let e=new fT(this.context,this.state);this.enterRule(e,892,t.RULE_sortClause);try{this.enterOuterAlt(e,1),this.state=7990,this.match(t.ORDER),this.state=7991,this.match(t.BY),this.state=7992,this.sortByList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sortByList(){let e,s=new YT(this.context,this.state);this.enterRule(s,894,t.RULE_sortByList);try{for(this.enterOuterAlt(s,1),this.state=7994,this.sortBy(),this.state=7999,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=7995,this.match(t.COMMA),this.state=7996,this.sortBy(),this.state=8001,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sortBy(){let e=new wT(this.context,this.state);this.enterRule(e,896,t.RULE_sortBy);try{switch(this.enterOuterAlt(e,1),this.state=8002,this.expression1(),this.state=8006,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.state=8003,this.match(t.USING),this.state=8004,this.allOperatorQualifier();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.ASC:case t.CREATE:case t.DESC:case t.FETCH:case t.FOR:case t.GRANT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.RETURNING:case t.WITH:case t.NULLS_P:case t.RANGE:case t.ROWS:case t.GROUPS:case t.LOOP:this.state=8005,this.optionalAscOrDesc();break;default:throw new he(this)}this.state=8008,this.optionalNullsOrder()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectLimit(){let e,s=new bT(this.context,this.state);this.enterRule(s,898,t.RULE_selectLimit);try{switch(this.state=8018,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FETCH:case t.LIMIT:this.enterOuterAlt(s,1),this.state=8010,this.limitClause(),this.state=8012,this.errorHandler.sync(this),e=this.tokenStream.LA(1),79===e&&(this.state=8011,this.offsetClause());break;case t.OFFSET:this.enterOuterAlt(s,2),this.state=8014,this.offsetClause(),this.state=8016,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(61===e||74===e)&&(this.state=8015,this.limitClause());break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalSelectLimit(){let e=new WT(this.context,this.state);this.enterRule(e,900,t.RULE_optionalSelectLimit);try{switch(this.state=8022,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FETCH:case t.LIMIT:case t.OFFSET:this.enterOuterAlt(e,1),this.state=8020,this.selectLimit();break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.CREATE:case t.GRANT:case t.INTO:case t.ON:case t.RETURNING:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}limitClause(){let e,s=new VT(this.context,this.state);this.enterRule(s,902,t.RULE_limitClause);try{switch(this.state=8047,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LIMIT:this.enterOuterAlt(s,1),this.state=8024,this.match(t.LIMIT),this.state=8025,this.selectLimitValue(),this.state=8028,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e&&(this.state=8026,this.match(t.COMMA),this.state=8027,this.selectOffsetValue());break;case t.FETCH:switch(this.enterOuterAlt(s,2),this.state=8030,this.match(t.FETCH),this.state=8031,this.firstOrNext(),this.state=8045,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,492,this.context)){case 1:switch(this.state=8032,this.selectFetchFirstValue(),this.state=8033,this.rowOrRows(),this.state=8037,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ONLY:this.state=8034,this.match(t.ONLY);break;case t.WITH:this.state=8035,this.match(t.WITH),this.state=8036,this.match(t.TIES);break;default:throw new he(this)}break;case 2:switch(this.state=8039,this.rowOrRows(),this.state=8043,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ONLY:this.state=8040,this.match(t.ONLY);break;case t.WITH:this.state=8041,this.match(t.WITH),this.state=8042,this.match(t.TIES);break;default:throw new he(this)}}break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}offsetClause(){let e=new XT(this.context,this.state);this.enterRule(e,904,t.RULE_offsetClause);try{switch(this.enterOuterAlt(e,1),this.state=8049,this.match(t.OFFSET),this.state=8054,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,494,this.context)){case 1:this.state=8050,this.selectOffsetValue();break;case 2:this.state=8051,this.selectFetchFirstValue(),this.state=8052,this.rowOrRows()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectLimitValue(){let e=new KT(this.context,this.state);this.enterRule(e,906,t.RULE_selectLimitValue);try{switch(this.state=8058,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=8056,this.expression1();break;case t.ALL:this.enterOuterAlt(e,2),this.state=8057,this.match(t.ALL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectOffsetValue(){let e=new QT(this.context,this.state);this.enterRule(e,908,t.RULE_selectOffsetValue);try{this.enterOuterAlt(e,1),this.state=8060,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectFetchFirstValue(){let e=new JT(this.context,this.state);this.enterRule(e,910,t.RULE_selectFetchFirstValue);try{switch(this.state=8067,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.PARAM:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=8062,this.expression3();break;case t.PLUS:this.enterOuterAlt(e,2),this.state=8063,this.match(t.PLUS),this.state=8064,this.anyConst();break;case t.MINUS:this.enterOuterAlt(e,3),this.state=8065,this.match(t.MINUS),this.state=8066,this.anyConst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}anyConst(){let e=new ZT(this.context,this.state);this.enterRule(e,912,t.RULE_anyConst);try{switch(this.state=8071,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.Integral:this.enterOuterAlt(e,1),this.state=8069,this.iconst();break;case t.Numeric:this.enterOuterAlt(e,2),this.state=8070,this.fconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rowOrRows(){let e,s=new qT(this.context,this.state);this.enterRule(s,914,t.RULE_rowOrRows);try{this.enterOuterAlt(s,1),this.state=8073,e=this.tokenStream.LA(1),313===e||407===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}firstOrNext(){let e,s=new jT(this.context,this.state);this.enterRule(s,916,t.RULE_firstOrNext);try{this.enterOuterAlt(s,1),this.state=8075,e=this.tokenStream.LA(1),207===e||261===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}groupClause(){let e=new zT(this.context,this.state);this.enterRule(e,918,t.RULE_groupClause);try{switch(this.state=8081,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.GROUP_P:this.enterOuterAlt(e,1),this.state=8077,this.match(t.GROUP_P),this.state=8078,this.match(t.BY),this.state=8079,this.groupByList();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CREATE:case t.EXCEPT:case t.FETCH:case t.FOR:case t.GRANT:case t.HAVING:case t.INTERSECT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.ORDER:case t.RETURNING:case t.THEN:case t.UNION:case t.USING:case t.WHEN:case t.WINDOW:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}groupByList(){let e=new $T(this.context,this.state);this.enterRule(e,920,t.RULE_groupByList);try{let s;for(this.enterOuterAlt(e,1),this.state=8083,this.groupByItem(),this.state=8088,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,499,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=8084,this.match(t.COMMA),this.state=8085,this.groupByItem()),this.state=8090,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,499,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}groupByItem(){let e=new to(this.context,this.state);this.enterRule(e,922,t.RULE_groupByItem);try{switch(this.state=8110,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,500,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8091,this.expression1();break;case 2:this.enterOuterAlt(e,2),this.state=8092,this.match(t.OPEN_PAREN),this.state=8093,this.match(t.CLOSE_PAREN);break;case 3:this.enterOuterAlt(e,3),this.state=8094,this.match(t.CUBE),this.state=8095,this.match(t.OPEN_PAREN),this.state=8096,this.expressionList(),this.state=8097,this.match(t.CLOSE_PAREN);break;case 4:this.enterOuterAlt(e,4),this.state=8099,this.match(t.ROLLUP),this.state=8100,this.match(t.OPEN_PAREN),this.state=8101,this.expressionList(),this.state=8102,this.match(t.CLOSE_PAREN);break;case 5:this.enterOuterAlt(e,5),this.state=8104,this.match(t.GROUPING),this.state=8105,this.match(t.SETS),this.state=8106,this.match(t.OPEN_PAREN),this.state=8107,this.groupByList(),this.state=8108,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}havingClause(){let e=new eo(this.context,this.state);this.enterRule(e,924,t.RULE_havingClause);try{switch(this.state=8115,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.HAVING:this.enterOuterAlt(e,1),this.state=8112,this.match(t.HAVING),this.state=8113,this.expression1();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CREATE:case t.EXCEPT:case t.FETCH:case t.FOR:case t.GRANT:case t.INTERSECT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.ORDER:case t.RETURNING:case t.THEN:case t.UNION:case t.USING:case t.WHEN:case t.WINDOW:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}forLockingClause(){let e,s=new so(this.context,this.state);this.enterRule(s,926,t.RULE_forLockingClause);try{switch(this.state=8125,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,503,this.context)){case 1:this.enterOuterAlt(s,1),this.state=8118,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=8117,this.forLockingItem(),this.state=8120,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(62===e);break;case 2:this.enterOuterAlt(s,2),this.state=8122,this.match(t.FOR),this.state=8123,this.match(t.READ),this.state=8124,this.match(t.ONLY)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}forLockingItem(){let e=new ao(this.context,this.state);this.enterRule(e,928,t.RULE_forLockingItem);try{this.enterOuterAlt(e,1),this.state=8127,this.forLockingStrength(),this.state=8128,this.lockedRelationsList(),this.state=8129,this.optionalNowaitOrSkip()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}forLockingStrength(){let e,s=new io(this.context,this.state);this.enterRule(s,930,t.RULE_forLockingStrength);try{switch(this.enterOuterAlt(s,1),this.state=8131,this.match(t.FOR),this.state=8141,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NO:case t.UPDATE:this.state=8134,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=8132,this.match(t.NO),this.state=8133,this.match(t.KEY)),this.state=8136,this.match(t.UPDATE);break;case t.KEY:case t.SHARE:this.state=8138,this.errorHandler.sync(this),e=this.tokenStream.LA(1),236===e&&(this.state=8137,this.match(t.KEY)),this.state=8140,this.match(t.SHARE);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lockedRelationsList(){let e=new ro(this.context,this.state);this.enterRule(e,932,t.RULE_lockedRelationsList);try{switch(this.state=8146,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OF:this.enterOuterAlt(e,1),this.state=8143,this.match(t.OF),this.state=8144,this.qualifiedNameList();break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.CREATE:case t.FETCH:case t.FOR:case t.GRANT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.RETURNING:case t.WITH:case t.NOWAIT:case t.SKIP_P:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}valuesClause(){let e,s=new co(this.context,this.state);this.enterRule(s,934,t.RULE_valuesClause);try{for(this.enterOuterAlt(s,1),this.state=8148,this.match(t.VALUES),this.state=8149,this.match(t.OPEN_PAREN),this.state=8150,this.expressionList(),this.state=8151,this.match(t.CLOSE_PAREN),this.state=8159,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8152,this.match(t.COMMA),this.state=8153,this.match(t.OPEN_PAREN),this.state=8154,this.expressionList(),this.state=8155,this.match(t.CLOSE_PAREN),this.state=8161,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}fromClause(){let e=new no(this.context,this.state);this.enterRule(e,936,t.RULE_fromClause);try{switch(this.state=8165,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FROM:this.enterOuterAlt(e,1),this.state=8162,this.match(t.FROM),this.state=8163,this.fromList();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CREATE:case t.EXCEPT:case t.FETCH:case t.FOR:case t.GRANT:case t.GROUP_P:case t.HAVING:case t.INTERSECT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.ORDER:case t.RETURNING:case t.THEN:case t.UNION:case t.USING:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fromList(){let e=new ho(this.context,this.state);this.enterRule(e,938,t.RULE_fromList);try{let s;switch(this.state=8176,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,511,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8167,this.nonAnsiJoin();break;case 2:for(this.enterOuterAlt(e,2),this.state=8168,this.tableReference(),this.state=8173,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,510,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=8169,this.match(t.COMMA),this.state=8170,this.tableReference()),this.state=8175,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,510,this.context)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}nonAnsiJoin(){let e=new Eo(this.context,this.state);this.enterRule(e,940,t.RULE_nonAnsiJoin);try{let s;this.enterOuterAlt(e,1),this.state=8178,this.tableReference(),this.state=8181,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new he(this);this.state=8179,this.match(t.COMMA),this.state=8180,this.tableReference(),this.state=8183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,512,this.context)}while(2!==s&&s!==q.INVALID_ALT_NUMBER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableReference(){let e,s=new To(this.context,this.state);this.enterRule(s,942,t.RULE_tableReference);try{let a;switch(this.enterOuterAlt(s,1),this.state=8234,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,518,this.context)){case 1:this.state=8185,this.relationExpression(),this.state=8186,this.optionalAliasClause(),this.state=8188,this.errorHandler.sync(this),e=this.tokenStream.LA(1),472===e&&(this.state=8187,this.tableSampleClause());break;case 2:this.state=8190,this.functionTable(),this.state=8191,this.functionAliasClause();break;case 3:this.state=8193,this.xmlTable(),this.state=8194,this.optionalAliasClause();break;case 4:this.state=8196,this.selectWithParenthesis(),this.state=8197,this.optionalAliasClause();break;case 5:switch(this.state=8199,this.match(t.LATERAL_P),this.state=8209,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,514,this.context)){case 1:this.state=8200,this.xmlTable(),this.state=8201,this.optionalAliasClause();break;case 2:this.state=8203,this.functionTable(),this.state=8204,this.functionAliasClause();break;case 3:this.state=8206,this.selectWithParenthesis(),this.state=8207,this.optionalAliasClause()}break;case 6:switch(this.state=8211,this.match(t.OPEN_PAREN),this.state=8212,this.tableReference(),this.state=8229,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CROSS:this.state=8213,this.match(t.CROSS),this.state=8214,this.match(t.JOIN),this.state=8215,this.tableReference();break;case t.NATURAL:this.state=8216,this.match(t.NATURAL),this.state=8218,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-113&-32)&&1<<e-113&8261&&(this.state=8217,this.joinType()),this.state=8220,this.match(t.JOIN),this.state=8221,this.tableReference();break;case t.FULL:case t.INNER_P:case t.JOIN:case t.LEFT:case t.RIGHT:this.state=8223,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-113&-32)&&1<<e-113&8261&&(this.state=8222,this.joinType()),this.state=8225,this.match(t.JOIN),this.state=8226,this.tableReference(),this.state=8227,this.joinQualifier();case t.CLOSE_PAREN:}this.state=8231,this.match(t.CLOSE_PAREN),this.state=8232,this.optionalAliasClause()}for(this.state=8254,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,522,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;){if(1===a)switch(this.state=8252,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CROSS:this.state=8236,this.match(t.CROSS),this.state=8237,this.match(t.JOIN),this.state=8238,this.tableReference();break;case t.NATURAL:this.state=8239,this.match(t.NATURAL),this.state=8241,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-113&-32)&&1<<e-113&8261&&(this.state=8240,this.joinType()),this.state=8243,this.match(t.JOIN),this.state=8244,this.tableReference();break;case t.FULL:case t.INNER_P:case t.JOIN:case t.LEFT:case t.RIGHT:this.state=8246,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-113&-32)&&1<<e-113&8261&&(this.state=8245,this.joinType()),this.state=8248,this.match(t.JOIN),this.state=8249,this.tableReference(),this.state=8250,this.joinQualifier();break;default:throw new he(this)}this.state=8256,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,522,this.context)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}aliasClause(){let e,s=new oo(this.context,this.state);this.enterRule(s,944,t.RULE_aliasClause);try{this.enterOuterAlt(s,1),this.state=8258,this.errorHandler.sync(this),e=this.tokenStream.LA(1),36===e&&(this.state=8257,this.match(t.AS)),this.state=8260,this.columnId(),this.state=8265,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=8261,this.match(t.OPEN_PAREN),this.state=8262,this.nameList(),this.state=8263,this.match(t.CLOSE_PAREN))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalAliasClause(){let e=new Ro(this.context,this.state);this.enterRule(e,946,t.RULE_optionalAliasClause);try{switch(this.state=8269,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,525,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8267,this.tableAliasClause();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableAliasClause(){let e,s=new Ao(this.context,this.state);this.enterRule(s,948,t.RULE_tableAliasClause);try{this.enterOuterAlt(s,1),this.state=8272,this.errorHandler.sync(this),e=this.tokenStream.LA(1),36===e&&(this.state=8271,this.match(t.AS)),this.state=8274,this.tableAlias(),this.state=8279,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=8275,this.match(t.OPEN_PAREN),this.state=8276,this.nameList(),this.state=8277,this.match(t.CLOSE_PAREN))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionAliasClause(){let e,s=new So(this.context,this.state);this.enterRule(s,950,t.RULE_functionAliasClause);try{switch(this.state=8294,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,530,this.context)){case 1:this.enterOuterAlt(s,1),this.state=8281,this.aliasClause();break;case 2:switch(this.enterOuterAlt(s,2),this.state=8287,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.state=8282,this.match(t.AS),this.state=8284,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268421||!(e-92&-32)&&1<<e-92&2298478593||!(e-124&-32)&&1<<e-124&4294967269||!(e-156&-32)&&1<<e-156&4294967295||!(e-188&-32)&&1<<e-188&4294967295||!(e-220&-32)&&1<<e-220&3221225471||!(e-252&-32)&&1<<e-252&4294967293||!(e-284&-32)&&1<<e-284&4294967295||!(e-316&-32)&&1<<e-316&4294967295||!(e-348&-32)&&1<<e-348&4294967295||!(e-380&-32)&&1<<e-380&4294967295||!(e-412&-32)&&1<<e-412&4294967295||!(e-444&-32)&&1<<e-444&4026530815||!(e-476&-32)&&1<<e-476&3623878655||!(e-508&-32)&&1<<e-508&4294965247||!(e-540&-32)&&1<<e-540&4294967295||!(e-572&-32)&&1<<e-572&4294967295||!(e-604&-32)&&1<<e-604&4294967295||!(e-636&-32)&&1<<e-636&100663331)&&(this.state=8283,this.columnId());break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=8286,this.columnId();break;default:throw new he(this)}this.state=8289,this.match(t.OPEN_PAREN),this.state=8290,this.tableFunctionElementList(),this.state=8291,this.match(t.CLOSE_PAREN);break;case 3:this.enterOuterAlt(s,3)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}joinType(){let e,s=new lo(this.context,this.state);this.enterRule(s,952,t.RULE_joinType);try{this.enterOuterAlt(s,1),this.state=8296,e=this.tokenStream.LA(1),!(e-113&-32)&&1<<e-113&8261?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8298,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=8297,this.match(t.OUTER_P))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}joinQualifier(){let e=new Oo(this.context,this.state);this.enterRule(e,954,t.RULE_joinQualifier);try{switch(this.state=8307,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USING:this.enterOuterAlt(e,1),this.state=8300,this.match(t.USING),this.state=8301,this.match(t.OPEN_PAREN),this.state=8302,this.nameList(),this.state=8303,this.match(t.CLOSE_PAREN);break;case t.ON:this.enterOuterAlt(e,2),this.state=8305,this.match(t.ON),this.state=8306,this.expression1();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}viewName(){let e=new Io(this.context,this.state);this.enterRule(e,956,t.RULE_viewName);try{this.enterOuterAlt(e,1),this.state=8309,this.qualifiedName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}relationExpression(){let e,s=new uo(this.context,this.state);this.enterRule(s,958,t.RULE_relationExpression);try{switch(this.state=8323,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(s,1),this.state=8311,this.qualifiedName(),this.state=8313,this.errorHandler.sync(this),e=this.tokenStream.LA(1),9===e&&(this.state=8312,this.match(t.STAR));break;case t.ONLY:switch(this.enterOuterAlt(s,2),this.state=8315,this.match(t.ONLY),this.state=8321,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=8316,this.qualifiedName();break;case t.OPEN_PAREN:this.state=8317,this.match(t.OPEN_PAREN),this.state=8318,this.qualifiedName(),this.state=8319,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}relationExpressionList(){let e,s=new No(this.context,this.state);this.enterRule(s,960,t.RULE_relationExpressionList);try{for(this.enterOuterAlt(s,1),this.state=8325,this.relationExpression(),this.state=8330,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8326,this.match(t.COMMA),this.state=8327,this.relationExpression(),this.state=8332,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}relationExpressionOptionalAlias(){let e,s=new Lo(this.context,this.state);this.enterRule(s,962,t.RULE_relationExpressionOptionalAlias);try{if(1===(this.enterOuterAlt(s,1),this.state=8333,this.relationExpression(),this.state=8338,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,538,this.context)))this.state=8335,this.errorHandler.sync(this),e=this.tokenStream.LA(1),36===e&&(this.state=8334,this.match(t.AS)),this.state=8337,this.columnId()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableSampleClause(){let e=new Co(this.context,this.state);this.enterRule(e,964,t.RULE_tableSampleClause);try{this.enterOuterAlt(e,1),this.state=8340,this.match(t.TABLESAMPLE),this.state=8341,this.functionName(),this.state=8342,this.match(t.OPEN_PAREN),this.state=8343,this.expressionList(),this.state=8344,this.match(t.CLOSE_PAREN),this.state=8345,this.match(t.REPEATABLE),this.state=8346,this.match(t.OPEN_PAREN),this.state=8347,this.expression1(),this.state=8348,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionTable(){let e,s=new _o(this.context,this.state);this.enterRule(s,966,t.RULE_functionTable);try{switch(this.state=8367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,540,this.context)){case 1:this.enterOuterAlt(s,1),this.state=8350,this.functionExpressionWindowless(),this.state=8351,this.optionalOrdinality();break;case 2:for(this.enterOuterAlt(s,2),this.state=8353,this.match(t.ROWS),this.state=8354,this.match(t.FROM),this.state=8355,this.match(t.OPEN_PAREN),this.state=8356,this.rowsFromItem(),this.state=8361,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8357,this.match(t.COMMA),this.state=8358,this.rowsFromItem(),this.state=8363,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=8364,this.match(t.CLOSE_PAREN),this.state=8365,this.optionalOrdinality()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}rowsFromItem(){let e=new Po(this.context,this.state);this.enterRule(e,968,t.RULE_rowsFromItem);try{this.enterOuterAlt(e,1),this.state=8369,this.functionExpressionWindowless(),this.state=8370,this.optionalColumnDefinitionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalColumnDefinitionList(){let e=new Mo(this.context,this.state);this.enterRule(e,970,t.RULE_optionalColumnDefinitionList);try{switch(this.state=8378,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.enterOuterAlt(e,1),this.state=8372,this.match(t.AS),this.state=8373,this.match(t.OPEN_PAREN),this.state=8374,this.tableFunctionElementList(),this.state=8375,this.match(t.CLOSE_PAREN);break;case t.CLOSE_PAREN:case t.COMMA:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalOrdinality(){let e=new Uo(this.context,this.state);this.enterRule(e,972,t.RULE_optionalOrdinality);try{switch(this.state=8383,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,542,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8380,this.match(t.WITH),this.state=8381,this.match(t.ORDINALITY);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}whereClause(){let e=new mo(this.context,this.state);this.enterRule(e,974,t.RULE_whereClause);try{switch(this.state=8388,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHERE:this.enterOuterAlt(e,1),this.state=8385,this.match(t.WHERE),this.state=8386,this.expression1();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CREATE:case t.DO:case t.EXCEPT:case t.FETCH:case t.FOR:case t.GRANT:case t.GROUP_P:case t.HAVING:case t.INTERSECT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.ORDER:case t.RETURNING:case t.THEN:case t.UNION:case t.USING:case t.WHEN:case t.WINDOW:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}whereOrCurrentClause(){let e=new Do(this.context,this.state);this.enterRule(e,976,t.RULE_whereOrCurrentClause);try{switch(this.state=8398,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHERE:switch(this.enterOuterAlt(e,1),this.state=8390,this.match(t.WHERE),this.state=8395,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,544,this.context)){case 1:this.state=8391,this.match(t.CURRENT_P),this.state=8392,this.match(t.OF),this.state=8393,this.cursorName();break;case 2:this.state=8394,this.expression1()}break;case t.EOF:case t.CLOSE_PAREN:case t.SEMI:case t.INTO:case t.RETURNING:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTableFunctionElementList(){let e=new po(this.context,this.state);this.enterRule(e,978,t.RULE_optionalTableFunctionElementList);try{switch(this.state=8402,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=8400,this.tableFunctionElementList();break;case t.CLOSE_PAREN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableFunctionElementList(){let e,s=new go(this.context,this.state);this.enterRule(s,980,t.RULE_tableFunctionElementList);try{for(this.enterOuterAlt(s,1),this.state=8404,this.tableFunctionElement(),this.state=8409,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8405,this.match(t.COMMA),this.state=8406,this.tableFunctionElement(),this.state=8411,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableFunctionElement(){let e=new xo(this.context,this.state);this.enterRule(e,982,t.RULE_tableFunctionElement);try{this.enterOuterAlt(e,1),this.state=8412,this.columnId(),this.state=8413,this.typeName(),this.state=8414,this.optionalCollateClause()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xmlTable(){let e,s=new ko(this.context,this.state);this.enterRule(s,984,t.RULE_xmlTable);try{switch(this.enterOuterAlt(s,1),this.state=8416,this.match(t.XMLTABLE),this.state=8417,this.match(t.OPEN_PAREN),this.state=8445,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,550,this.context)){case 1:for(this.state=8418,this.expression3(),this.state=8419,this.xmlExistsArgument(),this.state=8420,this.match(t.COLUMNS),this.state=8421,this.xmlTableColumnElement(),this.state=8426,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8422,this.match(t.COMMA),this.state=8423,this.xmlTableColumnElement(),this.state=8428,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:for(this.state=8429,this.match(t.XMLNAMESPACES),this.state=8430,this.match(t.OPEN_PAREN),this.state=8431,this.xmlNamespaceList(),this.state=8432,this.match(t.CLOSE_PAREN),this.state=8433,this.match(t.COMMA),this.state=8434,this.expression3(),this.state=8435,this.xmlExistsArgument(),this.state=8436,this.match(t.COLUMNS),this.state=8437,this.xmlTableColumnElement(),this.state=8442,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8438,this.match(t.COMMA),this.state=8439,this.xmlTableColumnElement(),this.state=8444,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}this.state=8447,this.match(t.CLOSE_PAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlTableColumnElement(){let e,s=new Ho(this.context,this.state);this.enterRule(s,986,t.RULE_xmlTableColumnElement);try{switch(this.enterOuterAlt(s,1),this.state=8449,this.columnId(),this.state=8456,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=8450,this.typeName(),this.state=8452,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&286268421||!(e-77&-32)&&1<<e-77&32771||!(e-116&-32)&&1<<e-116&268451969||!(e-153&-32)&&1<<e-153&540945||!(e-207&-32)&&1<<e-207&33554441||!(e-240&-32)&&1<<e-240&6553601||!(e-272&-32)&&1<<e-272&268451841||!(e-306&-32)&&1<<e-306&1051713||353===e||433===e||434===e||!(e-477&-32)&&1<<e-477&3825197057||!(e-509&-32)&&1<<e-509&3055||!(e-636&-32)&&1<<e-636&100663331)&&(this.state=8451,this.xmlTableColumnOptionList());break;case t.FOR:this.state=8454,this.match(t.FOR),this.state=8455,this.match(t.ORDINALITY);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlTableColumnOptionList(){let e,s=new Go(this.context,this.state);this.enterRule(s,988,t.RULE_xmlTableColumnOptionList);try{this.enterOuterAlt(s,1),this.state=8459,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=8458,this.xmlTableColumnOptionElement(),this.state=8461,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-33&-32)&&1<<e-33&286268421||!(e-77&-32)&&1<<e-77&32771||!(e-116&-32)&&1<<e-116&268451969||!(e-153&-32)&&1<<e-153&540945||!(e-207&-32)&&1<<e-207&33554441||!(e-240&-32)&&1<<e-240&6553601||!(e-272&-32)&&1<<e-272&268451841||!(e-306&-32)&&1<<e-306&1051713||353===e||433===e||434===e||!(e-477&-32)&&1<<e-477&3825197057||!(e-509&-32)&&1<<e-509&3055||!(e-636&-32)&&1<<e-636&100663331)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlTableColumnOptionElement(){let e=new Fo(this.context,this.state);this.enterRule(e,990,t.RULE_xmlTableColumnOptionElement);try{switch(this.state=8471,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,554,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8463,this.match(t.DEFAULT),this.state=8464,this.expression1();break;case 2:this.enterOuterAlt(e,2),this.state=8465,this.identifier(),this.state=8466,this.expression1();break;case 3:this.enterOuterAlt(e,3),this.state=8468,this.match(t.NOT),this.state=8469,this.match(t.NULL_P);break;case 4:this.enterOuterAlt(e,4),this.state=8470,this.match(t.NULL_P)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xmlNamespaceList(){let e,s=new vo(this.context,this.state);this.enterRule(s,992,t.RULE_xmlNamespaceList);try{for(this.enterOuterAlt(s,1),this.state=8473,this.xmlNamespaceElement(),this.state=8478,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=8474,this.match(t.COMMA),this.state=8475,this.xmlNamespaceElement(),this.state=8480,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlNamespaceElement(){let e=new Bo(this.context,this.state);this.enterRule(e,994,t.RULE_xmlNamespaceElement);try{switch(this.state=8487,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,556,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8481,this.expression2(0),this.state=8482,this.match(t.AS),this.state=8483,this.columnLabel();break;case 2:this.enterOuterAlt(e,2),this.state=8485,this.match(t.DEFAULT),this.state=8486,this.expression2(0)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}typeName(){let e,s=new yo(this.context,this.state);this.enterRule(s,996,t.RULE_typeName);try{let a;switch(this.state=8516,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,562,this.context)){case 1:switch(this.enterOuterAlt(s,1),this.state=8490,this.errorHandler.sync(this),e=this.tokenStream.LA(1),408===e&&(this.state=8489,this.match(t.SETOF)),this.state=8492,this.simpleTypeName(),this.state=8510,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,561,this.context)){case 1:for(this.state=8500,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,559,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=8493,this.match(t.OPEN_BRACKET),this.state=8495,this.errorHandler.sync(this),e=this.tokenStream.LA(1),658===e&&(this.state=8494,this.iconst()),this.state=8497,this.match(t.CLOSE_BRACKET)),this.state=8502,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,559,this.context);break;case 2:if(1===(this.state=8503,this.match(t.ARRAY),this.state=8508,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,560,this.context)))this.state=8504,this.match(t.OPEN_BRACKET),this.state=8505,this.iconst(),this.state=8506,this.match(t.CLOSE_BRACKET)}break;case 2:this.enterOuterAlt(s,2),this.state=8512,this.qualifiedName(),this.state=8513,this.match(t.PERCENT),this.state=8514,e=this.tokenStream.LA(1),353===e||477===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simpleTypeName(){let e=new fo(this.context,this.state);this.enterRule(e,998,t.RULE_simpleTypeName);try{switch(this.state=8531,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,564,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8518,this.genericType();break;case 2:this.enterOuterAlt(e,2),this.state=8519,this.numeric();break;case 3:this.enterOuterAlt(e,3),this.state=8520,this.bit();break;case 4:this.enterOuterAlt(e,4),this.state=8521,this.character();break;case 5:this.enterOuterAlt(e,5),this.state=8522,this.constDateTime();break;case 6:switch(this.enterOuterAlt(e,6),this.state=8523,this.constInterval(),this.state=8529,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,563,this.context)){case 1:this.state=8524,this.optionalInterval();break;case 2:this.state=8525,this.match(t.OPEN_PAREN),this.state=8526,this.iconst(),this.state=8527,this.match(t.CLOSE_PAREN)}}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constTypeName(){let e=new Yo(this.context,this.state);this.enterRule(e,1e3,t.RULE_constTypeName);try{switch(this.state=8537,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOUBLE_P:case t.BIGINT:case t.BOOLEAN_P:case t.DEC:case t.DECIMAL_P:case t.FLOAT_P:case t.INT_P:case t.INTEGER:case t.NUMERIC:case t.REAL:case t.SMALLINT:this.enterOuterAlt(e,1),this.state=8533,this.numeric();break;case t.BIT:this.enterOuterAlt(e,2),this.state=8534,this.constBit();break;case t.CHAR_P:case t.CHARACTER:case t.NATIONAL:case t.NCHAR:case t.VARCHAR:this.enterOuterAlt(e,3),this.state=8535,this.constCharacter();break;case t.TIME:case t.TIMESTAMP:this.enterOuterAlt(e,4),this.state=8536,this.constDateTime();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}genericType(){let e=new wo(this.context,this.state);this.enterRule(e,1002,t.RULE_genericType);try{switch(this.enterOuterAlt(e,1),this.state=8543,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.REPLACE:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.REVERSE:case t.LOG:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:this.state=8539,this.builtinFunctionName();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.COLUMNS:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=8540,this.typeFunctionName();break;case t.LEFT:this.state=8541,this.match(t.LEFT);break;case t.RIGHT:this.state=8542,this.match(t.RIGHT);break;default:throw new he(this)}if(1===(this.state=8546,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,567,this.context)))this.state=8545,this.attributes();this.state=8548,this.optionalTypeModifiers()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTypeModifiers(){let e=new bo(this.context,this.state);this.enterRule(e,1004,t.RULE_optionalTypeModifiers);try{switch(this.state=8555,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,568,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8550,this.match(t.OPEN_PAREN),this.state=8551,this.expressionList(),this.state=8552,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}numeric(){let e=new Wo(this.context,this.state);this.enterRule(e,1006,t.RULE_numeric);try{switch(this.state=8573,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INT_P:this.enterOuterAlt(e,1),this.state=8557,this.match(t.INT_P);break;case t.INTEGER:this.enterOuterAlt(e,2),this.state=8558,this.match(t.INTEGER);break;case t.SMALLINT:this.enterOuterAlt(e,3),this.state=8559,this.match(t.SMALLINT);break;case t.BIGINT:this.enterOuterAlt(e,4),this.state=8560,this.match(t.BIGINT);break;case t.REAL:this.enterOuterAlt(e,5),this.state=8561,this.match(t.REAL);break;case t.FLOAT_P:this.enterOuterAlt(e,6),this.state=8562,this.match(t.FLOAT_P),this.state=8563,this.optionalFloat();break;case t.DOUBLE_P:this.enterOuterAlt(e,7),this.state=8564,this.match(t.DOUBLE_P),this.state=8565,this.match(t.PRECISION);break;case t.DECIMAL_P:this.enterOuterAlt(e,8),this.state=8566,this.match(t.DECIMAL_P),this.state=8567,this.optionalTypeModifiers();break;case t.DEC:this.enterOuterAlt(e,9),this.state=8568,this.match(t.DEC),this.state=8569,this.optionalTypeModifiers();break;case t.NUMERIC:this.enterOuterAlt(e,10),this.state=8570,this.match(t.NUMERIC),this.state=8571,this.optionalTypeModifiers();break;case t.BOOLEAN_P:this.enterOuterAlt(e,11),this.state=8572,this.match(t.BOOLEAN_P);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalFloat(){let e=new Vo(this.context,this.state);this.enterRule(e,1008,t.RULE_optionalFloat);try{switch(this.state=8580,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,570,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8575,this.match(t.OPEN_PAREN),this.state=8576,this.iconst(),this.state=8577,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bit(){let e=new Xo(this.context,this.state);this.enterRule(e,1010,t.RULE_bit);try{switch(this.state=8584,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,571,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8582,this.bitWithLength();break;case 2:this.enterOuterAlt(e,2),this.state=8583,this.bitWithoutLength()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constBit(){let e=new Ko(this.context,this.state);this.enterRule(e,1012,t.RULE_constBit);try{switch(this.state=8588,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,572,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8586,this.bitWithLength();break;case 2:this.enterOuterAlt(e,2),this.state=8587,this.bitWithoutLength()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bitWithLength(){let e=new Qo(this.context,this.state);this.enterRule(e,1014,t.RULE_bitWithLength);try{this.enterOuterAlt(e,1),this.state=8590,this.match(t.BIT),this.state=8591,this.optionalVarying(),this.state=8592,this.match(t.OPEN_PAREN),this.state=8593,this.expressionList(),this.state=8594,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bitWithoutLength(){let e=new Jo(this.context,this.state);this.enterRule(e,1016,t.RULE_bitWithoutLength);try{this.enterOuterAlt(e,1),this.state=8596,this.match(t.BIT),this.state=8597,this.optionalVarying()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}character(){let e=new Zo(this.context,this.state);this.enterRule(e,1018,t.RULE_character);try{if(1===(this.enterOuterAlt(e,1),this.state=8599,this.characterChar(),this.state=8604,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,573,this.context)))this.state=8600,this.match(t.OPEN_PAREN),this.state=8601,this.iconst(),this.state=8602,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constCharacter(){let e,s=new qo(this.context,this.state);this.enterRule(s,1020,t.RULE_constCharacter);try{this.enterOuterAlt(s,1),this.state=8606,this.characterChar(),this.state=8611,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=8607,this.match(t.OPEN_PAREN),this.state=8608,this.iconst(),this.state=8609,this.match(t.CLOSE_PAREN))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}characterChar(){let e,s=new jo(this.context,this.state);this.enterRule(s,1022,t.RULE_characterChar);try{switch(this.state=8619,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CHAR_P:case t.CHARACTER:case t.NCHAR:this.enterOuterAlt(s,1),this.state=8613,e=this.tokenStream.LA(1),!(e-384&-32)&&1<<e-384&32771?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8614,this.optionalVarying();break;case t.VARCHAR:this.enterOuterAlt(s,2),this.state=8615,this.match(t.VARCHAR);break;case t.NATIONAL:this.enterOuterAlt(s,3),this.state=8616,this.match(t.NATIONAL),this.state=8617,e=this.tokenStream.LA(1),384===e||385===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8618,this.optionalVarying();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalVarying(){let e=new zo(this.context,this.state);this.enterRule(e,1024,t.RULE_optionalVarying);try{switch(this.state=8623,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,576,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8621,this.match(t.VARYING);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constDateTime(){let e,s=new $o(this.context,this.state);this.enterRule(s,1026,t.RULE_constDateTime);try{if(this.enterOuterAlt(s,1),1===(this.state=8625,e=this.tokenStream.LA(1),411===e||412===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8630,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,577,this.context)))this.state=8626,this.match(t.OPEN_PAREN),this.state=8627,this.iconst(),this.state=8628,this.match(t.CLOSE_PAREN);this.state=8632,this.optionalTimezone()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}constInterval(){let e=new tR(this.context,this.state);this.enterRule(e,1028,t.RULE_constInterval);try{this.enterOuterAlt(e,1),this.state=8634,this.match(t.INTERVAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTimezone(){let e=new eR(this.context,this.state);this.enterRule(e,1030,t.RULE_optionalTimezone);try{switch(this.state=8643,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,578,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8636,this.match(t.WITH),this.state=8637,this.match(t.TIME),this.state=8638,this.match(t.ZONE);break;case 2:this.enterOuterAlt(e,2),this.state=8639,this.match(t.WITHOUT),this.state=8640,this.match(t.TIME),this.state=8641,this.match(t.ZONE);break;case 3:this.enterOuterAlt(e,3)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalInterval(){let e=new sR(this.context,this.state);this.enterRule(e,1032,t.RULE_optionalInterval);try{switch(this.state=8671,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,581,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8645,this.match(t.YEAR_P);break;case 2:this.enterOuterAlt(e,2),this.state=8646,this.match(t.MONTH_P);break;case 3:this.enterOuterAlt(e,3),this.state=8647,this.match(t.DAY_P);break;case 4:this.enterOuterAlt(e,4),this.state=8648,this.match(t.HOUR_P);break;case 5:this.enterOuterAlt(e,5),this.state=8649,this.match(t.MINUTE_P);break;case 6:this.enterOuterAlt(e,6),this.state=8650,this.intervalSecond();break;case 7:this.enterOuterAlt(e,7),this.state=8651,this.match(t.YEAR_P),this.state=8652,this.match(t.TO),this.state=8653,this.match(t.MONTH_P);break;case 8:switch(this.enterOuterAlt(e,8),this.state=8654,this.match(t.DAY_P),this.state=8655,this.match(t.TO),this.state=8659,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.HOUR_P:this.state=8656,this.match(t.HOUR_P);break;case t.MINUTE_P:this.state=8657,this.match(t.MINUTE_P);break;case t.SECOND_P:this.state=8658,this.intervalSecond();break;default:throw new he(this)}break;case 9:switch(this.enterOuterAlt(e,9),this.state=8661,this.match(t.HOUR_P),this.state=8662,this.match(t.TO),this.state=8665,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.MINUTE_P:this.state=8663,this.match(t.MINUTE_P);break;case t.SECOND_P:this.state=8664,this.intervalSecond();break;default:throw new he(this)}break;case 10:this.enterOuterAlt(e,10),this.state=8667,this.match(t.MINUTE_P),this.state=8668,this.match(t.TO),this.state=8669,this.intervalSecond();break;case 11:this.enterOuterAlt(e,11)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}intervalSecond(){let e=new aR(this.context,this.state);this.enterRule(e,1034,t.RULE_intervalSecond);try{if(1===(this.enterOuterAlt(e,1),this.state=8673,this.match(t.SECOND_P),this.state=8678,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,582,this.context)))this.state=8674,this.match(t.OPEN_PAREN),this.state=8675,this.iconst(),this.state=8676,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalEscape(){let e=new iR(this.context,this.state);this.enterRule(e,1036,t.RULE_optionalEscape);try{switch(this.state=8683,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,583,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8680,this.match(t.ESCAPE),this.state=8681,this.expression1();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1(){let e=new rR(this.context,this.state);this.enterRule(e,1038,t.RULE_expression1);try{this.enterOuterAlt(e,1),this.state=8685,this.expression1Qualifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1Qualifier(){let e=new cR(this.context,this.state);this.enterRule(e,1040,t.RULE_expression1Qualifier);try{if(1===(this.enterOuterAlt(e,1),this.state=8687,this.expression1LessLess(),this.state=8689,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,584,this.context)))this.state=8688,this.operatorQualifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1LessLess(){let e,s=new nR(this.context,this.state);this.enterRule(s,1042,t.RULE_expression1LessLess);try{let t;for(this.enterOuterAlt(s,1),this.state=8691,this.expression1Or(),this.state=8696,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,585,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;)1===t&&(this.state=8692,e=this.tokenStream.LA(1),18===e||19===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8693,this.expression1Or()),this.state=8698,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,585,this.context)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1Or(){let e=new hR(this.context,this.state);this.enterRule(e,1044,t.RULE_expression1Or);try{let s;for(this.enterOuterAlt(e,1),this.state=8699,this.expression1And(),this.state=8704,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,586,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=8700,this.match(t.OR),this.state=8701,this.expression1And()),this.state=8706,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,586,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1And(){let e=new ER(this.context,this.state);this.enterRule(e,1046,t.RULE_expression1And);try{let s;for(this.enterOuterAlt(e,1),this.state=8707,this.expression1Between(),this.state=8712,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,587,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=8708,this.match(t.AND),this.state=8709,this.expression1Between()),this.state=8714,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,587,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1Between(){let e,s=new TR(this.context,this.state);this.enterRule(s,1048,t.RULE_expression1Between);try{if(1===(this.enterOuterAlt(s,1),this.state=8715,this.expression1In(),this.state=8727,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,590,this.context)))this.state=8717,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=8716,this.match(t.NOT)),this.state=8719,this.match(t.BETWEEN),this.state=8721,this.errorHandler.sync(this),e=this.tokenStream.LA(1),91===e&&(this.state=8720,this.match(t.SYMMETRIC)),this.state=8723,this.expression1In(),this.state=8724,this.match(t.AND),this.state=8725,this.expression1In()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1In(){let e,s=new oR(this.context,this.state);this.enterRule(s,1050,t.RULE_expression1In);try{if(1===(this.enterOuterAlt(s,1),this.state=8729,this.expression1UnaryNot(),this.state=8735,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,592,this.context)))this.state=8731,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=8730,this.match(t.NOT)),this.state=8733,this.match(t.IN_P),this.state=8734,this.inExpression()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1UnaryNot(){let e,s=new RR(this.context,this.state);this.enterRule(s,1052,t.RULE_expression1UnaryNot);try{this.enterOuterAlt(s,1),this.state=8738,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=8737,this.match(t.NOT)),this.state=8740,this.expression1IsNull()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1IsNull(){let e,s=new AR(this.context,this.state);this.enterRule(s,1054,t.RULE_expression1IsNull);try{if(1===(this.enterOuterAlt(s,1),this.state=8742,this.expression1IsNot(),this.state=8744,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,594,this.context)))this.state=8743,e=this.tokenStream.LA(1),117===e||122===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1IsNot(){let e,s=new SR(this.context,this.state);this.enterRule(s,1056,t.RULE_expression1IsNot);try{if(1===(this.enterOuterAlt(s,1),this.state=8746,this.expression1Compare(),this.state=8770,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,598,this.context)))switch(this.state=8747,this.match(t.IS),this.state=8749,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=8748,this.match(t.NOT)),this.state=8768,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NULL_P:this.state=8751,this.match(t.NULL_P);break;case t.TRUE_P:this.state=8752,this.match(t.TRUE_P);break;case t.FALSE_P:this.state=8753,this.match(t.FALSE_P);break;case t.UNKNOWN:this.state=8754,this.match(t.UNKNOWN);break;case t.DISTINCT:this.state=8755,this.match(t.DISTINCT),this.state=8756,this.match(t.FROM),this.state=8757,this.expression1();break;case t.OF:this.state=8758,this.match(t.OF),this.state=8759,this.match(t.OPEN_PAREN),this.state=8760,this.typeList(),this.state=8761,this.match(t.CLOSE_PAREN);break;case t.DOCUMENT_P:this.state=8763,this.match(t.DOCUMENT_P);break;case t.NORMALIZED:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:this.state=8765,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-483&-32)&&1<<e-483&15&&(this.state=8764,this.unicodeNormalForm()),this.state=8767,this.match(t.NORMALIZED);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1Compare(){let e,s=new lR(this.context,this.state);this.enterRule(s,1058,t.RULE_expression1Compare);try{switch(this.enterOuterAlt(s,1),this.state=8772,this.expression1Like(),this.state=8784,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,600,this.context)){case 1:this.state=8773,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&44237824?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8774,this.expression1Like();break;case 2:switch(this.state=8775,this.subqueryOperator(),this.state=8776,this.subType(),this.state=8782,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,599,this.context)){case 1:this.state=8777,this.selectWithParenthesis();break;case 2:this.state=8778,this.match(t.OPEN_PAREN),this.state=8779,this.expression1(),this.state=8780,this.match(t.CLOSE_PAREN)}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1Like(){let e,s=new OR(this.context,this.state);this.enterRule(s,1060,t.RULE_expression1Like);try{if(1===(this.enterOuterAlt(s,1),this.state=8786,this.expression1qualifierOperator(),this.state=8799,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,603,this.context))){switch(this.state=8788,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=8787,this.match(t.NOT)),this.state=8794,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LIKE:this.state=8790,this.match(t.LIKE);break;case t.ILIKE:this.state=8791,this.match(t.ILIKE);break;case t.SIMILAR:this.state=8792,this.match(t.SIMILAR),this.state=8793,this.match(t.TO);break;default:throw new he(this)}this.state=8796,this.expression1qualifierOperator(),this.state=8797,this.optionalEscape()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1qualifierOperator(){let e=new IR(this.context,this.state);this.enterRule(e,1062,t.RULE_expression1qualifierOperator);try{let t;for(this.enterOuterAlt(e,1),this.state=8801,this.expression1UnaryQualifierOperator(),this.state=8807,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,604,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;)1===t&&(this.state=8802,this.operatorQualifier(),this.state=8803,this.expression1UnaryQualifierOperator()),this.state=8809,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,604,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1UnaryQualifierOperator(){let e=new uR(this.context,this.state);this.enterRule(e,1064,t.RULE_expression1UnaryQualifierOperator);try{if(this.enterOuterAlt(e,1),1===(this.state=8811,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,605,this.context)))this.state=8810,this.operatorQualifier();this.state=8813,this.expression1Add()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1Add(){let e,s=new NR(this.context,this.state);this.enterRule(s,1066,t.RULE_expression1Add);try{let t;for(this.enterOuterAlt(s,1),this.state=8815,this.expressionMultiply(),this.state=8820,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,606,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;)1===t&&(this.state=8816,e=this.tokenStream.LA(1),12===e||13===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8817,this.expressionMultiply()),this.state=8822,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,606,this.context)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expressionMultiply(){let e,s=new LR(this.context,this.state);this.enterRule(s,1068,t.RULE_expressionMultiply);try{let t;for(this.enterOuterAlt(s,1),this.state=8823,this.expression1Caret(),this.state=8828,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,607,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;)1===t&&(this.state=8824,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&134234624?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8825,this.expression1Caret()),this.state=8830,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,607,this.context)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1Caret(){let e=new CR(this.context,this.state);this.enterRule(e,1070,t.RULE_expression1Caret);try{if(1===(this.enterOuterAlt(e,1),this.state=8831,this.expression1UnarySign(),this.state=8834,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,608,this.context)))this.state=8832,this.match(t.CARET),this.state=8833,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1UnarySign(){let e,s=new _R(this.context,this.state);this.enterRule(s,1072,t.RULE_expression1UnarySign);try{this.enterOuterAlt(s,1),this.state=8837,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(12===e||13===e)&&(this.state=8836,e=this.tokenStream.LA(1),12===e||13===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=8839,this.expression1AtTimeZone()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression1AtTimeZone(){let e=new PR(this.context,this.state);this.enterRule(e,1074,t.RULE_expression1AtTimeZone);try{if(1===(this.enterOuterAlt(e,1),this.state=8841,this.expression1Collate(),this.state=8846,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,610,this.context)))this.state=8842,this.match(t.AT),this.state=8843,this.match(t.TIME),this.state=8844,this.match(t.ZONE),this.state=8845,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1Collate(){let e=new MR(this.context,this.state);this.enterRule(e,1076,t.RULE_expression1Collate);try{if(1===(this.enterOuterAlt(e,1),this.state=8848,this.expression1Typecast(),this.state=8851,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,611,this.context)))this.state=8849,this.match(t.COLLATE),this.state=8850,this.anyName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression1Typecast(){let e,s=new dR(this.context,this.state);this.enterRule(s,1078,t.RULE_expression1Typecast);try{for(this.enterOuterAlt(s,1),this.state=8853,this.expression3(),this.state=8858,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=8854,this.match(t.TYPECAST),this.state=8855,this.typeName(),this.state=8860,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expression2(e){void 0===e&&(e=0);let s,a=this.context,i=this.state,r=new UR(this.context,i),c=r,n=1080;this.enterRecursionRule(r,1080,t.RULE_expression2,e);try{let e;switch(this.enterOuterAlt(r,1),this.state=8868,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,613,this.context)){case 1:this.state=8862,this.expression3();break;case 2:this.state=8863,s=this.tokenStream.LA(1),12===s||13===s?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8864,this.expression2(9);break;case 3:this.state=8865,this.operatorQualifier(),this.state=8866,this.expression2(3)}for(this.context.stop=this.tokenStream.LT(-1),this.state=8909,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,617,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this.parseListeners&&this.triggerExitRuleEvent(),c=r,this.state=8907,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,616,this.context)){case 1:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8870,!this.precpred(this.context,8))throw this.createFailedPredicateException("this.precpred(this.context, 8)");this.state=8871,this.match(t.CARET),this.state=8872,this.expression2(9);break;case 2:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8873,!this.precpred(this.context,7))throw this.createFailedPredicateException("this.precpred(this.context, 7)");this.state=8874,s=this.tokenStream.LA(1),!(-32&s)&&1<<s&134234624?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8875,this.expression2(8);break;case 3:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8876,!this.precpred(this.context,6))throw this.createFailedPredicateException("this.precpred(this.context, 6)");this.state=8877,s=this.tokenStream.LA(1),12===s||13===s?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8878,this.expression2(7);break;case 4:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8879,!this.precpred(this.context,5))throw this.createFailedPredicateException("this.precpred(this.context, 5)");this.state=8880,this.operatorQualifier(),this.state=8881,this.expression2(6);break;case 5:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8883,!this.precpred(this.context,4))throw this.createFailedPredicateException("this.precpred(this.context, 4)");this.state=8884,s=this.tokenStream.LA(1),!(-32&s)&&1<<s&44237824?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8885,this.expression2(5);break;case 6:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8886,!this.precpred(this.context,10))throw this.createFailedPredicateException("this.precpred(this.context, 10)");this.state=8887,this.match(t.TYPECAST),this.state=8888,this.typeName();break;case 7:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8889,!this.precpred(this.context,2))throw this.createFailedPredicateException("this.precpred(this.context, 2)");this.state=8890,this.operatorQualifier();break;case 8:if(r=new UR(a,i),this.pushNewRecursionContext(r,n,t.RULE_expression2),this.state=8891,!this.precpred(this.context,1))throw this.createFailedPredicateException("this.precpred(this.context, 1)");switch(this.state=8892,this.match(t.IS),this.state=8894,this.errorHandler.sync(this),s=this.tokenStream.LA(1),77===s&&(this.state=8893,this.match(t.NOT)),this.state=8905,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISTINCT:this.state=8896,this.match(t.DISTINCT),this.state=8897,this.match(t.FROM),this.state=8898,this.expression2(0);break;case t.OF:this.state=8899,this.match(t.OF),this.state=8900,this.match(t.OPEN_PAREN),this.state=8901,this.typeList(),this.state=8902,this.match(t.CLOSE_PAREN);break;case t.DOCUMENT_P:this.state=8904,this.match(t.DOCUMENT_P);break;default:throw new he(this)}}this.state=8911,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,617,this.context)}}catch(h){if(!(h instanceof qt))throw h;this.errorHandler.reportError(this,h),this.errorHandler.recover(this,h)}finally{this.unrollRecursionContexts(a)}return r}expression3(){let e=new mR(this.context,this.state);this.enterRule(e,1082,t.RULE_expression3);try{switch(this.state=8948,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,620,this.context)){case 1:e=new DR(e),this.enterOuterAlt(e,1),this.state=8912,this.match(t.EXISTS),this.state=8913,this.selectWithParenthesis();break;case 2:switch(e=new gR(e),this.enterOuterAlt(e,2),this.state=8914,this.match(t.ARRAY),this.state=8917,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.state=8915,this.selectWithParenthesis();break;case t.OPEN_BRACKET:this.state=8916,this.arrayExpression();break;default:throw new he(this)}break;case 3:e=new gR(e),this.enterOuterAlt(e,3),this.state=8919,this.match(t.PARAM),this.state=8920,this.optionalIndirection();break;case 4:e=new gR(e),this.enterOuterAlt(e,4),this.state=8921,this.match(t.GROUPING),this.state=8922,this.match(t.OPEN_PAREN),this.state=8923,this.expressionList(),this.state=8924,this.match(t.CLOSE_PAREN);break;case 5:e=new gR(e),this.enterOuterAlt(e,5),this.state=8926,this.match(t.UNIQUE),this.state=8927,this.selectWithParenthesis();break;case 6:e=new gR(e),this.enterOuterAlt(e,6),this.state=8928,this.columnReference();break;case 7:e=new gR(e),this.enterOuterAlt(e,7),this.state=8929,this.aExpressionConst();break;case 8:e=new gR(e),this.enterOuterAlt(e,8),this.state=8930,this.plsqlVariableName();break;case 9:e=new gR(e),this.enterOuterAlt(e,9),this.state=8931,this.match(t.OPEN_PAREN),this.state=8932,e._a_expr_in_parens=this.expression1(),this.state=8933,this.match(t.CLOSE_PAREN),this.state=8934,this.optionalIndirection();break;case 10:e=new pR(e),this.enterOuterAlt(e,10),this.state=8936,this.caseExpression();break;case 11:e=new gR(e),this.enterOuterAlt(e,11),this.state=8937,this.functionExpression();break;case 12:if(1===(e=new gR(e),this.enterOuterAlt(e,12),this.state=8938,this.selectWithParenthesis(),this.state=8940,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,619,this.context)))this.state=8939,this.indirection();break;case 13:e=new gR(e),this.enterOuterAlt(e,13),this.state=8942,this.explicitRow();break;case 14:e=new gR(e),this.enterOuterAlt(e,14),this.state=8943,this.implicitRow();break;case 15:e=new gR(e),this.enterOuterAlt(e,15),this.state=8944,this.row(),this.state=8945,this.match(t.OVERLAPS),this.state=8946,this.row()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}plsqlVariableName(){let e=new xR(this.context,this.state);this.enterRule(e,1084,t.RULE_plsqlVariableName);try{this.enterOuterAlt(e,1),this.state=8950,this.match(t.PLSQLVARIABLENAME)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionApplication(){let e,s=new kR(this.context,this.state);this.enterRule(s,1086,t.RULE_functionApplication);try{switch(this.enterOuterAlt(s,1),this.state=8952,this.functionName(),this.state=8953,this.match(t.OPEN_PAREN),this.state=8972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.state=8954,this.functionArgumentList(),this.state=8958,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e&&(this.state=8955,this.match(t.COMMA),this.state=8956,this.match(t.VARIADIC),this.state=8957,this.functionArgumentExpression()),this.state=8960,this.optionalSortClause();break;case t.VARIADIC:this.state=8962,this.match(t.VARIADIC),this.state=8963,this.functionArgumentExpression(),this.state=8964,this.optionalSortClause();break;case t.ALL:case t.DISTINCT:this.state=8966,e=this.tokenStream.LA(1),30===e||56===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=8967,this.functionArgumentList(),this.state=8968,this.optionalSortClause();break;case t.STAR:this.state=8970,this.match(t.STAR);break;case t.CLOSE_PAREN:break;default:throw new he(this)}this.state=8974,this.match(t.CLOSE_PAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionExpression(){let e=new HR(this.context,this.state);this.enterRule(e,1088,t.RULE_functionExpression);try{switch(this.state=8982,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,623,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8976,this.functionApplication(),this.state=8977,this.withinGroupClause(),this.state=8978,this.filterClause(),this.state=8979,this.overClause();break;case 2:this.enterOuterAlt(e,2),this.state=8981,this.functionExpressionCommonSubexpr()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionExpressionWindowless(){let e=new GR(this.context,this.state);this.enterRule(e,1090,t.RULE_functionExpressionWindowless);try{switch(this.state=8986,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,624,this.context)){case 1:this.enterOuterAlt(e,1),this.state=8984,this.functionApplication();break;case 2:this.enterOuterAlt(e,2),this.state=8985,this.functionExpressionCommonSubexpr()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionExpressionCommonSubexpr(){let e,s=new FR(this.context,this.state);this.enterRule(s,1092,t.RULE_functionExpressionCommonSubexpr);try{switch(this.state=9165,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COLLATION:this.enterOuterAlt(s,1),this.state=8988,this.match(t.COLLATION),this.state=8989,this.match(t.FOR),this.state=8990,this.match(t.OPEN_PAREN),this.state=8991,this.expression1(),this.state=8992,this.match(t.CLOSE_PAREN);break;case t.CURRENT_DATE:this.enterOuterAlt(s,2),this.state=8994,this.match(t.CURRENT_DATE);break;case t.CURRENT_TIME:if(1===(this.enterOuterAlt(s,3),this.state=8995,this.match(t.CURRENT_TIME),this.state=9e3,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,625,this.context)))this.state=8996,this.match(t.OPEN_PAREN),this.state=8997,this.iconst(),this.state=8998,this.match(t.CLOSE_PAREN);break;case t.CURRENT_TIMESTAMP:if(1===(this.enterOuterAlt(s,4),this.state=9002,this.match(t.CURRENT_TIMESTAMP),this.state=9007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,626,this.context)))this.state=9003,this.match(t.OPEN_PAREN),this.state=9004,this.iconst(),this.state=9005,this.match(t.CLOSE_PAREN);break;case t.LOCALTIME:if(1===(this.enterOuterAlt(s,5),this.state=9009,this.match(t.LOCALTIME),this.state=9014,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,627,this.context)))this.state=9010,this.match(t.OPEN_PAREN),this.state=9011,this.iconst(),this.state=9012,this.match(t.CLOSE_PAREN);break;case t.LOCALTIMESTAMP:if(1===(this.enterOuterAlt(s,6),this.state=9016,this.match(t.LOCALTIMESTAMP),this.state=9021,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,628,this.context)))this.state=9017,this.match(t.OPEN_PAREN),this.state=9018,this.iconst(),this.state=9019,this.match(t.CLOSE_PAREN);break;case t.CURRENT_ROLE:this.enterOuterAlt(s,7),this.state=9023,this.match(t.CURRENT_ROLE);break;case t.CURRENT_USER:this.enterOuterAlt(s,8),this.state=9024,this.match(t.CURRENT_USER);break;case t.SESSION_USER:this.enterOuterAlt(s,9),this.state=9025,this.match(t.SESSION_USER);break;case t.USER:this.enterOuterAlt(s,10),this.state=9026,this.match(t.USER);break;case t.CURRENT_CATALOG:this.enterOuterAlt(s,11),this.state=9027,this.match(t.CURRENT_CATALOG);break;case t.CURRENT_SCHEMA:this.enterOuterAlt(s,12),this.state=9028,this.match(t.CURRENT_SCHEMA);break;case t.CAST:this.enterOuterAlt(s,13),this.state=9029,this.match(t.CAST),this.state=9030,this.match(t.OPEN_PAREN),this.state=9031,this.expression1(),this.state=9032,this.match(t.AS),this.state=9033,this.typeName(),this.state=9034,this.match(t.CLOSE_PAREN);break;case t.EXTRACT:this.enterOuterAlt(s,14),this.state=9036,this.match(t.EXTRACT),this.state=9037,this.match(t.OPEN_PAREN),this.state=9038,this.extractList(),this.state=9039,this.match(t.CLOSE_PAREN);break;case t.NORMALIZE:this.enterOuterAlt(s,15),this.state=9041,this.match(t.NORMALIZE),this.state=9042,this.match(t.OPEN_PAREN),this.state=9043,this.expression1(),this.state=9046,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e&&(this.state=9044,this.match(t.COMMA),this.state=9045,this.unicodeNormalForm()),this.state=9048,this.match(t.CLOSE_PAREN);break;case t.OVERLAY:this.enterOuterAlt(s,16),this.state=9050,this.match(t.OVERLAY),this.state=9051,this.match(t.OPEN_PAREN),this.state=9052,this.overlayList(),this.state=9053,this.match(t.CLOSE_PAREN);break;case t.POSITION:this.enterOuterAlt(s,17),this.state=9055,this.match(t.POSITION),this.state=9056,this.match(t.OPEN_PAREN),this.state=9057,this.positionList(),this.state=9058,this.match(t.CLOSE_PAREN);break;case t.SUBSTRING:this.enterOuterAlt(s,18),this.state=9060,this.match(t.SUBSTRING),this.state=9061,this.match(t.OPEN_PAREN),this.state=9062,this.substrList(),this.state=9063,this.match(t.CLOSE_PAREN);break;case t.TREAT:this.enterOuterAlt(s,19),this.state=9065,this.match(t.TREAT),this.state=9066,this.match(t.OPEN_PAREN),this.state=9067,this.expression1(),this.state=9068,this.match(t.AS),this.state=9069,this.typeName(),this.state=9070,this.match(t.CLOSE_PAREN);break;case t.TRIM:this.enterOuterAlt(s,20),this.state=9072,this.match(t.TRIM),this.state=9073,this.match(t.OPEN_PAREN),this.state=9075,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(39===e||73===e||95===e)&&(this.state=9074,e=this.tokenStream.LA(1),39===e||73===e||95===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=9077,this.trimList(),this.state=9078,this.match(t.CLOSE_PAREN);break;case t.NULLIF:this.enterOuterAlt(s,21),this.state=9080,this.match(t.NULLIF),this.state=9081,this.match(t.OPEN_PAREN),this.state=9082,this.expression1(),this.state=9083,this.match(t.COMMA),this.state=9084,this.expression1(),this.state=9085,this.match(t.CLOSE_PAREN);break;case t.COALESCE:this.enterOuterAlt(s,22),this.state=9087,this.match(t.COALESCE),this.state=9088,this.match(t.OPEN_PAREN),this.state=9089,this.expressionList(),this.state=9090,this.match(t.CLOSE_PAREN);break;case t.GREATEST:this.enterOuterAlt(s,23),this.state=9092,this.match(t.GREATEST),this.state=9093,this.match(t.OPEN_PAREN),this.state=9094,this.expressionList(),this.state=9095,this.match(t.CLOSE_PAREN);break;case t.LEAST:this.enterOuterAlt(s,24),this.state=9097,this.match(t.LEAST),this.state=9098,this.match(t.OPEN_PAREN),this.state=9099,this.expressionList(),this.state=9100,this.match(t.CLOSE_PAREN);break;case t.XMLCONCAT:this.enterOuterAlt(s,25),this.state=9102,this.match(t.XMLCONCAT),this.state=9103,this.match(t.OPEN_PAREN),this.state=9104,this.expressionList(),this.state=9105,this.match(t.CLOSE_PAREN);break;case t.XMLELEMENT:if(this.enterOuterAlt(s,26),this.state=9107,this.match(t.XMLELEMENT),this.state=9108,this.match(t.OPEN_PAREN),this.state=9109,this.match(t.NAME_P),this.state=9110,this.columnLabel(),this.state=9116,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e)switch(this.state=9111,this.match(t.COMMA),this.state=9114,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,631,this.context)){case 1:this.state=9112,this.xmlAttributes();break;case 2:this.state=9113,this.expressionList()}this.state=9118,this.match(t.CLOSE_PAREN);break;case t.XMLEXISTS:this.enterOuterAlt(s,27),this.state=9120,this.match(t.XMLEXISTS),this.state=9121,this.match(t.OPEN_PAREN),this.state=9122,this.expression3(),this.state=9123,this.xmlExistsArgument(),this.state=9124,this.match(t.CLOSE_PAREN);break;case t.XMLFOREST:this.enterOuterAlt(s,28),this.state=9126,this.match(t.XMLFOREST),this.state=9127,this.match(t.OPEN_PAREN),this.state=9128,this.xmlAttributeList(),this.state=9129,this.match(t.CLOSE_PAREN);break;case t.XMLPARSE:this.enterOuterAlt(s,29),this.state=9131,this.match(t.XMLPARSE),this.state=9132,this.match(t.OPEN_PAREN),this.state=9133,this.documentOrContent(),this.state=9134,this.expression1(),this.state=9135,this.xmlWhitespaceOption(),this.state=9136,this.match(t.CLOSE_PAREN);break;case t.XMLPI:this.enterOuterAlt(s,30),this.state=9138,this.match(t.XMLPI),this.state=9139,this.match(t.OPEN_PAREN),this.state=9140,this.match(t.NAME_P),this.state=9141,this.columnLabel(),this.state=9144,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e&&(this.state=9142,this.match(t.COMMA),this.state=9143,this.expression1()),this.state=9146,this.match(t.CLOSE_PAREN);break;case t.XMLROOT:this.enterOuterAlt(s,31),this.state=9148,this.match(t.XMLROOT),this.state=9149,this.match(t.OPEN_PAREN),this.state=9150,this.match(t.XML_P),this.state=9151,this.expression1(),this.state=9152,this.match(t.COMMA),this.state=9153,this.xmlRootVersion(),this.state=9154,this.optionalXmlRootStandalone(),this.state=9155,this.match(t.CLOSE_PAREN);break;case t.XMLSERIALIZE:this.enterOuterAlt(s,32),this.state=9157,this.match(t.XMLSERIALIZE),this.state=9158,this.match(t.OPEN_PAREN),this.state=9159,this.documentOrContent(),this.state=9160,this.expression1(),this.state=9161,this.match(t.AS),this.state=9162,this.simpleTypeName(),this.state=9163,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlRootVersion(){let e=new vR(this.context,this.state);this.enterRule(e,1094,t.RULE_xmlRootVersion);try{switch(this.state=9172,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,635,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9167,this.match(t.VERSION_P),this.state=9168,this.expression1();break;case 2:this.enterOuterAlt(e,2),this.state=9169,this.match(t.VERSION_P),this.state=9170,this.match(t.NO),this.state=9171,this.match(t.VALUE_P)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalXmlRootStandalone(){let e=new BR(this.context,this.state);this.enterRule(e,1096,t.RULE_optionalXmlRootStandalone);try{switch(this.state=9185,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,636,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9174,this.match(t.COMMA),this.state=9175,this.match(t.STANDALONE_P),this.state=9176,this.match(t.YES_P);break;case 2:this.enterOuterAlt(e,2),this.state=9177,this.match(t.COMMA),this.state=9178,this.match(t.STANDALONE_P),this.state=9179,this.match(t.NO);break;case 3:this.enterOuterAlt(e,3),this.state=9180,this.match(t.COMMA),this.state=9181,this.match(t.STANDALONE_P),this.state=9182,this.match(t.NO),this.state=9183,this.match(t.VALUE_P);break;case 4:this.enterOuterAlt(e,4)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xmlAttributes(){let e=new yR(this.context,this.state);this.enterRule(e,1098,t.RULE_xmlAttributes);try{this.enterOuterAlt(e,1),this.state=9187,this.match(t.XMLATTRIBUTES),this.state=9188,this.match(t.OPEN_PAREN),this.state=9189,this.xmlAttributeList(),this.state=9190,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xmlAttributeList(){let e,s=new fR(this.context,this.state);this.enterRule(s,1100,t.RULE_xmlAttributeList);try{for(this.enterOuterAlt(s,1),this.state=9192,this.xmlAttributeElement(),this.state=9197,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9193,this.match(t.COMMA),this.state=9194,this.xmlAttributeElement(),this.state=9199,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlAttributeElement(){let e,s=new YR(this.context,this.state);this.enterRule(s,1102,t.RULE_xmlAttributeElement);try{this.enterOuterAlt(s,1),this.state=9200,this.expression1(),this.state=9203,this.errorHandler.sync(this),e=this.tokenStream.LA(1),36===e&&(this.state=9201,this.match(t.AS),this.state=9202,this.columnLabel())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}documentOrContent(){let e,s=new wR(this.context,this.state);this.enterRule(s,1104,t.RULE_documentOrContent);try{this.enterOuterAlt(s,1),this.state=9205,e=this.tokenStream.LA(1),166===e||188===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xmlWhitespaceOption(){let e=new bR(this.context,this.state);this.enterRule(e,1106,t.RULE_xmlWhitespaceOption);try{switch(this.state=9212,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PRESERVE:this.enterOuterAlt(e,1),this.state=9207,this.match(t.PRESERVE),this.state=9208,this.match(t.WHITESPACE_P);break;case t.STRIP_P:this.enterOuterAlt(e,2),this.state=9209,this.match(t.STRIP_P),this.state=9210,this.match(t.WHITESPACE_P);break;case t.CLOSE_PAREN:this.enterOuterAlt(e,3);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xmlExistsArgument(){let e=new WR(this.context,this.state);this.enterRule(e,1108,t.RULE_xmlExistsArgument);try{switch(this.state=9229,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,640,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9214,this.match(t.PASSING),this.state=9215,this.expression3();break;case 2:this.enterOuterAlt(e,2),this.state=9216,this.match(t.PASSING),this.state=9217,this.expression3(),this.state=9218,this.xmlPassingMech();break;case 3:this.enterOuterAlt(e,3),this.state=9220,this.match(t.PASSING),this.state=9221,this.xmlPassingMech(),this.state=9222,this.expression3();break;case 4:this.enterOuterAlt(e,4),this.state=9224,this.match(t.PASSING),this.state=9225,this.xmlPassingMech(),this.state=9226,this.expression3(),this.state=9227,this.xmlPassingMech()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xmlPassingMech(){let e,s=new VR(this.context,this.state);this.enterRule(s,1110,t.RULE_xmlPassingMech);try{this.enterOuterAlt(s,1),this.state=9231,this.match(t.BY),this.state=9232,e=this.tokenStream.LA(1),297===e||450===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}withinGroupClause(){let e=new XR(this.context,this.state);this.enterRule(e,1112,t.RULE_withinGroupClause);try{switch(this.state=9241,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,641,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9234,this.match(t.WITHIN),this.state=9235,this.match(t.GROUP_P),this.state=9236,this.match(t.OPEN_PAREN),this.state=9237,this.sortClause(),this.state=9238,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}filterClause(){let e=new KR(this.context,this.state);this.enterRule(e,1114,t.RULE_filterClause);try{switch(this.state=9250,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,642,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9243,this.match(t.FILTER),this.state=9244,this.match(t.OPEN_PAREN),this.state=9245,this.match(t.WHERE),this.state=9246,this.expression1(),this.state=9247,this.match(t.CLOSE_PAREN);break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowClause(){let e=new QR(this.context,this.state);this.enterRule(e,1116,t.RULE_windowClause);try{switch(this.state=9255,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WINDOW:this.enterOuterAlt(e,1),this.state=9252,this.match(t.WINDOW),this.state=9253,this.windowDefinitionList();break;case t.EOF:case t.CLOSE_PAREN:case t.COMMA:case t.SEMI:case t.CREATE:case t.EXCEPT:case t.FETCH:case t.FOR:case t.GRANT:case t.INTERSECT:case t.INTO:case t.LIMIT:case t.OFFSET:case t.ON:case t.ORDER:case t.RETURNING:case t.THEN:case t.UNION:case t.USING:case t.WHEN:case t.WITH:case t.LOOP:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowDefinitionList(){let e=new JR(this.context,this.state);this.enterRule(e,1118,t.RULE_windowDefinitionList);try{let s;for(this.enterOuterAlt(e,1),this.state=9257,this.windowDefinition(),this.state=9262,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,644,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=9258,this.match(t.COMMA),this.state=9259,this.windowDefinition()),this.state=9264,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,644,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowDefinition(){let e=new ZR(this.context,this.state);this.enterRule(e,1120,t.RULE_windowDefinition);try{this.enterOuterAlt(e,1),this.state=9265,this.columnId(),this.state=9266,this.match(t.AS),this.state=9267,this.windowSpecification()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}overClause(){let e=new qR(this.context,this.state);this.enterRule(e,1122,t.RULE_overClause);try{switch(this.state=9275,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,646,this.context)){case 1:switch(this.enterOuterAlt(e,1),this.state=9269,this.match(t.OVER),this.state=9272,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:this.state=9270,this.windowSpecification();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=9271,this.columnId();break;default:throw new he(this)}break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowSpecification(){let e=new jR(this.context,this.state);this.enterRule(e,1124,t.RULE_windowSpecification);try{this.enterOuterAlt(e,1),this.state=9277,this.match(t.OPEN_PAREN),this.state=9278,this.optionalExistingWindowName(),this.state=9279,this.optionalPartitionClause(),this.state=9280,this.optionalSortClause(),this.state=9281,this.optionalFrameClause(),this.state=9282,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalExistingWindowName(){let e=new zR(this.context,this.state);this.enterRule(e,1126,t.RULE_optionalExistingWindowName);try{switch(this.state=9286,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,647,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9284,this.columnId();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalPartitionClause(){let e=new $R(this.context,this.state);this.enterRule(e,1128,t.RULE_optionalPartitionClause);try{switch(this.state=9292,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PARTITION:this.enterOuterAlt(e,1),this.state=9288,this.match(t.PARTITION),this.state=9289,this.match(t.BY),this.state=9290,this.expressionList();break;case t.CLOSE_PAREN:case t.ORDER:case t.RANGE:case t.ROWS:case t.GROUPS:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalFrameClause(){let e=new tA(this.context,this.state);this.enterRule(e,1130,t.RULE_optionalFrameClause);try{switch(this.state=9307,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RANGE:this.enterOuterAlt(e,1),this.state=9294,this.match(t.RANGE),this.state=9295,this.frameExtent(),this.state=9296,this.optionalWindowExclusionClause();break;case t.ROWS:this.enterOuterAlt(e,2),this.state=9298,this.match(t.ROWS),this.state=9299,this.frameExtent(),this.state=9300,this.optionalWindowExclusionClause();break;case t.GROUPS:this.enterOuterAlt(e,3),this.state=9302,this.match(t.GROUPS),this.state=9303,this.frameExtent(),this.state=9304,this.optionalWindowExclusionClause();break;case t.CLOSE_PAREN:this.enterOuterAlt(e,4);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}frameExtent(){let e=new eA(this.context,this.state);this.enterRule(e,1132,t.RULE_frameExtent);try{switch(this.state=9315,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,650,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9309,this.frameBound();break;case 2:this.enterOuterAlt(e,2),this.state=9310,this.match(t.BETWEEN),this.state=9311,this.frameBound(),this.state=9312,this.match(t.AND),this.state=9313,this.frameBound()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}frameBound(){let e,s=new sA(this.context,this.state);this.enterRule(s,1134,t.RULE_frameBound);try{switch(this.state=9324,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,651,this.context)){case 1:this.enterOuterAlt(s,1),this.state=9317,this.match(t.UNBOUNDED),this.state=9318,e=this.tokenStream.LA(1),208===e||282===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 2:this.enterOuterAlt(s,2),this.state=9319,this.match(t.CURRENT_P),this.state=9320,this.match(t.ROW);break;case 3:this.enterOuterAlt(s,3),this.state=9321,this.expression1(),this.state=9322,e=this.tokenStream.LA(1),208===e||282===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalWindowExclusionClause(){let e=new aA(this.context,this.state);this.enterRule(e,1136,t.RULE_optionalWindowExclusionClause);try{switch(this.state=9336,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EXCLUDE:switch(this.enterOuterAlt(e,1),this.state=9326,this.match(t.EXCLUDE),this.state=9333,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CURRENT_P:this.state=9327,this.match(t.CURRENT_P),this.state=9328,this.match(t.ROW);break;case t.GROUP_P:this.state=9329,this.match(t.GROUP_P);break;case t.TIES:this.state=9330,this.match(t.TIES);break;case t.NO:this.state=9331,this.match(t.NO),this.state=9332,this.match(t.OTHERS);break;default:throw new he(this)}break;case t.CLOSE_PAREN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row(){let e,s=new iA(this.context,this.state);this.enterRule(s,1138,t.RULE_row);try{switch(this.state=9350,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ROW:this.enterOuterAlt(s,1),this.state=9338,this.match(t.ROW),this.state=9339,this.match(t.OPEN_PAREN),this.state=9341,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&805318660||!(e-33&-32)&&1<<e-33&421518725||!(e-75&-32)&&1<<e-75&2174894095||!(e-107&-32)&&1<<e-107&4294967295||!(e-139&-32)&&1<<e-139&4294967295||!(e-171&-32)&&1<<e-171&4294967295||!(e-203&-32)&&1<<e-203&4294967295||!(e-235&-32)&&1<<e-235&4294672383||!(e-267&-32)&&1<<e-267&4294967295||!(e-299&-32)&&1<<e-299&4294967295||!(e-331&-32)&&1<<e-331&4294967295||!(e-363&-32)&&1<<e-363&4294967295||!(e-395&-32)&&1<<e-395&4294967295||!(e-427&-32)&&1<<e-427&4160749567||!(e-459&-32)&&1<<e-459&4294967295||!(e-491&-32)&&1<<e-491&4026511359||!(e-523&-32)&&1<<e-523&4294967295||!(e-555&-32)&&1<<e-555&4294967295||!(e-587&-32)&&1<<e-587&4294967295||!(e-619&-32)&&1<<e-619&3561488383||!(e-654&-32)&&1<<e-654&131537)&&(this.state=9340,this.expressionList()),this.state=9343,this.match(t.CLOSE_PAREN);break;case t.OPEN_PAREN:this.enterOuterAlt(s,2),this.state=9344,this.match(t.OPEN_PAREN),this.state=9345,this.expressionList(),this.state=9346,this.match(t.COMMA),this.state=9347,this.expression1(),this.state=9348,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}explicitRow(){let e,s=new rA(this.context,this.state);this.enterRule(s,1140,t.RULE_explicitRow);try{this.enterOuterAlt(s,1),this.state=9352,this.match(t.ROW),this.state=9353,this.match(t.OPEN_PAREN),this.state=9355,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&805318660||!(e-33&-32)&&1<<e-33&421518725||!(e-75&-32)&&1<<e-75&2174894095||!(e-107&-32)&&1<<e-107&4294967295||!(e-139&-32)&&1<<e-139&4294967295||!(e-171&-32)&&1<<e-171&4294967295||!(e-203&-32)&&1<<e-203&4294967295||!(e-235&-32)&&1<<e-235&4294672383||!(e-267&-32)&&1<<e-267&4294967295||!(e-299&-32)&&1<<e-299&4294967295||!(e-331&-32)&&1<<e-331&4294967295||!(e-363&-32)&&1<<e-363&4294967295||!(e-395&-32)&&1<<e-395&4294967295||!(e-427&-32)&&1<<e-427&4160749567||!(e-459&-32)&&1<<e-459&4294967295||!(e-491&-32)&&1<<e-491&4026511359||!(e-523&-32)&&1<<e-523&4294967295||!(e-555&-32)&&1<<e-555&4294967295||!(e-587&-32)&&1<<e-587&4294967295||!(e-619&-32)&&1<<e-619&3561488383||!(e-654&-32)&&1<<e-654&131537)&&(this.state=9354,this.expressionList()),this.state=9357,this.match(t.CLOSE_PAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}implicitRow(){let e=new cA(this.context,this.state);this.enterRule(e,1142,t.RULE_implicitRow);try{this.enterOuterAlt(e,1),this.state=9359,this.match(t.OPEN_PAREN),this.state=9360,this.expressionList(),this.state=9361,this.match(t.COMMA),this.state=9362,this.expression1(),this.state=9363,this.match(t.CLOSE_PAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}subType(){let e,s=new nA(this.context,this.state);this.enterRule(s,1144,t.RULE_subType);try{this.enterOuterAlt(s,1),this.state=9365,e=this.tokenStream.LA(1),30===e||34===e||90===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}allOperator(){let e=new hA(this.context,this.state);this.enterRule(e,1146,t.RULE_allOperator);try{switch(this.state=9369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.Operator:this.enterOuterAlt(e,1),this.state=9367,this.match(t.Operator);break;case t.STAR:case t.EQUAL:case t.PLUS:case t.MINUS:case t.SLASH:case t.CARET:case t.LT:case t.GT:case t.LESS_EQUALS:case t.GREATER_EQUALS:case t.NOT_EQUALS:case t.PERCENT:this.enterOuterAlt(e,2),this.state=9368,this.mathOperator();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}mathOperator(){let e,s=new EA(this.context,this.state);this.enterRule(s,1148,t.RULE_mathOperator);try{this.enterOuterAlt(s,1),this.state=9371,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&178517504?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}operatorQualifier(){let e=new TA(this.context,this.state);this.enterRule(e,1150,t.RULE_operatorQualifier);try{switch(this.state=9379,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.Operator:this.enterOuterAlt(e,1),this.state=9373,this.match(t.Operator);break;case t.OPERATOR:this.enterOuterAlt(e,2),this.state=9374,this.match(t.OPERATOR),this.state=9375,this.match(t.OPEN_PAREN),this.state=9376,this.anyOperator(),this.state=9377,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}allOperatorQualifier(){let e=new oA(this.context,this.state);this.enterRule(e,1152,t.RULE_allOperatorQualifier);try{switch(this.state=9387,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STAR:case t.EQUAL:case t.PLUS:case t.MINUS:case t.SLASH:case t.CARET:case t.LT:case t.GT:case t.LESS_EQUALS:case t.GREATER_EQUALS:case t.NOT_EQUALS:case t.PERCENT:case t.Operator:this.enterOuterAlt(e,1),this.state=9381,this.allOperator();break;case t.OPERATOR:this.enterOuterAlt(e,2),this.state=9382,this.match(t.OPERATOR),this.state=9383,this.match(t.OPEN_PAREN),this.state=9384,this.anyOperator(),this.state=9385,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}subqueryOperator(){let e=new RA(this.context,this.state);this.enterRule(e,1154,t.RULE_subqueryOperator);try{switch(this.state=9401,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,660,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9389,this.allOperator();break;case 2:this.enterOuterAlt(e,2),this.state=9390,this.match(t.OPERATOR),this.state=9391,this.match(t.OPEN_PAREN),this.state=9392,this.anyOperator(),this.state=9393,this.match(t.CLOSE_PAREN);break;case 3:this.enterOuterAlt(e,3),this.state=9395,this.match(t.LIKE);break;case 4:this.enterOuterAlt(e,4),this.state=9396,this.match(t.NOT),this.state=9397,this.match(t.LIKE);break;case 5:this.enterOuterAlt(e,5),this.state=9398,this.match(t.ILIKE);break;case 6:this.enterOuterAlt(e,6),this.state=9399,this.match(t.NOT),this.state=9400,this.match(t.ILIKE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expressionList(){let e=new AA(this.context,this.state);this.enterRule(e,1156,t.RULE_expressionList);try{let s;for(this.enterOuterAlt(e,1),this.state=9403,this.expression1(),this.state=9408,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,661,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=9404,this.match(t.COMMA),this.state=9405,this.expression1()),this.state=9410,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,661,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionArgumentList(){let e=new SA(this.context,this.state);this.enterRule(e,1158,t.RULE_functionArgumentList);try{let s;for(this.enterOuterAlt(e,1),this.state=9411,this.functionArgumentExpression(),this.state=9416,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,662,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=9412,this.match(t.COMMA),this.state=9413,this.functionArgumentExpression()),this.state=9418,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,662,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionArgumentExpression(){let e,s=new lA(this.context,this.state);this.enterRule(s,1160,t.RULE_functionArgumentExpression);try{switch(this.state=9424,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,663,this.context)){case 1:this.enterOuterAlt(s,1),this.state=9419,this.expression1();break;case 2:this.enterOuterAlt(s,2),this.state=9420,this.parameterName(),this.state=9421,e=this.tokenStream.LA(1),20===e||22===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=9422,this.expression1()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}typeList(){let e,s=new OA(this.context,this.state);this.enterRule(s,1162,t.RULE_typeList);try{for(this.enterOuterAlt(s,1),this.state=9426,this.typeName(),this.state=9431,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9427,this.match(t.COMMA),this.state=9428,this.typeName(),this.state=9433,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}arrayExpression(){let e=new IA(this.context,this.state);this.enterRule(e,1164,t.RULE_arrayExpression);try{switch(this.enterOuterAlt(e,1),this.state=9434,this.match(t.OPEN_BRACKET),this.state=9437,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.state=9435,this.expressionList();break;case t.OPEN_BRACKET:this.state=9436,this.arrayExpressionList();case t.CLOSE_BRACKET:}this.state=9439,this.match(t.CLOSE_BRACKET)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}arrayExpressionList(){let e,s=new uA(this.context,this.state);this.enterRule(s,1166,t.RULE_arrayExpressionList);try{for(this.enterOuterAlt(s,1),this.state=9441,this.arrayExpression(),this.state=9446,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9442,this.match(t.COMMA),this.state=9443,this.arrayExpression(),this.state=9448,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}extractList(){let e=new NA(this.context,this.state);this.enterRule(e,1168,t.RULE_extractList);try{switch(this.state=9454,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.BACKWARD:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONTINUE_P:case t.CURSOR:case t.DAY_P:case t.FIRST_P:case t.FORWARD:case t.HOUR_P:case t.INSERT:case t.LAST_P:case t.MINUTE_P:case t.MONTH_P:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.PRIOR:case t.RELATIVE_P:case t.RESET:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SECOND_P:case t.SET:case t.TYPE_P:case t.YEAR_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=9449,this.extractArgument(),this.state=9450,this.match(t.FROM),this.state=9451,this.expression1();break;case t.CLOSE_PAREN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}extractArgument(){let e=new LA(this.context,this.state);this.enterRule(e,1170,t.RULE_extractArgument);try{switch(this.state=9464,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.BACKWARD:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONTINUE_P:case t.CURSOR:case t.FIRST_P:case t.FORWARD:case t.INSERT:case t.LAST_P:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.PRIOR:case t.RELATIVE_P:case t.RESET:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SET:case t.TYPE_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=9456,this.identifier();break;case t.YEAR_P:this.enterOuterAlt(e,2),this.state=9457,this.match(t.YEAR_P);break;case t.MONTH_P:this.enterOuterAlt(e,3),this.state=9458,this.match(t.MONTH_P);break;case t.DAY_P:this.enterOuterAlt(e,4),this.state=9459,this.match(t.DAY_P);break;case t.HOUR_P:this.enterOuterAlt(e,5),this.state=9460,this.match(t.HOUR_P);break;case t.MINUTE_P:this.enterOuterAlt(e,6),this.state=9461,this.match(t.MINUTE_P);break;case t.SECOND_P:this.enterOuterAlt(e,7),this.state=9462,this.match(t.SECOND_P);break;case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.enterOuterAlt(e,8),this.state=9463,this.sconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unicodeNormalForm(){let e,s=new CA(this.context,this.state);this.enterRule(s,1172,t.RULE_unicodeNormalForm);try{this.enterOuterAlt(s,1),this.state=9466,e=this.tokenStream.LA(1),!(e-483&-32)&&1<<e-483&15?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}overlayList(){let e,s=new _A(this.context,this.state);this.enterRule(s,1174,t.RULE_overlayList);try{this.enterOuterAlt(s,1),this.state=9468,this.expression1(),this.state=9469,this.match(t.PLACING),this.state=9470,this.expression1(),this.state=9471,this.match(t.FROM),this.state=9472,this.expression1(),this.state=9475,this.errorHandler.sync(this),e=this.tokenStream.LA(1),62===e&&(this.state=9473,this.match(t.FOR),this.state=9474,this.expression1())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}positionList(){let e=new PA(this.context,this.state);this.enterRule(e,1176,t.RULE_positionList);try{switch(this.state=9482,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=9477,this.expression2(0),this.state=9478,this.match(t.IN_P),this.state=9479,this.expression2(0);break;case t.CLOSE_PAREN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}substrList(){let e=new MA(this.context,this.state);this.enterRule(e,1178,t.RULE_substrList);try{switch(this.state=9511,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,671,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9484,this.expression1(),this.state=9485,this.match(t.FROM),this.state=9486,this.expression1(),this.state=9487,this.match(t.FOR),this.state=9488,this.expression1();break;case 2:this.enterOuterAlt(e,2),this.state=9490,this.expression1(),this.state=9491,this.match(t.FOR),this.state=9492,this.expression1(),this.state=9493,this.match(t.FROM),this.state=9494,this.expression1();break;case 3:this.enterOuterAlt(e,3),this.state=9496,this.expression1(),this.state=9497,this.match(t.FROM),this.state=9498,this.expression1();break;case 4:this.enterOuterAlt(e,4),this.state=9500,this.expression1(),this.state=9501,this.match(t.FOR),this.state=9502,this.expression1();break;case 5:this.enterOuterAlt(e,5),this.state=9504,this.expression1(),this.state=9505,this.match(t.SIMILAR),this.state=9506,this.expression1(),this.state=9507,this.match(t.ESCAPE),this.state=9508,this.expression1();break;case 6:this.enterOuterAlt(e,6),this.state=9510,this.expressionList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}trimList(){let e=new dA(this.context,this.state);this.enterRule(e,1180,t.RULE_trimList);try{switch(this.state=9520,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,672,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9513,this.expression1(),this.state=9514,this.match(t.FROM),this.state=9515,this.expressionList();break;case 2:this.enterOuterAlt(e,2),this.state=9517,this.match(t.FROM),this.state=9518,this.expressionList();break;case 3:this.enterOuterAlt(e,3),this.state=9519,this.expressionList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}inExpression(){let e=new UA(this.context,this.state);this.enterRule(e,1182,t.RULE_inExpression);try{switch(this.state=9527,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,673,this.context)){case 1:e=new DA(e),this.enterOuterAlt(e,1),this.state=9522,this.selectWithParenthesis();break;case 2:e=new mA(e),this.enterOuterAlt(e,2),this.state=9523,this.match(t.OPEN_PAREN),this.state=9524,this.expressionList(),this.state=9525,this.match(t.CLOSE_PAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}caseExpression(){let e=new pA(this.context,this.state);this.enterRule(e,1184,t.RULE_caseExpression);try{this.enterOuterAlt(e,1),this.state=9529,this.match(t.CASE),this.state=9530,this.caseArg(),this.state=9531,this.whenClauseList(),this.state=9532,this.caseDefault(),this.state=9533,this.match(t.END_P)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}whenClauseList(){let e,s=new gA(this.context,this.state);this.enterRule(s,1186,t.RULE_whenClauseList);try{this.enterOuterAlt(s,1),this.state=9536,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=9535,this.whenClause(),this.state=9538,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(102===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}whenClause(){let e=new xA(this.context,this.state);this.enterRule(e,1188,t.RULE_whenClause);try{this.enterOuterAlt(e,1),this.state=9540,this.match(t.WHEN),this.state=9541,this.expression1(),this.state=9542,this.match(t.THEN),this.state=9543,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}caseDefault(){let e=new kA(this.context,this.state);this.enterRule(e,1190,t.RULE_caseDefault);try{switch(this.state=9548,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ELSE:this.enterOuterAlt(e,1),this.state=9545,this.match(t.ELSE),this.state=9546,this.expression1();break;case t.END_P:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}caseArg(){let e=new HA(this.context,this.state);this.enterRule(e,1192,t.RULE_caseArg);try{switch(this.state=9552,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,1),this.state=9550,this.expression1();break;case t.WHEN:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnReference(){let e=new GA(this.context,this.state);this.enterRule(e,1194,t.RULE_columnReference);try{if(1===(this.enterOuterAlt(e,1),this.state=9554,this.columnId(),this.state=9556,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,677,this.context)))this.state=9555,this.indirection()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indirectionElement(){let e,s=new FA(this.context,this.state);this.enterRule(s,1196,t.RULE_indirectionElement);try{switch(this.state=9575,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOT:switch(this.enterOuterAlt(s,1),this.state=9558,this.match(t.DOT),this.state=9561,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALL:case t.ANALYSE:case t.ANALYZE:case t.AND:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASYMMETRIC:case t.BOTH:case t.CASE:case t.CAST:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CREATE:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DEFERRABLE:case t.DESC:case t.DISTINCT:case t.DO:case t.ELSE:case t.EXCEPT:case t.FALSE_P:case t.FETCH:case t.FOR:case t.FOREIGN:case t.FROM:case t.GRANT:case t.GROUP_P:case t.HAVING:case t.IN_P:case t.INITIALLY:case t.INTERSECT:case t.LATERAL_P:case t.LEADING:case t.LIMIT:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.OFFSET:case t.ON:case t.ONLY:case t.OR:case t.ORDER:case t.PLACING:case t.PRIMARY:case t.REFERENCES:case t.RETURNING:case t.SELECT:case t.SESSION_USER:case t.SOME:case t.SYMMETRIC:case t.TABLE:case t.THEN:case t.TO:case t.TRAILING:case t.TRUE_P:case t.UNION:case t.UNIQUE:case t.USER:case t.USING:case t.VARIADIC:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.END_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=9559,this.attributeName();break;case t.STAR:this.state=9560,this.match(t.STAR);break;default:throw new he(this)}break;case t.OPEN_BRACKET:switch(this.enterOuterAlt(s,2),this.state=9563,this.match(t.OPEN_BRACKET),this.state=9572,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,681,this.context)){case 1:this.state=9564,this.expression1();break;case 2:this.state=9566,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&805318660||!(e-33&-32)&&1<<e-33&421518725||!(e-75&-32)&&1<<e-75&2174894095||!(e-107&-32)&&1<<e-107&4294967295||!(e-139&-32)&&1<<e-139&4294967295||!(e-171&-32)&&1<<e-171&4294967295||!(e-203&-32)&&1<<e-203&4294967295||!(e-235&-32)&&1<<e-235&4294672383||!(e-267&-32)&&1<<e-267&4294967295||!(e-299&-32)&&1<<e-299&4294967295||!(e-331&-32)&&1<<e-331&4294967295||!(e-363&-32)&&1<<e-363&4294967295||!(e-395&-32)&&1<<e-395&4294967295||!(e-427&-32)&&1<<e-427&4160749567||!(e-459&-32)&&1<<e-459&4294967295||!(e-491&-32)&&1<<e-491&4026511359||!(e-523&-32)&&1<<e-523&4294967295||!(e-555&-32)&&1<<e-555&4294967295||!(e-587&-32)&&1<<e-587&4294967295||!(e-619&-32)&&1<<e-619&3561488383||!(e-654&-32)&&1<<e-654&131537)&&(this.state=9565,this.expression1()),this.state=9568,this.match(t.COLON),this.state=9570,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&805318660||!(e-33&-32)&&1<<e-33&421518725||!(e-75&-32)&&1<<e-75&2174894095||!(e-107&-32)&&1<<e-107&4294967295||!(e-139&-32)&&1<<e-139&4294967295||!(e-171&-32)&&1<<e-171&4294967295||!(e-203&-32)&&1<<e-203&4294967295||!(e-235&-32)&&1<<e-235&4294672383||!(e-267&-32)&&1<<e-267&4294967295||!(e-299&-32)&&1<<e-299&4294967295||!(e-331&-32)&&1<<e-331&4294967295||!(e-363&-32)&&1<<e-363&4294967295||!(e-395&-32)&&1<<e-395&4294967295||!(e-427&-32)&&1<<e-427&4160749567||!(e-459&-32)&&1<<e-459&4294967295||!(e-491&-32)&&1<<e-491&4026511359||!(e-523&-32)&&1<<e-523&4294967295||!(e-555&-32)&&1<<e-555&4294967295||!(e-587&-32)&&1<<e-587&4294967295||!(e-619&-32)&&1<<e-619&3561488383||!(e-654&-32)&&1<<e-654&131537)&&(this.state=9569,this.expression1())}this.state=9574,this.match(t.CLOSE_BRACKET);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indirection(){let e=new vA(this.context,this.state);this.enterRule(e,1198,t.RULE_indirection);try{let t;this.enterOuterAlt(e,1),this.state=9578,this.errorHandler.sync(this),t=1;do{if(1!==t)throw new he(this);this.state=9577,this.indirectionElement(),this.state=9580,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,683,this.context)}while(2!==t&&t!==q.INVALID_ALT_NUMBER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalIndirection(){let e=new BA(this.context,this.state);this.enterRule(e,1200,t.RULE_optionalIndirection);try{let t;for(this.enterOuterAlt(e,1),this.state=9585,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,684,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;)1===t&&(this.state=9582,this.indirectionElement()),this.state=9587,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,684,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalTargetList(){let e=new yA(this.context,this.state);this.enterRule(e,1202,t.RULE_optionalTargetList);try{switch(this.state=9590,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,685,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9588,this.targetList();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}targetList(){let e=new fA(this.context,this.state);this.enterRule(e,1204,t.RULE_targetList);try{let s;for(this.enterOuterAlt(e,1),this.state=9592,this.targetElement(),this.state=9597,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,686,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=9593,this.match(t.COMMA),this.state=9594,this.targetElement()),this.state=9599,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,686,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}targetElement(){let e=new YA(this.context,this.state);this.enterRule(e,1206,t.RULE_targetElement);try{switch(this.state=9608,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STAR:e=new wA(e),this.enterOuterAlt(e,1),this.state=9600,this.match(t.STAR);break;case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:switch(e=new bA(e),this.enterOuterAlt(e,2),this.state=9601,this.expression1(),this.state=9606,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,687,this.context)){case 1:this.state=9602,this.match(t.AS),this.state=9603,this.columnLabel();break;case 2:this.state=9604,this.identifier()}break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}qualifiedNameList(){let e,s=new WA(this.context,this.state);this.enterRule(s,1208,t.RULE_qualifiedNameList);try{for(this.enterOuterAlt(s,1),this.state=9610,this.qualifiedName(),this.state=9615,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9611,this.match(t.COMMA),this.state=9612,this.qualifiedName(),this.state=9617,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}databaseName(){let e=new VA(this.context,this.state);this.enterRule(e,1210,t.RULE_databaseName);try{this.enterOuterAlt(e,1),this.state=9618,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}databaseNameList(){let e,s=new XA(this.context,this.state);this.enterRule(s,1212,t.RULE_databaseNameList);try{for(this.enterOuterAlt(s,1),this.state=9620,this.databaseName(),this.state=9625,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9621,this.match(t.COMMA),this.state=9622,this.databaseName(),this.state=9627,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}schemaName(){let e=new KA(this.context,this.state);this.enterRule(e,1214,t.RULE_schemaName);try{this.enterOuterAlt(e,1),this.state=9628,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}schemaNameList(){let e,s=new QA(this.context,this.state);this.enterRule(s,1216,t.RULE_schemaNameList);try{for(this.enterOuterAlt(s,1),this.state=9630,this.schemaName(),this.state=9635,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9631,this.match(t.COMMA),this.state=9632,this.schemaName(),this.state=9637,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexName(){let e=new JA(this.context,this.state);this.enterRule(e,1218,t.RULE_indexName);try{this.enterOuterAlt(e,1),this.state=9638,this.qualifiedName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexNameList(){let e,s=new ZA(this.context,this.state);this.enterRule(s,1220,t.RULE_indexNameList);try{for(this.enterOuterAlt(s,1),this.state=9640,this.indexName(),this.state=9645,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9641,this.match(t.COMMA),this.state=9642,this.indexName(),this.state=9647,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}triggerName(){let e=new qA(this.context,this.state);this.enterRule(e,1222,t.RULE_triggerName);try{this.enterOuterAlt(e,1),this.state=9648,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintName(){let e=new jA(this.context,this.state);this.enterRule(e,1224,t.RULE_constraintName);try{this.enterOuterAlt(e,1),this.state=9650,this.name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sequenceName(){let e=new zA(this.context,this.state);this.enterRule(e,1226,t.RULE_sequenceName);try{this.enterOuterAlt(e,1),this.state=9652,this.qualifiedName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sequenceNameList(){let e,s=new $A(this.context,this.state);this.enterRule(s,1228,t.RULE_sequenceNameList);try{for(this.enterOuterAlt(s,1),this.state=9654,this.sequenceName(),this.state=9659,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9655,this.match(t.COMMA),this.state=9656,this.sequenceName(),this.state=9661,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}qualifiedName(){let e,s=new tS(this.context,this.state);this.enterRule(s,1230,t.RULE_qualifiedName);try{this.enterOuterAlt(s,1),this.state=9662,this.columnId(),this.state=9664,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(4===e||11===e)&&(this.state=9663,this.indirection())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}nameList(){let e,s=new eS(this.context,this.state);this.enterRule(s,1232,t.RULE_nameList);try{for(this.enterOuterAlt(s,1),this.state=9666,this.name(),this.state=9671,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9667,this.match(t.COMMA),this.state=9668,this.name(),this.state=9673,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}name(){let e=new sS(this.context,this.state);this.enterRule(e,1234,t.RULE_name);try{this.enterOuterAlt(e,1),this.state=9674,this.columnId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}attributeName(){let e=new aS(this.context,this.state);this.enterRule(e,1236,t.RULE_attributeName);try{this.enterOuterAlt(e,1),this.state=9676,this.columnLabel()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fileName(){let e=new iS(this.context,this.state);this.enterRule(e,1238,t.RULE_fileName);try{this.enterOuterAlt(e,1),this.state=9678,this.sconst()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionName(){let e=new rS(this.context,this.state);this.enterRule(e,1240,t.RULE_functionName);try{switch(this.state=9687,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,696,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9680,this.builtinFunctionName();break;case 2:this.enterOuterAlt(e,2),this.state=9681,this.typeFunctionName();break;case 3:this.enterOuterAlt(e,3),this.state=9682,this.columnId(),this.state=9683,this.indirection();break;case 4:this.enterOuterAlt(e,4),this.state=9685,this.match(t.LEFT);break;case 5:this.enterOuterAlt(e,5),this.state=9686,this.match(t.RIGHT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}aExpressionConst(){let e=new cS(this.context,this.state);this.enterRule(e,1242,t.RULE_aExpressionConst);try{switch(this.state=9721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,699,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9689,this.iconst();break;case 2:this.enterOuterAlt(e,2),this.state=9690,this.fconst();break;case 3:this.enterOuterAlt(e,3),this.state=9691,this.sconst();break;case 4:this.enterOuterAlt(e,4),this.state=9692,this.bconst();break;case 5:this.enterOuterAlt(e,5),this.state=9693,this.xconst();break;case 6:switch(this.enterOuterAlt(e,6),this.state=9694,this.functionName(),this.state=9702,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.state=9695,this.sconst();break;case t.OPEN_PAREN:this.state=9696,this.match(t.OPEN_PAREN),this.state=9697,this.functionArgumentList(),this.state=9698,this.optionalSortClause(),this.state=9699,this.match(t.CLOSE_PAREN),this.state=9700,this.sconst();break;default:throw new he(this)}break;case 7:this.enterOuterAlt(e,7),this.state=9704,this.constTypeName(),this.state=9705,this.sconst();break;case 8:switch(this.enterOuterAlt(e,8),this.state=9707,this.constInterval(),this.state=9716,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.EscapeStringConstant:this.state=9708,this.sconst(),this.state=9709,this.optionalInterval();break;case t.OPEN_PAREN:this.state=9711,this.match(t.OPEN_PAREN),this.state=9712,this.iconst(),this.state=9713,this.match(t.CLOSE_PAREN),this.state=9714,this.sconst();break;default:throw new he(this)}break;case 9:this.enterOuterAlt(e,9),this.state=9718,this.match(t.TRUE_P);break;case 10:this.enterOuterAlt(e,10),this.state=9719,this.match(t.FALSE_P);break;case 11:this.enterOuterAlt(e,11),this.state=9720,this.match(t.NULL_P)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xconst(){let e=new nS(this.context,this.state);this.enterRule(e,1244,t.RULE_xconst);try{this.enterOuterAlt(e,1),this.state=9723,this.match(t.HexadecimalStringConstant)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bconst(){let e=new hS(this.context,this.state);this.enterRule(e,1246,t.RULE_bconst);try{this.enterOuterAlt(e,1),this.state=9725,this.match(t.BinaryStringConstant)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fconst(){let e=new ES(this.context,this.state);this.enterRule(e,1248,t.RULE_fconst);try{this.enterOuterAlt(e,1),this.state=9727,this.match(t.Numeric)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}iconst(){let e=new TS(this.context,this.state);this.enterRule(e,1250,t.RULE_iconst);try{this.enterOuterAlt(e,1),this.state=9729,this.match(t.Integral)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sconst(){let e=new oS(this.context,this.state);this.enterRule(e,1252,t.RULE_sconst);try{this.enterOuterAlt(e,1),this.state=9731,this.anySconst(),this.state=9732,this.optionalUescape()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}anySconst(){let e,s=new RS(this.context,this.state);this.enterRule(s,1254,t.RULE_anySconst);try{switch(this.state=9745,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.StringConstant:this.enterOuterAlt(s,1),this.state=9734,this.match(t.StringConstant);break;case t.UnicodeEscapeStringConstant:this.enterOuterAlt(s,2),this.state=9735,this.match(t.UnicodeEscapeStringConstant);break;case t.BeginDollarStringConstant:for(this.enterOuterAlt(s,3),this.state=9736,this.match(t.BeginDollarStringConstant),this.state=9740,this.errorHandler.sync(this),e=this.tokenStream.LA(1);677===e;)this.state=9737,this.match(t.DollarText),this.state=9742,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=9743,this.match(t.EndDollarStringConstant);break;case t.EscapeStringConstant:this.enterOuterAlt(s,4),this.state=9744,this.match(t.EscapeStringConstant);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalUescape(){let e=new AS(this.context,this.state);this.enterRule(e,1256,t.RULE_optionalUescape);try{switch(this.state=9750,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,702,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9747,this.match(t.UESCAPE),this.state=9748,this.anySconst();break;case 2:this.enterOuterAlt(e,2)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}signedIconst(){let e=new SS(this.context,this.state);this.enterRule(e,1258,t.RULE_signedIconst);try{switch(this.state=9757,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.Integral:this.enterOuterAlt(e,1),this.state=9752,this.iconst();break;case t.PLUS:this.enterOuterAlt(e,2),this.state=9753,this.match(t.PLUS),this.state=9754,this.iconst();break;case t.MINUS:this.enterOuterAlt(e,3),this.state=9755,this.match(t.MINUS),this.state=9756,this.iconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}roleName(){let e=new lS(this.context,this.state);this.enterRule(e,1260,t.RULE_roleName);try{switch(this.state=9762,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=9759,this.nonReservedWord();break;case t.CURRENT_USER:this.enterOuterAlt(e,2),this.state=9760,this.match(t.CURRENT_USER);break;case t.SESSION_USER:this.enterOuterAlt(e,3),this.state=9761,this.match(t.SESSION_USER);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}roleNameList(){let e,s=new OS(this.context,this.state);this.enterRule(s,1262,t.RULE_roleNameList);try{for(this.enterOuterAlt(s,1),this.state=9764,this.roleName(),this.state=9769,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9765,this.match(t.COMMA),this.state=9766,this.roleName(),this.state=9771,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnId(){let e=new IS(this.context,this.state);this.enterRule(e,1264,t.RULE_columnId);try{switch(this.state=9778,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,706,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9772,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=9773,this.unreservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=9774,this.columnNameKeyword();break;case 4:this.enterOuterAlt(e,4),this.state=9775,this.plsqlUnreservedKeyword();break;case 5:this.enterOuterAlt(e,5),this.state=9776,this.match(t.LEFT);break;case 6:this.enterOuterAlt(e,6),this.state=9777,this.match(t.RIGHT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableAlias(){let e=new uS(this.context,this.state);this.enterRule(e,1266,t.RULE_tableAlias);try{switch(this.state=9784,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,707,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9780,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=9781,this.unreservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=9782,this.columnNameKeyword();break;case 4:this.enterOuterAlt(e,4),this.state=9783,this.plsqlUnreservedKeyword()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}typeFunctionName(){let e=new NS(this.context,this.state);this.enterRule(e,1268,t.RULE_typeFunctionName);try{switch(this.state=9790,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,708,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9786,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=9787,this.unreservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=9788,this.plsqlUnreservedKeyword();break;case 4:this.enterOuterAlt(e,4),this.state=9789,this.typeFunctionNameKeyword()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}nonReservedWord(){let e=new LS(this.context,this.state);this.enterRule(e,1270,t.RULE_nonReservedWord);try{switch(this.state=9796,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,709,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9792,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=9793,this.unreservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=9794,this.columnNameKeyword();break;case 4:this.enterOuterAlt(e,4),this.state=9795,this.typeFunctionNameKeyword()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnLabel(){let e=new CS(this.context,this.state);this.enterRule(e,1272,t.RULE_columnLabel);try{switch(this.state=9804,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,710,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9798,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=9799,this.plsqlUnreservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=9800,this.unreservedKeyword();break;case 4:this.enterOuterAlt(e,4),this.state=9801,this.columnNameKeyword();break;case 5:this.enterOuterAlt(e,5),this.state=9802,this.typeFunctionNameKeyword();break;case 6:this.enterOuterAlt(e,6),this.state=9803,this.reservedKeyword()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}identifier(){let e=new _S(this.context,this.state);this.enterRule(e,1274,t.RULE_identifier);try{switch(this.state=9813,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.Identifier:this.enterOuterAlt(e,1),this.state=9806,this.match(t.Identifier),this.state=9807,this.optionalUescape();break;case t.QuotedIdentifier:this.enterOuterAlt(e,2),this.state=9808,this.match(t.QuotedIdentifier);break;case t.UnicodeQuotedIdentifier:this.enterOuterAlt(e,3),this.state=9809,this.match(t.UnicodeQuotedIdentifier);break;case t.PLSQLVARIABLENAME:this.enterOuterAlt(e,4),this.state=9810,this.plsqlVariableName();break;case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,5),this.state=9811,this.plsqlIdentifier();break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.OUTER_P:case t.ABSOLUTE_P:case t.BACKWARD:case t.CHAIN:case t.CLOSE:case t.COMMIT:case t.CONTINUE_P:case t.CURSOR:case t.FIRST_P:case t.FORWARD:case t.INSERT:case t.LAST_P:case t.MOVE:case t.NEXT:case t.NO:case t.OPTION:case t.PRIOR:case t.RELATIVE_P:case t.RESET:case t.ROLLBACK:case t.SCHEMA:case t.SCROLL:case t.SET:case t.TYPE_P:case t.CALL:case t.CURRENT_P:case t.ROWTYPE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:this.enterOuterAlt(e,6),this.state=9812,this.plsqlUnreservedKeyword();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}plsqlIdentifier(){let e=new PS(this.context,this.state);this.enterRule(e,1276,t.RULE_plsqlIdentifier);try{this.enterOuterAlt(e,1),this.state=9815,this.match(t.PLSQLIDENTIFIER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unreservedKeyword(){let e,s=new MS(this.context,this.state);this.enterRule(s,1278,t.RULE_unreservedKeyword);try{this.enterOuterAlt(s,1),this.state=9817,e=this.tokenStream.LA(1),!(e-124&-32)&&1<<e-124&4294967265||!(e-156&-32)&&1<<e-156&4294967295||!(e-188&-32)&&1<<e-188&4294967295||!(e-220&-32)&&1<<e-220&3221225471||!(e-252&-32)&&1<<e-252&4294967293||!(e-284&-32)&&1<<e-284&4293918719||!(e-316&-32)&&1<<e-316&4294967295||!(e-348&-32)&&1<<e-348&4294967295||!(e-433&-32)&&1<<e-433&4291821567||!(e-465&-32)&&1<<e-465&16770399?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnNameKeyword(){let e=new dS(this.context,this.state);this.enterRule(e,1280,t.RULE_columnNameKeyword);try{switch(this.state=9871,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,712,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9819,this.match(t.BETWEEN);break;case 2:this.enterOuterAlt(e,2),this.state=9820,this.match(t.BIGINT);break;case 3:this.enterOuterAlt(e,3),this.state=9821,this.bit();break;case 4:this.enterOuterAlt(e,4),this.state=9822,this.match(t.BOOLEAN_P);break;case 5:this.enterOuterAlt(e,5),this.state=9823,this.match(t.CHAR_P);break;case 6:this.enterOuterAlt(e,6),this.state=9824,this.character();break;case 7:this.enterOuterAlt(e,7),this.state=9825,this.match(t.COALESCE);break;case 8:this.enterOuterAlt(e,8),this.state=9826,this.match(t.DEC);break;case 9:this.enterOuterAlt(e,9),this.state=9827,this.match(t.DECIMAL_P);break;case 10:this.enterOuterAlt(e,10),this.state=9828,this.match(t.EXISTS);break;case 11:this.enterOuterAlt(e,11),this.state=9829,this.match(t.EXTRACT);break;case 12:this.enterOuterAlt(e,12),this.state=9830,this.match(t.FLOAT_P);break;case 13:this.enterOuterAlt(e,13),this.state=9831,this.match(t.GREATEST);break;case 14:this.enterOuterAlt(e,14),this.state=9832,this.match(t.GROUPING);break;case 15:this.enterOuterAlt(e,15),this.state=9833,this.match(t.INOUT);break;case 16:this.enterOuterAlt(e,16),this.state=9834,this.match(t.INT_P);break;case 17:this.enterOuterAlt(e,17),this.state=9835,this.match(t.INTEGER);break;case 18:this.enterOuterAlt(e,18),this.state=9836,this.match(t.INTERVAL);break;case 19:this.enterOuterAlt(e,19),this.state=9837,this.match(t.LEAST);break;case 20:this.enterOuterAlt(e,20),this.state=9838,this.match(t.NATIONAL);break;case 21:this.enterOuterAlt(e,21),this.state=9839,this.match(t.NCHAR);break;case 22:this.enterOuterAlt(e,22),this.state=9840,this.match(t.NONE);break;case 23:this.enterOuterAlt(e,23),this.state=9841,this.match(t.NORMALIZE);break;case 24:this.enterOuterAlt(e,24),this.state=9842,this.match(t.NULLIF);break;case 25:this.enterOuterAlt(e,25),this.state=9843,this.numeric();break;case 26:this.enterOuterAlt(e,26),this.state=9844,this.match(t.OUT_P);break;case 27:this.enterOuterAlt(e,27),this.state=9845,this.match(t.OVERLAY);break;case 28:this.enterOuterAlt(e,28),this.state=9846,this.match(t.POSITION);break;case 29:this.enterOuterAlt(e,29),this.state=9847,this.match(t.PRECISION);break;case 30:this.enterOuterAlt(e,30),this.state=9848,this.match(t.REAL);break;case 31:this.enterOuterAlt(e,31),this.state=9849,this.match(t.ROW);break;case 32:this.enterOuterAlt(e,32),this.state=9850,this.match(t.SETOF);break;case 33:this.enterOuterAlt(e,33),this.state=9851,this.match(t.SMALLINT);break;case 34:this.enterOuterAlt(e,34),this.state=9852,this.match(t.SUBSTRING);break;case 35:this.enterOuterAlt(e,35),this.state=9853,this.match(t.TIME);break;case 36:this.enterOuterAlt(e,36),this.state=9854,this.match(t.TIMESTAMP);break;case 37:this.enterOuterAlt(e,37),this.state=9855,this.match(t.TREAT);break;case 38:this.enterOuterAlt(e,38),this.state=9856,this.match(t.TRIM);break;case 39:this.enterOuterAlt(e,39),this.state=9857,this.match(t.VALUES);break;case 40:this.enterOuterAlt(e,40),this.state=9858,this.match(t.VARCHAR);break;case 41:this.enterOuterAlt(e,41),this.state=9859,this.match(t.XMLATTRIBUTES);break;case 42:this.enterOuterAlt(e,42),this.state=9860,this.match(t.XMLCONCAT);break;case 43:this.enterOuterAlt(e,43),this.state=9861,this.match(t.XMLELEMENT);break;case 44:this.enterOuterAlt(e,44),this.state=9862,this.match(t.XMLEXISTS);break;case 45:this.enterOuterAlt(e,45),this.state=9863,this.match(t.XMLFOREST);break;case 46:this.enterOuterAlt(e,46),this.state=9864,this.match(t.XMLNAMESPACES);break;case 47:this.enterOuterAlt(e,47),this.state=9865,this.match(t.XMLPARSE);break;case 48:this.enterOuterAlt(e,48),this.state=9866,this.match(t.XMLPI);break;case 49:this.enterOuterAlt(e,49),this.state=9867,this.match(t.XMLROOT);break;case 50:this.enterOuterAlt(e,50),this.state=9868,this.match(t.XMLSERIALIZE);break;case 51:this.enterOuterAlt(e,51),this.state=9869,this.match(t.XMLTABLE);break;case 52:this.enterOuterAlt(e,52),this.state=9870,this.builtinFunctionName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}typeFunctionNameKeyword(){let e,s=new US(this.context,this.state);this.enterRule(s,1282,t.RULE_typeFunctionNameKeyword);try{this.enterOuterAlt(s,1),this.state=9873,e=this.tokenStream.LA(1),!(e-106&-32)&&1<<e-106&7069695||472===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}reservedKeyword(){let e,s=new mS(this.context,this.state);this.enterRule(s,1284,t.RULE_reservedKeyword);try{this.enterOuterAlt(s,1),this.state=9875,e=this.tokenStream.LA(1),!(e-30&-32)&&1<<e-30&4286578687||!(e-62&-32)&&1<<e-62&4294966783||!(e-94&-32)&&1<<e-94&4095||454===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}builtinFunctionName(){let e,s=new DS(this.context,this.state);this.enterRule(s,1286,t.RULE_builtinFunctionName);try{this.enterOuterAlt(s,1),this.state=9877,e=this.tokenStream.LA(1),304===e||!(e-418&-32)&&1<<e-418&127||!(e-504&-32)&&1<<e-504&4294836737||!(e-536&-32)&&1<<e-536&4294967295||!(e-568&-32)&&1<<e-568&4294967295||!(e-600&-32)&&1<<e-600&4294967295||!(e-632&-32)&&1<<e-632&15?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}plsqlFunction(){let e=new pS(this.context,this.state);this.enterRule(e,1288,t.RULE_plsqlFunction);try{this.enterOuterAlt(e,1),this.state=9879,this.computeOptions(),this.state=9880,this.plsqlBlock(),this.state=9881,this.optionalSemi()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}computeOptions(){let e,s=new gS(this.context,this.state);this.enterRule(s,1290,t.RULE_computeOptions);try{for(this.enterOuterAlt(s,1),this.state=9886,this.errorHandler.sync(this),e=this.tokenStream.LA(1);29===e;)this.state=9883,this.computeOption(),this.state=9888,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}computeOption(){let e=new xS(this.context,this.state);this.enterRule(e,1292,t.RULE_computeOption);try{switch(this.state=9909,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,714,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9889,this.sharp(),this.state=9890,this.match(t.OPTION),this.state=9891,this.match(t.DUMP);break;case 2:this.enterOuterAlt(e,2),this.state=9893,this.sharp(),this.state=9894,this.match(t.PRINT_STRICT_PARAMS),this.state=9895,this.optionValue();break;case 3:this.enterOuterAlt(e,3),this.state=9897,this.sharp(),this.state=9898,this.match(t.VARIABLE_CONFLICT),this.state=9899,this.match(t.ERROR);break;case 4:this.enterOuterAlt(e,4),this.state=9901,this.sharp(),this.state=9902,this.match(t.VARIABLE_CONFLICT),this.state=9903,this.match(t.USE_VARIABLE);break;case 5:this.enterOuterAlt(e,5),this.state=9905,this.sharp(),this.state=9906,this.match(t.VARIABLE_CONFLICT),this.state=9907,this.match(t.USE_COLUMN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sharp(){let e=new kS(this.context,this.state);this.enterRule(e,1294,t.RULE_sharp);try{this.enterOuterAlt(e,1),this.state=9911,this.match(t.Operator)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionValue(){let e=new HS(this.context,this.state);this.enterRule(e,1296,t.RULE_optionValue);try{switch(this.state=9917,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,715,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9913,this.sconst();break;case 2:this.enterOuterAlt(e,2),this.state=9914,this.reservedKeyword();break;case 3:this.enterOuterAlt(e,3),this.state=9915,this.plsqlUnreservedKeyword();break;case 4:this.enterOuterAlt(e,4),this.state=9916,this.unreservedKeyword()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalSemi(){let e=new GS(this.context,this.state);this.enterRule(e,1298,t.RULE_optionalSemi);try{switch(this.state=9921,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EOF:this.enterOuterAlt(e,1);break;case t.SEMI:this.enterOuterAlt(e,2),this.state=9920,this.match(t.SEMI);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}plsqlBlock(){let e=new FS(this.context,this.state);this.enterRule(e,1300,t.RULE_plsqlBlock);try{this.enterOuterAlt(e,1),this.state=9923,this.declareSection(),this.state=9924,this.match(t.BEGIN_P),this.state=9925,this.procedureSection(),this.state=9926,this.exceptionSection(),this.state=9927,this.match(t.END_P),this.state=9928,this.optionalLabel()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareSection(){let e,s=new vS(this.context,this.state);this.enterRule(s,1302,t.RULE_declareSection);try{if(this.enterOuterAlt(s,1),this.state=9930,this.optionalBlockLabel(),this.state=9935,this.errorHandler.sync(this),e=this.tokenStream.LA(1),178===e&&1===(this.state=9931,this.declareStart(),this.state=9933,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,717,this.context)))this.state=9932,this.declareStatements()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}declareStart(){let e=new BS(this.context,this.state);this.enterRule(e,1304,t.RULE_declareStart);try{this.enterOuterAlt(e,1),this.state=9937,this.match(t.DECLARE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareStatements(){let e=new yS(this.context,this.state);this.enterRule(e,1306,t.RULE_declareStatements);try{let t;this.enterOuterAlt(e,1),this.state=9940,this.errorHandler.sync(this),t=1;do{if(1!==t)throw new he(this);this.state=9939,this.declareStatement(),this.state=9942,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,719,this.context)}while(2!==t&&t!==q.INVALID_ALT_NUMBER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}labelDeclaration(){let e=new fS(this.context,this.state);this.enterRule(e,1308,t.RULE_labelDeclaration);try{this.enterOuterAlt(e,1),this.state=9944,this.match(t.LESS_LESS),this.state=9945,this.anyIdentifier(),this.state=9946,this.match(t.GREATER_GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareStatement(){let e=new YS(this.context,this.state);this.enterRule(e,1310,t.RULE_declareStatement);try{switch(this.state=9951,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,720,this.context)){case 1:this.enterOuterAlt(e,1),this.state=9948,this.declareStatement2();break;case 2:this.enterOuterAlt(e,2),this.state=9949,this.match(t.DECLARE);break;case 3:this.enterOuterAlt(e,3),this.state=9950,this.labelDeclaration()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareStatement2(){let e=new wS(this.context,this.state);this.enterRule(e,1312,t.RULE_declareStatement2);try{switch(this.enterOuterAlt(e,1),this.state=9953,this.declareVarname(),this.state=9969,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,721,this.context)){case 1:this.state=9954,this.match(t.ALIAS),this.state=9955,this.match(t.FOR),this.state=9956,this.declareAliasItem();break;case 2:this.state=9957,this.declareConst(),this.state=9958,this.declareDatatype(),this.state=9959,this.declareCollate(),this.state=9960,this.declareNotNull(),this.state=9961,this.declareDefaultValue();break;case 3:this.state=9963,this.optionalScrollable(),this.state=9964,this.match(t.CURSOR),this.state=9965,this.declareCursorArgs(),this.state=9966,this.declareIsOrFor(),this.state=9967,this.declareCursorQuery()}this.state=9971,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalScrollable(){let e=new bS(this.context,this.state);this.enterRule(e,1314,t.RULE_optionalScrollable);try{switch(this.state=9977,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CURSOR:this.enterOuterAlt(e,1);break;case t.NO:this.enterOuterAlt(e,2),this.state=9974,this.match(t.NO),this.state=9975,this.match(t.SCROLL);break;case t.SCROLL:this.enterOuterAlt(e,3),this.state=9976,this.match(t.SCROLL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareCursorQuery(){let e=new WS(this.context,this.state);this.enterRule(e,1316,t.RULE_declareCursorQuery);try{this.enterOuterAlt(e,1),this.state=9979,this.selectStatement()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareCursorArgs(){let e=new VS(this.context,this.state);this.enterRule(e,1318,t.RULE_declareCursorArgs);try{switch(this.state=9986,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:case t.IS:this.enterOuterAlt(e,1);break;case t.OPEN_PAREN:this.enterOuterAlt(e,2),this.state=9982,this.match(t.OPEN_PAREN),this.state=9983,this.declareCursorArglist(),this.state=9984,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareCursorArglist(){let e,s=new XS(this.context,this.state);this.enterRule(s,1320,t.RULE_declareCursorArglist);try{for(this.enterOuterAlt(s,1),this.state=9988,this.declareCursorArg(),this.state=9993,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=9989,this.match(t.COMMA),this.state=9990,this.declareCursorArg(),this.state=9995,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}declareCursorArg(){let e=new KS(this.context,this.state);this.enterRule(e,1322,t.RULE_declareCursorArg);try{this.enterOuterAlt(e,1),this.state=9996,this.declareVarname(),this.state=9997,this.declareDatatype()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareIsOrFor(){let e,s=new QS(this.context,this.state);this.enterRule(s,1324,t.RULE_declareIsOrFor);try{this.enterOuterAlt(s,1),this.state=9999,e=this.tokenStream.LA(1),62===e||116===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}declareAliasItem(){let e=new JS(this.context,this.state);this.enterRule(e,1326,t.RULE_declareAliasItem);try{switch(this.state=10003,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PARAM:this.enterOuterAlt(e,1),this.state=10001,this.match(t.PARAM);break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,2),this.state=10002,this.columnId();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareVarname(){let e=new ZS(this.context,this.state);this.enterRule(e,1328,t.RULE_declareVarname);try{this.enterOuterAlt(e,1),this.state=10005,this.anyIdentifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareConst(){let e=new qS(this.context,this.state);this.enterRule(e,1330,t.RULE_declareConst);try{switch(this.state=10009,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,726,this.context)){case 1:this.enterOuterAlt(e,1);break;case 2:this.enterOuterAlt(e,2),this.state=10008,this.match(t.CONSTANT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareDatatype(){let e=new jS(this.context,this.state);this.enterRule(e,1332,t.RULE_declareDatatype);try{this.enterOuterAlt(e,1),this.state=10011,this.typeName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareCollate(){let e=new zS(this.context,this.state);this.enterRule(e,1334,t.RULE_declareCollate);try{switch(this.state=10016,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:case t.EQUAL:case t.COLON_EQUALS:case t.DEFAULT:case t.NOT:this.enterOuterAlt(e,1);break;case t.COLLATE:this.enterOuterAlt(e,2),this.state=10014,this.match(t.COLLATE),this.state=10015,this.anyName();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareNotNull(){let e=new $S(this.context,this.state);this.enterRule(e,1336,t.RULE_declareNotNull);try{switch(this.state=10021,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:case t.EQUAL:case t.COLON_EQUALS:case t.DEFAULT:this.enterOuterAlt(e,1);break;case t.NOT:this.enterOuterAlt(e,2),this.state=10019,this.match(t.NOT),this.state=10020,this.match(t.NULL_P);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareDefaultValue(){let e=new tl(this.context,this.state);this.enterRule(e,1338,t.RULE_declareDefaultValue);try{switch(this.state=10027,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:this.enterOuterAlt(e,1);break;case t.EQUAL:case t.COLON_EQUALS:case t.DEFAULT:this.enterOuterAlt(e,2),this.state=10024,this.declareDefaultKey(),this.state=10025,this.sqlExpression();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareDefaultKey(){let e=new el(this.context,this.state);this.enterRule(e,1340,t.RULE_declareDefaultKey);try{switch(this.state=10031,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUAL:case t.COLON_EQUALS:this.enterOuterAlt(e,1),this.state=10029,this.assignOperator();break;case t.DEFAULT:this.enterOuterAlt(e,2),this.state=10030,this.match(t.DEFAULT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}assignOperator(){let e,s=new sl(this.context,this.state);this.enterRule(s,1342,t.RULE_assignOperator);try{this.enterOuterAlt(s,1),this.state=10033,e=this.tokenStream.LA(1),10===e||20===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}procedureSection(){let e=new al(this.context,this.state);this.enterRule(e,1344,t.RULE_procedureSection);try{let t;for(this.enterOuterAlt(e,1),this.state=10038,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,731,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;)1===t&&(this.state=10035,this.proceduralStatement()),this.state=10040,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,731,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}proceduralStatement(){let e=new il(this.context,this.state);this.enterRule(e,1346,t.RULE_proceduralStatement);try{switch(this.state=10068,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,732,this.context)){case 1:this.enterOuterAlt(e,1),this.state=10041,this.plsqlBlock(),this.state=10042,this.match(t.SEMI);break;case 2:this.enterOuterAlt(e,2),this.state=10044,this.statementReturn();break;case 3:this.enterOuterAlt(e,3),this.state=10045,this.statementRaise();break;case 4:this.enterOuterAlt(e,4),this.state=10046,this.statementAssign();break;case 5:this.enterOuterAlt(e,5),this.state=10047,this.statementIf();break;case 6:this.enterOuterAlt(e,6),this.state=10048,this.statementCase();break;case 7:this.enterOuterAlt(e,7),this.state=10049,this.statementLoop();break;case 8:this.enterOuterAlt(e,8),this.state=10050,this.statementWhile();break;case 9:this.enterOuterAlt(e,9),this.state=10051,this.statementFor();break;case 10:this.enterOuterAlt(e,10),this.state=10052,this.statementForeachA();break;case 11:this.enterOuterAlt(e,11),this.state=10053,this.statementExit();break;case 12:this.enterOuterAlt(e,12),this.state=10054,this.statementAssert();break;case 13:this.enterOuterAlt(e,13),this.state=10055,this.statementExecSql();break;case 14:this.enterOuterAlt(e,14),this.state=10056,this.statementDynExecute();break;case 15:this.enterOuterAlt(e,15),this.state=10057,this.statementPerform();break;case 16:this.enterOuterAlt(e,16),this.state=10058,this.statementCall();break;case 17:this.enterOuterAlt(e,17),this.state=10059,this.statementGetDiagram();break;case 18:this.enterOuterAlt(e,18),this.state=10060,this.statementOpen();break;case 19:this.enterOuterAlt(e,19),this.state=10061,this.statementFetch();break;case 20:this.enterOuterAlt(e,20),this.state=10062,this.statementMove();break;case 21:this.enterOuterAlt(e,21),this.state=10063,this.statementClose();break;case 22:this.enterOuterAlt(e,22),this.state=10064,this.statementNull();break;case 23:this.enterOuterAlt(e,23),this.state=10065,this.statementCommit();break;case 24:this.enterOuterAlt(e,24),this.state=10066,this.statementRollback();break;case 25:this.enterOuterAlt(e,25),this.state=10067,this.statementSet()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementPerform(){let e=new rl(this.context,this.state);this.enterRule(e,1348,t.RULE_statementPerform);try{this.enterOuterAlt(e,1),this.state=10070,this.match(t.PERFORM),this.state=10071,this.expressionUntilSemi(),this.state=10072,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementCall(){let e=new cl(this.context,this.state);this.enterRule(e,1350,t.RULE_statementCall);try{switch(this.state=10088,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALL:this.enterOuterAlt(e,1),this.state=10074,this.match(t.CALL),this.state=10075,this.anyIdentifier(),this.state=10076,this.match(t.OPEN_PAREN),this.state=10077,this.optionalExpressionList(),this.state=10078,this.match(t.CLOSE_PAREN),this.state=10079,this.match(t.SEMI);break;case t.DO:this.enterOuterAlt(e,2),this.state=10081,this.match(t.DO),this.state=10082,this.anyIdentifier(),this.state=10083,this.match(t.OPEN_PAREN),this.state=10084,this.optionalExpressionList(),this.state=10085,this.match(t.CLOSE_PAREN),this.state=10086,this.match(t.SEMI);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalExpressionList(){let e=new nl(this.context,this.state);this.enterRule(e,1352,t.RULE_optionalExpressionList);try{switch(this.state=10092,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CLOSE_PAREN:this.enterOuterAlt(e,1);break;case t.OPEN_PAREN:case t.PLUS:case t.MINUS:case t.PARAM:case t.Operator:case t.AND:case t.ARRAY:case t.CASE:case t.CAST:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.CURRENT_CATALOG:case t.CURRENT_DATE:case t.CURRENT_ROLE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.CURRENT_USER:case t.DEFAULT:case t.DO:case t.FALSE_P:case t.FETCH:case t.LOCALTIME:case t.LOCALTIMESTAMP:case t.NOT:case t.NULL_P:case t.SESSION_USER:case t.TABLE:case t.TRUE_P:case t.UNIQUE:case t.USER:case t.AUTHORIZATION:case t.BINARY:case t.COLLATION:case t.CONCURRENTLY:case t.CROSS:case t.CURRENT_SCHEMA:case t.FREEZE:case t.FULL:case t.ILIKE:case t.INNER_P:case t.IS:case t.ISNULL:case t.JOIN:case t.LEFT:case t.LIKE:case t.NATURAL:case t.NOTNULL:case t.OUTER_P:case t.OVER:case t.OVERLAPS:case t.RIGHT:case t.SIMILAR:case t.VERBOSE:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.TABLESAMPLE:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.StringConstant:case t.UnicodeEscapeStringConstant:case t.BeginDollarStringConstant:case t.BinaryStringConstant:case t.HexadecimalStringConstant:case t.Integral:case t.Numeric:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:case t.EscapeStringConstant:this.enterOuterAlt(e,2),this.state=10091,this.expressionList();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementAssign(){let e=new hl(this.context,this.state);this.enterRule(e,1354,t.RULE_statementAssign);try{this.enterOuterAlt(e,1),this.state=10094,this.assignVariable(),this.state=10095,this.assignOperator(),this.state=10096,this.sqlExpression(),this.state=10097,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementGetDiagram(){let e=new El(this.context,this.state);this.enterRule(e,1356,t.RULE_statementGetDiagram);try{this.enterOuterAlt(e,1),this.state=10099,this.match(t.GET),this.state=10100,this.optionalGetDiagramArea(),this.state=10101,this.match(t.DIAGNOSTICS),this.state=10102,this.getDiagramList(),this.state=10103,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalGetDiagramArea(){let e=new Tl(this.context,this.state);this.enterRule(e,1358,t.RULE_optionalGetDiagramArea);try{switch(this.state=10108,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIAGNOSTICS:this.enterOuterAlt(e,1);break;case t.CURRENT_P:this.enterOuterAlt(e,2),this.state=10106,this.match(t.CURRENT_P);break;case t.STACKED:this.enterOuterAlt(e,3),this.state=10107,this.match(t.STACKED);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}getDiagramList(){let e,s=new ol(this.context,this.state);this.enterRule(s,1360,t.RULE_getDiagramList);try{for(this.enterOuterAlt(s,1),this.state=10110,this.getDiagramListItem(),this.state=10115,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=10111,this.match(t.COMMA),this.state=10112,this.getDiagramListItem(),this.state=10117,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}getDiagramListItem(){let e=new Rl(this.context,this.state);this.enterRule(e,1362,t.RULE_getDiagramListItem);try{this.enterOuterAlt(e,1),this.state=10118,this.getDiagramTarget(),this.state=10119,this.assignOperator(),this.state=10120,this.getDiagramItem()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}getDiagramItem(){let e=new Al(this.context,this.state);this.enterRule(e,1364,t.RULE_getDiagramItem);try{this.enterOuterAlt(e,1),this.state=10122,this.columnId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}getDiagramTarget(){let e=new Sl(this.context,this.state);this.enterRule(e,1366,t.RULE_getDiagramTarget);try{this.enterOuterAlt(e,1),this.state=10124,this.assignVariable()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}assignVariable(){let e,s=new ll(this.context,this.state);this.enterRule(s,1368,t.RULE_assignVariable);try{switch(this.enterOuterAlt(s,1),this.state=10128,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=10126,this.anyName();break;case t.PARAM:this.state=10127,this.match(t.PARAM);break;default:throw new he(this)}for(this.state=10136,this.errorHandler.sync(this),e=this.tokenStream.LA(1);4===e;)this.state=10130,this.match(t.OPEN_BRACKET),this.state=10131,this.expressionUntilRightbracket(),this.state=10132,this.match(t.CLOSE_BRACKET),this.state=10138,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statementIf(){let e=new Ol(this.context,this.state);this.enterRule(e,1370,t.RULE_statementIf);try{this.enterOuterAlt(e,1),this.state=10139,this.match(t.IF_P),this.state=10140,this.expressionUntilThen(),this.state=10141,this.match(t.THEN),this.state=10142,this.procedureSection(),this.state=10143,this.statementElsifs(),this.state=10144,this.statementElse(),this.state=10145,this.match(t.END_P),this.state=10146,this.match(t.IF_P),this.state=10147,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementElsifs(){let e,s=new Il(this.context,this.state);this.enterRule(s,1372,t.RULE_statementElsifs);try{for(this.enterOuterAlt(s,1),this.state=10156,this.errorHandler.sync(this),e=this.tokenStream.LA(1);502===e;)this.state=10149,this.match(t.ELSIF),this.state=10150,this.expression1(),this.state=10151,this.match(t.THEN),this.state=10152,this.procedureSection(),this.state=10158,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statementElse(){let e=new ul(this.context,this.state);this.enterRule(e,1374,t.RULE_statementElse);try{switch(this.state=10162,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.END_P:this.enterOuterAlt(e,1);break;case t.ELSE:this.enterOuterAlt(e,2),this.state=10160,this.match(t.ELSE),this.state=10161,this.procedureSection();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementCase(){let e=new Nl(this.context,this.state);this.enterRule(e,1376,t.RULE_statementCase);try{this.enterOuterAlt(e,1),this.state=10164,this.match(t.CASE),this.state=10165,this.optionalExpressionUntilWhen(),this.state=10166,this.caseWhenList(),this.state=10167,this.optionalCaseElse(),this.state=10168,this.match(t.END_P),this.state=10169,this.match(t.CASE),this.state=10170,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalExpressionUntilWhen(){let e=new Ll(this.context,this.state);this.enterRule(e,1378,t.RULE_optionalExpressionUntilWhen);try{switch(this.state=10174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,741,this.context)){case 1:this.enterOuterAlt(e,1);break;case 2:this.enterOuterAlt(e,2),this.state=10173,this.sqlExpression()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}caseWhenList(){let e,s=new Cl(this.context,this.state);this.enterRule(s,1380,t.RULE_caseWhenList);try{this.enterOuterAlt(s,1),this.state=10177,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=10176,this.caseWhen(),this.state=10179,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(102===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}caseWhen(){let e=new _l(this.context,this.state);this.enterRule(e,1382,t.RULE_caseWhen);try{this.enterOuterAlt(e,1),this.state=10181,this.match(t.WHEN),this.state=10182,this.expressionList(),this.state=10183,this.match(t.THEN),this.state=10184,this.procedureSection()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalCaseElse(){let e=new Pl(this.context,this.state);this.enterRule(e,1384,t.RULE_optionalCaseElse);try{switch(this.state=10189,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.END_P:this.enterOuterAlt(e,1);break;case t.ELSE:this.enterOuterAlt(e,2),this.state=10187,this.match(t.ELSE),this.state=10188,this.procedureSection();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementLoop(){let e=new Ml(this.context,this.state);this.enterRule(e,1386,t.RULE_statementLoop);try{this.enterOuterAlt(e,1),this.state=10191,this.optionalLoopLabel(),this.state=10192,this.loopBody()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementWhile(){let e=new dl(this.context,this.state);this.enterRule(e,1388,t.RULE_statementWhile);try{this.enterOuterAlt(e,1),this.state=10194,this.optionalLoopLabel(),this.state=10195,this.match(t.WHILE),this.state=10196,this.expressionUntilLoop(),this.state=10197,this.loopBody()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementFor(){let e=new Ul(this.context,this.state);this.enterRule(e,1390,t.RULE_statementFor);try{this.enterOuterAlt(e,1),this.state=10199,this.optionalLoopLabel(),this.state=10200,this.match(t.FOR),this.state=10201,this.forControl(),this.state=10202,this.loopBody()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}forControl(){let e=new ml(this.context,this.state);this.enterRule(e,1392,t.RULE_forControl);try{switch(this.enterOuterAlt(e,1),this.state=10204,this.forVariable(),this.state=10205,this.match(t.IN_P),this.state=10221,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,744,this.context)){case 1:this.state=10206,this.cursorName(),this.state=10207,this.optionalCursorParameters();break;case 2:this.state=10209,this.selectStatement();break;case 3:this.state=10210,this.explainStatement();break;case 4:this.state=10211,this.match(t.EXECUTE),this.state=10212,this.expression1(),this.state=10213,this.optionalForUsingExpression();break;case 5:this.state=10215,this.optionalReverse(),this.state=10216,this.expression1(),this.state=10217,this.match(t.DOT_DOT),this.state=10218,this.expression1(),this.state=10219,this.optionalByExpression()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalForUsingExpression(){let e=new Dl(this.context,this.state);this.enterRule(e,1394,t.RULE_optionalForUsingExpression);try{switch(this.state=10226,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:case t.LOOP:this.enterOuterAlt(e,1);break;case t.USING:this.enterOuterAlt(e,2),this.state=10224,this.match(t.USING),this.state=10225,this.expressionList();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalCursorParameters(){let e,s=new pl(this.context,this.state);this.enterRule(s,1396,t.RULE_optionalCursorParameters);try{switch(this.state=10240,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LOOP:this.enterOuterAlt(s,1);break;case t.OPEN_PAREN:for(this.enterOuterAlt(s,2),this.state=10229,this.match(t.OPEN_PAREN),this.state=10230,this.expression1(),this.state=10235,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=10231,this.match(t.COMMA),this.state=10232,this.expression1(),this.state=10237,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=10238,this.match(t.CLOSE_PAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalReverse(){let e=new gl(this.context,this.state);this.enterRule(e,1398,t.RULE_optionalReverse);try{switch(this.state=10244,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,748,this.context)){case 1:this.enterOuterAlt(e,1);break;case 2:this.enterOuterAlt(e,2),this.state=10243,this.match(t.REVERSE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalByExpression(){let e=new xl(this.context,this.state);this.enterRule(e,1400,t.RULE_optionalByExpression);try{switch(this.state=10249,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LOOP:this.enterOuterAlt(e,1);break;case t.BY:this.enterOuterAlt(e,2),this.state=10247,this.match(t.BY),this.state=10248,this.expression1();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}forVariable(){let e=new kl(this.context,this.state);this.enterRule(e,1402,t.RULE_forVariable);try{this.enterOuterAlt(e,1),this.state=10251,this.anyNameList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementForeachA(){let e=new Hl(this.context,this.state);this.enterRule(e,1404,t.RULE_statementForeachA);try{this.enterOuterAlt(e,1),this.state=10253,this.optionalLoopLabel(),this.state=10254,this.match(t.FOREACH),this.state=10255,this.forVariable(),this.state=10256,this.foreachSlice(),this.state=10257,this.match(t.IN_P),this.state=10258,this.match(t.ARRAY),this.state=10259,this.expression1(),this.state=10260,this.loopBody()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}foreachSlice(){let e=new Gl(this.context,this.state);this.enterRule(e,1406,t.RULE_foreachSlice);try{switch(this.state=10265,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IN_P:this.enterOuterAlt(e,1);break;case t.SLICE:this.enterOuterAlt(e,2),this.state=10263,this.match(t.SLICE),this.state=10264,this.iconst();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementExit(){let e=new Fl(this.context,this.state);this.enterRule(e,1408,t.RULE_statementExit);try{this.enterOuterAlt(e,1),this.state=10267,this.exitType(),this.state=10268,this.optionalLabel(),this.state=10269,this.optionalExitCondition(),this.state=10270,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}exitType(){let e,s=new vl(this.context,this.state);this.enterRule(s,1410,t.RULE_exitType);try{this.enterOuterAlt(s,1),this.state=10272,e=this.tokenStream.LA(1),167===e||507===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statementReturn(){let e=new Bl(this.context,this.state);this.enterRule(e,1412,t.RULE_statementReturn);try{switch(this.enterOuterAlt(e,1),this.state=10274,this.match(t.RETURN),this.state=10286,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,752,this.context)){case 1:this.state=10275,this.match(t.NEXT),this.state=10276,this.sqlExpression();break;case 2:switch(this.state=10277,this.match(t.QUERY),this.state=10283,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EXECUTE:this.state=10278,this.match(t.EXECUTE),this.state=10279,this.expression1(),this.state=10280,this.optionalForUsingExpression();break;case t.OPEN_PAREN:case t.SELECT:case t.TABLE:case t.WITH:case t.VALUES:this.state=10282,this.selectStatement();break;default:throw new he(this)}break;case 3:this.state=10285,this.optionalReturnResult()}this.state=10288,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalReturnResult(){let e=new yl(this.context,this.state);this.enterRule(e,1414,t.RULE_optionalReturnResult);try{switch(this.state=10292,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,753,this.context)){case 1:this.enterOuterAlt(e,1);break;case 2:this.enterOuterAlt(e,2),this.state=10291,this.sqlExpression()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementRaise(){let e=new fl(this.context,this.state);this.enterRule(e,1416,t.RULE_statementRaise);try{switch(this.state=10320,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,754,this.context)){case 1:this.enterOuterAlt(e,1),this.state=10294,this.match(t.RAISE),this.state=10295,this.optionalStatementRaiseLevel(),this.state=10296,this.sconst(),this.state=10297,this.optionalRaiseList(),this.state=10298,this.optionalRaiseUsing(),this.state=10299,this.match(t.SEMI);break;case 2:this.enterOuterAlt(e,2),this.state=10301,this.match(t.RAISE),this.state=10302,this.optionalStatementRaiseLevel(),this.state=10303,this.identifier(),this.state=10304,this.optionalRaiseUsing(),this.state=10305,this.match(t.SEMI);break;case 3:this.enterOuterAlt(e,3),this.state=10307,this.match(t.RAISE),this.state=10308,this.optionalStatementRaiseLevel(),this.state=10309,this.match(t.SQLSTATE),this.state=10310,this.sconst(),this.state=10311,this.optionalRaiseUsing(),this.state=10312,this.match(t.SEMI);break;case 4:this.enterOuterAlt(e,4),this.state=10314,this.match(t.RAISE),this.state=10315,this.optionalStatementRaiseLevel(),this.state=10316,this.optionalRaiseUsing(),this.state=10317,this.match(t.SEMI);break;case 5:this.enterOuterAlt(e,5),this.state=10319,this.match(t.RAISE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalStatementRaiseLevel(){let e=new Yl(this.context,this.state);this.enterRule(e,1418,t.RULE_optionalStatementRaiseLevel);try{switch(this.state=10330,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,755,this.context)){case 1:this.enterOuterAlt(e,1);break;case 2:this.enterOuterAlt(e,2);break;case 3:this.enterOuterAlt(e,3),this.state=10324,this.match(t.DEBUG);break;case 4:this.enterOuterAlt(e,4),this.state=10325,this.match(t.LOG);break;case 5:this.enterOuterAlt(e,5),this.state=10326,this.match(t.INFO);break;case 6:this.enterOuterAlt(e,6),this.state=10327,this.match(t.NOTICE);break;case 7:this.enterOuterAlt(e,7),this.state=10328,this.match(t.WARNING);break;case 8:this.enterOuterAlt(e,8),this.state=10329,this.match(t.EXCEPTION)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalRaiseList(){let e,s=new wl(this.context,this.state);this.enterRule(s,1420,t.RULE_optionalRaiseList);try{switch(this.state=10339,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:case t.USING:this.enterOuterAlt(s,1);break;case t.COMMA:this.enterOuterAlt(s,2),this.state=10335,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=10333,this.match(t.COMMA),this.state=10334,this.expression1(),this.state=10337,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(6===e);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalRaiseUsing(){let e,s=new bl(this.context,this.state);this.enterRule(s,1422,t.RULE_optionalRaiseUsing);try{switch(this.state=10351,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:this.enterOuterAlt(s,1);break;case t.USING:for(this.enterOuterAlt(s,2),this.state=10342,this.match(t.USING),this.state=10343,this.optionalRaiseUsingElement(),this.state=10348,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=10344,this.match(t.COMMA),this.state=10345,this.optionalRaiseUsingElement(),this.state=10350,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalRaiseUsingElement(){let e=new Wl(this.context,this.state);this.enterRule(e,1424,t.RULE_optionalRaiseUsingElement);try{this.enterOuterAlt(e,1),this.state=10353,this.identifier(),this.state=10354,this.match(t.EQUAL),this.state=10355,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementAssert(){let e=new Vl(this.context,this.state);this.enterRule(e,1426,t.RULE_statementAssert);try{this.enterOuterAlt(e,1),this.state=10357,this.match(t.ASSERT),this.state=10358,this.sqlExpression(),this.state=10359,this.optionalStatementAssertMessage(),this.state=10360,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalStatementAssertMessage(){let e=new Xl(this.context,this.state);this.enterRule(e,1428,t.RULE_optionalStatementAssertMessage);try{switch(this.state=10365,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:this.enterOuterAlt(e,1);break;case t.COMMA:this.enterOuterAlt(e,2),this.state=10363,this.match(t.COMMA),this.state=10364,this.sqlExpression();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}loopBody(){let e=new Kl(this.context,this.state);this.enterRule(e,1430,t.RULE_loopBody);try{this.enterOuterAlt(e,1),this.state=10367,this.match(t.LOOP),this.state=10368,this.procedureSection(),this.state=10369,this.match(t.END_P),this.state=10370,this.match(t.LOOP),this.state=10371,this.optionalLabel(),this.state=10372,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementExecSql(){let e=new Ql(this.context,this.state);this.enterRule(e,1432,t.RULE_statementExecSql);try{this.enterOuterAlt(e,1),this.state=10374,this.makeExecuteSqlStatement(),this.state=10375,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementDynExecute(){let e=new Jl(this.context,this.state);this.enterRule(e,1434,t.RULE_statementDynExecute);try{switch(this.enterOuterAlt(e,1),this.state=10377,this.match(t.EXECUTE),this.state=10378,this.expression1(),this.state=10386,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,761,this.context)){case 1:this.state=10379,this.optionalExecuteInto(),this.state=10380,this.optionalExecuteUsing();break;case 2:this.state=10382,this.optionalExecuteUsing(),this.state=10383,this.optionalExecuteInto()}this.state=10388,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalExecuteUsing(){let e=new Zl(this.context,this.state);this.enterRule(e,1436,t.RULE_optionalExecuteUsing);try{switch(this.state=10393,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:case t.INTO:this.enterOuterAlt(e,1);break;case t.USING:this.enterOuterAlt(e,2),this.state=10391,this.match(t.USING),this.state=10392,this.optionalExecuteUsingList();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalExecuteUsingList(){let e,s=new ql(this.context,this.state);this.enterRule(s,1438,t.RULE_optionalExecuteUsingList);try{for(this.enterOuterAlt(s,1),this.state=10395,this.expression1(),this.state=10400,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=10396,this.match(t.COMMA),this.state=10397,this.expression1(),this.state=10402,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalExecuteInto(){let e=new jl(this.context,this.state);this.enterRule(e,1440,t.RULE_optionalExecuteInto);try{switch(this.state=10409,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SEMI:case t.USING:this.enterOuterAlt(e,1);break;case t.INTO:if(this.enterOuterAlt(e,2),1===(this.state=10404,this.match(t.INTO),this.state=10406,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,764,this.context)))this.state=10405,this.match(t.STRICT_P);this.state=10408,this.intoTarget();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementOpen(){let e,s=new zl(this.context,this.state);this.enterRule(s,1442,t.RULE_statementOpen);try{switch(this.enterOuterAlt(s,1),this.state=10411,this.match(t.OPEN),this.state=10440,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,770,this.context)){case 1:switch(this.state=10412,this.cursorVariable(),this.state=10414,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=10413,this.match(t.NO)),this.state=10416,this.match(t.SCROLL),this.state=10417,this.match(t.FOR),this.state=10424,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPEN_PAREN:case t.SELECT:case t.TABLE:case t.WITH:case t.VALUES:this.state=10418,this.selectStatement();break;case t.EXECUTE:this.state=10419,this.match(t.EXECUTE),this.state=10420,this.sqlExpression(),this.state=10421,this.match(t.USING),this.state=10422,this.expressionList();break;default:throw new he(this)}break;case 2:if(this.state=10426,this.columnId(),this.state=10438,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e){for(this.state=10427,this.match(t.OPEN_PAREN),this.state=10428,this.optionalOpenBoundListItem(),this.state=10433,this.errorHandler.sync(this),e=this.tokenStream.LA(1);6===e;)this.state=10429,this.match(t.COMMA),this.state=10430,this.optionalOpenBoundListItem(),this.state=10435,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=10436,this.match(t.CLOSE_PAREN)}}this.state=10442,this.match(t.SEMI)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optionalOpenBoundListItem(){let e=new $l(this.context,this.state);this.enterRule(e,1444,t.RULE_optionalOpenBoundListItem);try{switch(this.state=10449,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,771,this.context)){case 1:this.enterOuterAlt(e,1),this.state=10444,this.columnId(),this.state=10445,this.match(t.COLON_EQUALS),this.state=10446,this.expression1();break;case 2:this.enterOuterAlt(e,2),this.state=10448,this.expression1()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementFetch(){let e=new tO(this.context,this.state);this.enterRule(e,1446,t.RULE_statementFetch);try{this.enterOuterAlt(e,1),this.state=10451,this.match(t.FETCH),this.state=10452,e._direction=this.optionalFetchDirection(),this.state=10453,this.optionalCursorFrom(),this.state=10454,this.cursorVariable(),this.state=10455,this.match(t.INTO),this.state=10456,this.intoTarget(),this.state=10457,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}intoTarget(){let e=new eO(this.context,this.state);this.enterRule(e,1448,t.RULE_intoTarget);try{this.enterOuterAlt(e,1),this.state=10459,this.expressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalCursorFrom(){let e=new sO(this.context,this.state);this.enterRule(e,1450,t.RULE_optionalCursorFrom);try{switch(this.state=10464,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PARAM:case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1);break;case t.FROM:this.enterOuterAlt(e,2),this.state=10462,this.match(t.FROM);break;case t.IN_P:this.enterOuterAlt(e,3),this.state=10463,this.match(t.IN_P);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalFetchDirection(){let e,s=new aO(this.context,this.state);this.enterRule(s,1452,t.RULE_optionalFetchDirection);try{switch(this.state=10483,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,774,this.context)){case 1:this.enterOuterAlt(s,1);break;case 2:this.enterOuterAlt(s,2);break;case 3:this.enterOuterAlt(s,3),this.state=10468,this.match(t.NEXT);break;case 4:this.enterOuterAlt(s,4),this.state=10469,this.match(t.PRIOR);break;case 5:this.enterOuterAlt(s,5),this.state=10470,this.match(t.FIRST_P);break;case 6:this.enterOuterAlt(s,6),this.state=10471,this.match(t.LAST_P);break;case 7:this.enterOuterAlt(s,7),this.state=10472,this.match(t.ABSOLUTE_P),this.state=10473,this.expression1();break;case 8:this.enterOuterAlt(s,8),this.state=10474,this.match(t.RELATIVE_P),this.state=10475,this.expression1();break;case 9:this.enterOuterAlt(s,9),this.state=10476,this.expression1();break;case 10:this.enterOuterAlt(s,10),this.state=10477,this.match(t.ALL);break;case 11:switch(this.enterOuterAlt(s,11),this.state=10478,e=this.tokenStream.LA(1),144===e||210===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=10481,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,773,this.context)){case 1:this.state=10479,this.expression1();break;case 2:this.state=10480,this.match(t.ALL)}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statementMove(){let e=new iO(this.context,this.state);this.enterRule(e,1454,t.RULE_statementMove);try{this.enterOuterAlt(e,1),this.state=10485,this.match(t.MOVE),this.state=10486,this.optionalFetchDirection(),this.state=10487,this.cursorVariable(),this.state=10488,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementClose(){let e=new rO(this.context,this.state);this.enterRule(e,1456,t.RULE_statementClose);try{this.enterOuterAlt(e,1),this.state=10490,this.match(t.CLOSE),this.state=10491,this.cursorVariable(),this.state=10492,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementNull(){let e=new cO(this.context,this.state);this.enterRule(e,1458,t.RULE_statementNull);try{this.enterOuterAlt(e,1),this.state=10494,this.match(t.NULL_P),this.state=10495,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementCommit(){let e=new nO(this.context,this.state);this.enterRule(e,1460,t.RULE_statementCommit);try{this.enterOuterAlt(e,1),this.state=10497,this.match(t.COMMIT),this.state=10498,this.plsqlOptionalTransactionChain(),this.state=10499,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}statementRollback(){let e=new hO(this.context,this.state);this.enterRule(e,1462,t.RULE_statementRollback);try{this.enterOuterAlt(e,1),this.state=10501,this.match(t.ROLLBACK),this.state=10502,this.plsqlOptionalTransactionChain(),this.state=10503,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}plsqlOptionalTransactionChain(){let e,s=new EO(this.context,this.state);this.enterRule(s,1464,t.RULE_plsqlOptionalTransactionChain);try{switch(this.state=10511,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:this.enterOuterAlt(s,1),this.state=10505,this.match(t.AND),this.state=10507,this.errorHandler.sync(this),e=this.tokenStream.LA(1),262===e&&(this.state=10506,this.match(t.NO)),this.state=10509,this.match(t.CHAIN);break;case t.SEMI:this.enterOuterAlt(s,2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statementSet(){let e=new TO(this.context,this.state);this.enterRule(e,1466,t.RULE_statementSet);try{switch(this.state=10525,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=10513,this.match(t.SET),this.state=10514,this.anyName(),this.state=10515,this.match(t.TO),this.state=10516,this.match(t.DEFAULT),this.state=10517,this.match(t.SEMI);break;case t.RESET:switch(this.enterOuterAlt(e,2),this.state=10519,this.match(t.RESET),this.state=10522,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.state=10520,this.anyName();break;case t.ALL:this.state=10521,this.match(t.ALL);break;default:throw new he(this)}this.state=10524,this.match(t.SEMI);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cursorVariable(){let e=new oO(this.context,this.state);this.enterRule(e,1468,t.RULE_cursorVariable);try{switch(this.state=10529,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,1),this.state=10527,this.columnId();break;case t.PARAM:this.enterOuterAlt(e,2),this.state=10528,this.match(t.PARAM);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}exceptionSection(){let e=new RO(this.context,this.state);this.enterRule(e,1470,t.RULE_exceptionSection);try{switch(this.state=10534,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.END_P:this.enterOuterAlt(e,1);break;case t.EXCEPTION:this.enterOuterAlt(e,2),this.state=10532,this.match(t.EXCEPTION),this.state=10533,this.procedureExceptions();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}procedureExceptions(){let e,s=new AO(this.context,this.state);this.enterRule(s,1472,t.RULE_procedureExceptions);try{this.enterOuterAlt(s,1),this.state=10537,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=10536,this.procedureException(),this.state=10539,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(102===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}procedureException(){let e=new SO(this.context,this.state);this.enterRule(e,1474,t.RULE_procedureException);try{this.enterOuterAlt(e,1),this.state=10541,this.match(t.WHEN),this.state=10542,this.procedureConditions(),this.state=10543,this.match(t.THEN),this.state=10544,this.procedureSection()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}procedureConditions(){let e,s=new lO(this.context,this.state);this.enterRule(s,1476,t.RULE_procedureConditions);try{for(this.enterOuterAlt(s,1),this.state=10546,this.procedureCondition(),this.state=10551,this.errorHandler.sync(this),e=this.tokenStream.LA(1);82===e;)this.state=10547,this.match(t.OR),this.state=10548,this.procedureCondition(),this.state=10553,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}procedureCondition(){let e=new OO(this.context,this.state);this.enterRule(e,1478,t.RULE_procedureCondition);try{switch(this.state=10557,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,783,this.context)){case 1:this.enterOuterAlt(e,1),this.state=10554,this.anyIdentifier();break;case 2:this.enterOuterAlt(e,2),this.state=10555,this.match(t.SQLSTATE),this.state=10556,this.sconst()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalBlockLabel(){let e=new IO(this.context,this.state);this.enterRule(e,1480,t.RULE_optionalBlockLabel);try{switch(this.state=10561,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BEGIN_P:case t.DECLARE:this.enterOuterAlt(e,1);break;case t.LESS_LESS:this.enterOuterAlt(e,2),this.state=10560,this.labelDeclaration();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalLoopLabel(){let e=new uO(this.context,this.state);this.enterRule(e,1482,t.RULE_optionalLoopLabel);try{switch(this.state=10565,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:case t.WHILE:case t.FOREACH:case t.LOOP:this.enterOuterAlt(e,1);break;case t.LESS_LESS:this.enterOuterAlt(e,2),this.state=10564,this.labelDeclaration();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalLabel(){let e=new NO(this.context,this.state);this.enterRule(e,1484,t.RULE_optionalLabel);try{switch(this.state=10569,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EOF:case t.SEMI:case t.WHEN:this.enterOuterAlt(e,1);break;case t.AND:case t.ARRAY:case t.COLLATE:case t.COLUMN:case t.CONSTRAINT:case t.DEFAULT:case t.DO:case t.FETCH:case t.TABLE:case t.IS:case t.LEFT:case t.OUTER_P:case t.OVER:case t.RIGHT:case t.ABORT_P:case t.ABSOLUTE_P:case t.ACCESS:case t.ACTION:case t.ADD_P:case t.ADMIN:case t.AFTER:case t.AGGREGATE:case t.ALSO:case t.ALTER:case t.ALWAYS:case t.ASSERTION:case t.ASSIGNMENT:case t.AT:case t.ATTRIBUTE:case t.BACKWARD:case t.BEFORE:case t.BEGIN_P:case t.BY:case t.CACHE:case t.CALLED:case t.CASCADE:case t.CASCADED:case t.CATALOG:case t.CHAIN:case t.CHARACTERISTICS:case t.CHECKPOINT:case t.CLASS:case t.CLOSE:case t.CLUSTER:case t.COMMENT:case t.COMMENTS:case t.COMMIT:case t.COMMITTED:case t.CONFIGURATION:case t.CONNECTION:case t.CONSTRAINTS:case t.CONTENT_P:case t.CONTINUE_P:case t.CONVERSION_P:case t.COPY:case t.COST:case t.CSV:case t.CURSOR:case t.CYCLE:case t.DATA_P:case t.DATABASE:case t.DAY_P:case t.DEALLOCATE:case t.DECLARE:case t.DEFAULTS:case t.DEFERRED:case t.DEFINER:case t.DELETE_P:case t.DELIMITER:case t.DELIMITERS:case t.DICTIONARY:case t.DISABLE_P:case t.DISCARD:case t.DOCUMENT_P:case t.DOMAIN_P:case t.DOUBLE_P:case t.DROP:case t.EACH:case t.ENABLE_P:case t.ENCODING:case t.ENCRYPTED:case t.ENUM_P:case t.ESCAPE:case t.EVENT:case t.EXCLUDE:case t.EXCLUDING:case t.EXCLUSIVE:case t.EXECUTE:case t.EXPLAIN:case t.EXTENSION:case t.EXTERNAL:case t.FAMILY:case t.FIRST_P:case t.FOLLOWING:case t.FORCE:case t.FORWARD:case t.FUNCTION:case t.FUNCTIONS:case t.GLOBAL:case t.GRANTED:case t.HANDLER:case t.HEADER_P:case t.HOLD:case t.HOUR_P:case t.IDENTITY_P:case t.IF_P:case t.IMMEDIATE:case t.IMMUTABLE:case t.IMPLICIT_P:case t.INCLUDING:case t.INCREMENT:case t.INDEX:case t.INDEXES:case t.INHERIT:case t.INHERITS:case t.INLINE_P:case t.INSENSITIVE:case t.INSERT:case t.INSTEAD:case t.INVOKER:case t.ISOLATION:case t.KEY:case t.LABEL:case t.LANGUAGE:case t.LARGE_P:case t.LAST_P:case t.LEAKPROOF:case t.LEVEL:case t.LISTEN:case t.LOAD:case t.LOCAL:case t.LOCATION:case t.LOCK_P:case t.MAPPING:case t.MATCH:case t.MATERIALIZED:case t.MAXVALUE:case t.MINUTE_P:case t.MINVALUE:case t.MODE:case t.MONTH_P:case t.MOVE:case t.NAME_P:case t.NAMES:case t.NEXT:case t.NO:case t.NOTHING:case t.NOTIFY:case t.NOWAIT:case t.NULLS_P:case t.OBJECT_P:case t.OF:case t.OFF:case t.OIDS:case t.OPERATOR:case t.OPTION:case t.OPTIONS:case t.OWNED:case t.OWNER:case t.PARSER:case t.PARTIAL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PLANS:case t.PRECEDING:case t.PREPARE:case t.PREPARED:case t.PRESERVE:case t.PRIOR:case t.PRIVILEGES:case t.PROCEDURAL:case t.PROCEDURE:case t.PROGRAM:case t.QUOTE:case t.RANGE:case t.READ:case t.REASSIGN:case t.RECHECK:case t.RECURSIVE:case t.REF:case t.REFRESH:case t.REINDEX:case t.RELATIVE_P:case t.RELEASE:case t.RENAME:case t.REPEATABLE:case t.REPLACE:case t.REPLICA:case t.RESET:case t.RESTART:case t.RESTRICT:case t.RETURNS:case t.REVOKE:case t.ROLE:case t.ROLLBACK:case t.ROWS:case t.RULE:case t.SAVEPOINT:case t.SCHEMA:case t.SCROLL:case t.SEARCH:case t.SECOND_P:case t.SECURITY:case t.SEQUENCE:case t.SEQUENCES:case t.SERIALIZABLE:case t.SERVER:case t.SESSION:case t.SET:case t.SHARE:case t.SHOW:case t.SIMPLE:case t.SNAPSHOT:case t.STABLE:case t.STANDALONE_P:case t.START:case t.STATEMENT:case t.STATISTICS:case t.STDIN:case t.STDOUT:case t.STORAGE:case t.STRICT_P:case t.STRIP_P:case t.SYSID:case t.SYSTEM_P:case t.TABLES:case t.TABLESPACE:case t.TEMP:case t.TEMPLATE:case t.TEMPORARY:case t.TEXT_P:case t.TRANSACTION:case t.TRIGGER:case t.TRUNCATE:case t.TRUSTED:case t.TYPE_P:case t.TYPES_P:case t.UNBOUNDED:case t.UNCOMMITTED:case t.UNENCRYPTED:case t.UNKNOWN:case t.UNLISTEN:case t.UNLOGGED:case t.UNTIL:case t.UPDATE:case t.VACUUM:case t.VALID:case t.VALIDATE:case t.VALIDATOR:case t.VARYING:case t.VERSION_P:case t.VIEW:case t.VOLATILE:case t.WHITESPACE_P:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.WRITE:case t.XML_P:case t.YEAR_P:case t.YES_P:case t.ZONE:case t.BETWEEN:case t.BIGINT:case t.BIT:case t.BOOLEAN_P:case t.CHAR_P:case t.CHARACTER:case t.COALESCE:case t.DEC:case t.DECIMAL_P:case t.EXISTS:case t.EXTRACT:case t.FLOAT_P:case t.GREATEST:case t.INOUT:case t.INT_P:case t.INTEGER:case t.INTERVAL:case t.LEAST:case t.NATIONAL:case t.NCHAR:case t.NONE:case t.NULLIF:case t.NUMERIC:case t.OVERLAY:case t.POSITION:case t.PRECISION:case t.REAL:case t.ROW:case t.SETOF:case t.SMALLINT:case t.SUBSTRING:case t.TIME:case t.TIMESTAMP:case t.TREAT:case t.TRIM:case t.VALUES:case t.VARCHAR:case t.XMLATTRIBUTES:case t.XMLCOMMENT:case t.XMLAGG:case t.XML_IS_WELL_FORMED:case t.XML_IS_WELL_FORMED_DOCUMENT:case t.XML_IS_WELL_FORMED_CONTENT:case t.XPATH:case t.XPATH_EXISTS:case t.XMLCONCAT:case t.XMLELEMENT:case t.XMLEXISTS:case t.XMLFOREST:case t.XMLPARSE:case t.XMLPI:case t.XMLROOT:case t.XMLSERIALIZE:case t.CALL:case t.CURRENT_P:case t.ATTACH:case t.DETACH:case t.EXPRESSION:case t.GENERATED:case t.LOGGED:case t.STORED:case t.INCLUDE:case t.ROUTINE:case t.TRANSFORM:case t.IMPORT_P:case t.POLICY:case t.METHOD:case t.REFERENCING:case t.NEW:case t.OLD:case t.VALUE_P:case t.SUBSCRIPTION:case t.PUBLICATION:case t.OUT_P:case t.ROUTINES:case t.SCHEMAS:case t.PROCEDURES:case t.INPUT_P:case t.SUPPORT:case t.PARALLEL:case t.SQL_P:case t.DEPENDS:case t.OVERRIDING:case t.CONFLICT:case t.SKIP_P:case t.LOCKED:case t.TIES:case t.ROLLUP:case t.CUBE:case t.GROUPING:case t.SETS:case t.ORDINALITY:case t.XMLTABLE:case t.COLUMNS:case t.XMLNAMESPACES:case t.ROWTYPE:case t.NORMALIZED:case t.WITHIN:case t.FILTER:case t.GROUPS:case t.OTHERS:case t.NFC:case t.NFD:case t.NFKC:case t.NFKD:case t.UESCAPE:case t.VIEWS:case t.NORMALIZE:case t.DUMP:case t.PRINT_STRICT_PARAMS:case t.VARIABLE_CONFLICT:case t.ERROR:case t.USE_VARIABLE:case t.USE_COLUMN:case t.ALIAS:case t.CONSTANT:case t.PERFORM:case t.GET:case t.DIAGNOSTICS:case t.STACKED:case t.ELSIF:case t.REVERSE:case t.SLICE:case t.EXIT:case t.RETURN:case t.QUERY:case t.RAISE:case t.SQLSTATE:case t.DEBUG:case t.LOG:case t.INFO:case t.NOTICE:case t.WARNING:case t.EXCEPTION:case t.ASSERT:case t.OPEN:case t.ABS:case t.CBRT:case t.CEIL:case t.CEILING:case t.DEGREES:case t.DIV:case t.EXP:case t.FACTORIAL:case t.FLOOR:case t.GCD:case t.LCM:case t.LN:case t.LOG10:case t.MIN_SCALE:case t.MOD:case t.PI:case t.POWER:case t.RADIANS:case t.ROUND:case t.SCALE:case t.SIGN:case t.SQRT:case t.TRIM_SCALE:case t.TRUNC:case t.WIDTH_BUCKET:case t.RANDOM:case t.SETSEED:case t.ACOS:case t.ACOSD:case t.ASIN:case t.ASIND:case t.ATAN:case t.ATAND:case t.ATAN2:case t.ATAN2D:case t.COS:case t.COSD:case t.COT:case t.COTD:case t.SIN:case t.SIND:case t.TAN:case t.TAND:case t.SINH:case t.COSH:case t.TANH:case t.ASINH:case t.ACOSH:case t.ATANH:case t.BIT_LENGTH:case t.CHAR_LENGTH:case t.CHARACTER_LENGTH:case t.LOWER:case t.OCTET_LENGTH:case t.UPPER:case t.ASCII:case t.BTRIM:case t.CHR:case t.CONCAT:case t.CONCAT_WS:case t.FORMAT:case t.INITCAP:case t.LENGTH:case t.LPAD:case t.LTRIM:case t.MD5:case t.PARSE_IDENT:case t.PG_CLIENT_ENCODING:case t.QUOTE_IDENT:case t.QUOTE_LITERAL:case t.QUOTE_NULLABLE:case t.REGEXP_COUNT:case t.REGEXP_INSTR:case t.REGEXP_LIKE:case t.REGEXP_MATCH:case t.REGEXP_MATCHES:case t.REGEXP_REPLACE:case t.REGEXP_SPLIT_TO_ARRAY:case t.REGEXP_SPLIT_TO_TABLE:case t.REGEXP_SUBSTR:case t.REPEAT:case t.RPAD:case t.RTRIM:case t.SPLIT_PART:case t.STARTS_WITH:case t.STRING_TO_ARRAY:case t.STRING_TO_TABLE:case t.STRPOS:case t.SUBSTR:case t.TO_ASCII:case t.TO_HEX:case t.TRANSLATE:case t.UNISTR:case t.AGE:case t.CLOCK_TIMESTAMP:case t.DATE_BIN:case t.DATE_PART:case t.DATE_TRUNC:case t.ISFINITE:case t.JUSTIFY_DAYS:case t.JUSTIFY_HOURS:case t.JUSTIFY_INTERVAL:case t.MAKE_DATE:case t.MAKE_INTERVAL:case t.MAKE_TIME:case t.MAKE_TIMESTAMP:case t.MAKE_TIMESTAMPTZ:case t.NOW:case t.STATEMENT_TIMESTAMP:case t.TIMEOFDAY:case t.TRANSACTION_TIMESTAMP:case t.TO_TIMESTAMP:case t.TO_CHAR:case t.TO_DATE:case t.TO_NUMBER:case t.Identifier:case t.QuotedIdentifier:case t.UnicodeQuotedIdentifier:case t.PLSQLVARIABLENAME:case t.PLSQLIDENTIFIER:this.enterOuterAlt(e,2),this.state=10568,this.anyIdentifier();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalExitCondition(){let e=new LO(this.context,this.state);this.enterRule(e,1486,t.RULE_optionalExitCondition);try{switch(this.state=10574,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHEN:this.enterOuterAlt(e,1),this.state=10571,this.match(t.WHEN),this.state=10572,this.expressionUntilSemi();break;case t.SEMI:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}anyIdentifier(){let e=new CO(this.context,this.state);this.enterRule(e,1488,t.RULE_anyIdentifier);try{switch(this.state=10578,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,788,this.context)){case 1:this.enterOuterAlt(e,1),this.state=10576,this.columnId();break;case 2:this.enterOuterAlt(e,2),this.state=10577,this.plsqlUnreservedKeyword()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}plsqlUnreservedKeyword(){let e,s=new _O(this.context,this.state);this.enterRule(s,1490,t.RULE_plsqlUnreservedKeyword);try{this.enterOuterAlt(s,1),this.state=10580,e=this.tokenStream.LA(1),!(e-33&-32)&&1<<e-33&286268421||!(e-92&-32)&&1<<e-92&2164260865||!(e-130&-32)&&1<<e-130&2290106369||167===e||172===e||!(e-207&-32)&&1<<e-207&33554441||!(e-240&-32)&&1<<e-240&6553601||!(e-272&-32)&&1<<e-272&268451841||!(e-306&-32)&&1<<e-306&1051713||353===e||433===e||434===e||!(e-477&-32)&&1<<e-477&3825197057||!(e-509&-32)&&1<<e-509&3055?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sqlExpression(){let e,s=new PO(this.context,this.state);this.enterRule(s,1492,t.RULE_sqlExpression);try{this.enterOuterAlt(s,1),this.state=10582,this.optionalTargetList(),this.state=10584,this.errorHandler.sync(this),e=this.tokenStream.LA(1),71===e&&(this.state=10583,this.intoClause()),this.state=10586,this.fromClause(),this.state=10587,this.whereClause(),this.state=10588,this.groupClause(),this.state=10589,this.havingClause(),this.state=10590,this.windowClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expressionUntilThen(){let e=new MO(this.context,this.state);this.enterRule(e,1494,t.RULE_expressionUntilThen);try{this.enterOuterAlt(e,1),this.state=10592,this.sqlExpression()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expressionUntilSemi(){let e=new dO(this.context,this.state);this.enterRule(e,1496,t.RULE_expressionUntilSemi);try{this.enterOuterAlt(e,1),this.state=10594,this.sqlExpression()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expressionUntilRightbracket(){let e=new UO(this.context,this.state);this.enterRule(e,1498,t.RULE_expressionUntilRightbracket);try{this.enterOuterAlt(e,1),this.state=10596,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expressionUntilLoop(){let e=new mO(this.context,this.state);this.enterRule(e,1500,t.RULE_expressionUntilLoop);try{this.enterOuterAlt(e,1),this.state=10598,this.expression1()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}makeExecuteSqlStatement(){let e=new DO(this.context,this.state);this.enterRule(e,1502,t.RULE_makeExecuteSqlStatement);try{this.enterOuterAlt(e,1),this.state=10600,this.statement(),this.state=10601,this.optionalReturningClauseInto()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}optionalReturningClauseInto(){let e=new pO(this.context,this.state);this.enterRule(e,1504,t.RULE_optionalReturningClauseInto);try{switch(this.state=10609,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INTO:if(this.enterOuterAlt(e,1),1===(this.state=10603,this.match(t.INTO),this.state=10605,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,790,this.context)))this.state=10604,this.match(t.STRICT_P);this.state=10607,this.intoTarget();break;case t.SEMI:this.enterOuterAlt(e,2);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}roleOrAliases(){let e,s=new gO(this.context,this.state);this.enterRule(s,1506,t.RULE_roleOrAliases);try{this.enterOuterAlt(s,1),this.state=10611,e=this.tokenStream.LA(1),66===e||99===e||311===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sempred(t,e,s){return 540!==e||this.expression2_sempred(t,s)}expression2_sempred(t,e){switch(e){case 0:return this.precpred(this.context,8);case 1:return this.precpred(this.context,7);case 2:return this.precpred(this.context,6);case 3:return this.precpred(this.context,5);case 4:return this.precpred(this.context,4);case 5:return this.precpred(this.context,10);case 6:return this.precpred(this.context,2);case 7:return this.precpred(this.context,1)}return!0}static{this._serializedATN=[4,1,679,10614,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,2,451,7,451,2,452,7,452,2,453,7,453,2,454,7,454,2,455,7,455,2,456,7,456,2,457,7,457,2,458,7,458,2,459,7,459,2,460,7,460,2,461,7,461,2,462,7,462,2,463,7,463,2,464,7,464,2,465,7,465,2,466,7,466,2,467,7,467,2,468,7,468,2,469,7,469,2,470,7,470,2,471,7,471,2,472,7,472,2,473,7,473,2,474,7,474,2,475,7,475,2,476,7,476,2,477,7,477,2,478,7,478,2,479,7,479,2,480,7,480,2,481,7,481,2,482,7,482,2,483,7,483,2,484,7,484,2,485,7,485,2,486,7,486,2,487,7,487,2,488,7,488,2,489,7,489,2,490,7,490,2,491,7,491,2,492,7,492,2,493,7,493,2,494,7,494,2,495,7,495,2,496,7,496,2,497,7,497,2,498,7,498,2,499,7,499,2,500,7,500,2,501,7,501,2,502,7,502,2,503,7,503,2,504,7,504,2,505,7,505,2,506,7,506,2,507,7,507,2,508,7,508,2,509,7,509,2,510,7,510,2,511,7,511,2,512,7,512,2,513,7,513,2,514,7,514,2,515,7,515,2,516,7,516,2,517,7,517,2,518,7,518,2,519,7,519,2,520,7,520,2,521,7,521,2,522,7,522,2,523,7,523,2,524,7,524,2,525,7,525,2,526,7,526,2,527,7,527,2,528,7,528,2,529,7,529,2,530,7,530,2,531,7,531,2,532,7,532,2,533,7,533,2,534,7,534,2,535,7,535,2,536,7,536,2,537,7,537,2,538,7,538,2,539,7,539,2,540,7,540,2,541,7,541,2,542,7,542,2,543,7,543,2,544,7,544,2,545,7,545,2,546,7,546,2,547,7,547,2,548,7,548,2,549,7,549,2,550,7,550,2,551,7,551,2,552,7,552,2,553,7,553,2,554,7,554,2,555,7,555,2,556,7,556,2,557,7,557,2,558,7,558,2,559,7,559,2,560,7,560,2,561,7,561,2,562,7,562,2,563,7,563,2,564,7,564,2,565,7,565,2,566,7,566,2,567,7,567,2,568,7,568,2,569,7,569,2,570,7,570,2,571,7,571,2,572,7,572,2,573,7,573,2,574,7,574,2,575,7,575,2,576,7,576,2,577,7,577,2,578,7,578,2,579,7,579,2,580,7,580,2,581,7,581,2,582,7,582,2,583,7,583,2,584,7,584,2,585,7,585,2,586,7,586,2,587,7,587,2,588,7,588,2,589,7,589,2,590,7,590,2,591,7,591,2,592,7,592,2,593,7,593,2,594,7,594,2,595,7,595,2,596,7,596,2,597,7,597,2,598,7,598,2,599,7,599,2,600,7,600,2,601,7,601,2,602,7,602,2,603,7,603,2,604,7,604,2,605,7,605,2,606,7,606,2,607,7,607,2,608,7,608,2,609,7,609,2,610,7,610,2,611,7,611,2,612,7,612,2,613,7,613,2,614,7,614,2,615,7,615,2,616,7,616,2,617,7,617,2,618,7,618,2,619,7,619,2,620,7,620,2,621,7,621,2,622,7,622,2,623,7,623,2,624,7,624,2,625,7,625,2,626,7,626,2,627,7,627,2,628,7,628,2,629,7,629,2,630,7,630,2,631,7,631,2,632,7,632,2,633,7,633,2,634,7,634,2,635,7,635,2,636,7,636,2,637,7,637,2,638,7,638,2,639,7,639,2,640,7,640,2,641,7,641,2,642,7,642,2,643,7,643,2,644,7,644,2,645,7,645,2,646,7,646,2,647,7,647,2,648,7,648,2,649,7,649,2,650,7,650,2,651,7,651,2,652,7,652,2,653,7,653,2,654,7,654,2,655,7,655,2,656,7,656,2,657,7,657,2,658,7,658,2,659,7,659,2,660,7,660,2,661,7,661,2,662,7,662,2,663,7,663,2,664,7,664,2,665,7,665,2,666,7,666,2,667,7,667,2,668,7,668,2,669,7,669,2,670,7,670,2,671,7,671,2,672,7,672,2,673,7,673,2,674,7,674,2,675,7,675,2,676,7,676,2,677,7,677,2,678,7,678,2,679,7,679,2,680,7,680,2,681,7,681,2,682,7,682,2,683,7,683,2,684,7,684,2,685,7,685,2,686,7,686,2,687,7,687,2,688,7,688,2,689,7,689,2,690,7,690,2,691,7,691,2,692,7,692,2,693,7,693,2,694,7,694,2,695,7,695,2,696,7,696,2,697,7,697,2,698,7,698,2,699,7,699,2,700,7,700,2,701,7,701,2,702,7,702,2,703,7,703,2,704,7,704,2,705,7,705,2,706,7,706,2,707,7,707,2,708,7,708,2,709,7,709,2,710,7,710,2,711,7,711,2,712,7,712,2,713,7,713,2,714,7,714,2,715,7,715,2,716,7,716,2,717,7,717,2,718,7,718,2,719,7,719,2,720,7,720,2,721,7,721,2,722,7,722,2,723,7,723,2,724,7,724,2,725,7,725,2,726,7,726,2,727,7,727,2,728,7,728,2,729,7,729,2,730,7,730,2,731,7,731,2,732,7,732,2,733,7,733,2,734,7,734,2,735,7,735,2,736,7,736,2,737,7,737,2,738,7,738,2,739,7,739,2,740,7,740,2,741,7,741,2,742,7,742,2,743,7,743,2,744,7,744,2,745,7,745,2,746,7,746,2,747,7,747,2,748,7,748,2,749,7,749,2,750,7,750,2,751,7,751,2,752,7,752,2,753,7,753,1,0,3,0,1510,8,0,1,0,1,0,1,1,1,1,1,2,1,2,3,2,1518,8,2,1,2,1,2,1,2,1,2,3,2,1524,8,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,3,3,1648,8,3,1,4,1,4,3,4,1652,8,4,1,5,1,5,1,5,1,6,1,6,3,6,1659,8,6,1,7,5,7,1662,8,7,10,7,12,7,1665,9,7,1,8,5,8,1668,8,8,10,8,12,8,1671,9,8,1,9,1,9,1,9,3,9,1676,8,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,1692,8,9,1,10,1,10,1,10,1,10,1,10,1,10,3,10,1700,8,10,1,10,1,10,1,10,3,10,1705,8,10,1,11,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,3,13,1723,8,13,1,14,1,14,1,14,3,14,1728,8,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,3,15,1738,8,15,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,3,17,1749,8,17,1,17,1,17,1,17,1,17,1,17,3,17,1756,8,17,1,17,1,17,1,18,1,18,3,18,1762,8,18,1,19,5,19,1765,8,19,10,19,12,19,1768,9,19,1,20,1,20,1,20,1,20,1,20,1,20,3,20,1776,8,20,1,21,1,21,3,21,1780,8,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,1792,8,22,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1824,8,24,1,25,1,25,1,25,5,25,1829,8,25,10,25,12,25,1832,9,25,1,26,1,26,1,26,5,26,1837,8,26,10,26,12,26,1840,9,26,1,27,1,27,3,27,1844,8,27,1,28,1,28,1,28,1,28,1,28,3,28,1851,8,28,1,29,1,29,1,29,1,29,3,29,1857,8,29,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,3,30,1874,8,30,1,31,1,31,1,31,3,31,1879,8,31,1,32,1,32,3,32,1883,8,32,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1896,8,34,1,35,1,35,3,35,1900,8,35,1,36,1,36,1,36,3,36,1905,8,36,1,37,1,37,1,37,3,37,1910,8,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,1922,8,38,1,39,1,39,1,39,1,39,1,39,1,40,1,40,3,40,1931,8,40,1,41,1,41,1,42,1,42,1,43,1,43,1,43,1,44,1,44,1,44,1,44,3,44,1944,8,44,1,44,1,44,1,44,3,44,1949,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,1960,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,1971,8,44,1,44,1,44,1,44,3,44,1976,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,1987,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,1998,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,2008,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,2023,8,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,2035,8,44,1,44,1,44,1,44,3,44,2040,8,44,1,45,1,45,1,45,5,45,2045,8,45,10,45,12,45,2048,9,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,2058,8,46,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,4,48,2207,8,48,11,48,12,48,2208,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,2218,8,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,2238,8,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,2305,8,48,1,49,1,49,1,49,1,49,1,49,3,49,2312,8,49,1,50,1,50,1,50,3,50,2317,8,50,1,51,1,51,1,51,3,51,2322,8,51,1,52,1,52,1,52,3,52,2327,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,2335,8,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,3,55,2344,8,55,1,56,1,56,1,56,5,56,2349,8,56,10,56,12,56,2352,9,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,2361,8,57,3,57,2363,8,57,1,58,4,58,2366,8,58,11,58,12,58,2367,1,59,1,59,1,59,1,59,3,59,2374,8,59,1,59,1,59,1,59,1,59,3,59,2380,8,59,3,59,2382,8,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,3,60,2410,8,60,1,61,1,61,1,61,1,62,1,62,1,62,5,62,2418,8,62,10,62,12,62,2421,9,62,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,5,64,2431,8,64,10,64,12,64,2434,9,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,3,65,2445,8,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,3,65,2459,8,65,1,66,1,66,1,66,3,66,2464,8,66,1,67,1,67,3,67,2468,8,67,1,67,1,67,1,67,1,67,3,67,2474,8,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,2488,8,67,1,67,1,67,1,67,1,67,3,67,2494,8,67,1,68,1,68,1,69,1,69,1,69,3,69,2501,8,69,1,70,5,70,2504,8,70,10,70,12,70,2507,9,70,1,70,1,70,1,70,1,70,3,70,2513,8,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,2550,8,71,1,72,3,72,2553,8,72,1,72,1,72,1,72,3,72,2558,8,72,1,73,1,73,1,73,5,73,2563,8,73,10,73,12,73,2566,9,73,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,5,75,2578,8,75,10,75,12,75,2581,9,75,1,75,1,75,1,75,3,75,2586,8,75,1,76,1,76,1,76,1,76,1,76,1,76,3,76,2594,8,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,3,76,2627,8,76,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,2637,8,77,1,78,1,78,3,78,2641,8,78,1,79,1,79,1,79,1,79,1,79,3,79,2648,8,79,1,80,1,80,1,80,5,80,2653,8,80,10,80,12,80,2656,9,80,1,81,1,81,1,81,5,81,2661,8,81,10,81,12,81,2664,9,81,1,82,1,82,1,82,3,82,2669,8,82,1,83,1,83,3,83,2673,8,83,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,3,85,2683,8,85,1,85,1,85,1,86,5,86,2688,8,86,10,86,12,86,2691,9,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,3,87,2701,8,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,3,88,2721,8,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,3,88,2735,8,88,1,88,1,88,1,88,1,88,1,88,1,88,3,88,2743,8,88,1,89,1,89,1,89,3,89,2748,8,89,1,90,1,90,1,90,1,90,1,90,3,90,2755,8,90,1,91,1,91,1,91,1,91,1,92,1,92,5,92,2763,8,92,10,92,12,92,2766,9,92,1,93,1,93,1,94,1,94,1,94,1,94,1,94,3,94,2775,8,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,3,95,2795,8,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,3,95,2810,8,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,3,95,2835,8,95,1,96,1,96,1,96,1,96,1,96,3,96,2842,8,96,1,97,1,97,1,97,5,97,2847,8,97,10,97,12,97,2850,9,97,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,3,99,2860,8,99,1,100,1,100,1,100,3,100,2865,8,100,1,101,1,101,1,101,5,101,2870,8,101,10,101,12,101,2873,9,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,3,102,2883,8,102,1,103,1,103,1,103,1,103,1,103,1,103,3,103,2891,8,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,2902,8,104,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,3,107,2918,8,107,1,108,1,108,1,108,1,108,1,108,1,108,3,108,2926,8,108,1,109,1,109,3,109,2930,8,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,5,111,2942,8,111,10,111,12,111,2945,9,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,3,112,2961,8,112,1,113,1,113,1,113,3,113,2966,8,113,1,114,1,114,1,114,1,114,1,114,3,114,2973,8,114,1,115,1,115,1,115,1,115,1,115,1,115,1,115,3,115,2982,8,115,1,115,3,115,2985,8,115,1,116,1,116,1,116,3,116,2990,8,116,1,117,1,117,1,117,1,117,1,117,3,117,2997,8,117,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,3,119,3008,8,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,3,120,3021,8,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,3,121,3034,8,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,3,123,3052,8,123,1,123,3,123,3055,8,123,1,124,1,124,3,124,3059,8,124,1,124,1,124,1,124,1,124,1,124,3,124,3066,8,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,3,126,3083,8,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,3,127,3094,8,127,1,127,1,127,3,127,3098,8,127,1,128,1,128,1,128,1,128,3,128,3104,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,3,129,3114,8,129,1,130,4,130,3117,8,130,11,130,12,130,3118,1,131,1,131,1,131,1,131,1,131,1,131,1,131,3,131,3128,8,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,3,131,3150,8,131,3,131,3152,8,131,1,132,1,132,1,132,1,132,1,132,1,132,3,132,3160,8,132,1,133,1,133,1,133,5,133,3165,8,133,10,133,12,133,3168,9,133,1,134,1,134,1,134,3,134,3173,8,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,3,134,3182,8,134,3,134,3184,8,134,1,135,1,135,3,135,3188,8,135,1,136,1,136,1,136,3,136,3193,8,136,1,137,1,137,1,137,1,137,3,137,3199,8,137,1,138,1,138,3,138,3203,8,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,3,140,3216,8,140,1,141,1,141,1,141,1,141,3,141,3222,8,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,3,142,3231,8,142,1,142,1,142,1,142,5,142,3236,8,142,10,142,12,142,3239,9,142,1,143,1,143,1,143,1,143,1,143,1,143,1,143,3,143,3248,8,143,1,144,1,144,1,144,1,144,1,144,5,144,3255,8,144,10,144,12,144,3258,9,144,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,3,146,3402,8,146,1,147,1,147,1,147,1,147,1,147,1,147,3,147,3410,8,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,148,1,148,1,148,3,148,3422,8,148,1,149,4,149,3425,8,149,11,149,12,149,3426,1,150,1,150,1,150,1,150,1,150,1,150,3,150,3435,8,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,3,150,3446,8,150,1,151,1,151,1,151,1,151,1,151,1,151,3,151,3454,8,151,1,152,1,152,1,152,5,152,3459,8,152,10,152,12,152,3462,9,152,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,5,154,3472,8,154,10,154,12,154,3475,9,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,3,155,3484,8,155,1,156,1,156,1,156,1,157,1,157,1,158,1,158,1,159,1,159,1,159,1,159,1,159,3,159,3498,8,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,159,3,159,3514,8,159,1,159,1,159,1,159,1,159,1,159,1,159,3,159,3522,8,159,1,160,1,160,1,160,3,160,3527,8,160,1,161,1,161,1,161,3,161,3532,8,161,1,162,1,162,1,162,1,162,1,162,1,162,3,162,3540,8,162,3,162,3542,8,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,3,163,3600,8,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,3,165,3617,8,165,1,166,1,166,1,166,1,166,1,166,1,166,3,166,3625,8,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,3,167,3648,8,167,1,168,1,168,3,168,3652,8,168,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,3,169,3672,8,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,3,173,3709,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,3718,8,174,1,175,1,175,1,175,3,175,3723,8,175,1,176,1,176,1,176,3,176,3728,8,176,1,177,1,177,1,177,3,177,3733,8,177,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,181,3,181,3786,8,181,1,182,1,182,1,182,1,182,3,182,3792,8,182,1,183,1,183,1,183,5,183,3797,8,183,10,183,12,183,3800,9,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,3,184,3809,8,184,1,185,1,185,1,185,3,185,3814,8,185,1,186,4,186,3817,8,186,11,186,12,186,3818,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,189,1,189,1,190,1,190,1,191,1,191,3,191,3834,8,191,1,191,1,191,3,191,3838,8,191,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,3848,8,193,1,194,1,194,1,195,1,195,3,195,3854,8,195,1,195,1,195,5,195,3858,8,195,10,195,12,195,3861,9,195,1,196,1,196,1,196,1,196,3,196,3867,8,196,1,197,1,197,1,197,3,197,3872,8,197,1,198,5,198,3875,8,198,10,198,12,198,3878,9,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,3,199,3891,8,199,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,3,200,3919,8,200,1,201,1,201,1,201,5,201,3924,8,201,10,201,12,201,3927,9,201,1,202,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,5,203,3938,8,203,10,203,12,203,3941,9,203,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,3,205,3955,8,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,3,207,4007,8,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,1,207,3,207,4074,8,207,1,208,1,208,1,208,1,208,5,208,4080,8,208,10,208,12,208,4083,9,208,1,208,1,208,1,209,1,209,1,209,3,209,4090,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,4098,8,210,1,211,1,211,1,211,1,211,5,211,4104,8,211,10,211,12,211,4107,9,211,1,211,1,211,1,212,1,212,1,212,1,212,1,213,1,213,1,213,5,213,4118,8,213,10,213,12,213,4121,9,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,3,214,4160,8,214,1,215,1,215,1,215,1,215,3,215,4166,8,215,1,216,1,216,1,216,1,216,1,216,3,216,4173,8,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,5,217,4187,8,217,10,217,12,217,4190,9,217,1,218,1,218,1,218,1,218,1,218,3,218,4197,8,218,1,218,1,218,1,218,1,218,1,218,3,218,4204,8,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,3,218,4219,8,218,1,219,1,219,1,219,3,219,4224,8,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,4233,8,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,3,222,4260,8,222,1,223,1,223,1,223,5,223,4265,8,223,10,223,12,223,4268,9,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,3,224,4282,8,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,3,225,4302,8,225,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,3,226,4322,8,226,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,3,229,4341,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4350,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4359,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4368,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4377,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4386,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4397,8,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,4442,8,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,3,230,4465,8,230,1,231,1,231,1,231,3,231,4470,8,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,3,232,4485,8,232,1,233,1,233,1,234,1,234,1,234,5,234,4492,8,234,10,234,12,234,4495,9,234,1,235,1,235,3,235,4499,8,235,1,236,1,236,4,236,4503,8,236,11,236,12,236,4504,1,237,1,237,1,237,5,237,4510,8,237,10,237,12,237,4513,9,237,1,238,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,3,239,4526,8,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,3,240,4625,8,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,3,240,4712,8,240,1,241,1,241,3,241,4716,8,241,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,3,242,4854,8,242,1,243,1,243,1,243,3,243,4859,8,243,1,244,1,244,3,244,4863,8,244,1,245,1,245,1,245,1,245,3,245,4869,8,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,4937,8,246,1,247,1,247,1,248,1,248,3,248,4943,8,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,3,250,4972,8,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,3,251,4989,8,251,1,252,1,252,1,252,5,252,4994,8,252,10,252,12,252,4997,9,252,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,3,253,5008,8,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,3,254,5048,8,254,1,255,1,255,1,255,5,255,5053,8,255,10,255,12,255,5056,9,255,1,256,1,256,1,256,3,256,5061,8,256,1,257,1,257,1,257,1,257,3,257,5067,8,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,3,259,5093,8,259,1,260,1,260,1,260,1,260,3,260,5099,8,260,1,261,1,261,1,261,1,261,3,261,5105,8,261,1,262,1,262,1,262,1,262,5,262,5111,8,262,10,262,12,262,5114,9,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,3,263,5125,8,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,3,264,5154,8,264,1,265,1,265,1,266,1,266,3,266,5160,8,266,1,266,1,266,3,266,5164,8,266,1,266,3,266,5167,8,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,3,266,5182,8,266,1,266,1,266,3,266,5186,8,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,3,266,5203,8,266,1,267,1,267,1,267,3,267,5208,8,267,1,268,1,268,1,268,5,268,5213,8,268,10,268,12,268,5216,9,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,3,269,5229,8,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,3,270,5242,8,270,1,271,1,271,1,271,1,271,1,271,5,271,5249,8,271,10,271,12,271,5252,9,271,1,271,1,271,1,271,3,271,5257,8,271,1,272,1,272,1,272,3,272,5262,8,272,1,273,1,273,3,273,5266,8,273,1,274,1,274,1,274,3,274,5271,8,274,1,275,1,275,1,275,1,275,1,275,3,275,5278,8,275,1,276,1,276,1,276,1,276,1,276,1,276,3,276,5286,8,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,3,276,5296,8,276,3,276,5298,8,276,1,276,1,276,1,277,1,277,1,277,3,277,5305,8,277,1,278,1,278,1,278,5,278,5310,8,278,10,278,12,278,5313,9,278,1,279,1,279,1,279,5,279,5318,8,279,10,279,12,279,5321,9,279,1,280,1,280,1,280,3,280,5326,8,280,1,280,1,280,1,280,1,280,1,280,3,280,5333,8,280,3,280,5335,8,280,1,281,1,281,1,281,5,281,5340,8,281,10,281,12,281,5343,9,281,1,282,1,282,1,282,3,282,5348,8,282,1,283,1,283,3,283,5352,8,283,1,283,1,283,1,283,1,283,3,283,5358,8,283,1,283,1,283,1,283,3,283,5363,8,283,1,284,1,284,3,284,5367,8,284,1,284,1,284,1,284,3,284,5372,8,284,1,285,1,285,1,285,1,285,3,285,5378,8,285,1,286,1,286,1,287,1,287,3,287,5384,8,287,1,287,1,287,1,287,1,287,3,287,5390,8,287,1,287,1,287,1,287,1,287,3,287,5396,8,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,3,288,5409,8,288,1,288,1,288,1,289,1,289,1,289,5,289,5416,8,289,10,289,12,289,5419,9,289,1,290,1,290,1,290,1,291,1,291,1,291,5,291,5427,8,291,10,291,12,291,5430,9,291,1,292,4,292,5433,8,292,11,292,12,292,5434,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,3,293,5474,8,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,294,3,294,5484,8,294,1,295,1,295,1,295,1,295,1,295,3,295,5491,8,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,5,296,5500,8,296,10,296,12,296,5503,9,296,1,297,1,297,1,297,3,297,5508,8,297,1,298,1,298,1,298,1,299,1,299,1,299,5,299,5516,8,299,10,299,12,299,5519,9,299,1,300,1,300,1,300,1,300,4,300,5525,8,300,11,300,12,300,5526,1,300,3,300,5530,8,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,3,301,5568,8,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,3,302,5582,8,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,3,303,5596,8,303,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,3,304,5620,8,304,1,305,1,305,1,305,5,305,5625,8,305,10,305,12,305,5628,9,305,1,305,1,305,1,306,1,306,1,306,5,306,5635,8,306,10,306,12,306,5638,9,306,1,307,1,307,1,307,1,308,1,308,1,308,1,309,4,309,5647,8,309,11,309,12,309,5648,1,310,1,310,1,310,3,310,5654,8,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,3,311,5690,8,311,1,312,1,312,1,312,1,312,1,312,3,312,5697,8,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,3,314,5712,8,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,3,316,5759,8,316,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,3,318,5775,8,318,1,318,1,318,3,318,5779,8,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,5788,8,318,1,318,1,318,3,318,5792,8,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,5800,8,318,1,318,1,318,3,318,5804,8,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,5812,8,318,1,318,1,318,3,318,5816,8,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,5824,8,318,1,318,1,318,3,318,5828,8,318,1,318,3,318,5831,8,318,1,319,1,319,1,320,1,320,1,320,5,320,5838,8,320,10,320,12,320,5841,9,320,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,3,322,5857,8,322,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,3,323,6029,8,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,3,323,6074,8,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,3,323,6165,8,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,3,323,6296,8,323,1,324,1,324,3,324,6300,8,324,1,325,1,325,1,325,3,325,6305,8,325,1,326,1,326,1,326,1,326,3,326,6311,8,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,3,326,6322,8,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,3,326,6333,8,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,3,326,6346,8,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,3,326,6358,8,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,3,326,6369,8,326,1,326,1,326,1,326,1,326,1,326,3,326,6376,8,326,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,3,327,6524,8,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,3,327,6590,8,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,5,329,6603,8,329,10,329,12,329,6606,9,329,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,3,330,6616,8,330,1,331,1,331,1,331,1,331,1,331,3,331,6623,8,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,3,333,6816,8,333,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,3,335,6826,8,335,1,336,1,336,1,336,1,336,1,336,1,336,3,336,6834,8,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,3,337,6863,8,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,5,339,6877,8,339,10,339,12,339,6880,9,339,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,3,341,6921,8,341,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,3,342,6935,8,342,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,3,344,6957,8,344,1,345,1,345,1,345,5,345,6962,8,345,10,345,12,345,6965,9,345,1,346,1,346,1,346,1,346,1,346,3,346,6972,8,346,1,347,1,347,3,347,6976,8,347,1,348,1,348,1,349,1,349,1,349,3,349,6983,8,349,1,350,1,350,1,350,1,350,1,351,1,351,1,351,3,351,6992,8,351,1,352,1,352,1,352,1,353,1,353,1,353,1,353,3,353,7001,8,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,3,354,7010,8,354,1,354,1,354,1,354,3,354,7015,8,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,3,354,7056,8,354,1,355,1,355,1,355,3,355,7061,8,355,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,3,356,7073,8,356,1,357,1,357,3,357,7077,8,357,1,357,5,357,7080,8,357,10,357,12,357,7083,9,357,1,358,1,358,3,358,7087,8,358,1,358,1,358,3,358,7091,8,358,1,359,1,359,1,359,3,359,7096,8,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,3,359,7112,8,359,1,359,1,359,1,359,1,359,1,360,1,360,3,360,7120,8,360,1,360,1,360,1,360,3,360,7125,8,360,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,1,362,1,363,4,363,7137,8,363,11,363,12,363,7138,1,363,3,363,7142,8,363,1,364,1,364,3,364,7146,8,364,1,364,1,364,1,364,3,364,7151,8,364,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,3,365,7161,8,365,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,3,366,7172,8,366,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,1,368,3,368,7183,8,368,1,368,1,368,1,368,1,368,1,368,1,368,5,368,7191,8,368,10,368,12,368,7194,9,368,1,368,1,368,3,368,7198,8,368,1,369,1,369,1,369,1,369,1,369,1,369,1,370,1,370,1,370,1,370,1,370,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,372,1,372,1,372,1,372,1,372,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,3,373,7236,8,373,1,373,1,373,1,373,1,373,1,373,1,373,3,373,7244,8,373,1,374,1,374,3,374,7248,8,374,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,3,376,7329,8,376,1,377,1,377,3,377,7333,8,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,3,378,7357,8,378,1,379,1,379,1,379,3,379,7362,8,379,1,380,1,380,3,380,7366,8,380,1,380,3,380,7369,8,380,1,380,1,380,3,380,7373,8,380,1,380,1,380,1,380,1,380,1,380,1,380,1,380,1,380,3,380,7383,8,380,1,381,1,381,1,381,1,381,1,381,1,381,1,381,1,381,1,381,1,381,3,381,7395,8,381,1,382,1,382,1,382,5,382,7400,8,382,10,382,12,382,7403,9,382,1,383,1,383,1,384,1,384,1,384,1,385,1,385,3,385,7412,8,385,1,386,1,386,1,386,3,386,7417,8,386,1,387,1,387,3,387,7421,8,387,1,388,1,388,1,388,1,388,1,388,3,388,7428,8,388,1,389,1,389,1,389,1,390,1,390,1,390,5,390,7436,8,390,10,390,12,390,7439,9,390,1,390,3,390,7442,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,5,391,7459,8,391,10,391,12,391,7462,9,391,1,391,1,391,1,391,3,391,7467,8,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,3,392,7478,8,392,1,393,1,393,1,393,1,394,1,394,3,394,7485,8,394,1,395,1,395,1,395,3,395,7490,8,395,1,396,1,396,1,396,1,396,1,396,1,396,1,397,1,397,1,397,1,397,1,397,3,397,7503,8,397,1,398,1,398,1,398,1,398,3,398,7509,8,398,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,3,399,7538,8,399,1,400,1,400,1,400,1,400,1,400,3,400,7545,8,400,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,3,401,7557,8,401,1,402,3,402,7560,8,402,1,402,1,402,1,402,1,402,1,402,1,402,1,402,1,403,1,403,1,403,3,403,7572,8,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,3,404,7587,8,404,1,404,1,404,1,404,1,404,3,404,7593,8,404,1,405,1,405,1,406,1,406,1,406,5,406,7600,8,406,10,406,12,406,7603,9,406,1,407,1,407,1,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,408,3,408,7618,8,408,1,408,3,408,7621,8,408,1,409,1,409,1,409,1,409,1,409,1,409,1,409,1,409,1,409,3,409,7632,8,409,1,410,1,410,1,410,3,410,7637,8,410,1,411,1,411,3,411,7641,8,411,1,411,1,411,3,411,7645,8,411,1,411,1,411,1,411,3,411,7650,8,411,1,411,3,411,7653,8,411,1,411,1,411,1,411,1,411,3,411,7659,8,411,1,411,1,411,3,411,7663,8,411,3,411,7665,8,411,1,411,3,411,7668,8,411,1,412,1,412,1,412,1,412,1,412,3,412,7675,8,412,1,412,3,412,7678,8,412,1,412,1,412,1,412,1,412,1,412,3,412,7685,8,412,1,412,1,412,1,413,1,413,1,413,1,413,3,413,7693,8,413,1,413,3,413,7696,8,413,1,413,1,413,1,413,1,413,1,414,1,414,1,414,3,414,7705,8,414,1,414,1,414,1,415,3,415,7710,8,415,1,415,1,415,1,415,1,415,1,415,1,415,1,415,1,416,1,416,1,416,3,416,7722,8,416,1,417,1,417,1,417,1,417,1,417,1,417,1,418,1,418,1,418,1,418,1,418,3,418,7735,8,418,1,419,1,419,1,419,1,419,1,419,1,419,1,419,1,419,1,419,3,419,7746,8,419,1,419,3,419,7749,8,419,1,420,1,420,3,420,7753,8,420,1,421,1,421,1,421,1,421,3,421,7759,8,421,1,422,3,422,7762,8,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,423,1,423,1,423,5,423,7775,8,423,10,423,12,423,7778,9,423,1,424,1,424,1,424,1,424,1,424,1,424,1,424,1,424,5,424,7788,8,424,10,424,12,424,7791,9,424,1,424,1,424,1,424,1,424,3,424,7797,8,424,1,425,1,425,1,425,1,426,1,426,1,426,1,426,1,426,1,426,1,426,5,426,7809,8,426,10,426,12,426,7812,9,426,1,426,1,426,1,426,1,426,1,426,1,427,1,427,1,428,1,428,1,428,1,428,1,428,3,428,7826,8,428,1,429,1,429,3,429,7830,8,429,1,430,1,430,1,430,1,430,1,430,1,430,1,430,1,430,3,430,7840,8,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,7849,8,431,3,431,7851,8,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,7861,8,431,3,431,7863,8,431,3,431,7865,8,431,1,432,1,432,1,432,1,432,1,432,5,432,7872,8,432,10,432,12,432,7875,9,432,1,433,1,433,1,433,1,433,1,433,5,433,7882,8,433,10,433,12,433,7885,9,433,1,434,1,434,3,434,7889,8,434,1,434,1,434,1,434,3,434,7894,8,434,1,434,1,434,1,434,3,434,7899,8,434,1,434,3,434,7902,8,434,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,1,435,3,435,7916,8,435,1,436,1,436,3,436,7920,8,436,1,436,1,436,1,436,5,436,7925,8,436,10,436,12,436,7928,9,436,1,437,1,437,1,437,1,437,1,437,1,437,1,437,1,437,1,438,1,438,1,438,1,438,3,438,7942,8,438,1,439,1,439,3,439,7946,8,439,1,439,1,439,3,439,7950,8,439,1,440,3,440,7953,8,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,3,440,7966,8,440,1,441,1,441,3,441,7970,8,441,1,442,1,442,1,442,3,442,7975,8,442,1,443,1,443,1,443,1,443,1,443,1,443,3,443,7983,8,443,1,444,1,444,1,445,1,445,3,445,7989,8,445,1,446,1,446,1,446,1,446,1,447,1,447,1,447,5,447,7998,8,447,10,447,12,447,8001,9,447,1,448,1,448,1,448,1,448,3,448,8007,8,448,1,448,1,448,1,449,1,449,3,449,8013,8,449,1,449,1,449,3,449,8017,8,449,3,449,8019,8,449,1,450,1,450,3,450,8023,8,450,1,451,1,451,1,451,1,451,3,451,8029,8,451,1,451,1,451,1,451,1,451,1,451,1,451,1,451,3,451,8038,8,451,1,451,1,451,1,451,1,451,3,451,8044,8,451,3,451,8046,8,451,3,451,8048,8,451,1,452,1,452,1,452,1,452,1,452,3,452,8055,8,452,1,453,1,453,3,453,8059,8,453,1,454,1,454,1,455,1,455,1,455,1,455,1,455,3,455,8068,8,455,1,456,1,456,3,456,8072,8,456,1,457,1,457,1,458,1,458,1,459,1,459,1,459,1,459,3,459,8082,8,459,1,460,1,460,1,460,5,460,8087,8,460,10,460,12,460,8090,9,460,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,3,461,8111,8,461,1,462,1,462,1,462,3,462,8116,8,462,1,463,4,463,8119,8,463,11,463,12,463,8120,1,463,1,463,1,463,3,463,8126,8,463,1,464,1,464,1,464,1,464,1,465,1,465,1,465,3,465,8135,8,465,1,465,1,465,3,465,8139,8,465,1,465,3,465,8142,8,465,1,466,1,466,1,466,3,466,8147,8,466,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,467,5,467,8158,8,467,10,467,12,467,8161,9,467,1,468,1,468,1,468,3,468,8166,8,468,1,469,1,469,1,469,1,469,5,469,8172,8,469,10,469,12,469,8175,9,469,3,469,8177,8,469,1,470,1,470,1,470,4,470,8182,8,470,11,470,12,470,8183,1,471,1,471,1,471,3,471,8189,8,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,3,471,8210,8,471,1,471,1,471,1,471,1,471,1,471,1,471,1,471,3,471,8219,8,471,1,471,1,471,1,471,3,471,8224,8,471,1,471,1,471,1,471,1,471,3,471,8230,8,471,1,471,1,471,1,471,3,471,8235,8,471,1,471,1,471,1,471,1,471,1,471,3,471,8242,8,471,1,471,1,471,1,471,3,471,8247,8,471,1,471,1,471,1,471,1,471,5,471,8253,8,471,10,471,12,471,8256,9,471,1,472,3,472,8259,8,472,1,472,1,472,1,472,1,472,1,472,3,472,8266,8,472,1,473,1,473,3,473,8270,8,473,1,474,3,474,8273,8,474,1,474,1,474,1,474,1,474,1,474,3,474,8280,8,474,1,475,1,475,1,475,3,475,8285,8,475,1,475,3,475,8288,8,475,1,475,1,475,1,475,1,475,1,475,3,475,8295,8,475,1,476,1,476,3,476,8299,8,476,1,477,1,477,1,477,1,477,1,477,1,477,1,477,3,477,8308,8,477,1,478,1,478,1,479,1,479,3,479,8314,8,479,1,479,1,479,1,479,1,479,1,479,1,479,3,479,8322,8,479,3,479,8324,8,479,1,480,1,480,1,480,5,480,8329,8,480,10,480,12,480,8332,9,480,1,481,1,481,3,481,8336,8,481,1,481,3,481,8339,8,481,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,5,483,8360,8,483,10,483,12,483,8363,9,483,1,483,1,483,1,483,3,483,8368,8,483,1,484,1,484,1,484,1,485,1,485,1,485,1,485,1,485,1,485,3,485,8379,8,485,1,486,1,486,1,486,3,486,8384,8,486,1,487,1,487,1,487,3,487,8389,8,487,1,488,1,488,1,488,1,488,1,488,3,488,8396,8,488,1,488,3,488,8399,8,488,1,489,1,489,3,489,8403,8,489,1,490,1,490,1,490,5,490,8408,8,490,10,490,12,490,8411,9,490,1,491,1,491,1,491,1,491,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,5,492,8425,8,492,10,492,12,492,8428,9,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,5,492,8441,8,492,10,492,12,492,8444,9,492,3,492,8446,8,492,1,492,1,492,1,493,1,493,1,493,3,493,8453,8,493,1,493,1,493,3,493,8457,8,493,1,494,4,494,8460,8,494,11,494,12,494,8461,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,3,495,8472,8,495,1,496,1,496,1,496,5,496,8477,8,496,10,496,12,496,8480,9,496,1,497,1,497,1,497,1,497,1,497,1,497,3,497,8488,8,497,1,498,3,498,8491,8,498,1,498,1,498,1,498,3,498,8496,8,498,1,498,5,498,8499,8,498,10,498,12,498,8502,9,498,1,498,1,498,1,498,1,498,1,498,3,498,8509,8,498,3,498,8511,8,498,1,498,1,498,1,498,1,498,3,498,8517,8,498,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,499,3,499,8530,8,499,3,499,8532,8,499,1,500,1,500,1,500,1,500,3,500,8538,8,500,1,501,1,501,1,501,1,501,3,501,8544,8,501,1,501,3,501,8547,8,501,1,501,1,501,1,502,1,502,1,502,1,502,1,502,3,502,8556,8,502,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,503,3,503,8574,8,503,1,504,1,504,1,504,1,504,1,504,3,504,8581,8,504,1,505,1,505,3,505,8585,8,505,1,506,1,506,3,506,8589,8,506,1,507,1,507,1,507,1,507,1,507,1,507,1,508,1,508,1,508,1,509,1,509,1,509,1,509,1,509,3,509,8605,8,509,1,510,1,510,1,510,1,510,1,510,3,510,8612,8,510,1,511,1,511,1,511,1,511,1,511,1,511,3,511,8620,8,511,1,512,1,512,3,512,8624,8,512,1,513,1,513,1,513,1,513,1,513,3,513,8631,8,513,1,513,1,513,1,514,1,514,1,515,1,515,1,515,1,515,1,515,1,515,1,515,3,515,8644,8,515,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,1,516,3,516,8660,8,516,1,516,1,516,1,516,1,516,3,516,8666,8,516,1,516,1,516,1,516,1,516,3,516,8672,8,516,1,517,1,517,1,517,1,517,1,517,3,517,8679,8,517,1,518,1,518,1,518,3,518,8684,8,518,1,519,1,519,1,520,1,520,3,520,8690,8,520,1,521,1,521,1,521,5,521,8695,8,521,10,521,12,521,8698,9,521,1,522,1,522,1,522,5,522,8703,8,522,10,522,12,522,8706,9,522,1,523,1,523,1,523,5,523,8711,8,523,10,523,12,523,8714,9,523,1,524,1,524,3,524,8718,8,524,1,524,1,524,3,524,8722,8,524,1,524,1,524,1,524,1,524,3,524,8728,8,524,1,525,1,525,3,525,8732,8,525,1,525,1,525,3,525,8736,8,525,1,526,3,526,8739,8,526,1,526,1,526,1,527,1,527,3,527,8745,8,527,1,528,1,528,1,528,3,528,8750,8,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,1,528,3,528,8766,8,528,1,528,3,528,8769,8,528,3,528,8771,8,528,1,529,1,529,1,529,1,529,1,529,1,529,1,529,1,529,1,529,1,529,3,529,8783,8,529,3,529,8785,8,529,1,530,1,530,3,530,8789,8,530,1,530,1,530,1,530,1,530,3,530,8795,8,530,1,530,1,530,1,530,3,530,8800,8,530,1,531,1,531,1,531,1,531,5,531,8806,8,531,10,531,12,531,8809,9,531,1,532,3,532,8812,8,532,1,532,1,532,1,533,1,533,1,533,5,533,8819,8,533,10,533,12,533,8822,9,533,1,534,1,534,1,534,5,534,8827,8,534,10,534,12,534,8830,9,534,1,535,1,535,1,535,3,535,8835,8,535,1,536,3,536,8838,8,536,1,536,1,536,1,537,1,537,1,537,1,537,1,537,3,537,8847,8,537,1,538,1,538,1,538,3,538,8852,8,538,1,539,1,539,1,539,5,539,8857,8,539,10,539,12,539,8860,9,539,1,540,1,540,1,540,1,540,1,540,1,540,1,540,3,540,8869,8,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,3,540,8895,8,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,3,540,8906,8,540,5,540,8908,8,540,10,540,12,540,8911,9,540,1,541,1,541,1,541,1,541,1,541,3,541,8918,8,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,1,541,3,541,8941,8,541,1,541,1,541,1,541,1,541,1,541,1,541,3,541,8949,8,541,1,542,1,542,1,543,1,543,1,543,1,543,1,543,1,543,3,543,8959,8,543,1,543,1,543,1,543,1,543,1,543,1,543,1,543,1,543,1,543,1,543,1,543,1,543,3,543,8973,8,543,1,543,1,543,1,544,1,544,1,544,1,544,1,544,1,544,3,544,8983,8,544,1,545,1,545,3,545,8987,8,545,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,3,546,9001,8,546,1,546,1,546,1,546,1,546,1,546,3,546,9008,8,546,1,546,1,546,1,546,1,546,1,546,3,546,9015,8,546,1,546,1,546,1,546,1,546,1,546,3,546,9022,8,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,3,546,9047,8,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,3,546,9076,8,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,3,546,9115,8,546,3,546,9117,8,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,3,546,9145,8,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,546,3,546,9166,8,546,1,547,1,547,1,547,1,547,1,547,3,547,9173,8,547,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,3,548,9186,8,548,1,549,1,549,1,549,1,549,1,549,1,550,1,550,1,550,5,550,9196,8,550,10,550,12,550,9199,9,550,1,551,1,551,1,551,3,551,9204,8,551,1,552,1,552,1,553,1,553,1,553,1,553,1,553,3,553,9213,8,553,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,3,554,9230,8,554,1,555,1,555,1,555,1,556,1,556,1,556,1,556,1,556,1,556,1,556,3,556,9242,8,556,1,557,1,557,1,557,1,557,1,557,1,557,1,557,3,557,9251,8,557,1,558,1,558,1,558,3,558,9256,8,558,1,559,1,559,1,559,5,559,9261,8,559,10,559,12,559,9264,9,559,1,560,1,560,1,560,1,560,1,561,1,561,1,561,3,561,9273,8,561,1,561,3,561,9276,8,561,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,563,1,563,3,563,9287,8,563,1,564,1,564,1,564,1,564,3,564,9293,8,564,1,565,1,565,1,565,1,565,1,565,1,565,1,565,1,565,1,565,1,565,1,565,1,565,1,565,3,565,9308,8,565,1,566,1,566,1,566,1,566,1,566,1,566,3,566,9316,8,566,1,567,1,567,1,567,1,567,1,567,1,567,1,567,3,567,9325,8,567,1,568,1,568,1,568,1,568,1,568,1,568,1,568,3,568,9334,8,568,1,568,3,568,9337,8,568,1,569,1,569,1,569,3,569,9342,8,569,1,569,1,569,1,569,1,569,1,569,1,569,1,569,3,569,9351,8,569,1,570,1,570,1,570,3,570,9356,8,570,1,570,1,570,1,571,1,571,1,571,1,571,1,571,1,571,1,572,1,572,1,573,1,573,3,573,9370,8,573,1,574,1,574,1,575,1,575,1,575,1,575,1,575,1,575,3,575,9380,8,575,1,576,1,576,1,576,1,576,1,576,1,576,3,576,9388,8,576,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,577,3,577,9402,8,577,1,578,1,578,1,578,5,578,9407,8,578,10,578,12,578,9410,9,578,1,579,1,579,1,579,5,579,9415,8,579,10,579,12,579,9418,9,579,1,580,1,580,1,580,1,580,1,580,3,580,9425,8,580,1,581,1,581,1,581,5,581,9430,8,581,10,581,12,581,9433,9,581,1,582,1,582,1,582,3,582,9438,8,582,1,582,1,582,1,583,1,583,1,583,5,583,9445,8,583,10,583,12,583,9448,9,583,1,584,1,584,1,584,1,584,1,584,3,584,9455,8,584,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,3,585,9465,8,585,1,586,1,586,1,587,1,587,1,587,1,587,1,587,1,587,1,587,3,587,9476,8,587,1,588,1,588,1,588,1,588,1,588,3,588,9483,8,588,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,3,589,9512,8,589,1,590,1,590,1,590,1,590,1,590,1,590,1,590,3,590,9521,8,590,1,591,1,591,1,591,1,591,1,591,3,591,9528,8,591,1,592,1,592,1,592,1,592,1,592,1,592,1,593,4,593,9537,8,593,11,593,12,593,9538,1,594,1,594,1,594,1,594,1,594,1,595,1,595,1,595,3,595,9549,8,595,1,596,1,596,3,596,9553,8,596,1,597,1,597,3,597,9557,8,597,1,598,1,598,1,598,3,598,9562,8,598,1,598,1,598,1,598,3,598,9567,8,598,1,598,1,598,3,598,9571,8,598,3,598,9573,8,598,1,598,3,598,9576,8,598,1,599,4,599,9579,8,599,11,599,12,599,9580,1,600,5,600,9584,8,600,10,600,12,600,9587,9,600,1,601,1,601,3,601,9591,8,601,1,602,1,602,1,602,5,602,9596,8,602,10,602,12,602,9599,9,602,1,603,1,603,1,603,1,603,1,603,1,603,3,603,9607,8,603,3,603,9609,8,603,1,604,1,604,1,604,5,604,9614,8,604,10,604,12,604,9617,9,604,1,605,1,605,1,606,1,606,1,606,5,606,9624,8,606,10,606,12,606,9627,9,606,1,607,1,607,1,608,1,608,1,608,5,608,9634,8,608,10,608,12,608,9637,9,608,1,609,1,609,1,610,1,610,1,610,5,610,9644,8,610,10,610,12,610,9647,9,610,1,611,1,611,1,612,1,612,1,613,1,613,1,614,1,614,1,614,5,614,9658,8,614,10,614,12,614,9661,9,614,1,615,1,615,3,615,9665,8,615,1,616,1,616,1,616,5,616,9670,8,616,10,616,12,616,9673,9,616,1,617,1,617,1,618,1,618,1,619,1,619,1,620,1,620,1,620,1,620,1,620,1,620,1,620,3,620,9688,8,620,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,3,621,9703,8,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,3,621,9717,8,621,1,621,1,621,1,621,3,621,9722,8,621,1,622,1,622,1,623,1,623,1,624,1,624,1,625,1,625,1,626,1,626,1,626,1,627,1,627,1,627,1,627,5,627,9739,8,627,10,627,12,627,9742,9,627,1,627,1,627,3,627,9746,8,627,1,628,1,628,1,628,3,628,9751,8,628,1,629,1,629,1,629,1,629,1,629,3,629,9758,8,629,1,630,1,630,1,630,3,630,9763,8,630,1,631,1,631,1,631,5,631,9768,8,631,10,631,12,631,9771,9,631,1,632,1,632,1,632,1,632,1,632,1,632,3,632,9779,8,632,1,633,1,633,1,633,1,633,3,633,9785,8,633,1,634,1,634,1,634,1,634,3,634,9791,8,634,1,635,1,635,1,635,1,635,3,635,9797,8,635,1,636,1,636,1,636,1,636,1,636,1,636,3,636,9805,8,636,1,637,1,637,1,637,1,637,1,637,1,637,1,637,3,637,9814,8,637,1,638,1,638,1,639,1,639,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,3,640,9872,8,640,1,641,1,641,1,642,1,642,1,643,1,643,1,644,1,644,1,644,1,644,1,645,5,645,9885,8,645,10,645,12,645,9888,9,645,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,3,646,9910,8,646,1,647,1,647,1,648,1,648,1,648,1,648,3,648,9918,8,648,1,649,1,649,3,649,9922,8,649,1,650,1,650,1,650,1,650,1,650,1,650,1,650,1,651,1,651,1,651,3,651,9934,8,651,3,651,9936,8,651,1,652,1,652,1,653,4,653,9941,8,653,11,653,12,653,9942,1,654,1,654,1,654,1,654,1,655,1,655,1,655,3,655,9952,8,655,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,3,656,9970,8,656,1,656,1,656,1,657,1,657,1,657,1,657,3,657,9978,8,657,1,658,1,658,1,659,1,659,1,659,1,659,1,659,3,659,9987,8,659,1,660,1,660,1,660,5,660,9992,8,660,10,660,12,660,9995,9,660,1,661,1,661,1,661,1,662,1,662,1,663,1,663,3,663,10004,8,663,1,664,1,664,1,665,1,665,3,665,10010,8,665,1,666,1,666,1,667,1,667,1,667,3,667,10017,8,667,1,668,1,668,1,668,3,668,10022,8,668,1,669,1,669,1,669,1,669,3,669,10028,8,669,1,670,1,670,3,670,10032,8,670,1,671,1,671,1,672,5,672,10037,8,672,10,672,12,672,10040,9,672,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,1,673,3,673,10069,8,673,1,674,1,674,1,674,1,674,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,675,3,675,10089,8,675,1,676,1,676,3,676,10093,8,676,1,677,1,677,1,677,1,677,1,677,1,678,1,678,1,678,1,678,1,678,1,678,1,679,1,679,1,679,3,679,10109,8,679,1,680,1,680,1,680,5,680,10114,8,680,10,680,12,680,10117,9,680,1,681,1,681,1,681,1,681,1,682,1,682,1,683,1,683,1,684,1,684,3,684,10129,8,684,1,684,1,684,1,684,1,684,5,684,10135,8,684,10,684,12,684,10138,9,684,1,685,1,685,1,685,1,685,1,685,1,685,1,685,1,685,1,685,1,685,1,686,1,686,1,686,1,686,1,686,5,686,10155,8,686,10,686,12,686,10158,9,686,1,687,1,687,1,687,3,687,10163,8,687,1,688,1,688,1,688,1,688,1,688,1,688,1,688,1,688,1,689,1,689,3,689,10175,8,689,1,690,4,690,10178,8,690,11,690,12,690,10179,1,691,1,691,1,691,1,691,1,691,1,692,1,692,1,692,3,692,10190,8,692,1,693,1,693,1,693,1,694,1,694,1,694,1,694,1,694,1,695,1,695,1,695,1,695,1,695,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,1,696,3,696,10222,8,696,1,697,1,697,1,697,3,697,10227,8,697,1,698,1,698,1,698,1,698,1,698,5,698,10234,8,698,10,698,12,698,10237,9,698,1,698,1,698,3,698,10241,8,698,1,699,1,699,3,699,10245,8,699,1,700,1,700,1,700,3,700,10250,8,700,1,701,1,701,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,703,1,703,1,703,3,703,10266,8,703,1,704,1,704,1,704,1,704,1,704,1,705,1,705,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,3,706,10284,8,706,1,706,3,706,10287,8,706,1,706,1,706,1,707,1,707,3,707,10293,8,707,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,1,708,3,708,10321,8,708,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,3,709,10331,8,709,1,710,1,710,1,710,4,710,10336,8,710,11,710,12,710,10337,3,710,10340,8,710,1,711,1,711,1,711,1,711,1,711,5,711,10347,8,711,10,711,12,711,10350,9,711,3,711,10352,8,711,1,712,1,712,1,712,1,712,1,713,1,713,1,713,1,713,1,713,1,714,1,714,1,714,3,714,10366,8,714,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,716,1,716,1,716,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,3,717,10387,8,717,1,717,1,717,1,718,1,718,1,718,3,718,10394,8,718,1,719,1,719,1,719,5,719,10399,8,719,10,719,12,719,10402,9,719,1,720,1,720,1,720,3,720,10407,8,720,1,720,3,720,10410,8,720,1,721,1,721,1,721,3,721,10415,8,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,3,721,10425,8,721,1,721,1,721,1,721,1,721,1,721,5,721,10432,8,721,10,721,12,721,10435,9,721,1,721,1,721,3,721,10439,8,721,3,721,10441,8,721,1,721,1,721,1,722,1,722,1,722,1,722,1,722,3,722,10450,8,722,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,724,1,724,1,725,1,725,1,725,3,725,10465,8,725,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,726,3,726,10482,8,726,3,726,10484,8,726,1,727,1,727,1,727,1,727,1,727,1,728,1,728,1,728,1,728,1,729,1,729,1,729,1,730,1,730,1,730,1,730,1,731,1,731,1,731,1,731,1,732,1,732,3,732,10508,8,732,1,732,1,732,3,732,10512,8,732,1,733,1,733,1,733,1,733,1,733,1,733,1,733,1,733,1,733,3,733,10523,8,733,1,733,3,733,10526,8,733,1,734,1,734,3,734,10530,8,734,1,735,1,735,1,735,3,735,10535,8,735,1,736,4,736,10538,8,736,11,736,12,736,10539,1,737,1,737,1,737,1,737,1,737,1,738,1,738,1,738,5,738,10550,8,738,10,738,12,738,10553,9,738,1,739,1,739,1,739,3,739,10558,8,739,1,740,1,740,3,740,10562,8,740,1,741,1,741,3,741,10566,8,741,1,742,1,742,3,742,10570,8,742,1,743,1,743,1,743,3,743,10575,8,743,1,744,1,744,3,744,10579,8,744,1,745,1,745,1,746,1,746,3,746,10585,8,746,1,746,1,746,1,746,1,746,1,746,1,746,1,747,1,747,1,748,1,748,1,749,1,749,1,750,1,750,1,751,1,751,1,751,1,752,1,752,3,752,10606,8,752,1,752,1,752,3,752,10610,8,752,1,753,1,753,1,753,0,1,1080,754,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,928,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,964,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1008,1010,1012,1014,1016,1018,1020,1022,1024,1026,1028,1030,1032,1034,1036,1038,1040,1042,1044,1046,1048,1050,1052,1054,1056,1058,1060,1062,1064,1066,1068,1070,1072,1074,1076,1078,1080,1082,1084,1086,1088,1090,1092,1094,1096,1098,1100,1102,1104,1106,1108,1110,1112,1114,1116,1118,1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1154,1156,1158,1160,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,1216,1218,1220,1222,1224,1226,1228,1230,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,1328,1330,1332,1334,1336,1338,1340,1342,1344,1346,1348,1350,1352,1354,1356,1358,1360,1362,1364,1366,1368,1370,1372,1374,1376,1378,1380,1382,1384,1386,1388,1390,1392,1394,1396,1398,1400,1402,1404,1406,1408,1410,1412,1414,1416,1418,1420,1422,1424,1426,1428,1430,1432,1434,1436,1438,1440,1442,1444,1446,1448,1450,1452,1454,1456,1458,1460,1462,1464,1466,1468,1470,1472,1474,1476,1478,1480,1482,1484,1486,1488,1490,1492,1494,1496,1498,1500,1502,1504,1506,0,69,2,0,195,195,357,357,2,0,133,133,191,191,2,0,245,245,325,325,2,0,10,10,94,94,2,0,162,162,356,356,2,0,180,180,221,221,5,0,30,30,281,281,322,322,345,345,347,347,2,0,139,139,305,305,2,0,30,30,99,99,2,0,64,64,94,94,2,0,345,345,347,347,2,0,200,200,224,224,9,0,30,30,160,160,165,165,179,179,219,219,227,227,335,335,338,338,438,438,3,0,113,113,277,277,329,329,2,0,53,53,78,78,3,0,173,173,252,252,255,255,5,0,30,30,88,88,182,182,232,232,362,362,2,0,92,92,226,226,1,0,448,449,2,0,92,92,407,407,2,0,334,334,407,407,2,0,211,211,289,289,2,0,314,314,445,445,2,0,64,64,68,68,5,0,212,212,322,322,343,343,455,455,457,457,5,0,212,212,322,322,343,343,354,354,455,456,2,0,10,10,53,53,3,0,211,211,289,289,442,442,2,0,92,92,342,342,3,0,109,109,128,128,344,344,4,0,88,88,182,182,232,232,362,362,2,0,151,151,245,245,2,0,306,306,326,326,1,0,31,32,2,0,99,99,342,342,2,0,201,201,327,327,2,0,59,59,97,97,2,0,213,213,245,245,2,0,313,313,407,407,2,0,207,207,261,261,4,0,113,113,115,115,119,119,126,126,2,0,353,353,477,477,2,0,384,385,399,399,1,0,384,385,1,0,411,412,1,0,18,19,2,0,117,117,122,122,5,0,10,10,16,17,21,21,23,23,25,25,1,0,12,13,3,0,9,9,14,14,27,27,2,0,30,30,56,56,3,0,39,39,73,73,95,95,2,0,166,166,188,188,2,0,297,297,450,450,2,0,208,208,282,282,3,0,30,30,34,34,90,90,6,0,9,10,12,17,21,21,23,23,25,25,27,27,2,0,20,20,22,22,1,0,483,486,11,0,124,124,129,249,251,252,254,303,305,379,433,452,455,469,471,471,473,473,475,475,478,488,5,0,106,118,120,123,125,125,127,128,472,472,4,0,30,52,54,70,72,105,454,454,5,0,304,304,418,424,504,504,513,513,521,635,2,0,62,62,116,116,2,0,10,10,20,20,2,0,167,167,507,507,2,0,144,144,210,210,36,0,33,33,35,35,43,45,53,53,57,57,61,61,92,92,116,116,123,123,130,130,144,144,153,153,157,157,161,161,167,167,172,172,207,207,210,210,232,232,240,240,258,258,261,262,272,272,286,286,300,300,306,306,312,312,316,317,326,326,353,353,433,434,477,477,490,502,506,512,514,518,520,520,3,0,66,66,99,99,311,311,11574,0,1509,1,0,0,0,2,1513,1,0,0,0,4,1523,1,0,0,0,6,1647,1,0,0,0,8,1649,1,0,0,0,10,1653,1,0,0,0,12,1658,1,0,0,0,14,1663,1,0,0,0,16,1669,1,0,0,0,18,1691,1,0,0,0,20,1704,1,0,0,0,22,1706,1,0,0,0,24,1712,1,0,0,0,26,1722,1,0,0,0,28,1724,1,0,0,0,30,1733,1,0,0,0,32,1741,1,0,0,0,34,1743,1,0,0,0,36,1761,1,0,0,0,38,1766,1,0,0,0,40,1775,1,0,0,0,42,1777,1,0,0,0,44,1791,1,0,0,0,46,1793,1,0,0,0,48,1823,1,0,0,0,50,1825,1,0,0,0,52,1833,1,0,0,0,54,1843,1,0,0,0,56,1850,1,0,0,0,58,1856,1,0,0,0,60,1873,1,0,0,0,62,1878,1,0,0,0,64,1882,1,0,0,0,66,1884,1,0,0,0,68,1895,1,0,0,0,70,1899,1,0,0,0,72,1904,1,0,0,0,74,1909,1,0,0,0,76,1911,1,0,0,0,78,1923,1,0,0,0,80,1930,1,0,0,0,82,1932,1,0,0,0,84,1934,1,0,0,0,86,1936,1,0,0,0,88,2039,1,0,0,0,90,2041,1,0,0,0,92,2057,1,0,0,0,94,2059,1,0,0,0,96,2304,1,0,0,0,98,2311,1,0,0,0,100,2316,1,0,0,0,102,2321,1,0,0,0,104,2326,1,0,0,0,106,2334,1,0,0,0,108,2336,1,0,0,0,110,2343,1,0,0,0,112,2345,1,0,0,0,114,2353,1,0,0,0,116,2365,1,0,0,0,118,2381,1,0,0,0,120,2409,1,0,0,0,122,2411,1,0,0,0,124,2414,1,0,0,0,126,2422,1,0,0,0,128,2427,1,0,0,0,130,2458,1,0,0,0,132,2460,1,0,0,0,134,2493,1,0,0,0,136,2495,1,0,0,0,138,2500,1,0,0,0,140,2512,1,0,0,0,142,2549,1,0,0,0,144,2557,1,0,0,0,146,2559,1,0,0,0,148,2567,1,0,0,0,150,2585,1,0,0,0,152,2587,1,0,0,0,154,2636,1,0,0,0,156,2640,1,0,0,0,158,2647,1,0,0,0,160,2649,1,0,0,0,162,2657,1,0,0,0,164,2668,1,0,0,0,166,2672,1,0,0,0,168,2674,1,0,0,0,170,2679,1,0,0,0,172,2689,1,0,0,0,174,2700,1,0,0,0,176,2742,1,0,0,0,178,2747,1,0,0,0,180,2754,1,0,0,0,182,2756,1,0,0,0,184,2764,1,0,0,0,186,2767,1,0,0,0,188,2774,1,0,0,0,190,2834,1,0,0,0,192,2841,1,0,0,0,194,2843,1,0,0,0,196,2851,1,0,0,0,198,2859,1,0,0,0,200,2864,1,0,0,0,202,2866,1,0,0,0,204,2874,1,0,0,0,206,2890,1,0,0,0,208,2901,1,0,0,0,210,2903,1,0,0,0,212,2907,1,0,0,0,214,2917,1,0,0,0,216,2925,1,0,0,0,218,2929,1,0,0,0,220,2931,1,0,0,0,222,2938,1,0,0,0,224,2960,1,0,0,0,226,2965,1,0,0,0,228,2972,1,0,0,0,230,2984,1,0,0,0,232,2989,1,0,0,0,234,2996,1,0,0,0,236,2998,1,0,0,0,238,3002,1,0,0,0,240,3016,1,0,0,0,242,3027,1,0,0,0,244,3040,1,0,0,0,246,3054,1,0,0,0,248,3056,1,0,0,0,250,3072,1,0,0,0,252,3078,1,0,0,0,254,3087,1,0,0,0,256,3099,1,0,0,0,258,3113,1,0,0,0,260,3116,1,0,0,0,262,3151,1,0,0,0,264,3159,1,0,0,0,266,3161,1,0,0,0,268,3169,1,0,0,0,270,3185,1,0,0,0,272,3192,1,0,0,0,274,3198,1,0,0,0,276,3202,1,0,0,0,278,3204,1,0,0,0,280,3215,1,0,0,0,282,3217,1,0,0,0,284,3225,1,0,0,0,286,3247,1,0,0,0,288,3249,1,0,0,0,290,3259,1,0,0,0,292,3401,1,0,0,0,294,3403,1,0,0,0,296,3421,1,0,0,0,298,3424,1,0,0,0,300,3445,1,0,0,0,302,3453,1,0,0,0,304,3455,1,0,0,0,306,3463,1,0,0,0,308,3468,1,0,0,0,310,3483,1,0,0,0,312,3485,1,0,0,0,314,3488,1,0,0,0,316,3490,1,0,0,0,318,3521,1,0,0,0,320,3526,1,0,0,0,322,3528,1,0,0,0,324,3533,1,0,0,0,326,3599,1,0,0,0,328,3601,1,0,0,0,330,3616,1,0,0,0,332,3624,1,0,0,0,334,3647,1,0,0,0,336,3651,1,0,0,0,338,3671,1,0,0,0,340,3673,1,0,0,0,342,3682,1,0,0,0,344,3693,1,0,0,0,346,3708,1,0,0,0,348,3717,1,0,0,0,350,3722,1,0,0,0,352,3727,1,0,0,0,354,3732,1,0,0,0,356,3734,1,0,0,0,358,3736,1,0,0,0,360,3745,1,0,0,0,362,3785,1,0,0,0,364,3791,1,0,0,0,366,3793,1,0,0,0,368,3808,1,0,0,0,370,3813,1,0,0,0,372,3816,1,0,0,0,374,3820,1,0,0,0,376,3825,1,0,0,0,378,3827,1,0,0,0,380,3829,1,0,0,0,382,3837,1,0,0,0,384,3839,1,0,0,0,386,3847,1,0,0,0,388,3849,1,0,0,0,390,3853,1,0,0,0,392,3866,1,0,0,0,394,3871,1,0,0,0,396,3876,1,0,0,0,398,3890,1,0,0,0,400,3918,1,0,0,0,402,3920,1,0,0,0,404,3928,1,0,0,0,406,3934,1,0,0,0,408,3942,1,0,0,0,410,3954,1,0,0,0,412,3956,1,0,0,0,414,4073,1,0,0,0,416,4075,1,0,0,0,418,4086,1,0,0,0,420,4097,1,0,0,0,422,4099,1,0,0,0,424,4110,1,0,0,0,426,4114,1,0,0,0,428,4159,1,0,0,0,430,4165,1,0,0,0,432,4167,1,0,0,0,434,4183,1,0,0,0,436,4218,1,0,0,0,438,4223,1,0,0,0,440,4232,1,0,0,0,442,4234,1,0,0,0,444,4259,1,0,0,0,446,4261,1,0,0,0,448,4281,1,0,0,0,450,4301,1,0,0,0,452,4321,1,0,0,0,454,4323,1,0,0,0,456,4329,1,0,0,0,458,4441,1,0,0,0,460,4464,1,0,0,0,462,4469,1,0,0,0,464,4484,1,0,0,0,466,4486,1,0,0,0,468,4488,1,0,0,0,470,4496,1,0,0,0,472,4502,1,0,0,0,474,4506,1,0,0,0,476,4514,1,0,0,0,478,4525,1,0,0,0,480,4711,1,0,0,0,482,4715,1,0,0,0,484,4853,1,0,0,0,486,4858,1,0,0,0,488,4862,1,0,0,0,490,4868,1,0,0,0,492,4936,1,0,0,0,494,4938,1,0,0,0,496,4942,1,0,0,0,498,4944,1,0,0,0,500,4971,1,0,0,0,502,4988,1,0,0,0,504,4990,1,0,0,0,506,5007,1,0,0,0,508,5047,1,0,0,0,510,5049,1,0,0,0,512,5060,1,0,0,0,514,5066,1,0,0,0,516,5068,1,0,0,0,518,5092,1,0,0,0,520,5098,1,0,0,0,522,5104,1,0,0,0,524,5106,1,0,0,0,526,5124,1,0,0,0,528,5153,1,0,0,0,530,5155,1,0,0,0,532,5202,1,0,0,0,534,5207,1,0,0,0,536,5209,1,0,0,0,538,5228,1,0,0,0,540,5241,1,0,0,0,542,5256,1,0,0,0,544,5261,1,0,0,0,546,5265,1,0,0,0,548,5270,1,0,0,0,550,5277,1,0,0,0,552,5279,1,0,0,0,554,5304,1,0,0,0,556,5306,1,0,0,0,558,5314,1,0,0,0,560,5334,1,0,0,0,562,5336,1,0,0,0,564,5344,1,0,0,0,566,5362,1,0,0,0,568,5371,1,0,0,0,570,5377,1,0,0,0,572,5379,1,0,0,0,574,5395,1,0,0,0,576,5397,1,0,0,0,578,5412,1,0,0,0,580,5420,1,0,0,0,582,5423,1,0,0,0,584,5432,1,0,0,0,586,5473,1,0,0,0,588,5483,1,0,0,0,590,5490,1,0,0,0,592,5492,1,0,0,0,594,5507,1,0,0,0,596,5509,1,0,0,0,598,5512,1,0,0,0,600,5520,1,0,0,0,602,5567,1,0,0,0,604,5581,1,0,0,0,606,5595,1,0,0,0,608,5619,1,0,0,0,610,5626,1,0,0,0,612,5631,1,0,0,0,614,5639,1,0,0,0,616,5642,1,0,0,0,618,5646,1,0,0,0,620,5653,1,0,0,0,622,5689,1,0,0,0,624,5696,1,0,0,0,626,5698,1,0,0,0,628,5711,1,0,0,0,630,5713,1,0,0,0,632,5758,1,0,0,0,634,5760,1,0,0,0,636,5830,1,0,0,0,638,5832,1,0,0,0,640,5834,1,0,0,0,642,5842,1,0,0,0,644,5856,1,0,0,0,646,6295,1,0,0,0,648,6299,1,0,0,0,650,6304,1,0,0,0,652,6375,1,0,0,0,654,6589,1,0,0,0,656,6591,1,0,0,0,658,6599,1,0,0,0,660,6615,1,0,0,0,662,6622,1,0,0,0,664,6624,1,0,0,0,666,6815,1,0,0,0,668,6817,1,0,0,0,670,6825,1,0,0,0,672,6833,1,0,0,0,674,6862,1,0,0,0,676,6864,1,0,0,0,678,6873,1,0,0,0,680,6881,1,0,0,0,682,6920,1,0,0,0,684,6934,1,0,0,0,686,6936,1,0,0,0,688,6956,1,0,0,0,690,6958,1,0,0,0,692,6971,1,0,0,0,694,6975,1,0,0,0,696,6977,1,0,0,0,698,6982,1,0,0,0,700,6984,1,0,0,0,702,6991,1,0,0,0,704,6993,1,0,0,0,706,7e3,1,0,0,0,708,7055,1,0,0,0,710,7060,1,0,0,0,712,7072,1,0,0,0,714,7074,1,0,0,0,716,7090,1,0,0,0,718,7092,1,0,0,0,720,7124,1,0,0,0,722,7126,1,0,0,0,724,7129,1,0,0,0,726,7141,1,0,0,0,728,7143,1,0,0,0,730,7160,1,0,0,0,732,7162,1,0,0,0,734,7173,1,0,0,0,736,7178,1,0,0,0,738,7199,1,0,0,0,740,7205,1,0,0,0,742,7210,1,0,0,0,744,7217,1,0,0,0,746,7243,1,0,0,0,748,7247,1,0,0,0,750,7249,1,0,0,0,752,7328,1,0,0,0,754,7330,1,0,0,0,756,7356,1,0,0,0,758,7361,1,0,0,0,760,7382,1,0,0,0,762,7394,1,0,0,0,764,7396,1,0,0,0,766,7404,1,0,0,0,768,7406,1,0,0,0,770,7411,1,0,0,0,772,7416,1,0,0,0,774,7420,1,0,0,0,776,7427,1,0,0,0,778,7429,1,0,0,0,780,7441,1,0,0,0,782,7466,1,0,0,0,784,7477,1,0,0,0,786,7479,1,0,0,0,788,7484,1,0,0,0,790,7489,1,0,0,0,792,7491,1,0,0,0,794,7502,1,0,0,0,796,7508,1,0,0,0,798,7537,1,0,0,0,800,7544,1,0,0,0,802,7556,1,0,0,0,804,7559,1,0,0,0,806,7568,1,0,0,0,808,7592,1,0,0,0,810,7594,1,0,0,0,812,7596,1,0,0,0,814,7604,1,0,0,0,816,7620,1,0,0,0,818,7631,1,0,0,0,820,7636,1,0,0,0,822,7638,1,0,0,0,824,7669,1,0,0,0,826,7688,1,0,0,0,828,7701,1,0,0,0,830,7709,1,0,0,0,832,7721,1,0,0,0,834,7723,1,0,0,0,836,7734,1,0,0,0,838,7748,1,0,0,0,840,7752,1,0,0,0,842,7758,1,0,0,0,844,7761,1,0,0,0,846,7771,1,0,0,0,848,7796,1,0,0,0,850,7798,1,0,0,0,852,7801,1,0,0,0,854,7818,1,0,0,0,856,7825,1,0,0,0,858,7829,1,0,0,0,860,7839,1,0,0,0,862,7864,1,0,0,0,864,7866,1,0,0,0,866,7876,1,0,0,0,868,7901,1,0,0,0,870,7915,1,0,0,0,872,7917,1,0,0,0,874,7929,1,0,0,0,876,7941,1,0,0,0,878,7943,1,0,0,0,880,7965,1,0,0,0,882,7969,1,0,0,0,884,7974,1,0,0,0,886,7976,1,0,0,0,888,7984,1,0,0,0,890,7988,1,0,0,0,892,7990,1,0,0,0,894,7994,1,0,0,0,896,8002,1,0,0,0,898,8018,1,0,0,0,900,8022,1,0,0,0,902,8047,1,0,0,0,904,8049,1,0,0,0,906,8058,1,0,0,0,908,8060,1,0,0,0,910,8067,1,0,0,0,912,8071,1,0,0,0,914,8073,1,0,0,0,916,8075,1,0,0,0,918,8081,1,0,0,0,920,8083,1,0,0,0,922,8110,1,0,0,0,924,8115,1,0,0,0,926,8125,1,0,0,0,928,8127,1,0,0,0,930,8131,1,0,0,0,932,8146,1,0,0,0,934,8148,1,0,0,0,936,8165,1,0,0,0,938,8176,1,0,0,0,940,8178,1,0,0,0,942,8234,1,0,0,0,944,8258,1,0,0,0,946,8269,1,0,0,0,948,8272,1,0,0,0,950,8294,1,0,0,0,952,8296,1,0,0,0,954,8307,1,0,0,0,956,8309,1,0,0,0,958,8323,1,0,0,0,960,8325,1,0,0,0,962,8333,1,0,0,0,964,8340,1,0,0,0,966,8367,1,0,0,0,968,8369,1,0,0,0,970,8378,1,0,0,0,972,8383,1,0,0,0,974,8388,1,0,0,0,976,8398,1,0,0,0,978,8402,1,0,0,0,980,8404,1,0,0,0,982,8412,1,0,0,0,984,8416,1,0,0,0,986,8449,1,0,0,0,988,8459,1,0,0,0,990,8471,1,0,0,0,992,8473,1,0,0,0,994,8487,1,0,0,0,996,8516,1,0,0,0,998,8531,1,0,0,0,1e3,8537,1,0,0,0,1002,8543,1,0,0,0,1004,8555,1,0,0,0,1006,8573,1,0,0,0,1008,8580,1,0,0,0,1010,8584,1,0,0,0,1012,8588,1,0,0,0,1014,8590,1,0,0,0,1016,8596,1,0,0,0,1018,8599,1,0,0,0,1020,8606,1,0,0,0,1022,8619,1,0,0,0,1024,8623,1,0,0,0,1026,8625,1,0,0,0,1028,8634,1,0,0,0,1030,8643,1,0,0,0,1032,8671,1,0,0,0,1034,8673,1,0,0,0,1036,8683,1,0,0,0,1038,8685,1,0,0,0,1040,8687,1,0,0,0,1042,8691,1,0,0,0,1044,8699,1,0,0,0,1046,8707,1,0,0,0,1048,8715,1,0,0,0,1050,8729,1,0,0,0,1052,8738,1,0,0,0,1054,8742,1,0,0,0,1056,8746,1,0,0,0,1058,8772,1,0,0,0,1060,8786,1,0,0,0,1062,8801,1,0,0,0,1064,8811,1,0,0,0,1066,8815,1,0,0,0,1068,8823,1,0,0,0,1070,8831,1,0,0,0,1072,8837,1,0,0,0,1074,8841,1,0,0,0,1076,8848,1,0,0,0,1078,8853,1,0,0,0,1080,8868,1,0,0,0,1082,8948,1,0,0,0,1084,8950,1,0,0,0,1086,8952,1,0,0,0,1088,8982,1,0,0,0,1090,8986,1,0,0,0,1092,9165,1,0,0,0,1094,9172,1,0,0,0,1096,9185,1,0,0,0,1098,9187,1,0,0,0,1100,9192,1,0,0,0,1102,9200,1,0,0,0,1104,9205,1,0,0,0,1106,9212,1,0,0,0,1108,9229,1,0,0,0,1110,9231,1,0,0,0,1112,9241,1,0,0,0,1114,9250,1,0,0,0,1116,9255,1,0,0,0,1118,9257,1,0,0,0,1120,9265,1,0,0,0,1122,9275,1,0,0,0,1124,9277,1,0,0,0,1126,9286,1,0,0,0,1128,9292,1,0,0,0,1130,9307,1,0,0,0,1132,9315,1,0,0,0,1134,9324,1,0,0,0,1136,9336,1,0,0,0,1138,9350,1,0,0,0,1140,9352,1,0,0,0,1142,9359,1,0,0,0,1144,9365,1,0,0,0,1146,9369,1,0,0,0,1148,9371,1,0,0,0,1150,9379,1,0,0,0,1152,9387,1,0,0,0,1154,9401,1,0,0,0,1156,9403,1,0,0,0,1158,9411,1,0,0,0,1160,9424,1,0,0,0,1162,9426,1,0,0,0,1164,9434,1,0,0,0,1166,9441,1,0,0,0,1168,9454,1,0,0,0,1170,9464,1,0,0,0,1172,9466,1,0,0,0,1174,9468,1,0,0,0,1176,9482,1,0,0,0,1178,9511,1,0,0,0,1180,9520,1,0,0,0,1182,9527,1,0,0,0,1184,9529,1,0,0,0,1186,9536,1,0,0,0,1188,9540,1,0,0,0,1190,9548,1,0,0,0,1192,9552,1,0,0,0,1194,9554,1,0,0,0,1196,9575,1,0,0,0,1198,9578,1,0,0,0,1200,9585,1,0,0,0,1202,9590,1,0,0,0,1204,9592,1,0,0,0,1206,9608,1,0,0,0,1208,9610,1,0,0,0,1210,9618,1,0,0,0,1212,9620,1,0,0,0,1214,9628,1,0,0,0,1216,9630,1,0,0,0,1218,9638,1,0,0,0,1220,9640,1,0,0,0,1222,9648,1,0,0,0,1224,9650,1,0,0,0,1226,9652,1,0,0,0,1228,9654,1,0,0,0,1230,9662,1,0,0,0,1232,9666,1,0,0,0,1234,9674,1,0,0,0,1236,9676,1,0,0,0,1238,9678,1,0,0,0,1240,9687,1,0,0,0,1242,9721,1,0,0,0,1244,9723,1,0,0,0,1246,9725,1,0,0,0,1248,9727,1,0,0,0,1250,9729,1,0,0,0,1252,9731,1,0,0,0,1254,9745,1,0,0,0,1256,9750,1,0,0,0,1258,9757,1,0,0,0,1260,9762,1,0,0,0,1262,9764,1,0,0,0,1264,9778,1,0,0,0,1266,9784,1,0,0,0,1268,9790,1,0,0,0,1270,9796,1,0,0,0,1272,9804,1,0,0,0,1274,9813,1,0,0,0,1276,9815,1,0,0,0,1278,9817,1,0,0,0,1280,9871,1,0,0,0,1282,9873,1,0,0,0,1284,9875,1,0,0,0,1286,9877,1,0,0,0,1288,9879,1,0,0,0,1290,9886,1,0,0,0,1292,9909,1,0,0,0,1294,9911,1,0,0,0,1296,9917,1,0,0,0,1298,9921,1,0,0,0,1300,9923,1,0,0,0,1302,9930,1,0,0,0,1304,9937,1,0,0,0,1306,9940,1,0,0,0,1308,9944,1,0,0,0,1310,9951,1,0,0,0,1312,9953,1,0,0,0,1314,9977,1,0,0,0,1316,9979,1,0,0,0,1318,9986,1,0,0,0,1320,9988,1,0,0,0,1322,9996,1,0,0,0,1324,9999,1,0,0,0,1326,10003,1,0,0,0,1328,10005,1,0,0,0,1330,10009,1,0,0,0,1332,10011,1,0,0,0,1334,10016,1,0,0,0,1336,10021,1,0,0,0,1338,10027,1,0,0,0,1340,10031,1,0,0,0,1342,10033,1,0,0,0,1344,10038,1,0,0,0,1346,10068,1,0,0,0,1348,10070,1,0,0,0,1350,10088,1,0,0,0,1352,10092,1,0,0,0,1354,10094,1,0,0,0,1356,10099,1,0,0,0,1358,10108,1,0,0,0,1360,10110,1,0,0,0,1362,10118,1,0,0,0,1364,10122,1,0,0,0,1366,10124,1,0,0,0,1368,10128,1,0,0,0,1370,10139,1,0,0,0,1372,10156,1,0,0,0,1374,10162,1,0,0,0,1376,10164,1,0,0,0,1378,10174,1,0,0,0,1380,10177,1,0,0,0,1382,10181,1,0,0,0,1384,10189,1,0,0,0,1386,10191,1,0,0,0,1388,10194,1,0,0,0,1390,10199,1,0,0,0,1392,10204,1,0,0,0,1394,10226,1,0,0,0,1396,10240,1,0,0,0,1398,10244,1,0,0,0,1400,10249,1,0,0,0,1402,10251,1,0,0,0,1404,10253,1,0,0,0,1406,10265,1,0,0,0,1408,10267,1,0,0,0,1410,10272,1,0,0,0,1412,10274,1,0,0,0,1414,10292,1,0,0,0,1416,10320,1,0,0,0,1418,10330,1,0,0,0,1420,10339,1,0,0,0,1422,10351,1,0,0,0,1424,10353,1,0,0,0,1426,10357,1,0,0,0,1428,10365,1,0,0,0,1430,10367,1,0,0,0,1432,10374,1,0,0,0,1434,10377,1,0,0,0,1436,10393,1,0,0,0,1438,10395,1,0,0,0,1440,10409,1,0,0,0,1442,10411,1,0,0,0,1444,10449,1,0,0,0,1446,10451,1,0,0,0,1448,10459,1,0,0,0,1450,10464,1,0,0,0,1452,10483,1,0,0,0,1454,10485,1,0,0,0,1456,10490,1,0,0,0,1458,10494,1,0,0,0,1460,10497,1,0,0,0,1462,10501,1,0,0,0,1464,10511,1,0,0,0,1466,10525,1,0,0,0,1468,10529,1,0,0,0,1470,10534,1,0,0,0,1472,10537,1,0,0,0,1474,10541,1,0,0,0,1476,10546,1,0,0,0,1478,10557,1,0,0,0,1480,10561,1,0,0,0,1482,10565,1,0,0,0,1484,10569,1,0,0,0,1486,10574,1,0,0,0,1488,10578,1,0,0,0,1490,10580,1,0,0,0,1492,10582,1,0,0,0,1494,10592,1,0,0,0,1496,10594,1,0,0,0,1498,10596,1,0,0,0,1500,10598,1,0,0,0,1502,10600,1,0,0,0,1504,10609,1,0,0,0,1506,10611,1,0,0,0,1508,1510,3,4,2,0,1509,1508,1,0,0,0,1509,1510,1,0,0,0,1510,1511,1,0,0,0,1511,1512,5,0,0,1,1512,1,1,0,0,0,1513,1514,3,1288,644,0,1514,3,1,0,0,0,1515,1517,3,6,3,0,1516,1518,5,7,0,0,1517,1516,1,0,0,0,1517,1518,1,0,0,0,1518,1524,1,0,0,0,1519,1520,3,6,3,0,1520,1521,5,7,0,0,1521,1522,3,4,2,0,1522,1524,1,0,0,0,1523,1515,1,0,0,0,1523,1519,1,0,0,0,1524,5,1,0,0,0,1525,1648,3,408,204,0,1526,1648,3,738,369,0,1527,1648,3,732,366,0,1528,1648,3,734,367,0,1529,1648,3,524,262,0,1530,1648,3,744,372,0,1531,1648,3,428,214,0,1532,1648,3,288,144,0,1533,1648,3,292,146,0,1534,1648,3,300,150,0,1535,1648,3,324,162,0,1536,1648,3,600,300,0,1537,1648,3,652,326,0,1538,1648,3,654,327,0,1539,1648,3,666,333,0,1540,1648,3,656,328,0,1541,1648,3,664,332,0,1542,1648,3,344,172,0,1543,1648,3,256,128,0,1544,1648,3,740,370,0,1545,1648,3,88,44,0,1546,1648,3,644,322,0,1547,1648,3,126,63,0,1548,1648,3,674,337,0,1549,1648,3,28,14,0,1550,1648,3,24,12,0,1551,1648,3,682,341,0,1552,1648,3,240,120,0,1553,1648,3,752,376,0,1554,1648,3,750,375,0,1555,1648,3,340,170,0,1556,1648,3,762,381,0,1557,1648,3,10,5,0,1558,1648,3,84,42,0,1559,1648,3,132,66,0,1560,1648,3,756,378,0,1561,1648,3,480,240,0,1562,1648,3,78,39,0,1563,1648,3,134,67,0,1564,1648,3,358,179,0,1565,1648,3,242,121,0,1566,1648,3,412,206,0,1567,1648,3,622,311,0,1568,1648,3,754,377,0,1569,1648,3,742,371,0,1570,1648,3,284,142,0,1571,1648,3,294,147,0,1572,1648,3,318,159,0,1573,1648,3,326,163,0,1574,1648,3,552,276,0,1575,1648,3,248,124,0,1576,1648,3,432,216,0,1577,1648,3,442,221,0,1578,1648,3,668,334,0,1579,1648,3,444,222,0,1580,1648,3,342,171,0,1581,1648,3,268,134,0,1582,1648,3,34,17,0,1583,1648,3,254,127,0,1584,1648,3,152,76,0,1585,1648,3,676,338,0,1586,1648,3,238,119,0,1587,1648,3,278,139,0,1588,1648,3,630,315,0,1589,1648,3,362,181,0,1590,1648,3,400,200,0,1591,1648,3,22,11,0,1592,1648,3,334,167,0,1593,1648,3,724,362,0,1594,1648,3,802,401,0,1595,1648,3,852,426,0,1596,1648,3,414,207,0,1597,1648,3,830,415,0,1598,1648,3,86,43,0,1599,1648,3,616,308,0,1600,1648,3,626,313,0,1601,1648,3,450,225,0,1602,1648,3,452,226,0,1603,1648,3,454,227,0,1604,1648,3,458,229,0,1605,1648,3,684,342,0,1606,1648,3,282,141,0,1607,1648,3,634,317,0,1608,1648,3,30,15,0,1609,1648,3,338,169,0,1610,1648,3,736,368,0,1611,1648,3,798,399,0,1612,1648,3,782,391,0,1613,1648,3,490,245,0,1614,1648,3,498,249,0,1615,1648,3,516,258,0,1616,1648,3,328,164,0,1617,1648,3,532,266,0,1618,1648,3,804,402,0,1619,1648,3,822,411,0,1620,1648,3,704,352,0,1621,1648,3,252,126,0,1622,1648,3,722,361,0,1623,1648,3,834,417,0,1624,1648,3,700,350,0,1625,1648,3,792,396,0,1626,1648,3,456,228,0,1627,1648,3,636,318,0,1628,1648,3,604,302,0,1629,1648,3,602,301,0,1630,1648,3,606,303,0,1631,1648,3,646,323,0,1632,1648,3,500,250,0,1633,1648,3,518,259,0,1634,1648,3,686,343,0,1635,1648,3,484,242,0,1636,1648,3,858,429,0,1637,1648,3,708,354,0,1638,1648,3,476,238,0,1639,1648,3,706,353,0,1640,1648,3,844,422,0,1641,1648,3,760,380,0,1642,1648,3,66,33,0,1643,1648,3,42,21,0,1644,1648,3,76,38,0,1645,1648,3,718,359,0,1646,1648,3,8,4,0,1647,1525,1,0,0,0,1647,1526,1,0,0,0,1647,1527,1,0,0,0,1647,1528,1,0,0,0,1647,1529,1,0,0,0,1647,1530,1,0,0,0,1647,1531,1,0,0,0,1647,1532,1,0,0,0,1647,1533,1,0,0,0,1647,1534,1,0,0,0,1647,1535,1,0,0,0,1647,1536,1,0,0,0,1647,1537,1,0,0,0,1647,1538,1,0,0,0,1647,1539,1,0,0,0,1647,1540,1,0,0,0,1647,1541,1,0,0,0,1647,1542,1,0,0,0,1647,1543,1,0,0,0,1647,1544,1,0,0,0,1647,1545,1,0,0,0,1647,1546,1,0,0,0,1647,1547,1,0,0,0,1647,1548,1,0,0,0,1647,1549,1,0,0,0,1647,1550,1,0,0,0,1647,1551,1,0,0,0,1647,1552,1,0,0,0,1647,1553,1,0,0,0,1647,1554,1,0,0,0,1647,1555,1,0,0,0,1647,1556,1,0,0,0,1647,1557,1,0,0,0,1647,1558,1,0,0,0,1647,1559,1,0,0,0,1647,1560,1,0,0,0,1647,1561,1,0,0,0,1647,1562,1,0,0,0,1647,1563,1,0,0,0,1647,1564,1,0,0,0,1647,1565,1,0,0,0,1647,1566,1,0,0,0,1647,1567,1,0,0,0,1647,1568,1,0,0,0,1647,1569,1,0,0,0,1647,1570,1,0,0,0,1647,1571,1,0,0,0,1647,1572,1,0,0,0,1647,1573,1,0,0,0,1647,1574,1,0,0,0,1647,1575,1,0,0,0,1647,1576,1,0,0,0,1647,1577,1,0,0,0,1647,1578,1,0,0,0,1647,1579,1,0,0,0,1647,1580,1,0,0,0,1647,1581,1,0,0,0,1647,1582,1,0,0,0,1647,1583,1,0,0,0,1647,1584,1,0,0,0,1647,1585,1,0,0,0,1647,1586,1,0,0,0,1647,1587,1,0,0,0,1647,1588,1,0,0,0,1647,1589,1,0,0,0,1647,1590,1,0,0,0,1647,1591,1,0,0,0,1647,1592,1,0,0,0,1647,1593,1,0,0,0,1647,1594,1,0,0,0,1647,1595,1,0,0,0,1647,1596,1,0,0,0,1647,1597,1,0,0,0,1647,1598,1,0,0,0,1647,1599,1,0,0,0,1647,1600,1,0,0,0,1647,1601,1,0,0,0,1647,1602,1,0,0,0,1647,1603,1,0,0,0,1647,1604,1,0,0,0,1647,1605,1,0,0,0,1647,1606,1,0,0,0,1647,1607,1,0,0,0,1647,1608,1,0,0,0,1647,1609,1,0,0,0,1647,1610,1,0,0,0,1647,1611,1,0,0,0,1647,1612,1,0,0,0,1647,1613,1,0,0,0,1647,1614,1,0,0,0,1647,1615,1,0,0,0,1647,1616,1,0,0,0,1647,1617,1,0,0,0,1647,1618,1,0,0,0,1647,1619,1,0,0,0,1647,1620,1,0,0,0,1647,1621,1,0,0,0,1647,1622,1,0,0,0,1647,1623,1,0,0,0,1647,1624,1,0,0,0,1647,1625,1,0,0,0,1647,1626,1,0,0,0,1647,1627,1,0,0,0,1647,1628,1,0,0,0,1647,1629,1,0,0,0,1647,1630,1,0,0,0,1647,1631,1,0,0,0,1647,1632,1,0,0,0,1647,1633,1,0,0,0,1647,1634,1,0,0,0,1647,1635,1,0,0,0,1647,1636,1,0,0,0,1647,1637,1,0,0,0,1647,1638,1,0,0,0,1647,1639,1,0,0,0,1647,1640,1,0,0,0,1647,1641,1,0,0,0,1647,1642,1,0,0,0,1647,1643,1,0,0,0,1647,1644,1,0,0,0,1647,1645,1,0,0,0,1647,1646,1,0,0,0,1648,7,1,0,0,0,1649,1651,5,668,0,0,1650,1652,5,669,0,0,1651,1650,1,0,0,0,1651,1652,1,0,0,0,1652,9,1,0,0,0,1653,1654,5,433,0,0,1654,1655,3,1086,543,0,1655,11,1,0,0,0,1656,1659,5,105,0,0,1657,1659,1,0,0,0,1658,1656,1,0,0,0,1658,1657,1,0,0,0,1659,13,1,0,0,0,1660,1662,3,20,10,0,1661,1660,1,0,0,0,1662,1665,1,0,0,0,1663,1661,1,0,0,0,1663,1664,1,0,0,0,1664,15,1,0,0,0,1665,1663,1,0,0,0,1666,1668,3,18,9,0,1667,1666,1,0,0,0,1668,1671,1,0,0,0,1669,1667,1,0,0,0,1669,1670,1,0,0,0,1670,17,1,0,0,0,1671,1669,1,0,0,0,1672,1675,5,280,0,0,1673,1676,3,1252,626,0,1674,1676,5,78,0,0,1675,1673,1,0,0,0,1675,1674,1,0,0,0,1676,1692,1,0,0,0,1677,1678,7,0,0,0,1678,1679,5,280,0,0,1679,1692,3,1252,626,0,1680,1692,5,228,0,0,1681,1682,5,164,0,0,1682,1683,5,74,0,0,1683,1692,3,1258,629,0,1684,1685,5,364,0,0,1685,1686,5,361,0,0,1686,1692,3,1252,626,0,1687,1688,3,1506,753,0,1688,1689,3,1262,631,0,1689,1692,1,0,0,0,1690,1692,3,1274,637,0,1691,1672,1,0,0,0,1691,1677,1,0,0,0,1691,1680,1,0,0,0,1691,1681,1,0,0,0,1691,1684,1,0,0,0,1691,1687,1,0,0,0,1691,1690,1,0,0,0,1692,19,1,0,0,0,1693,1705,3,18,9,0,1694,1695,5,341,0,0,1695,1705,3,1250,625,0,1696,1697,5,134,0,0,1697,1705,3,1262,631,0,1698,1700,5,68,0,0,1699,1698,1,0,0,0,1699,1700,1,0,0,0,1700,1701,1,0,0,0,1701,1702,3,1506,753,0,1702,1703,3,1262,631,0,1703,1705,1,0,0,0,1704,1693,1,0,0,0,1704,1694,1,0,0,0,1704,1696,1,0,0,0,1704,1699,1,0,0,0,1705,21,1,0,0,0,1706,1707,5,46,0,0,1707,1708,3,1506,753,0,1708,1709,3,1260,630,0,1709,1710,3,12,6,0,1710,1711,3,14,7,0,1711,23,1,0,0,0,1712,1713,5,138,0,0,1713,1714,3,1506,753,0,1714,1715,3,1260,630,0,1715,1716,3,12,6,0,1716,1717,3,16,8,0,1717,25,1,0,0,0,1718,1723,1,0,0,0,1719,1720,5,68,0,0,1720,1721,5,175,0,0,1721,1723,3,1210,605,0,1722,1718,1,0,0,0,1722,1719,1,0,0,0,1723,27,1,0,0,0,1724,1725,5,138,0,0,1725,1727,3,1506,753,0,1726,1728,5,30,0,0,1727,1726,1,0,0,0,1727,1728,1,0,0,0,1728,1729,1,0,0,0,1729,1730,3,1260,630,0,1730,1731,3,26,13,0,1731,1732,3,72,36,0,1732,29,1,0,0,0,1733,1734,5,191,0,0,1734,1737,3,1506,753,0,1735,1736,5,220,0,0,1736,1738,5,389,0,0,1737,1735,1,0,0,0,1737,1738,1,0,0,0,1738,1739,1,0,0,0,1739,1740,3,1262,631,0,1740,31,1,0,0,0,1741,1742,7,1,0,0,1742,33,1,0,0,0,1743,1744,5,46,0,0,1744,1748,5,316,0,0,1745,1746,5,220,0,0,1746,1747,5,77,0,0,1747,1749,5,389,0,0,1748,1745,1,0,0,0,1748,1749,1,0,0,0,1749,1755,1,0,0,0,1750,1751,3,36,18,0,1751,1752,5,106,0,0,1752,1753,3,1260,630,0,1753,1756,1,0,0,0,1754,1756,3,1264,632,0,1755,1750,1,0,0,0,1755,1754,1,0,0,0,1756,1757,1,0,0,0,1757,1758,3,38,19,0,1758,35,1,0,0,0,1759,1762,3,1264,632,0,1760,1762,1,0,0,0,1761,1759,1,0,0,0,1761,1760,1,0,0,0,1762,37,1,0,0,0,1763,1765,3,40,20,0,1764,1763,1,0,0,0,1765,1768,1,0,0,0,1766,1764,1,0,0,0,1766,1767,1,0,0,0,1767,39,1,0,0,0,1768,1766,1,0,0,0,1769,1776,3,152,76,0,1770,1776,3,532,266,0,1771,1776,3,254,127,0,1772,1776,3,362,181,0,1773,1776,3,498,249,0,1774,1776,3,718,359,0,1775,1769,1,0,0,0,1775,1770,1,0,0,0,1775,1771,1,0,0,0,1775,1772,1,0,0,0,1775,1773,1,0,0,0,1775,1774,1,0,0,0,1776,41,1,0,0,0,1777,1779,5,326,0,0,1778,1780,7,2,0,0,1779,1778,1,0,0,0,1779,1780,1,0,0,0,1780,1781,1,0,0,0,1781,1782,3,44,22,0,1782,43,1,0,0,0,1783,1784,5,349,0,0,1784,1792,3,714,357,0,1785,1786,5,325,0,0,1786,1787,5,154,0,0,1787,1788,5,36,0,0,1788,1789,5,349,0,0,1789,1792,3,714,357,0,1790,1792,3,48,24,0,1791,1783,1,0,0,0,1791,1785,1,0,0,0,1791,1790,1,0,0,0,1792,45,1,0,0,0,1793,1794,3,50,25,0,1794,1795,7,3,0,0,1795,1796,3,52,26,0,1796,47,1,0,0,0,1797,1824,3,46,23,0,1798,1799,3,50,25,0,1799,1800,5,64,0,0,1800,1801,5,434,0,0,1801,1824,1,0,0,0,1802,1803,5,411,0,0,1803,1804,5,379,0,0,1804,1824,3,60,30,0,1805,1806,5,152,0,0,1806,1824,3,1252,626,0,1807,1808,5,316,0,0,1808,1824,3,1214,607,0,1809,1810,5,260,0,0,1810,1824,3,62,31,0,1811,1812,3,1506,753,0,1812,1813,3,64,32,0,1813,1824,1,0,0,0,1814,1815,5,325,0,0,1815,1816,5,106,0,0,1816,1824,3,64,32,0,1817,1818,5,376,0,0,1818,1819,5,272,0,0,1819,1824,3,1104,552,0,1820,1821,5,349,0,0,1821,1822,5,330,0,0,1822,1824,3,1252,626,0,1823,1797,1,0,0,0,1823,1798,1,0,0,0,1823,1802,1,0,0,0,1823,1805,1,0,0,0,1823,1807,1,0,0,0,1823,1809,1,0,0,0,1823,1811,1,0,0,0,1823,1814,1,0,0,0,1823,1817,1,0,0,0,1823,1820,1,0,0,0,1824,49,1,0,0,0,1825,1830,3,1264,632,0,1826,1827,5,11,0,0,1827,1829,3,1264,632,0,1828,1826,1,0,0,0,1829,1832,1,0,0,0,1830,1828,1,0,0,0,1830,1831,1,0,0,0,1831,51,1,0,0,0,1832,1830,1,0,0,0,1833,1838,3,54,27,0,1834,1835,5,6,0,0,1835,1837,3,54,27,0,1836,1834,1,0,0,0,1837,1840,1,0,0,0,1838,1836,1,0,0,0,1838,1839,1,0,0,0,1839,53,1,0,0,0,1840,1838,1,0,0,0,1841,1844,3,58,29,0,1842,1844,3,264,132,0,1843,1841,1,0,0,0,1843,1842,1,0,0,0,1844,55,1,0,0,0,1845,1846,5,293,0,0,1846,1851,7,4,0,0,1847,1848,5,303,0,0,1848,1851,5,293,0,0,1849,1851,5,323,0,0,1850,1845,1,0,0,0,1850,1847,1,0,0,0,1850,1849,1,0,0,0,1851,57,1,0,0,0,1852,1857,5,96,0,0,1853,1857,5,60,0,0,1854,1857,5,80,0,0,1855,1857,3,64,32,0,1856,1852,1,0,0,0,1856,1853,1,0,0,0,1856,1854,1,0,0,0,1856,1855,1,0,0,0,1857,59,1,0,0,0,1858,1874,3,1252,626,0,1859,1874,3,1274,637,0,1860,1861,3,1028,514,0,1861,1862,3,1252,626,0,1862,1863,3,1032,516,0,1863,1874,1,0,0,0,1864,1865,3,1028,514,0,1865,1866,5,2,0,0,1866,1867,3,1250,625,0,1867,1868,5,3,0,0,1868,1869,3,1252,626,0,1869,1874,1,0,0,0,1870,1874,3,264,132,0,1871,1874,5,53,0,0,1872,1874,5,245,0,0,1873,1858,1,0,0,0,1873,1859,1,0,0,0,1873,1860,1,0,0,0,1873,1864,1,0,0,0,1873,1870,1,0,0,0,1873,1871,1,0,0,0,1873,1872,1,0,0,0,1874,61,1,0,0,0,1875,1879,3,1252,626,0,1876,1879,5,53,0,0,1877,1879,1,0,0,0,1878,1875,1,0,0,0,1878,1876,1,0,0,0,1878,1877,1,0,0,0,1879,63,1,0,0,0,1880,1883,3,1270,635,0,1881,1883,3,1252,626,0,1882,1880,1,0,0,0,1882,1881,1,0,0,0,1883,65,1,0,0,0,1884,1885,5,306,0,0,1885,1886,3,68,34,0,1886,67,1,0,0,0,1887,1896,3,70,35,0,1888,1889,5,411,0,0,1889,1896,5,379,0,0,1890,1891,5,349,0,0,1891,1892,5,235,0,0,1892,1896,5,242,0,0,1893,1894,5,325,0,0,1894,1896,5,106,0,0,1895,1887,1,0,0,0,1895,1888,1,0,0,0,1895,1890,1,0,0,0,1895,1893,1,0,0,0,1896,69,1,0,0,0,1897,1900,3,50,25,0,1898,1900,5,30,0,0,1899,1897,1,0,0,0,1899,1898,1,0,0,0,1900,71,1,0,0,0,1901,1902,5,326,0,0,1902,1905,3,44,22,0,1903,1905,3,66,33,0,1904,1901,1,0,0,0,1904,1903,1,0,0,0,1905,73,1,0,0,0,1906,1907,5,326,0,0,1907,1910,3,48,24,0,1908,1910,3,66,33,0,1909,1906,1,0,0,0,1909,1908,1,0,0,0,1910,75,1,0,0,0,1911,1921,5,328,0,0,1912,1922,3,50,25,0,1913,1914,5,411,0,0,1914,1922,5,379,0,0,1915,1916,5,349,0,0,1916,1917,5,235,0,0,1917,1922,5,242,0,0,1918,1919,5,325,0,0,1919,1922,5,106,0,0,1920,1922,5,30,0,0,1921,1912,1,0,0,0,1921,1913,1,0,0,0,1921,1915,1,0,0,0,1921,1918,1,0,0,0,1921,1920,1,0,0,0,1922,77,1,0,0,0,1923,1924,5,326,0,0,1924,1925,5,165,0,0,1925,1926,3,80,40,0,1926,1927,3,82,41,0,1927,79,1,0,0,0,1928,1931,5,30,0,0,1929,1931,3,1208,604,0,1930,1928,1,0,0,0,1930,1929,1,0,0,0,1931,81,1,0,0,0,1932,1933,7,5,0,0,1933,83,1,0,0,0,1934,1935,5,155,0,0,1935,85,1,0,0,0,1936,1937,5,187,0,0,1937,1938,7,6,0,0,1938,87,1,0,0,0,1939,1940,5,138,0,0,1940,1943,5,92,0,0,1941,1942,5,220,0,0,1942,1944,5,389,0,0,1943,1941,1,0,0,0,1943,1944,1,0,0,0,1944,1945,1,0,0,0,1945,1948,3,958,479,0,1946,1949,3,90,45,0,1947,1949,3,92,46,0,1948,1946,1,0,0,0,1948,1947,1,0,0,0,1949,2040,1,0,0,0,1950,1951,5,138,0,0,1951,1952,5,92,0,0,1952,1953,5,30,0,0,1953,1954,5,68,0,0,1954,1955,5,344,0,0,1955,1959,3,1234,617,0,1956,1957,5,274,0,0,1957,1958,5,147,0,0,1958,1960,3,1262,631,0,1959,1956,1,0,0,0,1959,1960,1,0,0,0,1960,1961,1,0,0,0,1961,1962,5,326,0,0,1962,1963,5,344,0,0,1963,1964,3,1234,617,0,1964,1965,3,840,420,0,1965,2040,1,0,0,0,1966,1967,5,138,0,0,1967,1970,5,226,0,0,1968,1969,5,220,0,0,1969,1971,5,389,0,0,1970,1968,1,0,0,0,1970,1971,1,0,0,0,1971,1972,1,0,0,0,1972,1975,3,1218,609,0,1973,1976,3,90,45,0,1974,1976,3,94,47,0,1975,1973,1,0,0,0,1975,1974,1,0,0,0,1976,2040,1,0,0,0,1977,1978,5,138,0,0,1978,1979,5,226,0,0,1979,1980,5,30,0,0,1980,1981,5,68,0,0,1981,1982,5,344,0,0,1982,1986,3,1234,617,0,1983,1984,5,274,0,0,1984,1985,5,147,0,0,1985,1987,3,1262,631,0,1986,1983,1,0,0,0,1986,1987,1,0,0,0,1987,1988,1,0,0,0,1988,1989,5,326,0,0,1989,1990,5,344,0,0,1990,1991,3,1234,617,0,1991,1992,3,840,420,0,1992,2040,1,0,0,0,1993,1994,5,138,0,0,1994,1997,5,369,0,0,1995,1996,5,220,0,0,1996,1998,5,389,0,0,1997,1995,1,0,0,0,1997,1998,1,0,0,0,1998,1999,1,0,0,0,1999,2e3,3,956,478,0,2e3,2001,3,90,45,0,2001,2040,1,0,0,0,2002,2003,5,138,0,0,2003,2004,5,251,0,0,2004,2007,5,369,0,0,2005,2006,5,220,0,0,2006,2008,5,389,0,0,2007,2005,1,0,0,0,2007,2008,1,0,0,0,2008,2009,1,0,0,0,2009,2010,3,1230,615,0,2010,2011,3,90,45,0,2011,2040,1,0,0,0,2012,2013,5,138,0,0,2013,2014,5,251,0,0,2014,2015,5,369,0,0,2015,2016,5,30,0,0,2016,2017,5,68,0,0,2017,2018,5,344,0,0,2018,2022,3,1234,617,0,2019,2020,5,274,0,0,2020,2021,5,147,0,0,2021,2023,3,1262,631,0,2022,2019,1,0,0,0,2022,2023,1,0,0,0,2023,2024,1,0,0,0,2024,2025,5,326,0,0,2025,2026,5,344,0,0,2026,2027,3,1234,617,0,2027,2028,3,840,420,0,2028,2040,1,0,0,0,2029,2030,5,138,0,0,2030,2031,5,63,0,0,2031,2034,5,92,0,0,2032,2033,5,220,0,0,2033,2035,5,389,0,0,2034,2032,1,0,0,0,2034,2035,1,0,0,0,2035,2036,1,0,0,0,2036,2037,3,958,479,0,2037,2038,3,90,45,0,2038,2040,1,0,0,0,2039,1939,1,0,0,0,2039,1950,1,0,0,0,2039,1966,1,0,0,0,2039,1977,1,0,0,0,2039,1993,1,0,0,0,2039,2002,1,0,0,0,2039,2012,1,0,0,0,2039,2029,1,0,0,0,2040,89,1,0,0,0,2041,2046,3,96,48,0,2042,2043,5,6,0,0,2043,2045,3,96,48,0,2044,2042,1,0,0,0,2045,2048,1,0,0,0,2046,2044,1,0,0,0,2046,2047,1,0,0,0,2047,91,1,0,0,0,2048,2046,1,0,0,0,2049,2050,5,435,0,0,2050,2051,5,278,0,0,2051,2052,3,1230,615,0,2052,2053,3,120,60,0,2053,2058,1,0,0,0,2054,2055,5,436,0,0,2055,2056,5,278,0,0,2056,2058,3,1230,615,0,2057,2049,1,0,0,0,2057,2054,1,0,0,0,2058,93,1,0,0,0,2059,2060,5,435,0,0,2060,2061,5,278,0,0,2061,2062,3,1230,615,0,2062,95,1,0,0,0,2063,2064,5,133,0,0,2064,2305,3,168,84,0,2065,2066,5,133,0,0,2066,2067,5,220,0,0,2067,2068,5,77,0,0,2068,2069,5,389,0,0,2069,2305,3,168,84,0,2070,2071,5,133,0,0,2071,2072,5,44,0,0,2072,2305,3,168,84,0,2073,2074,5,133,0,0,2074,2075,5,44,0,0,2075,2076,5,220,0,0,2076,2077,5,77,0,0,2077,2078,5,389,0,0,2078,2305,3,168,84,0,2079,2080,5,138,0,0,2080,2081,3,648,324,0,2081,2082,3,1264,632,0,2082,2083,3,98,49,0,2083,2305,1,0,0,0,2084,2085,5,138,0,0,2085,2086,3,648,324,0,2086,2087,3,1264,632,0,2087,2088,5,191,0,0,2088,2089,5,77,0,0,2089,2090,5,78,0,0,2090,2305,1,0,0,0,2091,2092,5,138,0,0,2092,2093,3,648,324,0,2093,2094,3,1264,632,0,2094,2095,5,326,0,0,2095,2096,5,77,0,0,2096,2097,5,78,0,0,2097,2305,1,0,0,0,2098,2099,5,138,0,0,2099,2100,3,648,324,0,2100,2101,3,1264,632,0,2101,2102,5,191,0,0,2102,2103,5,437,0,0,2103,2305,1,0,0,0,2104,2105,5,138,0,0,2105,2106,3,648,324,0,2106,2107,3,1264,632,0,2107,2108,5,191,0,0,2108,2109,5,437,0,0,2109,2110,5,220,0,0,2110,2111,5,389,0,0,2111,2305,1,0,0,0,2112,2113,5,138,0,0,2113,2114,3,648,324,0,2114,2115,3,1264,632,0,2115,2116,5,326,0,0,2116,2117,5,335,0,0,2117,2118,3,1258,629,0,2118,2305,1,0,0,0,2119,2120,5,138,0,0,2120,2121,3,648,324,0,2121,2122,3,1250,625,0,2122,2123,5,326,0,0,2123,2124,5,335,0,0,2124,2125,3,1258,629,0,2125,2305,1,0,0,0,2126,2127,5,138,0,0,2127,2128,3,648,324,0,2128,2129,3,1264,632,0,2129,2130,5,326,0,0,2130,2131,3,108,54,0,2131,2305,1,0,0,0,2132,2133,5,138,0,0,2133,2134,3,648,324,0,2134,2135,3,1264,632,0,2135,2136,5,306,0,0,2136,2137,3,108,54,0,2137,2305,1,0,0,0,2138,2139,5,138,0,0,2139,2140,3,648,324,0,2140,2141,3,1264,632,0,2141,2142,5,326,0,0,2142,2143,5,338,0,0,2143,2144,3,1264,632,0,2144,2305,1,0,0,0,2145,2146,5,138,0,0,2146,2147,3,648,324,0,2147,2148,3,1264,632,0,2148,2149,5,133,0,0,2149,2150,5,438,0,0,2150,2151,3,178,89,0,2151,2152,5,36,0,0,2152,2153,5,219,0,0,2153,2154,3,258,129,0,2154,2305,1,0,0,0,2155,2156,5,138,0,0,2156,2157,3,648,324,0,2157,2158,3,1264,632,0,2158,2159,3,116,58,0,2159,2305,1,0,0,0,2160,2161,5,138,0,0,2161,2162,3,648,324,0,2162,2163,3,1264,632,0,2163,2164,5,191,0,0,2164,2165,5,219,0,0,2165,2305,1,0,0,0,2166,2167,5,138,0,0,2167,2168,3,648,324,0,2168,2169,3,1264,632,0,2169,2170,5,191,0,0,2170,2171,5,219,0,0,2171,2172,5,220,0,0,2172,2173,5,389,0,0,2173,2305,1,0,0,0,2174,2175,5,191,0,0,2175,2176,3,648,324,0,2176,2177,5,220,0,0,2177,2178,5,389,0,0,2178,2179,3,1264,632,0,2179,2180,3,100,50,0,2180,2305,1,0,0,0,2181,2182,5,191,0,0,2182,2183,3,648,324,0,2183,2184,3,1264,632,0,2184,2185,3,100,50,0,2185,2305,1,0,0,0,2186,2187,5,138,0,0,2187,2188,3,648,324,0,2188,2189,3,1264,632,0,2189,2190,3,650,325,0,2190,2191,5,353,0,0,2191,2192,3,996,498,0,2192,2193,3,102,51,0,2193,2194,3,104,52,0,2194,2305,1,0,0,0,2195,2196,5,138,0,0,2196,2197,3,648,324,0,2197,2198,3,1264,632,0,2198,2199,3,306,153,0,2199,2305,1,0,0,0,2200,2201,5,133,0,0,2201,2305,3,188,94,0,2202,2203,5,138,0,0,2203,2204,5,45,0,0,2204,2206,3,1224,612,0,2205,2207,3,398,199,0,2206,2205,1,0,0,0,2207,2208,1,0,0,0,2208,2206,1,0,0,0,2208,2209,1,0,0,0,2209,2305,1,0,0,0,2210,2211,5,365,0,0,2211,2212,5,45,0,0,2212,2305,3,1224,612,0,2213,2214,5,191,0,0,2214,2217,5,45,0,0,2215,2216,5,220,0,0,2216,2218,5,389,0,0,2217,2215,1,0,0,0,2217,2218,1,0,0,0,2218,2219,1,0,0,0,2219,2220,3,1224,612,0,2220,2221,3,100,50,0,2221,2305,1,0,0,0,2222,2223,5,326,0,0,2223,2224,5,372,0,0,2224,2305,5,270,0,0,2225,2226,5,158,0,0,2226,2227,5,80,0,0,2227,2305,3,1234,617,0,2228,2229,5,326,0,0,2229,2230,5,372,0,0,2230,2305,5,158,0,0,2231,2232,5,326,0,0,2232,2305,5,439,0,0,2233,2234,5,326,0,0,2234,2305,5,360,0,0,2235,2237,5,193,0,0,2236,2238,7,7,0,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2239,1,0,0,0,2239,2240,5,350,0,0,2240,2305,3,1222,611,0,2241,2242,5,193,0,0,2242,2243,5,350,0,0,2243,2305,7,8,0,0,2244,2245,5,186,0,0,2245,2246,5,350,0,0,2246,2305,3,1222,611,0,2247,2248,5,186,0,0,2248,2249,5,350,0,0,2249,2305,7,8,0,0,2250,2251,5,193,0,0,2251,2252,5,314,0,0,2252,2305,3,1234,617,0,2253,2254,5,193,0,0,2254,2255,5,139,0,0,2255,2256,5,314,0,0,2256,2305,3,1234,617,0,2257,2258,5,193,0,0,2258,2259,5,305,0,0,2259,2260,5,314,0,0,2260,2305,3,1234,617,0,2261,2262,5,186,0,0,2262,2263,5,314,0,0,2263,2305,3,1234,617,0,2264,2265,5,228,0,0,2265,2305,3,1230,615,0,2266,2267,5,262,0,0,2267,2268,5,228,0,0,2268,2305,3,1230,615,0,2269,2270,5,268,0,0,2270,2305,3,470,235,0,2271,2272,5,77,0,0,2272,2305,5,268,0,0,2273,2274,5,275,0,0,2274,2275,5,94,0,0,2275,2305,3,1260,630,0,2276,2277,5,326,0,0,2277,2278,5,344,0,0,2278,2305,3,1234,617,0,2279,2280,5,326,0,0,2280,2305,3,108,54,0,2281,2282,5,306,0,0,2282,2305,3,108,54,0,2283,2284,5,305,0,0,2284,2285,5,219,0,0,2285,2305,3,106,53,0,2286,2287,5,193,0,0,2287,2288,5,407,0,0,2288,2289,5,242,0,0,2289,2305,5,320,0,0,2290,2291,5,186,0,0,2291,2292,5,407,0,0,2292,2293,5,242,0,0,2293,2305,5,320,0,0,2294,2295,5,209,0,0,2295,2296,5,407,0,0,2296,2297,5,242,0,0,2297,2305,5,320,0,0,2298,2299,5,262,0,0,2299,2300,5,209,0,0,2300,2301,5,407,0,0,2301,2302,5,242,0,0,2302,2305,5,320,0,0,2303,2305,3,306,153,0,2304,2063,1,0,0,0,2304,2065,1,0,0,0,2304,2070,1,0,0,0,2304,2073,1,0,0,0,2304,2079,1,0,0,0,2304,2084,1,0,0,0,2304,2091,1,0,0,0,2304,2098,1,0,0,0,2304,2104,1,0,0,0,2304,2112,1,0,0,0,2304,2119,1,0,0,0,2304,2126,1,0,0,0,2304,2132,1,0,0,0,2304,2138,1,0,0,0,2304,2145,1,0,0,0,2304,2155,1,0,0,0,2304,2160,1,0,0,0,2304,2166,1,0,0,0,2304,2174,1,0,0,0,2304,2181,1,0,0,0,2304,2186,1,0,0,0,2304,2195,1,0,0,0,2304,2200,1,0,0,0,2304,2202,1,0,0,0,2304,2210,1,0,0,0,2304,2213,1,0,0,0,2304,2222,1,0,0,0,2304,2225,1,0,0,0,2304,2228,1,0,0,0,2304,2231,1,0,0,0,2304,2233,1,0,0,0,2304,2235,1,0,0,0,2304,2241,1,0,0,0,2304,2244,1,0,0,0,2304,2247,1,0,0,0,2304,2250,1,0,0,0,2304,2253,1,0,0,0,2304,2257,1,0,0,0,2304,2261,1,0,0,0,2304,2264,1,0,0,0,2304,2266,1,0,0,0,2304,2269,1,0,0,0,2304,2271,1,0,0,0,2304,2273,1,0,0,0,2304,2276,1,0,0,0,2304,2279,1,0,0,0,2304,2281,1,0,0,0,2304,2283,1,0,0,0,2304,2286,1,0,0,0,2304,2290,1,0,0,0,2304,2294,1,0,0,0,2304,2298,1,0,0,0,2304,2303,1,0,0,0,2305,97,1,0,0,0,2306,2307,5,326,0,0,2307,2308,5,53,0,0,2308,2312,3,1038,519,0,2309,2310,5,191,0,0,2310,2312,5,53,0,0,2311,2306,1,0,0,0,2311,2309,1,0,0,0,2312,99,1,0,0,0,2313,2317,5,150,0,0,2314,2317,5,308,0,0,2315,2317,1,0,0,0,2316,2313,1,0,0,0,2316,2314,1,0,0,0,2316,2315,1,0,0,0,2317,101,1,0,0,0,2318,2319,5,43,0,0,2319,2322,3,470,235,0,2320,2322,1,0,0,0,2321,2318,1,0,0,0,2321,2320,1,0,0,0,2322,103,1,0,0,0,2323,2324,5,100,0,0,2324,2327,3,1038,519,0,2325,2327,1,0,0,0,2326,2323,1,0,0,0,2326,2325,1,0,0,0,2327,105,1,0,0,0,2328,2335,5,263,0,0,2329,2335,5,113,0,0,2330,2335,5,53,0,0,2331,2332,5,100,0,0,2332,2333,5,226,0,0,2333,2335,3,1218,609,0,2334,2328,1,0,0,0,2334,2329,1,0,0,0,2334,2330,1,0,0,0,2334,2331,1,0,0,0,2335,107,1,0,0,0,2336,2337,5,2,0,0,2337,2338,3,112,56,0,2338,2339,5,3,0,0,2339,109,1,0,0,0,2340,2341,5,105,0,0,2341,2344,3,108,54,0,2342,2344,1,0,0,0,2343,2340,1,0,0,0,2343,2342,1,0,0,0,2344,111,1,0,0,0,2345,2350,3,114,57,0,2346,2347,5,6,0,0,2347,2349,3,114,57,0,2348,2346,1,0,0,0,2349,2352,1,0,0,0,2350,2348,1,0,0,0,2350,2351,1,0,0,0,2351,113,1,0,0,0,2352,2350,1,0,0,0,2353,2362,3,1272,636,0,2354,2355,5,10,0,0,2355,2363,3,420,210,0,2356,2357,5,11,0,0,2357,2360,3,1272,636,0,2358,2359,5,10,0,0,2359,2361,3,420,210,0,2360,2358,1,0,0,0,2360,2361,1,0,0,0,2361,2363,1,0,0,0,2362,2354,1,0,0,0,2362,2356,1,0,0,0,2362,2363,1,0,0,0,2363,115,1,0,0,0,2364,2366,3,118,59,0,2365,2364,1,0,0,0,2366,2367,1,0,0,0,2367,2365,1,0,0,0,2367,2368,1,0,0,0,2368,117,1,0,0,0,2369,2373,5,307,0,0,2370,2371,3,12,6,0,2371,2372,3,264,132,0,2372,2374,1,0,0,0,2373,2370,1,0,0,0,2373,2374,1,0,0,0,2374,2382,1,0,0,0,2375,2379,5,326,0,0,2376,2380,3,262,131,0,2377,2378,5,438,0,0,2378,2380,3,178,89,0,2379,2376,1,0,0,0,2379,2377,1,0,0,0,2380,2382,1,0,0,0,2381,2369,1,0,0,0,2381,2375,1,0,0,0,2382,119,1,0,0,0,2383,2384,5,62,0,0,2384,2385,5,415,0,0,2385,2386,5,105,0,0,2386,2387,5,2,0,0,2387,2388,3,124,62,0,2388,2389,5,3,0,0,2389,2410,1,0,0,0,2390,2391,5,62,0,0,2391,2392,5,415,0,0,2392,2393,5,68,0,0,2393,2394,5,2,0,0,2394,2395,3,1156,578,0,2395,2396,5,3,0,0,2396,2410,1,0,0,0,2397,2398,5,62,0,0,2398,2399,5,415,0,0,2399,2400,5,64,0,0,2400,2401,5,2,0,0,2401,2402,3,1156,578,0,2402,2403,5,3,0,0,2403,2404,5,94,0,0,2404,2405,5,2,0,0,2405,2406,3,1156,578,0,2406,2407,5,3,0,0,2407,2410,1,0,0,0,2408,2410,5,53,0,0,2409,2383,1,0,0,0,2409,2390,1,0,0,0,2409,2397,1,0,0,0,2409,2408,1,0,0,0,2410,121,1,0,0,0,2411,2412,3,1270,635,0,2412,2413,3,1250,625,0,2413,123,1,0,0,0,2414,2419,3,122,61,0,2415,2416,5,6,0,0,2416,2418,3,122,61,0,2417,2415,1,0,0,0,2418,2421,1,0,0,0,2419,2417,1,0,0,0,2419,2420,1,0,0,0,2420,125,1,0,0,0,2421,2419,1,0,0,0,2422,2423,5,138,0,0,2423,2424,5,353,0,0,2424,2425,3,470,235,0,2425,2426,3,128,64,0,2426,127,1,0,0,0,2427,2432,3,130,65,0,2428,2429,5,6,0,0,2429,2431,3,130,65,0,2430,2428,1,0,0,0,2431,2434,1,0,0,0,2432,2430,1,0,0,0,2432,2433,1,0,0,0,2433,129,1,0,0,0,2434,2432,1,0,0,0,2435,2436,5,133,0,0,2436,2437,5,143,0,0,2437,2438,3,982,491,0,2438,2439,3,100,50,0,2439,2459,1,0,0,0,2440,2441,5,191,0,0,2441,2444,5,143,0,0,2442,2443,5,220,0,0,2443,2445,5,389,0,0,2444,2442,1,0,0,0,2444,2445,1,0,0,0,2445,2446,1,0,0,0,2446,2447,3,1264,632,0,2447,2448,3,100,50,0,2448,2459,1,0,0,0,2449,2450,5,138,0,0,2450,2451,5,143,0,0,2451,2452,3,1264,632,0,2452,2453,3,650,325,0,2453,2454,5,353,0,0,2454,2455,3,996,498,0,2455,2456,3,102,51,0,2456,2457,3,100,50,0,2457,2459,1,0,0,0,2458,2435,1,0,0,0,2458,2440,1,0,0,0,2458,2449,1,0,0,0,2459,131,1,0,0,0,2460,2463,5,157,0,0,2461,2464,3,854,427,0,2462,2464,5,30,0,0,2463,2461,1,0,0,0,2463,2462,1,0,0,0,2464,133,1,0,0,0,2465,2467,5,169,0,0,2466,2468,5,107,0,0,2467,2466,1,0,0,0,2467,2468,1,0,0,0,2468,2469,1,0,0,0,2469,2470,3,1230,615,0,2470,2471,3,192,96,0,2471,2473,3,136,68,0,2472,2474,5,290,0,0,2473,2472,1,0,0,0,2473,2474,1,0,0,0,2474,2475,1,0,0,0,2475,2476,3,138,69,0,2476,2477,3,144,72,0,2477,2478,3,12,6,0,2478,2479,3,140,70,0,2479,2480,3,974,487,0,2480,2494,1,0,0,0,2481,2482,5,169,0,0,2482,2483,5,2,0,0,2483,2484,3,796,398,0,2484,2485,5,3,0,0,2485,2487,5,94,0,0,2486,2488,5,290,0,0,2487,2486,1,0,0,0,2487,2488,1,0,0,0,2488,2489,1,0,0,0,2489,2490,3,138,69,0,2490,2491,3,12,6,0,2491,2492,3,140,70,0,2492,2494,1,0,0,0,2493,2465,1,0,0,0,2493,2481,1,0,0,0,2494,135,1,0,0,0,2495,2496,7,9,0,0,2496,137,1,0,0,0,2497,2501,3,1252,626,0,2498,2501,5,336,0,0,2499,2501,5,337,0,0,2500,2497,1,0,0,0,2500,2498,1,0,0,0,2500,2499,1,0,0,0,2501,139,1,0,0,0,2502,2504,3,142,71,0,2503,2502,1,0,0,0,2504,2507,1,0,0,0,2505,2503,1,0,0,0,2505,2506,1,0,0,0,2506,2513,1,0,0,0,2507,2505,1,0,0,0,2508,2509,5,2,0,0,2509,2510,3,146,73,0,2510,2511,5,3,0,0,2511,2513,1,0,0,0,2512,2505,1,0,0,0,2512,2508,1,0,0,0,2513,141,1,0,0,0,2514,2550,5,107,0,0,2515,2550,5,112,0,0,2516,2517,5,183,0,0,2517,2518,3,748,374,0,2518,2519,3,1252,626,0,2519,2550,1,0,0,0,2520,2521,5,78,0,0,2521,2522,3,748,374,0,2522,2523,3,1252,626,0,2523,2550,1,0,0,0,2524,2550,5,171,0,0,2525,2550,5,216,0,0,2526,2527,5,291,0,0,2527,2528,3,748,374,0,2528,2529,3,1252,626,0,2529,2550,1,0,0,0,2530,2531,5,197,0,0,2531,2532,3,748,374,0,2532,2533,3,1252,626,0,2533,2550,1,0,0,0,2534,2535,5,209,0,0,2535,2536,5,291,0,0,2536,2550,3,194,97,0,2537,2538,5,209,0,0,2538,2539,5,291,0,0,2539,2550,5,9,0,0,2540,2541,5,209,0,0,2541,2542,5,77,0,0,2542,2543,5,78,0,0,2543,2550,3,194,97,0,2544,2545,5,209,0,0,2545,2546,5,78,0,0,2546,2550,3,194,97,0,2547,2548,5,194,0,0,2548,2550,3,1252,626,0,2549,2514,1,0,0,0,2549,2515,1,0,0,0,2549,2516,1,0,0,0,2549,2520,1,0,0,0,2549,2524,1,0,0,0,2549,2525,1,0,0,0,2549,2526,1,0,0,0,2549,2530,1,0,0,0,2549,2534,1,0,0,0,2549,2537,1,0,0,0,2549,2540,1,0,0,0,2549,2544,1,0,0,0,2549,2547,1,0,0,0,2550,143,1,0,0,0,2551,2553,5,100,0,0,2552,2551,1,0,0,0,2552,2553,1,0,0,0,2553,2554,1,0,0,0,2554,2555,5,184,0,0,2555,2558,3,1252,626,0,2556,2558,1,0,0,0,2557,2552,1,0,0,0,2557,2556,1,0,0,0,2558,145,1,0,0,0,2559,2564,3,148,74,0,2560,2561,5,6,0,0,2561,2563,3,148,74,0,2562,2560,1,0,0,0,2563,2566,1,0,0,0,2564,2562,1,0,0,0,2564,2565,1,0,0,0,2565,147,1,0,0,0,2566,2564,1,0,0,0,2567,2568,3,1272,636,0,2568,2569,3,150,75,0,2569,149,1,0,0,0,2570,2586,3,58,29,0,2571,2586,3,264,132,0,2572,2586,5,9,0,0,2573,2574,5,2,0,0,2574,2579,3,58,29,0,2575,2576,5,6,0,0,2576,2578,3,58,29,0,2577,2575,1,0,0,0,2578,2581,1,0,0,0,2579,2577,1,0,0,0,2579,2580,1,0,0,0,2580,2582,1,0,0,0,2581,2579,1,0,0,0,2582,2583,5,3,0,0,2583,2586,1,0,0,0,2584,2586,1,0,0,0,2585,2570,1,0,0,0,2585,2571,1,0,0,0,2585,2572,1,0,0,0,2585,2573,1,0,0,0,2585,2584,1,0,0,0,2586,151,1,0,0,0,2587,2588,5,46,0,0,2588,2589,3,154,77,0,2589,2593,5,92,0,0,2590,2591,5,220,0,0,2591,2592,5,77,0,0,2592,2594,5,389,0,0,2593,2590,1,0,0,0,2593,2594,1,0,0,0,2594,2595,1,0,0,0,2595,2626,3,1230,615,0,2596,2597,5,2,0,0,2597,2598,3,156,78,0,2598,2599,5,3,0,0,2599,2600,3,216,108,0,2600,2601,3,218,109,0,2601,2602,3,226,113,0,2602,2603,3,228,114,0,2603,2604,3,230,115,0,2604,2605,3,232,116,0,2605,2627,1,0,0,0,2606,2607,5,268,0,0,2607,2608,3,470,235,0,2608,2609,3,158,79,0,2609,2610,3,218,109,0,2610,2611,3,226,113,0,2611,2612,3,228,114,0,2612,2613,3,230,115,0,2613,2614,3,232,116,0,2614,2627,1,0,0,0,2615,2616,5,278,0,0,2616,2617,5,268,0,0,2617,2618,3,1230,615,0,2618,2619,3,158,79,0,2619,2620,3,120,60,0,2620,2621,3,218,109,0,2621,2622,3,226,113,0,2622,2623,3,228,114,0,2623,2624,3,230,115,0,2624,2625,3,232,116,0,2625,2627,1,0,0,0,2626,2596,1,0,0,0,2626,2606,1,0,0,0,2626,2615,1,0,0,0,2627,153,1,0,0,0,2628,2637,5,347,0,0,2629,2637,5,345,0,0,2630,2631,5,245,0,0,2631,2637,7,10,0,0,2632,2633,5,213,0,0,2633,2637,7,10,0,0,2634,2637,5,360,0,0,2635,2637,1,0,0,0,2636,2628,1,0,0,0,2636,2629,1,0,0,0,2636,2630,1,0,0,0,2636,2632,1,0,0,0,2636,2634,1,0,0,0,2636,2635,1,0,0,0,2637,155,1,0,0,0,2638,2641,3,160,80,0,2639,2641,1,0,0,0,2640,2638,1,0,0,0,2640,2639,1,0,0,0,2641,157,1,0,0,0,2642,2643,5,2,0,0,2643,2644,3,162,81,0,2644,2645,5,3,0,0,2645,2648,1,0,0,0,2646,2648,1,0,0,0,2647,2642,1,0,0,0,2647,2646,1,0,0,0,2648,159,1,0,0,0,2649,2654,3,164,82,0,2650,2651,5,6,0,0,2651,2653,3,164,82,0,2652,2650,1,0,0,0,2653,2656,1,0,0,0,2654,2652,1,0,0,0,2654,2655,1,0,0,0,2655,161,1,0,0,0,2656,2654,1,0,0,0,2657,2662,3,166,83,0,2658,2659,5,6,0,0,2659,2661,3,166,83,0,2660,2658,1,0,0,0,2661,2664,1,0,0,0,2662,2660,1,0,0,0,2662,2663,1,0,0,0,2663,163,1,0,0,0,2664,2662,1,0,0,0,2665,2669,3,188,94,0,2666,2669,3,182,91,0,2667,2669,3,168,84,0,2668,2665,1,0,0,0,2668,2666,1,0,0,0,2668,2667,1,0,0,0,2669,165,1,0,0,0,2670,2673,3,170,85,0,2671,2673,3,188,94,0,2672,2670,1,0,0,0,2672,2671,1,0,0,0,2673,167,1,0,0,0,2674,2675,3,1264,632,0,2675,2676,3,996,498,0,2676,2677,3,302,151,0,2677,2678,3,172,86,0,2678,169,1,0,0,0,2679,2682,3,1264,632,0,2680,2681,5,105,0,0,2681,2683,5,273,0,0,2682,2680,1,0,0,0,2682,2683,1,0,0,0,2683,2684,1,0,0,0,2684,2685,3,172,86,0,2685,171,1,0,0,0,2686,2688,3,174,87,0,2687,2686,1,0,0,0,2688,2691,1,0,0,0,2689,2687,1,0,0,0,2689,2690,1,0,0,0,2690,173,1,0,0,0,2691,2689,1,0,0,0,2692,2693,5,45,0,0,2693,2694,3,1234,617,0,2694,2695,3,176,88,0,2695,2701,1,0,0,0,2696,2701,3,176,88,0,2697,2701,3,180,90,0,2698,2699,5,43,0,0,2699,2701,3,470,235,0,2700,2692,1,0,0,0,2700,2696,1,0,0,0,2700,2697,1,0,0,0,2700,2698,1,0,0,0,2701,175,1,0,0,0,2702,2703,5,77,0,0,2703,2743,5,78,0,0,2704,2743,5,78,0,0,2705,2706,5,98,0,0,2706,2707,3,594,297,0,2707,2708,3,234,117,0,2708,2743,1,0,0,0,2709,2710,5,85,0,0,2710,2711,5,236,0,0,2711,2712,3,594,297,0,2712,2713,3,234,117,0,2713,2743,1,0,0,0,2714,2715,5,42,0,0,2715,2716,5,2,0,0,2716,2717,3,1038,519,0,2717,2720,5,3,0,0,2718,2719,5,262,0,0,2719,2721,5,228,0,0,2720,2718,1,0,0,0,2720,2721,1,0,0,0,2721,2743,1,0,0,0,2722,2723,5,53,0,0,2723,2743,3,1080,540,0,2724,2725,5,438,0,0,2725,2726,3,178,89,0,2726,2734,5,36,0,0,2727,2728,5,219,0,0,2728,2735,3,258,129,0,2729,2730,5,2,0,0,2730,2731,3,1038,519,0,2731,2732,5,3,0,0,2732,2733,5,440,0,0,2733,2735,1,0,0,0,2734,2727,1,0,0,0,2734,2729,1,0,0,0,2735,2743,1,0,0,0,2736,2737,5,86,0,0,2737,2738,3,1230,615,0,2738,2739,3,192,96,0,2739,2740,3,200,100,0,2740,2741,3,208,104,0,2741,2743,1,0,0,0,2742,2702,1,0,0,0,2742,2704,1,0,0,0,2742,2705,1,0,0,0,2742,2709,1,0,0,0,2742,2714,1,0,0,0,2742,2722,1,0,0,0,2742,2724,1,0,0,0,2742,2736,1,0,0,0,2743,177,1,0,0,0,2744,2748,5,139,0,0,2745,2746,5,147,0,0,2746,2748,5,53,0,0,2747,2744,1,0,0,0,2747,2745,1,0,0,0,2748,179,1,0,0,0,2749,2755,5,54,0,0,2750,2751,5,77,0,0,2751,2755,5,54,0,0,2752,2753,5,69,0,0,2753,2755,7,5,0,0,2754,2749,1,0,0,0,2754,2750,1,0,0,0,2754,2752,1,0,0,0,2755,181,1,0,0,0,2756,2757,5,120,0,0,2757,2758,3,1230,615,0,2758,2759,3,184,92,0,2759,183,1,0,0,0,2760,2761,7,11,0,0,2761,2763,3,186,93,0,2762,2760,1,0,0,0,2763,2766,1,0,0,0,2764,2762,1,0,0,0,2764,2765,1,0,0,0,2765,185,1,0,0,0,2766,2764,1,0,0,0,2767,2768,7,12,0,0,2768,187,1,0,0,0,2769,2770,5,45,0,0,2770,2771,3,1234,617,0,2771,2772,3,190,95,0,2772,2775,1,0,0,0,2773,2775,3,190,95,0,2774,2769,1,0,0,0,2774,2773,1,0,0,0,2775,189,1,0,0,0,2776,2777,5,42,0,0,2777,2778,5,2,0,0,2778,2779,3,1038,519,0,2779,2780,5,3,0,0,2780,2781,3,396,198,0,2781,2835,1,0,0,0,2782,2794,5,98,0,0,2783,2784,5,2,0,0,2784,2785,3,194,97,0,2785,2786,5,3,0,0,2786,2787,3,198,99,0,2787,2788,3,594,297,0,2788,2789,3,234,117,0,2789,2790,3,396,198,0,2790,2795,1,0,0,0,2791,2792,3,236,118,0,2792,2793,3,396,198,0,2793,2795,1,0,0,0,2794,2783,1,0,0,0,2794,2791,1,0,0,0,2795,2835,1,0,0,0,2796,2797,5,85,0,0,2797,2809,5,236,0,0,2798,2799,5,2,0,0,2799,2800,3,194,97,0,2800,2801,5,3,0,0,2801,2802,3,198,99,0,2802,2803,3,594,297,0,2803,2804,3,234,117,0,2804,2805,3,396,198,0,2805,2810,1,0,0,0,2806,2807,3,236,118,0,2807,2808,3,396,198,0,2808,2810,1,0,0,0,2809,2798,1,0,0,0,2809,2806,1,0,0,0,2810,2835,1,0,0,0,2811,2812,5,199,0,0,2812,2813,3,534,267,0,2813,2814,5,2,0,0,2814,2815,3,202,101,0,2815,2816,5,3,0,0,2816,2817,3,198,99,0,2817,2818,3,594,297,0,2818,2819,3,234,117,0,2819,2820,3,206,103,0,2820,2821,3,396,198,0,2821,2835,1,0,0,0,2822,2823,5,63,0,0,2823,2824,5,236,0,0,2824,2825,5,2,0,0,2825,2826,3,194,97,0,2826,2827,5,3,0,0,2827,2828,5,86,0,0,2828,2829,3,1230,615,0,2829,2830,3,192,96,0,2830,2831,3,200,100,0,2831,2832,3,208,104,0,2832,2833,3,396,198,0,2833,2835,1,0,0,0,2834,2776,1,0,0,0,2834,2782,1,0,0,0,2834,2796,1,0,0,0,2834,2811,1,0,0,0,2834,2822,1,0,0,0,2835,191,1,0,0,0,2836,2837,5,2,0,0,2837,2838,3,194,97,0,2838,2839,5,3,0,0,2839,2842,1,0,0,0,2840,2842,1,0,0,0,2841,2836,1,0,0,0,2841,2840,1,0,0,0,2842,193,1,0,0,0,2843,2848,3,196,98,0,2844,2845,5,6,0,0,2845,2847,3,196,98,0,2846,2844,1,0,0,0,2847,2850,1,0,0,0,2848,2846,1,0,0,0,2848,2849,1,0,0,0,2849,195,1,0,0,0,2850,2848,1,0,0,0,2851,2852,3,1264,632,0,2852,197,1,0,0,0,2853,2854,5,441,0,0,2854,2855,5,2,0,0,2855,2856,3,194,97,0,2856,2857,5,3,0,0,2857,2860,1,0,0,0,2858,2860,1,0,0,0,2859,2853,1,0,0,0,2859,2858,1,0,0,0,2860,199,1,0,0,0,2861,2862,5,249,0,0,2862,2865,7,13,0,0,2863,2865,1,0,0,0,2864,2861,1,0,0,0,2864,2863,1,0,0,0,2865,201,1,0,0,0,2866,2871,3,204,102,0,2867,2868,5,6,0,0,2868,2870,3,204,102,0,2869,2867,1,0,0,0,2870,2873,1,0,0,0,2871,2869,1,0,0,0,2871,2872,1,0,0,0,2872,203,1,0,0,0,2873,2871,1,0,0,0,2874,2875,3,540,270,0,2875,2882,5,105,0,0,2876,2883,3,610,305,0,2877,2878,5,271,0,0,2878,2879,5,2,0,0,2879,2880,3,610,305,0,2880,2881,5,3,0,0,2881,2883,1,0,0,0,2882,2876,1,0,0,0,2882,2877,1,0,0,0,2883,205,1,0,0,0,2884,2885,5,103,0,0,2885,2886,5,2,0,0,2886,2887,3,1038,519,0,2887,2888,5,3,0,0,2888,2891,1,0,0,0,2889,2891,1,0,0,0,2890,2884,1,0,0,0,2890,2889,1,0,0,0,2891,207,1,0,0,0,2892,2902,3,210,105,0,2893,2902,3,212,106,0,2894,2895,3,210,105,0,2895,2896,3,212,106,0,2896,2902,1,0,0,0,2897,2898,3,212,106,0,2898,2899,3,210,105,0,2899,2902,1,0,0,0,2900,2902,1,0,0,0,2901,2892,1,0,0,0,2901,2893,1,0,0,0,2901,2894,1,0,0,0,2901,2897,1,0,0,0,2901,2900,1,0,0,0,2902,209,1,0,0,0,2903,2904,5,80,0,0,2904,2905,5,362,0,0,2905,2906,3,214,107,0,2906,211,1,0,0,0,2907,2908,5,80,0,0,2908,2909,5,182,0,0,2909,2910,3,214,107,0,2910,213,1,0,0,0,2911,2912,5,262,0,0,2912,2918,5,132,0,0,2913,2918,5,308,0,0,2914,2918,5,150,0,0,2915,2916,5,326,0,0,2916,2918,7,14,0,0,2917,2911,1,0,0,0,2917,2913,1,0,0,0,2917,2914,1,0,0,0,2917,2915,1,0,0,0,2918,215,1,0,0,0,2919,2920,5,229,0,0,2920,2921,5,2,0,0,2921,2922,3,1208,604,0,2922,2923,5,3,0,0,2923,2926,1,0,0,0,2924,2926,1,0,0,0,2925,2919,1,0,0,0,2925,2924,1,0,0,0,2926,217,1,0,0,0,2927,2930,3,220,110,0,2928,2930,1,0,0,0,2929,2927,1,0,0,0,2929,2928,1,0,0,0,2930,219,1,0,0,0,2931,2932,5,278,0,0,2932,2933,5,147,0,0,2933,2934,3,1264,632,0,2934,2935,5,2,0,0,2935,2936,3,222,111,0,2936,2937,5,3,0,0,2937,221,1,0,0,0,2938,2943,3,224,112,0,2939,2940,5,6,0,0,2940,2942,3,224,112,0,2941,2939,1,0,0,0,2942,2945,1,0,0,0,2943,2941,1,0,0,0,2943,2944,1,0,0,0,2944,223,1,0,0,0,2945,2943,1,0,0,0,2946,2947,3,1264,632,0,2947,2948,3,544,272,0,2948,2949,3,546,273,0,2949,2961,1,0,0,0,2950,2951,3,1090,545,0,2951,2952,3,544,272,0,2952,2953,3,546,273,0,2953,2961,1,0,0,0,2954,2955,5,2,0,0,2955,2956,3,1038,519,0,2956,2957,5,3,0,0,2957,2958,3,544,272,0,2958,2959,3,546,273,0,2959,2961,1,0,0,0,2960,2946,1,0,0,0,2960,2950,1,0,0,0,2960,2954,1,0,0,0,2961,225,1,0,0,0,2962,2963,5,100,0,0,2963,2966,3,1234,617,0,2964,2966,1,0,0,0,2965,2962,1,0,0,0,2965,2964,1,0,0,0,2966,227,1,0,0,0,2967,2968,5,105,0,0,2968,2973,3,108,54,0,2969,2970,5,372,0,0,2970,2973,5,270,0,0,2971,2973,1,0,0,0,2972,2967,1,0,0,0,2972,2969,1,0,0,0,2972,2971,1,0,0,0,2973,229,1,0,0,0,2974,2975,5,80,0,0,2975,2981,5,161,0,0,2976,2982,5,191,0,0,2977,2978,5,182,0,0,2978,2982,5,313,0,0,2979,2980,5,285,0,0,2980,2982,5,313,0,0,2981,2976,1,0,0,0,2981,2977,1,0,0,0,2981,2979,1,0,0,0,2982,2985,1,0,0,0,2983,2985,1,0,0,0,2984,2974,1,0,0,0,2984,2983,1,0,0,0,2985,231,1,0,0,0,2986,2987,5,344,0,0,2987,2990,3,1234,617,0,2988,2990,1,0,0,0,2989,2986,1,0,0,0,2989,2988,1,0,0,0,2990,233,1,0,0,0,2991,2992,5,100,0,0,2992,2993,5,226,0,0,2993,2994,5,344,0,0,2994,2997,3,1234,617,0,2995,2997,1,0,0,0,2996,2991,1,0,0,0,2996,2995,1,0,0,0,2997,235,1,0,0,0,2998,2999,5,100,0,0,2999,3e3,5,226,0,0,3e3,3001,3,1218,609,0,3001,237,1,0,0,0,3002,3003,5,46,0,0,3003,3007,5,335,0,0,3004,3005,5,220,0,0,3005,3006,5,77,0,0,3006,3008,5,389,0,0,3007,3004,1,0,0,0,3007,3008,1,0,0,0,3008,3009,1,0,0,0,3009,3010,3,470,235,0,3010,3011,3,776,388,0,3011,3012,5,80,0,0,3012,3013,3,1156,578,0,3013,3014,5,64,0,0,3014,3015,3,938,469,0,3015,239,1,0,0,0,3016,3017,5,138,0,0,3017,3020,5,335,0,0,3018,3019,5,220,0,0,3019,3021,5,389,0,0,3020,3018,1,0,0,0,3020,3021,1,0,0,0,3021,3022,1,0,0,0,3022,3023,3,470,235,0,3023,3024,5,326,0,0,3024,3025,5,335,0,0,3025,3026,3,1258,629,0,3026,241,1,0,0,0,3027,3028,5,46,0,0,3028,3029,3,154,77,0,3029,3033,5,92,0,0,3030,3031,5,220,0,0,3031,3032,5,77,0,0,3032,3034,5,389,0,0,3033,3030,1,0,0,0,3033,3034,1,0,0,0,3034,3035,1,0,0,0,3035,3036,3,244,122,0,3036,3037,5,36,0,0,3037,3038,3,858,429,0,3038,3039,3,246,123,0,3039,243,1,0,0,0,3040,3041,3,1230,615,0,3041,3042,3,192,96,0,3042,3043,3,226,113,0,3043,3044,3,228,114,0,3044,3045,3,230,115,0,3045,3046,3,232,116,0,3046,245,1,0,0,0,3047,3051,5,105,0,0,3048,3052,5,174,0,0,3049,3050,5,262,0,0,3050,3052,5,174,0,0,3051,3048,1,0,0,0,3051,3049,1,0,0,0,3052,3055,1,0,0,0,3053,3055,1,0,0,0,3054,3047,1,0,0,0,3054,3053,1,0,0,0,3055,247,1,0,0,0,3056,3058,5,46,0,0,3057,3059,5,360,0,0,3058,3057,1,0,0,0,3058,3059,1,0,0,0,3059,3060,1,0,0,0,3060,3061,5,251,0,0,3061,3065,5,369,0,0,3062,3063,5,220,0,0,3063,3064,5,77,0,0,3064,3066,5,389,0,0,3065,3062,1,0,0,0,3065,3066,1,0,0,0,3066,3067,1,0,0,0,3067,3068,3,250,125,0,3068,3069,5,36,0,0,3069,3070,3,858,429,0,3070,3071,3,246,123,0,3071,249,1,0,0,0,3072,3073,3,1230,615,0,3073,3074,3,192,96,0,3074,3075,3,226,113,0,3075,3076,3,110,55,0,3076,3077,3,232,116,0,3077,251,1,0,0,0,3078,3079,5,298,0,0,3079,3080,5,251,0,0,3080,3082,5,369,0,0,3081,3083,5,109,0,0,3082,3081,1,0,0,0,3082,3083,1,0,0,0,3083,3084,1,0,0,0,3084,3085,3,1230,615,0,3085,3086,3,246,123,0,3086,253,1,0,0,0,3087,3088,5,46,0,0,3088,3089,3,154,77,0,3089,3093,5,321,0,0,3090,3091,5,220,0,0,3091,3092,5,77,0,0,3092,3094,5,389,0,0,3093,3090,1,0,0,0,3093,3094,1,0,0,0,3094,3095,1,0,0,0,3095,3097,3,1230,615,0,3096,3098,3,260,130,0,3097,3096,1,0,0,0,3097,3098,1,0,0,0,3098,255,1,0,0,0,3099,3100,5,138,0,0,3100,3103,5,321,0,0,3101,3102,5,220,0,0,3102,3104,5,389,0,0,3103,3101,1,0,0,0,3103,3104,1,0,0,0,3104,3105,1,0,0,0,3105,3106,3,1226,613,0,3106,3107,3,260,130,0,3107,257,1,0,0,0,3108,3109,5,2,0,0,3109,3110,3,260,130,0,3110,3111,5,3,0,0,3111,3114,1,0,0,0,3112,3114,1,0,0,0,3113,3108,1,0,0,0,3113,3112,1,0,0,0,3114,259,1,0,0,0,3115,3117,3,262,131,0,3116,3115,1,0,0,0,3117,3118,1,0,0,0,3118,3116,1,0,0,0,3118,3119,1,0,0,0,3119,261,1,0,0,0,3120,3121,5,36,0,0,3121,3152,3,998,499,0,3122,3123,5,148,0,0,3123,3152,3,264,132,0,3124,3152,5,173,0,0,3125,3127,5,225,0,0,3126,3128,5,147,0,0,3127,3126,1,0,0,0,3127,3128,1,0,0,0,3128,3129,1,0,0,0,3129,3152,3,264,132,0,3130,3131,5,252,0,0,3131,3152,3,264,132,0,3132,3133,5,255,0,0,3133,3152,3,264,132,0,3134,3135,5,262,0,0,3135,3152,7,15,0,0,3136,3137,5,274,0,0,3137,3138,5,147,0,0,3138,3152,3,470,235,0,3139,3140,5,321,0,0,3140,3141,5,259,0,0,3141,3152,3,470,235,0,3142,3143,5,333,0,0,3143,3144,3,12,6,0,3144,3145,3,264,132,0,3145,3152,1,0,0,0,3146,3147,5,307,0,0,3147,3149,3,12,6,0,3148,3150,3,264,132,0,3149,3148,1,0,0,0,3149,3150,1,0,0,0,3150,3152,1,0,0,0,3151,3120,1,0,0,0,3151,3122,1,0,0,0,3151,3124,1,0,0,0,3151,3125,1,0,0,0,3151,3130,1,0,0,0,3151,3132,1,0,0,0,3151,3134,1,0,0,0,3151,3136,1,0,0,0,3151,3139,1,0,0,0,3151,3142,1,0,0,0,3151,3146,1,0,0,0,3152,263,1,0,0,0,3153,3160,3,1248,624,0,3154,3155,5,12,0,0,3155,3160,3,1248,624,0,3156,3157,5,13,0,0,3157,3160,3,1248,624,0,3158,3160,3,1258,629,0,3159,3153,1,0,0,0,3159,3154,1,0,0,0,3159,3156,1,0,0,0,3159,3158,1,0,0,0,3160,265,1,0,0,0,3161,3166,3,264,132,0,3162,3163,5,6,0,0,3163,3165,3,264,132,0,3164,3162,1,0,0,0,3165,3168,1,0,0,0,3166,3164,1,0,0,0,3166,3167,1,0,0,0,3167,267,1,0,0,0,3168,3166,1,0,0,0,3169,3170,5,46,0,0,3170,3172,3,554,277,0,3171,3173,5,352,0,0,3172,3171,1,0,0,0,3172,3173,1,0,0,0,3173,3174,1,0,0,0,3174,3175,3,276,138,0,3175,3176,5,238,0,0,3176,3183,3,1234,617,0,3177,3178,5,215,0,0,3178,3179,3,270,135,0,3179,3181,3,272,136,0,3180,3182,3,274,137,0,3181,3180,1,0,0,0,3181,3182,1,0,0,0,3182,3184,1,0,0,0,3183,3177,1,0,0,0,3183,3184,1,0,0,0,3184,269,1,0,0,0,3185,3187,3,1234,617,0,3186,3188,3,472,236,0,3187,3186,1,0,0,0,3187,3188,1,0,0,0,3188,271,1,0,0,0,3189,3190,5,230,0,0,3190,3193,3,270,135,0,3191,3193,1,0,0,0,3192,3189,1,0,0,0,3192,3191,1,0,0,0,3193,273,1,0,0,0,3194,3195,5,366,0,0,3195,3199,3,270,135,0,3196,3197,5,262,0,0,3197,3199,5,366,0,0,3198,3194,1,0,0,0,3198,3196,1,0,0,0,3199,275,1,0,0,0,3200,3203,5,288,0,0,3201,3203,1,0,0,0,3202,3200,1,0,0,0,3202,3201,1,0,0,0,3203,277,1,0,0,0,3204,3205,5,46,0,0,3205,3206,5,344,0,0,3206,3207,3,1234,617,0,3207,3208,3,280,140,0,3208,3209,5,246,0,0,3209,3210,3,1252,626,0,3210,3211,3,110,55,0,3211,279,1,0,0,0,3212,3213,5,275,0,0,3213,3216,3,1260,630,0,3214,3216,1,0,0,0,3215,3212,1,0,0,0,3215,3214,1,0,0,0,3216,281,1,0,0,0,3217,3218,5,191,0,0,3218,3221,5,344,0,0,3219,3220,5,220,0,0,3220,3222,5,389,0,0,3221,3219,1,0,0,0,3221,3222,1,0,0,0,3222,3223,1,0,0,0,3223,3224,3,1234,617,0,3224,283,1,0,0,0,3225,3226,5,46,0,0,3226,3230,5,204,0,0,3227,3228,5,220,0,0,3228,3229,5,77,0,0,3229,3231,5,389,0,0,3230,3227,1,0,0,0,3230,3231,1,0,0,0,3231,3232,1,0,0,0,3232,3233,3,1234,617,0,3233,3237,3,12,6,0,3234,3236,3,286,143,0,3235,3234,1,0,0,0,3236,3239,1,0,0,0,3237,3235,1,0,0,0,3237,3238,1,0,0,0,3238,285,1,0,0,0,3239,3237,1,0,0,0,3240,3241,5,316,0,0,3241,3248,3,1214,607,0,3242,3243,5,368,0,0,3243,3248,3,64,32,0,3244,3245,5,64,0,0,3245,3248,3,64,32,0,3246,3248,5,150,0,0,3247,3240,1,0,0,0,3247,3242,1,0,0,0,3247,3244,1,0,0,0,3247,3246,1,0,0,0,3248,287,1,0,0,0,3249,3250,5,138,0,0,3250,3251,5,204,0,0,3251,3252,3,1234,617,0,3252,3256,5,362,0,0,3253,3255,3,290,145,0,3254,3253,1,0,0,0,3255,3258,1,0,0,0,3256,3254,1,0,0,0,3256,3257,1,0,0,0,3257,289,1,0,0,0,3258,3256,1,0,0,0,3259,3260,5,94,0,0,3260,3261,3,64,32,0,3261,291,1,0,0,0,3262,3263,5,138,0,0,3263,3264,5,204,0,0,3264,3265,3,1234,617,0,3265,3266,3,32,16,0,3266,3267,3,462,231,0,3267,3268,3,1234,617,0,3268,3402,1,0,0,0,3269,3270,5,138,0,0,3270,3271,5,204,0,0,3271,3272,3,1234,617,0,3272,3273,3,32,16,0,3273,3274,5,311,0,0,3274,3275,3,1260,630,0,3275,3402,1,0,0,0,3276,3277,5,138,0,0,3277,3278,5,204,0,0,3278,3279,3,1234,617,0,3279,3280,3,32,16,0,3280,3281,5,175,0,0,3281,3282,3,1210,605,0,3282,3402,1,0,0,0,3283,3284,5,138,0,0,3284,3285,5,204,0,0,3285,3286,3,1234,617,0,3286,3287,3,32,16,0,3287,3288,5,316,0,0,3288,3289,3,1214,607,0,3289,3402,1,0,0,0,3290,3291,5,138,0,0,3291,3292,5,204,0,0,3292,3293,3,1234,617,0,3293,3294,3,32,16,0,3294,3295,5,226,0,0,3295,3296,3,1218,609,0,3296,3402,1,0,0,0,3297,3298,5,138,0,0,3298,3299,5,204,0,0,3299,3300,3,1234,617,0,3300,3301,3,32,16,0,3301,3302,3,460,230,0,3302,3303,3,470,235,0,3303,3402,1,0,0,0,3304,3305,5,138,0,0,3305,3306,5,204,0,0,3306,3307,3,1234,617,0,3307,3308,3,32,16,0,3308,3309,5,321,0,0,3309,3310,3,1226,613,0,3310,3402,1,0,0,0,3311,3312,5,138,0,0,3312,3313,5,204,0,0,3313,3314,3,1234,617,0,3314,3315,3,32,16,0,3315,3316,5,136,0,0,3316,3317,3,580,290,0,3317,3402,1,0,0,0,3318,3319,5,138,0,0,3319,3320,5,204,0,0,3320,3321,3,1234,617,0,3321,3322,3,32,16,0,3322,3323,5,41,0,0,3323,3324,5,2,0,0,3324,3325,3,996,498,0,3325,3326,5,36,0,0,3326,3327,3,996,498,0,3327,3328,5,3,0,0,3328,3402,1,0,0,0,3329,3330,5,138,0,0,3330,3331,5,204,0,0,3331,3332,3,1234,617,0,3332,3333,3,32,16,0,3333,3334,5,189,0,0,3334,3335,3,996,498,0,3335,3402,1,0,0,0,3336,3337,5,138,0,0,3337,3338,5,204,0,0,3338,3339,3,1234,617,0,3339,3340,3,32,16,0,3340,3341,5,211,0,0,3341,3342,3,560,280,0,3342,3402,1,0,0,0,3343,3344,5,138,0,0,3344,3345,5,204,0,0,3345,3346,3,1234,617,0,3346,3347,3,32,16,0,3347,3348,5,271,0,0,3348,3349,3,614,307,0,3349,3402,1,0,0,0,3350,3351,5,138,0,0,3351,3352,5,204,0,0,3352,3353,3,1234,617,0,3353,3354,3,32,16,0,3354,3355,5,271,0,0,3355,3356,5,156,0,0,3356,3357,3,470,235,0,3357,3358,5,100,0,0,3358,3359,3,1234,617,0,3359,3402,1,0,0,0,3360,3361,5,138,0,0,3361,3362,5,204,0,0,3362,3363,3,1234,617,0,3363,3364,3,32,16,0,3364,3365,5,271,0,0,3365,3366,5,206,0,0,3366,3367,3,470,235,0,3367,3368,5,100,0,0,3368,3369,3,1234,617,0,3369,3402,1,0,0,0,3370,3371,5,138,0,0,3371,3372,5,204,0,0,3372,3373,3,1234,617,0,3373,3374,3,32,16,0,3374,3375,5,289,0,0,3375,3376,3,560,280,0,3376,3402,1,0,0,0,3377,3378,5,138,0,0,3378,3379,5,204,0,0,3379,3380,3,1234,617,0,3380,3381,3,32,16,0,3381,3382,5,442,0,0,3382,3383,3,560,280,0,3383,3402,1,0,0,0,3384,3385,5,138,0,0,3385,3386,5,204,0,0,3386,3387,3,1234,617,0,3387,3388,3,32,16,0,3388,3389,5,443,0,0,3389,3390,5,62,0,0,3390,3391,3,996,498,0,3391,3392,5,238,0,0,3392,3393,3,1234,617,0,3393,3402,1,0,0,0,3394,3395,5,138,0,0,3395,3396,5,204,0,0,3396,3397,3,1234,617,0,3397,3398,3,32,16,0,3398,3399,5,353,0,0,3399,3400,3,996,498,0,3400,3402,1,0,0,0,3401,3262,1,0,0,0,3401,3269,1,0,0,0,3401,3276,1,0,0,0,3401,3283,1,0,0,0,3401,3290,1,0,0,0,3401,3297,1,0,0,0,3401,3304,1,0,0,0,3401,3311,1,0,0,0,3401,3318,1,0,0,0,3401,3329,1,0,0,0,3401,3336,1,0,0,0,3401,3343,1,0,0,0,3401,3350,1,0,0,0,3401,3360,1,0,0,0,3401,3370,1,0,0,0,3401,3377,1,0,0,0,3401,3384,1,0,0,0,3401,3394,1,0,0,0,3402,293,1,0,0,0,3403,3404,5,46,0,0,3404,3405,5,63,0,0,3405,3406,5,174,0,0,3406,3407,5,374,0,0,3407,3409,3,1234,617,0,3408,3410,3,298,149,0,3409,3408,1,0,0,0,3409,3410,1,0,0,0,3410,3411,1,0,0,0,3411,3412,3,302,151,0,3412,295,1,0,0,0,3413,3414,5,215,0,0,3414,3422,3,270,135,0,3415,3416,5,262,0,0,3416,3422,5,215,0,0,3417,3418,5,366,0,0,3418,3422,3,270,135,0,3419,3420,5,262,0,0,3420,3422,5,366,0,0,3421,3413,1,0,0,0,3421,3415,1,0,0,0,3421,3417,1,0,0,0,3421,3419,1,0,0,0,3422,297,1,0,0,0,3423,3425,3,296,148,0,3424,3423,1,0,0,0,3425,3426,1,0,0,0,3426,3424,1,0,0,0,3426,3427,1,0,0,0,3427,299,1,0,0,0,3428,3429,5,138,0,0,3429,3430,5,63,0,0,3430,3431,5,174,0,0,3431,3432,5,374,0,0,3432,3434,3,1234,617,0,3433,3435,3,298,149,0,3434,3433,1,0,0,0,3434,3435,1,0,0,0,3435,3436,1,0,0,0,3436,3437,3,306,153,0,3437,3446,1,0,0,0,3438,3439,5,138,0,0,3439,3440,5,63,0,0,3440,3441,5,174,0,0,3441,3442,5,374,0,0,3442,3443,3,1234,617,0,3443,3444,3,298,149,0,3444,3446,1,0,0,0,3445,3428,1,0,0,0,3445,3438,1,0,0,0,3446,301,1,0,0,0,3447,3448,5,273,0,0,3448,3449,5,2,0,0,3449,3450,3,304,152,0,3450,3451,5,3,0,0,3451,3454,1,0,0,0,3452,3454,1,0,0,0,3453,3447,1,0,0,0,3453,3452,1,0,0,0,3454,303,1,0,0,0,3455,3460,3,312,156,0,3456,3457,5,6,0,0,3457,3459,3,312,156,0,3458,3456,1,0,0,0,3459,3462,1,0,0,0,3460,3458,1,0,0,0,3460,3461,1,0,0,0,3461,305,1,0,0,0,3462,3460,1,0,0,0,3463,3464,5,273,0,0,3464,3465,5,2,0,0,3465,3466,3,308,154,0,3466,3467,5,3,0,0,3467,307,1,0,0,0,3468,3473,3,310,155,0,3469,3470,5,6,0,0,3470,3472,3,310,155,0,3471,3469,1,0,0,0,3472,3475,1,0,0,0,3473,3471,1,0,0,0,3473,3474,1,0,0,0,3474,309,1,0,0,0,3475,3473,1,0,0,0,3476,3484,3,312,156,0,3477,3478,5,326,0,0,3478,3484,3,312,156,0,3479,3480,5,133,0,0,3480,3484,3,312,156,0,3481,3482,5,191,0,0,3482,3484,3,314,157,0,3483,3476,1,0,0,0,3483,3477,1,0,0,0,3483,3479,1,0,0,0,3483,3481,1,0,0,0,3484,311,1,0,0,0,3485,3486,3,314,157,0,3486,3487,3,316,158,0,3487,313,1,0,0,0,3488,3489,3,1272,636,0,3489,315,1,0,0,0,3490,3491,3,1252,626,0,3491,317,1,0,0,0,3492,3493,5,46,0,0,3493,3494,5,324,0,0,3494,3495,3,1234,617,0,3495,3497,3,320,160,0,3496,3498,3,322,161,0,3497,3496,1,0,0,0,3497,3498,1,0,0,0,3498,3499,1,0,0,0,3499,3500,5,63,0,0,3500,3501,5,174,0,0,3501,3502,5,374,0,0,3502,3503,3,1234,617,0,3503,3504,3,302,151,0,3504,3522,1,0,0,0,3505,3506,5,46,0,0,3506,3507,5,324,0,0,3507,3508,5,220,0,0,3508,3509,5,77,0,0,3509,3510,5,389,0,0,3510,3511,3,1234,617,0,3511,3513,3,320,160,0,3512,3514,3,322,161,0,3513,3512,1,0,0,0,3513,3514,1,0,0,0,3514,3515,1,0,0,0,3515,3516,5,63,0,0,3516,3517,5,174,0,0,3517,3518,5,374,0,0,3518,3519,3,1234,617,0,3519,3520,3,302,151,0,3520,3522,1,0,0,0,3521,3492,1,0,0,0,3521,3505,1,0,0,0,3522,319,1,0,0,0,3523,3524,5,353,0,0,3524,3527,3,1252,626,0,3525,3527,1,0,0,0,3526,3523,1,0,0,0,3526,3525,1,0,0,0,3527,321,1,0,0,0,3528,3531,5,368,0,0,3529,3532,3,1252,626,0,3530,3532,5,78,0,0,3531,3529,1,0,0,0,3531,3530,1,0,0,0,3532,323,1,0,0,0,3533,3534,5,138,0,0,3534,3535,5,324,0,0,3535,3541,3,1234,617,0,3536,3542,3,306,153,0,3537,3539,3,322,161,0,3538,3540,3,306,153,0,3539,3538,1,0,0,0,3539,3540,1,0,0,0,3540,3542,1,0,0,0,3541,3536,1,0,0,0,3541,3537,1,0,0,0,3542,325,1,0,0,0,3543,3544,5,46,0,0,3544,3545,5,63,0,0,3545,3546,5,92,0,0,3546,3547,3,1230,615,0,3547,3548,5,2,0,0,3548,3549,3,156,78,0,3549,3550,5,3,0,0,3550,3551,3,216,108,0,3551,3552,5,324,0,0,3552,3553,3,1234,617,0,3553,3554,3,302,151,0,3554,3600,1,0,0,0,3555,3556,5,46,0,0,3556,3557,5,63,0,0,3557,3558,5,92,0,0,3558,3559,5,220,0,0,3559,3560,5,77,0,0,3560,3561,5,389,0,0,3561,3562,3,1230,615,0,3562,3563,5,2,0,0,3563,3564,3,156,78,0,3564,3565,5,3,0,0,3565,3566,3,216,108,0,3566,3567,5,324,0,0,3567,3568,3,1234,617,0,3568,3569,3,302,151,0,3569,3600,1,0,0,0,3570,3571,5,46,0,0,3571,3572,5,63,0,0,3572,3573,5,92,0,0,3573,3574,3,1230,615,0,3574,3575,5,278,0,0,3575,3576,5,268,0,0,3576,3577,3,1230,615,0,3577,3578,3,158,79,0,3578,3579,3,120,60,0,3579,3580,5,324,0,0,3580,3581,3,1234,617,0,3581,3582,3,302,151,0,3582,3600,1,0,0,0,3583,3584,5,46,0,0,3584,3585,5,63,0,0,3585,3586,5,92,0,0,3586,3587,5,220,0,0,3587,3588,5,77,0,0,3588,3589,5,389,0,0,3589,3590,3,1230,615,0,3590,3591,5,278,0,0,3591,3592,5,268,0,0,3592,3593,3,1230,615,0,3593,3594,3,158,79,0,3594,3595,3,120,60,0,3595,3596,5,324,0,0,3596,3597,3,1234,617,0,3597,3598,3,302,151,0,3598,3600,1,0,0,0,3599,3543,1,0,0,0,3599,3555,1,0,0,0,3599,3570,1,0,0,0,3599,3583,1,0,0,0,3600,327,1,0,0,0,3601,3602,5,444,0,0,3602,3603,5,63,0,0,3603,3604,5,316,0,0,3604,3605,3,1234,617,0,3605,3606,3,332,166,0,3606,3607,5,64,0,0,3607,3608,5,324,0,0,3608,3609,3,1234,617,0,3609,3610,5,71,0,0,3610,3611,3,1234,617,0,3611,3612,3,302,151,0,3612,329,1,0,0,0,3613,3614,5,74,0,0,3614,3617,5,94,0,0,3615,3617,5,59,0,0,3616,3613,1,0,0,0,3616,3615,1,0,0,0,3617,331,1,0,0,0,3618,3619,3,330,165,0,3619,3620,5,2,0,0,3620,3621,3,960,480,0,3621,3622,5,3,0,0,3622,3625,1,0,0,0,3623,3625,1,0,0,0,3624,3618,1,0,0,0,3624,3623,1,0,0,0,3625,333,1,0,0,0,3626,3627,5,46,0,0,3627,3628,5,99,0,0,3628,3629,5,248,0,0,3629,3630,5,62,0,0,3630,3631,3,336,168,0,3631,3632,5,324,0,0,3632,3633,3,1234,617,0,3633,3634,3,302,151,0,3634,3648,1,0,0,0,3635,3636,5,46,0,0,3636,3637,5,99,0,0,3637,3638,5,248,0,0,3638,3639,5,220,0,0,3639,3640,5,77,0,0,3640,3641,5,389,0,0,3641,3642,5,62,0,0,3642,3643,3,336,168,0,3643,3644,5,324,0,0,3644,3645,3,1234,617,0,3645,3646,3,302,151,0,3646,3648,1,0,0,0,3647,3626,1,0,0,0,3647,3635,1,0,0,0,3648,335,1,0,0,0,3649,3652,3,1260,630,0,3650,3652,5,99,0,0,3651,3649,1,0,0,0,3651,3650,1,0,0,0,3652,337,1,0,0,0,3653,3654,5,191,0,0,3654,3655,5,99,0,0,3655,3656,5,248,0,0,3656,3657,5,62,0,0,3657,3658,3,336,168,0,3658,3659,5,324,0,0,3659,3660,3,1234,617,0,3660,3672,1,0,0,0,3661,3662,5,191,0,0,3662,3663,5,99,0,0,3663,3664,5,248,0,0,3664,3665,5,220,0,0,3665,3666,5,389,0,0,3666,3667,5,62,0,0,3667,3668,3,336,168,0,3668,3669,5,324,0,0,3669,3670,3,1234,617,0,3670,3672,1,0,0,0,3671,3653,1,0,0,0,3671,3661,1,0,0,0,3672,339,1,0,0,0,3673,3674,5,138,0,0,3674,3675,5,99,0,0,3675,3676,5,248,0,0,3676,3677,5,62,0,0,3677,3678,3,336,168,0,3678,3679,5,324,0,0,3679,3680,3,1234,617,0,3680,3681,3,306,153,0,3681,341,1,0,0,0,3682,3683,5,46,0,0,3683,3684,5,445,0,0,3684,3685,3,1234,617,0,3685,3686,5,80,0,0,3686,3687,3,1230,615,0,3687,3688,3,352,176,0,3688,3689,3,354,177,0,3689,3690,3,350,175,0,3690,3691,3,346,173,0,3691,3692,3,348,174,0,3692,343,1,0,0,0,3693,3694,5,138,0,0,3694,3695,5,445,0,0,3695,3696,3,1234,617,0,3696,3697,5,80,0,0,3697,3698,3,1230,615,0,3698,3699,3,350,175,0,3699,3700,3,346,173,0,3700,3701,3,348,174,0,3701,345,1,0,0,0,3702,3703,5,100,0,0,3703,3704,5,2,0,0,3704,3705,3,1038,519,0,3705,3706,5,3,0,0,3706,3709,1,0,0,0,3707,3709,1,0,0,0,3708,3702,1,0,0,0,3708,3707,1,0,0,0,3709,347,1,0,0,0,3710,3711,5,105,0,0,3711,3712,5,42,0,0,3712,3713,5,2,0,0,3713,3714,3,1038,519,0,3714,3715,5,3,0,0,3715,3718,1,0,0,0,3716,3718,1,0,0,0,3717,3710,1,0,0,0,3717,3716,1,0,0,0,3718,349,1,0,0,0,3719,3720,5,94,0,0,3720,3723,3,1262,631,0,3721,3723,1,0,0,0,3722,3719,1,0,0,0,3722,3721,1,0,0,0,3723,351,1,0,0,0,3724,3725,5,36,0,0,3725,3728,3,1274,637,0,3726,3728,1,0,0,0,3727,3724,1,0,0,0,3727,3726,1,0,0,0,3728,353,1,0,0,0,3729,3730,5,62,0,0,3730,3733,3,356,178,0,3731,3733,1,0,0,0,3732,3729,1,0,0,0,3732,3731,1,0,0,0,3733,355,1,0,0,0,3734,3735,7,16,0,0,3735,357,1,0,0,0,3736,3737,5,46,0,0,3737,3738,5,131,0,0,3738,3739,5,446,0,0,3739,3740,3,1234,617,0,3740,3741,5,353,0,0,3741,3742,3,360,180,0,3742,3743,5,215,0,0,3743,3744,3,270,135,0,3744,359,1,0,0,0,3745,3746,7,17,0,0,3746,361,1,0,0,0,3747,3748,5,46,0,0,3748,3749,5,350,0,0,3749,3750,3,1234,617,0,3750,3751,3,364,182,0,3751,3752,3,366,183,0,3752,3753,5,80,0,0,3753,3754,3,1230,615,0,3754,3755,3,370,185,0,3755,3756,3,382,191,0,3756,3757,3,386,193,0,3757,3758,5,202,0,0,3758,3759,3,388,194,0,3759,3760,3,1240,620,0,3760,3761,5,2,0,0,3761,3762,3,390,195,0,3762,3763,5,3,0,0,3763,3786,1,0,0,0,3764,3765,5,46,0,0,3765,3766,5,45,0,0,3766,3767,5,350,0,0,3767,3768,3,1234,617,0,3768,3769,5,135,0,0,3769,3770,3,366,183,0,3770,3771,5,80,0,0,3771,3772,3,1230,615,0,3772,3773,3,394,197,0,3773,3774,3,396,198,0,3774,3775,5,62,0,0,3775,3776,5,192,0,0,3776,3777,5,407,0,0,3777,3778,3,386,193,0,3778,3779,5,202,0,0,3779,3780,3,388,194,0,3780,3781,3,1240,620,0,3781,3782,5,2,0,0,3782,3783,3,390,195,0,3783,3784,5,3,0,0,3784,3786,1,0,0,0,3785,3747,1,0,0,0,3785,3764,1,0,0,0,3786,363,1,0,0,0,3787,3792,5,145,0,0,3788,3792,5,135,0,0,3789,3790,5,233,0,0,3790,3792,5,268,0,0,3791,3787,1,0,0,0,3791,3788,1,0,0,0,3791,3789,1,0,0,0,3792,365,1,0,0,0,3793,3798,3,368,184,0,3794,3795,5,82,0,0,3795,3797,3,368,184,0,3796,3794,1,0,0,0,3797,3800,1,0,0,0,3798,3796,1,0,0,0,3798,3799,1,0,0,0,3799,367,1,0,0,0,3800,3798,1,0,0,0,3801,3809,5,232,0,0,3802,3809,5,182,0,0,3803,3809,5,362,0,0,3804,3805,5,362,0,0,3805,3806,5,268,0,0,3806,3809,3,194,97,0,3807,3809,5,351,0,0,3808,3801,1,0,0,0,3808,3802,1,0,0,0,3808,3803,1,0,0,0,3808,3804,1,0,0,0,3808,3807,1,0,0,0,3809,369,1,0,0,0,3810,3811,5,447,0,0,3811,3814,3,372,186,0,3812,3814,1,0,0,0,3813,3810,1,0,0,0,3813,3812,1,0,0,0,3814,371,1,0,0,0,3815,3817,3,374,187,0,3816,3815,1,0,0,0,3817,3818,1,0,0,0,3818,3816,1,0,0,0,3818,3819,1,0,0,0,3819,373,1,0,0,0,3820,3821,3,376,188,0,3821,3822,3,378,189,0,3822,3823,3,748,374,0,3823,3824,3,380,190,0,3824,375,1,0,0,0,3825,3826,7,18,0,0,3826,377,1,0,0,0,3827,3828,7,19,0,0,3828,379,1,0,0,0,3829,3830,3,1264,632,0,3830,381,1,0,0,0,3831,3833,5,62,0,0,3832,3834,5,192,0,0,3833,3832,1,0,0,0,3833,3834,1,0,0,0,3834,3835,1,0,0,0,3835,3838,3,384,192,0,3836,3838,1,0,0,0,3837,3831,1,0,0,0,3837,3836,1,0,0,0,3838,383,1,0,0,0,3839,3840,7,20,0,0,3840,385,1,0,0,0,3841,3842,5,102,0,0,3842,3843,5,2,0,0,3843,3844,3,1038,519,0,3844,3845,5,3,0,0,3845,3848,1,0,0,0,3846,3848,1,0,0,0,3847,3841,1,0,0,0,3847,3846,1,0,0,0,3848,387,1,0,0,0,3849,3850,7,21,0,0,3850,389,1,0,0,0,3851,3854,3,392,196,0,3852,3854,1,0,0,0,3853,3851,1,0,0,0,3853,3852,1,0,0,0,3854,3859,1,0,0,0,3855,3856,5,6,0,0,3856,3858,3,392,196,0,3857,3855,1,0,0,0,3858,3861,1,0,0,0,3859,3857,1,0,0,0,3859,3860,1,0,0,0,3860,391,1,0,0,0,3861,3859,1,0,0,0,3862,3867,3,1250,625,0,3863,3867,3,1248,624,0,3864,3867,3,1252,626,0,3865,3867,3,1272,636,0,3866,3862,1,0,0,0,3866,3863,1,0,0,0,3866,3864,1,0,0,0,3866,3865,1,0,0,0,3867,393,1,0,0,0,3868,3869,5,64,0,0,3869,3872,3,1230,615,0,3870,3872,1,0,0,0,3871,3868,1,0,0,0,3871,3870,1,0,0,0,3872,395,1,0,0,0,3873,3875,3,398,199,0,3874,3873,1,0,0,0,3875,3878,1,0,0,0,3876,3874,1,0,0,0,3876,3877,1,0,0,0,3877,397,1,0,0,0,3878,3876,1,0,0,0,3879,3880,5,77,0,0,3880,3891,5,54,0,0,3881,3891,5,54,0,0,3882,3883,5,69,0,0,3883,3891,5,221,0,0,3884,3885,5,69,0,0,3885,3891,5,180,0,0,3886,3887,5,77,0,0,3887,3891,5,364,0,0,3888,3889,5,262,0,0,3889,3891,5,228,0,0,3890,3879,1,0,0,0,3890,3881,1,0,0,0,3890,3882,1,0,0,0,3890,3884,1,0,0,0,3890,3886,1,0,0,0,3890,3888,1,0,0,0,3891,399,1,0,0,0,3892,3893,5,46,0,0,3893,3894,5,198,0,0,3894,3895,5,350,0,0,3895,3896,3,1234,617,0,3896,3897,5,80,0,0,3897,3898,3,1272,636,0,3898,3899,5,202,0,0,3899,3900,3,388,194,0,3900,3901,3,1240,620,0,3901,3902,5,2,0,0,3902,3903,5,3,0,0,3903,3919,1,0,0,0,3904,3905,5,46,0,0,3905,3906,5,198,0,0,3906,3907,5,350,0,0,3907,3908,3,1234,617,0,3908,3909,5,80,0,0,3909,3910,3,1272,636,0,3910,3911,5,102,0,0,3911,3912,3,402,201,0,3912,3913,5,202,0,0,3913,3914,3,388,194,0,3914,3915,3,1240,620,0,3915,3916,5,2,0,0,3916,3917,5,3,0,0,3917,3919,1,0,0,0,3918,3892,1,0,0,0,3918,3904,1,0,0,0,3919,401,1,0,0,0,3920,3925,3,404,202,0,3921,3922,5,33,0,0,3922,3924,3,404,202,0,3923,3921,1,0,0,0,3924,3927,1,0,0,0,3925,3923,1,0,0,0,3925,3926,1,0,0,0,3926,403,1,0,0,0,3927,3925,1,0,0,0,3928,3929,3,1264,632,0,3929,3930,5,68,0,0,3930,3931,5,2,0,0,3931,3932,3,406,203,0,3932,3933,5,3,0,0,3933,405,1,0,0,0,3934,3939,3,1252,626,0,3935,3936,5,6,0,0,3936,3938,3,1252,626,0,3937,3935,1,0,0,0,3938,3941,1,0,0,0,3939,3937,1,0,0,0,3939,3940,1,0,0,0,3940,407,1,0,0,0,3941,3939,1,0,0,0,3942,3943,5,138,0,0,3943,3944,5,198,0,0,3944,3945,5,350,0,0,3945,3946,3,1234,617,0,3946,3947,3,410,205,0,3947,409,1,0,0,0,3948,3955,5,193,0,0,3949,3950,5,193,0,0,3950,3955,5,305,0,0,3951,3952,5,193,0,0,3952,3955,5,139,0,0,3953,3955,5,186,0,0,3954,3948,1,0,0,0,3954,3949,1,0,0,0,3954,3951,1,0,0,0,3954,3953,1,0,0,0,3955,411,1,0,0,0,3956,3957,5,46,0,0,3957,3958,5,140,0,0,3958,3959,3,470,235,0,3959,3960,5,42,0,0,3960,3961,5,2,0,0,3961,3962,3,1038,519,0,3962,3963,5,3,0,0,3963,3964,3,396,198,0,3964,413,1,0,0,0,3965,3966,5,46,0,0,3966,3967,3,554,277,0,3967,3968,5,136,0,0,3968,3969,3,1240,620,0,3969,3970,3,576,288,0,3970,3971,3,416,208,0,3971,4074,1,0,0,0,3972,3973,5,46,0,0,3973,3974,3,554,277,0,3974,3975,5,136,0,0,3975,3976,3,1240,620,0,3976,3977,3,422,211,0,3977,4074,1,0,0,0,3978,3979,5,46,0,0,3979,3980,5,271,0,0,3980,3981,3,610,305,0,3981,3982,3,416,208,0,3982,4074,1,0,0,0,3983,3984,5,46,0,0,3984,3985,5,353,0,0,3985,3986,3,470,235,0,3986,3987,3,416,208,0,3987,4074,1,0,0,0,3988,3989,5,46,0,0,3989,3990,5,353,0,0,3990,4074,3,470,235,0,3991,3992,5,46,0,0,3992,3993,5,353,0,0,3993,3994,3,470,235,0,3994,3995,5,36,0,0,3995,3996,5,2,0,0,3996,3997,3,978,489,0,3997,3998,5,3,0,0,3998,4074,1,0,0,0,3999,4e3,5,46,0,0,4e3,4001,5,353,0,0,4001,4002,3,470,235,0,4002,4003,5,36,0,0,4003,4004,5,196,0,0,4004,4006,5,2,0,0,4005,4007,3,426,213,0,4006,4005,1,0,0,0,4006,4007,1,0,0,0,4007,4008,1,0,0,0,4008,4009,5,3,0,0,4009,4074,1,0,0,0,4010,4011,5,46,0,0,4011,4012,5,353,0,0,4012,4013,3,470,235,0,4013,4014,5,36,0,0,4014,4015,5,292,0,0,4015,4016,3,416,208,0,4016,4074,1,0,0,0,4017,4018,5,46,0,0,4018,4019,5,348,0,0,4019,4020,5,318,0,0,4020,4021,5,276,0,0,4021,4022,3,470,235,0,4022,4023,3,416,208,0,4023,4074,1,0,0,0,4024,4025,5,46,0,0,4025,4026,5,348,0,0,4026,4027,5,318,0,0,4027,4028,5,185,0,0,4028,4029,3,470,235,0,4029,4030,3,416,208,0,4030,4074,1,0,0,0,4031,4032,5,46,0,0,4032,4033,5,348,0,0,4033,4034,5,318,0,0,4034,4035,5,346,0,0,4035,4036,3,470,235,0,4036,4037,3,416,208,0,4037,4074,1,0,0,0,4038,4039,5,46,0,0,4039,4040,5,348,0,0,4040,4041,5,318,0,0,4041,4042,5,163,0,0,4042,4043,3,470,235,0,4043,4044,3,416,208,0,4044,4074,1,0,0,0,4045,4046,5,46,0,0,4046,4047,5,108,0,0,4047,4048,3,470,235,0,4048,4049,3,416,208,0,4049,4074,1,0,0,0,4050,4051,5,46,0,0,4051,4052,5,108,0,0,4052,4053,5,220,0,0,4053,4054,5,77,0,0,4054,4055,5,389,0,0,4055,4056,3,470,235,0,4056,4057,3,416,208,0,4057,4074,1,0,0,0,4058,4059,5,46,0,0,4059,4060,5,108,0,0,4060,4061,3,470,235,0,4061,4062,5,64,0,0,4062,4063,3,470,235,0,4063,4074,1,0,0,0,4064,4065,5,46,0,0,4065,4066,5,108,0,0,4066,4067,5,220,0,0,4067,4068,5,77,0,0,4068,4069,5,389,0,0,4069,4070,3,470,235,0,4070,4071,5,64,0,0,4071,4072,3,470,235,0,4072,4074,1,0,0,0,4073,3965,1,0,0,0,4073,3972,1,0,0,0,4073,3978,1,0,0,0,4073,3983,1,0,0,0,4073,3988,1,0,0,0,4073,3991,1,0,0,0,4073,3999,1,0,0,0,4073,4010,1,0,0,0,4073,4017,1,0,0,0,4073,4024,1,0,0,0,4073,4031,1,0,0,0,4073,4038,1,0,0,0,4073,4045,1,0,0,0,4073,4050,1,0,0,0,4073,4058,1,0,0,0,4073,4064,1,0,0,0,4074,415,1,0,0,0,4075,4076,5,2,0,0,4076,4081,3,418,209,0,4077,4078,5,6,0,0,4078,4080,3,418,209,0,4079,4077,1,0,0,0,4080,4083,1,0,0,0,4081,4079,1,0,0,0,4081,4082,1,0,0,0,4082,4084,1,0,0,0,4083,4081,1,0,0,0,4084,4085,5,3,0,0,4085,417,1,0,0,0,4086,4089,3,1272,636,0,4087,4088,5,10,0,0,4088,4090,3,420,210,0,4089,4087,1,0,0,0,4089,4090,1,0,0,0,4090,419,1,0,0,0,4091,4098,3,574,287,0,4092,4098,3,1284,642,0,4093,4098,3,1152,576,0,4094,4098,3,264,132,0,4095,4098,3,1252,626,0,4096,4098,5,400,0,0,4097,4091,1,0,0,0,4097,4092,1,0,0,0,4097,4093,1,0,0,0,4097,4094,1,0,0,0,4097,4095,1,0,0,0,4097,4096,1,0,0,0,4098,421,1,0,0,0,4099,4100,5,2,0,0,4100,4105,3,424,212,0,4101,4102,5,6,0,0,4102,4104,3,424,212,0,4103,4101,1,0,0,0,4104,4107,1,0,0,0,4105,4103,1,0,0,0,4105,4106,1,0,0,0,4106,4108,1,0,0,0,4107,4105,1,0,0,0,4108,4109,5,3,0,0,4109,423,1,0,0,0,4110,4111,3,1274,637,0,4111,4112,5,10,0,0,4112,4113,3,420,210,0,4113,425,1,0,0,0,4114,4119,3,1252,626,0,4115,4116,5,6,0,0,4116,4118,3,1252,626,0,4117,4115,1,0,0,0,4118,4121,1,0,0,0,4119,4117,1,0,0,0,4119,4120,1,0,0,0,4120,427,1,0,0,0,4121,4119,1,0,0,0,4122,4123,5,138,0,0,4123,4124,5,353,0,0,4124,4125,3,470,235,0,4125,4126,5,133,0,0,4126,4127,5,450,0,0,4127,4128,3,430,215,0,4128,4129,3,1252,626,0,4129,4160,1,0,0,0,4130,4131,5,138,0,0,4131,4132,5,353,0,0,4132,4133,3,470,235,0,4133,4134,5,133,0,0,4134,4135,5,450,0,0,4135,4136,3,430,215,0,4136,4137,3,1252,626,0,4137,4138,5,145,0,0,4138,4139,3,1252,626,0,4139,4160,1,0,0,0,4140,4141,5,138,0,0,4141,4142,5,353,0,0,4142,4143,3,470,235,0,4143,4144,5,133,0,0,4144,4145,5,450,0,0,4145,4146,3,430,215,0,4146,4147,3,1252,626,0,4147,4148,5,135,0,0,4148,4149,3,1252,626,0,4149,4160,1,0,0,0,4150,4151,5,138,0,0,4151,4152,5,353,0,0,4152,4153,3,470,235,0,4153,4154,5,302,0,0,4154,4155,5,450,0,0,4155,4156,3,1252,626,0,4156,4157,5,94,0,0,4157,4158,3,1252,626,0,4158,4160,1,0,0,0,4159,4122,1,0,0,0,4159,4130,1,0,0,0,4159,4140,1,0,0,0,4159,4150,1,0,0,0,4160,429,1,0,0,0,4161,4162,5,220,0,0,4162,4163,5,77,0,0,4163,4166,5,389,0,0,4164,4166,1,0,0,0,4165,4161,1,0,0,0,4165,4164,1,0,0,0,4166,431,1,0,0,0,4167,4168,5,46,0,0,4168,4169,5,271,0,0,4169,4170,5,156,0,0,4170,4172,3,470,235,0,4171,4173,5,53,0,0,4172,4171,1,0,0,0,4172,4173,1,0,0,0,4173,4174,1,0,0,0,4174,4175,5,62,0,0,4175,4176,5,353,0,0,4176,4177,3,996,498,0,4177,4178,5,100,0,0,4178,4179,3,1234,617,0,4179,4180,3,438,219,0,4180,4181,5,36,0,0,4181,4182,3,434,217,0,4182,433,1,0,0,0,4183,4188,3,436,218,0,4184,4185,5,6,0,0,4185,4187,3,436,218,0,4186,4184,1,0,0,0,4187,4190,1,0,0,0,4188,4186,1,0,0,0,4188,4189,1,0,0,0,4189,435,1,0,0,0,4190,4188,1,0,0,0,4191,4192,5,271,0,0,4192,4193,3,1250,625,0,4193,4194,3,610,305,0,4194,4196,3,440,220,0,4195,4197,5,295,0,0,4196,4195,1,0,0,0,4196,4197,1,0,0,0,4197,4219,1,0,0,0,4198,4199,5,271,0,0,4199,4200,3,1250,625,0,4200,4201,3,614,307,0,4201,4203,3,440,220,0,4202,4204,5,295,0,0,4203,4202,1,0,0,0,4203,4204,1,0,0,0,4204,4219,1,0,0,0,4205,4206,5,211,0,0,4206,4207,3,1250,625,0,4207,4208,3,560,280,0,4208,4219,1,0,0,0,4209,4210,5,211,0,0,4210,4211,3,1250,625,0,4211,4212,5,2,0,0,4212,4213,3,1162,581,0,4213,4214,5,3,0,0,4214,4215,3,560,280,0,4215,4219,1,0,0,0,4216,4217,5,338,0,0,4217,4219,3,996,498,0,4218,4191,1,0,0,0,4218,4198,1,0,0,0,4218,4205,1,0,0,0,4218,4209,1,0,0,0,4218,4216,1,0,0,0,4219,437,1,0,0,0,4220,4221,5,206,0,0,4221,4224,3,470,235,0,4222,4224,1,0,0,0,4223,4220,1,0,0,0,4223,4222,1,0,0,0,4224,439,1,0,0,0,4225,4226,5,62,0,0,4226,4233,5,318,0,0,4227,4228,5,62,0,0,4228,4229,5,83,0,0,4229,4230,5,147,0,0,4230,4233,3,470,235,0,4231,4233,1,0,0,0,4232,4225,1,0,0,0,4232,4227,1,0,0,0,4232,4231,1,0,0,0,4233,441,1,0,0,0,4234,4235,5,46,0,0,4235,4236,5,271,0,0,4236,4237,5,206,0,0,4237,4238,3,470,235,0,4238,4239,5,100,0,0,4239,4240,3,1234,617,0,4240,443,1,0,0,0,4241,4242,5,138,0,0,4242,4243,5,271,0,0,4243,4244,5,206,0,0,4244,4245,3,470,235,0,4245,4246,5,100,0,0,4246,4247,3,1234,617,0,4247,4248,5,133,0,0,4248,4249,3,434,217,0,4249,4260,1,0,0,0,4250,4251,5,138,0,0,4251,4252,5,271,0,0,4252,4253,5,206,0,0,4253,4254,3,470,235,0,4254,4255,5,100,0,0,4255,4256,3,1234,617,0,4256,4257,5,191,0,0,4257,4258,3,446,223,0,4258,4260,1,0,0,0,4259,4241,1,0,0,0,4259,4250,1,0,0,0,4260,445,1,0,0,0,4261,4266,3,448,224,0,4262,4263,5,6,0,0,4263,4265,3,448,224,0,4264,4262,1,0,0,0,4265,4268,1,0,0,0,4266,4264,1,0,0,0,4266,4267,1,0,0,0,4267,447,1,0,0,0,4268,4266,1,0,0,0,4269,4270,5,271,0,0,4270,4271,3,1250,625,0,4271,4272,5,2,0,0,4272,4273,3,1162,581,0,4273,4274,5,3,0,0,4274,4282,1,0,0,0,4275,4276,5,211,0,0,4276,4277,3,1250,625,0,4277,4278,5,2,0,0,4278,4279,3,1162,581,0,4279,4280,5,3,0,0,4280,4282,1,0,0,0,4281,4269,1,0,0,0,4281,4275,1,0,0,0,4282,449,1,0,0,0,4283,4284,5,191,0,0,4284,4285,5,271,0,0,4285,4286,5,156,0,0,4286,4287,3,470,235,0,4287,4288,5,100,0,0,4288,4289,3,1234,617,0,4289,4290,3,100,50,0,4290,4302,1,0,0,0,4291,4292,5,191,0,0,4292,4293,5,271,0,0,4293,4294,5,156,0,0,4294,4295,5,220,0,0,4295,4296,5,389,0,0,4296,4297,3,470,235,0,4297,4298,5,100,0,0,4298,4299,3,1234,617,0,4299,4300,3,100,50,0,4300,4302,1,0,0,0,4301,4283,1,0,0,0,4301,4291,1,0,0,0,4302,451,1,0,0,0,4303,4304,5,191,0,0,4304,4305,5,271,0,0,4305,4306,5,206,0,0,4306,4307,3,470,235,0,4307,4308,5,100,0,0,4308,4309,3,1234,617,0,4309,4310,3,100,50,0,4310,4322,1,0,0,0,4311,4312,5,191,0,0,4312,4313,5,271,0,0,4313,4314,5,206,0,0,4314,4315,5,220,0,0,4315,4316,5,389,0,0,4316,4317,3,470,235,0,4317,4318,5,100,0,0,4318,4319,3,1234,617,0,4319,4320,3,100,50,0,4320,4322,1,0,0,0,4321,4303,1,0,0,0,4321,4311,1,0,0,0,4322,453,1,0,0,0,4323,4324,5,191,0,0,4324,4325,5,274,0,0,4325,4326,5,147,0,0,4326,4327,3,1262,631,0,4327,4328,3,100,50,0,4328,455,1,0,0,0,4329,4330,5,294,0,0,4330,4331,5,274,0,0,4331,4332,5,147,0,0,4332,4333,3,1262,631,0,4333,4334,5,94,0,0,4334,4335,3,1260,630,0,4335,457,1,0,0,0,4336,4337,5,191,0,0,4337,4340,3,460,230,0,4338,4339,5,220,0,0,4339,4341,5,389,0,0,4340,4338,1,0,0,0,4340,4341,1,0,0,0,4341,4342,1,0,0,0,4342,4343,3,468,234,0,4343,4344,3,100,50,0,4344,4442,1,0,0,0,4345,4346,5,191,0,0,4346,4349,5,321,0,0,4347,4348,5,220,0,0,4348,4350,5,389,0,0,4349,4347,1,0,0,0,4349,4350,1,0,0,0,4350,4351,1,0,0,0,4351,4352,3,1228,614,0,4352,4353,3,100,50,0,4353,4442,1,0,0,0,4354,4355,5,191,0,0,4355,4358,5,226,0,0,4356,4357,5,220,0,0,4357,4359,5,389,0,0,4358,4356,1,0,0,0,4358,4359,1,0,0,0,4359,4360,1,0,0,0,4360,4361,3,1220,610,0,4361,4362,3,100,50,0,4362,4442,1,0,0,0,4363,4364,5,191,0,0,4364,4367,5,316,0,0,4365,4366,5,220,0,0,4366,4368,5,389,0,0,4367,4365,1,0,0,0,4367,4368,1,0,0,0,4368,4369,1,0,0,0,4369,4370,3,1216,608,0,4370,4371,3,100,50,0,4371,4442,1,0,0,0,4372,4373,5,191,0,0,4373,4376,3,464,232,0,4374,4375,5,220,0,0,4375,4377,5,389,0,0,4376,4374,1,0,0,0,4376,4377,1,0,0,0,4377,4378,1,0,0,0,4378,4379,3,1232,616,0,4379,4380,3,100,50,0,4380,4442,1,0,0,0,4381,4382,5,191,0,0,4382,4385,3,466,233,0,4383,4384,5,220,0,0,4384,4386,5,389,0,0,4385,4383,1,0,0,0,4385,4386,1,0,0,0,4386,4387,1,0,0,0,4387,4388,3,1234,617,0,4388,4389,5,80,0,0,4389,4390,3,470,235,0,4390,4391,3,100,50,0,4391,4442,1,0,0,0,4392,4393,5,191,0,0,4393,4396,5,350,0,0,4394,4395,5,220,0,0,4395,4397,5,389,0,0,4396,4394,1,0,0,0,4396,4397,1,0,0,0,4397,4398,1,0,0,0,4398,4399,3,1222,611,0,4399,4400,5,80,0,0,4400,4401,3,470,235,0,4401,4402,3,100,50,0,4402,4442,1,0,0,0,4403,4404,5,191,0,0,4404,4405,5,353,0,0,4405,4406,3,474,237,0,4406,4407,3,100,50,0,4407,4442,1,0,0,0,4408,4409,5,191,0,0,4409,4410,5,353,0,0,4410,4411,5,220,0,0,4411,4412,5,389,0,0,4412,4413,3,474,237,0,4413,4414,3,100,50,0,4414,4442,1,0,0,0,4415,4416,5,191,0,0,4416,4417,5,189,0,0,4417,4418,3,474,237,0,4418,4419,3,100,50,0,4419,4442,1,0,0,0,4420,4421,5,191,0,0,4421,4422,5,189,0,0,4422,4423,5,220,0,0,4423,4424,5,389,0,0,4424,4425,3,474,237,0,4425,4426,3,100,50,0,4426,4442,1,0,0,0,4427,4428,5,191,0,0,4428,4429,5,226,0,0,4429,4430,5,109,0,0,4430,4431,3,1218,609,0,4431,4432,3,100,50,0,4432,4442,1,0,0,0,4433,4434,5,191,0,0,4434,4435,5,226,0,0,4435,4436,5,109,0,0,4436,4437,5,220,0,0,4437,4438,5,389,0,0,4438,4439,3,1218,609,0,4439,4440,3,100,50,0,4440,4442,1,0,0,0,4441,4336,1,0,0,0,4441,4345,1,0,0,0,4441,4354,1,0,0,0,4441,4363,1,0,0,0,4441,4372,1,0,0,0,4441,4381,1,0,0,0,4441,4392,1,0,0,0,4441,4403,1,0,0,0,4441,4408,1,0,0,0,4441,4415,1,0,0,0,4441,4420,1,0,0,0,4441,4427,1,0,0,0,4441,4433,1,0,0,0,4442,459,1,0,0,0,4443,4465,5,92,0,0,4444,4465,5,369,0,0,4445,4446,5,251,0,0,4446,4465,5,369,0,0,4447,4448,5,63,0,0,4448,4465,5,92,0,0,4449,4465,5,108,0,0,4450,4465,5,168,0,0,4451,4465,5,335,0,0,4452,4453,5,348,0,0,4453,4454,5,318,0,0,4454,4465,5,276,0,0,4455,4456,5,348,0,0,4456,4457,5,318,0,0,4457,4465,5,185,0,0,4458,4459,5,348,0,0,4459,4460,5,318,0,0,4460,4465,5,346,0,0,4461,4462,5,348,0,0,4462,4463,5,318,0,0,4463,4465,5,163,0,0,4464,4443,1,0,0,0,4464,4444,1,0,0,0,4464,4445,1,0,0,0,4464,4447,1,0,0,0,4464,4449,1,0,0,0,4464,4450,1,0,0,0,4464,4451,1,0,0,0,4464,4452,1,0,0,0,4464,4455,1,0,0,0,4464,4458,1,0,0,0,4464,4461,1,0,0,0,4465,461,1,0,0,0,4466,4470,3,464,232,0,4467,4470,5,451,0,0,4468,4470,5,344,0,0,4469,4466,1,0,0,0,4469,4467,1,0,0,0,4469,4468,1,0,0,0,4470,463,1,0,0,0,4471,4472,5,131,0,0,4472,4485,5,446,0,0,4473,4474,5,198,0,0,4474,4485,5,350,0,0,4475,4485,5,204,0,0,4476,4477,5,63,0,0,4477,4478,5,174,0,0,4478,4485,5,374,0,0,4479,4480,3,276,138,0,4480,4481,5,238,0,0,4481,4485,1,0,0,0,4482,4485,5,452,0,0,4483,4485,5,324,0,0,4484,4471,1,0,0,0,4484,4473,1,0,0,0,4484,4475,1,0,0,0,4484,4476,1,0,0,0,4484,4479,1,0,0,0,4484,4482,1,0,0,0,4484,4483,1,0,0,0,4485,465,1,0,0,0,4486,4487,7,22,0,0,4487,467,1,0,0,0,4488,4493,3,470,235,0,4489,4490,5,6,0,0,4490,4492,3,470,235,0,4491,4489,1,0,0,0,4492,4495,1,0,0,0,4493,4491,1,0,0,0,4493,4494,1,0,0,0,4494,469,1,0,0,0,4495,4493,1,0,0,0,4496,4498,3,1264,632,0,4497,4499,3,472,236,0,4498,4497,1,0,0,0,4498,4499,1,0,0,0,4499,471,1,0,0,0,4500,4501,5,11,0,0,4501,4503,3,1236,618,0,4502,4500,1,0,0,0,4503,4504,1,0,0,0,4504,4502,1,0,0,0,4504,4505,1,0,0,0,4505,473,1,0,0,0,4506,4511,3,996,498,0,4507,4508,5,6,0,0,4508,4510,3,996,498,0,4509,4507,1,0,0,0,4510,4513,1,0,0,0,4511,4509,1,0,0,0,4511,4512,1,0,0,0,4512,475,1,0,0,0,4513,4511,1,0,0,0,4514,4515,5,351,0,0,4515,4516,3,882,441,0,4516,4517,3,960,480,0,4517,4518,3,478,239,0,4518,4519,3,100,50,0,4519,477,1,0,0,0,4520,4521,5,167,0,0,4521,4526,5,219,0,0,4522,4523,5,307,0,0,4523,4526,5,219,0,0,4524,4526,1,0,0,0,4525,4520,1,0,0,0,4525,4522,1,0,0,0,4525,4524,1,0,0,0,4526,479,1,0,0,0,4527,4528,5,159,0,0,4528,4529,5,80,0,0,4529,4530,3,460,230,0,4530,4531,3,470,235,0,4531,4532,5,116,0,0,4532,4533,3,482,241,0,4533,4712,1,0,0,0,4534,4535,5,159,0,0,4535,4536,5,80,0,0,4536,4537,5,321,0,0,4537,4538,3,1226,613,0,4538,4539,5,116,0,0,4539,4540,3,482,241,0,4540,4712,1,0,0,0,4541,4542,5,159,0,0,4542,4543,5,80,0,0,4543,4544,5,226,0,0,4544,4545,3,1218,609,0,4545,4546,5,116,0,0,4546,4547,3,482,241,0,4547,4712,1,0,0,0,4548,4549,5,159,0,0,4549,4550,5,80,0,0,4550,4551,5,44,0,0,4551,4552,3,470,235,0,4552,4553,5,116,0,0,4553,4554,3,482,241,0,4554,4712,1,0,0,0,4555,4556,5,159,0,0,4556,4557,5,80,0,0,4557,4558,3,462,231,0,4558,4559,3,1234,617,0,4559,4560,5,116,0,0,4560,4561,3,482,241,0,4561,4712,1,0,0,0,4562,4563,5,159,0,0,4563,4564,5,80,0,0,4564,4565,5,311,0,0,4565,4566,3,1260,630,0,4566,4567,5,116,0,0,4567,4568,3,482,241,0,4568,4712,1,0,0,0,4569,4570,5,159,0,0,4570,4571,5,80,0,0,4571,4572,5,175,0,0,4572,4573,3,1210,605,0,4573,4574,5,116,0,0,4574,4575,3,482,241,0,4575,4712,1,0,0,0,4576,4577,5,159,0,0,4577,4578,5,80,0,0,4578,4579,5,316,0,0,4579,4580,3,1214,607,0,4580,4581,5,116,0,0,4581,4582,3,482,241,0,4582,4712,1,0,0,0,4583,4584,5,159,0,0,4584,4585,5,80,0,0,4585,4586,5,353,0,0,4586,4587,3,996,498,0,4587,4588,5,116,0,0,4588,4589,3,482,241,0,4589,4712,1,0,0,0,4590,4591,5,159,0,0,4591,4592,5,80,0,0,4592,4593,5,189,0,0,4593,4594,3,996,498,0,4594,4595,5,116,0,0,4595,4596,3,482,241,0,4596,4712,1,0,0,0,4597,4598,5,159,0,0,4598,4599,5,80,0,0,4599,4600,5,136,0,0,4600,4601,3,580,290,0,4601,4602,5,116,0,0,4602,4603,3,482,241,0,4603,4712,1,0,0,0,4604,4605,5,159,0,0,4605,4606,5,80,0,0,4606,4607,5,211,0,0,4607,4608,3,560,280,0,4608,4609,5,116,0,0,4609,4610,3,482,241,0,4610,4712,1,0,0,0,4611,4612,5,159,0,0,4612,4613,5,80,0,0,4613,4614,5,271,0,0,4614,4615,3,614,307,0,4615,4616,5,116,0,0,4616,4617,3,482,241,0,4617,4712,1,0,0,0,4618,4619,5,159,0,0,4619,4620,5,80,0,0,4620,4621,5,45,0,0,4621,4622,3,1224,612,0,4622,4624,5,80,0,0,4623,4625,5,189,0,0,4624,4623,1,0,0,0,4624,4625,1,0,0,0,4625,4626,1,0,0,0,4626,4627,3,470,235,0,4627,4628,5,116,0,0,4628,4629,3,482,241,0,4629,4712,1,0,0,0,4630,4631,5,159,0,0,4631,4632,5,80,0,0,4632,4633,3,466,233,0,4633,4634,3,1234,617,0,4634,4635,5,80,0,0,4635,4636,3,470,235,0,4636,4637,5,116,0,0,4637,4638,3,482,241,0,4638,4712,1,0,0,0,4639,4640,5,159,0,0,4640,4641,5,80,0,0,4641,4642,5,350,0,0,4642,4643,3,1222,611,0,4643,4644,5,80,0,0,4644,4645,3,470,235,0,4645,4646,5,116,0,0,4646,4647,3,482,241,0,4647,4712,1,0,0,0,4648,4649,5,159,0,0,4649,4650,5,80,0,0,4650,4651,5,289,0,0,4651,4652,3,560,280,0,4652,4653,5,116,0,0,4653,4654,3,482,241,0,4654,4712,1,0,0,0,4655,4656,5,159,0,0,4656,4657,5,80,0,0,4657,4658,5,442,0,0,4658,4659,3,560,280,0,4659,4660,5,116,0,0,4660,4661,3,482,241,0,4661,4712,1,0,0,0,4662,4663,5,159,0,0,4663,4664,5,80,0,0,4664,4665,5,443,0,0,4665,4666,5,62,0,0,4666,4667,3,996,498,0,4667,4668,5,238,0,0,4668,4669,3,1234,617,0,4669,4670,5,116,0,0,4670,4671,3,482,241,0,4671,4712,1,0,0,0,4672,4673,5,159,0,0,4673,4674,5,80,0,0,4674,4675,5,271,0,0,4675,4676,5,156,0,0,4676,4677,3,470,235,0,4677,4678,5,100,0,0,4678,4679,3,1234,617,0,4679,4680,5,116,0,0,4680,4681,3,482,241,0,4681,4712,1,0,0,0,4682,4683,5,159,0,0,4683,4684,5,80,0,0,4684,4685,5,271,0,0,4685,4686,5,206,0,0,4686,4687,3,470,235,0,4687,4688,5,100,0,0,4688,4689,3,1234,617,0,4689,4690,5,116,0,0,4690,4691,3,482,241,0,4691,4712,1,0,0,0,4692,4693,5,159,0,0,4693,4694,5,80,0,0,4694,4695,5,239,0,0,4695,4696,5,267,0,0,4696,4697,3,264,132,0,4697,4698,5,116,0,0,4698,4699,3,482,241,0,4699,4712,1,0,0,0,4700,4701,5,159,0,0,4701,4702,5,80,0,0,4702,4703,5,41,0,0,4703,4704,5,2,0,0,4704,4705,3,996,498,0,4705,4706,5,36,0,0,4706,4707,3,996,498,0,4707,4708,5,3,0,0,4708,4709,5,116,0,0,4709,4710,3,482,241,0,4710,4712,1,0,0,0,4711,4527,1,0,0,0,4711,4534,1,0,0,0,4711,4541,1,0,0,0,4711,4548,1,0,0,0,4711,4555,1,0,0,0,4711,4562,1,0,0,0,4711,4569,1,0,0,0,4711,4576,1,0,0,0,4711,4583,1,0,0,0,4711,4590,1,0,0,0,4711,4597,1,0,0,0,4711,4604,1,0,0,0,4711,4611,1,0,0,0,4711,4618,1,0,0,0,4711,4630,1,0,0,0,4711,4639,1,0,0,0,4711,4648,1,0,0,0,4711,4655,1,0,0,0,4711,4662,1,0,0,0,4711,4672,1,0,0,0,4711,4682,1,0,0,0,4711,4692,1,0,0,0,4711,4700,1,0,0,0,4712,481,1,0,0,0,4713,4716,3,1252,626,0,4714,4716,5,78,0,0,4715,4713,1,0,0,0,4715,4714,1,0,0,0,4716,483,1,0,0,0,4717,4718,5,320,0,0,4718,4719,5,237,0,0,4719,4720,3,486,243,0,4720,4721,5,80,0,0,4721,4722,3,460,230,0,4722,4723,3,470,235,0,4723,4724,5,116,0,0,4724,4725,3,488,244,0,4725,4854,1,0,0,0,4726,4727,5,320,0,0,4727,4728,5,237,0,0,4728,4729,3,486,243,0,4729,4730,5,80,0,0,4730,4731,5,321,0,0,4731,4732,3,1226,613,0,4732,4733,5,116,0,0,4733,4734,3,488,244,0,4734,4854,1,0,0,0,4735,4736,5,320,0,0,4736,4737,5,237,0,0,4737,4738,3,486,243,0,4738,4739,5,80,0,0,4739,4740,5,226,0,0,4740,4741,3,1218,609,0,4741,4742,5,116,0,0,4742,4743,3,488,244,0,4743,4854,1,0,0,0,4744,4745,5,320,0,0,4745,4746,5,237,0,0,4746,4747,3,486,243,0,4747,4748,5,80,0,0,4748,4749,5,44,0,0,4749,4750,3,470,235,0,4750,4751,5,116,0,0,4751,4752,3,488,244,0,4752,4854,1,0,0,0,4753,4754,5,320,0,0,4754,4755,5,237,0,0,4755,4756,3,486,243,0,4756,4757,5,80,0,0,4757,4758,3,462,231,0,4758,4759,3,1234,617,0,4759,4760,5,116,0,0,4760,4761,3,488,244,0,4761,4854,1,0,0,0,4762,4763,5,320,0,0,4763,4764,5,237,0,0,4764,4765,3,486,243,0,4765,4766,5,80,0,0,4766,4767,5,311,0,0,4767,4768,3,1260,630,0,4768,4769,5,116,0,0,4769,4770,3,488,244,0,4770,4854,1,0,0,0,4771,4772,5,320,0,0,4772,4773,5,237,0,0,4773,4774,3,486,243,0,4774,4775,5,80,0,0,4775,4776,5,175,0,0,4776,4777,3,1210,605,0,4777,4778,5,116,0,0,4778,4779,3,488,244,0,4779,4854,1,0,0,0,4780,4781,5,320,0,0,4781,4782,5,237,0,0,4782,4783,3,486,243,0,4783,4784,5,80,0,0,4784,4785,5,316,0,0,4785,4786,3,1214,607,0,4786,4787,5,116,0,0,4787,4788,3,488,244,0,4788,4854,1,0,0,0,4789,4790,5,320,0,0,4790,4791,5,237,0,0,4791,4792,3,486,243,0,4792,4793,5,80,0,0,4793,4794,5,353,0,0,4794,4795,3,996,498,0,4795,4796,5,116,0,0,4796,4797,3,488,244,0,4797,4854,1,0,0,0,4798,4799,5,320,0,0,4799,4800,5,237,0,0,4800,4801,3,486,243,0,4801,4802,5,80,0,0,4802,4803,5,189,0,0,4803,4804,3,996,498,0,4804,4805,5,116,0,0,4805,4806,3,488,244,0,4806,4854,1,0,0,0,4807,4808,5,320,0,0,4808,4809,5,237,0,0,4809,4810,3,486,243,0,4810,4811,5,80,0,0,4811,4812,5,136,0,0,4812,4813,3,580,290,0,4813,4814,5,116,0,0,4814,4815,3,488,244,0,4815,4854,1,0,0,0,4816,4817,5,320,0,0,4817,4818,5,237,0,0,4818,4819,3,486,243,0,4819,4820,5,80,0,0,4820,4821,5,211,0,0,4821,4822,3,560,280,0,4822,4823,5,116,0,0,4823,4824,3,488,244,0,4824,4854,1,0,0,0,4825,4826,5,320,0,0,4826,4827,5,237,0,0,4827,4828,3,486,243,0,4828,4829,5,80,0,0,4829,4830,5,239,0,0,4830,4831,5,267,0,0,4831,4832,3,264,132,0,4832,4833,5,116,0,0,4833,4834,3,488,244,0,4834,4854,1,0,0,0,4835,4836,5,320,0,0,4836,4837,5,237,0,0,4837,4838,3,486,243,0,4838,4839,5,80,0,0,4839,4840,5,289,0,0,4840,4841,3,560,280,0,4841,4842,5,116,0,0,4842,4843,3,488,244,0,4843,4854,1,0,0,0,4844,4845,5,320,0,0,4845,4846,5,237,0,0,4846,4847,3,486,243,0,4847,4848,5,80,0,0,4848,4849,5,442,0,0,4849,4850,3,560,280,0,4850,4851,5,116,0,0,4851,4852,3,488,244,0,4852,4854,1,0,0,0,4853,4717,1,0,0,0,4853,4726,1,0,0,0,4853,4735,1,0,0,0,4853,4744,1,0,0,0,4853,4753,1,0,0,0,4853,4762,1,0,0,0,4853,4771,1,0,0,0,4853,4780,1,0,0,0,4853,4789,1,0,0,0,4853,4798,1,0,0,0,4853,4807,1,0,0,0,4853,4816,1,0,0,0,4853,4825,1,0,0,0,4853,4835,1,0,0,0,4853,4844,1,0,0,0,4854,485,1,0,0,0,4855,4856,5,62,0,0,4856,4859,3,64,32,0,4857,4859,1,0,0,0,4858,4855,1,0,0,0,4858,4857,1,0,0,0,4859,487,1,0,0,0,4860,4863,3,1252,626,0,4861,4863,5,78,0,0,4862,4860,1,0,0,0,4862,4861,1,0,0,0,4863,489,1,0,0,0,4864,4865,5,61,0,0,4865,4869,3,492,246,0,4866,4867,5,258,0,0,4867,4869,3,492,246,0,4868,4864,1,0,0,0,4868,4866,1,0,0,0,4869,491,1,0,0,0,4870,4937,3,854,427,0,4871,4872,3,494,247,0,4872,4873,3,854,427,0,4873,4937,1,0,0,0,4874,4875,5,261,0,0,4875,4876,3,496,248,0,4876,4877,3,854,427,0,4877,4937,1,0,0,0,4878,4879,5,286,0,0,4879,4880,3,496,248,0,4880,4881,3,854,427,0,4881,4937,1,0,0,0,4882,4883,5,207,0,0,4883,4884,3,496,248,0,4884,4885,3,854,427,0,4885,4937,1,0,0,0,4886,4887,5,240,0,0,4887,4888,3,496,248,0,4888,4889,3,854,427,0,4889,4937,1,0,0,0,4890,4891,5,130,0,0,4891,4892,3,1258,629,0,4892,4893,3,496,248,0,4893,4894,3,854,427,0,4894,4937,1,0,0,0,4895,4896,5,300,0,0,4896,4897,3,1258,629,0,4897,4898,3,496,248,0,4898,4899,3,854,427,0,4899,4937,1,0,0,0,4900,4901,3,1258,629,0,4901,4902,3,496,248,0,4902,4903,3,854,427,0,4903,4937,1,0,0,0,4904,4905,5,30,0,0,4905,4906,3,496,248,0,4906,4907,3,854,427,0,4907,4937,1,0,0,0,4908,4909,5,210,0,0,4909,4910,3,496,248,0,4910,4911,3,854,427,0,4911,4937,1,0,0,0,4912,4913,5,210,0,0,4913,4914,3,1258,629,0,4914,4915,3,496,248,0,4915,4916,3,854,427,0,4916,4937,1,0,0,0,4917,4918,5,210,0,0,4918,4919,5,30,0,0,4919,4920,3,496,248,0,4920,4921,3,854,427,0,4921,4937,1,0,0,0,4922,4923,5,144,0,0,4923,4924,3,496,248,0,4924,4925,3,854,427,0,4925,4937,1,0,0,0,4926,4927,5,144,0,0,4927,4928,3,1258,629,0,4928,4929,3,496,248,0,4929,4930,3,854,427,0,4930,4937,1,0,0,0,4931,4932,5,144,0,0,4932,4933,5,30,0,0,4933,4934,3,496,248,0,4934,4935,3,854,427,0,4935,4937,1,0,0,0,4936,4870,1,0,0,0,4936,4871,1,0,0,0,4936,4874,1,0,0,0,4936,4878,1,0,0,0,4936,4882,1,0,0,0,4936,4886,1,0,0,0,4936,4890,1,0,0,0,4936,4895,1,0,0,0,4936,4900,1,0,0,0,4936,4904,1,0,0,0,4936,4908,1,0,0,0,4936,4912,1,0,0,0,4936,4917,1,0,0,0,4936,4922,1,0,0,0,4936,4926,1,0,0,0,4936,4931,1,0,0,0,4937,493,1,0,0,0,4938,4939,7,23,0,0,4939,495,1,0,0,0,4940,4943,3,494,247,0,4941,4943,1,0,0,0,4942,4940,1,0,0,0,4942,4941,1,0,0,0,4943,497,1,0,0,0,4944,4945,5,65,0,0,4945,4946,3,502,251,0,4946,4947,5,80,0,0,4947,4948,3,508,254,0,4948,4949,5,94,0,0,4949,4950,3,510,255,0,4950,4951,3,514,257,0,4951,499,1,0,0,0,4952,4953,5,310,0,0,4953,4954,3,502,251,0,4954,4955,5,80,0,0,4955,4956,3,508,254,0,4956,4957,5,64,0,0,4957,4958,3,510,255,0,4958,4959,3,100,50,0,4959,4972,1,0,0,0,4960,4961,5,310,0,0,4961,4962,5,65,0,0,4962,4963,5,272,0,0,4963,4964,5,62,0,0,4964,4965,3,502,251,0,4965,4966,5,80,0,0,4966,4967,3,508,254,0,4967,4968,5,64,0,0,4968,4969,3,510,255,0,4969,4970,3,100,50,0,4970,4972,1,0,0,0,4971,4952,1,0,0,0,4971,4960,1,0,0,0,4972,501,1,0,0,0,4973,4989,3,504,252,0,4974,4989,5,30,0,0,4975,4976,5,30,0,0,4976,4989,5,287,0,0,4977,4978,5,30,0,0,4978,4979,5,2,0,0,4979,4980,3,194,97,0,4980,4981,5,3,0,0,4981,4989,1,0,0,0,4982,4983,5,30,0,0,4983,4984,5,287,0,0,4984,4985,5,2,0,0,4985,4986,3,194,97,0,4986,4987,5,3,0,0,4987,4989,1,0,0,0,4988,4973,1,0,0,0,4988,4974,1,0,0,0,4988,4975,1,0,0,0,4988,4977,1,0,0,0,4988,4982,1,0,0,0,4989,503,1,0,0,0,4990,4995,3,506,253,0,4991,4992,5,6,0,0,4992,4994,3,506,253,0,4993,4991,1,0,0,0,4994,4997,1,0,0,0,4995,4993,1,0,0,0,4995,4996,1,0,0,0,4996,505,1,0,0,0,4997,4995,1,0,0,0,4998,4999,5,88,0,0,4999,5008,3,192,96,0,5e3,5001,5,86,0,0,5001,5008,3,192,96,0,5002,5003,5,46,0,0,5003,5008,3,192,96,0,5004,5005,3,1264,632,0,5005,5006,3,192,96,0,5006,5008,1,0,0,0,5007,4998,1,0,0,0,5007,5e3,1,0,0,0,5007,5002,1,0,0,0,5007,5004,1,0,0,0,5008,507,1,0,0,0,5009,5048,3,1208,604,0,5010,5011,5,92,0,0,5011,5048,3,1208,604,0,5012,5013,5,321,0,0,5013,5048,3,1228,614,0,5014,5015,5,63,0,0,5015,5016,5,174,0,0,5016,5017,5,374,0,0,5017,5048,3,1232,616,0,5018,5019,5,63,0,0,5019,5020,5,324,0,0,5020,5048,3,1232,616,0,5021,5022,5,211,0,0,5022,5048,3,558,279,0,5023,5024,5,289,0,0,5024,5048,3,558,279,0,5025,5026,5,442,0,0,5026,5048,3,558,279,0,5027,5028,5,175,0,0,5028,5048,3,1212,606,0,5029,5030,5,189,0,0,5030,5048,3,468,234,0,5031,5032,5,238,0,0,5032,5048,3,1232,616,0,5033,5034,5,239,0,0,5034,5035,5,267,0,0,5035,5048,3,266,133,0,5036,5037,5,316,0,0,5037,5048,3,1216,608,0,5038,5039,5,344,0,0,5039,5048,3,1232,616,0,5040,5041,5,353,0,0,5041,5048,3,468,234,0,5042,5043,5,30,0,0,5043,5044,7,24,0,0,5044,5045,5,68,0,0,5045,5046,5,316,0,0,5046,5048,3,1216,608,0,5047,5009,1,0,0,0,5047,5010,1,0,0,0,5047,5012,1,0,0,0,5047,5014,1,0,0,0,5047,5018,1,0,0,0,5047,5021,1,0,0,0,5047,5023,1,0,0,0,5047,5025,1,0,0,0,5047,5027,1,0,0,0,5047,5029,1,0,0,0,5047,5031,1,0,0,0,5047,5033,1,0,0,0,5047,5036,1,0,0,0,5047,5038,1,0,0,0,5047,5040,1,0,0,0,5047,5042,1,0,0,0,5048,509,1,0,0,0,5049,5054,3,512,256,0,5050,5051,5,6,0,0,5051,5053,3,512,256,0,5052,5050,1,0,0,0,5053,5056,1,0,0,0,5054,5052,1,0,0,0,5054,5055,1,0,0,0,5055,511,1,0,0,0,5056,5054,1,0,0,0,5057,5061,3,1260,630,0,5058,5059,5,66,0,0,5059,5061,3,1260,630,0,5060,5057,1,0,0,0,5060,5058,1,0,0,0,5061,513,1,0,0,0,5062,5063,5,105,0,0,5063,5064,5,65,0,0,5064,5067,5,272,0,0,5065,5067,1,0,0,0,5066,5062,1,0,0,0,5066,5065,1,0,0,0,5067,515,1,0,0,0,5068,5069,5,65,0,0,5069,5070,3,504,252,0,5070,5071,5,94,0,0,5071,5072,3,1262,631,0,5072,5073,3,520,260,0,5073,5074,3,522,261,0,5074,517,1,0,0,0,5075,5076,5,310,0,0,5076,5077,3,504,252,0,5077,5078,5,64,0,0,5078,5079,3,1262,631,0,5079,5080,3,522,261,0,5080,5081,3,100,50,0,5081,5093,1,0,0,0,5082,5083,5,310,0,0,5083,5084,5,134,0,0,5084,5085,5,272,0,0,5085,5086,5,62,0,0,5086,5087,3,504,252,0,5087,5088,5,64,0,0,5088,5089,3,1262,631,0,5089,5090,3,522,261,0,5090,5091,3,100,50,0,5091,5093,1,0,0,0,5092,5075,1,0,0,0,5092,5082,1,0,0,0,5093,519,1,0,0,0,5094,5095,5,105,0,0,5095,5096,5,134,0,0,5096,5099,5,272,0,0,5097,5099,1,0,0,0,5098,5094,1,0,0,0,5098,5097,1,0,0,0,5099,521,1,0,0,0,5100,5101,5,214,0,0,5101,5102,5,147,0,0,5102,5105,3,1260,630,0,5103,5105,1,0,0,0,5104,5100,1,0,0,0,5104,5103,1,0,0,0,5105,523,1,0,0,0,5106,5107,5,138,0,0,5107,5108,5,53,0,0,5108,5112,5,287,0,0,5109,5111,3,526,263,0,5110,5109,1,0,0,0,5111,5114,1,0,0,0,5112,5110,1,0,0,0,5112,5113,1,0,0,0,5113,5115,1,0,0,0,5114,5112,1,0,0,0,5115,5116,3,528,264,0,5116,525,1,0,0,0,5117,5118,5,68,0,0,5118,5119,5,316,0,0,5119,5125,3,1216,608,0,5120,5121,5,62,0,0,5121,5122,3,1506,753,0,5122,5123,3,1262,631,0,5123,5125,1,0,0,0,5124,5117,1,0,0,0,5124,5120,1,0,0,0,5125,527,1,0,0,0,5126,5127,5,65,0,0,5127,5128,3,502,251,0,5128,5129,5,80,0,0,5129,5130,3,530,265,0,5130,5131,5,94,0,0,5131,5132,3,510,255,0,5132,5133,3,514,257,0,5133,5154,1,0,0,0,5134,5135,5,310,0,0,5135,5136,3,502,251,0,5136,5137,5,80,0,0,5137,5138,3,530,265,0,5138,5139,5,64,0,0,5139,5140,3,510,255,0,5140,5141,3,100,50,0,5141,5154,1,0,0,0,5142,5143,5,310,0,0,5143,5144,5,65,0,0,5144,5145,5,272,0,0,5145,5146,5,62,0,0,5146,5147,3,502,251,0,5147,5148,5,80,0,0,5148,5149,3,530,265,0,5149,5150,5,64,0,0,5150,5151,3,510,255,0,5151,5152,3,100,50,0,5152,5154,1,0,0,0,5153,5126,1,0,0,0,5153,5134,1,0,0,0,5153,5142,1,0,0,0,5154,529,1,0,0,0,5155,5156,7,25,0,0,5156,531,1,0,0,0,5157,5159,5,46,0,0,5158,5160,5,98,0,0,5159,5158,1,0,0,0,5159,5160,1,0,0,0,5160,5161,1,0,0,0,5161,5163,5,226,0,0,5162,5164,5,109,0,0,5163,5162,1,0,0,0,5163,5164,1,0,0,0,5164,5166,1,0,0,0,5165,5167,3,1234,617,0,5166,5165,1,0,0,0,5166,5167,1,0,0,0,5167,5168,1,0,0,0,5168,5169,5,80,0,0,5169,5170,3,958,479,0,5170,5171,3,534,267,0,5171,5172,5,2,0,0,5172,5173,3,536,268,0,5173,5174,5,3,0,0,5174,5175,3,542,271,0,5175,5176,3,110,55,0,5176,5177,3,232,116,0,5177,5178,3,974,487,0,5178,5203,1,0,0,0,5179,5181,5,46,0,0,5180,5182,5,98,0,0,5181,5180,1,0,0,0,5181,5182,1,0,0,0,5182,5183,1,0,0,0,5183,5185,5,226,0,0,5184,5186,5,109,0,0,5185,5184,1,0,0,0,5185,5186,1,0,0,0,5186,5187,1,0,0,0,5187,5188,5,220,0,0,5188,5189,5,77,0,0,5189,5190,5,389,0,0,5190,5191,3,1234,617,0,5191,5192,5,80,0,0,5192,5193,3,958,479,0,5193,5194,3,534,267,0,5194,5195,5,2,0,0,5195,5196,3,536,268,0,5196,5197,5,3,0,0,5197,5198,3,542,271,0,5198,5199,3,110,55,0,5199,5200,3,232,116,0,5200,5201,3,974,487,0,5201,5203,1,0,0,0,5202,5157,1,0,0,0,5202,5179,1,0,0,0,5203,533,1,0,0,0,5204,5205,5,100,0,0,5205,5208,3,1234,617,0,5206,5208,1,0,0,0,5207,5204,1,0,0,0,5207,5206,1,0,0,0,5208,535,1,0,0,0,5209,5214,3,540,270,0,5210,5211,5,6,0,0,5211,5213,3,540,270,0,5212,5210,1,0,0,0,5213,5216,1,0,0,0,5214,5212,1,0,0,0,5214,5215,1,0,0,0,5215,537,1,0,0,0,5216,5214,1,0,0,0,5217,5218,3,544,272,0,5218,5219,3,546,273,0,5219,5220,3,548,274,0,5220,5221,3,550,275,0,5221,5229,1,0,0,0,5222,5223,3,544,272,0,5223,5224,3,470,235,0,5224,5225,3,108,54,0,5225,5226,3,548,274,0,5226,5227,3,550,275,0,5227,5229,1,0,0,0,5228,5217,1,0,0,0,5228,5222,1,0,0,0,5229,539,1,0,0,0,5230,5231,3,1264,632,0,5231,5232,3,538,269,0,5232,5242,1,0,0,0,5233,5234,3,1090,545,0,5234,5235,3,538,269,0,5235,5242,1,0,0,0,5236,5237,5,2,0,0,5237,5238,3,1038,519,0,5238,5239,5,3,0,0,5239,5240,3,538,269,0,5240,5242,1,0,0,0,5241,5230,1,0,0,0,5241,5233,1,0,0,0,5241,5236,1,0,0,0,5242,541,1,0,0,0,5243,5244,5,441,0,0,5244,5245,5,2,0,0,5245,5250,3,540,270,0,5246,5247,5,6,0,0,5247,5249,3,540,270,0,5248,5246,1,0,0,0,5249,5252,1,0,0,0,5250,5248,1,0,0,0,5250,5251,1,0,0,0,5251,5253,1,0,0,0,5252,5250,1,0,0,0,5253,5254,5,3,0,0,5254,5257,1,0,0,0,5255,5257,1,0,0,0,5256,5243,1,0,0,0,5256,5255,1,0,0,0,5257,543,1,0,0,0,5258,5259,5,43,0,0,5259,5262,3,470,235,0,5260,5262,1,0,0,0,5261,5258,1,0,0,0,5261,5260,1,0,0,0,5262,545,1,0,0,0,5263,5266,3,470,235,0,5264,5266,1,0,0,0,5265,5263,1,0,0,0,5265,5264,1,0,0,0,5266,547,1,0,0,0,5267,5271,5,37,0,0,5268,5271,5,55,0,0,5269,5271,1,0,0,0,5270,5267,1,0,0,0,5270,5268,1,0,0,0,5270,5269,1,0,0,0,5271,549,1,0,0,0,5272,5273,5,266,0,0,5273,5278,5,207,0,0,5274,5275,5,266,0,0,5275,5278,5,240,0,0,5276,5278,1,0,0,0,5277,5272,1,0,0,0,5277,5274,1,0,0,0,5277,5276,1,0,0,0,5278,551,1,0,0,0,5279,5280,5,46,0,0,5280,5281,3,554,277,0,5281,5282,7,21,0,0,5282,5283,3,1240,620,0,5283,5285,5,2,0,0,5284,5286,3,562,281,0,5285,5284,1,0,0,0,5285,5286,1,0,0,0,5286,5287,1,0,0,0,5287,5297,5,3,0,0,5288,5295,5,309,0,0,5289,5296,3,572,286,0,5290,5291,5,92,0,0,5291,5292,5,2,0,0,5292,5293,3,598,299,0,5293,5294,5,3,0,0,5294,5296,1,0,0,0,5295,5289,1,0,0,0,5295,5290,1,0,0,0,5296,5298,1,0,0,0,5297,5288,1,0,0,0,5297,5298,1,0,0,0,5298,5299,1,0,0,0,5299,5300,3,584,292,0,5300,553,1,0,0,0,5301,5302,5,82,0,0,5302,5305,5,304,0,0,5303,5305,1,0,0,0,5304,5301,1,0,0,0,5304,5303,1,0,0,0,5305,555,1,0,0,0,5306,5311,3,566,283,0,5307,5308,5,6,0,0,5308,5310,3,566,283,0,5309,5307,1,0,0,0,5310,5313,1,0,0,0,5311,5309,1,0,0,0,5311,5312,1,0,0,0,5312,557,1,0,0,0,5313,5311,1,0,0,0,5314,5319,3,560,280,0,5315,5316,5,6,0,0,5316,5318,3,560,280,0,5317,5315,1,0,0,0,5318,5321,1,0,0,0,5319,5317,1,0,0,0,5319,5320,1,0,0,0,5320,559,1,0,0,0,5321,5319,1,0,0,0,5322,5323,3,1240,620,0,5323,5325,5,2,0,0,5324,5326,3,556,278,0,5325,5324,1,0,0,0,5325,5326,1,0,0,0,5326,5327,1,0,0,0,5327,5328,5,3,0,0,5328,5335,1,0,0,0,5329,5335,3,1282,641,0,5330,5332,3,1264,632,0,5331,5333,3,1198,599,0,5332,5331,1,0,0,0,5332,5333,1,0,0,0,5333,5335,1,0,0,0,5334,5322,1,0,0,0,5334,5329,1,0,0,0,5334,5330,1,0,0,0,5335,561,1,0,0,0,5336,5341,3,564,282,0,5337,5338,5,6,0,0,5338,5340,3,564,282,0,5339,5337,1,0,0,0,5340,5343,1,0,0,0,5341,5339,1,0,0,0,5341,5342,1,0,0,0,5342,563,1,0,0,0,5343,5341,1,0,0,0,5344,5347,3,566,283,0,5345,5346,7,26,0,0,5346,5348,3,1038,519,0,5347,5345,1,0,0,0,5347,5348,1,0,0,0,5348,565,1,0,0,0,5349,5351,3,568,284,0,5350,5352,3,570,285,0,5351,5350,1,0,0,0,5351,5352,1,0,0,0,5352,5353,1,0,0,0,5353,5354,3,574,287,0,5354,5363,1,0,0,0,5355,5357,3,570,285,0,5356,5358,3,568,284,0,5357,5356,1,0,0,0,5357,5358,1,0,0,0,5358,5359,1,0,0,0,5359,5360,3,574,287,0,5360,5363,1,0,0,0,5361,5363,3,574,287,0,5362,5349,1,0,0,0,5362,5355,1,0,0,0,5362,5361,1,0,0,0,5363,567,1,0,0,0,5364,5366,5,68,0,0,5365,5367,5,453,0,0,5366,5365,1,0,0,0,5366,5367,1,0,0,0,5367,5372,1,0,0,0,5368,5372,5,453,0,0,5369,5372,5,393,0,0,5370,5372,5,101,0,0,5371,5364,1,0,0,0,5371,5368,1,0,0,0,5371,5369,1,0,0,0,5371,5370,1,0,0,0,5372,569,1,0,0,0,5373,5378,3,1268,634,0,5374,5378,3,1286,643,0,5375,5378,5,119,0,0,5376,5378,5,126,0,0,5377,5373,1,0,0,0,5377,5374,1,0,0,0,5377,5375,1,0,0,0,5377,5376,1,0,0,0,5378,571,1,0,0,0,5379,5380,3,574,287,0,5380,573,1,0,0,0,5381,5396,3,996,498,0,5382,5384,5,408,0,0,5383,5382,1,0,0,0,5383,5384,1,0,0,0,5384,5389,1,0,0,0,5385,5390,3,1286,643,0,5386,5390,3,1268,634,0,5387,5390,5,119,0,0,5388,5390,5,126,0,0,5389,5385,1,0,0,0,5389,5386,1,0,0,0,5389,5387,1,0,0,0,5389,5388,1,0,0,0,5390,5391,1,0,0,0,5391,5392,3,472,236,0,5392,5393,5,27,0,0,5393,5394,5,353,0,0,5394,5396,1,0,0,0,5395,5381,1,0,0,0,5395,5383,1,0,0,0,5396,575,1,0,0,0,5397,5408,5,2,0,0,5398,5409,5,9,0,0,5399,5409,3,578,289,0,5400,5401,5,83,0,0,5401,5402,5,147,0,0,5402,5409,3,578,289,0,5403,5404,3,578,289,0,5404,5405,5,83,0,0,5405,5406,5,147,0,0,5406,5407,3,578,289,0,5407,5409,1,0,0,0,5408,5398,1,0,0,0,5408,5399,1,0,0,0,5408,5400,1,0,0,0,5408,5403,1,0,0,0,5409,5410,1,0,0,0,5410,5411,5,3,0,0,5411,577,1,0,0,0,5412,5417,3,566,283,0,5413,5414,5,6,0,0,5414,5416,3,566,283,0,5415,5413,1,0,0,0,5416,5419,1,0,0,0,5417,5415,1,0,0,0,5417,5418,1,0,0,0,5418,579,1,0,0,0,5419,5417,1,0,0,0,5420,5421,3,1240,620,0,5421,5422,3,576,288,0,5422,581,1,0,0,0,5423,5428,3,580,290,0,5424,5425,5,6,0,0,5425,5427,3,580,290,0,5426,5424,1,0,0,0,5427,5430,1,0,0,0,5428,5426,1,0,0,0,5428,5429,1,0,0,0,5429,583,1,0,0,0,5430,5428,1,0,0,0,5431,5433,3,588,294,0,5432,5431,1,0,0,0,5433,5434,1,0,0,0,5434,5432,1,0,0,0,5434,5435,1,0,0,0,5435,5436,1,0,0,0,5436,5437,6,292,-1,0,5437,585,1,0,0,0,5438,5439,5,149,0,0,5439,5440,5,80,0,0,5440,5441,5,78,0,0,5441,5474,5,458,0,0,5442,5443,5,309,0,0,5443,5444,5,78,0,0,5444,5445,5,80,0,0,5445,5446,5,78,0,0,5446,5474,5,458,0,0,5447,5474,5,339,0,0,5448,5474,5,222,0,0,5449,5474,5,331,0,0,5450,5474,5,370,0,0,5451,5452,5,205,0,0,5452,5453,5,320,0,0,5453,5474,5,181,0,0,5454,5455,5,205,0,0,5455,5456,5,320,0,0,5456,5474,5,234,0,0,5457,5458,5,320,0,0,5458,5474,5,181,0,0,5459,5460,5,320,0,0,5460,5474,5,234,0,0,5461,5474,5,241,0,0,5462,5463,5,77,0,0,5463,5474,5,241,0,0,5464,5465,5,170,0,0,5465,5474,3,264,132,0,5466,5467,5,313,0,0,5467,5474,3,264,132,0,5468,5469,5,459,0,0,5469,5474,3,470,235,0,5470,5474,3,74,37,0,5471,5472,5,460,0,0,5472,5474,3,1264,632,0,5473,5438,1,0,0,0,5473,5442,1,0,0,0,5473,5447,1,0,0,0,5473,5448,1,0,0,0,5473,5449,1,0,0,0,5473,5450,1,0,0,0,5473,5451,1,0,0,0,5473,5454,1,0,0,0,5473,5457,1,0,0,0,5473,5459,1,0,0,0,5473,5461,1,0,0,0,5473,5462,1,0,0,0,5473,5464,1,0,0,0,5473,5466,1,0,0,0,5473,5468,1,0,0,0,5473,5470,1,0,0,0,5473,5471,1,0,0,0,5474,587,1,0,0,0,5475,5476,5,36,0,0,5476,5484,3,590,295,0,5477,5478,5,238,0,0,5478,5484,3,64,32,0,5479,5480,5,443,0,0,5480,5484,3,592,296,0,5481,5484,5,104,0,0,5482,5484,3,586,293,0,5483,5475,1,0,0,0,5483,5477,1,0,0,0,5483,5479,1,0,0,0,5483,5481,1,0,0,0,5483,5482,1,0,0,0,5484,589,1,0,0,0,5485,5491,3,1252,626,0,5486,5487,3,1252,626,0,5487,5488,5,6,0,0,5488,5489,3,1252,626,0,5489,5491,1,0,0,0,5490,5485,1,0,0,0,5490,5486,1,0,0,0,5491,591,1,0,0,0,5492,5493,5,62,0,0,5493,5494,5,353,0,0,5494,5501,3,996,498,0,5495,5496,5,6,0,0,5496,5497,5,62,0,0,5497,5498,5,353,0,0,5498,5500,3,996,498,0,5499,5495,1,0,0,0,5500,5503,1,0,0,0,5501,5499,1,0,0,0,5501,5502,1,0,0,0,5502,593,1,0,0,0,5503,5501,1,0,0,0,5504,5505,5,105,0,0,5505,5508,3,416,208,0,5506,5508,1,0,0,0,5507,5504,1,0,0,0,5507,5506,1,0,0,0,5508,595,1,0,0,0,5509,5510,3,570,285,0,5510,5511,3,574,287,0,5511,597,1,0,0,0,5512,5517,3,596,298,0,5513,5514,5,6,0,0,5514,5516,3,596,298,0,5515,5513,1,0,0,0,5516,5519,1,0,0,0,5517,5515,1,0,0,0,5517,5518,1,0,0,0,5518,599,1,0,0,0,5519,5517,1,0,0,0,5520,5521,5,138,0,0,5521,5522,7,27,0,0,5522,5524,3,560,280,0,5523,5525,3,586,293,0,5524,5523,1,0,0,0,5525,5526,1,0,0,0,5526,5524,1,0,0,0,5526,5527,1,0,0,0,5527,5529,1,0,0,0,5528,5530,5,308,0,0,5529,5528,1,0,0,0,5529,5530,1,0,0,0,5530,601,1,0,0,0,5531,5532,5,191,0,0,5532,5533,5,211,0,0,5533,5534,3,558,279,0,5534,5535,3,100,50,0,5535,5568,1,0,0,0,5536,5537,5,191,0,0,5537,5538,5,211,0,0,5538,5539,5,220,0,0,5539,5540,5,389,0,0,5540,5541,3,558,279,0,5541,5542,3,100,50,0,5542,5568,1,0,0,0,5543,5544,5,191,0,0,5544,5545,5,289,0,0,5545,5546,3,558,279,0,5546,5547,3,100,50,0,5547,5568,1,0,0,0,5548,5549,5,191,0,0,5549,5550,5,289,0,0,5550,5551,5,220,0,0,5551,5552,5,389,0,0,5552,5553,3,558,279,0,5553,5554,3,100,50,0,5554,5568,1,0,0,0,5555,5556,5,191,0,0,5556,5557,5,442,0,0,5557,5558,3,558,279,0,5558,5559,3,100,50,0,5559,5568,1,0,0,0,5560,5561,5,191,0,0,5561,5562,5,442,0,0,5562,5563,5,220,0,0,5563,5564,5,389,0,0,5564,5565,3,558,279,0,5565,5566,3,100,50,0,5566,5568,1,0,0,0,5567,5531,1,0,0,0,5567,5536,1,0,0,0,5567,5543,1,0,0,0,5567,5548,1,0,0,0,5567,5555,1,0,0,0,5567,5560,1,0,0,0,5568,603,1,0,0,0,5569,5570,5,191,0,0,5570,5571,5,136,0,0,5571,5572,3,582,291,0,5572,5573,3,100,50,0,5573,5582,1,0,0,0,5574,5575,5,191,0,0,5575,5576,5,136,0,0,5576,5577,5,220,0,0,5577,5578,5,389,0,0,5578,5579,3,582,291,0,5579,5580,3,100,50,0,5580,5582,1,0,0,0,5581,5569,1,0,0,0,5581,5574,1,0,0,0,5582,605,1,0,0,0,5583,5584,5,191,0,0,5584,5585,5,271,0,0,5585,5586,3,612,306,0,5586,5587,3,100,50,0,5587,5596,1,0,0,0,5588,5589,5,191,0,0,5589,5590,5,271,0,0,5590,5591,5,220,0,0,5591,5592,5,389,0,0,5592,5593,3,612,306,0,5593,5594,3,100,50,0,5594,5596,1,0,0,0,5595,5583,1,0,0,0,5595,5588,1,0,0,0,5596,607,1,0,0,0,5597,5598,5,2,0,0,5598,5599,3,996,498,0,5599,5600,5,3,0,0,5600,5620,1,0,0,0,5601,5602,5,2,0,0,5602,5603,3,996,498,0,5603,5604,5,6,0,0,5604,5605,3,996,498,0,5605,5606,5,3,0,0,5606,5620,1,0,0,0,5607,5608,5,2,0,0,5608,5609,5,400,0,0,5609,5610,5,6,0,0,5610,5611,3,996,498,0,5611,5612,5,3,0,0,5612,5620,1,0,0,0,5613,5614,5,2,0,0,5614,5615,3,996,498,0,5615,5616,5,6,0,0,5616,5617,5,400,0,0,5617,5618,5,3,0,0,5618,5620,1,0,0,0,5619,5597,1,0,0,0,5619,5601,1,0,0,0,5619,5607,1,0,0,0,5619,5613,1,0,0,0,5620,609,1,0,0,0,5621,5622,3,1264,632,0,5622,5623,5,11,0,0,5623,5625,1,0,0,0,5624,5621,1,0,0,0,5625,5628,1,0,0,0,5626,5624,1,0,0,0,5626,5627,1,0,0,0,5627,5629,1,0,0,0,5628,5626,1,0,0,0,5629,5630,3,1146,573,0,5630,611,1,0,0,0,5631,5636,3,614,307,0,5632,5633,5,6,0,0,5633,5635,3,614,307,0,5634,5632,1,0,0,0,5635,5638,1,0,0,0,5636,5634,1,0,0,0,5636,5637,1,0,0,0,5637,613,1,0,0,0,5638,5636,1,0,0,0,5639,5640,3,610,305,0,5640,5641,3,608,304,0,5641,615,1,0,0,0,5642,5643,5,57,0,0,5643,5644,3,618,309,0,5644,617,1,0,0,0,5645,5647,3,620,310,0,5646,5645,1,0,0,0,5647,5648,1,0,0,0,5648,5646,1,0,0,0,5648,5649,1,0,0,0,5649,619,1,0,0,0,5650,5654,3,1252,626,0,5651,5652,5,238,0,0,5652,5654,3,64,32,0,5653,5650,1,0,0,0,5653,5651,1,0,0,0,5654,621,1,0,0,0,5655,5656,5,46,0,0,5656,5657,5,41,0,0,5657,5658,5,2,0,0,5658,5659,3,996,498,0,5659,5660,5,36,0,0,5660,5661,3,996,498,0,5661,5662,5,3,0,0,5662,5663,5,105,0,0,5663,5664,5,211,0,0,5664,5665,3,560,280,0,5665,5666,3,624,312,0,5666,5690,1,0,0,0,5667,5668,5,46,0,0,5668,5669,5,41,0,0,5669,5670,5,2,0,0,5670,5671,3,996,498,0,5671,5672,5,36,0,0,5672,5673,3,996,498,0,5673,5674,5,3,0,0,5674,5675,5,372,0,0,5675,5676,5,211,0,0,5676,5677,3,624,312,0,5677,5690,1,0,0,0,5678,5679,5,46,0,0,5679,5680,5,41,0,0,5680,5681,5,2,0,0,5681,5682,3,996,498,0,5682,5683,5,36,0,0,5683,5684,3,996,498,0,5684,5685,5,3,0,0,5685,5686,5,105,0,0,5686,5687,5,393,0,0,5687,5688,3,624,312,0,5688,5690,1,0,0,0,5689,5655,1,0,0,0,5689,5667,1,0,0,0,5689,5678,1,0,0,0,5690,623,1,0,0,0,5691,5692,5,36,0,0,5692,5697,5,223,0,0,5693,5694,5,36,0,0,5694,5697,5,141,0,0,5695,5697,1,0,0,0,5696,5691,1,0,0,0,5696,5693,1,0,0,0,5696,5695,1,0,0,0,5697,625,1,0,0,0,5698,5699,5,191,0,0,5699,5700,5,41,0,0,5700,5701,3,628,314,0,5701,5702,5,2,0,0,5702,5703,3,996,498,0,5703,5704,5,36,0,0,5704,5705,3,996,498,0,5705,5706,5,3,0,0,5706,5707,3,100,50,0,5707,627,1,0,0,0,5708,5709,5,220,0,0,5709,5712,5,389,0,0,5710,5712,1,0,0,0,5711,5708,1,0,0,0,5711,5710,1,0,0,0,5712,629,1,0,0,0,5713,5714,5,46,0,0,5714,5715,3,554,277,0,5715,5716,5,443,0,0,5716,5717,5,62,0,0,5717,5718,3,996,498,0,5718,5719,5,238,0,0,5719,5720,3,1234,617,0,5720,5721,5,2,0,0,5721,5722,3,632,316,0,5722,5723,5,3,0,0,5723,631,1,0,0,0,5724,5725,5,64,0,0,5725,5726,5,461,0,0,5726,5727,5,105,0,0,5727,5728,5,211,0,0,5728,5729,3,560,280,0,5729,5730,5,6,0,0,5730,5731,5,94,0,0,5731,5732,5,461,0,0,5732,5733,5,105,0,0,5733,5734,5,211,0,0,5734,5735,3,560,280,0,5735,5759,1,0,0,0,5736,5737,5,94,0,0,5737,5738,5,461,0,0,5738,5739,5,105,0,0,5739,5740,5,211,0,0,5740,5741,3,560,280,0,5741,5742,5,6,0,0,5742,5743,5,64,0,0,5743,5744,5,461,0,0,5744,5745,5,105,0,0,5745,5746,5,211,0,0,5746,5747,3,560,280,0,5747,5759,1,0,0,0,5748,5749,5,64,0,0,5749,5750,5,461,0,0,5750,5751,5,105,0,0,5751,5752,5,211,0,0,5752,5759,3,560,280,0,5753,5754,5,94,0,0,5754,5755,5,461,0,0,5755,5756,5,105,0,0,5756,5757,5,211,0,0,5757,5759,3,560,280,0,5758,5724,1,0,0,0,5758,5736,1,0,0,0,5758,5748,1,0,0,0,5758,5753,1,0,0,0,5759,633,1,0,0,0,5760,5761,5,191,0,0,5761,5762,5,443,0,0,5762,5763,3,628,314,0,5763,5764,5,62,0,0,5764,5765,3,996,498,0,5765,5766,5,238,0,0,5766,5767,3,1234,617,0,5767,5768,3,100,50,0,5768,635,1,0,0,0,5769,5774,5,299,0,0,5770,5771,5,2,0,0,5771,5772,3,640,320,0,5772,5773,5,3,0,0,5773,5775,1,0,0,0,5774,5770,1,0,0,0,5774,5775,1,0,0,0,5775,5776,1,0,0,0,5776,5778,3,638,319,0,5777,5779,5,109,0,0,5778,5777,1,0,0,0,5778,5779,1,0,0,0,5779,5780,1,0,0,0,5780,5781,3,1230,615,0,5781,5831,1,0,0,0,5782,5787,5,299,0,0,5783,5784,5,2,0,0,5784,5785,3,640,320,0,5785,5786,5,3,0,0,5786,5788,1,0,0,0,5787,5783,1,0,0,0,5787,5788,1,0,0,0,5788,5789,1,0,0,0,5789,5791,5,175,0,0,5790,5792,5,109,0,0,5791,5790,1,0,0,0,5791,5792,1,0,0,0,5792,5793,1,0,0,0,5793,5831,3,1210,605,0,5794,5799,5,299,0,0,5795,5796,5,2,0,0,5796,5797,3,640,320,0,5797,5798,5,3,0,0,5798,5800,1,0,0,0,5799,5795,1,0,0,0,5799,5800,1,0,0,0,5800,5801,1,0,0,0,5801,5803,5,316,0,0,5802,5804,5,109,0,0,5803,5802,1,0,0,0,5803,5804,1,0,0,0,5804,5805,1,0,0,0,5805,5831,3,1214,607,0,5806,5811,5,299,0,0,5807,5808,5,2,0,0,5808,5809,3,640,320,0,5809,5810,5,3,0,0,5810,5812,1,0,0,0,5811,5807,1,0,0,0,5811,5812,1,0,0,0,5812,5813,1,0,0,0,5813,5815,5,226,0,0,5814,5816,5,109,0,0,5815,5814,1,0,0,0,5815,5816,1,0,0,0,5816,5817,1,0,0,0,5817,5831,3,1218,609,0,5818,5823,5,299,0,0,5819,5820,5,2,0,0,5820,5821,3,640,320,0,5821,5822,5,3,0,0,5822,5824,1,0,0,0,5823,5819,1,0,0,0,5823,5824,1,0,0,0,5824,5825,1,0,0,0,5825,5827,5,342,0,0,5826,5828,5,109,0,0,5827,5826,1,0,0,0,5827,5828,1,0,0,0,5828,5829,1,0,0,0,5829,5831,3,1234,617,0,5830,5769,1,0,0,0,5830,5782,1,0,0,0,5830,5794,1,0,0,0,5830,5806,1,0,0,0,5830,5818,1,0,0,0,5831,637,1,0,0,0,5832,5833,7,28,0,0,5833,639,1,0,0,0,5834,5839,3,642,321,0,5835,5836,5,6,0,0,5836,5838,3,642,321,0,5837,5835,1,0,0,0,5838,5841,1,0,0,0,5839,5837,1,0,0,0,5839,5840,1,0,0,0,5840,641,1,0,0,0,5841,5839,1,0,0,0,5842,5843,7,29,0,0,5843,643,1,0,0,0,5844,5845,5,138,0,0,5845,5846,5,344,0,0,5846,5847,3,1234,617,0,5847,5848,5,326,0,0,5848,5849,3,108,54,0,5849,5857,1,0,0,0,5850,5851,5,138,0,0,5851,5852,5,344,0,0,5852,5853,3,1234,617,0,5853,5854,5,306,0,0,5854,5855,3,108,54,0,5855,5857,1,0,0,0,5856,5844,1,0,0,0,5856,5850,1,0,0,0,5857,645,1,0,0,0,5858,5859,5,138,0,0,5859,5860,5,136,0,0,5860,5861,3,580,290,0,5861,5862,5,302,0,0,5862,5863,5,94,0,0,5863,5864,3,1234,617,0,5864,6296,1,0,0,0,5865,5866,5,138,0,0,5866,5867,5,108,0,0,5867,5868,3,470,235,0,5868,5869,5,302,0,0,5869,5870,5,94,0,0,5870,5871,3,1234,617,0,5871,6296,1,0,0,0,5872,5873,5,138,0,0,5873,5874,5,168,0,0,5874,5875,3,470,235,0,5875,5876,5,302,0,0,5876,5877,5,94,0,0,5877,5878,3,1234,617,0,5878,6296,1,0,0,0,5879,5880,5,138,0,0,5880,5881,5,175,0,0,5881,5882,3,1210,605,0,5882,5883,5,302,0,0,5883,5884,5,94,0,0,5884,5885,3,1234,617,0,5885,6296,1,0,0,0,5886,5887,5,138,0,0,5887,5888,5,189,0,0,5888,5889,3,470,235,0,5889,5890,5,302,0,0,5890,5891,5,94,0,0,5891,5892,3,1234,617,0,5892,6296,1,0,0,0,5893,5894,5,138,0,0,5894,5895,5,189,0,0,5895,5896,3,470,235,0,5896,5897,5,302,0,0,5897,5898,5,45,0,0,5898,5899,3,1224,612,0,5899,5900,5,94,0,0,5900,5901,3,1234,617,0,5901,6296,1,0,0,0,5902,5903,5,138,0,0,5903,5904,5,63,0,0,5904,5905,5,174,0,0,5905,5906,5,374,0,0,5906,5907,3,1234,617,0,5907,5908,5,302,0,0,5908,5909,5,94,0,0,5909,5910,3,1234,617,0,5910,6296,1,0,0,0,5911,5912,5,138,0,0,5912,5913,5,211,0,0,5913,5914,3,560,280,0,5914,5915,5,302,0,0,5915,5916,5,94,0,0,5916,5917,3,1234,617,0,5917,6296,1,0,0,0,5918,5919,5,138,0,0,5919,5920,3,276,138,0,5920,5921,5,238,0,0,5921,5922,3,1234,617,0,5922,5923,5,302,0,0,5923,5924,5,94,0,0,5924,5925,3,1234,617,0,5925,6296,1,0,0,0,5926,5927,5,138,0,0,5927,5928,5,271,0,0,5928,5929,5,156,0,0,5929,5930,3,470,235,0,5930,5931,5,100,0,0,5931,5932,3,1234,617,0,5932,5933,5,302,0,0,5933,5934,5,94,0,0,5934,5935,3,1234,617,0,5935,6296,1,0,0,0,5936,5937,5,138,0,0,5937,5938,5,271,0,0,5938,5939,5,206,0,0,5939,5940,3,470,235,0,5940,5941,5,100,0,0,5941,5942,3,1234,617,0,5942,5943,5,302,0,0,5943,5944,5,94,0,0,5944,5945,3,1234,617,0,5945,6296,1,0,0,0,5946,5947,5,138,0,0,5947,5948,5,445,0,0,5948,5949,3,1234,617,0,5949,5950,5,80,0,0,5950,5951,3,1230,615,0,5951,5952,5,302,0,0,5952,5953,5,94,0,0,5953,5954,3,1234,617,0,5954,6296,1,0,0,0,5955,5956,5,138,0,0,5956,5957,5,445,0,0,5957,5958,5,220,0,0,5958,5959,5,389,0,0,5959,5960,3,1234,617,0,5960,5961,5,80,0,0,5961,5962,3,1230,615,0,5962,5963,5,302,0,0,5963,5964,5,94,0,0,5964,5965,3,1234,617,0,5965,6296,1,0,0,0,5966,5967,5,138,0,0,5967,5968,5,289,0,0,5968,5969,3,560,280,0,5969,5970,5,302,0,0,5970,5971,5,94,0,0,5971,5972,3,1234,617,0,5972,6296,1,0,0,0,5973,5974,5,138,0,0,5974,5975,5,452,0,0,5975,5976,3,1234,617,0,5976,5977,5,302,0,0,5977,5978,5,94,0,0,5978,5979,3,1234,617,0,5979,6296,1,0,0,0,5980,5981,5,138,0,0,5981,5982,5,442,0,0,5982,5983,3,560,280,0,5983,5984,5,302,0,0,5984,5985,5,94,0,0,5985,5986,3,1234,617,0,5986,6296,1,0,0,0,5987,5988,5,138,0,0,5988,5989,5,316,0,0,5989,5990,3,1214,607,0,5990,5991,5,302,0,0,5991,5992,5,94,0,0,5992,5993,3,1234,617,0,5993,6296,1,0,0,0,5994,5995,5,138,0,0,5995,5996,5,324,0,0,5996,5997,3,1234,617,0,5997,5998,5,302,0,0,5998,5999,5,94,0,0,5999,6e3,3,1234,617,0,6e3,6296,1,0,0,0,6001,6002,5,138,0,0,6002,6003,5,451,0,0,6003,6004,3,1234,617,0,6004,6005,5,302,0,0,6005,6006,5,94,0,0,6006,6007,3,1234,617,0,6007,6296,1,0,0,0,6008,6009,5,138,0,0,6009,6010,5,92,0,0,6010,6011,3,958,479,0,6011,6012,5,302,0,0,6012,6013,5,94,0,0,6013,6014,3,1234,617,0,6014,6296,1,0,0,0,6015,6016,5,138,0,0,6016,6017,5,92,0,0,6017,6018,5,220,0,0,6018,6019,5,389,0,0,6019,6020,3,958,479,0,6020,6021,5,302,0,0,6021,6022,5,94,0,0,6022,6023,3,1234,617,0,6023,6296,1,0,0,0,6024,6025,5,138,0,0,6025,6028,5,321,0,0,6026,6027,5,220,0,0,6027,6029,5,389,0,0,6028,6026,1,0,0,0,6028,6029,1,0,0,0,6029,6030,1,0,0,0,6030,6031,3,1226,613,0,6031,6032,5,302,0,0,6032,6033,5,94,0,0,6033,6034,3,1234,617,0,6034,6296,1,0,0,0,6035,6036,5,138,0,0,6036,6037,5,369,0,0,6037,6038,3,1230,615,0,6038,6039,5,302,0,0,6039,6040,5,94,0,0,6040,6041,3,1234,617,0,6041,6296,1,0,0,0,6042,6043,5,138,0,0,6043,6044,5,369,0,0,6044,6045,5,220,0,0,6045,6046,5,389,0,0,6046,6047,3,1230,615,0,6047,6048,5,302,0,0,6048,6049,5,94,0,0,6049,6050,3,1234,617,0,6050,6296,1,0,0,0,6051,6052,5,138,0,0,6052,6053,5,251,0,0,6053,6054,5,369,0,0,6054,6055,3,1230,615,0,6055,6056,5,302,0,0,6056,6057,5,94,0,0,6057,6058,3,1234,617,0,6058,6296,1,0,0,0,6059,6060,5,138,0,0,6060,6061,5,251,0,0,6061,6062,5,369,0,0,6062,6063,5,220,0,0,6063,6064,5,389,0,0,6064,6065,3,1230,615,0,6065,6066,5,302,0,0,6066,6067,5,94,0,0,6067,6068,3,1234,617,0,6068,6296,1,0,0,0,6069,6070,5,138,0,0,6070,6073,5,226,0,0,6071,6072,5,220,0,0,6072,6074,5,389,0,0,6073,6071,1,0,0,0,6073,6074,1,0,0,0,6074,6075,1,0,0,0,6075,6076,3,1218,609,0,6076,6077,5,302,0,0,6077,6078,5,94,0,0,6078,6079,3,1234,617,0,6079,6296,1,0,0,0,6080,6081,5,138,0,0,6081,6082,5,63,0,0,6082,6083,5,92,0,0,6083,6084,3,958,479,0,6084,6085,5,302,0,0,6085,6086,5,94,0,0,6086,6087,3,1234,617,0,6087,6296,1,0,0,0,6088,6089,5,138,0,0,6089,6090,5,63,0,0,6090,6091,5,92,0,0,6091,6092,5,220,0,0,6092,6093,5,389,0,0,6093,6094,3,958,479,0,6094,6095,5,302,0,0,6095,6096,5,94,0,0,6096,6097,3,1234,617,0,6097,6296,1,0,0,0,6098,6099,5,138,0,0,6099,6100,5,92,0,0,6100,6101,3,958,479,0,6101,6102,5,302,0,0,6102,6103,3,648,324,0,6103,6104,3,1234,617,0,6104,6105,5,94,0,0,6105,6106,3,1234,617,0,6106,6296,1,0,0,0,6107,6108,5,138,0,0,6108,6109,5,92,0,0,6109,6110,5,220,0,0,6110,6111,5,389,0,0,6111,6112,3,958,479,0,6112,6113,5,302,0,0,6113,6114,3,648,324,0,6114,6115,3,1234,617,0,6115,6116,5,94,0,0,6116,6117,3,1234,617,0,6117,6296,1,0,0,0,6118,6119,5,138,0,0,6119,6120,5,369,0,0,6120,6121,3,1230,615,0,6121,6122,5,302,0,0,6122,6123,3,648,324,0,6123,6124,3,1234,617,0,6124,6125,5,94,0,0,6125,6126,3,1234,617,0,6126,6296,1,0,0,0,6127,6128,5,138,0,0,6128,6129,5,369,0,0,6129,6130,5,220,0,0,6130,6131,5,389,0,0,6131,6132,3,1230,615,0,6132,6133,5,302,0,0,6133,6134,3,648,324,0,6134,6135,3,1234,617,0,6135,6136,5,94,0,0,6136,6137,3,1234,617,0,6137,6296,1,0,0,0,6138,6139,5,138,0,0,6139,6140,5,251,0,0,6140,6141,5,369,0,0,6141,6142,3,1230,615,0,6142,6143,5,302,0,0,6143,6144,3,648,324,0,6144,6145,3,1234,617,0,6145,6146,5,94,0,0,6146,6147,3,1234,617,0,6147,6296,1,0,0,0,6148,6149,5,138,0,0,6149,6150,5,251,0,0,6150,6151,5,369,0,0,6151,6152,5,220,0,0,6152,6153,5,389,0,0,6153,6154,3,1230,615,0,6154,6155,5,302,0,0,6155,6156,3,648,324,0,6156,6157,3,1234,617,0,6157,6158,5,94,0,0,6158,6159,3,1234,617,0,6159,6296,1,0,0,0,6160,6161,5,138,0,0,6161,6164,5,92,0,0,6162,6163,5,220,0,0,6163,6165,5,389,0,0,6164,6162,1,0,0,0,6164,6165,1,0,0,0,6165,6166,1,0,0,0,6166,6167,3,958,479,0,6167,6168,5,302,0,0,6168,6169,5,45,0,0,6169,6170,3,1224,612,0,6170,6171,5,94,0,0,6171,6172,3,1234,617,0,6172,6296,1,0,0,0,6173,6174,5,138,0,0,6174,6175,5,63,0,0,6175,6176,5,92,0,0,6176,6177,3,958,479,0,6177,6178,5,302,0,0,6178,6179,3,648,324,0,6179,6180,3,1234,617,0,6180,6181,5,94,0,0,6181,6182,3,1234,617,0,6182,6296,1,0,0,0,6183,6184,5,138,0,0,6184,6185,5,63,0,0,6185,6186,5,92,0,0,6186,6187,5,220,0,0,6187,6188,5,389,0,0,6188,6189,3,958,479,0,6189,6190,5,302,0,0,6190,6191,3,648,324,0,6191,6192,3,1234,617,0,6192,6193,5,94,0,0,6193,6194,3,1234,617,0,6194,6296,1,0,0,0,6195,6196,5,138,0,0,6196,6197,5,314,0,0,6197,6198,3,1234,617,0,6198,6199,5,80,0,0,6199,6200,3,1230,615,0,6200,6201,5,302,0,0,6201,6202,5,94,0,0,6202,6203,3,1234,617,0,6203,6296,1,0,0,0,6204,6205,5,138,0,0,6205,6206,5,350,0,0,6206,6207,3,1222,611,0,6207,6208,5,80,0,0,6208,6209,3,1230,615,0,6209,6210,5,302,0,0,6210,6211,5,94,0,0,6211,6212,3,1234,617,0,6212,6296,1,0,0,0,6213,6214,5,138,0,0,6214,6215,5,198,0,0,6215,6216,5,350,0,0,6216,6217,3,1234,617,0,6217,6218,5,302,0,0,6218,6219,5,94,0,0,6219,6220,3,1234,617,0,6220,6296,1,0,0,0,6221,6222,5,138,0,0,6222,6223,3,1506,753,0,6223,6224,3,1260,630,0,6224,6225,5,302,0,0,6225,6226,5,94,0,0,6226,6227,3,1260,630,0,6227,6296,1,0,0,0,6228,6229,5,138,0,0,6229,6230,5,344,0,0,6230,6231,3,1234,617,0,6231,6232,5,302,0,0,6232,6233,5,94,0,0,6233,6234,3,1234,617,0,6234,6296,1,0,0,0,6235,6236,5,138,0,0,6236,6237,5,335,0,0,6237,6238,3,470,235,0,6238,6239,5,302,0,0,6239,6240,5,94,0,0,6240,6241,3,1234,617,0,6241,6296,1,0,0,0,6242,6243,5,138,0,0,6243,6244,5,348,0,0,6244,6245,5,318,0,0,6245,6246,5,276,0,0,6246,6247,3,470,235,0,6247,6248,5,302,0,0,6248,6249,5,94,0,0,6249,6250,3,1234,617,0,6250,6296,1,0,0,0,6251,6252,5,138,0,0,6252,6253,5,348,0,0,6253,6254,5,318,0,0,6254,6255,5,185,0,0,6255,6256,3,470,235,0,6256,6257,5,302,0,0,6257,6258,5,94,0,0,6258,6259,3,1234,617,0,6259,6296,1,0,0,0,6260,6261,5,138,0,0,6261,6262,5,348,0,0,6262,6263,5,318,0,0,6263,6264,5,346,0,0,6264,6265,3,470,235,0,6265,6266,5,302,0,0,6266,6267,5,94,0,0,6267,6268,3,1234,617,0,6268,6296,1,0,0,0,6269,6270,5,138,0,0,6270,6271,5,348,0,0,6271,6272,5,318,0,0,6272,6273,5,163,0,0,6273,6274,3,470,235,0,6274,6275,5,302,0,0,6275,6276,5,94,0,0,6276,6277,3,1234,617,0,6277,6296,1,0,0,0,6278,6279,5,138,0,0,6279,6280,5,353,0,0,6280,6281,3,470,235,0,6281,6282,5,302,0,0,6282,6283,5,94,0,0,6283,6284,3,1234,617,0,6284,6296,1,0,0,0,6285,6286,5,138,0,0,6286,6287,5,353,0,0,6287,6288,3,470,235,0,6288,6289,5,302,0,0,6289,6290,5,143,0,0,6290,6291,3,1234,617,0,6291,6292,5,94,0,0,6292,6293,3,1234,617,0,6293,6294,3,100,50,0,6294,6296,1,0,0,0,6295,5858,1,0,0,0,6295,5865,1,0,0,0,6295,5872,1,0,0,0,6295,5879,1,0,0,0,6295,5886,1,0,0,0,6295,5893,1,0,0,0,6295,5902,1,0,0,0,6295,5911,1,0,0,0,6295,5918,1,0,0,0,6295,5926,1,0,0,0,6295,5936,1,0,0,0,6295,5946,1,0,0,0,6295,5955,1,0,0,0,6295,5966,1,0,0,0,6295,5973,1,0,0,0,6295,5980,1,0,0,0,6295,5987,1,0,0,0,6295,5994,1,0,0,0,6295,6001,1,0,0,0,6295,6008,1,0,0,0,6295,6015,1,0,0,0,6295,6024,1,0,0,0,6295,6035,1,0,0,0,6295,6042,1,0,0,0,6295,6051,1,0,0,0,6295,6059,1,0,0,0,6295,6069,1,0,0,0,6295,6080,1,0,0,0,6295,6088,1,0,0,0,6295,6098,1,0,0,0,6295,6107,1,0,0,0,6295,6118,1,0,0,0,6295,6127,1,0,0,0,6295,6138,1,0,0,0,6295,6148,1,0,0,0,6295,6160,1,0,0,0,6295,6173,1,0,0,0,6295,6183,1,0,0,0,6295,6195,1,0,0,0,6295,6204,1,0,0,0,6295,6213,1,0,0,0,6295,6221,1,0,0,0,6295,6228,1,0,0,0,6295,6235,1,0,0,0,6295,6242,1,0,0,0,6295,6251,1,0,0,0,6295,6260,1,0,0,0,6295,6269,1,0,0,0,6295,6278,1,0,0,0,6295,6285,1,0,0,0,6296,647,1,0,0,0,6297,6300,5,44,0,0,6298,6300,1,0,0,0,6299,6297,1,0,0,0,6299,6298,1,0,0,0,6300,649,1,0,0,0,6301,6302,5,326,0,0,6302,6305,5,174,0,0,6303,6305,1,0,0,0,6304,6301,1,0,0,0,6304,6303,1,0,0,0,6305,651,1,0,0,0,6306,6307,5,138,0,0,6307,6308,5,211,0,0,6308,6310,3,560,280,0,6309,6311,5,262,0,0,6310,6309,1,0,0,0,6310,6311,1,0,0,0,6311,6312,1,0,0,0,6312,6313,5,462,0,0,6313,6314,5,80,0,0,6314,6315,5,204,0,0,6315,6316,3,1234,617,0,6316,6376,1,0,0,0,6317,6318,5,138,0,0,6318,6319,5,289,0,0,6319,6321,3,560,280,0,6320,6322,5,262,0,0,6321,6320,1,0,0,0,6321,6322,1,0,0,0,6322,6323,1,0,0,0,6323,6324,5,462,0,0,6324,6325,5,80,0,0,6325,6326,5,204,0,0,6326,6327,3,1234,617,0,6327,6376,1,0,0,0,6328,6329,5,138,0,0,6329,6330,5,442,0,0,6330,6332,3,560,280,0,6331,6333,5,262,0,0,6332,6331,1,0,0,0,6332,6333,1,0,0,0,6333,6334,1,0,0,0,6334,6335,5,462,0,0,6335,6336,5,80,0,0,6336,6337,5,204,0,0,6337,6338,3,1234,617,0,6338,6376,1,0,0,0,6339,6340,5,138,0,0,6340,6341,5,350,0,0,6341,6342,3,1222,611,0,6342,6343,5,80,0,0,6343,6345,3,1230,615,0,6344,6346,5,262,0,0,6345,6344,1,0,0,0,6345,6346,1,0,0,0,6346,6347,1,0,0,0,6347,6348,5,462,0,0,6348,6349,5,80,0,0,6349,6350,5,204,0,0,6350,6351,3,1234,617,0,6351,6376,1,0,0,0,6352,6353,5,138,0,0,6353,6354,5,251,0,0,6354,6355,5,369,0,0,6355,6357,3,1230,615,0,6356,6358,5,262,0,0,6357,6356,1,0,0,0,6357,6358,1,0,0,0,6358,6359,1,0,0,0,6359,6360,5,462,0,0,6360,6361,5,80,0,0,6361,6362,5,204,0,0,6362,6363,3,1234,617,0,6363,6376,1,0,0,0,6364,6365,5,138,0,0,6365,6366,5,226,0,0,6366,6368,3,1218,609,0,6367,6369,5,262,0,0,6368,6367,1,0,0,0,6368,6369,1,0,0,0,6369,6370,1,0,0,0,6370,6371,5,462,0,0,6371,6372,5,80,0,0,6372,6373,5,204,0,0,6373,6374,3,1234,617,0,6374,6376,1,0,0,0,6375,6306,1,0,0,0,6375,6317,1,0,0,0,6375,6328,1,0,0,0,6375,6339,1,0,0,0,6375,6352,1,0,0,0,6375,6364,1,0,0,0,6376,653,1,0,0,0,6377,6378,5,138,0,0,6378,6379,5,136,0,0,6379,6380,3,580,290,0,6380,6381,5,326,0,0,6381,6382,5,316,0,0,6382,6383,3,1214,607,0,6383,6590,1,0,0,0,6384,6385,5,138,0,0,6385,6386,5,108,0,0,6386,6387,3,470,235,0,6387,6388,5,326,0,0,6388,6389,5,316,0,0,6389,6390,3,1214,607,0,6390,6590,1,0,0,0,6391,6392,5,138,0,0,6392,6393,5,168,0,0,6393,6394,3,470,235,0,6394,6395,5,326,0,0,6395,6396,5,316,0,0,6396,6397,3,1214,607,0,6397,6590,1,0,0,0,6398,6399,5,138,0,0,6399,6400,5,189,0,0,6400,6401,3,470,235,0,6401,6402,5,326,0,0,6402,6403,5,316,0,0,6403,6404,3,1214,607,0,6404,6590,1,0,0,0,6405,6406,5,138,0,0,6406,6407,5,204,0,0,6407,6408,3,1234,617,0,6408,6409,5,326,0,0,6409,6410,5,316,0,0,6410,6411,3,1214,607,0,6411,6590,1,0,0,0,6412,6413,5,138,0,0,6413,6414,5,211,0,0,6414,6415,3,560,280,0,6415,6416,5,326,0,0,6416,6417,5,316,0,0,6417,6418,3,1214,607,0,6418,6590,1,0,0,0,6419,6420,5,138,0,0,6420,6421,5,271,0,0,6421,6422,3,614,307,0,6422,6423,5,326,0,0,6423,6424,5,316,0,0,6424,6425,3,1214,607,0,6425,6590,1,0,0,0,6426,6427,5,138,0,0,6427,6428,5,271,0,0,6428,6429,5,156,0,0,6429,6430,3,470,235,0,6430,6431,5,100,0,0,6431,6432,3,1234,617,0,6432,6433,5,326,0,0,6433,6434,5,316,0,0,6434,6435,3,1214,607,0,6435,6590,1,0,0,0,6436,6437,5,138,0,0,6437,6438,5,271,0,0,6438,6439,5,206,0,0,6439,6440,3,470,235,0,6440,6441,5,100,0,0,6441,6442,3,1234,617,0,6442,6443,5,326,0,0,6443,6444,5,316,0,0,6444,6445,3,1214,607,0,6445,6590,1,0,0,0,6446,6447,5,138,0,0,6447,6448,5,289,0,0,6448,6449,3,560,280,0,6449,6450,5,326,0,0,6450,6451,5,316,0,0,6451,6452,3,1214,607,0,6452,6590,1,0,0,0,6453,6454,5,138,0,0,6454,6455,5,442,0,0,6455,6456,3,560,280,0,6456,6457,5,326,0,0,6457,6458,5,316,0,0,6458,6459,3,1214,607,0,6459,6590,1,0,0,0,6460,6461,5,138,0,0,6461,6462,5,92,0,0,6462,6463,3,958,479,0,6463,6464,5,326,0,0,6464,6465,5,316,0,0,6465,6466,3,1214,607,0,6466,6590,1,0,0,0,6467,6468,5,138,0,0,6468,6469,5,92,0,0,6469,6470,5,220,0,0,6470,6471,5,389,0,0,6471,6472,3,958,479,0,6472,6473,5,326,0,0,6473,6474,5,316,0,0,6474,6475,3,1214,607,0,6475,6590,1,0,0,0,6476,6477,5,138,0,0,6477,6478,5,335,0,0,6478,6479,3,470,235,0,6479,6480,5,326,0,0,6480,6481,5,316,0,0,6481,6482,3,1214,607,0,6482,6590,1,0,0,0,6483,6484,5,138,0,0,6484,6485,5,348,0,0,6485,6486,5,318,0,0,6486,6487,5,276,0,0,6487,6488,3,470,235,0,6488,6489,5,326,0,0,6489,6490,5,316,0,0,6490,6491,3,1214,607,0,6491,6590,1,0,0,0,6492,6493,5,138,0,0,6493,6494,5,348,0,0,6494,6495,5,318,0,0,6495,6496,5,185,0,0,6496,6497,3,470,235,0,6497,6498,5,326,0,0,6498,6499,5,316,0,0,6499,6500,3,1214,607,0,6500,6590,1,0,0,0,6501,6502,5,138,0,0,6502,6503,5,348,0,0,6503,6504,5,318,0,0,6504,6505,5,346,0,0,6505,6506,3,470,235,0,6506,6507,5,326,0,0,6507,6508,5,316,0,0,6508,6509,3,1214,607,0,6509,6590,1,0,0,0,6510,6511,5,138,0,0,6511,6512,5,348,0,0,6512,6513,5,318,0,0,6513,6514,5,163,0,0,6514,6515,3,470,235,0,6515,6516,5,326,0,0,6516,6517,5,316,0,0,6517,6518,3,1214,607,0,6518,6590,1,0,0,0,6519,6520,5,138,0,0,6520,6523,5,321,0,0,6521,6522,5,220,0,0,6522,6524,5,389,0,0,6523,6521,1,0,0,0,6523,6524,1,0,0,0,6524,6525,1,0,0,0,6525,6526,3,1226,613,0,6526,6527,5,326,0,0,6527,6528,5,316,0,0,6528,6529,3,1214,607,0,6529,6590,1,0,0,0,6530,6531,5,138,0,0,6531,6532,5,369,0,0,6532,6533,3,1230,615,0,6533,6534,5,326,0,0,6534,6535,5,316,0,0,6535,6536,3,1214,607,0,6536,6590,1,0,0,0,6537,6538,5,138,0,0,6538,6539,5,369,0,0,6539,6540,5,220,0,0,6540,6541,5,389,0,0,6541,6542,3,1230,615,0,6542,6543,5,326,0,0,6543,6544,5,316,0,0,6544,6545,3,1214,607,0,6545,6590,1,0,0,0,6546,6547,5,138,0,0,6547,6548,5,251,0,0,6548,6549,5,369,0,0,6549,6550,3,1230,615,0,6550,6551,5,326,0,0,6551,6552,5,316,0,0,6552,6553,3,1214,607,0,6553,6590,1,0,0,0,6554,6555,5,138,0,0,6555,6556,5,251,0,0,6556,6557,5,369,0,0,6557,6558,5,220,0,0,6558,6559,5,389,0,0,6559,6560,3,1230,615,0,6560,6561,5,326,0,0,6561,6562,5,316,0,0,6562,6563,3,1214,607,0,6563,6590,1,0,0,0,6564,6565,5,138,0,0,6565,6566,5,63,0,0,6566,6567,5,92,0,0,6567,6568,3,958,479,0,6568,6569,5,326,0,0,6569,6570,5,316,0,0,6570,6571,3,1214,607,0,6571,6590,1,0,0,0,6572,6573,5,138,0,0,6573,6574,5,63,0,0,6574,6575,5,92,0,0,6575,6576,5,220,0,0,6576,6577,5,389,0,0,6577,6578,3,958,479,0,6578,6579,5,326,0,0,6579,6580,5,316,0,0,6580,6581,3,1214,607,0,6581,6590,1,0,0,0,6582,6583,5,138,0,0,6583,6584,5,353,0,0,6584,6585,3,470,235,0,6585,6586,5,326,0,0,6586,6587,5,316,0,0,6587,6588,3,1214,607,0,6588,6590,1,0,0,0,6589,6377,1,0,0,0,6589,6384,1,0,0,0,6589,6391,1,0,0,0,6589,6398,1,0,0,0,6589,6405,1,0,0,0,6589,6412,1,0,0,0,6589,6419,1,0,0,0,6589,6426,1,0,0,0,6589,6436,1,0,0,0,6589,6446,1,0,0,0,6589,6453,1,0,0,0,6589,6460,1,0,0,0,6589,6467,1,0,0,0,6589,6476,1,0,0,0,6589,6483,1,0,0,0,6589,6492,1,0,0,0,6589,6501,1,0,0,0,6589,6510,1,0,0,0,6589,6519,1,0,0,0,6589,6530,1,0,0,0,6589,6537,1,0,0,0,6589,6546,1,0,0,0,6589,6554,1,0,0,0,6589,6564,1,0,0,0,6589,6572,1,0,0,0,6589,6582,1,0,0,0,6590,655,1,0,0,0,6591,6592,5,138,0,0,6592,6593,5,271,0,0,6593,6594,3,614,307,0,6594,6595,5,326,0,0,6595,6596,5,2,0,0,6596,6597,3,658,329,0,6597,6598,5,3,0,0,6598,657,1,0,0,0,6599,6604,3,660,330,0,6600,6601,5,6,0,0,6601,6603,3,660,330,0,6602,6600,1,0,0,0,6603,6606,1,0,0,0,6604,6602,1,0,0,0,6604,6605,1,0,0,0,6605,659,1,0,0,0,6606,6604,1,0,0,0,6607,6608,3,1272,636,0,6608,6609,5,10,0,0,6609,6610,5,400,0,0,6610,6616,1,0,0,0,6611,6612,3,1272,636,0,6612,6613,5,10,0,0,6613,6614,3,662,331,0,6614,6616,1,0,0,0,6615,6607,1,0,0,0,6615,6611,1,0,0,0,6616,661,1,0,0,0,6617,6623,3,574,287,0,6618,6623,3,1284,642,0,6619,6623,3,1152,576,0,6620,6623,3,264,132,0,6621,6623,3,1252,626,0,6622,6617,1,0,0,0,6622,6618,1,0,0,0,6622,6619,1,0,0,0,6622,6620,1,0,0,0,6622,6621,1,0,0,0,6623,663,1,0,0,0,6624,6625,5,138,0,0,6625,6626,5,353,0,0,6626,6627,3,470,235,0,6627,6628,5,326,0,0,6628,6629,5,2,0,0,6629,6630,3,658,329,0,6630,6631,5,3,0,0,6631,665,1,0,0,0,6632,6633,5,138,0,0,6633,6634,5,136,0,0,6634,6635,3,580,290,0,6635,6636,5,275,0,0,6636,6637,5,94,0,0,6637,6638,3,1260,630,0,6638,6816,1,0,0,0,6639,6640,5,138,0,0,6640,6641,5,108,0,0,6641,6642,3,470,235,0,6642,6643,5,275,0,0,6643,6644,5,94,0,0,6644,6645,3,1260,630,0,6645,6816,1,0,0,0,6646,6647,5,138,0,0,6647,6648,5,168,0,0,6648,6649,3,470,235,0,6649,6650,5,275,0,0,6650,6651,5,94,0,0,6651,6652,3,1260,630,0,6652,6816,1,0,0,0,6653,6654,5,138,0,0,6654,6655,5,175,0,0,6655,6656,3,1210,605,0,6656,6657,5,275,0,0,6657,6658,5,94,0,0,6658,6659,3,1260,630,0,6659,6816,1,0,0,0,6660,6661,5,138,0,0,6661,6662,5,189,0,0,6662,6663,3,470,235,0,6663,6664,5,275,0,0,6664,6665,5,94,0,0,6665,6666,3,1260,630,0,6666,6816,1,0,0,0,6667,6668,5,138,0,0,6668,6669,5,211,0,0,6669,6670,3,560,280,0,6670,6671,5,275,0,0,6671,6672,5,94,0,0,6672,6673,3,1260,630,0,6673,6816,1,0,0,0,6674,6675,5,138,0,0,6675,6676,3,276,138,0,6676,6677,5,238,0,0,6677,6678,3,1234,617,0,6678,6679,5,275,0,0,6679,6680,5,94,0,0,6680,6681,3,1260,630,0,6681,6816,1,0,0,0,6682,6683,5,138,0,0,6683,6684,5,239,0,0,6684,6685,5,267,0,0,6685,6686,3,264,132,0,6686,6687,5,275,0,0,6687,6688,5,94,0,0,6688,6689,3,1260,630,0,6689,6816,1,0,0,0,6690,6691,5,138,0,0,6691,6692,5,271,0,0,6692,6693,3,614,307,0,6693,6694,5,275,0,0,6694,6695,5,94,0,0,6695,6696,3,1260,630,0,6696,6816,1,0,0,0,6697,6698,5,138,0,0,6698,6699,5,271,0,0,6699,6700,5,156,0,0,6700,6701,3,470,235,0,6701,6702,5,100,0,0,6702,6703,3,1234,617,0,6703,6704,5,275,0,0,6704,6705,5,94,0,0,6705,6706,3,1260,630,0,6706,6816,1,0,0,0,6707,6708,5,138,0,0,6708,6709,5,271,0,0,6709,6710,5,206,0,0,6710,6711,3,470,235,0,6711,6712,5,100,0,0,6712,6713,3,1234,617,0,6713,6714,5,275,0,0,6714,6715,5,94,0,0,6715,6716,3,1260,630,0,6716,6816,1,0,0,0,6717,6718,5,138,0,0,6718,6719,5,289,0,0,6719,6720,3,560,280,0,6720,6721,5,275,0,0,6721,6722,5,94,0,0,6722,6723,3,1260,630,0,6723,6816,1,0,0,0,6724,6725,5,138,0,0,6725,6726,5,442,0,0,6726,6727,3,560,280,0,6727,6728,5,275,0,0,6728,6729,5,94,0,0,6729,6730,3,1260,630,0,6730,6816,1,0,0,0,6731,6732,5,138,0,0,6732,6733,5,316,0,0,6733,6734,3,1214,607,0,6734,6735,5,275,0,0,6735,6736,5,94,0,0,6736,6737,3,1260,630,0,6737,6816,1,0,0,0,6738,6739,5,138,0,0,6739,6740,5,353,0,0,6740,6741,3,470,235,0,6741,6742,5,275,0,0,6742,6743,5,94,0,0,6743,6744,3,1260,630,0,6744,6816,1,0,0,0,6745,6746,5,138,0,0,6746,6747,5,344,0,0,6747,6748,3,1234,617,0,6748,6749,5,275,0,0,6749,6750,5,94,0,0,6750,6751,3,1260,630,0,6751,6816,1,0,0,0,6752,6753,5,138,0,0,6753,6754,5,335,0,0,6754,6755,3,470,235,0,6755,6756,5,275,0,0,6756,6757,5,94,0,0,6757,6758,3,1260,630,0,6758,6816,1,0,0,0,6759,6760,5,138,0,0,6760,6761,5,348,0,0,6761,6762,5,318,0,0,6762,6763,5,185,0,0,6763,6764,3,470,235,0,6764,6765,5,275,0,0,6765,6766,5,94,0,0,6766,6767,3,1260,630,0,6767,6816,1,0,0,0,6768,6769,5,138,0,0,6769,6770,5,348,0,0,6770,6771,5,318,0,0,6771,6772,5,163,0,0,6772,6773,3,470,235,0,6773,6774,5,275,0,0,6774,6775,5,94,0,0,6775,6776,3,1260,630,0,6776,6816,1,0,0,0,6777,6778,5,138,0,0,6778,6779,5,63,0,0,6779,6780,5,174,0,0,6780,6781,5,374,0,0,6781,6782,3,1234,617,0,6782,6783,5,275,0,0,6783,6784,5,94,0,0,6784,6785,3,1260,630,0,6785,6816,1,0,0,0,6786,6787,5,138,0,0,6787,6788,5,324,0,0,6788,6789,3,1234,617,0,6789,6790,5,275,0,0,6790,6791,5,94,0,0,6791,6792,3,1260,630,0,6792,6816,1,0,0,0,6793,6794,5,138,0,0,6794,6795,5,198,0,0,6795,6796,5,350,0,0,6796,6797,3,1234,617,0,6797,6798,5,275,0,0,6798,6799,5,94,0,0,6799,6800,3,1260,630,0,6800,6816,1,0,0,0,6801,6802,5,138,0,0,6802,6803,5,452,0,0,6803,6804,3,1234,617,0,6804,6805,5,275,0,0,6805,6806,5,94,0,0,6806,6807,3,1260,630,0,6807,6816,1,0,0,0,6808,6809,5,138,0,0,6809,6810,5,451,0,0,6810,6811,3,1234,617,0,6811,6812,5,275,0,0,6812,6813,5,94,0,0,6813,6814,3,1260,630,0,6814,6816,1,0,0,0,6815,6632,1,0,0,0,6815,6639,1,0,0,0,6815,6646,1,0,0,0,6815,6653,1,0,0,0,6815,6660,1,0,0,0,6815,6667,1,0,0,0,6815,6674,1,0,0,0,6815,6682,1,0,0,0,6815,6690,1,0,0,0,6815,6697,1,0,0,0,6815,6707,1,0,0,0,6815,6717,1,0,0,0,6815,6724,1,0,0,0,6815,6731,1,0,0,0,6815,6738,1,0,0,0,6815,6745,1,0,0,0,6815,6752,1,0,0,0,6815,6759,1,0,0,0,6815,6768,1,0,0,0,6815,6777,1,0,0,0,6815,6786,1,0,0,0,6815,6793,1,0,0,0,6815,6801,1,0,0,0,6815,6808,1,0,0,0,6816,667,1,0,0,0,6817,6818,5,46,0,0,6818,6819,5,452,0,0,6819,6820,3,1234,617,0,6820,6821,3,670,335,0,6821,6822,3,594,297,0,6822,669,1,0,0,0,6823,6826,3,672,336,0,6824,6826,1,0,0,0,6825,6823,1,0,0,0,6825,6824,1,0,0,0,6826,671,1,0,0,0,6827,6828,5,62,0,0,6828,6829,5,92,0,0,6829,6834,3,960,480,0,6830,6831,5,62,0,0,6831,6832,5,30,0,0,6832,6834,5,343,0,0,6833,6827,1,0,0,0,6833,6830,1,0,0,0,6834,673,1,0,0,0,6835,6836,5,138,0,0,6836,6837,5,452,0,0,6837,6838,3,1234,617,0,6838,6839,5,326,0,0,6839,6840,3,416,208,0,6840,6863,1,0,0,0,6841,6842,5,138,0,0,6842,6843,5,452,0,0,6843,6844,3,1234,617,0,6844,6845,5,133,0,0,6845,6846,5,92,0,0,6846,6847,3,960,480,0,6847,6863,1,0,0,0,6848,6849,5,138,0,0,6849,6850,5,452,0,0,6850,6851,3,1234,617,0,6851,6852,5,326,0,0,6852,6853,5,92,0,0,6853,6854,3,960,480,0,6854,6863,1,0,0,0,6855,6856,5,138,0,0,6856,6857,5,452,0,0,6857,6858,3,1234,617,0,6858,6859,5,191,0,0,6859,6860,5,92,0,0,6860,6861,3,960,480,0,6861,6863,1,0,0,0,6862,6835,1,0,0,0,6862,6841,1,0,0,0,6862,6848,1,0,0,0,6862,6855,1,0,0,0,6863,675,1,0,0,0,6864,6865,5,46,0,0,6865,6866,5,451,0,0,6866,6867,3,1234,617,0,6867,6868,5,164,0,0,6868,6869,3,1252,626,0,6869,6870,5,452,0,0,6870,6871,3,678,339,0,6871,6872,3,594,297,0,6872,677,1,0,0,0,6873,6878,3,680,340,0,6874,6875,5,6,0,0,6875,6877,3,680,340,0,6876,6874,1,0,0,0,6877,6880,1,0,0,0,6878,6876,1,0,0,0,6878,6879,1,0,0,0,6879,679,1,0,0,0,6880,6878,1,0,0,0,6881,6882,3,1272,636,0,6882,681,1,0,0,0,6883,6884,5,138,0,0,6884,6885,5,451,0,0,6885,6886,3,1234,617,0,6886,6887,5,326,0,0,6887,6888,3,416,208,0,6888,6921,1,0,0,0,6889,6890,5,138,0,0,6890,6891,5,451,0,0,6891,6892,3,1234,617,0,6892,6893,5,164,0,0,6893,6894,3,1252,626,0,6894,6921,1,0,0,0,6895,6896,5,138,0,0,6896,6897,5,451,0,0,6897,6898,3,1234,617,0,6898,6899,5,298,0,0,6899,6900,5,452,0,0,6900,6901,3,594,297,0,6901,6921,1,0,0,0,6902,6903,5,138,0,0,6903,6904,5,451,0,0,6904,6905,3,1234,617,0,6905,6906,5,326,0,0,6906,6907,5,452,0,0,6907,6908,3,678,339,0,6908,6909,3,594,297,0,6909,6921,1,0,0,0,6910,6911,5,138,0,0,6911,6912,5,451,0,0,6912,6913,3,1234,617,0,6913,6914,5,193,0,0,6914,6921,1,0,0,0,6915,6916,5,138,0,0,6916,6917,5,451,0,0,6917,6918,3,1234,617,0,6918,6919,5,186,0,0,6919,6921,1,0,0,0,6920,6883,1,0,0,0,6920,6889,1,0,0,0,6920,6895,1,0,0,0,6920,6902,1,0,0,0,6920,6910,1,0,0,0,6920,6915,1,0,0,0,6921,683,1,0,0,0,6922,6923,5,191,0,0,6923,6924,5,451,0,0,6924,6925,3,1234,617,0,6925,6926,3,100,50,0,6926,6935,1,0,0,0,6927,6928,5,191,0,0,6928,6929,5,451,0,0,6929,6930,5,220,0,0,6930,6931,5,389,0,0,6931,6932,3,1234,617,0,6932,6933,3,100,50,0,6933,6935,1,0,0,0,6934,6922,1,0,0,0,6934,6927,1,0,0,0,6935,685,1,0,0,0,6936,6937,5,46,0,0,6937,6938,3,554,277,0,6938,6939,5,314,0,0,6939,6940,3,1234,617,0,6940,6941,5,36,0,0,6941,6942,5,80,0,0,6942,6943,3,696,348,0,6943,6944,5,94,0,0,6944,6945,3,1230,615,0,6945,6946,3,974,487,0,6946,6947,5,57,0,0,6947,6948,3,698,349,0,6948,6949,3,688,344,0,6949,687,1,0,0,0,6950,6957,5,263,0,0,6951,6957,3,692,346,0,6952,6953,5,2,0,0,6953,6954,3,690,345,0,6954,6955,5,3,0,0,6955,6957,1,0,0,0,6956,6950,1,0,0,0,6956,6951,1,0,0,0,6956,6952,1,0,0,0,6957,689,1,0,0,0,6958,6963,3,694,347,0,6959,6960,5,7,0,0,6960,6962,3,694,347,0,6961,6959,1,0,0,0,6962,6965,1,0,0,0,6963,6961,1,0,0,0,6963,6964,1,0,0,0,6964,691,1,0,0,0,6965,6963,1,0,0,0,6966,6972,3,858,429,0,6967,6972,3,804,402,0,6968,6972,3,844,422,0,6969,6972,3,830,415,0,6970,6972,3,700,350,0,6971,6966,1,0,0,0,6971,6967,1,0,0,0,6971,6968,1,0,0,0,6971,6969,1,0,0,0,6971,6970,1,0,0,0,6972,693,1,0,0,0,6973,6976,3,692,346,0,6974,6976,1,0,0,0,6975,6973,1,0,0,0,6975,6974,1,0,0,0,6976,695,1,0,0,0,6977,6978,7,30,0,0,6978,697,1,0,0,0,6979,6983,5,233,0,0,6980,6983,5,137,0,0,6981,6983,1,0,0,0,6982,6979,1,0,0,0,6982,6980,1,0,0,0,6982,6981,1,0,0,0,6983,699,1,0,0,0,6984,6985,5,264,0,0,6985,6986,3,1264,632,0,6986,6987,3,702,351,0,6987,701,1,0,0,0,6988,6989,5,6,0,0,6989,6992,3,1252,626,0,6990,6992,1,0,0,0,6991,6988,1,0,0,0,6991,6990,1,0,0,0,6992,703,1,0,0,0,6993,6994,5,243,0,0,6994,6995,3,1264,632,0,6995,705,1,0,0,0,6996,6997,5,359,0,0,6997,7001,3,1264,632,0,6998,6999,5,359,0,0,6999,7001,5,9,0,0,7e3,6996,1,0,0,0,7e3,6998,1,0,0,0,7001,707,1,0,0,0,7002,7003,5,129,0,0,7003,7004,3,710,355,0,7004,7005,3,716,358,0,7005,7056,1,0,0,0,7006,7007,5,146,0,0,7007,7009,3,710,355,0,7008,7010,3,714,357,0,7009,7008,1,0,0,0,7009,7010,1,0,0,0,7010,7056,1,0,0,0,7011,7012,5,333,0,0,7012,7014,5,349,0,0,7013,7015,3,714,357,0,7014,7013,1,0,0,0,7014,7015,1,0,0,0,7015,7056,1,0,0,0,7016,7017,5,161,0,0,7017,7018,3,710,355,0,7018,7019,3,716,358,0,7019,7056,1,0,0,0,7020,7021,5,454,0,0,7021,7022,3,710,355,0,7022,7023,3,716,358,0,7023,7056,1,0,0,0,7024,7025,5,312,0,0,7025,7026,3,710,355,0,7026,7027,3,716,358,0,7027,7056,1,0,0,0,7028,7029,5,315,0,0,7029,7056,3,1264,632,0,7030,7031,5,301,0,0,7031,7032,5,315,0,0,7032,7056,3,1264,632,0,7033,7034,5,301,0,0,7034,7056,3,1264,632,0,7035,7036,5,312,0,0,7036,7037,3,710,355,0,7037,7038,5,94,0,0,7038,7039,5,315,0,0,7039,7040,3,1264,632,0,7040,7056,1,0,0,0,7041,7042,5,312,0,0,7042,7043,3,710,355,0,7043,7044,5,94,0,0,7044,7045,3,1264,632,0,7045,7056,1,0,0,0,7046,7047,5,283,0,0,7047,7048,5,349,0,0,7048,7056,3,1252,626,0,7049,7050,5,161,0,0,7050,7051,5,284,0,0,7051,7056,3,1252,626,0,7052,7053,5,312,0,0,7053,7054,5,284,0,0,7054,7056,3,1252,626,0,7055,7002,1,0,0,0,7055,7006,1,0,0,0,7055,7011,1,0,0,0,7055,7016,1,0,0,0,7055,7020,1,0,0,0,7055,7024,1,0,0,0,7055,7028,1,0,0,0,7055,7030,1,0,0,0,7055,7033,1,0,0,0,7055,7035,1,0,0,0,7055,7041,1,0,0,0,7055,7046,1,0,0,0,7055,7049,1,0,0,0,7055,7052,1,0,0,0,7056,709,1,0,0,0,7057,7061,5,373,0,0,7058,7061,5,349,0,0,7059,7061,1,0,0,0,7060,7057,1,0,0,0,7060,7058,1,0,0,0,7060,7059,1,0,0,0,7061,711,1,0,0,0,7062,7063,5,235,0,0,7063,7064,5,242,0,0,7064,7073,3,56,28,0,7065,7066,5,293,0,0,7066,7073,5,81,0,0,7067,7068,5,293,0,0,7068,7073,5,375,0,0,7069,7073,5,54,0,0,7070,7071,5,77,0,0,7071,7073,5,54,0,0,7072,7062,1,0,0,0,7072,7065,1,0,0,0,7072,7067,1,0,0,0,7072,7069,1,0,0,0,7072,7070,1,0,0,0,7073,713,1,0,0,0,7074,7081,3,712,356,0,7075,7077,5,6,0,0,7076,7075,1,0,0,0,7076,7077,1,0,0,0,7077,7078,1,0,0,0,7078,7080,3,712,356,0,7079,7076,1,0,0,0,7080,7083,1,0,0,0,7081,7079,1,0,0,0,7081,7082,1,0,0,0,7082,715,1,0,0,0,7083,7081,1,0,0,0,7084,7086,5,33,0,0,7085,7087,5,262,0,0,7086,7085,1,0,0,0,7086,7087,1,0,0,0,7087,7088,1,0,0,0,7088,7091,5,153,0,0,7089,7091,1,0,0,0,7090,7084,1,0,0,0,7090,7089,1,0,0,0,7091,717,1,0,0,0,7092,7095,5,46,0,0,7093,7094,5,82,0,0,7094,7096,5,304,0,0,7095,7093,1,0,0,0,7095,7096,1,0,0,0,7096,7097,1,0,0,0,7097,7111,3,154,77,0,7098,7099,5,369,0,0,7099,7100,3,1230,615,0,7100,7101,3,192,96,0,7101,7102,3,110,55,0,7102,7112,1,0,0,0,7103,7104,5,296,0,0,7104,7105,5,369,0,0,7105,7106,3,1230,615,0,7106,7107,5,2,0,0,7107,7108,3,194,97,0,7108,7109,5,3,0,0,7109,7110,3,110,55,0,7110,7112,1,0,0,0,7111,7098,1,0,0,0,7111,7103,1,0,0,0,7112,7113,1,0,0,0,7113,7114,5,36,0,0,7114,7115,3,858,429,0,7115,7116,3,720,360,0,7116,719,1,0,0,0,7117,7119,5,105,0,0,7118,7120,7,31,0,0,7119,7118,1,0,0,0,7119,7120,1,0,0,0,7120,7121,1,0,0,0,7121,7122,5,42,0,0,7122,7125,5,272,0,0,7123,7125,1,0,0,0,7124,7117,1,0,0,0,7124,7123,1,0,0,0,7125,721,1,0,0,0,7126,7127,5,244,0,0,7127,7128,3,1238,619,0,7128,723,1,0,0,0,7129,7130,5,46,0,0,7130,7131,5,175,0,0,7131,7132,3,1234,617,0,7132,7133,3,12,6,0,7133,7134,3,726,363,0,7134,725,1,0,0,0,7135,7137,3,728,364,0,7136,7135,1,0,0,0,7137,7138,1,0,0,0,7138,7136,1,0,0,0,7138,7139,1,0,0,0,7139,7142,1,0,0,0,7140,7142,1,0,0,0,7141,7136,1,0,0,0,7141,7140,1,0,0,0,7142,727,1,0,0,0,7143,7145,3,730,365,0,7144,7146,5,10,0,0,7145,7144,1,0,0,0,7145,7146,1,0,0,0,7146,7150,1,0,0,0,7147,7151,3,1258,629,0,7148,7151,3,58,29,0,7149,7151,5,53,0,0,7150,7147,1,0,0,0,7150,7148,1,0,0,0,7150,7149,1,0,0,0,7151,729,1,0,0,0,7152,7161,3,1274,637,0,7153,7154,5,164,0,0,7154,7161,5,74,0,0,7155,7161,5,194,0,0,7156,7161,5,246,0,0,7157,7161,5,275,0,0,7158,7161,5,344,0,0,7159,7161,5,346,0,0,7160,7152,1,0,0,0,7160,7153,1,0,0,0,7160,7155,1,0,0,0,7160,7156,1,0,0,0,7160,7157,1,0,0,0,7160,7158,1,0,0,0,7160,7159,1,0,0,0,7161,731,1,0,0,0,7162,7163,5,138,0,0,7163,7164,5,175,0,0,7164,7171,3,1210,605,0,7165,7166,5,105,0,0,7166,7172,3,726,363,0,7167,7172,3,726,363,0,7168,7169,5,326,0,0,7169,7170,5,344,0,0,7170,7172,3,1234,617,0,7171,7165,1,0,0,0,7171,7167,1,0,0,0,7171,7168,1,0,0,0,7172,733,1,0,0,0,7173,7174,5,138,0,0,7174,7175,5,175,0,0,7175,7176,3,1210,605,0,7176,7177,3,72,36,0,7177,735,1,0,0,0,7178,7179,5,191,0,0,7179,7182,5,175,0,0,7180,7181,5,220,0,0,7181,7183,5,389,0,0,7182,7180,1,0,0,0,7182,7183,1,0,0,0,7183,7184,1,0,0,0,7184,7197,3,1210,605,0,7185,7186,3,12,6,0,7186,7187,5,2,0,0,7187,7192,5,209,0,0,7188,7189,5,6,0,0,7189,7191,5,209,0,0,7190,7188,1,0,0,0,7191,7194,1,0,0,0,7192,7190,1,0,0,0,7192,7193,1,0,0,0,7193,7195,1,0,0,0,7194,7192,1,0,0,0,7195,7196,5,3,0,0,7196,7198,1,0,0,0,7197,7185,1,0,0,0,7197,7198,1,0,0,0,7198,737,1,0,0,0,7199,7200,5,138,0,0,7200,7201,5,108,0,0,7201,7202,3,470,235,0,7202,7203,5,298,0,0,7203,7204,5,368,0,0,7204,739,1,0,0,0,7205,7206,5,138,0,0,7206,7207,5,342,0,0,7207,7208,7,32,0,0,7208,7209,3,46,23,0,7209,741,1,0,0,0,7210,7211,5,46,0,0,7211,7212,5,189,0,0,7212,7213,3,470,235,0,7213,7214,3,748,374,0,7214,7215,3,996,498,0,7215,7216,3,172,86,0,7216,743,1,0,0,0,7217,7218,5,138,0,0,7218,7219,5,189,0,0,7219,7220,3,470,235,0,7220,7221,3,746,373,0,7221,745,1,0,0,0,7222,7244,3,98,49,0,7223,7224,5,191,0,0,7224,7225,5,77,0,0,7225,7244,5,78,0,0,7226,7227,5,326,0,0,7227,7228,5,77,0,0,7228,7244,5,78,0,0,7229,7230,5,133,0,0,7230,7244,3,188,94,0,7231,7232,5,191,0,0,7232,7235,5,45,0,0,7233,7234,5,220,0,0,7234,7236,5,389,0,0,7235,7233,1,0,0,0,7235,7236,1,0,0,0,7236,7237,1,0,0,0,7237,7238,3,1224,612,0,7238,7239,3,100,50,0,7239,7244,1,0,0,0,7240,7241,5,365,0,0,7241,7242,5,45,0,0,7242,7244,3,1224,612,0,7243,7222,1,0,0,0,7243,7223,1,0,0,0,7243,7226,1,0,0,0,7243,7229,1,0,0,0,7243,7231,1,0,0,0,7243,7240,1,0,0,0,7244,747,1,0,0,0,7245,7248,5,36,0,0,7246,7248,1,0,0,0,7247,7245,1,0,0,0,7247,7246,1,0,0,0,7248,749,1,0,0,0,7249,7250,5,138,0,0,7250,7251,5,348,0,0,7251,7252,5,318,0,0,7252,7253,5,185,0,0,7253,7254,3,470,235,0,7254,7255,3,416,208,0,7255,751,1,0,0,0,7256,7257,5,138,0,0,7257,7258,5,348,0,0,7258,7259,5,318,0,0,7259,7260,5,163,0,0,7260,7261,3,470,235,0,7261,7262,5,133,0,0,7262,7263,5,248,0,0,7263,7264,5,62,0,0,7264,7265,3,1232,616,0,7265,7266,5,105,0,0,7266,7267,3,468,234,0,7267,7329,1,0,0,0,7268,7269,5,138,0,0,7269,7270,5,348,0,0,7270,7271,5,318,0,0,7271,7272,5,163,0,0,7272,7273,3,470,235,0,7273,7274,5,138,0,0,7274,7275,5,248,0,0,7275,7276,5,62,0,0,7276,7277,3,1232,616,0,7277,7278,5,105,0,0,7278,7279,3,468,234,0,7279,7329,1,0,0,0,7280,7281,5,138,0,0,7281,7282,5,348,0,0,7282,7283,5,318,0,0,7283,7284,5,163,0,0,7284,7285,3,470,235,0,7285,7286,5,138,0,0,7286,7287,5,248,0,0,7287,7288,5,304,0,0,7288,7289,3,470,235,0,7289,7290,5,105,0,0,7290,7291,3,470,235,0,7291,7329,1,0,0,0,7292,7293,5,138,0,0,7293,7294,5,348,0,0,7294,7295,5,318,0,0,7295,7296,5,163,0,0,7296,7297,3,470,235,0,7297,7298,5,138,0,0,7298,7299,5,248,0,0,7299,7300,5,62,0,0,7300,7301,3,1232,616,0,7301,7302,5,304,0,0,7302,7303,3,470,235,0,7303,7304,5,105,0,0,7304,7305,3,470,235,0,7305,7329,1,0,0,0,7306,7307,5,138,0,0,7307,7308,5,348,0,0,7308,7309,5,318,0,0,7309,7310,5,163,0,0,7310,7311,3,470,235,0,7311,7312,5,191,0,0,7312,7313,5,248,0,0,7313,7314,5,62,0,0,7314,7315,3,1232,616,0,7315,7329,1,0,0,0,7316,7317,5,138,0,0,7317,7318,5,348,0,0,7318,7319,5,318,0,0,7319,7320,5,163,0,0,7320,7321,3,470,235,0,7321,7322,5,191,0,0,7322,7323,5,248,0,0,7323,7324,5,220,0,0,7324,7325,5,389,0,0,7325,7326,5,62,0,0,7326,7327,3,1232,616,0,7327,7329,1,0,0,0,7328,7256,1,0,0,0,7328,7268,1,0,0,0,7328,7280,1,0,0,0,7328,7292,1,0,0,0,7328,7306,1,0,0,0,7328,7316,1,0,0,0,7329,753,1,0,0,0,7330,7332,5,46,0,0,7331,7333,5,53,0,0,7332,7331,1,0,0,0,7332,7333,1,0,0,0,7333,7334,1,0,0,0,7334,7335,5,168,0,0,7335,7336,3,470,235,0,7336,7337,5,62,0,0,7337,7338,3,1252,626,0,7338,7339,5,94,0,0,7339,7340,3,1252,626,0,7340,7341,5,64,0,0,7341,7342,3,470,235,0,7342,755,1,0,0,0,7343,7344,5,158,0,0,7344,7345,3,774,387,0,7345,7346,3,1230,615,0,7346,7347,3,758,379,0,7347,7357,1,0,0,0,7348,7349,5,158,0,0,7349,7357,3,774,387,0,7350,7351,5,158,0,0,7351,7352,3,774,387,0,7352,7353,3,1234,617,0,7353,7354,5,80,0,0,7354,7355,3,1230,615,0,7355,7357,1,0,0,0,7356,7343,1,0,0,0,7356,7348,1,0,0,0,7356,7350,1,0,0,0,7357,757,1,0,0,0,7358,7359,5,100,0,0,7359,7362,3,1234,617,0,7360,7362,1,0,0,0,7361,7358,1,0,0,0,7361,7360,1,0,0,0,7362,759,1,0,0,0,7363,7365,5,363,0,0,7364,7366,5,113,0,0,7365,7364,1,0,0,0,7365,7366,1,0,0,0,7366,7368,1,0,0,0,7367,7369,5,112,0,0,7368,7367,1,0,0,0,7368,7369,1,0,0,0,7369,7370,1,0,0,0,7370,7372,3,774,387,0,7371,7373,3,766,383,0,7372,7371,1,0,0,0,7372,7373,1,0,0,0,7373,7374,1,0,0,0,7374,7375,3,780,390,0,7375,7383,1,0,0,0,7376,7377,5,363,0,0,7377,7378,5,2,0,0,7378,7379,3,764,382,0,7379,7380,5,3,0,0,7380,7381,3,780,390,0,7381,7383,1,0,0,0,7382,7363,1,0,0,0,7382,7376,1,0,0,0,7383,761,1,0,0,0,7384,7385,3,766,383,0,7385,7386,3,774,387,0,7386,7387,3,780,390,0,7387,7395,1,0,0,0,7388,7389,3,766,383,0,7389,7390,5,2,0,0,7390,7391,3,764,382,0,7391,7392,5,3,0,0,7392,7393,3,780,390,0,7393,7395,1,0,0,0,7394,7384,1,0,0,0,7394,7388,1,0,0,0,7395,763,1,0,0,0,7396,7401,3,768,384,0,7397,7398,5,6,0,0,7398,7400,3,768,384,0,7399,7397,1,0,0,0,7400,7403,1,0,0,0,7401,7399,1,0,0,0,7401,7402,1,0,0,0,7402,765,1,0,0,0,7403,7401,1,0,0,0,7404,7405,7,33,0,0,7405,767,1,0,0,0,7406,7407,3,770,385,0,7407,7408,3,772,386,0,7408,769,1,0,0,0,7409,7412,3,1270,635,0,7410,7412,3,766,383,0,7411,7409,1,0,0,0,7411,7410,1,0,0,0,7412,771,1,0,0,0,7413,7417,3,58,29,0,7414,7417,3,264,132,0,7415,7417,1,0,0,0,7416,7413,1,0,0,0,7416,7414,1,0,0,0,7416,7415,1,0,0,0,7417,773,1,0,0,0,7418,7421,5,128,0,0,7419,7421,1,0,0,0,7420,7418,1,0,0,0,7420,7419,1,0,0,0,7421,775,1,0,0,0,7422,7423,5,2,0,0,7423,7424,3,1232,616,0,7424,7425,5,3,0,0,7425,7428,1,0,0,0,7426,7428,1,0,0,0,7427,7422,1,0,0,0,7427,7426,1,0,0,0,7428,777,1,0,0,0,7429,7430,3,1230,615,0,7430,7431,3,776,388,0,7431,779,1,0,0,0,7432,7437,3,778,389,0,7433,7434,5,6,0,0,7434,7436,3,778,389,0,7435,7433,1,0,0,0,7436,7439,1,0,0,0,7437,7435,1,0,0,0,7437,7438,1,0,0,0,7438,7442,1,0,0,0,7439,7437,1,0,0,0,7440,7442,1,0,0,0,7441,7432,1,0,0,0,7441,7440,1,0,0,0,7442,781,1,0,0,0,7443,7444,5,203,0,0,7444,7467,3,784,392,0,7445,7446,5,203,0,0,7446,7447,3,766,383,0,7447,7448,3,774,387,0,7448,7449,3,784,392,0,7449,7467,1,0,0,0,7450,7451,5,203,0,0,7451,7452,5,128,0,0,7452,7467,3,784,392,0,7453,7454,5,203,0,0,7454,7455,5,2,0,0,7455,7460,3,786,393,0,7456,7457,5,6,0,0,7457,7459,3,786,393,0,7458,7456,1,0,0,0,7459,7462,1,0,0,0,7460,7458,1,0,0,0,7460,7461,1,0,0,0,7461,7463,1,0,0,0,7462,7460,1,0,0,0,7463,7464,5,3,0,0,7464,7465,3,784,392,0,7465,7467,1,0,0,0,7466,7443,1,0,0,0,7466,7445,1,0,0,0,7466,7450,1,0,0,0,7466,7453,1,0,0,0,7467,783,1,0,0,0,7468,7478,3,858,429,0,7469,7478,3,804,402,0,7470,7478,3,844,422,0,7471,7478,3,830,415,0,7472,7478,3,852,426,0,7473,7478,3,242,121,0,7474,7478,3,248,124,0,7475,7478,3,252,126,0,7476,7478,3,798,399,0,7477,7468,1,0,0,0,7477,7469,1,0,0,0,7477,7470,1,0,0,0,7477,7471,1,0,0,0,7477,7472,1,0,0,0,7477,7473,1,0,0,0,7477,7474,1,0,0,0,7477,7475,1,0,0,0,7477,7476,1,0,0,0,7478,785,1,0,0,0,7479,7480,3,788,394,0,7480,7481,3,790,395,0,7481,787,1,0,0,0,7482,7485,3,1270,635,0,7483,7485,3,766,383,0,7484,7482,1,0,0,0,7484,7483,1,0,0,0,7485,789,1,0,0,0,7486,7490,3,58,29,0,7487,7490,3,264,132,0,7488,7490,1,0,0,0,7489,7486,1,0,0,0,7489,7487,1,0,0,0,7489,7488,1,0,0,0,7490,791,1,0,0,0,7491,7492,5,283,0,0,7492,7493,3,1234,617,0,7493,7494,3,794,397,0,7494,7495,5,36,0,0,7495,7496,3,796,398,0,7496,793,1,0,0,0,7497,7498,5,2,0,0,7498,7499,3,1162,581,0,7499,7500,5,3,0,0,7500,7503,1,0,0,0,7501,7503,1,0,0,0,7502,7497,1,0,0,0,7502,7501,1,0,0,0,7503,795,1,0,0,0,7504,7509,3,858,429,0,7505,7509,3,804,402,0,7506,7509,3,844,422,0,7507,7509,3,830,415,0,7508,7504,1,0,0,0,7508,7505,1,0,0,0,7508,7506,1,0,0,0,7508,7507,1,0,0,0,7509,797,1,0,0,0,7510,7511,5,202,0,0,7511,7512,3,1234,617,0,7512,7513,3,800,400,0,7513,7538,1,0,0,0,7514,7515,5,46,0,0,7515,7516,3,154,77,0,7516,7517,5,92,0,0,7517,7518,3,244,122,0,7518,7519,5,36,0,0,7519,7520,5,202,0,0,7520,7521,3,1234,617,0,7521,7522,3,800,400,0,7522,7523,3,246,123,0,7523,7538,1,0,0,0,7524,7525,5,46,0,0,7525,7526,3,154,77,0,7526,7527,5,92,0,0,7527,7528,5,220,0,0,7528,7529,5,77,0,0,7529,7530,5,389,0,0,7530,7531,3,244,122,0,7531,7532,5,36,0,0,7532,7533,5,202,0,0,7533,7534,3,1234,617,0,7534,7535,3,800,400,0,7535,7536,3,246,123,0,7536,7538,1,0,0,0,7537,7510,1,0,0,0,7537,7514,1,0,0,0,7537,7524,1,0,0,0,7538,799,1,0,0,0,7539,7540,5,2,0,0,7540,7541,3,1156,578,0,7541,7542,5,3,0,0,7542,7545,1,0,0,0,7543,7545,1,0,0,0,7544,7539,1,0,0,0,7544,7543,1,0,0,0,7545,801,1,0,0,0,7546,7547,5,177,0,0,7547,7557,3,1234,617,0,7548,7549,5,177,0,0,7549,7550,5,283,0,0,7550,7557,3,1234,617,0,7551,7552,5,177,0,0,7552,7557,5,30,0,0,7553,7554,5,177,0,0,7554,7555,5,283,0,0,7555,7557,5,30,0,0,7556,7546,1,0,0,0,7556,7548,1,0,0,0,7556,7551,1,0,0,0,7556,7553,1,0,0,0,7557,803,1,0,0,0,7558,7560,3,872,436,0,7559,7558,1,0,0,0,7559,7560,1,0,0,0,7560,7561,1,0,0,0,7561,7562,5,232,0,0,7562,7563,5,71,0,0,7563,7564,3,806,403,0,7564,7565,3,808,404,0,7565,7566,3,816,408,0,7566,7567,3,820,410,0,7567,805,1,0,0,0,7568,7571,3,1230,615,0,7569,7570,5,36,0,0,7570,7572,3,1264,632,0,7571,7569,1,0,0,0,7571,7572,1,0,0,0,7572,807,1,0,0,0,7573,7593,3,858,429,0,7574,7575,5,463,0,0,7575,7576,3,810,405,0,7576,7577,5,450,0,0,7577,7578,3,858,429,0,7578,7593,1,0,0,0,7579,7580,5,2,0,0,7580,7581,3,812,406,0,7581,7586,5,3,0,0,7582,7583,5,463,0,0,7583,7584,3,810,405,0,7584,7585,5,450,0,0,7585,7587,1,0,0,0,7586,7582,1,0,0,0,7586,7587,1,0,0,0,7587,7588,1,0,0,0,7588,7589,3,858,429,0,7589,7593,1,0,0,0,7590,7591,5,53,0,0,7591,7593,5,415,0,0,7592,7573,1,0,0,0,7592,7574,1,0,0,0,7592,7579,1,0,0,0,7592,7590,1,0,0,0,7593,809,1,0,0,0,7594,7595,7,34,0,0,7595,811,1,0,0,0,7596,7601,3,814,407,0,7597,7598,5,6,0,0,7598,7600,3,814,407,0,7599,7597,1,0,0,0,7600,7603,1,0,0,0,7601,7599,1,0,0,0,7601,7602,1,0,0,0,7602,813,1,0,0,0,7603,7601,1,0,0,0,7604,7605,3,1264,632,0,7605,7606,3,1200,600,0,7606,815,1,0,0,0,7607,7608,5,80,0,0,7608,7609,5,464,0,0,7609,7610,3,818,409,0,7610,7617,5,57,0,0,7611,7612,5,362,0,0,7612,7613,5,326,0,0,7613,7614,3,846,423,0,7614,7615,3,974,487,0,7615,7618,1,0,0,0,7616,7618,5,263,0,0,7617,7611,1,0,0,0,7617,7616,1,0,0,0,7618,7621,1,0,0,0,7619,7621,1,0,0,0,7620,7607,1,0,0,0,7620,7619,1,0,0,0,7621,817,1,0,0,0,7622,7623,5,2,0,0,7623,7624,3,536,268,0,7624,7625,5,3,0,0,7625,7626,3,974,487,0,7626,7632,1,0,0,0,7627,7628,5,80,0,0,7628,7629,5,45,0,0,7629,7632,3,1224,612,0,7630,7632,1,0,0,0,7631,7622,1,0,0,0,7631,7627,1,0,0,0,7631,7630,1,0,0,0,7632,819,1,0,0,0,7633,7634,5,87,0,0,7634,7637,3,1204,602,0,7635,7637,1,0,0,0,7636,7633,1,0,0,0,7636,7635,1,0,0,0,7637,821,1,0,0,0,7638,7640,5,253,0,0,7639,7641,5,71,0,0,7640,7639,1,0,0,0,7640,7641,1,0,0,0,7641,7642,1,0,0,0,7642,7644,3,1230,615,0,7643,7645,3,944,472,0,7644,7643,1,0,0,0,7644,7645,1,0,0,0,7645,7646,1,0,0,0,7646,7649,5,100,0,0,7647,7650,3,860,430,0,7648,7650,3,1230,615,0,7649,7647,1,0,0,0,7649,7648,1,0,0,0,7650,7652,1,0,0,0,7651,7653,3,944,472,0,7652,7651,1,0,0,0,7652,7653,1,0,0,0,7653,7654,1,0,0,0,7654,7655,5,80,0,0,7655,7664,3,1038,519,0,7656,7658,3,824,412,0,7657,7659,3,826,413,0,7658,7657,1,0,0,0,7658,7659,1,0,0,0,7659,7665,1,0,0,0,7660,7662,3,826,413,0,7661,7663,3,824,412,0,7662,7661,1,0,0,0,7662,7663,1,0,0,0,7663,7665,1,0,0,0,7664,7656,1,0,0,0,7664,7660,1,0,0,0,7665,7667,1,0,0,0,7666,7668,3,828,414,0,7667,7666,1,0,0,0,7667,7668,1,0,0,0,7668,823,1,0,0,0,7669,7670,5,102,0,0,7670,7671,5,77,0,0,7671,7674,5,250,0,0,7672,7673,5,33,0,0,7673,7675,3,1038,519,0,7674,7672,1,0,0,0,7674,7675,1,0,0,0,7675,7677,1,0,0,0,7676,7678,5,93,0,0,7677,7676,1,0,0,0,7677,7678,1,0,0,0,7678,7679,1,0,0,0,7679,7684,5,232,0,0,7680,7681,5,2,0,0,7681,7682,3,812,406,0,7682,7683,5,3,0,0,7683,7685,1,0,0,0,7684,7680,1,0,0,0,7684,7685,1,0,0,0,7685,7686,1,0,0,0,7686,7687,3,934,467,0,7687,825,1,0,0,0,7688,7689,5,102,0,0,7689,7692,5,250,0,0,7690,7691,5,33,0,0,7691,7693,3,1038,519,0,7692,7690,1,0,0,0,7692,7693,1,0,0,0,7693,7695,1,0,0,0,7694,7696,5,93,0,0,7695,7694,1,0,0,0,7695,7696,1,0,0,0,7696,7697,1,0,0,0,7697,7698,5,362,0,0,7698,7699,5,326,0,0,7699,7700,3,846,423,0,7700,827,1,0,0,0,7701,7702,5,102,0,0,7702,7704,5,250,0,0,7703,7705,5,93,0,0,7704,7703,1,0,0,0,7704,7705,1,0,0,0,7705,7706,1,0,0,0,7706,7707,5,182,0,0,7707,829,1,0,0,0,7708,7710,3,872,436,0,7709,7708,1,0,0,0,7709,7710,1,0,0,0,7710,7711,1,0,0,0,7711,7712,5,182,0,0,7712,7713,5,64,0,0,7713,7714,3,962,481,0,7714,7715,3,832,416,0,7715,7716,3,976,488,0,7716,7717,3,820,410,0,7717,831,1,0,0,0,7718,7719,5,100,0,0,7719,7722,3,938,469,0,7720,7722,1,0,0,0,7721,7718,1,0,0,0,7721,7720,1,0,0,0,7722,833,1,0,0,0,7723,7724,5,247,0,0,7724,7725,3,882,441,0,7725,7726,3,960,480,0,7726,7727,3,836,418,0,7727,7728,3,840,420,0,7728,835,1,0,0,0,7729,7730,5,68,0,0,7730,7731,3,838,419,0,7731,7732,5,256,0,0,7732,7735,1,0,0,0,7733,7735,1,0,0,0,7734,7729,1,0,0,0,7734,7733,1,0,0,0,7735,837,1,0,0,0,7736,7737,5,131,0,0,7737,7749,7,35,0,0,7738,7739,5,407,0,0,7739,7749,7,35,0,0,7740,7745,5,327,0,0,7741,7742,5,362,0,0,7742,7746,5,201,0,0,7743,7744,5,407,0,0,7744,7746,5,201,0,0,7745,7741,1,0,0,0,7745,7743,1,0,0,0,7745,7746,1,0,0,0,7746,7749,1,0,0,0,7747,7749,5,201,0,0,7748,7736,1,0,0,0,7748,7738,1,0,0,0,7748,7740,1,0,0,0,7748,7747,1,0,0,0,7749,839,1,0,0,0,7750,7753,5,265,0,0,7751,7753,1,0,0,0,7752,7750,1,0,0,0,7752,7751,1,0,0,0,7753,841,1,0,0,0,7754,7759,5,265,0,0,7755,7756,5,465,0,0,7756,7759,5,466,0,0,7757,7759,1,0,0,0,7758,7754,1,0,0,0,7758,7755,1,0,0,0,7758,7757,1,0,0,0,7759,843,1,0,0,0,7760,7762,3,872,436,0,7761,7760,1,0,0,0,7761,7762,1,0,0,0,7762,7763,1,0,0,0,7763,7764,5,362,0,0,7764,7765,3,962,481,0,7765,7766,5,326,0,0,7766,7767,3,846,423,0,7767,7768,3,936,468,0,7768,7769,3,976,488,0,7769,7770,3,820,410,0,7770,845,1,0,0,0,7771,7776,3,848,424,0,7772,7773,5,6,0,0,7773,7775,3,848,424,0,7774,7772,1,0,0,0,7775,7778,1,0,0,0,7776,7774,1,0,0,0,7776,7777,1,0,0,0,7777,847,1,0,0,0,7778,7776,1,0,0,0,7779,7780,3,850,425,0,7780,7781,5,10,0,0,7781,7782,3,1038,519,0,7782,7797,1,0,0,0,7783,7784,5,2,0,0,7784,7789,3,850,425,0,7785,7786,5,6,0,0,7786,7788,3,850,425,0,7787,7785,1,0,0,0,7788,7791,1,0,0,0,7789,7787,1,0,0,0,7789,7790,1,0,0,0,7790,7792,1,0,0,0,7791,7789,1,0,0,0,7792,7793,5,3,0,0,7793,7794,5,10,0,0,7794,7795,3,1038,519,0,7795,7797,1,0,0,0,7796,7779,1,0,0,0,7796,7783,1,0,0,0,7797,849,1,0,0,0,7798,7799,3,1264,632,0,7799,7800,3,1200,600,0,7800,851,1,0,0,0,7801,7802,5,178,0,0,7802,7810,3,854,427,0,7803,7804,5,262,0,0,7804,7809,5,317,0,0,7805,7809,5,317,0,0,7806,7809,5,107,0,0,7807,7809,5,231,0,0,7808,7803,1,0,0,0,7808,7805,1,0,0,0,7808,7806,1,0,0,0,7808,7807,1,0,0,0,7809,7812,1,0,0,0,7810,7808,1,0,0,0,7810,7811,1,0,0,0,7811,7813,1,0,0,0,7812,7810,1,0,0,0,7813,7814,5,172,0,0,7814,7815,3,856,428,0,7815,7816,5,62,0,0,7816,7817,3,858,429,0,7817,853,1,0,0,0,7818,7819,3,1234,617,0,7819,855,1,0,0,0,7820,7826,1,0,0,0,7821,7822,5,105,0,0,7822,7826,5,217,0,0,7823,7824,5,372,0,0,7824,7826,5,217,0,0,7825,7820,1,0,0,0,7825,7821,1,0,0,0,7825,7823,1,0,0,0,7826,857,1,0,0,0,7827,7830,3,862,431,0,7828,7830,3,860,430,0,7829,7827,1,0,0,0,7829,7828,1,0,0,0,7830,859,1,0,0,0,7831,7832,5,2,0,0,7832,7833,3,862,431,0,7833,7834,5,3,0,0,7834,7840,1,0,0,0,7835,7836,5,2,0,0,7836,7837,3,860,430,0,7837,7838,5,3,0,0,7838,7840,1,0,0,0,7839,7831,1,0,0,0,7839,7835,1,0,0,0,7840,861,1,0,0,0,7841,7842,3,864,432,0,7842,7850,3,890,445,0,7843,7844,3,926,463,0,7844,7845,3,900,450,0,7845,7851,1,0,0,0,7846,7848,3,898,449,0,7847,7849,3,926,463,0,7848,7847,1,0,0,0,7848,7849,1,0,0,0,7849,7851,1,0,0,0,7850,7843,1,0,0,0,7850,7846,1,0,0,0,7850,7851,1,0,0,0,7851,7865,1,0,0,0,7852,7853,3,872,436,0,7853,7854,3,864,432,0,7854,7862,3,890,445,0,7855,7856,3,926,463,0,7856,7857,3,900,450,0,7857,7863,1,0,0,0,7858,7860,3,898,449,0,7859,7861,3,926,463,0,7860,7859,1,0,0,0,7860,7861,1,0,0,0,7861,7863,1,0,0,0,7862,7855,1,0,0,0,7862,7858,1,0,0,0,7862,7863,1,0,0,0,7863,7865,1,0,0,0,7864,7841,1,0,0,0,7864,7852,1,0,0,0,7865,863,1,0,0,0,7866,7873,3,866,433,0,7867,7868,7,36,0,0,7868,7869,3,884,442,0,7869,7870,3,866,433,0,7870,7872,1,0,0,0,7871,7867,1,0,0,0,7872,7875,1,0,0,0,7873,7871,1,0,0,0,7873,7874,1,0,0,0,7874,865,1,0,0,0,7875,7873,1,0,0,0,7876,7883,3,870,435,0,7877,7878,5,70,0,0,7878,7879,3,884,442,0,7879,7880,3,870,435,0,7880,7882,1,0,0,0,7881,7877,1,0,0,0,7882,7885,1,0,0,0,7883,7881,1,0,0,0,7883,7884,1,0,0,0,7884,867,1,0,0,0,7885,7883,1,0,0,0,7886,7888,3,1204,602,0,7887,7889,3,878,439,0,7888,7887,1,0,0,0,7888,7889,1,0,0,0,7889,7902,1,0,0,0,7890,7891,3,888,444,0,7891,7893,3,1202,601,0,7892,7894,3,878,439,0,7893,7892,1,0,0,0,7893,7894,1,0,0,0,7894,7902,1,0,0,0,7895,7896,3,886,443,0,7896,7898,3,1204,602,0,7897,7899,3,878,439,0,7898,7897,1,0,0,0,7898,7899,1,0,0,0,7899,7902,1,0,0,0,7900,7902,3,878,439,0,7901,7886,1,0,0,0,7901,7890,1,0,0,0,7901,7895,1,0,0,0,7901,7900,1,0,0,0,7902,869,1,0,0,0,7903,7904,5,88,0,0,7904,7905,3,868,434,0,7905,7906,3,936,468,0,7906,7907,3,974,487,0,7907,7908,3,918,459,0,7908,7909,3,924,462,0,7909,7910,3,1116,558,0,7910,7916,1,0,0,0,7911,7916,3,934,467,0,7912,7913,5,92,0,0,7913,7916,3,958,479,0,7914,7916,3,860,430,0,7915,7903,1,0,0,0,7915,7911,1,0,0,0,7915,7912,1,0,0,0,7915,7914,1,0,0,0,7916,871,1,0,0,0,7917,7919,5,105,0,0,7918,7920,5,296,0,0,7919,7918,1,0,0,0,7919,7920,1,0,0,0,7920,7921,1,0,0,0,7921,7926,3,874,437,0,7922,7923,5,6,0,0,7923,7925,3,874,437,0,7924,7922,1,0,0,0,7925,7928,1,0,0,0,7926,7924,1,0,0,0,7926,7927,1,0,0,0,7927,873,1,0,0,0,7928,7926,1,0,0,0,7929,7930,3,1234,617,0,7930,7931,3,776,388,0,7931,7932,5,36,0,0,7932,7933,3,876,438,0,7933,7934,5,2,0,0,7934,7935,3,796,398,0,7935,7936,5,3,0,0,7936,875,1,0,0,0,7937,7942,5,251,0,0,7938,7939,5,77,0,0,7939,7942,5,251,0,0,7940,7942,1,0,0,0,7941,7937,1,0,0,0,7941,7938,1,0,0,0,7941,7940,1,0,0,0,7942,877,1,0,0,0,7943,7949,5,71,0,0,7944,7946,5,339,0,0,7945,7944,1,0,0,0,7945,7946,1,0,0,0,7946,7947,1,0,0,0,7947,7950,3,880,440,0,7948,7950,3,1448,724,0,7949,7945,1,0,0,0,7949,7948,1,0,0,0,7950,879,1,0,0,0,7951,7953,7,37,0,0,7952,7951,1,0,0,0,7952,7953,1,0,0,0,7953,7954,1,0,0,0,7954,7955,7,10,0,0,7955,7956,3,882,441,0,7956,7957,3,1230,615,0,7957,7966,1,0,0,0,7958,7959,5,360,0,0,7959,7960,3,882,441,0,7960,7961,3,1230,615,0,7961,7966,1,0,0,0,7962,7963,5,92,0,0,7963,7966,3,1230,615,0,7964,7966,3,1230,615,0,7965,7952,1,0,0,0,7965,7958,1,0,0,0,7965,7962,1,0,0,0,7965,7964,1,0,0,0,7966,881,1,0,0,0,7967,7970,5,92,0,0,7968,7970,1,0,0,0,7969,7967,1,0,0,0,7969,7968,1,0,0,0,7970,883,1,0,0,0,7971,7975,5,30,0,0,7972,7975,5,56,0,0,7973,7975,1,0,0,0,7974,7971,1,0,0,0,7974,7972,1,0,0,0,7974,7973,1,0,0,0,7975,885,1,0,0,0,7976,7982,5,56,0,0,7977,7978,5,80,0,0,7978,7979,5,2,0,0,7979,7980,3,1156,578,0,7980,7981,5,3,0,0,7981,7983,1,0,0,0,7982,7977,1,0,0,0,7982,7983,1,0,0,0,7983,887,1,0,0,0,7984,7985,5,30,0,0,7985,889,1,0,0,0,7986,7989,3,892,446,0,7987,7989,1,0,0,0,7988,7986,1,0,0,0,7988,7987,1,0,0,0,7989,891,1,0,0,0,7990,7991,5,83,0,0,7991,7992,5,147,0,0,7992,7993,3,894,447,0,7993,893,1,0,0,0,7994,7999,3,896,448,0,7995,7996,5,6,0,0,7996,7998,3,896,448,0,7997,7995,1,0,0,0,7998,8001,1,0,0,0,7999,7997,1,0,0,0,7999,8e3,1,0,0,0,8e3,895,1,0,0,0,8001,7999,1,0,0,0,8002,8006,3,1038,519,0,8003,8004,5,100,0,0,8004,8007,3,1152,576,0,8005,8007,3,548,274,0,8006,8003,1,0,0,0,8006,8005,1,0,0,0,8007,8008,1,0,0,0,8008,8009,3,550,275,0,8009,897,1,0,0,0,8010,8012,3,902,451,0,8011,8013,3,904,452,0,8012,8011,1,0,0,0,8012,8013,1,0,0,0,8013,8019,1,0,0,0,8014,8016,3,904,452,0,8015,8017,3,902,451,0,8016,8015,1,0,0,0,8016,8017,1,0,0,0,8017,8019,1,0,0,0,8018,8010,1,0,0,0,8018,8014,1,0,0,0,8019,899,1,0,0,0,8020,8023,3,898,449,0,8021,8023,1,0,0,0,8022,8020,1,0,0,0,8022,8021,1,0,0,0,8023,901,1,0,0,0,8024,8025,5,74,0,0,8025,8028,3,906,453,0,8026,8027,5,6,0,0,8027,8029,3,908,454,0,8028,8026,1,0,0,0,8028,8029,1,0,0,0,8029,8048,1,0,0,0,8030,8031,5,61,0,0,8031,8045,3,916,458,0,8032,8033,3,910,455,0,8033,8037,3,914,457,0,8034,8038,5,81,0,0,8035,8036,5,105,0,0,8036,8038,5,467,0,0,8037,8034,1,0,0,0,8037,8035,1,0,0,0,8038,8046,1,0,0,0,8039,8043,3,914,457,0,8040,8044,5,81,0,0,8041,8042,5,105,0,0,8042,8044,5,467,0,0,8043,8040,1,0,0,0,8043,8041,1,0,0,0,8044,8046,1,0,0,0,8045,8032,1,0,0,0,8045,8039,1,0,0,0,8046,8048,1,0,0,0,8047,8024,1,0,0,0,8047,8030,1,0,0,0,8048,903,1,0,0,0,8049,8054,5,79,0,0,8050,8055,3,908,454,0,8051,8052,3,910,455,0,8052,8053,3,914,457,0,8053,8055,1,0,0,0,8054,8050,1,0,0,0,8054,8051,1,0,0,0,8055,905,1,0,0,0,8056,8059,3,1038,519,0,8057,8059,5,30,0,0,8058,8056,1,0,0,0,8058,8057,1,0,0,0,8059,907,1,0,0,0,8060,8061,3,1038,519,0,8061,909,1,0,0,0,8062,8068,3,1082,541,0,8063,8064,5,12,0,0,8064,8068,3,912,456,0,8065,8066,5,13,0,0,8066,8068,3,912,456,0,8067,8062,1,0,0,0,8067,8063,1,0,0,0,8067,8065,1,0,0,0,8068,911,1,0,0,0,8069,8072,3,1250,625,0,8070,8072,3,1248,624,0,8071,8069,1,0,0,0,8071,8070,1,0,0,0,8072,913,1,0,0,0,8073,8074,7,38,0,0,8074,915,1,0,0,0,8075,8076,7,39,0,0,8076,917,1,0,0,0,8077,8078,5,66,0,0,8078,8079,5,147,0,0,8079,8082,3,920,460,0,8080,8082,1,0,0,0,8081,8077,1,0,0,0,8081,8080,1,0,0,0,8082,919,1,0,0,0,8083,8088,3,922,461,0,8084,8085,5,6,0,0,8085,8087,3,922,461,0,8086,8084,1,0,0,0,8087,8090,1,0,0,0,8088,8086,1,0,0,0,8088,8089,1,0,0,0,8089,921,1,0,0,0,8090,8088,1,0,0,0,8091,8111,3,1038,519,0,8092,8093,5,2,0,0,8093,8111,5,3,0,0,8094,8095,5,469,0,0,8095,8096,5,2,0,0,8096,8097,3,1156,578,0,8097,8098,5,3,0,0,8098,8111,1,0,0,0,8099,8100,5,468,0,0,8100,8101,5,2,0,0,8101,8102,3,1156,578,0,8102,8103,5,3,0,0,8103,8111,1,0,0,0,8104,8105,5,470,0,0,8105,8106,5,471,0,0,8106,8107,5,2,0,0,8107,8108,3,920,460,0,8108,8109,5,3,0,0,8109,8111,1,0,0,0,8110,8091,1,0,0,0,8110,8092,1,0,0,0,8110,8094,1,0,0,0,8110,8099,1,0,0,0,8110,8104,1,0,0,0,8111,923,1,0,0,0,8112,8113,5,67,0,0,8113,8116,3,1038,519,0,8114,8116,1,0,0,0,8115,8112,1,0,0,0,8115,8114,1,0,0,0,8116,925,1,0,0,0,8117,8119,3,928,464,0,8118,8117,1,0,0,0,8119,8120,1,0,0,0,8120,8118,1,0,0,0,8120,8121,1,0,0,0,8121,8126,1,0,0,0,8122,8123,5,62,0,0,8123,8124,5,293,0,0,8124,8126,5,81,0,0,8125,8118,1,0,0,0,8125,8122,1,0,0,0,8126,927,1,0,0,0,8127,8128,3,930,465,0,8128,8129,3,932,466,0,8129,8130,3,842,421,0,8130,929,1,0,0,0,8131,8141,5,62,0,0,8132,8133,5,262,0,0,8133,8135,5,236,0,0,8134,8132,1,0,0,0,8134,8135,1,0,0,0,8135,8136,1,0,0,0,8136,8142,5,362,0,0,8137,8139,5,236,0,0,8138,8137,1,0,0,0,8138,8139,1,0,0,0,8139,8140,1,0,0,0,8140,8142,5,327,0,0,8141,8134,1,0,0,0,8141,8138,1,0,0,0,8142,931,1,0,0,0,8143,8144,5,268,0,0,8144,8147,3,1208,604,0,8145,8147,1,0,0,0,8146,8143,1,0,0,0,8146,8145,1,0,0,0,8147,933,1,0,0,0,8148,8149,5,415,0,0,8149,8150,5,2,0,0,8150,8151,3,1156,578,0,8151,8159,5,3,0,0,8152,8153,5,6,0,0,8153,8154,5,2,0,0,8154,8155,3,1156,578,0,8155,8156,5,3,0,0,8156,8158,1,0,0,0,8157,8152,1,0,0,0,8158,8161,1,0,0,0,8159,8157,1,0,0,0,8159,8160,1,0,0,0,8160,935,1,0,0,0,8161,8159,1,0,0,0,8162,8163,5,64,0,0,8163,8166,3,938,469,0,8164,8166,1,0,0,0,8165,8162,1,0,0,0,8165,8164,1,0,0,0,8166,937,1,0,0,0,8167,8177,3,940,470,0,8168,8173,3,942,471,0,8169,8170,5,6,0,0,8170,8172,3,942,471,0,8171,8169,1,0,0,0,8172,8175,1,0,0,0,8173,8171,1,0,0,0,8173,8174,1,0,0,0,8174,8177,1,0,0,0,8175,8173,1,0,0,0,8176,8167,1,0,0,0,8176,8168,1,0,0,0,8177,939,1,0,0,0,8178,8181,3,942,471,0,8179,8180,5,6,0,0,8180,8182,3,942,471,0,8181,8179,1,0,0,0,8182,8183,1,0,0,0,8183,8181,1,0,0,0,8183,8184,1,0,0,0,8184,941,1,0,0,0,8185,8186,3,958,479,0,8186,8188,3,946,473,0,8187,8189,3,964,482,0,8188,8187,1,0,0,0,8188,8189,1,0,0,0,8189,8235,1,0,0,0,8190,8191,3,966,483,0,8191,8192,3,950,475,0,8192,8235,1,0,0,0,8193,8194,3,984,492,0,8194,8195,3,946,473,0,8195,8235,1,0,0,0,8196,8197,3,860,430,0,8197,8198,3,946,473,0,8198,8235,1,0,0,0,8199,8209,5,72,0,0,8200,8201,3,984,492,0,8201,8202,3,946,473,0,8202,8210,1,0,0,0,8203,8204,3,966,483,0,8204,8205,3,950,475,0,8205,8210,1,0,0,0,8206,8207,3,860,430,0,8207,8208,3,946,473,0,8208,8210,1,0,0,0,8209,8200,1,0,0,0,8209,8203,1,0,0,0,8209,8206,1,0,0,0,8210,8235,1,0,0,0,8211,8212,5,2,0,0,8212,8229,3,942,471,0,8213,8214,5,110,0,0,8214,8215,5,118,0,0,8215,8230,3,942,471,0,8216,8218,5,121,0,0,8217,8219,3,952,476,0,8218,8217,1,0,0,0,8218,8219,1,0,0,0,8219,8220,1,0,0,0,8220,8221,5,118,0,0,8221,8230,3,942,471,0,8222,8224,3,952,476,0,8223,8222,1,0,0,0,8223,8224,1,0,0,0,8224,8225,1,0,0,0,8225,8226,5,118,0,0,8226,8227,3,942,471,0,8227,8228,3,954,477,0,8228,8230,1,0,0,0,8229,8213,1,0,0,0,8229,8216,1,0,0,0,8229,8223,1,0,0,0,8229,8230,1,0,0,0,8230,8231,1,0,0,0,8231,8232,5,3,0,0,8232,8233,3,946,473,0,8233,8235,1,0,0,0,8234,8185,1,0,0,0,8234,8190,1,0,0,0,8234,8193,1,0,0,0,8234,8196,1,0,0,0,8234,8199,1,0,0,0,8234,8211,1,0,0,0,8235,8254,1,0,0,0,8236,8237,5,110,0,0,8237,8238,5,118,0,0,8238,8253,3,942,471,0,8239,8241,5,121,0,0,8240,8242,3,952,476,0,8241,8240,1,0,0,0,8241,8242,1,0,0,0,8242,8243,1,0,0,0,8243,8244,5,118,0,0,8244,8253,3,942,471,0,8245,8247,3,952,476,0,8246,8245,1,0,0,0,8246,8247,1,0,0,0,8247,8248,1,0,0,0,8248,8249,5,118,0,0,8249,8250,3,942,471,0,8250,8251,3,954,477,0,8251,8253,1,0,0,0,8252,8236,1,0,0,0,8252,8239,1,0,0,0,8252,8246,1,0,0,0,8253,8256,1,0,0,0,8254,8252,1,0,0,0,8254,8255,1,0,0,0,8255,943,1,0,0,0,8256,8254,1,0,0,0,8257,8259,5,36,0,0,8258,8257,1,0,0,0,8258,8259,1,0,0,0,8259,8260,1,0,0,0,8260,8265,3,1264,632,0,8261,8262,5,2,0,0,8262,8263,3,1232,616,0,8263,8264,5,3,0,0,8264,8266,1,0,0,0,8265,8261,1,0,0,0,8265,8266,1,0,0,0,8266,945,1,0,0,0,8267,8270,3,948,474,0,8268,8270,1,0,0,0,8269,8267,1,0,0,0,8269,8268,1,0,0,0,8270,947,1,0,0,0,8271,8273,5,36,0,0,8272,8271,1,0,0,0,8272,8273,1,0,0,0,8273,8274,1,0,0,0,8274,8279,3,1266,633,0,8275,8276,5,2,0,0,8276,8277,3,1232,616,0,8277,8278,5,3,0,0,8278,8280,1,0,0,0,8279,8275,1,0,0,0,8279,8280,1,0,0,0,8280,949,1,0,0,0,8281,8295,3,944,472,0,8282,8284,5,36,0,0,8283,8285,3,1264,632,0,8284,8283,1,0,0,0,8284,8285,1,0,0,0,8285,8288,1,0,0,0,8286,8288,3,1264,632,0,8287,8282,1,0,0,0,8287,8286,1,0,0,0,8288,8289,1,0,0,0,8289,8290,5,2,0,0,8290,8291,3,980,490,0,8291,8292,5,3,0,0,8292,8295,1,0,0,0,8293,8295,1,0,0,0,8294,8281,1,0,0,0,8294,8287,1,0,0,0,8294,8293,1,0,0,0,8295,951,1,0,0,0,8296,8298,7,40,0,0,8297,8299,5,123,0,0,8298,8297,1,0,0,0,8298,8299,1,0,0,0,8299,953,1,0,0,0,8300,8301,5,100,0,0,8301,8302,5,2,0,0,8302,8303,3,1232,616,0,8303,8304,5,3,0,0,8304,8308,1,0,0,0,8305,8306,5,80,0,0,8306,8308,3,1038,519,0,8307,8300,1,0,0,0,8307,8305,1,0,0,0,8308,955,1,0,0,0,8309,8310,3,1230,615,0,8310,957,1,0,0,0,8311,8313,3,1230,615,0,8312,8314,5,9,0,0,8313,8312,1,0,0,0,8313,8314,1,0,0,0,8314,8324,1,0,0,0,8315,8321,5,81,0,0,8316,8322,3,1230,615,0,8317,8318,5,2,0,0,8318,8319,3,1230,615,0,8319,8320,5,3,0,0,8320,8322,1,0,0,0,8321,8316,1,0,0,0,8321,8317,1,0,0,0,8322,8324,1,0,0,0,8323,8311,1,0,0,0,8323,8315,1,0,0,0,8324,959,1,0,0,0,8325,8330,3,958,479,0,8326,8327,5,6,0,0,8327,8329,3,958,479,0,8328,8326,1,0,0,0,8329,8332,1,0,0,0,8330,8328,1,0,0,0,8330,8331,1,0,0,0,8331,961,1,0,0,0,8332,8330,1,0,0,0,8333,8338,3,958,479,0,8334,8336,5,36,0,0,8335,8334,1,0,0,0,8335,8336,1,0,0,0,8336,8337,1,0,0,0,8337,8339,3,1264,632,0,8338,8335,1,0,0,0,8338,8339,1,0,0,0,8339,963,1,0,0,0,8340,8341,5,472,0,0,8341,8342,3,1240,620,0,8342,8343,5,2,0,0,8343,8344,3,1156,578,0,8344,8345,5,3,0,0,8345,8346,5,303,0,0,8346,8347,5,2,0,0,8347,8348,3,1038,519,0,8348,8349,5,3,0,0,8349,965,1,0,0,0,8350,8351,3,1090,545,0,8351,8352,3,972,486,0,8352,8368,1,0,0,0,8353,8354,5,313,0,0,8354,8355,5,64,0,0,8355,8356,5,2,0,0,8356,8361,3,968,484,0,8357,8358,5,6,0,0,8358,8360,3,968,484,0,8359,8357,1,0,0,0,8360,8363,1,0,0,0,8361,8359,1,0,0,0,8361,8362,1,0,0,0,8362,8364,1,0,0,0,8363,8361,1,0,0,0,8364,8365,5,3,0,0,8365,8366,3,972,486,0,8366,8368,1,0,0,0,8367,8350,1,0,0,0,8367,8353,1,0,0,0,8368,967,1,0,0,0,8369,8370,3,1090,545,0,8370,8371,3,970,485,0,8371,969,1,0,0,0,8372,8373,5,36,0,0,8373,8374,5,2,0,0,8374,8375,3,980,490,0,8375,8376,5,3,0,0,8376,8379,1,0,0,0,8377,8379,1,0,0,0,8378,8372,1,0,0,0,8378,8377,1,0,0,0,8379,971,1,0,0,0,8380,8381,5,105,0,0,8381,8384,5,473,0,0,8382,8384,1,0,0,0,8383,8380,1,0,0,0,8383,8382,1,0,0,0,8384,973,1,0,0,0,8385,8386,5,103,0,0,8386,8389,3,1038,519,0,8387,8389,1,0,0,0,8388,8385,1,0,0,0,8388,8387,1,0,0,0,8389,975,1,0,0,0,8390,8395,5,103,0,0,8391,8392,5,434,0,0,8392,8393,5,268,0,0,8393,8396,3,854,427,0,8394,8396,3,1038,519,0,8395,8391,1,0,0,0,8395,8394,1,0,0,0,8396,8399,1,0,0,0,8397,8399,1,0,0,0,8398,8390,1,0,0,0,8398,8397,1,0,0,0,8399,977,1,0,0,0,8400,8403,3,980,490,0,8401,8403,1,0,0,0,8402,8400,1,0,0,0,8402,8401,1,0,0,0,8403,979,1,0,0,0,8404,8409,3,982,491,0,8405,8406,5,6,0,0,8406,8408,3,982,491,0,8407,8405,1,0,0,0,8408,8411,1,0,0,0,8409,8407,1,0,0,0,8409,8410,1,0,0,0,8410,981,1,0,0,0,8411,8409,1,0,0,0,8412,8413,3,1264,632,0,8413,8414,3,996,498,0,8414,8415,3,102,51,0,8415,983,1,0,0,0,8416,8417,5,474,0,0,8417,8445,5,2,0,0,8418,8419,3,1082,541,0,8419,8420,3,1108,554,0,8420,8421,5,475,0,0,8421,8426,3,986,493,0,8422,8423,5,6,0,0,8423,8425,3,986,493,0,8424,8422,1,0,0,0,8425,8428,1,0,0,0,8426,8424,1,0,0,0,8426,8427,1,0,0,0,8427,8446,1,0,0,0,8428,8426,1,0,0,0,8429,8430,5,476,0,0,8430,8431,5,2,0,0,8431,8432,3,992,496,0,8432,8433,5,3,0,0,8433,8434,5,6,0,0,8434,8435,3,1082,541,0,8435,8436,3,1108,554,0,8436,8437,5,475,0,0,8437,8442,3,986,493,0,8438,8439,5,6,0,0,8439,8441,3,986,493,0,8440,8438,1,0,0,0,8441,8444,1,0,0,0,8442,8440,1,0,0,0,8442,8443,1,0,0,0,8443,8446,1,0,0,0,8444,8442,1,0,0,0,8445,8418,1,0,0,0,8445,8429,1,0,0,0,8446,8447,1,0,0,0,8447,8448,5,3,0,0,8448,985,1,0,0,0,8449,8456,3,1264,632,0,8450,8452,3,996,498,0,8451,8453,3,988,494,0,8452,8451,1,0,0,0,8452,8453,1,0,0,0,8453,8457,1,0,0,0,8454,8455,5,62,0,0,8455,8457,5,473,0,0,8456,8450,1,0,0,0,8456,8454,1,0,0,0,8457,987,1,0,0,0,8458,8460,3,990,495,0,8459,8458,1,0,0,0,8460,8461,1,0,0,0,8461,8459,1,0,0,0,8461,8462,1,0,0,0,8462,989,1,0,0,0,8463,8464,5,53,0,0,8464,8472,3,1038,519,0,8465,8466,3,1274,637,0,8466,8467,3,1038,519,0,8467,8472,1,0,0,0,8468,8469,5,77,0,0,8469,8472,5,78,0,0,8470,8472,5,78,0,0,8471,8463,1,0,0,0,8471,8465,1,0,0,0,8471,8468,1,0,0,0,8471,8470,1,0,0,0,8472,991,1,0,0,0,8473,8478,3,994,497,0,8474,8475,5,6,0,0,8475,8477,3,994,497,0,8476,8474,1,0,0,0,8477,8480,1,0,0,0,8478,8476,1,0,0,0,8478,8479,1,0,0,0,8479,993,1,0,0,0,8480,8478,1,0,0,0,8481,8482,3,1080,540,0,8482,8483,5,36,0,0,8483,8484,3,1272,636,0,8484,8488,1,0,0,0,8485,8486,5,53,0,0,8486,8488,3,1080,540,0,8487,8481,1,0,0,0,8487,8485,1,0,0,0,8488,995,1,0,0,0,8489,8491,5,408,0,0,8490,8489,1,0,0,0,8490,8491,1,0,0,0,8491,8492,1,0,0,0,8492,8510,3,998,499,0,8493,8495,5,4,0,0,8494,8496,3,1250,625,0,8495,8494,1,0,0,0,8495,8496,1,0,0,0,8496,8497,1,0,0,0,8497,8499,5,5,0,0,8498,8493,1,0,0,0,8499,8502,1,0,0,0,8500,8498,1,0,0,0,8500,8501,1,0,0,0,8501,8511,1,0,0,0,8502,8500,1,0,0,0,8503,8508,5,35,0,0,8504,8505,5,4,0,0,8505,8506,3,1250,625,0,8506,8507,5,5,0,0,8507,8509,1,0,0,0,8508,8504,1,0,0,0,8508,8509,1,0,0,0,8509,8511,1,0,0,0,8510,8500,1,0,0,0,8510,8503,1,0,0,0,8511,8517,1,0,0,0,8512,8513,3,1230,615,0,8513,8514,5,27,0,0,8514,8515,7,41,0,0,8515,8517,1,0,0,0,8516,8490,1,0,0,0,8516,8512,1,0,0,0,8517,997,1,0,0,0,8518,8532,3,1002,501,0,8519,8532,3,1006,503,0,8520,8532,3,1010,505,0,8521,8532,3,1018,509,0,8522,8532,3,1026,513,0,8523,8529,3,1028,514,0,8524,8530,3,1032,516,0,8525,8526,5,2,0,0,8526,8527,3,1250,625,0,8527,8528,5,3,0,0,8528,8530,1,0,0,0,8529,8524,1,0,0,0,8529,8525,1,0,0,0,8530,8532,1,0,0,0,8531,8518,1,0,0,0,8531,8519,1,0,0,0,8531,8520,1,0,0,0,8531,8521,1,0,0,0,8531,8522,1,0,0,0,8531,8523,1,0,0,0,8532,999,1,0,0,0,8533,8538,3,1006,503,0,8534,8538,3,1012,506,0,8535,8538,3,1020,510,0,8536,8538,3,1026,513,0,8537,8533,1,0,0,0,8537,8534,1,0,0,0,8537,8535,1,0,0,0,8537,8536,1,0,0,0,8538,1001,1,0,0,0,8539,8544,3,1286,643,0,8540,8544,3,1268,634,0,8541,8544,5,119,0,0,8542,8544,5,126,0,0,8543,8539,1,0,0,0,8543,8540,1,0,0,0,8543,8541,1,0,0,0,8543,8542,1,0,0,0,8544,8546,1,0,0,0,8545,8547,3,472,236,0,8546,8545,1,0,0,0,8546,8547,1,0,0,0,8547,8548,1,0,0,0,8548,8549,3,1004,502,0,8549,1003,1,0,0,0,8550,8551,5,2,0,0,8551,8552,3,1156,578,0,8552,8553,5,3,0,0,8553,8556,1,0,0,0,8554,8556,1,0,0,0,8555,8550,1,0,0,0,8555,8554,1,0,0,0,8556,1005,1,0,0,0,8557,8574,5,394,0,0,8558,8574,5,395,0,0,8559,8574,5,409,0,0,8560,8574,5,381,0,0,8561,8574,5,406,0,0,8562,8563,5,391,0,0,8563,8574,3,1008,504,0,8564,8565,5,190,0,0,8565,8574,5,405,0,0,8566,8567,5,388,0,0,8567,8574,3,1004,502,0,8568,8569,5,387,0,0,8569,8574,3,1004,502,0,8570,8571,5,402,0,0,8571,8574,3,1004,502,0,8572,8574,5,383,0,0,8573,8557,1,0,0,0,8573,8558,1,0,0,0,8573,8559,1,0,0,0,8573,8560,1,0,0,0,8573,8561,1,0,0,0,8573,8562,1,0,0,0,8573,8564,1,0,0,0,8573,8566,1,0,0,0,8573,8568,1,0,0,0,8573,8570,1,0,0,0,8573,8572,1,0,0,0,8574,1007,1,0,0,0,8575,8576,5,2,0,0,8576,8577,3,1250,625,0,8577,8578,5,3,0,0,8578,8581,1,0,0,0,8579,8581,1,0,0,0,8580,8575,1,0,0,0,8580,8579,1,0,0,0,8581,1009,1,0,0,0,8582,8585,3,1014,507,0,8583,8585,3,1016,508,0,8584,8582,1,0,0,0,8584,8583,1,0,0,0,8585,1011,1,0,0,0,8586,8589,3,1014,507,0,8587,8589,3,1016,508,0,8588,8586,1,0,0,0,8588,8587,1,0,0,0,8589,1013,1,0,0,0,8590,8591,5,382,0,0,8591,8592,3,1024,512,0,8592,8593,5,2,0,0,8593,8594,3,1156,578,0,8594,8595,5,3,0,0,8595,1015,1,0,0,0,8596,8597,5,382,0,0,8597,8598,3,1024,512,0,8598,1017,1,0,0,0,8599,8604,3,1022,511,0,8600,8601,5,2,0,0,8601,8602,3,1250,625,0,8602,8603,5,3,0,0,8603,8605,1,0,0,0,8604,8600,1,0,0,0,8604,8605,1,0,0,0,8605,1019,1,0,0,0,8606,8611,3,1022,511,0,8607,8608,5,2,0,0,8608,8609,3,1250,625,0,8609,8610,5,3,0,0,8610,8612,1,0,0,0,8611,8607,1,0,0,0,8611,8612,1,0,0,0,8612,1021,1,0,0,0,8613,8614,7,42,0,0,8614,8620,3,1024,512,0,8615,8620,5,416,0,0,8616,8617,5,398,0,0,8617,8618,7,43,0,0,8618,8620,3,1024,512,0,8619,8613,1,0,0,0,8619,8615,1,0,0,0,8619,8616,1,0,0,0,8620,1023,1,0,0,0,8621,8624,5,367,0,0,8622,8624,1,0,0,0,8623,8621,1,0,0,0,8623,8622,1,0,0,0,8624,1025,1,0,0,0,8625,8630,7,44,0,0,8626,8627,5,2,0,0,8627,8628,3,1250,625,0,8628,8629,5,3,0,0,8629,8631,1,0,0,0,8630,8626,1,0,0,0,8630,8631,1,0,0,0,8631,8632,1,0,0,0,8632,8633,3,1030,515,0,8633,1027,1,0,0,0,8634,8635,5,396,0,0,8635,1029,1,0,0,0,8636,8637,5,105,0,0,8637,8638,5,411,0,0,8638,8644,5,379,0,0,8639,8640,5,372,0,0,8640,8641,5,411,0,0,8641,8644,5,379,0,0,8642,8644,1,0,0,0,8643,8636,1,0,0,0,8643,8639,1,0,0,0,8643,8642,1,0,0,0,8644,1031,1,0,0,0,8645,8672,5,377,0,0,8646,8672,5,257,0,0,8647,8672,5,176,0,0,8648,8672,5,218,0,0,8649,8672,5,254,0,0,8650,8672,3,1034,517,0,8651,8652,5,377,0,0,8652,8653,5,94,0,0,8653,8672,5,257,0,0,8654,8655,5,176,0,0,8655,8659,5,94,0,0,8656,8660,5,218,0,0,8657,8660,5,254,0,0,8658,8660,3,1034,517,0,8659,8656,1,0,0,0,8659,8657,1,0,0,0,8659,8658,1,0,0,0,8660,8672,1,0,0,0,8661,8662,5,218,0,0,8662,8665,5,94,0,0,8663,8666,5,254,0,0,8664,8666,3,1034,517,0,8665,8663,1,0,0,0,8665,8664,1,0,0,0,8666,8672,1,0,0,0,8667,8668,5,254,0,0,8668,8669,5,94,0,0,8669,8672,3,1034,517,0,8670,8672,1,0,0,0,8671,8645,1,0,0,0,8671,8646,1,0,0,0,8671,8647,1,0,0,0,8671,8648,1,0,0,0,8671,8649,1,0,0,0,8671,8650,1,0,0,0,8671,8651,1,0,0,0,8671,8654,1,0,0,0,8671,8661,1,0,0,0,8671,8667,1,0,0,0,8671,8670,1,0,0,0,8672,1033,1,0,0,0,8673,8678,5,319,0,0,8674,8675,5,2,0,0,8675,8676,3,1250,625,0,8676,8677,5,3,0,0,8677,8679,1,0,0,0,8678,8674,1,0,0,0,8678,8679,1,0,0,0,8679,1035,1,0,0,0,8680,8681,5,197,0,0,8681,8684,3,1038,519,0,8682,8684,1,0,0,0,8683,8680,1,0,0,0,8683,8682,1,0,0,0,8684,1037,1,0,0,0,8685,8686,3,1040,520,0,8686,1039,1,0,0,0,8687,8689,3,1042,521,0,8688,8690,3,1150,575,0,8689,8688,1,0,0,0,8689,8690,1,0,0,0,8690,1041,1,0,0,0,8691,8696,3,1044,522,0,8692,8693,7,45,0,0,8693,8695,3,1044,522,0,8694,8692,1,0,0,0,8695,8698,1,0,0,0,8696,8694,1,0,0,0,8696,8697,1,0,0,0,8697,1043,1,0,0,0,8698,8696,1,0,0,0,8699,8704,3,1046,523,0,8700,8701,5,82,0,0,8701,8703,3,1046,523,0,8702,8700,1,0,0,0,8703,8706,1,0,0,0,8704,8702,1,0,0,0,8704,8705,1,0,0,0,8705,1045,1,0,0,0,8706,8704,1,0,0,0,8707,8712,3,1048,524,0,8708,8709,5,33,0,0,8709,8711,3,1048,524,0,8710,8708,1,0,0,0,8711,8714,1,0,0,0,8712,8710,1,0,0,0,8712,8713,1,0,0,0,8713,1047,1,0,0,0,8714,8712,1,0,0,0,8715,8727,3,1050,525,0,8716,8718,5,77,0,0,8717,8716,1,0,0,0,8717,8718,1,0,0,0,8718,8719,1,0,0,0,8719,8721,5,380,0,0,8720,8722,5,91,0,0,8721,8720,1,0,0,0,8721,8722,1,0,0,0,8722,8723,1,0,0,0,8723,8724,3,1050,525,0,8724,8725,5,33,0,0,8725,8726,3,1050,525,0,8726,8728,1,0,0,0,8727,8717,1,0,0,0,8727,8728,1,0,0,0,8728,1049,1,0,0,0,8729,8735,3,1052,526,0,8730,8732,5,77,0,0,8731,8730,1,0,0,0,8731,8732,1,0,0,0,8732,8733,1,0,0,0,8733,8734,5,68,0,0,8734,8736,3,1182,591,0,8735,8731,1,0,0,0,8735,8736,1,0,0,0,8736,1051,1,0,0,0,8737,8739,5,77,0,0,8738,8737,1,0,0,0,8738,8739,1,0,0,0,8739,8740,1,0,0,0,8740,8741,3,1054,527,0,8741,1053,1,0,0,0,8742,8744,3,1056,528,0,8743,8745,7,46,0,0,8744,8743,1,0,0,0,8744,8745,1,0,0,0,8745,1055,1,0,0,0,8746,8770,3,1058,529,0,8747,8749,5,116,0,0,8748,8750,5,77,0,0,8749,8748,1,0,0,0,8749,8750,1,0,0,0,8750,8768,1,0,0,0,8751,8769,5,78,0,0,8752,8769,5,96,0,0,8753,8769,5,60,0,0,8754,8769,5,358,0,0,8755,8756,5,56,0,0,8756,8757,5,64,0,0,8757,8769,3,1038,519,0,8758,8759,5,268,0,0,8759,8760,5,2,0,0,8760,8761,3,1162,581,0,8761,8762,5,3,0,0,8762,8769,1,0,0,0,8763,8769,5,188,0,0,8764,8766,3,1172,586,0,8765,8764,1,0,0,0,8765,8766,1,0,0,0,8766,8767,1,0,0,0,8767,8769,5,478,0,0,8768,8751,1,0,0,0,8768,8752,1,0,0,0,8768,8753,1,0,0,0,8768,8754,1,0,0,0,8768,8755,1,0,0,0,8768,8758,1,0,0,0,8768,8763,1,0,0,0,8768,8765,1,0,0,0,8769,8771,1,0,0,0,8770,8747,1,0,0,0,8770,8771,1,0,0,0,8771,1057,1,0,0,0,8772,8784,3,1060,530,0,8773,8774,7,47,0,0,8774,8785,3,1060,530,0,8775,8776,3,1154,577,0,8776,8782,3,1144,572,0,8777,8783,3,860,430,0,8778,8779,5,2,0,0,8779,8780,3,1038,519,0,8780,8781,5,3,0,0,8781,8783,1,0,0,0,8782,8777,1,0,0,0,8782,8778,1,0,0,0,8783,8785,1,0,0,0,8784,8773,1,0,0,0,8784,8775,1,0,0,0,8784,8785,1,0,0,0,8785,1059,1,0,0,0,8786,8799,3,1062,531,0,8787,8789,5,77,0,0,8788,8787,1,0,0,0,8788,8789,1,0,0,0,8789,8794,1,0,0,0,8790,8795,5,120,0,0,8791,8795,5,114,0,0,8792,8793,5,127,0,0,8793,8795,5,94,0,0,8794,8790,1,0,0,0,8794,8791,1,0,0,0,8794,8792,1,0,0,0,8795,8796,1,0,0,0,8796,8797,3,1062,531,0,8797,8798,3,1036,518,0,8798,8800,1,0,0,0,8799,8788,1,0,0,0,8799,8800,1,0,0,0,8800,1061,1,0,0,0,8801,8807,3,1064,532,0,8802,8803,3,1150,575,0,8803,8804,3,1064,532,0,8804,8806,1,0,0,0,8805,8802,1,0,0,0,8806,8809,1,0,0,0,8807,8805,1,0,0,0,8807,8808,1,0,0,0,8808,1063,1,0,0,0,8809,8807,1,0,0,0,8810,8812,3,1150,575,0,8811,8810,1,0,0,0,8811,8812,1,0,0,0,8812,8813,1,0,0,0,8813,8814,3,1066,533,0,8814,1065,1,0,0,0,8815,8820,3,1068,534,0,8816,8817,7,48,0,0,8817,8819,3,1068,534,0,8818,8816,1,0,0,0,8819,8822,1,0,0,0,8820,8818,1,0,0,0,8820,8821,1,0,0,0,8821,1067,1,0,0,0,8822,8820,1,0,0,0,8823,8828,3,1070,535,0,8824,8825,7,49,0,0,8825,8827,3,1070,535,0,8826,8824,1,0,0,0,8827,8830,1,0,0,0,8828,8826,1,0,0,0,8828,8829,1,0,0,0,8829,1069,1,0,0,0,8830,8828,1,0,0,0,8831,8834,3,1072,536,0,8832,8833,5,15,0,0,8833,8835,3,1038,519,0,8834,8832,1,0,0,0,8834,8835,1,0,0,0,8835,1071,1,0,0,0,8836,8838,7,48,0,0,8837,8836,1,0,0,0,8837,8838,1,0,0,0,8838,8839,1,0,0,0,8839,8840,3,1074,537,0,8840,1073,1,0,0,0,8841,8846,3,1076,538,0,8842,8843,5,142,0,0,8843,8844,5,411,0,0,8844,8845,5,379,0,0,8845,8847,3,1038,519,0,8846,8842,1,0,0,0,8846,8847,1,0,0,0,8847,1075,1,0,0,0,8848,8851,3,1078,539,0,8849,8850,5,43,0,0,8850,8852,3,470,235,0,8851,8849,1,0,0,0,8851,8852,1,0,0,0,8852,1077,1,0,0,0,8853,8858,3,1082,541,0,8854,8855,5,26,0,0,8855,8857,3,996,498,0,8856,8854,1,0,0,0,8857,8860,1,0,0,0,8858,8856,1,0,0,0,8858,8859,1,0,0,0,8859,1079,1,0,0,0,8860,8858,1,0,0,0,8861,8862,6,540,-1,0,8862,8869,3,1082,541,0,8863,8864,7,48,0,0,8864,8869,3,1080,540,9,8865,8866,3,1150,575,0,8866,8867,3,1080,540,3,8867,8869,1,0,0,0,8868,8861,1,0,0,0,8868,8863,1,0,0,0,8868,8865,1,0,0,0,8869,8909,1,0,0,0,8870,8871,10,8,0,0,8871,8872,5,15,0,0,8872,8908,3,1080,540,9,8873,8874,10,7,0,0,8874,8875,7,49,0,0,8875,8908,3,1080,540,8,8876,8877,10,6,0,0,8877,8878,7,48,0,0,8878,8908,3,1080,540,7,8879,8880,10,5,0,0,8880,8881,3,1150,575,0,8881,8882,3,1080,540,6,8882,8908,1,0,0,0,8883,8884,10,4,0,0,8884,8885,7,47,0,0,8885,8908,3,1080,540,5,8886,8887,10,10,0,0,8887,8888,5,26,0,0,8888,8908,3,996,498,0,8889,8890,10,2,0,0,8890,8908,3,1150,575,0,8891,8892,10,1,0,0,8892,8894,5,116,0,0,8893,8895,5,77,0,0,8894,8893,1,0,0,0,8894,8895,1,0,0,0,8895,8905,1,0,0,0,8896,8897,5,56,0,0,8897,8898,5,64,0,0,8898,8906,3,1080,540,0,8899,8900,5,268,0,0,8900,8901,5,2,0,0,8901,8902,3,1162,581,0,8902,8903,5,3,0,0,8903,8906,1,0,0,0,8904,8906,5,188,0,0,8905,8896,1,0,0,0,8905,8899,1,0,0,0,8905,8904,1,0,0,0,8906,8908,1,0,0,0,8907,8870,1,0,0,0,8907,8873,1,0,0,0,8907,8876,1,0,0,0,8907,8879,1,0,0,0,8907,8883,1,0,0,0,8907,8886,1,0,0,0,8907,8889,1,0,0,0,8907,8891,1,0,0,0,8908,8911,1,0,0,0,8909,8907,1,0,0,0,8909,8910,1,0,0,0,8910,1081,1,0,0,0,8911,8909,1,0,0,0,8912,8913,5,389,0,0,8913,8949,3,860,430,0,8914,8917,5,35,0,0,8915,8918,3,860,430,0,8916,8918,3,1164,582,0,8917,8915,1,0,0,0,8917,8916,1,0,0,0,8918,8949,1,0,0,0,8919,8920,5,28,0,0,8920,8949,3,1200,600,0,8921,8922,5,470,0,0,8922,8923,5,2,0,0,8923,8924,3,1156,578,0,8924,8925,5,3,0,0,8925,8949,1,0,0,0,8926,8927,5,98,0,0,8927,8949,3,860,430,0,8928,8949,3,1194,597,0,8929,8949,3,1242,621,0,8930,8949,3,1084,542,0,8931,8932,5,2,0,0,8932,8933,3,1038,519,0,8933,8934,5,3,0,0,8934,8935,3,1200,600,0,8935,8949,1,0,0,0,8936,8949,3,1184,592,0,8937,8949,3,1088,544,0,8938,8940,3,860,430,0,8939,8941,3,1198,599,0,8940,8939,1,0,0,0,8940,8941,1,0,0,0,8941,8949,1,0,0,0,8942,8949,3,1140,570,0,8943,8949,3,1142,571,0,8944,8945,3,1138,569,0,8945,8946,5,125,0,0,8946,8947,3,1138,569,0,8947,8949,1,0,0,0,8948,8912,1,0,0,0,8948,8914,1,0,0,0,8948,8919,1,0,0,0,8948,8921,1,0,0,0,8948,8926,1,0,0,0,8948,8928,1,0,0,0,8948,8929,1,0,0,0,8948,8930,1,0,0,0,8948,8931,1,0,0,0,8948,8936,1,0,0,0,8948,8937,1,0,0,0,8948,8938,1,0,0,0,8948,8942,1,0,0,0,8948,8943,1,0,0,0,8948,8944,1,0,0,0,8949,1083,1,0,0,0,8950,8951,5,661,0,0,8951,1085,1,0,0,0,8952,8953,3,1240,620,0,8953,8972,5,2,0,0,8954,8958,3,1158,579,0,8955,8956,5,6,0,0,8956,8957,5,101,0,0,8957,8959,3,1160,580,0,8958,8955,1,0,0,0,8958,8959,1,0,0,0,8959,8960,1,0,0,0,8960,8961,3,890,445,0,8961,8973,1,0,0,0,8962,8963,5,101,0,0,8963,8964,3,1160,580,0,8964,8965,3,890,445,0,8965,8973,1,0,0,0,8966,8967,7,50,0,0,8967,8968,3,1158,579,0,8968,8969,3,890,445,0,8969,8973,1,0,0,0,8970,8973,5,9,0,0,8971,8973,1,0,0,0,8972,8954,1,0,0,0,8972,8962,1,0,0,0,8972,8966,1,0,0,0,8972,8970,1,0,0,0,8972,8971,1,0,0,0,8973,8974,1,0,0,0,8974,8975,5,3,0,0,8975,1087,1,0,0,0,8976,8977,3,1086,543,0,8977,8978,3,1112,556,0,8978,8979,3,1114,557,0,8979,8980,3,1122,561,0,8980,8983,1,0,0,0,8981,8983,3,1092,546,0,8982,8976,1,0,0,0,8982,8981,1,0,0,0,8983,1089,1,0,0,0,8984,8987,3,1086,543,0,8985,8987,3,1092,546,0,8986,8984,1,0,0,0,8986,8985,1,0,0,0,8987,1091,1,0,0,0,8988,8989,5,108,0,0,8989,8990,5,62,0,0,8990,8991,5,2,0,0,8991,8992,3,1038,519,0,8992,8993,5,3,0,0,8993,9166,1,0,0,0,8994,9166,5,48,0,0,8995,9e3,5,50,0,0,8996,8997,5,2,0,0,8997,8998,3,1250,625,0,8998,8999,5,3,0,0,8999,9001,1,0,0,0,9e3,8996,1,0,0,0,9e3,9001,1,0,0,0,9001,9166,1,0,0,0,9002,9007,5,51,0,0,9003,9004,5,2,0,0,9004,9005,3,1250,625,0,9005,9006,5,3,0,0,9006,9008,1,0,0,0,9007,9003,1,0,0,0,9007,9008,1,0,0,0,9008,9166,1,0,0,0,9009,9014,5,75,0,0,9010,9011,5,2,0,0,9011,9012,3,1250,625,0,9012,9013,5,3,0,0,9013,9015,1,0,0,0,9014,9010,1,0,0,0,9014,9015,1,0,0,0,9015,9166,1,0,0,0,9016,9021,5,76,0,0,9017,9018,5,2,0,0,9018,9019,3,1250,625,0,9019,9020,5,3,0,0,9020,9022,1,0,0,0,9021,9017,1,0,0,0,9021,9022,1,0,0,0,9022,9166,1,0,0,0,9023,9166,5,49,0,0,9024,9166,5,52,0,0,9025,9166,5,89,0,0,9026,9166,5,99,0,0,9027,9166,5,47,0,0,9028,9166,5,111,0,0,9029,9030,5,41,0,0,9030,9031,5,2,0,0,9031,9032,3,1038,519,0,9032,9033,5,36,0,0,9033,9034,3,996,498,0,9034,9035,5,3,0,0,9035,9166,1,0,0,0,9036,9037,5,390,0,0,9037,9038,5,2,0,0,9038,9039,3,1168,584,0,9039,9040,5,3,0,0,9040,9166,1,0,0,0,9041,9042,5,489,0,0,9042,9043,5,2,0,0,9043,9046,3,1038,519,0,9044,9045,5,6,0,0,9045,9047,3,1172,586,0,9046,9044,1,0,0,0,9046,9047,1,0,0,0,9047,9048,1,0,0,0,9048,9049,5,3,0,0,9049,9166,1,0,0,0,9050,9051,5,403,0,0,9051,9052,5,2,0,0,9052,9053,3,1174,587,0,9053,9054,5,3,0,0,9054,9166,1,0,0,0,9055,9056,5,404,0,0,9056,9057,5,2,0,0,9057,9058,3,1176,588,0,9058,9059,5,3,0,0,9059,9166,1,0,0,0,9060,9061,5,410,0,0,9061,9062,5,2,0,0,9062,9063,3,1178,589,0,9063,9064,5,3,0,0,9064,9166,1,0,0,0,9065,9066,5,413,0,0,9066,9067,5,2,0,0,9067,9068,3,1038,519,0,9068,9069,5,36,0,0,9069,9070,3,996,498,0,9070,9071,5,3,0,0,9071,9166,1,0,0,0,9072,9073,5,414,0,0,9073,9075,5,2,0,0,9074,9076,7,51,0,0,9075,9074,1,0,0,0,9075,9076,1,0,0,0,9076,9077,1,0,0,0,9077,9078,3,1180,590,0,9078,9079,5,3,0,0,9079,9166,1,0,0,0,9080,9081,5,401,0,0,9081,9082,5,2,0,0,9082,9083,3,1038,519,0,9083,9084,5,6,0,0,9084,9085,3,1038,519,0,9085,9086,5,3,0,0,9086,9166,1,0,0,0,9087,9088,5,386,0,0,9088,9089,5,2,0,0,9089,9090,3,1156,578,0,9090,9091,5,3,0,0,9091,9166,1,0,0,0,9092,9093,5,392,0,0,9093,9094,5,2,0,0,9094,9095,3,1156,578,0,9095,9096,5,3,0,0,9096,9166,1,0,0,0,9097,9098,5,397,0,0,9098,9099,5,2,0,0,9099,9100,3,1156,578,0,9100,9101,5,3,0,0,9101,9166,1,0,0,0,9102,9103,5,425,0,0,9103,9104,5,2,0,0,9104,9105,3,1156,578,0,9105,9106,5,3,0,0,9106,9166,1,0,0,0,9107,9108,5,426,0,0,9108,9109,5,2,0,0,9109,9110,5,259,0,0,9110,9116,3,1272,636,0,9111,9114,5,6,0,0,9112,9115,3,1098,549,0,9113,9115,3,1156,578,0,9114,9112,1,0,0,0,9114,9113,1,0,0,0,9115,9117,1,0,0,0,9116,9111,1,0,0,0,9116,9117,1,0,0,0,9117,9118,1,0,0,0,9118,9119,5,3,0,0,9119,9166,1,0,0,0,9120,9121,5,427,0,0,9121,9122,5,2,0,0,9122,9123,3,1082,541,0,9123,9124,3,1108,554,0,9124,9125,5,3,0,0,9125,9166,1,0,0,0,9126,9127,5,428,0,0,9127,9128,5,2,0,0,9128,9129,3,1100,550,0,9129,9130,5,3,0,0,9130,9166,1,0,0,0,9131,9132,5,429,0,0,9132,9133,5,2,0,0,9133,9134,3,1104,552,0,9134,9135,3,1038,519,0,9135,9136,3,1106,553,0,9136,9137,5,3,0,0,9137,9166,1,0,0,0,9138,9139,5,430,0,0,9139,9140,5,2,0,0,9140,9141,5,259,0,0,9141,9144,3,1272,636,0,9142,9143,5,6,0,0,9143,9145,3,1038,519,0,9144,9142,1,0,0,0,9144,9145,1,0,0,0,9145,9146,1,0,0,0,9146,9147,5,3,0,0,9147,9166,1,0,0,0,9148,9149,5,431,0,0,9149,9150,5,2,0,0,9150,9151,5,376,0,0,9151,9152,3,1038,519,0,9152,9153,5,6,0,0,9153,9154,3,1094,547,0,9154,9155,3,1096,548,0,9155,9156,5,3,0,0,9156,9166,1,0,0,0,9157,9158,5,432,0,0,9158,9159,5,2,0,0,9159,9160,3,1104,552,0,9160,9161,3,1038,519,0,9161,9162,5,36,0,0,9162,9163,3,998,499,0,9163,9164,5,3,0,0,9164,9166,1,0,0,0,9165,8988,1,0,0,0,9165,8994,1,0,0,0,9165,8995,1,0,0,0,9165,9002,1,0,0,0,9165,9009,1,0,0,0,9165,9016,1,0,0,0,9165,9023,1,0,0,0,9165,9024,1,0,0,0,9165,9025,1,0,0,0,9165,9026,1,0,0,0,9165,9027,1,0,0,0,9165,9028,1,0,0,0,9165,9029,1,0,0,0,9165,9036,1,0,0,0,9165,9041,1,0,0,0,9165,9050,1,0,0,0,9165,9055,1,0,0,0,9165,9060,1,0,0,0,9165,9065,1,0,0,0,9165,9072,1,0,0,0,9165,9080,1,0,0,0,9165,9087,1,0,0,0,9165,9092,1,0,0,0,9165,9097,1,0,0,0,9165,9102,1,0,0,0,9165,9107,1,0,0,0,9165,9120,1,0,0,0,9165,9126,1,0,0,0,9165,9131,1,0,0,0,9165,9138,1,0,0,0,9165,9148,1,0,0,0,9165,9157,1,0,0,0,9166,1093,1,0,0,0,9167,9168,5,368,0,0,9168,9173,3,1038,519,0,9169,9170,5,368,0,0,9170,9171,5,262,0,0,9171,9173,5,450,0,0,9172,9167,1,0,0,0,9172,9169,1,0,0,0,9173,1095,1,0,0,0,9174,9175,5,6,0,0,9175,9176,5,332,0,0,9176,9186,5,378,0,0,9177,9178,5,6,0,0,9178,9179,5,332,0,0,9179,9186,5,262,0,0,9180,9181,5,6,0,0,9181,9182,5,332,0,0,9182,9183,5,262,0,0,9183,9186,5,450,0,0,9184,9186,1,0,0,0,9185,9174,1,0,0,0,9185,9177,1,0,0,0,9185,9180,1,0,0,0,9185,9184,1,0,0,0,9186,1097,1,0,0,0,9187,9188,5,417,0,0,9188,9189,5,2,0,0,9189,9190,3,1100,550,0,9190,9191,5,3,0,0,9191,1099,1,0,0,0,9192,9197,3,1102,551,0,9193,9194,5,6,0,0,9194,9196,3,1102,551,0,9195,9193,1,0,0,0,9196,9199,1,0,0,0,9197,9195,1,0,0,0,9197,9198,1,0,0,0,9198,1101,1,0,0,0,9199,9197,1,0,0,0,9200,9203,3,1038,519,0,9201,9202,5,36,0,0,9202,9204,3,1272,636,0,9203,9201,1,0,0,0,9203,9204,1,0,0,0,9204,1103,1,0,0,0,9205,9206,7,52,0,0,9206,1105,1,0,0,0,9207,9208,5,285,0,0,9208,9213,5,371,0,0,9209,9210,5,340,0,0,9210,9213,5,371,0,0,9211,9213,1,0,0,0,9212,9207,1,0,0,0,9212,9209,1,0,0,0,9212,9211,1,0,0,0,9213,1107,1,0,0,0,9214,9215,5,279,0,0,9215,9230,3,1082,541,0,9216,9217,5,279,0,0,9217,9218,3,1082,541,0,9218,9219,3,1110,555,0,9219,9230,1,0,0,0,9220,9221,5,279,0,0,9221,9222,3,1110,555,0,9222,9223,3,1082,541,0,9223,9230,1,0,0,0,9224,9225,5,279,0,0,9225,9226,3,1110,555,0,9226,9227,3,1082,541,0,9227,9228,3,1110,555,0,9228,9230,1,0,0,0,9229,9214,1,0,0,0,9229,9216,1,0,0,0,9229,9220,1,0,0,0,9229,9224,1,0,0,0,9230,1109,1,0,0,0,9231,9232,5,147,0,0,9232,9233,7,53,0,0,9233,1111,1,0,0,0,9234,9235,5,479,0,0,9235,9236,5,66,0,0,9236,9237,5,2,0,0,9237,9238,3,892,446,0,9238,9239,5,3,0,0,9239,9242,1,0,0,0,9240,9242,1,0,0,0,9241,9234,1,0,0,0,9241,9240,1,0,0,0,9242,1113,1,0,0,0,9243,9244,5,480,0,0,9244,9245,5,2,0,0,9245,9246,5,103,0,0,9246,9247,3,1038,519,0,9247,9248,5,3,0,0,9248,9251,1,0,0,0,9249,9251,1,0,0,0,9250,9243,1,0,0,0,9250,9249,1,0,0,0,9251,1115,1,0,0,0,9252,9253,5,104,0,0,9253,9256,3,1118,559,0,9254,9256,1,0,0,0,9255,9252,1,0,0,0,9255,9254,1,0,0,0,9256,1117,1,0,0,0,9257,9262,3,1120,560,0,9258,9259,5,6,0,0,9259,9261,3,1120,560,0,9260,9258,1,0,0,0,9261,9264,1,0,0,0,9262,9260,1,0,0,0,9262,9263,1,0,0,0,9263,1119,1,0,0,0,9264,9262,1,0,0,0,9265,9266,3,1264,632,0,9266,9267,5,36,0,0,9267,9268,3,1124,562,0,9268,1121,1,0,0,0,9269,9272,5,124,0,0,9270,9273,3,1124,562,0,9271,9273,3,1264,632,0,9272,9270,1,0,0,0,9272,9271,1,0,0,0,9273,9276,1,0,0,0,9274,9276,1,0,0,0,9275,9269,1,0,0,0,9275,9274,1,0,0,0,9276,1123,1,0,0,0,9277,9278,5,2,0,0,9278,9279,3,1126,563,0,9279,9280,3,1128,564,0,9280,9281,3,890,445,0,9281,9282,3,1130,565,0,9282,9283,5,3,0,0,9283,1125,1,0,0,0,9284,9287,3,1264,632,0,9285,9287,1,0,0,0,9286,9284,1,0,0,0,9286,9285,1,0,0,0,9287,1127,1,0,0,0,9288,9289,5,278,0,0,9289,9290,5,147,0,0,9290,9293,3,1156,578,0,9291,9293,1,0,0,0,9292,9288,1,0,0,0,9292,9291,1,0,0,0,9293,1129,1,0,0,0,9294,9295,5,292,0,0,9295,9296,3,1132,566,0,9296,9297,3,1136,568,0,9297,9308,1,0,0,0,9298,9299,5,313,0,0,9299,9300,3,1132,566,0,9300,9301,3,1136,568,0,9301,9308,1,0,0,0,9302,9303,5,481,0,0,9303,9304,3,1132,566,0,9304,9305,3,1136,568,0,9305,9308,1,0,0,0,9306,9308,1,0,0,0,9307,9294,1,0,0,0,9307,9298,1,0,0,0,9307,9302,1,0,0,0,9307,9306,1,0,0,0,9308,1131,1,0,0,0,9309,9316,3,1134,567,0,9310,9311,5,380,0,0,9311,9312,3,1134,567,0,9312,9313,5,33,0,0,9313,9314,3,1134,567,0,9314,9316,1,0,0,0,9315,9309,1,0,0,0,9315,9310,1,0,0,0,9316,1133,1,0,0,0,9317,9318,5,355,0,0,9318,9325,7,54,0,0,9319,9320,5,434,0,0,9320,9325,5,407,0,0,9321,9322,3,1038,519,0,9322,9323,7,54,0,0,9323,9325,1,0,0,0,9324,9317,1,0,0,0,9324,9319,1,0,0,0,9324,9321,1,0,0,0,9325,1135,1,0,0,0,9326,9333,5,199,0,0,9327,9328,5,434,0,0,9328,9334,5,407,0,0,9329,9334,5,66,0,0,9330,9334,5,467,0,0,9331,9332,5,262,0,0,9332,9334,5,482,0,0,9333,9327,1,0,0,0,9333,9329,1,0,0,0,9333,9330,1,0,0,0,9333,9331,1,0,0,0,9334,9337,1,0,0,0,9335,9337,1,0,0,0,9336,9326,1,0,0,0,9336,9335,1,0,0,0,9337,1137,1,0,0,0,9338,9339,5,407,0,0,9339,9341,5,2,0,0,9340,9342,3,1156,578,0,9341,9340,1,0,0,0,9341,9342,1,0,0,0,9342,9343,1,0,0,0,9343,9351,5,3,0,0,9344,9345,5,2,0,0,9345,9346,3,1156,578,0,9346,9347,5,6,0,0,9347,9348,3,1038,519,0,9348,9349,5,3,0,0,9349,9351,1,0,0,0,9350,9338,1,0,0,0,9350,9344,1,0,0,0,9351,1139,1,0,0,0,9352,9353,5,407,0,0,9353,9355,5,2,0,0,9354,9356,3,1156,578,0,9355,9354,1,0,0,0,9355,9356,1,0,0,0,9356,9357,1,0,0,0,9357,9358,5,3,0,0,9358,1141,1,0,0,0,9359,9360,5,2,0,0,9360,9361,3,1156,578,0,9361,9362,5,6,0,0,9362,9363,3,1038,519,0,9363,9364,5,3,0,0,9364,1143,1,0,0,0,9365,9366,7,55,0,0,9366,1145,1,0,0,0,9367,9370,5,29,0,0,9368,9370,3,1148,574,0,9369,9367,1,0,0,0,9369,9368,1,0,0,0,9370,1147,1,0,0,0,9371,9372,7,56,0,0,9372,1149,1,0,0,0,9373,9380,5,29,0,0,9374,9375,5,271,0,0,9375,9376,5,2,0,0,9376,9377,3,610,305,0,9377,9378,5,3,0,0,9378,9380,1,0,0,0,9379,9373,1,0,0,0,9379,9374,1,0,0,0,9380,1151,1,0,0,0,9381,9388,3,1146,573,0,9382,9383,5,271,0,0,9383,9384,5,2,0,0,9384,9385,3,610,305,0,9385,9386,5,3,0,0,9386,9388,1,0,0,0,9387,9381,1,0,0,0,9387,9382,1,0,0,0,9388,1153,1,0,0,0,9389,9402,3,1146,573,0,9390,9391,5,271,0,0,9391,9392,5,2,0,0,9392,9393,3,610,305,0,9393,9394,5,3,0,0,9394,9402,1,0,0,0,9395,9402,5,120,0,0,9396,9397,5,77,0,0,9397,9402,5,120,0,0,9398,9402,5,114,0,0,9399,9400,5,77,0,0,9400,9402,5,114,0,0,9401,9389,1,0,0,0,9401,9390,1,0,0,0,9401,9395,1,0,0,0,9401,9396,1,0,0,0,9401,9398,1,0,0,0,9401,9399,1,0,0,0,9402,1155,1,0,0,0,9403,9408,3,1038,519,0,9404,9405,5,6,0,0,9405,9407,3,1038,519,0,9406,9404,1,0,0,0,9407,9410,1,0,0,0,9408,9406,1,0,0,0,9408,9409,1,0,0,0,9409,1157,1,0,0,0,9410,9408,1,0,0,0,9411,9416,3,1160,580,0,9412,9413,5,6,0,0,9413,9415,3,1160,580,0,9414,9412,1,0,0,0,9415,9418,1,0,0,0,9416,9414,1,0,0,0,9416,9417,1,0,0,0,9417,1159,1,0,0,0,9418,9416,1,0,0,0,9419,9425,3,1038,519,0,9420,9421,3,570,285,0,9421,9422,7,57,0,0,9422,9423,3,1038,519,0,9423,9425,1,0,0,0,9424,9419,1,0,0,0,9424,9420,1,0,0,0,9425,1161,1,0,0,0,9426,9431,3,996,498,0,9427,9428,5,6,0,0,9428,9430,3,996,498,0,9429,9427,1,0,0,0,9430,9433,1,0,0,0,9431,9429,1,0,0,0,9431,9432,1,0,0,0,9432,1163,1,0,0,0,9433,9431,1,0,0,0,9434,9437,5,4,0,0,9435,9438,3,1156,578,0,9436,9438,3,1166,583,0,9437,9435,1,0,0,0,9437,9436,1,0,0,0,9437,9438,1,0,0,0,9438,9439,1,0,0,0,9439,9440,5,5,0,0,9440,1165,1,0,0,0,9441,9446,3,1164,582,0,9442,9443,5,6,0,0,9443,9445,3,1164,582,0,9444,9442,1,0,0,0,9445,9448,1,0,0,0,9446,9444,1,0,0,0,9446,9447,1,0,0,0,9447,1167,1,0,0,0,9448,9446,1,0,0,0,9449,9450,3,1170,585,0,9450,9451,5,64,0,0,9451,9452,3,1038,519,0,9452,9455,1,0,0,0,9453,9455,1,0,0,0,9454,9449,1,0,0,0,9454,9453,1,0,0,0,9455,1169,1,0,0,0,9456,9465,3,1274,637,0,9457,9465,5,377,0,0,9458,9465,5,257,0,0,9459,9465,5,176,0,0,9460,9465,5,218,0,0,9461,9465,5,254,0,0,9462,9465,5,319,0,0,9463,9465,3,1252,626,0,9464,9456,1,0,0,0,9464,9457,1,0,0,0,9464,9458,1,0,0,0,9464,9459,1,0,0,0,9464,9460,1,0,0,0,9464,9461,1,0,0,0,9464,9462,1,0,0,0,9464,9463,1,0,0,0,9465,1171,1,0,0,0,9466,9467,7,58,0,0,9467,1173,1,0,0,0,9468,9469,3,1038,519,0,9469,9470,5,84,0,0,9470,9471,3,1038,519,0,9471,9472,5,64,0,0,9472,9475,3,1038,519,0,9473,9474,5,62,0,0,9474,9476,3,1038,519,0,9475,9473,1,0,0,0,9475,9476,1,0,0,0,9476,1175,1,0,0,0,9477,9478,3,1080,540,0,9478,9479,5,68,0,0,9479,9480,3,1080,540,0,9480,9483,1,0,0,0,9481,9483,1,0,0,0,9482,9477,1,0,0,0,9482,9481,1,0,0,0,9483,1177,1,0,0,0,9484,9485,3,1038,519,0,9485,9486,5,64,0,0,9486,9487,3,1038,519,0,9487,9488,5,62,0,0,9488,9489,3,1038,519,0,9489,9512,1,0,0,0,9490,9491,3,1038,519,0,9491,9492,5,62,0,0,9492,9493,3,1038,519,0,9493,9494,5,64,0,0,9494,9495,3,1038,519,0,9495,9512,1,0,0,0,9496,9497,3,1038,519,0,9497,9498,5,64,0,0,9498,9499,3,1038,519,0,9499,9512,1,0,0,0,9500,9501,3,1038,519,0,9501,9502,5,62,0,0,9502,9503,3,1038,519,0,9503,9512,1,0,0,0,9504,9505,3,1038,519,0,9505,9506,5,127,0,0,9506,9507,3,1038,519,0,9507,9508,5,197,0,0,9508,9509,3,1038,519,0,9509,9512,1,0,0,0,9510,9512,3,1156,578,0,9511,9484,1,0,0,0,9511,9490,1,0,0,0,9511,9496,1,0,0,0,9511,9500,1,0,0,0,9511,9504,1,0,0,0,9511,9510,1,0,0,0,9512,1179,1,0,0,0,9513,9514,3,1038,519,0,9514,9515,5,64,0,0,9515,9516,3,1156,578,0,9516,9521,1,0,0,0,9517,9518,5,64,0,0,9518,9521,3,1156,578,0,9519,9521,3,1156,578,0,9520,9513,1,0,0,0,9520,9517,1,0,0,0,9520,9519,1,0,0,0,9521,1181,1,0,0,0,9522,9528,3,860,430,0,9523,9524,5,2,0,0,9524,9525,3,1156,578,0,9525,9526,5,3,0,0,9526,9528,1,0,0,0,9527,9522,1,0,0,0,9527,9523,1,0,0,0,9528,1183,1,0,0,0,9529,9530,5,40,0,0,9530,9531,3,1192,596,0,9531,9532,3,1186,593,0,9532,9533,3,1190,595,0,9533,9534,5,454,0,0,9534,1185,1,0,0,0,9535,9537,3,1188,594,0,9536,9535,1,0,0,0,9537,9538,1,0,0,0,9538,9536,1,0,0,0,9538,9539,1,0,0,0,9539,1187,1,0,0,0,9540,9541,5,102,0,0,9541,9542,3,1038,519,0,9542,9543,5,93,0,0,9543,9544,3,1038,519,0,9544,1189,1,0,0,0,9545,9546,5,58,0,0,9546,9549,3,1038,519,0,9547,9549,1,0,0,0,9548,9545,1,0,0,0,9548,9547,1,0,0,0,9549,1191,1,0,0,0,9550,9553,3,1038,519,0,9551,9553,1,0,0,0,9552,9550,1,0,0,0,9552,9551,1,0,0,0,9553,1193,1,0,0,0,9554,9556,3,1264,632,0,9555,9557,3,1198,599,0,9556,9555,1,0,0,0,9556,9557,1,0,0,0,9557,1195,1,0,0,0,9558,9561,5,11,0,0,9559,9562,3,1236,618,0,9560,9562,5,9,0,0,9561,9559,1,0,0,0,9561,9560,1,0,0,0,9562,9576,1,0,0,0,9563,9572,5,4,0,0,9564,9573,3,1038,519,0,9565,9567,3,1038,519,0,9566,9565,1,0,0,0,9566,9567,1,0,0,0,9567,9568,1,0,0,0,9568,9570,5,8,0,0,9569,9571,3,1038,519,0,9570,9569,1,0,0,0,9570,9571,1,0,0,0,9571,9573,1,0,0,0,9572,9564,1,0,0,0,9572,9566,1,0,0,0,9573,9574,1,0,0,0,9574,9576,5,5,0,0,9575,9558,1,0,0,0,9575,9563,1,0,0,0,9576,1197,1,0,0,0,9577,9579,3,1196,598,0,9578,9577,1,0,0,0,9579,9580,1,0,0,0,9580,9578,1,0,0,0,9580,9581,1,0,0,0,9581,1199,1,0,0,0,9582,9584,3,1196,598,0,9583,9582,1,0,0,0,9584,9587,1,0,0,0,9585,9583,1,0,0,0,9585,9586,1,0,0,0,9586,1201,1,0,0,0,9587,9585,1,0,0,0,9588,9591,3,1204,602,0,9589,9591,1,0,0,0,9590,9588,1,0,0,0,9590,9589,1,0,0,0,9591,1203,1,0,0,0,9592,9597,3,1206,603,0,9593,9594,5,6,0,0,9594,9596,3,1206,603,0,9595,9593,1,0,0,0,9596,9599,1,0,0,0,9597,9595,1,0,0,0,9597,9598,1,0,0,0,9598,1205,1,0,0,0,9599,9597,1,0,0,0,9600,9609,5,9,0,0,9601,9606,3,1038,519,0,9602,9603,5,36,0,0,9603,9607,3,1272,636,0,9604,9607,3,1274,637,0,9605,9607,1,0,0,0,9606,9602,1,0,0,0,9606,9604,1,0,0,0,9606,9605,1,0,0,0,9607,9609,1,0,0,0,9608,9600,1,0,0,0,9608,9601,1,0,0,0,9609,1207,1,0,0,0,9610,9615,3,1230,615,0,9611,9612,5,6,0,0,9612,9614,3,1230,615,0,9613,9611,1,0,0,0,9614,9617,1,0,0,0,9615,9613,1,0,0,0,9615,9616,1,0,0,0,9616,1209,1,0,0,0,9617,9615,1,0,0,0,9618,9619,3,1234,617,0,9619,1211,1,0,0,0,9620,9625,3,1210,605,0,9621,9622,5,6,0,0,9622,9624,3,1210,605,0,9623,9621,1,0,0,0,9624,9627,1,0,0,0,9625,9623,1,0,0,0,9625,9626,1,0,0,0,9626,1213,1,0,0,0,9627,9625,1,0,0,0,9628,9629,3,1234,617,0,9629,1215,1,0,0,0,9630,9635,3,1214,607,0,9631,9632,5,6,0,0,9632,9634,3,1214,607,0,9633,9631,1,0,0,0,9634,9637,1,0,0,0,9635,9633,1,0,0,0,9635,9636,1,0,0,0,9636,1217,1,0,0,0,9637,9635,1,0,0,0,9638,9639,3,1230,615,0,9639,1219,1,0,0,0,9640,9645,3,1218,609,0,9641,9642,5,6,0,0,9642,9644,3,1218,609,0,9643,9641,1,0,0,0,9644,9647,1,0,0,0,9645,9643,1,0,0,0,9645,9646,1,0,0,0,9646,1221,1,0,0,0,9647,9645,1,0,0,0,9648,9649,3,1234,617,0,9649,1223,1,0,0,0,9650,9651,3,1234,617,0,9651,1225,1,0,0,0,9652,9653,3,1230,615,0,9653,1227,1,0,0,0,9654,9659,3,1226,613,0,9655,9656,5,6,0,0,9656,9658,3,1226,613,0,9657,9655,1,0,0,0,9658,9661,1,0,0,0,9659,9657,1,0,0,0,9659,9660,1,0,0,0,9660,1229,1,0,0,0,9661,9659,1,0,0,0,9662,9664,3,1264,632,0,9663,9665,3,1198,599,0,9664,9663,1,0,0,0,9664,9665,1,0,0,0,9665,1231,1,0,0,0,9666,9671,3,1234,617,0,9667,9668,5,6,0,0,9668,9670,3,1234,617,0,9669,9667,1,0,0,0,9670,9673,1,0,0,0,9671,9669,1,0,0,0,9671,9672,1,0,0,0,9672,1233,1,0,0,0,9673,9671,1,0,0,0,9674,9675,3,1264,632,0,9675,1235,1,0,0,0,9676,9677,3,1272,636,0,9677,1237,1,0,0,0,9678,9679,3,1252,626,0,9679,1239,1,0,0,0,9680,9688,3,1286,643,0,9681,9688,3,1268,634,0,9682,9683,3,1264,632,0,9683,9684,3,1198,599,0,9684,9688,1,0,0,0,9685,9688,5,119,0,0,9686,9688,5,126,0,0,9687,9680,1,0,0,0,9687,9681,1,0,0,0,9687,9682,1,0,0,0,9687,9685,1,0,0,0,9687,9686,1,0,0,0,9688,1241,1,0,0,0,9689,9722,3,1250,625,0,9690,9722,3,1248,624,0,9691,9722,3,1252,626,0,9692,9722,3,1246,623,0,9693,9722,3,1244,622,0,9694,9702,3,1240,620,0,9695,9703,3,1252,626,0,9696,9697,5,2,0,0,9697,9698,3,1158,579,0,9698,9699,3,890,445,0,9699,9700,5,3,0,0,9700,9701,3,1252,626,0,9701,9703,1,0,0,0,9702,9695,1,0,0,0,9702,9696,1,0,0,0,9703,9722,1,0,0,0,9704,9705,3,1e3,500,0,9705,9706,3,1252,626,0,9706,9722,1,0,0,0,9707,9716,3,1028,514,0,9708,9709,3,1252,626,0,9709,9710,3,1032,516,0,9710,9717,1,0,0,0,9711,9712,5,2,0,0,9712,9713,3,1250,625,0,9713,9714,5,3,0,0,9714,9715,3,1252,626,0,9715,9717,1,0,0,0,9716,9708,1,0,0,0,9716,9711,1,0,0,0,9717,9722,1,0,0,0,9718,9722,5,96,0,0,9719,9722,5,60,0,0,9720,9722,5,78,0,0,9721,9689,1,0,0,0,9721,9690,1,0,0,0,9721,9691,1,0,0,0,9721,9692,1,0,0,0,9721,9693,1,0,0,0,9721,9694,1,0,0,0,9721,9704,1,0,0,0,9721,9707,1,0,0,0,9721,9718,1,0,0,0,9721,9719,1,0,0,0,9721,9720,1,0,0,0,9722,1243,1,0,0,0,9723,9724,5,654,0,0,9724,1245,1,0,0,0,9725,9726,5,650,0,0,9726,1247,1,0,0,0,9727,9728,5,660,0,0,9728,1249,1,0,0,0,9729,9730,5,658,0,0,9730,1251,1,0,0,0,9731,9732,3,1254,627,0,9732,9733,3,1256,628,0,9733,1253,1,0,0,0,9734,9746,5,645,0,0,9735,9746,5,647,0,0,9736,9740,5,649,0,0,9737,9739,5,677,0,0,9738,9737,1,0,0,0,9739,9742,1,0,0,0,9740,9738,1,0,0,0,9740,9741,1,0,0,0,9741,9743,1,0,0,0,9742,9740,1,0,0,0,9743,9746,5,678,0,0,9744,9746,5,671,0,0,9745,9734,1,0,0,0,9745,9735,1,0,0,0,9745,9736,1,0,0,0,9745,9744,1,0,0,0,9746,1255,1,0,0,0,9747,9748,5,487,0,0,9748,9751,3,1254,627,0,9749,9751,1,0,0,0,9750,9747,1,0,0,0,9750,9749,1,0,0,0,9751,1257,1,0,0,0,9752,9758,3,1250,625,0,9753,9754,5,12,0,0,9754,9758,3,1250,625,0,9755,9756,5,13,0,0,9756,9758,3,1250,625,0,9757,9752,1,0,0,0,9757,9753,1,0,0,0,9757,9755,1,0,0,0,9758,1259,1,0,0,0,9759,9763,3,1270,635,0,9760,9763,5,52,0,0,9761,9763,5,89,0,0,9762,9759,1,0,0,0,9762,9760,1,0,0,0,9762,9761,1,0,0,0,9763,1261,1,0,0,0,9764,9769,3,1260,630,0,9765,9766,5,6,0,0,9766,9768,3,1260,630,0,9767,9765,1,0,0,0,9768,9771,1,0,0,0,9769,9767,1,0,0,0,9769,9770,1,0,0,0,9770,1263,1,0,0,0,9771,9769,1,0,0,0,9772,9779,3,1274,637,0,9773,9779,3,1278,639,0,9774,9779,3,1280,640,0,9775,9779,3,1490,745,0,9776,9779,5,119,0,0,9777,9779,5,126,0,0,9778,9772,1,0,0,0,9778,9773,1,0,0,0,9778,9774,1,0,0,0,9778,9775,1,0,0,0,9778,9776,1,0,0,0,9778,9777,1,0,0,0,9779,1265,1,0,0,0,9780,9785,3,1274,637,0,9781,9785,3,1278,639,0,9782,9785,3,1280,640,0,9783,9785,3,1490,745,0,9784,9780,1,0,0,0,9784,9781,1,0,0,0,9784,9782,1,0,0,0,9784,9783,1,0,0,0,9785,1267,1,0,0,0,9786,9791,3,1274,637,0,9787,9791,3,1278,639,0,9788,9791,3,1490,745,0,9789,9791,3,1282,641,0,9790,9786,1,0,0,0,9790,9787,1,0,0,0,9790,9788,1,0,0,0,9790,9789,1,0,0,0,9791,1269,1,0,0,0,9792,9797,3,1274,637,0,9793,9797,3,1278,639,0,9794,9797,3,1280,640,0,9795,9797,3,1282,641,0,9796,9792,1,0,0,0,9796,9793,1,0,0,0,9796,9794,1,0,0,0,9796,9795,1,0,0,0,9797,1271,1,0,0,0,9798,9805,3,1274,637,0,9799,9805,3,1490,745,0,9800,9805,3,1278,639,0,9801,9805,3,1280,640,0,9802,9805,3,1282,641,0,9803,9805,3,1284,642,0,9804,9798,1,0,0,0,9804,9799,1,0,0,0,9804,9800,1,0,0,0,9804,9801,1,0,0,0,9804,9802,1,0,0,0,9804,9803,1,0,0,0,9805,1273,1,0,0,0,9806,9807,5,636,0,0,9807,9814,3,1256,628,0,9808,9814,5,637,0,0,9809,9814,5,641,0,0,9810,9814,3,1084,542,0,9811,9814,3,1276,638,0,9812,9814,3,1490,745,0,9813,9806,1,0,0,0,9813,9808,1,0,0,0,9813,9809,1,0,0,0,9813,9810,1,0,0,0,9813,9811,1,0,0,0,9813,9812,1,0,0,0,9814,1275,1,0,0,0,9815,9816,5,662,0,0,9816,1277,1,0,0,0,9817,9818,7,59,0,0,9818,1279,1,0,0,0,9819,9872,5,380,0,0,9820,9872,5,381,0,0,9821,9872,3,1010,505,0,9822,9872,5,383,0,0,9823,9872,5,384,0,0,9824,9872,3,1018,509,0,9825,9872,5,386,0,0,9826,9872,5,387,0,0,9827,9872,5,388,0,0,9828,9872,5,389,0,0,9829,9872,5,390,0,0,9830,9872,5,391,0,0,9831,9872,5,392,0,0,9832,9872,5,470,0,0,9833,9872,5,393,0,0,9834,9872,5,394,0,0,9835,9872,5,395,0,0,9836,9872,5,396,0,0,9837,9872,5,397,0,0,9838,9872,5,398,0,0,9839,9872,5,399,0,0,9840,9872,5,400,0,0,9841,9872,5,489,0,0,9842,9872,5,401,0,0,9843,9872,3,1006,503,0,9844,9872,5,453,0,0,9845,9872,5,403,0,0,9846,9872,5,404,0,0,9847,9872,5,405,0,0,9848,9872,5,406,0,0,9849,9872,5,407,0,0,9850,9872,5,408,0,0,9851,9872,5,409,0,0,9852,9872,5,410,0,0,9853,9872,5,411,0,0,9854,9872,5,412,0,0,9855,9872,5,413,0,0,9856,9872,5,414,0,0,9857,9872,5,415,0,0,9858,9872,5,416,0,0,9859,9872,5,417,0,0,9860,9872,5,425,0,0,9861,9872,5,426,0,0,9862,9872,5,427,0,0,9863,9872,5,428,0,0,9864,9872,5,476,0,0,9865,9872,5,429,0,0,9866,9872,5,430,0,0,9867,9872,5,431,0,0,9868,9872,5,432,0,0,9869,9872,5,474,0,0,9870,9872,3,1286,643,0,9871,9819,1,0,0,0,9871,9820,1,0,0,0,9871,9821,1,0,0,0,9871,9822,1,0,0,0,9871,9823,1,0,0,0,9871,9824,1,0,0,0,9871,9825,1,0,0,0,9871,9826,1,0,0,0,9871,9827,1,0,0,0,9871,9828,1,0,0,0,9871,9829,1,0,0,0,9871,9830,1,0,0,0,9871,9831,1,0,0,0,9871,9832,1,0,0,0,9871,9833,1,0,0,0,9871,9834,1,0,0,0,9871,9835,1,0,0,0,9871,9836,1,0,0,0,9871,9837,1,0,0,0,9871,9838,1,0,0,0,9871,9839,1,0,0,0,9871,9840,1,0,0,0,9871,9841,1,0,0,0,9871,9842,1,0,0,0,9871,9843,1,0,0,0,9871,9844,1,0,0,0,9871,9845,1,0,0,0,9871,9846,1,0,0,0,9871,9847,1,0,0,0,9871,9848,1,0,0,0,9871,9849,1,0,0,0,9871,9850,1,0,0,0,9871,9851,1,0,0,0,9871,9852,1,0,0,0,9871,9853,1,0,0,0,9871,9854,1,0,0,0,9871,9855,1,0,0,0,9871,9856,1,0,0,0,9871,9857,1,0,0,0,9871,9858,1,0,0,0,9871,9859,1,0,0,0,9871,9860,1,0,0,0,9871,9861,1,0,0,0,9871,9862,1,0,0,0,9871,9863,1,0,0,0,9871,9864,1,0,0,0,9871,9865,1,0,0,0,9871,9866,1,0,0,0,9871,9867,1,0,0,0,9871,9868,1,0,0,0,9871,9869,1,0,0,0,9871,9870,1,0,0,0,9872,1281,1,0,0,0,9873,9874,7,60,0,0,9874,1283,1,0,0,0,9875,9876,7,61,0,0,9876,1285,1,0,0,0,9877,9878,7,62,0,0,9878,1287,1,0,0,0,9879,9880,3,1290,645,0,9880,9881,3,1300,650,0,9881,9882,3,1298,649,0,9882,1289,1,0,0,0,9883,9885,3,1292,646,0,9884,9883,1,0,0,0,9885,9888,1,0,0,0,9886,9884,1,0,0,0,9886,9887,1,0,0,0,9887,1291,1,0,0,0,9888,9886,1,0,0,0,9889,9890,3,1294,647,0,9890,9891,5,272,0,0,9891,9892,5,490,0,0,9892,9910,1,0,0,0,9893,9894,3,1294,647,0,9894,9895,5,491,0,0,9895,9896,3,1296,648,0,9896,9910,1,0,0,0,9897,9898,3,1294,647,0,9898,9899,5,492,0,0,9899,9900,5,493,0,0,9900,9910,1,0,0,0,9901,9902,3,1294,647,0,9902,9903,5,492,0,0,9903,9904,5,494,0,0,9904,9910,1,0,0,0,9905,9906,3,1294,647,0,9906,9907,5,492,0,0,9907,9908,5,495,0,0,9908,9910,1,0,0,0,9909,9889,1,0,0,0,9909,9893,1,0,0,0,9909,9897,1,0,0,0,9909,9901,1,0,0,0,9909,9905,1,0,0,0,9910,1293,1,0,0,0,9911,9912,5,29,0,0,9912,1295,1,0,0,0,9913,9918,3,1252,626,0,9914,9918,3,1284,642,0,9915,9918,3,1490,745,0,9916,9918,3,1278,639,0,9917,9913,1,0,0,0,9917,9914,1,0,0,0,9917,9915,1,0,0,0,9917,9916,1,0,0,0,9918,1297,1,0,0,0,9919,9922,1,0,0,0,9920,9922,5,7,0,0,9921,9919,1,0,0,0,9921,9920,1,0,0,0,9922,1299,1,0,0,0,9923,9924,3,1302,651,0,9924,9925,5,146,0,0,9925,9926,3,1344,672,0,9926,9927,3,1470,735,0,9927,9928,5,454,0,0,9928,9929,3,1484,742,0,9929,1301,1,0,0,0,9930,9935,3,1480,740,0,9931,9933,3,1304,652,0,9932,9934,3,1306,653,0,9933,9932,1,0,0,0,9933,9934,1,0,0,0,9934,9936,1,0,0,0,9935,9931,1,0,0,0,9935,9936,1,0,0,0,9936,1303,1,0,0,0,9937,9938,5,178,0,0,9938,1305,1,0,0,0,9939,9941,3,1310,655,0,9940,9939,1,0,0,0,9941,9942,1,0,0,0,9942,9940,1,0,0,0,9942,9943,1,0,0,0,9943,1307,1,0,0,0,9944,9945,5,18,0,0,9945,9946,3,1488,744,0,9946,9947,5,19,0,0,9947,1309,1,0,0,0,9948,9952,3,1312,656,0,9949,9952,5,178,0,0,9950,9952,3,1308,654,0,9951,9948,1,0,0,0,9951,9949,1,0,0,0,9951,9950,1,0,0,0,9952,1311,1,0,0,0,9953,9969,3,1328,664,0,9954,9955,5,496,0,0,9955,9956,5,62,0,0,9956,9970,3,1326,663,0,9957,9958,3,1330,665,0,9958,9959,3,1332,666,0,9959,9960,3,1334,667,0,9960,9961,3,1336,668,0,9961,9962,3,1338,669,0,9962,9970,1,0,0,0,9963,9964,3,1314,657,0,9964,9965,5,172,0,0,9965,9966,3,1318,659,0,9966,9967,3,1324,662,0,9967,9968,3,1316,658,0,9968,9970,1,0,0,0,9969,9954,1,0,0,0,9969,9957,1,0,0,0,9969,9963,1,0,0,0,9970,9971,1,0,0,0,9971,9972,5,7,0,0,9972,1313,1,0,0,0,9973,9978,1,0,0,0,9974,9975,5,262,0,0,9975,9978,5,317,0,0,9976,9978,5,317,0,0,9977,9973,1,0,0,0,9977,9974,1,0,0,0,9977,9976,1,0,0,0,9978,1315,1,0,0,0,9979,9980,3,858,429,0,9980,1317,1,0,0,0,9981,9987,1,0,0,0,9982,9983,5,2,0,0,9983,9984,3,1320,660,0,9984,9985,5,3,0,0,9985,9987,1,0,0,0,9986,9981,1,0,0,0,9986,9982,1,0,0,0,9987,1319,1,0,0,0,9988,9993,3,1322,661,0,9989,9990,5,6,0,0,9990,9992,3,1322,661,0,9991,9989,1,0,0,0,9992,9995,1,0,0,0,9993,9991,1,0,0,0,9993,9994,1,0,0,0,9994,1321,1,0,0,0,9995,9993,1,0,0,0,9996,9997,3,1328,664,0,9997,9998,3,1332,666,0,9998,1323,1,0,0,0,9999,1e4,7,63,0,0,1e4,1325,1,0,0,0,10001,10004,5,28,0,0,10002,10004,3,1264,632,0,10003,10001,1,0,0,0,10003,10002,1,0,0,0,10004,1327,1,0,0,0,10005,10006,3,1488,744,0,10006,1329,1,0,0,0,10007,10010,1,0,0,0,10008,10010,5,497,0,0,10009,10007,1,0,0,0,10009,10008,1,0,0,0,10010,1331,1,0,0,0,10011,10012,3,996,498,0,10012,1333,1,0,0,0,10013,10017,1,0,0,0,10014,10015,5,43,0,0,10015,10017,3,470,235,0,10016,10013,1,0,0,0,10016,10014,1,0,0,0,10017,1335,1,0,0,0,10018,10022,1,0,0,0,10019,10020,5,77,0,0,10020,10022,5,78,0,0,10021,10018,1,0,0,0,10021,10019,1,0,0,0,10022,1337,1,0,0,0,10023,10028,1,0,0,0,10024,10025,3,1340,670,0,10025,10026,3,1492,746,0,10026,10028,1,0,0,0,10027,10023,1,0,0,0,10027,10024,1,0,0,0,10028,1339,1,0,0,0,10029,10032,3,1342,671,0,10030,10032,5,53,0,0,10031,10029,1,0,0,0,10031,10030,1,0,0,0,10032,1341,1,0,0,0,10033,10034,7,64,0,0,10034,1343,1,0,0,0,10035,10037,3,1346,673,0,10036,10035,1,0,0,0,10037,10040,1,0,0,0,10038,10036,1,0,0,0,10038,10039,1,0,0,0,10039,1345,1,0,0,0,10040,10038,1,0,0,0,10041,10042,3,1300,650,0,10042,10043,5,7,0,0,10043,10069,1,0,0,0,10044,10069,3,1412,706,0,10045,10069,3,1416,708,0,10046,10069,3,1354,677,0,10047,10069,3,1370,685,0,10048,10069,3,1376,688,0,10049,10069,3,1386,693,0,10050,10069,3,1388,694,0,10051,10069,3,1390,695,0,10052,10069,3,1404,702,0,10053,10069,3,1408,704,0,10054,10069,3,1426,713,0,10055,10069,3,1432,716,0,10056,10069,3,1434,717,0,10057,10069,3,1348,674,0,10058,10069,3,1350,675,0,10059,10069,3,1356,678,0,10060,10069,3,1442,721,0,10061,10069,3,1446,723,0,10062,10069,3,1454,727,0,10063,10069,3,1456,728,0,10064,10069,3,1458,729,0,10065,10069,3,1460,730,0,10066,10069,3,1462,731,0,10067,10069,3,1466,733,0,10068,10041,1,0,0,0,10068,10044,1,0,0,0,10068,10045,1,0,0,0,10068,10046,1,0,0,0,10068,10047,1,0,0,0,10068,10048,1,0,0,0,10068,10049,1,0,0,0,10068,10050,1,0,0,0,10068,10051,1,0,0,0,10068,10052,1,0,0,0,10068,10053,1,0,0,0,10068,10054,1,0,0,0,10068,10055,1,0,0,0,10068,10056,1,0,0,0,10068,10057,1,0,0,0,10068,10058,1,0,0,0,10068,10059,1,0,0,0,10068,10060,1,0,0,0,10068,10061,1,0,0,0,10068,10062,1,0,0,0,10068,10063,1,0,0,0,10068,10064,1,0,0,0,10068,10065,1,0,0,0,10068,10066,1,0,0,0,10068,10067,1,0,0,0,10069,1347,1,0,0,0,10070,10071,5,498,0,0,10071,10072,3,1496,748,0,10072,10073,5,7,0,0,10073,1349,1,0,0,0,10074,10075,5,433,0,0,10075,10076,3,1488,744,0,10076,10077,5,2,0,0,10077,10078,3,1352,676,0,10078,10079,5,3,0,0,10079,10080,5,7,0,0,10080,10089,1,0,0,0,10081,10082,5,57,0,0,10082,10083,3,1488,744,0,10083,10084,5,2,0,0,10084,10085,3,1352,676,0,10085,10086,5,3,0,0,10086,10087,5,7,0,0,10087,10089,1,0,0,0,10088,10074,1,0,0,0,10088,10081,1,0,0,0,10089,1351,1,0,0,0,10090,10093,1,0,0,0,10091,10093,3,1156,578,0,10092,10090,1,0,0,0,10092,10091,1,0,0,0,10093,1353,1,0,0,0,10094,10095,3,1368,684,0,10095,10096,3,1342,671,0,10096,10097,3,1492,746,0,10097,10098,5,7,0,0,10098,1355,1,0,0,0,10099,10100,5,499,0,0,10100,10101,3,1358,679,0,10101,10102,5,500,0,0,10102,10103,3,1360,680,0,10103,10104,5,7,0,0,10104,1357,1,0,0,0,10105,10109,1,0,0,0,10106,10109,5,434,0,0,10107,10109,5,501,0,0,10108,10105,1,0,0,0,10108,10106,1,0,0,0,10108,10107,1,0,0,0,10109,1359,1,0,0,0,10110,10115,3,1362,681,0,10111,10112,5,6,0,0,10112,10114,3,1362,681,0,10113,10111,1,0,0,0,10114,10117,1,0,0,0,10115,10113,1,0,0,0,10115,10116,1,0,0,0,10116,1361,1,0,0,0,10117,10115,1,0,0,0,10118,10119,3,1366,683,0,10119,10120,3,1342,671,0,10120,10121,3,1364,682,0,10121,1363,1,0,0,0,10122,10123,3,1264,632,0,10123,1365,1,0,0,0,10124,10125,3,1368,684,0,10125,1367,1,0,0,0,10126,10129,3,470,235,0,10127,10129,5,28,0,0,10128,10126,1,0,0,0,10128,10127,1,0,0,0,10129,10136,1,0,0,0,10130,10131,5,4,0,0,10131,10132,3,1498,749,0,10132,10133,5,5,0,0,10133,10135,1,0,0,0,10134,10130,1,0,0,0,10135,10138,1,0,0,0,10136,10134,1,0,0,0,10136,10137,1,0,0,0,10137,1369,1,0,0,0,10138,10136,1,0,0,0,10139,10140,5,220,0,0,10140,10141,3,1494,747,0,10141,10142,5,93,0,0,10142,10143,3,1344,672,0,10143,10144,3,1372,686,0,10144,10145,3,1374,687,0,10145,10146,5,454,0,0,10146,10147,5,220,0,0,10147,10148,5,7,0,0,10148,1371,1,0,0,0,10149,10150,5,502,0,0,10150,10151,3,1038,519,0,10151,10152,5,93,0,0,10152,10153,3,1344,672,0,10153,10155,1,0,0,0,10154,10149,1,0,0,0,10155,10158,1,0,0,0,10156,10154,1,0,0,0,10156,10157,1,0,0,0,10157,1373,1,0,0,0,10158,10156,1,0,0,0,10159,10163,1,0,0,0,10160,10161,5,58,0,0,10161,10163,3,1344,672,0,10162,10159,1,0,0,0,10162,10160,1,0,0,0,10163,1375,1,0,0,0,10164,10165,5,40,0,0,10165,10166,3,1378,689,0,10166,10167,3,1380,690,0,10167,10168,3,1384,692,0,10168,10169,5,454,0,0,10169,10170,5,40,0,0,10170,10171,5,7,0,0,10171,1377,1,0,0,0,10172,10175,1,0,0,0,10173,10175,3,1492,746,0,10174,10172,1,0,0,0,10174,10173,1,0,0,0,10175,1379,1,0,0,0,10176,10178,3,1382,691,0,10177,10176,1,0,0,0,10178,10179,1,0,0,0,10179,10177,1,0,0,0,10179,10180,1,0,0,0,10180,1381,1,0,0,0,10181,10182,5,102,0,0,10182,10183,3,1156,578,0,10183,10184,5,93,0,0,10184,10185,3,1344,672,0,10185,1383,1,0,0,0,10186,10190,1,0,0,0,10187,10188,5,58,0,0,10188,10190,3,1344,672,0,10189,10186,1,0,0,0,10189,10187,1,0,0,0,10190,1385,1,0,0,0,10191,10192,3,1482,741,0,10192,10193,3,1430,715,0,10193,1387,1,0,0,0,10194,10195,3,1482,741,0,10195,10196,5,503,0,0,10196,10197,3,1500,750,0,10197,10198,3,1430,715,0,10198,1389,1,0,0,0,10199,10200,3,1482,741,0,10200,10201,5,62,0,0,10201,10202,3,1392,696,0,10202,10203,3,1430,715,0,10203,1391,1,0,0,0,10204,10205,3,1402,701,0,10205,10221,5,68,0,0,10206,10207,3,854,427,0,10207,10208,3,1396,698,0,10208,10222,1,0,0,0,10209,10222,3,858,429,0,10210,10222,3,782,391,0,10211,10212,5,202,0,0,10212,10213,3,1038,519,0,10213,10214,3,1394,697,0,10214,10222,1,0,0,0,10215,10216,3,1398,699,0,10216,10217,3,1038,519,0,10217,10218,5,24,0,0,10218,10219,3,1038,519,0,10219,10220,3,1400,700,0,10220,10222,1,0,0,0,10221,10206,1,0,0,0,10221,10209,1,0,0,0,10221,10210,1,0,0,0,10221,10211,1,0,0,0,10221,10215,1,0,0,0,10222,1393,1,0,0,0,10223,10227,1,0,0,0,10224,10225,5,100,0,0,10225,10227,3,1156,578,0,10226,10223,1,0,0,0,10226,10224,1,0,0,0,10227,1395,1,0,0,0,10228,10241,1,0,0,0,10229,10230,5,2,0,0,10230,10235,3,1038,519,0,10231,10232,5,6,0,0,10232,10234,3,1038,519,0,10233,10231,1,0,0,0,10234,10237,1,0,0,0,10235,10233,1,0,0,0,10235,10236,1,0,0,0,10236,10238,1,0,0,0,10237,10235,1,0,0,0,10238,10239,5,3,0,0,10239,10241,1,0,0,0,10240,10228,1,0,0,0,10240,10229,1,0,0,0,10241,1397,1,0,0,0,10242,10245,1,0,0,0,10243,10245,5,504,0,0,10244,10242,1,0,0,0,10244,10243,1,0,0,0,10245,1399,1,0,0,0,10246,10250,1,0,0,0,10247,10248,5,147,0,0,10248,10250,3,1038,519,0,10249,10246,1,0,0,0,10249,10247,1,0,0,0,10250,1401,1,0,0,0,10251,10252,3,468,234,0,10252,1403,1,0,0,0,10253,10254,3,1482,741,0,10254,10255,5,505,0,0,10255,10256,3,1402,701,0,10256,10257,3,1406,703,0,10257,10258,5,68,0,0,10258,10259,5,35,0,0,10259,10260,3,1038,519,0,10260,10261,3,1430,715,0,10261,1405,1,0,0,0,10262,10266,1,0,0,0,10263,10264,5,506,0,0,10264,10266,3,1250,625,0,10265,10262,1,0,0,0,10265,10263,1,0,0,0,10266,1407,1,0,0,0,10267,10268,3,1410,705,0,10268,10269,3,1484,742,0,10269,10270,3,1486,743,0,10270,10271,5,7,0,0,10271,1409,1,0,0,0,10272,10273,7,65,0,0,10273,1411,1,0,0,0,10274,10286,5,508,0,0,10275,10276,5,261,0,0,10276,10287,3,1492,746,0,10277,10283,5,509,0,0,10278,10279,5,202,0,0,10279,10280,3,1038,519,0,10280,10281,3,1394,697,0,10281,10284,1,0,0,0,10282,10284,3,858,429,0,10283,10278,1,0,0,0,10283,10282,1,0,0,0,10284,10287,1,0,0,0,10285,10287,3,1414,707,0,10286,10275,1,0,0,0,10286,10277,1,0,0,0,10286,10285,1,0,0,0,10287,10288,1,0,0,0,10288,10289,5,7,0,0,10289,1413,1,0,0,0,10290,10293,1,0,0,0,10291,10293,3,1492,746,0,10292,10290,1,0,0,0,10292,10291,1,0,0,0,10293,1415,1,0,0,0,10294,10295,5,510,0,0,10295,10296,3,1418,709,0,10296,10297,3,1252,626,0,10297,10298,3,1420,710,0,10298,10299,3,1422,711,0,10299,10300,5,7,0,0,10300,10321,1,0,0,0,10301,10302,5,510,0,0,10302,10303,3,1418,709,0,10303,10304,3,1274,637,0,10304,10305,3,1422,711,0,10305,10306,5,7,0,0,10306,10321,1,0,0,0,10307,10308,5,510,0,0,10308,10309,3,1418,709,0,10309,10310,5,511,0,0,10310,10311,3,1252,626,0,10311,10312,3,1422,711,0,10312,10313,5,7,0,0,10313,10321,1,0,0,0,10314,10315,5,510,0,0,10315,10316,3,1418,709,0,10316,10317,3,1422,711,0,10317,10318,5,7,0,0,10318,10321,1,0,0,0,10319,10321,5,510,0,0,10320,10294,1,0,0,0,10320,10301,1,0,0,0,10320,10307,1,0,0,0,10320,10314,1,0,0,0,10320,10319,1,0,0,0,10321,1417,1,0,0,0,10322,10331,1,0,0,0,10323,10331,1,0,0,0,10324,10331,5,512,0,0,10325,10331,5,513,0,0,10326,10331,5,514,0,0,10327,10331,5,515,0,0,10328,10331,5,516,0,0,10329,10331,5,517,0,0,10330,10322,1,0,0,0,10330,10323,1,0,0,0,10330,10324,1,0,0,0,10330,10325,1,0,0,0,10330,10326,1,0,0,0,10330,10327,1,0,0,0,10330,10328,1,0,0,0,10330,10329,1,0,0,0,10331,1419,1,0,0,0,10332,10340,1,0,0,0,10333,10334,5,6,0,0,10334,10336,3,1038,519,0,10335,10333,1,0,0,0,10336,10337,1,0,0,0,10337,10335,1,0,0,0,10337,10338,1,0,0,0,10338,10340,1,0,0,0,10339,10332,1,0,0,0,10339,10335,1,0,0,0,10340,1421,1,0,0,0,10341,10352,1,0,0,0,10342,10343,5,100,0,0,10343,10348,3,1424,712,0,10344,10345,5,6,0,0,10345,10347,3,1424,712,0,10346,10344,1,0,0,0,10347,10350,1,0,0,0,10348,10346,1,0,0,0,10348,10349,1,0,0,0,10349,10352,1,0,0,0,10350,10348,1,0,0,0,10351,10341,1,0,0,0,10351,10342,1,0,0,0,10352,1423,1,0,0,0,10353,10354,3,1274,637,0,10354,10355,5,10,0,0,10355,10356,3,1038,519,0,10356,1425,1,0,0,0,10357,10358,5,518,0,0,10358,10359,3,1492,746,0,10359,10360,3,1428,714,0,10360,10361,5,7,0,0,10361,1427,1,0,0,0,10362,10366,1,0,0,0,10363,10364,5,6,0,0,10364,10366,3,1492,746,0,10365,10362,1,0,0,0,10365,10363,1,0,0,0,10366,1429,1,0,0,0,10367,10368,5,519,0,0,10368,10369,3,1344,672,0,10369,10370,5,454,0,0,10370,10371,5,519,0,0,10371,10372,3,1484,742,0,10372,10373,5,7,0,0,10373,1431,1,0,0,0,10374,10375,3,1502,751,0,10375,10376,5,7,0,0,10376,1433,1,0,0,0,10377,10378,5,202,0,0,10378,10386,3,1038,519,0,10379,10380,3,1440,720,0,10380,10381,3,1436,718,0,10381,10387,1,0,0,0,10382,10383,3,1436,718,0,10383,10384,3,1440,720,0,10384,10387,1,0,0,0,10385,10387,1,0,0,0,10386,10379,1,0,0,0,10386,10382,1,0,0,0,10386,10385,1,0,0,0,10387,10388,1,0,0,0,10388,10389,5,7,0,0,10389,1435,1,0,0,0,10390,10394,1,0,0,0,10391,10392,5,100,0,0,10392,10394,3,1438,719,0,10393,10390,1,0,0,0,10393,10391,1,0,0,0,10394,1437,1,0,0,0,10395,10400,3,1038,519,0,10396,10397,5,6,0,0,10397,10399,3,1038,519,0,10398,10396,1,0,0,0,10399,10402,1,0,0,0,10400,10398,1,0,0,0,10400,10401,1,0,0,0,10401,1439,1,0,0,0,10402,10400,1,0,0,0,10403,10410,1,0,0,0,10404,10406,5,71,0,0,10405,10407,5,339,0,0,10406,10405,1,0,0,0,10406,10407,1,0,0,0,10407,10408,1,0,0,0,10408,10410,3,1448,724,0,10409,10403,1,0,0,0,10409,10404,1,0,0,0,10410,1441,1,0,0,0,10411,10440,5,520,0,0,10412,10414,3,1468,734,0,10413,10415,5,262,0,0,10414,10413,1,0,0,0,10414,10415,1,0,0,0,10415,10416,1,0,0,0,10416,10417,5,317,0,0,10417,10424,5,62,0,0,10418,10425,3,858,429,0,10419,10420,5,202,0,0,10420,10421,3,1492,746,0,10421,10422,5,100,0,0,10422,10423,3,1156,578,0,10423,10425,1,0,0,0,10424,10418,1,0,0,0,10424,10419,1,0,0,0,10425,10441,1,0,0,0,10426,10438,3,1264,632,0,10427,10428,5,2,0,0,10428,10433,3,1444,722,0,10429,10430,5,6,0,0,10430,10432,3,1444,722,0,10431,10429,1,0,0,0,10432,10435,1,0,0,0,10433,10431,1,0,0,0,10433,10434,1,0,0,0,10434,10436,1,0,0,0,10435,10433,1,0,0,0,10436,10437,5,3,0,0,10437,10439,1,0,0,0,10438,10427,1,0,0,0,10438,10439,1,0,0,0,10439,10441,1,0,0,0,10440,10412,1,0,0,0,10440,10426,1,0,0,0,10441,10442,1,0,0,0,10442,10443,5,7,0,0,10443,1443,1,0,0,0,10444,10445,3,1264,632,0,10445,10446,5,20,0,0,10446,10447,3,1038,519,0,10447,10450,1,0,0,0,10448,10450,3,1038,519,0,10449,10444,1,0,0,0,10449,10448,1,0,0,0,10450,1445,1,0,0,0,10451,10452,5,61,0,0,10452,10453,3,1452,726,0,10453,10454,3,1450,725,0,10454,10455,3,1468,734,0,10455,10456,5,71,0,0,10456,10457,3,1448,724,0,10457,10458,5,7,0,0,10458,1447,1,0,0,0,10459,10460,3,1156,578,0,10460,1449,1,0,0,0,10461,10465,1,0,0,0,10462,10465,5,64,0,0,10463,10465,5,68,0,0,10464,10461,1,0,0,0,10464,10462,1,0,0,0,10464,10463,1,0,0,0,10465,1451,1,0,0,0,10466,10484,1,0,0,0,10467,10484,1,0,0,0,10468,10484,5,261,0,0,10469,10484,5,286,0,0,10470,10484,5,207,0,0,10471,10484,5,240,0,0,10472,10473,5,130,0,0,10473,10484,3,1038,519,0,10474,10475,5,300,0,0,10475,10484,3,1038,519,0,10476,10484,3,1038,519,0,10477,10484,5,30,0,0,10478,10481,7,66,0,0,10479,10482,3,1038,519,0,10480,10482,5,30,0,0,10481,10479,1,0,0,0,10481,10480,1,0,0,0,10481,10482,1,0,0,0,10482,10484,1,0,0,0,10483,10466,1,0,0,0,10483,10467,1,0,0,0,10483,10468,1,0,0,0,10483,10469,1,0,0,0,10483,10470,1,0,0,0,10483,10471,1,0,0,0,10483,10472,1,0,0,0,10483,10474,1,0,0,0,10483,10476,1,0,0,0,10483,10477,1,0,0,0,10483,10478,1,0,0,0,10484,1453,1,0,0,0,10485,10486,5,258,0,0,10486,10487,3,1452,726,0,10487,10488,3,1468,734,0,10488,10489,5,7,0,0,10489,1455,1,0,0,0,10490,10491,5,157,0,0,10491,10492,3,1468,734,0,10492,10493,5,7,0,0,10493,1457,1,0,0,0,10494,10495,5,78,0,0,10495,10496,5,7,0,0,10496,1459,1,0,0,0,10497,10498,5,161,0,0,10498,10499,3,1464,732,0,10499,10500,5,7,0,0,10500,1461,1,0,0,0,10501,10502,5,312,0,0,10502,10503,3,1464,732,0,10503,10504,5,7,0,0,10504,1463,1,0,0,0,10505,10507,5,33,0,0,10506,10508,5,262,0,0,10507,10506,1,0,0,0,10507,10508,1,0,0,0,10508,10509,1,0,0,0,10509,10512,5,153,0,0,10510,10512,1,0,0,0,10511,10505,1,0,0,0,10511,10510,1,0,0,0,10512,1465,1,0,0,0,10513,10514,5,326,0,0,10514,10515,3,470,235,0,10515,10516,5,94,0,0,10516,10517,5,53,0,0,10517,10518,5,7,0,0,10518,10526,1,0,0,0,10519,10522,5,306,0,0,10520,10523,3,470,235,0,10521,10523,5,30,0,0,10522,10520,1,0,0,0,10522,10521,1,0,0,0,10523,10524,1,0,0,0,10524,10526,5,7,0,0,10525,10513,1,0,0,0,10525,10519,1,0,0,0,10526,1467,1,0,0,0,10527,10530,3,1264,632,0,10528,10530,5,28,0,0,10529,10527,1,0,0,0,10529,10528,1,0,0,0,10530,1469,1,0,0,0,10531,10535,1,0,0,0,10532,10533,5,517,0,0,10533,10535,3,1472,736,0,10534,10531,1,0,0,0,10534,10532,1,0,0,0,10535,1471,1,0,0,0,10536,10538,3,1474,737,0,10537,10536,1,0,0,0,10538,10539,1,0,0,0,10539,10537,1,0,0,0,10539,10540,1,0,0,0,10540,1473,1,0,0,0,10541,10542,5,102,0,0,10542,10543,3,1476,738,0,10543,10544,5,93,0,0,10544,10545,3,1344,672,0,10545,1475,1,0,0,0,10546,10551,3,1478,739,0,10547,10548,5,82,0,0,10548,10550,3,1478,739,0,10549,10547,1,0,0,0,10550,10553,1,0,0,0,10551,10549,1,0,0,0,10551,10552,1,0,0,0,10552,1477,1,0,0,0,10553,10551,1,0,0,0,10554,10558,3,1488,744,0,10555,10556,5,511,0,0,10556,10558,3,1252,626,0,10557,10554,1,0,0,0,10557,10555,1,0,0,0,10558,1479,1,0,0,0,10559,10562,1,0,0,0,10560,10562,3,1308,654,0,10561,10559,1,0,0,0,10561,10560,1,0,0,0,10562,1481,1,0,0,0,10563,10566,1,0,0,0,10564,10566,3,1308,654,0,10565,10563,1,0,0,0,10565,10564,1,0,0,0,10566,1483,1,0,0,0,10567,10570,1,0,0,0,10568,10570,3,1488,744,0,10569,10567,1,0,0,0,10569,10568,1,0,0,0,10570,1485,1,0,0,0,10571,10572,5,102,0,0,10572,10575,3,1496,748,0,10573,10575,1,0,0,0,10574,10571,1,0,0,0,10574,10573,1,0,0,0,10575,1487,1,0,0,0,10576,10579,3,1264,632,0,10577,10579,3,1490,745,0,10578,10576,1,0,0,0,10578,10577,1,0,0,0,10579,1489,1,0,0,0,10580,10581,7,67,0,0,10581,1491,1,0,0,0,10582,10584,3,1202,601,0,10583,10585,3,878,439,0,10584,10583,1,0,0,0,10584,10585,1,0,0,0,10585,10586,1,0,0,0,10586,10587,3,936,468,0,10587,10588,3,974,487,0,10588,10589,3,918,459,0,10589,10590,3,924,462,0,10590,10591,3,1116,558,0,10591,1493,1,0,0,0,10592,10593,3,1492,746,0,10593,1495,1,0,0,0,10594,10595,3,1492,746,0,10595,1497,1,0,0,0,10596,10597,3,1038,519,0,10597,1499,1,0,0,0,10598,10599,3,1038,519,0,10599,1501,1,0,0,0,10600,10601,3,6,3,0,10601,10602,3,1504,752,0,10602,1503,1,0,0,0,10603,10605,5,71,0,0,10604,10606,5,339,0,0,10605,10604,1,0,0,0,10605,10606,1,0,0,0,10606,10607,1,0,0,0,10607,10610,3,1448,724,0,10608,10610,1,0,0,0,10609,10603,1,0,0,0,10609,10608,1,0,0,0,10610,1505,1,0,0,0,10611,10612,7,68,0,0,10612,1507,1,0,0,0,792,1509,1517,1523,1647,1651,1658,1663,1669,1675,1691,1699,1704,1722,1727,1737,1748,1755,1761,1766,1775,1779,1791,1823,1830,1838,1843,1850,1856,1873,1878,1882,1895,1899,1904,1909,1921,1930,1943,1948,1959,1970,1975,1986,1997,2007,2022,2034,2039,2046,2057,2208,2217,2237,2304,2311,2316,2321,2326,2334,2343,2350,2360,2362,2367,2373,2379,2381,2409,2419,2432,2444,2458,2463,2467,2473,2487,2493,2500,2505,2512,2549,2552,2557,2564,2579,2585,2593,2626,2636,2640,2647,2654,2662,2668,2672,2682,2689,2700,2720,2734,2742,2747,2754,2764,2774,2794,2809,2834,2841,2848,2859,2864,2871,2882,2890,2901,2917,2925,2929,2943,2960,2965,2972,2981,2984,2989,2996,3007,3020,3033,3051,3054,3058,3065,3082,3093,3097,3103,3113,3118,3127,3149,3151,3159,3166,3172,3181,3183,3187,3192,3198,3202,3215,3221,3230,3237,3247,3256,3401,3409,3421,3426,3434,3445,3453,3460,3473,3483,3497,3513,3521,3526,3531,3539,3541,3599,3616,3624,3647,3651,3671,3708,3717,3722,3727,3732,3785,3791,3798,3808,3813,3818,3833,3837,3847,3853,3859,3866,3871,3876,3890,3918,3925,3939,3954,4006,4073,4081,4089,4097,4105,4119,4159,4165,4172,4188,4196,4203,4218,4223,4232,4259,4266,4281,4301,4321,4340,4349,4358,4367,4376,4385,4396,4441,4464,4469,4484,4493,4498,4504,4511,4525,4624,4711,4715,4853,4858,4862,4868,4936,4942,4971,4988,4995,5007,5047,5054,5060,5066,5092,5098,5104,5112,5124,5153,5159,5163,5166,5181,5185,5202,5207,5214,5228,5241,5250,5256,5261,5265,5270,5277,5285,5295,5297,5304,5311,5319,5325,5332,5334,5341,5347,5351,5357,5362,5366,5371,5377,5383,5389,5395,5408,5417,5428,5434,5473,5483,5490,5501,5507,5517,5526,5529,5567,5581,5595,5619,5626,5636,5648,5653,5689,5696,5711,5758,5774,5778,5787,5791,5799,5803,5811,5815,5823,5827,5830,5839,5856,6028,6073,6164,6295,6299,6304,6310,6321,6332,6345,6357,6368,6375,6523,6589,6604,6615,6622,6815,6825,6833,6862,6878,6920,6934,6956,6963,6971,6975,6982,6991,7e3,7009,7014,7055,7060,7072,7076,7081,7086,7090,7095,7111,7119,7124,7138,7141,7145,7150,7160,7171,7182,7192,7197,7235,7243,7247,7328,7332,7356,7361,7365,7368,7372,7382,7394,7401,7411,7416,7420,7427,7437,7441,7460,7466,7477,7484,7489,7502,7508,7537,7544,7556,7559,7571,7586,7592,7601,7617,7620,7631,7636,7640,7644,7649,7652,7658,7662,7664,7667,7674,7677,7684,7692,7695,7704,7709,7721,7734,7745,7748,7752,7758,7761,7776,7789,7796,7808,7810,7825,7829,7839,7848,7850,7860,7862,7864,7873,7883,7888,7893,7898,7901,7915,7919,7926,7941,7945,7949,7952,7965,7969,7974,7982,7988,7999,8006,8012,8016,8018,8022,8028,8037,8043,8045,8047,8054,8058,8067,8071,8081,8088,8110,8115,8120,8125,8134,8138,8141,8146,8159,8165,8173,8176,8183,8188,8209,8218,8223,8229,8234,8241,8246,8252,8254,8258,8265,8269,8272,8279,8284,8287,8294,8298,8307,8313,8321,8323,8330,8335,8338,8361,8367,8378,8383,8388,8395,8398,8402,8409,8426,8442,8445,8452,8456,8461,8471,8478,8487,8490,8495,8500,8508,8510,8516,8529,8531,8537,8543,8546,8555,8573,8580,8584,8588,8604,8611,8619,8623,8630,8643,8659,8665,8671,8678,8683,8689,8696,8704,8712,8717,8721,8727,8731,8735,8738,8744,8749,8765,8768,8770,8782,8784,8788,8794,8799,8807,8811,8820,8828,8834,8837,8846,8851,8858,8868,8894,8905,8907,8909,8917,8940,8948,8958,8972,8982,8986,9e3,9007,9014,9021,9046,9075,9114,9116,9144,9165,9172,9185,9197,9203,9212,9229,9241,9250,9255,9262,9272,9275,9286,9292,9307,9315,9324,9333,9336,9341,9350,9355,9369,9379,9387,9401,9408,9416,9424,9431,9437,9446,9454,9464,9475,9482,9511,9520,9527,9538,9548,9552,9556,9561,9566,9570,9572,9575,9580,9585,9590,9597,9606,9608,9615,9625,9635,9645,9659,9664,9671,9687,9702,9716,9721,9740,9745,9750,9757,9762,9769,9778,9784,9790,9796,9804,9813,9871,9886,9909,9917,9921,9933,9935,9942,9951,9969,9977,9986,9993,10003,10009,10016,10021,10027,10031,10038,10068,10088,10092,10108,10115,10128,10136,10156,10162,10174,10179,10189,10221,10226,10235,10240,10244,10249,10265,10283,10286,10292,10320,10330,10337,10339,10348,10351,10365,10386,10393,10400,10406,10409,10414,10424,10433,10438,10440,10449,10464,10481,10483,10507,10511,10522,10525,10529,10534,10539,10551,10557,10561,10565,10569,10574,10578,10584,10605,10609]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},Ms=class extends p{constructor(t,e){super(t,e)}EOF(){return this.getToken(Ps.EOF,0)}statements(){return this.getRuleContext(0,Us)}get ruleIndex(){return Ps.RULE_root}accept(t){return t.visitRoot?t.visitRoot(this):t.visitChildren(this)}},ds=class extends p{constructor(t,e){super(t,e)}plsqlFunction(){return this.getRuleContext(0,pS)}get ruleIndex(){return Ps.RULE_plsqlRoot}accept(t){return t.visitPlsqlRoot?t.visitPlsqlRoot(this):t.visitChildren(this)}},Us=class t extends p{constructor(t,e){super(t,e)}statement(){return this.getRuleContext(0,ms)}SEMI(){return this.getToken(Ps.SEMI,0)}statements(){return this.getRuleContext(0,t)}get ruleIndex(){return Ps.RULE_statements}accept(t){return t.visitStatements?t.visitStatements(this):t.visitChildren(this)}},ms=class extends p{constructor(t,e){super(t,e)}alterEventTriggerStatement(){return this.getRuleContext(0,Rc)}alterCollationStatement(){return this.getRuleContext(0,OE)}alterDatabaseStatement(){return this.getRuleContext(0,AE)}alterDatabaseSetStatement(){return this.getRuleContext(0,SE)}alterDefaultPrivilegesStatement(){return this.getRuleContext(0,In)}alterDomainStatement(){return this.getRuleContext(0,NE)}alterEnumStatement(){return this.getRuleContext(0,_c)}alterExtensionStatement(){return this.getRuleContext(0,cr)}alterExtensionContentsStatement(){return this.getRuleContext(0,hr)}alterForeignDataWrapperStatement(){return this.getRuleContext(0,Rr)}alterForeignServerStatement(){return this.getRuleContext(0,Mr)}alterFunctionStatement(){return this.getRuleContext(0,eh)}alterObjectDependsStatement(){return this.getRuleContext(0,mh)}alterObjectSchemaStatement(){return this.getRuleContext(0,Dh)}alterOwnerStatement(){return this.getRuleContext(0,Gh)}alterOperatorStatement(){return this.getRuleContext(0,ph)}alterTypeStatement(){return this.getRuleContext(0,Hh)}alterPolicyStatement(){return this.getRuleContext(0,Gr)}alterSequenceStatement(){return this.getRuleContext(0,Vi)}alterSystemStatement(){return this.getRuleContext(0,IE)}alterTableStatement(){return this.getRuleContext(0,Sa)}alterTablespaceStatement(){return this.getRuleContext(0,Ph)}alterCompositeTypeStatement(){return this.getRuleContext(0,Ha)}alterPublicationStatement(){return this.getRuleContext(0,yh)}alterRoleSetStatement(){return this.getRuleContext(0,ys)}alterRoleStatement(){return this.getRuleContext(0,vs)}alterSubscriptionStatement(){return this.getRuleContext(0,bh)}alterStatsStatement(){return this.getRuleContext(0,vi)}altertsConfigurationStatement(){return this.getRuleContext(0,PE)}altertsDictionaryStatement(){return this.getRuleContext(0,_E)}alterUserMappingStatement(){return this.getRuleContext(0,kr)}analyzeStatement(){return this.getRuleContext(0,DE)}callStatement(){return this.getRuleContext(0,ps)}checkpointStatement(){return this.getRuleContext(0,Ra)}closePortalStatement(){return this.getRuleContext(0,va)}clusterStatement(){return this.getRuleContext(0,dE)}commentStatement(){return this.getRuleContext(0,Jc)}setConstraintsStatement(){return this.getRuleContext(0,Ea)}copyStatement(){return this.getRuleContext(0,Ba)}createAccessMethodStatement(){return this.getRuleContext(0,wr)}createAsStatement(){return this.getRuleContext(0,Bi)}createAssertionStatement(){return this.getRuleContext(0,Sc)}createCastStatement(){return this.getRuleContext(0,Rh)}createConversionStatement(){return this.getRuleContext(0,ME)}createDomainStatement(){return this.getRuleContext(0,uE)}createExtensionStatement(){return this.getRuleContext(0,ir)}createForeignDataWrapperStatement(){return this.getRuleContext(0,Er)}createForeignServerStatement(){return this.getRuleContext(0,Cr)}createForeignTableStatement(){return this.getRuleContext(0,dr)}createFunctionStatement(){return this.getRuleContext(0,xn)}createMaterializedViewStatement(){return this.getRuleContext(0,Yi)}createOperatorClassStatement(){return this.getRuleContext(0,Mc)}createOperatorFamilyStatement(){return this.getRuleContext(0,pc)}createPublicationStatement(){return this.getRuleContext(0,Fh)}alterOperatorFamilyStatement(){return this.getRuleContext(0,gc)}createPolicyStatement(){return this.getRuleContext(0,Hr)}createProcedureLangStatement(){return this.getRuleContext(0,qi)}createSchemaStatement(){return this.getRuleContext(0,ws)}createSequenceStatement(){return this.getRuleContext(0,Wi)}createStatement(){return this.getRuleContext(0,Ka)}createSubscriptionStatement(){return this.getRuleContext(0,fh)}createStatsStatement(){return this.getRuleContext(0,Fi)}createTablespaceStatement(){return this.getRuleContext(0,er)}createTransformStatement(){return this.getRuleContext(0,Oh)}createTriggerStatement(){return this.getRuleContext(0,Wr)}createEventTriggerStatement(){return this.getRuleContext(0,hc)}createRoleStatement(){return this.getRuleContext(0,Fs)}createUserMappingStatement(){return this.getRuleContext(0,pr)}createDatabaseStatement(){return this.getRuleContext(0,EE)}deallocateStatement(){return this.getRuleContext(0,JE)}declareCursorStatement(){return this.getRuleContext(0,NT)}defineStatement(){return this.getRuleContext(0,lc)}deleteStatement(){return this.getRuleContext(0,hT)}discardStatement(){return this.getRuleContext(0,Aa)}doStatement(){return this.getRuleContext(0,Eh)}dropCastStatement(){return this.getRuleContext(0,Sh)}dropOperatorClassStatement(){return this.getRuleContext(0,Hc)}dropOperatorFamilyStatement(){return this.getRuleContext(0,Gc)}dropOwnedStatement(){return this.getRuleContext(0,Fc)}dropStatement(){return this.getRuleContext(0,Bc)}dropSubscriptionStatement(){return this.getRuleContext(0,Wh)}dropTablespaceStatement(){return this.getRuleContext(0,ar)}dropTransformStatement(){return this.getRuleContext(0,uh)}dropRoleStatement(){return this.getRuleContext(0,fs)}dropUserMappingStatement(){return this.getRuleContext(0,xr)}dropDatabaseStatement(){return this.getRuleContext(0,lE)}executeStatement(){return this.getRuleContext(0,KE)}explainStatement(){return this.getRuleContext(0,yE)}fetchStatement(){return this.getRuleContext(0,$c)}grantStatement(){return this.getRuleContext(0,an)}grantPrivilegeStatement(){return this.getRuleContext(0,An)}importForeignSchemaStatement(){return this.getRuleContext(0,Ur)}indexStatement(){return this.getRuleContext(0,Cn)}insertStatement(){return this.getRuleContext(0,ZE)}mergeStatement(){return this.getRuleContext(0,iT)}listenStatement(){return this.getRuleContext(0,$h)}refreshMaterializedViewStatement(){return this.getRuleContext(0,bi)}loadStatement(){return this.getRuleContext(0,hE)}lockStatement(){return this.getRuleContext(0,TT)}notifyStatement(){return this.getRuleContext(0,jh)}prepareStatement(){return this.getRuleContext(0,WE)}reassignOwnedStatement(){return this.getRuleContext(0,vc)}reindexStatement(){return this.getRuleContext(0,Nh)}removeAggregateStatement(){return this.getRuleContext(0,ah)}removeFunctionStatement(){return this.getRuleContext(0,sh)}removeOperatorStatement(){return this.getRuleContext(0,ih)}renameStatement(){return this.getRuleContext(0,Mh)}revokeStatement(){return this.getRuleContext(0,rn)}revokePrivilegeStatement(){return this.getRuleContext(0,Sn)}ruleStatement(){return this.getRuleContext(0,Vh)}securityLabelStatement(){return this.getRuleContext(0,qc)}selectStatement(){return this.getRuleContext(0,_T)}transactionStatement(){return this.getRuleContext(0,eE)}truncateStatement(){return this.getRuleContext(0,Kc)}unlistenStatement(){return this.getRuleContext(0,tE)}updateStatement(){return this.getRuleContext(0,lT)}vacuumStatement(){return this.getRuleContext(0,mE)}variableResetStatement(){return this.getRuleContext(0,aa)}variableSetStatement(){return this.getRuleContext(0,Xs)}variableShowStatement(){return this.getRuleContext(0,ha)}viewStatement(){return this.getRuleContext(0,cE)}plsqlConsoleCommand(){return this.getRuleContext(0,Ds)}get ruleIndex(){return Ps.RULE_statement}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},Ds=class extends p{constructor(t,e){super(t,e)}MetaCommand(){return this.getToken(Ps.MetaCommand,0)}EndMetaCommand(){return this.getToken(Ps.EndMetaCommand,0)}get ruleIndex(){return Ps.RULE_plsqlConsoleCommand}accept(t){return t.visitPlsqlConsoleCommand?t.visitPlsqlConsoleCommand(this):t.visitChildren(this)}},ps=class extends p{constructor(t,e){super(t,e)}CALL(){return this.getToken(Ps.CALL,0)}functionApplication(){return this.getRuleContext(0,kR)}get ruleIndex(){return Ps.RULE_callStatement}accept(t){return t.visitCallStatement?t.visitCallStatement(this):t.visitChildren(this)}},gs=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}get ruleIndex(){return Ps.RULE_optionalWith}accept(t){return t.visitOptionalWith?t.visitOptionalWith(this):t.visitChildren(this)}},xs=class extends p{constructor(t,e){super(t,e)}createRoleElement(t){return void 0===t?this.getRuleContexts(Gs):this.getRuleContext(t,Gs)}get ruleIndex(){return Ps.RULE_optionalRoleList}accept(t){return t.visitOptionalRoleList?t.visitOptionalRoleList(this):t.visitChildren(this)}},ks=class extends p{constructor(t,e){super(t,e)}alterRoleElemement(t){return void 0===t?this.getRuleContexts(Hs):this.getRuleContext(t,Hs)}get ruleIndex(){return Ps.RULE_alterOptionalRoleList}accept(t){return t.visitAlterOptionalRoleList?t.visitAlterOptionalRoleList(this):t.visitChildren(this)}},Hs=class extends p{constructor(t,e){super(t,e)}PASSWORD(){return this.getToken(Ps.PASSWORD,0)}sconst(){return this.getRuleContext(0,oS)}NULL_P(){return this.getToken(Ps.NULL_P,0)}ENCRYPTED(){return this.getToken(Ps.ENCRYPTED,0)}UNENCRYPTED(){return this.getToken(Ps.UNENCRYPTED,0)}INHERIT(){return this.getToken(Ps.INHERIT,0)}CONNECTION(){return this.getToken(Ps.CONNECTION,0)}LIMIT(){return this.getToken(Ps.LIMIT,0)}signedIconst(){return this.getRuleContext(0,SS)}VALID(){return this.getToken(Ps.VALID,0)}UNTIL(){return this.getToken(Ps.UNTIL,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleNameList(){return this.getRuleContext(0,OS)}identifier(){return this.getRuleContext(0,_S)}get ruleIndex(){return Ps.RULE_alterRoleElemement}accept(t){return t.visitAlterRoleElemement?t.visitAlterRoleElemement(this):t.visitChildren(this)}},Gs=class extends p{constructor(t,e){super(t,e)}alterRoleElemement(){return this.getRuleContext(0,Hs)}SYSID(){return this.getToken(Ps.SYSID,0)}iconst(){return this.getRuleContext(0,TS)}ADMIN(){return this.getToken(Ps.ADMIN,0)}roleNameList(){return this.getRuleContext(0,OS)}roleOrAliases(){return this.getRuleContext(0,gO)}IN_P(){return this.getToken(Ps.IN_P,0)}get ruleIndex(){return Ps.RULE_createRoleElement}accept(t){return t.visitCreateRoleElement?t.visitCreateRoleElement(this):t.visitChildren(this)}},Fs=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleName(){return this.getRuleContext(0,lS)}optionalWith(){return this.getRuleContext(0,gs)}optionalRoleList(){return this.getRuleContext(0,xs)}get ruleIndex(){return Ps.RULE_createRoleStatement}accept(t){return t.visitCreateRoleStatement?t.visitCreateRoleStatement(this):t.visitChildren(this)}},vs=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleName(){return this.getRuleContext(0,lS)}optionalWith(){return this.getRuleContext(0,gs)}alterOptionalRoleList(){return this.getRuleContext(0,ks)}get ruleIndex(){return Ps.RULE_alterRoleStatement}accept(t){return t.visitAlterRoleStatement?t.visitAlterRoleStatement(this):t.visitChildren(this)}},Bs=class extends p{constructor(t,e){super(t,e)}IN_P(){return this.getToken(Ps.IN_P,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}get ruleIndex(){return Ps.RULE_optionalInDatabase}accept(t){return t.visitOptionalInDatabase?t.visitOptionalInDatabase(this):t.visitChildren(this)}},ys=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleName(){return this.getRuleContext(0,lS)}optionalInDatabase(){return this.getRuleContext(0,Bs)}setResetClause(){return this.getRuleContext(0,ca)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_alterRoleSetStatement}accept(t){return t.visitAlterRoleSetStatement?t.visitAlterRoleSetStatement(this):t.visitChildren(this)}},fs=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleNameList(){return this.getRuleContext(0,OS)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_dropRoleStatement}accept(t){return t.visitDropRoleStatement?t.visitDropRoleStatement(this):t.visitChildren(this)}},Ys=class extends p{constructor(t,e){super(t,e)}ADD_P(){return this.getToken(Ps.ADD_P,0)}DROP(){return this.getToken(Ps.DROP,0)}get ruleIndex(){return Ps.RULE_addOrDrop}accept(t){return t.visitAddOrDrop?t.visitAddOrDrop(this):t.visitChildren(this)}},ws=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}optionalSchemaList(){return this.getRuleContext(0,Ws)}optionalSchemaName(){return this.getRuleContext(0,bs)}AUTHORIZATION(){return this.getToken(Ps.AUTHORIZATION,0)}roleName(){return this.getRuleContext(0,lS)}columnId(){return this.getRuleContext(0,IS)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createSchemaStatement}accept(t){return t.visitCreateSchemaStatement?t.visitCreateSchemaStatement(this):t.visitChildren(this)}},bs=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_optionalSchemaName}accept(t){return t.visitOptionalSchemaName?t.visitOptionalSchemaName(this):t.visitChildren(this)}},Ws=class extends p{constructor(t,e){super(t,e)}schemaStatement(t){return void 0===t?this.getRuleContexts(Vs):this.getRuleContext(t,Vs)}get ruleIndex(){return Ps.RULE_optionalSchemaList}accept(t){return t.visitOptionalSchemaList?t.visitOptionalSchemaList(this):t.visitChildren(this)}},Vs=class extends p{constructor(t,e){super(t,e)}createStatement(){return this.getRuleContext(0,Ka)}indexStatement(){return this.getRuleContext(0,Cn)}createSequenceStatement(){return this.getRuleContext(0,Wi)}createTriggerStatement(){return this.getRuleContext(0,Wr)}grantStatement(){return this.getRuleContext(0,an)}viewStatement(){return this.getRuleContext(0,cE)}get ruleIndex(){return Ps.RULE_schemaStatement}accept(t){return t.visitSchemaStatement?t.visitSchemaStatement(this):t.visitChildren(this)}},Xs=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}setStatementEnding(){return this.getRuleContext(0,Ks)}LOCAL(){return this.getToken(Ps.LOCAL,0)}SESSION(){return this.getToken(Ps.SESSION,0)}get ruleIndex(){return Ps.RULE_variableSetStatement}accept(t){return t.visitVariableSetStatement?t.visitVariableSetStatement(this):t.visitChildren(this)}},Ks=class extends p{constructor(t,e){super(t,e)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}transactionModeList(){return this.getRuleContext(0,iE)}SESSION(){return this.getToken(Ps.SESSION,0)}CHARACTERISTICS(){return this.getToken(Ps.CHARACTERISTICS,0)}AS(){return this.getToken(Ps.AS,0)}setStatementMore(){return this.getRuleContext(0,Js)}get ruleIndex(){return Ps.RULE_setStatementEnding}accept(t){return t.visitSetStatementEnding?t.visitSetStatementEnding(this):t.visitChildren(this)}},Qs=class extends p{constructor(t,e){super(t,e)}variableName(){return this.getRuleContext(0,Zs)}variableList(){return this.getRuleContext(0,qs)}TO(){return this.getToken(Ps.TO,0)}EQUAL(){return this.getToken(Ps.EQUAL,0)}get ruleIndex(){return Ps.RULE_genericSetClause}accept(t){return t.visitGenericSetClause?t.visitGenericSetClause(this):t.visitChildren(this)}},Js=class extends p{constructor(t,e){super(t,e)}genericSetClause(){return this.getRuleContext(0,Qs)}variableName(){return this.getRuleContext(0,Zs)}FROM(){return this.getToken(Ps.FROM,0)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}TIME(){return this.getToken(Ps.TIME,0)}ZONE(){return this.getToken(Ps.ZONE,0)}zoneValue(){return this.getRuleContext(0,ta)}CATALOG(){return this.getToken(Ps.CATALOG,0)}sconst(){return this.getRuleContext(0,oS)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}NAMES(){return this.getToken(Ps.NAMES,0)}optionalEncoding(){return this.getRuleContext(0,ea)}roleOrAliases(){return this.getRuleContext(0,gO)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}SESSION(){return this.getToken(Ps.SESSION,0)}AUTHORIZATION(){return this.getToken(Ps.AUTHORIZATION,0)}XML_P(){return this.getToken(Ps.XML_P,0)}OPTION(){return this.getToken(Ps.OPTION,0)}documentOrContent(){return this.getRuleContext(0,wR)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}SNAPSHOT(){return this.getToken(Ps.SNAPSHOT,0)}get ruleIndex(){return Ps.RULE_setStatementMore}accept(t){return t.visitSetStatementMore?t.visitSetStatementMore(this):t.visitChildren(this)}},Zs=class extends p{constructor(t,e){super(t,e)}columnId(t){return void 0===t?this.getRuleContexts(IS):this.getRuleContext(t,IS)}DOT(t){return void 0===t?this.getTokens(Ps.DOT):this.getToken(Ps.DOT,t)}get ruleIndex(){return Ps.RULE_variableName}accept(t){return t.visitVariableName?t.visitVariableName(this):t.visitChildren(this)}},qs=class extends p{constructor(t,e){super(t,e)}variableValue(t){return void 0===t?this.getRuleContexts(js):this.getRuleContext(t,js)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_variableList}accept(t){return t.visitVariableList?t.visitVariableList(this):t.visitChildren(this)}},js=class extends p{constructor(t,e){super(t,e)}booleanOrString(){return this.getRuleContext(0,$s)}numericOnly(){return this.getRuleContext(0,Ji)}get ruleIndex(){return Ps.RULE_variableValue}accept(t){return t.visitVariableValue?t.visitVariableValue(this):t.visitChildren(this)}},zs=class extends p{constructor(t,e){super(t,e)}READ(){return this.getToken(Ps.READ,0)}UNCOMMITTED(){return this.getToken(Ps.UNCOMMITTED,0)}COMMITTED(){return this.getToken(Ps.COMMITTED,0)}REPEATABLE(){return this.getToken(Ps.REPEATABLE,0)}SERIALIZABLE(){return this.getToken(Ps.SERIALIZABLE,0)}get ruleIndex(){return Ps.RULE_isoLevel}accept(t){return t.visitIsoLevel?t.visitIsoLevel(this):t.visitChildren(this)}},$s=class extends p{constructor(t,e){super(t,e)}TRUE_P(){return this.getToken(Ps.TRUE_P,0)}FALSE_P(){return this.getToken(Ps.FALSE_P,0)}ON(){return this.getToken(Ps.ON,0)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}get ruleIndex(){return Ps.RULE_booleanOrString}accept(t){return t.visitBooleanOrString?t.visitBooleanOrString(this):t.visitChildren(this)}},ta=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}identifier(){return this.getRuleContext(0,_S)}constInterval(){return this.getRuleContext(0,tR)}optionalInterval(){return this.getRuleContext(0,sR)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}numericOnly(){return this.getRuleContext(0,Ji)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}LOCAL(){return this.getToken(Ps.LOCAL,0)}get ruleIndex(){return Ps.RULE_zoneValue}accept(t){return t.visitZoneValue?t.visitZoneValue(this):t.visitChildren(this)}},ea=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_optionalEncoding}accept(t){return t.visitOptionalEncoding?t.visitOptionalEncoding(this):t.visitChildren(this)}},sa=class extends p{constructor(t,e){super(t,e)}nonReservedWord(){return this.getRuleContext(0,LS)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_nonReservedWordOrSconst}accept(t){return t.visitNonReservedWordOrSconst?t.visitNonReservedWordOrSconst(this):t.visitChildren(this)}},aa=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken(Ps.RESET,0)}resetClauseRest(){return this.getRuleContext(0,ia)}get ruleIndex(){return Ps.RULE_variableResetStatement}accept(t){return t.visitVariableResetStatement?t.visitVariableResetStatement(this):t.visitChildren(this)}},ia=class extends p{constructor(t,e){super(t,e)}genericResetClause(){return this.getRuleContext(0,ra)}TIME(){return this.getToken(Ps.TIME,0)}ZONE(){return this.getToken(Ps.ZONE,0)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}ISOLATION(){return this.getToken(Ps.ISOLATION,0)}LEVEL(){return this.getToken(Ps.LEVEL,0)}SESSION(){return this.getToken(Ps.SESSION,0)}AUTHORIZATION(){return this.getToken(Ps.AUTHORIZATION,0)}get ruleIndex(){return Ps.RULE_resetClauseRest}accept(t){return t.visitResetClauseRest?t.visitResetClauseRest(this):t.visitChildren(this)}},ra=class extends p{constructor(t,e){super(t,e)}variableName(){return this.getRuleContext(0,Zs)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_genericResetClause}accept(t){return t.visitGenericResetClause?t.visitGenericResetClause(this):t.visitChildren(this)}},ca=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}setStatementEnding(){return this.getRuleContext(0,Ks)}variableResetStatement(){return this.getRuleContext(0,aa)}get ruleIndex(){return Ps.RULE_setResetClause}accept(t){return t.visitSetResetClause?t.visitSetResetClause(this):t.visitChildren(this)}},na=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}setStatementMore(){return this.getRuleContext(0,Js)}variableResetStatement(){return this.getRuleContext(0,aa)}get ruleIndex(){return Ps.RULE_functionSetResetClause}accept(t){return t.visitFunctionSetResetClause?t.visitFunctionSetResetClause(this):t.visitChildren(this)}},ha=class extends p{constructor(t,e){super(t,e)}SHOW(){return this.getToken(Ps.SHOW,0)}variableName(){return this.getRuleContext(0,Zs)}TIME(){return this.getToken(Ps.TIME,0)}ZONE(){return this.getToken(Ps.ZONE,0)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}ISOLATION(){return this.getToken(Ps.ISOLATION,0)}LEVEL(){return this.getToken(Ps.LEVEL,0)}SESSION(){return this.getToken(Ps.SESSION,0)}AUTHORIZATION(){return this.getToken(Ps.AUTHORIZATION,0)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_variableShowStatement}accept(t){return t.visitVariableShowStatement?t.visitVariableShowStatement(this):t.visitChildren(this)}},Ea=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}CONSTRAINTS(){return this.getToken(Ps.CONSTRAINTS,0)}constraintsSetList(){return this.getRuleContext(0,Ta)}constraintsSetMode(){return this.getRuleContext(0,oa)}get ruleIndex(){return Ps.RULE_setConstraintsStatement}accept(t){return t.visitSetConstraintsStatement?t.visitSetConstraintsStatement(this):t.visitChildren(this)}},Ta=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(Ps.ALL,0)}qualifiedNameList(){return this.getRuleContext(0,WA)}get ruleIndex(){return Ps.RULE_constraintsSetList}accept(t){return t.visitConstraintsSetList?t.visitConstraintsSetList(this):t.visitChildren(this)}},oa=class extends p{constructor(t,e){super(t,e)}DEFERRED(){return this.getToken(Ps.DEFERRED,0)}IMMEDIATE(){return this.getToken(Ps.IMMEDIATE,0)}get ruleIndex(){return Ps.RULE_constraintsSetMode}accept(t){return t.visitConstraintsSetMode?t.visitConstraintsSetMode(this):t.visitChildren(this)}},Ra=class extends p{constructor(t,e){super(t,e)}CHECKPOINT(){return this.getToken(Ps.CHECKPOINT,0)}get ruleIndex(){return Ps.RULE_checkpointStatement}accept(t){return t.visitCheckpointStatement?t.visitCheckpointStatement(this):t.visitChildren(this)}},Aa=class extends p{constructor(t,e){super(t,e)}DISCARD(){return this.getToken(Ps.DISCARD,0)}ALL(){return this.getToken(Ps.ALL,0)}TEMP(){return this.getToken(Ps.TEMP,0)}TEMPORARY(){return this.getToken(Ps.TEMPORARY,0)}PLANS(){return this.getToken(Ps.PLANS,0)}SEQUENCES(){return this.getToken(Ps.SEQUENCES,0)}get ruleIndex(){return Ps.RULE_discardStatement}accept(t){return t.visitDiscardStatement?t.visitDiscardStatement(this):t.visitChildren(this)}},Sa=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}TABLE(){return this.getToken(Ps.TABLE,0)}relationExpression(){return this.getRuleContext(0,uo)}alterTableCommands(){return this.getRuleContext(0,la)}partitionCommand(){return this.getRuleContext(0,Oa)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}ALL(){return this.getToken(Ps.ALL,0)}IN_P(){return this.getToken(Ps.IN_P,0)}TABLESPACE(t){return void 0===t?this.getTokens(Ps.TABLESPACE):this.getToken(Ps.TABLESPACE,t)}name(t){return void 0===t?this.getRuleContexts(sS):this.getRuleContext(t,sS)}SET(){return this.getToken(Ps.SET,0)}optionalNowait(){return this.getRuleContext(0,AT)}OWNED(){return this.getToken(Ps.OWNED,0)}BY(){return this.getToken(Ps.BY,0)}roleNameList(){return this.getRuleContext(0,OS)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}indexPartitionCommand(){return this.getRuleContext(0,Ia)}VIEW(){return this.getToken(Ps.VIEW,0)}viewName(){return this.getRuleContext(0,Io)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}qualifiedName(){return this.getRuleContext(0,tS)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}get ruleIndex(){return Ps.RULE_alterTableStatement}accept(t){return t.visitAlterTableStatement?t.visitAlterTableStatement(this):t.visitChildren(this)}},la=class extends p{constructor(t,e){super(t,e)}alterTableCommand(t){return void 0===t?this.getRuleContexts(ua):this.getRuleContext(t,ua)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_alterTableCommands}accept(t){return t.visitAlterTableCommands?t.visitAlterTableCommands(this):t.visitChildren(this)}},Oa=class extends p{constructor(t,e){super(t,e)}ATTACH(){return this.getToken(Ps.ATTACH,0)}PARTITION(){return this.getToken(Ps.PARTITION,0)}qualifiedName(){return this.getRuleContext(0,tS)}partitionBoundSpecification(){return this.getRuleContext(0,ga)}DETACH(){return this.getToken(Ps.DETACH,0)}get ruleIndex(){return Ps.RULE_partitionCommand}accept(t){return t.visitPartitionCommand?t.visitPartitionCommand(this):t.visitChildren(this)}},Ia=class extends p{constructor(t,e){super(t,e)}ATTACH(){return this.getToken(Ps.ATTACH,0)}PARTITION(){return this.getToken(Ps.PARTITION,0)}qualifiedName(){return this.getRuleContext(0,tS)}get ruleIndex(){return Ps.RULE_indexPartitionCommand}accept(t){return t.visitIndexPartitionCommand?t.visitIndexPartitionCommand(this):t.visitChildren(this)}},ua=class extends p{constructor(t,e){super(t,e)}ADD_P(){return this.getToken(Ps.ADD_P,0)}columnDefinition(){return this.getRuleContext(0,ti)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}COLUMN(){return this.getToken(Ps.COLUMN,0)}ALTER(){return this.getToken(Ps.ALTER,0)}optionalColumn(){return this.getRuleContext(0,dh)}columnId(t){return void 0===t?this.getRuleContexts(IS):this.getRuleContext(t,IS)}alterColumnDefault(){return this.getRuleContext(0,Na)}DROP(){return this.getToken(Ps.DROP,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}SET(){return this.getToken(Ps.SET,0)}EXPRESSION(){return this.getToken(Ps.EXPRESSION,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}signedIconst(){return this.getRuleContext(0,SS)}iconst(){return this.getRuleContext(0,TS)}relOptions(){return this.getRuleContext(0,Ma)}RESET(){return this.getToken(Ps.RESET,0)}STORAGE(){return this.getToken(Ps.STORAGE,0)}GENERATED(){return this.getToken(Ps.GENERATED,0)}generatedWhen(){return this.getRuleContext(0,ri)}AS(){return this.getToken(Ps.AS,0)}IDENTITY_P(){return this.getToken(Ps.IDENTITY_P,0)}optionalParenthesizedSeqOptionsList(){return this.getRuleContext(0,Xi)}alterIdentityColumnOptionList(){return this.getRuleContext(0,Da)}optionalDropBehavior(){return this.getRuleContext(0,La)}optionalSetData(){return this.getRuleContext(0,Uh)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}typeName(){return this.getRuleContext(0,yo)}optionalCollateClause(){return this.getRuleContext(0,Ca)}alterUsing(){return this.getRuleContext(0,_a)}alterGenericOptions(){return this.getRuleContext(0,lr)}tableConstraint(){return this.getRuleContext(0,Ti)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}constraintName(){return this.getRuleContext(0,jA)}constraintAttributeElement(t){return void 0===t?this.getRuleContexts(nc):this.getRuleContext(t,nc)}VALIDATE(){return this.getToken(Ps.VALIDATE,0)}WITHOUT(){return this.getToken(Ps.WITHOUT,0)}OIDS(){return this.getToken(Ps.OIDS,0)}CLUSTER(){return this.getToken(Ps.CLUSTER,0)}ON(){return this.getToken(Ps.ON,0)}name(){return this.getRuleContext(0,sS)}LOGGED(){return this.getToken(Ps.LOGGED,0)}UNLOGGED(){return this.getToken(Ps.UNLOGGED,0)}ENABLE_P(){return this.getToken(Ps.ENABLE_P,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}triggerName(){return this.getRuleContext(0,qA)}ALWAYS(){return this.getToken(Ps.ALWAYS,0)}REPLICA(){return this.getToken(Ps.REPLICA,0)}ALL(){return this.getToken(Ps.ALL,0)}USER(){return this.getToken(Ps.USER,0)}DISABLE_P(){return this.getToken(Ps.DISABLE_P,0)}RULE(){return this.getToken(Ps.RULE,0)}INHERIT(){return this.getToken(Ps.INHERIT,0)}qualifiedName(){return this.getRuleContext(0,tS)}NO(){return this.getToken(Ps.NO,0)}OF(){return this.getToken(Ps.OF,0)}anyName(){return this.getRuleContext(0,Wc)}OWNER(){return this.getToken(Ps.OWNER,0)}TO(){return this.getToken(Ps.TO,0)}roleName(){return this.getRuleContext(0,lS)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}replicaIdentity(){return this.getRuleContext(0,Pa)}ROW(){return this.getToken(Ps.ROW,0)}LEVEL(){return this.getToken(Ps.LEVEL,0)}SECURITY(){return this.getToken(Ps.SECURITY,0)}FORCE(){return this.getToken(Ps.FORCE,0)}get ruleIndex(){return Ps.RULE_alterTableCommand}accept(t){return t.visitAlterTableCommand?t.visitAlterTableCommand(this):t.visitChildren(this)}},Na=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}expression1(){return this.getRuleContext(0,rR)}DROP(){return this.getToken(Ps.DROP,0)}get ruleIndex(){return Ps.RULE_alterColumnDefault}accept(t){return t.visitAlterColumnDefault?t.visitAlterColumnDefault(this):t.visitChildren(this)}},La=class extends p{constructor(t,e){super(t,e)}CASCADE(){return this.getToken(Ps.CASCADE,0)}RESTRICT(){return this.getToken(Ps.RESTRICT,0)}get ruleIndex(){return Ps.RULE_optionalDropBehavior}accept(t){return t.visitOptionalDropBehavior?t.visitOptionalDropBehavior(this):t.visitChildren(this)}},Ca=class extends p{constructor(t,e){super(t,e)}COLLATE(){return this.getToken(Ps.COLLATE,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_optionalCollateClause}accept(t){return t.visitOptionalCollateClause?t.visitOptionalCollateClause(this):t.visitChildren(this)}},_a=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_alterUsing}accept(t){return t.visitAlterUsing?t.visitAlterUsing(this):t.visitChildren(this)}},Pa=class extends p{constructor(t,e){super(t,e)}NOTHING(){return this.getToken(Ps.NOTHING,0)}FULL(){return this.getToken(Ps.FULL,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}USING(){return this.getToken(Ps.USING,0)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}get ruleIndex(){return Ps.RULE_replicaIdentity}accept(t){return t.visitReplicaIdentity?t.visitReplicaIdentity(this):t.visitChildren(this)}},Ma=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}relOptionList(){return this.getRuleContext(0,Ua)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_relOptions}accept(t){return t.visitRelOptions?t.visitRelOptions(this):t.visitChildren(this)}},da=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}relOptions(){return this.getRuleContext(0,Ma)}get ruleIndex(){return Ps.RULE_optionalRelOptions}accept(t){return t.visitOptionalRelOptions?t.visitOptionalRelOptions(this):t.visitChildren(this)}},Ua=class extends p{constructor(t,e){super(t,e)}relOptionElem(t){return void 0===t?this.getRuleContexts(ma):this.getRuleContext(t,ma)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_relOptionList}accept(t){return t.visitRelOptionList?t.visitRelOptionList(this):t.visitChildren(this)}},ma=class extends p{constructor(t,e){super(t,e)}columnLabel(t){return void 0===t?this.getRuleContexts(CS):this.getRuleContext(t,CS)}EQUAL(){return this.getToken(Ps.EQUAL,0)}definitionArgument(){return this.getRuleContext(0,uc)}DOT(){return this.getToken(Ps.DOT,0)}get ruleIndex(){return Ps.RULE_relOptionElem}accept(t){return t.visitRelOptionElem?t.visitRelOptionElem(this):t.visitChildren(this)}},Da=class extends p{constructor(t,e){super(t,e)}alterIdentityColumnOption(t){return void 0===t?this.getRuleContexts(pa):this.getRuleContext(t,pa)}get ruleIndex(){return Ps.RULE_alterIdentityColumnOptionList}accept(t){return t.visitAlterIdentityColumnOptionList?t.visitAlterIdentityColumnOptionList(this):t.visitChildren(this)}},pa=class extends p{constructor(t,e){super(t,e)}RESTART(){return this.getToken(Ps.RESTART,0)}optionalWith(){return this.getRuleContext(0,gs)}numericOnly(){return this.getRuleContext(0,Ji)}SET(){return this.getToken(Ps.SET,0)}sequenceOptionItem(){return this.getRuleContext(0,Qi)}GENERATED(){return this.getToken(Ps.GENERATED,0)}generatedWhen(){return this.getRuleContext(0,ri)}get ruleIndex(){return Ps.RULE_alterIdentityColumnOption}accept(t){return t.visitAlterIdentityColumnOption?t.visitAlterIdentityColumnOption(this):t.visitChildren(this)}},ga=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}VALUES(){return this.getToken(Ps.VALUES,0)}WITH(){return this.getToken(Ps.WITH,0)}OPEN_PAREN(t){return void 0===t?this.getTokens(Ps.OPEN_PAREN):this.getToken(Ps.OPEN_PAREN,t)}hashPartitionBound(){return this.getRuleContext(0,ka)}CLOSE_PAREN(t){return void 0===t?this.getTokens(Ps.CLOSE_PAREN):this.getToken(Ps.CLOSE_PAREN,t)}IN_P(){return this.getToken(Ps.IN_P,0)}expressionList(t){return void 0===t?this.getRuleContexts(AA):this.getRuleContext(t,AA)}FROM(){return this.getToken(Ps.FROM,0)}TO(){return this.getToken(Ps.TO,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_partitionBoundSpecification}accept(t){return t.visitPartitionBoundSpecification?t.visitPartitionBoundSpecification(this):t.visitChildren(this)}},xa=class extends p{constructor(t,e){super(t,e)}nonReservedWord(){return this.getRuleContext(0,LS)}iconst(){return this.getRuleContext(0,TS)}get ruleIndex(){return Ps.RULE_hashPartitionBoundElement}accept(t){return t.visitHashPartitionBoundElement?t.visitHashPartitionBoundElement(this):t.visitChildren(this)}},ka=class extends p{constructor(t,e){super(t,e)}hashPartitionBoundElement(t){return void 0===t?this.getRuleContexts(xa):this.getRuleContext(t,xa)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_hashPartitionBound}accept(t){return t.visitHashPartitionBound?t.visitHashPartitionBound(this):t.visitChildren(this)}},Ha=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}anyName(){return this.getRuleContext(0,Wc)}alterTypeCommands(){return this.getRuleContext(0,Ga)}get ruleIndex(){return Ps.RULE_alterCompositeTypeStatement}accept(t){return t.visitAlterCompositeTypeStatement?t.visitAlterCompositeTypeStatement(this):t.visitChildren(this)}},Ga=class extends p{constructor(t,e){super(t,e)}alterTypeCommand(t){return void 0===t?this.getRuleContexts(Fa):this.getRuleContext(t,Fa)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_alterTypeCommands}accept(t){return t.visitAlterTypeCommands?t.visitAlterTypeCommands(this):t.visitChildren(this)}},Fa=class extends p{constructor(t,e){super(t,e)}ADD_P(){return this.getToken(Ps.ADD_P,0)}ATTRIBUTE(){return this.getToken(Ps.ATTRIBUTE,0)}tableFunctionElement(){return this.getRuleContext(0,xo)}optionalDropBehavior(){return this.getRuleContext(0,La)}DROP(){return this.getToken(Ps.DROP,0)}columnId(){return this.getRuleContext(0,IS)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}ALTER(){return this.getToken(Ps.ALTER,0)}optionalSetData(){return this.getRuleContext(0,Uh)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}typeName(){return this.getRuleContext(0,yo)}optionalCollateClause(){return this.getRuleContext(0,Ca)}get ruleIndex(){return Ps.RULE_alterTypeCommand}accept(t){return t.visitAlterTypeCommand?t.visitAlterTypeCommand(this):t.visitChildren(this)}},va=class extends p{constructor(t,e){super(t,e)}CLOSE(){return this.getToken(Ps.CLOSE,0)}cursorName(){return this.getRuleContext(0,LT)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_closePortalStatement}accept(t){return t.visitClosePortalStatement?t.visitClosePortalStatement(this):t.visitChildren(this)}},Ba=class extends p{constructor(t,e){super(t,e)}COPY(){return this.getToken(Ps.COPY,0)}qualifiedName(){return this.getRuleContext(0,tS)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}fromOrTo(){return this.getRuleContext(0,ya)}copyFileName(){return this.getRuleContext(0,fa)}copyDelimiter(){return this.getRuleContext(0,ba)}optionalWith(){return this.getRuleContext(0,gs)}copyOptions(){return this.getRuleContext(0,Ya)}whereClause(){return this.getRuleContext(0,mo)}BINARY(){return this.getToken(Ps.BINARY,0)}PROGRAM(){return this.getToken(Ps.PROGRAM,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}preparableStatement(){return this.getRuleContext(0,XE)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}TO(){return this.getToken(Ps.TO,0)}get ruleIndex(){return Ps.RULE_copyStatement}accept(t){return t.visitCopyStatement?t.visitCopyStatement(this):t.visitChildren(this)}},ya=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(Ps.FROM,0)}TO(){return this.getToken(Ps.TO,0)}get ruleIndex(){return Ps.RULE_fromOrTo}accept(t){return t.visitFromOrTo?t.visitFromOrTo(this):t.visitChildren(this)}},fa=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}STDIN(){return this.getToken(Ps.STDIN,0)}STDOUT(){return this.getToken(Ps.STDOUT,0)}get ruleIndex(){return Ps.RULE_copyFileName}accept(t){return t.visitCopyFileName?t.visitCopyFileName(this):t.visitChildren(this)}},Ya=class extends p{constructor(t,e){super(t,e)}copyOptionsItem(t){return void 0===t?this.getRuleContexts(wa):this.getRuleContext(t,wa)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}copyGenericOptionList(){return this.getRuleContext(0,Wa)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_copyOptions}accept(t){return t.visitCopyOptions?t.visitCopyOptions(this):t.visitChildren(this)}},wa=class extends p{constructor(t,e){super(t,e)}BINARY(){return this.getToken(Ps.BINARY,0)}FREEZE(){return this.getToken(Ps.FREEZE,0)}DELIMITER(){return this.getToken(Ps.DELIMITER,0)}optionalAs(){return this.getRuleContext(0,CE)}sconst(){return this.getRuleContext(0,oS)}NULL_P(){return this.getToken(Ps.NULL_P,0)}CSV(){return this.getToken(Ps.CSV,0)}HEADER_P(){return this.getToken(Ps.HEADER_P,0)}QUOTE(){return this.getToken(Ps.QUOTE,0)}ESCAPE(){return this.getToken(Ps.ESCAPE,0)}FORCE(){return this.getToken(Ps.FORCE,0)}columnList(){return this.getRuleContext(0,Ai)}STAR(){return this.getToken(Ps.STAR,0)}NOT(){return this.getToken(Ps.NOT,0)}ENCODING(){return this.getToken(Ps.ENCODING,0)}get ruleIndex(){return Ps.RULE_copyOptionsItem}accept(t){return t.visitCopyOptionsItem?t.visitCopyOptionsItem(this):t.visitChildren(this)}},ba=class extends p{constructor(t,e){super(t,e)}DELIMITERS(){return this.getToken(Ps.DELIMITERS,0)}sconst(){return this.getRuleContext(0,oS)}USING(){return this.getToken(Ps.USING,0)}get ruleIndex(){return Ps.RULE_copyDelimiter}accept(t){return t.visitCopyDelimiter?t.visitCopyDelimiter(this):t.visitChildren(this)}},Wa=class extends p{constructor(t,e){super(t,e)}copyGenericOptionElem(t){return void 0===t?this.getRuleContexts(Va):this.getRuleContext(t,Va)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_copyGenericOptionList}accept(t){return t.visitCopyGenericOptionList?t.visitCopyGenericOptionList(this):t.visitChildren(this)}},Va=class extends p{constructor(t,e){super(t,e)}columnLabel(){return this.getRuleContext(0,CS)}copyGenericOptionArgument(){return this.getRuleContext(0,Xa)}get ruleIndex(){return Ps.RULE_copyGenericOptionElem}accept(t){return t.visitCopyGenericOptionElem?t.visitCopyGenericOptionElem(this):t.visitChildren(this)}},Xa=class extends p{constructor(t,e){super(t,e)}booleanOrString(t){return void 0===t?this.getRuleContexts($s):this.getRuleContext(t,$s)}numericOnly(){return this.getRuleContext(0,Ji)}STAR(){return this.getToken(Ps.STAR,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_copyGenericOptionArgument}accept(t){return t.visitCopyGenericOptionArgument?t.visitCopyGenericOptionArgument(this):t.visitChildren(this)}},Ka=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}temporaryOption(){return this.getRuleContext(0,Qa)}TABLE(){return this.getToken(Ps.TABLE,0)}qualifiedName(t){return void 0===t?this.getRuleContexts(tS):this.getRuleContext(t,tS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}optionalTableElementList(){return this.getRuleContext(0,Ja)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}inheritClause(){return this.getRuleContext(0,Mi)}optionalPartitionSpecification(){return this.getRuleContext(0,di)}optionalTableAccessMethodClause(){return this.getRuleContext(0,pi)}with(){return this.getRuleContext(0,gi)}onCommitOption(){return this.getRuleContext(0,xi)}optionalTablespace(){return this.getRuleContext(0,ki)}OF(){return this.getToken(Ps.OF,0)}anyName(){return this.getRuleContext(0,Wc)}optionalTypedTableElementList(){return this.getRuleContext(0,Za)}PARTITION(){return this.getToken(Ps.PARTITION,0)}partitionBoundSpecification(){return this.getRuleContext(0,ga)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createStatement}accept(t){return t.visitCreateStatement?t.visitCreateStatement(this):t.visitChildren(this)}},Qa=class extends p{constructor(t,e){super(t,e)}TEMPORARY(){return this.getToken(Ps.TEMPORARY,0)}TEMP(){return this.getToken(Ps.TEMP,0)}LOCAL(){return this.getToken(Ps.LOCAL,0)}GLOBAL(){return this.getToken(Ps.GLOBAL,0)}UNLOGGED(){return this.getToken(Ps.UNLOGGED,0)}get ruleIndex(){return Ps.RULE_temporaryOption}accept(t){return t.visitTemporaryOption?t.visitTemporaryOption(this):t.visitChildren(this)}},Ja=class extends p{constructor(t,e){super(t,e)}tableElementList(){return this.getRuleContext(0,qa)}get ruleIndex(){return Ps.RULE_optionalTableElementList}accept(t){return t.visitOptionalTableElementList?t.visitOptionalTableElementList(this):t.visitChildren(this)}},Za=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typedTableElementList(){return this.getRuleContext(0,ja)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalTypedTableElementList}accept(t){return t.visitOptionalTypedTableElementList?t.visitOptionalTypedTableElementList(this):t.visitChildren(this)}},qa=class extends p{constructor(t,e){super(t,e)}tableElement(t){return void 0===t?this.getRuleContexts(za):this.getRuleContext(t,za)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_tableElementList}accept(t){return t.visitTableElementList?t.visitTableElementList(this):t.visitChildren(this)}},ja=class extends p{constructor(t,e){super(t,e)}typedTableElement(t){return void 0===t?this.getRuleContexts($a):this.getRuleContext(t,$a)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_typedTableElementList}accept(t){return t.visitTypedTableElementList?t.visitTypedTableElementList(this):t.visitChildren(this)}},za=class extends p{constructor(t,e){super(t,e)}tableConstraint(){return this.getRuleContext(0,Ti)}tableLikeClause(){return this.getRuleContext(0,ni)}columnDefinition(){return this.getRuleContext(0,ti)}get ruleIndex(){return Ps.RULE_tableElement}accept(t){return t.visitTableElement?t.visitTableElement(this):t.visitChildren(this)}},$a=class extends p{constructor(t,e){super(t,e)}columnOptions(){return this.getRuleContext(0,ei)}tableConstraint(){return this.getRuleContext(0,Ti)}get ruleIndex(){return Ps.RULE_typedTableElement}accept(t){return t.visitTypedTableElement?t.visitTypedTableElement(this):t.visitChildren(this)}},ti=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}typeName(){return this.getRuleContext(0,yo)}createGenericOptions(){return this.getRuleContext(0,Ar)}columnQualifierList(){return this.getRuleContext(0,si)}get ruleIndex(){return Ps.RULE_columnDefinition}accept(t){return t.visitColumnDefinition?t.visitColumnDefinition(this):t.visitChildren(this)}},ei=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}columnQualifierList(){return this.getRuleContext(0,si)}WITH(){return this.getToken(Ps.WITH,0)}OPTIONS(){return this.getToken(Ps.OPTIONS,0)}get ruleIndex(){return Ps.RULE_columnOptions}accept(t){return t.visitColumnOptions?t.visitColumnOptions(this):t.visitChildren(this)}},si=class extends p{constructor(t,e){super(t,e)}columnConstraint(t){return void 0===t?this.getRuleContexts(ai):this.getRuleContext(t,ai)}get ruleIndex(){return Ps.RULE_columnQualifierList}accept(t){return t.visitColumnQualifierList?t.visitColumnQualifierList(this):t.visitChildren(this)}},ai=class extends p{constructor(t,e){super(t,e)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}name(){return this.getRuleContext(0,sS)}columnConstraintElement(){return this.getRuleContext(0,ii)}constraintAttribute(){return this.getRuleContext(0,ci)}COLLATE(){return this.getToken(Ps.COLLATE,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_columnConstraint}accept(t){return t.visitColumnConstraint?t.visitColumnConstraint(this):t.visitChildren(this)}},ii=class extends p{constructor(t,e){super(t,e)}NOT(){return this.getToken(Ps.NOT,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}UNIQUE(){return this.getToken(Ps.UNIQUE,0)}optionalDefinition(){return this.getRuleContext(0,zn)}usingIndexTablespace(){return this.getRuleContext(0,Hi)}PRIMARY(){return this.getToken(Ps.PRIMARY,0)}KEY(){return this.getToken(Ps.KEY,0)}CHECK(){return this.getToken(Ps.CHECK,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}NO(){return this.getToken(Ps.NO,0)}INHERIT(){return this.getToken(Ps.INHERIT,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}expression2(){return this.getRuleContext(0,UR)}GENERATED(){return this.getToken(Ps.GENERATED,0)}generatedWhen(){return this.getRuleContext(0,ri)}AS(){return this.getToken(Ps.AS,0)}IDENTITY_P(){return this.getToken(Ps.IDENTITY_P,0)}optionalParenthesizedSeqOptionsList(){return this.getRuleContext(0,Xi)}STORED(){return this.getToken(Ps.STORED,0)}REFERENCES(){return this.getToken(Ps.REFERENCES,0)}qualifiedName(){return this.getRuleContext(0,tS)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}matchClause(){return this.getRuleContext(0,Oi)}keyActions(){return this.getRuleContext(0,Li)}get ruleIndex(){return Ps.RULE_columnConstraintElement}accept(t){return t.visitColumnConstraintElement?t.visitColumnConstraintElement(this):t.visitChildren(this)}},ri=class extends p{constructor(t,e){super(t,e)}ALWAYS(){return this.getToken(Ps.ALWAYS,0)}BY(){return this.getToken(Ps.BY,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_generatedWhen}accept(t){return t.visitGeneratedWhen?t.visitGeneratedWhen(this):t.visitChildren(this)}},ci=class extends p{constructor(t,e){super(t,e)}DEFERRABLE(){return this.getToken(Ps.DEFERRABLE,0)}NOT(){return this.getToken(Ps.NOT,0)}INITIALLY(){return this.getToken(Ps.INITIALLY,0)}DEFERRED(){return this.getToken(Ps.DEFERRED,0)}IMMEDIATE(){return this.getToken(Ps.IMMEDIATE,0)}get ruleIndex(){return Ps.RULE_constraintAttribute}accept(t){return t.visitConstraintAttribute?t.visitConstraintAttribute(this):t.visitChildren(this)}},ni=class extends p{constructor(t,e){super(t,e)}LIKE(){return this.getToken(Ps.LIKE,0)}qualifiedName(){return this.getRuleContext(0,tS)}tableLikeOptionList(){return this.getRuleContext(0,hi)}get ruleIndex(){return Ps.RULE_tableLikeClause}accept(t){return t.visitTableLikeClause?t.visitTableLikeClause(this):t.visitChildren(this)}},hi=class extends p{constructor(t,e){super(t,e)}tableLikeOption(t){return void 0===t?this.getRuleContexts(Ei):this.getRuleContext(t,Ei)}INCLUDING(t){return void 0===t?this.getTokens(Ps.INCLUDING):this.getToken(Ps.INCLUDING,t)}EXCLUDING(t){return void 0===t?this.getTokens(Ps.EXCLUDING):this.getToken(Ps.EXCLUDING,t)}get ruleIndex(){return Ps.RULE_tableLikeOptionList}accept(t){return t.visitTableLikeOptionList?t.visitTableLikeOptionList(this):t.visitChildren(this)}},Ei=class extends p{constructor(t,e){super(t,e)}COMMENTS(){return this.getToken(Ps.COMMENTS,0)}CONSTRAINTS(){return this.getToken(Ps.CONSTRAINTS,0)}DEFAULTS(){return this.getToken(Ps.DEFAULTS,0)}IDENTITY_P(){return this.getToken(Ps.IDENTITY_P,0)}GENERATED(){return this.getToken(Ps.GENERATED,0)}INDEXES(){return this.getToken(Ps.INDEXES,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}STORAGE(){return this.getToken(Ps.STORAGE,0)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_tableLikeOption}accept(t){return t.visitTableLikeOption?t.visitTableLikeOption(this):t.visitChildren(this)}},Ti=class extends p{constructor(t,e){super(t,e)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}name(){return this.getRuleContext(0,sS)}constraintElement(){return this.getRuleContext(0,oi)}get ruleIndex(){return Ps.RULE_tableConstraint}accept(t){return t.visitTableConstraint?t.visitTableConstraint(this):t.visitChildren(this)}},oi=class extends p{constructor(t,e){super(t,e)}CHECK(){return this.getToken(Ps.CHECK,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}constraintAttributeSpecification(){return this.getRuleContext(0,cc)}UNIQUE(){return this.getToken(Ps.UNIQUE,0)}columnList(){return this.getRuleContext(0,Ai)}optionalColumnListInclude(){return this.getRuleContext(0,li)}optionalDefinition(){return this.getRuleContext(0,zn)}usingIndexTablespace(){return this.getRuleContext(0,Hi)}existingIndex(){return this.getRuleContext(0,Gi)}PRIMARY(){return this.getToken(Ps.PRIMARY,0)}KEY(){return this.getToken(Ps.KEY,0)}EXCLUDE(){return this.getToken(Ps.EXCLUDE,0)}optionalAccessMethodClause(){return this.getRuleContext(0,_n)}exclusionConstraintList(){return this.getRuleContext(0,Ii)}exclusionWhereClause(){return this.getRuleContext(0,Ni)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}REFERENCES(){return this.getToken(Ps.REFERENCES,0)}qualifiedName(){return this.getRuleContext(0,tS)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}matchClause(){return this.getRuleContext(0,Oi)}keyActions(){return this.getRuleContext(0,Li)}get ruleIndex(){return Ps.RULE_constraintElement}accept(t){return t.visitConstraintElement?t.visitConstraintElement(this):t.visitChildren(this)}},Ri=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}columnList(){return this.getRuleContext(0,Ai)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_columnListWithParentheses}accept(t){return t.visitColumnListWithParentheses?t.visitColumnListWithParentheses(this):t.visitChildren(this)}},Ai=class extends p{constructor(t,e){super(t,e)}columnElement(t){return void 0===t?this.getRuleContexts(Si):this.getRuleContext(t,Si)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_columnList}accept(t){return t.visitColumnList?t.visitColumnList(this):t.visitChildren(this)}},Si=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_columnElement}accept(t){return t.visitColumnElement?t.visitColumnElement(this):t.visitChildren(this)}},li=class extends p{constructor(t,e){super(t,e)}INCLUDE(){return this.getToken(Ps.INCLUDE,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}columnList(){return this.getRuleContext(0,Ai)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalColumnListInclude}accept(t){return t.visitOptionalColumnListInclude?t.visitOptionalColumnListInclude(this):t.visitChildren(this)}},Oi=class extends p{constructor(t,e){super(t,e)}MATCH(){return this.getToken(Ps.MATCH,0)}FULL(){return this.getToken(Ps.FULL,0)}PARTIAL(){return this.getToken(Ps.PARTIAL,0)}SIMPLE(){return this.getToken(Ps.SIMPLE,0)}get ruleIndex(){return Ps.RULE_matchClause}accept(t){return t.visitMatchClause?t.visitMatchClause(this):t.visitChildren(this)}},Ii=class extends p{constructor(t,e){super(t,e)}exclusionConstraintElement(t){return void 0===t?this.getRuleContexts(ui):this.getRuleContext(t,ui)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_exclusionConstraintList}accept(t){return t.visitExclusionConstraintList?t.visitExclusionConstraintList(this):t.visitChildren(this)}},ui=class extends p{constructor(t,e){super(t,e)}indexElement(){return this.getRuleContext(0,dn)}WITH(){return this.getToken(Ps.WITH,0)}anyOperator(){return this.getRuleContext(0,ch)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_exclusionConstraintElement}accept(t){return t.visitExclusionConstraintElement?t.visitExclusionConstraintElement(this):t.visitChildren(this)}},Ni=class extends p{constructor(t,e){super(t,e)}WHERE(){return this.getToken(Ps.WHERE,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_exclusionWhereClause}accept(t){return t.visitExclusionWhereClause?t.visitExclusionWhereClause(this):t.visitChildren(this)}},Li=class extends p{constructor(t,e){super(t,e)}onKeyUpdateClause(){return this.getRuleContext(0,Ci)}onKeyDeleteClause(){return this.getRuleContext(0,_i)}get ruleIndex(){return Ps.RULE_keyActions}accept(t){return t.visitKeyActions?t.visitKeyActions(this):t.visitChildren(this)}},Ci=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(Ps.ON,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}keyAction(){return this.getRuleContext(0,Pi)}get ruleIndex(){return Ps.RULE_onKeyUpdateClause}accept(t){return t.visitOnKeyUpdateClause?t.visitOnKeyUpdateClause(this):t.visitChildren(this)}},_i=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(Ps.ON,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}keyAction(){return this.getRuleContext(0,Pi)}get ruleIndex(){return Ps.RULE_onKeyDeleteClause}accept(t){return t.visitOnKeyDeleteClause?t.visitOnKeyDeleteClause(this):t.visitChildren(this)}},Pi=class extends p{constructor(t,e){super(t,e)}NO(){return this.getToken(Ps.NO,0)}ACTION(){return this.getToken(Ps.ACTION,0)}RESTRICT(){return this.getToken(Ps.RESTRICT,0)}CASCADE(){return this.getToken(Ps.CASCADE,0)}SET(){return this.getToken(Ps.SET,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_keyAction}accept(t){return t.visitKeyAction?t.visitKeyAction(this):t.visitChildren(this)}},Mi=class extends p{constructor(t,e){super(t,e)}INHERITS(){return this.getToken(Ps.INHERITS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}qualifiedNameList(){return this.getRuleContext(0,WA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_inheritClause}accept(t){return t.visitInheritClause?t.visitInheritClause(this):t.visitChildren(this)}},di=class extends p{constructor(t,e){super(t,e)}partitionSpecification(){return this.getRuleContext(0,Ui)}get ruleIndex(){return Ps.RULE_optionalPartitionSpecification}accept(t){return t.visitOptionalPartitionSpecification?t.visitOptionalPartitionSpecification(this):t.visitChildren(this)}},Ui=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(Ps.PARTITION,0)}BY(){return this.getToken(Ps.BY,0)}columnId(){return this.getRuleContext(0,IS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}partitionElements(){return this.getRuleContext(0,mi)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_partitionSpecification}accept(t){return t.visitPartitionSpecification?t.visitPartitionSpecification(this):t.visitChildren(this)}},mi=class extends p{constructor(t,e){super(t,e)}partitionElement(t){return void 0===t?this.getRuleContexts(Di):this.getRuleContext(t,Di)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_partitionElements}accept(t){return t.visitPartitionElements?t.visitPartitionElements(this):t.visitChildren(this)}},Di=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}optionalCollate(){return this.getRuleContext(0,mn)}optionalClass(){return this.getRuleContext(0,Dn)}functionExpressionWindowless(){return this.getRuleContext(0,GR)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_partitionElement}accept(t){return t.visitPartitionElement?t.visitPartitionElement(this):t.visitChildren(this)}},pi=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_optionalTableAccessMethodClause}accept(t){return t.visitOptionalTableAccessMethodClause?t.visitOptionalTableAccessMethodClause(this):t.visitChildren(this)}},gi=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}relOptions(){return this.getRuleContext(0,Ma)}WITHOUT(){return this.getToken(Ps.WITHOUT,0)}OIDS(){return this.getToken(Ps.OIDS,0)}get ruleIndex(){return Ps.RULE_with}accept(t){return t.visitWith?t.visitWith(this):t.visitChildren(this)}},xi=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(Ps.ON,0)}COMMIT(){return this.getToken(Ps.COMMIT,0)}DROP(){return this.getToken(Ps.DROP,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}ROWS(){return this.getToken(Ps.ROWS,0)}PRESERVE(){return this.getToken(Ps.PRESERVE,0)}get ruleIndex(){return Ps.RULE_onCommitOption}accept(t){return t.visitOnCommitOption?t.visitOnCommitOption(this):t.visitChildren(this)}},ki=class extends p{constructor(t,e){super(t,e)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_optionalTablespace}accept(t){return t.visitOptionalTablespace?t.visitOptionalTablespace(this):t.visitChildren(this)}},Hi=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}INDEX(){return this.getToken(Ps.INDEX,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_usingIndexTablespace}accept(t){return t.visitUsingIndexTablespace?t.visitUsingIndexTablespace(this):t.visitChildren(this)}},Gi=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}get ruleIndex(){return Ps.RULE_existingIndex}accept(t){return t.visitExistingIndex?t.visitExistingIndex(this):t.visitChildren(this)}},Fi=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}anyName(){return this.getRuleContext(0,Wc)}optionalNameList(){return this.getRuleContext(0,FE)}ON(){return this.getToken(Ps.ON,0)}expressionList(){return this.getRuleContext(0,AA)}FROM(){return this.getToken(Ps.FROM,0)}fromList(){return this.getRuleContext(0,ho)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createStatsStatement}accept(t){return t.visitCreateStatsStatement?t.visitCreateStatsStatement(this):t.visitChildren(this)}},vi=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}STATISTICS(t){return void 0===t?this.getTokens(Ps.STATISTICS):this.getToken(Ps.STATISTICS,t)}anyName(){return this.getRuleContext(0,Wc)}SET(){return this.getToken(Ps.SET,0)}signedIconst(){return this.getRuleContext(0,SS)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_alterStatsStatement}accept(t){return t.visitAlterStatsStatement?t.visitAlterStatsStatement(this):t.visitChildren(this)}},Bi=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}temporaryOption(){return this.getRuleContext(0,Qa)}TABLE(){return this.getToken(Ps.TABLE,0)}createAsTarget(){return this.getRuleContext(0,yi)}AS(){return this.getToken(Ps.AS,0)}selectStatement(){return this.getRuleContext(0,_T)}withData(){return this.getRuleContext(0,fi)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createAsStatement}accept(t){return t.visitCreateAsStatement?t.visitCreateAsStatement(this):t.visitChildren(this)}},yi=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}optionalTableAccessMethodClause(){return this.getRuleContext(0,pi)}with(){return this.getRuleContext(0,gi)}onCommitOption(){return this.getRuleContext(0,xi)}optionalTablespace(){return this.getRuleContext(0,ki)}get ruleIndex(){return Ps.RULE_createAsTarget}accept(t){return t.visitCreateAsTarget?t.visitCreateAsTarget(this):t.visitChildren(this)}},fi=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}NO(){return this.getToken(Ps.NO,0)}get ruleIndex(){return Ps.RULE_withData}accept(t){return t.visitWithData?t.visitWithData(this):t.visitChildren(this)}},Yi=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}VIEW(){return this.getToken(Ps.VIEW,0)}createMaterializedViewTarget(){return this.getRuleContext(0,wi)}AS(){return this.getToken(Ps.AS,0)}selectStatement(){return this.getRuleContext(0,_T)}withData(){return this.getRuleContext(0,fi)}UNLOGGED(){return this.getToken(Ps.UNLOGGED,0)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createMaterializedViewStatement}accept(t){return t.visitCreateMaterializedViewStatement?t.visitCreateMaterializedViewStatement(this):t.visitChildren(this)}},wi=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}optionalTableAccessMethodClause(){return this.getRuleContext(0,pi)}optionalRelOptions(){return this.getRuleContext(0,da)}optionalTablespace(){return this.getRuleContext(0,ki)}get ruleIndex(){return Ps.RULE_createMaterializedViewTarget}accept(t){return t.visitCreateMaterializedViewTarget?t.visitCreateMaterializedViewTarget(this):t.visitChildren(this)}},bi=class extends p{constructor(t,e){super(t,e)}REFRESH(){return this.getToken(Ps.REFRESH,0)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}VIEW(){return this.getToken(Ps.VIEW,0)}qualifiedName(){return this.getRuleContext(0,tS)}withData(){return this.getRuleContext(0,fi)}CONCURRENTLY(){return this.getToken(Ps.CONCURRENTLY,0)}get ruleIndex(){return Ps.RULE_refreshMaterializedViewStatement}accept(t){return t.visitRefreshMaterializedViewStatement?t.visitRefreshMaterializedViewStatement(this):t.visitChildren(this)}},Wi=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}temporaryOption(){return this.getRuleContext(0,Qa)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}qualifiedName(){return this.getRuleContext(0,tS)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}sequenceOptionList(){return this.getRuleContext(0,Ki)}get ruleIndex(){return Ps.RULE_createSequenceStatement}accept(t){return t.visitCreateSequenceStatement?t.visitCreateSequenceStatement(this):t.visitChildren(this)}},Vi=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceName(){return this.getRuleContext(0,zA)}sequenceOptionList(){return this.getRuleContext(0,Ki)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_alterSequenceStatement}accept(t){return t.visitAlterSequenceStatement?t.visitAlterSequenceStatement(this):t.visitChildren(this)}},Xi=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}sequenceOptionList(){return this.getRuleContext(0,Ki)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalParenthesizedSeqOptionsList}accept(t){return t.visitOptionalParenthesizedSeqOptionsList?t.visitOptionalParenthesizedSeqOptionsList(this):t.visitChildren(this)}},Ki=class extends p{constructor(t,e){super(t,e)}sequenceOptionItem(t){return void 0===t?this.getRuleContexts(Qi):this.getRuleContext(t,Qi)}get ruleIndex(){return Ps.RULE_sequenceOptionList}accept(t){return t.visitSequenceOptionList?t.visitSequenceOptionList(this):t.visitChildren(this)}},Qi=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(Ps.AS,0)}simpleTypeName(){return this.getRuleContext(0,fo)}CACHE(){return this.getToken(Ps.CACHE,0)}numericOnly(){return this.getRuleContext(0,Ji)}CYCLE(){return this.getToken(Ps.CYCLE,0)}INCREMENT(){return this.getToken(Ps.INCREMENT,0)}BY(){return this.getToken(Ps.BY,0)}MAXVALUE(){return this.getToken(Ps.MAXVALUE,0)}MINVALUE(){return this.getToken(Ps.MINVALUE,0)}NO(){return this.getToken(Ps.NO,0)}OWNED(){return this.getToken(Ps.OWNED,0)}anyName(){return this.getRuleContext(0,Wc)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}NAME_P(){return this.getToken(Ps.NAME_P,0)}START(){return this.getToken(Ps.START,0)}optionalWith(){return this.getRuleContext(0,gs)}RESTART(){return this.getToken(Ps.RESTART,0)}get ruleIndex(){return Ps.RULE_sequenceOptionItem}accept(t){return t.visitSequenceOptionItem?t.visitSequenceOptionItem(this):t.visitChildren(this)}},Ji=class extends p{constructor(t,e){super(t,e)}fconst(){return this.getRuleContext(0,ES)}PLUS(){return this.getToken(Ps.PLUS,0)}MINUS(){return this.getToken(Ps.MINUS,0)}signedIconst(){return this.getRuleContext(0,SS)}get ruleIndex(){return Ps.RULE_numericOnly}accept(t){return t.visitNumericOnly?t.visitNumericOnly(this):t.visitChildren(this)}},Zi=class extends p{constructor(t,e){super(t,e)}numericOnly(t){return void 0===t?this.getRuleContexts(Ji):this.getRuleContext(t,Ji)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_numericOnlyList}accept(t){return t.visitNumericOnlyList?t.visitNumericOnlyList(this):t.visitChildren(this)}},qi=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}optionalOrReplace(){return this.getRuleContext(0,kn)}optionalProcedural(){return this.getRuleContext(0,tr)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}name(){return this.getRuleContext(0,sS)}TRUSTED(){return this.getToken(Ps.TRUSTED,0)}HANDLER(){return this.getToken(Ps.HANDLER,0)}handlerName(){return this.getRuleContext(0,ji)}optionalInlineHandler(){return this.getRuleContext(0,zi)}validatorClause(){return this.getRuleContext(0,$i)}get ruleIndex(){return Ps.RULE_createProcedureLangStatement}accept(t){return t.visitCreateProcedureLangStatement?t.visitCreateProcedureLangStatement(this):t.visitChildren(this)}},ji=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}attributes(){return this.getRuleContext(0,Vc)}get ruleIndex(){return Ps.RULE_handlerName}accept(t){return t.visitHandlerName?t.visitHandlerName(this):t.visitChildren(this)}},zi=class extends p{constructor(t,e){super(t,e)}INLINE_P(){return this.getToken(Ps.INLINE_P,0)}handlerName(){return this.getRuleContext(0,ji)}get ruleIndex(){return Ps.RULE_optionalInlineHandler}accept(t){return t.visitOptionalInlineHandler?t.visitOptionalInlineHandler(this):t.visitChildren(this)}},$i=class extends p{constructor(t,e){super(t,e)}VALIDATOR(){return this.getToken(Ps.VALIDATOR,0)}handlerName(){return this.getRuleContext(0,ji)}NO(){return this.getToken(Ps.NO,0)}get ruleIndex(){return Ps.RULE_validatorClause}accept(t){return t.visitValidatorClause?t.visitValidatorClause(this):t.visitChildren(this)}},tr=class extends p{constructor(t,e){super(t,e)}PROCEDURAL(){return this.getToken(Ps.PROCEDURAL,0)}get ruleIndex(){return Ps.RULE_optionalProcedural}accept(t){return t.visitOptionalProcedural?t.visitOptionalProcedural(this):t.visitChildren(this)}},er=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}name(){return this.getRuleContext(0,sS)}optionalTablespaceOwner(){return this.getRuleContext(0,sr)}LOCATION(){return this.getToken(Ps.LOCATION,0)}sconst(){return this.getRuleContext(0,oS)}optionalRelOptions(){return this.getRuleContext(0,da)}get ruleIndex(){return Ps.RULE_createTablespaceStatement}accept(t){return t.visitCreateTablespaceStatement?t.visitCreateTablespaceStatement(this):t.visitChildren(this)}},sr=class extends p{constructor(t,e){super(t,e)}OWNER(){return this.getToken(Ps.OWNER,0)}roleName(){return this.getRuleContext(0,lS)}get ruleIndex(){return Ps.RULE_optionalTablespaceOwner}accept(t){return t.visitOptionalTablespaceOwner?t.visitOptionalTablespaceOwner(this):t.visitChildren(this)}},ar=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}name(){return this.getRuleContext(0,sS)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_dropTablespaceStatement}accept(t){return t.visitDropTablespaceStatement?t.visitDropTablespaceStatement(this):t.visitChildren(this)}},ir=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}name(){return this.getRuleContext(0,sS)}optionalWith(){return this.getRuleContext(0,gs)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}createExtensionOptionItem(t){return void 0===t?this.getRuleContexts(rr):this.getRuleContext(t,rr)}get ruleIndex(){return Ps.RULE_createExtensionStatement}accept(t){return t.visitCreateExtensionStatement?t.visitCreateExtensionStatement(this):t.visitChildren(this)}},rr=class extends p{constructor(t,e){super(t,e)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}VERSION_P(){return this.getToken(Ps.VERSION_P,0)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}FROM(){return this.getToken(Ps.FROM,0)}CASCADE(){return this.getToken(Ps.CASCADE,0)}get ruleIndex(){return Ps.RULE_createExtensionOptionItem}accept(t){return t.visitCreateExtensionOptionItem?t.visitCreateExtensionOptionItem(this):t.visitChildren(this)}},cr=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}name(){return this.getRuleContext(0,sS)}UPDATE(){return this.getToken(Ps.UPDATE,0)}alterExtensionOptionItem(t){return void 0===t?this.getRuleContexts(nr):this.getRuleContext(t,nr)}get ruleIndex(){return Ps.RULE_alterExtensionStatement}accept(t){return t.visitAlterExtensionStatement?t.visitAlterExtensionStatement(this):t.visitChildren(this)}},nr=class extends p{constructor(t,e){super(t,e)}TO(){return this.getToken(Ps.TO,0)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}get ruleIndex(){return Ps.RULE_alterExtensionOptionItem}accept(t){return t.visitAlterExtensionOptionItem?t.visitAlterExtensionOptionItem(this):t.visitChildren(this)}},hr=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}name(t){return void 0===t?this.getRuleContexts(sS):this.getRuleContext(t,sS)}addOrDrop(){return this.getRuleContext(0,Ys)}objectTypeName(){return this.getRuleContext(0,fc)}ROLE(){return this.getToken(Ps.ROLE,0)}roleName(){return this.getRuleContext(0,lS)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}objectTypeAnyName(){return this.getRuleContext(0,yc)}anyName(){return this.getRuleContext(0,Wc)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceName(){return this.getRuleContext(0,zA)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypes(){return this.getRuleContext(0,Xn)}CAST(){return this.getToken(Ps.CAST,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}AS(){return this.getToken(Ps.AS,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}operatorWithArgumentTypes(){return this.getRuleContext(0,hh)}CLASS(){return this.getToken(Ps.CLASS,0)}USING(){return this.getToken(Ps.USING,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}TRANSFORM(){return this.getToken(Ps.TRANSFORM,0)}FOR(){return this.getToken(Ps.FOR,0)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}get ruleIndex(){return Ps.RULE_alterExtensionContentsStatement}accept(t){return t.visitAlterExtensionContentsStatement?t.visitAlterExtensionContentsStatement(this):t.visitChildren(this)}},Er=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}name(){return this.getRuleContext(0,sS)}createGenericOptions(){return this.getRuleContext(0,Ar)}forwardOptions(){return this.getRuleContext(0,or)}get ruleIndex(){return Ps.RULE_createForeignDataWrapperStatement}accept(t){return t.visitCreateForeignDataWrapperStatement?t.visitCreateForeignDataWrapperStatement(this):t.visitChildren(this)}},Tr=class extends p{constructor(t,e){super(t,e)}HANDLER(){return this.getToken(Ps.HANDLER,0)}handlerName(){return this.getRuleContext(0,ji)}NO(){return this.getToken(Ps.NO,0)}VALIDATOR(){return this.getToken(Ps.VALIDATOR,0)}get ruleIndex(){return Ps.RULE_forwardOption}accept(t){return t.visitForwardOption?t.visitForwardOption(this):t.visitChildren(this)}},or=class extends p{constructor(t,e){super(t,e)}forwardOption(t){return void 0===t?this.getRuleContexts(Tr):this.getRuleContext(t,Tr)}get ruleIndex(){return Ps.RULE_forwardOptions}accept(t){return t.visitForwardOptions?t.visitForwardOptions(this):t.visitChildren(this)}},Rr=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}name(){return this.getRuleContext(0,sS)}alterGenericOptions(){return this.getRuleContext(0,lr)}forwardOptions(){return this.getRuleContext(0,or)}get ruleIndex(){return Ps.RULE_alterForeignDataWrapperStatement}accept(t){return t.visitAlterForeignDataWrapperStatement?t.visitAlterForeignDataWrapperStatement(this):t.visitChildren(this)}},Ar=class extends p{constructor(t,e){super(t,e)}OPTIONS(){return this.getToken(Ps.OPTIONS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}genericOptionList(){return this.getRuleContext(0,Sr)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_createGenericOptions}accept(t){return t.visitCreateGenericOptions?t.visitCreateGenericOptions(this):t.visitChildren(this)}},Sr=class extends p{constructor(t,e){super(t,e)}genericOptionElement(t){return void 0===t?this.getRuleContexts(ur):this.getRuleContext(t,ur)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_genericOptionList}accept(t){return t.visitGenericOptionList?t.visitGenericOptionList(this):t.visitChildren(this)}},lr=class extends p{constructor(t,e){super(t,e)}OPTIONS(){return this.getToken(Ps.OPTIONS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}alterGenericOptionList(){return this.getRuleContext(0,Or)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_alterGenericOptions}accept(t){return t.visitAlterGenericOptions?t.visitAlterGenericOptions(this):t.visitChildren(this)}},Or=class extends p{constructor(t,e){super(t,e)}alterGenericOptionElem(t){return void 0===t?this.getRuleContexts(Ir):this.getRuleContext(t,Ir)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_alterGenericOptionList}accept(t){return t.visitAlterGenericOptionList?t.visitAlterGenericOptionList(this):t.visitChildren(this)}},Ir=class extends p{constructor(t,e){super(t,e)}genericOptionElement(){return this.getRuleContext(0,ur)}SET(){return this.getToken(Ps.SET,0)}ADD_P(){return this.getToken(Ps.ADD_P,0)}DROP(){return this.getToken(Ps.DROP,0)}genericOptionName(){return this.getRuleContext(0,Nr)}get ruleIndex(){return Ps.RULE_alterGenericOptionElem}accept(t){return t.visitAlterGenericOptionElem?t.visitAlterGenericOptionElem(this):t.visitChildren(this)}},ur=class extends p{constructor(t,e){super(t,e)}genericOptionName(){return this.getRuleContext(0,Nr)}genericOptionArgument(){return this.getRuleContext(0,Lr)}get ruleIndex(){return Ps.RULE_genericOptionElement}accept(t){return t.visitGenericOptionElement?t.visitGenericOptionElement(this):t.visitChildren(this)}},Nr=class extends p{constructor(t,e){super(t,e)}columnLabel(){return this.getRuleContext(0,CS)}get ruleIndex(){return Ps.RULE_genericOptionName}accept(t){return t.visitGenericOptionName?t.visitGenericOptionName(this):t.visitChildren(this)}},Lr=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_genericOptionArgument}accept(t){return t.visitGenericOptionArgument?t.visitGenericOptionArgument(this):t.visitChildren(this)}},Cr=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}SERVER(){return this.getToken(Ps.SERVER,0)}name(t){return void 0===t?this.getRuleContexts(sS):this.getRuleContext(t,sS)}optionalType(){return this.getRuleContext(0,_r)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}createGenericOptions(){return this.getRuleContext(0,Ar)}foreignServerVersion(){return this.getRuleContext(0,Pr)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createForeignServerStatement}accept(t){return t.visitCreateForeignServerStatement?t.visitCreateForeignServerStatement(this):t.visitChildren(this)}},_r=class extends p{constructor(t,e){super(t,e)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_optionalType}accept(t){return t.visitOptionalType?t.visitOptionalType(this):t.visitChildren(this)}},Pr=class extends p{constructor(t,e){super(t,e)}VERSION_P(){return this.getToken(Ps.VERSION_P,0)}sconst(){return this.getRuleContext(0,oS)}NULL_P(){return this.getToken(Ps.NULL_P,0)}get ruleIndex(){return Ps.RULE_foreignServerVersion}accept(t){return t.visitForeignServerVersion?t.visitForeignServerVersion(this):t.visitChildren(this)}},Mr=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}SERVER(){return this.getToken(Ps.SERVER,0)}name(){return this.getRuleContext(0,sS)}alterGenericOptions(){return this.getRuleContext(0,lr)}foreignServerVersion(){return this.getRuleContext(0,Pr)}get ruleIndex(){return Ps.RULE_alterForeignServerStatement}accept(t){return t.visitAlterForeignServerStatement?t.visitAlterForeignServerStatement(this):t.visitChildren(this)}},dr=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}TABLE(){return this.getToken(Ps.TABLE,0)}qualifiedName(t){return void 0===t?this.getRuleContexts(tS):this.getRuleContext(t,tS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}optionalTableElementList(){return this.getRuleContext(0,Ja)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}inheritClause(){return this.getRuleContext(0,Mi)}SERVER(){return this.getToken(Ps.SERVER,0)}name(){return this.getRuleContext(0,sS)}createGenericOptions(){return this.getRuleContext(0,Ar)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}PARTITION(){return this.getToken(Ps.PARTITION,0)}OF(){return this.getToken(Ps.OF,0)}optionalTypedTableElementList(){return this.getRuleContext(0,Za)}partitionBoundSpecification(){return this.getRuleContext(0,ga)}get ruleIndex(){return Ps.RULE_createForeignTableStatement}accept(t){return t.visitCreateForeignTableStatement?t.visitCreateForeignTableStatement(this):t.visitChildren(this)}},Ur=class extends p{constructor(t,e){super(t,e)}IMPORT_P(){return this.getToken(Ps.IMPORT_P,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}name(t){return void 0===t?this.getRuleContexts(sS):this.getRuleContext(t,sS)}importQualification(){return this.getRuleContext(0,Dr)}FROM(){return this.getToken(Ps.FROM,0)}SERVER(){return this.getToken(Ps.SERVER,0)}INTO(){return this.getToken(Ps.INTO,0)}createGenericOptions(){return this.getRuleContext(0,Ar)}get ruleIndex(){return Ps.RULE_importForeignSchemaStatement}accept(t){return t.visitImportForeignSchemaStatement?t.visitImportForeignSchemaStatement(this):t.visitChildren(this)}},mr=class extends p{constructor(t,e){super(t,e)}LIMIT(){return this.getToken(Ps.LIMIT,0)}TO(){return this.getToken(Ps.TO,0)}EXCEPT(){return this.getToken(Ps.EXCEPT,0)}get ruleIndex(){return Ps.RULE_importQualificationType}accept(t){return t.visitImportQualificationType?t.visitImportQualificationType(this):t.visitChildren(this)}},Dr=class extends p{constructor(t,e){super(t,e)}importQualificationType(){return this.getRuleContext(0,mr)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}relationExpressionList(){return this.getRuleContext(0,No)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_importQualification}accept(t){return t.visitImportQualification?t.visitImportQualification(this):t.visitChildren(this)}},pr=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}USER(){return this.getToken(Ps.USER,0)}MAPPING(){return this.getToken(Ps.MAPPING,0)}FOR(){return this.getToken(Ps.FOR,0)}authIdentifier(){return this.getRuleContext(0,gr)}SERVER(){return this.getToken(Ps.SERVER,0)}name(){return this.getRuleContext(0,sS)}createGenericOptions(){return this.getRuleContext(0,Ar)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_createUserMappingStatement}accept(t){return t.visitCreateUserMappingStatement?t.visitCreateUserMappingStatement(this):t.visitChildren(this)}},gr=class extends p{constructor(t,e){super(t,e)}roleName(){return this.getRuleContext(0,lS)}USER(){return this.getToken(Ps.USER,0)}get ruleIndex(){return Ps.RULE_authIdentifier}accept(t){return t.visitAuthIdentifier?t.visitAuthIdentifier(this):t.visitChildren(this)}},xr=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}USER(){return this.getToken(Ps.USER,0)}MAPPING(){return this.getToken(Ps.MAPPING,0)}FOR(){return this.getToken(Ps.FOR,0)}authIdentifier(){return this.getRuleContext(0,gr)}SERVER(){return this.getToken(Ps.SERVER,0)}name(){return this.getRuleContext(0,sS)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_dropUserMappingStatement}accept(t){return t.visitDropUserMappingStatement?t.visitDropUserMappingStatement(this):t.visitChildren(this)}},kr=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}USER(){return this.getToken(Ps.USER,0)}MAPPING(){return this.getToken(Ps.MAPPING,0)}FOR(){return this.getToken(Ps.FOR,0)}authIdentifier(){return this.getRuleContext(0,gr)}SERVER(){return this.getToken(Ps.SERVER,0)}name(){return this.getRuleContext(0,sS)}alterGenericOptions(){return this.getRuleContext(0,lr)}get ruleIndex(){return Ps.RULE_alterUserMappingStatement}accept(t){return t.visitAlterUserMappingStatement?t.visitAlterUserMappingStatement(this):t.visitChildren(this)}},Hr=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}POLICY(){return this.getToken(Ps.POLICY,0)}name(){return this.getRuleContext(0,sS)}ON(){return this.getToken(Ps.ON,0)}qualifiedName(){return this.getRuleContext(0,tS)}rowSecurityDefaultPermissive(){return this.getRuleContext(0,yr)}rowSecurityDefaultForCmd(){return this.getRuleContext(0,fr)}rowSecurityOptionalToUser(){return this.getRuleContext(0,Br)}rowSecurityOptionalExpression(){return this.getRuleContext(0,Fr)}rowSecurityOptionalWithCheck(){return this.getRuleContext(0,vr)}get ruleIndex(){return Ps.RULE_createPolicyStatement}accept(t){return t.visitCreatePolicyStatement?t.visitCreatePolicyStatement(this):t.visitChildren(this)}},Gr=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}POLICY(){return this.getToken(Ps.POLICY,0)}name(){return this.getRuleContext(0,sS)}ON(){return this.getToken(Ps.ON,0)}qualifiedName(){return this.getRuleContext(0,tS)}rowSecurityOptionalToUser(){return this.getRuleContext(0,Br)}rowSecurityOptionalExpression(){return this.getRuleContext(0,Fr)}rowSecurityOptionalWithCheck(){return this.getRuleContext(0,vr)}get ruleIndex(){return Ps.RULE_alterPolicyStatement}accept(t){return t.visitAlterPolicyStatement?t.visitAlterPolicyStatement(this):t.visitChildren(this)}},Fr=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_rowSecurityOptionalExpression}accept(t){return t.visitRowSecurityOptionalExpression?t.visitRowSecurityOptionalExpression(this):t.visitChildren(this)}},vr=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}CHECK(){return this.getToken(Ps.CHECK,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_rowSecurityOptionalWithCheck}accept(t){return t.visitRowSecurityOptionalWithCheck?t.visitRowSecurityOptionalWithCheck(this):t.visitChildren(this)}},Br=class extends p{constructor(t,e){super(t,e)}TO(){return this.getToken(Ps.TO,0)}roleNameList(){return this.getRuleContext(0,OS)}get ruleIndex(){return Ps.RULE_rowSecurityOptionalToUser}accept(t){return t.visitRowSecurityOptionalToUser?t.visitRowSecurityOptionalToUser(this):t.visitChildren(this)}},yr=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(Ps.AS,0)}identifier(){return this.getRuleContext(0,_S)}get ruleIndex(){return Ps.RULE_rowSecurityDefaultPermissive}accept(t){return t.visitRowSecurityDefaultPermissive?t.visitRowSecurityDefaultPermissive(this):t.visitChildren(this)}},fr=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}rowSecurityCommand(){return this.getRuleContext(0,Yr)}get ruleIndex(){return Ps.RULE_rowSecurityDefaultForCmd}accept(t){return t.visitRowSecurityDefaultForCmd?t.visitRowSecurityDefaultForCmd(this):t.visitChildren(this)}},Yr=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(Ps.ALL,0)}SELECT(){return this.getToken(Ps.SELECT,0)}INSERT(){return this.getToken(Ps.INSERT,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}get ruleIndex(){return Ps.RULE_rowSecurityCommand}accept(t){return t.visitRowSecurityCommand?t.visitRowSecurityCommand(this):t.visitChildren(this)}},wr=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}ACCESS(){return this.getToken(Ps.ACCESS,0)}METHOD(){return this.getToken(Ps.METHOD,0)}name(){return this.getRuleContext(0,sS)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}accessMethodType(){return this.getRuleContext(0,br)}HANDLER(){return this.getToken(Ps.HANDLER,0)}handlerName(){return this.getRuleContext(0,ji)}get ruleIndex(){return Ps.RULE_createAccessMethodStatement}accept(t){return t.visitCreateAccessMethodStatement?t.visitCreateAccessMethodStatement(this):t.visitChildren(this)}},br=class extends p{constructor(t,e){super(t,e)}INDEX(){return this.getToken(Ps.INDEX,0)}TABLE(){return this.getToken(Ps.TABLE,0)}get ruleIndex(){return Ps.RULE_accessMethodType}accept(t){return t.visitAccessMethodType?t.visitAccessMethodType(this):t.visitChildren(this)}},Wr=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}name(){return this.getRuleContext(0,sS)}triggerActionTime(){return this.getRuleContext(0,Vr)}triggerEvents(){return this.getRuleContext(0,Xr)}ON(){return this.getToken(Ps.ON,0)}qualifiedName(){return this.getRuleContext(0,tS)}triggerReferencing(){return this.getRuleContext(0,Qr)}triggerForSpec(){return this.getRuleContext(0,$r)}triggerWhen(){return this.getRuleContext(0,ec)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}functionOrProcedure(){return this.getRuleContext(0,sc)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}triggerFunctionArguments(){return this.getRuleContext(0,ac)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}AFTER(){return this.getToken(Ps.AFTER,0)}optionalConstraintFromTable(){return this.getRuleContext(0,rc)}constraintAttributeSpecification(){return this.getRuleContext(0,cc)}FOR(){return this.getToken(Ps.FOR,0)}EACH(){return this.getToken(Ps.EACH,0)}ROW(){return this.getToken(Ps.ROW,0)}get ruleIndex(){return Ps.RULE_createTriggerStatement}accept(t){return t.visitCreateTriggerStatement?t.visitCreateTriggerStatement(this):t.visitChildren(this)}},Vr=class extends p{constructor(t,e){super(t,e)}BEFORE(){return this.getToken(Ps.BEFORE,0)}AFTER(){return this.getToken(Ps.AFTER,0)}INSTEAD(){return this.getToken(Ps.INSTEAD,0)}OF(){return this.getToken(Ps.OF,0)}get ruleIndex(){return Ps.RULE_triggerActionTime}accept(t){return t.visitTriggerActionTime?t.visitTriggerActionTime(this):t.visitChildren(this)}},Xr=class extends p{constructor(t,e){super(t,e)}triggerOneEvent(t){return void 0===t?this.getRuleContexts(Kr):this.getRuleContext(t,Kr)}OR(t){return void 0===t?this.getTokens(Ps.OR):this.getToken(Ps.OR,t)}get ruleIndex(){return Ps.RULE_triggerEvents}accept(t){return t.visitTriggerEvents?t.visitTriggerEvents(this):t.visitChildren(this)}},Kr=class extends p{constructor(t,e){super(t,e)}INSERT(){return this.getToken(Ps.INSERT,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}OF(){return this.getToken(Ps.OF,0)}columnList(){return this.getRuleContext(0,Ai)}TRUNCATE(){return this.getToken(Ps.TRUNCATE,0)}get ruleIndex(){return Ps.RULE_triggerOneEvent}accept(t){return t.visitTriggerOneEvent?t.visitTriggerOneEvent(this):t.visitChildren(this)}},Qr=class extends p{constructor(t,e){super(t,e)}REFERENCING(){return this.getToken(Ps.REFERENCING,0)}triggerTransitions(){return this.getRuleContext(0,Jr)}get ruleIndex(){return Ps.RULE_triggerReferencing}accept(t){return t.visitTriggerReferencing?t.visitTriggerReferencing(this):t.visitChildren(this)}},Jr=class extends p{constructor(t,e){super(t,e)}triggerTransition(t){return void 0===t?this.getRuleContexts(Zr):this.getRuleContext(t,Zr)}get ruleIndex(){return Ps.RULE_triggerTransitions}accept(t){return t.visitTriggerTransitions?t.visitTriggerTransitions(this):t.visitChildren(this)}},Zr=class extends p{constructor(t,e){super(t,e)}transitionOldOrNew(){return this.getRuleContext(0,qr)}transitionRowOrTable(){return this.getRuleContext(0,jr)}optionalAs(){return this.getRuleContext(0,CE)}transitionRelName(){return this.getRuleContext(0,zr)}get ruleIndex(){return Ps.RULE_triggerTransition}accept(t){return t.visitTriggerTransition?t.visitTriggerTransition(this):t.visitChildren(this)}},qr=class extends p{constructor(t,e){super(t,e)}NEW(){return this.getToken(Ps.NEW,0)}OLD(){return this.getToken(Ps.OLD,0)}get ruleIndex(){return Ps.RULE_transitionOldOrNew}accept(t){return t.visitTransitionOldOrNew?t.visitTransitionOldOrNew(this):t.visitChildren(this)}},jr=class extends p{constructor(t,e){super(t,e)}TABLE(){return this.getToken(Ps.TABLE,0)}ROW(){return this.getToken(Ps.ROW,0)}get ruleIndex(){return Ps.RULE_transitionRowOrTable}accept(t){return t.visitTransitionRowOrTable?t.visitTransitionRowOrTable(this):t.visitChildren(this)}},zr=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_transitionRelName}accept(t){return t.visitTransitionRelName?t.visitTransitionRelName(this):t.visitChildren(this)}},$r=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}triggerForType(){return this.getRuleContext(0,tc)}EACH(){return this.getToken(Ps.EACH,0)}get ruleIndex(){return Ps.RULE_triggerForSpec}accept(t){return t.visitTriggerForSpec?t.visitTriggerForSpec(this):t.visitChildren(this)}},tc=class extends p{constructor(t,e){super(t,e)}ROW(){return this.getToken(Ps.ROW,0)}STATEMENT(){return this.getToken(Ps.STATEMENT,0)}get ruleIndex(){return Ps.RULE_triggerForType}accept(t){return t.visitTriggerForType?t.visitTriggerForType(this):t.visitChildren(this)}},ec=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_triggerWhen}accept(t){return t.visitTriggerWhen?t.visitTriggerWhen(this):t.visitChildren(this)}},sc=class extends p{constructor(t,e){super(t,e)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}get ruleIndex(){return Ps.RULE_functionOrProcedure}accept(t){return t.visitFunctionOrProcedure?t.visitFunctionOrProcedure(this):t.visitChildren(this)}},ac=class extends p{constructor(t,e){super(t,e)}triggerFunctionArgument(t){return void 0===t?this.getRuleContexts(ic):this.getRuleContext(t,ic)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_triggerFunctionArguments}accept(t){return t.visitTriggerFunctionArguments?t.visitTriggerFunctionArguments(this):t.visitChildren(this)}},ic=class extends p{constructor(t,e){super(t,e)}iconst(){return this.getRuleContext(0,TS)}fconst(){return this.getRuleContext(0,ES)}sconst(){return this.getRuleContext(0,oS)}columnLabel(){return this.getRuleContext(0,CS)}get ruleIndex(){return Ps.RULE_triggerFunctionArgument}accept(t){return t.visitTriggerFunctionArgument?t.visitTriggerFunctionArgument(this):t.visitChildren(this)}},rc=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(Ps.FROM,0)}qualifiedName(){return this.getRuleContext(0,tS)}get ruleIndex(){return Ps.RULE_optionalConstraintFromTable}accept(t){return t.visitOptionalConstraintFromTable?t.visitOptionalConstraintFromTable(this):t.visitChildren(this)}},cc=class extends p{constructor(t,e){super(t,e)}constraintAttributeElement(t){return void 0===t?this.getRuleContexts(nc):this.getRuleContext(t,nc)}get ruleIndex(){return Ps.RULE_constraintAttributeSpecification}accept(t){return t.visitConstraintAttributeSpecification?t.visitConstraintAttributeSpecification(this):t.visitChildren(this)}},nc=class extends p{constructor(t,e){super(t,e)}NOT(){return this.getToken(Ps.NOT,0)}DEFERRABLE(){return this.getToken(Ps.DEFERRABLE,0)}INITIALLY(){return this.getToken(Ps.INITIALLY,0)}IMMEDIATE(){return this.getToken(Ps.IMMEDIATE,0)}DEFERRED(){return this.getToken(Ps.DEFERRED,0)}VALID(){return this.getToken(Ps.VALID,0)}NO(){return this.getToken(Ps.NO,0)}INHERIT(){return this.getToken(Ps.INHERIT,0)}get ruleIndex(){return Ps.RULE_constraintAttributeElement}accept(t){return t.visitConstraintAttributeElement?t.visitConstraintAttributeElement(this):t.visitChildren(this)}},hc=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}EVENT(){return this.getToken(Ps.EVENT,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}name(){return this.getRuleContext(0,sS)}ON(){return this.getToken(Ps.ON,0)}columnLabel(){return this.getRuleContext(0,CS)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}functionOrProcedure(){return this.getRuleContext(0,sc)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}WHEN(){return this.getToken(Ps.WHEN,0)}eventTriggerWhenList(){return this.getRuleContext(0,Ec)}get ruleIndex(){return Ps.RULE_createEventTriggerStatement}accept(t){return t.visitCreateEventTriggerStatement?t.visitCreateEventTriggerStatement(this):t.visitChildren(this)}},Ec=class extends p{constructor(t,e){super(t,e)}eventTriggerWhenItem(t){return void 0===t?this.getRuleContexts(Tc):this.getRuleContext(t,Tc)}AND(t){return void 0===t?this.getTokens(Ps.AND):this.getToken(Ps.AND,t)}get ruleIndex(){return Ps.RULE_eventTriggerWhenList}accept(t){return t.visitEventTriggerWhenList?t.visitEventTriggerWhenList(this):t.visitChildren(this)}},Tc=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}IN_P(){return this.getToken(Ps.IN_P,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}eventTriggerValueList(){return this.getRuleContext(0,oc)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_eventTriggerWhenItem}accept(t){return t.visitEventTriggerWhenItem?t.visitEventTriggerWhenItem(this):t.visitChildren(this)}},oc=class extends p{constructor(t,e){super(t,e)}sconst(t){return void 0===t?this.getRuleContexts(oS):this.getRuleContext(t,oS)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_eventTriggerValueList}accept(t){return t.visitEventTriggerValueList?t.visitEventTriggerValueList(this):t.visitChildren(this)}},Rc=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}EVENT(){return this.getToken(Ps.EVENT,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}name(){return this.getRuleContext(0,sS)}enableTrigger(){return this.getRuleContext(0,Ac)}get ruleIndex(){return Ps.RULE_alterEventTriggerStatement}accept(t){return t.visitAlterEventTriggerStatement?t.visitAlterEventTriggerStatement(this):t.visitChildren(this)}},Ac=class extends p{constructor(t,e){super(t,e)}ENABLE_P(){return this.getToken(Ps.ENABLE_P,0)}REPLICA(){return this.getToken(Ps.REPLICA,0)}ALWAYS(){return this.getToken(Ps.ALWAYS,0)}DISABLE_P(){return this.getToken(Ps.DISABLE_P,0)}get ruleIndex(){return Ps.RULE_enableTrigger}accept(t){return t.visitEnableTrigger?t.visitEnableTrigger(this):t.visitChildren(this)}},Sc=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}ASSERTION(){return this.getToken(Ps.ASSERTION,0)}anyName(){return this.getRuleContext(0,Wc)}CHECK(){return this.getToken(Ps.CHECK,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}constraintAttributeSpecification(){return this.getRuleContext(0,cc)}get ruleIndex(){return Ps.RULE_createAssertionStatement}accept(t){return t.visitCreateAssertionStatement?t.visitCreateAssertionStatement(this):t.visitChildren(this)}},lc=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}optionalOrReplace(){return this.getRuleContext(0,kn)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}functionName(){return this.getRuleContext(0,rS)}aggregateArguments(){return this.getRuleContext(0,Wn)}definition(){return this.getRuleContext(0,Oc)}oldAggregateDefinition(){return this.getRuleContext(0,Nc)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}anyOperator(){return this.getRuleContext(0,ch)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}anyName(t){return void 0===t?this.getRuleContexts(Wc):this.getRuleContext(t,Wc)}AS(){return this.getToken(Ps.AS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}optionalTableFunctionElementList(){return this.getRuleContext(0,po)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}ENUM_P(){return this.getToken(Ps.ENUM_P,0)}enumValueList(){return this.getRuleContext(0,Cc)}RANGE(){return this.getToken(Ps.RANGE,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}PARSER(){return this.getToken(Ps.PARSER,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}TEMPLATE(){return this.getToken(Ps.TEMPLATE,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}COLLATION(){return this.getToken(Ps.COLLATION,0)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}FROM(){return this.getToken(Ps.FROM,0)}get ruleIndex(){return Ps.RULE_defineStatement}accept(t){return t.visitDefineStatement?t.visitDefineStatement(this):t.visitChildren(this)}},Oc=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}definitionElement(t){return void 0===t?this.getRuleContexts(Ic):this.getRuleContext(t,Ic)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_definition}accept(t){return t.visitDefinition?t.visitDefinition(this):t.visitChildren(this)}},Ic=class extends p{constructor(t,e){super(t,e)}columnLabel(){return this.getRuleContext(0,CS)}EQUAL(){return this.getToken(Ps.EQUAL,0)}definitionArgument(){return this.getRuleContext(0,uc)}get ruleIndex(){return Ps.RULE_definitionElement}accept(t){return t.visitDefinitionElement?t.visitDefinitionElement(this):t.visitChildren(this)}},uc=class extends p{constructor(t,e){super(t,e)}functionType(){return this.getRuleContext(0,bn)}reservedKeyword(){return this.getRuleContext(0,mS)}allOperatorQualifier(){return this.getRuleContext(0,oA)}numericOnly(){return this.getRuleContext(0,Ji)}sconst(){return this.getRuleContext(0,oS)}NONE(){return this.getToken(Ps.NONE,0)}get ruleIndex(){return Ps.RULE_definitionArgument}accept(t){return t.visitDefinitionArgument?t.visitDefinitionArgument(this):t.visitChildren(this)}},Nc=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}oldAggregateElement(t){return void 0===t?this.getRuleContexts(Lc):this.getRuleContext(t,Lc)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_oldAggregateDefinition}accept(t){return t.visitOldAggregateDefinition?t.visitOldAggregateDefinition(this):t.visitChildren(this)}},Lc=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}EQUAL(){return this.getToken(Ps.EQUAL,0)}definitionArgument(){return this.getRuleContext(0,uc)}get ruleIndex(){return Ps.RULE_oldAggregateElement}accept(t){return t.visitOldAggregateElement?t.visitOldAggregateElement(this):t.visitChildren(this)}},Cc=class extends p{constructor(t,e){super(t,e)}sconst(t){return void 0===t?this.getRuleContexts(oS):this.getRuleContext(t,oS)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_enumValueList}accept(t){return t.visitEnumValueList?t.visitEnumValueList(this):t.visitChildren(this)}},_c=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}anyName(){return this.getRuleContext(0,Wc)}ADD_P(){return this.getToken(Ps.ADD_P,0)}VALUE_P(){return this.getToken(Ps.VALUE_P,0)}optionalIfNotExists(){return this.getRuleContext(0,Pc)}sconst(t){return void 0===t?this.getRuleContexts(oS):this.getRuleContext(t,oS)}BEFORE(){return this.getToken(Ps.BEFORE,0)}AFTER(){return this.getToken(Ps.AFTER,0)}RENAME(){return this.getToken(Ps.RENAME,0)}TO(){return this.getToken(Ps.TO,0)}get ruleIndex(){return Ps.RULE_alterEnumStatement}accept(t){return t.visitAlterEnumStatement?t.visitAlterEnumStatement(this):t.visitChildren(this)}},Pc=class extends p{constructor(t,e){super(t,e)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_optionalIfNotExists}accept(t){return t.visitOptionalIfNotExists?t.visitOptionalIfNotExists(this):t.visitChildren(this)}},Mc=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}CLASS(){return this.getToken(Ps.CLASS,0)}anyName(){return this.getRuleContext(0,Wc)}FOR(){return this.getToken(Ps.FOR,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}typeName(){return this.getRuleContext(0,yo)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}optionalOperatorFamily(){return this.getRuleContext(0,mc)}AS(){return this.getToken(Ps.AS,0)}operatorClassItemList(){return this.getRuleContext(0,dc)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_createOperatorClassStatement}accept(t){return t.visitCreateOperatorClassStatement?t.visitCreateOperatorClassStatement(this):t.visitChildren(this)}},dc=class extends p{constructor(t,e){super(t,e)}operatorClassItem(t){return void 0===t?this.getRuleContexts(Uc):this.getRuleContext(t,Uc)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_operatorClassItemList}accept(t){return t.visitOperatorClassItemList?t.visitOperatorClassItemList(this):t.visitChildren(this)}},Uc=class extends p{constructor(t,e){super(t,e)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}iconst(){return this.getRuleContext(0,TS)}anyOperator(){return this.getRuleContext(0,ch)}operatorClassPurpose(){return this.getRuleContext(0,Dc)}RECHECK(){return this.getToken(Ps.RECHECK,0)}operatorWithArgumentTypes(){return this.getRuleContext(0,hh)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeList(){return this.getRuleContext(0,OA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}STORAGE(){return this.getToken(Ps.STORAGE,0)}typeName(){return this.getRuleContext(0,yo)}get ruleIndex(){return Ps.RULE_operatorClassItem}accept(t){return t.visitOperatorClassItem?t.visitOperatorClassItem(this):t.visitChildren(this)}},mc=class extends p{constructor(t,e){super(t,e)}FAMILY(){return this.getToken(Ps.FAMILY,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_optionalOperatorFamily}accept(t){return t.visitOptionalOperatorFamily?t.visitOptionalOperatorFamily(this):t.visitChildren(this)}},Dc=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}ORDER(){return this.getToken(Ps.ORDER,0)}BY(){return this.getToken(Ps.BY,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_operatorClassPurpose}accept(t){return t.visitOperatorClassPurpose?t.visitOperatorClassPurpose(this):t.visitChildren(this)}},pc=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}anyName(){return this.getRuleContext(0,Wc)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_createOperatorFamilyStatement}accept(t){return t.visitCreateOperatorFamilyStatement?t.visitCreateOperatorFamilyStatement(this):t.visitChildren(this)}},gc=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}anyName(){return this.getRuleContext(0,Wc)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}ADD_P(){return this.getToken(Ps.ADD_P,0)}operatorClassItemList(){return this.getRuleContext(0,dc)}DROP(){return this.getToken(Ps.DROP,0)}operatorClassDropList(){return this.getRuleContext(0,xc)}get ruleIndex(){return Ps.RULE_alterOperatorFamilyStatement}accept(t){return t.visitAlterOperatorFamilyStatement?t.visitAlterOperatorFamilyStatement(this):t.visitChildren(this)}},xc=class extends p{constructor(t,e){super(t,e)}operatorClassDrop(t){return void 0===t?this.getRuleContexts(kc):this.getRuleContext(t,kc)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_operatorClassDropList}accept(t){return t.visitOperatorClassDropList?t.visitOperatorClassDropList(this):t.visitChildren(this)}},kc=class extends p{constructor(t,e){super(t,e)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}iconst(){return this.getRuleContext(0,TS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeList(){return this.getRuleContext(0,OA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}get ruleIndex(){return Ps.RULE_operatorClassDrop}accept(t){return t.visitOperatorClassDrop?t.visitOperatorClassDrop(this):t.visitChildren(this)}},Hc=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}CLASS(){return this.getToken(Ps.CLASS,0)}anyName(){return this.getRuleContext(0,Wc)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_dropOperatorClassStatement}accept(t){return t.visitDropOperatorClassStatement?t.visitDropOperatorClassStatement(this):t.visitChildren(this)}},Gc=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}anyName(){return this.getRuleContext(0,Wc)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_dropOperatorFamilyStatement}accept(t){return t.visitDropOperatorFamilyStatement?t.visitDropOperatorFamilyStatement(this):t.visitChildren(this)}},Fc=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}OWNED(){return this.getToken(Ps.OWNED,0)}BY(){return this.getToken(Ps.BY,0)}roleNameList(){return this.getRuleContext(0,OS)}optionalDropBehavior(){return this.getRuleContext(0,La)}get ruleIndex(){return Ps.RULE_dropOwnedStatement}accept(t){return t.visitDropOwnedStatement?t.visitDropOwnedStatement(this):t.visitChildren(this)}},vc=class extends p{constructor(t,e){super(t,e)}REASSIGN(){return this.getToken(Ps.REASSIGN,0)}OWNED(){return this.getToken(Ps.OWNED,0)}BY(){return this.getToken(Ps.BY,0)}roleNameList(){return this.getRuleContext(0,OS)}TO(){return this.getToken(Ps.TO,0)}roleName(){return this.getRuleContext(0,lS)}get ruleIndex(){return Ps.RULE_reassignOwnedStatement}accept(t){return t.visitReassignOwnedStatement?t.visitReassignOwnedStatement(this):t.visitChildren(this)}},Bc=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}objectTypeAnyName(){return this.getRuleContext(0,yc)}anyNameList(){return this.getRuleContext(0,bc)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceNameList(){return this.getRuleContext(0,$A)}INDEX(){return this.getToken(Ps.INDEX,0)}indexNameList(){return this.getRuleContext(0,ZA)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaNameList(){return this.getRuleContext(0,QA)}dropTypeName(){return this.getRuleContext(0,Yc)}nameList(){return this.getRuleContext(0,eS)}objectTypeNameOnAnyName(){return this.getRuleContext(0,wc)}name(){return this.getRuleContext(0,sS)}ON(){return this.getToken(Ps.ON,0)}anyName(){return this.getRuleContext(0,Wc)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}triggerName(){return this.getRuleContext(0,qA)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}typeNameList(){return this.getRuleContext(0,Xc)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}CONCURRENTLY(){return this.getToken(Ps.CONCURRENTLY,0)}indexName(){return this.getRuleContext(0,JA)}get ruleIndex(){return Ps.RULE_dropStatement}accept(t){return t.visitDropStatement?t.visitDropStatement(this):t.visitChildren(this)}},yc=class extends p{constructor(t,e){super(t,e)}TABLE(){return this.getToken(Ps.TABLE,0)}VIEW(){return this.getToken(Ps.VIEW,0)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}COLLATION(){return this.getToken(Ps.COLLATION,0)}CONVERSION_P(){return this.getToken(Ps.CONVERSION_P,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}PARSER(){return this.getToken(Ps.PARSER,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}TEMPLATE(){return this.getToken(Ps.TEMPLATE,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}get ruleIndex(){return Ps.RULE_objectTypeAnyName}accept(t){return t.visitObjectTypeAnyName?t.visitObjectTypeAnyName(this):t.visitChildren(this)}},fc=class extends p{constructor(t,e){super(t,e)}dropTypeName(){return this.getRuleContext(0,Yc)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}get ruleIndex(){return Ps.RULE_objectTypeName}accept(t){return t.visitObjectTypeName?t.visitObjectTypeName(this):t.visitChildren(this)}},Yc=class extends p{constructor(t,e){super(t,e)}ACCESS(){return this.getToken(Ps.ACCESS,0)}METHOD(){return this.getToken(Ps.METHOD,0)}EVENT(){return this.getToken(Ps.EVENT,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}optionalProcedural(){return this.getRuleContext(0,tr)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}SERVER(){return this.getToken(Ps.SERVER,0)}get ruleIndex(){return Ps.RULE_dropTypeName}accept(t){return t.visitDropTypeName?t.visitDropTypeName(this):t.visitChildren(this)}},wc=class extends p{constructor(t,e){super(t,e)}POLICY(){return this.getToken(Ps.POLICY,0)}RULE(){return this.getToken(Ps.RULE,0)}get ruleIndex(){return Ps.RULE_objectTypeNameOnAnyName}accept(t){return t.visitObjectTypeNameOnAnyName?t.visitObjectTypeNameOnAnyName(this):t.visitChildren(this)}},bc=class extends p{constructor(t,e){super(t,e)}anyName(t){return void 0===t?this.getRuleContexts(Wc):this.getRuleContext(t,Wc)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_anyNameList}accept(t){return t.visitAnyNameList?t.visitAnyNameList(this):t.visitChildren(this)}},Wc=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}attributes(){return this.getRuleContext(0,Vc)}get ruleIndex(){return Ps.RULE_anyName}accept(t){return t.visitAnyName?t.visitAnyName(this):t.visitChildren(this)}},Vc=class extends p{constructor(t,e){super(t,e)}DOT(t){return void 0===t?this.getTokens(Ps.DOT):this.getToken(Ps.DOT,t)}attributeName(t){return void 0===t?this.getRuleContexts(aS):this.getRuleContext(t,aS)}get ruleIndex(){return Ps.RULE_attributes}accept(t){return t.visitAttributes?t.visitAttributes(this):t.visitChildren(this)}},Xc=class extends p{constructor(t,e){super(t,e)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_typeNameList}accept(t){return t.visitTypeNameList?t.visitTypeNameList(this):t.visitChildren(this)}},Kc=class extends p{constructor(t,e){super(t,e)}TRUNCATE(){return this.getToken(Ps.TRUNCATE,0)}optionalTable(){return this.getRuleContext(0,GT)}relationExpressionList(){return this.getRuleContext(0,No)}optionalRestartSequences(){return this.getRuleContext(0,Qc)}optionalDropBehavior(){return this.getRuleContext(0,La)}get ruleIndex(){return Ps.RULE_truncateStatement}accept(t){return t.visitTruncateStatement?t.visitTruncateStatement(this):t.visitChildren(this)}},Qc=class extends p{constructor(t,e){super(t,e)}CONTINUE_P(){return this.getToken(Ps.CONTINUE_P,0)}IDENTITY_P(){return this.getToken(Ps.IDENTITY_P,0)}RESTART(){return this.getToken(Ps.RESTART,0)}get ruleIndex(){return Ps.RULE_optionalRestartSequences}accept(t){return t.visitOptionalRestartSequences?t.visitOptionalRestartSequences(this):t.visitChildren(this)}},Jc=class extends p{constructor(t,e){super(t,e)}COMMENT(){return this.getToken(Ps.COMMENT,0)}ON(t){return void 0===t?this.getTokens(Ps.ON):this.getToken(Ps.ON,t)}objectTypeAnyName(){return this.getRuleContext(0,yc)}anyName(){return this.getRuleContext(0,Wc)}IS(){return this.getToken(Ps.IS,0)}commentText(){return this.getRuleContext(0,Zc)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceName(){return this.getRuleContext(0,zA)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}COLUMN(){return this.getToken(Ps.COLUMN,0)}objectTypeName(){return this.getRuleContext(0,fc)}name(){return this.getRuleContext(0,sS)}ROLE(){return this.getToken(Ps.ROLE,0)}roleName(){return this.getRuleContext(0,lS)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypes(){return this.getRuleContext(0,Xn)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}operatorWithArgumentTypes(){return this.getRuleContext(0,hh)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}constraintName(){return this.getRuleContext(0,jA)}objectTypeNameOnAnyName(){return this.getRuleContext(0,wc)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}triggerName(){return this.getRuleContext(0,qA)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}TRANSFORM(){return this.getToken(Ps.TRANSFORM,0)}FOR(){return this.getToken(Ps.FOR,0)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}CLASS(){return this.getToken(Ps.CLASS,0)}USING(){return this.getToken(Ps.USING,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}LARGE_P(){return this.getToken(Ps.LARGE_P,0)}OBJECT_P(){return this.getToken(Ps.OBJECT_P,0)}numericOnly(){return this.getRuleContext(0,Ji)}CAST(){return this.getToken(Ps.CAST,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}AS(){return this.getToken(Ps.AS,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_commentStatement}accept(t){return t.visitCommentStatement?t.visitCommentStatement(this):t.visitChildren(this)}},Zc=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}NULL_P(){return this.getToken(Ps.NULL_P,0)}get ruleIndex(){return Ps.RULE_commentText}accept(t){return t.visitCommentText?t.visitCommentText(this):t.visitChildren(this)}},qc=class extends p{constructor(t,e){super(t,e)}SECURITY(){return this.getToken(Ps.SECURITY,0)}LABEL(){return this.getToken(Ps.LABEL,0)}optionalProvider(){return this.getRuleContext(0,jc)}ON(){return this.getToken(Ps.ON,0)}objectTypeAnyName(){return this.getRuleContext(0,yc)}anyName(){return this.getRuleContext(0,Wc)}IS(){return this.getToken(Ps.IS,0)}securityLabel(){return this.getRuleContext(0,zc)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceName(){return this.getRuleContext(0,zA)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}COLUMN(){return this.getToken(Ps.COLUMN,0)}objectTypeName(){return this.getRuleContext(0,fc)}name(){return this.getRuleContext(0,sS)}ROLE(){return this.getToken(Ps.ROLE,0)}roleName(){return this.getRuleContext(0,lS)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}typeName(){return this.getRuleContext(0,yo)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypes(){return this.getRuleContext(0,Xn)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}LARGE_P(){return this.getToken(Ps.LARGE_P,0)}OBJECT_P(){return this.getToken(Ps.OBJECT_P,0)}numericOnly(){return this.getRuleContext(0,Ji)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}get ruleIndex(){return Ps.RULE_securityLabelStatement}accept(t){return t.visitSecurityLabelStatement?t.visitSecurityLabelStatement(this):t.visitChildren(this)}},jc=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}get ruleIndex(){return Ps.RULE_optionalProvider}accept(t){return t.visitOptionalProvider?t.visitOptionalProvider(this):t.visitChildren(this)}},zc=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}NULL_P(){return this.getToken(Ps.NULL_P,0)}get ruleIndex(){return Ps.RULE_securityLabel}accept(t){return t.visitSecurityLabel?t.visitSecurityLabel(this):t.visitChildren(this)}},$c=class extends p{constructor(t,e){super(t,e)}FETCH(){return this.getToken(Ps.FETCH,0)}fetchArguments(){return this.getRuleContext(0,tn)}MOVE(){return this.getToken(Ps.MOVE,0)}get ruleIndex(){return Ps.RULE_fetchStatement}accept(t){return t.visitFetchStatement?t.visitFetchStatement(this):t.visitChildren(this)}},tn=class extends p{constructor(t,e){super(t,e)}cursorName(){return this.getRuleContext(0,LT)}fromOrIn(){return this.getRuleContext(0,en)}NEXT(){return this.getToken(Ps.NEXT,0)}optionalFromOrIn(){return this.getRuleContext(0,sn)}PRIOR(){return this.getToken(Ps.PRIOR,0)}FIRST_P(){return this.getToken(Ps.FIRST_P,0)}LAST_P(){return this.getToken(Ps.LAST_P,0)}ABSOLUTE_P(){return this.getToken(Ps.ABSOLUTE_P,0)}signedIconst(){return this.getRuleContext(0,SS)}RELATIVE_P(){return this.getToken(Ps.RELATIVE_P,0)}ALL(){return this.getToken(Ps.ALL,0)}FORWARD(){return this.getToken(Ps.FORWARD,0)}BACKWARD(){return this.getToken(Ps.BACKWARD,0)}get ruleIndex(){return Ps.RULE_fetchArguments}accept(t){return t.visitFetchArguments?t.visitFetchArguments(this):t.visitChildren(this)}},en=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(Ps.FROM,0)}IN_P(){return this.getToken(Ps.IN_P,0)}get ruleIndex(){return Ps.RULE_fromOrIn}accept(t){return t.visitFromOrIn?t.visitFromOrIn(this):t.visitChildren(this)}},sn=class extends p{constructor(t,e){super(t,e)}fromOrIn(){return this.getRuleContext(0,en)}get ruleIndex(){return Ps.RULE_optionalFromOrIn}accept(t){return t.visitOptionalFromOrIn?t.visitOptionalFromOrIn(this):t.visitChildren(this)}},an=class extends p{constructor(t,e){super(t,e)}GRANT(){return this.getToken(Ps.GRANT,0)}privileges(){return this.getRuleContext(0,cn)}ON(){return this.getToken(Ps.ON,0)}privilegeTarget(){return this.getRuleContext(0,En)}TO(){return this.getToken(Ps.TO,0)}granteeList(){return this.getRuleContext(0,Tn)}optionalWithGrantOption(){return this.getRuleContext(0,Rn)}get ruleIndex(){return Ps.RULE_grantStatement}accept(t){return t.visitGrantStatement?t.visitGrantStatement(this):t.visitChildren(this)}},rn=class extends p{constructor(t,e){super(t,e)}REVOKE(){return this.getToken(Ps.REVOKE,0)}privileges(){return this.getRuleContext(0,cn)}ON(){return this.getToken(Ps.ON,0)}privilegeTarget(){return this.getRuleContext(0,En)}FROM(){return this.getToken(Ps.FROM,0)}granteeList(){return this.getRuleContext(0,Tn)}optionalDropBehavior(){return this.getRuleContext(0,La)}GRANT(){return this.getToken(Ps.GRANT,0)}OPTION(){return this.getToken(Ps.OPTION,0)}FOR(){return this.getToken(Ps.FOR,0)}get ruleIndex(){return Ps.RULE_revokeStatement}accept(t){return t.visitRevokeStatement?t.visitRevokeStatement(this):t.visitChildren(this)}},cn=class extends p{constructor(t,e){super(t,e)}privilegeList(){return this.getRuleContext(0,nn)}ALL(){return this.getToken(Ps.ALL,0)}PRIVILEGES(){return this.getToken(Ps.PRIVILEGES,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}columnList(){return this.getRuleContext(0,Ai)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_privileges}accept(t){return t.visitPrivileges?t.visitPrivileges(this):t.visitChildren(this)}},nn=class extends p{constructor(t,e){super(t,e)}privilege(t){return void 0===t?this.getRuleContexts(hn):this.getRuleContext(t,hn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_privilegeList}accept(t){return t.visitPrivilegeList?t.visitPrivilegeList(this):t.visitChildren(this)}},hn=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken(Ps.SELECT,0)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}REFERENCES(){return this.getToken(Ps.REFERENCES,0)}CREATE(){return this.getToken(Ps.CREATE,0)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_privilege}accept(t){return t.visitPrivilege?t.visitPrivilege(this):t.visitChildren(this)}},En=class extends p{constructor(t,e){super(t,e)}qualifiedNameList(){return this.getRuleContext(0,WA)}TABLE(){return this.getToken(Ps.TABLE,0)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceNameList(){return this.getRuleContext(0,$A)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}nameList(){return this.getRuleContext(0,eS)}SERVER(){return this.getToken(Ps.SERVER,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypesList(){return this.getRuleContext(0,Gn)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseNameList(){return this.getRuleContext(0,XA)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}anyNameList(){return this.getRuleContext(0,bc)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}LARGE_P(){return this.getToken(Ps.LARGE_P,0)}OBJECT_P(){return this.getToken(Ps.OBJECT_P,0)}numericOnlyList(){return this.getRuleContext(0,Zi)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaNameList(){return this.getRuleContext(0,QA)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}ALL(){return this.getToken(Ps.ALL,0)}IN_P(){return this.getToken(Ps.IN_P,0)}TABLES(){return this.getToken(Ps.TABLES,0)}SEQUENCES(){return this.getToken(Ps.SEQUENCES,0)}FUNCTIONS(){return this.getToken(Ps.FUNCTIONS,0)}PROCEDURES(){return this.getToken(Ps.PROCEDURES,0)}ROUTINES(){return this.getToken(Ps.ROUTINES,0)}get ruleIndex(){return Ps.RULE_privilegeTarget}accept(t){return t.visitPrivilegeTarget?t.visitPrivilegeTarget(this):t.visitChildren(this)}},Tn=class extends p{constructor(t,e){super(t,e)}grantee(t){return void 0===t?this.getRuleContexts(on):this.getRuleContext(t,on)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_granteeList}accept(t){return t.visitGranteeList?t.visitGranteeList(this):t.visitChildren(this)}},on=class extends p{constructor(t,e){super(t,e)}roleName(){return this.getRuleContext(0,lS)}GROUP_P(){return this.getToken(Ps.GROUP_P,0)}get ruleIndex(){return Ps.RULE_grantee}accept(t){return t.visitGrantee?t.visitGrantee(this):t.visitChildren(this)}},Rn=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}GRANT(){return this.getToken(Ps.GRANT,0)}OPTION(){return this.getToken(Ps.OPTION,0)}get ruleIndex(){return Ps.RULE_optionalWithGrantOption}accept(t){return t.visitOptionalWithGrantOption?t.visitOptionalWithGrantOption(this):t.visitChildren(this)}},An=class extends p{constructor(t,e){super(t,e)}GRANT(){return this.getToken(Ps.GRANT,0)}privilegeList(){return this.getRuleContext(0,nn)}TO(){return this.getToken(Ps.TO,0)}roleNameList(){return this.getRuleContext(0,OS)}optionalGrantAdminOption(){return this.getRuleContext(0,ln)}optionalGrantedBy(){return this.getRuleContext(0,On)}get ruleIndex(){return Ps.RULE_grantPrivilegeStatement}accept(t){return t.visitGrantPrivilegeStatement?t.visitGrantPrivilegeStatement(this):t.visitChildren(this)}},Sn=class extends p{constructor(t,e){super(t,e)}REVOKE(){return this.getToken(Ps.REVOKE,0)}privilegeList(){return this.getRuleContext(0,nn)}FROM(){return this.getToken(Ps.FROM,0)}roleNameList(){return this.getRuleContext(0,OS)}optionalGrantedBy(){return this.getRuleContext(0,On)}optionalDropBehavior(){return this.getRuleContext(0,La)}ADMIN(){return this.getToken(Ps.ADMIN,0)}OPTION(){return this.getToken(Ps.OPTION,0)}FOR(){return this.getToken(Ps.FOR,0)}get ruleIndex(){return Ps.RULE_revokePrivilegeStatement}accept(t){return t.visitRevokePrivilegeStatement?t.visitRevokePrivilegeStatement(this):t.visitChildren(this)}},ln=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}ADMIN(){return this.getToken(Ps.ADMIN,0)}OPTION(){return this.getToken(Ps.OPTION,0)}get ruleIndex(){return Ps.RULE_optionalGrantAdminOption}accept(t){return t.visitOptionalGrantAdminOption?t.visitOptionalGrantAdminOption(this):t.visitChildren(this)}},On=class extends p{constructor(t,e){super(t,e)}GRANTED(){return this.getToken(Ps.GRANTED,0)}BY(){return this.getToken(Ps.BY,0)}roleName(){return this.getRuleContext(0,lS)}get ruleIndex(){return Ps.RULE_optionalGrantedBy}accept(t){return t.visitOptionalGrantedBy?t.visitOptionalGrantedBy(this):t.visitChildren(this)}},In=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}PRIVILEGES(){return this.getToken(Ps.PRIVILEGES,0)}defaultPrivelegeAction(){return this.getRuleContext(0,Nn)}defultPrivilegeOption(t){return void 0===t?this.getRuleContexts(un):this.getRuleContext(t,un)}get ruleIndex(){return Ps.RULE_alterDefaultPrivilegesStatement}accept(t){return t.visitAlterDefaultPrivilegesStatement?t.visitAlterDefaultPrivilegesStatement(this):t.visitChildren(this)}},un=class extends p{constructor(t,e){super(t,e)}IN_P(){return this.getToken(Ps.IN_P,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaNameList(){return this.getRuleContext(0,QA)}FOR(){return this.getToken(Ps.FOR,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleNameList(){return this.getRuleContext(0,OS)}get ruleIndex(){return Ps.RULE_defultPrivilegeOption}accept(t){return t.visitDefultPrivilegeOption?t.visitDefultPrivilegeOption(this):t.visitChildren(this)}},Nn=class extends p{constructor(t,e){super(t,e)}GRANT(){return this.getToken(Ps.GRANT,0)}privileges(){return this.getRuleContext(0,cn)}ON(){return this.getToken(Ps.ON,0)}defultPrivilegeTarget(){return this.getRuleContext(0,Ln)}TO(){return this.getToken(Ps.TO,0)}granteeList(){return this.getRuleContext(0,Tn)}optionalWithGrantOption(){return this.getRuleContext(0,Rn)}REVOKE(){return this.getToken(Ps.REVOKE,0)}FROM(){return this.getToken(Ps.FROM,0)}optionalDropBehavior(){return this.getRuleContext(0,La)}OPTION(){return this.getToken(Ps.OPTION,0)}FOR(){return this.getToken(Ps.FOR,0)}get ruleIndex(){return Ps.RULE_defaultPrivelegeAction}accept(t){return t.visitDefaultPrivelegeAction?t.visitDefaultPrivelegeAction(this):t.visitChildren(this)}},Ln=class extends p{constructor(t,e){super(t,e)}TABLES(){return this.getToken(Ps.TABLES,0)}FUNCTIONS(){return this.getToken(Ps.FUNCTIONS,0)}ROUTINES(){return this.getToken(Ps.ROUTINES,0)}SEQUENCES(){return this.getToken(Ps.SEQUENCES,0)}TYPES_P(){return this.getToken(Ps.TYPES_P,0)}SCHEMAS(){return this.getToken(Ps.SCHEMAS,0)}get ruleIndex(){return Ps.RULE_defultPrivilegeTarget}accept(t){return t.visitDefultPrivilegeTarget?t.visitDefultPrivilegeTarget(this):t.visitChildren(this)}},Cn=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}INDEX(){return this.getToken(Ps.INDEX,0)}ON(){return this.getToken(Ps.ON,0)}relationExpression(){return this.getRuleContext(0,uo)}optionalAccessMethodClause(){return this.getRuleContext(0,_n)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}indexParameters(){return this.getRuleContext(0,Pn)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}optionalInclude(){return this.getRuleContext(0,Un)}optionalRelOptions(){return this.getRuleContext(0,da)}optionalTablespace(){return this.getRuleContext(0,ki)}whereClause(){return this.getRuleContext(0,mo)}UNIQUE(){return this.getToken(Ps.UNIQUE,0)}CONCURRENTLY(){return this.getToken(Ps.CONCURRENTLY,0)}name(){return this.getRuleContext(0,sS)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_indexStatement}accept(t){return t.visitIndexStatement?t.visitIndexStatement(this):t.visitChildren(this)}},_n=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_optionalAccessMethodClause}accept(t){return t.visitOptionalAccessMethodClause?t.visitOptionalAccessMethodClause(this):t.visitChildren(this)}},Pn=class extends p{constructor(t,e){super(t,e)}indexElement(t){return void 0===t?this.getRuleContexts(dn):this.getRuleContext(t,dn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_indexParameters}accept(t){return t.visitIndexParameters?t.visitIndexParameters(this):t.visitChildren(this)}},Mn=class extends p{constructor(t,e){super(t,e)}optionalCollate(){return this.getRuleContext(0,mn)}optionalClass(){return this.getRuleContext(0,Dn)}optionalAscOrDesc(){return this.getRuleContext(0,pn)}optionalNullsOrder(){return this.getRuleContext(0,gn)}anyName(){return this.getRuleContext(0,Wc)}relOptions(){return this.getRuleContext(0,Ma)}get ruleIndex(){return Ps.RULE_indexElemOptions}accept(t){return t.visitIndexElemOptions?t.visitIndexElemOptions(this):t.visitChildren(this)}},dn=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}indexElemOptions(){return this.getRuleContext(0,Mn)}functionExpressionWindowless(){return this.getRuleContext(0,GR)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_indexElement}accept(t){return t.visitIndexElement?t.visitIndexElement(this):t.visitChildren(this)}},Un=class extends p{constructor(t,e){super(t,e)}INCLUDE(){return this.getToken(Ps.INCLUDE,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}indexElement(t){return void 0===t?this.getRuleContexts(dn):this.getRuleContext(t,dn)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_optionalInclude}accept(t){return t.visitOptionalInclude?t.visitOptionalInclude(this):t.visitChildren(this)}},mn=class extends p{constructor(t,e){super(t,e)}COLLATE(){return this.getToken(Ps.COLLATE,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_optionalCollate}accept(t){return t.visitOptionalCollate?t.visitOptionalCollate(this):t.visitChildren(this)}},Dn=class extends p{constructor(t,e){super(t,e)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_optionalClass}accept(t){return t.visitOptionalClass?t.visitOptionalClass(this):t.visitChildren(this)}},pn=class extends p{constructor(t,e){super(t,e)}ASC(){return this.getToken(Ps.ASC,0)}DESC(){return this.getToken(Ps.DESC,0)}get ruleIndex(){return Ps.RULE_optionalAscOrDesc}accept(t){return t.visitOptionalAscOrDesc?t.visitOptionalAscOrDesc(this):t.visitChildren(this)}},gn=class extends p{constructor(t,e){super(t,e)}NULLS_P(){return this.getToken(Ps.NULLS_P,0)}FIRST_P(){return this.getToken(Ps.FIRST_P,0)}LAST_P(){return this.getToken(Ps.LAST_P,0)}get ruleIndex(){return Ps.RULE_optionalNullsOrder}accept(t){return t.visitOptionalNullsOrder?t.visitOptionalNullsOrder(this):t.visitChildren(this)}},xn=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}optionalOrReplace(){return this.getRuleContext(0,kn)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(t){return void 0===t?this.getTokens(Ps.OPEN_PAREN):this.getToken(Ps.OPEN_PAREN,t)}CLOSE_PAREN(t){return void 0===t?this.getTokens(Ps.CLOSE_PAREN):this.getToken(Ps.CLOSE_PAREN,t)}createFunctionOptionList(){return this.getRuleContext(0,Qn)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}functionArgumentsWithDefaultsList(){return this.getRuleContext(0,vn)}RETURNS(){return this.getToken(Ps.RETURNS,0)}functionReturn(){return this.getRuleContext(0,wn)}TABLE(){return this.getToken(Ps.TABLE,0)}tableFunctionColumnList(){return this.getRuleContext(0,th)}get ruleIndex(){return Ps.RULE_createFunctionStatement}accept(t){return t.visitCreateFunctionStatement?t.visitCreateFunctionStatement(this):t.visitChildren(this)}},kn=class extends p{constructor(t,e){super(t,e)}OR(){return this.getToken(Ps.OR,0)}REPLACE(){return this.getToken(Ps.REPLACE,0)}get ruleIndex(){return Ps.RULE_optionalOrReplace}accept(t){return t.visitOptionalOrReplace?t.visitOptionalOrReplace(this):t.visitChildren(this)}},Hn=class extends p{constructor(t,e){super(t,e)}functionArgument(t){return void 0===t?this.getRuleContexts(yn):this.getRuleContext(t,yn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_functionArgumentsList}accept(t){return t.visitFunctionArgumentsList?t.visitFunctionArgumentsList(this):t.visitChildren(this)}},Gn=class extends p{constructor(t,e){super(t,e)}functionWithArgumentTypes(t){return void 0===t?this.getRuleContexts(Fn):this.getRuleContext(t,Fn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_functionWithArgumentTypesList}accept(t){return t.visitFunctionWithArgumentTypesList?t.visitFunctionWithArgumentTypesList(this):t.visitChildren(this)}},Fn=class extends p{constructor(t,e){super(t,e)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}functionArgumentsList(){return this.getRuleContext(0,Hn)}typeFunctionNameKeyword(){return this.getRuleContext(0,US)}columnId(){return this.getRuleContext(0,IS)}indirection(){return this.getRuleContext(0,vA)}get ruleIndex(){return Ps.RULE_functionWithArgumentTypes}accept(t){return t.visitFunctionWithArgumentTypes?t.visitFunctionWithArgumentTypes(this):t.visitChildren(this)}},vn=class extends p{constructor(t,e){super(t,e)}functionArgumentWithDefault(t){return void 0===t?this.getRuleContexts(Bn):this.getRuleContext(t,Bn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_functionArgumentsWithDefaultsList}accept(t){return t.visitFunctionArgumentsWithDefaultsList?t.visitFunctionArgumentsWithDefaultsList(this):t.visitChildren(this)}},Bn=class extends p{constructor(t,e){super(t,e)}functionArgument(){return this.getRuleContext(0,yn)}expression1(){return this.getRuleContext(0,rR)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}EQUAL(){return this.getToken(Ps.EQUAL,0)}get ruleIndex(){return Ps.RULE_functionArgumentWithDefault}accept(t){return t.visitFunctionArgumentWithDefault?t.visitFunctionArgumentWithDefault(this):t.visitChildren(this)}},yn=class extends p{constructor(t,e){super(t,e)}argumentClass(){return this.getRuleContext(0,fn)}functionType(){return this.getRuleContext(0,bn)}parameterName(){return this.getRuleContext(0,Yn)}get ruleIndex(){return Ps.RULE_functionArgument}accept(t){return t.visitFunctionArgument?t.visitFunctionArgument(this):t.visitChildren(this)}},fn=class extends p{constructor(t,e){super(t,e)}IN_P(){return this.getToken(Ps.IN_P,0)}OUT_P(){return this.getToken(Ps.OUT_P,0)}INOUT(){return this.getToken(Ps.INOUT,0)}VARIADIC(){return this.getToken(Ps.VARIADIC,0)}get ruleIndex(){return Ps.RULE_argumentClass}accept(t){return t.visitArgumentClass?t.visitArgumentClass(this):t.visitChildren(this)}},Yn=class extends p{constructor(t,e){super(t,e)}typeFunctionName(){return this.getRuleContext(0,NS)}builtinFunctionName(){return this.getRuleContext(0,DS)}LEFT(){return this.getToken(Ps.LEFT,0)}RIGHT(){return this.getToken(Ps.RIGHT,0)}get ruleIndex(){return Ps.RULE_parameterName}accept(t){return t.visitParameterName?t.visitParameterName(this):t.visitChildren(this)}},wn=class extends p{constructor(t,e){super(t,e)}functionType(){return this.getRuleContext(0,bn)}get ruleIndex(){return Ps.RULE_functionReturn}accept(t){return t.visitFunctionReturn?t.visitFunctionReturn(this):t.visitChildren(this)}},bn=class extends p{constructor(t,e){super(t,e)}typeName(){return this.getRuleContext(0,yo)}attributes(){return this.getRuleContext(0,Vc)}PERCENT(){return this.getToken(Ps.PERCENT,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}builtinFunctionName(){return this.getRuleContext(0,DS)}typeFunctionName(){return this.getRuleContext(0,NS)}LEFT(){return this.getToken(Ps.LEFT,0)}RIGHT(){return this.getToken(Ps.RIGHT,0)}SETOF(){return this.getToken(Ps.SETOF,0)}get ruleIndex(){return Ps.RULE_functionType}accept(t){return t.visitFunctionType?t.visitFunctionType(this):t.visitChildren(this)}},Wn=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}STAR(){return this.getToken(Ps.STAR,0)}aggregateArgumentsList(t){return void 0===t?this.getRuleContexts(Vn):this.getRuleContext(t,Vn)}ORDER(){return this.getToken(Ps.ORDER,0)}BY(){return this.getToken(Ps.BY,0)}get ruleIndex(){return Ps.RULE_aggregateArguments}accept(t){return t.visitAggregateArguments?t.visitAggregateArguments(this):t.visitChildren(this)}},Vn=class extends p{constructor(t,e){super(t,e)}functionArgument(t){return void 0===t?this.getRuleContexts(yn):this.getRuleContext(t,yn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_aggregateArgumentsList}accept(t){return t.visitAggregateArgumentsList?t.visitAggregateArgumentsList(this):t.visitChildren(this)}},Xn=class extends p{constructor(t,e){super(t,e)}functionName(){return this.getRuleContext(0,rS)}aggregateArguments(){return this.getRuleContext(0,Wn)}get ruleIndex(){return Ps.RULE_aggregateWithArgumentTypes}accept(t){return t.visitAggregateWithArgumentTypes?t.visitAggregateWithArgumentTypes(this):t.visitChildren(this)}},Kn=class extends p{constructor(t,e){super(t,e)}aggregateWithArgumentTypes(t){return void 0===t?this.getRuleContexts(Xn):this.getRuleContext(t,Xn)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_aggregateWithArgumentTypesList}accept(t){return t.visitAggregateWithArgumentTypesList?t.visitAggregateWithArgumentTypesList(this):t.visitChildren(this)}},Qn=class extends p{constructor(t,e){super(t,e)}createFunctionOptionItem(t){return void 0===t?this.getRuleContexts(Zn):this.getRuleContext(t,Zn)}get ruleIndex(){return Ps.RULE_createFunctionOptionList}accept(t){return t.visitCreateFunctionOptionList?t.visitCreateFunctionOptionList(this):t.visitChildren(this)}},Jn=class extends p{constructor(t,e){super(t,e)}CALLED(){return this.getToken(Ps.CALLED,0)}ON(){return this.getToken(Ps.ON,0)}NULL_P(t){return void 0===t?this.getTokens(Ps.NULL_P):this.getToken(Ps.NULL_P,t)}INPUT_P(){return this.getToken(Ps.INPUT_P,0)}RETURNS(){return this.getToken(Ps.RETURNS,0)}STRICT_P(){return this.getToken(Ps.STRICT_P,0)}IMMUTABLE(){return this.getToken(Ps.IMMUTABLE,0)}STABLE(){return this.getToken(Ps.STABLE,0)}VOLATILE(){return this.getToken(Ps.VOLATILE,0)}EXTERNAL(){return this.getToken(Ps.EXTERNAL,0)}SECURITY(){return this.getToken(Ps.SECURITY,0)}DEFINER(){return this.getToken(Ps.DEFINER,0)}INVOKER(){return this.getToken(Ps.INVOKER,0)}LEAKPROOF(){return this.getToken(Ps.LEAKPROOF,0)}NOT(){return this.getToken(Ps.NOT,0)}COST(){return this.getToken(Ps.COST,0)}numericOnly(){return this.getRuleContext(0,Ji)}ROWS(){return this.getToken(Ps.ROWS,0)}SUPPORT(){return this.getToken(Ps.SUPPORT,0)}anyName(){return this.getRuleContext(0,Wc)}functionSetResetClause(){return this.getRuleContext(0,na)}PARALLEL(){return this.getToken(Ps.PARALLEL,0)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_commonFunctionOptionItem}accept(t){return t.visitCommonFunctionOptionItem?t.visitCommonFunctionOptionItem(this):t.visitChildren(this)}},Zn=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(Ps.AS,0)}functionAs(){return this.getRuleContext(0,qn)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}TRANSFORM(){return this.getToken(Ps.TRANSFORM,0)}transformTypeList(){return this.getRuleContext(0,jn)}WINDOW(){return this.getToken(Ps.WINDOW,0)}commonFunctionOptionItem(){return this.getRuleContext(0,Jn)}get ruleIndex(){return Ps.RULE_createFunctionOptionItem}accept(t){return t.visitCreateFunctionOptionItem?t.visitCreateFunctionOptionItem(this):t.visitChildren(this)}},qn=class extends p{constructor(t,e){super(t,e)}sconst(t){return void 0===t?this.getRuleContexts(oS):this.getRuleContext(t,oS)}COMMA(){return this.getToken(Ps.COMMA,0)}get ruleIndex(){return Ps.RULE_functionAs}accept(t){return t.visitFunctionAs?t.visitFunctionAs(this):t.visitChildren(this)}},jn=class extends p{constructor(t,e){super(t,e)}FOR(t){return void 0===t?this.getTokens(Ps.FOR):this.getToken(Ps.FOR,t)}TYPE_P(t){return void 0===t?this.getTokens(Ps.TYPE_P):this.getToken(Ps.TYPE_P,t)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_transformTypeList}accept(t){return t.visitTransformTypeList?t.visitTransformTypeList(this):t.visitChildren(this)}},zn=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}definition(){return this.getRuleContext(0,Oc)}get ruleIndex(){return Ps.RULE_optionalDefinition}accept(t){return t.visitOptionalDefinition?t.visitOptionalDefinition(this):t.visitChildren(this)}},$n=class extends p{constructor(t,e){super(t,e)}parameterName(){return this.getRuleContext(0,Yn)}functionType(){return this.getRuleContext(0,bn)}get ruleIndex(){return Ps.RULE_tableFunctionColumn}accept(t){return t.visitTableFunctionColumn?t.visitTableFunctionColumn(this):t.visitChildren(this)}},th=class extends p{constructor(t,e){super(t,e)}tableFunctionColumn(t){return void 0===t?this.getRuleContexts($n):this.getRuleContext(t,$n)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_tableFunctionColumnList}accept(t){return t.visitTableFunctionColumnList?t.visitTableFunctionColumnList(this):t.visitChildren(this)}},eh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}commonFunctionOptionItem(t){return void 0===t?this.getRuleContexts(Jn):this.getRuleContext(t,Jn)}RESTRICT(){return this.getToken(Ps.RESTRICT,0)}get ruleIndex(){return Ps.RULE_alterFunctionStatement}accept(t){return t.visitAlterFunctionStatement?t.visitAlterFunctionStatement(this):t.visitChildren(this)}},sh=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypesList(){return this.getRuleContext(0,Gn)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}get ruleIndex(){return Ps.RULE_removeFunctionStatement}accept(t){return t.visitRemoveFunctionStatement?t.visitRemoveFunctionStatement(this):t.visitChildren(this)}},ah=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypesList(){return this.getRuleContext(0,Kn)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_removeAggregateStatement}accept(t){return t.visitRemoveAggregateStatement?t.visitRemoveAggregateStatement(this):t.visitChildren(this)}},ih=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}operatorWithArgumentTypesList(){return this.getRuleContext(0,nh)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_removeOperatorStatement}accept(t){return t.visitRemoveOperatorStatement?t.visitRemoveOperatorStatement(this):t.visitChildren(this)}},rh=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(){return this.getToken(Ps.COMMA,0)}NONE(){return this.getToken(Ps.NONE,0)}get ruleIndex(){return Ps.RULE_operatorArgumentTypes}accept(t){return t.visitOperatorArgumentTypes?t.visitOperatorArgumentTypes(this):t.visitChildren(this)}},ch=class extends p{constructor(t,e){super(t,e)}allOperator(){return this.getRuleContext(0,hA)}columnId(t){return void 0===t?this.getRuleContexts(IS):this.getRuleContext(t,IS)}DOT(t){return void 0===t?this.getTokens(Ps.DOT):this.getToken(Ps.DOT,t)}get ruleIndex(){return Ps.RULE_anyOperator}accept(t){return t.visitAnyOperator?t.visitAnyOperator(this):t.visitChildren(this)}},nh=class extends p{constructor(t,e){super(t,e)}operatorWithArgumentTypes(t){return void 0===t?this.getRuleContexts(hh):this.getRuleContext(t,hh)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_operatorWithArgumentTypesList}accept(t){return t.visitOperatorWithArgumentTypesList?t.visitOperatorWithArgumentTypesList(this):t.visitChildren(this)}},hh=class extends p{constructor(t,e){super(t,e)}anyOperator(){return this.getRuleContext(0,ch)}operatorArgumentTypes(){return this.getRuleContext(0,rh)}get ruleIndex(){return Ps.RULE_operatorWithArgumentTypes}accept(t){return t.visitOperatorWithArgumentTypes?t.visitOperatorWithArgumentTypes(this):t.visitChildren(this)}},Eh=class extends p{constructor(t,e){super(t,e)}DO(){return this.getToken(Ps.DO,0)}doStatementOptionsList(){return this.getRuleContext(0,Th)}get ruleIndex(){return Ps.RULE_doStatement}accept(t){return t.visitDoStatement?t.visitDoStatement(this):t.visitChildren(this)}},Th=class extends p{constructor(t,e){super(t,e)}doStatementOptionItem(t){return void 0===t?this.getRuleContexts(oh):this.getRuleContext(t,oh)}get ruleIndex(){return Ps.RULE_doStatementOptionsList}accept(t){return t.visitDoStatementOptionsList?t.visitDoStatementOptionsList(this):t.visitChildren(this)}},oh=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}nonReservedWordOrSconst(){return this.getRuleContext(0,sa)}get ruleIndex(){return Ps.RULE_doStatementOptionItem}accept(t){return t.visitDoStatementOptionItem?t.visitDoStatementOptionItem(this):t.visitChildren(this)}},Rh=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}CAST(){return this.getToken(Ps.CAST,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}AS(){return this.getToken(Ps.AS,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}WITH(){return this.getToken(Ps.WITH,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}castContext(){return this.getRuleContext(0,Ah)}WITHOUT(){return this.getToken(Ps.WITHOUT,0)}INOUT(){return this.getToken(Ps.INOUT,0)}get ruleIndex(){return Ps.RULE_createCastStatement}accept(t){return t.visitCreateCastStatement?t.visitCreateCastStatement(this):t.visitChildren(this)}},Ah=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(Ps.AS,0)}IMPLICIT_P(){return this.getToken(Ps.IMPLICIT_P,0)}ASSIGNMENT(){return this.getToken(Ps.ASSIGNMENT,0)}get ruleIndex(){return Ps.RULE_castContext}accept(t){return t.visitCastContext?t.visitCastContext(this):t.visitChildren(this)}},Sh=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}CAST(){return this.getToken(Ps.CAST,0)}optionalIfExists(){return this.getRuleContext(0,lh)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}AS(){return this.getToken(Ps.AS,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}optionalDropBehavior(){return this.getRuleContext(0,La)}get ruleIndex(){return Ps.RULE_dropCastStatement}accept(t){return t.visitDropCastStatement?t.visitDropCastStatement(this):t.visitChildren(this)}},lh=class extends p{constructor(t,e){super(t,e)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_optionalIfExists}accept(t){return t.visitOptionalIfExists?t.visitOptionalIfExists(this):t.visitChildren(this)}},Oh=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}optionalOrReplace(){return this.getRuleContext(0,kn)}TRANSFORM(){return this.getToken(Ps.TRANSFORM,0)}FOR(){return this.getToken(Ps.FOR,0)}typeName(){return this.getRuleContext(0,yo)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}name(){return this.getRuleContext(0,sS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}transformElementList(){return this.getRuleContext(0,Ih)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_createTransformStatement}accept(t){return t.visitCreateTransformStatement?t.visitCreateTransformStatement(this):t.visitChildren(this)}},Ih=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(Ps.FROM,0)}SQL_P(t){return void 0===t?this.getTokens(Ps.SQL_P):this.getToken(Ps.SQL_P,t)}WITH(t){return void 0===t?this.getTokens(Ps.WITH):this.getToken(Ps.WITH,t)}FUNCTION(t){return void 0===t?this.getTokens(Ps.FUNCTION):this.getToken(Ps.FUNCTION,t)}functionWithArgumentTypes(t){return void 0===t?this.getRuleContexts(Fn):this.getRuleContext(t,Fn)}COMMA(){return this.getToken(Ps.COMMA,0)}TO(){return this.getToken(Ps.TO,0)}get ruleIndex(){return Ps.RULE_transformElementList}accept(t){return t.visitTransformElementList?t.visitTransformElementList(this):t.visitChildren(this)}},uh=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}TRANSFORM(){return this.getToken(Ps.TRANSFORM,0)}optionalIfExists(){return this.getRuleContext(0,lh)}FOR(){return this.getToken(Ps.FOR,0)}typeName(){return this.getRuleContext(0,yo)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}name(){return this.getRuleContext(0,sS)}optionalDropBehavior(){return this.getRuleContext(0,La)}get ruleIndex(){return Ps.RULE_dropTransformStatement}accept(t){return t.visitDropTransformStatement?t.visitDropTransformStatement(this):t.visitChildren(this)}},Nh=class extends p{constructor(t,e){super(t,e)}REINDEX(){return this.getToken(Ps.REINDEX,0)}reindexTargetType(){return this.getRuleContext(0,Lh)}qualifiedName(){return this.getRuleContext(0,tS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}reindexOptionList(){return this.getRuleContext(0,Ch)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}CONCURRENTLY(){return this.getToken(Ps.CONCURRENTLY,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}SYSTEM_P(){return this.getToken(Ps.SYSTEM_P,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_reindexStatement}accept(t){return t.visitReindexStatement?t.visitReindexStatement(this):t.visitChildren(this)}},Lh=class extends p{constructor(t,e){super(t,e)}TABLE(){return this.getToken(Ps.TABLE,0)}SYSTEM_P(){return this.getToken(Ps.SYSTEM_P,0)}get ruleIndex(){return Ps.RULE_reindexTargetType}accept(t){return t.visitReindexTargetType?t.visitReindexTargetType(this):t.visitChildren(this)}},Ch=class extends p{constructor(t,e){super(t,e)}reindexOptionElement(t){return void 0===t?this.getRuleContexts(_h):this.getRuleContext(t,_h)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_reindexOptionList}accept(t){return t.visitReindexOptionList?t.visitReindexOptionList(this):t.visitChildren(this)}},_h=class extends p{constructor(t,e){super(t,e)}VERBOSE(){return this.getToken(Ps.VERBOSE,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}CONCURRENTLY(){return this.getToken(Ps.CONCURRENTLY,0)}get ruleIndex(){return Ps.RULE_reindexOptionElement}accept(t){return t.visitReindexOptionElement?t.visitReindexOptionElement(this):t.visitChildren(this)}},Ph=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}name(){return this.getRuleContext(0,sS)}SET(){return this.getToken(Ps.SET,0)}relOptions(){return this.getRuleContext(0,Ma)}RESET(){return this.getToken(Ps.RESET,0)}get ruleIndex(){return Ps.RULE_alterTablespaceStatement}accept(t){return t.visitAlterTablespaceStatement?t.visitAlterTablespaceStatement(this):t.visitChildren(this)}},Mh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypes(){return this.getRuleContext(0,Xn)}RENAME(){return this.getToken(Ps.RENAME,0)}TO(){return this.getToken(Ps.TO,0)}name(t){return void 0===t?this.getRuleContexts(sS):this.getRuleContext(t,sS)}COLLATION(){return this.getToken(Ps.COLLATION,0)}anyName(){return this.getRuleContext(0,Wc)}CONVERSION_P(){return this.getToken(Ps.CONVERSION_P,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}constraintName(){return this.getRuleContext(0,jA)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}optionalProcedural(){return this.getRuleContext(0,tr)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}CLASS(){return this.getToken(Ps.CLASS,0)}USING(){return this.getToken(Ps.USING,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}POLICY(){return this.getToken(Ps.POLICY,0)}ON(){return this.getToken(Ps.ON,0)}qualifiedName(){return this.getRuleContext(0,tS)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}SERVER(){return this.getToken(Ps.SERVER,0)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}TABLE(){return this.getToken(Ps.TABLE,0)}relationExpression(){return this.getRuleContext(0,uo)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceName(){return this.getRuleContext(0,zA)}VIEW(){return this.getToken(Ps.VIEW,0)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}optionalColumn(){return this.getRuleContext(0,dh)}RULE(){return this.getToken(Ps.RULE,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}triggerName(){return this.getRuleContext(0,qA)}EVENT(){return this.getToken(Ps.EVENT,0)}roleOrAliases(){return this.getRuleContext(0,gO)}roleName(t){return void 0===t?this.getRuleContexts(lS):this.getRuleContext(t,lS)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}PARSER(){return this.getToken(Ps.PARSER,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}TEMPLATE(){return this.getToken(Ps.TEMPLATE,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}ATTRIBUTE(){return this.getToken(Ps.ATTRIBUTE,0)}optionalDropBehavior(){return this.getRuleContext(0,La)}get ruleIndex(){return Ps.RULE_renameStatement}accept(t){return t.visitRenameStatement?t.visitRenameStatement(this):t.visitChildren(this)}},dh=class extends p{constructor(t,e){super(t,e)}COLUMN(){return this.getToken(Ps.COLUMN,0)}get ruleIndex(){return Ps.RULE_optionalColumn}accept(t){return t.visitOptionalColumn?t.visitOptionalColumn(this):t.visitChildren(this)}},Uh=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}get ruleIndex(){return Ps.RULE_optionalSetData}accept(t){return t.visitOptionalSetData?t.visitOptionalSetData(this):t.visitChildren(this)}},mh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}DEPENDS(){return this.getToken(Ps.DEPENDS,0)}ON(t){return void 0===t?this.getTokens(Ps.ON):this.getToken(Ps.ON,t)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}name(){return this.getRuleContext(0,sS)}NO(){return this.getToken(Ps.NO,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}triggerName(){return this.getRuleContext(0,qA)}qualifiedName(){return this.getRuleContext(0,tS)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}VIEW(){return this.getToken(Ps.VIEW,0)}INDEX(){return this.getToken(Ps.INDEX,0)}indexName(){return this.getRuleContext(0,JA)}get ruleIndex(){return Ps.RULE_alterObjectDependsStatement}accept(t){return t.visitAlterObjectDependsStatement?t.visitAlterObjectDependsStatement(this):t.visitChildren(this)}},Dh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypes(){return this.getRuleContext(0,Xn)}SET(){return this.getToken(Ps.SET,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}COLLATION(){return this.getToken(Ps.COLLATION,0)}anyName(){return this.getRuleContext(0,Wc)}CONVERSION_P(){return this.getToken(Ps.CONVERSION_P,0)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}name(){return this.getRuleContext(0,sS)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}operatorWithArgumentTypes(){return this.getRuleContext(0,hh)}CLASS(){return this.getToken(Ps.CLASS,0)}USING(){return this.getToken(Ps.USING,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}TABLE(){return this.getToken(Ps.TABLE,0)}relationExpression(){return this.getRuleContext(0,uo)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}PARSER(){return this.getToken(Ps.PARSER,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}TEMPLATE(){return this.getToken(Ps.TEMPLATE,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}sequenceName(){return this.getRuleContext(0,zA)}VIEW(){return this.getToken(Ps.VIEW,0)}qualifiedName(){return this.getRuleContext(0,tS)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}get ruleIndex(){return Ps.RULE_alterObjectSchemaStatement}accept(t){return t.visitAlterObjectSchemaStatement?t.visitAlterObjectSchemaStatement(this):t.visitChildren(this)}},ph=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}operatorWithArgumentTypes(){return this.getRuleContext(0,hh)}SET(){return this.getToken(Ps.SET,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}operatorDefinitionList(){return this.getRuleContext(0,gh)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_alterOperatorStatement}accept(t){return t.visitAlterOperatorStatement?t.visitAlterOperatorStatement(this):t.visitChildren(this)}},gh=class extends p{constructor(t,e){super(t,e)}operatorDefinitionElement(t){return void 0===t?this.getRuleContexts(xh):this.getRuleContext(t,xh)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_operatorDefinitionList}accept(t){return t.visitOperatorDefinitionList?t.visitOperatorDefinitionList(this):t.visitChildren(this)}},xh=class extends p{constructor(t,e){super(t,e)}columnLabel(){return this.getRuleContext(0,CS)}EQUAL(){return this.getToken(Ps.EQUAL,0)}NONE(){return this.getToken(Ps.NONE,0)}operatorDefinitionArgument(){return this.getRuleContext(0,kh)}get ruleIndex(){return Ps.RULE_operatorDefinitionElement}accept(t){return t.visitOperatorDefinitionElement?t.visitOperatorDefinitionElement(this):t.visitChildren(this)}},kh=class extends p{constructor(t,e){super(t,e)}functionType(){return this.getRuleContext(0,bn)}reservedKeyword(){return this.getRuleContext(0,mS)}allOperatorQualifier(){return this.getRuleContext(0,oA)}numericOnly(){return this.getRuleContext(0,Ji)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_operatorDefinitionArgument}accept(t){return t.visitOperatorDefinitionArgument?t.visitOperatorDefinitionArgument(this):t.visitChildren(this)}},Hh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}anyName(){return this.getRuleContext(0,Wc)}SET(){return this.getToken(Ps.SET,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}operatorDefinitionList(){return this.getRuleContext(0,gh)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_alterTypeStatement}accept(t){return t.visitAlterTypeStatement?t.visitAlterTypeStatement(this):t.visitChildren(this)}},Gh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}aggregateWithArgumentTypes(){return this.getRuleContext(0,Xn)}OWNER(){return this.getToken(Ps.OWNER,0)}TO(){return this.getToken(Ps.TO,0)}roleName(){return this.getRuleContext(0,lS)}COLLATION(){return this.getToken(Ps.COLLATION,0)}anyName(){return this.getRuleContext(0,Wc)}CONVERSION_P(){return this.getToken(Ps.CONVERSION_P,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}functionWithArgumentTypes(){return this.getRuleContext(0,Fn)}optionalProcedural(){return this.getRuleContext(0,tr)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}name(){return this.getRuleContext(0,sS)}LARGE_P(){return this.getToken(Ps.LARGE_P,0)}OBJECT_P(){return this.getToken(Ps.OBJECT_P,0)}numericOnly(){return this.getRuleContext(0,Ji)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}operatorWithArgumentTypes(){return this.getRuleContext(0,hh)}CLASS(){return this.getToken(Ps.CLASS,0)}USING(){return this.getToken(Ps.USING,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}schemaName(){return this.getRuleContext(0,KA)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}SERVER(){return this.getToken(Ps.SERVER,0)}EVENT(){return this.getToken(Ps.EVENT,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}get ruleIndex(){return Ps.RULE_alterOwnerStatement}accept(t){return t.visitAlterOwnerStatement?t.visitAlterOwnerStatement(this):t.visitChildren(this)}},Fh=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}name(){return this.getRuleContext(0,sS)}optionalPublicationForTables(){return this.getRuleContext(0,vh)}optionalDefinition(){return this.getRuleContext(0,zn)}get ruleIndex(){return Ps.RULE_createPublicationStatement}accept(t){return t.visitCreatePublicationStatement?t.visitCreatePublicationStatement(this):t.visitChildren(this)}},vh=class extends p{constructor(t,e){super(t,e)}publicationForTables(){return this.getRuleContext(0,Bh)}get ruleIndex(){return Ps.RULE_optionalPublicationForTables}accept(t){return t.visitOptionalPublicationForTables?t.visitOptionalPublicationForTables(this):t.visitChildren(this)}},Bh=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}TABLE(){return this.getToken(Ps.TABLE,0)}relationExpressionList(){return this.getRuleContext(0,No)}ALL(){return this.getToken(Ps.ALL,0)}TABLES(){return this.getToken(Ps.TABLES,0)}get ruleIndex(){return Ps.RULE_publicationForTables}accept(t){return t.visitPublicationForTables?t.visitPublicationForTables(this):t.visitChildren(this)}},yh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}name(){return this.getRuleContext(0,sS)}SET(){return this.getToken(Ps.SET,0)}definition(){return this.getRuleContext(0,Oc)}ADD_P(){return this.getToken(Ps.ADD_P,0)}TABLE(){return this.getToken(Ps.TABLE,0)}relationExpressionList(){return this.getRuleContext(0,No)}DROP(){return this.getToken(Ps.DROP,0)}get ruleIndex(){return Ps.RULE_alterPublicationStatement}accept(t){return t.visitAlterPublicationStatement?t.visitAlterPublicationStatement(this):t.visitChildren(this)}},fh=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}name(){return this.getRuleContext(0,sS)}CONNECTION(){return this.getToken(Ps.CONNECTION,0)}sconst(){return this.getRuleContext(0,oS)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}publicationNameList(){return this.getRuleContext(0,Yh)}optionalDefinition(){return this.getRuleContext(0,zn)}get ruleIndex(){return Ps.RULE_createSubscriptionStatement}accept(t){return t.visitCreateSubscriptionStatement?t.visitCreateSubscriptionStatement(this):t.visitChildren(this)}},Yh=class extends p{constructor(t,e){super(t,e)}publicationNameItem(t){return void 0===t?this.getRuleContexts(wh):this.getRuleContext(t,wh)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_publicationNameList}accept(t){return t.visitPublicationNameList?t.visitPublicationNameList(this):t.visitChildren(this)}},wh=class extends p{constructor(t,e){super(t,e)}columnLabel(){return this.getRuleContext(0,CS)}get ruleIndex(){return Ps.RULE_publicationNameItem}accept(t){return t.visitPublicationNameItem?t.visitPublicationNameItem(this):t.visitChildren(this)}},bh=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}name(){return this.getRuleContext(0,sS)}SET(){return this.getToken(Ps.SET,0)}definition(){return this.getRuleContext(0,Oc)}CONNECTION(){return this.getToken(Ps.CONNECTION,0)}sconst(){return this.getRuleContext(0,oS)}REFRESH(){return this.getToken(Ps.REFRESH,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}optionalDefinition(){return this.getRuleContext(0,zn)}publicationNameList(){return this.getRuleContext(0,Yh)}ENABLE_P(){return this.getToken(Ps.ENABLE_P,0)}DISABLE_P(){return this.getToken(Ps.DISABLE_P,0)}get ruleIndex(){return Ps.RULE_alterSubscriptionStatement}accept(t){return t.visitAlterSubscriptionStatement?t.visitAlterSubscriptionStatement(this):t.visitChildren(this)}},Wh=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}name(){return this.getRuleContext(0,sS)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_dropSubscriptionStatement}accept(t){return t.visitDropSubscriptionStatement?t.visitDropSubscriptionStatement(this):t.visitChildren(this)}},Vh=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}optionalOrReplace(){return this.getRuleContext(0,kn)}RULE(){return this.getToken(Ps.RULE,0)}name(){return this.getRuleContext(0,sS)}AS(){return this.getToken(Ps.AS,0)}ON(){return this.getToken(Ps.ON,0)}event(){return this.getRuleContext(0,Zh)}TO(){return this.getToken(Ps.TO,0)}qualifiedName(){return this.getRuleContext(0,tS)}whereClause(){return this.getRuleContext(0,mo)}DO(){return this.getToken(Ps.DO,0)}optionalInstead(){return this.getRuleContext(0,qh)}ruleActionList(){return this.getRuleContext(0,Xh)}get ruleIndex(){return Ps.RULE_ruleStatement}accept(t){return t.visitRuleStatement?t.visitRuleStatement(this):t.visitChildren(this)}},Xh=class extends p{constructor(t,e){super(t,e)}NOTHING(){return this.getToken(Ps.NOTHING,0)}ruleActionStatement(){return this.getRuleContext(0,Qh)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}ruleActionMulti(){return this.getRuleContext(0,Kh)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_ruleActionList}accept(t){return t.visitRuleActionList?t.visitRuleActionList(this):t.visitChildren(this)}},Kh=class extends p{constructor(t,e){super(t,e)}ruleActionStatementOrEmpty(t){return void 0===t?this.getRuleContexts(Jh):this.getRuleContext(t,Jh)}SEMI(t){return void 0===t?this.getTokens(Ps.SEMI):this.getToken(Ps.SEMI,t)}get ruleIndex(){return Ps.RULE_ruleActionMulti}accept(t){return t.visitRuleActionMulti?t.visitRuleActionMulti(this):t.visitChildren(this)}},Qh=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_T)}insertStatement(){return this.getRuleContext(0,ZE)}updateStatement(){return this.getRuleContext(0,lT)}deleteStatement(){return this.getRuleContext(0,hT)}notifyStatement(){return this.getRuleContext(0,jh)}get ruleIndex(){return Ps.RULE_ruleActionStatement}accept(t){return t.visitRuleActionStatement?t.visitRuleActionStatement(this):t.visitChildren(this)}},Jh=class extends p{constructor(t,e){super(t,e)}ruleActionStatement(){return this.getRuleContext(0,Qh)}get ruleIndex(){return Ps.RULE_ruleActionStatementOrEmpty}accept(t){return t.visitRuleActionStatementOrEmpty?t.visitRuleActionStatementOrEmpty(this):t.visitChildren(this)}},Zh=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken(Ps.SELECT,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}INSERT(){return this.getToken(Ps.INSERT,0)}get ruleIndex(){return Ps.RULE_event}accept(t){return t.visitEvent?t.visitEvent(this):t.visitChildren(this)}},qh=class extends p{constructor(t,e){super(t,e)}INSTEAD(){return this.getToken(Ps.INSTEAD,0)}ALSO(){return this.getToken(Ps.ALSO,0)}get ruleIndex(){return Ps.RULE_optionalInstead}accept(t){return t.visitOptionalInstead?t.visitOptionalInstead(this):t.visitChildren(this)}},jh=class extends p{constructor(t,e){super(t,e)}NOTIFY(){return this.getToken(Ps.NOTIFY,0)}columnId(){return this.getRuleContext(0,IS)}notifyPayload(){return this.getRuleContext(0,zh)}get ruleIndex(){return Ps.RULE_notifyStatement}accept(t){return t.visitNotifyStatement?t.visitNotifyStatement(this):t.visitChildren(this)}},zh=class extends p{constructor(t,e){super(t,e)}COMMA(){return this.getToken(Ps.COMMA,0)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_notifyPayload}accept(t){return t.visitNotifyPayload?t.visitNotifyPayload(this):t.visitChildren(this)}},$h=class extends p{constructor(t,e){super(t,e)}LISTEN(){return this.getToken(Ps.LISTEN,0)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_listenStatement}accept(t){return t.visitListenStatement?t.visitListenStatement(this):t.visitChildren(this)}},tE=class extends p{constructor(t,e){super(t,e)}UNLISTEN(){return this.getToken(Ps.UNLISTEN,0)}columnId(){return this.getRuleContext(0,IS)}STAR(){return this.getToken(Ps.STAR,0)}get ruleIndex(){return Ps.RULE_unlistenStatement}accept(t){return t.visitUnlistenStatement?t.visitUnlistenStatement(this):t.visitChildren(this)}},eE=class extends p{constructor(t,e){super(t,e)}ABORT_P(){return this.getToken(Ps.ABORT_P,0)}optionalTransaction(){return this.getRuleContext(0,sE)}optionalTransactionChain(){return this.getRuleContext(0,rE)}BEGIN_P(){return this.getToken(Ps.BEGIN_P,0)}transactionModeList(){return this.getRuleContext(0,iE)}START(){return this.getToken(Ps.START,0)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}COMMIT(){return this.getToken(Ps.COMMIT,0)}END_P(){return this.getToken(Ps.END_P,0)}ROLLBACK(){return this.getToken(Ps.ROLLBACK,0)}SAVEPOINT(){return this.getToken(Ps.SAVEPOINT,0)}columnId(){return this.getRuleContext(0,IS)}RELEASE(){return this.getToken(Ps.RELEASE,0)}TO(){return this.getToken(Ps.TO,0)}PREPARE(){return this.getToken(Ps.PREPARE,0)}sconst(){return this.getRuleContext(0,oS)}PREPARED(){return this.getToken(Ps.PREPARED,0)}get ruleIndex(){return Ps.RULE_transactionStatement}accept(t){return t.visitTransactionStatement?t.visitTransactionStatement(this):t.visitChildren(this)}},sE=class extends p{constructor(t,e){super(t,e)}WORK(){return this.getToken(Ps.WORK,0)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}get ruleIndex(){return Ps.RULE_optionalTransaction}accept(t){return t.visitOptionalTransaction?t.visitOptionalTransaction(this):t.visitChildren(this)}},aE=class extends p{constructor(t,e){super(t,e)}ISOLATION(){return this.getToken(Ps.ISOLATION,0)}LEVEL(){return this.getToken(Ps.LEVEL,0)}isoLevel(){return this.getRuleContext(0,zs)}READ(){return this.getToken(Ps.READ,0)}ONLY(){return this.getToken(Ps.ONLY,0)}WRITE(){return this.getToken(Ps.WRITE,0)}DEFERRABLE(){return this.getToken(Ps.DEFERRABLE,0)}NOT(){return this.getToken(Ps.NOT,0)}get ruleIndex(){return Ps.RULE_transactionModeItem}accept(t){return t.visitTransactionModeItem?t.visitTransactionModeItem(this):t.visitChildren(this)}},iE=class extends p{constructor(t,e){super(t,e)}transactionModeItem(t){return void 0===t?this.getRuleContexts(aE):this.getRuleContext(t,aE)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_transactionModeList}accept(t){return t.visitTransactionModeList?t.visitTransactionModeList(this):t.visitChildren(this)}},rE=class extends p{constructor(t,e){super(t,e)}AND(){return this.getToken(Ps.AND,0)}CHAIN(){return this.getToken(Ps.CHAIN,0)}NO(){return this.getToken(Ps.NO,0)}get ruleIndex(){return Ps.RULE_optionalTransactionChain}accept(t){return t.visitOptionalTransactionChain?t.visitOptionalTransactionChain(this):t.visitChildren(this)}},cE=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}temporaryOption(){return this.getRuleContext(0,Qa)}AS(){return this.getToken(Ps.AS,0)}selectStatement(){return this.getRuleContext(0,_T)}optionalCheckOption(){return this.getRuleContext(0,nE)}VIEW(){return this.getToken(Ps.VIEW,0)}qualifiedName(){return this.getRuleContext(0,tS)}columnListWithParentheses(){return this.getRuleContext(0,Ri)}optionalRelOptions(){return this.getRuleContext(0,da)}RECURSIVE(){return this.getToken(Ps.RECURSIVE,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}columnList(){return this.getRuleContext(0,Ai)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}OR(){return this.getToken(Ps.OR,0)}REPLACE(){return this.getToken(Ps.REPLACE,0)}get ruleIndex(){return Ps.RULE_viewStatement}accept(t){return t.visitViewStatement?t.visitViewStatement(this):t.visitChildren(this)}},nE=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}CHECK(){return this.getToken(Ps.CHECK,0)}OPTION(){return this.getToken(Ps.OPTION,0)}CASCADED(){return this.getToken(Ps.CASCADED,0)}LOCAL(){return this.getToken(Ps.LOCAL,0)}get ruleIndex(){return Ps.RULE_optionalCheckOption}accept(t){return t.visitOptionalCheckOption?t.visitOptionalCheckOption(this):t.visitChildren(this)}},hE=class extends p{constructor(t,e){super(t,e)}LOAD(){return this.getToken(Ps.LOAD,0)}fileName(){return this.getRuleContext(0,iS)}get ruleIndex(){return Ps.RULE_loadStatement}accept(t){return t.visitLoadStatement?t.visitLoadStatement(this):t.visitChildren(this)}},EE=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}name(){return this.getRuleContext(0,sS)}optionalWith(){return this.getRuleContext(0,gs)}createDatabaseOptionList(){return this.getRuleContext(0,TE)}get ruleIndex(){return Ps.RULE_createDatabaseStatement}accept(t){return t.visitCreateDatabaseStatement?t.visitCreateDatabaseStatement(this):t.visitChildren(this)}},TE=class extends p{constructor(t,e){super(t,e)}createDatabaseOptionItem(t){return void 0===t?this.getRuleContexts(oE):this.getRuleContext(t,oE)}get ruleIndex(){return Ps.RULE_createDatabaseOptionList}accept(t){return t.visitCreateDatabaseOptionList?t.visitCreateDatabaseOptionList(this):t.visitChildren(this)}},oE=class extends p{constructor(t,e){super(t,e)}createDatabaseOptionName(){return this.getRuleContext(0,RE)}signedIconst(){return this.getRuleContext(0,SS)}booleanOrString(){return this.getRuleContext(0,$s)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}EQUAL(){return this.getToken(Ps.EQUAL,0)}get ruleIndex(){return Ps.RULE_createDatabaseOptionItem}accept(t){return t.visitCreateDatabaseOptionItem?t.visitCreateDatabaseOptionItem(this):t.visitChildren(this)}},RE=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}CONNECTION(){return this.getToken(Ps.CONNECTION,0)}LIMIT(){return this.getToken(Ps.LIMIT,0)}ENCODING(){return this.getToken(Ps.ENCODING,0)}LOCATION(){return this.getToken(Ps.LOCATION,0)}OWNER(){return this.getToken(Ps.OWNER,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}TEMPLATE(){return this.getToken(Ps.TEMPLATE,0)}get ruleIndex(){return Ps.RULE_createDatabaseOptionName}accept(t){return t.visitCreateDatabaseOptionName?t.visitCreateDatabaseOptionName(this):t.visitChildren(this)}},AE=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}WITH(){return this.getToken(Ps.WITH,0)}createDatabaseOptionList(){return this.getRuleContext(0,TE)}SET(){return this.getToken(Ps.SET,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_alterDatabaseStatement}accept(t){return t.visitAlterDatabaseStatement?t.visitAlterDatabaseStatement(this):t.visitChildren(this)}},SE=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}setResetClause(){return this.getRuleContext(0,ca)}get ruleIndex(){return Ps.RULE_alterDatabaseSetStatement}accept(t){return t.visitAlterDatabaseSetStatement?t.visitAlterDatabaseSetStatement(this):t.visitChildren(this)}},lE=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(Ps.DROP,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}databaseName(){return this.getRuleContext(0,VA)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}optionalWith(){return this.getRuleContext(0,gs)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}FORCE(t){return void 0===t?this.getTokens(Ps.FORCE):this.getToken(Ps.FORCE,t)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_dropDatabaseStatement}accept(t){return t.visitDropDatabaseStatement?t.visitDropDatabaseStatement(this):t.visitChildren(this)}},OE=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}COLLATION(){return this.getToken(Ps.COLLATION,0)}anyName(){return this.getRuleContext(0,Wc)}REFRESH(){return this.getToken(Ps.REFRESH,0)}VERSION_P(){return this.getToken(Ps.VERSION_P,0)}get ruleIndex(){return Ps.RULE_alterCollationStatement}accept(t){return t.visitAlterCollationStatement?t.visitAlterCollationStatement(this):t.visitChildren(this)}},IE=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}SYSTEM_P(){return this.getToken(Ps.SYSTEM_P,0)}genericSetClause(){return this.getRuleContext(0,Qs)}SET(){return this.getToken(Ps.SET,0)}RESET(){return this.getToken(Ps.RESET,0)}get ruleIndex(){return Ps.RULE_alterSystemStatement}accept(t){return t.visitAlterSystemStatement?t.visitAlterSystemStatement(this):t.visitChildren(this)}},uE=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}anyName(){return this.getRuleContext(0,Wc)}optionalAs(){return this.getRuleContext(0,CE)}typeName(){return this.getRuleContext(0,yo)}columnQualifierList(){return this.getRuleContext(0,si)}get ruleIndex(){return Ps.RULE_createDomainStatement}accept(t){return t.visitCreateDomainStatement?t.visitCreateDomainStatement(this):t.visitChildren(this)}},NE=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}anyName(){return this.getRuleContext(0,Wc)}alterDomainCommand(){return this.getRuleContext(0,LE)}get ruleIndex(){return Ps.RULE_alterDomainStatement}accept(t){return t.visitAlterDomainStatement?t.visitAlterDomainStatement(this):t.visitChildren(this)}},LE=class extends p{constructor(t,e){super(t,e)}alterColumnDefault(){return this.getRuleContext(0,Na)}DROP(){return this.getToken(Ps.DROP,0)}NOT(){return this.getToken(Ps.NOT,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}SET(){return this.getToken(Ps.SET,0)}ADD_P(){return this.getToken(Ps.ADD_P,0)}tableConstraint(){return this.getRuleContext(0,Ti)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}constraintName(){return this.getRuleContext(0,jA)}optionalDropBehavior(){return this.getRuleContext(0,La)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}VALIDATE(){return this.getToken(Ps.VALIDATE,0)}get ruleIndex(){return Ps.RULE_alterDomainCommand}accept(t){return t.visitAlterDomainCommand?t.visitAlterDomainCommand(this):t.visitChildren(this)}},CE=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(Ps.AS,0)}get ruleIndex(){return Ps.RULE_optionalAs}accept(t){return t.visitOptionalAs?t.visitOptionalAs(this):t.visitChildren(this)}},_E=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(Ps.ALTER,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}anyName(){return this.getRuleContext(0,Wc)}definition(){return this.getRuleContext(0,Oc)}get ruleIndex(){return Ps.RULE_altertsDictionaryStatement}accept(t){return t.visitAltertsDictionaryStatement?t.visitAltertsDictionaryStatement(this):t.visitChildren(this)}},PE=class extends p{constructor(t,e){super(t,e)}ALTER(t){return void 0===t?this.getTokens(Ps.ALTER):this.getToken(Ps.ALTER,t)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}anyName(t){return void 0===t?this.getRuleContexts(Wc):this.getRuleContext(t,Wc)}ADD_P(){return this.getToken(Ps.ADD_P,0)}MAPPING(){return this.getToken(Ps.MAPPING,0)}FOR(){return this.getToken(Ps.FOR,0)}nameList(){return this.getRuleContext(0,eS)}WITH(){return this.getToken(Ps.WITH,0)}anyNameList(){return this.getRuleContext(0,bc)}REPLACE(){return this.getToken(Ps.REPLACE,0)}DROP(){return this.getToken(Ps.DROP,0)}IF_P(){return this.getToken(Ps.IF_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_altertsConfigurationStatement}accept(t){return t.visitAltertsConfigurationStatement?t.visitAltertsConfigurationStatement(this):t.visitChildren(this)}},ME=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(Ps.CREATE,0)}CONVERSION_P(){return this.getToken(Ps.CONVERSION_P,0)}anyName(t){return void 0===t?this.getRuleContexts(Wc):this.getRuleContext(t,Wc)}FOR(){return this.getToken(Ps.FOR,0)}sconst(t){return void 0===t?this.getRuleContexts(oS):this.getRuleContext(t,oS)}TO(){return this.getToken(Ps.TO,0)}FROM(){return this.getToken(Ps.FROM,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_createConversionStatement}accept(t){return t.visitCreateConversionStatement?t.visitCreateConversionStatement(this):t.visitChildren(this)}},dE=class extends p{constructor(t,e){super(t,e)}CLUSTER(){return this.getToken(Ps.CLUSTER,0)}optionalVerbose(){return this.getRuleContext(0,GE)}qualifiedName(){return this.getRuleContext(0,tS)}clusterIndexSpecification(){return this.getRuleContext(0,UE)}name(){return this.getRuleContext(0,sS)}ON(){return this.getToken(Ps.ON,0)}get ruleIndex(){return Ps.RULE_clusterStatement}accept(t){return t.visitClusterStatement?t.visitClusterStatement(this):t.visitChildren(this)}},UE=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_clusterIndexSpecification}accept(t){return t.visitClusterIndexSpecification?t.visitClusterIndexSpecification(this):t.visitChildren(this)}},mE=class extends p{constructor(t,e){super(t,e)}VACUUM(){return this.getToken(Ps.VACUUM,0)}optionalVerbose(){return this.getRuleContext(0,GE)}optionalVacuumRelationList(){return this.getRuleContext(0,BE)}FULL(){return this.getToken(Ps.FULL,0)}FREEZE(){return this.getToken(Ps.FREEZE,0)}analyzeKeyword(){return this.getRuleContext(0,gE)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}vacuumAnalyzeOptionList(){return this.getRuleContext(0,pE)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_vacuumStatement}accept(t){return t.visitVacuumStatement?t.visitVacuumStatement(this):t.visitChildren(this)}},DE=class extends p{constructor(t,e){super(t,e)}analyzeKeyword(){return this.getRuleContext(0,gE)}optionalVerbose(){return this.getRuleContext(0,GE)}optionalVacuumRelationList(){return this.getRuleContext(0,BE)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}vacuumAnalyzeOptionList(){return this.getRuleContext(0,pE)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_analyzeStatement}accept(t){return t.visitAnalyzeStatement?t.visitAnalyzeStatement(this):t.visitChildren(this)}},pE=class extends p{constructor(t,e){super(t,e)}vacuumAnalyzeOptionElement(t){return void 0===t?this.getRuleContexts(xE):this.getRuleContext(t,xE)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_vacuumAnalyzeOptionList}accept(t){return t.visitVacuumAnalyzeOptionList?t.visitVacuumAnalyzeOptionList(this):t.visitChildren(this)}},gE=class extends p{constructor(t,e){super(t,e)}ANALYZE(){return this.getToken(Ps.ANALYZE,0)}ANALYSE(){return this.getToken(Ps.ANALYSE,0)}get ruleIndex(){return Ps.RULE_analyzeKeyword}accept(t){return t.visitAnalyzeKeyword?t.visitAnalyzeKeyword(this):t.visitChildren(this)}},xE=class extends p{constructor(t,e){super(t,e)}vacuumAnalyzeOptionName(){return this.getRuleContext(0,kE)}vacuumAnalyzeOptionArgument(){return this.getRuleContext(0,HE)}get ruleIndex(){return Ps.RULE_vacuumAnalyzeOptionElement}accept(t){return t.visitVacuumAnalyzeOptionElement?t.visitVacuumAnalyzeOptionElement(this):t.visitChildren(this)}},kE=class extends p{constructor(t,e){super(t,e)}nonReservedWord(){return this.getRuleContext(0,LS)}analyzeKeyword(){return this.getRuleContext(0,gE)}get ruleIndex(){return Ps.RULE_vacuumAnalyzeOptionName}accept(t){return t.visitVacuumAnalyzeOptionName?t.visitVacuumAnalyzeOptionName(this):t.visitChildren(this)}},HE=class extends p{constructor(t,e){super(t,e)}booleanOrString(){return this.getRuleContext(0,$s)}numericOnly(){return this.getRuleContext(0,Ji)}get ruleIndex(){return Ps.RULE_vacuumAnalyzeOptionArgument}accept(t){return t.visitVacuumAnalyzeOptionArgument?t.visitVacuumAnalyzeOptionArgument(this):t.visitChildren(this)}},GE=class extends p{constructor(t,e){super(t,e)}VERBOSE(){return this.getToken(Ps.VERBOSE,0)}get ruleIndex(){return Ps.RULE_optionalVerbose}accept(t){return t.visitOptionalVerbose?t.visitOptionalVerbose(this):t.visitChildren(this)}},FE=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}nameList(){return this.getRuleContext(0,eS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalNameList}accept(t){return t.visitOptionalNameList?t.visitOptionalNameList(this):t.visitChildren(this)}},vE=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}optionalNameList(){return this.getRuleContext(0,FE)}get ruleIndex(){return Ps.RULE_vacuumRelation}accept(t){return t.visitVacuumRelation?t.visitVacuumRelation(this):t.visitChildren(this)}},BE=class extends p{constructor(t,e){super(t,e)}vacuumRelation(t){return void 0===t?this.getRuleContexts(vE):this.getRuleContext(t,vE)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_optionalVacuumRelationList}accept(t){return t.visitOptionalVacuumRelationList?t.visitOptionalVacuumRelationList(this):t.visitChildren(this)}},yE=class extends p{constructor(t,e){super(t,e)}EXPLAIN(){return this.getToken(Ps.EXPLAIN,0)}explainableStatement(){return this.getRuleContext(0,fE)}analyzeKeyword(){return this.getRuleContext(0,gE)}optionalVerbose(){return this.getRuleContext(0,GE)}VERBOSE(){return this.getToken(Ps.VERBOSE,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}explainOptionElement(t){return void 0===t?this.getRuleContexts(YE):this.getRuleContext(t,YE)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_explainStatement}accept(t){return t.visitExplainStatement?t.visitExplainStatement(this):t.visitChildren(this)}},fE=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_T)}insertStatement(){return this.getRuleContext(0,ZE)}updateStatement(){return this.getRuleContext(0,lT)}deleteStatement(){return this.getRuleContext(0,hT)}declareCursorStatement(){return this.getRuleContext(0,NT)}createAsStatement(){return this.getRuleContext(0,Bi)}createMaterializedViewStatement(){return this.getRuleContext(0,Yi)}refreshMaterializedViewStatement(){return this.getRuleContext(0,bi)}executeStatement(){return this.getRuleContext(0,KE)}get ruleIndex(){return Ps.RULE_explainableStatement}accept(t){return t.visitExplainableStatement?t.visitExplainableStatement(this):t.visitChildren(this)}},YE=class extends p{constructor(t,e){super(t,e)}explainOptionName(){return this.getRuleContext(0,wE)}explainOptionArgument(){return this.getRuleContext(0,bE)}get ruleIndex(){return Ps.RULE_explainOptionElement}accept(t){return t.visitExplainOptionElement?t.visitExplainOptionElement(this):t.visitChildren(this)}},wE=class extends p{constructor(t,e){super(t,e)}nonReservedWord(){return this.getRuleContext(0,LS)}analyzeKeyword(){return this.getRuleContext(0,gE)}get ruleIndex(){return Ps.RULE_explainOptionName}accept(t){return t.visitExplainOptionName?t.visitExplainOptionName(this):t.visitChildren(this)}},bE=class extends p{constructor(t,e){super(t,e)}booleanOrString(){return this.getRuleContext(0,$s)}numericOnly(){return this.getRuleContext(0,Ji)}get ruleIndex(){return Ps.RULE_explainOptionArgument}accept(t){return t.visitExplainOptionArgument?t.visitExplainOptionArgument(this):t.visitChildren(this)}},WE=class extends p{constructor(t,e){super(t,e)}PREPARE(){return this.getToken(Ps.PREPARE,0)}name(){return this.getRuleContext(0,sS)}prepareTypeClause(){return this.getRuleContext(0,VE)}AS(){return this.getToken(Ps.AS,0)}preparableStatement(){return this.getRuleContext(0,XE)}get ruleIndex(){return Ps.RULE_prepareStatement}accept(t){return t.visitPrepareStatement?t.visitPrepareStatement(this):t.visitChildren(this)}},VE=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeList(){return this.getRuleContext(0,OA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_prepareTypeClause}accept(t){return t.visitPrepareTypeClause?t.visitPrepareTypeClause(this):t.visitChildren(this)}},XE=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_T)}insertStatement(){return this.getRuleContext(0,ZE)}updateStatement(){return this.getRuleContext(0,lT)}deleteStatement(){return this.getRuleContext(0,hT)}get ruleIndex(){return Ps.RULE_preparableStatement}accept(t){return t.visitPreparableStatement?t.visitPreparableStatement(this):t.visitChildren(this)}},KE=class extends p{constructor(t,e){super(t,e)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}name(){return this.getRuleContext(0,sS)}executeParameterClause(){return this.getRuleContext(0,QE)}CREATE(){return this.getToken(Ps.CREATE,0)}temporaryOption(){return this.getRuleContext(0,Qa)}TABLE(){return this.getToken(Ps.TABLE,0)}createAsTarget(){return this.getRuleContext(0,yi)}AS(){return this.getToken(Ps.AS,0)}withData(){return this.getRuleContext(0,fi)}IF_P(){return this.getToken(Ps.IF_P,0)}NOT(){return this.getToken(Ps.NOT,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}get ruleIndex(){return Ps.RULE_executeStatement}accept(t){return t.visitExecuteStatement?t.visitExecuteStatement(this):t.visitChildren(this)}},QE=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_executeParameterClause}accept(t){return t.visitExecuteParameterClause?t.visitExecuteParameterClause(this):t.visitChildren(this)}},JE=class extends p{constructor(t,e){super(t,e)}DEALLOCATE(){return this.getToken(Ps.DEALLOCATE,0)}name(){return this.getRuleContext(0,sS)}PREPARE(){return this.getToken(Ps.PREPARE,0)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_deallocateStatement}accept(t){return t.visitDeallocateStatement?t.visitDeallocateStatement(this):t.visitChildren(this)}},ZE=class extends p{constructor(t,e){super(t,e)}INSERT(){return this.getToken(Ps.INSERT,0)}INTO(){return this.getToken(Ps.INTO,0)}insertTarget(){return this.getRuleContext(0,qE)}insertRest(){return this.getRuleContext(0,jE)}optionalOnConflict(){return this.getRuleContext(0,eT)}returningClause(){return this.getRuleContext(0,aT)}withClause(){return this.getRuleContext(0,pT)}get ruleIndex(){return Ps.RULE_insertStatement}accept(t){return t.visitInsertStatement?t.visitInsertStatement(this):t.visitChildren(this)}},qE=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}AS(){return this.getToken(Ps.AS,0)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_insertTarget}accept(t){return t.visitInsertTarget?t.visitInsertTarget(this):t.visitChildren(this)}},jE=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_T)}OVERRIDING(){return this.getToken(Ps.OVERRIDING,0)}overrideKind(){return this.getRuleContext(0,zE)}VALUE_P(){return this.getToken(Ps.VALUE_P,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}insertColumnList(){return this.getRuleContext(0,$E)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}VALUES(){return this.getToken(Ps.VALUES,0)}get ruleIndex(){return Ps.RULE_insertRest}accept(t){return t.visitInsertRest?t.visitInsertRest(this):t.visitChildren(this)}},zE=class extends p{constructor(t,e){super(t,e)}USER(){return this.getToken(Ps.USER,0)}SYSTEM_P(){return this.getToken(Ps.SYSTEM_P,0)}get ruleIndex(){return Ps.RULE_overrideKind}accept(t){return t.visitOverrideKind?t.visitOverrideKind(this):t.visitChildren(this)}},$E=class extends p{constructor(t,e){super(t,e)}insertColumnItem(t){return void 0===t?this.getRuleContexts(tT):this.getRuleContext(t,tT)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_insertColumnList}accept(t){return t.visitInsertColumnList?t.visitInsertColumnList(this):t.visitChildren(this)}},tT=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}optionalIndirection(){return this.getRuleContext(0,BA)}get ruleIndex(){return Ps.RULE_insertColumnItem}accept(t){return t.visitInsertColumnItem?t.visitInsertColumnItem(this):t.visitChildren(this)}},eT=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(Ps.ON,0)}CONFLICT(){return this.getToken(Ps.CONFLICT,0)}optionalConflictExpr(){return this.getRuleContext(0,sT)}DO(){return this.getToken(Ps.DO,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}SET(){return this.getToken(Ps.SET,0)}setClauseList(){return this.getRuleContext(0,OT)}whereClause(){return this.getRuleContext(0,mo)}NOTHING(){return this.getToken(Ps.NOTHING,0)}get ruleIndex(){return Ps.RULE_optionalOnConflict}accept(t){return t.visitOptionalOnConflict?t.visitOptionalOnConflict(this):t.visitChildren(this)}},sT=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}indexParameters(){return this.getRuleContext(0,Pn)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}whereClause(){return this.getRuleContext(0,mo)}ON(){return this.getToken(Ps.ON,0)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}constraintName(){return this.getRuleContext(0,jA)}get ruleIndex(){return Ps.RULE_optionalConflictExpr}accept(t){return t.visitOptionalConflictExpr?t.visitOptionalConflictExpr(this):t.visitChildren(this)}},aT=class extends p{constructor(t,e){super(t,e)}RETURNING(){return this.getToken(Ps.RETURNING,0)}targetList(){return this.getRuleContext(0,fA)}get ruleIndex(){return Ps.RULE_returningClause}accept(t){return t.visitReturningClause?t.visitReturningClause(this):t.visitChildren(this)}},iT=class extends p{constructor(t,e){super(t,e)}MERGE(){return this.getToken(Ps.MERGE,0)}qualifiedName(t){return void 0===t?this.getRuleContexts(tS):this.getRuleContext(t,tS)}USING(){return this.getToken(Ps.USING,0)}ON(){return this.getToken(Ps.ON,0)}expression1(){return this.getRuleContext(0,rR)}selectWithParenthesis(){return this.getRuleContext(0,PT)}mergeInsertClause(){return this.getRuleContext(0,rT)}mergeUpdateClause(){return this.getRuleContext(0,cT)}INTO(){return this.getToken(Ps.INTO,0)}aliasClause(t){return void 0===t?this.getRuleContexts(oo):this.getRuleContext(t,oo)}mergeDeleteClause(){return this.getRuleContext(0,nT)}get ruleIndex(){return Ps.RULE_mergeStatement}accept(t){return t.visitMergeStatement?t.visitMergeStatement(this):t.visitChildren(this)}},rT=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}NOT(){return this.getToken(Ps.NOT,0)}MATCHED(){return this.getToken(Ps.MATCHED,0)}INSERT(){return this.getToken(Ps.INSERT,0)}valuesClause(){return this.getRuleContext(0,co)}AND(){return this.getToken(Ps.AND,0)}expression1(){return this.getRuleContext(0,rR)}THEN(){return this.getToken(Ps.THEN,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}insertColumnList(){return this.getRuleContext(0,$E)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_mergeInsertClause}accept(t){return t.visitMergeInsertClause?t.visitMergeInsertClause(this):t.visitChildren(this)}},cT=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}MATCHED(){return this.getToken(Ps.MATCHED,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}SET(){return this.getToken(Ps.SET,0)}setClauseList(){return this.getRuleContext(0,OT)}AND(){return this.getToken(Ps.AND,0)}expression1(){return this.getRuleContext(0,rR)}THEN(){return this.getToken(Ps.THEN,0)}get ruleIndex(){return Ps.RULE_mergeUpdateClause}accept(t){return t.visitMergeUpdateClause?t.visitMergeUpdateClause(this):t.visitChildren(this)}},nT=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}MATCHED(){return this.getToken(Ps.MATCHED,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}THEN(){return this.getToken(Ps.THEN,0)}get ruleIndex(){return Ps.RULE_mergeDeleteClause}accept(t){return t.visitMergeDeleteClause?t.visitMergeDeleteClause(this):t.visitChildren(this)}},hT=class extends p{constructor(t,e){super(t,e)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}FROM(){return this.getToken(Ps.FROM,0)}relationExpressionOptionalAlias(){return this.getRuleContext(0,Lo)}usingClause(){return this.getRuleContext(0,ET)}whereOrCurrentClause(){return this.getRuleContext(0,Do)}returningClause(){return this.getRuleContext(0,aT)}withClause(){return this.getRuleContext(0,pT)}get ruleIndex(){return Ps.RULE_deleteStatement}accept(t){return t.visitDeleteStatement?t.visitDeleteStatement(this):t.visitChildren(this)}},ET=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}fromList(){return this.getRuleContext(0,ho)}get ruleIndex(){return Ps.RULE_usingClause}accept(t){return t.visitUsingClause?t.visitUsingClause(this):t.visitChildren(this)}},TT=class extends p{constructor(t,e){super(t,e)}LOCK_P(){return this.getToken(Ps.LOCK_P,0)}optionalTable(){return this.getRuleContext(0,GT)}relationExpressionList(){return this.getRuleContext(0,No)}optionalLock(){return this.getRuleContext(0,oT)}optionalNowait(){return this.getRuleContext(0,AT)}get ruleIndex(){return Ps.RULE_lockStatement}accept(t){return t.visitLockStatement?t.visitLockStatement(this):t.visitChildren(this)}},oT=class extends p{constructor(t,e){super(t,e)}IN_P(){return this.getToken(Ps.IN_P,0)}lockType(){return this.getRuleContext(0,RT)}MODE(){return this.getToken(Ps.MODE,0)}get ruleIndex(){return Ps.RULE_optionalLock}accept(t){return t.visitOptionalLock?t.visitOptionalLock(this):t.visitChildren(this)}},RT=class extends p{constructor(t,e){super(t,e)}ACCESS(){return this.getToken(Ps.ACCESS,0)}SHARE(){return this.getToken(Ps.SHARE,0)}EXCLUSIVE(){return this.getToken(Ps.EXCLUSIVE,0)}ROW(){return this.getToken(Ps.ROW,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}get ruleIndex(){return Ps.RULE_lockType}accept(t){return t.visitLockType?t.visitLockType(this):t.visitChildren(this)}},AT=class extends p{constructor(t,e){super(t,e)}NOWAIT(){return this.getToken(Ps.NOWAIT,0)}get ruleIndex(){return Ps.RULE_optionalNowait}accept(t){return t.visitOptionalNowait?t.visitOptionalNowait(this):t.visitChildren(this)}},ST=class extends p{constructor(t,e){super(t,e)}NOWAIT(){return this.getToken(Ps.NOWAIT,0)}SKIP_P(){return this.getToken(Ps.SKIP_P,0)}LOCKED(){return this.getToken(Ps.LOCKED,0)}get ruleIndex(){return Ps.RULE_optionalNowaitOrSkip}accept(t){return t.visitOptionalNowaitOrSkip?t.visitOptionalNowaitOrSkip(this):t.visitChildren(this)}},lT=class extends p{constructor(t,e){super(t,e)}UPDATE(){return this.getToken(Ps.UPDATE,0)}relationExpressionOptionalAlias(){return this.getRuleContext(0,Lo)}SET(){return this.getToken(Ps.SET,0)}setClauseList(){return this.getRuleContext(0,OT)}fromClause(){return this.getRuleContext(0,no)}whereOrCurrentClause(){return this.getRuleContext(0,Do)}returningClause(){return this.getRuleContext(0,aT)}withClause(){return this.getRuleContext(0,pT)}get ruleIndex(){return Ps.RULE_updateStatement}accept(t){return t.visitUpdateStatement?t.visitUpdateStatement(this):t.visitChildren(this)}},OT=class extends p{constructor(t,e){super(t,e)}setClause(t){return void 0===t?this.getRuleContexts(IT):this.getRuleContext(t,IT)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_setClauseList}accept(t){return t.visitSetClauseList?t.visitSetClauseList(this):t.visitChildren(this)}},IT=class extends p{constructor(t,e){super(t,e)}setTarget(t){return void 0===t?this.getRuleContexts(uT):this.getRuleContext(t,uT)}EQUAL(){return this.getToken(Ps.EQUAL,0)}expression1(){return this.getRuleContext(0,rR)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_setClause}accept(t){return t.visitSetClause?t.visitSetClause(this):t.visitChildren(this)}},uT=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}optionalIndirection(){return this.getRuleContext(0,BA)}get ruleIndex(){return Ps.RULE_setTarget}accept(t){return t.visitSetTarget?t.visitSetTarget(this):t.visitChildren(this)}},NT=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken(Ps.DECLARE,0)}cursorName(){return this.getRuleContext(0,LT)}CURSOR(){return this.getToken(Ps.CURSOR,0)}optionalHold(){return this.getRuleContext(0,CT)}FOR(){return this.getToken(Ps.FOR,0)}selectStatement(){return this.getRuleContext(0,_T)}NO(t){return void 0===t?this.getTokens(Ps.NO):this.getToken(Ps.NO,t)}SCROLL(t){return void 0===t?this.getTokens(Ps.SCROLL):this.getToken(Ps.SCROLL,t)}BINARY(t){return void 0===t?this.getTokens(Ps.BINARY):this.getToken(Ps.BINARY,t)}INSENSITIVE(t){return void 0===t?this.getTokens(Ps.INSENSITIVE):this.getToken(Ps.INSENSITIVE,t)}get ruleIndex(){return Ps.RULE_declareCursorStatement}accept(t){return t.visitDeclareCursorStatement?t.visitDeclareCursorStatement(this):t.visitChildren(this)}},LT=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_cursorName}accept(t){return t.visitCursorName?t.visitCursorName(this):t.visitChildren(this)}},CT=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}HOLD(){return this.getToken(Ps.HOLD,0)}WITHOUT(){return this.getToken(Ps.WITHOUT,0)}get ruleIndex(){return Ps.RULE_optionalHold}accept(t){return t.visitOptionalHold?t.visitOptionalHold(this):t.visitChildren(this)}},_T=class extends p{constructor(t,e){super(t,e)}selectWithoutParenthesis(){return this.getRuleContext(0,MT)}selectWithParenthesis(){return this.getRuleContext(0,PT)}get ruleIndex(){return Ps.RULE_selectStatement}accept(t){return t.visitSelectStatement?t.visitSelectStatement(this):t.visitChildren(this)}},PT=class t extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}selectWithoutParenthesis(){return this.getRuleContext(0,MT)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}selectWithParenthesis(){return this.getRuleContext(0,t)}get ruleIndex(){return Ps.RULE_selectWithParenthesis}accept(t){return t.visitSelectWithParenthesis?t.visitSelectWithParenthesis(this):t.visitChildren(this)}},MT=class extends p{constructor(t,e){super(t,e)}selectClause(){return this.getRuleContext(0,dT)}optionalSortClause(){return this.getRuleContext(0,yT)}forLockingClause(){return this.getRuleContext(0,so)}optionalSelectLimit(){return this.getRuleContext(0,WT)}selectLimit(){return this.getRuleContext(0,bT)}withClause(){return this.getRuleContext(0,pT)}get ruleIndex(){return Ps.RULE_selectWithoutParenthesis}accept(t){return t.visitSelectWithoutParenthesis?t.visitSelectWithoutParenthesis(this):t.visitChildren(this)}},dT=class extends p{constructor(t,e){super(t,e)}simpleSelectIntersect(t){return void 0===t?this.getRuleContexts(UT):this.getRuleContext(t,UT)}allOrDistinct(t){return void 0===t?this.getRuleContexts(FT):this.getRuleContext(t,FT)}UNION(t){return void 0===t?this.getTokens(Ps.UNION):this.getToken(Ps.UNION,t)}EXCEPT(t){return void 0===t?this.getTokens(Ps.EXCEPT):this.getToken(Ps.EXCEPT,t)}get ruleIndex(){return Ps.RULE_selectClause}accept(t){return t.visitSelectClause?t.visitSelectClause(this):t.visitChildren(this)}},UT=class extends p{constructor(t,e){super(t,e)}simpleSelectPramary(t){return void 0===t?this.getRuleContexts(DT):this.getRuleContext(t,DT)}INTERSECT(t){return void 0===t?this.getTokens(Ps.INTERSECT):this.getToken(Ps.INTERSECT,t)}allOrDistinct(t){return void 0===t?this.getRuleContexts(FT):this.getRuleContext(t,FT)}get ruleIndex(){return Ps.RULE_simpleSelectIntersect}accept(t){return t.visitSimpleSelectIntersect?t.visitSimpleSelectIntersect(this):t.visitChildren(this)}},mT=class extends p{constructor(t,e){super(t,e)}targetList(){return this.getRuleContext(0,fA)}intoClause(){return this.getRuleContext(0,kT)}allClause(){return this.getRuleContext(0,BT)}optionalTargetList(){return this.getRuleContext(0,yA)}distinctClause(){return this.getRuleContext(0,vT)}get ruleIndex(){return Ps.RULE_simpleSelectStart}accept(t){return t.visitSimpleSelectStart?t.visitSimpleSelectStart(this):t.visitChildren(this)}},DT=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken(Ps.SELECT,0)}simpleSelectStart(){return this.getRuleContext(0,mT)}fromClause(){return this.getRuleContext(0,no)}whereClause(){return this.getRuleContext(0,mo)}groupClause(){return this.getRuleContext(0,zT)}havingClause(){return this.getRuleContext(0,eo)}windowClause(){return this.getRuleContext(0,QR)}valuesClause(){return this.getRuleContext(0,co)}TABLE(){return this.getToken(Ps.TABLE,0)}relationExpression(){return this.getRuleContext(0,uo)}selectWithParenthesis(){return this.getRuleContext(0,PT)}get ruleIndex(){return Ps.RULE_simpleSelectPramary}accept(t){return t.visitSimpleSelectPramary?t.visitSimpleSelectPramary(this):t.visitChildren(this)}},pT=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}commonTableExpression(t){return void 0===t?this.getRuleContexts(gT):this.getRuleContext(t,gT)}RECURSIVE(){return this.getToken(Ps.RECURSIVE,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_withClause}accept(t){return t.visitWithClause?t.visitWithClause(this):t.visitChildren(this)}},gT=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}optionalNameList(){return this.getRuleContext(0,FE)}AS(){return this.getToken(Ps.AS,0)}optionalMaterialized(){return this.getRuleContext(0,xT)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}preparableStatement(){return this.getRuleContext(0,XE)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_commonTableExpression}accept(t){return t.visitCommonTableExpression?t.visitCommonTableExpression(this):t.visitChildren(this)}},xT=class extends p{constructor(t,e){super(t,e)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}NOT(){return this.getToken(Ps.NOT,0)}get ruleIndex(){return Ps.RULE_optionalMaterialized}accept(t){return t.visitOptionalMaterialized?t.visitOptionalMaterialized(this):t.visitChildren(this)}},kT=class extends p{constructor(t,e){super(t,e)}INTO(){return this.getToken(Ps.INTO,0)}optionalTemporaryTableName(){return this.getRuleContext(0,HT)}intoTarget(){return this.getRuleContext(0,eO)}STRICT_P(){return this.getToken(Ps.STRICT_P,0)}get ruleIndex(){return Ps.RULE_intoClause}accept(t){return t.visitIntoClause?t.visitIntoClause(this):t.visitChildren(this)}},HT=class extends p{constructor(t,e){super(t,e)}optionalTable(){return this.getRuleContext(0,GT)}qualifiedName(){return this.getRuleContext(0,tS)}TEMPORARY(){return this.getToken(Ps.TEMPORARY,0)}TEMP(){return this.getToken(Ps.TEMP,0)}LOCAL(){return this.getToken(Ps.LOCAL,0)}GLOBAL(){return this.getToken(Ps.GLOBAL,0)}UNLOGGED(){return this.getToken(Ps.UNLOGGED,0)}TABLE(){return this.getToken(Ps.TABLE,0)}get ruleIndex(){return Ps.RULE_optionalTemporaryTableName}accept(t){return t.visitOptionalTemporaryTableName?t.visitOptionalTemporaryTableName(this):t.visitChildren(this)}},GT=class extends p{constructor(t,e){super(t,e)}TABLE(){return this.getToken(Ps.TABLE,0)}get ruleIndex(){return Ps.RULE_optionalTable}accept(t){return t.visitOptionalTable?t.visitOptionalTable(this):t.visitChildren(this)}},FT=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(Ps.ALL,0)}DISTINCT(){return this.getToken(Ps.DISTINCT,0)}get ruleIndex(){return Ps.RULE_allOrDistinct}accept(t){return t.visitAllOrDistinct?t.visitAllOrDistinct(this):t.visitChildren(this)}},vT=class extends p{constructor(t,e){super(t,e)}DISTINCT(){return this.getToken(Ps.DISTINCT,0)}ON(){return this.getToken(Ps.ON,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_distinctClause}accept(t){return t.visitDistinctClause?t.visitDistinctClause(this):t.visitChildren(this)}},BT=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_allClause}accept(t){return t.visitAllClause?t.visitAllClause(this):t.visitChildren(this)}},yT=class extends p{constructor(t,e){super(t,e)}sortClause(){return this.getRuleContext(0,fT)}get ruleIndex(){return Ps.RULE_optionalSortClause}accept(t){return t.visitOptionalSortClause?t.visitOptionalSortClause(this):t.visitChildren(this)}},fT=class extends p{constructor(t,e){super(t,e)}ORDER(){return this.getToken(Ps.ORDER,0)}BY(){return this.getToken(Ps.BY,0)}sortByList(){return this.getRuleContext(0,YT)}get ruleIndex(){return Ps.RULE_sortClause}accept(t){return t.visitSortClause?t.visitSortClause(this):t.visitChildren(this)}},YT=class extends p{constructor(t,e){super(t,e)}sortBy(t){return void 0===t?this.getRuleContexts(wT):this.getRuleContext(t,wT)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_sortByList}accept(t){return t.visitSortByList?t.visitSortByList(this):t.visitChildren(this)}},wT=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}optionalNullsOrder(){return this.getRuleContext(0,gn)}USING(){return this.getToken(Ps.USING,0)}allOperatorQualifier(){return this.getRuleContext(0,oA)}optionalAscOrDesc(){return this.getRuleContext(0,pn)}get ruleIndex(){return Ps.RULE_sortBy}accept(t){return t.visitSortBy?t.visitSortBy(this):t.visitChildren(this)}},bT=class extends p{constructor(t,e){super(t,e)}limitClause(){return this.getRuleContext(0,VT)}offsetClause(){return this.getRuleContext(0,XT)}get ruleIndex(){return Ps.RULE_selectLimit}accept(t){return t.visitSelectLimit?t.visitSelectLimit(this):t.visitChildren(this)}},WT=class extends p{constructor(t,e){super(t,e)}selectLimit(){return this.getRuleContext(0,bT)}get ruleIndex(){return Ps.RULE_optionalSelectLimit}accept(t){return t.visitOptionalSelectLimit?t.visitOptionalSelectLimit(this):t.visitChildren(this)}},VT=class extends p{constructor(t,e){super(t,e)}LIMIT(){return this.getToken(Ps.LIMIT,0)}selectLimitValue(){return this.getRuleContext(0,KT)}COMMA(){return this.getToken(Ps.COMMA,0)}selectOffsetValue(){return this.getRuleContext(0,QT)}FETCH(){return this.getToken(Ps.FETCH,0)}firstOrNext(){return this.getRuleContext(0,jT)}selectFetchFirstValue(){return this.getRuleContext(0,JT)}rowOrRows(){return this.getRuleContext(0,qT)}ONLY(){return this.getToken(Ps.ONLY,0)}WITH(){return this.getToken(Ps.WITH,0)}TIES(){return this.getToken(Ps.TIES,0)}get ruleIndex(){return Ps.RULE_limitClause}accept(t){return t.visitLimitClause?t.visitLimitClause(this):t.visitChildren(this)}},XT=class extends p{constructor(t,e){super(t,e)}OFFSET(){return this.getToken(Ps.OFFSET,0)}selectOffsetValue(){return this.getRuleContext(0,QT)}selectFetchFirstValue(){return this.getRuleContext(0,JT)}rowOrRows(){return this.getRuleContext(0,qT)}get ruleIndex(){return Ps.RULE_offsetClause}accept(t){return t.visitOffsetClause?t.visitOffsetClause(this):t.visitChildren(this)}},KT=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_selectLimitValue}accept(t){return t.visitSelectLimitValue?t.visitSelectLimitValue(this):t.visitChildren(this)}},QT=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_selectOffsetValue}accept(t){return t.visitSelectOffsetValue?t.visitSelectOffsetValue(this):t.visitChildren(this)}},JT=class extends p{constructor(t,e){super(t,e)}expression3(){return this.getRuleContext(0,mR)}PLUS(){return this.getToken(Ps.PLUS,0)}anyConst(){return this.getRuleContext(0,ZT)}MINUS(){return this.getToken(Ps.MINUS,0)}get ruleIndex(){return Ps.RULE_selectFetchFirstValue}accept(t){return t.visitSelectFetchFirstValue?t.visitSelectFetchFirstValue(this):t.visitChildren(this)}},ZT=class extends p{constructor(t,e){super(t,e)}iconst(){return this.getRuleContext(0,TS)}fconst(){return this.getRuleContext(0,ES)}get ruleIndex(){return Ps.RULE_anyConst}accept(t){return t.visitAnyConst?t.visitAnyConst(this):t.visitChildren(this)}},qT=class extends p{constructor(t,e){super(t,e)}ROW(){return this.getToken(Ps.ROW,0)}ROWS(){return this.getToken(Ps.ROWS,0)}get ruleIndex(){return Ps.RULE_rowOrRows}accept(t){return t.visitRowOrRows?t.visitRowOrRows(this):t.visitChildren(this)}},jT=class extends p{constructor(t,e){super(t,e)}FIRST_P(){return this.getToken(Ps.FIRST_P,0)}NEXT(){return this.getToken(Ps.NEXT,0)}get ruleIndex(){return Ps.RULE_firstOrNext}accept(t){return t.visitFirstOrNext?t.visitFirstOrNext(this):t.visitChildren(this)}},zT=class extends p{constructor(t,e){super(t,e)}GROUP_P(){return this.getToken(Ps.GROUP_P,0)}BY(){return this.getToken(Ps.BY,0)}groupByList(){return this.getRuleContext(0,$T)}get ruleIndex(){return Ps.RULE_groupClause}accept(t){return t.visitGroupClause?t.visitGroupClause(this):t.visitChildren(this)}},$T=class extends p{constructor(t,e){super(t,e)}groupByItem(t){return void 0===t?this.getRuleContexts(to):this.getRuleContext(t,to)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_groupByList}accept(t){return t.visitGroupByList?t.visitGroupByList(this):t.visitChildren(this)}},to=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}CUBE(){return this.getToken(Ps.CUBE,0)}expressionList(){return this.getRuleContext(0,AA)}ROLLUP(){return this.getToken(Ps.ROLLUP,0)}GROUPING(){return this.getToken(Ps.GROUPING,0)}SETS(){return this.getToken(Ps.SETS,0)}groupByList(){return this.getRuleContext(0,$T)}get ruleIndex(){return Ps.RULE_groupByItem}accept(t){return t.visitGroupByItem?t.visitGroupByItem(this):t.visitChildren(this)}},eo=class extends p{constructor(t,e){super(t,e)}HAVING(){return this.getToken(Ps.HAVING,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_havingClause}accept(t){return t.visitHavingClause?t.visitHavingClause(this):t.visitChildren(this)}},so=class extends p{constructor(t,e){super(t,e)}forLockingItem(t){return void 0===t?this.getRuleContexts(ao):this.getRuleContext(t,ao)}FOR(){return this.getToken(Ps.FOR,0)}READ(){return this.getToken(Ps.READ,0)}ONLY(){return this.getToken(Ps.ONLY,0)}get ruleIndex(){return Ps.RULE_forLockingClause}accept(t){return t.visitForLockingClause?t.visitForLockingClause(this):t.visitChildren(this)}},ao=class extends p{constructor(t,e){super(t,e)}forLockingStrength(){return this.getRuleContext(0,io)}lockedRelationsList(){return this.getRuleContext(0,ro)}optionalNowaitOrSkip(){return this.getRuleContext(0,ST)}get ruleIndex(){return Ps.RULE_forLockingItem}accept(t){return t.visitForLockingItem?t.visitForLockingItem(this):t.visitChildren(this)}},io=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(Ps.FOR,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}SHARE(){return this.getToken(Ps.SHARE,0)}NO(){return this.getToken(Ps.NO,0)}KEY(){return this.getToken(Ps.KEY,0)}get ruleIndex(){return Ps.RULE_forLockingStrength}accept(t){return t.visitForLockingStrength?t.visitForLockingStrength(this):t.visitChildren(this)}},ro=class extends p{constructor(t,e){super(t,e)}OF(){return this.getToken(Ps.OF,0)}qualifiedNameList(){return this.getRuleContext(0,WA)}get ruleIndex(){return Ps.RULE_lockedRelationsList}accept(t){return t.visitLockedRelationsList?t.visitLockedRelationsList(this):t.visitChildren(this)}},co=class extends p{constructor(t,e){super(t,e)}VALUES(){return this.getToken(Ps.VALUES,0)}OPEN_PAREN(t){return void 0===t?this.getTokens(Ps.OPEN_PAREN):this.getToken(Ps.OPEN_PAREN,t)}expressionList(t){return void 0===t?this.getRuleContexts(AA):this.getRuleContext(t,AA)}CLOSE_PAREN(t){return void 0===t?this.getTokens(Ps.CLOSE_PAREN):this.getToken(Ps.CLOSE_PAREN,t)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_valuesClause}accept(t){return t.visitValuesClause?t.visitValuesClause(this):t.visitChildren(this)}},no=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(Ps.FROM,0)}fromList(){return this.getRuleContext(0,ho)}get ruleIndex(){return Ps.RULE_fromClause}accept(t){return t.visitFromClause?t.visitFromClause(this):t.visitChildren(this)}},ho=class extends p{constructor(t,e){super(t,e)}nonAnsiJoin(){return this.getRuleContext(0,Eo)}tableReference(t){return void 0===t?this.getRuleContexts(To):this.getRuleContext(t,To)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_fromList}accept(t){return t.visitFromList?t.visitFromList(this):t.visitChildren(this)}},Eo=class extends p{constructor(t,e){super(t,e)}tableReference(t){return void 0===t?this.getRuleContexts(To):this.getRuleContext(t,To)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_nonAnsiJoin}accept(t){return t.visitNonAnsiJoin?t.visitNonAnsiJoin(this):t.visitChildren(this)}},To=class t extends p{constructor(t,e){super(t,e)}relationExpression(){return this.getRuleContext(0,uo)}optionalAliasClause(){return this.getRuleContext(0,Ro)}functionTable(){return this.getRuleContext(0,_o)}functionAliasClause(){return this.getRuleContext(0,So)}xmlTable(){return this.getRuleContext(0,ko)}selectWithParenthesis(){return this.getRuleContext(0,PT)}LATERAL_P(){return this.getToken(Ps.LATERAL_P,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}tableReference(e){return void 0===e?this.getRuleContexts(t):this.getRuleContext(e,t)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}CROSS(t){return void 0===t?this.getTokens(Ps.CROSS):this.getToken(Ps.CROSS,t)}JOIN(t){return void 0===t?this.getTokens(Ps.JOIN):this.getToken(Ps.JOIN,t)}NATURAL(t){return void 0===t?this.getTokens(Ps.NATURAL):this.getToken(Ps.NATURAL,t)}joinQualifier(t){return void 0===t?this.getRuleContexts(Oo):this.getRuleContext(t,Oo)}tableSampleClause(){return this.getRuleContext(0,Co)}joinType(t){return void 0===t?this.getRuleContexts(lo):this.getRuleContext(t,lo)}get ruleIndex(){return Ps.RULE_tableReference}accept(t){return t.visitTableReference?t.visitTableReference(this):t.visitChildren(this)}},oo=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}AS(){return this.getToken(Ps.AS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}nameList(){return this.getRuleContext(0,eS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_aliasClause}accept(t){return t.visitAliasClause?t.visitAliasClause(this):t.visitChildren(this)}},Ro=class extends p{constructor(t,e){super(t,e)}tableAliasClause(){return this.getRuleContext(0,Ao)}get ruleIndex(){return Ps.RULE_optionalAliasClause}accept(t){return t.visitOptionalAliasClause?t.visitOptionalAliasClause(this):t.visitChildren(this)}},Ao=class extends p{constructor(t,e){super(t,e)}tableAlias(){return this.getRuleContext(0,uS)}AS(){return this.getToken(Ps.AS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}nameList(){return this.getRuleContext(0,eS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_tableAliasClause}accept(t){return t.visitTableAliasClause?t.visitTableAliasClause(this):t.visitChildren(this)}},So=class extends p{constructor(t,e){super(t,e)}aliasClause(){return this.getRuleContext(0,oo)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}tableFunctionElementList(){return this.getRuleContext(0,go)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}AS(){return this.getToken(Ps.AS,0)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_functionAliasClause}accept(t){return t.visitFunctionAliasClause?t.visitFunctionAliasClause(this):t.visitChildren(this)}},lo=class extends p{constructor(t,e){super(t,e)}FULL(){return this.getToken(Ps.FULL,0)}LEFT(){return this.getToken(Ps.LEFT,0)}RIGHT(){return this.getToken(Ps.RIGHT,0)}INNER_P(){return this.getToken(Ps.INNER_P,0)}OUTER_P(){return this.getToken(Ps.OUTER_P,0)}get ruleIndex(){return Ps.RULE_joinType}accept(t){return t.visitJoinType?t.visitJoinType(this):t.visitChildren(this)}},Oo=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}nameList(){return this.getRuleContext(0,eS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}ON(){return this.getToken(Ps.ON,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_joinQualifier}accept(t){return t.visitJoinQualifier?t.visitJoinQualifier(this):t.visitChildren(this)}},Io=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}get ruleIndex(){return Ps.RULE_viewName}accept(t){return t.visitViewName?t.visitViewName(this):t.visitChildren(this)}},uo=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}STAR(){return this.getToken(Ps.STAR,0)}ONLY(){return this.getToken(Ps.ONLY,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_relationExpression}accept(t){return t.visitRelationExpression?t.visitRelationExpression(this):t.visitChildren(this)}},No=class extends p{constructor(t,e){super(t,e)}relationExpression(t){return void 0===t?this.getRuleContexts(uo):this.getRuleContext(t,uo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_relationExpressionList}accept(t){return t.visitRelationExpressionList?t.visitRelationExpressionList(this):t.visitChildren(this)}},Lo=class extends p{constructor(t,e){super(t,e)}relationExpression(){return this.getRuleContext(0,uo)}columnId(){return this.getRuleContext(0,IS)}AS(){return this.getToken(Ps.AS,0)}get ruleIndex(){return Ps.RULE_relationExpressionOptionalAlias}accept(t){return t.visitRelationExpressionOptionalAlias?t.visitRelationExpressionOptionalAlias(this):t.visitChildren(this)}},Co=class extends p{constructor(t,e){super(t,e)}TABLESAMPLE(){return this.getToken(Ps.TABLESAMPLE,0)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(t){return void 0===t?this.getTokens(Ps.OPEN_PAREN):this.getToken(Ps.OPEN_PAREN,t)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(t){return void 0===t?this.getTokens(Ps.CLOSE_PAREN):this.getToken(Ps.CLOSE_PAREN,t)}REPEATABLE(){return this.getToken(Ps.REPEATABLE,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_tableSampleClause}accept(t){return t.visitTableSampleClause?t.visitTableSampleClause(this):t.visitChildren(this)}},_o=class extends p{constructor(t,e){super(t,e)}functionExpressionWindowless(){return this.getRuleContext(0,GR)}optionalOrdinality(){return this.getRuleContext(0,Uo)}ROWS(){return this.getToken(Ps.ROWS,0)}FROM(){return this.getToken(Ps.FROM,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}rowsFromItem(t){return void 0===t?this.getRuleContexts(Po):this.getRuleContext(t,Po)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_functionTable}accept(t){return t.visitFunctionTable?t.visitFunctionTable(this):t.visitChildren(this)}},Po=class extends p{constructor(t,e){super(t,e)}functionExpressionWindowless(){return this.getRuleContext(0,GR)}optionalColumnDefinitionList(){return this.getRuleContext(0,Mo)}get ruleIndex(){return Ps.RULE_rowsFromItem}accept(t){return t.visitRowsFromItem?t.visitRowsFromItem(this):t.visitChildren(this)}},Mo=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(Ps.AS,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}tableFunctionElementList(){return this.getRuleContext(0,go)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalColumnDefinitionList}accept(t){return t.visitOptionalColumnDefinitionList?t.visitOptionalColumnDefinitionList(this):t.visitChildren(this)}},Uo=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}ORDINALITY(){return this.getToken(Ps.ORDINALITY,0)}get ruleIndex(){return Ps.RULE_optionalOrdinality}accept(t){return t.visitOptionalOrdinality?t.visitOptionalOrdinality(this):t.visitChildren(this)}},mo=class extends p{constructor(t,e){super(t,e)}WHERE(){return this.getToken(Ps.WHERE,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_whereClause}accept(t){return t.visitWhereClause?t.visitWhereClause(this):t.visitChildren(this)}},Do=class extends p{constructor(t,e){super(t,e)}WHERE(){return this.getToken(Ps.WHERE,0)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}OF(){return this.getToken(Ps.OF,0)}cursorName(){return this.getRuleContext(0,LT)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_whereOrCurrentClause}accept(t){return t.visitWhereOrCurrentClause?t.visitWhereOrCurrentClause(this):t.visitChildren(this)}},po=class extends p{constructor(t,e){super(t,e)}tableFunctionElementList(){return this.getRuleContext(0,go)}get ruleIndex(){return Ps.RULE_optionalTableFunctionElementList}accept(t){return t.visitOptionalTableFunctionElementList?t.visitOptionalTableFunctionElementList(this):t.visitChildren(this)}},go=class extends p{constructor(t,e){super(t,e)}tableFunctionElement(t){return void 0===t?this.getRuleContexts(xo):this.getRuleContext(t,xo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_tableFunctionElementList}accept(t){return t.visitTableFunctionElementList?t.visitTableFunctionElementList(this):t.visitChildren(this)}},xo=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}typeName(){return this.getRuleContext(0,yo)}optionalCollateClause(){return this.getRuleContext(0,Ca)}get ruleIndex(){return Ps.RULE_tableFunctionElement}accept(t){return t.visitTableFunctionElement?t.visitTableFunctionElement(this):t.visitChildren(this)}},ko=class extends p{constructor(t,e){super(t,e)}XMLTABLE(){return this.getToken(Ps.XMLTABLE,0)}OPEN_PAREN(t){return void 0===t?this.getTokens(Ps.OPEN_PAREN):this.getToken(Ps.OPEN_PAREN,t)}CLOSE_PAREN(t){return void 0===t?this.getTokens(Ps.CLOSE_PAREN):this.getToken(Ps.CLOSE_PAREN,t)}expression3(){return this.getRuleContext(0,mR)}xmlExistsArgument(){return this.getRuleContext(0,WR)}COLUMNS(){return this.getToken(Ps.COLUMNS,0)}xmlTableColumnElement(t){return void 0===t?this.getRuleContexts(Ho):this.getRuleContext(t,Ho)}XMLNAMESPACES(){return this.getToken(Ps.XMLNAMESPACES,0)}xmlNamespaceList(){return this.getRuleContext(0,vo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_xmlTable}accept(t){return t.visitXmlTable?t.visitXmlTable(this):t.visitChildren(this)}},Ho=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}typeName(){return this.getRuleContext(0,yo)}FOR(){return this.getToken(Ps.FOR,0)}ORDINALITY(){return this.getToken(Ps.ORDINALITY,0)}xmlTableColumnOptionList(){return this.getRuleContext(0,Go)}get ruleIndex(){return Ps.RULE_xmlTableColumnElement}accept(t){return t.visitXmlTableColumnElement?t.visitXmlTableColumnElement(this):t.visitChildren(this)}},Go=class extends p{constructor(t,e){super(t,e)}xmlTableColumnOptionElement(t){return void 0===t?this.getRuleContexts(Fo):this.getRuleContext(t,Fo)}get ruleIndex(){return Ps.RULE_xmlTableColumnOptionList}accept(t){return t.visitXmlTableColumnOptionList?t.visitXmlTableColumnOptionList(this):t.visitChildren(this)}},Fo=class extends p{constructor(t,e){super(t,e)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}expression1(){return this.getRuleContext(0,rR)}identifier(){return this.getRuleContext(0,_S)}NOT(){return this.getToken(Ps.NOT,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}get ruleIndex(){return Ps.RULE_xmlTableColumnOptionElement}accept(t){return t.visitXmlTableColumnOptionElement?t.visitXmlTableColumnOptionElement(this):t.visitChildren(this)}},vo=class extends p{constructor(t,e){super(t,e)}xmlNamespaceElement(t){return void 0===t?this.getRuleContexts(Bo):this.getRuleContext(t,Bo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_xmlNamespaceList}accept(t){return t.visitXmlNamespaceList?t.visitXmlNamespaceList(this):t.visitChildren(this)}},Bo=class extends p{constructor(t,e){super(t,e)}expression2(){return this.getRuleContext(0,UR)}AS(){return this.getToken(Ps.AS,0)}columnLabel(){return this.getRuleContext(0,CS)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_xmlNamespaceElement}accept(t){return t.visitXmlNamespaceElement?t.visitXmlNamespaceElement(this):t.visitChildren(this)}},yo=class extends p{constructor(t,e){super(t,e)}simpleTypeName(){return this.getRuleContext(0,fo)}ARRAY(){return this.getToken(Ps.ARRAY,0)}SETOF(){return this.getToken(Ps.SETOF,0)}OPEN_BRACKET(t){return void 0===t?this.getTokens(Ps.OPEN_BRACKET):this.getToken(Ps.OPEN_BRACKET,t)}CLOSE_BRACKET(t){return void 0===t?this.getTokens(Ps.CLOSE_BRACKET):this.getToken(Ps.CLOSE_BRACKET,t)}iconst(t){return void 0===t?this.getRuleContexts(TS):this.getRuleContext(t,TS)}qualifiedName(){return this.getRuleContext(0,tS)}PERCENT(){return this.getToken(Ps.PERCENT,0)}ROWTYPE(){return this.getToken(Ps.ROWTYPE,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}get ruleIndex(){return Ps.RULE_typeName}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},fo=class extends p{constructor(t,e){super(t,e)}genericType(){return this.getRuleContext(0,wo)}numeric(){return this.getRuleContext(0,Wo)}bit(){return this.getRuleContext(0,Xo)}character(){return this.getRuleContext(0,Zo)}constDateTime(){return this.getRuleContext(0,$o)}constInterval(){return this.getRuleContext(0,tR)}optionalInterval(){return this.getRuleContext(0,sR)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_simpleTypeName}accept(t){return t.visitSimpleTypeName?t.visitSimpleTypeName(this):t.visitChildren(this)}},Yo=class extends p{constructor(t,e){super(t,e)}numeric(){return this.getRuleContext(0,Wo)}constBit(){return this.getRuleContext(0,Ko)}constCharacter(){return this.getRuleContext(0,qo)}constDateTime(){return this.getRuleContext(0,$o)}get ruleIndex(){return Ps.RULE_constTypeName}accept(t){return t.visitConstTypeName?t.visitConstTypeName(this):t.visitChildren(this)}},wo=class extends p{constructor(t,e){super(t,e)}optionalTypeModifiers(){return this.getRuleContext(0,bo)}builtinFunctionName(){return this.getRuleContext(0,DS)}typeFunctionName(){return this.getRuleContext(0,NS)}LEFT(){return this.getToken(Ps.LEFT,0)}RIGHT(){return this.getToken(Ps.RIGHT,0)}attributes(){return this.getRuleContext(0,Vc)}get ruleIndex(){return Ps.RULE_genericType}accept(t){return t.visitGenericType?t.visitGenericType(this):t.visitChildren(this)}},bo=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalTypeModifiers}accept(t){return t.visitOptionalTypeModifiers?t.visitOptionalTypeModifiers(this):t.visitChildren(this)}},Wo=class extends p{constructor(t,e){super(t,e)}INT_P(){return this.getToken(Ps.INT_P,0)}INTEGER(){return this.getToken(Ps.INTEGER,0)}SMALLINT(){return this.getToken(Ps.SMALLINT,0)}BIGINT(){return this.getToken(Ps.BIGINT,0)}REAL(){return this.getToken(Ps.REAL,0)}FLOAT_P(){return this.getToken(Ps.FLOAT_P,0)}optionalFloat(){return this.getRuleContext(0,Vo)}DOUBLE_P(){return this.getToken(Ps.DOUBLE_P,0)}PRECISION(){return this.getToken(Ps.PRECISION,0)}DECIMAL_P(){return this.getToken(Ps.DECIMAL_P,0)}optionalTypeModifiers(){return this.getRuleContext(0,bo)}DEC(){return this.getToken(Ps.DEC,0)}NUMERIC(){return this.getToken(Ps.NUMERIC,0)}BOOLEAN_P(){return this.getToken(Ps.BOOLEAN_P,0)}get ruleIndex(){return Ps.RULE_numeric}accept(t){return t.visitNumeric?t.visitNumeric(this):t.visitChildren(this)}},Vo=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_optionalFloat}accept(t){return t.visitOptionalFloat?t.visitOptionalFloat(this):t.visitChildren(this)}},Xo=class extends p{constructor(t,e){super(t,e)}bitWithLength(){return this.getRuleContext(0,Qo)}bitWithoutLength(){return this.getRuleContext(0,Jo)}get ruleIndex(){return Ps.RULE_bit}accept(t){return t.visitBit?t.visitBit(this):t.visitChildren(this)}},Ko=class extends p{constructor(t,e){super(t,e)}bitWithLength(){return this.getRuleContext(0,Qo)}bitWithoutLength(){return this.getRuleContext(0,Jo)}get ruleIndex(){return Ps.RULE_constBit}accept(t){return t.visitConstBit?t.visitConstBit(this):t.visitChildren(this)}},Qo=class extends p{constructor(t,e){super(t,e)}BIT(){return this.getToken(Ps.BIT,0)}optionalVarying(){return this.getRuleContext(0,zo)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_bitWithLength}accept(t){return t.visitBitWithLength?t.visitBitWithLength(this):t.visitChildren(this)}},Jo=class extends p{constructor(t,e){super(t,e)}BIT(){return this.getToken(Ps.BIT,0)}optionalVarying(){return this.getRuleContext(0,zo)}get ruleIndex(){return Ps.RULE_bitWithoutLength}accept(t){return t.visitBitWithoutLength?t.visitBitWithoutLength(this):t.visitChildren(this)}},Zo=class extends p{constructor(t,e){super(t,e)}characterChar(){return this.getRuleContext(0,jo)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_character}accept(t){return t.visitCharacter?t.visitCharacter(this):t.visitChildren(this)}},qo=class extends p{constructor(t,e){super(t,e)}characterChar(){return this.getRuleContext(0,jo)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_constCharacter}accept(t){return t.visitConstCharacter?t.visitConstCharacter(this):t.visitChildren(this)}},jo=class extends p{constructor(t,e){super(t,e)}optionalVarying(){return this.getRuleContext(0,zo)}CHARACTER(){return this.getToken(Ps.CHARACTER,0)}CHAR_P(){return this.getToken(Ps.CHAR_P,0)}NCHAR(){return this.getToken(Ps.NCHAR,0)}VARCHAR(){return this.getToken(Ps.VARCHAR,0)}NATIONAL(){return this.getToken(Ps.NATIONAL,0)}get ruleIndex(){return Ps.RULE_characterChar}accept(t){return t.visitCharacterChar?t.visitCharacterChar(this):t.visitChildren(this)}},zo=class extends p{constructor(t,e){super(t,e)}VARYING(){return this.getToken(Ps.VARYING,0)}get ruleIndex(){return Ps.RULE_optionalVarying}accept(t){return t.visitOptionalVarying?t.visitOptionalVarying(this):t.visitChildren(this)}},$o=class extends p{constructor(t,e){super(t,e)}optionalTimezone(){return this.getRuleContext(0,eR)}TIMESTAMP(){return this.getToken(Ps.TIMESTAMP,0)}TIME(){return this.getToken(Ps.TIME,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_constDateTime}accept(t){return t.visitConstDateTime?t.visitConstDateTime(this):t.visitChildren(this)}},tR=class extends p{constructor(t,e){super(t,e)}INTERVAL(){return this.getToken(Ps.INTERVAL,0)}get ruleIndex(){return Ps.RULE_constInterval}accept(t){return t.visitConstInterval?t.visitConstInterval(this):t.visitChildren(this)}},eR=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(Ps.WITH,0)}TIME(){return this.getToken(Ps.TIME,0)}ZONE(){return this.getToken(Ps.ZONE,0)}WITHOUT(){return this.getToken(Ps.WITHOUT,0)}get ruleIndex(){return Ps.RULE_optionalTimezone}accept(t){return t.visitOptionalTimezone?t.visitOptionalTimezone(this):t.visitChildren(this)}},sR=class extends p{constructor(t,e){super(t,e)}YEAR_P(){return this.getToken(Ps.YEAR_P,0)}MONTH_P(){return this.getToken(Ps.MONTH_P,0)}DAY_P(){return this.getToken(Ps.DAY_P,0)}HOUR_P(){return this.getToken(Ps.HOUR_P,0)}MINUTE_P(){return this.getToken(Ps.MINUTE_P,0)}intervalSecond(){return this.getRuleContext(0,aR)}TO(){return this.getToken(Ps.TO,0)}get ruleIndex(){return Ps.RULE_optionalInterval}accept(t){return t.visitOptionalInterval?t.visitOptionalInterval(this):t.visitChildren(this)}},aR=class extends p{constructor(t,e){super(t,e)}SECOND_P(){return this.getToken(Ps.SECOND_P,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}iconst(){return this.getRuleContext(0,TS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_intervalSecond}accept(t){return t.visitIntervalSecond?t.visitIntervalSecond(this):t.visitChildren(this)}},iR=class extends p{constructor(t,e){super(t,e)}ESCAPE(){return this.getToken(Ps.ESCAPE,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_optionalEscape}accept(t){return t.visitOptionalEscape?t.visitOptionalEscape(this):t.visitChildren(this)}},rR=class extends p{constructor(t,e){super(t,e)}expression1Qualifier(){return this.getRuleContext(0,cR)}get ruleIndex(){return Ps.RULE_expression1}accept(t){return t.visitExpression1?t.visitExpression1(this):t.visitChildren(this)}},cR=class extends p{constructor(t,e){super(t,e)}expression1LessLess(){return this.getRuleContext(0,nR)}operatorQualifier(){return this.getRuleContext(0,TA)}get ruleIndex(){return Ps.RULE_expression1Qualifier}accept(t){return t.visitExpression1Qualifier?t.visitExpression1Qualifier(this):t.visitChildren(this)}},nR=class extends p{constructor(t,e){super(t,e)}expression1Or(t){return void 0===t?this.getRuleContexts(hR):this.getRuleContext(t,hR)}LESS_LESS(t){return void 0===t?this.getTokens(Ps.LESS_LESS):this.getToken(Ps.LESS_LESS,t)}GREATER_GREATER(t){return void 0===t?this.getTokens(Ps.GREATER_GREATER):this.getToken(Ps.GREATER_GREATER,t)}get ruleIndex(){return Ps.RULE_expression1LessLess}accept(t){return t.visitExpression1LessLess?t.visitExpression1LessLess(this):t.visitChildren(this)}},hR=class extends p{constructor(t,e){super(t,e)}expression1And(t){return void 0===t?this.getRuleContexts(ER):this.getRuleContext(t,ER)}OR(t){return void 0===t?this.getTokens(Ps.OR):this.getToken(Ps.OR,t)}get ruleIndex(){return Ps.RULE_expression1Or}accept(t){return t.visitExpression1Or?t.visitExpression1Or(this):t.visitChildren(this)}},ER=class extends p{constructor(t,e){super(t,e)}expression1Between(t){return void 0===t?this.getRuleContexts(TR):this.getRuleContext(t,TR)}AND(t){return void 0===t?this.getTokens(Ps.AND):this.getToken(Ps.AND,t)}get ruleIndex(){return Ps.RULE_expression1And}accept(t){return t.visitExpression1And?t.visitExpression1And(this):t.visitChildren(this)}},TR=class extends p{constructor(t,e){super(t,e)}expression1In(t){return void 0===t?this.getRuleContexts(oR):this.getRuleContext(t,oR)}BETWEEN(){return this.getToken(Ps.BETWEEN,0)}AND(){return this.getToken(Ps.AND,0)}NOT(){return this.getToken(Ps.NOT,0)}SYMMETRIC(){return this.getToken(Ps.SYMMETRIC,0)}get ruleIndex(){return Ps.RULE_expression1Between}accept(t){return t.visitExpression1Between?t.visitExpression1Between(this):t.visitChildren(this)}},oR=class extends p{constructor(t,e){super(t,e)}expression1UnaryNot(){return this.getRuleContext(0,RR)}IN_P(){return this.getToken(Ps.IN_P,0)}inExpression(){return this.getRuleContext(0,UA)}NOT(){return this.getToken(Ps.NOT,0)}get ruleIndex(){return Ps.RULE_expression1In}accept(t){return t.visitExpression1In?t.visitExpression1In(this):t.visitChildren(this)}},RR=class extends p{constructor(t,e){super(t,e)}expression1IsNull(){return this.getRuleContext(0,AR)}NOT(){return this.getToken(Ps.NOT,0)}get ruleIndex(){return Ps.RULE_expression1UnaryNot}accept(t){return t.visitExpression1UnaryNot?t.visitExpression1UnaryNot(this):t.visitChildren(this)}},AR=class extends p{constructor(t,e){super(t,e)}expression1IsNot(){return this.getRuleContext(0,SR)}ISNULL(){return this.getToken(Ps.ISNULL,0)}NOTNULL(){return this.getToken(Ps.NOTNULL,0)}get ruleIndex(){return Ps.RULE_expression1IsNull}accept(t){return t.visitExpression1IsNull?t.visitExpression1IsNull(this):t.visitChildren(this)}},SR=class extends p{constructor(t,e){super(t,e)}expression1Compare(){return this.getRuleContext(0,lR)}IS(){return this.getToken(Ps.IS,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}TRUE_P(){return this.getToken(Ps.TRUE_P,0)}FALSE_P(){return this.getToken(Ps.FALSE_P,0)}UNKNOWN(){return this.getToken(Ps.UNKNOWN,0)}DISTINCT(){return this.getToken(Ps.DISTINCT,0)}FROM(){return this.getToken(Ps.FROM,0)}expression1(){return this.getRuleContext(0,rR)}OF(){return this.getToken(Ps.OF,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeList(){return this.getRuleContext(0,OA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}DOCUMENT_P(){return this.getToken(Ps.DOCUMENT_P,0)}NORMALIZED(){return this.getToken(Ps.NORMALIZED,0)}NOT(){return this.getToken(Ps.NOT,0)}unicodeNormalForm(){return this.getRuleContext(0,CA)}get ruleIndex(){return Ps.RULE_expression1IsNot}accept(t){return t.visitExpression1IsNot?t.visitExpression1IsNot(this):t.visitChildren(this)}},lR=class extends p{constructor(t,e){super(t,e)}expression1Like(t){return void 0===t?this.getRuleContexts(OR):this.getRuleContext(t,OR)}subqueryOperator(){return this.getRuleContext(0,RA)}subType(){return this.getRuleContext(0,nA)}LT(){return this.getToken(Ps.LT,0)}GT(){return this.getToken(Ps.GT,0)}EQUAL(){return this.getToken(Ps.EQUAL,0)}LESS_EQUALS(){return this.getToken(Ps.LESS_EQUALS,0)}GREATER_EQUALS(){return this.getToken(Ps.GREATER_EQUALS,0)}NOT_EQUALS(){return this.getToken(Ps.NOT_EQUALS,0)}selectWithParenthesis(){return this.getRuleContext(0,PT)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_expression1Compare}accept(t){return t.visitExpression1Compare?t.visitExpression1Compare(this):t.visitChildren(this)}},OR=class extends p{constructor(t,e){super(t,e)}expression1qualifierOperator(t){return void 0===t?this.getRuleContexts(IR):this.getRuleContext(t,IR)}optionalEscape(){return this.getRuleContext(0,iR)}LIKE(){return this.getToken(Ps.LIKE,0)}ILIKE(){return this.getToken(Ps.ILIKE,0)}SIMILAR(){return this.getToken(Ps.SIMILAR,0)}TO(){return this.getToken(Ps.TO,0)}NOT(){return this.getToken(Ps.NOT,0)}get ruleIndex(){return Ps.RULE_expression1Like}accept(t){return t.visitExpression1Like?t.visitExpression1Like(this):t.visitChildren(this)}},IR=class extends p{constructor(t,e){super(t,e)}expression1UnaryQualifierOperator(t){return void 0===t?this.getRuleContexts(uR):this.getRuleContext(t,uR)}operatorQualifier(t){return void 0===t?this.getRuleContexts(TA):this.getRuleContext(t,TA)}get ruleIndex(){return Ps.RULE_expression1qualifierOperator}accept(t){return t.visitExpression1qualifierOperator?t.visitExpression1qualifierOperator(this):t.visitChildren(this)}},uR=class extends p{constructor(t,e){super(t,e)}expression1Add(){return this.getRuleContext(0,NR)}operatorQualifier(){return this.getRuleContext(0,TA)}get ruleIndex(){return Ps.RULE_expression1UnaryQualifierOperator}accept(t){return t.visitExpression1UnaryQualifierOperator?t.visitExpression1UnaryQualifierOperator(this):t.visitChildren(this)}},NR=class extends p{constructor(t,e){super(t,e)}expressionMultiply(t){return void 0===t?this.getRuleContexts(LR):this.getRuleContext(t,LR)}MINUS(t){return void 0===t?this.getTokens(Ps.MINUS):this.getToken(Ps.MINUS,t)}PLUS(t){return void 0===t?this.getTokens(Ps.PLUS):this.getToken(Ps.PLUS,t)}get ruleIndex(){return Ps.RULE_expression1Add}accept(t){return t.visitExpression1Add?t.visitExpression1Add(this):t.visitChildren(this)}},LR=class extends p{constructor(t,e){super(t,e)}expression1Caret(t){return void 0===t?this.getRuleContexts(CR):this.getRuleContext(t,CR)}STAR(t){return void 0===t?this.getTokens(Ps.STAR):this.getToken(Ps.STAR,t)}SLASH(t){return void 0===t?this.getTokens(Ps.SLASH):this.getToken(Ps.SLASH,t)}PERCENT(t){return void 0===t?this.getTokens(Ps.PERCENT):this.getToken(Ps.PERCENT,t)}get ruleIndex(){return Ps.RULE_expressionMultiply}accept(t){return t.visitExpressionMultiply?t.visitExpressionMultiply(this):t.visitChildren(this)}},CR=class extends p{constructor(t,e){super(t,e)}expression1UnarySign(){return this.getRuleContext(0,_R)}CARET(){return this.getToken(Ps.CARET,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_expression1Caret}accept(t){return t.visitExpression1Caret?t.visitExpression1Caret(this):t.visitChildren(this)}},_R=class extends p{constructor(t,e){super(t,e)}expression1AtTimeZone(){return this.getRuleContext(0,PR)}MINUS(){return this.getToken(Ps.MINUS,0)}PLUS(){return this.getToken(Ps.PLUS,0)}get ruleIndex(){return Ps.RULE_expression1UnarySign}accept(t){return t.visitExpression1UnarySign?t.visitExpression1UnarySign(this):t.visitChildren(this)}},PR=class extends p{constructor(t,e){super(t,e)}expression1Collate(){return this.getRuleContext(0,MR)}AT(){return this.getToken(Ps.AT,0)}TIME(){return this.getToken(Ps.TIME,0)}ZONE(){return this.getToken(Ps.ZONE,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_expression1AtTimeZone}accept(t){return t.visitExpression1AtTimeZone?t.visitExpression1AtTimeZone(this):t.visitChildren(this)}},MR=class extends p{constructor(t,e){super(t,e)}expression1Typecast(){return this.getRuleContext(0,dR)}COLLATE(){return this.getToken(Ps.COLLATE,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_expression1Collate}accept(t){return t.visitExpression1Collate?t.visitExpression1Collate(this):t.visitChildren(this)}},dR=class extends p{constructor(t,e){super(t,e)}expression3(){return this.getRuleContext(0,mR)}TYPECAST(t){return void 0===t?this.getTokens(Ps.TYPECAST):this.getToken(Ps.TYPECAST,t)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}get ruleIndex(){return Ps.RULE_expression1Typecast}accept(t){return t.visitExpression1Typecast?t.visitExpression1Typecast(this):t.visitChildren(this)}},UR=class t extends p{constructor(t,e){super(t,e)}expression3(){return this.getRuleContext(0,mR)}expression2(e){return void 0===e?this.getRuleContexts(t):this.getRuleContext(e,t)}PLUS(){return this.getToken(Ps.PLUS,0)}MINUS(){return this.getToken(Ps.MINUS,0)}operatorQualifier(){return this.getRuleContext(0,TA)}CARET(){return this.getToken(Ps.CARET,0)}STAR(){return this.getToken(Ps.STAR,0)}SLASH(){return this.getToken(Ps.SLASH,0)}PERCENT(){return this.getToken(Ps.PERCENT,0)}LT(){return this.getToken(Ps.LT,0)}GT(){return this.getToken(Ps.GT,0)}EQUAL(){return this.getToken(Ps.EQUAL,0)}LESS_EQUALS(){return this.getToken(Ps.LESS_EQUALS,0)}GREATER_EQUALS(){return this.getToken(Ps.GREATER_EQUALS,0)}NOT_EQUALS(){return this.getToken(Ps.NOT_EQUALS,0)}TYPECAST(){return this.getToken(Ps.TYPECAST,0)}typeName(){return this.getRuleContext(0,yo)}IS(){return this.getToken(Ps.IS,0)}DISTINCT(){return this.getToken(Ps.DISTINCT,0)}FROM(){return this.getToken(Ps.FROM,0)}OF(){return this.getToken(Ps.OF,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}typeList(){return this.getRuleContext(0,OA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}DOCUMENT_P(){return this.getToken(Ps.DOCUMENT_P,0)}NOT(){return this.getToken(Ps.NOT,0)}get ruleIndex(){return Ps.RULE_expression2}accept(t){return t.visitExpression2?t.visitExpression2(this):t.visitChildren(this)}},mR=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return Ps.RULE_expression3}copyFrom(t){super.copyFrom(t)}},DR=class extends mR{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXISTS(){return this.getToken(Ps.EXISTS,0)}selectWithParenthesis(){return this.getRuleContext(0,PT)}accept(t){return t.visitC_expr_exists?t.visitC_expr_exists(this):t.visitChildren(this)}},pR=class extends mR{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}caseExpression(){return this.getRuleContext(0,pA)}accept(t){return t.visitC_expr_case?t.visitC_expr_case(this):t.visitChildren(this)}},gR=class extends mR{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ARRAY(){return this.getToken(Ps.ARRAY,0)}selectWithParenthesis(){return this.getRuleContext(0,PT)}arrayExpression(){return this.getRuleContext(0,IA)}PARAM(){return this.getToken(Ps.PARAM,0)}optionalIndirection(){return this.getRuleContext(0,BA)}GROUPING(){return this.getToken(Ps.GROUPING,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}UNIQUE(){return this.getToken(Ps.UNIQUE,0)}columnReference(){return this.getRuleContext(0,GA)}aExpressionConst(){return this.getRuleContext(0,cS)}plsqlVariableName(){return this.getRuleContext(0,xR)}expression1(){return this.getRuleContext(0,rR)}functionExpression(){return this.getRuleContext(0,HR)}indirection(){return this.getRuleContext(0,vA)}explicitRow(){return this.getRuleContext(0,rA)}implicitRow(){return this.getRuleContext(0,cA)}row(t){return void 0===t?this.getRuleContexts(iA):this.getRuleContext(t,iA)}OVERLAPS(){return this.getToken(Ps.OVERLAPS,0)}accept(t){return t.visitC_expr_expr?t.visitC_expr_expr(this):t.visitChildren(this)}},xR=class extends p{constructor(t,e){super(t,e)}PLSQLVARIABLENAME(){return this.getToken(Ps.PLSQLVARIABLENAME,0)}get ruleIndex(){return Ps.RULE_plsqlVariableName}accept(t){return t.visitPlsqlVariableName?t.visitPlsqlVariableName(this):t.visitChildren(this)}},kR=class extends p{constructor(t,e){super(t,e)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}functionArgumentList(){return this.getRuleContext(0,SA)}optionalSortClause(){return this.getRuleContext(0,yT)}VARIADIC(){return this.getToken(Ps.VARIADIC,0)}functionArgumentExpression(){return this.getRuleContext(0,lA)}STAR(){return this.getToken(Ps.STAR,0)}ALL(){return this.getToken(Ps.ALL,0)}DISTINCT(){return this.getToken(Ps.DISTINCT,0)}COMMA(){return this.getToken(Ps.COMMA,0)}get ruleIndex(){return Ps.RULE_functionApplication}accept(t){return t.visitFunctionApplication?t.visitFunctionApplication(this):t.visitChildren(this)}},HR=class extends p{constructor(t,e){super(t,e)}functionApplication(){return this.getRuleContext(0,kR)}withinGroupClause(){return this.getRuleContext(0,XR)}filterClause(){return this.getRuleContext(0,KR)}overClause(){return this.getRuleContext(0,qR)}functionExpressionCommonSubexpr(){return this.getRuleContext(0,FR)}get ruleIndex(){return Ps.RULE_functionExpression}accept(t){return t.visitFunctionExpression?t.visitFunctionExpression(this):t.visitChildren(this)}},GR=class extends p{constructor(t,e){super(t,e)}functionApplication(){return this.getRuleContext(0,kR)}functionExpressionCommonSubexpr(){return this.getRuleContext(0,FR)}get ruleIndex(){return Ps.RULE_functionExpressionWindowless}accept(t){return t.visitFunctionExpressionWindowless?t.visitFunctionExpressionWindowless(this):t.visitChildren(this)}},FR=class extends p{constructor(t,e){super(t,e)}COLLATION(){return this.getToken(Ps.COLLATION,0)}FOR(){return this.getToken(Ps.FOR,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}CURRENT_DATE(){return this.getToken(Ps.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(Ps.CURRENT_TIME,0)}iconst(){return this.getRuleContext(0,TS)}CURRENT_TIMESTAMP(){return this.getToken(Ps.CURRENT_TIMESTAMP,0)}LOCALTIME(){return this.getToken(Ps.LOCALTIME,0)}LOCALTIMESTAMP(){return this.getToken(Ps.LOCALTIMESTAMP,0)}CURRENT_ROLE(){return this.getToken(Ps.CURRENT_ROLE,0)}CURRENT_USER(){return this.getToken(Ps.CURRENT_USER,0)}SESSION_USER(){return this.getToken(Ps.SESSION_USER,0)}USER(){return this.getToken(Ps.USER,0)}CURRENT_CATALOG(){return this.getToken(Ps.CURRENT_CATALOG,0)}CURRENT_SCHEMA(){return this.getToken(Ps.CURRENT_SCHEMA,0)}CAST(){return this.getToken(Ps.CAST,0)}AS(){return this.getToken(Ps.AS,0)}typeName(){return this.getRuleContext(0,yo)}EXTRACT(){return this.getToken(Ps.EXTRACT,0)}extractList(){return this.getRuleContext(0,NA)}NORMALIZE(){return this.getToken(Ps.NORMALIZE,0)}COMMA(){return this.getToken(Ps.COMMA,0)}unicodeNormalForm(){return this.getRuleContext(0,CA)}OVERLAY(){return this.getToken(Ps.OVERLAY,0)}overlayList(){return this.getRuleContext(0,_A)}POSITION(){return this.getToken(Ps.POSITION,0)}positionList(){return this.getRuleContext(0,PA)}SUBSTRING(){return this.getToken(Ps.SUBSTRING,0)}substrList(){return this.getRuleContext(0,MA)}TREAT(){return this.getToken(Ps.TREAT,0)}TRIM(){return this.getToken(Ps.TRIM,0)}trimList(){return this.getRuleContext(0,dA)}BOTH(){return this.getToken(Ps.BOTH,0)}LEADING(){return this.getToken(Ps.LEADING,0)}TRAILING(){return this.getToken(Ps.TRAILING,0)}NULLIF(){return this.getToken(Ps.NULLIF,0)}COALESCE(){return this.getToken(Ps.COALESCE,0)}expressionList(){return this.getRuleContext(0,AA)}GREATEST(){return this.getToken(Ps.GREATEST,0)}LEAST(){return this.getToken(Ps.LEAST,0)}XMLCONCAT(){return this.getToken(Ps.XMLCONCAT,0)}XMLELEMENT(){return this.getToken(Ps.XMLELEMENT,0)}NAME_P(){return this.getToken(Ps.NAME_P,0)}columnLabel(){return this.getRuleContext(0,CS)}xmlAttributes(){return this.getRuleContext(0,yR)}XMLEXISTS(){return this.getToken(Ps.XMLEXISTS,0)}expression3(){return this.getRuleContext(0,mR)}xmlExistsArgument(){return this.getRuleContext(0,WR)}XMLFOREST(){return this.getToken(Ps.XMLFOREST,0)}xmlAttributeList(){return this.getRuleContext(0,fR)}XMLPARSE(){return this.getToken(Ps.XMLPARSE,0)}documentOrContent(){return this.getRuleContext(0,wR)}xmlWhitespaceOption(){return this.getRuleContext(0,bR)}XMLPI(){return this.getToken(Ps.XMLPI,0)}XMLROOT(){return this.getToken(Ps.XMLROOT,0)}XML_P(){return this.getToken(Ps.XML_P,0)}xmlRootVersion(){return this.getRuleContext(0,vR)}optionalXmlRootStandalone(){return this.getRuleContext(0,BR)}XMLSERIALIZE(){return this.getToken(Ps.XMLSERIALIZE,0)}simpleTypeName(){return this.getRuleContext(0,fo)}get ruleIndex(){return Ps.RULE_functionExpressionCommonSubexpr}accept(t){return t.visitFunctionExpressionCommonSubexpr?t.visitFunctionExpressionCommonSubexpr(this):t.visitChildren(this)}},vR=class extends p{constructor(t,e){super(t,e)}VERSION_P(){return this.getToken(Ps.VERSION_P,0)}expression1(){return this.getRuleContext(0,rR)}NO(){return this.getToken(Ps.NO,0)}VALUE_P(){return this.getToken(Ps.VALUE_P,0)}get ruleIndex(){return Ps.RULE_xmlRootVersion}accept(t){return t.visitXmlRootVersion?t.visitXmlRootVersion(this):t.visitChildren(this)}},BR=class extends p{constructor(t,e){super(t,e)}COMMA(){return this.getToken(Ps.COMMA,0)}STANDALONE_P(){return this.getToken(Ps.STANDALONE_P,0)}YES_P(){return this.getToken(Ps.YES_P,0)}NO(){return this.getToken(Ps.NO,0)}VALUE_P(){return this.getToken(Ps.VALUE_P,0)}get ruleIndex(){return Ps.RULE_optionalXmlRootStandalone}accept(t){return t.visitOptionalXmlRootStandalone?t.visitOptionalXmlRootStandalone(this):t.visitChildren(this)}},yR=class extends p{constructor(t,e){super(t,e)}XMLATTRIBUTES(){return this.getToken(Ps.XMLATTRIBUTES,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}xmlAttributeList(){return this.getRuleContext(0,fR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_xmlAttributes}accept(t){return t.visitXmlAttributes?t.visitXmlAttributes(this):t.visitChildren(this)}},fR=class extends p{constructor(t,e){super(t,e)}xmlAttributeElement(t){return void 0===t?this.getRuleContexts(YR):this.getRuleContext(t,YR)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_xmlAttributeList}accept(t){return t.visitXmlAttributeList?t.visitXmlAttributeList(this):t.visitChildren(this)}},YR=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}AS(){return this.getToken(Ps.AS,0)}columnLabel(){return this.getRuleContext(0,CS)}get ruleIndex(){return Ps.RULE_xmlAttributeElement}accept(t){return t.visitXmlAttributeElement?t.visitXmlAttributeElement(this):t.visitChildren(this)}},wR=class extends p{constructor(t,e){super(t,e)}DOCUMENT_P(){return this.getToken(Ps.DOCUMENT_P,0)}CONTENT_P(){return this.getToken(Ps.CONTENT_P,0)}get ruleIndex(){return Ps.RULE_documentOrContent}accept(t){return t.visitDocumentOrContent?t.visitDocumentOrContent(this):t.visitChildren(this)}},bR=class extends p{constructor(t,e){super(t,e)}PRESERVE(){return this.getToken(Ps.PRESERVE,0)}WHITESPACE_P(){return this.getToken(Ps.WHITESPACE_P,0)}STRIP_P(){return this.getToken(Ps.STRIP_P,0)}get ruleIndex(){return Ps.RULE_xmlWhitespaceOption}accept(t){return t.visitXmlWhitespaceOption?t.visitXmlWhitespaceOption(this):t.visitChildren(this)}},WR=class extends p{constructor(t,e){super(t,e)}PASSING(){return this.getToken(Ps.PASSING,0)}expression3(){return this.getRuleContext(0,mR)}xmlPassingMech(t){return void 0===t?this.getRuleContexts(VR):this.getRuleContext(t,VR)}get ruleIndex(){return Ps.RULE_xmlExistsArgument}accept(t){return t.visitXmlExistsArgument?t.visitXmlExistsArgument(this):t.visitChildren(this)}},VR=class extends p{constructor(t,e){super(t,e)}BY(){return this.getToken(Ps.BY,0)}REF(){return this.getToken(Ps.REF,0)}VALUE_P(){return this.getToken(Ps.VALUE_P,0)}get ruleIndex(){return Ps.RULE_xmlPassingMech}accept(t){return t.visitXmlPassingMech?t.visitXmlPassingMech(this):t.visitChildren(this)}},XR=class extends p{constructor(t,e){super(t,e)}WITHIN(){return this.getToken(Ps.WITHIN,0)}GROUP_P(){return this.getToken(Ps.GROUP_P,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}sortClause(){return this.getRuleContext(0,fT)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_withinGroupClause}accept(t){return t.visitWithinGroupClause?t.visitWithinGroupClause(this):t.visitChildren(this)}},KR=class extends p{constructor(t,e){super(t,e)}FILTER(){return this.getToken(Ps.FILTER,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}WHERE(){return this.getToken(Ps.WHERE,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_filterClause}accept(t){return t.visitFilterClause?t.visitFilterClause(this):t.visitChildren(this)}},QR=class extends p{constructor(t,e){super(t,e)}WINDOW(){return this.getToken(Ps.WINDOW,0)}windowDefinitionList(){return this.getRuleContext(0,JR)}get ruleIndex(){return Ps.RULE_windowClause}accept(t){return t.visitWindowClause?t.visitWindowClause(this):t.visitChildren(this)}},JR=class extends p{constructor(t,e){super(t,e)}windowDefinition(t){return void 0===t?this.getRuleContexts(ZR):this.getRuleContext(t,ZR)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_windowDefinitionList}accept(t){return t.visitWindowDefinitionList?t.visitWindowDefinitionList(this):t.visitChildren(this)}},ZR=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}AS(){return this.getToken(Ps.AS,0)}windowSpecification(){return this.getRuleContext(0,jR)}get ruleIndex(){return Ps.RULE_windowDefinition}accept(t){return t.visitWindowDefinition?t.visitWindowDefinition(this):t.visitChildren(this)}},qR=class extends p{constructor(t,e){super(t,e)}OVER(){return this.getToken(Ps.OVER,0)}windowSpecification(){return this.getRuleContext(0,jR)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_overClause}accept(t){return t.visitOverClause?t.visitOverClause(this):t.visitChildren(this)}},jR=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}optionalExistingWindowName(){return this.getRuleContext(0,zR)}optionalPartitionClause(){return this.getRuleContext(0,$R)}optionalSortClause(){return this.getRuleContext(0,yT)}optionalFrameClause(){return this.getRuleContext(0,tA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_windowSpecification}accept(t){return t.visitWindowSpecification?t.visitWindowSpecification(this):t.visitChildren(this)}},zR=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_optionalExistingWindowName}accept(t){return t.visitOptionalExistingWindowName?t.visitOptionalExistingWindowName(this):t.visitChildren(this)}},$R=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(Ps.PARTITION,0)}BY(){return this.getToken(Ps.BY,0)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_optionalPartitionClause}accept(t){return t.visitOptionalPartitionClause?t.visitOptionalPartitionClause(this):t.visitChildren(this)}},tA=class extends p{constructor(t,e){super(t,e)}RANGE(){return this.getToken(Ps.RANGE,0)}frameExtent(){return this.getRuleContext(0,eA)}optionalWindowExclusionClause(){return this.getRuleContext(0,aA)}ROWS(){return this.getToken(Ps.ROWS,0)}GROUPS(){return this.getToken(Ps.GROUPS,0)}get ruleIndex(){return Ps.RULE_optionalFrameClause}accept(t){return t.visitOptionalFrameClause?t.visitOptionalFrameClause(this):t.visitChildren(this)}},eA=class extends p{constructor(t,e){super(t,e)}frameBound(t){return void 0===t?this.getRuleContexts(sA):this.getRuleContext(t,sA)}BETWEEN(){return this.getToken(Ps.BETWEEN,0)}AND(){return this.getToken(Ps.AND,0)}get ruleIndex(){return Ps.RULE_frameExtent}accept(t){return t.visitFrameExtent?t.visitFrameExtent(this):t.visitChildren(this)}},sA=class extends p{constructor(t,e){super(t,e)}UNBOUNDED(){return this.getToken(Ps.UNBOUNDED,0)}PRECEDING(){return this.getToken(Ps.PRECEDING,0)}FOLLOWING(){return this.getToken(Ps.FOLLOWING,0)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}ROW(){return this.getToken(Ps.ROW,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_frameBound}accept(t){return t.visitFrameBound?t.visitFrameBound(this):t.visitChildren(this)}},aA=class extends p{constructor(t,e){super(t,e)}EXCLUDE(){return this.getToken(Ps.EXCLUDE,0)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}ROW(){return this.getToken(Ps.ROW,0)}GROUP_P(){return this.getToken(Ps.GROUP_P,0)}TIES(){return this.getToken(Ps.TIES,0)}NO(){return this.getToken(Ps.NO,0)}OTHERS(){return this.getToken(Ps.OTHERS,0)}get ruleIndex(){return Ps.RULE_optionalWindowExclusionClause}accept(t){return t.visitOptionalWindowExclusionClause?t.visitOptionalWindowExclusionClause(this):t.visitChildren(this)}},iA=class extends p{constructor(t,e){super(t,e)}ROW(){return this.getToken(Ps.ROW,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}COMMA(){return this.getToken(Ps.COMMA,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_row}accept(t){return t.visitRow?t.visitRow(this):t.visitChildren(this)}},rA=class extends p{constructor(t,e){super(t,e)}ROW(){return this.getToken(Ps.ROW,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_explicitRow}accept(t){return t.visitExplicitRow?t.visitExplicitRow(this):t.visitChildren(this)}},cA=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}COMMA(){return this.getToken(Ps.COMMA,0)}expression1(){return this.getRuleContext(0,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_implicitRow}accept(t){return t.visitImplicitRow?t.visitImplicitRow(this):t.visitChildren(this)}},nA=class extends p{constructor(t,e){super(t,e)}ANY(){return this.getToken(Ps.ANY,0)}SOME(){return this.getToken(Ps.SOME,0)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_subType}accept(t){return t.visitSubType?t.visitSubType(this):t.visitChildren(this)}},hA=class extends p{constructor(t,e){super(t,e)}Operator(){return this.getToken(Ps.Operator,0)}mathOperator(){return this.getRuleContext(0,EA)}get ruleIndex(){return Ps.RULE_allOperator}accept(t){return t.visitAllOperator?t.visitAllOperator(this):t.visitChildren(this)}},EA=class extends p{constructor(t,e){super(t,e)}PLUS(){return this.getToken(Ps.PLUS,0)}MINUS(){return this.getToken(Ps.MINUS,0)}STAR(){return this.getToken(Ps.STAR,0)}SLASH(){return this.getToken(Ps.SLASH,0)}PERCENT(){return this.getToken(Ps.PERCENT,0)}CARET(){return this.getToken(Ps.CARET,0)}LT(){return this.getToken(Ps.LT,0)}GT(){return this.getToken(Ps.GT,0)}EQUAL(){return this.getToken(Ps.EQUAL,0)}LESS_EQUALS(){return this.getToken(Ps.LESS_EQUALS,0)}GREATER_EQUALS(){return this.getToken(Ps.GREATER_EQUALS,0)}NOT_EQUALS(){return this.getToken(Ps.NOT_EQUALS,0)}get ruleIndex(){return Ps.RULE_mathOperator}accept(t){return t.visitMathOperator?t.visitMathOperator(this):t.visitChildren(this)}},TA=class extends p{constructor(t,e){super(t,e)}Operator(){return this.getToken(Ps.Operator,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}anyOperator(){return this.getRuleContext(0,ch)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_operatorQualifier}accept(t){return t.visitOperatorQualifier?t.visitOperatorQualifier(this):t.visitChildren(this)}},oA=class extends p{constructor(t,e){super(t,e)}allOperator(){return this.getRuleContext(0,hA)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}anyOperator(){return this.getRuleContext(0,ch)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_allOperatorQualifier}accept(t){return t.visitAllOperatorQualifier?t.visitAllOperatorQualifier(this):t.visitChildren(this)}},RA=class extends p{constructor(t,e){super(t,e)}allOperator(){return this.getRuleContext(0,hA)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}anyOperator(){return this.getRuleContext(0,ch)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}LIKE(){return this.getToken(Ps.LIKE,0)}NOT(){return this.getToken(Ps.NOT,0)}ILIKE(){return this.getToken(Ps.ILIKE,0)}get ruleIndex(){return Ps.RULE_subqueryOperator}accept(t){return t.visitSubqueryOperator?t.visitSubqueryOperator(this):t.visitChildren(this)}},AA=class extends p{constructor(t,e){super(t,e)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_expressionList}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},SA=class extends p{constructor(t,e){super(t,e)}functionArgumentExpression(t){return void 0===t?this.getRuleContexts(lA):this.getRuleContext(t,lA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_functionArgumentList}accept(t){return t.visitFunctionArgumentList?t.visitFunctionArgumentList(this):t.visitChildren(this)}},lA=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}parameterName(){return this.getRuleContext(0,Yn)}COLON_EQUALS(){return this.getToken(Ps.COLON_EQUALS,0)}EQUALS_GREATER(){return this.getToken(Ps.EQUALS_GREATER,0)}get ruleIndex(){return Ps.RULE_functionArgumentExpression}accept(t){return t.visitFunctionArgumentExpression?t.visitFunctionArgumentExpression(this):t.visitChildren(this)}},OA=class extends p{constructor(t,e){super(t,e)}typeName(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_typeList}accept(t){return t.visitTypeList?t.visitTypeList(this):t.visitChildren(this)}},IA=class extends p{constructor(t,e){super(t,e)}OPEN_BRACKET(){return this.getToken(Ps.OPEN_BRACKET,0)}CLOSE_BRACKET(){return this.getToken(Ps.CLOSE_BRACKET,0)}expressionList(){return this.getRuleContext(0,AA)}arrayExpressionList(){return this.getRuleContext(0,uA)}get ruleIndex(){return Ps.RULE_arrayExpression}accept(t){return t.visitArrayExpression?t.visitArrayExpression(this):t.visitChildren(this)}},uA=class extends p{constructor(t,e){super(t,e)}arrayExpression(t){return void 0===t?this.getRuleContexts(IA):this.getRuleContext(t,IA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_arrayExpressionList}accept(t){return t.visitArrayExpressionList?t.visitArrayExpressionList(this):t.visitChildren(this)}},NA=class extends p{constructor(t,e){super(t,e)}extractArgument(){return this.getRuleContext(0,LA)}FROM(){return this.getToken(Ps.FROM,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_extractList}accept(t){return t.visitExtractList?t.visitExtractList(this):t.visitChildren(this)}},LA=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}YEAR_P(){return this.getToken(Ps.YEAR_P,0)}MONTH_P(){return this.getToken(Ps.MONTH_P,0)}DAY_P(){return this.getToken(Ps.DAY_P,0)}HOUR_P(){return this.getToken(Ps.HOUR_P,0)}MINUTE_P(){return this.getToken(Ps.MINUTE_P,0)}SECOND_P(){return this.getToken(Ps.SECOND_P,0)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_extractArgument}accept(t){return t.visitExtractArgument?t.visitExtractArgument(this):t.visitChildren(this)}},CA=class extends p{constructor(t,e){super(t,e)}NFC(){return this.getToken(Ps.NFC,0)}NFD(){return this.getToken(Ps.NFD,0)}NFKC(){return this.getToken(Ps.NFKC,0)}NFKD(){return this.getToken(Ps.NFKD,0)}get ruleIndex(){return Ps.RULE_unicodeNormalForm}accept(t){return t.visitUnicodeNormalForm?t.visitUnicodeNormalForm(this):t.visitChildren(this)}},_A=class extends p{constructor(t,e){super(t,e)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}PLACING(){return this.getToken(Ps.PLACING,0)}FROM(){return this.getToken(Ps.FROM,0)}FOR(){return this.getToken(Ps.FOR,0)}get ruleIndex(){return Ps.RULE_overlayList}accept(t){return t.visitOverlayList?t.visitOverlayList(this):t.visitChildren(this)}},PA=class extends p{constructor(t,e){super(t,e)}expression2(t){return void 0===t?this.getRuleContexts(UR):this.getRuleContext(t,UR)}IN_P(){return this.getToken(Ps.IN_P,0)}get ruleIndex(){return Ps.RULE_positionList}accept(t){return t.visitPositionList?t.visitPositionList(this):t.visitChildren(this)}},MA=class extends p{constructor(t,e){super(t,e)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}FROM(){return this.getToken(Ps.FROM,0)}FOR(){return this.getToken(Ps.FOR,0)}SIMILAR(){return this.getToken(Ps.SIMILAR,0)}ESCAPE(){return this.getToken(Ps.ESCAPE,0)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_substrList}accept(t){return t.visitSubstrList?t.visitSubstrList(this):t.visitChildren(this)}},dA=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}FROM(){return this.getToken(Ps.FROM,0)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_trimList}accept(t){return t.visitTrimList?t.visitTrimList(this):t.visitChildren(this)}},UA=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return Ps.RULE_inExpression}copyFrom(t){super.copyFrom(t)}},mA=class extends UA{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expressionList(){return this.getRuleContext(0,AA)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}accept(t){return t.visitIn_expr_list?t.visitIn_expr_list(this):t.visitChildren(this)}},DA=class extends UA{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}selectWithParenthesis(){return this.getRuleContext(0,PT)}accept(t){return t.visitIn_expr_select?t.visitIn_expr_select(this):t.visitChildren(this)}},pA=class extends p{constructor(t,e){super(t,e)}CASE(){return this.getToken(Ps.CASE,0)}caseArg(){return this.getRuleContext(0,HA)}whenClauseList(){return this.getRuleContext(0,gA)}caseDefault(){return this.getRuleContext(0,kA)}END_P(){return this.getToken(Ps.END_P,0)}get ruleIndex(){return Ps.RULE_caseExpression}accept(t){return t.visitCaseExpression?t.visitCaseExpression(this):t.visitChildren(this)}},gA=class extends p{constructor(t,e){super(t,e)}whenClause(t){return void 0===t?this.getRuleContexts(xA):this.getRuleContext(t,xA)}get ruleIndex(){return Ps.RULE_whenClauseList}accept(t){return t.visitWhenClauseList?t.visitWhenClauseList(this):t.visitChildren(this)}},xA=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}THEN(){return this.getToken(Ps.THEN,0)}get ruleIndex(){return Ps.RULE_whenClause}accept(t){return t.visitWhenClause?t.visitWhenClause(this):t.visitChildren(this)}},kA=class extends p{constructor(t,e){super(t,e)}ELSE(){return this.getToken(Ps.ELSE,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_caseDefault}accept(t){return t.visitCaseDefault?t.visitCaseDefault(this):t.visitChildren(this)}},HA=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_caseArg}accept(t){return t.visitCaseArg?t.visitCaseArg(this):t.visitChildren(this)}},GA=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}indirection(){return this.getRuleContext(0,vA)}get ruleIndex(){return Ps.RULE_columnReference}accept(t){return t.visitColumnReference?t.visitColumnReference(this):t.visitChildren(this)}},FA=class extends p{constructor(t,e){super(t,e)}DOT(){return this.getToken(Ps.DOT,0)}attributeName(){return this.getRuleContext(0,aS)}STAR(){return this.getToken(Ps.STAR,0)}OPEN_BRACKET(){return this.getToken(Ps.OPEN_BRACKET,0)}CLOSE_BRACKET(){return this.getToken(Ps.CLOSE_BRACKET,0)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}COLON(){return this.getToken(Ps.COLON,0)}get ruleIndex(){return Ps.RULE_indirectionElement}accept(t){return t.visitIndirectionElement?t.visitIndirectionElement(this):t.visitChildren(this)}},vA=class extends p{constructor(t,e){super(t,e)}indirectionElement(t){return void 0===t?this.getRuleContexts(FA):this.getRuleContext(t,FA)}get ruleIndex(){return Ps.RULE_indirection}accept(t){return t.visitIndirection?t.visitIndirection(this):t.visitChildren(this)}},BA=class extends p{constructor(t,e){super(t,e)}indirectionElement(t){return void 0===t?this.getRuleContexts(FA):this.getRuleContext(t,FA)}get ruleIndex(){return Ps.RULE_optionalIndirection}accept(t){return t.visitOptionalIndirection?t.visitOptionalIndirection(this):t.visitChildren(this)}},yA=class extends p{constructor(t,e){super(t,e)}targetList(){return this.getRuleContext(0,fA)}get ruleIndex(){return Ps.RULE_optionalTargetList}accept(t){return t.visitOptionalTargetList?t.visitOptionalTargetList(this):t.visitChildren(this)}},fA=class extends p{constructor(t,e){super(t,e)}targetElement(t){return void 0===t?this.getRuleContexts(YA):this.getRuleContext(t,YA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_targetList}accept(t){return t.visitTargetList?t.visitTargetList(this):t.visitChildren(this)}},YA=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return Ps.RULE_targetElement}copyFrom(t){super.copyFrom(t)}},wA=class extends YA{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STAR(){return this.getToken(Ps.STAR,0)}accept(t){return t.visitTarget_star?t.visitTarget_star(this):t.visitChildren(this)}},bA=class extends YA{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}expression1(){return this.getRuleContext(0,rR)}AS(){return this.getToken(Ps.AS,0)}columnLabel(){return this.getRuleContext(0,CS)}identifier(){return this.getRuleContext(0,_S)}accept(t){return t.visitTarget_label?t.visitTarget_label(this):t.visitChildren(this)}},WA=class extends p{constructor(t,e){super(t,e)}qualifiedName(t){return void 0===t?this.getRuleContexts(tS):this.getRuleContext(t,tS)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_qualifiedNameList}accept(t){return t.visitQualifiedNameList?t.visitQualifiedNameList(this):t.visitChildren(this)}},VA=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_databaseName}accept(t){return t.visitDatabaseName?t.visitDatabaseName(this):t.visitChildren(this)}},XA=class extends p{constructor(t,e){super(t,e)}databaseName(t){return void 0===t?this.getRuleContexts(VA):this.getRuleContext(t,VA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_databaseNameList}accept(t){return t.visitDatabaseNameList?t.visitDatabaseNameList(this):t.visitChildren(this)}},KA=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_schemaName}accept(t){return t.visitSchemaName?t.visitSchemaName(this):t.visitChildren(this)}},QA=class extends p{constructor(t,e){super(t,e)}schemaName(t){return void 0===t?this.getRuleContexts(KA):this.getRuleContext(t,KA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_schemaNameList}accept(t){return t.visitSchemaNameList?t.visitSchemaNameList(this):t.visitChildren(this)}},JA=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}get ruleIndex(){return Ps.RULE_indexName}accept(t){return t.visitIndexName?t.visitIndexName(this):t.visitChildren(this)}},ZA=class extends p{constructor(t,e){super(t,e)}indexName(t){return void 0===t?this.getRuleContexts(JA):this.getRuleContext(t,JA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_indexNameList}accept(t){return t.visitIndexNameList?t.visitIndexNameList(this):t.visitChildren(this)}},qA=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_triggerName}accept(t){return t.visitTriggerName?t.visitTriggerName(this):t.visitChildren(this)}},jA=class extends p{constructor(t,e){super(t,e)}name(){return this.getRuleContext(0,sS)}get ruleIndex(){return Ps.RULE_constraintName}accept(t){return t.visitConstraintName?t.visitConstraintName(this):t.visitChildren(this)}},zA=class extends p{constructor(t,e){super(t,e)}qualifiedName(){return this.getRuleContext(0,tS)}get ruleIndex(){return Ps.RULE_sequenceName}accept(t){return t.visitSequenceName?t.visitSequenceName(this):t.visitChildren(this)}},$A=class extends p{constructor(t,e){super(t,e)}sequenceName(t){return void 0===t?this.getRuleContexts(zA):this.getRuleContext(t,zA)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_sequenceNameList}accept(t){return t.visitSequenceNameList?t.visitSequenceNameList(this):t.visitChildren(this)}},tS=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}indirection(){return this.getRuleContext(0,vA)}get ruleIndex(){return Ps.RULE_qualifiedName}accept(t){return t.visitQualifiedName?t.visitQualifiedName(this):t.visitChildren(this)}},eS=class extends p{constructor(t,e){super(t,e)}name(t){return void 0===t?this.getRuleContexts(sS):this.getRuleContext(t,sS)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_nameList}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}},sS=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_name}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}},aS=class extends p{constructor(t,e){super(t,e)}columnLabel(){return this.getRuleContext(0,CS)}get ruleIndex(){return Ps.RULE_attributeName}accept(t){return t.visitAttributeName?t.visitAttributeName(this):t.visitChildren(this)}},iS=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_fileName}accept(t){return t.visitFileName?t.visitFileName(this):t.visitChildren(this)}},rS=class extends p{constructor(t,e){super(t,e)}builtinFunctionName(){return this.getRuleContext(0,DS)}typeFunctionName(){return this.getRuleContext(0,NS)}columnId(){return this.getRuleContext(0,IS)}indirection(){return this.getRuleContext(0,vA)}LEFT(){return this.getToken(Ps.LEFT,0)}RIGHT(){return this.getToken(Ps.RIGHT,0)}get ruleIndex(){return Ps.RULE_functionName}accept(t){return t.visitFunctionName?t.visitFunctionName(this):t.visitChildren(this)}},cS=class extends p{constructor(t,e){super(t,e)}iconst(){return this.getRuleContext(0,TS)}fconst(){return this.getRuleContext(0,ES)}sconst(){return this.getRuleContext(0,oS)}bconst(){return this.getRuleContext(0,hS)}xconst(){return this.getRuleContext(0,nS)}functionName(){return this.getRuleContext(0,rS)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}functionArgumentList(){return this.getRuleContext(0,SA)}optionalSortClause(){return this.getRuleContext(0,yT)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}constTypeName(){return this.getRuleContext(0,Yo)}constInterval(){return this.getRuleContext(0,tR)}optionalInterval(){return this.getRuleContext(0,sR)}TRUE_P(){return this.getToken(Ps.TRUE_P,0)}FALSE_P(){return this.getToken(Ps.FALSE_P,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}get ruleIndex(){return Ps.RULE_aExpressionConst}accept(t){return t.visitAExpressionConst?t.visitAExpressionConst(this):t.visitChildren(this)}},nS=class extends p{constructor(t,e){super(t,e)}HexadecimalStringConstant(){return this.getToken(Ps.HexadecimalStringConstant,0)}get ruleIndex(){return Ps.RULE_xconst}accept(t){return t.visitXconst?t.visitXconst(this):t.visitChildren(this)}},hS=class extends p{constructor(t,e){super(t,e)}BinaryStringConstant(){return this.getToken(Ps.BinaryStringConstant,0)}get ruleIndex(){return Ps.RULE_bconst}accept(t){return t.visitBconst?t.visitBconst(this):t.visitChildren(this)}},ES=class extends p{constructor(t,e){super(t,e)}Numeric(){return this.getToken(Ps.Numeric,0)}get ruleIndex(){return Ps.RULE_fconst}accept(t){return t.visitFconst?t.visitFconst(this):t.visitChildren(this)}},TS=class extends p{constructor(t,e){super(t,e)}Integral(){return this.getToken(Ps.Integral,0)}get ruleIndex(){return Ps.RULE_iconst}accept(t){return t.visitIconst?t.visitIconst(this):t.visitChildren(this)}},oS=class extends p{constructor(t,e){super(t,e)}anySconst(){return this.getRuleContext(0,RS)}optionalUescape(){return this.getRuleContext(0,AS)}get ruleIndex(){return Ps.RULE_sconst}accept(t){return t.visitSconst?t.visitSconst(this):t.visitChildren(this)}},RS=class extends p{constructor(t,e){super(t,e)}StringConstant(){return this.getToken(Ps.StringConstant,0)}UnicodeEscapeStringConstant(){return this.getToken(Ps.UnicodeEscapeStringConstant,0)}BeginDollarStringConstant(){return this.getToken(Ps.BeginDollarStringConstant,0)}EndDollarStringConstant(){return this.getToken(Ps.EndDollarStringConstant,0)}DollarText(t){return void 0===t?this.getTokens(Ps.DollarText):this.getToken(Ps.DollarText,t)}EscapeStringConstant(){return this.getToken(Ps.EscapeStringConstant,0)}get ruleIndex(){return Ps.RULE_anySconst}accept(t){return t.visitAnySconst?t.visitAnySconst(this):t.visitChildren(this)}},AS=class extends p{constructor(t,e){super(t,e)}UESCAPE(){return this.getToken(Ps.UESCAPE,0)}anySconst(){return this.getRuleContext(0,RS)}get ruleIndex(){return Ps.RULE_optionalUescape}accept(t){return t.visitOptionalUescape?t.visitOptionalUescape(this):t.visitChildren(this)}},SS=class extends p{constructor(t,e){super(t,e)}iconst(){return this.getRuleContext(0,TS)}PLUS(){return this.getToken(Ps.PLUS,0)}MINUS(){return this.getToken(Ps.MINUS,0)}get ruleIndex(){return Ps.RULE_signedIconst}accept(t){return t.visitSignedIconst?t.visitSignedIconst(this):t.visitChildren(this)}},lS=class extends p{constructor(t,e){super(t,e)}nonReservedWord(){return this.getRuleContext(0,LS)}CURRENT_USER(){return this.getToken(Ps.CURRENT_USER,0)}SESSION_USER(){return this.getToken(Ps.SESSION_USER,0)}get ruleIndex(){return Ps.RULE_roleName}accept(t){return t.visitRoleName?t.visitRoleName(this):t.visitChildren(this)}},OS=class extends p{constructor(t,e){super(t,e)}roleName(t){return void 0===t?this.getRuleContexts(lS):this.getRuleContext(t,lS)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_roleNameList}accept(t){return t.visitRoleNameList?t.visitRoleNameList(this):t.visitChildren(this)}},IS=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}unreservedKeyword(){return this.getRuleContext(0,MS)}columnNameKeyword(){return this.getRuleContext(0,dS)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}LEFT(){return this.getToken(Ps.LEFT,0)}RIGHT(){return this.getToken(Ps.RIGHT,0)}get ruleIndex(){return Ps.RULE_columnId}accept(t){return t.visitColumnId?t.visitColumnId(this):t.visitChildren(this)}},uS=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}unreservedKeyword(){return this.getRuleContext(0,MS)}columnNameKeyword(){return this.getRuleContext(0,dS)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}get ruleIndex(){return Ps.RULE_tableAlias}accept(t){return t.visitTableAlias?t.visitTableAlias(this):t.visitChildren(this)}},NS=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}unreservedKeyword(){return this.getRuleContext(0,MS)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}typeFunctionNameKeyword(){return this.getRuleContext(0,US)}get ruleIndex(){return Ps.RULE_typeFunctionName}accept(t){return t.visitTypeFunctionName?t.visitTypeFunctionName(this):t.visitChildren(this)}},LS=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}unreservedKeyword(){return this.getRuleContext(0,MS)}columnNameKeyword(){return this.getRuleContext(0,dS)}typeFunctionNameKeyword(){return this.getRuleContext(0,US)}get ruleIndex(){return Ps.RULE_nonReservedWord}accept(t){return t.visitNonReservedWord?t.visitNonReservedWord(this):t.visitChildren(this)}},CS=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}unreservedKeyword(){return this.getRuleContext(0,MS)}columnNameKeyword(){return this.getRuleContext(0,dS)}typeFunctionNameKeyword(){return this.getRuleContext(0,US)}reservedKeyword(){return this.getRuleContext(0,mS)}get ruleIndex(){return Ps.RULE_columnLabel}accept(t){return t.visitColumnLabel?t.visitColumnLabel(this):t.visitChildren(this)}},_S=class extends p{constructor(t,e){super(t,e)}Identifier(){return this.getToken(Ps.Identifier,0)}optionalUescape(){return this.getRuleContext(0,AS)}QuotedIdentifier(){return this.getToken(Ps.QuotedIdentifier,0)}UnicodeQuotedIdentifier(){return this.getToken(Ps.UnicodeQuotedIdentifier,0)}plsqlVariableName(){return this.getRuleContext(0,xR)}plsqlIdentifier(){return this.getRuleContext(0,PS)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}get ruleIndex(){return Ps.RULE_identifier}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},PS=class extends p{constructor(t,e){super(t,e)}PLSQLIDENTIFIER(){return this.getToken(Ps.PLSQLIDENTIFIER,0)}get ruleIndex(){return Ps.RULE_plsqlIdentifier}accept(t){return t.visitPlsqlIdentifier?t.visitPlsqlIdentifier(this):t.visitChildren(this)}},MS=class extends p{constructor(t,e){super(t,e)}ABORT_P(){return this.getToken(Ps.ABORT_P,0)}ABSOLUTE_P(){return this.getToken(Ps.ABSOLUTE_P,0)}ACCESS(){return this.getToken(Ps.ACCESS,0)}ACTION(){return this.getToken(Ps.ACTION,0)}ADD_P(){return this.getToken(Ps.ADD_P,0)}ADMIN(){return this.getToken(Ps.ADMIN,0)}AFTER(){return this.getToken(Ps.AFTER,0)}AGGREGATE(){return this.getToken(Ps.AGGREGATE,0)}ALSO(){return this.getToken(Ps.ALSO,0)}ALTER(){return this.getToken(Ps.ALTER,0)}ALWAYS(){return this.getToken(Ps.ALWAYS,0)}ASSERTION(){return this.getToken(Ps.ASSERTION,0)}ASSIGNMENT(){return this.getToken(Ps.ASSIGNMENT,0)}AT(){return this.getToken(Ps.AT,0)}ATTACH(){return this.getToken(Ps.ATTACH,0)}ATTRIBUTE(){return this.getToken(Ps.ATTRIBUTE,0)}BACKWARD(){return this.getToken(Ps.BACKWARD,0)}BEFORE(){return this.getToken(Ps.BEFORE,0)}BEGIN_P(){return this.getToken(Ps.BEGIN_P,0)}BY(){return this.getToken(Ps.BY,0)}CACHE(){return this.getToken(Ps.CACHE,0)}CALL(){return this.getToken(Ps.CALL,0)}CALLED(){return this.getToken(Ps.CALLED,0)}CASCADE(){return this.getToken(Ps.CASCADE,0)}CASCADED(){return this.getToken(Ps.CASCADED,0)}CATALOG(){return this.getToken(Ps.CATALOG,0)}CHAIN(){return this.getToken(Ps.CHAIN,0)}CHARACTERISTICS(){return this.getToken(Ps.CHARACTERISTICS,0)}CHECKPOINT(){return this.getToken(Ps.CHECKPOINT,0)}CLASS(){return this.getToken(Ps.CLASS,0)}CLOSE(){return this.getToken(Ps.CLOSE,0)}CLUSTER(){return this.getToken(Ps.CLUSTER,0)}COLUMNS(){return this.getToken(Ps.COLUMNS,0)}COMMENT(){return this.getToken(Ps.COMMENT,0)}COMMENTS(){return this.getToken(Ps.COMMENTS,0)}COMMIT(){return this.getToken(Ps.COMMIT,0)}COMMITTED(){return this.getToken(Ps.COMMITTED,0)}CONFIGURATION(){return this.getToken(Ps.CONFIGURATION,0)}CONFLICT(){return this.getToken(Ps.CONFLICT,0)}CONNECTION(){return this.getToken(Ps.CONNECTION,0)}CONSTRAINTS(){return this.getToken(Ps.CONSTRAINTS,0)}CONTENT_P(){return this.getToken(Ps.CONTENT_P,0)}CONTINUE_P(){return this.getToken(Ps.CONTINUE_P,0)}CONVERSION_P(){return this.getToken(Ps.CONVERSION_P,0)}COPY(){return this.getToken(Ps.COPY,0)}COST(){return this.getToken(Ps.COST,0)}CSV(){return this.getToken(Ps.CSV,0)}CUBE(){return this.getToken(Ps.CUBE,0)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}CURSOR(){return this.getToken(Ps.CURSOR,0)}CYCLE(){return this.getToken(Ps.CYCLE,0)}DATA_P(){return this.getToken(Ps.DATA_P,0)}DATABASE(){return this.getToken(Ps.DATABASE,0)}DAY_P(){return this.getToken(Ps.DAY_P,0)}DEALLOCATE(){return this.getToken(Ps.DEALLOCATE,0)}DECLARE(){return this.getToken(Ps.DECLARE,0)}DEFAULTS(){return this.getToken(Ps.DEFAULTS,0)}DEFERRED(){return this.getToken(Ps.DEFERRED,0)}DEFINER(){return this.getToken(Ps.DEFINER,0)}DELETE_P(){return this.getToken(Ps.DELETE_P,0)}DELIMITER(){return this.getToken(Ps.DELIMITER,0)}DELIMITERS(){return this.getToken(Ps.DELIMITERS,0)}DEPENDS(){return this.getToken(Ps.DEPENDS,0)}DETACH(){return this.getToken(Ps.DETACH,0)}DICTIONARY(){return this.getToken(Ps.DICTIONARY,0)}DISABLE_P(){return this.getToken(Ps.DISABLE_P,0)}DISCARD(){return this.getToken(Ps.DISCARD,0)}DOCUMENT_P(){return this.getToken(Ps.DOCUMENT_P,0)}DOMAIN_P(){return this.getToken(Ps.DOMAIN_P,0)}DOUBLE_P(){return this.getToken(Ps.DOUBLE_P,0)}DROP(){return this.getToken(Ps.DROP,0)}EACH(){return this.getToken(Ps.EACH,0)}ENABLE_P(){return this.getToken(Ps.ENABLE_P,0)}ENCODING(){return this.getToken(Ps.ENCODING,0)}ENCRYPTED(){return this.getToken(Ps.ENCRYPTED,0)}ENUM_P(){return this.getToken(Ps.ENUM_P,0)}ESCAPE(){return this.getToken(Ps.ESCAPE,0)}EVENT(){return this.getToken(Ps.EVENT,0)}EXCLUDE(){return this.getToken(Ps.EXCLUDE,0)}EXCLUDING(){return this.getToken(Ps.EXCLUDING,0)}EXCLUSIVE(){return this.getToken(Ps.EXCLUSIVE,0)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}EXPLAIN(){return this.getToken(Ps.EXPLAIN,0)}EXPRESSION(){return this.getToken(Ps.EXPRESSION,0)}EXTENSION(){return this.getToken(Ps.EXTENSION,0)}EXTERNAL(){return this.getToken(Ps.EXTERNAL,0)}FAMILY(){return this.getToken(Ps.FAMILY,0)}FILTER(){return this.getToken(Ps.FILTER,0)}FIRST_P(){return this.getToken(Ps.FIRST_P,0)}FOLLOWING(){return this.getToken(Ps.FOLLOWING,0)}FORCE(){return this.getToken(Ps.FORCE,0)}FORWARD(){return this.getToken(Ps.FORWARD,0)}FUNCTION(){return this.getToken(Ps.FUNCTION,0)}FUNCTIONS(){return this.getToken(Ps.FUNCTIONS,0)}GENERATED(){return this.getToken(Ps.GENERATED,0)}GLOBAL(){return this.getToken(Ps.GLOBAL,0)}GRANTED(){return this.getToken(Ps.GRANTED,0)}GROUPS(){return this.getToken(Ps.GROUPS,0)}HANDLER(){return this.getToken(Ps.HANDLER,0)}HEADER_P(){return this.getToken(Ps.HEADER_P,0)}HOLD(){return this.getToken(Ps.HOLD,0)}HOUR_P(){return this.getToken(Ps.HOUR_P,0)}IDENTITY_P(){return this.getToken(Ps.IDENTITY_P,0)}IF_P(){return this.getToken(Ps.IF_P,0)}IMMEDIATE(){return this.getToken(Ps.IMMEDIATE,0)}IMMUTABLE(){return this.getToken(Ps.IMMUTABLE,0)}IMPLICIT_P(){return this.getToken(Ps.IMPLICIT_P,0)}IMPORT_P(){return this.getToken(Ps.IMPORT_P,0)}INCLUDE(){return this.getToken(Ps.INCLUDE,0)}INCLUDING(){return this.getToken(Ps.INCLUDING,0)}INCREMENT(){return this.getToken(Ps.INCREMENT,0)}INDEX(){return this.getToken(Ps.INDEX,0)}INDEXES(){return this.getToken(Ps.INDEXES,0)}INHERIT(){return this.getToken(Ps.INHERIT,0)}INHERITS(){return this.getToken(Ps.INHERITS,0)}INLINE_P(){return this.getToken(Ps.INLINE_P,0)}INPUT_P(){return this.getToken(Ps.INPUT_P,0)}INSENSITIVE(){return this.getToken(Ps.INSENSITIVE,0)}INSERT(){return this.getToken(Ps.INSERT,0)}INSTEAD(){return this.getToken(Ps.INSTEAD,0)}INVOKER(){return this.getToken(Ps.INVOKER,0)}ISOLATION(){return this.getToken(Ps.ISOLATION,0)}KEY(){return this.getToken(Ps.KEY,0)}LABEL(){return this.getToken(Ps.LABEL,0)}LANGUAGE(){return this.getToken(Ps.LANGUAGE,0)}LARGE_P(){return this.getToken(Ps.LARGE_P,0)}LAST_P(){return this.getToken(Ps.LAST_P,0)}LEAKPROOF(){return this.getToken(Ps.LEAKPROOF,0)}LEVEL(){return this.getToken(Ps.LEVEL,0)}LISTEN(){return this.getToken(Ps.LISTEN,0)}LOAD(){return this.getToken(Ps.LOAD,0)}LOCAL(){return this.getToken(Ps.LOCAL,0)}LOCATION(){return this.getToken(Ps.LOCATION,0)}LOCK_P(){return this.getToken(Ps.LOCK_P,0)}LOCKED(){return this.getToken(Ps.LOCKED,0)}LOGGED(){return this.getToken(Ps.LOGGED,0)}MAPPING(){return this.getToken(Ps.MAPPING,0)}MATCH(){return this.getToken(Ps.MATCH,0)}MATERIALIZED(){return this.getToken(Ps.MATERIALIZED,0)}MAXVALUE(){return this.getToken(Ps.MAXVALUE,0)}METHOD(){return this.getToken(Ps.METHOD,0)}MINUTE_P(){return this.getToken(Ps.MINUTE_P,0)}MINVALUE(){return this.getToken(Ps.MINVALUE,0)}MODE(){return this.getToken(Ps.MODE,0)}MONTH_P(){return this.getToken(Ps.MONTH_P,0)}MOVE(){return this.getToken(Ps.MOVE,0)}NAME_P(){return this.getToken(Ps.NAME_P,0)}NAMES(){return this.getToken(Ps.NAMES,0)}NEW(){return this.getToken(Ps.NEW,0)}NEXT(){return this.getToken(Ps.NEXT,0)}NFC(){return this.getToken(Ps.NFC,0)}NFD(){return this.getToken(Ps.NFD,0)}NFKC(){return this.getToken(Ps.NFKC,0)}NFKD(){return this.getToken(Ps.NFKD,0)}NO(){return this.getToken(Ps.NO,0)}NORMALIZED(){return this.getToken(Ps.NORMALIZED,0)}NOTHING(){return this.getToken(Ps.NOTHING,0)}NOTIFY(){return this.getToken(Ps.NOTIFY,0)}NOWAIT(){return this.getToken(Ps.NOWAIT,0)}NULLS_P(){return this.getToken(Ps.NULLS_P,0)}OBJECT_P(){return this.getToken(Ps.OBJECT_P,0)}OF(){return this.getToken(Ps.OF,0)}OFF(){return this.getToken(Ps.OFF,0)}OIDS(){return this.getToken(Ps.OIDS,0)}OLD(){return this.getToken(Ps.OLD,0)}OPERATOR(){return this.getToken(Ps.OPERATOR,0)}OPTION(){return this.getToken(Ps.OPTION,0)}OPTIONS(){return this.getToken(Ps.OPTIONS,0)}ORDINALITY(){return this.getToken(Ps.ORDINALITY,0)}OTHERS(){return this.getToken(Ps.OTHERS,0)}OVER(){return this.getToken(Ps.OVER,0)}OVERRIDING(){return this.getToken(Ps.OVERRIDING,0)}OWNED(){return this.getToken(Ps.OWNED,0)}OWNER(){return this.getToken(Ps.OWNER,0)}PARALLEL(){return this.getToken(Ps.PARALLEL,0)}PARSER(){return this.getToken(Ps.PARSER,0)}PARTIAL(){return this.getToken(Ps.PARTIAL,0)}PARTITION(){return this.getToken(Ps.PARTITION,0)}PASSING(){return this.getToken(Ps.PASSING,0)}PASSWORD(){return this.getToken(Ps.PASSWORD,0)}PLANS(){return this.getToken(Ps.PLANS,0)}POLICY(){return this.getToken(Ps.POLICY,0)}PRECEDING(){return this.getToken(Ps.PRECEDING,0)}PREPARE(){return this.getToken(Ps.PREPARE,0)}PREPARED(){return this.getToken(Ps.PREPARED,0)}PRESERVE(){return this.getToken(Ps.PRESERVE,0)}PRIOR(){return this.getToken(Ps.PRIOR,0)}PRIVILEGES(){return this.getToken(Ps.PRIVILEGES,0)}PROCEDURAL(){return this.getToken(Ps.PROCEDURAL,0)}PROCEDURE(){return this.getToken(Ps.PROCEDURE,0)}PROCEDURES(){return this.getToken(Ps.PROCEDURES,0)}PROGRAM(){return this.getToken(Ps.PROGRAM,0)}PUBLICATION(){return this.getToken(Ps.PUBLICATION,0)}QUOTE(){return this.getToken(Ps.QUOTE,0)}RANGE(){return this.getToken(Ps.RANGE,0)}READ(){return this.getToken(Ps.READ,0)}REASSIGN(){return this.getToken(Ps.REASSIGN,0)}RECHECK(){return this.getToken(Ps.RECHECK,0)}RECURSIVE(){return this.getToken(Ps.RECURSIVE,0)}REF(){return this.getToken(Ps.REF,0)}REFERENCING(){return this.getToken(Ps.REFERENCING,0)}REFRESH(){return this.getToken(Ps.REFRESH,0)}REINDEX(){return this.getToken(Ps.REINDEX,0)}RELATIVE_P(){return this.getToken(Ps.RELATIVE_P,0)}RELEASE(){return this.getToken(Ps.RELEASE,0)}RENAME(){return this.getToken(Ps.RENAME,0)}REPEATABLE(){return this.getToken(Ps.REPEATABLE,0)}REPLICA(){return this.getToken(Ps.REPLICA,0)}RESET(){return this.getToken(Ps.RESET,0)}RESTART(){return this.getToken(Ps.RESTART,0)}RESTRICT(){return this.getToken(Ps.RESTRICT,0)}RETURNS(){return this.getToken(Ps.RETURNS,0)}REVOKE(){return this.getToken(Ps.REVOKE,0)}ROLE(){return this.getToken(Ps.ROLE,0)}ROLLBACK(){return this.getToken(Ps.ROLLBACK,0)}ROLLUP(){return this.getToken(Ps.ROLLUP,0)}ROUTINE(){return this.getToken(Ps.ROUTINE,0)}ROUTINES(){return this.getToken(Ps.ROUTINES,0)}ROWS(){return this.getToken(Ps.ROWS,0)}RULE(){return this.getToken(Ps.RULE,0)}SAVEPOINT(){return this.getToken(Ps.SAVEPOINT,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}SCHEMAS(){return this.getToken(Ps.SCHEMAS,0)}SCROLL(){return this.getToken(Ps.SCROLL,0)}SEARCH(){return this.getToken(Ps.SEARCH,0)}SECOND_P(){return this.getToken(Ps.SECOND_P,0)}SECURITY(){return this.getToken(Ps.SECURITY,0)}SEQUENCE(){return this.getToken(Ps.SEQUENCE,0)}SEQUENCES(){return this.getToken(Ps.SEQUENCES,0)}SERIALIZABLE(){return this.getToken(Ps.SERIALIZABLE,0)}SERVER(){return this.getToken(Ps.SERVER,0)}SESSION(){return this.getToken(Ps.SESSION,0)}SET(){return this.getToken(Ps.SET,0)}SETS(){return this.getToken(Ps.SETS,0)}SHARE(){return this.getToken(Ps.SHARE,0)}SHOW(){return this.getToken(Ps.SHOW,0)}SIMPLE(){return this.getToken(Ps.SIMPLE,0)}SKIP_P(){return this.getToken(Ps.SKIP_P,0)}SNAPSHOT(){return this.getToken(Ps.SNAPSHOT,0)}SQL_P(){return this.getToken(Ps.SQL_P,0)}STABLE(){return this.getToken(Ps.STABLE,0)}STANDALONE_P(){return this.getToken(Ps.STANDALONE_P,0)}START(){return this.getToken(Ps.START,0)}STATEMENT(){return this.getToken(Ps.STATEMENT,0)}STATISTICS(){return this.getToken(Ps.STATISTICS,0)}STDIN(){return this.getToken(Ps.STDIN,0)}STDOUT(){return this.getToken(Ps.STDOUT,0)}STORAGE(){return this.getToken(Ps.STORAGE,0)}STORED(){return this.getToken(Ps.STORED,0)}STRICT_P(){return this.getToken(Ps.STRICT_P,0)}STRIP_P(){return this.getToken(Ps.STRIP_P,0)}SUBSCRIPTION(){return this.getToken(Ps.SUBSCRIPTION,0)}SUPPORT(){return this.getToken(Ps.SUPPORT,0)}SYSID(){return this.getToken(Ps.SYSID,0)}SYSTEM_P(){return this.getToken(Ps.SYSTEM_P,0)}TABLES(){return this.getToken(Ps.TABLES,0)}TABLESPACE(){return this.getToken(Ps.TABLESPACE,0)}TEMP(){return this.getToken(Ps.TEMP,0)}TEMPLATE(){return this.getToken(Ps.TEMPLATE,0)}TEMPORARY(){return this.getToken(Ps.TEMPORARY,0)}TEXT_P(){return this.getToken(Ps.TEXT_P,0)}TIES(){return this.getToken(Ps.TIES,0)}TRANSACTION(){return this.getToken(Ps.TRANSACTION,0)}TRANSFORM(){return this.getToken(Ps.TRANSFORM,0)}TRIGGER(){return this.getToken(Ps.TRIGGER,0)}TRUNCATE(){return this.getToken(Ps.TRUNCATE,0)}TRUSTED(){return this.getToken(Ps.TRUSTED,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}TYPES_P(){return this.getToken(Ps.TYPES_P,0)}UESCAPE(){return this.getToken(Ps.UESCAPE,0)}UNBOUNDED(){return this.getToken(Ps.UNBOUNDED,0)}UNCOMMITTED(){return this.getToken(Ps.UNCOMMITTED,0)}UNENCRYPTED(){return this.getToken(Ps.UNENCRYPTED,0)}UNKNOWN(){return this.getToken(Ps.UNKNOWN,0)}UNLISTEN(){return this.getToken(Ps.UNLISTEN,0)}UNLOGGED(){return this.getToken(Ps.UNLOGGED,0)}UNTIL(){return this.getToken(Ps.UNTIL,0)}UPDATE(){return this.getToken(Ps.UPDATE,0)}VACUUM(){return this.getToken(Ps.VACUUM,0)}VALID(){return this.getToken(Ps.VALID,0)}VALIDATE(){return this.getToken(Ps.VALIDATE,0)}VALIDATOR(){return this.getToken(Ps.VALIDATOR,0)}VALUE_P(){return this.getToken(Ps.VALUE_P,0)}VARYING(){return this.getToken(Ps.VARYING,0)}VERSION_P(){return this.getToken(Ps.VERSION_P,0)}VIEW(){return this.getToken(Ps.VIEW,0)}VIEWS(){return this.getToken(Ps.VIEWS,0)}VOLATILE(){return this.getToken(Ps.VOLATILE,0)}WHITESPACE_P(){return this.getToken(Ps.WHITESPACE_P,0)}WITHIN(){return this.getToken(Ps.WITHIN,0)}WITHOUT(){return this.getToken(Ps.WITHOUT,0)}WORK(){return this.getToken(Ps.WORK,0)}WRAPPER(){return this.getToken(Ps.WRAPPER,0)}WRITE(){return this.getToken(Ps.WRITE,0)}XML_P(){return this.getToken(Ps.XML_P,0)}YEAR_P(){return this.getToken(Ps.YEAR_P,0)}YES_P(){return this.getToken(Ps.YES_P,0)}ZONE(){return this.getToken(Ps.ZONE,0)}get ruleIndex(){return Ps.RULE_unreservedKeyword}accept(t){return t.visitUnreservedKeyword?t.visitUnreservedKeyword(this):t.visitChildren(this)}},dS=class extends p{constructor(t,e){super(t,e)}BETWEEN(){return this.getToken(Ps.BETWEEN,0)}BIGINT(){return this.getToken(Ps.BIGINT,0)}bit(){return this.getRuleContext(0,Xo)}BOOLEAN_P(){return this.getToken(Ps.BOOLEAN_P,0)}CHAR_P(){return this.getToken(Ps.CHAR_P,0)}character(){return this.getRuleContext(0,Zo)}COALESCE(){return this.getToken(Ps.COALESCE,0)}DEC(){return this.getToken(Ps.DEC,0)}DECIMAL_P(){return this.getToken(Ps.DECIMAL_P,0)}EXISTS(){return this.getToken(Ps.EXISTS,0)}EXTRACT(){return this.getToken(Ps.EXTRACT,0)}FLOAT_P(){return this.getToken(Ps.FLOAT_P,0)}GREATEST(){return this.getToken(Ps.GREATEST,0)}GROUPING(){return this.getToken(Ps.GROUPING,0)}INOUT(){return this.getToken(Ps.INOUT,0)}INT_P(){return this.getToken(Ps.INT_P,0)}INTEGER(){return this.getToken(Ps.INTEGER,0)}INTERVAL(){return this.getToken(Ps.INTERVAL,0)}LEAST(){return this.getToken(Ps.LEAST,0)}NATIONAL(){return this.getToken(Ps.NATIONAL,0)}NCHAR(){return this.getToken(Ps.NCHAR,0)}NONE(){return this.getToken(Ps.NONE,0)}NORMALIZE(){return this.getToken(Ps.NORMALIZE,0)}NULLIF(){return this.getToken(Ps.NULLIF,0)}numeric(){return this.getRuleContext(0,Wo)}OUT_P(){return this.getToken(Ps.OUT_P,0)}OVERLAY(){return this.getToken(Ps.OVERLAY,0)}POSITION(){return this.getToken(Ps.POSITION,0)}PRECISION(){return this.getToken(Ps.PRECISION,0)}REAL(){return this.getToken(Ps.REAL,0)}ROW(){return this.getToken(Ps.ROW,0)}SETOF(){return this.getToken(Ps.SETOF,0)}SMALLINT(){return this.getToken(Ps.SMALLINT,0)}SUBSTRING(){return this.getToken(Ps.SUBSTRING,0)}TIME(){return this.getToken(Ps.TIME,0)}TIMESTAMP(){return this.getToken(Ps.TIMESTAMP,0)}TREAT(){return this.getToken(Ps.TREAT,0)}TRIM(){return this.getToken(Ps.TRIM,0)}VALUES(){return this.getToken(Ps.VALUES,0)}VARCHAR(){return this.getToken(Ps.VARCHAR,0)}XMLATTRIBUTES(){return this.getToken(Ps.XMLATTRIBUTES,0)}XMLCONCAT(){return this.getToken(Ps.XMLCONCAT,0)}XMLELEMENT(){return this.getToken(Ps.XMLELEMENT,0)}XMLEXISTS(){return this.getToken(Ps.XMLEXISTS,0)}XMLFOREST(){return this.getToken(Ps.XMLFOREST,0)}XMLNAMESPACES(){return this.getToken(Ps.XMLNAMESPACES,0)}XMLPARSE(){return this.getToken(Ps.XMLPARSE,0)}XMLPI(){return this.getToken(Ps.XMLPI,0)}XMLROOT(){return this.getToken(Ps.XMLROOT,0)}XMLSERIALIZE(){return this.getToken(Ps.XMLSERIALIZE,0)}XMLTABLE(){return this.getToken(Ps.XMLTABLE,0)}builtinFunctionName(){return this.getRuleContext(0,DS)}get ruleIndex(){return Ps.RULE_columnNameKeyword}accept(t){return t.visitColumnNameKeyword?t.visitColumnNameKeyword(this):t.visitChildren(this)}},US=class extends p{constructor(t,e){super(t,e)}AUTHORIZATION(){return this.getToken(Ps.AUTHORIZATION,0)}BINARY(){return this.getToken(Ps.BINARY,0)}COLLATION(){return this.getToken(Ps.COLLATION,0)}CONCURRENTLY(){return this.getToken(Ps.CONCURRENTLY,0)}CROSS(){return this.getToken(Ps.CROSS,0)}CURRENT_SCHEMA(){return this.getToken(Ps.CURRENT_SCHEMA,0)}FREEZE(){return this.getToken(Ps.FREEZE,0)}FULL(){return this.getToken(Ps.FULL,0)}ILIKE(){return this.getToken(Ps.ILIKE,0)}INNER_P(){return this.getToken(Ps.INNER_P,0)}IS(){return this.getToken(Ps.IS,0)}ISNULL(){return this.getToken(Ps.ISNULL,0)}JOIN(){return this.getToken(Ps.JOIN,0)}LIKE(){return this.getToken(Ps.LIKE,0)}NATURAL(){return this.getToken(Ps.NATURAL,0)}NOTNULL(){return this.getToken(Ps.NOTNULL,0)}OUTER_P(){return this.getToken(Ps.OUTER_P,0)}OVERLAPS(){return this.getToken(Ps.OVERLAPS,0)}SIMILAR(){return this.getToken(Ps.SIMILAR,0)}TABLESAMPLE(){return this.getToken(Ps.TABLESAMPLE,0)}VERBOSE(){return this.getToken(Ps.VERBOSE,0)}get ruleIndex(){return Ps.RULE_typeFunctionNameKeyword}accept(t){return t.visitTypeFunctionNameKeyword?t.visitTypeFunctionNameKeyword(this):t.visitChildren(this)}},mS=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(Ps.ALL,0)}ANALYSE(){return this.getToken(Ps.ANALYSE,0)}ANALYZE(){return this.getToken(Ps.ANALYZE,0)}AND(){return this.getToken(Ps.AND,0)}ANY(){return this.getToken(Ps.ANY,0)}ARRAY(){return this.getToken(Ps.ARRAY,0)}AS(){return this.getToken(Ps.AS,0)}ASC(){return this.getToken(Ps.ASC,0)}ASYMMETRIC(){return this.getToken(Ps.ASYMMETRIC,0)}BOTH(){return this.getToken(Ps.BOTH,0)}CASE(){return this.getToken(Ps.CASE,0)}CAST(){return this.getToken(Ps.CAST,0)}CHECK(){return this.getToken(Ps.CHECK,0)}COLLATE(){return this.getToken(Ps.COLLATE,0)}COLUMN(){return this.getToken(Ps.COLUMN,0)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}CREATE(){return this.getToken(Ps.CREATE,0)}CURRENT_CATALOG(){return this.getToken(Ps.CURRENT_CATALOG,0)}CURRENT_DATE(){return this.getToken(Ps.CURRENT_DATE,0)}CURRENT_ROLE(){return this.getToken(Ps.CURRENT_ROLE,0)}CURRENT_TIME(){return this.getToken(Ps.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(Ps.CURRENT_TIMESTAMP,0)}CURRENT_USER(){return this.getToken(Ps.CURRENT_USER,0)}DEFERRABLE(){return this.getToken(Ps.DEFERRABLE,0)}DESC(){return this.getToken(Ps.DESC,0)}DISTINCT(){return this.getToken(Ps.DISTINCT,0)}DO(){return this.getToken(Ps.DO,0)}ELSE(){return this.getToken(Ps.ELSE,0)}END_P(){return this.getToken(Ps.END_P,0)}EXCEPT(){return this.getToken(Ps.EXCEPT,0)}FALSE_P(){return this.getToken(Ps.FALSE_P,0)}FETCH(){return this.getToken(Ps.FETCH,0)}FOR(){return this.getToken(Ps.FOR,0)}FOREIGN(){return this.getToken(Ps.FOREIGN,0)}FROM(){return this.getToken(Ps.FROM,0)}GRANT(){return this.getToken(Ps.GRANT,0)}GROUP_P(){return this.getToken(Ps.GROUP_P,0)}HAVING(){return this.getToken(Ps.HAVING,0)}IN_P(){return this.getToken(Ps.IN_P,0)}INITIALLY(){return this.getToken(Ps.INITIALLY,0)}INTERSECT(){return this.getToken(Ps.INTERSECT,0)}LATERAL_P(){return this.getToken(Ps.LATERAL_P,0)}LEADING(){return this.getToken(Ps.LEADING,0)}LIMIT(){return this.getToken(Ps.LIMIT,0)}LOCALTIME(){return this.getToken(Ps.LOCALTIME,0)}LOCALTIMESTAMP(){return this.getToken(Ps.LOCALTIMESTAMP,0)}NOT(){return this.getToken(Ps.NOT,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}OFFSET(){return this.getToken(Ps.OFFSET,0)}ON(){return this.getToken(Ps.ON,0)}ONLY(){return this.getToken(Ps.ONLY,0)}OR(){return this.getToken(Ps.OR,0)}ORDER(){return this.getToken(Ps.ORDER,0)}PLACING(){return this.getToken(Ps.PLACING,0)}PRIMARY(){return this.getToken(Ps.PRIMARY,0)}REFERENCES(){return this.getToken(Ps.REFERENCES,0)}RETURNING(){return this.getToken(Ps.RETURNING,0)}SELECT(){return this.getToken(Ps.SELECT,0)}SESSION_USER(){return this.getToken(Ps.SESSION_USER,0)}SOME(){return this.getToken(Ps.SOME,0)}SYMMETRIC(){return this.getToken(Ps.SYMMETRIC,0)}TABLE(){return this.getToken(Ps.TABLE,0)}THEN(){return this.getToken(Ps.THEN,0)}TO(){return this.getToken(Ps.TO,0)}TRAILING(){return this.getToken(Ps.TRAILING,0)}TRUE_P(){return this.getToken(Ps.TRUE_P,0)}UNION(){return this.getToken(Ps.UNION,0)}UNIQUE(){return this.getToken(Ps.UNIQUE,0)}USER(){return this.getToken(Ps.USER,0)}USING(){return this.getToken(Ps.USING,0)}VARIADIC(){return this.getToken(Ps.VARIADIC,0)}WHEN(){return this.getToken(Ps.WHEN,0)}WHERE(){return this.getToken(Ps.WHERE,0)}WINDOW(){return this.getToken(Ps.WINDOW,0)}WITH(){return this.getToken(Ps.WITH,0)}get ruleIndex(){return Ps.RULE_reservedKeyword}accept(t){return t.visitReservedKeyword?t.visitReservedKeyword(this):t.visitChildren(this)}},DS=class extends p{constructor(t,e){super(t,e)}XMLCOMMENT(){return this.getToken(Ps.XMLCOMMENT,0)}XML_IS_WELL_FORMED(){return this.getToken(Ps.XML_IS_WELL_FORMED,0)}XML_IS_WELL_FORMED_DOCUMENT(){return this.getToken(Ps.XML_IS_WELL_FORMED_DOCUMENT,0)}XML_IS_WELL_FORMED_CONTENT(){return this.getToken(Ps.XML_IS_WELL_FORMED_CONTENT,0)}XMLAGG(){return this.getToken(Ps.XMLAGG,0)}XPATH(){return this.getToken(Ps.XPATH,0)}XPATH_EXISTS(){return this.getToken(Ps.XPATH_EXISTS,0)}ABS(){return this.getToken(Ps.ABS,0)}CBRT(){return this.getToken(Ps.CBRT,0)}CEIL(){return this.getToken(Ps.CEIL,0)}CEILING(){return this.getToken(Ps.CEILING,0)}DEGREES(){return this.getToken(Ps.DEGREES,0)}DIV(){return this.getToken(Ps.DIV,0)}EXP(){return this.getToken(Ps.EXP,0)}FACTORIAL(){return this.getToken(Ps.FACTORIAL,0)}FLOOR(){return this.getToken(Ps.FLOOR,0)}GCD(){return this.getToken(Ps.GCD,0)}LCM(){return this.getToken(Ps.LCM,0)}LN(){return this.getToken(Ps.LN,0)}LOG(){return this.getToken(Ps.LOG,0)}LOG10(){return this.getToken(Ps.LOG10,0)}MIN_SCALE(){return this.getToken(Ps.MIN_SCALE,0)}MOD(){return this.getToken(Ps.MOD,0)}PI(){return this.getToken(Ps.PI,0)}POWER(){return this.getToken(Ps.POWER,0)}RADIANS(){return this.getToken(Ps.RADIANS,0)}ROUND(){return this.getToken(Ps.ROUND,0)}SCALE(){return this.getToken(Ps.SCALE,0)}SIGN(){return this.getToken(Ps.SIGN,0)}SQRT(){return this.getToken(Ps.SQRT,0)}TRIM_SCALE(){return this.getToken(Ps.TRIM_SCALE,0)}TRUNC(){return this.getToken(Ps.TRUNC,0)}WIDTH_BUCKET(){return this.getToken(Ps.WIDTH_BUCKET,0)}RANDOM(){return this.getToken(Ps.RANDOM,0)}SETSEED(){return this.getToken(Ps.SETSEED,0)}ACOS(){return this.getToken(Ps.ACOS,0)}ACOSD(){return this.getToken(Ps.ACOSD,0)}ACOSH(){return this.getToken(Ps.ACOSH,0)}ASIN(){return this.getToken(Ps.ASIN,0)}ASIND(){return this.getToken(Ps.ASIND,0)}ASINH(){return this.getToken(Ps.ASINH,0)}ATAN(){return this.getToken(Ps.ATAN,0)}ATAND(){return this.getToken(Ps.ATAND,0)}ATANH(){return this.getToken(Ps.ATANH,0)}ATAN2(){return this.getToken(Ps.ATAN2,0)}ATAN2D(){return this.getToken(Ps.ATAN2D,0)}COS(){return this.getToken(Ps.COS,0)}COSD(){return this.getToken(Ps.COSD,0)}COSH(){return this.getToken(Ps.COSH,0)}COT(){return this.getToken(Ps.COT,0)}COTD(){return this.getToken(Ps.COTD,0)}SIN(){return this.getToken(Ps.SIN,0)}SIND(){return this.getToken(Ps.SIND,0)}SINH(){return this.getToken(Ps.SINH,0)}TAN(){return this.getToken(Ps.TAN,0)}TAND(){return this.getToken(Ps.TAND,0)}TANH(){return this.getToken(Ps.TANH,0)}BIT_LENGTH(){return this.getToken(Ps.BIT_LENGTH,0)}CHAR_LENGTH(){return this.getToken(Ps.CHAR_LENGTH,0)}CHARACTER_LENGTH(){return this.getToken(Ps.CHARACTER_LENGTH,0)}LOWER(){return this.getToken(Ps.LOWER,0)}OCTET_LENGTH(){return this.getToken(Ps.OCTET_LENGTH,0)}UPPER(){return this.getToken(Ps.UPPER,0)}ASCII(){return this.getToken(Ps.ASCII,0)}BTRIM(){return this.getToken(Ps.BTRIM,0)}CHR(){return this.getToken(Ps.CHR,0)}CONCAT(){return this.getToken(Ps.CONCAT,0)}CONCAT_WS(){return this.getToken(Ps.CONCAT_WS,0)}FORMAT(){return this.getToken(Ps.FORMAT,0)}INITCAP(){return this.getToken(Ps.INITCAP,0)}LENGTH(){return this.getToken(Ps.LENGTH,0)}LPAD(){return this.getToken(Ps.LPAD,0)}LTRIM(){return this.getToken(Ps.LTRIM,0)}MD5(){return this.getToken(Ps.MD5,0)}PARSE_IDENT(){return this.getToken(Ps.PARSE_IDENT,0)}PG_CLIENT_ENCODING(){return this.getToken(Ps.PG_CLIENT_ENCODING,0)}QUOTE_IDENT(){return this.getToken(Ps.QUOTE_IDENT,0)}QUOTE_LITERAL(){return this.getToken(Ps.QUOTE_LITERAL,0)}QUOTE_NULLABLE(){return this.getToken(Ps.QUOTE_NULLABLE,0)}REGEXP_COUNT(){return this.getToken(Ps.REGEXP_COUNT,0)}REGEXP_INSTR(){return this.getToken(Ps.REGEXP_INSTR,0)}REGEXP_LIKE(){return this.getToken(Ps.REGEXP_LIKE,0)}REGEXP_MATCH(){return this.getToken(Ps.REGEXP_MATCH,0)}REGEXP_MATCHES(){return this.getToken(Ps.REGEXP_MATCHES,0)}REGEXP_REPLACE(){return this.getToken(Ps.REGEXP_REPLACE,0)}REGEXP_SPLIT_TO_ARRAY(){return this.getToken(Ps.REGEXP_SPLIT_TO_ARRAY,0)}REGEXP_SPLIT_TO_TABLE(){return this.getToken(Ps.REGEXP_SPLIT_TO_TABLE,0)}REGEXP_SUBSTR(){return this.getToken(Ps.REGEXP_SUBSTR,0)}REPEAT(){return this.getToken(Ps.REPEAT,0)}REPLACE(){return this.getToken(Ps.REPLACE,0)}REVERSE(){return this.getToken(Ps.REVERSE,0)}RPAD(){return this.getToken(Ps.RPAD,0)}RTRIM(){return this.getToken(Ps.RTRIM,0)}SPLIT_PART(){return this.getToken(Ps.SPLIT_PART,0)}STARTS_WITH(){return this.getToken(Ps.STARTS_WITH,0)}STRING_TO_ARRAY(){return this.getToken(Ps.STRING_TO_ARRAY,0)}STRING_TO_TABLE(){return this.getToken(Ps.STRING_TO_TABLE,0)}STRPOS(){return this.getToken(Ps.STRPOS,0)}SUBSTR(){return this.getToken(Ps.SUBSTR,0)}TO_ASCII(){return this.getToken(Ps.TO_ASCII,0)}TO_HEX(){return this.getToken(Ps.TO_HEX,0)}TRANSLATE(){return this.getToken(Ps.TRANSLATE,0)}UNISTR(){return this.getToken(Ps.UNISTR,0)}AGE(){return this.getToken(Ps.AGE,0)}DATE_BIN(){return this.getToken(Ps.DATE_BIN,0)}DATE_PART(){return this.getToken(Ps.DATE_PART,0)}DATE_TRUNC(){return this.getToken(Ps.DATE_TRUNC,0)}ISFINITE(){return this.getToken(Ps.ISFINITE,0)}JUSTIFY_DAYS(){return this.getToken(Ps.JUSTIFY_DAYS,0)}JUSTIFY_HOURS(){return this.getToken(Ps.JUSTIFY_HOURS,0)}JUSTIFY_INTERVAL(){return this.getToken(Ps.JUSTIFY_INTERVAL,0)}MAKE_DATE(){return this.getToken(Ps.MAKE_DATE,0)}MAKE_INTERVAL(){return this.getToken(Ps.MAKE_INTERVAL,0)}MAKE_TIME(){return this.getToken(Ps.MAKE_TIME,0)}MAKE_TIMESTAMP(){return this.getToken(Ps.MAKE_TIMESTAMP,0)}MAKE_TIMESTAMPTZ(){return this.getToken(Ps.MAKE_TIMESTAMPTZ,0)}CLOCK_TIMESTAMP(){return this.getToken(Ps.CLOCK_TIMESTAMP,0)}NOW(){return this.getToken(Ps.NOW,0)}STATEMENT_TIMESTAMP(){return this.getToken(Ps.STATEMENT_TIMESTAMP,0)}TIMEOFDAY(){return this.getToken(Ps.TIMEOFDAY,0)}TRANSACTION_TIMESTAMP(){return this.getToken(Ps.TRANSACTION_TIMESTAMP,0)}TO_TIMESTAMP(){return this.getToken(Ps.TO_TIMESTAMP,0)}TO_CHAR(){return this.getToken(Ps.TO_CHAR,0)}TO_DATE(){return this.getToken(Ps.TO_DATE,0)}TO_NUMBER(){return this.getToken(Ps.TO_NUMBER,0)}get ruleIndex(){return Ps.RULE_builtinFunctionName}accept(t){return t.visitBuiltinFunctionName?t.visitBuiltinFunctionName(this):t.visitChildren(this)}},pS=class extends p{constructor(t,e){super(t,e)}computeOptions(){return this.getRuleContext(0,gS)}plsqlBlock(){return this.getRuleContext(0,FS)}optionalSemi(){return this.getRuleContext(0,GS)}get ruleIndex(){return Ps.RULE_plsqlFunction}accept(t){return t.visitPlsqlFunction?t.visitPlsqlFunction(this):t.visitChildren(this)}},gS=class extends p{constructor(t,e){super(t,e)}computeOption(t){return void 0===t?this.getRuleContexts(xS):this.getRuleContext(t,xS)}get ruleIndex(){return Ps.RULE_computeOptions}accept(t){return t.visitComputeOptions?t.visitComputeOptions(this):t.visitChildren(this)}},xS=class extends p{constructor(t,e){super(t,e)}sharp(){return this.getRuleContext(0,kS)}OPTION(){return this.getToken(Ps.OPTION,0)}DUMP(){return this.getToken(Ps.DUMP,0)}PRINT_STRICT_PARAMS(){return this.getToken(Ps.PRINT_STRICT_PARAMS,0)}optionValue(){return this.getRuleContext(0,HS)}VARIABLE_CONFLICT(){return this.getToken(Ps.VARIABLE_CONFLICT,0)}ERROR(){return this.getToken(Ps.ERROR,0)}USE_VARIABLE(){return this.getToken(Ps.USE_VARIABLE,0)}USE_COLUMN(){return this.getToken(Ps.USE_COLUMN,0)}get ruleIndex(){return Ps.RULE_computeOption}accept(t){return t.visitComputeOption?t.visitComputeOption(this):t.visitChildren(this)}},kS=class extends p{constructor(t,e){super(t,e)}Operator(){return this.getToken(Ps.Operator,0)}get ruleIndex(){return Ps.RULE_sharp}accept(t){return t.visitSharp?t.visitSharp(this):t.visitChildren(this)}},HS=class extends p{constructor(t,e){super(t,e)}sconst(){return this.getRuleContext(0,oS)}reservedKeyword(){return this.getRuleContext(0,mS)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}unreservedKeyword(){return this.getRuleContext(0,MS)}get ruleIndex(){return Ps.RULE_optionValue}accept(t){return t.visitOptionValue?t.visitOptionValue(this):t.visitChildren(this)}},GS=class extends p{constructor(t,e){super(t,e)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_optionalSemi}accept(t){return t.visitOptionalSemi?t.visitOptionalSemi(this):t.visitChildren(this)}},FS=class extends p{constructor(t,e){super(t,e)}declareSection(){return this.getRuleContext(0,vS)}BEGIN_P(){return this.getToken(Ps.BEGIN_P,0)}procedureSection(){return this.getRuleContext(0,al)}exceptionSection(){return this.getRuleContext(0,RO)}END_P(){return this.getToken(Ps.END_P,0)}optionalLabel(){return this.getRuleContext(0,NO)}get ruleIndex(){return Ps.RULE_plsqlBlock}accept(t){return t.visitPlsqlBlock?t.visitPlsqlBlock(this):t.visitChildren(this)}},vS=class extends p{constructor(t,e){super(t,e)}optionalBlockLabel(){return this.getRuleContext(0,IO)}declareStart(){return this.getRuleContext(0,BS)}declareStatements(){return this.getRuleContext(0,yS)}get ruleIndex(){return Ps.RULE_declareSection}accept(t){return t.visitDeclareSection?t.visitDeclareSection(this):t.visitChildren(this)}},BS=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken(Ps.DECLARE,0)}get ruleIndex(){return Ps.RULE_declareStart}accept(t){return t.visitDeclareStart?t.visitDeclareStart(this):t.visitChildren(this)}},yS=class extends p{constructor(t,e){super(t,e)}declareStatement(t){return void 0===t?this.getRuleContexts(YS):this.getRuleContext(t,YS)}get ruleIndex(){return Ps.RULE_declareStatements}accept(t){return t.visitDeclareStatements?t.visitDeclareStatements(this):t.visitChildren(this)}},fS=class extends p{constructor(t,e){super(t,e)}LESS_LESS(){return this.getToken(Ps.LESS_LESS,0)}anyIdentifier(){return this.getRuleContext(0,CO)}GREATER_GREATER(){return this.getToken(Ps.GREATER_GREATER,0)}get ruleIndex(){return Ps.RULE_labelDeclaration}accept(t){return t.visitLabelDeclaration?t.visitLabelDeclaration(this):t.visitChildren(this)}},YS=class extends p{constructor(t,e){super(t,e)}declareStatement2(){return this.getRuleContext(0,wS)}DECLARE(){return this.getToken(Ps.DECLARE,0)}labelDeclaration(){return this.getRuleContext(0,fS)}get ruleIndex(){return Ps.RULE_declareStatement}accept(t){return t.visitDeclareStatement?t.visitDeclareStatement(this):t.visitChildren(this)}},wS=class extends p{constructor(t,e){super(t,e)}declareVarname(){return this.getRuleContext(0,ZS)}SEMI(){return this.getToken(Ps.SEMI,0)}ALIAS(){return this.getToken(Ps.ALIAS,0)}FOR(){return this.getToken(Ps.FOR,0)}declareAliasItem(){return this.getRuleContext(0,JS)}declareConst(){return this.getRuleContext(0,qS)}declareDatatype(){return this.getRuleContext(0,jS)}declareCollate(){return this.getRuleContext(0,zS)}declareNotNull(){return this.getRuleContext(0,$S)}declareDefaultValue(){return this.getRuleContext(0,tl)}optionalScrollable(){return this.getRuleContext(0,bS)}CURSOR(){return this.getToken(Ps.CURSOR,0)}declareCursorArgs(){return this.getRuleContext(0,VS)}declareIsOrFor(){return this.getRuleContext(0,QS)}declareCursorQuery(){return this.getRuleContext(0,WS)}get ruleIndex(){return Ps.RULE_declareStatement2}accept(t){return t.visitDeclareStatement2?t.visitDeclareStatement2(this):t.visitChildren(this)}},bS=class extends p{constructor(t,e){super(t,e)}NO(){return this.getToken(Ps.NO,0)}SCROLL(){return this.getToken(Ps.SCROLL,0)}get ruleIndex(){return Ps.RULE_optionalScrollable}accept(t){return t.visitOptionalScrollable?t.visitOptionalScrollable(this):t.visitChildren(this)}},WS=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_T)}get ruleIndex(){return Ps.RULE_declareCursorQuery}accept(t){return t.visitDeclareCursorQuery?t.visitDeclareCursorQuery(this):t.visitChildren(this)}},VS=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}declareCursorArglist(){return this.getRuleContext(0,XS)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}get ruleIndex(){return Ps.RULE_declareCursorArgs}accept(t){return t.visitDeclareCursorArgs?t.visitDeclareCursorArgs(this):t.visitChildren(this)}},XS=class extends p{constructor(t,e){super(t,e)}declareCursorArg(t){return void 0===t?this.getRuleContexts(KS):this.getRuleContext(t,KS)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_declareCursorArglist}accept(t){return t.visitDeclareCursorArglist?t.visitDeclareCursorArglist(this):t.visitChildren(this)}},KS=class extends p{constructor(t,e){super(t,e)}declareVarname(){return this.getRuleContext(0,ZS)}declareDatatype(){return this.getRuleContext(0,jS)}get ruleIndex(){return Ps.RULE_declareCursorArg}accept(t){return t.visitDeclareCursorArg?t.visitDeclareCursorArg(this):t.visitChildren(this)}},QS=class extends p{constructor(t,e){super(t,e)}IS(){return this.getToken(Ps.IS,0)}FOR(){return this.getToken(Ps.FOR,0)}get ruleIndex(){return Ps.RULE_declareIsOrFor}accept(t){return t.visitDeclareIsOrFor?t.visitDeclareIsOrFor(this):t.visitChildren(this)}},JS=class extends p{constructor(t,e){super(t,e)}PARAM(){return this.getToken(Ps.PARAM,0)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_declareAliasItem}accept(t){return t.visitDeclareAliasItem?t.visitDeclareAliasItem(this):t.visitChildren(this)}},ZS=class extends p{constructor(t,e){super(t,e)}anyIdentifier(){return this.getRuleContext(0,CO)}get ruleIndex(){return Ps.RULE_declareVarname}accept(t){return t.visitDeclareVarname?t.visitDeclareVarname(this):t.visitChildren(this)}},qS=class extends p{constructor(t,e){super(t,e)}CONSTANT(){return this.getToken(Ps.CONSTANT,0)}get ruleIndex(){return Ps.RULE_declareConst}accept(t){return t.visitDeclareConst?t.visitDeclareConst(this):t.visitChildren(this)}},jS=class extends p{constructor(t,e){super(t,e)}typeName(){return this.getRuleContext(0,yo)}get ruleIndex(){return Ps.RULE_declareDatatype}accept(t){return t.visitDeclareDatatype?t.visitDeclareDatatype(this):t.visitChildren(this)}},zS=class extends p{constructor(t,e){super(t,e)}COLLATE(){return this.getToken(Ps.COLLATE,0)}anyName(){return this.getRuleContext(0,Wc)}get ruleIndex(){return Ps.RULE_declareCollate}accept(t){return t.visitDeclareCollate?t.visitDeclareCollate(this):t.visitChildren(this)}},$S=class extends p{constructor(t,e){super(t,e)}NOT(){return this.getToken(Ps.NOT,0)}NULL_P(){return this.getToken(Ps.NULL_P,0)}get ruleIndex(){return Ps.RULE_declareNotNull}accept(t){return t.visitDeclareNotNull?t.visitDeclareNotNull(this):t.visitChildren(this)}},tl=class extends p{constructor(t,e){super(t,e)}declareDefaultKey(){return this.getRuleContext(0,el)}sqlExpression(){return this.getRuleContext(0,PO)}get ruleIndex(){return Ps.RULE_declareDefaultValue}accept(t){return t.visitDeclareDefaultValue?t.visitDeclareDefaultValue(this):t.visitChildren(this)}},el=class extends p{constructor(t,e){super(t,e)}assignOperator(){return this.getRuleContext(0,sl)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}get ruleIndex(){return Ps.RULE_declareDefaultKey}accept(t){return t.visitDeclareDefaultKey?t.visitDeclareDefaultKey(this):t.visitChildren(this)}},sl=class extends p{constructor(t,e){super(t,e)}EQUAL(){return this.getToken(Ps.EQUAL,0)}COLON_EQUALS(){return this.getToken(Ps.COLON_EQUALS,0)}get ruleIndex(){return Ps.RULE_assignOperator}accept(t){return t.visitAssignOperator?t.visitAssignOperator(this):t.visitChildren(this)}},al=class extends p{constructor(t,e){super(t,e)}proceduralStatement(t){return void 0===t?this.getRuleContexts(il):this.getRuleContext(t,il)}get ruleIndex(){return Ps.RULE_procedureSection}accept(t){return t.visitProcedureSection?t.visitProcedureSection(this):t.visitChildren(this)}},il=class extends p{constructor(t,e){super(t,e)}plsqlBlock(){return this.getRuleContext(0,FS)}SEMI(){return this.getToken(Ps.SEMI,0)}statementReturn(){return this.getRuleContext(0,Bl)}statementRaise(){return this.getRuleContext(0,fl)}statementAssign(){return this.getRuleContext(0,hl)}statementIf(){return this.getRuleContext(0,Ol)}statementCase(){return this.getRuleContext(0,Nl)}statementLoop(){return this.getRuleContext(0,Ml)}statementWhile(){return this.getRuleContext(0,dl)}statementFor(){return this.getRuleContext(0,Ul)}statementForeachA(){return this.getRuleContext(0,Hl)}statementExit(){return this.getRuleContext(0,Fl)}statementAssert(){return this.getRuleContext(0,Vl)}statementExecSql(){return this.getRuleContext(0,Ql)}statementDynExecute(){return this.getRuleContext(0,Jl)}statementPerform(){return this.getRuleContext(0,rl)}statementCall(){return this.getRuleContext(0,cl)}statementGetDiagram(){return this.getRuleContext(0,El)}statementOpen(){return this.getRuleContext(0,zl)}statementFetch(){return this.getRuleContext(0,tO)}statementMove(){return this.getRuleContext(0,iO)}statementClose(){return this.getRuleContext(0,rO)}statementNull(){return this.getRuleContext(0,cO)}statementCommit(){return this.getRuleContext(0,nO)}statementRollback(){return this.getRuleContext(0,hO)}statementSet(){return this.getRuleContext(0,TO)}get ruleIndex(){return Ps.RULE_proceduralStatement}accept(t){return t.visitProceduralStatement?t.visitProceduralStatement(this):t.visitChildren(this)}},rl=class extends p{constructor(t,e){super(t,e)}PERFORM(){return this.getToken(Ps.PERFORM,0)}expressionUntilSemi(){return this.getRuleContext(0,dO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementPerform}accept(t){return t.visitStatementPerform?t.visitStatementPerform(this):t.visitChildren(this)}},cl=class extends p{constructor(t,e){super(t,e)}CALL(){return this.getToken(Ps.CALL,0)}anyIdentifier(){return this.getRuleContext(0,CO)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}optionalExpressionList(){return this.getRuleContext(0,nl)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}SEMI(){return this.getToken(Ps.SEMI,0)}DO(){return this.getToken(Ps.DO,0)}get ruleIndex(){return Ps.RULE_statementCall}accept(t){return t.visitStatementCall?t.visitStatementCall(this):t.visitChildren(this)}},nl=class extends p{constructor(t,e){super(t,e)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_optionalExpressionList}accept(t){return t.visitOptionalExpressionList?t.visitOptionalExpressionList(this):t.visitChildren(this)}},hl=class extends p{constructor(t,e){super(t,e)}assignVariable(){return this.getRuleContext(0,ll)}assignOperator(){return this.getRuleContext(0,sl)}sqlExpression(){return this.getRuleContext(0,PO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementAssign}accept(t){return t.visitStatementAssign?t.visitStatementAssign(this):t.visitChildren(this)}},El=class extends p{constructor(t,e){super(t,e)}GET(){return this.getToken(Ps.GET,0)}optionalGetDiagramArea(){return this.getRuleContext(0,Tl)}DIAGNOSTICS(){return this.getToken(Ps.DIAGNOSTICS,0)}getDiagramList(){return this.getRuleContext(0,ol)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementGetDiagram}accept(t){return t.visitStatementGetDiagram?t.visitStatementGetDiagram(this):t.visitChildren(this)}},Tl=class extends p{constructor(t,e){super(t,e)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}STACKED(){return this.getToken(Ps.STACKED,0)}get ruleIndex(){return Ps.RULE_optionalGetDiagramArea}accept(t){return t.visitOptionalGetDiagramArea?t.visitOptionalGetDiagramArea(this):t.visitChildren(this)}},ol=class extends p{constructor(t,e){super(t,e)}getDiagramListItem(t){return void 0===t?this.getRuleContexts(Rl):this.getRuleContext(t,Rl)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_getDiagramList}accept(t){return t.visitGetDiagramList?t.visitGetDiagramList(this):t.visitChildren(this)}},Rl=class extends p{constructor(t,e){super(t,e)}getDiagramTarget(){return this.getRuleContext(0,Sl)}assignOperator(){return this.getRuleContext(0,sl)}getDiagramItem(){return this.getRuleContext(0,Al)}get ruleIndex(){return Ps.RULE_getDiagramListItem}accept(t){return t.visitGetDiagramListItem?t.visitGetDiagramListItem(this):t.visitChildren(this)}},Al=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}get ruleIndex(){return Ps.RULE_getDiagramItem}accept(t){return t.visitGetDiagramItem?t.visitGetDiagramItem(this):t.visitChildren(this)}},Sl=class extends p{constructor(t,e){super(t,e)}assignVariable(){return this.getRuleContext(0,ll)}get ruleIndex(){return Ps.RULE_getDiagramTarget}accept(t){return t.visitGetDiagramTarget?t.visitGetDiagramTarget(this):t.visitChildren(this)}},ll=class extends p{constructor(t,e){super(t,e)}anyName(){return this.getRuleContext(0,Wc)}PARAM(){return this.getToken(Ps.PARAM,0)}OPEN_BRACKET(t){return void 0===t?this.getTokens(Ps.OPEN_BRACKET):this.getToken(Ps.OPEN_BRACKET,t)}expressionUntilRightbracket(t){return void 0===t?this.getRuleContexts(UO):this.getRuleContext(t,UO)}CLOSE_BRACKET(t){return void 0===t?this.getTokens(Ps.CLOSE_BRACKET):this.getToken(Ps.CLOSE_BRACKET,t)}get ruleIndex(){return Ps.RULE_assignVariable}accept(t){return t.visitAssignVariable?t.visitAssignVariable(this):t.visitChildren(this)}},Ol=class extends p{constructor(t,e){super(t,e)}IF_P(t){return void 0===t?this.getTokens(Ps.IF_P):this.getToken(Ps.IF_P,t)}expressionUntilThen(){return this.getRuleContext(0,MO)}THEN(){return this.getToken(Ps.THEN,0)}procedureSection(){return this.getRuleContext(0,al)}statementElsifs(){return this.getRuleContext(0,Il)}statementElse(){return this.getRuleContext(0,ul)}END_P(){return this.getToken(Ps.END_P,0)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementIf}accept(t){return t.visitStatementIf?t.visitStatementIf(this):t.visitChildren(this)}},Il=class extends p{constructor(t,e){super(t,e)}ELSIF(t){return void 0===t?this.getTokens(Ps.ELSIF):this.getToken(Ps.ELSIF,t)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}THEN(t){return void 0===t?this.getTokens(Ps.THEN):this.getToken(Ps.THEN,t)}procedureSection(t){return void 0===t?this.getRuleContexts(al):this.getRuleContext(t,al)}get ruleIndex(){return Ps.RULE_statementElsifs}accept(t){return t.visitStatementElsifs?t.visitStatementElsifs(this):t.visitChildren(this)}},ul=class extends p{constructor(t,e){super(t,e)}ELSE(){return this.getToken(Ps.ELSE,0)}procedureSection(){return this.getRuleContext(0,al)}get ruleIndex(){return Ps.RULE_statementElse}accept(t){return t.visitStatementElse?t.visitStatementElse(this):t.visitChildren(this)}},Nl=class extends p{constructor(t,e){super(t,e)}CASE(t){return void 0===t?this.getTokens(Ps.CASE):this.getToken(Ps.CASE,t)}optionalExpressionUntilWhen(){return this.getRuleContext(0,Ll)}caseWhenList(){return this.getRuleContext(0,Cl)}optionalCaseElse(){return this.getRuleContext(0,Pl)}END_P(){return this.getToken(Ps.END_P,0)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementCase}accept(t){return t.visitStatementCase?t.visitStatementCase(this):t.visitChildren(this)}},Ll=class extends p{constructor(t,e){super(t,e)}sqlExpression(){return this.getRuleContext(0,PO)}get ruleIndex(){return Ps.RULE_optionalExpressionUntilWhen}accept(t){return t.visitOptionalExpressionUntilWhen?t.visitOptionalExpressionUntilWhen(this):t.visitChildren(this)}},Cl=class extends p{constructor(t,e){super(t,e)}caseWhen(t){return void 0===t?this.getRuleContexts(_l):this.getRuleContext(t,_l)}get ruleIndex(){return Ps.RULE_caseWhenList}accept(t){return t.visitCaseWhenList?t.visitCaseWhenList(this):t.visitChildren(this)}},_l=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}expressionList(){return this.getRuleContext(0,AA)}THEN(){return this.getToken(Ps.THEN,0)}procedureSection(){return this.getRuleContext(0,al)}get ruleIndex(){return Ps.RULE_caseWhen}accept(t){return t.visitCaseWhen?t.visitCaseWhen(this):t.visitChildren(this)}},Pl=class extends p{constructor(t,e){super(t,e)}ELSE(){return this.getToken(Ps.ELSE,0)}procedureSection(){return this.getRuleContext(0,al)}get ruleIndex(){return Ps.RULE_optionalCaseElse}accept(t){return t.visitOptionalCaseElse?t.visitOptionalCaseElse(this):t.visitChildren(this)}},Ml=class extends p{constructor(t,e){super(t,e)}optionalLoopLabel(){return this.getRuleContext(0,uO)}loopBody(){return this.getRuleContext(0,Kl)}get ruleIndex(){return Ps.RULE_statementLoop}accept(t){return t.visitStatementLoop?t.visitStatementLoop(this):t.visitChildren(this)}},dl=class extends p{constructor(t,e){super(t,e)}optionalLoopLabel(){return this.getRuleContext(0,uO)}WHILE(){return this.getToken(Ps.WHILE,0)}expressionUntilLoop(){return this.getRuleContext(0,mO)}loopBody(){return this.getRuleContext(0,Kl)}get ruleIndex(){return Ps.RULE_statementWhile}accept(t){return t.visitStatementWhile?t.visitStatementWhile(this):t.visitChildren(this)}},Ul=class extends p{constructor(t,e){super(t,e)}optionalLoopLabel(){return this.getRuleContext(0,uO)}FOR(){return this.getToken(Ps.FOR,0)}forControl(){return this.getRuleContext(0,ml)}loopBody(){return this.getRuleContext(0,Kl)}get ruleIndex(){return Ps.RULE_statementFor}accept(t){return t.visitStatementFor?t.visitStatementFor(this):t.visitChildren(this)}},ml=class extends p{constructor(t,e){super(t,e)}forVariable(){return this.getRuleContext(0,kl)}IN_P(){return this.getToken(Ps.IN_P,0)}cursorName(){return this.getRuleContext(0,LT)}optionalCursorParameters(){return this.getRuleContext(0,pl)}selectStatement(){return this.getRuleContext(0,_T)}explainStatement(){return this.getRuleContext(0,yE)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}optionalForUsingExpression(){return this.getRuleContext(0,Dl)}optionalReverse(){return this.getRuleContext(0,gl)}DOT_DOT(){return this.getToken(Ps.DOT_DOT,0)}optionalByExpression(){return this.getRuleContext(0,xl)}get ruleIndex(){return Ps.RULE_forControl}accept(t){return t.visitForControl?t.visitForControl(this):t.visitChildren(this)}},Dl=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_optionalForUsingExpression}accept(t){return t.visitOptionalForUsingExpression?t.visitOptionalForUsingExpression(this):t.visitChildren(this)}},pl=class extends p{constructor(t,e){super(t,e)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_optionalCursorParameters}accept(t){return t.visitOptionalCursorParameters?t.visitOptionalCursorParameters(this):t.visitChildren(this)}},gl=class extends p{constructor(t,e){super(t,e)}REVERSE(){return this.getToken(Ps.REVERSE,0)}get ruleIndex(){return Ps.RULE_optionalReverse}accept(t){return t.visitOptionalReverse?t.visitOptionalReverse(this):t.visitChildren(this)}},xl=class extends p{constructor(t,e){super(t,e)}BY(){return this.getToken(Ps.BY,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_optionalByExpression}accept(t){return t.visitOptionalByExpression?t.visitOptionalByExpression(this):t.visitChildren(this)}},kl=class extends p{constructor(t,e){super(t,e)}anyNameList(){return this.getRuleContext(0,bc)}get ruleIndex(){return Ps.RULE_forVariable}accept(t){return t.visitForVariable?t.visitForVariable(this):t.visitChildren(this)}},Hl=class extends p{constructor(t,e){super(t,e)}optionalLoopLabel(){return this.getRuleContext(0,uO)}FOREACH(){return this.getToken(Ps.FOREACH,0)}forVariable(){return this.getRuleContext(0,kl)}foreachSlice(){return this.getRuleContext(0,Gl)}IN_P(){return this.getToken(Ps.IN_P,0)}ARRAY(){return this.getToken(Ps.ARRAY,0)}expression1(){return this.getRuleContext(0,rR)}loopBody(){return this.getRuleContext(0,Kl)}get ruleIndex(){return Ps.RULE_statementForeachA}accept(t){return t.visitStatementForeachA?t.visitStatementForeachA(this):t.visitChildren(this)}},Gl=class extends p{constructor(t,e){super(t,e)}SLICE(){return this.getToken(Ps.SLICE,0)}iconst(){return this.getRuleContext(0,TS)}get ruleIndex(){return Ps.RULE_foreachSlice}accept(t){return t.visitForeachSlice?t.visitForeachSlice(this):t.visitChildren(this)}},Fl=class extends p{constructor(t,e){super(t,e)}exitType(){return this.getRuleContext(0,vl)}optionalLabel(){return this.getRuleContext(0,NO)}optionalExitCondition(){return this.getRuleContext(0,LO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementExit}accept(t){return t.visitStatementExit?t.visitStatementExit(this):t.visitChildren(this)}},vl=class extends p{constructor(t,e){super(t,e)}EXIT(){return this.getToken(Ps.EXIT,0)}CONTINUE_P(){return this.getToken(Ps.CONTINUE_P,0)}get ruleIndex(){return Ps.RULE_exitType}accept(t){return t.visitExitType?t.visitExitType(this):t.visitChildren(this)}},Bl=class extends p{constructor(t,e){super(t,e)}RETURN(){return this.getToken(Ps.RETURN,0)}SEMI(){return this.getToken(Ps.SEMI,0)}NEXT(){return this.getToken(Ps.NEXT,0)}sqlExpression(){return this.getRuleContext(0,PO)}QUERY(){return this.getToken(Ps.QUERY,0)}optionalReturnResult(){return this.getRuleContext(0,yl)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}expression1(){return this.getRuleContext(0,rR)}optionalForUsingExpression(){return this.getRuleContext(0,Dl)}selectStatement(){return this.getRuleContext(0,_T)}get ruleIndex(){return Ps.RULE_statementReturn}accept(t){return t.visitStatementReturn?t.visitStatementReturn(this):t.visitChildren(this)}},yl=class extends p{constructor(t,e){super(t,e)}sqlExpression(){return this.getRuleContext(0,PO)}get ruleIndex(){return Ps.RULE_optionalReturnResult}accept(t){return t.visitOptionalReturnResult?t.visitOptionalReturnResult(this):t.visitChildren(this)}},fl=class extends p{constructor(t,e){super(t,e)}RAISE(){return this.getToken(Ps.RAISE,0)}optionalStatementRaiseLevel(){return this.getRuleContext(0,Yl)}sconst(){return this.getRuleContext(0,oS)}optionalRaiseList(){return this.getRuleContext(0,wl)}optionalRaiseUsing(){return this.getRuleContext(0,bl)}SEMI(){return this.getToken(Ps.SEMI,0)}identifier(){return this.getRuleContext(0,_S)}SQLSTATE(){return this.getToken(Ps.SQLSTATE,0)}get ruleIndex(){return Ps.RULE_statementRaise}accept(t){return t.visitStatementRaise?t.visitStatementRaise(this):t.visitChildren(this)}},Yl=class extends p{constructor(t,e){super(t,e)}DEBUG(){return this.getToken(Ps.DEBUG,0)}LOG(){return this.getToken(Ps.LOG,0)}INFO(){return this.getToken(Ps.INFO,0)}NOTICE(){return this.getToken(Ps.NOTICE,0)}WARNING(){return this.getToken(Ps.WARNING,0)}EXCEPTION(){return this.getToken(Ps.EXCEPTION,0)}get ruleIndex(){return Ps.RULE_optionalStatementRaiseLevel}accept(t){return t.visitOptionalStatementRaiseLevel?t.visitOptionalStatementRaiseLevel(this):t.visitChildren(this)}},wl=class extends p{constructor(t,e){super(t,e)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}get ruleIndex(){return Ps.RULE_optionalRaiseList}accept(t){return t.visitOptionalRaiseList?t.visitOptionalRaiseList(this):t.visitChildren(this)}},bl=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}optionalRaiseUsingElement(t){return void 0===t?this.getRuleContexts(Wl):this.getRuleContext(t,Wl)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_optionalRaiseUsing}accept(t){return t.visitOptionalRaiseUsing?t.visitOptionalRaiseUsing(this):t.visitChildren(this)}},Wl=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,_S)}EQUAL(){return this.getToken(Ps.EQUAL,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_optionalRaiseUsingElement}accept(t){return t.visitOptionalRaiseUsingElement?t.visitOptionalRaiseUsingElement(this):t.visitChildren(this)}},Vl=class extends p{constructor(t,e){super(t,e)}ASSERT(){return this.getToken(Ps.ASSERT,0)}sqlExpression(){return this.getRuleContext(0,PO)}optionalStatementAssertMessage(){return this.getRuleContext(0,Xl)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementAssert}accept(t){return t.visitStatementAssert?t.visitStatementAssert(this):t.visitChildren(this)}},Xl=class extends p{constructor(t,e){super(t,e)}COMMA(){return this.getToken(Ps.COMMA,0)}sqlExpression(){return this.getRuleContext(0,PO)}get ruleIndex(){return Ps.RULE_optionalStatementAssertMessage}accept(t){return t.visitOptionalStatementAssertMessage?t.visitOptionalStatementAssertMessage(this):t.visitChildren(this)}},Kl=class extends p{constructor(t,e){super(t,e)}LOOP(t){return void 0===t?this.getTokens(Ps.LOOP):this.getToken(Ps.LOOP,t)}procedureSection(){return this.getRuleContext(0,al)}END_P(){return this.getToken(Ps.END_P,0)}optionalLabel(){return this.getRuleContext(0,NO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_loopBody}accept(t){return t.visitLoopBody?t.visitLoopBody(this):t.visitChildren(this)}},Ql=class extends p{constructor(t,e){super(t,e)}makeExecuteSqlStatement(){return this.getRuleContext(0,DO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementExecSql}accept(t){return t.visitStatementExecSql?t.visitStatementExecSql(this):t.visitChildren(this)}},Jl=class extends p{constructor(t,e){super(t,e)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}expression1(){return this.getRuleContext(0,rR)}SEMI(){return this.getToken(Ps.SEMI,0)}optionalExecuteInto(){return this.getRuleContext(0,jl)}optionalExecuteUsing(){return this.getRuleContext(0,Zl)}get ruleIndex(){return Ps.RULE_statementDynExecute}accept(t){return t.visitStatementDynExecute?t.visitStatementDynExecute(this):t.visitChildren(this)}},Zl=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken(Ps.USING,0)}optionalExecuteUsingList(){return this.getRuleContext(0,ql)}get ruleIndex(){return Ps.RULE_optionalExecuteUsing}accept(t){return t.visitOptionalExecuteUsing?t.visitOptionalExecuteUsing(this):t.visitChildren(this)}},ql=class extends p{constructor(t,e){super(t,e)}expression1(t){return void 0===t?this.getRuleContexts(rR):this.getRuleContext(t,rR)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_optionalExecuteUsingList}accept(t){return t.visitOptionalExecuteUsingList?t.visitOptionalExecuteUsingList(this):t.visitChildren(this)}},jl=class extends p{constructor(t,e){super(t,e)}INTO(){return this.getToken(Ps.INTO,0)}intoTarget(){return this.getRuleContext(0,eO)}STRICT_P(){return this.getToken(Ps.STRICT_P,0)}get ruleIndex(){return Ps.RULE_optionalExecuteInto}accept(t){return t.visitOptionalExecuteInto?t.visitOptionalExecuteInto(this):t.visitChildren(this)}},zl=class extends p{constructor(t,e){super(t,e)}OPEN(){return this.getToken(Ps.OPEN,0)}SEMI(){return this.getToken(Ps.SEMI,0)}cursorVariable(){return this.getRuleContext(0,oO)}SCROLL(){return this.getToken(Ps.SCROLL,0)}FOR(){return this.getToken(Ps.FOR,0)}columnId(){return this.getRuleContext(0,IS)}selectStatement(){return this.getRuleContext(0,_T)}EXECUTE(){return this.getToken(Ps.EXECUTE,0)}sqlExpression(){return this.getRuleContext(0,PO)}USING(){return this.getToken(Ps.USING,0)}expressionList(){return this.getRuleContext(0,AA)}NO(){return this.getToken(Ps.NO,0)}OPEN_PAREN(){return this.getToken(Ps.OPEN_PAREN,0)}optionalOpenBoundListItem(t){return void 0===t?this.getRuleContexts($l):this.getRuleContext(t,$l)}CLOSE_PAREN(){return this.getToken(Ps.CLOSE_PAREN,0)}COMMA(t){return void 0===t?this.getTokens(Ps.COMMA):this.getToken(Ps.COMMA,t)}get ruleIndex(){return Ps.RULE_statementOpen}accept(t){return t.visitStatementOpen?t.visitStatementOpen(this):t.visitChildren(this)}},$l=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}COLON_EQUALS(){return this.getToken(Ps.COLON_EQUALS,0)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_optionalOpenBoundListItem}accept(t){return t.visitOptionalOpenBoundListItem?t.visitOptionalOpenBoundListItem(this):t.visitChildren(this)}},tO=class extends p{constructor(t,e){super(t,e)}FETCH(){return this.getToken(Ps.FETCH,0)}optionalCursorFrom(){return this.getRuleContext(0,sO)}cursorVariable(){return this.getRuleContext(0,oO)}INTO(){return this.getToken(Ps.INTO,0)}intoTarget(){return this.getRuleContext(0,eO)}SEMI(){return this.getToken(Ps.SEMI,0)}optionalFetchDirection(){return this.getRuleContext(0,aO)}get ruleIndex(){return Ps.RULE_statementFetch}accept(t){return t.visitStatementFetch?t.visitStatementFetch(this):t.visitChildren(this)}},eO=class extends p{constructor(t,e){super(t,e)}expressionList(){return this.getRuleContext(0,AA)}get ruleIndex(){return Ps.RULE_intoTarget}accept(t){return t.visitIntoTarget?t.visitIntoTarget(this):t.visitChildren(this)}},sO=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(Ps.FROM,0)}IN_P(){return this.getToken(Ps.IN_P,0)}get ruleIndex(){return Ps.RULE_optionalCursorFrom}accept(t){return t.visitOptionalCursorFrom?t.visitOptionalCursorFrom(this):t.visitChildren(this)}},aO=class extends p{constructor(t,e){super(t,e)}NEXT(){return this.getToken(Ps.NEXT,0)}PRIOR(){return this.getToken(Ps.PRIOR,0)}FIRST_P(){return this.getToken(Ps.FIRST_P,0)}LAST_P(){return this.getToken(Ps.LAST_P,0)}ABSOLUTE_P(){return this.getToken(Ps.ABSOLUTE_P,0)}expression1(){return this.getRuleContext(0,rR)}RELATIVE_P(){return this.getToken(Ps.RELATIVE_P,0)}ALL(){return this.getToken(Ps.ALL,0)}FORWARD(){return this.getToken(Ps.FORWARD,0)}BACKWARD(){return this.getToken(Ps.BACKWARD,0)}get ruleIndex(){return Ps.RULE_optionalFetchDirection}accept(t){return t.visitOptionalFetchDirection?t.visitOptionalFetchDirection(this):t.visitChildren(this)}},iO=class extends p{constructor(t,e){super(t,e)}MOVE(){return this.getToken(Ps.MOVE,0)}optionalFetchDirection(){return this.getRuleContext(0,aO)}cursorVariable(){return this.getRuleContext(0,oO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementMove}accept(t){return t.visitStatementMove?t.visitStatementMove(this):t.visitChildren(this)}},rO=class extends p{constructor(t,e){super(t,e)}CLOSE(){return this.getToken(Ps.CLOSE,0)}cursorVariable(){return this.getRuleContext(0,oO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementClose}accept(t){return t.visitStatementClose?t.visitStatementClose(this):t.visitChildren(this)}},cO=class extends p{constructor(t,e){super(t,e)}NULL_P(){return this.getToken(Ps.NULL_P,0)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementNull}accept(t){return t.visitStatementNull?t.visitStatementNull(this):t.visitChildren(this)}},nO=class extends p{constructor(t,e){super(t,e)}COMMIT(){return this.getToken(Ps.COMMIT,0)}plsqlOptionalTransactionChain(){return this.getRuleContext(0,EO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementCommit}accept(t){return t.visitStatementCommit?t.visitStatementCommit(this):t.visitChildren(this)}},hO=class extends p{constructor(t,e){super(t,e)}ROLLBACK(){return this.getToken(Ps.ROLLBACK,0)}plsqlOptionalTransactionChain(){return this.getRuleContext(0,EO)}SEMI(){return this.getToken(Ps.SEMI,0)}get ruleIndex(){return Ps.RULE_statementRollback}accept(t){return t.visitStatementRollback?t.visitStatementRollback(this):t.visitChildren(this)}},EO=class extends p{constructor(t,e){super(t,e)}AND(){return this.getToken(Ps.AND,0)}CHAIN(){return this.getToken(Ps.CHAIN,0)}NO(){return this.getToken(Ps.NO,0)}get ruleIndex(){return Ps.RULE_plsqlOptionalTransactionChain}accept(t){return t.visitPlsqlOptionalTransactionChain?t.visitPlsqlOptionalTransactionChain(this):t.visitChildren(this)}},TO=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(Ps.SET,0)}anyName(){return this.getRuleContext(0,Wc)}TO(){return this.getToken(Ps.TO,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}SEMI(){return this.getToken(Ps.SEMI,0)}RESET(){return this.getToken(Ps.RESET,0)}ALL(){return this.getToken(Ps.ALL,0)}get ruleIndex(){return Ps.RULE_statementSet}accept(t){return t.visitStatementSet?t.visitStatementSet(this):t.visitChildren(this)}},oO=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}PARAM(){return this.getToken(Ps.PARAM,0)}get ruleIndex(){return Ps.RULE_cursorVariable}accept(t){return t.visitCursorVariable?t.visitCursorVariable(this):t.visitChildren(this)}},RO=class extends p{constructor(t,e){super(t,e)}EXCEPTION(){return this.getToken(Ps.EXCEPTION,0)}procedureExceptions(){return this.getRuleContext(0,AO)}get ruleIndex(){return Ps.RULE_exceptionSection}accept(t){return t.visitExceptionSection?t.visitExceptionSection(this):t.visitChildren(this)}},AO=class extends p{constructor(t,e){super(t,e)}procedureException(t){return void 0===t?this.getRuleContexts(SO):this.getRuleContext(t,SO)}get ruleIndex(){return Ps.RULE_procedureExceptions}accept(t){return t.visitProcedureExceptions?t.visitProcedureExceptions(this):t.visitChildren(this)}},SO=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}procedureConditions(){return this.getRuleContext(0,lO)}THEN(){return this.getToken(Ps.THEN,0)}procedureSection(){return this.getRuleContext(0,al)}get ruleIndex(){return Ps.RULE_procedureException}accept(t){return t.visitProcedureException?t.visitProcedureException(this):t.visitChildren(this)}},lO=class extends p{constructor(t,e){super(t,e)}procedureCondition(t){return void 0===t?this.getRuleContexts(OO):this.getRuleContext(t,OO)}OR(t){return void 0===t?this.getTokens(Ps.OR):this.getToken(Ps.OR,t)}get ruleIndex(){return Ps.RULE_procedureConditions}accept(t){return t.visitProcedureConditions?t.visitProcedureConditions(this):t.visitChildren(this)}},OO=class extends p{constructor(t,e){super(t,e)}anyIdentifier(){return this.getRuleContext(0,CO)}SQLSTATE(){return this.getToken(Ps.SQLSTATE,0)}sconst(){return this.getRuleContext(0,oS)}get ruleIndex(){return Ps.RULE_procedureCondition}accept(t){return t.visitProcedureCondition?t.visitProcedureCondition(this):t.visitChildren(this)}},IO=class extends p{constructor(t,e){super(t,e)}labelDeclaration(){return this.getRuleContext(0,fS)}get ruleIndex(){return Ps.RULE_optionalBlockLabel}accept(t){return t.visitOptionalBlockLabel?t.visitOptionalBlockLabel(this):t.visitChildren(this)}},uO=class extends p{constructor(t,e){super(t,e)}labelDeclaration(){return this.getRuleContext(0,fS)}get ruleIndex(){return Ps.RULE_optionalLoopLabel}accept(t){return t.visitOptionalLoopLabel?t.visitOptionalLoopLabel(this):t.visitChildren(this)}},NO=class extends p{constructor(t,e){super(t,e)}anyIdentifier(){return this.getRuleContext(0,CO)}get ruleIndex(){return Ps.RULE_optionalLabel}accept(t){return t.visitOptionalLabel?t.visitOptionalLabel(this):t.visitChildren(this)}},LO=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(Ps.WHEN,0)}expressionUntilSemi(){return this.getRuleContext(0,dO)}get ruleIndex(){return Ps.RULE_optionalExitCondition}accept(t){return t.visitOptionalExitCondition?t.visitOptionalExitCondition(this):t.visitChildren(this)}},CO=class extends p{constructor(t,e){super(t,e)}columnId(){return this.getRuleContext(0,IS)}plsqlUnreservedKeyword(){return this.getRuleContext(0,_O)}get ruleIndex(){return Ps.RULE_anyIdentifier}accept(t){return t.visitAnyIdentifier?t.visitAnyIdentifier(this):t.visitChildren(this)}},_O=class extends p{constructor(t,e){super(t,e)}ABSOLUTE_P(){return this.getToken(Ps.ABSOLUTE_P,0)}ALIAS(){return this.getToken(Ps.ALIAS,0)}AND(){return this.getToken(Ps.AND,0)}ARRAY(){return this.getToken(Ps.ARRAY,0)}ASSERT(){return this.getToken(Ps.ASSERT,0)}BACKWARD(){return this.getToken(Ps.BACKWARD,0)}CALL(){return this.getToken(Ps.CALL,0)}CHAIN(){return this.getToken(Ps.CHAIN,0)}CLOSE(){return this.getToken(Ps.CLOSE,0)}COLLATE(){return this.getToken(Ps.COLLATE,0)}COLUMN(){return this.getToken(Ps.COLUMN,0)}COMMIT(){return this.getToken(Ps.COMMIT,0)}CONSTANT(){return this.getToken(Ps.CONSTANT,0)}CONSTRAINT(){return this.getToken(Ps.CONSTRAINT,0)}CONTINUE_P(){return this.getToken(Ps.CONTINUE_P,0)}CURRENT_P(){return this.getToken(Ps.CURRENT_P,0)}CURSOR(){return this.getToken(Ps.CURSOR,0)}DEBUG(){return this.getToken(Ps.DEBUG,0)}DEFAULT(){return this.getToken(Ps.DEFAULT,0)}DIAGNOSTICS(){return this.getToken(Ps.DIAGNOSTICS,0)}DO(){return this.getToken(Ps.DO,0)}DUMP(){return this.getToken(Ps.DUMP,0)}ELSIF(){return this.getToken(Ps.ELSIF,0)}ERROR(){return this.getToken(Ps.ERROR,0)}EXCEPTION(){return this.getToken(Ps.EXCEPTION,0)}EXIT(){return this.getToken(Ps.EXIT,0)}FETCH(){return this.getToken(Ps.FETCH,0)}FIRST_P(){return this.getToken(Ps.FIRST_P,0)}FORWARD(){return this.getToken(Ps.FORWARD,0)}GET(){return this.getToken(Ps.GET,0)}INFO(){return this.getToken(Ps.INFO,0)}INSERT(){return this.getToken(Ps.INSERT,0)}IS(){return this.getToken(Ps.IS,0)}LAST_P(){return this.getToken(Ps.LAST_P,0)}MOVE(){return this.getToken(Ps.MOVE,0)}NEXT(){return this.getToken(Ps.NEXT,0)}NO(){return this.getToken(Ps.NO,0)}NOTICE(){return this.getToken(Ps.NOTICE,0)}OPEN(){return this.getToken(Ps.OPEN,0)}OPTION(){return this.getToken(Ps.OPTION,0)}PERFORM(){return this.getToken(Ps.PERFORM,0)}PRINT_STRICT_PARAMS(){return this.getToken(Ps.PRINT_STRICT_PARAMS,0)}PRIOR(){return this.getToken(Ps.PRIOR,0)}QUERY(){return this.getToken(Ps.QUERY,0)}RAISE(){return this.getToken(Ps.RAISE,0)}RELATIVE_P(){return this.getToken(Ps.RELATIVE_P,0)}RESET(){return this.getToken(Ps.RESET,0)}RETURN(){return this.getToken(Ps.RETURN,0)}ROLLBACK(){return this.getToken(Ps.ROLLBACK,0)}ROWTYPE(){return this.getToken(Ps.ROWTYPE,0)}SCHEMA(){return this.getToken(Ps.SCHEMA,0)}SCROLL(){return this.getToken(Ps.SCROLL,0)}SET(){return this.getToken(Ps.SET,0)}SLICE(){return this.getToken(Ps.SLICE,0)}SQLSTATE(){return this.getToken(Ps.SQLSTATE,0)}STACKED(){return this.getToken(Ps.STACKED,0)}TABLE(){return this.getToken(Ps.TABLE,0)}TYPE_P(){return this.getToken(Ps.TYPE_P,0)}USE_COLUMN(){return this.getToken(Ps.USE_COLUMN,0)}USE_VARIABLE(){return this.getToken(Ps.USE_VARIABLE,0)}VARIABLE_CONFLICT(){return this.getToken(Ps.VARIABLE_CONFLICT,0)}WARNING(){return this.getToken(Ps.WARNING,0)}OUTER_P(){return this.getToken(Ps.OUTER_P,0)}get ruleIndex(){return Ps.RULE_plsqlUnreservedKeyword}accept(t){return t.visitPlsqlUnreservedKeyword?t.visitPlsqlUnreservedKeyword(this):t.visitChildren(this)}},PO=class extends p{constructor(t,e){super(t,e)}optionalTargetList(){return this.getRuleContext(0,yA)}fromClause(){return this.getRuleContext(0,no)}whereClause(){return this.getRuleContext(0,mo)}groupClause(){return this.getRuleContext(0,zT)}havingClause(){return this.getRuleContext(0,eo)}windowClause(){return this.getRuleContext(0,QR)}intoClause(){return this.getRuleContext(0,kT)}get ruleIndex(){return Ps.RULE_sqlExpression}accept(t){return t.visitSqlExpression?t.visitSqlExpression(this):t.visitChildren(this)}},MO=class extends p{constructor(t,e){super(t,e)}sqlExpression(){return this.getRuleContext(0,PO)}get ruleIndex(){return Ps.RULE_expressionUntilThen}accept(t){return t.visitExpressionUntilThen?t.visitExpressionUntilThen(this):t.visitChildren(this)}},dO=class extends p{constructor(t,e){super(t,e)}sqlExpression(){return this.getRuleContext(0,PO)}get ruleIndex(){return Ps.RULE_expressionUntilSemi}accept(t){return t.visitExpressionUntilSemi?t.visitExpressionUntilSemi(this):t.visitChildren(this)}},UO=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_expressionUntilRightbracket}accept(t){return t.visitExpressionUntilRightbracket?t.visitExpressionUntilRightbracket(this):t.visitChildren(this)}},mO=class extends p{constructor(t,e){super(t,e)}expression1(){return this.getRuleContext(0,rR)}get ruleIndex(){return Ps.RULE_expressionUntilLoop}accept(t){return t.visitExpressionUntilLoop?t.visitExpressionUntilLoop(this):t.visitChildren(this)}},DO=class extends p{constructor(t,e){super(t,e)}statement(){return this.getRuleContext(0,ms)}optionalReturningClauseInto(){return this.getRuleContext(0,pO)}get ruleIndex(){return Ps.RULE_makeExecuteSqlStatement}accept(t){return t.visitMakeExecuteSqlStatement?t.visitMakeExecuteSqlStatement(this):t.visitChildren(this)}},pO=class extends p{constructor(t,e){super(t,e)}INTO(){return this.getToken(Ps.INTO,0)}intoTarget(){return this.getRuleContext(0,eO)}STRICT_P(){return this.getToken(Ps.STRICT_P,0)}get ruleIndex(){return Ps.RULE_optionalReturningClauseInto}accept(t){return t.visitOptionalReturningClauseInto?t.visitOptionalReturningClauseInto(this):t.visitChildren(this)}},gO=class extends p{constructor(t,e){super(t,e)}ROLE(){return this.getToken(Ps.ROLE,0)}USER(){return this.getToken(Ps.USER,0)}GROUP_P(){return this.getToken(Ps.GROUP_P,0)}get ruleIndex(){return Ps.RULE_roleOrAliases}accept(t){return t.visitRoleOrAliases?t.visitRoleOrAliases(this):t.visitChildren(this)}},xO=class extends Oe{},kO=/[\w]$/,HO=/\r\n|\n|\r/g;function GO(t,e){let s=t.column,a=t.column+(t.text?.length||0),i=t.line;return{startColumn:s,startLine:i,endColumn:a,endLine:t.type===e&&t.text?i+(t.text.match(HO)?.length||0):i}}function FO(t,e,s,a){let i=e.column-1;for(let r=0;r<t.size;r++){let c=t.get(r),{startColumn:n,startLine:h,endColumn:E,endLine:T}=GO(c,s);if(T>e.line||h===e.line&&E>i)return a?r:r>0&&h===e.line&&n===i&&kO.test(t.get(r-1).text||"")?r-1:t.get(r).type===s?r+1:r}}function vO(t,e){return t===e.startTokenIndex}var BO="(\\s|\r\n|\n|\r)+",yO=new RegExp(`^(${BO})?explain${BO}$`),fO=new RegExp(`^(${BO})?\\S+${BO}`);function YO(t,e){let s=function(t,e){let s=t.split(HO),a=t.match(HO),i="";a&&(i=a[0]);let r=0;return s.reduce(((t,s,a)=>(e.line-1===a&&(r=t.length?t.length+e.column:e.column-1),0===a?s:t+i+s)),""),r}(t,e),a=function(t,e){let s=t.slice(0,e-1),a=t.slice(e-1),i=s.lastIndexOf(";"),r=a.indexOf(";"),c=i>-1?i+1:0,n=r>-1?r+s.length:t.length;return{statement:t.slice(c,n),cursorIndex:e-c}}(t,s),i=a.statement.slice(0,a.cursorIndex).toLowerCase();return!(0!==s&&i.match(fO)&&!i.match(yO))}function wO(t,e,s){let a=new t(le.fromString(s)),i=new e(new Ne(a));return i.removeErrorListeners(),i}function bO(t,e,s){let a=e;for(;a<t.size;){let e=t.get(a);if(e.type===s.CLOSING_BRACKET||e.type===s.SEMICOLON)return{cursorIndex:e.start,tokenIndex:a};if(e.type===s.OPENING_BRACKET)return;a++}let i=t.size-1;return{cursorIndex:t.get(i).start,tokenIndex:i}}function WO(t,e,s,a){let i=e;for(;i<s;){let e=t.get(i);if(e.type===a.JOIN)return e.stop+1;i++}}function VO(t,e,s,a){let i=s-1;for(;i>-1;){let s=t.get(i);if(s.type===e.SEMICOLON)return;if(s.type===a)return s;i--}}function XO(t,e,s,a,i,r,c,n,h){let E=FO(r,c,a.SPACE,!0);if(!E)throw new Error(`Could not find actualCursorTokenIndex at Ln ${c.line}, Col ${c.column}`);let T={},o=function(t,e,s){let a=t.get(t.size-1).start,i=e,r=!1;for(;i>=0&&i<t.size;){let a=t.get(i);if(a.type===s.OPENING_BRACKET||a.type===s.CLOSING_BRACKET||a.type===s.SEMICOLON){if(r)break;i=e,r=!0}if(a.type===s.FROM){let r=bO(t,e,s);if(!r)break;let c=WO(t,i,r.tokenIndex,s),n=c?{start:c,end:r.cursorIndex}:void 0,h=VO(t,s,r.tokenIndex,s.SELECT),E=h?{start:h.start,end:r.cursorIndex}:void 0;return{start:a.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:n,selectTableQueryPosition:E}}r?i++:i--,-1===i&&(i=e,r=!0)}for(i=e;i>=0;){let e=t.get(i);if(e.type===s.SEMICOLON)return;if(e.type===s.ALTER&&!VO(t,s,i,s.ALTER))return{start:e.start,end:a,type:"alter"};if(e.type===s.INSERT)return{start:e.start,end:a,type:"insert"};if(e.type===s.UPDATE)return{start:e.start,end:a,type:"update"};i--}}(r,E,a);if(o){let a=i(wO(t,e,n.slice(o.start,o.end)),o.type);if(s.visit(a),h&&o.joinTableQueryPosition){let a=i(wO(t,e,n.slice(o.joinTableQueryPosition.start,o.joinTableQueryPosition.end)),"from");s.visit(a)}if(o.selectTableQueryPosition){let a=i(wO(t,e,n.slice(o.selectTableQueryPosition.start,o.selectTableQueryPosition.end)),"select");s.visit(a)}let r=ls(s);r.length&&(T.tableContextSuggestion={tables:r});let c=function(t){return t.symbolTable.getNestedSymbolsOfTypeSync(Os).map((({name:t})=>({name:t})))}(s);c.length&&(T.suggestColumnAliases=c.map((({name:t})=>({name:t}))))}return T}var KO={SPACE:Ps.Whitespace,FROM:Ps.FROM,OPENING_BRACKET:Ps.OPEN_PAREN,CLOSING_BRACKET:Ps.CLOSE_PAREN,ALTER:Ps.ALTER,INSERT:Ps.INSERT,UPDATE:Ps.UPDATE,JOIN:Ps.JOIN,SEMICOLON:Ps.SEMI,SELECT:Ps.SELECT};var QO=new Set(function(){let t=[],e=Ps.Dollar,s=Ps.Operator;for(let r=e;r<=s;r++)r!==Ps.STAR&&t.push(r);let a=Ps.ABS,i=Ps.AfterEscapeStringConstantWithNewlineMode_Continued;for(let r=a;r<=i;r++)t.push(r);return t.push(Ps.EOF),t}()),JO=new Set([Ps.RULE_columnId,Ps.RULE_functionName,Ps.RULE_functionExpressionCommonSubexpr,Ps.RULE_indexName,Ps.RULE_triggerName,Ps.RULE_constraintName,Ps.RULE_sequenceName,Ps.RULE_schemaName,Ps.RULE_databaseName,Ps.RULE_roleName,Ps.RULE_identifier,Ps.RULE_plsqlVariableName,Ps.RULE_constTypeName,Ps.RULE_columnNameKeyword,Ps.RULE_unreservedKeyword,Ps.RULE_plsqlUnreservedKeyword,Ps.RULE_typeFunctionNameKeyword,Ps.RULE_reservedKeyword]),ZO=class extends xO{constructor(){super(),this.visitRelationExpression=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.qualifiedName()?.getText()||"")}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitTableReference=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.relationExpression()?.qualifiedName()?.getText()||"",t.optionalAliasClause()?.tableAliasClause()?.tableAlias()?.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitInsertTarget=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.qualifiedName()?.getText()||"",t.columnId()?.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitTarget_label=t=>{try{let e=t.columnLabel()?.getText()||t.identifier()?.getText();e&&this.symbolTable.addNewSymbolOfType(Os,this.scope,e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitViewName=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.symbolTable=new As("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ss,void 0)}};function qO(t,e){if(!e)return t.root();switch(e){case"from":return t.nonAnsiJoin();case"alter":return t.alterTableStatement();case"insert":return t.insertStatement();case"update":return t.updateStatement();case"select":return t.selectStatement()}}var jO={Lexer:Cs,Parser:Ps,tokenDictionary:KO,ignoredTokens:QO,rulesToVisit:JO,getParseTree:qO,enrichAutocompleteResult:function(t,e,s,a,i,r){let{shouldSuggestColumns:c,shouldSuggestColumnAliases:n,shouldSuggestConstraints:h,...E}=function(t,e,s){let a,i=!1,r=!1,c=!1,n=!1,h=!1,E=!1,T=!1,o=!1,R=!1,A=!1,S=!1;for(let[l,O]of t)if(vO(e,O))switch(l){case Ps.RULE_functionExpressionCommonSubexpr:case Ps.RULE_functionName:r=!0,i=!0;break;case Ps.RULE_columnId:{let t=O.ruleList.includes(Ps.RULE_qualifiedName)&&(O.ruleList.includes(Ps.RULE_insertTarget)||O.ruleList.includes(Ps.RULE_relationExpression)),i=!O.ruleList.includes(Ps.RULE_createStatement)&&(t||O.ruleList.includes(Ps.RULE_functionTable));VO(s,KO,e,Ps.VIEW)&&!VO(s,KO,e,Ps.Identifier)&&(O.ruleList.includes(Ps.RULE_alterTableStatement)||O.ruleList.includes(Ps.RULE_refreshMaterializedViewStatement)||O.ruleList.includes(Ps.RULE_renameStatement)||O.ruleList.includes(Ps.RULE_alterObjectDependsStatement)||O.ruleList.includes(Ps.RULE_alterObjectSchemaStatement)||O.ruleList.includes(Ps.RULE_dropStatement))?a="VIEWS":VO(s,KO,e,Ps.TABLE)&&(O.ruleList.includes(Ps.RULE_dropStatement)||i)?a="TABLES":i?a="ALL":!O.ruleList.includes(Ps.RULE_selectLimitValue)&&!O.ruleList.includes(Ps.RULE_selectOffsetValue)&&(A=!0,(O.ruleList.includes(Ps.RULE_groupByItem)||O.ruleList.includes(Ps.RULE_sortBy))&&(S=!0));break}case Ps.RULE_indexName:c=!0;break;case Ps.RULE_triggerName:n=!0;break;case Ps.RULE_constraintName:R=!0;break;case Ps.RULE_sequenceName:h=!0;break;case Ps.RULE_schemaName:E=!0;break;case Ps.RULE_databaseName:T=!0;break;case Ps.RULE_roleName:o=!0}return{suggestViewsOrTables:a,suggestAggregateFunctions:i,suggestFunctions:r,suggestIndexes:c,suggestTriggers:n,shouldSuggestConstraints:R,suggestSequences:h,suggestSchemas:E,suggestDatabases:T,suggestRoles:o,shouldSuggestColumns:A,shouldSuggestColumnAliases:S}}(e,a,s),T={...t,...E,suggestTemplates:YO(r,i)};if(c||h||n){let t=new ZO,{tableContextSuggestion:e,suggestColumnAliases:a}=XO(Cs,Ps,t,KO,qO,s,i,r,!0);c&&e&&(T.suggestColumns=e),h&&e&&(T.suggestConstraints=e),n&&a&&(T.suggestColumnAliases=a)}return T}},zO=class t extends zt{static{this.SPACE=1}static{this.SPEC_MYSQL_COMMENT=2}static{this.COMMENT_INPUT=3}static{this.LINE_COMMENT=4}static{this.ADD=5}static{this.ALL=6}static{this.ALTER=7}static{this.ALWAYS=8}static{this.ANALYZE=9}static{this.AND=10}static{this.ARRAY=11}static{this.AS=12}static{this.ASC=13}static{this.ATTRIBUTE=14}static{this.BEFORE=15}static{this.BETWEEN=16}static{this.BOTH=17}static{this.BUCKETS=18}static{this.BY=19}static{this.CALL=20}static{this.CASCADE=21}static{this.CASE=22}static{this.CAST=23}static{this.CHANGE=24}static{this.CHARACTER=25}static{this.CHECK=26}static{this.COLLATE=27}static{this.COLUMN=28}static{this.CONDITION=29}static{this.CONSTRAINT=30}static{this.CONTINUE=31}static{this.CONVERT=32}static{this.CREATE=33}static{this.CROSS=34}static{this.CURRENT=35}static{this.CURRENT_ROLE=36}static{this.CURRENT_USER=37}static{this.CURSOR=38}static{this.DATABASE=39}static{this.DATABASES=40}static{this.DECLARE=41}static{this.DEFAULT=42}static{this.DELAYED=43}static{this.DELETE=44}static{this.DESC=45}static{this.DESCRIBE=46}static{this.DETERMINISTIC=47}static{this.DIAGNOSTICS=48}static{this.DISTINCT=49}static{this.DISTINCTROW=50}static{this.DROP=51}static{this.EACH=52}static{this.ELSE=53}static{this.ELSEIF=54}static{this.EMPTY=55}static{this.ENCLOSED=56}static{this.ENFORCED=57}static{this.ESCAPED=58}static{this.EXCEPT=59}static{this.EXISTS=60}static{this.EXIT=61}static{this.EXPLAIN=62}static{this.FALSE=63}static{this.FETCH=64}static{this.FOR=65}static{this.FORCE=66}static{this.FOREIGN=67}static{this.FROM=68}static{this.FULLTEXT=69}static{this.GENERATED=70}static{this.GET=71}static{this.GRANT=72}static{this.GROUP=73}static{this.HAVING=74}static{this.HIGH_PRIORITY=75}static{this.HISTOGRAM=76}static{this.IF=77}static{this.IGNORE=78}static{this.IGNORED=79}static{this.IN=80}static{this.INDEX=81}static{this.INFILE=82}static{this.INNER=83}static{this.INOUT=84}static{this.INSERT=85}static{this.INTERVAL=86}static{this.INTO=87}static{this.IS=88}static{this.ITERATE=89}static{this.JOIN=90}static{this.KEY=91}static{this.KEYS=92}static{this.KILL=93}static{this.LATERAL=94}static{this.LEADING=95}static{this.LEAVE=96}static{this.LEFT=97}static{this.LIKE=98}static{this.LIMIT=99}static{this.LINEAR=100}static{this.LINES=101}static{this.LOAD=102}static{this.LOCK=103}static{this.LOCKED=104}static{this.LOOP=105}static{this.LOW_PRIORITY=106}static{this.MASTER_BIND=107}static{this.MASTER_SSL_VERIFY_SERVER_CERT=108}static{this.MATCH=109}static{this.MAXVALUE=110}static{this.MINVALUE=111}static{this.MODIFIES=112}static{this.NATURAL=113}static{this.NOT=114}static{this.NO_WRITE_TO_BINLOG=115}static{this.NULL_LITERAL=116}static{this.NUMBER=117}static{this.ON=118}static{this.OPTIMIZE=119}static{this.OPTION=120}static{this.OPTIONAL=121}static{this.OPTIONALLY=122}static{this.OR=123}static{this.ORDER=124}static{this.OUT=125}static{this.OUTER=126}static{this.OUTFILE=127}static{this.OVER=128}static{this.PARTITION=129}static{this.PRIMARY=130}static{this.PROCEDURE=131}static{this.PURGE=132}static{this.RANGE=133}static{this.READ=134}static{this.READS=135}static{this.REFERENCES=136}static{this.REGEXP=137}static{this.RELEASE=138}static{this.RENAME=139}static{this.REPEAT=140}static{this.REPLACE=141}static{this.REQUIRE=142}static{this.RESIGNAL=143}static{this.RESTRICT=144}static{this.RETAIN=145}static{this.RETURN=146}static{this.REVOKE=147}static{this.RIGHT=148}static{this.RLIKE=149}static{this.SCHEMA=150}static{this.SCHEMAS=151}static{this.SELECT=152}static{this.SET=153}static{this.SEPARATOR=154}static{this.SHOW=155}static{this.SIGNAL=156}static{this.SKIP_=157}static{this.SKIP_QUERY_REWRITE=158}static{this.SPATIAL=159}static{this.SQL=160}static{this.SQLEXCEPTION=161}static{this.SQLSTATE=162}static{this.SQLWARNING=163}static{this.SQL_BIG_RESULT=164}static{this.SQL_CALC_FOUND_ROWS=165}static{this.SQL_SMALL_RESULT=166}static{this.SSL=167}static{this.STACKED=168}static{this.STARTING=169}static{this.STATEMENT=170}static{this.STRAIGHT_JOIN=171}static{this.TABLE=172}static{this.TERMINATED=173}static{this.THEN=174}static{this.TO=175}static{this.TRAILING=176}static{this.TRIGGER=177}static{this.TRUE=178}static{this.UNDO=179}static{this.UNION=180}static{this.UNIQUE=181}static{this.UNLOCK=182}static{this.UNSIGNED=183}static{this.UPDATE=184}static{this.USAGE=185}static{this.USE=186}static{this.USING=187}static{this.VALUES=188}static{this.WHEN=189}static{this.WHERE=190}static{this.WHILE=191}static{this.WITH=192}static{this.WRITE=193}static{this.XOR=194}static{this.ZEROFILL=195}static{this.TINYINT=196}static{this.SMALLINT=197}static{this.MEDIUMINT=198}static{this.MIDDLEINT=199}static{this.INT=200}static{this.INT1=201}static{this.INT2=202}static{this.INT3=203}static{this.INT4=204}static{this.INT8=205}static{this.INTEGER=206}static{this.BIGINT=207}static{this.REAL=208}static{this.DOUBLE=209}static{this.PRECISION=210}static{this.FLOAT=211}static{this.FLOAT4=212}static{this.FLOAT8=213}static{this.DECIMAL=214}static{this.DEC=215}static{this.NUMERIC=216}static{this.DATE=217}static{this.TIME=218}static{this.TIMESTAMP=219}static{this.DATETIME=220}static{this.YEAR=221}static{this.CHAR=222}static{this.VARCHAR=223}static{this.NVARCHAR=224}static{this.NATIONAL=225}static{this.BINARY=226}static{this.VARBINARY=227}static{this.TINYBLOB=228}static{this.BLOB=229}static{this.MEDIUMBLOB=230}static{this.LONG=231}static{this.LONGBLOB=232}static{this.TINYTEXT=233}static{this.TEXT=234}static{this.MEDIUMTEXT=235}static{this.LONGTEXT=236}static{this.ENUM=237}static{this.VARYING=238}static{this.SERIAL=239}static{this.YEAR_MONTH=240}static{this.DAY_HOUR=241}static{this.DAY_MINUTE=242}static{this.DAY_SECOND=243}static{this.HOUR_MINUTE=244}static{this.HOUR_SECOND=245}static{this.MINUTE_SECOND=246}static{this.SECOND_MICROSECOND=247}static{this.MINUTE_MICROSECOND=248}static{this.HOUR_MICROSECOND=249}static{this.DAY_MICROSECOND=250}static{this.JSON_ARRAY=251}static{this.JSON_ARRAYAGG=252}static{this.JSON_ARRAY_APPEND=253}static{this.JSON_ARRAY_INSERT=254}static{this.JSON_CONTAINS=255}static{this.JSON_CONTAINS_PATH=256}static{this.JSON_DEPTH=257}static{this.JSON_EXTRACT=258}static{this.JSON_INSERT=259}static{this.JSON_KEYS=260}static{this.JSON_LENGTH=261}static{this.JSON_MERGE=262}static{this.JSON_MERGE_PATCH=263}static{this.JSON_MERGE_PRESERVE=264}static{this.JSON_OBJECT=265}static{this.JSON_OBJECTAGG=266}static{this.JSON_OVERLAPS=267}static{this.JSON_PRETTY=268}static{this.JSON_QUOTE=269}static{this.JSON_REMOVE=270}static{this.JSON_REPLACE=271}static{this.JSON_SCHEMA_VALID=272}static{this.JSON_SCHEMA_VALIDATION_REPORT=273}static{this.JSON_SEARCH=274}static{this.JSON_SET=275}static{this.JSON_STORAGE_FREE=276}static{this.JSON_STORAGE_SIZE=277}static{this.JSON_TABLE=278}static{this.JSON_TYPE=279}static{this.JSON_UNQUOTE=280}static{this.JSON_VALID=281}static{this.JSON_VALUE=282}static{this.NESTED=283}static{this.ORDINALITY=284}static{this.PATH=285}static{this.AVG=286}static{this.BIT_AND=287}static{this.BIT_OR=288}static{this.BIT_XOR=289}static{this.COUNT=290}static{this.CUME_DIST=291}static{this.DENSE_RANK=292}static{this.FIRST_VALUE=293}static{this.GROUP_CONCAT=294}static{this.LAG=295}static{this.LAST_VALUE=296}static{this.LEAD=297}static{this.MAX=298}static{this.MIN=299}static{this.NTILE=300}static{this.NTH_VALUE=301}static{this.PERCENT_RANK=302}static{this.RANK=303}static{this.ROW_NUMBER=304}static{this.STD=305}static{this.STDDEV=306}static{this.STDDEV_POP=307}static{this.STDDEV_SAMP=308}static{this.SUM=309}static{this.VAR_POP=310}static{this.VAR_SAMP=311}static{this.VARIANCE=312}static{this.CURRENT_DATE=313}static{this.CURRENT_TIME=314}static{this.CURRENT_TIMESTAMP=315}static{this.LOCALTIME=316}static{this.CURDATE=317}static{this.CURTIME=318}static{this.DATE_ADD=319}static{this.DATE_SUB=320}static{this.EXTRACT=321}static{this.LOCALTIMESTAMP=322}static{this.NOW=323}static{this.POSITION=324}static{this.SUBSTR=325}static{this.SUBSTRING=326}static{this.SYSDATE=327}static{this.TRIM=328}static{this.UTC_DATE=329}static{this.UTC_TIME=330}static{this.UTC_TIMESTAMP=331}static{this.ACCOUNT=332}static{this.ACTION=333}static{this.AFTER=334}static{this.AGGREGATE=335}static{this.ALGORITHM=336}static{this.ANY=337}static{this.AT=338}static{this.AUTHORS=339}static{this.AUTOCOMMIT=340}static{this.AUTOEXTEND_SIZE=341}static{this.AUTO_INCREMENT=342}static{this.AVG_ROW_LENGTH=343}static{this.BEGIN=344}static{this.BINLOG=345}static{this.BIT=346}static{this.BLOCK=347}static{this.BOOL=348}static{this.BOOLEAN=349}static{this.BTREE=350}static{this.CACHE=351}static{this.CASCADED=352}static{this.CHAIN=353}static{this.CHANGED=354}static{this.CHANNEL=355}static{this.CHECKSUM=356}static{this.PAGE_CHECKSUM=357}static{this.CIPHER=358}static{this.CLASS_ORIGIN=359}static{this.CLIENT=360}static{this.CLOSE=361}static{this.CLUSTERING=362}static{this.COALESCE=363}static{this.CODE=364}static{this.COLUMNS=365}static{this.COLUMN_FORMAT=366}static{this.COLUMN_NAME=367}static{this.COMMENT=368}static{this.COMMIT=369}static{this.COMPACT=370}static{this.COMPLETION=371}static{this.COMPRESSED=372}static{this.COMPRESSION=373}static{this.CONCURRENT=374}static{this.CONNECT=375}static{this.CONNECTION=376}static{this.CONSISTENT=377}static{this.CONSTRAINT_CATALOG=378}static{this.CONSTRAINT_SCHEMA=379}static{this.CONSTRAINT_NAME=380}static{this.CONTAINS=381}static{this.CONTEXT=382}static{this.CONTRIBUTORS=383}static{this.COPY=384}static{this.CPU=385}static{this.CYCLE=386}static{this.CURSOR_NAME=387}static{this.DATA=388}static{this.DATAFILE=389}static{this.DEALLOCATE=390}static{this.DEFAULT_AUTH=391}static{this.DEFINER=392}static{this.DELAY_KEY_WRITE=393}static{this.DES_KEY_FILE=394}static{this.DIRECTORY=395}static{this.DISABLE=396}static{this.DISCARD=397}static{this.DISK=398}static{this.DO=399}static{this.DUMPFILE=400}static{this.DUPLICATE=401}static{this.DYNAMIC=402}static{this.ENABLE=403}static{this.ENCRYPTED=404}static{this.ENCRYPTION=405}static{this.ENCRYPTION_KEY_ID=406}static{this.END=407}static{this.ENDS=408}static{this.ENGINE=409}static{this.ENGINES=410}static{this.ERROR=411}static{this.ERRORS=412}static{this.ESCAPE=413}static{this.EVEN=414}static{this.EVENT=415}static{this.EVENTS=416}static{this.EVERY=417}static{this.EXCHANGE=418}static{this.EXCLUSIVE=419}static{this.EXPIRE=420}static{this.EXPORT=421}static{this.EXTENDED=422}static{this.EXTENT_SIZE=423}static{this.FAILED_LOGIN_ATTEMPTS=424}static{this.FAST=425}static{this.FAULTS=426}static{this.FIELDS=427}static{this.FILE_BLOCK_SIZE=428}static{this.FILTER=429}static{this.FIRST=430}static{this.FIXED=431}static{this.FLUSH=432}static{this.FOLLOWING=433}static{this.FOLLOWS=434}static{this.FOUND=435}static{this.FULL=436}static{this.FUNCTION=437}static{this.GENERAL=438}static{this.GLOBAL=439}static{this.GRANTS=440}static{this.GROUP_REPLICATION=441}static{this.HANDLER=442}static{this.HASH=443}static{this.HELP=444}static{this.HISTORY=445}static{this.HOST=446}static{this.HOSTS=447}static{this.IDENTIFIED=448}static{this.IGNORE_SERVER_IDS=449}static{this.IMPORT=450}static{this.INCREMENT=451}static{this.INDEXES=452}static{this.INITIAL_SIZE=453}static{this.INPLACE=454}static{this.INSERT_METHOD=455}static{this.INSTALL=456}static{this.INSTANCE=457}static{this.INSTANT=458}static{this.INVISIBLE=459}static{this.INVOKER=460}static{this.IO=461}static{this.IO_THREAD=462}static{this.IPC=463}static{this.ISOLATION=464}static{this.ISSUER=465}static{this.JSON=466}static{this.KEY_BLOCK_SIZE=467}static{this.LANGUAGE=468}static{this.LAST=469}static{this.LEAVES=470}static{this.LESS=471}static{this.LEVEL=472}static{this.LIST=473}static{this.LOCAL=474}static{this.LOGFILE=475}static{this.LOGS=476}static{this.MASTER=477}static{this.MASTER_AUTO_POSITION=478}static{this.MASTER_CONNECT_RETRY=479}static{this.MASTER_DELAY=480}static{this.MASTER_HEARTBEAT_PERIOD=481}static{this.MASTER_HOST=482}static{this.MASTER_LOG_FILE=483}static{this.MASTER_LOG_POS=484}static{this.MASTER_PASSWORD=485}static{this.MASTER_PORT=486}static{this.MASTER_RETRY_COUNT=487}static{this.MASTER_SSL=488}static{this.MASTER_SSL_CA=489}static{this.MASTER_SSL_CAPATH=490}static{this.MASTER_SSL_CERT=491}static{this.MASTER_SSL_CIPHER=492}static{this.MASTER_SSL_CRL=493}static{this.MASTER_SSL_CRLPATH=494}static{this.MASTER_SSL_KEY=495}static{this.MASTER_TLS_VERSION=496}static{this.MASTER_USER=497}static{this.MAX_CONNECTIONS_PER_HOUR=498}static{this.MAX_QUERIES_PER_HOUR=499}static{this.MAX_ROWS=500}static{this.MAX_SIZE=501}static{this.MAX_UPDATES_PER_HOUR=502}static{this.MAX_USER_CONNECTIONS=503}static{this.MEDIUM=504}static{this.MEMBER=505}static{this.MERGE=506}static{this.MESSAGE_TEXT=507}static{this.MID=508}static{this.MIGRATE=509}static{this.MIN_ROWS=510}static{this.MODE=511}static{this.MODIFY=512}static{this.MUTEX=513}static{this.MYSQL=514}static{this.MYSQL_ERRNO=515}static{this.NAME=516}static{this.NAMES=517}static{this.NCHAR=518}static{this.NEVER=519}static{this.NEXT=520}static{this.NO=521}static{this.NOCACHE=522}static{this.NOCOPY=523}static{this.NOCYCLE=524}static{this.NOMAXVALUE=525}static{this.NOMINVALUE=526}static{this.NOWAIT=527}static{this.NODEGROUP=528}static{this.NONE=529}static{this.ODBC=530}static{this.OFFLINE=531}static{this.OFFSET=532}static{this.OF=533}static{this.OJ=534}static{this.OLD_PASSWORD=535}static{this.ONE=536}static{this.ONLINE=537}static{this.ONLY=538}static{this.OPEN=539}static{this.OPTIMIZER_COSTS=540}static{this.OPTIONS=541}static{this.OWNER=542}static{this.PACK_KEYS=543}static{this.PAGE=544}static{this.PAGE_COMPRESSED=545}static{this.PAGE_COMPRESSION_LEVEL=546}static{this.PARSER=547}static{this.PARTIAL=548}static{this.PARTITIONING=549}static{this.PARTITIONS=550}static{this.PASSWORD=551}static{this.PASSWORD_LOCK_TIME=552}static{this.PHASE=553}static{this.PLUGIN=554}static{this.PLUGIN_DIR=555}static{this.PLUGINS=556}static{this.PORT=557}static{this.PRECEDES=558}static{this.PRECEDING=559}static{this.PREPARE=560}static{this.PRESERVE=561}static{this.PREV=562}static{this.PROCESSLIST=563}static{this.PROFILE=564}static{this.PROFILES=565}static{this.PROXY=566}static{this.QUERY=567}static{this.QUICK=568}static{this.REBUILD=569}static{this.RECOVER=570}static{this.RECURSIVE=571}static{this.REDO_BUFFER_SIZE=572}static{this.REDUNDANT=573}static{this.RELAY=574}static{this.RELAY_LOG_FILE=575}static{this.RELAY_LOG_POS=576}static{this.RELAYLOG=577}static{this.REMOVE=578}static{this.REORGANIZE=579}static{this.REPAIR=580}static{this.REPLICATE_DO_DB=581}static{this.REPLICATE_DO_TABLE=582}static{this.REPLICATE_IGNORE_DB=583}static{this.REPLICATE_IGNORE_TABLE=584}static{this.REPLICATE_REWRITE_DB=585}static{this.REPLICATE_WILD_DO_TABLE=586}static{this.REPLICATE_WILD_IGNORE_TABLE=587}static{this.REPLICATION=588}static{this.RESET=589}static{this.RESTART=590}static{this.RESUME=591}static{this.RETURNED_SQLSTATE=592}static{this.RETURNING=593}static{this.RETURNS=594}static{this.REUSE=595}static{this.ROLE=596}static{this.ROLLBACK=597}static{this.ROLLUP=598}static{this.ROTATE=599}static{this.ROW=600}static{this.ROWS=601}static{this.ROW_FORMAT=602}static{this.RTREE=603}static{this.SAVEPOINT=604}static{this.SCHEDULE=605}static{this.SECURITY=606}static{this.SEQUENCE=607}static{this.SERVER=608}static{this.SESSION=609}static{this.SHARE=610}static{this.SHARED=611}static{this.SIGNED=612}static{this.SIMPLE=613}static{this.SLAVE=614}static{this.SLOW=615}static{this.SNAPSHOT=616}static{this.SOCKET=617}static{this.SOME=618}static{this.SONAME=619}static{this.SOUNDS=620}static{this.SOURCE=621}static{this.SQL_AFTER_GTIDS=622}static{this.SQL_AFTER_MTS_GAPS=623}static{this.SQL_BEFORE_GTIDS=624}static{this.SQL_BUFFER_RESULT=625}static{this.SQL_CACHE=626}static{this.SQL_NO_CACHE=627}static{this.SQL_THREAD=628}static{this.START=629}static{this.STARTS=630}static{this.STATS_AUTO_RECALC=631}static{this.STATS_PERSISTENT=632}static{this.STATS_SAMPLE_PAGES=633}static{this.STATUS=634}static{this.STOP=635}static{this.STORAGE=636}static{this.STORED=637}static{this.STRING=638}static{this.SUBCLASS_ORIGIN=639}static{this.SUBJECT=640}static{this.SUBPARTITION=641}static{this.SUBPARTITIONS=642}static{this.SUSPEND=643}static{this.SWAPS=644}static{this.SWITCHES=645}static{this.TABLE_NAME=646}static{this.TABLESPACE=647}static{this.TABLE_TYPE=648}static{this.TEMPORARY=649}static{this.TEMPTABLE=650}static{this.THAN=651}static{this.TRADITIONAL=652}static{this.TRANSACTION=653}static{this.TRANSACTIONAL=654}static{this.TRIGGERS=655}static{this.TRUNCATE=656}static{this.UNBOUNDED=657}static{this.UNDEFINED=658}static{this.UNDOFILE=659}static{this.UNDO_BUFFER_SIZE=660}static{this.UNINSTALL=661}static{this.UNKNOWN=662}static{this.UNTIL=663}static{this.UPGRADE=664}static{this.USER=665}static{this.USE_FRM=666}static{this.USER_RESOURCES=667}static{this.VALIDATION=668}static{this.VALUE=669}static{this.VARIABLES=670}static{this.VIEW=671}static{this.VIRTUAL=672}static{this.VISIBLE=673}static{this.WAIT=674}static{this.WARNINGS=675}static{this.WINDOW=676}static{this.WITHOUT=677}static{this.WORK=678}static{this.WRAPPER=679}static{this.X509=680}static{this.XA=681}static{this.XML=682}static{this.YES=683}static{this.EUR=684}static{this.USA=685}static{this.JIS=686}static{this.ISO=687}static{this.INTERNAL=688}static{this.QUARTER=689}static{this.MONTH=690}static{this.DAY=691}static{this.HOUR=692}static{this.MINUTE=693}static{this.WEEK=694}static{this.SECOND=695}static{this.MICROSECOND=696}static{this.ADMIN=697}static{this.APPLICATION_PASSWORD_ADMIN=698}static{this.AUDIT_ABORT_EXEMPT=699}static{this.AUDIT_ADMIN=700}static{this.AUTHENTICATION_POLICY_ADMIN=701}static{this.BACKUP_ADMIN=702}static{this.BINLOG_ADMIN=703}static{this.BINLOG_ENCRYPTION_ADMIN=704}static{this.CLONE_ADMIN=705}static{this.CONNECTION_ADMIN=706}static{this.ENCRYPTION_KEY_ADMIN=707}static{this.EXECUTE=708}static{this.FILE=709}static{this.FIREWALL_ADMIN=710}static{this.FIREWALL_EXEMPT=711}static{this.FIREWALL_USER=712}static{this.FLUSH_OPTIMIZER_COSTS=713}static{this.FLUSH_STATUS=714}static{this.FLUSH_TABLES=715}static{this.FLUSH_USER_RESOURCES=716}static{this.GROUP_REPLICATION_ADMIN=717}static{this.INNODB_REDO_LOG_ARCHIVE=718}static{this.INNODB_REDO_LOG_ENABLE=719}static{this.INVOKE=720}static{this.LAMBDA=721}static{this.NDB_STORED_USER=722}static{this.PASSWORDLESS_USER_ADMIN=723}static{this.PERSIST_RO_VARIABLES_ADMIN=724}static{this.PRIVILEGES=725}static{this.PROCESS=726}static{this.RELOAD=727}static{this.REPLICATION_APPLIER=728}static{this.REPLICATION_SLAVE_ADMIN=729}static{this.RESOURCE_GROUP_ADMIN=730}static{this.RESOURCE_GROUP_USER=731}static{this.ROLE_ADMIN=732}static{this.ROUTINE=733}static{this.S3=734}static{this.SERVICE_CONNECTION_ADMIN=735}static{this.SESSION_VARIABLES_ADMIN=736}static{this.SET_USER_ID=737}static{this.SHOW_ROUTINE=738}static{this.SHUTDOWN=739}static{this.SUPER=740}static{this.SYSTEM_VARIABLES_ADMIN=741}static{this.TABLES=742}static{this.TABLE_ENCRYPTION_ADMIN=743}static{this.VERSION_TOKEN_ADMIN=744}static{this.XA_RECOVER_ADMIN=745}static{this.ARMSCII8=746}static{this.ASCII=747}static{this.BIG5=748}static{this.CP1250=749}static{this.CP1251=750}static{this.CP1256=751}static{this.CP1257=752}static{this.CP850=753}static{this.CP852=754}static{this.CP866=755}static{this.CP932=756}static{this.DEC8=757}static{this.EUCJPMS=758}static{this.EUCKR=759}static{this.GB18030=760}static{this.GB2312=761}static{this.GBK=762}static{this.GEOSTD8=763}static{this.GREEK=764}static{this.HEBREW=765}static{this.HP8=766}static{this.KEYBCS2=767}static{this.KOI8R=768}static{this.KOI8U=769}static{this.LATIN1=770}static{this.LATIN2=771}static{this.LATIN5=772}static{this.LATIN7=773}static{this.MACCE=774}static{this.MACROMAN=775}static{this.SJIS=776}static{this.SWE7=777}static{this.TIS620=778}static{this.UCS2=779}static{this.UJIS=780}static{this.UTF16=781}static{this.UTF16LE=782}static{this.UTF32=783}static{this.UTF8=784}static{this.UTF8MB3=785}static{this.UTF8MB4=786}static{this.ARCHIVE=787}static{this.BLACKHOLE=788}static{this.CSV=789}static{this.FEDERATED=790}static{this.INNODB=791}static{this.MEMORY=792}static{this.MRG_MYISAM=793}static{this.MYISAM=794}static{this.NDB=795}static{this.NDBCLUSTER=796}static{this.PERFORMANCE_SCHEMA=797}static{this.TOKUDB=798}static{this.REPEATABLE=799}static{this.COMMITTED=800}static{this.UNCOMMITTED=801}static{this.SERIALIZABLE=802}static{this.GEOMETRYCOLLECTION=803}static{this.GEOMCOLLECTION=804}static{this.GEOMETRY=805}static{this.LINESTRING=806}static{this.MULTILINESTRING=807}static{this.MULTIPOINT=808}static{this.MULTIPOLYGON=809}static{this.POINT=810}static{this.POLYGON=811}static{this.ABS=812}static{this.ACOS=813}static{this.ADDDATE=814}static{this.ADDTIME=815}static{this.AES_DECRYPT=816}static{this.AES_ENCRYPT=817}static{this.AREA=818}static{this.ASBINARY=819}static{this.ASIN=820}static{this.ASTEXT=821}static{this.ASWKB=822}static{this.ASWKT=823}static{this.ASYMMETRIC_DECRYPT=824}static{this.ASYMMETRIC_DERIVE=825}static{this.ASYMMETRIC_ENCRYPT=826}static{this.ASYMMETRIC_SIGN=827}static{this.ASYMMETRIC_VERIFY=828}static{this.ATAN=829}static{this.ATAN2=830}static{this.BENCHMARK=831}static{this.BIN=832}static{this.BIT_COUNT=833}static{this.BIT_LENGTH=834}static{this.BUFFER=835}static{this.CATALOG_NAME=836}static{this.CEIL=837}static{this.CEILING=838}static{this.CENTROID=839}static{this.CHARACTER_LENGTH=840}static{this.CHARSET=841}static{this.CHAR_LENGTH=842}static{this.COERCIBILITY=843}static{this.COLLATION=844}static{this.COMPRESS=845}static{this.CONCAT=846}static{this.CONCAT_WS=847}static{this.CONNECTION_ID=848}static{this.CONV=849}static{this.CONVERT_TZ=850}static{this.COS=851}static{this.COT=852}static{this.CRC32=853}static{this.CREATE_ASYMMETRIC_PRIV_KEY=854}static{this.CREATE_ASYMMETRIC_PUB_KEY=855}static{this.CREATE_DH_PARAMETERS=856}static{this.CREATE_DIGEST=857}static{this.CROSSES=858}static{this.DATEDIFF=859}static{this.DATE_FORMAT=860}static{this.DAYNAME=861}static{this.DAYOFMONTH=862}static{this.DAYOFWEEK=863}static{this.DAYOFYEAR=864}static{this.DECODE=865}static{this.DEGREES=866}static{this.DES_DECRYPT=867}static{this.DES_ENCRYPT=868}static{this.DIMENSION=869}static{this.DISJOINT=870}static{this.ELT=871}static{this.ENCODE=872}static{this.ENCRYPT=873}static{this.ENDPOINT=874}static{this.ENGINE_ATTRIBUTE=875}static{this.ENVELOPE=876}static{this.EQUALS=877}static{this.EXP=878}static{this.EXPORT_SET=879}static{this.EXTERIORRING=880}static{this.EXTRACTVALUE=881}static{this.FIELD=882}static{this.FIND_IN_SET=883}static{this.FLOOR=884}static{this.FORMAT=885}static{this.FOUND_ROWS=886}static{this.FROM_BASE64=887}static{this.FROM_DAYS=888}static{this.FROM_UNIXTIME=889}static{this.GEOMCOLLFROMTEXT=890}static{this.GEOMCOLLFROMWKB=891}static{this.GEOMETRYCOLLECTIONFROMTEXT=892}static{this.GEOMETRYCOLLECTIONFROMWKB=893}static{this.GEOMETRYFROMTEXT=894}static{this.GEOMETRYFROMWKB=895}static{this.GEOMETRYN=896}static{this.GEOMETRYTYPE=897}static{this.GEOMFROMTEXT=898}static{this.GEOMFROMWKB=899}static{this.GET_FORMAT=900}static{this.GET_LOCK=901}static{this.GLENGTH=902}static{this.GREATEST=903}static{this.GTID_SUBSET=904}static{this.GTID_SUBTRACT=905}static{this.HEX=906}static{this.IFNULL=907}static{this.INET6_ATON=908}static{this.INET6_NTOA=909}static{this.INET_ATON=910}static{this.INET_NTOA=911}static{this.INSTR=912}static{this.INTERIORRINGN=913}static{this.INTERSECTS=914}static{this.ISCLOSED=915}static{this.ISEMPTY=916}static{this.ISNULL=917}static{this.ISSIMPLE=918}static{this.IS_FREE_LOCK=919}static{this.IS_IPV4=920}static{this.IS_IPV4_COMPAT=921}static{this.IS_IPV4_MAPPED=922}static{this.IS_IPV6=923}static{this.IS_USED_LOCK=924}static{this.LAST_INSERT_ID=925}static{this.LCASE=926}static{this.LEAST=927}static{this.LENGTH=928}static{this.LINEFROMTEXT=929}static{this.LINEFROMWKB=930}static{this.LINESTRINGFROMTEXT=931}static{this.LINESTRINGFROMWKB=932}static{this.LN=933}static{this.LOAD_FILE=934}static{this.LOCATE=935}static{this.LOG=936}static{this.LOG10=937}static{this.LOG2=938}static{this.LOWER=939}static{this.LPAD=940}static{this.LTRIM=941}static{this.MAKEDATE=942}static{this.MAKETIME=943}static{this.MAKE_SET=944}static{this.MASTER_POS_WAIT=945}static{this.MBRCONTAINS=946}static{this.MBRDISJOINT=947}static{this.MBREQUAL=948}static{this.MBRINTERSECTS=949}static{this.MBROVERLAPS=950}static{this.MBRTOUCHES=951}static{this.MBRWITHIN=952}static{this.MD5=953}static{this.MLINEFROMTEXT=954}static{this.MLINEFROMWKB=955}static{this.MONTHNAME=956}static{this.MPOINTFROMTEXT=957}static{this.MPOINTFROMWKB=958}static{this.MPOLYFROMTEXT=959}static{this.MPOLYFROMWKB=960}static{this.MULTILINESTRINGFROMTEXT=961}static{this.MULTILINESTRINGFROMWKB=962}static{this.MULTIPOINTFROMTEXT=963}static{this.MULTIPOINTFROMWKB=964}static{this.MULTIPOLYGONFROMTEXT=965}static{this.MULTIPOLYGONFROMWKB=966}static{this.NAME_CONST=967}static{this.NULLIF=968}static{this.NUMGEOMETRIES=969}static{this.NUMINTERIORRINGS=970}static{this.NUMPOINTS=971}static{this.OCT=972}static{this.OCTET_LENGTH=973}static{this.ORD=974}static{this.OVERLAPS=975}static{this.PERIOD_ADD=976}static{this.PERIOD_DIFF=977}static{this.PI=978}static{this.POINTFROMTEXT=979}static{this.POINTFROMWKB=980}static{this.POINTN=981}static{this.POLYFROMTEXT=982}static{this.POLYFROMWKB=983}static{this.POLYGONFROMTEXT=984}static{this.POLYGONFROMWKB=985}static{this.POW=986}static{this.POWER=987}static{this.QUOTE=988}static{this.RADIANS=989}static{this.RAND=990}static{this.RANDOM=991}static{this.RANDOM_BYTES=992}static{this.RELEASE_LOCK=993}static{this.REVERSE=994}static{this.ROUND=995}static{this.ROW_COUNT=996}static{this.RPAD=997}static{this.RTRIM=998}static{this.SEC_TO_TIME=999}static{this.SECONDARY_ENGINE_ATTRIBUTE=1e3}static{this.SESSION_USER=1001}static{this.SHA=1002}static{this.SHA1=1003}static{this.SHA2=1004}static{this.SCHEMA_NAME=1005}static{this.SIGN=1006}static{this.SIN=1007}static{this.SLEEP=1008}static{this.SOUNDEX=1009}static{this.SQL_THREAD_WAIT_AFTER_GTIDS=1010}static{this.SQRT=1011}static{this.SRID=1012}static{this.STARTPOINT=1013}static{this.STRCMP=1014}static{this.STR_TO_DATE=1015}static{this.ST_AREA=1016}static{this.ST_ASBINARY=1017}static{this.ST_ASTEXT=1018}static{this.ST_ASWKB=1019}static{this.ST_ASWKT=1020}static{this.ST_BUFFER=1021}static{this.ST_CENTROID=1022}static{this.ST_CONTAINS=1023}static{this.ST_CROSSES=1024}static{this.ST_DIFFERENCE=1025}static{this.ST_DIMENSION=1026}static{this.ST_DISJOINT=1027}static{this.ST_DISTANCE=1028}static{this.ST_ENDPOINT=1029}static{this.ST_ENVELOPE=1030}static{this.ST_EQUALS=1031}static{this.ST_EXTERIORRING=1032}static{this.ST_GEOMCOLLFROMTEXT=1033}static{this.ST_GEOMCOLLFROMTXT=1034}static{this.ST_GEOMCOLLFROMWKB=1035}static{this.ST_GEOMETRYCOLLECTIONFROMTEXT=1036}static{this.ST_GEOMETRYCOLLECTIONFROMWKB=1037}static{this.ST_GEOMETRYFROMTEXT=1038}static{this.ST_GEOMETRYFROMWKB=1039}static{this.ST_GEOMETRYN=1040}static{this.ST_GEOMETRYTYPE=1041}static{this.ST_GEOMFROMTEXT=1042}static{this.ST_GEOMFROMWKB=1043}static{this.ST_INTERIORRINGN=1044}static{this.ST_INTERSECTION=1045}static{this.ST_INTERSECTS=1046}static{this.ST_ISCLOSED=1047}static{this.ST_ISEMPTY=1048}static{this.ST_ISSIMPLE=1049}static{this.ST_LINEFROMTEXT=1050}static{this.ST_LINEFROMWKB=1051}static{this.ST_LINESTRINGFROMTEXT=1052}static{this.ST_LINESTRINGFROMWKB=1053}static{this.ST_NUMGEOMETRIES=1054}static{this.ST_NUMINTERIORRING=1055}static{this.ST_NUMINTERIORRINGS=1056}static{this.ST_NUMPOINTS=1057}static{this.ST_OVERLAPS=1058}static{this.ST_POINTFROMTEXT=1059}static{this.ST_POINTFROMWKB=1060}static{this.ST_POINTN=1061}static{this.ST_POLYFROMTEXT=1062}static{this.ST_POLYFROMWKB=1063}static{this.ST_POLYGONFROMTEXT=1064}static{this.ST_POLYGONFROMWKB=1065}static{this.ST_SRID=1066}static{this.ST_STARTPOINT=1067}static{this.ST_SYMDIFFERENCE=1068}static{this.ST_TOUCHES=1069}static{this.ST_UNION=1070}static{this.ST_WITHIN=1071}static{this.ST_X=1072}static{this.ST_Y=1073}static{this.SUBDATE=1074}static{this.SUBSTRING_INDEX=1075}static{this.SUBTIME=1076}static{this.SYSTEM_USER=1077}static{this.TAN=1078}static{this.TIMEDIFF=1079}static{this.TIMESTAMPADD=1080}static{this.TIMESTAMPDIFF=1081}static{this.TIME_FORMAT=1082}static{this.TIME_TO_SEC=1083}static{this.TOUCHES=1084}static{this.TO_BASE64=1085}static{this.TO_DAYS=1086}static{this.TO_SECONDS=1087}static{this.TP_CONNECTION_ADMIN=1088}static{this.UCASE=1089}static{this.UNCOMPRESS=1090}static{this.UNCOMPRESSED_LENGTH=1091}static{this.UNHEX=1092}static{this.UNIX_TIMESTAMP=1093}static{this.UPDATEXML=1094}static{this.UPPER=1095}static{this.UUID=1096}static{this.UUID_SHORT=1097}static{this.VALIDATE_PASSWORD_STRENGTH=1098}static{this.VERSION=1099}static{this.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS=1100}static{this.WEEKDAY=1101}static{this.WEEKOFYEAR=1102}static{this.WEIGHT_STRING=1103}static{this.WITHIN=1104}static{this.YEARWEEK=1105}static{this.Y_FUNCTION=1106}static{this.X_FUNCTION=1107}static{this.VAR_ASSIGN=1108}static{this.PLUS_ASSIGN=1109}static{this.MINUS_ASSIGN=1110}static{this.MULT_ASSIGN=1111}static{this.DIV_ASSIGN=1112}static{this.MOD_ASSIGN=1113}static{this.AND_ASSIGN=1114}static{this.XOR_ASSIGN=1115}static{this.OR_ASSIGN=1116}static{this.STAR=1117}static{this.DIVIDE=1118}static{this.MODULE=1119}static{this.PLUS=1120}static{this.MINUS=1121}static{this.DIV=1122}static{this.MOD=1123}static{this.EQUAL_SYMBOL=1124}static{this.GREATER_SYMBOL=1125}static{this.LESS_SYMBOL=1126}static{this.EXCLAMATION_SYMBOL=1127}static{this.BIT_NOT_OP=1128}static{this.BIT_OR_OP=1129}static{this.BIT_AND_OP=1130}static{this.BIT_XOR_OP=1131}static{this.DOT=1132}static{this.LR_BRACKET=1133}static{this.RR_BRACKET=1134}static{this.COMMA=1135}static{this.SEMI=1136}static{this.AT_SIGN=1137}static{this.ZERO_DECIMAL=1138}static{this.ONE_DECIMAL=1139}static{this.TWO_DECIMAL=1140}static{this.SINGLE_QUOTE_SYMB=1141}static{this.DOUBLE_QUOTE_SYMB=1142}static{this.REVERSE_QUOTE_SYMB=1143}static{this.COLON_SYMB=1144}static{this.CHARSET_REVERSE_QOUTE_STRING=1145}static{this.FILESIZE_LITERAL=1146}static{this.START_NATIONAL_STRING_LITERAL=1147}static{this.STRING_LITERAL=1148}static{this.DECIMAL_LITERAL=1149}static{this.HEXADECIMAL_LITERAL=1150}static{this.REAL_LITERAL=1151}static{this.NULL_SPEC_LITERAL=1152}static{this.BIT_STRING=1153}static{this.STRING_CHARSET_NAME=1154}static{this.DOT_ID=1155}static{this.ID=1156}static{this.REVERSE_QUOTE_ID=1157}static{this.HOST_IP_ADDRESS=1158}static{this.LOCAL_ID=1159}static{this.GLOBAL_ID=1160}static{this.ERROR_RECONGNIGION=1161}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN","MYSQLCOMMENT","ERRORCHANNEL"]}static{this.literalNames=[null,null,null,null,null,"'ADD'","'ALL'","'ALTER'","'ALWAYS'","'ANALYZE'","'AND'","'ARRAY'","'AS'","'ASC'","'ATTRIBUTE'","'BEFORE'","'BETWEEN'","'BOTH'","'BUCKETS'","'BY'","'CALL'","'CASCADE'","'CASE'","'CAST'","'CHANGE'","'CHARACTER'","'CHECK'","'COLLATE'","'COLUMN'","'CONDITION'","'CONSTRAINT'","'CONTINUE'","'CONVERT'","'CREATE'","'CROSS'","'CURRENT'","'CURRENT_ROLE'","'CURRENT_USER'","'CURSOR'","'DATABASE'","'DATABASES'","'DECLARE'","'DEFAULT'","'DELAYED'","'DELETE'","'DESC'","'DESCRIBE'","'DETERMINISTIC'","'DIAGNOSTICS'","'DISTINCT'","'DISTINCTROW'","'DROP'","'EACH'","'ELSE'","'ELSEIF'","'EMPTY'","'ENCLOSED'","'ENFORCED'","'ESCAPED'","'EXCEPT'","'EXISTS'","'EXIT'","'EXPLAIN'","'FALSE'","'FETCH'","'FOR'","'FORCE'","'FOREIGN'","'FROM'","'FULLTEXT'","'GENERATED'","'GET'","'GRANT'","'GROUP'","'HAVING'","'HIGH_PRIORITY'","'HISTOGRAM'","'IF'","'IGNORE'","'IGNORED'","'IN'","'INDEX'","'INFILE'","'INNER'","'INOUT'","'INSERT'","'INTERVAL'","'INTO'","'IS'","'ITERATE'","'JOIN'","'KEY'","'KEYS'","'KILL'","'LATERAL'","'LEADING'","'LEAVE'","'LEFT'","'LIKE'","'LIMIT'","'LINEAR'","'LINES'","'LOAD'","'LOCK'","'LOCKED'","'LOOP'","'LOW_PRIORITY'","'MASTER_BIND'","'MASTER_SSL_VERIFY_SERVER_CERT'","'MATCH'","'MAXVALUE'","'MINVALUE'","'MODIFIES'","'NATURAL'","'NOT'","'NO_WRITE_TO_BINLOG'","'NULL'","'NUMBER'","'ON'","'OPTIMIZE'","'OPTION'","'OPTIONAL'","'OPTIONALLY'","'OR'","'ORDER'","'OUT'","'OUTER'","'OUTFILE'","'OVER'","'PARTITION'","'PRIMARY'","'PROCEDURE'","'PURGE'","'RANGE'","'READ'","'READS'","'REFERENCES'","'REGEXP'","'RELEASE'","'RENAME'","'REPEAT'","'REPLACE'","'REQUIRE'","'RESIGNAL'","'RESTRICT'","'RETAIN'","'RETURN'","'REVOKE'","'RIGHT'","'RLIKE'","'SCHEMA'","'SCHEMAS'","'SELECT'","'SET'","'SEPARATOR'","'SHOW'","'SIGNAL'","'SKIP'","'SKIP_QUERY_REWRITE'","'SPATIAL'","'SQL'","'SQLEXCEPTION'","'SQLSTATE'","'SQLWARNING'","'SQL_BIG_RESULT'","'SQL_CALC_FOUND_ROWS'","'SQL_SMALL_RESULT'","'SSL'","'STACKED'","'STARTING'","'STATEMENT'","'STRAIGHT_JOIN'","'TABLE'","'TERMINATED'","'THEN'","'TO'","'TRAILING'","'TRIGGER'","'TRUE'","'UNDO'","'UNION'","'UNIQUE'","'UNLOCK'","'UNSIGNED'","'UPDATE'","'USAGE'","'USE'","'USING'","'VALUES'","'WHEN'","'WHERE'","'WHILE'","'WITH'","'WRITE'","'XOR'","'ZEROFILL'","'TINYINT'","'SMALLINT'","'MEDIUMINT'","'MIDDLEINT'","'INT'","'INT1'","'INT2'","'INT3'","'INT4'","'INT8'","'INTEGER'","'BIGINT'","'REAL'","'DOUBLE'","'PRECISION'","'FLOAT'","'FLOAT4'","'FLOAT8'","'DECIMAL'","'DEC'","'NUMERIC'","'DATE'","'TIME'","'TIMESTAMP'","'DATETIME'","'YEAR'","'CHAR'","'VARCHAR'","'NVARCHAR'","'NATIONAL'","'BINARY'","'VARBINARY'","'TINYBLOB'","'BLOB'","'MEDIUMBLOB'","'LONG'","'LONGBLOB'","'TINYTEXT'","'TEXT'","'MEDIUMTEXT'","'LONGTEXT'","'ENUM'","'VARYING'","'SERIAL'","'YEAR_MONTH'","'DAY_HOUR'","'DAY_MINUTE'","'DAY_SECOND'","'HOUR_MINUTE'","'HOUR_SECOND'","'MINUTE_SECOND'","'SECOND_MICROSECOND'","'MINUTE_MICROSECOND'","'HOUR_MICROSECOND'","'DAY_MICROSECOND'","'JSON_ARRAY'","'JSON_ARRAYAGG'","'JSON_ARRAY_APPEND'","'JSON_ARRAY_INSERT'","'JSON_CONTAINS'","'JSON_CONTAINS_PATH'","'JSON_DEPTH'","'JSON_EXTRACT'","'JSON_INSERT'","'JSON_KEYS'","'JSON_LENGTH'","'JSON_MERGE'","'JSON_MERGE_PATCH'","'JSON_MERGE_PRESERVE'","'JSON_OBJECT'","'JSON_OBJECTAGG'","'JSON_OVERLAPS'","'JSON_PRETTY'","'JSON_QUOTE'","'JSON_REMOVE'","'JSON_REPLACE'","'JSON_SCHEMA_VALID'","'JSON_SCHEMA_VALIDATION_REPORT'","'JSON_SEARCH'","'JSON_SET'","'JSON_STORAGE_FREE'","'JSON_STORAGE_SIZE'","'JSON_TABLE'","'JSON_TYPE'","'JSON_UNQUOTE'","'JSON_VALID'","'JSON_VALUE'","'NESTED'","'ORDINALITY'","'PATH'","'AVG'","'BIT_AND'","'BIT_OR'","'BIT_XOR'","'COUNT'","'CUME_DIST'","'DENSE_RANK'","'FIRST_VALUE'","'GROUP_CONCAT'","'LAG'","'LAST_VALUE'","'LEAD'","'MAX'","'MIN'","'NTILE'","'NTH_VALUE'","'PERCENT_RANK'","'RANK'","'ROW_NUMBER'","'STD'","'STDDEV'","'STDDEV_POP'","'STDDEV_SAMP'","'SUM'","'VAR_POP'","'VAR_SAMP'","'VARIANCE'","'CURRENT_DATE'","'CURRENT_TIME'","'CURRENT_TIMESTAMP'","'LOCALTIME'","'CURDATE'","'CURTIME'","'DATE_ADD'","'DATE_SUB'","'EXTRACT'","'LOCALTIMESTAMP'","'NOW'","'POSITION'","'SUBSTR'","'SUBSTRING'","'SYSDATE'","'TRIM'","'UTC_DATE'","'UTC_TIME'","'UTC_TIMESTAMP'","'ACCOUNT'","'ACTION'","'AFTER'","'AGGREGATE'","'ALGORITHM'","'ANY'","'AT'","'AUTHORS'","'AUTOCOMMIT'","'AUTOEXTEND_SIZE'","'AUTO_INCREMENT'","'AVG_ROW_LENGTH'","'BEGIN'","'BINLOG'","'BIT'","'BLOCK'","'BOOL'","'BOOLEAN'","'BTREE'","'CACHE'","'CASCADED'","'CHAIN'","'CHANGED'","'CHANNEL'","'CHECKSUM'","'PAGE_CHECKSUM'","'CIPHER'","'CLASS_ORIGIN'","'CLIENT'","'CLOSE'","'CLUSTERING'","'COALESCE'","'CODE'","'COLUMNS'","'COLUMN_FORMAT'","'COLUMN_NAME'","'COMMENT'","'COMMIT'","'COMPACT'","'COMPLETION'","'COMPRESSED'","'COMPRESSION'","'CONCURRENT'","'CONNECT'","'CONNECTION'","'CONSISTENT'","'CONSTRAINT_CATALOG'","'CONSTRAINT_SCHEMA'","'CONSTRAINT_NAME'","'CONTAINS'","'CONTEXT'","'CONTRIBUTORS'","'COPY'","'CPU'","'CYCLE'","'CURSOR_NAME'","'DATA'","'DATAFILE'","'DEALLOCATE'","'DEFAULT_AUTH'","'DEFINER'","'DELAY_KEY_WRITE'","'DES_KEY_FILE'","'DIRECTORY'","'DISABLE'","'DISCARD'","'DISK'","'DO'","'DUMPFILE'","'DUPLICATE'","'DYNAMIC'","'ENABLE'","'ENCRYPTED'","'ENCRYPTION'","'ENCRYPTION_KEY_ID'","'END'","'ENDS'","'ENGINE'","'ENGINES'","'ERROR'","'ERRORS'","'ESCAPE'","'EVEN'","'EVENT'","'EVENTS'","'EVERY'","'EXCHANGE'","'EXCLUSIVE'","'EXPIRE'","'EXPORT'","'EXTENDED'","'EXTENT_SIZE'","'FAILED_LOGIN_ATTEMPTS'","'FAST'","'FAULTS'","'FIELDS'","'FILE_BLOCK_SIZE'","'FILTER'","'FIRST'","'FIXED'","'FLUSH'","'FOLLOWING'","'FOLLOWS'","'FOUND'","'FULL'","'FUNCTION'","'GENERAL'","'GLOBAL'","'GRANTS'","'GROUP_REPLICATION'","'HANDLER'","'HASH'","'HELP'","'HISTORY'","'HOST'","'HOSTS'","'IDENTIFIED'","'IGNORE_SERVER_IDS'","'IMPORT'","'INCREMENT'","'INDEXES'","'INITIAL_SIZE'","'INPLACE'","'INSERT_METHOD'","'INSTALL'","'INSTANCE'","'INSTANT'","'INVISIBLE'","'INVOKER'","'IO'","'IO_THREAD'","'IPC'","'ISOLATION'","'ISSUER'","'JSON'","'KEY_BLOCK_SIZE'","'LANGUAGE'","'LAST'","'LEAVES'","'LESS'","'LEVEL'","'LIST'","'LOCAL'","'LOGFILE'","'LOGS'","'MASTER'","'MASTER_AUTO_POSITION'","'MASTER_CONNECT_RETRY'","'MASTER_DELAY'","'MASTER_HEARTBEAT_PERIOD'","'MASTER_HOST'","'MASTER_LOG_FILE'","'MASTER_LOG_POS'","'MASTER_PASSWORD'","'MASTER_PORT'","'MASTER_RETRY_COUNT'","'MASTER_SSL'","'MASTER_SSL_CA'","'MASTER_SSL_CAPATH'","'MASTER_SSL_CERT'","'MASTER_SSL_CIPHER'","'MASTER_SSL_CRL'","'MASTER_SSL_CRLPATH'","'MASTER_SSL_KEY'","'MASTER_TLS_VERSION'","'MASTER_USER'","'MAX_CONNECTIONS_PER_HOUR'","'MAX_QUERIES_PER_HOUR'","'MAX_ROWS'","'MAX_SIZE'","'MAX_UPDATES_PER_HOUR'","'MAX_USER_CONNECTIONS'","'MEDIUM'","'MEMBER'","'MERGE'","'MESSAGE_TEXT'","'MID'","'MIGRATE'","'MIN_ROWS'","'MODE'","'MODIFY'","'MUTEX'","'MYSQL'","'MYSQL_ERRNO'","'NAME'","'NAMES'","'NCHAR'","'NEVER'","'NEXT'","'NO'","'NOCACHE'","'NOCOPY'","'NOCYCLE'","'NOMAXVALUE'","'NOMINVALUE'","'NOWAIT'","'NODEGROUP'","'NONE'","'ODBC'","'OFFLINE'","'OFFSET'","'OF'","'OJ'","'OLD_PASSWORD'","'ONE'","'ONLINE'","'ONLY'","'OPEN'","'OPTIMIZER_COSTS'","'OPTIONS'","'OWNER'","'PACK_KEYS'","'PAGE'","'PAGE_COMPRESSED'","'PAGE_COMPRESSION_LEVEL'","'PARSER'","'PARTIAL'","'PARTITIONING'","'PARTITIONS'","'PASSWORD'","'PASSWORD_LOCK_TIME'","'PHASE'","'PLUGIN'","'PLUGIN_DIR'","'PLUGINS'","'PORT'","'PRECEDES'","'PRECEDING'","'PREPARE'","'PRESERVE'","'PREV'","'PROCESSLIST'","'PROFILE'","'PROFILES'","'PROXY'","'QUERY'","'QUICK'","'REBUILD'","'RECOVER'","'RECURSIVE'","'REDO_BUFFER_SIZE'","'REDUNDANT'","'RELAY'","'RELAY_LOG_FILE'","'RELAY_LOG_POS'","'RELAYLOG'","'REMOVE'","'REORGANIZE'","'REPAIR'","'REPLICATE_DO_DB'","'REPLICATE_DO_TABLE'","'REPLICATE_IGNORE_DB'","'REPLICATE_IGNORE_TABLE'","'REPLICATE_REWRITE_DB'","'REPLICATE_WILD_DO_TABLE'","'REPLICATE_WILD_IGNORE_TABLE'","'REPLICATION'","'RESET'","'RESTART'","'RESUME'","'RETURNED_SQLSTATE'","'RETURNING'","'RETURNS'","'REUSE'","'ROLE'","'ROLLBACK'","'ROLLUP'","'ROTATE'","'ROW'","'ROWS'","'ROW_FORMAT'","'RTREE'","'SAVEPOINT'","'SCHEDULE'","'SECURITY'","'SEQUENCE'","'SERVER'","'SESSION'","'SHARE'","'SHARED'","'SIGNED'","'SIMPLE'","'SLAVE'","'SLOW'","'SNAPSHOT'","'SOCKET'","'SOME'","'SONAME'","'SOUNDS'","'SOURCE'","'SQL_AFTER_GTIDS'","'SQL_AFTER_MTS_GAPS'","'SQL_BEFORE_GTIDS'","'SQL_BUFFER_RESULT'","'SQL_CACHE'","'SQL_NO_CACHE'","'SQL_THREAD'","'START'","'STARTS'","'STATS_AUTO_RECALC'","'STATS_PERSISTENT'","'STATS_SAMPLE_PAGES'","'STATUS'","'STOP'","'STORAGE'","'STORED'","'STRING'","'SUBCLASS_ORIGIN'","'SUBJECT'","'SUBPARTITION'","'SUBPARTITIONS'","'SUSPEND'","'SWAPS'","'SWITCHES'","'TABLE_NAME'","'TABLESPACE'","'TABLE_TYPE'","'TEMPORARY'","'TEMPTABLE'","'THAN'","'TRADITIONAL'","'TRANSACTION'","'TRANSACTIONAL'","'TRIGGERS'","'TRUNCATE'","'UNBOUNDED'","'UNDEFINED'","'UNDOFILE'","'UNDO_BUFFER_SIZE'","'UNINSTALL'","'UNKNOWN'","'UNTIL'","'UPGRADE'","'USER'","'USE_FRM'","'USER_RESOURCES'","'VALIDATION'","'VALUE'","'VARIABLES'","'VIEW'","'VIRTUAL'","'VISIBLE'","'WAIT'","'WARNINGS'","'WINDOW'","'WITHOUT'","'WORK'","'WRAPPER'","'X509'","'XA'","'XML'","'YES'","'EUR'","'USA'","'JIS'","'ISO'","'INTERNAL'","'QUARTER'","'MONTH'","'DAY'","'HOUR'","'MINUTE'","'WEEK'","'SECOND'","'MICROSECOND'","'ADMIN'","'APPLICATION_PASSWORD_ADMIN'","'AUDIT_ABORT_EXEMPT'","'AUDIT_ADMIN'","'AUTHENTICATION_POLICY_ADMIN'","'BACKUP_ADMIN'","'BINLOG_ADMIN'","'BINLOG_ENCRYPTION_ADMIN'","'CLONE_ADMIN'","'CONNECTION_ADMIN'","'ENCRYPTION_KEY_ADMIN'","'EXECUTE'","'FILE'","'FIREWALL_ADMIN'","'FIREWALL_EXEMPT'","'FIREWALL_USER'","'FLUSH_OPTIMIZER_COSTS'","'FLUSH_STATUS'","'FLUSH_TABLES'","'FLUSH_USER_RESOURCES'","'GROUP_REPLICATION_ADMIN'","'INNODB_REDO_LOG_ARCHIVE'","'INNODB_REDO_LOG_ENABLE'","'INVOKE'","'LAMBDA'","'NDB_STORED_USER'","'PASSWORDLESS_USER_ADMIN'","'PERSIST_RO_VARIABLES_ADMIN'","'PRIVILEGES'","'PROCESS'","'RELOAD'","'REPLICATION_APPLIER'","'REPLICATION_SLAVE_ADMIN'","'RESOURCE_GROUP_ADMIN'","'RESOURCE_GROUP_USER'","'ROLE_ADMIN'","'ROUTINE'","'S3'","'SERVICE_CONNECTION_ADMIN'",null,"'SET_USER_ID'","'SHOW_ROUTINE'","'SHUTDOWN'","'SUPER'","'SYSTEM_VARIABLES_ADMIN'","'TABLES'","'TABLE_ENCRYPTION_ADMIN'","'VERSION_TOKEN_ADMIN'","'XA_RECOVER_ADMIN'","'ARMSCII8'","'ASCII'","'BIG5'","'CP1250'","'CP1251'","'CP1256'","'CP1257'","'CP850'","'CP852'","'CP866'","'CP932'","'DEC8'","'EUCJPMS'","'EUCKR'","'GB18030'","'GB2312'","'GBK'","'GEOSTD8'","'GREEK'","'HEBREW'","'HP8'","'KEYBCS2'","'KOI8R'","'KOI8U'","'LATIN1'","'LATIN2'","'LATIN5'","'LATIN7'","'MACCE'","'MACROMAN'","'SJIS'","'SWE7'","'TIS620'","'UCS2'","'UJIS'","'UTF16'","'UTF16LE'","'UTF32'","'UTF8'","'UTF8MB3'","'UTF8MB4'","'ARCHIVE'","'BLACKHOLE'","'CSV'","'FEDERATED'","'INNODB'","'MEMORY'","'MRG_MYISAM'","'MYISAM'","'NDB'","'NDBCLUSTER'","'PERFORMANCE_SCHEMA'","'TOKUDB'","'REPEATABLE'","'COMMITTED'","'UNCOMMITTED'","'SERIALIZABLE'","'GEOMETRYCOLLECTION'","'GEOMCOLLECTION'","'GEOMETRY'","'LINESTRING'","'MULTILINESTRING'","'MULTIPOINT'","'MULTIPOLYGON'","'POINT'","'POLYGON'","'ABS'","'ACOS'","'ADDDATE'","'ADDTIME'","'AES_DECRYPT'","'AES_ENCRYPT'","'AREA'","'ASBINARY'","'ASIN'","'ASTEXT'","'ASWKB'","'ASWKT'","'ASYMMETRIC_DECRYPT'","'ASYMMETRIC_DERIVE'","'ASYMMETRIC_ENCRYPT'","'ASYMMETRIC_SIGN'","'ASYMMETRIC_VERIFY'","'ATAN'","'ATAN2'","'BENCHMARK'","'BIN'","'BIT_COUNT'","'BIT_LENGTH'","'BUFFER'","'CATALOG_NAME'","'CEIL'","'CEILING'","'CENTROID'","'CHARACTER_LENGTH'","'CHARSET'","'CHAR_LENGTH'","'COERCIBILITY'","'COLLATION'","'COMPRESS'","'CONCAT'","'CONCAT_WS'","'CONNECTION_ID'","'CONV'","'CONVERT_TZ'","'COS'","'COT'","'CRC32'","'CREATE_ASYMMETRIC_PRIV_KEY'","'CREATE_ASYMMETRIC_PUB_KEY'","'CREATE_DH_PARAMETERS'","'CREATE_DIGEST'","'CROSSES'","'DATEDIFF'","'DATE_FORMAT'","'DAYNAME'","'DAYOFMONTH'","'DAYOFWEEK'","'DAYOFYEAR'","'DECODE'","'DEGREES'","'DES_DECRYPT'","'DES_ENCRYPT'","'DIMENSION'","'DISJOINT'","'ELT'","'ENCODE'","'ENCRYPT'","'ENDPOINT'","'ENGINE_ATTRIBUTE'","'ENVELOPE'","'EQUALS'","'EXP'","'EXPORT_SET'","'EXTERIORRING'","'EXTRACTVALUE'","'FIELD'","'FIND_IN_SET'","'FLOOR'","'FORMAT'","'FOUND_ROWS'","'FROM_BASE64'","'FROM_DAYS'","'FROM_UNIXTIME'","'GEOMCOLLFROMTEXT'","'GEOMCOLLFROMWKB'","'GEOMETRYCOLLECTIONFROMTEXT'","'GEOMETRYCOLLECTIONFROMWKB'","'GEOMETRYFROMTEXT'","'GEOMETRYFROMWKB'","'GEOMETRYN'","'GEOMETRYTYPE'","'GEOMFROMTEXT'","'GEOMFROMWKB'","'GET_FORMAT'","'GET_LOCK'","'GLENGTH'","'GREATEST'","'GTID_SUBSET'","'GTID_SUBTRACT'","'HEX'","'IFNULL'","'INET6_ATON'","'INET6_NTOA'","'INET_ATON'","'INET_NTOA'","'INSTR'","'INTERIORRINGN'","'INTERSECTS'","'ISCLOSED'","'ISEMPTY'","'ISNULL'","'ISSIMPLE'","'IS_FREE_LOCK'","'IS_IPV4'","'IS_IPV4_COMPAT'","'IS_IPV4_MAPPED'","'IS_IPV6'","'IS_USED_LOCK'","'LAST_INSERT_ID'","'LCASE'","'LEAST'","'LENGTH'","'LINEFROMTEXT'","'LINEFROMWKB'","'LINESTRINGFROMTEXT'","'LINESTRINGFROMWKB'","'LN'","'LOAD_FILE'","'LOCATE'","'LOG'","'LOG10'","'LOG2'","'LOWER'","'LPAD'","'LTRIM'","'MAKEDATE'","'MAKETIME'","'MAKE_SET'","'MASTER_POS_WAIT'","'MBRCONTAINS'","'MBRDISJOINT'","'MBREQUAL'","'MBRINTERSECTS'","'MBROVERLAPS'","'MBRTOUCHES'","'MBRWITHIN'","'MD5'","'MLINEFROMTEXT'","'MLINEFROMWKB'","'MONTHNAME'","'MPOINTFROMTEXT'","'MPOINTFROMWKB'","'MPOLYFROMTEXT'","'MPOLYFROMWKB'","'MULTILINESTRINGFROMTEXT'","'MULTILINESTRINGFROMWKB'","'MULTIPOINTFROMTEXT'","'MULTIPOINTFROMWKB'","'MULTIPOLYGONFROMTEXT'","'MULTIPOLYGONFROMWKB'","'NAME_CONST'","'NULLIF'","'NUMGEOMETRIES'","'NUMINTERIORRINGS'","'NUMPOINTS'","'OCT'","'OCTET_LENGTH'","'ORD'","'OVERLAPS'","'PERIOD_ADD'","'PERIOD_DIFF'","'PI'","'POINTFROMTEXT'","'POINTFROMWKB'","'POINTN'","'POLYFROMTEXT'","'POLYFROMWKB'","'POLYGONFROMTEXT'","'POLYGONFROMWKB'","'POW'","'POWER'","'QUOTE'","'RADIANS'","'RAND'","'RANDOM'","'RANDOM_BYTES'","'RELEASE_LOCK'","'REVERSE'","'ROUND'","'ROW_COUNT'","'RPAD'","'RTRIM'","'SEC_TO_TIME'","'SECONDARY_ENGINE_ATTRIBUTE'","'SESSION_USER'","'SHA'","'SHA1'","'SHA2'","'SCHEMA_NAME'","'SIGN'","'SIN'","'SLEEP'","'SOUNDEX'","'SQL_THREAD_WAIT_AFTER_GTIDS'","'SQRT'","'SRID'","'STARTPOINT'","'STRCMP'","'STR_TO_DATE'","'ST_AREA'","'ST_ASBINARY'","'ST_ASTEXT'","'ST_ASWKB'","'ST_ASWKT'","'ST_BUFFER'","'ST_CENTROID'","'ST_CONTAINS'","'ST_CROSSES'","'ST_DIFFERENCE'","'ST_DIMENSION'","'ST_DISJOINT'","'ST_DISTANCE'","'ST_ENDPOINT'","'ST_ENVELOPE'","'ST_EQUALS'","'ST_EXTERIORRING'","'ST_GEOMCOLLFROMTEXT'","'ST_GEOMCOLLFROMTXT'","'ST_GEOMCOLLFROMWKB'","'ST_GEOMETRYCOLLECTIONFROMTEXT'","'ST_GEOMETRYCOLLECTIONFROMWKB'","'ST_GEOMETRYFROMTEXT'","'ST_GEOMETRYFROMWKB'","'ST_GEOMETRYN'","'ST_GEOMETRYTYPE'","'ST_GEOMFROMTEXT'","'ST_GEOMFROMWKB'","'ST_INTERIORRINGN'","'ST_INTERSECTION'","'ST_INTERSECTS'","'ST_ISCLOSED'","'ST_ISEMPTY'","'ST_ISSIMPLE'","'ST_LINEFROMTEXT'","'ST_LINEFROMWKB'","'ST_LINESTRINGFROMTEXT'","'ST_LINESTRINGFROMWKB'","'ST_NUMGEOMETRIES'","'ST_NUMINTERIORRING'","'ST_NUMINTERIORRINGS'","'ST_NUMPOINTS'","'ST_OVERLAPS'","'ST_POINTFROMTEXT'","'ST_POINTFROMWKB'","'ST_POINTN'","'ST_POLYFROMTEXT'","'ST_POLYFROMWKB'","'ST_POLYGONFROMTEXT'","'ST_POLYGONFROMWKB'","'ST_SRID'","'ST_STARTPOINT'","'ST_SYMDIFFERENCE'","'ST_TOUCHES'","'ST_UNION'","'ST_WITHIN'","'ST_X'","'ST_Y'","'SUBDATE'","'SUBSTRING_INDEX'","'SUBTIME'","'SYSTEM_USER'","'TAN'","'TIMEDIFF'","'TIMESTAMPADD'","'TIMESTAMPDIFF'","'TIME_FORMAT'","'TIME_TO_SEC'","'TOUCHES'","'TO_BASE64'","'TO_DAYS'","'TO_SECONDS'","'TP_CONNECTION_ADMIN'","'UCASE'","'UNCOMPRESS'","'UNCOMPRESSED_LENGTH'","'UNHEX'","'UNIX_TIMESTAMP'","'UPDATEXML'","'UPPER'","'UUID'","'UUID_SHORT'","'VALIDATE_PASSWORD_STRENGTH'","'VERSION'","'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS'","'WEEKDAY'","'WEEKOFYEAR'","'WEIGHT_STRING'","'WITHIN'","'YEARWEEK'","'Y'","'X'","':='","'+='","'-='","'*='","'/='","'%='","'&='","'^='","'|='","'*'","'/'","'%'","'+'","'-'","'DIV'","'MOD'","'='","'>'","'<'","'!'","'~'","'|'","'&'","'^'","'.'","'('","')'","','","';'","'@'","'0'","'1'","'2'","'''","'\"'","'`'","':'"]}static{this.symbolicNames=[null,"SPACE","SPEC_MYSQL_COMMENT","COMMENT_INPUT","LINE_COMMENT","ADD","ALL","ALTER","ALWAYS","ANALYZE","AND","ARRAY","AS","ASC","ATTRIBUTE","BEFORE","BETWEEN","BOTH","BUCKETS","BY","CALL","CASCADE","CASE","CAST","CHANGE","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_ROLE","CURRENT_USER","CURSOR","DATABASE","DATABASES","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DIAGNOSTICS","DISTINCT","DISTINCTROW","DROP","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ENFORCED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GET","GRANT","GROUP","HAVING","HIGH_PRIORITY","HISTOGRAM","IF","IGNORE","IGNORED","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LATERAL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCK","LOCKED","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINVALUE","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL_LITERAL","NUMBER","ON","OPTIMIZE","OPTION","OPTIONAL","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETAIN","RETURN","REVOKE","RIGHT","RLIKE","SCHEMA","SCHEMAS","SELECT","SET","SEPARATOR","SHOW","SIGNAL","SKIP_","SKIP_QUERY_REWRITE","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STACKED","STARTING","STATEMENT","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","VALUES","WHEN","WHERE","WHILE","WITH","WRITE","XOR","ZEROFILL","TINYINT","SMALLINT","MEDIUMINT","MIDDLEINT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","BIGINT","REAL","DOUBLE","PRECISION","FLOAT","FLOAT4","FLOAT8","DECIMAL","DEC","NUMERIC","DATE","TIME","TIMESTAMP","DATETIME","YEAR","CHAR","VARCHAR","NVARCHAR","NATIONAL","BINARY","VARBINARY","TINYBLOB","BLOB","MEDIUMBLOB","LONG","LONGBLOB","TINYTEXT","TEXT","MEDIUMTEXT","LONGTEXT","ENUM","VARYING","SERIAL","YEAR_MONTH","DAY_HOUR","DAY_MINUTE","DAY_SECOND","HOUR_MINUTE","HOUR_SECOND","MINUTE_SECOND","SECOND_MICROSECOND","MINUTE_MICROSECOND","HOUR_MICROSECOND","DAY_MICROSECOND","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","NESTED","ORDINALITY","PATH","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","GROUP_CONCAT","LAG","LAST_VALUE","LEAD","MAX","MIN","NTILE","NTH_VALUE","PERCENT_RANK","RANK","ROW_NUMBER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","LOCALTIME","CURDATE","CURTIME","DATE_ADD","DATE_SUB","EXTRACT","LOCALTIMESTAMP","NOW","POSITION","SUBSTR","SUBSTRING","SYSDATE","TRIM","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","ACCOUNT","ACTION","AFTER","AGGREGATE","ALGORITHM","ANY","AT","AUTHORS","AUTOCOMMIT","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG_ROW_LENGTH","BEGIN","BINLOG","BIT","BLOCK","BOOL","BOOLEAN","BTREE","CACHE","CASCADED","CHAIN","CHANGED","CHANNEL","CHECKSUM","PAGE_CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOSE","CLUSTERING","COALESCE","CODE","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMPACT","COMPLETION","COMPRESSED","COMPRESSION","CONCURRENT","CONNECT","CONNECTION","CONSISTENT","CONSTRAINT_CATALOG","CONSTRAINT_SCHEMA","CONSTRAINT_NAME","CONTAINS","CONTEXT","CONTRIBUTORS","COPY","CPU","CYCLE","CURSOR_NAME","DATA","DATAFILE","DEALLOCATE","DEFAULT_AUTH","DEFINER","DELAY_KEY_WRITE","DES_KEY_FILE","DIRECTORY","DISABLE","DISCARD","DISK","DO","DUMPFILE","DUPLICATE","DYNAMIC","ENABLE","ENCRYPTED","ENCRYPTION","ENCRYPTION_KEY_ID","END","ENDS","ENGINE","ENGINES","ERROR","ERRORS","ESCAPE","EVEN","EVENT","EVENTS","EVERY","EXCHANGE","EXCLUSIVE","EXPIRE","EXPORT","EXTENDED","EXTENT_SIZE","FAILED_LOGIN_ATTEMPTS","FAST","FAULTS","FIELDS","FILE_BLOCK_SIZE","FILTER","FIRST","FIXED","FLUSH","FOLLOWING","FOLLOWS","FOUND","FULL","FUNCTION","GENERAL","GLOBAL","GRANTS","GROUP_REPLICATION","HANDLER","HASH","HELP","HISTORY","HOST","HOSTS","IDENTIFIED","IGNORE_SERVER_IDS","IMPORT","INCREMENT","INDEXES","INITIAL_SIZE","INPLACE","INSERT_METHOD","INSTALL","INSTANCE","INSTANT","INVISIBLE","INVOKER","IO","IO_THREAD","IPC","ISOLATION","ISSUER","JSON","KEY_BLOCK_SIZE","LANGUAGE","LAST","LEAVES","LESS","LEVEL","LIST","LOCAL","LOGFILE","LOGS","MASTER","MASTER_AUTO_POSITION","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_TLS_VERSION","MASTER_USER","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEMBER","MERGE","MESSAGE_TEXT","MID","MIGRATE","MIN_ROWS","MODE","MODIFY","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NCHAR","NEVER","NEXT","NO","NOCACHE","NOCOPY","NOCYCLE","NOMAXVALUE","NOMINVALUE","NOWAIT","NODEGROUP","NONE","ODBC","OFFLINE","OFFSET","OF","OJ","OLD_PASSWORD","ONE","ONLINE","ONLY","OPEN","OPTIMIZER_COSTS","OPTIONS","OWNER","PACK_KEYS","PAGE","PAGE_COMPRESSED","PAGE_COMPRESSION_LEVEL","PARSER","PARTIAL","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PHASE","PLUGIN","PLUGIN_DIR","PLUGINS","PORT","PRECEDES","PRECEDING","PREPARE","PRESERVE","PREV","PROCESSLIST","PROFILE","PROFILES","PROXY","QUERY","QUICK","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","RELAY","RELAY_LOG_FILE","RELAY_LOG_POS","RELAYLOG","REMOVE","REORGANIZE","REPAIR","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","RESET","RESTART","RESUME","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROW","ROWS","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SECURITY","SEQUENCE","SERVER","SESSION","SHARE","SHARED","SIGNED","SIMPLE","SLAVE","SLOW","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BUFFER_RESULT","SQL_CACHE","SQL_NO_CACHE","SQL_THREAD","START","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUSPEND","SWAPS","SWITCHES","TABLE_NAME","TABLESPACE","TABLE_TYPE","TEMPORARY","TEMPTABLE","THAN","TRADITIONAL","TRANSACTION","TRANSACTIONAL","TRIGGERS","TRUNCATE","UNBOUNDED","UNDEFINED","UNDOFILE","UNDO_BUFFER_SIZE","UNINSTALL","UNKNOWN","UNTIL","UPGRADE","USER","USE_FRM","USER_RESOURCES","VALIDATION","VALUE","VARIABLES","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WINDOW","WITHOUT","WORK","WRAPPER","X509","XA","XML","YES","EUR","USA","JIS","ISO","INTERNAL","QUARTER","MONTH","DAY","HOUR","MINUTE","WEEK","SECOND","MICROSECOND","ADMIN","APPLICATION_PASSWORD_ADMIN","AUDIT_ABORT_EXEMPT","AUDIT_ADMIN","AUTHENTICATION_POLICY_ADMIN","BACKUP_ADMIN","BINLOG_ADMIN","BINLOG_ENCRYPTION_ADMIN","CLONE_ADMIN","CONNECTION_ADMIN","ENCRYPTION_KEY_ADMIN","EXECUTE","FILE","FIREWALL_ADMIN","FIREWALL_EXEMPT","FIREWALL_USER","FLUSH_OPTIMIZER_COSTS","FLUSH_STATUS","FLUSH_TABLES","FLUSH_USER_RESOURCES","GROUP_REPLICATION_ADMIN","INNODB_REDO_LOG_ARCHIVE","INNODB_REDO_LOG_ENABLE","INVOKE","LAMBDA","NDB_STORED_USER","PASSWORDLESS_USER_ADMIN","PERSIST_RO_VARIABLES_ADMIN","PRIVILEGES","PROCESS","RELOAD","REPLICATION_APPLIER","REPLICATION_SLAVE_ADMIN","RESOURCE_GROUP_ADMIN","RESOURCE_GROUP_USER","ROLE_ADMIN","ROUTINE","S3","SERVICE_CONNECTION_ADMIN","SESSION_VARIABLES_ADMIN","SET_USER_ID","SHOW_ROUTINE","SHUTDOWN","SUPER","SYSTEM_VARIABLES_ADMIN","TABLES","TABLE_ENCRYPTION_ADMIN","VERSION_TOKEN_ADMIN","XA_RECOVER_ADMIN","ARMSCII8","ASCII","BIG5","CP1250","CP1251","CP1256","CP1257","CP850","CP852","CP866","CP932","DEC8","EUCJPMS","EUCKR","GB18030","GB2312","GBK","GEOSTD8","GREEK","HEBREW","HP8","KEYBCS2","KOI8R","KOI8U","LATIN1","LATIN2","LATIN5","LATIN7","MACCE","MACROMAN","SJIS","SWE7","TIS620","UCS2","UJIS","UTF16","UTF16LE","UTF32","UTF8","UTF8MB3","UTF8MB4","ARCHIVE","BLACKHOLE","CSV","FEDERATED","INNODB","MEMORY","MRG_MYISAM","MYISAM","NDB","NDBCLUSTER","PERFORMANCE_SCHEMA","TOKUDB","REPEATABLE","COMMITTED","UNCOMMITTED","SERIALIZABLE","GEOMETRYCOLLECTION","GEOMCOLLECTION","GEOMETRY","LINESTRING","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","POINT","POLYGON","ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","AREA","ASBINARY","ASIN","ASTEXT","ASWKB","ASWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","BENCHMARK","BIN","BIT_COUNT","BIT_LENGTH","BUFFER","CATALOG_NAME","CEIL","CEILING","CENTROID","CHARACTER_LENGTH","CHARSET","CHAR_LENGTH","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","CROSSES","DATEDIFF","DATE_FORMAT","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEGREES","DES_DECRYPT","DES_ENCRYPT","DIMENSION","DISJOINT","ELT","ENCODE","ENCRYPT","ENDPOINT","ENGINE_ATTRIBUTE","ENVELOPE","EQUALS","EXP","EXPORT_SET","EXTERIORRING","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLFROMTEXT","GEOMCOLLFROMWKB","GEOMETRYCOLLECTIONFROMTEXT","GEOMETRYCOLLECTIONFROMWKB","GEOMETRYFROMTEXT","GEOMETRYFROMWKB","GEOMETRYN","GEOMETRYTYPE","GEOMFROMTEXT","GEOMFROMWKB","GET_FORMAT","GET_LOCK","GLENGTH","GREATEST","GTID_SUBSET","GTID_SUBTRACT","HEX","IFNULL","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSTR","INTERIORRINGN","INTERSECTS","ISCLOSED","ISEMPTY","ISNULL","ISSIMPLE","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LINEFROMTEXT","LINEFROMWKB","LINESTRINGFROMTEXT","LINESTRINGFROMWKB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKEDATE","MAKETIME","MAKE_SET","MASTER_POS_WAIT","MBRCONTAINS","MBRDISJOINT","MBREQUAL","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MLINEFROMTEXT","MLINEFROMWKB","MONTHNAME","MPOINTFROMTEXT","MPOINTFROMWKB","MPOLYFROMTEXT","MPOLYFROMWKB","MULTILINESTRINGFROMTEXT","MULTILINESTRINGFROMWKB","MULTIPOINTFROMTEXT","MULTIPOINTFROMWKB","MULTIPOLYGONFROMTEXT","MULTIPOLYGONFROMWKB","NAME_CONST","NULLIF","NUMGEOMETRIES","NUMINTERIORRINGS","NUMPOINTS","OCT","OCTET_LENGTH","ORD","OVERLAPS","PERIOD_ADD","PERIOD_DIFF","PI","POINTFROMTEXT","POINTFROMWKB","POINTN","POLYFROMTEXT","POLYFROMWKB","POLYGONFROMTEXT","POLYGONFROMWKB","POW","POWER","QUOTE","RADIANS","RAND","RANDOM","RANDOM_BYTES","RELEASE_LOCK","REVERSE","ROUND","ROW_COUNT","RPAD","RTRIM","SEC_TO_TIME","SECONDARY_ENGINE_ATTRIBUTE","SESSION_USER","SHA","SHA1","SHA2","SCHEMA_NAME","SIGN","SIN","SLEEP","SOUNDEX","SQL_THREAD_WAIT_AFTER_GTIDS","SQRT","SRID","STARTPOINT","STRCMP","STR_TO_DATE","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_ASWKB","ST_ASWKT","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMTXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYCOLLECTIONFROMTEXT","ST_GEOMETRYCOLLECTIONFROMWKB","ST_GEOMETRYFROMTEXT","ST_GEOMETRYFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINESTRINGFROMTEXT","ST_LINESTRINGFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMINTERIORRINGS","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_POLYGONFROMTEXT","ST_POLYGONFROMWKB","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_Y","SUBDATE","SUBSTRING_INDEX","SUBTIME","SYSTEM_USER","TAN","TIMEDIFF","TIMESTAMPADD","TIMESTAMPDIFF","TIME_FORMAT","TIME_TO_SEC","TOUCHES","TO_BASE64","TO_DAYS","TO_SECONDS","TP_CONNECTION_ADMIN","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VALIDATE_PASSWORD_STRENGTH","VERSION","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","WITHIN","YEARWEEK","Y_FUNCTION","X_FUNCTION","VAR_ASSIGN","PLUS_ASSIGN","MINUS_ASSIGN","MULT_ASSIGN","DIV_ASSIGN","MOD_ASSIGN","AND_ASSIGN","XOR_ASSIGN","OR_ASSIGN","STAR","DIVIDE","MODULE","PLUS","MINUS","DIV","MOD","EQUAL_SYMBOL","GREATER_SYMBOL","LESS_SYMBOL","EXCLAMATION_SYMBOL","BIT_NOT_OP","BIT_OR_OP","BIT_AND_OP","BIT_XOR_OP","DOT","LR_BRACKET","RR_BRACKET","COMMA","SEMI","AT_SIGN","ZERO_DECIMAL","ONE_DECIMAL","TWO_DECIMAL","SINGLE_QUOTE_SYMB","DOUBLE_QUOTE_SYMB","REVERSE_QUOTE_SYMB","COLON_SYMB","CHARSET_REVERSE_QOUTE_STRING","FILESIZE_LITERAL","START_NATIONAL_STRING_LITERAL","STRING_LITERAL","DECIMAL_LITERAL","HEXADECIMAL_LITERAL","REAL_LITERAL","NULL_SPEC_LITERAL","BIT_STRING","STRING_CHARSET_NAME","DOT_ID","ID","REVERSE_QUOTE_ID","HOST_IP_ADDRESS","LOCAL_ID","GLOBAL_ID","ERROR_RECONGNIGION"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["SPACE","SPEC_MYSQL_COMMENT","COMMENT_INPUT","LINE_COMMENT","ADD","ALL","ALTER","ALWAYS","ANALYZE","AND","ARRAY","AS","ASC","ATTRIBUTE","BEFORE","BETWEEN","BOTH","BUCKETS","BY","CALL","CASCADE","CASE","CAST","CHANGE","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_ROLE","CURRENT_USER","CURSOR","DATABASE","DATABASES","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DIAGNOSTICS","DISTINCT","DISTINCTROW","DROP","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ENFORCED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GET","GRANT","GROUP","HAVING","HIGH_PRIORITY","HISTOGRAM","IF","IGNORE","IGNORED","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LATERAL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCK","LOCKED","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINVALUE","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL_LITERAL","NUMBER","ON","OPTIMIZE","OPTION","OPTIONAL","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETAIN","RETURN","REVOKE","RIGHT","RLIKE","SCHEMA","SCHEMAS","SELECT","SET","SEPARATOR","SHOW","SIGNAL","SKIP_","SKIP_QUERY_REWRITE","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STACKED","STARTING","STATEMENT","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","VALUES","WHEN","WHERE","WHILE","WITH","WRITE","XOR","ZEROFILL","TINYINT","SMALLINT","MEDIUMINT","MIDDLEINT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","BIGINT","REAL","DOUBLE","PRECISION","FLOAT","FLOAT4","FLOAT8","DECIMAL","DEC","NUMERIC","DATE","TIME","TIMESTAMP","DATETIME","YEAR","CHAR","VARCHAR","NVARCHAR","NATIONAL","BINARY","VARBINARY","TINYBLOB","BLOB","MEDIUMBLOB","LONG","LONGBLOB","TINYTEXT","TEXT","MEDIUMTEXT","LONGTEXT","ENUM","VARYING","SERIAL","YEAR_MONTH","DAY_HOUR","DAY_MINUTE","DAY_SECOND","HOUR_MINUTE","HOUR_SECOND","MINUTE_SECOND","SECOND_MICROSECOND","MINUTE_MICROSECOND","HOUR_MICROSECOND","DAY_MICROSECOND","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","NESTED","ORDINALITY","PATH","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","GROUP_CONCAT","LAG","LAST_VALUE","LEAD","MAX","MIN","NTILE","NTH_VALUE","PERCENT_RANK","RANK","ROW_NUMBER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","LOCALTIME","CURDATE","CURTIME","DATE_ADD","DATE_SUB","EXTRACT","LOCALTIMESTAMP","NOW","POSITION","SUBSTR","SUBSTRING","SYSDATE","TRIM","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","ACCOUNT","ACTION","AFTER","AGGREGATE","ALGORITHM","ANY","AT","AUTHORS","AUTOCOMMIT","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG_ROW_LENGTH","BEGIN","BINLOG","BIT","BLOCK","BOOL","BOOLEAN","BTREE","CACHE","CASCADED","CHAIN","CHANGED","CHANNEL","CHECKSUM","PAGE_CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOSE","CLUSTERING","COALESCE","CODE","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMPACT","COMPLETION","COMPRESSED","COMPRESSION","CONCURRENT","CONNECT","CONNECTION","CONSISTENT","CONSTRAINT_CATALOG","CONSTRAINT_SCHEMA","CONSTRAINT_NAME","CONTAINS","CONTEXT","CONTRIBUTORS","COPY","CPU","CYCLE","CURSOR_NAME","DATA","DATAFILE","DEALLOCATE","DEFAULT_AUTH","DEFINER","DELAY_KEY_WRITE","DES_KEY_FILE","DIRECTORY","DISABLE","DISCARD","DISK","DO","DUMPFILE","DUPLICATE","DYNAMIC","ENABLE","ENCRYPTED","ENCRYPTION","ENCRYPTION_KEY_ID","END","ENDS","ENGINE","ENGINES","ERROR","ERRORS","ESCAPE","EVEN","EVENT","EVENTS","EVERY","EXCHANGE","EXCLUSIVE","EXPIRE","EXPORT","EXTENDED","EXTENT_SIZE","FAILED_LOGIN_ATTEMPTS","FAST","FAULTS","FIELDS","FILE_BLOCK_SIZE","FILTER","FIRST","FIXED","FLUSH","FOLLOWING","FOLLOWS","FOUND","FULL","FUNCTION","GENERAL","GLOBAL","GRANTS","GROUP_REPLICATION","HANDLER","HASH","HELP","HISTORY","HOST","HOSTS","IDENTIFIED","IGNORE_SERVER_IDS","IMPORT","INCREMENT","INDEXES","INITIAL_SIZE","INPLACE","INSERT_METHOD","INSTALL","INSTANCE","INSTANT","INVISIBLE","INVOKER","IO","IO_THREAD","IPC","ISOLATION","ISSUER","JSON","KEY_BLOCK_SIZE","LANGUAGE","LAST","LEAVES","LESS","LEVEL","LIST","LOCAL","LOGFILE","LOGS","MASTER","MASTER_AUTO_POSITION","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_TLS_VERSION","MASTER_USER","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEMBER","MERGE","MESSAGE_TEXT","MID","MIGRATE","MIN_ROWS","MODE","MODIFY","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NCHAR","NEVER","NEXT","NO","NOCACHE","NOCOPY","NOCYCLE","NOMAXVALUE","NOMINVALUE","NOWAIT","NODEGROUP","NONE","ODBC","OFFLINE","OFFSET","OF","OJ","OLD_PASSWORD","ONE","ONLINE","ONLY","OPEN","OPTIMIZER_COSTS","OPTIONS","OWNER","PACK_KEYS","PAGE","PAGE_COMPRESSED","PAGE_COMPRESSION_LEVEL","PARSER","PARTIAL","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PHASE","PLUGIN","PLUGIN_DIR","PLUGINS","PORT","PRECEDES","PRECEDING","PREPARE","PRESERVE","PREV","PROCESSLIST","PROFILE","PROFILES","PROXY","QUERY","QUICK","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","RELAY","RELAY_LOG_FILE","RELAY_LOG_POS","RELAYLOG","REMOVE","REORGANIZE","REPAIR","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","RESET","RESTART","RESUME","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROW","ROWS","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SECURITY","SEQUENCE","SERVER","SESSION","SHARE","SHARED","SIGNED","SIMPLE","SLAVE","SLOW","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BUFFER_RESULT","SQL_CACHE","SQL_NO_CACHE","SQL_THREAD","START","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUSPEND","SWAPS","SWITCHES","TABLE_NAME","TABLESPACE","TABLE_TYPE","TEMPORARY","TEMPTABLE","THAN","TRADITIONAL","TRANSACTION","TRANSACTIONAL","TRIGGERS","TRUNCATE","UNBOUNDED","UNDEFINED","UNDOFILE","UNDO_BUFFER_SIZE","UNINSTALL","UNKNOWN","UNTIL","UPGRADE","USER","USE_FRM","USER_RESOURCES","VALIDATION","VALUE","VARIABLES","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WINDOW","WITHOUT","WORK","WRAPPER","X509","XA","XML","YES","EUR","USA","JIS","ISO","INTERNAL","QUARTER","MONTH","DAY","HOUR","MINUTE","WEEK","SECOND","MICROSECOND","ADMIN","APPLICATION_PASSWORD_ADMIN","AUDIT_ABORT_EXEMPT","AUDIT_ADMIN","AUTHENTICATION_POLICY_ADMIN","BACKUP_ADMIN","BINLOG_ADMIN","BINLOG_ENCRYPTION_ADMIN","CLONE_ADMIN","CONNECTION_ADMIN","ENCRYPTION_KEY_ADMIN","EXECUTE","FILE","FIREWALL_ADMIN","FIREWALL_EXEMPT","FIREWALL_USER","FLUSH_OPTIMIZER_COSTS","FLUSH_STATUS","FLUSH_TABLES","FLUSH_USER_RESOURCES","GROUP_REPLICATION_ADMIN","INNODB_REDO_LOG_ARCHIVE","INNODB_REDO_LOG_ENABLE","INVOKE","LAMBDA","NDB_STORED_USER","PASSWORDLESS_USER_ADMIN","PERSIST_RO_VARIABLES_ADMIN","PRIVILEGES","PROCESS","RELOAD","REPLICATION_APPLIER","REPLICATION_SLAVE_ADMIN","RESOURCE_GROUP_ADMIN","RESOURCE_GROUP_USER","ROLE_ADMIN","ROUTINE","S3","SERVICE_CONNECTION_ADMIN","SESSION_VARIABLES_ADMIN","SET_USER_ID","SHOW_ROUTINE","SHUTDOWN","SUPER","SYSTEM_VARIABLES_ADMIN","TABLES","TABLE_ENCRYPTION_ADMIN","VERSION_TOKEN_ADMIN","XA_RECOVER_ADMIN","ARMSCII8","ASCII","BIG5","CP1250","CP1251","CP1256","CP1257","CP850","CP852","CP866","CP932","DEC8","EUCJPMS","EUCKR","GB18030","GB2312","GBK","GEOSTD8","GREEK","HEBREW","HP8","KEYBCS2","KOI8R","KOI8U","LATIN1","LATIN2","LATIN5","LATIN7","MACCE","MACROMAN","SJIS","SWE7","TIS620","UCS2","UJIS","UTF16","UTF16LE","UTF32","UTF8","UTF8MB3","UTF8MB4","ARCHIVE","BLACKHOLE","CSV","FEDERATED","INNODB","MEMORY","MRG_MYISAM","MYISAM","NDB","NDBCLUSTER","PERFORMANCE_SCHEMA","TOKUDB","REPEATABLE","COMMITTED","UNCOMMITTED","SERIALIZABLE","GEOMETRYCOLLECTION","GEOMCOLLECTION","GEOMETRY","LINESTRING","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","POINT","POLYGON","ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","AREA","ASBINARY","ASIN","ASTEXT","ASWKB","ASWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","BENCHMARK","BIN","BIT_COUNT","BIT_LENGTH","BUFFER","CATALOG_NAME","CEIL","CEILING","CENTROID","CHARACTER_LENGTH","CHARSET","CHAR_LENGTH","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","CROSSES","DATEDIFF","DATE_FORMAT","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEGREES","DES_DECRYPT","DES_ENCRYPT","DIMENSION","DISJOINT","ELT","ENCODE","ENCRYPT","ENDPOINT","ENGINE_ATTRIBUTE","ENVELOPE","EQUALS","EXP","EXPORT_SET","EXTERIORRING","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLFROMTEXT","GEOMCOLLFROMWKB","GEOMETRYCOLLECTIONFROMTEXT","GEOMETRYCOLLECTIONFROMWKB","GEOMETRYFROMTEXT","GEOMETRYFROMWKB","GEOMETRYN","GEOMETRYTYPE","GEOMFROMTEXT","GEOMFROMWKB","GET_FORMAT","GET_LOCK","GLENGTH","GREATEST","GTID_SUBSET","GTID_SUBTRACT","HEX","IFNULL","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSTR","INTERIORRINGN","INTERSECTS","ISCLOSED","ISEMPTY","ISNULL","ISSIMPLE","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LINEFROMTEXT","LINEFROMWKB","LINESTRINGFROMTEXT","LINESTRINGFROMWKB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKEDATE","MAKETIME","MAKE_SET","MASTER_POS_WAIT","MBRCONTAINS","MBRDISJOINT","MBREQUAL","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MLINEFROMTEXT","MLINEFROMWKB","MONTHNAME","MPOINTFROMTEXT","MPOINTFROMWKB","MPOLYFROMTEXT","MPOLYFROMWKB","MULTILINESTRINGFROMTEXT","MULTILINESTRINGFROMWKB","MULTIPOINTFROMTEXT","MULTIPOINTFROMWKB","MULTIPOLYGONFROMTEXT","MULTIPOLYGONFROMWKB","NAME_CONST","NULLIF","NUMGEOMETRIES","NUMINTERIORRINGS","NUMPOINTS","OCT","OCTET_LENGTH","ORD","OVERLAPS","PERIOD_ADD","PERIOD_DIFF","PI","POINTFROMTEXT","POINTFROMWKB","POINTN","POLYFROMTEXT","POLYFROMWKB","POLYGONFROMTEXT","POLYGONFROMWKB","POW","POWER","QUOTE","RADIANS","RAND","RANDOM","RANDOM_BYTES","RELEASE_LOCK","REVERSE","ROUND","ROW_COUNT","RPAD","RTRIM","SEC_TO_TIME","SECONDARY_ENGINE_ATTRIBUTE","SESSION_USER","SHA","SHA1","SHA2","SCHEMA_NAME","SIGN","SIN","SLEEP","SOUNDEX","SQL_THREAD_WAIT_AFTER_GTIDS","SQRT","SRID","STARTPOINT","STRCMP","STR_TO_DATE","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_ASWKB","ST_ASWKT","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMTXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYCOLLECTIONFROMTEXT","ST_GEOMETRYCOLLECTIONFROMWKB","ST_GEOMETRYFROMTEXT","ST_GEOMETRYFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINESTRINGFROMTEXT","ST_LINESTRINGFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMINTERIORRINGS","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_POLYGONFROMTEXT","ST_POLYGONFROMWKB","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_Y","SUBDATE","SUBSTRING_INDEX","SUBTIME","SYSTEM_USER","TAN","TIMEDIFF","TIMESTAMPADD","TIMESTAMPDIFF","TIME_FORMAT","TIME_TO_SEC","TOUCHES","TO_BASE64","TO_DAYS","TO_SECONDS","TP_CONNECTION_ADMIN","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VALIDATE_PASSWORD_STRENGTH","VERSION","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","WITHIN","YEARWEEK","Y_FUNCTION","X_FUNCTION","VAR_ASSIGN","PLUS_ASSIGN","MINUS_ASSIGN","MULT_ASSIGN","DIV_ASSIGN","MOD_ASSIGN","AND_ASSIGN","XOR_ASSIGN","OR_ASSIGN","STAR","DIVIDE","MODULE","PLUS","MINUS","DIV","MOD","EQUAL_SYMBOL","GREATER_SYMBOL","LESS_SYMBOL","EXCLAMATION_SYMBOL","BIT_NOT_OP","BIT_OR_OP","BIT_AND_OP","BIT_XOR_OP","DOT","LR_BRACKET","RR_BRACKET","COMMA","SEMI","AT_SIGN","ZERO_DECIMAL","ONE_DECIMAL","TWO_DECIMAL","SINGLE_QUOTE_SYMB","DOUBLE_QUOTE_SYMB","REVERSE_QUOTE_SYMB","COLON_SYMB","QUOTE_SYMB","CHARSET_REVERSE_QOUTE_STRING","FILESIZE_LITERAL","START_NATIONAL_STRING_LITERAL","STRING_LITERAL","DECIMAL_LITERAL","HEXADECIMAL_LITERAL","REAL_LITERAL","NULL_SPEC_LITERAL","BIT_STRING","STRING_CHARSET_NAME","DOT_ID","ID","REVERSE_QUOTE_ID","HOST_IP_ADDRESS","LOCAL_ID","GLOBAL_ID","CHARSET_NAME","EXPONENT_NUM_PART","ID_LITERAL","DQUOTA_STRING","SQUOTA_STRING","BQUOTA_STRING","HEX_DIGIT","DEC_DIGIT","BIT_STRING_L","IP_ADDRESS","ERROR_RECONGNIGION"]}constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new Ae)}get grammarFileName(){return"MySqlLexer.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static{this._serializedATN=[4,0,1161,13703,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,2,451,7,451,2,452,7,452,2,453,7,453,2,454,7,454,2,455,7,455,2,456,7,456,2,457,7,457,2,458,7,458,2,459,7,459,2,460,7,460,2,461,7,461,2,462,7,462,2,463,7,463,2,464,7,464,2,465,7,465,2,466,7,466,2,467,7,467,2,468,7,468,2,469,7,469,2,470,7,470,2,471,7,471,2,472,7,472,2,473,7,473,2,474,7,474,2,475,7,475,2,476,7,476,2,477,7,477,2,478,7,478,2,479,7,479,2,480,7,480,2,481,7,481,2,482,7,482,2,483,7,483,2,484,7,484,2,485,7,485,2,486,7,486,2,487,7,487,2,488,7,488,2,489,7,489,2,490,7,490,2,491,7,491,2,492,7,492,2,493,7,493,2,494,7,494,2,495,7,495,2,496,7,496,2,497,7,497,2,498,7,498,2,499,7,499,2,500,7,500,2,501,7,501,2,502,7,502,2,503,7,503,2,504,7,504,2,505,7,505,2,506,7,506,2,507,7,507,2,508,7,508,2,509,7,509,2,510,7,510,2,511,7,511,2,512,7,512,2,513,7,513,2,514,7,514,2,515,7,515,2,516,7,516,2,517,7,517,2,518,7,518,2,519,7,519,2,520,7,520,2,521,7,521,2,522,7,522,2,523,7,523,2,524,7,524,2,525,7,525,2,526,7,526,2,527,7,527,2,528,7,528,2,529,7,529,2,530,7,530,2,531,7,531,2,532,7,532,2,533,7,533,2,534,7,534,2,535,7,535,2,536,7,536,2,537,7,537,2,538,7,538,2,539,7,539,2,540,7,540,2,541,7,541,2,542,7,542,2,543,7,543,2,544,7,544,2,545,7,545,2,546,7,546,2,547,7,547,2,548,7,548,2,549,7,549,2,550,7,550,2,551,7,551,2,552,7,552,2,553,7,553,2,554,7,554,2,555,7,555,2,556,7,556,2,557,7,557,2,558,7,558,2,559,7,559,2,560,7,560,2,561,7,561,2,562,7,562,2,563,7,563,2,564,7,564,2,565,7,565,2,566,7,566,2,567,7,567,2,568,7,568,2,569,7,569,2,570,7,570,2,571,7,571,2,572,7,572,2,573,7,573,2,574,7,574,2,575,7,575,2,576,7,576,2,577,7,577,2,578,7,578,2,579,7,579,2,580,7,580,2,581,7,581,2,582,7,582,2,583,7,583,2,584,7,584,2,585,7,585,2,586,7,586,2,587,7,587,2,588,7,588,2,589,7,589,2,590,7,590,2,591,7,591,2,592,7,592,2,593,7,593,2,594,7,594,2,595,7,595,2,596,7,596,2,597,7,597,2,598,7,598,2,599,7,599,2,600,7,600,2,601,7,601,2,602,7,602,2,603,7,603,2,604,7,604,2,605,7,605,2,606,7,606,2,607,7,607,2,608,7,608,2,609,7,609,2,610,7,610,2,611,7,611,2,612,7,612,2,613,7,613,2,614,7,614,2,615,7,615,2,616,7,616,2,617,7,617,2,618,7,618,2,619,7,619,2,620,7,620,2,621,7,621,2,622,7,622,2,623,7,623,2,624,7,624,2,625,7,625,2,626,7,626,2,627,7,627,2,628,7,628,2,629,7,629,2,630,7,630,2,631,7,631,2,632,7,632,2,633,7,633,2,634,7,634,2,635,7,635,2,636,7,636,2,637,7,637,2,638,7,638,2,639,7,639,2,640,7,640,2,641,7,641,2,642,7,642,2,643,7,643,2,644,7,644,2,645,7,645,2,646,7,646,2,647,7,647,2,648,7,648,2,649,7,649,2,650,7,650,2,651,7,651,2,652,7,652,2,653,7,653,2,654,7,654,2,655,7,655,2,656,7,656,2,657,7,657,2,658,7,658,2,659,7,659,2,660,7,660,2,661,7,661,2,662,7,662,2,663,7,663,2,664,7,664,2,665,7,665,2,666,7,666,2,667,7,667,2,668,7,668,2,669,7,669,2,670,7,670,2,671,7,671,2,672,7,672,2,673,7,673,2,674,7,674,2,675,7,675,2,676,7,676,2,677,7,677,2,678,7,678,2,679,7,679,2,680,7,680,2,681,7,681,2,682,7,682,2,683,7,683,2,684,7,684,2,685,7,685,2,686,7,686,2,687,7,687,2,688,7,688,2,689,7,689,2,690,7,690,2,691,7,691,2,692,7,692,2,693,7,693,2,694,7,694,2,695,7,695,2,696,7,696,2,697,7,697,2,698,7,698,2,699,7,699,2,700,7,700,2,701,7,701,2,702,7,702,2,703,7,703,2,704,7,704,2,705,7,705,2,706,7,706,2,707,7,707,2,708,7,708,2,709,7,709,2,710,7,710,2,711,7,711,2,712,7,712,2,713,7,713,2,714,7,714,2,715,7,715,2,716,7,716,2,717,7,717,2,718,7,718,2,719,7,719,2,720,7,720,2,721,7,721,2,722,7,722,2,723,7,723,2,724,7,724,2,725,7,725,2,726,7,726,2,727,7,727,2,728,7,728,2,729,7,729,2,730,7,730,2,731,7,731,2,732,7,732,2,733,7,733,2,734,7,734,2,735,7,735,2,736,7,736,2,737,7,737,2,738,7,738,2,739,7,739,2,740,7,740,2,741,7,741,2,742,7,742,2,743,7,743,2,744,7,744,2,745,7,745,2,746,7,746,2,747,7,747,2,748,7,748,2,749,7,749,2,750,7,750,2,751,7,751,2,752,7,752,2,753,7,753,2,754,7,754,2,755,7,755,2,756,7,756,2,757,7,757,2,758,7,758,2,759,7,759,2,760,7,760,2,761,7,761,2,762,7,762,2,763,7,763,2,764,7,764,2,765,7,765,2,766,7,766,2,767,7,767,2,768,7,768,2,769,7,769,2,770,7,770,2,771,7,771,2,772,7,772,2,773,7,773,2,774,7,774,2,775,7,775,2,776,7,776,2,777,7,777,2,778,7,778,2,779,7,779,2,780,7,780,2,781,7,781,2,782,7,782,2,783,7,783,2,784,7,784,2,785,7,785,2,786,7,786,2,787,7,787,2,788,7,788,2,789,7,789,2,790,7,790,2,791,7,791,2,792,7,792,2,793,7,793,2,794,7,794,2,795,7,795,2,796,7,796,2,797,7,797,2,798,7,798,2,799,7,799,2,800,7,800,2,801,7,801,2,802,7,802,2,803,7,803,2,804,7,804,2,805,7,805,2,806,7,806,2,807,7,807,2,808,7,808,2,809,7,809,2,810,7,810,2,811,7,811,2,812,7,812,2,813,7,813,2,814,7,814,2,815,7,815,2,816,7,816,2,817,7,817,2,818,7,818,2,819,7,819,2,820,7,820,2,821,7,821,2,822,7,822,2,823,7,823,2,824,7,824,2,825,7,825,2,826,7,826,2,827,7,827,2,828,7,828,2,829,7,829,2,830,7,830,2,831,7,831,2,832,7,832,2,833,7,833,2,834,7,834,2,835,7,835,2,836,7,836,2,837,7,837,2,838,7,838,2,839,7,839,2,840,7,840,2,841,7,841,2,842,7,842,2,843,7,843,2,844,7,844,2,845,7,845,2,846,7,846,2,847,7,847,2,848,7,848,2,849,7,849,2,850,7,850,2,851,7,851,2,852,7,852,2,853,7,853,2,854,7,854,2,855,7,855,2,856,7,856,2,857,7,857,2,858,7,858,2,859,7,859,2,860,7,860,2,861,7,861,2,862,7,862,2,863,7,863,2,864,7,864,2,865,7,865,2,866,7,866,2,867,7,867,2,868,7,868,2,869,7,869,2,870,7,870,2,871,7,871,2,872,7,872,2,873,7,873,2,874,7,874,2,875,7,875,2,876,7,876,2,877,7,877,2,878,7,878,2,879,7,879,2,880,7,880,2,881,7,881,2,882,7,882,2,883,7,883,2,884,7,884,2,885,7,885,2,886,7,886,2,887,7,887,2,888,7,888,2,889,7,889,2,890,7,890,2,891,7,891,2,892,7,892,2,893,7,893,2,894,7,894,2,895,7,895,2,896,7,896,2,897,7,897,2,898,7,898,2,899,7,899,2,900,7,900,2,901,7,901,2,902,7,902,2,903,7,903,2,904,7,904,2,905,7,905,2,906,7,906,2,907,7,907,2,908,7,908,2,909,7,909,2,910,7,910,2,911,7,911,2,912,7,912,2,913,7,913,2,914,7,914,2,915,7,915,2,916,7,916,2,917,7,917,2,918,7,918,2,919,7,919,2,920,7,920,2,921,7,921,2,922,7,922,2,923,7,923,2,924,7,924,2,925,7,925,2,926,7,926,2,927,7,927,2,928,7,928,2,929,7,929,2,930,7,930,2,931,7,931,2,932,7,932,2,933,7,933,2,934,7,934,2,935,7,935,2,936,7,936,2,937,7,937,2,938,7,938,2,939,7,939,2,940,7,940,2,941,7,941,2,942,7,942,2,943,7,943,2,944,7,944,2,945,7,945,2,946,7,946,2,947,7,947,2,948,7,948,2,949,7,949,2,950,7,950,2,951,7,951,2,952,7,952,2,953,7,953,2,954,7,954,2,955,7,955,2,956,7,956,2,957,7,957,2,958,7,958,2,959,7,959,2,960,7,960,2,961,7,961,2,962,7,962,2,963,7,963,2,964,7,964,2,965,7,965,2,966,7,966,2,967,7,967,2,968,7,968,2,969,7,969,2,970,7,970,2,971,7,971,2,972,7,972,2,973,7,973,2,974,7,974,2,975,7,975,2,976,7,976,2,977,7,977,2,978,7,978,2,979,7,979,2,980,7,980,2,981,7,981,2,982,7,982,2,983,7,983,2,984,7,984,2,985,7,985,2,986,7,986,2,987,7,987,2,988,7,988,2,989,7,989,2,990,7,990,2,991,7,991,2,992,7,992,2,993,7,993,2,994,7,994,2,995,7,995,2,996,7,996,2,997,7,997,2,998,7,998,2,999,7,999,2,1e3,7,1e3,2,1001,7,1001,2,1002,7,1002,2,1003,7,1003,2,1004,7,1004,2,1005,7,1005,2,1006,7,1006,2,1007,7,1007,2,1008,7,1008,2,1009,7,1009,2,1010,7,1010,2,1011,7,1011,2,1012,7,1012,2,1013,7,1013,2,1014,7,1014,2,1015,7,1015,2,1016,7,1016,2,1017,7,1017,2,1018,7,1018,2,1019,7,1019,2,1020,7,1020,2,1021,7,1021,2,1022,7,1022,2,1023,7,1023,2,1024,7,1024,2,1025,7,1025,2,1026,7,1026,2,1027,7,1027,2,1028,7,1028,2,1029,7,1029,2,1030,7,1030,2,1031,7,1031,2,1032,7,1032,2,1033,7,1033,2,1034,7,1034,2,1035,7,1035,2,1036,7,1036,2,1037,7,1037,2,1038,7,1038,2,1039,7,1039,2,1040,7,1040,2,1041,7,1041,2,1042,7,1042,2,1043,7,1043,2,1044,7,1044,2,1045,7,1045,2,1046,7,1046,2,1047,7,1047,2,1048,7,1048,2,1049,7,1049,2,1050,7,1050,2,1051,7,1051,2,1052,7,1052,2,1053,7,1053,2,1054,7,1054,2,1055,7,1055,2,1056,7,1056,2,1057,7,1057,2,1058,7,1058,2,1059,7,1059,2,1060,7,1060,2,1061,7,1061,2,1062,7,1062,2,1063,7,1063,2,1064,7,1064,2,1065,7,1065,2,1066,7,1066,2,1067,7,1067,2,1068,7,1068,2,1069,7,1069,2,1070,7,1070,2,1071,7,1071,2,1072,7,1072,2,1073,7,1073,2,1074,7,1074,2,1075,7,1075,2,1076,7,1076,2,1077,7,1077,2,1078,7,1078,2,1079,7,1079,2,1080,7,1080,2,1081,7,1081,2,1082,7,1082,2,1083,7,1083,2,1084,7,1084,2,1085,7,1085,2,1086,7,1086,2,1087,7,1087,2,1088,7,1088,2,1089,7,1089,2,1090,7,1090,2,1091,7,1091,2,1092,7,1092,2,1093,7,1093,2,1094,7,1094,2,1095,7,1095,2,1096,7,1096,2,1097,7,1097,2,1098,7,1098,2,1099,7,1099,2,1100,7,1100,2,1101,7,1101,2,1102,7,1102,2,1103,7,1103,2,1104,7,1104,2,1105,7,1105,2,1106,7,1106,2,1107,7,1107,2,1108,7,1108,2,1109,7,1109,2,1110,7,1110,2,1111,7,1111,2,1112,7,1112,2,1113,7,1113,2,1114,7,1114,2,1115,7,1115,2,1116,7,1116,2,1117,7,1117,2,1118,7,1118,2,1119,7,1119,2,1120,7,1120,2,1121,7,1121,2,1122,7,1122,2,1123,7,1123,2,1124,7,1124,2,1125,7,1125,2,1126,7,1126,2,1127,7,1127,2,1128,7,1128,2,1129,7,1129,2,1130,7,1130,2,1131,7,1131,2,1132,7,1132,2,1133,7,1133,2,1134,7,1134,2,1135,7,1135,2,1136,7,1136,2,1137,7,1137,2,1138,7,1138,2,1139,7,1139,2,1140,7,1140,2,1141,7,1141,2,1142,7,1142,2,1143,7,1143,2,1144,7,1144,2,1145,7,1145,2,1146,7,1146,2,1147,7,1147,2,1148,7,1148,2,1149,7,1149,2,1150,7,1150,2,1151,7,1151,2,1152,7,1152,2,1153,7,1153,2,1154,7,1154,2,1155,7,1155,2,1156,7,1156,2,1157,7,1157,2,1158,7,1158,2,1159,7,1159,2,1160,7,1160,2,1161,7,1161,2,1162,7,1162,2,1163,7,1163,2,1164,7,1164,2,1165,7,1165,2,1166,7,1166,2,1167,7,1167,2,1168,7,1168,2,1169,7,1169,2,1170,7,1170,2,1171,7,1171,1,0,4,0,2347,8,0,11,0,12,0,2348,1,0,1,0,1,1,1,1,1,1,1,1,1,1,4,1,2358,8,1,11,1,12,1,2359,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,5,2,2371,8,2,10,2,12,2,2374,9,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,5,3,2385,8,3,10,3,12,3,2388,9,3,1,3,3,3,2391,8,3,1,3,5,3,2394,8,3,10,3,12,3,2397,9,3,1,3,3,3,2400,8,3,1,3,1,3,3,3,2404,8,3,1,3,1,3,1,3,1,3,3,3,2410,8,3,1,3,1,3,3,3,2414,8,3,3,3,2416,8,3,1,3,1,3,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,349,1,349,1,349,1,349,1,349,1,349,1,350,1,350,1,350,1,350,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,355,1,355,1,355,1,355,1,355,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,356,1,357,1,357,1,357,1,357,1,357,1,357,1,357,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,358,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,360,1,360,1,360,1,360,1,360,1,360,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,363,1,363,1,363,1,363,1,363,1,364,1,364,1,364,1,364,1,364,1,364,1,364,1,364,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,365,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,366,1,367,1,367,1,367,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,1,368,1,368,1,368,1,368,1,369,1,369,1,369,1,369,1,369,1,369,1,369,1,369,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,370,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,371,1,372,1,372,1,372,1,372,1,372,1,372,1,372,1,372,1,372,1,372,1,372,1,372,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,373,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,374,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,375,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,378,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,379,1,380,1,380,1,380,1,380,1,380,1,380,1,380,1,380,1,380,1,381,1,381,1,381,1,381,1,381,1,381,1,381,1,381,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,382,1,383,1,383,1,383,1,383,1,383,1,384,1,384,1,384,1,384,1,385,1,385,1,385,1,385,1,385,1,385,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,386,1,387,1,387,1,387,1,387,1,387,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,388,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,389,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,392,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,394,1,394,1,394,1,394,1,394,1,394,1,394,1,394,1,394,1,394,1,395,1,395,1,395,1,395,1,395,1,395,1,395,1,395,1,396,1,396,1,396,1,396,1,396,1,396,1,396,1,396,1,397,1,397,1,397,1,397,1,397,1,398,1,398,1,398,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,400,1,400,1,400,1,400,1,400,1,400,1,400,1,400,1,400,1,400,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,402,1,402,1,402,1,402,1,402,1,402,1,402,1,403,1,403,1,403,1,403,1,403,1,403,1,403,1,403,1,403,1,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,404,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,405,1,406,1,406,1,406,1,406,1,407,1,407,1,407,1,407,1,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,1,409,1,409,1,409,1,409,1,409,1,409,1,409,1,409,1,410,1,410,1,410,1,410,1,410,1,410,1,411,1,411,1,411,1,411,1,411,1,411,1,411,1,412,1,412,1,412,1,412,1,412,1,412,1,412,1,413,1,413,1,413,1,413,1,413,1,414,1,414,1,414,1,414,1,414,1,414,1,415,1,415,1,415,1,415,1,415,1,415,1,415,1,416,1,416,1,416,1,416,1,416,1,416,1,417,1,417,1,417,1,417,1,417,1,417,1,417,1,417,1,417,1,418,1,418,1,418,1,418,1,418,1,418,1,418,1,418,1,418,1,418,1,419,1,419,1,419,1,419,1,419,1,419,1,419,1,420,1,420,1,420,1,420,1,420,1,420,1,420,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,421,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,422,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,423,1,424,1,424,1,424,1,424,1,424,1,425,1,425,1,425,1,425,1,425,1,425,1,425,1,426,1,426,1,426,1,426,1,426,1,426,1,426,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,427,1,428,1,428,1,428,1,428,1,428,1,428,1,428,1,429,1,429,1,429,1,429,1,429,1,429,1,430,1,430,1,430,1,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,432,1,433,1,433,1,433,1,433,1,433,1,433,1,433,1,433,1,434,1,434,1,434,1,434,1,434,1,434,1,435,1,435,1,435,1,435,1,435,1,436,1,436,1,436,1,436,1,436,1,436,1,436,1,436,1,436,1,437,1,437,1,437,1,437,1,437,1,437,1,437,1,437,1,438,1,438,1,438,1,438,1,438,1,438,1,438,1,439,1,439,1,439,1,439,1,439,1,439,1,439,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,440,1,441,1,441,1,441,1,441,1,441,1,441,1,441,1,441,1,442,1,442,1,442,1,442,1,442,1,443,1,443,1,443,1,443,1,443,1,444,1,444,1,444,1,444,1,444,1,444,1,444,1,444,1,445,1,445,1,445,1,445,1,445,1,446,1,446,1,446,1,446,1,446,1,446,1,447,1,447,1,447,1,447,1,447,1,447,1,447,1,447,1,447,1,447,1,447,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,449,1,449,1,449,1,449,1,449,1,449,1,449,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,450,1,451,1,451,1,451,1,451,1,451,1,451,1,451,1,451,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,452,1,453,1,453,1,453,1,453,1,453,1,453,1,453,1,453,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,454,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,455,1,456,1,456,1,456,1,456,1,456,1,456,1,456,1,456,1,456,1,457,1,457,1,457,1,457,1,457,1,457,1,457,1,457,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,458,1,459,1,459,1,459,1,459,1,459,1,459,1,459,1,459,1,460,1,460,1,460,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,461,1,462,1,462,1,462,1,462,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,463,1,464,1,464,1,464,1,464,1,464,1,464,1,464,1,465,1,465,1,465,1,465,1,465,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,466,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,467,1,468,1,468,1,468,1,468,1,468,1,469,1,469,1,469,1,469,1,469,1,469,1,469,1,470,1,470,1,470,1,470,1,470,1,471,1,471,1,471,1,471,1,471,1,471,1,472,1,472,1,472,1,472,1,472,1,473,1,473,1,473,1,473,1,473,1,473,1,474,1,474,1,474,1,474,1,474,1,474,1,474,1,474,1,475,1,475,1,475,1,475,1,475,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,477,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,478,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,479,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,480,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,481,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,482,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,483,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,484,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,485,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,486,1,487,1,487,1,487,1,487,1,487,1,487,1,487,1,487,1,487,1,487,1,487,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,488,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,489,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,490,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,491,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,492,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,493,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,494,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,496,1,496,1,496,1,496,1,496,1,496,1,496,1,496,1,496,1,496,1,496,1,496,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,498,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,499,1,500,1,500,1,500,1,500,1,500,1,500,1,500,1,500,1,500,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,501,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,502,1,503,1,503,1,503,1,503,1,503,1,503,1,503,1,504,1,504,1,504,1,504,1,504,1,504,1,504,1,505,1,505,1,505,1,505,1,505,1,505,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,506,1,507,1,507,1,507,1,507,1,508,1,508,1,508,1,508,1,508,1,508,1,508,1,508,1,509,1,509,1,509,1,509,1,509,1,509,1,509,1,509,1,509,1,510,1,510,1,510,1,510,1,510,1,511,1,511,1,511,1,511,1,511,1,511,1,511,1,512,1,512,1,512,1,512,1,512,1,512,1,513,1,513,1,513,1,513,1,513,1,513,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,514,1,515,1,515,1,515,1,515,1,515,1,516,1,516,1,516,1,516,1,516,1,516,1,517,1,517,1,517,1,517,1,517,1,517,1,518,1,518,1,518,1,518,1,518,1,518,1,519,1,519,1,519,1,519,1,519,1,520,1,520,1,520,1,521,1,521,1,521,1,521,1,521,1,521,1,521,1,521,1,522,1,522,1,522,1,522,1,522,1,522,1,522,1,523,1,523,1,523,1,523,1,523,1,523,1,523,1,523,1,524,1,524,1,524,1,524,1,524,1,524,1,524,1,524,1,524,1,524,1,524,1,525,1,525,1,525,1,525,1,525,1,525,1,525,1,525,1,525,1,525,1,525,1,526,1,526,1,526,1,526,1,526,1,526,1,526,1,527,1,527,1,527,1,527,1,527,1,527,1,527,1,527,1,527,1,527,1,528,1,528,1,528,1,528,1,528,1,529,1,529,1,529,1,529,1,529,1,530,1,530,1,530,1,530,1,530,1,530,1,530,1,530,1,531,1,531,1,531,1,531,1,531,1,531,1,531,1,532,1,532,1,532,1,533,1,533,1,533,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,534,1,535,1,535,1,535,1,535,1,536,1,536,1,536,1,536,1,536,1,536,1,536,1,537,1,537,1,537,1,537,1,537,1,538,1,538,1,538,1,538,1,538,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,539,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,540,1,541,1,541,1,541,1,541,1,541,1,541,1,542,1,542,1,542,1,542,1,542,1,542,1,542,1,542,1,542,1,542,1,543,1,543,1,543,1,543,1,543,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,544,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,545,1,546,1,546,1,546,1,546,1,546,1,546,1,546,1,547,1,547,1,547,1,547,1,547,1,547,1,547,1,547,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,548,1,549,1,549,1,549,1,549,1,549,1,549,1,549,1,549,1,549,1,549,1,549,1,550,1,550,1,550,1,550,1,550,1,550,1,550,1,550,1,550,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,551,1,552,1,552,1,552,1,552,1,552,1,552,1,553,1,553,1,553,1,553,1,553,1,553,1,553,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,554,1,555,1,555,1,555,1,555,1,555,1,555,1,555,1,555,1,556,1,556,1,556,1,556,1,556,1,557,1,557,1,557,1,557,1,557,1,557,1,557,1,557,1,557,1,558,1,558,1,558,1,558,1,558,1,558,1,558,1,558,1,558,1,558,1,559,1,559,1,559,1,559,1,559,1,559,1,559,1,559,1,560,1,560,1,560,1,560,1,560,1,560,1,560,1,560,1,560,1,561,1,561,1,561,1,561,1,561,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,562,1,563,1,563,1,563,1,563,1,563,1,563,1,563,1,563,1,564,1,564,1,564,1,564,1,564,1,564,1,564,1,564,1,564,1,565,1,565,1,565,1,565,1,565,1,565,1,566,1,566,1,566,1,566,1,566,1,566,1,567,1,567,1,567,1,567,1,567,1,567,1,568,1,568,1,568,1,568,1,568,1,568,1,568,1,568,1,569,1,569,1,569,1,569,1,569,1,569,1,569,1,569,1,570,1,570,1,570,1,570,1,570,1,570,1,570,1,570,1,570,1,570,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,571,1,572,1,572,1,572,1,572,1,572,1,572,1,572,1,572,1,572,1,572,1,573,1,573,1,573,1,573,1,573,1,573,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,574,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,575,1,576,1,576,1,576,1,576,1,576,1,576,1,576,1,576,1,576,1,577,1,577,1,577,1,577,1,577,1,577,1,577,1,578,1,578,1,578,1,578,1,578,1,578,1,578,1,578,1,578,1,578,1,578,1,579,1,579,1,579,1,579,1,579,1,579,1,579,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,580,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,581,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,582,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,583,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,584,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,585,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,586,1,587,1,587,1,587,1,587,1,587,1,587,1,587,1,587,1,587,1,587,1,587,1,587,1,588,1,588,1,588,1,588,1,588,1,588,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,589,1,590,1,590,1,590,1,590,1,590,1,590,1,590,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,591,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,592,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,593,1,594,1,594,1,594,1,594,1,594,1,594,1,595,1,595,1,595,1,595,1,595,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,596,1,597,1,597,1,597,1,597,1,597,1,597,1,597,1,598,1,598,1,598,1,598,1,598,1,598,1,598,1,599,1,599,1,599,1,599,1,600,1,600,1,600,1,600,1,600,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,601,1,602,1,602,1,602,1,602,1,602,1,602,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,603,1,604,1,604,1,604,1,604,1,604,1,604,1,604,1,604,1,604,1,605,1,605,1,605,1,605,1,605,1,605,1,605,1,605,1,605,1,606,1,606,1,606,1,606,1,606,1,606,1,606,1,606,1,606,1,607,1,607,1,607,1,607,1,607,1,607,1,607,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,608,1,609,1,609,1,609,1,609,1,609,1,609,1,610,1,610,1,610,1,610,1,610,1,610,1,610,1,611,1,611,1,611,1,611,1,611,1,611,1,611,1,612,1,612,1,612,1,612,1,612,1,612,1,612,1,613,1,613,1,613,1,613,1,613,1,613,1,614,1,614,1,614,1,614,1,614,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,615,1,616,1,616,1,616,1,616,1,616,1,616,1,616,1,617,1,617,1,617,1,617,1,617,1,618,1,618,1,618,1,618,1,618,1,618,1,618,1,619,1,619,1,619,1,619,1,619,1,619,1,619,1,620,1,620,1,620,1,620,1,620,1,620,1,620,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,621,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,622,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,623,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,624,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,625,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,626,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,627,1,628,1,628,1,628,1,628,1,628,1,628,1,629,1,629,1,629,1,629,1,629,1,629,1,629,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,630,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,631,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,632,1,633,1,633,1,633,1,633,1,633,1,633,1,633,1,634,1,634,1,634,1,634,1,634,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,635,1,636,1,636,1,636,1,636,1,636,1,636,1,636,1,637,1,637,1,637,1,637,1,637,1,637,1,637,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,638,1,639,1,639,1,639,1,639,1,639,1,639,1,639,1,639,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,640,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,641,1,642,1,642,1,642,1,642,1,642,1,642,1,642,1,642,1,643,1,643,1,643,1,643,1,643,1,643,1,644,1,644,1,644,1,644,1,644,1,644,1,644,1,644,1,644,1,645,1,645,1,645,1,645,1,645,1,645,1,645,1,645,1,645,1,645,1,645,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,646,1,647,1,647,1,647,1,647,1,647,1,647,1,647,1,647,1,647,1,647,1,647,1,648,1,648,1,648,1,648,1,648,1,648,1,648,1,648,1,648,1,648,1,649,1,649,1,649,1,649,1,649,1,649,1,649,1,649,1,649,1,649,1,650,1,650,1,650,1,650,1,650,1,651,1,651,1,651,1,651,1,651,1,651,1,651,1,651,1,651,1,651,1,651,1,651,1,652,1,652,1,652,1,652,1,652,1,652,1,652,1,652,1,652,1,652,1,652,1,652,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,653,1,654,1,654,1,654,1,654,1,654,1,654,1,654,1,654,1,654,1,655,1,655,1,655,1,655,1,655,1,655,1,655,1,655,1,655,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,656,1,657,1,657,1,657,1,657,1,657,1,657,1,657,1,657,1,657,1,657,1,658,1,658,1,658,1,658,1,658,1,658,1,658,1,658,1,658,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,659,1,660,1,660,1,660,1,660,1,660,1,660,1,660,1,660,1,660,1,660,1,661,1,661,1,661,1,661,1,661,1,661,1,661,1,661,1,662,1,662,1,662,1,662,1,662,1,662,1,663,1,663,1,663,1,663,1,663,1,663,1,663,1,663,1,664,1,664,1,664,1,664,1,664,1,665,1,665,1,665,1,665,1,665,1,665,1,665,1,665,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,666,1,667,1,667,1,667,1,667,1,667,1,667,1,667,1,667,1,667,1,667,1,667,1,668,1,668,1,668,1,668,1,668,1,668,1,669,1,669,1,669,1,669,1,669,1,669,1,669,1,669,1,669,1,669,1,670,1,670,1,670,1,670,1,670,1,671,1,671,1,671,1,671,1,671,1,671,1,671,1,671,1,672,1,672,1,672,1,672,1,672,1,672,1,672,1,672,1,673,1,673,1,673,1,673,1,673,1,674,1,674,1,674,1,674,1,674,1,674,1,674,1,674,1,674,1,675,1,675,1,675,1,675,1,675,1,675,1,675,1,676,1,676,1,676,1,676,1,676,1,676,1,676,1,676,1,677,1,677,1,677,1,677,1,677,1,678,1,678,1,678,1,678,1,678,1,678,1,678,1,678,1,679,1,679,1,679,1,679,1,679,1,680,1,680,1,680,1,681,1,681,1,681,1,681,1,682,1,682,1,682,1,682,1,683,1,683,1,683,1,683,1,684,1,684,1,684,1,684,1,685,1,685,1,685,1,685,1,686,1,686,1,686,1,686,1,687,1,687,1,687,1,687,1,687,1,687,1,687,1,687,1,687,1,688,1,688,1,688,1,688,1,688,1,688,1,688,1,688,1,689,1,689,1,689,1,689,1,689,1,689,1,690,1,690,1,690,1,690,1,691,1,691,1,691,1,691,1,691,1,692,1,692,1,692,1,692,1,692,1,692,1,692,1,693,1,693,1,693,1,693,1,693,1,694,1,694,1,694,1,694,1,694,1,694,1,694,1,695,1,695,1,695,1,695,1,695,1,695,1,695,1,695,1,695,1,695,1,695,1,695,1,696,1,696,1,696,1,696,1,696,1,696,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,697,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,698,1,699,1,699,1,699,1,699,1,699,1,699,1,699,1,699,1,699,1,699,1,699,1,699,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,700,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,701,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,702,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,703,1,704,1,704,1,704,1,704,1,704,1,704,1,704,1,704,1,704,1,704,1,704,1,704,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,705,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,706,1,707,1,707,1,707,1,707,1,707,1,707,1,707,1,707,1,708,1,708,1,708,1,708,1,708,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,709,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,710,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,711,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,712,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,713,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,714,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,715,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,716,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,717,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,718,1,719,1,719,1,719,1,719,1,719,1,719,1,719,1,720,1,720,1,720,1,720,1,720,1,720,1,720,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,721,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,722,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,723,1,724,1,724,1,724,1,724,1,724,1,724,1,724,1,724,1,724,1,724,1,724,1,725,1,725,1,725,1,725,1,725,1,725,1,725,1,725,1,726,1,726,1,726,1,726,1,726,1,726,1,726,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,727,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,728,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,729,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,730,1,731,1,731,1,731,1,731,1,731,1,731,1,731,1,731,1,731,1,731,1,731,1,732,1,732,1,732,1,732,1,732,1,732,1,732,1,732,1,733,1,733,1,733,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,734,1,735,3,735,9262,8,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,1,735,3,735,9289,8,735,1,736,1,736,1,736,1,736,1,736,1,736,1,736,1,736,1,736,1,736,1,736,1,736,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,737,1,738,1,738,1,738,1,738,1,738,1,738,1,738,1,738,1,738,1,739,1,739,1,739,1,739,1,739,1,739,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,740,1,741,1,741,1,741,1,741,1,741,1,741,1,741,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,742,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,743,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,744,1,745,1,745,1,745,1,745,1,745,1,745,1,745,1,745,1,745,1,746,1,746,1,746,1,746,1,746,1,746,1,747,1,747,1,747,1,747,1,747,1,748,1,748,1,748,1,748,1,748,1,748,1,748,1,749,1,749,1,749,1,749,1,749,1,749,1,749,1,750,1,750,1,750,1,750,1,750,1,750,1,750,1,751,1,751,1,751,1,751,1,751,1,751,1,751,1,752,1,752,1,752,1,752,1,752,1,752,1,753,1,753,1,753,1,753,1,753,1,753,1,754,1,754,1,754,1,754,1,754,1,754,1,755,1,755,1,755,1,755,1,755,1,755,1,756,1,756,1,756,1,756,1,756,1,757,1,757,1,757,1,757,1,757,1,757,1,757,1,757,1,758,1,758,1,758,1,758,1,758,1,758,1,759,1,759,1,759,1,759,1,759,1,759,1,759,1,759,1,760,1,760,1,760,1,760,1,760,1,760,1,760,1,761,1,761,1,761,1,761,1,762,1,762,1,762,1,762,1,762,1,762,1,762,1,762,1,763,1,763,1,763,1,763,1,763,1,763,1,764,1,764,1,764,1,764,1,764,1,764,1,764,1,765,1,765,1,765,1,765,1,766,1,766,1,766,1,766,1,766,1,766,1,766,1,766,1,767,1,767,1,767,1,767,1,767,1,767,1,768,1,768,1,768,1,768,1,768,1,768,1,769,1,769,1,769,1,769,1,769,1,769,1,769,1,770,1,770,1,770,1,770,1,770,1,770,1,770,1,771,1,771,1,771,1,771,1,771,1,771,1,771,1,772,1,772,1,772,1,772,1,772,1,772,1,772,1,773,1,773,1,773,1,773,1,773,1,773,1,774,1,774,1,774,1,774,1,774,1,774,1,774,1,774,1,774,1,775,1,775,1,775,1,775,1,775,1,776,1,776,1,776,1,776,1,776,1,777,1,777,1,777,1,777,1,777,1,777,1,777,1,778,1,778,1,778,1,778,1,778,1,779,1,779,1,779,1,779,1,779,1,780,1,780,1,780,1,780,1,780,1,780,1,781,1,781,1,781,1,781,1,781,1,781,1,781,1,781,1,782,1,782,1,782,1,782,1,782,1,782,1,783,1,783,1,783,1,783,1,783,1,784,1,784,1,784,1,784,1,784,1,784,1,784,1,784,1,785,1,785,1,785,1,785,1,785,1,785,1,785,1,785,1,786,1,786,1,786,1,786,1,786,1,786,1,786,1,786,1,787,1,787,1,787,1,787,1,787,1,787,1,787,1,787,1,787,1,787,1,788,1,788,1,788,1,788,1,789,1,789,1,789,1,789,1,789,1,789,1,789,1,789,1,789,1,789,1,790,1,790,1,790,1,790,1,790,1,790,1,790,1,791,1,791,1,791,1,791,1,791,1,791,1,791,1,792,1,792,1,792,1,792,1,792,1,792,1,792,1,792,1,792,1,792,1,792,1,793,1,793,1,793,1,793,1,793,1,793,1,793,1,794,1,794,1,794,1,794,1,795,1,795,1,795,1,795,1,795,1,795,1,795,1,795,1,795,1,795,1,795,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,796,1,797,1,797,1,797,1,797,1,797,1,797,1,797,1,798,1,798,1,798,1,798,1,798,1,798,1,798,1,798,1,798,1,798,1,798,1,799,1,799,1,799,1,799,1,799,1,799,1,799,1,799,1,799,1,799,1,800,1,800,1,800,1,800,1,800,1,800,1,800,1,800,1,800,1,800,1,800,1,800,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,801,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,802,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,803,1,804,1,804,1,804,1,804,1,804,1,804,1,804,1,804,1,804,1,805,1,805,1,805,1,805,1,805,1,805,1,805,1,805,1,805,1,805,1,805,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,806,1,807,1,807,1,807,1,807,1,807,1,807,1,807,1,807,1,807,1,807,1,807,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,808,1,809,1,809,1,809,1,809,1,809,1,809,1,810,1,810,1,810,1,810,1,810,1,810,1,810,1,810,1,811,1,811,1,811,1,811,1,812,1,812,1,812,1,812,1,812,1,813,1,813,1,813,1,813,1,813,1,813,1,813,1,813,1,814,1,814,1,814,1,814,1,814,1,814,1,814,1,814,1,815,1,815,1,815,1,815,1,815,1,815,1,815,1,815,1,815,1,815,1,815,1,815,1,816,1,816,1,816,1,816,1,816,1,816,1,816,1,816,1,816,1,816,1,816,1,816,1,817,1,817,1,817,1,817,1,817,1,818,1,818,1,818,1,818,1,818,1,818,1,818,1,818,1,818,1,819,1,819,1,819,1,819,1,819,1,820,1,820,1,820,1,820,1,820,1,820,1,820,1,821,1,821,1,821,1,821,1,821,1,821,1,822,1,822,1,822,1,822,1,822,1,822,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,823,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,824,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,825,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,826,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,827,1,828,1,828,1,828,1,828,1,828,1,829,1,829,1,829,1,829,1,829,1,829,1,830,1,830,1,830,1,830,1,830,1,830,1,830,1,830,1,830,1,830,1,831,1,831,1,831,1,831,1,832,1,832,1,832,1,832,1,832,1,832,1,832,1,832,1,832,1,832,1,833,1,833,1,833,1,833,1,833,1,833,1,833,1,833,1,833,1,833,1,833,1,834,1,834,1,834,1,834,1,834,1,834,1,834,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,835,1,836,1,836,1,836,1,836,1,836,1,837,1,837,1,837,1,837,1,837,1,837,1,837,1,837,1,838,1,838,1,838,1,838,1,838,1,838,1,838,1,838,1,838,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,839,1,840,1,840,1,840,1,840,1,840,1,840,1,840,1,840,1,841,1,841,1,841,1,841,1,841,1,841,1,841,1,841,1,841,1,841,1,841,1,841,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,842,1,843,1,843,1,843,1,843,1,843,1,843,1,843,1,843,1,843,1,843,1,844,1,844,1,844,1,844,1,844,1,844,1,844,1,844,1,844,1,845,1,845,1,845,1,845,1,845,1,845,1,845,1,846,1,846,1,846,1,846,1,846,1,846,1,846,1,846,1,846,1,846,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,847,1,848,1,848,1,848,1,848,1,848,1,849,1,849,1,849,1,849,1,849,1,849,1,849,1,849,1,849,1,849,1,849,1,850,1,850,1,850,1,850,1,851,1,851,1,851,1,851,1,852,1,852,1,852,1,852,1,852,1,852,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,853,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,854,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,855,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,856,1,857,1,857,1,857,1,857,1,857,1,857,1,857,1,857,1,858,1,858,1,858,1,858,1,858,1,858,1,858,1,858,1,858,1,859,1,859,1,859,1,859,1,859,1,859,1,859,1,859,1,859,1,859,1,859,1,859,1,860,1,860,1,860,1,860,1,860,1,860,1,860,1,860,1,861,1,861,1,861,1,861,1,861,1,861,1,861,1,861,1,861,1,861,1,861,1,862,1,862,1,862,1,862,1,862,1,862,1,862,1,862,1,862,1,862,1,863,1,863,1,863,1,863,1,863,1,863,1,863,1,863,1,863,1,863,1,864,1,864,1,864,1,864,1,864,1,864,1,864,1,865,1,865,1,865,1,865,1,865,1,865,1,865,1,865,1,866,1,866,1,866,1,866,1,866,1,866,1,866,1,866,1,866,1,866,1,866,1,866,1,867,1,867,1,867,1,867,1,867,1,867,1,867,1,867,1,867,1,867,1,867,1,867,1,868,1,868,1,868,1,868,1,868,1,868,1,868,1,868,1,868,1,868,1,869,1,869,1,869,1,869,1,869,1,869,1,869,1,869,1,869,1,870,1,870,1,870,1,870,1,871,1,871,1,871,1,871,1,871,1,871,1,871,1,872,1,872,1,872,1,872,1,872,1,872,1,872,1,872,1,873,1,873,1,873,1,873,1,873,1,873,1,873,1,873,1,873,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,874,1,875,1,875,1,875,1,875,1,875,1,875,1,875,1,875,1,875,1,876,1,876,1,876,1,876,1,876,1,876,1,876,1,877,1,877,1,877,1,877,1,878,1,878,1,878,1,878,1,878,1,878,1,878,1,878,1,878,1,878,1,878,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,879,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,880,1,881,1,881,1,881,1,881,1,881,1,881,1,882,1,882,1,882,1,882,1,882,1,882,1,882,1,882,1,882,1,882,1,882,1,882,1,883,1,883,1,883,1,883,1,883,1,883,1,884,1,884,1,884,1,884,1,884,1,884,1,884,1,885,1,885,1,885,1,885,1,885,1,885,1,885,1,885,1,885,1,885,1,885,1,886,1,886,1,886,1,886,1,886,1,886,1,886,1,886,1,886,1,886,1,886,1,886,1,887,1,887,1,887,1,887,1,887,1,887,1,887,1,887,1,887,1,887,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,888,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,889,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,890,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,891,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,892,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,893,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,894,1,895,1,895,1,895,1,895,1,895,1,895,1,895,1,895,1,895,1,895,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,896,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,897,1,898,1,898,1,898,1,898,1,898,1,898,1,898,1,898,1,898,1,898,1,898,1,898,1,899,1,899,1,899,1,899,1,899,1,899,1,899,1,899,1,899,1,899,1,899,1,900,1,900,1,900,1,900,1,900,1,900,1,900,1,900,1,900,1,901,1,901,1,901,1,901,1,901,1,901,1,901,1,901,1,902,1,902,1,902,1,902,1,902,1,902,1,902,1,902,1,902,1,903,1,903,1,903,1,903,1,903,1,903,1,903,1,903,1,903,1,903,1,903,1,903,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,904,1,905,1,905,1,905,1,905,1,906,1,906,1,906,1,906,1,906,1,906,1,906,1,907,1,907,1,907,1,907,1,907,1,907,1,907,1,907,1,907,1,907,1,907,1,908,1,908,1,908,1,908,1,908,1,908,1,908,1,908,1,908,1,908,1,908,1,909,1,909,1,909,1,909,1,909,1,909,1,909,1,909,1,909,1,909,1,910,1,910,1,910,1,910,1,910,1,910,1,910,1,910,1,910,1,910,1,911,1,911,1,911,1,911,1,911,1,911,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,912,1,913,1,913,1,913,1,913,1,913,1,913,1,913,1,913,1,913,1,913,1,913,1,914,1,914,1,914,1,914,1,914,1,914,1,914,1,914,1,914,1,915,1,915,1,915,1,915,1,915,1,915,1,915,1,915,1,916,1,916,1,916,1,916,1,916,1,916,1,916,1,917,1,917,1,917,1,917,1,917,1,917,1,917,1,917,1,917,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,918,1,919,1,919,1,919,1,919,1,919,1,919,1,919,1,919,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,920,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,921,1,922,1,922,1,922,1,922,1,922,1,922,1,922,1,922,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,923,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,924,1,925,1,925,1,925,1,925,1,925,1,925,1,926,1,926,1,926,1,926,1,926,1,926,1,927,1,927,1,927,1,927,1,927,1,927,1,927,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,928,1,929,1,929,1,929,1,929,1,929,1,929,1,929,1,929,1,929,1,929,1,929,1,929,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,930,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,931,1,932,1,932,1,932,1,933,1,933,1,933,1,933,1,933,1,933,1,933,1,933,1,933,1,933,1,934,1,934,1,934,1,934,1,934,1,934,1,934,1,935,1,935,1,935,1,935,1,936,1,936,1,936,1,936,1,936,1,936,1,937,1,937,1,937,1,937,1,937,1,938,1,938,1,938,1,938,1,938,1,938,1,939,1,939,1,939,1,939,1,939,1,940,1,940,1,940,1,940,1,940,1,940,1,941,1,941,1,941,1,941,1,941,1,941,1,941,1,941,1,941,1,942,1,942,1,942,1,942,1,942,1,942,1,942,1,942,1,942,1,943,1,943,1,943,1,943,1,943,1,943,1,943,1,943,1,943,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,944,1,945,1,945,1,945,1,945,1,945,1,945,1,945,1,945,1,945,1,945,1,945,1,945,1,946,1,946,1,946,1,946,1,946,1,946,1,946,1,946,1,946,1,946,1,946,1,946,1,947,1,947,1,947,1,947,1,947,1,947,1,947,1,947,1,947,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,948,1,949,1,949,1,949,1,949,1,949,1,949,1,949,1,949,1,949,1,949,1,949,1,949,1,950,1,950,1,950,1,950,1,950,1,950,1,950,1,950,1,950,1,950,1,950,1,951,1,951,1,951,1,951,1,951,1,951,1,951,1,951,1,951,1,951,1,952,1,952,1,952,1,952,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,953,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,954,1,955,1,955,1,955,1,955,1,955,1,955,1,955,1,955,1,955,1,955,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,956,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,957,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,958,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,959,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,960,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,961,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,962,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,963,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,964,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,965,1,966,1,966,1,966,1,966,1,966,1,966,1,966,1,966,1,966,1,966,1,966,1,967,1,967,1,967,1,967,1,967,1,967,1,967,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,968,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,969,1,970,1,970,1,970,1,970,1,970,1,970,1,970,1,970,1,970,1,970,1,971,1,971,1,971,1,971,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,972,1,973,1,973,1,973,1,973,1,974,1,974,1,974,1,974,1,974,1,974,1,974,1,974,1,974,1,975,1,975,1,975,1,975,1,975,1,975,1,975,1,975,1,975,1,975,1,975,1,976,1,976,1,976,1,976,1,976,1,976,1,976,1,976,1,976,1,976,1,976,1,976,1,977,1,977,1,977,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,978,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,979,1,980,1,980,1,980,1,980,1,980,1,980,1,980,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,981,1,982,1,982,1,982,1,982,1,982,1,982,1,982,1,982,1,982,1,982,1,982,1,982,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,983,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,984,1,985,1,985,1,985,1,985,1,986,1,986,1,986,1,986,1,986,1,986,1,987,1,987,1,987,1,987,1,987,1,987,1,988,1,988,1,988,1,988,1,988,1,988,1,988,1,988,1,989,1,989,1,989,1,989,1,989,1,990,1,990,1,990,1,990,1,990,1,990,1,990,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,991,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,992,1,993,1,993,1,993,1,993,1,993,1,993,1,993,1,993,1,994,1,994,1,994,1,994,1,994,1,994,1,995,1,995,1,995,1,995,1,995,1,995,1,995,1,995,1,995,1,995,1,996,1,996,1,996,1,996,1,996,1,997,1,997,1,997,1,997,1,997,1,997,1,998,1,998,1,998,1,998,1,998,1,998,1,998,1,998,1,998,1,998,1,998,1,998,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,999,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1e3,1,1001,1,1001,1,1001,1,1001,1,1002,1,1002,1,1002,1,1002,1,1002,1,1003,1,1003,1,1003,1,1003,1,1003,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1004,1,1005,1,1005,1,1005,1,1005,1,1005,1,1006,1,1006,1,1006,1,1006,1,1007,1,1007,1,1007,1,1007,1,1007,1,1007,1,1008,1,1008,1,1008,1,1008,1,1008,1,1008,1,1008,1,1008,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1009,1,1010,1,1010,1,1010,1,1010,1,1010,1,1011,1,1011,1,1011,1,1011,1,1011,1,1012,1,1012,1,1012,1,1012,1,1012,1,1012,1,1012,1,1012,1,1012,1,1012,1,1012,1,1013,1,1013,1,1013,1,1013,1,1013,1,1013,1,1013,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1014,1,1015,1,1015,1,1015,1,1015,1,1015,1,1015,1,1015,1,1015,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1016,1,1017,1,1017,1,1017,1,1017,1,1017,1,1017,1,1017,1,1017,1,1017,1,1017,1,1018,1,1018,1,1018,1,1018,1,1018,1,1018,1,1018,1,1018,1,1018,1,1019,1,1019,1,1019,1,1019,1,1019,1,1019,1,1019,1,1019,1,1019,1,1020,1,1020,1,1020,1,1020,1,1020,1,1020,1,1020,1,1020,1,1020,1,1020,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1021,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1022,1,1023,1,1023,1,1023,1,1023,1,1023,1,1023,1,1023,1,1023,1,1023,1,1023,1,1023,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1024,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1025,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1026,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1027,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1028,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1029,1,1030,1,1030,1,1030,1,1030,1,1030,1,1030,1,1030,1,1030,1,1030,1,1030,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1031,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1032,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1033,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1034,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1035,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1036,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1037,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1038,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1039,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1040,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1041,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1042,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1043,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1044,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1045,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1046,1,1047,1,1047,1,1047,1,1047,1,1047,1,1047,1,1047,1,1047,1,1047,1,1047,1,1047,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1048,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1049,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1050,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1051,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1052,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1053,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1054,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1055,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1056,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1057,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1058,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1059,1,1060,1,1060,1,1060,1,1060,1,1060,1,1060,1,1060,1,1060,1,1060,1,1060,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1061,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1062,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1063,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1064,1,1065,1,1065,1,1065,1,1065,1,1065,1,1065,1,1065,1,1065,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1066,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1067,1,1068,1,1068,1,1068,1,1068,1,1068,1,1068,1,1068,1,1068,1,1068,1,1068,1,1068,1,1069,1,1069,1,1069,1,1069,1,1069,1,1069,1,1069,1,1069,1,1069,1,1070,1,1070,1,1070,1,1070,1,1070,1,1070,1,1070,1,1070,1,1070,1,1070,1,1071,1,1071,1,1071,1,1071,1,1071,1,1072,1,1072,1,1072,1,1072,1,1072,1,1073,1,1073,1,1073,1,1073,1,1073,1,1073,1,1073,1,1073,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1074,1,1075,1,1075,1,1075,1,1075,1,1075,1,1075,1,1075,1,1075,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1076,1,1077,1,1077,1,1077,1,1077,1,1078,1,1078,1,1078,1,1078,1,1078,1,1078,1,1078,1,1078,1,1078,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1079,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1080,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1081,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1082,1,1083,1,1083,1,1083,1,1083,1,1083,1,1083,1,1083,1,1083,1,1084,1,1084,1,1084,1,1084,1,1084,1,1084,1,1084,1,1084,1,1084,1,1084,1,1085,1,1085,1,1085,1,1085,1,1085,1,1085,1,1085,1,1085,1,1086,1,1086,1,1086,1,1086,1,1086,1,1086,1,1086,1,1086,1,1086,1,1086,1,1086,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1087,1,1088,1,1088,1,1088,1,1088,1,1088,1,1088,1,1089,1,1089,1,1089,1,1089,1,1089,1,1089,1,1089,1,1089,1,1089,1,1089,1,1089,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1090,1,1091,1,1091,1,1091,1,1091,1,1091,1,1091,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1092,1,1093,1,1093,1,1093,1,1093,1,1093,1,1093,1,1093,1,1093,1,1093,1,1093,1,1094,1,1094,1,1094,1,1094,1,1094,1,1094,1,1095,1,1095,1,1095,1,1095,1,1095,1,1096,1,1096,1,1096,1,1096,1,1096,1,1096,1,1096,1,1096,1,1096,1,1096,1,1096,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1097,1,1098,1,1098,1,1098,1,1098,1,1098,1,1098,1,1098,1,1098,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1099,1,1100,1,1100,1,1100,1,1100,1,1100,1,1100,1,1100,1,1100,1,1101,1,1101,1,1101,1,1101,1,1101,1,1101,1,1101,1,1101,1,1101,1,1101,1,1101,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1102,1,1103,1,1103,1,1103,1,1103,1,1103,1,1103,1,1103,1,1104,1,1104,1,1104,1,1104,1,1104,1,1104,1,1104,1,1104,1,1104,1,1105,1,1105,1,1106,1,1106,1,1107,1,1107,1,1107,1,1108,1,1108,1,1108,1,1109,1,1109,1,1109,1,1110,1,1110,1,1110,1,1111,1,1111,1,1111,1,1112,1,1112,1,1112,1,1113,1,1113,1,1113,1,1114,1,1114,1,1114,1,1115,1,1115,1,1115,1,1116,1,1116,1,1117,1,1117,1,1118,1,1118,1,1119,1,1119,1,1120,1,1120,1,1121,1,1121,1,1121,1,1121,1,1122,1,1122,1,1122,1,1122,1,1123,1,1123,1,1124,1,1124,1,1125,1,1125,1,1126,1,1126,1,1127,1,1127,1,1128,1,1128,1,1129,1,1129,1,1130,1,1130,1,1131,1,1131,1,1132,1,1132,1,1133,1,1133,1,1134,1,1134,1,1135,1,1135,1,1136,1,1136,1,1137,1,1137,1,1138,1,1138,1,1139,1,1139,1,1140,1,1140,1,1141,1,1141,1,1142,1,1142,1,1143,1,1143,1,1144,1,1144,1,1144,3,1144,13422,8,1144,1,1145,1,1145,1,1145,1,1145,1,1146,4,1146,13429,8,1146,11,1146,12,1146,13430,1,1146,1,1146,1,1147,1,1147,1,1147,1,1148,1,1148,1,1148,3,1148,13441,8,1148,1,1149,4,1149,13444,8,1149,11,1149,12,1149,13445,1,1150,1,1150,1,1150,1,1150,1,1150,4,1150,13453,8,1150,11,1150,12,1150,13454,1,1150,1,1150,1,1150,1,1150,1,1150,1,1150,4,1150,13463,8,1150,11,1150,12,1150,13464,3,1150,13467,8,1150,1,1151,5,1151,13470,8,1151,10,1151,12,1151,13473,9,1151,1,1151,1,1151,4,1151,13477,8,1151,11,1151,12,1151,13478,1,1151,4,1151,13482,8,1151,11,1151,12,1151,13483,1,1151,1,1151,1,1151,1,1151,5,1151,13490,8,1151,10,1151,12,1151,13493,9,1151,1,1151,1,1151,4,1151,13497,8,1151,11,1151,12,1151,13498,1,1151,1,1151,1,1151,4,1151,13504,8,1151,11,1151,12,1151,13505,1,1151,1,1151,3,1151,13510,8,1151,1,1152,1,1152,1,1152,1,1153,1,1153,1,1154,1,1154,1,1154,1,1155,1,1155,1,1155,1,1156,1,1156,1,1157,1,1157,1,1158,1,1158,1,1158,1,1159,1,1159,1,1159,4,1159,13533,8,1159,11,1159,12,1159,13534,3,1159,13537,8,1159,1,1160,1,1160,1,1160,4,1160,13542,8,1160,11,1160,12,1160,13543,1,1160,3,1160,13547,8,1160,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,1,1161,3,1161,13590,8,1161,1,1162,1,1162,3,1162,13594,8,1162,1,1162,4,1162,13597,8,1162,11,1162,12,1162,13598,1,1163,5,1163,13602,8,1163,10,1163,12,1163,13605,9,1163,1,1163,4,1163,13608,8,1163,11,1163,12,1163,13609,1,1163,5,1163,13613,8,1163,10,1163,12,1163,13616,9,1163,1,1164,1,1164,1,1164,1,1164,1,1164,1,1164,5,1164,13624,8,1164,10,1164,12,1164,13627,9,1164,1,1164,1,1164,1,1165,1,1165,1,1165,1,1165,1,1165,1,1165,5,1165,13637,8,1165,10,1165,12,1165,13640,9,1165,1,1165,1,1165,1,1166,1,1166,1,1166,1,1166,5,1166,13648,8,1166,10,1166,12,1166,13651,9,1166,1,1166,1,1166,1,1167,1,1167,1,1168,1,1168,1,1169,1,1169,1,1169,4,1169,13662,8,1169,11,1169,12,1169,13663,1,1169,1,1169,1,1170,4,1170,13669,8,1170,11,1170,12,1170,13670,1,1170,1,1170,4,1170,13675,8,1170,11,1170,12,1170,13676,1,1170,5,1170,13680,8,1170,10,1170,12,1170,13683,9,1170,1,1170,1,1170,5,1170,13687,8,1170,10,1170,12,1170,13690,9,1170,1,1170,1,1170,4,1170,13694,8,1170,11,1170,12,1170,13695,3,1170,13698,8,1170,1,1171,1,1171,1,1171,1,1171,4,2359,2372,13603,13609,0,1172,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,102,205,103,207,104,209,105,211,106,213,107,215,108,217,109,219,110,221,111,223,112,225,113,227,114,229,115,231,116,233,117,235,118,237,119,239,120,241,121,243,122,245,123,247,124,249,125,251,126,253,127,255,128,257,129,259,130,261,131,263,132,265,133,267,134,269,135,271,136,273,137,275,138,277,139,279,140,281,141,283,142,285,143,287,144,289,145,291,146,293,147,295,148,297,149,299,150,301,151,303,152,305,153,307,154,309,155,311,156,313,157,315,158,317,159,319,160,321,161,323,162,325,163,327,164,329,165,331,166,333,167,335,168,337,169,339,170,341,171,343,172,345,173,347,174,349,175,351,176,353,177,355,178,357,179,359,180,361,181,363,182,365,183,367,184,369,185,371,186,373,187,375,188,377,189,379,190,381,191,383,192,385,193,387,194,389,195,391,196,393,197,395,198,397,199,399,200,401,201,403,202,405,203,407,204,409,205,411,206,413,207,415,208,417,209,419,210,421,211,423,212,425,213,427,214,429,215,431,216,433,217,435,218,437,219,439,220,441,221,443,222,445,223,447,224,449,225,451,226,453,227,455,228,457,229,459,230,461,231,463,232,465,233,467,234,469,235,471,236,473,237,475,238,477,239,479,240,481,241,483,242,485,243,487,244,489,245,491,246,493,247,495,248,497,249,499,250,501,251,503,252,505,253,507,254,509,255,511,256,513,257,515,258,517,259,519,260,521,261,523,262,525,263,527,264,529,265,531,266,533,267,535,268,537,269,539,270,541,271,543,272,545,273,547,274,549,275,551,276,553,277,555,278,557,279,559,280,561,281,563,282,565,283,567,284,569,285,571,286,573,287,575,288,577,289,579,290,581,291,583,292,585,293,587,294,589,295,591,296,593,297,595,298,597,299,599,300,601,301,603,302,605,303,607,304,609,305,611,306,613,307,615,308,617,309,619,310,621,311,623,312,625,313,627,314,629,315,631,316,633,317,635,318,637,319,639,320,641,321,643,322,645,323,647,324,649,325,651,326,653,327,655,328,657,329,659,330,661,331,663,332,665,333,667,334,669,335,671,336,673,337,675,338,677,339,679,340,681,341,683,342,685,343,687,344,689,345,691,346,693,347,695,348,697,349,699,350,701,351,703,352,705,353,707,354,709,355,711,356,713,357,715,358,717,359,719,360,721,361,723,362,725,363,727,364,729,365,731,366,733,367,735,368,737,369,739,370,741,371,743,372,745,373,747,374,749,375,751,376,753,377,755,378,757,379,759,380,761,381,763,382,765,383,767,384,769,385,771,386,773,387,775,388,777,389,779,390,781,391,783,392,785,393,787,394,789,395,791,396,793,397,795,398,797,399,799,400,801,401,803,402,805,403,807,404,809,405,811,406,813,407,815,408,817,409,819,410,821,411,823,412,825,413,827,414,829,415,831,416,833,417,835,418,837,419,839,420,841,421,843,422,845,423,847,424,849,425,851,426,853,427,855,428,857,429,859,430,861,431,863,432,865,433,867,434,869,435,871,436,873,437,875,438,877,439,879,440,881,441,883,442,885,443,887,444,889,445,891,446,893,447,895,448,897,449,899,450,901,451,903,452,905,453,907,454,909,455,911,456,913,457,915,458,917,459,919,460,921,461,923,462,925,463,927,464,929,465,931,466,933,467,935,468,937,469,939,470,941,471,943,472,945,473,947,474,949,475,951,476,953,477,955,478,957,479,959,480,961,481,963,482,965,483,967,484,969,485,971,486,973,487,975,488,977,489,979,490,981,491,983,492,985,493,987,494,989,495,991,496,993,497,995,498,997,499,999,500,1001,501,1003,502,1005,503,1007,504,1009,505,1011,506,1013,507,1015,508,1017,509,1019,510,1021,511,1023,512,1025,513,1027,514,1029,515,1031,516,1033,517,1035,518,1037,519,1039,520,1041,521,1043,522,1045,523,1047,524,1049,525,1051,526,1053,527,1055,528,1057,529,1059,530,1061,531,1063,532,1065,533,1067,534,1069,535,1071,536,1073,537,1075,538,1077,539,1079,540,1081,541,1083,542,1085,543,1087,544,1089,545,1091,546,1093,547,1095,548,1097,549,1099,550,1101,551,1103,552,1105,553,1107,554,1109,555,1111,556,1113,557,1115,558,1117,559,1119,560,1121,561,1123,562,1125,563,1127,564,1129,565,1131,566,1133,567,1135,568,1137,569,1139,570,1141,571,1143,572,1145,573,1147,574,1149,575,1151,576,1153,577,1155,578,1157,579,1159,580,1161,581,1163,582,1165,583,1167,584,1169,585,1171,586,1173,587,1175,588,1177,589,1179,590,1181,591,1183,592,1185,593,1187,594,1189,595,1191,596,1193,597,1195,598,1197,599,1199,600,1201,601,1203,602,1205,603,1207,604,1209,605,1211,606,1213,607,1215,608,1217,609,1219,610,1221,611,1223,612,1225,613,1227,614,1229,615,1231,616,1233,617,1235,618,1237,619,1239,620,1241,621,1243,622,1245,623,1247,624,1249,625,1251,626,1253,627,1255,628,1257,629,1259,630,1261,631,1263,632,1265,633,1267,634,1269,635,1271,636,1273,637,1275,638,1277,639,1279,640,1281,641,1283,642,1285,643,1287,644,1289,645,1291,646,1293,647,1295,648,1297,649,1299,650,1301,651,1303,652,1305,653,1307,654,1309,655,1311,656,1313,657,1315,658,1317,659,1319,660,1321,661,1323,662,1325,663,1327,664,1329,665,1331,666,1333,667,1335,668,1337,669,1339,670,1341,671,1343,672,1345,673,1347,674,1349,675,1351,676,1353,677,1355,678,1357,679,1359,680,1361,681,1363,682,1365,683,1367,684,1369,685,1371,686,1373,687,1375,688,1377,689,1379,690,1381,691,1383,692,1385,693,1387,694,1389,695,1391,696,1393,697,1395,698,1397,699,1399,700,1401,701,1403,702,1405,703,1407,704,1409,705,1411,706,1413,707,1415,708,1417,709,1419,710,1421,711,1423,712,1425,713,1427,714,1429,715,1431,716,1433,717,1435,718,1437,719,1439,720,1441,721,1443,722,1445,723,1447,724,1449,725,1451,726,1453,727,1455,728,1457,729,1459,730,1461,731,1463,732,1465,733,1467,734,1469,735,1471,736,1473,737,1475,738,1477,739,1479,740,1481,741,1483,742,1485,743,1487,744,1489,745,1491,746,1493,747,1495,748,1497,749,1499,750,1501,751,1503,752,1505,753,1507,754,1509,755,1511,756,1513,757,1515,758,1517,759,1519,760,1521,761,1523,762,1525,763,1527,764,1529,765,1531,766,1533,767,1535,768,1537,769,1539,770,1541,771,1543,772,1545,773,1547,774,1549,775,1551,776,1553,777,1555,778,1557,779,1559,780,1561,781,1563,782,1565,783,1567,784,1569,785,1571,786,1573,787,1575,788,1577,789,1579,790,1581,791,1583,792,1585,793,1587,794,1589,795,1591,796,1593,797,1595,798,1597,799,1599,800,1601,801,1603,802,1605,803,1607,804,1609,805,1611,806,1613,807,1615,808,1617,809,1619,810,1621,811,1623,812,1625,813,1627,814,1629,815,1631,816,1633,817,1635,818,1637,819,1639,820,1641,821,1643,822,1645,823,1647,824,1649,825,1651,826,1653,827,1655,828,1657,829,1659,830,1661,831,1663,832,1665,833,1667,834,1669,835,1671,836,1673,837,1675,838,1677,839,1679,840,1681,841,1683,842,1685,843,1687,844,1689,845,1691,846,1693,847,1695,848,1697,849,1699,850,1701,851,1703,852,1705,853,1707,854,1709,855,1711,856,1713,857,1715,858,1717,859,1719,860,1721,861,1723,862,1725,863,1727,864,1729,865,1731,866,1733,867,1735,868,1737,869,1739,870,1741,871,1743,872,1745,873,1747,874,1749,875,1751,876,1753,877,1755,878,1757,879,1759,880,1761,881,1763,882,1765,883,1767,884,1769,885,1771,886,1773,887,1775,888,1777,889,1779,890,1781,891,1783,892,1785,893,1787,894,1789,895,1791,896,1793,897,1795,898,1797,899,1799,900,1801,901,1803,902,1805,903,1807,904,1809,905,1811,906,1813,907,1815,908,1817,909,1819,910,1821,911,1823,912,1825,913,1827,914,1829,915,1831,916,1833,917,1835,918,1837,919,1839,920,1841,921,1843,922,1845,923,1847,924,1849,925,1851,926,1853,927,1855,928,1857,929,1859,930,1861,931,1863,932,1865,933,1867,934,1869,935,1871,936,1873,937,1875,938,1877,939,1879,940,1881,941,1883,942,1885,943,1887,944,1889,945,1891,946,1893,947,1895,948,1897,949,1899,950,1901,951,1903,952,1905,953,1907,954,1909,955,1911,956,1913,957,1915,958,1917,959,1919,960,1921,961,1923,962,1925,963,1927,964,1929,965,1931,966,1933,967,1935,968,1937,969,1939,970,1941,971,1943,972,1945,973,1947,974,1949,975,1951,976,1953,977,1955,978,1957,979,1959,980,1961,981,1963,982,1965,983,1967,984,1969,985,1971,986,1973,987,1975,988,1977,989,1979,990,1981,991,1983,992,1985,993,1987,994,1989,995,1991,996,1993,997,1995,998,1997,999,1999,1e3,2001,1001,2003,1002,2005,1003,2007,1004,2009,1005,2011,1006,2013,1007,2015,1008,2017,1009,2019,1010,2021,1011,2023,1012,2025,1013,2027,1014,2029,1015,2031,1016,2033,1017,2035,1018,2037,1019,2039,1020,2041,1021,2043,1022,2045,1023,2047,1024,2049,1025,2051,1026,2053,1027,2055,1028,2057,1029,2059,1030,2061,1031,2063,1032,2065,1033,2067,1034,2069,1035,2071,1036,2073,1037,2075,1038,2077,1039,2079,1040,2081,1041,2083,1042,2085,1043,2087,1044,2089,1045,2091,1046,2093,1047,2095,1048,2097,1049,2099,1050,2101,1051,2103,1052,2105,1053,2107,1054,2109,1055,2111,1056,2113,1057,2115,1058,2117,1059,2119,1060,2121,1061,2123,1062,2125,1063,2127,1064,2129,1065,2131,1066,2133,1067,2135,1068,2137,1069,2139,1070,2141,1071,2143,1072,2145,1073,2147,1074,2149,1075,2151,1076,2153,1077,2155,1078,2157,1079,2159,1080,2161,1081,2163,1082,2165,1083,2167,1084,2169,1085,2171,1086,2173,1087,2175,1088,2177,1089,2179,1090,2181,1091,2183,1092,2185,1093,2187,1094,2189,1095,2191,1096,2193,1097,2195,1098,2197,1099,2199,1100,2201,1101,2203,1102,2205,1103,2207,1104,2209,1105,2211,1106,2213,1107,2215,1108,2217,1109,2219,1110,2221,1111,2223,1112,2225,1113,2227,1114,2229,1115,2231,1116,2233,1117,2235,1118,2237,1119,2239,1120,2241,1121,2243,1122,2245,1123,2247,1124,2249,1125,2251,1126,2253,1127,2255,1128,2257,1129,2259,1130,2261,1131,2263,1132,2265,1133,2267,1134,2269,1135,2271,1136,2273,1137,2275,1138,2277,1139,2279,1140,2281,1141,2283,1142,2285,1143,2287,1144,2289,0,2291,1145,2293,1146,2295,1147,2297,1148,2299,1149,2301,1150,2303,1151,2305,1152,2307,1153,2309,1154,2311,1155,2313,1156,2315,1157,2317,1158,2319,1159,2321,1160,2323,0,2325,0,2327,0,2329,0,2331,0,2333,0,2335,0,2337,0,2339,0,2341,0,2343,1161,1,0,42,3,0,9,10,13,13,32,32,2,0,9,9,32,32,2,0,10,10,13,13,2,0,65,65,97,97,2,0,68,68,100,100,2,0,76,76,108,108,2,0,84,84,116,116,2,0,69,69,101,101,2,0,82,82,114,114,2,0,87,87,119,119,2,0,89,89,121,121,2,0,83,83,115,115,2,0,78,78,110,110,2,0,90,90,122,122,2,0,67,67,99,99,2,0,73,73,105,105,2,0,66,66,98,98,2,0,85,85,117,117,2,0,70,70,102,102,2,0,79,79,111,111,2,0,72,72,104,104,2,0,75,75,107,107,2,0,71,71,103,103,2,0,77,77,109,109,2,0,86,86,118,118,2,0,80,80,112,112,2,0,88,88,120,120,2,0,74,74,106,106,2,0,81,81,113,113,8,0,71,71,75,75,77,77,84,84,103,103,107,107,109,109,116,116,7,0,36,36,46,46,48,57,65,90,95,95,97,122,128,65535,2,0,43,43,45,45,6,0,36,36,48,57,65,90,95,95,97,122,128,65535,5,0,36,36,65,90,95,95,97,122,128,65535,2,0,34,34,92,92,2,0,39,39,92,92,1,0,96,96,3,0,48,57,65,70,97,102,1,0,48,57,1,0,48,49,2,0,46,46,48,57,3,0,48,58,65,70,97,102,13786,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,697,1,0,0,0,0,699,1,0,0,0,0,701,1,0,0,0,0,703,1,0,0,0,0,705,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,711,1,0,0,0,0,713,1,0,0,0,0,715,1,0,0,0,0,717,1,0,0,0,0,719,1,0,0,0,0,721,1,0,0,0,0,723,1,0,0,0,0,725,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,0,731,1,0,0,0,0,733,1,0,0,0,0,735,1,0,0,0,0,737,1,0,0,0,0,739,1,0,0,0,0,741,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,747,1,0,0,0,0,749,1,0,0,0,0,751,1,0,0,0,0,753,1,0,0,0,0,755,1,0,0,0,0,757,1,0,0,0,0,759,1,0,0,0,0,761,1,0,0,0,0,763,1,0,0,0,0,765,1,0,0,0,0,767,1,0,0,0,0,769,1,0,0,0,0,771,1,0,0,0,0,773,1,0,0,0,0,775,1,0,0,0,0,777,1,0,0,0,0,779,1,0,0,0,0,781,1,0,0,0,0,783,1,0,0,0,0,785,1,0,0,0,0,787,1,0,0,0,0,789,1,0,0,0,0,791,1,0,0,0,0,793,1,0,0,0,0,795,1,0,0,0,0,797,1,0,0,0,0,799,1,0,0,0,0,801,1,0,0,0,0,803,1,0,0,0,0,805,1,0,0,0,0,807,1,0,0,0,0,809,1,0,0,0,0,811,1,0,0,0,0,813,1,0,0,0,0,815,1,0,0,0,0,817,1,0,0,0,0,819,1,0,0,0,0,821,1,0,0,0,0,823,1,0,0,0,0,825,1,0,0,0,0,827,1,0,0,0,0,829,1,0,0,0,0,831,1,0,0,0,0,833,1,0,0,0,0,835,1,0,0,0,0,837,1,0,0,0,0,839,1,0,0,0,0,841,1,0,0,0,0,843,1,0,0,0,0,845,1,0,0,0,0,847,1,0,0,0,0,849,1,0,0,0,0,851,1,0,0,0,0,853,1,0,0,0,0,855,1,0,0,0,0,857,1,0,0,0,0,859,1,0,0,0,0,861,1,0,0,0,0,863,1,0,0,0,0,865,1,0,0,0,0,867,1,0,0,0,0,869,1,0,0,0,0,871,1,0,0,0,0,873,1,0,0,0,0,875,1,0,0,0,0,877,1,0,0,0,0,879,1,0,0,0,0,881,1,0,0,0,0,883,1,0,0,0,0,885,1,0,0,0,0,887,1,0,0,0,0,889,1,0,0,0,0,891,1,0,0,0,0,893,1,0,0,0,0,895,1,0,0,0,0,897,1,0,0,0,0,899,1,0,0,0,0,901,1,0,0,0,0,903,1,0,0,0,0,905,1,0,0,0,0,907,1,0,0,0,0,909,1,0,0,0,0,911,1,0,0,0,0,913,1,0,0,0,0,915,1,0,0,0,0,917,1,0,0,0,0,919,1,0,0,0,0,921,1,0,0,0,0,923,1,0,0,0,0,925,1,0,0,0,0,927,1,0,0,0,0,929,1,0,0,0,0,931,1,0,0,0,0,933,1,0,0,0,0,935,1,0,0,0,0,937,1,0,0,0,0,939,1,0,0,0,0,941,1,0,0,0,0,943,1,0,0,0,0,945,1,0,0,0,0,947,1,0,0,0,0,949,1,0,0,0,0,951,1,0,0,0,0,953,1,0,0,0,0,955,1,0,0,0,0,957,1,0,0,0,0,959,1,0,0,0,0,961,1,0,0,0,0,963,1,0,0,0,0,965,1,0,0,0,0,967,1,0,0,0,0,969,1,0,0,0,0,971,1,0,0,0,0,973,1,0,0,0,0,975,1,0,0,0,0,977,1,0,0,0,0,979,1,0,0,0,0,981,1,0,0,0,0,983,1,0,0,0,0,985,1,0,0,0,0,987,1,0,0,0,0,989,1,0,0,0,0,991,1,0,0,0,0,993,1,0,0,0,0,995,1,0,0,0,0,997,1,0,0,0,0,999,1,0,0,0,0,1001,1,0,0,0,0,1003,1,0,0,0,0,1005,1,0,0,0,0,1007,1,0,0,0,0,1009,1,0,0,0,0,1011,1,0,0,0,0,1013,1,0,0,0,0,1015,1,0,0,0,0,1017,1,0,0,0,0,1019,1,0,0,0,0,1021,1,0,0,0,0,1023,1,0,0,0,0,1025,1,0,0,0,0,1027,1,0,0,0,0,1029,1,0,0,0,0,1031,1,0,0,0,0,1033,1,0,0,0,0,1035,1,0,0,0,0,1037,1,0,0,0,0,1039,1,0,0,0,0,1041,1,0,0,0,0,1043,1,0,0,0,0,1045,1,0,0,0,0,1047,1,0,0,0,0,1049,1,0,0,0,0,1051,1,0,0,0,0,1053,1,0,0,0,0,1055,1,0,0,0,0,1057,1,0,0,0,0,1059,1,0,0,0,0,1061,1,0,0,0,0,1063,1,0,0,0,0,1065,1,0,0,0,0,1067,1,0,0,0,0,1069,1,0,0,0,0,1071,1,0,0,0,0,1073,1,0,0,0,0,1075,1,0,0,0,0,1077,1,0,0,0,0,1079,1,0,0,0,0,1081,1,0,0,0,0,1083,1,0,0,0,0,1085,1,0,0,0,0,1087,1,0,0,0,0,1089,1,0,0,0,0,1091,1,0,0,0,0,1093,1,0,0,0,0,1095,1,0,0,0,0,1097,1,0,0,0,0,1099,1,0,0,0,0,1101,1,0,0,0,0,1103,1,0,0,0,0,1105,1,0,0,0,0,1107,1,0,0,0,0,1109,1,0,0,0,0,1111,1,0,0,0,0,1113,1,0,0,0,0,1115,1,0,0,0,0,1117,1,0,0,0,0,1119,1,0,0,0,0,1121,1,0,0,0,0,1123,1,0,0,0,0,1125,1,0,0,0,0,1127,1,0,0,0,0,1129,1,0,0,0,0,1131,1,0,0,0,0,1133,1,0,0,0,0,1135,1,0,0,0,0,1137,1,0,0,0,0,1139,1,0,0,0,0,1141,1,0,0,0,0,1143,1,0,0,0,0,1145,1,0,0,0,0,1147,1,0,0,0,0,1149,1,0,0,0,0,1151,1,0,0,0,0,1153,1,0,0,0,0,1155,1,0,0,0,0,1157,1,0,0,0,0,1159,1,0,0,0,0,1161,1,0,0,0,0,1163,1,0,0,0,0,1165,1,0,0,0,0,1167,1,0,0,0,0,1169,1,0,0,0,0,1171,1,0,0,0,0,1173,1,0,0,0,0,1175,1,0,0,0,0,1177,1,0,0,0,0,1179,1,0,0,0,0,1181,1,0,0,0,0,1183,1,0,0,0,0,1185,1,0,0,0,0,1187,1,0,0,0,0,1189,1,0,0,0,0,1191,1,0,0,0,0,1193,1,0,0,0,0,1195,1,0,0,0,0,1197,1,0,0,0,0,1199,1,0,0,0,0,1201,1,0,0,0,0,1203,1,0,0,0,0,1205,1,0,0,0,0,1207,1,0,0,0,0,1209,1,0,0,0,0,1211,1,0,0,0,0,1213,1,0,0,0,0,1215,1,0,0,0,0,1217,1,0,0,0,0,1219,1,0,0,0,0,1221,1,0,0,0,0,1223,1,0,0,0,0,1225,1,0,0,0,0,1227,1,0,0,0,0,1229,1,0,0,0,0,1231,1,0,0,0,0,1233,1,0,0,0,0,1235,1,0,0,0,0,1237,1,0,0,0,0,1239,1,0,0,0,0,1241,1,0,0,0,0,1243,1,0,0,0,0,1245,1,0,0,0,0,1247,1,0,0,0,0,1249,1,0,0,0,0,1251,1,0,0,0,0,1253,1,0,0,0,0,1255,1,0,0,0,0,1257,1,0,0,0,0,1259,1,0,0,0,0,1261,1,0,0,0,0,1263,1,0,0,0,0,1265,1,0,0,0,0,1267,1,0,0,0,0,1269,1,0,0,0,0,1271,1,0,0,0,0,1273,1,0,0,0,0,1275,1,0,0,0,0,1277,1,0,0,0,0,1279,1,0,0,0,0,1281,1,0,0,0,0,1283,1,0,0,0,0,1285,1,0,0,0,0,1287,1,0,0,0,0,1289,1,0,0,0,0,1291,1,0,0,0,0,1293,1,0,0,0,0,1295,1,0,0,0,0,1297,1,0,0,0,0,1299,1,0,0,0,0,1301,1,0,0,0,0,1303,1,0,0,0,0,1305,1,0,0,0,0,1307,1,0,0,0,0,1309,1,0,0,0,0,1311,1,0,0,0,0,1313,1,0,0,0,0,1315,1,0,0,0,0,1317,1,0,0,0,0,1319,1,0,0,0,0,1321,1,0,0,0,0,1323,1,0,0,0,0,1325,1,0,0,0,0,1327,1,0,0,0,0,1329,1,0,0,0,0,1331,1,0,0,0,0,1333,1,0,0,0,0,1335,1,0,0,0,0,1337,1,0,0,0,0,1339,1,0,0,0,0,1341,1,0,0,0,0,1343,1,0,0,0,0,1345,1,0,0,0,0,1347,1,0,0,0,0,1349,1,0,0,0,0,1351,1,0,0,0,0,1353,1,0,0,0,0,1355,1,0,0,0,0,1357,1,0,0,0,0,1359,1,0,0,0,0,1361,1,0,0,0,0,1363,1,0,0,0,0,1365,1,0,0,0,0,1367,1,0,0,0,0,1369,1,0,0,0,0,1371,1,0,0,0,0,1373,1,0,0,0,0,1375,1,0,0,0,0,1377,1,0,0,0,0,1379,1,0,0,0,0,1381,1,0,0,0,0,1383,1,0,0,0,0,1385,1,0,0,0,0,1387,1,0,0,0,0,1389,1,0,0,0,0,1391,1,0,0,0,0,1393,1,0,0,0,0,1395,1,0,0,0,0,1397,1,0,0,0,0,1399,1,0,0,0,0,1401,1,0,0,0,0,1403,1,0,0,0,0,1405,1,0,0,0,0,1407,1,0,0,0,0,1409,1,0,0,0,0,1411,1,0,0,0,0,1413,1,0,0,0,0,1415,1,0,0,0,0,1417,1,0,0,0,0,1419,1,0,0,0,0,1421,1,0,0,0,0,1423,1,0,0,0,0,1425,1,0,0,0,0,1427,1,0,0,0,0,1429,1,0,0,0,0,1431,1,0,0,0,0,1433,1,0,0,0,0,1435,1,0,0,0,0,1437,1,0,0,0,0,1439,1,0,0,0,0,1441,1,0,0,0,0,1443,1,0,0,0,0,1445,1,0,0,0,0,1447,1,0,0,0,0,1449,1,0,0,0,0,1451,1,0,0,0,0,1453,1,0,0,0,0,1455,1,0,0,0,0,1457,1,0,0,0,0,1459,1,0,0,0,0,1461,1,0,0,0,0,1463,1,0,0,0,0,1465,1,0,0,0,0,1467,1,0,0,0,0,1469,1,0,0,0,0,1471,1,0,0,0,0,1473,1,0,0,0,0,1475,1,0,0,0,0,1477,1,0,0,0,0,1479,1,0,0,0,0,1481,1,0,0,0,0,1483,1,0,0,0,0,1485,1,0,0,0,0,1487,1,0,0,0,0,1489,1,0,0,0,0,1491,1,0,0,0,0,1493,1,0,0,0,0,1495,1,0,0,0,0,1497,1,0,0,0,0,1499,1,0,0,0,0,1501,1,0,0,0,0,1503,1,0,0,0,0,1505,1,0,0,0,0,1507,1,0,0,0,0,1509,1,0,0,0,0,1511,1,0,0,0,0,1513,1,0,0,0,0,1515,1,0,0,0,0,1517,1,0,0,0,0,1519,1,0,0,0,0,1521,1,0,0,0,0,1523,1,0,0,0,0,1525,1,0,0,0,0,1527,1,0,0,0,0,1529,1,0,0,0,0,1531,1,0,0,0,0,1533,1,0,0,0,0,1535,1,0,0,0,0,1537,1,0,0,0,0,1539,1,0,0,0,0,1541,1,0,0,0,0,1543,1,0,0,0,0,1545,1,0,0,0,0,1547,1,0,0,0,0,1549,1,0,0,0,0,1551,1,0,0,0,0,1553,1,0,0,0,0,1555,1,0,0,0,0,1557,1,0,0,0,0,1559,1,0,0,0,0,1561,1,0,0,0,0,1563,1,0,0,0,0,1565,1,0,0,0,0,1567,1,0,0,0,0,1569,1,0,0,0,0,1571,1,0,0,0,0,1573,1,0,0,0,0,1575,1,0,0,0,0,1577,1,0,0,0,0,1579,1,0,0,0,0,1581,1,0,0,0,0,1583,1,0,0,0,0,1585,1,0,0,0,0,1587,1,0,0,0,0,1589,1,0,0,0,0,1591,1,0,0,0,0,1593,1,0,0,0,0,1595,1,0,0,0,0,1597,1,0,0,0,0,1599,1,0,0,0,0,1601,1,0,0,0,0,1603,1,0,0,0,0,1605,1,0,0,0,0,1607,1,0,0,0,0,1609,1,0,0,0,0,1611,1,0,0,0,0,1613,1,0,0,0,0,1615,1,0,0,0,0,1617,1,0,0,0,0,1619,1,0,0,0,0,1621,1,0,0,0,0,1623,1,0,0,0,0,1625,1,0,0,0,0,1627,1,0,0,0,0,1629,1,0,0,0,0,1631,1,0,0,0,0,1633,1,0,0,0,0,1635,1,0,0,0,0,1637,1,0,0,0,0,1639,1,0,0,0,0,1641,1,0,0,0,0,1643,1,0,0,0,0,1645,1,0,0,0,0,1647,1,0,0,0,0,1649,1,0,0,0,0,1651,1,0,0,0,0,1653,1,0,0,0,0,1655,1,0,0,0,0,1657,1,0,0,0,0,1659,1,0,0,0,0,1661,1,0,0,0,0,1663,1,0,0,0,0,1665,1,0,0,0,0,1667,1,0,0,0,0,1669,1,0,0,0,0,1671,1,0,0,0,0,1673,1,0,0,0,0,1675,1,0,0,0,0,1677,1,0,0,0,0,1679,1,0,0,0,0,1681,1,0,0,0,0,1683,1,0,0,0,0,1685,1,0,0,0,0,1687,1,0,0,0,0,1689,1,0,0,0,0,1691,1,0,0,0,0,1693,1,0,0,0,0,1695,1,0,0,0,0,1697,1,0,0,0,0,1699,1,0,0,0,0,1701,1,0,0,0,0,1703,1,0,0,0,0,1705,1,0,0,0,0,1707,1,0,0,0,0,1709,1,0,0,0,0,1711,1,0,0,0,0,1713,1,0,0,0,0,1715,1,0,0,0,0,1717,1,0,0,0,0,1719,1,0,0,0,0,1721,1,0,0,0,0,1723,1,0,0,0,0,1725,1,0,0,0,0,1727,1,0,0,0,0,1729,1,0,0,0,0,1731,1,0,0,0,0,1733,1,0,0,0,0,1735,1,0,0,0,0,1737,1,0,0,0,0,1739,1,0,0,0,0,1741,1,0,0,0,0,1743,1,0,0,0,0,1745,1,0,0,0,0,1747,1,0,0,0,0,1749,1,0,0,0,0,1751,1,0,0,0,0,1753,1,0,0,0,0,1755,1,0,0,0,0,1757,1,0,0,0,0,1759,1,0,0,0,0,1761,1,0,0,0,0,1763,1,0,0,0,0,1765,1,0,0,0,0,1767,1,0,0,0,0,1769,1,0,0,0,0,1771,1,0,0,0,0,1773,1,0,0,0,0,1775,1,0,0,0,0,1777,1,0,0,0,0,1779,1,0,0,0,0,1781,1,0,0,0,0,1783,1,0,0,0,0,1785,1,0,0,0,0,1787,1,0,0,0,0,1789,1,0,0,0,0,1791,1,0,0,0,0,1793,1,0,0,0,0,1795,1,0,0,0,0,1797,1,0,0,0,0,1799,1,0,0,0,0,1801,1,0,0,0,0,1803,1,0,0,0,0,1805,1,0,0,0,0,1807,1,0,0,0,0,1809,1,0,0,0,0,1811,1,0,0,0,0,1813,1,0,0,0,0,1815,1,0,0,0,0,1817,1,0,0,0,0,1819,1,0,0,0,0,1821,1,0,0,0,0,1823,1,0,0,0,0,1825,1,0,0,0,0,1827,1,0,0,0,0,1829,1,0,0,0,0,1831,1,0,0,0,0,1833,1,0,0,0,0,1835,1,0,0,0,0,1837,1,0,0,0,0,1839,1,0,0,0,0,1841,1,0,0,0,0,1843,1,0,0,0,0,1845,1,0,0,0,0,1847,1,0,0,0,0,1849,1,0,0,0,0,1851,1,0,0,0,0,1853,1,0,0,0,0,1855,1,0,0,0,0,1857,1,0,0,0,0,1859,1,0,0,0,0,1861,1,0,0,0,0,1863,1,0,0,0,0,1865,1,0,0,0,0,1867,1,0,0,0,0,1869,1,0,0,0,0,1871,1,0,0,0,0,1873,1,0,0,0,0,1875,1,0,0,0,0,1877,1,0,0,0,0,1879,1,0,0,0,0,1881,1,0,0,0,0,1883,1,0,0,0,0,1885,1,0,0,0,0,1887,1,0,0,0,0,1889,1,0,0,0,0,1891,1,0,0,0,0,1893,1,0,0,0,0,1895,1,0,0,0,0,1897,1,0,0,0,0,1899,1,0,0,0,0,1901,1,0,0,0,0,1903,1,0,0,0,0,1905,1,0,0,0,0,1907,1,0,0,0,0,1909,1,0,0,0,0,1911,1,0,0,0,0,1913,1,0,0,0,0,1915,1,0,0,0,0,1917,1,0,0,0,0,1919,1,0,0,0,0,1921,1,0,0,0,0,1923,1,0,0,0,0,1925,1,0,0,0,0,1927,1,0,0,0,0,1929,1,0,0,0,0,1931,1,0,0,0,0,1933,1,0,0,0,0,1935,1,0,0,0,0,1937,1,0,0,0,0,1939,1,0,0,0,0,1941,1,0,0,0,0,1943,1,0,0,0,0,1945,1,0,0,0,0,1947,1,0,0,0,0,1949,1,0,0,0,0,1951,1,0,0,0,0,1953,1,0,0,0,0,1955,1,0,0,0,0,1957,1,0,0,0,0,1959,1,0,0,0,0,1961,1,0,0,0,0,1963,1,0,0,0,0,1965,1,0,0,0,0,1967,1,0,0,0,0,1969,1,0,0,0,0,1971,1,0,0,0,0,1973,1,0,0,0,0,1975,1,0,0,0,0,1977,1,0,0,0,0,1979,1,0,0,0,0,1981,1,0,0,0,0,1983,1,0,0,0,0,1985,1,0,0,0,0,1987,1,0,0,0,0,1989,1,0,0,0,0,1991,1,0,0,0,0,1993,1,0,0,0,0,1995,1,0,0,0,0,1997,1,0,0,0,0,1999,1,0,0,0,0,2001,1,0,0,0,0,2003,1,0,0,0,0,2005,1,0,0,0,0,2007,1,0,0,0,0,2009,1,0,0,0,0,2011,1,0,0,0,0,2013,1,0,0,0,0,2015,1,0,0,0,0,2017,1,0,0,0,0,2019,1,0,0,0,0,2021,1,0,0,0,0,2023,1,0,0,0,0,2025,1,0,0,0,0,2027,1,0,0,0,0,2029,1,0,0,0,0,2031,1,0,0,0,0,2033,1,0,0,0,0,2035,1,0,0,0,0,2037,1,0,0,0,0,2039,1,0,0,0,0,2041,1,0,0,0,0,2043,1,0,0,0,0,2045,1,0,0,0,0,2047,1,0,0,0,0,2049,1,0,0,0,0,2051,1,0,0,0,0,2053,1,0,0,0,0,2055,1,0,0,0,0,2057,1,0,0,0,0,2059,1,0,0,0,0,2061,1,0,0,0,0,2063,1,0,0,0,0,2065,1,0,0,0,0,2067,1,0,0,0,0,2069,1,0,0,0,0,2071,1,0,0,0,0,2073,1,0,0,0,0,2075,1,0,0,0,0,2077,1,0,0,0,0,2079,1,0,0,0,0,2081,1,0,0,0,0,2083,1,0,0,0,0,2085,1,0,0,0,0,2087,1,0,0,0,0,2089,1,0,0,0,0,2091,1,0,0,0,0,2093,1,0,0,0,0,2095,1,0,0,0,0,2097,1,0,0,0,0,2099,1,0,0,0,0,2101,1,0,0,0,0,2103,1,0,0,0,0,2105,1,0,0,0,0,2107,1,0,0,0,0,2109,1,0,0,0,0,2111,1,0,0,0,0,2113,1,0,0,0,0,2115,1,0,0,0,0,2117,1,0,0,0,0,2119,1,0,0,0,0,2121,1,0,0,0,0,2123,1,0,0,0,0,2125,1,0,0,0,0,2127,1,0,0,0,0,2129,1,0,0,0,0,2131,1,0,0,0,0,2133,1,0,0,0,0,2135,1,0,0,0,0,2137,1,0,0,0,0,2139,1,0,0,0,0,2141,1,0,0,0,0,2143,1,0,0,0,0,2145,1,0,0,0,0,2147,1,0,0,0,0,2149,1,0,0,0,0,2151,1,0,0,0,0,2153,1,0,0,0,0,2155,1,0,0,0,0,2157,1,0,0,0,0,2159,1,0,0,0,0,2161,1,0,0,0,0,2163,1,0,0,0,0,2165,1,0,0,0,0,2167,1,0,0,0,0,2169,1,0,0,0,0,2171,1,0,0,0,0,2173,1,0,0,0,0,2175,1,0,0,0,0,2177,1,0,0,0,0,2179,1,0,0,0,0,2181,1,0,0,0,0,2183,1,0,0,0,0,2185,1,0,0,0,0,2187,1,0,0,0,0,2189,1,0,0,0,0,2191,1,0,0,0,0,2193,1,0,0,0,0,2195,1,0,0,0,0,2197,1,0,0,0,0,2199,1,0,0,0,0,2201,1,0,0,0,0,2203,1,0,0,0,0,2205,1,0,0,0,0,2207,1,0,0,0,0,2209,1,0,0,0,0,2211,1,0,0,0,0,2213,1,0,0,0,0,2215,1,0,0,0,0,2217,1,0,0,0,0,2219,1,0,0,0,0,2221,1,0,0,0,0,2223,1,0,0,0,0,2225,1,0,0,0,0,2227,1,0,0,0,0,2229,1,0,0,0,0,2231,1,0,0,0,0,2233,1,0,0,0,0,2235,1,0,0,0,0,2237,1,0,0,0,0,2239,1,0,0,0,0,2241,1,0,0,0,0,2243,1,0,0,0,0,2245,1,0,0,0,0,2247,1,0,0,0,0,2249,1,0,0,0,0,2251,1,0,0,0,0,2253,1,0,0,0,0,2255,1,0,0,0,0,2257,1,0,0,0,0,2259,1,0,0,0,0,2261,1,0,0,0,0,2263,1,0,0,0,0,2265,1,0,0,0,0,2267,1,0,0,0,0,2269,1,0,0,0,0,2271,1,0,0,0,0,2273,1,0,0,0,0,2275,1,0,0,0,0,2277,1,0,0,0,0,2279,1,0,0,0,0,2281,1,0,0,0,0,2283,1,0,0,0,0,2285,1,0,0,0,0,2287,1,0,0,0,0,2291,1,0,0,0,0,2293,1,0,0,0,0,2295,1,0,0,0,0,2297,1,0,0,0,0,2299,1,0,0,0,0,2301,1,0,0,0,0,2303,1,0,0,0,0,2305,1,0,0,0,0,2307,1,0,0,0,0,2309,1,0,0,0,0,2311,1,0,0,0,0,2313,1,0,0,0,0,2315,1,0,0,0,0,2317,1,0,0,0,0,2319,1,0,0,0,0,2321,1,0,0,0,0,2343,1,0,0,0,1,2346,1,0,0,0,3,2352,1,0,0,0,5,2366,1,0,0,0,7,2415,1,0,0,0,9,2419,1,0,0,0,11,2423,1,0,0,0,13,2427,1,0,0,0,15,2433,1,0,0,0,17,2440,1,0,0,0,19,2448,1,0,0,0,21,2452,1,0,0,0,23,2458,1,0,0,0,25,2461,1,0,0,0,27,2465,1,0,0,0,29,2475,1,0,0,0,31,2482,1,0,0,0,33,2490,1,0,0,0,35,2495,1,0,0,0,37,2503,1,0,0,0,39,2506,1,0,0,0,41,2511,1,0,0,0,43,2519,1,0,0,0,45,2524,1,0,0,0,47,2529,1,0,0,0,49,2536,1,0,0,0,51,2546,1,0,0,0,53,2552,1,0,0,0,55,2560,1,0,0,0,57,2567,1,0,0,0,59,2577,1,0,0,0,61,2588,1,0,0,0,63,2597,1,0,0,0,65,2605,1,0,0,0,67,2612,1,0,0,0,69,2618,1,0,0,0,71,2626,1,0,0,0,73,2639,1,0,0,0,75,2652,1,0,0,0,77,2659,1,0,0,0,79,2668,1,0,0,0,81,2678,1,0,0,0,83,2686,1,0,0,0,85,2694,1,0,0,0,87,2702,1,0,0,0,89,2709,1,0,0,0,91,2714,1,0,0,0,93,2723,1,0,0,0,95,2737,1,0,0,0,97,2749,1,0,0,0,99,2758,1,0,0,0,101,2770,1,0,0,0,103,2775,1,0,0,0,105,2780,1,0,0,0,107,2785,1,0,0,0,109,2792,1,0,0,0,111,2798,1,0,0,0,113,2807,1,0,0,0,115,2816,1,0,0,0,117,2824,1,0,0,0,119,2831,1,0,0,0,121,2838,1,0,0,0,123,2843,1,0,0,0,125,2851,1,0,0,0,127,2857,1,0,0,0,129,2863,1,0,0,0,131,2867,1,0,0,0,133,2873,1,0,0,0,135,2881,1,0,0,0,137,2886,1,0,0,0,139,2895,1,0,0,0,141,2905,1,0,0,0,143,2909,1,0,0,0,145,2915,1,0,0,0,147,2921,1,0,0,0,149,2928,1,0,0,0,151,2942,1,0,0,0,153,2952,1,0,0,0,155,2955,1,0,0,0,157,2962,1,0,0,0,159,2970,1,0,0,0,161,2973,1,0,0,0,163,2979,1,0,0,0,165,2986,1,0,0,0,167,2992,1,0,0,0,169,2998,1,0,0,0,171,3005,1,0,0,0,173,3014,1,0,0,0,175,3019,1,0,0,0,177,3022,1,0,0,0,179,3030,1,0,0,0,181,3035,1,0,0,0,183,3039,1,0,0,0,185,3044,1,0,0,0,187,3049,1,0,0,0,189,3057,1,0,0,0,191,3065,1,0,0,0,193,3071,1,0,0,0,195,3076,1,0,0,0,197,3081,1,0,0,0,199,3087,1,0,0,0,201,3094,1,0,0,0,203,3100,1,0,0,0,205,3105,1,0,0,0,207,3110,1,0,0,0,209,3117,1,0,0,0,211,3122,1,0,0,0,213,3135,1,0,0,0,215,3147,1,0,0,0,217,3177,1,0,0,0,219,3183,1,0,0,0,221,3192,1,0,0,0,223,3201,1,0,0,0,225,3210,1,0,0,0,227,3218,1,0,0,0,229,3222,1,0,0,0,231,3241,1,0,0,0,233,3246,1,0,0,0,235,3253,1,0,0,0,237,3256,1,0,0,0,239,3265,1,0,0,0,241,3272,1,0,0,0,243,3281,1,0,0,0,245,3292,1,0,0,0,247,3295,1,0,0,0,249,3301,1,0,0,0,251,3305,1,0,0,0,253,3311,1,0,0,0,255,3319,1,0,0,0,257,3324,1,0,0,0,259,3334,1,0,0,0,261,3342,1,0,0,0,263,3352,1,0,0,0,265,3358,1,0,0,0,267,3364,1,0,0,0,269,3369,1,0,0,0,271,3375,1,0,0,0,273,3386,1,0,0,0,275,3393,1,0,0,0,277,3401,1,0,0,0,279,3408,1,0,0,0,281,3415,1,0,0,0,283,3423,1,0,0,0,285,3431,1,0,0,0,287,3440,1,0,0,0,289,3449,1,0,0,0,291,3456,1,0,0,0,293,3463,1,0,0,0,295,3470,1,0,0,0,297,3476,1,0,0,0,299,3482,1,0,0,0,301,3489,1,0,0,0,303,3497,1,0,0,0,305,3504,1,0,0,0,307,3508,1,0,0,0,309,3518,1,0,0,0,311,3523,1,0,0,0,313,3530,1,0,0,0,315,3535,1,0,0,0,317,3554,1,0,0,0,319,3562,1,0,0,0,321,3566,1,0,0,0,323,3579,1,0,0,0,325,3588,1,0,0,0,327,3599,1,0,0,0,329,3614,1,0,0,0,331,3634,1,0,0,0,333,3651,1,0,0,0,335,3655,1,0,0,0,337,3663,1,0,0,0,339,3672,1,0,0,0,341,3682,1,0,0,0,343,3696,1,0,0,0,345,3702,1,0,0,0,347,3713,1,0,0,0,349,3718,1,0,0,0,351,3721,1,0,0,0,353,3730,1,0,0,0,355,3738,1,0,0,0,357,3743,1,0,0,0,359,3748,1,0,0,0,361,3754,1,0,0,0,363,3761,1,0,0,0,365,3768,1,0,0,0,367,3777,1,0,0,0,369,3784,1,0,0,0,371,3790,1,0,0,0,373,3794,1,0,0,0,375,3800,1,0,0,0,377,3807,1,0,0,0,379,3812,1,0,0,0,381,3818,1,0,0,0,383,3824,1,0,0,0,385,3829,1,0,0,0,387,3835,1,0,0,0,389,3839,1,0,0,0,391,3848,1,0,0,0,393,3856,1,0,0,0,395,3865,1,0,0,0,397,3875,1,0,0,0,399,3885,1,0,0,0,401,3889,1,0,0,0,403,3894,1,0,0,0,405,3899,1,0,0,0,407,3904,1,0,0,0,409,3909,1,0,0,0,411,3914,1,0,0,0,413,3922,1,0,0,0,415,3929,1,0,0,0,417,3934,1,0,0,0,419,3941,1,0,0,0,421,3951,1,0,0,0,423,3957,1,0,0,0,425,3964,1,0,0,0,427,3971,1,0,0,0,429,3979,1,0,0,0,431,3983,1,0,0,0,433,3991,1,0,0,0,435,3996,1,0,0,0,437,4001,1,0,0,0,439,4011,1,0,0,0,441,4020,1,0,0,0,443,4025,1,0,0,0,445,4030,1,0,0,0,447,4038,1,0,0,0,449,4047,1,0,0,0,451,4056,1,0,0,0,453,4063,1,0,0,0,455,4073,1,0,0,0,457,4082,1,0,0,0,459,4087,1,0,0,0,461,4098,1,0,0,0,463,4103,1,0,0,0,465,4112,1,0,0,0,467,4121,1,0,0,0,469,4126,1,0,0,0,471,4137,1,0,0,0,473,4146,1,0,0,0,475,4151,1,0,0,0,477,4159,1,0,0,0,479,4166,1,0,0,0,481,4177,1,0,0,0,483,4186,1,0,0,0,485,4197,1,0,0,0,487,4208,1,0,0,0,489,4220,1,0,0,0,491,4232,1,0,0,0,493,4246,1,0,0,0,495,4265,1,0,0,0,497,4284,1,0,0,0,499,4301,1,0,0,0,501,4317,1,0,0,0,503,4328,1,0,0,0,505,4342,1,0,0,0,507,4360,1,0,0,0,509,4378,1,0,0,0,511,4392,1,0,0,0,513,4411,1,0,0,0,515,4422,1,0,0,0,517,4435,1,0,0,0,519,4447,1,0,0,0,521,4457,1,0,0,0,523,4469,1,0,0,0,525,4480,1,0,0,0,527,4497,1,0,0,0,529,4517,1,0,0,0,531,4529,1,0,0,0,533,4544,1,0,0,0,535,4558,1,0,0,0,537,4570,1,0,0,0,539,4581,1,0,0,0,541,4593,1,0,0,0,543,4606,1,0,0,0,545,4624,1,0,0,0,547,4654,1,0,0,0,549,4666,1,0,0,0,551,4675,1,0,0,0,553,4693,1,0,0,0,555,4711,1,0,0,0,557,4722,1,0,0,0,559,4732,1,0,0,0,561,4745,1,0,0,0,563,4756,1,0,0,0,565,4767,1,0,0,0,567,4774,1,0,0,0,569,4785,1,0,0,0,571,4790,1,0,0,0,573,4794,1,0,0,0,575,4802,1,0,0,0,577,4809,1,0,0,0,579,4817,1,0,0,0,581,4823,1,0,0,0,583,4833,1,0,0,0,585,4844,1,0,0,0,587,4856,1,0,0,0,589,4869,1,0,0,0,591,4873,1,0,0,0,593,4884,1,0,0,0,595,4889,1,0,0,0,597,4893,1,0,0,0,599,4897,1,0,0,0,601,4903,1,0,0,0,603,4913,1,0,0,0,605,4926,1,0,0,0,607,4931,1,0,0,0,609,4942,1,0,0,0,611,4946,1,0,0,0,613,4953,1,0,0,0,615,4964,1,0,0,0,617,4976,1,0,0,0,619,4980,1,0,0,0,621,4988,1,0,0,0,623,4997,1,0,0,0,625,5006,1,0,0,0,627,5019,1,0,0,0,629,5032,1,0,0,0,631,5050,1,0,0,0,633,5060,1,0,0,0,635,5068,1,0,0,0,637,5076,1,0,0,0,639,5085,1,0,0,0,641,5094,1,0,0,0,643,5102,1,0,0,0,645,5117,1,0,0,0,647,5121,1,0,0,0,649,5130,1,0,0,0,651,5137,1,0,0,0,653,5147,1,0,0,0,655,5155,1,0,0,0,657,5160,1,0,0,0,659,5169,1,0,0,0,661,5178,1,0,0,0,663,5192,1,0,0,0,665,5200,1,0,0,0,667,5207,1,0,0,0,669,5213,1,0,0,0,671,5223,1,0,0,0,673,5233,1,0,0,0,675,5237,1,0,0,0,677,5240,1,0,0,0,679,5248,1,0,0,0,681,5259,1,0,0,0,683,5275,1,0,0,0,685,5290,1,0,0,0,687,5305,1,0,0,0,689,5311,1,0,0,0,691,5318,1,0,0,0,693,5322,1,0,0,0,695,5328,1,0,0,0,697,5333,1,0,0,0,699,5341,1,0,0,0,701,5347,1,0,0,0,703,5353,1,0,0,0,705,5362,1,0,0,0,707,5368,1,0,0,0,709,5376,1,0,0,0,711,5384,1,0,0,0,713,5393,1,0,0,0,715,5407,1,0,0,0,717,5414,1,0,0,0,719,5427,1,0,0,0,721,5434,1,0,0,0,723,5440,1,0,0,0,725,5451,1,0,0,0,727,5460,1,0,0,0,729,5465,1,0,0,0,731,5473,1,0,0,0,733,5487,1,0,0,0,735,5499,1,0,0,0,737,5507,1,0,0,0,739,5514,1,0,0,0,741,5522,1,0,0,0,743,5533,1,0,0,0,745,5544,1,0,0,0,747,5556,1,0,0,0,749,5567,1,0,0,0,751,5575,1,0,0,0,753,5586,1,0,0,0,755,5597,1,0,0,0,757,5616,1,0,0,0,759,5634,1,0,0,0,761,5650,1,0,0,0,763,5659,1,0,0,0,765,5667,1,0,0,0,767,5680,1,0,0,0,769,5685,1,0,0,0,771,5689,1,0,0,0,773,5695,1,0,0,0,775,5707,1,0,0,0,777,5712,1,0,0,0,779,5721,1,0,0,0,781,5732,1,0,0,0,783,5745,1,0,0,0,785,5753,1,0,0,0,787,5769,1,0,0,0,789,5782,1,0,0,0,791,5792,1,0,0,0,793,5800,1,0,0,0,795,5808,1,0,0,0,797,5813,1,0,0,0,799,5816,1,0,0,0,801,5825,1,0,0,0,803,5835,1,0,0,0,805,5843,1,0,0,0,807,5850,1,0,0,0,809,5860,1,0,0,0,811,5871,1,0,0,0,813,5889,1,0,0,0,815,5893,1,0,0,0,817,5898,1,0,0,0,819,5905,1,0,0,0,821,5913,1,0,0,0,823,5919,1,0,0,0,825,5926,1,0,0,0,827,5933,1,0,0,0,829,5938,1,0,0,0,831,5944,1,0,0,0,833,5951,1,0,0,0,835,5957,1,0,0,0,837,5966,1,0,0,0,839,5976,1,0,0,0,841,5983,1,0,0,0,843,5990,1,0,0,0,845,5999,1,0,0,0,847,6011,1,0,0,0,849,6033,1,0,0,0,851,6038,1,0,0,0,853,6045,1,0,0,0,855,6052,1,0,0,0,857,6068,1,0,0,0,859,6075,1,0,0,0,861,6081,1,0,0,0,863,6087,1,0,0,0,865,6093,1,0,0,0,867,6103,1,0,0,0,869,6111,1,0,0,0,871,6117,1,0,0,0,873,6122,1,0,0,0,875,6131,1,0,0,0,877,6139,1,0,0,0,879,6146,1,0,0,0,881,6153,1,0,0,0,883,6171,1,0,0,0,885,6179,1,0,0,0,887,6184,1,0,0,0,889,6189,1,0,0,0,891,6197,1,0,0,0,893,6202,1,0,0,0,895,6208,1,0,0,0,897,6219,1,0,0,0,899,6237,1,0,0,0,901,6244,1,0,0,0,903,6254,1,0,0,0,905,6262,1,0,0,0,907,6275,1,0,0,0,909,6283,1,0,0,0,911,6297,1,0,0,0,913,6305,1,0,0,0,915,6314,1,0,0,0,917,6322,1,0,0,0,919,6332,1,0,0,0,921,6340,1,0,0,0,923,6343,1,0,0,0,925,6353,1,0,0,0,927,6357,1,0,0,0,929,6367,1,0,0,0,931,6374,1,0,0,0,933,6379,1,0,0,0,935,6394,1,0,0,0,937,6403,1,0,0,0,939,6408,1,0,0,0,941,6415,1,0,0,0,943,6420,1,0,0,0,945,6426,1,0,0,0,947,6431,1,0,0,0,949,6437,1,0,0,0,951,6445,1,0,0,0,953,6450,1,0,0,0,955,6457,1,0,0,0,957,6478,1,0,0,0,959,6499,1,0,0,0,961,6512,1,0,0,0,963,6536,1,0,0,0,965,6548,1,0,0,0,967,6564,1,0,0,0,969,6579,1,0,0,0,971,6595,1,0,0,0,973,6607,1,0,0,0,975,6626,1,0,0,0,977,6637,1,0,0,0,979,6651,1,0,0,0,981,6669,1,0,0,0,983,6685,1,0,0,0,985,6703,1,0,0,0,987,6718,1,0,0,0,989,6737,1,0,0,0,991,6752,1,0,0,0,993,6771,1,0,0,0,995,6783,1,0,0,0,997,6808,1,0,0,0,999,6829,1,0,0,0,1001,6838,1,0,0,0,1003,6847,1,0,0,0,1005,6868,1,0,0,0,1007,6889,1,0,0,0,1009,6896,1,0,0,0,1011,6903,1,0,0,0,1013,6909,1,0,0,0,1015,6922,1,0,0,0,1017,6926,1,0,0,0,1019,6934,1,0,0,0,1021,6943,1,0,0,0,1023,6948,1,0,0,0,1025,6955,1,0,0,0,1027,6961,1,0,0,0,1029,6967,1,0,0,0,1031,6979,1,0,0,0,1033,6984,1,0,0,0,1035,6990,1,0,0,0,1037,6996,1,0,0,0,1039,7002,1,0,0,0,1041,7007,1,0,0,0,1043,7010,1,0,0,0,1045,7018,1,0,0,0,1047,7025,1,0,0,0,1049,7033,1,0,0,0,1051,7044,1,0,0,0,1053,7055,1,0,0,0,1055,7062,1,0,0,0,1057,7072,1,0,0,0,1059,7077,1,0,0,0,1061,7082,1,0,0,0,1063,7090,1,0,0,0,1065,7097,1,0,0,0,1067,7100,1,0,0,0,1069,7103,1,0,0,0,1071,7116,1,0,0,0,1073,7120,1,0,0,0,1075,7127,1,0,0,0,1077,7132,1,0,0,0,1079,7137,1,0,0,0,1081,7153,1,0,0,0,1083,7161,1,0,0,0,1085,7167,1,0,0,0,1087,7177,1,0,0,0,1089,7182,1,0,0,0,1091,7198,1,0,0,0,1093,7221,1,0,0,0,1095,7228,1,0,0,0,1097,7236,1,0,0,0,1099,7249,1,0,0,0,1101,7260,1,0,0,0,1103,7269,1,0,0,0,1105,7288,1,0,0,0,1107,7294,1,0,0,0,1109,7301,1,0,0,0,1111,7312,1,0,0,0,1113,7320,1,0,0,0,1115,7325,1,0,0,0,1117,7334,1,0,0,0,1119,7344,1,0,0,0,1121,7352,1,0,0,0,1123,7361,1,0,0,0,1125,7366,1,0,0,0,1127,7378,1,0,0,0,1129,7386,1,0,0,0,1131,7395,1,0,0,0,1133,7401,1,0,0,0,1135,7407,1,0,0,0,1137,7413,1,0,0,0,1139,7421,1,0,0,0,1141,7429,1,0,0,0,1143,7439,1,0,0,0,1145,7456,1,0,0,0,1147,7466,1,0,0,0,1149,7472,1,0,0,0,1151,7487,1,0,0,0,1153,7501,1,0,0,0,1155,7510,1,0,0,0,1157,7517,1,0,0,0,1159,7528,1,0,0,0,1161,7535,1,0,0,0,1163,7551,1,0,0,0,1165,7570,1,0,0,0,1167,7590,1,0,0,0,1169,7613,1,0,0,0,1171,7634,1,0,0,0,1173,7658,1,0,0,0,1175,7686,1,0,0,0,1177,7698,1,0,0,0,1179,7704,1,0,0,0,1181,7712,1,0,0,0,1183,7719,1,0,0,0,1185,7737,1,0,0,0,1187,7747,1,0,0,0,1189,7755,1,0,0,0,1191,7761,1,0,0,0,1193,7766,1,0,0,0,1195,7775,1,0,0,0,1197,7782,1,0,0,0,1199,7789,1,0,0,0,1201,7793,1,0,0,0,1203,7798,1,0,0,0,1205,7809,1,0,0,0,1207,7815,1,0,0,0,1209,7825,1,0,0,0,1211,7834,1,0,0,0,1213,7843,1,0,0,0,1215,7852,1,0,0,0,1217,7859,1,0,0,0,1219,7867,1,0,0,0,1221,7873,1,0,0,0,1223,7880,1,0,0,0,1225,7887,1,0,0,0,1227,7894,1,0,0,0,1229,7900,1,0,0,0,1231,7905,1,0,0,0,1233,7914,1,0,0,0,1235,7921,1,0,0,0,1237,7926,1,0,0,0,1239,7933,1,0,0,0,1241,7940,1,0,0,0,1243,7947,1,0,0,0,1245,7963,1,0,0,0,1247,7982,1,0,0,0,1249,7999,1,0,0,0,1251,8017,1,0,0,0,1253,8027,1,0,0,0,1255,8040,1,0,0,0,1257,8051,1,0,0,0,1259,8057,1,0,0,0,1261,8064,1,0,0,0,1263,8082,1,0,0,0,1265,8099,1,0,0,0,1267,8118,1,0,0,0,1269,8125,1,0,0,0,1271,8130,1,0,0,0,1273,8138,1,0,0,0,1275,8145,1,0,0,0,1277,8152,1,0,0,0,1279,8168,1,0,0,0,1281,8176,1,0,0,0,1283,8189,1,0,0,0,1285,8203,1,0,0,0,1287,8211,1,0,0,0,1289,8217,1,0,0,0,1291,8226,1,0,0,0,1293,8237,1,0,0,0,1295,8248,1,0,0,0,1297,8259,1,0,0,0,1299,8269,1,0,0,0,1301,8279,1,0,0,0,1303,8284,1,0,0,0,1305,8296,1,0,0,0,1307,8308,1,0,0,0,1309,8322,1,0,0,0,1311,8331,1,0,0,0,1313,8340,1,0,0,0,1315,8350,1,0,0,0,1317,8360,1,0,0,0,1319,8369,1,0,0,0,1321,8386,1,0,0,0,1323,8396,1,0,0,0,1325,8404,1,0,0,0,1327,8410,1,0,0,0,1329,8418,1,0,0,0,1331,8423,1,0,0,0,1333,8431,1,0,0,0,1335,8446,1,0,0,0,1337,8457,1,0,0,0,1339,8463,1,0,0,0,1341,8473,1,0,0,0,1343,8478,1,0,0,0,1345,8486,1,0,0,0,1347,8494,1,0,0,0,1349,8499,1,0,0,0,1351,8508,1,0,0,0,1353,8515,1,0,0,0,1355,8523,1,0,0,0,1357,8528,1,0,0,0,1359,8536,1,0,0,0,1361,8541,1,0,0,0,1363,8544,1,0,0,0,1365,8548,1,0,0,0,1367,8552,1,0,0,0,1369,8556,1,0,0,0,1371,8560,1,0,0,0,1373,8564,1,0,0,0,1375,8568,1,0,0,0,1377,8577,1,0,0,0,1379,8585,1,0,0,0,1381,8591,1,0,0,0,1383,8595,1,0,0,0,1385,8600,1,0,0,0,1387,8607,1,0,0,0,1389,8612,1,0,0,0,1391,8619,1,0,0,0,1393,8631,1,0,0,0,1395,8637,1,0,0,0,1397,8664,1,0,0,0,1399,8683,1,0,0,0,1401,8695,1,0,0,0,1403,8723,1,0,0,0,1405,8736,1,0,0,0,1407,8749,1,0,0,0,1409,8773,1,0,0,0,1411,8785,1,0,0,0,1413,8802,1,0,0,0,1415,8823,1,0,0,0,1417,8831,1,0,0,0,1419,8836,1,0,0,0,1421,8851,1,0,0,0,1423,8867,1,0,0,0,1425,8881,1,0,0,0,1427,8903,1,0,0,0,1429,8916,1,0,0,0,1431,8929,1,0,0,0,1433,8950,1,0,0,0,1435,8974,1,0,0,0,1437,8998,1,0,0,0,1439,9021,1,0,0,0,1441,9028,1,0,0,0,1443,9035,1,0,0,0,1445,9051,1,0,0,0,1447,9075,1,0,0,0,1449,9102,1,0,0,0,1451,9113,1,0,0,0,1453,9121,1,0,0,0,1455,9128,1,0,0,0,1457,9148,1,0,0,0,1459,9172,1,0,0,0,1461,9193,1,0,0,0,1463,9213,1,0,0,0,1465,9224,1,0,0,0,1467,9232,1,0,0,0,1469,9235,1,0,0,0,1471,9261,1,0,0,0,1473,9290,1,0,0,0,1475,9302,1,0,0,0,1477,9315,1,0,0,0,1479,9324,1,0,0,0,1481,9330,1,0,0,0,1483,9353,1,0,0,0,1485,9360,1,0,0,0,1487,9383,1,0,0,0,1489,9403,1,0,0,0,1491,9420,1,0,0,0,1493,9429,1,0,0,0,1495,9435,1,0,0,0,1497,9440,1,0,0,0,1499,9447,1,0,0,0,1501,9454,1,0,0,0,1503,9461,1,0,0,0,1505,9468,1,0,0,0,1507,9474,1,0,0,0,1509,9480,1,0,0,0,1511,9486,1,0,0,0,1513,9492,1,0,0,0,1515,9497,1,0,0,0,1517,9505,1,0,0,0,1519,9511,1,0,0,0,1521,9519,1,0,0,0,1523,9526,1,0,0,0,1525,9530,1,0,0,0,1527,9538,1,0,0,0,1529,9544,1,0,0,0,1531,9551,1,0,0,0,1533,9555,1,0,0,0,1535,9563,1,0,0,0,1537,9569,1,0,0,0,1539,9575,1,0,0,0,1541,9582,1,0,0,0,1543,9589,1,0,0,0,1545,9596,1,0,0,0,1547,9603,1,0,0,0,1549,9609,1,0,0,0,1551,9618,1,0,0,0,1553,9623,1,0,0,0,1555,9628,1,0,0,0,1557,9635,1,0,0,0,1559,9640,1,0,0,0,1561,9645,1,0,0,0,1563,9651,1,0,0,0,1565,9659,1,0,0,0,1567,9665,1,0,0,0,1569,9670,1,0,0,0,1571,9678,1,0,0,0,1573,9686,1,0,0,0,1575,9694,1,0,0,0,1577,9704,1,0,0,0,1579,9708,1,0,0,0,1581,9718,1,0,0,0,1583,9725,1,0,0,0,1585,9732,1,0,0,0,1587,9743,1,0,0,0,1589,9750,1,0,0,0,1591,9754,1,0,0,0,1593,9765,1,0,0,0,1595,9784,1,0,0,0,1597,9791,1,0,0,0,1599,9802,1,0,0,0,1601,9812,1,0,0,0,1603,9824,1,0,0,0,1605,9837,1,0,0,0,1607,9856,1,0,0,0,1609,9871,1,0,0,0,1611,9880,1,0,0,0,1613,9891,1,0,0,0,1615,9907,1,0,0,0,1617,9918,1,0,0,0,1619,9931,1,0,0,0,1621,9937,1,0,0,0,1623,9945,1,0,0,0,1625,9949,1,0,0,0,1627,9954,1,0,0,0,1629,9962,1,0,0,0,1631,9970,1,0,0,0,1633,9982,1,0,0,0,1635,9994,1,0,0,0,1637,9999,1,0,0,0,1639,10008,1,0,0,0,1641,10013,1,0,0,0,1643,10020,1,0,0,0,1645,10026,1,0,0,0,1647,10032,1,0,0,0,1649,10051,1,0,0,0,1651,10069,1,0,0,0,1653,10088,1,0,0,0,1655,10104,1,0,0,0,1657,10122,1,0,0,0,1659,10127,1,0,0,0,1661,10133,1,0,0,0,1663,10143,1,0,0,0,1665,10147,1,0,0,0,1667,10157,1,0,0,0,1669,10168,1,0,0,0,1671,10175,1,0,0,0,1673,10188,1,0,0,0,1675,10193,1,0,0,0,1677,10201,1,0,0,0,1679,10210,1,0,0,0,1681,10227,1,0,0,0,1683,10235,1,0,0,0,1685,10247,1,0,0,0,1687,10260,1,0,0,0,1689,10270,1,0,0,0,1691,10279,1,0,0,0,1693,10286,1,0,0,0,1695,10296,1,0,0,0,1697,10310,1,0,0,0,1699,10315,1,0,0,0,1701,10326,1,0,0,0,1703,10330,1,0,0,0,1705,10334,1,0,0,0,1707,10340,1,0,0,0,1709,10367,1,0,0,0,1711,10393,1,0,0,0,1713,10414,1,0,0,0,1715,10428,1,0,0,0,1717,10436,1,0,0,0,1719,10445,1,0,0,0,1721,10457,1,0,0,0,1723,10465,1,0,0,0,1725,10476,1,0,0,0,1727,10486,1,0,0,0,1729,10496,1,0,0,0,1731,10503,1,0,0,0,1733,10511,1,0,0,0,1735,10523,1,0,0,0,1737,10535,1,0,0,0,1739,10545,1,0,0,0,1741,10554,1,0,0,0,1743,10558,1,0,0,0,1745,10565,1,0,0,0,1747,10573,1,0,0,0,1749,10582,1,0,0,0,1751,10599,1,0,0,0,1753,10608,1,0,0,0,1755,10615,1,0,0,0,1757,10619,1,0,0,0,1759,10630,1,0,0,0,1761,10643,1,0,0,0,1763,10656,1,0,0,0,1765,10662,1,0,0,0,1767,10674,1,0,0,0,1769,10680,1,0,0,0,1771,10687,1,0,0,0,1773,10698,1,0,0,0,1775,10710,1,0,0,0,1777,10720,1,0,0,0,1779,10734,1,0,0,0,1781,10751,1,0,0,0,1783,10767,1,0,0,0,1785,10794,1,0,0,0,1787,10820,1,0,0,0,1789,10837,1,0,0,0,1791,10853,1,0,0,0,1793,10863,1,0,0,0,1795,10876,1,0,0,0,1797,10889,1,0,0,0,1799,10901,1,0,0,0,1801,10912,1,0,0,0,1803,10921,1,0,0,0,1805,10929,1,0,0,0,1807,10938,1,0,0,0,1809,10950,1,0,0,0,1811,10964,1,0,0,0,1813,10968,1,0,0,0,1815,10975,1,0,0,0,1817,10986,1,0,0,0,1819,10997,1,0,0,0,1821,11007,1,0,0,0,1823,11017,1,0,0,0,1825,11023,1,0,0,0,1827,11037,1,0,0,0,1829,11048,1,0,0,0,1831,11057,1,0,0,0,1833,11065,1,0,0,0,1835,11072,1,0,0,0,1837,11081,1,0,0,0,1839,11094,1,0,0,0,1841,11102,1,0,0,0,1843,11117,1,0,0,0,1845,11132,1,0,0,0,1847,11140,1,0,0,0,1849,11153,1,0,0,0,1851,11168,1,0,0,0,1853,11174,1,0,0,0,1855,11180,1,0,0,0,1857,11187,1,0,0,0,1859,11200,1,0,0,0,1861,11212,1,0,0,0,1863,11231,1,0,0,0,1865,11249,1,0,0,0,1867,11252,1,0,0,0,1869,11262,1,0,0,0,1871,11269,1,0,0,0,1873,11273,1,0,0,0,1875,11279,1,0,0,0,1877,11284,1,0,0,0,1879,11290,1,0,0,0,1881,11295,1,0,0,0,1883,11301,1,0,0,0,1885,11310,1,0,0,0,1887,11319,1,0,0,0,1889,11328,1,0,0,0,1891,11344,1,0,0,0,1893,11356,1,0,0,0,1895,11368,1,0,0,0,1897,11377,1,0,0,0,1899,11391,1,0,0,0,1901,11403,1,0,0,0,1903,11414,1,0,0,0,1905,11424,1,0,0,0,1907,11428,1,0,0,0,1909,11442,1,0,0,0,1911,11455,1,0,0,0,1913,11465,1,0,0,0,1915,11480,1,0,0,0,1917,11494,1,0,0,0,1919,11508,1,0,0,0,1921,11521,1,0,0,0,1923,11545,1,0,0,0,1925,11568,1,0,0,0,1927,11587,1,0,0,0,1929,11605,1,0,0,0,1931,11626,1,0,0,0,1933,11646,1,0,0,0,1935,11657,1,0,0,0,1937,11664,1,0,0,0,1939,11678,1,0,0,0,1941,11695,1,0,0,0,1943,11705,1,0,0,0,1945,11709,1,0,0,0,1947,11722,1,0,0,0,1949,11726,1,0,0,0,1951,11735,1,0,0,0,1953,11746,1,0,0,0,1955,11758,1,0,0,0,1957,11761,1,0,0,0,1959,11775,1,0,0,0,1961,11788,1,0,0,0,1963,11795,1,0,0,0,1965,11808,1,0,0,0,1967,11820,1,0,0,0,1969,11836,1,0,0,0,1971,11851,1,0,0,0,1973,11855,1,0,0,0,1975,11861,1,0,0,0,1977,11867,1,0,0,0,1979,11875,1,0,0,0,1981,11880,1,0,0,0,1983,11887,1,0,0,0,1985,11900,1,0,0,0,1987,11913,1,0,0,0,1989,11921,1,0,0,0,1991,11927,1,0,0,0,1993,11937,1,0,0,0,1995,11942,1,0,0,0,1997,11948,1,0,0,0,1999,11960,1,0,0,0,2001,11987,1,0,0,0,2003,12e3,1,0,0,0,2005,12004,1,0,0,0,2007,12009,1,0,0,0,2009,12014,1,0,0,0,2011,12026,1,0,0,0,2013,12031,1,0,0,0,2015,12035,1,0,0,0,2017,12041,1,0,0,0,2019,12049,1,0,0,0,2021,12077,1,0,0,0,2023,12082,1,0,0,0,2025,12087,1,0,0,0,2027,12098,1,0,0,0,2029,12105,1,0,0,0,2031,12117,1,0,0,0,2033,12125,1,0,0,0,2035,12137,1,0,0,0,2037,12147,1,0,0,0,2039,12156,1,0,0,0,2041,12165,1,0,0,0,2043,12175,1,0,0,0,2045,12187,1,0,0,0,2047,12199,1,0,0,0,2049,12210,1,0,0,0,2051,12224,1,0,0,0,2053,12237,1,0,0,0,2055,12249,1,0,0,0,2057,12261,1,0,0,0,2059,12273,1,0,0,0,2061,12285,1,0,0,0,2063,12295,1,0,0,0,2065,12311,1,0,0,0,2067,12331,1,0,0,0,2069,12350,1,0,0,0,2071,12369,1,0,0,0,2073,12399,1,0,0,0,2075,12428,1,0,0,0,2077,12448,1,0,0,0,2079,12467,1,0,0,0,2081,12480,1,0,0,0,2083,12496,1,0,0,0,2085,12512,1,0,0,0,2087,12527,1,0,0,0,2089,12544,1,0,0,0,2091,12560,1,0,0,0,2093,12574,1,0,0,0,2095,12586,1,0,0,0,2097,12597,1,0,0,0,2099,12609,1,0,0,0,2101,12625,1,0,0,0,2103,12640,1,0,0,0,2105,12662,1,0,0,0,2107,12683,1,0,0,0,2109,12700,1,0,0,0,2111,12719,1,0,0,0,2113,12739,1,0,0,0,2115,12752,1,0,0,0,2117,12764,1,0,0,0,2119,12781,1,0,0,0,2121,12797,1,0,0,0,2123,12807,1,0,0,0,2125,12823,1,0,0,0,2127,12838,1,0,0,0,2129,12857,1,0,0,0,2131,12875,1,0,0,0,2133,12883,1,0,0,0,2135,12897,1,0,0,0,2137,12914,1,0,0,0,2139,12925,1,0,0,0,2141,12934,1,0,0,0,2143,12944,1,0,0,0,2145,12949,1,0,0,0,2147,12954,1,0,0,0,2149,12962,1,0,0,0,2151,12978,1,0,0,0,2153,12986,1,0,0,0,2155,12998,1,0,0,0,2157,13002,1,0,0,0,2159,13011,1,0,0,0,2161,13024,1,0,0,0,2163,13038,1,0,0,0,2165,13050,1,0,0,0,2167,13062,1,0,0,0,2169,13070,1,0,0,0,2171,13080,1,0,0,0,2173,13088,1,0,0,0,2175,13099,1,0,0,0,2177,13119,1,0,0,0,2179,13125,1,0,0,0,2181,13136,1,0,0,0,2183,13156,1,0,0,0,2185,13162,1,0,0,0,2187,13177,1,0,0,0,2189,13187,1,0,0,0,2191,13193,1,0,0,0,2193,13198,1,0,0,0,2195,13209,1,0,0,0,2197,13236,1,0,0,0,2199,13244,1,0,0,0,2201,13278,1,0,0,0,2203,13286,1,0,0,0,2205,13297,1,0,0,0,2207,13311,1,0,0,0,2209,13318,1,0,0,0,2211,13327,1,0,0,0,2213,13329,1,0,0,0,2215,13331,1,0,0,0,2217,13334,1,0,0,0,2219,13337,1,0,0,0,2221,13340,1,0,0,0,2223,13343,1,0,0,0,2225,13346,1,0,0,0,2227,13349,1,0,0,0,2229,13352,1,0,0,0,2231,13355,1,0,0,0,2233,13358,1,0,0,0,2235,13360,1,0,0,0,2237,13362,1,0,0,0,2239,13364,1,0,0,0,2241,13366,1,0,0,0,2243,13368,1,0,0,0,2245,13372,1,0,0,0,2247,13376,1,0,0,0,2249,13378,1,0,0,0,2251,13380,1,0,0,0,2253,13382,1,0,0,0,2255,13384,1,0,0,0,2257,13386,1,0,0,0,2259,13388,1,0,0,0,2261,13390,1,0,0,0,2263,13392,1,0,0,0,2265,13394,1,0,0,0,2267,13396,1,0,0,0,2269,13398,1,0,0,0,2271,13400,1,0,0,0,2273,13402,1,0,0,0,2275,13404,1,0,0,0,2277,13406,1,0,0,0,2279,13408,1,0,0,0,2281,13410,1,0,0,0,2283,13412,1,0,0,0,2285,13414,1,0,0,0,2287,13416,1,0,0,0,2289,13421,1,0,0,0,2291,13423,1,0,0,0,2293,13428,1,0,0,0,2295,13434,1,0,0,0,2297,13440,1,0,0,0,2299,13443,1,0,0,0,2301,13466,1,0,0,0,2303,13509,1,0,0,0,2305,13511,1,0,0,0,2307,13514,1,0,0,0,2309,13516,1,0,0,0,2311,13519,1,0,0,0,2313,13522,1,0,0,0,2315,13524,1,0,0,0,2317,13526,1,0,0,0,2319,13529,1,0,0,0,2321,13538,1,0,0,0,2323,13589,1,0,0,0,2325,13591,1,0,0,0,2327,13603,1,0,0,0,2329,13617,1,0,0,0,2331,13630,1,0,0,0,2333,13643,1,0,0,0,2335,13654,1,0,0,0,2337,13656,1,0,0,0,2339,13658,1,0,0,0,2341,13697,1,0,0,0,2343,13699,1,0,0,0,2345,2347,7,0,0,0,2346,2345,1,0,0,0,2347,2348,1,0,0,0,2348,2346,1,0,0,0,2348,2349,1,0,0,0,2349,2350,1,0,0,0,2350,2351,6,0,0,0,2351,2,1,0,0,0,2352,2353,5,47,0,0,2353,2354,5,42,0,0,2354,2355,5,33,0,0,2355,2357,1,0,0,0,2356,2358,9,0,0,0,2357,2356,1,0,0,0,2358,2359,1,0,0,0,2359,2360,1,0,0,0,2359,2357,1,0,0,0,2360,2361,1,0,0,0,2361,2362,5,42,0,0,2362,2363,5,47,0,0,2363,2364,1,0,0,0,2364,2365,6,1,1,0,2365,4,1,0,0,0,2366,2367,5,47,0,0,2367,2368,5,42,0,0,2368,2372,1,0,0,0,2369,2371,9,0,0,0,2370,2369,1,0,0,0,2371,2374,1,0,0,0,2372,2373,1,0,0,0,2372,2370,1,0,0,0,2373,2375,1,0,0,0,2374,2372,1,0,0,0,2375,2376,5,42,0,0,2376,2377,5,47,0,0,2377,2378,1,0,0,0,2378,2379,6,2,1,0,2379,6,1,0,0,0,2380,2381,5,45,0,0,2381,2382,5,45,0,0,2382,2386,1,0,0,0,2383,2385,7,1,0,0,2384,2383,1,0,0,0,2385,2388,1,0,0,0,2386,2384,1,0,0,0,2386,2387,1,0,0,0,2387,2391,1,0,0,0,2388,2386,1,0,0,0,2389,2391,5,35,0,0,2390,2380,1,0,0,0,2390,2389,1,0,0,0,2391,2395,1,0,0,0,2392,2394,8,2,0,0,2393,2392,1,0,0,0,2394,2397,1,0,0,0,2395,2393,1,0,0,0,2395,2396,1,0,0,0,2396,2403,1,0,0,0,2397,2395,1,0,0,0,2398,2400,5,13,0,0,2399,2398,1,0,0,0,2399,2400,1,0,0,0,2400,2401,1,0,0,0,2401,2404,5,10,0,0,2402,2404,5,0,0,1,2403,2399,1,0,0,0,2403,2402,1,0,0,0,2404,2416,1,0,0,0,2405,2406,5,45,0,0,2406,2407,5,45,0,0,2407,2413,1,0,0,0,2408,2410,5,13,0,0,2409,2408,1,0,0,0,2409,2410,1,0,0,0,2410,2411,1,0,0,0,2411,2414,5,10,0,0,2412,2414,5,0,0,1,2413,2409,1,0,0,0,2413,2412,1,0,0,0,2414,2416,1,0,0,0,2415,2390,1,0,0,0,2415,2405,1,0,0,0,2416,2417,1,0,0,0,2417,2418,6,3,1,0,2418,8,1,0,0,0,2419,2420,7,3,0,0,2420,2421,7,4,0,0,2421,2422,7,4,0,0,2422,10,1,0,0,0,2423,2424,7,3,0,0,2424,2425,7,5,0,0,2425,2426,7,5,0,0,2426,12,1,0,0,0,2427,2428,7,3,0,0,2428,2429,7,5,0,0,2429,2430,7,6,0,0,2430,2431,7,7,0,0,2431,2432,7,8,0,0,2432,14,1,0,0,0,2433,2434,7,3,0,0,2434,2435,7,5,0,0,2435,2436,7,9,0,0,2436,2437,7,3,0,0,2437,2438,7,10,0,0,2438,2439,7,11,0,0,2439,16,1,0,0,0,2440,2441,7,3,0,0,2441,2442,7,12,0,0,2442,2443,7,3,0,0,2443,2444,7,5,0,0,2444,2445,7,10,0,0,2445,2446,7,13,0,0,2446,2447,7,7,0,0,2447,18,1,0,0,0,2448,2449,7,3,0,0,2449,2450,7,12,0,0,2450,2451,7,4,0,0,2451,20,1,0,0,0,2452,2453,7,3,0,0,2453,2454,7,8,0,0,2454,2455,7,8,0,0,2455,2456,7,3,0,0,2456,2457,7,10,0,0,2457,22,1,0,0,0,2458,2459,7,3,0,0,2459,2460,7,11,0,0,2460,24,1,0,0,0,2461,2462,7,3,0,0,2462,2463,7,11,0,0,2463,2464,7,14,0,0,2464,26,1,0,0,0,2465,2466,7,3,0,0,2466,2467,7,6,0,0,2467,2468,7,6,0,0,2468,2469,7,8,0,0,2469,2470,7,15,0,0,2470,2471,7,16,0,0,2471,2472,7,17,0,0,2472,2473,7,6,0,0,2473,2474,7,7,0,0,2474,28,1,0,0,0,2475,2476,7,16,0,0,2476,2477,7,7,0,0,2477,2478,7,18,0,0,2478,2479,7,19,0,0,2479,2480,7,8,0,0,2480,2481,7,7,0,0,2481,30,1,0,0,0,2482,2483,7,16,0,0,2483,2484,7,7,0,0,2484,2485,7,6,0,0,2485,2486,7,9,0,0,2486,2487,7,7,0,0,2487,2488,7,7,0,0,2488,2489,7,12,0,0,2489,32,1,0,0,0,2490,2491,7,16,0,0,2491,2492,7,19,0,0,2492,2493,7,6,0,0,2493,2494,7,20,0,0,2494,34,1,0,0,0,2495,2496,7,16,0,0,2496,2497,7,17,0,0,2497,2498,7,14,0,0,2498,2499,7,21,0,0,2499,2500,7,7,0,0,2500,2501,7,6,0,0,2501,2502,7,11,0,0,2502,36,1,0,0,0,2503,2504,7,16,0,0,2504,2505,7,10,0,0,2505,38,1,0,0,0,2506,2507,7,14,0,0,2507,2508,7,3,0,0,2508,2509,7,5,0,0,2509,2510,7,5,0,0,2510,40,1,0,0,0,2511,2512,7,14,0,0,2512,2513,7,3,0,0,2513,2514,7,11,0,0,2514,2515,7,14,0,0,2515,2516,7,3,0,0,2516,2517,7,4,0,0,2517,2518,7,7,0,0,2518,42,1,0,0,0,2519,2520,7,14,0,0,2520,2521,7,3,0,0,2521,2522,7,11,0,0,2522,2523,7,7,0,0,2523,44,1,0,0,0,2524,2525,7,14,0,0,2525,2526,7,3,0,0,2526,2527,7,11,0,0,2527,2528,7,6,0,0,2528,46,1,0,0,0,2529,2530,7,14,0,0,2530,2531,7,20,0,0,2531,2532,7,3,0,0,2532,2533,7,12,0,0,2533,2534,7,22,0,0,2534,2535,7,7,0,0,2535,48,1,0,0,0,2536,2537,7,14,0,0,2537,2538,7,20,0,0,2538,2539,7,3,0,0,2539,2540,7,8,0,0,2540,2541,7,3,0,0,2541,2542,7,14,0,0,2542,2543,7,6,0,0,2543,2544,7,7,0,0,2544,2545,7,8,0,0,2545,50,1,0,0,0,2546,2547,7,14,0,0,2547,2548,7,20,0,0,2548,2549,7,7,0,0,2549,2550,7,14,0,0,2550,2551,7,21,0,0,2551,52,1,0,0,0,2552,2553,7,14,0,0,2553,2554,7,19,0,0,2554,2555,7,5,0,0,2555,2556,7,5,0,0,2556,2557,7,3,0,0,2557,2558,7,6,0,0,2558,2559,7,7,0,0,2559,54,1,0,0,0,2560,2561,7,14,0,0,2561,2562,7,19,0,0,2562,2563,7,5,0,0,2563,2564,7,17,0,0,2564,2565,7,23,0,0,2565,2566,7,12,0,0,2566,56,1,0,0,0,2567,2568,7,14,0,0,2568,2569,7,19,0,0,2569,2570,7,12,0,0,2570,2571,7,4,0,0,2571,2572,7,15,0,0,2572,2573,7,6,0,0,2573,2574,7,15,0,0,2574,2575,7,19,0,0,2575,2576,7,12,0,0,2576,58,1,0,0,0,2577,2578,7,14,0,0,2578,2579,7,19,0,0,2579,2580,7,12,0,0,2580,2581,7,11,0,0,2581,2582,7,6,0,0,2582,2583,7,8,0,0,2583,2584,7,3,0,0,2584,2585,7,15,0,0,2585,2586,7,12,0,0,2586,2587,7,6,0,0,2587,60,1,0,0,0,2588,2589,7,14,0,0,2589,2590,7,19,0,0,2590,2591,7,12,0,0,2591,2592,7,6,0,0,2592,2593,7,15,0,0,2593,2594,7,12,0,0,2594,2595,7,17,0,0,2595,2596,7,7,0,0,2596,62,1,0,0,0,2597,2598,7,14,0,0,2598,2599,7,19,0,0,2599,2600,7,12,0,0,2600,2601,7,24,0,0,2601,2602,7,7,0,0,2602,2603,7,8,0,0,2603,2604,7,6,0,0,2604,64,1,0,0,0,2605,2606,7,14,0,0,2606,2607,7,8,0,0,2607,2608,7,7,0,0,2608,2609,7,3,0,0,2609,2610,7,6,0,0,2610,2611,7,7,0,0,2611,66,1,0,0,0,2612,2613,7,14,0,0,2613,2614,7,8,0,0,2614,2615,7,19,0,0,2615,2616,7,11,0,0,2616,2617,7,11,0,0,2617,68,1,0,0,0,2618,2619,7,14,0,0,2619,2620,7,17,0,0,2620,2621,7,8,0,0,2621,2622,7,8,0,0,2622,2623,7,7,0,0,2623,2624,7,12,0,0,2624,2625,7,6,0,0,2625,70,1,0,0,0,2626,2627,7,14,0,0,2627,2628,7,17,0,0,2628,2629,7,8,0,0,2629,2630,7,8,0,0,2630,2631,7,7,0,0,2631,2632,7,12,0,0,2632,2633,7,6,0,0,2633,2634,5,95,0,0,2634,2635,7,8,0,0,2635,2636,7,19,0,0,2636,2637,7,5,0,0,2637,2638,7,7,0,0,2638,72,1,0,0,0,2639,2640,7,14,0,0,2640,2641,7,17,0,0,2641,2642,7,8,0,0,2642,2643,7,8,0,0,2643,2644,7,7,0,0,2644,2645,7,12,0,0,2645,2646,7,6,0,0,2646,2647,5,95,0,0,2647,2648,7,17,0,0,2648,2649,7,11,0,0,2649,2650,7,7,0,0,2650,2651,7,8,0,0,2651,74,1,0,0,0,2652,2653,7,14,0,0,2653,2654,7,17,0,0,2654,2655,7,8,0,0,2655,2656,7,11,0,0,2656,2657,7,19,0,0,2657,2658,7,8,0,0,2658,76,1,0,0,0,2659,2660,7,4,0,0,2660,2661,7,3,0,0,2661,2662,7,6,0,0,2662,2663,7,3,0,0,2663,2664,7,16,0,0,2664,2665,7,3,0,0,2665,2666,7,11,0,0,2666,2667,7,7,0,0,2667,78,1,0,0,0,2668,2669,7,4,0,0,2669,2670,7,3,0,0,2670,2671,7,6,0,0,2671,2672,7,3,0,0,2672,2673,7,16,0,0,2673,2674,7,3,0,0,2674,2675,7,11,0,0,2675,2676,7,7,0,0,2676,2677,7,11,0,0,2677,80,1,0,0,0,2678,2679,7,4,0,0,2679,2680,7,7,0,0,2680,2681,7,14,0,0,2681,2682,7,5,0,0,2682,2683,7,3,0,0,2683,2684,7,8,0,0,2684,2685,7,7,0,0,2685,82,1,0,0,0,2686,2687,7,4,0,0,2687,2688,7,7,0,0,2688,2689,7,18,0,0,2689,2690,7,3,0,0,2690,2691,7,17,0,0,2691,2692,7,5,0,0,2692,2693,7,6,0,0,2693,84,1,0,0,0,2694,2695,7,4,0,0,2695,2696,7,7,0,0,2696,2697,7,5,0,0,2697,2698,7,3,0,0,2698,2699,7,10,0,0,2699,2700,7,7,0,0,2700,2701,7,4,0,0,2701,86,1,0,0,0,2702,2703,7,4,0,0,2703,2704,7,7,0,0,2704,2705,7,5,0,0,2705,2706,7,7,0,0,2706,2707,7,6,0,0,2707,2708,7,7,0,0,2708,88,1,0,0,0,2709,2710,7,4,0,0,2710,2711,7,7,0,0,2711,2712,7,11,0,0,2712,2713,7,14,0,0,2713,90,1,0,0,0,2714,2715,7,4,0,0,2715,2716,7,7,0,0,2716,2717,7,11,0,0,2717,2718,7,14,0,0,2718,2719,7,8,0,0,2719,2720,7,15,0,0,2720,2721,7,16,0,0,2721,2722,7,7,0,0,2722,92,1,0,0,0,2723,2724,7,4,0,0,2724,2725,7,7,0,0,2725,2726,7,6,0,0,2726,2727,7,7,0,0,2727,2728,7,8,0,0,2728,2729,7,23,0,0,2729,2730,7,15,0,0,2730,2731,7,12,0,0,2731,2732,7,15,0,0,2732,2733,7,11,0,0,2733,2734,7,6,0,0,2734,2735,7,15,0,0,2735,2736,7,14,0,0,2736,94,1,0,0,0,2737,2738,7,4,0,0,2738,2739,7,15,0,0,2739,2740,7,3,0,0,2740,2741,7,22,0,0,2741,2742,7,12,0,0,2742,2743,7,19,0,0,2743,2744,7,11,0,0,2744,2745,7,6,0,0,2745,2746,7,15,0,0,2746,2747,7,14,0,0,2747,2748,7,11,0,0,2748,96,1,0,0,0,2749,2750,7,4,0,0,2750,2751,7,15,0,0,2751,2752,7,11,0,0,2752,2753,7,6,0,0,2753,2754,7,15,0,0,2754,2755,7,12,0,0,2755,2756,7,14,0,0,2756,2757,7,6,0,0,2757,98,1,0,0,0,2758,2759,7,4,0,0,2759,2760,7,15,0,0,2760,2761,7,11,0,0,2761,2762,7,6,0,0,2762,2763,7,15,0,0,2763,2764,7,12,0,0,2764,2765,7,14,0,0,2765,2766,7,6,0,0,2766,2767,7,8,0,0,2767,2768,7,19,0,0,2768,2769,7,9,0,0,2769,100,1,0,0,0,2770,2771,7,4,0,0,2771,2772,7,8,0,0,2772,2773,7,19,0,0,2773,2774,7,25,0,0,2774,102,1,0,0,0,2775,2776,7,7,0,0,2776,2777,7,3,0,0,2777,2778,7,14,0,0,2778,2779,7,20,0,0,2779,104,1,0,0,0,2780,2781,7,7,0,0,2781,2782,7,5,0,0,2782,2783,7,11,0,0,2783,2784,7,7,0,0,2784,106,1,0,0,0,2785,2786,7,7,0,0,2786,2787,7,5,0,0,2787,2788,7,11,0,0,2788,2789,7,7,0,0,2789,2790,7,15,0,0,2790,2791,7,18,0,0,2791,108,1,0,0,0,2792,2793,7,7,0,0,2793,2794,7,23,0,0,2794,2795,7,25,0,0,2795,2796,7,6,0,0,2796,2797,7,10,0,0,2797,110,1,0,0,0,2798,2799,7,7,0,0,2799,2800,7,12,0,0,2800,2801,7,14,0,0,2801,2802,7,5,0,0,2802,2803,7,19,0,0,2803,2804,7,11,0,0,2804,2805,7,7,0,0,2805,2806,7,4,0,0,2806,112,1,0,0,0,2807,2808,7,7,0,0,2808,2809,7,12,0,0,2809,2810,7,18,0,0,2810,2811,7,19,0,0,2811,2812,7,8,0,0,2812,2813,7,14,0,0,2813,2814,7,7,0,0,2814,2815,7,4,0,0,2815,114,1,0,0,0,2816,2817,7,7,0,0,2817,2818,7,11,0,0,2818,2819,7,14,0,0,2819,2820,7,3,0,0,2820,2821,7,25,0,0,2821,2822,7,7,0,0,2822,2823,7,4,0,0,2823,116,1,0,0,0,2824,2825,7,7,0,0,2825,2826,7,26,0,0,2826,2827,7,14,0,0,2827,2828,7,7,0,0,2828,2829,7,25,0,0,2829,2830,7,6,0,0,2830,118,1,0,0,0,2831,2832,7,7,0,0,2832,2833,7,26,0,0,2833,2834,7,15,0,0,2834,2835,7,11,0,0,2835,2836,7,6,0,0,2836,2837,7,11,0,0,2837,120,1,0,0,0,2838,2839,7,7,0,0,2839,2840,7,26,0,0,2840,2841,7,15,0,0,2841,2842,7,6,0,0,2842,122,1,0,0,0,2843,2844,7,7,0,0,2844,2845,7,26,0,0,2845,2846,7,25,0,0,2846,2847,7,5,0,0,2847,2848,7,3,0,0,2848,2849,7,15,0,0,2849,2850,7,12,0,0,2850,124,1,0,0,0,2851,2852,7,18,0,0,2852,2853,7,3,0,0,2853,2854,7,5,0,0,2854,2855,7,11,0,0,2855,2856,7,7,0,0,2856,126,1,0,0,0,2857,2858,7,18,0,0,2858,2859,7,7,0,0,2859,2860,7,6,0,0,2860,2861,7,14,0,0,2861,2862,7,20,0,0,2862,128,1,0,0,0,2863,2864,7,18,0,0,2864,2865,7,19,0,0,2865,2866,7,8,0,0,2866,130,1,0,0,0,2867,2868,7,18,0,0,2868,2869,7,19,0,0,2869,2870,7,8,0,0,2870,2871,7,14,0,0,2871,2872,7,7,0,0,2872,132,1,0,0,0,2873,2874,7,18,0,0,2874,2875,7,19,0,0,2875,2876,7,8,0,0,2876,2877,7,7,0,0,2877,2878,7,15,0,0,2878,2879,7,22,0,0,2879,2880,7,12,0,0,2880,134,1,0,0,0,2881,2882,7,18,0,0,2882,2883,7,8,0,0,2883,2884,7,19,0,0,2884,2885,7,23,0,0,2885,136,1,0,0,0,2886,2887,7,18,0,0,2887,2888,7,17,0,0,2888,2889,7,5,0,0,2889,2890,7,5,0,0,2890,2891,7,6,0,0,2891,2892,7,7,0,0,2892,2893,7,26,0,0,2893,2894,7,6,0,0,2894,138,1,0,0,0,2895,2896,7,22,0,0,2896,2897,7,7,0,0,2897,2898,7,12,0,0,2898,2899,7,7,0,0,2899,2900,7,8,0,0,2900,2901,7,3,0,0,2901,2902,7,6,0,0,2902,2903,7,7,0,0,2903,2904,7,4,0,0,2904,140,1,0,0,0,2905,2906,7,22,0,0,2906,2907,7,7,0,0,2907,2908,7,6,0,0,2908,142,1,0,0,0,2909,2910,7,22,0,0,2910,2911,7,8,0,0,2911,2912,7,3,0,0,2912,2913,7,12,0,0,2913,2914,7,6,0,0,2914,144,1,0,0,0,2915,2916,7,22,0,0,2916,2917,7,8,0,0,2917,2918,7,19,0,0,2918,2919,7,17,0,0,2919,2920,7,25,0,0,2920,146,1,0,0,0,2921,2922,7,20,0,0,2922,2923,7,3,0,0,2923,2924,7,24,0,0,2924,2925,7,15,0,0,2925,2926,7,12,0,0,2926,2927,7,22,0,0,2927,148,1,0,0,0,2928,2929,7,20,0,0,2929,2930,7,15,0,0,2930,2931,7,22,0,0,2931,2932,7,20,0,0,2932,2933,5,95,0,0,2933,2934,7,25,0,0,2934,2935,7,8,0,0,2935,2936,7,15,0,0,2936,2937,7,19,0,0,2937,2938,7,8,0,0,2938,2939,7,15,0,0,2939,2940,7,6,0,0,2940,2941,7,10,0,0,2941,150,1,0,0,0,2942,2943,7,20,0,0,2943,2944,7,15,0,0,2944,2945,7,11,0,0,2945,2946,7,6,0,0,2946,2947,7,19,0,0,2947,2948,7,22,0,0,2948,2949,7,8,0,0,2949,2950,7,3,0,0,2950,2951,7,23,0,0,2951,152,1,0,0,0,2952,2953,7,15,0,0,2953,2954,7,18,0,0,2954,154,1,0,0,0,2955,2956,7,15,0,0,2956,2957,7,22,0,0,2957,2958,7,12,0,0,2958,2959,7,19,0,0,2959,2960,7,8,0,0,2960,2961,7,7,0,0,2961,156,1,0,0,0,2962,2963,7,15,0,0,2963,2964,7,22,0,0,2964,2965,7,12,0,0,2965,2966,7,19,0,0,2966,2967,7,8,0,0,2967,2968,7,7,0,0,2968,2969,7,4,0,0,2969,158,1,0,0,0,2970,2971,7,15,0,0,2971,2972,7,12,0,0,2972,160,1,0,0,0,2973,2974,7,15,0,0,2974,2975,7,12,0,0,2975,2976,7,4,0,0,2976,2977,7,7,0,0,2977,2978,7,26,0,0,2978,162,1,0,0,0,2979,2980,7,15,0,0,2980,2981,7,12,0,0,2981,2982,7,18,0,0,2982,2983,7,15,0,0,2983,2984,7,5,0,0,2984,2985,7,7,0,0,2985,164,1,0,0,0,2986,2987,7,15,0,0,2987,2988,7,12,0,0,2988,2989,7,12,0,0,2989,2990,7,7,0,0,2990,2991,7,8,0,0,2991,166,1,0,0,0,2992,2993,7,15,0,0,2993,2994,7,12,0,0,2994,2995,7,19,0,0,2995,2996,7,17,0,0,2996,2997,7,6,0,0,2997,168,1,0,0,0,2998,2999,7,15,0,0,2999,3e3,7,12,0,0,3e3,3001,7,11,0,0,3001,3002,7,7,0,0,3002,3003,7,8,0,0,3003,3004,7,6,0,0,3004,170,1,0,0,0,3005,3006,7,15,0,0,3006,3007,7,12,0,0,3007,3008,7,6,0,0,3008,3009,7,7,0,0,3009,3010,7,8,0,0,3010,3011,7,24,0,0,3011,3012,7,3,0,0,3012,3013,7,5,0,0,3013,172,1,0,0,0,3014,3015,7,15,0,0,3015,3016,7,12,0,0,3016,3017,7,6,0,0,3017,3018,7,19,0,0,3018,174,1,0,0,0,3019,3020,7,15,0,0,3020,3021,7,11,0,0,3021,176,1,0,0,0,3022,3023,7,15,0,0,3023,3024,7,6,0,0,3024,3025,7,7,0,0,3025,3026,7,8,0,0,3026,3027,7,3,0,0,3027,3028,7,6,0,0,3028,3029,7,7,0,0,3029,178,1,0,0,0,3030,3031,7,27,0,0,3031,3032,7,19,0,0,3032,3033,7,15,0,0,3033,3034,7,12,0,0,3034,180,1,0,0,0,3035,3036,7,21,0,0,3036,3037,7,7,0,0,3037,3038,7,10,0,0,3038,182,1,0,0,0,3039,3040,7,21,0,0,3040,3041,7,7,0,0,3041,3042,7,10,0,0,3042,3043,7,11,0,0,3043,184,1,0,0,0,3044,3045,7,21,0,0,3045,3046,7,15,0,0,3046,3047,7,5,0,0,3047,3048,7,5,0,0,3048,186,1,0,0,0,3049,3050,7,5,0,0,3050,3051,7,3,0,0,3051,3052,7,6,0,0,3052,3053,7,7,0,0,3053,3054,7,8,0,0,3054,3055,7,3,0,0,3055,3056,7,5,0,0,3056,188,1,0,0,0,3057,3058,7,5,0,0,3058,3059,7,7,0,0,3059,3060,7,3,0,0,3060,3061,7,4,0,0,3061,3062,7,15,0,0,3062,3063,7,12,0,0,3063,3064,7,22,0,0,3064,190,1,0,0,0,3065,3066,7,5,0,0,3066,3067,7,7,0,0,3067,3068,7,3,0,0,3068,3069,7,24,0,0,3069,3070,7,7,0,0,3070,192,1,0,0,0,3071,3072,7,5,0,0,3072,3073,7,7,0,0,3073,3074,7,18,0,0,3074,3075,7,6,0,0,3075,194,1,0,0,0,3076,3077,7,5,0,0,3077,3078,7,15,0,0,3078,3079,7,21,0,0,3079,3080,7,7,0,0,3080,196,1,0,0,0,3081,3082,7,5,0,0,3082,3083,7,15,0,0,3083,3084,7,23,0,0,3084,3085,7,15,0,0,3085,3086,7,6,0,0,3086,198,1,0,0,0,3087,3088,7,5,0,0,3088,3089,7,15,0,0,3089,3090,7,12,0,0,3090,3091,7,7,0,0,3091,3092,7,3,0,0,3092,3093,7,8,0,0,3093,200,1,0,0,0,3094,3095,7,5,0,0,3095,3096,7,15,0,0,3096,3097,7,12,0,0,3097,3098,7,7,0,0,3098,3099,7,11,0,0,3099,202,1,0,0,0,3100,3101,7,5,0,0,3101,3102,7,19,0,0,3102,3103,7,3,0,0,3103,3104,7,4,0,0,3104,204,1,0,0,0,3105,3106,7,5,0,0,3106,3107,7,19,0,0,3107,3108,7,14,0,0,3108,3109,7,21,0,0,3109,206,1,0,0,0,3110,3111,7,5,0,0,3111,3112,7,19,0,0,3112,3113,7,14,0,0,3113,3114,7,21,0,0,3114,3115,7,7,0,0,3115,3116,7,4,0,0,3116,208,1,0,0,0,3117,3118,7,5,0,0,3118,3119,7,19,0,0,3119,3120,7,19,0,0,3120,3121,7,25,0,0,3121,210,1,0,0,0,3122,3123,7,5,0,0,3123,3124,7,19,0,0,3124,3125,7,9,0,0,3125,3126,5,95,0,0,3126,3127,7,25,0,0,3127,3128,7,8,0,0,3128,3129,7,15,0,0,3129,3130,7,19,0,0,3130,3131,7,8,0,0,3131,3132,7,15,0,0,3132,3133,7,6,0,0,3133,3134,7,10,0,0,3134,212,1,0,0,0,3135,3136,7,23,0,0,3136,3137,7,3,0,0,3137,3138,7,11,0,0,3138,3139,7,6,0,0,3139,3140,7,7,0,0,3140,3141,7,8,0,0,3141,3142,5,95,0,0,3142,3143,7,16,0,0,3143,3144,7,15,0,0,3144,3145,7,12,0,0,3145,3146,7,4,0,0,3146,214,1,0,0,0,3147,3148,7,23,0,0,3148,3149,7,3,0,0,3149,3150,7,11,0,0,3150,3151,7,6,0,0,3151,3152,7,7,0,0,3152,3153,7,8,0,0,3153,3154,5,95,0,0,3154,3155,7,11,0,0,3155,3156,7,11,0,0,3156,3157,7,5,0,0,3157,3158,5,95,0,0,3158,3159,7,24,0,0,3159,3160,7,7,0,0,3160,3161,7,8,0,0,3161,3162,7,15,0,0,3162,3163,7,18,0,0,3163,3164,7,10,0,0,3164,3165,5,95,0,0,3165,3166,7,11,0,0,3166,3167,7,7,0,0,3167,3168,7,8,0,0,3168,3169,7,24,0,0,3169,3170,7,7,0,0,3170,3171,7,8,0,0,3171,3172,5,95,0,0,3172,3173,7,14,0,0,3173,3174,7,7,0,0,3174,3175,7,8,0,0,3175,3176,7,6,0,0,3176,216,1,0,0,0,3177,3178,7,23,0,0,3178,3179,7,3,0,0,3179,3180,7,6,0,0,3180,3181,7,14,0,0,3181,3182,7,20,0,0,3182,218,1,0,0,0,3183,3184,7,23,0,0,3184,3185,7,3,0,0,3185,3186,7,26,0,0,3186,3187,7,24,0,0,3187,3188,7,3,0,0,3188,3189,7,5,0,0,3189,3190,7,17,0,0,3190,3191,7,7,0,0,3191,220,1,0,0,0,3192,3193,7,23,0,0,3193,3194,7,15,0,0,3194,3195,7,12,0,0,3195,3196,7,24,0,0,3196,3197,7,3,0,0,3197,3198,7,5,0,0,3198,3199,7,17,0,0,3199,3200,7,7,0,0,3200,222,1,0,0,0,3201,3202,7,23,0,0,3202,3203,7,19,0,0,3203,3204,7,4,0,0,3204,3205,7,15,0,0,3205,3206,7,18,0,0,3206,3207,7,15,0,0,3207,3208,7,7,0,0,3208,3209,7,11,0,0,3209,224,1,0,0,0,3210,3211,7,12,0,0,3211,3212,7,3,0,0,3212,3213,7,6,0,0,3213,3214,7,17,0,0,3214,3215,7,8,0,0,3215,3216,7,3,0,0,3216,3217,7,5,0,0,3217,226,1,0,0,0,3218,3219,7,12,0,0,3219,3220,7,19,0,0,3220,3221,7,6,0,0,3221,228,1,0,0,0,3222,3223,7,12,0,0,3223,3224,7,19,0,0,3224,3225,5,95,0,0,3225,3226,7,9,0,0,3226,3227,7,8,0,0,3227,3228,7,15,0,0,3228,3229,7,6,0,0,3229,3230,7,7,0,0,3230,3231,5,95,0,0,3231,3232,7,6,0,0,3232,3233,7,19,0,0,3233,3234,5,95,0,0,3234,3235,7,16,0,0,3235,3236,7,15,0,0,3236,3237,7,12,0,0,3237,3238,7,5,0,0,3238,3239,7,19,0,0,3239,3240,7,22,0,0,3240,230,1,0,0,0,3241,3242,7,12,0,0,3242,3243,7,17,0,0,3243,3244,7,5,0,0,3244,3245,7,5,0,0,3245,232,1,0,0,0,3246,3247,7,12,0,0,3247,3248,7,17,0,0,3248,3249,7,23,0,0,3249,3250,7,16,0,0,3250,3251,7,7,0,0,3251,3252,7,8,0,0,3252,234,1,0,0,0,3253,3254,7,19,0,0,3254,3255,7,12,0,0,3255,236,1,0,0,0,3256,3257,7,19,0,0,3257,3258,7,25,0,0,3258,3259,7,6,0,0,3259,3260,7,15,0,0,3260,3261,7,23,0,0,3261,3262,7,15,0,0,3262,3263,7,13,0,0,3263,3264,7,7,0,0,3264,238,1,0,0,0,3265,3266,7,19,0,0,3266,3267,7,25,0,0,3267,3268,7,6,0,0,3268,3269,7,15,0,0,3269,3270,7,19,0,0,3270,3271,7,12,0,0,3271,240,1,0,0,0,3272,3273,7,19,0,0,3273,3274,7,25,0,0,3274,3275,7,6,0,0,3275,3276,7,15,0,0,3276,3277,7,19,0,0,3277,3278,7,12,0,0,3278,3279,7,3,0,0,3279,3280,7,5,0,0,3280,242,1,0,0,0,3281,3282,7,19,0,0,3282,3283,7,25,0,0,3283,3284,7,6,0,0,3284,3285,7,15,0,0,3285,3286,7,19,0,0,3286,3287,7,12,0,0,3287,3288,7,3,0,0,3288,3289,7,5,0,0,3289,3290,7,5,0,0,3290,3291,7,10,0,0,3291,244,1,0,0,0,3292,3293,7,19,0,0,3293,3294,7,8,0,0,3294,246,1,0,0,0,3295,3296,7,19,0,0,3296,3297,7,8,0,0,3297,3298,7,4,0,0,3298,3299,7,7,0,0,3299,3300,7,8,0,0,3300,248,1,0,0,0,3301,3302,7,19,0,0,3302,3303,7,17,0,0,3303,3304,7,6,0,0,3304,250,1,0,0,0,3305,3306,7,19,0,0,3306,3307,7,17,0,0,3307,3308,7,6,0,0,3308,3309,7,7,0,0,3309,3310,7,8,0,0,3310,252,1,0,0,0,3311,3312,7,19,0,0,3312,3313,7,17,0,0,3313,3314,7,6,0,0,3314,3315,7,18,0,0,3315,3316,7,15,0,0,3316,3317,7,5,0,0,3317,3318,7,7,0,0,3318,254,1,0,0,0,3319,3320,7,19,0,0,3320,3321,7,24,0,0,3321,3322,7,7,0,0,3322,3323,7,8,0,0,3323,256,1,0,0,0,3324,3325,7,25,0,0,3325,3326,7,3,0,0,3326,3327,7,8,0,0,3327,3328,7,6,0,0,3328,3329,7,15,0,0,3329,3330,7,6,0,0,3330,3331,7,15,0,0,3331,3332,7,19,0,0,3332,3333,7,12,0,0,3333,258,1,0,0,0,3334,3335,7,25,0,0,3335,3336,7,8,0,0,3336,3337,7,15,0,0,3337,3338,7,23,0,0,3338,3339,7,3,0,0,3339,3340,7,8,0,0,3340,3341,7,10,0,0,3341,260,1,0,0,0,3342,3343,7,25,0,0,3343,3344,7,8,0,0,3344,3345,7,19,0,0,3345,3346,7,14,0,0,3346,3347,7,7,0,0,3347,3348,7,4,0,0,3348,3349,7,17,0,0,3349,3350,7,8,0,0,3350,3351,7,7,0,0,3351,262,1,0,0,0,3352,3353,7,25,0,0,3353,3354,7,17,0,0,3354,3355,7,8,0,0,3355,3356,7,22,0,0,3356,3357,7,7,0,0,3357,264,1,0,0,0,3358,3359,7,8,0,0,3359,3360,7,3,0,0,3360,3361,7,12,0,0,3361,3362,7,22,0,0,3362,3363,7,7,0,0,3363,266,1,0,0,0,3364,3365,7,8,0,0,3365,3366,7,7,0,0,3366,3367,7,3,0,0,3367,3368,7,4,0,0,3368,268,1,0,0,0,3369,3370,7,8,0,0,3370,3371,7,7,0,0,3371,3372,7,3,0,0,3372,3373,7,4,0,0,3373,3374,7,11,0,0,3374,270,1,0,0,0,3375,3376,7,8,0,0,3376,3377,7,7,0,0,3377,3378,7,18,0,0,3378,3379,7,7,0,0,3379,3380,7,8,0,0,3380,3381,7,7,0,0,3381,3382,7,12,0,0,3382,3383,7,14,0,0,3383,3384,7,7,0,0,3384,3385,7,11,0,0,3385,272,1,0,0,0,3386,3387,7,8,0,0,3387,3388,7,7,0,0,3388,3389,7,22,0,0,3389,3390,7,7,0,0,3390,3391,7,26,0,0,3391,3392,7,25,0,0,3392,274,1,0,0,0,3393,3394,7,8,0,0,3394,3395,7,7,0,0,3395,3396,7,5,0,0,3396,3397,7,7,0,0,3397,3398,7,3,0,0,3398,3399,7,11,0,0,3399,3400,7,7,0,0,3400,276,1,0,0,0,3401,3402,7,8,0,0,3402,3403,7,7,0,0,3403,3404,7,12,0,0,3404,3405,7,3,0,0,3405,3406,7,23,0,0,3406,3407,7,7,0,0,3407,278,1,0,0,0,3408,3409,7,8,0,0,3409,3410,7,7,0,0,3410,3411,7,25,0,0,3411,3412,7,7,0,0,3412,3413,7,3,0,0,3413,3414,7,6,0,0,3414,280,1,0,0,0,3415,3416,7,8,0,0,3416,3417,7,7,0,0,3417,3418,7,25,0,0,3418,3419,7,5,0,0,3419,3420,7,3,0,0,3420,3421,7,14,0,0,3421,3422,7,7,0,0,3422,282,1,0,0,0,3423,3424,7,8,0,0,3424,3425,7,7,0,0,3425,3426,7,28,0,0,3426,3427,7,17,0,0,3427,3428,7,15,0,0,3428,3429,7,8,0,0,3429,3430,7,7,0,0,3430,284,1,0,0,0,3431,3432,7,8,0,0,3432,3433,7,7,0,0,3433,3434,7,11,0,0,3434,3435,7,15,0,0,3435,3436,7,22,0,0,3436,3437,7,12,0,0,3437,3438,7,3,0,0,3438,3439,7,5,0,0,3439,286,1,0,0,0,3440,3441,7,8,0,0,3441,3442,7,7,0,0,3442,3443,7,11,0,0,3443,3444,7,6,0,0,3444,3445,7,8,0,0,3445,3446,7,15,0,0,3446,3447,7,14,0,0,3447,3448,7,6,0,0,3448,288,1,0,0,0,3449,3450,7,8,0,0,3450,3451,7,7,0,0,3451,3452,7,6,0,0,3452,3453,7,3,0,0,3453,3454,7,15,0,0,3454,3455,7,12,0,0,3455,290,1,0,0,0,3456,3457,7,8,0,0,3457,3458,7,7,0,0,3458,3459,7,6,0,0,3459,3460,7,17,0,0,3460,3461,7,8,0,0,3461,3462,7,12,0,0,3462,292,1,0,0,0,3463,3464,7,8,0,0,3464,3465,7,7,0,0,3465,3466,7,24,0,0,3466,3467,7,19,0,0,3467,3468,7,21,0,0,3468,3469,7,7,0,0,3469,294,1,0,0,0,3470,3471,7,8,0,0,3471,3472,7,15,0,0,3472,3473,7,22,0,0,3473,3474,7,20,0,0,3474,3475,7,6,0,0,3475,296,1,0,0,0,3476,3477,7,8,0,0,3477,3478,7,5,0,0,3478,3479,7,15,0,0,3479,3480,7,21,0,0,3480,3481,7,7,0,0,3481,298,1,0,0,0,3482,3483,7,11,0,0,3483,3484,7,14,0,0,3484,3485,7,20,0,0,3485,3486,7,7,0,0,3486,3487,7,23,0,0,3487,3488,7,3,0,0,3488,300,1,0,0,0,3489,3490,7,11,0,0,3490,3491,7,14,0,0,3491,3492,7,20,0,0,3492,3493,7,7,0,0,3493,3494,7,23,0,0,3494,3495,7,3,0,0,3495,3496,7,11,0,0,3496,302,1,0,0,0,3497,3498,7,11,0,0,3498,3499,7,7,0,0,3499,3500,7,5,0,0,3500,3501,7,7,0,0,3501,3502,7,14,0,0,3502,3503,7,6,0,0,3503,304,1,0,0,0,3504,3505,7,11,0,0,3505,3506,7,7,0,0,3506,3507,7,6,0,0,3507,306,1,0,0,0,3508,3509,7,11,0,0,3509,3510,7,7,0,0,3510,3511,7,25,0,0,3511,3512,7,3,0,0,3512,3513,7,8,0,0,3513,3514,7,3,0,0,3514,3515,7,6,0,0,3515,3516,7,19,0,0,3516,3517,7,8,0,0,3517,308,1,0,0,0,3518,3519,7,11,0,0,3519,3520,7,20,0,0,3520,3521,7,19,0,0,3521,3522,7,9,0,0,3522,310,1,0,0,0,3523,3524,7,11,0,0,3524,3525,7,15,0,0,3525,3526,7,22,0,0,3526,3527,7,12,0,0,3527,3528,7,3,0,0,3528,3529,7,5,0,0,3529,312,1,0,0,0,3530,3531,7,11,0,0,3531,3532,7,21,0,0,3532,3533,7,15,0,0,3533,3534,7,25,0,0,3534,314,1,0,0,0,3535,3536,7,11,0,0,3536,3537,7,21,0,0,3537,3538,7,15,0,0,3538,3539,7,25,0,0,3539,3540,5,95,0,0,3540,3541,7,28,0,0,3541,3542,7,17,0,0,3542,3543,7,7,0,0,3543,3544,7,8,0,0,3544,3545,7,10,0,0,3545,3546,5,95,0,0,3546,3547,7,8,0,0,3547,3548,7,7,0,0,3548,3549,7,9,0,0,3549,3550,7,8,0,0,3550,3551,7,15,0,0,3551,3552,7,6,0,0,3552,3553,7,7,0,0,3553,316,1,0,0,0,3554,3555,7,11,0,0,3555,3556,7,25,0,0,3556,3557,7,3,0,0,3557,3558,7,6,0,0,3558,3559,7,15,0,0,3559,3560,7,3,0,0,3560,3561,7,5,0,0,3561,318,1,0,0,0,3562,3563,7,11,0,0,3563,3564,7,28,0,0,3564,3565,7,5,0,0,3565,320,1,0,0,0,3566,3567,7,11,0,0,3567,3568,7,28,0,0,3568,3569,7,5,0,0,3569,3570,7,7,0,0,3570,3571,7,26,0,0,3571,3572,7,14,0,0,3572,3573,7,7,0,0,3573,3574,7,25,0,0,3574,3575,7,6,0,0,3575,3576,7,15,0,0,3576,3577,7,19,0,0,3577,3578,7,12,0,0,3578,322,1,0,0,0,3579,3580,7,11,0,0,3580,3581,7,28,0,0,3581,3582,7,5,0,0,3582,3583,7,11,0,0,3583,3584,7,6,0,0,3584,3585,7,3,0,0,3585,3586,7,6,0,0,3586,3587,7,7,0,0,3587,324,1,0,0,0,3588,3589,7,11,0,0,3589,3590,7,28,0,0,3590,3591,7,5,0,0,3591,3592,7,9,0,0,3592,3593,7,3,0,0,3593,3594,7,8,0,0,3594,3595,7,12,0,0,3595,3596,7,15,0,0,3596,3597,7,12,0,0,3597,3598,7,22,0,0,3598,326,1,0,0,0,3599,3600,7,11,0,0,3600,3601,7,28,0,0,3601,3602,7,5,0,0,3602,3603,5,95,0,0,3603,3604,7,16,0,0,3604,3605,7,15,0,0,3605,3606,7,22,0,0,3606,3607,5,95,0,0,3607,3608,7,8,0,0,3608,3609,7,7,0,0,3609,3610,7,11,0,0,3610,3611,7,17,0,0,3611,3612,7,5,0,0,3612,3613,7,6,0,0,3613,328,1,0,0,0,3614,3615,7,11,0,0,3615,3616,7,28,0,0,3616,3617,7,5,0,0,3617,3618,5,95,0,0,3618,3619,7,14,0,0,3619,3620,7,3,0,0,3620,3621,7,5,0,0,3621,3622,7,14,0,0,3622,3623,5,95,0,0,3623,3624,7,18,0,0,3624,3625,7,19,0,0,3625,3626,7,17,0,0,3626,3627,7,12,0,0,3627,3628,7,4,0,0,3628,3629,5,95,0,0,3629,3630,7,8,0,0,3630,3631,7,19,0,0,3631,3632,7,9,0,0,3632,3633,7,11,0,0,3633,330,1,0,0,0,3634,3635,7,11,0,0,3635,3636,7,28,0,0,3636,3637,7,5,0,0,3637,3638,5,95,0,0,3638,3639,7,11,0,0,3639,3640,7,23,0,0,3640,3641,7,3,0,0,3641,3642,7,5,0,0,3642,3643,7,5,0,0,3643,3644,5,95,0,0,3644,3645,7,8,0,0,3645,3646,7,7,0,0,3646,3647,7,11,0,0,3647,3648,7,17,0,0,3648,3649,7,5,0,0,3649,3650,7,6,0,0,3650,332,1,0,0,0,3651,3652,7,11,0,0,3652,3653,7,11,0,0,3653,3654,7,5,0,0,3654,334,1,0,0,0,3655,3656,7,11,0,0,3656,3657,7,6,0,0,3657,3658,7,3,0,0,3658,3659,7,14,0,0,3659,3660,7,21,0,0,3660,3661,7,7,0,0,3661,3662,7,4,0,0,3662,336,1,0,0,0,3663,3664,7,11,0,0,3664,3665,7,6,0,0,3665,3666,7,3,0,0,3666,3667,7,8,0,0,3667,3668,7,6,0,0,3668,3669,7,15,0,0,3669,3670,7,12,0,0,3670,3671,7,22,0,0,3671,338,1,0,0,0,3672,3673,7,11,0,0,3673,3674,7,6,0,0,3674,3675,7,3,0,0,3675,3676,7,6,0,0,3676,3677,7,7,0,0,3677,3678,7,23,0,0,3678,3679,7,7,0,0,3679,3680,7,12,0,0,3680,3681,7,6,0,0,3681,340,1,0,0,0,3682,3683,7,11,0,0,3683,3684,7,6,0,0,3684,3685,7,8,0,0,3685,3686,7,3,0,0,3686,3687,7,15,0,0,3687,3688,7,22,0,0,3688,3689,7,20,0,0,3689,3690,7,6,0,0,3690,3691,5,95,0,0,3691,3692,7,27,0,0,3692,3693,7,19,0,0,3693,3694,7,15,0,0,3694,3695,7,12,0,0,3695,342,1,0,0,0,3696,3697,7,6,0,0,3697,3698,7,3,0,0,3698,3699,7,16,0,0,3699,3700,7,5,0,0,3700,3701,7,7,0,0,3701,344,1,0,0,0,3702,3703,7,6,0,0,3703,3704,7,7,0,0,3704,3705,7,8,0,0,3705,3706,7,23,0,0,3706,3707,7,15,0,0,3707,3708,7,12,0,0,3708,3709,7,3,0,0,3709,3710,7,6,0,0,3710,3711,7,7,0,0,3711,3712,7,4,0,0,3712,346,1,0,0,0,3713,3714,7,6,0,0,3714,3715,7,20,0,0,3715,3716,7,7,0,0,3716,3717,7,12,0,0,3717,348,1,0,0,0,3718,3719,7,6,0,0,3719,3720,7,19,0,0,3720,350,1,0,0,0,3721,3722,7,6,0,0,3722,3723,7,8,0,0,3723,3724,7,3,0,0,3724,3725,7,15,0,0,3725,3726,7,5,0,0,3726,3727,7,15,0,0,3727,3728,7,12,0,0,3728,3729,7,22,0,0,3729,352,1,0,0,0,3730,3731,7,6,0,0,3731,3732,7,8,0,0,3732,3733,7,15,0,0,3733,3734,7,22,0,0,3734,3735,7,22,0,0,3735,3736,7,7,0,0,3736,3737,7,8,0,0,3737,354,1,0,0,0,3738,3739,7,6,0,0,3739,3740,7,8,0,0,3740,3741,7,17,0,0,3741,3742,7,7,0,0,3742,356,1,0,0,0,3743,3744,7,17,0,0,3744,3745,7,12,0,0,3745,3746,7,4,0,0,3746,3747,7,19,0,0,3747,358,1,0,0,0,3748,3749,7,17,0,0,3749,3750,7,12,0,0,3750,3751,7,15,0,0,3751,3752,7,19,0,0,3752,3753,7,12,0,0,3753,360,1,0,0,0,3754,3755,7,17,0,0,3755,3756,7,12,0,0,3756,3757,7,15,0,0,3757,3758,7,28,0,0,3758,3759,7,17,0,0,3759,3760,7,7,0,0,3760,362,1,0,0,0,3761,3762,7,17,0,0,3762,3763,7,12,0,0,3763,3764,7,5,0,0,3764,3765,7,19,0,0,3765,3766,7,14,0,0,3766,3767,7,21,0,0,3767,364,1,0,0,0,3768,3769,7,17,0,0,3769,3770,7,12,0,0,3770,3771,7,11,0,0,3771,3772,7,15,0,0,3772,3773,7,22,0,0,3773,3774,7,12,0,0,3774,3775,7,7,0,0,3775,3776,7,4,0,0,3776,366,1,0,0,0,3777,3778,7,17,0,0,3778,3779,7,25,0,0,3779,3780,7,4,0,0,3780,3781,7,3,0,0,3781,3782,7,6,0,0,3782,3783,7,7,0,0,3783,368,1,0,0,0,3784,3785,7,17,0,0,3785,3786,7,11,0,0,3786,3787,7,3,0,0,3787,3788,7,22,0,0,3788,3789,7,7,0,0,3789,370,1,0,0,0,3790,3791,7,17,0,0,3791,3792,7,11,0,0,3792,3793,7,7,0,0,3793,372,1,0,0,0,3794,3795,7,17,0,0,3795,3796,7,11,0,0,3796,3797,7,15,0,0,3797,3798,7,12,0,0,3798,3799,7,22,0,0,3799,374,1,0,0,0,3800,3801,7,24,0,0,3801,3802,7,3,0,0,3802,3803,7,5,0,0,3803,3804,7,17,0,0,3804,3805,7,7,0,0,3805,3806,7,11,0,0,3806,376,1,0,0,0,3807,3808,7,9,0,0,3808,3809,7,20,0,0,3809,3810,7,7,0,0,3810,3811,7,12,0,0,3811,378,1,0,0,0,3812,3813,7,9,0,0,3813,3814,7,20,0,0,3814,3815,7,7,0,0,3815,3816,7,8,0,0,3816,3817,7,7,0,0,3817,380,1,0,0,0,3818,3819,7,9,0,0,3819,3820,7,20,0,0,3820,3821,7,15,0,0,3821,3822,7,5,0,0,3822,3823,7,7,0,0,3823,382,1,0,0,0,3824,3825,7,9,0,0,3825,3826,7,15,0,0,3826,3827,7,6,0,0,3827,3828,7,20,0,0,3828,384,1,0,0,0,3829,3830,7,9,0,0,3830,3831,7,8,0,0,3831,3832,7,15,0,0,3832,3833,7,6,0,0,3833,3834,7,7,0,0,3834,386,1,0,0,0,3835,3836,7,26,0,0,3836,3837,7,19,0,0,3837,3838,7,8,0,0,3838,388,1,0,0,0,3839,3840,7,13,0,0,3840,3841,7,7,0,0,3841,3842,7,8,0,0,3842,3843,7,19,0,0,3843,3844,7,18,0,0,3844,3845,7,15,0,0,3845,3846,7,5,0,0,3846,3847,7,5,0,0,3847,390,1,0,0,0,3848,3849,7,6,0,0,3849,3850,7,15,0,0,3850,3851,7,12,0,0,3851,3852,7,10,0,0,3852,3853,7,15,0,0,3853,3854,7,12,0,0,3854,3855,7,6,0,0,3855,392,1,0,0,0,3856,3857,7,11,0,0,3857,3858,7,23,0,0,3858,3859,7,3,0,0,3859,3860,7,5,0,0,3860,3861,7,5,0,0,3861,3862,7,15,0,0,3862,3863,7,12,0,0,3863,3864,7,6,0,0,3864,394,1,0,0,0,3865,3866,7,23,0,0,3866,3867,7,7,0,0,3867,3868,7,4,0,0,3868,3869,7,15,0,0,3869,3870,7,17,0,0,3870,3871,7,23,0,0,3871,3872,7,15,0,0,3872,3873,7,12,0,0,3873,3874,7,6,0,0,3874,396,1,0,0,0,3875,3876,7,23,0,0,3876,3877,7,15,0,0,3877,3878,7,4,0,0,3878,3879,7,4,0,0,3879,3880,7,5,0,0,3880,3881,7,7,0,0,3881,3882,7,15,0,0,3882,3883,7,12,0,0,3883,3884,7,6,0,0,3884,398,1,0,0,0,3885,3886,7,15,0,0,3886,3887,7,12,0,0,3887,3888,7,6,0,0,3888,400,1,0,0,0,3889,3890,7,15,0,0,3890,3891,7,12,0,0,3891,3892,7,6,0,0,3892,3893,5,49,0,0,3893,402,1,0,0,0,3894,3895,7,15,0,0,3895,3896,7,12,0,0,3896,3897,7,6,0,0,3897,3898,5,50,0,0,3898,404,1,0,0,0,3899,3900,7,15,0,0,3900,3901,7,12,0,0,3901,3902,7,6,0,0,3902,3903,5,51,0,0,3903,406,1,0,0,0,3904,3905,7,15,0,0,3905,3906,7,12,0,0,3906,3907,7,6,0,0,3907,3908,5,52,0,0,3908,408,1,0,0,0,3909,3910,7,15,0,0,3910,3911,7,12,0,0,3911,3912,7,6,0,0,3912,3913,5,56,0,0,3913,410,1,0,0,0,3914,3915,7,15,0,0,3915,3916,7,12,0,0,3916,3917,7,6,0,0,3917,3918,7,7,0,0,3918,3919,7,22,0,0,3919,3920,7,7,0,0,3920,3921,7,8,0,0,3921,412,1,0,0,0,3922,3923,7,16,0,0,3923,3924,7,15,0,0,3924,3925,7,22,0,0,3925,3926,7,15,0,0,3926,3927,7,12,0,0,3927,3928,7,6,0,0,3928,414,1,0,0,0,3929,3930,7,8,0,0,3930,3931,7,7,0,0,3931,3932,7,3,0,0,3932,3933,7,5,0,0,3933,416,1,0,0,0,3934,3935,7,4,0,0,3935,3936,7,19,0,0,3936,3937,7,17,0,0,3937,3938,7,16,0,0,3938,3939,7,5,0,0,3939,3940,7,7,0,0,3940,418,1,0,0,0,3941,3942,7,25,0,0,3942,3943,7,8,0,0,3943,3944,7,7,0,0,3944,3945,7,14,0,0,3945,3946,7,15,0,0,3946,3947,7,11,0,0,3947,3948,7,15,0,0,3948,3949,7,19,0,0,3949,3950,7,12,0,0,3950,420,1,0,0,0,3951,3952,7,18,0,0,3952,3953,7,5,0,0,3953,3954,7,19,0,0,3954,3955,7,3,0,0,3955,3956,7,6,0,0,3956,422,1,0,0,0,3957,3958,7,18,0,0,3958,3959,7,5,0,0,3959,3960,7,19,0,0,3960,3961,7,3,0,0,3961,3962,7,6,0,0,3962,3963,5,52,0,0,3963,424,1,0,0,0,3964,3965,7,18,0,0,3965,3966,7,5,0,0,3966,3967,7,19,0,0,3967,3968,7,3,0,0,3968,3969,7,6,0,0,3969,3970,5,56,0,0,3970,426,1,0,0,0,3971,3972,7,4,0,0,3972,3973,7,7,0,0,3973,3974,7,14,0,0,3974,3975,7,15,0,0,3975,3976,7,23,0,0,3976,3977,7,3,0,0,3977,3978,7,5,0,0,3978,428,1,0,0,0,3979,3980,7,4,0,0,3980,3981,7,7,0,0,3981,3982,7,14,0,0,3982,430,1,0,0,0,3983,3984,7,12,0,0,3984,3985,7,17,0,0,3985,3986,7,23,0,0,3986,3987,7,7,0,0,3987,3988,7,8,0,0,3988,3989,7,15,0,0,3989,3990,7,14,0,0,3990,432,1,0,0,0,3991,3992,7,4,0,0,3992,3993,7,3,0,0,3993,3994,7,6,0,0,3994,3995,7,7,0,0,3995,434,1,0,0,0,3996,3997,7,6,0,0,3997,3998,7,15,0,0,3998,3999,7,23,0,0,3999,4e3,7,7,0,0,4e3,436,1,0,0,0,4001,4002,7,6,0,0,4002,4003,7,15,0,0,4003,4004,7,23,0,0,4004,4005,7,7,0,0,4005,4006,7,11,0,0,4006,4007,7,6,0,0,4007,4008,7,3,0,0,4008,4009,7,23,0,0,4009,4010,7,25,0,0,4010,438,1,0,0,0,4011,4012,7,4,0,0,4012,4013,7,3,0,0,4013,4014,7,6,0,0,4014,4015,7,7,0,0,4015,4016,7,6,0,0,4016,4017,7,15,0,0,4017,4018,7,23,0,0,4018,4019,7,7,0,0,4019,440,1,0,0,0,4020,4021,7,10,0,0,4021,4022,7,7,0,0,4022,4023,7,3,0,0,4023,4024,7,8,0,0,4024,442,1,0,0,0,4025,4026,7,14,0,0,4026,4027,7,20,0,0,4027,4028,7,3,0,0,4028,4029,7,8,0,0,4029,444,1,0,0,0,4030,4031,7,24,0,0,4031,4032,7,3,0,0,4032,4033,7,8,0,0,4033,4034,7,14,0,0,4034,4035,7,20,0,0,4035,4036,7,3,0,0,4036,4037,7,8,0,0,4037,446,1,0,0,0,4038,4039,7,12,0,0,4039,4040,7,24,0,0,4040,4041,7,3,0,0,4041,4042,7,8,0,0,4042,4043,7,14,0,0,4043,4044,7,20,0,0,4044,4045,7,3,0,0,4045,4046,7,8,0,0,4046,448,1,0,0,0,4047,4048,7,12,0,0,4048,4049,7,3,0,0,4049,4050,7,6,0,0,4050,4051,7,15,0,0,4051,4052,7,19,0,0,4052,4053,7,12,0,0,4053,4054,7,3,0,0,4054,4055,7,5,0,0,4055,450,1,0,0,0,4056,4057,7,16,0,0,4057,4058,7,15,0,0,4058,4059,7,12,0,0,4059,4060,7,3,0,0,4060,4061,7,8,0,0,4061,4062,7,10,0,0,4062,452,1,0,0,0,4063,4064,7,24,0,0,4064,4065,7,3,0,0,4065,4066,7,8,0,0,4066,4067,7,16,0,0,4067,4068,7,15,0,0,4068,4069,7,12,0,0,4069,4070,7,3,0,0,4070,4071,7,8,0,0,4071,4072,7,10,0,0,4072,454,1,0,0,0,4073,4074,7,6,0,0,4074,4075,7,15,0,0,4075,4076,7,12,0,0,4076,4077,7,10,0,0,4077,4078,7,16,0,0,4078,4079,7,5,0,0,4079,4080,7,19,0,0,4080,4081,7,16,0,0,4081,456,1,0,0,0,4082,4083,7,16,0,0,4083,4084,7,5,0,0,4084,4085,7,19,0,0,4085,4086,7,16,0,0,4086,458,1,0,0,0,4087,4088,7,23,0,0,4088,4089,7,7,0,0,4089,4090,7,4,0,0,4090,4091,7,15,0,0,4091,4092,7,17,0,0,4092,4093,7,23,0,0,4093,4094,7,16,0,0,4094,4095,7,5,0,0,4095,4096,7,19,0,0,4096,4097,7,16,0,0,4097,460,1,0,0,0,4098,4099,7,5,0,0,4099,4100,7,19,0,0,4100,4101,7,12,0,0,4101,4102,7,22,0,0,4102,462,1,0,0,0,4103,4104,7,5,0,0,4104,4105,7,19,0,0,4105,4106,7,12,0,0,4106,4107,7,22,0,0,4107,4108,7,16,0,0,4108,4109,7,5,0,0,4109,4110,7,19,0,0,4110,4111,7,16,0,0,4111,464,1,0,0,0,4112,4113,7,6,0,0,4113,4114,7,15,0,0,4114,4115,7,12,0,0,4115,4116,7,10,0,0,4116,4117,7,6,0,0,4117,4118,7,7,0,0,4118,4119,7,26,0,0,4119,4120,7,6,0,0,4120,466,1,0,0,0,4121,4122,7,6,0,0,4122,4123,7,7,0,0,4123,4124,7,26,0,0,4124,4125,7,6,0,0,4125,468,1,0,0,0,4126,4127,7,23,0,0,4127,4128,7,7,0,0,4128,4129,7,4,0,0,4129,4130,7,15,0,0,4130,4131,7,17,0,0,4131,4132,7,23,0,0,4132,4133,7,6,0,0,4133,4134,7,7,0,0,4134,4135,7,26,0,0,4135,4136,7,6,0,0,4136,470,1,0,0,0,4137,4138,7,5,0,0,4138,4139,7,19,0,0,4139,4140,7,12,0,0,4140,4141,7,22,0,0,4141,4142,7,6,0,0,4142,4143,7,7,0,0,4143,4144,7,26,0,0,4144,4145,7,6,0,0,4145,472,1,0,0,0,4146,4147,7,7,0,0,4147,4148,7,12,0,0,4148,4149,7,17,0,0,4149,4150,7,23,0,0,4150,474,1,0,0,0,4151,4152,7,24,0,0,4152,4153,7,3,0,0,4153,4154,7,8,0,0,4154,4155,7,10,0,0,4155,4156,7,15,0,0,4156,4157,7,12,0,0,4157,4158,7,22,0,0,4158,476,1,0,0,0,4159,4160,7,11,0,0,4160,4161,7,7,0,0,4161,4162,7,8,0,0,4162,4163,7,15,0,0,4163,4164,7,3,0,0,4164,4165,7,5,0,0,4165,478,1,0,0,0,4166,4167,7,10,0,0,4167,4168,7,7,0,0,4168,4169,7,3,0,0,4169,4170,7,8,0,0,4170,4171,5,95,0,0,4171,4172,7,23,0,0,4172,4173,7,19,0,0,4173,4174,7,12,0,0,4174,4175,7,6,0,0,4175,4176,7,20,0,0,4176,480,1,0,0,0,4177,4178,7,4,0,0,4178,4179,7,3,0,0,4179,4180,7,10,0,0,4180,4181,5,95,0,0,4181,4182,7,20,0,0,4182,4183,7,19,0,0,4183,4184,7,17,0,0,4184,4185,7,8,0,0,4185,482,1,0,0,0,4186,4187,7,4,0,0,4187,4188,7,3,0,0,4188,4189,7,10,0,0,4189,4190,5,95,0,0,4190,4191,7,23,0,0,4191,4192,7,15,0,0,4192,4193,7,12,0,0,4193,4194,7,17,0,0,4194,4195,7,6,0,0,4195,4196,7,7,0,0,4196,484,1,0,0,0,4197,4198,7,4,0,0,4198,4199,7,3,0,0,4199,4200,7,10,0,0,4200,4201,5,95,0,0,4201,4202,7,11,0,0,4202,4203,7,7,0,0,4203,4204,7,14,0,0,4204,4205,7,19,0,0,4205,4206,7,12,0,0,4206,4207,7,4,0,0,4207,486,1,0,0,0,4208,4209,7,20,0,0,4209,4210,7,19,0,0,4210,4211,7,17,0,0,4211,4212,7,8,0,0,4212,4213,5,95,0,0,4213,4214,7,23,0,0,4214,4215,7,15,0,0,4215,4216,7,12,0,0,4216,4217,7,17,0,0,4217,4218,7,6,0,0,4218,4219,7,7,0,0,4219,488,1,0,0,0,4220,4221,7,20,0,0,4221,4222,7,19,0,0,4222,4223,7,17,0,0,4223,4224,7,8,0,0,4224,4225,5,95,0,0,4225,4226,7,11,0,0,4226,4227,7,7,0,0,4227,4228,7,14,0,0,4228,4229,7,19,0,0,4229,4230,7,12,0,0,4230,4231,7,4,0,0,4231,490,1,0,0,0,4232,4233,7,23,0,0,4233,4234,7,15,0,0,4234,4235,7,12,0,0,4235,4236,7,17,0,0,4236,4237,7,6,0,0,4237,4238,7,7,0,0,4238,4239,5,95,0,0,4239,4240,7,11,0,0,4240,4241,7,7,0,0,4241,4242,7,14,0,0,4242,4243,7,19,0,0,4243,4244,7,12,0,0,4244,4245,7,4,0,0,4245,492,1,0,0,0,4246,4247,7,11,0,0,4247,4248,7,7,0,0,4248,4249,7,14,0,0,4249,4250,7,19,0,0,4250,4251,7,12,0,0,4251,4252,7,4,0,0,4252,4253,5,95,0,0,4253,4254,7,23,0,0,4254,4255,7,15,0,0,4255,4256,7,14,0,0,4256,4257,7,8,0,0,4257,4258,7,19,0,0,4258,4259,7,11,0,0,4259,4260,7,7,0,0,4260,4261,7,14,0,0,4261,4262,7,19,0,0,4262,4263,7,12,0,0,4263,4264,7,4,0,0,4264,494,1,0,0,0,4265,4266,7,23,0,0,4266,4267,7,15,0,0,4267,4268,7,12,0,0,4268,4269,7,17,0,0,4269,4270,7,6,0,0,4270,4271,7,7,0,0,4271,4272,5,95,0,0,4272,4273,7,23,0,0,4273,4274,7,15,0,0,4274,4275,7,14,0,0,4275,4276,7,8,0,0,4276,4277,7,19,0,0,4277,4278,7,11,0,0,4278,4279,7,7,0,0,4279,4280,7,14,0,0,4280,4281,7,19,0,0,4281,4282,7,12,0,0,4282,4283,7,4,0,0,4283,496,1,0,0,0,4284,4285,7,20,0,0,4285,4286,7,19,0,0,4286,4287,7,17,0,0,4287,4288,7,8,0,0,4288,4289,5,95,0,0,4289,4290,7,23,0,0,4290,4291,7,15,0,0,4291,4292,7,14,0,0,4292,4293,7,8,0,0,4293,4294,7,19,0,0,4294,4295,7,11,0,0,4295,4296,7,7,0,0,4296,4297,7,14,0,0,4297,4298,7,19,0,0,4298,4299,7,12,0,0,4299,4300,7,4,0,0,4300,498,1,0,0,0,4301,4302,7,4,0,0,4302,4303,7,3,0,0,4303,4304,7,10,0,0,4304,4305,5,95,0,0,4305,4306,7,23,0,0,4306,4307,7,15,0,0,4307,4308,7,14,0,0,4308,4309,7,8,0,0,4309,4310,7,19,0,0,4310,4311,7,11,0,0,4311,4312,7,7,0,0,4312,4313,7,14,0,0,4313,4314,7,19,0,0,4314,4315,7,12,0,0,4315,4316,7,4,0,0,4316,500,1,0,0,0,4317,4318,7,27,0,0,4318,4319,7,11,0,0,4319,4320,7,19,0,0,4320,4321,7,12,0,0,4321,4322,5,95,0,0,4322,4323,7,3,0,0,4323,4324,7,8,0,0,4324,4325,7,8,0,0,4325,4326,7,3,0,0,4326,4327,7,10,0,0,4327,502,1,0,0,0,4328,4329,7,27,0,0,4329,4330,7,11,0,0,4330,4331,7,19,0,0,4331,4332,7,12,0,0,4332,4333,5,95,0,0,4333,4334,7,3,0,0,4334,4335,7,8,0,0,4335,4336,7,8,0,0,4336,4337,7,3,0,0,4337,4338,7,10,0,0,4338,4339,7,3,0,0,4339,4340,7,22,0,0,4340,4341,7,22,0,0,4341,504,1,0,0,0,4342,4343,7,27,0,0,4343,4344,7,11,0,0,4344,4345,7,19,0,0,4345,4346,7,12,0,0,4346,4347,5,95,0,0,4347,4348,7,3,0,0,4348,4349,7,8,0,0,4349,4350,7,8,0,0,4350,4351,7,3,0,0,4351,4352,7,10,0,0,4352,4353,5,95,0,0,4353,4354,7,3,0,0,4354,4355,7,25,0,0,4355,4356,7,25,0,0,4356,4357,7,7,0,0,4357,4358,7,12,0,0,4358,4359,7,4,0,0,4359,506,1,0,0,0,4360,4361,7,27,0,0,4361,4362,7,11,0,0,4362,4363,7,19,0,0,4363,4364,7,12,0,0,4364,4365,5,95,0,0,4365,4366,7,3,0,0,4366,4367,7,8,0,0,4367,4368,7,8,0,0,4368,4369,7,3,0,0,4369,4370,7,10,0,0,4370,4371,5,95,0,0,4371,4372,7,15,0,0,4372,4373,7,12,0,0,4373,4374,7,11,0,0,4374,4375,7,7,0,0,4375,4376,7,8,0,0,4376,4377,7,6,0,0,4377,508,1,0,0,0,4378,4379,7,27,0,0,4379,4380,7,11,0,0,4380,4381,7,19,0,0,4381,4382,7,12,0,0,4382,4383,5,95,0,0,4383,4384,7,14,0,0,4384,4385,7,19,0,0,4385,4386,7,12,0,0,4386,4387,7,6,0,0,4387,4388,7,3,0,0,4388,4389,7,15,0,0,4389,4390,7,12,0,0,4390,4391,7,11,0,0,4391,510,1,0,0,0,4392,4393,7,27,0,0,4393,4394,7,11,0,0,4394,4395,7,19,0,0,4395,4396,7,12,0,0,4396,4397,5,95,0,0,4397,4398,7,14,0,0,4398,4399,7,19,0,0,4399,4400,7,12,0,0,4400,4401,7,6,0,0,4401,4402,7,3,0,0,4402,4403,7,15,0,0,4403,4404,7,12,0,0,4404,4405,7,11,0,0,4405,4406,5,95,0,0,4406,4407,7,25,0,0,4407,4408,7,3,0,0,4408,4409,7,6,0,0,4409,4410,7,20,0,0,4410,512,1,0,0,0,4411,4412,7,27,0,0,4412,4413,7,11,0,0,4413,4414,7,19,0,0,4414,4415,7,12,0,0,4415,4416,5,95,0,0,4416,4417,7,4,0,0,4417,4418,7,7,0,0,4418,4419,7,25,0,0,4419,4420,7,6,0,0,4420,4421,7,20,0,0,4421,514,1,0,0,0,4422,4423,7,27,0,0,4423,4424,7,11,0,0,4424,4425,7,19,0,0,4425,4426,7,12,0,0,4426,4427,5,95,0,0,4427,4428,7,7,0,0,4428,4429,7,26,0,0,4429,4430,7,6,0,0,4430,4431,7,8,0,0,4431,4432,7,3,0,0,4432,4433,7,14,0,0,4433,4434,7,6,0,0,4434,516,1,0,0,0,4435,4436,7,27,0,0,4436,4437,7,11,0,0,4437,4438,7,19,0,0,4438,4439,7,12,0,0,4439,4440,5,95,0,0,4440,4441,7,15,0,0,4441,4442,7,12,0,0,4442,4443,7,11,0,0,4443,4444,7,7,0,0,4444,4445,7,8,0,0,4445,4446,7,6,0,0,4446,518,1,0,0,0,4447,4448,7,27,0,0,4448,4449,7,11,0,0,4449,4450,7,19,0,0,4450,4451,7,12,0,0,4451,4452,5,95,0,0,4452,4453,7,21,0,0,4453,4454,7,7,0,0,4454,4455,7,10,0,0,4455,4456,7,11,0,0,4456,520,1,0,0,0,4457,4458,7,27,0,0,4458,4459,7,11,0,0,4459,4460,7,19,0,0,4460,4461,7,12,0,0,4461,4462,5,95,0,0,4462,4463,7,5,0,0,4463,4464,7,7,0,0,4464,4465,7,12,0,0,4465,4466,7,22,0,0,4466,4467,7,6,0,0,4467,4468,7,20,0,0,4468,522,1,0,0,0,4469,4470,7,27,0,0,4470,4471,7,11,0,0,4471,4472,7,19,0,0,4472,4473,7,12,0,0,4473,4474,5,95,0,0,4474,4475,7,23,0,0,4475,4476,7,7,0,0,4476,4477,7,8,0,0,4477,4478,7,22,0,0,4478,4479,7,7,0,0,4479,524,1,0,0,0,4480,4481,7,27,0,0,4481,4482,7,11,0,0,4482,4483,7,19,0,0,4483,4484,7,12,0,0,4484,4485,5,95,0,0,4485,4486,7,23,0,0,4486,4487,7,7,0,0,4487,4488,7,8,0,0,4488,4489,7,22,0,0,4489,4490,7,7,0,0,4490,4491,5,95,0,0,4491,4492,7,25,0,0,4492,4493,7,3,0,0,4493,4494,7,6,0,0,4494,4495,7,14,0,0,4495,4496,7,20,0,0,4496,526,1,0,0,0,4497,4498,7,27,0,0,4498,4499,7,11,0,0,4499,4500,7,19,0,0,4500,4501,7,12,0,0,4501,4502,5,95,0,0,4502,4503,7,23,0,0,4503,4504,7,7,0,0,4504,4505,7,8,0,0,4505,4506,7,22,0,0,4506,4507,7,7,0,0,4507,4508,5,95,0,0,4508,4509,7,25,0,0,4509,4510,7,8,0,0,4510,4511,7,7,0,0,4511,4512,7,11,0,0,4512,4513,7,7,0,0,4513,4514,7,8,0,0,4514,4515,7,24,0,0,4515,4516,7,7,0,0,4516,528,1,0,0,0,4517,4518,7,27,0,0,4518,4519,7,11,0,0,4519,4520,7,19,0,0,4520,4521,7,12,0,0,4521,4522,5,95,0,0,4522,4523,7,19,0,0,4523,4524,7,16,0,0,4524,4525,7,27,0,0,4525,4526,7,7,0,0,4526,4527,7,14,0,0,4527,4528,7,6,0,0,4528,530,1,0,0,0,4529,4530,7,27,0,0,4530,4531,7,11,0,0,4531,4532,7,19,0,0,4532,4533,7,12,0,0,4533,4534,5,95,0,0,4534,4535,7,19,0,0,4535,4536,7,16,0,0,4536,4537,7,27,0,0,4537,4538,7,7,0,0,4538,4539,7,14,0,0,4539,4540,7,6,0,0,4540,4541,7,3,0,0,4541,4542,7,22,0,0,4542,4543,7,22,0,0,4543,532,1,0,0,0,4544,4545,7,27,0,0,4545,4546,7,11,0,0,4546,4547,7,19,0,0,4547,4548,7,12,0,0,4548,4549,5,95,0,0,4549,4550,7,19,0,0,4550,4551,7,24,0,0,4551,4552,7,7,0,0,4552,4553,7,8,0,0,4553,4554,7,5,0,0,4554,4555,7,3,0,0,4555,4556,7,25,0,0,4556,4557,7,11,0,0,4557,534,1,0,0,0,4558,4559,7,27,0,0,4559,4560,7,11,0,0,4560,4561,7,19,0,0,4561,4562,7,12,0,0,4562,4563,5,95,0,0,4563,4564,7,25,0,0,4564,4565,7,8,0,0,4565,4566,7,7,0,0,4566,4567,7,6,0,0,4567,4568,7,6,0,0,4568,4569,7,10,0,0,4569,536,1,0,0,0,4570,4571,7,27,0,0,4571,4572,7,11,0,0,4572,4573,7,19,0,0,4573,4574,7,12,0,0,4574,4575,5,95,0,0,4575,4576,7,28,0,0,4576,4577,7,17,0,0,4577,4578,7,19,0,0,4578,4579,7,6,0,0,4579,4580,7,7,0,0,4580,538,1,0,0,0,4581,4582,7,27,0,0,4582,4583,7,11,0,0,4583,4584,7,19,0,0,4584,4585,7,12,0,0,4585,4586,5,95,0,0,4586,4587,7,8,0,0,4587,4588,7,7,0,0,4588,4589,7,23,0,0,4589,4590,7,19,0,0,4590,4591,7,24,0,0,4591,4592,7,7,0,0,4592,540,1,0,0,0,4593,4594,7,27,0,0,4594,4595,7,11,0,0,4595,4596,7,19,0,0,4596,4597,7,12,0,0,4597,4598,5,95,0,0,4598,4599,7,8,0,0,4599,4600,7,7,0,0,4600,4601,7,25,0,0,4601,4602,7,5,0,0,4602,4603,7,3,0,0,4603,4604,7,14,0,0,4604,4605,7,7,0,0,4605,542,1,0,0,0,4606,4607,7,27,0,0,4607,4608,7,11,0,0,4608,4609,7,19,0,0,4609,4610,7,12,0,0,4610,4611,5,95,0,0,4611,4612,7,11,0,0,4612,4613,7,14,0,0,4613,4614,7,20,0,0,4614,4615,7,7,0,0,4615,4616,7,23,0,0,4616,4617,7,3,0,0,4617,4618,5,95,0,0,4618,4619,7,24,0,0,4619,4620,7,3,0,0,4620,4621,7,5,0,0,4621,4622,7,15,0,0,4622,4623,7,4,0,0,4623,544,1,0,0,0,4624,4625,7,27,0,0,4625,4626,7,11,0,0,4626,4627,7,19,0,0,4627,4628,7,12,0,0,4628,4629,5,95,0,0,4629,4630,7,11,0,0,4630,4631,7,14,0,0,4631,4632,7,20,0,0,4632,4633,7,7,0,0,4633,4634,7,23,0,0,4634,4635,7,3,0,0,4635,4636,5,95,0,0,4636,4637,7,24,0,0,4637,4638,7,3,0,0,4638,4639,7,5,0,0,4639,4640,7,15,0,0,4640,4641,7,4,0,0,4641,4642,7,3,0,0,4642,4643,7,6,0,0,4643,4644,7,15,0,0,4644,4645,7,19,0,0,4645,4646,7,12,0,0,4646,4647,5,95,0,0,4647,4648,7,8,0,0,4648,4649,7,7,0,0,4649,4650,7,25,0,0,4650,4651,7,19,0,0,4651,4652,7,8,0,0,4652,4653,7,6,0,0,4653,546,1,0,0,0,4654,4655,7,27,0,0,4655,4656,7,11,0,0,4656,4657,7,19,0,0,4657,4658,7,12,0,0,4658,4659,5,95,0,0,4659,4660,7,11,0,0,4660,4661,7,7,0,0,4661,4662,7,3,0,0,4662,4663,7,8,0,0,4663,4664,7,14,0,0,4664,4665,7,20,0,0,4665,548,1,0,0,0,4666,4667,7,27,0,0,4667,4668,7,11,0,0,4668,4669,7,19,0,0,4669,4670,7,12,0,0,4670,4671,5,95,0,0,4671,4672,7,11,0,0,4672,4673,7,7,0,0,4673,4674,7,6,0,0,4674,550,1,0,0,0,4675,4676,7,27,0,0,4676,4677,7,11,0,0,4677,4678,7,19,0,0,4678,4679,7,12,0,0,4679,4680,5,95,0,0,4680,4681,7,11,0,0,4681,4682,7,6,0,0,4682,4683,7,19,0,0,4683,4684,7,8,0,0,4684,4685,7,3,0,0,4685,4686,7,22,0,0,4686,4687,7,7,0,0,4687,4688,5,95,0,0,4688,4689,7,18,0,0,4689,4690,7,8,0,0,4690,4691,7,7,0,0,4691,4692,7,7,0,0,4692,552,1,0,0,0,4693,4694,7,27,0,0,4694,4695,7,11,0,0,4695,4696,7,19,0,0,4696,4697,7,12,0,0,4697,4698,5,95,0,0,4698,4699,7,11,0,0,4699,4700,7,6,0,0,4700,4701,7,19,0,0,4701,4702,7,8,0,0,4702,4703,7,3,0,0,4703,4704,7,22,0,0,4704,4705,7,7,0,0,4705,4706,5,95,0,0,4706,4707,7,11,0,0,4707,4708,7,15,0,0,4708,4709,7,13,0,0,4709,4710,7,7,0,0,4710,554,1,0,0,0,4711,4712,7,27,0,0,4712,4713,7,11,0,0,4713,4714,7,19,0,0,4714,4715,7,12,0,0,4715,4716,5,95,0,0,4716,4717,7,6,0,0,4717,4718,7,3,0,0,4718,4719,7,16,0,0,4719,4720,7,5,0,0,4720,4721,7,7,0,0,4721,556,1,0,0,0,4722,4723,7,27,0,0,4723,4724,7,11,0,0,4724,4725,7,19,0,0,4725,4726,7,12,0,0,4726,4727,5,95,0,0,4727,4728,7,6,0,0,4728,4729,7,10,0,0,4729,4730,7,25,0,0,4730,4731,7,7,0,0,4731,558,1,0,0,0,4732,4733,7,27,0,0,4733,4734,7,11,0,0,4734,4735,7,19,0,0,4735,4736,7,12,0,0,4736,4737,5,95,0,0,4737,4738,7,17,0,0,4738,4739,7,12,0,0,4739,4740,7,28,0,0,4740,4741,7,17,0,0,4741,4742,7,19,0,0,4742,4743,7,6,0,0,4743,4744,7,7,0,0,4744,560,1,0,0,0,4745,4746,7,27,0,0,4746,4747,7,11,0,0,4747,4748,7,19,0,0,4748,4749,7,12,0,0,4749,4750,5,95,0,0,4750,4751,7,24,0,0,4751,4752,7,3,0,0,4752,4753,7,5,0,0,4753,4754,7,15,0,0,4754,4755,7,4,0,0,4755,562,1,0,0,0,4756,4757,7,27,0,0,4757,4758,7,11,0,0,4758,4759,7,19,0,0,4759,4760,7,12,0,0,4760,4761,5,95,0,0,4761,4762,7,24,0,0,4762,4763,7,3,0,0,4763,4764,7,5,0,0,4764,4765,7,17,0,0,4765,4766,7,7,0,0,4766,564,1,0,0,0,4767,4768,7,12,0,0,4768,4769,7,7,0,0,4769,4770,7,11,0,0,4770,4771,7,6,0,0,4771,4772,7,7,0,0,4772,4773,7,4,0,0,4773,566,1,0,0,0,4774,4775,7,19,0,0,4775,4776,7,8,0,0,4776,4777,7,4,0,0,4777,4778,7,15,0,0,4778,4779,7,12,0,0,4779,4780,7,3,0,0,4780,4781,7,5,0,0,4781,4782,7,15,0,0,4782,4783,7,6,0,0,4783,4784,7,10,0,0,4784,568,1,0,0,0,4785,4786,7,25,0,0,4786,4787,7,3,0,0,4787,4788,7,6,0,0,4788,4789,7,20,0,0,4789,570,1,0,0,0,4790,4791,7,3,0,0,4791,4792,7,24,0,0,4792,4793,7,22,0,0,4793,572,1,0,0,0,4794,4795,7,16,0,0,4795,4796,7,15,0,0,4796,4797,7,6,0,0,4797,4798,5,95,0,0,4798,4799,7,3,0,0,4799,4800,7,12,0,0,4800,4801,7,4,0,0,4801,574,1,0,0,0,4802,4803,7,16,0,0,4803,4804,7,15,0,0,4804,4805,7,6,0,0,4805,4806,5,95,0,0,4806,4807,7,19,0,0,4807,4808,7,8,0,0,4808,576,1,0,0,0,4809,4810,7,16,0,0,4810,4811,7,15,0,0,4811,4812,7,6,0,0,4812,4813,5,95,0,0,4813,4814,7,26,0,0,4814,4815,7,19,0,0,4815,4816,7,8,0,0,4816,578,1,0,0,0,4817,4818,7,14,0,0,4818,4819,7,19,0,0,4819,4820,7,17,0,0,4820,4821,7,12,0,0,4821,4822,7,6,0,0,4822,580,1,0,0,0,4823,4824,7,14,0,0,4824,4825,7,17,0,0,4825,4826,7,23,0,0,4826,4827,7,7,0,0,4827,4828,5,95,0,0,4828,4829,7,4,0,0,4829,4830,7,15,0,0,4830,4831,7,11,0,0,4831,4832,7,6,0,0,4832,582,1,0,0,0,4833,4834,7,4,0,0,4834,4835,7,7,0,0,4835,4836,7,12,0,0,4836,4837,7,11,0,0,4837,4838,7,7,0,0,4838,4839,5,95,0,0,4839,4840,7,8,0,0,4840,4841,7,3,0,0,4841,4842,7,12,0,0,4842,4843,7,21,0,0,4843,584,1,0,0,0,4844,4845,7,18,0,0,4845,4846,7,15,0,0,4846,4847,7,8,0,0,4847,4848,7,11,0,0,4848,4849,7,6,0,0,4849,4850,5,95,0,0,4850,4851,7,24,0,0,4851,4852,7,3,0,0,4852,4853,7,5,0,0,4853,4854,7,17,0,0,4854,4855,7,7,0,0,4855,586,1,0,0,0,4856,4857,7,22,0,0,4857,4858,7,8,0,0,4858,4859,7,19,0,0,4859,4860,7,17,0,0,4860,4861,7,25,0,0,4861,4862,5,95,0,0,4862,4863,7,14,0,0,4863,4864,7,19,0,0,4864,4865,7,12,0,0,4865,4866,7,14,0,0,4866,4867,7,3,0,0,4867,4868,7,6,0,0,4868,588,1,0,0,0,4869,4870,7,5,0,0,4870,4871,7,3,0,0,4871,4872,7,22,0,0,4872,590,1,0,0,0,4873,4874,7,5,0,0,4874,4875,7,3,0,0,4875,4876,7,11,0,0,4876,4877,7,6,0,0,4877,4878,5,95,0,0,4878,4879,7,24,0,0,4879,4880,7,3,0,0,4880,4881,7,5,0,0,4881,4882,7,17,0,0,4882,4883,7,7,0,0,4883,592,1,0,0,0,4884,4885,7,5,0,0,4885,4886,7,7,0,0,4886,4887,7,3,0,0,4887,4888,7,4,0,0,4888,594,1,0,0,0,4889,4890,7,23,0,0,4890,4891,7,3,0,0,4891,4892,7,26,0,0,4892,596,1,0,0,0,4893,4894,7,23,0,0,4894,4895,7,15,0,0,4895,4896,7,12,0,0,4896,598,1,0,0,0,4897,4898,7,12,0,0,4898,4899,7,6,0,0,4899,4900,7,15,0,0,4900,4901,7,5,0,0,4901,4902,7,7,0,0,4902,600,1,0,0,0,4903,4904,7,12,0,0,4904,4905,7,6,0,0,4905,4906,7,20,0,0,4906,4907,5,95,0,0,4907,4908,7,24,0,0,4908,4909,7,3,0,0,4909,4910,7,5,0,0,4910,4911,7,17,0,0,4911,4912,7,7,0,0,4912,602,1,0,0,0,4913,4914,7,25,0,0,4914,4915,7,7,0,0,4915,4916,7,8,0,0,4916,4917,7,14,0,0,4917,4918,7,7,0,0,4918,4919,7,12,0,0,4919,4920,7,6,0,0,4920,4921,5,95,0,0,4921,4922,7,8,0,0,4922,4923,7,3,0,0,4923,4924,7,12,0,0,4924,4925,7,21,0,0,4925,604,1,0,0,0,4926,4927,7,8,0,0,4927,4928,7,3,0,0,4928,4929,7,12,0,0,4929,4930,7,21,0,0,4930,606,1,0,0,0,4931,4932,7,8,0,0,4932,4933,7,19,0,0,4933,4934,7,9,0,0,4934,4935,5,95,0,0,4935,4936,7,12,0,0,4936,4937,7,17,0,0,4937,4938,7,23,0,0,4938,4939,7,16,0,0,4939,4940,7,7,0,0,4940,4941,7,8,0,0,4941,608,1,0,0,0,4942,4943,7,11,0,0,4943,4944,7,6,0,0,4944,4945,7,4,0,0,4945,610,1,0,0,0,4946,4947,7,11,0,0,4947,4948,7,6,0,0,4948,4949,7,4,0,0,4949,4950,7,4,0,0,4950,4951,7,7,0,0,4951,4952,7,24,0,0,4952,612,1,0,0,0,4953,4954,7,11,0,0,4954,4955,7,6,0,0,4955,4956,7,4,0,0,4956,4957,7,4,0,0,4957,4958,7,7,0,0,4958,4959,7,24,0,0,4959,4960,5,95,0,0,4960,4961,7,25,0,0,4961,4962,7,19,0,0,4962,4963,7,25,0,0,4963,614,1,0,0,0,4964,4965,7,11,0,0,4965,4966,7,6,0,0,4966,4967,7,4,0,0,4967,4968,7,4,0,0,4968,4969,7,7,0,0,4969,4970,7,24,0,0,4970,4971,5,95,0,0,4971,4972,7,11,0,0,4972,4973,7,3,0,0,4973,4974,7,23,0,0,4974,4975,7,25,0,0,4975,616,1,0,0,0,4976,4977,7,11,0,0,4977,4978,7,17,0,0,4978,4979,7,23,0,0,4979,618,1,0,0,0,4980,4981,7,24,0,0,4981,4982,7,3,0,0,4982,4983,7,8,0,0,4983,4984,5,95,0,0,4984,4985,7,25,0,0,4985,4986,7,19,0,0,4986,4987,7,25,0,0,4987,620,1,0,0,0,4988,4989,7,24,0,0,4989,4990,7,3,0,0,4990,4991,7,8,0,0,4991,4992,5,95,0,0,4992,4993,7,11,0,0,4993,4994,7,3,0,0,4994,4995,7,23,0,0,4995,4996,7,25,0,0,4996,622,1,0,0,0,4997,4998,7,24,0,0,4998,4999,7,3,0,0,4999,5e3,7,8,0,0,5e3,5001,7,15,0,0,5001,5002,7,3,0,0,5002,5003,7,12,0,0,5003,5004,7,14,0,0,5004,5005,7,7,0,0,5005,624,1,0,0,0,5006,5007,7,14,0,0,5007,5008,7,17,0,0,5008,5009,7,8,0,0,5009,5010,7,8,0,0,5010,5011,7,7,0,0,5011,5012,7,12,0,0,5012,5013,7,6,0,0,5013,5014,5,95,0,0,5014,5015,7,4,0,0,5015,5016,7,3,0,0,5016,5017,7,6,0,0,5017,5018,7,7,0,0,5018,626,1,0,0,0,5019,5020,7,14,0,0,5020,5021,7,17,0,0,5021,5022,7,8,0,0,5022,5023,7,8,0,0,5023,5024,7,7,0,0,5024,5025,7,12,0,0,5025,5026,7,6,0,0,5026,5027,5,95,0,0,5027,5028,7,6,0,0,5028,5029,7,15,0,0,5029,5030,7,23,0,0,5030,5031,7,7,0,0,5031,628,1,0,0,0,5032,5033,7,14,0,0,5033,5034,7,17,0,0,5034,5035,7,8,0,0,5035,5036,7,8,0,0,5036,5037,7,7,0,0,5037,5038,7,12,0,0,5038,5039,7,6,0,0,5039,5040,5,95,0,0,5040,5041,7,6,0,0,5041,5042,7,15,0,0,5042,5043,7,23,0,0,5043,5044,7,7,0,0,5044,5045,7,11,0,0,5045,5046,7,6,0,0,5046,5047,7,3,0,0,5047,5048,7,23,0,0,5048,5049,7,25,0,0,5049,630,1,0,0,0,5050,5051,7,5,0,0,5051,5052,7,19,0,0,5052,5053,7,14,0,0,5053,5054,7,3,0,0,5054,5055,7,5,0,0,5055,5056,7,6,0,0,5056,5057,7,15,0,0,5057,5058,7,23,0,0,5058,5059,7,7,0,0,5059,632,1,0,0,0,5060,5061,7,14,0,0,5061,5062,7,17,0,0,5062,5063,7,8,0,0,5063,5064,7,4,0,0,5064,5065,7,3,0,0,5065,5066,7,6,0,0,5066,5067,7,7,0,0,5067,634,1,0,0,0,5068,5069,7,14,0,0,5069,5070,7,17,0,0,5070,5071,7,8,0,0,5071,5072,7,6,0,0,5072,5073,7,15,0,0,5073,5074,7,23,0,0,5074,5075,7,7,0,0,5075,636,1,0,0,0,5076,5077,7,4,0,0,5077,5078,7,3,0,0,5078,5079,7,6,0,0,5079,5080,7,7,0,0,5080,5081,5,95,0,0,5081,5082,7,3,0,0,5082,5083,7,4,0,0,5083,5084,7,4,0,0,5084,638,1,0,0,0,5085,5086,7,4,0,0,5086,5087,7,3,0,0,5087,5088,7,6,0,0,5088,5089,7,7,0,0,5089,5090,5,95,0,0,5090,5091,7,11,0,0,5091,5092,7,17,0,0,5092,5093,7,16,0,0,5093,640,1,0,0,0,5094,5095,7,7,0,0,5095,5096,7,26,0,0,5096,5097,7,6,0,0,5097,5098,7,8,0,0,5098,5099,7,3,0,0,5099,5100,7,14,0,0,5100,5101,7,6,0,0,5101,642,1,0,0,0,5102,5103,7,5,0,0,5103,5104,7,19,0,0,5104,5105,7,14,0,0,5105,5106,7,3,0,0,5106,5107,7,5,0,0,5107,5108,7,6,0,0,5108,5109,7,15,0,0,5109,5110,7,23,0,0,5110,5111,7,7,0,0,5111,5112,7,11,0,0,5112,5113,7,6,0,0,5113,5114,7,3,0,0,5114,5115,7,23,0,0,5115,5116,7,25,0,0,5116,644,1,0,0,0,5117,5118,7,12,0,0,5118,5119,7,19,0,0,5119,5120,7,9,0,0,5120,646,1,0,0,0,5121,5122,7,25,0,0,5122,5123,7,19,0,0,5123,5124,7,11,0,0,5124,5125,7,15,0,0,5125,5126,7,6,0,0,5126,5127,7,15,0,0,5127,5128,7,19,0,0,5128,5129,7,12,0,0,5129,648,1,0,0,0,5130,5131,7,11,0,0,5131,5132,7,17,0,0,5132,5133,7,16,0,0,5133,5134,7,11,0,0,5134,5135,7,6,0,0,5135,5136,7,8,0,0,5136,650,1,0,0,0,5137,5138,7,11,0,0,5138,5139,7,17,0,0,5139,5140,7,16,0,0,5140,5141,7,11,0,0,5141,5142,7,6,0,0,5142,5143,7,8,0,0,5143,5144,7,15,0,0,5144,5145,7,12,0,0,5145,5146,7,22,0,0,5146,652,1,0,0,0,5147,5148,7,11,0,0,5148,5149,7,10,0,0,5149,5150,7,11,0,0,5150,5151,7,4,0,0,5151,5152,7,3,0,0,5152,5153,7,6,0,0,5153,5154,7,7,0,0,5154,654,1,0,0,0,5155,5156,7,6,0,0,5156,5157,7,8,0,0,5157,5158,7,15,0,0,5158,5159,7,23,0,0,5159,656,1,0,0,0,5160,5161,7,17,0,0,5161,5162,7,6,0,0,5162,5163,7,14,0,0,5163,5164,5,95,0,0,5164,5165,7,4,0,0,5165,5166,7,3,0,0,5166,5167,7,6,0,0,5167,5168,7,7,0,0,5168,658,1,0,0,0,5169,5170,7,17,0,0,5170,5171,7,6,0,0,5171,5172,7,14,0,0,5172,5173,5,95,0,0,5173,5174,7,6,0,0,5174,5175,7,15,0,0,5175,5176,7,23,0,0,5176,5177,7,7,0,0,5177,660,1,0,0,0,5178,5179,7,17,0,0,5179,5180,7,6,0,0,5180,5181,7,14,0,0,5181,5182,5,95,0,0,5182,5183,7,6,0,0,5183,5184,7,15,0,0,5184,5185,7,23,0,0,5185,5186,7,7,0,0,5186,5187,7,11,0,0,5187,5188,7,6,0,0,5188,5189,7,3,0,0,5189,5190,7,23,0,0,5190,5191,7,25,0,0,5191,662,1,0,0,0,5192,5193,7,3,0,0,5193,5194,7,14,0,0,5194,5195,7,14,0,0,5195,5196,7,19,0,0,5196,5197,7,17,0,0,5197,5198,7,12,0,0,5198,5199,7,6,0,0,5199,664,1,0,0,0,5200,5201,7,3,0,0,5201,5202,7,14,0,0,5202,5203,7,6,0,0,5203,5204,7,15,0,0,5204,5205,7,19,0,0,5205,5206,7,12,0,0,5206,666,1,0,0,0,5207,5208,7,3,0,0,5208,5209,7,18,0,0,5209,5210,7,6,0,0,5210,5211,7,7,0,0,5211,5212,7,8,0,0,5212,668,1,0,0,0,5213,5214,7,3,0,0,5214,5215,7,22,0,0,5215,5216,7,22,0,0,5216,5217,7,8,0,0,5217,5218,7,7,0,0,5218,5219,7,22,0,0,5219,5220,7,3,0,0,5220,5221,7,6,0,0,5221,5222,7,7,0,0,5222,670,1,0,0,0,5223,5224,7,3,0,0,5224,5225,7,5,0,0,5225,5226,7,22,0,0,5226,5227,7,19,0,0,5227,5228,7,8,0,0,5228,5229,7,15,0,0,5229,5230,7,6,0,0,5230,5231,7,20,0,0,5231,5232,7,23,0,0,5232,672,1,0,0,0,5233,5234,7,3,0,0,5234,5235,7,12,0,0,5235,5236,7,10,0,0,5236,674,1,0,0,0,5237,5238,7,3,0,0,5238,5239,7,6,0,0,5239,676,1,0,0,0,5240,5241,7,3,0,0,5241,5242,7,17,0,0,5242,5243,7,6,0,0,5243,5244,7,20,0,0,5244,5245,7,19,0,0,5245,5246,7,8,0,0,5246,5247,7,11,0,0,5247,678,1,0,0,0,5248,5249,7,3,0,0,5249,5250,7,17,0,0,5250,5251,7,6,0,0,5251,5252,7,19,0,0,5252,5253,7,14,0,0,5253,5254,7,19,0,0,5254,5255,7,23,0,0,5255,5256,7,23,0,0,5256,5257,7,15,0,0,5257,5258,7,6,0,0,5258,680,1,0,0,0,5259,5260,7,3,0,0,5260,5261,7,17,0,0,5261,5262,7,6,0,0,5262,5263,7,19,0,0,5263,5264,7,7,0,0,5264,5265,7,26,0,0,5265,5266,7,6,0,0,5266,5267,7,7,0,0,5267,5268,7,12,0,0,5268,5269,7,4,0,0,5269,5270,5,95,0,0,5270,5271,7,11,0,0,5271,5272,7,15,0,0,5272,5273,7,13,0,0,5273,5274,7,7,0,0,5274,682,1,0,0,0,5275,5276,7,3,0,0,5276,5277,7,17,0,0,5277,5278,7,6,0,0,5278,5279,7,19,0,0,5279,5280,5,95,0,0,5280,5281,7,15,0,0,5281,5282,7,12,0,0,5282,5283,7,14,0,0,5283,5284,7,8,0,0,5284,5285,7,7,0,0,5285,5286,7,23,0,0,5286,5287,7,7,0,0,5287,5288,7,12,0,0,5288,5289,7,6,0,0,5289,684,1,0,0,0,5290,5291,7,3,0,0,5291,5292,7,24,0,0,5292,5293,7,22,0,0,5293,5294,5,95,0,0,5294,5295,7,8,0,0,5295,5296,7,19,0,0,5296,5297,7,9,0,0,5297,5298,5,95,0,0,5298,5299,7,5,0,0,5299,5300,7,7,0,0,5300,5301,7,12,0,0,5301,5302,7,22,0,0,5302,5303,7,6,0,0,5303,5304,7,20,0,0,5304,686,1,0,0,0,5305,5306,7,16,0,0,5306,5307,7,7,0,0,5307,5308,7,22,0,0,5308,5309,7,15,0,0,5309,5310,7,12,0,0,5310,688,1,0,0,0,5311,5312,7,16,0,0,5312,5313,7,15,0,0,5313,5314,7,12,0,0,5314,5315,7,5,0,0,5315,5316,7,19,0,0,5316,5317,7,22,0,0,5317,690,1,0,0,0,5318,5319,7,16,0,0,5319,5320,7,15,0,0,5320,5321,7,6,0,0,5321,692,1,0,0,0,5322,5323,7,16,0,0,5323,5324,7,5,0,0,5324,5325,7,19,0,0,5325,5326,7,14,0,0,5326,5327,7,21,0,0,5327,694,1,0,0,0,5328,5329,7,16,0,0,5329,5330,7,19,0,0,5330,5331,7,19,0,0,5331,5332,7,5,0,0,5332,696,1,0,0,0,5333,5334,7,16,0,0,5334,5335,7,19,0,0,5335,5336,7,19,0,0,5336,5337,7,5,0,0,5337,5338,7,7,0,0,5338,5339,7,3,0,0,5339,5340,7,12,0,0,5340,698,1,0,0,0,5341,5342,7,16,0,0,5342,5343,7,6,0,0,5343,5344,7,8,0,0,5344,5345,7,7,0,0,5345,5346,7,7,0,0,5346,700,1,0,0,0,5347,5348,7,14,0,0,5348,5349,7,3,0,0,5349,5350,7,14,0,0,5350,5351,7,20,0,0,5351,5352,7,7,0,0,5352,702,1,0,0,0,5353,5354,7,14,0,0,5354,5355,7,3,0,0,5355,5356,7,11,0,0,5356,5357,7,14,0,0,5357,5358,7,3,0,0,5358,5359,7,4,0,0,5359,5360,7,7,0,0,5360,5361,7,4,0,0,5361,704,1,0,0,0,5362,5363,7,14,0,0,5363,5364,7,20,0,0,5364,5365,7,3,0,0,5365,5366,7,15,0,0,5366,5367,7,12,0,0,5367,706,1,0,0,0,5368,5369,7,14,0,0,5369,5370,7,20,0,0,5370,5371,7,3,0,0,5371,5372,7,12,0,0,5372,5373,7,22,0,0,5373,5374,7,7,0,0,5374,5375,7,4,0,0,5375,708,1,0,0,0,5376,5377,7,14,0,0,5377,5378,7,20,0,0,5378,5379,7,3,0,0,5379,5380,7,12,0,0,5380,5381,7,12,0,0,5381,5382,7,7,0,0,5382,5383,7,5,0,0,5383,710,1,0,0,0,5384,5385,7,14,0,0,5385,5386,7,20,0,0,5386,5387,7,7,0,0,5387,5388,7,14,0,0,5388,5389,7,21,0,0,5389,5390,7,11,0,0,5390,5391,7,17,0,0,5391,5392,7,23,0,0,5392,712,1,0,0,0,5393,5394,7,25,0,0,5394,5395,7,3,0,0,5395,5396,7,22,0,0,5396,5397,7,7,0,0,5397,5398,5,95,0,0,5398,5399,7,14,0,0,5399,5400,7,20,0,0,5400,5401,7,7,0,0,5401,5402,7,14,0,0,5402,5403,7,21,0,0,5403,5404,7,11,0,0,5404,5405,7,17,0,0,5405,5406,7,23,0,0,5406,714,1,0,0,0,5407,5408,7,14,0,0,5408,5409,7,15,0,0,5409,5410,7,25,0,0,5410,5411,7,20,0,0,5411,5412,7,7,0,0,5412,5413,7,8,0,0,5413,716,1,0,0,0,5414,5415,7,14,0,0,5415,5416,7,5,0,0,5416,5417,7,3,0,0,5417,5418,7,11,0,0,5418,5419,7,11,0,0,5419,5420,5,95,0,0,5420,5421,7,19,0,0,5421,5422,7,8,0,0,5422,5423,7,15,0,0,5423,5424,7,22,0,0,5424,5425,7,15,0,0,5425,5426,7,12,0,0,5426,718,1,0,0,0,5427,5428,7,14,0,0,5428,5429,7,5,0,0,5429,5430,7,15,0,0,5430,5431,7,7,0,0,5431,5432,7,12,0,0,5432,5433,7,6,0,0,5433,720,1,0,0,0,5434,5435,7,14,0,0,5435,5436,7,5,0,0,5436,5437,7,19,0,0,5437,5438,7,11,0,0,5438,5439,7,7,0,0,5439,722,1,0,0,0,5440,5441,7,14,0,0,5441,5442,7,5,0,0,5442,5443,7,17,0,0,5443,5444,7,11,0,0,5444,5445,7,6,0,0,5445,5446,7,7,0,0,5446,5447,7,8,0,0,5447,5448,7,15,0,0,5448,5449,7,12,0,0,5449,5450,7,22,0,0,5450,724,1,0,0,0,5451,5452,7,14,0,0,5452,5453,7,19,0,0,5453,5454,7,3,0,0,5454,5455,7,5,0,0,5455,5456,7,7,0,0,5456,5457,7,11,0,0,5457,5458,7,14,0,0,5458,5459,7,7,0,0,5459,726,1,0,0,0,5460,5461,7,14,0,0,5461,5462,7,19,0,0,5462,5463,7,4,0,0,5463,5464,7,7,0,0,5464,728,1,0,0,0,5465,5466,7,14,0,0,5466,5467,7,19,0,0,5467,5468,7,5,0,0,5468,5469,7,17,0,0,5469,5470,7,23,0,0,5470,5471,7,12,0,0,5471,5472,7,11,0,0,5472,730,1,0,0,0,5473,5474,7,14,0,0,5474,5475,7,19,0,0,5475,5476,7,5,0,0,5476,5477,7,17,0,0,5477,5478,7,23,0,0,5478,5479,7,12,0,0,5479,5480,5,95,0,0,5480,5481,7,18,0,0,5481,5482,7,19,0,0,5482,5483,7,8,0,0,5483,5484,7,23,0,0,5484,5485,7,3,0,0,5485,5486,7,6,0,0,5486,732,1,0,0,0,5487,5488,7,14,0,0,5488,5489,7,19,0,0,5489,5490,7,5,0,0,5490,5491,7,17,0,0,5491,5492,7,23,0,0,5492,5493,7,12,0,0,5493,5494,5,95,0,0,5494,5495,7,12,0,0,5495,5496,7,3,0,0,5496,5497,7,23,0,0,5497,5498,7,7,0,0,5498,734,1,0,0,0,5499,5500,7,14,0,0,5500,5501,7,19,0,0,5501,5502,7,23,0,0,5502,5503,7,23,0,0,5503,5504,7,7,0,0,5504,5505,7,12,0,0,5505,5506,7,6,0,0,5506,736,1,0,0,0,5507,5508,7,14,0,0,5508,5509,7,19,0,0,5509,5510,7,23,0,0,5510,5511,7,23,0,0,5511,5512,7,15,0,0,5512,5513,7,6,0,0,5513,738,1,0,0,0,5514,5515,7,14,0,0,5515,5516,7,19,0,0,5516,5517,7,23,0,0,5517,5518,7,25,0,0,5518,5519,7,3,0,0,5519,5520,7,14,0,0,5520,5521,7,6,0,0,5521,740,1,0,0,0,5522,5523,7,14,0,0,5523,5524,7,19,0,0,5524,5525,7,23,0,0,5525,5526,7,25,0,0,5526,5527,7,5,0,0,5527,5528,7,7,0,0,5528,5529,7,6,0,0,5529,5530,7,15,0,0,5530,5531,7,19,0,0,5531,5532,7,12,0,0,5532,742,1,0,0,0,5533,5534,7,14,0,0,5534,5535,7,19,0,0,5535,5536,7,23,0,0,5536,5537,7,25,0,0,5537,5538,7,8,0,0,5538,5539,7,7,0,0,5539,5540,7,11,0,0,5540,5541,7,11,0,0,5541,5542,7,7,0,0,5542,5543,7,4,0,0,5543,744,1,0,0,0,5544,5545,7,14,0,0,5545,5546,7,19,0,0,5546,5547,7,23,0,0,5547,5548,7,25,0,0,5548,5549,7,8,0,0,5549,5550,7,7,0,0,5550,5551,7,11,0,0,5551,5552,7,11,0,0,5552,5553,7,15,0,0,5553,5554,7,19,0,0,5554,5555,7,12,0,0,5555,746,1,0,0,0,5556,5557,7,14,0,0,5557,5558,7,19,0,0,5558,5559,7,12,0,0,5559,5560,7,14,0,0,5560,5561,7,17,0,0,5561,5562,7,8,0,0,5562,5563,7,8,0,0,5563,5564,7,7,0,0,5564,5565,7,12,0,0,5565,5566,7,6,0,0,5566,748,1,0,0,0,5567,5568,7,14,0,0,5568,5569,7,19,0,0,5569,5570,7,12,0,0,5570,5571,7,12,0,0,5571,5572,7,7,0,0,5572,5573,7,14,0,0,5573,5574,7,6,0,0,5574,750,1,0,0,0,5575,5576,7,14,0,0,5576,5577,7,19,0,0,5577,5578,7,12,0,0,5578,5579,7,12,0,0,5579,5580,7,7,0,0,5580,5581,7,14,0,0,5581,5582,7,6,0,0,5582,5583,7,15,0,0,5583,5584,7,19,0,0,5584,5585,7,12,0,0,5585,752,1,0,0,0,5586,5587,7,14,0,0,5587,5588,7,19,0,0,5588,5589,7,12,0,0,5589,5590,7,11,0,0,5590,5591,7,15,0,0,5591,5592,7,11,0,0,5592,5593,7,6,0,0,5593,5594,7,7,0,0,5594,5595,7,12,0,0,5595,5596,7,6,0,0,5596,754,1,0,0,0,5597,5598,7,14,0,0,5598,5599,7,19,0,0,5599,5600,7,12,0,0,5600,5601,7,11,0,0,5601,5602,7,6,0,0,5602,5603,7,8,0,0,5603,5604,7,3,0,0,5604,5605,7,15,0,0,5605,5606,7,12,0,0,5606,5607,7,6,0,0,5607,5608,5,95,0,0,5608,5609,7,14,0,0,5609,5610,7,3,0,0,5610,5611,7,6,0,0,5611,5612,7,3,0,0,5612,5613,7,5,0,0,5613,5614,7,19,0,0,5614,5615,7,22,0,0,5615,756,1,0,0,0,5616,5617,7,14,0,0,5617,5618,7,19,0,0,5618,5619,7,12,0,0,5619,5620,7,11,0,0,5620,5621,7,6,0,0,5621,5622,7,8,0,0,5622,5623,7,3,0,0,5623,5624,7,15,0,0,5624,5625,7,12,0,0,5625,5626,7,6,0,0,5626,5627,5,95,0,0,5627,5628,7,11,0,0,5628,5629,7,14,0,0,5629,5630,7,20,0,0,5630,5631,7,7,0,0,5631,5632,7,23,0,0,5632,5633,7,3,0,0,5633,758,1,0,0,0,5634,5635,7,14,0,0,5635,5636,7,19,0,0,5636,5637,7,12,0,0,5637,5638,7,11,0,0,5638,5639,7,6,0,0,5639,5640,7,8,0,0,5640,5641,7,3,0,0,5641,5642,7,15,0,0,5642,5643,7,12,0,0,5643,5644,7,6,0,0,5644,5645,5,95,0,0,5645,5646,7,12,0,0,5646,5647,7,3,0,0,5647,5648,7,23,0,0,5648,5649,7,7,0,0,5649,760,1,0,0,0,5650,5651,7,14,0,0,5651,5652,7,19,0,0,5652,5653,7,12,0,0,5653,5654,7,6,0,0,5654,5655,7,3,0,0,5655,5656,7,15,0,0,5656,5657,7,12,0,0,5657,5658,7,11,0,0,5658,762,1,0,0,0,5659,5660,7,14,0,0,5660,5661,7,19,0,0,5661,5662,7,12,0,0,5662,5663,7,6,0,0,5663,5664,7,7,0,0,5664,5665,7,26,0,0,5665,5666,7,6,0,0,5666,764,1,0,0,0,5667,5668,7,14,0,0,5668,5669,7,19,0,0,5669,5670,7,12,0,0,5670,5671,7,6,0,0,5671,5672,7,8,0,0,5672,5673,7,15,0,0,5673,5674,7,16,0,0,5674,5675,7,17,0,0,5675,5676,7,6,0,0,5676,5677,7,19,0,0,5677,5678,7,8,0,0,5678,5679,7,11,0,0,5679,766,1,0,0,0,5680,5681,7,14,0,0,5681,5682,7,19,0,0,5682,5683,7,25,0,0,5683,5684,7,10,0,0,5684,768,1,0,0,0,5685,5686,7,14,0,0,5686,5687,7,25,0,0,5687,5688,7,17,0,0,5688,770,1,0,0,0,5689,5690,7,14,0,0,5690,5691,7,10,0,0,5691,5692,7,14,0,0,5692,5693,7,5,0,0,5693,5694,7,7,0,0,5694,772,1,0,0,0,5695,5696,7,14,0,0,5696,5697,7,17,0,0,5697,5698,7,8,0,0,5698,5699,7,11,0,0,5699,5700,7,19,0,0,5700,5701,7,8,0,0,5701,5702,5,95,0,0,5702,5703,7,12,0,0,5703,5704,7,3,0,0,5704,5705,7,23,0,0,5705,5706,7,7,0,0,5706,774,1,0,0,0,5707,5708,7,4,0,0,5708,5709,7,3,0,0,5709,5710,7,6,0,0,5710,5711,7,3,0,0,5711,776,1,0,0,0,5712,5713,7,4,0,0,5713,5714,7,3,0,0,5714,5715,7,6,0,0,5715,5716,7,3,0,0,5716,5717,7,18,0,0,5717,5718,7,15,0,0,5718,5719,7,5,0,0,5719,5720,7,7,0,0,5720,778,1,0,0,0,5721,5722,7,4,0,0,5722,5723,7,7,0,0,5723,5724,7,3,0,0,5724,5725,7,5,0,0,5725,5726,7,5,0,0,5726,5727,7,19,0,0,5727,5728,7,14,0,0,5728,5729,7,3,0,0,5729,5730,7,6,0,0,5730,5731,7,7,0,0,5731,780,1,0,0,0,5732,5733,7,4,0,0,5733,5734,7,7,0,0,5734,5735,7,18,0,0,5735,5736,7,3,0,0,5736,5737,7,17,0,0,5737,5738,7,5,0,0,5738,5739,7,6,0,0,5739,5740,5,95,0,0,5740,5741,7,3,0,0,5741,5742,7,17,0,0,5742,5743,7,6,0,0,5743,5744,7,20,0,0,5744,782,1,0,0,0,5745,5746,7,4,0,0,5746,5747,7,7,0,0,5747,5748,7,18,0,0,5748,5749,7,15,0,0,5749,5750,7,12,0,0,5750,5751,7,7,0,0,5751,5752,7,8,0,0,5752,784,1,0,0,0,5753,5754,7,4,0,0,5754,5755,7,7,0,0,5755,5756,7,5,0,0,5756,5757,7,3,0,0,5757,5758,7,10,0,0,5758,5759,5,95,0,0,5759,5760,7,21,0,0,5760,5761,7,7,0,0,5761,5762,7,10,0,0,5762,5763,5,95,0,0,5763,5764,7,9,0,0,5764,5765,7,8,0,0,5765,5766,7,15,0,0,5766,5767,7,6,0,0,5767,5768,7,7,0,0,5768,786,1,0,0,0,5769,5770,7,4,0,0,5770,5771,7,7,0,0,5771,5772,7,11,0,0,5772,5773,5,95,0,0,5773,5774,7,21,0,0,5774,5775,7,7,0,0,5775,5776,7,10,0,0,5776,5777,5,95,0,0,5777,5778,7,18,0,0,5778,5779,7,15,0,0,5779,5780,7,5,0,0,5780,5781,7,7,0,0,5781,788,1,0,0,0,5782,5783,7,4,0,0,5783,5784,7,15,0,0,5784,5785,7,8,0,0,5785,5786,7,7,0,0,5786,5787,7,14,0,0,5787,5788,7,6,0,0,5788,5789,7,19,0,0,5789,5790,7,8,0,0,5790,5791,7,10,0,0,5791,790,1,0,0,0,5792,5793,7,4,0,0,5793,5794,7,15,0,0,5794,5795,7,11,0,0,5795,5796,7,3,0,0,5796,5797,7,16,0,0,5797,5798,7,5,0,0,5798,5799,7,7,0,0,5799,792,1,0,0,0,5800,5801,7,4,0,0,5801,5802,7,15,0,0,5802,5803,7,11,0,0,5803,5804,7,14,0,0,5804,5805,7,3,0,0,5805,5806,7,8,0,0,5806,5807,7,4,0,0,5807,794,1,0,0,0,5808,5809,7,4,0,0,5809,5810,7,15,0,0,5810,5811,7,11,0,0,5811,5812,7,21,0,0,5812,796,1,0,0,0,5813,5814,7,4,0,0,5814,5815,7,19,0,0,5815,798,1,0,0,0,5816,5817,7,4,0,0,5817,5818,7,17,0,0,5818,5819,7,23,0,0,5819,5820,7,25,0,0,5820,5821,7,18,0,0,5821,5822,7,15,0,0,5822,5823,7,5,0,0,5823,5824,7,7,0,0,5824,800,1,0,0,0,5825,5826,7,4,0,0,5826,5827,7,17,0,0,5827,5828,7,25,0,0,5828,5829,7,5,0,0,5829,5830,7,15,0,0,5830,5831,7,14,0,0,5831,5832,7,3,0,0,5832,5833,7,6,0,0,5833,5834,7,7,0,0,5834,802,1,0,0,0,5835,5836,7,4,0,0,5836,5837,7,10,0,0,5837,5838,7,12,0,0,5838,5839,7,3,0,0,5839,5840,7,23,0,0,5840,5841,7,15,0,0,5841,5842,7,14,0,0,5842,804,1,0,0,0,5843,5844,7,7,0,0,5844,5845,7,12,0,0,5845,5846,7,3,0,0,5846,5847,7,16,0,0,5847,5848,7,5,0,0,5848,5849,7,7,0,0,5849,806,1,0,0,0,5850,5851,7,7,0,0,5851,5852,7,12,0,0,5852,5853,7,14,0,0,5853,5854,7,8,0,0,5854,5855,7,10,0,0,5855,5856,7,25,0,0,5856,5857,7,6,0,0,5857,5858,7,7,0,0,5858,5859,7,4,0,0,5859,808,1,0,0,0,5860,5861,7,7,0,0,5861,5862,7,12,0,0,5862,5863,7,14,0,0,5863,5864,7,8,0,0,5864,5865,7,10,0,0,5865,5866,7,25,0,0,5866,5867,7,6,0,0,5867,5868,7,15,0,0,5868,5869,7,19,0,0,5869,5870,7,12,0,0,5870,810,1,0,0,0,5871,5872,7,7,0,0,5872,5873,7,12,0,0,5873,5874,7,14,0,0,5874,5875,7,8,0,0,5875,5876,7,10,0,0,5876,5877,7,25,0,0,5877,5878,7,6,0,0,5878,5879,7,15,0,0,5879,5880,7,19,0,0,5880,5881,7,12,0,0,5881,5882,5,95,0,0,5882,5883,7,21,0,0,5883,5884,7,7,0,0,5884,5885,7,10,0,0,5885,5886,5,95,0,0,5886,5887,7,15,0,0,5887,5888,7,4,0,0,5888,812,1,0,0,0,5889,5890,7,7,0,0,5890,5891,7,12,0,0,5891,5892,7,4,0,0,5892,814,1,0,0,0,5893,5894,7,7,0,0,5894,5895,7,12,0,0,5895,5896,7,4,0,0,5896,5897,7,11,0,0,5897,816,1,0,0,0,5898,5899,7,7,0,0,5899,5900,7,12,0,0,5900,5901,7,22,0,0,5901,5902,7,15,0,0,5902,5903,7,12,0,0,5903,5904,7,7,0,0,5904,818,1,0,0,0,5905,5906,7,7,0,0,5906,5907,7,12,0,0,5907,5908,7,22,0,0,5908,5909,7,15,0,0,5909,5910,7,12,0,0,5910,5911,7,7,0,0,5911,5912,7,11,0,0,5912,820,1,0,0,0,5913,5914,7,7,0,0,5914,5915,7,8,0,0,5915,5916,7,8,0,0,5916,5917,7,19,0,0,5917,5918,7,8,0,0,5918,822,1,0,0,0,5919,5920,7,7,0,0,5920,5921,7,8,0,0,5921,5922,7,8,0,0,5922,5923,7,19,0,0,5923,5924,7,8,0,0,5924,5925,7,11,0,0,5925,824,1,0,0,0,5926,5927,7,7,0,0,5927,5928,7,11,0,0,5928,5929,7,14,0,0,5929,5930,7,3,0,0,5930,5931,7,25,0,0,5931,5932,7,7,0,0,5932,826,1,0,0,0,5933,5934,7,7,0,0,5934,5935,7,24,0,0,5935,5936,7,7,0,0,5936,5937,7,12,0,0,5937,828,1,0,0,0,5938,5939,7,7,0,0,5939,5940,7,24,0,0,5940,5941,7,7,0,0,5941,5942,7,12,0,0,5942,5943,7,6,0,0,5943,830,1,0,0,0,5944,5945,7,7,0,0,5945,5946,7,24,0,0,5946,5947,7,7,0,0,5947,5948,7,12,0,0,5948,5949,7,6,0,0,5949,5950,7,11,0,0,5950,832,1,0,0,0,5951,5952,7,7,0,0,5952,5953,7,24,0,0,5953,5954,7,7,0,0,5954,5955,7,8,0,0,5955,5956,7,10,0,0,5956,834,1,0,0,0,5957,5958,7,7,0,0,5958,5959,7,26,0,0,5959,5960,7,14,0,0,5960,5961,7,20,0,0,5961,5962,7,3,0,0,5962,5963,7,12,0,0,5963,5964,7,22,0,0,5964,5965,7,7,0,0,5965,836,1,0,0,0,5966,5967,7,7,0,0,5967,5968,7,26,0,0,5968,5969,7,14,0,0,5969,5970,7,5,0,0,5970,5971,7,17,0,0,5971,5972,7,11,0,0,5972,5973,7,15,0,0,5973,5974,7,24,0,0,5974,5975,7,7,0,0,5975,838,1,0,0,0,5976,5977,7,7,0,0,5977,5978,7,26,0,0,5978,5979,7,25,0,0,5979,5980,7,15,0,0,5980,5981,7,8,0,0,5981,5982,7,7,0,0,5982,840,1,0,0,0,5983,5984,7,7,0,0,5984,5985,7,26,0,0,5985,5986,7,25,0,0,5986,5987,7,19,0,0,5987,5988,7,8,0,0,5988,5989,7,6,0,0,5989,842,1,0,0,0,5990,5991,7,7,0,0,5991,5992,7,26,0,0,5992,5993,7,6,0,0,5993,5994,7,7,0,0,5994,5995,7,12,0,0,5995,5996,7,4,0,0,5996,5997,7,7,0,0,5997,5998,7,4,0,0,5998,844,1,0,0,0,5999,6e3,7,7,0,0,6e3,6001,7,26,0,0,6001,6002,7,6,0,0,6002,6003,7,7,0,0,6003,6004,7,12,0,0,6004,6005,7,6,0,0,6005,6006,5,95,0,0,6006,6007,7,11,0,0,6007,6008,7,15,0,0,6008,6009,7,13,0,0,6009,6010,7,7,0,0,6010,846,1,0,0,0,6011,6012,7,18,0,0,6012,6013,7,3,0,0,6013,6014,7,15,0,0,6014,6015,7,5,0,0,6015,6016,7,7,0,0,6016,6017,7,4,0,0,6017,6018,5,95,0,0,6018,6019,7,5,0,0,6019,6020,7,19,0,0,6020,6021,7,22,0,0,6021,6022,7,15,0,0,6022,6023,7,12,0,0,6023,6024,5,95,0,0,6024,6025,7,3,0,0,6025,6026,7,6,0,0,6026,6027,7,6,0,0,6027,6028,7,7,0,0,6028,6029,7,23,0,0,6029,6030,7,25,0,0,6030,6031,7,6,0,0,6031,6032,7,11,0,0,6032,848,1,0,0,0,6033,6034,7,18,0,0,6034,6035,7,3,0,0,6035,6036,7,11,0,0,6036,6037,7,6,0,0,6037,850,1,0,0,0,6038,6039,7,18,0,0,6039,6040,7,3,0,0,6040,6041,7,17,0,0,6041,6042,7,5,0,0,6042,6043,7,6,0,0,6043,6044,7,11,0,0,6044,852,1,0,0,0,6045,6046,7,18,0,0,6046,6047,7,15,0,0,6047,6048,7,7,0,0,6048,6049,7,5,0,0,6049,6050,7,4,0,0,6050,6051,7,11,0,0,6051,854,1,0,0,0,6052,6053,7,18,0,0,6053,6054,7,15,0,0,6054,6055,7,5,0,0,6055,6056,7,7,0,0,6056,6057,5,95,0,0,6057,6058,7,16,0,0,6058,6059,7,5,0,0,6059,6060,7,19,0,0,6060,6061,7,14,0,0,6061,6062,7,21,0,0,6062,6063,5,95,0,0,6063,6064,7,11,0,0,6064,6065,7,15,0,0,6065,6066,7,13,0,0,6066,6067,7,7,0,0,6067,856,1,0,0,0,6068,6069,7,18,0,0,6069,6070,7,15,0,0,6070,6071,7,5,0,0,6071,6072,7,6,0,0,6072,6073,7,7,0,0,6073,6074,7,8,0,0,6074,858,1,0,0,0,6075,6076,7,18,0,0,6076,6077,7,15,0,0,6077,6078,7,8,0,0,6078,6079,7,11,0,0,6079,6080,7,6,0,0,6080,860,1,0,0,0,6081,6082,7,18,0,0,6082,6083,7,15,0,0,6083,6084,7,26,0,0,6084,6085,7,7,0,0,6085,6086,7,4,0,0,6086,862,1,0,0,0,6087,6088,7,18,0,0,6088,6089,7,5,0,0,6089,6090,7,17,0,0,6090,6091,7,11,0,0,6091,6092,7,20,0,0,6092,864,1,0,0,0,6093,6094,7,18,0,0,6094,6095,7,19,0,0,6095,6096,7,5,0,0,6096,6097,7,5,0,0,6097,6098,7,19,0,0,6098,6099,7,9,0,0,6099,6100,7,15,0,0,6100,6101,7,12,0,0,6101,6102,7,22,0,0,6102,866,1,0,0,0,6103,6104,7,18,0,0,6104,6105,7,19,0,0,6105,6106,7,5,0,0,6106,6107,7,5,0,0,6107,6108,7,19,0,0,6108,6109,7,9,0,0,6109,6110,7,11,0,0,6110,868,1,0,0,0,6111,6112,7,18,0,0,6112,6113,7,19,0,0,6113,6114,7,17,0,0,6114,6115,7,12,0,0,6115,6116,7,4,0,0,6116,870,1,0,0,0,6117,6118,7,18,0,0,6118,6119,7,17,0,0,6119,6120,7,5,0,0,6120,6121,7,5,0,0,6121,872,1,0,0,0,6122,6123,7,18,0,0,6123,6124,7,17,0,0,6124,6125,7,12,0,0,6125,6126,7,14,0,0,6126,6127,7,6,0,0,6127,6128,7,15,0,0,6128,6129,7,19,0,0,6129,6130,7,12,0,0,6130,874,1,0,0,0,6131,6132,7,22,0,0,6132,6133,7,7,0,0,6133,6134,7,12,0,0,6134,6135,7,7,0,0,6135,6136,7,8,0,0,6136,6137,7,3,0,0,6137,6138,7,5,0,0,6138,876,1,0,0,0,6139,6140,7,22,0,0,6140,6141,7,5,0,0,6141,6142,7,19,0,0,6142,6143,7,16,0,0,6143,6144,7,3,0,0,6144,6145,7,5,0,0,6145,878,1,0,0,0,6146,6147,7,22,0,0,6147,6148,7,8,0,0,6148,6149,7,3,0,0,6149,6150,7,12,0,0,6150,6151,7,6,0,0,6151,6152,7,11,0,0,6152,880,1,0,0,0,6153,6154,7,22,0,0,6154,6155,7,8,0,0,6155,6156,7,19,0,0,6156,6157,7,17,0,0,6157,6158,7,25,0,0,6158,6159,5,95,0,0,6159,6160,7,8,0,0,6160,6161,7,7,0,0,6161,6162,7,25,0,0,6162,6163,7,5,0,0,6163,6164,7,15,0,0,6164,6165,7,14,0,0,6165,6166,7,3,0,0,6166,6167,7,6,0,0,6167,6168,7,15,0,0,6168,6169,7,19,0,0,6169,6170,7,12,0,0,6170,882,1,0,0,0,6171,6172,7,20,0,0,6172,6173,7,3,0,0,6173,6174,7,12,0,0,6174,6175,7,4,0,0,6175,6176,7,5,0,0,6176,6177,7,7,0,0,6177,6178,7,8,0,0,6178,884,1,0,0,0,6179,6180,7,20,0,0,6180,6181,7,3,0,0,6181,6182,7,11,0,0,6182,6183,7,20,0,0,6183,886,1,0,0,0,6184,6185,7,20,0,0,6185,6186,7,7,0,0,6186,6187,7,5,0,0,6187,6188,7,25,0,0,6188,888,1,0,0,0,6189,6190,7,20,0,0,6190,6191,7,15,0,0,6191,6192,7,11,0,0,6192,6193,7,6,0,0,6193,6194,7,19,0,0,6194,6195,7,8,0,0,6195,6196,7,10,0,0,6196,890,1,0,0,0,6197,6198,7,20,0,0,6198,6199,7,19,0,0,6199,6200,7,11,0,0,6200,6201,7,6,0,0,6201,892,1,0,0,0,6202,6203,7,20,0,0,6203,6204,7,19,0,0,6204,6205,7,11,0,0,6205,6206,7,6,0,0,6206,6207,7,11,0,0,6207,894,1,0,0,0,6208,6209,7,15,0,0,6209,6210,7,4,0,0,6210,6211,7,7,0,0,6211,6212,7,12,0,0,6212,6213,7,6,0,0,6213,6214,7,15,0,0,6214,6215,7,18,0,0,6215,6216,7,15,0,0,6216,6217,7,7,0,0,6217,6218,7,4,0,0,6218,896,1,0,0,0,6219,6220,7,15,0,0,6220,6221,7,22,0,0,6221,6222,7,12,0,0,6222,6223,7,19,0,0,6223,6224,7,8,0,0,6224,6225,7,7,0,0,6225,6226,5,95,0,0,6226,6227,7,11,0,0,6227,6228,7,7,0,0,6228,6229,7,8,0,0,6229,6230,7,24,0,0,6230,6231,7,7,0,0,6231,6232,7,8,0,0,6232,6233,5,95,0,0,6233,6234,7,15,0,0,6234,6235,7,4,0,0,6235,6236,7,11,0,0,6236,898,1,0,0,0,6237,6238,7,15,0,0,6238,6239,7,23,0,0,6239,6240,7,25,0,0,6240,6241,7,19,0,0,6241,6242,7,8,0,0,6242,6243,7,6,0,0,6243,900,1,0,0,0,6244,6245,7,15,0,0,6245,6246,7,12,0,0,6246,6247,7,14,0,0,6247,6248,7,8,0,0,6248,6249,7,7,0,0,6249,6250,7,23,0,0,6250,6251,7,7,0,0,6251,6252,7,12,0,0,6252,6253,7,6,0,0,6253,902,1,0,0,0,6254,6255,7,15,0,0,6255,6256,7,12,0,0,6256,6257,7,4,0,0,6257,6258,7,7,0,0,6258,6259,7,26,0,0,6259,6260,7,7,0,0,6260,6261,7,11,0,0,6261,904,1,0,0,0,6262,6263,7,15,0,0,6263,6264,7,12,0,0,6264,6265,7,15,0,0,6265,6266,7,6,0,0,6266,6267,7,15,0,0,6267,6268,7,3,0,0,6268,6269,7,5,0,0,6269,6270,5,95,0,0,6270,6271,7,11,0,0,6271,6272,7,15,0,0,6272,6273,7,13,0,0,6273,6274,7,7,0,0,6274,906,1,0,0,0,6275,6276,7,15,0,0,6276,6277,7,12,0,0,6277,6278,7,25,0,0,6278,6279,7,5,0,0,6279,6280,7,3,0,0,6280,6281,7,14,0,0,6281,6282,7,7,0,0,6282,908,1,0,0,0,6283,6284,7,15,0,0,6284,6285,7,12,0,0,6285,6286,7,11,0,0,6286,6287,7,7,0,0,6287,6288,7,8,0,0,6288,6289,7,6,0,0,6289,6290,5,95,0,0,6290,6291,7,23,0,0,6291,6292,7,7,0,0,6292,6293,7,6,0,0,6293,6294,7,20,0,0,6294,6295,7,19,0,0,6295,6296,7,4,0,0,6296,910,1,0,0,0,6297,6298,7,15,0,0,6298,6299,7,12,0,0,6299,6300,7,11,0,0,6300,6301,7,6,0,0,6301,6302,7,3,0,0,6302,6303,7,5,0,0,6303,6304,7,5,0,0,6304,912,1,0,0,0,6305,6306,7,15,0,0,6306,6307,7,12,0,0,6307,6308,7,11,0,0,6308,6309,7,6,0,0,6309,6310,7,3,0,0,6310,6311,7,12,0,0,6311,6312,7,14,0,0,6312,6313,7,7,0,0,6313,914,1,0,0,0,6314,6315,7,15,0,0,6315,6316,7,12,0,0,6316,6317,7,11,0,0,6317,6318,7,6,0,0,6318,6319,7,3,0,0,6319,6320,7,12,0,0,6320,6321,7,6,0,0,6321,916,1,0,0,0,6322,6323,7,15,0,0,6323,6324,7,12,0,0,6324,6325,7,24,0,0,6325,6326,7,15,0,0,6326,6327,7,11,0,0,6327,6328,7,15,0,0,6328,6329,7,16,0,0,6329,6330,7,5,0,0,6330,6331,7,7,0,0,6331,918,1,0,0,0,6332,6333,7,15,0,0,6333,6334,7,12,0,0,6334,6335,7,24,0,0,6335,6336,7,19,0,0,6336,6337,7,21,0,0,6337,6338,7,7,0,0,6338,6339,7,8,0,0,6339,920,1,0,0,0,6340,6341,7,15,0,0,6341,6342,7,19,0,0,6342,922,1,0,0,0,6343,6344,7,15,0,0,6344,6345,7,19,0,0,6345,6346,5,95,0,0,6346,6347,7,6,0,0,6347,6348,7,20,0,0,6348,6349,7,8,0,0,6349,6350,7,7,0,0,6350,6351,7,3,0,0,6351,6352,7,4,0,0,6352,924,1,0,0,0,6353,6354,7,15,0,0,6354,6355,7,25,0,0,6355,6356,7,14,0,0,6356,926,1,0,0,0,6357,6358,7,15,0,0,6358,6359,7,11,0,0,6359,6360,7,19,0,0,6360,6361,7,5,0,0,6361,6362,7,3,0,0,6362,6363,7,6,0,0,6363,6364,7,15,0,0,6364,6365,7,19,0,0,6365,6366,7,12,0,0,6366,928,1,0,0,0,6367,6368,7,15,0,0,6368,6369,7,11,0,0,6369,6370,7,11,0,0,6370,6371,7,17,0,0,6371,6372,7,7,0,0,6372,6373,7,8,0,0,6373,930,1,0,0,0,6374,6375,7,27,0,0,6375,6376,7,11,0,0,6376,6377,7,19,0,0,6377,6378,7,12,0,0,6378,932,1,0,0,0,6379,6380,7,21,0,0,6380,6381,7,7,0,0,6381,6382,7,10,0,0,6382,6383,5,95,0,0,6383,6384,7,16,0,0,6384,6385,7,5,0,0,6385,6386,7,19,0,0,6386,6387,7,14,0,0,6387,6388,7,21,0,0,6388,6389,5,95,0,0,6389,6390,7,11,0,0,6390,6391,7,15,0,0,6391,6392,7,13,0,0,6392,6393,7,7,0,0,6393,934,1,0,0,0,6394,6395,7,5,0,0,6395,6396,7,3,0,0,6396,6397,7,12,0,0,6397,6398,7,22,0,0,6398,6399,7,17,0,0,6399,6400,7,3,0,0,6400,6401,7,22,0,0,6401,6402,7,7,0,0,6402,936,1,0,0,0,6403,6404,7,5,0,0,6404,6405,7,3,0,0,6405,6406,7,11,0,0,6406,6407,7,6,0,0,6407,938,1,0,0,0,6408,6409,7,5,0,0,6409,6410,7,7,0,0,6410,6411,7,3,0,0,6411,6412,7,24,0,0,6412,6413,7,7,0,0,6413,6414,7,11,0,0,6414,940,1,0,0,0,6415,6416,7,5,0,0,6416,6417,7,7,0,0,6417,6418,7,11,0,0,6418,6419,7,11,0,0,6419,942,1,0,0,0,6420,6421,7,5,0,0,6421,6422,7,7,0,0,6422,6423,7,24,0,0,6423,6424,7,7,0,0,6424,6425,7,5,0,0,6425,944,1,0,0,0,6426,6427,7,5,0,0,6427,6428,7,15,0,0,6428,6429,7,11,0,0,6429,6430,7,6,0,0,6430,946,1,0,0,0,6431,6432,7,5,0,0,6432,6433,7,19,0,0,6433,6434,7,14,0,0,6434,6435,7,3,0,0,6435,6436,7,5,0,0,6436,948,1,0,0,0,6437,6438,7,5,0,0,6438,6439,7,19,0,0,6439,6440,7,22,0,0,6440,6441,7,18,0,0,6441,6442,7,15,0,0,6442,6443,7,5,0,0,6443,6444,7,7,0,0,6444,950,1,0,0,0,6445,6446,7,5,0,0,6446,6447,7,19,0,0,6447,6448,7,22,0,0,6448,6449,7,11,0,0,6449,952,1,0,0,0,6450,6451,7,23,0,0,6451,6452,7,3,0,0,6452,6453,7,11,0,0,6453,6454,7,6,0,0,6454,6455,7,7,0,0,6455,6456,7,8,0,0,6456,954,1,0,0,0,6457,6458,7,23,0,0,6458,6459,7,3,0,0,6459,6460,7,11,0,0,6460,6461,7,6,0,0,6461,6462,7,7,0,0,6462,6463,7,8,0,0,6463,6464,5,95,0,0,6464,6465,7,3,0,0,6465,6466,7,17,0,0,6466,6467,7,6,0,0,6467,6468,7,19,0,0,6468,6469,5,95,0,0,6469,6470,7,25,0,0,6470,6471,7,19,0,0,6471,6472,7,11,0,0,6472,6473,7,15,0,0,6473,6474,7,6,0,0,6474,6475,7,15,0,0,6475,6476,7,19,0,0,6476,6477,7,12,0,0,6477,956,1,0,0,0,6478,6479,7,23,0,0,6479,6480,7,3,0,0,6480,6481,7,11,0,0,6481,6482,7,6,0,0,6482,6483,7,7,0,0,6483,6484,7,8,0,0,6484,6485,5,95,0,0,6485,6486,7,14,0,0,6486,6487,7,19,0,0,6487,6488,7,12,0,0,6488,6489,7,12,0,0,6489,6490,7,7,0,0,6490,6491,7,14,0,0,6491,6492,7,6,0,0,6492,6493,5,95,0,0,6493,6494,7,8,0,0,6494,6495,7,7,0,0,6495,6496,7,6,0,0,6496,6497,7,8,0,0,6497,6498,7,10,0,0,6498,958,1,0,0,0,6499,6500,7,23,0,0,6500,6501,7,3,0,0,6501,6502,7,11,0,0,6502,6503,7,6,0,0,6503,6504,7,7,0,0,6504,6505,7,8,0,0,6505,6506,5,95,0,0,6506,6507,7,4,0,0,6507,6508,7,7,0,0,6508,6509,7,5,0,0,6509,6510,7,3,0,0,6510,6511,7,10,0,0,6511,960,1,0,0,0,6512,6513,7,23,0,0,6513,6514,7,3,0,0,6514,6515,7,11,0,0,6515,6516,7,6,0,0,6516,6517,7,7,0,0,6517,6518,7,8,0,0,6518,6519,5,95,0,0,6519,6520,7,20,0,0,6520,6521,7,7,0,0,6521,6522,7,3,0,0,6522,6523,7,8,0,0,6523,6524,7,6,0,0,6524,6525,7,16,0,0,6525,6526,7,7,0,0,6526,6527,7,3,0,0,6527,6528,7,6,0,0,6528,6529,5,95,0,0,6529,6530,7,25,0,0,6530,6531,7,7,0,0,6531,6532,7,8,0,0,6532,6533,7,15,0,0,6533,6534,7,19,0,0,6534,6535,7,4,0,0,6535,962,1,0,0,0,6536,6537,7,23,0,0,6537,6538,7,3,0,0,6538,6539,7,11,0,0,6539,6540,7,6,0,0,6540,6541,7,7,0,0,6541,6542,7,8,0,0,6542,6543,5,95,0,0,6543,6544,7,20,0,0,6544,6545,7,19,0,0,6545,6546,7,11,0,0,6546,6547,7,6,0,0,6547,964,1,0,0,0,6548,6549,7,23,0,0,6549,6550,7,3,0,0,6550,6551,7,11,0,0,6551,6552,7,6,0,0,6552,6553,7,7,0,0,6553,6554,7,8,0,0,6554,6555,5,95,0,0,6555,6556,7,5,0,0,6556,6557,7,19,0,0,6557,6558,7,22,0,0,6558,6559,5,95,0,0,6559,6560,7,18,0,0,6560,6561,7,15,0,0,6561,6562,7,5,0,0,6562,6563,7,7,0,0,6563,966,1,0,0,0,6564,6565,7,23,0,0,6565,6566,7,3,0,0,6566,6567,7,11,0,0,6567,6568,7,6,0,0,6568,6569,7,7,0,0,6569,6570,7,8,0,0,6570,6571,5,95,0,0,6571,6572,7,5,0,0,6572,6573,7,19,0,0,6573,6574,7,22,0,0,6574,6575,5,95,0,0,6575,6576,7,25,0,0,6576,6577,7,19,0,0,6577,6578,7,11,0,0,6578,968,1,0,0,0,6579,6580,7,23,0,0,6580,6581,7,3,0,0,6581,6582,7,11,0,0,6582,6583,7,6,0,0,6583,6584,7,7,0,0,6584,6585,7,8,0,0,6585,6586,5,95,0,0,6586,6587,7,25,0,0,6587,6588,7,3,0,0,6588,6589,7,11,0,0,6589,6590,7,11,0,0,6590,6591,7,9,0,0,6591,6592,7,19,0,0,6592,6593,7,8,0,0,6593,6594,7,4,0,0,6594,970,1,0,0,0,6595,6596,7,23,0,0,6596,6597,7,3,0,0,6597,6598,7,11,0,0,6598,6599,7,6,0,0,6599,6600,7,7,0,0,6600,6601,7,8,0,0,6601,6602,5,95,0,0,6602,6603,7,25,0,0,6603,6604,7,19,0,0,6604,6605,7,8,0,0,6605,6606,7,6,0,0,6606,972,1,0,0,0,6607,6608,7,23,0,0,6608,6609,7,3,0,0,6609,6610,7,11,0,0,6610,6611,7,6,0,0,6611,6612,7,7,0,0,6612,6613,7,8,0,0,6613,6614,5,95,0,0,6614,6615,7,8,0,0,6615,6616,7,7,0,0,6616,6617,7,6,0,0,6617,6618,7,8,0,0,6618,6619,7,10,0,0,6619,6620,5,95,0,0,6620,6621,7,14,0,0,6621,6622,7,19,0,0,6622,6623,7,17,0,0,6623,6624,7,12,0,0,6624,6625,7,6,0,0,6625,974,1,0,0,0,6626,6627,7,23,0,0,6627,6628,7,3,0,0,6628,6629,7,11,0,0,6629,6630,7,6,0,0,6630,6631,7,7,0,0,6631,6632,7,8,0,0,6632,6633,5,95,0,0,6633,6634,7,11,0,0,6634,6635,7,11,0,0,6635,6636,7,5,0,0,6636,976,1,0,0,0,6637,6638,7,23,0,0,6638,6639,7,3,0,0,6639,6640,7,11,0,0,6640,6641,7,6,0,0,6641,6642,7,7,0,0,6642,6643,7,8,0,0,6643,6644,5,95,0,0,6644,6645,7,11,0,0,6645,6646,7,11,0,0,6646,6647,7,5,0,0,6647,6648,5,95,0,0,6648,6649,7,14,0,0,6649,6650,7,3,0,0,6650,978,1,0,0,0,6651,6652,7,23,0,0,6652,6653,7,3,0,0,6653,6654,7,11,0,0,6654,6655,7,6,0,0,6655,6656,7,7,0,0,6656,6657,7,8,0,0,6657,6658,5,95,0,0,6658,6659,7,11,0,0,6659,6660,7,11,0,0,6660,6661,7,5,0,0,6661,6662,5,95,0,0,6662,6663,7,14,0,0,6663,6664,7,3,0,0,6664,6665,7,25,0,0,6665,6666,7,3,0,0,6666,6667,7,6,0,0,6667,6668,7,20,0,0,6668,980,1,0,0,0,6669,6670,7,23,0,0,6670,6671,7,3,0,0,6671,6672,7,11,0,0,6672,6673,7,6,0,0,6673,6674,7,7,0,0,6674,6675,7,8,0,0,6675,6676,5,95,0,0,6676,6677,7,11,0,0,6677,6678,7,11,0,0,6678,6679,7,5,0,0,6679,6680,5,95,0,0,6680,6681,7,14,0,0,6681,6682,7,7,0,0,6682,6683,7,8,0,0,6683,6684,7,6,0,0,6684,982,1,0,0,0,6685,6686,7,23,0,0,6686,6687,7,3,0,0,6687,6688,7,11,0,0,6688,6689,7,6,0,0,6689,6690,7,7,0,0,6690,6691,7,8,0,0,6691,6692,5,95,0,0,6692,6693,7,11,0,0,6693,6694,7,11,0,0,6694,6695,7,5,0,0,6695,6696,5,95,0,0,6696,6697,7,14,0,0,6697,6698,7,15,0,0,6698,6699,7,25,0,0,6699,6700,7,20,0,0,6700,6701,7,7,0,0,6701,6702,7,8,0,0,6702,984,1,0,0,0,6703,6704,7,23,0,0,6704,6705,7,3,0,0,6705,6706,7,11,0,0,6706,6707,7,6,0,0,6707,6708,7,7,0,0,6708,6709,7,8,0,0,6709,6710,5,95,0,0,6710,6711,7,11,0,0,6711,6712,7,11,0,0,6712,6713,7,5,0,0,6713,6714,5,95,0,0,6714,6715,7,14,0,0,6715,6716,7,8,0,0,6716,6717,7,5,0,0,6717,986,1,0,0,0,6718,6719,7,23,0,0,6719,6720,7,3,0,0,6720,6721,7,11,0,0,6721,6722,7,6,0,0,6722,6723,7,7,0,0,6723,6724,7,8,0,0,6724,6725,5,95,0,0,6725,6726,7,11,0,0,6726,6727,7,11,0,0,6727,6728,7,5,0,0,6728,6729,5,95,0,0,6729,6730,7,14,0,0,6730,6731,7,8,0,0,6731,6732,7,5,0,0,6732,6733,7,25,0,0,6733,6734,7,3,0,0,6734,6735,7,6,0,0,6735,6736,7,20,0,0,6736,988,1,0,0,0,6737,6738,7,23,0,0,6738,6739,7,3,0,0,6739,6740,7,11,0,0,6740,6741,7,6,0,0,6741,6742,7,7,0,0,6742,6743,7,8,0,0,6743,6744,5,95,0,0,6744,6745,7,11,0,0,6745,6746,7,11,0,0,6746,6747,7,5,0,0,6747,6748,5,95,0,0,6748,6749,7,21,0,0,6749,6750,7,7,0,0,6750,6751,7,10,0,0,6751,990,1,0,0,0,6752,6753,7,23,0,0,6753,6754,7,3,0,0,6754,6755,7,11,0,0,6755,6756,7,6,0,0,6756,6757,7,7,0,0,6757,6758,7,8,0,0,6758,6759,5,95,0,0,6759,6760,7,6,0,0,6760,6761,7,5,0,0,6761,6762,7,11,0,0,6762,6763,5,95,0,0,6763,6764,7,24,0,0,6764,6765,7,7,0,0,6765,6766,7,8,0,0,6766,6767,7,11,0,0,6767,6768,7,15,0,0,6768,6769,7,19,0,0,6769,6770,7,12,0,0,6770,992,1,0,0,0,6771,6772,7,23,0,0,6772,6773,7,3,0,0,6773,6774,7,11,0,0,6774,6775,7,6,0,0,6775,6776,7,7,0,0,6776,6777,7,8,0,0,6777,6778,5,95,0,0,6778,6779,7,17,0,0,6779,6780,7,11,0,0,6780,6781,7,7,0,0,6781,6782,7,8,0,0,6782,994,1,0,0,0,6783,6784,7,23,0,0,6784,6785,7,3,0,0,6785,6786,7,26,0,0,6786,6787,5,95,0,0,6787,6788,7,14,0,0,6788,6789,7,19,0,0,6789,6790,7,12,0,0,6790,6791,7,12,0,0,6791,6792,7,7,0,0,6792,6793,7,14,0,0,6793,6794,7,6,0,0,6794,6795,7,15,0,0,6795,6796,7,19,0,0,6796,6797,7,12,0,0,6797,6798,7,11,0,0,6798,6799,5,95,0,0,6799,6800,7,25,0,0,6800,6801,7,7,0,0,6801,6802,7,8,0,0,6802,6803,5,95,0,0,6803,6804,7,20,0,0,6804,6805,7,19,0,0,6805,6806,7,17,0,0,6806,6807,7,8,0,0,6807,996,1,0,0,0,6808,6809,7,23,0,0,6809,6810,7,3,0,0,6810,6811,7,26,0,0,6811,6812,5,95,0,0,6812,6813,7,28,0,0,6813,6814,7,17,0,0,6814,6815,7,7,0,0,6815,6816,7,8,0,0,6816,6817,7,15,0,0,6817,6818,7,7,0,0,6818,6819,7,11,0,0,6819,6820,5,95,0,0,6820,6821,7,25,0,0,6821,6822,7,7,0,0,6822,6823,7,8,0,0,6823,6824,5,95,0,0,6824,6825,7,20,0,0,6825,6826,7,19,0,0,6826,6827,7,17,0,0,6827,6828,7,8,0,0,6828,998,1,0,0,0,6829,6830,7,23,0,0,6830,6831,7,3,0,0,6831,6832,7,26,0,0,6832,6833,5,95,0,0,6833,6834,7,8,0,0,6834,6835,7,19,0,0,6835,6836,7,9,0,0,6836,6837,7,11,0,0,6837,1e3,1,0,0,0,6838,6839,7,23,0,0,6839,6840,7,3,0,0,6840,6841,7,26,0,0,6841,6842,5,95,0,0,6842,6843,7,11,0,0,6843,6844,7,15,0,0,6844,6845,7,13,0,0,6845,6846,7,7,0,0,6846,1002,1,0,0,0,6847,6848,7,23,0,0,6848,6849,7,3,0,0,6849,6850,7,26,0,0,6850,6851,5,95,0,0,6851,6852,7,17,0,0,6852,6853,7,25,0,0,6853,6854,7,4,0,0,6854,6855,7,3,0,0,6855,6856,7,6,0,0,6856,6857,7,7,0,0,6857,6858,7,11,0,0,6858,6859,5,95,0,0,6859,6860,7,25,0,0,6860,6861,7,7,0,0,6861,6862,7,8,0,0,6862,6863,5,95,0,0,6863,6864,7,20,0,0,6864,6865,7,19,0,0,6865,6866,7,17,0,0,6866,6867,7,8,0,0,6867,1004,1,0,0,0,6868,6869,7,23,0,0,6869,6870,7,3,0,0,6870,6871,7,26,0,0,6871,6872,5,95,0,0,6872,6873,7,17,0,0,6873,6874,7,11,0,0,6874,6875,7,7,0,0,6875,6876,7,8,0,0,6876,6877,5,95,0,0,6877,6878,7,14,0,0,6878,6879,7,19,0,0,6879,6880,7,12,0,0,6880,6881,7,12,0,0,6881,6882,7,7,0,0,6882,6883,7,14,0,0,6883,6884,7,6,0,0,6884,6885,7,15,0,0,6885,6886,7,19,0,0,6886,6887,7,12,0,0,6887,6888,7,11,0,0,6888,1006,1,0,0,0,6889,6890,7,23,0,0,6890,6891,7,7,0,0,6891,6892,7,4,0,0,6892,6893,7,15,0,0,6893,6894,7,17,0,0,6894,6895,7,23,0,0,6895,1008,1,0,0,0,6896,6897,7,23,0,0,6897,6898,7,7,0,0,6898,6899,7,23,0,0,6899,6900,7,16,0,0,6900,6901,7,7,0,0,6901,6902,7,8,0,0,6902,1010,1,0,0,0,6903,6904,7,23,0,0,6904,6905,7,7,0,0,6905,6906,7,8,0,0,6906,6907,7,22,0,0,6907,6908,7,7,0,0,6908,1012,1,0,0,0,6909,6910,7,23,0,0,6910,6911,7,7,0,0,6911,6912,7,11,0,0,6912,6913,7,11,0,0,6913,6914,7,3,0,0,6914,6915,7,22,0,0,6915,6916,7,7,0,0,6916,6917,5,95,0,0,6917,6918,7,6,0,0,6918,6919,7,7,0,0,6919,6920,7,26,0,0,6920,6921,7,6,0,0,6921,1014,1,0,0,0,6922,6923,7,23,0,0,6923,6924,7,15,0,0,6924,6925,7,4,0,0,6925,1016,1,0,0,0,6926,6927,7,23,0,0,6927,6928,7,15,0,0,6928,6929,7,22,0,0,6929,6930,7,8,0,0,6930,6931,7,3,0,0,6931,6932,7,6,0,0,6932,6933,7,7,0,0,6933,1018,1,0,0,0,6934,6935,7,23,0,0,6935,6936,7,15,0,0,6936,6937,7,12,0,0,6937,6938,5,95,0,0,6938,6939,7,8,0,0,6939,6940,7,19,0,0,6940,6941,7,9,0,0,6941,6942,7,11,0,0,6942,1020,1,0,0,0,6943,6944,7,23,0,0,6944,6945,7,19,0,0,6945,6946,7,4,0,0,6946,6947,7,7,0,0,6947,1022,1,0,0,0,6948,6949,7,23,0,0,6949,6950,7,19,0,0,6950,6951,7,4,0,0,6951,6952,7,15,0,0,6952,6953,7,18,0,0,6953,6954,7,10,0,0,6954,1024,1,0,0,0,6955,6956,7,23,0,0,6956,6957,7,17,0,0,6957,6958,7,6,0,0,6958,6959,7,7,0,0,6959,6960,7,26,0,0,6960,1026,1,0,0,0,6961,6962,7,23,0,0,6962,6963,7,10,0,0,6963,6964,7,11,0,0,6964,6965,7,28,0,0,6965,6966,7,5,0,0,6966,1028,1,0,0,0,6967,6968,7,23,0,0,6968,6969,7,10,0,0,6969,6970,7,11,0,0,6970,6971,7,28,0,0,6971,6972,7,5,0,0,6972,6973,5,95,0,0,6973,6974,7,7,0,0,6974,6975,7,8,0,0,6975,6976,7,8,0,0,6976,6977,7,12,0,0,6977,6978,7,19,0,0,6978,1030,1,0,0,0,6979,6980,7,12,0,0,6980,6981,7,3,0,0,6981,6982,7,23,0,0,6982,6983,7,7,0,0,6983,1032,1,0,0,0,6984,6985,7,12,0,0,6985,6986,7,3,0,0,6986,6987,7,23,0,0,6987,6988,7,7,0,0,6988,6989,7,11,0,0,6989,1034,1,0,0,0,6990,6991,7,12,0,0,6991,6992,7,14,0,0,6992,6993,7,20,0,0,6993,6994,7,3,0,0,6994,6995,7,8,0,0,6995,1036,1,0,0,0,6996,6997,7,12,0,0,6997,6998,7,7,0,0,6998,6999,7,24,0,0,6999,7e3,7,7,0,0,7e3,7001,7,8,0,0,7001,1038,1,0,0,0,7002,7003,7,12,0,0,7003,7004,7,7,0,0,7004,7005,7,26,0,0,7005,7006,7,6,0,0,7006,1040,1,0,0,0,7007,7008,7,12,0,0,7008,7009,7,19,0,0,7009,1042,1,0,0,0,7010,7011,7,12,0,0,7011,7012,7,19,0,0,7012,7013,7,14,0,0,7013,7014,7,3,0,0,7014,7015,7,14,0,0,7015,7016,7,20,0,0,7016,7017,7,7,0,0,7017,1044,1,0,0,0,7018,7019,7,12,0,0,7019,7020,7,19,0,0,7020,7021,7,14,0,0,7021,7022,7,19,0,0,7022,7023,7,25,0,0,7023,7024,7,10,0,0,7024,1046,1,0,0,0,7025,7026,7,12,0,0,7026,7027,7,19,0,0,7027,7028,7,14,0,0,7028,7029,7,10,0,0,7029,7030,7,14,0,0,7030,7031,7,5,0,0,7031,7032,7,7,0,0,7032,1048,1,0,0,0,7033,7034,7,12,0,0,7034,7035,7,19,0,0,7035,7036,7,23,0,0,7036,7037,7,3,0,0,7037,7038,7,26,0,0,7038,7039,7,24,0,0,7039,7040,7,3,0,0,7040,7041,7,5,0,0,7041,7042,7,17,0,0,7042,7043,7,7,0,0,7043,1050,1,0,0,0,7044,7045,7,12,0,0,7045,7046,7,19,0,0,7046,7047,7,23,0,0,7047,7048,7,15,0,0,7048,7049,7,12,0,0,7049,7050,7,24,0,0,7050,7051,7,3,0,0,7051,7052,7,5,0,0,7052,7053,7,17,0,0,7053,7054,7,7,0,0,7054,1052,1,0,0,0,7055,7056,7,12,0,0,7056,7057,7,19,0,0,7057,7058,7,9,0,0,7058,7059,7,3,0,0,7059,7060,7,15,0,0,7060,7061,7,6,0,0,7061,1054,1,0,0,0,7062,7063,7,12,0,0,7063,7064,7,19,0,0,7064,7065,7,4,0,0,7065,7066,7,7,0,0,7066,7067,7,22,0,0,7067,7068,7,8,0,0,7068,7069,7,19,0,0,7069,7070,7,17,0,0,7070,7071,7,25,0,0,7071,1056,1,0,0,0,7072,7073,7,12,0,0,7073,7074,7,19,0,0,7074,7075,7,12,0,0,7075,7076,7,7,0,0,7076,1058,1,0,0,0,7077,7078,7,19,0,0,7078,7079,7,4,0,0,7079,7080,7,16,0,0,7080,7081,7,14,0,0,7081,1060,1,0,0,0,7082,7083,7,19,0,0,7083,7084,7,18,0,0,7084,7085,7,18,0,0,7085,7086,7,5,0,0,7086,7087,7,15,0,0,7087,7088,7,12,0,0,7088,7089,7,7,0,0,7089,1062,1,0,0,0,7090,7091,7,19,0,0,7091,7092,7,18,0,0,7092,7093,7,18,0,0,7093,7094,7,11,0,0,7094,7095,7,7,0,0,7095,7096,7,6,0,0,7096,1064,1,0,0,0,7097,7098,7,19,0,0,7098,7099,7,18,0,0,7099,1066,1,0,0,0,7100,7101,7,19,0,0,7101,7102,7,27,0,0,7102,1068,1,0,0,0,7103,7104,7,19,0,0,7104,7105,7,5,0,0,7105,7106,7,4,0,0,7106,7107,5,95,0,0,7107,7108,7,25,0,0,7108,7109,7,3,0,0,7109,7110,7,11,0,0,7110,7111,7,11,0,0,7111,7112,7,9,0,0,7112,7113,7,19,0,0,7113,7114,7,8,0,0,7114,7115,7,4,0,0,7115,1070,1,0,0,0,7116,7117,7,19,0,0,7117,7118,7,12,0,0,7118,7119,7,7,0,0,7119,1072,1,0,0,0,7120,7121,7,19,0,0,7121,7122,7,12,0,0,7122,7123,7,5,0,0,7123,7124,7,15,0,0,7124,7125,7,12,0,0,7125,7126,7,7,0,0,7126,1074,1,0,0,0,7127,7128,7,19,0,0,7128,7129,7,12,0,0,7129,7130,7,5,0,0,7130,7131,7,10,0,0,7131,1076,1,0,0,0,7132,7133,7,19,0,0,7133,7134,7,25,0,0,7134,7135,7,7,0,0,7135,7136,7,12,0,0,7136,1078,1,0,0,0,7137,7138,7,19,0,0,7138,7139,7,25,0,0,7139,7140,7,6,0,0,7140,7141,7,15,0,0,7141,7142,7,23,0,0,7142,7143,7,15,0,0,7143,7144,7,13,0,0,7144,7145,7,7,0,0,7145,7146,7,8,0,0,7146,7147,5,95,0,0,7147,7148,7,14,0,0,7148,7149,7,19,0,0,7149,7150,7,11,0,0,7150,7151,7,6,0,0,7151,7152,7,11,0,0,7152,1080,1,0,0,0,7153,7154,7,19,0,0,7154,7155,7,25,0,0,7155,7156,7,6,0,0,7156,7157,7,15,0,0,7157,7158,7,19,0,0,7158,7159,7,12,0,0,7159,7160,7,11,0,0,7160,1082,1,0,0,0,7161,7162,7,19,0,0,7162,7163,7,9,0,0,7163,7164,7,12,0,0,7164,7165,7,7,0,0,7165,7166,7,8,0,0,7166,1084,1,0,0,0,7167,7168,7,25,0,0,7168,7169,7,3,0,0,7169,7170,7,14,0,0,7170,7171,7,21,0,0,7171,7172,5,95,0,0,7172,7173,7,21,0,0,7173,7174,7,7,0,0,7174,7175,7,10,0,0,7175,7176,7,11,0,0,7176,1086,1,0,0,0,7177,7178,7,25,0,0,7178,7179,7,3,0,0,7179,7180,7,22,0,0,7180,7181,7,7,0,0,7181,1088,1,0,0,0,7182,7183,7,25,0,0,7183,7184,7,3,0,0,7184,7185,7,22,0,0,7185,7186,7,7,0,0,7186,7187,5,95,0,0,7187,7188,7,14,0,0,7188,7189,7,19,0,0,7189,7190,7,23,0,0,7190,7191,7,25,0,0,7191,7192,7,8,0,0,7192,7193,7,7,0,0,7193,7194,7,11,0,0,7194,7195,7,11,0,0,7195,7196,7,7,0,0,7196,7197,7,4,0,0,7197,1090,1,0,0,0,7198,7199,7,25,0,0,7199,7200,7,3,0,0,7200,7201,7,22,0,0,7201,7202,7,7,0,0,7202,7203,5,95,0,0,7203,7204,7,14,0,0,7204,7205,7,19,0,0,7205,7206,7,23,0,0,7206,7207,7,25,0,0,7207,7208,7,8,0,0,7208,7209,7,7,0,0,7209,7210,7,11,0,0,7210,7211,7,11,0,0,7211,7212,7,15,0,0,7212,7213,7,19,0,0,7213,7214,7,12,0,0,7214,7215,5,95,0,0,7215,7216,7,5,0,0,7216,7217,7,7,0,0,7217,7218,7,24,0,0,7218,7219,7,7,0,0,7219,7220,7,5,0,0,7220,1092,1,0,0,0,7221,7222,7,25,0,0,7222,7223,7,3,0,0,7223,7224,7,8,0,0,7224,7225,7,11,0,0,7225,7226,7,7,0,0,7226,7227,7,8,0,0,7227,1094,1,0,0,0,7228,7229,7,25,0,0,7229,7230,7,3,0,0,7230,7231,7,8,0,0,7231,7232,7,6,0,0,7232,7233,7,15,0,0,7233,7234,7,3,0,0,7234,7235,7,5,0,0,7235,1096,1,0,0,0,7236,7237,7,25,0,0,7237,7238,7,3,0,0,7238,7239,7,8,0,0,7239,7240,7,6,0,0,7240,7241,7,15,0,0,7241,7242,7,6,0,0,7242,7243,7,15,0,0,7243,7244,7,19,0,0,7244,7245,7,12,0,0,7245,7246,7,15,0,0,7246,7247,7,12,0,0,7247,7248,7,22,0,0,7248,1098,1,0,0,0,7249,7250,7,25,0,0,7250,7251,7,3,0,0,7251,7252,7,8,0,0,7252,7253,7,6,0,0,7253,7254,7,15,0,0,7254,7255,7,6,0,0,7255,7256,7,15,0,0,7256,7257,7,19,0,0,7257,7258,7,12,0,0,7258,7259,7,11,0,0,7259,1100,1,0,0,0,7260,7261,7,25,0,0,7261,7262,7,3,0,0,7262,7263,7,11,0,0,7263,7264,7,11,0,0,7264,7265,7,9,0,0,7265,7266,7,19,0,0,7266,7267,7,8,0,0,7267,7268,7,4,0,0,7268,1102,1,0,0,0,7269,7270,7,25,0,0,7270,7271,7,3,0,0,7271,7272,7,11,0,0,7272,7273,7,11,0,0,7273,7274,7,9,0,0,7274,7275,7,19,0,0,7275,7276,7,8,0,0,7276,7277,7,4,0,0,7277,7278,5,95,0,0,7278,7279,7,5,0,0,7279,7280,7,19,0,0,7280,7281,7,14,0,0,7281,7282,7,21,0,0,7282,7283,5,95,0,0,7283,7284,7,6,0,0,7284,7285,7,15,0,0,7285,7286,7,23,0,0,7286,7287,7,7,0,0,7287,1104,1,0,0,0,7288,7289,7,25,0,0,7289,7290,7,20,0,0,7290,7291,7,3,0,0,7291,7292,7,11,0,0,7292,7293,7,7,0,0,7293,1106,1,0,0,0,7294,7295,7,25,0,0,7295,7296,7,5,0,0,7296,7297,7,17,0,0,7297,7298,7,22,0,0,7298,7299,7,15,0,0,7299,7300,7,12,0,0,7300,1108,1,0,0,0,7301,7302,7,25,0,0,7302,7303,7,5,0,0,7303,7304,7,17,0,0,7304,7305,7,22,0,0,7305,7306,7,15,0,0,7306,7307,7,12,0,0,7307,7308,5,95,0,0,7308,7309,7,4,0,0,7309,7310,7,15,0,0,7310,7311,7,8,0,0,7311,1110,1,0,0,0,7312,7313,7,25,0,0,7313,7314,7,5,0,0,7314,7315,7,17,0,0,7315,7316,7,22,0,0,7316,7317,7,15,0,0,7317,7318,7,12,0,0,7318,7319,7,11,0,0,7319,1112,1,0,0,0,7320,7321,7,25,0,0,7321,7322,7,19,0,0,7322,7323,7,8,0,0,7323,7324,7,6,0,0,7324,1114,1,0,0,0,7325,7326,7,25,0,0,7326,7327,7,8,0,0,7327,7328,7,7,0,0,7328,7329,7,14,0,0,7329,7330,7,7,0,0,7330,7331,7,4,0,0,7331,7332,7,7,0,0,7332,7333,7,11,0,0,7333,1116,1,0,0,0,7334,7335,7,25,0,0,7335,7336,7,8,0,0,7336,7337,7,7,0,0,7337,7338,7,14,0,0,7338,7339,7,7,0,0,7339,7340,7,4,0,0,7340,7341,7,15,0,0,7341,7342,7,12,0,0,7342,7343,7,22,0,0,7343,1118,1,0,0,0,7344,7345,7,25,0,0,7345,7346,7,8,0,0,7346,7347,7,7,0,0,7347,7348,7,25,0,0,7348,7349,7,3,0,0,7349,7350,7,8,0,0,7350,7351,7,7,0,0,7351,1120,1,0,0,0,7352,7353,7,25,0,0,7353,7354,7,8,0,0,7354,7355,7,7,0,0,7355,7356,7,11,0,0,7356,7357,7,7,0,0,7357,7358,7,8,0,0,7358,7359,7,24,0,0,7359,7360,7,7,0,0,7360,1122,1,0,0,0,7361,7362,7,25,0,0,7362,7363,7,8,0,0,7363,7364,7,7,0,0,7364,7365,7,24,0,0,7365,1124,1,0,0,0,7366,7367,7,25,0,0,7367,7368,7,8,0,0,7368,7369,7,19,0,0,7369,7370,7,14,0,0,7370,7371,7,7,0,0,7371,7372,7,11,0,0,7372,7373,7,11,0,0,7373,7374,7,5,0,0,7374,7375,7,15,0,0,7375,7376,7,11,0,0,7376,7377,7,6,0,0,7377,1126,1,0,0,0,7378,7379,7,25,0,0,7379,7380,7,8,0,0,7380,7381,7,19,0,0,7381,7382,7,18,0,0,7382,7383,7,15,0,0,7383,7384,7,5,0,0,7384,7385,7,7,0,0,7385,1128,1,0,0,0,7386,7387,7,25,0,0,7387,7388,7,8,0,0,7388,7389,7,19,0,0,7389,7390,7,18,0,0,7390,7391,7,15,0,0,7391,7392,7,5,0,0,7392,7393,7,7,0,0,7393,7394,7,11,0,0,7394,1130,1,0,0,0,7395,7396,7,25,0,0,7396,7397,7,8,0,0,7397,7398,7,19,0,0,7398,7399,7,26,0,0,7399,7400,7,10,0,0,7400,1132,1,0,0,0,7401,7402,7,28,0,0,7402,7403,7,17,0,0,7403,7404,7,7,0,0,7404,7405,7,8,0,0,7405,7406,7,10,0,0,7406,1134,1,0,0,0,7407,7408,7,28,0,0,7408,7409,7,17,0,0,7409,7410,7,15,0,0,7410,7411,7,14,0,0,7411,7412,7,21,0,0,7412,1136,1,0,0,0,7413,7414,7,8,0,0,7414,7415,7,7,0,0,7415,7416,7,16,0,0,7416,7417,7,17,0,0,7417,7418,7,15,0,0,7418,7419,7,5,0,0,7419,7420,7,4,0,0,7420,1138,1,0,0,0,7421,7422,7,8,0,0,7422,7423,7,7,0,0,7423,7424,7,14,0,0,7424,7425,7,19,0,0,7425,7426,7,24,0,0,7426,7427,7,7,0,0,7427,7428,7,8,0,0,7428,1140,1,0,0,0,7429,7430,7,8,0,0,7430,7431,7,7,0,0,7431,7432,7,14,0,0,7432,7433,7,17,0,0,7433,7434,7,8,0,0,7434,7435,7,11,0,0,7435,7436,7,15,0,0,7436,7437,7,24,0,0,7437,7438,7,7,0,0,7438,1142,1,0,0,0,7439,7440,7,8,0,0,7440,7441,7,7,0,0,7441,7442,7,4,0,0,7442,7443,7,19,0,0,7443,7444,5,95,0,0,7444,7445,7,16,0,0,7445,7446,7,17,0,0,7446,7447,7,18,0,0,7447,7448,7,18,0,0,7448,7449,7,7,0,0,7449,7450,7,8,0,0,7450,7451,5,95,0,0,7451,7452,7,11,0,0,7452,7453,7,15,0,0,7453,7454,7,13,0,0,7454,7455,7,7,0,0,7455,1144,1,0,0,0,7456,7457,7,8,0,0,7457,7458,7,7,0,0,7458,7459,7,4,0,0,7459,7460,7,17,0,0,7460,7461,7,12,0,0,7461,7462,7,4,0,0,7462,7463,7,3,0,0,7463,7464,7,12,0,0,7464,7465,7,6,0,0,7465,1146,1,0,0,0,7466,7467,7,8,0,0,7467,7468,7,7,0,0,7468,7469,7,5,0,0,7469,7470,7,3,0,0,7470,7471,7,10,0,0,7471,1148,1,0,0,0,7472,7473,7,8,0,0,7473,7474,7,7,0,0,7474,7475,7,5,0,0,7475,7476,7,3,0,0,7476,7477,7,10,0,0,7477,7478,5,95,0,0,7478,7479,7,5,0,0,7479,7480,7,19,0,0,7480,7481,7,22,0,0,7481,7482,5,95,0,0,7482,7483,7,18,0,0,7483,7484,7,15,0,0,7484,7485,7,5,0,0,7485,7486,7,7,0,0,7486,1150,1,0,0,0,7487,7488,7,8,0,0,7488,7489,7,7,0,0,7489,7490,7,5,0,0,7490,7491,7,3,0,0,7491,7492,7,10,0,0,7492,7493,5,95,0,0,7493,7494,7,5,0,0,7494,7495,7,19,0,0,7495,7496,7,22,0,0,7496,7497,5,95,0,0,7497,7498,7,25,0,0,7498,7499,7,19,0,0,7499,7500,7,11,0,0,7500,1152,1,0,0,0,7501,7502,7,8,0,0,7502,7503,7,7,0,0,7503,7504,7,5,0,0,7504,7505,7,3,0,0,7505,7506,7,10,0,0,7506,7507,7,5,0,0,7507,7508,7,19,0,0,7508,7509,7,22,0,0,7509,1154,1,0,0,0,7510,7511,7,8,0,0,7511,7512,7,7,0,0,7512,7513,7,23,0,0,7513,7514,7,19,0,0,7514,7515,7,24,0,0,7515,7516,7,7,0,0,7516,1156,1,0,0,0,7517,7518,7,8,0,0,7518,7519,7,7,0,0,7519,7520,7,19,0,0,7520,7521,7,8,0,0,7521,7522,7,22,0,0,7522,7523,7,3,0,0,7523,7524,7,12,0,0,7524,7525,7,15,0,0,7525,7526,7,13,0,0,7526,7527,7,7,0,0,7527,1158,1,0,0,0,7528,7529,7,8,0,0,7529,7530,7,7,0,0,7530,7531,7,25,0,0,7531,7532,7,3,0,0,7532,7533,7,15,0,0,7533,7534,7,8,0,0,7534,1160,1,0,0,0,7535,7536,7,8,0,0,7536,7537,7,7,0,0,7537,7538,7,25,0,0,7538,7539,7,5,0,0,7539,7540,7,15,0,0,7540,7541,7,14,0,0,7541,7542,7,3,0,0,7542,7543,7,6,0,0,7543,7544,7,7,0,0,7544,7545,5,95,0,0,7545,7546,7,4,0,0,7546,7547,7,19,0,0,7547,7548,5,95,0,0,7548,7549,7,4,0,0,7549,7550,7,16,0,0,7550,1162,1,0,0,0,7551,7552,7,8,0,0,7552,7553,7,7,0,0,7553,7554,7,25,0,0,7554,7555,7,5,0,0,7555,7556,7,15,0,0,7556,7557,7,14,0,0,7557,7558,7,3,0,0,7558,7559,7,6,0,0,7559,7560,7,7,0,0,7560,7561,5,95,0,0,7561,7562,7,4,0,0,7562,7563,7,19,0,0,7563,7564,5,95,0,0,7564,7565,7,6,0,0,7565,7566,7,3,0,0,7566,7567,7,16,0,0,7567,7568,7,5,0,0,7568,7569,7,7,0,0,7569,1164,1,0,0,0,7570,7571,7,8,0,0,7571,7572,7,7,0,0,7572,7573,7,25,0,0,7573,7574,7,5,0,0,7574,7575,7,15,0,0,7575,7576,7,14,0,0,7576,7577,7,3,0,0,7577,7578,7,6,0,0,7578,7579,7,7,0,0,7579,7580,5,95,0,0,7580,7581,7,15,0,0,7581,7582,7,22,0,0,7582,7583,7,12,0,0,7583,7584,7,19,0,0,7584,7585,7,8,0,0,7585,7586,7,7,0,0,7586,7587,5,95,0,0,7587,7588,7,4,0,0,7588,7589,7,16,0,0,7589,1166,1,0,0,0,7590,7591,7,8,0,0,7591,7592,7,7,0,0,7592,7593,7,25,0,0,7593,7594,7,5,0,0,7594,7595,7,15,0,0,7595,7596,7,14,0,0,7596,7597,7,3,0,0,7597,7598,7,6,0,0,7598,7599,7,7,0,0,7599,7600,5,95,0,0,7600,7601,7,15,0,0,7601,7602,7,22,0,0,7602,7603,7,12,0,0,7603,7604,7,19,0,0,7604,7605,7,8,0,0,7605,7606,7,7,0,0,7606,7607,5,95,0,0,7607,7608,7,6,0,0,7608,7609,7,3,0,0,7609,7610,7,16,0,0,7610,7611,7,5,0,0,7611,7612,7,7,0,0,7612,1168,1,0,0,0,7613,7614,7,8,0,0,7614,7615,7,7,0,0,7615,7616,7,25,0,0,7616,7617,7,5,0,0,7617,7618,7,15,0,0,7618,7619,7,14,0,0,7619,7620,7,3,0,0,7620,7621,7,6,0,0,7621,7622,7,7,0,0,7622,7623,5,95,0,0,7623,7624,7,8,0,0,7624,7625,7,7,0,0,7625,7626,7,9,0,0,7626,7627,7,8,0,0,7627,7628,7,15,0,0,7628,7629,7,6,0,0,7629,7630,7,7,0,0,7630,7631,5,95,0,0,7631,7632,7,4,0,0,7632,7633,7,16,0,0,7633,1170,1,0,0,0,7634,7635,7,8,0,0,7635,7636,7,7,0,0,7636,7637,7,25,0,0,7637,7638,7,5,0,0,7638,7639,7,15,0,0,7639,7640,7,14,0,0,7640,7641,7,3,0,0,7641,7642,7,6,0,0,7642,7643,7,7,0,0,7643,7644,5,95,0,0,7644,7645,7,9,0,0,7645,7646,7,15,0,0,7646,7647,7,5,0,0,7647,7648,7,4,0,0,7648,7649,5,95,0,0,7649,7650,7,4,0,0,7650,7651,7,19,0,0,7651,7652,5,95,0,0,7652,7653,7,6,0,0,7653,7654,7,3,0,0,7654,7655,7,16,0,0,7655,7656,7,5,0,0,7656,7657,7,7,0,0,7657,1172,1,0,0,0,7658,7659,7,8,0,0,7659,7660,7,7,0,0,7660,7661,7,25,0,0,7661,7662,7,5,0,0,7662,7663,7,15,0,0,7663,7664,7,14,0,0,7664,7665,7,3,0,0,7665,7666,7,6,0,0,7666,7667,7,7,0,0,7667,7668,5,95,0,0,7668,7669,7,9,0,0,7669,7670,7,15,0,0,7670,7671,7,5,0,0,7671,7672,7,4,0,0,7672,7673,5,95,0,0,7673,7674,7,15,0,0,7674,7675,7,22,0,0,7675,7676,7,12,0,0,7676,7677,7,19,0,0,7677,7678,7,8,0,0,7678,7679,7,7,0,0,7679,7680,5,95,0,0,7680,7681,7,6,0,0,7681,7682,7,3,0,0,7682,7683,7,16,0,0,7683,7684,7,5,0,0,7684,7685,7,7,0,0,7685,1174,1,0,0,0,7686,7687,7,8,0,0,7687,7688,7,7,0,0,7688,7689,7,25,0,0,7689,7690,7,5,0,0,7690,7691,7,15,0,0,7691,7692,7,14,0,0,7692,7693,7,3,0,0,7693,7694,7,6,0,0,7694,7695,7,15,0,0,7695,7696,7,19,0,0,7696,7697,7,12,0,0,7697,1176,1,0,0,0,7698,7699,7,8,0,0,7699,7700,7,7,0,0,7700,7701,7,11,0,0,7701,7702,7,7,0,0,7702,7703,7,6,0,0,7703,1178,1,0,0,0,7704,7705,7,8,0,0,7705,7706,7,7,0,0,7706,7707,7,11,0,0,7707,7708,7,6,0,0,7708,7709,7,3,0,0,7709,7710,7,8,0,0,7710,7711,7,6,0,0,7711,1180,1,0,0,0,7712,7713,7,8,0,0,7713,7714,7,7,0,0,7714,7715,7,11,0,0,7715,7716,7,17,0,0,7716,7717,7,23,0,0,7717,7718,7,7,0,0,7718,1182,1,0,0,0,7719,7720,7,8,0,0,7720,7721,7,7,0,0,7721,7722,7,6,0,0,7722,7723,7,17,0,0,7723,7724,7,8,0,0,7724,7725,7,12,0,0,7725,7726,7,7,0,0,7726,7727,7,4,0,0,7727,7728,5,95,0,0,7728,7729,7,11,0,0,7729,7730,7,28,0,0,7730,7731,7,5,0,0,7731,7732,7,11,0,0,7732,7733,7,6,0,0,7733,7734,7,3,0,0,7734,7735,7,6,0,0,7735,7736,7,7,0,0,7736,1184,1,0,0,0,7737,7738,7,8,0,0,7738,7739,7,7,0,0,7739,7740,7,6,0,0,7740,7741,7,17,0,0,7741,7742,7,8,0,0,7742,7743,7,12,0,0,7743,7744,7,15,0,0,7744,7745,7,12,0,0,7745,7746,7,22,0,0,7746,1186,1,0,0,0,7747,7748,7,8,0,0,7748,7749,7,7,0,0,7749,7750,7,6,0,0,7750,7751,7,17,0,0,7751,7752,7,8,0,0,7752,7753,7,12,0,0,7753,7754,7,11,0,0,7754,1188,1,0,0,0,7755,7756,7,8,0,0,7756,7757,7,7,0,0,7757,7758,7,17,0,0,7758,7759,7,11,0,0,7759,7760,7,7,0,0,7760,1190,1,0,0,0,7761,7762,7,8,0,0,7762,7763,7,19,0,0,7763,7764,7,5,0,0,7764,7765,7,7,0,0,7765,1192,1,0,0,0,7766,7767,7,8,0,0,7767,7768,7,19,0,0,7768,7769,7,5,0,0,7769,7770,7,5,0,0,7770,7771,7,16,0,0,7771,7772,7,3,0,0,7772,7773,7,14,0,0,7773,7774,7,21,0,0,7774,1194,1,0,0,0,7775,7776,7,8,0,0,7776,7777,7,19,0,0,7777,7778,7,5,0,0,7778,7779,7,5,0,0,7779,7780,7,17,0,0,7780,7781,7,25,0,0,7781,1196,1,0,0,0,7782,7783,7,8,0,0,7783,7784,7,19,0,0,7784,7785,7,6,0,0,7785,7786,7,3,0,0,7786,7787,7,6,0,0,7787,7788,7,7,0,0,7788,1198,1,0,0,0,7789,7790,7,8,0,0,7790,7791,7,19,0,0,7791,7792,7,9,0,0,7792,1200,1,0,0,0,7793,7794,7,8,0,0,7794,7795,7,19,0,0,7795,7796,7,9,0,0,7796,7797,7,11,0,0,7797,1202,1,0,0,0,7798,7799,7,8,0,0,7799,7800,7,19,0,0,7800,7801,7,9,0,0,7801,7802,5,95,0,0,7802,7803,7,18,0,0,7803,7804,7,19,0,0,7804,7805,7,8,0,0,7805,7806,7,23,0,0,7806,7807,7,3,0,0,7807,7808,7,6,0,0,7808,1204,1,0,0,0,7809,7810,7,8,0,0,7810,7811,7,6,0,0,7811,7812,7,8,0,0,7812,7813,7,7,0,0,7813,7814,7,7,0,0,7814,1206,1,0,0,0,7815,7816,7,11,0,0,7816,7817,7,3,0,0,7817,7818,7,24,0,0,7818,7819,7,7,0,0,7819,7820,7,25,0,0,7820,7821,7,19,0,0,7821,7822,7,15,0,0,7822,7823,7,12,0,0,7823,7824,7,6,0,0,7824,1208,1,0,0,0,7825,7826,7,11,0,0,7826,7827,7,14,0,0,7827,7828,7,20,0,0,7828,7829,7,7,0,0,7829,7830,7,4,0,0,7830,7831,7,17,0,0,7831,7832,7,5,0,0,7832,7833,7,7,0,0,7833,1210,1,0,0,0,7834,7835,7,11,0,0,7835,7836,7,7,0,0,7836,7837,7,14,0,0,7837,7838,7,17,0,0,7838,7839,7,8,0,0,7839,7840,7,15,0,0,7840,7841,7,6,0,0,7841,7842,7,10,0,0,7842,1212,1,0,0,0,7843,7844,7,11,0,0,7844,7845,7,7,0,0,7845,7846,7,28,0,0,7846,7847,7,17,0,0,7847,7848,7,7,0,0,7848,7849,7,12,0,0,7849,7850,7,14,0,0,7850,7851,7,7,0,0,7851,1214,1,0,0,0,7852,7853,7,11,0,0,7853,7854,7,7,0,0,7854,7855,7,8,0,0,7855,7856,7,24,0,0,7856,7857,7,7,0,0,7857,7858,7,8,0,0,7858,1216,1,0,0,0,7859,7860,7,11,0,0,7860,7861,7,7,0,0,7861,7862,7,11,0,0,7862,7863,7,11,0,0,7863,7864,7,15,0,0,7864,7865,7,19,0,0,7865,7866,7,12,0,0,7866,1218,1,0,0,0,7867,7868,7,11,0,0,7868,7869,7,20,0,0,7869,7870,7,3,0,0,7870,7871,7,8,0,0,7871,7872,7,7,0,0,7872,1220,1,0,0,0,7873,7874,7,11,0,0,7874,7875,7,20,0,0,7875,7876,7,3,0,0,7876,7877,7,8,0,0,7877,7878,7,7,0,0,7878,7879,7,4,0,0,7879,1222,1,0,0,0,7880,7881,7,11,0,0,7881,7882,7,15,0,0,7882,7883,7,22,0,0,7883,7884,7,12,0,0,7884,7885,7,7,0,0,7885,7886,7,4,0,0,7886,1224,1,0,0,0,7887,7888,7,11,0,0,7888,7889,7,15,0,0,7889,7890,7,23,0,0,7890,7891,7,25,0,0,7891,7892,7,5,0,0,7892,7893,7,7,0,0,7893,1226,1,0,0,0,7894,7895,7,11,0,0,7895,7896,7,5,0,0,7896,7897,7,3,0,0,7897,7898,7,24,0,0,7898,7899,7,7,0,0,7899,1228,1,0,0,0,7900,7901,7,11,0,0,7901,7902,7,5,0,0,7902,7903,7,19,0,0,7903,7904,7,9,0,0,7904,1230,1,0,0,0,7905,7906,7,11,0,0,7906,7907,7,12,0,0,7907,7908,7,3,0,0,7908,7909,7,25,0,0,7909,7910,7,11,0,0,7910,7911,7,20,0,0,7911,7912,7,19,0,0,7912,7913,7,6,0,0,7913,1232,1,0,0,0,7914,7915,7,11,0,0,7915,7916,7,19,0,0,7916,7917,7,14,0,0,7917,7918,7,21,0,0,7918,7919,7,7,0,0,7919,7920,7,6,0,0,7920,1234,1,0,0,0,7921,7922,7,11,0,0,7922,7923,7,19,0,0,7923,7924,7,23,0,0,7924,7925,7,7,0,0,7925,1236,1,0,0,0,7926,7927,7,11,0,0,7927,7928,7,19,0,0,7928,7929,7,12,0,0,7929,7930,7,3,0,0,7930,7931,7,23,0,0,7931,7932,7,7,0,0,7932,1238,1,0,0,0,7933,7934,7,11,0,0,7934,7935,7,19,0,0,7935,7936,7,17,0,0,7936,7937,7,12,0,0,7937,7938,7,4,0,0,7938,7939,7,11,0,0,7939,1240,1,0,0,0,7940,7941,7,11,0,0,7941,7942,7,19,0,0,7942,7943,7,17,0,0,7943,7944,7,8,0,0,7944,7945,7,14,0,0,7945,7946,7,7,0,0,7946,1242,1,0,0,0,7947,7948,7,11,0,0,7948,7949,7,28,0,0,7949,7950,7,5,0,0,7950,7951,5,95,0,0,7951,7952,7,3,0,0,7952,7953,7,18,0,0,7953,7954,7,6,0,0,7954,7955,7,7,0,0,7955,7956,7,8,0,0,7956,7957,5,95,0,0,7957,7958,7,22,0,0,7958,7959,7,6,0,0,7959,7960,7,15,0,0,7960,7961,7,4,0,0,7961,7962,7,11,0,0,7962,1244,1,0,0,0,7963,7964,7,11,0,0,7964,7965,7,28,0,0,7965,7966,7,5,0,0,7966,7967,5,95,0,0,7967,7968,7,3,0,0,7968,7969,7,18,0,0,7969,7970,7,6,0,0,7970,7971,7,7,0,0,7971,7972,7,8,0,0,7972,7973,5,95,0,0,7973,7974,7,23,0,0,7974,7975,7,6,0,0,7975,7976,7,11,0,0,7976,7977,5,95,0,0,7977,7978,7,22,0,0,7978,7979,7,3,0,0,7979,7980,7,25,0,0,7980,7981,7,11,0,0,7981,1246,1,0,0,0,7982,7983,7,11,0,0,7983,7984,7,28,0,0,7984,7985,7,5,0,0,7985,7986,5,95,0,0,7986,7987,7,16,0,0,7987,7988,7,7,0,0,7988,7989,7,18,0,0,7989,7990,7,19,0,0,7990,7991,7,8,0,0,7991,7992,7,7,0,0,7992,7993,5,95,0,0,7993,7994,7,22,0,0,7994,7995,7,6,0,0,7995,7996,7,15,0,0,7996,7997,7,4,0,0,7997,7998,7,11,0,0,7998,1248,1,0,0,0,7999,8e3,7,11,0,0,8e3,8001,7,28,0,0,8001,8002,7,5,0,0,8002,8003,5,95,0,0,8003,8004,7,16,0,0,8004,8005,7,17,0,0,8005,8006,7,18,0,0,8006,8007,7,18,0,0,8007,8008,7,7,0,0,8008,8009,7,8,0,0,8009,8010,5,95,0,0,8010,8011,7,8,0,0,8011,8012,7,7,0,0,8012,8013,7,11,0,0,8013,8014,7,17,0,0,8014,8015,7,5,0,0,8015,8016,7,6,0,0,8016,1250,1,0,0,0,8017,8018,7,11,0,0,8018,8019,7,28,0,0,8019,8020,7,5,0,0,8020,8021,5,95,0,0,8021,8022,7,14,0,0,8022,8023,7,3,0,0,8023,8024,7,14,0,0,8024,8025,7,20,0,0,8025,8026,7,7,0,0,8026,1252,1,0,0,0,8027,8028,7,11,0,0,8028,8029,7,28,0,0,8029,8030,7,5,0,0,8030,8031,5,95,0,0,8031,8032,7,12,0,0,8032,8033,7,19,0,0,8033,8034,5,95,0,0,8034,8035,7,14,0,0,8035,8036,7,3,0,0,8036,8037,7,14,0,0,8037,8038,7,20,0,0,8038,8039,7,7,0,0,8039,1254,1,0,0,0,8040,8041,7,11,0,0,8041,8042,7,28,0,0,8042,8043,7,5,0,0,8043,8044,5,95,0,0,8044,8045,7,6,0,0,8045,8046,7,20,0,0,8046,8047,7,8,0,0,8047,8048,7,7,0,0,8048,8049,7,3,0,0,8049,8050,7,4,0,0,8050,1256,1,0,0,0,8051,8052,7,11,0,0,8052,8053,7,6,0,0,8053,8054,7,3,0,0,8054,8055,7,8,0,0,8055,8056,7,6,0,0,8056,1258,1,0,0,0,8057,8058,7,11,0,0,8058,8059,7,6,0,0,8059,8060,7,3,0,0,8060,8061,7,8,0,0,8061,8062,7,6,0,0,8062,8063,7,11,0,0,8063,1260,1,0,0,0,8064,8065,7,11,0,0,8065,8066,7,6,0,0,8066,8067,7,3,0,0,8067,8068,7,6,0,0,8068,8069,7,11,0,0,8069,8070,5,95,0,0,8070,8071,7,3,0,0,8071,8072,7,17,0,0,8072,8073,7,6,0,0,8073,8074,7,19,0,0,8074,8075,5,95,0,0,8075,8076,7,8,0,0,8076,8077,7,7,0,0,8077,8078,7,14,0,0,8078,8079,7,3,0,0,8079,8080,7,5,0,0,8080,8081,7,14,0,0,8081,1262,1,0,0,0,8082,8083,7,11,0,0,8083,8084,7,6,0,0,8084,8085,7,3,0,0,8085,8086,7,6,0,0,8086,8087,7,11,0,0,8087,8088,5,95,0,0,8088,8089,7,25,0,0,8089,8090,7,7,0,0,8090,8091,7,8,0,0,8091,8092,7,11,0,0,8092,8093,7,15,0,0,8093,8094,7,11,0,0,8094,8095,7,6,0,0,8095,8096,7,7,0,0,8096,8097,7,12,0,0,8097,8098,7,6,0,0,8098,1264,1,0,0,0,8099,8100,7,11,0,0,8100,8101,7,6,0,0,8101,8102,7,3,0,0,8102,8103,7,6,0,0,8103,8104,7,11,0,0,8104,8105,5,95,0,0,8105,8106,7,11,0,0,8106,8107,7,3,0,0,8107,8108,7,23,0,0,8108,8109,7,25,0,0,8109,8110,7,5,0,0,8110,8111,7,7,0,0,8111,8112,5,95,0,0,8112,8113,7,25,0,0,8113,8114,7,3,0,0,8114,8115,7,22,0,0,8115,8116,7,7,0,0,8116,8117,7,11,0,0,8117,1266,1,0,0,0,8118,8119,7,11,0,0,8119,8120,7,6,0,0,8120,8121,7,3,0,0,8121,8122,7,6,0,0,8122,8123,7,17,0,0,8123,8124,7,11,0,0,8124,1268,1,0,0,0,8125,8126,7,11,0,0,8126,8127,7,6,0,0,8127,8128,7,19,0,0,8128,8129,7,25,0,0,8129,1270,1,0,0,0,8130,8131,7,11,0,0,8131,8132,7,6,0,0,8132,8133,7,19,0,0,8133,8134,7,8,0,0,8134,8135,7,3,0,0,8135,8136,7,22,0,0,8136,8137,7,7,0,0,8137,1272,1,0,0,0,8138,8139,7,11,0,0,8139,8140,7,6,0,0,8140,8141,7,19,0,0,8141,8142,7,8,0,0,8142,8143,7,7,0,0,8143,8144,7,4,0,0,8144,1274,1,0,0,0,8145,8146,7,11,0,0,8146,8147,7,6,0,0,8147,8148,7,8,0,0,8148,8149,7,15,0,0,8149,8150,7,12,0,0,8150,8151,7,22,0,0,8151,1276,1,0,0,0,8152,8153,7,11,0,0,8153,8154,7,17,0,0,8154,8155,7,16,0,0,8155,8156,7,14,0,0,8156,8157,7,5,0,0,8157,8158,7,3,0,0,8158,8159,7,11,0,0,8159,8160,7,11,0,0,8160,8161,5,95,0,0,8161,8162,7,19,0,0,8162,8163,7,8,0,0,8163,8164,7,15,0,0,8164,8165,7,22,0,0,8165,8166,7,15,0,0,8166,8167,7,12,0,0,8167,1278,1,0,0,0,8168,8169,7,11,0,0,8169,8170,7,17,0,0,8170,8171,7,16,0,0,8171,8172,7,27,0,0,8172,8173,7,7,0,0,8173,8174,7,14,0,0,8174,8175,7,6,0,0,8175,1280,1,0,0,0,8176,8177,7,11,0,0,8177,8178,7,17,0,0,8178,8179,7,16,0,0,8179,8180,7,25,0,0,8180,8181,7,3,0,0,8181,8182,7,8,0,0,8182,8183,7,6,0,0,8183,8184,7,15,0,0,8184,8185,7,6,0,0,8185,8186,7,15,0,0,8186,8187,7,19,0,0,8187,8188,7,12,0,0,8188,1282,1,0,0,0,8189,8190,7,11,0,0,8190,8191,7,17,0,0,8191,8192,7,16,0,0,8192,8193,7,25,0,0,8193,8194,7,3,0,0,8194,8195,7,8,0,0,8195,8196,7,6,0,0,8196,8197,7,15,0,0,8197,8198,7,6,0,0,8198,8199,7,15,0,0,8199,8200,7,19,0,0,8200,8201,7,12,0,0,8201,8202,7,11,0,0,8202,1284,1,0,0,0,8203,8204,7,11,0,0,8204,8205,7,17,0,0,8205,8206,7,11,0,0,8206,8207,7,25,0,0,8207,8208,7,7,0,0,8208,8209,7,12,0,0,8209,8210,7,4,0,0,8210,1286,1,0,0,0,8211,8212,7,11,0,0,8212,8213,7,9,0,0,8213,8214,7,3,0,0,8214,8215,7,25,0,0,8215,8216,7,11,0,0,8216,1288,1,0,0,0,8217,8218,7,11,0,0,8218,8219,7,9,0,0,8219,8220,7,15,0,0,8220,8221,7,6,0,0,8221,8222,7,14,0,0,8222,8223,7,20,0,0,8223,8224,7,7,0,0,8224,8225,7,11,0,0,8225,1290,1,0,0,0,8226,8227,7,6,0,0,8227,8228,7,3,0,0,8228,8229,7,16,0,0,8229,8230,7,5,0,0,8230,8231,7,7,0,0,8231,8232,5,95,0,0,8232,8233,7,12,0,0,8233,8234,7,3,0,0,8234,8235,7,23,0,0,8235,8236,7,7,0,0,8236,1292,1,0,0,0,8237,8238,7,6,0,0,8238,8239,7,3,0,0,8239,8240,7,16,0,0,8240,8241,7,5,0,0,8241,8242,7,7,0,0,8242,8243,7,11,0,0,8243,8244,7,25,0,0,8244,8245,7,3,0,0,8245,8246,7,14,0,0,8246,8247,7,7,0,0,8247,1294,1,0,0,0,8248,8249,7,6,0,0,8249,8250,7,3,0,0,8250,8251,7,16,0,0,8251,8252,7,5,0,0,8252,8253,7,7,0,0,8253,8254,5,95,0,0,8254,8255,7,6,0,0,8255,8256,7,10,0,0,8256,8257,7,25,0,0,8257,8258,7,7,0,0,8258,1296,1,0,0,0,8259,8260,7,6,0,0,8260,8261,7,7,0,0,8261,8262,7,23,0,0,8262,8263,7,25,0,0,8263,8264,7,19,0,0,8264,8265,7,8,0,0,8265,8266,7,3,0,0,8266,8267,7,8,0,0,8267,8268,7,10,0,0,8268,1298,1,0,0,0,8269,8270,7,6,0,0,8270,8271,7,7,0,0,8271,8272,7,23,0,0,8272,8273,7,25,0,0,8273,8274,7,6,0,0,8274,8275,7,3,0,0,8275,8276,7,16,0,0,8276,8277,7,5,0,0,8277,8278,7,7,0,0,8278,1300,1,0,0,0,8279,8280,7,6,0,0,8280,8281,7,20,0,0,8281,8282,7,3,0,0,8282,8283,7,12,0,0,8283,1302,1,0,0,0,8284,8285,7,6,0,0,8285,8286,7,8,0,0,8286,8287,7,3,0,0,8287,8288,7,4,0,0,8288,8289,7,15,0,0,8289,8290,7,6,0,0,8290,8291,7,15,0,0,8291,8292,7,19,0,0,8292,8293,7,12,0,0,8293,8294,7,3,0,0,8294,8295,7,5,0,0,8295,1304,1,0,0,0,8296,8297,7,6,0,0,8297,8298,7,8,0,0,8298,8299,7,3,0,0,8299,8300,7,12,0,0,8300,8301,7,11,0,0,8301,8302,7,3,0,0,8302,8303,7,14,0,0,8303,8304,7,6,0,0,8304,8305,7,15,0,0,8305,8306,7,19,0,0,8306,8307,7,12,0,0,8307,1306,1,0,0,0,8308,8309,7,6,0,0,8309,8310,7,8,0,0,8310,8311,7,3,0,0,8311,8312,7,12,0,0,8312,8313,7,11,0,0,8313,8314,7,3,0,0,8314,8315,7,14,0,0,8315,8316,7,6,0,0,8316,8317,7,15,0,0,8317,8318,7,19,0,0,8318,8319,7,12,0,0,8319,8320,7,3,0,0,8320,8321,7,5,0,0,8321,1308,1,0,0,0,8322,8323,7,6,0,0,8323,8324,7,8,0,0,8324,8325,7,15,0,0,8325,8326,7,22,0,0,8326,8327,7,22,0,0,8327,8328,7,7,0,0,8328,8329,7,8,0,0,8329,8330,7,11,0,0,8330,1310,1,0,0,0,8331,8332,7,6,0,0,8332,8333,7,8,0,0,8333,8334,7,17,0,0,8334,8335,7,12,0,0,8335,8336,7,14,0,0,8336,8337,7,3,0,0,8337,8338,7,6,0,0,8338,8339,7,7,0,0,8339,1312,1,0,0,0,8340,8341,7,17,0,0,8341,8342,7,12,0,0,8342,8343,7,16,0,0,8343,8344,7,19,0,0,8344,8345,7,17,0,0,8345,8346,7,12,0,0,8346,8347,7,4,0,0,8347,8348,7,7,0,0,8348,8349,7,4,0,0,8349,1314,1,0,0,0,8350,8351,7,17,0,0,8351,8352,7,12,0,0,8352,8353,7,4,0,0,8353,8354,7,7,0,0,8354,8355,7,18,0,0,8355,8356,7,15,0,0,8356,8357,7,12,0,0,8357,8358,7,7,0,0,8358,8359,7,4,0,0,8359,1316,1,0,0,0,8360,8361,7,17,0,0,8361,8362,7,12,0,0,8362,8363,7,4,0,0,8363,8364,7,19,0,0,8364,8365,7,18,0,0,8365,8366,7,15,0,0,8366,8367,7,5,0,0,8367,8368,7,7,0,0,8368,1318,1,0,0,0,8369,8370,7,17,0,0,8370,8371,7,12,0,0,8371,8372,7,4,0,0,8372,8373,7,19,0,0,8373,8374,5,95,0,0,8374,8375,7,16,0,0,8375,8376,7,17,0,0,8376,8377,7,18,0,0,8377,8378,7,18,0,0,8378,8379,7,7,0,0,8379,8380,7,8,0,0,8380,8381,5,95,0,0,8381,8382,7,11,0,0,8382,8383,7,15,0,0,8383,8384,7,13,0,0,8384,8385,7,7,0,0,8385,1320,1,0,0,0,8386,8387,7,17,0,0,8387,8388,7,12,0,0,8388,8389,7,15,0,0,8389,8390,7,12,0,0,8390,8391,7,11,0,0,8391,8392,7,6,0,0,8392,8393,7,3,0,0,8393,8394,7,5,0,0,8394,8395,7,5,0,0,8395,1322,1,0,0,0,8396,8397,7,17,0,0,8397,8398,7,12,0,0,8398,8399,7,21,0,0,8399,8400,7,12,0,0,8400,8401,7,19,0,0,8401,8402,7,9,0,0,8402,8403,7,12,0,0,8403,1324,1,0,0,0,8404,8405,7,17,0,0,8405,8406,7,12,0,0,8406,8407,7,6,0,0,8407,8408,7,15,0,0,8408,8409,7,5,0,0,8409,1326,1,0,0,0,8410,8411,7,17,0,0,8411,8412,7,25,0,0,8412,8413,7,22,0,0,8413,8414,7,8,0,0,8414,8415,7,3,0,0,8415,8416,7,4,0,0,8416,8417,7,7,0,0,8417,1328,1,0,0,0,8418,8419,7,17,0,0,8419,8420,7,11,0,0,8420,8421,7,7,0,0,8421,8422,7,8,0,0,8422,1330,1,0,0,0,8423,8424,7,17,0,0,8424,8425,7,11,0,0,8425,8426,7,7,0,0,8426,8427,5,95,0,0,8427,8428,7,18,0,0,8428,8429,7,8,0,0,8429,8430,7,23,0,0,8430,1332,1,0,0,0,8431,8432,7,17,0,0,8432,8433,7,11,0,0,8433,8434,7,7,0,0,8434,8435,7,8,0,0,8435,8436,5,95,0,0,8436,8437,7,8,0,0,8437,8438,7,7,0,0,8438,8439,7,11,0,0,8439,8440,7,19,0,0,8440,8441,7,17,0,0,8441,8442,7,8,0,0,8442,8443,7,14,0,0,8443,8444,7,7,0,0,8444,8445,7,11,0,0,8445,1334,1,0,0,0,8446,8447,7,24,0,0,8447,8448,7,3,0,0,8448,8449,7,5,0,0,8449,8450,7,15,0,0,8450,8451,7,4,0,0,8451,8452,7,3,0,0,8452,8453,7,6,0,0,8453,8454,7,15,0,0,8454,8455,7,19,0,0,8455,8456,7,12,0,0,8456,1336,1,0,0,0,8457,8458,7,24,0,0,8458,8459,7,3,0,0,8459,8460,7,5,0,0,8460,8461,7,17,0,0,8461,8462,7,7,0,0,8462,1338,1,0,0,0,8463,8464,7,24,0,0,8464,8465,7,3,0,0,8465,8466,7,8,0,0,8466,8467,7,15,0,0,8467,8468,7,3,0,0,8468,8469,7,16,0,0,8469,8470,7,5,0,0,8470,8471,7,7,0,0,8471,8472,7,11,0,0,8472,1340,1,0,0,0,8473,8474,7,24,0,0,8474,8475,7,15,0,0,8475,8476,7,7,0,0,8476,8477,7,9,0,0,8477,1342,1,0,0,0,8478,8479,7,24,0,0,8479,8480,7,15,0,0,8480,8481,7,8,0,0,8481,8482,7,6,0,0,8482,8483,7,17,0,0,8483,8484,7,3,0,0,8484,8485,7,5,0,0,8485,1344,1,0,0,0,8486,8487,7,24,0,0,8487,8488,7,15,0,0,8488,8489,7,11,0,0,8489,8490,7,15,0,0,8490,8491,7,16,0,0,8491,8492,7,5,0,0,8492,8493,7,7,0,0,8493,1346,1,0,0,0,8494,8495,7,9,0,0,8495,8496,7,3,0,0,8496,8497,7,15,0,0,8497,8498,7,6,0,0,8498,1348,1,0,0,0,8499,8500,7,9,0,0,8500,8501,7,3,0,0,8501,8502,7,8,0,0,8502,8503,7,12,0,0,8503,8504,7,15,0,0,8504,8505,7,12,0,0,8505,8506,7,22,0,0,8506,8507,7,11,0,0,8507,1350,1,0,0,0,8508,8509,7,9,0,0,8509,8510,7,15,0,0,8510,8511,7,12,0,0,8511,8512,7,4,0,0,8512,8513,7,19,0,0,8513,8514,7,9,0,0,8514,1352,1,0,0,0,8515,8516,7,9,0,0,8516,8517,7,15,0,0,8517,8518,7,6,0,0,8518,8519,7,20,0,0,8519,8520,7,19,0,0,8520,8521,7,17,0,0,8521,8522,7,6,0,0,8522,1354,1,0,0,0,8523,8524,7,9,0,0,8524,8525,7,19,0,0,8525,8526,7,8,0,0,8526,8527,7,21,0,0,8527,1356,1,0,0,0,8528,8529,7,9,0,0,8529,8530,7,8,0,0,8530,8531,7,3,0,0,8531,8532,7,25,0,0,8532,8533,7,25,0,0,8533,8534,7,7,0,0,8534,8535,7,8,0,0,8535,1358,1,0,0,0,8536,8537,7,26,0,0,8537,8538,5,53,0,0,8538,8539,5,48,0,0,8539,8540,5,57,0,0,8540,1360,1,0,0,0,8541,8542,7,26,0,0,8542,8543,7,3,0,0,8543,1362,1,0,0,0,8544,8545,7,26,0,0,8545,8546,7,23,0,0,8546,8547,7,5,0,0,8547,1364,1,0,0,0,8548,8549,7,10,0,0,8549,8550,7,7,0,0,8550,8551,7,11,0,0,8551,1366,1,0,0,0,8552,8553,7,7,0,0,8553,8554,7,17,0,0,8554,8555,7,8,0,0,8555,1368,1,0,0,0,8556,8557,7,17,0,0,8557,8558,7,11,0,0,8558,8559,7,3,0,0,8559,1370,1,0,0,0,8560,8561,7,27,0,0,8561,8562,7,15,0,0,8562,8563,7,11,0,0,8563,1372,1,0,0,0,8564,8565,7,15,0,0,8565,8566,7,11,0,0,8566,8567,7,19,0,0,8567,1374,1,0,0,0,8568,8569,7,15,0,0,8569,8570,7,12,0,0,8570,8571,7,6,0,0,8571,8572,7,7,0,0,8572,8573,7,8,0,0,8573,8574,7,12,0,0,8574,8575,7,3,0,0,8575,8576,7,5,0,0,8576,1376,1,0,0,0,8577,8578,7,28,0,0,8578,8579,7,17,0,0,8579,8580,7,3,0,0,8580,8581,7,8,0,0,8581,8582,7,6,0,0,8582,8583,7,7,0,0,8583,8584,7,8,0,0,8584,1378,1,0,0,0,8585,8586,7,23,0,0,8586,8587,7,19,0,0,8587,8588,7,12,0,0,8588,8589,7,6,0,0,8589,8590,7,20,0,0,8590,1380,1,0,0,0,8591,8592,7,4,0,0,8592,8593,7,3,0,0,8593,8594,7,10,0,0,8594,1382,1,0,0,0,8595,8596,7,20,0,0,8596,8597,7,19,0,0,8597,8598,7,17,0,0,8598,8599,7,8,0,0,8599,1384,1,0,0,0,8600,8601,7,23,0,0,8601,8602,7,15,0,0,8602,8603,7,12,0,0,8603,8604,7,17,0,0,8604,8605,7,6,0,0,8605,8606,7,7,0,0,8606,1386,1,0,0,0,8607,8608,7,9,0,0,8608,8609,7,7,0,0,8609,8610,7,7,0,0,8610,8611,7,21,0,0,8611,1388,1,0,0,0,8612,8613,7,11,0,0,8613,8614,7,7,0,0,8614,8615,7,14,0,0,8615,8616,7,19,0,0,8616,8617,7,12,0,0,8617,8618,7,4,0,0,8618,1390,1,0,0,0,8619,8620,7,23,0,0,8620,8621,7,15,0,0,8621,8622,7,14,0,0,8622,8623,7,8,0,0,8623,8624,7,19,0,0,8624,8625,7,11,0,0,8625,8626,7,7,0,0,8626,8627,7,14,0,0,8627,8628,7,19,0,0,8628,8629,7,12,0,0,8629,8630,7,4,0,0,8630,1392,1,0,0,0,8631,8632,7,3,0,0,8632,8633,7,4,0,0,8633,8634,7,23,0,0,8634,8635,7,15,0,0,8635,8636,7,12,0,0,8636,1394,1,0,0,0,8637,8638,7,3,0,0,8638,8639,7,25,0,0,8639,8640,7,25,0,0,8640,8641,7,5,0,0,8641,8642,7,15,0,0,8642,8643,7,14,0,0,8643,8644,7,3,0,0,8644,8645,7,6,0,0,8645,8646,7,15,0,0,8646,8647,7,19,0,0,8647,8648,7,12,0,0,8648,8649,5,95,0,0,8649,8650,7,25,0,0,8650,8651,7,3,0,0,8651,8652,7,11,0,0,8652,8653,7,11,0,0,8653,8654,7,9,0,0,8654,8655,7,19,0,0,8655,8656,7,8,0,0,8656,8657,7,4,0,0,8657,8658,5,95,0,0,8658,8659,7,3,0,0,8659,8660,7,4,0,0,8660,8661,7,23,0,0,8661,8662,7,15,0,0,8662,8663,7,12,0,0,8663,1396,1,0,0,0,8664,8665,7,3,0,0,8665,8666,7,17,0,0,8666,8667,7,4,0,0,8667,8668,7,15,0,0,8668,8669,7,6,0,0,8669,8670,5,95,0,0,8670,8671,7,3,0,0,8671,8672,7,16,0,0,8672,8673,7,19,0,0,8673,8674,7,8,0,0,8674,8675,7,6,0,0,8675,8676,5,95,0,0,8676,8677,7,7,0,0,8677,8678,7,26,0,0,8678,8679,7,7,0,0,8679,8680,7,23,0,0,8680,8681,7,25,0,0,8681,8682,7,6,0,0,8682,1398,1,0,0,0,8683,8684,7,3,0,0,8684,8685,7,17,0,0,8685,8686,7,4,0,0,8686,8687,7,15,0,0,8687,8688,7,6,0,0,8688,8689,5,95,0,0,8689,8690,7,3,0,0,8690,8691,7,4,0,0,8691,8692,7,23,0,0,8692,8693,7,15,0,0,8693,8694,7,12,0,0,8694,1400,1,0,0,0,8695,8696,7,3,0,0,8696,8697,7,17,0,0,8697,8698,7,6,0,0,8698,8699,7,20,0,0,8699,8700,7,7,0,0,8700,8701,7,12,0,0,8701,8702,7,6,0,0,8702,8703,7,15,0,0,8703,8704,7,14,0,0,8704,8705,7,3,0,0,8705,8706,7,6,0,0,8706,8707,7,15,0,0,8707,8708,7,19,0,0,8708,8709,7,12,0,0,8709,8710,5,95,0,0,8710,8711,7,25,0,0,8711,8712,7,19,0,0,8712,8713,7,5,0,0,8713,8714,7,15,0,0,8714,8715,7,14,0,0,8715,8716,7,10,0,0,8716,8717,5,95,0,0,8717,8718,7,3,0,0,8718,8719,7,4,0,0,8719,8720,7,23,0,0,8720,8721,7,15,0,0,8721,8722,7,12,0,0,8722,1402,1,0,0,0,8723,8724,7,16,0,0,8724,8725,7,3,0,0,8725,8726,7,14,0,0,8726,8727,7,21,0,0,8727,8728,7,17,0,0,8728,8729,7,25,0,0,8729,8730,5,95,0,0,8730,8731,7,3,0,0,8731,8732,7,4,0,0,8732,8733,7,23,0,0,8733,8734,7,15,0,0,8734,8735,7,12,0,0,8735,1404,1,0,0,0,8736,8737,7,16,0,0,8737,8738,7,15,0,0,8738,8739,7,12,0,0,8739,8740,7,5,0,0,8740,8741,7,19,0,0,8741,8742,7,22,0,0,8742,8743,5,95,0,0,8743,8744,7,3,0,0,8744,8745,7,4,0,0,8745,8746,7,23,0,0,8746,8747,7,15,0,0,8747,8748,7,12,0,0,8748,1406,1,0,0,0,8749,8750,7,16,0,0,8750,8751,7,15,0,0,8751,8752,7,12,0,0,8752,8753,7,5,0,0,8753,8754,7,19,0,0,8754,8755,7,22,0,0,8755,8756,5,95,0,0,8756,8757,7,7,0,0,8757,8758,7,12,0,0,8758,8759,7,14,0,0,8759,8760,7,8,0,0,8760,8761,7,10,0,0,8761,8762,7,25,0,0,8762,8763,7,6,0,0,8763,8764,7,15,0,0,8764,8765,7,19,0,0,8765,8766,7,12,0,0,8766,8767,5,95,0,0,8767,8768,7,3,0,0,8768,8769,7,4,0,0,8769,8770,7,23,0,0,8770,8771,7,15,0,0,8771,8772,7,12,0,0,8772,1408,1,0,0,0,8773,8774,7,14,0,0,8774,8775,7,5,0,0,8775,8776,7,19,0,0,8776,8777,7,12,0,0,8777,8778,7,7,0,0,8778,8779,5,95,0,0,8779,8780,7,3,0,0,8780,8781,7,4,0,0,8781,8782,7,23,0,0,8782,8783,7,15,0,0,8783,8784,7,12,0,0,8784,1410,1,0,0,0,8785,8786,7,14,0,0,8786,8787,7,19,0,0,8787,8788,7,12,0,0,8788,8789,7,12,0,0,8789,8790,7,7,0,0,8790,8791,7,14,0,0,8791,8792,7,6,0,0,8792,8793,7,15,0,0,8793,8794,7,19,0,0,8794,8795,7,12,0,0,8795,8796,5,95,0,0,8796,8797,7,3,0,0,8797,8798,7,4,0,0,8798,8799,7,23,0,0,8799,8800,7,15,0,0,8800,8801,7,12,0,0,8801,1412,1,0,0,0,8802,8803,7,7,0,0,8803,8804,7,12,0,0,8804,8805,7,14,0,0,8805,8806,7,8,0,0,8806,8807,7,10,0,0,8807,8808,7,25,0,0,8808,8809,7,6,0,0,8809,8810,7,15,0,0,8810,8811,7,19,0,0,8811,8812,7,12,0,0,8812,8813,5,95,0,0,8813,8814,7,21,0,0,8814,8815,7,7,0,0,8815,8816,7,10,0,0,8816,8817,5,95,0,0,8817,8818,7,3,0,0,8818,8819,7,4,0,0,8819,8820,7,23,0,0,8820,8821,7,15,0,0,8821,8822,7,12,0,0,8822,1414,1,0,0,0,8823,8824,7,7,0,0,8824,8825,7,26,0,0,8825,8826,7,7,0,0,8826,8827,7,14,0,0,8827,8828,7,17,0,0,8828,8829,7,6,0,0,8829,8830,7,7,0,0,8830,1416,1,0,0,0,8831,8832,7,18,0,0,8832,8833,7,15,0,0,8833,8834,7,5,0,0,8834,8835,7,7,0,0,8835,1418,1,0,0,0,8836,8837,7,18,0,0,8837,8838,7,15,0,0,8838,8839,7,8,0,0,8839,8840,7,7,0,0,8840,8841,7,9,0,0,8841,8842,7,3,0,0,8842,8843,7,5,0,0,8843,8844,7,5,0,0,8844,8845,5,95,0,0,8845,8846,7,3,0,0,8846,8847,7,4,0,0,8847,8848,7,23,0,0,8848,8849,7,15,0,0,8849,8850,7,12,0,0,8850,1420,1,0,0,0,8851,8852,7,18,0,0,8852,8853,7,15,0,0,8853,8854,7,8,0,0,8854,8855,7,7,0,0,8855,8856,7,9,0,0,8856,8857,7,3,0,0,8857,8858,7,5,0,0,8858,8859,7,5,0,0,8859,8860,5,95,0,0,8860,8861,7,7,0,0,8861,8862,7,26,0,0,8862,8863,7,7,0,0,8863,8864,7,23,0,0,8864,8865,7,25,0,0,8865,8866,7,6,0,0,8866,1422,1,0,0,0,8867,8868,7,18,0,0,8868,8869,7,15,0,0,8869,8870,7,8,0,0,8870,8871,7,7,0,0,8871,8872,7,9,0,0,8872,8873,7,3,0,0,8873,8874,7,5,0,0,8874,8875,7,5,0,0,8875,8876,5,95,0,0,8876,8877,7,17,0,0,8877,8878,7,11,0,0,8878,8879,7,7,0,0,8879,8880,7,8,0,0,8880,1424,1,0,0,0,8881,8882,7,18,0,0,8882,8883,7,5,0,0,8883,8884,7,17,0,0,8884,8885,7,11,0,0,8885,8886,7,20,0,0,8886,8887,5,95,0,0,8887,8888,7,19,0,0,8888,8889,7,25,0,0,8889,8890,7,6,0,0,8890,8891,7,15,0,0,8891,8892,7,23,0,0,8892,8893,7,15,0,0,8893,8894,7,13,0,0,8894,8895,7,7,0,0,8895,8896,7,8,0,0,8896,8897,5,95,0,0,8897,8898,7,14,0,0,8898,8899,7,19,0,0,8899,8900,7,11,0,0,8900,8901,7,6,0,0,8901,8902,7,11,0,0,8902,1426,1,0,0,0,8903,8904,7,18,0,0,8904,8905,7,5,0,0,8905,8906,7,17,0,0,8906,8907,7,11,0,0,8907,8908,7,20,0,0,8908,8909,5,95,0,0,8909,8910,7,11,0,0,8910,8911,7,6,0,0,8911,8912,7,3,0,0,8912,8913,7,6,0,0,8913,8914,7,17,0,0,8914,8915,7,11,0,0,8915,1428,1,0,0,0,8916,8917,7,18,0,0,8917,8918,7,5,0,0,8918,8919,7,17,0,0,8919,8920,7,11,0,0,8920,8921,7,20,0,0,8921,8922,5,95,0,0,8922,8923,7,6,0,0,8923,8924,7,3,0,0,8924,8925,7,16,0,0,8925,8926,7,5,0,0,8926,8927,7,7,0,0,8927,8928,7,11,0,0,8928,1430,1,0,0,0,8929,8930,7,18,0,0,8930,8931,7,5,0,0,8931,8932,7,17,0,0,8932,8933,7,11,0,0,8933,8934,7,20,0,0,8934,8935,5,95,0,0,8935,8936,7,17,0,0,8936,8937,7,11,0,0,8937,8938,7,7,0,0,8938,8939,7,8,0,0,8939,8940,5,95,0,0,8940,8941,7,8,0,0,8941,8942,7,7,0,0,8942,8943,7,11,0,0,8943,8944,7,19,0,0,8944,8945,7,17,0,0,8945,8946,7,8,0,0,8946,8947,7,14,0,0,8947,8948,7,7,0,0,8948,8949,7,11,0,0,8949,1432,1,0,0,0,8950,8951,7,22,0,0,8951,8952,7,8,0,0,8952,8953,7,19,0,0,8953,8954,7,17,0,0,8954,8955,7,25,0,0,8955,8956,5,95,0,0,8956,8957,7,8,0,0,8957,8958,7,7,0,0,8958,8959,7,25,0,0,8959,8960,7,5,0,0,8960,8961,7,15,0,0,8961,8962,7,14,0,0,8962,8963,7,3,0,0,8963,8964,7,6,0,0,8964,8965,7,15,0,0,8965,8966,7,19,0,0,8966,8967,7,12,0,0,8967,8968,5,95,0,0,8968,8969,7,3,0,0,8969,8970,7,4,0,0,8970,8971,7,23,0,0,8971,8972,7,15,0,0,8972,8973,7,12,0,0,8973,1434,1,0,0,0,8974,8975,7,15,0,0,8975,8976,7,12,0,0,8976,8977,7,12,0,0,8977,8978,7,19,0,0,8978,8979,7,4,0,0,8979,8980,7,16,0,0,8980,8981,5,95,0,0,8981,8982,7,8,0,0,8982,8983,7,7,0,0,8983,8984,7,4,0,0,8984,8985,7,19,0,0,8985,8986,5,95,0,0,8986,8987,7,5,0,0,8987,8988,7,19,0,0,8988,8989,7,22,0,0,8989,8990,5,95,0,0,8990,8991,7,3,0,0,8991,8992,7,8,0,0,8992,8993,7,14,0,0,8993,8994,7,20,0,0,8994,8995,7,15,0,0,8995,8996,7,24,0,0,8996,8997,7,7,0,0,8997,1436,1,0,0,0,8998,8999,7,15,0,0,8999,9e3,7,12,0,0,9e3,9001,7,12,0,0,9001,9002,7,19,0,0,9002,9003,7,4,0,0,9003,9004,7,16,0,0,9004,9005,5,95,0,0,9005,9006,7,8,0,0,9006,9007,7,7,0,0,9007,9008,7,4,0,0,9008,9009,7,19,0,0,9009,9010,5,95,0,0,9010,9011,7,5,0,0,9011,9012,7,19,0,0,9012,9013,7,22,0,0,9013,9014,5,95,0,0,9014,9015,7,7,0,0,9015,9016,7,12,0,0,9016,9017,7,3,0,0,9017,9018,7,16,0,0,9018,9019,7,5,0,0,9019,9020,7,7,0,0,9020,1438,1,0,0,0,9021,9022,7,15,0,0,9022,9023,7,12,0,0,9023,9024,7,24,0,0,9024,9025,7,19,0,0,9025,9026,7,21,0,0,9026,9027,7,7,0,0,9027,1440,1,0,0,0,9028,9029,7,5,0,0,9029,9030,7,3,0,0,9030,9031,7,23,0,0,9031,9032,7,16,0,0,9032,9033,7,4,0,0,9033,9034,7,3,0,0,9034,1442,1,0,0,0,9035,9036,7,12,0,0,9036,9037,7,4,0,0,9037,9038,7,16,0,0,9038,9039,5,95,0,0,9039,9040,7,11,0,0,9040,9041,7,6,0,0,9041,9042,7,19,0,0,9042,9043,7,8,0,0,9043,9044,7,7,0,0,9044,9045,7,4,0,0,9045,9046,5,95,0,0,9046,9047,7,17,0,0,9047,9048,7,11,0,0,9048,9049,7,7,0,0,9049,9050,7,8,0,0,9050,1444,1,0,0,0,9051,9052,7,25,0,0,9052,9053,7,3,0,0,9053,9054,7,11,0,0,9054,9055,7,11,0,0,9055,9056,7,9,0,0,9056,9057,7,19,0,0,9057,9058,7,8,0,0,9058,9059,7,4,0,0,9059,9060,7,5,0,0,9060,9061,7,7,0,0,9061,9062,7,11,0,0,9062,9063,7,11,0,0,9063,9064,5,95,0,0,9064,9065,7,17,0,0,9065,9066,7,11,0,0,9066,9067,7,7,0,0,9067,9068,7,8,0,0,9068,9069,5,95,0,0,9069,9070,7,3,0,0,9070,9071,7,4,0,0,9071,9072,7,23,0,0,9072,9073,7,15,0,0,9073,9074,7,12,0,0,9074,1446,1,0,0,0,9075,9076,7,25,0,0,9076,9077,7,7,0,0,9077,9078,7,8,0,0,9078,9079,7,11,0,0,9079,9080,7,15,0,0,9080,9081,7,11,0,0,9081,9082,7,6,0,0,9082,9083,5,95,0,0,9083,9084,7,8,0,0,9084,9085,7,19,0,0,9085,9086,5,95,0,0,9086,9087,7,24,0,0,9087,9088,7,3,0,0,9088,9089,7,8,0,0,9089,9090,7,15,0,0,9090,9091,7,3,0,0,9091,9092,7,16,0,0,9092,9093,7,5,0,0,9093,9094,7,7,0,0,9094,9095,7,11,0,0,9095,9096,5,95,0,0,9096,9097,7,3,0,0,9097,9098,7,4,0,0,9098,9099,7,23,0,0,9099,9100,7,15,0,0,9100,9101,7,12,0,0,9101,1448,1,0,0,0,9102,9103,7,25,0,0,9103,9104,7,8,0,0,9104,9105,7,15,0,0,9105,9106,7,24,0,0,9106,9107,7,15,0,0,9107,9108,7,5,0,0,9108,9109,7,7,0,0,9109,9110,7,22,0,0,9110,9111,7,7,0,0,9111,9112,7,11,0,0,9112,1450,1,0,0,0,9113,9114,7,25,0,0,9114,9115,7,8,0,0,9115,9116,7,19,0,0,9116,9117,7,14,0,0,9117,9118,7,7,0,0,9118,9119,7,11,0,0,9119,9120,7,11,0,0,9120,1452,1,0,0,0,9121,9122,7,8,0,0,9122,9123,7,7,0,0,9123,9124,7,5,0,0,9124,9125,7,19,0,0,9125,9126,7,3,0,0,9126,9127,7,4,0,0,9127,1454,1,0,0,0,9128,9129,7,8,0,0,9129,9130,7,7,0,0,9130,9131,7,25,0,0,9131,9132,7,5,0,0,9132,9133,7,15,0,0,9133,9134,7,14,0,0,9134,9135,7,3,0,0,9135,9136,7,6,0,0,9136,9137,7,15,0,0,9137,9138,7,19,0,0,9138,9139,7,12,0,0,9139,9140,5,95,0,0,9140,9141,7,3,0,0,9141,9142,7,25,0,0,9142,9143,7,25,0,0,9143,9144,7,5,0,0,9144,9145,7,15,0,0,9145,9146,7,7,0,0,9146,9147,7,8,0,0,9147,1456,1,0,0,0,9148,9149,7,8,0,0,9149,9150,7,7,0,0,9150,9151,7,25,0,0,9151,9152,7,5,0,0,9152,9153,7,15,0,0,9153,9154,7,14,0,0,9154,9155,7,3,0,0,9155,9156,7,6,0,0,9156,9157,7,15,0,0,9157,9158,7,19,0,0,9158,9159,7,12,0,0,9159,9160,5,95,0,0,9160,9161,7,11,0,0,9161,9162,7,5,0,0,9162,9163,7,3,0,0,9163,9164,7,24,0,0,9164,9165,7,7,0,0,9165,9166,5,95,0,0,9166,9167,7,3,0,0,9167,9168,7,4,0,0,9168,9169,7,23,0,0,9169,9170,7,15,0,0,9170,9171,7,12,0,0,9171,1458,1,0,0,0,9172,9173,7,8,0,0,9173,9174,7,7,0,0,9174,9175,7,11,0,0,9175,9176,7,19,0,0,9176,9177,7,17,0,0,9177,9178,7,8,0,0,9178,9179,7,14,0,0,9179,9180,7,7,0,0,9180,9181,5,95,0,0,9181,9182,7,22,0,0,9182,9183,7,8,0,0,9183,9184,7,19,0,0,9184,9185,7,17,0,0,9185,9186,7,25,0,0,9186,9187,5,95,0,0,9187,9188,7,3,0,0,9188,9189,7,4,0,0,9189,9190,7,23,0,0,9190,9191,7,15,0,0,9191,9192,7,12,0,0,9192,1460,1,0,0,0,9193,9194,7,8,0,0,9194,9195,7,7,0,0,9195,9196,7,11,0,0,9196,9197,7,19,0,0,9197,9198,7,17,0,0,9198,9199,7,8,0,0,9199,9200,7,14,0,0,9200,9201,7,7,0,0,9201,9202,5,95,0,0,9202,9203,7,22,0,0,9203,9204,7,8,0,0,9204,9205,7,19,0,0,9205,9206,7,17,0,0,9206,9207,7,25,0,0,9207,9208,5,95,0,0,9208,9209,7,17,0,0,9209,9210,7,11,0,0,9210,9211,7,7,0,0,9211,9212,7,8,0,0,9212,1462,1,0,0,0,9213,9214,7,8,0,0,9214,9215,7,19,0,0,9215,9216,7,5,0,0,9216,9217,7,7,0,0,9217,9218,5,95,0,0,9218,9219,7,3,0,0,9219,9220,7,4,0,0,9220,9221,7,23,0,0,9221,9222,7,15,0,0,9222,9223,7,12,0,0,9223,1464,1,0,0,0,9224,9225,7,8,0,0,9225,9226,7,19,0,0,9226,9227,7,17,0,0,9227,9228,7,6,0,0,9228,9229,7,15,0,0,9229,9230,7,12,0,0,9230,9231,7,7,0,0,9231,1466,1,0,0,0,9232,9233,7,11,0,0,9233,9234,5,51,0,0,9234,1468,1,0,0,0,9235,9236,7,11,0,0,9236,9237,7,7,0,0,9237,9238,7,8,0,0,9238,9239,7,24,0,0,9239,9240,7,15,0,0,9240,9241,7,14,0,0,9241,9242,7,7,0,0,9242,9243,5,95,0,0,9243,9244,7,14,0,0,9244,9245,7,19,0,0,9245,9246,7,12,0,0,9246,9247,7,12,0,0,9247,9248,7,7,0,0,9248,9249,7,14,0,0,9249,9250,7,6,0,0,9250,9251,7,15,0,0,9251,9252,7,19,0,0,9252,9253,7,12,0,0,9253,9254,5,95,0,0,9254,9255,7,3,0,0,9255,9256,7,4,0,0,9256,9257,7,23,0,0,9257,9258,7,15,0,0,9258,9259,7,12,0,0,9259,1470,1,0,0,0,9260,9262,3,2289,1144,0,9261,9260,1,0,0,0,9261,9262,1,0,0,0,9262,9263,1,0,0,0,9263,9264,7,11,0,0,9264,9265,7,7,0,0,9265,9266,7,11,0,0,9266,9267,7,11,0,0,9267,9268,7,15,0,0,9268,9269,7,19,0,0,9269,9270,7,12,0,0,9270,9271,5,95,0,0,9271,9272,7,24,0,0,9272,9273,7,3,0,0,9273,9274,7,8,0,0,9274,9275,7,15,0,0,9275,9276,7,3,0,0,9276,9277,7,16,0,0,9277,9278,7,5,0,0,9278,9279,7,7,0,0,9279,9280,7,11,0,0,9280,9281,5,95,0,0,9281,9282,7,3,0,0,9282,9283,7,4,0,0,9283,9284,7,23,0,0,9284,9285,7,15,0,0,9285,9286,7,12,0,0,9286,9288,1,0,0,0,9287,9289,3,2289,1144,0,9288,9287,1,0,0,0,9288,9289,1,0,0,0,9289,1472,1,0,0,0,9290,9291,7,11,0,0,9291,9292,7,7,0,0,9292,9293,7,6,0,0,9293,9294,5,95,0,0,9294,9295,7,17,0,0,9295,9296,7,11,0,0,9296,9297,7,7,0,0,9297,9298,7,8,0,0,9298,9299,5,95,0,0,9299,9300,7,15,0,0,9300,9301,7,4,0,0,9301,1474,1,0,0,0,9302,9303,7,11,0,0,9303,9304,7,20,0,0,9304,9305,7,19,0,0,9305,9306,7,9,0,0,9306,9307,5,95,0,0,9307,9308,7,8,0,0,9308,9309,7,19,0,0,9309,9310,7,17,0,0,9310,9311,7,6,0,0,9311,9312,7,15,0,0,9312,9313,7,12,0,0,9313,9314,7,7,0,0,9314,1476,1,0,0,0,9315,9316,7,11,0,0,9316,9317,7,20,0,0,9317,9318,7,17,0,0,9318,9319,7,6,0,0,9319,9320,7,4,0,0,9320,9321,7,19,0,0,9321,9322,7,9,0,0,9322,9323,7,12,0,0,9323,1478,1,0,0,0,9324,9325,7,11,0,0,9325,9326,7,17,0,0,9326,9327,7,25,0,0,9327,9328,7,7,0,0,9328,9329,7,8,0,0,9329,1480,1,0,0,0,9330,9331,7,11,0,0,9331,9332,7,10,0,0,9332,9333,7,11,0,0,9333,9334,7,6,0,0,9334,9335,7,7,0,0,9335,9336,7,23,0,0,9336,9337,5,95,0,0,9337,9338,7,24,0,0,9338,9339,7,3,0,0,9339,9340,7,8,0,0,9340,9341,7,15,0,0,9341,9342,7,3,0,0,9342,9343,7,16,0,0,9343,9344,7,5,0,0,9344,9345,7,7,0,0,9345,9346,7,11,0,0,9346,9347,5,95,0,0,9347,9348,7,3,0,0,9348,9349,7,4,0,0,9349,9350,7,23,0,0,9350,9351,7,15,0,0,9351,9352,7,12,0,0,9352,1482,1,0,0,0,9353,9354,7,6,0,0,9354,9355,7,3,0,0,9355,9356,7,16,0,0,9356,9357,7,5,0,0,9357,9358,7,7,0,0,9358,9359,7,11,0,0,9359,1484,1,0,0,0,9360,9361,7,6,0,0,9361,9362,7,3,0,0,9362,9363,7,16,0,0,9363,9364,7,5,0,0,9364,9365,7,7,0,0,9365,9366,5,95,0,0,9366,9367,7,7,0,0,9367,9368,7,12,0,0,9368,9369,7,14,0,0,9369,9370,7,8,0,0,9370,9371,7,10,0,0,9371,9372,7,25,0,0,9372,9373,7,6,0,0,9373,9374,7,15,0,0,9374,9375,7,19,0,0,9375,9376,7,12,0,0,9376,9377,5,95,0,0,9377,9378,7,3,0,0,9378,9379,7,4,0,0,9379,9380,7,23,0,0,9380,9381,7,15,0,0,9381,9382,7,12,0,0,9382,1486,1,0,0,0,9383,9384,7,24,0,0,9384,9385,7,7,0,0,9385,9386,7,8,0,0,9386,9387,7,11,0,0,9387,9388,7,15,0,0,9388,9389,7,19,0,0,9389,9390,7,12,0,0,9390,9391,5,95,0,0,9391,9392,7,6,0,0,9392,9393,7,19,0,0,9393,9394,7,21,0,0,9394,9395,7,7,0,0,9395,9396,7,12,0,0,9396,9397,5,95,0,0,9397,9398,7,3,0,0,9398,9399,7,4,0,0,9399,9400,7,23,0,0,9400,9401,7,15,0,0,9401,9402,7,12,0,0,9402,1488,1,0,0,0,9403,9404,7,26,0,0,9404,9405,7,3,0,0,9405,9406,5,95,0,0,9406,9407,7,8,0,0,9407,9408,7,7,0,0,9408,9409,7,14,0,0,9409,9410,7,19,0,0,9410,9411,7,24,0,0,9411,9412,7,7,0,0,9412,9413,7,8,0,0,9413,9414,5,95,0,0,9414,9415,7,3,0,0,9415,9416,7,4,0,0,9416,9417,7,23,0,0,9417,9418,7,15,0,0,9418,9419,7,12,0,0,9419,1490,1,0,0,0,9420,9421,7,3,0,0,9421,9422,7,8,0,0,9422,9423,7,23,0,0,9423,9424,7,11,0,0,9424,9425,7,14,0,0,9425,9426,7,15,0,0,9426,9427,7,15,0,0,9427,9428,5,56,0,0,9428,1492,1,0,0,0,9429,9430,7,3,0,0,9430,9431,7,11,0,0,9431,9432,7,14,0,0,9432,9433,7,15,0,0,9433,9434,7,15,0,0,9434,1494,1,0,0,0,9435,9436,7,16,0,0,9436,9437,7,15,0,0,9437,9438,7,22,0,0,9438,9439,5,53,0,0,9439,1496,1,0,0,0,9440,9441,7,14,0,0,9441,9442,7,25,0,0,9442,9443,5,49,0,0,9443,9444,5,50,0,0,9444,9445,5,53,0,0,9445,9446,5,48,0,0,9446,1498,1,0,0,0,9447,9448,7,14,0,0,9448,9449,7,25,0,0,9449,9450,5,49,0,0,9450,9451,5,50,0,0,9451,9452,5,53,0,0,9452,9453,5,49,0,0,9453,1500,1,0,0,0,9454,9455,7,14,0,0,9455,9456,7,25,0,0,9456,9457,5,49,0,0,9457,9458,5,50,0,0,9458,9459,5,53,0,0,9459,9460,5,54,0,0,9460,1502,1,0,0,0,9461,9462,7,14,0,0,9462,9463,7,25,0,0,9463,9464,5,49,0,0,9464,9465,5,50,0,0,9465,9466,5,53,0,0,9466,9467,5,55,0,0,9467,1504,1,0,0,0,9468,9469,7,14,0,0,9469,9470,7,25,0,0,9470,9471,5,56,0,0,9471,9472,5,53,0,0,9472,9473,5,48,0,0,9473,1506,1,0,0,0,9474,9475,7,14,0,0,9475,9476,7,25,0,0,9476,9477,5,56,0,0,9477,9478,5,53,0,0,9478,9479,5,50,0,0,9479,1508,1,0,0,0,9480,9481,7,14,0,0,9481,9482,7,25,0,0,9482,9483,5,56,0,0,9483,9484,5,54,0,0,9484,9485,5,54,0,0,9485,1510,1,0,0,0,9486,9487,7,14,0,0,9487,9488,7,25,0,0,9488,9489,5,57,0,0,9489,9490,5,51,0,0,9490,9491,5,50,0,0,9491,1512,1,0,0,0,9492,9493,7,4,0,0,9493,9494,7,7,0,0,9494,9495,7,14,0,0,9495,9496,5,56,0,0,9496,1514,1,0,0,0,9497,9498,7,7,0,0,9498,9499,7,17,0,0,9499,9500,7,14,0,0,9500,9501,7,27,0,0,9501,9502,7,25,0,0,9502,9503,7,23,0,0,9503,9504,7,11,0,0,9504,1516,1,0,0,0,9505,9506,7,7,0,0,9506,9507,7,17,0,0,9507,9508,7,14,0,0,9508,9509,7,21,0,0,9509,9510,7,8,0,0,9510,1518,1,0,0,0,9511,9512,7,22,0,0,9512,9513,7,16,0,0,9513,9514,5,49,0,0,9514,9515,5,56,0,0,9515,9516,5,48,0,0,9516,9517,5,51,0,0,9517,9518,5,48,0,0,9518,1520,1,0,0,0,9519,9520,7,22,0,0,9520,9521,7,16,0,0,9521,9522,5,50,0,0,9522,9523,5,51,0,0,9523,9524,5,49,0,0,9524,9525,5,50,0,0,9525,1522,1,0,0,0,9526,9527,7,22,0,0,9527,9528,7,16,0,0,9528,9529,7,21,0,0,9529,1524,1,0,0,0,9530,9531,7,22,0,0,9531,9532,7,7,0,0,9532,9533,7,19,0,0,9533,9534,7,11,0,0,9534,9535,7,6,0,0,9535,9536,7,4,0,0,9536,9537,5,56,0,0,9537,1526,1,0,0,0,9538,9539,7,22,0,0,9539,9540,7,8,0,0,9540,9541,7,7,0,0,9541,9542,7,7,0,0,9542,9543,7,21,0,0,9543,1528,1,0,0,0,9544,9545,7,20,0,0,9545,9546,7,7,0,0,9546,9547,7,16,0,0,9547,9548,7,8,0,0,9548,9549,7,7,0,0,9549,9550,7,9,0,0,9550,1530,1,0,0,0,9551,9552,7,20,0,0,9552,9553,7,25,0,0,9553,9554,5,56,0,0,9554,1532,1,0,0,0,9555,9556,7,21,0,0,9556,9557,7,7,0,0,9557,9558,7,10,0,0,9558,9559,7,16,0,0,9559,9560,7,14,0,0,9560,9561,7,11,0,0,9561,9562,5,50,0,0,9562,1534,1,0,0,0,9563,9564,7,21,0,0,9564,9565,7,19,0,0,9565,9566,7,15,0,0,9566,9567,5,56,0,0,9567,9568,7,8,0,0,9568,1536,1,0,0,0,9569,9570,7,21,0,0,9570,9571,7,19,0,0,9571,9572,7,15,0,0,9572,9573,5,56,0,0,9573,9574,7,17,0,0,9574,1538,1,0,0,0,9575,9576,7,5,0,0,9576,9577,7,3,0,0,9577,9578,7,6,0,0,9578,9579,7,15,0,0,9579,9580,7,12,0,0,9580,9581,5,49,0,0,9581,1540,1,0,0,0,9582,9583,7,5,0,0,9583,9584,7,3,0,0,9584,9585,7,6,0,0,9585,9586,7,15,0,0,9586,9587,7,12,0,0,9587,9588,5,50,0,0,9588,1542,1,0,0,0,9589,9590,7,5,0,0,9590,9591,7,3,0,0,9591,9592,7,6,0,0,9592,9593,7,15,0,0,9593,9594,7,12,0,0,9594,9595,5,53,0,0,9595,1544,1,0,0,0,9596,9597,7,5,0,0,9597,9598,7,3,0,0,9598,9599,7,6,0,0,9599,9600,7,15,0,0,9600,9601,7,12,0,0,9601,9602,5,55,0,0,9602,1546,1,0,0,0,9603,9604,7,23,0,0,9604,9605,7,3,0,0,9605,9606,7,14,0,0,9606,9607,7,14,0,0,9607,9608,7,7,0,0,9608,1548,1,0,0,0,9609,9610,7,23,0,0,9610,9611,7,3,0,0,9611,9612,7,14,0,0,9612,9613,7,8,0,0,9613,9614,7,19,0,0,9614,9615,7,23,0,0,9615,9616,7,3,0,0,9616,9617,7,12,0,0,9617,1550,1,0,0,0,9618,9619,7,11,0,0,9619,9620,7,27,0,0,9620,9621,7,15,0,0,9621,9622,7,11,0,0,9622,1552,1,0,0,0,9623,9624,7,11,0,0,9624,9625,7,9,0,0,9625,9626,7,7,0,0,9626,9627,5,55,0,0,9627,1554,1,0,0,0,9628,9629,7,6,0,0,9629,9630,7,15,0,0,9630,9631,7,11,0,0,9631,9632,5,54,0,0,9632,9633,5,50,0,0,9633,9634,5,48,0,0,9634,1556,1,0,0,0,9635,9636,7,17,0,0,9636,9637,7,14,0,0,9637,9638,7,11,0,0,9638,9639,5,50,0,0,9639,1558,1,0,0,0,9640,9641,7,17,0,0,9641,9642,7,27,0,0,9642,9643,7,15,0,0,9643,9644,7,11,0,0,9644,1560,1,0,0,0,9645,9646,7,17,0,0,9646,9647,7,6,0,0,9647,9648,7,18,0,0,9648,9649,5,49,0,0,9649,9650,5,54,0,0,9650,1562,1,0,0,0,9651,9652,7,17,0,0,9652,9653,7,6,0,0,9653,9654,7,18,0,0,9654,9655,5,49,0,0,9655,9656,5,54,0,0,9656,9657,7,5,0,0,9657,9658,7,7,0,0,9658,1564,1,0,0,0,9659,9660,7,17,0,0,9660,9661,7,6,0,0,9661,9662,7,18,0,0,9662,9663,5,51,0,0,9663,9664,5,50,0,0,9664,1566,1,0,0,0,9665,9666,7,17,0,0,9666,9667,7,6,0,0,9667,9668,7,18,0,0,9668,9669,5,56,0,0,9669,1568,1,0,0,0,9670,9671,7,17,0,0,9671,9672,7,6,0,0,9672,9673,7,18,0,0,9673,9674,5,56,0,0,9674,9675,7,23,0,0,9675,9676,7,16,0,0,9676,9677,5,51,0,0,9677,1570,1,0,0,0,9678,9679,7,17,0,0,9679,9680,7,6,0,0,9680,9681,7,18,0,0,9681,9682,5,56,0,0,9682,9683,7,23,0,0,9683,9684,7,16,0,0,9684,9685,5,52,0,0,9685,1572,1,0,0,0,9686,9687,7,3,0,0,9687,9688,7,8,0,0,9688,9689,7,14,0,0,9689,9690,7,20,0,0,9690,9691,7,15,0,0,9691,9692,7,24,0,0,9692,9693,7,7,0,0,9693,1574,1,0,0,0,9694,9695,7,16,0,0,9695,9696,7,5,0,0,9696,9697,7,3,0,0,9697,9698,7,14,0,0,9698,9699,7,21,0,0,9699,9700,7,20,0,0,9700,9701,7,19,0,0,9701,9702,7,5,0,0,9702,9703,7,7,0,0,9703,1576,1,0,0,0,9704,9705,7,14,0,0,9705,9706,7,11,0,0,9706,9707,7,24,0,0,9707,1578,1,0,0,0,9708,9709,7,18,0,0,9709,9710,7,7,0,0,9710,9711,7,4,0,0,9711,9712,7,7,0,0,9712,9713,7,8,0,0,9713,9714,7,3,0,0,9714,9715,7,6,0,0,9715,9716,7,7,0,0,9716,9717,7,4,0,0,9717,1580,1,0,0,0,9718,9719,7,15,0,0,9719,9720,7,12,0,0,9720,9721,7,12,0,0,9721,9722,7,19,0,0,9722,9723,7,4,0,0,9723,9724,7,16,0,0,9724,1582,1,0,0,0,9725,9726,7,23,0,0,9726,9727,7,7,0,0,9727,9728,7,23,0,0,9728,9729,7,19,0,0,9729,9730,7,8,0,0,9730,9731,7,10,0,0,9731,1584,1,0,0,0,9732,9733,7,23,0,0,9733,9734,7,8,0,0,9734,9735,7,22,0,0,9735,9736,5,95,0,0,9736,9737,7,23,0,0,9737,9738,7,10,0,0,9738,9739,7,15,0,0,9739,9740,7,11,0,0,9740,9741,7,3,0,0,9741,9742,7,23,0,0,9742,1586,1,0,0,0,9743,9744,7,23,0,0,9744,9745,7,10,0,0,9745,9746,7,15,0,0,9746,9747,7,11,0,0,9747,9748,7,3,0,0,9748,9749,7,23,0,0,9749,1588,1,0,0,0,9750,9751,7,12,0,0,9751,9752,7,4,0,0,9752,9753,7,16,0,0,9753,1590,1,0,0,0,9754,9755,7,12,0,0,9755,9756,7,4,0,0,9756,9757,7,16,0,0,9757,9758,7,14,0,0,9758,9759,7,5,0,0,9759,9760,7,17,0,0,9760,9761,7,11,0,0,9761,9762,7,6,0,0,9762,9763,7,7,0,0,9763,9764,7,8,0,0,9764,1592,1,0,0,0,9765,9766,7,25,0,0,9766,9767,7,7,0,0,9767,9768,7,8,0,0,9768,9769,7,18,0,0,9769,9770,7,19,0,0,9770,9771,7,8,0,0,9771,9772,7,23,0,0,9772,9773,7,3,0,0,9773,9774,7,12,0,0,9774,9775,7,14,0,0,9775,9776,7,7,0,0,9776,9777,5,95,0,0,9777,9778,7,11,0,0,9778,9779,7,14,0,0,9779,9780,7,20,0,0,9780,9781,7,7,0,0,9781,9782,7,23,0,0,9782,9783,7,3,0,0,9783,1594,1,0,0,0,9784,9785,7,6,0,0,9785,9786,7,19,0,0,9786,9787,7,21,0,0,9787,9788,7,17,0,0,9788,9789,7,4,0,0,9789,9790,7,16,0,0,9790,1596,1,0,0,0,9791,9792,7,8,0,0,9792,9793,7,7,0,0,9793,9794,7,25,0,0,9794,9795,7,7,0,0,9795,9796,7,3,0,0,9796,9797,7,6,0,0,9797,9798,7,3,0,0,9798,9799,7,16,0,0,9799,9800,7,5,0,0,9800,9801,7,7,0,0,9801,1598,1,0,0,0,9802,9803,7,14,0,0,9803,9804,7,19,0,0,9804,9805,7,23,0,0,9805,9806,7,23,0,0,9806,9807,7,15,0,0,9807,9808,7,6,0,0,9808,9809,7,6,0,0,9809,9810,7,7,0,0,9810,9811,7,4,0,0,9811,1600,1,0,0,0,9812,9813,7,17,0,0,9813,9814,7,12,0,0,9814,9815,7,14,0,0,9815,9816,7,19,0,0,9816,9817,7,23,0,0,9817,9818,7,23,0,0,9818,9819,7,15,0,0,9819,9820,7,6,0,0,9820,9821,7,6,0,0,9821,9822,7,7,0,0,9822,9823,7,4,0,0,9823,1602,1,0,0,0,9824,9825,7,11,0,0,9825,9826,7,7,0,0,9826,9827,7,8,0,0,9827,9828,7,15,0,0,9828,9829,7,3,0,0,9829,9830,7,5,0,0,9830,9831,7,15,0,0,9831,9832,7,13,0,0,9832,9833,7,3,0,0,9833,9834,7,16,0,0,9834,9835,7,5,0,0,9835,9836,7,7,0,0,9836,1604,1,0,0,0,9837,9838,7,22,0,0,9838,9839,7,7,0,0,9839,9840,7,19,0,0,9840,9841,7,23,0,0,9841,9842,7,7,0,0,9842,9843,7,6,0,0,9843,9844,7,8,0,0,9844,9845,7,10,0,0,9845,9846,7,14,0,0,9846,9847,7,19,0,0,9847,9848,7,5,0,0,9848,9849,7,5,0,0,9849,9850,7,7,0,0,9850,9851,7,14,0,0,9851,9852,7,6,0,0,9852,9853,7,15,0,0,9853,9854,7,19,0,0,9854,9855,7,12,0,0,9855,1606,1,0,0,0,9856,9857,7,22,0,0,9857,9858,7,7,0,0,9858,9859,7,19,0,0,9859,9860,7,23,0,0,9860,9861,7,14,0,0,9861,9862,7,19,0,0,9862,9863,7,5,0,0,9863,9864,7,5,0,0,9864,9865,7,7,0,0,9865,9866,7,14,0,0,9866,9867,7,6,0,0,9867,9868,7,15,0,0,9868,9869,7,19,0,0,9869,9870,7,12,0,0,9870,1608,1,0,0,0,9871,9872,7,22,0,0,9872,9873,7,7,0,0,9873,9874,7,19,0,0,9874,9875,7,23,0,0,9875,9876,7,7,0,0,9876,9877,7,6,0,0,9877,9878,7,8,0,0,9878,9879,7,10,0,0,9879,1610,1,0,0,0,9880,9881,7,5,0,0,9881,9882,7,15,0,0,9882,9883,7,12,0,0,9883,9884,7,7,0,0,9884,9885,7,11,0,0,9885,9886,7,6,0,0,9886,9887,7,8,0,0,9887,9888,7,15,0,0,9888,9889,7,12,0,0,9889,9890,7,22,0,0,9890,1612,1,0,0,0,9891,9892,7,23,0,0,9892,9893,7,17,0,0,9893,9894,7,5,0,0,9894,9895,7,6,0,0,9895,9896,7,15,0,0,9896,9897,7,5,0,0,9897,9898,7,15,0,0,9898,9899,7,12,0,0,9899,9900,7,7,0,0,9900,9901,7,11,0,0,9901,9902,7,6,0,0,9902,9903,7,8,0,0,9903,9904,7,15,0,0,9904,9905,7,12,0,0,9905,9906,7,22,0,0,9906,1614,1,0,0,0,9907,9908,7,23,0,0,9908,9909,7,17,0,0,9909,9910,7,5,0,0,9910,9911,7,6,0,0,9911,9912,7,15,0,0,9912,9913,7,25,0,0,9913,9914,7,19,0,0,9914,9915,7,15,0,0,9915,9916,7,12,0,0,9916,9917,7,6,0,0,9917,1616,1,0,0,0,9918,9919,7,23,0,0,9919,9920,7,17,0,0,9920,9921,7,5,0,0,9921,9922,7,6,0,0,9922,9923,7,15,0,0,9923,9924,7,25,0,0,9924,9925,7,19,0,0,9925,9926,7,5,0,0,9926,9927,7,10,0,0,9927,9928,7,22,0,0,9928,9929,7,19,0,0,9929,9930,7,12,0,0,9930,1618,1,0,0,0,9931,9932,7,25,0,0,9932,9933,7,19,0,0,9933,9934,7,15,0,0,9934,9935,7,12,0,0,9935,9936,7,6,0,0,9936,1620,1,0,0,0,9937,9938,7,25,0,0,9938,9939,7,19,0,0,9939,9940,7,5,0,0,9940,9941,7,10,0,0,9941,9942,7,22,0,0,9942,9943,7,19,0,0,9943,9944,7,12,0,0,9944,1622,1,0,0,0,9945,9946,7,3,0,0,9946,9947,7,16,0,0,9947,9948,7,11,0,0,9948,1624,1,0,0,0,9949,9950,7,3,0,0,9950,9951,7,14,0,0,9951,9952,7,19,0,0,9952,9953,7,11,0,0,9953,1626,1,0,0,0,9954,9955,7,3,0,0,9955,9956,7,4,0,0,9956,9957,7,4,0,0,9957,9958,7,4,0,0,9958,9959,7,3,0,0,9959,9960,7,6,0,0,9960,9961,7,7,0,0,9961,1628,1,0,0,0,9962,9963,7,3,0,0,9963,9964,7,4,0,0,9964,9965,7,4,0,0,9965,9966,7,6,0,0,9966,9967,7,15,0,0,9967,9968,7,23,0,0,9968,9969,7,7,0,0,9969,1630,1,0,0,0,9970,9971,7,3,0,0,9971,9972,7,7,0,0,9972,9973,7,11,0,0,9973,9974,5,95,0,0,9974,9975,7,4,0,0,9975,9976,7,7,0,0,9976,9977,7,14,0,0,9977,9978,7,8,0,0,9978,9979,7,10,0,0,9979,9980,7,25,0,0,9980,9981,7,6,0,0,9981,1632,1,0,0,0,9982,9983,7,3,0,0,9983,9984,7,7,0,0,9984,9985,7,11,0,0,9985,9986,5,95,0,0,9986,9987,7,7,0,0,9987,9988,7,12,0,0,9988,9989,7,14,0,0,9989,9990,7,8,0,0,9990,9991,7,10,0,0,9991,9992,7,25,0,0,9992,9993,7,6,0,0,9993,1634,1,0,0,0,9994,9995,7,3,0,0,9995,9996,7,8,0,0,9996,9997,7,7,0,0,9997,9998,7,3,0,0,9998,1636,1,0,0,0,9999,1e4,7,3,0,0,1e4,10001,7,11,0,0,10001,10002,7,16,0,0,10002,10003,7,15,0,0,10003,10004,7,12,0,0,10004,10005,7,3,0,0,10005,10006,7,8,0,0,10006,10007,7,10,0,0,10007,1638,1,0,0,0,10008,10009,7,3,0,0,10009,10010,7,11,0,0,10010,10011,7,15,0,0,10011,10012,7,12,0,0,10012,1640,1,0,0,0,10013,10014,7,3,0,0,10014,10015,7,11,0,0,10015,10016,7,6,0,0,10016,10017,7,7,0,0,10017,10018,7,26,0,0,10018,10019,7,6,0,0,10019,1642,1,0,0,0,10020,10021,7,3,0,0,10021,10022,7,11,0,0,10022,10023,7,9,0,0,10023,10024,7,21,0,0,10024,10025,7,16,0,0,10025,1644,1,0,0,0,10026,10027,7,3,0,0,10027,10028,7,11,0,0,10028,10029,7,9,0,0,10029,10030,7,21,0,0,10030,10031,7,6,0,0,10031,1646,1,0,0,0,10032,10033,7,3,0,0,10033,10034,7,11,0,0,10034,10035,7,10,0,0,10035,10036,7,23,0,0,10036,10037,7,23,0,0,10037,10038,7,7,0,0,10038,10039,7,6,0,0,10039,10040,7,8,0,0,10040,10041,7,15,0,0,10041,10042,7,14,0,0,10042,10043,5,95,0,0,10043,10044,7,4,0,0,10044,10045,7,7,0,0,10045,10046,7,14,0,0,10046,10047,7,8,0,0,10047,10048,7,10,0,0,10048,10049,7,25,0,0,10049,10050,7,6,0,0,10050,1648,1,0,0,0,10051,10052,7,3,0,0,10052,10053,7,11,0,0,10053,10054,7,10,0,0,10054,10055,7,23,0,0,10055,10056,7,23,0,0,10056,10057,7,7,0,0,10057,10058,7,6,0,0,10058,10059,7,8,0,0,10059,10060,7,15,0,0,10060,10061,7,14,0,0,10061,10062,5,95,0,0,10062,10063,7,4,0,0,10063,10064,7,7,0,0,10064,10065,7,8,0,0,10065,10066,7,15,0,0,10066,10067,7,24,0,0,10067,10068,7,7,0,0,10068,1650,1,0,0,0,10069,10070,7,3,0,0,10070,10071,7,11,0,0,10071,10072,7,10,0,0,10072,10073,7,23,0,0,10073,10074,7,23,0,0,10074,10075,7,7,0,0,10075,10076,7,6,0,0,10076,10077,7,8,0,0,10077,10078,7,15,0,0,10078,10079,7,14,0,0,10079,10080,5,95,0,0,10080,10081,7,7,0,0,10081,10082,7,12,0,0,10082,10083,7,14,0,0,10083,10084,7,8,0,0,10084,10085,7,10,0,0,10085,10086,7,25,0,0,10086,10087,7,6,0,0,10087,1652,1,0,0,0,10088,10089,7,3,0,0,10089,10090,7,11,0,0,10090,10091,7,10,0,0,10091,10092,7,23,0,0,10092,10093,7,23,0,0,10093,10094,7,7,0,0,10094,10095,7,6,0,0,10095,10096,7,8,0,0,10096,10097,7,15,0,0,10097,10098,7,14,0,0,10098,10099,5,95,0,0,10099,10100,7,11,0,0,10100,10101,7,15,0,0,10101,10102,7,22,0,0,10102,10103,7,12,0,0,10103,1654,1,0,0,0,10104,10105,7,3,0,0,10105,10106,7,11,0,0,10106,10107,7,10,0,0,10107,10108,7,23,0,0,10108,10109,7,23,0,0,10109,10110,7,7,0,0,10110,10111,7,6,0,0,10111,10112,7,8,0,0,10112,10113,7,15,0,0,10113,10114,7,14,0,0,10114,10115,5,95,0,0,10115,10116,7,24,0,0,10116,10117,7,7,0,0,10117,10118,7,8,0,0,10118,10119,7,15,0,0,10119,10120,7,18,0,0,10120,10121,7,10,0,0,10121,1656,1,0,0,0,10122,10123,7,3,0,0,10123,10124,7,6,0,0,10124,10125,7,3,0,0,10125,10126,7,12,0,0,10126,1658,1,0,0,0,10127,10128,7,3,0,0,10128,10129,7,6,0,0,10129,10130,7,3,0,0,10130,10131,7,12,0,0,10131,10132,5,50,0,0,10132,1660,1,0,0,0,10133,10134,7,16,0,0,10134,10135,7,7,0,0,10135,10136,7,12,0,0,10136,10137,7,14,0,0,10137,10138,7,20,0,0,10138,10139,7,23,0,0,10139,10140,7,3,0,0,10140,10141,7,8,0,0,10141,10142,7,21,0,0,10142,1662,1,0,0,0,10143,10144,7,16,0,0,10144,10145,7,15,0,0,10145,10146,7,12,0,0,10146,1664,1,0,0,0,10147,10148,7,16,0,0,10148,10149,7,15,0,0,10149,10150,7,6,0,0,10150,10151,5,95,0,0,10151,10152,7,14,0,0,10152,10153,7,19,0,0,10153,10154,7,17,0,0,10154,10155,7,12,0,0,10155,10156,7,6,0,0,10156,1666,1,0,0,0,10157,10158,7,16,0,0,10158,10159,7,15,0,0,10159,10160,7,6,0,0,10160,10161,5,95,0,0,10161,10162,7,5,0,0,10162,10163,7,7,0,0,10163,10164,7,12,0,0,10164,10165,7,22,0,0,10165,10166,7,6,0,0,10166,10167,7,20,0,0,10167,1668,1,0,0,0,10168,10169,7,16,0,0,10169,10170,7,17,0,0,10170,10171,7,18,0,0,10171,10172,7,18,0,0,10172,10173,7,7,0,0,10173,10174,7,8,0,0,10174,1670,1,0,0,0,10175,10176,7,14,0,0,10176,10177,7,3,0,0,10177,10178,7,6,0,0,10178,10179,7,3,0,0,10179,10180,7,5,0,0,10180,10181,7,19,0,0,10181,10182,7,22,0,0,10182,10183,5,95,0,0,10183,10184,7,12,0,0,10184,10185,7,3,0,0,10185,10186,7,23,0,0,10186,10187,7,7,0,0,10187,1672,1,0,0,0,10188,10189,7,14,0,0,10189,10190,7,7,0,0,10190,10191,7,15,0,0,10191,10192,7,5,0,0,10192,1674,1,0,0,0,10193,10194,7,14,0,0,10194,10195,7,7,0,0,10195,10196,7,15,0,0,10196,10197,7,5,0,0,10197,10198,7,15,0,0,10198,10199,7,12,0,0,10199,10200,7,22,0,0,10200,1676,1,0,0,0,10201,10202,7,14,0,0,10202,10203,7,7,0,0,10203,10204,7,12,0,0,10204,10205,7,6,0,0,10205,10206,7,8,0,0,10206,10207,7,19,0,0,10207,10208,7,15,0,0,10208,10209,7,4,0,0,10209,1678,1,0,0,0,10210,10211,7,14,0,0,10211,10212,7,20,0,0,10212,10213,7,3,0,0,10213,10214,7,8,0,0,10214,10215,7,3,0,0,10215,10216,7,14,0,0,10216,10217,7,6,0,0,10217,10218,7,7,0,0,10218,10219,7,8,0,0,10219,10220,5,95,0,0,10220,10221,7,5,0,0,10221,10222,7,7,0,0,10222,10223,7,12,0,0,10223,10224,7,22,0,0,10224,10225,7,6,0,0,10225,10226,7,20,0,0,10226,1680,1,0,0,0,10227,10228,7,14,0,0,10228,10229,7,20,0,0,10229,10230,7,3,0,0,10230,10231,7,8,0,0,10231,10232,7,11,0,0,10232,10233,7,7,0,0,10233,10234,7,6,0,0,10234,1682,1,0,0,0,10235,10236,7,14,0,0,10236,10237,7,20,0,0,10237,10238,7,3,0,0,10238,10239,7,8,0,0,10239,10240,5,95,0,0,10240,10241,7,5,0,0,10241,10242,7,7,0,0,10242,10243,7,12,0,0,10243,10244,7,22,0,0,10244,10245,7,6,0,0,10245,10246,7,20,0,0,10246,1684,1,0,0,0,10247,10248,7,14,0,0,10248,10249,7,19,0,0,10249,10250,7,7,0,0,10250,10251,7,8,0,0,10251,10252,7,14,0,0,10252,10253,7,15,0,0,10253,10254,7,16,0,0,10254,10255,7,15,0,0,10255,10256,7,5,0,0,10256,10257,7,15,0,0,10257,10258,7,6,0,0,10258,10259,7,10,0,0,10259,1686,1,0,0,0,10260,10261,7,14,0,0,10261,10262,7,19,0,0,10262,10263,7,5,0,0,10263,10264,7,5,0,0,10264,10265,7,3,0,0,10265,10266,7,6,0,0,10266,10267,7,15,0,0,10267,10268,7,19,0,0,10268,10269,7,12,0,0,10269,1688,1,0,0,0,10270,10271,7,14,0,0,10271,10272,7,19,0,0,10272,10273,7,23,0,0,10273,10274,7,25,0,0,10274,10275,7,8,0,0,10275,10276,7,7,0,0,10276,10277,7,11,0,0,10277,10278,7,11,0,0,10278,1690,1,0,0,0,10279,10280,7,14,0,0,10280,10281,7,19,0,0,10281,10282,7,12,0,0,10282,10283,7,14,0,0,10283,10284,7,3,0,0,10284,10285,7,6,0,0,10285,1692,1,0,0,0,10286,10287,7,14,0,0,10287,10288,7,19,0,0,10288,10289,7,12,0,0,10289,10290,7,14,0,0,10290,10291,7,3,0,0,10291,10292,7,6,0,0,10292,10293,5,95,0,0,10293,10294,7,9,0,0,10294,10295,7,11,0,0,10295,1694,1,0,0,0,10296,10297,7,14,0,0,10297,10298,7,19,0,0,10298,10299,7,12,0,0,10299,10300,7,12,0,0,10300,10301,7,7,0,0,10301,10302,7,14,0,0,10302,10303,7,6,0,0,10303,10304,7,15,0,0,10304,10305,7,19,0,0,10305,10306,7,12,0,0,10306,10307,5,95,0,0,10307,10308,7,15,0,0,10308,10309,7,4,0,0,10309,1696,1,0,0,0,10310,10311,7,14,0,0,10311,10312,7,19,0,0,10312,10313,7,12,0,0,10313,10314,7,24,0,0,10314,1698,1,0,0,0,10315,10316,7,14,0,0,10316,10317,7,19,0,0,10317,10318,7,12,0,0,10318,10319,7,24,0,0,10319,10320,7,7,0,0,10320,10321,7,8,0,0,10321,10322,7,6,0,0,10322,10323,5,95,0,0,10323,10324,7,6,0,0,10324,10325,7,13,0,0,10325,1700,1,0,0,0,10326,10327,7,14,0,0,10327,10328,7,19,0,0,10328,10329,7,11,0,0,10329,1702,1,0,0,0,10330,10331,7,14,0,0,10331,10332,7,19,0,0,10332,10333,7,6,0,0,10333,1704,1,0,0,0,10334,10335,7,14,0,0,10335,10336,7,8,0,0,10336,10337,7,14,0,0,10337,10338,5,51,0,0,10338,10339,5,50,0,0,10339,1706,1,0,0,0,10340,10341,7,14,0,0,10341,10342,7,8,0,0,10342,10343,7,7,0,0,10343,10344,7,3,0,0,10344,10345,7,6,0,0,10345,10346,7,7,0,0,10346,10347,5,95,0,0,10347,10348,7,3,0,0,10348,10349,7,11,0,0,10349,10350,7,10,0,0,10350,10351,7,23,0,0,10351,10352,7,23,0,0,10352,10353,7,7,0,0,10353,10354,7,6,0,0,10354,10355,7,8,0,0,10355,10356,7,15,0,0,10356,10357,7,14,0,0,10357,10358,5,95,0,0,10358,10359,7,25,0,0,10359,10360,7,8,0,0,10360,10361,7,15,0,0,10361,10362,7,24,0,0,10362,10363,5,95,0,0,10363,10364,7,21,0,0,10364,10365,7,7,0,0,10365,10366,7,10,0,0,10366,1708,1,0,0,0,10367,10368,7,14,0,0,10368,10369,7,8,0,0,10369,10370,7,7,0,0,10370,10371,7,3,0,0,10371,10372,7,6,0,0,10372,10373,7,7,0,0,10373,10374,5,95,0,0,10374,10375,7,3,0,0,10375,10376,7,11,0,0,10376,10377,7,10,0,0,10377,10378,7,23,0,0,10378,10379,7,23,0,0,10379,10380,7,7,0,0,10380,10381,7,6,0,0,10381,10382,7,8,0,0,10382,10383,7,15,0,0,10383,10384,7,14,0,0,10384,10385,5,95,0,0,10385,10386,7,25,0,0,10386,10387,7,17,0,0,10387,10388,7,16,0,0,10388,10389,5,95,0,0,10389,10390,7,21,0,0,10390,10391,7,7,0,0,10391,10392,7,10,0,0,10392,1710,1,0,0,0,10393,10394,7,14,0,0,10394,10395,7,8,0,0,10395,10396,7,7,0,0,10396,10397,7,3,0,0,10397,10398,7,6,0,0,10398,10399,7,7,0,0,10399,10400,5,95,0,0,10400,10401,7,4,0,0,10401,10402,7,20,0,0,10402,10403,5,95,0,0,10403,10404,7,25,0,0,10404,10405,7,3,0,0,10405,10406,7,8,0,0,10406,10407,7,3,0,0,10407,10408,7,23,0,0,10408,10409,7,7,0,0,10409,10410,7,6,0,0,10410,10411,7,7,0,0,10411,10412,7,8,0,0,10412,10413,7,11,0,0,10413,1712,1,0,0,0,10414,10415,7,14,0,0,10415,10416,7,8,0,0,10416,10417,7,7,0,0,10417,10418,7,3,0,0,10418,10419,7,6,0,0,10419,10420,7,7,0,0,10420,10421,5,95,0,0,10421,10422,7,4,0,0,10422,10423,7,15,0,0,10423,10424,7,22,0,0,10424,10425,7,7,0,0,10425,10426,7,11,0,0,10426,10427,7,6,0,0,10427,1714,1,0,0,0,10428,10429,7,14,0,0,10429,10430,7,8,0,0,10430,10431,7,19,0,0,10431,10432,7,11,0,0,10432,10433,7,11,0,0,10433,10434,7,7,0,0,10434,10435,7,11,0,0,10435,1716,1,0,0,0,10436,10437,7,4,0,0,10437,10438,7,3,0,0,10438,10439,7,6,0,0,10439,10440,7,7,0,0,10440,10441,7,4,0,0,10441,10442,7,15,0,0,10442,10443,7,18,0,0,10443,10444,7,18,0,0,10444,1718,1,0,0,0,10445,10446,7,4,0,0,10446,10447,7,3,0,0,10447,10448,7,6,0,0,10448,10449,7,7,0,0,10449,10450,5,95,0,0,10450,10451,7,18,0,0,10451,10452,7,19,0,0,10452,10453,7,8,0,0,10453,10454,7,23,0,0,10454,10455,7,3,0,0,10455,10456,7,6,0,0,10456,1720,1,0,0,0,10457,10458,7,4,0,0,10458,10459,7,3,0,0,10459,10460,7,10,0,0,10460,10461,7,12,0,0,10461,10462,7,3,0,0,10462,10463,7,23,0,0,10463,10464,7,7,0,0,10464,1722,1,0,0,0,10465,10466,7,4,0,0,10466,10467,7,3,0,0,10467,10468,7,10,0,0,10468,10469,7,19,0,0,10469,10470,7,18,0,0,10470,10471,7,23,0,0,10471,10472,7,19,0,0,10472,10473,7,12,0,0,10473,10474,7,6,0,0,10474,10475,7,20,0,0,10475,1724,1,0,0,0,10476,10477,7,4,0,0,10477,10478,7,3,0,0,10478,10479,7,10,0,0,10479,10480,7,19,0,0,10480,10481,7,18,0,0,10481,10482,7,9,0,0,10482,10483,7,7,0,0,10483,10484,7,7,0,0,10484,10485,7,21,0,0,10485,1726,1,0,0,0,10486,10487,7,4,0,0,10487,10488,7,3,0,0,10488,10489,7,10,0,0,10489,10490,7,19,0,0,10490,10491,7,18,0,0,10491,10492,7,10,0,0,10492,10493,7,7,0,0,10493,10494,7,3,0,0,10494,10495,7,8,0,0,10495,1728,1,0,0,0,10496,10497,7,4,0,0,10497,10498,7,7,0,0,10498,10499,7,14,0,0,10499,10500,7,19,0,0,10500,10501,7,4,0,0,10501,10502,7,7,0,0,10502,1730,1,0,0,0,10503,10504,7,4,0,0,10504,10505,7,7,0,0,10505,10506,7,22,0,0,10506,10507,7,8,0,0,10507,10508,7,7,0,0,10508,10509,7,7,0,0,10509,10510,7,11,0,0,10510,1732,1,0,0,0,10511,10512,7,4,0,0,10512,10513,7,7,0,0,10513,10514,7,11,0,0,10514,10515,5,95,0,0,10515,10516,7,4,0,0,10516,10517,7,7,0,0,10517,10518,7,14,0,0,10518,10519,7,8,0,0,10519,10520,7,10,0,0,10520,10521,7,25,0,0,10521,10522,7,6,0,0,10522,1734,1,0,0,0,10523,10524,7,4,0,0,10524,10525,7,7,0,0,10525,10526,7,11,0,0,10526,10527,5,95,0,0,10527,10528,7,7,0,0,10528,10529,7,12,0,0,10529,10530,7,14,0,0,10530,10531,7,8,0,0,10531,10532,7,10,0,0,10532,10533,7,25,0,0,10533,10534,7,6,0,0,10534,1736,1,0,0,0,10535,10536,7,4,0,0,10536,10537,7,15,0,0,10537,10538,7,23,0,0,10538,10539,7,7,0,0,10539,10540,7,12,0,0,10540,10541,7,11,0,0,10541,10542,7,15,0,0,10542,10543,7,19,0,0,10543,10544,7,12,0,0,10544,1738,1,0,0,0,10545,10546,7,4,0,0,10546,10547,7,15,0,0,10547,10548,7,11,0,0,10548,10549,7,27,0,0,10549,10550,7,19,0,0,10550,10551,7,15,0,0,10551,10552,7,12,0,0,10552,10553,7,6,0,0,10553,1740,1,0,0,0,10554,10555,7,7,0,0,10555,10556,7,5,0,0,10556,10557,7,6,0,0,10557,1742,1,0,0,0,10558,10559,7,7,0,0,10559,10560,7,12,0,0,10560,10561,7,14,0,0,10561,10562,7,19,0,0,10562,10563,7,4,0,0,10563,10564,7,7,0,0,10564,1744,1,0,0,0,10565,10566,7,7,0,0,10566,10567,7,12,0,0,10567,10568,7,14,0,0,10568,10569,7,8,0,0,10569,10570,7,10,0,0,10570,10571,7,25,0,0,10571,10572,7,6,0,0,10572,1746,1,0,0,0,10573,10574,7,7,0,0,10574,10575,7,12,0,0,10575,10576,7,4,0,0,10576,10577,7,25,0,0,10577,10578,7,19,0,0,10578,10579,7,15,0,0,10579,10580,7,12,0,0,10580,10581,7,6,0,0,10581,1748,1,0,0,0,10582,10583,7,7,0,0,10583,10584,7,12,0,0,10584,10585,7,22,0,0,10585,10586,7,15,0,0,10586,10587,7,12,0,0,10587,10588,7,7,0,0,10588,10589,5,95,0,0,10589,10590,7,3,0,0,10590,10591,7,6,0,0,10591,10592,7,6,0,0,10592,10593,7,8,0,0,10593,10594,7,15,0,0,10594,10595,7,16,0,0,10595,10596,7,17,0,0,10596,10597,7,6,0,0,10597,10598,7,7,0,0,10598,1750,1,0,0,0,10599,10600,7,7,0,0,10600,10601,7,12,0,0,10601,10602,7,24,0,0,10602,10603,7,7,0,0,10603,10604,7,5,0,0,10604,10605,7,19,0,0,10605,10606,7,25,0,0,10606,10607,7,7,0,0,10607,1752,1,0,0,0,10608,10609,7,7,0,0,10609,10610,7,28,0,0,10610,10611,7,17,0,0,10611,10612,7,3,0,0,10612,10613,7,5,0,0,10613,10614,7,11,0,0,10614,1754,1,0,0,0,10615,10616,7,7,0,0,10616,10617,7,26,0,0,10617,10618,7,25,0,0,10618,1756,1,0,0,0,10619,10620,7,7,0,0,10620,10621,7,26,0,0,10621,10622,7,25,0,0,10622,10623,7,19,0,0,10623,10624,7,8,0,0,10624,10625,7,6,0,0,10625,10626,5,95,0,0,10626,10627,7,11,0,0,10627,10628,7,7,0,0,10628,10629,7,6,0,0,10629,1758,1,0,0,0,10630,10631,7,7,0,0,10631,10632,7,26,0,0,10632,10633,7,6,0,0,10633,10634,7,7,0,0,10634,10635,7,8,0,0,10635,10636,7,15,0,0,10636,10637,7,19,0,0,10637,10638,7,8,0,0,10638,10639,7,8,0,0,10639,10640,7,15,0,0,10640,10641,7,12,0,0,10641,10642,7,22,0,0,10642,1760,1,0,0,0,10643,10644,7,7,0,0,10644,10645,7,26,0,0,10645,10646,7,6,0,0,10646,10647,7,8,0,0,10647,10648,7,3,0,0,10648,10649,7,14,0,0,10649,10650,7,6,0,0,10650,10651,7,24,0,0,10651,10652,7,3,0,0,10652,10653,7,5,0,0,10653,10654,7,17,0,0,10654,10655,7,7,0,0,10655,1762,1,0,0,0,10656,10657,7,18,0,0,10657,10658,7,15,0,0,10658,10659,7,7,0,0,10659,10660,7,5,0,0,10660,10661,7,4,0,0,10661,1764,1,0,0,0,10662,10663,7,18,0,0,10663,10664,7,15,0,0,10664,10665,7,12,0,0,10665,10666,7,4,0,0,10666,10667,5,95,0,0,10667,10668,7,15,0,0,10668,10669,7,12,0,0,10669,10670,5,95,0,0,10670,10671,7,11,0,0,10671,10672,7,7,0,0,10672,10673,7,6,0,0,10673,1766,1,0,0,0,10674,10675,7,18,0,0,10675,10676,7,5,0,0,10676,10677,7,19,0,0,10677,10678,7,19,0,0,10678,10679,7,8,0,0,10679,1768,1,0,0,0,10680,10681,7,18,0,0,10681,10682,7,19,0,0,10682,10683,7,8,0,0,10683,10684,7,23,0,0,10684,10685,7,3,0,0,10685,10686,7,6,0,0,10686,1770,1,0,0,0,10687,10688,7,18,0,0,10688,10689,7,19,0,0,10689,10690,7,17,0,0,10690,10691,7,12,0,0,10691,10692,7,4,0,0,10692,10693,5,95,0,0,10693,10694,7,8,0,0,10694,10695,7,19,0,0,10695,10696,7,9,0,0,10696,10697,7,11,0,0,10697,1772,1,0,0,0,10698,10699,7,18,0,0,10699,10700,7,8,0,0,10700,10701,7,19,0,0,10701,10702,7,23,0,0,10702,10703,5,95,0,0,10703,10704,7,16,0,0,10704,10705,7,3,0,0,10705,10706,7,11,0,0,10706,10707,7,7,0,0,10707,10708,5,54,0,0,10708,10709,5,52,0,0,10709,1774,1,0,0,0,10710,10711,7,18,0,0,10711,10712,7,8,0,0,10712,10713,7,19,0,0,10713,10714,7,23,0,0,10714,10715,5,95,0,0,10715,10716,7,4,0,0,10716,10717,7,3,0,0,10717,10718,7,10,0,0,10718,10719,7,11,0,0,10719,1776,1,0,0,0,10720,10721,7,18,0,0,10721,10722,7,8,0,0,10722,10723,7,19,0,0,10723,10724,7,23,0,0,10724,10725,5,95,0,0,10725,10726,7,17,0,0,10726,10727,7,12,0,0,10727,10728,7,15,0,0,10728,10729,7,26,0,0,10729,10730,7,6,0,0,10730,10731,7,15,0,0,10731,10732,7,23,0,0,10732,10733,7,7,0,0,10733,1778,1,0,0,0,10734,10735,7,22,0,0,10735,10736,7,7,0,0,10736,10737,7,19,0,0,10737,10738,7,23,0,0,10738,10739,7,14,0,0,10739,10740,7,19,0,0,10740,10741,7,5,0,0,10741,10742,7,5,0,0,10742,10743,7,18,0,0,10743,10744,7,8,0,0,10744,10745,7,19,0,0,10745,10746,7,23,0,0,10746,10747,7,6,0,0,10747,10748,7,7,0,0,10748,10749,7,26,0,0,10749,10750,7,6,0,0,10750,1780,1,0,0,0,10751,10752,7,22,0,0,10752,10753,7,7,0,0,10753,10754,7,19,0,0,10754,10755,7,23,0,0,10755,10756,7,14,0,0,10756,10757,7,19,0,0,10757,10758,7,5,0,0,10758,10759,7,5,0,0,10759,10760,7,18,0,0,10760,10761,7,8,0,0,10761,10762,7,19,0,0,10762,10763,7,23,0,0,10763,10764,7,9,0,0,10764,10765,7,21,0,0,10765,10766,7,16,0,0,10766,1782,1,0,0,0,10767,10768,7,22,0,0,10768,10769,7,7,0,0,10769,10770,7,19,0,0,10770,10771,7,23,0,0,10771,10772,7,7,0,0,10772,10773,7,6,0,0,10773,10774,7,8,0,0,10774,10775,7,10,0,0,10775,10776,7,14,0,0,10776,10777,7,19,0,0,10777,10778,7,5,0,0,10778,10779,7,5,0,0,10779,10780,7,7,0,0,10780,10781,7,14,0,0,10781,10782,7,6,0,0,10782,10783,7,15,0,0,10783,10784,7,19,0,0,10784,10785,7,12,0,0,10785,10786,7,18,0,0,10786,10787,7,8,0,0,10787,10788,7,19,0,0,10788,10789,7,23,0,0,10789,10790,7,6,0,0,10790,10791,7,7,0,0,10791,10792,7,26,0,0,10792,10793,7,6,0,0,10793,1784,1,0,0,0,10794,10795,7,22,0,0,10795,10796,7,7,0,0,10796,10797,7,19,0,0,10797,10798,7,23,0,0,10798,10799,7,7,0,0,10799,10800,7,6,0,0,10800,10801,7,8,0,0,10801,10802,7,10,0,0,10802,10803,7,14,0,0,10803,10804,7,19,0,0,10804,10805,7,5,0,0,10805,10806,7,5,0,0,10806,10807,7,7,0,0,10807,10808,7,14,0,0,10808,10809,7,6,0,0,10809,10810,7,15,0,0,10810,10811,7,19,0,0,10811,10812,7,12,0,0,10812,10813,7,18,0,0,10813,10814,7,8,0,0,10814,10815,7,19,0,0,10815,10816,7,23,0,0,10816,10817,7,9,0,0,10817,10818,7,21,0,0,10818,10819,7,16,0,0,10819,1786,1,0,0,0,10820,10821,7,22,0,0,10821,10822,7,7,0,0,10822,10823,7,19,0,0,10823,10824,7,23,0,0,10824,10825,7,7,0,0,10825,10826,7,6,0,0,10826,10827,7,8,0,0,10827,10828,7,10,0,0,10828,10829,7,18,0,0,10829,10830,7,8,0,0,10830,10831,7,19,0,0,10831,10832,7,23,0,0,10832,10833,7,6,0,0,10833,10834,7,7,0,0,10834,10835,7,26,0,0,10835,10836,7,6,0,0,10836,1788,1,0,0,0,10837,10838,7,22,0,0,10838,10839,7,7,0,0,10839,10840,7,19,0,0,10840,10841,7,23,0,0,10841,10842,7,7,0,0,10842,10843,7,6,0,0,10843,10844,7,8,0,0,10844,10845,7,10,0,0,10845,10846,7,18,0,0,10846,10847,7,8,0,0,10847,10848,7,19,0,0,10848,10849,7,23,0,0,10849,10850,7,9,0,0,10850,10851,7,21,0,0,10851,10852,7,16,0,0,10852,1790,1,0,0,0,10853,10854,7,22,0,0,10854,10855,7,7,0,0,10855,10856,7,19,0,0,10856,10857,7,23,0,0,10857,10858,7,7,0,0,10858,10859,7,6,0,0,10859,10860,7,8,0,0,10860,10861,7,10,0,0,10861,10862,7,12,0,0,10862,1792,1,0,0,0,10863,10864,7,22,0,0,10864,10865,7,7,0,0,10865,10866,7,19,0,0,10866,10867,7,23,0,0,10867,10868,7,7,0,0,10868,10869,7,6,0,0,10869,10870,7,8,0,0,10870,10871,7,10,0,0,10871,10872,7,6,0,0,10872,10873,7,10,0,0,10873,10874,7,25,0,0,10874,10875,7,7,0,0,10875,1794,1,0,0,0,10876,10877,7,22,0,0,10877,10878,7,7,0,0,10878,10879,7,19,0,0,10879,10880,7,23,0,0,10880,10881,7,18,0,0,10881,10882,7,8,0,0,10882,10883,7,19,0,0,10883,10884,7,23,0,0,10884,10885,7,6,0,0,10885,10886,7,7,0,0,10886,10887,7,26,0,0,10887,10888,7,6,0,0,10888,1796,1,0,0,0,10889,10890,7,22,0,0,10890,10891,7,7,0,0,10891,10892,7,19,0,0,10892,10893,7,23,0,0,10893,10894,7,18,0,0,10894,10895,7,8,0,0,10895,10896,7,19,0,0,10896,10897,7,23,0,0,10897,10898,7,9,0,0,10898,10899,7,21,0,0,10899,10900,7,16,0,0,10900,1798,1,0,0,0,10901,10902,7,22,0,0,10902,10903,7,7,0,0,10903,10904,7,6,0,0,10904,10905,5,95,0,0,10905,10906,7,18,0,0,10906,10907,7,19,0,0,10907,10908,7,8,0,0,10908,10909,7,23,0,0,10909,10910,7,3,0,0,10910,10911,7,6,0,0,10911,1800,1,0,0,0,10912,10913,7,22,0,0,10913,10914,7,7,0,0,10914,10915,7,6,0,0,10915,10916,5,95,0,0,10916,10917,7,5,0,0,10917,10918,7,19,0,0,10918,10919,7,14,0,0,10919,10920,7,21,0,0,10920,1802,1,0,0,0,10921,10922,7,22,0,0,10922,10923,7,5,0,0,10923,10924,7,7,0,0,10924,10925,7,12,0,0,10925,10926,7,22,0,0,10926,10927,7,6,0,0,10927,10928,7,20,0,0,10928,1804,1,0,0,0,10929,10930,7,22,0,0,10930,10931,7,8,0,0,10931,10932,7,7,0,0,10932,10933,7,3,0,0,10933,10934,7,6,0,0,10934,10935,7,7,0,0,10935,10936,7,11,0,0,10936,10937,7,6,0,0,10937,1806,1,0,0,0,10938,10939,7,22,0,0,10939,10940,7,6,0,0,10940,10941,7,15,0,0,10941,10942,7,4,0,0,10942,10943,5,95,0,0,10943,10944,7,11,0,0,10944,10945,7,17,0,0,10945,10946,7,16,0,0,10946,10947,7,11,0,0,10947,10948,7,7,0,0,10948,10949,7,6,0,0,10949,1808,1,0,0,0,10950,10951,7,22,0,0,10951,10952,7,6,0,0,10952,10953,7,15,0,0,10953,10954,7,4,0,0,10954,10955,5,95,0,0,10955,10956,7,11,0,0,10956,10957,7,17,0,0,10957,10958,7,16,0,0,10958,10959,7,6,0,0,10959,10960,7,8,0,0,10960,10961,7,3,0,0,10961,10962,7,14,0,0,10962,10963,7,6,0,0,10963,1810,1,0,0,0,10964,10965,7,20,0,0,10965,10966,7,7,0,0,10966,10967,7,26,0,0,10967,1812,1,0,0,0,10968,10969,7,15,0,0,10969,10970,7,18,0,0,10970,10971,7,12,0,0,10971,10972,7,17,0,0,10972,10973,7,5,0,0,10973,10974,7,5,0,0,10974,1814,1,0,0,0,10975,10976,7,15,0,0,10976,10977,7,12,0,0,10977,10978,7,7,0,0,10978,10979,7,6,0,0,10979,10980,5,54,0,0,10980,10981,5,95,0,0,10981,10982,7,3,0,0,10982,10983,7,6,0,0,10983,10984,7,19,0,0,10984,10985,7,12,0,0,10985,1816,1,0,0,0,10986,10987,7,15,0,0,10987,10988,7,12,0,0,10988,10989,7,7,0,0,10989,10990,7,6,0,0,10990,10991,5,54,0,0,10991,10992,5,95,0,0,10992,10993,7,12,0,0,10993,10994,7,6,0,0,10994,10995,7,19,0,0,10995,10996,7,3,0,0,10996,1818,1,0,0,0,10997,10998,7,15,0,0,10998,10999,7,12,0,0,10999,11e3,7,7,0,0,11e3,11001,7,6,0,0,11001,11002,5,95,0,0,11002,11003,7,3,0,0,11003,11004,7,6,0,0,11004,11005,7,19,0,0,11005,11006,7,12,0,0,11006,1820,1,0,0,0,11007,11008,7,15,0,0,11008,11009,7,12,0,0,11009,11010,7,7,0,0,11010,11011,7,6,0,0,11011,11012,5,95,0,0,11012,11013,7,12,0,0,11013,11014,7,6,0,0,11014,11015,7,19,0,0,11015,11016,7,3,0,0,11016,1822,1,0,0,0,11017,11018,7,15,0,0,11018,11019,7,12,0,0,11019,11020,7,11,0,0,11020,11021,7,6,0,0,11021,11022,7,8,0,0,11022,1824,1,0,0,0,11023,11024,7,15,0,0,11024,11025,7,12,0,0,11025,11026,7,6,0,0,11026,11027,7,7,0,0,11027,11028,7,8,0,0,11028,11029,7,15,0,0,11029,11030,7,19,0,0,11030,11031,7,8,0,0,11031,11032,7,8,0,0,11032,11033,7,15,0,0,11033,11034,7,12,0,0,11034,11035,7,22,0,0,11035,11036,7,12,0,0,11036,1826,1,0,0,0,11037,11038,7,15,0,0,11038,11039,7,12,0,0,11039,11040,7,6,0,0,11040,11041,7,7,0,0,11041,11042,7,8,0,0,11042,11043,7,11,0,0,11043,11044,7,7,0,0,11044,11045,7,14,0,0,11045,11046,7,6,0,0,11046,11047,7,11,0,0,11047,1828,1,0,0,0,11048,11049,7,15,0,0,11049,11050,7,11,0,0,11050,11051,7,14,0,0,11051,11052,7,5,0,0,11052,11053,7,19,0,0,11053,11054,7,11,0,0,11054,11055,7,7,0,0,11055,11056,7,4,0,0,11056,1830,1,0,0,0,11057,11058,7,15,0,0,11058,11059,7,11,0,0,11059,11060,7,7,0,0,11060,11061,7,23,0,0,11061,11062,7,25,0,0,11062,11063,7,6,0,0,11063,11064,7,10,0,0,11064,1832,1,0,0,0,11065,11066,7,15,0,0,11066,11067,7,11,0,0,11067,11068,7,12,0,0,11068,11069,7,17,0,0,11069,11070,7,5,0,0,11070,11071,7,5,0,0,11071,1834,1,0,0,0,11072,11073,7,15,0,0,11073,11074,7,11,0,0,11074,11075,7,11,0,0,11075,11076,7,15,0,0,11076,11077,7,23,0,0,11077,11078,7,25,0,0,11078,11079,7,5,0,0,11079,11080,7,7,0,0,11080,1836,1,0,0,0,11081,11082,7,15,0,0,11082,11083,7,11,0,0,11083,11084,5,95,0,0,11084,11085,7,18,0,0,11085,11086,7,8,0,0,11086,11087,7,7,0,0,11087,11088,7,7,0,0,11088,11089,5,95,0,0,11089,11090,7,5,0,0,11090,11091,7,19,0,0,11091,11092,7,14,0,0,11092,11093,7,21,0,0,11093,1838,1,0,0,0,11094,11095,7,15,0,0,11095,11096,7,11,0,0,11096,11097,5,95,0,0,11097,11098,7,15,0,0,11098,11099,7,25,0,0,11099,11100,7,24,0,0,11100,11101,5,52,0,0,11101,1840,1,0,0,0,11102,11103,7,15,0,0,11103,11104,7,11,0,0,11104,11105,5,95,0,0,11105,11106,7,15,0,0,11106,11107,7,25,0,0,11107,11108,7,24,0,0,11108,11109,5,52,0,0,11109,11110,5,95,0,0,11110,11111,7,14,0,0,11111,11112,7,19,0,0,11112,11113,7,23,0,0,11113,11114,7,25,0,0,11114,11115,7,3,0,0,11115,11116,7,6,0,0,11116,1842,1,0,0,0,11117,11118,7,15,0,0,11118,11119,7,11,0,0,11119,11120,5,95,0,0,11120,11121,7,15,0,0,11121,11122,7,25,0,0,11122,11123,7,24,0,0,11123,11124,5,52,0,0,11124,11125,5,95,0,0,11125,11126,7,23,0,0,11126,11127,7,3,0,0,11127,11128,7,25,0,0,11128,11129,7,25,0,0,11129,11130,7,7,0,0,11130,11131,7,4,0,0,11131,1844,1,0,0,0,11132,11133,7,15,0,0,11133,11134,7,11,0,0,11134,11135,5,95,0,0,11135,11136,7,15,0,0,11136,11137,7,25,0,0,11137,11138,7,24,0,0,11138,11139,5,54,0,0,11139,1846,1,0,0,0,11140,11141,7,15,0,0,11141,11142,7,11,0,0,11142,11143,5,95,0,0,11143,11144,7,17,0,0,11144,11145,7,11,0,0,11145,11146,7,7,0,0,11146,11147,7,4,0,0,11147,11148,5,95,0,0,11148,11149,7,5,0,0,11149,11150,7,19,0,0,11150,11151,7,14,0,0,11151,11152,7,21,0,0,11152,1848,1,0,0,0,11153,11154,7,5,0,0,11154,11155,7,3,0,0,11155,11156,7,11,0,0,11156,11157,7,6,0,0,11157,11158,5,95,0,0,11158,11159,7,15,0,0,11159,11160,7,12,0,0,11160,11161,7,11,0,0,11161,11162,7,7,0,0,11162,11163,7,8,0,0,11163,11164,7,6,0,0,11164,11165,5,95,0,0,11165,11166,7,15,0,0,11166,11167,7,4,0,0,11167,1850,1,0,0,0,11168,11169,7,5,0,0,11169,11170,7,14,0,0,11170,11171,7,3,0,0,11171,11172,7,11,0,0,11172,11173,7,7,0,0,11173,1852,1,0,0,0,11174,11175,7,5,0,0,11175,11176,7,7,0,0,11176,11177,7,3,0,0,11177,11178,7,11,0,0,11178,11179,7,6,0,0,11179,1854,1,0,0,0,11180,11181,7,5,0,0,11181,11182,7,7,0,0,11182,11183,7,12,0,0,11183,11184,7,22,0,0,11184,11185,7,6,0,0,11185,11186,7,20,0,0,11186,1856,1,0,0,0,11187,11188,7,5,0,0,11188,11189,7,15,0,0,11189,11190,7,12,0,0,11190,11191,7,7,0,0,11191,11192,7,18,0,0,11192,11193,7,8,0,0,11193,11194,7,19,0,0,11194,11195,7,23,0,0,11195,11196,7,6,0,0,11196,11197,7,7,0,0,11197,11198,7,26,0,0,11198,11199,7,6,0,0,11199,1858,1,0,0,0,11200,11201,7,5,0,0,11201,11202,7,15,0,0,11202,11203,7,12,0,0,11203,11204,7,7,0,0,11204,11205,7,18,0,0,11205,11206,7,8,0,0,11206,11207,7,19,0,0,11207,11208,7,23,0,0,11208,11209,7,9,0,0,11209,11210,7,21,0,0,11210,11211,7,16,0,0,11211,1860,1,0,0,0,11212,11213,7,5,0,0,11213,11214,7,15,0,0,11214,11215,7,12,0,0,11215,11216,7,7,0,0,11216,11217,7,11,0,0,11217,11218,7,6,0,0,11218,11219,7,8,0,0,11219,11220,7,15,0,0,11220,11221,7,12,0,0,11221,11222,7,22,0,0,11222,11223,7,18,0,0,11223,11224,7,8,0,0,11224,11225,7,19,0,0,11225,11226,7,23,0,0,11226,11227,7,6,0,0,11227,11228,7,7,0,0,11228,11229,7,26,0,0,11229,11230,7,6,0,0,11230,1862,1,0,0,0,11231,11232,7,5,0,0,11232,11233,7,15,0,0,11233,11234,7,12,0,0,11234,11235,7,7,0,0,11235,11236,7,11,0,0,11236,11237,7,6,0,0,11237,11238,7,8,0,0,11238,11239,7,15,0,0,11239,11240,7,12,0,0,11240,11241,7,22,0,0,11241,11242,7,18,0,0,11242,11243,7,8,0,0,11243,11244,7,19,0,0,11244,11245,7,23,0,0,11245,11246,7,9,0,0,11246,11247,7,21,0,0,11247,11248,7,16,0,0,11248,1864,1,0,0,0,11249,11250,7,5,0,0,11250,11251,7,12,0,0,11251,1866,1,0,0,0,11252,11253,7,5,0,0,11253,11254,7,19,0,0,11254,11255,7,3,0,0,11255,11256,7,4,0,0,11256,11257,5,95,0,0,11257,11258,7,18,0,0,11258,11259,7,15,0,0,11259,11260,7,5,0,0,11260,11261,7,7,0,0,11261,1868,1,0,0,0,11262,11263,7,5,0,0,11263,11264,7,19,0,0,11264,11265,7,14,0,0,11265,11266,7,3,0,0,11266,11267,7,6,0,0,11267,11268,7,7,0,0,11268,1870,1,0,0,0,11269,11270,7,5,0,0,11270,11271,7,19,0,0,11271,11272,7,22,0,0,11272,1872,1,0,0,0,11273,11274,7,5,0,0,11274,11275,7,19,0,0,11275,11276,7,22,0,0,11276,11277,5,49,0,0,11277,11278,5,48,0,0,11278,1874,1,0,0,0,11279,11280,7,5,0,0,11280,11281,7,19,0,0,11281,11282,7,22,0,0,11282,11283,5,50,0,0,11283,1876,1,0,0,0,11284,11285,7,5,0,0,11285,11286,7,19,0,0,11286,11287,7,9,0,0,11287,11288,7,7,0,0,11288,11289,7,8,0,0,11289,1878,1,0,0,0,11290,11291,7,5,0,0,11291,11292,7,25,0,0,11292,11293,7,3,0,0,11293,11294,7,4,0,0,11294,1880,1,0,0,0,11295,11296,7,5,0,0,11296,11297,7,6,0,0,11297,11298,7,8,0,0,11298,11299,7,15,0,0,11299,11300,7,23,0,0,11300,1882,1,0,0,0,11301,11302,7,23,0,0,11302,11303,7,3,0,0,11303,11304,7,21,0,0,11304,11305,7,7,0,0,11305,11306,7,4,0,0,11306,11307,7,3,0,0,11307,11308,7,6,0,0,11308,11309,7,7,0,0,11309,1884,1,0,0,0,11310,11311,7,23,0,0,11311,11312,7,3,0,0,11312,11313,7,21,0,0,11313,11314,7,7,0,0,11314,11315,7,6,0,0,11315,11316,7,15,0,0,11316,11317,7,23,0,0,11317,11318,7,7,0,0,11318,1886,1,0,0,0,11319,11320,7,23,0,0,11320,11321,7,3,0,0,11321,11322,7,21,0,0,11322,11323,7,7,0,0,11323,11324,5,95,0,0,11324,11325,7,11,0,0,11325,11326,7,7,0,0,11326,11327,7,6,0,0,11327,1888,1,0,0,0,11328,11329,7,23,0,0,11329,11330,7,3,0,0,11330,11331,7,11,0,0,11331,11332,7,6,0,0,11332,11333,7,7,0,0,11333,11334,7,8,0,0,11334,11335,5,95,0,0,11335,11336,7,25,0,0,11336,11337,7,19,0,0,11337,11338,7,11,0,0,11338,11339,5,95,0,0,11339,11340,7,9,0,0,11340,11341,7,3,0,0,11341,11342,7,15,0,0,11342,11343,7,6,0,0,11343,1890,1,0,0,0,11344,11345,7,23,0,0,11345,11346,7,16,0,0,11346,11347,7,8,0,0,11347,11348,7,14,0,0,11348,11349,7,19,0,0,11349,11350,7,12,0,0,11350,11351,7,6,0,0,11351,11352,7,3,0,0,11352,11353,7,15,0,0,11353,11354,7,12,0,0,11354,11355,7,11,0,0,11355,1892,1,0,0,0,11356,11357,7,23,0,0,11357,11358,7,16,0,0,11358,11359,7,8,0,0,11359,11360,7,4,0,0,11360,11361,7,15,0,0,11361,11362,7,11,0,0,11362,11363,7,27,0,0,11363,11364,7,19,0,0,11364,11365,7,15,0,0,11365,11366,7,12,0,0,11366,11367,7,6,0,0,11367,1894,1,0,0,0,11368,11369,7,23,0,0,11369,11370,7,16,0,0,11370,11371,7,8,0,0,11371,11372,7,7,0,0,11372,11373,7,28,0,0,11373,11374,7,17,0,0,11374,11375,7,3,0,0,11375,11376,7,5,0,0,11376,1896,1,0,0,0,11377,11378,7,23,0,0,11378,11379,7,16,0,0,11379,11380,7,8,0,0,11380,11381,7,15,0,0,11381,11382,7,12,0,0,11382,11383,7,6,0,0,11383,11384,7,7,0,0,11384,11385,7,8,0,0,11385,11386,7,11,0,0,11386,11387,7,7,0,0,11387,11388,7,14,0,0,11388,11389,7,6,0,0,11389,11390,7,11,0,0,11390,1898,1,0,0,0,11391,11392,7,23,0,0,11392,11393,7,16,0,0,11393,11394,7,8,0,0,11394,11395,7,19,0,0,11395,11396,7,24,0,0,11396,11397,7,7,0,0,11397,11398,7,8,0,0,11398,11399,7,5,0,0,11399,11400,7,3,0,0,11400,11401,7,25,0,0,11401,11402,7,11,0,0,11402,1900,1,0,0,0,11403,11404,7,23,0,0,11404,11405,7,16,0,0,11405,11406,7,8,0,0,11406,11407,7,6,0,0,11407,11408,7,19,0,0,11408,11409,7,17,0,0,11409,11410,7,14,0,0,11410,11411,7,20,0,0,11411,11412,7,7,0,0,11412,11413,7,11,0,0,11413,1902,1,0,0,0,11414,11415,7,23,0,0,11415,11416,7,16,0,0,11416,11417,7,8,0,0,11417,11418,7,9,0,0,11418,11419,7,15,0,0,11419,11420,7,6,0,0,11420,11421,7,20,0,0,11421,11422,7,15,0,0,11422,11423,7,12,0,0,11423,1904,1,0,0,0,11424,11425,7,23,0,0,11425,11426,7,4,0,0,11426,11427,5,53,0,0,11427,1906,1,0,0,0,11428,11429,7,23,0,0,11429,11430,7,5,0,0,11430,11431,7,15,0,0,11431,11432,7,12,0,0,11432,11433,7,7,0,0,11433,11434,7,18,0,0,11434,11435,7,8,0,0,11435,11436,7,19,0,0,11436,11437,7,23,0,0,11437,11438,7,6,0,0,11438,11439,7,7,0,0,11439,11440,7,26,0,0,11440,11441,7,6,0,0,11441,1908,1,0,0,0,11442,11443,7,23,0,0,11443,11444,7,5,0,0,11444,11445,7,15,0,0,11445,11446,7,12,0,0,11446,11447,7,7,0,0,11447,11448,7,18,0,0,11448,11449,7,8,0,0,11449,11450,7,19,0,0,11450,11451,7,23,0,0,11451,11452,7,9,0,0,11452,11453,7,21,0,0,11453,11454,7,16,0,0,11454,1910,1,0,0,0,11455,11456,7,23,0,0,11456,11457,7,19,0,0,11457,11458,7,12,0,0,11458,11459,7,6,0,0,11459,11460,7,20,0,0,11460,11461,7,12,0,0,11461,11462,7,3,0,0,11462,11463,7,23,0,0,11463,11464,7,7,0,0,11464,1912,1,0,0,0,11465,11466,7,23,0,0,11466,11467,7,25,0,0,11467,11468,7,19,0,0,11468,11469,7,15,0,0,11469,11470,7,12,0,0,11470,11471,7,6,0,0,11471,11472,7,18,0,0,11472,11473,7,8,0,0,11473,11474,7,19,0,0,11474,11475,7,23,0,0,11475,11476,7,6,0,0,11476,11477,7,7,0,0,11477,11478,7,26,0,0,11478,11479,7,6,0,0,11479,1914,1,0,0,0,11480,11481,7,23,0,0,11481,11482,7,25,0,0,11482,11483,7,19,0,0,11483,11484,7,15,0,0,11484,11485,7,12,0,0,11485,11486,7,6,0,0,11486,11487,7,18,0,0,11487,11488,7,8,0,0,11488,11489,7,19,0,0,11489,11490,7,23,0,0,11490,11491,7,9,0,0,11491,11492,7,21,0,0,11492,11493,7,16,0,0,11493,1916,1,0,0,0,11494,11495,7,23,0,0,11495,11496,7,25,0,0,11496,11497,7,19,0,0,11497,11498,7,5,0,0,11498,11499,7,10,0,0,11499,11500,7,18,0,0,11500,11501,7,8,0,0,11501,11502,7,19,0,0,11502,11503,7,23,0,0,11503,11504,7,6,0,0,11504,11505,7,7,0,0,11505,11506,7,26,0,0,11506,11507,7,6,0,0,11507,1918,1,0,0,0,11508,11509,7,23,0,0,11509,11510,7,25,0,0,11510,11511,7,19,0,0,11511,11512,7,5,0,0,11512,11513,7,10,0,0,11513,11514,7,18,0,0,11514,11515,7,8,0,0,11515,11516,7,19,0,0,11516,11517,7,23,0,0,11517,11518,7,9,0,0,11518,11519,7,21,0,0,11519,11520,7,16,0,0,11520,1920,1,0,0,0,11521,11522,7,23,0,0,11522,11523,7,17,0,0,11523,11524,7,5,0,0,11524,11525,7,6,0,0,11525,11526,7,15,0,0,11526,11527,7,5,0,0,11527,11528,7,15,0,0,11528,11529,7,12,0,0,11529,11530,7,7,0,0,11530,11531,7,11,0,0,11531,11532,7,6,0,0,11532,11533,7,8,0,0,11533,11534,7,15,0,0,11534,11535,7,12,0,0,11535,11536,7,22,0,0,11536,11537,7,18,0,0,11537,11538,7,8,0,0,11538,11539,7,19,0,0,11539,11540,7,23,0,0,11540,11541,7,6,0,0,11541,11542,7,7,0,0,11542,11543,7,26,0,0,11543,11544,7,6,0,0,11544,1922,1,0,0,0,11545,11546,7,23,0,0,11546,11547,7,17,0,0,11547,11548,7,5,0,0,11548,11549,7,6,0,0,11549,11550,7,15,0,0,11550,11551,7,5,0,0,11551,11552,7,15,0,0,11552,11553,7,12,0,0,11553,11554,7,7,0,0,11554,11555,7,11,0,0,11555,11556,7,6,0,0,11556,11557,7,8,0,0,11557,11558,7,15,0,0,11558,11559,7,12,0,0,11559,11560,7,22,0,0,11560,11561,7,18,0,0,11561,11562,7,8,0,0,11562,11563,7,19,0,0,11563,11564,7,23,0,0,11564,11565,7,9,0,0,11565,11566,7,21,0,0,11566,11567,7,16,0,0,11567,1924,1,0,0,0,11568,11569,7,23,0,0,11569,11570,7,17,0,0,11570,11571,7,5,0,0,11571,11572,7,6,0,0,11572,11573,7,15,0,0,11573,11574,7,25,0,0,11574,11575,7,19,0,0,11575,11576,7,15,0,0,11576,11577,7,12,0,0,11577,11578,7,6,0,0,11578,11579,7,18,0,0,11579,11580,7,8,0,0,11580,11581,7,19,0,0,11581,11582,7,23,0,0,11582,11583,7,6,0,0,11583,11584,7,7,0,0,11584,11585,7,26,0,0,11585,11586,7,6,0,0,11586,1926,1,0,0,0,11587,11588,7,23,0,0,11588,11589,7,17,0,0,11589,11590,7,5,0,0,11590,11591,7,6,0,0,11591,11592,7,15,0,0,11592,11593,7,25,0,0,11593,11594,7,19,0,0,11594,11595,7,15,0,0,11595,11596,7,12,0,0,11596,11597,7,6,0,0,11597,11598,7,18,0,0,11598,11599,7,8,0,0,11599,11600,7,19,0,0,11600,11601,7,23,0,0,11601,11602,7,9,0,0,11602,11603,7,21,0,0,11603,11604,7,16,0,0,11604,1928,1,0,0,0,11605,11606,7,23,0,0,11606,11607,7,17,0,0,11607,11608,7,5,0,0,11608,11609,7,6,0,0,11609,11610,7,15,0,0,11610,11611,7,25,0,0,11611,11612,7,19,0,0,11612,11613,7,5,0,0,11613,11614,7,10,0,0,11614,11615,7,22,0,0,11615,11616,7,19,0,0,11616,11617,7,12,0,0,11617,11618,7,18,0,0,11618,11619,7,8,0,0,11619,11620,7,19,0,0,11620,11621,7,23,0,0,11621,11622,7,6,0,0,11622,11623,7,7,0,0,11623,11624,7,26,0,0,11624,11625,7,6,0,0,11625,1930,1,0,0,0,11626,11627,7,23,0,0,11627,11628,7,17,0,0,11628,11629,7,5,0,0,11629,11630,7,6,0,0,11630,11631,7,15,0,0,11631,11632,7,25,0,0,11632,11633,7,19,0,0,11633,11634,7,5,0,0,11634,11635,7,10,0,0,11635,11636,7,22,0,0,11636,11637,7,19,0,0,11637,11638,7,12,0,0,11638,11639,7,18,0,0,11639,11640,7,8,0,0,11640,11641,7,19,0,0,11641,11642,7,23,0,0,11642,11643,7,9,0,0,11643,11644,7,21,0,0,11644,11645,7,16,0,0,11645,1932,1,0,0,0,11646,11647,7,12,0,0,11647,11648,7,3,0,0,11648,11649,7,23,0,0,11649,11650,7,7,0,0,11650,11651,5,95,0,0,11651,11652,7,14,0,0,11652,11653,7,19,0,0,11653,11654,7,12,0,0,11654,11655,7,11,0,0,11655,11656,7,6,0,0,11656,1934,1,0,0,0,11657,11658,7,12,0,0,11658,11659,7,17,0,0,11659,11660,7,5,0,0,11660,11661,7,5,0,0,11661,11662,7,15,0,0,11662,11663,7,18,0,0,11663,1936,1,0,0,0,11664,11665,7,12,0,0,11665,11666,7,17,0,0,11666,11667,7,23,0,0,11667,11668,7,22,0,0,11668,11669,7,7,0,0,11669,11670,7,19,0,0,11670,11671,7,23,0,0,11671,11672,7,7,0,0,11672,11673,7,6,0,0,11673,11674,7,8,0,0,11674,11675,7,15,0,0,11675,11676,7,7,0,0,11676,11677,7,11,0,0,11677,1938,1,0,0,0,11678,11679,7,12,0,0,11679,11680,7,17,0,0,11680,11681,7,23,0,0,11681,11682,7,15,0,0,11682,11683,7,12,0,0,11683,11684,7,6,0,0,11684,11685,7,7,0,0,11685,11686,7,8,0,0,11686,11687,7,15,0,0,11687,11688,7,19,0,0,11688,11689,7,8,0,0,11689,11690,7,8,0,0,11690,11691,7,15,0,0,11691,11692,7,12,0,0,11692,11693,7,22,0,0,11693,11694,7,11,0,0,11694,1940,1,0,0,0,11695,11696,7,12,0,0,11696,11697,7,17,0,0,11697,11698,7,23,0,0,11698,11699,7,25,0,0,11699,11700,7,19,0,0,11700,11701,7,15,0,0,11701,11702,7,12,0,0,11702,11703,7,6,0,0,11703,11704,7,11,0,0,11704,1942,1,0,0,0,11705,11706,7,19,0,0,11706,11707,7,14,0,0,11707,11708,7,6,0,0,11708,1944,1,0,0,0,11709,11710,7,19,0,0,11710,11711,7,14,0,0,11711,11712,7,6,0,0,11712,11713,7,7,0,0,11713,11714,7,6,0,0,11714,11715,5,95,0,0,11715,11716,7,5,0,0,11716,11717,7,7,0,0,11717,11718,7,12,0,0,11718,11719,7,22,0,0,11719,11720,7,6,0,0,11720,11721,7,20,0,0,11721,1946,1,0,0,0,11722,11723,7,19,0,0,11723,11724,7,8,0,0,11724,11725,7,4,0,0,11725,1948,1,0,0,0,11726,11727,7,19,0,0,11727,11728,7,24,0,0,11728,11729,7,7,0,0,11729,11730,7,8,0,0,11730,11731,7,5,0,0,11731,11732,7,3,0,0,11732,11733,7,25,0,0,11733,11734,7,11,0,0,11734,1950,1,0,0,0,11735,11736,7,25,0,0,11736,11737,7,7,0,0,11737,11738,7,8,0,0,11738,11739,7,15,0,0,11739,11740,7,19,0,0,11740,11741,7,4,0,0,11741,11742,5,95,0,0,11742,11743,7,3,0,0,11743,11744,7,4,0,0,11744,11745,7,4,0,0,11745,1952,1,0,0,0,11746,11747,7,25,0,0,11747,11748,7,7,0,0,11748,11749,7,8,0,0,11749,11750,7,15,0,0,11750,11751,7,19,0,0,11751,11752,7,4,0,0,11752,11753,5,95,0,0,11753,11754,7,4,0,0,11754,11755,7,15,0,0,11755,11756,7,18,0,0,11756,11757,7,18,0,0,11757,1954,1,0,0,0,11758,11759,7,25,0,0,11759,11760,7,15,0,0,11760,1956,1,0,0,0,11761,11762,7,25,0,0,11762,11763,7,19,0,0,11763,11764,7,15,0,0,11764,11765,7,12,0,0,11765,11766,7,6,0,0,11766,11767,7,18,0,0,11767,11768,7,8,0,0,11768,11769,7,19,0,0,11769,11770,7,23,0,0,11770,11771,7,6,0,0,11771,11772,7,7,0,0,11772,11773,7,26,0,0,11773,11774,7,6,0,0,11774,1958,1,0,0,0,11775,11776,7,25,0,0,11776,11777,7,19,0,0,11777,11778,7,15,0,0,11778,11779,7,12,0,0,11779,11780,7,6,0,0,11780,11781,7,18,0,0,11781,11782,7,8,0,0,11782,11783,7,19,0,0,11783,11784,7,23,0,0,11784,11785,7,9,0,0,11785,11786,7,21,0,0,11786,11787,7,16,0,0,11787,1960,1,0,0,0,11788,11789,7,25,0,0,11789,11790,7,19,0,0,11790,11791,7,15,0,0,11791,11792,7,12,0,0,11792,11793,7,6,0,0,11793,11794,7,12,0,0,11794,1962,1,0,0,0,11795,11796,7,25,0,0,11796,11797,7,19,0,0,11797,11798,7,5,0,0,11798,11799,7,10,0,0,11799,11800,7,18,0,0,11800,11801,7,8,0,0,11801,11802,7,19,0,0,11802,11803,7,23,0,0,11803,11804,7,6,0,0,11804,11805,7,7,0,0,11805,11806,7,26,0,0,11806,11807,7,6,0,0,11807,1964,1,0,0,0,11808,11809,7,25,0,0,11809,11810,7,19,0,0,11810,11811,7,5,0,0,11811,11812,7,10,0,0,11812,11813,7,18,0,0,11813,11814,7,8,0,0,11814,11815,7,19,0,0,11815,11816,7,23,0,0,11816,11817,7,9,0,0,11817,11818,7,21,0,0,11818,11819,7,16,0,0,11819,1966,1,0,0,0,11820,11821,7,25,0,0,11821,11822,7,19,0,0,11822,11823,7,5,0,0,11823,11824,7,10,0,0,11824,11825,7,22,0,0,11825,11826,7,19,0,0,11826,11827,7,12,0,0,11827,11828,7,18,0,0,11828,11829,7,8,0,0,11829,11830,7,19,0,0,11830,11831,7,23,0,0,11831,11832,7,6,0,0,11832,11833,7,7,0,0,11833,11834,7,26,0,0,11834,11835,7,6,0,0,11835,1968,1,0,0,0,11836,11837,7,25,0,0,11837,11838,7,19,0,0,11838,11839,7,5,0,0,11839,11840,7,10,0,0,11840,11841,7,22,0,0,11841,11842,7,19,0,0,11842,11843,7,12,0,0,11843,11844,7,18,0,0,11844,11845,7,8,0,0,11845,11846,7,19,0,0,11846,11847,7,23,0,0,11847,11848,7,9,0,0,11848,11849,7,21,0,0,11849,11850,7,16,0,0,11850,1970,1,0,0,0,11851,11852,7,25,0,0,11852,11853,7,19,0,0,11853,11854,7,9,0,0,11854,1972,1,0,0,0,11855,11856,7,25,0,0,11856,11857,7,19,0,0,11857,11858,7,9,0,0,11858,11859,7,7,0,0,11859,11860,7,8,0,0,11860,1974,1,0,0,0,11861,11862,7,28,0,0,11862,11863,7,17,0,0,11863,11864,7,19,0,0,11864,11865,7,6,0,0,11865,11866,7,7,0,0,11866,1976,1,0,0,0,11867,11868,7,8,0,0,11868,11869,7,3,0,0,11869,11870,7,4,0,0,11870,11871,7,15,0,0,11871,11872,7,3,0,0,11872,11873,7,12,0,0,11873,11874,7,11,0,0,11874,1978,1,0,0,0,11875,11876,7,8,0,0,11876,11877,7,3,0,0,11877,11878,7,12,0,0,11878,11879,7,4,0,0,11879,1980,1,0,0,0,11880,11881,7,8,0,0,11881,11882,7,3,0,0,11882,11883,7,12,0,0,11883,11884,7,4,0,0,11884,11885,7,19,0,0,11885,11886,7,23,0,0,11886,1982,1,0,0,0,11887,11888,7,8,0,0,11888,11889,7,3,0,0,11889,11890,7,12,0,0,11890,11891,7,4,0,0,11891,11892,7,19,0,0,11892,11893,7,23,0,0,11893,11894,5,95,0,0,11894,11895,7,16,0,0,11895,11896,7,10,0,0,11896,11897,7,6,0,0,11897,11898,7,7,0,0,11898,11899,7,11,0,0,11899,1984,1,0,0,0,11900,11901,7,8,0,0,11901,11902,7,7,0,0,11902,11903,7,5,0,0,11903,11904,7,7,0,0,11904,11905,7,3,0,0,11905,11906,7,11,0,0,11906,11907,7,7,0,0,11907,11908,5,95,0,0,11908,11909,7,5,0,0,11909,11910,7,19,0,0,11910,11911,7,14,0,0,11911,11912,7,21,0,0,11912,1986,1,0,0,0,11913,11914,7,8,0,0,11914,11915,7,7,0,0,11915,11916,7,24,0,0,11916,11917,7,7,0,0,11917,11918,7,8,0,0,11918,11919,7,11,0,0,11919,11920,7,7,0,0,11920,1988,1,0,0,0,11921,11922,7,8,0,0,11922,11923,7,19,0,0,11923,11924,7,17,0,0,11924,11925,7,12,0,0,11925,11926,7,4,0,0,11926,1990,1,0,0,0,11927,11928,7,8,0,0,11928,11929,7,19,0,0,11929,11930,7,9,0,0,11930,11931,5,95,0,0,11931,11932,7,14,0,0,11932,11933,7,19,0,0,11933,11934,7,17,0,0,11934,11935,7,12,0,0,11935,11936,7,6,0,0,11936,1992,1,0,0,0,11937,11938,7,8,0,0,11938,11939,7,25,0,0,11939,11940,7,3,0,0,11940,11941,7,4,0,0,11941,1994,1,0,0,0,11942,11943,7,8,0,0,11943,11944,7,6,0,0,11944,11945,7,8,0,0,11945,11946,7,15,0,0,11946,11947,7,23,0,0,11947,1996,1,0,0,0,11948,11949,7,11,0,0,11949,11950,7,7,0,0,11950,11951,7,14,0,0,11951,11952,5,95,0,0,11952,11953,7,6,0,0,11953,11954,7,19,0,0,11954,11955,5,95,0,0,11955,11956,7,6,0,0,11956,11957,7,15,0,0,11957,11958,7,23,0,0,11958,11959,7,7,0,0,11959,1998,1,0,0,0,11960,11961,7,11,0,0,11961,11962,7,7,0,0,11962,11963,7,14,0,0,11963,11964,7,19,0,0,11964,11965,7,12,0,0,11965,11966,7,4,0,0,11966,11967,7,3,0,0,11967,11968,7,8,0,0,11968,11969,7,10,0,0,11969,11970,5,95,0,0,11970,11971,7,7,0,0,11971,11972,7,12,0,0,11972,11973,7,22,0,0,11973,11974,7,15,0,0,11974,11975,7,12,0,0,11975,11976,7,7,0,0,11976,11977,5,95,0,0,11977,11978,7,3,0,0,11978,11979,7,6,0,0,11979,11980,7,6,0,0,11980,11981,7,8,0,0,11981,11982,7,15,0,0,11982,11983,7,16,0,0,11983,11984,7,17,0,0,11984,11985,7,6,0,0,11985,11986,7,7,0,0,11986,2e3,1,0,0,0,11987,11988,7,11,0,0,11988,11989,7,7,0,0,11989,11990,7,11,0,0,11990,11991,7,11,0,0,11991,11992,7,15,0,0,11992,11993,7,19,0,0,11993,11994,7,12,0,0,11994,11995,5,95,0,0,11995,11996,7,17,0,0,11996,11997,7,11,0,0,11997,11998,7,7,0,0,11998,11999,7,8,0,0,11999,2002,1,0,0,0,12e3,12001,7,11,0,0,12001,12002,7,20,0,0,12002,12003,7,3,0,0,12003,2004,1,0,0,0,12004,12005,7,11,0,0,12005,12006,7,20,0,0,12006,12007,7,3,0,0,12007,12008,5,49,0,0,12008,2006,1,0,0,0,12009,12010,7,11,0,0,12010,12011,7,20,0,0,12011,12012,7,3,0,0,12012,12013,5,50,0,0,12013,2008,1,0,0,0,12014,12015,7,11,0,0,12015,12016,7,14,0,0,12016,12017,7,20,0,0,12017,12018,7,7,0,0,12018,12019,7,23,0,0,12019,12020,7,3,0,0,12020,12021,5,95,0,0,12021,12022,7,12,0,0,12022,12023,7,3,0,0,12023,12024,7,23,0,0,12024,12025,7,7,0,0,12025,2010,1,0,0,0,12026,12027,7,11,0,0,12027,12028,7,15,0,0,12028,12029,7,22,0,0,12029,12030,7,12,0,0,12030,2012,1,0,0,0,12031,12032,7,11,0,0,12032,12033,7,15,0,0,12033,12034,7,12,0,0,12034,2014,1,0,0,0,12035,12036,7,11,0,0,12036,12037,7,5,0,0,12037,12038,7,7,0,0,12038,12039,7,7,0,0,12039,12040,7,25,0,0,12040,2016,1,0,0,0,12041,12042,7,11,0,0,12042,12043,7,19,0,0,12043,12044,7,17,0,0,12044,12045,7,12,0,0,12045,12046,7,4,0,0,12046,12047,7,7,0,0,12047,12048,7,26,0,0,12048,2018,1,0,0,0,12049,12050,7,11,0,0,12050,12051,7,28,0,0,12051,12052,7,5,0,0,12052,12053,5,95,0,0,12053,12054,7,6,0,0,12054,12055,7,20,0,0,12055,12056,7,8,0,0,12056,12057,7,7,0,0,12057,12058,7,3,0,0,12058,12059,7,4,0,0,12059,12060,5,95,0,0,12060,12061,7,9,0,0,12061,12062,7,3,0,0,12062,12063,7,15,0,0,12063,12064,7,6,0,0,12064,12065,5,95,0,0,12065,12066,7,3,0,0,12066,12067,7,18,0,0,12067,12068,7,6,0,0,12068,12069,7,7,0,0,12069,12070,7,8,0,0,12070,12071,5,95,0,0,12071,12072,7,22,0,0,12072,12073,7,6,0,0,12073,12074,7,15,0,0,12074,12075,7,4,0,0,12075,12076,7,11,0,0,12076,2020,1,0,0,0,12077,12078,7,11,0,0,12078,12079,7,28,0,0,12079,12080,7,8,0,0,12080,12081,7,6,0,0,12081,2022,1,0,0,0,12082,12083,7,11,0,0,12083,12084,7,8,0,0,12084,12085,7,15,0,0,12085,12086,7,4,0,0,12086,2024,1,0,0,0,12087,12088,7,11,0,0,12088,12089,7,6,0,0,12089,12090,7,3,0,0,12090,12091,7,8,0,0,12091,12092,7,6,0,0,12092,12093,7,25,0,0,12093,12094,7,19,0,0,12094,12095,7,15,0,0,12095,12096,7,12,0,0,12096,12097,7,6,0,0,12097,2026,1,0,0,0,12098,12099,7,11,0,0,12099,12100,7,6,0,0,12100,12101,7,8,0,0,12101,12102,7,14,0,0,12102,12103,7,23,0,0,12103,12104,7,25,0,0,12104,2028,1,0,0,0,12105,12106,7,11,0,0,12106,12107,7,6,0,0,12107,12108,7,8,0,0,12108,12109,5,95,0,0,12109,12110,7,6,0,0,12110,12111,7,19,0,0,12111,12112,5,95,0,0,12112,12113,7,4,0,0,12113,12114,7,3,0,0,12114,12115,7,6,0,0,12115,12116,7,7,0,0,12116,2030,1,0,0,0,12117,12118,7,11,0,0,12118,12119,7,6,0,0,12119,12120,5,95,0,0,12120,12121,7,3,0,0,12121,12122,7,8,0,0,12122,12123,7,7,0,0,12123,12124,7,3,0,0,12124,2032,1,0,0,0,12125,12126,7,11,0,0,12126,12127,7,6,0,0,12127,12128,5,95,0,0,12128,12129,7,3,0,0,12129,12130,7,11,0,0,12130,12131,7,16,0,0,12131,12132,7,15,0,0,12132,12133,7,12,0,0,12133,12134,7,3,0,0,12134,12135,7,8,0,0,12135,12136,7,10,0,0,12136,2034,1,0,0,0,12137,12138,7,11,0,0,12138,12139,7,6,0,0,12139,12140,5,95,0,0,12140,12141,7,3,0,0,12141,12142,7,11,0,0,12142,12143,7,6,0,0,12143,12144,7,7,0,0,12144,12145,7,26,0,0,12145,12146,7,6,0,0,12146,2036,1,0,0,0,12147,12148,7,11,0,0,12148,12149,7,6,0,0,12149,12150,5,95,0,0,12150,12151,7,3,0,0,12151,12152,7,11,0,0,12152,12153,7,9,0,0,12153,12154,7,21,0,0,12154,12155,7,16,0,0,12155,2038,1,0,0,0,12156,12157,7,11,0,0,12157,12158,7,6,0,0,12158,12159,5,95,0,0,12159,12160,7,3,0,0,12160,12161,7,11,0,0,12161,12162,7,9,0,0,12162,12163,7,21,0,0,12163,12164,7,6,0,0,12164,2040,1,0,0,0,12165,12166,7,11,0,0,12166,12167,7,6,0,0,12167,12168,5,95,0,0,12168,12169,7,16,0,0,12169,12170,7,17,0,0,12170,12171,7,18,0,0,12171,12172,7,18,0,0,12172,12173,7,7,0,0,12173,12174,7,8,0,0,12174,2042,1,0,0,0,12175,12176,7,11,0,0,12176,12177,7,6,0,0,12177,12178,5,95,0,0,12178,12179,7,14,0,0,12179,12180,7,7,0,0,12180,12181,7,12,0,0,12181,12182,7,6,0,0,12182,12183,7,8,0,0,12183,12184,7,19,0,0,12184,12185,7,15,0,0,12185,12186,7,4,0,0,12186,2044,1,0,0,0,12187,12188,7,11,0,0,12188,12189,7,6,0,0,12189,12190,5,95,0,0,12190,12191,7,14,0,0,12191,12192,7,19,0,0,12192,12193,7,12,0,0,12193,12194,7,6,0,0,12194,12195,7,3,0,0,12195,12196,7,15,0,0,12196,12197,7,12,0,0,12197,12198,7,11,0,0,12198,2046,1,0,0,0,12199,12200,7,11,0,0,12200,12201,7,6,0,0,12201,12202,5,95,0,0,12202,12203,7,14,0,0,12203,12204,7,8,0,0,12204,12205,7,19,0,0,12205,12206,7,11,0,0,12206,12207,7,11,0,0,12207,12208,7,7,0,0,12208,12209,7,11,0,0,12209,2048,1,0,0,0,12210,12211,7,11,0,0,12211,12212,7,6,0,0,12212,12213,5,95,0,0,12213,12214,7,4,0,0,12214,12215,7,15,0,0,12215,12216,7,18,0,0,12216,12217,7,18,0,0,12217,12218,7,7,0,0,12218,12219,7,8,0,0,12219,12220,7,7,0,0,12220,12221,7,12,0,0,12221,12222,7,14,0,0,12222,12223,7,7,0,0,12223,2050,1,0,0,0,12224,12225,7,11,0,0,12225,12226,7,6,0,0,12226,12227,5,95,0,0,12227,12228,7,4,0,0,12228,12229,7,15,0,0,12229,12230,7,23,0,0,12230,12231,7,7,0,0,12231,12232,7,12,0,0,12232,12233,7,11,0,0,12233,12234,7,15,0,0,12234,12235,7,19,0,0,12235,12236,7,12,0,0,12236,2052,1,0,0,0,12237,12238,7,11,0,0,12238,12239,7,6,0,0,12239,12240,5,95,0,0,12240,12241,7,4,0,0,12241,12242,7,15,0,0,12242,12243,7,11,0,0,12243,12244,7,27,0,0,12244,12245,7,19,0,0,12245,12246,7,15,0,0,12246,12247,7,12,0,0,12247,12248,7,6,0,0,12248,2054,1,0,0,0,12249,12250,7,11,0,0,12250,12251,7,6,0,0,12251,12252,5,95,0,0,12252,12253,7,4,0,0,12253,12254,7,15,0,0,12254,12255,7,11,0,0,12255,12256,7,6,0,0,12256,12257,7,3,0,0,12257,12258,7,12,0,0,12258,12259,7,14,0,0,12259,12260,7,7,0,0,12260,2056,1,0,0,0,12261,12262,7,11,0,0,12262,12263,7,6,0,0,12263,12264,5,95,0,0,12264,12265,7,7,0,0,12265,12266,7,12,0,0,12266,12267,7,4,0,0,12267,12268,7,25,0,0,12268,12269,7,19,0,0,12269,12270,7,15,0,0,12270,12271,7,12,0,0,12271,12272,7,6,0,0,12272,2058,1,0,0,0,12273,12274,7,11,0,0,12274,12275,7,6,0,0,12275,12276,5,95,0,0,12276,12277,7,7,0,0,12277,12278,7,12,0,0,12278,12279,7,24,0,0,12279,12280,7,7,0,0,12280,12281,7,5,0,0,12281,12282,7,19,0,0,12282,12283,7,25,0,0,12283,12284,7,7,0,0,12284,2060,1,0,0,0,12285,12286,7,11,0,0,12286,12287,7,6,0,0,12287,12288,5,95,0,0,12288,12289,7,7,0,0,12289,12290,7,28,0,0,12290,12291,7,17,0,0,12291,12292,7,3,0,0,12292,12293,7,5,0,0,12293,12294,7,11,0,0,12294,2062,1,0,0,0,12295,12296,7,11,0,0,12296,12297,7,6,0,0,12297,12298,5,95,0,0,12298,12299,7,7,0,0,12299,12300,7,26,0,0,12300,12301,7,6,0,0,12301,12302,7,7,0,0,12302,12303,7,8,0,0,12303,12304,7,15,0,0,12304,12305,7,19,0,0,12305,12306,7,8,0,0,12306,12307,7,8,0,0,12307,12308,7,15,0,0,12308,12309,7,12,0,0,12309,12310,7,22,0,0,12310,2064,1,0,0,0,12311,12312,7,11,0,0,12312,12313,7,6,0,0,12313,12314,5,95,0,0,12314,12315,7,22,0,0,12315,12316,7,7,0,0,12316,12317,7,19,0,0,12317,12318,7,23,0,0,12318,12319,7,14,0,0,12319,12320,7,19,0,0,12320,12321,7,5,0,0,12321,12322,7,5,0,0,12322,12323,7,18,0,0,12323,12324,7,8,0,0,12324,12325,7,19,0,0,12325,12326,7,23,0,0,12326,12327,7,6,0,0,12327,12328,7,7,0,0,12328,12329,7,26,0,0,12329,12330,7,6,0,0,12330,2066,1,0,0,0,12331,12332,7,11,0,0,12332,12333,7,6,0,0,12333,12334,5,95,0,0,12334,12335,7,22,0,0,12335,12336,7,7,0,0,12336,12337,7,19,0,0,12337,12338,7,23,0,0,12338,12339,7,14,0,0,12339,12340,7,19,0,0,12340,12341,7,5,0,0,12341,12342,7,5,0,0,12342,12343,7,18,0,0,12343,12344,7,8,0,0,12344,12345,7,19,0,0,12345,12346,7,23,0,0,12346,12347,7,6,0,0,12347,12348,7,26,0,0,12348,12349,7,6,0,0,12349,2068,1,0,0,0,12350,12351,7,11,0,0,12351,12352,7,6,0,0,12352,12353,5,95,0,0,12353,12354,7,22,0,0,12354,12355,7,7,0,0,12355,12356,7,19,0,0,12356,12357,7,23,0,0,12357,12358,7,14,0,0,12358,12359,7,19,0,0,12359,12360,7,5,0,0,12360,12361,7,5,0,0,12361,12362,7,18,0,0,12362,12363,7,8,0,0,12363,12364,7,19,0,0,12364,12365,7,23,0,0,12365,12366,7,9,0,0,12366,12367,7,21,0,0,12367,12368,7,16,0,0,12368,2070,1,0,0,0,12369,12370,7,11,0,0,12370,12371,7,6,0,0,12371,12372,5,95,0,0,12372,12373,7,22,0,0,12373,12374,7,7,0,0,12374,12375,7,19,0,0,12375,12376,7,23,0,0,12376,12377,7,7,0,0,12377,12378,7,6,0,0,12378,12379,7,8,0,0,12379,12380,7,10,0,0,12380,12381,7,14,0,0,12381,12382,7,19,0,0,12382,12383,7,5,0,0,12383,12384,7,5,0,0,12384,12385,7,7,0,0,12385,12386,7,14,0,0,12386,12387,7,6,0,0,12387,12388,7,15,0,0,12388,12389,7,19,0,0,12389,12390,7,12,0,0,12390,12391,7,18,0,0,12391,12392,7,8,0,0,12392,12393,7,19,0,0,12393,12394,7,23,0,0,12394,12395,7,6,0,0,12395,12396,7,7,0,0,12396,12397,7,26,0,0,12397,12398,7,6,0,0,12398,2072,1,0,0,0,12399,12400,7,11,0,0,12400,12401,7,6,0,0,12401,12402,5,95,0,0,12402,12403,7,22,0,0,12403,12404,7,7,0,0,12404,12405,7,19,0,0,12405,12406,7,23,0,0,12406,12407,7,7,0,0,12407,12408,7,6,0,0,12408,12409,7,8,0,0,12409,12410,7,10,0,0,12410,12411,7,14,0,0,12411,12412,7,19,0,0,12412,12413,7,5,0,0,12413,12414,7,5,0,0,12414,12415,7,7,0,0,12415,12416,7,14,0,0,12416,12417,7,6,0,0,12417,12418,7,15,0,0,12418,12419,7,19,0,0,12419,12420,7,12,0,0,12420,12421,7,18,0,0,12421,12422,7,8,0,0,12422,12423,7,19,0,0,12423,12424,7,23,0,0,12424,12425,7,9,0,0,12425,12426,7,21,0,0,12426,12427,7,16,0,0,12427,2074,1,0,0,0,12428,12429,7,11,0,0,12429,12430,7,6,0,0,12430,12431,5,95,0,0,12431,12432,7,22,0,0,12432,12433,7,7,0,0,12433,12434,7,19,0,0,12434,12435,7,23,0,0,12435,12436,7,7,0,0,12436,12437,7,6,0,0,12437,12438,7,8,0,0,12438,12439,7,10,0,0,12439,12440,7,18,0,0,12440,12441,7,8,0,0,12441,12442,7,19,0,0,12442,12443,7,23,0,0,12443,12444,7,6,0,0,12444,12445,7,7,0,0,12445,12446,7,26,0,0,12446,12447,7,6,0,0,12447,2076,1,0,0,0,12448,12449,7,11,0,0,12449,12450,7,6,0,0,12450,12451,5,95,0,0,12451,12452,7,22,0,0,12452,12453,7,7,0,0,12453,12454,7,19,0,0,12454,12455,7,23,0,0,12455,12456,7,7,0,0,12456,12457,7,6,0,0,12457,12458,7,8,0,0,12458,12459,7,10,0,0,12459,12460,7,18,0,0,12460,12461,7,8,0,0,12461,12462,7,19,0,0,12462,12463,7,23,0,0,12463,12464,7,9,0,0,12464,12465,7,21,0,0,12465,12466,7,16,0,0,12466,2078,1,0,0,0,12467,12468,7,11,0,0,12468,12469,7,6,0,0,12469,12470,5,95,0,0,12470,12471,7,22,0,0,12471,12472,7,7,0,0,12472,12473,7,19,0,0,12473,12474,7,23,0,0,12474,12475,7,7,0,0,12475,12476,7,6,0,0,12476,12477,7,8,0,0,12477,12478,7,10,0,0,12478,12479,7,12,0,0,12479,2080,1,0,0,0,12480,12481,7,11,0,0,12481,12482,7,6,0,0,12482,12483,5,95,0,0,12483,12484,7,22,0,0,12484,12485,7,7,0,0,12485,12486,7,19,0,0,12486,12487,7,23,0,0,12487,12488,7,7,0,0,12488,12489,7,6,0,0,12489,12490,7,8,0,0,12490,12491,7,10,0,0,12491,12492,7,6,0,0,12492,12493,7,10,0,0,12493,12494,7,25,0,0,12494,12495,7,7,0,0,12495,2082,1,0,0,0,12496,12497,7,11,0,0,12497,12498,7,6,0,0,12498,12499,5,95,0,0,12499,12500,7,22,0,0,12500,12501,7,7,0,0,12501,12502,7,19,0,0,12502,12503,7,23,0,0,12503,12504,7,18,0,0,12504,12505,7,8,0,0,12505,12506,7,19,0,0,12506,12507,7,23,0,0,12507,12508,7,6,0,0,12508,12509,7,7,0,0,12509,12510,7,26,0,0,12510,12511,7,6,0,0,12511,2084,1,0,0,0,12512,12513,7,11,0,0,12513,12514,7,6,0,0,12514,12515,5,95,0,0,12515,12516,7,22,0,0,12516,12517,7,7,0,0,12517,12518,7,19,0,0,12518,12519,7,23,0,0,12519,12520,7,18,0,0,12520,12521,7,8,0,0,12521,12522,7,19,0,0,12522,12523,7,23,0,0,12523,12524,7,9,0,0,12524,12525,7,21,0,0,12525,12526,7,16,0,0,12526,2086,1,0,0,0,12527,12528,7,11,0,0,12528,12529,7,6,0,0,12529,12530,5,95,0,0,12530,12531,7,15,0,0,12531,12532,7,12,0,0,12532,12533,7,6,0,0,12533,12534,7,7,0,0,12534,12535,7,8,0,0,12535,12536,7,15,0,0,12536,12537,7,19,0,0,12537,12538,7,8,0,0,12538,12539,7,8,0,0,12539,12540,7,15,0,0,12540,12541,7,12,0,0,12541,12542,7,22,0,0,12542,12543,7,12,0,0,12543,2088,1,0,0,0,12544,12545,7,11,0,0,12545,12546,7,6,0,0,12546,12547,5,95,0,0,12547,12548,7,15,0,0,12548,12549,7,12,0,0,12549,12550,7,6,0,0,12550,12551,7,7,0,0,12551,12552,7,8,0,0,12552,12553,7,11,0,0,12553,12554,7,7,0,0,12554,12555,7,14,0,0,12555,12556,7,6,0,0,12556,12557,7,15,0,0,12557,12558,7,19,0,0,12558,12559,7,12,0,0,12559,2090,1,0,0,0,12560,12561,7,11,0,0,12561,12562,7,6,0,0,12562,12563,5,95,0,0,12563,12564,7,15,0,0,12564,12565,7,12,0,0,12565,12566,7,6,0,0,12566,12567,7,7,0,0,12567,12568,7,8,0,0,12568,12569,7,11,0,0,12569,12570,7,7,0,0,12570,12571,7,14,0,0,12571,12572,7,6,0,0,12572,12573,7,11,0,0,12573,2092,1,0,0,0,12574,12575,7,11,0,0,12575,12576,7,6,0,0,12576,12577,5,95,0,0,12577,12578,7,15,0,0,12578,12579,7,11,0,0,12579,12580,7,14,0,0,12580,12581,7,5,0,0,12581,12582,7,19,0,0,12582,12583,7,11,0,0,12583,12584,7,7,0,0,12584,12585,7,4,0,0,12585,2094,1,0,0,0,12586,12587,7,11,0,0,12587,12588,7,6,0,0,12588,12589,5,95,0,0,12589,12590,7,15,0,0,12590,12591,7,11,0,0,12591,12592,7,7,0,0,12592,12593,7,23,0,0,12593,12594,7,25,0,0,12594,12595,7,6,0,0,12595,12596,7,10,0,0,12596,2096,1,0,0,0,12597,12598,7,11,0,0,12598,12599,7,6,0,0,12599,12600,5,95,0,0,12600,12601,7,15,0,0,12601,12602,7,11,0,0,12602,12603,7,11,0,0,12603,12604,7,15,0,0,12604,12605,7,23,0,0,12605,12606,7,25,0,0,12606,12607,7,5,0,0,12607,12608,7,7,0,0,12608,2098,1,0,0,0,12609,12610,7,11,0,0,12610,12611,7,6,0,0,12611,12612,5,95,0,0,12612,12613,7,5,0,0,12613,12614,7,15,0,0,12614,12615,7,12,0,0,12615,12616,7,7,0,0,12616,12617,7,18,0,0,12617,12618,7,8,0,0,12618,12619,7,19,0,0,12619,12620,7,23,0,0,12620,12621,7,6,0,0,12621,12622,7,7,0,0,12622,12623,7,26,0,0,12623,12624,7,6,0,0,12624,2100,1,0,0,0,12625,12626,7,11,0,0,12626,12627,7,6,0,0,12627,12628,5,95,0,0,12628,12629,7,5,0,0,12629,12630,7,15,0,0,12630,12631,7,12,0,0,12631,12632,7,7,0,0,12632,12633,7,18,0,0,12633,12634,7,8,0,0,12634,12635,7,19,0,0,12635,12636,7,23,0,0,12636,12637,7,9,0,0,12637,12638,7,21,0,0,12638,12639,7,16,0,0,12639,2102,1,0,0,0,12640,12641,7,11,0,0,12641,12642,7,6,0,0,12642,12643,5,95,0,0,12643,12644,7,5,0,0,12644,12645,7,15,0,0,12645,12646,7,12,0,0,12646,12647,7,7,0,0,12647,12648,7,11,0,0,12648,12649,7,6,0,0,12649,12650,7,8,0,0,12650,12651,7,15,0,0,12651,12652,7,12,0,0,12652,12653,7,22,0,0,12653,12654,7,18,0,0,12654,12655,7,8,0,0,12655,12656,7,19,0,0,12656,12657,7,23,0,0,12657,12658,7,6,0,0,12658,12659,7,7,0,0,12659,12660,7,26,0,0,12660,12661,7,6,0,0,12661,2104,1,0,0,0,12662,12663,7,11,0,0,12663,12664,7,6,0,0,12664,12665,5,95,0,0,12665,12666,7,5,0,0,12666,12667,7,15,0,0,12667,12668,7,12,0,0,12668,12669,7,7,0,0,12669,12670,7,11,0,0,12670,12671,7,6,0,0,12671,12672,7,8,0,0,12672,12673,7,15,0,0,12673,12674,7,12,0,0,12674,12675,7,22,0,0,12675,12676,7,18,0,0,12676,12677,7,8,0,0,12677,12678,7,19,0,0,12678,12679,7,23,0,0,12679,12680,7,9,0,0,12680,12681,7,21,0,0,12681,12682,7,16,0,0,12682,2106,1,0,0,0,12683,12684,7,11,0,0,12684,12685,7,6,0,0,12685,12686,5,95,0,0,12686,12687,7,12,0,0,12687,12688,7,17,0,0,12688,12689,7,23,0,0,12689,12690,7,22,0,0,12690,12691,7,7,0,0,12691,12692,7,19,0,0,12692,12693,7,23,0,0,12693,12694,7,7,0,0,12694,12695,7,6,0,0,12695,12696,7,8,0,0,12696,12697,7,15,0,0,12697,12698,7,7,0,0,12698,12699,7,11,0,0,12699,2108,1,0,0,0,12700,12701,7,11,0,0,12701,12702,7,6,0,0,12702,12703,5,95,0,0,12703,12704,7,12,0,0,12704,12705,7,17,0,0,12705,12706,7,23,0,0,12706,12707,7,15,0,0,12707,12708,7,12,0,0,12708,12709,7,6,0,0,12709,12710,7,7,0,0,12710,12711,7,8,0,0,12711,12712,7,15,0,0,12712,12713,7,19,0,0,12713,12714,7,8,0,0,12714,12715,7,8,0,0,12715,12716,7,15,0,0,12716,12717,7,12,0,0,12717,12718,7,22,0,0,12718,2110,1,0,0,0,12719,12720,7,11,0,0,12720,12721,7,6,0,0,12721,12722,5,95,0,0,12722,12723,7,12,0,0,12723,12724,7,17,0,0,12724,12725,7,23,0,0,12725,12726,7,15,0,0,12726,12727,7,12,0,0,12727,12728,7,6,0,0,12728,12729,7,7,0,0,12729,12730,7,8,0,0,12730,12731,7,15,0,0,12731,12732,7,19,0,0,12732,12733,7,8,0,0,12733,12734,7,8,0,0,12734,12735,7,15,0,0,12735,12736,7,12,0,0,12736,12737,7,22,0,0,12737,12738,7,11,0,0,12738,2112,1,0,0,0,12739,12740,7,11,0,0,12740,12741,7,6,0,0,12741,12742,5,95,0,0,12742,12743,7,12,0,0,12743,12744,7,17,0,0,12744,12745,7,23,0,0,12745,12746,7,25,0,0,12746,12747,7,19,0,0,12747,12748,7,15,0,0,12748,12749,7,12,0,0,12749,12750,7,6,0,0,12750,12751,7,11,0,0,12751,2114,1,0,0,0,12752,12753,7,11,0,0,12753,12754,7,6,0,0,12754,12755,5,95,0,0,12755,12756,7,19,0,0,12756,12757,7,24,0,0,12757,12758,7,7,0,0,12758,12759,7,8,0,0,12759,12760,7,5,0,0,12760,12761,7,3,0,0,12761,12762,7,25,0,0,12762,12763,7,11,0,0,12763,2116,1,0,0,0,12764,12765,7,11,0,0,12765,12766,7,6,0,0,12766,12767,5,95,0,0,12767,12768,7,25,0,0,12768,12769,7,19,0,0,12769,12770,7,15,0,0,12770,12771,7,12,0,0,12771,12772,7,6,0,0,12772,12773,7,18,0,0,12773,12774,7,8,0,0,12774,12775,7,19,0,0,12775,12776,7,23,0,0,12776,12777,7,6,0,0,12777,12778,7,7,0,0,12778,12779,7,26,0,0,12779,12780,7,6,0,0,12780,2118,1,0,0,0,12781,12782,7,11,0,0,12782,12783,7,6,0,0,12783,12784,5,95,0,0,12784,12785,7,25,0,0,12785,12786,7,19,0,0,12786,12787,7,15,0,0,12787,12788,7,12,0,0,12788,12789,7,6,0,0,12789,12790,7,18,0,0,12790,12791,7,8,0,0,12791,12792,7,19,0,0,12792,12793,7,23,0,0,12793,12794,7,9,0,0,12794,12795,7,21,0,0,12795,12796,7,16,0,0,12796,2120,1,0,0,0,12797,12798,7,11,0,0,12798,12799,7,6,0,0,12799,12800,5,95,0,0,12800,12801,7,25,0,0,12801,12802,7,19,0,0,12802,12803,7,15,0,0,12803,12804,7,12,0,0,12804,12805,7,6,0,0,12805,12806,7,12,0,0,12806,2122,1,0,0,0,12807,12808,7,11,0,0,12808,12809,7,6,0,0,12809,12810,5,95,0,0,12810,12811,7,25,0,0,12811,12812,7,19,0,0,12812,12813,7,5,0,0,12813,12814,7,10,0,0,12814,12815,7,18,0,0,12815,12816,7,8,0,0,12816,12817,7,19,0,0,12817,12818,7,23,0,0,12818,12819,7,6,0,0,12819,12820,7,7,0,0,12820,12821,7,26,0,0,12821,12822,7,6,0,0,12822,2124,1,0,0,0,12823,12824,7,11,0,0,12824,12825,7,6,0,0,12825,12826,5,95,0,0,12826,12827,7,25,0,0,12827,12828,7,19,0,0,12828,12829,7,5,0,0,12829,12830,7,10,0,0,12830,12831,7,18,0,0,12831,12832,7,8,0,0,12832,12833,7,19,0,0,12833,12834,7,23,0,0,12834,12835,7,9,0,0,12835,12836,7,21,0,0,12836,12837,7,16,0,0,12837,2126,1,0,0,0,12838,12839,7,11,0,0,12839,12840,7,6,0,0,12840,12841,5,95,0,0,12841,12842,7,25,0,0,12842,12843,7,19,0,0,12843,12844,7,5,0,0,12844,12845,7,10,0,0,12845,12846,7,22,0,0,12846,12847,7,19,0,0,12847,12848,7,12,0,0,12848,12849,7,18,0,0,12849,12850,7,8,0,0,12850,12851,7,19,0,0,12851,12852,7,23,0,0,12852,12853,7,6,0,0,12853,12854,7,7,0,0,12854,12855,7,26,0,0,12855,12856,7,6,0,0,12856,2128,1,0,0,0,12857,12858,7,11,0,0,12858,12859,7,6,0,0,12859,12860,5,95,0,0,12860,12861,7,25,0,0,12861,12862,7,19,0,0,12862,12863,7,5,0,0,12863,12864,7,10,0,0,12864,12865,7,22,0,0,12865,12866,7,19,0,0,12866,12867,7,12,0,0,12867,12868,7,18,0,0,12868,12869,7,8,0,0,12869,12870,7,19,0,0,12870,12871,7,23,0,0,12871,12872,7,9,0,0,12872,12873,7,21,0,0,12873,12874,7,16,0,0,12874,2130,1,0,0,0,12875,12876,7,11,0,0,12876,12877,7,6,0,0,12877,12878,5,95,0,0,12878,12879,7,11,0,0,12879,12880,7,8,0,0,12880,12881,7,15,0,0,12881,12882,7,4,0,0,12882,2132,1,0,0,0,12883,12884,7,11,0,0,12884,12885,7,6,0,0,12885,12886,5,95,0,0,12886,12887,7,11,0,0,12887,12888,7,6,0,0,12888,12889,7,3,0,0,12889,12890,7,8,0,0,12890,12891,7,6,0,0,12891,12892,7,25,0,0,12892,12893,7,19,0,0,12893,12894,7,15,0,0,12894,12895,7,12,0,0,12895,12896,7,6,0,0,12896,2134,1,0,0,0,12897,12898,7,11,0,0,12898,12899,7,6,0,0,12899,12900,5,95,0,0,12900,12901,7,11,0,0,12901,12902,7,10,0,0,12902,12903,7,23,0,0,12903,12904,7,4,0,0,12904,12905,7,15,0,0,12905,12906,7,18,0,0,12906,12907,7,18,0,0,12907,12908,7,7,0,0,12908,12909,7,8,0,0,12909,12910,7,7,0,0,12910,12911,7,12,0,0,12911,12912,7,14,0,0,12912,12913,7,7,0,0,12913,2136,1,0,0,0,12914,12915,7,11,0,0,12915,12916,7,6,0,0,12916,12917,5,95,0,0,12917,12918,7,6,0,0,12918,12919,7,19,0,0,12919,12920,7,17,0,0,12920,12921,7,14,0,0,12921,12922,7,20,0,0,12922,12923,7,7,0,0,12923,12924,7,11,0,0,12924,2138,1,0,0,0,12925,12926,7,11,0,0,12926,12927,7,6,0,0,12927,12928,5,95,0,0,12928,12929,7,17,0,0,12929,12930,7,12,0,0,12930,12931,7,15,0,0,12931,12932,7,19,0,0,12932,12933,7,12,0,0,12933,2140,1,0,0,0,12934,12935,7,11,0,0,12935,12936,7,6,0,0,12936,12937,5,95,0,0,12937,12938,7,9,0,0,12938,12939,7,15,0,0,12939,12940,7,6,0,0,12940,12941,7,20,0,0,12941,12942,7,15,0,0,12942,12943,7,12,0,0,12943,2142,1,0,0,0,12944,12945,7,11,0,0,12945,12946,7,6,0,0,12946,12947,5,95,0,0,12947,12948,7,26,0,0,12948,2144,1,0,0,0,12949,12950,7,11,0,0,12950,12951,7,6,0,0,12951,12952,5,95,0,0,12952,12953,7,10,0,0,12953,2146,1,0,0,0,12954,12955,7,11,0,0,12955,12956,7,17,0,0,12956,12957,7,16,0,0,12957,12958,7,4,0,0,12958,12959,7,3,0,0,12959,12960,7,6,0,0,12960,12961,7,7,0,0,12961,2148,1,0,0,0,12962,12963,7,11,0,0,12963,12964,7,17,0,0,12964,12965,7,16,0,0,12965,12966,7,11,0,0,12966,12967,7,6,0,0,12967,12968,7,8,0,0,12968,12969,7,15,0,0,12969,12970,7,12,0,0,12970,12971,7,22,0,0,12971,12972,5,95,0,0,12972,12973,7,15,0,0,12973,12974,7,12,0,0,12974,12975,7,4,0,0,12975,12976,7,7,0,0,12976,12977,7,26,0,0,12977,2150,1,0,0,0,12978,12979,7,11,0,0,12979,12980,7,17,0,0,12980,12981,7,16,0,0,12981,12982,7,6,0,0,12982,12983,7,15,0,0,12983,12984,7,23,0,0,12984,12985,7,7,0,0,12985,2152,1,0,0,0,12986,12987,7,11,0,0,12987,12988,7,10,0,0,12988,12989,7,11,0,0,12989,12990,7,6,0,0,12990,12991,7,7,0,0,12991,12992,7,23,0,0,12992,12993,5,95,0,0,12993,12994,7,17,0,0,12994,12995,7,11,0,0,12995,12996,7,7,0,0,12996,12997,7,8,0,0,12997,2154,1,0,0,0,12998,12999,7,6,0,0,12999,13e3,7,3,0,0,13e3,13001,7,12,0,0,13001,2156,1,0,0,0,13002,13003,7,6,0,0,13003,13004,7,15,0,0,13004,13005,7,23,0,0,13005,13006,7,7,0,0,13006,13007,7,4,0,0,13007,13008,7,15,0,0,13008,13009,7,18,0,0,13009,13010,7,18,0,0,13010,2158,1,0,0,0,13011,13012,7,6,0,0,13012,13013,7,15,0,0,13013,13014,7,23,0,0,13014,13015,7,7,0,0,13015,13016,7,11,0,0,13016,13017,7,6,0,0,13017,13018,7,3,0,0,13018,13019,7,23,0,0,13019,13020,7,25,0,0,13020,13021,7,3,0,0,13021,13022,7,4,0,0,13022,13023,7,4,0,0,13023,2160,1,0,0,0,13024,13025,7,6,0,0,13025,13026,7,15,0,0,13026,13027,7,23,0,0,13027,13028,7,7,0,0,13028,13029,7,11,0,0,13029,13030,7,6,0,0,13030,13031,7,3,0,0,13031,13032,7,23,0,0,13032,13033,7,25,0,0,13033,13034,7,4,0,0,13034,13035,7,15,0,0,13035,13036,7,18,0,0,13036,13037,7,18,0,0,13037,2162,1,0,0,0,13038,13039,7,6,0,0,13039,13040,7,15,0,0,13040,13041,7,23,0,0,13041,13042,7,7,0,0,13042,13043,5,95,0,0,13043,13044,7,18,0,0,13044,13045,7,19,0,0,13045,13046,7,8,0,0,13046,13047,7,23,0,0,13047,13048,7,3,0,0,13048,13049,7,6,0,0,13049,2164,1,0,0,0,13050,13051,7,6,0,0,13051,13052,7,15,0,0,13052,13053,7,23,0,0,13053,13054,7,7,0,0,13054,13055,5,95,0,0,13055,13056,7,6,0,0,13056,13057,7,19,0,0,13057,13058,5,95,0,0,13058,13059,7,11,0,0,13059,13060,7,7,0,0,13060,13061,7,14,0,0,13061,2166,1,0,0,0,13062,13063,7,6,0,0,13063,13064,7,19,0,0,13064,13065,7,17,0,0,13065,13066,7,14,0,0,13066,13067,7,20,0,0,13067,13068,7,7,0,0,13068,13069,7,11,0,0,13069,2168,1,0,0,0,13070,13071,7,6,0,0,13071,13072,7,19,0,0,13072,13073,5,95,0,0,13073,13074,7,16,0,0,13074,13075,7,3,0,0,13075,13076,7,11,0,0,13076,13077,7,7,0,0,13077,13078,5,54,0,0,13078,13079,5,52,0,0,13079,2170,1,0,0,0,13080,13081,7,6,0,0,13081,13082,7,19,0,0,13082,13083,5,95,0,0,13083,13084,7,4,0,0,13084,13085,7,3,0,0,13085,13086,7,10,0,0,13086,13087,7,11,0,0,13087,2172,1,0,0,0,13088,13089,7,6,0,0,13089,13090,7,19,0,0,13090,13091,5,95,0,0,13091,13092,7,11,0,0,13092,13093,7,7,0,0,13093,13094,7,14,0,0,13094,13095,7,19,0,0,13095,13096,7,12,0,0,13096,13097,7,4,0,0,13097,13098,7,11,0,0,13098,2174,1,0,0,0,13099,13100,7,6,0,0,13100,13101,7,25,0,0,13101,13102,5,95,0,0,13102,13103,7,14,0,0,13103,13104,7,19,0,0,13104,13105,7,12,0,0,13105,13106,7,12,0,0,13106,13107,7,7,0,0,13107,13108,7,14,0,0,13108,13109,7,6,0,0,13109,13110,7,15,0,0,13110,13111,7,19,0,0,13111,13112,7,12,0,0,13112,13113,5,95,0,0,13113,13114,7,3,0,0,13114,13115,7,4,0,0,13115,13116,7,23,0,0,13116,13117,7,15,0,0,13117,13118,7,12,0,0,13118,2176,1,0,0,0,13119,13120,7,17,0,0,13120,13121,7,14,0,0,13121,13122,7,3,0,0,13122,13123,7,11,0,0,13123,13124,7,7,0,0,13124,2178,1,0,0,0,13125,13126,7,17,0,0,13126,13127,7,12,0,0,13127,13128,7,14,0,0,13128,13129,7,19,0,0,13129,13130,7,23,0,0,13130,13131,7,25,0,0,13131,13132,7,8,0,0,13132,13133,7,7,0,0,13133,13134,7,11,0,0,13134,13135,7,11,0,0,13135,2180,1,0,0,0,13136,13137,7,17,0,0,13137,13138,7,12,0,0,13138,13139,7,14,0,0,13139,13140,7,19,0,0,13140,13141,7,23,0,0,13141,13142,7,25,0,0,13142,13143,7,8,0,0,13143,13144,7,7,0,0,13144,13145,7,11,0,0,13145,13146,7,11,0,0,13146,13147,7,7,0,0,13147,13148,7,4,0,0,13148,13149,5,95,0,0,13149,13150,7,5,0,0,13150,13151,7,7,0,0,13151,13152,7,12,0,0,13152,13153,7,22,0,0,13153,13154,7,6,0,0,13154,13155,7,20,0,0,13155,2182,1,0,0,0,13156,13157,7,17,0,0,13157,13158,7,12,0,0,13158,13159,7,20,0,0,13159,13160,7,7,0,0,13160,13161,7,26,0,0,13161,2184,1,0,0,0,13162,13163,7,17,0,0,13163,13164,7,12,0,0,13164,13165,7,15,0,0,13165,13166,7,26,0,0,13166,13167,5,95,0,0,13167,13168,7,6,0,0,13168,13169,7,15,0,0,13169,13170,7,23,0,0,13170,13171,7,7,0,0,13171,13172,7,11,0,0,13172,13173,7,6,0,0,13173,13174,7,3,0,0,13174,13175,7,23,0,0,13175,13176,7,25,0,0,13176,2186,1,0,0,0,13177,13178,7,17,0,0,13178,13179,7,25,0,0,13179,13180,7,4,0,0,13180,13181,7,3,0,0,13181,13182,7,6,0,0,13182,13183,7,7,0,0,13183,13184,7,26,0,0,13184,13185,7,23,0,0,13185,13186,7,5,0,0,13186,2188,1,0,0,0,13187,13188,7,17,0,0,13188,13189,7,25,0,0,13189,13190,7,25,0,0,13190,13191,7,7,0,0,13191,13192,7,8,0,0,13192,2190,1,0,0,0,13193,13194,7,17,0,0,13194,13195,7,17,0,0,13195,13196,7,15,0,0,13196,13197,7,4,0,0,13197,2192,1,0,0,0,13198,13199,7,17,0,0,13199,13200,7,17,0,0,13200,13201,7,15,0,0,13201,13202,7,4,0,0,13202,13203,5,95,0,0,13203,13204,7,11,0,0,13204,13205,7,20,0,0,13205,13206,7,19,0,0,13206,13207,7,8,0,0,13207,13208,7,6,0,0,13208,2194,1,0,0,0,13209,13210,7,24,0,0,13210,13211,7,3,0,0,13211,13212,7,5,0,0,13212,13213,7,15,0,0,13213,13214,7,4,0,0,13214,13215,7,3,0,0,13215,13216,7,6,0,0,13216,13217,7,7,0,0,13217,13218,5,95,0,0,13218,13219,7,25,0,0,13219,13220,7,3,0,0,13220,13221,7,11,0,0,13221,13222,7,11,0,0,13222,13223,7,9,0,0,13223,13224,7,19,0,0,13224,13225,7,8,0,0,13225,13226,7,4,0,0,13226,13227,5,95,0,0,13227,13228,7,11,0,0,13228,13229,7,6,0,0,13229,13230,7,8,0,0,13230,13231,7,7,0,0,13231,13232,7,12,0,0,13232,13233,7,22,0,0,13233,13234,7,6,0,0,13234,13235,7,20,0,0,13235,2196,1,0,0,0,13236,13237,7,24,0,0,13237,13238,7,7,0,0,13238,13239,7,8,0,0,13239,13240,7,11,0,0,13240,13241,7,15,0,0,13241,13242,7,19,0,0,13242,13243,7,12,0,0,13243,2198,1,0,0,0,13244,13245,7,9,0,0,13245,13246,7,3,0,0,13246,13247,7,15,0,0,13247,13248,7,6,0,0,13248,13249,5,95,0,0,13249,13250,7,17,0,0,13250,13251,7,12,0,0,13251,13252,7,6,0,0,13252,13253,7,15,0,0,13253,13254,7,5,0,0,13254,13255,5,95,0,0,13255,13256,7,11,0,0,13256,13257,7,28,0,0,13257,13258,7,5,0,0,13258,13259,5,95,0,0,13259,13260,7,6,0,0,13260,13261,7,20,0,0,13261,13262,7,8,0,0,13262,13263,7,7,0,0,13263,13264,7,3,0,0,13264,13265,7,4,0,0,13265,13266,5,95,0,0,13266,13267,7,3,0,0,13267,13268,7,18,0,0,13268,13269,7,6,0,0,13269,13270,7,7,0,0,13270,13271,7,8,0,0,13271,13272,5,95,0,0,13272,13273,7,22,0,0,13273,13274,7,6,0,0,13274,13275,7,15,0,0,13275,13276,7,4,0,0,13276,13277,7,11,0,0,13277,2200,1,0,0,0,13278,13279,7,9,0,0,13279,13280,7,7,0,0,13280,13281,7,7,0,0,13281,13282,7,21,0,0,13282,13283,7,4,0,0,13283,13284,7,3,0,0,13284,13285,7,10,0,0,13285,2202,1,0,0,0,13286,13287,7,9,0,0,13287,13288,7,7,0,0,13288,13289,7,7,0,0,13289,13290,7,21,0,0,13290,13291,7,19,0,0,13291,13292,7,18,0,0,13292,13293,7,10,0,0,13293,13294,7,7,0,0,13294,13295,7,3,0,0,13295,13296,7,8,0,0,13296,2204,1,0,0,0,13297,13298,7,9,0,0,13298,13299,7,7,0,0,13299,13300,7,15,0,0,13300,13301,7,22,0,0,13301,13302,7,20,0,0,13302,13303,7,6,0,0,13303,13304,5,95,0,0,13304,13305,7,11,0,0,13305,13306,7,6,0,0,13306,13307,7,8,0,0,13307,13308,7,15,0,0,13308,13309,7,12,0,0,13309,13310,7,22,0,0,13310,2206,1,0,0,0,13311,13312,7,9,0,0,13312,13313,7,15,0,0,13313,13314,7,6,0,0,13314,13315,7,20,0,0,13315,13316,7,15,0,0,13316,13317,7,12,0,0,13317,2208,1,0,0,0,13318,13319,7,10,0,0,13319,13320,7,7,0,0,13320,13321,7,3,0,0,13321,13322,7,8,0,0,13322,13323,7,9,0,0,13323,13324,7,7,0,0,13324,13325,7,7,0,0,13325,13326,7,21,0,0,13326,2210,1,0,0,0,13327,13328,7,10,0,0,13328,2212,1,0,0,0,13329,13330,7,26,0,0,13330,2214,1,0,0,0,13331,13332,5,58,0,0,13332,13333,5,61,0,0,13333,2216,1,0,0,0,13334,13335,5,43,0,0,13335,13336,5,61,0,0,13336,2218,1,0,0,0,13337,13338,5,45,0,0,13338,13339,5,61,0,0,13339,2220,1,0,0,0,13340,13341,5,42,0,0,13341,13342,5,61,0,0,13342,2222,1,0,0,0,13343,13344,5,47,0,0,13344,13345,5,61,0,0,13345,2224,1,0,0,0,13346,13347,5,37,0,0,13347,13348,5,61,0,0,13348,2226,1,0,0,0,13349,13350,5,38,0,0,13350,13351,5,61,0,0,13351,2228,1,0,0,0,13352,13353,5,94,0,0,13353,13354,5,61,0,0,13354,2230,1,0,0,0,13355,13356,5,124,0,0,13356,13357,5,61,0,0,13357,2232,1,0,0,0,13358,13359,5,42,0,0,13359,2234,1,0,0,0,13360,13361,5,47,0,0,13361,2236,1,0,0,0,13362,13363,5,37,0,0,13363,2238,1,0,0,0,13364,13365,5,43,0,0,13365,2240,1,0,0,0,13366,13367,5,45,0,0,13367,2242,1,0,0,0,13368,13369,7,4,0,0,13369,13370,7,15,0,0,13370,13371,7,24,0,0,13371,2244,1,0,0,0,13372,13373,7,23,0,0,13373,13374,7,19,0,0,13374,13375,7,4,0,0,13375,2246,1,0,0,0,13376,13377,5,61,0,0,13377,2248,1,0,0,0,13378,13379,5,62,0,0,13379,2250,1,0,0,0,13380,13381,5,60,0,0,13381,2252,1,0,0,0,13382,13383,5,33,0,0,13383,2254,1,0,0,0,13384,13385,5,126,0,0,13385,2256,1,0,0,0,13386,13387,5,124,0,0,13387,2258,1,0,0,0,13388,13389,5,38,0,0,13389,2260,1,0,0,0,13390,13391,5,94,0,0,13391,2262,1,0,0,0,13392,13393,5,46,0,0,13393,2264,1,0,0,0,13394,13395,5,40,0,0,13395,2266,1,0,0,0,13396,13397,5,41,0,0,13397,2268,1,0,0,0,13398,13399,5,44,0,0,13399,2270,1,0,0,0,13400,13401,5,59,0,0,13401,2272,1,0,0,0,13402,13403,5,64,0,0,13403,2274,1,0,0,0,13404,13405,5,48,0,0,13405,2276,1,0,0,0,13406,13407,5,49,0,0,13407,2278,1,0,0,0,13408,13409,5,50,0,0,13409,2280,1,0,0,0,13410,13411,5,39,0,0,13411,2282,1,0,0,0,13412,13413,5,34,0,0,13413,2284,1,0,0,0,13414,13415,5,96,0,0,13415,2286,1,0,0,0,13416,13417,5,58,0,0,13417,2288,1,0,0,0,13418,13422,3,2281,1140,0,13419,13422,3,2283,1141,0,13420,13422,3,2285,1142,0,13421,13418,1,0,0,0,13421,13419,1,0,0,0,13421,13420,1,0,0,0,13422,2290,1,0,0,0,13423,13424,5,96,0,0,13424,13425,3,2323,1161,0,13425,13426,5,96,0,0,13426,2292,1,0,0,0,13427,13429,3,2337,1168,0,13428,13427,1,0,0,0,13429,13430,1,0,0,0,13430,13428,1,0,0,0,13430,13431,1,0,0,0,13431,13432,1,0,0,0,13432,13433,7,29,0,0,13433,2294,1,0,0,0,13434,13435,7,12,0,0,13435,13436,3,2331,1165,0,13436,2296,1,0,0,0,13437,13441,3,2329,1164,0,13438,13441,3,2331,1165,0,13439,13441,3,2333,1166,0,13440,13437,1,0,0,0,13440,13438,1,0,0,0,13440,13439,1,0,0,0,13441,2298,1,0,0,0,13442,13444,3,2337,1168,0,13443,13442,1,0,0,0,13444,13445,1,0,0,0,13445,13443,1,0,0,0,13445,13446,1,0,0,0,13446,2300,1,0,0,0,13447,13448,7,26,0,0,13448,13452,5,39,0,0,13449,13450,3,2335,1167,0,13450,13451,3,2335,1167,0,13451,13453,1,0,0,0,13452,13449,1,0,0,0,13453,13454,1,0,0,0,13454,13452,1,0,0,0,13454,13455,1,0,0,0,13455,13456,1,0,0,0,13456,13457,5,39,0,0,13457,13467,1,0,0,0,13458,13459,5,48,0,0,13459,13460,7,26,0,0,13460,13462,1,0,0,0,13461,13463,3,2335,1167,0,13462,13461,1,0,0,0,13463,13464,1,0,0,0,13464,13462,1,0,0,0,13464,13465,1,0,0,0,13465,13467,1,0,0,0,13466,13447,1,0,0,0,13466,13458,1,0,0,0,13467,2302,1,0,0,0,13468,13470,3,2337,1168,0,13469,13468,1,0,0,0,13470,13473,1,0,0,0,13471,13469,1,0,0,0,13471,13472,1,0,0,0,13472,13474,1,0,0,0,13473,13471,1,0,0,0,13474,13476,5,46,0,0,13475,13477,3,2337,1168,0,13476,13475,1,0,0,0,13477,13478,1,0,0,0,13478,13476,1,0,0,0,13478,13479,1,0,0,0,13479,13510,1,0,0,0,13480,13482,3,2337,1168,0,13481,13480,1,0,0,0,13482,13483,1,0,0,0,13483,13481,1,0,0,0,13483,13484,1,0,0,0,13484,13485,1,0,0,0,13485,13486,5,46,0,0,13486,13487,3,2325,1162,0,13487,13510,1,0,0,0,13488,13490,3,2337,1168,0,13489,13488,1,0,0,0,13490,13493,1,0,0,0,13491,13489,1,0,0,0,13491,13492,1,0,0,0,13492,13494,1,0,0,0,13493,13491,1,0,0,0,13494,13496,5,46,0,0,13495,13497,3,2337,1168,0,13496,13495,1,0,0,0,13497,13498,1,0,0,0,13498,13496,1,0,0,0,13498,13499,1,0,0,0,13499,13500,1,0,0,0,13500,13501,3,2325,1162,0,13501,13510,1,0,0,0,13502,13504,3,2337,1168,0,13503,13502,1,0,0,0,13504,13505,1,0,0,0,13505,13503,1,0,0,0,13505,13506,1,0,0,0,13506,13507,1,0,0,0,13507,13508,3,2325,1162,0,13508,13510,1,0,0,0,13509,13471,1,0,0,0,13509,13481,1,0,0,0,13509,13491,1,0,0,0,13509,13503,1,0,0,0,13510,2304,1,0,0,0,13511,13512,5,92,0,0,13512,13513,7,12,0,0,13513,2306,1,0,0,0,13514,13515,3,2339,1169,0,13515,2308,1,0,0,0,13516,13517,5,95,0,0,13517,13518,3,2323,1161,0,13518,2310,1,0,0,0,13519,13520,5,46,0,0,13520,13521,3,2327,1163,0,13521,2312,1,0,0,0,13522,13523,3,2327,1163,0,13523,2314,1,0,0,0,13524,13525,3,2333,1166,0,13525,2316,1,0,0,0,13526,13527,3,2273,1136,0,13527,13528,3,2341,1170,0,13528,2318,1,0,0,0,13529,13536,3,2273,1136,0,13530,13537,3,2297,1148,0,13531,13533,7,30,0,0,13532,13531,1,0,0,0,13533,13534,1,0,0,0,13534,13532,1,0,0,0,13534,13535,1,0,0,0,13535,13537,1,0,0,0,13536,13530,1,0,0,0,13536,13532,1,0,0,0,13537,2320,1,0,0,0,13538,13539,3,2273,1136,0,13539,13546,3,2273,1136,0,13540,13542,7,30,0,0,13541,13540,1,0,0,0,13542,13543,1,0,0,0,13543,13541,1,0,0,0,13543,13544,1,0,0,0,13544,13547,1,0,0,0,13545,13547,3,2333,1166,0,13546,13541,1,0,0,0,13546,13545,1,0,0,0,13547,2322,1,0,0,0,13548,13590,3,1491,745,0,13549,13590,3,1493,746,0,13550,13590,3,1495,747,0,13551,13590,3,451,225,0,13552,13590,3,1497,748,0,13553,13590,3,1499,749,0,13554,13590,3,1501,750,0,13555,13590,3,1503,751,0,13556,13590,3,1505,752,0,13557,13590,3,1507,753,0,13558,13590,3,1509,754,0,13559,13590,3,1511,755,0,13560,13590,3,1513,756,0,13561,13590,3,1515,757,0,13562,13590,3,1517,758,0,13563,13590,3,1521,760,0,13564,13590,3,1523,761,0,13565,13590,3,1525,762,0,13566,13590,3,1527,763,0,13567,13590,3,1529,764,0,13568,13590,3,1531,765,0,13569,13590,3,1533,766,0,13570,13590,3,1535,767,0,13571,13590,3,1537,768,0,13572,13590,3,1539,769,0,13573,13590,3,1541,770,0,13574,13590,3,1543,771,0,13575,13590,3,1545,772,0,13576,13590,3,1547,773,0,13577,13590,3,1549,774,0,13578,13590,3,1551,775,0,13579,13590,3,1553,776,0,13580,13590,3,1555,777,0,13581,13590,3,1557,778,0,13582,13590,3,1559,779,0,13583,13590,3,1561,780,0,13584,13590,3,1563,781,0,13585,13590,3,1565,782,0,13586,13590,3,1567,783,0,13587,13590,3,1569,784,0,13588,13590,3,1571,785,0,13589,13548,1,0,0,0,13589,13549,1,0,0,0,13589,13550,1,0,0,0,13589,13551,1,0,0,0,13589,13552,1,0,0,0,13589,13553,1,0,0,0,13589,13554,1,0,0,0,13589,13555,1,0,0,0,13589,13556,1,0,0,0,13589,13557,1,0,0,0,13589,13558,1,0,0,0,13589,13559,1,0,0,0,13589,13560,1,0,0,0,13589,13561,1,0,0,0,13589,13562,1,0,0,0,13589,13563,1,0,0,0,13589,13564,1,0,0,0,13589,13565,1,0,0,0,13589,13566,1,0,0,0,13589,13567,1,0,0,0,13589,13568,1,0,0,0,13589,13569,1,0,0,0,13589,13570,1,0,0,0,13589,13571,1,0,0,0,13589,13572,1,0,0,0,13589,13573,1,0,0,0,13589,13574,1,0,0,0,13589,13575,1,0,0,0,13589,13576,1,0,0,0,13589,13577,1,0,0,0,13589,13578,1,0,0,0,13589,13579,1,0,0,0,13589,13580,1,0,0,0,13589,13581,1,0,0,0,13589,13582,1,0,0,0,13589,13583,1,0,0,0,13589,13584,1,0,0,0,13589,13585,1,0,0,0,13589,13586,1,0,0,0,13589,13587,1,0,0,0,13589,13588,1,0,0,0,13590,2324,1,0,0,0,13591,13593,7,7,0,0,13592,13594,7,31,0,0,13593,13592,1,0,0,0,13593,13594,1,0,0,0,13594,13596,1,0,0,0,13595,13597,3,2337,1168,0,13596,13595,1,0,0,0,13597,13598,1,0,0,0,13598,13596,1,0,0,0,13598,13599,1,0,0,0,13599,2326,1,0,0,0,13600,13602,7,32,0,0,13601,13600,1,0,0,0,13602,13605,1,0,0,0,13603,13604,1,0,0,0,13603,13601,1,0,0,0,13604,13607,1,0,0,0,13605,13603,1,0,0,0,13606,13608,7,33,0,0,13607,13606,1,0,0,0,13608,13609,1,0,0,0,13609,13610,1,0,0,0,13609,13607,1,0,0,0,13610,13614,1,0,0,0,13611,13613,7,32,0,0,13612,13611,1,0,0,0,13613,13616,1,0,0,0,13614,13612,1,0,0,0,13614,13615,1,0,0,0,13615,2328,1,0,0,0,13616,13614,1,0,0,0,13617,13625,5,34,0,0,13618,13619,5,92,0,0,13619,13624,9,0,0,0,13620,13621,5,34,0,0,13621,13624,5,34,0,0,13622,13624,8,34,0,0,13623,13618,1,0,0,0,13623,13620,1,0,0,0,13623,13622,1,0,0,0,13624,13627,1,0,0,0,13625,13623,1,0,0,0,13625,13626,1,0,0,0,13626,13628,1,0,0,0,13627,13625,1,0,0,0,13628,13629,5,34,0,0,13629,2330,1,0,0,0,13630,13638,5,39,0,0,13631,13632,5,92,0,0,13632,13637,9,0,0,0,13633,13634,5,39,0,0,13634,13637,5,39,0,0,13635,13637,8,35,0,0,13636,13631,1,0,0,0,13636,13633,1,0,0,0,13636,13635,1,0,0,0,13637,13640,1,0,0,0,13638,13636,1,0,0,0,13638,13639,1,0,0,0,13639,13641,1,0,0,0,13640,13638,1,0,0,0,13641,13642,5,39,0,0,13642,2332,1,0,0,0,13643,13649,5,96,0,0,13644,13648,8,36,0,0,13645,13646,5,96,0,0,13646,13648,5,96,0,0,13647,13644,1,0,0,0,13647,13645,1,0,0,0,13648,13651,1,0,0,0,13649,13647,1,0,0,0,13649,13650,1,0,0,0,13650,13652,1,0,0,0,13651,13649,1,0,0,0,13652,13653,5,96,0,0,13653,2334,1,0,0,0,13654,13655,7,37,0,0,13655,2336,1,0,0,0,13656,13657,7,38,0,0,13657,2338,1,0,0,0,13658,13659,7,16,0,0,13659,13661,5,39,0,0,13660,13662,7,39,0,0,13661,13660,1,0,0,0,13662,13663,1,0,0,0,13663,13661,1,0,0,0,13663,13664,1,0,0,0,13664,13665,1,0,0,0,13665,13666,5,39,0,0,13666,2340,1,0,0,0,13667,13669,7,38,0,0,13668,13667,1,0,0,0,13669,13670,1,0,0,0,13670,13668,1,0,0,0,13670,13671,1,0,0,0,13671,13672,1,0,0,0,13672,13674,5,46,0,0,13673,13675,7,40,0,0,13674,13673,1,0,0,0,13675,13676,1,0,0,0,13676,13674,1,0,0,0,13676,13677,1,0,0,0,13677,13698,1,0,0,0,13678,13680,7,37,0,0,13679,13678,1,0,0,0,13680,13683,1,0,0,0,13681,13679,1,0,0,0,13681,13682,1,0,0,0,13682,13684,1,0,0,0,13683,13681,1,0,0,0,13684,13688,5,58,0,0,13685,13687,7,37,0,0,13686,13685,1,0,0,0,13687,13690,1,0,0,0,13688,13686,1,0,0,0,13688,13689,1,0,0,0,13689,13691,1,0,0,0,13690,13688,1,0,0,0,13691,13693,5,58,0,0,13692,13694,7,41,0,0,13693,13692,1,0,0,0,13694,13695,1,0,0,0,13695,13693,1,0,0,0,13695,13696,1,0,0,0,13696,13698,1,0,0,0,13697,13668,1,0,0,0,13697,13681,1,0,0,0,13698,2342,1,0,0,0,13699,13700,9,0,0,0,13700,13701,1,0,0,0,13701,13702,6,1171,2,0,13702,2344,1,0,0,0,51,0,2348,2359,2372,2386,2390,2395,2399,2403,2409,2413,2415,9261,9288,13421,13430,13440,13445,13454,13464,13466,13471,13478,13483,13491,13498,13505,13509,13534,13536,13543,13546,13589,13593,13598,13603,13609,13614,13623,13625,13636,13638,13647,13649,13663,13670,13676,13681,13688,13695,13697,3,0,1,0,6,0,0,0,3,0]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},$O=class t extends we{static{this.SPACE=1}static{this.SPEC_MYSQL_COMMENT=2}static{this.COMMENT_INPUT=3}static{this.LINE_COMMENT=4}static{this.ADD=5}static{this.ALL=6}static{this.ALTER=7}static{this.ALWAYS=8}static{this.ANALYZE=9}static{this.AND=10}static{this.ARRAY=11}static{this.AS=12}static{this.ASC=13}static{this.ATTRIBUTE=14}static{this.BEFORE=15}static{this.BETWEEN=16}static{this.BOTH=17}static{this.BUCKETS=18}static{this.BY=19}static{this.CALL=20}static{this.CASCADE=21}static{this.CASE=22}static{this.CAST=23}static{this.CHANGE=24}static{this.CHARACTER=25}static{this.CHECK=26}static{this.COLLATE=27}static{this.COLUMN=28}static{this.CONDITION=29}static{this.CONSTRAINT=30}static{this.CONTINUE=31}static{this.CONVERT=32}static{this.CREATE=33}static{this.CROSS=34}static{this.CURRENT=35}static{this.CURRENT_ROLE=36}static{this.CURRENT_USER=37}static{this.CURSOR=38}static{this.DATABASE=39}static{this.DATABASES=40}static{this.DECLARE=41}static{this.DEFAULT=42}static{this.DELAYED=43}static{this.DELETE=44}static{this.DESC=45}static{this.DESCRIBE=46}static{this.DETERMINISTIC=47}static{this.DIAGNOSTICS=48}static{this.DISTINCT=49}static{this.DISTINCTROW=50}static{this.DROP=51}static{this.EACH=52}static{this.ELSE=53}static{this.ELSEIF=54}static{this.EMPTY=55}static{this.ENCLOSED=56}static{this.ENFORCED=57}static{this.ESCAPED=58}static{this.EXCEPT=59}static{this.EXISTS=60}static{this.EXIT=61}static{this.EXPLAIN=62}static{this.FALSE=63}static{this.FETCH=64}static{this.FOR=65}static{this.FORCE=66}static{this.FOREIGN=67}static{this.FROM=68}static{this.FULLTEXT=69}static{this.GENERATED=70}static{this.GET=71}static{this.GRANT=72}static{this.GROUP=73}static{this.HAVING=74}static{this.HIGH_PRIORITY=75}static{this.HISTOGRAM=76}static{this.IF=77}static{this.IGNORE=78}static{this.IGNORED=79}static{this.IN=80}static{this.INDEX=81}static{this.INFILE=82}static{this.INNER=83}static{this.INOUT=84}static{this.INSERT=85}static{this.INTERVAL=86}static{this.INTO=87}static{this.IS=88}static{this.ITERATE=89}static{this.JOIN=90}static{this.KEY=91}static{this.KEYS=92}static{this.KILL=93}static{this.LATERAL=94}static{this.LEADING=95}static{this.LEAVE=96}static{this.LEFT=97}static{this.LIKE=98}static{this.LIMIT=99}static{this.LINEAR=100}static{this.LINES=101}static{this.LOAD=102}static{this.LOCK=103}static{this.LOCKED=104}static{this.LOOP=105}static{this.LOW_PRIORITY=106}static{this.MASTER_BIND=107}static{this.MASTER_SSL_VERIFY_SERVER_CERT=108}static{this.MATCH=109}static{this.MAXVALUE=110}static{this.MINVALUE=111}static{this.MODIFIES=112}static{this.NATURAL=113}static{this.NOT=114}static{this.NO_WRITE_TO_BINLOG=115}static{this.NULL_LITERAL=116}static{this.NUMBER=117}static{this.ON=118}static{this.OPTIMIZE=119}static{this.OPTION=120}static{this.OPTIONAL=121}static{this.OPTIONALLY=122}static{this.OR=123}static{this.ORDER=124}static{this.OUT=125}static{this.OUTER=126}static{this.OUTFILE=127}static{this.OVER=128}static{this.PARTITION=129}static{this.PRIMARY=130}static{this.PROCEDURE=131}static{this.PURGE=132}static{this.RANGE=133}static{this.READ=134}static{this.READS=135}static{this.REFERENCES=136}static{this.REGEXP=137}static{this.RELEASE=138}static{this.RENAME=139}static{this.REPEAT=140}static{this.REPLACE=141}static{this.REQUIRE=142}static{this.RESIGNAL=143}static{this.RESTRICT=144}static{this.RETAIN=145}static{this.RETURN=146}static{this.REVOKE=147}static{this.RIGHT=148}static{this.RLIKE=149}static{this.SCHEMA=150}static{this.SCHEMAS=151}static{this.SELECT=152}static{this.SET=153}static{this.SEPARATOR=154}static{this.SHOW=155}static{this.SIGNAL=156}static{this.SKIP_=157}static{this.SKIP_QUERY_REWRITE=158}static{this.SPATIAL=159}static{this.SQL=160}static{this.SQLEXCEPTION=161}static{this.SQLSTATE=162}static{this.SQLWARNING=163}static{this.SQL_BIG_RESULT=164}static{this.SQL_CALC_FOUND_ROWS=165}static{this.SQL_SMALL_RESULT=166}static{this.SSL=167}static{this.STACKED=168}static{this.STARTING=169}static{this.STATEMENT=170}static{this.STRAIGHT_JOIN=171}static{this.TABLE=172}static{this.TERMINATED=173}static{this.THEN=174}static{this.TO=175}static{this.TRAILING=176}static{this.TRIGGER=177}static{this.TRUE=178}static{this.UNDO=179}static{this.UNION=180}static{this.UNIQUE=181}static{this.UNLOCK=182}static{this.UNSIGNED=183}static{this.UPDATE=184}static{this.USAGE=185}static{this.USE=186}static{this.USING=187}static{this.VALUES=188}static{this.WHEN=189}static{this.WHERE=190}static{this.WHILE=191}static{this.WITH=192}static{this.WRITE=193}static{this.XOR=194}static{this.ZEROFILL=195}static{this.TINYINT=196}static{this.SMALLINT=197}static{this.MEDIUMINT=198}static{this.MIDDLEINT=199}static{this.INT=200}static{this.INT1=201}static{this.INT2=202}static{this.INT3=203}static{this.INT4=204}static{this.INT8=205}static{this.INTEGER=206}static{this.BIGINT=207}static{this.REAL=208}static{this.DOUBLE=209}static{this.PRECISION=210}static{this.FLOAT=211}static{this.FLOAT4=212}static{this.FLOAT8=213}static{this.DECIMAL=214}static{this.DEC=215}static{this.NUMERIC=216}static{this.DATE=217}static{this.TIME=218}static{this.TIMESTAMP=219}static{this.DATETIME=220}static{this.YEAR=221}static{this.CHAR=222}static{this.VARCHAR=223}static{this.NVARCHAR=224}static{this.NATIONAL=225}static{this.BINARY=226}static{this.VARBINARY=227}static{this.TINYBLOB=228}static{this.BLOB=229}static{this.MEDIUMBLOB=230}static{this.LONG=231}static{this.LONGBLOB=232}static{this.TINYTEXT=233}static{this.TEXT=234}static{this.MEDIUMTEXT=235}static{this.LONGTEXT=236}static{this.ENUM=237}static{this.VARYING=238}static{this.SERIAL=239}static{this.YEAR_MONTH=240}static{this.DAY_HOUR=241}static{this.DAY_MINUTE=242}static{this.DAY_SECOND=243}static{this.HOUR_MINUTE=244}static{this.HOUR_SECOND=245}static{this.MINUTE_SECOND=246}static{this.SECOND_MICROSECOND=247}static{this.MINUTE_MICROSECOND=248}static{this.HOUR_MICROSECOND=249}static{this.DAY_MICROSECOND=250}static{this.JSON_ARRAY=251}static{this.JSON_ARRAYAGG=252}static{this.JSON_ARRAY_APPEND=253}static{this.JSON_ARRAY_INSERT=254}static{this.JSON_CONTAINS=255}static{this.JSON_CONTAINS_PATH=256}static{this.JSON_DEPTH=257}static{this.JSON_EXTRACT=258}static{this.JSON_INSERT=259}static{this.JSON_KEYS=260}static{this.JSON_LENGTH=261}static{this.JSON_MERGE=262}static{this.JSON_MERGE_PATCH=263}static{this.JSON_MERGE_PRESERVE=264}static{this.JSON_OBJECT=265}static{this.JSON_OBJECTAGG=266}static{this.JSON_OVERLAPS=267}static{this.JSON_PRETTY=268}static{this.JSON_QUOTE=269}static{this.JSON_REMOVE=270}static{this.JSON_REPLACE=271}static{this.JSON_SCHEMA_VALID=272}static{this.JSON_SCHEMA_VALIDATION_REPORT=273}static{this.JSON_SEARCH=274}static{this.JSON_SET=275}static{this.JSON_STORAGE_FREE=276}static{this.JSON_STORAGE_SIZE=277}static{this.JSON_TABLE=278}static{this.JSON_TYPE=279}static{this.JSON_UNQUOTE=280}static{this.JSON_VALID=281}static{this.JSON_VALUE=282}static{this.NESTED=283}static{this.ORDINALITY=284}static{this.PATH=285}static{this.AVG=286}static{this.BIT_AND=287}static{this.BIT_OR=288}static{this.BIT_XOR=289}static{this.COUNT=290}static{this.CUME_DIST=291}static{this.DENSE_RANK=292}static{this.FIRST_VALUE=293}static{this.GROUP_CONCAT=294}static{this.LAG=295}static{this.LAST_VALUE=296}static{this.LEAD=297}static{this.MAX=298}static{this.MIN=299}static{this.NTILE=300}static{this.NTH_VALUE=301}static{this.PERCENT_RANK=302}static{this.RANK=303}static{this.ROW_NUMBER=304}static{this.STD=305}static{this.STDDEV=306}static{this.STDDEV_POP=307}static{this.STDDEV_SAMP=308}static{this.SUM=309}static{this.VAR_POP=310}static{this.VAR_SAMP=311}static{this.VARIANCE=312}static{this.CURRENT_DATE=313}static{this.CURRENT_TIME=314}static{this.CURRENT_TIMESTAMP=315}static{this.LOCALTIME=316}static{this.CURDATE=317}static{this.CURTIME=318}static{this.DATE_ADD=319}static{this.DATE_SUB=320}static{this.EXTRACT=321}static{this.LOCALTIMESTAMP=322}static{this.NOW=323}static{this.POSITION=324}static{this.SUBSTR=325}static{this.SUBSTRING=326}static{this.SYSDATE=327}static{this.TRIM=328}static{this.UTC_DATE=329}static{this.UTC_TIME=330}static{this.UTC_TIMESTAMP=331}static{this.ACCOUNT=332}static{this.ACTION=333}static{this.AFTER=334}static{this.AGGREGATE=335}static{this.ALGORITHM=336}static{this.ANY=337}static{this.AT=338}static{this.AUTHORS=339}static{this.AUTOCOMMIT=340}static{this.AUTOEXTEND_SIZE=341}static{this.AUTO_INCREMENT=342}static{this.AVG_ROW_LENGTH=343}static{this.BEGIN=344}static{this.BINLOG=345}static{this.BIT=346}static{this.BLOCK=347}static{this.BOOL=348}static{this.BOOLEAN=349}static{this.BTREE=350}static{this.CACHE=351}static{this.CASCADED=352}static{this.CHAIN=353}static{this.CHANGED=354}static{this.CHANNEL=355}static{this.CHECKSUM=356}static{this.PAGE_CHECKSUM=357}static{this.CIPHER=358}static{this.CLASS_ORIGIN=359}static{this.CLIENT=360}static{this.CLOSE=361}static{this.CLUSTERING=362}static{this.COALESCE=363}static{this.CODE=364}static{this.COLUMNS=365}static{this.COLUMN_FORMAT=366}static{this.COLUMN_NAME=367}static{this.COMMENT=368}static{this.COMMIT=369}static{this.COMPACT=370}static{this.COMPLETION=371}static{this.COMPRESSED=372}static{this.COMPRESSION=373}static{this.CONCURRENT=374}static{this.CONNECT=375}static{this.CONNECTION=376}static{this.CONSISTENT=377}static{this.CONSTRAINT_CATALOG=378}static{this.CONSTRAINT_SCHEMA=379}static{this.CONSTRAINT_NAME=380}static{this.CONTAINS=381}static{this.CONTEXT=382}static{this.CONTRIBUTORS=383}static{this.COPY=384}static{this.CPU=385}static{this.CYCLE=386}static{this.CURSOR_NAME=387}static{this.DATA=388}static{this.DATAFILE=389}static{this.DEALLOCATE=390}static{this.DEFAULT_AUTH=391}static{this.DEFINER=392}static{this.DELAY_KEY_WRITE=393}static{this.DES_KEY_FILE=394}static{this.DIRECTORY=395}static{this.DISABLE=396}static{this.DISCARD=397}static{this.DISK=398}static{this.DO=399}static{this.DUMPFILE=400}static{this.DUPLICATE=401}static{this.DYNAMIC=402}static{this.ENABLE=403}static{this.ENCRYPTED=404}static{this.ENCRYPTION=405}static{this.ENCRYPTION_KEY_ID=406}static{this.END=407}static{this.ENDS=408}static{this.ENGINE=409}static{this.ENGINES=410}static{this.ERROR=411}static{this.ERRORS=412}static{this.ESCAPE=413}static{this.EVEN=414}static{this.EVENT=415}static{this.EVENTS=416}static{this.EVERY=417}static{this.EXCHANGE=418}static{this.EXCLUSIVE=419}static{this.EXPIRE=420}static{this.EXPORT=421}static{this.EXTENDED=422}static{this.EXTENT_SIZE=423}static{this.FAILED_LOGIN_ATTEMPTS=424}static{this.FAST=425}static{this.FAULTS=426}static{this.FIELDS=427}static{this.FILE_BLOCK_SIZE=428}static{this.FILTER=429}static{this.FIRST=430}static{this.FIXED=431}static{this.FLUSH=432}static{this.FOLLOWING=433}static{this.FOLLOWS=434}static{this.FOUND=435}static{this.FULL=436}static{this.FUNCTION=437}static{this.GENERAL=438}static{this.GLOBAL=439}static{this.GRANTS=440}static{this.GROUP_REPLICATION=441}static{this.HANDLER=442}static{this.HASH=443}static{this.HELP=444}static{this.HISTORY=445}static{this.HOST=446}static{this.HOSTS=447}static{this.IDENTIFIED=448}static{this.IGNORE_SERVER_IDS=449}static{this.IMPORT=450}static{this.INCREMENT=451}static{this.INDEXES=452}static{this.INITIAL_SIZE=453}static{this.INPLACE=454}static{this.INSERT_METHOD=455}static{this.INSTALL=456}static{this.INSTANCE=457}static{this.INSTANT=458}static{this.INVISIBLE=459}static{this.INVOKER=460}static{this.IO=461}static{this.IO_THREAD=462}static{this.IPC=463}static{this.ISOLATION=464}static{this.ISSUER=465}static{this.JSON=466}static{this.KEY_BLOCK_SIZE=467}static{this.LANGUAGE=468}static{this.LAST=469}static{this.LEAVES=470}static{this.LESS=471}static{this.LEVEL=472}static{this.LIST=473}static{this.LOCAL=474}static{this.LOGFILE=475}static{this.LOGS=476}static{this.MASTER=477}static{this.MASTER_AUTO_POSITION=478}static{this.MASTER_CONNECT_RETRY=479}static{this.MASTER_DELAY=480}static{this.MASTER_HEARTBEAT_PERIOD=481}static{this.MASTER_HOST=482}static{this.MASTER_LOG_FILE=483}static{this.MASTER_LOG_POS=484}static{this.MASTER_PASSWORD=485}static{this.MASTER_PORT=486}static{this.MASTER_RETRY_COUNT=487}static{this.MASTER_SSL=488}static{this.MASTER_SSL_CA=489}static{this.MASTER_SSL_CAPATH=490}static{this.MASTER_SSL_CERT=491}static{this.MASTER_SSL_CIPHER=492}static{this.MASTER_SSL_CRL=493}static{this.MASTER_SSL_CRLPATH=494}static{this.MASTER_SSL_KEY=495}static{this.MASTER_TLS_VERSION=496}static{this.MASTER_USER=497}static{this.MAX_CONNECTIONS_PER_HOUR=498}static{this.MAX_QUERIES_PER_HOUR=499}static{this.MAX_ROWS=500}static{this.MAX_SIZE=501}static{this.MAX_UPDATES_PER_HOUR=502}static{this.MAX_USER_CONNECTIONS=503}static{this.MEDIUM=504}static{this.MEMBER=505}static{this.MERGE=506}static{this.MESSAGE_TEXT=507}static{this.MID=508}static{this.MIGRATE=509}static{this.MIN_ROWS=510}static{this.MODE=511}static{this.MODIFY=512}static{this.MUTEX=513}static{this.MYSQL=514}static{this.MYSQL_ERRNO=515}static{this.NAME=516}static{this.NAMES=517}static{this.NCHAR=518}static{this.NEVER=519}static{this.NEXT=520}static{this.NO=521}static{this.NOCACHE=522}static{this.NOCOPY=523}static{this.NOCYCLE=524}static{this.NOMAXVALUE=525}static{this.NOMINVALUE=526}static{this.NOWAIT=527}static{this.NODEGROUP=528}static{this.NONE=529}static{this.ODBC=530}static{this.OFFLINE=531}static{this.OFFSET=532}static{this.OF=533}static{this.OJ=534}static{this.OLD_PASSWORD=535}static{this.ONE=536}static{this.ONLINE=537}static{this.ONLY=538}static{this.OPEN=539}static{this.OPTIMIZER_COSTS=540}static{this.OPTIONS=541}static{this.OWNER=542}static{this.PACK_KEYS=543}static{this.PAGE=544}static{this.PAGE_COMPRESSED=545}static{this.PAGE_COMPRESSION_LEVEL=546}static{this.PARSER=547}static{this.PARTIAL=548}static{this.PARTITIONING=549}static{this.PARTITIONS=550}static{this.PASSWORD=551}static{this.PASSWORD_LOCK_TIME=552}static{this.PHASE=553}static{this.PLUGIN=554}static{this.PLUGIN_DIR=555}static{this.PLUGINS=556}static{this.PORT=557}static{this.PRECEDES=558}static{this.PRECEDING=559}static{this.PREPARE=560}static{this.PRESERVE=561}static{this.PREV=562}static{this.PROCESSLIST=563}static{this.PROFILE=564}static{this.PROFILES=565}static{this.PROXY=566}static{this.QUERY=567}static{this.QUICK=568}static{this.REBUILD=569}static{this.RECOVER=570}static{this.RECURSIVE=571}static{this.REDO_BUFFER_SIZE=572}static{this.REDUNDANT=573}static{this.RELAY=574}static{this.RELAY_LOG_FILE=575}static{this.RELAY_LOG_POS=576}static{this.RELAYLOG=577}static{this.REMOVE=578}static{this.REORGANIZE=579}static{this.REPAIR=580}static{this.REPLICATE_DO_DB=581}static{this.REPLICATE_DO_TABLE=582}static{this.REPLICATE_IGNORE_DB=583}static{this.REPLICATE_IGNORE_TABLE=584}static{this.REPLICATE_REWRITE_DB=585}static{this.REPLICATE_WILD_DO_TABLE=586}static{this.REPLICATE_WILD_IGNORE_TABLE=587}static{this.REPLICATION=588}static{this.RESET=589}static{this.RESTART=590}static{this.RESUME=591}static{this.RETURNED_SQLSTATE=592}static{this.RETURNING=593}static{this.RETURNS=594}static{this.REUSE=595}static{this.ROLE=596}static{this.ROLLBACK=597}static{this.ROLLUP=598}static{this.ROTATE=599}static{this.ROW=600}static{this.ROWS=601}static{this.ROW_FORMAT=602}static{this.RTREE=603}static{this.SAVEPOINT=604}static{this.SCHEDULE=605}static{this.SECURITY=606}static{this.SEQUENCE=607}static{this.SERVER=608}static{this.SESSION=609}static{this.SHARE=610}static{this.SHARED=611}static{this.SIGNED=612}static{this.SIMPLE=613}static{this.SLAVE=614}static{this.SLOW=615}static{this.SNAPSHOT=616}static{this.SOCKET=617}static{this.SOME=618}static{this.SONAME=619}static{this.SOUNDS=620}static{this.SOURCE=621}static{this.SQL_AFTER_GTIDS=622}static{this.SQL_AFTER_MTS_GAPS=623}static{this.SQL_BEFORE_GTIDS=624}static{this.SQL_BUFFER_RESULT=625}static{this.SQL_CACHE=626}static{this.SQL_NO_CACHE=627}static{this.SQL_THREAD=628}static{this.START=629}static{this.STARTS=630}static{this.STATS_AUTO_RECALC=631}static{this.STATS_PERSISTENT=632}static{this.STATS_SAMPLE_PAGES=633}static{this.STATUS=634}static{this.STOP=635}static{this.STORAGE=636}static{this.STORED=637}static{this.STRING=638}static{this.SUBCLASS_ORIGIN=639}static{this.SUBJECT=640}static{this.SUBPARTITION=641}static{this.SUBPARTITIONS=642}static{this.SUSPEND=643}static{this.SWAPS=644}static{this.SWITCHES=645}static{this.TABLE_NAME=646}static{this.TABLESPACE=647}static{this.TABLE_TYPE=648}static{this.TEMPORARY=649}static{this.TEMPTABLE=650}static{this.THAN=651}static{this.TRADITIONAL=652}static{this.TRANSACTION=653}static{this.TRANSACTIONAL=654}static{this.TRIGGERS=655}static{this.TRUNCATE=656}static{this.UNBOUNDED=657}static{this.UNDEFINED=658}static{this.UNDOFILE=659}static{this.UNDO_BUFFER_SIZE=660}static{this.UNINSTALL=661}static{this.UNKNOWN=662}static{this.UNTIL=663}static{this.UPGRADE=664}static{this.USER=665}static{this.USE_FRM=666}static{this.USER_RESOURCES=667}static{this.VALIDATION=668}static{this.VALUE=669}static{this.VARIABLES=670}static{this.VIEW=671}static{this.VIRTUAL=672}static{this.VISIBLE=673}static{this.WAIT=674}static{this.WARNINGS=675}static{this.WINDOW=676}static{this.WITHOUT=677}static{this.WORK=678}static{this.WRAPPER=679}static{this.X509=680}static{this.XA=681}static{this.XML=682}static{this.YES=683}static{this.EUR=684}static{this.USA=685}static{this.JIS=686}static{this.ISO=687}static{this.INTERNAL=688}static{this.QUARTER=689}static{this.MONTH=690}static{this.DAY=691}static{this.HOUR=692}static{this.MINUTE=693}static{this.WEEK=694}static{this.SECOND=695}static{this.MICROSECOND=696}static{this.ADMIN=697}static{this.APPLICATION_PASSWORD_ADMIN=698}static{this.AUDIT_ABORT_EXEMPT=699}static{this.AUDIT_ADMIN=700}static{this.AUTHENTICATION_POLICY_ADMIN=701}static{this.BACKUP_ADMIN=702}static{this.BINLOG_ADMIN=703}static{this.BINLOG_ENCRYPTION_ADMIN=704}static{this.CLONE_ADMIN=705}static{this.CONNECTION_ADMIN=706}static{this.ENCRYPTION_KEY_ADMIN=707}static{this.EXECUTE=708}static{this.FILE=709}static{this.FIREWALL_ADMIN=710}static{this.FIREWALL_EXEMPT=711}static{this.FIREWALL_USER=712}static{this.FLUSH_OPTIMIZER_COSTS=713}static{this.FLUSH_STATUS=714}static{this.FLUSH_TABLES=715}static{this.FLUSH_USER_RESOURCES=716}static{this.GROUP_REPLICATION_ADMIN=717}static{this.INNODB_REDO_LOG_ARCHIVE=718}static{this.INNODB_REDO_LOG_ENABLE=719}static{this.INVOKE=720}static{this.LAMBDA=721}static{this.NDB_STORED_USER=722}static{this.PASSWORDLESS_USER_ADMIN=723}static{this.PERSIST_RO_VARIABLES_ADMIN=724}static{this.PRIVILEGES=725}static{this.PROCESS=726}static{this.RELOAD=727}static{this.REPLICATION_APPLIER=728}static{this.REPLICATION_SLAVE_ADMIN=729}static{this.RESOURCE_GROUP_ADMIN=730}static{this.RESOURCE_GROUP_USER=731}static{this.ROLE_ADMIN=732}static{this.ROUTINE=733}static{this.S3=734}static{this.SERVICE_CONNECTION_ADMIN=735}static{this.SESSION_VARIABLES_ADMIN=736}static{this.SET_USER_ID=737}static{this.SHOW_ROUTINE=738}static{this.SHUTDOWN=739}static{this.SUPER=740}static{this.SYSTEM_VARIABLES_ADMIN=741}static{this.TABLES=742}static{this.TABLE_ENCRYPTION_ADMIN=743}static{this.VERSION_TOKEN_ADMIN=744}static{this.XA_RECOVER_ADMIN=745}static{this.ARMSCII8=746}static{this.ASCII=747}static{this.BIG5=748}static{this.CP1250=749}static{this.CP1251=750}static{this.CP1256=751}static{this.CP1257=752}static{this.CP850=753}static{this.CP852=754}static{this.CP866=755}static{this.CP932=756}static{this.DEC8=757}static{this.EUCJPMS=758}static{this.EUCKR=759}static{this.GB18030=760}static{this.GB2312=761}static{this.GBK=762}static{this.GEOSTD8=763}static{this.GREEK=764}static{this.HEBREW=765}static{this.HP8=766}static{this.KEYBCS2=767}static{this.KOI8R=768}static{this.KOI8U=769}static{this.LATIN1=770}static{this.LATIN2=771}static{this.LATIN5=772}static{this.LATIN7=773}static{this.MACCE=774}static{this.MACROMAN=775}static{this.SJIS=776}static{this.SWE7=777}static{this.TIS620=778}static{this.UCS2=779}static{this.UJIS=780}static{this.UTF16=781}static{this.UTF16LE=782}static{this.UTF32=783}static{this.UTF8=784}static{this.UTF8MB3=785}static{this.UTF8MB4=786}static{this.ARCHIVE=787}static{this.BLACKHOLE=788}static{this.CSV=789}static{this.FEDERATED=790}static{this.INNODB=791}static{this.MEMORY=792}static{this.MRG_MYISAM=793}static{this.MYISAM=794}static{this.NDB=795}static{this.NDBCLUSTER=796}static{this.PERFORMANCE_SCHEMA=797}static{this.TOKUDB=798}static{this.REPEATABLE=799}static{this.COMMITTED=800}static{this.UNCOMMITTED=801}static{this.SERIALIZABLE=802}static{this.GEOMETRYCOLLECTION=803}static{this.GEOMCOLLECTION=804}static{this.GEOMETRY=805}static{this.LINESTRING=806}static{this.MULTILINESTRING=807}static{this.MULTIPOINT=808}static{this.MULTIPOLYGON=809}static{this.POINT=810}static{this.POLYGON=811}static{this.ABS=812}static{this.ACOS=813}static{this.ADDDATE=814}static{this.ADDTIME=815}static{this.AES_DECRYPT=816}static{this.AES_ENCRYPT=817}static{this.AREA=818}static{this.ASBINARY=819}static{this.ASIN=820}static{this.ASTEXT=821}static{this.ASWKB=822}static{this.ASWKT=823}static{this.ASYMMETRIC_DECRYPT=824}static{this.ASYMMETRIC_DERIVE=825}static{this.ASYMMETRIC_ENCRYPT=826}static{this.ASYMMETRIC_SIGN=827}static{this.ASYMMETRIC_VERIFY=828}static{this.ATAN=829}static{this.ATAN2=830}static{this.BENCHMARK=831}static{this.BIN=832}static{this.BIT_COUNT=833}static{this.BIT_LENGTH=834}static{this.BUFFER=835}static{this.CATALOG_NAME=836}static{this.CEIL=837}static{this.CEILING=838}static{this.CENTROID=839}static{this.CHARACTER_LENGTH=840}static{this.CHARSET=841}static{this.CHAR_LENGTH=842}static{this.COERCIBILITY=843}static{this.COLLATION=844}static{this.COMPRESS=845}static{this.CONCAT=846}static{this.CONCAT_WS=847}static{this.CONNECTION_ID=848}static{this.CONV=849}static{this.CONVERT_TZ=850}static{this.COS=851}static{this.COT=852}static{this.CRC32=853}static{this.CREATE_ASYMMETRIC_PRIV_KEY=854}static{this.CREATE_ASYMMETRIC_PUB_KEY=855}static{this.CREATE_DH_PARAMETERS=856}static{this.CREATE_DIGEST=857}static{this.CROSSES=858}static{this.DATEDIFF=859}static{this.DATE_FORMAT=860}static{this.DAYNAME=861}static{this.DAYOFMONTH=862}static{this.DAYOFWEEK=863}static{this.DAYOFYEAR=864}static{this.DECODE=865}static{this.DEGREES=866}static{this.DES_DECRYPT=867}static{this.DES_ENCRYPT=868}static{this.DIMENSION=869}static{this.DISJOINT=870}static{this.ELT=871}static{this.ENCODE=872}static{this.ENCRYPT=873}static{this.ENDPOINT=874}static{this.ENGINE_ATTRIBUTE=875}static{this.ENVELOPE=876}static{this.EQUALS=877}static{this.EXP=878}static{this.EXPORT_SET=879}static{this.EXTERIORRING=880}static{this.EXTRACTVALUE=881}static{this.FIELD=882}static{this.FIND_IN_SET=883}static{this.FLOOR=884}static{this.FORMAT=885}static{this.FOUND_ROWS=886}static{this.FROM_BASE64=887}static{this.FROM_DAYS=888}static{this.FROM_UNIXTIME=889}static{this.GEOMCOLLFROMTEXT=890}static{this.GEOMCOLLFROMWKB=891}static{this.GEOMETRYCOLLECTIONFROMTEXT=892}static{this.GEOMETRYCOLLECTIONFROMWKB=893}static{this.GEOMETRYFROMTEXT=894}static{this.GEOMETRYFROMWKB=895}static{this.GEOMETRYN=896}static{this.GEOMETRYTYPE=897}static{this.GEOMFROMTEXT=898}static{this.GEOMFROMWKB=899}static{this.GET_FORMAT=900}static{this.GET_LOCK=901}static{this.GLENGTH=902}static{this.GREATEST=903}static{this.GTID_SUBSET=904}static{this.GTID_SUBTRACT=905}static{this.HEX=906}static{this.IFNULL=907}static{this.INET6_ATON=908}static{this.INET6_NTOA=909}static{this.INET_ATON=910}static{this.INET_NTOA=911}static{this.INSTR=912}static{this.INTERIORRINGN=913}static{this.INTERSECTS=914}static{this.ISCLOSED=915}static{this.ISEMPTY=916}static{this.ISNULL=917}static{this.ISSIMPLE=918}static{this.IS_FREE_LOCK=919}static{this.IS_IPV4=920}static{this.IS_IPV4_COMPAT=921}static{this.IS_IPV4_MAPPED=922}static{this.IS_IPV6=923}static{this.IS_USED_LOCK=924}static{this.LAST_INSERT_ID=925}static{this.LCASE=926}static{this.LEAST=927}static{this.LENGTH=928}static{this.LINEFROMTEXT=929}static{this.LINEFROMWKB=930}static{this.LINESTRINGFROMTEXT=931}static{this.LINESTRINGFROMWKB=932}static{this.LN=933}static{this.LOAD_FILE=934}static{this.LOCATE=935}static{this.LOG=936}static{this.LOG10=937}static{this.LOG2=938}static{this.LOWER=939}static{this.LPAD=940}static{this.LTRIM=941}static{this.MAKEDATE=942}static{this.MAKETIME=943}static{this.MAKE_SET=944}static{this.MASTER_POS_WAIT=945}static{this.MBRCONTAINS=946}static{this.MBRDISJOINT=947}static{this.MBREQUAL=948}static{this.MBRINTERSECTS=949}static{this.MBROVERLAPS=950}static{this.MBRTOUCHES=951}static{this.MBRWITHIN=952}static{this.MD5=953}static{this.MLINEFROMTEXT=954}static{this.MLINEFROMWKB=955}static{this.MONTHNAME=956}static{this.MPOINTFROMTEXT=957}static{this.MPOINTFROMWKB=958}static{this.MPOLYFROMTEXT=959}static{this.MPOLYFROMWKB=960}static{this.MULTILINESTRINGFROMTEXT=961}static{this.MULTILINESTRINGFROMWKB=962}static{this.MULTIPOINTFROMTEXT=963}static{this.MULTIPOINTFROMWKB=964}static{this.MULTIPOLYGONFROMTEXT=965}static{this.MULTIPOLYGONFROMWKB=966}static{this.NAME_CONST=967}static{this.NULLIF=968}static{this.NUMGEOMETRIES=969}static{this.NUMINTERIORRINGS=970}static{this.NUMPOINTS=971}static{this.OCT=972}static{this.OCTET_LENGTH=973}static{this.ORD=974}static{this.OVERLAPS=975}static{this.PERIOD_ADD=976}static{this.PERIOD_DIFF=977}static{this.PI=978}static{this.POINTFROMTEXT=979}static{this.POINTFROMWKB=980}static{this.POINTN=981}static{this.POLYFROMTEXT=982}static{this.POLYFROMWKB=983}static{this.POLYGONFROMTEXT=984}static{this.POLYGONFROMWKB=985}static{this.POW=986}static{this.POWER=987}static{this.QUOTE=988}static{this.RADIANS=989}static{this.RAND=990}static{this.RANDOM=991}static{this.RANDOM_BYTES=992}static{this.RELEASE_LOCK=993}static{this.REVERSE=994}static{this.ROUND=995}static{this.ROW_COUNT=996}static{this.RPAD=997}static{this.RTRIM=998}static{this.SEC_TO_TIME=999}static{this.SECONDARY_ENGINE_ATTRIBUTE=1e3}static{this.SESSION_USER=1001}static{this.SHA=1002}static{this.SHA1=1003}static{this.SHA2=1004}static{this.SCHEMA_NAME=1005}static{this.SIGN=1006}static{this.SIN=1007}static{this.SLEEP=1008}static{this.SOUNDEX=1009}static{this.SQL_THREAD_WAIT_AFTER_GTIDS=1010}static{this.SQRT=1011}static{this.SRID=1012}static{this.STARTPOINT=1013}static{this.STRCMP=1014}static{this.STR_TO_DATE=1015}static{this.ST_AREA=1016}static{this.ST_ASBINARY=1017}static{this.ST_ASTEXT=1018}static{this.ST_ASWKB=1019}static{this.ST_ASWKT=1020}static{this.ST_BUFFER=1021}static{this.ST_CENTROID=1022}static{this.ST_CONTAINS=1023}static{this.ST_CROSSES=1024}static{this.ST_DIFFERENCE=1025}static{this.ST_DIMENSION=1026}static{this.ST_DISJOINT=1027}static{this.ST_DISTANCE=1028}static{this.ST_ENDPOINT=1029}static{this.ST_ENVELOPE=1030}static{this.ST_EQUALS=1031}static{this.ST_EXTERIORRING=1032}static{this.ST_GEOMCOLLFROMTEXT=1033}static{this.ST_GEOMCOLLFROMTXT=1034}static{this.ST_GEOMCOLLFROMWKB=1035}static{this.ST_GEOMETRYCOLLECTIONFROMTEXT=1036}static{this.ST_GEOMETRYCOLLECTIONFROMWKB=1037}static{this.ST_GEOMETRYFROMTEXT=1038}static{this.ST_GEOMETRYFROMWKB=1039}static{this.ST_GEOMETRYN=1040}static{this.ST_GEOMETRYTYPE=1041}static{this.ST_GEOMFROMTEXT=1042}static{this.ST_GEOMFROMWKB=1043}static{this.ST_INTERIORRINGN=1044}static{this.ST_INTERSECTION=1045}static{this.ST_INTERSECTS=1046}static{this.ST_ISCLOSED=1047}static{this.ST_ISEMPTY=1048}static{this.ST_ISSIMPLE=1049}static{this.ST_LINEFROMTEXT=1050}static{this.ST_LINEFROMWKB=1051}static{this.ST_LINESTRINGFROMTEXT=1052}static{this.ST_LINESTRINGFROMWKB=1053}static{this.ST_NUMGEOMETRIES=1054}static{this.ST_NUMINTERIORRING=1055}static{this.ST_NUMINTERIORRINGS=1056}static{this.ST_NUMPOINTS=1057}static{this.ST_OVERLAPS=1058}static{this.ST_POINTFROMTEXT=1059}static{this.ST_POINTFROMWKB=1060}static{this.ST_POINTN=1061}static{this.ST_POLYFROMTEXT=1062}static{this.ST_POLYFROMWKB=1063}static{this.ST_POLYGONFROMTEXT=1064}static{this.ST_POLYGONFROMWKB=1065}static{this.ST_SRID=1066}static{this.ST_STARTPOINT=1067}static{this.ST_SYMDIFFERENCE=1068}static{this.ST_TOUCHES=1069}static{this.ST_UNION=1070}static{this.ST_WITHIN=1071}static{this.ST_X=1072}static{this.ST_Y=1073}static{this.SUBDATE=1074}static{this.SUBSTRING_INDEX=1075}static{this.SUBTIME=1076}static{this.SYSTEM_USER=1077}static{this.TAN=1078}static{this.TIMEDIFF=1079}static{this.TIMESTAMPADD=1080}static{this.TIMESTAMPDIFF=1081}static{this.TIME_FORMAT=1082}static{this.TIME_TO_SEC=1083}static{this.TOUCHES=1084}static{this.TO_BASE64=1085}static{this.TO_DAYS=1086}static{this.TO_SECONDS=1087}static{this.TP_CONNECTION_ADMIN=1088}static{this.UCASE=1089}static{this.UNCOMPRESS=1090}static{this.UNCOMPRESSED_LENGTH=1091}static{this.UNHEX=1092}static{this.UNIX_TIMESTAMP=1093}static{this.UPDATEXML=1094}static{this.UPPER=1095}static{this.UUID=1096}static{this.UUID_SHORT=1097}static{this.VALIDATE_PASSWORD_STRENGTH=1098}static{this.VERSION=1099}static{this.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS=1100}static{this.WEEKDAY=1101}static{this.WEEKOFYEAR=1102}static{this.WEIGHT_STRING=1103}static{this.WITHIN=1104}static{this.YEARWEEK=1105}static{this.Y_FUNCTION=1106}static{this.X_FUNCTION=1107}static{this.VAR_ASSIGN=1108}static{this.PLUS_ASSIGN=1109}static{this.MINUS_ASSIGN=1110}static{this.MULT_ASSIGN=1111}static{this.DIV_ASSIGN=1112}static{this.MOD_ASSIGN=1113}static{this.AND_ASSIGN=1114}static{this.XOR_ASSIGN=1115}static{this.OR_ASSIGN=1116}static{this.STAR=1117}static{this.DIVIDE=1118}static{this.MODULE=1119}static{this.PLUS=1120}static{this.MINUS=1121}static{this.DIV=1122}static{this.MOD=1123}static{this.EQUAL_SYMBOL=1124}static{this.GREATER_SYMBOL=1125}static{this.LESS_SYMBOL=1126}static{this.EXCLAMATION_SYMBOL=1127}static{this.BIT_NOT_OP=1128}static{this.BIT_OR_OP=1129}static{this.BIT_AND_OP=1130}static{this.BIT_XOR_OP=1131}static{this.DOT=1132}static{this.LR_BRACKET=1133}static{this.RR_BRACKET=1134}static{this.COMMA=1135}static{this.SEMI=1136}static{this.AT_SIGN=1137}static{this.ZERO_DECIMAL=1138}static{this.ONE_DECIMAL=1139}static{this.TWO_DECIMAL=1140}static{this.SINGLE_QUOTE_SYMB=1141}static{this.DOUBLE_QUOTE_SYMB=1142}static{this.REVERSE_QUOTE_SYMB=1143}static{this.COLON_SYMB=1144}static{this.CHARSET_REVERSE_QOUTE_STRING=1145}static{this.FILESIZE_LITERAL=1146}static{this.START_NATIONAL_STRING_LITERAL=1147}static{this.STRING_LITERAL=1148}static{this.DECIMAL_LITERAL=1149}static{this.HEXADECIMAL_LITERAL=1150}static{this.REAL_LITERAL=1151}static{this.NULL_SPEC_LITERAL=1152}static{this.BIT_STRING=1153}static{this.STRING_CHARSET_NAME=1154}static{this.DOT_ID=1155}static{this.ID=1156}static{this.REVERSE_QUOTE_ID=1157}static{this.HOST_IP_ADDRESS=1158}static{this.LOCAL_ID=1159}static{this.GLOBAL_ID=1160}static{this.ERROR_RECONGNIGION=1161}static{this.RULE_root=0}static{this.RULE_statements=1}static{this.RULE_statement=2}static{this.RULE_ddlStatement=3}static{this.RULE_dmlStatement=4}static{this.RULE_transactionStatement=5}static{this.RULE_replicationStatement=6}static{this.RULE_preparedStatement=7}static{this.RULE_compoundStatement=8}static{this.RULE_administrationStatement=9}static{this.RULE_utilityStatement=10}static{this.RULE_createDatabase=11}static{this.RULE_createEvent=12}static{this.RULE_createIndex=13}static{this.RULE_createLogfileGroup=14}static{this.RULE_createProcedure=15}static{this.RULE_createFunction=16}static{this.RULE_createRole=17}static{this.RULE_createServer=18}static{this.RULE_createTable=19}static{this.RULE_createTablespaceInnodb=20}static{this.RULE_createTablespaceNdb=21}static{this.RULE_createTrigger=22}static{this.RULE_withClause=23}static{this.RULE_commonTableExpressions=24}static{this.RULE_cteName=25}static{this.RULE_cteColumnName=26}static{this.RULE_createView=27}static{this.RULE_createDatabaseOption=28}static{this.RULE_charSet=29}static{this.RULE_currentUserExpression=30}static{this.RULE_ownerStatement=31}static{this.RULE_scheduleExpression=32}static{this.RULE_timestampValue=33}static{this.RULE_intervalExpr=34}static{this.RULE_intervalType=35}static{this.RULE_enableType=36}static{this.RULE_indexType=37}static{this.RULE_indexOption=38}static{this.RULE_procedureParameter=39}static{this.RULE_functionParameter=40}static{this.RULE_routineOption=41}static{this.RULE_serverOption=42}static{this.RULE_createDefinitions=43}static{this.RULE_createDefinition=44}static{this.RULE_columnDefinition=45}static{this.RULE_columnConstraint=46}static{this.RULE_tableConstraint=47}static{this.RULE_referenceDefinition=48}static{this.RULE_referenceAction=49}static{this.RULE_referenceControlType=50}static{this.RULE_indexColumnDefinition=51}static{this.RULE_tableOption=52}static{this.RULE_tableType=53}static{this.RULE_tablespaceStorage=54}static{this.RULE_partitionDefinitions=55}static{this.RULE_partitionFunctionDefinition=56}static{this.RULE_subpartitionFunctionDefinition=57}static{this.RULE_partitionDefinition=58}static{this.RULE_partitionDefinerAtom=59}static{this.RULE_partitionDefinerVector=60}static{this.RULE_subpartitionDefinition=61}static{this.RULE_partitionOption=62}static{this.RULE_alterDatabase=63}static{this.RULE_alterEvent=64}static{this.RULE_alterFunction=65}static{this.RULE_alterInstance=66}static{this.RULE_alterLogfileGroup=67}static{this.RULE_alterProcedure=68}static{this.RULE_alterServer=69}static{this.RULE_alterTable=70}static{this.RULE_alterTablespace=71}static{this.RULE_alterView=72}static{this.RULE_alterSpecification=73}static{this.RULE_alterPartitionSpecification=74}static{this.RULE_dropDatabase=75}static{this.RULE_dropEvent=76}static{this.RULE_dropIndex=77}static{this.RULE_dropLogfileGroup=78}static{this.RULE_dropProcedure=79}static{this.RULE_dropFunction=80}static{this.RULE_dropServer=81}static{this.RULE_dropTable=82}static{this.RULE_dropTablespace=83}static{this.RULE_dropTrigger=84}static{this.RULE_dropView=85}static{this.RULE_dropRole=86}static{this.RULE_setRole=87}static{this.RULE_renameTable=88}static{this.RULE_renameTableClause=89}static{this.RULE_truncateTable=90}static{this.RULE_callStatement=91}static{this.RULE_deleteStatement=92}static{this.RULE_doStatement=93}static{this.RULE_handlerStatement=94}static{this.RULE_insertStatement=95}static{this.RULE_loadDataStatement=96}static{this.RULE_loadXmlStatement=97}static{this.RULE_replaceStatement=98}static{this.RULE_selectStatement=99}static{this.RULE_updateStatement=100}static{this.RULE_valuesStatement=101}static{this.RULE_insertStatementValue=102}static{this.RULE_updatedElement=103}static{this.RULE_assignmentField=104}static{this.RULE_lockClause=105}static{this.RULE_singleDeleteStatement=106}static{this.RULE_multipleDeleteStatement=107}static{this.RULE_handlerOpenStatement=108}static{this.RULE_handlerReadIndexStatement=109}static{this.RULE_handlerReadStatement=110}static{this.RULE_handlerCloseStatement=111}static{this.RULE_singleUpdateStatement=112}static{this.RULE_multipleUpdateStatement=113}static{this.RULE_orderByClause=114}static{this.RULE_orderByExpression=115}static{this.RULE_tableSources=116}static{this.RULE_tableSource=117}static{this.RULE_tableSourceItem=118}static{this.RULE_indexHint=119}static{this.RULE_indexHintType=120}static{this.RULE_joinPart=121}static{this.RULE_joinSpec=122}static{this.RULE_queryExpression=123}static{this.RULE_queryExpressionNointo=124}static{this.RULE_querySpecification=125}static{this.RULE_querySpecificationNointo=126}static{this.RULE_unionParenthesis=127}static{this.RULE_unionStatement=128}static{this.RULE_lateralStatement=129}static{this.RULE_jsonTable=130}static{this.RULE_jsonColumnList=131}static{this.RULE_jsonColumn=132}static{this.RULE_jsonOnEmpty=133}static{this.RULE_jsonOnError=134}static{this.RULE_selectSpec=135}static{this.RULE_selectElements=136}static{this.RULE_selectElementAlias=137}static{this.RULE_selectElement=138}static{this.RULE_selectIntoExpression=139}static{this.RULE_selectFieldsInto=140}static{this.RULE_selectLinesInto=141}static{this.RULE_fromClause=142}static{this.RULE_groupByClause=143}static{this.RULE_havingClause=144}static{this.RULE_windowClause=145}static{this.RULE_groupByItem=146}static{this.RULE_limitClause=147}static{this.RULE_limitClauseAtom=148}static{this.RULE_startTransaction=149}static{this.RULE_beginWork=150}static{this.RULE_commitWork=151}static{this.RULE_rollbackWork=152}static{this.RULE_savepointStatement=153}static{this.RULE_rollbackStatement=154}static{this.RULE_releaseStatement=155}static{this.RULE_lockTables=156}static{this.RULE_unlockTables=157}static{this.RULE_setAutocommitStatement=158}static{this.RULE_setTransactionStatement=159}static{this.RULE_transactionMode=160}static{this.RULE_lockTableElement=161}static{this.RULE_lockAction=162}static{this.RULE_transactionOption=163}static{this.RULE_transactionLevel=164}static{this.RULE_changeMaster=165}static{this.RULE_changeReplicationFilter=166}static{this.RULE_purgeBinaryLogs=167}static{this.RULE_resetMaster=168}static{this.RULE_resetSlave=169}static{this.RULE_startSlave=170}static{this.RULE_stopSlave=171}static{this.RULE_startGroupReplication=172}static{this.RULE_stopGroupReplication=173}static{this.RULE_masterOption=174}static{this.RULE_stringMasterOption=175}static{this.RULE_decimalMasterOption=176}static{this.RULE_boolMasterOption=177}static{this.RULE_channelOption=178}static{this.RULE_replicationFilter=179}static{this.RULE_tablePair=180}static{this.RULE_threadType=181}static{this.RULE_untilOption=182}static{this.RULE_connectionOption=183}static{this.RULE_gtuidSet=184}static{this.RULE_xaStartTransaction=185}static{this.RULE_xaEndTransaction=186}static{this.RULE_xaPrepareStatement=187}static{this.RULE_xaCommitWork=188}static{this.RULE_xaRollbackWork=189}static{this.RULE_xaRecoverWork=190}static{this.RULE_prepareStatement=191}static{this.RULE_executeStatement=192}static{this.RULE_deallocatePrepare=193}static{this.RULE_routineBody=194}static{this.RULE_blockStatement=195}static{this.RULE_caseStatement=196}static{this.RULE_ifStatement=197}static{this.RULE_iterateStatement=198}static{this.RULE_leaveStatement=199}static{this.RULE_loopStatement=200}static{this.RULE_repeatStatement=201}static{this.RULE_returnStatement=202}static{this.RULE_whileStatement=203}static{this.RULE_cursorStatement=204}static{this.RULE_declareVariable=205}static{this.RULE_declareCondition=206}static{this.RULE_declareCursor=207}static{this.RULE_declareHandler=208}static{this.RULE_handlerConditionValue=209}static{this.RULE_procedureSqlStatement=210}static{this.RULE_caseAlternative=211}static{this.RULE_elifAlternative=212}static{this.RULE_alterUser=213}static{this.RULE_createUser=214}static{this.RULE_dropUser=215}static{this.RULE_grantStatement=216}static{this.RULE_roleOption=217}static{this.RULE_grantProxy=218}static{this.RULE_renameUser=219}static{this.RULE_revokeStatement=220}static{this.RULE_revokeProxy=221}static{this.RULE_setPasswordStatement=222}static{this.RULE_userSpecification=223}static{this.RULE_newUserAuthOptionList=224}static{this.RULE_newUserAuthOption=225}static{this.RULE_authOptionClause=226}static{this.RULE_authenticationRule=227}static{this.RULE_tlsOption=228}static{this.RULE_userResourceOption=229}static{this.RULE_userPasswordOption=230}static{this.RULE_userLockOption=231}static{this.RULE_privelegeClause=232}static{this.RULE_privilege=233}static{this.RULE_privilegeLevel=234}static{this.RULE_renameUserClause=235}static{this.RULE_analyzeTable=236}static{this.RULE_checkTable=237}static{this.RULE_checksumTable=238}static{this.RULE_optimizeTable=239}static{this.RULE_repairTable=240}static{this.RULE_checkTableOption=241}static{this.RULE_createUdfunction=242}static{this.RULE_installPlugin=243}static{this.RULE_uninstallPlugin=244}static{this.RULE_setStatement=245}static{this.RULE_showStatement=246}static{this.RULE_variableClause=247}static{this.RULE_showCommonEntity=248}static{this.RULE_showFilter=249}static{this.RULE_showGlobalInfoClause=250}static{this.RULE_showSchemaEntity=251}static{this.RULE_showProfileType=252}static{this.RULE_binlogStatement=253}static{this.RULE_cacheIndexStatement=254}static{this.RULE_flushStatement=255}static{this.RULE_killStatement=256}static{this.RULE_loadIndexIntoCache=257}static{this.RULE_resetStatement=258}static{this.RULE_shutdownStatement=259}static{this.RULE_tableIndexes=260}static{this.RULE_flushOption=261}static{this.RULE_flushTableOption=262}static{this.RULE_loadedTableIndexes=263}static{this.RULE_simpleDescribeStatement=264}static{this.RULE_fullDescribeStatement=265}static{this.RULE_helpStatement=266}static{this.RULE_useStatement=267}static{this.RULE_signalStatement=268}static{this.RULE_resignalStatement=269}static{this.RULE_signalConditionInformation=270}static{this.RULE_withStatement=271}static{this.RULE_tableStatement=272}static{this.RULE_diagnosticsStatement=273}static{this.RULE_diagnosticsConditionInformationName=274}static{this.RULE_describeObjectClause=275}static{this.RULE_fullId=276}static{this.RULE_tableName=277}static{this.RULE_tableNames=278}static{this.RULE_userOrRoleName=279}static{this.RULE_userOrRoleNameList=280}static{this.RULE_newRoleNameList=281}static{this.RULE_newRoleName=282}static{this.RULE_roleNameList=283}static{this.RULE_roleName=284}static{this.RULE_fullColumnName=285}static{this.RULE_databaseName=286}static{this.RULE_indexName=287}static{this.RULE_constraintName=288}static{this.RULE_triggerName=289}static{this.RULE_indexNameList=290}static{this.RULE_indexColumnName=291}static{this.RULE_simpleUserName=292}static{this.RULE_hostName=293}static{this.RULE_userNameList=294}static{this.RULE_newUserName=295}static{this.RULE_userName=296}static{this.RULE_mysqlVariable=297}static{this.RULE_charsetName=298}static{this.RULE_collationName=299}static{this.RULE_engineName=300}static{this.RULE_engineNameBase=301}static{this.RULE_uuidSet=302}static{this.RULE_xid=303}static{this.RULE_xuidStringId=304}static{this.RULE_authPlugin=305}static{this.RULE_uid=306}static{this.RULE_simpleId=307}static{this.RULE_dottedId=308}static{this.RULE_decimalLiteral=309}static{this.RULE_fileSizeLiteral=310}static{this.RULE_stringLiteral=311}static{this.RULE_booleanLiteral=312}static{this.RULE_hexadecimalLiteral=313}static{this.RULE_nullNotnull=314}static{this.RULE_constant=315}static{this.RULE_dataType=316}static{this.RULE_collectionOptions=317}static{this.RULE_convertedDataType=318}static{this.RULE_lengthOneDimension=319}static{this.RULE_lengthTwoDimension=320}static{this.RULE_lengthTwoOptionalDimension=321}static{this.RULE_uidList=322}static{this.RULE_fullColumnNameList=323}static{this.RULE_tables=324}static{this.RULE_indexColumnNames=325}static{this.RULE_expressions=326}static{this.RULE_expressionsWithDefaults=327}static{this.RULE_constants=328}static{this.RULE_simpleStrings=329}static{this.RULE_userVariables=330}static{this.RULE_defaultValue=331}static{this.RULE_currentTimestamp=332}static{this.RULE_expressionOrDefault=333}static{this.RULE_ifExists=334}static{this.RULE_ifNotExists=335}static{this.RULE_orReplace=336}static{this.RULE_waitNowaitClause=337}static{this.RULE_functionCall=338}static{this.RULE_specificFunction=339}static{this.RULE_caseFuncAlternative=340}static{this.RULE_levelsInWeightString=341}static{this.RULE_levelInWeightListElement=342}static{this.RULE_aggregateWindowedFunction=343}static{this.RULE_nonAggregateWindowedFunction=344}static{this.RULE_overClause=345}static{this.RULE_windowSpec=346}static{this.RULE_windowName=347}static{this.RULE_frameClause=348}static{this.RULE_frameUnits=349}static{this.RULE_frameExtent=350}static{this.RULE_frameBetween=351}static{this.RULE_frameRange=352}static{this.RULE_partitionClause=353}static{this.RULE_scalarFunctionName=354}static{this.RULE_passwordFunctionClause=355}static{this.RULE_functionArgs=356}static{this.RULE_functionArg=357}static{this.RULE_expression=358}static{this.RULE_predicate=359}static{this.RULE_expressionAtom=360}static{this.RULE_unaryOperator=361}static{this.RULE_comparisonOperator=362}static{this.RULE_logicalOperator=363}static{this.RULE_bitOperator=364}static{this.RULE_multOperator=365}static{this.RULE_addOperator=366}static{this.RULE_jsonOperator=367}static{this.RULE_charsetNameBase=368}static{this.RULE_transactionLevelBase=369}static{this.RULE_privilegesBase=370}static{this.RULE_intervalTypeBase=371}static{this.RULE_dataTypeBase=372}static{this.RULE_keywordsCanBeId=373}static{this.RULE_functionNameBase=374}static{this.literalNames=[null,null,null,null,null,"'ADD'","'ALL'","'ALTER'","'ALWAYS'","'ANALYZE'","'AND'","'ARRAY'","'AS'","'ASC'","'ATTRIBUTE'","'BEFORE'","'BETWEEN'","'BOTH'","'BUCKETS'","'BY'","'CALL'","'CASCADE'","'CASE'","'CAST'","'CHANGE'","'CHARACTER'","'CHECK'","'COLLATE'","'COLUMN'","'CONDITION'","'CONSTRAINT'","'CONTINUE'","'CONVERT'","'CREATE'","'CROSS'","'CURRENT'","'CURRENT_ROLE'","'CURRENT_USER'","'CURSOR'","'DATABASE'","'DATABASES'","'DECLARE'","'DEFAULT'","'DELAYED'","'DELETE'","'DESC'","'DESCRIBE'","'DETERMINISTIC'","'DIAGNOSTICS'","'DISTINCT'","'DISTINCTROW'","'DROP'","'EACH'","'ELSE'","'ELSEIF'","'EMPTY'","'ENCLOSED'","'ENFORCED'","'ESCAPED'","'EXCEPT'","'EXISTS'","'EXIT'","'EXPLAIN'","'FALSE'","'FETCH'","'FOR'","'FORCE'","'FOREIGN'","'FROM'","'FULLTEXT'","'GENERATED'","'GET'","'GRANT'","'GROUP'","'HAVING'","'HIGH_PRIORITY'","'HISTOGRAM'","'IF'","'IGNORE'","'IGNORED'","'IN'","'INDEX'","'INFILE'","'INNER'","'INOUT'","'INSERT'","'INTERVAL'","'INTO'","'IS'","'ITERATE'","'JOIN'","'KEY'","'KEYS'","'KILL'","'LATERAL'","'LEADING'","'LEAVE'","'LEFT'","'LIKE'","'LIMIT'","'LINEAR'","'LINES'","'LOAD'","'LOCK'","'LOCKED'","'LOOP'","'LOW_PRIORITY'","'MASTER_BIND'","'MASTER_SSL_VERIFY_SERVER_CERT'","'MATCH'","'MAXVALUE'","'MINVALUE'","'MODIFIES'","'NATURAL'","'NOT'","'NO_WRITE_TO_BINLOG'","'NULL'","'NUMBER'","'ON'","'OPTIMIZE'","'OPTION'","'OPTIONAL'","'OPTIONALLY'","'OR'","'ORDER'","'OUT'","'OUTER'","'OUTFILE'","'OVER'","'PARTITION'","'PRIMARY'","'PROCEDURE'","'PURGE'","'RANGE'","'READ'","'READS'","'REFERENCES'","'REGEXP'","'RELEASE'","'RENAME'","'REPEAT'","'REPLACE'","'REQUIRE'","'RESIGNAL'","'RESTRICT'","'RETAIN'","'RETURN'","'REVOKE'","'RIGHT'","'RLIKE'","'SCHEMA'","'SCHEMAS'","'SELECT'","'SET'","'SEPARATOR'","'SHOW'","'SIGNAL'","'SKIP'","'SKIP_QUERY_REWRITE'","'SPATIAL'","'SQL'","'SQLEXCEPTION'","'SQLSTATE'","'SQLWARNING'","'SQL_BIG_RESULT'","'SQL_CALC_FOUND_ROWS'","'SQL_SMALL_RESULT'","'SSL'","'STACKED'","'STARTING'","'STATEMENT'","'STRAIGHT_JOIN'","'TABLE'","'TERMINATED'","'THEN'","'TO'","'TRAILING'","'TRIGGER'","'TRUE'","'UNDO'","'UNION'","'UNIQUE'","'UNLOCK'","'UNSIGNED'","'UPDATE'","'USAGE'","'USE'","'USING'","'VALUES'","'WHEN'","'WHERE'","'WHILE'","'WITH'","'WRITE'","'XOR'","'ZEROFILL'","'TINYINT'","'SMALLINT'","'MEDIUMINT'","'MIDDLEINT'","'INT'","'INT1'","'INT2'","'INT3'","'INT4'","'INT8'","'INTEGER'","'BIGINT'","'REAL'","'DOUBLE'","'PRECISION'","'FLOAT'","'FLOAT4'","'FLOAT8'","'DECIMAL'","'DEC'","'NUMERIC'","'DATE'","'TIME'","'TIMESTAMP'","'DATETIME'","'YEAR'","'CHAR'","'VARCHAR'","'NVARCHAR'","'NATIONAL'","'BINARY'","'VARBINARY'","'TINYBLOB'","'BLOB'","'MEDIUMBLOB'","'LONG'","'LONGBLOB'","'TINYTEXT'","'TEXT'","'MEDIUMTEXT'","'LONGTEXT'","'ENUM'","'VARYING'","'SERIAL'","'YEAR_MONTH'","'DAY_HOUR'","'DAY_MINUTE'","'DAY_SECOND'","'HOUR_MINUTE'","'HOUR_SECOND'","'MINUTE_SECOND'","'SECOND_MICROSECOND'","'MINUTE_MICROSECOND'","'HOUR_MICROSECOND'","'DAY_MICROSECOND'","'JSON_ARRAY'","'JSON_ARRAYAGG'","'JSON_ARRAY_APPEND'","'JSON_ARRAY_INSERT'","'JSON_CONTAINS'","'JSON_CONTAINS_PATH'","'JSON_DEPTH'","'JSON_EXTRACT'","'JSON_INSERT'","'JSON_KEYS'","'JSON_LENGTH'","'JSON_MERGE'","'JSON_MERGE_PATCH'","'JSON_MERGE_PRESERVE'","'JSON_OBJECT'","'JSON_OBJECTAGG'","'JSON_OVERLAPS'","'JSON_PRETTY'","'JSON_QUOTE'","'JSON_REMOVE'","'JSON_REPLACE'","'JSON_SCHEMA_VALID'","'JSON_SCHEMA_VALIDATION_REPORT'","'JSON_SEARCH'","'JSON_SET'","'JSON_STORAGE_FREE'","'JSON_STORAGE_SIZE'","'JSON_TABLE'","'JSON_TYPE'","'JSON_UNQUOTE'","'JSON_VALID'","'JSON_VALUE'","'NESTED'","'ORDINALITY'","'PATH'","'AVG'","'BIT_AND'","'BIT_OR'","'BIT_XOR'","'COUNT'","'CUME_DIST'","'DENSE_RANK'","'FIRST_VALUE'","'GROUP_CONCAT'","'LAG'","'LAST_VALUE'","'LEAD'","'MAX'","'MIN'","'NTILE'","'NTH_VALUE'","'PERCENT_RANK'","'RANK'","'ROW_NUMBER'","'STD'","'STDDEV'","'STDDEV_POP'","'STDDEV_SAMP'","'SUM'","'VAR_POP'","'VAR_SAMP'","'VARIANCE'","'CURRENT_DATE'","'CURRENT_TIME'","'CURRENT_TIMESTAMP'","'LOCALTIME'","'CURDATE'","'CURTIME'","'DATE_ADD'","'DATE_SUB'","'EXTRACT'","'LOCALTIMESTAMP'","'NOW'","'POSITION'","'SUBSTR'","'SUBSTRING'","'SYSDATE'","'TRIM'","'UTC_DATE'","'UTC_TIME'","'UTC_TIMESTAMP'","'ACCOUNT'","'ACTION'","'AFTER'","'AGGREGATE'","'ALGORITHM'","'ANY'","'AT'","'AUTHORS'","'AUTOCOMMIT'","'AUTOEXTEND_SIZE'","'AUTO_INCREMENT'","'AVG_ROW_LENGTH'","'BEGIN'","'BINLOG'","'BIT'","'BLOCK'","'BOOL'","'BOOLEAN'","'BTREE'","'CACHE'","'CASCADED'","'CHAIN'","'CHANGED'","'CHANNEL'","'CHECKSUM'","'PAGE_CHECKSUM'","'CIPHER'","'CLASS_ORIGIN'","'CLIENT'","'CLOSE'","'CLUSTERING'","'COALESCE'","'CODE'","'COLUMNS'","'COLUMN_FORMAT'","'COLUMN_NAME'","'COMMENT'","'COMMIT'","'COMPACT'","'COMPLETION'","'COMPRESSED'","'COMPRESSION'","'CONCURRENT'","'CONNECT'","'CONNECTION'","'CONSISTENT'","'CONSTRAINT_CATALOG'","'CONSTRAINT_SCHEMA'","'CONSTRAINT_NAME'","'CONTAINS'","'CONTEXT'","'CONTRIBUTORS'","'COPY'","'CPU'","'CYCLE'","'CURSOR_NAME'","'DATA'","'DATAFILE'","'DEALLOCATE'","'DEFAULT_AUTH'","'DEFINER'","'DELAY_KEY_WRITE'","'DES_KEY_FILE'","'DIRECTORY'","'DISABLE'","'DISCARD'","'DISK'","'DO'","'DUMPFILE'","'DUPLICATE'","'DYNAMIC'","'ENABLE'","'ENCRYPTED'","'ENCRYPTION'","'ENCRYPTION_KEY_ID'","'END'","'ENDS'","'ENGINE'","'ENGINES'","'ERROR'","'ERRORS'","'ESCAPE'","'EVEN'","'EVENT'","'EVENTS'","'EVERY'","'EXCHANGE'","'EXCLUSIVE'","'EXPIRE'","'EXPORT'","'EXTENDED'","'EXTENT_SIZE'","'FAILED_LOGIN_ATTEMPTS'","'FAST'","'FAULTS'","'FIELDS'","'FILE_BLOCK_SIZE'","'FILTER'","'FIRST'","'FIXED'","'FLUSH'","'FOLLOWING'","'FOLLOWS'","'FOUND'","'FULL'","'FUNCTION'","'GENERAL'","'GLOBAL'","'GRANTS'","'GROUP_REPLICATION'","'HANDLER'","'HASH'","'HELP'","'HISTORY'","'HOST'","'HOSTS'","'IDENTIFIED'","'IGNORE_SERVER_IDS'","'IMPORT'","'INCREMENT'","'INDEXES'","'INITIAL_SIZE'","'INPLACE'","'INSERT_METHOD'","'INSTALL'","'INSTANCE'","'INSTANT'","'INVISIBLE'","'INVOKER'","'IO'","'IO_THREAD'","'IPC'","'ISOLATION'","'ISSUER'","'JSON'","'KEY_BLOCK_SIZE'","'LANGUAGE'","'LAST'","'LEAVES'","'LESS'","'LEVEL'","'LIST'","'LOCAL'","'LOGFILE'","'LOGS'","'MASTER'","'MASTER_AUTO_POSITION'","'MASTER_CONNECT_RETRY'","'MASTER_DELAY'","'MASTER_HEARTBEAT_PERIOD'","'MASTER_HOST'","'MASTER_LOG_FILE'","'MASTER_LOG_POS'","'MASTER_PASSWORD'","'MASTER_PORT'","'MASTER_RETRY_COUNT'","'MASTER_SSL'","'MASTER_SSL_CA'","'MASTER_SSL_CAPATH'","'MASTER_SSL_CERT'","'MASTER_SSL_CIPHER'","'MASTER_SSL_CRL'","'MASTER_SSL_CRLPATH'","'MASTER_SSL_KEY'","'MASTER_TLS_VERSION'","'MASTER_USER'","'MAX_CONNECTIONS_PER_HOUR'","'MAX_QUERIES_PER_HOUR'","'MAX_ROWS'","'MAX_SIZE'","'MAX_UPDATES_PER_HOUR'","'MAX_USER_CONNECTIONS'","'MEDIUM'","'MEMBER'","'MERGE'","'MESSAGE_TEXT'","'MID'","'MIGRATE'","'MIN_ROWS'","'MODE'","'MODIFY'","'MUTEX'","'MYSQL'","'MYSQL_ERRNO'","'NAME'","'NAMES'","'NCHAR'","'NEVER'","'NEXT'","'NO'","'NOCACHE'","'NOCOPY'","'NOCYCLE'","'NOMAXVALUE'","'NOMINVALUE'","'NOWAIT'","'NODEGROUP'","'NONE'","'ODBC'","'OFFLINE'","'OFFSET'","'OF'","'OJ'","'OLD_PASSWORD'","'ONE'","'ONLINE'","'ONLY'","'OPEN'","'OPTIMIZER_COSTS'","'OPTIONS'","'OWNER'","'PACK_KEYS'","'PAGE'","'PAGE_COMPRESSED'","'PAGE_COMPRESSION_LEVEL'","'PARSER'","'PARTIAL'","'PARTITIONING'","'PARTITIONS'","'PASSWORD'","'PASSWORD_LOCK_TIME'","'PHASE'","'PLUGIN'","'PLUGIN_DIR'","'PLUGINS'","'PORT'","'PRECEDES'","'PRECEDING'","'PREPARE'","'PRESERVE'","'PREV'","'PROCESSLIST'","'PROFILE'","'PROFILES'","'PROXY'","'QUERY'","'QUICK'","'REBUILD'","'RECOVER'","'RECURSIVE'","'REDO_BUFFER_SIZE'","'REDUNDANT'","'RELAY'","'RELAY_LOG_FILE'","'RELAY_LOG_POS'","'RELAYLOG'","'REMOVE'","'REORGANIZE'","'REPAIR'","'REPLICATE_DO_DB'","'REPLICATE_DO_TABLE'","'REPLICATE_IGNORE_DB'","'REPLICATE_IGNORE_TABLE'","'REPLICATE_REWRITE_DB'","'REPLICATE_WILD_DO_TABLE'","'REPLICATE_WILD_IGNORE_TABLE'","'REPLICATION'","'RESET'","'RESTART'","'RESUME'","'RETURNED_SQLSTATE'","'RETURNING'","'RETURNS'","'REUSE'","'ROLE'","'ROLLBACK'","'ROLLUP'","'ROTATE'","'ROW'","'ROWS'","'ROW_FORMAT'","'RTREE'","'SAVEPOINT'","'SCHEDULE'","'SECURITY'","'SEQUENCE'","'SERVER'","'SESSION'","'SHARE'","'SHARED'","'SIGNED'","'SIMPLE'","'SLAVE'","'SLOW'","'SNAPSHOT'","'SOCKET'","'SOME'","'SONAME'","'SOUNDS'","'SOURCE'","'SQL_AFTER_GTIDS'","'SQL_AFTER_MTS_GAPS'","'SQL_BEFORE_GTIDS'","'SQL_BUFFER_RESULT'","'SQL_CACHE'","'SQL_NO_CACHE'","'SQL_THREAD'","'START'","'STARTS'","'STATS_AUTO_RECALC'","'STATS_PERSISTENT'","'STATS_SAMPLE_PAGES'","'STATUS'","'STOP'","'STORAGE'","'STORED'","'STRING'","'SUBCLASS_ORIGIN'","'SUBJECT'","'SUBPARTITION'","'SUBPARTITIONS'","'SUSPEND'","'SWAPS'","'SWITCHES'","'TABLE_NAME'","'TABLESPACE'","'TABLE_TYPE'","'TEMPORARY'","'TEMPTABLE'","'THAN'","'TRADITIONAL'","'TRANSACTION'","'TRANSACTIONAL'","'TRIGGERS'","'TRUNCATE'","'UNBOUNDED'","'UNDEFINED'","'UNDOFILE'","'UNDO_BUFFER_SIZE'","'UNINSTALL'","'UNKNOWN'","'UNTIL'","'UPGRADE'","'USER'","'USE_FRM'","'USER_RESOURCES'","'VALIDATION'","'VALUE'","'VARIABLES'","'VIEW'","'VIRTUAL'","'VISIBLE'","'WAIT'","'WARNINGS'","'WINDOW'","'WITHOUT'","'WORK'","'WRAPPER'","'X509'","'XA'","'XML'","'YES'","'EUR'","'USA'","'JIS'","'ISO'","'INTERNAL'","'QUARTER'","'MONTH'","'DAY'","'HOUR'","'MINUTE'","'WEEK'","'SECOND'","'MICROSECOND'","'ADMIN'","'APPLICATION_PASSWORD_ADMIN'","'AUDIT_ABORT_EXEMPT'","'AUDIT_ADMIN'","'AUTHENTICATION_POLICY_ADMIN'","'BACKUP_ADMIN'","'BINLOG_ADMIN'","'BINLOG_ENCRYPTION_ADMIN'","'CLONE_ADMIN'","'CONNECTION_ADMIN'","'ENCRYPTION_KEY_ADMIN'","'EXECUTE'","'FILE'","'FIREWALL_ADMIN'","'FIREWALL_EXEMPT'","'FIREWALL_USER'","'FLUSH_OPTIMIZER_COSTS'","'FLUSH_STATUS'","'FLUSH_TABLES'","'FLUSH_USER_RESOURCES'","'GROUP_REPLICATION_ADMIN'","'INNODB_REDO_LOG_ARCHIVE'","'INNODB_REDO_LOG_ENABLE'","'INVOKE'","'LAMBDA'","'NDB_STORED_USER'","'PASSWORDLESS_USER_ADMIN'","'PERSIST_RO_VARIABLES_ADMIN'","'PRIVILEGES'","'PROCESS'","'RELOAD'","'REPLICATION_APPLIER'","'REPLICATION_SLAVE_ADMIN'","'RESOURCE_GROUP_ADMIN'","'RESOURCE_GROUP_USER'","'ROLE_ADMIN'","'ROUTINE'","'S3'","'SERVICE_CONNECTION_ADMIN'",null,"'SET_USER_ID'","'SHOW_ROUTINE'","'SHUTDOWN'","'SUPER'","'SYSTEM_VARIABLES_ADMIN'","'TABLES'","'TABLE_ENCRYPTION_ADMIN'","'VERSION_TOKEN_ADMIN'","'XA_RECOVER_ADMIN'","'ARMSCII8'","'ASCII'","'BIG5'","'CP1250'","'CP1251'","'CP1256'","'CP1257'","'CP850'","'CP852'","'CP866'","'CP932'","'DEC8'","'EUCJPMS'","'EUCKR'","'GB18030'","'GB2312'","'GBK'","'GEOSTD8'","'GREEK'","'HEBREW'","'HP8'","'KEYBCS2'","'KOI8R'","'KOI8U'","'LATIN1'","'LATIN2'","'LATIN5'","'LATIN7'","'MACCE'","'MACROMAN'","'SJIS'","'SWE7'","'TIS620'","'UCS2'","'UJIS'","'UTF16'","'UTF16LE'","'UTF32'","'UTF8'","'UTF8MB3'","'UTF8MB4'","'ARCHIVE'","'BLACKHOLE'","'CSV'","'FEDERATED'","'INNODB'","'MEMORY'","'MRG_MYISAM'","'MYISAM'","'NDB'","'NDBCLUSTER'","'PERFORMANCE_SCHEMA'","'TOKUDB'","'REPEATABLE'","'COMMITTED'","'UNCOMMITTED'","'SERIALIZABLE'","'GEOMETRYCOLLECTION'","'GEOMCOLLECTION'","'GEOMETRY'","'LINESTRING'","'MULTILINESTRING'","'MULTIPOINT'","'MULTIPOLYGON'","'POINT'","'POLYGON'","'ABS'","'ACOS'","'ADDDATE'","'ADDTIME'","'AES_DECRYPT'","'AES_ENCRYPT'","'AREA'","'ASBINARY'","'ASIN'","'ASTEXT'","'ASWKB'","'ASWKT'","'ASYMMETRIC_DECRYPT'","'ASYMMETRIC_DERIVE'","'ASYMMETRIC_ENCRYPT'","'ASYMMETRIC_SIGN'","'ASYMMETRIC_VERIFY'","'ATAN'","'ATAN2'","'BENCHMARK'","'BIN'","'BIT_COUNT'","'BIT_LENGTH'","'BUFFER'","'CATALOG_NAME'","'CEIL'","'CEILING'","'CENTROID'","'CHARACTER_LENGTH'","'CHARSET'","'CHAR_LENGTH'","'COERCIBILITY'","'COLLATION'","'COMPRESS'","'CONCAT'","'CONCAT_WS'","'CONNECTION_ID'","'CONV'","'CONVERT_TZ'","'COS'","'COT'","'CRC32'","'CREATE_ASYMMETRIC_PRIV_KEY'","'CREATE_ASYMMETRIC_PUB_KEY'","'CREATE_DH_PARAMETERS'","'CREATE_DIGEST'","'CROSSES'","'DATEDIFF'","'DATE_FORMAT'","'DAYNAME'","'DAYOFMONTH'","'DAYOFWEEK'","'DAYOFYEAR'","'DECODE'","'DEGREES'","'DES_DECRYPT'","'DES_ENCRYPT'","'DIMENSION'","'DISJOINT'","'ELT'","'ENCODE'","'ENCRYPT'","'ENDPOINT'","'ENGINE_ATTRIBUTE'","'ENVELOPE'","'EQUALS'","'EXP'","'EXPORT_SET'","'EXTERIORRING'","'EXTRACTVALUE'","'FIELD'","'FIND_IN_SET'","'FLOOR'","'FORMAT'","'FOUND_ROWS'","'FROM_BASE64'","'FROM_DAYS'","'FROM_UNIXTIME'","'GEOMCOLLFROMTEXT'","'GEOMCOLLFROMWKB'","'GEOMETRYCOLLECTIONFROMTEXT'","'GEOMETRYCOLLECTIONFROMWKB'","'GEOMETRYFROMTEXT'","'GEOMETRYFROMWKB'","'GEOMETRYN'","'GEOMETRYTYPE'","'GEOMFROMTEXT'","'GEOMFROMWKB'","'GET_FORMAT'","'GET_LOCK'","'GLENGTH'","'GREATEST'","'GTID_SUBSET'","'GTID_SUBTRACT'","'HEX'","'IFNULL'","'INET6_ATON'","'INET6_NTOA'","'INET_ATON'","'INET_NTOA'","'INSTR'","'INTERIORRINGN'","'INTERSECTS'","'ISCLOSED'","'ISEMPTY'","'ISNULL'","'ISSIMPLE'","'IS_FREE_LOCK'","'IS_IPV4'","'IS_IPV4_COMPAT'","'IS_IPV4_MAPPED'","'IS_IPV6'","'IS_USED_LOCK'","'LAST_INSERT_ID'","'LCASE'","'LEAST'","'LENGTH'","'LINEFROMTEXT'","'LINEFROMWKB'","'LINESTRINGFROMTEXT'","'LINESTRINGFROMWKB'","'LN'","'LOAD_FILE'","'LOCATE'","'LOG'","'LOG10'","'LOG2'","'LOWER'","'LPAD'","'LTRIM'","'MAKEDATE'","'MAKETIME'","'MAKE_SET'","'MASTER_POS_WAIT'","'MBRCONTAINS'","'MBRDISJOINT'","'MBREQUAL'","'MBRINTERSECTS'","'MBROVERLAPS'","'MBRTOUCHES'","'MBRWITHIN'","'MD5'","'MLINEFROMTEXT'","'MLINEFROMWKB'","'MONTHNAME'","'MPOINTFROMTEXT'","'MPOINTFROMWKB'","'MPOLYFROMTEXT'","'MPOLYFROMWKB'","'MULTILINESTRINGFROMTEXT'","'MULTILINESTRINGFROMWKB'","'MULTIPOINTFROMTEXT'","'MULTIPOINTFROMWKB'","'MULTIPOLYGONFROMTEXT'","'MULTIPOLYGONFROMWKB'","'NAME_CONST'","'NULLIF'","'NUMGEOMETRIES'","'NUMINTERIORRINGS'","'NUMPOINTS'","'OCT'","'OCTET_LENGTH'","'ORD'","'OVERLAPS'","'PERIOD_ADD'","'PERIOD_DIFF'","'PI'","'POINTFROMTEXT'","'POINTFROMWKB'","'POINTN'","'POLYFROMTEXT'","'POLYFROMWKB'","'POLYGONFROMTEXT'","'POLYGONFROMWKB'","'POW'","'POWER'","'QUOTE'","'RADIANS'","'RAND'","'RANDOM'","'RANDOM_BYTES'","'RELEASE_LOCK'","'REVERSE'","'ROUND'","'ROW_COUNT'","'RPAD'","'RTRIM'","'SEC_TO_TIME'","'SECONDARY_ENGINE_ATTRIBUTE'","'SESSION_USER'","'SHA'","'SHA1'","'SHA2'","'SCHEMA_NAME'","'SIGN'","'SIN'","'SLEEP'","'SOUNDEX'","'SQL_THREAD_WAIT_AFTER_GTIDS'","'SQRT'","'SRID'","'STARTPOINT'","'STRCMP'","'STR_TO_DATE'","'ST_AREA'","'ST_ASBINARY'","'ST_ASTEXT'","'ST_ASWKB'","'ST_ASWKT'","'ST_BUFFER'","'ST_CENTROID'","'ST_CONTAINS'","'ST_CROSSES'","'ST_DIFFERENCE'","'ST_DIMENSION'","'ST_DISJOINT'","'ST_DISTANCE'","'ST_ENDPOINT'","'ST_ENVELOPE'","'ST_EQUALS'","'ST_EXTERIORRING'","'ST_GEOMCOLLFROMTEXT'","'ST_GEOMCOLLFROMTXT'","'ST_GEOMCOLLFROMWKB'","'ST_GEOMETRYCOLLECTIONFROMTEXT'","'ST_GEOMETRYCOLLECTIONFROMWKB'","'ST_GEOMETRYFROMTEXT'","'ST_GEOMETRYFROMWKB'","'ST_GEOMETRYN'","'ST_GEOMETRYTYPE'","'ST_GEOMFROMTEXT'","'ST_GEOMFROMWKB'","'ST_INTERIORRINGN'","'ST_INTERSECTION'","'ST_INTERSECTS'","'ST_ISCLOSED'","'ST_ISEMPTY'","'ST_ISSIMPLE'","'ST_LINEFROMTEXT'","'ST_LINEFROMWKB'","'ST_LINESTRINGFROMTEXT'","'ST_LINESTRINGFROMWKB'","'ST_NUMGEOMETRIES'","'ST_NUMINTERIORRING'","'ST_NUMINTERIORRINGS'","'ST_NUMPOINTS'","'ST_OVERLAPS'","'ST_POINTFROMTEXT'","'ST_POINTFROMWKB'","'ST_POINTN'","'ST_POLYFROMTEXT'","'ST_POLYFROMWKB'","'ST_POLYGONFROMTEXT'","'ST_POLYGONFROMWKB'","'ST_SRID'","'ST_STARTPOINT'","'ST_SYMDIFFERENCE'","'ST_TOUCHES'","'ST_UNION'","'ST_WITHIN'","'ST_X'","'ST_Y'","'SUBDATE'","'SUBSTRING_INDEX'","'SUBTIME'","'SYSTEM_USER'","'TAN'","'TIMEDIFF'","'TIMESTAMPADD'","'TIMESTAMPDIFF'","'TIME_FORMAT'","'TIME_TO_SEC'","'TOUCHES'","'TO_BASE64'","'TO_DAYS'","'TO_SECONDS'","'TP_CONNECTION_ADMIN'","'UCASE'","'UNCOMPRESS'","'UNCOMPRESSED_LENGTH'","'UNHEX'","'UNIX_TIMESTAMP'","'UPDATEXML'","'UPPER'","'UUID'","'UUID_SHORT'","'VALIDATE_PASSWORD_STRENGTH'","'VERSION'","'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS'","'WEEKDAY'","'WEEKOFYEAR'","'WEIGHT_STRING'","'WITHIN'","'YEARWEEK'","'Y'","'X'","':='","'+='","'-='","'*='","'/='","'%='","'&='","'^='","'|='","'*'","'/'","'%'","'+'","'-'","'DIV'","'MOD'","'='","'>'","'<'","'!'","'~'","'|'","'&'","'^'","'.'","'('","')'","','","';'","'@'","'0'","'1'","'2'","'''","'\"'","'`'","':'"]}static{this.symbolicNames=[null,"SPACE","SPEC_MYSQL_COMMENT","COMMENT_INPUT","LINE_COMMENT","ADD","ALL","ALTER","ALWAYS","ANALYZE","AND","ARRAY","AS","ASC","ATTRIBUTE","BEFORE","BETWEEN","BOTH","BUCKETS","BY","CALL","CASCADE","CASE","CAST","CHANGE","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_ROLE","CURRENT_USER","CURSOR","DATABASE","DATABASES","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DIAGNOSTICS","DISTINCT","DISTINCTROW","DROP","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ENFORCED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GET","GRANT","GROUP","HAVING","HIGH_PRIORITY","HISTOGRAM","IF","IGNORE","IGNORED","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LATERAL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCK","LOCKED","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINVALUE","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL_LITERAL","NUMBER","ON","OPTIMIZE","OPTION","OPTIONAL","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETAIN","RETURN","REVOKE","RIGHT","RLIKE","SCHEMA","SCHEMAS","SELECT","SET","SEPARATOR","SHOW","SIGNAL","SKIP_","SKIP_QUERY_REWRITE","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STACKED","STARTING","STATEMENT","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","VALUES","WHEN","WHERE","WHILE","WITH","WRITE","XOR","ZEROFILL","TINYINT","SMALLINT","MEDIUMINT","MIDDLEINT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","BIGINT","REAL","DOUBLE","PRECISION","FLOAT","FLOAT4","FLOAT8","DECIMAL","DEC","NUMERIC","DATE","TIME","TIMESTAMP","DATETIME","YEAR","CHAR","VARCHAR","NVARCHAR","NATIONAL","BINARY","VARBINARY","TINYBLOB","BLOB","MEDIUMBLOB","LONG","LONGBLOB","TINYTEXT","TEXT","MEDIUMTEXT","LONGTEXT","ENUM","VARYING","SERIAL","YEAR_MONTH","DAY_HOUR","DAY_MINUTE","DAY_SECOND","HOUR_MINUTE","HOUR_SECOND","MINUTE_SECOND","SECOND_MICROSECOND","MINUTE_MICROSECOND","HOUR_MICROSECOND","DAY_MICROSECOND","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","NESTED","ORDINALITY","PATH","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","GROUP_CONCAT","LAG","LAST_VALUE","LEAD","MAX","MIN","NTILE","NTH_VALUE","PERCENT_RANK","RANK","ROW_NUMBER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","LOCALTIME","CURDATE","CURTIME","DATE_ADD","DATE_SUB","EXTRACT","LOCALTIMESTAMP","NOW","POSITION","SUBSTR","SUBSTRING","SYSDATE","TRIM","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","ACCOUNT","ACTION","AFTER","AGGREGATE","ALGORITHM","ANY","AT","AUTHORS","AUTOCOMMIT","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG_ROW_LENGTH","BEGIN","BINLOG","BIT","BLOCK","BOOL","BOOLEAN","BTREE","CACHE","CASCADED","CHAIN","CHANGED","CHANNEL","CHECKSUM","PAGE_CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOSE","CLUSTERING","COALESCE","CODE","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMPACT","COMPLETION","COMPRESSED","COMPRESSION","CONCURRENT","CONNECT","CONNECTION","CONSISTENT","CONSTRAINT_CATALOG","CONSTRAINT_SCHEMA","CONSTRAINT_NAME","CONTAINS","CONTEXT","CONTRIBUTORS","COPY","CPU","CYCLE","CURSOR_NAME","DATA","DATAFILE","DEALLOCATE","DEFAULT_AUTH","DEFINER","DELAY_KEY_WRITE","DES_KEY_FILE","DIRECTORY","DISABLE","DISCARD","DISK","DO","DUMPFILE","DUPLICATE","DYNAMIC","ENABLE","ENCRYPTED","ENCRYPTION","ENCRYPTION_KEY_ID","END","ENDS","ENGINE","ENGINES","ERROR","ERRORS","ESCAPE","EVEN","EVENT","EVENTS","EVERY","EXCHANGE","EXCLUSIVE","EXPIRE","EXPORT","EXTENDED","EXTENT_SIZE","FAILED_LOGIN_ATTEMPTS","FAST","FAULTS","FIELDS","FILE_BLOCK_SIZE","FILTER","FIRST","FIXED","FLUSH","FOLLOWING","FOLLOWS","FOUND","FULL","FUNCTION","GENERAL","GLOBAL","GRANTS","GROUP_REPLICATION","HANDLER","HASH","HELP","HISTORY","HOST","HOSTS","IDENTIFIED","IGNORE_SERVER_IDS","IMPORT","INCREMENT","INDEXES","INITIAL_SIZE","INPLACE","INSERT_METHOD","INSTALL","INSTANCE","INSTANT","INVISIBLE","INVOKER","IO","IO_THREAD","IPC","ISOLATION","ISSUER","JSON","KEY_BLOCK_SIZE","LANGUAGE","LAST","LEAVES","LESS","LEVEL","LIST","LOCAL","LOGFILE","LOGS","MASTER","MASTER_AUTO_POSITION","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_TLS_VERSION","MASTER_USER","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEMBER","MERGE","MESSAGE_TEXT","MID","MIGRATE","MIN_ROWS","MODE","MODIFY","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NCHAR","NEVER","NEXT","NO","NOCACHE","NOCOPY","NOCYCLE","NOMAXVALUE","NOMINVALUE","NOWAIT","NODEGROUP","NONE","ODBC","OFFLINE","OFFSET","OF","OJ","OLD_PASSWORD","ONE","ONLINE","ONLY","OPEN","OPTIMIZER_COSTS","OPTIONS","OWNER","PACK_KEYS","PAGE","PAGE_COMPRESSED","PAGE_COMPRESSION_LEVEL","PARSER","PARTIAL","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PHASE","PLUGIN","PLUGIN_DIR","PLUGINS","PORT","PRECEDES","PRECEDING","PREPARE","PRESERVE","PREV","PROCESSLIST","PROFILE","PROFILES","PROXY","QUERY","QUICK","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","RELAY","RELAY_LOG_FILE","RELAY_LOG_POS","RELAYLOG","REMOVE","REORGANIZE","REPAIR","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","RESET","RESTART","RESUME","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROW","ROWS","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SECURITY","SEQUENCE","SERVER","SESSION","SHARE","SHARED","SIGNED","SIMPLE","SLAVE","SLOW","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BUFFER_RESULT","SQL_CACHE","SQL_NO_CACHE","SQL_THREAD","START","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUSPEND","SWAPS","SWITCHES","TABLE_NAME","TABLESPACE","TABLE_TYPE","TEMPORARY","TEMPTABLE","THAN","TRADITIONAL","TRANSACTION","TRANSACTIONAL","TRIGGERS","TRUNCATE","UNBOUNDED","UNDEFINED","UNDOFILE","UNDO_BUFFER_SIZE","UNINSTALL","UNKNOWN","UNTIL","UPGRADE","USER","USE_FRM","USER_RESOURCES","VALIDATION","VALUE","VARIABLES","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WINDOW","WITHOUT","WORK","WRAPPER","X509","XA","XML","YES","EUR","USA","JIS","ISO","INTERNAL","QUARTER","MONTH","DAY","HOUR","MINUTE","WEEK","SECOND","MICROSECOND","ADMIN","APPLICATION_PASSWORD_ADMIN","AUDIT_ABORT_EXEMPT","AUDIT_ADMIN","AUTHENTICATION_POLICY_ADMIN","BACKUP_ADMIN","BINLOG_ADMIN","BINLOG_ENCRYPTION_ADMIN","CLONE_ADMIN","CONNECTION_ADMIN","ENCRYPTION_KEY_ADMIN","EXECUTE","FILE","FIREWALL_ADMIN","FIREWALL_EXEMPT","FIREWALL_USER","FLUSH_OPTIMIZER_COSTS","FLUSH_STATUS","FLUSH_TABLES","FLUSH_USER_RESOURCES","GROUP_REPLICATION_ADMIN","INNODB_REDO_LOG_ARCHIVE","INNODB_REDO_LOG_ENABLE","INVOKE","LAMBDA","NDB_STORED_USER","PASSWORDLESS_USER_ADMIN","PERSIST_RO_VARIABLES_ADMIN","PRIVILEGES","PROCESS","RELOAD","REPLICATION_APPLIER","REPLICATION_SLAVE_ADMIN","RESOURCE_GROUP_ADMIN","RESOURCE_GROUP_USER","ROLE_ADMIN","ROUTINE","S3","SERVICE_CONNECTION_ADMIN","SESSION_VARIABLES_ADMIN","SET_USER_ID","SHOW_ROUTINE","SHUTDOWN","SUPER","SYSTEM_VARIABLES_ADMIN","TABLES","TABLE_ENCRYPTION_ADMIN","VERSION_TOKEN_ADMIN","XA_RECOVER_ADMIN","ARMSCII8","ASCII","BIG5","CP1250","CP1251","CP1256","CP1257","CP850","CP852","CP866","CP932","DEC8","EUCJPMS","EUCKR","GB18030","GB2312","GBK","GEOSTD8","GREEK","HEBREW","HP8","KEYBCS2","KOI8R","KOI8U","LATIN1","LATIN2","LATIN5","LATIN7","MACCE","MACROMAN","SJIS","SWE7","TIS620","UCS2","UJIS","UTF16","UTF16LE","UTF32","UTF8","UTF8MB3","UTF8MB4","ARCHIVE","BLACKHOLE","CSV","FEDERATED","INNODB","MEMORY","MRG_MYISAM","MYISAM","NDB","NDBCLUSTER","PERFORMANCE_SCHEMA","TOKUDB","REPEATABLE","COMMITTED","UNCOMMITTED","SERIALIZABLE","GEOMETRYCOLLECTION","GEOMCOLLECTION","GEOMETRY","LINESTRING","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","POINT","POLYGON","ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","AREA","ASBINARY","ASIN","ASTEXT","ASWKB","ASWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","BENCHMARK","BIN","BIT_COUNT","BIT_LENGTH","BUFFER","CATALOG_NAME","CEIL","CEILING","CENTROID","CHARACTER_LENGTH","CHARSET","CHAR_LENGTH","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","CROSSES","DATEDIFF","DATE_FORMAT","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEGREES","DES_DECRYPT","DES_ENCRYPT","DIMENSION","DISJOINT","ELT","ENCODE","ENCRYPT","ENDPOINT","ENGINE_ATTRIBUTE","ENVELOPE","EQUALS","EXP","EXPORT_SET","EXTERIORRING","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLFROMTEXT","GEOMCOLLFROMWKB","GEOMETRYCOLLECTIONFROMTEXT","GEOMETRYCOLLECTIONFROMWKB","GEOMETRYFROMTEXT","GEOMETRYFROMWKB","GEOMETRYN","GEOMETRYTYPE","GEOMFROMTEXT","GEOMFROMWKB","GET_FORMAT","GET_LOCK","GLENGTH","GREATEST","GTID_SUBSET","GTID_SUBTRACT","HEX","IFNULL","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSTR","INTERIORRINGN","INTERSECTS","ISCLOSED","ISEMPTY","ISNULL","ISSIMPLE","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LINEFROMTEXT","LINEFROMWKB","LINESTRINGFROMTEXT","LINESTRINGFROMWKB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKEDATE","MAKETIME","MAKE_SET","MASTER_POS_WAIT","MBRCONTAINS","MBRDISJOINT","MBREQUAL","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MLINEFROMTEXT","MLINEFROMWKB","MONTHNAME","MPOINTFROMTEXT","MPOINTFROMWKB","MPOLYFROMTEXT","MPOLYFROMWKB","MULTILINESTRINGFROMTEXT","MULTILINESTRINGFROMWKB","MULTIPOINTFROMTEXT","MULTIPOINTFROMWKB","MULTIPOLYGONFROMTEXT","MULTIPOLYGONFROMWKB","NAME_CONST","NULLIF","NUMGEOMETRIES","NUMINTERIORRINGS","NUMPOINTS","OCT","OCTET_LENGTH","ORD","OVERLAPS","PERIOD_ADD","PERIOD_DIFF","PI","POINTFROMTEXT","POINTFROMWKB","POINTN","POLYFROMTEXT","POLYFROMWKB","POLYGONFROMTEXT","POLYGONFROMWKB","POW","POWER","QUOTE","RADIANS","RAND","RANDOM","RANDOM_BYTES","RELEASE_LOCK","REVERSE","ROUND","ROW_COUNT","RPAD","RTRIM","SEC_TO_TIME","SECONDARY_ENGINE_ATTRIBUTE","SESSION_USER","SHA","SHA1","SHA2","SCHEMA_NAME","SIGN","SIN","SLEEP","SOUNDEX","SQL_THREAD_WAIT_AFTER_GTIDS","SQRT","SRID","STARTPOINT","STRCMP","STR_TO_DATE","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_ASWKB","ST_ASWKT","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMTXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYCOLLECTIONFROMTEXT","ST_GEOMETRYCOLLECTIONFROMWKB","ST_GEOMETRYFROMTEXT","ST_GEOMETRYFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINESTRINGFROMTEXT","ST_LINESTRINGFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMINTERIORRINGS","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_POLYGONFROMTEXT","ST_POLYGONFROMWKB","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_Y","SUBDATE","SUBSTRING_INDEX","SUBTIME","SYSTEM_USER","TAN","TIMEDIFF","TIMESTAMPADD","TIMESTAMPDIFF","TIME_FORMAT","TIME_TO_SEC","TOUCHES","TO_BASE64","TO_DAYS","TO_SECONDS","TP_CONNECTION_ADMIN","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VALIDATE_PASSWORD_STRENGTH","VERSION","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","WITHIN","YEARWEEK","Y_FUNCTION","X_FUNCTION","VAR_ASSIGN","PLUS_ASSIGN","MINUS_ASSIGN","MULT_ASSIGN","DIV_ASSIGN","MOD_ASSIGN","AND_ASSIGN","XOR_ASSIGN","OR_ASSIGN","STAR","DIVIDE","MODULE","PLUS","MINUS","DIV","MOD","EQUAL_SYMBOL","GREATER_SYMBOL","LESS_SYMBOL","EXCLAMATION_SYMBOL","BIT_NOT_OP","BIT_OR_OP","BIT_AND_OP","BIT_XOR_OP","DOT","LR_BRACKET","RR_BRACKET","COMMA","SEMI","AT_SIGN","ZERO_DECIMAL","ONE_DECIMAL","TWO_DECIMAL","SINGLE_QUOTE_SYMB","DOUBLE_QUOTE_SYMB","REVERSE_QUOTE_SYMB","COLON_SYMB","CHARSET_REVERSE_QOUTE_STRING","FILESIZE_LITERAL","START_NATIONAL_STRING_LITERAL","STRING_LITERAL","DECIMAL_LITERAL","HEXADECIMAL_LITERAL","REAL_LITERAL","NULL_SPEC_LITERAL","BIT_STRING","STRING_CHARSET_NAME","DOT_ID","ID","REVERSE_QUOTE_ID","HOST_IP_ADDRESS","LOCAL_ID","GLOBAL_ID","ERROR_RECONGNIGION"]}static{this.ruleNames=["root","statements","statement","ddlStatement","dmlStatement","transactionStatement","replicationStatement","preparedStatement","compoundStatement","administrationStatement","utilityStatement","createDatabase","createEvent","createIndex","createLogfileGroup","createProcedure","createFunction","createRole","createServer","createTable","createTablespaceInnodb","createTablespaceNdb","createTrigger","withClause","commonTableExpressions","cteName","cteColumnName","createView","createDatabaseOption","charSet","currentUserExpression","ownerStatement","scheduleExpression","timestampValue","intervalExpr","intervalType","enableType","indexType","indexOption","procedureParameter","functionParameter","routineOption","serverOption","createDefinitions","createDefinition","columnDefinition","columnConstraint","tableConstraint","referenceDefinition","referenceAction","referenceControlType","indexColumnDefinition","tableOption","tableType","tablespaceStorage","partitionDefinitions","partitionFunctionDefinition","subpartitionFunctionDefinition","partitionDefinition","partitionDefinerAtom","partitionDefinerVector","subpartitionDefinition","partitionOption","alterDatabase","alterEvent","alterFunction","alterInstance","alterLogfileGroup","alterProcedure","alterServer","alterTable","alterTablespace","alterView","alterSpecification","alterPartitionSpecification","dropDatabase","dropEvent","dropIndex","dropLogfileGroup","dropProcedure","dropFunction","dropServer","dropTable","dropTablespace","dropTrigger","dropView","dropRole","setRole","renameTable","renameTableClause","truncateTable","callStatement","deleteStatement","doStatement","handlerStatement","insertStatement","loadDataStatement","loadXmlStatement","replaceStatement","selectStatement","updateStatement","valuesStatement","insertStatementValue","updatedElement","assignmentField","lockClause","singleDeleteStatement","multipleDeleteStatement","handlerOpenStatement","handlerReadIndexStatement","handlerReadStatement","handlerCloseStatement","singleUpdateStatement","multipleUpdateStatement","orderByClause","orderByExpression","tableSources","tableSource","tableSourceItem","indexHint","indexHintType","joinPart","joinSpec","queryExpression","queryExpressionNointo","querySpecification","querySpecificationNointo","unionParenthesis","unionStatement","lateralStatement","jsonTable","jsonColumnList","jsonColumn","jsonOnEmpty","jsonOnError","selectSpec","selectElements","selectElementAlias","selectElement","selectIntoExpression","selectFieldsInto","selectLinesInto","fromClause","groupByClause","havingClause","windowClause","groupByItem","limitClause","limitClauseAtom","startTransaction","beginWork","commitWork","rollbackWork","savepointStatement","rollbackStatement","releaseStatement","lockTables","unlockTables","setAutocommitStatement","setTransactionStatement","transactionMode","lockTableElement","lockAction","transactionOption","transactionLevel","changeMaster","changeReplicationFilter","purgeBinaryLogs","resetMaster","resetSlave","startSlave","stopSlave","startGroupReplication","stopGroupReplication","masterOption","stringMasterOption","decimalMasterOption","boolMasterOption","channelOption","replicationFilter","tablePair","threadType","untilOption","connectionOption","gtuidSet","xaStartTransaction","xaEndTransaction","xaPrepareStatement","xaCommitWork","xaRollbackWork","xaRecoverWork","prepareStatement","executeStatement","deallocatePrepare","routineBody","blockStatement","caseStatement","ifStatement","iterateStatement","leaveStatement","loopStatement","repeatStatement","returnStatement","whileStatement","cursorStatement","declareVariable","declareCondition","declareCursor","declareHandler","handlerConditionValue","procedureSqlStatement","caseAlternative","elifAlternative","alterUser","createUser","dropUser","grantStatement","roleOption","grantProxy","renameUser","revokeStatement","revokeProxy","setPasswordStatement","userSpecification","newUserAuthOptionList","newUserAuthOption","authOptionClause","authenticationRule","tlsOption","userResourceOption","userPasswordOption","userLockOption","privelegeClause","privilege","privilegeLevel","renameUserClause","analyzeTable","checkTable","checksumTable","optimizeTable","repairTable","checkTableOption","createUdfunction","installPlugin","uninstallPlugin","setStatement","showStatement","variableClause","showCommonEntity","showFilter","showGlobalInfoClause","showSchemaEntity","showProfileType","binlogStatement","cacheIndexStatement","flushStatement","killStatement","loadIndexIntoCache","resetStatement","shutdownStatement","tableIndexes","flushOption","flushTableOption","loadedTableIndexes","simpleDescribeStatement","fullDescribeStatement","helpStatement","useStatement","signalStatement","resignalStatement","signalConditionInformation","withStatement","tableStatement","diagnosticsStatement","diagnosticsConditionInformationName","describeObjectClause","fullId","tableName","tableNames","userOrRoleName","userOrRoleNameList","newRoleNameList","newRoleName","roleNameList","roleName","fullColumnName","databaseName","indexName","constraintName","triggerName","indexNameList","indexColumnName","simpleUserName","hostName","userNameList","newUserName","userName","mysqlVariable","charsetName","collationName","engineName","engineNameBase","uuidSet","xid","xuidStringId","authPlugin","uid","simpleId","dottedId","decimalLiteral","fileSizeLiteral","stringLiteral","booleanLiteral","hexadecimalLiteral","nullNotnull","constant","dataType","collectionOptions","convertedDataType","lengthOneDimension","lengthTwoDimension","lengthTwoOptionalDimension","uidList","fullColumnNameList","tables","indexColumnNames","expressions","expressionsWithDefaults","constants","simpleStrings","userVariables","defaultValue","currentTimestamp","expressionOrDefault","ifExists","ifNotExists","orReplace","waitNowaitClause","functionCall","specificFunction","caseFuncAlternative","levelsInWeightString","levelInWeightListElement","aggregateWindowedFunction","nonAggregateWindowedFunction","overClause","windowSpec","windowName","frameClause","frameUnits","frameExtent","frameBetween","frameRange","partitionClause","scalarFunctionName","passwordFunctionClause","functionArgs","functionArg","expression","predicate","expressionAtom","unaryOperator","comparisonOperator","logicalOperator","bitOperator","multOperator","addOperator","jsonOperator","charsetNameBase","transactionLevelBase","privilegesBase","intervalTypeBase","dataTypeBase","keywordsCanBeId","functionNameBase"]}get grammarFileName(){return"MySqlParser.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new Ge(this,t,e)}constructor(e){super(e),this.interpreter=new Re(this,t._ATN,t.decisionsToDFA,new Ae)}root(){let e,s=new tI(this.context,this.state);this.enterRule(s,0,t.RULE_root);try{this.enterOuterAlt(s,1),this.state=751,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&84935296||!(e-33&-32)&&1<<e-33&537147393||!(e-71&-32)&&1<<e-71&2151694339||!(e-103&-32)&&1<<e-103&536936449||!(e-138&-32)&&1<<e-138&442923||!(e-172&-32)&&1<<e-172&1135617||!(e-344&-32)&&1<<e-344&33558659||390===e||399===e||!(e-432&-32)&&1<<e-432&16782337||!(e-560&-32)&&1<<e-560&537919489||597===e||604===e||!(e-629&-32)&&1<<e-629&134217793||661===e||681===e||708===e||739===e||1133===e)&&(this.state=750,this.statements()),this.state=753,this.match(t.EOF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statements(){let e,s=new eI(this.context,this.state);this.enterRule(s,2,t.RULE_statements);try{switch(this.state=763,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,2,this.context)){case 1:this.enterOuterAlt(s,1),this.state=755,this.statement(),this.state=757,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1136===e&&(this.state=756,this.match(t.SEMI));break;case 2:this.enterOuterAlt(s,2),this.state=759,this.statement(),this.state=760,this.match(t.SEMI),this.state=761,this.statements()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statement(){let e=new sI(this.context,this.state);this.enterRule(e,4,t.RULE_statement);try{switch(this.state=772,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,3,this.context)){case 1:this.enterOuterAlt(e,1),this.state=765,this.ddlStatement();break;case 2:this.enterOuterAlt(e,2),this.state=766,this.dmlStatement();break;case 3:this.enterOuterAlt(e,3),this.state=767,this.transactionStatement();break;case 4:this.enterOuterAlt(e,4),this.state=768,this.replicationStatement();break;case 5:this.enterOuterAlt(e,5),this.state=769,this.preparedStatement();break;case 6:this.enterOuterAlt(e,6),this.state=770,this.administrationStatement();break;case 7:this.enterOuterAlt(e,7),this.state=771,this.utilityStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ddlStatement(){let e=new aI(this.context,this.state);this.enterRule(e,6,t.RULE_ddlStatement);try{switch(this.state=812,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,4,this.context)){case 1:this.enterOuterAlt(e,1),this.state=774,this.createDatabase();break;case 2:this.enterOuterAlt(e,2),this.state=775,this.createEvent();break;case 3:this.enterOuterAlt(e,3),this.state=776,this.createIndex();break;case 4:this.enterOuterAlt(e,4),this.state=777,this.createLogfileGroup();break;case 5:this.enterOuterAlt(e,5),this.state=778,this.createProcedure();break;case 6:this.enterOuterAlt(e,6),this.state=779,this.createFunction();break;case 7:this.enterOuterAlt(e,7),this.state=780,this.createServer();break;case 8:this.enterOuterAlt(e,8),this.state=781,this.createTable();break;case 9:this.enterOuterAlt(e,9),this.state=782,this.createTablespaceInnodb();break;case 10:this.enterOuterAlt(e,10),this.state=783,this.createTablespaceNdb();break;case 11:this.enterOuterAlt(e,11),this.state=784,this.createTrigger();break;case 12:this.enterOuterAlt(e,12),this.state=785,this.createView();break;case 13:this.enterOuterAlt(e,13),this.state=786,this.createRole();break;case 14:this.enterOuterAlt(e,14),this.state=787,this.alterDatabase();break;case 15:this.enterOuterAlt(e,15),this.state=788,this.alterEvent();break;case 16:this.enterOuterAlt(e,16),this.state=789,this.alterFunction();break;case 17:this.enterOuterAlt(e,17),this.state=790,this.alterInstance();break;case 18:this.enterOuterAlt(e,18),this.state=791,this.alterLogfileGroup();break;case 19:this.enterOuterAlt(e,19),this.state=792,this.alterProcedure();break;case 20:this.enterOuterAlt(e,20),this.state=793,this.alterServer();break;case 21:this.enterOuterAlt(e,21),this.state=794,this.alterTable();break;case 22:this.enterOuterAlt(e,22),this.state=795,this.alterTablespace();break;case 23:this.enterOuterAlt(e,23),this.state=796,this.alterView();break;case 24:this.enterOuterAlt(e,24),this.state=797,this.dropDatabase();break;case 25:this.enterOuterAlt(e,25),this.state=798,this.dropEvent();break;case 26:this.enterOuterAlt(e,26),this.state=799,this.dropIndex();break;case 27:this.enterOuterAlt(e,27),this.state=800,this.dropLogfileGroup();break;case 28:this.enterOuterAlt(e,28),this.state=801,this.dropProcedure();break;case 29:this.enterOuterAlt(e,29),this.state=802,this.dropFunction();break;case 30:this.enterOuterAlt(e,30),this.state=803,this.dropServer();break;case 31:this.enterOuterAlt(e,31),this.state=804,this.dropTable();break;case 32:this.enterOuterAlt(e,32),this.state=805,this.dropTablespace();break;case 33:this.enterOuterAlt(e,33),this.state=806,this.dropTrigger();break;case 34:this.enterOuterAlt(e,34),this.state=807,this.dropView();break;case 35:this.enterOuterAlt(e,35),this.state=808,this.dropRole();break;case 36:this.enterOuterAlt(e,36),this.state=809,this.setRole();break;case 37:this.enterOuterAlt(e,37),this.state=810,this.renameTable();break;case 38:this.enterOuterAlt(e,38),this.state=811,this.truncateTable()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dmlStatement(){let e=new iI(this.context,this.state);this.enterRule(e,8,t.RULE_dmlStatement);try{switch(this.state=827,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,5,this.context)){case 1:this.enterOuterAlt(e,1),this.state=814,this.selectStatement();break;case 2:this.enterOuterAlt(e,2),this.state=815,this.insertStatement();break;case 3:this.enterOuterAlt(e,3),this.state=816,this.updateStatement();break;case 4:this.enterOuterAlt(e,4),this.state=817,this.deleteStatement();break;case 5:this.enterOuterAlt(e,5),this.state=818,this.replaceStatement();break;case 6:this.enterOuterAlt(e,6),this.state=819,this.callStatement();break;case 7:this.enterOuterAlt(e,7),this.state=820,this.loadDataStatement();break;case 8:this.enterOuterAlt(e,8),this.state=821,this.loadXmlStatement();break;case 9:this.enterOuterAlt(e,9),this.state=822,this.doStatement();break;case 10:this.enterOuterAlt(e,10),this.state=823,this.handlerStatement();break;case 11:this.enterOuterAlt(e,11),this.state=824,this.valuesStatement();break;case 12:this.enterOuterAlt(e,12),this.state=825,this.withStatement();break;case 13:this.enterOuterAlt(e,13),this.state=826,this.tableStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transactionStatement(){let e=new rI(this.context,this.state);this.enterRule(e,10,t.RULE_transactionStatement);try{switch(this.state=838,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,6,this.context)){case 1:this.enterOuterAlt(e,1),this.state=829,this.startTransaction();break;case 2:this.enterOuterAlt(e,2),this.state=830,this.beginWork();break;case 3:this.enterOuterAlt(e,3),this.state=831,this.commitWork();break;case 4:this.enterOuterAlt(e,4),this.state=832,this.rollbackWork();break;case 5:this.enterOuterAlt(e,5),this.state=833,this.savepointStatement();break;case 6:this.enterOuterAlt(e,6),this.state=834,this.rollbackStatement();break;case 7:this.enterOuterAlt(e,7),this.state=835,this.releaseStatement();break;case 8:this.enterOuterAlt(e,8),this.state=836,this.lockTables();break;case 9:this.enterOuterAlt(e,9),this.state=837,this.unlockTables()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replicationStatement(){let e=new cI(this.context,this.state);this.enterRule(e,12,t.RULE_replicationStatement);try{switch(this.state=855,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,7,this.context)){case 1:this.enterOuterAlt(e,1),this.state=840,this.changeMaster();break;case 2:this.enterOuterAlt(e,2),this.state=841,this.changeReplicationFilter();break;case 3:this.enterOuterAlt(e,3),this.state=842,this.purgeBinaryLogs();break;case 4:this.enterOuterAlt(e,4),this.state=843,this.resetMaster();break;case 5:this.enterOuterAlt(e,5),this.state=844,this.resetSlave();break;case 6:this.enterOuterAlt(e,6),this.state=845,this.startSlave();break;case 7:this.enterOuterAlt(e,7),this.state=846,this.stopSlave();break;case 8:this.enterOuterAlt(e,8),this.state=847,this.startGroupReplication();break;case 9:this.enterOuterAlt(e,9),this.state=848,this.stopGroupReplication();break;case 10:this.enterOuterAlt(e,10),this.state=849,this.xaStartTransaction();break;case 11:this.enterOuterAlt(e,11),this.state=850,this.xaEndTransaction();break;case 12:this.enterOuterAlt(e,12),this.state=851,this.xaPrepareStatement();break;case 13:this.enterOuterAlt(e,13),this.state=852,this.xaCommitWork();break;case 14:this.enterOuterAlt(e,14),this.state=853,this.xaRollbackWork();break;case 15:this.enterOuterAlt(e,15),this.state=854,this.xaRecoverWork()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}preparedStatement(){let e=new nI(this.context,this.state);this.enterRule(e,14,t.RULE_preparedStatement);try{switch(this.state=860,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PREPARE:this.enterOuterAlt(e,1),this.state=857,this.prepareStatement();break;case t.EXECUTE:this.enterOuterAlt(e,2),this.state=858,this.executeStatement();break;case t.DROP:case t.DEALLOCATE:this.enterOuterAlt(e,3),this.state=859,this.deallocatePrepare();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}compoundStatement(){let e=new hI(this.context,this.state);this.enterRule(e,16,t.RULE_compoundStatement);try{switch(this.state=872,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,9,this.context)){case 1:this.enterOuterAlt(e,1),this.state=862,this.blockStatement();break;case 2:this.enterOuterAlt(e,2),this.state=863,this.caseStatement();break;case 3:this.enterOuterAlt(e,3),this.state=864,this.ifStatement();break;case 4:this.enterOuterAlt(e,4),this.state=865,this.leaveStatement();break;case 5:this.enterOuterAlt(e,5),this.state=866,this.loopStatement();break;case 6:this.enterOuterAlt(e,6),this.state=867,this.repeatStatement();break;case 7:this.enterOuterAlt(e,7),this.state=868,this.whileStatement();break;case 8:this.enterOuterAlt(e,8),this.state=869,this.iterateStatement();break;case 9:this.enterOuterAlt(e,9),this.state=870,this.returnStatement();break;case 10:this.enterOuterAlt(e,10),this.state=871,this.cursorStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}administrationStatement(){let e=new EI(this.context,this.state);this.enterRule(e,18,t.RULE_administrationStatement);try{switch(this.state=899,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,10,this.context)){case 1:this.enterOuterAlt(e,1),this.state=874,this.alterUser();break;case 2:this.enterOuterAlt(e,2),this.state=875,this.createUser();break;case 3:this.enterOuterAlt(e,3),this.state=876,this.dropUser();break;case 4:this.enterOuterAlt(e,4),this.state=877,this.grantStatement();break;case 5:this.enterOuterAlt(e,5),this.state=878,this.grantProxy();break;case 6:this.enterOuterAlt(e,6),this.state=879,this.renameUser();break;case 7:this.enterOuterAlt(e,7),this.state=880,this.revokeStatement();break;case 8:this.enterOuterAlt(e,8),this.state=881,this.revokeProxy();break;case 9:this.enterOuterAlt(e,9),this.state=882,this.analyzeTable();break;case 10:this.enterOuterAlt(e,10),this.state=883,this.checkTable();break;case 11:this.enterOuterAlt(e,11),this.state=884,this.checksumTable();break;case 12:this.enterOuterAlt(e,12),this.state=885,this.optimizeTable();break;case 13:this.enterOuterAlt(e,13),this.state=886,this.repairTable();break;case 14:this.enterOuterAlt(e,14),this.state=887,this.createUdfunction();break;case 15:this.enterOuterAlt(e,15),this.state=888,this.installPlugin();break;case 16:this.enterOuterAlt(e,16),this.state=889,this.uninstallPlugin();break;case 17:this.enterOuterAlt(e,17),this.state=890,this.setStatement();break;case 18:this.enterOuterAlt(e,18),this.state=891,this.showStatement();break;case 19:this.enterOuterAlt(e,19),this.state=892,this.binlogStatement();break;case 20:this.enterOuterAlt(e,20),this.state=893,this.cacheIndexStatement();break;case 21:this.enterOuterAlt(e,21),this.state=894,this.flushStatement();break;case 22:this.enterOuterAlt(e,22),this.state=895,this.killStatement();break;case 23:this.enterOuterAlt(e,23),this.state=896,this.loadIndexIntoCache();break;case 24:this.enterOuterAlt(e,24),this.state=897,this.resetStatement();break;case 25:this.enterOuterAlt(e,25),this.state=898,this.shutdownStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}utilityStatement(){let e=new TI(this.context,this.state);this.enterRule(e,20,t.RULE_utilityStatement);try{switch(this.state=908,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,11,this.context)){case 1:this.enterOuterAlt(e,1),this.state=901,this.simpleDescribeStatement();break;case 2:this.enterOuterAlt(e,2),this.state=902,this.fullDescribeStatement();break;case 3:this.enterOuterAlt(e,3),this.state=903,this.helpStatement();break;case 4:this.enterOuterAlt(e,4),this.state=904,this.useStatement();break;case 5:this.enterOuterAlt(e,5),this.state=905,this.signalStatement();break;case 6:this.enterOuterAlt(e,6),this.state=906,this.resignalStatement();break;case 7:this.enterOuterAlt(e,7),this.state=907,this.diagnosticsStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createDatabase(){let e,s=new oI(this.context,this.state);this.enterRule(s,22,t.RULE_createDatabase);try{if(this.enterOuterAlt(s,1),1===(this.state=910,this.match(t.CREATE),this.state=911,s._dbFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),39===e||150===e?(this.errorHandler.reportMatch(this),this.consume()):s._dbFormat=this.errorHandler.recoverInline(this),this.state=913,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,12,this.context)))this.state=912,this.ifNotExists();for(this.state=915,this.uid(),this.state=919,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-25&-32)&&1<<e-25&131077||134===e||222===e||405===e||841===e;)this.state=916,this.createDatabaseOption(),this.state=921,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createEvent(){let e,s=new RI(this.context,this.state);this.enterRule(s,24,t.RULE_createEvent);try{if(this.enterOuterAlt(s,1),1===(this.state=922,this.match(t.CREATE),this.state=924,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=923,this.ownerStatement()),this.state=926,this.match(t.EVENT),this.state=928,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)))this.state=927,this.ifNotExists();this.state=930,this.fullId(),this.state=931,this.match(t.ON),this.state=932,this.match(t.SCHEDULE),this.state=933,this.scheduleExpression(),this.state=940,this.errorHandler.sync(this),e=this.tokenStream.LA(1),118===e&&(this.state=934,this.match(t.ON),this.state=935,this.match(t.COMPLETION),this.state=937,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=936,this.match(t.NOT)),this.state=939,this.match(t.PRESERVE)),this.state=943,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(396===e||403===e)&&(this.state=942,this.enableType()),this.state=947,this.errorHandler.sync(this),e=this.tokenStream.LA(1),368===e&&(this.state=945,this.match(t.COMMENT),this.state=946,this.match(t.STRING_LITERAL)),this.state=949,this.match(t.DO),this.state=950,this.routineBody()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createIndex(){let e,s=new AI(this.context,this.state);this.enterRule(s,26,t.RULE_createIndex);try{for(this.enterOuterAlt(s,1),this.state=952,this.match(t.CREATE),this.state=954,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(531===e||537===e)&&(this.state=953,s._intimeAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),531===e||537===e?(this.errorHandler.reportMatch(this),this.consume()):s._intimeAction=this.errorHandler.recoverInline(this)),this.state=957,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(69===e||159===e||181===e)&&(this.state=956,s._indexCategory=this.tokenStream.LT(1),e=this.tokenStream.LA(1),69===e||159===e||181===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexCategory=this.errorHandler.recoverInline(this)),this.state=959,this.match(t.INDEX),this.state=960,this.uid(),this.state=962,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=961,this.indexType()),this.state=964,this.match(t.ON),this.state=965,this.tableName(),this.state=966,this.indexColumnNames(),this.state=970,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=967,this.indexOption(),this.state=972,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=985,this.errorHandler.sync(this),e=this.tokenStream.LA(1);103===e||336===e;){switch(this.state=983,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALGORITHM:this.state=973,this.match(t.ALGORITHM),this.state=975,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=974,this.match(t.EQUAL_SYMBOL)),this.state=977,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||384===e||454===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this);break;case t.LOCK:this.state=978,this.match(t.LOCK),this.state=980,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=979,this.match(t.EQUAL_SYMBOL)),this.state=982,s._lockType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||419===e||529===e||611===e?(this.errorHandler.reportMatch(this),this.consume()):s._lockType=this.errorHandler.recoverInline(this);break;default:throw new he(this)}this.state=987,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createLogfileGroup(){let e,s=new SI(this.context,this.state);this.enterRule(s,28,t.RULE_createLogfileGroup);try{this.enterOuterAlt(s,1),this.state=988,this.match(t.CREATE),this.state=989,this.match(t.LOGFILE),this.state=990,this.match(t.GROUP),this.state=991,this.uid(),this.state=992,this.match(t.ADD),this.state=993,this.match(t.UNDOFILE),this.state=994,s._undoFile=this.match(t.STRING_LITERAL),this.state=1e3,this.errorHandler.sync(this),e=this.tokenStream.LA(1),453===e&&(this.state=995,this.match(t.INITIAL_SIZE),this.state=997,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=996,this.match(t.EQUAL_SYMBOL)),this.state=999,s._initSize=this.fileSizeLiteral()),this.state=1007,this.errorHandler.sync(this),e=this.tokenStream.LA(1),660===e&&(this.state=1002,this.match(t.UNDO_BUFFER_SIZE),this.state=1004,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1003,this.match(t.EQUAL_SYMBOL)),this.state=1006,s._undoSize=this.fileSizeLiteral()),this.state=1014,this.errorHandler.sync(this),e=this.tokenStream.LA(1),572===e&&(this.state=1009,this.match(t.REDO_BUFFER_SIZE),this.state=1011,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1010,this.match(t.EQUAL_SYMBOL)),this.state=1013,s._redoSize=this.fileSizeLiteral()),this.state=1021,this.errorHandler.sync(this),e=this.tokenStream.LA(1),528===e&&(this.state=1016,this.match(t.NODEGROUP),this.state=1018,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1017,this.match(t.EQUAL_SYMBOL)),this.state=1020,this.uid()),this.state=1024,this.errorHandler.sync(this),e=this.tokenStream.LA(1),674===e&&(this.state=1023,this.match(t.WAIT)),this.state=1031,this.errorHandler.sync(this),e=this.tokenStream.LA(1),368===e&&(this.state=1026,this.match(t.COMMENT),this.state=1028,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1027,this.match(t.EQUAL_SYMBOL)),this.state=1030,s._comment=this.match(t.STRING_LITERAL)),this.state=1033,this.match(t.ENGINE),this.state=1035,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1034,this.match(t.EQUAL_SYMBOL)),this.state=1037,this.engineName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createProcedure(){let e,s=new lI(this.context,this.state);this.enterRule(s,30,t.RULE_createProcedure);try{let a;for(this.enterOuterAlt(s,1),this.state=1039,this.match(t.CREATE),this.state=1041,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=1040,this.ownerStatement()),this.state=1043,this.match(t.PROCEDURE),this.state=1044,this.fullId(),this.state=1045,this.match(t.LR_BRACKET),this.state=1047,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18880721||!(e-117&-32)&&1<<e-117&2172658065||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1046,this.procedureParameter()),this.state=1053,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=1049,this.match(t.COMMA),this.state=1050,this.procedureParameter(),this.state=1055,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=1056,this.match(t.RR_BRACKET),this.state=1060,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,43,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1057,this.routineOption()),this.state=1062,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,43,this.context);this.state=1063,this.routineBody()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createFunction(){let e,s=new OI(this.context,this.state);this.enterRule(s,32,t.RULE_createFunction);try{let a;if(this.enterOuterAlt(s,1),1===(this.state=1065,this.match(t.CREATE),this.state=1067,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=1066,this.ownerStatement()),this.state=1070,this.errorHandler.sync(this),e=this.tokenStream.LA(1),335===e&&(this.state=1069,this.match(t.AGGREGATE)),this.state=1072,this.match(t.FUNCTION),this.state=1074,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)))this.state=1073,this.ifNotExists();for(this.state=1076,this.fullId(),this.state=1077,this.match(t.LR_BRACKET),this.state=1079,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1078,this.functionParameter()),this.state=1085,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=1081,this.match(t.COMMA),this.state=1082,this.functionParameter(),this.state=1087,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=1088,this.match(t.RR_BRACKET),this.state=1089,this.match(t.RETURNS),this.state=1090,this.dataType(),this.state=1094,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,49,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1091,this.routineOption()),this.state=1096,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,49,this.context);switch(this.state=1099,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.ANALYZE:case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CALL:case t.CHANGE:case t.CHECK:case t.CONDITION:case t.CREATE:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DIAGNOSTICS:case t.DROP:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.EXPLAIN:case t.GET:case t.GRANT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.KILL:case t.LATERAL:case t.LEFT:case t.LOAD:case t.LOCK:case t.NUMBER:case t.OPTIMIZE:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.PURGE:case t.RELEASE:case t.RENAME:case t.REPEAT:case t.REPLACE:case t.RESIGNAL:case t.REVOKE:case t.RIGHT:case t.SCHEMA:case t.SELECT:case t.SET:case t.SHOW:case t.SIGNAL:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.TABLE:case t.UNLOCK:case t.UPDATE:case t.USE:case t.VALUES:case t.WITH:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.LR_BRACKET:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=1097,this.routineBody();break;case t.RETURN:this.state=1098,this.returnStatement();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createRole(){let e=new II(this.context,this.state);this.enterRule(e,34,t.RULE_createRole);try{if(this.enterOuterAlt(e,1),1===(this.state=1101,this.match(t.CREATE),this.state=1102,this.match(t.ROLE),this.state=1104,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,51,this.context)))this.state=1103,this.ifNotExists();this.state=1106,this.newRoleNameList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createServer(){let e,s=new uI(this.context,this.state);this.enterRule(s,36,t.RULE_createServer);try{for(this.enterOuterAlt(s,1),this.state=1108,this.match(t.CREATE),this.state=1109,this.match(t.SERVER),this.state=1110,this.uid(),this.state=1111,this.match(t.FOREIGN),this.state=1112,this.match(t.DATA),this.state=1113,this.match(t.WRAPPER),this.state=1114,s._wrapperName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),514===e||1148===e?(this.errorHandler.reportMatch(this),this.consume()):s._wrapperName=this.errorHandler.recoverInline(this),this.state=1115,this.match(t.OPTIONS),this.state=1116,this.match(t.LR_BRACKET),this.state=1117,this.serverOption(),this.state=1122,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=1118,this.match(t.COMMA),this.state=1119,this.serverOption(),this.state=1124,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1125,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createTable(){let e,s=new NI(this.context,this.state);this.enterRule(s,38,t.RULE_createTable);try{switch(this.state=1205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,71,this.context)){case 1:if(s=new LI(s),this.enterOuterAlt(s,1),1===(this.state=1127,this.match(t.CREATE),this.state=1129,this.errorHandler.sync(this),e=this.tokenStream.LA(1),649===e&&(this.state=1128,this.match(t.TEMPORARY)),this.state=1131,this.match(t.TABLE),this.state=1133,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,54,this.context)))this.state=1132,this.ifNotExists();switch(this.state=1135,this.tableName(),this.state=1143,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LIKE:this.state=1136,this.match(t.LIKE),this.state=1137,this.tableName();break;case t.LR_BRACKET:this.state=1138,this.match(t.LR_BRACKET),this.state=1139,this.match(t.LIKE),this.state=1140,s._parenthesisTable=this.tableName(),this.state=1141,this.match(t.RR_BRACKET);break;default:throw new he(this)}break;case 2:if(s=new _I(s),this.enterOuterAlt(s,2),1===(this.state=1145,this.match(t.CREATE),this.state=1147,this.errorHandler.sync(this),e=this.tokenStream.LA(1),649===e&&(this.state=1146,this.match(t.TEMPORARY)),this.state=1149,this.match(t.TABLE),this.state=1151,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,57,this.context)))this.state=1150,this.ifNotExists();if(1===(this.state=1153,this.tableName(),this.state=1155,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,58,this.context)))this.state=1154,this.createDefinitions();if(this.state=1167,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-25&-32)&&1<<e-25&131077||81===e||180===e||222===e||!(e-341&-32)&&1<<e-341&134316039||!(e-373&-32)&&1<<e-373&1081353||!(e-405&-32)&&1<<e-405&19||455===e||467===e||500===e||510===e||!(e-543&-32)&&1<<e-543&269||!(e-602&-32)&&1<<e-602&3892314113||!(e-636&-32)&&1<<e-636&268289||841===e||875===e||1e3===e||1148===e)for(this.state=1157,this.tableOption(),this.state=1164,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-25&-32)&&1<<e-25&131077||81===e||180===e||222===e||!(e-341&-32)&&1<<e-341&134316039||!(e-373&-32)&&1<<e-373&1081353||!(e-405&-32)&&1<<e-405&19||455===e||467===e||500===e||510===e||!(e-543&-32)&&1<<e-543&269||!(e-602&-32)&&1<<e-602&3892314113||!(e-636&-32)&&1<<e-636&268289||841===e||875===e||1e3===e||1135===e||1148===e;)this.state=1159,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=1158,this.match(t.COMMA)),this.state=1161,this.tableOption(),this.state=1166,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1170,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=1169,this.partitionDefinitions()),this.state=1173,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(78===e||141===e)&&(this.state=1172,s._keyViolate=this.tokenStream.LT(1),e=this.tokenStream.LA(1),78===e||141===e?(this.errorHandler.reportMatch(this),this.consume()):s._keyViolate=this.errorHandler.recoverInline(this)),this.state=1176,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=1175,this.match(t.AS)),this.state=1178,this.selectStatement();break;case 3:if(s=new CI(s),this.enterOuterAlt(s,3),1===(this.state=1180,this.match(t.CREATE),this.state=1182,this.errorHandler.sync(this),e=this.tokenStream.LA(1),649===e&&(this.state=1181,this.match(t.TEMPORARY)),this.state=1184,this.match(t.TABLE),this.state=1186,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,66,this.context)))this.state=1185,this.ifNotExists();if(this.state=1188,this.tableName(),this.state=1189,this.createDefinitions(),this.state=1200,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-25&-32)&&1<<e-25&131077||81===e||180===e||222===e||!(e-341&-32)&&1<<e-341&134316039||!(e-373&-32)&&1<<e-373&1081353||!(e-405&-32)&&1<<e-405&19||455===e||467===e||500===e||510===e||!(e-543&-32)&&1<<e-543&269||!(e-602&-32)&&1<<e-602&3892314113||!(e-636&-32)&&1<<e-636&268289||841===e||875===e||1e3===e||1148===e)for(this.state=1190,this.tableOption(),this.state=1197,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-25&-32)&&1<<e-25&131077||81===e||180===e||222===e||!(e-341&-32)&&1<<e-341&134316039||!(e-373&-32)&&1<<e-373&1081353||!(e-405&-32)&&1<<e-405&19||455===e||467===e||500===e||510===e||!(e-543&-32)&&1<<e-543&269||!(e-602&-32)&&1<<e-602&3892314113||!(e-636&-32)&&1<<e-636&268289||841===e||875===e||1e3===e||1135===e||1148===e;)this.state=1192,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=1191,this.match(t.COMMA)),this.state=1194,this.tableOption(),this.state=1199,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1203,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=1202,this.partitionDefinitions())}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createTablespaceInnodb(){let e,s=new PI(this.context,this.state);this.enterRule(s,40,t.RULE_createTablespaceInnodb);try{this.enterOuterAlt(s,1),this.state=1207,this.match(t.CREATE),this.state=1208,this.match(t.TABLESPACE),this.state=1209,this.uid(),this.state=1210,this.match(t.ADD),this.state=1211,this.match(t.DATAFILE),this.state=1212,s._datafile=this.match(t.STRING_LITERAL),this.state=1216,this.errorHandler.sync(this),e=this.tokenStream.LA(1),428===e&&(this.state=1213,this.match(t.FILE_BLOCK_SIZE),this.state=1214,this.match(t.EQUAL_SYMBOL),this.state=1215,s._fileBlockSize=this.fileSizeLiteral()),this.state=1223,this.errorHandler.sync(this),e=this.tokenStream.LA(1),409===e&&(this.state=1218,this.match(t.ENGINE),this.state=1220,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1219,this.match(t.EQUAL_SYMBOL)),this.state=1222,this.engineName())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createTablespaceNdb(){let e,s=new MI(this.context,this.state);this.enterRule(s,42,t.RULE_createTablespaceNdb);try{this.enterOuterAlt(s,1),this.state=1225,this.match(t.CREATE),this.state=1226,this.match(t.TABLESPACE),this.state=1227,this.uid(),this.state=1228,this.match(t.ADD),this.state=1229,this.match(t.DATAFILE),this.state=1230,s._datafile=this.match(t.STRING_LITERAL),this.state=1231,this.match(t.USE),this.state=1232,this.match(t.LOGFILE),this.state=1233,this.match(t.GROUP),this.state=1234,this.uid(),this.state=1240,this.errorHandler.sync(this),e=this.tokenStream.LA(1),423===e&&(this.state=1235,this.match(t.EXTENT_SIZE),this.state=1237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1236,this.match(t.EQUAL_SYMBOL)),this.state=1239,s._extentSize=this.fileSizeLiteral()),this.state=1247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),453===e&&(this.state=1242,this.match(t.INITIAL_SIZE),this.state=1244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1243,this.match(t.EQUAL_SYMBOL)),this.state=1246,s._initialSize=this.fileSizeLiteral()),this.state=1254,this.errorHandler.sync(this),e=this.tokenStream.LA(1),341===e&&(this.state=1249,this.match(t.AUTOEXTEND_SIZE),this.state=1251,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1250,this.match(t.EQUAL_SYMBOL)),this.state=1253,s._autoextendSize=this.fileSizeLiteral()),this.state=1261,this.errorHandler.sync(this),e=this.tokenStream.LA(1),501===e&&(this.state=1256,this.match(t.MAX_SIZE),this.state=1258,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1257,this.match(t.EQUAL_SYMBOL)),this.state=1260,s._maxSize=this.fileSizeLiteral()),this.state=1268,this.errorHandler.sync(this),e=this.tokenStream.LA(1),528===e&&(this.state=1263,this.match(t.NODEGROUP),this.state=1265,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1264,this.match(t.EQUAL_SYMBOL)),this.state=1267,this.uid()),this.state=1271,this.errorHandler.sync(this),e=this.tokenStream.LA(1),674===e&&(this.state=1270,this.match(t.WAIT)),this.state=1278,this.errorHandler.sync(this),e=this.tokenStream.LA(1),368===e&&(this.state=1273,this.match(t.COMMENT),this.state=1275,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1274,this.match(t.EQUAL_SYMBOL)),this.state=1277,s._comment=this.match(t.STRING_LITERAL)),this.state=1280,this.match(t.ENGINE),this.state=1282,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1281,this.match(t.EQUAL_SYMBOL)),this.state=1284,this.engineName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createTrigger(){let e,s=new dI(this.context,this.state);this.enterRule(s,44,t.RULE_createTrigger);try{if(this.enterOuterAlt(s,1),1===(this.state=1286,this.match(t.CREATE),this.state=1288,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=1287,this.ownerStatement()),this.state=1290,this.match(t.TRIGGER),this.state=1292,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)))this.state=1291,this.ifNotExists();if(1===(this.state=1294,s._thisTrigger=this.fullId(),this.state=1295,s._triggerTime=this.tokenStream.LT(1),e=this.tokenStream.LA(1),15===e||334===e?(this.errorHandler.reportMatch(this),this.consume()):s._triggerTime=this.errorHandler.recoverInline(this),this.state=1296,s._triggerEvent=this.tokenStream.LT(1),e=this.tokenStream.LA(1),44===e||85===e||184===e?(this.errorHandler.reportMatch(this),this.consume()):s._triggerEvent=this.errorHandler.recoverInline(this),this.state=1297,this.match(t.ON),this.state=1298,this.tableName(),this.state=1299,this.match(t.FOR),this.state=1300,this.match(t.EACH),this.state=1301,this.match(t.ROW),this.state=1304,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,91,this.context)))this.state=1302,s._triggerPlace=this.tokenStream.LT(1),e=this.tokenStream.LA(1),434===e||558===e?(this.errorHandler.reportMatch(this),this.consume()):s._triggerPlace=this.errorHandler.recoverInline(this),this.state=1303,s._otherTrigger=this.fullId();this.state=1306,this.routineBody()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}withClause(){let e=new UI(this.context,this.state);this.enterRule(e,46,t.RULE_withClause);try{if(this.enterOuterAlt(e,1),1===(this.state=1308,this.match(t.WITH),this.state=1310,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,92,this.context)))this.state=1309,this.match(t.RECURSIVE);this.state=1312,this.commonTableExpressions()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commonTableExpressions(){let e,s=new mI(this.context,this.state);this.enterRule(s,48,t.RULE_commonTableExpressions);try{if(this.enterOuterAlt(s,1),this.state=1314,this.cteName(),this.state=1326,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=1315,this.match(t.LR_BRACKET),this.state=1316,this.cteColumnName(),this.state=1321,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=1317,this.match(t.COMMA),this.state=1318,this.cteColumnName(),this.state=1323,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1324,this.match(t.RR_BRACKET)}if(1===(this.state=1328,this.match(t.AS),this.state=1329,this.match(t.LR_BRACKET),this.state=1330,this.dmlStatement(),this.state=1331,this.match(t.RR_BRACKET),this.state=1334,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,95,this.context)))this.state=1332,this.match(t.COMMA),this.state=1333,this.commonTableExpressions()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}cteName(){let e=new DI(this.context,this.state);this.enterRule(e,50,t.RULE_cteName);try{this.enterOuterAlt(e,1),this.state=1336,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cteColumnName(){let e=new pI(this.context,this.state);this.enterRule(e,52,t.RULE_cteColumnName);try{this.enterOuterAlt(e,1),this.state=1338,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createView(){let e,s=new gI(this.context,this.state);this.enterRule(s,54,t.RULE_createView);try{switch(this.enterOuterAlt(s,1),this.state=1340,this.match(t.CREATE),this.state=1342,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=1341,this.orReplace()),this.state=1347,this.errorHandler.sync(this),e=this.tokenStream.LA(1),336===e&&(this.state=1344,this.match(t.ALGORITHM),this.state=1345,this.match(t.EQUAL_SYMBOL),this.state=1346,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),506===e||650===e||658===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this)),this.state=1350,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=1349,this.ownerStatement()),this.state=1355,this.errorHandler.sync(this),e=this.tokenStream.LA(1),160===e&&(this.state=1352,this.match(t.SQL),this.state=1353,this.match(t.SECURITY),this.state=1354,s._secContext=this.tokenStream.LT(1),e=this.tokenStream.LA(1),392===e||460===e?(this.errorHandler.reportMatch(this),this.consume()):s._secContext=this.errorHandler.recoverInline(this)),this.state=1357,this.match(t.VIEW),this.state=1358,this.fullId(),this.state=1363,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=1359,this.match(t.LR_BRACKET),this.state=1360,this.uidList(),this.state=1361,this.match(t.RR_BRACKET)),this.state=1365,this.match(t.AS),this.state=1385,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,105,this.context)){case 1:this.state=1366,this.match(t.LR_BRACKET),this.state=1368,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=1367,this.withClause()),this.state=1370,this.selectStatement(),this.state=1371,this.match(t.RR_BRACKET);break;case 2:this.state=1374,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=1373,this.withClause()),this.state=1376,this.selectStatement(),this.state=1383,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=1377,this.match(t.WITH),this.state=1379,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(352===e||474===e)&&(this.state=1378,s._checkOption=this.tokenStream.LT(1),e=this.tokenStream.LA(1),352===e||474===e?(this.errorHandler.reportMatch(this),this.consume()):s._checkOption=this.errorHandler.recoverInline(this)),this.state=1381,this.match(t.CHECK),this.state=1382,this.match(t.OPTION))}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDatabaseOption(){let e,s=new xI(this.context,this.state);this.enterRule(s,56,t.RULE_createDatabaseOption);try{switch(this.state=1420,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:switch(this.enterOuterAlt(s,1),this.state=1388,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=1387,this.match(t.DEFAULT)),this.state=1390,this.charSet(),this.state=1392,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1391,this.match(t.EQUAL_SYMBOL)),this.state=1396,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BINARY:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:this.state=1394,this.charsetName();break;case t.DEFAULT:this.state=1395,this.match(t.DEFAULT);break;default:throw new he(this)}break;case 2:this.enterOuterAlt(s,2),this.state=1399,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=1398,this.match(t.DEFAULT)),this.state=1401,this.match(t.COLLATE),this.state=1403,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1402,this.match(t.EQUAL_SYMBOL)),this.state=1405,this.collationName();break;case 3:this.enterOuterAlt(s,3),this.state=1407,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=1406,this.match(t.DEFAULT)),this.state=1409,this.match(t.ENCRYPTION),this.state=1411,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1410,this.match(t.EQUAL_SYMBOL)),this.state=1413,this.match(t.STRING_LITERAL);break;case 4:this.enterOuterAlt(s,4),this.state=1414,this.match(t.READ),this.state=1415,this.match(t.ONLY),this.state=1417,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1416,this.match(t.EQUAL_SYMBOL)),this.state=1419,e=this.tokenStream.LA(1),42===e||1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}charSet(){let e=new kI(this.context,this.state);this.enterRule(e,58,t.RULE_charSet);try{switch(this.state=1427,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CHARACTER:this.enterOuterAlt(e,1),this.state=1422,this.match(t.CHARACTER),this.state=1423,this.match(t.SET);break;case t.CHARSET:this.enterOuterAlt(e,2),this.state=1424,this.match(t.CHARSET);break;case t.CHAR:this.enterOuterAlt(e,3),this.state=1425,this.match(t.CHAR),this.state=1426,this.match(t.SET);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}currentUserExpression(){let e=new HI(this.context,this.state);this.enterRule(e,60,t.RULE_currentUserExpression);try{if(1===(this.enterOuterAlt(e,1),this.state=1429,this.match(t.CURRENT_USER),this.state=1432,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,116,this.context)))this.state=1430,this.match(t.LR_BRACKET),this.state=1431,this.match(t.RR_BRACKET)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ownerStatement(){let e=new GI(this.context,this.state);this.enterRule(e,62,t.RULE_ownerStatement);try{switch(this.enterOuterAlt(e,1),this.state=1434,this.match(t.DEFINER),this.state=1435,this.match(t.EQUAL_SYMBOL),this.state=1438,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,117,this.context)){case 1:this.state=1436,this.userName();break;case 2:this.state=1437,this.currentUserExpression()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}scheduleExpression(){let e,s=new FI(this.context,this.state);this.enterRule(s,64,t.RULE_scheduleExpression);try{switch(this.state=1474,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AT:for(s=new vI(s),this.enterOuterAlt(s,1),this.state=1440,this.match(t.AT),this.state=1441,this.timestampValue(),this.state=1445,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1120===e;)this.state=1442,this.intervalExpr(),this.state=1447,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case t.EVERY:switch(s=new BI(s),this.enterOuterAlt(s,2),this.state=1448,this.match(t.EVERY),this.state=1451,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,119,this.context)){case 1:this.state=1449,this.decimalLiteral();break;case 2:this.state=1450,this.expression(0)}if(this.state=1453,this.intervalType(),this.state=1462,this.errorHandler.sync(this),e=this.tokenStream.LA(1),630===e)for(this.state=1454,this.match(t.STARTS),this.state=1455,s._startTimestamp=this.timestampValue(),this.state=1459,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1120===e;)this.state=1456,s._intervalExpr=this.intervalExpr(),s._startIntervals.push(s._intervalExpr),this.state=1461,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=1472,this.errorHandler.sync(this),e=this.tokenStream.LA(1),408===e)for(this.state=1464,this.match(t.ENDS),this.state=1465,s._endTimestamp=this.timestampValue(),this.state=1469,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1120===e;)this.state=1466,s._intervalExpr=this.intervalExpr(),s._endIntervals.push(s._intervalExpr),this.state=1471,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}timestampValue(){let e=new yI(this.context,this.state);this.enterRule(e,66,t.RULE_timestampValue);try{switch(this.state=1480,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,125,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1476,this.match(t.CURRENT_TIMESTAMP);break;case 2:this.enterOuterAlt(e,2),this.state=1477,this.stringLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=1478,this.decimalLiteral();break;case 4:this.enterOuterAlt(e,4),this.state=1479,this.expression(0)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}intervalExpr(){let e=new fI(this.context,this.state);this.enterRule(e,68,t.RULE_intervalExpr);try{switch(this.enterOuterAlt(e,1),this.state=1482,this.match(t.PLUS),this.state=1483,this.match(t.INTERVAL),this.state=1486,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,126,this.context)){case 1:this.state=1484,this.decimalLiteral();break;case 2:this.state=1485,this.expression(0)}this.state=1488,this.intervalType()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}intervalType(){let e=new YI(this.context,this.state);this.enterRule(e,70,t.RULE_intervalType);try{switch(this.state=1503,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:this.enterOuterAlt(e,1),this.state=1490,this.intervalTypeBase();break;case t.YEAR:this.enterOuterAlt(e,2),this.state=1491,this.match(t.YEAR);break;case t.YEAR_MONTH:this.enterOuterAlt(e,3),this.state=1492,this.match(t.YEAR_MONTH);break;case t.DAY_HOUR:this.enterOuterAlt(e,4),this.state=1493,this.match(t.DAY_HOUR);break;case t.DAY_MINUTE:this.enterOuterAlt(e,5),this.state=1494,this.match(t.DAY_MINUTE);break;case t.DAY_SECOND:this.enterOuterAlt(e,6),this.state=1495,this.match(t.DAY_SECOND);break;case t.HOUR_MINUTE:this.enterOuterAlt(e,7),this.state=1496,this.match(t.HOUR_MINUTE);break;case t.HOUR_SECOND:this.enterOuterAlt(e,8),this.state=1497,this.match(t.HOUR_SECOND);break;case t.MINUTE_SECOND:this.enterOuterAlt(e,9),this.state=1498,this.match(t.MINUTE_SECOND);break;case t.SECOND_MICROSECOND:this.enterOuterAlt(e,10),this.state=1499,this.match(t.SECOND_MICROSECOND);break;case t.MINUTE_MICROSECOND:this.enterOuterAlt(e,11),this.state=1500,this.match(t.MINUTE_MICROSECOND);break;case t.HOUR_MICROSECOND:this.enterOuterAlt(e,12),this.state=1501,this.match(t.HOUR_MICROSECOND);break;case t.DAY_MICROSECOND:this.enterOuterAlt(e,13),this.state=1502,this.match(t.DAY_MICROSECOND);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}enableType(){let e=new wI(this.context,this.state);this.enterRule(e,72,t.RULE_enableType);try{switch(this.state=1510,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,128,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1505,this.match(t.ENABLE);break;case 2:this.enterOuterAlt(e,2),this.state=1506,this.match(t.DISABLE);break;case 3:this.enterOuterAlt(e,3),this.state=1507,this.match(t.DISABLE),this.state=1508,this.match(t.ON),this.state=1509,this.match(t.SLAVE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexType(){let e,s=new bI(this.context,this.state);this.enterRule(s,74,t.RULE_indexType);try{this.enterOuterAlt(s,1),this.state=1512,this.match(t.USING),this.state=1513,e=this.tokenStream.LA(1),350===e||443===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexOption(){let e,s=new WI(this.context,this.state);this.enterRule(s,76,t.RULE_indexOption);try{switch(this.state=1537,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.KEY_BLOCK_SIZE:this.enterOuterAlt(s,1),this.state=1515,this.match(t.KEY_BLOCK_SIZE),this.state=1517,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1516,this.match(t.EQUAL_SYMBOL)),this.state=1519,this.fileSizeLiteral();break;case t.USING:this.enterOuterAlt(s,2),this.state=1520,this.indexType();break;case t.WITH:this.enterOuterAlt(s,3),this.state=1521,this.match(t.WITH),this.state=1522,this.match(t.PARSER),this.state=1523,this.uid();break;case t.COMMENT:this.enterOuterAlt(s,4),this.state=1524,this.match(t.COMMENT),this.state=1525,this.match(t.STRING_LITERAL);break;case t.INVISIBLE:case t.VISIBLE:this.enterOuterAlt(s,5),this.state=1526,e=this.tokenStream.LA(1),459===e||673===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.ENGINE_ATTRIBUTE:this.enterOuterAlt(s,6),this.state=1527,this.match(t.ENGINE_ATTRIBUTE),this.state=1529,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1528,this.match(t.EQUAL_SYMBOL)),this.state=1531,this.match(t.STRING_LITERAL);break;case t.SECONDARY_ENGINE_ATTRIBUTE:this.enterOuterAlt(s,7),this.state=1532,this.match(t.SECONDARY_ENGINE_ATTRIBUTE),this.state=1534,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1533,this.match(t.EQUAL_SYMBOL)),this.state=1536,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}procedureParameter(){let e,s=new VI(this.context,this.state);this.enterRule(s,78,t.RULE_procedureParameter);try{this.enterOuterAlt(s,1),this.state=1540,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(80===e||84===e||125===e)&&(this.state=1539,s._direction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),80===e||84===e||125===e?(this.errorHandler.reportMatch(this),this.consume()):s._direction=this.errorHandler.recoverInline(this)),this.state=1542,this.uid(),this.state=1543,this.dataType()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionParameter(){let e=new XI(this.context,this.state);this.enterRule(e,80,t.RULE_functionParameter);try{this.enterOuterAlt(e,1),this.state=1545,this.uid(),this.state=1546,this.dataType()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}routineOption(){let e,s=new KI(this.context,this.state);this.enterRule(s,82,t.RULE_routineOption);try{switch(this.state=1571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMENT:s=new ZI(s),this.enterOuterAlt(s,1),this.state=1548,this.match(t.COMMENT),this.state=1549,this.match(t.STRING_LITERAL);break;case t.LANGUAGE:s=new JI(s),this.enterOuterAlt(s,2),this.state=1550,this.match(t.LANGUAGE),this.state=1551,this.match(t.SQL);break;case t.DETERMINISTIC:case t.NOT:s=new QI(s),this.enterOuterAlt(s,3),this.state=1553,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1552,this.match(t.NOT)),this.state=1555,this.match(t.DETERMINISTIC);break;case t.MODIFIES:case t.READS:case t.CONTAINS:case t.NO:switch(s=new jI(s),this.enterOuterAlt(s,4),this.state=1566,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONTAINS:this.state=1556,this.match(t.CONTAINS),this.state=1557,this.match(t.SQL);break;case t.NO:this.state=1558,this.match(t.NO),this.state=1559,this.match(t.SQL);break;case t.READS:this.state=1560,this.match(t.READS),this.state=1561,this.match(t.SQL),this.state=1562,this.match(t.DATA);break;case t.MODIFIES:this.state=1563,this.match(t.MODIFIES),this.state=1564,this.match(t.SQL),this.state=1565,this.match(t.DATA);break;default:throw new he(this)}break;case t.SQL:s=new qI(s),this.enterOuterAlt(s,5),this.state=1568,this.match(t.SQL),this.state=1569,this.match(t.SECURITY),this.state=1570,s._context=this.tokenStream.LT(1),e=this.tokenStream.LA(1),392===e||460===e?(this.errorHandler.reportMatch(this),this.consume()):s._context=this.errorHandler.recoverInline(this);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}serverOption(){let e=new zI(this.context,this.state);this.enterRule(e,84,t.RULE_serverOption);try{switch(this.state=1587,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.HOST:this.enterOuterAlt(e,1),this.state=1573,this.match(t.HOST),this.state=1574,this.match(t.STRING_LITERAL);break;case t.DATABASE:this.enterOuterAlt(e,2),this.state=1575,this.match(t.DATABASE),this.state=1576,this.match(t.STRING_LITERAL);break;case t.USER:this.enterOuterAlt(e,3),this.state=1577,this.match(t.USER),this.state=1578,this.match(t.STRING_LITERAL);break;case t.PASSWORD:this.enterOuterAlt(e,4),this.state=1579,this.match(t.PASSWORD),this.state=1580,this.match(t.STRING_LITERAL);break;case t.SOCKET:this.enterOuterAlt(e,5),this.state=1581,this.match(t.SOCKET),this.state=1582,this.match(t.STRING_LITERAL);break;case t.OWNER:this.enterOuterAlt(e,6),this.state=1583,this.match(t.OWNER),this.state=1584,this.match(t.STRING_LITERAL);break;case t.PORT:this.enterOuterAlt(e,7),this.state=1585,this.match(t.PORT),this.state=1586,this.decimalLiteral();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createDefinitions(){let e,s=new $I(this.context,this.state);this.enterRule(s,86,t.RULE_createDefinitions);try{for(this.enterOuterAlt(s,1),this.state=1589,this.match(t.LR_BRACKET),this.state=1590,this.createDefinition(),this.state=1595,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=1591,this.match(t.COMMA),this.state=1592,this.createDefinition(),this.state=1597,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1598,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDefinition(){let e,s=new tu(this.context,this.state);this.enterRule(s,88,t.RULE_createDefinition);try{switch(this.state=1611,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,141,this.context)){case 1:s=new eu(s),this.enterOuterAlt(s,1),this.state=1600,this.fullColumnName(),this.state=1601,this.columnDefinition();break;case 2:s=new su(s),this.enterOuterAlt(s,2),this.state=1603,this.tableConstraint(),this.state=1605,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1604,this.match(t.NOT)),this.state=1608,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=1607,this.match(t.ENFORCED));break;case 3:s=new au(s),this.enterOuterAlt(s,3),this.state=1610,this.indexColumnDefinition()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnDefinition(){let e,s=new iu(this.context,this.state);this.enterRule(s,90,t.RULE_columnDefinition);try{let a;for(this.enterOuterAlt(s,1),this.state=1613,this.dataType(),this.state=1617,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,142,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1614,this.columnConstraint()),this.state=1619,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,142,this.context);this.state=1621,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1620,this.match(t.NOT)),this.state=1624,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=1623,this.match(t.ENFORCED))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnConstraint(){let e,s=new ru(this.context,this.state);this.enterRule(s,92,t.RULE_columnConstraint);try{switch(this.state=1679,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NOT:case t.NULL_LITERAL:case t.NULL_SPEC_LITERAL:s=new Iu(s),this.enterOuterAlt(s,1),this.state=1626,this.nullNotnull();break;case t.DEFAULT:s=new uu(s),this.enterOuterAlt(s,2),this.state=1627,this.match(t.DEFAULT),this.state=1628,this.defaultValue();break;case t.VISIBLE:s=new nu(s),this.enterOuterAlt(s,3),this.state=1629,this.match(t.VISIBLE);break;case t.INVISIBLE:s=new Lu(s),this.enterOuterAlt(s,4),this.state=1630,this.match(t.INVISIBLE);break;case t.ON:case t.AUTO_INCREMENT:switch(s=new hu(s),this.enterOuterAlt(s,5),this.state=1635,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AUTO_INCREMENT:this.state=1631,this.match(t.AUTO_INCREMENT);break;case t.ON:this.state=1632,this.match(t.ON),this.state=1633,this.match(t.UPDATE),this.state=1634,this.currentTimestamp();break;default:throw new he(this)}break;case t.KEY:case t.PRIMARY:s=new lu(s),this.enterOuterAlt(s,6),this.state=1638,this.errorHandler.sync(this),e=this.tokenStream.LA(1),130===e&&(this.state=1637,this.match(t.PRIMARY)),this.state=1640,this.match(t.KEY);break;case t.UNIQUE:if(1===(s=new Tu(s),this.enterOuterAlt(s,7),this.state=1641,this.match(t.UNIQUE),this.state=1643,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,147,this.context)))this.state=1642,this.match(t.KEY);break;case t.COMMENT:s=new Eu(s),this.enterOuterAlt(s,8),this.state=1645,this.match(t.COMMENT),this.state=1646,this.match(t.STRING_LITERAL);break;case t.COLUMN_FORMAT:s=new Au(s),this.enterOuterAlt(s,9),this.state=1647,this.match(t.COLUMN_FORMAT),this.state=1648,s._colformat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||402===e||431===e?(this.errorHandler.reportMatch(this),this.consume()):s._colformat=this.errorHandler.recoverInline(this);break;case t.STORAGE:s=new cu(s),this.enterOuterAlt(s,10),this.state=1649,this.match(t.STORAGE),this.state=1650,s._storageval=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||398===e||792===e?(this.errorHandler.reportMatch(this),this.consume()):s._storageval=this.errorHandler.recoverInline(this);break;case t.REFERENCES:s=new Nu(s),this.enterOuterAlt(s,11),this.state=1651,this.referenceDefinition();break;case t.COLLATE:s=new Su(s),this.enterOuterAlt(s,12),this.state=1652,this.match(t.COLLATE),this.state=1653,this.collationName();break;case t.AS:case t.GENERATED:s=new Ru(s),this.enterOuterAlt(s,13),this.state=1656,this.errorHandler.sync(this),e=this.tokenStream.LA(1),70===e&&(this.state=1654,this.match(t.GENERATED),this.state=1655,this.match(t.ALWAYS)),this.state=1658,this.match(t.AS),this.state=1659,this.match(t.LR_BRACKET),this.state=1660,this.expression(0),this.state=1661,this.match(t.RR_BRACKET),this.state=1663,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(637===e||672===e)&&(this.state=1662,e=this.tokenStream.LA(1),637===e||672===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.SERIAL:s=new ou(s),this.enterOuterAlt(s,14),this.state=1665,this.match(t.SERIAL),this.state=1666,this.match(t.DEFAULT),this.state=1667,this.match(t.VALUE);break;case t.CHECK:case t.CONSTRAINT:s=new Ou(s),this.enterOuterAlt(s,15),this.state=1672,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1668,this.match(t.CONSTRAINT),this.state=1670,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1669,s._name=this.uid())),this.state=1674,this.match(t.CHECK),this.state=1675,this.match(t.LR_BRACKET),this.state=1676,this.expression(0),this.state=1677,this.match(t.RR_BRACKET);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableConstraint(){let e,s=new Cu(this.context,this.state);this.enterRule(s,94,t.RULE_tableConstraint);try{switch(this.state=1750,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,169,this.context)){case 1:if(s=new Mu(s),this.enterOuterAlt(s,1),this.state=1685,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&1===(this.state=1681,this.match(t.CONSTRAINT),this.state=1683,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,153,this.context)))this.state=1682,s._name=this.uid();for(this.state=1687,this.match(t.PRIMARY),this.state=1688,this.match(t.KEY),this.state=1690,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1689,s._index=this.uid()),this.state=1693,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=1692,this.indexType()),this.state=1695,this.indexColumnNames(),this.state=1699,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=1696,this.indexOption(),this.state=1701,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:for(s=new _u(s),this.enterOuterAlt(s,2),this.state=1706,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1702,this.match(t.CONSTRAINT),this.state=1704,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1703,s._name=this.uid())),this.state=1708,this.match(t.UNIQUE),this.state=1710,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e)&&(this.state=1709,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this)),this.state=1713,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1712,s._index=this.uid()),this.state=1716,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=1715,this.indexType()),this.state=1718,this.indexColumnNames(),this.state=1722,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=1719,this.indexOption(),this.state=1724,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 3:s=new du(s),this.enterOuterAlt(s,3),this.state=1729,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1725,this.match(t.CONSTRAINT),this.state=1727,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1726,s._name=this.uid())),this.state=1731,this.match(t.FOREIGN),this.state=1732,this.match(t.KEY),this.state=1734,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1733,s._index=this.uid()),this.state=1736,this.indexColumnNames(),this.state=1737,this.referenceDefinition();break;case 4:s=new Pu(s),this.enterOuterAlt(s,4),this.state=1743,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1739,this.match(t.CONSTRAINT),this.state=1741,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1740,s._name=this.uid())),this.state=1745,this.match(t.CHECK),this.state=1746,this.match(t.LR_BRACKET),this.state=1747,this.expression(0),this.state=1748,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}referenceDefinition(){let e,s=new Uu(this.context,this.state);this.enterRule(s,96,t.RULE_referenceDefinition);try{if(1===(this.enterOuterAlt(s,1),this.state=1752,this.match(t.REFERENCES),this.state=1753,this.tableName(),this.state=1755,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=1754,this.indexColumnNames()),this.state=1759,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=1757,this.match(t.MATCH),this.state=1758,s._matchType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),436===e||548===e||613===e?(this.errorHandler.reportMatch(this),this.consume()):s._matchType=this.errorHandler.recoverInline(this)),this.state=1762,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=1761,this.referenceAction()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}referenceAction(){let e=new mu(this.context,this.state);this.enterRule(e,98,t.RULE_referenceAction);try{switch(this.state=1780,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,175,this.context)){case 1:if(1===(this.enterOuterAlt(e,1),this.state=1764,this.match(t.ON),this.state=1765,this.match(t.DELETE),this.state=1766,e._onDelete=this.referenceControlType(),this.state=1770,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,173,this.context)))this.state=1767,this.match(t.ON),this.state=1768,this.match(t.UPDATE),this.state=1769,e._onUpdate=this.referenceControlType();break;case 2:if(1===(this.enterOuterAlt(e,2),this.state=1772,this.match(t.ON),this.state=1773,this.match(t.UPDATE),this.state=1774,e._onUpdate=this.referenceControlType(),this.state=1778,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,174,this.context)))this.state=1775,this.match(t.ON),this.state=1776,this.match(t.DELETE),this.state=1777,e._onDelete=this.referenceControlType()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}referenceControlType(){let e=new Du(this.context,this.state);this.enterRule(e,100,t.RULE_referenceControlType);try{switch(this.state=1790,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,176,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1782,this.match(t.RESTRICT);break;case 2:this.enterOuterAlt(e,2),this.state=1783,this.match(t.CASCADE);break;case 3:this.enterOuterAlt(e,3),this.state=1784,this.match(t.SET),this.state=1785,this.match(t.NULL_LITERAL);break;case 4:this.enterOuterAlt(e,4),this.state=1786,this.match(t.NO),this.state=1787,this.match(t.ACTION);break;case 5:this.enterOuterAlt(e,5),this.state=1788,this.match(t.SET),this.state=1789,this.match(t.DEFAULT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexColumnDefinition(){let e,s=new pu(this.context,this.state);this.enterRule(s,102,t.RULE_indexColumnDefinition);try{switch(this.state=1820,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INDEX:case t.KEY:for(s=new xu(s),this.enterOuterAlt(s,1),this.state=1792,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this),this.state=1794,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1793,this.uid()),this.state=1797,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=1796,this.indexType()),this.state=1799,this.indexColumnNames(),this.state=1803,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=1800,this.indexOption(),this.state=1805,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case t.FULLTEXT:case t.SPATIAL:for(s=new gu(s),this.enterOuterAlt(s,2),this.state=1806,e=this.tokenStream.LA(1),69===e||159===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1808,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e)&&(this.state=1807,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this)),this.state=1811,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=1810,this.uid()),this.state=1813,this.indexColumnNames(),this.state=1817,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=1814,this.indexOption(),this.state=1819,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableOption(){let e,s=new ku(this.context,this.state);this.enterRule(s,104,t.RULE_tableOption);try{switch(this.state=2007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:if(1===(s=new Hu(s),this.enterOuterAlt(s,1),this.state=1822,this.match(t.ENGINE),this.state=1824,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1823,this.match(t.EQUAL_SYMBOL)),this.state=1827,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,185,this.context)))this.state=1826,this.engineName();break;case 2:s=new oN(s),this.enterOuterAlt(s,2),this.state=1829,this.match(t.ENGINE_ATTRIBUTE),this.state=1831,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1830,this.match(t.EQUAL_SYMBOL)),this.state=1833,this.match(t.STRING_LITERAL);break;case 3:s=new yu(s),this.enterOuterAlt(s,3),this.state=1834,this.match(t.AUTOEXTEND_SIZE),this.state=1836,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1835,this.match(t.EQUAL_SYMBOL)),this.state=1838,this.decimalLiteral();break;case 4:s=new zu(s),this.enterOuterAlt(s,4),this.state=1839,this.match(t.AUTO_INCREMENT),this.state=1841,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1840,this.match(t.EQUAL_SYMBOL)),this.state=1843,this.decimalLiteral();break;case 5:s=new nN(s),this.enterOuterAlt(s,5),this.state=1844,this.match(t.AVG_ROW_LENGTH),this.state=1846,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1845,this.match(t.EQUAL_SYMBOL)),this.state=1848,this.decimalLiteral();break;case 6:switch(s=new Xu(s),this.enterOuterAlt(s,6),this.state=1850,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=1849,this.match(t.DEFAULT)),this.state=1852,this.charSet(),this.state=1854,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1853,this.match(t.EQUAL_SYMBOL)),this.state=1858,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BINARY:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:this.state=1856,this.charsetName();break;case t.DEFAULT:this.state=1857,this.match(t.DEFAULT);break;default:throw new he(this)}break;case 7:s=new tN(s),this.enterOuterAlt(s,7),this.state=1860,e=this.tokenStream.LA(1),356===e||357===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1862,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1861,this.match(t.EQUAL_SYMBOL)),this.state=1864,s._boolValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._boolValue=this.errorHandler.recoverInline(this);break;case 8:s=new Fu(s),this.enterOuterAlt(s,8),this.state=1866,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=1865,this.match(t.DEFAULT)),this.state=1868,this.match(t.COLLATE),this.state=1870,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1869,this.match(t.EQUAL_SYMBOL)),this.state=1872,this.collationName();break;case 9:s=new cN(s),this.enterOuterAlt(s,9),this.state=1873,this.match(t.COMMENT),this.state=1875,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1874,this.match(t.EQUAL_SYMBOL)),this.state=1877,this.match(t.STRING_LITERAL);break;case 10:s=new EN(s),this.enterOuterAlt(s,10),this.state=1878,this.match(t.COMPRESSION),this.state=1880,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1879,this.match(t.EQUAL_SYMBOL)),this.state=1882,e=this.tokenStream.LA(1),1148===e||1156===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 11:s=new sN(s),this.enterOuterAlt(s,11),this.state=1883,this.match(t.CONNECTION),this.state=1885,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1884,this.match(t.EQUAL_SYMBOL)),this.state=1887,this.match(t.STRING_LITERAL);break;case 12:s=new qu(s),this.enterOuterAlt(s,12),this.state=1888,e=this.tokenStream.LA(1),81===e||388===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1889,this.match(t.DIRECTORY),this.state=1891,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1890,this.match(t.EQUAL_SYMBOL)),this.state=1893,this.match(t.STRING_LITERAL);break;case 13:s=new eN(s),this.enterOuterAlt(s,13),this.state=1894,this.match(t.DELAY_KEY_WRITE),this.state=1896,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1895,this.match(t.EQUAL_SYMBOL)),this.state=1898,s._boolValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._boolValue=this.errorHandler.recoverInline(this);break;case 14:s=new Zu(s),this.enterOuterAlt(s,14),this.state=1899,this.match(t.ENCRYPTION),this.state=1901,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1900,this.match(t.EQUAL_SYMBOL)),this.state=1903,this.match(t.STRING_LITERAL);break;case 15:s=new fu(s),this.enterOuterAlt(s,15),this.state=1904,e=this.tokenStream.LA(1),545===e||1148===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1906,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1905,this.match(t.EQUAL_SYMBOL)),this.state=1908,e=this.tokenStream.LA(1),1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 16:s=new iN(s),this.enterOuterAlt(s,16),this.state=1909,e=this.tokenStream.LA(1),546===e||1148===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1911,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1910,this.match(t.EQUAL_SYMBOL)),this.state=1913,this.decimalLiteral();break;case 17:s=new $u(s),this.enterOuterAlt(s,17),this.state=1914,this.match(t.ENCRYPTION_KEY_ID),this.state=1916,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1915,this.match(t.EQUAL_SYMBOL)),this.state=1918,this.decimalLiteral();break;case 18:s=new Ku(s),this.enterOuterAlt(s,18),this.state=1919,this.match(t.INDEX),this.state=1920,this.match(t.DIRECTORY),this.state=1922,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1921,this.match(t.EQUAL_SYMBOL)),this.state=1924,this.match(t.STRING_LITERAL);break;case 19:s=new TN(s),this.enterOuterAlt(s,19),this.state=1925,this.match(t.INSERT_METHOD),this.state=1927,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1926,this.match(t.EQUAL_SYMBOL)),this.state=1929,s._insertMethod=this.tokenStream.LT(1),e=this.tokenStream.LA(1),430===e||469===e||521===e?(this.errorHandler.reportMatch(this),this.consume()):s._insertMethod=this.errorHandler.recoverInline(this);break;case 20:s=new Ju(s),this.enterOuterAlt(s,20),this.state=1930,this.match(t.KEY_BLOCK_SIZE),this.state=1932,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1931,this.match(t.EQUAL_SYMBOL)),this.state=1934,this.fileSizeLiteral();break;case 21:s=new Gu(s),this.enterOuterAlt(s,21),this.state=1935,this.match(t.MAX_ROWS),this.state=1937,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1936,this.match(t.EQUAL_SYMBOL)),this.state=1939,this.decimalLiteral();break;case 22:s=new RN(s),this.enterOuterAlt(s,22),this.state=1940,this.match(t.MIN_ROWS),this.state=1942,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1941,this.match(t.EQUAL_SYMBOL)),this.state=1944,this.decimalLiteral();break;case 23:s=new wu(s),this.enterOuterAlt(s,23),this.state=1945,this.match(t.PACK_KEYS),this.state=1947,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1946,this.match(t.EQUAL_SYMBOL)),this.state=1949,s._extBoolValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._extBoolValue=this.errorHandler.recoverInline(this);break;case 24:s=new bu(s),this.enterOuterAlt(s,24),this.state=1950,this.match(t.PASSWORD),this.state=1952,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1951,this.match(t.EQUAL_SYMBOL)),this.state=1954,this.match(t.STRING_LITERAL);break;case 25:s=new hN(s),this.enterOuterAlt(s,25),this.state=1955,this.match(t.ROW_FORMAT),this.state=1957,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1956,this.match(t.EQUAL_SYMBOL)),this.state=1959,s._rowFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||370===e||372===e||402===e||431===e||573===e||1156===e?(this.errorHandler.reportMatch(this),this.consume()):s._rowFormat=this.errorHandler.recoverInline(this);break;case 26:s=new Yu(s),this.enterOuterAlt(s,26),this.state=1960,this.match(t.START),this.state=1961,this.match(t.TRANSACTION);break;case 27:s=new rN(s),this.enterOuterAlt(s,27),this.state=1962,this.match(t.SECONDARY_ENGINE_ATTRIBUTE),this.state=1964,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1963,this.match(t.EQUAL_SYMBOL)),this.state=1966,this.match(t.STRING_LITERAL);break;case 28:s=new ju(s),this.enterOuterAlt(s,28),this.state=1967,this.match(t.STATS_AUTO_RECALC),this.state=1969,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1968,this.match(t.EQUAL_SYMBOL)),this.state=1971,s._extBoolValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._extBoolValue=this.errorHandler.recoverInline(this);break;case 29:s=new vu(s),this.enterOuterAlt(s,29),this.state=1972,this.match(t.STATS_PERSISTENT),this.state=1974,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1973,this.match(t.EQUAL_SYMBOL)),this.state=1976,s._extBoolValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._extBoolValue=this.errorHandler.recoverInline(this);break;case 30:switch(s=new Vu(s),this.enterOuterAlt(s,30),this.state=1977,this.match(t.STATS_SAMPLE_PAGES),this.state=1979,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1978,this.match(t.EQUAL_SYMBOL)),this.state=1983,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DEFAULT:this.state=1981,this.match(t.DEFAULT);break;case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.state=1982,this.decimalLiteral();break;default:throw new he(this)}break;case 31:if(1===(s=new Bu(s),this.enterOuterAlt(s,31),this.state=1985,this.match(t.TABLESPACE),this.state=1986,this.uid(),this.state=1988,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,218,this.context)))this.state=1987,this.tablespaceStorage();break;case 32:s=new Qu(s),this.enterOuterAlt(s,32),this.state=1990,this.match(t.TABLE_TYPE),this.state=1991,this.match(t.EQUAL_SYMBOL),this.state=1992,this.tableType();break;case 33:s=new Bu(s),this.enterOuterAlt(s,33),this.state=1993,this.tablespaceStorage();break;case 34:s=new aN(s),this.enterOuterAlt(s,34),this.state=1994,this.match(t.TRANSACTIONAL),this.state=1996,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=1995,this.match(t.EQUAL_SYMBOL)),this.state=1998,e=this.tokenStream.LA(1),1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 35:s=new Wu(s),this.enterOuterAlt(s,35),this.state=1999,this.match(t.UNION),this.state=2001,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2e3,this.match(t.EQUAL_SYMBOL)),this.state=2003,this.match(t.LR_BRACKET),this.state=2004,this.tables(),this.state=2005,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableType(){let e,s=new AN(this.context,this.state);this.enterRule(s,106,t.RULE_tableType);try{this.enterOuterAlt(s,1),this.state=2009,e=this.tokenStream.LA(1),514===e||530===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tablespaceStorage(){let e,s=new SN(this.context,this.state);this.enterRule(s,108,t.RULE_tablespaceStorage);try{this.enterOuterAlt(s,1),this.state=2011,this.match(t.STORAGE),this.state=2012,e=this.tokenStream.LA(1),42===e||398===e||792===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionDefinitions(){let e,s=new lN(this.context,this.state);this.enterRule(s,110,t.RULE_partitionDefinitions);try{if(1===(this.enterOuterAlt(s,1),this.state=2014,this.match(t.PARTITION),this.state=2015,this.match(t.BY),this.state=2016,this.partitionFunctionDefinition(),this.state=2019,this.errorHandler.sync(this),e=this.tokenStream.LA(1),550===e&&(this.state=2017,this.match(t.PARTITIONS),this.state=2018,s._count=this.decimalLiteral()),this.state=2028,this.errorHandler.sync(this),e=this.tokenStream.LA(1),641===e&&(this.state=2021,this.match(t.SUBPARTITION),this.state=2022,this.match(t.BY),this.state=2023,this.subpartitionFunctionDefinition(),this.state=2026,this.errorHandler.sync(this),e=this.tokenStream.LA(1),642===e&&(this.state=2024,this.match(t.SUBPARTITIONS),this.state=2025,s._subCount=this.decimalLiteral())),this.state=2041,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context))){for(this.state=2030,this.match(t.LR_BRACKET),this.state=2031,this.partitionDefinition(),this.state=2036,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2032,this.match(t.COMMA),this.state=2033,this.partitionDefinition(),this.state=2038,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2039,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionFunctionDefinition(){let e,s=new ON(this.context,this.state);this.enterRule(s,112,t.RULE_partitionFunctionDefinition);try{switch(this.state=2089,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,233,this.context)){case 1:s=new uN(s),this.enterOuterAlt(s,1),this.state=2044,this.errorHandler.sync(this),e=this.tokenStream.LA(1),100===e&&(this.state=2043,this.match(t.LINEAR)),this.state=2046,this.match(t.HASH),this.state=2047,this.match(t.LR_BRACKET),this.state=2048,this.expression(0),this.state=2049,this.match(t.RR_BRACKET);break;case 2:s=new IN(s),this.enterOuterAlt(s,2),this.state=2052,this.errorHandler.sync(this),e=this.tokenStream.LA(1),100===e&&(this.state=2051,this.match(t.LINEAR)),this.state=2054,this.match(t.KEY),this.state=2058,this.errorHandler.sync(this),e=this.tokenStream.LA(1),336===e&&(this.state=2055,this.match(t.ALGORITHM),this.state=2056,this.match(t.EQUAL_SYMBOL),this.state=2057,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),1139===e||1140===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this)),this.state=2060,this.match(t.LR_BRACKET),this.state=2062,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2061,this.uidList()),this.state=2064,this.match(t.RR_BRACKET);break;case 3:switch(s=new LN(s),this.enterOuterAlt(s,3),this.state=2065,this.match(t.RANGE),this.state=2075,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LR_BRACKET:this.state=2066,this.match(t.LR_BRACKET),this.state=2067,this.expression(0),this.state=2068,this.match(t.RR_BRACKET);break;case t.COLUMNS:this.state=2070,this.match(t.COLUMNS),this.state=2071,this.match(t.LR_BRACKET),this.state=2072,this.uidList(),this.state=2073,this.match(t.RR_BRACKET);break;default:throw new he(this)}break;case 4:switch(s=new NN(s),this.enterOuterAlt(s,4),this.state=2077,this.match(t.LIST),this.state=2087,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LR_BRACKET:this.state=2078,this.match(t.LR_BRACKET),this.state=2079,this.expression(0),this.state=2080,this.match(t.RR_BRACKET);break;case t.COLUMNS:this.state=2082,this.match(t.COLUMNS),this.state=2083,this.match(t.LR_BRACKET),this.state=2084,this.uidList(),this.state=2085,this.match(t.RR_BRACKET);break;default:throw new he(this)}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}subpartitionFunctionDefinition(){let e,s=new CN(this.context,this.state);this.enterRule(s,114,t.RULE_subpartitionFunctionDefinition);try{switch(this.state=2112,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,237,this.context)){case 1:s=new _N(s),this.enterOuterAlt(s,1),this.state=2092,this.errorHandler.sync(this),e=this.tokenStream.LA(1),100===e&&(this.state=2091,this.match(t.LINEAR)),this.state=2094,this.match(t.HASH),this.state=2095,this.match(t.LR_BRACKET),this.state=2096,this.expression(0),this.state=2097,this.match(t.RR_BRACKET);break;case 2:s=new PN(s),this.enterOuterAlt(s,2),this.state=2100,this.errorHandler.sync(this),e=this.tokenStream.LA(1),100===e&&(this.state=2099,this.match(t.LINEAR)),this.state=2102,this.match(t.KEY),this.state=2106,this.errorHandler.sync(this),e=this.tokenStream.LA(1),336===e&&(this.state=2103,this.match(t.ALGORITHM),this.state=2104,this.match(t.EQUAL_SYMBOL),this.state=2105,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),1139===e||1140===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this)),this.state=2108,this.match(t.LR_BRACKET),this.state=2109,this.uidList(),this.state=2110,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionDefinition(){let e,s=new MN(this.context,this.state);this.enterRule(s,116,t.RULE_partitionDefinition);try{switch(this.state=2260,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,256,this.context)){case 1:for(s=new dN(s),this.enterOuterAlt(s,1),this.state=2114,this.match(t.PARTITION),this.state=2115,this.uid(),this.state=2116,this.match(t.VALUES),this.state=2117,this.match(t.LESS),this.state=2118,this.match(t.THAN),this.state=2119,this.match(t.LR_BRACKET),this.state=2120,this.partitionDefinerAtom(),this.state=2125,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2121,this.match(t.COMMA),this.state=2122,this.partitionDefinerAtom(),this.state=2127,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=2128,this.match(t.RR_BRACKET),this.state=2132,this.errorHandler.sync(this),e=this.tokenStream.LA(1);42===e||81===e||368===e||388===e||409===e||!(e-500&-32)&&1<<e-500&268436481||636===e||647===e;)this.state=2129,this.partitionOption(),this.state=2134,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=2146,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=2135,this.match(t.LR_BRACKET),this.state=2136,this.subpartitionDefinition(),this.state=2141,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2137,this.match(t.COMMA),this.state=2138,this.subpartitionDefinition(),this.state=2143,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2144,this.match(t.RR_BRACKET)}break;case 2:for(s=new dN(s),this.enterOuterAlt(s,2),this.state=2148,this.match(t.PARTITION),this.state=2149,this.uid(),this.state=2150,this.match(t.VALUES),this.state=2151,this.match(t.LESS),this.state=2152,this.match(t.THAN),this.state=2153,this.partitionDefinerAtom(),this.state=2157,this.errorHandler.sync(this),e=this.tokenStream.LA(1);42===e||81===e||368===e||388===e||409===e||!(e-500&-32)&&1<<e-500&268436481||636===e||647===e;)this.state=2154,this.partitionOption(),this.state=2159,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=2171,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=2160,this.match(t.LR_BRACKET),this.state=2161,this.subpartitionDefinition(),this.state=2166,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2162,this.match(t.COMMA),this.state=2163,this.subpartitionDefinition(),this.state=2168,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2169,this.match(t.RR_BRACKET)}break;case 3:for(s=new UN(s),this.enterOuterAlt(s,3),this.state=2173,this.match(t.PARTITION),this.state=2174,this.uid(),this.state=2175,this.match(t.VALUES),this.state=2176,this.match(t.IN),this.state=2177,this.match(t.LR_BRACKET),this.state=2178,this.partitionDefinerAtom(),this.state=2183,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2179,this.match(t.COMMA),this.state=2180,this.partitionDefinerAtom(),this.state=2185,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=2186,this.match(t.RR_BRACKET),this.state=2190,this.errorHandler.sync(this),e=this.tokenStream.LA(1);42===e||81===e||368===e||388===e||409===e||!(e-500&-32)&&1<<e-500&268436481||636===e||647===e;)this.state=2187,this.partitionOption(),this.state=2192,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=2204,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=2193,this.match(t.LR_BRACKET),this.state=2194,this.subpartitionDefinition(),this.state=2199,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2195,this.match(t.COMMA),this.state=2196,this.subpartitionDefinition(),this.state=2201,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2202,this.match(t.RR_BRACKET)}break;case 4:for(s=new mN(s),this.enterOuterAlt(s,4),this.state=2206,this.match(t.PARTITION),this.state=2207,this.uid(),this.state=2208,this.match(t.VALUES),this.state=2209,this.match(t.IN),this.state=2210,this.match(t.LR_BRACKET),this.state=2211,this.partitionDefinerVector(),this.state=2216,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2212,this.match(t.COMMA),this.state=2213,this.partitionDefinerVector(),this.state=2218,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=2219,this.match(t.RR_BRACKET),this.state=2223,this.errorHandler.sync(this),e=this.tokenStream.LA(1);42===e||81===e||368===e||388===e||409===e||!(e-500&-32)&&1<<e-500&268436481||636===e||647===e;)this.state=2220,this.partitionOption(),this.state=2225,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=2237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=2226,this.match(t.LR_BRACKET),this.state=2227,this.subpartitionDefinition(),this.state=2232,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2228,this.match(t.COMMA),this.state=2229,this.subpartitionDefinition(),this.state=2234,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2235,this.match(t.RR_BRACKET)}break;case 5:for(s=new DN(s),this.enterOuterAlt(s,5),this.state=2239,this.match(t.PARTITION),this.state=2240,this.uid(),this.state=2244,this.errorHandler.sync(this),e=this.tokenStream.LA(1);42===e||81===e||368===e||388===e||409===e||!(e-500&-32)&&1<<e-500&268436481||636===e||647===e;)this.state=2241,this.partitionOption(),this.state=2246,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=2258,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=2247,this.match(t.LR_BRACKET),this.state=2248,this.subpartitionDefinition(),this.state=2253,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2249,this.match(t.COMMA),this.state=2250,this.subpartitionDefinition(),this.state=2255,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2256,this.match(t.RR_BRACKET)}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionDefinerAtom(){let e=new pN(this.context,this.state);this.enterRule(e,118,t.RULE_partitionDefinerAtom);try{switch(this.state=2265,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,257,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2262,this.constant();break;case 2:this.enterOuterAlt(e,2),this.state=2263,this.expression(0);break;case 3:this.enterOuterAlt(e,3),this.state=2264,this.match(t.MAXVALUE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}partitionDefinerVector(){let e,s=new gN(this.context,this.state);this.enterRule(s,120,t.RULE_partitionDefinerVector);try{this.enterOuterAlt(s,1),this.state=2267,this.match(t.LR_BRACKET),this.state=2268,this.partitionDefinerAtom(),this.state=2271,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2269,this.match(t.COMMA),this.state=2270,this.partitionDefinerAtom(),this.state=2273,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(1135===e);this.state=2275,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}subpartitionDefinition(){let e,s=new xN(this.context,this.state);this.enterRule(s,122,t.RULE_subpartitionDefinition);try{for(this.enterOuterAlt(s,1),this.state=2277,this.match(t.SUBPARTITION),this.state=2278,this.uid(),this.state=2282,this.errorHandler.sync(this),e=this.tokenStream.LA(1);42===e||81===e||368===e||388===e||409===e||!(e-500&-32)&&1<<e-500&268436481||636===e||647===e;)this.state=2279,this.partitionOption(),this.state=2284,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionOption(){let e,s=new kN(this.context,this.state);this.enterRule(s,124,t.RULE_partitionOption);try{switch(this.state=2333,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DEFAULT:case t.ENGINE:case t.STORAGE:s=new yN(s),this.enterOuterAlt(s,1),this.state=2286,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=2285,this.match(t.DEFAULT)),this.state=2289,this.errorHandler.sync(this),e=this.tokenStream.LA(1),636===e&&(this.state=2288,this.match(t.STORAGE)),this.state=2291,this.match(t.ENGINE),this.state=2293,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2292,this.match(t.EQUAL_SYMBOL)),this.state=2295,this.engineName();break;case t.COMMENT:s=new HN(s),this.enterOuterAlt(s,2),this.state=2296,this.match(t.COMMENT),this.state=2298,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2297,this.match(t.EQUAL_SYMBOL)),this.state=2300,s._comment=this.match(t.STRING_LITERAL);break;case t.DATA:s=new YN(s),this.enterOuterAlt(s,3),this.state=2301,this.match(t.DATA),this.state=2302,this.match(t.DIRECTORY),this.state=2304,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2303,this.match(t.EQUAL_SYMBOL)),this.state=2306,s._dataDirectory=this.match(t.STRING_LITERAL);break;case t.INDEX:s=new FN(s),this.enterOuterAlt(s,4),this.state=2307,this.match(t.INDEX),this.state=2308,this.match(t.DIRECTORY),this.state=2310,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2309,this.match(t.EQUAL_SYMBOL)),this.state=2312,s._indexDirectory=this.match(t.STRING_LITERAL);break;case t.MAX_ROWS:s=new vN(s),this.enterOuterAlt(s,5),this.state=2313,this.match(t.MAX_ROWS),this.state=2315,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2314,this.match(t.EQUAL_SYMBOL)),this.state=2317,s._maxRows=this.decimalLiteral();break;case t.MIN_ROWS:s=new fN(s),this.enterOuterAlt(s,6),this.state=2318,this.match(t.MIN_ROWS),this.state=2320,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2319,this.match(t.EQUAL_SYMBOL)),this.state=2322,s._minRows=this.decimalLiteral();break;case t.TABLESPACE:s=new BN(s),this.enterOuterAlt(s,7),this.state=2323,this.match(t.TABLESPACE),this.state=2325,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2324,this.match(t.EQUAL_SYMBOL)),this.state=2327,s._tablespace=this.uid();break;case t.NODEGROUP:s=new GN(s),this.enterOuterAlt(s,8),this.state=2328,this.match(t.NODEGROUP),this.state=2330,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2329,this.match(t.EQUAL_SYMBOL)),this.state=2332,s._nodegroup=this.uid();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterDatabase(){let e,s=new wN(this.context,this.state);this.enterRule(s,126,t.RULE_alterDatabase);try{switch(this.state=2351,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,272,this.context)){case 1:s=new WN(s),this.enterOuterAlt(s,1),this.state=2335,this.match(t.ALTER),this.state=2336,s._dbFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),39===e||150===e?(this.errorHandler.reportMatch(this),this.consume()):s._dbFormat=this.errorHandler.recoverInline(this),this.state=2337,this.databaseName(),this.state=2339,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2338,this.createDatabaseOption(),this.state=2341,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-25&-32)&&1<<e-25&131077||134===e||222===e||405===e||841===e);break;case 2:s=new bN(s),this.enterOuterAlt(s,2),this.state=2343,this.match(t.ALTER),this.state=2344,s._dbFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),39===e||150===e?(this.errorHandler.reportMatch(this),this.consume()):s._dbFormat=this.errorHandler.recoverInline(this),this.state=2345,this.databaseName(),this.state=2346,this.match(t.UPGRADE),this.state=2347,this.match(t.DATA),this.state=2348,this.match(t.DIRECTORY),this.state=2349,this.match(t.NAME)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterEvent(){let e,s=new VN(this.context,this.state);this.enterRule(s,128,t.RULE_alterEvent);try{if(this.enterOuterAlt(s,1),1===(this.state=2353,this.match(t.ALTER),this.state=2355,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=2354,this.ownerStatement()),this.state=2357,this.match(t.EVENT),this.state=2358,this.fullId(),this.state=2362,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)))this.state=2359,this.match(t.ON),this.state=2360,this.match(t.SCHEDULE),this.state=2361,this.scheduleExpression();this.state=2370,this.errorHandler.sync(this),e=this.tokenStream.LA(1),118===e&&(this.state=2364,this.match(t.ON),this.state=2365,this.match(t.COMPLETION),this.state=2367,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=2366,this.match(t.NOT)),this.state=2369,this.match(t.PRESERVE)),this.state=2375,this.errorHandler.sync(this),e=this.tokenStream.LA(1),139===e&&(this.state=2372,this.match(t.RENAME),this.state=2373,this.match(t.TO),this.state=2374,this.fullId()),this.state=2378,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(396===e||403===e)&&(this.state=2377,this.enableType()),this.state=2382,this.errorHandler.sync(this),e=this.tokenStream.LA(1),368===e&&(this.state=2380,this.match(t.COMMENT),this.state=2381,this.match(t.STRING_LITERAL)),this.state=2386,this.errorHandler.sync(this),e=this.tokenStream.LA(1),399===e&&(this.state=2384,this.match(t.DO),this.state=2385,this.routineBody())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterFunction(){let e,s=new XN(this.context,this.state);this.enterRule(s,130,t.RULE_alterFunction);try{for(this.enterOuterAlt(s,1),this.state=2388,this.match(t.ALTER),this.state=2389,this.match(t.FUNCTION),this.state=2390,this.fullId(),this.state=2394,this.errorHandler.sync(this),e=this.tokenStream.LA(1);47===e||!(e-112&-32)&&1<<e-112&8388613||160===e||368===e||381===e||468===e||521===e;)this.state=2391,this.routineOption(),this.state=2396,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterInstance(){let e=new KN(this.context,this.state);this.enterRule(e,132,t.RULE_alterInstance);try{this.enterOuterAlt(e,1),this.state=2397,this.match(t.ALTER),this.state=2398,this.match(t.INSTANCE),this.state=2399,this.match(t.ROTATE),this.state=2400,this.match(t.INNODB),this.state=2401,this.match(t.MASTER),this.state=2402,this.match(t.KEY)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterLogfileGroup(){let e,s=new QN(this.context,this.state);this.enterRule(s,134,t.RULE_alterLogfileGroup);try{this.enterOuterAlt(s,1),this.state=2404,this.match(t.ALTER),this.state=2405,this.match(t.LOGFILE),this.state=2406,this.match(t.GROUP),this.state=2407,this.uid(),this.state=2408,this.match(t.ADD),this.state=2409,this.match(t.UNDOFILE),this.state=2410,this.match(t.STRING_LITERAL),this.state=2416,this.errorHandler.sync(this),e=this.tokenStream.LA(1),453===e&&(this.state=2411,this.match(t.INITIAL_SIZE),this.state=2413,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2412,this.match(t.EQUAL_SYMBOL)),this.state=2415,this.fileSizeLiteral()),this.state=2419,this.errorHandler.sync(this),e=this.tokenStream.LA(1),674===e&&(this.state=2418,this.match(t.WAIT)),this.state=2421,this.match(t.ENGINE),this.state=2423,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2422,this.match(t.EQUAL_SYMBOL)),this.state=2425,this.engineName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterProcedure(){let e,s=new JN(this.context,this.state);this.enterRule(s,136,t.RULE_alterProcedure);try{for(this.enterOuterAlt(s,1),this.state=2427,this.match(t.ALTER),this.state=2428,this.match(t.PROCEDURE),this.state=2429,this.fullId(),this.state=2433,this.errorHandler.sync(this),e=this.tokenStream.LA(1);47===e||!(e-112&-32)&&1<<e-112&8388613||160===e||368===e||381===e||468===e||521===e;)this.state=2430,this.routineOption(),this.state=2435,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterServer(){let e,s=new ZN(this.context,this.state);this.enterRule(s,138,t.RULE_alterServer);try{for(this.enterOuterAlt(s,1),this.state=2436,this.match(t.ALTER),this.state=2437,this.match(t.SERVER),this.state=2438,this.uid(),this.state=2439,this.match(t.OPTIONS),this.state=2440,this.match(t.LR_BRACKET),this.state=2441,this.serverOption(),this.state=2446,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2442,this.match(t.COMMA),this.state=2443,this.serverOption(),this.state=2448,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2449,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTable(){let e,s=new qN(this.context,this.state);this.enterRule(s,140,t.RULE_alterTable);try{if(this.enterOuterAlt(s,1),this.state=2451,this.match(t.ALTER),this.state=2453,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(531===e||537===e)&&(this.state=2452,s._intimeAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),531===e||537===e?(this.errorHandler.reportMatch(this),this.consume()):s._intimeAction=this.errorHandler.recoverInline(this)),this.state=2456,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=2455,this.match(t.IGNORE)),this.state=2458,this.match(t.TABLE),this.state=2459,this.tableName(),this.state=2461,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(527===e||674===e)&&(this.state=2460,this.waitNowaitClause()),this.state=2471,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-5&-32)&&1<<e-5&142082069||!(e-42&-32)&&1<<e-42&16777729||81===e||103===e||!(e-119&-32)&&1<<e-119&1048609||180===e||192===e||222===e||!(e-336&-32)&&1<<e-336&137363681||!(e-368&-32)&&1<<e-368&839909665||!(e-403&-32)&&1<<e-403&32845||!(e-450&-32)&&1<<e-450&131105||!(e-500&-32)&&1<<e-500&5121||!(e-543&-32)&&1<<e-543&67109133||!(e-578&-32)&&1<<e-578&16777223||!(e-629&-32)&&1<<e-629&168558749||664===e||677===e||841===e||875===e||1e3===e||1148===e)for(this.state=2463,this.alterSpecification(),this.state=2468,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2464,this.match(t.COMMA),this.state=2465,this.alterSpecification(),this.state=2470,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2474,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=2473,this.partitionDefinitions())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTablespace(){let e,s=new jN(this.context,this.state);this.enterRule(s,142,t.RULE_alterTablespace);try{this.enterOuterAlt(s,1),this.state=2476,this.match(t.ALTER),this.state=2477,this.match(t.TABLESPACE),this.state=2478,this.uid(),this.state=2479,s._objectAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),5===e||51===e?(this.errorHandler.reportMatch(this),this.consume()):s._objectAction=this.errorHandler.recoverInline(this),this.state=2480,this.match(t.DATAFILE),this.state=2481,this.match(t.STRING_LITERAL),this.state=2485,this.errorHandler.sync(this),e=this.tokenStream.LA(1),453===e&&(this.state=2482,this.match(t.INITIAL_SIZE),this.state=2483,this.match(t.EQUAL_SYMBOL),this.state=2484,this.fileSizeLiteral()),this.state=2488,this.errorHandler.sync(this),e=this.tokenStream.LA(1),674===e&&(this.state=2487,this.match(t.WAIT)),this.state=2490,this.match(t.ENGINE),this.state=2492,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2491,this.match(t.EQUAL_SYMBOL)),this.state=2494,this.engineName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterView(){let e,s=new zN(this.context,this.state);this.enterRule(s,144,t.RULE_alterView);try{this.enterOuterAlt(s,1),this.state=2496,this.match(t.ALTER),this.state=2500,this.errorHandler.sync(this),e=this.tokenStream.LA(1),336===e&&(this.state=2497,this.match(t.ALGORITHM),this.state=2498,this.match(t.EQUAL_SYMBOL),this.state=2499,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),506===e||650===e||658===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this)),this.state=2503,this.errorHandler.sync(this),e=this.tokenStream.LA(1),392===e&&(this.state=2502,this.ownerStatement()),this.state=2508,this.errorHandler.sync(this),e=this.tokenStream.LA(1),160===e&&(this.state=2505,this.match(t.SQL),this.state=2506,this.match(t.SECURITY),this.state=2507,s._secContext=this.tokenStream.LT(1),e=this.tokenStream.LA(1),392===e||460===e?(this.errorHandler.reportMatch(this),this.consume()):s._secContext=this.errorHandler.recoverInline(this)),this.state=2510,this.match(t.VIEW),this.state=2511,this.fullId(),this.state=2516,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=2512,this.match(t.LR_BRACKET),this.state=2513,this.uidList(),this.state=2514,this.match(t.RR_BRACKET)),this.state=2518,this.match(t.AS),this.state=2519,this.selectStatement(),this.state=2526,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=2520,this.match(t.WITH),this.state=2522,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(352===e||474===e)&&(this.state=2521,s._checkOpt=this.tokenStream.LT(1),e=this.tokenStream.LA(1),352===e||474===e?(this.errorHandler.reportMatch(this),this.consume()):s._checkOpt=this.errorHandler.recoverInline(this)),this.state=2524,this.match(t.CHECK),this.state=2525,this.match(t.OPTION))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterSpecification(){let e,s=new $N(this.context,this.state);this.enterRule(s,146,t.RULE_alterSpecification);try{let a;switch(this.state=2879,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,362,this.context)){case 1:for(s=new PL(s),this.enterOuterAlt(s,1),this.state=2528,this.tableOption(),this.state=2535,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,304,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=2530,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=2529,this.match(t.COMMA)),this.state=2532,this.tableOption()),this.state=2537,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,304,this.context);break;case 2:switch(s=new GL(s),this.enterOuterAlt(s,2),this.state=2538,this.match(t.ADD),this.state=2540,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2539,this.match(t.COLUMN)),this.state=2542,this.uid(),this.state=2543,this.columnDefinition(),this.state=2547,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FIRST:this.state=2544,this.match(t.FIRST);break;case t.AFTER:this.state=2545,this.match(t.AFTER),this.state=2546,this.uid();case t.EOF:case t.PARTITION:case t.COMMA:case t.SEMI:}break;case 3:for(s=new RL(s),this.enterOuterAlt(s,3),this.state=2549,this.match(t.ADD),this.state=2551,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2550,this.match(t.COLUMN)),this.state=2553,this.match(t.LR_BRACKET),this.state=2554,this.uid(),this.state=2555,this.columnDefinition(),this.state=2562,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2556,this.match(t.COMMA),this.state=2557,this.uid(),this.state=2558,this.columnDefinition(),this.state=2564,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2565,this.match(t.RR_BRACKET);break;case 4:for(s=new IL(s),this.enterOuterAlt(s,4),this.state=2567,this.match(t.ADD),this.state=2568,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this),this.state=2570,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2569,this.uid()),this.state=2573,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=2572,this.indexType()),this.state=2575,this.indexColumnNames(),this.state=2579,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=2576,this.indexOption(),this.state=2581,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 5:if(s=new DL(s),this.enterOuterAlt(s,5),this.state=2582,this.match(t.ADD),this.state=2587,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&1===(this.state=2583,this.match(t.CONSTRAINT),this.state=2585,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,312,this.context)))this.state=2584,s._name=this.uid();for(this.state=2589,this.match(t.PRIMARY),this.state=2590,this.match(t.KEY),this.state=2592,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2591,s._index=this.uid()),this.state=2595,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=2594,this.indexType()),this.state=2597,this.indexColumnNames(),this.state=2601,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=2598,this.indexOption(),this.state=2603,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 6:for(s=new kL(s),this.enterOuterAlt(s,6),this.state=2604,this.match(t.ADD),this.state=2609,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=2605,this.match(t.CONSTRAINT),this.state=2607,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2606,s._name=this.uid())),this.state=2611,this.match(t.UNIQUE),this.state=2613,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e)&&(this.state=2612,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this)),this.state=2616,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2615,this.uid()),this.state=2619,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=2618,this.indexType()),this.state=2621,this.indexColumnNames(),this.state=2625,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=2622,this.indexOption(),this.state=2627,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 7:for(s=new CL(s),this.enterOuterAlt(s,7),this.state=2628,this.match(t.ADD),this.state=2629,s._keyType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),69===e||159===e?(this.errorHandler.reportMatch(this),this.consume()):s._keyType=this.errorHandler.recoverInline(this),this.state=2631,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e)&&(this.state=2630,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this)),this.state=2634,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2633,this.uid()),this.state=2636,this.indexColumnNames(),this.state=2640,this.errorHandler.sync(this),e=this.tokenStream.LA(1);187===e||192===e||368===e||459===e||467===e||673===e||875===e||1e3===e;)this.state=2637,this.indexOption(),this.state=2642,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 8:s=new rL(s),this.enterOuterAlt(s,8),this.state=2643,this.match(t.ADD),this.state=2648,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=2644,this.match(t.CONSTRAINT),this.state=2646,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2645,s._name=this.uid())),this.state=2650,this.match(t.FOREIGN),this.state=2651,this.match(t.KEY),this.state=2653,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2652,this.uid()),this.state=2655,this.indexColumnNames(),this.state=2656,this.referenceDefinition();break;case 9:switch(s=new lL(s),this.enterOuterAlt(s,9),this.state=2658,this.match(t.ADD),this.state=2663,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=2659,this.match(t.CONSTRAINT),this.state=2661,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2660,s._name=this.uid())),this.state=2665,this.match(t.CHECK),this.state=2672,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,331,this.context)){case 1:this.state=2666,this.uid();break;case 2:this.state=2667,this.stringLiteral();break;case 3:this.state=2668,this.match(t.LR_BRACKET),this.state=2669,this.expression(0),this.state=2670,this.match(t.RR_BRACKET)}this.state=2675,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=2674,this.match(t.NOT)),this.state=2678,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=2677,this.match(t.ENFORCED));break;case 10:switch(s=new TL(s),this.enterOuterAlt(s,10),this.state=2680,this.match(t.ALTER),this.state=2685,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=2681,this.match(t.CONSTRAINT),this.state=2683,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2682,this.constraintName())),this.state=2687,this.match(t.CHECK),this.state=2694,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,336,this.context)){case 1:this.state=2688,this.uid();break;case 2:this.state=2689,this.stringLiteral();break;case 3:this.state=2690,this.match(t.LR_BRACKET),this.state=2691,this.expression(0),this.state=2692,this.match(t.RR_BRACKET)}this.state=2697,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=2696,this.match(t.NOT)),this.state=2700,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=2699,this.match(t.ENFORCED));break;case 11:s=new lL(s),this.enterOuterAlt(s,11),this.state=2702,this.match(t.ADD),this.state=2707,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=2703,this.match(t.CONSTRAINT),this.state=2705,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=2704,s._name=this.uid())),this.state=2709,this.match(t.CHECK),this.state=2710,this.match(t.LR_BRACKET),this.state=2711,this.expression(0),this.state=2712,this.match(t.RR_BRACKET);break;case 12:s=new gL(s),this.enterOuterAlt(s,12),this.state=2714,this.match(t.ALGORITHM),this.state=2716,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2715,this.match(t.EQUAL_SYMBOL)),this.state=2718,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||384===e||454===e||458===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this);break;case 13:switch(s=new NL(s),this.enterOuterAlt(s,13),this.state=2719,this.match(t.ALTER),this.state=2721,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2720,this.match(t.COLUMN)),this.state=2723,this.uid(),this.state=2729,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.state=2724,this.match(t.SET),this.state=2725,this.match(t.DEFAULT),this.state=2726,this.defaultValue();break;case t.DROP:this.state=2727,this.match(t.DROP),this.state=2728,this.match(t.DEFAULT);break;default:throw new he(this)}break;case 14:switch(s=new xL(s),this.enterOuterAlt(s,14),this.state=2731,this.match(t.CHANGE),this.state=2733,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2732,this.match(t.COLUMN)),this.state=2735,s._oldColumn=this.uid(),this.state=2736,s._newColumn=this.uid(),this.state=2737,this.columnDefinition(),this.state=2741,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FIRST:this.state=2738,this.match(t.FIRST);break;case t.AFTER:this.state=2739,this.match(t.AFTER),this.state=2740,s._afterColumn=this.uid();case t.EOF:case t.PARTITION:case t.COMMA:case t.SEMI:}break;case 15:s=new aL(s),this.enterOuterAlt(s,15),this.state=2743,this.match(t.RENAME),this.state=2744,this.match(t.COLUMN),this.state=2745,s._oldColumn=this.uid(),this.state=2746,this.match(t.TO),this.state=2747,s._newColumn=this.uid();break;case 16:s=new dL(s),this.enterOuterAlt(s,16),this.state=2749,this.match(t.LOCK),this.state=2751,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=2750,this.match(t.EQUAL_SYMBOL)),this.state=2753,s._lockType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||419===e||529===e||611===e?(this.errorHandler.reportMatch(this),this.consume()):s._lockType=this.errorHandler.recoverInline(this);break;case 17:switch(s=new _L(s),this.enterOuterAlt(s,17),this.state=2754,this.match(t.MODIFY),this.state=2756,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2755,this.match(t.COLUMN)),this.state=2758,this.uid(),this.state=2759,this.columnDefinition(),this.state=2763,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FIRST:this.state=2760,this.match(t.FIRST);break;case t.AFTER:this.state=2761,this.match(t.AFTER),this.state=2762,this.uid();case t.EOF:case t.PARTITION:case t.COMMA:case t.SEMI:}break;case 18:s=new uL(s),this.enterOuterAlt(s,18),this.state=2765,this.match(t.DROP),this.state=2767,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2766,this.match(t.COLUMN)),this.state=2769,this.uid(),this.state=2771,this.errorHandler.sync(this),e=this.tokenStream.LA(1),144===e&&(this.state=2770,this.match(t.RESTRICT));break;case 19:s=new oL(s),this.enterOuterAlt(s,19),this.state=2773,this.match(t.DROP),this.state=2774,e=this.tokenStream.LA(1),26===e||30===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2775,this.constraintName();break;case 20:s=new ML(s),this.enterOuterAlt(s,20),this.state=2776,this.match(t.DROP),this.state=2777,this.match(t.PRIMARY),this.state=2778,this.match(t.KEY);break;case 21:s=new HL(s),this.enterOuterAlt(s,21),this.state=2779,this.match(t.DROP),this.state=2780,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this),this.state=2781,this.indexName();break;case 22:s=new cL(s),this.enterOuterAlt(s,22),this.state=2782,this.match(t.RENAME),this.state=2783,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this),this.state=2784,this.indexName(),this.state=2785,this.match(t.TO),this.state=2786,this.uid();break;case 23:switch(s=new tL(s),this.enterOuterAlt(s,23),this.state=2788,this.match(t.ALTER),this.state=2790,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2789,this.match(t.COLUMN)),this.state=2792,this.uid(),this.state=2806,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,353,this.context)){case 1:switch(this.state=2793,this.match(t.SET),this.state=2794,this.match(t.DEFAULT),this.state=2800,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.START_NATIONAL_STRING_LITERAL:case t.STRING_LITERAL:case t.STRING_CHARSET_NAME:this.state=2795,this.stringLiteral();break;case t.LR_BRACKET:this.state=2796,this.match(t.LR_BRACKET),this.state=2797,this.expression(0),this.state=2798,this.match(t.RR_BRACKET);break;default:throw new he(this)}break;case 2:this.state=2802,this.match(t.SET),this.state=2803,e=this.tokenStream.LA(1),459===e||673===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 3:this.state=2804,this.match(t.DROP),this.state=2805,this.match(t.DEFAULT)}break;case 24:s=new AL(s),this.enterOuterAlt(s,24),this.state=2808,this.match(t.ALTER),this.state=2809,this.match(t.INDEX),this.state=2810,this.indexName(),this.state=2811,e=this.tokenStream.LA(1),459===e||673===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 25:s=new SL(s),this.enterOuterAlt(s,25),this.state=2813,this.match(t.DROP),this.state=2814,this.match(t.FOREIGN),this.state=2815,this.match(t.KEY),this.state=2816,this.uid();break;case 26:s=new eL(s),this.enterOuterAlt(s,26),this.state=2817,this.match(t.DISABLE),this.state=2818,this.match(t.KEYS);break;case 27:s=new pL(s),this.enterOuterAlt(s,27),this.state=2819,this.match(t.ENABLE),this.state=2820,this.match(t.KEYS);break;case 28:switch(s=new nL(s),this.enterOuterAlt(s,28),this.state=2821,this.match(t.RENAME),this.state=2823,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(12===e||175===e)&&(this.state=2822,s._renameFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),12===e||175===e?(this.errorHandler.reportMatch(this),this.consume()):s._renameFormat=this.errorHandler.recoverInline(this)),this.state=2827,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,355,this.context)){case 1:this.state=2825,this.uid();break;case 2:this.state=2826,this.fullId()}break;case 29:s=new FL(s),this.enterOuterAlt(s,29),this.state=2829,this.match(t.ORDER),this.state=2830,this.match(t.BY),this.state=2831,this.uidList();break;case 30:switch(s=new iL(s),this.enterOuterAlt(s,30),this.state=2832,this.match(t.CONVERT),this.state=2833,this.match(t.TO),this.state=2837,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CHARSET:this.state=2834,this.match(t.CHARSET);break;case t.CHARACTER:this.state=2835,this.match(t.CHARACTER),this.state=2836,this.match(t.SET);break;default:throw new he(this)}this.state=2839,this.charsetName(),this.state=2842,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=2840,this.match(t.COLLATE),this.state=2841,this.collationName());break;case 31:s=new sL(s),this.enterOuterAlt(s,31),this.state=2845,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=2844,this.match(t.DEFAULT)),this.state=2847,this.match(t.CHARACTER),this.state=2848,this.match(t.SET),this.state=2849,this.match(t.EQUAL_SYMBOL),this.state=2850,this.charsetName(),this.state=2854,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=2851,this.match(t.COLLATE),this.state=2852,this.match(t.EQUAL_SYMBOL),this.state=2853,this.collationName());break;case 32:s=new UL(s),this.enterOuterAlt(s,32),this.state=2856,this.match(t.DISCARD),this.state=2857,this.match(t.TABLESPACE);break;case 33:s=new hL(s),this.enterOuterAlt(s,33),this.state=2858,this.match(t.IMPORT),this.state=2859,this.match(t.TABLESPACE);break;case 34:s=new LL(s),this.enterOuterAlt(s,34),this.state=2860,this.match(t.FORCE);break;case 35:s=new mL(s),this.enterOuterAlt(s,35),this.state=2861,s._validationFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),192===e||677===e?(this.errorHandler.reportMatch(this),this.consume()):s._validationFormat=this.errorHandler.recoverInline(this),this.state=2862,this.match(t.VALIDATION);break;case 36:for(s=new EL(s),this.enterOuterAlt(s,36),this.state=2863,this.match(t.ADD),this.state=2865,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2864,this.match(t.COLUMN)),this.state=2867,this.match(t.LR_BRACKET),this.state=2868,this.createDefinition(),this.state=2873,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2869,this.match(t.COMMA),this.state=2870,this.createDefinition(),this.state=2875,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2876,this.match(t.RR_BRACKET);break;case 37:s=new OL(s),this.enterOuterAlt(s,37),this.state=2878,this.alterPartitionSpecification()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterPartitionSpecification(){let e,s=new vL(this.context,this.state);this.enterRule(s,148,t.RULE_alterPartitionSpecification);try{switch(this.state=2979,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:for(s=new YL(s),this.enterOuterAlt(s,1),this.state=2881,this.match(t.ADD),this.state=2882,this.match(t.PARTITION),this.state=2883,this.match(t.LR_BRACKET),this.state=2884,this.partitionDefinition(),this.state=2889,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2885,this.match(t.COMMA),this.state=2886,this.partitionDefinition(),this.state=2891,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2892,this.match(t.RR_BRACKET);break;case t.DROP:s=new yL(s),this.enterOuterAlt(s,2),this.state=2894,this.match(t.DROP),this.state=2895,this.match(t.PARTITION),this.state=2896,this.uidList();break;case t.DISCARD:switch(s=new fL(s),this.enterOuterAlt(s,3),this.state=2897,this.match(t.DISCARD),this.state=2898,this.match(t.PARTITION),this.state=2901,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2899,this.uidList();break;case t.ALL:this.state=2900,this.match(t.ALL);break;default:throw new he(this)}this.state=2903,this.match(t.TABLESPACE);break;case t.IMPORT:switch(s=new BL(s),this.enterOuterAlt(s,4),this.state=2904,this.match(t.IMPORT),this.state=2905,this.match(t.PARTITION),this.state=2908,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2906,this.uidList();break;case t.ALL:this.state=2907,this.match(t.ALL);break;default:throw new he(this)}this.state=2910,this.match(t.TABLESPACE);break;case t.TRUNCATE:switch(s=new ZL(s),this.enterOuterAlt(s,5),this.state=2911,this.match(t.TRUNCATE),this.state=2912,this.match(t.PARTITION),this.state=2915,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2913,this.uidList();break;case t.ALL:this.state=2914,this.match(t.ALL);break;default:throw new he(this)}break;case t.COALESCE:s=new VL(s),this.enterOuterAlt(s,6),this.state=2917,this.match(t.COALESCE),this.state=2918,this.match(t.PARTITION),this.state=2919,this.decimalLiteral();break;case t.REORGANIZE:for(s=new XL(s),this.enterOuterAlt(s,7),this.state=2920,this.match(t.REORGANIZE),this.state=2921,this.match(t.PARTITION),this.state=2922,this.uidList(),this.state=2923,this.match(t.INTO),this.state=2924,this.match(t.LR_BRACKET),this.state=2925,this.partitionDefinition(),this.state=2930,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=2926,this.match(t.COMMA),this.state=2927,this.partitionDefinition(),this.state=2932,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2933,this.match(t.RR_BRACKET);break;case t.EXCHANGE:s=new jL(s),this.enterOuterAlt(s,8),this.state=2935,this.match(t.EXCHANGE),this.state=2936,this.match(t.PARTITION),this.state=2937,this.uid(),this.state=2938,this.match(t.WITH),this.state=2939,this.match(t.TABLE),this.state=2940,this.tableName(),this.state=2943,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(192===e||677===e)&&(this.state=2941,s._validationFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),192===e||677===e?(this.errorHandler.reportMatch(this),this.consume()):s._validationFormat=this.errorHandler.recoverInline(this),this.state=2942,this.match(t.VALIDATION));break;case t.ANALYZE:switch(s=new KL(s),this.enterOuterAlt(s,9),this.state=2945,this.match(t.ANALYZE),this.state=2946,this.match(t.PARTITION),this.state=2949,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2947,this.uidList();break;case t.ALL:this.state=2948,this.match(t.ALL);break;default:throw new he(this)}break;case t.CHECK:switch(s=new WL(s),this.enterOuterAlt(s,10),this.state=2951,this.match(t.CHECK),this.state=2952,this.match(t.PARTITION),this.state=2955,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2953,this.uidList();break;case t.ALL:this.state=2954,this.match(t.ALL);break;default:throw new he(this)}break;case t.OPTIMIZE:switch(s=new bL(s),this.enterOuterAlt(s,11),this.state=2957,this.match(t.OPTIMIZE),this.state=2958,this.match(t.PARTITION),this.state=2961,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2959,this.uidList();break;case t.ALL:this.state=2960,this.match(t.ALL);break;default:throw new he(this)}break;case t.REBUILD:switch(s=new QL(s),this.enterOuterAlt(s,12),this.state=2963,this.match(t.REBUILD),this.state=2964,this.match(t.PARTITION),this.state=2967,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2965,this.uidList();break;case t.ALL:this.state=2966,this.match(t.ALL);break;default:throw new he(this)}break;case t.REPAIR:switch(s=new qL(s),this.enterOuterAlt(s,13),this.state=2969,this.match(t.REPAIR),this.state=2970,this.match(t.PARTITION),this.state=2973,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=2971,this.uidList();break;case t.ALL:this.state=2972,this.match(t.ALL);break;default:throw new he(this)}break;case t.REMOVE:s=new wL(s),this.enterOuterAlt(s,14),this.state=2975,this.match(t.REMOVE),this.state=2976,this.match(t.PARTITIONING);break;case t.UPGRADE:s=new JL(s),this.enterOuterAlt(s,15),this.state=2977,this.match(t.UPGRADE),this.state=2978,this.match(t.PARTITIONING);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropDatabase(){let e,s=new zL(this.context,this.state);this.enterRule(s,150,t.RULE_dropDatabase);try{if(this.enterOuterAlt(s,1),1===(this.state=2981,this.match(t.DROP),this.state=2982,s._dbFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),39===e||150===e?(this.errorHandler.reportMatch(this),this.consume()):s._dbFormat=this.errorHandler.recoverInline(this),this.state=2984,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,375,this.context)))this.state=2983,this.ifExists();this.state=2986,this.databaseName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropEvent(){let e=new $L(this.context,this.state);this.enterRule(e,152,t.RULE_dropEvent);try{if(this.enterOuterAlt(e,1),1===(this.state=2988,this.match(t.DROP),this.state=2989,this.match(t.EVENT),this.state=2991,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,376,this.context)))this.state=2990,this.ifExists();this.state=2993,this.fullId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropIndex(){let e,s=new tC(this.context,this.state);this.enterRule(s,154,t.RULE_dropIndex);try{if(this.enterOuterAlt(s,1),1===(this.state=2995,this.match(t.DROP),this.state=2996,this.match(t.INDEX),this.state=2998,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,377,this.context)))this.state=2997,s._intimeAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),531===e||537===e?(this.errorHandler.reportMatch(this),this.consume()):s._intimeAction=this.errorHandler.recoverInline(this);for(this.state=3e3,this.indexName(),this.state=3001,this.match(t.ON),this.state=3002,this.tableName(),this.state=3015,this.errorHandler.sync(this),e=this.tokenStream.LA(1);103===e||336===e;){switch(this.state=3013,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALGORITHM:this.state=3003,this.match(t.ALGORITHM),this.state=3005,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=3004,this.match(t.EQUAL_SYMBOL)),this.state=3007,s._algType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||384===e||454===e?(this.errorHandler.reportMatch(this),this.consume()):s._algType=this.errorHandler.recoverInline(this);break;case t.LOCK:this.state=3008,this.match(t.LOCK),this.state=3010,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=3009,this.match(t.EQUAL_SYMBOL)),this.state=3012,s._lockType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),42===e||419===e||529===e||611===e?(this.errorHandler.reportMatch(this),this.consume()):s._lockType=this.errorHandler.recoverInline(this);break;default:throw new he(this)}this.state=3017,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropLogfileGroup(){let e=new eC(this.context,this.state);this.enterRule(e,156,t.RULE_dropLogfileGroup);try{this.enterOuterAlt(e,1),this.state=3018,this.match(t.DROP),this.state=3019,this.match(t.LOGFILE),this.state=3020,this.match(t.GROUP),this.state=3021,this.uid(),this.state=3022,this.match(t.ENGINE),this.state=3023,this.match(t.EQUAL_SYMBOL),this.state=3024,this.engineName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropProcedure(){let e=new sC(this.context,this.state);this.enterRule(e,158,t.RULE_dropProcedure);try{if(this.enterOuterAlt(e,1),1===(this.state=3026,this.match(t.DROP),this.state=3027,this.match(t.PROCEDURE),this.state=3029,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,382,this.context)))this.state=3028,this.ifExists();this.state=3031,this.fullId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropFunction(){let e=new aC(this.context,this.state);this.enterRule(e,160,t.RULE_dropFunction);try{if(this.enterOuterAlt(e,1),1===(this.state=3033,this.match(t.DROP),this.state=3034,this.match(t.FUNCTION),this.state=3036,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,383,this.context)))this.state=3035,this.ifExists();this.state=3038,this.fullId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropServer(){let e=new iC(this.context,this.state);this.enterRule(e,162,t.RULE_dropServer);try{if(this.enterOuterAlt(e,1),1===(this.state=3040,this.match(t.DROP),this.state=3041,this.match(t.SERVER),this.state=3043,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,384,this.context)))this.state=3042,this.ifExists();this.state=3045,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropTable(){let e,s=new rC(this.context,this.state);this.enterRule(s,164,t.RULE_dropTable);try{if(this.enterOuterAlt(s,1),1===(this.state=3047,this.match(t.DROP),this.state=3049,this.errorHandler.sync(this),e=this.tokenStream.LA(1),649===e&&(this.state=3048,this.match(t.TEMPORARY)),this.state=3051,this.match(t.TABLE),this.state=3053,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,386,this.context)))this.state=3052,this.ifExists();this.state=3055,this.tables(),this.state=3057,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(21===e||144===e)&&(this.state=3056,s._dropType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),21===e||144===e?(this.errorHandler.reportMatch(this),this.consume()):s._dropType=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropTablespace(){let e,s=new cC(this.context,this.state);this.enterRule(s,166,t.RULE_dropTablespace);try{this.enterOuterAlt(s,1),this.state=3059,this.match(t.DROP),this.state=3060,this.match(t.TABLESPACE),this.state=3061,this.uid(),this.state=3067,this.errorHandler.sync(this),e=this.tokenStream.LA(1),409===e&&(this.state=3062,this.match(t.ENGINE),this.state=3064,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1124===e&&(this.state=3063,this.match(t.EQUAL_SYMBOL)),this.state=3066,this.engineName())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropTrigger(){let e=new nC(this.context,this.state);this.enterRule(e,168,t.RULE_dropTrigger);try{if(this.enterOuterAlt(e,1),1===(this.state=3069,this.match(t.DROP),this.state=3070,this.match(t.TRIGGER),this.state=3072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,390,this.context)))this.state=3071,this.ifExists();this.state=3074,this.triggerName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dropView(){let e,s=new hC(this.context,this.state);this.enterRule(s,170,t.RULE_dropView);try{if(this.enterOuterAlt(s,1),1===(this.state=3076,this.match(t.DROP),this.state=3077,this.match(t.VIEW),this.state=3079,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,391,this.context)))this.state=3078,this.ifExists();for(this.state=3081,this.fullId(),this.state=3086,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3082,this.match(t.COMMA),this.state=3083,this.fullId(),this.state=3088,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3090,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(21===e||144===e)&&(this.state=3089,s._dropType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),21===e||144===e?(this.errorHandler.reportMatch(this),this.consume()):s._dropType=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropRole(){let e=new EC(this.context,this.state);this.enterRule(e,172,t.RULE_dropRole);try{if(this.enterOuterAlt(e,1),1===(this.state=3092,this.match(t.DROP),this.state=3093,this.match(t.ROLE),this.state=3095,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,394,this.context)))this.state=3094,this.ifExists();this.state=3097,this.roleNameList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}setRole(){let e=new TC(this.context,this.state);this.enterRule(e,174,t.RULE_setRole);try{switch(this.state=3112,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,396,this.context)){case 1:switch(this.enterOuterAlt(e,1),this.state=3099,this.match(t.SET),this.state=3100,this.match(t.DEFAULT),this.state=3101,this.match(t.ROLE),this.state=3105,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,395,this.context)){case 1:this.state=3102,this.match(t.NONE);break;case 2:this.state=3103,this.match(t.ALL);break;case 3:this.state=3104,this.roleNameList()}this.state=3107,this.match(t.TO),this.state=3108,this.userNameList();break;case 2:this.enterOuterAlt(e,2),this.state=3109,this.match(t.SET),this.state=3110,this.match(t.ROLE),this.state=3111,this.roleOption()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}renameTable(){let e,s=new oC(this.context,this.state);this.enterRule(s,176,t.RULE_renameTable);try{for(this.enterOuterAlt(s,1),this.state=3114,this.match(t.RENAME),this.state=3115,this.match(t.TABLE),this.state=3116,this.renameTableClause(),this.state=3121,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3117,this.match(t.COMMA),this.state=3118,this.renameTableClause(),this.state=3123,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}renameTableClause(){let e=new RC(this.context,this.state);this.enterRule(e,178,t.RULE_renameTableClause);try{this.enterOuterAlt(e,1),this.state=3124,this.tableName(),this.state=3125,this.match(t.TO),this.state=3126,this.tableName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}truncateTable(){let e,s=new AC(this.context,this.state);this.enterRule(s,180,t.RULE_truncateTable);try{this.enterOuterAlt(s,1),this.state=3128,this.match(t.TRUNCATE),this.state=3130,this.errorHandler.sync(this),e=this.tokenStream.LA(1),172===e&&(this.state=3129,this.match(t.TABLE)),this.state=3132,this.tableName()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}callStatement(){let e,s=new SC(this.context,this.state);this.enterRule(s,182,t.RULE_callStatement);try{if(this.enterOuterAlt(s,1),this.state=3134,this.match(t.CALL),this.state=3135,this.fullId(),this.state=3142,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){switch(this.state=3136,this.match(t.LR_BRACKET),this.state=3139,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,399,this.context)){case 1:this.state=3137,this.constants();break;case 2:this.state=3138,this.expressions()}this.state=3141,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}deleteStatement(){let e=new lC(this.context,this.state);this.enterRule(e,184,t.RULE_deleteStatement);try{switch(this.state=3146,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,401,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3144,this.singleDeleteStatement();break;case 2:this.enterOuterAlt(e,2),this.state=3145,this.multipleDeleteStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}doStatement(){let e=new OC(this.context,this.state);this.enterRule(e,186,t.RULE_doStatement);try{this.enterOuterAlt(e,1),this.state=3148,this.match(t.DO),this.state=3149,this.expressions()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}handlerStatement(){let e=new IC(this.context,this.state);this.enterRule(e,188,t.RULE_handlerStatement);try{switch(this.state=3155,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,402,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3151,this.handlerOpenStatement();break;case 2:this.enterOuterAlt(e,2),this.state=3152,this.handlerReadIndexStatement();break;case 3:this.enterOuterAlt(e,3),this.state=3153,this.handlerReadStatement();break;case 4:this.enterOuterAlt(e,4),this.state=3154,this.handlerCloseStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}insertStatement(){let e,s=new uC(this.context,this.state);this.enterRule(s,190,t.RULE_insertStatement);try{switch(this.enterOuterAlt(s,1),this.state=3157,this.match(t.INSERT),this.state=3159,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(43===e||75===e||106===e)&&(this.state=3158,s._priority=this.tokenStream.LT(1),e=this.tokenStream.LA(1),43===e||75===e||106===e?(this.errorHandler.reportMatch(this),this.consume()):s._priority=this.errorHandler.recoverInline(this)),this.state=3162,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3161,this.match(t.IGNORE)),this.state=3165,this.errorHandler.sync(this),e=this.tokenStream.LA(1),87===e&&(this.state=3164,this.match(t.INTO)),this.state=3167,this.tableName(),this.state=3174,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=3168,this.match(t.PARTITION),this.state=3169,this.match(t.LR_BRACKET),this.state=3171,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=3170,s._partitions=this.uidList()),this.state=3173,this.match(t.RR_BRACKET)),this.state=3199,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:case t.VALUES:case t.VALUE:case t.LR_BRACKET:if(1===(this.state=3181,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,409,this.context))){if(1===(this.state=3176,this.match(t.LR_BRACKET),this.state=3178,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,408,this.context)))this.state=3177,s._columns=this.fullColumnNameList();this.state=3180,this.match(t.RR_BRACKET)}this.state=3183,this.insertStatementValue(),this.state=3188,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537155584||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=3185,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3184,this.match(t.AS)),this.state=3187,this.uid());break;case t.SET:for(this.state=3190,this.match(t.SET),this.state=3191,s._setFirst=this.updatedElement(),this.state=3196,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3192,this.match(t.COMMA),this.state=3193,s._updatedElement=this.updatedElement(),s._setElements.push(s._updatedElement),this.state=3198,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}if(this.state=3213,this.errorHandler.sync(this),e=this.tokenStream.LA(1),118===e)for(this.state=3201,this.match(t.ON),this.state=3202,this.match(t.DUPLICATE),this.state=3203,this.match(t.KEY),this.state=3204,this.match(t.UPDATE),this.state=3205,s._duplicatedFirst=this.updatedElement(),this.state=3210,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3206,this.match(t.COMMA),this.state=3207,s._updatedElement=this.updatedElement(),s._duplicatedElements.push(s._updatedElement),this.state=3212,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}loadDataStatement(){let e,s=new NC(this.context,this.state);this.enterRule(s,192,t.RULE_loadDataStatement);try{if(this.enterOuterAlt(s,1),this.state=3215,this.match(t.LOAD),this.state=3216,this.match(t.DATA),this.state=3218,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(106===e||374===e)&&(this.state=3217,s._priority=this.tokenStream.LT(1),e=this.tokenStream.LA(1),106===e||374===e?(this.errorHandler.reportMatch(this),this.consume()):s._priority=this.errorHandler.recoverInline(this)),this.state=3221,this.errorHandler.sync(this),e=this.tokenStream.LA(1),474===e&&(this.state=3220,this.match(t.LOCAL)),this.state=3223,this.match(t.INFILE),this.state=3224,s._filename=this.match(t.STRING_LITERAL),this.state=3226,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(78===e||141===e)&&(this.state=3225,s._violation=this.tokenStream.LT(1),e=this.tokenStream.LA(1),78===e||141===e?(this.errorHandler.reportMatch(this),this.consume()):s._violation=this.errorHandler.recoverInline(this)),this.state=3228,this.match(t.INTO),this.state=3229,this.match(t.TABLE),this.state=3230,this.tableName(),this.state=3236,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=3231,this.match(t.PARTITION),this.state=3232,this.match(t.LR_BRACKET),this.state=3233,this.uidList(),this.state=3234,this.match(t.RR_BRACKET)),this.state=3241,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3238,this.match(t.CHARACTER),this.state=3239,this.match(t.SET),this.state=3240,s._charset=this.charsetName()),this.state=3249,this.errorHandler.sync(this),e=this.tokenStream.LA(1),365===e||427===e){this.state=3243,s._fieldsFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),365===e||427===e?(this.errorHandler.reportMatch(this),this.consume()):s._fieldsFormat=this.errorHandler.recoverInline(this),this.state=3245,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3244,this.selectFieldsInto(),this.state=3247,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(56===e||58===e||122===e||173===e)}if(this.state=3257,this.errorHandler.sync(this),e=this.tokenStream.LA(1),101===e){this.state=3251,this.match(t.LINES),this.state=3253,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3252,this.selectLinesInto(),this.state=3255,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(169===e||173===e)}if(this.state=3263,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3259,this.match(t.IGNORE),this.state=3260,this.decimalLiteral(),this.state=3261,s._linesFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),101===e||601===e?(this.errorHandler.reportMatch(this),this.consume()):s._linesFormat=this.errorHandler.recoverInline(this)),this.state=3276,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=3265,this.match(t.LR_BRACKET),this.state=3266,this.assignmentField(),this.state=3271,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3267,this.match(t.COMMA),this.state=3268,this.assignmentField(),this.state=3273,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3274,this.match(t.RR_BRACKET)}if(this.state=3287,this.errorHandler.sync(this),e=this.tokenStream.LA(1),153===e)for(this.state=3278,this.match(t.SET),this.state=3279,this.updatedElement(),this.state=3284,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3280,this.match(t.COMMA),this.state=3281,this.updatedElement(),this.state=3286,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}loadXmlStatement(){let e,s=new LC(this.context,this.state);this.enterRule(s,194,t.RULE_loadXmlStatement);try{if(this.enterOuterAlt(s,1),this.state=3289,this.match(t.LOAD),this.state=3290,this.match(t.XML),this.state=3292,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(106===e||374===e)&&(this.state=3291,s._priority=this.tokenStream.LT(1),e=this.tokenStream.LA(1),106===e||374===e?(this.errorHandler.reportMatch(this),this.consume()):s._priority=this.errorHandler.recoverInline(this)),this.state=3295,this.errorHandler.sync(this),e=this.tokenStream.LA(1),474===e&&(this.state=3294,this.match(t.LOCAL)),this.state=3297,this.match(t.INFILE),this.state=3298,s._filename=this.match(t.STRING_LITERAL),this.state=3300,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(78===e||141===e)&&(this.state=3299,s._violation=this.tokenStream.LT(1),e=this.tokenStream.LA(1),78===e||141===e?(this.errorHandler.reportMatch(this),this.consume()):s._violation=this.errorHandler.recoverInline(this)),this.state=3302,this.match(t.INTO),this.state=3303,this.match(t.TABLE),this.state=3304,this.tableName(),this.state=3308,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3305,this.match(t.CHARACTER),this.state=3306,this.match(t.SET),this.state=3307,s._charset=this.charsetName()),this.state=3316,this.errorHandler.sync(this),e=this.tokenStream.LA(1),601===e&&(this.state=3310,this.match(t.ROWS),this.state=3311,this.match(t.IDENTIFIED),this.state=3312,this.match(t.BY),this.state=3313,this.match(t.LESS_SYMBOL),this.state=3314,s._tag=this.match(t.STRING_LITERAL),this.state=3315,this.match(t.GREATER_SYMBOL)),this.state=3322,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3318,this.match(t.IGNORE),this.state=3319,this.decimalLiteral(),this.state=3320,s._linesFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),101===e||601===e?(this.errorHandler.reportMatch(this),this.consume()):s._linesFormat=this.errorHandler.recoverInline(this)),this.state=3335,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e){for(this.state=3324,this.match(t.LR_BRACKET),this.state=3325,this.assignmentField(),this.state=3330,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3326,this.match(t.COMMA),this.state=3327,this.assignmentField(),this.state=3332,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3333,this.match(t.RR_BRACKET)}if(this.state=3346,this.errorHandler.sync(this),e=this.tokenStream.LA(1),153===e)for(this.state=3337,this.match(t.SET),this.state=3338,this.updatedElement(),this.state=3343,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3339,this.match(t.COMMA),this.state=3340,this.updatedElement(),this.state=3345,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}replaceStatement(){let e,s=new CC(this.context,this.state);this.enterRule(s,196,t.RULE_replaceStatement);try{switch(this.enterOuterAlt(s,1),this.state=3348,this.match(t.REPLACE),this.state=3350,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(43===e||106===e)&&(this.state=3349,s._priority=this.tokenStream.LT(1),e=this.tokenStream.LA(1),43===e||106===e?(this.errorHandler.reportMatch(this),this.consume()):s._priority=this.errorHandler.recoverInline(this)),this.state=3353,this.errorHandler.sync(this),e=this.tokenStream.LA(1),87===e&&(this.state=3352,this.match(t.INTO)),this.state=3355,this.tableName(),this.state=3361,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=3356,this.match(t.PARTITION),this.state=3357,this.match(t.LR_BRACKET),this.state=3358,s._partitions=this.uidList(),this.state=3359,this.match(t.RR_BRACKET)),this.state=3379,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:case t.VALUES:case t.VALUE:case t.LR_BRACKET:if(1===(this.state=3367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,443,this.context)))this.state=3363,this.match(t.LR_BRACKET),this.state=3364,s._columns=this.uidList(),this.state=3365,this.match(t.RR_BRACKET);this.state=3369,this.insertStatementValue();break;case t.SET:for(this.state=3370,this.match(t.SET),this.state=3371,s._setFirst=this.updatedElement(),this.state=3376,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3372,this.match(t.COMMA),this.state=3373,s._updatedElement=this.updatedElement(),s._setElements.push(s._updatedElement),this.state=3378,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectStatement(){let e,s=new _C(this.context,this.state);this.enterRule(s,198,t.RULE_selectStatement);try{let a;switch(this.state=3446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,463,this.context)){case 1:s=new dC(s),this.enterOuterAlt(s,1),this.state=3381,this.querySpecification(),this.state=3383,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(65===e||103===e)&&(this.state=3382,this.lockClause());break;case 2:s=new UC(s),this.enterOuterAlt(s,2),this.state=3385,this.queryExpression(),this.state=3387,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(65===e||103===e)&&(this.state=3386,this.lockClause());break;case 3:switch(s=new PC(s),this.enterOuterAlt(s,3),this.state=3391,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:this.state=3389,this.querySpecificationNointo();break;case t.LR_BRACKET:this.state=3390,this.queryExpressionNointo();break;default:throw new he(this)}this.state=3394,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=3393,this.unionStatement(),this.state=3396,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,449,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);if(this.state=3406,this.errorHandler.sync(this),e=this.tokenStream.LA(1),180===e)switch(this.state=3398,this.match(t.UNION),this.state=3400,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(6===e||49===e)&&(this.state=3399,s._unionType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),6===e||49===e?(this.errorHandler.reportMatch(this),this.consume()):s._unionType=this.errorHandler.recoverInline(this)),this.state=3404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:this.state=3402,this.querySpecification();break;case t.LR_BRACKET:this.state=3403,this.queryExpression();break;default:throw new he(this)}if(1===(this.state=3409,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,453,this.context)))this.state=3408,this.orderByClause();this.state=3412,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=3411,this.limitClause()),this.state=3415,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(65===e||103===e)&&(this.state=3414,this.lockClause());break;case 4:s=new MC(s),this.enterOuterAlt(s,4),this.state=3417,this.queryExpressionNointo(),this.state=3419,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=3418,this.unionParenthesis(),this.state=3421,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,456,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);if(1===(this.state=3428,this.errorHandler.sync(this),e=this.tokenStream.LA(1),180===e&&(this.state=3423,this.match(t.UNION),this.state=3425,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(6===e||49===e)&&(this.state=3424,s._unionType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),6===e||49===e?(this.errorHandler.reportMatch(this),this.consume()):s._unionType=this.errorHandler.recoverInline(this)),this.state=3427,this.queryExpression()),this.state=3431,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)))this.state=3430,this.orderByClause();this.state=3434,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=3433,this.limitClause()),this.state=3437,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(65===e||103===e)&&(this.state=3436,this.lockClause());break;case 5:s=new mC(s),this.enterOuterAlt(s,5),this.state=3439,this.querySpecificationNointo(),this.state=3442,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3440,this.match(t.COMMA),this.state=3441,this.lateralStatement(),this.state=3444,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(1135===e)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}updateStatement(){let e=new DC(this.context,this.state);this.enterRule(e,200,t.RULE_updateStatement);try{switch(this.state=3450,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,464,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3448,this.singleUpdateStatement();break;case 2:this.enterOuterAlt(e,2),this.state=3449,this.multipleUpdateStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}valuesStatement(){let e,s=new pC(this.context,this.state);this.enterRule(s,202,t.RULE_valuesStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=3452,this.match(t.VALUES),this.state=3453,this.match(t.LR_BRACKET),this.state=3455,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,465,this.context)))this.state=3454,this.expressionsWithDefaults();for(this.state=3457,this.match(t.RR_BRACKET),this.state=3466,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;){if(1===(this.state=3458,this.match(t.COMMA),this.state=3459,this.match(t.LR_BRACKET),this.state=3461,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,466,this.context)))this.state=3460,this.expressionsWithDefaults();this.state=3463,this.match(t.RR_BRACKET),this.state=3468,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}insertStatementValue(){let e,s=new gC(this.context,this.state);this.enterRule(s,204,t.RULE_insertStatementValue);try{switch(this.state=3487,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:case t.LR_BRACKET:this.enterOuterAlt(s,1),this.state=3469,this.selectStatement();break;case t.VALUES:case t.VALUE:if(this.enterOuterAlt(s,2),1===(this.state=3470,s._insertFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),188===e||669===e?(this.errorHandler.reportMatch(this),this.consume()):s._insertFormat=this.errorHandler.recoverInline(this),this.state=3471,this.match(t.LR_BRACKET),this.state=3473,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,468,this.context)))this.state=3472,this.expressionsWithDefaults();for(this.state=3475,this.match(t.RR_BRACKET),this.state=3484,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;){if(1===(this.state=3476,this.match(t.COMMA),this.state=3477,this.match(t.LR_BRACKET),this.state=3479,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,469,this.context)))this.state=3478,this.expressionsWithDefaults();this.state=3481,this.match(t.RR_BRACKET),this.state=3486,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}updatedElement(){let e=new xC(this.context,this.state);this.enterRule(e,206,t.RULE_updatedElement);try{switch(this.enterOuterAlt(e,1),this.state=3489,this.fullColumnName(),this.state=3490,this.match(t.EQUAL_SYMBOL),this.state=3493,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,472,this.context)){case 1:this.state=3491,this.expression(0);break;case 2:this.state=3492,this.match(t.DEFAULT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}assignmentField(){let e=new kC(this.context,this.state);this.enterRule(e,208,t.RULE_assignmentField);try{switch(this.state=3497,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.enterOuterAlt(e,1),this.state=3495,this.uid();break;case t.LOCAL_ID:this.enterOuterAlt(e,2),this.state=3496,this.match(t.LOCAL_ID);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lockClause(){let e=new HC(this.context,this.state);this.enterRule(e,210,t.RULE_lockClause);try{switch(this.state=3505,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(e,1),this.state=3499,this.match(t.FOR),this.state=3500,this.match(t.UPDATE);break;case t.LOCK:this.enterOuterAlt(e,2),this.state=3501,this.match(t.LOCK),this.state=3502,this.match(t.IN),this.state=3503,this.match(t.SHARE),this.state=3504,this.match(t.MODE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}singleDeleteStatement(){let e,s=new GC(this.context,this.state);this.enterRule(s,212,t.RULE_singleDeleteStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=3507,this.match(t.DELETE),this.state=3509,this.errorHandler.sync(this),e=this.tokenStream.LA(1),106===e&&(this.state=3508,s._priority=this.match(t.LOW_PRIORITY)),this.state=3512,this.errorHandler.sync(this),e=this.tokenStream.LA(1),568===e&&(this.state=3511,this.match(t.QUICK)),this.state=3515,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3514,this.match(t.IGNORE)),this.state=3517,this.match(t.FROM),this.state=3518,this.tableName(),this.state=3523,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,479,this.context)))this.state=3520,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3519,this.match(t.AS)),this.state=3522,this.uid();this.state=3530,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=3525,this.match(t.PARTITION),this.state=3526,this.match(t.LR_BRACKET),this.state=3527,this.uidList(),this.state=3528,this.match(t.RR_BRACKET)),this.state=3534,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=3532,this.match(t.WHERE),this.state=3533,this.expression(0)),this.state=3537,this.errorHandler.sync(this),e=this.tokenStream.LA(1),124===e&&(this.state=3536,this.orderByClause()),this.state=3541,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=3539,this.match(t.LIMIT),this.state=3540,this.limitClauseAtom())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}multipleDeleteStatement(){let e,s=new FC(this.context,this.state);this.enterRule(s,214,t.RULE_multipleDeleteStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=3543,this.match(t.DELETE),this.state=3545,this.errorHandler.sync(this),e=this.tokenStream.LA(1),106===e&&(this.state=3544,s._priority=this.match(t.LOW_PRIORITY)),this.state=3548,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,485,this.context)))this.state=3547,this.match(t.QUICK);switch(this.state=3551,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3550,this.match(t.IGNORE)),this.state=3592,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:for(this.state=3553,this.tableName(),this.state=3556,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1132===e&&(this.state=3554,this.match(t.DOT),this.state=3555,this.match(t.STAR)),this.state=3566,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3558,this.match(t.COMMA),this.state=3559,this.tableName(),this.state=3562,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1132===e&&(this.state=3560,this.match(t.DOT),this.state=3561,this.match(t.STAR)),this.state=3568,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3569,this.match(t.FROM),this.state=3570,this.tableSources();break;case t.FROM:for(this.state=3572,this.match(t.FROM),this.state=3573,this.tableName(),this.state=3576,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1132===e&&(this.state=3574,this.match(t.DOT),this.state=3575,this.match(t.STAR)),this.state=3586,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3578,this.match(t.COMMA),this.state=3579,this.tableName(),this.state=3582,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1132===e&&(this.state=3580,this.match(t.DOT),this.state=3581,this.match(t.STAR)),this.state=3588,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3589,this.match(t.USING),this.state=3590,this.tableSources();break;default:throw new he(this)}this.state=3596,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=3594,this.match(t.WHERE),this.state=3595,this.expression(0))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}handlerOpenStatement(){let e,s=new vC(this.context,this.state);this.enterRule(s,216,t.RULE_handlerOpenStatement);try{this.enterOuterAlt(s,1),this.state=3598,this.match(t.HANDLER),this.state=3599,this.tableName(),this.state=3600,this.match(t.OPEN),this.state=3605,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537155584||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=3602,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3601,this.match(t.AS)),this.state=3604,this.uid())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}handlerReadIndexStatement(){let e,s=new BC(this.context,this.state);this.enterRule(s,218,t.RULE_handlerReadIndexStatement);try{switch(this.enterOuterAlt(s,1),this.state=3607,this.match(t.HANDLER),this.state=3608,this.tableName(),this.state=3609,this.match(t.READ),this.state=3610,s._index=this.uid(),this.state=3617,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUAL_SYMBOL:case t.GREATER_SYMBOL:case t.LESS_SYMBOL:case t.EXCLAMATION_SYMBOL:this.state=3611,this.comparisonOperator(),this.state=3612,this.match(t.LR_BRACKET),this.state=3613,this.constants(),this.state=3614,this.match(t.RR_BRACKET);break;case t.FIRST:case t.LAST:case t.NEXT:case t.PREV:this.state=3616,s._moveOrder=this.tokenStream.LT(1),e=this.tokenStream.LA(1),430===e||469===e||520===e||562===e?(this.errorHandler.reportMatch(this),this.consume()):s._moveOrder=this.errorHandler.recoverInline(this);break;default:throw new he(this)}this.state=3621,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=3619,this.match(t.WHERE),this.state=3620,this.expression(0)),this.state=3625,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=3623,this.match(t.LIMIT),this.state=3624,this.limitClauseAtom())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}handlerReadStatement(){let e,s=new yC(this.context,this.state);this.enterRule(s,220,t.RULE_handlerReadStatement);try{this.enterOuterAlt(s,1),this.state=3627,this.match(t.HANDLER),this.state=3628,this.tableName(),this.state=3629,this.match(t.READ),this.state=3630,s._moveOrder=this.tokenStream.LT(1),e=this.tokenStream.LA(1),430===e||520===e?(this.errorHandler.reportMatch(this),this.consume()):s._moveOrder=this.errorHandler.recoverInline(this),this.state=3633,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=3631,this.match(t.WHERE),this.state=3632,this.expression(0)),this.state=3637,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=3635,this.match(t.LIMIT),this.state=3636,this.limitClauseAtom())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}handlerCloseStatement(){let e=new fC(this.context,this.state);this.enterRule(e,222,t.RULE_handlerCloseStatement);try{this.enterOuterAlt(e,1),this.state=3639,this.match(t.HANDLER),this.state=3640,this.tableName(),this.state=3641,this.match(t.CLOSE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}singleUpdateStatement(){let e,s=new YC(this.context,this.state);this.enterRule(s,224,t.RULE_singleUpdateStatement);try{for(this.enterOuterAlt(s,1),this.state=3643,this.match(t.UPDATE),this.state=3645,this.errorHandler.sync(this),e=this.tokenStream.LA(1),106===e&&(this.state=3644,s._priority=this.match(t.LOW_PRIORITY)),this.state=3648,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3647,this.match(t.IGNORE)),this.state=3650,this.tableName(),this.state=3655,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537155584||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=3652,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3651,this.match(t.AS)),this.state=3654,this.uid()),this.state=3657,this.match(t.SET),this.state=3658,this.updatedElement(),this.state=3663,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3659,this.match(t.COMMA),this.state=3660,this.updatedElement(),this.state=3665,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3668,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=3666,this.match(t.WHERE),this.state=3667,this.expression(0)),this.state=3671,this.errorHandler.sync(this),e=this.tokenStream.LA(1),124===e&&(this.state=3670,this.orderByClause()),this.state=3674,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=3673,this.limitClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}multipleUpdateStatement(){let e,s=new wC(this.context,this.state);this.enterRule(s,226,t.RULE_multipleUpdateStatement);try{for(this.enterOuterAlt(s,1),this.state=3676,this.match(t.UPDATE),this.state=3678,this.errorHandler.sync(this),e=this.tokenStream.LA(1),106===e&&(this.state=3677,s._priority=this.match(t.LOW_PRIORITY)),this.state=3681,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=3680,this.match(t.IGNORE)),this.state=3683,this.tableNames(),this.state=3684,this.match(t.SET),this.state=3685,this.updatedElement(),this.state=3690,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=3686,this.match(t.COMMA),this.state=3687,this.updatedElement(),this.state=3692,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3695,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=3693,this.match(t.WHERE),this.state=3694,this.expression(0))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}orderByClause(){let e=new bC(this.context,this.state);this.enterRule(e,228,t.RULE_orderByClause);try{let s;for(this.enterOuterAlt(e,1),this.state=3697,this.match(t.ORDER),this.state=3698,this.match(t.BY),this.state=3699,this.orderByExpression(),this.state=3704,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,514,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=3700,this.match(t.COMMA),this.state=3701,this.orderByExpression()),this.state=3706,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,514,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}orderByExpression(){let e,s=new WC(this.context,this.state);this.enterRule(s,230,t.RULE_orderByExpression);try{this.enterOuterAlt(s,1),this.state=3707,this.expression(0),this.state=3709,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(13===e||45===e)&&(this.state=3708,s._order=this.tokenStream.LT(1),e=this.tokenStream.LA(1),13===e||45===e?(this.errorHandler.reportMatch(this),this.consume()):s._order=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableSources(){let e=new VC(this.context,this.state);this.enterRule(e,232,t.RULE_tableSources);try{let s;for(this.enterOuterAlt(e,1),this.state=3711,this.tableSource(),this.state=3716,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,516,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=3712,this.match(t.COMMA),this.state=3713,this.tableSource()),this.state=3718,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,516,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableSource(){let e,s=new XC(this.context,this.state);this.enterRule(s,234,t.RULE_tableSource);try{let a;switch(this.state=3737,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,519,this.context)){case 1:for(s=new JC(s),this.enterOuterAlt(s,1),this.state=3719,this.tableSourceItem(),this.state=3723,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,517,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3720,this.joinPart()),this.state=3725,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,517,this.context);break;case 2:for(s=new QC(s),this.enterOuterAlt(s,2),this.state=3726,this.match(t.LR_BRACKET),this.state=3727,this.tableSourceItem(),this.state=3731,this.errorHandler.sync(this),e=this.tokenStream.LA(1);34===e||!(e-83&-32)&&1<<e-83&1073758337||148===e||171===e;)this.state=3728,this.joinPart(),this.state=3733,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3734,this.match(t.RR_BRACKET);break;case 3:s=new KC(s),this.enterOuterAlt(s,3),this.state=3736,this.jsonTable()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableSourceItem(){let e,s=new ZC(this.context,this.state);this.enterRule(s,236,t.RULE_tableSourceItem);try{let a;switch(this.state=3776,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,526,this.context)){case 1:if(s=new jC(s),this.enterOuterAlt(s,1),1===(this.state=3739,this.tableName(),this.state=3745,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=3740,this.match(t.PARTITION),this.state=3741,this.match(t.LR_BRACKET),this.state=3742,this.uidList(),this.state=3743,this.match(t.RR_BRACKET)),this.state=3751,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,522,this.context)))this.state=3748,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3747,this.match(t.AS)),this.state=3750,s._alias=this.uid();if(this.state=3761,this.errorHandler.sync(this),e=this.tokenStream.LA(1),66===e||78===e||186===e)for(this.state=3753,this.indexHint(),this.state=3758,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,523,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3754,this.match(t.COMMA),this.state=3755,this.indexHint()),this.state=3760,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,523,this.context);break;case 2:s=new qC(s),this.enterOuterAlt(s,2),this.state=3763,this.match(t.LR_BRACKET),this.state=3764,s._parenthesisSubquery=this.selectStatement(),this.state=3765,this.match(t.RR_BRACKET),this.state=3768,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3767,this.match(t.AS)),this.state=3770,s._alias=this.uid();break;case 3:s=new zC(s),this.enterOuterAlt(s,3),this.state=3772,this.match(t.LR_BRACKET),this.state=3773,this.tableSources(),this.state=3774,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexHint(){let e,s=new $C(this.context,this.state);this.enterRule(s,238,t.RULE_indexHint);try{this.enterOuterAlt(s,1),this.state=3778,s._indexHintAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),66===e||78===e||186===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexHintAction=this.errorHandler.recoverInline(this),this.state=3779,s._keyFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._keyFormat=this.errorHandler.recoverInline(this),this.state=3782,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=3780,this.match(t.FOR),this.state=3781,this.indexHintType()),this.state=3784,this.match(t.LR_BRACKET),this.state=3785,this.indexNameList(),this.state=3786,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexHintType(){let e=new t_(this.context,this.state);this.enterRule(e,240,t.RULE_indexHintType);try{switch(this.state=3793,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.JOIN:this.enterOuterAlt(e,1),this.state=3788,this.match(t.JOIN);break;case t.ORDER:this.enterOuterAlt(e,2),this.state=3789,this.match(t.ORDER),this.state=3790,this.match(t.BY);break;case t.GROUP:this.enterOuterAlt(e,3),this.state=3791,this.match(t.GROUP),this.state=3792,this.match(t.BY);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}joinPart(){let e,s=new e_(this.context,this.state);this.enterRule(s,242,t.RULE_joinPart);try{let a;switch(this.state=3842,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CROSS:case t.INNER:case t.JOIN:if(s=new s_(s),this.enterOuterAlt(s,1),1===(this.state=3796,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(34===e||83===e)&&(this.state=3795,e=this.tokenStream.LA(1),34===e||83===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=3798,this.match(t.JOIN),this.state=3800,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,530,this.context)))this.state=3799,this.match(t.LATERAL);for(this.state=3802,this.tableSourceItem(),this.state=3806,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,531,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3803,this.joinSpec()),this.state=3808,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,531,this.context);break;case t.STRAIGHT_JOIN:for(s=new r_(s),this.enterOuterAlt(s,2),this.state=3809,this.match(t.STRAIGHT_JOIN),this.state=3810,this.tableSourceItem(),this.state=3815,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,532,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3811,this.match(t.ON),this.state=3812,this.expression(0)),this.state=3817,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,532,this.context);break;case t.LEFT:case t.RIGHT:if(s=new i_(s),this.enterOuterAlt(s,3),1===(this.state=3818,e=this.tokenStream.LA(1),97===e||148===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3820,this.errorHandler.sync(this),e=this.tokenStream.LA(1),126===e&&(this.state=3819,this.match(t.OUTER)),this.state=3822,this.match(t.JOIN),this.state=3824,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,534,this.context)))this.state=3823,this.match(t.LATERAL);for(this.state=3826,this.tableSourceItem(),this.state=3830,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,535,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3827,this.joinSpec()),this.state=3832,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,535,this.context);break;case t.NATURAL:s=new a_(s),this.enterOuterAlt(s,4),this.state=3833,this.match(t.NATURAL),this.state=3838,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(97===e||148===e)&&(this.state=3834,e=this.tokenStream.LA(1),97===e||148===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3836,this.errorHandler.sync(this),e=this.tokenStream.LA(1),126===e&&(this.state=3835,this.match(t.OUTER))),this.state=3840,this.match(t.JOIN),this.state=3841,this.tableSourceItem();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}joinSpec(){let e=new c_(this.context,this.state);this.enterRule(e,244,t.RULE_joinSpec);try{switch(this.state=3851,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ON:this.enterOuterAlt(e,1),this.state=3844,this.match(t.ON),this.state=3845,this.expression(0);break;case t.USING:this.enterOuterAlt(e,2),this.state=3846,this.match(t.USING),this.state=3847,this.match(t.LR_BRACKET),this.state=3848,this.uidList(),this.state=3849,this.match(t.RR_BRACKET);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}queryExpression(){let e=new n_(this.context,this.state);this.enterRule(e,246,t.RULE_queryExpression);try{switch(this.state=3861,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,540,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3853,this.match(t.LR_BRACKET),this.state=3854,this.querySpecification(),this.state=3855,this.match(t.RR_BRACKET);break;case 2:this.enterOuterAlt(e,2),this.state=3857,this.match(t.LR_BRACKET),this.state=3858,this.queryExpression(),this.state=3859,this.match(t.RR_BRACKET)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}queryExpressionNointo(){let e=new h_(this.context,this.state);this.enterRule(e,248,t.RULE_queryExpressionNointo);try{switch(this.state=3871,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,541,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3863,this.match(t.LR_BRACKET),this.state=3864,this.querySpecificationNointo(),this.state=3865,this.match(t.RR_BRACKET);break;case 2:this.enterOuterAlt(e,2),this.state=3867,this.match(t.LR_BRACKET),this.state=3868,this.queryExpressionNointo(),this.state=3869,this.match(t.RR_BRACKET)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}querySpecification(){let e,s=new E_(this.context,this.state);this.enterRule(s,250,t.RULE_querySpecification);try{let a;switch(this.state=3927,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,556,this.context)){case 1:for(this.enterOuterAlt(s,1),this.state=3873,this.match(t.SELECT),this.state=3877,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,542,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3874,this.selectSpec()),this.state=3879,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,542,this.context);if(1===(this.state=3880,this.selectElements(),this.state=3882,this.errorHandler.sync(this),e=this.tokenStream.LA(1),87===e&&(this.state=3881,this.selectIntoExpression()),this.state=3884,this.fromClause(),this.state=3886,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,544,this.context)))this.state=3885,this.groupByClause();if(1===(this.state=3889,this.errorHandler.sync(this),e=this.tokenStream.LA(1),74===e&&(this.state=3888,this.havingClause()),this.state=3892,this.errorHandler.sync(this),e=this.tokenStream.LA(1),676===e&&(this.state=3891,this.windowClause()),this.state=3895,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,547,this.context)))this.state=3894,this.orderByClause();if(1===(this.state=3898,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,548,this.context)))this.state=3897,this.limitClause();break;case 2:for(this.enterOuterAlt(s,2),this.state=3900,this.match(t.SELECT),this.state=3904,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,549,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3901,this.selectSpec()),this.state=3906,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,549,this.context);if(1===(this.state=3907,this.selectElements(),this.state=3908,this.fromClause(),this.state=3910,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,550,this.context)))this.state=3909,this.groupByClause();if(1===(this.state=3913,this.errorHandler.sync(this),e=this.tokenStream.LA(1),74===e&&(this.state=3912,this.havingClause()),this.state=3916,this.errorHandler.sync(this),e=this.tokenStream.LA(1),676===e&&(this.state=3915,this.windowClause()),this.state=3919,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,553,this.context)))this.state=3918,this.orderByClause();if(1===(this.state=3922,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,554,this.context)))this.state=3921,this.limitClause();this.state=3925,this.errorHandler.sync(this),e=this.tokenStream.LA(1),87===e&&(this.state=3924,this.selectIntoExpression())}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}querySpecificationNointo(){let e,s=new T_(this.context,this.state);this.enterRule(s,252,t.RULE_querySpecificationNointo);try{let a;for(this.enterOuterAlt(s,1),this.state=3929,this.match(t.SELECT),this.state=3933,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,557,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3930,this.selectSpec()),this.state=3935,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,557,this.context);if(1===(this.state=3936,this.selectElements(),this.state=3937,this.fromClause(),this.state=3939,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,558,this.context)))this.state=3938,this.groupByClause();if(1===(this.state=3942,this.errorHandler.sync(this),e=this.tokenStream.LA(1),74===e&&(this.state=3941,this.havingClause()),this.state=3945,this.errorHandler.sync(this),e=this.tokenStream.LA(1),676===e&&(this.state=3944,this.windowClause()),this.state=3948,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,561,this.context)))this.state=3947,this.orderByClause();if(1===(this.state=3951,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,562,this.context)))this.state=3950,this.limitClause();if(1===(this.state=3954,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,563,this.context)))this.state=3953,this.unionStatement()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}unionParenthesis(){let e,s=new o_(this.context,this.state);this.enterRule(s,254,t.RULE_unionParenthesis);try{this.enterOuterAlt(s,1),this.state=3956,this.match(t.UNION),this.state=3958,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(6===e||49===e)&&(this.state=3957,s._unionType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),6===e||49===e?(this.errorHandler.reportMatch(this),this.consume()):s._unionType=this.errorHandler.recoverInline(this)),this.state=3960,this.queryExpressionNointo()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}unionStatement(){let e,s=new R_(this.context,this.state);this.enterRule(s,256,t.RULE_unionStatement);try{switch(this.enterOuterAlt(s,1),this.state=3962,this.match(t.UNION),this.state=3964,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(6===e||49===e)&&(this.state=3963,s._unionType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),6===e||49===e?(this.errorHandler.reportMatch(this),this.consume()):s._unionType=this.errorHandler.recoverInline(this)),this.state=3968,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:this.state=3966,this.querySpecificationNointo();break;case t.LR_BRACKET:this.state=3967,this.queryExpressionNointo();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lateralStatement(){let e,s=new A_(this.context,this.state);this.enterRule(s,258,t.RULE_lateralStatement);try{switch(this.enterOuterAlt(s,1),this.state=3970,this.match(t.LATERAL),this.state=3985,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,570,this.context)){case 1:this.state=3971,this.querySpecificationNointo();break;case 2:this.state=3972,this.queryExpressionNointo();break;case 3:switch(this.state=3973,this.match(t.LR_BRACKET),this.state=3976,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:this.state=3974,this.querySpecificationNointo();break;case t.LR_BRACKET:this.state=3975,this.queryExpressionNointo();break;default:throw new he(this)}if(1===(this.state=3978,this.match(t.RR_BRACKET),this.state=3983,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,569,this.context)))this.state=3980,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3979,this.match(t.AS)),this.state=3982,this.uid()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}jsonTable(){let e,s=new S_(this.context,this.state);this.enterRule(s,260,t.RULE_jsonTable);try{if(1===(this.enterOuterAlt(s,1),this.state=3987,this.match(t.JSON_TABLE),this.state=3988,this.match(t.LR_BRACKET),this.state=3989,this.match(t.STRING_LITERAL),this.state=3990,this.match(t.COMMA),this.state=3991,this.match(t.STRING_LITERAL),this.state=3992,this.match(t.COLUMNS),this.state=3993,this.match(t.LR_BRACKET),this.state=3994,this.jsonColumnList(),this.state=3995,this.match(t.RR_BRACKET),this.state=3996,this.match(t.RR_BRACKET),this.state=4001,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,572,this.context)))this.state=3998,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=3997,this.match(t.AS)),this.state=4e3,this.uid()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}jsonColumnList(){let e,s=new l_(this.context,this.state);this.enterRule(s,262,t.RULE_jsonColumnList);try{for(this.enterOuterAlt(s,1),this.state=4003,this.jsonColumn(),this.state=4008,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4004,this.match(t.COMMA),this.state=4005,this.jsonColumn(),this.state=4010,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}jsonColumn(){let e,s=new O_(this.context,this.state);this.enterRule(s,264,t.RULE_jsonColumn);try{switch(this.state=4040,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,579,this.context)){case 1:switch(this.enterOuterAlt(s,1),this.state=4011,this.fullColumnName(),this.state=4028,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.state=4012,this.match(t.FOR),this.state=4013,this.match(t.ORDINALITY);break;case t.CHARACTER:case t.SET:case t.TINYINT:case t.SMALLINT:case t.MEDIUMINT:case t.MIDDLEINT:case t.INT:case t.INT1:case t.INT2:case t.INT3:case t.INT4:case t.INT8:case t.INTEGER:case t.BIGINT:case t.REAL:case t.DOUBLE:case t.FLOAT:case t.FLOAT4:case t.FLOAT8:case t.DECIMAL:case t.DEC:case t.NUMERIC:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.CHAR:case t.VARCHAR:case t.NVARCHAR:case t.NATIONAL:case t.BINARY:case t.VARBINARY:case t.TINYBLOB:case t.BLOB:case t.MEDIUMBLOB:case t.LONG:case t.LONGBLOB:case t.TINYTEXT:case t.TEXT:case t.MEDIUMTEXT:case t.LONGTEXT:case t.ENUM:case t.SERIAL:case t.BIT:case t.BOOL:case t.BOOLEAN:case t.FIXED:case t.JSON:case t.NCHAR:case t.GEOMETRYCOLLECTION:case t.GEOMCOLLECTION:case t.GEOMETRY:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:switch(this.state=4014,this.dataType(),this.state=4026,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PATH:if(1===(this.state=4015,this.match(t.PATH),this.state=4016,this.match(t.STRING_LITERAL),this.state=4018,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,574,this.context)))this.state=4017,this.jsonOnEmpty();this.state=4021,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(42===e||116===e||411===e)&&(this.state=4020,this.jsonOnError());break;case t.EXISTS:this.state=4023,this.match(t.EXISTS),this.state=4024,this.match(t.PATH),this.state=4025,this.match(t.STRING_LITERAL);break;default:throw new he(this)}break;default:throw new he(this)}break;case 2:this.enterOuterAlt(s,2),this.state=4030,this.match(t.NESTED),this.state=4032,this.errorHandler.sync(this),e=this.tokenStream.LA(1),285===e&&(this.state=4031,this.match(t.PATH)),this.state=4034,this.match(t.STRING_LITERAL),this.state=4035,this.match(t.COLUMNS),this.state=4036,this.match(t.LR_BRACKET),this.state=4037,this.jsonColumnList(),this.state=4038,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}jsonOnEmpty(){let e=new I_(this.context,this.state);this.enterRule(e,266,t.RULE_jsonOnEmpty);try{switch(this.enterOuterAlt(e,1),this.state=4046,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NULL_LITERAL:this.state=4042,this.match(t.NULL_LITERAL);break;case t.ERROR:this.state=4043,this.match(t.ERROR);break;case t.DEFAULT:this.state=4044,this.match(t.DEFAULT),this.state=4045,this.defaultValue();break;default:throw new he(this)}this.state=4048,this.match(t.ON),this.state=4049,this.match(t.EMPTY)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}jsonOnError(){let e=new u_(this.context,this.state);this.enterRule(e,268,t.RULE_jsonOnError);try{switch(this.enterOuterAlt(e,1),this.state=4055,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NULL_LITERAL:this.state=4051,this.match(t.NULL_LITERAL);break;case t.ERROR:this.state=4052,this.match(t.ERROR);break;case t.DEFAULT:this.state=4053,this.match(t.DEFAULT),this.state=4054,this.defaultValue();break;default:throw new he(this)}this.state=4057,this.match(t.ON),this.state=4058,this.match(t.ERROR)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectSpec(){let e,s=new N_(this.context,this.state);this.enterRule(s,270,t.RULE_selectSpec);try{switch(this.state=4068,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALL:case t.DISTINCT:case t.DISTINCTROW:this.enterOuterAlt(s,1),this.state=4060,e=this.tokenStream.LA(1),6===e||49===e||50===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.HIGH_PRIORITY:this.enterOuterAlt(s,2),this.state=4061,this.match(t.HIGH_PRIORITY);break;case t.STRAIGHT_JOIN:this.enterOuterAlt(s,3),this.state=4062,this.match(t.STRAIGHT_JOIN);break;case t.SQL_SMALL_RESULT:this.enterOuterAlt(s,4),this.state=4063,this.match(t.SQL_SMALL_RESULT);break;case t.SQL_BIG_RESULT:this.enterOuterAlt(s,5),this.state=4064,this.match(t.SQL_BIG_RESULT);break;case t.SQL_BUFFER_RESULT:this.enterOuterAlt(s,6),this.state=4065,this.match(t.SQL_BUFFER_RESULT);break;case t.SQL_CACHE:case t.SQL_NO_CACHE:this.enterOuterAlt(s,7),this.state=4066,e=this.tokenStream.LA(1),626===e||627===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.SQL_CALC_FOUND_ROWS:this.enterOuterAlt(s,8),this.state=4067,this.match(t.SQL_CALC_FOUND_ROWS);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectElements(){let e=new L_(this.context,this.state);this.enterRule(e,272,t.RULE_selectElements);try{let s;switch(this.enterOuterAlt(e,1),this.state=4072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,583,this.context)){case 1:this.state=4070,e._star=this.match(t.STAR);break;case 2:this.state=4071,this.selectElement()}for(this.state=4078,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,584,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=4074,this.match(t.COMMA),this.state=4075,this.selectElement()),this.state=4080,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,584,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectElementAlias(){let e,s=new C_(this.context,this.state);this.enterRule(s,274,t.RULE_selectElementAlias);try{this.enterOuterAlt(s,1),this.state=4082,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=4081,this.match(t.AS)),this.state=4084,this.uid()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectElement(){let e=new __(this.context,this.state);this.enterRule(e,276,t.RULE_selectElement);try{switch(this.state=4106,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,590,this.context)){case 1:e=new d_(e),this.enterOuterAlt(e,1),this.state=4086,this.fullId(),this.state=4087,this.match(t.DOT),this.state=4088,this.match(t.STAR);break;case 2:if(1===(e=new U_(e),this.enterOuterAlt(e,2),this.state=4090,this.fullColumnName(),this.state=4092,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,586,this.context)))this.state=4091,this.selectElementAlias();break;case 3:if(1===(e=new M_(e),this.enterOuterAlt(e,3),this.state=4094,this.functionCall(),this.state=4096,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,587,this.context)))this.state=4095,this.selectElementAlias();break;case 4:if(e=new P_(e),this.enterOuterAlt(e,4),1===(this.state=4100,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,588,this.context)))this.state=4098,this.match(t.LOCAL_ID),this.state=4099,this.match(t.VAR_ASSIGN);if(1===(this.state=4102,this.expression(0),this.state=4104,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,589,this.context)))this.state=4103,this.selectElementAlias()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectIntoExpression(){let e,s=new m_(this.context,this.state);this.enterRule(s,278,t.RULE_selectIntoExpression);try{switch(this.state=4144,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,597,this.context)){case 1:for(s=new D_(s),this.enterOuterAlt(s,1),this.state=4108,this.match(t.INTO),this.state=4109,this.assignmentField(),this.state=4114,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4110,this.match(t.COMMA),this.state=4111,this.assignmentField(),this.state=4116,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:s=new g_(s),this.enterOuterAlt(s,2),this.state=4117,this.match(t.INTO),this.state=4118,this.match(t.DUMPFILE),this.state=4119,this.match(t.STRING_LITERAL);break;case 3:if(s=new p_(s),this.enterOuterAlt(s,3),1===(this.state=4120,this.match(t.INTO),this.state=4121,this.match(t.OUTFILE),this.state=4122,s._filename=this.match(t.STRING_LITERAL),this.state=4126,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=4123,this.match(t.CHARACTER),this.state=4124,this.match(t.SET),this.state=4125,s._charset=this.charsetName()),this.state=4134,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,594,this.context))){this.state=4128,s._fieldsFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),365===e||427===e?(this.errorHandler.reportMatch(this),this.consume()):s._fieldsFormat=this.errorHandler.recoverInline(this),this.state=4130,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4129,this.selectFieldsInto(),this.state=4132,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(56===e||58===e||122===e||173===e)}if(this.state=4142,this.errorHandler.sync(this),e=this.tokenStream.LA(1),101===e){this.state=4136,this.match(t.LINES),this.state=4138,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4137,this.selectLinesInto(),this.state=4140,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(169===e||173===e)}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectFieldsInto(){let e,s=new x_(this.context,this.state);this.enterRule(s,280,t.RULE_selectFieldsInto);try{switch(this.state=4158,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TERMINATED:this.enterOuterAlt(s,1),this.state=4146,this.match(t.TERMINATED),this.state=4147,this.match(t.BY),this.state=4148,s._terminationField=this.match(t.STRING_LITERAL);break;case t.ENCLOSED:case t.OPTIONALLY:this.enterOuterAlt(s,2),this.state=4150,this.errorHandler.sync(this),e=this.tokenStream.LA(1),122===e&&(this.state=4149,this.match(t.OPTIONALLY)),this.state=4152,this.match(t.ENCLOSED),this.state=4153,this.match(t.BY),this.state=4154,s._enclosion=this.match(t.STRING_LITERAL);break;case t.ESCAPED:this.enterOuterAlt(s,3),this.state=4155,this.match(t.ESCAPED),this.state=4156,this.match(t.BY),this.state=4157,s._escaping=this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectLinesInto(){let e=new k_(this.context,this.state);this.enterRule(e,282,t.RULE_selectLinesInto);try{switch(this.state=4166,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STARTING:this.enterOuterAlt(e,1),this.state=4160,this.match(t.STARTING),this.state=4161,this.match(t.BY),this.state=4162,e._starting=this.match(t.STRING_LITERAL);break;case t.TERMINATED:this.enterOuterAlt(e,2),this.state=4163,this.match(t.TERMINATED),this.state=4164,this.match(t.BY),this.state=4165,e._terminationLine=this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fromClause(){let e,s=new H_(this.context,this.state);this.enterRule(s,284,t.RULE_fromClause);try{this.enterOuterAlt(s,1),this.state=4170,this.errorHandler.sync(this),e=this.tokenStream.LA(1),68===e&&(this.state=4168,this.match(t.FROM),this.state=4169,this.tableSources()),this.state=4174,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=4172,this.match(t.WHERE),this.state=4173,s._whereExpr=this.expression(0))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}groupByClause(){let e=new G_(this.context,this.state);this.enterRule(e,286,t.RULE_groupByClause);try{let s;for(this.enterOuterAlt(e,1),this.state=4176,this.match(t.GROUP),this.state=4177,this.match(t.BY),this.state=4178,this.groupByItem(),this.state=4183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,603,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=4179,this.match(t.COMMA),this.state=4180,this.groupByItem()),this.state=4185,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,603,this.context);if(1===(this.state=4188,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,604,this.context)))this.state=4186,this.match(t.WITH),this.state=4187,this.match(t.ROLLUP)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}havingClause(){let e=new F_(this.context,this.state);this.enterRule(e,288,t.RULE_havingClause);try{this.enterOuterAlt(e,1),this.state=4190,this.match(t.HAVING),this.state=4191,e._havingExpr=this.expression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowClause(){let e=new v_(this.context,this.state);this.enterRule(e,290,t.RULE_windowClause);try{let s;for(this.enterOuterAlt(e,1),this.state=4193,this.match(t.WINDOW),this.state=4194,this.windowName(),this.state=4195,this.match(t.AS),this.state=4196,this.match(t.LR_BRACKET),this.state=4197,this.windowSpec(),this.state=4198,this.match(t.RR_BRACKET),this.state=4208,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,605,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=4199,this.match(t.COMMA),this.state=4200,this.windowName(),this.state=4201,this.match(t.AS),this.state=4202,this.match(t.LR_BRACKET),this.state=4203,this.windowSpec(),this.state=4204,this.match(t.RR_BRACKET)),this.state=4210,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,605,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}groupByItem(){let e,s=new B_(this.context,this.state);this.enterRule(s,292,t.RULE_groupByItem);try{this.enterOuterAlt(s,1),this.state=4211,this.expression(0),this.state=4213,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(13===e||45===e)&&(this.state=4212,s._order=this.tokenStream.LT(1),e=this.tokenStream.LA(1),13===e||45===e?(this.errorHandler.reportMatch(this),this.consume()):s._order=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}limitClause(){let e=new y_(this.context,this.state);this.enterRule(e,294,t.RULE_limitClause);try{switch(this.enterOuterAlt(e,1),this.state=4215,this.match(t.LIMIT),this.state=4226,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,608,this.context)){case 1:if(1===(this.state=4219,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,607,this.context)))this.state=4216,e._offset=this.limitClauseAtom(),this.state=4217,this.match(t.COMMA);this.state=4221,e._limit=this.limitClauseAtom();break;case 2:this.state=4222,e._limit=this.limitClauseAtom(),this.state=4223,this.match(t.OFFSET),this.state=4224,e._offset=this.limitClauseAtom()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}limitClauseAtom(){let e=new f_(this.context,this.state);this.enterRule(e,296,t.RULE_limitClauseAtom);try{switch(this.state=4231,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.enterOuterAlt(e,1),this.state=4228,this.decimalLiteral();break;case t.LOCAL_ID:case t.GLOBAL_ID:this.enterOuterAlt(e,2),this.state=4229,this.mysqlVariable();break;case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.ID:this.enterOuterAlt(e,3),this.state=4230,this.simpleId();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}startTransaction(){let e,s=new Y_(this.context,this.state);this.enterRule(s,298,t.RULE_startTransaction);try{if(this.enterOuterAlt(s,1),this.state=4233,this.match(t.START),this.state=4234,this.match(t.TRANSACTION),this.state=4243,this.errorHandler.sync(this),e=this.tokenStream.LA(1),134===e||192===e)for(this.state=4235,this.transactionMode(),this.state=4240,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4236,this.match(t.COMMA),this.state=4237,this.transactionMode(),this.state=4242,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}beginWork(){let e,s=new w_(this.context,this.state);this.enterRule(s,300,t.RULE_beginWork);try{this.enterOuterAlt(s,1),this.state=4245,this.match(t.BEGIN),this.state=4247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),678===e&&(this.state=4246,this.match(t.WORK))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}commitWork(){let e,s=new b_(this.context,this.state);this.enterRule(s,302,t.RULE_commitWork);try{this.enterOuterAlt(s,1),this.state=4249,this.match(t.COMMIT),this.state=4251,this.errorHandler.sync(this),e=this.tokenStream.LA(1),678===e&&(this.state=4250,this.match(t.WORK)),this.state=4258,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=4253,this.match(t.AND),this.state=4255,this.errorHandler.sync(this),e=this.tokenStream.LA(1),521===e&&(this.state=4254,s._nochain=this.match(t.NO)),this.state=4257,this.match(t.CHAIN)),this.state=4264,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(138===e||521===e)&&(this.state=4261,this.errorHandler.sync(this),e=this.tokenStream.LA(1),521===e&&(this.state=4260,s._norelease=this.match(t.NO)),this.state=4263,this.match(t.RELEASE))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}rollbackWork(){let e,s=new W_(this.context,this.state);this.enterRule(s,304,t.RULE_rollbackWork);try{this.enterOuterAlt(s,1),this.state=4266,this.match(t.ROLLBACK),this.state=4268,this.errorHandler.sync(this),e=this.tokenStream.LA(1),678===e&&(this.state=4267,this.match(t.WORK)),this.state=4275,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=4270,this.match(t.AND),this.state=4272,this.errorHandler.sync(this),e=this.tokenStream.LA(1),521===e&&(this.state=4271,s._nochain=this.match(t.NO)),this.state=4274,this.match(t.CHAIN)),this.state=4281,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(138===e||521===e)&&(this.state=4278,this.errorHandler.sync(this),e=this.tokenStream.LA(1),521===e&&(this.state=4277,s._norelease=this.match(t.NO)),this.state=4280,this.match(t.RELEASE))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}savepointStatement(){let e=new V_(this.context,this.state);this.enterRule(e,306,t.RULE_savepointStatement);try{this.enterOuterAlt(e,1),this.state=4283,this.match(t.SAVEPOINT),this.state=4284,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rollbackStatement(){let e,s=new X_(this.context,this.state);this.enterRule(s,308,t.RULE_rollbackStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=4286,this.match(t.ROLLBACK),this.state=4288,this.errorHandler.sync(this),e=this.tokenStream.LA(1),678===e&&(this.state=4287,this.match(t.WORK)),this.state=4290,this.match(t.TO),this.state=4292,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,624,this.context)))this.state=4291,this.match(t.SAVEPOINT);this.state=4294,this.uid()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}releaseStatement(){let e=new K_(this.context,this.state);this.enterRule(e,310,t.RULE_releaseStatement);try{this.enterOuterAlt(e,1),this.state=4296,this.match(t.RELEASE),this.state=4297,this.match(t.SAVEPOINT),this.state=4298,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lockTables(){let e,s=new Q_(this.context,this.state);this.enterRule(s,312,t.RULE_lockTables);try{for(this.enterOuterAlt(s,1),this.state=4300,this.match(t.LOCK),this.state=4301,e=this.tokenStream.LA(1),172===e||742===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=4302,this.lockTableElement(),this.state=4307,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4303,this.match(t.COMMA),this.state=4304,this.lockTableElement(),this.state=4309,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4311,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(527===e||674===e)&&(this.state=4310,this.waitNowaitClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}unlockTables(){let e=new J_(this.context,this.state);this.enterRule(e,314,t.RULE_unlockTables);try{this.enterOuterAlt(e,1),this.state=4313,this.match(t.UNLOCK),this.state=4314,this.match(t.TABLES)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}setAutocommitStatement(){let e,s=new Z_(this.context,this.state);this.enterRule(s,316,t.RULE_setAutocommitStatement);try{this.enterOuterAlt(s,1),this.state=4316,this.match(t.SET),this.state=4317,this.match(t.AUTOCOMMIT),this.state=4318,this.match(t.EQUAL_SYMBOL),this.state=4319,s._autocommitValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._autocommitValue=this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setTransactionStatement(){let e,s=new q_(this.context,this.state);this.enterRule(s,318,t.RULE_setTransactionStatement);try{for(this.enterOuterAlt(s,1),this.state=4321,this.match(t.SET),this.state=4323,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(439===e||609===e)&&(this.state=4322,s._transactionContext=this.tokenStream.LT(1),e=this.tokenStream.LA(1),439===e||609===e?(this.errorHandler.reportMatch(this),this.consume()):s._transactionContext=this.errorHandler.recoverInline(this)),this.state=4325,this.match(t.TRANSACTION),this.state=4326,this.transactionOption(),this.state=4331,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4327,this.match(t.COMMA),this.state=4328,this.transactionOption(),this.state=4333,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}transactionMode(){let e=new j_(this.context,this.state);this.enterRule(e,320,t.RULE_transactionMode);try{switch(this.state=4341,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,629,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4334,this.match(t.WITH),this.state=4335,this.match(t.CONSISTENT),this.state=4336,this.match(t.SNAPSHOT);break;case 2:this.enterOuterAlt(e,2),this.state=4337,this.match(t.READ),this.state=4338,this.match(t.WRITE);break;case 3:this.enterOuterAlt(e,3),this.state=4339,this.match(t.READ),this.state=4340,this.match(t.ONLY)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lockTableElement(){let e,s=new z_(this.context,this.state);this.enterRule(s,322,t.RULE_lockTableElement);try{this.enterOuterAlt(s,1),this.state=4343,this.tableName(),this.state=4348,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537155584||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4345,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=4344,this.match(t.AS)),this.state=4347,this.uid()),this.state=4350,this.lockAction()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lockAction(){let e,s=new $_(this.context,this.state);this.enterRule(s,324,t.RULE_lockAction);try{switch(this.state=4360,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.READ:this.enterOuterAlt(s,1),this.state=4352,this.match(t.READ),this.state=4354,this.errorHandler.sync(this),e=this.tokenStream.LA(1),474===e&&(this.state=4353,this.match(t.LOCAL));break;case t.LOW_PRIORITY:case t.WRITE:this.enterOuterAlt(s,2),this.state=4357,this.errorHandler.sync(this),e=this.tokenStream.LA(1),106===e&&(this.state=4356,this.match(t.LOW_PRIORITY)),this.state=4359,this.match(t.WRITE);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}transactionOption(){let e=new tP(this.context,this.state);this.enterRule(e,326,t.RULE_transactionOption);try{switch(this.state=4369,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,635,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4362,this.match(t.ISOLATION),this.state=4363,this.match(t.LEVEL),this.state=4364,this.transactionLevel();break;case 2:this.enterOuterAlt(e,2),this.state=4365,this.match(t.READ),this.state=4366,this.match(t.WRITE);break;case 3:this.enterOuterAlt(e,3),this.state=4367,this.match(t.READ),this.state=4368,this.match(t.ONLY)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}transactionLevel(){let e=new eP(this.context,this.state);this.enterRule(e,328,t.RULE_transactionLevel);try{switch(this.state=4378,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,636,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4371,this.match(t.REPEATABLE),this.state=4372,this.match(t.READ);break;case 2:this.enterOuterAlt(e,2),this.state=4373,this.match(t.READ),this.state=4374,this.match(t.COMMITTED);break;case 3:this.enterOuterAlt(e,3),this.state=4375,this.match(t.READ),this.state=4376,this.match(t.UNCOMMITTED);break;case 4:this.enterOuterAlt(e,4),this.state=4377,this.match(t.SERIALIZABLE)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changeMaster(){let e,s=new sP(this.context,this.state);this.enterRule(s,330,t.RULE_changeMaster);try{for(this.enterOuterAlt(s,1),this.state=4380,this.match(t.CHANGE),this.state=4381,this.match(t.MASTER),this.state=4382,this.match(t.TO),this.state=4383,this.masterOption(),this.state=4388,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4384,this.match(t.COMMA),this.state=4385,this.masterOption(),this.state=4390,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4392,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=4391,this.channelOption())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}changeReplicationFilter(){let e,s=new aP(this.context,this.state);this.enterRule(s,332,t.RULE_changeReplicationFilter);try{for(this.enterOuterAlt(s,1),this.state=4394,this.match(t.CHANGE),this.state=4395,this.match(t.REPLICATION),this.state=4396,this.match(t.FILTER),this.state=4397,this.replicationFilter(),this.state=4402,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4398,this.match(t.COMMA),this.state=4399,this.replicationFilter(),this.state=4404,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}purgeBinaryLogs(){let e,s=new iP(this.context,this.state);this.enterRule(s,334,t.RULE_purgeBinaryLogs);try{switch(this.enterOuterAlt(s,1),this.state=4405,this.match(t.PURGE),this.state=4406,s._purgeFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),226===e||477===e?(this.errorHandler.reportMatch(this),this.consume()):s._purgeFormat=this.errorHandler.recoverInline(this),this.state=4407,this.match(t.LOGS),this.state=4412,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TO:this.state=4408,this.match(t.TO),this.state=4409,s._fileName=this.match(t.STRING_LITERAL);break;case t.BEFORE:this.state=4410,this.match(t.BEFORE),this.state=4411,s._timeValue=this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}resetMaster(){let e=new rP(this.context,this.state);this.enterRule(e,336,t.RULE_resetMaster);try{this.enterOuterAlt(e,1),this.state=4414,this.match(t.RESET),this.state=4415,this.match(t.MASTER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}resetSlave(){let e,s=new cP(this.context,this.state);this.enterRule(s,338,t.RULE_resetSlave);try{this.enterOuterAlt(s,1),this.state=4417,this.match(t.RESET),this.state=4418,this.match(t.SLAVE),this.state=4420,this.errorHandler.sync(this),e=this.tokenStream.LA(1),6===e&&(this.state=4419,this.match(t.ALL)),this.state=4423,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=4422,this.channelOption())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}startSlave(){let e,s=new nP(this.context,this.state);this.enterRule(s,340,t.RULE_startSlave);try{if(this.enterOuterAlt(s,1),this.state=4425,this.match(t.START),this.state=4426,this.match(t.SLAVE),this.state=4435,this.errorHandler.sync(this),e=this.tokenStream.LA(1),462===e||628===e)for(this.state=4427,this.threadType(),this.state=4432,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4428,this.match(t.COMMA),this.state=4429,this.threadType(),this.state=4434,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=4439,this.errorHandler.sync(this),e=this.tokenStream.LA(1),663===e&&(this.state=4437,this.match(t.UNTIL),this.state=4438,this.untilOption()),this.state=4444,this.errorHandler.sync(this),e=this.tokenStream.LA(1);391===e||551===e||555===e||665===e;)this.state=4441,this.connectionOption(),this.state=4446,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4448,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=4447,this.channelOption())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}stopSlave(){let e,s=new hP(this.context,this.state);this.enterRule(s,342,t.RULE_stopSlave);try{if(this.enterOuterAlt(s,1),this.state=4450,this.match(t.STOP),this.state=4451,this.match(t.SLAVE),this.state=4460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),462===e||628===e)for(this.state=4452,this.threadType(),this.state=4457,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4453,this.match(t.COMMA),this.state=4454,this.threadType(),this.state=4459,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}startGroupReplication(){let e=new EP(this.context,this.state);this.enterRule(e,344,t.RULE_startGroupReplication);try{this.enterOuterAlt(e,1),this.state=4462,this.match(t.START),this.state=4463,this.match(t.GROUP_REPLICATION)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}stopGroupReplication(){let e=new TP(this.context,this.state);this.enterRule(e,346,t.RULE_stopGroupReplication);try{this.enterOuterAlt(e,1),this.state=4465,this.match(t.STOP),this.state=4466,this.match(t.GROUP_REPLICATION)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}masterOption(){let e,s=new oP(this.context,this.state);this.enterRule(s,348,t.RULE_masterOption);try{switch(this.state=4497,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.MASTER_BIND:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_PASSWORD:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.RELAY_LOG_FILE:s=new RP(s),this.enterOuterAlt(s,1),this.state=4468,this.stringMasterOption(),this.state=4469,this.match(t.EQUAL_SYMBOL),this.state=4470,this.match(t.STRING_LITERAL);break;case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_LOG_POS:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.RELAY_LOG_POS:s=new OP(s),this.enterOuterAlt(s,2),this.state=4472,this.decimalMasterOption(),this.state=4473,this.match(t.EQUAL_SYMBOL),this.state=4474,this.decimalLiteral();break;case t.MASTER_SSL_VERIFY_SERVER_CERT:case t.MASTER_AUTO_POSITION:case t.MASTER_SSL:s=new SP(s),this.enterOuterAlt(s,3),this.state=4476,this.boolMasterOption(),this.state=4477,this.match(t.EQUAL_SYMBOL),this.state=4478,s._boolVal=this.tokenStream.LT(1),e=this.tokenStream.LA(1),1138===e||1139===e?(this.errorHandler.reportMatch(this),this.consume()):s._boolVal=this.errorHandler.recoverInline(this);break;case t.MASTER_HEARTBEAT_PERIOD:s=new AP(s),this.enterOuterAlt(s,4),this.state=4480,this.match(t.MASTER_HEARTBEAT_PERIOD),this.state=4481,this.match(t.EQUAL_SYMBOL),this.state=4482,this.match(t.REAL_LITERAL);break;case t.IGNORE_SERVER_IDS:if(s=new lP(s),this.enterOuterAlt(s,5),this.state=4483,this.match(t.IGNORE_SERVER_IDS),this.state=4484,this.match(t.EQUAL_SYMBOL),this.state=4485,this.match(t.LR_BRACKET),this.state=4494,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)for(this.state=4486,this.uid(),this.state=4491,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4487,this.match(t.COMMA),this.state=4488,this.uid(),this.state=4493,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4496,this.match(t.RR_BRACKET);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}stringMasterOption(){let e,s=new IP(this.context,this.state);this.enterRule(s,350,t.RULE_stringMasterOption);try{this.enterOuterAlt(s,1),this.state=4499,e=this.tokenStream.LA(1),107===e||!(e-482&-32)&&1<<e-482&65419||575===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}decimalMasterOption(){let e,s=new uP(this.context,this.state);this.enterRule(s,352,t.RULE_decimalMasterOption);try{this.enterOuterAlt(s,1),this.state=4501,e=this.tokenStream.LA(1),!(e-479&-32)&&1<<e-479&419||576===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}boolMasterOption(){let e,s=new NP(this.context,this.state);this.enterRule(s,354,t.RULE_boolMasterOption);try{this.enterOuterAlt(s,1),this.state=4503,e=this.tokenStream.LA(1),108===e||478===e||488===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}channelOption(){let e=new LP(this.context,this.state);this.enterRule(e,356,t.RULE_channelOption);try{this.enterOuterAlt(e,1),this.state=4505,this.match(t.FOR),this.state=4506,this.match(t.CHANNEL),this.state=4507,this.match(t.STRING_LITERAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replicationFilter(){let e,s=new CP(this.context,this.state);this.enterRule(s,358,t.RULE_replicationFilter);try{switch(this.state=4558,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.REPLICATE_DO_DB:s=new UP(s),this.enterOuterAlt(s,1),this.state=4509,this.match(t.REPLICATE_DO_DB),this.state=4510,this.match(t.EQUAL_SYMBOL),this.state=4511,this.match(t.LR_BRACKET),this.state=4512,this.uidList(),this.state=4513,this.match(t.RR_BRACKET);break;case t.REPLICATE_IGNORE_DB:s=new mP(s),this.enterOuterAlt(s,2),this.state=4515,this.match(t.REPLICATE_IGNORE_DB),this.state=4516,this.match(t.EQUAL_SYMBOL),this.state=4517,this.match(t.LR_BRACKET),this.state=4518,this.uidList(),this.state=4519,this.match(t.RR_BRACKET);break;case t.REPLICATE_DO_TABLE:s=new PP(s),this.enterOuterAlt(s,3),this.state=4521,this.match(t.REPLICATE_DO_TABLE),this.state=4522,this.match(t.EQUAL_SYMBOL),this.state=4523,this.match(t.LR_BRACKET),this.state=4524,this.tables(),this.state=4525,this.match(t.RR_BRACKET);break;case t.REPLICATE_IGNORE_TABLE:s=new MP(s),this.enterOuterAlt(s,4),this.state=4527,this.match(t.REPLICATE_IGNORE_TABLE),this.state=4528,this.match(t.EQUAL_SYMBOL),this.state=4529,this.match(t.LR_BRACKET),this.state=4530,this.tables(),this.state=4531,this.match(t.RR_BRACKET);break;case t.REPLICATE_WILD_DO_TABLE:s=new DP(s),this.enterOuterAlt(s,5),this.state=4533,this.match(t.REPLICATE_WILD_DO_TABLE),this.state=4534,this.match(t.EQUAL_SYMBOL),this.state=4535,this.match(t.LR_BRACKET),this.state=4536,this.simpleStrings(),this.state=4537,this.match(t.RR_BRACKET);break;case t.REPLICATE_WILD_IGNORE_TABLE:s=new _P(s),this.enterOuterAlt(s,6),this.state=4539,this.match(t.REPLICATE_WILD_IGNORE_TABLE),this.state=4540,this.match(t.EQUAL_SYMBOL),this.state=4541,this.match(t.LR_BRACKET),this.state=4542,this.simpleStrings(),this.state=4543,this.match(t.RR_BRACKET);break;case t.REPLICATE_REWRITE_DB:for(s=new dP(s),this.enterOuterAlt(s,7),this.state=4545,this.match(t.REPLICATE_REWRITE_DB),this.state=4546,this.match(t.EQUAL_SYMBOL),this.state=4547,this.match(t.LR_BRACKET),this.state=4548,this.tablePair(),this.state=4553,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4549,this.match(t.COMMA),this.state=4550,this.tablePair(),this.state=4555,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4556,this.match(t.RR_BRACKET);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tablePair(){let e=new pP(this.context,this.state);this.enterRule(e,360,t.RULE_tablePair);try{this.enterOuterAlt(e,1),this.state=4560,this.match(t.LR_BRACKET),this.state=4561,e._firstTable=this.tableName(),this.state=4562,this.match(t.COMMA),this.state=4563,e._secondTable=this.tableName(),this.state=4564,this.match(t.RR_BRACKET)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}threadType(){let e,s=new gP(this.context,this.state);this.enterRule(s,362,t.RULE_threadType);try{this.enterOuterAlt(s,1),this.state=4566,e=this.tokenStream.LA(1),462===e||628===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}untilOption(){let e,s=new xP(this.context,this.state);this.enterRule(s,364,t.RULE_untilOption);try{switch(this.state=4586,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SQL_AFTER_GTIDS:case t.SQL_BEFORE_GTIDS:s=new kP(s),this.enterOuterAlt(s,1),this.state=4568,s._gtids=this.tokenStream.LT(1),e=this.tokenStream.LA(1),622===e||624===e?(this.errorHandler.reportMatch(this),this.consume()):s._gtids=this.errorHandler.recoverInline(this),this.state=4569,this.match(t.EQUAL_SYMBOL),this.state=4570,this.gtuidSet();break;case t.MASTER_LOG_FILE:s=new GP(s),this.enterOuterAlt(s,2),this.state=4571,this.match(t.MASTER_LOG_FILE),this.state=4572,this.match(t.EQUAL_SYMBOL),this.state=4573,this.match(t.STRING_LITERAL),this.state=4574,this.match(t.COMMA),this.state=4575,this.match(t.MASTER_LOG_POS),this.state=4576,this.match(t.EQUAL_SYMBOL),this.state=4577,this.decimalLiteral();break;case t.RELAY_LOG_FILE:s=new FP(s),this.enterOuterAlt(s,3),this.state=4578,this.match(t.RELAY_LOG_FILE),this.state=4579,this.match(t.EQUAL_SYMBOL),this.state=4580,this.match(t.STRING_LITERAL),this.state=4581,this.match(t.COMMA),this.state=4582,this.match(t.RELAY_LOG_POS),this.state=4583,this.match(t.EQUAL_SYMBOL),this.state=4584,this.decimalLiteral();break;case t.SQL_AFTER_MTS_GAPS:s=new HP(s),this.enterOuterAlt(s,4),this.state=4585,this.match(t.SQL_AFTER_MTS_GAPS);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}connectionOption(){let e=new vP(this.context,this.state);this.enterRule(e,366,t.RULE_connectionOption);try{switch(this.state=4600,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.USER:e=new yP(e),this.enterOuterAlt(e,1),this.state=4588,this.match(t.USER),this.state=4589,this.match(t.EQUAL_SYMBOL),this.state=4590,e._conOptUser=this.match(t.STRING_LITERAL);break;case t.PASSWORD:e=new YP(e),this.enterOuterAlt(e,2),this.state=4591,this.match(t.PASSWORD),this.state=4592,this.match(t.EQUAL_SYMBOL),this.state=4593,e._conOptPassword=this.match(t.STRING_LITERAL);break;case t.DEFAULT_AUTH:e=new fP(e),this.enterOuterAlt(e,3),this.state=4594,this.match(t.DEFAULT_AUTH),this.state=4595,this.match(t.EQUAL_SYMBOL),this.state=4596,e._conOptDefAuth=this.match(t.STRING_LITERAL);break;case t.PLUGIN_DIR:e=new BP(e),this.enterOuterAlt(e,4),this.state=4597,this.match(t.PLUGIN_DIR),this.state=4598,this.match(t.EQUAL_SYMBOL),this.state=4599,e._conOptPluginDir=this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}gtuidSet(){let e,s=new wP(this.context,this.state);this.enterRule(s,368,t.RULE_gtuidSet);try{switch(this.state=4611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:for(this.enterOuterAlt(s,1),this.state=4602,this.uuidSet(),this.state=4607,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4603,this.match(t.COMMA),this.state=4604,this.uuidSet(),this.state=4609,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case t.STRING_LITERAL:this.enterOuterAlt(s,2),this.state=4610,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xaStartTransaction(){let e,s=new bP(this.context,this.state);this.enterRule(s,370,t.RULE_xaStartTransaction);try{this.enterOuterAlt(s,1),this.state=4613,this.match(t.XA),this.state=4614,s._xaStart=this.tokenStream.LT(1),e=this.tokenStream.LA(1),344===e||629===e?(this.errorHandler.reportMatch(this),this.consume()):s._xaStart=this.errorHandler.recoverInline(this),this.state=4615,this.xid(),this.state=4617,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(90===e||591===e)&&(this.state=4616,s._xaAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),90===e||591===e?(this.errorHandler.reportMatch(this),this.consume()):s._xaAction=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xaEndTransaction(){let e,s=new WP(this.context,this.state);this.enterRule(s,372,t.RULE_xaEndTransaction);try{this.enterOuterAlt(s,1),this.state=4619,this.match(t.XA),this.state=4620,this.match(t.END),this.state=4621,this.xid(),this.state=4627,this.errorHandler.sync(this),e=this.tokenStream.LA(1),643===e&&(this.state=4622,this.match(t.SUSPEND),this.state=4625,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=4623,this.match(t.FOR),this.state=4624,this.match(t.MIGRATE)))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xaPrepareStatement(){let e=new VP(this.context,this.state);this.enterRule(e,374,t.RULE_xaPrepareStatement);try{this.enterOuterAlt(e,1),this.state=4629,this.match(t.XA),this.state=4630,this.match(t.PREPARE),this.state=4631,this.xid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xaCommitWork(){let e,s=new XP(this.context,this.state);this.enterRule(s,376,t.RULE_xaCommitWork);try{this.enterOuterAlt(s,1),this.state=4633,this.match(t.XA),this.state=4634,this.match(t.COMMIT),this.state=4635,this.xid(),this.state=4638,this.errorHandler.sync(this),e=this.tokenStream.LA(1),536===e&&(this.state=4636,this.match(t.ONE),this.state=4637,this.match(t.PHASE))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xaRollbackWork(){let e=new KP(this.context,this.state);this.enterRule(e,378,t.RULE_xaRollbackWork);try{this.enterOuterAlt(e,1),this.state=4640,this.match(t.XA),this.state=4641,this.match(t.ROLLBACK),this.state=4642,this.xid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xaRecoverWork(){let e,s=new QP(this.context,this.state);this.enterRule(s,380,t.RULE_xaRecoverWork);try{this.enterOuterAlt(s,1),this.state=4644,this.match(t.XA),this.state=4645,this.match(t.RECOVER),this.state=4648,this.errorHandler.sync(this),e=this.tokenStream.LA(1),32===e&&(this.state=4646,this.match(t.CONVERT),this.state=4647,this.xid())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}prepareStatement(){let e=new JP(this.context,this.state);this.enterRule(e,382,t.RULE_prepareStatement);try{switch(this.enterOuterAlt(e,1),this.state=4650,this.match(t.PREPARE),this.state=4651,this.uid(),this.state=4652,this.match(t.FROM),this.state=4655,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_LITERAL:this.state=4653,e._query=this.match(t.STRING_LITERAL);break;case t.LOCAL_ID:this.state=4654,e._variable=this.match(t.LOCAL_ID);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}executeStatement(){let e,s=new ZP(this.context,this.state);this.enterRule(s,384,t.RULE_executeStatement);try{this.enterOuterAlt(s,1),this.state=4657,this.match(t.EXECUTE),this.state=4658,this.uid(),this.state=4661,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=4659,this.match(t.USING),this.state=4660,this.userVariables())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}deallocatePrepare(){let e,s=new qP(this.context,this.state);this.enterRule(s,386,t.RULE_deallocatePrepare);try{this.enterOuterAlt(s,1),this.state=4663,s._dropFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),51===e||390===e?(this.errorHandler.reportMatch(this),this.consume()):s._dropFormat=this.errorHandler.recoverInline(this),this.state=4664,this.match(t.PREPARE),this.state=4665,this.uid()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}routineBody(){let e=new jP(this.context,this.state);this.enterRule(e,388,t.RULE_routineBody);try{switch(this.state=4669,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,666,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4667,this.blockStatement();break;case 2:this.enterOuterAlt(e,2),this.state=4668,this.statement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}blockStatement(){let e,s=new zP(this.context,this.state);this.enterRule(s,390,t.RULE_blockStatement);try{let a;if(this.enterOuterAlt(s,1),1===(this.state=4674,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,667,this.context)))this.state=4671,this.uid(),this.state=4672,this.match(t.COLON_SYMB);for(this.state=4676,this.match(t.BEGIN),this.state=4682,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,668,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=4677,this.declareVariable(),this.state=4678,this.match(t.SEMI)),this.state=4684,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,668,this.context);for(this.state=4690,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,669,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=4685,this.declareCondition(),this.state=4686,this.match(t.SEMI)),this.state=4692,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,669,this.context);for(this.state=4698,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,670,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=4693,this.declareCursor(),this.state=4694,this.match(t.SEMI)),this.state=4700,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,670,this.context);for(this.state=4706,this.errorHandler.sync(this),e=this.tokenStream.LA(1);41===e;)this.state=4701,this.declareHandler(),this.state=4702,this.match(t.SEMI),this.state=4708,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=4712,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,672,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=4709,this.procedureSqlStatement()),this.state=4714,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,672,this.context);this.state=4715,this.match(t.END),this.state=4717,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4716,this.uid())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}caseStatement(){let e,s=new $P(this.context,this.state);this.enterRule(s,392,t.RULE_caseStatement);try{let a;switch(this.enterOuterAlt(s,1),this.state=4719,this.match(t.CASE),this.state=4722,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,674,this.context)){case 1:this.state=4720,this.uid();break;case 2:this.state=4721,this.expression(0)}this.state=4725,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4724,this.caseAlternative(),this.state=4727,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(189===e);if(this.state=4735,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e){this.state=4729,this.match(t.ELSE),this.state=4731,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=4730,this.procedureSqlStatement(),this.state=4733,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,676,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER)}this.state=4737,this.match(t.END),this.state=4738,this.match(t.CASE)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}ifStatement(){let e,s=new tM(this.context,this.state);this.enterRule(s,394,t.RULE_ifStatement);try{let a;this.enterOuterAlt(s,1),this.state=4740,this.match(t.IF),this.state=4741,this.expression(0),this.state=4742,this.match(t.THEN),this.state=4744,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=4743,s._procedureSqlStatement=this.procedureSqlStatement(),s._thenStatements.push(s._procedureSqlStatement),this.state=4746,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,678,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);for(this.state=4751,this.errorHandler.sync(this),e=this.tokenStream.LA(1);54===e;)this.state=4748,this.elifAlternative(),this.state=4753,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=4760,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e){this.state=4754,this.match(t.ELSE),this.state=4756,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=4755,s._procedureSqlStatement=this.procedureSqlStatement(),s._elseStatements.push(s._procedureSqlStatement),this.state=4758,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,680,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER)}this.state=4762,this.match(t.END),this.state=4763,this.match(t.IF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}iterateStatement(){let e=new eM(this.context,this.state);this.enterRule(e,396,t.RULE_iterateStatement);try{this.enterOuterAlt(e,1),this.state=4765,this.match(t.ITERATE),this.state=4766,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}leaveStatement(){let e=new sM(this.context,this.state);this.enterRule(e,398,t.RULE_leaveStatement);try{this.enterOuterAlt(e,1),this.state=4768,this.match(t.LEAVE),this.state=4769,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}loopStatement(){let e,s=new aM(this.context,this.state);this.enterRule(s,400,t.RULE_loopStatement);try{let a;this.enterOuterAlt(s,1),this.state=4774,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4771,this.uid(),this.state=4772,this.match(t.COLON_SYMB)),this.state=4776,this.match(t.LOOP),this.state=4778,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=4777,this.procedureSqlStatement(),this.state=4780,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,683,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);this.state=4782,this.match(t.END),this.state=4783,this.match(t.LOOP),this.state=4785,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4784,this.uid())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}repeatStatement(){let e,s=new iM(this.context,this.state);this.enterRule(s,402,t.RULE_repeatStatement);try{let a;if(this.enterOuterAlt(s,1),1===(this.state=4790,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,685,this.context)))this.state=4787,this.uid(),this.state=4788,this.match(t.COLON_SYMB);this.state=4792,this.match(t.REPEAT),this.state=4794,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=4793,this.procedureSqlStatement(),this.state=4796,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,686,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);this.state=4798,this.match(t.UNTIL),this.state=4799,this.expression(0),this.state=4800,this.match(t.END),this.state=4801,this.match(t.REPEAT),this.state=4803,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4802,this.uid())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}returnStatement(){let e=new rM(this.context,this.state);this.enterRule(e,404,t.RULE_returnStatement);try{this.enterOuterAlt(e,1),this.state=4805,this.match(t.RETURN),this.state=4806,this.expression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}whileStatement(){let e,s=new cM(this.context,this.state);this.enterRule(s,406,t.RULE_whileStatement);try{let a;this.enterOuterAlt(s,1),this.state=4811,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4808,this.uid(),this.state=4809,this.match(t.COLON_SYMB)),this.state=4813,this.match(t.WHILE),this.state=4814,this.expression(0),this.state=4815,this.match(t.DO),this.state=4817,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=4816,this.procedureSqlStatement(),this.state=4819,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,689,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);this.state=4821,this.match(t.END),this.state=4822,this.match(t.WHILE),this.state=4824,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=4823,this.uid())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}cursorStatement(){let e,s=new nM(this.context,this.state);this.enterRule(s,408,t.RULE_cursorStatement);try{switch(this.state=4841,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CLOSE:s=new hM(s),this.enterOuterAlt(s,1),this.state=4826,this.match(t.CLOSE),this.state=4827,this.uid();break;case t.FETCH:if(s=new TM(s),this.enterOuterAlt(s,2),1===(this.state=4828,this.match(t.FETCH),this.state=4833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,692,this.context)))this.state=4830,this.errorHandler.sync(this),e=this.tokenStream.LA(1),520===e&&(this.state=4829,this.match(t.NEXT)),this.state=4832,this.match(t.FROM);this.state=4835,this.uid(),this.state=4836,this.match(t.INTO),this.state=4837,this.uidList();break;case t.OPEN:s=new EM(s),this.enterOuterAlt(s,3),this.state=4839,this.match(t.OPEN),this.state=4840,this.uid();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}declareVariable(){let e,s=new oM(this.context,this.state);this.enterRule(s,410,t.RULE_declareVariable);try{this.enterOuterAlt(s,1),this.state=4843,this.match(t.DECLARE),this.state=4844,this.uidList(),this.state=4845,this.dataType(),this.state=4848,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=4846,this.match(t.DEFAULT),this.state=4847,this.expression(0))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}declareCondition(){let e,s=new RM(this.context,this.state);this.enterRule(s,412,t.RULE_declareCondition);try{switch(this.enterOuterAlt(s,1),this.state=4850,this.match(t.DECLARE),this.state=4851,this.uid(),this.state=4852,this.match(t.CONDITION),this.state=4853,this.match(t.FOR),this.state=4860,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.state=4854,this.decimalLiteral();break;case t.SQLSTATE:this.state=4855,this.match(t.SQLSTATE),this.state=4857,this.errorHandler.sync(this),e=this.tokenStream.LA(1),669===e&&(this.state=4856,this.match(t.VALUE)),this.state=4859,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}declareCursor(){let e=new AM(this.context,this.state);this.enterRule(e,414,t.RULE_declareCursor);try{this.enterOuterAlt(e,1),this.state=4862,this.match(t.DECLARE),this.state=4863,this.uid(),this.state=4864,this.match(t.CURSOR),this.state=4865,this.match(t.FOR),this.state=4866,this.selectStatement()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declareHandler(){let e,s=new SM(this.context,this.state);this.enterRule(s,416,t.RULE_declareHandler);try{for(this.enterOuterAlt(s,1),this.state=4868,this.match(t.DECLARE),this.state=4869,s._handlerAction=this.tokenStream.LT(1),e=this.tokenStream.LA(1),31===e||61===e||179===e?(this.errorHandler.reportMatch(this),this.consume()):s._handlerAction=this.errorHandler.recoverInline(this),this.state=4870,this.match(t.HANDLER),this.state=4871,this.match(t.FOR),this.state=4872,this.handlerConditionValue(),this.state=4877,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4873,this.match(t.COMMA),this.state=4874,this.handlerConditionValue(),this.state=4879,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4880,this.routineBody()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}handlerConditionValue(){let e,s=new lM(this.context,this.state);this.enterRule(s,418,t.RULE_handlerConditionValue);try{switch(this.state=4893,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:s=new IM(s),this.enterOuterAlt(s,1),this.state=4882,this.decimalLiteral();break;case t.SQLSTATE:s=new NM(s),this.enterOuterAlt(s,2),this.state=4883,this.match(t.SQLSTATE),this.state=4885,this.errorHandler.sync(this),e=this.tokenStream.LA(1),669===e&&(this.state=4884,this.match(t.VALUE)),this.state=4887,this.match(t.STRING_LITERAL);break;case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:s=new CM(s),this.enterOuterAlt(s,3),this.state=4888,this.uid();break;case t.SQLWARNING:s=new OM(s),this.enterOuterAlt(s,4),this.state=4889,this.match(t.SQLWARNING);break;case t.NOT:s=new uM(s),this.enterOuterAlt(s,5),this.state=4890,this.match(t.NOT),this.state=4891,this.match(t.FOUND);break;case t.SQLEXCEPTION:s=new LM(s),this.enterOuterAlt(s,6),this.state=4892,this.match(t.SQLEXCEPTION);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}procedureSqlStatement(){let e=new _M(this.context,this.state);this.enterRule(e,420,t.RULE_procedureSqlStatement);try{switch(this.enterOuterAlt(e,1),this.state=4897,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,700,this.context)){case 1:this.state=4895,this.compoundStatement();break;case 2:this.state=4896,this.statement()}this.state=4899,this.match(t.SEMI)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}caseAlternative(){let e=new PM(this.context,this.state);this.enterRule(e,422,t.RULE_caseAlternative);try{let s;switch(this.enterOuterAlt(e,1),this.state=4901,this.match(t.WHEN),this.state=4904,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,701,this.context)){case 1:this.state=4902,this.constant();break;case 2:this.state=4903,this.expression(0)}this.state=4906,this.match(t.THEN),this.state=4908,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new he(this);this.state=4907,this.procedureSqlStatement(),this.state=4910,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,702,this.context)}while(2!==s&&s!==q.INVALID_ALT_NUMBER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}elifAlternative(){let e=new MM(this.context,this.state);this.enterRule(e,424,t.RULE_elifAlternative);try{let s;this.enterOuterAlt(e,1),this.state=4912,this.match(t.ELSEIF),this.state=4913,this.expression(0),this.state=4914,this.match(t.THEN),this.state=4916,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new he(this);this.state=4915,this.procedureSqlStatement(),this.state=4918,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,703,this.context)}while(2!==s&&s!==q.INVALID_ALT_NUMBER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alterUser(){let e,s=new dM(this.context,this.state);this.enterRule(s,426,t.RULE_alterUser);try{switch(this.state=4983,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,716,this.context)){case 1:for(s=new mM(s),this.enterOuterAlt(s,1),this.state=4920,this.match(t.ALTER),this.state=4921,this.match(t.USER),this.state=4922,this.userSpecification(),this.state=4927,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=4923,this.match(t.COMMA),this.state=4924,this.userSpecification(),this.state=4929,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:if(s=new UM(s),this.enterOuterAlt(s,2),this.state=4930,this.match(t.ALTER),this.state=4931,this.match(t.USER),this.state=4933,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=4932,this.ifExists()),this.state=4935,this.newUserAuthOptionList(),this.state=4950,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e)switch(this.state=4936,this.match(t.REQUIRE),this.state=4948,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NONE:this.state=4937,s._tlsNone=this.match(t.NONE);break;case t.SSL:case t.CIPHER:case t.ISSUER:case t.SUBJECT:case t.X509:for(this.state=4938,this.tlsOption(),this.state=4945,this.errorHandler.sync(this),e=this.tokenStream.LA(1);10===e||167===e||358===e||465===e||640===e||680===e;)this.state=4940,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=4939,this.match(t.AND)),this.state=4942,this.tlsOption(),this.state=4947,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}if(this.state=4958,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e){this.state=4952,this.match(t.WITH),this.state=4954,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4953,this.userResourceOption(),this.state=4956,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-498&-32)&&1<<e-498&51)}for(this.state=4964,this.errorHandler.sync(this),e=this.tokenStream.LA(1);332===e||424===e||551===e||552===e;){switch(this.state=4962,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FAILED_LOGIN_ATTEMPTS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:this.state=4960,this.userPasswordOption();break;case t.ACCOUNT:this.state=4961,this.userLockOption();break;default:throw new he(this)}this.state=4966,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}switch(this.state=4971,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMENT:this.state=4967,this.match(t.COMMENT),this.state=4968,this.match(t.STRING_LITERAL);break;case t.ATTRIBUTE:this.state=4969,this.match(t.ATTRIBUTE),this.state=4970,this.match(t.STRING_LITERAL);case t.EOF:case t.SEMI:}break;case 3:s=new UM(s),this.enterOuterAlt(s,3),this.state=4973,this.match(t.ALTER),this.state=4974,this.match(t.USER),this.state=4976,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=4975,this.ifExists()),this.state=4978,this.userName(),this.state=4979,this.match(t.DEFAULT),this.state=4980,this.match(t.ROLE),this.state=4981,this.roleOption()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createUser(){let e,s=new DM(this.context,this.state);this.enterRule(s,428,t.RULE_createUser);try{switch(this.state=5036,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,728,this.context)){case 1:s=new pM(s),this.enterOuterAlt(s,1),this.state=4985,this.match(t.CREATE),this.state=4986,this.match(t.USER),this.state=4987,this.newUserAuthOptionList();break;case 2:if(s=new gM(s),this.enterOuterAlt(s,2),this.state=4988,this.match(t.CREATE),this.state=4989,this.match(t.USER),this.state=4991,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=4990,this.ifNotExists()),this.state=4993,this.newUserAuthOptionList(),this.state=4997,this.errorHandler.sync(this),e=this.tokenStream.LA(1),42===e&&(this.state=4994,this.match(t.DEFAULT),this.state=4995,this.match(t.ROLE),this.state=4996,this.roleOption()),this.state=5013,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e)switch(this.state=4999,this.match(t.REQUIRE),this.state=5011,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NONE:this.state=5e3,s._tlsNone=this.match(t.NONE);break;case t.SSL:case t.CIPHER:case t.ISSUER:case t.SUBJECT:case t.X509:for(this.state=5001,this.tlsOption(),this.state=5008,this.errorHandler.sync(this),e=this.tokenStream.LA(1);10===e||167===e||358===e||465===e||640===e||680===e;)this.state=5003,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=5002,this.match(t.AND)),this.state=5005,this.tlsOption(),this.state=5010,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}if(this.state=5021,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e){this.state=5015,this.match(t.WITH),this.state=5017,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=5016,this.userResourceOption(),this.state=5019,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-498&-32)&&1<<e-498&51)}for(this.state=5027,this.errorHandler.sync(this),e=this.tokenStream.LA(1);332===e||424===e||551===e||552===e;){switch(this.state=5025,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FAILED_LOGIN_ATTEMPTS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:this.state=5023,this.userPasswordOption();break;case t.ACCOUNT:this.state=5024,this.userLockOption();break;default:throw new he(this)}this.state=5029,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}switch(this.state=5034,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMENT:this.state=5030,this.match(t.COMMENT),this.state=5031,this.match(t.STRING_LITERAL);break;case t.ATTRIBUTE:this.state=5032,this.match(t.ATTRIBUTE),this.state=5033,this.match(t.STRING_LITERAL);case t.EOF:case t.SEMI:}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropUser(){let e,s=new xM(this.context,this.state);this.enterRule(s,430,t.RULE_dropUser);try{this.enterOuterAlt(s,1),this.state=5038,this.match(t.DROP),this.state=5039,this.match(t.USER),this.state=5041,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=5040,this.ifExists()),this.state=5043,this.userNameList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}grantStatement(){let e,s=new kM(this.context,this.state);this.enterRule(s,432,t.RULE_grantStatement);try{switch(this.state=5105,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,741,this.context)){case 1:for(this.enterOuterAlt(s,1),this.state=5045,this.match(t.GRANT),this.state=5046,this.privelegeClause(),this.state=5051,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5047,this.match(t.COMMA),this.state=5048,this.privelegeClause(),this.state=5053,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(1===(this.state=5054,this.match(t.ON),this.state=5056,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,731,this.context)))this.state=5055,e=this.tokenStream.LA(1),131===e||172===e||437===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);if(this.state=5058,this.privilegeLevel(),this.state=5059,this.match(t.TO),this.state=5060,this.userOrRoleNameList(),this.state=5075,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e)switch(this.state=5061,this.match(t.REQUIRE),this.state=5073,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.NONE:this.state=5062,s._tlsNone=this.match(t.NONE);break;case t.SSL:case t.CIPHER:case t.ISSUER:case t.SUBJECT:case t.X509:for(this.state=5063,this.tlsOption(),this.state=5070,this.errorHandler.sync(this),e=this.tokenStream.LA(1);10===e||167===e||358===e||465===e||640===e||680===e;)this.state=5065,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=5064,this.match(t.AND)),this.state=5067,this.tlsOption(),this.state=5072,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}if(this.state=5086,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e)for(this.state=5077,this.match(t.WITH),this.state=5083,this.errorHandler.sync(this),e=this.tokenStream.LA(1);72===e||!(e-498&-32)&&1<<e-498&51;){switch(this.state=5081,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.GRANT:this.state=5078,this.match(t.GRANT),this.state=5079,this.match(t.OPTION);break;case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:this.state=5080,this.userResourceOption();break;default:throw new he(this)}this.state=5085,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}this.state=5094,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=5088,this.match(t.AS),this.state=5089,this.userName(),this.state=5090,this.match(t.WITH),this.state=5091,this.match(t.ROLE),this.state=5092,this.roleOption());break;case 2:this.enterOuterAlt(s,2),this.state=5096,this.match(t.GRANT),this.state=5097,this.roleNameList(),this.state=5098,this.match(t.TO),this.state=5099,this.userOrRoleNameList(),this.state=5103,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=5100,this.match(t.WITH),this.state=5101,this.match(t.ADMIN),this.state=5102,this.match(t.OPTION))}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}roleOption(){let e,s=new HM(this.context,this.state);this.enterRule(s,434,t.RULE_roleOption);try{switch(this.state=5115,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,743,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5107,this.match(t.DEFAULT);break;case 2:this.enterOuterAlt(s,2),this.state=5108,this.match(t.NONE);break;case 3:this.enterOuterAlt(s,3),this.state=5109,this.match(t.ALL),this.state=5112,this.errorHandler.sync(this),e=this.tokenStream.LA(1),59===e&&(this.state=5110,this.match(t.EXCEPT),this.state=5111,this.roleNameList());break;case 4:this.enterOuterAlt(s,4),this.state=5114,this.roleNameList()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}grantProxy(){let e,s=new GM(this.context,this.state);this.enterRule(s,436,t.RULE_grantProxy);try{for(this.enterOuterAlt(s,1),this.state=5117,this.match(t.GRANT),this.state=5118,this.match(t.PROXY),this.state=5119,this.match(t.ON),this.state=5120,s._fromFirst=this.userName(),this.state=5121,this.match(t.TO),this.state=5122,s._toFirst=this.userName(),this.state=5127,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5123,this.match(t.COMMA),this.state=5124,s._userName=this.userName(),s._toOther.push(s._userName),this.state=5129,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=5133,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=5130,this.match(t.WITH),this.state=5131,this.match(t.GRANT),this.state=5132,this.match(t.OPTION))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}renameUser(){let e,s=new FM(this.context,this.state);this.enterRule(s,438,t.RULE_renameUser);try{for(this.enterOuterAlt(s,1),this.state=5135,this.match(t.RENAME),this.state=5136,this.match(t.USER),this.state=5137,this.renameUserClause(),this.state=5142,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5138,this.match(t.COMMA),this.state=5139,this.renameUserClause(),this.state=5144,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}revokeStatement(){let e,s=new vM(this.context,this.state);this.enterRule(s,440,t.RULE_revokeStatement);try{switch(this.state=5181,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,751,this.context)){case 1:for(s=new fM(s),this.enterOuterAlt(s,1),this.state=5145,this.match(t.REVOKE),this.state=5146,this.privelegeClause(),this.state=5151,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5147,this.match(t.COMMA),this.state=5148,this.privelegeClause(),this.state=5153,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(1===(this.state=5154,this.match(t.ON),this.state=5156,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,748,this.context)))this.state=5155,s._privilegeObject=this.tokenStream.LT(1),e=this.tokenStream.LA(1),131===e||172===e||437===e?(this.errorHandler.reportMatch(this),this.consume()):s._privilegeObject=this.errorHandler.recoverInline(this);this.state=5158,this.privilegeLevel(),this.state=5159,this.match(t.FROM),this.state=5160,this.userOrRoleNameList();break;case 2:s=new BM(s),this.enterOuterAlt(s,2),this.state=5162,this.match(t.REVOKE),this.state=5163,this.match(t.ALL),this.state=5165,this.errorHandler.sync(this),e=this.tokenStream.LA(1),725===e&&(this.state=5164,this.match(t.PRIVILEGES)),this.state=5167,this.match(t.COMMA),this.state=5168,this.match(t.GRANT),this.state=5169,this.match(t.OPTION),this.state=5170,this.match(t.FROM),this.state=5171,this.userOrRoleNameList();break;case 3:for(s=new yM(s),this.enterOuterAlt(s,3),this.state=5172,this.match(t.REVOKE),this.state=5173,this.roleNameList(),this.state=5174,this.match(t.FROM),this.state=5178,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e;)this.state=5175,this.userOrRoleNameList(),this.state=5180,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}revokeProxy(){let e,s=new YM(this.context,this.state);this.enterRule(s,442,t.RULE_revokeProxy);try{for(this.enterOuterAlt(s,1),this.state=5183,this.match(t.REVOKE),this.state=5184,this.match(t.PROXY),this.state=5185,this.match(t.ON),this.state=5186,s._onUser=this.userName(),this.state=5187,this.match(t.FROM),this.state=5188,s._fromFirst=this.userName(),this.state=5193,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5189,this.match(t.COMMA),this.state=5190,s._userName=this.userName(),s._fromOther.push(s._userName),this.state=5195,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}setPasswordStatement(){let e,s=new wM(this.context,this.state);this.enterRule(s,444,t.RULE_setPasswordStatement);try{switch(this.enterOuterAlt(s,1),this.state=5196,this.match(t.SET),this.state=5197,this.match(t.PASSWORD),this.state=5200,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=5198,this.match(t.FOR),this.state=5199,this.userName()),this.state=5202,this.match(t.EQUAL_SYMBOL),this.state=5205,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OLD_PASSWORD:case t.PASSWORD:this.state=5203,this.passwordFunctionClause();break;case t.STRING_LITERAL:this.state=5204,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}userSpecification(){let e=new bM(this.context,this.state);this.enterRule(e,446,t.RULE_userSpecification);try{this.enterOuterAlt(e,1),this.state=5207,this.userName(),this.state=5208,this.userPasswordOption()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}newUserAuthOptionList(){let e,s=new WM(this.context,this.state);this.enterRule(s,448,t.RULE_newUserAuthOptionList);try{for(this.enterOuterAlt(s,1),this.state=5210,this.newUserAuthOption(),this.state=5215,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5211,this.match(t.COMMA),this.state=5212,this.newUserAuthOption(),this.state=5217,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}newUserAuthOption(){let e=new VM(this.context,this.state);this.enterRule(e,450,t.RULE_newUserAuthOption);try{switch(this.state=5243,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,756,this.context)){case 1:e=new ZM(e),this.enterOuterAlt(e,1),this.state=5218,this.newUserName(),this.state=5219,this.match(t.IDENTIFIED),this.state=5220,this.match(t.BY),this.state=5221,this.match(t.PASSWORD),this.state=5222,e._hashed=this.match(t.STRING_LITERAL);break;case 2:e=new QM(e),this.enterOuterAlt(e,2),this.state=5224,this.newUserName(),this.state=5225,this.match(t.IDENTIFIED),this.state=5226,this.match(t.BY),this.state=5227,this.match(t.RANDOM),this.state=5228,this.match(t.PASSWORD),this.state=5229,this.authOptionClause();break;case 3:e=new JM(e),this.enterOuterAlt(e,3),this.state=5231,this.newUserName(),this.state=5232,this.match(t.IDENTIFIED),this.state=5233,this.match(t.BY),this.state=5234,this.match(t.STRING_LITERAL),this.state=5235,this.authOptionClause();break;case 4:e=new KM(e),this.enterOuterAlt(e,4),this.state=5237,this.newUserName(),this.state=5238,this.match(t.IDENTIFIED),this.state=5239,this.match(t.WITH),this.state=5240,this.authenticationRule();break;case 5:e=new XM(e),this.enterOuterAlt(e,5),this.state=5242,this.newUserName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}authOptionClause(){let e,s=new qM(this.context,this.state);this.enterRule(s,452,t.RULE_authOptionClause);try{this.enterOuterAlt(s,1),this.state=5247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),141===e&&(this.state=5245,this.match(t.REPLACE),this.state=5246,this.match(t.STRING_LITERAL)),this.state=5252,this.errorHandler.sync(this),e=this.tokenStream.LA(1),145===e&&(this.state=5249,this.match(t.RETAIN),this.state=5250,this.match(t.CURRENT),this.state=5251,this.match(t.PASSWORD))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}authenticationRule(){let e,s=new jM(this.context,this.state);this.enterRule(s,454,t.RULE_authenticationRule);try{switch(this.state=5268,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,761,this.context)){case 1:if(s=new $M(s),this.enterOuterAlt(s,1),this.state=5254,this.authPlugin(),this.state=5262,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e||19===e||187===e){switch(this.state=5255,e=this.tokenStream.LA(1),12===e||19===e||187===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5259,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_LITERAL:this.state=5256,this.match(t.STRING_LITERAL);break;case t.RANDOM:this.state=5257,this.match(t.RANDOM),this.state=5258,this.match(t.PASSWORD);break;default:throw new he(this)}this.state=5261,this.authOptionClause()}break;case 2:s=new zM(s),this.enterOuterAlt(s,2),this.state=5264,this.authPlugin(),this.state=5265,this.match(t.USING),this.state=5266,this.passwordFunctionClause()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tlsOption(){let e=new td(this.context,this.state);this.enterRule(e,456,t.RULE_tlsOption);try{switch(this.state=5278,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SSL:this.enterOuterAlt(e,1),this.state=5270,this.match(t.SSL);break;case t.X509:this.enterOuterAlt(e,2),this.state=5271,this.match(t.X509);break;case t.CIPHER:this.enterOuterAlt(e,3),this.state=5272,this.match(t.CIPHER),this.state=5273,this.match(t.STRING_LITERAL);break;case t.ISSUER:this.enterOuterAlt(e,4),this.state=5274,this.match(t.ISSUER),this.state=5275,this.match(t.STRING_LITERAL);break;case t.SUBJECT:this.enterOuterAlt(e,5),this.state=5276,this.match(t.SUBJECT),this.state=5277,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}userResourceOption(){let e=new ed(this.context,this.state);this.enterRule(e,458,t.RULE_userResourceOption);try{switch(this.state=5288,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.MAX_QUERIES_PER_HOUR:this.enterOuterAlt(e,1),this.state=5280,this.match(t.MAX_QUERIES_PER_HOUR),this.state=5281,this.decimalLiteral();break;case t.MAX_UPDATES_PER_HOUR:this.enterOuterAlt(e,2),this.state=5282,this.match(t.MAX_UPDATES_PER_HOUR),this.state=5283,this.decimalLiteral();break;case t.MAX_CONNECTIONS_PER_HOUR:this.enterOuterAlt(e,3),this.state=5284,this.match(t.MAX_CONNECTIONS_PER_HOUR),this.state=5285,this.decimalLiteral();break;case t.MAX_USER_CONNECTIONS:this.enterOuterAlt(e,4),this.state=5286,this.match(t.MAX_USER_CONNECTIONS),this.state=5287,this.decimalLiteral();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}userPasswordOption(){let e,s=new sd(this.context,this.state);this.enterRule(s,460,t.RULE_userPasswordOption);try{switch(this.state=5328,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,769,this.context)){case 1:switch(this.enterOuterAlt(s,1),this.state=5290,this.match(t.PASSWORD),this.state=5291,this.match(t.EXPIRE),this.state=5298,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DEFAULT:this.state=5292,s._expireType=this.match(t.DEFAULT);break;case t.NEVER:this.state=5293,s._expireType=this.match(t.NEVER);break;case t.INTERVAL:this.state=5294,s._expireType=this.match(t.INTERVAL),this.state=5295,this.decimalLiteral(),this.state=5296,this.match(t.DAY);case t.EOF:case t.ATTRIBUTE:case t.ACCOUNT:case t.COMMENT:case t.FAILED_LOGIN_ATTEMPTS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.COMMA:case t.SEMI:}break;case 2:switch(this.enterOuterAlt(s,2),this.state=5300,this.match(t.PASSWORD),this.state=5301,this.match(t.HISTORY),this.state=5304,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DEFAULT:this.state=5302,this.match(t.DEFAULT);break;case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.state=5303,this.decimalLiteral();break;default:throw new he(this)}break;case 3:switch(this.enterOuterAlt(s,3),this.state=5306,this.match(t.PASSWORD),this.state=5307,this.match(t.REUSE),this.state=5308,this.match(t.INTERVAL),this.state=5313,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DEFAULT:this.state=5309,this.match(t.DEFAULT);break;case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.state=5310,this.decimalLiteral(),this.state=5311,this.match(t.DAY);break;default:throw new he(this)}break;case 4:this.enterOuterAlt(s,4),this.state=5315,this.match(t.PASSWORD),this.state=5316,this.match(t.REQUIRE),this.state=5317,this.match(t.CURRENT),this.state=5319,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(42===e||121===e)&&(this.state=5318,e=this.tokenStream.LA(1),42===e||121===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 5:this.enterOuterAlt(s,5),this.state=5321,this.match(t.FAILED_LOGIN_ATTEMPTS),this.state=5322,this.decimalLiteral();break;case 6:switch(this.enterOuterAlt(s,6),this.state=5323,this.match(t.PASSWORD_LOCK_TIME),this.state=5326,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.state=5324,this.decimalLiteral();break;case t.UNBOUNDED:this.state=5325,this.match(t.UNBOUNDED);break;default:throw new he(this)}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}userLockOption(){let e,s=new ad(this.context,this.state);this.enterRule(s,462,t.RULE_userLockOption);try{this.enterOuterAlt(s,1),this.state=5330,this.match(t.ACCOUNT),this.state=5331,s._lockType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),103===e||182===e?(this.errorHandler.reportMatch(this),this.consume()):s._lockType=this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}privelegeClause(){let e,s=new id(this.context,this.state);this.enterRule(s,464,t.RULE_privelegeClause);try{this.enterOuterAlt(s,1),this.state=5333,this.privilege(),this.state=5338,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=5334,this.match(t.LR_BRACKET),this.state=5335,this.uidList(),this.state=5336,this.match(t.RR_BRACKET))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}privilege(){let e,s=new rd(this.context,this.state);this.enterRule(s,466,t.RULE_privilege);try{switch(this.state=5433,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,775,this.context)){case 1:this.enterOuterAlt(s,1),this.state=5340,this.match(t.ALL),this.state=5342,this.errorHandler.sync(this),e=this.tokenStream.LA(1),725===e&&(this.state=5341,this.match(t.PRIVILEGES));break;case 2:this.enterOuterAlt(s,2),this.state=5344,this.match(t.ALTER),this.state=5346,this.errorHandler.sync(this),e=this.tokenStream.LA(1),733===e&&(this.state=5345,this.match(t.ROUTINE));break;case 3:switch(this.enterOuterAlt(s,3),this.state=5348,this.match(t.CREATE),this.state=5356,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TEMPORARY:this.state=5349,this.match(t.TEMPORARY),this.state=5350,this.match(t.TABLES);break;case t.ROUTINE:this.state=5351,this.match(t.ROUTINE);break;case t.VIEW:this.state=5352,this.match(t.VIEW);break;case t.USER:this.state=5353,this.match(t.USER);break;case t.TABLESPACE:this.state=5354,this.match(t.TABLESPACE);break;case t.ROLE:this.state=5355,this.match(t.ROLE);case t.ON:case t.LR_BRACKET:case t.COMMA:}break;case 4:this.enterOuterAlt(s,4),this.state=5358,this.match(t.DELETE);break;case 5:this.enterOuterAlt(s,5),this.state=5359,this.match(t.DROP),this.state=5361,this.errorHandler.sync(this),e=this.tokenStream.LA(1),596===e&&(this.state=5360,this.match(t.ROLE));break;case 6:this.enterOuterAlt(s,6),this.state=5363,this.match(t.EVENT);break;case 7:this.enterOuterAlt(s,7),this.state=5364,this.match(t.EXECUTE);break;case 8:this.enterOuterAlt(s,8),this.state=5365,this.match(t.FILE);break;case 9:this.enterOuterAlt(s,9),this.state=5366,this.match(t.GRANT),this.state=5367,this.match(t.OPTION);break;case 10:this.enterOuterAlt(s,10),this.state=5368,this.match(t.INDEX);break;case 11:this.enterOuterAlt(s,11),this.state=5369,this.match(t.INSERT);break;case 12:this.enterOuterAlt(s,12),this.state=5370,this.match(t.LOCK),this.state=5371,this.match(t.TABLES);break;case 13:this.enterOuterAlt(s,13),this.state=5372,this.match(t.PROCESS);break;case 14:this.enterOuterAlt(s,14),this.state=5373,this.match(t.PROXY);break;case 15:this.enterOuterAlt(s,15),this.state=5374,this.match(t.REFERENCES);break;case 16:this.enterOuterAlt(s,16),this.state=5375,this.match(t.RELOAD);break;case 17:this.enterOuterAlt(s,17),this.state=5376,this.match(t.REPLICATION),this.state=5377,e=this.tokenStream.LA(1),360===e||614===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 18:this.enterOuterAlt(s,18),this.state=5378,this.match(t.SELECT);break;case 19:this.enterOuterAlt(s,19),this.state=5379,this.match(t.SHOW),this.state=5380,e=this.tokenStream.LA(1),40===e||671===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 20:this.enterOuterAlt(s,20),this.state=5381,this.match(t.SHUTDOWN);break;case 21:this.enterOuterAlt(s,21),this.state=5382,this.match(t.SUPER);break;case 22:this.enterOuterAlt(s,22),this.state=5383,this.match(t.TRIGGER);break;case 23:this.enterOuterAlt(s,23),this.state=5384,this.match(t.UPDATE);break;case 24:this.enterOuterAlt(s,24),this.state=5385,this.match(t.USAGE);break;case 25:this.enterOuterAlt(s,25),this.state=5386,this.match(t.APPLICATION_PASSWORD_ADMIN);break;case 26:this.enterOuterAlt(s,26),this.state=5387,this.match(t.AUDIT_ABORT_EXEMPT);break;case 27:this.enterOuterAlt(s,27),this.state=5388,this.match(t.AUDIT_ADMIN);break;case 28:this.enterOuterAlt(s,28),this.state=5389,this.match(t.AUTHENTICATION_POLICY_ADMIN);break;case 29:this.enterOuterAlt(s,29),this.state=5390,this.match(t.BACKUP_ADMIN);break;case 30:this.enterOuterAlt(s,30),this.state=5391,this.match(t.BINLOG_ADMIN);break;case 31:this.enterOuterAlt(s,31),this.state=5392,this.match(t.BINLOG_ENCRYPTION_ADMIN);break;case 32:this.enterOuterAlt(s,32),this.state=5393,this.match(t.CLONE_ADMIN);break;case 33:this.enterOuterAlt(s,33),this.state=5394,this.match(t.CONNECTION_ADMIN);break;case 34:this.enterOuterAlt(s,34),this.state=5395,this.match(t.ENCRYPTION_KEY_ADMIN);break;case 35:this.enterOuterAlt(s,35),this.state=5396,this.match(t.FIREWALL_ADMIN);break;case 36:this.enterOuterAlt(s,36),this.state=5397,this.match(t.FIREWALL_EXEMPT);break;case 37:this.enterOuterAlt(s,37),this.state=5398,this.match(t.FIREWALL_USER);break;case 38:this.enterOuterAlt(s,38),this.state=5399,this.match(t.FLUSH_OPTIMIZER_COSTS);break;case 39:this.enterOuterAlt(s,39),this.state=5400,this.match(t.FLUSH_STATUS);break;case 40:this.enterOuterAlt(s,40),this.state=5401,this.match(t.FLUSH_TABLES);break;case 41:this.enterOuterAlt(s,41),this.state=5402,this.match(t.FLUSH_USER_RESOURCES);break;case 42:this.enterOuterAlt(s,42),this.state=5403,this.match(t.GROUP_REPLICATION_ADMIN);break;case 43:this.enterOuterAlt(s,43),this.state=5404,this.match(t.INNODB_REDO_LOG_ARCHIVE);break;case 44:this.enterOuterAlt(s,44),this.state=5405,this.match(t.INNODB_REDO_LOG_ENABLE);break;case 45:this.enterOuterAlt(s,45),this.state=5406,this.match(t.NDB_STORED_USER);break;case 46:this.enterOuterAlt(s,46),this.state=5407,this.match(t.PASSWORDLESS_USER_ADMIN);break;case 47:this.enterOuterAlt(s,47),this.state=5408,this.match(t.PERSIST_RO_VARIABLES_ADMIN);break;case 48:this.enterOuterAlt(s,48),this.state=5409,this.match(t.REPLICATION_APPLIER);break;case 49:this.enterOuterAlt(s,49),this.state=5410,this.match(t.REPLICATION_SLAVE_ADMIN);break;case 50:this.enterOuterAlt(s,50),this.state=5411,this.match(t.RESOURCE_GROUP_ADMIN);break;case 51:this.enterOuterAlt(s,51),this.state=5412,this.match(t.RESOURCE_GROUP_USER);break;case 52:this.enterOuterAlt(s,52),this.state=5413,this.match(t.ROLE_ADMIN);break;case 53:this.enterOuterAlt(s,53),this.state=5414,this.match(t.SERVICE_CONNECTION_ADMIN);break;case 54:this.enterOuterAlt(s,54),this.state=5415,this.match(t.SESSION_VARIABLES_ADMIN);break;case 55:this.enterOuterAlt(s,55),this.state=5416,this.match(t.SET_USER_ID);break;case 56:this.enterOuterAlt(s,56),this.state=5417,this.match(t.SKIP_QUERY_REWRITE);break;case 57:this.enterOuterAlt(s,57),this.state=5418,this.match(t.SHOW_ROUTINE);break;case 58:this.enterOuterAlt(s,58),this.state=5419,this.match(t.SYSTEM_USER);break;case 59:this.enterOuterAlt(s,59),this.state=5420,this.match(t.SYSTEM_VARIABLES_ADMIN);break;case 60:this.enterOuterAlt(s,60),this.state=5421,this.match(t.TABLE_ENCRYPTION_ADMIN);break;case 61:this.enterOuterAlt(s,61),this.state=5422,this.match(t.TP_CONNECTION_ADMIN);break;case 62:this.enterOuterAlt(s,62),this.state=5423,this.match(t.VERSION_TOKEN_ADMIN);break;case 63:this.enterOuterAlt(s,63),this.state=5424,this.match(t.XA_RECOVER_ADMIN);break;case 64:this.enterOuterAlt(s,64),this.state=5425,this.match(t.LOAD),this.state=5426,this.match(t.FROM),this.state=5427,this.match(t.S3);break;case 65:this.enterOuterAlt(s,65),this.state=5428,this.match(t.SELECT),this.state=5429,this.match(t.INTO),this.state=5430,this.match(t.S3);break;case 66:this.enterOuterAlt(s,66),this.state=5431,this.match(t.INVOKE),this.state=5432,this.match(t.LAMBDA)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}privilegeLevel(){let e=new cd(this.context,this.state);this.enterRule(e,468,t.RULE_privilegeLevel);try{switch(this.state=5451,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,776,this.context)){case 1:e=new Rd(e),this.enterOuterAlt(e,1),this.state=5435,this.match(t.STAR);break;case 2:e=new Td(e),this.enterOuterAlt(e,2),this.state=5436,this.match(t.STAR),this.state=5437,this.match(t.DOT),this.state=5438,this.match(t.STAR);break;case 3:e=new nd(e),this.enterOuterAlt(e,3),this.state=5439,this.uid(),this.state=5440,this.match(t.DOT),this.state=5441,this.match(t.STAR);break;case 4:e=new Ed(e),this.enterOuterAlt(e,4),this.state=5443,this.uid(),this.state=5444,this.match(t.DOT),this.state=5445,this.uid();break;case 5:e=new hd(e),this.enterOuterAlt(e,5),this.state=5447,this.uid(),this.state=5448,this.dottedId();break;case 6:e=new od(e),this.enterOuterAlt(e,6),this.state=5450,this.uid()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}renameUserClause(){let e=new Ad(this.context,this.state);this.enterRule(e,470,t.RULE_renameUserClause);try{this.enterOuterAlt(e,1),this.state=5453,this.userName(),this.state=5454,this.match(t.TO),this.state=5455,this.newUserName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}analyzeTable(){let e,s=new Sd(this.context,this.state);this.enterRule(s,472,t.RULE_analyzeTable);try{if(this.enterOuterAlt(s,1),this.state=5457,this.match(t.ANALYZE),this.state=5459,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||474===e)&&(this.state=5458,s._actionOption=this.tokenStream.LT(1),e=this.tokenStream.LA(1),115===e||474===e?(this.errorHandler.reportMatch(this),this.consume()):s._actionOption=this.errorHandler.recoverInline(this)),this.state=5461,e=this.tokenStream.LA(1),172===e||742===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5462,this.tables(),this.state=5480,this.errorHandler.sync(this),e=this.tokenStream.LA(1),184===e){for(this.state=5463,this.match(t.UPDATE),this.state=5464,this.match(t.HISTOGRAM),this.state=5465,this.match(t.ON),this.state=5466,this.fullColumnName(),this.state=5471,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5467,this.match(t.COMMA),this.state=5468,this.fullColumnName(),this.state=5473,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=5478,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=5474,this.match(t.WITH),this.state=5475,this.decimalLiteral(),this.state=5476,this.match(t.BUCKETS))}if(this.state=5493,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e)for(this.state=5482,this.match(t.DROP),this.state=5483,this.match(t.HISTOGRAM),this.state=5484,this.match(t.ON),this.state=5485,this.fullColumnName(),this.state=5490,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5486,this.match(t.COMMA),this.state=5487,this.fullColumnName(),this.state=5492,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}checkTable(){let e,s=new ld(this.context,this.state);this.enterRule(s,474,t.RULE_checkTable);try{for(this.enterOuterAlt(s,1),this.state=5495,this.match(t.CHECK),this.state=5496,this.match(t.TABLE),this.state=5497,this.tables(),this.state=5501,this.errorHandler.sync(this),e=this.tokenStream.LA(1);65===e||354===e||422===e||425===e||504===e||568===e;)this.state=5498,this.checkTableOption(),this.state=5503,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}checksumTable(){let e,s=new Od(this.context,this.state);this.enterRule(s,476,t.RULE_checksumTable);try{this.enterOuterAlt(s,1),this.state=5504,this.match(t.CHECKSUM),this.state=5505,this.match(t.TABLE),this.state=5506,this.tables(),this.state=5508,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(422===e||568===e)&&(this.state=5507,s._actionOption=this.tokenStream.LT(1),e=this.tokenStream.LA(1),422===e||568===e?(this.errorHandler.reportMatch(this),this.consume()):s._actionOption=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optimizeTable(){let e,s=new Id(this.context,this.state);this.enterRule(s,478,t.RULE_optimizeTable);try{this.enterOuterAlt(s,1),this.state=5510,this.match(t.OPTIMIZE),this.state=5512,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||474===e)&&(this.state=5511,s._actionOption=this.tokenStream.LT(1),e=this.tokenStream.LA(1),115===e||474===e?(this.errorHandler.reportMatch(this),this.consume()):s._actionOption=this.errorHandler.recoverInline(this)),this.state=5514,e=this.tokenStream.LA(1),172===e||742===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5515,this.tables()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}repairTable(){let e,s=new ud(this.context,this.state);this.enterRule(s,480,t.RULE_repairTable);try{this.enterOuterAlt(s,1),this.state=5517,this.match(t.REPAIR),this.state=5519,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||474===e)&&(this.state=5518,s._actionOption=this.tokenStream.LT(1),e=this.tokenStream.LA(1),115===e||474===e?(this.errorHandler.reportMatch(this),this.consume()):s._actionOption=this.errorHandler.recoverInline(this)),this.state=5521,this.match(t.TABLE),this.state=5522,this.tables(),this.state=5524,this.errorHandler.sync(this),e=this.tokenStream.LA(1),568===e&&(this.state=5523,this.match(t.QUICK)),this.state=5527,this.errorHandler.sync(this),e=this.tokenStream.LA(1),422===e&&(this.state=5526,this.match(t.EXTENDED)),this.state=5530,this.errorHandler.sync(this),e=this.tokenStream.LA(1),666===e&&(this.state=5529,this.match(t.USE_FRM))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}checkTableOption(){let e=new Nd(this.context,this.state);this.enterRule(e,482,t.RULE_checkTableOption);try{switch(this.state=5539,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FOR:this.enterOuterAlt(e,1),this.state=5532,this.match(t.FOR),this.state=5533,this.match(t.UPGRADE);break;case t.QUICK:this.enterOuterAlt(e,2),this.state=5534,this.match(t.QUICK);break;case t.FAST:this.enterOuterAlt(e,3),this.state=5535,this.match(t.FAST);break;case t.MEDIUM:this.enterOuterAlt(e,4),this.state=5536,this.match(t.MEDIUM);break;case t.EXTENDED:this.enterOuterAlt(e,5),this.state=5537,this.match(t.EXTENDED);break;case t.CHANGED:this.enterOuterAlt(e,6),this.state=5538,this.match(t.CHANGED);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}createUdfunction(){let e,s=new Ld(this.context,this.state);this.enterRule(s,484,t.RULE_createUdfunction);try{if(this.enterOuterAlt(s,1),1===(this.state=5541,this.match(t.CREATE),this.state=5543,this.errorHandler.sync(this),e=this.tokenStream.LA(1),335===e&&(this.state=5542,this.match(t.AGGREGATE)),this.state=5545,this.match(t.FUNCTION),this.state=5547,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,792,this.context)))this.state=5546,this.ifNotExists();this.state=5549,this.uid(),this.state=5550,this.match(t.RETURNS),this.state=5551,s._returnType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-206&-32)&&1<<e-206&261||638===e?(this.errorHandler.reportMatch(this),this.consume()):s._returnType=this.errorHandler.recoverInline(this),this.state=5552,this.match(t.SONAME),this.state=5553,this.match(t.STRING_LITERAL)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}installPlugin(){let e=new Cd(this.context,this.state);this.enterRule(e,486,t.RULE_installPlugin);try{this.enterOuterAlt(e,1),this.state=5555,this.match(t.INSTALL),this.state=5556,this.match(t.PLUGIN),this.state=5557,this.uid(),this.state=5558,this.match(t.SONAME),this.state=5559,this.match(t.STRING_LITERAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}uninstallPlugin(){let e=new _d(this.context,this.state);this.enterRule(e,488,t.RULE_uninstallPlugin);try{this.enterOuterAlt(e,1),this.state=5561,this.match(t.UNINSTALL),this.state=5562,this.match(t.PLUGIN),this.state=5563,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}setStatement(){let e,s=new Pd(this.context,this.state);this.enterRule(s,490,t.RULE_setStatement);try{switch(this.state=5617,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,800,this.context)){case 1:switch(s=new gd(s),this.enterOuterAlt(s,1),this.state=5565,this.match(t.SET),this.state=5566,this.variableClause(),this.state=5567,e=this.tokenStream.LA(1),1108===e||1124===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5570,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,793,this.context)){case 1:this.state=5568,this.expression(0);break;case 2:this.state=5569,this.match(t.ON)}for(this.state=5581,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;){switch(this.state=5572,this.match(t.COMMA),this.state=5573,this.variableClause(),this.state=5574,e=this.tokenStream.LA(1),1108===e||1124===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5577,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,794,this.context)){case 1:this.state=5575,this.expression(0);break;case 2:this.state=5576,this.match(t.ON)}this.state=5583,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}break;case 2:switch(s=new dd(s),this.enterOuterAlt(s,2),this.state=5584,this.match(t.SET),this.state=5585,this.charSet(),this.state=5588,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BINARY:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:this.state=5586,this.charsetName();break;case t.DEFAULT:this.state=5587,this.match(t.DEFAULT);break;default:throw new he(this)}break;case 3:switch(s=new Ud(s),this.enterOuterAlt(s,3),this.state=5590,this.match(t.SET),this.state=5591,this.match(t.NAMES),this.state=5598,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BINARY:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:this.state=5592,this.charsetName(),this.state=5595,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=5593,this.match(t.COLLATE),this.state=5594,this.collationName());break;case t.DEFAULT:this.state=5597,this.match(t.DEFAULT);break;default:throw new he(this)}break;case 4:s=new md(s),this.enterOuterAlt(s,4),this.state=5600,this.setPasswordStatement();break;case 5:s=new Md(s),this.enterOuterAlt(s,5),this.state=5601,this.setTransactionStatement();break;case 6:s=new Dd(s),this.enterOuterAlt(s,6),this.state=5602,this.setAutocommitStatement();break;case 7:for(s=new pd(s),this.enterOuterAlt(s,7),this.state=5603,this.match(t.SET),this.state=5604,this.fullId(),this.state=5605,e=this.tokenStream.LA(1),1108===e||1124===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5606,this.expression(0),this.state=5614,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5607,this.match(t.COMMA),this.state=5608,this.fullId(),this.state=5609,e=this.tokenStream.LA(1),1108===e||1124===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5610,this.expression(0),this.state=5616,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}showStatement(){let e,s=new xd(this.context,this.state);this.enterRule(s,492,t.RULE_showStatement);try{switch(this.state=5780,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,823,this.context)){case 1:s=new Xd(s),this.enterOuterAlt(s,1),this.state=5619,this.match(t.SHOW),this.state=5620,s._logFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),226===e||477===e?(this.errorHandler.reportMatch(this),this.consume()):s._logFormat=this.errorHandler.recoverInline(this),this.state=5621,this.match(t.LOGS);break;case 2:if(s=new Wd(s),this.enterOuterAlt(s,2),this.state=5622,this.match(t.SHOW),this.state=5623,s._logFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),345===e||577===e?(this.errorHandler.reportMatch(this),this.consume()):s._logFormat=this.errorHandler.recoverInline(this),this.state=5624,this.match(t.EVENTS),this.state=5627,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=5625,this.match(t.IN),this.state=5626,s._filename=this.match(t.STRING_LITERAL)),this.state=5631,this.errorHandler.sync(this),e=this.tokenStream.LA(1),68===e&&(this.state=5629,this.match(t.FROM),this.state=5630,s._fromPosition=this.decimalLiteral()),this.state=5640,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e){if(1===(this.state=5633,this.match(t.LIMIT),this.state=5637,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,803,this.context)))this.state=5634,s._offset=this.decimalLiteral(),this.state=5635,this.match(t.COMMA);this.state=5639,s._rowCount=this.decimalLiteral()}break;case 3:s=new yd(s),this.enterOuterAlt(s,3),this.state=5642,this.match(t.SHOW),this.state=5643,this.showCommonEntity(),this.state=5645,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(98===e||190===e)&&(this.state=5644,this.showFilter());break;case 4:s=new qd(s),this.enterOuterAlt(s,4),this.state=5647,this.match(t.SHOW),this.state=5649,this.errorHandler.sync(this),e=this.tokenStream.LA(1),436===e&&(this.state=5648,this.match(t.FULL)),this.state=5651,s._columnsFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),365===e||427===e?(this.errorHandler.reportMatch(this),this.consume()):s._columnsFormat=this.errorHandler.recoverInline(this),this.state=5652,s._tableFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):s._tableFormat=this.errorHandler.recoverInline(this),this.state=5653,this.tableName(),this.state=5656,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(68===e||80===e)&&(this.state=5654,s._schemaFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):s._schemaFormat=this.errorHandler.recoverInline(this),this.state=5655,this.uid()),this.state=5659,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(98===e||190===e)&&(this.state=5658,this.showFilter());break;case 5:if(s=new fd(s),this.enterOuterAlt(s,5),1===(this.state=5661,this.match(t.SHOW),this.state=5662,this.match(t.CREATE),this.state=5663,s._schemaFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),39===e||150===e?(this.errorHandler.reportMatch(this),this.consume()):s._schemaFormat=this.errorHandler.recoverInline(this),this.state=5665,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,809,this.context)))this.state=5664,this.ifNotExists();this.state=5667,this.databaseName();break;case 6:s=new Gd(s),this.enterOuterAlt(s,6),this.state=5668,this.match(t.SHOW),this.state=5669,this.match(t.CREATE),this.state=5670,s._namedEntity=this.tokenStream.LT(1),e=this.tokenStream.LA(1),131===e||415===e||437===e?(this.errorHandler.reportMatch(this),this.consume()):s._namedEntity=this.errorHandler.recoverInline(this),this.state=5671,this.fullId();break;case 7:s=new jd(s),this.enterOuterAlt(s,7),this.state=5672,this.match(t.SHOW),this.state=5673,this.match(t.CREATE),this.state=5674,e=this.tokenStream.LA(1),172===e||671===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5675,this.tableName();break;case 8:s=new Vd(s),this.enterOuterAlt(s,8),this.state=5676,this.match(t.SHOW),this.state=5677,this.match(t.CREATE),this.state=5678,this.match(t.TRIGGER),this.state=5679,this.triggerName();break;case 9:s=new Fd(s),this.enterOuterAlt(s,9),this.state=5680,this.match(t.SHOW),this.state=5681,this.match(t.CREATE),this.state=5682,this.match(t.USER),this.state=5683,this.userName();break;case 10:s=new Yd(s),this.enterOuterAlt(s,10),this.state=5684,this.match(t.SHOW),this.state=5685,this.match(t.ENGINE),this.state=5686,this.engineName(),this.state=5687,s._engineOption=this.tokenStream.LT(1),e=this.tokenStream.LA(1),513===e||634===e?(this.errorHandler.reportMatch(this),this.consume()):s._engineOption=this.errorHandler.recoverInline(this);break;case 11:s=new Hd(s),this.enterOuterAlt(s,11),this.state=5689,this.match(t.SHOW),this.state=5690,this.showGlobalInfoClause();break;case 12:if(s=new vd(s),this.enterOuterAlt(s,12),this.state=5691,this.match(t.SHOW),this.state=5692,s._errorFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),412===e||675===e?(this.errorHandler.reportMatch(this),this.consume()):s._errorFormat=this.errorHandler.recoverInline(this),this.state=5700,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e){if(1===(this.state=5693,this.match(t.LIMIT),this.state=5697,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,810,this.context)))this.state=5694,s._offset=this.decimalLiteral(),this.state=5695,this.match(t.COMMA);this.state=5699,s._rowCount=this.decimalLiteral()}break;case 13:s=new Bd(s),this.enterOuterAlt(s,13),this.state=5702,this.match(t.SHOW),this.state=5703,this.match(t.COUNT),this.state=5704,this.match(t.LR_BRACKET),this.state=5705,this.match(t.STAR),this.state=5706,this.match(t.RR_BRACKET),this.state=5707,s._errorFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),412===e||675===e?(this.errorHandler.reportMatch(this),this.consume()):s._errorFormat=this.errorHandler.recoverInline(this);break;case 14:s=new wd(s),this.enterOuterAlt(s,14),this.state=5708,this.match(t.SHOW),this.state=5709,this.showSchemaEntity(),this.state=5712,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(68===e||80===e)&&(this.state=5710,s._schemaFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):s._schemaFormat=this.errorHandler.recoverInline(this),this.state=5711,this.uid()),this.state=5715,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(98===e||190===e)&&(this.state=5714,this.showFilter());break;case 15:s=new Jd(s),this.enterOuterAlt(s,15),this.state=5717,this.match(t.SHOW),this.state=5718,s._routine=this.tokenStream.LT(1),e=this.tokenStream.LA(1),131===e||437===e?(this.errorHandler.reportMatch(this),this.consume()):s._routine=this.errorHandler.recoverInline(this),this.state=5719,this.match(t.CODE),this.state=5720,this.fullId();break;case 16:s=new Kd(s),this.enterOuterAlt(s,16),this.state=5721,this.match(t.SHOW),this.state=5722,this.match(t.GRANTS),this.state=5725,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=5723,this.match(t.FOR),this.state=5724,this.userName());break;case 17:s=new bd(s),this.enterOuterAlt(s,17),this.state=5727,this.match(t.SHOW),this.state=5728,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||92===e||452===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this),this.state=5729,s._tableFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):s._tableFormat=this.errorHandler.recoverInline(this),this.state=5730,this.tableName(),this.state=5733,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(68===e||80===e)&&(this.state=5731,s._schemaFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):s._schemaFormat=this.errorHandler.recoverInline(this),this.state=5732,this.uid()),this.state=5737,this.errorHandler.sync(this),e=this.tokenStream.LA(1),190===e&&(this.state=5735,this.match(t.WHERE),this.state=5736,this.expression(0));break;case 18:s=new kd(s),this.enterOuterAlt(s,18),this.state=5739,this.match(t.SHOW),this.state=5740,this.match(t.OPEN),this.state=5741,this.match(t.TABLES),this.state=5744,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(68===e||80===e)&&(this.state=5742,s._schemaFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):s._schemaFormat=this.errorHandler.recoverInline(this),this.state=5743,this.uid()),this.state=5747,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(98===e||190===e)&&(this.state=5746,this.showFilter());break;case 19:for(s=new Zd(s),this.enterOuterAlt(s,19),this.state=5749,this.match(t.SHOW),this.state=5750,this.match(t.PROFILE),this.state=5751,this.showProfileType(),this.state=5756,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5752,this.match(t.COMMA),this.state=5753,this.showProfileType(),this.state=5758,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=5762,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=5759,this.match(t.FOR),this.state=5760,this.match(t.QUERY),this.state=5761,s._queryCount=this.decimalLiteral()),1===(this.state=5764,this.match(t.LIMIT),this.state=5768,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,821,this.context)))this.state=5765,s._offset=this.decimalLiteral(),this.state=5766,this.match(t.COMMA);this.state=5770,s._rowCount=this.decimalLiteral();break;case 20:s=new Qd(s),this.enterOuterAlt(s,20),this.state=5772,this.match(t.SHOW),this.state=5773,this.match(t.SLAVE),this.state=5774,this.match(t.STATUS),this.state=5778,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=5775,this.match(t.FOR),this.state=5776,this.match(t.CHANNEL),this.state=5777,this.match(t.STRING_LITERAL))}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}variableClause(){let e,s=new zd(this.context,this.state);this.enterRule(s,494,t.RULE_variableClause);try{switch(this.state=5792,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LOCAL_ID:this.enterOuterAlt(s,1),this.state=5782,this.match(t.LOCAL_ID);break;case t.GLOBAL_ID:this.enterOuterAlt(s,2),this.state=5783,this.match(t.GLOBAL_ID);break;case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.AT_SIGN:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:if(this.enterOuterAlt(s,3),1===(this.state=5789,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,825,this.context)))this.state=5786,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1137===e&&(this.state=5784,this.match(t.AT_SIGN),this.state=5785,this.match(t.AT_SIGN)),this.state=5788,e=this.tokenStream.LA(1),439===e||474===e||609===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=5791,this.uid();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}showCommonEntity(){let e,s=new $d(this.context,this.state);this.enterRule(s,496,t.RULE_showCommonEntity);try{switch(this.state=5807,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CHARACTER:this.enterOuterAlt(s,1),this.state=5794,this.match(t.CHARACTER),this.state=5795,this.match(t.SET);break;case t.COLLATION:this.enterOuterAlt(s,2),this.state=5796,this.match(t.COLLATION);break;case t.DATABASES:this.enterOuterAlt(s,3),this.state=5797,this.match(t.DATABASES);break;case t.SCHEMAS:this.enterOuterAlt(s,4),this.state=5798,this.match(t.SCHEMAS);break;case t.FUNCTION:this.enterOuterAlt(s,5),this.state=5799,this.match(t.FUNCTION),this.state=5800,this.match(t.STATUS);break;case t.PROCEDURE:this.enterOuterAlt(s,6),this.state=5801,this.match(t.PROCEDURE),this.state=5802,this.match(t.STATUS);break;case t.GLOBAL:case t.SESSION:case t.STATUS:case t.VARIABLES:this.enterOuterAlt(s,7),this.state=5804,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(439===e||609===e)&&(this.state=5803,e=this.tokenStream.LA(1),439===e||609===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=5806,e=this.tokenStream.LA(1),634===e||670===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}showFilter(){let e=new tU(this.context,this.state);this.enterRule(e,498,t.RULE_showFilter);try{switch(this.state=5813,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LIKE:this.enterOuterAlt(e,1),this.state=5809,this.match(t.LIKE),this.state=5810,this.match(t.STRING_LITERAL);break;case t.WHERE:this.enterOuterAlt(e,2),this.state=5811,this.match(t.WHERE),this.state=5812,this.expression(0);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}showGlobalInfoClause(){let e,s=new eU(this.context,this.state);this.enterRule(s,500,t.RULE_showGlobalInfoClause);try{switch(this.state=5832,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ENGINES:case t.STORAGE:this.enterOuterAlt(s,1),this.state=5816,this.errorHandler.sync(this),e=this.tokenStream.LA(1),636===e&&(this.state=5815,this.match(t.STORAGE)),this.state=5818,this.match(t.ENGINES);break;case t.MASTER:this.enterOuterAlt(s,2),this.state=5819,this.match(t.MASTER),this.state=5820,this.match(t.STATUS);break;case t.PLUGINS:this.enterOuterAlt(s,3),this.state=5821,this.match(t.PLUGINS);break;case t.PRIVILEGES:this.enterOuterAlt(s,4),this.state=5822,this.match(t.PRIVILEGES);break;case t.FULL:case t.PROCESSLIST:this.enterOuterAlt(s,5),this.state=5824,this.errorHandler.sync(this),e=this.tokenStream.LA(1),436===e&&(this.state=5823,this.match(t.FULL)),this.state=5826,this.match(t.PROCESSLIST);break;case t.PROFILES:this.enterOuterAlt(s,6),this.state=5827,this.match(t.PROFILES);break;case t.SLAVE:this.enterOuterAlt(s,7),this.state=5828,this.match(t.SLAVE),this.state=5829,this.match(t.HOSTS);break;case t.AUTHORS:this.enterOuterAlt(s,8),this.state=5830,this.match(t.AUTHORS);break;case t.CONTRIBUTORS:this.enterOuterAlt(s,9),this.state=5831,this.match(t.CONTRIBUTORS);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}showSchemaEntity(){let e,s=new sU(this.context,this.state);this.enterRule(s,502,t.RULE_showSchemaEntity);try{switch(this.state=5842,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EVENTS:this.enterOuterAlt(s,1),this.state=5834,this.match(t.EVENTS);break;case t.TABLE:this.enterOuterAlt(s,2),this.state=5835,this.match(t.TABLE),this.state=5836,this.match(t.STATUS);break;case t.FULL:case t.TABLES:this.enterOuterAlt(s,3),this.state=5838,this.errorHandler.sync(this),e=this.tokenStream.LA(1),436===e&&(this.state=5837,this.match(t.FULL)),this.state=5840,this.match(t.TABLES);break;case t.TRIGGERS:this.enterOuterAlt(s,4),this.state=5841,this.match(t.TRIGGERS);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}showProfileType(){let e=new aU(this.context,this.state);this.enterRule(e,504,t.RULE_showProfileType);try{switch(this.state=5856,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALL:this.enterOuterAlt(e,1),this.state=5844,this.match(t.ALL);break;case t.BLOCK:this.enterOuterAlt(e,2),this.state=5845,this.match(t.BLOCK),this.state=5846,this.match(t.IO);break;case t.CONTEXT:this.enterOuterAlt(e,3),this.state=5847,this.match(t.CONTEXT),this.state=5848,this.match(t.SWITCHES);break;case t.CPU:this.enterOuterAlt(e,4),this.state=5849,this.match(t.CPU);break;case t.IPC:this.enterOuterAlt(e,5),this.state=5850,this.match(t.IPC);break;case t.MEMORY:this.enterOuterAlt(e,6),this.state=5851,this.match(t.MEMORY);break;case t.PAGE:this.enterOuterAlt(e,7),this.state=5852,this.match(t.PAGE),this.state=5853,this.match(t.FAULTS);break;case t.SOURCE:this.enterOuterAlt(e,8),this.state=5854,this.match(t.SOURCE);break;case t.SWAPS:this.enterOuterAlt(e,9),this.state=5855,this.match(t.SWAPS);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}binlogStatement(){let e=new iU(this.context,this.state);this.enterRule(e,506,t.RULE_binlogStatement);try{this.enterOuterAlt(e,1),this.state=5858,this.match(t.BINLOG),this.state=5859,this.match(t.STRING_LITERAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cacheIndexStatement(){let e,s=new rU(this.context,this.state);this.enterRule(s,508,t.RULE_cacheIndexStatement);try{for(this.enterOuterAlt(s,1),this.state=5861,this.match(t.CACHE),this.state=5862,this.match(t.INDEX),this.state=5863,this.tableIndexes(),this.state=5868,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5864,this.match(t.COMMA),this.state=5865,this.tableIndexes(),this.state=5870,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=5878,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e){switch(this.state=5871,this.match(t.PARTITION),this.state=5872,this.match(t.LR_BRACKET),this.state=5875,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=5873,this.uidList();break;case t.ALL:this.state=5874,this.match(t.ALL);break;default:throw new he(this)}this.state=5877,this.match(t.RR_BRACKET)}this.state=5880,this.match(t.IN),this.state=5881,s._schema=this.uid()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}flushStatement(){let e,s=new cU(this.context,this.state);this.enterRule(s,510,t.RULE_flushStatement);try{for(this.enterOuterAlt(s,1),this.state=5883,this.match(t.FLUSH),this.state=5885,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||474===e)&&(this.state=5884,s._flushFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),115===e||474===e?(this.errorHandler.reportMatch(this),this.consume()):s._flushFormat=this.errorHandler.recoverInline(this)),this.state=5887,this.flushOption(),this.state=5892,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5888,this.match(t.COMMA),this.state=5889,this.flushOption(),this.state=5894,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}killStatement(){let e,s=new nU(this.context,this.state);this.enterRule(s,512,t.RULE_killStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=5895,this.match(t.KILL),this.state=5897,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,841,this.context)))this.state=5896,s._connectionFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),376===e||567===e?(this.errorHandler.reportMatch(this),this.consume()):s._connectionFormat=this.errorHandler.recoverInline(this);this.state=5899,this.expression(0)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}loadIndexIntoCache(){let e,s=new hU(this.context,this.state);this.enterRule(s,514,t.RULE_loadIndexIntoCache);try{for(this.enterOuterAlt(s,1),this.state=5901,this.match(t.LOAD),this.state=5902,this.match(t.INDEX),this.state=5903,this.match(t.INTO),this.state=5904,this.match(t.CACHE),this.state=5905,this.loadedTableIndexes(),this.state=5910,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=5906,this.match(t.COMMA),this.state=5907,this.loadedTableIndexes(),this.state=5912,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}resetStatement(){let e=new EU(this.context,this.state);this.enterRule(e,516,t.RULE_resetStatement);try{this.enterOuterAlt(e,1),this.state=5913,this.match(t.RESET),this.state=5914,this.match(t.QUERY),this.state=5915,this.match(t.CACHE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}shutdownStatement(){let e=new TU(this.context,this.state);this.enterRule(e,518,t.RULE_shutdownStatement);try{this.enterOuterAlt(e,1),this.state=5917,this.match(t.SHUTDOWN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableIndexes(){let e,s=new oU(this.context,this.state);this.enterRule(s,520,t.RULE_tableIndexes);try{this.enterOuterAlt(s,1),this.state=5919,this.tableName(),this.state=5927,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e||1133===e)&&(this.state=5921,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e)&&(this.state=5920,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this)),this.state=5923,this.match(t.LR_BRACKET),this.state=5924,this.indexNameList(),this.state=5925,this.match(t.RR_BRACKET))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}flushOption(){let e,s=new RU(this.context,this.state);this.enterRule(s,522,t.RULE_flushOption);try{switch(this.state=5961,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,851,this.context)){case 1:switch(s=new lU(s),this.enterOuterAlt(s,1),this.state=5947,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DES_KEY_FILE:this.state=5929,this.match(t.DES_KEY_FILE);break;case t.HOSTS:this.state=5930,this.match(t.HOSTS);break;case t.BINARY:case t.ENGINE:case t.ERROR:case t.GENERAL:case t.LOGS:case t.RELAY:case t.SLOW:this.state=5932,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(226===e||!(e-409&-32)&&1<<e-409&536870917||574===e||615===e)&&(this.state=5931,e=this.tokenStream.LA(1),226===e||!(e-409&-32)&&1<<e-409&536870917||574===e||615===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=5934,this.match(t.LOGS);break;case t.OPTIMIZER_COSTS:this.state=5935,this.match(t.OPTIMIZER_COSTS);break;case t.PRIVILEGES:this.state=5936,this.match(t.PRIVILEGES);break;case t.QUERY:this.state=5937,this.match(t.QUERY),this.state=5938,this.match(t.CACHE);break;case t.STATUS:this.state=5939,this.match(t.STATUS);break;case t.USER_RESOURCES:this.state=5940,this.match(t.USER_RESOURCES);break;case t.TABLES:this.state=5941,this.match(t.TABLES),this.state=5945,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=5942,this.match(t.WITH),this.state=5943,this.match(t.READ),this.state=5944,this.match(t.LOCK));break;default:throw new he(this)}break;case 2:s=new SU(s),this.enterOuterAlt(s,2),this.state=5949,this.match(t.RELAY),this.state=5950,this.match(t.LOGS),this.state=5952,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e&&(this.state=5951,this.channelOption());break;case 3:s=new AU(s),this.enterOuterAlt(s,3),this.state=5954,e=this.tokenStream.LA(1),172===e||742===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=5956,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028437||!(e-73&-32)&&1<<e-73&18878545||!(e-117&-32)&&1<<e-117&2172657809||!(e-150&-32)&&1<<e-150&262401||!(e-217&-32)&&1<<e-217&5374495||!(e-251&-32)&&1<<e-251&4294967295||!(e-283&-32)&&1<<e-283&4294967295||!(e-315&-32)&&1<<e-315&4294967231||!(e-347&-32)&&1<<e-347&4294967295||!(e-379&-32)&&1<<e-379&4127195007||!(e-411&-32)&&1<<e-411&4290772991||!(e-443&-32)&&1<<e-443&4294967039||!(e-475&-32)&&1<<e-475&4294967295||!(e-507&-32)&&1<<e-507&4294017023||!(e-539&-32)&&1<<e-539&4293918527||!(e-571&-32)&&1<<e-571&4290248703||!(e-603&-32)&&1<<e-603&4294967279||!(e-635&-32)&&1<<e-635&4294967291||!(e-667&-32)&&1<<e-667&2147417599||!(e-699&-32)&&1<<e-699&4293672959||!(e-731&-32)&&1<<e-731&4294967279||!(e-763&-32)&&1<<e-763&4294967295||!(e-795&-32)&&1<<e-795&4294965759||!(e-827&-32)&&1<<e-827&4294967295||!(e-859&-32)&&1<<e-859&4294967295||!(e-891&-32)&&1<<e-891&4294967295||!(e-923&-32)&&1<<e-923&4294967295||!(e-955&-32)&&1<<e-955&4294967295||!(e-987&-32)&&1<<e-987&4294967295||!(e-1019&-32)&&1<<e-1019&4294967295||!(e-1051&-32)&&1<<e-1051&4294967295||!(e-1083&-32)&&1<<e-1083&33554431||!(e-1123&-32)&&1<<e-1123&37748737||1156===e)&&(this.state=5955,this.tables()),this.state=5959,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(65===e||192===e)&&(this.state=5958,this.flushTableOption())}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}flushTableOption(){let e=new OU(this.context,this.state);this.enterRule(e,524,t.RULE_flushTableOption);try{switch(this.state=5968,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITH:this.enterOuterAlt(e,1),this.state=5963,this.match(t.WITH),this.state=5964,this.match(t.READ),this.state=5965,this.match(t.LOCK);break;case t.FOR:this.enterOuterAlt(e,2),this.state=5966,this.match(t.FOR),this.state=5967,this.match(t.EXPORT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}loadedTableIndexes(){let e,s=new IU(this.context,this.state);this.enterRule(s,526,t.RULE_loadedTableIndexes);try{if(this.enterOuterAlt(s,1),this.state=5970,this.tableName(),this.state=5978,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e){switch(this.state=5971,this.match(t.PARTITION),this.state=5972,this.match(t.LR_BRACKET),this.state=5975,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=5973,s._partitionList=this.uidList();break;case t.ALL:this.state=5974,this.match(t.ALL);break;default:throw new he(this)}this.state=5977,this.match(t.RR_BRACKET)}this.state=5987,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e||1133===e)&&(this.state=5981,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||91===e)&&(this.state=5980,s._indexFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),81===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):s._indexFormat=this.errorHandler.recoverInline(this)),this.state=5983,this.match(t.LR_BRACKET),this.state=5984,this.indexNameList(),this.state=5985,this.match(t.RR_BRACKET)),this.state=5991,this.errorHandler.sync(this),e=this.tokenStream.LA(1),78===e&&(this.state=5989,this.match(t.IGNORE),this.state=5990,this.match(t.LEAVES))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simpleDescribeStatement(){let e,s=new uU(this.context,this.state);this.enterRule(s,528,t.RULE_simpleDescribeStatement);try{switch(this.enterOuterAlt(s,1),this.state=5993,s._command=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-45&-32)&&1<<e-45&131075?(this.errorHandler.reportMatch(this),this.consume()):s._command=this.errorHandler.recoverInline(this),this.state=5994,this.tableName(),this.state=5997,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,858,this.context)){case 1:this.state=5995,s._column=this.uid();break;case 2:this.state=5996,s._pattern=this.match(t.STRING_LITERAL)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}fullDescribeStatement(){let e,s=new NU(this.context,this.state);this.enterRule(s,530,t.RULE_fullDescribeStatement);try{this.enterOuterAlt(s,1),this.state=5999,s._command=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-45&-32)&&1<<e-45&131075?(this.errorHandler.reportMatch(this),this.consume()):s._command=this.errorHandler.recoverInline(this),this.state=6003,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(422===e||550===e||885===e)&&(this.state=6e3,s._formatType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),422===e||550===e||885===e?(this.errorHandler.reportMatch(this),this.consume()):s._formatType=this.errorHandler.recoverInline(this),this.state=6001,this.match(t.EQUAL_SYMBOL),this.state=6002,s._formatValue=this.tokenStream.LT(1),e=this.tokenStream.LA(1),466===e||652===e?(this.errorHandler.reportMatch(this),this.consume()):s._formatValue=this.errorHandler.recoverInline(this)),this.state=6005,this.describeObjectClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}helpStatement(){let e=new LU(this.context,this.state);this.enterRule(e,532,t.RULE_helpStatement);try{this.enterOuterAlt(e,1),this.state=6007,this.match(t.HELP),this.state=6008,this.match(t.STRING_LITERAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}useStatement(){let e=new CU(this.context,this.state);this.enterRule(e,534,t.RULE_useStatement);try{this.enterOuterAlt(e,1),this.state=6010,this.match(t.USE),this.state=6011,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}signalStatement(){let e,s=new _U(this.context,this.state);this.enterRule(s,536,t.RULE_signalStatement);try{switch(this.enterOuterAlt(s,1),this.state=6013,this.match(t.SIGNAL),this.state=6021,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SQLSTATE:this.state=6014,this.match(t.SQLSTATE),this.state=6016,this.errorHandler.sync(this),e=this.tokenStream.LA(1),669===e&&(this.state=6015,this.match(t.VALUE)),this.state=6018,this.stringLiteral();break;case t.ID:this.state=6019,this.match(t.ID);break;case t.REVERSE_QUOTE_ID:this.state=6020,this.match(t.REVERSE_QUOTE_ID);break;default:throw new he(this)}if(this.state=6032,this.errorHandler.sync(this),e=this.tokenStream.LA(1),153===e)for(this.state=6023,this.match(t.SET),this.state=6024,this.signalConditionInformation(),this.state=6029,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6025,this.match(t.COMMA),this.state=6026,this.signalConditionInformation(),this.state=6031,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}resignalStatement(){let e,s=new PU(this.context,this.state);this.enterRule(s,538,t.RULE_resignalStatement);try{switch(this.enterOuterAlt(s,1),this.state=6034,this.match(t.RESIGNAL),this.state=6042,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SQLSTATE:this.state=6035,this.match(t.SQLSTATE),this.state=6037,this.errorHandler.sync(this),e=this.tokenStream.LA(1),669===e&&(this.state=6036,this.match(t.VALUE)),this.state=6039,this.stringLiteral();break;case t.ID:this.state=6040,this.match(t.ID);break;case t.REVERSE_QUOTE_ID:this.state=6041,this.match(t.REVERSE_QUOTE_ID);case t.EOF:case t.SET:case t.SEMI:}if(this.state=6053,this.errorHandler.sync(this),e=this.tokenStream.LA(1),153===e)for(this.state=6044,this.match(t.SET),this.state=6045,this.signalConditionInformation(),this.state=6050,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6046,this.match(t.COMMA),this.state=6047,this.signalConditionInformation(),this.state=6052,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}signalConditionInformation(){let e,s=new MU(this.context,this.state);this.enterRule(s,540,t.RULE_signalConditionInformation);try{switch(this.enterOuterAlt(s,1),this.state=6055,e=this.tokenStream.LA(1),!(e-359&-32)&&1<<e-359&272105729||507===e||515===e||639===e||646===e||836===e||1005===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6056,this.match(t.EQUAL_SYMBOL),this.state=6061,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.START_NATIONAL_STRING_LITERAL:case t.STRING_LITERAL:case t.STRING_CHARSET_NAME:this.state=6057,this.stringLiteral();break;case t.DECIMAL_LITERAL:this.state=6058,this.match(t.DECIMAL_LITERAL);break;case t.LOCAL_ID:case t.GLOBAL_ID:this.state=6059,this.mysqlVariable();break;case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.ID:this.state=6060,this.simpleId();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}withStatement(){let e,s=new dU(this.context,this.state);this.enterRule(s,542,t.RULE_withStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=6063,this.match(t.WITH),this.state=6065,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,869,this.context)))this.state=6064,this.match(t.RECURSIVE);for(this.state=6067,this.commonTableExpressions(),this.state=6072,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6068,this.match(t.COMMA),this.state=6069,this.commonTableExpressions(),this.state=6074,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableStatement(){let e,s=new UU(this.context,this.state);this.enterRule(s,544,t.RULE_tableStatement);try{this.enterOuterAlt(s,1),this.state=6075,this.match(t.TABLE),this.state=6076,this.tableName(),this.state=6078,this.errorHandler.sync(this),e=this.tokenStream.LA(1),124===e&&(this.state=6077,this.orderByClause()),this.state=6081,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=6080,this.limitClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}diagnosticsStatement(){let e,s=new mU(this.context,this.state);this.enterRule(s,546,t.RULE_diagnosticsStatement);try{switch(this.enterOuterAlt(s,1),this.state=6083,this.match(t.GET),this.state=6085,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(35===e||168===e)&&(this.state=6084,e=this.tokenStream.LA(1),35===e||168===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=6087,this.match(t.DIAGNOSTICS),this.state=6119,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,877,this.context)){case 1:for(this.state=6088,this.variableClause(),this.state=6089,this.match(t.EQUAL_SYMBOL),this.state=6090,e=this.tokenStream.LA(1),117===e||996===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6098,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6091,this.match(t.COMMA),this.state=6092,this.variableClause(),this.state=6093,this.match(t.EQUAL_SYMBOL),this.state=6094,e=this.tokenStream.LA(1),117===e||996===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6100,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:switch(this.state=6101,this.match(t.CONDITION),this.state=6104,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.state=6102,this.decimalLiteral();break;case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.AT_SIGN:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:case t.LOCAL_ID:case t.GLOBAL_ID:this.state=6103,this.variableClause();break;default:throw new he(this)}for(this.state=6106,this.variableClause(),this.state=6107,this.match(t.EQUAL_SYMBOL),this.state=6108,this.diagnosticsConditionInformationName(),this.state=6116,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6109,this.match(t.COMMA),this.state=6110,this.variableClause(),this.state=6111,this.match(t.EQUAL_SYMBOL),this.state=6112,this.diagnosticsConditionInformationName(),this.state=6118,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}diagnosticsConditionInformationName(){let e,s=new DU(this.context,this.state);this.enterRule(s,548,t.RULE_diagnosticsConditionInformationName);try{this.enterOuterAlt(s,1),this.state=6121,e=this.tokenStream.LA(1),!(e-359&-32)&&1<<e-359&272105729||507===e||515===e||592===e||639===e||646===e||836===e||1005===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}describeObjectClause(){let e=new pU(this.context,this.state);this.enterRule(e,550,t.RULE_describeObjectClause);try{switch(this.state=6133,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DELETE:case t.INSERT:case t.REPLACE:case t.SELECT:case t.UPDATE:case t.LR_BRACKET:switch(e=new gU(e),this.enterOuterAlt(e,1),this.state=6128,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:case t.LR_BRACKET:this.state=6123,this.selectStatement();break;case t.DELETE:this.state=6124,this.deleteStatement();break;case t.INSERT:this.state=6125,this.insertStatement();break;case t.REPLACE:this.state=6126,this.replaceStatement();break;case t.UPDATE:this.state=6127,this.updateStatement();break;default:throw new he(this)}break;case t.FOR:e=new xU(e),this.enterOuterAlt(e,2),this.state=6130,this.match(t.FOR),this.state=6131,this.match(t.CONNECTION),this.state=6132,this.uid();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fullId(){let e=new kU(this.context,this.state);this.enterRule(e,552,t.RULE_fullId);try{switch(this.enterOuterAlt(e,1),this.state=6135,this.uid(),this.state=6139,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,880,this.context)){case 1:this.state=6136,this.match(t.DOT_ID);break;case 2:this.state=6137,this.match(t.DOT),this.state=6138,this.uid()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableName(){let e=new HU(this.context,this.state);this.enterRule(e,554,t.RULE_tableName);try{this.enterOuterAlt(e,1),this.state=6141,this.fullId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableNames(){let e,s=new GU(this.context,this.state);this.enterRule(s,556,t.RULE_tableNames);try{for(this.enterOuterAlt(s,1),this.state=6143,this.tableName(),this.state=6148,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6144,this.match(t.COMMA),this.state=6145,this.tableName(),this.state=6150,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}userOrRoleName(){let e=new FU(this.context,this.state);this.enterRule(e,558,t.RULE_userOrRoleName);try{switch(this.state=6153,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,882,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6151,this.userName();break;case 2:this.enterOuterAlt(e,2),this.state=6152,this.roleName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}userOrRoleNameList(){let e,s=new vU(this.context,this.state);this.enterRule(s,560,t.RULE_userOrRoleNameList);try{for(this.enterOuterAlt(s,1),this.state=6155,this.userOrRoleName(),this.state=6160,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6156,this.match(t.COMMA),this.state=6157,this.userOrRoleName(),this.state=6162,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}newRoleNameList(){let e,s=new BU(this.context,this.state);this.enterRule(s,562,t.RULE_newRoleNameList);try{for(this.enterOuterAlt(s,1),this.state=6163,this.newRoleName(),this.state=6168,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6164,this.match(t.COMMA),this.state=6165,this.newRoleName(),this.state=6170,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}newRoleName(){let e=new yU(this.context,this.state);this.enterRule(e,564,t.RULE_newRoleName);try{this.enterOuterAlt(e,1),this.state=6171,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}roleNameList(){let e,s=new fU(this.context,this.state);this.enterRule(s,566,t.RULE_roleNameList);try{for(this.enterOuterAlt(s,1),this.state=6173,this.roleName(),this.state=6178,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6174,this.match(t.COMMA),this.state=6175,this.roleName(),this.state=6180,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}roleName(){let e=new YU(this.context,this.state);this.enterRule(e,568,t.RULE_roleName);try{this.enterOuterAlt(e,1),this.state=6181,this.newRoleName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fullColumnName(){let e=new wU(this.context,this.state);this.enterRule(e,570,t.RULE_fullColumnName);try{switch(this.state=6197,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,890,this.context)){case 1:if(1===(this.enterOuterAlt(e,1),this.state=6183,this.uid(),this.state=6188,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,887,this.context)))if(1===(this.state=6184,this.dottedId(),this.state=6186,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,886,this.context)))this.state=6185,this.dottedId();break;case 2:if(this.enterOuterAlt(e,2),1===(this.state=6191,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,888,this.context)))this.state=6190,this.matchWildcard();if(1===(this.state=6193,this.dottedId(),this.state=6195,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,889,this.context)))this.state=6194,this.dottedId()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}databaseName(){let e=new bU(this.context,this.state);this.enterRule(e,572,t.RULE_databaseName);try{this.enterOuterAlt(e,1),this.state=6199,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexName(){let e=new WU(this.context,this.state);this.enterRule(e,574,t.RULE_indexName);try{this.enterOuterAlt(e,1),this.state=6201,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}constraintName(){let e=new VU(this.context,this.state);this.enterRule(e,576,t.RULE_constraintName);try{this.enterOuterAlt(e,1),this.state=6203,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}triggerName(){let e=new XU(this.context,this.state);this.enterRule(e,578,t.RULE_triggerName);try{this.enterOuterAlt(e,1),this.state=6205,this.fullId()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexNameList(){let e,s=new KU(this.context,this.state);this.enterRule(s,580,t.RULE_indexNameList);try{for(this.enterOuterAlt(s,1),this.state=6207,this.indexName(),this.state=6212,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6208,this.match(t.COMMA),this.state=6209,this.indexName(),this.state=6214,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}indexColumnName(){let e,s=new QU(this.context,this.state);this.enterRule(s,582,t.RULE_indexColumnName);try{switch(this.enterOuterAlt(s,1),this.state=6226,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,894,this.context)){case 1:switch(this.state=6217,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,892,this.context)){case 1:this.state=6215,this.uid();break;case 2:this.state=6216,this.match(t.STRING_LITERAL)}this.state=6223,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=6219,this.match(t.LR_BRACKET),this.state=6220,this.decimalLiteral(),this.state=6221,this.match(t.RR_BRACKET));break;case 2:this.state=6225,this.expression(0)}this.state=6229,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(13===e||45===e)&&(this.state=6228,s._sortType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),13===e||45===e?(this.errorHandler.reportMatch(this),this.consume()):s._sortType=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simpleUserName(){let e=new JU(this.context,this.state);this.enterRule(e,584,t.RULE_simpleUserName);try{switch(this.state=6235,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,896,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6231,this.match(t.STRING_LITERAL);break;case 2:this.enterOuterAlt(e,2),this.state=6232,this.match(t.ID);break;case 3:this.enterOuterAlt(e,3),this.state=6233,this.match(t.ADMIN);break;case 4:this.enterOuterAlt(e,4),this.state=6234,this.keywordsCanBeId()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}hostName(){let e,s=new ZU(this.context,this.state);this.enterRule(s,586,t.RULE_hostName);try{this.enterOuterAlt(s,1),this.state=6237,e=this.tokenStream.LA(1),!(e-1137&-32)&&1<<e-1137&6291457?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}userNameList(){let e,s=new qU(this.context,this.state);this.enterRule(s,588,t.RULE_userNameList);try{for(this.enterOuterAlt(s,1),this.state=6239,this.userName(),this.state=6244,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6240,this.match(t.COMMA),this.state=6241,this.userName(),this.state=6246,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}newUserName(){let e=new jU(this.context,this.state);this.enterRule(e,590,t.RULE_newUserName);try{switch(this.state=6252,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,898,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6247,this.simpleUserName();break;case 2:this.enterOuterAlt(e,2),this.state=6248,this.simpleUserName(),this.state=6249,this.hostName();break;case 3:this.enterOuterAlt(e,3),this.state=6251,this.currentUserExpression()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}userName(){let e=new zU(this.context,this.state);this.enterRule(e,592,t.RULE_userName);try{this.enterOuterAlt(e,1),this.state=6254,this.newUserName()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}mysqlVariable(){let e,s=new $U(this.context,this.state);this.enterRule(s,594,t.RULE_mysqlVariable);try{this.enterOuterAlt(s,1),this.state=6256,e=this.tokenStream.LA(1),1159===e||1160===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}charsetName(){let e=new tm(this.context,this.state);this.enterRule(e,596,t.RULE_charsetName);try{switch(this.state=6262,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,899,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6258,this.match(t.BINARY);break;case 2:this.enterOuterAlt(e,2),this.state=6259,this.charsetNameBase();break;case 3:this.enterOuterAlt(e,3),this.state=6260,this.match(t.STRING_LITERAL);break;case 4:this.enterOuterAlt(e,4),this.state=6261,this.match(t.CHARSET_REVERSE_QOUTE_STRING)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}collationName(){let e=new em(this.context,this.state);this.enterRule(e,598,t.RULE_collationName);try{switch(this.state=6266,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,900,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6264,this.uid();break;case 2:this.enterOuterAlt(e,2),this.state=6265,this.match(t.STRING_LITERAL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}engineName(){let e=new sm(this.context,this.state);this.enterRule(e,600,t.RULE_engineName);try{switch(this.state=6271,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONNECT:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:this.enterOuterAlt(e,1),this.state=6268,this.engineNameBase();break;case t.ID:this.enterOuterAlt(e,2),this.state=6269,this.match(t.ID);break;case t.STRING_LITERAL:this.enterOuterAlt(e,3),this.state=6270,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}engineNameBase(){let e,s=new am(this.context,this.state);this.enterRule(s,602,t.RULE_engineNameBase);try{this.enterOuterAlt(s,1),this.state=6273,e=this.tokenStream.LA(1),375===e||!(e-787&-32)&&1<<e-787&4095?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}uuidSet(){let e,s=new im(this.context,this.state);this.enterRule(s,604,t.RULE_uuidSet);try{this.enterOuterAlt(s,1),this.state=6275,this.decimalLiteral(),this.state=6276,this.match(t.MINUS),this.state=6277,this.decimalLiteral(),this.state=6278,this.match(t.MINUS),this.state=6279,this.decimalLiteral(),this.state=6280,this.match(t.MINUS),this.state=6281,this.decimalLiteral(),this.state=6282,this.match(t.MINUS),this.state=6283,this.decimalLiteral(),this.state=6289,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=6284,this.match(t.COLON_SYMB),this.state=6285,this.decimalLiteral(),this.state=6286,this.match(t.MINUS),this.state=6287,this.decimalLiteral(),this.state=6291,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(1144===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xid(){let e,s=new rm(this.context,this.state);this.enterRule(s,606,t.RULE_xid);try{this.enterOuterAlt(s,1),this.state=6293,s._globalTableUid=this.xuidStringId(),this.state=6300,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=6294,this.match(t.COMMA),this.state=6295,s._qualifier=this.xuidStringId(),this.state=6298,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=6296,this.match(t.COMMA),this.state=6297,s._idFormat=this.decimalLiteral()))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xuidStringId(){let e,s=new cm(this.context,this.state);this.enterRule(s,608,t.RULE_xuidStringId);try{switch(this.state=6309,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_LITERAL:this.enterOuterAlt(s,1),this.state=6302,this.match(t.STRING_LITERAL);break;case t.BIT_STRING:this.enterOuterAlt(s,2),this.state=6303,this.match(t.BIT_STRING);break;case t.HEXADECIMAL_LITERAL:this.enterOuterAlt(s,3),this.state=6305,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=6304,this.match(t.HEXADECIMAL_LITERAL),this.state=6307,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(1150===e);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}authPlugin(){let e=new nm(this.context,this.state);this.enterRule(e,610,t.RULE_authPlugin);try{switch(this.state=6313,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,907,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6311,this.uid();break;case 2:this.enterOuterAlt(e,2),this.state=6312,this.match(t.STRING_LITERAL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}uid(){let e=new hm(this.context,this.state);this.enterRule(e,612,t.RULE_uid);try{switch(this.state=6318,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.ID:this.enterOuterAlt(e,1),this.state=6315,this.simpleId();break;case t.CHARSET_REVERSE_QOUTE_STRING:this.enterOuterAlt(e,2),this.state=6316,this.match(t.CHARSET_REVERSE_QOUTE_STRING);break;case t.STRING_LITERAL:this.enterOuterAlt(e,3),this.state=6317,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simpleId(){let e=new Em(this.context,this.state);this.enterRule(e,614,t.RULE_simpleId);try{switch(this.state=6329,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,909,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6320,this.match(t.ID);break;case 2:this.enterOuterAlt(e,2),this.state=6321,this.charsetNameBase();break;case 3:this.enterOuterAlt(e,3),this.state=6322,this.transactionLevelBase();break;case 4:this.enterOuterAlt(e,4),this.state=6323,this.engineNameBase();break;case 5:this.enterOuterAlt(e,5),this.state=6324,this.privilegesBase();break;case 6:this.enterOuterAlt(e,6),this.state=6325,this.intervalTypeBase();break;case 7:this.enterOuterAlt(e,7),this.state=6326,this.dataTypeBase();break;case 8:this.enterOuterAlt(e,8),this.state=6327,this.keywordsCanBeId();break;case 9:this.enterOuterAlt(e,9),this.state=6328,this.scalarFunctionName()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dottedId(){let e=new Tm(this.context,this.state);this.enterRule(e,616,t.RULE_dottedId);try{switch(this.state=6334,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOT_ID:this.enterOuterAlt(e,1),this.state=6331,this.match(t.DOT_ID);break;case t.DOT:this.enterOuterAlt(e,2),this.state=6332,this.match(t.DOT),this.state=6333,this.uid();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}decimalLiteral(){let e,s=new om(this.context,this.state);this.enterRule(s,618,t.RULE_decimalLiteral);try{this.enterOuterAlt(s,1),this.state=6336,e=this.tokenStream.LA(1),!(e-1138&-32)&&1<<e-1138&10247?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}fileSizeLiteral(){let e=new Rm(this.context,this.state);this.enterRule(e,620,t.RULE_fileSizeLiteral);try{switch(this.state=6340,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FILESIZE_LITERAL:this.enterOuterAlt(e,1),this.state=6338,this.match(t.FILESIZE_LITERAL);break;case t.ZERO_DECIMAL:case t.ONE_DECIMAL:case t.TWO_DECIMAL:case t.DECIMAL_LITERAL:case t.REAL_LITERAL:this.enterOuterAlt(e,2),this.state=6339,this.decimalLiteral();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}stringLiteral(){let e,s=new Am(this.context,this.state);this.enterRule(s,622,t.RULE_stringLiteral);try{let a;switch(this.state=6365,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,918,this.context)){case 1:switch(this.enterOuterAlt(s,1),this.state=6347,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_LITERAL:case t.STRING_CHARSET_NAME:this.state=6343,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1154===e&&(this.state=6342,this.match(t.STRING_CHARSET_NAME)),this.state=6345,this.match(t.STRING_LITERAL);break;case t.START_NATIONAL_STRING_LITERAL:this.state=6346,this.match(t.START_NATIONAL_STRING_LITERAL);break;default:throw new he(this)}this.state=6350,this.errorHandler.sync(this),a=1;do{if(1!==a)throw new he(this);this.state=6349,this.match(t.STRING_LITERAL),this.state=6352,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,914,this.context)}while(2!==a&&a!==q.INVALID_ALT_NUMBER);break;case 2:switch(this.enterOuterAlt(s,2),this.state=6359,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_LITERAL:case t.STRING_CHARSET_NAME:this.state=6355,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1154===e&&(this.state=6354,this.match(t.STRING_CHARSET_NAME)),this.state=6357,this.match(t.STRING_LITERAL);break;case t.START_NATIONAL_STRING_LITERAL:this.state=6358,this.match(t.START_NATIONAL_STRING_LITERAL);break;default:throw new he(this)}if(1===(this.state=6363,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,917,this.context)))this.state=6361,this.match(t.COLLATE),this.state=6362,this.collationName()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}booleanLiteral(){let e,s=new Sm(this.context,this.state);this.enterRule(s,624,t.RULE_booleanLiteral);try{this.enterOuterAlt(s,1),this.state=6367,e=this.tokenStream.LA(1),63===e||178===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}hexadecimalLiteral(){let e,s=new lm(this.context,this.state);this.enterRule(s,626,t.RULE_hexadecimalLiteral);try{this.enterOuterAlt(s,1),this.state=6370,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1154===e&&(this.state=6369,this.match(t.STRING_CHARSET_NAME)),this.state=6372,this.match(t.HEXADECIMAL_LITERAL)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}nullNotnull(){let e,s=new Om(this.context,this.state);this.enterRule(s,628,t.RULE_nullNotnull);try{this.enterOuterAlt(s,1),this.state=6375,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=6374,this.match(t.NOT)),this.state=6377,e=this.tokenStream.LA(1),116===e||1152===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}constant(){let e,s=new Im(this.context,this.state);this.enterRule(s,630,t.RULE_constant);try{switch(this.state=6391,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,922,this.context)){case 1:this.enterOuterAlt(s,1),this.state=6379,this.stringLiteral();break;case 2:this.enterOuterAlt(s,2),this.state=6380,this.decimalLiteral();break;case 3:this.enterOuterAlt(s,3),this.state=6381,this.match(t.MINUS),this.state=6382,this.decimalLiteral();break;case 4:this.enterOuterAlt(s,4),this.state=6383,this.hexadecimalLiteral();break;case 5:this.enterOuterAlt(s,5),this.state=6384,this.booleanLiteral();break;case 6:this.enterOuterAlt(s,6),this.state=6385,this.match(t.REAL_LITERAL);break;case 7:this.enterOuterAlt(s,7),this.state=6386,this.match(t.BIT_STRING);break;case 8:this.enterOuterAlt(s,8),this.state=6388,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=6387,this.match(t.NOT)),this.state=6390,s._nullLiteral=this.tokenStream.LT(1),e=this.tokenStream.LA(1),116===e||1152===e?(this.errorHandler.reportMatch(this),this.consume()):s._nullLiteral=this.errorHandler.recoverInline(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dataType(){let e,s=new um(this.context,this.state);this.enterRule(s,632,t.RULE_dataType);try{let a;switch(this.state=6519,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,951,this.context)){case 1:if(s=new Mm(s),this.enterOuterAlt(s,1),1===(this.state=6393,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),25===e||!(e-222&-32)&&1<<e-222&31239||518===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6395,this.errorHandler.sync(this),e=this.tokenStream.LA(1),238===e&&(this.state=6394,this.match(t.VARYING)),this.state=6398,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,924,this.context)))this.state=6397,this.lengthOneDimension();if(1===(this.state=6401,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,925,this.context)))this.state=6400,this.match(t.BINARY);if(1===(this.state=6406,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,926,this.context)))this.state=6403,this.charSet(),this.state=6404,this.charsetName();switch(this.state=6411,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,927,this.context)){case 1:this.state=6408,this.match(t.COLLATE),this.state=6409,this.collationName();break;case 2:this.state=6410,this.match(t.BINARY)}break;case 2:if(s=new _m(s),this.enterOuterAlt(s,2),1===(this.state=6413,this.match(t.NATIONAL),this.state=6414,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),25===e||222===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6415,this.match(t.VARYING),this.state=6417,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,928,this.context)))this.state=6416,this.lengthOneDimension();if(1===(this.state=6420,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,929,this.context)))this.state=6419,this.match(t.BINARY);break;case 3:if(s=new Um(s),this.enterOuterAlt(s,3),1===(this.state=6422,this.match(t.NATIONAL),this.state=6423,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),25===e||222===e||223===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6425,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,930,this.context)))this.state=6424,this.lengthOneDimension();if(1===(this.state=6428,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,931,this.context)))this.state=6427,this.match(t.BINARY);break;case 4:if(s=new Um(s),this.enterOuterAlt(s,4),1===(this.state=6430,this.match(t.NCHAR),this.state=6431,s._typeName=this.match(t.VARCHAR),this.state=6433,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,932,this.context)))this.state=6432,this.lengthOneDimension();if(1===(this.state=6436,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,933,this.context)))this.state=6435,this.match(t.BINARY);break;case 5:if(s=new Pm(s),this.enterOuterAlt(s,5),1===(this.state=6438,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-196&-32)&&1<<e-196&4095?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6440,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,934,this.context)))this.state=6439,this.lengthOneDimension();for(this.state=6445,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,935,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=6442,e=this.tokenStream.LA(1),183===e||195===e||612===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=6447,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,935,this.context);break;case 6:if(s=new Pm(s),this.enterOuterAlt(s,6),1===(this.state=6448,s._typeName=this.match(t.REAL),this.state=6450,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,936,this.context)))this.state=6449,this.lengthTwoDimension();for(this.state=6455,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,937,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=6452,e=this.tokenStream.LA(1),183===e||195===e||612===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=6457,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,937,this.context);break;case 7:if(s=new Pm(s),this.enterOuterAlt(s,7),1===(this.state=6458,s._typeName=this.match(t.DOUBLE),this.state=6460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=6459,this.match(t.PRECISION)),this.state=6463,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,939,this.context)))this.state=6462,this.lengthTwoDimension();for(this.state=6468,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,940,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=6465,e=this.tokenStream.LA(1),183===e||195===e||612===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=6470,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,940,this.context);break;case 8:if(s=new Pm(s),this.enterOuterAlt(s,8),1===(this.state=6471,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-211&-32)&&1<<e-211&63||431===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6473,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,941,this.context)))this.state=6472,this.lengthTwoOptionalDimension();for(this.state=6478,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,942,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=6475,e=this.tokenStream.LA(1),183===e||195===e||612===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=6480,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,942,this.context);break;case 9:s=new mm(s),this.enterOuterAlt(s,9),this.state=6481,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-217&-32)&&1<<e-217&4237313||348===e||349===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this);break;case 10:if(1===(s=new Pm(s),this.enterOuterAlt(s,10),this.state=6482,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-218&-32)&&1<<e-218&2831||346===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6484,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,943,this.context)))this.state=6483,this.lengthOneDimension();break;case 11:if(s=new Cm(s),this.enterOuterAlt(s,11),1===(this.state=6486,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),153===e||237===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6487,this.collectionOptions(),this.state=6489,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,944,this.context)))this.state=6488,this.match(t.BINARY);if(1===(this.state=6494,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,945,this.context)))this.state=6491,this.charSet(),this.state=6492,this.charsetName();break;case 12:if(1===(s=new Nm(s),this.enterOuterAlt(s,12),this.state=6496,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),466===e||!(e-803&-32)&&1<<e-803&511?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6499,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,946,this.context)))this.state=6497,this.match(t.SRID),this.state=6498,this.decimalLiteral();break;case 13:if(s=new dm(s),this.enterOuterAlt(s,13),1===(this.state=6501,s._typeName=this.match(t.LONG),this.state=6503,this.errorHandler.sync(this),e=this.tokenStream.LA(1),223===e&&(this.state=6502,this.match(t.VARCHAR)),this.state=6506,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,948,this.context)))this.state=6505,this.match(t.BINARY);if(1===(this.state=6511,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,949,this.context)))this.state=6508,this.charSet(),this.state=6509,this.charsetName();if(1===(this.state=6515,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,950,this.context)))this.state=6513,this.match(t.COLLATE),this.state=6514,this.collationName();break;case 14:s=new Lm(s),this.enterOuterAlt(s,14),this.state=6517,this.match(t.LONG),this.state=6518,this.match(t.VARBINARY)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}collectionOptions(){let e,s=new Dm(this.context,this.state);this.enterRule(s,634,t.RULE_collectionOptions);try{for(this.enterOuterAlt(s,1),this.state=6521,this.match(t.LR_BRACKET),this.state=6522,this.match(t.STRING_LITERAL),this.state=6527,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6523,this.match(t.COMMA),this.state=6524,this.match(t.STRING_LITERAL),this.state=6529,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=6530,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}convertedDataType(){let e,s=new pm(this.context,this.state);this.enterRule(s,636,t.RULE_convertedDataType);try{switch(this.enterOuterAlt(s,1),this.state=6554,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FLOAT:case t.BINARY:case t.NCHAR:this.state=6532,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),211===e||226===e||518===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6534,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=6533,this.lengthOneDimension());break;case t.CHAR:this.state=6536,s._typeName=this.match(t.CHAR),this.state=6538,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=6537,this.lengthOneDimension()),this.state=6543,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(25===e||222===e||841===e)&&(this.state=6540,this.charSet(),this.state=6541,this.charsetName());break;case t.INT:case t.INTEGER:case t.DOUBLE:case t.DATE:case t.TIME:case t.DATETIME:case t.YEAR:case t.JSON:this.state=6545,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-200&-32)&&1<<e-200&3539521||466===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this);break;case t.DECIMAL:case t.DEC:this.state=6546,s._typeName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),214===e||215===e?(this.errorHandler.reportMatch(this),this.consume()):s._typeName=this.errorHandler.recoverInline(this),this.state=6548,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=6547,this.lengthTwoOptionalDimension());break;case t.UNSIGNED:case t.SIGNED:this.state=6550,e=this.tokenStream.LA(1),183===e||612===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6552,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(200===e||206===e)&&(this.state=6551,e=this.tokenStream.LA(1),200===e||206===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new he(this)}this.state=6557,this.errorHandler.sync(this),e=this.tokenStream.LA(1),11===e&&(this.state=6556,this.match(t.ARRAY))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lengthOneDimension(){let e=new gm(this.context,this.state);this.enterRule(e,638,t.RULE_lengthOneDimension);try{this.enterOuterAlt(e,1),this.state=6559,this.match(t.LR_BRACKET),this.state=6560,this.decimalLiteral(),this.state=6561,this.match(t.RR_BRACKET)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lengthTwoDimension(){let e=new xm(this.context,this.state);this.enterRule(e,640,t.RULE_lengthTwoDimension);try{this.enterOuterAlt(e,1),this.state=6563,this.match(t.LR_BRACKET),this.state=6564,this.decimalLiteral(),this.state=6565,this.match(t.COMMA),this.state=6566,this.decimalLiteral(),this.state=6567,this.match(t.RR_BRACKET)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}lengthTwoOptionalDimension(){let e,s=new km(this.context,this.state);this.enterRule(s,642,t.RULE_lengthTwoOptionalDimension);try{this.enterOuterAlt(s,1),this.state=6569,this.match(t.LR_BRACKET),this.state=6570,this.decimalLiteral(),this.state=6573,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=6571,this.match(t.COMMA),this.state=6572,this.decimalLiteral()),this.state=6575,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}uidList(){let e=new Hm(this.context,this.state);this.enterRule(e,644,t.RULE_uidList);try{let s;for(this.enterOuterAlt(e,1),this.state=6577,this.uid(),this.state=6582,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,961,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=6578,this.match(t.COMMA),this.state=6579,this.uid()),this.state=6584,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,961,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fullColumnNameList(){let e,s=new Gm(this.context,this.state);this.enterRule(s,646,t.RULE_fullColumnNameList);try{for(this.enterOuterAlt(s,1),this.state=6585,this.fullColumnName(),this.state=6590,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6586,this.match(t.COMMA),this.state=6587,this.fullColumnName(),this.state=6592,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tables(){let e=new Fm(this.context,this.state);this.enterRule(e,648,t.RULE_tables);try{let s;for(this.enterOuterAlt(e,1),this.state=6593,this.tableName(),this.state=6598,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,963,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=6594,this.match(t.COMMA),this.state=6595,this.tableName()),this.state=6600,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,963,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}indexColumnNames(){let e,s=new vm(this.context,this.state);this.enterRule(s,650,t.RULE_indexColumnNames);try{for(this.enterOuterAlt(s,1),this.state=6601,this.match(t.LR_BRACKET),this.state=6602,this.indexColumnName(),this.state=6607,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6603,this.match(t.COMMA),this.state=6604,this.indexColumnName(),this.state=6609,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=6610,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expressions(){let e,s=new Bm(this.context,this.state);this.enterRule(s,652,t.RULE_expressions);try{for(this.enterOuterAlt(s,1),this.state=6612,this.expression(0),this.state=6617,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6613,this.match(t.COMMA),this.state=6614,this.expression(0),this.state=6619,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expressionsWithDefaults(){let e,s=new ym(this.context,this.state);this.enterRule(s,654,t.RULE_expressionsWithDefaults);try{for(this.enterOuterAlt(s,1),this.state=6620,this.expressionOrDefault(),this.state=6625,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6621,this.match(t.COMMA),this.state=6622,this.expressionOrDefault(),this.state=6627,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}constants(){let e,s=new fm(this.context,this.state);this.enterRule(s,656,t.RULE_constants);try{for(this.enterOuterAlt(s,1),this.state=6628,this.constant(),this.state=6633,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6629,this.match(t.COMMA),this.state=6630,this.constant(),this.state=6635,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simpleStrings(){let e,s=new Ym(this.context,this.state);this.enterRule(s,658,t.RULE_simpleStrings);try{for(this.enterOuterAlt(s,1),this.state=6636,this.match(t.STRING_LITERAL),this.state=6641,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6637,this.match(t.COMMA),this.state=6638,this.match(t.STRING_LITERAL),this.state=6643,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}userVariables(){let e,s=new wm(this.context,this.state);this.enterRule(s,660,t.RULE_userVariables);try{for(this.enterOuterAlt(s,1),this.state=6644,this.match(t.LOCAL_ID),this.state=6649,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6645,this.match(t.COMMA),this.state=6646,this.match(t.LOCAL_ID),this.state=6651,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}defaultValue(){let e=new bm(this.context,this.state);this.enterRule(e,662,t.RULE_defaultValue);try{switch(this.state=6678,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,972,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6652,this.match(t.NULL_LITERAL);break;case 2:this.enterOuterAlt(e,2),this.state=6653,this.match(t.CAST),this.state=6654,this.match(t.LR_BRACKET),this.state=6655,this.expression(0),this.state=6656,this.match(t.AS),this.state=6657,this.convertedDataType(),this.state=6658,this.match(t.RR_BRACKET);break;case 3:if(this.enterOuterAlt(e,3),1===(this.state=6661,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,970,this.context)))this.state=6660,this.unaryOperator();this.state=6663,this.constant();break;case 4:if(1===(this.enterOuterAlt(e,4),this.state=6664,this.currentTimestamp(),this.state=6668,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,971,this.context)))this.state=6665,this.match(t.ON),this.state=6666,this.match(t.UPDATE),this.state=6667,this.currentTimestamp();break;case 5:this.enterOuterAlt(e,5),this.state=6670,this.match(t.LR_BRACKET),this.state=6671,this.expression(0),this.state=6672,this.match(t.RR_BRACKET);break;case 6:this.enterOuterAlt(e,6),this.state=6674,this.match(t.LR_BRACKET),this.state=6675,this.fullId(),this.state=6676,this.match(t.RR_BRACKET)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}currentTimestamp(){let e,s=new Wm(this.context,this.state);this.enterRule(s,664,t.RULE_currentTimestamp);try{switch(this.enterOuterAlt(s,1),this.state=6694,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.LOCALTIMESTAMP:this.state=6680,e=this.tokenStream.LA(1),!(e-315&-32)&&1<<e-315&131?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6686,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1133===e&&(this.state=6681,this.match(t.LR_BRACKET),this.state=6683,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-1138&-32)&&1<<e-1138&10247&&(this.state=6682,this.decimalLiteral()),this.state=6685,this.match(t.RR_BRACKET));break;case t.NOW:this.state=6688,this.match(t.NOW),this.state=6689,this.match(t.LR_BRACKET),this.state=6691,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-1138&-32)&&1<<e-1138&10247&&(this.state=6690,this.decimalLiteral()),this.state=6693,this.match(t.RR_BRACKET);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expressionOrDefault(){let e=new Vm(this.context,this.state);this.enterRule(e,666,t.RULE_expressionOrDefault);try{switch(this.state=6698,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,977,this.context)){case 1:this.enterOuterAlt(e,1),this.state=6696,this.expression(0);break;case 2:this.enterOuterAlt(e,2),this.state=6697,this.match(t.DEFAULT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ifExists(){let e=new Xm(this.context,this.state);this.enterRule(e,668,t.RULE_ifExists);try{this.enterOuterAlt(e,1),this.state=6700,this.match(t.IF),this.state=6701,this.match(t.EXISTS)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ifNotExists(){let e=new Km(this.context,this.state);this.enterRule(e,670,t.RULE_ifNotExists);try{this.enterOuterAlt(e,1),this.state=6703,this.match(t.IF),this.state=6704,this.match(t.NOT),this.state=6705,this.match(t.EXISTS)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}orReplace(){let e=new Qm(this.context,this.state);this.enterRule(e,672,t.RULE_orReplace);try{this.enterOuterAlt(e,1),this.state=6707,this.match(t.OR),this.state=6708,this.match(t.REPLACE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}waitNowaitClause(){let e=new Jm(this.context,this.state);this.enterRule(e,674,t.RULE_waitNowaitClause);try{switch(this.state=6713,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WAIT:this.enterOuterAlt(e,1),this.state=6710,this.match(t.WAIT),this.state=6711,this.decimalLiteral();break;case t.NOWAIT:this.enterOuterAlt(e,2),this.state=6712,this.match(t.NOWAIT);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}functionCall(){let e=new Zm(this.context,this.state);this.enterRule(e,676,t.RULE_functionCall);try{switch(this.state=6733,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,981,this.context)){case 1:e=new qm(e),this.enterOuterAlt(e,1),this.state=6715,this.specificFunction();break;case 2:e=new tD(e),this.enterOuterAlt(e,2),this.state=6716,this.aggregateWindowedFunction();break;case 3:e=new $m(e),this.enterOuterAlt(e,3),this.state=6717,this.nonAggregateWindowedFunction();break;case 4:if(e=new eD(e),this.enterOuterAlt(e,4),1===(this.state=6718,this.scalarFunctionName(),this.state=6719,this.match(t.LR_BRACKET),this.state=6721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,979,this.context)))this.state=6720,this.functionArgs();this.state=6723,this.match(t.RR_BRACKET);break;case 5:if(e=new zm(e),this.enterOuterAlt(e,5),1===(this.state=6725,this.fullId(),this.state=6726,this.match(t.LR_BRACKET),this.state=6728,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,980,this.context)))this.state=6727,this.functionArgs();this.state=6730,this.match(t.RR_BRACKET);break;case 6:e=new jm(e),this.enterOuterAlt(e,6),this.state=6732,this.passwordFunctionClause()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}specificFunction(){let e,s=new sD(this.context,this.state);this.enterRule(s,678,t.RULE_specificFunction);try{switch(this.state=6914,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1005,this.context)){case 1:if(1===(s=new RD(s),this.enterOuterAlt(s,1),this.state=6735,e=this.tokenStream.LA(1),150===e||!(e-313&-32)&&1<<e-313&262159?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6738,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,982,this.context)))this.state=6736,this.match(t.LR_BRACKET),this.state=6737,this.match(t.RR_BRACKET);break;case 2:s=new oD(s),this.enterOuterAlt(s,2),this.state=6740,this.currentUserExpression();break;case 3:s=new hD(s),this.enterOuterAlt(s,3),this.state=6741,this.match(t.CONVERT),this.state=6742,this.match(t.LR_BRACKET),this.state=6743,this.expression(0),this.state=6744,s._separator=this.match(t.COMMA),this.state=6745,this.convertedDataType(),this.state=6746,this.match(t.RR_BRACKET);break;case 4:s=new hD(s),this.enterOuterAlt(s,4),this.state=6748,this.match(t.CONVERT),this.state=6749,this.match(t.LR_BRACKET),this.state=6750,this.expression(0),this.state=6751,this.match(t.USING),this.state=6752,this.charsetName(),this.state=6753,this.match(t.RR_BRACKET);break;case 5:s=new hD(s),this.enterOuterAlt(s,5),this.state=6755,this.match(t.CAST),this.state=6756,this.match(t.LR_BRACKET),this.state=6757,this.expression(0),this.state=6758,this.match(t.AS),this.state=6759,this.convertedDataType(),this.state=6760,this.match(t.RR_BRACKET);break;case 6:s=new ED(s),this.enterOuterAlt(s,6),this.state=6762,this.match(t.VALUES),this.state=6763,this.match(t.LR_BRACKET),this.state=6764,this.fullColumnName(),this.state=6765,this.match(t.RR_BRACKET);break;case 7:s=new TD(s),this.enterOuterAlt(s,7),this.state=6767,this.match(t.CASE),this.state=6768,this.expression(0),this.state=6770,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=6769,this.caseFuncAlternative(),this.state=6772,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(189===e);this.state=6776,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=6774,this.match(t.ELSE),this.state=6775,s._elseArg=this.functionArg()),this.state=6778,this.match(t.END);break;case 8:s=new cD(s),this.enterOuterAlt(s,8),this.state=6780,this.match(t.CASE),this.state=6782,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=6781,this.caseFuncAlternative(),this.state=6784,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(189===e);this.state=6788,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=6786,this.match(t.ELSE),this.state=6787,s._elseArg=this.functionArg()),this.state=6790,this.match(t.END);break;case 9:s=new AD(s),this.enterOuterAlt(s,9),this.state=6792,this.match(t.CHAR),this.state=6793,this.match(t.LR_BRACKET),this.state=6794,this.functionArgs(),this.state=6797,this.errorHandler.sync(this),e=this.tokenStream.LA(1),187===e&&(this.state=6795,this.match(t.USING),this.state=6796,this.charsetName()),this.state=6799,this.match(t.RR_BRACKET);break;case 10:switch(s=new aD(s),this.enterOuterAlt(s,10),this.state=6801,this.match(t.POSITION),this.state=6802,this.match(t.LR_BRACKET),this.state=6805,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,988,this.context)){case 1:this.state=6803,s._positionString=this.stringLiteral();break;case 2:this.state=6804,s._positionExpression=this.expression(0)}switch(this.state=6807,this.match(t.IN),this.state=6810,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,989,this.context)){case 1:this.state=6808,s._inString=this.stringLiteral();break;case 2:this.state=6809,s._inExpression=this.expression(0)}this.state=6812,this.match(t.RR_BRACKET);break;case 11:switch(s=new OD(s),this.enterOuterAlt(s,11),this.state=6814,e=this.tokenStream.LA(1),325===e||326===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6815,this.match(t.LR_BRACKET),this.state=6818,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,990,this.context)){case 1:this.state=6816,s._sourceString=this.stringLiteral();break;case 2:this.state=6817,s._sourceExpression=this.expression(0)}switch(this.state=6820,this.match(t.FROM),this.state=6823,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,991,this.context)){case 1:this.state=6821,s._fromDecimal=this.decimalLiteral();break;case 2:this.state=6822,s._fromExpression=this.expression(0)}if(this.state=6830,this.errorHandler.sync(this),e=this.tokenStream.LA(1),65===e)switch(this.state=6825,this.match(t.FOR),this.state=6828,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,992,this.context)){case 1:this.state=6826,s._forDecimal=this.decimalLiteral();break;case 2:this.state=6827,s._forExpression=this.expression(0)}this.state=6832,this.match(t.RR_BRACKET);break;case 12:switch(s=new iD(s),this.enterOuterAlt(s,12),this.state=6834,this.match(t.TRIM),this.state=6835,this.match(t.LR_BRACKET),this.state=6836,s._positioinForm=this.tokenStream.LT(1),e=this.tokenStream.LA(1),17===e||95===e||176===e?(this.errorHandler.reportMatch(this),this.consume()):s._positioinForm=this.errorHandler.recoverInline(this),this.state=6839,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,994,this.context)){case 1:this.state=6837,s._sourceString=this.stringLiteral();break;case 2:this.state=6838,s._sourceExpression=this.expression(0)}switch(this.state=6841,this.match(t.FROM),this.state=6844,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,995,this.context)){case 1:this.state=6842,s._fromString=this.stringLiteral();break;case 2:this.state=6843,s._fromExpression=this.expression(0)}this.state=6846,this.match(t.RR_BRACKET);break;case 13:switch(s=new iD(s),this.enterOuterAlt(s,13),this.state=6848,this.match(t.TRIM),this.state=6849,this.match(t.LR_BRACKET),this.state=6852,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,996,this.context)){case 1:this.state=6850,s._sourceString=this.stringLiteral();break;case 2:this.state=6851,s._sourceExpression=this.expression(0)}switch(this.state=6854,this.match(t.FROM),this.state=6857,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,997,this.context)){case 1:this.state=6855,s._fromString=this.stringLiteral();break;case 2:this.state=6856,s._fromExpression=this.expression(0)}this.state=6859,this.match(t.RR_BRACKET);break;case 14:switch(s=new SD(s),this.enterOuterAlt(s,14),this.state=6861,this.match(t.WEIGHT_STRING),this.state=6862,this.match(t.LR_BRACKET),this.state=6865,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,998,this.context)){case 1:this.state=6863,this.stringLiteral();break;case 2:this.state=6864,this.expression(0)}this.state=6873,this.errorHandler.sync(this),e=this.tokenStream.LA(1),12===e&&(this.state=6867,this.match(t.AS),this.state=6868,s._stringFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),222===e||226===e?(this.errorHandler.reportMatch(this),this.consume()):s._stringFormat=this.errorHandler.recoverInline(this),this.state=6869,this.match(t.LR_BRACKET),this.state=6870,this.decimalLiteral(),this.state=6871,this.match(t.RR_BRACKET)),this.state=6876,this.errorHandler.sync(this),e=this.tokenStream.LA(1),472===e&&(this.state=6875,this.levelsInWeightString()),this.state=6878,this.match(t.RR_BRACKET);break;case 15:switch(s=new nD(s),this.enterOuterAlt(s,15),this.state=6880,this.match(t.EXTRACT),this.state=6881,this.match(t.LR_BRACKET),this.state=6882,this.intervalType(),this.state=6883,this.match(t.FROM),this.state=6886,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1001,this.context)){case 1:this.state=6884,s._sourceString=this.stringLiteral();break;case 2:this.state=6885,s._sourceExpression=this.expression(0)}this.state=6888,this.match(t.RR_BRACKET);break;case 16:s=new lD(s),this.enterOuterAlt(s,16),this.state=6890,this.match(t.GET_FORMAT),this.state=6891,this.match(t.LR_BRACKET),this.state=6892,s._datetimeFormat=this.tokenStream.LT(1),e=this.tokenStream.LA(1),!(e-217&-32)&&1<<e-217&11?(this.errorHandler.reportMatch(this),this.consume()):s._datetimeFormat=this.errorHandler.recoverInline(this),this.state=6893,this.match(t.COMMA),this.state=6894,this.stringLiteral(),this.state=6895,this.match(t.RR_BRACKET);break;case 17:if(s=new rD(s),this.enterOuterAlt(s,17),1===(this.state=6897,this.match(t.JSON_VALUE),this.state=6898,this.match(t.LR_BRACKET),this.state=6899,this.expression(0),this.state=6900,this.match(t.COMMA),this.state=6901,this.expression(0),this.state=6904,this.errorHandler.sync(this),e=this.tokenStream.LA(1),593===e&&(this.state=6902,this.match(t.RETURNING),this.state=6903,this.convertedDataType()),this.state=6907,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1003,this.context)))this.state=6906,this.jsonOnEmpty();this.state=6910,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(42===e||116===e||411===e)&&(this.state=6909,this.jsonOnError()),this.state=6912,this.match(t.RR_BRACKET)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}caseFuncAlternative(){let e=new ID(this.context,this.state);this.enterRule(e,680,t.RULE_caseFuncAlternative);try{this.enterOuterAlt(e,1),this.state=6916,this.match(t.WHEN),this.state=6917,e._condition=this.functionArg(),this.state=6918,this.match(t.THEN),this.state=6919,e._consequent=this.functionArg()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}levelsInWeightString(){let e,s=new uD(this.context,this.state);this.enterRule(s,682,t.RULE_levelsInWeightString);try{switch(this.state=6935,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1007,this.context)){case 1:for(s=new LD(s),this.enterOuterAlt(s,1),this.state=6921,this.match(t.LEVEL),this.state=6922,this.levelInWeightListElement(),this.state=6927,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6923,this.match(t.COMMA),this.state=6924,this.levelInWeightListElement(),this.state=6929,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:s=new ND(s),this.enterOuterAlt(s,2),this.state=6930,this.match(t.LEVEL),this.state=6931,s._firstLevel=this.decimalLiteral(),this.state=6932,this.match(t.MINUS),this.state=6933,s._lastLevel=this.decimalLiteral()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}levelInWeightListElement(){let e,s=new CD(this.context,this.state);this.enterRule(s,684,t.RULE_levelInWeightListElement);try{this.enterOuterAlt(s,1),this.state=6937,this.decimalLiteral(),this.state=6939,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(13===e||45===e||994===e)&&(this.state=6938,s._orderType=this.tokenStream.LT(1),e=this.tokenStream.LA(1),13===e||45===e||994===e?(this.errorHandler.reportMatch(this),this.consume()):s._orderType=this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}aggregateWindowedFunction(){let e,s=new _D(this.context,this.state);this.enterRule(s,686,t.RULE_aggregateWindowedFunction);try{switch(this.state=7e3,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AVG:case t.MAX:case t.MIN:case t.SUM:if(this.enterOuterAlt(s,1),1===(this.state=6941,e=this.tokenStream.LA(1),!(e-286&-32)&&1<<e-286&8400897?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6942,this.match(t.LR_BRACKET),this.state=6944,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1009,this.context)))this.state=6943,s._aggregator=this.tokenStream.LT(1),e=this.tokenStream.LA(1),6===e||49===e?(this.errorHandler.reportMatch(this),this.consume()):s._aggregator=this.errorHandler.recoverInline(this);if(1===(this.state=6946,this.functionArg(),this.state=6947,this.match(t.RR_BRACKET),this.state=6949,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1010,this.context)))this.state=6948,this.overClause();break;case t.COUNT:switch(this.enterOuterAlt(s,2),this.state=6951,this.match(t.COUNT),this.state=6952,this.match(t.LR_BRACKET),this.state=6960,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1012,this.context)){case 1:this.state=6953,s._starArg=this.match(t.STAR);break;case 2:if(1===(this.state=6955,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1011,this.context)))this.state=6954,s._aggregator=this.match(t.ALL);this.state=6957,this.functionArg();break;case 3:this.state=6958,s._aggregator=this.match(t.DISTINCT),this.state=6959,this.functionArgs()}if(1===(this.state=6962,this.match(t.RR_BRACKET),this.state=6964,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1013,this.context)))this.state=6963,this.overClause();break;case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:if(this.enterOuterAlt(s,3),1===(this.state=6966,e=this.tokenStream.LA(1),!(e-287&-32)&&1<<e-287&62652423?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=6967,this.match(t.LR_BRACKET),this.state=6969,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1014,this.context)))this.state=6968,s._aggregator=this.match(t.ALL);if(1===(this.state=6971,this.functionArg(),this.state=6972,this.match(t.RR_BRACKET),this.state=6974,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1015,this.context)))this.state=6973,this.overClause();break;case t.GROUP_CONCAT:if(this.enterOuterAlt(s,4),1===(this.state=6976,this.match(t.GROUP_CONCAT),this.state=6977,this.match(t.LR_BRACKET),this.state=6979,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1016,this.context)))this.state=6978,s._aggregator=this.match(t.DISTINCT);if(this.state=6981,this.functionArgs(),this.state=6992,this.errorHandler.sync(this),e=this.tokenStream.LA(1),124===e)for(this.state=6982,this.match(t.ORDER),this.state=6983,this.match(t.BY),this.state=6984,this.orderByExpression(),this.state=6989,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=6985,this.match(t.COMMA),this.state=6986,this.orderByExpression(),this.state=6991,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=6996,this.errorHandler.sync(this),e=this.tokenStream.LA(1),154===e&&(this.state=6994,this.match(t.SEPARATOR),this.state=6995,s._separator=this.match(t.STRING_LITERAL)),this.state=6998,this.match(t.RR_BRACKET);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}nonAggregateWindowedFunction(){let e,s=new PD(this.context,this.state);this.enterRule(s,688,t.RULE_nonAggregateWindowedFunction);try{switch(this.state=7040,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LAG:case t.LEAD:if(this.enterOuterAlt(s,1),1===(this.state=7002,e=this.tokenStream.LA(1),295===e||297===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=7003,this.match(t.LR_BRACKET),this.state=7004,this.expression(0),this.state=7007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1021,this.context)))this.state=7005,this.match(t.COMMA),this.state=7006,this.decimalLiteral();this.state=7011,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1135===e&&(this.state=7009,this.match(t.COMMA),this.state=7010,this.decimalLiteral()),this.state=7013,this.match(t.RR_BRACKET),this.state=7014,this.overClause();break;case t.FIRST_VALUE:case t.LAST_VALUE:this.enterOuterAlt(s,2),this.state=7016,e=this.tokenStream.LA(1),293===e||296===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=7017,this.match(t.LR_BRACKET),this.state=7018,this.expression(0),this.state=7019,this.match(t.RR_BRACKET),this.state=7020,this.overClause();break;case t.CUME_DIST:case t.DENSE_RANK:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:this.enterOuterAlt(s,3),this.state=7022,e=this.tokenStream.LA(1),!(e-291&-32)&&1<<e-291&14339?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=7023,this.match(t.LR_BRACKET),this.state=7024,this.match(t.RR_BRACKET),this.state=7025,this.overClause();break;case t.NTH_VALUE:this.enterOuterAlt(s,4),this.state=7026,this.match(t.NTH_VALUE),this.state=7027,this.match(t.LR_BRACKET),this.state=7028,this.expression(0),this.state=7029,this.match(t.COMMA),this.state=7030,this.decimalLiteral(),this.state=7031,this.match(t.RR_BRACKET),this.state=7032,this.overClause();break;case t.NTILE:this.enterOuterAlt(s,5),this.state=7034,this.match(t.NTILE),this.state=7035,this.match(t.LR_BRACKET),this.state=7036,this.decimalLiteral(),this.state=7037,this.match(t.RR_BRACKET),this.state=7038,this.overClause();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}overClause(){let e=new MD(this.context,this.state);this.enterRule(e,690,t.RULE_overClause);try{switch(this.enterOuterAlt(e,1),this.state=7042,this.match(t.OVER),this.state=7048,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LR_BRACKET:this.state=7043,this.match(t.LR_BRACKET),this.state=7044,this.windowSpec(),this.state=7045,this.match(t.RR_BRACKET);break;case t.ARRAY:case t.ATTRIBUTE:case t.BUCKETS:case t.CONDITION:case t.CURRENT:case t.CURRENT_USER:case t.DATABASE:case t.DEFAULT:case t.DIAGNOSTICS:case t.EMPTY:case t.ENFORCED:case t.EXCEPT:case t.GROUP:case t.IF:case t.IGNORED:case t.INSERT:case t.LATERAL:case t.LEFT:case t.NUMBER:case t.OPTIONAL:case t.ORDER:case t.PRIMARY:case t.REPEAT:case t.REPLACE:case t.RIGHT:case t.SCHEMA:case t.SKIP_QUERY_REWRITE:case t.STACKED:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.DATETIME:case t.YEAR:case t.BINARY:case t.TEXT:case t.ENUM:case t.SERIAL:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.NESTED:case t.ORDINALITY:case t.PATH:case t.AVG:case t.BIT_AND:case t.BIT_OR:case t.BIT_XOR:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.GROUP_CONCAT:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.MAX:case t.MIN:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.STD:case t.STDDEV:case t.STDDEV_POP:case t.STDDEV_SAMP:case t.SUM:case t.VAR_POP:case t.VAR_SAMP:case t.VARIANCE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.LOCALTIME:case t.CURDATE:case t.CURTIME:case t.DATE_ADD:case t.DATE_SUB:case t.LOCALTIMESTAMP:case t.NOW:case t.POSITION:case t.SUBSTR:case t.SUBSTRING:case t.SYSDATE:case t.TRIM:case t.UTC_DATE:case t.UTC_TIME:case t.UTC_TIMESTAMP:case t.ACCOUNT:case t.ACTION:case t.AFTER:case t.AGGREGATE:case t.ALGORITHM:case t.ANY:case t.AT:case t.AUTHORS:case t.AUTOCOMMIT:case t.AUTOEXTEND_SIZE:case t.AUTO_INCREMENT:case t.AVG_ROW_LENGTH:case t.BEGIN:case t.BINLOG:case t.BIT:case t.BLOCK:case t.BOOL:case t.BOOLEAN:case t.BTREE:case t.CACHE:case t.CASCADED:case t.CHAIN:case t.CHANGED:case t.CHANNEL:case t.CHECKSUM:case t.PAGE_CHECKSUM:case t.CIPHER:case t.CLASS_ORIGIN:case t.CLIENT:case t.CLOSE:case t.CLUSTERING:case t.COALESCE:case t.CODE:case t.COLUMNS:case t.COLUMN_FORMAT:case t.COLUMN_NAME:case t.COMMENT:case t.COMMIT:case t.COMPACT:case t.COMPLETION:case t.COMPRESSED:case t.COMPRESSION:case t.CONCURRENT:case t.CONNECT:case t.CONNECTION:case t.CONSISTENT:case t.CONSTRAINT_CATALOG:case t.CONSTRAINT_SCHEMA:case t.CONSTRAINT_NAME:case t.CONTAINS:case t.CONTEXT:case t.CONTRIBUTORS:case t.COPY:case t.CPU:case t.CURSOR_NAME:case t.DATA:case t.DATAFILE:case t.DEALLOCATE:case t.DEFAULT_AUTH:case t.DEFINER:case t.DELAY_KEY_WRITE:case t.DES_KEY_FILE:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISK:case t.DO:case t.DUMPFILE:case t.DUPLICATE:case t.DYNAMIC:case t.ENABLE:case t.ENCRYPTION:case t.END:case t.ENDS:case t.ENGINE:case t.ENGINES:case t.ERROR:case t.ERRORS:case t.ESCAPE:case t.EVEN:case t.EVENT:case t.EVENTS:case t.EVERY:case t.EXCHANGE:case t.EXCLUSIVE:case t.EXPIRE:case t.EXPORT:case t.EXTENDED:case t.EXTENT_SIZE:case t.FAILED_LOGIN_ATTEMPTS:case t.FAST:case t.FAULTS:case t.FIELDS:case t.FILE_BLOCK_SIZE:case t.FILTER:case t.FIRST:case t.FIXED:case t.FLUSH:case t.FOLLOWS:case t.FOUND:case t.FULL:case t.FUNCTION:case t.GENERAL:case t.GLOBAL:case t.GRANTS:case t.GROUP_REPLICATION:case t.HANDLER:case t.HASH:case t.HELP:case t.HISTORY:case t.HOST:case t.HOSTS:case t.IDENTIFIED:case t.IGNORE_SERVER_IDS:case t.IMPORT:case t.INDEXES:case t.INITIAL_SIZE:case t.INPLACE:case t.INSERT_METHOD:case t.INSTALL:case t.INSTANCE:case t.INSTANT:case t.INVISIBLE:case t.INVOKER:case t.IO:case t.IO_THREAD:case t.IPC:case t.ISOLATION:case t.ISSUER:case t.JSON:case t.KEY_BLOCK_SIZE:case t.LANGUAGE:case t.LAST:case t.LEAVES:case t.LESS:case t.LEVEL:case t.LIST:case t.LOCAL:case t.LOGFILE:case t.LOGS:case t.MASTER:case t.MASTER_AUTO_POSITION:case t.MASTER_CONNECT_RETRY:case t.MASTER_DELAY:case t.MASTER_HEARTBEAT_PERIOD:case t.MASTER_HOST:case t.MASTER_LOG_FILE:case t.MASTER_LOG_POS:case t.MASTER_PASSWORD:case t.MASTER_PORT:case t.MASTER_RETRY_COUNT:case t.MASTER_SSL:case t.MASTER_SSL_CA:case t.MASTER_SSL_CAPATH:case t.MASTER_SSL_CERT:case t.MASTER_SSL_CIPHER:case t.MASTER_SSL_CRL:case t.MASTER_SSL_CRLPATH:case t.MASTER_SSL_KEY:case t.MASTER_TLS_VERSION:case t.MASTER_USER:case t.MAX_CONNECTIONS_PER_HOUR:case t.MAX_QUERIES_PER_HOUR:case t.MAX_ROWS:case t.MAX_SIZE:case t.MAX_UPDATES_PER_HOUR:case t.MAX_USER_CONNECTIONS:case t.MEDIUM:case t.MEMBER:case t.MERGE:case t.MESSAGE_TEXT:case t.MID:case t.MIGRATE:case t.MIN_ROWS:case t.MODE:case t.MODIFY:case t.MUTEX:case t.MYSQL:case t.MYSQL_ERRNO:case t.NAME:case t.NAMES:case t.NCHAR:case t.NEVER:case t.NEXT:case t.NO:case t.NOCOPY:case t.NOWAIT:case t.NODEGROUP:case t.NONE:case t.ODBC:case t.OFFLINE:case t.OFFSET:case t.OF:case t.OJ:case t.OLD_PASSWORD:case t.ONE:case t.ONLINE:case t.ONLY:case t.OPEN:case t.OPTIMIZER_COSTS:case t.OPTIONS:case t.OWNER:case t.PACK_KEYS:case t.PAGE:case t.PARSER:case t.PARTIAL:case t.PARTITIONING:case t.PARTITIONS:case t.PASSWORD:case t.PASSWORD_LOCK_TIME:case t.PHASE:case t.PLUGIN:case t.PLUGIN_DIR:case t.PLUGINS:case t.PORT:case t.PRECEDES:case t.PREPARE:case t.PRESERVE:case t.PREV:case t.PROCESSLIST:case t.PROFILE:case t.PROFILES:case t.PROXY:case t.QUERY:case t.QUICK:case t.REBUILD:case t.RECOVER:case t.RECURSIVE:case t.REDO_BUFFER_SIZE:case t.REDUNDANT:case t.RELAY:case t.RELAY_LOG_FILE:case t.RELAY_LOG_POS:case t.RELAYLOG:case t.REMOVE:case t.REORGANIZE:case t.REPAIR:case t.REPLICATE_DO_DB:case t.REPLICATE_DO_TABLE:case t.REPLICATE_IGNORE_DB:case t.REPLICATE_IGNORE_TABLE:case t.REPLICATE_REWRITE_DB:case t.REPLICATE_WILD_DO_TABLE:case t.REPLICATE_WILD_IGNORE_TABLE:case t.REPLICATION:case t.RESET:case t.RESUME:case t.RETURNED_SQLSTATE:case t.RETURNS:case t.REUSE:case t.ROLE:case t.ROLLBACK:case t.ROLLUP:case t.ROTATE:case t.ROW:case t.ROWS:case t.ROW_FORMAT:case t.RTREE:case t.SAVEPOINT:case t.SCHEDULE:case t.SECURITY:case t.SERVER:case t.SESSION:case t.SHARE:case t.SHARED:case t.SIGNED:case t.SIMPLE:case t.SLAVE:case t.SLOW:case t.SNAPSHOT:case t.SOCKET:case t.SOME:case t.SONAME:case t.SOUNDS:case t.SOURCE:case t.SQL_AFTER_GTIDS:case t.SQL_AFTER_MTS_GAPS:case t.SQL_BEFORE_GTIDS:case t.SQL_BUFFER_RESULT:case t.SQL_CACHE:case t.SQL_NO_CACHE:case t.SQL_THREAD:case t.START:case t.STARTS:case t.STATS_AUTO_RECALC:case t.STATS_PERSISTENT:case t.STATS_SAMPLE_PAGES:case t.STATUS:case t.STOP:case t.STORAGE:case t.STRING:case t.SUBCLASS_ORIGIN:case t.SUBJECT:case t.SUBPARTITION:case t.SUBPARTITIONS:case t.SUSPEND:case t.SWAPS:case t.SWITCHES:case t.TABLE_NAME:case t.TABLESPACE:case t.TABLE_TYPE:case t.TEMPORARY:case t.TEMPTABLE:case t.THAN:case t.TRADITIONAL:case t.TRANSACTION:case t.TRANSACTIONAL:case t.TRIGGERS:case t.TRUNCATE:case t.UNBOUNDED:case t.UNDEFINED:case t.UNDOFILE:case t.UNDO_BUFFER_SIZE:case t.UNINSTALL:case t.UNKNOWN:case t.UNTIL:case t.UPGRADE:case t.USER:case t.USE_FRM:case t.USER_RESOURCES:case t.VALIDATION:case t.VALUE:case t.VARIABLES:case t.VIEW:case t.VIRTUAL:case t.VISIBLE:case t.WAIT:case t.WARNINGS:case t.WITHOUT:case t.WORK:case t.WRAPPER:case t.X509:case t.XA:case t.XML:case t.EUR:case t.USA:case t.JIS:case t.ISO:case t.INTERNAL:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.ADMIN:case t.AUDIT_ABORT_EXEMPT:case t.AUDIT_ADMIN:case t.AUTHENTICATION_POLICY_ADMIN:case t.BACKUP_ADMIN:case t.BINLOG_ADMIN:case t.BINLOG_ENCRYPTION_ADMIN:case t.CLONE_ADMIN:case t.CONNECTION_ADMIN:case t.ENCRYPTION_KEY_ADMIN:case t.EXECUTE:case t.FILE:case t.FIREWALL_ADMIN:case t.FIREWALL_EXEMPT:case t.FIREWALL_USER:case t.GROUP_REPLICATION_ADMIN:case t.INNODB_REDO_LOG_ARCHIVE:case t.INVOKE:case t.LAMBDA:case t.NDB_STORED_USER:case t.PASSWORDLESS_USER_ADMIN:case t.PERSIST_RO_VARIABLES_ADMIN:case t.PRIVILEGES:case t.PROCESS:case t.RELOAD:case t.REPLICATION_APPLIER:case t.REPLICATION_SLAVE_ADMIN:case t.RESOURCE_GROUP_ADMIN:case t.RESOURCE_GROUP_USER:case t.ROLE_ADMIN:case t.ROUTINE:case t.S3:case t.SESSION_VARIABLES_ADMIN:case t.SET_USER_ID:case t.SHOW_ROUTINE:case t.SHUTDOWN:case t.SUPER:case t.SYSTEM_VARIABLES_ADMIN:case t.TABLES:case t.TABLE_ENCRYPTION_ADMIN:case t.VERSION_TOKEN_ADMIN:case t.XA_RECOVER_ADMIN:case t.ARMSCII8:case t.ASCII:case t.BIG5:case t.CP1250:case t.CP1251:case t.CP1256:case t.CP1257:case t.CP850:case t.CP852:case t.CP866:case t.CP932:case t.DEC8:case t.EUCJPMS:case t.EUCKR:case t.GB18030:case t.GB2312:case t.GBK:case t.GEOSTD8:case t.GREEK:case t.HEBREW:case t.HP8:case t.KEYBCS2:case t.KOI8R:case t.KOI8U:case t.LATIN1:case t.LATIN2:case t.LATIN5:case t.LATIN7:case t.MACCE:case t.MACROMAN:case t.SJIS:case t.SWE7:case t.TIS620:case t.UCS2:case t.UJIS:case t.UTF16:case t.UTF16LE:case t.UTF32:case t.UTF8:case t.UTF8MB3:case t.UTF8MB4:case t.ARCHIVE:case t.BLACKHOLE:case t.CSV:case t.FEDERATED:case t.INNODB:case t.MEMORY:case t.MRG_MYISAM:case t.MYISAM:case t.NDB:case t.NDBCLUSTER:case t.PERFORMANCE_SCHEMA:case t.TOKUDB:case t.REPEATABLE:case t.COMMITTED:case t.UNCOMMITTED:case t.SERIALIZABLE:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CATALOG_NAME:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENGINE_ATTRIBUTE:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SECONDARY_ENGINE_ATTRIBUTE:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SCHEMA_NAME:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.TP_CONNECTION_ADMIN:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:case t.CHARSET_REVERSE_QOUTE_STRING:case t.STRING_LITERAL:case t.ID:this.state=7047,this.windowName();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowSpec(){let e,s=new dD(this.context,this.state);this.enterRule(s,692,t.RULE_windowSpec);try{if(this.enterOuterAlt(s,1),1===(this.state=7051,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1025,this.context)))this.state=7050,this.windowName();this.state=7054,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=7053,this.partitionClause()),this.state=7057,this.errorHandler.sync(this),e=this.tokenStream.LA(1),124===e&&(this.state=7056,this.orderByClause()),this.state=7060,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(133===e||601===e)&&(this.state=7059,this.frameClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}windowName(){let e=new UD(this.context,this.state);this.enterRule(e,694,t.RULE_windowName);try{this.enterOuterAlt(e,1),this.state=7062,this.uid()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}frameClause(){let e=new mD(this.context,this.state);this.enterRule(e,696,t.RULE_frameClause);try{this.enterOuterAlt(e,1),this.state=7064,this.frameUnits(),this.state=7065,this.frameExtent()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}frameUnits(){let e,s=new DD(this.context,this.state);this.enterRule(s,698,t.RULE_frameUnits);try{this.enterOuterAlt(s,1),this.state=7067,e=this.tokenStream.LA(1),133===e||601===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}frameExtent(){let e=new pD(this.context,this.state);this.enterRule(e,700,t.RULE_frameExtent);try{switch(this.state=7071,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1029,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7069,this.frameRange();break;case 2:this.enterOuterAlt(e,2),this.state=7070,this.frameBetween()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}frameBetween(){let e=new gD(this.context,this.state);this.enterRule(e,702,t.RULE_frameBetween);try{this.enterOuterAlt(e,1),this.state=7073,this.match(t.BETWEEN),this.state=7074,this.frameRange(),this.state=7075,this.match(t.AND),this.state=7076,this.frameRange()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}frameRange(){let e,s=new xD(this.context,this.state);this.enterRule(s,704,t.RULE_frameRange);try{switch(this.state=7085,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1030,this.context)){case 1:this.enterOuterAlt(s,1),this.state=7078,this.match(t.CURRENT),this.state=7079,this.match(t.ROW);break;case 2:this.enterOuterAlt(s,2),this.state=7080,this.match(t.UNBOUNDED),this.state=7081,e=this.tokenStream.LA(1),433===e||559===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case 3:this.enterOuterAlt(s,3),this.state=7082,this.expression(0),this.state=7083,e=this.tokenStream.LA(1),433===e||559===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionClause(){let e,s=new kD(this.context,this.state);this.enterRule(s,706,t.RULE_partitionClause);try{for(this.enterOuterAlt(s,1),this.state=7087,this.match(t.PARTITION),this.state=7088,this.match(t.BY),this.state=7089,this.expression(0),this.state=7094,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;)this.state=7090,this.match(t.COMMA),this.state=7091,this.expression(0),this.state=7096,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}scalarFunctionName(){let e=new HD(this.context,this.state);this.enterRule(e,708,t.RULE_scalarFunctionName);try{switch(this.state=7121,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DATABASE:case t.LEFT:case t.RIGHT:case t.SCHEMA:case t.DATE:case t.TIME:case t.TIMESTAMP:case t.YEAR:case t.JSON_ARRAY:case t.JSON_ARRAYAGG:case t.JSON_ARRAY_APPEND:case t.JSON_ARRAY_INSERT:case t.JSON_CONTAINS:case t.JSON_CONTAINS_PATH:case t.JSON_DEPTH:case t.JSON_EXTRACT:case t.JSON_INSERT:case t.JSON_KEYS:case t.JSON_LENGTH:case t.JSON_MERGE:case t.JSON_MERGE_PATCH:case t.JSON_MERGE_PRESERVE:case t.JSON_OBJECT:case t.JSON_OBJECTAGG:case t.JSON_OVERLAPS:case t.JSON_PRETTY:case t.JSON_QUOTE:case t.JSON_REMOVE:case t.JSON_REPLACE:case t.JSON_SCHEMA_VALID:case t.JSON_SCHEMA_VALIDATION_REPORT:case t.JSON_SEARCH:case t.JSON_SET:case t.JSON_STORAGE_FREE:case t.JSON_STORAGE_SIZE:case t.JSON_TABLE:case t.JSON_TYPE:case t.JSON_UNQUOTE:case t.JSON_VALID:case t.JSON_VALUE:case t.COUNT:case t.CUME_DIST:case t.DENSE_RANK:case t.FIRST_VALUE:case t.LAG:case t.LAST_VALUE:case t.LEAD:case t.NTILE:case t.NTH_VALUE:case t.PERCENT_RANK:case t.RANK:case t.ROW_NUMBER:case t.POSITION:case t.INVISIBLE:case t.VISIBLE:case t.QUARTER:case t.MONTH:case t.DAY:case t.HOUR:case t.MINUTE:case t.WEEK:case t.SECOND:case t.MICROSECOND:case t.SESSION_VARIABLES_ADMIN:case t.GEOMETRYCOLLECTION:case t.LINESTRING:case t.MULTILINESTRING:case t.MULTIPOINT:case t.MULTIPOLYGON:case t.POINT:case t.POLYGON:case t.ABS:case t.ACOS:case t.ADDDATE:case t.ADDTIME:case t.AES_DECRYPT:case t.AES_ENCRYPT:case t.AREA:case t.ASBINARY:case t.ASIN:case t.ASTEXT:case t.ASWKB:case t.ASWKT:case t.ASYMMETRIC_DECRYPT:case t.ASYMMETRIC_DERIVE:case t.ASYMMETRIC_ENCRYPT:case t.ASYMMETRIC_SIGN:case t.ASYMMETRIC_VERIFY:case t.ATAN:case t.ATAN2:case t.BENCHMARK:case t.BIN:case t.BIT_COUNT:case t.BIT_LENGTH:case t.BUFFER:case t.CEIL:case t.CEILING:case t.CENTROID:case t.CHARACTER_LENGTH:case t.CHARSET:case t.CHAR_LENGTH:case t.COERCIBILITY:case t.COLLATION:case t.COMPRESS:case t.CONCAT:case t.CONCAT_WS:case t.CONNECTION_ID:case t.CONV:case t.CONVERT_TZ:case t.COS:case t.COT:case t.CRC32:case t.CREATE_ASYMMETRIC_PRIV_KEY:case t.CREATE_ASYMMETRIC_PUB_KEY:case t.CREATE_DH_PARAMETERS:case t.CREATE_DIGEST:case t.CROSSES:case t.DATEDIFF:case t.DATE_FORMAT:case t.DAYNAME:case t.DAYOFMONTH:case t.DAYOFWEEK:case t.DAYOFYEAR:case t.DECODE:case t.DEGREES:case t.DES_DECRYPT:case t.DES_ENCRYPT:case t.DIMENSION:case t.DISJOINT:case t.ELT:case t.ENCODE:case t.ENCRYPT:case t.ENDPOINT:case t.ENVELOPE:case t.EQUALS:case t.EXP:case t.EXPORT_SET:case t.EXTERIORRING:case t.EXTRACTVALUE:case t.FIELD:case t.FIND_IN_SET:case t.FLOOR:case t.FORMAT:case t.FOUND_ROWS:case t.FROM_BASE64:case t.FROM_DAYS:case t.FROM_UNIXTIME:case t.GEOMCOLLFROMTEXT:case t.GEOMCOLLFROMWKB:case t.GEOMETRYCOLLECTIONFROMTEXT:case t.GEOMETRYCOLLECTIONFROMWKB:case t.GEOMETRYFROMTEXT:case t.GEOMETRYFROMWKB:case t.GEOMETRYN:case t.GEOMETRYTYPE:case t.GEOMFROMTEXT:case t.GEOMFROMWKB:case t.GET_FORMAT:case t.GET_LOCK:case t.GLENGTH:case t.GREATEST:case t.GTID_SUBSET:case t.GTID_SUBTRACT:case t.HEX:case t.IFNULL:case t.INET6_ATON:case t.INET6_NTOA:case t.INET_ATON:case t.INET_NTOA:case t.INSTR:case t.INTERIORRINGN:case t.INTERSECTS:case t.ISCLOSED:case t.ISEMPTY:case t.ISNULL:case t.ISSIMPLE:case t.IS_FREE_LOCK:case t.IS_IPV4:case t.IS_IPV4_COMPAT:case t.IS_IPV4_MAPPED:case t.IS_IPV6:case t.IS_USED_LOCK:case t.LAST_INSERT_ID:case t.LCASE:case t.LEAST:case t.LENGTH:case t.LINEFROMTEXT:case t.LINEFROMWKB:case t.LINESTRINGFROMTEXT:case t.LINESTRINGFROMWKB:case t.LN:case t.LOAD_FILE:case t.LOCATE:case t.LOG:case t.LOG10:case t.LOG2:case t.LOWER:case t.LPAD:case t.LTRIM:case t.MAKEDATE:case t.MAKETIME:case t.MAKE_SET:case t.MASTER_POS_WAIT:case t.MBRCONTAINS:case t.MBRDISJOINT:case t.MBREQUAL:case t.MBRINTERSECTS:case t.MBROVERLAPS:case t.MBRTOUCHES:case t.MBRWITHIN:case t.MD5:case t.MLINEFROMTEXT:case t.MLINEFROMWKB:case t.MONTHNAME:case t.MPOINTFROMTEXT:case t.MPOINTFROMWKB:case t.MPOLYFROMTEXT:case t.MPOLYFROMWKB:case t.MULTILINESTRINGFROMTEXT:case t.MULTILINESTRINGFROMWKB:case t.MULTIPOINTFROMTEXT:case t.MULTIPOINTFROMWKB:case t.MULTIPOLYGONFROMTEXT:case t.MULTIPOLYGONFROMWKB:case t.NAME_CONST:case t.NULLIF:case t.NUMGEOMETRIES:case t.NUMINTERIORRINGS:case t.NUMPOINTS:case t.OCT:case t.OCTET_LENGTH:case t.ORD:case t.OVERLAPS:case t.PERIOD_ADD:case t.PERIOD_DIFF:case t.PI:case t.POINTFROMTEXT:case t.POINTFROMWKB:case t.POINTN:case t.POLYFROMTEXT:case t.POLYFROMWKB:case t.POLYGONFROMTEXT:case t.POLYGONFROMWKB:case t.POW:case t.POWER:case t.QUOTE:case t.RADIANS:case t.RAND:case t.RANDOM:case t.RANDOM_BYTES:case t.RELEASE_LOCK:case t.REVERSE:case t.ROUND:case t.ROW_COUNT:case t.RPAD:case t.RTRIM:case t.SEC_TO_TIME:case t.SESSION_USER:case t.SHA:case t.SHA1:case t.SHA2:case t.SIGN:case t.SIN:case t.SLEEP:case t.SOUNDEX:case t.SQL_THREAD_WAIT_AFTER_GTIDS:case t.SQRT:case t.SRID:case t.STARTPOINT:case t.STRCMP:case t.STR_TO_DATE:case t.ST_AREA:case t.ST_ASBINARY:case t.ST_ASTEXT:case t.ST_ASWKB:case t.ST_ASWKT:case t.ST_BUFFER:case t.ST_CENTROID:case t.ST_CONTAINS:case t.ST_CROSSES:case t.ST_DIFFERENCE:case t.ST_DIMENSION:case t.ST_DISJOINT:case t.ST_DISTANCE:case t.ST_ENDPOINT:case t.ST_ENVELOPE:case t.ST_EQUALS:case t.ST_EXTERIORRING:case t.ST_GEOMCOLLFROMTEXT:case t.ST_GEOMCOLLFROMTXT:case t.ST_GEOMCOLLFROMWKB:case t.ST_GEOMETRYCOLLECTIONFROMTEXT:case t.ST_GEOMETRYCOLLECTIONFROMWKB:case t.ST_GEOMETRYFROMTEXT:case t.ST_GEOMETRYFROMWKB:case t.ST_GEOMETRYN:case t.ST_GEOMETRYTYPE:case t.ST_GEOMFROMTEXT:case t.ST_GEOMFROMWKB:case t.ST_INTERIORRINGN:case t.ST_INTERSECTION:case t.ST_INTERSECTS:case t.ST_ISCLOSED:case t.ST_ISEMPTY:case t.ST_ISSIMPLE:case t.ST_LINEFROMTEXT:case t.ST_LINEFROMWKB:case t.ST_LINESTRINGFROMTEXT:case t.ST_LINESTRINGFROMWKB:case t.ST_NUMGEOMETRIES:case t.ST_NUMINTERIORRING:case t.ST_NUMINTERIORRINGS:case t.ST_NUMPOINTS:case t.ST_OVERLAPS:case t.ST_POINTFROMTEXT:case t.ST_POINTFROMWKB:case t.ST_POINTN:case t.ST_POLYFROMTEXT:case t.ST_POLYFROMWKB:case t.ST_POLYGONFROMTEXT:case t.ST_POLYGONFROMWKB:case t.ST_SRID:case t.ST_STARTPOINT:case t.ST_SYMDIFFERENCE:case t.ST_TOUCHES:case t.ST_UNION:case t.ST_WITHIN:case t.ST_X:case t.ST_Y:case t.SUBDATE:case t.SUBSTRING_INDEX:case t.SUBTIME:case t.SYSTEM_USER:case t.TAN:case t.TIMEDIFF:case t.TIMESTAMPADD:case t.TIMESTAMPDIFF:case t.TIME_FORMAT:case t.TIME_TO_SEC:case t.TOUCHES:case t.TO_BASE64:case t.TO_DAYS:case t.TO_SECONDS:case t.UCASE:case t.UNCOMPRESS:case t.UNCOMPRESSED_LENGTH:case t.UNHEX:case t.UNIX_TIMESTAMP:case t.UPDATEXML:case t.UPPER:case t.UUID:case t.UUID_SHORT:case t.VALIDATE_PASSWORD_STRENGTH:case t.VERSION:case t.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS:case t.WEEKDAY:case t.WEEKOFYEAR:case t.WEIGHT_STRING:case t.WITHIN:case t.YEARWEEK:case t.Y_FUNCTION:case t.X_FUNCTION:case t.MOD:this.enterOuterAlt(e,1),this.state=7097,this.functionNameBase();break;case t.ASCII:this.enterOuterAlt(e,2),this.state=7098,this.match(t.ASCII);break;case t.CURDATE:this.enterOuterAlt(e,3),this.state=7099,this.match(t.CURDATE);break;case t.CURRENT_DATE:this.enterOuterAlt(e,4),this.state=7100,this.match(t.CURRENT_DATE);break;case t.CURRENT_TIME:this.enterOuterAlt(e,5),this.state=7101,this.match(t.CURRENT_TIME);break;case t.CURRENT_TIMESTAMP:this.enterOuterAlt(e,6),this.state=7102,this.match(t.CURRENT_TIMESTAMP);break;case t.CURTIME:this.enterOuterAlt(e,7),this.state=7103,this.match(t.CURTIME);break;case t.DATE_ADD:this.enterOuterAlt(e,8),this.state=7104,this.match(t.DATE_ADD);break;case t.DATE_SUB:this.enterOuterAlt(e,9),this.state=7105,this.match(t.DATE_SUB);break;case t.IF:this.enterOuterAlt(e,10),this.state=7106,this.match(t.IF);break;case t.INSERT:this.enterOuterAlt(e,11),this.state=7107,this.match(t.INSERT);break;case t.LOCALTIME:this.enterOuterAlt(e,12),this.state=7108,this.match(t.LOCALTIME);break;case t.LOCALTIMESTAMP:this.enterOuterAlt(e,13),this.state=7109,this.match(t.LOCALTIMESTAMP);break;case t.MID:this.enterOuterAlt(e,14),this.state=7110,this.match(t.MID);break;case t.NOW:this.enterOuterAlt(e,15),this.state=7111,this.match(t.NOW);break;case t.REPEAT:this.enterOuterAlt(e,16),this.state=7112,this.match(t.REPEAT);break;case t.REPLACE:this.enterOuterAlt(e,17),this.state=7113,this.match(t.REPLACE);break;case t.SUBSTR:this.enterOuterAlt(e,18),this.state=7114,this.match(t.SUBSTR);break;case t.SUBSTRING:this.enterOuterAlt(e,19),this.state=7115,this.match(t.SUBSTRING);break;case t.SYSDATE:this.enterOuterAlt(e,20),this.state=7116,this.match(t.SYSDATE);break;case t.TRIM:this.enterOuterAlt(e,21),this.state=7117,this.match(t.TRIM);break;case t.UTC_DATE:this.enterOuterAlt(e,22),this.state=7118,this.match(t.UTC_DATE);break;case t.UTC_TIME:this.enterOuterAlt(e,23),this.state=7119,this.match(t.UTC_TIME);break;case t.UTC_TIMESTAMP:this.enterOuterAlt(e,24),this.state=7120,this.match(t.UTC_TIMESTAMP);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}passwordFunctionClause(){let e,s=new GD(this.context,this.state);this.enterRule(s,710,t.RULE_passwordFunctionClause);try{this.enterOuterAlt(s,1),this.state=7123,s._functionName=this.tokenStream.LT(1),e=this.tokenStream.LA(1),535===e||551===e?(this.errorHandler.reportMatch(this),this.consume()):s._functionName=this.errorHandler.recoverInline(this),this.state=7124,this.match(t.LR_BRACKET),this.state=7125,this.functionArg(),this.state=7126,this.match(t.RR_BRACKET)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionArgs(){let e,s=new FD(this.context,this.state);this.enterRule(s,712,t.RULE_functionArgs);try{switch(this.enterOuterAlt(s,1),this.state=7132,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1033,this.context)){case 1:this.state=7128,this.constant();break;case 2:this.state=7129,this.fullColumnName();break;case 3:this.state=7130,this.functionCall();break;case 4:this.state=7131,this.expression(0)}for(this.state=7143,this.errorHandler.sync(this),e=this.tokenStream.LA(1);1135===e;){switch(this.state=7134,this.match(t.COMMA),this.state=7139,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1034,this.context)){case 1:this.state=7135,this.constant();break;case 2:this.state=7136,this.fullColumnName();break;case 3:this.state=7137,this.functionCall();break;case 4:this.state=7138,this.expression(0)}this.state=7145,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionArg(){let e=new vD(this.context,this.state);this.enterRule(e,714,t.RULE_functionArg);try{switch(this.state=7150,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1036,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7146,this.constant();break;case 2:this.enterOuterAlt(e,2),this.state=7147,this.fullColumnName();break;case 3:this.enterOuterAlt(e,3),this.state=7148,this.functionCall();break;case 4:this.enterOuterAlt(e,4),this.state=7149,this.expression(0)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expression(e){void 0===e&&(e=0);let s,a=this.context,i=this.state,r=new BD(this.context,i),c=r;this.enterRecursionRule(r,716,t.RULE_expression,e);try{let e;switch(this.enterOuterAlt(r,1),this.state=7163,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1038,this.context)){case 1:r=new fD(r),this.context=r,c=r,this.state=7153,r._notOperator=this.tokenStream.LT(1),s=this.tokenStream.LA(1),114===s||1127===s?(this.errorHandler.reportMatch(this),this.consume()):r._notOperator=this.errorHandler.recoverInline(this),this.state=7154,this.expression(4);break;case 2:r=new yD(r),this.context=r,c=r,this.state=7155,this.predicate(0),this.state=7156,this.match(t.IS),this.state=7158,this.errorHandler.sync(this),s=this.tokenStream.LA(1),114===s&&(this.state=7157,this.match(t.NOT)),this.state=7160,r._testValue=this.tokenStream.LT(1),s=this.tokenStream.LA(1),63===s||178===s||662===s?(this.errorHandler.reportMatch(this),this.consume()):r._testValue=this.errorHandler.recoverInline(this);break;case 3:r=new wD(r),this.context=r,c=r,this.state=7162,this.predicate(0)}for(this.context.stop=this.tokenStream.LT(-1),this.state=7171,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,1039,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e){if(null!=this.parseListeners&&this.triggerExitRuleEvent(),c=r,r=new YD(new BD(a,i)),this.pushNewRecursionContext(r,716,t.RULE_expression),this.state=7165,!this.precpred(this.context,3))throw this.createFailedPredicateException("this.precpred(this.context, 3)");this.state=7166,this.logicalOperator(),this.state=7167,this.expression(4)}this.state=7173,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,1039,this.context)}}catch(n){if(!(n instanceof qt))throw n;this.errorHandler.reportError(this,n),this.errorHandler.recover(this,n)}finally{this.unrollRecursionContexts(a)}return r}predicate(e){void 0===e&&(e=0);let s,a=this.context,i=this.state,r=new bD(this.context,i),c=r,n=718;this.enterRecursionRule(r,718,t.RULE_predicate,e);try{let e;for(this.enterOuterAlt(r,1),r=new VD(r),this.context=r,c=r,this.state=7175,this.expressionAtom(0),this.context.stop=this.tokenStream.LT(-1),this.state=7241,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,1047,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this.parseListeners&&this.triggerExitRuleEvent(),c=r,this.state=7239,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1046,this.context)){case 1:if(r=new QD(new bD(a,i)),r._left=c,this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7177,!this.precpred(this.context,8))throw this.createFailedPredicateException("this.precpred(this.context, 8)");this.state=7178,this.comparisonOperator(),this.state=7179,r._right=this.predicate(9);break;case 2:if(r=new ZD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7181,!this.precpred(this.context,6))throw this.createFailedPredicateException("this.precpred(this.context, 6)");this.state=7183,this.errorHandler.sync(this),s=this.tokenStream.LA(1),114===s&&(this.state=7182,this.match(t.NOT)),this.state=7185,this.match(t.BETWEEN),this.state=7186,this.predicate(0),this.state=7187,this.match(t.AND),this.state=7188,this.predicate(7);break;case 3:if(r=new WD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7190,!this.precpred(this.context,5))throw this.createFailedPredicateException("this.precpred(this.context, 5)");this.state=7191,this.match(t.SOUNDS),this.state=7192,this.match(t.LIKE),this.state=7193,this.predicate(6);break;case 4:if(r=new zD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7194,!this.precpred(this.context,3))throw this.createFailedPredicateException("this.precpred(this.context, 3)");this.state=7196,this.errorHandler.sync(this),s=this.tokenStream.LA(1),114===s&&(this.state=7195,this.match(t.NOT)),this.state=7198,r._regex=this.tokenStream.LT(1),s=this.tokenStream.LA(1),137===s||149===s?(this.errorHandler.reportMatch(this),this.consume()):r._regex=this.errorHandler.recoverInline(this),this.state=7199,this.predicate(4);break;case 5:if(r=new JD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7200,!this.precpred(this.context,10))throw this.createFailedPredicateException("this.precpred(this.context, 10)");switch(this.state=7202,this.errorHandler.sync(this),s=this.tokenStream.LA(1),114===s&&(this.state=7201,this.match(t.NOT)),this.state=7204,this.match(t.IN),this.state=7205,this.match(t.LR_BRACKET),this.state=7208,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1043,this.context)){case 1:this.state=7206,this.selectStatement();break;case 2:this.state=7207,this.expressions()}this.state=7210,this.match(t.RR_BRACKET);break;case 6:if(r=new qD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7212,!this.precpred(this.context,9))throw this.createFailedPredicateException("this.precpred(this.context, 9)");this.state=7213,this.match(t.IS),this.state=7214,this.nullNotnull();break;case 7:if(r=new XD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7215,!this.precpred(this.context,7))throw this.createFailedPredicateException("this.precpred(this.context, 7)");this.state=7216,this.comparisonOperator(),this.state=7217,r._quantifier=this.tokenStream.LT(1),s=this.tokenStream.LA(1),6===s||337===s||618===s?(this.errorHandler.reportMatch(this),this.consume()):r._quantifier=this.errorHandler.recoverInline(this),this.state=7218,this.match(t.LR_BRACKET),this.state=7219,this.selectStatement(),this.state=7220,this.match(t.RR_BRACKET);break;case 8:if(r=new jD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7222,!this.precpred(this.context,4))throw this.createFailedPredicateException("this.precpred(this.context, 4)");if(1===(this.state=7224,this.errorHandler.sync(this),s=this.tokenStream.LA(1),114===s&&(this.state=7223,this.match(t.NOT)),this.state=7226,this.match(t.LIKE),this.state=7227,this.predicate(0),this.state=7230,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1045,this.context)))this.state=7228,this.match(t.ESCAPE),this.state=7229,this.match(t.STRING_LITERAL);break;case 9:if(r=new KD(new bD(a,i)),this.pushNewRecursionContext(r,n,t.RULE_predicate),this.state=7232,!this.precpred(this.context,2))throw this.createFailedPredicateException("this.precpred(this.context, 2)");this.state=7233,this.match(t.MEMBER),this.state=7234,this.match(t.OF),this.state=7235,this.match(t.LR_BRACKET),this.state=7236,this.predicate(0),this.state=7237,this.match(t.RR_BRACKET)}this.state=7243,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,1047,this.context)}}catch(h){if(!(h instanceof qt))throw h;this.errorHandler.reportError(this,h),this.errorHandler.recover(this,h)}finally{this.unrollRecursionContexts(a)}return r}expressionAtom(e){void 0===e&&(e=0);let s,a=this.context,i=this.state,r=new $D(this.context,i),c=r,n=720;this.enterRecursionRule(r,720,t.RULE_expressionAtom,e);try{let e;switch(this.enterOuterAlt(r,1),this.state=7292,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1050,this.context)){case 1:r=new op(r),this.context=r,c=r,this.state=7245,this.constant();break;case 2:r=new Sp(r),this.context=r,c=r,this.state=7246,this.fullColumnName();break;case 3:r=new Rp(r),this.context=r,c=r,this.state=7247,this.functionCall();break;case 4:r=new ap(r),this.context=r,c=r,this.state=7248,this.mysqlVariable();break;case 5:r=new tp(r),this.context=r,c=r,this.state=7249,this.unaryOperator(),this.state=7250,this.expressionAtom(12);break;case 6:r=new Ap(r),this.context=r,c=r,this.state=7252,this.match(t.BINARY),this.state=7253,this.expressionAtom(11);break;case 7:r=new sp(r),this.context=r,c=r,this.state=7254,this.match(t.LOCAL_ID),this.state=7255,this.match(t.VAR_ASSIGN),this.state=7256,this.expressionAtom(10);break;case 8:for(r=new ip(r),this.context=r,c=r,this.state=7257,this.match(t.LR_BRACKET),this.state=7258,this.expression(0),this.state=7263,this.errorHandler.sync(this),s=this.tokenStream.LA(1);1135===s;)this.state=7259,this.match(t.COMMA),this.state=7260,this.expression(0),this.state=7265,this.errorHandler.sync(this),s=this.tokenStream.LA(1);this.state=7266,this.match(t.RR_BRACKET);break;case 9:r=new rp(r),this.context=r,c=r,this.state=7268,this.match(t.ROW),this.state=7269,this.match(t.LR_BRACKET),this.state=7270,this.expression(0),this.state=7273,this.errorHandler.sync(this),s=this.tokenStream.LA(1);do{this.state=7271,this.match(t.COMMA),this.state=7272,this.expression(0),this.state=7275,this.errorHandler.sync(this),s=this.tokenStream.LA(1)}while(1135===s);this.state=7277,this.match(t.RR_BRACKET);break;case 10:r=new np(r),this.context=r,c=r,this.state=7279,this.match(t.EXISTS),this.state=7280,this.match(t.LR_BRACKET),this.state=7281,this.selectStatement(),this.state=7282,this.match(t.RR_BRACKET);break;case 11:r=new Tp(r),this.context=r,c=r,this.state=7284,this.match(t.LR_BRACKET),this.state=7285,this.selectStatement(),this.state=7286,this.match(t.RR_BRACKET);break;case 12:r=new hp(r),this.context=r,c=r,this.state=7288,this.match(t.INTERVAL),this.state=7289,this.expression(0),this.state=7290,this.intervalType()}for(this.context.stop=this.tokenStream.LT(-1),this.state=7315,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,1052,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this.parseListeners&&this.triggerExitRuleEvent(),c=r,this.state=7313,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1051,this.context)){case 1:if(r=new lp(new $D(a,i)),r._left=c,this.pushNewRecursionContext(r,n,t.RULE_expressionAtom),this.state=7294,!this.precpred(this.context,4))throw this.createFailedPredicateException("this.precpred(this.context, 4)");this.state=7295,this.bitOperator(),this.state=7296,r._right=this.expressionAtom(5);break;case 2:if(r=new cp(new $D(a,i)),r._left=c,this.pushNewRecursionContext(r,n,t.RULE_expressionAtom),this.state=7298,!this.precpred(this.context,3))throw this.createFailedPredicateException("this.precpred(this.context, 3)");this.state=7299,this.multOperator(),this.state=7300,r._right=this.expressionAtom(4);break;case 3:if(r=new cp(new $D(a,i)),r._left=c,this.pushNewRecursionContext(r,n,t.RULE_expressionAtom),this.state=7302,!this.precpred(this.context,2))throw this.createFailedPredicateException("this.precpred(this.context, 2)");this.state=7303,this.addOperator(),this.state=7304,r._right=this.expressionAtom(3);break;case 4:if(r=new Ep(new $D(a,i)),r._left=c,this.pushNewRecursionContext(r,n,t.RULE_expressionAtom),this.state=7306,!this.precpred(this.context,1))throw this.createFailedPredicateException("this.precpred(this.context, 1)");this.state=7307,this.jsonOperator(),this.state=7308,r._right=this.expressionAtom(2);break;case 5:if(r=new ep(new $D(a,i)),this.pushNewRecursionContext(r,n,t.RULE_expressionAtom),this.state=7310,!this.precpred(this.context,14))throw this.createFailedPredicateException("this.precpred(this.context, 14)");this.state=7311,this.match(t.COLLATE),this.state=7312,this.collationName()}this.state=7317,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,1052,this.context)}}catch(h){if(!(h instanceof qt))throw h;this.errorHandler.reportError(this,h),this.errorHandler.recover(this,h)}finally{this.unrollRecursionContexts(a)}return r}unaryOperator(){let e,s=new Op(this.context,this.state);this.enterRule(s,722,t.RULE_unaryOperator);try{this.enterOuterAlt(s,1),this.state=7318,e=this.tokenStream.LA(1),114===e||!(e-1120&-32)&&1<<e-1120&387?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}comparisonOperator(){let e=new Ip(this.context,this.state);this.enterRule(e,724,t.RULE_comparisonOperator);try{switch(this.state=7334,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1053,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7320,this.match(t.EQUAL_SYMBOL);break;case 2:this.enterOuterAlt(e,2),this.state=7321,this.match(t.GREATER_SYMBOL);break;case 3:this.enterOuterAlt(e,3),this.state=7322,this.match(t.LESS_SYMBOL);break;case 4:this.enterOuterAlt(e,4),this.state=7323,this.match(t.LESS_SYMBOL),this.state=7324,this.match(t.EQUAL_SYMBOL);break;case 5:this.enterOuterAlt(e,5),this.state=7325,this.match(t.GREATER_SYMBOL),this.state=7326,this.match(t.EQUAL_SYMBOL);break;case 6:this.enterOuterAlt(e,6),this.state=7327,this.match(t.LESS_SYMBOL),this.state=7328,this.match(t.GREATER_SYMBOL);break;case 7:this.enterOuterAlt(e,7),this.state=7329,this.match(t.EXCLAMATION_SYMBOL),this.state=7330,this.match(t.EQUAL_SYMBOL);break;case 8:this.enterOuterAlt(e,8),this.state=7331,this.match(t.LESS_SYMBOL),this.state=7332,this.match(t.EQUAL_SYMBOL),this.state=7333,this.match(t.GREATER_SYMBOL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}logicalOperator(){let e=new up(this.context,this.state);this.enterRule(e,726,t.RULE_logicalOperator);try{switch(this.state=7343,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AND:this.enterOuterAlt(e,1),this.state=7336,this.match(t.AND);break;case t.BIT_AND_OP:this.enterOuterAlt(e,2),this.state=7337,this.match(t.BIT_AND_OP),this.state=7338,this.match(t.BIT_AND_OP);break;case t.XOR:this.enterOuterAlt(e,3),this.state=7339,this.match(t.XOR);break;case t.OR:this.enterOuterAlt(e,4),this.state=7340,this.match(t.OR);break;case t.BIT_OR_OP:this.enterOuterAlt(e,5),this.state=7341,this.match(t.BIT_OR_OP),this.state=7342,this.match(t.BIT_OR_OP);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bitOperator(){let e=new Np(this.context,this.state);this.enterRule(e,728,t.RULE_bitOperator);try{switch(this.state=7352,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS_SYMBOL:this.enterOuterAlt(e,1),this.state=7345,this.match(t.LESS_SYMBOL),this.state=7346,this.match(t.LESS_SYMBOL);break;case t.GREATER_SYMBOL:this.enterOuterAlt(e,2),this.state=7347,this.match(t.GREATER_SYMBOL),this.state=7348,this.match(t.GREATER_SYMBOL);break;case t.BIT_AND_OP:this.enterOuterAlt(e,3),this.state=7349,this.match(t.BIT_AND_OP);break;case t.BIT_XOR_OP:this.enterOuterAlt(e,4),this.state=7350,this.match(t.BIT_XOR_OP);break;case t.BIT_OR_OP:this.enterOuterAlt(e,5),this.state=7351,this.match(t.BIT_OR_OP);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}multOperator(){let e,s=new Lp(this.context,this.state);this.enterRule(s,730,t.RULE_multOperator);try{this.enterOuterAlt(s,1),this.state=7354,e=this.tokenStream.LA(1),!(e-1117&-32)&&1<<e-1117&103?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}addOperator(){let e,s=new Cp(this.context,this.state);this.enterRule(s,732,t.RULE_addOperator);try{this.enterOuterAlt(s,1),this.state=7356,e=this.tokenStream.LA(1),1120===e||1121===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}jsonOperator(){let e=new _p(this.context,this.state);this.enterRule(e,734,t.RULE_jsonOperator);try{switch(this.state=7363,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,1056,this.context)){case 1:this.enterOuterAlt(e,1),this.state=7358,this.match(t.MINUS),this.state=7359,this.match(t.GREATER_SYMBOL);break;case 2:this.enterOuterAlt(e,2),this.state=7360,this.match(t.MINUS),this.state=7361,this.match(t.GREATER_SYMBOL),this.state=7362,this.match(t.GREATER_SYMBOL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}charsetNameBase(){let e,s=new Pp(this.context,this.state);this.enterRule(s,736,t.RULE_charsetNameBase);try{this.enterOuterAlt(s,1),this.state=7365,e=this.tokenStream.LA(1),226===e||!(e-746&-32)&&1<<e-746&4294967295||!(e-778&-32)&&1<<e-778&511?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}transactionLevelBase(){let e,s=new Mp(this.context,this.state);this.enterRule(s,738,t.RULE_transactionLevelBase);try{this.enterOuterAlt(s,1),this.state=7367,e=this.tokenStream.LA(1),!(e-799&-32)&&1<<e-799&15?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}privilegesBase(){let e,s=new dp(this.context,this.state);this.enterRule(s,740,t.RULE_privilegesBase);try{this.enterOuterAlt(s,1),this.state=7369,e=this.tokenStream.LA(1),!(e-708&-32)&&1<<e-708&2181955587||740===e||742===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}intervalTypeBase(){let e,s=new Up(this.context,this.state);this.enterRule(s,742,t.RULE_intervalTypeBase);try{this.enterOuterAlt(s,1),this.state=7371,e=this.tokenStream.LA(1),!(e-689&-32)&&1<<e-689&255?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dataTypeBase(){let e,s=new mp(this.context,this.state);this.enterRule(s,744,t.RULE_dataTypeBase);try{this.enterOuterAlt(s,1),this.state=7373,e=this.tokenStream.LA(1),!(e-217&-32)&&1<<e-217&1179679?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keywordsCanBeId(){let e,s=new Dp(this.context,this.state);this.enterRule(s,746,t.RULE_keywordsCanBeId);try{this.enterOuterAlt(s,1),this.state=7375,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&537151488||!(e-35&-32)&&1<<e-35&22028421||!(e-73&-32)&&1<<e-73&2097217||!(e-117&-32)&&1<<e-117&8337||158===e||168===e||239===e||!(e-283&-32)&&1<<e-283&1069648127||!(e-332&-32)&&1<<e-332&4294967295||!(e-364&-32)&&1<<e-364&4290772991||!(e-396&-32)&&1<<e-396&4294966015||!(e-428&-32)&&1<<e-428&2139095007||!(e-460&-32)&&1<<e-460&4294967295||!(e-492&-32)&&1<<e-492&3221225471||!(e-527&-32)&&1<<e-527&4294180863||!(e-560&-32)&&1<<e-560&3221225471||!(e-592&-32)&&1<<e-592&4294934525||!(e-624&-32)&&1<<e-624&4294959103||!(e-656&-32)&&1<<e-656&4159569919||!(e-688&-32)&&1<<e-688&1641019905||!(e-720&-32)&&1<<e-720&61300511||792===e||836===e||875===e||1e3===e||1005===e||1088===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}functionNameBase(){let e,s=new pp(this.context,this.state);this.enterRule(s,748,t.RULE_functionNameBase);try{this.enterOuterAlt(s,1),this.state=7377,e=this.tokenStream.LA(1),39===e||97===e||148===e||150===e||!(e-217&-32)&&1<<e-217&23||!(e-251&-32)&&1<<e-251&4294967295||!(e-290&-32)&&1<<e-290&31983||324===e||459===e||!(e-673&-32)&&1<<e-673&16711681||736===e||!(e-803&-32)&&1<<e-803&4294967289||!(e-835&-32)&&1<<e-835&4294967293||!(e-867&-32)&&1<<e-867&4294967039||!(e-899&-32)&&1<<e-899&4294967295||!(e-931&-32)&&1<<e-931&4294967295||!(e-963&-32)&&1<<e-963&4294967295||!(e-995&-32)&&1<<e-995&4294966239||!(e-1027&-32)&&1<<e-1027&4294967295||!(e-1059&-32)&&1<<e-1059&3758096383||!(e-1091&-32)&&1<<e-1091&131071||1123===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sempred(t,e,s){switch(e){case 358:return this.expression_sempred(t,s);case 359:return this.predicate_sempred(t,s);case 360:return this.expressionAtom_sempred(t,s)}return!0}expression_sempred(t,e){return 0!==e||this.precpred(this.context,3)}predicate_sempred(t,e){switch(e){case 1:return this.precpred(this.context,8);case 2:return this.precpred(this.context,6);case 3:return this.precpred(this.context,5);case 4:return this.precpred(this.context,3);case 5:return this.precpred(this.context,10);case 6:return this.precpred(this.context,9);case 7:return this.precpred(this.context,7);case 8:return this.precpred(this.context,4);case 9:return this.precpred(this.context,2)}return!0}expressionAtom_sempred(t,e){switch(e){case 10:return this.precpred(this.context,4);case 11:return this.precpred(this.context,3);case 12:return this.precpred(this.context,2);case 13:return this.precpred(this.context,1);case 14:return this.precpred(this.context,14)}return!0}static{this._serializedATN=[4,1,1161,7380,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,1,0,3,0,752,8,0,1,0,1,0,1,1,1,1,3,1,758,8,1,1,1,1,1,1,1,1,1,3,1,764,8,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,2,773,8,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,3,3,813,8,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,3,4,828,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,839,8,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,856,8,6,1,7,1,7,1,7,3,7,861,8,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,873,8,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,900,8,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,3,10,909,8,10,1,11,1,11,1,11,3,11,914,8,11,1,11,1,11,5,11,918,8,11,10,11,12,11,921,9,11,1,12,1,12,3,12,925,8,12,1,12,1,12,3,12,929,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,938,8,12,1,12,3,12,941,8,12,1,12,3,12,944,8,12,1,12,1,12,3,12,948,8,12,1,12,1,12,1,12,1,13,1,13,3,13,955,8,13,1,13,3,13,958,8,13,1,13,1,13,1,13,3,13,963,8,13,1,13,1,13,1,13,1,13,5,13,969,8,13,10,13,12,13,972,9,13,1,13,1,13,3,13,976,8,13,1,13,1,13,1,13,3,13,981,8,13,1,13,5,13,984,8,13,10,13,12,13,987,9,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,3,14,998,8,14,1,14,3,14,1001,8,14,1,14,1,14,3,14,1005,8,14,1,14,3,14,1008,8,14,1,14,1,14,3,14,1012,8,14,1,14,3,14,1015,8,14,1,14,1,14,3,14,1019,8,14,1,14,3,14,1022,8,14,1,14,3,14,1025,8,14,1,14,1,14,3,14,1029,8,14,1,14,3,14,1032,8,14,1,14,1,14,3,14,1036,8,14,1,14,1,14,1,15,1,15,3,15,1042,8,15,1,15,1,15,1,15,1,15,3,15,1048,8,15,1,15,1,15,5,15,1052,8,15,10,15,12,15,1055,9,15,1,15,1,15,5,15,1059,8,15,10,15,12,15,1062,9,15,1,15,1,15,1,16,1,16,3,16,1068,8,16,1,16,3,16,1071,8,16,1,16,1,16,3,16,1075,8,16,1,16,1,16,1,16,3,16,1080,8,16,1,16,1,16,5,16,1084,8,16,10,16,12,16,1087,9,16,1,16,1,16,1,16,1,16,5,16,1093,8,16,10,16,12,16,1096,9,16,1,16,1,16,3,16,1100,8,16,1,17,1,17,1,17,3,17,1105,8,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,5,18,1121,8,18,10,18,12,18,1124,9,18,1,18,1,18,1,19,1,19,3,19,1130,8,19,1,19,1,19,3,19,1134,8,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,3,19,1144,8,19,1,19,1,19,3,19,1148,8,19,1,19,1,19,3,19,1152,8,19,1,19,1,19,3,19,1156,8,19,1,19,1,19,3,19,1160,8,19,1,19,5,19,1163,8,19,10,19,12,19,1166,9,19,3,19,1168,8,19,1,19,3,19,1171,8,19,1,19,3,19,1174,8,19,1,19,3,19,1177,8,19,1,19,1,19,1,19,1,19,3,19,1183,8,19,1,19,1,19,3,19,1187,8,19,1,19,1,19,1,19,1,19,3,19,1193,8,19,1,19,5,19,1196,8,19,10,19,12,19,1199,9,19,3,19,1201,8,19,1,19,3,19,1204,8,19,3,19,1206,8,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,3,20,1217,8,20,1,20,1,20,3,20,1221,8,20,1,20,3,20,1224,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,3,21,1238,8,21,1,21,3,21,1241,8,21,1,21,1,21,3,21,1245,8,21,1,21,3,21,1248,8,21,1,21,1,21,3,21,1252,8,21,1,21,3,21,1255,8,21,1,21,1,21,3,21,1259,8,21,1,21,3,21,1262,8,21,1,21,1,21,3,21,1266,8,21,1,21,3,21,1269,8,21,1,21,3,21,1272,8,21,1,21,1,21,3,21,1276,8,21,1,21,3,21,1279,8,21,1,21,1,21,3,21,1283,8,21,1,21,1,21,1,22,1,22,3,22,1289,8,22,1,22,1,22,3,22,1293,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,1305,8,22,1,22,1,22,1,23,1,23,3,23,1311,8,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,5,24,1320,8,24,10,24,12,24,1323,9,24,1,24,1,24,3,24,1327,8,24,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1335,8,24,1,25,1,25,1,26,1,26,1,27,1,27,3,27,1343,8,27,1,27,1,27,1,27,3,27,1348,8,27,1,27,3,27,1351,8,27,1,27,1,27,1,27,3,27,1356,8,27,1,27,1,27,1,27,1,27,1,27,1,27,3,27,1364,8,27,1,27,1,27,1,27,3,27,1369,8,27,1,27,1,27,1,27,1,27,3,27,1375,8,27,1,27,1,27,1,27,3,27,1380,8,27,1,27,1,27,3,27,1384,8,27,3,27,1386,8,27,1,28,3,28,1389,8,28,1,28,1,28,3,28,1393,8,28,1,28,1,28,3,28,1397,8,28,1,28,3,28,1400,8,28,1,28,1,28,3,28,1404,8,28,1,28,1,28,3,28,1408,8,28,1,28,1,28,3,28,1412,8,28,1,28,1,28,1,28,1,28,3,28,1418,8,28,1,28,3,28,1421,8,28,1,29,1,29,1,29,1,29,1,29,3,29,1428,8,29,1,30,1,30,1,30,3,30,1433,8,30,1,31,1,31,1,31,1,31,3,31,1439,8,31,1,32,1,32,1,32,5,32,1444,8,32,10,32,12,32,1447,9,32,1,32,1,32,1,32,3,32,1452,8,32,1,32,1,32,1,32,1,32,5,32,1458,8,32,10,32,12,32,1461,9,32,3,32,1463,8,32,1,32,1,32,1,32,5,32,1468,8,32,10,32,12,32,1471,9,32,3,32,1473,8,32,3,32,1475,8,32,1,33,1,33,1,33,1,33,3,33,1481,8,33,1,34,1,34,1,34,1,34,3,34,1487,8,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1504,8,35,1,36,1,36,1,36,1,36,1,36,3,36,1511,8,36,1,37,1,37,1,37,1,38,1,38,3,38,1518,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,1530,8,38,1,38,1,38,1,38,3,38,1535,8,38,1,38,3,38,1538,8,38,1,39,3,39,1541,8,39,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,3,41,1554,8,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,3,41,1567,8,41,1,41,1,41,1,41,3,41,1572,8,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,3,42,1588,8,42,1,43,1,43,1,43,1,43,5,43,1594,8,43,10,43,12,43,1597,9,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,3,44,1606,8,44,1,44,3,44,1609,8,44,1,44,3,44,1612,8,44,1,45,1,45,5,45,1616,8,45,10,45,12,45,1619,9,45,1,45,3,45,1622,8,45,1,45,3,45,1625,8,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,1636,8,46,1,46,3,46,1639,8,46,1,46,1,46,1,46,3,46,1644,8,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,1657,8,46,1,46,1,46,1,46,1,46,1,46,3,46,1664,8,46,1,46,1,46,1,46,1,46,1,46,3,46,1671,8,46,3,46,1673,8,46,1,46,1,46,1,46,1,46,1,46,3,46,1680,8,46,1,47,1,47,3,47,1684,8,47,3,47,1686,8,47,1,47,1,47,1,47,3,47,1691,8,47,1,47,3,47,1694,8,47,1,47,1,47,5,47,1698,8,47,10,47,12,47,1701,9,47,1,47,1,47,3,47,1705,8,47,3,47,1707,8,47,1,47,1,47,3,47,1711,8,47,1,47,3,47,1714,8,47,1,47,3,47,1717,8,47,1,47,1,47,5,47,1721,8,47,10,47,12,47,1724,9,47,1,47,1,47,3,47,1728,8,47,3,47,1730,8,47,1,47,1,47,1,47,3,47,1735,8,47,1,47,1,47,1,47,1,47,1,47,3,47,1742,8,47,3,47,1744,8,47,1,47,1,47,1,47,1,47,1,47,3,47,1751,8,47,1,48,1,48,1,48,3,48,1756,8,48,1,48,1,48,3,48,1760,8,48,1,48,3,48,1763,8,48,1,49,1,49,1,49,1,49,1,49,1,49,3,49,1771,8,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,1779,8,49,3,49,1781,8,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,1791,8,50,1,51,1,51,3,51,1795,8,51,1,51,3,51,1798,8,51,1,51,1,51,5,51,1802,8,51,10,51,12,51,1805,9,51,1,51,1,51,3,51,1809,8,51,1,51,3,51,1812,8,51,1,51,1,51,5,51,1816,8,51,10,51,12,51,1819,9,51,3,51,1821,8,51,1,52,1,52,3,52,1825,8,52,1,52,3,52,1828,8,52,1,52,1,52,3,52,1832,8,52,1,52,1,52,1,52,3,52,1837,8,52,1,52,1,52,1,52,3,52,1842,8,52,1,52,1,52,1,52,3,52,1847,8,52,1,52,1,52,3,52,1851,8,52,1,52,1,52,3,52,1855,8,52,1,52,1,52,3,52,1859,8,52,1,52,1,52,3,52,1863,8,52,1,52,1,52,3,52,1867,8,52,1,52,1,52,3,52,1871,8,52,1,52,1,52,1,52,3,52,1876,8,52,1,52,1,52,1,52,3,52,1881,8,52,1,52,1,52,1,52,3,52,1886,8,52,1,52,1,52,1,52,1,52,3,52,1892,8,52,1,52,1,52,1,52,3,52,1897,8,52,1,52,1,52,1,52,3,52,1902,8,52,1,52,1,52,1,52,3,52,1907,8,52,1,52,1,52,1,52,3,52,1912,8,52,1,52,1,52,1,52,3,52,1917,8,52,1,52,1,52,1,52,1,52,3,52,1923,8,52,1,52,1,52,1,52,3,52,1928,8,52,1,52,1,52,1,52,3,52,1933,8,52,1,52,1,52,1,52,3,52,1938,8,52,1,52,1,52,1,52,3,52,1943,8,52,1,52,1,52,1,52,3,52,1948,8,52,1,52,1,52,1,52,3,52,1953,8,52,1,52,1,52,1,52,3,52,1958,8,52,1,52,1,52,1,52,1,52,1,52,3,52,1965,8,52,1,52,1,52,1,52,3,52,1970,8,52,1,52,1,52,1,52,3,52,1975,8,52,1,52,1,52,1,52,3,52,1980,8,52,1,52,1,52,3,52,1984,8,52,1,52,1,52,1,52,3,52,1989,8,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,1997,8,52,1,52,1,52,1,52,3,52,2002,8,52,1,52,1,52,1,52,1,52,3,52,2008,8,52,1,53,1,53,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,3,55,2020,8,55,1,55,1,55,1,55,1,55,1,55,3,55,2027,8,55,3,55,2029,8,55,1,55,1,55,1,55,1,55,5,55,2035,8,55,10,55,12,55,2038,9,55,1,55,1,55,3,55,2042,8,55,1,56,3,56,2045,8,56,1,56,1,56,1,56,1,56,1,56,1,56,3,56,2053,8,56,1,56,1,56,1,56,1,56,3,56,2059,8,56,1,56,1,56,3,56,2063,8,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,3,56,2076,8,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,3,56,2088,8,56,3,56,2090,8,56,1,57,3,57,2093,8,57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,2101,8,57,1,57,1,57,1,57,1,57,3,57,2107,8,57,1,57,1,57,1,57,1,57,3,57,2113,8,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,5,58,2124,8,58,10,58,12,58,2127,9,58,1,58,1,58,5,58,2131,8,58,10,58,12,58,2134,9,58,1,58,1,58,1,58,1,58,5,58,2140,8,58,10,58,12,58,2143,9,58,1,58,1,58,3,58,2147,8,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,5,58,2156,8,58,10,58,12,58,2159,9,58,1,58,1,58,1,58,1,58,5,58,2165,8,58,10,58,12,58,2168,9,58,1,58,1,58,3,58,2172,8,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,5,58,2182,8,58,10,58,12,58,2185,9,58,1,58,1,58,5,58,2189,8,58,10,58,12,58,2192,9,58,1,58,1,58,1,58,1,58,5,58,2198,8,58,10,58,12,58,2201,9,58,1,58,1,58,3,58,2205,8,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,5,58,2215,8,58,10,58,12,58,2218,9,58,1,58,1,58,5,58,2222,8,58,10,58,12,58,2225,9,58,1,58,1,58,1,58,1,58,5,58,2231,8,58,10,58,12,58,2234,9,58,1,58,1,58,3,58,2238,8,58,1,58,1,58,1,58,5,58,2243,8,58,10,58,12,58,2246,9,58,1,58,1,58,1,58,1,58,5,58,2252,8,58,10,58,12,58,2255,9,58,1,58,1,58,3,58,2259,8,58,3,58,2261,8,58,1,59,1,59,1,59,3,59,2266,8,59,1,60,1,60,1,60,1,60,4,60,2272,8,60,11,60,12,60,2273,1,60,1,60,1,61,1,61,1,61,5,61,2281,8,61,10,61,12,61,2284,9,61,1,62,3,62,2287,8,62,1,62,3,62,2290,8,62,1,62,1,62,3,62,2294,8,62,1,62,1,62,1,62,3,62,2299,8,62,1,62,1,62,1,62,1,62,3,62,2305,8,62,1,62,1,62,1,62,1,62,3,62,2311,8,62,1,62,1,62,1,62,3,62,2316,8,62,1,62,1,62,1,62,3,62,2321,8,62,1,62,1,62,1,62,3,62,2326,8,62,1,62,1,62,1,62,3,62,2331,8,62,1,62,3,62,2334,8,62,1,63,1,63,1,63,1,63,4,63,2340,8,63,11,63,12,63,2341,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,3,63,2352,8,63,1,64,1,64,3,64,2356,8,64,1,64,1,64,1,64,1,64,1,64,3,64,2363,8,64,1,64,1,64,1,64,3,64,2368,8,64,1,64,3,64,2371,8,64,1,64,1,64,1,64,3,64,2376,8,64,1,64,3,64,2379,8,64,1,64,1,64,3,64,2383,8,64,1,64,1,64,3,64,2387,8,64,1,65,1,65,1,65,1,65,5,65,2393,8,65,10,65,12,65,2396,9,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,2414,8,67,1,67,3,67,2417,8,67,1,67,3,67,2420,8,67,1,67,1,67,3,67,2424,8,67,1,67,1,67,1,68,1,68,1,68,1,68,5,68,2432,8,68,10,68,12,68,2435,9,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,5,69,2445,8,69,10,69,12,69,2448,9,69,1,69,1,69,1,70,1,70,3,70,2454,8,70,1,70,3,70,2457,8,70,1,70,1,70,1,70,3,70,2462,8,70,1,70,1,70,1,70,5,70,2467,8,70,10,70,12,70,2470,9,70,3,70,2472,8,70,1,70,3,70,2475,8,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,2486,8,71,1,71,3,71,2489,8,71,1,71,1,71,3,71,2493,8,71,1,71,1,71,1,72,1,72,1,72,1,72,3,72,2501,8,72,1,72,3,72,2504,8,72,1,72,1,72,1,72,3,72,2509,8,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,2517,8,72,1,72,1,72,1,72,1,72,3,72,2523,8,72,1,72,1,72,3,72,2527,8,72,1,73,1,73,3,73,2531,8,73,1,73,5,73,2534,8,73,10,73,12,73,2537,9,73,1,73,1,73,3,73,2541,8,73,1,73,1,73,1,73,1,73,1,73,3,73,2548,8,73,1,73,1,73,3,73,2552,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,5,73,2561,8,73,10,73,12,73,2564,9,73,1,73,1,73,1,73,1,73,1,73,3,73,2571,8,73,1,73,3,73,2574,8,73,1,73,1,73,5,73,2578,8,73,10,73,12,73,2581,9,73,1,73,1,73,1,73,3,73,2586,8,73,3,73,2588,8,73,1,73,1,73,1,73,3,73,2593,8,73,1,73,3,73,2596,8,73,1,73,1,73,5,73,2600,8,73,10,73,12,73,2603,9,73,1,73,1,73,1,73,3,73,2608,8,73,3,73,2610,8,73,1,73,1,73,3,73,2614,8,73,1,73,3,73,2617,8,73,1,73,3,73,2620,8,73,1,73,1,73,5,73,2624,8,73,10,73,12,73,2627,9,73,1,73,1,73,1,73,3,73,2632,8,73,1,73,3,73,2635,8,73,1,73,1,73,5,73,2639,8,73,10,73,12,73,2642,9,73,1,73,1,73,1,73,3,73,2647,8,73,3,73,2649,8,73,1,73,1,73,1,73,3,73,2654,8,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2662,8,73,3,73,2664,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2673,8,73,1,73,3,73,2676,8,73,1,73,3,73,2679,8,73,1,73,1,73,1,73,3,73,2684,8,73,3,73,2686,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2695,8,73,1,73,3,73,2698,8,73,1,73,3,73,2701,8,73,1,73,1,73,1,73,3,73,2706,8,73,3,73,2708,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2717,8,73,1,73,1,73,1,73,3,73,2722,8,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2730,8,73,1,73,1,73,3,73,2734,8,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2742,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2752,8,73,1,73,1,73,1,73,3,73,2757,8,73,1,73,1,73,1,73,1,73,1,73,3,73,2764,8,73,1,73,1,73,3,73,2768,8,73,1,73,1,73,3,73,2772,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2791,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2801,8,73,1,73,1,73,1,73,1,73,3,73,2807,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2824,8,73,1,73,1,73,3,73,2828,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2838,8,73,1,73,1,73,1,73,3,73,2843,8,73,1,73,3,73,2846,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2855,8,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,3,73,2866,8,73,1,73,1,73,1,73,1,73,5,73,2872,8,73,10,73,12,73,2875,9,73,1,73,1,73,1,73,3,73,2880,8,73,1,74,1,74,1,74,1,74,1,74,1,74,5,74,2888,8,74,10,74,12,74,2891,9,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,3,74,2902,8,74,1,74,1,74,1,74,1,74,1,74,3,74,2909,8,74,1,74,1,74,1,74,1,74,1,74,3,74,2916,8,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,5,74,2929,8,74,10,74,12,74,2932,9,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,3,74,2944,8,74,1,74,1,74,1,74,1,74,3,74,2950,8,74,1,74,1,74,1,74,1,74,3,74,2956,8,74,1,74,1,74,1,74,1,74,3,74,2962,8,74,1,74,1,74,1,74,1,74,3,74,2968,8,74,1,74,1,74,1,74,1,74,3,74,2974,8,74,1,74,1,74,1,74,1,74,3,74,2980,8,74,1,75,1,75,1,75,3,75,2985,8,75,1,75,1,75,1,76,1,76,1,76,3,76,2992,8,76,1,76,1,76,1,77,1,77,1,77,3,77,2999,8,77,1,77,1,77,1,77,1,77,1,77,3,77,3006,8,77,1,77,1,77,1,77,3,77,3011,8,77,1,77,5,77,3014,8,77,10,77,12,77,3017,9,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,3,79,3030,8,79,1,79,1,79,1,80,1,80,1,80,3,80,3037,8,80,1,80,1,80,1,81,1,81,1,81,3,81,3044,8,81,1,81,1,81,1,82,1,82,3,82,3050,8,82,1,82,1,82,3,82,3054,8,82,1,82,1,82,3,82,3058,8,82,1,83,1,83,1,83,1,83,1,83,3,83,3065,8,83,1,83,3,83,3068,8,83,1,84,1,84,1,84,3,84,3073,8,84,1,84,1,84,1,85,1,85,1,85,3,85,3080,8,85,1,85,1,85,1,85,5,85,3085,8,85,10,85,12,85,3088,9,85,1,85,3,85,3091,8,85,1,86,1,86,1,86,3,86,3096,8,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,3,87,3106,8,87,1,87,1,87,1,87,1,87,1,87,3,87,3113,8,87,1,88,1,88,1,88,1,88,1,88,5,88,3120,8,88,10,88,12,88,3123,9,88,1,89,1,89,1,89,1,89,1,90,1,90,3,90,3131,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,3,91,3140,8,91,1,91,3,91,3143,8,91,1,92,1,92,3,92,3147,8,92,1,93,1,93,1,93,1,94,1,94,1,94,1,94,3,94,3156,8,94,1,95,1,95,3,95,3160,8,95,1,95,3,95,3163,8,95,1,95,3,95,3166,8,95,1,95,1,95,1,95,1,95,3,95,3172,8,95,1,95,3,95,3175,8,95,1,95,1,95,3,95,3179,8,95,1,95,3,95,3182,8,95,1,95,1,95,3,95,3186,8,95,1,95,3,95,3189,8,95,1,95,1,95,1,95,1,95,5,95,3195,8,95,10,95,12,95,3198,9,95,3,95,3200,8,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,5,95,3209,8,95,10,95,12,95,3212,9,95,3,95,3214,8,95,1,96,1,96,1,96,3,96,3219,8,96,1,96,3,96,3222,8,96,1,96,1,96,1,96,3,96,3227,8,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,3,96,3237,8,96,1,96,1,96,1,96,3,96,3242,8,96,1,96,1,96,4,96,3246,8,96,11,96,12,96,3247,3,96,3250,8,96,1,96,1,96,4,96,3254,8,96,11,96,12,96,3255,3,96,3258,8,96,1,96,1,96,1,96,1,96,3,96,3264,8,96,1,96,1,96,1,96,1,96,5,96,3270,8,96,10,96,12,96,3273,9,96,1,96,1,96,3,96,3277,8,96,1,96,1,96,1,96,1,96,5,96,3283,8,96,10,96,12,96,3286,9,96,3,96,3288,8,96,1,97,1,97,1,97,3,97,3293,8,97,1,97,3,97,3296,8,97,1,97,1,97,1,97,3,97,3301,8,97,1,97,1,97,1,97,1,97,1,97,1,97,3,97,3309,8,97,1,97,1,97,1,97,1,97,1,97,1,97,3,97,3317,8,97,1,97,1,97,1,97,1,97,3,97,3323,8,97,1,97,1,97,1,97,1,97,5,97,3329,8,97,10,97,12,97,3332,9,97,1,97,1,97,3,97,3336,8,97,1,97,1,97,1,97,1,97,5,97,3342,8,97,10,97,12,97,3345,9,97,3,97,3347,8,97,1,98,1,98,3,98,3351,8,98,1,98,3,98,3354,8,98,1,98,1,98,1,98,1,98,1,98,1,98,3,98,3362,8,98,1,98,1,98,1,98,1,98,3,98,3368,8,98,1,98,1,98,1,98,1,98,1,98,5,98,3375,8,98,10,98,12,98,3378,9,98,3,98,3380,8,98,1,99,1,99,3,99,3384,8,99,1,99,1,99,3,99,3388,8,99,1,99,1,99,3,99,3392,8,99,1,99,4,99,3395,8,99,11,99,12,99,3396,1,99,1,99,3,99,3401,8,99,1,99,1,99,3,99,3405,8,99,3,99,3407,8,99,1,99,3,99,3410,8,99,1,99,3,99,3413,8,99,1,99,3,99,3416,8,99,1,99,1,99,4,99,3420,8,99,11,99,12,99,3421,1,99,1,99,3,99,3426,8,99,1,99,3,99,3429,8,99,1,99,3,99,3432,8,99,1,99,3,99,3435,8,99,1,99,3,99,3438,8,99,1,99,1,99,1,99,4,99,3443,8,99,11,99,12,99,3444,3,99,3447,8,99,1,100,1,100,3,100,3451,8,100,1,101,1,101,1,101,3,101,3456,8,101,1,101,1,101,1,101,1,101,3,101,3462,8,101,1,101,5,101,3465,8,101,10,101,12,101,3468,9,101,1,102,1,102,1,102,1,102,3,102,3474,8,102,1,102,1,102,1,102,1,102,3,102,3480,8,102,1,102,5,102,3483,8,102,10,102,12,102,3486,9,102,3,102,3488,8,102,1,103,1,103,1,103,1,103,3,103,3494,8,103,1,104,1,104,3,104,3498,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,3506,8,105,1,106,1,106,3,106,3510,8,106,1,106,3,106,3513,8,106,1,106,3,106,3516,8,106,1,106,1,106,1,106,3,106,3521,8,106,1,106,3,106,3524,8,106,1,106,1,106,1,106,1,106,1,106,3,106,3531,8,106,1,106,1,106,3,106,3535,8,106,1,106,3,106,3538,8,106,1,106,1,106,3,106,3542,8,106,1,107,1,107,3,107,3546,8,107,1,107,3,107,3549,8,107,1,107,3,107,3552,8,107,1,107,1,107,1,107,3,107,3557,8,107,1,107,1,107,1,107,1,107,3,107,3563,8,107,5,107,3565,8,107,10,107,12,107,3568,9,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,3577,8,107,1,107,1,107,1,107,1,107,3,107,3583,8,107,5,107,3585,8,107,10,107,12,107,3588,9,107,1,107,1,107,1,107,3,107,3593,8,107,1,107,1,107,3,107,3597,8,107,1,108,1,108,1,108,1,108,3,108,3603,8,108,1,108,3,108,3606,8,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,3,109,3618,8,109,1,109,1,109,3,109,3622,8,109,1,109,1,109,3,109,3626,8,109,1,110,1,110,1,110,1,110,1,110,1,110,3,110,3634,8,110,1,110,1,110,3,110,3638,8,110,1,111,1,111,1,111,1,111,1,112,1,112,3,112,3646,8,112,1,112,3,112,3649,8,112,1,112,1,112,3,112,3653,8,112,1,112,3,112,3656,8,112,1,112,1,112,1,112,1,112,5,112,3662,8,112,10,112,12,112,3665,9,112,1,112,1,112,3,112,3669,8,112,1,112,3,112,3672,8,112,1,112,3,112,3675,8,112,1,113,1,113,3,113,3679,8,113,1,113,3,113,3682,8,113,1,113,1,113,1,113,1,113,1,113,5,113,3689,8,113,10,113,12,113,3692,9,113,1,113,1,113,3,113,3696,8,113,1,114,1,114,1,114,1,114,1,114,5,114,3703,8,114,10,114,12,114,3706,9,114,1,115,1,115,3,115,3710,8,115,1,116,1,116,1,116,5,116,3715,8,116,10,116,12,116,3718,9,116,1,117,1,117,5,117,3722,8,117,10,117,12,117,3725,9,117,1,117,1,117,1,117,5,117,3730,8,117,10,117,12,117,3733,9,117,1,117,1,117,1,117,3,117,3738,8,117,1,118,1,118,1,118,1,118,1,118,1,118,3,118,3746,8,118,1,118,3,118,3749,8,118,1,118,3,118,3752,8,118,1,118,1,118,1,118,5,118,3757,8,118,10,118,12,118,3760,9,118,3,118,3762,8,118,1,118,1,118,1,118,1,118,1,118,3,118,3769,8,118,1,118,1,118,1,118,1,118,1,118,1,118,3,118,3777,8,118,1,119,1,119,1,119,1,119,3,119,3783,8,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,3,120,3794,8,120,1,121,3,121,3797,8,121,1,121,1,121,3,121,3801,8,121,1,121,1,121,5,121,3805,8,121,10,121,12,121,3808,9,121,1,121,1,121,1,121,1,121,5,121,3814,8,121,10,121,12,121,3817,9,121,1,121,1,121,3,121,3821,8,121,1,121,1,121,3,121,3825,8,121,1,121,1,121,5,121,3829,8,121,10,121,12,121,3832,9,121,1,121,1,121,1,121,3,121,3837,8,121,3,121,3839,8,121,1,121,1,121,3,121,3843,8,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,3,122,3852,8,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,3,123,3862,8,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,3,124,3872,8,124,1,125,1,125,5,125,3876,8,125,10,125,12,125,3879,9,125,1,125,1,125,3,125,3883,8,125,1,125,1,125,3,125,3887,8,125,1,125,3,125,3890,8,125,1,125,3,125,3893,8,125,1,125,3,125,3896,8,125,1,125,3,125,3899,8,125,1,125,1,125,5,125,3903,8,125,10,125,12,125,3906,9,125,1,125,1,125,1,125,3,125,3911,8,125,1,125,3,125,3914,8,125,1,125,3,125,3917,8,125,1,125,3,125,3920,8,125,1,125,3,125,3923,8,125,1,125,3,125,3926,8,125,3,125,3928,8,125,1,126,1,126,5,126,3932,8,126,10,126,12,126,3935,9,126,1,126,1,126,1,126,3,126,3940,8,126,1,126,3,126,3943,8,126,1,126,3,126,3946,8,126,1,126,3,126,3949,8,126,1,126,3,126,3952,8,126,1,126,3,126,3955,8,126,1,127,1,127,3,127,3959,8,127,1,127,1,127,1,128,1,128,3,128,3965,8,128,1,128,1,128,3,128,3969,8,128,1,129,1,129,1,129,1,129,1,129,1,129,3,129,3977,8,129,1,129,1,129,3,129,3981,8,129,1,129,3,129,3984,8,129,3,129,3986,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,3999,8,130,1,130,3,130,4002,8,130,1,131,1,131,1,131,5,131,4007,8,131,10,131,12,131,4010,9,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,3,132,4019,8,132,1,132,3,132,4022,8,132,1,132,1,132,1,132,3,132,4027,8,132,3,132,4029,8,132,1,132,1,132,3,132,4033,8,132,1,132,1,132,1,132,1,132,1,132,1,132,3,132,4041,8,132,1,133,1,133,1,133,1,133,3,133,4047,8,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,3,134,4056,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,4069,8,135,1,136,1,136,3,136,4073,8,136,1,136,1,136,5,136,4077,8,136,10,136,12,136,4080,9,136,1,137,3,137,4083,8,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,3,138,4093,8,138,1,138,1,138,3,138,4097,8,138,1,138,1,138,3,138,4101,8,138,1,138,1,138,3,138,4105,8,138,3,138,4107,8,138,1,139,1,139,1,139,1,139,5,139,4113,8,139,10,139,12,139,4116,9,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,3,139,4127,8,139,1,139,1,139,4,139,4131,8,139,11,139,12,139,4132,3,139,4135,8,139,1,139,1,139,4,139,4139,8,139,11,139,12,139,4140,3,139,4143,8,139,3,139,4145,8,139,1,140,1,140,1,140,1,140,3,140,4151,8,140,1,140,1,140,1,140,1,140,1,140,1,140,3,140,4159,8,140,1,141,1,141,1,141,1,141,1,141,1,141,3,141,4167,8,141,1,142,1,142,3,142,4171,8,142,1,142,1,142,3,142,4175,8,142,1,143,1,143,1,143,1,143,1,143,5,143,4182,8,143,10,143,12,143,4185,9,143,1,143,1,143,3,143,4189,8,143,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,5,145,4207,8,145,10,145,12,145,4210,9,145,1,146,1,146,3,146,4214,8,146,1,147,1,147,1,147,1,147,3,147,4220,8,147,1,147,1,147,1,147,1,147,1,147,3,147,4227,8,147,1,148,1,148,1,148,3,148,4232,8,148,1,149,1,149,1,149,1,149,1,149,5,149,4239,8,149,10,149,12,149,4242,9,149,3,149,4244,8,149,1,150,1,150,3,150,4248,8,150,1,151,1,151,3,151,4252,8,151,1,151,1,151,3,151,4256,8,151,1,151,3,151,4259,8,151,1,151,3,151,4262,8,151,1,151,3,151,4265,8,151,1,152,1,152,3,152,4269,8,152,1,152,1,152,3,152,4273,8,152,1,152,3,152,4276,8,152,1,152,3,152,4279,8,152,1,152,3,152,4282,8,152,1,153,1,153,1,153,1,154,1,154,3,154,4289,8,154,1,154,1,154,3,154,4293,8,154,1,154,1,154,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,5,156,4306,8,156,10,156,12,156,4309,9,156,1,156,3,156,4312,8,156,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,159,1,159,3,159,4324,8,159,1,159,1,159,1,159,1,159,5,159,4330,8,159,10,159,12,159,4333,9,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,3,160,4342,8,160,1,161,1,161,3,161,4346,8,161,1,161,3,161,4349,8,161,1,161,1,161,1,162,1,162,3,162,4355,8,162,1,162,3,162,4358,8,162,1,162,3,162,4361,8,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,3,163,4370,8,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,3,164,4379,8,164,1,165,1,165,1,165,1,165,1,165,1,165,5,165,4387,8,165,10,165,12,165,4390,9,165,1,165,3,165,4393,8,165,1,166,1,166,1,166,1,166,1,166,1,166,5,166,4401,8,166,10,166,12,166,4404,9,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,3,167,4413,8,167,1,168,1,168,1,168,1,169,1,169,1,169,3,169,4421,8,169,1,169,3,169,4424,8,169,1,170,1,170,1,170,1,170,1,170,5,170,4431,8,170,10,170,12,170,4434,9,170,3,170,4436,8,170,1,170,1,170,3,170,4440,8,170,1,170,5,170,4443,8,170,10,170,12,170,4446,9,170,1,170,3,170,4449,8,170,1,171,1,171,1,171,1,171,1,171,5,171,4456,8,171,10,171,12,171,4459,9,171,3,171,4461,8,171,1,172,1,172,1,172,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,5,174,4490,8,174,10,174,12,174,4493,9,174,3,174,4495,8,174,1,174,3,174,4498,8,174,1,175,1,175,1,176,1,176,1,177,1,177,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,179,5,179,4552,8,179,10,179,12,179,4555,9,179,1,179,1,179,3,179,4559,8,179,1,180,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,4587,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,4601,8,183,1,184,1,184,1,184,5,184,4606,8,184,10,184,12,184,4609,9,184,1,184,3,184,4612,8,184,1,185,1,185,1,185,1,185,3,185,4618,8,185,1,186,1,186,1,186,1,186,1,186,1,186,3,186,4626,8,186,3,186,4628,8,186,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,188,1,188,3,188,4639,8,188,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,3,190,4649,8,190,1,191,1,191,1,191,1,191,1,191,3,191,4656,8,191,1,192,1,192,1,192,1,192,3,192,4662,8,192,1,193,1,193,1,193,1,193,1,194,1,194,3,194,4670,8,194,1,195,1,195,1,195,3,195,4675,8,195,1,195,1,195,1,195,1,195,5,195,4681,8,195,10,195,12,195,4684,9,195,1,195,1,195,1,195,5,195,4689,8,195,10,195,12,195,4692,9,195,1,195,1,195,1,195,5,195,4697,8,195,10,195,12,195,4700,9,195,1,195,1,195,1,195,5,195,4705,8,195,10,195,12,195,4708,9,195,1,195,5,195,4711,8,195,10,195,12,195,4714,9,195,1,195,1,195,3,195,4718,8,195,1,196,1,196,1,196,3,196,4723,8,196,1,196,4,196,4726,8,196,11,196,12,196,4727,1,196,1,196,4,196,4732,8,196,11,196,12,196,4733,3,196,4736,8,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,4,197,4745,8,197,11,197,12,197,4746,1,197,5,197,4750,8,197,10,197,12,197,4753,9,197,1,197,1,197,4,197,4757,8,197,11,197,12,197,4758,3,197,4761,8,197,1,197,1,197,1,197,1,198,1,198,1,198,1,199,1,199,1,199,1,200,1,200,1,200,3,200,4775,8,200,1,200,1,200,4,200,4779,8,200,11,200,12,200,4780,1,200,1,200,1,200,3,200,4786,8,200,1,201,1,201,1,201,3,201,4791,8,201,1,201,1,201,4,201,4795,8,201,11,201,12,201,4796,1,201,1,201,1,201,1,201,1,201,3,201,4804,8,201,1,202,1,202,1,202,1,203,1,203,1,203,3,203,4812,8,203,1,203,1,203,1,203,1,203,4,203,4818,8,203,11,203,12,203,4819,1,203,1,203,1,203,3,203,4825,8,203,1,204,1,204,1,204,1,204,3,204,4831,8,204,1,204,3,204,4834,8,204,1,204,1,204,1,204,1,204,1,204,1,204,3,204,4842,8,204,1,205,1,205,1,205,1,205,1,205,3,205,4849,8,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,3,206,4858,8,206,1,206,3,206,4861,8,206,1,207,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,208,1,208,5,208,4876,8,208,10,208,12,208,4879,9,208,1,208,1,208,1,209,1,209,1,209,3,209,4886,8,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,4894,8,209,1,210,1,210,3,210,4898,8,210,1,210,1,210,1,211,1,211,1,211,3,211,4905,8,211,1,211,1,211,4,211,4909,8,211,11,211,12,211,4910,1,212,1,212,1,212,1,212,4,212,4917,8,212,11,212,12,212,4918,1,213,1,213,1,213,1,213,1,213,5,213,4926,8,213,10,213,12,213,4929,9,213,1,213,1,213,1,213,3,213,4934,8,213,1,213,1,213,1,213,1,213,1,213,3,213,4941,8,213,1,213,5,213,4944,8,213,10,213,12,213,4947,9,213,3,213,4949,8,213,3,213,4951,8,213,1,213,1,213,4,213,4955,8,213,11,213,12,213,4956,3,213,4959,8,213,1,213,1,213,5,213,4963,8,213,10,213,12,213,4966,9,213,1,213,1,213,1,213,1,213,3,213,4972,8,213,1,213,1,213,1,213,3,213,4977,8,213,1,213,1,213,1,213,1,213,1,213,3,213,4984,8,213,1,214,1,214,1,214,1,214,1,214,1,214,3,214,4992,8,214,1,214,1,214,1,214,1,214,3,214,4998,8,214,1,214,1,214,1,214,1,214,3,214,5004,8,214,1,214,5,214,5007,8,214,10,214,12,214,5010,9,214,3,214,5012,8,214,3,214,5014,8,214,1,214,1,214,4,214,5018,8,214,11,214,12,214,5019,3,214,5022,8,214,1,214,1,214,5,214,5026,8,214,10,214,12,214,5029,9,214,1,214,1,214,1,214,1,214,3,214,5035,8,214,3,214,5037,8,214,1,215,1,215,1,215,3,215,5042,8,215,1,215,1,215,1,216,1,216,1,216,1,216,5,216,5050,8,216,10,216,12,216,5053,9,216,1,216,1,216,3,216,5057,8,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,3,216,5066,8,216,1,216,5,216,5069,8,216,10,216,12,216,5072,9,216,3,216,5074,8,216,3,216,5076,8,216,1,216,1,216,1,216,1,216,5,216,5082,8,216,10,216,12,216,5085,9,216,3,216,5087,8,216,1,216,1,216,1,216,1,216,1,216,1,216,3,216,5095,8,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,3,216,5104,8,216,3,216,5106,8,216,1,217,1,217,1,217,1,217,1,217,3,217,5113,8,217,1,217,3,217,5116,8,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,5,218,5126,8,218,10,218,12,218,5129,9,218,1,218,1,218,1,218,3,218,5134,8,218,1,219,1,219,1,219,1,219,1,219,5,219,5141,8,219,10,219,12,219,5144,9,219,1,220,1,220,1,220,1,220,5,220,5150,8,220,10,220,12,220,5153,9,220,1,220,1,220,3,220,5157,8,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,5166,8,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,5,220,5177,8,220,10,220,12,220,5180,9,220,3,220,5182,8,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,5,221,5192,8,221,10,221,12,221,5195,9,221,1,222,1,222,1,222,1,222,3,222,5201,8,222,1,222,1,222,1,222,3,222,5206,8,222,1,223,1,223,1,223,1,224,1,224,1,224,5,224,5214,8,224,10,224,12,224,5217,9,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,3,225,5244,8,225,1,226,1,226,3,226,5248,8,226,1,226,1,226,1,226,3,226,5253,8,226,1,227,1,227,1,227,1,227,1,227,3,227,5260,8,227,1,227,3,227,5263,8,227,1,227,1,227,1,227,1,227,3,227,5269,8,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,3,228,5279,8,228,1,229,1,229,1,229,1,229,1,229,1,229,1,229,1,229,3,229,5289,8,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,3,230,5299,8,230,1,230,1,230,1,230,1,230,3,230,5305,8,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,3,230,5314,8,230,1,230,1,230,1,230,1,230,3,230,5320,8,230,1,230,1,230,1,230,1,230,1,230,3,230,5327,8,230,3,230,5329,8,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,3,232,5339,8,232,1,233,1,233,3,233,5343,8,233,1,233,1,233,3,233,5347,8,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,5357,8,233,1,233,1,233,1,233,3,233,5362,8,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,5434,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,1,234,3,234,5452,8,234,1,235,1,235,1,235,1,235,1,236,1,236,3,236,5460,8,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,236,5,236,5470,8,236,10,236,12,236,5473,9,236,1,236,1,236,1,236,1,236,3,236,5479,8,236,3,236,5481,8,236,1,236,1,236,1,236,1,236,1,236,1,236,5,236,5489,8,236,10,236,12,236,5492,9,236,3,236,5494,8,236,1,237,1,237,1,237,1,237,5,237,5500,8,237,10,237,12,237,5503,9,237,1,238,1,238,1,238,1,238,3,238,5509,8,238,1,239,1,239,3,239,5513,8,239,1,239,1,239,1,239,1,240,1,240,3,240,5520,8,240,1,240,1,240,1,240,3,240,5525,8,240,1,240,3,240,5528,8,240,1,240,3,240,5531,8,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,3,241,5540,8,241,1,242,1,242,3,242,5544,8,242,1,242,1,242,3,242,5548,8,242,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,3,245,5571,8,245,1,245,1,245,1,245,1,245,1,245,3,245,5578,8,245,5,245,5580,8,245,10,245,12,245,5583,9,245,1,245,1,245,1,245,1,245,3,245,5589,8,245,1,245,1,245,1,245,1,245,1,245,3,245,5596,8,245,1,245,3,245,5599,8,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,5,245,5613,8,245,10,245,12,245,5616,9,245,3,245,5618,8,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,5628,8,246,1,246,1,246,3,246,5632,8,246,1,246,1,246,1,246,1,246,3,246,5638,8,246,1,246,3,246,5641,8,246,1,246,1,246,1,246,3,246,5646,8,246,1,246,1,246,3,246,5650,8,246,1,246,1,246,1,246,1,246,1,246,3,246,5657,8,246,1,246,3,246,5660,8,246,1,246,1,246,1,246,1,246,3,246,5666,8,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,5698,8,246,1,246,3,246,5701,8,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,5713,8,246,1,246,3,246,5716,8,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,5726,8,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,5734,8,246,1,246,1,246,3,246,5738,8,246,1,246,1,246,1,246,1,246,1,246,3,246,5745,8,246,1,246,3,246,5748,8,246,1,246,1,246,1,246,1,246,1,246,5,246,5755,8,246,10,246,12,246,5758,9,246,1,246,1,246,1,246,3,246,5763,8,246,1,246,1,246,1,246,1,246,3,246,5769,8,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,3,246,5779,8,246,3,246,5781,8,246,1,247,1,247,1,247,1,247,3,247,5787,8,247,1,247,3,247,5790,8,247,1,247,3,247,5793,8,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,3,248,5805,8,248,1,248,3,248,5808,8,248,1,249,1,249,1,249,1,249,3,249,5814,8,249,1,250,3,250,5817,8,250,1,250,1,250,1,250,1,250,1,250,1,250,3,250,5825,8,250,1,250,1,250,1,250,1,250,1,250,1,250,3,250,5833,8,250,1,251,1,251,1,251,1,251,3,251,5839,8,251,1,251,1,251,3,251,5843,8,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,3,252,5857,8,252,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,5,254,5867,8,254,10,254,12,254,5870,9,254,1,254,1,254,1,254,1,254,3,254,5876,8,254,1,254,3,254,5879,8,254,1,254,1,254,1,254,1,255,1,255,3,255,5886,8,255,1,255,1,255,1,255,5,255,5891,8,255,10,255,12,255,5894,9,255,1,256,1,256,3,256,5898,8,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,5,257,5909,8,257,10,257,12,257,5912,9,257,1,258,1,258,1,258,1,258,1,259,1,259,1,260,1,260,3,260,5922,8,260,1,260,1,260,1,260,1,260,3,260,5928,8,260,1,261,1,261,1,261,3,261,5933,8,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,3,261,5946,8,261,3,261,5948,8,261,1,261,1,261,1,261,3,261,5953,8,261,1,261,1,261,3,261,5957,8,261,1,261,3,261,5960,8,261,3,261,5962,8,261,1,262,1,262,1,262,1,262,1,262,3,262,5969,8,262,1,263,1,263,1,263,1,263,1,263,3,263,5976,8,263,1,263,3,263,5979,8,263,1,263,3,263,5982,8,263,1,263,1,263,1,263,1,263,3,263,5988,8,263,1,263,1,263,3,263,5992,8,263,1,264,1,264,1,264,1,264,3,264,5998,8,264,1,265,1,265,1,265,1,265,3,265,6004,8,265,1,265,1,265,1,266,1,266,1,266,1,267,1,267,1,267,1,268,1,268,1,268,3,268,6017,8,268,1,268,1,268,1,268,3,268,6022,8,268,1,268,1,268,1,268,1,268,5,268,6028,8,268,10,268,12,268,6031,9,268,3,268,6033,8,268,1,269,1,269,1,269,3,269,6038,8,269,1,269,1,269,1,269,3,269,6043,8,269,1,269,1,269,1,269,1,269,5,269,6049,8,269,10,269,12,269,6052,9,269,3,269,6054,8,269,1,270,1,270,1,270,1,270,1,270,1,270,3,270,6062,8,270,1,271,1,271,3,271,6066,8,271,1,271,1,271,1,271,5,271,6071,8,271,10,271,12,271,6074,9,271,1,272,1,272,1,272,3,272,6079,8,272,1,272,3,272,6082,8,272,1,273,1,273,3,273,6086,8,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,5,273,6097,8,273,10,273,12,273,6100,9,273,1,273,1,273,1,273,3,273,6105,8,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,5,273,6115,8,273,10,273,12,273,6118,9,273,3,273,6120,8,273,1,274,1,274,1,275,1,275,1,275,1,275,1,275,3,275,6129,8,275,1,275,1,275,1,275,3,275,6134,8,275,1,276,1,276,1,276,1,276,3,276,6140,8,276,1,277,1,277,1,278,1,278,1,278,5,278,6147,8,278,10,278,12,278,6150,9,278,1,279,1,279,3,279,6154,8,279,1,280,1,280,1,280,5,280,6159,8,280,10,280,12,280,6162,9,280,1,281,1,281,1,281,5,281,6167,8,281,10,281,12,281,6170,9,281,1,282,1,282,1,283,1,283,1,283,5,283,6177,8,283,10,283,12,283,6180,9,283,1,284,1,284,1,285,1,285,1,285,3,285,6187,8,285,3,285,6189,8,285,1,285,3,285,6192,8,285,1,285,1,285,3,285,6196,8,285,3,285,6198,8,285,1,286,1,286,1,287,1,287,1,288,1,288,1,289,1,289,1,290,1,290,1,290,5,290,6211,8,290,10,290,12,290,6214,9,290,1,291,1,291,3,291,6218,8,291,1,291,1,291,1,291,1,291,3,291,6224,8,291,1,291,3,291,6227,8,291,1,291,3,291,6230,8,291,1,292,1,292,1,292,1,292,3,292,6236,8,292,1,293,1,293,1,294,1,294,1,294,5,294,6243,8,294,10,294,12,294,6246,9,294,1,295,1,295,1,295,1,295,1,295,3,295,6253,8,295,1,296,1,296,1,297,1,297,1,298,1,298,1,298,1,298,3,298,6263,8,298,1,299,1,299,3,299,6267,8,299,1,300,1,300,1,300,3,300,6272,8,300,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,302,4,302,6290,8,302,11,302,12,302,6291,1,303,1,303,1,303,1,303,1,303,3,303,6299,8,303,3,303,6301,8,303,1,304,1,304,1,304,4,304,6306,8,304,11,304,12,304,6307,3,304,6310,8,304,1,305,1,305,3,305,6314,8,305,1,306,1,306,1,306,3,306,6319,8,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,1,307,3,307,6330,8,307,1,308,1,308,1,308,3,308,6335,8,308,1,309,1,309,1,310,1,310,3,310,6341,8,310,1,311,3,311,6344,8,311,1,311,1,311,3,311,6348,8,311,1,311,4,311,6351,8,311,11,311,12,311,6352,1,311,3,311,6356,8,311,1,311,1,311,3,311,6360,8,311,1,311,1,311,3,311,6364,8,311,3,311,6366,8,311,1,312,1,312,1,313,3,313,6371,8,313,1,313,1,313,1,314,3,314,6376,8,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,3,315,6389,8,315,1,315,3,315,6392,8,315,1,316,1,316,3,316,6396,8,316,1,316,3,316,6399,8,316,1,316,3,316,6402,8,316,1,316,1,316,1,316,3,316,6407,8,316,1,316,1,316,1,316,3,316,6412,8,316,1,316,1,316,1,316,1,316,3,316,6418,8,316,1,316,3,316,6421,8,316,1,316,1,316,1,316,3,316,6426,8,316,1,316,3,316,6429,8,316,1,316,1,316,1,316,3,316,6434,8,316,1,316,3,316,6437,8,316,1,316,1,316,3,316,6441,8,316,1,316,5,316,6444,8,316,10,316,12,316,6447,9,316,1,316,1,316,3,316,6451,8,316,1,316,5,316,6454,8,316,10,316,12,316,6457,9,316,1,316,1,316,3,316,6461,8,316,1,316,3,316,6464,8,316,1,316,5,316,6467,8,316,10,316,12,316,6470,9,316,1,316,1,316,3,316,6474,8,316,1,316,5,316,6477,8,316,10,316,12,316,6480,9,316,1,316,1,316,1,316,3,316,6485,8,316,1,316,1,316,1,316,3,316,6490,8,316,1,316,1,316,1,316,3,316,6495,8,316,1,316,1,316,1,316,3,316,6500,8,316,1,316,1,316,3,316,6504,8,316,1,316,3,316,6507,8,316,1,316,1,316,1,316,3,316,6512,8,316,1,316,1,316,3,316,6516,8,316,1,316,1,316,3,316,6520,8,316,1,317,1,317,1,317,1,317,5,317,6526,8,317,10,317,12,317,6529,9,317,1,317,1,317,1,318,1,318,3,318,6535,8,318,1,318,1,318,3,318,6539,8,318,1,318,1,318,1,318,3,318,6544,8,318,1,318,1,318,1,318,3,318,6549,8,318,1,318,1,318,3,318,6553,8,318,3,318,6555,8,318,1,318,3,318,6558,8,318,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,3,321,6574,8,321,1,321,1,321,1,322,1,322,1,322,5,322,6581,8,322,10,322,12,322,6584,9,322,1,323,1,323,1,323,5,323,6589,8,323,10,323,12,323,6592,9,323,1,324,1,324,1,324,5,324,6597,8,324,10,324,12,324,6600,9,324,1,325,1,325,1,325,1,325,5,325,6606,8,325,10,325,12,325,6609,9,325,1,325,1,325,1,326,1,326,1,326,5,326,6616,8,326,10,326,12,326,6619,9,326,1,327,1,327,1,327,5,327,6624,8,327,10,327,12,327,6627,9,327,1,328,1,328,1,328,5,328,6632,8,328,10,328,12,328,6635,9,328,1,329,1,329,1,329,5,329,6640,8,329,10,329,12,329,6643,9,329,1,330,1,330,1,330,5,330,6648,8,330,10,330,12,330,6651,9,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,331,3,331,6662,8,331,1,331,1,331,1,331,1,331,1,331,3,331,6669,8,331,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,331,3,331,6679,8,331,1,332,1,332,1,332,3,332,6684,8,332,1,332,3,332,6687,8,332,1,332,1,332,1,332,3,332,6692,8,332,1,332,3,332,6695,8,332,1,333,1,333,3,333,6699,8,333,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,337,1,337,1,337,3,337,6714,8,337,1,338,1,338,1,338,1,338,1,338,1,338,3,338,6722,8,338,1,338,1,338,1,338,1,338,1,338,3,338,6729,8,338,1,338,1,338,1,338,3,338,6734,8,338,1,339,1,339,1,339,3,339,6739,8,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,4,339,6771,8,339,11,339,12,339,6772,1,339,1,339,3,339,6777,8,339,1,339,1,339,1,339,1,339,4,339,6783,8,339,11,339,12,339,6784,1,339,1,339,3,339,6789,8,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6798,8,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6806,8,339,1,339,1,339,1,339,3,339,6811,8,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6819,8,339,1,339,1,339,1,339,3,339,6824,8,339,1,339,1,339,1,339,3,339,6829,8,339,3,339,6831,8,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6840,8,339,1,339,1,339,1,339,3,339,6845,8,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6853,8,339,1,339,1,339,1,339,3,339,6858,8,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6866,8,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6874,8,339,1,339,3,339,6877,8,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6887,8,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,3,339,6905,8,339,1,339,3,339,6908,8,339,1,339,3,339,6911,8,339,1,339,1,339,3,339,6915,8,339,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,5,341,6926,8,341,10,341,12,341,6929,9,341,1,341,1,341,1,341,1,341,1,341,3,341,6936,8,341,1,342,1,342,3,342,6940,8,342,1,343,1,343,1,343,3,343,6945,8,343,1,343,1,343,1,343,3,343,6950,8,343,1,343,1,343,1,343,1,343,3,343,6956,8,343,1,343,1,343,1,343,3,343,6961,8,343,1,343,1,343,3,343,6965,8,343,1,343,1,343,1,343,3,343,6970,8,343,1,343,1,343,1,343,3,343,6975,8,343,1,343,1,343,1,343,3,343,6980,8,343,1,343,1,343,1,343,1,343,1,343,1,343,5,343,6988,8,343,10,343,12,343,6991,9,343,3,343,6993,8,343,1,343,1,343,3,343,6997,8,343,1,343,1,343,3,343,7001,8,343,1,344,1,344,1,344,1,344,1,344,3,344,7008,8,344,1,344,1,344,3,344,7012,8,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,344,3,344,7041,8,344,1,345,1,345,1,345,1,345,1,345,1,345,3,345,7049,8,345,1,346,3,346,7052,8,346,1,346,3,346,7055,8,346,1,346,3,346,7058,8,346,1,346,3,346,7061,8,346,1,347,1,347,1,348,1,348,1,348,1,349,1,349,1,350,1,350,3,350,7072,8,350,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,352,1,352,3,352,7086,8,352,1,353,1,353,1,353,1,353,1,353,5,353,7093,8,353,10,353,12,353,7096,9,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,3,354,7122,8,354,1,355,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,3,356,7133,8,356,1,356,1,356,1,356,1,356,1,356,3,356,7140,8,356,5,356,7142,8,356,10,356,12,356,7145,9,356,1,357,1,357,1,357,1,357,3,357,7151,8,357,1,358,1,358,1,358,1,358,1,358,1,358,3,358,7159,8,358,1,358,1,358,1,358,3,358,7164,8,358,1,358,1,358,1,358,1,358,5,358,7170,8,358,10,358,12,358,7173,9,358,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,3,359,7184,8,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,3,359,7197,8,359,1,359,1,359,1,359,1,359,3,359,7203,8,359,1,359,1,359,1,359,1,359,3,359,7209,8,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,3,359,7225,8,359,1,359,1,359,1,359,1,359,3,359,7231,8,359,1,359,1,359,1,359,1,359,1,359,1,359,1,359,5,359,7240,8,359,10,359,12,359,7243,9,359,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,5,360,7262,8,360,10,360,12,360,7265,9,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,4,360,7274,8,360,11,360,12,360,7275,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,3,360,7293,8,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,5,360,7314,8,360,10,360,12,360,7317,9,360,1,361,1,361,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,1,362,3,362,7335,8,362,1,363,1,363,1,363,1,363,1,363,1,363,1,363,3,363,7344,8,363,1,364,1,364,1,364,1,364,1,364,1,364,1,364,3,364,7353,8,364,1,365,1,365,1,366,1,366,1,367,1,367,1,367,1,367,1,367,3,367,7364,8,367,1,368,1,368,1,369,1,369,1,370,1,370,1,371,1,371,1,372,1,372,1,373,1,373,1,374,1,374,1,374,0,3,716,718,720,375,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,0,145,2,0,39,39,150,150,2,0,531,531,537,537,3,0,69,69,159,159,181,181,3,0,42,42,384,384,454,454,4,0,42,42,419,419,529,529,611,611,2,0,514,514,1148,1148,2,0,78,78,141,141,2,0,15,15,334,334,3,0,44,44,85,85,184,184,2,0,434,434,558,558,3,0,506,506,650,650,658,658,2,0,392,392,460,460,2,0,352,352,474,474,2,0,42,42,1138,1139,2,0,350,350,443,443,2,0,459,459,673,673,3,0,80,80,84,84,125,125,3,0,42,42,402,402,431,431,3,0,42,42,398,398,792,792,2,0,637,637,672,672,2,0,81,81,91,91,3,0,436,436,548,548,613,613,2,0,69,69,159,159,1,0,356,357,1,0,1138,1139,2,0,1148,1148,1156,1156,2,0,81,81,388,388,2,0,545,545,1148,1148,2,0,546,546,1148,1148,3,0,430,430,469,469,521,521,7,0,42,42,370,370,372,372,402,402,431,431,573,573,1156,1156,2,0,514,514,530,530,1,0,1139,1140,2,0,5,5,51,51,4,0,42,42,384,384,454,454,458,458,2,0,26,26,30,30,2,0,12,12,175,175,2,0,192,192,677,677,2,0,21,21,144,144,3,0,43,43,75,75,106,106,2,0,106,106,374,374,2,0,365,365,427,427,2,0,101,101,601,601,2,0,43,43,106,106,2,0,6,6,49,49,2,0,188,188,669,669,4,0,430,430,469,469,520,520,562,562,2,0,430,430,520,520,2,0,13,13,45,45,3,0,66,66,78,78,186,186,2,0,34,34,83,83,2,0,97,97,148,148,2,0,6,6,49,50,1,0,626,627,2,0,172,172,742,742,2,0,439,439,609,609,2,0,226,226,477,477,5,0,107,107,482,483,485,485,489,497,575,575,4,0,479,480,484,484,486,487,576,576,3,0,108,108,478,478,488,488,2,0,462,462,628,628,2,0,622,622,624,624,2,0,344,344,629,629,2,0,90,90,591,591,2,0,51,51,390,390,3,0,31,31,61,61,179,179,3,0,131,131,172,172,437,437,3,0,12,12,19,19,187,187,2,0,42,42,121,121,2,0,103,103,182,182,2,0,360,360,614,614,2,0,40,40,671,671,2,0,115,115,474,474,2,0,422,422,568,568,4,0,206,206,208,208,214,214,638,638,2,0,1108,1108,1124,1124,2,0,345,345,577,577,2,0,68,68,80,80,3,0,131,131,415,415,437,437,2,0,172,172,671,671,2,0,513,513,634,634,2,0,412,412,675,675,2,0,131,131,437,437,3,0,81,81,92,92,452,452,3,0,439,439,474,474,609,609,2,0,634,634,670,670,2,0,376,376,567,567,6,0,226,226,409,409,411,411,438,438,574,574,615,615,2,0,45,46,62,62,3,0,422,422,550,550,885,885,2,0,466,466,652,652,10,0,359,359,367,367,378,380,387,387,507,507,515,515,639,639,646,646,836,836,1005,1005,2,0,35,35,168,168,2,0,117,117,996,996,11,0,359,359,367,367,378,380,387,387,507,507,515,515,592,592,639,639,646,646,836,836,1005,1005,2,0,1137,1137,1158,1159,1,0,1159,1160,2,0,375,375,787,798,3,0,1138,1140,1149,1149,1151,1151,2,0,63,63,178,178,2,0,116,116,1152,1152,5,0,25,25,222,224,231,231,233,236,518,518,2,0,25,25,222,222,2,0,25,25,222,223,1,0,196,207,3,0,183,183,195,195,612,612,2,0,211,216,431,431,6,0,217,217,228,228,230,230,232,232,239,239,348,349,4,0,218,221,226,227,229,229,346,346,2,0,153,153,237,237,2,0,466,466,803,811,3,0,211,211,226,226,518,518,6,0,200,200,206,206,209,209,217,218,220,221,466,466,1,0,214,215,2,0,183,183,612,612,2,0,200,200,206,206,2,0,315,316,322,322,3,0,150,150,313,316,331,331,1,0,325,326,3,0,17,17,95,95,176,176,2,0,222,222,226,226,2,0,217,218,220,220,3,0,13,13,45,45,994,994,3,0,286,286,298,299,309,309,3,0,287,289,305,308,310,312,2,0,295,295,297,297,2,0,293,293,296,296,2,0,291,292,302,304,2,0,133,133,601,601,2,0,433,433,559,559,2,0,535,535,551,551,2,0,114,114,1127,1127,3,0,63,63,178,178,662,662,2,0,137,137,149,149,3,0,6,6,337,337,618,618,3,0,114,114,1120,1121,1127,1128,2,0,1117,1119,1122,1123,1,0,1120,1121,2,0,226,226,746,786,1,0,799,802,5,0,708,709,725,727,733,733,739,740,742,742,1,0,689,696,3,0,217,221,234,234,237,237,59,0,11,11,14,14,18,18,29,29,35,35,37,37,42,42,48,48,55,55,57,57,59,59,73,73,79,79,94,94,117,117,121,121,124,124,130,130,158,158,168,168,239,239,283,290,294,294,298,299,305,312,332,385,387,403,405,405,407,432,434,450,452,458,460,521,523,523,527,544,547,558,560,589,591,592,594,606,608,636,638,672,674,675,677,682,684,688,697,697,699,707,710,712,717,718,720,724,728,732,734,734,736,738,741,741,743,745,792,792,836,836,875,875,1e3,1e3,1005,1005,1088,1088,23,0,39,39,97,97,148,148,150,150,217,219,221,221,251,282,290,293,295,297,300,304,324,324,459,459,673,673,689,696,736,736,803,803,806,835,837,874,876,999,1001,1004,1006,1087,1089,1107,1123,1123,8658,0,751,1,0,0,0,2,763,1,0,0,0,4,772,1,0,0,0,6,812,1,0,0,0,8,827,1,0,0,0,10,838,1,0,0,0,12,855,1,0,0,0,14,860,1,0,0,0,16,872,1,0,0,0,18,899,1,0,0,0,20,908,1,0,0,0,22,910,1,0,0,0,24,922,1,0,0,0,26,952,1,0,0,0,28,988,1,0,0,0,30,1039,1,0,0,0,32,1065,1,0,0,0,34,1101,1,0,0,0,36,1108,1,0,0,0,38,1205,1,0,0,0,40,1207,1,0,0,0,42,1225,1,0,0,0,44,1286,1,0,0,0,46,1308,1,0,0,0,48,1314,1,0,0,0,50,1336,1,0,0,0,52,1338,1,0,0,0,54,1340,1,0,0,0,56,1420,1,0,0,0,58,1427,1,0,0,0,60,1429,1,0,0,0,62,1434,1,0,0,0,64,1474,1,0,0,0,66,1480,1,0,0,0,68,1482,1,0,0,0,70,1503,1,0,0,0,72,1510,1,0,0,0,74,1512,1,0,0,0,76,1537,1,0,0,0,78,1540,1,0,0,0,80,1545,1,0,0,0,82,1571,1,0,0,0,84,1587,1,0,0,0,86,1589,1,0,0,0,88,1611,1,0,0,0,90,1613,1,0,0,0,92,1679,1,0,0,0,94,1750,1,0,0,0,96,1752,1,0,0,0,98,1780,1,0,0,0,100,1790,1,0,0,0,102,1820,1,0,0,0,104,2007,1,0,0,0,106,2009,1,0,0,0,108,2011,1,0,0,0,110,2014,1,0,0,0,112,2089,1,0,0,0,114,2112,1,0,0,0,116,2260,1,0,0,0,118,2265,1,0,0,0,120,2267,1,0,0,0,122,2277,1,0,0,0,124,2333,1,0,0,0,126,2351,1,0,0,0,128,2353,1,0,0,0,130,2388,1,0,0,0,132,2397,1,0,0,0,134,2404,1,0,0,0,136,2427,1,0,0,0,138,2436,1,0,0,0,140,2451,1,0,0,0,142,2476,1,0,0,0,144,2496,1,0,0,0,146,2879,1,0,0,0,148,2979,1,0,0,0,150,2981,1,0,0,0,152,2988,1,0,0,0,154,2995,1,0,0,0,156,3018,1,0,0,0,158,3026,1,0,0,0,160,3033,1,0,0,0,162,3040,1,0,0,0,164,3047,1,0,0,0,166,3059,1,0,0,0,168,3069,1,0,0,0,170,3076,1,0,0,0,172,3092,1,0,0,0,174,3112,1,0,0,0,176,3114,1,0,0,0,178,3124,1,0,0,0,180,3128,1,0,0,0,182,3134,1,0,0,0,184,3146,1,0,0,0,186,3148,1,0,0,0,188,3155,1,0,0,0,190,3157,1,0,0,0,192,3215,1,0,0,0,194,3289,1,0,0,0,196,3348,1,0,0,0,198,3446,1,0,0,0,200,3450,1,0,0,0,202,3452,1,0,0,0,204,3487,1,0,0,0,206,3489,1,0,0,0,208,3497,1,0,0,0,210,3505,1,0,0,0,212,3507,1,0,0,0,214,3543,1,0,0,0,216,3598,1,0,0,0,218,3607,1,0,0,0,220,3627,1,0,0,0,222,3639,1,0,0,0,224,3643,1,0,0,0,226,3676,1,0,0,0,228,3697,1,0,0,0,230,3707,1,0,0,0,232,3711,1,0,0,0,234,3737,1,0,0,0,236,3776,1,0,0,0,238,3778,1,0,0,0,240,3793,1,0,0,0,242,3842,1,0,0,0,244,3851,1,0,0,0,246,3861,1,0,0,0,248,3871,1,0,0,0,250,3927,1,0,0,0,252,3929,1,0,0,0,254,3956,1,0,0,0,256,3962,1,0,0,0,258,3970,1,0,0,0,260,3987,1,0,0,0,262,4003,1,0,0,0,264,4040,1,0,0,0,266,4046,1,0,0,0,268,4055,1,0,0,0,270,4068,1,0,0,0,272,4072,1,0,0,0,274,4082,1,0,0,0,276,4106,1,0,0,0,278,4144,1,0,0,0,280,4158,1,0,0,0,282,4166,1,0,0,0,284,4170,1,0,0,0,286,4176,1,0,0,0,288,4190,1,0,0,0,290,4193,1,0,0,0,292,4211,1,0,0,0,294,4215,1,0,0,0,296,4231,1,0,0,0,298,4233,1,0,0,0,300,4245,1,0,0,0,302,4249,1,0,0,0,304,4266,1,0,0,0,306,4283,1,0,0,0,308,4286,1,0,0,0,310,4296,1,0,0,0,312,4300,1,0,0,0,314,4313,1,0,0,0,316,4316,1,0,0,0,318,4321,1,0,0,0,320,4341,1,0,0,0,322,4343,1,0,0,0,324,4360,1,0,0,0,326,4369,1,0,0,0,328,4378,1,0,0,0,330,4380,1,0,0,0,332,4394,1,0,0,0,334,4405,1,0,0,0,336,4414,1,0,0,0,338,4417,1,0,0,0,340,4425,1,0,0,0,342,4450,1,0,0,0,344,4462,1,0,0,0,346,4465,1,0,0,0,348,4497,1,0,0,0,350,4499,1,0,0,0,352,4501,1,0,0,0,354,4503,1,0,0,0,356,4505,1,0,0,0,358,4558,1,0,0,0,360,4560,1,0,0,0,362,4566,1,0,0,0,364,4586,1,0,0,0,366,4600,1,0,0,0,368,4611,1,0,0,0,370,4613,1,0,0,0,372,4619,1,0,0,0,374,4629,1,0,0,0,376,4633,1,0,0,0,378,4640,1,0,0,0,380,4644,1,0,0,0,382,4650,1,0,0,0,384,4657,1,0,0,0,386,4663,1,0,0,0,388,4669,1,0,0,0,390,4674,1,0,0,0,392,4719,1,0,0,0,394,4740,1,0,0,0,396,4765,1,0,0,0,398,4768,1,0,0,0,400,4774,1,0,0,0,402,4790,1,0,0,0,404,4805,1,0,0,0,406,4811,1,0,0,0,408,4841,1,0,0,0,410,4843,1,0,0,0,412,4850,1,0,0,0,414,4862,1,0,0,0,416,4868,1,0,0,0,418,4893,1,0,0,0,420,4897,1,0,0,0,422,4901,1,0,0,0,424,4912,1,0,0,0,426,4983,1,0,0,0,428,5036,1,0,0,0,430,5038,1,0,0,0,432,5105,1,0,0,0,434,5115,1,0,0,0,436,5117,1,0,0,0,438,5135,1,0,0,0,440,5181,1,0,0,0,442,5183,1,0,0,0,444,5196,1,0,0,0,446,5207,1,0,0,0,448,5210,1,0,0,0,450,5243,1,0,0,0,452,5247,1,0,0,0,454,5268,1,0,0,0,456,5278,1,0,0,0,458,5288,1,0,0,0,460,5328,1,0,0,0,462,5330,1,0,0,0,464,5333,1,0,0,0,466,5433,1,0,0,0,468,5451,1,0,0,0,470,5453,1,0,0,0,472,5457,1,0,0,0,474,5495,1,0,0,0,476,5504,1,0,0,0,478,5510,1,0,0,0,480,5517,1,0,0,0,482,5539,1,0,0,0,484,5541,1,0,0,0,486,5555,1,0,0,0,488,5561,1,0,0,0,490,5617,1,0,0,0,492,5780,1,0,0,0,494,5792,1,0,0,0,496,5807,1,0,0,0,498,5813,1,0,0,0,500,5832,1,0,0,0,502,5842,1,0,0,0,504,5856,1,0,0,0,506,5858,1,0,0,0,508,5861,1,0,0,0,510,5883,1,0,0,0,512,5895,1,0,0,0,514,5901,1,0,0,0,516,5913,1,0,0,0,518,5917,1,0,0,0,520,5919,1,0,0,0,522,5961,1,0,0,0,524,5968,1,0,0,0,526,5970,1,0,0,0,528,5993,1,0,0,0,530,5999,1,0,0,0,532,6007,1,0,0,0,534,6010,1,0,0,0,536,6013,1,0,0,0,538,6034,1,0,0,0,540,6055,1,0,0,0,542,6063,1,0,0,0,544,6075,1,0,0,0,546,6083,1,0,0,0,548,6121,1,0,0,0,550,6133,1,0,0,0,552,6135,1,0,0,0,554,6141,1,0,0,0,556,6143,1,0,0,0,558,6153,1,0,0,0,560,6155,1,0,0,0,562,6163,1,0,0,0,564,6171,1,0,0,0,566,6173,1,0,0,0,568,6181,1,0,0,0,570,6197,1,0,0,0,572,6199,1,0,0,0,574,6201,1,0,0,0,576,6203,1,0,0,0,578,6205,1,0,0,0,580,6207,1,0,0,0,582,6226,1,0,0,0,584,6235,1,0,0,0,586,6237,1,0,0,0,588,6239,1,0,0,0,590,6252,1,0,0,0,592,6254,1,0,0,0,594,6256,1,0,0,0,596,6262,1,0,0,0,598,6266,1,0,0,0,600,6271,1,0,0,0,602,6273,1,0,0,0,604,6275,1,0,0,0,606,6293,1,0,0,0,608,6309,1,0,0,0,610,6313,1,0,0,0,612,6318,1,0,0,0,614,6329,1,0,0,0,616,6334,1,0,0,0,618,6336,1,0,0,0,620,6340,1,0,0,0,622,6365,1,0,0,0,624,6367,1,0,0,0,626,6370,1,0,0,0,628,6375,1,0,0,0,630,6391,1,0,0,0,632,6519,1,0,0,0,634,6521,1,0,0,0,636,6554,1,0,0,0,638,6559,1,0,0,0,640,6563,1,0,0,0,642,6569,1,0,0,0,644,6577,1,0,0,0,646,6585,1,0,0,0,648,6593,1,0,0,0,650,6601,1,0,0,0,652,6612,1,0,0,0,654,6620,1,0,0,0,656,6628,1,0,0,0,658,6636,1,0,0,0,660,6644,1,0,0,0,662,6678,1,0,0,0,664,6694,1,0,0,0,666,6698,1,0,0,0,668,6700,1,0,0,0,670,6703,1,0,0,0,672,6707,1,0,0,0,674,6713,1,0,0,0,676,6733,1,0,0,0,678,6914,1,0,0,0,680,6916,1,0,0,0,682,6935,1,0,0,0,684,6937,1,0,0,0,686,7e3,1,0,0,0,688,7040,1,0,0,0,690,7042,1,0,0,0,692,7051,1,0,0,0,694,7062,1,0,0,0,696,7064,1,0,0,0,698,7067,1,0,0,0,700,7071,1,0,0,0,702,7073,1,0,0,0,704,7085,1,0,0,0,706,7087,1,0,0,0,708,7121,1,0,0,0,710,7123,1,0,0,0,712,7132,1,0,0,0,714,7150,1,0,0,0,716,7163,1,0,0,0,718,7174,1,0,0,0,720,7292,1,0,0,0,722,7318,1,0,0,0,724,7334,1,0,0,0,726,7343,1,0,0,0,728,7352,1,0,0,0,730,7354,1,0,0,0,732,7356,1,0,0,0,734,7363,1,0,0,0,736,7365,1,0,0,0,738,7367,1,0,0,0,740,7369,1,0,0,0,742,7371,1,0,0,0,744,7373,1,0,0,0,746,7375,1,0,0,0,748,7377,1,0,0,0,750,752,3,2,1,0,751,750,1,0,0,0,751,752,1,0,0,0,752,753,1,0,0,0,753,754,5,0,0,1,754,1,1,0,0,0,755,757,3,4,2,0,756,758,5,1136,0,0,757,756,1,0,0,0,757,758,1,0,0,0,758,764,1,0,0,0,759,760,3,4,2,0,760,761,5,1136,0,0,761,762,3,2,1,0,762,764,1,0,0,0,763,755,1,0,0,0,763,759,1,0,0,0,764,3,1,0,0,0,765,773,3,6,3,0,766,773,3,8,4,0,767,773,3,10,5,0,768,773,3,12,6,0,769,773,3,14,7,0,770,773,3,18,9,0,771,773,3,20,10,0,772,765,1,0,0,0,772,766,1,0,0,0,772,767,1,0,0,0,772,768,1,0,0,0,772,769,1,0,0,0,772,770,1,0,0,0,772,771,1,0,0,0,773,5,1,0,0,0,774,813,3,22,11,0,775,813,3,24,12,0,776,813,3,26,13,0,777,813,3,28,14,0,778,813,3,30,15,0,779,813,3,32,16,0,780,813,3,36,18,0,781,813,3,38,19,0,782,813,3,40,20,0,783,813,3,42,21,0,784,813,3,44,22,0,785,813,3,54,27,0,786,813,3,34,17,0,787,813,3,126,63,0,788,813,3,128,64,0,789,813,3,130,65,0,790,813,3,132,66,0,791,813,3,134,67,0,792,813,3,136,68,0,793,813,3,138,69,0,794,813,3,140,70,0,795,813,3,142,71,0,796,813,3,144,72,0,797,813,3,150,75,0,798,813,3,152,76,0,799,813,3,154,77,0,800,813,3,156,78,0,801,813,3,158,79,0,802,813,3,160,80,0,803,813,3,162,81,0,804,813,3,164,82,0,805,813,3,166,83,0,806,813,3,168,84,0,807,813,3,170,85,0,808,813,3,172,86,0,809,813,3,174,87,0,810,813,3,176,88,0,811,813,3,180,90,0,812,774,1,0,0,0,812,775,1,0,0,0,812,776,1,0,0,0,812,777,1,0,0,0,812,778,1,0,0,0,812,779,1,0,0,0,812,780,1,0,0,0,812,781,1,0,0,0,812,782,1,0,0,0,812,783,1,0,0,0,812,784,1,0,0,0,812,785,1,0,0,0,812,786,1,0,0,0,812,787,1,0,0,0,812,788,1,0,0,0,812,789,1,0,0,0,812,790,1,0,0,0,812,791,1,0,0,0,812,792,1,0,0,0,812,793,1,0,0,0,812,794,1,0,0,0,812,795,1,0,0,0,812,796,1,0,0,0,812,797,1,0,0,0,812,798,1,0,0,0,812,799,1,0,0,0,812,800,1,0,0,0,812,801,1,0,0,0,812,802,1,0,0,0,812,803,1,0,0,0,812,804,1,0,0,0,812,805,1,0,0,0,812,806,1,0,0,0,812,807,1,0,0,0,812,808,1,0,0,0,812,809,1,0,0,0,812,810,1,0,0,0,812,811,1,0,0,0,813,7,1,0,0,0,814,828,3,198,99,0,815,828,3,190,95,0,816,828,3,200,100,0,817,828,3,184,92,0,818,828,3,196,98,0,819,828,3,182,91,0,820,828,3,192,96,0,821,828,3,194,97,0,822,828,3,186,93,0,823,828,3,188,94,0,824,828,3,202,101,0,825,828,3,542,271,0,826,828,3,544,272,0,827,814,1,0,0,0,827,815,1,0,0,0,827,816,1,0,0,0,827,817,1,0,0,0,827,818,1,0,0,0,827,819,1,0,0,0,827,820,1,0,0,0,827,821,1,0,0,0,827,822,1,0,0,0,827,823,1,0,0,0,827,824,1,0,0,0,827,825,1,0,0,0,827,826,1,0,0,0,828,9,1,0,0,0,829,839,3,298,149,0,830,839,3,300,150,0,831,839,3,302,151,0,832,839,3,304,152,0,833,839,3,306,153,0,834,839,3,308,154,0,835,839,3,310,155,0,836,839,3,312,156,0,837,839,3,314,157,0,838,829,1,0,0,0,838,830,1,0,0,0,838,831,1,0,0,0,838,832,1,0,0,0,838,833,1,0,0,0,838,834,1,0,0,0,838,835,1,0,0,0,838,836,1,0,0,0,838,837,1,0,0,0,839,11,1,0,0,0,840,856,3,330,165,0,841,856,3,332,166,0,842,856,3,334,167,0,843,856,3,336,168,0,844,856,3,338,169,0,845,856,3,340,170,0,846,856,3,342,171,0,847,856,3,344,172,0,848,856,3,346,173,0,849,856,3,370,185,0,850,856,3,372,186,0,851,856,3,374,187,0,852,856,3,376,188,0,853,856,3,378,189,0,854,856,3,380,190,0,855,840,1,0,0,0,855,841,1,0,0,0,855,842,1,0,0,0,855,843,1,0,0,0,855,844,1,0,0,0,855,845,1,0,0,0,855,846,1,0,0,0,855,847,1,0,0,0,855,848,1,0,0,0,855,849,1,0,0,0,855,850,1,0,0,0,855,851,1,0,0,0,855,852,1,0,0,0,855,853,1,0,0,0,855,854,1,0,0,0,856,13,1,0,0,0,857,861,3,382,191,0,858,861,3,384,192,0,859,861,3,386,193,0,860,857,1,0,0,0,860,858,1,0,0,0,860,859,1,0,0,0,861,15,1,0,0,0,862,873,3,390,195,0,863,873,3,392,196,0,864,873,3,394,197,0,865,873,3,398,199,0,866,873,3,400,200,0,867,873,3,402,201,0,868,873,3,406,203,0,869,873,3,396,198,0,870,873,3,404,202,0,871,873,3,408,204,0,872,862,1,0,0,0,872,863,1,0,0,0,872,864,1,0,0,0,872,865,1,0,0,0,872,866,1,0,0,0,872,867,1,0,0,0,872,868,1,0,0,0,872,869,1,0,0,0,872,870,1,0,0,0,872,871,1,0,0,0,873,17,1,0,0,0,874,900,3,426,213,0,875,900,3,428,214,0,876,900,3,430,215,0,877,900,3,432,216,0,878,900,3,436,218,0,879,900,3,438,219,0,880,900,3,440,220,0,881,900,3,442,221,0,882,900,3,472,236,0,883,900,3,474,237,0,884,900,3,476,238,0,885,900,3,478,239,0,886,900,3,480,240,0,887,900,3,484,242,0,888,900,3,486,243,0,889,900,3,488,244,0,890,900,3,490,245,0,891,900,3,492,246,0,892,900,3,506,253,0,893,900,3,508,254,0,894,900,3,510,255,0,895,900,3,512,256,0,896,900,3,514,257,0,897,900,3,516,258,0,898,900,3,518,259,0,899,874,1,0,0,0,899,875,1,0,0,0,899,876,1,0,0,0,899,877,1,0,0,0,899,878,1,0,0,0,899,879,1,0,0,0,899,880,1,0,0,0,899,881,1,0,0,0,899,882,1,0,0,0,899,883,1,0,0,0,899,884,1,0,0,0,899,885,1,0,0,0,899,886,1,0,0,0,899,887,1,0,0,0,899,888,1,0,0,0,899,889,1,0,0,0,899,890,1,0,0,0,899,891,1,0,0,0,899,892,1,0,0,0,899,893,1,0,0,0,899,894,1,0,0,0,899,895,1,0,0,0,899,896,1,0,0,0,899,897,1,0,0,0,899,898,1,0,0,0,900,19,1,0,0,0,901,909,3,528,264,0,902,909,3,530,265,0,903,909,3,532,266,0,904,909,3,534,267,0,905,909,3,536,268,0,906,909,3,538,269,0,907,909,3,546,273,0,908,901,1,0,0,0,908,902,1,0,0,0,908,903,1,0,0,0,908,904,1,0,0,0,908,905,1,0,0,0,908,906,1,0,0,0,908,907,1,0,0,0,909,21,1,0,0,0,910,911,5,33,0,0,911,913,7,0,0,0,912,914,3,670,335,0,913,912,1,0,0,0,913,914,1,0,0,0,914,915,1,0,0,0,915,919,3,612,306,0,916,918,3,56,28,0,917,916,1,0,0,0,918,921,1,0,0,0,919,917,1,0,0,0,919,920,1,0,0,0,920,23,1,0,0,0,921,919,1,0,0,0,922,924,5,33,0,0,923,925,3,62,31,0,924,923,1,0,0,0,924,925,1,0,0,0,925,926,1,0,0,0,926,928,5,415,0,0,927,929,3,670,335,0,928,927,1,0,0,0,928,929,1,0,0,0,929,930,1,0,0,0,930,931,3,552,276,0,931,932,5,118,0,0,932,933,5,605,0,0,933,940,3,64,32,0,934,935,5,118,0,0,935,937,5,371,0,0,936,938,5,114,0,0,937,936,1,0,0,0,937,938,1,0,0,0,938,939,1,0,0,0,939,941,5,561,0,0,940,934,1,0,0,0,940,941,1,0,0,0,941,943,1,0,0,0,942,944,3,72,36,0,943,942,1,0,0,0,943,944,1,0,0,0,944,947,1,0,0,0,945,946,5,368,0,0,946,948,5,1148,0,0,947,945,1,0,0,0,947,948,1,0,0,0,948,949,1,0,0,0,949,950,5,399,0,0,950,951,3,388,194,0,951,25,1,0,0,0,952,954,5,33,0,0,953,955,7,1,0,0,954,953,1,0,0,0,954,955,1,0,0,0,955,957,1,0,0,0,956,958,7,2,0,0,957,956,1,0,0,0,957,958,1,0,0,0,958,959,1,0,0,0,959,960,5,81,0,0,960,962,3,612,306,0,961,963,3,74,37,0,962,961,1,0,0,0,962,963,1,0,0,0,963,964,1,0,0,0,964,965,5,118,0,0,965,966,3,554,277,0,966,970,3,650,325,0,967,969,3,76,38,0,968,967,1,0,0,0,969,972,1,0,0,0,970,968,1,0,0,0,970,971,1,0,0,0,971,985,1,0,0,0,972,970,1,0,0,0,973,975,5,336,0,0,974,976,5,1124,0,0,975,974,1,0,0,0,975,976,1,0,0,0,976,977,1,0,0,0,977,984,7,3,0,0,978,980,5,103,0,0,979,981,5,1124,0,0,980,979,1,0,0,0,980,981,1,0,0,0,981,982,1,0,0,0,982,984,7,4,0,0,983,973,1,0,0,0,983,978,1,0,0,0,984,987,1,0,0,0,985,983,1,0,0,0,985,986,1,0,0,0,986,27,1,0,0,0,987,985,1,0,0,0,988,989,5,33,0,0,989,990,5,475,0,0,990,991,5,73,0,0,991,992,3,612,306,0,992,993,5,5,0,0,993,994,5,659,0,0,994,1e3,5,1148,0,0,995,997,5,453,0,0,996,998,5,1124,0,0,997,996,1,0,0,0,997,998,1,0,0,0,998,999,1,0,0,0,999,1001,3,620,310,0,1e3,995,1,0,0,0,1e3,1001,1,0,0,0,1001,1007,1,0,0,0,1002,1004,5,660,0,0,1003,1005,5,1124,0,0,1004,1003,1,0,0,0,1004,1005,1,0,0,0,1005,1006,1,0,0,0,1006,1008,3,620,310,0,1007,1002,1,0,0,0,1007,1008,1,0,0,0,1008,1014,1,0,0,0,1009,1011,5,572,0,0,1010,1012,5,1124,0,0,1011,1010,1,0,0,0,1011,1012,1,0,0,0,1012,1013,1,0,0,0,1013,1015,3,620,310,0,1014,1009,1,0,0,0,1014,1015,1,0,0,0,1015,1021,1,0,0,0,1016,1018,5,528,0,0,1017,1019,5,1124,0,0,1018,1017,1,0,0,0,1018,1019,1,0,0,0,1019,1020,1,0,0,0,1020,1022,3,612,306,0,1021,1016,1,0,0,0,1021,1022,1,0,0,0,1022,1024,1,0,0,0,1023,1025,5,674,0,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1031,1,0,0,0,1026,1028,5,368,0,0,1027,1029,5,1124,0,0,1028,1027,1,0,0,0,1028,1029,1,0,0,0,1029,1030,1,0,0,0,1030,1032,5,1148,0,0,1031,1026,1,0,0,0,1031,1032,1,0,0,0,1032,1033,1,0,0,0,1033,1035,5,409,0,0,1034,1036,5,1124,0,0,1035,1034,1,0,0,0,1035,1036,1,0,0,0,1036,1037,1,0,0,0,1037,1038,3,600,300,0,1038,29,1,0,0,0,1039,1041,5,33,0,0,1040,1042,3,62,31,0,1041,1040,1,0,0,0,1041,1042,1,0,0,0,1042,1043,1,0,0,0,1043,1044,5,131,0,0,1044,1045,3,552,276,0,1045,1047,5,1133,0,0,1046,1048,3,78,39,0,1047,1046,1,0,0,0,1047,1048,1,0,0,0,1048,1053,1,0,0,0,1049,1050,5,1135,0,0,1050,1052,3,78,39,0,1051,1049,1,0,0,0,1052,1055,1,0,0,0,1053,1051,1,0,0,0,1053,1054,1,0,0,0,1054,1056,1,0,0,0,1055,1053,1,0,0,0,1056,1060,5,1134,0,0,1057,1059,3,82,41,0,1058,1057,1,0,0,0,1059,1062,1,0,0,0,1060,1058,1,0,0,0,1060,1061,1,0,0,0,1061,1063,1,0,0,0,1062,1060,1,0,0,0,1063,1064,3,388,194,0,1064,31,1,0,0,0,1065,1067,5,33,0,0,1066,1068,3,62,31,0,1067,1066,1,0,0,0,1067,1068,1,0,0,0,1068,1070,1,0,0,0,1069,1071,5,335,0,0,1070,1069,1,0,0,0,1070,1071,1,0,0,0,1071,1072,1,0,0,0,1072,1074,5,437,0,0,1073,1075,3,670,335,0,1074,1073,1,0,0,0,1074,1075,1,0,0,0,1075,1076,1,0,0,0,1076,1077,3,552,276,0,1077,1079,5,1133,0,0,1078,1080,3,80,40,0,1079,1078,1,0,0,0,1079,1080,1,0,0,0,1080,1085,1,0,0,0,1081,1082,5,1135,0,0,1082,1084,3,80,40,0,1083,1081,1,0,0,0,1084,1087,1,0,0,0,1085,1083,1,0,0,0,1085,1086,1,0,0,0,1086,1088,1,0,0,0,1087,1085,1,0,0,0,1088,1089,5,1134,0,0,1089,1090,5,594,0,0,1090,1094,3,632,316,0,1091,1093,3,82,41,0,1092,1091,1,0,0,0,1093,1096,1,0,0,0,1094,1092,1,0,0,0,1094,1095,1,0,0,0,1095,1099,1,0,0,0,1096,1094,1,0,0,0,1097,1100,3,388,194,0,1098,1100,3,404,202,0,1099,1097,1,0,0,0,1099,1098,1,0,0,0,1100,33,1,0,0,0,1101,1102,5,33,0,0,1102,1104,5,596,0,0,1103,1105,3,670,335,0,1104,1103,1,0,0,0,1104,1105,1,0,0,0,1105,1106,1,0,0,0,1106,1107,3,562,281,0,1107,35,1,0,0,0,1108,1109,5,33,0,0,1109,1110,5,608,0,0,1110,1111,3,612,306,0,1111,1112,5,67,0,0,1112,1113,5,388,0,0,1113,1114,5,679,0,0,1114,1115,7,5,0,0,1115,1116,5,541,0,0,1116,1117,5,1133,0,0,1117,1122,3,84,42,0,1118,1119,5,1135,0,0,1119,1121,3,84,42,0,1120,1118,1,0,0,0,1121,1124,1,0,0,0,1122,1120,1,0,0,0,1122,1123,1,0,0,0,1123,1125,1,0,0,0,1124,1122,1,0,0,0,1125,1126,5,1134,0,0,1126,37,1,0,0,0,1127,1129,5,33,0,0,1128,1130,5,649,0,0,1129,1128,1,0,0,0,1129,1130,1,0,0,0,1130,1131,1,0,0,0,1131,1133,5,172,0,0,1132,1134,3,670,335,0,1133,1132,1,0,0,0,1133,1134,1,0,0,0,1134,1135,1,0,0,0,1135,1143,3,554,277,0,1136,1137,5,98,0,0,1137,1144,3,554,277,0,1138,1139,5,1133,0,0,1139,1140,5,98,0,0,1140,1141,3,554,277,0,1141,1142,5,1134,0,0,1142,1144,1,0,0,0,1143,1136,1,0,0,0,1143,1138,1,0,0,0,1144,1206,1,0,0,0,1145,1147,5,33,0,0,1146,1148,5,649,0,0,1147,1146,1,0,0,0,1147,1148,1,0,0,0,1148,1149,1,0,0,0,1149,1151,5,172,0,0,1150,1152,3,670,335,0,1151,1150,1,0,0,0,1151,1152,1,0,0,0,1152,1153,1,0,0,0,1153,1155,3,554,277,0,1154,1156,3,86,43,0,1155,1154,1,0,0,0,1155,1156,1,0,0,0,1156,1167,1,0,0,0,1157,1164,3,104,52,0,1158,1160,5,1135,0,0,1159,1158,1,0,0,0,1159,1160,1,0,0,0,1160,1161,1,0,0,0,1161,1163,3,104,52,0,1162,1159,1,0,0,0,1163,1166,1,0,0,0,1164,1162,1,0,0,0,1164,1165,1,0,0,0,1165,1168,1,0,0,0,1166,1164,1,0,0,0,1167,1157,1,0,0,0,1167,1168,1,0,0,0,1168,1170,1,0,0,0,1169,1171,3,110,55,0,1170,1169,1,0,0,0,1170,1171,1,0,0,0,1171,1173,1,0,0,0,1172,1174,7,6,0,0,1173,1172,1,0,0,0,1173,1174,1,0,0,0,1174,1176,1,0,0,0,1175,1177,5,12,0,0,1176,1175,1,0,0,0,1176,1177,1,0,0,0,1177,1178,1,0,0,0,1178,1179,3,198,99,0,1179,1206,1,0,0,0,1180,1182,5,33,0,0,1181,1183,5,649,0,0,1182,1181,1,0,0,0,1182,1183,1,0,0,0,1183,1184,1,0,0,0,1184,1186,5,172,0,0,1185,1187,3,670,335,0,1186,1185,1,0,0,0,1186,1187,1,0,0,0,1187,1188,1,0,0,0,1188,1189,3,554,277,0,1189,1200,3,86,43,0,1190,1197,3,104,52,0,1191,1193,5,1135,0,0,1192,1191,1,0,0,0,1192,1193,1,0,0,0,1193,1194,1,0,0,0,1194,1196,3,104,52,0,1195,1192,1,0,0,0,1196,1199,1,0,0,0,1197,1195,1,0,0,0,1197,1198,1,0,0,0,1198,1201,1,0,0,0,1199,1197,1,0,0,0,1200,1190,1,0,0,0,1200,1201,1,0,0,0,1201,1203,1,0,0,0,1202,1204,3,110,55,0,1203,1202,1,0,0,0,1203,1204,1,0,0,0,1204,1206,1,0,0,0,1205,1127,1,0,0,0,1205,1145,1,0,0,0,1205,1180,1,0,0,0,1206,39,1,0,0,0,1207,1208,5,33,0,0,1208,1209,5,647,0,0,1209,1210,3,612,306,0,1210,1211,5,5,0,0,1211,1212,5,389,0,0,1212,1216,5,1148,0,0,1213,1214,5,428,0,0,1214,1215,5,1124,0,0,1215,1217,3,620,310,0,1216,1213,1,0,0,0,1216,1217,1,0,0,0,1217,1223,1,0,0,0,1218,1220,5,409,0,0,1219,1221,5,1124,0,0,1220,1219,1,0,0,0,1220,1221,1,0,0,0,1221,1222,1,0,0,0,1222,1224,3,600,300,0,1223,1218,1,0,0,0,1223,1224,1,0,0,0,1224,41,1,0,0,0,1225,1226,5,33,0,0,1226,1227,5,647,0,0,1227,1228,3,612,306,0,1228,1229,5,5,0,0,1229,1230,5,389,0,0,1230,1231,5,1148,0,0,1231,1232,5,186,0,0,1232,1233,5,475,0,0,1233,1234,5,73,0,0,1234,1240,3,612,306,0,1235,1237,5,423,0,0,1236,1238,5,1124,0,0,1237,1236,1,0,0,0,1237,1238,1,0,0,0,1238,1239,1,0,0,0,1239,1241,3,620,310,0,1240,1235,1,0,0,0,1240,1241,1,0,0,0,1241,1247,1,0,0,0,1242,1244,5,453,0,0,1243,1245,5,1124,0,0,1244,1243,1,0,0,0,1244,1245,1,0,0,0,1245,1246,1,0,0,0,1246,1248,3,620,310,0,1247,1242,1,0,0,0,1247,1248,1,0,0,0,1248,1254,1,0,0,0,1249,1251,5,341,0,0,1250,1252,5,1124,0,0,1251,1250,1,0,0,0,1251,1252,1,0,0,0,1252,1253,1,0,0,0,1253,1255,3,620,310,0,1254,1249,1,0,0,0,1254,1255,1,0,0,0,1255,1261,1,0,0,0,1256,1258,5,501,0,0,1257,1259,5,1124,0,0,1258,1257,1,0,0,0,1258,1259,1,0,0,0,1259,1260,1,0,0,0,1260,1262,3,620,310,0,1261,1256,1,0,0,0,1261,1262,1,0,0,0,1262,1268,1,0,0,0,1263,1265,5,528,0,0,1264,1266,5,1124,0,0,1265,1264,1,0,0,0,1265,1266,1,0,0,0,1266,1267,1,0,0,0,1267,1269,3,612,306,0,1268,1263,1,0,0,0,1268,1269,1,0,0,0,1269,1271,1,0,0,0,1270,1272,5,674,0,0,1271,1270,1,0,0,0,1271,1272,1,0,0,0,1272,1278,1,0,0,0,1273,1275,5,368,0,0,1274,1276,5,1124,0,0,1275,1274,1,0,0,0,1275,1276,1,0,0,0,1276,1277,1,0,0,0,1277,1279,5,1148,0,0,1278,1273,1,0,0,0,1278,1279,1,0,0,0,1279,1280,1,0,0,0,1280,1282,5,409,0,0,1281,1283,5,1124,0,0,1282,1281,1,0,0,0,1282,1283,1,0,0,0,1283,1284,1,0,0,0,1284,1285,3,600,300,0,1285,43,1,0,0,0,1286,1288,5,33,0,0,1287,1289,3,62,31,0,1288,1287,1,0,0,0,1288,1289,1,0,0,0,1289,1290,1,0,0,0,1290,1292,5,177,0,0,1291,1293,3,670,335,0,1292,1291,1,0,0,0,1292,1293,1,0,0,0,1293,1294,1,0,0,0,1294,1295,3,552,276,0,1295,1296,7,7,0,0,1296,1297,7,8,0,0,1297,1298,5,118,0,0,1298,1299,3,554,277,0,1299,1300,5,65,0,0,1300,1301,5,52,0,0,1301,1304,5,600,0,0,1302,1303,7,9,0,0,1303,1305,3,552,276,0,1304,1302,1,0,0,0,1304,1305,1,0,0,0,1305,1306,1,0,0,0,1306,1307,3,388,194,0,1307,45,1,0,0,0,1308,1310,5,192,0,0,1309,1311,5,571,0,0,1310,1309,1,0,0,0,1310,1311,1,0,0,0,1311,1312,1,0,0,0,1312,1313,3,48,24,0,1313,47,1,0,0,0,1314,1326,3,50,25,0,1315,1316,5,1133,0,0,1316,1321,3,52,26,0,1317,1318,5,1135,0,0,1318,1320,3,52,26,0,1319,1317,1,0,0,0,1320,1323,1,0,0,0,1321,1319,1,0,0,0,1321,1322,1,0,0,0,1322,1324,1,0,0,0,1323,1321,1,0,0,0,1324,1325,5,1134,0,0,1325,1327,1,0,0,0,1326,1315,1,0,0,0,1326,1327,1,0,0,0,1327,1328,1,0,0,0,1328,1329,5,12,0,0,1329,1330,5,1133,0,0,1330,1331,3,8,4,0,1331,1334,5,1134,0,0,1332,1333,5,1135,0,0,1333,1335,3,48,24,0,1334,1332,1,0,0,0,1334,1335,1,0,0,0,1335,49,1,0,0,0,1336,1337,3,612,306,0,1337,51,1,0,0,0,1338,1339,3,612,306,0,1339,53,1,0,0,0,1340,1342,5,33,0,0,1341,1343,3,672,336,0,1342,1341,1,0,0,0,1342,1343,1,0,0,0,1343,1347,1,0,0,0,1344,1345,5,336,0,0,1345,1346,5,1124,0,0,1346,1348,7,10,0,0,1347,1344,1,0,0,0,1347,1348,1,0,0,0,1348,1350,1,0,0,0,1349,1351,3,62,31,0,1350,1349,1,0,0,0,1350,1351,1,0,0,0,1351,1355,1,0,0,0,1352,1353,5,160,0,0,1353,1354,5,606,0,0,1354,1356,7,11,0,0,1355,1352,1,0,0,0,1355,1356,1,0,0,0,1356,1357,1,0,0,0,1357,1358,5,671,0,0,1358,1363,3,552,276,0,1359,1360,5,1133,0,0,1360,1361,3,644,322,0,1361,1362,5,1134,0,0,1362,1364,1,0,0,0,1363,1359,1,0,0,0,1363,1364,1,0,0,0,1364,1365,1,0,0,0,1365,1385,5,12,0,0,1366,1368,5,1133,0,0,1367,1369,3,46,23,0,1368,1367,1,0,0,0,1368,1369,1,0,0,0,1369,1370,1,0,0,0,1370,1371,3,198,99,0,1371,1372,5,1134,0,0,1372,1386,1,0,0,0,1373,1375,3,46,23,0,1374,1373,1,0,0,0,1374,1375,1,0,0,0,1375,1376,1,0,0,0,1376,1383,3,198,99,0,1377,1379,5,192,0,0,1378,1380,7,12,0,0,1379,1378,1,0,0,0,1379,1380,1,0,0,0,1380,1381,1,0,0,0,1381,1382,5,26,0,0,1382,1384,5,120,0,0,1383,1377,1,0,0,0,1383,1384,1,0,0,0,1384,1386,1,0,0,0,1385,1366,1,0,0,0,1385,1374,1,0,0,0,1386,55,1,0,0,0,1387,1389,5,42,0,0,1388,1387,1,0,0,0,1388,1389,1,0,0,0,1389,1390,1,0,0,0,1390,1392,3,58,29,0,1391,1393,5,1124,0,0,1392,1391,1,0,0,0,1392,1393,1,0,0,0,1393,1396,1,0,0,0,1394,1397,3,596,298,0,1395,1397,5,42,0,0,1396,1394,1,0,0,0,1396,1395,1,0,0,0,1397,1421,1,0,0,0,1398,1400,5,42,0,0,1399,1398,1,0,0,0,1399,1400,1,0,0,0,1400,1401,1,0,0,0,1401,1403,5,27,0,0,1402,1404,5,1124,0,0,1403,1402,1,0,0,0,1403,1404,1,0,0,0,1404,1405,1,0,0,0,1405,1421,3,598,299,0,1406,1408,5,42,0,0,1407,1406,1,0,0,0,1407,1408,1,0,0,0,1408,1409,1,0,0,0,1409,1411,5,405,0,0,1410,1412,5,1124,0,0,1411,1410,1,0,0,0,1411,1412,1,0,0,0,1412,1413,1,0,0,0,1413,1421,5,1148,0,0,1414,1415,5,134,0,0,1415,1417,5,538,0,0,1416,1418,5,1124,0,0,1417,1416,1,0,0,0,1417,1418,1,0,0,0,1418,1419,1,0,0,0,1419,1421,7,13,0,0,1420,1388,1,0,0,0,1420,1399,1,0,0,0,1420,1407,1,0,0,0,1420,1414,1,0,0,0,1421,57,1,0,0,0,1422,1423,5,25,0,0,1423,1428,5,153,0,0,1424,1428,5,841,0,0,1425,1426,5,222,0,0,1426,1428,5,153,0,0,1427,1422,1,0,0,0,1427,1424,1,0,0,0,1427,1425,1,0,0,0,1428,59,1,0,0,0,1429,1432,5,37,0,0,1430,1431,5,1133,0,0,1431,1433,5,1134,0,0,1432,1430,1,0,0,0,1432,1433,1,0,0,0,1433,61,1,0,0,0,1434,1435,5,392,0,0,1435,1438,5,1124,0,0,1436,1439,3,592,296,0,1437,1439,3,60,30,0,1438,1436,1,0,0,0,1438,1437,1,0,0,0,1439,63,1,0,0,0,1440,1441,5,338,0,0,1441,1445,3,66,33,0,1442,1444,3,68,34,0,1443,1442,1,0,0,0,1444,1447,1,0,0,0,1445,1443,1,0,0,0,1445,1446,1,0,0,0,1446,1475,1,0,0,0,1447,1445,1,0,0,0,1448,1451,5,417,0,0,1449,1452,3,618,309,0,1450,1452,3,716,358,0,1451,1449,1,0,0,0,1451,1450,1,0,0,0,1452,1453,1,0,0,0,1453,1462,3,70,35,0,1454,1455,5,630,0,0,1455,1459,3,66,33,0,1456,1458,3,68,34,0,1457,1456,1,0,0,0,1458,1461,1,0,0,0,1459,1457,1,0,0,0,1459,1460,1,0,0,0,1460,1463,1,0,0,0,1461,1459,1,0,0,0,1462,1454,1,0,0,0,1462,1463,1,0,0,0,1463,1472,1,0,0,0,1464,1465,5,408,0,0,1465,1469,3,66,33,0,1466,1468,3,68,34,0,1467,1466,1,0,0,0,1468,1471,1,0,0,0,1469,1467,1,0,0,0,1469,1470,1,0,0,0,1470,1473,1,0,0,0,1471,1469,1,0,0,0,1472,1464,1,0,0,0,1472,1473,1,0,0,0,1473,1475,1,0,0,0,1474,1440,1,0,0,0,1474,1448,1,0,0,0,1475,65,1,0,0,0,1476,1481,5,315,0,0,1477,1481,3,622,311,0,1478,1481,3,618,309,0,1479,1481,3,716,358,0,1480,1476,1,0,0,0,1480,1477,1,0,0,0,1480,1478,1,0,0,0,1480,1479,1,0,0,0,1481,67,1,0,0,0,1482,1483,5,1120,0,0,1483,1486,5,86,0,0,1484,1487,3,618,309,0,1485,1487,3,716,358,0,1486,1484,1,0,0,0,1486,1485,1,0,0,0,1487,1488,1,0,0,0,1488,1489,3,70,35,0,1489,69,1,0,0,0,1490,1504,3,742,371,0,1491,1504,5,221,0,0,1492,1504,5,240,0,0,1493,1504,5,241,0,0,1494,1504,5,242,0,0,1495,1504,5,243,0,0,1496,1504,5,244,0,0,1497,1504,5,245,0,0,1498,1504,5,246,0,0,1499,1504,5,247,0,0,1500,1504,5,248,0,0,1501,1504,5,249,0,0,1502,1504,5,250,0,0,1503,1490,1,0,0,0,1503,1491,1,0,0,0,1503,1492,1,0,0,0,1503,1493,1,0,0,0,1503,1494,1,0,0,0,1503,1495,1,0,0,0,1503,1496,1,0,0,0,1503,1497,1,0,0,0,1503,1498,1,0,0,0,1503,1499,1,0,0,0,1503,1500,1,0,0,0,1503,1501,1,0,0,0,1503,1502,1,0,0,0,1504,71,1,0,0,0,1505,1511,5,403,0,0,1506,1511,5,396,0,0,1507,1508,5,396,0,0,1508,1509,5,118,0,0,1509,1511,5,614,0,0,1510,1505,1,0,0,0,1510,1506,1,0,0,0,1510,1507,1,0,0,0,1511,73,1,0,0,0,1512,1513,5,187,0,0,1513,1514,7,14,0,0,1514,75,1,0,0,0,1515,1517,5,467,0,0,1516,1518,5,1124,0,0,1517,1516,1,0,0,0,1517,1518,1,0,0,0,1518,1519,1,0,0,0,1519,1538,3,620,310,0,1520,1538,3,74,37,0,1521,1522,5,192,0,0,1522,1523,5,547,0,0,1523,1538,3,612,306,0,1524,1525,5,368,0,0,1525,1538,5,1148,0,0,1526,1538,7,15,0,0,1527,1529,5,875,0,0,1528,1530,5,1124,0,0,1529,1528,1,0,0,0,1529,1530,1,0,0,0,1530,1531,1,0,0,0,1531,1538,5,1148,0,0,1532,1534,5,1e3,0,0,1533,1535,5,1124,0,0,1534,1533,1,0,0,0,1534,1535,1,0,0,0,1535,1536,1,0,0,0,1536,1538,5,1148,0,0,1537,1515,1,0,0,0,1537,1520,1,0,0,0,1537,1521,1,0,0,0,1537,1524,1,0,0,0,1537,1526,1,0,0,0,1537,1527,1,0,0,0,1537,1532,1,0,0,0,1538,77,1,0,0,0,1539,1541,7,16,0,0,1540,1539,1,0,0,0,1540,1541,1,0,0,0,1541,1542,1,0,0,0,1542,1543,3,612,306,0,1543,1544,3,632,316,0,1544,79,1,0,0,0,1545,1546,3,612,306,0,1546,1547,3,632,316,0,1547,81,1,0,0,0,1548,1549,5,368,0,0,1549,1572,5,1148,0,0,1550,1551,5,468,0,0,1551,1572,5,160,0,0,1552,1554,5,114,0,0,1553,1552,1,0,0,0,1553,1554,1,0,0,0,1554,1555,1,0,0,0,1555,1572,5,47,0,0,1556,1557,5,381,0,0,1557,1567,5,160,0,0,1558,1559,5,521,0,0,1559,1567,5,160,0,0,1560,1561,5,135,0,0,1561,1562,5,160,0,0,1562,1567,5,388,0,0,1563,1564,5,112,0,0,1564,1565,5,160,0,0,1565,1567,5,388,0,0,1566,1556,1,0,0,0,1566,1558,1,0,0,0,1566,1560,1,0,0,0,1566,1563,1,0,0,0,1567,1572,1,0,0,0,1568,1569,5,160,0,0,1569,1570,5,606,0,0,1570,1572,7,11,0,0,1571,1548,1,0,0,0,1571,1550,1,0,0,0,1571,1553,1,0,0,0,1571,1566,1,0,0,0,1571,1568,1,0,0,0,1572,83,1,0,0,0,1573,1574,5,446,0,0,1574,1588,5,1148,0,0,1575,1576,5,39,0,0,1576,1588,5,1148,0,0,1577,1578,5,665,0,0,1578,1588,5,1148,0,0,1579,1580,5,551,0,0,1580,1588,5,1148,0,0,1581,1582,5,617,0,0,1582,1588,5,1148,0,0,1583,1584,5,542,0,0,1584,1588,5,1148,0,0,1585,1586,5,557,0,0,1586,1588,3,618,309,0,1587,1573,1,0,0,0,1587,1575,1,0,0,0,1587,1577,1,0,0,0,1587,1579,1,0,0,0,1587,1581,1,0,0,0,1587,1583,1,0,0,0,1587,1585,1,0,0,0,1588,85,1,0,0,0,1589,1590,5,1133,0,0,1590,1595,3,88,44,0,1591,1592,5,1135,0,0,1592,1594,3,88,44,0,1593,1591,1,0,0,0,1594,1597,1,0,0,0,1595,1593,1,0,0,0,1595,1596,1,0,0,0,1596,1598,1,0,0,0,1597,1595,1,0,0,0,1598,1599,5,1134,0,0,1599,87,1,0,0,0,1600,1601,3,570,285,0,1601,1602,3,90,45,0,1602,1612,1,0,0,0,1603,1605,3,94,47,0,1604,1606,5,114,0,0,1605,1604,1,0,0,0,1605,1606,1,0,0,0,1606,1608,1,0,0,0,1607,1609,5,57,0,0,1608,1607,1,0,0,0,1608,1609,1,0,0,0,1609,1612,1,0,0,0,1610,1612,3,102,51,0,1611,1600,1,0,0,0,1611,1603,1,0,0,0,1611,1610,1,0,0,0,1612,89,1,0,0,0,1613,1617,3,632,316,0,1614,1616,3,92,46,0,1615,1614,1,0,0,0,1616,1619,1,0,0,0,1617,1615,1,0,0,0,1617,1618,1,0,0,0,1618,1621,1,0,0,0,1619,1617,1,0,0,0,1620,1622,5,114,0,0,1621,1620,1,0,0,0,1621,1622,1,0,0,0,1622,1624,1,0,0,0,1623,1625,5,57,0,0,1624,1623,1,0,0,0,1624,1625,1,0,0,0,1625,91,1,0,0,0,1626,1680,3,628,314,0,1627,1628,5,42,0,0,1628,1680,3,662,331,0,1629,1680,5,673,0,0,1630,1680,5,459,0,0,1631,1636,5,342,0,0,1632,1633,5,118,0,0,1633,1634,5,184,0,0,1634,1636,3,664,332,0,1635,1631,1,0,0,0,1635,1632,1,0,0,0,1636,1680,1,0,0,0,1637,1639,5,130,0,0,1638,1637,1,0,0,0,1638,1639,1,0,0,0,1639,1640,1,0,0,0,1640,1680,5,91,0,0,1641,1643,5,181,0,0,1642,1644,5,91,0,0,1643,1642,1,0,0,0,1643,1644,1,0,0,0,1644,1680,1,0,0,0,1645,1646,5,368,0,0,1646,1680,5,1148,0,0,1647,1648,5,366,0,0,1648,1680,7,17,0,0,1649,1650,5,636,0,0,1650,1680,7,18,0,0,1651,1680,3,96,48,0,1652,1653,5,27,0,0,1653,1680,3,598,299,0,1654,1655,5,70,0,0,1655,1657,5,8,0,0,1656,1654,1,0,0,0,1656,1657,1,0,0,0,1657,1658,1,0,0,0,1658,1659,5,12,0,0,1659,1660,5,1133,0,0,1660,1661,3,716,358,0,1661,1663,5,1134,0,0,1662,1664,7,19,0,0,1663,1662,1,0,0,0,1663,1664,1,0,0,0,1664,1680,1,0,0,0,1665,1666,5,239,0,0,1666,1667,5,42,0,0,1667,1680,5,669,0,0,1668,1670,5,30,0,0,1669,1671,3,612,306,0,1670,1669,1,0,0,0,1670,1671,1,0,0,0,1671,1673,1,0,0,0,1672,1668,1,0,0,0,1672,1673,1,0,0,0,1673,1674,1,0,0,0,1674,1675,5,26,0,0,1675,1676,5,1133,0,0,1676,1677,3,716,358,0,1677,1678,5,1134,0,0,1678,1680,1,0,0,0,1679,1626,1,0,0,0,1679,1627,1,0,0,0,1679,1629,1,0,0,0,1679,1630,1,0,0,0,1679,1635,1,0,0,0,1679,1638,1,0,0,0,1679,1641,1,0,0,0,1679,1645,1,0,0,0,1679,1647,1,0,0,0,1679,1649,1,0,0,0,1679,1651,1,0,0,0,1679,1652,1,0,0,0,1679,1656,1,0,0,0,1679,1665,1,0,0,0,1679,1672,1,0,0,0,1680,93,1,0,0,0,1681,1683,5,30,0,0,1682,1684,3,612,306,0,1683,1682,1,0,0,0,1683,1684,1,0,0,0,1684,1686,1,0,0,0,1685,1681,1,0,0,0,1685,1686,1,0,0,0,1686,1687,1,0,0,0,1687,1688,5,130,0,0,1688,1690,5,91,0,0,1689,1691,3,612,306,0,1690,1689,1,0,0,0,1690,1691,1,0,0,0,1691,1693,1,0,0,0,1692,1694,3,74,37,0,1693,1692,1,0,0,0,1693,1694,1,0,0,0,1694,1695,1,0,0,0,1695,1699,3,650,325,0,1696,1698,3,76,38,0,1697,1696,1,0,0,0,1698,1701,1,0,0,0,1699,1697,1,0,0,0,1699,1700,1,0,0,0,1700,1751,1,0,0,0,1701,1699,1,0,0,0,1702,1704,5,30,0,0,1703,1705,3,612,306,0,1704,1703,1,0,0,0,1704,1705,1,0,0,0,1705,1707,1,0,0,0,1706,1702,1,0,0,0,1706,1707,1,0,0,0,1707,1708,1,0,0,0,1708,1710,5,181,0,0,1709,1711,7,20,0,0,1710,1709,1,0,0,0,1710,1711,1,0,0,0,1711,1713,1,0,0,0,1712,1714,3,612,306,0,1713,1712,1,0,0,0,1713,1714,1,0,0,0,1714,1716,1,0,0,0,1715,1717,3,74,37,0,1716,1715,1,0,0,0,1716,1717,1,0,0,0,1717,1718,1,0,0,0,1718,1722,3,650,325,0,1719,1721,3,76,38,0,1720,1719,1,0,0,0,1721,1724,1,0,0,0,1722,1720,1,0,0,0,1722,1723,1,0,0,0,1723,1751,1,0,0,0,1724,1722,1,0,0,0,1725,1727,5,30,0,0,1726,1728,3,612,306,0,1727,1726,1,0,0,0,1727,1728,1,0,0,0,1728,1730,1,0,0,0,1729,1725,1,0,0,0,1729,1730,1,0,0,0,1730,1731,1,0,0,0,1731,1732,5,67,0,0,1732,1734,5,91,0,0,1733,1735,3,612,306,0,1734,1733,1,0,0,0,1734,1735,1,0,0,0,1735,1736,1,0,0,0,1736,1737,3,650,325,0,1737,1738,3,96,48,0,1738,1751,1,0,0,0,1739,1741,5,30,0,0,1740,1742,3,612,306,0,1741,1740,1,0,0,0,1741,1742,1,0,0,0,1742,1744,1,0,0,0,1743,1739,1,0,0,0,1743,1744,1,0,0,0,1744,1745,1,0,0,0,1745,1746,5,26,0,0,1746,1747,5,1133,0,0,1747,1748,3,716,358,0,1748,1749,5,1134,0,0,1749,1751,1,0,0,0,1750,1685,1,0,0,0,1750,1706,1,0,0,0,1750,1729,1,0,0,0,1750,1743,1,0,0,0,1751,95,1,0,0,0,1752,1753,5,136,0,0,1753,1755,3,554,277,0,1754,1756,3,650,325,0,1755,1754,1,0,0,0,1755,1756,1,0,0,0,1756,1759,1,0,0,0,1757,1758,5,109,0,0,1758,1760,7,21,0,0,1759,1757,1,0,0,0,1759,1760,1,0,0,0,1760,1762,1,0,0,0,1761,1763,3,98,49,0,1762,1761,1,0,0,0,1762,1763,1,0,0,0,1763,97,1,0,0,0,1764,1765,5,118,0,0,1765,1766,5,44,0,0,1766,1770,3,100,50,0,1767,1768,5,118,0,0,1768,1769,5,184,0,0,1769,1771,3,100,50,0,1770,1767,1,0,0,0,1770,1771,1,0,0,0,1771,1781,1,0,0,0,1772,1773,5,118,0,0,1773,1774,5,184,0,0,1774,1778,3,100,50,0,1775,1776,5,118,0,0,1776,1777,5,44,0,0,1777,1779,3,100,50,0,1778,1775,1,0,0,0,1778,1779,1,0,0,0,1779,1781,1,0,0,0,1780,1764,1,0,0,0,1780,1772,1,0,0,0,1781,99,1,0,0,0,1782,1791,5,144,0,0,1783,1791,5,21,0,0,1784,1785,5,153,0,0,1785,1791,5,116,0,0,1786,1787,5,521,0,0,1787,1791,5,333,0,0,1788,1789,5,153,0,0,1789,1791,5,42,0,0,1790,1782,1,0,0,0,1790,1783,1,0,0,0,1790,1784,1,0,0,0,1790,1786,1,0,0,0,1790,1788,1,0,0,0,1791,101,1,0,0,0,1792,1794,7,20,0,0,1793,1795,3,612,306,0,1794,1793,1,0,0,0,1794,1795,1,0,0,0,1795,1797,1,0,0,0,1796,1798,3,74,37,0,1797,1796,1,0,0,0,1797,1798,1,0,0,0,1798,1799,1,0,0,0,1799,1803,3,650,325,0,1800,1802,3,76,38,0,1801,1800,1,0,0,0,1802,1805,1,0,0,0,1803,1801,1,0,0,0,1803,1804,1,0,0,0,1804,1821,1,0,0,0,1805,1803,1,0,0,0,1806,1808,7,22,0,0,1807,1809,7,20,0,0,1808,1807,1,0,0,0,1808,1809,1,0,0,0,1809,1811,1,0,0,0,1810,1812,3,612,306,0,1811,1810,1,0,0,0,1811,1812,1,0,0,0,1812,1813,1,0,0,0,1813,1817,3,650,325,0,1814,1816,3,76,38,0,1815,1814,1,0,0,0,1816,1819,1,0,0,0,1817,1815,1,0,0,0,1817,1818,1,0,0,0,1818,1821,1,0,0,0,1819,1817,1,0,0,0,1820,1792,1,0,0,0,1820,1806,1,0,0,0,1821,103,1,0,0,0,1822,1824,5,409,0,0,1823,1825,5,1124,0,0,1824,1823,1,0,0,0,1824,1825,1,0,0,0,1825,1827,1,0,0,0,1826,1828,3,600,300,0,1827,1826,1,0,0,0,1827,1828,1,0,0,0,1828,2008,1,0,0,0,1829,1831,5,875,0,0,1830,1832,5,1124,0,0,1831,1830,1,0,0,0,1831,1832,1,0,0,0,1832,1833,1,0,0,0,1833,2008,5,1148,0,0,1834,1836,5,341,0,0,1835,1837,5,1124,0,0,1836,1835,1,0,0,0,1836,1837,1,0,0,0,1837,1838,1,0,0,0,1838,2008,3,618,309,0,1839,1841,5,342,0,0,1840,1842,5,1124,0,0,1841,1840,1,0,0,0,1841,1842,1,0,0,0,1842,1843,1,0,0,0,1843,2008,3,618,309,0,1844,1846,5,343,0,0,1845,1847,5,1124,0,0,1846,1845,1,0,0,0,1846,1847,1,0,0,0,1847,1848,1,0,0,0,1848,2008,3,618,309,0,1849,1851,5,42,0,0,1850,1849,1,0,0,0,1850,1851,1,0,0,0,1851,1852,1,0,0,0,1852,1854,3,58,29,0,1853,1855,5,1124,0,0,1854,1853,1,0,0,0,1854,1855,1,0,0,0,1855,1858,1,0,0,0,1856,1859,3,596,298,0,1857,1859,5,42,0,0,1858,1856,1,0,0,0,1858,1857,1,0,0,0,1859,2008,1,0,0,0,1860,1862,7,23,0,0,1861,1863,5,1124,0,0,1862,1861,1,0,0,0,1862,1863,1,0,0,0,1863,1864,1,0,0,0,1864,2008,7,24,0,0,1865,1867,5,42,0,0,1866,1865,1,0,0,0,1866,1867,1,0,0,0,1867,1868,1,0,0,0,1868,1870,5,27,0,0,1869,1871,5,1124,0,0,1870,1869,1,0,0,0,1870,1871,1,0,0,0,1871,1872,1,0,0,0,1872,2008,3,598,299,0,1873,1875,5,368,0,0,1874,1876,5,1124,0,0,1875,1874,1,0,0,0,1875,1876,1,0,0,0,1876,1877,1,0,0,0,1877,2008,5,1148,0,0,1878,1880,5,373,0,0,1879,1881,5,1124,0,0,1880,1879,1,0,0,0,1880,1881,1,0,0,0,1881,1882,1,0,0,0,1882,2008,7,25,0,0,1883,1885,5,376,0,0,1884,1886,5,1124,0,0,1885,1884,1,0,0,0,1885,1886,1,0,0,0,1886,1887,1,0,0,0,1887,2008,5,1148,0,0,1888,1889,7,26,0,0,1889,1891,5,395,0,0,1890,1892,5,1124,0,0,1891,1890,1,0,0,0,1891,1892,1,0,0,0,1892,1893,1,0,0,0,1893,2008,5,1148,0,0,1894,1896,5,393,0,0,1895,1897,5,1124,0,0,1896,1895,1,0,0,0,1896,1897,1,0,0,0,1897,1898,1,0,0,0,1898,2008,7,24,0,0,1899,1901,5,405,0,0,1900,1902,5,1124,0,0,1901,1900,1,0,0,0,1901,1902,1,0,0,0,1902,1903,1,0,0,0,1903,2008,5,1148,0,0,1904,1906,7,27,0,0,1905,1907,5,1124,0,0,1906,1905,1,0,0,0,1906,1907,1,0,0,0,1907,1908,1,0,0,0,1908,2008,7,24,0,0,1909,1911,7,28,0,0,1910,1912,5,1124,0,0,1911,1910,1,0,0,0,1911,1912,1,0,0,0,1912,1913,1,0,0,0,1913,2008,3,618,309,0,1914,1916,5,406,0,0,1915,1917,5,1124,0,0,1916,1915,1,0,0,0,1916,1917,1,0,0,0,1917,1918,1,0,0,0,1918,2008,3,618,309,0,1919,1920,5,81,0,0,1920,1922,5,395,0,0,1921,1923,5,1124,0,0,1922,1921,1,0,0,0,1922,1923,1,0,0,0,1923,1924,1,0,0,0,1924,2008,5,1148,0,0,1925,1927,5,455,0,0,1926,1928,5,1124,0,0,1927,1926,1,0,0,0,1927,1928,1,0,0,0,1928,1929,1,0,0,0,1929,2008,7,29,0,0,1930,1932,5,467,0,0,1931,1933,5,1124,0,0,1932,1931,1,0,0,0,1932,1933,1,0,0,0,1933,1934,1,0,0,0,1934,2008,3,620,310,0,1935,1937,5,500,0,0,1936,1938,5,1124,0,0,1937,1936,1,0,0,0,1937,1938,1,0,0,0,1938,1939,1,0,0,0,1939,2008,3,618,309,0,1940,1942,5,510,0,0,1941,1943,5,1124,0,0,1942,1941,1,0,0,0,1942,1943,1,0,0,0,1943,1944,1,0,0,0,1944,2008,3,618,309,0,1945,1947,5,543,0,0,1946,1948,5,1124,0,0,1947,1946,1,0,0,0,1947,1948,1,0,0,0,1948,1949,1,0,0,0,1949,2008,7,13,0,0,1950,1952,5,551,0,0,1951,1953,5,1124,0,0,1952,1951,1,0,0,0,1952,1953,1,0,0,0,1953,1954,1,0,0,0,1954,2008,5,1148,0,0,1955,1957,5,602,0,0,1956,1958,5,1124,0,0,1957,1956,1,0,0,0,1957,1958,1,0,0,0,1958,1959,1,0,0,0,1959,2008,7,30,0,0,1960,1961,5,629,0,0,1961,2008,5,653,0,0,1962,1964,5,1e3,0,0,1963,1965,5,1124,0,0,1964,1963,1,0,0,0,1964,1965,1,0,0,0,1965,1966,1,0,0,0,1966,2008,5,1148,0,0,1967,1969,5,631,0,0,1968,1970,5,1124,0,0,1969,1968,1,0,0,0,1969,1970,1,0,0,0,1970,1971,1,0,0,0,1971,2008,7,13,0,0,1972,1974,5,632,0,0,1973,1975,5,1124,0,0,1974,1973,1,0,0,0,1974,1975,1,0,0,0,1975,1976,1,0,0,0,1976,2008,7,13,0,0,1977,1979,5,633,0,0,1978,1980,5,1124,0,0,1979,1978,1,0,0,0,1979,1980,1,0,0,0,1980,1983,1,0,0,0,1981,1984,5,42,0,0,1982,1984,3,618,309,0,1983,1981,1,0,0,0,1983,1982,1,0,0,0,1984,2008,1,0,0,0,1985,1986,5,647,0,0,1986,1988,3,612,306,0,1987,1989,3,108,54,0,1988,1987,1,0,0,0,1988,1989,1,0,0,0,1989,2008,1,0,0,0,1990,1991,5,648,0,0,1991,1992,5,1124,0,0,1992,2008,3,106,53,0,1993,2008,3,108,54,0,1994,1996,5,654,0,0,1995,1997,5,1124,0,0,1996,1995,1,0,0,0,1996,1997,1,0,0,0,1997,1998,1,0,0,0,1998,2008,7,24,0,0,1999,2001,5,180,0,0,2e3,2002,5,1124,0,0,2001,2e3,1,0,0,0,2001,2002,1,0,0,0,2002,2003,1,0,0,0,2003,2004,5,1133,0,0,2004,2005,3,648,324,0,2005,2006,5,1134,0,0,2006,2008,1,0,0,0,2007,1822,1,0,0,0,2007,1829,1,0,0,0,2007,1834,1,0,0,0,2007,1839,1,0,0,0,2007,1844,1,0,0,0,2007,1850,1,0,0,0,2007,1860,1,0,0,0,2007,1866,1,0,0,0,2007,1873,1,0,0,0,2007,1878,1,0,0,0,2007,1883,1,0,0,0,2007,1888,1,0,0,0,2007,1894,1,0,0,0,2007,1899,1,0,0,0,2007,1904,1,0,0,0,2007,1909,1,0,0,0,2007,1914,1,0,0,0,2007,1919,1,0,0,0,2007,1925,1,0,0,0,2007,1930,1,0,0,0,2007,1935,1,0,0,0,2007,1940,1,0,0,0,2007,1945,1,0,0,0,2007,1950,1,0,0,0,2007,1955,1,0,0,0,2007,1960,1,0,0,0,2007,1962,1,0,0,0,2007,1967,1,0,0,0,2007,1972,1,0,0,0,2007,1977,1,0,0,0,2007,1985,1,0,0,0,2007,1990,1,0,0,0,2007,1993,1,0,0,0,2007,1994,1,0,0,0,2007,1999,1,0,0,0,2008,105,1,0,0,0,2009,2010,7,31,0,0,2010,107,1,0,0,0,2011,2012,5,636,0,0,2012,2013,7,18,0,0,2013,109,1,0,0,0,2014,2015,5,129,0,0,2015,2016,5,19,0,0,2016,2019,3,112,56,0,2017,2018,5,550,0,0,2018,2020,3,618,309,0,2019,2017,1,0,0,0,2019,2020,1,0,0,0,2020,2028,1,0,0,0,2021,2022,5,641,0,0,2022,2023,5,19,0,0,2023,2026,3,114,57,0,2024,2025,5,642,0,0,2025,2027,3,618,309,0,2026,2024,1,0,0,0,2026,2027,1,0,0,0,2027,2029,1,0,0,0,2028,2021,1,0,0,0,2028,2029,1,0,0,0,2029,2041,1,0,0,0,2030,2031,5,1133,0,0,2031,2036,3,116,58,0,2032,2033,5,1135,0,0,2033,2035,3,116,58,0,2034,2032,1,0,0,0,2035,2038,1,0,0,0,2036,2034,1,0,0,0,2036,2037,1,0,0,0,2037,2039,1,0,0,0,2038,2036,1,0,0,0,2039,2040,5,1134,0,0,2040,2042,1,0,0,0,2041,2030,1,0,0,0,2041,2042,1,0,0,0,2042,111,1,0,0,0,2043,2045,5,100,0,0,2044,2043,1,0,0,0,2044,2045,1,0,0,0,2045,2046,1,0,0,0,2046,2047,5,443,0,0,2047,2048,5,1133,0,0,2048,2049,3,716,358,0,2049,2050,5,1134,0,0,2050,2090,1,0,0,0,2051,2053,5,100,0,0,2052,2051,1,0,0,0,2052,2053,1,0,0,0,2053,2054,1,0,0,0,2054,2058,5,91,0,0,2055,2056,5,336,0,0,2056,2057,5,1124,0,0,2057,2059,7,32,0,0,2058,2055,1,0,0,0,2058,2059,1,0,0,0,2059,2060,1,0,0,0,2060,2062,5,1133,0,0,2061,2063,3,644,322,0,2062,2061,1,0,0,0,2062,2063,1,0,0,0,2063,2064,1,0,0,0,2064,2090,5,1134,0,0,2065,2075,5,133,0,0,2066,2067,5,1133,0,0,2067,2068,3,716,358,0,2068,2069,5,1134,0,0,2069,2076,1,0,0,0,2070,2071,5,365,0,0,2071,2072,5,1133,0,0,2072,2073,3,644,322,0,2073,2074,5,1134,0,0,2074,2076,1,0,0,0,2075,2066,1,0,0,0,2075,2070,1,0,0,0,2076,2090,1,0,0,0,2077,2087,5,473,0,0,2078,2079,5,1133,0,0,2079,2080,3,716,358,0,2080,2081,5,1134,0,0,2081,2088,1,0,0,0,2082,2083,5,365,0,0,2083,2084,5,1133,0,0,2084,2085,3,644,322,0,2085,2086,5,1134,0,0,2086,2088,1,0,0,0,2087,2078,1,0,0,0,2087,2082,1,0,0,0,2088,2090,1,0,0,0,2089,2044,1,0,0,0,2089,2052,1,0,0,0,2089,2065,1,0,0,0,2089,2077,1,0,0,0,2090,113,1,0,0,0,2091,2093,5,100,0,0,2092,2091,1,0,0,0,2092,2093,1,0,0,0,2093,2094,1,0,0,0,2094,2095,5,443,0,0,2095,2096,5,1133,0,0,2096,2097,3,716,358,0,2097,2098,5,1134,0,0,2098,2113,1,0,0,0,2099,2101,5,100,0,0,2100,2099,1,0,0,0,2100,2101,1,0,0,0,2101,2102,1,0,0,0,2102,2106,5,91,0,0,2103,2104,5,336,0,0,2104,2105,5,1124,0,0,2105,2107,7,32,0,0,2106,2103,1,0,0,0,2106,2107,1,0,0,0,2107,2108,1,0,0,0,2108,2109,5,1133,0,0,2109,2110,3,644,322,0,2110,2111,5,1134,0,0,2111,2113,1,0,0,0,2112,2092,1,0,0,0,2112,2100,1,0,0,0,2113,115,1,0,0,0,2114,2115,5,129,0,0,2115,2116,3,612,306,0,2116,2117,5,188,0,0,2117,2118,5,471,0,0,2118,2119,5,651,0,0,2119,2120,5,1133,0,0,2120,2125,3,118,59,0,2121,2122,5,1135,0,0,2122,2124,3,118,59,0,2123,2121,1,0,0,0,2124,2127,1,0,0,0,2125,2123,1,0,0,0,2125,2126,1,0,0,0,2126,2128,1,0,0,0,2127,2125,1,0,0,0,2128,2132,5,1134,0,0,2129,2131,3,124,62,0,2130,2129,1,0,0,0,2131,2134,1,0,0,0,2132,2130,1,0,0,0,2132,2133,1,0,0,0,2133,2146,1,0,0,0,2134,2132,1,0,0,0,2135,2136,5,1133,0,0,2136,2141,3,122,61,0,2137,2138,5,1135,0,0,2138,2140,3,122,61,0,2139,2137,1,0,0,0,2140,2143,1,0,0,0,2141,2139,1,0,0,0,2141,2142,1,0,0,0,2142,2144,1,0,0,0,2143,2141,1,0,0,0,2144,2145,5,1134,0,0,2145,2147,1,0,0,0,2146,2135,1,0,0,0,2146,2147,1,0,0,0,2147,2261,1,0,0,0,2148,2149,5,129,0,0,2149,2150,3,612,306,0,2150,2151,5,188,0,0,2151,2152,5,471,0,0,2152,2153,5,651,0,0,2153,2157,3,118,59,0,2154,2156,3,124,62,0,2155,2154,1,0,0,0,2156,2159,1,0,0,0,2157,2155,1,0,0,0,2157,2158,1,0,0,0,2158,2171,1,0,0,0,2159,2157,1,0,0,0,2160,2161,5,1133,0,0,2161,2166,3,122,61,0,2162,2163,5,1135,0,0,2163,2165,3,122,61,0,2164,2162,1,0,0,0,2165,2168,1,0,0,0,2166,2164,1,0,0,0,2166,2167,1,0,0,0,2167,2169,1,0,0,0,2168,2166,1,0,0,0,2169,2170,5,1134,0,0,2170,2172,1,0,0,0,2171,2160,1,0,0,0,2171,2172,1,0,0,0,2172,2261,1,0,0,0,2173,2174,5,129,0,0,2174,2175,3,612,306,0,2175,2176,5,188,0,0,2176,2177,5,80,0,0,2177,2178,5,1133,0,0,2178,2183,3,118,59,0,2179,2180,5,1135,0,0,2180,2182,3,118,59,0,2181,2179,1,0,0,0,2182,2185,1,0,0,0,2183,2181,1,0,0,0,2183,2184,1,0,0,0,2184,2186,1,0,0,0,2185,2183,1,0,0,0,2186,2190,5,1134,0,0,2187,2189,3,124,62,0,2188,2187,1,0,0,0,2189,2192,1,0,0,0,2190,2188,1,0,0,0,2190,2191,1,0,0,0,2191,2204,1,0,0,0,2192,2190,1,0,0,0,2193,2194,5,1133,0,0,2194,2199,3,122,61,0,2195,2196,5,1135,0,0,2196,2198,3,122,61,0,2197,2195,1,0,0,0,2198,2201,1,0,0,0,2199,2197,1,0,0,0,2199,2200,1,0,0,0,2200,2202,1,0,0,0,2201,2199,1,0,0,0,2202,2203,5,1134,0,0,2203,2205,1,0,0,0,2204,2193,1,0,0,0,2204,2205,1,0,0,0,2205,2261,1,0,0,0,2206,2207,5,129,0,0,2207,2208,3,612,306,0,2208,2209,5,188,0,0,2209,2210,5,80,0,0,2210,2211,5,1133,0,0,2211,2216,3,120,60,0,2212,2213,5,1135,0,0,2213,2215,3,120,60,0,2214,2212,1,0,0,0,2215,2218,1,0,0,0,2216,2214,1,0,0,0,2216,2217,1,0,0,0,2217,2219,1,0,0,0,2218,2216,1,0,0,0,2219,2223,5,1134,0,0,2220,2222,3,124,62,0,2221,2220,1,0,0,0,2222,2225,1,0,0,0,2223,2221,1,0,0,0,2223,2224,1,0,0,0,2224,2237,1,0,0,0,2225,2223,1,0,0,0,2226,2227,5,1133,0,0,2227,2232,3,122,61,0,2228,2229,5,1135,0,0,2229,2231,3,122,61,0,2230,2228,1,0,0,0,2231,2234,1,0,0,0,2232,2230,1,0,0,0,2232,2233,1,0,0,0,2233,2235,1,0,0,0,2234,2232,1,0,0,0,2235,2236,5,1134,0,0,2236,2238,1,0,0,0,2237,2226,1,0,0,0,2237,2238,1,0,0,0,2238,2261,1,0,0,0,2239,2240,5,129,0,0,2240,2244,3,612,306,0,2241,2243,3,124,62,0,2242,2241,1,0,0,0,2243,2246,1,0,0,0,2244,2242,1,0,0,0,2244,2245,1,0,0,0,2245,2258,1,0,0,0,2246,2244,1,0,0,0,2247,2248,5,1133,0,0,2248,2253,3,122,61,0,2249,2250,5,1135,0,0,2250,2252,3,122,61,0,2251,2249,1,0,0,0,2252,2255,1,0,0,0,2253,2251,1,0,0,0,2253,2254,1,0,0,0,2254,2256,1,0,0,0,2255,2253,1,0,0,0,2256,2257,5,1134,0,0,2257,2259,1,0,0,0,2258,2247,1,0,0,0,2258,2259,1,0,0,0,2259,2261,1,0,0,0,2260,2114,1,0,0,0,2260,2148,1,0,0,0,2260,2173,1,0,0,0,2260,2206,1,0,0,0,2260,2239,1,0,0,0,2261,117,1,0,0,0,2262,2266,3,630,315,0,2263,2266,3,716,358,0,2264,2266,5,110,0,0,2265,2262,1,0,0,0,2265,2263,1,0,0,0,2265,2264,1,0,0,0,2266,119,1,0,0,0,2267,2268,5,1133,0,0,2268,2271,3,118,59,0,2269,2270,5,1135,0,0,2270,2272,3,118,59,0,2271,2269,1,0,0,0,2272,2273,1,0,0,0,2273,2271,1,0,0,0,2273,2274,1,0,0,0,2274,2275,1,0,0,0,2275,2276,5,1134,0,0,2276,121,1,0,0,0,2277,2278,5,641,0,0,2278,2282,3,612,306,0,2279,2281,3,124,62,0,2280,2279,1,0,0,0,2281,2284,1,0,0,0,2282,2280,1,0,0,0,2282,2283,1,0,0,0,2283,123,1,0,0,0,2284,2282,1,0,0,0,2285,2287,5,42,0,0,2286,2285,1,0,0,0,2286,2287,1,0,0,0,2287,2289,1,0,0,0,2288,2290,5,636,0,0,2289,2288,1,0,0,0,2289,2290,1,0,0,0,2290,2291,1,0,0,0,2291,2293,5,409,0,0,2292,2294,5,1124,0,0,2293,2292,1,0,0,0,2293,2294,1,0,0,0,2294,2295,1,0,0,0,2295,2334,3,600,300,0,2296,2298,5,368,0,0,2297,2299,5,1124,0,0,2298,2297,1,0,0,0,2298,2299,1,0,0,0,2299,2300,1,0,0,0,2300,2334,5,1148,0,0,2301,2302,5,388,0,0,2302,2304,5,395,0,0,2303,2305,5,1124,0,0,2304,2303,1,0,0,0,2304,2305,1,0,0,0,2305,2306,1,0,0,0,2306,2334,5,1148,0,0,2307,2308,5,81,0,0,2308,2310,5,395,0,0,2309,2311,5,1124,0,0,2310,2309,1,0,0,0,2310,2311,1,0,0,0,2311,2312,1,0,0,0,2312,2334,5,1148,0,0,2313,2315,5,500,0,0,2314,2316,5,1124,0,0,2315,2314,1,0,0,0,2315,2316,1,0,0,0,2316,2317,1,0,0,0,2317,2334,3,618,309,0,2318,2320,5,510,0,0,2319,2321,5,1124,0,0,2320,2319,1,0,0,0,2320,2321,1,0,0,0,2321,2322,1,0,0,0,2322,2334,3,618,309,0,2323,2325,5,647,0,0,2324,2326,5,1124,0,0,2325,2324,1,0,0,0,2325,2326,1,0,0,0,2326,2327,1,0,0,0,2327,2334,3,612,306,0,2328,2330,5,528,0,0,2329,2331,5,1124,0,0,2330,2329,1,0,0,0,2330,2331,1,0,0,0,2331,2332,1,0,0,0,2332,2334,3,612,306,0,2333,2286,1,0,0,0,2333,2296,1,0,0,0,2333,2301,1,0,0,0,2333,2307,1,0,0,0,2333,2313,1,0,0,0,2333,2318,1,0,0,0,2333,2323,1,0,0,0,2333,2328,1,0,0,0,2334,125,1,0,0,0,2335,2336,5,7,0,0,2336,2337,7,0,0,0,2337,2339,3,572,286,0,2338,2340,3,56,28,0,2339,2338,1,0,0,0,2340,2341,1,0,0,0,2341,2339,1,0,0,0,2341,2342,1,0,0,0,2342,2352,1,0,0,0,2343,2344,5,7,0,0,2344,2345,7,0,0,0,2345,2346,3,572,286,0,2346,2347,5,664,0,0,2347,2348,5,388,0,0,2348,2349,5,395,0,0,2349,2350,5,516,0,0,2350,2352,1,0,0,0,2351,2335,1,0,0,0,2351,2343,1,0,0,0,2352,127,1,0,0,0,2353,2355,5,7,0,0,2354,2356,3,62,31,0,2355,2354,1,0,0,0,2355,2356,1,0,0,0,2356,2357,1,0,0,0,2357,2358,5,415,0,0,2358,2362,3,552,276,0,2359,2360,5,118,0,0,2360,2361,5,605,0,0,2361,2363,3,64,32,0,2362,2359,1,0,0,0,2362,2363,1,0,0,0,2363,2370,1,0,0,0,2364,2365,5,118,0,0,2365,2367,5,371,0,0,2366,2368,5,114,0,0,2367,2366,1,0,0,0,2367,2368,1,0,0,0,2368,2369,1,0,0,0,2369,2371,5,561,0,0,2370,2364,1,0,0,0,2370,2371,1,0,0,0,2371,2375,1,0,0,0,2372,2373,5,139,0,0,2373,2374,5,175,0,0,2374,2376,3,552,276,0,2375,2372,1,0,0,0,2375,2376,1,0,0,0,2376,2378,1,0,0,0,2377,2379,3,72,36,0,2378,2377,1,0,0,0,2378,2379,1,0,0,0,2379,2382,1,0,0,0,2380,2381,5,368,0,0,2381,2383,5,1148,0,0,2382,2380,1,0,0,0,2382,2383,1,0,0,0,2383,2386,1,0,0,0,2384,2385,5,399,0,0,2385,2387,3,388,194,0,2386,2384,1,0,0,0,2386,2387,1,0,0,0,2387,129,1,0,0,0,2388,2389,5,7,0,0,2389,2390,5,437,0,0,2390,2394,3,552,276,0,2391,2393,3,82,41,0,2392,2391,1,0,0,0,2393,2396,1,0,0,0,2394,2392,1,0,0,0,2394,2395,1,0,0,0,2395,131,1,0,0,0,2396,2394,1,0,0,0,2397,2398,5,7,0,0,2398,2399,5,457,0,0,2399,2400,5,599,0,0,2400,2401,5,791,0,0,2401,2402,5,477,0,0,2402,2403,5,91,0,0,2403,133,1,0,0,0,2404,2405,5,7,0,0,2405,2406,5,475,0,0,2406,2407,5,73,0,0,2407,2408,3,612,306,0,2408,2409,5,5,0,0,2409,2410,5,659,0,0,2410,2416,5,1148,0,0,2411,2413,5,453,0,0,2412,2414,5,1124,0,0,2413,2412,1,0,0,0,2413,2414,1,0,0,0,2414,2415,1,0,0,0,2415,2417,3,620,310,0,2416,2411,1,0,0,0,2416,2417,1,0,0,0,2417,2419,1,0,0,0,2418,2420,5,674,0,0,2419,2418,1,0,0,0,2419,2420,1,0,0,0,2420,2421,1,0,0,0,2421,2423,5,409,0,0,2422,2424,5,1124,0,0,2423,2422,1,0,0,0,2423,2424,1,0,0,0,2424,2425,1,0,0,0,2425,2426,3,600,300,0,2426,135,1,0,0,0,2427,2428,5,7,0,0,2428,2429,5,131,0,0,2429,2433,3,552,276,0,2430,2432,3,82,41,0,2431,2430,1,0,0,0,2432,2435,1,0,0,0,2433,2431,1,0,0,0,2433,2434,1,0,0,0,2434,137,1,0,0,0,2435,2433,1,0,0,0,2436,2437,5,7,0,0,2437,2438,5,608,0,0,2438,2439,3,612,306,0,2439,2440,5,541,0,0,2440,2441,5,1133,0,0,2441,2446,3,84,42,0,2442,2443,5,1135,0,0,2443,2445,3,84,42,0,2444,2442,1,0,0,0,2445,2448,1,0,0,0,2446,2444,1,0,0,0,2446,2447,1,0,0,0,2447,2449,1,0,0,0,2448,2446,1,0,0,0,2449,2450,5,1134,0,0,2450,139,1,0,0,0,2451,2453,5,7,0,0,2452,2454,7,1,0,0,2453,2452,1,0,0,0,2453,2454,1,0,0,0,2454,2456,1,0,0,0,2455,2457,5,78,0,0,2456,2455,1,0,0,0,2456,2457,1,0,0,0,2457,2458,1,0,0,0,2458,2459,5,172,0,0,2459,2461,3,554,277,0,2460,2462,3,674,337,0,2461,2460,1,0,0,0,2461,2462,1,0,0,0,2462,2471,1,0,0,0,2463,2468,3,146,73,0,2464,2465,5,1135,0,0,2465,2467,3,146,73,0,2466,2464,1,0,0,0,2467,2470,1,0,0,0,2468,2466,1,0,0,0,2468,2469,1,0,0,0,2469,2472,1,0,0,0,2470,2468,1,0,0,0,2471,2463,1,0,0,0,2471,2472,1,0,0,0,2472,2474,1,0,0,0,2473,2475,3,110,55,0,2474,2473,1,0,0,0,2474,2475,1,0,0,0,2475,141,1,0,0,0,2476,2477,5,7,0,0,2477,2478,5,647,0,0,2478,2479,3,612,306,0,2479,2480,7,33,0,0,2480,2481,5,389,0,0,2481,2485,5,1148,0,0,2482,2483,5,453,0,0,2483,2484,5,1124,0,0,2484,2486,3,620,310,0,2485,2482,1,0,0,0,2485,2486,1,0,0,0,2486,2488,1,0,0,0,2487,2489,5,674,0,0,2488,2487,1,0,0,0,2488,2489,1,0,0,0,2489,2490,1,0,0,0,2490,2492,5,409,0,0,2491,2493,5,1124,0,0,2492,2491,1,0,0,0,2492,2493,1,0,0,0,2493,2494,1,0,0,0,2494,2495,3,600,300,0,2495,143,1,0,0,0,2496,2500,5,7,0,0,2497,2498,5,336,0,0,2498,2499,5,1124,0,0,2499,2501,7,10,0,0,2500,2497,1,0,0,0,2500,2501,1,0,0,0,2501,2503,1,0,0,0,2502,2504,3,62,31,0,2503,2502,1,0,0,0,2503,2504,1,0,0,0,2504,2508,1,0,0,0,2505,2506,5,160,0,0,2506,2507,5,606,0,0,2507,2509,7,11,0,0,2508,2505,1,0,0,0,2508,2509,1,0,0,0,2509,2510,1,0,0,0,2510,2511,5,671,0,0,2511,2516,3,552,276,0,2512,2513,5,1133,0,0,2513,2514,3,644,322,0,2514,2515,5,1134,0,0,2515,2517,1,0,0,0,2516,2512,1,0,0,0,2516,2517,1,0,0,0,2517,2518,1,0,0,0,2518,2519,5,12,0,0,2519,2526,3,198,99,0,2520,2522,5,192,0,0,2521,2523,7,12,0,0,2522,2521,1,0,0,0,2522,2523,1,0,0,0,2523,2524,1,0,0,0,2524,2525,5,26,0,0,2525,2527,5,120,0,0,2526,2520,1,0,0,0,2526,2527,1,0,0,0,2527,145,1,0,0,0,2528,2535,3,104,52,0,2529,2531,5,1135,0,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2532,1,0,0,0,2532,2534,3,104,52,0,2533,2530,1,0,0,0,2534,2537,1,0,0,0,2535,2533,1,0,0,0,2535,2536,1,0,0,0,2536,2880,1,0,0,0,2537,2535,1,0,0,0,2538,2540,5,5,0,0,2539,2541,5,28,0,0,2540,2539,1,0,0,0,2540,2541,1,0,0,0,2541,2542,1,0,0,0,2542,2543,3,612,306,0,2543,2547,3,90,45,0,2544,2548,5,430,0,0,2545,2546,5,334,0,0,2546,2548,3,612,306,0,2547,2544,1,0,0,0,2547,2545,1,0,0,0,2547,2548,1,0,0,0,2548,2880,1,0,0,0,2549,2551,5,5,0,0,2550,2552,5,28,0,0,2551,2550,1,0,0,0,2551,2552,1,0,0,0,2552,2553,1,0,0,0,2553,2554,5,1133,0,0,2554,2555,3,612,306,0,2555,2562,3,90,45,0,2556,2557,5,1135,0,0,2557,2558,3,612,306,0,2558,2559,3,90,45,0,2559,2561,1,0,0,0,2560,2556,1,0,0,0,2561,2564,1,0,0,0,2562,2560,1,0,0,0,2562,2563,1,0,0,0,2563,2565,1,0,0,0,2564,2562,1,0,0,0,2565,2566,5,1134,0,0,2566,2880,1,0,0,0,2567,2568,5,5,0,0,2568,2570,7,20,0,0,2569,2571,3,612,306,0,2570,2569,1,0,0,0,2570,2571,1,0,0,0,2571,2573,1,0,0,0,2572,2574,3,74,37,0,2573,2572,1,0,0,0,2573,2574,1,0,0,0,2574,2575,1,0,0,0,2575,2579,3,650,325,0,2576,2578,3,76,38,0,2577,2576,1,0,0,0,2578,2581,1,0,0,0,2579,2577,1,0,0,0,2579,2580,1,0,0,0,2580,2880,1,0,0,0,2581,2579,1,0,0,0,2582,2587,5,5,0,0,2583,2585,5,30,0,0,2584,2586,3,612,306,0,2585,2584,1,0,0,0,2585,2586,1,0,0,0,2586,2588,1,0,0,0,2587,2583,1,0,0,0,2587,2588,1,0,0,0,2588,2589,1,0,0,0,2589,2590,5,130,0,0,2590,2592,5,91,0,0,2591,2593,3,612,306,0,2592,2591,1,0,0,0,2592,2593,1,0,0,0,2593,2595,1,0,0,0,2594,2596,3,74,37,0,2595,2594,1,0,0,0,2595,2596,1,0,0,0,2596,2597,1,0,0,0,2597,2601,3,650,325,0,2598,2600,3,76,38,0,2599,2598,1,0,0,0,2600,2603,1,0,0,0,2601,2599,1,0,0,0,2601,2602,1,0,0,0,2602,2880,1,0,0,0,2603,2601,1,0,0,0,2604,2609,5,5,0,0,2605,2607,5,30,0,0,2606,2608,3,612,306,0,2607,2606,1,0,0,0,2607,2608,1,0,0,0,2608,2610,1,0,0,0,2609,2605,1,0,0,0,2609,2610,1,0,0,0,2610,2611,1,0,0,0,2611,2613,5,181,0,0,2612,2614,7,20,0,0,2613,2612,1,0,0,0,2613,2614,1,0,0,0,2614,2616,1,0,0,0,2615,2617,3,612,306,0,2616,2615,1,0,0,0,2616,2617,1,0,0,0,2617,2619,1,0,0,0,2618,2620,3,74,37,0,2619,2618,1,0,0,0,2619,2620,1,0,0,0,2620,2621,1,0,0,0,2621,2625,3,650,325,0,2622,2624,3,76,38,0,2623,2622,1,0,0,0,2624,2627,1,0,0,0,2625,2623,1,0,0,0,2625,2626,1,0,0,0,2626,2880,1,0,0,0,2627,2625,1,0,0,0,2628,2629,5,5,0,0,2629,2631,7,22,0,0,2630,2632,7,20,0,0,2631,2630,1,0,0,0,2631,2632,1,0,0,0,2632,2634,1,0,0,0,2633,2635,3,612,306,0,2634,2633,1,0,0,0,2634,2635,1,0,0,0,2635,2636,1,0,0,0,2636,2640,3,650,325,0,2637,2639,3,76,38,0,2638,2637,1,0,0,0,2639,2642,1,0,0,0,2640,2638,1,0,0,0,2640,2641,1,0,0,0,2641,2880,1,0,0,0,2642,2640,1,0,0,0,2643,2648,5,5,0,0,2644,2646,5,30,0,0,2645,2647,3,612,306,0,2646,2645,1,0,0,0,2646,2647,1,0,0,0,2647,2649,1,0,0,0,2648,2644,1,0,0,0,2648,2649,1,0,0,0,2649,2650,1,0,0,0,2650,2651,5,67,0,0,2651,2653,5,91,0,0,2652,2654,3,612,306,0,2653,2652,1,0,0,0,2653,2654,1,0,0,0,2654,2655,1,0,0,0,2655,2656,3,650,325,0,2656,2657,3,96,48,0,2657,2880,1,0,0,0,2658,2663,5,5,0,0,2659,2661,5,30,0,0,2660,2662,3,612,306,0,2661,2660,1,0,0,0,2661,2662,1,0,0,0,2662,2664,1,0,0,0,2663,2659,1,0,0,0,2663,2664,1,0,0,0,2664,2665,1,0,0,0,2665,2672,5,26,0,0,2666,2673,3,612,306,0,2667,2673,3,622,311,0,2668,2669,5,1133,0,0,2669,2670,3,716,358,0,2670,2671,5,1134,0,0,2671,2673,1,0,0,0,2672,2666,1,0,0,0,2672,2667,1,0,0,0,2672,2668,1,0,0,0,2673,2675,1,0,0,0,2674,2676,5,114,0,0,2675,2674,1,0,0,0,2675,2676,1,0,0,0,2676,2678,1,0,0,0,2677,2679,5,57,0,0,2678,2677,1,0,0,0,2678,2679,1,0,0,0,2679,2880,1,0,0,0,2680,2685,5,7,0,0,2681,2683,5,30,0,0,2682,2684,3,576,288,0,2683,2682,1,0,0,0,2683,2684,1,0,0,0,2684,2686,1,0,0,0,2685,2681,1,0,0,0,2685,2686,1,0,0,0,2686,2687,1,0,0,0,2687,2694,5,26,0,0,2688,2695,3,612,306,0,2689,2695,3,622,311,0,2690,2691,5,1133,0,0,2691,2692,3,716,358,0,2692,2693,5,1134,0,0,2693,2695,1,0,0,0,2694,2688,1,0,0,0,2694,2689,1,0,0,0,2694,2690,1,0,0,0,2695,2697,1,0,0,0,2696,2698,5,114,0,0,2697,2696,1,0,0,0,2697,2698,1,0,0,0,2698,2700,1,0,0,0,2699,2701,5,57,0,0,2700,2699,1,0,0,0,2700,2701,1,0,0,0,2701,2880,1,0,0,0,2702,2707,5,5,0,0,2703,2705,5,30,0,0,2704,2706,3,612,306,0,2705,2704,1,0,0,0,2705,2706,1,0,0,0,2706,2708,1,0,0,0,2707,2703,1,0,0,0,2707,2708,1,0,0,0,2708,2709,1,0,0,0,2709,2710,5,26,0,0,2710,2711,5,1133,0,0,2711,2712,3,716,358,0,2712,2713,5,1134,0,0,2713,2880,1,0,0,0,2714,2716,5,336,0,0,2715,2717,5,1124,0,0,2716,2715,1,0,0,0,2716,2717,1,0,0,0,2717,2718,1,0,0,0,2718,2880,7,34,0,0,2719,2721,5,7,0,0,2720,2722,5,28,0,0,2721,2720,1,0,0,0,2721,2722,1,0,0,0,2722,2723,1,0,0,0,2723,2729,3,612,306,0,2724,2725,5,153,0,0,2725,2726,5,42,0,0,2726,2730,3,662,331,0,2727,2728,5,51,0,0,2728,2730,5,42,0,0,2729,2724,1,0,0,0,2729,2727,1,0,0,0,2730,2880,1,0,0,0,2731,2733,5,24,0,0,2732,2734,5,28,0,0,2733,2732,1,0,0,0,2733,2734,1,0,0,0,2734,2735,1,0,0,0,2735,2736,3,612,306,0,2736,2737,3,612,306,0,2737,2741,3,90,45,0,2738,2742,5,430,0,0,2739,2740,5,334,0,0,2740,2742,3,612,306,0,2741,2738,1,0,0,0,2741,2739,1,0,0,0,2741,2742,1,0,0,0,2742,2880,1,0,0,0,2743,2744,5,139,0,0,2744,2745,5,28,0,0,2745,2746,3,612,306,0,2746,2747,5,175,0,0,2747,2748,3,612,306,0,2748,2880,1,0,0,0,2749,2751,5,103,0,0,2750,2752,5,1124,0,0,2751,2750,1,0,0,0,2751,2752,1,0,0,0,2752,2753,1,0,0,0,2753,2880,7,4,0,0,2754,2756,5,512,0,0,2755,2757,5,28,0,0,2756,2755,1,0,0,0,2756,2757,1,0,0,0,2757,2758,1,0,0,0,2758,2759,3,612,306,0,2759,2763,3,90,45,0,2760,2764,5,430,0,0,2761,2762,5,334,0,0,2762,2764,3,612,306,0,2763,2760,1,0,0,0,2763,2761,1,0,0,0,2763,2764,1,0,0,0,2764,2880,1,0,0,0,2765,2767,5,51,0,0,2766,2768,5,28,0,0,2767,2766,1,0,0,0,2767,2768,1,0,0,0,2768,2769,1,0,0,0,2769,2771,3,612,306,0,2770,2772,5,144,0,0,2771,2770,1,0,0,0,2771,2772,1,0,0,0,2772,2880,1,0,0,0,2773,2774,5,51,0,0,2774,2775,7,35,0,0,2775,2880,3,576,288,0,2776,2777,5,51,0,0,2777,2778,5,130,0,0,2778,2880,5,91,0,0,2779,2780,5,51,0,0,2780,2781,7,20,0,0,2781,2880,3,574,287,0,2782,2783,5,139,0,0,2783,2784,7,20,0,0,2784,2785,3,574,287,0,2785,2786,5,175,0,0,2786,2787,3,612,306,0,2787,2880,1,0,0,0,2788,2790,5,7,0,0,2789,2791,5,28,0,0,2790,2789,1,0,0,0,2790,2791,1,0,0,0,2791,2792,1,0,0,0,2792,2806,3,612,306,0,2793,2794,5,153,0,0,2794,2800,5,42,0,0,2795,2801,3,622,311,0,2796,2797,5,1133,0,0,2797,2798,3,716,358,0,2798,2799,5,1134,0,0,2799,2801,1,0,0,0,2800,2795,1,0,0,0,2800,2796,1,0,0,0,2801,2807,1,0,0,0,2802,2803,5,153,0,0,2803,2807,7,15,0,0,2804,2805,5,51,0,0,2805,2807,5,42,0,0,2806,2793,1,0,0,0,2806,2802,1,0,0,0,2806,2804,1,0,0,0,2807,2880,1,0,0,0,2808,2809,5,7,0,0,2809,2810,5,81,0,0,2810,2811,3,574,287,0,2811,2812,7,15,0,0,2812,2880,1,0,0,0,2813,2814,5,51,0,0,2814,2815,5,67,0,0,2815,2816,5,91,0,0,2816,2880,3,612,306,0,2817,2818,5,396,0,0,2818,2880,5,92,0,0,2819,2820,5,403,0,0,2820,2880,5,92,0,0,2821,2823,5,139,0,0,2822,2824,7,36,0,0,2823,2822,1,0,0,0,2823,2824,1,0,0,0,2824,2827,1,0,0,0,2825,2828,3,612,306,0,2826,2828,3,552,276,0,2827,2825,1,0,0,0,2827,2826,1,0,0,0,2828,2880,1,0,0,0,2829,2830,5,124,0,0,2830,2831,5,19,0,0,2831,2880,3,644,322,0,2832,2833,5,32,0,0,2833,2837,5,175,0,0,2834,2838,5,841,0,0,2835,2836,5,25,0,0,2836,2838,5,153,0,0,2837,2834,1,0,0,0,2837,2835,1,0,0,0,2838,2839,1,0,0,0,2839,2842,3,596,298,0,2840,2841,5,27,0,0,2841,2843,3,598,299,0,2842,2840,1,0,0,0,2842,2843,1,0,0,0,2843,2880,1,0,0,0,2844,2846,5,42,0,0,2845,2844,1,0,0,0,2845,2846,1,0,0,0,2846,2847,1,0,0,0,2847,2848,5,25,0,0,2848,2849,5,153,0,0,2849,2850,5,1124,0,0,2850,2854,3,596,298,0,2851,2852,5,27,0,0,2852,2853,5,1124,0,0,2853,2855,3,598,299,0,2854,2851,1,0,0,0,2854,2855,1,0,0,0,2855,2880,1,0,0,0,2856,2857,5,397,0,0,2857,2880,5,647,0,0,2858,2859,5,450,0,0,2859,2880,5,647,0,0,2860,2880,5,66,0,0,2861,2862,7,37,0,0,2862,2880,5,668,0,0,2863,2865,5,5,0,0,2864,2866,5,28,0,0,2865,2864,1,0,0,0,2865,2866,1,0,0,0,2866,2867,1,0,0,0,2867,2868,5,1133,0,0,2868,2873,3,88,44,0,2869,2870,5,1135,0,0,2870,2872,3,88,44,0,2871,2869,1,0,0,0,2872,2875,1,0,0,0,2873,2871,1,0,0,0,2873,2874,1,0,0,0,2874,2876,1,0,0,0,2875,2873,1,0,0,0,2876,2877,5,1134,0,0,2877,2880,1,0,0,0,2878,2880,3,148,74,0,2879,2528,1,0,0,0,2879,2538,1,0,0,0,2879,2549,1,0,0,0,2879,2567,1,0,0,0,2879,2582,1,0,0,0,2879,2604,1,0,0,0,2879,2628,1,0,0,0,2879,2643,1,0,0,0,2879,2658,1,0,0,0,2879,2680,1,0,0,0,2879,2702,1,0,0,0,2879,2714,1,0,0,0,2879,2719,1,0,0,0,2879,2731,1,0,0,0,2879,2743,1,0,0,0,2879,2749,1,0,0,0,2879,2754,1,0,0,0,2879,2765,1,0,0,0,2879,2773,1,0,0,0,2879,2776,1,0,0,0,2879,2779,1,0,0,0,2879,2782,1,0,0,0,2879,2788,1,0,0,0,2879,2808,1,0,0,0,2879,2813,1,0,0,0,2879,2817,1,0,0,0,2879,2819,1,0,0,0,2879,2821,1,0,0,0,2879,2829,1,0,0,0,2879,2832,1,0,0,0,2879,2845,1,0,0,0,2879,2856,1,0,0,0,2879,2858,1,0,0,0,2879,2860,1,0,0,0,2879,2861,1,0,0,0,2879,2863,1,0,0,0,2879,2878,1,0,0,0,2880,147,1,0,0,0,2881,2882,5,5,0,0,2882,2883,5,129,0,0,2883,2884,5,1133,0,0,2884,2889,3,116,58,0,2885,2886,5,1135,0,0,2886,2888,3,116,58,0,2887,2885,1,0,0,0,2888,2891,1,0,0,0,2889,2887,1,0,0,0,2889,2890,1,0,0,0,2890,2892,1,0,0,0,2891,2889,1,0,0,0,2892,2893,5,1134,0,0,2893,2980,1,0,0,0,2894,2895,5,51,0,0,2895,2896,5,129,0,0,2896,2980,3,644,322,0,2897,2898,5,397,0,0,2898,2901,5,129,0,0,2899,2902,3,644,322,0,2900,2902,5,6,0,0,2901,2899,1,0,0,0,2901,2900,1,0,0,0,2902,2903,1,0,0,0,2903,2980,5,647,0,0,2904,2905,5,450,0,0,2905,2908,5,129,0,0,2906,2909,3,644,322,0,2907,2909,5,6,0,0,2908,2906,1,0,0,0,2908,2907,1,0,0,0,2909,2910,1,0,0,0,2910,2980,5,647,0,0,2911,2912,5,656,0,0,2912,2915,5,129,0,0,2913,2916,3,644,322,0,2914,2916,5,6,0,0,2915,2913,1,0,0,0,2915,2914,1,0,0,0,2916,2980,1,0,0,0,2917,2918,5,363,0,0,2918,2919,5,129,0,0,2919,2980,3,618,309,0,2920,2921,5,579,0,0,2921,2922,5,129,0,0,2922,2923,3,644,322,0,2923,2924,5,87,0,0,2924,2925,5,1133,0,0,2925,2930,3,116,58,0,2926,2927,5,1135,0,0,2927,2929,3,116,58,0,2928,2926,1,0,0,0,2929,2932,1,0,0,0,2930,2928,1,0,0,0,2930,2931,1,0,0,0,2931,2933,1,0,0,0,2932,2930,1,0,0,0,2933,2934,5,1134,0,0,2934,2980,1,0,0,0,2935,2936,5,418,0,0,2936,2937,5,129,0,0,2937,2938,3,612,306,0,2938,2939,5,192,0,0,2939,2940,5,172,0,0,2940,2943,3,554,277,0,2941,2942,7,37,0,0,2942,2944,5,668,0,0,2943,2941,1,0,0,0,2943,2944,1,0,0,0,2944,2980,1,0,0,0,2945,2946,5,9,0,0,2946,2949,5,129,0,0,2947,2950,3,644,322,0,2948,2950,5,6,0,0,2949,2947,1,0,0,0,2949,2948,1,0,0,0,2950,2980,1,0,0,0,2951,2952,5,26,0,0,2952,2955,5,129,0,0,2953,2956,3,644,322,0,2954,2956,5,6,0,0,2955,2953,1,0,0,0,2955,2954,1,0,0,0,2956,2980,1,0,0,0,2957,2958,5,119,0,0,2958,2961,5,129,0,0,2959,2962,3,644,322,0,2960,2962,5,6,0,0,2961,2959,1,0,0,0,2961,2960,1,0,0,0,2962,2980,1,0,0,0,2963,2964,5,569,0,0,2964,2967,5,129,0,0,2965,2968,3,644,322,0,2966,2968,5,6,0,0,2967,2965,1,0,0,0,2967,2966,1,0,0,0,2968,2980,1,0,0,0,2969,2970,5,580,0,0,2970,2973,5,129,0,0,2971,2974,3,644,322,0,2972,2974,5,6,0,0,2973,2971,1,0,0,0,2973,2972,1,0,0,0,2974,2980,1,0,0,0,2975,2976,5,578,0,0,2976,2980,5,549,0,0,2977,2978,5,664,0,0,2978,2980,5,549,0,0,2979,2881,1,0,0,0,2979,2894,1,0,0,0,2979,2897,1,0,0,0,2979,2904,1,0,0,0,2979,2911,1,0,0,0,2979,2917,1,0,0,0,2979,2920,1,0,0,0,2979,2935,1,0,0,0,2979,2945,1,0,0,0,2979,2951,1,0,0,0,2979,2957,1,0,0,0,2979,2963,1,0,0,0,2979,2969,1,0,0,0,2979,2975,1,0,0,0,2979,2977,1,0,0,0,2980,149,1,0,0,0,2981,2982,5,51,0,0,2982,2984,7,0,0,0,2983,2985,3,668,334,0,2984,2983,1,0,0,0,2984,2985,1,0,0,0,2985,2986,1,0,0,0,2986,2987,3,572,286,0,2987,151,1,0,0,0,2988,2989,5,51,0,0,2989,2991,5,415,0,0,2990,2992,3,668,334,0,2991,2990,1,0,0,0,2991,2992,1,0,0,0,2992,2993,1,0,0,0,2993,2994,3,552,276,0,2994,153,1,0,0,0,2995,2996,5,51,0,0,2996,2998,5,81,0,0,2997,2999,7,1,0,0,2998,2997,1,0,0,0,2998,2999,1,0,0,0,2999,3e3,1,0,0,0,3e3,3001,3,574,287,0,3001,3002,5,118,0,0,3002,3015,3,554,277,0,3003,3005,5,336,0,0,3004,3006,5,1124,0,0,3005,3004,1,0,0,0,3005,3006,1,0,0,0,3006,3007,1,0,0,0,3007,3014,7,3,0,0,3008,3010,5,103,0,0,3009,3011,5,1124,0,0,3010,3009,1,0,0,0,3010,3011,1,0,0,0,3011,3012,1,0,0,0,3012,3014,7,4,0,0,3013,3003,1,0,0,0,3013,3008,1,0,0,0,3014,3017,1,0,0,0,3015,3013,1,0,0,0,3015,3016,1,0,0,0,3016,155,1,0,0,0,3017,3015,1,0,0,0,3018,3019,5,51,0,0,3019,3020,5,475,0,0,3020,3021,5,73,0,0,3021,3022,3,612,306,0,3022,3023,5,409,0,0,3023,3024,5,1124,0,0,3024,3025,3,600,300,0,3025,157,1,0,0,0,3026,3027,5,51,0,0,3027,3029,5,131,0,0,3028,3030,3,668,334,0,3029,3028,1,0,0,0,3029,3030,1,0,0,0,3030,3031,1,0,0,0,3031,3032,3,552,276,0,3032,159,1,0,0,0,3033,3034,5,51,0,0,3034,3036,5,437,0,0,3035,3037,3,668,334,0,3036,3035,1,0,0,0,3036,3037,1,0,0,0,3037,3038,1,0,0,0,3038,3039,3,552,276,0,3039,161,1,0,0,0,3040,3041,5,51,0,0,3041,3043,5,608,0,0,3042,3044,3,668,334,0,3043,3042,1,0,0,0,3043,3044,1,0,0,0,3044,3045,1,0,0,0,3045,3046,3,612,306,0,3046,163,1,0,0,0,3047,3049,5,51,0,0,3048,3050,5,649,0,0,3049,3048,1,0,0,0,3049,3050,1,0,0,0,3050,3051,1,0,0,0,3051,3053,5,172,0,0,3052,3054,3,668,334,0,3053,3052,1,0,0,0,3053,3054,1,0,0,0,3054,3055,1,0,0,0,3055,3057,3,648,324,0,3056,3058,7,38,0,0,3057,3056,1,0,0,0,3057,3058,1,0,0,0,3058,165,1,0,0,0,3059,3060,5,51,0,0,3060,3061,5,647,0,0,3061,3067,3,612,306,0,3062,3064,5,409,0,0,3063,3065,5,1124,0,0,3064,3063,1,0,0,0,3064,3065,1,0,0,0,3065,3066,1,0,0,0,3066,3068,3,600,300,0,3067,3062,1,0,0,0,3067,3068,1,0,0,0,3068,167,1,0,0,0,3069,3070,5,51,0,0,3070,3072,5,177,0,0,3071,3073,3,668,334,0,3072,3071,1,0,0,0,3072,3073,1,0,0,0,3073,3074,1,0,0,0,3074,3075,3,578,289,0,3075,169,1,0,0,0,3076,3077,5,51,0,0,3077,3079,5,671,0,0,3078,3080,3,668,334,0,3079,3078,1,0,0,0,3079,3080,1,0,0,0,3080,3081,1,0,0,0,3081,3086,3,552,276,0,3082,3083,5,1135,0,0,3083,3085,3,552,276,0,3084,3082,1,0,0,0,3085,3088,1,0,0,0,3086,3084,1,0,0,0,3086,3087,1,0,0,0,3087,3090,1,0,0,0,3088,3086,1,0,0,0,3089,3091,7,38,0,0,3090,3089,1,0,0,0,3090,3091,1,0,0,0,3091,171,1,0,0,0,3092,3093,5,51,0,0,3093,3095,5,596,0,0,3094,3096,3,668,334,0,3095,3094,1,0,0,0,3095,3096,1,0,0,0,3096,3097,1,0,0,0,3097,3098,3,566,283,0,3098,173,1,0,0,0,3099,3100,5,153,0,0,3100,3101,5,42,0,0,3101,3105,5,596,0,0,3102,3106,5,529,0,0,3103,3106,5,6,0,0,3104,3106,3,566,283,0,3105,3102,1,0,0,0,3105,3103,1,0,0,0,3105,3104,1,0,0,0,3106,3107,1,0,0,0,3107,3108,5,175,0,0,3108,3113,3,588,294,0,3109,3110,5,153,0,0,3110,3111,5,596,0,0,3111,3113,3,434,217,0,3112,3099,1,0,0,0,3112,3109,1,0,0,0,3113,175,1,0,0,0,3114,3115,5,139,0,0,3115,3116,5,172,0,0,3116,3121,3,178,89,0,3117,3118,5,1135,0,0,3118,3120,3,178,89,0,3119,3117,1,0,0,0,3120,3123,1,0,0,0,3121,3119,1,0,0,0,3121,3122,1,0,0,0,3122,177,1,0,0,0,3123,3121,1,0,0,0,3124,3125,3,554,277,0,3125,3126,5,175,0,0,3126,3127,3,554,277,0,3127,179,1,0,0,0,3128,3130,5,656,0,0,3129,3131,5,172,0,0,3130,3129,1,0,0,0,3130,3131,1,0,0,0,3131,3132,1,0,0,0,3132,3133,3,554,277,0,3133,181,1,0,0,0,3134,3135,5,20,0,0,3135,3142,3,552,276,0,3136,3139,5,1133,0,0,3137,3140,3,656,328,0,3138,3140,3,652,326,0,3139,3137,1,0,0,0,3139,3138,1,0,0,0,3139,3140,1,0,0,0,3140,3141,1,0,0,0,3141,3143,5,1134,0,0,3142,3136,1,0,0,0,3142,3143,1,0,0,0,3143,183,1,0,0,0,3144,3147,3,212,106,0,3145,3147,3,214,107,0,3146,3144,1,0,0,0,3146,3145,1,0,0,0,3147,185,1,0,0,0,3148,3149,5,399,0,0,3149,3150,3,652,326,0,3150,187,1,0,0,0,3151,3156,3,216,108,0,3152,3156,3,218,109,0,3153,3156,3,220,110,0,3154,3156,3,222,111,0,3155,3151,1,0,0,0,3155,3152,1,0,0,0,3155,3153,1,0,0,0,3155,3154,1,0,0,0,3156,189,1,0,0,0,3157,3159,5,85,0,0,3158,3160,7,39,0,0,3159,3158,1,0,0,0,3159,3160,1,0,0,0,3160,3162,1,0,0,0,3161,3163,5,78,0,0,3162,3161,1,0,0,0,3162,3163,1,0,0,0,3163,3165,1,0,0,0,3164,3166,5,87,0,0,3165,3164,1,0,0,0,3165,3166,1,0,0,0,3166,3167,1,0,0,0,3167,3174,3,554,277,0,3168,3169,5,129,0,0,3169,3171,5,1133,0,0,3170,3172,3,644,322,0,3171,3170,1,0,0,0,3171,3172,1,0,0,0,3172,3173,1,0,0,0,3173,3175,5,1134,0,0,3174,3168,1,0,0,0,3174,3175,1,0,0,0,3175,3199,1,0,0,0,3176,3178,5,1133,0,0,3177,3179,3,646,323,0,3178,3177,1,0,0,0,3178,3179,1,0,0,0,3179,3180,1,0,0,0,3180,3182,5,1134,0,0,3181,3176,1,0,0,0,3181,3182,1,0,0,0,3182,3183,1,0,0,0,3183,3188,3,204,102,0,3184,3186,5,12,0,0,3185,3184,1,0,0,0,3185,3186,1,0,0,0,3186,3187,1,0,0,0,3187,3189,3,612,306,0,3188,3185,1,0,0,0,3188,3189,1,0,0,0,3189,3200,1,0,0,0,3190,3191,5,153,0,0,3191,3196,3,206,103,0,3192,3193,5,1135,0,0,3193,3195,3,206,103,0,3194,3192,1,0,0,0,3195,3198,1,0,0,0,3196,3194,1,0,0,0,3196,3197,1,0,0,0,3197,3200,1,0,0,0,3198,3196,1,0,0,0,3199,3181,1,0,0,0,3199,3190,1,0,0,0,3200,3213,1,0,0,0,3201,3202,5,118,0,0,3202,3203,5,401,0,0,3203,3204,5,91,0,0,3204,3205,5,184,0,0,3205,3210,3,206,103,0,3206,3207,5,1135,0,0,3207,3209,3,206,103,0,3208,3206,1,0,0,0,3209,3212,1,0,0,0,3210,3208,1,0,0,0,3210,3211,1,0,0,0,3211,3214,1,0,0,0,3212,3210,1,0,0,0,3213,3201,1,0,0,0,3213,3214,1,0,0,0,3214,191,1,0,0,0,3215,3216,5,102,0,0,3216,3218,5,388,0,0,3217,3219,7,40,0,0,3218,3217,1,0,0,0,3218,3219,1,0,0,0,3219,3221,1,0,0,0,3220,3222,5,474,0,0,3221,3220,1,0,0,0,3221,3222,1,0,0,0,3222,3223,1,0,0,0,3223,3224,5,82,0,0,3224,3226,5,1148,0,0,3225,3227,7,6,0,0,3226,3225,1,0,0,0,3226,3227,1,0,0,0,3227,3228,1,0,0,0,3228,3229,5,87,0,0,3229,3230,5,172,0,0,3230,3236,3,554,277,0,3231,3232,5,129,0,0,3232,3233,5,1133,0,0,3233,3234,3,644,322,0,3234,3235,5,1134,0,0,3235,3237,1,0,0,0,3236,3231,1,0,0,0,3236,3237,1,0,0,0,3237,3241,1,0,0,0,3238,3239,5,25,0,0,3239,3240,5,153,0,0,3240,3242,3,596,298,0,3241,3238,1,0,0,0,3241,3242,1,0,0,0,3242,3249,1,0,0,0,3243,3245,7,41,0,0,3244,3246,3,280,140,0,3245,3244,1,0,0,0,3246,3247,1,0,0,0,3247,3245,1,0,0,0,3247,3248,1,0,0,0,3248,3250,1,0,0,0,3249,3243,1,0,0,0,3249,3250,1,0,0,0,3250,3257,1,0,0,0,3251,3253,5,101,0,0,3252,3254,3,282,141,0,3253,3252,1,0,0,0,3254,3255,1,0,0,0,3255,3253,1,0,0,0,3255,3256,1,0,0,0,3256,3258,1,0,0,0,3257,3251,1,0,0,0,3257,3258,1,0,0,0,3258,3263,1,0,0,0,3259,3260,5,78,0,0,3260,3261,3,618,309,0,3261,3262,7,42,0,0,3262,3264,1,0,0,0,3263,3259,1,0,0,0,3263,3264,1,0,0,0,3264,3276,1,0,0,0,3265,3266,5,1133,0,0,3266,3271,3,208,104,0,3267,3268,5,1135,0,0,3268,3270,3,208,104,0,3269,3267,1,0,0,0,3270,3273,1,0,0,0,3271,3269,1,0,0,0,3271,3272,1,0,0,0,3272,3274,1,0,0,0,3273,3271,1,0,0,0,3274,3275,5,1134,0,0,3275,3277,1,0,0,0,3276,3265,1,0,0,0,3276,3277,1,0,0,0,3277,3287,1,0,0,0,3278,3279,5,153,0,0,3279,3284,3,206,103,0,3280,3281,5,1135,0,0,3281,3283,3,206,103,0,3282,3280,1,0,0,0,3283,3286,1,0,0,0,3284,3282,1,0,0,0,3284,3285,1,0,0,0,3285,3288,1,0,0,0,3286,3284,1,0,0,0,3287,3278,1,0,0,0,3287,3288,1,0,0,0,3288,193,1,0,0,0,3289,3290,5,102,0,0,3290,3292,5,682,0,0,3291,3293,7,40,0,0,3292,3291,1,0,0,0,3292,3293,1,0,0,0,3293,3295,1,0,0,0,3294,3296,5,474,0,0,3295,3294,1,0,0,0,3295,3296,1,0,0,0,3296,3297,1,0,0,0,3297,3298,5,82,0,0,3298,3300,5,1148,0,0,3299,3301,7,6,0,0,3300,3299,1,0,0,0,3300,3301,1,0,0,0,3301,3302,1,0,0,0,3302,3303,5,87,0,0,3303,3304,5,172,0,0,3304,3308,3,554,277,0,3305,3306,5,25,0,0,3306,3307,5,153,0,0,3307,3309,3,596,298,0,3308,3305,1,0,0,0,3308,3309,1,0,0,0,3309,3316,1,0,0,0,3310,3311,5,601,0,0,3311,3312,5,448,0,0,3312,3313,5,19,0,0,3313,3314,5,1126,0,0,3314,3315,5,1148,0,0,3315,3317,5,1125,0,0,3316,3310,1,0,0,0,3316,3317,1,0,0,0,3317,3322,1,0,0,0,3318,3319,5,78,0,0,3319,3320,3,618,309,0,3320,3321,7,42,0,0,3321,3323,1,0,0,0,3322,3318,1,0,0,0,3322,3323,1,0,0,0,3323,3335,1,0,0,0,3324,3325,5,1133,0,0,3325,3330,3,208,104,0,3326,3327,5,1135,0,0,3327,3329,3,208,104,0,3328,3326,1,0,0,0,3329,3332,1,0,0,0,3330,3328,1,0,0,0,3330,3331,1,0,0,0,3331,3333,1,0,0,0,3332,3330,1,0,0,0,3333,3334,5,1134,0,0,3334,3336,1,0,0,0,3335,3324,1,0,0,0,3335,3336,1,0,0,0,3336,3346,1,0,0,0,3337,3338,5,153,0,0,3338,3343,3,206,103,0,3339,3340,5,1135,0,0,3340,3342,3,206,103,0,3341,3339,1,0,0,0,3342,3345,1,0,0,0,3343,3341,1,0,0,0,3343,3344,1,0,0,0,3344,3347,1,0,0,0,3345,3343,1,0,0,0,3346,3337,1,0,0,0,3346,3347,1,0,0,0,3347,195,1,0,0,0,3348,3350,5,141,0,0,3349,3351,7,43,0,0,3350,3349,1,0,0,0,3350,3351,1,0,0,0,3351,3353,1,0,0,0,3352,3354,5,87,0,0,3353,3352,1,0,0,0,3353,3354,1,0,0,0,3354,3355,1,0,0,0,3355,3361,3,554,277,0,3356,3357,5,129,0,0,3357,3358,5,1133,0,0,3358,3359,3,644,322,0,3359,3360,5,1134,0,0,3360,3362,1,0,0,0,3361,3356,1,0,0,0,3361,3362,1,0,0,0,3362,3379,1,0,0,0,3363,3364,5,1133,0,0,3364,3365,3,644,322,0,3365,3366,5,1134,0,0,3366,3368,1,0,0,0,3367,3363,1,0,0,0,3367,3368,1,0,0,0,3368,3369,1,0,0,0,3369,3380,3,204,102,0,3370,3371,5,153,0,0,3371,3376,3,206,103,0,3372,3373,5,1135,0,0,3373,3375,3,206,103,0,3374,3372,1,0,0,0,3375,3378,1,0,0,0,3376,3374,1,0,0,0,3376,3377,1,0,0,0,3377,3380,1,0,0,0,3378,3376,1,0,0,0,3379,3367,1,0,0,0,3379,3370,1,0,0,0,3380,197,1,0,0,0,3381,3383,3,250,125,0,3382,3384,3,210,105,0,3383,3382,1,0,0,0,3383,3384,1,0,0,0,3384,3447,1,0,0,0,3385,3387,3,246,123,0,3386,3388,3,210,105,0,3387,3386,1,0,0,0,3387,3388,1,0,0,0,3388,3447,1,0,0,0,3389,3392,3,252,126,0,3390,3392,3,248,124,0,3391,3389,1,0,0,0,3391,3390,1,0,0,0,3392,3394,1,0,0,0,3393,3395,3,256,128,0,3394,3393,1,0,0,0,3395,3396,1,0,0,0,3396,3394,1,0,0,0,3396,3397,1,0,0,0,3397,3406,1,0,0,0,3398,3400,5,180,0,0,3399,3401,7,44,0,0,3400,3399,1,0,0,0,3400,3401,1,0,0,0,3401,3404,1,0,0,0,3402,3405,3,250,125,0,3403,3405,3,246,123,0,3404,3402,1,0,0,0,3404,3403,1,0,0,0,3405,3407,1,0,0,0,3406,3398,1,0,0,0,3406,3407,1,0,0,0,3407,3409,1,0,0,0,3408,3410,3,228,114,0,3409,3408,1,0,0,0,3409,3410,1,0,0,0,3410,3412,1,0,0,0,3411,3413,3,294,147,0,3412,3411,1,0,0,0,3412,3413,1,0,0,0,3413,3415,1,0,0,0,3414,3416,3,210,105,0,3415,3414,1,0,0,0,3415,3416,1,0,0,0,3416,3447,1,0,0,0,3417,3419,3,248,124,0,3418,3420,3,254,127,0,3419,3418,1,0,0,0,3420,3421,1,0,0,0,3421,3419,1,0,0,0,3421,3422,1,0,0,0,3422,3428,1,0,0,0,3423,3425,5,180,0,0,3424,3426,7,44,0,0,3425,3424,1,0,0,0,3425,3426,1,0,0,0,3426,3427,1,0,0,0,3427,3429,3,246,123,0,3428,3423,1,0,0,0,3428,3429,1,0,0,0,3429,3431,1,0,0,0,3430,3432,3,228,114,0,3431,3430,1,0,0,0,3431,3432,1,0,0,0,3432,3434,1,0,0,0,3433,3435,3,294,147,0,3434,3433,1,0,0,0,3434,3435,1,0,0,0,3435,3437,1,0,0,0,3436,3438,3,210,105,0,3437,3436,1,0,0,0,3437,3438,1,0,0,0,3438,3447,1,0,0,0,3439,3442,3,252,126,0,3440,3441,5,1135,0,0,3441,3443,3,258,129,0,3442,3440,1,0,0,0,3443,3444,1,0,0,0,3444,3442,1,0,0,0,3444,3445,1,0,0,0,3445,3447,1,0,0,0,3446,3381,1,0,0,0,3446,3385,1,0,0,0,3446,3391,1,0,0,0,3446,3417,1,0,0,0,3446,3439,1,0,0,0,3447,199,1,0,0,0,3448,3451,3,224,112,0,3449,3451,3,226,113,0,3450,3448,1,0,0,0,3450,3449,1,0,0,0,3451,201,1,0,0,0,3452,3453,5,188,0,0,3453,3455,5,1133,0,0,3454,3456,3,654,327,0,3455,3454,1,0,0,0,3455,3456,1,0,0,0,3456,3457,1,0,0,0,3457,3466,5,1134,0,0,3458,3459,5,1135,0,0,3459,3461,5,1133,0,0,3460,3462,3,654,327,0,3461,3460,1,0,0,0,3461,3462,1,0,0,0,3462,3463,1,0,0,0,3463,3465,5,1134,0,0,3464,3458,1,0,0,0,3465,3468,1,0,0,0,3466,3464,1,0,0,0,3466,3467,1,0,0,0,3467,203,1,0,0,0,3468,3466,1,0,0,0,3469,3488,3,198,99,0,3470,3471,7,45,0,0,3471,3473,5,1133,0,0,3472,3474,3,654,327,0,3473,3472,1,0,0,0,3473,3474,1,0,0,0,3474,3475,1,0,0,0,3475,3484,5,1134,0,0,3476,3477,5,1135,0,0,3477,3479,5,1133,0,0,3478,3480,3,654,327,0,3479,3478,1,0,0,0,3479,3480,1,0,0,0,3480,3481,1,0,0,0,3481,3483,5,1134,0,0,3482,3476,1,0,0,0,3483,3486,1,0,0,0,3484,3482,1,0,0,0,3484,3485,1,0,0,0,3485,3488,1,0,0,0,3486,3484,1,0,0,0,3487,3469,1,0,0,0,3487,3470,1,0,0,0,3488,205,1,0,0,0,3489,3490,3,570,285,0,3490,3493,5,1124,0,0,3491,3494,3,716,358,0,3492,3494,5,42,0,0,3493,3491,1,0,0,0,3493,3492,1,0,0,0,3494,207,1,0,0,0,3495,3498,3,612,306,0,3496,3498,5,1159,0,0,3497,3495,1,0,0,0,3497,3496,1,0,0,0,3498,209,1,0,0,0,3499,3500,5,65,0,0,3500,3506,5,184,0,0,3501,3502,5,103,0,0,3502,3503,5,80,0,0,3503,3504,5,610,0,0,3504,3506,5,511,0,0,3505,3499,1,0,0,0,3505,3501,1,0,0,0,3506,211,1,0,0,0,3507,3509,5,44,0,0,3508,3510,5,106,0,0,3509,3508,1,0,0,0,3509,3510,1,0,0,0,3510,3512,1,0,0,0,3511,3513,5,568,0,0,3512,3511,1,0,0,0,3512,3513,1,0,0,0,3513,3515,1,0,0,0,3514,3516,5,78,0,0,3515,3514,1,0,0,0,3515,3516,1,0,0,0,3516,3517,1,0,0,0,3517,3518,5,68,0,0,3518,3523,3,554,277,0,3519,3521,5,12,0,0,3520,3519,1,0,0,0,3520,3521,1,0,0,0,3521,3522,1,0,0,0,3522,3524,3,612,306,0,3523,3520,1,0,0,0,3523,3524,1,0,0,0,3524,3530,1,0,0,0,3525,3526,5,129,0,0,3526,3527,5,1133,0,0,3527,3528,3,644,322,0,3528,3529,5,1134,0,0,3529,3531,1,0,0,0,3530,3525,1,0,0,0,3530,3531,1,0,0,0,3531,3534,1,0,0,0,3532,3533,5,190,0,0,3533,3535,3,716,358,0,3534,3532,1,0,0,0,3534,3535,1,0,0,0,3535,3537,1,0,0,0,3536,3538,3,228,114,0,3537,3536,1,0,0,0,3537,3538,1,0,0,0,3538,3541,1,0,0,0,3539,3540,5,99,0,0,3540,3542,3,296,148,0,3541,3539,1,0,0,0,3541,3542,1,0,0,0,3542,213,1,0,0,0,3543,3545,5,44,0,0,3544,3546,5,106,0,0,3545,3544,1,0,0,0,3545,3546,1,0,0,0,3546,3548,1,0,0,0,3547,3549,5,568,0,0,3548,3547,1,0,0,0,3548,3549,1,0,0,0,3549,3551,1,0,0,0,3550,3552,5,78,0,0,3551,3550,1,0,0,0,3551,3552,1,0,0,0,3552,3592,1,0,0,0,3553,3556,3,554,277,0,3554,3555,5,1132,0,0,3555,3557,5,1117,0,0,3556,3554,1,0,0,0,3556,3557,1,0,0,0,3557,3566,1,0,0,0,3558,3559,5,1135,0,0,3559,3562,3,554,277,0,3560,3561,5,1132,0,0,3561,3563,5,1117,0,0,3562,3560,1,0,0,0,3562,3563,1,0,0,0,3563,3565,1,0,0,0,3564,3558,1,0,0,0,3565,3568,1,0,0,0,3566,3564,1,0,0,0,3566,3567,1,0,0,0,3567,3569,1,0,0,0,3568,3566,1,0,0,0,3569,3570,5,68,0,0,3570,3571,3,232,116,0,3571,3593,1,0,0,0,3572,3573,5,68,0,0,3573,3576,3,554,277,0,3574,3575,5,1132,0,0,3575,3577,5,1117,0,0,3576,3574,1,0,0,0,3576,3577,1,0,0,0,3577,3586,1,0,0,0,3578,3579,5,1135,0,0,3579,3582,3,554,277,0,3580,3581,5,1132,0,0,3581,3583,5,1117,0,0,3582,3580,1,0,0,0,3582,3583,1,0,0,0,3583,3585,1,0,0,0,3584,3578,1,0,0,0,3585,3588,1,0,0,0,3586,3584,1,0,0,0,3586,3587,1,0,0,0,3587,3589,1,0,0,0,3588,3586,1,0,0,0,3589,3590,5,187,0,0,3590,3591,3,232,116,0,3591,3593,1,0,0,0,3592,3553,1,0,0,0,3592,3572,1,0,0,0,3593,3596,1,0,0,0,3594,3595,5,190,0,0,3595,3597,3,716,358,0,3596,3594,1,0,0,0,3596,3597,1,0,0,0,3597,215,1,0,0,0,3598,3599,5,442,0,0,3599,3600,3,554,277,0,3600,3605,5,539,0,0,3601,3603,5,12,0,0,3602,3601,1,0,0,0,3602,3603,1,0,0,0,3603,3604,1,0,0,0,3604,3606,3,612,306,0,3605,3602,1,0,0,0,3605,3606,1,0,0,0,3606,217,1,0,0,0,3607,3608,5,442,0,0,3608,3609,3,554,277,0,3609,3610,5,134,0,0,3610,3617,3,612,306,0,3611,3612,3,724,362,0,3612,3613,5,1133,0,0,3613,3614,3,656,328,0,3614,3615,5,1134,0,0,3615,3618,1,0,0,0,3616,3618,7,46,0,0,3617,3611,1,0,0,0,3617,3616,1,0,0,0,3618,3621,1,0,0,0,3619,3620,5,190,0,0,3620,3622,3,716,358,0,3621,3619,1,0,0,0,3621,3622,1,0,0,0,3622,3625,1,0,0,0,3623,3624,5,99,0,0,3624,3626,3,296,148,0,3625,3623,1,0,0,0,3625,3626,1,0,0,0,3626,219,1,0,0,0,3627,3628,5,442,0,0,3628,3629,3,554,277,0,3629,3630,5,134,0,0,3630,3633,7,47,0,0,3631,3632,5,190,0,0,3632,3634,3,716,358,0,3633,3631,1,0,0,0,3633,3634,1,0,0,0,3634,3637,1,0,0,0,3635,3636,5,99,0,0,3636,3638,3,296,148,0,3637,3635,1,0,0,0,3637,3638,1,0,0,0,3638,221,1,0,0,0,3639,3640,5,442,0,0,3640,3641,3,554,277,0,3641,3642,5,361,0,0,3642,223,1,0,0,0,3643,3645,5,184,0,0,3644,3646,5,106,0,0,3645,3644,1,0,0,0,3645,3646,1,0,0,0,3646,3648,1,0,0,0,3647,3649,5,78,0,0,3648,3647,1,0,0,0,3648,3649,1,0,0,0,3649,3650,1,0,0,0,3650,3655,3,554,277,0,3651,3653,5,12,0,0,3652,3651,1,0,0,0,3652,3653,1,0,0,0,3653,3654,1,0,0,0,3654,3656,3,612,306,0,3655,3652,1,0,0,0,3655,3656,1,0,0,0,3656,3657,1,0,0,0,3657,3658,5,153,0,0,3658,3663,3,206,103,0,3659,3660,5,1135,0,0,3660,3662,3,206,103,0,3661,3659,1,0,0,0,3662,3665,1,0,0,0,3663,3661,1,0,0,0,3663,3664,1,0,0,0,3664,3668,1,0,0,0,3665,3663,1,0,0,0,3666,3667,5,190,0,0,3667,3669,3,716,358,0,3668,3666,1,0,0,0,3668,3669,1,0,0,0,3669,3671,1,0,0,0,3670,3672,3,228,114,0,3671,3670,1,0,0,0,3671,3672,1,0,0,0,3672,3674,1,0,0,0,3673,3675,3,294,147,0,3674,3673,1,0,0,0,3674,3675,1,0,0,0,3675,225,1,0,0,0,3676,3678,5,184,0,0,3677,3679,5,106,0,0,3678,3677,1,0,0,0,3678,3679,1,0,0,0,3679,3681,1,0,0,0,3680,3682,5,78,0,0,3681,3680,1,0,0,0,3681,3682,1,0,0,0,3682,3683,1,0,0,0,3683,3684,3,556,278,0,3684,3685,5,153,0,0,3685,3690,3,206,103,0,3686,3687,5,1135,0,0,3687,3689,3,206,103,0,3688,3686,1,0,0,0,3689,3692,1,0,0,0,3690,3688,1,0,0,0,3690,3691,1,0,0,0,3691,3695,1,0,0,0,3692,3690,1,0,0,0,3693,3694,5,190,0,0,3694,3696,3,716,358,0,3695,3693,1,0,0,0,3695,3696,1,0,0,0,3696,227,1,0,0,0,3697,3698,5,124,0,0,3698,3699,5,19,0,0,3699,3704,3,230,115,0,3700,3701,5,1135,0,0,3701,3703,3,230,115,0,3702,3700,1,0,0,0,3703,3706,1,0,0,0,3704,3702,1,0,0,0,3704,3705,1,0,0,0,3705,229,1,0,0,0,3706,3704,1,0,0,0,3707,3709,3,716,358,0,3708,3710,7,48,0,0,3709,3708,1,0,0,0,3709,3710,1,0,0,0,3710,231,1,0,0,0,3711,3716,3,234,117,0,3712,3713,5,1135,0,0,3713,3715,3,234,117,0,3714,3712,1,0,0,0,3715,3718,1,0,0,0,3716,3714,1,0,0,0,3716,3717,1,0,0,0,3717,233,1,0,0,0,3718,3716,1,0,0,0,3719,3723,3,236,118,0,3720,3722,3,242,121,0,3721,3720,1,0,0,0,3722,3725,1,0,0,0,3723,3721,1,0,0,0,3723,3724,1,0,0,0,3724,3738,1,0,0,0,3725,3723,1,0,0,0,3726,3727,5,1133,0,0,3727,3731,3,236,118,0,3728,3730,3,242,121,0,3729,3728,1,0,0,0,3730,3733,1,0,0,0,3731,3729,1,0,0,0,3731,3732,1,0,0,0,3732,3734,1,0,0,0,3733,3731,1,0,0,0,3734,3735,5,1134,0,0,3735,3738,1,0,0,0,3736,3738,3,260,130,0,3737,3719,1,0,0,0,3737,3726,1,0,0,0,3737,3736,1,0,0,0,3738,235,1,0,0,0,3739,3745,3,554,277,0,3740,3741,5,129,0,0,3741,3742,5,1133,0,0,3742,3743,3,644,322,0,3743,3744,5,1134,0,0,3744,3746,1,0,0,0,3745,3740,1,0,0,0,3745,3746,1,0,0,0,3746,3751,1,0,0,0,3747,3749,5,12,0,0,3748,3747,1,0,0,0,3748,3749,1,0,0,0,3749,3750,1,0,0,0,3750,3752,3,612,306,0,3751,3748,1,0,0,0,3751,3752,1,0,0,0,3752,3761,1,0,0,0,3753,3758,3,238,119,0,3754,3755,5,1135,0,0,3755,3757,3,238,119,0,3756,3754,1,0,0,0,3757,3760,1,0,0,0,3758,3756,1,0,0,0,3758,3759,1,0,0,0,3759,3762,1,0,0,0,3760,3758,1,0,0,0,3761,3753,1,0,0,0,3761,3762,1,0,0,0,3762,3777,1,0,0,0,3763,3764,5,1133,0,0,3764,3765,3,198,99,0,3765,3766,5,1134,0,0,3766,3768,1,0,0,0,3767,3769,5,12,0,0,3768,3767,1,0,0,0,3768,3769,1,0,0,0,3769,3770,1,0,0,0,3770,3771,3,612,306,0,3771,3777,1,0,0,0,3772,3773,5,1133,0,0,3773,3774,3,232,116,0,3774,3775,5,1134,0,0,3775,3777,1,0,0,0,3776,3739,1,0,0,0,3776,3763,1,0,0,0,3776,3772,1,0,0,0,3777,237,1,0,0,0,3778,3779,7,49,0,0,3779,3782,7,20,0,0,3780,3781,5,65,0,0,3781,3783,3,240,120,0,3782,3780,1,0,0,0,3782,3783,1,0,0,0,3783,3784,1,0,0,0,3784,3785,5,1133,0,0,3785,3786,3,580,290,0,3786,3787,5,1134,0,0,3787,239,1,0,0,0,3788,3794,5,90,0,0,3789,3790,5,124,0,0,3790,3794,5,19,0,0,3791,3792,5,73,0,0,3792,3794,5,19,0,0,3793,3788,1,0,0,0,3793,3789,1,0,0,0,3793,3791,1,0,0,0,3794,241,1,0,0,0,3795,3797,7,50,0,0,3796,3795,1,0,0,0,3796,3797,1,0,0,0,3797,3798,1,0,0,0,3798,3800,5,90,0,0,3799,3801,5,94,0,0,3800,3799,1,0,0,0,3800,3801,1,0,0,0,3801,3802,1,0,0,0,3802,3806,3,236,118,0,3803,3805,3,244,122,0,3804,3803,1,0,0,0,3805,3808,1,0,0,0,3806,3804,1,0,0,0,3806,3807,1,0,0,0,3807,3843,1,0,0,0,3808,3806,1,0,0,0,3809,3810,5,171,0,0,3810,3815,3,236,118,0,3811,3812,5,118,0,0,3812,3814,3,716,358,0,3813,3811,1,0,0,0,3814,3817,1,0,0,0,3815,3813,1,0,0,0,3815,3816,1,0,0,0,3816,3843,1,0,0,0,3817,3815,1,0,0,0,3818,3820,7,51,0,0,3819,3821,5,126,0,0,3820,3819,1,0,0,0,3820,3821,1,0,0,0,3821,3822,1,0,0,0,3822,3824,5,90,0,0,3823,3825,5,94,0,0,3824,3823,1,0,0,0,3824,3825,1,0,0,0,3825,3826,1,0,0,0,3826,3830,3,236,118,0,3827,3829,3,244,122,0,3828,3827,1,0,0,0,3829,3832,1,0,0,0,3830,3828,1,0,0,0,3830,3831,1,0,0,0,3831,3843,1,0,0,0,3832,3830,1,0,0,0,3833,3838,5,113,0,0,3834,3836,7,51,0,0,3835,3837,5,126,0,0,3836,3835,1,0,0,0,3836,3837,1,0,0,0,3837,3839,1,0,0,0,3838,3834,1,0,0,0,3838,3839,1,0,0,0,3839,3840,1,0,0,0,3840,3841,5,90,0,0,3841,3843,3,236,118,0,3842,3796,1,0,0,0,3842,3809,1,0,0,0,3842,3818,1,0,0,0,3842,3833,1,0,0,0,3843,243,1,0,0,0,3844,3845,5,118,0,0,3845,3852,3,716,358,0,3846,3847,5,187,0,0,3847,3848,5,1133,0,0,3848,3849,3,644,322,0,3849,3850,5,1134,0,0,3850,3852,1,0,0,0,3851,3844,1,0,0,0,3851,3846,1,0,0,0,3852,245,1,0,0,0,3853,3854,5,1133,0,0,3854,3855,3,250,125,0,3855,3856,5,1134,0,0,3856,3862,1,0,0,0,3857,3858,5,1133,0,0,3858,3859,3,246,123,0,3859,3860,5,1134,0,0,3860,3862,1,0,0,0,3861,3853,1,0,0,0,3861,3857,1,0,0,0,3862,247,1,0,0,0,3863,3864,5,1133,0,0,3864,3865,3,252,126,0,3865,3866,5,1134,0,0,3866,3872,1,0,0,0,3867,3868,5,1133,0,0,3868,3869,3,248,124,0,3869,3870,5,1134,0,0,3870,3872,1,0,0,0,3871,3863,1,0,0,0,3871,3867,1,0,0,0,3872,249,1,0,0,0,3873,3877,5,152,0,0,3874,3876,3,270,135,0,3875,3874,1,0,0,0,3876,3879,1,0,0,0,3877,3875,1,0,0,0,3877,3878,1,0,0,0,3878,3880,1,0,0,0,3879,3877,1,0,0,0,3880,3882,3,272,136,0,3881,3883,3,278,139,0,3882,3881,1,0,0,0,3882,3883,1,0,0,0,3883,3884,1,0,0,0,3884,3886,3,284,142,0,3885,3887,3,286,143,0,3886,3885,1,0,0,0,3886,3887,1,0,0,0,3887,3889,1,0,0,0,3888,3890,3,288,144,0,3889,3888,1,0,0,0,3889,3890,1,0,0,0,3890,3892,1,0,0,0,3891,3893,3,290,145,0,3892,3891,1,0,0,0,3892,3893,1,0,0,0,3893,3895,1,0,0,0,3894,3896,3,228,114,0,3895,3894,1,0,0,0,3895,3896,1,0,0,0,3896,3898,1,0,0,0,3897,3899,3,294,147,0,3898,3897,1,0,0,0,3898,3899,1,0,0,0,3899,3928,1,0,0,0,3900,3904,5,152,0,0,3901,3903,3,270,135,0,3902,3901,1,0,0,0,3903,3906,1,0,0,0,3904,3902,1,0,0,0,3904,3905,1,0,0,0,3905,3907,1,0,0,0,3906,3904,1,0,0,0,3907,3908,3,272,136,0,3908,3910,3,284,142,0,3909,3911,3,286,143,0,3910,3909,1,0,0,0,3910,3911,1,0,0,0,3911,3913,1,0,0,0,3912,3914,3,288,144,0,3913,3912,1,0,0,0,3913,3914,1,0,0,0,3914,3916,1,0,0,0,3915,3917,3,290,145,0,3916,3915,1,0,0,0,3916,3917,1,0,0,0,3917,3919,1,0,0,0,3918,3920,3,228,114,0,3919,3918,1,0,0,0,3919,3920,1,0,0,0,3920,3922,1,0,0,0,3921,3923,3,294,147,0,3922,3921,1,0,0,0,3922,3923,1,0,0,0,3923,3925,1,0,0,0,3924,3926,3,278,139,0,3925,3924,1,0,0,0,3925,3926,1,0,0,0,3926,3928,1,0,0,0,3927,3873,1,0,0,0,3927,3900,1,0,0,0,3928,251,1,0,0,0,3929,3933,5,152,0,0,3930,3932,3,270,135,0,3931,3930,1,0,0,0,3932,3935,1,0,0,0,3933,3931,1,0,0,0,3933,3934,1,0,0,0,3934,3936,1,0,0,0,3935,3933,1,0,0,0,3936,3937,3,272,136,0,3937,3939,3,284,142,0,3938,3940,3,286,143,0,3939,3938,1,0,0,0,3939,3940,1,0,0,0,3940,3942,1,0,0,0,3941,3943,3,288,144,0,3942,3941,1,0,0,0,3942,3943,1,0,0,0,3943,3945,1,0,0,0,3944,3946,3,290,145,0,3945,3944,1,0,0,0,3945,3946,1,0,0,0,3946,3948,1,0,0,0,3947,3949,3,228,114,0,3948,3947,1,0,0,0,3948,3949,1,0,0,0,3949,3951,1,0,0,0,3950,3952,3,294,147,0,3951,3950,1,0,0,0,3951,3952,1,0,0,0,3952,3954,1,0,0,0,3953,3955,3,256,128,0,3954,3953,1,0,0,0,3954,3955,1,0,0,0,3955,253,1,0,0,0,3956,3958,5,180,0,0,3957,3959,7,44,0,0,3958,3957,1,0,0,0,3958,3959,1,0,0,0,3959,3960,1,0,0,0,3960,3961,3,248,124,0,3961,255,1,0,0,0,3962,3964,5,180,0,0,3963,3965,7,44,0,0,3964,3963,1,0,0,0,3964,3965,1,0,0,0,3965,3968,1,0,0,0,3966,3969,3,252,126,0,3967,3969,3,248,124,0,3968,3966,1,0,0,0,3968,3967,1,0,0,0,3969,257,1,0,0,0,3970,3985,5,94,0,0,3971,3986,3,252,126,0,3972,3986,3,248,124,0,3973,3976,5,1133,0,0,3974,3977,3,252,126,0,3975,3977,3,248,124,0,3976,3974,1,0,0,0,3976,3975,1,0,0,0,3977,3978,1,0,0,0,3978,3983,5,1134,0,0,3979,3981,5,12,0,0,3980,3979,1,0,0,0,3980,3981,1,0,0,0,3981,3982,1,0,0,0,3982,3984,3,612,306,0,3983,3980,1,0,0,0,3983,3984,1,0,0,0,3984,3986,1,0,0,0,3985,3971,1,0,0,0,3985,3972,1,0,0,0,3985,3973,1,0,0,0,3986,259,1,0,0,0,3987,3988,5,278,0,0,3988,3989,5,1133,0,0,3989,3990,5,1148,0,0,3990,3991,5,1135,0,0,3991,3992,5,1148,0,0,3992,3993,5,365,0,0,3993,3994,5,1133,0,0,3994,3995,3,262,131,0,3995,3996,5,1134,0,0,3996,4001,5,1134,0,0,3997,3999,5,12,0,0,3998,3997,1,0,0,0,3998,3999,1,0,0,0,3999,4e3,1,0,0,0,4e3,4002,3,612,306,0,4001,3998,1,0,0,0,4001,4002,1,0,0,0,4002,261,1,0,0,0,4003,4008,3,264,132,0,4004,4005,5,1135,0,0,4005,4007,3,264,132,0,4006,4004,1,0,0,0,4007,4010,1,0,0,0,4008,4006,1,0,0,0,4008,4009,1,0,0,0,4009,263,1,0,0,0,4010,4008,1,0,0,0,4011,4028,3,570,285,0,4012,4013,5,65,0,0,4013,4029,5,284,0,0,4014,4026,3,632,316,0,4015,4016,5,285,0,0,4016,4018,5,1148,0,0,4017,4019,3,266,133,0,4018,4017,1,0,0,0,4018,4019,1,0,0,0,4019,4021,1,0,0,0,4020,4022,3,268,134,0,4021,4020,1,0,0,0,4021,4022,1,0,0,0,4022,4027,1,0,0,0,4023,4024,5,60,0,0,4024,4025,5,285,0,0,4025,4027,5,1148,0,0,4026,4015,1,0,0,0,4026,4023,1,0,0,0,4027,4029,1,0,0,0,4028,4012,1,0,0,0,4028,4014,1,0,0,0,4029,4041,1,0,0,0,4030,4032,5,283,0,0,4031,4033,5,285,0,0,4032,4031,1,0,0,0,4032,4033,1,0,0,0,4033,4034,1,0,0,0,4034,4035,5,1148,0,0,4035,4036,5,365,0,0,4036,4037,5,1133,0,0,4037,4038,3,262,131,0,4038,4039,5,1134,0,0,4039,4041,1,0,0,0,4040,4011,1,0,0,0,4040,4030,1,0,0,0,4041,265,1,0,0,0,4042,4047,5,116,0,0,4043,4047,5,411,0,0,4044,4045,5,42,0,0,4045,4047,3,662,331,0,4046,4042,1,0,0,0,4046,4043,1,0,0,0,4046,4044,1,0,0,0,4047,4048,1,0,0,0,4048,4049,5,118,0,0,4049,4050,5,55,0,0,4050,267,1,0,0,0,4051,4056,5,116,0,0,4052,4056,5,411,0,0,4053,4054,5,42,0,0,4054,4056,3,662,331,0,4055,4051,1,0,0,0,4055,4052,1,0,0,0,4055,4053,1,0,0,0,4056,4057,1,0,0,0,4057,4058,5,118,0,0,4058,4059,5,411,0,0,4059,269,1,0,0,0,4060,4069,7,52,0,0,4061,4069,5,75,0,0,4062,4069,5,171,0,0,4063,4069,5,166,0,0,4064,4069,5,164,0,0,4065,4069,5,625,0,0,4066,4069,7,53,0,0,4067,4069,5,165,0,0,4068,4060,1,0,0,0,4068,4061,1,0,0,0,4068,4062,1,0,0,0,4068,4063,1,0,0,0,4068,4064,1,0,0,0,4068,4065,1,0,0,0,4068,4066,1,0,0,0,4068,4067,1,0,0,0,4069,271,1,0,0,0,4070,4073,5,1117,0,0,4071,4073,3,276,138,0,4072,4070,1,0,0,0,4072,4071,1,0,0,0,4073,4078,1,0,0,0,4074,4075,5,1135,0,0,4075,4077,3,276,138,0,4076,4074,1,0,0,0,4077,4080,1,0,0,0,4078,4076,1,0,0,0,4078,4079,1,0,0,0,4079,273,1,0,0,0,4080,4078,1,0,0,0,4081,4083,5,12,0,0,4082,4081,1,0,0,0,4082,4083,1,0,0,0,4083,4084,1,0,0,0,4084,4085,3,612,306,0,4085,275,1,0,0,0,4086,4087,3,552,276,0,4087,4088,5,1132,0,0,4088,4089,5,1117,0,0,4089,4107,1,0,0,0,4090,4092,3,570,285,0,4091,4093,3,274,137,0,4092,4091,1,0,0,0,4092,4093,1,0,0,0,4093,4107,1,0,0,0,4094,4096,3,676,338,0,4095,4097,3,274,137,0,4096,4095,1,0,0,0,4096,4097,1,0,0,0,4097,4107,1,0,0,0,4098,4099,5,1159,0,0,4099,4101,5,1108,0,0,4100,4098,1,0,0,0,4100,4101,1,0,0,0,4101,4102,1,0,0,0,4102,4104,3,716,358,0,4103,4105,3,274,137,0,4104,4103,1,0,0,0,4104,4105,1,0,0,0,4105,4107,1,0,0,0,4106,4086,1,0,0,0,4106,4090,1,0,0,0,4106,4094,1,0,0,0,4106,4100,1,0,0,0,4107,277,1,0,0,0,4108,4109,5,87,0,0,4109,4114,3,208,104,0,4110,4111,5,1135,0,0,4111,4113,3,208,104,0,4112,4110,1,0,0,0,4113,4116,1,0,0,0,4114,4112,1,0,0,0,4114,4115,1,0,0,0,4115,4145,1,0,0,0,4116,4114,1,0,0,0,4117,4118,5,87,0,0,4118,4119,5,400,0,0,4119,4145,5,1148,0,0,4120,4121,5,87,0,0,4121,4122,5,127,0,0,4122,4126,5,1148,0,0,4123,4124,5,25,0,0,4124,4125,5,153,0,0,4125,4127,3,596,298,0,4126,4123,1,0,0,0,4126,4127,1,0,0,0,4127,4134,1,0,0,0,4128,4130,7,41,0,0,4129,4131,3,280,140,0,4130,4129,1,0,0,0,4131,4132,1,0,0,0,4132,4130,1,0,0,0,4132,4133,1,0,0,0,4133,4135,1,0,0,0,4134,4128,1,0,0,0,4134,4135,1,0,0,0,4135,4142,1,0,0,0,4136,4138,5,101,0,0,4137,4139,3,282,141,0,4138,4137,1,0,0,0,4139,4140,1,0,0,0,4140,4138,1,0,0,0,4140,4141,1,0,0,0,4141,4143,1,0,0,0,4142,4136,1,0,0,0,4142,4143,1,0,0,0,4143,4145,1,0,0,0,4144,4108,1,0,0,0,4144,4117,1,0,0,0,4144,4120,1,0,0,0,4145,279,1,0,0,0,4146,4147,5,173,0,0,4147,4148,5,19,0,0,4148,4159,5,1148,0,0,4149,4151,5,122,0,0,4150,4149,1,0,0,0,4150,4151,1,0,0,0,4151,4152,1,0,0,0,4152,4153,5,56,0,0,4153,4154,5,19,0,0,4154,4159,5,1148,0,0,4155,4156,5,58,0,0,4156,4157,5,19,0,0,4157,4159,5,1148,0,0,4158,4146,1,0,0,0,4158,4150,1,0,0,0,4158,4155,1,0,0,0,4159,281,1,0,0,0,4160,4161,5,169,0,0,4161,4162,5,19,0,0,4162,4167,5,1148,0,0,4163,4164,5,173,0,0,4164,4165,5,19,0,0,4165,4167,5,1148,0,0,4166,4160,1,0,0,0,4166,4163,1,0,0,0,4167,283,1,0,0,0,4168,4169,5,68,0,0,4169,4171,3,232,116,0,4170,4168,1,0,0,0,4170,4171,1,0,0,0,4171,4174,1,0,0,0,4172,4173,5,190,0,0,4173,4175,3,716,358,0,4174,4172,1,0,0,0,4174,4175,1,0,0,0,4175,285,1,0,0,0,4176,4177,5,73,0,0,4177,4178,5,19,0,0,4178,4183,3,292,146,0,4179,4180,5,1135,0,0,4180,4182,3,292,146,0,4181,4179,1,0,0,0,4182,4185,1,0,0,0,4183,4181,1,0,0,0,4183,4184,1,0,0,0,4184,4188,1,0,0,0,4185,4183,1,0,0,0,4186,4187,5,192,0,0,4187,4189,5,598,0,0,4188,4186,1,0,0,0,4188,4189,1,0,0,0,4189,287,1,0,0,0,4190,4191,5,74,0,0,4191,4192,3,716,358,0,4192,289,1,0,0,0,4193,4194,5,676,0,0,4194,4195,3,694,347,0,4195,4196,5,12,0,0,4196,4197,5,1133,0,0,4197,4198,3,692,346,0,4198,4208,5,1134,0,0,4199,4200,5,1135,0,0,4200,4201,3,694,347,0,4201,4202,5,12,0,0,4202,4203,5,1133,0,0,4203,4204,3,692,346,0,4204,4205,5,1134,0,0,4205,4207,1,0,0,0,4206,4199,1,0,0,0,4207,4210,1,0,0,0,4208,4206,1,0,0,0,4208,4209,1,0,0,0,4209,291,1,0,0,0,4210,4208,1,0,0,0,4211,4213,3,716,358,0,4212,4214,7,48,0,0,4213,4212,1,0,0,0,4213,4214,1,0,0,0,4214,293,1,0,0,0,4215,4226,5,99,0,0,4216,4217,3,296,148,0,4217,4218,5,1135,0,0,4218,4220,1,0,0,0,4219,4216,1,0,0,0,4219,4220,1,0,0,0,4220,4221,1,0,0,0,4221,4227,3,296,148,0,4222,4223,3,296,148,0,4223,4224,5,532,0,0,4224,4225,3,296,148,0,4225,4227,1,0,0,0,4226,4219,1,0,0,0,4226,4222,1,0,0,0,4227,295,1,0,0,0,4228,4232,3,618,309,0,4229,4232,3,594,297,0,4230,4232,3,614,307,0,4231,4228,1,0,0,0,4231,4229,1,0,0,0,4231,4230,1,0,0,0,4232,297,1,0,0,0,4233,4234,5,629,0,0,4234,4243,5,653,0,0,4235,4240,3,320,160,0,4236,4237,5,1135,0,0,4237,4239,3,320,160,0,4238,4236,1,0,0,0,4239,4242,1,0,0,0,4240,4238,1,0,0,0,4240,4241,1,0,0,0,4241,4244,1,0,0,0,4242,4240,1,0,0,0,4243,4235,1,0,0,0,4243,4244,1,0,0,0,4244,299,1,0,0,0,4245,4247,5,344,0,0,4246,4248,5,678,0,0,4247,4246,1,0,0,0,4247,4248,1,0,0,0,4248,301,1,0,0,0,4249,4251,5,369,0,0,4250,4252,5,678,0,0,4251,4250,1,0,0,0,4251,4252,1,0,0,0,4252,4258,1,0,0,0,4253,4255,5,10,0,0,4254,4256,5,521,0,0,4255,4254,1,0,0,0,4255,4256,1,0,0,0,4256,4257,1,0,0,0,4257,4259,5,353,0,0,4258,4253,1,0,0,0,4258,4259,1,0,0,0,4259,4264,1,0,0,0,4260,4262,5,521,0,0,4261,4260,1,0,0,0,4261,4262,1,0,0,0,4262,4263,1,0,0,0,4263,4265,5,138,0,0,4264,4261,1,0,0,0,4264,4265,1,0,0,0,4265,303,1,0,0,0,4266,4268,5,597,0,0,4267,4269,5,678,0,0,4268,4267,1,0,0,0,4268,4269,1,0,0,0,4269,4275,1,0,0,0,4270,4272,5,10,0,0,4271,4273,5,521,0,0,4272,4271,1,0,0,0,4272,4273,1,0,0,0,4273,4274,1,0,0,0,4274,4276,5,353,0,0,4275,4270,1,0,0,0,4275,4276,1,0,0,0,4276,4281,1,0,0,0,4277,4279,5,521,0,0,4278,4277,1,0,0,0,4278,4279,1,0,0,0,4279,4280,1,0,0,0,4280,4282,5,138,0,0,4281,4278,1,0,0,0,4281,4282,1,0,0,0,4282,305,1,0,0,0,4283,4284,5,604,0,0,4284,4285,3,612,306,0,4285,307,1,0,0,0,4286,4288,5,597,0,0,4287,4289,5,678,0,0,4288,4287,1,0,0,0,4288,4289,1,0,0,0,4289,4290,1,0,0,0,4290,4292,5,175,0,0,4291,4293,5,604,0,0,4292,4291,1,0,0,0,4292,4293,1,0,0,0,4293,4294,1,0,0,0,4294,4295,3,612,306,0,4295,309,1,0,0,0,4296,4297,5,138,0,0,4297,4298,5,604,0,0,4298,4299,3,612,306,0,4299,311,1,0,0,0,4300,4301,5,103,0,0,4301,4302,7,54,0,0,4302,4307,3,322,161,0,4303,4304,5,1135,0,0,4304,4306,3,322,161,0,4305,4303,1,0,0,0,4306,4309,1,0,0,0,4307,4305,1,0,0,0,4307,4308,1,0,0,0,4308,4311,1,0,0,0,4309,4307,1,0,0,0,4310,4312,3,674,337,0,4311,4310,1,0,0,0,4311,4312,1,0,0,0,4312,313,1,0,0,0,4313,4314,5,182,0,0,4314,4315,5,742,0,0,4315,315,1,0,0,0,4316,4317,5,153,0,0,4317,4318,5,340,0,0,4318,4319,5,1124,0,0,4319,4320,7,24,0,0,4320,317,1,0,0,0,4321,4323,5,153,0,0,4322,4324,7,55,0,0,4323,4322,1,0,0,0,4323,4324,1,0,0,0,4324,4325,1,0,0,0,4325,4326,5,653,0,0,4326,4331,3,326,163,0,4327,4328,5,1135,0,0,4328,4330,3,326,163,0,4329,4327,1,0,0,0,4330,4333,1,0,0,0,4331,4329,1,0,0,0,4331,4332,1,0,0,0,4332,319,1,0,0,0,4333,4331,1,0,0,0,4334,4335,5,192,0,0,4335,4336,5,377,0,0,4336,4342,5,616,0,0,4337,4338,5,134,0,0,4338,4342,5,193,0,0,4339,4340,5,134,0,0,4340,4342,5,538,0,0,4341,4334,1,0,0,0,4341,4337,1,0,0,0,4341,4339,1,0,0,0,4342,321,1,0,0,0,4343,4348,3,554,277,0,4344,4346,5,12,0,0,4345,4344,1,0,0,0,4345,4346,1,0,0,0,4346,4347,1,0,0,0,4347,4349,3,612,306,0,4348,4345,1,0,0,0,4348,4349,1,0,0,0,4349,4350,1,0,0,0,4350,4351,3,324,162,0,4351,323,1,0,0,0,4352,4354,5,134,0,0,4353,4355,5,474,0,0,4354,4353,1,0,0,0,4354,4355,1,0,0,0,4355,4361,1,0,0,0,4356,4358,5,106,0,0,4357,4356,1,0,0,0,4357,4358,1,0,0,0,4358,4359,1,0,0,0,4359,4361,5,193,0,0,4360,4352,1,0,0,0,4360,4357,1,0,0,0,4361,325,1,0,0,0,4362,4363,5,464,0,0,4363,4364,5,472,0,0,4364,4370,3,328,164,0,4365,4366,5,134,0,0,4366,4370,5,193,0,0,4367,4368,5,134,0,0,4368,4370,5,538,0,0,4369,4362,1,0,0,0,4369,4365,1,0,0,0,4369,4367,1,0,0,0,4370,327,1,0,0,0,4371,4372,5,799,0,0,4372,4379,5,134,0,0,4373,4374,5,134,0,0,4374,4379,5,800,0,0,4375,4376,5,134,0,0,4376,4379,5,801,0,0,4377,4379,5,802,0,0,4378,4371,1,0,0,0,4378,4373,1,0,0,0,4378,4375,1,0,0,0,4378,4377,1,0,0,0,4379,329,1,0,0,0,4380,4381,5,24,0,0,4381,4382,5,477,0,0,4382,4383,5,175,0,0,4383,4388,3,348,174,0,4384,4385,5,1135,0,0,4385,4387,3,348,174,0,4386,4384,1,0,0,0,4387,4390,1,0,0,0,4388,4386,1,0,0,0,4388,4389,1,0,0,0,4389,4392,1,0,0,0,4390,4388,1,0,0,0,4391,4393,3,356,178,0,4392,4391,1,0,0,0,4392,4393,1,0,0,0,4393,331,1,0,0,0,4394,4395,5,24,0,0,4395,4396,5,588,0,0,4396,4397,5,429,0,0,4397,4402,3,358,179,0,4398,4399,5,1135,0,0,4399,4401,3,358,179,0,4400,4398,1,0,0,0,4401,4404,1,0,0,0,4402,4400,1,0,0,0,4402,4403,1,0,0,0,4403,333,1,0,0,0,4404,4402,1,0,0,0,4405,4406,5,132,0,0,4406,4407,7,56,0,0,4407,4412,5,476,0,0,4408,4409,5,175,0,0,4409,4413,5,1148,0,0,4410,4411,5,15,0,0,4411,4413,5,1148,0,0,4412,4408,1,0,0,0,4412,4410,1,0,0,0,4413,335,1,0,0,0,4414,4415,5,589,0,0,4415,4416,5,477,0,0,4416,337,1,0,0,0,4417,4418,5,589,0,0,4418,4420,5,614,0,0,4419,4421,5,6,0,0,4420,4419,1,0,0,0,4420,4421,1,0,0,0,4421,4423,1,0,0,0,4422,4424,3,356,178,0,4423,4422,1,0,0,0,4423,4424,1,0,0,0,4424,339,1,0,0,0,4425,4426,5,629,0,0,4426,4435,5,614,0,0,4427,4432,3,362,181,0,4428,4429,5,1135,0,0,4429,4431,3,362,181,0,4430,4428,1,0,0,0,4431,4434,1,0,0,0,4432,4430,1,0,0,0,4432,4433,1,0,0,0,4433,4436,1,0,0,0,4434,4432,1,0,0,0,4435,4427,1,0,0,0,4435,4436,1,0,0,0,4436,4439,1,0,0,0,4437,4438,5,663,0,0,4438,4440,3,364,182,0,4439,4437,1,0,0,0,4439,4440,1,0,0,0,4440,4444,1,0,0,0,4441,4443,3,366,183,0,4442,4441,1,0,0,0,4443,4446,1,0,0,0,4444,4442,1,0,0,0,4444,4445,1,0,0,0,4445,4448,1,0,0,0,4446,4444,1,0,0,0,4447,4449,3,356,178,0,4448,4447,1,0,0,0,4448,4449,1,0,0,0,4449,341,1,0,0,0,4450,4451,5,635,0,0,4451,4460,5,614,0,0,4452,4457,3,362,181,0,4453,4454,5,1135,0,0,4454,4456,3,362,181,0,4455,4453,1,0,0,0,4456,4459,1,0,0,0,4457,4455,1,0,0,0,4457,4458,1,0,0,0,4458,4461,1,0,0,0,4459,4457,1,0,0,0,4460,4452,1,0,0,0,4460,4461,1,0,0,0,4461,343,1,0,0,0,4462,4463,5,629,0,0,4463,4464,5,441,0,0,4464,345,1,0,0,0,4465,4466,5,635,0,0,4466,4467,5,441,0,0,4467,347,1,0,0,0,4468,4469,3,350,175,0,4469,4470,5,1124,0,0,4470,4471,5,1148,0,0,4471,4498,1,0,0,0,4472,4473,3,352,176,0,4473,4474,5,1124,0,0,4474,4475,3,618,309,0,4475,4498,1,0,0,0,4476,4477,3,354,177,0,4477,4478,5,1124,0,0,4478,4479,7,24,0,0,4479,4498,1,0,0,0,4480,4481,5,481,0,0,4481,4482,5,1124,0,0,4482,4498,5,1151,0,0,4483,4484,5,449,0,0,4484,4485,5,1124,0,0,4485,4494,5,1133,0,0,4486,4491,3,612,306,0,4487,4488,5,1135,0,0,4488,4490,3,612,306,0,4489,4487,1,0,0,0,4490,4493,1,0,0,0,4491,4489,1,0,0,0,4491,4492,1,0,0,0,4492,4495,1,0,0,0,4493,4491,1,0,0,0,4494,4486,1,0,0,0,4494,4495,1,0,0,0,4495,4496,1,0,0,0,4496,4498,5,1134,0,0,4497,4468,1,0,0,0,4497,4472,1,0,0,0,4497,4476,1,0,0,0,4497,4480,1,0,0,0,4497,4483,1,0,0,0,4498,349,1,0,0,0,4499,4500,7,57,0,0,4500,351,1,0,0,0,4501,4502,7,58,0,0,4502,353,1,0,0,0,4503,4504,7,59,0,0,4504,355,1,0,0,0,4505,4506,5,65,0,0,4506,4507,5,355,0,0,4507,4508,5,1148,0,0,4508,357,1,0,0,0,4509,4510,5,581,0,0,4510,4511,5,1124,0,0,4511,4512,5,1133,0,0,4512,4513,3,644,322,0,4513,4514,5,1134,0,0,4514,4559,1,0,0,0,4515,4516,5,583,0,0,4516,4517,5,1124,0,0,4517,4518,5,1133,0,0,4518,4519,3,644,322,0,4519,4520,5,1134,0,0,4520,4559,1,0,0,0,4521,4522,5,582,0,0,4522,4523,5,1124,0,0,4523,4524,5,1133,0,0,4524,4525,3,648,324,0,4525,4526,5,1134,0,0,4526,4559,1,0,0,0,4527,4528,5,584,0,0,4528,4529,5,1124,0,0,4529,4530,5,1133,0,0,4530,4531,3,648,324,0,4531,4532,5,1134,0,0,4532,4559,1,0,0,0,4533,4534,5,586,0,0,4534,4535,5,1124,0,0,4535,4536,5,1133,0,0,4536,4537,3,658,329,0,4537,4538,5,1134,0,0,4538,4559,1,0,0,0,4539,4540,5,587,0,0,4540,4541,5,1124,0,0,4541,4542,5,1133,0,0,4542,4543,3,658,329,0,4543,4544,5,1134,0,0,4544,4559,1,0,0,0,4545,4546,5,585,0,0,4546,4547,5,1124,0,0,4547,4548,5,1133,0,0,4548,4553,3,360,180,0,4549,4550,5,1135,0,0,4550,4552,3,360,180,0,4551,4549,1,0,0,0,4552,4555,1,0,0,0,4553,4551,1,0,0,0,4553,4554,1,0,0,0,4554,4556,1,0,0,0,4555,4553,1,0,0,0,4556,4557,5,1134,0,0,4557,4559,1,0,0,0,4558,4509,1,0,0,0,4558,4515,1,0,0,0,4558,4521,1,0,0,0,4558,4527,1,0,0,0,4558,4533,1,0,0,0,4558,4539,1,0,0,0,4558,4545,1,0,0,0,4559,359,1,0,0,0,4560,4561,5,1133,0,0,4561,4562,3,554,277,0,4562,4563,5,1135,0,0,4563,4564,3,554,277,0,4564,4565,5,1134,0,0,4565,361,1,0,0,0,4566,4567,7,60,0,0,4567,363,1,0,0,0,4568,4569,7,61,0,0,4569,4570,5,1124,0,0,4570,4587,3,368,184,0,4571,4572,5,483,0,0,4572,4573,5,1124,0,0,4573,4574,5,1148,0,0,4574,4575,5,1135,0,0,4575,4576,5,484,0,0,4576,4577,5,1124,0,0,4577,4587,3,618,309,0,4578,4579,5,575,0,0,4579,4580,5,1124,0,0,4580,4581,5,1148,0,0,4581,4582,5,1135,0,0,4582,4583,5,576,0,0,4583,4584,5,1124,0,0,4584,4587,3,618,309,0,4585,4587,5,623,0,0,4586,4568,1,0,0,0,4586,4571,1,0,0,0,4586,4578,1,0,0,0,4586,4585,1,0,0,0,4587,365,1,0,0,0,4588,4589,5,665,0,0,4589,4590,5,1124,0,0,4590,4601,5,1148,0,0,4591,4592,5,551,0,0,4592,4593,5,1124,0,0,4593,4601,5,1148,0,0,4594,4595,5,391,0,0,4595,4596,5,1124,0,0,4596,4601,5,1148,0,0,4597,4598,5,555,0,0,4598,4599,5,1124,0,0,4599,4601,5,1148,0,0,4600,4588,1,0,0,0,4600,4591,1,0,0,0,4600,4594,1,0,0,0,4600,4597,1,0,0,0,4601,367,1,0,0,0,4602,4607,3,604,302,0,4603,4604,5,1135,0,0,4604,4606,3,604,302,0,4605,4603,1,0,0,0,4606,4609,1,0,0,0,4607,4605,1,0,0,0,4607,4608,1,0,0,0,4608,4612,1,0,0,0,4609,4607,1,0,0,0,4610,4612,5,1148,0,0,4611,4602,1,0,0,0,4611,4610,1,0,0,0,4612,369,1,0,0,0,4613,4614,5,681,0,0,4614,4615,7,62,0,0,4615,4617,3,606,303,0,4616,4618,7,63,0,0,4617,4616,1,0,0,0,4617,4618,1,0,0,0,4618,371,1,0,0,0,4619,4620,5,681,0,0,4620,4621,5,407,0,0,4621,4627,3,606,303,0,4622,4625,5,643,0,0,4623,4624,5,65,0,0,4624,4626,5,509,0,0,4625,4623,1,0,0,0,4625,4626,1,0,0,0,4626,4628,1,0,0,0,4627,4622,1,0,0,0,4627,4628,1,0,0,0,4628,373,1,0,0,0,4629,4630,5,681,0,0,4630,4631,5,560,0,0,4631,4632,3,606,303,0,4632,375,1,0,0,0,4633,4634,5,681,0,0,4634,4635,5,369,0,0,4635,4638,3,606,303,0,4636,4637,5,536,0,0,4637,4639,5,553,0,0,4638,4636,1,0,0,0,4638,4639,1,0,0,0,4639,377,1,0,0,0,4640,4641,5,681,0,0,4641,4642,5,597,0,0,4642,4643,3,606,303,0,4643,379,1,0,0,0,4644,4645,5,681,0,0,4645,4648,5,570,0,0,4646,4647,5,32,0,0,4647,4649,3,606,303,0,4648,4646,1,0,0,0,4648,4649,1,0,0,0,4649,381,1,0,0,0,4650,4651,5,560,0,0,4651,4652,3,612,306,0,4652,4655,5,68,0,0,4653,4656,5,1148,0,0,4654,4656,5,1159,0,0,4655,4653,1,0,0,0,4655,4654,1,0,0,0,4656,383,1,0,0,0,4657,4658,5,708,0,0,4658,4661,3,612,306,0,4659,4660,5,187,0,0,4660,4662,3,660,330,0,4661,4659,1,0,0,0,4661,4662,1,0,0,0,4662,385,1,0,0,0,4663,4664,7,64,0,0,4664,4665,5,560,0,0,4665,4666,3,612,306,0,4666,387,1,0,0,0,4667,4670,3,390,195,0,4668,4670,3,4,2,0,4669,4667,1,0,0,0,4669,4668,1,0,0,0,4670,389,1,0,0,0,4671,4672,3,612,306,0,4672,4673,5,1144,0,0,4673,4675,1,0,0,0,4674,4671,1,0,0,0,4674,4675,1,0,0,0,4675,4676,1,0,0,0,4676,4682,5,344,0,0,4677,4678,3,410,205,0,4678,4679,5,1136,0,0,4679,4681,1,0,0,0,4680,4677,1,0,0,0,4681,4684,1,0,0,0,4682,4680,1,0,0,0,4682,4683,1,0,0,0,4683,4690,1,0,0,0,4684,4682,1,0,0,0,4685,4686,3,412,206,0,4686,4687,5,1136,0,0,4687,4689,1,0,0,0,4688,4685,1,0,0,0,4689,4692,1,0,0,0,4690,4688,1,0,0,0,4690,4691,1,0,0,0,4691,4698,1,0,0,0,4692,4690,1,0,0,0,4693,4694,3,414,207,0,4694,4695,5,1136,0,0,4695,4697,1,0,0,0,4696,4693,1,0,0,0,4697,4700,1,0,0,0,4698,4696,1,0,0,0,4698,4699,1,0,0,0,4699,4706,1,0,0,0,4700,4698,1,0,0,0,4701,4702,3,416,208,0,4702,4703,5,1136,0,0,4703,4705,1,0,0,0,4704,4701,1,0,0,0,4705,4708,1,0,0,0,4706,4704,1,0,0,0,4706,4707,1,0,0,0,4707,4712,1,0,0,0,4708,4706,1,0,0,0,4709,4711,3,420,210,0,4710,4709,1,0,0,0,4711,4714,1,0,0,0,4712,4710,1,0,0,0,4712,4713,1,0,0,0,4713,4715,1,0,0,0,4714,4712,1,0,0,0,4715,4717,5,407,0,0,4716,4718,3,612,306,0,4717,4716,1,0,0,0,4717,4718,1,0,0,0,4718,391,1,0,0,0,4719,4722,5,22,0,0,4720,4723,3,612,306,0,4721,4723,3,716,358,0,4722,4720,1,0,0,0,4722,4721,1,0,0,0,4722,4723,1,0,0,0,4723,4725,1,0,0,0,4724,4726,3,422,211,0,4725,4724,1,0,0,0,4726,4727,1,0,0,0,4727,4725,1,0,0,0,4727,4728,1,0,0,0,4728,4735,1,0,0,0,4729,4731,5,53,0,0,4730,4732,3,420,210,0,4731,4730,1,0,0,0,4732,4733,1,0,0,0,4733,4731,1,0,0,0,4733,4734,1,0,0,0,4734,4736,1,0,0,0,4735,4729,1,0,0,0,4735,4736,1,0,0,0,4736,4737,1,0,0,0,4737,4738,5,407,0,0,4738,4739,5,22,0,0,4739,393,1,0,0,0,4740,4741,5,77,0,0,4741,4742,3,716,358,0,4742,4744,5,174,0,0,4743,4745,3,420,210,0,4744,4743,1,0,0,0,4745,4746,1,0,0,0,4746,4744,1,0,0,0,4746,4747,1,0,0,0,4747,4751,1,0,0,0,4748,4750,3,424,212,0,4749,4748,1,0,0,0,4750,4753,1,0,0,0,4751,4749,1,0,0,0,4751,4752,1,0,0,0,4752,4760,1,0,0,0,4753,4751,1,0,0,0,4754,4756,5,53,0,0,4755,4757,3,420,210,0,4756,4755,1,0,0,0,4757,4758,1,0,0,0,4758,4756,1,0,0,0,4758,4759,1,0,0,0,4759,4761,1,0,0,0,4760,4754,1,0,0,0,4760,4761,1,0,0,0,4761,4762,1,0,0,0,4762,4763,5,407,0,0,4763,4764,5,77,0,0,4764,395,1,0,0,0,4765,4766,5,89,0,0,4766,4767,3,612,306,0,4767,397,1,0,0,0,4768,4769,5,96,0,0,4769,4770,3,612,306,0,4770,399,1,0,0,0,4771,4772,3,612,306,0,4772,4773,5,1144,0,0,4773,4775,1,0,0,0,4774,4771,1,0,0,0,4774,4775,1,0,0,0,4775,4776,1,0,0,0,4776,4778,5,105,0,0,4777,4779,3,420,210,0,4778,4777,1,0,0,0,4779,4780,1,0,0,0,4780,4778,1,0,0,0,4780,4781,1,0,0,0,4781,4782,1,0,0,0,4782,4783,5,407,0,0,4783,4785,5,105,0,0,4784,4786,3,612,306,0,4785,4784,1,0,0,0,4785,4786,1,0,0,0,4786,401,1,0,0,0,4787,4788,3,612,306,0,4788,4789,5,1144,0,0,4789,4791,1,0,0,0,4790,4787,1,0,0,0,4790,4791,1,0,0,0,4791,4792,1,0,0,0,4792,4794,5,140,0,0,4793,4795,3,420,210,0,4794,4793,1,0,0,0,4795,4796,1,0,0,0,4796,4794,1,0,0,0,4796,4797,1,0,0,0,4797,4798,1,0,0,0,4798,4799,5,663,0,0,4799,4800,3,716,358,0,4800,4801,5,407,0,0,4801,4803,5,140,0,0,4802,4804,3,612,306,0,4803,4802,1,0,0,0,4803,4804,1,0,0,0,4804,403,1,0,0,0,4805,4806,5,146,0,0,4806,4807,3,716,358,0,4807,405,1,0,0,0,4808,4809,3,612,306,0,4809,4810,5,1144,0,0,4810,4812,1,0,0,0,4811,4808,1,0,0,0,4811,4812,1,0,0,0,4812,4813,1,0,0,0,4813,4814,5,191,0,0,4814,4815,3,716,358,0,4815,4817,5,399,0,0,4816,4818,3,420,210,0,4817,4816,1,0,0,0,4818,4819,1,0,0,0,4819,4817,1,0,0,0,4819,4820,1,0,0,0,4820,4821,1,0,0,0,4821,4822,5,407,0,0,4822,4824,5,191,0,0,4823,4825,3,612,306,0,4824,4823,1,0,0,0,4824,4825,1,0,0,0,4825,407,1,0,0,0,4826,4827,5,361,0,0,4827,4842,3,612,306,0,4828,4833,5,64,0,0,4829,4831,5,520,0,0,4830,4829,1,0,0,0,4830,4831,1,0,0,0,4831,4832,1,0,0,0,4832,4834,5,68,0,0,4833,4830,1,0,0,0,4833,4834,1,0,0,0,4834,4835,1,0,0,0,4835,4836,3,612,306,0,4836,4837,5,87,0,0,4837,4838,3,644,322,0,4838,4842,1,0,0,0,4839,4840,5,539,0,0,4840,4842,3,612,306,0,4841,4826,1,0,0,0,4841,4828,1,0,0,0,4841,4839,1,0,0,0,4842,409,1,0,0,0,4843,4844,5,41,0,0,4844,4845,3,644,322,0,4845,4848,3,632,316,0,4846,4847,5,42,0,0,4847,4849,3,716,358,0,4848,4846,1,0,0,0,4848,4849,1,0,0,0,4849,411,1,0,0,0,4850,4851,5,41,0,0,4851,4852,3,612,306,0,4852,4853,5,29,0,0,4853,4860,5,65,0,0,4854,4861,3,618,309,0,4855,4857,5,162,0,0,4856,4858,5,669,0,0,4857,4856,1,0,0,0,4857,4858,1,0,0,0,4858,4859,1,0,0,0,4859,4861,5,1148,0,0,4860,4854,1,0,0,0,4860,4855,1,0,0,0,4861,413,1,0,0,0,4862,4863,5,41,0,0,4863,4864,3,612,306,0,4864,4865,5,38,0,0,4865,4866,5,65,0,0,4866,4867,3,198,99,0,4867,415,1,0,0,0,4868,4869,5,41,0,0,4869,4870,7,65,0,0,4870,4871,5,442,0,0,4871,4872,5,65,0,0,4872,4877,3,418,209,0,4873,4874,5,1135,0,0,4874,4876,3,418,209,0,4875,4873,1,0,0,0,4876,4879,1,0,0,0,4877,4875,1,0,0,0,4877,4878,1,0,0,0,4878,4880,1,0,0,0,4879,4877,1,0,0,0,4880,4881,3,388,194,0,4881,417,1,0,0,0,4882,4894,3,618,309,0,4883,4885,5,162,0,0,4884,4886,5,669,0,0,4885,4884,1,0,0,0,4885,4886,1,0,0,0,4886,4887,1,0,0,0,4887,4894,5,1148,0,0,4888,4894,3,612,306,0,4889,4894,5,163,0,0,4890,4891,5,114,0,0,4891,4894,5,435,0,0,4892,4894,5,161,0,0,4893,4882,1,0,0,0,4893,4883,1,0,0,0,4893,4888,1,0,0,0,4893,4889,1,0,0,0,4893,4890,1,0,0,0,4893,4892,1,0,0,0,4894,419,1,0,0,0,4895,4898,3,16,8,0,4896,4898,3,4,2,0,4897,4895,1,0,0,0,4897,4896,1,0,0,0,4898,4899,1,0,0,0,4899,4900,5,1136,0,0,4900,421,1,0,0,0,4901,4904,5,189,0,0,4902,4905,3,630,315,0,4903,4905,3,716,358,0,4904,4902,1,0,0,0,4904,4903,1,0,0,0,4905,4906,1,0,0,0,4906,4908,5,174,0,0,4907,4909,3,420,210,0,4908,4907,1,0,0,0,4909,4910,1,0,0,0,4910,4908,1,0,0,0,4910,4911,1,0,0,0,4911,423,1,0,0,0,4912,4913,5,54,0,0,4913,4914,3,716,358,0,4914,4916,5,174,0,0,4915,4917,3,420,210,0,4916,4915,1,0,0,0,4917,4918,1,0,0,0,4918,4916,1,0,0,0,4918,4919,1,0,0,0,4919,425,1,0,0,0,4920,4921,5,7,0,0,4921,4922,5,665,0,0,4922,4927,3,446,223,0,4923,4924,5,1135,0,0,4924,4926,3,446,223,0,4925,4923,1,0,0,0,4926,4929,1,0,0,0,4927,4925,1,0,0,0,4927,4928,1,0,0,0,4928,4984,1,0,0,0,4929,4927,1,0,0,0,4930,4931,5,7,0,0,4931,4933,5,665,0,0,4932,4934,3,668,334,0,4933,4932,1,0,0,0,4933,4934,1,0,0,0,4934,4935,1,0,0,0,4935,4950,3,448,224,0,4936,4948,5,142,0,0,4937,4949,5,529,0,0,4938,4945,3,456,228,0,4939,4941,5,10,0,0,4940,4939,1,0,0,0,4940,4941,1,0,0,0,4941,4942,1,0,0,0,4942,4944,3,456,228,0,4943,4940,1,0,0,0,4944,4947,1,0,0,0,4945,4943,1,0,0,0,4945,4946,1,0,0,0,4946,4949,1,0,0,0,4947,4945,1,0,0,0,4948,4937,1,0,0,0,4948,4938,1,0,0,0,4949,4951,1,0,0,0,4950,4936,1,0,0,0,4950,4951,1,0,0,0,4951,4958,1,0,0,0,4952,4954,5,192,0,0,4953,4955,3,458,229,0,4954,4953,1,0,0,0,4955,4956,1,0,0,0,4956,4954,1,0,0,0,4956,4957,1,0,0,0,4957,4959,1,0,0,0,4958,4952,1,0,0,0,4958,4959,1,0,0,0,4959,4964,1,0,0,0,4960,4963,3,460,230,0,4961,4963,3,462,231,0,4962,4960,1,0,0,0,4962,4961,1,0,0,0,4963,4966,1,0,0,0,4964,4962,1,0,0,0,4964,4965,1,0,0,0,4965,4971,1,0,0,0,4966,4964,1,0,0,0,4967,4968,5,368,0,0,4968,4972,5,1148,0,0,4969,4970,5,14,0,0,4970,4972,5,1148,0,0,4971,4967,1,0,0,0,4971,4969,1,0,0,0,4971,4972,1,0,0,0,4972,4984,1,0,0,0,4973,4974,5,7,0,0,4974,4976,5,665,0,0,4975,4977,3,668,334,0,4976,4975,1,0,0,0,4976,4977,1,0,0,0,4977,4978,1,0,0,0,4978,4979,3,592,296,0,4979,4980,5,42,0,0,4980,4981,5,596,0,0,4981,4982,3,434,217,0,4982,4984,1,0,0,0,4983,4920,1,0,0,0,4983,4930,1,0,0,0,4983,4973,1,0,0,0,4984,427,1,0,0,0,4985,4986,5,33,0,0,4986,4987,5,665,0,0,4987,5037,3,448,224,0,4988,4989,5,33,0,0,4989,4991,5,665,0,0,4990,4992,3,670,335,0,4991,4990,1,0,0,0,4991,4992,1,0,0,0,4992,4993,1,0,0,0,4993,4997,3,448,224,0,4994,4995,5,42,0,0,4995,4996,5,596,0,0,4996,4998,3,434,217,0,4997,4994,1,0,0,0,4997,4998,1,0,0,0,4998,5013,1,0,0,0,4999,5011,5,142,0,0,5e3,5012,5,529,0,0,5001,5008,3,456,228,0,5002,5004,5,10,0,0,5003,5002,1,0,0,0,5003,5004,1,0,0,0,5004,5005,1,0,0,0,5005,5007,3,456,228,0,5006,5003,1,0,0,0,5007,5010,1,0,0,0,5008,5006,1,0,0,0,5008,5009,1,0,0,0,5009,5012,1,0,0,0,5010,5008,1,0,0,0,5011,5e3,1,0,0,0,5011,5001,1,0,0,0,5012,5014,1,0,0,0,5013,4999,1,0,0,0,5013,5014,1,0,0,0,5014,5021,1,0,0,0,5015,5017,5,192,0,0,5016,5018,3,458,229,0,5017,5016,1,0,0,0,5018,5019,1,0,0,0,5019,5017,1,0,0,0,5019,5020,1,0,0,0,5020,5022,1,0,0,0,5021,5015,1,0,0,0,5021,5022,1,0,0,0,5022,5027,1,0,0,0,5023,5026,3,460,230,0,5024,5026,3,462,231,0,5025,5023,1,0,0,0,5025,5024,1,0,0,0,5026,5029,1,0,0,0,5027,5025,1,0,0,0,5027,5028,1,0,0,0,5028,5034,1,0,0,0,5029,5027,1,0,0,0,5030,5031,5,368,0,0,5031,5035,5,1148,0,0,5032,5033,5,14,0,0,5033,5035,5,1148,0,0,5034,5030,1,0,0,0,5034,5032,1,0,0,0,5034,5035,1,0,0,0,5035,5037,1,0,0,0,5036,4985,1,0,0,0,5036,4988,1,0,0,0,5037,429,1,0,0,0,5038,5039,5,51,0,0,5039,5041,5,665,0,0,5040,5042,3,668,334,0,5041,5040,1,0,0,0,5041,5042,1,0,0,0,5042,5043,1,0,0,0,5043,5044,3,588,294,0,5044,431,1,0,0,0,5045,5046,5,72,0,0,5046,5051,3,464,232,0,5047,5048,5,1135,0,0,5048,5050,3,464,232,0,5049,5047,1,0,0,0,5050,5053,1,0,0,0,5051,5049,1,0,0,0,5051,5052,1,0,0,0,5052,5054,1,0,0,0,5053,5051,1,0,0,0,5054,5056,5,118,0,0,5055,5057,7,66,0,0,5056,5055,1,0,0,0,5056,5057,1,0,0,0,5057,5058,1,0,0,0,5058,5059,3,468,234,0,5059,5060,5,175,0,0,5060,5075,3,560,280,0,5061,5073,5,142,0,0,5062,5074,5,529,0,0,5063,5070,3,456,228,0,5064,5066,5,10,0,0,5065,5064,1,0,0,0,5065,5066,1,0,0,0,5066,5067,1,0,0,0,5067,5069,3,456,228,0,5068,5065,1,0,0,0,5069,5072,1,0,0,0,5070,5068,1,0,0,0,5070,5071,1,0,0,0,5071,5074,1,0,0,0,5072,5070,1,0,0,0,5073,5062,1,0,0,0,5073,5063,1,0,0,0,5074,5076,1,0,0,0,5075,5061,1,0,0,0,5075,5076,1,0,0,0,5076,5086,1,0,0,0,5077,5083,5,192,0,0,5078,5079,5,72,0,0,5079,5082,5,120,0,0,5080,5082,3,458,229,0,5081,5078,1,0,0,0,5081,5080,1,0,0,0,5082,5085,1,0,0,0,5083,5081,1,0,0,0,5083,5084,1,0,0,0,5084,5087,1,0,0,0,5085,5083,1,0,0,0,5086,5077,1,0,0,0,5086,5087,1,0,0,0,5087,5094,1,0,0,0,5088,5089,5,12,0,0,5089,5090,3,592,296,0,5090,5091,5,192,0,0,5091,5092,5,596,0,0,5092,5093,3,434,217,0,5093,5095,1,0,0,0,5094,5088,1,0,0,0,5094,5095,1,0,0,0,5095,5106,1,0,0,0,5096,5097,5,72,0,0,5097,5098,3,566,283,0,5098,5099,5,175,0,0,5099,5103,3,560,280,0,5100,5101,5,192,0,0,5101,5102,5,697,0,0,5102,5104,5,120,0,0,5103,5100,1,0,0,0,5103,5104,1,0,0,0,5104,5106,1,0,0,0,5105,5045,1,0,0,0,5105,5096,1,0,0,0,5106,433,1,0,0,0,5107,5116,5,42,0,0,5108,5116,5,529,0,0,5109,5112,5,6,0,0,5110,5111,5,59,0,0,5111,5113,3,566,283,0,5112,5110,1,0,0,0,5112,5113,1,0,0,0,5113,5116,1,0,0,0,5114,5116,3,566,283,0,5115,5107,1,0,0,0,5115,5108,1,0,0,0,5115,5109,1,0,0,0,5115,5114,1,0,0,0,5116,435,1,0,0,0,5117,5118,5,72,0,0,5118,5119,5,566,0,0,5119,5120,5,118,0,0,5120,5121,3,592,296,0,5121,5122,5,175,0,0,5122,5127,3,592,296,0,5123,5124,5,1135,0,0,5124,5126,3,592,296,0,5125,5123,1,0,0,0,5126,5129,1,0,0,0,5127,5125,1,0,0,0,5127,5128,1,0,0,0,5128,5133,1,0,0,0,5129,5127,1,0,0,0,5130,5131,5,192,0,0,5131,5132,5,72,0,0,5132,5134,5,120,0,0,5133,5130,1,0,0,0,5133,5134,1,0,0,0,5134,437,1,0,0,0,5135,5136,5,139,0,0,5136,5137,5,665,0,0,5137,5142,3,470,235,0,5138,5139,5,1135,0,0,5139,5141,3,470,235,0,5140,5138,1,0,0,0,5141,5144,1,0,0,0,5142,5140,1,0,0,0,5142,5143,1,0,0,0,5143,439,1,0,0,0,5144,5142,1,0,0,0,5145,5146,5,147,0,0,5146,5151,3,464,232,0,5147,5148,5,1135,0,0,5148,5150,3,464,232,0,5149,5147,1,0,0,0,5150,5153,1,0,0,0,5151,5149,1,0,0,0,5151,5152,1,0,0,0,5152,5154,1,0,0,0,5153,5151,1,0,0,0,5154,5156,5,118,0,0,5155,5157,7,66,0,0,5156,5155,1,0,0,0,5156,5157,1,0,0,0,5157,5158,1,0,0,0,5158,5159,3,468,234,0,5159,5160,5,68,0,0,5160,5161,3,560,280,0,5161,5182,1,0,0,0,5162,5163,5,147,0,0,5163,5165,5,6,0,0,5164,5166,5,725,0,0,5165,5164,1,0,0,0,5165,5166,1,0,0,0,5166,5167,1,0,0,0,5167,5168,5,1135,0,0,5168,5169,5,72,0,0,5169,5170,5,120,0,0,5170,5171,5,68,0,0,5171,5182,3,560,280,0,5172,5173,5,147,0,0,5173,5174,3,566,283,0,5174,5178,5,68,0,0,5175,5177,3,560,280,0,5176,5175,1,0,0,0,5177,5180,1,0,0,0,5178,5176,1,0,0,0,5178,5179,1,0,0,0,5179,5182,1,0,0,0,5180,5178,1,0,0,0,5181,5145,1,0,0,0,5181,5162,1,0,0,0,5181,5172,1,0,0,0,5182,441,1,0,0,0,5183,5184,5,147,0,0,5184,5185,5,566,0,0,5185,5186,5,118,0,0,5186,5187,3,592,296,0,5187,5188,5,68,0,0,5188,5193,3,592,296,0,5189,5190,5,1135,0,0,5190,5192,3,592,296,0,5191,5189,1,0,0,0,5192,5195,1,0,0,0,5193,5191,1,0,0,0,5193,5194,1,0,0,0,5194,443,1,0,0,0,5195,5193,1,0,0,0,5196,5197,5,153,0,0,5197,5200,5,551,0,0,5198,5199,5,65,0,0,5199,5201,3,592,296,0,5200,5198,1,0,0,0,5200,5201,1,0,0,0,5201,5202,1,0,0,0,5202,5205,5,1124,0,0,5203,5206,3,710,355,0,5204,5206,5,1148,0,0,5205,5203,1,0,0,0,5205,5204,1,0,0,0,5206,445,1,0,0,0,5207,5208,3,592,296,0,5208,5209,3,460,230,0,5209,447,1,0,0,0,5210,5215,3,450,225,0,5211,5212,5,1135,0,0,5212,5214,3,450,225,0,5213,5211,1,0,0,0,5214,5217,1,0,0,0,5215,5213,1,0,0,0,5215,5216,1,0,0,0,5216,449,1,0,0,0,5217,5215,1,0,0,0,5218,5219,3,590,295,0,5219,5220,5,448,0,0,5220,5221,5,19,0,0,5221,5222,5,551,0,0,5222,5223,5,1148,0,0,5223,5244,1,0,0,0,5224,5225,3,590,295,0,5225,5226,5,448,0,0,5226,5227,5,19,0,0,5227,5228,5,991,0,0,5228,5229,5,551,0,0,5229,5230,3,452,226,0,5230,5244,1,0,0,0,5231,5232,3,590,295,0,5232,5233,5,448,0,0,5233,5234,5,19,0,0,5234,5235,5,1148,0,0,5235,5236,3,452,226,0,5236,5244,1,0,0,0,5237,5238,3,590,295,0,5238,5239,5,448,0,0,5239,5240,5,192,0,0,5240,5241,3,454,227,0,5241,5244,1,0,0,0,5242,5244,3,590,295,0,5243,5218,1,0,0,0,5243,5224,1,0,0,0,5243,5231,1,0,0,0,5243,5237,1,0,0,0,5243,5242,1,0,0,0,5244,451,1,0,0,0,5245,5246,5,141,0,0,5246,5248,5,1148,0,0,5247,5245,1,0,0,0,5247,5248,1,0,0,0,5248,5252,1,0,0,0,5249,5250,5,145,0,0,5250,5251,5,35,0,0,5251,5253,5,551,0,0,5252,5249,1,0,0,0,5252,5253,1,0,0,0,5253,453,1,0,0,0,5254,5262,3,610,305,0,5255,5259,7,67,0,0,5256,5260,5,1148,0,0,5257,5258,5,991,0,0,5258,5260,5,551,0,0,5259,5256,1,0,0,0,5259,5257,1,0,0,0,5260,5261,1,0,0,0,5261,5263,3,452,226,0,5262,5255,1,0,0,0,5262,5263,1,0,0,0,5263,5269,1,0,0,0,5264,5265,3,610,305,0,5265,5266,5,187,0,0,5266,5267,3,710,355,0,5267,5269,1,0,0,0,5268,5254,1,0,0,0,5268,5264,1,0,0,0,5269,455,1,0,0,0,5270,5279,5,167,0,0,5271,5279,5,680,0,0,5272,5273,5,358,0,0,5273,5279,5,1148,0,0,5274,5275,5,465,0,0,5275,5279,5,1148,0,0,5276,5277,5,640,0,0,5277,5279,5,1148,0,0,5278,5270,1,0,0,0,5278,5271,1,0,0,0,5278,5272,1,0,0,0,5278,5274,1,0,0,0,5278,5276,1,0,0,0,5279,457,1,0,0,0,5280,5281,5,499,0,0,5281,5289,3,618,309,0,5282,5283,5,502,0,0,5283,5289,3,618,309,0,5284,5285,5,498,0,0,5285,5289,3,618,309,0,5286,5287,5,503,0,0,5287,5289,3,618,309,0,5288,5280,1,0,0,0,5288,5282,1,0,0,0,5288,5284,1,0,0,0,5288,5286,1,0,0,0,5289,459,1,0,0,0,5290,5291,5,551,0,0,5291,5298,5,420,0,0,5292,5299,5,42,0,0,5293,5299,5,519,0,0,5294,5295,5,86,0,0,5295,5296,3,618,309,0,5296,5297,5,691,0,0,5297,5299,1,0,0,0,5298,5292,1,0,0,0,5298,5293,1,0,0,0,5298,5294,1,0,0,0,5298,5299,1,0,0,0,5299,5329,1,0,0,0,5300,5301,5,551,0,0,5301,5304,5,445,0,0,5302,5305,5,42,0,0,5303,5305,3,618,309,0,5304,5302,1,0,0,0,5304,5303,1,0,0,0,5305,5329,1,0,0,0,5306,5307,5,551,0,0,5307,5308,5,595,0,0,5308,5313,5,86,0,0,5309,5314,5,42,0,0,5310,5311,3,618,309,0,5311,5312,5,691,0,0,5312,5314,1,0,0,0,5313,5309,1,0,0,0,5313,5310,1,0,0,0,5314,5329,1,0,0,0,5315,5316,5,551,0,0,5316,5317,5,142,0,0,5317,5319,5,35,0,0,5318,5320,7,68,0,0,5319,5318,1,0,0,0,5319,5320,1,0,0,0,5320,5329,1,0,0,0,5321,5322,5,424,0,0,5322,5329,3,618,309,0,5323,5326,5,552,0,0,5324,5327,3,618,309,0,5325,5327,5,657,0,0,5326,5324,1,0,0,0,5326,5325,1,0,0,0,5327,5329,1,0,0,0,5328,5290,1,0,0,0,5328,5300,1,0,0,0,5328,5306,1,0,0,0,5328,5315,1,0,0,0,5328,5321,1,0,0,0,5328,5323,1,0,0,0,5329,461,1,0,0,0,5330,5331,5,332,0,0,5331,5332,7,69,0,0,5332,463,1,0,0,0,5333,5338,3,466,233,0,5334,5335,5,1133,0,0,5335,5336,3,644,322,0,5336,5337,5,1134,0,0,5337,5339,1,0,0,0,5338,5334,1,0,0,0,5338,5339,1,0,0,0,5339,465,1,0,0,0,5340,5342,5,6,0,0,5341,5343,5,725,0,0,5342,5341,1,0,0,0,5342,5343,1,0,0,0,5343,5434,1,0,0,0,5344,5346,5,7,0,0,5345,5347,5,733,0,0,5346,5345,1,0,0,0,5346,5347,1,0,0,0,5347,5434,1,0,0,0,5348,5356,5,33,0,0,5349,5350,5,649,0,0,5350,5357,5,742,0,0,5351,5357,5,733,0,0,5352,5357,5,671,0,0,5353,5357,5,665,0,0,5354,5357,5,647,0,0,5355,5357,5,596,0,0,5356,5349,1,0,0,0,5356,5351,1,0,0,0,5356,5352,1,0,0,0,5356,5353,1,0,0,0,5356,5354,1,0,0,0,5356,5355,1,0,0,0,5356,5357,1,0,0,0,5357,5434,1,0,0,0,5358,5434,5,44,0,0,5359,5361,5,51,0,0,5360,5362,5,596,0,0,5361,5360,1,0,0,0,5361,5362,1,0,0,0,5362,5434,1,0,0,0,5363,5434,5,415,0,0,5364,5434,5,708,0,0,5365,5434,5,709,0,0,5366,5367,5,72,0,0,5367,5434,5,120,0,0,5368,5434,5,81,0,0,5369,5434,5,85,0,0,5370,5371,5,103,0,0,5371,5434,5,742,0,0,5372,5434,5,726,0,0,5373,5434,5,566,0,0,5374,5434,5,136,0,0,5375,5434,5,727,0,0,5376,5377,5,588,0,0,5377,5434,7,70,0,0,5378,5434,5,152,0,0,5379,5380,5,155,0,0,5380,5434,7,71,0,0,5381,5434,5,739,0,0,5382,5434,5,740,0,0,5383,5434,5,177,0,0,5384,5434,5,184,0,0,5385,5434,5,185,0,0,5386,5434,5,698,0,0,5387,5434,5,699,0,0,5388,5434,5,700,0,0,5389,5434,5,701,0,0,5390,5434,5,702,0,0,5391,5434,5,703,0,0,5392,5434,5,704,0,0,5393,5434,5,705,0,0,5394,5434,5,706,0,0,5395,5434,5,707,0,0,5396,5434,5,710,0,0,5397,5434,5,711,0,0,5398,5434,5,712,0,0,5399,5434,5,713,0,0,5400,5434,5,714,0,0,5401,5434,5,715,0,0,5402,5434,5,716,0,0,5403,5434,5,717,0,0,5404,5434,5,718,0,0,5405,5434,5,719,0,0,5406,5434,5,722,0,0,5407,5434,5,723,0,0,5408,5434,5,724,0,0,5409,5434,5,728,0,0,5410,5434,5,729,0,0,5411,5434,5,730,0,0,5412,5434,5,731,0,0,5413,5434,5,732,0,0,5414,5434,5,735,0,0,5415,5434,5,736,0,0,5416,5434,5,737,0,0,5417,5434,5,158,0,0,5418,5434,5,738,0,0,5419,5434,5,1077,0,0,5420,5434,5,741,0,0,5421,5434,5,743,0,0,5422,5434,5,1088,0,0,5423,5434,5,744,0,0,5424,5434,5,745,0,0,5425,5426,5,102,0,0,5426,5427,5,68,0,0,5427,5434,5,734,0,0,5428,5429,5,152,0,0,5429,5430,5,87,0,0,5430,5434,5,734,0,0,5431,5432,5,720,0,0,5432,5434,5,721,0,0,5433,5340,1,0,0,0,5433,5344,1,0,0,0,5433,5348,1,0,0,0,5433,5358,1,0,0,0,5433,5359,1,0,0,0,5433,5363,1,0,0,0,5433,5364,1,0,0,0,5433,5365,1,0,0,0,5433,5366,1,0,0,0,5433,5368,1,0,0,0,5433,5369,1,0,0,0,5433,5370,1,0,0,0,5433,5372,1,0,0,0,5433,5373,1,0,0,0,5433,5374,1,0,0,0,5433,5375,1,0,0,0,5433,5376,1,0,0,0,5433,5378,1,0,0,0,5433,5379,1,0,0,0,5433,5381,1,0,0,0,5433,5382,1,0,0,0,5433,5383,1,0,0,0,5433,5384,1,0,0,0,5433,5385,1,0,0,0,5433,5386,1,0,0,0,5433,5387,1,0,0,0,5433,5388,1,0,0,0,5433,5389,1,0,0,0,5433,5390,1,0,0,0,5433,5391,1,0,0,0,5433,5392,1,0,0,0,5433,5393,1,0,0,0,5433,5394,1,0,0,0,5433,5395,1,0,0,0,5433,5396,1,0,0,0,5433,5397,1,0,0,0,5433,5398,1,0,0,0,5433,5399,1,0,0,0,5433,5400,1,0,0,0,5433,5401,1,0,0,0,5433,5402,1,0,0,0,5433,5403,1,0,0,0,5433,5404,1,0,0,0,5433,5405,1,0,0,0,5433,5406,1,0,0,0,5433,5407,1,0,0,0,5433,5408,1,0,0,0,5433,5409,1,0,0,0,5433,5410,1,0,0,0,5433,5411,1,0,0,0,5433,5412,1,0,0,0,5433,5413,1,0,0,0,5433,5414,1,0,0,0,5433,5415,1,0,0,0,5433,5416,1,0,0,0,5433,5417,1,0,0,0,5433,5418,1,0,0,0,5433,5419,1,0,0,0,5433,5420,1,0,0,0,5433,5421,1,0,0,0,5433,5422,1,0,0,0,5433,5423,1,0,0,0,5433,5424,1,0,0,0,5433,5425,1,0,0,0,5433,5428,1,0,0,0,5433,5431,1,0,0,0,5434,467,1,0,0,0,5435,5452,5,1117,0,0,5436,5437,5,1117,0,0,5437,5438,5,1132,0,0,5438,5452,5,1117,0,0,5439,5440,3,612,306,0,5440,5441,5,1132,0,0,5441,5442,5,1117,0,0,5442,5452,1,0,0,0,5443,5444,3,612,306,0,5444,5445,5,1132,0,0,5445,5446,3,612,306,0,5446,5452,1,0,0,0,5447,5448,3,612,306,0,5448,5449,3,616,308,0,5449,5452,1,0,0,0,5450,5452,3,612,306,0,5451,5435,1,0,0,0,5451,5436,1,0,0,0,5451,5439,1,0,0,0,5451,5443,1,0,0,0,5451,5447,1,0,0,0,5451,5450,1,0,0,0,5452,469,1,0,0,0,5453,5454,3,592,296,0,5454,5455,5,175,0,0,5455,5456,3,590,295,0,5456,471,1,0,0,0,5457,5459,5,9,0,0,5458,5460,7,72,0,0,5459,5458,1,0,0,0,5459,5460,1,0,0,0,5460,5461,1,0,0,0,5461,5462,7,54,0,0,5462,5480,3,648,324,0,5463,5464,5,184,0,0,5464,5465,5,76,0,0,5465,5466,5,118,0,0,5466,5471,3,570,285,0,5467,5468,5,1135,0,0,5468,5470,3,570,285,0,5469,5467,1,0,0,0,5470,5473,1,0,0,0,5471,5469,1,0,0,0,5471,5472,1,0,0,0,5472,5478,1,0,0,0,5473,5471,1,0,0,0,5474,5475,5,192,0,0,5475,5476,3,618,309,0,5476,5477,5,18,0,0,5477,5479,1,0,0,0,5478,5474,1,0,0,0,5478,5479,1,0,0,0,5479,5481,1,0,0,0,5480,5463,1,0,0,0,5480,5481,1,0,0,0,5481,5493,1,0,0,0,5482,5483,5,51,0,0,5483,5484,5,76,0,0,5484,5485,5,118,0,0,5485,5490,3,570,285,0,5486,5487,5,1135,0,0,5487,5489,3,570,285,0,5488,5486,1,0,0,0,5489,5492,1,0,0,0,5490,5488,1,0,0,0,5490,5491,1,0,0,0,5491,5494,1,0,0,0,5492,5490,1,0,0,0,5493,5482,1,0,0,0,5493,5494,1,0,0,0,5494,473,1,0,0,0,5495,5496,5,26,0,0,5496,5497,5,172,0,0,5497,5501,3,648,324,0,5498,5500,3,482,241,0,5499,5498,1,0,0,0,5500,5503,1,0,0,0,5501,5499,1,0,0,0,5501,5502,1,0,0,0,5502,475,1,0,0,0,5503,5501,1,0,0,0,5504,5505,5,356,0,0,5505,5506,5,172,0,0,5506,5508,3,648,324,0,5507,5509,7,73,0,0,5508,5507,1,0,0,0,5508,5509,1,0,0,0,5509,477,1,0,0,0,5510,5512,5,119,0,0,5511,5513,7,72,0,0,5512,5511,1,0,0,0,5512,5513,1,0,0,0,5513,5514,1,0,0,0,5514,5515,7,54,0,0,5515,5516,3,648,324,0,5516,479,1,0,0,0,5517,5519,5,580,0,0,5518,5520,7,72,0,0,5519,5518,1,0,0,0,5519,5520,1,0,0,0,5520,5521,1,0,0,0,5521,5522,5,172,0,0,5522,5524,3,648,324,0,5523,5525,5,568,0,0,5524,5523,1,0,0,0,5524,5525,1,0,0,0,5525,5527,1,0,0,0,5526,5528,5,422,0,0,5527,5526,1,0,0,0,5527,5528,1,0,0,0,5528,5530,1,0,0,0,5529,5531,5,666,0,0,5530,5529,1,0,0,0,5530,5531,1,0,0,0,5531,481,1,0,0,0,5532,5533,5,65,0,0,5533,5540,5,664,0,0,5534,5540,5,568,0,0,5535,5540,5,425,0,0,5536,5540,5,504,0,0,5537,5540,5,422,0,0,5538,5540,5,354,0,0,5539,5532,1,0,0,0,5539,5534,1,0,0,0,5539,5535,1,0,0,0,5539,5536,1,0,0,0,5539,5537,1,0,0,0,5539,5538,1,0,0,0,5540,483,1,0,0,0,5541,5543,5,33,0,0,5542,5544,5,335,0,0,5543,5542,1,0,0,0,5543,5544,1,0,0,0,5544,5545,1,0,0,0,5545,5547,5,437,0,0,5546,5548,3,670,335,0,5547,5546,1,0,0,0,5547,5548,1,0,0,0,5548,5549,1,0,0,0,5549,5550,3,612,306,0,5550,5551,5,594,0,0,5551,5552,7,74,0,0,5552,5553,5,619,0,0,5553,5554,5,1148,0,0,5554,485,1,0,0,0,5555,5556,5,456,0,0,5556,5557,5,554,0,0,5557,5558,3,612,306,0,5558,5559,5,619,0,0,5559,5560,5,1148,0,0,5560,487,1,0,0,0,5561,5562,5,661,0,0,5562,5563,5,554,0,0,5563,5564,3,612,306,0,5564,489,1,0,0,0,5565,5566,5,153,0,0,5566,5567,3,494,247,0,5567,5570,7,75,0,0,5568,5571,3,716,358,0,5569,5571,5,118,0,0,5570,5568,1,0,0,0,5570,5569,1,0,0,0,5571,5581,1,0,0,0,5572,5573,5,1135,0,0,5573,5574,3,494,247,0,5574,5577,7,75,0,0,5575,5578,3,716,358,0,5576,5578,5,118,0,0,5577,5575,1,0,0,0,5577,5576,1,0,0,0,5578,5580,1,0,0,0,5579,5572,1,0,0,0,5580,5583,1,0,0,0,5581,5579,1,0,0,0,5581,5582,1,0,0,0,5582,5618,1,0,0,0,5583,5581,1,0,0,0,5584,5585,5,153,0,0,5585,5588,3,58,29,0,5586,5589,3,596,298,0,5587,5589,5,42,0,0,5588,5586,1,0,0,0,5588,5587,1,0,0,0,5589,5618,1,0,0,0,5590,5591,5,153,0,0,5591,5598,5,517,0,0,5592,5595,3,596,298,0,5593,5594,5,27,0,0,5594,5596,3,598,299,0,5595,5593,1,0,0,0,5595,5596,1,0,0,0,5596,5599,1,0,0,0,5597,5599,5,42,0,0,5598,5592,1,0,0,0,5598,5597,1,0,0,0,5599,5618,1,0,0,0,5600,5618,3,444,222,0,5601,5618,3,318,159,0,5602,5618,3,316,158,0,5603,5604,5,153,0,0,5604,5605,3,552,276,0,5605,5606,7,75,0,0,5606,5614,3,716,358,0,5607,5608,5,1135,0,0,5608,5609,3,552,276,0,5609,5610,7,75,0,0,5610,5611,3,716,358,0,5611,5613,1,0,0,0,5612,5607,1,0,0,0,5613,5616,1,0,0,0,5614,5612,1,0,0,0,5614,5615,1,0,0,0,5615,5618,1,0,0,0,5616,5614,1,0,0,0,5617,5565,1,0,0,0,5617,5584,1,0,0,0,5617,5590,1,0,0,0,5617,5600,1,0,0,0,5617,5601,1,0,0,0,5617,5602,1,0,0,0,5617,5603,1,0,0,0,5618,491,1,0,0,0,5619,5620,5,155,0,0,5620,5621,7,56,0,0,5621,5781,5,476,0,0,5622,5623,5,155,0,0,5623,5624,7,76,0,0,5624,5627,5,416,0,0,5625,5626,5,80,0,0,5626,5628,5,1148,0,0,5627,5625,1,0,0,0,5627,5628,1,0,0,0,5628,5631,1,0,0,0,5629,5630,5,68,0,0,5630,5632,3,618,309,0,5631,5629,1,0,0,0,5631,5632,1,0,0,0,5632,5640,1,0,0,0,5633,5637,5,99,0,0,5634,5635,3,618,309,0,5635,5636,5,1135,0,0,5636,5638,1,0,0,0,5637,5634,1,0,0,0,5637,5638,1,0,0,0,5638,5639,1,0,0,0,5639,5641,3,618,309,0,5640,5633,1,0,0,0,5640,5641,1,0,0,0,5641,5781,1,0,0,0,5642,5643,5,155,0,0,5643,5645,3,496,248,0,5644,5646,3,498,249,0,5645,5644,1,0,0,0,5645,5646,1,0,0,0,5646,5781,1,0,0,0,5647,5649,5,155,0,0,5648,5650,5,436,0,0,5649,5648,1,0,0,0,5649,5650,1,0,0,0,5650,5651,1,0,0,0,5651,5652,7,41,0,0,5652,5653,7,77,0,0,5653,5656,3,554,277,0,5654,5655,7,77,0,0,5655,5657,3,612,306,0,5656,5654,1,0,0,0,5656,5657,1,0,0,0,5657,5659,1,0,0,0,5658,5660,3,498,249,0,5659,5658,1,0,0,0,5659,5660,1,0,0,0,5660,5781,1,0,0,0,5661,5662,5,155,0,0,5662,5663,5,33,0,0,5663,5665,7,0,0,0,5664,5666,3,670,335,0,5665,5664,1,0,0,0,5665,5666,1,0,0,0,5666,5667,1,0,0,0,5667,5781,3,572,286,0,5668,5669,5,155,0,0,5669,5670,5,33,0,0,5670,5671,7,78,0,0,5671,5781,3,552,276,0,5672,5673,5,155,0,0,5673,5674,5,33,0,0,5674,5675,7,79,0,0,5675,5781,3,554,277,0,5676,5677,5,155,0,0,5677,5678,5,33,0,0,5678,5679,5,177,0,0,5679,5781,3,578,289,0,5680,5681,5,155,0,0,5681,5682,5,33,0,0,5682,5683,5,665,0,0,5683,5781,3,592,296,0,5684,5685,5,155,0,0,5685,5686,5,409,0,0,5686,5687,3,600,300,0,5687,5688,7,80,0,0,5688,5781,1,0,0,0,5689,5690,5,155,0,0,5690,5781,3,500,250,0,5691,5692,5,155,0,0,5692,5700,7,81,0,0,5693,5697,5,99,0,0,5694,5695,3,618,309,0,5695,5696,5,1135,0,0,5696,5698,1,0,0,0,5697,5694,1,0,0,0,5697,5698,1,0,0,0,5698,5699,1,0,0,0,5699,5701,3,618,309,0,5700,5693,1,0,0,0,5700,5701,1,0,0,0,5701,5781,1,0,0,0,5702,5703,5,155,0,0,5703,5704,5,290,0,0,5704,5705,5,1133,0,0,5705,5706,5,1117,0,0,5706,5707,5,1134,0,0,5707,5781,7,81,0,0,5708,5709,5,155,0,0,5709,5712,3,502,251,0,5710,5711,7,77,0,0,5711,5713,3,612,306,0,5712,5710,1,0,0,0,5712,5713,1,0,0,0,5713,5715,1,0,0,0,5714,5716,3,498,249,0,5715,5714,1,0,0,0,5715,5716,1,0,0,0,5716,5781,1,0,0,0,5717,5718,5,155,0,0,5718,5719,7,82,0,0,5719,5720,5,364,0,0,5720,5781,3,552,276,0,5721,5722,5,155,0,0,5722,5725,5,440,0,0,5723,5724,5,65,0,0,5724,5726,3,592,296,0,5725,5723,1,0,0,0,5725,5726,1,0,0,0,5726,5781,1,0,0,0,5727,5728,5,155,0,0,5728,5729,7,83,0,0,5729,5730,7,77,0,0,5730,5733,3,554,277,0,5731,5732,7,77,0,0,5732,5734,3,612,306,0,5733,5731,1,0,0,0,5733,5734,1,0,0,0,5734,5737,1,0,0,0,5735,5736,5,190,0,0,5736,5738,3,716,358,0,5737,5735,1,0,0,0,5737,5738,1,0,0,0,5738,5781,1,0,0,0,5739,5740,5,155,0,0,5740,5741,5,539,0,0,5741,5744,5,742,0,0,5742,5743,7,77,0,0,5743,5745,3,612,306,0,5744,5742,1,0,0,0,5744,5745,1,0,0,0,5745,5747,1,0,0,0,5746,5748,3,498,249,0,5747,5746,1,0,0,0,5747,5748,1,0,0,0,5748,5781,1,0,0,0,5749,5750,5,155,0,0,5750,5751,5,564,0,0,5751,5756,3,504,252,0,5752,5753,5,1135,0,0,5753,5755,3,504,252,0,5754,5752,1,0,0,0,5755,5758,1,0,0,0,5756,5754,1,0,0,0,5756,5757,1,0,0,0,5757,5762,1,0,0,0,5758,5756,1,0,0,0,5759,5760,5,65,0,0,5760,5761,5,567,0,0,5761,5763,3,618,309,0,5762,5759,1,0,0,0,5762,5763,1,0,0,0,5763,5764,1,0,0,0,5764,5768,5,99,0,0,5765,5766,3,618,309,0,5766,5767,5,1135,0,0,5767,5769,1,0,0,0,5768,5765,1,0,0,0,5768,5769,1,0,0,0,5769,5770,1,0,0,0,5770,5771,3,618,309,0,5771,5781,1,0,0,0,5772,5773,5,155,0,0,5773,5774,5,614,0,0,5774,5778,5,634,0,0,5775,5776,5,65,0,0,5776,5777,5,355,0,0,5777,5779,5,1148,0,0,5778,5775,1,0,0,0,5778,5779,1,0,0,0,5779,5781,1,0,0,0,5780,5619,1,0,0,0,5780,5622,1,0,0,0,5780,5642,1,0,0,0,5780,5647,1,0,0,0,5780,5661,1,0,0,0,5780,5668,1,0,0,0,5780,5672,1,0,0,0,5780,5676,1,0,0,0,5780,5680,1,0,0,0,5780,5684,1,0,0,0,5780,5689,1,0,0,0,5780,5691,1,0,0,0,5780,5702,1,0,0,0,5780,5708,1,0,0,0,5780,5717,1,0,0,0,5780,5721,1,0,0,0,5780,5727,1,0,0,0,5780,5739,1,0,0,0,5780,5749,1,0,0,0,5780,5772,1,0,0,0,5781,493,1,0,0,0,5782,5793,5,1159,0,0,5783,5793,5,1160,0,0,5784,5785,5,1137,0,0,5785,5787,5,1137,0,0,5786,5784,1,0,0,0,5786,5787,1,0,0,0,5787,5788,1,0,0,0,5788,5790,7,84,0,0,5789,5786,1,0,0,0,5789,5790,1,0,0,0,5790,5791,1,0,0,0,5791,5793,3,612,306,0,5792,5782,1,0,0,0,5792,5783,1,0,0,0,5792,5789,1,0,0,0,5793,495,1,0,0,0,5794,5795,5,25,0,0,5795,5808,5,153,0,0,5796,5808,5,844,0,0,5797,5808,5,40,0,0,5798,5808,5,151,0,0,5799,5800,5,437,0,0,5800,5808,5,634,0,0,5801,5802,5,131,0,0,5802,5808,5,634,0,0,5803,5805,7,55,0,0,5804,5803,1,0,0,0,5804,5805,1,0,0,0,5805,5806,1,0,0,0,5806,5808,7,85,0,0,5807,5794,1,0,0,0,5807,5796,1,0,0,0,5807,5797,1,0,0,0,5807,5798,1,0,0,0,5807,5799,1,0,0,0,5807,5801,1,0,0,0,5807,5804,1,0,0,0,5808,497,1,0,0,0,5809,5810,5,98,0,0,5810,5814,5,1148,0,0,5811,5812,5,190,0,0,5812,5814,3,716,358,0,5813,5809,1,0,0,0,5813,5811,1,0,0,0,5814,499,1,0,0,0,5815,5817,5,636,0,0,5816,5815,1,0,0,0,5816,5817,1,0,0,0,5817,5818,1,0,0,0,5818,5833,5,410,0,0,5819,5820,5,477,0,0,5820,5833,5,634,0,0,5821,5833,5,556,0,0,5822,5833,5,725,0,0,5823,5825,5,436,0,0,5824,5823,1,0,0,0,5824,5825,1,0,0,0,5825,5826,1,0,0,0,5826,5833,5,563,0,0,5827,5833,5,565,0,0,5828,5829,5,614,0,0,5829,5833,5,447,0,0,5830,5833,5,339,0,0,5831,5833,5,383,0,0,5832,5816,1,0,0,0,5832,5819,1,0,0,0,5832,5821,1,0,0,0,5832,5822,1,0,0,0,5832,5824,1,0,0,0,5832,5827,1,0,0,0,5832,5828,1,0,0,0,5832,5830,1,0,0,0,5832,5831,1,0,0,0,5833,501,1,0,0,0,5834,5843,5,416,0,0,5835,5836,5,172,0,0,5836,5843,5,634,0,0,5837,5839,5,436,0,0,5838,5837,1,0,0,0,5838,5839,1,0,0,0,5839,5840,1,0,0,0,5840,5843,5,742,0,0,5841,5843,5,655,0,0,5842,5834,1,0,0,0,5842,5835,1,0,0,0,5842,5838,1,0,0,0,5842,5841,1,0,0,0,5843,503,1,0,0,0,5844,5857,5,6,0,0,5845,5846,5,347,0,0,5846,5857,5,461,0,0,5847,5848,5,382,0,0,5848,5857,5,645,0,0,5849,5857,5,385,0,0,5850,5857,5,463,0,0,5851,5857,5,792,0,0,5852,5853,5,544,0,0,5853,5857,5,426,0,0,5854,5857,5,621,0,0,5855,5857,5,644,0,0,5856,5844,1,0,0,0,5856,5845,1,0,0,0,5856,5847,1,0,0,0,5856,5849,1,0,0,0,5856,5850,1,0,0,0,5856,5851,1,0,0,0,5856,5852,1,0,0,0,5856,5854,1,0,0,0,5856,5855,1,0,0,0,5857,505,1,0,0,0,5858,5859,5,345,0,0,5859,5860,5,1148,0,0,5860,507,1,0,0,0,5861,5862,5,351,0,0,5862,5863,5,81,0,0,5863,5868,3,520,260,0,5864,5865,5,1135,0,0,5865,5867,3,520,260,0,5866,5864,1,0,0,0,5867,5870,1,0,0,0,5868,5866,1,0,0,0,5868,5869,1,0,0,0,5869,5878,1,0,0,0,5870,5868,1,0,0,0,5871,5872,5,129,0,0,5872,5875,5,1133,0,0,5873,5876,3,644,322,0,5874,5876,5,6,0,0,5875,5873,1,0,0,0,5875,5874,1,0,0,0,5876,5877,1,0,0,0,5877,5879,5,1134,0,0,5878,5871,1,0,0,0,5878,5879,1,0,0,0,5879,5880,1,0,0,0,5880,5881,5,80,0,0,5881,5882,3,612,306,0,5882,509,1,0,0,0,5883,5885,5,432,0,0,5884,5886,7,72,0,0,5885,5884,1,0,0,0,5885,5886,1,0,0,0,5886,5887,1,0,0,0,5887,5892,3,522,261,0,5888,5889,5,1135,0,0,5889,5891,3,522,261,0,5890,5888,1,0,0,0,5891,5894,1,0,0,0,5892,5890,1,0,0,0,5892,5893,1,0,0,0,5893,511,1,0,0,0,5894,5892,1,0,0,0,5895,5897,5,93,0,0,5896,5898,7,86,0,0,5897,5896,1,0,0,0,5897,5898,1,0,0,0,5898,5899,1,0,0,0,5899,5900,3,716,358,0,5900,513,1,0,0,0,5901,5902,5,102,0,0,5902,5903,5,81,0,0,5903,5904,5,87,0,0,5904,5905,5,351,0,0,5905,5910,3,526,263,0,5906,5907,5,1135,0,0,5907,5909,3,526,263,0,5908,5906,1,0,0,0,5909,5912,1,0,0,0,5910,5908,1,0,0,0,5910,5911,1,0,0,0,5911,515,1,0,0,0,5912,5910,1,0,0,0,5913,5914,5,589,0,0,5914,5915,5,567,0,0,5915,5916,5,351,0,0,5916,517,1,0,0,0,5917,5918,5,739,0,0,5918,519,1,0,0,0,5919,5927,3,554,277,0,5920,5922,7,20,0,0,5921,5920,1,0,0,0,5921,5922,1,0,0,0,5922,5923,1,0,0,0,5923,5924,5,1133,0,0,5924,5925,3,580,290,0,5925,5926,5,1134,0,0,5926,5928,1,0,0,0,5927,5921,1,0,0,0,5927,5928,1,0,0,0,5928,521,1,0,0,0,5929,5948,5,394,0,0,5930,5948,5,447,0,0,5931,5933,7,87,0,0,5932,5931,1,0,0,0,5932,5933,1,0,0,0,5933,5934,1,0,0,0,5934,5948,5,476,0,0,5935,5948,5,540,0,0,5936,5948,5,725,0,0,5937,5938,5,567,0,0,5938,5948,5,351,0,0,5939,5948,5,634,0,0,5940,5948,5,667,0,0,5941,5945,5,742,0,0,5942,5943,5,192,0,0,5943,5944,5,134,0,0,5944,5946,5,103,0,0,5945,5942,1,0,0,0,5945,5946,1,0,0,0,5946,5948,1,0,0,0,5947,5929,1,0,0,0,5947,5930,1,0,0,0,5947,5932,1,0,0,0,5947,5935,1,0,0,0,5947,5936,1,0,0,0,5947,5937,1,0,0,0,5947,5939,1,0,0,0,5947,5940,1,0,0,0,5947,5941,1,0,0,0,5948,5962,1,0,0,0,5949,5950,5,574,0,0,5950,5952,5,476,0,0,5951,5953,3,356,178,0,5952,5951,1,0,0,0,5952,5953,1,0,0,0,5953,5962,1,0,0,0,5954,5956,7,54,0,0,5955,5957,3,648,324,0,5956,5955,1,0,0,0,5956,5957,1,0,0,0,5957,5959,1,0,0,0,5958,5960,3,524,262,0,5959,5958,1,0,0,0,5959,5960,1,0,0,0,5960,5962,1,0,0,0,5961,5947,1,0,0,0,5961,5949,1,0,0,0,5961,5954,1,0,0,0,5962,523,1,0,0,0,5963,5964,5,192,0,0,5964,5965,5,134,0,0,5965,5969,5,103,0,0,5966,5967,5,65,0,0,5967,5969,5,421,0,0,5968,5963,1,0,0,0,5968,5966,1,0,0,0,5969,525,1,0,0,0,5970,5978,3,554,277,0,5971,5972,5,129,0,0,5972,5975,5,1133,0,0,5973,5976,3,644,322,0,5974,5976,5,6,0,0,5975,5973,1,0,0,0,5975,5974,1,0,0,0,5976,5977,1,0,0,0,5977,5979,5,1134,0,0,5978,5971,1,0,0,0,5978,5979,1,0,0,0,5979,5987,1,0,0,0,5980,5982,7,20,0,0,5981,5980,1,0,0,0,5981,5982,1,0,0,0,5982,5983,1,0,0,0,5983,5984,5,1133,0,0,5984,5985,3,580,290,0,5985,5986,5,1134,0,0,5986,5988,1,0,0,0,5987,5981,1,0,0,0,5987,5988,1,0,0,0,5988,5991,1,0,0,0,5989,5990,5,78,0,0,5990,5992,5,470,0,0,5991,5989,1,0,0,0,5991,5992,1,0,0,0,5992,527,1,0,0,0,5993,5994,7,88,0,0,5994,5997,3,554,277,0,5995,5998,3,612,306,0,5996,5998,5,1148,0,0,5997,5995,1,0,0,0,5997,5996,1,0,0,0,5997,5998,1,0,0,0,5998,529,1,0,0,0,5999,6003,7,88,0,0,6e3,6001,7,89,0,0,6001,6002,5,1124,0,0,6002,6004,7,90,0,0,6003,6e3,1,0,0,0,6003,6004,1,0,0,0,6004,6005,1,0,0,0,6005,6006,3,550,275,0,6006,531,1,0,0,0,6007,6008,5,444,0,0,6008,6009,5,1148,0,0,6009,533,1,0,0,0,6010,6011,5,186,0,0,6011,6012,3,612,306,0,6012,535,1,0,0,0,6013,6021,5,156,0,0,6014,6016,5,162,0,0,6015,6017,5,669,0,0,6016,6015,1,0,0,0,6016,6017,1,0,0,0,6017,6018,1,0,0,0,6018,6022,3,622,311,0,6019,6022,5,1156,0,0,6020,6022,5,1157,0,0,6021,6014,1,0,0,0,6021,6019,1,0,0,0,6021,6020,1,0,0,0,6022,6032,1,0,0,0,6023,6024,5,153,0,0,6024,6029,3,540,270,0,6025,6026,5,1135,0,0,6026,6028,3,540,270,0,6027,6025,1,0,0,0,6028,6031,1,0,0,0,6029,6027,1,0,0,0,6029,6030,1,0,0,0,6030,6033,1,0,0,0,6031,6029,1,0,0,0,6032,6023,1,0,0,0,6032,6033,1,0,0,0,6033,537,1,0,0,0,6034,6042,5,143,0,0,6035,6037,5,162,0,0,6036,6038,5,669,0,0,6037,6036,1,0,0,0,6037,6038,1,0,0,0,6038,6039,1,0,0,0,6039,6043,3,622,311,0,6040,6043,5,1156,0,0,6041,6043,5,1157,0,0,6042,6035,1,0,0,0,6042,6040,1,0,0,0,6042,6041,1,0,0,0,6042,6043,1,0,0,0,6043,6053,1,0,0,0,6044,6045,5,153,0,0,6045,6050,3,540,270,0,6046,6047,5,1135,0,0,6047,6049,3,540,270,0,6048,6046,1,0,0,0,6049,6052,1,0,0,0,6050,6048,1,0,0,0,6050,6051,1,0,0,0,6051,6054,1,0,0,0,6052,6050,1,0,0,0,6053,6044,1,0,0,0,6053,6054,1,0,0,0,6054,539,1,0,0,0,6055,6056,7,91,0,0,6056,6061,5,1124,0,0,6057,6062,3,622,311,0,6058,6062,5,1149,0,0,6059,6062,3,594,297,0,6060,6062,3,614,307,0,6061,6057,1,0,0,0,6061,6058,1,0,0,0,6061,6059,1,0,0,0,6061,6060,1,0,0,0,6062,541,1,0,0,0,6063,6065,5,192,0,0,6064,6066,5,571,0,0,6065,6064,1,0,0,0,6065,6066,1,0,0,0,6066,6067,1,0,0,0,6067,6072,3,48,24,0,6068,6069,5,1135,0,0,6069,6071,3,48,24,0,6070,6068,1,0,0,0,6071,6074,1,0,0,0,6072,6070,1,0,0,0,6072,6073,1,0,0,0,6073,543,1,0,0,0,6074,6072,1,0,0,0,6075,6076,5,172,0,0,6076,6078,3,554,277,0,6077,6079,3,228,114,0,6078,6077,1,0,0,0,6078,6079,1,0,0,0,6079,6081,1,0,0,0,6080,6082,3,294,147,0,6081,6080,1,0,0,0,6081,6082,1,0,0,0,6082,545,1,0,0,0,6083,6085,5,71,0,0,6084,6086,7,92,0,0,6085,6084,1,0,0,0,6085,6086,1,0,0,0,6086,6087,1,0,0,0,6087,6119,5,48,0,0,6088,6089,3,494,247,0,6089,6090,5,1124,0,0,6090,6098,7,93,0,0,6091,6092,5,1135,0,0,6092,6093,3,494,247,0,6093,6094,5,1124,0,0,6094,6095,7,93,0,0,6095,6097,1,0,0,0,6096,6091,1,0,0,0,6097,6100,1,0,0,0,6098,6096,1,0,0,0,6098,6099,1,0,0,0,6099,6120,1,0,0,0,6100,6098,1,0,0,0,6101,6104,5,29,0,0,6102,6105,3,618,309,0,6103,6105,3,494,247,0,6104,6102,1,0,0,0,6104,6103,1,0,0,0,6105,6106,1,0,0,0,6106,6107,3,494,247,0,6107,6108,5,1124,0,0,6108,6116,3,548,274,0,6109,6110,5,1135,0,0,6110,6111,3,494,247,0,6111,6112,5,1124,0,0,6112,6113,3,548,274,0,6113,6115,1,0,0,0,6114,6109,1,0,0,0,6115,6118,1,0,0,0,6116,6114,1,0,0,0,6116,6117,1,0,0,0,6117,6120,1,0,0,0,6118,6116,1,0,0,0,6119,6088,1,0,0,0,6119,6101,1,0,0,0,6120,547,1,0,0,0,6121,6122,7,94,0,0,6122,549,1,0,0,0,6123,6129,3,198,99,0,6124,6129,3,184,92,0,6125,6129,3,190,95,0,6126,6129,3,196,98,0,6127,6129,3,200,100,0,6128,6123,1,0,0,0,6128,6124,1,0,0,0,6128,6125,1,0,0,0,6128,6126,1,0,0,0,6128,6127,1,0,0,0,6129,6134,1,0,0,0,6130,6131,5,65,0,0,6131,6132,5,376,0,0,6132,6134,3,612,306,0,6133,6128,1,0,0,0,6133,6130,1,0,0,0,6134,551,1,0,0,0,6135,6139,3,612,306,0,6136,6140,5,1155,0,0,6137,6138,5,1132,0,0,6138,6140,3,612,306,0,6139,6136,1,0,0,0,6139,6137,1,0,0,0,6139,6140,1,0,0,0,6140,553,1,0,0,0,6141,6142,3,552,276,0,6142,555,1,0,0,0,6143,6148,3,554,277,0,6144,6145,5,1135,0,0,6145,6147,3,554,277,0,6146,6144,1,0,0,0,6147,6150,1,0,0,0,6148,6146,1,0,0,0,6148,6149,1,0,0,0,6149,557,1,0,0,0,6150,6148,1,0,0,0,6151,6154,3,592,296,0,6152,6154,3,568,284,0,6153,6151,1,0,0,0,6153,6152,1,0,0,0,6154,559,1,0,0,0,6155,6160,3,558,279,0,6156,6157,5,1135,0,0,6157,6159,3,558,279,0,6158,6156,1,0,0,0,6159,6162,1,0,0,0,6160,6158,1,0,0,0,6160,6161,1,0,0,0,6161,561,1,0,0,0,6162,6160,1,0,0,0,6163,6168,3,564,282,0,6164,6165,5,1135,0,0,6165,6167,3,564,282,0,6166,6164,1,0,0,0,6167,6170,1,0,0,0,6168,6166,1,0,0,0,6168,6169,1,0,0,0,6169,563,1,0,0,0,6170,6168,1,0,0,0,6171,6172,3,612,306,0,6172,565,1,0,0,0,6173,6178,3,568,284,0,6174,6175,5,1135,0,0,6175,6177,3,568,284,0,6176,6174,1,0,0,0,6177,6180,1,0,0,0,6178,6176,1,0,0,0,6178,6179,1,0,0,0,6179,567,1,0,0,0,6180,6178,1,0,0,0,6181,6182,3,564,282,0,6182,569,1,0,0,0,6183,6188,3,612,306,0,6184,6186,3,616,308,0,6185,6187,3,616,308,0,6186,6185,1,0,0,0,6186,6187,1,0,0,0,6187,6189,1,0,0,0,6188,6184,1,0,0,0,6188,6189,1,0,0,0,6189,6198,1,0,0,0,6190,6192,9,0,0,0,6191,6190,1,0,0,0,6191,6192,1,0,0,0,6192,6193,1,0,0,0,6193,6195,3,616,308,0,6194,6196,3,616,308,0,6195,6194,1,0,0,0,6195,6196,1,0,0,0,6196,6198,1,0,0,0,6197,6183,1,0,0,0,6197,6191,1,0,0,0,6198,571,1,0,0,0,6199,6200,3,612,306,0,6200,573,1,0,0,0,6201,6202,3,612,306,0,6202,575,1,0,0,0,6203,6204,3,612,306,0,6204,577,1,0,0,0,6205,6206,3,552,276,0,6206,579,1,0,0,0,6207,6212,3,574,287,0,6208,6209,5,1135,0,0,6209,6211,3,574,287,0,6210,6208,1,0,0,0,6211,6214,1,0,0,0,6212,6210,1,0,0,0,6212,6213,1,0,0,0,6213,581,1,0,0,0,6214,6212,1,0,0,0,6215,6218,3,612,306,0,6216,6218,5,1148,0,0,6217,6215,1,0,0,0,6217,6216,1,0,0,0,6218,6223,1,0,0,0,6219,6220,5,1133,0,0,6220,6221,3,618,309,0,6221,6222,5,1134,0,0,6222,6224,1,0,0,0,6223,6219,1,0,0,0,6223,6224,1,0,0,0,6224,6227,1,0,0,0,6225,6227,3,716,358,0,6226,6217,1,0,0,0,6226,6225,1,0,0,0,6227,6229,1,0,0,0,6228,6230,7,48,0,0,6229,6228,1,0,0,0,6229,6230,1,0,0,0,6230,583,1,0,0,0,6231,6236,5,1148,0,0,6232,6236,5,1156,0,0,6233,6236,5,697,0,0,6234,6236,3,746,373,0,6235,6231,1,0,0,0,6235,6232,1,0,0,0,6235,6233,1,0,0,0,6235,6234,1,0,0,0,6236,585,1,0,0,0,6237,6238,7,95,0,0,6238,587,1,0,0,0,6239,6244,3,592,296,0,6240,6241,5,1135,0,0,6241,6243,3,592,296,0,6242,6240,1,0,0,0,6243,6246,1,0,0,0,6244,6242,1,0,0,0,6244,6245,1,0,0,0,6245,589,1,0,0,0,6246,6244,1,0,0,0,6247,6253,3,584,292,0,6248,6249,3,584,292,0,6249,6250,3,586,293,0,6250,6253,1,0,0,0,6251,6253,3,60,30,0,6252,6247,1,0,0,0,6252,6248,1,0,0,0,6252,6251,1,0,0,0,6253,591,1,0,0,0,6254,6255,3,590,295,0,6255,593,1,0,0,0,6256,6257,7,96,0,0,6257,595,1,0,0,0,6258,6263,5,226,0,0,6259,6263,3,736,368,0,6260,6263,5,1148,0,0,6261,6263,5,1145,0,0,6262,6258,1,0,0,0,6262,6259,1,0,0,0,6262,6260,1,0,0,0,6262,6261,1,0,0,0,6263,597,1,0,0,0,6264,6267,3,612,306,0,6265,6267,5,1148,0,0,6266,6264,1,0,0,0,6266,6265,1,0,0,0,6267,599,1,0,0,0,6268,6272,3,602,301,0,6269,6272,5,1156,0,0,6270,6272,5,1148,0,0,6271,6268,1,0,0,0,6271,6269,1,0,0,0,6271,6270,1,0,0,0,6272,601,1,0,0,0,6273,6274,7,97,0,0,6274,603,1,0,0,0,6275,6276,3,618,309,0,6276,6277,5,1121,0,0,6277,6278,3,618,309,0,6278,6279,5,1121,0,0,6279,6280,3,618,309,0,6280,6281,5,1121,0,0,6281,6282,3,618,309,0,6282,6283,5,1121,0,0,6283,6289,3,618,309,0,6284,6285,5,1144,0,0,6285,6286,3,618,309,0,6286,6287,5,1121,0,0,6287,6288,3,618,309,0,6288,6290,1,0,0,0,6289,6284,1,0,0,0,6290,6291,1,0,0,0,6291,6289,1,0,0,0,6291,6292,1,0,0,0,6292,605,1,0,0,0,6293,6300,3,608,304,0,6294,6295,5,1135,0,0,6295,6298,3,608,304,0,6296,6297,5,1135,0,0,6297,6299,3,618,309,0,6298,6296,1,0,0,0,6298,6299,1,0,0,0,6299,6301,1,0,0,0,6300,6294,1,0,0,0,6300,6301,1,0,0,0,6301,607,1,0,0,0,6302,6310,5,1148,0,0,6303,6310,5,1153,0,0,6304,6306,5,1150,0,0,6305,6304,1,0,0,0,6306,6307,1,0,0,0,6307,6305,1,0,0,0,6307,6308,1,0,0,0,6308,6310,1,0,0,0,6309,6302,1,0,0,0,6309,6303,1,0,0,0,6309,6305,1,0,0,0,6310,609,1,0,0,0,6311,6314,3,612,306,0,6312,6314,5,1148,0,0,6313,6311,1,0,0,0,6313,6312,1,0,0,0,6314,611,1,0,0,0,6315,6319,3,614,307,0,6316,6319,5,1145,0,0,6317,6319,5,1148,0,0,6318,6315,1,0,0,0,6318,6316,1,0,0,0,6318,6317,1,0,0,0,6319,613,1,0,0,0,6320,6330,5,1156,0,0,6321,6330,3,736,368,0,6322,6330,3,738,369,0,6323,6330,3,602,301,0,6324,6330,3,740,370,0,6325,6330,3,742,371,0,6326,6330,3,744,372,0,6327,6330,3,746,373,0,6328,6330,3,708,354,0,6329,6320,1,0,0,0,6329,6321,1,0,0,0,6329,6322,1,0,0,0,6329,6323,1,0,0,0,6329,6324,1,0,0,0,6329,6325,1,0,0,0,6329,6326,1,0,0,0,6329,6327,1,0,0,0,6329,6328,1,0,0,0,6330,615,1,0,0,0,6331,6335,5,1155,0,0,6332,6333,5,1132,0,0,6333,6335,3,612,306,0,6334,6331,1,0,0,0,6334,6332,1,0,0,0,6335,617,1,0,0,0,6336,6337,7,98,0,0,6337,619,1,0,0,0,6338,6341,5,1146,0,0,6339,6341,3,618,309,0,6340,6338,1,0,0,0,6340,6339,1,0,0,0,6341,621,1,0,0,0,6342,6344,5,1154,0,0,6343,6342,1,0,0,0,6343,6344,1,0,0,0,6344,6345,1,0,0,0,6345,6348,5,1148,0,0,6346,6348,5,1147,0,0,6347,6343,1,0,0,0,6347,6346,1,0,0,0,6348,6350,1,0,0,0,6349,6351,5,1148,0,0,6350,6349,1,0,0,0,6351,6352,1,0,0,0,6352,6350,1,0,0,0,6352,6353,1,0,0,0,6353,6366,1,0,0,0,6354,6356,5,1154,0,0,6355,6354,1,0,0,0,6355,6356,1,0,0,0,6356,6357,1,0,0,0,6357,6360,5,1148,0,0,6358,6360,5,1147,0,0,6359,6355,1,0,0,0,6359,6358,1,0,0,0,6360,6363,1,0,0,0,6361,6362,5,27,0,0,6362,6364,3,598,299,0,6363,6361,1,0,0,0,6363,6364,1,0,0,0,6364,6366,1,0,0,0,6365,6347,1,0,0,0,6365,6359,1,0,0,0,6366,623,1,0,0,0,6367,6368,7,99,0,0,6368,625,1,0,0,0,6369,6371,5,1154,0,0,6370,6369,1,0,0,0,6370,6371,1,0,0,0,6371,6372,1,0,0,0,6372,6373,5,1150,0,0,6373,627,1,0,0,0,6374,6376,5,114,0,0,6375,6374,1,0,0,0,6375,6376,1,0,0,0,6376,6377,1,0,0,0,6377,6378,7,100,0,0,6378,629,1,0,0,0,6379,6392,3,622,311,0,6380,6392,3,618,309,0,6381,6382,5,1121,0,0,6382,6392,3,618,309,0,6383,6392,3,626,313,0,6384,6392,3,624,312,0,6385,6392,5,1151,0,0,6386,6392,5,1153,0,0,6387,6389,5,114,0,0,6388,6387,1,0,0,0,6388,6389,1,0,0,0,6389,6390,1,0,0,0,6390,6392,7,100,0,0,6391,6379,1,0,0,0,6391,6380,1,0,0,0,6391,6381,1,0,0,0,6391,6383,1,0,0,0,6391,6384,1,0,0,0,6391,6385,1,0,0,0,6391,6386,1,0,0,0,6391,6388,1,0,0,0,6392,631,1,0,0,0,6393,6395,7,101,0,0,6394,6396,5,238,0,0,6395,6394,1,0,0,0,6395,6396,1,0,0,0,6396,6398,1,0,0,0,6397,6399,3,638,319,0,6398,6397,1,0,0,0,6398,6399,1,0,0,0,6399,6401,1,0,0,0,6400,6402,5,226,0,0,6401,6400,1,0,0,0,6401,6402,1,0,0,0,6402,6406,1,0,0,0,6403,6404,3,58,29,0,6404,6405,3,596,298,0,6405,6407,1,0,0,0,6406,6403,1,0,0,0,6406,6407,1,0,0,0,6407,6411,1,0,0,0,6408,6409,5,27,0,0,6409,6412,3,598,299,0,6410,6412,5,226,0,0,6411,6408,1,0,0,0,6411,6410,1,0,0,0,6411,6412,1,0,0,0,6412,6520,1,0,0,0,6413,6414,5,225,0,0,6414,6415,7,102,0,0,6415,6417,5,238,0,0,6416,6418,3,638,319,0,6417,6416,1,0,0,0,6417,6418,1,0,0,0,6418,6420,1,0,0,0,6419,6421,5,226,0,0,6420,6419,1,0,0,0,6420,6421,1,0,0,0,6421,6520,1,0,0,0,6422,6423,5,225,0,0,6423,6425,7,103,0,0,6424,6426,3,638,319,0,6425,6424,1,0,0,0,6425,6426,1,0,0,0,6426,6428,1,0,0,0,6427,6429,5,226,0,0,6428,6427,1,0,0,0,6428,6429,1,0,0,0,6429,6520,1,0,0,0,6430,6431,5,518,0,0,6431,6433,5,223,0,0,6432,6434,3,638,319,0,6433,6432,1,0,0,0,6433,6434,1,0,0,0,6434,6436,1,0,0,0,6435,6437,5,226,0,0,6436,6435,1,0,0,0,6436,6437,1,0,0,0,6437,6520,1,0,0,0,6438,6440,7,104,0,0,6439,6441,3,638,319,0,6440,6439,1,0,0,0,6440,6441,1,0,0,0,6441,6445,1,0,0,0,6442,6444,7,105,0,0,6443,6442,1,0,0,0,6444,6447,1,0,0,0,6445,6443,1,0,0,0,6445,6446,1,0,0,0,6446,6520,1,0,0,0,6447,6445,1,0,0,0,6448,6450,5,208,0,0,6449,6451,3,640,320,0,6450,6449,1,0,0,0,6450,6451,1,0,0,0,6451,6455,1,0,0,0,6452,6454,7,105,0,0,6453,6452,1,0,0,0,6454,6457,1,0,0,0,6455,6453,1,0,0,0,6455,6456,1,0,0,0,6456,6520,1,0,0,0,6457,6455,1,0,0,0,6458,6460,5,209,0,0,6459,6461,5,210,0,0,6460,6459,1,0,0,0,6460,6461,1,0,0,0,6461,6463,1,0,0,0,6462,6464,3,640,320,0,6463,6462,1,0,0,0,6463,6464,1,0,0,0,6464,6468,1,0,0,0,6465,6467,7,105,0,0,6466,6465,1,0,0,0,6467,6470,1,0,0,0,6468,6466,1,0,0,0,6468,6469,1,0,0,0,6469,6520,1,0,0,0,6470,6468,1,0,0,0,6471,6473,7,106,0,0,6472,6474,3,642,321,0,6473,6472,1,0,0,0,6473,6474,1,0,0,0,6474,6478,1,0,0,0,6475,6477,7,105,0,0,6476,6475,1,0,0,0,6477,6480,1,0,0,0,6478,6476,1,0,0,0,6478,6479,1,0,0,0,6479,6520,1,0,0,0,6480,6478,1,0,0,0,6481,6520,7,107,0,0,6482,6484,7,108,0,0,6483,6485,3,638,319,0,6484,6483,1,0,0,0,6484,6485,1,0,0,0,6485,6520,1,0,0,0,6486,6487,7,109,0,0,6487,6489,3,634,317,0,6488,6490,5,226,0,0,6489,6488,1,0,0,0,6489,6490,1,0,0,0,6490,6494,1,0,0,0,6491,6492,3,58,29,0,6492,6493,3,596,298,0,6493,6495,1,0,0,0,6494,6491,1,0,0,0,6494,6495,1,0,0,0,6495,6520,1,0,0,0,6496,6499,7,110,0,0,6497,6498,5,1012,0,0,6498,6500,3,618,309,0,6499,6497,1,0,0,0,6499,6500,1,0,0,0,6500,6520,1,0,0,0,6501,6503,5,231,0,0,6502,6504,5,223,0,0,6503,6502,1,0,0,0,6503,6504,1,0,0,0,6504,6506,1,0,0,0,6505,6507,5,226,0,0,6506,6505,1,0,0,0,6506,6507,1,0,0,0,6507,6511,1,0,0,0,6508,6509,3,58,29,0,6509,6510,3,596,298,0,6510,6512,1,0,0,0,6511,6508,1,0,0,0,6511,6512,1,0,0,0,6512,6515,1,0,0,0,6513,6514,5,27,0,0,6514,6516,3,598,299,0,6515,6513,1,0,0,0,6515,6516,1,0,0,0,6516,6520,1,0,0,0,6517,6518,5,231,0,0,6518,6520,5,227,0,0,6519,6393,1,0,0,0,6519,6413,1,0,0,0,6519,6422,1,0,0,0,6519,6430,1,0,0,0,6519,6438,1,0,0,0,6519,6448,1,0,0,0,6519,6458,1,0,0,0,6519,6471,1,0,0,0,6519,6481,1,0,0,0,6519,6482,1,0,0,0,6519,6486,1,0,0,0,6519,6496,1,0,0,0,6519,6501,1,0,0,0,6519,6517,1,0,0,0,6520,633,1,0,0,0,6521,6522,5,1133,0,0,6522,6527,5,1148,0,0,6523,6524,5,1135,0,0,6524,6526,5,1148,0,0,6525,6523,1,0,0,0,6526,6529,1,0,0,0,6527,6525,1,0,0,0,6527,6528,1,0,0,0,6528,6530,1,0,0,0,6529,6527,1,0,0,0,6530,6531,5,1134,0,0,6531,635,1,0,0,0,6532,6534,7,111,0,0,6533,6535,3,638,319,0,6534,6533,1,0,0,0,6534,6535,1,0,0,0,6535,6555,1,0,0,0,6536,6538,5,222,0,0,6537,6539,3,638,319,0,6538,6537,1,0,0,0,6538,6539,1,0,0,0,6539,6543,1,0,0,0,6540,6541,3,58,29,0,6541,6542,3,596,298,0,6542,6544,1,0,0,0,6543,6540,1,0,0,0,6543,6544,1,0,0,0,6544,6555,1,0,0,0,6545,6555,7,112,0,0,6546,6548,7,113,0,0,6547,6549,3,642,321,0,6548,6547,1,0,0,0,6548,6549,1,0,0,0,6549,6555,1,0,0,0,6550,6552,7,114,0,0,6551,6553,7,115,0,0,6552,6551,1,0,0,0,6552,6553,1,0,0,0,6553,6555,1,0,0,0,6554,6532,1,0,0,0,6554,6536,1,0,0,0,6554,6545,1,0,0,0,6554,6546,1,0,0,0,6554,6550,1,0,0,0,6555,6557,1,0,0,0,6556,6558,5,11,0,0,6557,6556,1,0,0,0,6557,6558,1,0,0,0,6558,637,1,0,0,0,6559,6560,5,1133,0,0,6560,6561,3,618,309,0,6561,6562,5,1134,0,0,6562,639,1,0,0,0,6563,6564,5,1133,0,0,6564,6565,3,618,309,0,6565,6566,5,1135,0,0,6566,6567,3,618,309,0,6567,6568,5,1134,0,0,6568,641,1,0,0,0,6569,6570,5,1133,0,0,6570,6573,3,618,309,0,6571,6572,5,1135,0,0,6572,6574,3,618,309,0,6573,6571,1,0,0,0,6573,6574,1,0,0,0,6574,6575,1,0,0,0,6575,6576,5,1134,0,0,6576,643,1,0,0,0,6577,6582,3,612,306,0,6578,6579,5,1135,0,0,6579,6581,3,612,306,0,6580,6578,1,0,0,0,6581,6584,1,0,0,0,6582,6580,1,0,0,0,6582,6583,1,0,0,0,6583,645,1,0,0,0,6584,6582,1,0,0,0,6585,6590,3,570,285,0,6586,6587,5,1135,0,0,6587,6589,3,570,285,0,6588,6586,1,0,0,0,6589,6592,1,0,0,0,6590,6588,1,0,0,0,6590,6591,1,0,0,0,6591,647,1,0,0,0,6592,6590,1,0,0,0,6593,6598,3,554,277,0,6594,6595,5,1135,0,0,6595,6597,3,554,277,0,6596,6594,1,0,0,0,6597,6600,1,0,0,0,6598,6596,1,0,0,0,6598,6599,1,0,0,0,6599,649,1,0,0,0,6600,6598,1,0,0,0,6601,6602,5,1133,0,0,6602,6607,3,582,291,0,6603,6604,5,1135,0,0,6604,6606,3,582,291,0,6605,6603,1,0,0,0,6606,6609,1,0,0,0,6607,6605,1,0,0,0,6607,6608,1,0,0,0,6608,6610,1,0,0,0,6609,6607,1,0,0,0,6610,6611,5,1134,0,0,6611,651,1,0,0,0,6612,6617,3,716,358,0,6613,6614,5,1135,0,0,6614,6616,3,716,358,0,6615,6613,1,0,0,0,6616,6619,1,0,0,0,6617,6615,1,0,0,0,6617,6618,1,0,0,0,6618,653,1,0,0,0,6619,6617,1,0,0,0,6620,6625,3,666,333,0,6621,6622,5,1135,0,0,6622,6624,3,666,333,0,6623,6621,1,0,0,0,6624,6627,1,0,0,0,6625,6623,1,0,0,0,6625,6626,1,0,0,0,6626,655,1,0,0,0,6627,6625,1,0,0,0,6628,6633,3,630,315,0,6629,6630,5,1135,0,0,6630,6632,3,630,315,0,6631,6629,1,0,0,0,6632,6635,1,0,0,0,6633,6631,1,0,0,0,6633,6634,1,0,0,0,6634,657,1,0,0,0,6635,6633,1,0,0,0,6636,6641,5,1148,0,0,6637,6638,5,1135,0,0,6638,6640,5,1148,0,0,6639,6637,1,0,0,0,6640,6643,1,0,0,0,6641,6639,1,0,0,0,6641,6642,1,0,0,0,6642,659,1,0,0,0,6643,6641,1,0,0,0,6644,6649,5,1159,0,0,6645,6646,5,1135,0,0,6646,6648,5,1159,0,0,6647,6645,1,0,0,0,6648,6651,1,0,0,0,6649,6647,1,0,0,0,6649,6650,1,0,0,0,6650,661,1,0,0,0,6651,6649,1,0,0,0,6652,6679,5,116,0,0,6653,6654,5,23,0,0,6654,6655,5,1133,0,0,6655,6656,3,716,358,0,6656,6657,5,12,0,0,6657,6658,3,636,318,0,6658,6659,5,1134,0,0,6659,6679,1,0,0,0,6660,6662,3,722,361,0,6661,6660,1,0,0,0,6661,6662,1,0,0,0,6662,6663,1,0,0,0,6663,6679,3,630,315,0,6664,6668,3,664,332,0,6665,6666,5,118,0,0,6666,6667,5,184,0,0,6667,6669,3,664,332,0,6668,6665,1,0,0,0,6668,6669,1,0,0,0,6669,6679,1,0,0,0,6670,6671,5,1133,0,0,6671,6672,3,716,358,0,6672,6673,5,1134,0,0,6673,6679,1,0,0,0,6674,6675,5,1133,0,0,6675,6676,3,552,276,0,6676,6677,5,1134,0,0,6677,6679,1,0,0,0,6678,6652,1,0,0,0,6678,6653,1,0,0,0,6678,6661,1,0,0,0,6678,6664,1,0,0,0,6678,6670,1,0,0,0,6678,6674,1,0,0,0,6679,663,1,0,0,0,6680,6686,7,116,0,0,6681,6683,5,1133,0,0,6682,6684,3,618,309,0,6683,6682,1,0,0,0,6683,6684,1,0,0,0,6684,6685,1,0,0,0,6685,6687,5,1134,0,0,6686,6681,1,0,0,0,6686,6687,1,0,0,0,6687,6695,1,0,0,0,6688,6689,5,323,0,0,6689,6691,5,1133,0,0,6690,6692,3,618,309,0,6691,6690,1,0,0,0,6691,6692,1,0,0,0,6692,6693,1,0,0,0,6693,6695,5,1134,0,0,6694,6680,1,0,0,0,6694,6688,1,0,0,0,6695,665,1,0,0,0,6696,6699,3,716,358,0,6697,6699,5,42,0,0,6698,6696,1,0,0,0,6698,6697,1,0,0,0,6699,667,1,0,0,0,6700,6701,5,77,0,0,6701,6702,5,60,0,0,6702,669,1,0,0,0,6703,6704,5,77,0,0,6704,6705,5,114,0,0,6705,6706,5,60,0,0,6706,671,1,0,0,0,6707,6708,5,123,0,0,6708,6709,5,141,0,0,6709,673,1,0,0,0,6710,6711,5,674,0,0,6711,6714,3,618,309,0,6712,6714,5,527,0,0,6713,6710,1,0,0,0,6713,6712,1,0,0,0,6714,675,1,0,0,0,6715,6734,3,678,339,0,6716,6734,3,686,343,0,6717,6734,3,688,344,0,6718,6719,3,708,354,0,6719,6721,5,1133,0,0,6720,6722,3,712,356,0,6721,6720,1,0,0,0,6721,6722,1,0,0,0,6722,6723,1,0,0,0,6723,6724,5,1134,0,0,6724,6734,1,0,0,0,6725,6726,3,552,276,0,6726,6728,5,1133,0,0,6727,6729,3,712,356,0,6728,6727,1,0,0,0,6728,6729,1,0,0,0,6729,6730,1,0,0,0,6730,6731,5,1134,0,0,6731,6734,1,0,0,0,6732,6734,3,710,355,0,6733,6715,1,0,0,0,6733,6716,1,0,0,0,6733,6717,1,0,0,0,6733,6718,1,0,0,0,6733,6725,1,0,0,0,6733,6732,1,0,0,0,6734,677,1,0,0,0,6735,6738,7,117,0,0,6736,6737,5,1133,0,0,6737,6739,5,1134,0,0,6738,6736,1,0,0,0,6738,6739,1,0,0,0,6739,6915,1,0,0,0,6740,6915,3,60,30,0,6741,6742,5,32,0,0,6742,6743,5,1133,0,0,6743,6744,3,716,358,0,6744,6745,5,1135,0,0,6745,6746,3,636,318,0,6746,6747,5,1134,0,0,6747,6915,1,0,0,0,6748,6749,5,32,0,0,6749,6750,5,1133,0,0,6750,6751,3,716,358,0,6751,6752,5,187,0,0,6752,6753,3,596,298,0,6753,6754,5,1134,0,0,6754,6915,1,0,0,0,6755,6756,5,23,0,0,6756,6757,5,1133,0,0,6757,6758,3,716,358,0,6758,6759,5,12,0,0,6759,6760,3,636,318,0,6760,6761,5,1134,0,0,6761,6915,1,0,0,0,6762,6763,5,188,0,0,6763,6764,5,1133,0,0,6764,6765,3,570,285,0,6765,6766,5,1134,0,0,6766,6915,1,0,0,0,6767,6768,5,22,0,0,6768,6770,3,716,358,0,6769,6771,3,680,340,0,6770,6769,1,0,0,0,6771,6772,1,0,0,0,6772,6770,1,0,0,0,6772,6773,1,0,0,0,6773,6776,1,0,0,0,6774,6775,5,53,0,0,6775,6777,3,714,357,0,6776,6774,1,0,0,0,6776,6777,1,0,0,0,6777,6778,1,0,0,0,6778,6779,5,407,0,0,6779,6915,1,0,0,0,6780,6782,5,22,0,0,6781,6783,3,680,340,0,6782,6781,1,0,0,0,6783,6784,1,0,0,0,6784,6782,1,0,0,0,6784,6785,1,0,0,0,6785,6788,1,0,0,0,6786,6787,5,53,0,0,6787,6789,3,714,357,0,6788,6786,1,0,0,0,6788,6789,1,0,0,0,6789,6790,1,0,0,0,6790,6791,5,407,0,0,6791,6915,1,0,0,0,6792,6793,5,222,0,0,6793,6794,5,1133,0,0,6794,6797,3,712,356,0,6795,6796,5,187,0,0,6796,6798,3,596,298,0,6797,6795,1,0,0,0,6797,6798,1,0,0,0,6798,6799,1,0,0,0,6799,6800,5,1134,0,0,6800,6915,1,0,0,0,6801,6802,5,324,0,0,6802,6805,5,1133,0,0,6803,6806,3,622,311,0,6804,6806,3,716,358,0,6805,6803,1,0,0,0,6805,6804,1,0,0,0,6806,6807,1,0,0,0,6807,6810,5,80,0,0,6808,6811,3,622,311,0,6809,6811,3,716,358,0,6810,6808,1,0,0,0,6810,6809,1,0,0,0,6811,6812,1,0,0,0,6812,6813,5,1134,0,0,6813,6915,1,0,0,0,6814,6815,7,118,0,0,6815,6818,5,1133,0,0,6816,6819,3,622,311,0,6817,6819,3,716,358,0,6818,6816,1,0,0,0,6818,6817,1,0,0,0,6819,6820,1,0,0,0,6820,6823,5,68,0,0,6821,6824,3,618,309,0,6822,6824,3,716,358,0,6823,6821,1,0,0,0,6823,6822,1,0,0,0,6824,6830,1,0,0,0,6825,6828,5,65,0,0,6826,6829,3,618,309,0,6827,6829,3,716,358,0,6828,6826,1,0,0,0,6828,6827,1,0,0,0,6829,6831,1,0,0,0,6830,6825,1,0,0,0,6830,6831,1,0,0,0,6831,6832,1,0,0,0,6832,6833,5,1134,0,0,6833,6915,1,0,0,0,6834,6835,5,328,0,0,6835,6836,5,1133,0,0,6836,6839,7,119,0,0,6837,6840,3,622,311,0,6838,6840,3,716,358,0,6839,6837,1,0,0,0,6839,6838,1,0,0,0,6839,6840,1,0,0,0,6840,6841,1,0,0,0,6841,6844,5,68,0,0,6842,6845,3,622,311,0,6843,6845,3,716,358,0,6844,6842,1,0,0,0,6844,6843,1,0,0,0,6845,6846,1,0,0,0,6846,6847,5,1134,0,0,6847,6915,1,0,0,0,6848,6849,5,328,0,0,6849,6852,5,1133,0,0,6850,6853,3,622,311,0,6851,6853,3,716,358,0,6852,6850,1,0,0,0,6852,6851,1,0,0,0,6853,6854,1,0,0,0,6854,6857,5,68,0,0,6855,6858,3,622,311,0,6856,6858,3,716,358,0,6857,6855,1,0,0,0,6857,6856,1,0,0,0,6858,6859,1,0,0,0,6859,6860,5,1134,0,0,6860,6915,1,0,0,0,6861,6862,5,1103,0,0,6862,6865,5,1133,0,0,6863,6866,3,622,311,0,6864,6866,3,716,358,0,6865,6863,1,0,0,0,6865,6864,1,0,0,0,6866,6873,1,0,0,0,6867,6868,5,12,0,0,6868,6869,7,120,0,0,6869,6870,5,1133,0,0,6870,6871,3,618,309,0,6871,6872,5,1134,0,0,6872,6874,1,0,0,0,6873,6867,1,0,0,0,6873,6874,1,0,0,0,6874,6876,1,0,0,0,6875,6877,3,682,341,0,6876,6875,1,0,0,0,6876,6877,1,0,0,0,6877,6878,1,0,0,0,6878,6879,5,1134,0,0,6879,6915,1,0,0,0,6880,6881,5,321,0,0,6881,6882,5,1133,0,0,6882,6883,3,70,35,0,6883,6886,5,68,0,0,6884,6887,3,622,311,0,6885,6887,3,716,358,0,6886,6884,1,0,0,0,6886,6885,1,0,0,0,6887,6888,1,0,0,0,6888,6889,5,1134,0,0,6889,6915,1,0,0,0,6890,6891,5,900,0,0,6891,6892,5,1133,0,0,6892,6893,7,121,0,0,6893,6894,5,1135,0,0,6894,6895,3,622,311,0,6895,6896,5,1134,0,0,6896,6915,1,0,0,0,6897,6898,5,282,0,0,6898,6899,5,1133,0,0,6899,6900,3,716,358,0,6900,6901,5,1135,0,0,6901,6904,3,716,358,0,6902,6903,5,593,0,0,6903,6905,3,636,318,0,6904,6902,1,0,0,0,6904,6905,1,0,0,0,6905,6907,1,0,0,0,6906,6908,3,266,133,0,6907,6906,1,0,0,0,6907,6908,1,0,0,0,6908,6910,1,0,0,0,6909,6911,3,268,134,0,6910,6909,1,0,0,0,6910,6911,1,0,0,0,6911,6912,1,0,0,0,6912,6913,5,1134,0,0,6913,6915,1,0,0,0,6914,6735,1,0,0,0,6914,6740,1,0,0,0,6914,6741,1,0,0,0,6914,6748,1,0,0,0,6914,6755,1,0,0,0,6914,6762,1,0,0,0,6914,6767,1,0,0,0,6914,6780,1,0,0,0,6914,6792,1,0,0,0,6914,6801,1,0,0,0,6914,6814,1,0,0,0,6914,6834,1,0,0,0,6914,6848,1,0,0,0,6914,6861,1,0,0,0,6914,6880,1,0,0,0,6914,6890,1,0,0,0,6914,6897,1,0,0,0,6915,679,1,0,0,0,6916,6917,5,189,0,0,6917,6918,3,714,357,0,6918,6919,5,174,0,0,6919,6920,3,714,357,0,6920,681,1,0,0,0,6921,6922,5,472,0,0,6922,6927,3,684,342,0,6923,6924,5,1135,0,0,6924,6926,3,684,342,0,6925,6923,1,0,0,0,6926,6929,1,0,0,0,6927,6925,1,0,0,0,6927,6928,1,0,0,0,6928,6936,1,0,0,0,6929,6927,1,0,0,0,6930,6931,5,472,0,0,6931,6932,3,618,309,0,6932,6933,5,1121,0,0,6933,6934,3,618,309,0,6934,6936,1,0,0,0,6935,6921,1,0,0,0,6935,6930,1,0,0,0,6936,683,1,0,0,0,6937,6939,3,618,309,0,6938,6940,7,122,0,0,6939,6938,1,0,0,0,6939,6940,1,0,0,0,6940,685,1,0,0,0,6941,6942,7,123,0,0,6942,6944,5,1133,0,0,6943,6945,7,44,0,0,6944,6943,1,0,0,0,6944,6945,1,0,0,0,6945,6946,1,0,0,0,6946,6947,3,714,357,0,6947,6949,5,1134,0,0,6948,6950,3,690,345,0,6949,6948,1,0,0,0,6949,6950,1,0,0,0,6950,7001,1,0,0,0,6951,6952,5,290,0,0,6952,6960,5,1133,0,0,6953,6961,5,1117,0,0,6954,6956,5,6,0,0,6955,6954,1,0,0,0,6955,6956,1,0,0,0,6956,6957,1,0,0,0,6957,6961,3,714,357,0,6958,6959,5,49,0,0,6959,6961,3,712,356,0,6960,6953,1,0,0,0,6960,6955,1,0,0,0,6960,6958,1,0,0,0,6961,6962,1,0,0,0,6962,6964,5,1134,0,0,6963,6965,3,690,345,0,6964,6963,1,0,0,0,6964,6965,1,0,0,0,6965,7001,1,0,0,0,6966,6967,7,124,0,0,6967,6969,5,1133,0,0,6968,6970,5,6,0,0,6969,6968,1,0,0,0,6969,6970,1,0,0,0,6970,6971,1,0,0,0,6971,6972,3,714,357,0,6972,6974,5,1134,0,0,6973,6975,3,690,345,0,6974,6973,1,0,0,0,6974,6975,1,0,0,0,6975,7001,1,0,0,0,6976,6977,5,294,0,0,6977,6979,5,1133,0,0,6978,6980,5,49,0,0,6979,6978,1,0,0,0,6979,6980,1,0,0,0,6980,6981,1,0,0,0,6981,6992,3,712,356,0,6982,6983,5,124,0,0,6983,6984,5,19,0,0,6984,6989,3,230,115,0,6985,6986,5,1135,0,0,6986,6988,3,230,115,0,6987,6985,1,0,0,0,6988,6991,1,0,0,0,6989,6987,1,0,0,0,6989,6990,1,0,0,0,6990,6993,1,0,0,0,6991,6989,1,0,0,0,6992,6982,1,0,0,0,6992,6993,1,0,0,0,6993,6996,1,0,0,0,6994,6995,5,154,0,0,6995,6997,5,1148,0,0,6996,6994,1,0,0,0,6996,6997,1,0,0,0,6997,6998,1,0,0,0,6998,6999,5,1134,0,0,6999,7001,1,0,0,0,7e3,6941,1,0,0,0,7e3,6951,1,0,0,0,7e3,6966,1,0,0,0,7e3,6976,1,0,0,0,7001,687,1,0,0,0,7002,7003,7,125,0,0,7003,7004,5,1133,0,0,7004,7007,3,716,358,0,7005,7006,5,1135,0,0,7006,7008,3,618,309,0,7007,7005,1,0,0,0,7007,7008,1,0,0,0,7008,7011,1,0,0,0,7009,7010,5,1135,0,0,7010,7012,3,618,309,0,7011,7009,1,0,0,0,7011,7012,1,0,0,0,7012,7013,1,0,0,0,7013,7014,5,1134,0,0,7014,7015,3,690,345,0,7015,7041,1,0,0,0,7016,7017,7,126,0,0,7017,7018,5,1133,0,0,7018,7019,3,716,358,0,7019,7020,5,1134,0,0,7020,7021,3,690,345,0,7021,7041,1,0,0,0,7022,7023,7,127,0,0,7023,7024,5,1133,0,0,7024,7025,5,1134,0,0,7025,7041,3,690,345,0,7026,7027,5,301,0,0,7027,7028,5,1133,0,0,7028,7029,3,716,358,0,7029,7030,5,1135,0,0,7030,7031,3,618,309,0,7031,7032,5,1134,0,0,7032,7033,3,690,345,0,7033,7041,1,0,0,0,7034,7035,5,300,0,0,7035,7036,5,1133,0,0,7036,7037,3,618,309,0,7037,7038,5,1134,0,0,7038,7039,3,690,345,0,7039,7041,1,0,0,0,7040,7002,1,0,0,0,7040,7016,1,0,0,0,7040,7022,1,0,0,0,7040,7026,1,0,0,0,7040,7034,1,0,0,0,7041,689,1,0,0,0,7042,7048,5,128,0,0,7043,7044,5,1133,0,0,7044,7045,3,692,346,0,7045,7046,5,1134,0,0,7046,7049,1,0,0,0,7047,7049,3,694,347,0,7048,7043,1,0,0,0,7048,7047,1,0,0,0,7049,691,1,0,0,0,7050,7052,3,694,347,0,7051,7050,1,0,0,0,7051,7052,1,0,0,0,7052,7054,1,0,0,0,7053,7055,3,706,353,0,7054,7053,1,0,0,0,7054,7055,1,0,0,0,7055,7057,1,0,0,0,7056,7058,3,228,114,0,7057,7056,1,0,0,0,7057,7058,1,0,0,0,7058,7060,1,0,0,0,7059,7061,3,696,348,0,7060,7059,1,0,0,0,7060,7061,1,0,0,0,7061,693,1,0,0,0,7062,7063,3,612,306,0,7063,695,1,0,0,0,7064,7065,3,698,349,0,7065,7066,3,700,350,0,7066,697,1,0,0,0,7067,7068,7,128,0,0,7068,699,1,0,0,0,7069,7072,3,704,352,0,7070,7072,3,702,351,0,7071,7069,1,0,0,0,7071,7070,1,0,0,0,7072,701,1,0,0,0,7073,7074,5,16,0,0,7074,7075,3,704,352,0,7075,7076,5,10,0,0,7076,7077,3,704,352,0,7077,703,1,0,0,0,7078,7079,5,35,0,0,7079,7086,5,600,0,0,7080,7081,5,657,0,0,7081,7086,7,129,0,0,7082,7083,3,716,358,0,7083,7084,7,129,0,0,7084,7086,1,0,0,0,7085,7078,1,0,0,0,7085,7080,1,0,0,0,7085,7082,1,0,0,0,7086,705,1,0,0,0,7087,7088,5,129,0,0,7088,7089,5,19,0,0,7089,7094,3,716,358,0,7090,7091,5,1135,0,0,7091,7093,3,716,358,0,7092,7090,1,0,0,0,7093,7096,1,0,0,0,7094,7092,1,0,0,0,7094,7095,1,0,0,0,7095,707,1,0,0,0,7096,7094,1,0,0,0,7097,7122,3,748,374,0,7098,7122,5,747,0,0,7099,7122,5,317,0,0,7100,7122,5,313,0,0,7101,7122,5,314,0,0,7102,7122,5,315,0,0,7103,7122,5,318,0,0,7104,7122,5,319,0,0,7105,7122,5,320,0,0,7106,7122,5,77,0,0,7107,7122,5,85,0,0,7108,7122,5,316,0,0,7109,7122,5,322,0,0,7110,7122,5,508,0,0,7111,7122,5,323,0,0,7112,7122,5,140,0,0,7113,7122,5,141,0,0,7114,7122,5,325,0,0,7115,7122,5,326,0,0,7116,7122,5,327,0,0,7117,7122,5,328,0,0,7118,7122,5,329,0,0,7119,7122,5,330,0,0,7120,7122,5,331,0,0,7121,7097,1,0,0,0,7121,7098,1,0,0,0,7121,7099,1,0,0,0,7121,7100,1,0,0,0,7121,7101,1,0,0,0,7121,7102,1,0,0,0,7121,7103,1,0,0,0,7121,7104,1,0,0,0,7121,7105,1,0,0,0,7121,7106,1,0,0,0,7121,7107,1,0,0,0,7121,7108,1,0,0,0,7121,7109,1,0,0,0,7121,7110,1,0,0,0,7121,7111,1,0,0,0,7121,7112,1,0,0,0,7121,7113,1,0,0,0,7121,7114,1,0,0,0,7121,7115,1,0,0,0,7121,7116,1,0,0,0,7121,7117,1,0,0,0,7121,7118,1,0,0,0,7121,7119,1,0,0,0,7121,7120,1,0,0,0,7122,709,1,0,0,0,7123,7124,7,130,0,0,7124,7125,5,1133,0,0,7125,7126,3,714,357,0,7126,7127,5,1134,0,0,7127,711,1,0,0,0,7128,7133,3,630,315,0,7129,7133,3,570,285,0,7130,7133,3,676,338,0,7131,7133,3,716,358,0,7132,7128,1,0,0,0,7132,7129,1,0,0,0,7132,7130,1,0,0,0,7132,7131,1,0,0,0,7133,7143,1,0,0,0,7134,7139,5,1135,0,0,7135,7140,3,630,315,0,7136,7140,3,570,285,0,7137,7140,3,676,338,0,7138,7140,3,716,358,0,7139,7135,1,0,0,0,7139,7136,1,0,0,0,7139,7137,1,0,0,0,7139,7138,1,0,0,0,7140,7142,1,0,0,0,7141,7134,1,0,0,0,7142,7145,1,0,0,0,7143,7141,1,0,0,0,7143,7144,1,0,0,0,7144,713,1,0,0,0,7145,7143,1,0,0,0,7146,7151,3,630,315,0,7147,7151,3,570,285,0,7148,7151,3,676,338,0,7149,7151,3,716,358,0,7150,7146,1,0,0,0,7150,7147,1,0,0,0,7150,7148,1,0,0,0,7150,7149,1,0,0,0,7151,715,1,0,0,0,7152,7153,6,358,-1,0,7153,7154,7,131,0,0,7154,7164,3,716,358,4,7155,7156,3,718,359,0,7156,7158,5,88,0,0,7157,7159,5,114,0,0,7158,7157,1,0,0,0,7158,7159,1,0,0,0,7159,7160,1,0,0,0,7160,7161,7,132,0,0,7161,7164,1,0,0,0,7162,7164,3,718,359,0,7163,7152,1,0,0,0,7163,7155,1,0,0,0,7163,7162,1,0,0,0,7164,7171,1,0,0,0,7165,7166,10,3,0,0,7166,7167,3,726,363,0,7167,7168,3,716,358,4,7168,7170,1,0,0,0,7169,7165,1,0,0,0,7170,7173,1,0,0,0,7171,7169,1,0,0,0,7171,7172,1,0,0,0,7172,717,1,0,0,0,7173,7171,1,0,0,0,7174,7175,6,359,-1,0,7175,7176,3,720,360,0,7176,7241,1,0,0,0,7177,7178,10,8,0,0,7178,7179,3,724,362,0,7179,7180,3,718,359,9,7180,7240,1,0,0,0,7181,7183,10,6,0,0,7182,7184,5,114,0,0,7183,7182,1,0,0,0,7183,7184,1,0,0,0,7184,7185,1,0,0,0,7185,7186,5,16,0,0,7186,7187,3,718,359,0,7187,7188,5,10,0,0,7188,7189,3,718,359,7,7189,7240,1,0,0,0,7190,7191,10,5,0,0,7191,7192,5,620,0,0,7192,7193,5,98,0,0,7193,7240,3,718,359,6,7194,7196,10,3,0,0,7195,7197,5,114,0,0,7196,7195,1,0,0,0,7196,7197,1,0,0,0,7197,7198,1,0,0,0,7198,7199,7,133,0,0,7199,7240,3,718,359,4,7200,7202,10,10,0,0,7201,7203,5,114,0,0,7202,7201,1,0,0,0,7202,7203,1,0,0,0,7203,7204,1,0,0,0,7204,7205,5,80,0,0,7205,7208,5,1133,0,0,7206,7209,3,198,99,0,7207,7209,3,652,326,0,7208,7206,1,0,0,0,7208,7207,1,0,0,0,7209,7210,1,0,0,0,7210,7211,5,1134,0,0,7211,7240,1,0,0,0,7212,7213,10,9,0,0,7213,7214,5,88,0,0,7214,7240,3,628,314,0,7215,7216,10,7,0,0,7216,7217,3,724,362,0,7217,7218,7,134,0,0,7218,7219,5,1133,0,0,7219,7220,3,198,99,0,7220,7221,5,1134,0,0,7221,7240,1,0,0,0,7222,7224,10,4,0,0,7223,7225,5,114,0,0,7224,7223,1,0,0,0,7224,7225,1,0,0,0,7225,7226,1,0,0,0,7226,7227,5,98,0,0,7227,7230,3,718,359,0,7228,7229,5,413,0,0,7229,7231,5,1148,0,0,7230,7228,1,0,0,0,7230,7231,1,0,0,0,7231,7240,1,0,0,0,7232,7233,10,2,0,0,7233,7234,5,505,0,0,7234,7235,5,533,0,0,7235,7236,5,1133,0,0,7236,7237,3,718,359,0,7237,7238,5,1134,0,0,7238,7240,1,0,0,0,7239,7177,1,0,0,0,7239,7181,1,0,0,0,7239,7190,1,0,0,0,7239,7194,1,0,0,0,7239,7200,1,0,0,0,7239,7212,1,0,0,0,7239,7215,1,0,0,0,7239,7222,1,0,0,0,7239,7232,1,0,0,0,7240,7243,1,0,0,0,7241,7239,1,0,0,0,7241,7242,1,0,0,0,7242,719,1,0,0,0,7243,7241,1,0,0,0,7244,7245,6,360,-1,0,7245,7293,3,630,315,0,7246,7293,3,570,285,0,7247,7293,3,676,338,0,7248,7293,3,594,297,0,7249,7250,3,722,361,0,7250,7251,3,720,360,12,7251,7293,1,0,0,0,7252,7253,5,226,0,0,7253,7293,3,720,360,11,7254,7255,5,1159,0,0,7255,7256,5,1108,0,0,7256,7293,3,720,360,10,7257,7258,5,1133,0,0,7258,7263,3,716,358,0,7259,7260,5,1135,0,0,7260,7262,3,716,358,0,7261,7259,1,0,0,0,7262,7265,1,0,0,0,7263,7261,1,0,0,0,7263,7264,1,0,0,0,7264,7266,1,0,0,0,7265,7263,1,0,0,0,7266,7267,5,1134,0,0,7267,7293,1,0,0,0,7268,7269,5,600,0,0,7269,7270,5,1133,0,0,7270,7273,3,716,358,0,7271,7272,5,1135,0,0,7272,7274,3,716,358,0,7273,7271,1,0,0,0,7274,7275,1,0,0,0,7275,7273,1,0,0,0,7275,7276,1,0,0,0,7276,7277,1,0,0,0,7277,7278,5,1134,0,0,7278,7293,1,0,0,0,7279,7280,5,60,0,0,7280,7281,5,1133,0,0,7281,7282,3,198,99,0,7282,7283,5,1134,0,0,7283,7293,1,0,0,0,7284,7285,5,1133,0,0,7285,7286,3,198,99,0,7286,7287,5,1134,0,0,7287,7293,1,0,0,0,7288,7289,5,86,0,0,7289,7290,3,716,358,0,7290,7291,3,70,35,0,7291,7293,1,0,0,0,7292,7244,1,0,0,0,7292,7246,1,0,0,0,7292,7247,1,0,0,0,7292,7248,1,0,0,0,7292,7249,1,0,0,0,7292,7252,1,0,0,0,7292,7254,1,0,0,0,7292,7257,1,0,0,0,7292,7268,1,0,0,0,7292,7279,1,0,0,0,7292,7284,1,0,0,0,7292,7288,1,0,0,0,7293,7315,1,0,0,0,7294,7295,10,4,0,0,7295,7296,3,728,364,0,7296,7297,3,720,360,5,7297,7314,1,0,0,0,7298,7299,10,3,0,0,7299,7300,3,730,365,0,7300,7301,3,720,360,4,7301,7314,1,0,0,0,7302,7303,10,2,0,0,7303,7304,3,732,366,0,7304,7305,3,720,360,3,7305,7314,1,0,0,0,7306,7307,10,1,0,0,7307,7308,3,734,367,0,7308,7309,3,720,360,2,7309,7314,1,0,0,0,7310,7311,10,14,0,0,7311,7312,5,27,0,0,7312,7314,3,598,299,0,7313,7294,1,0,0,0,7313,7298,1,0,0,0,7313,7302,1,0,0,0,7313,7306,1,0,0,0,7313,7310,1,0,0,0,7314,7317,1,0,0,0,7315,7313,1,0,0,0,7315,7316,1,0,0,0,7316,721,1,0,0,0,7317,7315,1,0,0,0,7318,7319,7,135,0,0,7319,723,1,0,0,0,7320,7335,5,1124,0,0,7321,7335,5,1125,0,0,7322,7335,5,1126,0,0,7323,7324,5,1126,0,0,7324,7335,5,1124,0,0,7325,7326,5,1125,0,0,7326,7335,5,1124,0,0,7327,7328,5,1126,0,0,7328,7335,5,1125,0,0,7329,7330,5,1127,0,0,7330,7335,5,1124,0,0,7331,7332,5,1126,0,0,7332,7333,5,1124,0,0,7333,7335,5,1125,0,0,7334,7320,1,0,0,0,7334,7321,1,0,0,0,7334,7322,1,0,0,0,7334,7323,1,0,0,0,7334,7325,1,0,0,0,7334,7327,1,0,0,0,7334,7329,1,0,0,0,7334,7331,1,0,0,0,7335,725,1,0,0,0,7336,7344,5,10,0,0,7337,7338,5,1130,0,0,7338,7344,5,1130,0,0,7339,7344,5,194,0,0,7340,7344,5,123,0,0,7341,7342,5,1129,0,0,7342,7344,5,1129,0,0,7343,7336,1,0,0,0,7343,7337,1,0,0,0,7343,7339,1,0,0,0,7343,7340,1,0,0,0,7343,7341,1,0,0,0,7344,727,1,0,0,0,7345,7346,5,1126,0,0,7346,7353,5,1126,0,0,7347,7348,5,1125,0,0,7348,7353,5,1125,0,0,7349,7353,5,1130,0,0,7350,7353,5,1131,0,0,7351,7353,5,1129,0,0,7352,7345,1,0,0,0,7352,7347,1,0,0,0,7352,7349,1,0,0,0,7352,7350,1,0,0,0,7352,7351,1,0,0,0,7353,729,1,0,0,0,7354,7355,7,136,0,0,7355,731,1,0,0,0,7356,7357,7,137,0,0,7357,733,1,0,0,0,7358,7359,5,1121,0,0,7359,7364,5,1125,0,0,7360,7361,5,1121,0,0,7361,7362,5,1125,0,0,7362,7364,5,1125,0,0,7363,7358,1,0,0,0,7363,7360,1,0,0,0,7364,735,1,0,0,0,7365,7366,7,138,0,0,7366,737,1,0,0,0,7367,7368,7,139,0,0,7368,739,1,0,0,0,7369,7370,7,140,0,0,7370,741,1,0,0,0,7371,7372,7,141,0,0,7372,743,1,0,0,0,7373,7374,7,142,0,0,7374,745,1,0,0,0,7375,7376,7,143,0,0,7376,747,1,0,0,0,7377,7378,7,144,0,0,7378,749,1,0,0,0,1057,751,757,763,772,812,827,838,855,860,872,899,908,913,919,924,928,937,940,943,947,954,957,962,970,975,980,983,985,997,1e3,1004,1007,1011,1014,1018,1021,1024,1028,1031,1035,1041,1047,1053,1060,1067,1070,1074,1079,1085,1094,1099,1104,1122,1129,1133,1143,1147,1151,1155,1159,1164,1167,1170,1173,1176,1182,1186,1192,1197,1200,1203,1205,1216,1220,1223,1237,1240,1244,1247,1251,1254,1258,1261,1265,1268,1271,1275,1278,1282,1288,1292,1304,1310,1321,1326,1334,1342,1347,1350,1355,1363,1368,1374,1379,1383,1385,1388,1392,1396,1399,1403,1407,1411,1417,1420,1427,1432,1438,1445,1451,1459,1462,1469,1472,1474,1480,1486,1503,1510,1517,1529,1534,1537,1540,1553,1566,1571,1587,1595,1605,1608,1611,1617,1621,1624,1635,1638,1643,1656,1663,1670,1672,1679,1683,1685,1690,1693,1699,1704,1706,1710,1713,1716,1722,1727,1729,1734,1741,1743,1750,1755,1759,1762,1770,1778,1780,1790,1794,1797,1803,1808,1811,1817,1820,1824,1827,1831,1836,1841,1846,1850,1854,1858,1862,1866,1870,1875,1880,1885,1891,1896,1901,1906,1911,1916,1922,1927,1932,1937,1942,1947,1952,1957,1964,1969,1974,1979,1983,1988,1996,2001,2007,2019,2026,2028,2036,2041,2044,2052,2058,2062,2075,2087,2089,2092,2100,2106,2112,2125,2132,2141,2146,2157,2166,2171,2183,2190,2199,2204,2216,2223,2232,2237,2244,2253,2258,2260,2265,2273,2282,2286,2289,2293,2298,2304,2310,2315,2320,2325,2330,2333,2341,2351,2355,2362,2367,2370,2375,2378,2382,2386,2394,2413,2416,2419,2423,2433,2446,2453,2456,2461,2468,2471,2474,2485,2488,2492,2500,2503,2508,2516,2522,2526,2530,2535,2540,2547,2551,2562,2570,2573,2579,2585,2587,2592,2595,2601,2607,2609,2613,2616,2619,2625,2631,2634,2640,2646,2648,2653,2661,2663,2672,2675,2678,2683,2685,2694,2697,2700,2705,2707,2716,2721,2729,2733,2741,2751,2756,2763,2767,2771,2790,2800,2806,2823,2827,2837,2842,2845,2854,2865,2873,2879,2889,2901,2908,2915,2930,2943,2949,2955,2961,2967,2973,2979,2984,2991,2998,3005,3010,3013,3015,3029,3036,3043,3049,3053,3057,3064,3067,3072,3079,3086,3090,3095,3105,3112,3121,3130,3139,3142,3146,3155,3159,3162,3165,3171,3174,3178,3181,3185,3188,3196,3199,3210,3213,3218,3221,3226,3236,3241,3247,3249,3255,3257,3263,3271,3276,3284,3287,3292,3295,3300,3308,3316,3322,3330,3335,3343,3346,3350,3353,3361,3367,3376,3379,3383,3387,3391,3396,3400,3404,3406,3409,3412,3415,3421,3425,3428,3431,3434,3437,3444,3446,3450,3455,3461,3466,3473,3479,3484,3487,3493,3497,3505,3509,3512,3515,3520,3523,3530,3534,3537,3541,3545,3548,3551,3556,3562,3566,3576,3582,3586,3592,3596,3602,3605,3617,3621,3625,3633,3637,3645,3648,3652,3655,3663,3668,3671,3674,3678,3681,3690,3695,3704,3709,3716,3723,3731,3737,3745,3748,3751,3758,3761,3768,3776,3782,3793,3796,3800,3806,3815,3820,3824,3830,3836,3838,3842,3851,3861,3871,3877,3882,3886,3889,3892,3895,3898,3904,3910,3913,3916,3919,3922,3925,3927,3933,3939,3942,3945,3948,3951,3954,3958,3964,3968,3976,3980,3983,3985,3998,4001,4008,4018,4021,4026,4028,4032,4040,4046,4055,4068,4072,4078,4082,4092,4096,4100,4104,4106,4114,4126,4132,4134,4140,4142,4144,4150,4158,4166,4170,4174,4183,4188,4208,4213,4219,4226,4231,4240,4243,4247,4251,4255,4258,4261,4264,4268,4272,4275,4278,4281,4288,4292,4307,4311,4323,4331,4341,4345,4348,4354,4357,4360,4369,4378,4388,4392,4402,4412,4420,4423,4432,4435,4439,4444,4448,4457,4460,4491,4494,4497,4553,4558,4586,4600,4607,4611,4617,4625,4627,4638,4648,4655,4661,4669,4674,4682,4690,4698,4706,4712,4717,4722,4727,4733,4735,4746,4751,4758,4760,4774,4780,4785,4790,4796,4803,4811,4819,4824,4830,4833,4841,4848,4857,4860,4877,4885,4893,4897,4904,4910,4918,4927,4933,4940,4945,4948,4950,4956,4958,4962,4964,4971,4976,4983,4991,4997,5003,5008,5011,5013,5019,5021,5025,5027,5034,5036,5041,5051,5056,5065,5070,5073,5075,5081,5083,5086,5094,5103,5105,5112,5115,5127,5133,5142,5151,5156,5165,5178,5181,5193,5200,5205,5215,5243,5247,5252,5259,5262,5268,5278,5288,5298,5304,5313,5319,5326,5328,5338,5342,5346,5356,5361,5433,5451,5459,5471,5478,5480,5490,5493,5501,5508,5512,5519,5524,5527,5530,5539,5543,5547,5570,5577,5581,5588,5595,5598,5614,5617,5627,5631,5637,5640,5645,5649,5656,5659,5665,5697,5700,5712,5715,5725,5733,5737,5744,5747,5756,5762,5768,5778,5780,5786,5789,5792,5804,5807,5813,5816,5824,5832,5838,5842,5856,5868,5875,5878,5885,5892,5897,5910,5921,5927,5932,5945,5947,5952,5956,5959,5961,5968,5975,5978,5981,5987,5991,5997,6003,6016,6021,6029,6032,6037,6042,6050,6053,6061,6065,6072,6078,6081,6085,6098,6104,6116,6119,6128,6133,6139,6148,6153,6160,6168,6178,6186,6188,6191,6195,6197,6212,6217,6223,6226,6229,6235,6244,6252,6262,6266,6271,6291,6298,6300,6307,6309,6313,6318,6329,6334,6340,6343,6347,6352,6355,6359,6363,6365,6370,6375,6388,6391,6395,6398,6401,6406,6411,6417,6420,6425,6428,6433,6436,6440,6445,6450,6455,6460,6463,6468,6473,6478,6484,6489,6494,6499,6503,6506,6511,6515,6519,6527,6534,6538,6543,6548,6552,6554,6557,6573,6582,6590,6598,6607,6617,6625,6633,6641,6649,6661,6668,6678,6683,6686,6691,6694,6698,6713,6721,6728,6733,6738,6772,6776,6784,6788,6797,6805,6810,6818,6823,6828,6830,6839,6844,6852,6857,6865,6873,6876,6886,6904,6907,6910,6914,6927,6935,6939,6944,6949,6955,6960,6964,6969,6974,6979,6989,6992,6996,7e3,7007,7011,7040,7048,7051,7054,7057,7060,7071,7085,7094,7121,7132,7139,7143,7150,7158,7163,7171,7183,7196,7202,7208,7224,7230,7239,7241,7263,7275,7292,7313,7315,7334,7343,7352,7363]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},tI=class extends p{constructor(t,e){super(t,e)}EOF(){return this.getToken($O.EOF,0)}statements(){return this.getRuleContext(0,eI)}get ruleIndex(){return $O.RULE_root}accept(t){return t.visitRoot?t.visitRoot(this):t.visitChildren(this)}},eI=class t extends p{constructor(t,e){super(t,e)}statement(){return this.getRuleContext(0,sI)}SEMI(){return this.getToken($O.SEMI,0)}statements(){return this.getRuleContext(0,t)}get ruleIndex(){return $O.RULE_statements}accept(t){return t.visitStatements?t.visitStatements(this):t.visitChildren(this)}},sI=class extends p{constructor(t,e){super(t,e)}ddlStatement(){return this.getRuleContext(0,aI)}dmlStatement(){return this.getRuleContext(0,iI)}transactionStatement(){return this.getRuleContext(0,rI)}replicationStatement(){return this.getRuleContext(0,cI)}preparedStatement(){return this.getRuleContext(0,nI)}administrationStatement(){return this.getRuleContext(0,EI)}utilityStatement(){return this.getRuleContext(0,TI)}get ruleIndex(){return $O.RULE_statement}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},aI=class extends p{constructor(t,e){super(t,e)}createDatabase(){return this.getRuleContext(0,oI)}createEvent(){return this.getRuleContext(0,RI)}createIndex(){return this.getRuleContext(0,AI)}createLogfileGroup(){return this.getRuleContext(0,SI)}createProcedure(){return this.getRuleContext(0,lI)}createFunction(){return this.getRuleContext(0,OI)}createServer(){return this.getRuleContext(0,uI)}createTable(){return this.getRuleContext(0,NI)}createTablespaceInnodb(){return this.getRuleContext(0,PI)}createTablespaceNdb(){return this.getRuleContext(0,MI)}createTrigger(){return this.getRuleContext(0,dI)}createView(){return this.getRuleContext(0,gI)}createRole(){return this.getRuleContext(0,II)}alterDatabase(){return this.getRuleContext(0,wN)}alterEvent(){return this.getRuleContext(0,VN)}alterFunction(){return this.getRuleContext(0,XN)}alterInstance(){return this.getRuleContext(0,KN)}alterLogfileGroup(){return this.getRuleContext(0,QN)}alterProcedure(){return this.getRuleContext(0,JN)}alterServer(){return this.getRuleContext(0,ZN)}alterTable(){return this.getRuleContext(0,qN)}alterTablespace(){return this.getRuleContext(0,jN)}alterView(){return this.getRuleContext(0,zN)}dropDatabase(){return this.getRuleContext(0,zL)}dropEvent(){return this.getRuleContext(0,$L)}dropIndex(){return this.getRuleContext(0,tC)}dropLogfileGroup(){return this.getRuleContext(0,eC)}dropProcedure(){return this.getRuleContext(0,sC)}dropFunction(){return this.getRuleContext(0,aC)}dropServer(){return this.getRuleContext(0,iC)}dropTable(){return this.getRuleContext(0,rC)}dropTablespace(){return this.getRuleContext(0,cC)}dropTrigger(){return this.getRuleContext(0,nC)}dropView(){return this.getRuleContext(0,hC)}dropRole(){return this.getRuleContext(0,EC)}setRole(){return this.getRuleContext(0,TC)}renameTable(){return this.getRuleContext(0,oC)}truncateTable(){return this.getRuleContext(0,AC)}get ruleIndex(){return $O.RULE_ddlStatement}accept(t){return t.visitDdlStatement?t.visitDdlStatement(this):t.visitChildren(this)}},iI=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_C)}insertStatement(){return this.getRuleContext(0,uC)}updateStatement(){return this.getRuleContext(0,DC)}deleteStatement(){return this.getRuleContext(0,lC)}replaceStatement(){return this.getRuleContext(0,CC)}callStatement(){return this.getRuleContext(0,SC)}loadDataStatement(){return this.getRuleContext(0,NC)}loadXmlStatement(){return this.getRuleContext(0,LC)}doStatement(){return this.getRuleContext(0,OC)}handlerStatement(){return this.getRuleContext(0,IC)}valuesStatement(){return this.getRuleContext(0,pC)}withStatement(){return this.getRuleContext(0,dU)}tableStatement(){return this.getRuleContext(0,UU)}get ruleIndex(){return $O.RULE_dmlStatement}accept(t){return t.visitDmlStatement?t.visitDmlStatement(this):t.visitChildren(this)}},rI=class extends p{constructor(t,e){super(t,e)}startTransaction(){return this.getRuleContext(0,Y_)}beginWork(){return this.getRuleContext(0,w_)}commitWork(){return this.getRuleContext(0,b_)}rollbackWork(){return this.getRuleContext(0,W_)}savepointStatement(){return this.getRuleContext(0,V_)}rollbackStatement(){return this.getRuleContext(0,X_)}releaseStatement(){return this.getRuleContext(0,K_)}lockTables(){return this.getRuleContext(0,Q_)}unlockTables(){return this.getRuleContext(0,J_)}get ruleIndex(){return $O.RULE_transactionStatement}accept(t){return t.visitTransactionStatement?t.visitTransactionStatement(this):t.visitChildren(this)}},cI=class extends p{constructor(t,e){super(t,e)}changeMaster(){return this.getRuleContext(0,sP)}changeReplicationFilter(){return this.getRuleContext(0,aP)}purgeBinaryLogs(){return this.getRuleContext(0,iP)}resetMaster(){return this.getRuleContext(0,rP)}resetSlave(){return this.getRuleContext(0,cP)}startSlave(){return this.getRuleContext(0,nP)}stopSlave(){return this.getRuleContext(0,hP)}startGroupReplication(){return this.getRuleContext(0,EP)}stopGroupReplication(){return this.getRuleContext(0,TP)}xaStartTransaction(){return this.getRuleContext(0,bP)}xaEndTransaction(){return this.getRuleContext(0,WP)}xaPrepareStatement(){return this.getRuleContext(0,VP)}xaCommitWork(){return this.getRuleContext(0,XP)}xaRollbackWork(){return this.getRuleContext(0,KP)}xaRecoverWork(){return this.getRuleContext(0,QP)}get ruleIndex(){return $O.RULE_replicationStatement}accept(t){return t.visitReplicationStatement?t.visitReplicationStatement(this):t.visitChildren(this)}},nI=class extends p{constructor(t,e){super(t,e)}prepareStatement(){return this.getRuleContext(0,JP)}executeStatement(){return this.getRuleContext(0,ZP)}deallocatePrepare(){return this.getRuleContext(0,qP)}get ruleIndex(){return $O.RULE_preparedStatement}accept(t){return t.visitPreparedStatement?t.visitPreparedStatement(this):t.visitChildren(this)}},hI=class extends p{constructor(t,e){super(t,e)}blockStatement(){return this.getRuleContext(0,zP)}caseStatement(){return this.getRuleContext(0,$P)}ifStatement(){return this.getRuleContext(0,tM)}leaveStatement(){return this.getRuleContext(0,sM)}loopStatement(){return this.getRuleContext(0,aM)}repeatStatement(){return this.getRuleContext(0,iM)}whileStatement(){return this.getRuleContext(0,cM)}iterateStatement(){return this.getRuleContext(0,eM)}returnStatement(){return this.getRuleContext(0,rM)}cursorStatement(){return this.getRuleContext(0,nM)}get ruleIndex(){return $O.RULE_compoundStatement}accept(t){return t.visitCompoundStatement?t.visitCompoundStatement(this):t.visitChildren(this)}},EI=class extends p{constructor(t,e){super(t,e)}alterUser(){return this.getRuleContext(0,dM)}createUser(){return this.getRuleContext(0,DM)}dropUser(){return this.getRuleContext(0,xM)}grantStatement(){return this.getRuleContext(0,kM)}grantProxy(){return this.getRuleContext(0,GM)}renameUser(){return this.getRuleContext(0,FM)}revokeStatement(){return this.getRuleContext(0,vM)}revokeProxy(){return this.getRuleContext(0,YM)}analyzeTable(){return this.getRuleContext(0,Sd)}checkTable(){return this.getRuleContext(0,ld)}checksumTable(){return this.getRuleContext(0,Od)}optimizeTable(){return this.getRuleContext(0,Id)}repairTable(){return this.getRuleContext(0,ud)}createUdfunction(){return this.getRuleContext(0,Ld)}installPlugin(){return this.getRuleContext(0,Cd)}uninstallPlugin(){return this.getRuleContext(0,_d)}setStatement(){return this.getRuleContext(0,Pd)}showStatement(){return this.getRuleContext(0,xd)}binlogStatement(){return this.getRuleContext(0,iU)}cacheIndexStatement(){return this.getRuleContext(0,rU)}flushStatement(){return this.getRuleContext(0,cU)}killStatement(){return this.getRuleContext(0,nU)}loadIndexIntoCache(){return this.getRuleContext(0,hU)}resetStatement(){return this.getRuleContext(0,EU)}shutdownStatement(){return this.getRuleContext(0,TU)}get ruleIndex(){return $O.RULE_administrationStatement}accept(t){return t.visitAdministrationStatement?t.visitAdministrationStatement(this):t.visitChildren(this)}},TI=class extends p{constructor(t,e){super(t,e)}simpleDescribeStatement(){return this.getRuleContext(0,uU)}fullDescribeStatement(){return this.getRuleContext(0,NU)}helpStatement(){return this.getRuleContext(0,LU)}useStatement(){return this.getRuleContext(0,CU)}signalStatement(){return this.getRuleContext(0,_U)}resignalStatement(){return this.getRuleContext(0,PU)}diagnosticsStatement(){return this.getRuleContext(0,mU)}get ruleIndex(){return $O.RULE_utilityStatement}accept(t){return t.visitUtilityStatement?t.visitUtilityStatement(this):t.visitChildren(this)}},oI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}uid(){return this.getRuleContext(0,hm)}DATABASE(){return this.getToken($O.DATABASE,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}ifNotExists(){return this.getRuleContext(0,Km)}createDatabaseOption(t){return void 0===t?this.getRuleContexts(xI):this.getRuleContext(t,xI)}get ruleIndex(){return $O.RULE_createDatabase}accept(t){return t.visitCreateDatabase?t.visitCreateDatabase(this):t.visitChildren(this)}},RI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}EVENT(){return this.getToken($O.EVENT,0)}fullId(){return this.getRuleContext(0,kU)}ON(t){return void 0===t?this.getTokens($O.ON):this.getToken($O.ON,t)}SCHEDULE(){return this.getToken($O.SCHEDULE,0)}scheduleExpression(){return this.getRuleContext(0,FI)}DO(){return this.getToken($O.DO,0)}routineBody(){return this.getRuleContext(0,jP)}ownerStatement(){return this.getRuleContext(0,GI)}ifNotExists(){return this.getRuleContext(0,Km)}COMPLETION(){return this.getToken($O.COMPLETION,0)}PRESERVE(){return this.getToken($O.PRESERVE,0)}enableType(){return this.getRuleContext(0,wI)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}NOT(){return this.getToken($O.NOT,0)}get ruleIndex(){return $O.RULE_createEvent}accept(t){return t.visitCreateEvent?t.visitCreateEvent(this):t.visitChildren(this)}},AI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}INDEX(){return this.getToken($O.INDEX,0)}uid(){return this.getRuleContext(0,hm)}ON(){return this.getToken($O.ON,0)}tableName(){return this.getRuleContext(0,HU)}indexColumnNames(){return this.getRuleContext(0,vm)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}ALGORITHM(t){return void 0===t?this.getTokens($O.ALGORITHM):this.getToken($O.ALGORITHM,t)}LOCK(t){return void 0===t?this.getTokens($O.LOCK):this.getToken($O.LOCK,t)}ONLINE(){return this.getToken($O.ONLINE,0)}OFFLINE(){return this.getToken($O.OFFLINE,0)}UNIQUE(){return this.getToken($O.UNIQUE,0)}FULLTEXT(){return this.getToken($O.FULLTEXT,0)}SPATIAL(){return this.getToken($O.SPATIAL,0)}DEFAULT(t){return void 0===t?this.getTokens($O.DEFAULT):this.getToken($O.DEFAULT,t)}INPLACE(t){return void 0===t?this.getTokens($O.INPLACE):this.getToken($O.INPLACE,t)}COPY(t){return void 0===t?this.getTokens($O.COPY):this.getToken($O.COPY,t)}NONE(t){return void 0===t?this.getTokens($O.NONE):this.getToken($O.NONE,t)}SHARED(t){return void 0===t?this.getTokens($O.SHARED):this.getToken($O.SHARED,t)}EXCLUSIVE(t){return void 0===t?this.getTokens($O.EXCLUSIVE):this.getToken($O.EXCLUSIVE,t)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}get ruleIndex(){return $O.RULE_createIndex}accept(t){return t.visitCreateIndex?t.visitCreateIndex(this):t.visitChildren(this)}},SI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}LOGFILE(){return this.getToken($O.LOGFILE,0)}GROUP(){return this.getToken($O.GROUP,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}ADD(){return this.getToken($O.ADD,0)}UNDOFILE(){return this.getToken($O.UNDOFILE,0)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}INITIAL_SIZE(){return this.getToken($O.INITIAL_SIZE,0)}UNDO_BUFFER_SIZE(){return this.getToken($O.UNDO_BUFFER_SIZE,0)}REDO_BUFFER_SIZE(){return this.getToken($O.REDO_BUFFER_SIZE,0)}NODEGROUP(){return this.getToken($O.NODEGROUP,0)}WAIT(){return this.getToken($O.WAIT,0)}COMMENT(){return this.getToken($O.COMMENT,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}fileSizeLiteral(t){return void 0===t?this.getRuleContexts(Rm):this.getRuleContext(t,Rm)}get ruleIndex(){return $O.RULE_createLogfileGroup}accept(t){return t.visitCreateLogfileGroup?t.visitCreateLogfileGroup(this):t.visitChildren(this)}},lI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}fullId(){return this.getRuleContext(0,kU)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}routineBody(){return this.getRuleContext(0,jP)}ownerStatement(){return this.getRuleContext(0,GI)}procedureParameter(t){return void 0===t?this.getRuleContexts(VI):this.getRuleContext(t,VI)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}routineOption(t){return void 0===t?this.getRuleContexts(KI):this.getRuleContext(t,KI)}get ruleIndex(){return $O.RULE_createProcedure}accept(t){return t.visitCreateProcedure?t.visitCreateProcedure(this):t.visitChildren(this)}},OI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}fullId(){return this.getRuleContext(0,kU)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}RETURNS(){return this.getToken($O.RETURNS,0)}dataType(){return this.getRuleContext(0,um)}routineBody(){return this.getRuleContext(0,jP)}returnStatement(){return this.getRuleContext(0,rM)}ownerStatement(){return this.getRuleContext(0,GI)}AGGREGATE(){return this.getToken($O.AGGREGATE,0)}ifNotExists(){return this.getRuleContext(0,Km)}functionParameter(t){return void 0===t?this.getRuleContexts(XI):this.getRuleContext(t,XI)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}routineOption(t){return void 0===t?this.getRuleContexts(KI):this.getRuleContext(t,KI)}get ruleIndex(){return $O.RULE_createFunction}accept(t){return t.visitCreateFunction?t.visitCreateFunction(this):t.visitChildren(this)}},II=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}ROLE(){return this.getToken($O.ROLE,0)}newRoleNameList(){return this.getRuleContext(0,BU)}ifNotExists(){return this.getRuleContext(0,Km)}get ruleIndex(){return $O.RULE_createRole}accept(t){return t.visitCreateRole?t.visitCreateRole(this):t.visitChildren(this)}},uI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}SERVER(){return this.getToken($O.SERVER,0)}uid(){return this.getRuleContext(0,hm)}FOREIGN(){return this.getToken($O.FOREIGN,0)}DATA(){return this.getToken($O.DATA,0)}WRAPPER(){return this.getToken($O.WRAPPER,0)}OPTIONS(){return this.getToken($O.OPTIONS,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}serverOption(t){return void 0===t?this.getRuleContexts(zI):this.getRuleContext(t,zI)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}MYSQL(){return this.getToken($O.MYSQL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_createServer}accept(t){return t.visitCreateServer?t.visitCreateServer(this):t.visitChildren(this)}},NI=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_createTable}copyFrom(t){super.copyFrom(t)}},LI=class extends NI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CREATE(){return this.getToken($O.CREATE,0)}TABLE(){return this.getToken($O.TABLE,0)}tableName(t){return void 0===t?this.getRuleContexts(HU):this.getRuleContext(t,HU)}LIKE(){return this.getToken($O.LIKE,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}TEMPORARY(){return this.getToken($O.TEMPORARY,0)}ifNotExists(){return this.getRuleContext(0,Km)}accept(t){return t.visitCopyCreateTable?t.visitCopyCreateTable(this):t.visitChildren(this)}},CI=class extends NI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CREATE(){return this.getToken($O.CREATE,0)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}createDefinitions(){return this.getRuleContext(0,$I)}TEMPORARY(){return this.getToken($O.TEMPORARY,0)}ifNotExists(){return this.getRuleContext(0,Km)}tableOption(t){return void 0===t?this.getRuleContexts(ku):this.getRuleContext(t,ku)}partitionDefinitions(){return this.getRuleContext(0,lN)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitColumnCreateTable?t.visitColumnCreateTable(this):t.visitChildren(this)}},_I=class extends NI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CREATE(){return this.getToken($O.CREATE,0)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}selectStatement(){return this.getRuleContext(0,_C)}TEMPORARY(){return this.getToken($O.TEMPORARY,0)}ifNotExists(){return this.getRuleContext(0,Km)}createDefinitions(){return this.getRuleContext(0,$I)}tableOption(t){return void 0===t?this.getRuleContexts(ku):this.getRuleContext(t,ku)}partitionDefinitions(){return this.getRuleContext(0,lN)}AS(){return this.getToken($O.AS,0)}IGNORE(){return this.getToken($O.IGNORE,0)}REPLACE(){return this.getToken($O.REPLACE,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitQueryCreateTable?t.visitQueryCreateTable(this):t.visitChildren(this)}},PI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uid(){return this.getRuleContext(0,hm)}ADD(){return this.getToken($O.ADD,0)}DATAFILE(){return this.getToken($O.DATAFILE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}FILE_BLOCK_SIZE(){return this.getToken($O.FILE_BLOCK_SIZE,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}fileSizeLiteral(){return this.getRuleContext(0,Rm)}get ruleIndex(){return $O.RULE_createTablespaceInnodb}accept(t){return t.visitCreateTablespaceInnodb?t.visitCreateTablespaceInnodb(this):t.visitChildren(this)}},MI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}ADD(){return this.getToken($O.ADD,0)}DATAFILE(){return this.getToken($O.DATAFILE,0)}USE(){return this.getToken($O.USE,0)}LOGFILE(){return this.getToken($O.LOGFILE,0)}GROUP(){return this.getToken($O.GROUP,0)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}EXTENT_SIZE(){return this.getToken($O.EXTENT_SIZE,0)}INITIAL_SIZE(){return this.getToken($O.INITIAL_SIZE,0)}AUTOEXTEND_SIZE(){return this.getToken($O.AUTOEXTEND_SIZE,0)}MAX_SIZE(){return this.getToken($O.MAX_SIZE,0)}NODEGROUP(){return this.getToken($O.NODEGROUP,0)}WAIT(){return this.getToken($O.WAIT,0)}COMMENT(){return this.getToken($O.COMMENT,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}fileSizeLiteral(t){return void 0===t?this.getRuleContexts(Rm):this.getRuleContext(t,Rm)}get ruleIndex(){return $O.RULE_createTablespaceNdb}accept(t){return t.visitCreateTablespaceNdb?t.visitCreateTablespaceNdb(this):t.visitChildren(this)}},dI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}TRIGGER(){return this.getToken($O.TRIGGER,0)}ON(){return this.getToken($O.ON,0)}tableName(){return this.getRuleContext(0,HU)}FOR(){return this.getToken($O.FOR,0)}EACH(){return this.getToken($O.EACH,0)}ROW(){return this.getToken($O.ROW,0)}routineBody(){return this.getRuleContext(0,jP)}fullId(t){return void 0===t?this.getRuleContexts(kU):this.getRuleContext(t,kU)}BEFORE(){return this.getToken($O.BEFORE,0)}AFTER(){return this.getToken($O.AFTER,0)}INSERT(){return this.getToken($O.INSERT,0)}UPDATE(){return this.getToken($O.UPDATE,0)}DELETE(){return this.getToken($O.DELETE,0)}ownerStatement(){return this.getRuleContext(0,GI)}ifNotExists(){return this.getRuleContext(0,Km)}FOLLOWS(){return this.getToken($O.FOLLOWS,0)}PRECEDES(){return this.getToken($O.PRECEDES,0)}get ruleIndex(){return $O.RULE_createTrigger}accept(t){return t.visitCreateTrigger?t.visitCreateTrigger(this):t.visitChildren(this)}},UI=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken($O.WITH,0)}commonTableExpressions(){return this.getRuleContext(0,mI)}RECURSIVE(){return this.getToken($O.RECURSIVE,0)}get ruleIndex(){return $O.RULE_withClause}accept(t){return t.visitWithClause?t.visitWithClause(this):t.visitChildren(this)}},mI=class t extends p{constructor(t,e){super(t,e)}cteName(){return this.getRuleContext(0,DI)}AS(){return this.getToken($O.AS,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}dmlStatement(){return this.getRuleContext(0,iI)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}cteColumnName(t){return void 0===t?this.getRuleContexts(pI):this.getRuleContext(t,pI)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}commonTableExpressions(){return this.getRuleContext(0,t)}get ruleIndex(){return $O.RULE_commonTableExpressions}accept(t){return t.visitCommonTableExpressions?t.visitCommonTableExpressions(this):t.visitChildren(this)}},DI=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_cteName}accept(t){return t.visitCteName?t.visitCteName(this):t.visitChildren(this)}},pI=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_cteColumnName}accept(t){return t.visitCteColumnName?t.visitCteColumnName(this):t.visitChildren(this)}},gI=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}VIEW(){return this.getToken($O.VIEW,0)}fullId(){return this.getRuleContext(0,kU)}AS(){return this.getToken($O.AS,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}selectStatement(){return this.getRuleContext(0,_C)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}orReplace(){return this.getRuleContext(0,Qm)}ALGORITHM(){return this.getToken($O.ALGORITHM,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}ownerStatement(){return this.getRuleContext(0,GI)}SQL(){return this.getToken($O.SQL,0)}SECURITY(){return this.getToken($O.SECURITY,0)}uidList(){return this.getRuleContext(0,Hm)}UNDEFINED(){return this.getToken($O.UNDEFINED,0)}MERGE(){return this.getToken($O.MERGE,0)}TEMPTABLE(){return this.getToken($O.TEMPTABLE,0)}DEFINER(){return this.getToken($O.DEFINER,0)}INVOKER(){return this.getToken($O.INVOKER,0)}withClause(){return this.getRuleContext(0,UI)}WITH(){return this.getToken($O.WITH,0)}CHECK(){return this.getToken($O.CHECK,0)}OPTION(){return this.getToken($O.OPTION,0)}CASCADED(){return this.getToken($O.CASCADED,0)}LOCAL(){return this.getToken($O.LOCAL,0)}get ruleIndex(){return $O.RULE_createView}accept(t){return t.visitCreateView?t.visitCreateView(this):t.visitChildren(this)}},xI=class extends p{constructor(t,e){super(t,e)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}DEFAULT(t){return void 0===t?this.getTokens($O.DEFAULT):this.getToken($O.DEFAULT,t)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}ENCRYPTION(){return this.getToken($O.ENCRYPTION,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}READ(){return this.getToken($O.READ,0)}ONLY(){return this.getToken($O.ONLY,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}get ruleIndex(){return $O.RULE_createDatabaseOption}accept(t){return t.visitCreateDatabaseOption?t.visitCreateDatabaseOption(this):t.visitChildren(this)}},kI=class extends p{constructor(t,e){super(t,e)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(){return this.getToken($O.SET,0)}CHARSET(){return this.getToken($O.CHARSET,0)}CHAR(){return this.getToken($O.CHAR,0)}get ruleIndex(){return $O.RULE_charSet}accept(t){return t.visitCharSet?t.visitCharSet(this):t.visitChildren(this)}},HI=class extends p{constructor(t,e){super(t,e)}CURRENT_USER(){return this.getToken($O.CURRENT_USER,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}get ruleIndex(){return $O.RULE_currentUserExpression}accept(t){return t.visitCurrentUserExpression?t.visitCurrentUserExpression(this):t.visitChildren(this)}},GI=class extends p{constructor(t,e){super(t,e)}DEFINER(){return this.getToken($O.DEFINER,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}userName(){return this.getRuleContext(0,zU)}currentUserExpression(){return this.getRuleContext(0,HI)}get ruleIndex(){return $O.RULE_ownerStatement}accept(t){return t.visitOwnerStatement?t.visitOwnerStatement(this):t.visitChildren(this)}},FI=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_scheduleExpression}copyFrom(t){super.copyFrom(t)}},vI=class extends FI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AT(){return this.getToken($O.AT,0)}timestampValue(){return this.getRuleContext(0,yI)}intervalExpr(t){return void 0===t?this.getRuleContexts(fI):this.getRuleContext(t,fI)}accept(t){return t.visitPreciseSchedule?t.visitPreciseSchedule(this):t.visitChildren(this)}},BI=class extends FI{constructor(t){super(t.parent,t.invokingState),this._startIntervals=[],this._endIntervals=[],super.copyFrom(t)}EVERY(){return this.getToken($O.EVERY,0)}intervalType(){return this.getRuleContext(0,YI)}decimalLiteral(){return this.getRuleContext(0,om)}expression(){return this.getRuleContext(0,BD)}STARTS(){return this.getToken($O.STARTS,0)}ENDS(){return this.getToken($O.ENDS,0)}timestampValue(t){return void 0===t?this.getRuleContexts(yI):this.getRuleContext(t,yI)}intervalExpr(t){return void 0===t?this.getRuleContexts(fI):this.getRuleContext(t,fI)}accept(t){return t.visitIntervalSchedule?t.visitIntervalSchedule(this):t.visitChildren(this)}},yI=class extends p{constructor(t,e){super(t,e)}CURRENT_TIMESTAMP(){return this.getToken($O.CURRENT_TIMESTAMP,0)}stringLiteral(){return this.getRuleContext(0,Am)}decimalLiteral(){return this.getRuleContext(0,om)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_timestampValue}accept(t){return t.visitTimestampValue?t.visitTimestampValue(this):t.visitChildren(this)}},fI=class extends p{constructor(t,e){super(t,e)}PLUS(){return this.getToken($O.PLUS,0)}INTERVAL(){return this.getToken($O.INTERVAL,0)}intervalType(){return this.getRuleContext(0,YI)}decimalLiteral(){return this.getRuleContext(0,om)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_intervalExpr}accept(t){return t.visitIntervalExpr?t.visitIntervalExpr(this):t.visitChildren(this)}},YI=class extends p{constructor(t,e){super(t,e)}intervalTypeBase(){return this.getRuleContext(0,Up)}YEAR(){return this.getToken($O.YEAR,0)}YEAR_MONTH(){return this.getToken($O.YEAR_MONTH,0)}DAY_HOUR(){return this.getToken($O.DAY_HOUR,0)}DAY_MINUTE(){return this.getToken($O.DAY_MINUTE,0)}DAY_SECOND(){return this.getToken($O.DAY_SECOND,0)}HOUR_MINUTE(){return this.getToken($O.HOUR_MINUTE,0)}HOUR_SECOND(){return this.getToken($O.HOUR_SECOND,0)}MINUTE_SECOND(){return this.getToken($O.MINUTE_SECOND,0)}SECOND_MICROSECOND(){return this.getToken($O.SECOND_MICROSECOND,0)}MINUTE_MICROSECOND(){return this.getToken($O.MINUTE_MICROSECOND,0)}HOUR_MICROSECOND(){return this.getToken($O.HOUR_MICROSECOND,0)}DAY_MICROSECOND(){return this.getToken($O.DAY_MICROSECOND,0)}get ruleIndex(){return $O.RULE_intervalType}accept(t){return t.visitIntervalType?t.visitIntervalType(this):t.visitChildren(this)}},wI=class extends p{constructor(t,e){super(t,e)}ENABLE(){return this.getToken($O.ENABLE,0)}DISABLE(){return this.getToken($O.DISABLE,0)}ON(){return this.getToken($O.ON,0)}SLAVE(){return this.getToken($O.SLAVE,0)}get ruleIndex(){return $O.RULE_enableType}accept(t){return t.visitEnableType?t.visitEnableType(this):t.visitChildren(this)}},bI=class extends p{constructor(t,e){super(t,e)}USING(){return this.getToken($O.USING,0)}BTREE(){return this.getToken($O.BTREE,0)}HASH(){return this.getToken($O.HASH,0)}get ruleIndex(){return $O.RULE_indexType}accept(t){return t.visitIndexType?t.visitIndexType(this):t.visitChildren(this)}},WI=class extends p{constructor(t,e){super(t,e)}KEY_BLOCK_SIZE(){return this.getToken($O.KEY_BLOCK_SIZE,0)}fileSizeLiteral(){return this.getRuleContext(0,Rm)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}indexType(){return this.getRuleContext(0,bI)}WITH(){return this.getToken($O.WITH,0)}PARSER(){return this.getToken($O.PARSER,0)}uid(){return this.getRuleContext(0,hm)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}VISIBLE(){return this.getToken($O.VISIBLE,0)}INVISIBLE(){return this.getToken($O.INVISIBLE,0)}ENGINE_ATTRIBUTE(){return this.getToken($O.ENGINE_ATTRIBUTE,0)}SECONDARY_ENGINE_ATTRIBUTE(){return this.getToken($O.SECONDARY_ENGINE_ATTRIBUTE,0)}get ruleIndex(){return $O.RULE_indexOption}accept(t){return t.visitIndexOption?t.visitIndexOption(this):t.visitChildren(this)}},VI=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}dataType(){return this.getRuleContext(0,um)}IN(){return this.getToken($O.IN,0)}OUT(){return this.getToken($O.OUT,0)}INOUT(){return this.getToken($O.INOUT,0)}get ruleIndex(){return $O.RULE_procedureParameter}accept(t){return t.visitProcedureParameter?t.visitProcedureParameter(this):t.visitChildren(this)}},XI=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}dataType(){return this.getRuleContext(0,um)}get ruleIndex(){return $O.RULE_functionParameter}accept(t){return t.visitFunctionParameter?t.visitFunctionParameter(this):t.visitChildren(this)}},KI=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_routineOption}copyFrom(t){super.copyFrom(t)}},QI=class extends KI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DETERMINISTIC(){return this.getToken($O.DETERMINISTIC,0)}NOT(){return this.getToken($O.NOT,0)}accept(t){return t.visitRoutineBehavior?t.visitRoutineBehavior(this):t.visitChildren(this)}},JI=class extends KI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LANGUAGE(){return this.getToken($O.LANGUAGE,0)}SQL(){return this.getToken($O.SQL,0)}accept(t){return t.visitRoutineLanguage?t.visitRoutineLanguage(this):t.visitChildren(this)}},ZI=class extends KI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitRoutineComment?t.visitRoutineComment(this):t.visitChildren(this)}},qI=class extends KI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SQL(){return this.getToken($O.SQL,0)}SECURITY(){return this.getToken($O.SECURITY,0)}DEFINER(){return this.getToken($O.DEFINER,0)}INVOKER(){return this.getToken($O.INVOKER,0)}accept(t){return t.visitRoutineSecurity?t.visitRoutineSecurity(this):t.visitChildren(this)}},jI=class extends KI{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CONTAINS(){return this.getToken($O.CONTAINS,0)}SQL(){return this.getToken($O.SQL,0)}NO(){return this.getToken($O.NO,0)}READS(){return this.getToken($O.READS,0)}DATA(){return this.getToken($O.DATA,0)}MODIFIES(){return this.getToken($O.MODIFIES,0)}accept(t){return t.visitRoutineData?t.visitRoutineData(this):t.visitChildren(this)}},zI=class extends p{constructor(t,e){super(t,e)}HOST(){return this.getToken($O.HOST,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}DATABASE(){return this.getToken($O.DATABASE,0)}USER(){return this.getToken($O.USER,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}SOCKET(){return this.getToken($O.SOCKET,0)}OWNER(){return this.getToken($O.OWNER,0)}PORT(){return this.getToken($O.PORT,0)}decimalLiteral(){return this.getRuleContext(0,om)}get ruleIndex(){return $O.RULE_serverOption}accept(t){return t.visitServerOption?t.visitServerOption(this):t.visitChildren(this)}},$I=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}createDefinition(t){return void 0===t?this.getRuleContexts(tu):this.getRuleContext(t,tu)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_createDefinitions}accept(t){return t.visitCreateDefinitions?t.visitCreateDefinitions(this):t.visitChildren(this)}},tu=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_createDefinition}copyFrom(t){super.copyFrom(t)}},eu=class extends tu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}fullColumnName(){return this.getRuleContext(0,wU)}columnDefinition(){return this.getRuleContext(0,iu)}accept(t){return t.visitColumnDeclaration?t.visitColumnDeclaration(this):t.visitChildren(this)}},su=class extends tu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableConstraint(){return this.getRuleContext(0,Cu)}NOT(){return this.getToken($O.NOT,0)}ENFORCED(){return this.getToken($O.ENFORCED,0)}accept(t){return t.visitConstraintDeclaration?t.visitConstraintDeclaration(this):t.visitChildren(this)}},au=class extends tu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}indexColumnDefinition(){return this.getRuleContext(0,pu)}accept(t){return t.visitIndexDeclaration?t.visitIndexDeclaration(this):t.visitChildren(this)}},iu=class extends p{constructor(t,e){super(t,e)}dataType(){return this.getRuleContext(0,um)}columnConstraint(t){return void 0===t?this.getRuleContexts(ru):this.getRuleContext(t,ru)}NOT(){return this.getToken($O.NOT,0)}ENFORCED(){return this.getToken($O.ENFORCED,0)}get ruleIndex(){return $O.RULE_columnDefinition}accept(t){return t.visitColumnDefinition?t.visitColumnDefinition(this):t.visitChildren(this)}},ru=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_columnConstraint}copyFrom(t){super.copyFrom(t)}},cu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STORAGE(){return this.getToken($O.STORAGE,0)}DISK(){return this.getToken($O.DISK,0)}MEMORY(){return this.getToken($O.MEMORY,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}accept(t){return t.visitStorageColumnConstraint?t.visitStorageColumnConstraint(this):t.visitChildren(this)}},nu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}VISIBLE(){return this.getToken($O.VISIBLE,0)}accept(t){return t.visitVisibilityColumnConstraint?t.visitVisibilityColumnConstraint(this):t.visitChildren(this)}},hu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AUTO_INCREMENT(){return this.getToken($O.AUTO_INCREMENT,0)}ON(){return this.getToken($O.ON,0)}UPDATE(){return this.getToken($O.UPDATE,0)}currentTimestamp(){return this.getRuleContext(0,Wm)}accept(t){return t.visitAutoIncrementColumnConstraint?t.visitAutoIncrementColumnConstraint(this):t.visitChildren(this)}},Eu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitCommentColumnConstraint?t.visitCommentColumnConstraint(this):t.visitChildren(this)}},Tu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}UNIQUE(){return this.getToken($O.UNIQUE,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitUniqueKeyColumnConstraint?t.visitUniqueKeyColumnConstraint(this):t.visitChildren(this)}},ou=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SERIAL(){return this.getToken($O.SERIAL,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}VALUE(){return this.getToken($O.VALUE,0)}accept(t){return t.visitSerialDefaultColumnConstraint?t.visitSerialDefaultColumnConstraint(this):t.visitChildren(this)}},Ru=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AS(){return this.getToken($O.AS,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}GENERATED(){return this.getToken($O.GENERATED,0)}ALWAYS(){return this.getToken($O.ALWAYS,0)}VIRTUAL(){return this.getToken($O.VIRTUAL,0)}STORED(){return this.getToken($O.STORED,0)}accept(t){return t.visitGeneratedColumnConstraint?t.visitGeneratedColumnConstraint(this):t.visitChildren(this)}},Au=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COLUMN_FORMAT(){return this.getToken($O.COLUMN_FORMAT,0)}FIXED(){return this.getToken($O.FIXED,0)}DYNAMIC(){return this.getToken($O.DYNAMIC,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}accept(t){return t.visitFormatColumnConstraint?t.visitFormatColumnConstraint(this):t.visitChildren(this)}},Su=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitCollateColumnConstraint?t.visitCollateColumnConstraint(this):t.visitChildren(this)}},lu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}KEY(){return this.getToken($O.KEY,0)}PRIMARY(){return this.getToken($O.PRIMARY,0)}accept(t){return t.visitPrimaryKeyColumnConstraint?t.visitPrimaryKeyColumnConstraint(this):t.visitChildren(this)}},Ou=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHECK(){return this.getToken($O.CHECK,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitCheckColumnConstraint?t.visitCheckColumnConstraint(this):t.visitChildren(this)}},Iu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}nullNotnull(){return this.getRuleContext(0,Om)}accept(t){return t.visitNullColumnConstraint?t.visitNullColumnConstraint(this):t.visitChildren(this)}},uu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DEFAULT(){return this.getToken($O.DEFAULT,0)}defaultValue(){return this.getRuleContext(0,bm)}accept(t){return t.visitDefaultColumnConstraint?t.visitDefaultColumnConstraint(this):t.visitChildren(this)}},Nu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}referenceDefinition(){return this.getRuleContext(0,Uu)}accept(t){return t.visitReferenceColumnConstraint?t.visitReferenceColumnConstraint(this):t.visitChildren(this)}},Lu=class extends ru{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INVISIBLE(){return this.getToken($O.INVISIBLE,0)}accept(t){return t.visitInvisibilityColumnConstraint?t.visitInvisibilityColumnConstraint(this):t.visitChildren(this)}},Cu=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_tableConstraint}copyFrom(t){super.copyFrom(t)}},_u=class extends Cu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}UNIQUE(){return this.getToken($O.UNIQUE,0)}indexColumnNames(){return this.getRuleContext(0,vm)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitUniqueKeyTableConstraint?t.visitUniqueKeyTableConstraint(this):t.visitChildren(this)}},Pu=class extends Cu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHECK(){return this.getToken($O.CHECK,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitCheckTableConstraint?t.visitCheckTableConstraint(this):t.visitChildren(this)}},Mu=class extends Cu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PRIMARY(){return this.getToken($O.PRIMARY,0)}KEY(){return this.getToken($O.KEY,0)}indexColumnNames(){return this.getRuleContext(0,vm)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}accept(t){return t.visitPrimaryKeyTableConstraint?t.visitPrimaryKeyTableConstraint(this):t.visitChildren(this)}},du=class extends Cu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FOREIGN(){return this.getToken($O.FOREIGN,0)}KEY(){return this.getToken($O.KEY,0)}indexColumnNames(){return this.getRuleContext(0,vm)}referenceDefinition(){return this.getRuleContext(0,Uu)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}accept(t){return t.visitForeignKeyTableConstraint?t.visitForeignKeyTableConstraint(this):t.visitChildren(this)}},Uu=class extends p{constructor(t,e){super(t,e)}REFERENCES(){return this.getToken($O.REFERENCES,0)}tableName(){return this.getRuleContext(0,HU)}indexColumnNames(){return this.getRuleContext(0,vm)}MATCH(){return this.getToken($O.MATCH,0)}referenceAction(){return this.getRuleContext(0,mu)}FULL(){return this.getToken($O.FULL,0)}PARTIAL(){return this.getToken($O.PARTIAL,0)}SIMPLE(){return this.getToken($O.SIMPLE,0)}get ruleIndex(){return $O.RULE_referenceDefinition}accept(t){return t.visitReferenceDefinition?t.visitReferenceDefinition(this):t.visitChildren(this)}},mu=class extends p{constructor(t,e){super(t,e)}ON(t){return void 0===t?this.getTokens($O.ON):this.getToken($O.ON,t)}DELETE(){return this.getToken($O.DELETE,0)}referenceControlType(t){return void 0===t?this.getRuleContexts(Du):this.getRuleContext(t,Du)}UPDATE(){return this.getToken($O.UPDATE,0)}get ruleIndex(){return $O.RULE_referenceAction}accept(t){return t.visitReferenceAction?t.visitReferenceAction(this):t.visitChildren(this)}},Du=class extends p{constructor(t,e){super(t,e)}RESTRICT(){return this.getToken($O.RESTRICT,0)}CASCADE(){return this.getToken($O.CASCADE,0)}SET(){return this.getToken($O.SET,0)}NULL_LITERAL(){return this.getToken($O.NULL_LITERAL,0)}NO(){return this.getToken($O.NO,0)}ACTION(){return this.getToken($O.ACTION,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}get ruleIndex(){return $O.RULE_referenceControlType}accept(t){return t.visitReferenceControlType?t.visitReferenceControlType(this):t.visitChildren(this)}},pu=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_indexColumnDefinition}copyFrom(t){super.copyFrom(t)}},gu=class extends pu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}indexColumnNames(){return this.getRuleContext(0,vm)}FULLTEXT(){return this.getToken($O.FULLTEXT,0)}SPATIAL(){return this.getToken($O.SPATIAL,0)}uid(){return this.getRuleContext(0,hm)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitSpecialIndexDeclaration?t.visitSpecialIndexDeclaration(this):t.visitChildren(this)}},xu=class extends pu{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}indexColumnNames(){return this.getRuleContext(0,vm)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}uid(){return this.getRuleContext(0,hm)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}accept(t){return t.visitSimpleIndexDeclaration?t.visitSimpleIndexDeclaration(this):t.visitChildren(this)}},ku=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_tableOption}copyFrom(t){super.copyFrom(t)}},Hu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ENGINE(){return this.getToken($O.ENGINE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}engineName(){return this.getRuleContext(0,sm)}accept(t){return t.visitTableOptionEngine?t.visitTableOptionEngine(this):t.visitChildren(this)}},Gu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MAX_ROWS(){return this.getToken($O.MAX_ROWS,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionMaxRows?t.visitTableOptionMaxRows(this):t.visitChildren(this)}},Fu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}DEFAULT(){return this.getToken($O.DEFAULT,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionCollate?t.visitTableOptionCollate(this):t.visitChildren(this)}},vu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STATS_PERSISTENT(){return this.getToken($O.STATS_PERSISTENT,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionPersistent?t.visitTableOptionPersistent(this):t.visitChildren(this)}},Bu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uid(){return this.getRuleContext(0,hm)}tablespaceStorage(){return this.getRuleContext(0,SN)}accept(t){return t.visitTableOptionTablespace?t.visitTableOptionTablespace(this):t.visitChildren(this)}},yu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AUTOEXTEND_SIZE(){return this.getToken($O.AUTOEXTEND_SIZE,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionAutoextendSize?t.visitTableOptionAutoextendSize(this):t.visitChildren(this)}},fu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PAGE_COMPRESSED(){return this.getToken($O.PAGE_COMPRESSED,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionPageCompressed?t.visitTableOptionPageCompressed(this):t.visitChildren(this)}},Yu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}START(){return this.getToken($O.START,0)}TRANSACTION(){return this.getToken($O.TRANSACTION,0)}accept(t){return t.visitTableOptionStartTransaction?t.visitTableOptionStartTransaction(this):t.visitChildren(this)}},wu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PACK_KEYS(){return this.getToken($O.PACK_KEYS,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionPackKeys?t.visitTableOptionPackKeys(this):t.visitChildren(this)}},bu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PASSWORD(){return this.getToken($O.PASSWORD,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionPassword?t.visitTableOptionPassword(this):t.visitChildren(this)}},Wu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}UNION(){return this.getToken($O.UNION,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}tables(){return this.getRuleContext(0,Fm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionUnion?t.visitTableOptionUnion(this):t.visitChildren(this)}},Vu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STATS_SAMPLE_PAGES(){return this.getToken($O.STATS_SAMPLE_PAGES,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionSamplePage?t.visitTableOptionSamplePage(this):t.visitChildren(this)}},Xu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}DEFAULT(t){return void 0===t?this.getTokens($O.DEFAULT):this.getToken($O.DEFAULT,t)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionCharset?t.visitTableOptionCharset(this):t.visitChildren(this)}},Ku=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INDEX(){return this.getToken($O.INDEX,0)}DIRECTORY(){return this.getToken($O.DIRECTORY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionIndexDirectory?t.visitTableOptionIndexDirectory(this):t.visitChildren(this)}},Qu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TABLE_TYPE(){return this.getToken($O.TABLE_TYPE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}tableType(){return this.getRuleContext(0,AN)}accept(t){return t.visitTableOptionTableType?t.visitTableOptionTableType(this):t.visitChildren(this)}},Ju=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}KEY_BLOCK_SIZE(){return this.getToken($O.KEY_BLOCK_SIZE,0)}fileSizeLiteral(){return this.getRuleContext(0,Rm)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionKeyBlockSize?t.visitTableOptionKeyBlockSize(this):t.visitChildren(this)}},Zu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ENCRYPTION(){return this.getToken($O.ENCRYPTION,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionEncryption?t.visitTableOptionEncryption(this):t.visitChildren(this)}},qu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DIRECTORY(){return this.getToken($O.DIRECTORY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}DATA(){return this.getToken($O.DATA,0)}INDEX(){return this.getToken($O.INDEX,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionDataDirectory?t.visitTableOptionDataDirectory(this):t.visitChildren(this)}},ju=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STATS_AUTO_RECALC(){return this.getToken($O.STATS_AUTO_RECALC,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionRecalculation?t.visitTableOptionRecalculation(this):t.visitChildren(this)}},zu=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AUTO_INCREMENT(){return this.getToken($O.AUTO_INCREMENT,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionAutoIncrement?t.visitTableOptionAutoIncrement(this):t.visitChildren(this)}},$u=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ENCRYPTION_KEY_ID(){return this.getToken($O.ENCRYPTION_KEY_ID,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionEncryptionKeyId?t.visitTableOptionEncryptionKeyId(this):t.visitChildren(this)}},tN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHECKSUM(){return this.getToken($O.CHECKSUM,0)}PAGE_CHECKSUM(){return this.getToken($O.PAGE_CHECKSUM,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionChecksum?t.visitTableOptionChecksum(this):t.visitChildren(this)}},eN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DELAY_KEY_WRITE(){return this.getToken($O.DELAY_KEY_WRITE,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionDelay?t.visitTableOptionDelay(this):t.visitChildren(this)}},sN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CONNECTION(){return this.getToken($O.CONNECTION,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionConnection?t.visitTableOptionConnection(this):t.visitChildren(this)}},aN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TRANSACTIONAL(){return this.getToken($O.TRANSACTIONAL,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionTransactional?t.visitTableOptionTransactional(this):t.visitChildren(this)}},iN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}decimalLiteral(){return this.getRuleContext(0,om)}PAGE_COMPRESSION_LEVEL(){return this.getToken($O.PAGE_COMPRESSION_LEVEL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionPageCompressionLevel?t.visitTableOptionPageCompressionLevel(this):t.visitChildren(this)}},rN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SECONDARY_ENGINE_ATTRIBUTE(){return this.getToken($O.SECONDARY_ENGINE_ATTRIBUTE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionSecondaryEngineAttribute?t.visitTableOptionSecondaryEngineAttribute(this):t.visitChildren(this)}},cN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionComment?t.visitTableOptionComment(this):t.visitChildren(this)}},nN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AVG_ROW_LENGTH(){return this.getToken($O.AVG_ROW_LENGTH,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionAverage?t.visitTableOptionAverage(this):t.visitChildren(this)}},hN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ROW_FORMAT(){return this.getToken($O.ROW_FORMAT,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}DYNAMIC(){return this.getToken($O.DYNAMIC,0)}FIXED(){return this.getToken($O.FIXED,0)}COMPRESSED(){return this.getToken($O.COMPRESSED,0)}REDUNDANT(){return this.getToken($O.REDUNDANT,0)}COMPACT(){return this.getToken($O.COMPACT,0)}ID(){return this.getToken($O.ID,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionRowFormat?t.visitTableOptionRowFormat(this):t.visitChildren(this)}},EN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COMPRESSION(){return this.getToken($O.COMPRESSION,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ID(){return this.getToken($O.ID,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionCompression?t.visitTableOptionCompression(this):t.visitChildren(this)}},TN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INSERT_METHOD(){return this.getToken($O.INSERT_METHOD,0)}NO(){return this.getToken($O.NO,0)}FIRST(){return this.getToken($O.FIRST,0)}LAST(){return this.getToken($O.LAST,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionInsertMethod?t.visitTableOptionInsertMethod(this):t.visitChildren(this)}},oN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ENGINE_ATTRIBUTE(){return this.getToken($O.ENGINE_ATTRIBUTE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionEngineAttribute?t.visitTableOptionEngineAttribute(this):t.visitChildren(this)}},RN=class extends ku{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MIN_ROWS(){return this.getToken($O.MIN_ROWS,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitTableOptionMinRows?t.visitTableOptionMinRows(this):t.visitChildren(this)}},AN=class extends p{constructor(t,e){super(t,e)}MYSQL(){return this.getToken($O.MYSQL,0)}ODBC(){return this.getToken($O.ODBC,0)}get ruleIndex(){return $O.RULE_tableType}accept(t){return t.visitTableType?t.visitTableType(this):t.visitChildren(this)}},SN=class extends p{constructor(t,e){super(t,e)}STORAGE(){return this.getToken($O.STORAGE,0)}DISK(){return this.getToken($O.DISK,0)}MEMORY(){return this.getToken($O.MEMORY,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}get ruleIndex(){return $O.RULE_tablespaceStorage}accept(t){return t.visitTablespaceStorage?t.visitTablespaceStorage(this):t.visitChildren(this)}},lN=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken($O.PARTITION,0)}BY(t){return void 0===t?this.getTokens($O.BY):this.getToken($O.BY,t)}partitionFunctionDefinition(){return this.getRuleContext(0,ON)}PARTITIONS(){return this.getToken($O.PARTITIONS,0)}SUBPARTITION(){return this.getToken($O.SUBPARTITION,0)}subpartitionFunctionDefinition(){return this.getRuleContext(0,CN)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}partitionDefinition(t){return void 0===t?this.getRuleContexts(MN):this.getRuleContext(t,MN)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}SUBPARTITIONS(){return this.getToken($O.SUBPARTITIONS,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_partitionDefinitions}accept(t){return t.visitPartitionDefinitions?t.visitPartitionDefinitions(this):t.visitChildren(this)}},ON=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_partitionFunctionDefinition}copyFrom(t){super.copyFrom(t)}},IN=class extends ON{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}KEY(){return this.getToken($O.KEY,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}LINEAR(){return this.getToken($O.LINEAR,0)}ALGORITHM(){return this.getToken($O.ALGORITHM,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}uidList(){return this.getRuleContext(0,Hm)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}TWO_DECIMAL(){return this.getToken($O.TWO_DECIMAL,0)}accept(t){return t.visitPartitionFunctionKey?t.visitPartitionFunctionKey(this):t.visitChildren(this)}},uN=class extends ON{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}HASH(){return this.getToken($O.HASH,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}LINEAR(){return this.getToken($O.LINEAR,0)}accept(t){return t.visitPartitionFunctionHash?t.visitPartitionFunctionHash(this):t.visitChildren(this)}},NN=class extends ON{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LIST(){return this.getToken($O.LIST,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}uidList(){return this.getRuleContext(0,Hm)}accept(t){return t.visitPartitionFunctionList?t.visitPartitionFunctionList(this):t.visitChildren(this)}},LN=class extends ON{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RANGE(){return this.getToken($O.RANGE,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}uidList(){return this.getRuleContext(0,Hm)}accept(t){return t.visitPartitionFunctionRange?t.visitPartitionFunctionRange(this):t.visitChildren(this)}},CN=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_subpartitionFunctionDefinition}copyFrom(t){super.copyFrom(t)}},_N=class extends CN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}HASH(){return this.getToken($O.HASH,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}LINEAR(){return this.getToken($O.LINEAR,0)}accept(t){return t.visitSubPartitionFunctionHash?t.visitSubPartitionFunctionHash(this):t.visitChildren(this)}},PN=class extends CN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}KEY(){return this.getToken($O.KEY,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}LINEAR(){return this.getToken($O.LINEAR,0)}ALGORITHM(){return this.getToken($O.ALGORITHM,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}TWO_DECIMAL(){return this.getToken($O.TWO_DECIMAL,0)}accept(t){return t.visitSubPartitionFunctionKey?t.visitSubPartitionFunctionKey(this):t.visitChildren(this)}},MN=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_partitionDefinition}copyFrom(t){super.copyFrom(t)}},dN=class extends MN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PARTITION(){return this.getToken($O.PARTITION,0)}uid(){return this.getRuleContext(0,hm)}VALUES(){return this.getToken($O.VALUES,0)}LESS(){return this.getToken($O.LESS,0)}THAN(){return this.getToken($O.THAN,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}partitionDefinerAtom(t){return void 0===t?this.getRuleContexts(pN):this.getRuleContext(t,pN)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}partitionOption(t){return void 0===t?this.getRuleContexts(kN):this.getRuleContext(t,kN)}subpartitionDefinition(t){return void 0===t?this.getRuleContexts(xN):this.getRuleContext(t,xN)}accept(t){return t.visitPartitionComparison?t.visitPartitionComparison(this):t.visitChildren(this)}},UN=class extends MN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PARTITION(){return this.getToken($O.PARTITION,0)}uid(){return this.getRuleContext(0,hm)}VALUES(){return this.getToken($O.VALUES,0)}IN(){return this.getToken($O.IN,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}partitionDefinerAtom(t){return void 0===t?this.getRuleContexts(pN):this.getRuleContext(t,pN)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}partitionOption(t){return void 0===t?this.getRuleContexts(kN):this.getRuleContext(t,kN)}subpartitionDefinition(t){return void 0===t?this.getRuleContexts(xN):this.getRuleContext(t,xN)}accept(t){return t.visitPartitionListAtom?t.visitPartitionListAtom(this):t.visitChildren(this)}},mN=class extends MN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PARTITION(){return this.getToken($O.PARTITION,0)}uid(){return this.getRuleContext(0,hm)}VALUES(){return this.getToken($O.VALUES,0)}IN(){return this.getToken($O.IN,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}partitionDefinerVector(t){return void 0===t?this.getRuleContexts(gN):this.getRuleContext(t,gN)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}partitionOption(t){return void 0===t?this.getRuleContexts(kN):this.getRuleContext(t,kN)}subpartitionDefinition(t){return void 0===t?this.getRuleContexts(xN):this.getRuleContext(t,xN)}accept(t){return t.visitPartitionListVector?t.visitPartitionListVector(this):t.visitChildren(this)}},DN=class extends MN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PARTITION(){return this.getToken($O.PARTITION,0)}uid(){return this.getRuleContext(0,hm)}partitionOption(t){return void 0===t?this.getRuleContexts(kN):this.getRuleContext(t,kN)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}subpartitionDefinition(t){return void 0===t?this.getRuleContexts(xN):this.getRuleContext(t,xN)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitPartitionSimple?t.visitPartitionSimple(this):t.visitChildren(this)}},pN=class extends p{constructor(t,e){super(t,e)}constant(){return this.getRuleContext(0,Im)}expression(){return this.getRuleContext(0,BD)}MAXVALUE(){return this.getToken($O.MAXVALUE,0)}get ruleIndex(){return $O.RULE_partitionDefinerAtom}accept(t){return t.visitPartitionDefinerAtom?t.visitPartitionDefinerAtom(this):t.visitChildren(this)}},gN=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}partitionDefinerAtom(t){return void 0===t?this.getRuleContexts(pN):this.getRuleContext(t,pN)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_partitionDefinerVector}accept(t){return t.visitPartitionDefinerVector?t.visitPartitionDefinerVector(this):t.visitChildren(this)}},xN=class extends p{constructor(t,e){super(t,e)}SUBPARTITION(){return this.getToken($O.SUBPARTITION,0)}uid(){return this.getRuleContext(0,hm)}partitionOption(t){return void 0===t?this.getRuleContexts(kN):this.getRuleContext(t,kN)}get ruleIndex(){return $O.RULE_subpartitionDefinition}accept(t){return t.visitSubpartitionDefinition?t.visitSubpartitionDefinition(this):t.visitChildren(this)}},kN=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_partitionOption}copyFrom(t){super.copyFrom(t)}},HN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionComment?t.visitPartitionOptionComment(this):t.visitChildren(this)}},GN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}NODEGROUP(){return this.getToken($O.NODEGROUP,0)}uid(){return this.getRuleContext(0,hm)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionNodeGroup?t.visitPartitionOptionNodeGroup(this):t.visitChildren(this)}},FN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INDEX(){return this.getToken($O.INDEX,0)}DIRECTORY(){return this.getToken($O.DIRECTORY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionIndexDirectory?t.visitPartitionOptionIndexDirectory(this):t.visitChildren(this)}},vN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MAX_ROWS(){return this.getToken($O.MAX_ROWS,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionMaxRows?t.visitPartitionOptionMaxRows(this):t.visitChildren(this)}},BN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uid(){return this.getRuleContext(0,hm)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionTablespace?t.visitPartitionOptionTablespace(this):t.visitChildren(this)}},yN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}DEFAULT(){return this.getToken($O.DEFAULT,0)}STORAGE(){return this.getToken($O.STORAGE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionEngine?t.visitPartitionOptionEngine(this):t.visitChildren(this)}},fN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MIN_ROWS(){return this.getToken($O.MIN_ROWS,0)}decimalLiteral(){return this.getRuleContext(0,om)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionMinRows?t.visitPartitionOptionMinRows(this):t.visitChildren(this)}},YN=class extends kN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DATA(){return this.getToken($O.DATA,0)}DIRECTORY(){return this.getToken($O.DIRECTORY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitPartitionOptionDataDirectory?t.visitPartitionOptionDataDirectory(this):t.visitChildren(this)}},wN=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_alterDatabase}copyFrom(t){super.copyFrom(t)}},bN=class extends wN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}databaseName(){return this.getRuleContext(0,bU)}UPGRADE(){return this.getToken($O.UPGRADE,0)}DATA(){return this.getToken($O.DATA,0)}DIRECTORY(){return this.getToken($O.DIRECTORY,0)}NAME(){return this.getToken($O.NAME,0)}DATABASE(){return this.getToken($O.DATABASE,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}accept(t){return t.visitAlterUpgradeName?t.visitAlterUpgradeName(this):t.visitChildren(this)}},WN=class extends wN{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}databaseName(){return this.getRuleContext(0,bU)}DATABASE(){return this.getToken($O.DATABASE,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}createDatabaseOption(t){return void 0===t?this.getRuleContexts(xI):this.getRuleContext(t,xI)}accept(t){return t.visitAlterSimpleDatabase?t.visitAlterSimpleDatabase(this):t.visitChildren(this)}},VN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}EVENT(){return this.getToken($O.EVENT,0)}fullId(t){return void 0===t?this.getRuleContexts(kU):this.getRuleContext(t,kU)}ownerStatement(){return this.getRuleContext(0,GI)}ON(t){return void 0===t?this.getTokens($O.ON):this.getToken($O.ON,t)}SCHEDULE(){return this.getToken($O.SCHEDULE,0)}scheduleExpression(){return this.getRuleContext(0,FI)}COMPLETION(){return this.getToken($O.COMPLETION,0)}PRESERVE(){return this.getToken($O.PRESERVE,0)}RENAME(){return this.getToken($O.RENAME,0)}TO(){return this.getToken($O.TO,0)}enableType(){return this.getRuleContext(0,wI)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}DO(){return this.getToken($O.DO,0)}routineBody(){return this.getRuleContext(0,jP)}NOT(){return this.getToken($O.NOT,0)}get ruleIndex(){return $O.RULE_alterEvent}accept(t){return t.visitAlterEvent?t.visitAlterEvent(this):t.visitChildren(this)}},XN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}fullId(){return this.getRuleContext(0,kU)}routineOption(t){return void 0===t?this.getRuleContexts(KI):this.getRuleContext(t,KI)}get ruleIndex(){return $O.RULE_alterFunction}accept(t){return t.visitAlterFunction?t.visitAlterFunction(this):t.visitChildren(this)}},KN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}INSTANCE(){return this.getToken($O.INSTANCE,0)}ROTATE(){return this.getToken($O.ROTATE,0)}INNODB(){return this.getToken($O.INNODB,0)}MASTER(){return this.getToken($O.MASTER,0)}KEY(){return this.getToken($O.KEY,0)}get ruleIndex(){return $O.RULE_alterInstance}accept(t){return t.visitAlterInstance?t.visitAlterInstance(this):t.visitChildren(this)}},QN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}LOGFILE(){return this.getToken($O.LOGFILE,0)}GROUP(){return this.getToken($O.GROUP,0)}uid(){return this.getRuleContext(0,hm)}ADD(){return this.getToken($O.ADD,0)}UNDOFILE(){return this.getToken($O.UNDOFILE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}INITIAL_SIZE(){return this.getToken($O.INITIAL_SIZE,0)}fileSizeLiteral(){return this.getRuleContext(0,Rm)}WAIT(){return this.getToken($O.WAIT,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}get ruleIndex(){return $O.RULE_alterLogfileGroup}accept(t){return t.visitAlterLogfileGroup?t.visitAlterLogfileGroup(this):t.visitChildren(this)}},JN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}fullId(){return this.getRuleContext(0,kU)}routineOption(t){return void 0===t?this.getRuleContexts(KI):this.getRuleContext(t,KI)}get ruleIndex(){return $O.RULE_alterProcedure}accept(t){return t.visitAlterProcedure?t.visitAlterProcedure(this):t.visitChildren(this)}},ZN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}SERVER(){return this.getToken($O.SERVER,0)}uid(){return this.getRuleContext(0,hm)}OPTIONS(){return this.getToken($O.OPTIONS,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}serverOption(t){return void 0===t?this.getRuleContexts(zI):this.getRuleContext(t,zI)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_alterServer}accept(t){return t.visitAlterServer?t.visitAlterServer(this):t.visitChildren(this)}},qN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}IGNORE(){return this.getToken($O.IGNORE,0)}waitNowaitClause(){return this.getRuleContext(0,Jm)}alterSpecification(t){return void 0===t?this.getRuleContexts($N):this.getRuleContext(t,$N)}partitionDefinitions(){return this.getRuleContext(0,lN)}ONLINE(){return this.getToken($O.ONLINE,0)}OFFLINE(){return this.getToken($O.OFFLINE,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_alterTable}accept(t){return t.visitAlterTable?t.visitAlterTable(this):t.visitChildren(this)}},jN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uid(){return this.getRuleContext(0,hm)}DATAFILE(){return this.getToken($O.DATAFILE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}ADD(){return this.getToken($O.ADD,0)}DROP(){return this.getToken($O.DROP,0)}INITIAL_SIZE(){return this.getToken($O.INITIAL_SIZE,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}fileSizeLiteral(){return this.getRuleContext(0,Rm)}WAIT(){return this.getToken($O.WAIT,0)}get ruleIndex(){return $O.RULE_alterTablespace}accept(t){return t.visitAlterTablespace?t.visitAlterTablespace(this):t.visitChildren(this)}},zN=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken($O.ALTER,0)}VIEW(){return this.getToken($O.VIEW,0)}fullId(){return this.getRuleContext(0,kU)}AS(){return this.getToken($O.AS,0)}selectStatement(){return this.getRuleContext(0,_C)}ALGORITHM(){return this.getToken($O.ALGORITHM,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}ownerStatement(){return this.getRuleContext(0,GI)}SQL(){return this.getToken($O.SQL,0)}SECURITY(){return this.getToken($O.SECURITY,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}WITH(){return this.getToken($O.WITH,0)}CHECK(){return this.getToken($O.CHECK,0)}OPTION(){return this.getToken($O.OPTION,0)}UNDEFINED(){return this.getToken($O.UNDEFINED,0)}MERGE(){return this.getToken($O.MERGE,0)}TEMPTABLE(){return this.getToken($O.TEMPTABLE,0)}DEFINER(){return this.getToken($O.DEFINER,0)}INVOKER(){return this.getToken($O.INVOKER,0)}CASCADED(){return this.getToken($O.CASCADED,0)}LOCAL(){return this.getToken($O.LOCAL,0)}get ruleIndex(){return $O.RULE_alterView}accept(t){return t.visitAlterView?t.visitAlterView(this):t.visitChildren(this)}},$N=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_alterSpecification}copyFrom(t){super.copyFrom(t)}},tL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}uid(){return this.getRuleContext(0,hm)}SET(){return this.getToken($O.SET,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}DROP(){return this.getToken($O.DROP,0)}COLUMN(){return this.getToken($O.COLUMN,0)}VISIBLE(){return this.getToken($O.VISIBLE,0)}INVISIBLE(){return this.getToken($O.INVISIBLE,0)}stringLiteral(){return this.getRuleContext(0,Am)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitAlterByAlterColumnDefault?t.visitAlterByAlterColumnDefault(this):t.visitChildren(this)}},eL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DISABLE(){return this.getToken($O.DISABLE,0)}KEYS(){return this.getToken($O.KEYS,0)}accept(t){return t.visitAlterByDisableKeys?t.visitAlterByDisableKeys(this):t.visitChildren(this)}},sL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(){return this.getToken($O.SET,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}charsetName(){return this.getRuleContext(0,tm)}DEFAULT(){return this.getToken($O.DEFAULT,0)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitAlterByDefaultCharset?t.visitAlterByDefaultCharset(this):t.visitChildren(this)}},aL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RENAME(){return this.getToken($O.RENAME,0)}COLUMN(){return this.getToken($O.COLUMN,0)}TO(){return this.getToken($O.TO,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}accept(t){return t.visitAlterByRenameColumn?t.visitAlterByRenameColumn(this):t.visitChildren(this)}},iL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CONVERT(){return this.getToken($O.CONVERT,0)}TO(){return this.getToken($O.TO,0)}charsetName(){return this.getRuleContext(0,tm)}CHARSET(){return this.getToken($O.CHARSET,0)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(){return this.getToken($O.SET,0)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitAlterByConvertCharset?t.visitAlterByConvertCharset(this):t.visitChildren(this)}},rL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}FOREIGN(){return this.getToken($O.FOREIGN,0)}KEY(){return this.getToken($O.KEY,0)}indexColumnNames(){return this.getRuleContext(0,vm)}referenceDefinition(){return this.getRuleContext(0,Uu)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}accept(t){return t.visitAlterByAddForeignKey?t.visitAlterByAddForeignKey(this):t.visitChildren(this)}},cL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RENAME(){return this.getToken($O.RENAME,0)}indexName(){return this.getRuleContext(0,WU)}TO(){return this.getToken($O.TO,0)}uid(){return this.getRuleContext(0,hm)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitAlterByRenameIndex?t.visitAlterByRenameIndex(this):t.visitChildren(this)}},nL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RENAME(){return this.getToken($O.RENAME,0)}uid(){return this.getRuleContext(0,hm)}fullId(){return this.getRuleContext(0,kU)}TO(){return this.getToken($O.TO,0)}AS(){return this.getToken($O.AS,0)}accept(t){return t.visitAlterByRename?t.visitAlterByRename(this):t.visitChildren(this)}},hL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}IMPORT(){return this.getToken($O.IMPORT,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}accept(t){return t.visitAlterByImportTablespace?t.visitAlterByImportTablespace(this):t.visitChildren(this)}},EL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}createDefinition(t){return void 0===t?this.getRuleContexts(tu):this.getRuleContext(t,tu)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COLUMN(){return this.getToken($O.COLUMN,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAlterByAddDefinitions?t.visitAlterByAddDefinitions(this):t.visitChildren(this)}},TL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}CHECK(){return this.getToken($O.CHECK,0)}uid(){return this.getRuleContext(0,hm)}stringLiteral(){return this.getRuleContext(0,Am)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}NOT(){return this.getToken($O.NOT,0)}ENFORCED(){return this.getToken($O.ENFORCED,0)}constraintName(){return this.getRuleContext(0,VU)}accept(t){return t.visitAlterByAlterCheckTableConstraint?t.visitAlterByAlterCheckTableConstraint(this):t.visitChildren(this)}},oL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken($O.DROP,0)}constraintName(){return this.getRuleContext(0,VU)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}CHECK(){return this.getToken($O.CHECK,0)}accept(t){return t.visitAlterByDropConstraintCheck?t.visitAlterByDropConstraintCheck(this):t.visitChildren(this)}},RL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}columnDefinition(t){return void 0===t?this.getRuleContexts(iu):this.getRuleContext(t,iu)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COLUMN(){return this.getToken($O.COLUMN,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAlterByAddColumns?t.visitAlterByAddColumns(this):t.visitChildren(this)}},AL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}INDEX(){return this.getToken($O.INDEX,0)}indexName(){return this.getRuleContext(0,WU)}VISIBLE(){return this.getToken($O.VISIBLE,0)}INVISIBLE(){return this.getToken($O.INVISIBLE,0)}accept(t){return t.visitAlterByAlterIndexVisibility?t.visitAlterByAlterIndexVisibility(this):t.visitChildren(this)}},SL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken($O.DROP,0)}FOREIGN(){return this.getToken($O.FOREIGN,0)}KEY(){return this.getToken($O.KEY,0)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitAlterByDropForeignKey?t.visitAlterByDropForeignKey(this):t.visitChildren(this)}},lL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}CHECK(){return this.getToken($O.CHECK,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}stringLiteral(){return this.getRuleContext(0,Am)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}NOT(){return this.getToken($O.NOT,0)}ENFORCED(){return this.getToken($O.ENFORCED,0)}accept(t){return t.visitAlterByAddCheckTableConstraint?t.visitAlterByAddCheckTableConstraint(this):t.visitChildren(this)}},OL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}alterPartitionSpecification(){return this.getRuleContext(0,vL)}accept(t){return t.visitAlterPartition?t.visitAlterPartition(this):t.visitChildren(this)}},IL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}indexColumnNames(){return this.getRuleContext(0,vm)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}uid(){return this.getRuleContext(0,hm)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}accept(t){return t.visitAlterByAddIndex?t.visitAlterByAddIndex(this):t.visitChildren(this)}},uL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken($O.DROP,0)}uid(){return this.getRuleContext(0,hm)}COLUMN(){return this.getToken($O.COLUMN,0)}RESTRICT(){return this.getToken($O.RESTRICT,0)}accept(t){return t.visitAlterByDropColumn?t.visitAlterByDropColumn(this):t.visitChildren(this)}},NL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}uid(){return this.getRuleContext(0,hm)}SET(){return this.getToken($O.SET,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}defaultValue(){return this.getRuleContext(0,bm)}DROP(){return this.getToken($O.DROP,0)}COLUMN(){return this.getToken($O.COLUMN,0)}accept(t){return t.visitAlterByChangeDefault?t.visitAlterByChangeDefault(this):t.visitChildren(this)}},LL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FORCE(){return this.getToken($O.FORCE,0)}accept(t){return t.visitAlterByForce?t.visitAlterByForce(this):t.visitChildren(this)}},CL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}indexColumnNames(){return this.getRuleContext(0,vm)}FULLTEXT(){return this.getToken($O.FULLTEXT,0)}SPATIAL(){return this.getToken($O.SPATIAL,0)}uid(){return this.getRuleContext(0,hm)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitAlterByAddSpecialIndex?t.visitAlterByAddSpecialIndex(this):t.visitChildren(this)}},_L=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken($O.MODIFY,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}columnDefinition(){return this.getRuleContext(0,iu)}COLUMN(){return this.getToken($O.COLUMN,0)}FIRST(){return this.getToken($O.FIRST,0)}AFTER(){return this.getToken($O.AFTER,0)}accept(t){return t.visitAlterByModifyColumn?t.visitAlterByModifyColumn(this):t.visitChildren(this)}},PL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableOption(t){return void 0===t?this.getRuleContexts(ku):this.getRuleContext(t,ku)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAlterByTableOption?t.visitAlterByTableOption(this):t.visitChildren(this)}},ML=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken($O.DROP,0)}PRIMARY(){return this.getToken($O.PRIMARY,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitAlterByDropPrimaryKey?t.visitAlterByDropPrimaryKey(this):t.visitChildren(this)}},dL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LOCK(){return this.getToken($O.LOCK,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}NONE(){return this.getToken($O.NONE,0)}SHARED(){return this.getToken($O.SHARED,0)}EXCLUSIVE(){return this.getToken($O.EXCLUSIVE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitAlterByLock?t.visitAlterByLock(this):t.visitChildren(this)}},UL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DISCARD(){return this.getToken($O.DISCARD,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}accept(t){return t.visitAlterByDiscardTablespace?t.visitAlterByDiscardTablespace(this):t.visitChildren(this)}},mL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}VALIDATION(){return this.getToken($O.VALIDATION,0)}WITHOUT(){return this.getToken($O.WITHOUT,0)}WITH(){return this.getToken($O.WITH,0)}accept(t){return t.visitAlterByValidate?t.visitAlterByValidate(this):t.visitChildren(this)}},DL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}PRIMARY(){return this.getToken($O.PRIMARY,0)}KEY(){return this.getToken($O.KEY,0)}indexColumnNames(){return this.getRuleContext(0,vm)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}accept(t){return t.visitAlterByAddPrimaryKey?t.visitAlterByAddPrimaryKey(this):t.visitChildren(this)}},pL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ENABLE(){return this.getToken($O.ENABLE,0)}KEYS(){return this.getToken($O.KEYS,0)}accept(t){return t.visitAlterByEnableKeys?t.visitAlterByEnableKeys(this):t.visitChildren(this)}},gL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALGORITHM(){return this.getToken($O.ALGORITHM,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}INSTANT(){return this.getToken($O.INSTANT,0)}INPLACE(){return this.getToken($O.INPLACE,0)}COPY(){return this.getToken($O.COPY,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}accept(t){return t.visitAlterBySetAlgorithm?t.visitAlterBySetAlgorithm(this):t.visitChildren(this)}},xL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHANGE(){return this.getToken($O.CHANGE,0)}columnDefinition(){return this.getRuleContext(0,iu)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COLUMN(){return this.getToken($O.COLUMN,0)}FIRST(){return this.getToken($O.FIRST,0)}AFTER(){return this.getToken($O.AFTER,0)}accept(t){return t.visitAlterByChangeColumn?t.visitAlterByChangeColumn(this):t.visitChildren(this)}},kL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}UNIQUE(){return this.getToken($O.UNIQUE,0)}indexColumnNames(){return this.getRuleContext(0,vm)}CONSTRAINT(){return this.getToken($O.CONSTRAINT,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}indexType(){return this.getRuleContext(0,bI)}indexOption(t){return void 0===t?this.getRuleContexts(WI):this.getRuleContext(t,WI)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitAlterByAddUniqueKey?t.visitAlterByAddUniqueKey(this):t.visitChildren(this)}},HL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken($O.DROP,0)}indexName(){return this.getRuleContext(0,WU)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}accept(t){return t.visitAlterByDropIndex?t.visitAlterByDropIndex(this):t.visitChildren(this)}},GL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}columnDefinition(){return this.getRuleContext(0,iu)}COLUMN(){return this.getToken($O.COLUMN,0)}FIRST(){return this.getToken($O.FIRST,0)}AFTER(){return this.getToken($O.AFTER,0)}accept(t){return t.visitAlterByAddColumn?t.visitAlterByAddColumn(this):t.visitChildren(this)}},FL=class extends $N{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ORDER(){return this.getToken($O.ORDER,0)}BY(){return this.getToken($O.BY,0)}uidList(){return this.getRuleContext(0,Hm)}accept(t){return t.visitAlterByOrder?t.visitAlterByOrder(this):t.visitChildren(this)}},vL=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_alterPartitionSpecification}copyFrom(t){super.copyFrom(t)}},BL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}IMPORT(){return this.getToken($O.IMPORT,0)}PARTITION(){return this.getToken($O.PARTITION,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByImportPartition?t.visitAlterByImportPartition(this):t.visitChildren(this)}},yL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken($O.DROP,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}accept(t){return t.visitAlterByDropPartition?t.visitAlterByDropPartition(this):t.visitChildren(this)}},fL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DISCARD(){return this.getToken($O.DISCARD,0)}PARTITION(){return this.getToken($O.PARTITION,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByDiscardPartition?t.visitAlterByDiscardPartition(this):t.visitChildren(this)}},YL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken($O.ADD,0)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}partitionDefinition(t){return void 0===t?this.getRuleContexts(MN):this.getRuleContext(t,MN)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAlterByAddPartition?t.visitAlterByAddPartition(this):t.visitChildren(this)}},wL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REMOVE(){return this.getToken($O.REMOVE,0)}PARTITIONING(){return this.getToken($O.PARTITIONING,0)}accept(t){return t.visitAlterByRemovePartitioning?t.visitAlterByRemovePartitioning(this):t.visitChildren(this)}},bL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}OPTIMIZE(){return this.getToken($O.OPTIMIZE,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByOptimizePartition?t.visitAlterByOptimizePartition(this):t.visitChildren(this)}},WL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHECK(){return this.getToken($O.CHECK,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByCheckPartition?t.visitAlterByCheckPartition(this):t.visitChildren(this)}},VL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COALESCE(){return this.getToken($O.COALESCE,0)}PARTITION(){return this.getToken($O.PARTITION,0)}decimalLiteral(){return this.getRuleContext(0,om)}accept(t){return t.visitAlterByCoalescePartition?t.visitAlterByCoalescePartition(this):t.visitChildren(this)}},XL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REORGANIZE(){return this.getToken($O.REORGANIZE,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}INTO(){return this.getToken($O.INTO,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}partitionDefinition(t){return void 0===t?this.getRuleContexts(MN):this.getRuleContext(t,MN)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAlterByReorganizePartition?t.visitAlterByReorganizePartition(this):t.visitChildren(this)}},KL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ANALYZE(){return this.getToken($O.ANALYZE,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByAnalyzePartition?t.visitAlterByAnalyzePartition(this):t.visitChildren(this)}},QL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REBUILD(){return this.getToken($O.REBUILD,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByRebuildPartition?t.visitAlterByRebuildPartition(this):t.visitChildren(this)}},JL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}UPGRADE(){return this.getToken($O.UPGRADE,0)}PARTITIONING(){return this.getToken($O.PARTITIONING,0)}accept(t){return t.visitAlterByUpgradePartitioning?t.visitAlterByUpgradePartitioning(this):t.visitChildren(this)}},ZL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TRUNCATE(){return this.getToken($O.TRUNCATE,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByTruncatePartition?t.visitAlterByTruncatePartition(this):t.visitChildren(this)}},qL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPAIR(){return this.getToken($O.REPAIR,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}accept(t){return t.visitAlterByRepairPartition?t.visitAlterByRepairPartition(this):t.visitChildren(this)}},jL=class extends vL{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXCHANGE(){return this.getToken($O.EXCHANGE,0)}PARTITION(){return this.getToken($O.PARTITION,0)}uid(){return this.getRuleContext(0,hm)}WITH(t){return void 0===t?this.getTokens($O.WITH):this.getToken($O.WITH,t)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}VALIDATION(){return this.getToken($O.VALIDATION,0)}WITHOUT(){return this.getToken($O.WITHOUT,0)}accept(t){return t.visitAlterByExchangePartition?t.visitAlterByExchangePartition(this):t.visitChildren(this)}},zL=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}databaseName(){return this.getRuleContext(0,bU)}DATABASE(){return this.getToken($O.DATABASE,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropDatabase}accept(t){return t.visitDropDatabase?t.visitDropDatabase(this):t.visitChildren(this)}},$L=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}EVENT(){return this.getToken($O.EVENT,0)}fullId(){return this.getRuleContext(0,kU)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropEvent}accept(t){return t.visitDropEvent?t.visitDropEvent(this):t.visitChildren(this)}},tC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}INDEX(){return this.getToken($O.INDEX,0)}indexName(){return this.getRuleContext(0,WU)}ON(){return this.getToken($O.ON,0)}tableName(){return this.getRuleContext(0,HU)}ALGORITHM(t){return void 0===t?this.getTokens($O.ALGORITHM):this.getToken($O.ALGORITHM,t)}LOCK(t){return void 0===t?this.getTokens($O.LOCK):this.getToken($O.LOCK,t)}ONLINE(){return this.getToken($O.ONLINE,0)}OFFLINE(){return this.getToken($O.OFFLINE,0)}DEFAULT(t){return void 0===t?this.getTokens($O.DEFAULT):this.getToken($O.DEFAULT,t)}INPLACE(t){return void 0===t?this.getTokens($O.INPLACE):this.getToken($O.INPLACE,t)}COPY(t){return void 0===t?this.getTokens($O.COPY):this.getToken($O.COPY,t)}NONE(t){return void 0===t?this.getTokens($O.NONE):this.getToken($O.NONE,t)}SHARED(t){return void 0===t?this.getTokens($O.SHARED):this.getToken($O.SHARED,t)}EXCLUSIVE(t){return void 0===t?this.getTokens($O.EXCLUSIVE):this.getToken($O.EXCLUSIVE,t)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}get ruleIndex(){return $O.RULE_dropIndex}accept(t){return t.visitDropIndex?t.visitDropIndex(this):t.visitChildren(this)}},eC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}LOGFILE(){return this.getToken($O.LOGFILE,0)}GROUP(){return this.getToken($O.GROUP,0)}uid(){return this.getRuleContext(0,hm)}ENGINE(){return this.getToken($O.ENGINE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}engineName(){return this.getRuleContext(0,sm)}get ruleIndex(){return $O.RULE_dropLogfileGroup}accept(t){return t.visitDropLogfileGroup?t.visitDropLogfileGroup(this):t.visitChildren(this)}},sC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}fullId(){return this.getRuleContext(0,kU)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropProcedure}accept(t){return t.visitDropProcedure?t.visitDropProcedure(this):t.visitChildren(this)}},aC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}fullId(){return this.getRuleContext(0,kU)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropFunction}accept(t){return t.visitDropFunction?t.visitDropFunction(this):t.visitChildren(this)}},iC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}SERVER(){return this.getToken($O.SERVER,0)}uid(){return this.getRuleContext(0,hm)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropServer}accept(t){return t.visitDropServer?t.visitDropServer(this):t.visitChildren(this)}},rC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}TABLE(){return this.getToken($O.TABLE,0)}tables(){return this.getRuleContext(0,Fm)}TEMPORARY(){return this.getToken($O.TEMPORARY,0)}ifExists(){return this.getRuleContext(0,Xm)}RESTRICT(){return this.getToken($O.RESTRICT,0)}CASCADE(){return this.getToken($O.CASCADE,0)}get ruleIndex(){return $O.RULE_dropTable}accept(t){return t.visitDropTable?t.visitDropTable(this):t.visitChildren(this)}},cC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}uid(){return this.getRuleContext(0,hm)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}get ruleIndex(){return $O.RULE_dropTablespace}accept(t){return t.visitDropTablespace?t.visitDropTablespace(this):t.visitChildren(this)}},nC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}TRIGGER(){return this.getToken($O.TRIGGER,0)}triggerName(){return this.getRuleContext(0,XU)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropTrigger}accept(t){return t.visitDropTrigger?t.visitDropTrigger(this):t.visitChildren(this)}},hC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}VIEW(){return this.getToken($O.VIEW,0)}fullId(t){return void 0===t?this.getRuleContexts(kU):this.getRuleContext(t,kU)}ifExists(){return this.getRuleContext(0,Xm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}RESTRICT(){return this.getToken($O.RESTRICT,0)}CASCADE(){return this.getToken($O.CASCADE,0)}get ruleIndex(){return $O.RULE_dropView}accept(t){return t.visitDropView?t.visitDropView(this):t.visitChildren(this)}},EC=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}ROLE(){return this.getToken($O.ROLE,0)}roleNameList(){return this.getRuleContext(0,fU)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropRole}accept(t){return t.visitDropRole?t.visitDropRole(this):t.visitChildren(this)}},TC=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken($O.SET,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}ROLE(){return this.getToken($O.ROLE,0)}TO(){return this.getToken($O.TO,0)}userNameList(){return this.getRuleContext(0,qU)}NONE(){return this.getToken($O.NONE,0)}ALL(){return this.getToken($O.ALL,0)}roleNameList(){return this.getRuleContext(0,fU)}roleOption(){return this.getRuleContext(0,HM)}get ruleIndex(){return $O.RULE_setRole}accept(t){return t.visitSetRole?t.visitSetRole(this):t.visitChildren(this)}},oC=class extends p{constructor(t,e){super(t,e)}RENAME(){return this.getToken($O.RENAME,0)}TABLE(){return this.getToken($O.TABLE,0)}renameTableClause(t){return void 0===t?this.getRuleContexts(RC):this.getRuleContext(t,RC)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_renameTable}accept(t){return t.visitRenameTable?t.visitRenameTable(this):t.visitChildren(this)}},RC=class extends p{constructor(t,e){super(t,e)}tableName(t){return void 0===t?this.getRuleContexts(HU):this.getRuleContext(t,HU)}TO(){return this.getToken($O.TO,0)}get ruleIndex(){return $O.RULE_renameTableClause}accept(t){return t.visitRenameTableClause?t.visitRenameTableClause(this):t.visitChildren(this)}},AC=class extends p{constructor(t,e){super(t,e)}TRUNCATE(){return this.getToken($O.TRUNCATE,0)}tableName(){return this.getRuleContext(0,HU)}TABLE(){return this.getToken($O.TABLE,0)}get ruleIndex(){return $O.RULE_truncateTable}accept(t){return t.visitTruncateTable?t.visitTruncateTable(this):t.visitChildren(this)}},SC=class extends p{constructor(t,e){super(t,e)}CALL(){return this.getToken($O.CALL,0)}fullId(){return this.getRuleContext(0,kU)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}constants(){return this.getRuleContext(0,fm)}expressions(){return this.getRuleContext(0,Bm)}get ruleIndex(){return $O.RULE_callStatement}accept(t){return t.visitCallStatement?t.visitCallStatement(this):t.visitChildren(this)}},lC=class extends p{constructor(t,e){super(t,e)}singleDeleteStatement(){return this.getRuleContext(0,GC)}multipleDeleteStatement(){return this.getRuleContext(0,FC)}get ruleIndex(){return $O.RULE_deleteStatement}accept(t){return t.visitDeleteStatement?t.visitDeleteStatement(this):t.visitChildren(this)}},OC=class extends p{constructor(t,e){super(t,e)}DO(){return this.getToken($O.DO,0)}expressions(){return this.getRuleContext(0,Bm)}get ruleIndex(){return $O.RULE_doStatement}accept(t){return t.visitDoStatement?t.visitDoStatement(this):t.visitChildren(this)}},IC=class extends p{constructor(t,e){super(t,e)}handlerOpenStatement(){return this.getRuleContext(0,vC)}handlerReadIndexStatement(){return this.getRuleContext(0,BC)}handlerReadStatement(){return this.getRuleContext(0,yC)}handlerCloseStatement(){return this.getRuleContext(0,fC)}get ruleIndex(){return $O.RULE_handlerStatement}accept(t){return t.visitHandlerStatement?t.visitHandlerStatement(this):t.visitChildren(this)}},uC=class extends p{constructor(t,e){super(t,e),this._setElements=[],this._duplicatedElements=[]}INSERT(){return this.getToken($O.INSERT,0)}tableName(){return this.getRuleContext(0,HU)}insertStatementValue(){return this.getRuleContext(0,gC)}SET(){return this.getToken($O.SET,0)}IGNORE(){return this.getToken($O.IGNORE,0)}INTO(){return this.getToken($O.INTO,0)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}updatedElement(t){return void 0===t?this.getRuleContexts(xC):this.getRuleContext(t,xC)}ON(){return this.getToken($O.ON,0)}DUPLICATE(){return this.getToken($O.DUPLICATE,0)}KEY(){return this.getToken($O.KEY,0)}UPDATE(){return this.getToken($O.UPDATE,0)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}DELAYED(){return this.getToken($O.DELAYED,0)}HIGH_PRIORITY(){return this.getToken($O.HIGH_PRIORITY,0)}uid(){return this.getRuleContext(0,hm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}uidList(){return this.getRuleContext(0,Hm)}AS(){return this.getToken($O.AS,0)}fullColumnNameList(){return this.getRuleContext(0,Gm)}get ruleIndex(){return $O.RULE_insertStatement}accept(t){return t.visitInsertStatement?t.visitInsertStatement(this):t.visitChildren(this)}},NC=class extends p{constructor(t,e){super(t,e)}LOAD(){return this.getToken($O.LOAD,0)}DATA(){return this.getToken($O.DATA,0)}INFILE(){return this.getToken($O.INFILE,0)}INTO(){return this.getToken($O.INTO,0)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}LOCAL(){return this.getToken($O.LOCAL,0)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(t){return void 0===t?this.getTokens($O.SET):this.getToken($O.SET,t)}LINES(t){return void 0===t?this.getTokens($O.LINES):this.getToken($O.LINES,t)}IGNORE(t){return void 0===t?this.getTokens($O.IGNORE):this.getToken($O.IGNORE,t)}decimalLiteral(){return this.getRuleContext(0,om)}assignmentField(t){return void 0===t?this.getRuleContexts(kC):this.getRuleContext(t,kC)}updatedElement(t){return void 0===t?this.getRuleContexts(xC):this.getRuleContext(t,xC)}charsetName(){return this.getRuleContext(0,tm)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}CONCURRENT(){return this.getToken($O.CONCURRENT,0)}REPLACE(){return this.getToken($O.REPLACE,0)}FIELDS(){return this.getToken($O.FIELDS,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}ROWS(){return this.getToken($O.ROWS,0)}selectFieldsInto(t){return void 0===t?this.getRuleContexts(x_):this.getRuleContext(t,x_)}selectLinesInto(t){return void 0===t?this.getRuleContexts(k_):this.getRuleContext(t,k_)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_loadDataStatement}accept(t){return t.visitLoadDataStatement?t.visitLoadDataStatement(this):t.visitChildren(this)}},LC=class extends p{constructor(t,e){super(t,e)}LOAD(){return this.getToken($O.LOAD,0)}XML(){return this.getToken($O.XML,0)}INFILE(){return this.getToken($O.INFILE,0)}INTO(){return this.getToken($O.INTO,0)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}LOCAL(){return this.getToken($O.LOCAL,0)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(t){return void 0===t?this.getTokens($O.SET):this.getToken($O.SET,t)}ROWS(t){return void 0===t?this.getTokens($O.ROWS):this.getToken($O.ROWS,t)}IDENTIFIED(){return this.getToken($O.IDENTIFIED,0)}BY(){return this.getToken($O.BY,0)}LESS_SYMBOL(){return this.getToken($O.LESS_SYMBOL,0)}GREATER_SYMBOL(){return this.getToken($O.GREATER_SYMBOL,0)}IGNORE(t){return void 0===t?this.getTokens($O.IGNORE):this.getToken($O.IGNORE,t)}decimalLiteral(){return this.getRuleContext(0,om)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}assignmentField(t){return void 0===t?this.getRuleContexts(kC):this.getRuleContext(t,kC)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}updatedElement(t){return void 0===t?this.getRuleContexts(xC):this.getRuleContext(t,xC)}charsetName(){return this.getRuleContext(0,tm)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}CONCURRENT(){return this.getToken($O.CONCURRENT,0)}REPLACE(){return this.getToken($O.REPLACE,0)}LINES(){return this.getToken($O.LINES,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_loadXmlStatement}accept(t){return t.visitLoadXmlStatement?t.visitLoadXmlStatement(this):t.visitChildren(this)}},CC=class extends p{constructor(t,e){super(t,e),this._setElements=[]}REPLACE(){return this.getToken($O.REPLACE,0)}tableName(){return this.getRuleContext(0,HU)}insertStatementValue(){return this.getRuleContext(0,gC)}SET(){return this.getToken($O.SET,0)}INTO(){return this.getToken($O.INTO,0)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}updatedElement(t){return void 0===t?this.getRuleContexts(xC):this.getRuleContext(t,xC)}uidList(t){return void 0===t?this.getRuleContexts(Hm):this.getRuleContext(t,Hm)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}DELAYED(){return this.getToken($O.DELAYED,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_replaceStatement}accept(t){return t.visitReplaceStatement?t.visitReplaceStatement(this):t.visitChildren(this)}},_C=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_selectStatement}copyFrom(t){super.copyFrom(t)}},PC=class extends _C{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}querySpecificationNointo(){return this.getRuleContext(0,T_)}queryExpressionNointo(){return this.getRuleContext(0,h_)}unionStatement(t){return void 0===t?this.getRuleContexts(R_):this.getRuleContext(t,R_)}UNION(){return this.getToken($O.UNION,0)}orderByClause(){return this.getRuleContext(0,bC)}limitClause(){return this.getRuleContext(0,y_)}lockClause(){return this.getRuleContext(0,HC)}querySpecification(){return this.getRuleContext(0,E_)}queryExpression(){return this.getRuleContext(0,n_)}ALL(){return this.getToken($O.ALL,0)}DISTINCT(){return this.getToken($O.DISTINCT,0)}accept(t){return t.visitUnionSelect?t.visitUnionSelect(this):t.visitChildren(this)}},MC=class extends _C{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}queryExpressionNointo(){return this.getRuleContext(0,h_)}unionParenthesis(t){return void 0===t?this.getRuleContexts(o_):this.getRuleContext(t,o_)}UNION(){return this.getToken($O.UNION,0)}queryExpression(){return this.getRuleContext(0,n_)}orderByClause(){return this.getRuleContext(0,bC)}limitClause(){return this.getRuleContext(0,y_)}lockClause(){return this.getRuleContext(0,HC)}ALL(){return this.getToken($O.ALL,0)}DISTINCT(){return this.getToken($O.DISTINCT,0)}accept(t){return t.visitUnionParenthesisSelect?t.visitUnionParenthesisSelect(this):t.visitChildren(this)}},dC=class extends _C{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}querySpecification(){return this.getRuleContext(0,E_)}lockClause(){return this.getRuleContext(0,HC)}accept(t){return t.visitSimpleSelect?t.visitSimpleSelect(this):t.visitChildren(this)}},UC=class extends _C{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}queryExpression(){return this.getRuleContext(0,n_)}lockClause(){return this.getRuleContext(0,HC)}accept(t){return t.visitParenthesisSelect?t.visitParenthesisSelect(this):t.visitChildren(this)}},mC=class extends _C{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}querySpecificationNointo(){return this.getRuleContext(0,T_)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}lateralStatement(t){return void 0===t?this.getRuleContexts(A_):this.getRuleContext(t,A_)}accept(t){return t.visitWithLateralStatement?t.visitWithLateralStatement(this):t.visitChildren(this)}},DC=class extends p{constructor(t,e){super(t,e)}singleUpdateStatement(){return this.getRuleContext(0,YC)}multipleUpdateStatement(){return this.getRuleContext(0,wC)}get ruleIndex(){return $O.RULE_updateStatement}accept(t){return t.visitUpdateStatement?t.visitUpdateStatement(this):t.visitChildren(this)}},pC=class extends p{constructor(t,e){super(t,e)}VALUES(){return this.getToken($O.VALUES,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}expressionsWithDefaults(t){return void 0===t?this.getRuleContexts(ym):this.getRuleContext(t,ym)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_valuesStatement}accept(t){return t.visitValuesStatement?t.visitValuesStatement(this):t.visitChildren(this)}},gC=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,_C)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}VALUES(){return this.getToken($O.VALUES,0)}VALUE(){return this.getToken($O.VALUE,0)}expressionsWithDefaults(t){return void 0===t?this.getRuleContexts(ym):this.getRuleContext(t,ym)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_insertStatementValue}accept(t){return t.visitInsertStatementValue?t.visitInsertStatementValue(this):t.visitChildren(this)}},xC=class extends p{constructor(t,e){super(t,e)}fullColumnName(){return this.getRuleContext(0,wU)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}expression(){return this.getRuleContext(0,BD)}DEFAULT(){return this.getToken($O.DEFAULT,0)}get ruleIndex(){return $O.RULE_updatedElement}accept(t){return t.visitUpdatedElement?t.visitUpdatedElement(this):t.visitChildren(this)}},kC=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}get ruleIndex(){return $O.RULE_assignmentField}accept(t){return t.visitAssignmentField?t.visitAssignmentField(this):t.visitChildren(this)}},HC=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken($O.FOR,0)}UPDATE(){return this.getToken($O.UPDATE,0)}LOCK(){return this.getToken($O.LOCK,0)}IN(){return this.getToken($O.IN,0)}SHARE(){return this.getToken($O.SHARE,0)}MODE(){return this.getToken($O.MODE,0)}get ruleIndex(){return $O.RULE_lockClause}accept(t){return t.visitLockClause?t.visitLockClause(this):t.visitChildren(this)}},GC=class extends p{constructor(t,e){super(t,e)}DELETE(){return this.getToken($O.DELETE,0)}FROM(){return this.getToken($O.FROM,0)}tableName(){return this.getRuleContext(0,HU)}QUICK(){return this.getToken($O.QUICK,0)}IGNORE(){return this.getToken($O.IGNORE,0)}uid(){return this.getRuleContext(0,hm)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}orderByClause(){return this.getRuleContext(0,bC)}LIMIT(){return this.getToken($O.LIMIT,0)}limitClauseAtom(){return this.getRuleContext(0,f_)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_singleDeleteStatement}accept(t){return t.visitSingleDeleteStatement?t.visitSingleDeleteStatement(this):t.visitChildren(this)}},FC=class extends p{constructor(t,e){super(t,e)}DELETE(){return this.getToken($O.DELETE,0)}tableName(t){return void 0===t?this.getRuleContexts(HU):this.getRuleContext(t,HU)}FROM(){return this.getToken($O.FROM,0)}tableSources(){return this.getRuleContext(0,VC)}USING(){return this.getToken($O.USING,0)}QUICK(){return this.getToken($O.QUICK,0)}IGNORE(){return this.getToken($O.IGNORE,0)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}DOT(t){return void 0===t?this.getTokens($O.DOT):this.getToken($O.DOT,t)}STAR(t){return void 0===t?this.getTokens($O.STAR):this.getToken($O.STAR,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_multipleDeleteStatement}accept(t){return t.visitMultipleDeleteStatement?t.visitMultipleDeleteStatement(this):t.visitChildren(this)}},vC=class extends p{constructor(t,e){super(t,e)}HANDLER(){return this.getToken($O.HANDLER,0)}tableName(){return this.getRuleContext(0,HU)}OPEN(){return this.getToken($O.OPEN,0)}uid(){return this.getRuleContext(0,hm)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_handlerOpenStatement}accept(t){return t.visitHandlerOpenStatement?t.visitHandlerOpenStatement(this):t.visitChildren(this)}},BC=class extends p{constructor(t,e){super(t,e)}HANDLER(){return this.getToken($O.HANDLER,0)}tableName(){return this.getRuleContext(0,HU)}READ(){return this.getToken($O.READ,0)}uid(){return this.getRuleContext(0,hm)}comparisonOperator(){return this.getRuleContext(0,Ip)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}constants(){return this.getRuleContext(0,fm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}LIMIT(){return this.getToken($O.LIMIT,0)}limitClauseAtom(){return this.getRuleContext(0,f_)}FIRST(){return this.getToken($O.FIRST,0)}NEXT(){return this.getToken($O.NEXT,0)}PREV(){return this.getToken($O.PREV,0)}LAST(){return this.getToken($O.LAST,0)}get ruleIndex(){return $O.RULE_handlerReadIndexStatement}accept(t){return t.visitHandlerReadIndexStatement?t.visitHandlerReadIndexStatement(this):t.visitChildren(this)}},yC=class extends p{constructor(t,e){super(t,e)}HANDLER(){return this.getToken($O.HANDLER,0)}tableName(){return this.getRuleContext(0,HU)}READ(){return this.getToken($O.READ,0)}FIRST(){return this.getToken($O.FIRST,0)}NEXT(){return this.getToken($O.NEXT,0)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}LIMIT(){return this.getToken($O.LIMIT,0)}limitClauseAtom(){return this.getRuleContext(0,f_)}get ruleIndex(){return $O.RULE_handlerReadStatement}accept(t){return t.visitHandlerReadStatement?t.visitHandlerReadStatement(this):t.visitChildren(this)}},fC=class extends p{constructor(t,e){super(t,e)}HANDLER(){return this.getToken($O.HANDLER,0)}tableName(){return this.getRuleContext(0,HU)}CLOSE(){return this.getToken($O.CLOSE,0)}get ruleIndex(){return $O.RULE_handlerCloseStatement}accept(t){return t.visitHandlerCloseStatement?t.visitHandlerCloseStatement(this):t.visitChildren(this)}},YC=class extends p{constructor(t,e){super(t,e)}UPDATE(){return this.getToken($O.UPDATE,0)}tableName(){return this.getRuleContext(0,HU)}SET(){return this.getToken($O.SET,0)}updatedElement(t){return void 0===t?this.getRuleContexts(xC):this.getRuleContext(t,xC)}IGNORE(){return this.getToken($O.IGNORE,0)}uid(){return this.getRuleContext(0,hm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}orderByClause(){return this.getRuleContext(0,bC)}limitClause(){return this.getRuleContext(0,y_)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_singleUpdateStatement}accept(t){return t.visitSingleUpdateStatement?t.visitSingleUpdateStatement(this):t.visitChildren(this)}},wC=class extends p{constructor(t,e){super(t,e)}UPDATE(){return this.getToken($O.UPDATE,0)}tableNames(){return this.getRuleContext(0,GU)}SET(){return this.getToken($O.SET,0)}updatedElement(t){return void 0===t?this.getRuleContexts(xC):this.getRuleContext(t,xC)}IGNORE(){return this.getToken($O.IGNORE,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}get ruleIndex(){return $O.RULE_multipleUpdateStatement}accept(t){return t.visitMultipleUpdateStatement?t.visitMultipleUpdateStatement(this):t.visitChildren(this)}},bC=class extends p{constructor(t,e){super(t,e)}ORDER(){return this.getToken($O.ORDER,0)}BY(){return this.getToken($O.BY,0)}orderByExpression(t){return void 0===t?this.getRuleContexts(WC):this.getRuleContext(t,WC)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_orderByClause}accept(t){return t.visitOrderByClause?t.visitOrderByClause(this):t.visitChildren(this)}},WC=class extends p{constructor(t,e){super(t,e)}expression(){return this.getRuleContext(0,BD)}ASC(){return this.getToken($O.ASC,0)}DESC(){return this.getToken($O.DESC,0)}get ruleIndex(){return $O.RULE_orderByExpression}accept(t){return t.visitOrderByExpression?t.visitOrderByExpression(this):t.visitChildren(this)}},VC=class extends p{constructor(t,e){super(t,e)}tableSource(t){return void 0===t?this.getRuleContexts(XC):this.getRuleContext(t,XC)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_tableSources}accept(t){return t.visitTableSources?t.visitTableSources(this):t.visitChildren(this)}},XC=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_tableSource}copyFrom(t){super.copyFrom(t)}},KC=class extends XC{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}jsonTable(){return this.getRuleContext(0,S_)}accept(t){return t.visitTableJson?t.visitTableJson(this):t.visitChildren(this)}},QC=class extends XC{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}tableSourceItem(){return this.getRuleContext(0,ZC)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}joinPart(t){return void 0===t?this.getRuleContexts(e_):this.getRuleContext(t,e_)}accept(t){return t.visitTableSourceNested?t.visitTableSourceNested(this):t.visitChildren(this)}},JC=class extends XC{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableSourceItem(){return this.getRuleContext(0,ZC)}joinPart(t){return void 0===t?this.getRuleContexts(e_):this.getRuleContext(t,e_)}accept(t){return t.visitTableSourceBase?t.visitTableSourceBase(this):t.visitChildren(this)}},ZC=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_tableSourceItem}copyFrom(t){super.copyFrom(t)}},qC=class extends ZC{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}uid(){return this.getRuleContext(0,hm)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}selectStatement(){return this.getRuleContext(0,_C)}AS(){return this.getToken($O.AS,0)}accept(t){return t.visitSubqueryTableItem?t.visitSubqueryTableItem(this):t.visitChildren(this)}},jC=class extends ZC{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableName(){return this.getRuleContext(0,HU)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}indexHint(t){return void 0===t?this.getRuleContexts($C):this.getRuleContext(t,$C)}uid(){return this.getRuleContext(0,hm)}AS(){return this.getToken($O.AS,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAtomTableItem?t.visitAtomTableItem(this):t.visitChildren(this)}},zC=class extends ZC{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}tableSources(){return this.getRuleContext(0,VC)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitTableSourcesItem?t.visitTableSourcesItem(this):t.visitChildren(this)}},$C=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}indexNameList(){return this.getRuleContext(0,KU)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}USE(){return this.getToken($O.USE,0)}IGNORE(){return this.getToken($O.IGNORE,0)}FORCE(){return this.getToken($O.FORCE,0)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}FOR(){return this.getToken($O.FOR,0)}indexHintType(){return this.getRuleContext(0,t_)}get ruleIndex(){return $O.RULE_indexHint}accept(t){return t.visitIndexHint?t.visitIndexHint(this):t.visitChildren(this)}},t_=class extends p{constructor(t,e){super(t,e)}JOIN(){return this.getToken($O.JOIN,0)}ORDER(){return this.getToken($O.ORDER,0)}BY(){return this.getToken($O.BY,0)}GROUP(){return this.getToken($O.GROUP,0)}get ruleIndex(){return $O.RULE_indexHintType}accept(t){return t.visitIndexHintType?t.visitIndexHintType(this):t.visitChildren(this)}},e_=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_joinPart}copyFrom(t){super.copyFrom(t)}},s_=class extends e_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}JOIN(){return this.getToken($O.JOIN,0)}tableSourceItem(){return this.getRuleContext(0,ZC)}LATERAL(){return this.getToken($O.LATERAL,0)}joinSpec(t){return void 0===t?this.getRuleContexts(c_):this.getRuleContext(t,c_)}INNER(){return this.getToken($O.INNER,0)}CROSS(){return this.getToken($O.CROSS,0)}accept(t){return t.visitInnerJoin?t.visitInnerJoin(this):t.visitChildren(this)}},a_=class extends e_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}NATURAL(){return this.getToken($O.NATURAL,0)}JOIN(){return this.getToken($O.JOIN,0)}tableSourceItem(){return this.getRuleContext(0,ZC)}LEFT(){return this.getToken($O.LEFT,0)}RIGHT(){return this.getToken($O.RIGHT,0)}OUTER(){return this.getToken($O.OUTER,0)}accept(t){return t.visitNaturalJoin?t.visitNaturalJoin(this):t.visitChildren(this)}},i_=class extends e_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}JOIN(){return this.getToken($O.JOIN,0)}tableSourceItem(){return this.getRuleContext(0,ZC)}LEFT(){return this.getToken($O.LEFT,0)}RIGHT(){return this.getToken($O.RIGHT,0)}OUTER(){return this.getToken($O.OUTER,0)}LATERAL(){return this.getToken($O.LATERAL,0)}joinSpec(t){return void 0===t?this.getRuleContexts(c_):this.getRuleContext(t,c_)}accept(t){return t.visitOuterJoin?t.visitOuterJoin(this):t.visitChildren(this)}},r_=class extends e_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STRAIGHT_JOIN(){return this.getToken($O.STRAIGHT_JOIN,0)}tableSourceItem(){return this.getRuleContext(0,ZC)}ON(t){return void 0===t?this.getTokens($O.ON):this.getToken($O.ON,t)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}accept(t){return t.visitStraightJoin?t.visitStraightJoin(this):t.visitChildren(this)}},c_=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken($O.ON,0)}expression(){return this.getRuleContext(0,BD)}USING(){return this.getToken($O.USING,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}get ruleIndex(){return $O.RULE_joinSpec}accept(t){return t.visitJoinSpec?t.visitJoinSpec(this):t.visitChildren(this)}},n_=class t extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}querySpecification(){return this.getRuleContext(0,E_)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}queryExpression(){return this.getRuleContext(0,t)}get ruleIndex(){return $O.RULE_queryExpression}accept(t){return t.visitQueryExpression?t.visitQueryExpression(this):t.visitChildren(this)}},h_=class t extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}querySpecificationNointo(){return this.getRuleContext(0,T_)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}queryExpressionNointo(){return this.getRuleContext(0,t)}get ruleIndex(){return $O.RULE_queryExpressionNointo}accept(t){return t.visitQueryExpressionNointo?t.visitQueryExpressionNointo(this):t.visitChildren(this)}},E_=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken($O.SELECT,0)}selectElements(){return this.getRuleContext(0,L_)}fromClause(){return this.getRuleContext(0,H_)}selectSpec(t){return void 0===t?this.getRuleContexts(N_):this.getRuleContext(t,N_)}selectIntoExpression(){return this.getRuleContext(0,m_)}groupByClause(){return this.getRuleContext(0,G_)}havingClause(){return this.getRuleContext(0,F_)}windowClause(){return this.getRuleContext(0,v_)}orderByClause(){return this.getRuleContext(0,bC)}limitClause(){return this.getRuleContext(0,y_)}get ruleIndex(){return $O.RULE_querySpecification}accept(t){return t.visitQuerySpecification?t.visitQuerySpecification(this):t.visitChildren(this)}},T_=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken($O.SELECT,0)}selectElements(){return this.getRuleContext(0,L_)}fromClause(){return this.getRuleContext(0,H_)}selectSpec(t){return void 0===t?this.getRuleContexts(N_):this.getRuleContext(t,N_)}groupByClause(){return this.getRuleContext(0,G_)}havingClause(){return this.getRuleContext(0,F_)}windowClause(){return this.getRuleContext(0,v_)}orderByClause(){return this.getRuleContext(0,bC)}limitClause(){return this.getRuleContext(0,y_)}unionStatement(){return this.getRuleContext(0,R_)}get ruleIndex(){return $O.RULE_querySpecificationNointo}accept(t){return t.visitQuerySpecificationNointo?t.visitQuerySpecificationNointo(this):t.visitChildren(this)}},o_=class extends p{constructor(t,e){super(t,e)}UNION(){return this.getToken($O.UNION,0)}queryExpressionNointo(){return this.getRuleContext(0,h_)}ALL(){return this.getToken($O.ALL,0)}DISTINCT(){return this.getToken($O.DISTINCT,0)}get ruleIndex(){return $O.RULE_unionParenthesis}accept(t){return t.visitUnionParenthesis?t.visitUnionParenthesis(this):t.visitChildren(this)}},R_=class extends p{constructor(t,e){super(t,e)}UNION(){return this.getToken($O.UNION,0)}querySpecificationNointo(){return this.getRuleContext(0,T_)}queryExpressionNointo(){return this.getRuleContext(0,h_)}ALL(){return this.getToken($O.ALL,0)}DISTINCT(){return this.getToken($O.DISTINCT,0)}get ruleIndex(){return $O.RULE_unionStatement}accept(t){return t.visitUnionStatement?t.visitUnionStatement(this):t.visitChildren(this)}},A_=class extends p{constructor(t,e){super(t,e)}LATERAL(){return this.getToken($O.LATERAL,0)}querySpecificationNointo(){return this.getRuleContext(0,T_)}queryExpressionNointo(){return this.getRuleContext(0,h_)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}uid(){return this.getRuleContext(0,hm)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_lateralStatement}accept(t){return t.visitLateralStatement?t.visitLateralStatement(this):t.visitChildren(this)}},S_=class extends p{constructor(t,e){super(t,e)}JSON_TABLE(){return this.getToken($O.JSON_TABLE,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}COMMA(){return this.getToken($O.COMMA,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}jsonColumnList(){return this.getRuleContext(0,l_)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}uid(){return this.getRuleContext(0,hm)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_jsonTable}accept(t){return t.visitJsonTable?t.visitJsonTable(this):t.visitChildren(this)}},l_=class extends p{constructor(t,e){super(t,e)}jsonColumn(t){return void 0===t?this.getRuleContexts(O_):this.getRuleContext(t,O_)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_jsonColumnList}accept(t){return t.visitJsonColumnList?t.visitJsonColumnList(this):t.visitChildren(this)}},O_=class extends p{constructor(t,e){super(t,e)}fullColumnName(){return this.getRuleContext(0,wU)}FOR(){return this.getToken($O.FOR,0)}ORDINALITY(){return this.getToken($O.ORDINALITY,0)}dataType(){return this.getRuleContext(0,um)}PATH(){return this.getToken($O.PATH,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}EXISTS(){return this.getToken($O.EXISTS,0)}jsonOnEmpty(){return this.getRuleContext(0,I_)}jsonOnError(){return this.getRuleContext(0,u_)}NESTED(){return this.getToken($O.NESTED,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}jsonColumnList(){return this.getRuleContext(0,l_)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}get ruleIndex(){return $O.RULE_jsonColumn}accept(t){return t.visitJsonColumn?t.visitJsonColumn(this):t.visitChildren(this)}},I_=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken($O.ON,0)}EMPTY(){return this.getToken($O.EMPTY,0)}NULL_LITERAL(){return this.getToken($O.NULL_LITERAL,0)}ERROR(){return this.getToken($O.ERROR,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}defaultValue(){return this.getRuleContext(0,bm)}get ruleIndex(){return $O.RULE_jsonOnEmpty}accept(t){return t.visitJsonOnEmpty?t.visitJsonOnEmpty(this):t.visitChildren(this)}},u_=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken($O.ON,0)}ERROR(t){return void 0===t?this.getTokens($O.ERROR):this.getToken($O.ERROR,t)}NULL_LITERAL(){return this.getToken($O.NULL_LITERAL,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}defaultValue(){return this.getRuleContext(0,bm)}get ruleIndex(){return $O.RULE_jsonOnError}accept(t){return t.visitJsonOnError?t.visitJsonOnError(this):t.visitChildren(this)}},N_=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken($O.ALL,0)}DISTINCT(){return this.getToken($O.DISTINCT,0)}DISTINCTROW(){return this.getToken($O.DISTINCTROW,0)}HIGH_PRIORITY(){return this.getToken($O.HIGH_PRIORITY,0)}STRAIGHT_JOIN(){return this.getToken($O.STRAIGHT_JOIN,0)}SQL_SMALL_RESULT(){return this.getToken($O.SQL_SMALL_RESULT,0)}SQL_BIG_RESULT(){return this.getToken($O.SQL_BIG_RESULT,0)}SQL_BUFFER_RESULT(){return this.getToken($O.SQL_BUFFER_RESULT,0)}SQL_CACHE(){return this.getToken($O.SQL_CACHE,0)}SQL_NO_CACHE(){return this.getToken($O.SQL_NO_CACHE,0)}SQL_CALC_FOUND_ROWS(){return this.getToken($O.SQL_CALC_FOUND_ROWS,0)}get ruleIndex(){return $O.RULE_selectSpec}accept(t){return t.visitSelectSpec?t.visitSelectSpec(this):t.visitChildren(this)}},L_=class extends p{constructor(t,e){super(t,e)}selectElement(t){return void 0===t?this.getRuleContexts(__):this.getRuleContext(t,__)}STAR(){return this.getToken($O.STAR,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_selectElements}accept(t){return t.visitSelectElements?t.visitSelectElements(this):t.visitChildren(this)}},C_=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_selectElementAlias}accept(t){return t.visitSelectElementAlias?t.visitSelectElementAlias(this):t.visitChildren(this)}},__=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_selectElement}copyFrom(t){super.copyFrom(t)}},P_=class extends __{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}expression(){return this.getRuleContext(0,BD)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}VAR_ASSIGN(){return this.getToken($O.VAR_ASSIGN,0)}selectElementAlias(){return this.getRuleContext(0,C_)}accept(t){return t.visitSelectExpressionElement?t.visitSelectExpressionElement(this):t.visitChildren(this)}},M_=class extends __{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}functionCall(){return this.getRuleContext(0,Zm)}selectElementAlias(){return this.getRuleContext(0,C_)}accept(t){return t.visitSelectFunctionElement?t.visitSelectFunctionElement(this):t.visitChildren(this)}},d_=class extends __{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}fullId(){return this.getRuleContext(0,kU)}DOT(){return this.getToken($O.DOT,0)}STAR(){return this.getToken($O.STAR,0)}accept(t){return t.visitSelectStarElement?t.visitSelectStarElement(this):t.visitChildren(this)}},U_=class extends __{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}fullColumnName(){return this.getRuleContext(0,wU)}selectElementAlias(){return this.getRuleContext(0,C_)}accept(t){return t.visitSelectColumnElement?t.visitSelectColumnElement(this):t.visitChildren(this)}},m_=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_selectIntoExpression}copyFrom(t){super.copyFrom(t)}},D_=class extends m_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INTO(){return this.getToken($O.INTO,0)}assignmentField(t){return void 0===t?this.getRuleContexts(kC):this.getRuleContext(t,kC)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitSelectIntoVariables?t.visitSelectIntoVariables(this):t.visitChildren(this)}},p_=class extends m_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INTO(){return this.getToken($O.INTO,0)}OUTFILE(){return this.getToken($O.OUTFILE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(){return this.getToken($O.SET,0)}LINES(){return this.getToken($O.LINES,0)}charsetName(){return this.getRuleContext(0,tm)}FIELDS(){return this.getToken($O.FIELDS,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}selectFieldsInto(t){return void 0===t?this.getRuleContexts(x_):this.getRuleContext(t,x_)}selectLinesInto(t){return void 0===t?this.getRuleContexts(k_):this.getRuleContext(t,k_)}accept(t){return t.visitSelectIntoTextFile?t.visitSelectIntoTextFile(this):t.visitChildren(this)}},g_=class extends m_{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INTO(){return this.getToken($O.INTO,0)}DUMPFILE(){return this.getToken($O.DUMPFILE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitSelectIntoDumpFile?t.visitSelectIntoDumpFile(this):t.visitChildren(this)}},x_=class extends p{constructor(t,e){super(t,e)}TERMINATED(){return this.getToken($O.TERMINATED,0)}BY(){return this.getToken($O.BY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ENCLOSED(){return this.getToken($O.ENCLOSED,0)}OPTIONALLY(){return this.getToken($O.OPTIONALLY,0)}ESCAPED(){return this.getToken($O.ESCAPED,0)}get ruleIndex(){return $O.RULE_selectFieldsInto}accept(t){return t.visitSelectFieldsInto?t.visitSelectFieldsInto(this):t.visitChildren(this)}},k_=class extends p{constructor(t,e){super(t,e)}STARTING(){return this.getToken($O.STARTING,0)}BY(){return this.getToken($O.BY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}TERMINATED(){return this.getToken($O.TERMINATED,0)}get ruleIndex(){return $O.RULE_selectLinesInto}accept(t){return t.visitSelectLinesInto?t.visitSelectLinesInto(this):t.visitChildren(this)}},H_=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken($O.FROM,0)}tableSources(){return this.getRuleContext(0,VC)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_fromClause}accept(t){return t.visitFromClause?t.visitFromClause(this):t.visitChildren(this)}},G_=class extends p{constructor(t,e){super(t,e)}GROUP(){return this.getToken($O.GROUP,0)}BY(){return this.getToken($O.BY,0)}groupByItem(t){return void 0===t?this.getRuleContexts(B_):this.getRuleContext(t,B_)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}WITH(){return this.getToken($O.WITH,0)}ROLLUP(){return this.getToken($O.ROLLUP,0)}get ruleIndex(){return $O.RULE_groupByClause}accept(t){return t.visitGroupByClause?t.visitGroupByClause(this):t.visitChildren(this)}},F_=class extends p{constructor(t,e){super(t,e)}HAVING(){return this.getToken($O.HAVING,0)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_havingClause}accept(t){return t.visitHavingClause?t.visitHavingClause(this):t.visitChildren(this)}},v_=class extends p{constructor(t,e){super(t,e)}WINDOW(){return this.getToken($O.WINDOW,0)}windowName(t){return void 0===t?this.getRuleContexts(UD):this.getRuleContext(t,UD)}AS(t){return void 0===t?this.getTokens($O.AS):this.getToken($O.AS,t)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}windowSpec(t){return void 0===t?this.getRuleContexts(dD):this.getRuleContext(t,dD)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_windowClause}accept(t){return t.visitWindowClause?t.visitWindowClause(this):t.visitChildren(this)}},B_=class extends p{constructor(t,e){super(t,e)}expression(){return this.getRuleContext(0,BD)}ASC(){return this.getToken($O.ASC,0)}DESC(){return this.getToken($O.DESC,0)}get ruleIndex(){return $O.RULE_groupByItem}accept(t){return t.visitGroupByItem?t.visitGroupByItem(this):t.visitChildren(this)}},y_=class extends p{constructor(t,e){super(t,e)}LIMIT(){return this.getToken($O.LIMIT,0)}OFFSET(){return this.getToken($O.OFFSET,0)}limitClauseAtom(t){return void 0===t?this.getRuleContexts(f_):this.getRuleContext(t,f_)}COMMA(){return this.getToken($O.COMMA,0)}get ruleIndex(){return $O.RULE_limitClause}accept(t){return t.visitLimitClause?t.visitLimitClause(this):t.visitChildren(this)}},f_=class extends p{constructor(t,e){super(t,e)}decimalLiteral(){return this.getRuleContext(0,om)}mysqlVariable(){return this.getRuleContext(0,$U)}simpleId(){return this.getRuleContext(0,Em)}get ruleIndex(){return $O.RULE_limitClauseAtom}accept(t){return t.visitLimitClauseAtom?t.visitLimitClauseAtom(this):t.visitChildren(this)}},Y_=class extends p{constructor(t,e){super(t,e)}START(){return this.getToken($O.START,0)}TRANSACTION(){return this.getToken($O.TRANSACTION,0)}transactionMode(t){return void 0===t?this.getRuleContexts(j_):this.getRuleContext(t,j_)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_startTransaction}accept(t){return t.visitStartTransaction?t.visitStartTransaction(this):t.visitChildren(this)}},w_=class extends p{constructor(t,e){super(t,e)}BEGIN(){return this.getToken($O.BEGIN,0)}WORK(){return this.getToken($O.WORK,0)}get ruleIndex(){return $O.RULE_beginWork}accept(t){return t.visitBeginWork?t.visitBeginWork(this):t.visitChildren(this)}},b_=class extends p{constructor(t,e){super(t,e)}COMMIT(){return this.getToken($O.COMMIT,0)}WORK(){return this.getToken($O.WORK,0)}AND(){return this.getToken($O.AND,0)}CHAIN(){return this.getToken($O.CHAIN,0)}RELEASE(){return this.getToken($O.RELEASE,0)}NO(t){return void 0===t?this.getTokens($O.NO):this.getToken($O.NO,t)}get ruleIndex(){return $O.RULE_commitWork}accept(t){return t.visitCommitWork?t.visitCommitWork(this):t.visitChildren(this)}},W_=class extends p{constructor(t,e){super(t,e)}ROLLBACK(){return this.getToken($O.ROLLBACK,0)}WORK(){return this.getToken($O.WORK,0)}AND(){return this.getToken($O.AND,0)}CHAIN(){return this.getToken($O.CHAIN,0)}RELEASE(){return this.getToken($O.RELEASE,0)}NO(t){return void 0===t?this.getTokens($O.NO):this.getToken($O.NO,t)}get ruleIndex(){return $O.RULE_rollbackWork}accept(t){return t.visitRollbackWork?t.visitRollbackWork(this):t.visitChildren(this)}},V_=class extends p{constructor(t,e){super(t,e)}SAVEPOINT(){return this.getToken($O.SAVEPOINT,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_savepointStatement}accept(t){return t.visitSavepointStatement?t.visitSavepointStatement(this):t.visitChildren(this)}},X_=class extends p{constructor(t,e){super(t,e)}ROLLBACK(){return this.getToken($O.ROLLBACK,0)}TO(){return this.getToken($O.TO,0)}uid(){return this.getRuleContext(0,hm)}WORK(){return this.getToken($O.WORK,0)}SAVEPOINT(){return this.getToken($O.SAVEPOINT,0)}get ruleIndex(){return $O.RULE_rollbackStatement}accept(t){return t.visitRollbackStatement?t.visitRollbackStatement(this):t.visitChildren(this)}},K_=class extends p{constructor(t,e){super(t,e)}RELEASE(){return this.getToken($O.RELEASE,0)}SAVEPOINT(){return this.getToken($O.SAVEPOINT,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_releaseStatement}accept(t){return t.visitReleaseStatement?t.visitReleaseStatement(this):t.visitChildren(this)}},Q_=class extends p{constructor(t,e){super(t,e)}LOCK(){return this.getToken($O.LOCK,0)}lockTableElement(t){return void 0===t?this.getRuleContexts(z_):this.getRuleContext(t,z_)}TABLE(){return this.getToken($O.TABLE,0)}TABLES(){return this.getToken($O.TABLES,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}waitNowaitClause(){return this.getRuleContext(0,Jm)}get ruleIndex(){return $O.RULE_lockTables}accept(t){return t.visitLockTables?t.visitLockTables(this):t.visitChildren(this)}},J_=class extends p{constructor(t,e){super(t,e)}UNLOCK(){return this.getToken($O.UNLOCK,0)}TABLES(){return this.getToken($O.TABLES,0)}get ruleIndex(){return $O.RULE_unlockTables}accept(t){return t.visitUnlockTables?t.visitUnlockTables(this):t.visitChildren(this)}},Z_=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken($O.SET,0)}AUTOCOMMIT(){return this.getToken($O.AUTOCOMMIT,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}get ruleIndex(){return $O.RULE_setAutocommitStatement}accept(t){return t.visitSetAutocommitStatement?t.visitSetAutocommitStatement(this):t.visitChildren(this)}},q_=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken($O.SET,0)}TRANSACTION(){return this.getToken($O.TRANSACTION,0)}transactionOption(t){return void 0===t?this.getRuleContexts(tP):this.getRuleContext(t,tP)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}GLOBAL(){return this.getToken($O.GLOBAL,0)}SESSION(){return this.getToken($O.SESSION,0)}get ruleIndex(){return $O.RULE_setTransactionStatement}accept(t){return t.visitSetTransactionStatement?t.visitSetTransactionStatement(this):t.visitChildren(this)}},j_=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken($O.WITH,0)}CONSISTENT(){return this.getToken($O.CONSISTENT,0)}SNAPSHOT(){return this.getToken($O.SNAPSHOT,0)}READ(){return this.getToken($O.READ,0)}WRITE(){return this.getToken($O.WRITE,0)}ONLY(){return this.getToken($O.ONLY,0)}get ruleIndex(){return $O.RULE_transactionMode}accept(t){return t.visitTransactionMode?t.visitTransactionMode(this):t.visitChildren(this)}},z_=class extends p{constructor(t,e){super(t,e)}tableName(){return this.getRuleContext(0,HU)}lockAction(){return this.getRuleContext(0,$_)}uid(){return this.getRuleContext(0,hm)}AS(){return this.getToken($O.AS,0)}get ruleIndex(){return $O.RULE_lockTableElement}accept(t){return t.visitLockTableElement?t.visitLockTableElement(this):t.visitChildren(this)}},$_=class extends p{constructor(t,e){super(t,e)}READ(){return this.getToken($O.READ,0)}LOCAL(){return this.getToken($O.LOCAL,0)}WRITE(){return this.getToken($O.WRITE,0)}LOW_PRIORITY(){return this.getToken($O.LOW_PRIORITY,0)}get ruleIndex(){return $O.RULE_lockAction}accept(t){return t.visitLockAction?t.visitLockAction(this):t.visitChildren(this)}},tP=class extends p{constructor(t,e){super(t,e)}ISOLATION(){return this.getToken($O.ISOLATION,0)}LEVEL(){return this.getToken($O.LEVEL,0)}transactionLevel(){return this.getRuleContext(0,eP)}READ(){return this.getToken($O.READ,0)}WRITE(){return this.getToken($O.WRITE,0)}ONLY(){return this.getToken($O.ONLY,0)}get ruleIndex(){return $O.RULE_transactionOption}accept(t){return t.visitTransactionOption?t.visitTransactionOption(this):t.visitChildren(this)}},eP=class extends p{constructor(t,e){super(t,e)}REPEATABLE(){return this.getToken($O.REPEATABLE,0)}READ(){return this.getToken($O.READ,0)}COMMITTED(){return this.getToken($O.COMMITTED,0)}UNCOMMITTED(){return this.getToken($O.UNCOMMITTED,0)}SERIALIZABLE(){return this.getToken($O.SERIALIZABLE,0)}get ruleIndex(){return $O.RULE_transactionLevel}accept(t){return t.visitTransactionLevel?t.visitTransactionLevel(this):t.visitChildren(this)}},sP=class extends p{constructor(t,e){super(t,e)}CHANGE(){return this.getToken($O.CHANGE,0)}MASTER(){return this.getToken($O.MASTER,0)}TO(){return this.getToken($O.TO,0)}masterOption(t){return void 0===t?this.getRuleContexts(oP):this.getRuleContext(t,oP)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}channelOption(){return this.getRuleContext(0,LP)}get ruleIndex(){return $O.RULE_changeMaster}accept(t){return t.visitChangeMaster?t.visitChangeMaster(this):t.visitChildren(this)}},aP=class extends p{constructor(t,e){super(t,e)}CHANGE(){return this.getToken($O.CHANGE,0)}REPLICATION(){return this.getToken($O.REPLICATION,0)}FILTER(){return this.getToken($O.FILTER,0)}replicationFilter(t){return void 0===t?this.getRuleContexts(CP):this.getRuleContext(t,CP)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_changeReplicationFilter}accept(t){return t.visitChangeReplicationFilter?t.visitChangeReplicationFilter(this):t.visitChildren(this)}},iP=class extends p{constructor(t,e){super(t,e)}PURGE(){return this.getToken($O.PURGE,0)}LOGS(){return this.getToken($O.LOGS,0)}BINARY(){return this.getToken($O.BINARY,0)}MASTER(){return this.getToken($O.MASTER,0)}TO(){return this.getToken($O.TO,0)}BEFORE(){return this.getToken($O.BEFORE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_purgeBinaryLogs}accept(t){return t.visitPurgeBinaryLogs?t.visitPurgeBinaryLogs(this):t.visitChildren(this)}},rP=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken($O.RESET,0)}MASTER(){return this.getToken($O.MASTER,0)}get ruleIndex(){return $O.RULE_resetMaster}accept(t){return t.visitResetMaster?t.visitResetMaster(this):t.visitChildren(this)}},cP=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken($O.RESET,0)}SLAVE(){return this.getToken($O.SLAVE,0)}ALL(){return this.getToken($O.ALL,0)}channelOption(){return this.getRuleContext(0,LP)}get ruleIndex(){return $O.RULE_resetSlave}accept(t){return t.visitResetSlave?t.visitResetSlave(this):t.visitChildren(this)}},nP=class extends p{constructor(t,e){super(t,e)}START(){return this.getToken($O.START,0)}SLAVE(){return this.getToken($O.SLAVE,0)}threadType(t){return void 0===t?this.getRuleContexts(gP):this.getRuleContext(t,gP)}UNTIL(){return this.getToken($O.UNTIL,0)}untilOption(){return this.getRuleContext(0,xP)}connectionOption(t){return void 0===t?this.getRuleContexts(vP):this.getRuleContext(t,vP)}channelOption(){return this.getRuleContext(0,LP)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_startSlave}accept(t){return t.visitStartSlave?t.visitStartSlave(this):t.visitChildren(this)}},hP=class extends p{constructor(t,e){super(t,e)}STOP(){return this.getToken($O.STOP,0)}SLAVE(){return this.getToken($O.SLAVE,0)}threadType(t){return void 0===t?this.getRuleContexts(gP):this.getRuleContext(t,gP)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_stopSlave}accept(t){return t.visitStopSlave?t.visitStopSlave(this):t.visitChildren(this)}},EP=class extends p{constructor(t,e){super(t,e)}START(){return this.getToken($O.START,0)}GROUP_REPLICATION(){return this.getToken($O.GROUP_REPLICATION,0)}get ruleIndex(){return $O.RULE_startGroupReplication}accept(t){return t.visitStartGroupReplication?t.visitStartGroupReplication(this):t.visitChildren(this)}},TP=class extends p{constructor(t,e){super(t,e)}STOP(){return this.getToken($O.STOP,0)}GROUP_REPLICATION(){return this.getToken($O.GROUP_REPLICATION,0)}get ruleIndex(){return $O.RULE_stopGroupReplication}accept(t){return t.visitStopGroupReplication?t.visitStopGroupReplication(this):t.visitChildren(this)}},oP=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_masterOption}copyFrom(t){super.copyFrom(t)}},RP=class extends oP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}stringMasterOption(){return this.getRuleContext(0,IP)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitMasterStringOption?t.visitMasterStringOption(this):t.visitChildren(this)}},AP=class extends oP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MASTER_HEARTBEAT_PERIOD(){return this.getToken($O.MASTER_HEARTBEAT_PERIOD,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}REAL_LITERAL(){return this.getToken($O.REAL_LITERAL,0)}accept(t){return t.visitMasterRealOption?t.visitMasterRealOption(this):t.visitChildren(this)}},SP=class extends oP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}boolMasterOption(){return this.getRuleContext(0,NP)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}accept(t){return t.visitMasterBoolOption?t.visitMasterBoolOption(this):t.visitChildren(this)}},lP=class extends oP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}IGNORE_SERVER_IDS(){return this.getToken($O.IGNORE_SERVER_IDS,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitMasterUidListOption?t.visitMasterUidListOption(this):t.visitChildren(this)}},OP=class extends oP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}decimalMasterOption(){return this.getRuleContext(0,uP)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}decimalLiteral(){return this.getRuleContext(0,om)}accept(t){return t.visitMasterDecimalOption?t.visitMasterDecimalOption(this):t.visitChildren(this)}},IP=class extends p{constructor(t,e){super(t,e)}MASTER_BIND(){return this.getToken($O.MASTER_BIND,0)}MASTER_HOST(){return this.getToken($O.MASTER_HOST,0)}MASTER_USER(){return this.getToken($O.MASTER_USER,0)}MASTER_PASSWORD(){return this.getToken($O.MASTER_PASSWORD,0)}MASTER_LOG_FILE(){return this.getToken($O.MASTER_LOG_FILE,0)}RELAY_LOG_FILE(){return this.getToken($O.RELAY_LOG_FILE,0)}MASTER_SSL_CA(){return this.getToken($O.MASTER_SSL_CA,0)}MASTER_SSL_CAPATH(){return this.getToken($O.MASTER_SSL_CAPATH,0)}MASTER_SSL_CERT(){return this.getToken($O.MASTER_SSL_CERT,0)}MASTER_SSL_CRL(){return this.getToken($O.MASTER_SSL_CRL,0)}MASTER_SSL_CRLPATH(){return this.getToken($O.MASTER_SSL_CRLPATH,0)}MASTER_SSL_KEY(){return this.getToken($O.MASTER_SSL_KEY,0)}MASTER_SSL_CIPHER(){return this.getToken($O.MASTER_SSL_CIPHER,0)}MASTER_TLS_VERSION(){return this.getToken($O.MASTER_TLS_VERSION,0)}get ruleIndex(){return $O.RULE_stringMasterOption}accept(t){return t.visitStringMasterOption?t.visitStringMasterOption(this):t.visitChildren(this)}},uP=class extends p{constructor(t,e){super(t,e)}MASTER_PORT(){return this.getToken($O.MASTER_PORT,0)}MASTER_CONNECT_RETRY(){return this.getToken($O.MASTER_CONNECT_RETRY,0)}MASTER_RETRY_COUNT(){return this.getToken($O.MASTER_RETRY_COUNT,0)}MASTER_DELAY(){return this.getToken($O.MASTER_DELAY,0)}MASTER_LOG_POS(){return this.getToken($O.MASTER_LOG_POS,0)}RELAY_LOG_POS(){return this.getToken($O.RELAY_LOG_POS,0)}get ruleIndex(){return $O.RULE_decimalMasterOption}accept(t){return t.visitDecimalMasterOption?t.visitDecimalMasterOption(this):t.visitChildren(this)}},NP=class extends p{constructor(t,e){super(t,e)}MASTER_AUTO_POSITION(){return this.getToken($O.MASTER_AUTO_POSITION,0)}MASTER_SSL(){return this.getToken($O.MASTER_SSL,0)}MASTER_SSL_VERIFY_SERVER_CERT(){return this.getToken($O.MASTER_SSL_VERIFY_SERVER_CERT,0)}get ruleIndex(){return $O.RULE_boolMasterOption}accept(t){return t.visitBoolMasterOption?t.visitBoolMasterOption(this):t.visitChildren(this)}},LP=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken($O.FOR,0)}CHANNEL(){return this.getToken($O.CHANNEL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_channelOption}accept(t){return t.visitChannelOption?t.visitChannelOption(this):t.visitChildren(this)}},CP=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_replicationFilter}copyFrom(t){super.copyFrom(t)}},_P=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_WILD_IGNORE_TABLE(){return this.getToken($O.REPLICATE_WILD_IGNORE_TABLE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}simpleStrings(){return this.getRuleContext(0,Ym)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitWildIgnoreTableReplication?t.visitWildIgnoreTableReplication(this):t.visitChildren(this)}},PP=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_DO_TABLE(){return this.getToken($O.REPLICATE_DO_TABLE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}tables(){return this.getRuleContext(0,Fm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitDoTableReplication?t.visitDoTableReplication(this):t.visitChildren(this)}},MP=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_IGNORE_TABLE(){return this.getToken($O.REPLICATE_IGNORE_TABLE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}tables(){return this.getRuleContext(0,Fm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitIgnoreTableReplication?t.visitIgnoreTableReplication(this):t.visitChildren(this)}},dP=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_REWRITE_DB(){return this.getToken($O.REPLICATE_REWRITE_DB,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}tablePair(t){return void 0===t?this.getRuleContexts(pP):this.getRuleContext(t,pP)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitRewriteDbReplication?t.visitRewriteDbReplication(this):t.visitChildren(this)}},UP=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_DO_DB(){return this.getToken($O.REPLICATE_DO_DB,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitDoDbReplication?t.visitDoDbReplication(this):t.visitChildren(this)}},mP=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_IGNORE_DB(){return this.getToken($O.REPLICATE_IGNORE_DB,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitIgnoreDbReplication?t.visitIgnoreDbReplication(this):t.visitChildren(this)}},DP=class extends CP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLICATE_WILD_DO_TABLE(){return this.getToken($O.REPLICATE_WILD_DO_TABLE,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}simpleStrings(){return this.getRuleContext(0,Ym)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitWildDoTableReplication?t.visitWildDoTableReplication(this):t.visitChildren(this)}},pP=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}COMMA(){return this.getToken($O.COMMA,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}tableName(t){return void 0===t?this.getRuleContexts(HU):this.getRuleContext(t,HU)}get ruleIndex(){return $O.RULE_tablePair}accept(t){return t.visitTablePair?t.visitTablePair(this):t.visitChildren(this)}},gP=class extends p{constructor(t,e){super(t,e)}IO_THREAD(){return this.getToken($O.IO_THREAD,0)}SQL_THREAD(){return this.getToken($O.SQL_THREAD,0)}get ruleIndex(){return $O.RULE_threadType}accept(t){return t.visitThreadType?t.visitThreadType(this):t.visitChildren(this)}},xP=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_untilOption}copyFrom(t){super.copyFrom(t)}},kP=class extends xP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}gtuidSet(){return this.getRuleContext(0,wP)}SQL_BEFORE_GTIDS(){return this.getToken($O.SQL_BEFORE_GTIDS,0)}SQL_AFTER_GTIDS(){return this.getToken($O.SQL_AFTER_GTIDS,0)}accept(t){return t.visitGtidsUntilOption?t.visitGtidsUntilOption(this):t.visitChildren(this)}},HP=class extends xP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SQL_AFTER_MTS_GAPS(){return this.getToken($O.SQL_AFTER_MTS_GAPS,0)}accept(t){return t.visitSqlGapsUntilOption?t.visitSqlGapsUntilOption(this):t.visitChildren(this)}},GP=class extends xP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MASTER_LOG_FILE(){return this.getToken($O.MASTER_LOG_FILE,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}COMMA(){return this.getToken($O.COMMA,0)}MASTER_LOG_POS(){return this.getToken($O.MASTER_LOG_POS,0)}decimalLiteral(){return this.getRuleContext(0,om)}accept(t){return t.visitMasterLogUntilOption?t.visitMasterLogUntilOption(this):t.visitChildren(this)}},FP=class extends xP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RELAY_LOG_FILE(){return this.getToken($O.RELAY_LOG_FILE,0)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}COMMA(){return this.getToken($O.COMMA,0)}RELAY_LOG_POS(){return this.getToken($O.RELAY_LOG_POS,0)}decimalLiteral(){return this.getRuleContext(0,om)}accept(t){return t.visitRelayLogUntilOption?t.visitRelayLogUntilOption(this):t.visitChildren(this)}},vP=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_connectionOption}copyFrom(t){super.copyFrom(t)}},BP=class extends vP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PLUGIN_DIR(){return this.getToken($O.PLUGIN_DIR,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitPluginDirConnectionOption?t.visitPluginDirConnectionOption(this):t.visitChildren(this)}},yP=class extends vP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}USER(){return this.getToken($O.USER,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitUserConnectionOption?t.visitUserConnectionOption(this):t.visitChildren(this)}},fP=class extends vP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DEFAULT_AUTH(){return this.getToken($O.DEFAULT_AUTH,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitDefaultAuthConnectionOption?t.visitDefaultAuthConnectionOption(this):t.visitChildren(this)}},YP=class extends vP{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PASSWORD(){return this.getToken($O.PASSWORD,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitPasswordConnectionOption?t.visitPasswordConnectionOption(this):t.visitChildren(this)}},wP=class extends p{constructor(t,e){super(t,e)}uuidSet(t){return void 0===t?this.getRuleContexts(im):this.getRuleContext(t,im)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_gtuidSet}accept(t){return t.visitGtuidSet?t.visitGtuidSet(this):t.visitChildren(this)}},bP=class extends p{constructor(t,e){super(t,e)}XA(){return this.getToken($O.XA,0)}xid(){return this.getRuleContext(0,rm)}START(){return this.getToken($O.START,0)}BEGIN(){return this.getToken($O.BEGIN,0)}JOIN(){return this.getToken($O.JOIN,0)}RESUME(){return this.getToken($O.RESUME,0)}get ruleIndex(){return $O.RULE_xaStartTransaction}accept(t){return t.visitXaStartTransaction?t.visitXaStartTransaction(this):t.visitChildren(this)}},WP=class extends p{constructor(t,e){super(t,e)}XA(){return this.getToken($O.XA,0)}END(){return this.getToken($O.END,0)}xid(){return this.getRuleContext(0,rm)}SUSPEND(){return this.getToken($O.SUSPEND,0)}FOR(){return this.getToken($O.FOR,0)}MIGRATE(){return this.getToken($O.MIGRATE,0)}get ruleIndex(){return $O.RULE_xaEndTransaction}accept(t){return t.visitXaEndTransaction?t.visitXaEndTransaction(this):t.visitChildren(this)}},VP=class extends p{constructor(t,e){super(t,e)}XA(){return this.getToken($O.XA,0)}PREPARE(){return this.getToken($O.PREPARE,0)}xid(){return this.getRuleContext(0,rm)}get ruleIndex(){return $O.RULE_xaPrepareStatement}accept(t){return t.visitXaPrepareStatement?t.visitXaPrepareStatement(this):t.visitChildren(this)}},XP=class extends p{constructor(t,e){super(t,e)}XA(){return this.getToken($O.XA,0)}COMMIT(){return this.getToken($O.COMMIT,0)}xid(){return this.getRuleContext(0,rm)}ONE(){return this.getToken($O.ONE,0)}PHASE(){return this.getToken($O.PHASE,0)}get ruleIndex(){return $O.RULE_xaCommitWork}accept(t){return t.visitXaCommitWork?t.visitXaCommitWork(this):t.visitChildren(this)}},KP=class extends p{constructor(t,e){super(t,e)}XA(){return this.getToken($O.XA,0)}ROLLBACK(){return this.getToken($O.ROLLBACK,0)}xid(){return this.getRuleContext(0,rm)}get ruleIndex(){return $O.RULE_xaRollbackWork}accept(t){return t.visitXaRollbackWork?t.visitXaRollbackWork(this):t.visitChildren(this)}},QP=class extends p{constructor(t,e){super(t,e)}XA(){return this.getToken($O.XA,0)}RECOVER(){return this.getToken($O.RECOVER,0)}CONVERT(){return this.getToken($O.CONVERT,0)}xid(){return this.getRuleContext(0,rm)}get ruleIndex(){return $O.RULE_xaRecoverWork}accept(t){return t.visitXaRecoverWork?t.visitXaRecoverWork(this):t.visitChildren(this)}},JP=class extends p{constructor(t,e){super(t,e)}PREPARE(){return this.getToken($O.PREPARE,0)}uid(){return this.getRuleContext(0,hm)}FROM(){return this.getToken($O.FROM,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}get ruleIndex(){return $O.RULE_prepareStatement}accept(t){return t.visitPrepareStatement?t.visitPrepareStatement(this):t.visitChildren(this)}},ZP=class extends p{constructor(t,e){super(t,e)}EXECUTE(){return this.getToken($O.EXECUTE,0)}uid(){return this.getRuleContext(0,hm)}USING(){return this.getToken($O.USING,0)}userVariables(){return this.getRuleContext(0,wm)}get ruleIndex(){return $O.RULE_executeStatement}accept(t){return t.visitExecuteStatement?t.visitExecuteStatement(this):t.visitChildren(this)}},qP=class extends p{constructor(t,e){super(t,e)}PREPARE(){return this.getToken($O.PREPARE,0)}uid(){return this.getRuleContext(0,hm)}DEALLOCATE(){return this.getToken($O.DEALLOCATE,0)}DROP(){return this.getToken($O.DROP,0)}get ruleIndex(){return $O.RULE_deallocatePrepare}accept(t){return t.visitDeallocatePrepare?t.visitDeallocatePrepare(this):t.visitChildren(this)}},jP=class extends p{constructor(t,e){super(t,e)}blockStatement(){return this.getRuleContext(0,zP)}statement(){return this.getRuleContext(0,sI)}get ruleIndex(){return $O.RULE_routineBody}accept(t){return t.visitRoutineBody?t.visitRoutineBody(this):t.visitChildren(this)}},zP=class extends p{constructor(t,e){super(t,e)}BEGIN(){return this.getToken($O.BEGIN,0)}END(){return this.getToken($O.END,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COLON_SYMB(){return this.getToken($O.COLON_SYMB,0)}declareVariable(t){return void 0===t?this.getRuleContexts(oM):this.getRuleContext(t,oM)}SEMI(t){return void 0===t?this.getTokens($O.SEMI):this.getToken($O.SEMI,t)}declareCondition(t){return void 0===t?this.getRuleContexts(RM):this.getRuleContext(t,RM)}declareCursor(t){return void 0===t?this.getRuleContexts(AM):this.getRuleContext(t,AM)}declareHandler(t){return void 0===t?this.getRuleContexts(SM):this.getRuleContext(t,SM)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_blockStatement}accept(t){return t.visitBlockStatement?t.visitBlockStatement(this):t.visitChildren(this)}},$P=class extends p{constructor(t,e){super(t,e)}CASE(t){return void 0===t?this.getTokens($O.CASE):this.getToken($O.CASE,t)}END(){return this.getToken($O.END,0)}uid(){return this.getRuleContext(0,hm)}expression(){return this.getRuleContext(0,BD)}caseAlternative(t){return void 0===t?this.getRuleContexts(PM):this.getRuleContext(t,PM)}ELSE(){return this.getToken($O.ELSE,0)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_caseStatement}accept(t){return t.visitCaseStatement?t.visitCaseStatement(this):t.visitChildren(this)}},tM=class extends p{constructor(t,e){super(t,e),this._thenStatements=[],this._elseStatements=[]}IF(t){return void 0===t?this.getTokens($O.IF):this.getToken($O.IF,t)}expression(){return this.getRuleContext(0,BD)}THEN(){return this.getToken($O.THEN,0)}END(){return this.getToken($O.END,0)}elifAlternative(t){return void 0===t?this.getRuleContexts(MM):this.getRuleContext(t,MM)}ELSE(){return this.getToken($O.ELSE,0)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_ifStatement}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},eM=class extends p{constructor(t,e){super(t,e)}ITERATE(){return this.getToken($O.ITERATE,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_iterateStatement}accept(t){return t.visitIterateStatement?t.visitIterateStatement(this):t.visitChildren(this)}},sM=class extends p{constructor(t,e){super(t,e)}LEAVE(){return this.getToken($O.LEAVE,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_leaveStatement}accept(t){return t.visitLeaveStatement?t.visitLeaveStatement(this):t.visitChildren(this)}},aM=class extends p{constructor(t,e){super(t,e)}LOOP(t){return void 0===t?this.getTokens($O.LOOP):this.getToken($O.LOOP,t)}END(){return this.getToken($O.END,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COLON_SYMB(){return this.getToken($O.COLON_SYMB,0)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_loopStatement}accept(t){return t.visitLoopStatement?t.visitLoopStatement(this):t.visitChildren(this)}},iM=class extends p{constructor(t,e){super(t,e)}REPEAT(t){return void 0===t?this.getTokens($O.REPEAT):this.getToken($O.REPEAT,t)}UNTIL(){return this.getToken($O.UNTIL,0)}expression(){return this.getRuleContext(0,BD)}END(){return this.getToken($O.END,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COLON_SYMB(){return this.getToken($O.COLON_SYMB,0)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_repeatStatement}accept(t){return t.visitRepeatStatement?t.visitRepeatStatement(this):t.visitChildren(this)}},rM=class extends p{constructor(t,e){super(t,e)}RETURN(){return this.getToken($O.RETURN,0)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_returnStatement}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},cM=class extends p{constructor(t,e){super(t,e)}WHILE(t){return void 0===t?this.getTokens($O.WHILE):this.getToken($O.WHILE,t)}expression(){return this.getRuleContext(0,BD)}DO(){return this.getToken($O.DO,0)}END(){return this.getToken($O.END,0)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COLON_SYMB(){return this.getToken($O.COLON_SYMB,0)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_whileStatement}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},nM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_cursorStatement}copyFrom(t){super.copyFrom(t)}},hM=class extends nM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CLOSE(){return this.getToken($O.CLOSE,0)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitCloseCursor?t.visitCloseCursor(this):t.visitChildren(this)}},EM=class extends nM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}OPEN(){return this.getToken($O.OPEN,0)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitOpenCursor?t.visitOpenCursor(this):t.visitChildren(this)}},TM=class extends nM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FETCH(){return this.getToken($O.FETCH,0)}uid(){return this.getRuleContext(0,hm)}INTO(){return this.getToken($O.INTO,0)}uidList(){return this.getRuleContext(0,Hm)}FROM(){return this.getToken($O.FROM,0)}NEXT(){return this.getToken($O.NEXT,0)}accept(t){return t.visitFetchCursor?t.visitFetchCursor(this):t.visitChildren(this)}},oM=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken($O.DECLARE,0)}uidList(){return this.getRuleContext(0,Hm)}dataType(){return this.getRuleContext(0,um)}DEFAULT(){return this.getToken($O.DEFAULT,0)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_declareVariable}accept(t){return t.visitDeclareVariable?t.visitDeclareVariable(this):t.visitChildren(this)}},RM=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken($O.DECLARE,0)}uid(){return this.getRuleContext(0,hm)}CONDITION(){return this.getToken($O.CONDITION,0)}FOR(){return this.getToken($O.FOR,0)}decimalLiteral(){return this.getRuleContext(0,om)}SQLSTATE(){return this.getToken($O.SQLSTATE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}VALUE(){return this.getToken($O.VALUE,0)}get ruleIndex(){return $O.RULE_declareCondition}accept(t){return t.visitDeclareCondition?t.visitDeclareCondition(this):t.visitChildren(this)}},AM=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken($O.DECLARE,0)}uid(){return this.getRuleContext(0,hm)}CURSOR(){return this.getToken($O.CURSOR,0)}FOR(){return this.getToken($O.FOR,0)}selectStatement(){return this.getRuleContext(0,_C)}get ruleIndex(){return $O.RULE_declareCursor}accept(t){return t.visitDeclareCursor?t.visitDeclareCursor(this):t.visitChildren(this)}},SM=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken($O.DECLARE,0)}HANDLER(){return this.getToken($O.HANDLER,0)}FOR(){return this.getToken($O.FOR,0)}handlerConditionValue(t){return void 0===t?this.getRuleContexts(lM):this.getRuleContext(t,lM)}routineBody(){return this.getRuleContext(0,jP)}CONTINUE(){return this.getToken($O.CONTINUE,0)}EXIT(){return this.getToken($O.EXIT,0)}UNDO(){return this.getToken($O.UNDO,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_declareHandler}accept(t){return t.visitDeclareHandler?t.visitDeclareHandler(this):t.visitChildren(this)}},lM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_handlerConditionValue}copyFrom(t){super.copyFrom(t)}},OM=class extends lM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SQLWARNING(){return this.getToken($O.SQLWARNING,0)}accept(t){return t.visitHandlerConditionWarning?t.visitHandlerConditionWarning(this):t.visitChildren(this)}},IM=class extends lM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}decimalLiteral(){return this.getRuleContext(0,om)}accept(t){return t.visitHandlerConditionCode?t.visitHandlerConditionCode(this):t.visitChildren(this)}},uM=class extends lM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}NOT(){return this.getToken($O.NOT,0)}FOUND(){return this.getToken($O.FOUND,0)}accept(t){return t.visitHandlerConditionNotfound?t.visitHandlerConditionNotfound(this):t.visitChildren(this)}},NM=class extends lM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SQLSTATE(){return this.getToken($O.SQLSTATE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}VALUE(){return this.getToken($O.VALUE,0)}accept(t){return t.visitHandlerConditionState?t.visitHandlerConditionState(this):t.visitChildren(this)}},LM=class extends lM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SQLEXCEPTION(){return this.getToken($O.SQLEXCEPTION,0)}accept(t){return t.visitHandlerConditionException?t.visitHandlerConditionException(this):t.visitChildren(this)}},CM=class extends lM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitHandlerConditionName?t.visitHandlerConditionName(this):t.visitChildren(this)}},_M=class extends p{constructor(t,e){super(t,e)}SEMI(){return this.getToken($O.SEMI,0)}compoundStatement(){return this.getRuleContext(0,hI)}statement(){return this.getRuleContext(0,sI)}get ruleIndex(){return $O.RULE_procedureSqlStatement}accept(t){return t.visitProcedureSqlStatement?t.visitProcedureSqlStatement(this):t.visitChildren(this)}},PM=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken($O.WHEN,0)}THEN(){return this.getToken($O.THEN,0)}constant(){return this.getRuleContext(0,Im)}expression(){return this.getRuleContext(0,BD)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_caseAlternative}accept(t){return t.visitCaseAlternative?t.visitCaseAlternative(this):t.visitChildren(this)}},MM=class extends p{constructor(t,e){super(t,e)}ELSEIF(){return this.getToken($O.ELSEIF,0)}expression(){return this.getRuleContext(0,BD)}THEN(){return this.getToken($O.THEN,0)}procedureSqlStatement(t){return void 0===t?this.getRuleContexts(_M):this.getRuleContext(t,_M)}get ruleIndex(){return $O.RULE_elifAlternative}accept(t){return t.visitElifAlternative?t.visitElifAlternative(this):t.visitChildren(this)}},dM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_alterUser}copyFrom(t){super.copyFrom(t)}},UM=class extends dM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}USER(){return this.getToken($O.USER,0)}newUserAuthOptionList(){return this.getRuleContext(0,WM)}ifExists(){return this.getRuleContext(0,Xm)}REQUIRE(){return this.getToken($O.REQUIRE,0)}WITH(){return this.getToken($O.WITH,0)}userPasswordOption(t){return void 0===t?this.getRuleContexts(sd):this.getRuleContext(t,sd)}userLockOption(t){return void 0===t?this.getRuleContexts(ad):this.getRuleContext(t,ad)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ATTRIBUTE(){return this.getToken($O.ATTRIBUTE,0)}tlsOption(t){return void 0===t?this.getRuleContexts(td):this.getRuleContext(t,td)}NONE(){return this.getToken($O.NONE,0)}userResourceOption(t){return void 0===t?this.getRuleContexts(ed):this.getRuleContext(t,ed)}AND(t){return void 0===t?this.getTokens($O.AND):this.getToken($O.AND,t)}userName(){return this.getRuleContext(0,zU)}DEFAULT(){return this.getToken($O.DEFAULT,0)}ROLE(){return this.getToken($O.ROLE,0)}roleOption(){return this.getRuleContext(0,HM)}accept(t){return t.visitAlterUserMysqlV80?t.visitAlterUserMysqlV80(this):t.visitChildren(this)}},mM=class extends dM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken($O.ALTER,0)}USER(){return this.getToken($O.USER,0)}userSpecification(t){return void 0===t?this.getRuleContexts(bM):this.getRuleContext(t,bM)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitAlterUserMysqlV56?t.visitAlterUserMysqlV56(this):t.visitChildren(this)}},DM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_createUser}copyFrom(t){super.copyFrom(t)}},pM=class extends DM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CREATE(){return this.getToken($O.CREATE,0)}USER(){return this.getToken($O.USER,0)}newUserAuthOptionList(){return this.getRuleContext(0,WM)}accept(t){return t.visitCreateUserMysqlV56?t.visitCreateUserMysqlV56(this):t.visitChildren(this)}},gM=class extends DM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CREATE(){return this.getToken($O.CREATE,0)}USER(){return this.getToken($O.USER,0)}newUserAuthOptionList(){return this.getRuleContext(0,WM)}ifNotExists(){return this.getRuleContext(0,Km)}DEFAULT(){return this.getToken($O.DEFAULT,0)}ROLE(){return this.getToken($O.ROLE,0)}roleOption(){return this.getRuleContext(0,HM)}REQUIRE(){return this.getToken($O.REQUIRE,0)}WITH(){return this.getToken($O.WITH,0)}userPasswordOption(t){return void 0===t?this.getRuleContexts(sd):this.getRuleContext(t,sd)}userLockOption(t){return void 0===t?this.getRuleContexts(ad):this.getRuleContext(t,ad)}COMMENT(){return this.getToken($O.COMMENT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ATTRIBUTE(){return this.getToken($O.ATTRIBUTE,0)}tlsOption(t){return void 0===t?this.getRuleContexts(td):this.getRuleContext(t,td)}NONE(){return this.getToken($O.NONE,0)}userResourceOption(t){return void 0===t?this.getRuleContexts(ed):this.getRuleContext(t,ed)}AND(t){return void 0===t?this.getTokens($O.AND):this.getToken($O.AND,t)}accept(t){return t.visitCreateUserMysqlV80?t.visitCreateUserMysqlV80(this):t.visitChildren(this)}},xM=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken($O.DROP,0)}USER(){return this.getToken($O.USER,0)}userNameList(){return this.getRuleContext(0,qU)}ifExists(){return this.getRuleContext(0,Xm)}get ruleIndex(){return $O.RULE_dropUser}accept(t){return t.visitDropUser?t.visitDropUser(this):t.visitChildren(this)}},kM=class extends p{constructor(t,e){super(t,e)}GRANT(t){return void 0===t?this.getTokens($O.GRANT):this.getToken($O.GRANT,t)}privelegeClause(t){return void 0===t?this.getRuleContexts(id):this.getRuleContext(t,id)}ON(){return this.getToken($O.ON,0)}privilegeLevel(){return this.getRuleContext(0,cd)}TO(){return this.getToken($O.TO,0)}userOrRoleNameList(){return this.getRuleContext(0,vU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}REQUIRE(){return this.getToken($O.REQUIRE,0)}WITH(t){return void 0===t?this.getTokens($O.WITH):this.getToken($O.WITH,t)}AS(){return this.getToken($O.AS,0)}userName(){return this.getRuleContext(0,zU)}ROLE(){return this.getToken($O.ROLE,0)}roleOption(){return this.getRuleContext(0,HM)}TABLE(){return this.getToken($O.TABLE,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}tlsOption(t){return void 0===t?this.getRuleContexts(td):this.getRuleContext(t,td)}NONE(){return this.getToken($O.NONE,0)}OPTION(t){return void 0===t?this.getTokens($O.OPTION):this.getToken($O.OPTION,t)}userResourceOption(t){return void 0===t?this.getRuleContexts(ed):this.getRuleContext(t,ed)}AND(t){return void 0===t?this.getTokens($O.AND):this.getToken($O.AND,t)}roleNameList(){return this.getRuleContext(0,fU)}ADMIN(){return this.getToken($O.ADMIN,0)}get ruleIndex(){return $O.RULE_grantStatement}accept(t){return t.visitGrantStatement?t.visitGrantStatement(this):t.visitChildren(this)}},HM=class extends p{constructor(t,e){super(t,e)}DEFAULT(){return this.getToken($O.DEFAULT,0)}NONE(){return this.getToken($O.NONE,0)}ALL(){return this.getToken($O.ALL,0)}EXCEPT(){return this.getToken($O.EXCEPT,0)}roleNameList(){return this.getRuleContext(0,fU)}get ruleIndex(){return $O.RULE_roleOption}accept(t){return t.visitRoleOption?t.visitRoleOption(this):t.visitChildren(this)}},GM=class extends p{constructor(t,e){super(t,e),this._toOther=[]}GRANT(t){return void 0===t?this.getTokens($O.GRANT):this.getToken($O.GRANT,t)}PROXY(){return this.getToken($O.PROXY,0)}ON(){return this.getToken($O.ON,0)}TO(){return this.getToken($O.TO,0)}userName(t){return void 0===t?this.getRuleContexts(zU):this.getRuleContext(t,zU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}WITH(){return this.getToken($O.WITH,0)}OPTION(){return this.getToken($O.OPTION,0)}get ruleIndex(){return $O.RULE_grantProxy}accept(t){return t.visitGrantProxy?t.visitGrantProxy(this):t.visitChildren(this)}},FM=class extends p{constructor(t,e){super(t,e)}RENAME(){return this.getToken($O.RENAME,0)}USER(){return this.getToken($O.USER,0)}renameUserClause(t){return void 0===t?this.getRuleContexts(Ad):this.getRuleContext(t,Ad)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_renameUser}accept(t){return t.visitRenameUser?t.visitRenameUser(this):t.visitChildren(this)}},vM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_revokeStatement}copyFrom(t){super.copyFrom(t)}},BM=class extends vM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REVOKE(){return this.getToken($O.REVOKE,0)}ALL(){return this.getToken($O.ALL,0)}COMMA(){return this.getToken($O.COMMA,0)}GRANT(){return this.getToken($O.GRANT,0)}OPTION(){return this.getToken($O.OPTION,0)}FROM(){return this.getToken($O.FROM,0)}userOrRoleNameList(){return this.getRuleContext(0,vU)}PRIVILEGES(){return this.getToken($O.PRIVILEGES,0)}accept(t){return t.visitShortPrivilegeRevoke?t.visitShortPrivilegeRevoke(this):t.visitChildren(this)}},yM=class extends vM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REVOKE(){return this.getToken($O.REVOKE,0)}roleNameList(){return this.getRuleContext(0,fU)}FROM(){return this.getToken($O.FROM,0)}userOrRoleNameList(t){return void 0===t?this.getRuleContexts(vU):this.getRuleContext(t,vU)}accept(t){return t.visitRoleRevoke?t.visitRoleRevoke(this):t.visitChildren(this)}},fM=class extends vM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REVOKE(){return this.getToken($O.REVOKE,0)}privelegeClause(t){return void 0===t?this.getRuleContexts(id):this.getRuleContext(t,id)}ON(){return this.getToken($O.ON,0)}privilegeLevel(){return this.getRuleContext(0,cd)}FROM(){return this.getToken($O.FROM,0)}userOrRoleNameList(){return this.getRuleContext(0,vU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}TABLE(){return this.getToken($O.TABLE,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}accept(t){return t.visitDetailedPrivilegeRevoke?t.visitDetailedPrivilegeRevoke(this):t.visitChildren(this)}},YM=class extends p{constructor(t,e){super(t,e),this._fromOther=[]}REVOKE(){return this.getToken($O.REVOKE,0)}PROXY(){return this.getToken($O.PROXY,0)}ON(){return this.getToken($O.ON,0)}FROM(){return this.getToken($O.FROM,0)}userName(t){return void 0===t?this.getRuleContexts(zU):this.getRuleContext(t,zU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_revokeProxy}accept(t){return t.visitRevokeProxy?t.visitRevokeProxy(this):t.visitChildren(this)}},wM=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken($O.SET,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}passwordFunctionClause(){return this.getRuleContext(0,GD)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}FOR(){return this.getToken($O.FOR,0)}userName(){return this.getRuleContext(0,zU)}get ruleIndex(){return $O.RULE_setPasswordStatement}accept(t){return t.visitSetPasswordStatement?t.visitSetPasswordStatement(this):t.visitChildren(this)}},bM=class extends p{constructor(t,e){super(t,e)}userName(){return this.getRuleContext(0,zU)}userPasswordOption(){return this.getRuleContext(0,sd)}get ruleIndex(){return $O.RULE_userSpecification}accept(t){return t.visitUserSpecification?t.visitUserSpecification(this):t.visitChildren(this)}},WM=class extends p{constructor(t,e){super(t,e)}newUserAuthOption(t){return void 0===t?this.getRuleContexts(VM):this.getRuleContext(t,VM)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_newUserAuthOptionList}accept(t){return t.visitNewUserAuthOptionList?t.visitNewUserAuthOptionList(this):t.visitChildren(this)}},VM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_newUserAuthOption}copyFrom(t){super.copyFrom(t)}},XM=class extends VM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}newUserName(){return this.getRuleContext(0,jU)}accept(t){return t.visitSimpleAuthOption?t.visitSimpleAuthOption(this):t.visitChildren(this)}},KM=class extends VM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}newUserName(){return this.getRuleContext(0,jU)}IDENTIFIED(){return this.getToken($O.IDENTIFIED,0)}WITH(){return this.getToken($O.WITH,0)}authenticationRule(){return this.getRuleContext(0,jM)}accept(t){return t.visitModuleAuthOption?t.visitModuleAuthOption(this):t.visitChildren(this)}},QM=class extends VM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}newUserName(){return this.getRuleContext(0,jU)}IDENTIFIED(){return this.getToken($O.IDENTIFIED,0)}BY(){return this.getToken($O.BY,0)}RANDOM(){return this.getToken($O.RANDOM,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}authOptionClause(){return this.getRuleContext(0,qM)}accept(t){return t.visitRandomAuthOption?t.visitRandomAuthOption(this):t.visitChildren(this)}},JM=class extends VM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}newUserName(){return this.getRuleContext(0,jU)}IDENTIFIED(){return this.getToken($O.IDENTIFIED,0)}BY(){return this.getToken($O.BY,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}authOptionClause(){return this.getRuleContext(0,qM)}accept(t){return t.visitStringAuthOption?t.visitStringAuthOption(this):t.visitChildren(this)}},ZM=class extends VM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}newUserName(){return this.getRuleContext(0,jU)}IDENTIFIED(){return this.getToken($O.IDENTIFIED,0)}BY(){return this.getToken($O.BY,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitHashAuthOption?t.visitHashAuthOption(this):t.visitChildren(this)}},qM=class extends p{constructor(t,e){super(t,e)}REPLACE(){return this.getToken($O.REPLACE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}RETAIN(){return this.getToken($O.RETAIN,0)}CURRENT(){return this.getToken($O.CURRENT,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}get ruleIndex(){return $O.RULE_authOptionClause}accept(t){return t.visitAuthOptionClause?t.visitAuthOptionClause(this):t.visitChildren(this)}},jM=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_authenticationRule}copyFrom(t){super.copyFrom(t)}},zM=class extends jM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}authPlugin(){return this.getRuleContext(0,nm)}USING(){return this.getToken($O.USING,0)}passwordFunctionClause(){return this.getRuleContext(0,GD)}accept(t){return t.visitPasswordModuleOption?t.visitPasswordModuleOption(this):t.visitChildren(this)}},$M=class extends jM{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}authPlugin(){return this.getRuleContext(0,nm)}authOptionClause(){return this.getRuleContext(0,qM)}BY(){return this.getToken($O.BY,0)}USING(){return this.getToken($O.USING,0)}AS(){return this.getToken($O.AS,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}RANDOM(){return this.getToken($O.RANDOM,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}accept(t){return t.visitModule?t.visitModule(this):t.visitChildren(this)}},td=class extends p{constructor(t,e){super(t,e)}SSL(){return this.getToken($O.SSL,0)}X509(){return this.getToken($O.X509,0)}CIPHER(){return this.getToken($O.CIPHER,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ISSUER(){return this.getToken($O.ISSUER,0)}SUBJECT(){return this.getToken($O.SUBJECT,0)}get ruleIndex(){return $O.RULE_tlsOption}accept(t){return t.visitTlsOption?t.visitTlsOption(this):t.visitChildren(this)}},ed=class extends p{constructor(t,e){super(t,e)}MAX_QUERIES_PER_HOUR(){return this.getToken($O.MAX_QUERIES_PER_HOUR,0)}decimalLiteral(){return this.getRuleContext(0,om)}MAX_UPDATES_PER_HOUR(){return this.getToken($O.MAX_UPDATES_PER_HOUR,0)}MAX_CONNECTIONS_PER_HOUR(){return this.getToken($O.MAX_CONNECTIONS_PER_HOUR,0)}MAX_USER_CONNECTIONS(){return this.getToken($O.MAX_USER_CONNECTIONS,0)}get ruleIndex(){return $O.RULE_userResourceOption}accept(t){return t.visitUserResourceOption?t.visitUserResourceOption(this):t.visitChildren(this)}},sd=class extends p{constructor(t,e){super(t,e)}PASSWORD(){return this.getToken($O.PASSWORD,0)}EXPIRE(){return this.getToken($O.EXPIRE,0)}decimalLiteral(){return this.getRuleContext(0,om)}DAY(){return this.getToken($O.DAY,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}NEVER(){return this.getToken($O.NEVER,0)}INTERVAL(){return this.getToken($O.INTERVAL,0)}HISTORY(){return this.getToken($O.HISTORY,0)}REUSE(){return this.getToken($O.REUSE,0)}REQUIRE(){return this.getToken($O.REQUIRE,0)}CURRENT(){return this.getToken($O.CURRENT,0)}OPTIONAL(){return this.getToken($O.OPTIONAL,0)}FAILED_LOGIN_ATTEMPTS(){return this.getToken($O.FAILED_LOGIN_ATTEMPTS,0)}PASSWORD_LOCK_TIME(){return this.getToken($O.PASSWORD_LOCK_TIME,0)}UNBOUNDED(){return this.getToken($O.UNBOUNDED,0)}get ruleIndex(){return $O.RULE_userPasswordOption}accept(t){return t.visitUserPasswordOption?t.visitUserPasswordOption(this):t.visitChildren(this)}},ad=class extends p{constructor(t,e){super(t,e)}ACCOUNT(){return this.getToken($O.ACCOUNT,0)}LOCK(){return this.getToken($O.LOCK,0)}UNLOCK(){return this.getToken($O.UNLOCK,0)}get ruleIndex(){return $O.RULE_userLockOption}accept(t){return t.visitUserLockOption?t.visitUserLockOption(this):t.visitChildren(this)}},id=class extends p{constructor(t,e){super(t,e)}privilege(){return this.getRuleContext(0,rd)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}get ruleIndex(){return $O.RULE_privelegeClause}accept(t){return t.visitPrivelegeClause?t.visitPrivelegeClause(this):t.visitChildren(this)}},rd=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken($O.ALL,0)}PRIVILEGES(){return this.getToken($O.PRIVILEGES,0)}ALTER(){return this.getToken($O.ALTER,0)}ROUTINE(){return this.getToken($O.ROUTINE,0)}CREATE(){return this.getToken($O.CREATE,0)}TEMPORARY(){return this.getToken($O.TEMPORARY,0)}TABLES(){return this.getToken($O.TABLES,0)}VIEW(){return this.getToken($O.VIEW,0)}USER(){return this.getToken($O.USER,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}ROLE(){return this.getToken($O.ROLE,0)}DELETE(){return this.getToken($O.DELETE,0)}DROP(){return this.getToken($O.DROP,0)}EVENT(){return this.getToken($O.EVENT,0)}EXECUTE(){return this.getToken($O.EXECUTE,0)}FILE(){return this.getToken($O.FILE,0)}GRANT(){return this.getToken($O.GRANT,0)}OPTION(){return this.getToken($O.OPTION,0)}INDEX(){return this.getToken($O.INDEX,0)}INSERT(){return this.getToken($O.INSERT,0)}LOCK(){return this.getToken($O.LOCK,0)}PROCESS(){return this.getToken($O.PROCESS,0)}PROXY(){return this.getToken($O.PROXY,0)}REFERENCES(){return this.getToken($O.REFERENCES,0)}RELOAD(){return this.getToken($O.RELOAD,0)}REPLICATION(){return this.getToken($O.REPLICATION,0)}CLIENT(){return this.getToken($O.CLIENT,0)}SLAVE(){return this.getToken($O.SLAVE,0)}SELECT(){return this.getToken($O.SELECT,0)}SHOW(){return this.getToken($O.SHOW,0)}DATABASES(){return this.getToken($O.DATABASES,0)}SHUTDOWN(){return this.getToken($O.SHUTDOWN,0)}SUPER(){return this.getToken($O.SUPER,0)}TRIGGER(){return this.getToken($O.TRIGGER,0)}UPDATE(){return this.getToken($O.UPDATE,0)}USAGE(){return this.getToken($O.USAGE,0)}APPLICATION_PASSWORD_ADMIN(){return this.getToken($O.APPLICATION_PASSWORD_ADMIN,0)}AUDIT_ABORT_EXEMPT(){return this.getToken($O.AUDIT_ABORT_EXEMPT,0)}AUDIT_ADMIN(){return this.getToken($O.AUDIT_ADMIN,0)}AUTHENTICATION_POLICY_ADMIN(){return this.getToken($O.AUTHENTICATION_POLICY_ADMIN,0)}BACKUP_ADMIN(){return this.getToken($O.BACKUP_ADMIN,0)}BINLOG_ADMIN(){return this.getToken($O.BINLOG_ADMIN,0)}BINLOG_ENCRYPTION_ADMIN(){return this.getToken($O.BINLOG_ENCRYPTION_ADMIN,0)}CLONE_ADMIN(){return this.getToken($O.CLONE_ADMIN,0)}CONNECTION_ADMIN(){return this.getToken($O.CONNECTION_ADMIN,0)}ENCRYPTION_KEY_ADMIN(){return this.getToken($O.ENCRYPTION_KEY_ADMIN,0)}FIREWALL_ADMIN(){return this.getToken($O.FIREWALL_ADMIN,0)}FIREWALL_EXEMPT(){return this.getToken($O.FIREWALL_EXEMPT,0)}FIREWALL_USER(){return this.getToken($O.FIREWALL_USER,0)}FLUSH_OPTIMIZER_COSTS(){return this.getToken($O.FLUSH_OPTIMIZER_COSTS,0)}FLUSH_STATUS(){return this.getToken($O.FLUSH_STATUS,0)}FLUSH_TABLES(){return this.getToken($O.FLUSH_TABLES,0)}FLUSH_USER_RESOURCES(){return this.getToken($O.FLUSH_USER_RESOURCES,0)}GROUP_REPLICATION_ADMIN(){return this.getToken($O.GROUP_REPLICATION_ADMIN,0)}INNODB_REDO_LOG_ARCHIVE(){return this.getToken($O.INNODB_REDO_LOG_ARCHIVE,0)}INNODB_REDO_LOG_ENABLE(){return this.getToken($O.INNODB_REDO_LOG_ENABLE,0)}NDB_STORED_USER(){return this.getToken($O.NDB_STORED_USER,0)}PASSWORDLESS_USER_ADMIN(){return this.getToken($O.PASSWORDLESS_USER_ADMIN,0)}PERSIST_RO_VARIABLES_ADMIN(){return this.getToken($O.PERSIST_RO_VARIABLES_ADMIN,0)}REPLICATION_APPLIER(){return this.getToken($O.REPLICATION_APPLIER,0)}REPLICATION_SLAVE_ADMIN(){return this.getToken($O.REPLICATION_SLAVE_ADMIN,0)}RESOURCE_GROUP_ADMIN(){return this.getToken($O.RESOURCE_GROUP_ADMIN,0)}RESOURCE_GROUP_USER(){return this.getToken($O.RESOURCE_GROUP_USER,0)}ROLE_ADMIN(){return this.getToken($O.ROLE_ADMIN,0)}SERVICE_CONNECTION_ADMIN(){return this.getToken($O.SERVICE_CONNECTION_ADMIN,0)}SESSION_VARIABLES_ADMIN(){return this.getToken($O.SESSION_VARIABLES_ADMIN,0)}SET_USER_ID(){return this.getToken($O.SET_USER_ID,0)}SKIP_QUERY_REWRITE(){return this.getToken($O.SKIP_QUERY_REWRITE,0)}SHOW_ROUTINE(){return this.getToken($O.SHOW_ROUTINE,0)}SYSTEM_USER(){return this.getToken($O.SYSTEM_USER,0)}SYSTEM_VARIABLES_ADMIN(){return this.getToken($O.SYSTEM_VARIABLES_ADMIN,0)}TABLE_ENCRYPTION_ADMIN(){return this.getToken($O.TABLE_ENCRYPTION_ADMIN,0)}TP_CONNECTION_ADMIN(){return this.getToken($O.TP_CONNECTION_ADMIN,0)}VERSION_TOKEN_ADMIN(){return this.getToken($O.VERSION_TOKEN_ADMIN,0)}XA_RECOVER_ADMIN(){return this.getToken($O.XA_RECOVER_ADMIN,0)}LOAD(){return this.getToken($O.LOAD,0)}FROM(){return this.getToken($O.FROM,0)}S3(){return this.getToken($O.S3,0)}INTO(){return this.getToken($O.INTO,0)}INVOKE(){return this.getToken($O.INVOKE,0)}LAMBDA(){return this.getToken($O.LAMBDA,0)}get ruleIndex(){return $O.RULE_privilege}accept(t){return t.visitPrivilege?t.visitPrivilege(this):t.visitChildren(this)}},cd=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_privilegeLevel}copyFrom(t){super.copyFrom(t)}},nd=class extends cd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}uid(){return this.getRuleContext(0,hm)}DOT(){return this.getToken($O.DOT,0)}STAR(){return this.getToken($O.STAR,0)}accept(t){return t.visitDefiniteSchemaPrivLevel?t.visitDefiniteSchemaPrivLevel(this):t.visitChildren(this)}},hd=class extends cd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}uid(){return this.getRuleContext(0,hm)}dottedId(){return this.getRuleContext(0,Tm)}accept(t){return t.visitDefiniteFullTablePrivLevel2?t.visitDefiniteFullTablePrivLevel2(this):t.visitChildren(this)}},Ed=class extends cd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}DOT(){return this.getToken($O.DOT,0)}accept(t){return t.visitDefiniteFullTablePrivLevel?t.visitDefiniteFullTablePrivLevel(this):t.visitChildren(this)}},Td=class extends cd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STAR(t){return void 0===t?this.getTokens($O.STAR):this.getToken($O.STAR,t)}DOT(){return this.getToken($O.DOT,0)}accept(t){return t.visitGlobalPrivLevel?t.visitGlobalPrivLevel(this):t.visitChildren(this)}},od=class extends cd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitDefiniteTablePrivLevel?t.visitDefiniteTablePrivLevel(this):t.visitChildren(this)}},Rd=class extends cd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}STAR(){return this.getToken($O.STAR,0)}accept(t){return t.visitCurrentSchemaPriviLevel?t.visitCurrentSchemaPriviLevel(this):t.visitChildren(this)}},Ad=class extends p{constructor(t,e){super(t,e)}userName(){return this.getRuleContext(0,zU)}TO(){return this.getToken($O.TO,0)}newUserName(){return this.getRuleContext(0,jU)}get ruleIndex(){return $O.RULE_renameUserClause}accept(t){return t.visitRenameUserClause?t.visitRenameUserClause(this):t.visitChildren(this)}},Sd=class extends p{constructor(t,e){super(t,e)}ANALYZE(){return this.getToken($O.ANALYZE,0)}tables(){return this.getRuleContext(0,Fm)}TABLE(){return this.getToken($O.TABLE,0)}TABLES(){return this.getToken($O.TABLES,0)}UPDATE(){return this.getToken($O.UPDATE,0)}HISTOGRAM(t){return void 0===t?this.getTokens($O.HISTOGRAM):this.getToken($O.HISTOGRAM,t)}ON(t){return void 0===t?this.getTokens($O.ON):this.getToken($O.ON,t)}fullColumnName(t){return void 0===t?this.getRuleContexts(wU):this.getRuleContext(t,wU)}DROP(){return this.getToken($O.DROP,0)}NO_WRITE_TO_BINLOG(){return this.getToken($O.NO_WRITE_TO_BINLOG,0)}LOCAL(){return this.getToken($O.LOCAL,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}WITH(){return this.getToken($O.WITH,0)}decimalLiteral(){return this.getRuleContext(0,om)}BUCKETS(){return this.getToken($O.BUCKETS,0)}get ruleIndex(){return $O.RULE_analyzeTable}accept(t){return t.visitAnalyzeTable?t.visitAnalyzeTable(this):t.visitChildren(this)}},ld=class extends p{constructor(t,e){super(t,e)}CHECK(){return this.getToken($O.CHECK,0)}TABLE(){return this.getToken($O.TABLE,0)}tables(){return this.getRuleContext(0,Fm)}checkTableOption(t){return void 0===t?this.getRuleContexts(Nd):this.getRuleContext(t,Nd)}get ruleIndex(){return $O.RULE_checkTable}accept(t){return t.visitCheckTable?t.visitCheckTable(this):t.visitChildren(this)}},Od=class extends p{constructor(t,e){super(t,e)}CHECKSUM(){return this.getToken($O.CHECKSUM,0)}TABLE(){return this.getToken($O.TABLE,0)}tables(){return this.getRuleContext(0,Fm)}QUICK(){return this.getToken($O.QUICK,0)}EXTENDED(){return this.getToken($O.EXTENDED,0)}get ruleIndex(){return $O.RULE_checksumTable}accept(t){return t.visitChecksumTable?t.visitChecksumTable(this):t.visitChildren(this)}},Id=class extends p{constructor(t,e){super(t,e)}OPTIMIZE(){return this.getToken($O.OPTIMIZE,0)}tables(){return this.getRuleContext(0,Fm)}TABLE(){return this.getToken($O.TABLE,0)}TABLES(){return this.getToken($O.TABLES,0)}NO_WRITE_TO_BINLOG(){return this.getToken($O.NO_WRITE_TO_BINLOG,0)}LOCAL(){return this.getToken($O.LOCAL,0)}get ruleIndex(){return $O.RULE_optimizeTable}accept(t){return t.visitOptimizeTable?t.visitOptimizeTable(this):t.visitChildren(this)}},ud=class extends p{constructor(t,e){super(t,e)}REPAIR(){return this.getToken($O.REPAIR,0)}TABLE(){return this.getToken($O.TABLE,0)}tables(){return this.getRuleContext(0,Fm)}QUICK(){return this.getToken($O.QUICK,0)}EXTENDED(){return this.getToken($O.EXTENDED,0)}USE_FRM(){return this.getToken($O.USE_FRM,0)}NO_WRITE_TO_BINLOG(){return this.getToken($O.NO_WRITE_TO_BINLOG,0)}LOCAL(){return this.getToken($O.LOCAL,0)}get ruleIndex(){return $O.RULE_repairTable}accept(t){return t.visitRepairTable?t.visitRepairTable(this):t.visitChildren(this)}},Nd=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken($O.FOR,0)}UPGRADE(){return this.getToken($O.UPGRADE,0)}QUICK(){return this.getToken($O.QUICK,0)}FAST(){return this.getToken($O.FAST,0)}MEDIUM(){return this.getToken($O.MEDIUM,0)}EXTENDED(){return this.getToken($O.EXTENDED,0)}CHANGED(){return this.getToken($O.CHANGED,0)}get ruleIndex(){return $O.RULE_checkTableOption}accept(t){return t.visitCheckTableOption?t.visitCheckTableOption(this):t.visitChildren(this)}},Ld=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken($O.CREATE,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}uid(){return this.getRuleContext(0,hm)}RETURNS(){return this.getToken($O.RETURNS,0)}SONAME(){return this.getToken($O.SONAME,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}STRING(){return this.getToken($O.STRING,0)}INTEGER(){return this.getToken($O.INTEGER,0)}REAL(){return this.getToken($O.REAL,0)}DECIMAL(){return this.getToken($O.DECIMAL,0)}AGGREGATE(){return this.getToken($O.AGGREGATE,0)}ifNotExists(){return this.getRuleContext(0,Km)}get ruleIndex(){return $O.RULE_createUdfunction}accept(t){return t.visitCreateUdfunction?t.visitCreateUdfunction(this):t.visitChildren(this)}},Cd=class extends p{constructor(t,e){super(t,e)}INSTALL(){return this.getToken($O.INSTALL,0)}PLUGIN(){return this.getToken($O.PLUGIN,0)}uid(){return this.getRuleContext(0,hm)}SONAME(){return this.getToken($O.SONAME,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_installPlugin}accept(t){return t.visitInstallPlugin?t.visitInstallPlugin(this):t.visitChildren(this)}},_d=class extends p{constructor(t,e){super(t,e)}UNINSTALL(){return this.getToken($O.UNINSTALL,0)}PLUGIN(){return this.getToken($O.PLUGIN,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_uninstallPlugin}accept(t){return t.visitUninstallPlugin?t.visitUninstallPlugin(this):t.visitChildren(this)}},Pd=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_setStatement}copyFrom(t){super.copyFrom(t)}},Md=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}setTransactionStatement(){return this.getRuleContext(0,q_)}accept(t){return t.visitSetTransaction?t.visitSetTransaction(this):t.visitChildren(this)}},dd=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SET(){return this.getToken($O.SET,0)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}DEFAULT(){return this.getToken($O.DEFAULT,0)}accept(t){return t.visitSetCharset?t.visitSetCharset(this):t.visitChildren(this)}},Ud=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SET(){return this.getToken($O.SET,0)}NAMES(){return this.getToken($O.NAMES,0)}charsetName(){return this.getRuleContext(0,tm)}DEFAULT(){return this.getToken($O.DEFAULT,0)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitSetNames?t.visitSetNames(this):t.visitChildren(this)}},md=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}setPasswordStatement(){return this.getRuleContext(0,wM)}accept(t){return t.visitSetPassword?t.visitSetPassword(this):t.visitChildren(this)}},Dd=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}setAutocommitStatement(){return this.getRuleContext(0,Z_)}accept(t){return t.visitSetAutocommit?t.visitSetAutocommit(this):t.visitChildren(this)}},pd=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SET(){return this.getToken($O.SET,0)}fullId(t){return void 0===t?this.getRuleContexts(kU):this.getRuleContext(t,kU)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}VAR_ASSIGN(t){return void 0===t?this.getTokens($O.VAR_ASSIGN):this.getToken($O.VAR_ASSIGN,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitSetNewValueInsideTrigger?t.visitSetNewValueInsideTrigger(this):t.visitChildren(this)}},gd=class extends Pd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SET(){return this.getToken($O.SET,0)}variableClause(t){return void 0===t?this.getRuleContexts(zd):this.getRuleContext(t,zd)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}VAR_ASSIGN(t){return void 0===t?this.getTokens($O.VAR_ASSIGN):this.getToken($O.VAR_ASSIGN,t)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}ON(t){return void 0===t?this.getTokens($O.ON):this.getToken($O.ON,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitSetVariable?t.visitSetVariable(this):t.visitChildren(this)}},xd=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_showStatement}copyFrom(t){super.copyFrom(t)}},kd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}OPEN(){return this.getToken($O.OPEN,0)}TABLES(){return this.getToken($O.TABLES,0)}uid(){return this.getRuleContext(0,hm)}showFilter(){return this.getRuleContext(0,tU)}FROM(){return this.getToken($O.FROM,0)}IN(){return this.getToken($O.IN,0)}accept(t){return t.visitShowOpenTables?t.visitShowOpenTables(this):t.visitChildren(this)}},Hd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}showGlobalInfoClause(){return this.getRuleContext(0,eU)}accept(t){return t.visitShowGlobalInfo?t.visitShowGlobalInfo(this):t.visitChildren(this)}},Gd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}CREATE(){return this.getToken($O.CREATE,0)}fullId(){return this.getRuleContext(0,kU)}EVENT(){return this.getToken($O.EVENT,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}accept(t){return t.visitShowCreateFullIdObject?t.visitShowCreateFullIdObject(this):t.visitChildren(this)}},Fd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}CREATE(){return this.getToken($O.CREATE,0)}USER(){return this.getToken($O.USER,0)}userName(){return this.getRuleContext(0,zU)}accept(t){return t.visitShowCreateUser?t.visitShowCreateUser(this):t.visitChildren(this)}},vd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}ERRORS(){return this.getToken($O.ERRORS,0)}WARNINGS(){return this.getToken($O.WARNINGS,0)}LIMIT(){return this.getToken($O.LIMIT,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}COMMA(){return this.getToken($O.COMMA,0)}accept(t){return t.visitShowErrors?t.visitShowErrors(this):t.visitChildren(this)}},Bd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}COUNT(){return this.getToken($O.COUNT,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}STAR(){return this.getToken($O.STAR,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}ERRORS(){return this.getToken($O.ERRORS,0)}WARNINGS(){return this.getToken($O.WARNINGS,0)}accept(t){return t.visitShowCountErrors?t.visitShowCountErrors(this):t.visitChildren(this)}},yd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}showCommonEntity(){return this.getRuleContext(0,$d)}showFilter(){return this.getRuleContext(0,tU)}accept(t){return t.visitShowObjectFilter?t.visitShowObjectFilter(this):t.visitChildren(this)}},fd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}CREATE(){return this.getToken($O.CREATE,0)}databaseName(){return this.getRuleContext(0,bU)}DATABASE(){return this.getToken($O.DATABASE,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}ifNotExists(){return this.getRuleContext(0,Km)}accept(t){return t.visitShowCreateDb?t.visitShowCreateDb(this):t.visitChildren(this)}},Yd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}ENGINE(){return this.getToken($O.ENGINE,0)}engineName(){return this.getRuleContext(0,sm)}STATUS(){return this.getToken($O.STATUS,0)}MUTEX(){return this.getToken($O.MUTEX,0)}accept(t){return t.visitShowEngine?t.visitShowEngine(this):t.visitChildren(this)}},wd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}showSchemaEntity(){return this.getRuleContext(0,sU)}uid(){return this.getRuleContext(0,hm)}showFilter(){return this.getRuleContext(0,tU)}FROM(){return this.getToken($O.FROM,0)}IN(){return this.getToken($O.IN,0)}accept(t){return t.visitShowSchemaFilter?t.visitShowSchemaFilter(this):t.visitChildren(this)}},bd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}tableName(){return this.getRuleContext(0,HU)}INDEX(){return this.getToken($O.INDEX,0)}INDEXES(){return this.getToken($O.INDEXES,0)}KEYS(){return this.getToken($O.KEYS,0)}FROM(t){return void 0===t?this.getTokens($O.FROM):this.getToken($O.FROM,t)}IN(t){return void 0===t?this.getTokens($O.IN):this.getToken($O.IN,t)}uid(){return this.getRuleContext(0,hm)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}accept(t){return t.visitShowIndexes?t.visitShowIndexes(this):t.visitChildren(this)}},Wd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}EVENTS(){return this.getToken($O.EVENTS,0)}BINLOG(){return this.getToken($O.BINLOG,0)}RELAYLOG(){return this.getToken($O.RELAYLOG,0)}IN(){return this.getToken($O.IN,0)}FROM(){return this.getToken($O.FROM,0)}LIMIT(){return this.getToken($O.LIMIT,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}COMMA(){return this.getToken($O.COMMA,0)}accept(t){return t.visitShowLogEvents?t.visitShowLogEvents(this):t.visitChildren(this)}},Vd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}CREATE(){return this.getToken($O.CREATE,0)}TRIGGER(){return this.getToken($O.TRIGGER,0)}triggerName(){return this.getRuleContext(0,XU)}accept(t){return t.visitShowCreateTrigger?t.visitShowCreateTrigger(this):t.visitChildren(this)}},Xd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}LOGS(){return this.getToken($O.LOGS,0)}BINARY(){return this.getToken($O.BINARY,0)}MASTER(){return this.getToken($O.MASTER,0)}accept(t){return t.visitShowMasterLogs?t.visitShowMasterLogs(this):t.visitChildren(this)}},Kd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}GRANTS(){return this.getToken($O.GRANTS,0)}FOR(){return this.getToken($O.FOR,0)}userName(){return this.getRuleContext(0,zU)}accept(t){return t.visitShowGrants?t.visitShowGrants(this):t.visitChildren(this)}},Qd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}SLAVE(){return this.getToken($O.SLAVE,0)}STATUS(){return this.getToken($O.STATUS,0)}FOR(){return this.getToken($O.FOR,0)}CHANNEL(){return this.getToken($O.CHANNEL,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitShowSlaveStatus?t.visitShowSlaveStatus(this):t.visitChildren(this)}},Jd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}CODE(){return this.getToken($O.CODE,0)}fullId(){return this.getRuleContext(0,kU)}FUNCTION(){return this.getToken($O.FUNCTION,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}accept(t){return t.visitShowRoutine?t.visitShowRoutine(this):t.visitChildren(this)}},Zd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}PROFILE(){return this.getToken($O.PROFILE,0)}showProfileType(t){return void 0===t?this.getRuleContexts(aU):this.getRuleContext(t,aU)}LIMIT(){return this.getToken($O.LIMIT,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}FOR(){return this.getToken($O.FOR,0)}QUERY(){return this.getToken($O.QUERY,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}accept(t){return t.visitShowProfile?t.visitShowProfile(this):t.visitChildren(this)}},qd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}tableName(){return this.getRuleContext(0,HU)}COLUMNS(){return this.getToken($O.COLUMNS,0)}FIELDS(){return this.getToken($O.FIELDS,0)}FROM(t){return void 0===t?this.getTokens($O.FROM):this.getToken($O.FROM,t)}IN(t){return void 0===t?this.getTokens($O.IN):this.getToken($O.IN,t)}FULL(){return this.getToken($O.FULL,0)}uid(){return this.getRuleContext(0,hm)}showFilter(){return this.getRuleContext(0,tU)}accept(t){return t.visitShowColumns?t.visitShowColumns(this):t.visitChildren(this)}},jd=class extends xd{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken($O.SHOW,0)}CREATE(){return this.getToken($O.CREATE,0)}tableName(){return this.getRuleContext(0,HU)}TABLE(){return this.getToken($O.TABLE,0)}VIEW(){return this.getToken($O.VIEW,0)}accept(t){return t.visitShowCreateTableOrView?t.visitShowCreateTableOrView(this):t.visitChildren(this)}},zd=class extends p{constructor(t,e){super(t,e)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}GLOBAL_ID(){return this.getToken($O.GLOBAL_ID,0)}uid(){return this.getRuleContext(0,hm)}GLOBAL(){return this.getToken($O.GLOBAL,0)}SESSION(){return this.getToken($O.SESSION,0)}LOCAL(){return this.getToken($O.LOCAL,0)}AT_SIGN(t){return void 0===t?this.getTokens($O.AT_SIGN):this.getToken($O.AT_SIGN,t)}get ruleIndex(){return $O.RULE_variableClause}accept(t){return t.visitVariableClause?t.visitVariableClause(this):t.visitChildren(this)}},$d=class extends p{constructor(t,e){super(t,e)}CHARACTER(){return this.getToken($O.CHARACTER,0)}SET(){return this.getToken($O.SET,0)}COLLATION(){return this.getToken($O.COLLATION,0)}DATABASES(){return this.getToken($O.DATABASES,0)}SCHEMAS(){return this.getToken($O.SCHEMAS,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}STATUS(){return this.getToken($O.STATUS,0)}PROCEDURE(){return this.getToken($O.PROCEDURE,0)}VARIABLES(){return this.getToken($O.VARIABLES,0)}GLOBAL(){return this.getToken($O.GLOBAL,0)}SESSION(){return this.getToken($O.SESSION,0)}get ruleIndex(){return $O.RULE_showCommonEntity}accept(t){return t.visitShowCommonEntity?t.visitShowCommonEntity(this):t.visitChildren(this)}},tU=class extends p{constructor(t,e){super(t,e)}LIKE(){return this.getToken($O.LIKE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}WHERE(){return this.getToken($O.WHERE,0)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_showFilter}accept(t){return t.visitShowFilter?t.visitShowFilter(this):t.visitChildren(this)}},eU=class extends p{constructor(t,e){super(t,e)}ENGINES(){return this.getToken($O.ENGINES,0)}STORAGE(){return this.getToken($O.STORAGE,0)}MASTER(){return this.getToken($O.MASTER,0)}STATUS(){return this.getToken($O.STATUS,0)}PLUGINS(){return this.getToken($O.PLUGINS,0)}PRIVILEGES(){return this.getToken($O.PRIVILEGES,0)}PROCESSLIST(){return this.getToken($O.PROCESSLIST,0)}FULL(){return this.getToken($O.FULL,0)}PROFILES(){return this.getToken($O.PROFILES,0)}SLAVE(){return this.getToken($O.SLAVE,0)}HOSTS(){return this.getToken($O.HOSTS,0)}AUTHORS(){return this.getToken($O.AUTHORS,0)}CONTRIBUTORS(){return this.getToken($O.CONTRIBUTORS,0)}get ruleIndex(){return $O.RULE_showGlobalInfoClause}accept(t){return t.visitShowGlobalInfoClause?t.visitShowGlobalInfoClause(this):t.visitChildren(this)}},sU=class extends p{constructor(t,e){super(t,e)}EVENTS(){return this.getToken($O.EVENTS,0)}TABLE(){return this.getToken($O.TABLE,0)}STATUS(){return this.getToken($O.STATUS,0)}TABLES(){return this.getToken($O.TABLES,0)}FULL(){return this.getToken($O.FULL,0)}TRIGGERS(){return this.getToken($O.TRIGGERS,0)}get ruleIndex(){return $O.RULE_showSchemaEntity}accept(t){return t.visitShowSchemaEntity?t.visitShowSchemaEntity(this):t.visitChildren(this)}},aU=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken($O.ALL,0)}BLOCK(){return this.getToken($O.BLOCK,0)}IO(){return this.getToken($O.IO,0)}CONTEXT(){return this.getToken($O.CONTEXT,0)}SWITCHES(){return this.getToken($O.SWITCHES,0)}CPU(){return this.getToken($O.CPU,0)}IPC(){return this.getToken($O.IPC,0)}MEMORY(){return this.getToken($O.MEMORY,0)}PAGE(){return this.getToken($O.PAGE,0)}FAULTS(){return this.getToken($O.FAULTS,0)}SOURCE(){return this.getToken($O.SOURCE,0)}SWAPS(){return this.getToken($O.SWAPS,0)}get ruleIndex(){return $O.RULE_showProfileType}accept(t){return t.visitShowProfileType?t.visitShowProfileType(this):t.visitChildren(this)}},iU=class extends p{constructor(t,e){super(t,e)}BINLOG(){return this.getToken($O.BINLOG,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_binlogStatement}accept(t){return t.visitBinlogStatement?t.visitBinlogStatement(this):t.visitChildren(this)}},rU=class extends p{constructor(t,e){super(t,e)}CACHE(){return this.getToken($O.CACHE,0)}INDEX(){return this.getToken($O.INDEX,0)}tableIndexes(t){return void 0===t?this.getRuleContexts(oU):this.getRuleContext(t,oU)}IN(){return this.getToken($O.IN,0)}uid(){return this.getRuleContext(0,hm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}uidList(){return this.getRuleContext(0,Hm)}ALL(){return this.getToken($O.ALL,0)}get ruleIndex(){return $O.RULE_cacheIndexStatement}accept(t){return t.visitCacheIndexStatement?t.visitCacheIndexStatement(this):t.visitChildren(this)}},cU=class extends p{constructor(t,e){super(t,e)}FLUSH(){return this.getToken($O.FLUSH,0)}flushOption(t){return void 0===t?this.getRuleContexts(RU):this.getRuleContext(t,RU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}NO_WRITE_TO_BINLOG(){return this.getToken($O.NO_WRITE_TO_BINLOG,0)}LOCAL(){return this.getToken($O.LOCAL,0)}get ruleIndex(){return $O.RULE_flushStatement}accept(t){return t.visitFlushStatement?t.visitFlushStatement(this):t.visitChildren(this)}},nU=class extends p{constructor(t,e){super(t,e)}KILL(){return this.getToken($O.KILL,0)}expression(){return this.getRuleContext(0,BD)}CONNECTION(){return this.getToken($O.CONNECTION,0)}QUERY(){return this.getToken($O.QUERY,0)}get ruleIndex(){return $O.RULE_killStatement}accept(t){return t.visitKillStatement?t.visitKillStatement(this):t.visitChildren(this)}},hU=class extends p{constructor(t,e){super(t,e)}LOAD(){return this.getToken($O.LOAD,0)}INDEX(){return this.getToken($O.INDEX,0)}INTO(){return this.getToken($O.INTO,0)}CACHE(){return this.getToken($O.CACHE,0)}loadedTableIndexes(t){return void 0===t?this.getRuleContexts(IU):this.getRuleContext(t,IU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_loadIndexIntoCache}accept(t){return t.visitLoadIndexIntoCache?t.visitLoadIndexIntoCache(this):t.visitChildren(this)}},EU=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken($O.RESET,0)}QUERY(){return this.getToken($O.QUERY,0)}CACHE(){return this.getToken($O.CACHE,0)}get ruleIndex(){return $O.RULE_resetStatement}accept(t){return t.visitResetStatement?t.visitResetStatement(this):t.visitChildren(this)}},TU=class extends p{constructor(t,e){super(t,e)}SHUTDOWN(){return this.getToken($O.SHUTDOWN,0)}get ruleIndex(){return $O.RULE_shutdownStatement}accept(t){return t.visitShutdownStatement?t.visitShutdownStatement(this):t.visitChildren(this)}},oU=class extends p{constructor(t,e){super(t,e)}tableName(){return this.getRuleContext(0,HU)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}indexNameList(){return this.getRuleContext(0,KU)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}get ruleIndex(){return $O.RULE_tableIndexes}accept(t){return t.visitTableIndexes?t.visitTableIndexes(this):t.visitChildren(this)}},RU=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_flushOption}copyFrom(t){super.copyFrom(t)}},AU=class extends RU{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TABLE(){return this.getToken($O.TABLE,0)}TABLES(){return this.getToken($O.TABLES,0)}tables(){return this.getRuleContext(0,Fm)}flushTableOption(){return this.getRuleContext(0,OU)}accept(t){return t.visitTableFlushOption?t.visitTableFlushOption(this):t.visitChildren(this)}},SU=class extends RU{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RELAY(){return this.getToken($O.RELAY,0)}LOGS(){return this.getToken($O.LOGS,0)}channelOption(){return this.getRuleContext(0,LP)}accept(t){return t.visitChannelFlushOption?t.visitChannelFlushOption(this):t.visitChildren(this)}},lU=class extends RU{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DES_KEY_FILE(){return this.getToken($O.DES_KEY_FILE,0)}HOSTS(){return this.getToken($O.HOSTS,0)}LOGS(){return this.getToken($O.LOGS,0)}OPTIMIZER_COSTS(){return this.getToken($O.OPTIMIZER_COSTS,0)}PRIVILEGES(){return this.getToken($O.PRIVILEGES,0)}QUERY(){return this.getToken($O.QUERY,0)}CACHE(){return this.getToken($O.CACHE,0)}STATUS(){return this.getToken($O.STATUS,0)}USER_RESOURCES(){return this.getToken($O.USER_RESOURCES,0)}TABLES(){return this.getToken($O.TABLES,0)}WITH(){return this.getToken($O.WITH,0)}READ(){return this.getToken($O.READ,0)}LOCK(){return this.getToken($O.LOCK,0)}BINARY(){return this.getToken($O.BINARY,0)}ENGINE(){return this.getToken($O.ENGINE,0)}ERROR(){return this.getToken($O.ERROR,0)}GENERAL(){return this.getToken($O.GENERAL,0)}RELAY(){return this.getToken($O.RELAY,0)}SLOW(){return this.getToken($O.SLOW,0)}accept(t){return t.visitSimpleFlushOption?t.visitSimpleFlushOption(this):t.visitChildren(this)}},OU=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken($O.WITH,0)}READ(){return this.getToken($O.READ,0)}LOCK(){return this.getToken($O.LOCK,0)}FOR(){return this.getToken($O.FOR,0)}EXPORT(){return this.getToken($O.EXPORT,0)}get ruleIndex(){return $O.RULE_flushTableOption}accept(t){return t.visitFlushTableOption?t.visitFlushTableOption(this):t.visitChildren(this)}},IU=class extends p{constructor(t,e){super(t,e)}tableName(){return this.getRuleContext(0,HU)}PARTITION(){return this.getToken($O.PARTITION,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}indexNameList(){return this.getRuleContext(0,KU)}IGNORE(){return this.getToken($O.IGNORE,0)}LEAVES(){return this.getToken($O.LEAVES,0)}ALL(){return this.getToken($O.ALL,0)}uidList(){return this.getRuleContext(0,Hm)}INDEX(){return this.getToken($O.INDEX,0)}KEY(){return this.getToken($O.KEY,0)}get ruleIndex(){return $O.RULE_loadedTableIndexes}accept(t){return t.visitLoadedTableIndexes?t.visitLoadedTableIndexes(this):t.visitChildren(this)}},uU=class extends p{constructor(t,e){super(t,e)}tableName(){return this.getRuleContext(0,HU)}EXPLAIN(){return this.getToken($O.EXPLAIN,0)}DESCRIBE(){return this.getToken($O.DESCRIBE,0)}DESC(){return this.getToken($O.DESC,0)}uid(){return this.getRuleContext(0,hm)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_simpleDescribeStatement}accept(t){return t.visitSimpleDescribeStatement?t.visitSimpleDescribeStatement(this):t.visitChildren(this)}},NU=class extends p{constructor(t,e){super(t,e)}describeObjectClause(){return this.getRuleContext(0,pU)}EXPLAIN(){return this.getToken($O.EXPLAIN,0)}DESCRIBE(){return this.getToken($O.DESCRIBE,0)}DESC(){return this.getToken($O.DESC,0)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}EXTENDED(){return this.getToken($O.EXTENDED,0)}PARTITIONS(){return this.getToken($O.PARTITIONS,0)}FORMAT(){return this.getToken($O.FORMAT,0)}TRADITIONAL(){return this.getToken($O.TRADITIONAL,0)}JSON(){return this.getToken($O.JSON,0)}get ruleIndex(){return $O.RULE_fullDescribeStatement}accept(t){return t.visitFullDescribeStatement?t.visitFullDescribeStatement(this):t.visitChildren(this)}},LU=class extends p{constructor(t,e){super(t,e)}HELP(){return this.getToken($O.HELP,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_helpStatement}accept(t){return t.visitHelpStatement?t.visitHelpStatement(this):t.visitChildren(this)}},CU=class extends p{constructor(t,e){super(t,e)}USE(){return this.getToken($O.USE,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_useStatement}accept(t){return t.visitUseStatement?t.visitUseStatement(this):t.visitChildren(this)}},_U=class extends p{constructor(t,e){super(t,e)}SIGNAL(){return this.getToken($O.SIGNAL,0)}ID(){return this.getToken($O.ID,0)}REVERSE_QUOTE_ID(){return this.getToken($O.REVERSE_QUOTE_ID,0)}SET(){return this.getToken($O.SET,0)}signalConditionInformation(t){return void 0===t?this.getRuleContexts(MU):this.getRuleContext(t,MU)}SQLSTATE(){return this.getToken($O.SQLSTATE,0)}stringLiteral(){return this.getRuleContext(0,Am)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}VALUE(){return this.getToken($O.VALUE,0)}get ruleIndex(){return $O.RULE_signalStatement}accept(t){return t.visitSignalStatement?t.visitSignalStatement(this):t.visitChildren(this)}},PU=class extends p{constructor(t,e){super(t,e)}RESIGNAL(){return this.getToken($O.RESIGNAL,0)}ID(){return this.getToken($O.ID,0)}REVERSE_QUOTE_ID(){return this.getToken($O.REVERSE_QUOTE_ID,0)}SET(){return this.getToken($O.SET,0)}signalConditionInformation(t){return void 0===t?this.getRuleContexts(MU):this.getRuleContext(t,MU)}SQLSTATE(){return this.getToken($O.SQLSTATE,0)}stringLiteral(){return this.getRuleContext(0,Am)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}VALUE(){return this.getToken($O.VALUE,0)}get ruleIndex(){return $O.RULE_resignalStatement}accept(t){return t.visitResignalStatement?t.visitResignalStatement(this):t.visitChildren(this)}},MU=class extends p{constructor(t,e){super(t,e)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}CLASS_ORIGIN(){return this.getToken($O.CLASS_ORIGIN,0)}SUBCLASS_ORIGIN(){return this.getToken($O.SUBCLASS_ORIGIN,0)}MESSAGE_TEXT(){return this.getToken($O.MESSAGE_TEXT,0)}MYSQL_ERRNO(){return this.getToken($O.MYSQL_ERRNO,0)}CONSTRAINT_CATALOG(){return this.getToken($O.CONSTRAINT_CATALOG,0)}CONSTRAINT_SCHEMA(){return this.getToken($O.CONSTRAINT_SCHEMA,0)}CONSTRAINT_NAME(){return this.getToken($O.CONSTRAINT_NAME,0)}CATALOG_NAME(){return this.getToken($O.CATALOG_NAME,0)}SCHEMA_NAME(){return this.getToken($O.SCHEMA_NAME,0)}TABLE_NAME(){return this.getToken($O.TABLE_NAME,0)}COLUMN_NAME(){return this.getToken($O.COLUMN_NAME,0)}CURSOR_NAME(){return this.getToken($O.CURSOR_NAME,0)}stringLiteral(){return this.getRuleContext(0,Am)}DECIMAL_LITERAL(){return this.getToken($O.DECIMAL_LITERAL,0)}mysqlVariable(){return this.getRuleContext(0,$U)}simpleId(){return this.getRuleContext(0,Em)}get ruleIndex(){return $O.RULE_signalConditionInformation}accept(t){return t.visitSignalConditionInformation?t.visitSignalConditionInformation(this):t.visitChildren(this)}},dU=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken($O.WITH,0)}commonTableExpressions(t){return void 0===t?this.getRuleContexts(mI):this.getRuleContext(t,mI)}RECURSIVE(){return this.getToken($O.RECURSIVE,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_withStatement}accept(t){return t.visitWithStatement?t.visitWithStatement(this):t.visitChildren(this)}},UU=class extends p{constructor(t,e){super(t,e)}TABLE(){return this.getToken($O.TABLE,0)}tableName(){return this.getRuleContext(0,HU)}orderByClause(){return this.getRuleContext(0,bC)}limitClause(){return this.getRuleContext(0,y_)}get ruleIndex(){return $O.RULE_tableStatement}accept(t){return t.visitTableStatement?t.visitTableStatement(this):t.visitChildren(this)}},mU=class extends p{constructor(t,e){super(t,e)}GET(){return this.getToken($O.GET,0)}DIAGNOSTICS(){return this.getToken($O.DIAGNOSTICS,0)}CURRENT(){return this.getToken($O.CURRENT,0)}STACKED(){return this.getToken($O.STACKED,0)}variableClause(t){return void 0===t?this.getRuleContexts(zd):this.getRuleContext(t,zd)}EQUAL_SYMBOL(t){return void 0===t?this.getTokens($O.EQUAL_SYMBOL):this.getToken($O.EQUAL_SYMBOL,t)}CONDITION(){return this.getToken($O.CONDITION,0)}diagnosticsConditionInformationName(t){return void 0===t?this.getRuleContexts(DU):this.getRuleContext(t,DU)}NUMBER(t){return void 0===t?this.getTokens($O.NUMBER):this.getToken($O.NUMBER,t)}ROW_COUNT(t){return void 0===t?this.getTokens($O.ROW_COUNT):this.getToken($O.ROW_COUNT,t)}decimalLiteral(){return this.getRuleContext(0,om)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_diagnosticsStatement}accept(t){return t.visitDiagnosticsStatement?t.visitDiagnosticsStatement(this):t.visitChildren(this)}},DU=class extends p{constructor(t,e){super(t,e)}CLASS_ORIGIN(){return this.getToken($O.CLASS_ORIGIN,0)}SUBCLASS_ORIGIN(){return this.getToken($O.SUBCLASS_ORIGIN,0)}RETURNED_SQLSTATE(){return this.getToken($O.RETURNED_SQLSTATE,0)}MESSAGE_TEXT(){return this.getToken($O.MESSAGE_TEXT,0)}MYSQL_ERRNO(){return this.getToken($O.MYSQL_ERRNO,0)}CONSTRAINT_CATALOG(){return this.getToken($O.CONSTRAINT_CATALOG,0)}CONSTRAINT_SCHEMA(){return this.getToken($O.CONSTRAINT_SCHEMA,0)}CONSTRAINT_NAME(){return this.getToken($O.CONSTRAINT_NAME,0)}CATALOG_NAME(){return this.getToken($O.CATALOG_NAME,0)}SCHEMA_NAME(){return this.getToken($O.SCHEMA_NAME,0)}TABLE_NAME(){return this.getToken($O.TABLE_NAME,0)}COLUMN_NAME(){return this.getToken($O.COLUMN_NAME,0)}CURSOR_NAME(){return this.getToken($O.CURSOR_NAME,0)}get ruleIndex(){return $O.RULE_diagnosticsConditionInformationName}accept(t){return t.visitDiagnosticsConditionInformationName?t.visitDiagnosticsConditionInformationName(this):t.visitChildren(this)}},pU=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_describeObjectClause}copyFrom(t){super.copyFrom(t)}},gU=class extends pU{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}selectStatement(){return this.getRuleContext(0,_C)}deleteStatement(){return this.getRuleContext(0,lC)}insertStatement(){return this.getRuleContext(0,uC)}replaceStatement(){return this.getRuleContext(0,CC)}updateStatement(){return this.getRuleContext(0,DC)}accept(t){return t.visitDescribeStatements?t.visitDescribeStatements(this):t.visitChildren(this)}},xU=class extends pU{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FOR(){return this.getToken($O.FOR,0)}CONNECTION(){return this.getToken($O.CONNECTION,0)}uid(){return this.getRuleContext(0,hm)}accept(t){return t.visitDescribeConnection?t.visitDescribeConnection(this):t.visitChildren(this)}},kU=class extends p{constructor(t,e){super(t,e)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}DOT_ID(){return this.getToken($O.DOT_ID,0)}DOT(){return this.getToken($O.DOT,0)}get ruleIndex(){return $O.RULE_fullId}accept(t){return t.visitFullId?t.visitFullId(this):t.visitChildren(this)}},HU=class extends p{constructor(t,e){super(t,e)}fullId(){return this.getRuleContext(0,kU)}get ruleIndex(){return $O.RULE_tableName}accept(t){return t.visitTableName?t.visitTableName(this):t.visitChildren(this)}},GU=class extends p{constructor(t,e){super(t,e)}tableName(t){return void 0===t?this.getRuleContexts(HU):this.getRuleContext(t,HU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_tableNames}accept(t){return t.visitTableNames?t.visitTableNames(this):t.visitChildren(this)}},FU=class extends p{constructor(t,e){super(t,e)}userName(){return this.getRuleContext(0,zU)}roleName(){return this.getRuleContext(0,YU)}get ruleIndex(){return $O.RULE_userOrRoleName}accept(t){return t.visitUserOrRoleName?t.visitUserOrRoleName(this):t.visitChildren(this)}},vU=class extends p{constructor(t,e){super(t,e)}userOrRoleName(t){return void 0===t?this.getRuleContexts(FU):this.getRuleContext(t,FU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_userOrRoleNameList}accept(t){return t.visitUserOrRoleNameList?t.visitUserOrRoleNameList(this):t.visitChildren(this)}},BU=class extends p{constructor(t,e){super(t,e)}newRoleName(t){return void 0===t?this.getRuleContexts(yU):this.getRuleContext(t,yU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_newRoleNameList}accept(t){return t.visitNewRoleNameList?t.visitNewRoleNameList(this):t.visitChildren(this)}},yU=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_newRoleName}accept(t){return t.visitNewRoleName?t.visitNewRoleName(this):t.visitChildren(this)}},fU=class extends p{constructor(t,e){super(t,e)}roleName(t){return void 0===t?this.getRuleContexts(YU):this.getRuleContext(t,YU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_roleNameList}accept(t){return t.visitRoleNameList?t.visitRoleNameList(this):t.visitChildren(this)}},YU=class extends p{constructor(t,e){super(t,e)}newRoleName(){return this.getRuleContext(0,yU)}get ruleIndex(){return $O.RULE_roleName}accept(t){return t.visitRoleName?t.visitRoleName(this):t.visitChildren(this)}},wU=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}dottedId(t){return void 0===t?this.getRuleContexts(Tm):this.getRuleContext(t,Tm)}get ruleIndex(){return $O.RULE_fullColumnName}accept(t){return t.visitFullColumnName?t.visitFullColumnName(this):t.visitChildren(this)}},bU=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_databaseName}accept(t){return t.visitDatabaseName?t.visitDatabaseName(this):t.visitChildren(this)}},WU=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_indexName}accept(t){return t.visitIndexName?t.visitIndexName(this):t.visitChildren(this)}},VU=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_constraintName}accept(t){return t.visitConstraintName?t.visitConstraintName(this):t.visitChildren(this)}},XU=class extends p{constructor(t,e){super(t,e)}fullId(){return this.getRuleContext(0,kU)}get ruleIndex(){return $O.RULE_triggerName}accept(t){return t.visitTriggerName?t.visitTriggerName(this):t.visitChildren(this)}},KU=class extends p{constructor(t,e){super(t,e)}indexName(t){return void 0===t?this.getRuleContexts(WU):this.getRuleContext(t,WU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_indexNameList}accept(t){return t.visitIndexNameList?t.visitIndexNameList(this):t.visitChildren(this)}},QU=class extends p{constructor(t,e){super(t,e)}expression(){return this.getRuleContext(0,BD)}uid(){return this.getRuleContext(0,hm)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}decimalLiteral(){return this.getRuleContext(0,om)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}ASC(){return this.getToken($O.ASC,0)}DESC(){return this.getToken($O.DESC,0)}get ruleIndex(){return $O.RULE_indexColumnName}accept(t){return t.visitIndexColumnName?t.visitIndexColumnName(this):t.visitChildren(this)}},JU=class extends p{constructor(t,e){super(t,e)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}ID(){return this.getToken($O.ID,0)}ADMIN(){return this.getToken($O.ADMIN,0)}keywordsCanBeId(){return this.getRuleContext(0,Dp)}get ruleIndex(){return $O.RULE_simpleUserName}accept(t){return t.visitSimpleUserName?t.visitSimpleUserName(this):t.visitChildren(this)}},ZU=class extends p{constructor(t,e){super(t,e)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}HOST_IP_ADDRESS(){return this.getToken($O.HOST_IP_ADDRESS,0)}AT_SIGN(){return this.getToken($O.AT_SIGN,0)}get ruleIndex(){return $O.RULE_hostName}accept(t){return t.visitHostName?t.visitHostName(this):t.visitChildren(this)}},qU=class extends p{constructor(t,e){super(t,e)}userName(t){return void 0===t?this.getRuleContexts(zU):this.getRuleContext(t,zU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_userNameList}accept(t){return t.visitUserNameList?t.visitUserNameList(this):t.visitChildren(this)}},jU=class extends p{constructor(t,e){super(t,e)}simpleUserName(){return this.getRuleContext(0,JU)}hostName(){return this.getRuleContext(0,ZU)}currentUserExpression(){return this.getRuleContext(0,HI)}get ruleIndex(){return $O.RULE_newUserName}accept(t){return t.visitNewUserName?t.visitNewUserName(this):t.visitChildren(this)}},zU=class extends p{constructor(t,e){super(t,e)}newUserName(){return this.getRuleContext(0,jU)}get ruleIndex(){return $O.RULE_userName}accept(t){return t.visitUserName?t.visitUserName(this):t.visitChildren(this)}},$U=class extends p{constructor(t,e){super(t,e)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}GLOBAL_ID(){return this.getToken($O.GLOBAL_ID,0)}get ruleIndex(){return $O.RULE_mysqlVariable}accept(t){return t.visitMysqlVariable?t.visitMysqlVariable(this):t.visitChildren(this)}},tm=class extends p{constructor(t,e){super(t,e)}BINARY(){return this.getToken($O.BINARY,0)}charsetNameBase(){return this.getRuleContext(0,Pp)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}CHARSET_REVERSE_QOUTE_STRING(){return this.getToken($O.CHARSET_REVERSE_QOUTE_STRING,0)}get ruleIndex(){return $O.RULE_charsetName}accept(t){return t.visitCharsetName?t.visitCharsetName(this):t.visitChildren(this)}},em=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_collationName}accept(t){return t.visitCollationName?t.visitCollationName(this):t.visitChildren(this)}},sm=class extends p{constructor(t,e){super(t,e)}engineNameBase(){return this.getRuleContext(0,am)}ID(){return this.getToken($O.ID,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_engineName}accept(t){return t.visitEngineName?t.visitEngineName(this):t.visitChildren(this)}},am=class extends p{constructor(t,e){super(t,e)}ARCHIVE(){return this.getToken($O.ARCHIVE,0)}BLACKHOLE(){return this.getToken($O.BLACKHOLE,0)}CONNECT(){return this.getToken($O.CONNECT,0)}CSV(){return this.getToken($O.CSV,0)}FEDERATED(){return this.getToken($O.FEDERATED,0)}INNODB(){return this.getToken($O.INNODB,0)}MEMORY(){return this.getToken($O.MEMORY,0)}MRG_MYISAM(){return this.getToken($O.MRG_MYISAM,0)}MYISAM(){return this.getToken($O.MYISAM,0)}NDB(){return this.getToken($O.NDB,0)}NDBCLUSTER(){return this.getToken($O.NDBCLUSTER,0)}PERFORMANCE_SCHEMA(){return this.getToken($O.PERFORMANCE_SCHEMA,0)}TOKUDB(){return this.getToken($O.TOKUDB,0)}get ruleIndex(){return $O.RULE_engineNameBase}accept(t){return t.visitEngineNameBase?t.visitEngineNameBase(this):t.visitChildren(this)}},im=class extends p{constructor(t,e){super(t,e)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}MINUS(t){return void 0===t?this.getTokens($O.MINUS):this.getToken($O.MINUS,t)}COLON_SYMB(t){return void 0===t?this.getTokens($O.COLON_SYMB):this.getToken($O.COLON_SYMB,t)}get ruleIndex(){return $O.RULE_uuidSet}accept(t){return t.visitUuidSet?t.visitUuidSet(this):t.visitChildren(this)}},rm=class extends p{constructor(t,e){super(t,e)}xuidStringId(t){return void 0===t?this.getRuleContexts(cm):this.getRuleContext(t,cm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}decimalLiteral(){return this.getRuleContext(0,om)}get ruleIndex(){return $O.RULE_xid}accept(t){return t.visitXid?t.visitXid(this):t.visitChildren(this)}},cm=class extends p{constructor(t,e){super(t,e)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}BIT_STRING(){return this.getToken($O.BIT_STRING,0)}HEXADECIMAL_LITERAL(t){return void 0===t?this.getTokens($O.HEXADECIMAL_LITERAL):this.getToken($O.HEXADECIMAL_LITERAL,t)}get ruleIndex(){return $O.RULE_xuidStringId}accept(t){return t.visitXuidStringId?t.visitXuidStringId(this):t.visitChildren(this)}},nm=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_authPlugin}accept(t){return t.visitAuthPlugin?t.visitAuthPlugin(this):t.visitChildren(this)}},hm=class extends p{constructor(t,e){super(t,e)}simpleId(){return this.getRuleContext(0,Em)}CHARSET_REVERSE_QOUTE_STRING(){return this.getToken($O.CHARSET_REVERSE_QOUTE_STRING,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}get ruleIndex(){return $O.RULE_uid}accept(t){return t.visitUid?t.visitUid(this):t.visitChildren(this)}},Em=class extends p{constructor(t,e){super(t,e)}ID(){return this.getToken($O.ID,0)}charsetNameBase(){return this.getRuleContext(0,Pp)}transactionLevelBase(){return this.getRuleContext(0,Mp)}engineNameBase(){return this.getRuleContext(0,am)}privilegesBase(){return this.getRuleContext(0,dp)}intervalTypeBase(){return this.getRuleContext(0,Up)}dataTypeBase(){return this.getRuleContext(0,mp)}keywordsCanBeId(){return this.getRuleContext(0,Dp)}scalarFunctionName(){return this.getRuleContext(0,HD)}get ruleIndex(){return $O.RULE_simpleId}accept(t){return t.visitSimpleId?t.visitSimpleId(this):t.visitChildren(this)}},Tm=class extends p{constructor(t,e){super(t,e)}DOT_ID(){return this.getToken($O.DOT_ID,0)}DOT(){return this.getToken($O.DOT,0)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_dottedId}accept(t){return t.visitDottedId?t.visitDottedId(this):t.visitChildren(this)}},om=class extends p{constructor(t,e){super(t,e)}DECIMAL_LITERAL(){return this.getToken($O.DECIMAL_LITERAL,0)}ZERO_DECIMAL(){return this.getToken($O.ZERO_DECIMAL,0)}ONE_DECIMAL(){return this.getToken($O.ONE_DECIMAL,0)}TWO_DECIMAL(){return this.getToken($O.TWO_DECIMAL,0)}REAL_LITERAL(){return this.getToken($O.REAL_LITERAL,0)}get ruleIndex(){return $O.RULE_decimalLiteral}accept(t){return t.visitDecimalLiteral?t.visitDecimalLiteral(this):t.visitChildren(this)}},Rm=class extends p{constructor(t,e){super(t,e)}FILESIZE_LITERAL(){return this.getToken($O.FILESIZE_LITERAL,0)}decimalLiteral(){return this.getRuleContext(0,om)}get ruleIndex(){return $O.RULE_fileSizeLiteral}accept(t){return t.visitFileSizeLiteral?t.visitFileSizeLiteral(this):t.visitChildren(this)}},Am=class extends p{constructor(t,e){super(t,e)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}START_NATIONAL_STRING_LITERAL(){return this.getToken($O.START_NATIONAL_STRING_LITERAL,0)}STRING_CHARSET_NAME(){return this.getToken($O.STRING_CHARSET_NAME,0)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}get ruleIndex(){return $O.RULE_stringLiteral}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}},Sm=class extends p{constructor(t,e){super(t,e)}TRUE(){return this.getToken($O.TRUE,0)}FALSE(){return this.getToken($O.FALSE,0)}get ruleIndex(){return $O.RULE_booleanLiteral}accept(t){return t.visitBooleanLiteral?t.visitBooleanLiteral(this):t.visitChildren(this)}},lm=class extends p{constructor(t,e){super(t,e)}HEXADECIMAL_LITERAL(){return this.getToken($O.HEXADECIMAL_LITERAL,0)}STRING_CHARSET_NAME(){return this.getToken($O.STRING_CHARSET_NAME,0)}get ruleIndex(){return $O.RULE_hexadecimalLiteral}accept(t){return t.visitHexadecimalLiteral?t.visitHexadecimalLiteral(this):t.visitChildren(this)}},Om=class extends p{constructor(t,e){super(t,e)}NULL_LITERAL(){return this.getToken($O.NULL_LITERAL,0)}NULL_SPEC_LITERAL(){return this.getToken($O.NULL_SPEC_LITERAL,0)}NOT(){return this.getToken($O.NOT,0)}get ruleIndex(){return $O.RULE_nullNotnull}accept(t){return t.visitNullNotnull?t.visitNullNotnull(this):t.visitChildren(this)}},Im=class extends p{constructor(t,e){super(t,e)}stringLiteral(){return this.getRuleContext(0,Am)}decimalLiteral(){return this.getRuleContext(0,om)}MINUS(){return this.getToken($O.MINUS,0)}hexadecimalLiteral(){return this.getRuleContext(0,lm)}booleanLiteral(){return this.getRuleContext(0,Sm)}REAL_LITERAL(){return this.getToken($O.REAL_LITERAL,0)}BIT_STRING(){return this.getToken($O.BIT_STRING,0)}NULL_LITERAL(){return this.getToken($O.NULL_LITERAL,0)}NULL_SPEC_LITERAL(){return this.getToken($O.NULL_SPEC_LITERAL,0)}NOT(){return this.getToken($O.NOT,0)}get ruleIndex(){return $O.RULE_constant}accept(t){return t.visitConstant?t.visitConstant(this):t.visitChildren(this)}},um=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_dataType}copyFrom(t){super.copyFrom(t)}},Nm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}GEOMETRYCOLLECTION(){return this.getToken($O.GEOMETRYCOLLECTION,0)}GEOMCOLLECTION(){return this.getToken($O.GEOMCOLLECTION,0)}LINESTRING(){return this.getToken($O.LINESTRING,0)}MULTILINESTRING(){return this.getToken($O.MULTILINESTRING,0)}MULTIPOINT(){return this.getToken($O.MULTIPOINT,0)}MULTIPOLYGON(){return this.getToken($O.MULTIPOLYGON,0)}POINT(){return this.getToken($O.POINT,0)}POLYGON(){return this.getToken($O.POLYGON,0)}JSON(){return this.getToken($O.JSON,0)}GEOMETRY(){return this.getToken($O.GEOMETRY,0)}SRID(){return this.getToken($O.SRID,0)}decimalLiteral(){return this.getRuleContext(0,om)}accept(t){return t.visitSpatialDataType?t.visitSpatialDataType(this):t.visitChildren(this)}},Lm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LONG(){return this.getToken($O.LONG,0)}VARBINARY(){return this.getToken($O.VARBINARY,0)}accept(t){return t.visitLongVarbinaryDataType?t.visitLongVarbinaryDataType(this):t.visitChildren(this)}},Cm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}collectionOptions(){return this.getRuleContext(0,Dm)}ENUM(){return this.getToken($O.ENUM,0)}SET(){return this.getToken($O.SET,0)}BINARY(){return this.getToken($O.BINARY,0)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}accept(t){return t.visitCollectionDataType?t.visitCollectionDataType(this):t.visitChildren(this)}},_m=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}NATIONAL(){return this.getToken($O.NATIONAL,0)}VARYING(){return this.getToken($O.VARYING,0)}CHAR(){return this.getToken($O.CHAR,0)}CHARACTER(){return this.getToken($O.CHARACTER,0)}lengthOneDimension(){return this.getRuleContext(0,gm)}BINARY(){return this.getToken($O.BINARY,0)}accept(t){return t.visitNationalVaryingStringDataType?t.visitNationalVaryingStringDataType(this):t.visitChildren(this)}},Pm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TINYINT(){return this.getToken($O.TINYINT,0)}SMALLINT(){return this.getToken($O.SMALLINT,0)}MEDIUMINT(){return this.getToken($O.MEDIUMINT,0)}INT(){return this.getToken($O.INT,0)}INTEGER(){return this.getToken($O.INTEGER,0)}BIGINT(){return this.getToken($O.BIGINT,0)}MIDDLEINT(){return this.getToken($O.MIDDLEINT,0)}INT1(){return this.getToken($O.INT1,0)}INT2(){return this.getToken($O.INT2,0)}INT3(){return this.getToken($O.INT3,0)}INT4(){return this.getToken($O.INT4,0)}INT8(){return this.getToken($O.INT8,0)}lengthOneDimension(){return this.getRuleContext(0,gm)}SIGNED(t){return void 0===t?this.getTokens($O.SIGNED):this.getToken($O.SIGNED,t)}UNSIGNED(t){return void 0===t?this.getTokens($O.UNSIGNED):this.getToken($O.UNSIGNED,t)}ZEROFILL(t){return void 0===t?this.getTokens($O.ZEROFILL):this.getToken($O.ZEROFILL,t)}REAL(){return this.getToken($O.REAL,0)}lengthTwoDimension(){return this.getRuleContext(0,xm)}DOUBLE(){return this.getToken($O.DOUBLE,0)}PRECISION(){return this.getToken($O.PRECISION,0)}DECIMAL(){return this.getToken($O.DECIMAL,0)}DEC(){return this.getToken($O.DEC,0)}FIXED(){return this.getToken($O.FIXED,0)}NUMERIC(){return this.getToken($O.NUMERIC,0)}FLOAT(){return this.getToken($O.FLOAT,0)}FLOAT4(){return this.getToken($O.FLOAT4,0)}FLOAT8(){return this.getToken($O.FLOAT8,0)}lengthTwoOptionalDimension(){return this.getRuleContext(0,km)}BIT(){return this.getToken($O.BIT,0)}TIME(){return this.getToken($O.TIME,0)}TIMESTAMP(){return this.getToken($O.TIMESTAMP,0)}DATETIME(){return this.getToken($O.DATETIME,0)}BINARY(){return this.getToken($O.BINARY,0)}VARBINARY(){return this.getToken($O.VARBINARY,0)}BLOB(){return this.getToken($O.BLOB,0)}YEAR(){return this.getToken($O.YEAR,0)}accept(t){return t.visitDimensionDataType?t.visitDimensionDataType(this):t.visitChildren(this)}},Mm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHAR(){return this.getToken($O.CHAR,0)}CHARACTER(){return this.getToken($O.CHARACTER,0)}VARCHAR(){return this.getToken($O.VARCHAR,0)}TINYTEXT(){return this.getToken($O.TINYTEXT,0)}TEXT(){return this.getToken($O.TEXT,0)}MEDIUMTEXT(){return this.getToken($O.MEDIUMTEXT,0)}LONGTEXT(){return this.getToken($O.LONGTEXT,0)}NCHAR(){return this.getToken($O.NCHAR,0)}NVARCHAR(){return this.getToken($O.NVARCHAR,0)}LONG(){return this.getToken($O.LONG,0)}VARYING(){return this.getToken($O.VARYING,0)}lengthOneDimension(){return this.getRuleContext(0,gm)}BINARY(t){return void 0===t?this.getTokens($O.BINARY):this.getToken($O.BINARY,t)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitStringDataType?t.visitStringDataType(this):t.visitChildren(this)}},dm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LONG(){return this.getToken($O.LONG,0)}VARCHAR(){return this.getToken($O.VARCHAR,0)}BINARY(){return this.getToken($O.BINARY,0)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitLongVarcharDataType?t.visitLongVarcharDataType(this):t.visitChildren(this)}},Um=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}NATIONAL(){return this.getToken($O.NATIONAL,0)}VARCHAR(){return this.getToken($O.VARCHAR,0)}CHARACTER(){return this.getToken($O.CHARACTER,0)}CHAR(){return this.getToken($O.CHAR,0)}lengthOneDimension(){return this.getRuleContext(0,gm)}BINARY(){return this.getToken($O.BINARY,0)}NCHAR(){return this.getToken($O.NCHAR,0)}accept(t){return t.visitNationalStringDataType?t.visitNationalStringDataType(this):t.visitChildren(this)}},mm=class extends um{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DATE(){return this.getToken($O.DATE,0)}TINYBLOB(){return this.getToken($O.TINYBLOB,0)}MEDIUMBLOB(){return this.getToken($O.MEDIUMBLOB,0)}LONGBLOB(){return this.getToken($O.LONGBLOB,0)}BOOL(){return this.getToken($O.BOOL,0)}BOOLEAN(){return this.getToken($O.BOOLEAN,0)}SERIAL(){return this.getToken($O.SERIAL,0)}accept(t){return t.visitSimpleDataType?t.visitSimpleDataType(this):t.visitChildren(this)}},Dm=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_collectionOptions}accept(t){return t.visitCollectionOptions?t.visitCollectionOptions(this):t.visitChildren(this)}},pm=class extends p{constructor(t,e){super(t,e)}CHAR(){return this.getToken($O.CHAR,0)}SIGNED(){return this.getToken($O.SIGNED,0)}UNSIGNED(){return this.getToken($O.UNSIGNED,0)}ARRAY(){return this.getToken($O.ARRAY,0)}BINARY(){return this.getToken($O.BINARY,0)}NCHAR(){return this.getToken($O.NCHAR,0)}FLOAT(){return this.getToken($O.FLOAT,0)}DATE(){return this.getToken($O.DATE,0)}DATETIME(){return this.getToken($O.DATETIME,0)}TIME(){return this.getToken($O.TIME,0)}YEAR(){return this.getToken($O.YEAR,0)}JSON(){return this.getToken($O.JSON,0)}INT(){return this.getToken($O.INT,0)}INTEGER(){return this.getToken($O.INTEGER,0)}DOUBLE(){return this.getToken($O.DOUBLE,0)}DECIMAL(){return this.getToken($O.DECIMAL,0)}DEC(){return this.getToken($O.DEC,0)}lengthOneDimension(){return this.getRuleContext(0,gm)}charSet(){return this.getRuleContext(0,kI)}charsetName(){return this.getRuleContext(0,tm)}lengthTwoOptionalDimension(){return this.getRuleContext(0,km)}get ruleIndex(){return $O.RULE_convertedDataType}accept(t){return t.visitConvertedDataType?t.visitConvertedDataType(this):t.visitChildren(this)}},gm=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}decimalLiteral(){return this.getRuleContext(0,om)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}get ruleIndex(){return $O.RULE_lengthOneDimension}accept(t){return t.visitLengthOneDimension?t.visitLengthOneDimension(this):t.visitChildren(this)}},xm=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}COMMA(){return this.getToken($O.COMMA,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}get ruleIndex(){return $O.RULE_lengthTwoDimension}accept(t){return t.visitLengthTwoDimension?t.visitLengthTwoDimension(this):t.visitChildren(this)}},km=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(){return this.getToken($O.COMMA,0)}get ruleIndex(){return $O.RULE_lengthTwoOptionalDimension}accept(t){return t.visitLengthTwoOptionalDimension?t.visitLengthTwoOptionalDimension(this):t.visitChildren(this)}},Hm=class extends p{constructor(t,e){super(t,e)}uid(t){return void 0===t?this.getRuleContexts(hm):this.getRuleContext(t,hm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_uidList}accept(t){return t.visitUidList?t.visitUidList(this):t.visitChildren(this)}},Gm=class extends p{constructor(t,e){super(t,e)}fullColumnName(t){return void 0===t?this.getRuleContexts(wU):this.getRuleContext(t,wU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_fullColumnNameList}accept(t){return t.visitFullColumnNameList?t.visitFullColumnNameList(this):t.visitChildren(this)}},Fm=class extends p{constructor(t,e){super(t,e)}tableName(t){return void 0===t?this.getRuleContexts(HU):this.getRuleContext(t,HU)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_tables}accept(t){return t.visitTables?t.visitTables(this):t.visitChildren(this)}},vm=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}indexColumnName(t){return void 0===t?this.getRuleContexts(QU):this.getRuleContext(t,QU)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_indexColumnNames}accept(t){return t.visitIndexColumnNames?t.visitIndexColumnNames(this):t.visitChildren(this)}},Bm=class extends p{constructor(t,e){super(t,e)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_expressions}accept(t){return t.visitExpressions?t.visitExpressions(this):t.visitChildren(this)}},ym=class extends p{constructor(t,e){super(t,e)}expressionOrDefault(t){return void 0===t?this.getRuleContexts(Vm):this.getRuleContext(t,Vm)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_expressionsWithDefaults}accept(t){return t.visitExpressionsWithDefaults?t.visitExpressionsWithDefaults(this):t.visitChildren(this)}},fm=class extends p{constructor(t,e){super(t,e)}constant(t){return void 0===t?this.getRuleContexts(Im):this.getRuleContext(t,Im)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_constants}accept(t){return t.visitConstants?t.visitConstants(this):t.visitChildren(this)}},Ym=class extends p{constructor(t,e){super(t,e)}STRING_LITERAL(t){return void 0===t?this.getTokens($O.STRING_LITERAL):this.getToken($O.STRING_LITERAL,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_simpleStrings}accept(t){return t.visitSimpleStrings?t.visitSimpleStrings(this):t.visitChildren(this)}},wm=class extends p{constructor(t,e){super(t,e)}LOCAL_ID(t){return void 0===t?this.getTokens($O.LOCAL_ID):this.getToken($O.LOCAL_ID,t)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_userVariables}accept(t){return t.visitUserVariables?t.visitUserVariables(this):t.visitChildren(this)}},bm=class extends p{constructor(t,e){super(t,e)}NULL_LITERAL(){return this.getToken($O.NULL_LITERAL,0)}CAST(){return this.getToken($O.CAST,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}AS(){return this.getToken($O.AS,0)}convertedDataType(){return this.getRuleContext(0,pm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}constant(){return this.getRuleContext(0,Im)}unaryOperator(){return this.getRuleContext(0,Op)}currentTimestamp(t){return void 0===t?this.getRuleContexts(Wm):this.getRuleContext(t,Wm)}ON(){return this.getToken($O.ON,0)}UPDATE(){return this.getToken($O.UPDATE,0)}fullId(){return this.getRuleContext(0,kU)}get ruleIndex(){return $O.RULE_defaultValue}accept(t){return t.visitDefaultValue?t.visitDefaultValue(this):t.visitChildren(this)}},Wm=class extends p{constructor(t,e){super(t,e)}NOW(){return this.getToken($O.NOW,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}CURRENT_TIMESTAMP(){return this.getToken($O.CURRENT_TIMESTAMP,0)}LOCALTIME(){return this.getToken($O.LOCALTIME,0)}LOCALTIMESTAMP(){return this.getToken($O.LOCALTIMESTAMP,0)}decimalLiteral(){return this.getRuleContext(0,om)}get ruleIndex(){return $O.RULE_currentTimestamp}accept(t){return t.visitCurrentTimestamp?t.visitCurrentTimestamp(this):t.visitChildren(this)}},Vm=class extends p{constructor(t,e){super(t,e)}expression(){return this.getRuleContext(0,BD)}DEFAULT(){return this.getToken($O.DEFAULT,0)}get ruleIndex(){return $O.RULE_expressionOrDefault}accept(t){return t.visitExpressionOrDefault?t.visitExpressionOrDefault(this):t.visitChildren(this)}},Xm=class extends p{constructor(t,e){super(t,e)}IF(){return this.getToken($O.IF,0)}EXISTS(){return this.getToken($O.EXISTS,0)}get ruleIndex(){return $O.RULE_ifExists}accept(t){return t.visitIfExists?t.visitIfExists(this):t.visitChildren(this)}},Km=class extends p{constructor(t,e){super(t,e)}IF(){return this.getToken($O.IF,0)}NOT(){return this.getToken($O.NOT,0)}EXISTS(){return this.getToken($O.EXISTS,0)}get ruleIndex(){return $O.RULE_ifNotExists}accept(t){return t.visitIfNotExists?t.visitIfNotExists(this):t.visitChildren(this)}},Qm=class extends p{constructor(t,e){super(t,e)}OR(){return this.getToken($O.OR,0)}REPLACE(){return this.getToken($O.REPLACE,0)}get ruleIndex(){return $O.RULE_orReplace}accept(t){return t.visitOrReplace?t.visitOrReplace(this):t.visitChildren(this)}},Jm=class extends p{constructor(t,e){super(t,e)}WAIT(){return this.getToken($O.WAIT,0)}decimalLiteral(){return this.getRuleContext(0,om)}NOWAIT(){return this.getToken($O.NOWAIT,0)}get ruleIndex(){return $O.RULE_waitNowaitClause}accept(t){return t.visitWaitNowaitClause?t.visitWaitNowaitClause(this):t.visitChildren(this)}},Zm=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_functionCall}copyFrom(t){super.copyFrom(t)}},qm=class extends Zm{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}specificFunction(){return this.getRuleContext(0,sD)}accept(t){return t.visitSpecificFunctionCall?t.visitSpecificFunctionCall(this):t.visitChildren(this)}},jm=class extends Zm{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}passwordFunctionClause(){return this.getRuleContext(0,GD)}accept(t){return t.visitPasswordFunctionCall?t.visitPasswordFunctionCall(this):t.visitChildren(this)}},zm=class extends Zm{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}fullId(){return this.getRuleContext(0,kU)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}functionArgs(){return this.getRuleContext(0,FD)}accept(t){return t.visitUdfFunctionCall?t.visitUdfFunctionCall(this):t.visitChildren(this)}},$m=class extends Zm{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}nonAggregateWindowedFunction(){return this.getRuleContext(0,PD)}accept(t){return t.visitNonAggregateFunctionCall?t.visitNonAggregateFunctionCall(this):t.visitChildren(this)}},tD=class extends Zm{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}aggregateWindowedFunction(){return this.getRuleContext(0,_D)}accept(t){return t.visitAggregateFunctionCall?t.visitAggregateFunctionCall(this):t.visitChildren(this)}},eD=class extends Zm{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}scalarFunctionName(){return this.getRuleContext(0,HD)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}functionArgs(){return this.getRuleContext(0,FD)}accept(t){return t.visitScalarFunctionCall?t.visitScalarFunctionCall(this):t.visitChildren(this)}},sD=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_specificFunction}copyFrom(t){super.copyFrom(t)}},aD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}POSITION(){return this.getToken($O.POSITION,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}IN(){return this.getToken($O.IN,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}stringLiteral(t){return void 0===t?this.getRuleContexts(Am):this.getRuleContext(t,Am)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}accept(t){return t.visitPositionFunctionCall?t.visitPositionFunctionCall(this):t.visitChildren(this)}},iD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TRIM(){return this.getToken($O.TRIM,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}FROM(){return this.getToken($O.FROM,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}BOTH(){return this.getToken($O.BOTH,0)}LEADING(){return this.getToken($O.LEADING,0)}TRAILING(){return this.getToken($O.TRAILING,0)}stringLiteral(t){return void 0===t?this.getRuleContexts(Am):this.getRuleContext(t,Am)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}accept(t){return t.visitTrimFunctionCall?t.visitTrimFunctionCall(this):t.visitChildren(this)}},rD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}JSON_VALUE(){return this.getToken($O.JSON_VALUE,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}COMMA(){return this.getToken($O.COMMA,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}RETURNING(){return this.getToken($O.RETURNING,0)}convertedDataType(){return this.getRuleContext(0,pm)}jsonOnEmpty(){return this.getRuleContext(0,I_)}jsonOnError(){return this.getRuleContext(0,u_)}accept(t){return t.visitJsonValueFunctionCall?t.visitJsonValueFunctionCall(this):t.visitChildren(this)}},cD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CASE(){return this.getToken($O.CASE,0)}END(){return this.getToken($O.END,0)}caseFuncAlternative(t){return void 0===t?this.getRuleContexts(ID):this.getRuleContext(t,ID)}ELSE(){return this.getToken($O.ELSE,0)}functionArg(){return this.getRuleContext(0,vD)}accept(t){return t.visitCaseFunctionCall?t.visitCaseFunctionCall(this):t.visitChildren(this)}},nD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXTRACT(){return this.getToken($O.EXTRACT,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}intervalType(){return this.getRuleContext(0,YI)}FROM(){return this.getToken($O.FROM,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}stringLiteral(){return this.getRuleContext(0,Am)}expression(){return this.getRuleContext(0,BD)}accept(t){return t.visitExtractFunctionCall?t.visitExtractFunctionCall(this):t.visitChildren(this)}},hD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CONVERT(){return this.getToken($O.CONVERT,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}convertedDataType(){return this.getRuleContext(0,pm)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(){return this.getToken($O.COMMA,0)}USING(){return this.getToken($O.USING,0)}charsetName(){return this.getRuleContext(0,tm)}CAST(){return this.getToken($O.CAST,0)}AS(){return this.getToken($O.AS,0)}accept(t){return t.visitDataTypeFunctionCall?t.visitDataTypeFunctionCall(this):t.visitChildren(this)}},ED=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}VALUES(){return this.getToken($O.VALUES,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}fullColumnName(){return this.getRuleContext(0,wU)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitValuesFunctionCall?t.visitValuesFunctionCall(this):t.visitChildren(this)}},TD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CASE(){return this.getToken($O.CASE,0)}expression(){return this.getRuleContext(0,BD)}END(){return this.getToken($O.END,0)}caseFuncAlternative(t){return void 0===t?this.getRuleContexts(ID):this.getRuleContext(t,ID)}ELSE(){return this.getToken($O.ELSE,0)}functionArg(){return this.getRuleContext(0,vD)}accept(t){return t.visitCaseExpressionFunctionCall?t.visitCaseExpressionFunctionCall(this):t.visitChildren(this)}},oD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}currentUserExpression(){return this.getRuleContext(0,HI)}accept(t){return t.visitCurrentUser?t.visitCurrentUser(this):t.visitChildren(this)}},RD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CURRENT_DATE(){return this.getToken($O.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken($O.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken($O.CURRENT_TIMESTAMP,0)}LOCALTIME(){return this.getToken($O.LOCALTIME,0)}UTC_TIMESTAMP(){return this.getToken($O.UTC_TIMESTAMP,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitSimpleFunctionCall?t.visitSimpleFunctionCall(this):t.visitChildren(this)}},AD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CHAR(){return this.getToken($O.CHAR,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}functionArgs(){return this.getRuleContext(0,FD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}USING(){return this.getToken($O.USING,0)}charsetName(){return this.getRuleContext(0,tm)}accept(t){return t.visitCharFunctionCall?t.visitCharFunctionCall(this):t.visitChildren(this)}},SD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}WEIGHT_STRING(){return this.getToken($O.WEIGHT_STRING,0)}LR_BRACKET(t){return void 0===t?this.getTokens($O.LR_BRACKET):this.getToken($O.LR_BRACKET,t)}RR_BRACKET(t){return void 0===t?this.getTokens($O.RR_BRACKET):this.getToken($O.RR_BRACKET,t)}stringLiteral(){return this.getRuleContext(0,Am)}expression(){return this.getRuleContext(0,BD)}AS(){return this.getToken($O.AS,0)}decimalLiteral(){return this.getRuleContext(0,om)}levelsInWeightString(){return this.getRuleContext(0,uD)}CHAR(){return this.getToken($O.CHAR,0)}BINARY(){return this.getToken($O.BINARY,0)}accept(t){return t.visitWeightFunctionCall?t.visitWeightFunctionCall(this):t.visitChildren(this)}},lD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}GET_FORMAT(){return this.getToken($O.GET_FORMAT,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}COMMA(){return this.getToken($O.COMMA,0)}stringLiteral(){return this.getRuleContext(0,Am)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}DATE(){return this.getToken($O.DATE,0)}TIME(){return this.getToken($O.TIME,0)}DATETIME(){return this.getToken($O.DATETIME,0)}accept(t){return t.visitGetFormatFunctionCall?t.visitGetFormatFunctionCall(this):t.visitChildren(this)}},OD=class extends sD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}FROM(){return this.getToken($O.FROM,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}SUBSTR(){return this.getToken($O.SUBSTR,0)}SUBSTRING(){return this.getToken($O.SUBSTRING,0)}stringLiteral(){return this.getRuleContext(0,Am)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}FOR(){return this.getToken($O.FOR,0)}accept(t){return t.visitSubstrFunctionCall?t.visitSubstrFunctionCall(this):t.visitChildren(this)}},ID=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken($O.WHEN,0)}THEN(){return this.getToken($O.THEN,0)}functionArg(t){return void 0===t?this.getRuleContexts(vD):this.getRuleContext(t,vD)}get ruleIndex(){return $O.RULE_caseFuncAlternative}accept(t){return t.visitCaseFuncAlternative?t.visitCaseFuncAlternative(this):t.visitChildren(this)}},uD=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_levelsInWeightString}copyFrom(t){super.copyFrom(t)}},ND=class extends uD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LEVEL(){return this.getToken($O.LEVEL,0)}MINUS(){return this.getToken($O.MINUS,0)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}accept(t){return t.visitLevelWeightRange?t.visitLevelWeightRange(this):t.visitChildren(this)}},LD=class extends uD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LEVEL(){return this.getToken($O.LEVEL,0)}levelInWeightListElement(t){return void 0===t?this.getRuleContexts(CD):this.getRuleContext(t,CD)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitLevelWeightList?t.visitLevelWeightList(this):t.visitChildren(this)}},CD=class extends p{constructor(t,e){super(t,e)}decimalLiteral(){return this.getRuleContext(0,om)}ASC(){return this.getToken($O.ASC,0)}DESC(){return this.getToken($O.DESC,0)}REVERSE(){return this.getToken($O.REVERSE,0)}get ruleIndex(){return $O.RULE_levelInWeightListElement}accept(t){return t.visitLevelInWeightListElement?t.visitLevelInWeightListElement(this):t.visitChildren(this)}},_D=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}functionArg(){return this.getRuleContext(0,vD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}AVG(){return this.getToken($O.AVG,0)}MAX(){return this.getToken($O.MAX,0)}MIN(){return this.getToken($O.MIN,0)}SUM(){return this.getToken($O.SUM,0)}overClause(){return this.getRuleContext(0,MD)}ALL(){return this.getToken($O.ALL,0)}DISTINCT(){return this.getToken($O.DISTINCT,0)}COUNT(){return this.getToken($O.COUNT,0)}functionArgs(){return this.getRuleContext(0,FD)}STAR(){return this.getToken($O.STAR,0)}BIT_AND(){return this.getToken($O.BIT_AND,0)}BIT_OR(){return this.getToken($O.BIT_OR,0)}BIT_XOR(){return this.getToken($O.BIT_XOR,0)}STD(){return this.getToken($O.STD,0)}STDDEV(){return this.getToken($O.STDDEV,0)}STDDEV_POP(){return this.getToken($O.STDDEV_POP,0)}STDDEV_SAMP(){return this.getToken($O.STDDEV_SAMP,0)}VAR_POP(){return this.getToken($O.VAR_POP,0)}VAR_SAMP(){return this.getToken($O.VAR_SAMP,0)}VARIANCE(){return this.getToken($O.VARIANCE,0)}GROUP_CONCAT(){return this.getToken($O.GROUP_CONCAT,0)}ORDER(){return this.getToken($O.ORDER,0)}BY(){return this.getToken($O.BY,0)}orderByExpression(t){return void 0===t?this.getRuleContexts(WC):this.getRuleContext(t,WC)}SEPARATOR(){return this.getToken($O.SEPARATOR,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_aggregateWindowedFunction}accept(t){return t.visitAggregateWindowedFunction?t.visitAggregateWindowedFunction(this):t.visitChildren(this)}},PD=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(){return this.getRuleContext(0,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}overClause(){return this.getRuleContext(0,MD)}LAG(){return this.getToken($O.LAG,0)}LEAD(){return this.getToken($O.LEAD,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}decimalLiteral(t){return void 0===t?this.getRuleContexts(om):this.getRuleContext(t,om)}FIRST_VALUE(){return this.getToken($O.FIRST_VALUE,0)}LAST_VALUE(){return this.getToken($O.LAST_VALUE,0)}CUME_DIST(){return this.getToken($O.CUME_DIST,0)}DENSE_RANK(){return this.getToken($O.DENSE_RANK,0)}PERCENT_RANK(){return this.getToken($O.PERCENT_RANK,0)}RANK(){return this.getToken($O.RANK,0)}ROW_NUMBER(){return this.getToken($O.ROW_NUMBER,0)}NTH_VALUE(){return this.getToken($O.NTH_VALUE,0)}NTILE(){return this.getToken($O.NTILE,0)}get ruleIndex(){return $O.RULE_nonAggregateWindowedFunction}accept(t){return t.visitNonAggregateWindowedFunction?t.visitNonAggregateWindowedFunction(this):t.visitChildren(this)}},MD=class extends p{constructor(t,e){super(t,e)}OVER(){return this.getToken($O.OVER,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}windowSpec(){return this.getRuleContext(0,dD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}windowName(){return this.getRuleContext(0,UD)}get ruleIndex(){return $O.RULE_overClause}accept(t){return t.visitOverClause?t.visitOverClause(this):t.visitChildren(this)}},dD=class extends p{constructor(t,e){super(t,e)}windowName(){return this.getRuleContext(0,UD)}partitionClause(){return this.getRuleContext(0,kD)}orderByClause(){return this.getRuleContext(0,bC)}frameClause(){return this.getRuleContext(0,mD)}get ruleIndex(){return $O.RULE_windowSpec}accept(t){return t.visitWindowSpec?t.visitWindowSpec(this):t.visitChildren(this)}},UD=class extends p{constructor(t,e){super(t,e)}uid(){return this.getRuleContext(0,hm)}get ruleIndex(){return $O.RULE_windowName}accept(t){return t.visitWindowName?t.visitWindowName(this):t.visitChildren(this)}},mD=class extends p{constructor(t,e){super(t,e)}frameUnits(){return this.getRuleContext(0,DD)}frameExtent(){return this.getRuleContext(0,pD)}get ruleIndex(){return $O.RULE_frameClause}accept(t){return t.visitFrameClause?t.visitFrameClause(this):t.visitChildren(this)}},DD=class extends p{constructor(t,e){super(t,e)}ROWS(){return this.getToken($O.ROWS,0)}RANGE(){return this.getToken($O.RANGE,0)}get ruleIndex(){return $O.RULE_frameUnits}accept(t){return t.visitFrameUnits?t.visitFrameUnits(this):t.visitChildren(this)}},pD=class extends p{constructor(t,e){super(t,e)}frameRange(){return this.getRuleContext(0,xD)}frameBetween(){return this.getRuleContext(0,gD)}get ruleIndex(){return $O.RULE_frameExtent}accept(t){return t.visitFrameExtent?t.visitFrameExtent(this):t.visitChildren(this)}},gD=class extends p{constructor(t,e){super(t,e)}BETWEEN(){return this.getToken($O.BETWEEN,0)}frameRange(t){return void 0===t?this.getRuleContexts(xD):this.getRuleContext(t,xD)}AND(){return this.getToken($O.AND,0)}get ruleIndex(){return $O.RULE_frameBetween}accept(t){return t.visitFrameBetween?t.visitFrameBetween(this):t.visitChildren(this)}},xD=class extends p{constructor(t,e){super(t,e)}CURRENT(){return this.getToken($O.CURRENT,0)}ROW(){return this.getToken($O.ROW,0)}UNBOUNDED(){return this.getToken($O.UNBOUNDED,0)}PRECEDING(){return this.getToken($O.PRECEDING,0)}FOLLOWING(){return this.getToken($O.FOLLOWING,0)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_frameRange}accept(t){return t.visitFrameRange?t.visitFrameRange(this):t.visitChildren(this)}},kD=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken($O.PARTITION,0)}BY(){return this.getToken($O.BY,0)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_partitionClause}accept(t){return t.visitPartitionClause?t.visitPartitionClause(this):t.visitChildren(this)}},HD=class extends p{constructor(t,e){super(t,e)}functionNameBase(){return this.getRuleContext(0,pp)}ASCII(){return this.getToken($O.ASCII,0)}CURDATE(){return this.getToken($O.CURDATE,0)}CURRENT_DATE(){return this.getToken($O.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken($O.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken($O.CURRENT_TIMESTAMP,0)}CURTIME(){return this.getToken($O.CURTIME,0)}DATE_ADD(){return this.getToken($O.DATE_ADD,0)}DATE_SUB(){return this.getToken($O.DATE_SUB,0)}IF(){return this.getToken($O.IF,0)}INSERT(){return this.getToken($O.INSERT,0)}LOCALTIME(){return this.getToken($O.LOCALTIME,0)}LOCALTIMESTAMP(){return this.getToken($O.LOCALTIMESTAMP,0)}MID(){return this.getToken($O.MID,0)}NOW(){return this.getToken($O.NOW,0)}REPEAT(){return this.getToken($O.REPEAT,0)}REPLACE(){return this.getToken($O.REPLACE,0)}SUBSTR(){return this.getToken($O.SUBSTR,0)}SUBSTRING(){return this.getToken($O.SUBSTRING,0)}SYSDATE(){return this.getToken($O.SYSDATE,0)}TRIM(){return this.getToken($O.TRIM,0)}UTC_DATE(){return this.getToken($O.UTC_DATE,0)}UTC_TIME(){return this.getToken($O.UTC_TIME,0)}UTC_TIMESTAMP(){return this.getToken($O.UTC_TIMESTAMP,0)}get ruleIndex(){return $O.RULE_scalarFunctionName}accept(t){return t.visitScalarFunctionName?t.visitScalarFunctionName(this):t.visitChildren(this)}},GD=class extends p{constructor(t,e){super(t,e)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}functionArg(){return this.getRuleContext(0,vD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}OLD_PASSWORD(){return this.getToken($O.OLD_PASSWORD,0)}get ruleIndex(){return $O.RULE_passwordFunctionClause}accept(t){return t.visitPasswordFunctionClause?t.visitPasswordFunctionClause(this):t.visitChildren(this)}},FD=class extends p{constructor(t,e){super(t,e)}constant(t){return void 0===t?this.getRuleContexts(Im):this.getRuleContext(t,Im)}fullColumnName(t){return void 0===t?this.getRuleContexts(wU):this.getRuleContext(t,wU)}functionCall(t){return void 0===t?this.getRuleContexts(Zm):this.getRuleContext(t,Zm)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}get ruleIndex(){return $O.RULE_functionArgs}accept(t){return t.visitFunctionArgs?t.visitFunctionArgs(this):t.visitChildren(this)}},vD=class extends p{constructor(t,e){super(t,e)}constant(){return this.getRuleContext(0,Im)}fullColumnName(){return this.getRuleContext(0,wU)}functionCall(){return this.getRuleContext(0,Zm)}expression(){return this.getRuleContext(0,BD)}get ruleIndex(){return $O.RULE_functionArg}accept(t){return t.visitFunctionArg?t.visitFunctionArg(this):t.visitChildren(this)}},BD=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_expression}copyFrom(t){super.copyFrom(t)}},yD=class extends BD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(){return this.getRuleContext(0,bD)}IS(){return this.getToken($O.IS,0)}TRUE(){return this.getToken($O.TRUE,0)}FALSE(){return this.getToken($O.FALSE,0)}UNKNOWN(){return this.getToken($O.UNKNOWN,0)}NOT(){return this.getToken($O.NOT,0)}accept(t){return t.visitIsExpression?t.visitIsExpression(this):t.visitChildren(this)}},fD=class extends BD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}expression(){return this.getRuleContext(0,BD)}NOT(){return this.getToken($O.NOT,0)}EXCLAMATION_SYMBOL(){return this.getToken($O.EXCLAMATION_SYMBOL,0)}accept(t){return t.visitNotExpression?t.visitNotExpression(this):t.visitChildren(this)}},YD=class extends BD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}logicalOperator(){return this.getRuleContext(0,up)}accept(t){return t.visitLogicalExpression?t.visitLogicalExpression(this):t.visitChildren(this)}},wD=class extends BD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(){return this.getRuleContext(0,bD)}accept(t){return t.visitPredicateExpression?t.visitPredicateExpression(this):t.visitChildren(this)}},bD=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_predicate}copyFrom(t){super.copyFrom(t)}},WD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(t){return void 0===t?this.getRuleContexts(bD):this.getRuleContext(t,bD)}SOUNDS(){return this.getToken($O.SOUNDS,0)}LIKE(){return this.getToken($O.LIKE,0)}accept(t){return t.visitSoundsLikePredicate?t.visitSoundsLikePredicate(this):t.visitChildren(this)}},VD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}expressionAtom(){return this.getRuleContext(0,$D)}accept(t){return t.visitExpressionAtomPredicate?t.visitExpressionAtomPredicate(this):t.visitChildren(this)}},XD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(){return this.getRuleContext(0,bD)}comparisonOperator(){return this.getRuleContext(0,Ip)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}selectStatement(){return this.getRuleContext(0,_C)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}ALL(){return this.getToken($O.ALL,0)}ANY(){return this.getToken($O.ANY,0)}SOME(){return this.getToken($O.SOME,0)}accept(t){return t.visitSubqueryComparisonPredicate?t.visitSubqueryComparisonPredicate(this):t.visitChildren(this)}},KD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(t){return void 0===t?this.getRuleContexts(bD):this.getRuleContext(t,bD)}MEMBER(){return this.getToken($O.MEMBER,0)}OF(){return this.getToken($O.OF,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitJsonMemberOfPredicate?t.visitJsonMemberOfPredicate(this):t.visitChildren(this)}},QD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}comparisonOperator(){return this.getRuleContext(0,Ip)}predicate(t){return void 0===t?this.getRuleContexts(bD):this.getRuleContext(t,bD)}accept(t){return t.visitBinaryComparisonPredicate?t.visitBinaryComparisonPredicate(this):t.visitChildren(this)}},JD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(){return this.getRuleContext(0,bD)}IN(){return this.getToken($O.IN,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}selectStatement(){return this.getRuleContext(0,_C)}expressions(){return this.getRuleContext(0,Bm)}NOT(){return this.getToken($O.NOT,0)}accept(t){return t.visitInPredicate?t.visitInPredicate(this):t.visitChildren(this)}},ZD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(t){return void 0===t?this.getRuleContexts(bD):this.getRuleContext(t,bD)}BETWEEN(){return this.getToken($O.BETWEEN,0)}AND(){return this.getToken($O.AND,0)}NOT(){return this.getToken($O.NOT,0)}accept(t){return t.visitBetweenPredicate?t.visitBetweenPredicate(this):t.visitChildren(this)}},qD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(){return this.getRuleContext(0,bD)}IS(){return this.getToken($O.IS,0)}nullNotnull(){return this.getRuleContext(0,Om)}accept(t){return t.visitIsNullPredicate?t.visitIsNullPredicate(this):t.visitChildren(this)}},jD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(t){return void 0===t?this.getRuleContexts(bD):this.getRuleContext(t,bD)}LIKE(){return this.getToken($O.LIKE,0)}NOT(){return this.getToken($O.NOT,0)}ESCAPE(){return this.getToken($O.ESCAPE,0)}STRING_LITERAL(){return this.getToken($O.STRING_LITERAL,0)}accept(t){return t.visitLikePredicate?t.visitLikePredicate(this):t.visitChildren(this)}},zD=class extends bD{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}predicate(t){return void 0===t?this.getRuleContexts(bD):this.getRuleContext(t,bD)}REGEXP(){return this.getToken($O.REGEXP,0)}RLIKE(){return this.getToken($O.RLIKE,0)}NOT(){return this.getToken($O.NOT,0)}accept(t){return t.visitRegexpPredicate?t.visitRegexpPredicate(this):t.visitChildren(this)}},$D=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return $O.RULE_expressionAtom}copyFrom(t){super.copyFrom(t)}},tp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}unaryOperator(){return this.getRuleContext(0,Op)}expressionAtom(){return this.getRuleContext(0,$D)}accept(t){return t.visitUnaryExpressionAtom?t.visitUnaryExpressionAtom(this):t.visitChildren(this)}},ep=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}expressionAtom(){return this.getRuleContext(0,$D)}COLLATE(){return this.getToken($O.COLLATE,0)}collationName(){return this.getRuleContext(0,em)}accept(t){return t.visitCollateExpressionAtom?t.visitCollateExpressionAtom(this):t.visitChildren(this)}},sp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LOCAL_ID(){return this.getToken($O.LOCAL_ID,0)}VAR_ASSIGN(){return this.getToken($O.VAR_ASSIGN,0)}expressionAtom(){return this.getRuleContext(0,$D)}accept(t){return t.visitVariableAssignExpressionAtom?t.visitVariableAssignExpressionAtom(this):t.visitChildren(this)}},ap=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}mysqlVariable(){return this.getRuleContext(0,$U)}accept(t){return t.visitMysqlVariableExpressionAtom?t.visitMysqlVariableExpressionAtom(this):t.visitChildren(this)}},ip=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitNestedExpressionAtom?t.visitNestedExpressionAtom(this):t.visitChildren(this)}},rp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ROW(){return this.getToken($O.ROW,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}expression(t){return void 0===t?this.getRuleContexts(BD):this.getRuleContext(t,BD)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}COMMA(t){return void 0===t?this.getTokens($O.COMMA):this.getToken($O.COMMA,t)}accept(t){return t.visitNestedRowExpressionAtom?t.visitNestedRowExpressionAtom(this):t.visitChildren(this)}},cp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}multOperator(){return this.getRuleContext(0,Lp)}expressionAtom(t){return void 0===t?this.getRuleContexts($D):this.getRuleContext(t,$D)}addOperator(){return this.getRuleContext(0,Cp)}accept(t){return t.visitMathExpressionAtom?t.visitMathExpressionAtom(this):t.visitChildren(this)}},np=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXISTS(){return this.getToken($O.EXISTS,0)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}selectStatement(){return this.getRuleContext(0,_C)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitExistsExpressionAtom?t.visitExistsExpressionAtom(this):t.visitChildren(this)}},hp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INTERVAL(){return this.getToken($O.INTERVAL,0)}expression(){return this.getRuleContext(0,BD)}intervalType(){return this.getRuleContext(0,YI)}accept(t){return t.visitIntervalExpressionAtom?t.visitIntervalExpressionAtom(this):t.visitChildren(this)}},Ep=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}jsonOperator(){return this.getRuleContext(0,_p)}expressionAtom(t){return void 0===t?this.getRuleContexts($D):this.getRuleContext(t,$D)}accept(t){return t.visitJsonExpressionAtom?t.visitJsonExpressionAtom(this):t.visitChildren(this)}},Tp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LR_BRACKET(){return this.getToken($O.LR_BRACKET,0)}selectStatement(){return this.getRuleContext(0,_C)}RR_BRACKET(){return this.getToken($O.RR_BRACKET,0)}accept(t){return t.visitSubqueryExpressionAtom?t.visitSubqueryExpressionAtom(this):t.visitChildren(this)}},op=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}constant(){return this.getRuleContext(0,Im)}accept(t){return t.visitConstantExpressionAtom?t.visitConstantExpressionAtom(this):t.visitChildren(this)}},Rp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}functionCall(){return this.getRuleContext(0,Zm)}accept(t){return t.visitFunctionCallExpressionAtom?t.visitFunctionCallExpressionAtom(this):t.visitChildren(this)}},Ap=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}BINARY(){return this.getToken($O.BINARY,0)}expressionAtom(){return this.getRuleContext(0,$D)}accept(t){return t.visitBinaryExpressionAtom?t.visitBinaryExpressionAtom(this):t.visitChildren(this)}},Sp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}fullColumnName(){return this.getRuleContext(0,wU)}accept(t){return t.visitFullColumnNameExpressionAtom?t.visitFullColumnNameExpressionAtom(this):t.visitChildren(this)}},lp=class extends $D{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}bitOperator(){return this.getRuleContext(0,Np)}expressionAtom(t){return void 0===t?this.getRuleContexts($D):this.getRuleContext(t,$D)}accept(t){return t.visitBitExpressionAtom?t.visitBitExpressionAtom(this):t.visitChildren(this)}},Op=class extends p{constructor(t,e){super(t,e)}EXCLAMATION_SYMBOL(){return this.getToken($O.EXCLAMATION_SYMBOL,0)}BIT_NOT_OP(){return this.getToken($O.BIT_NOT_OP,0)}PLUS(){return this.getToken($O.PLUS,0)}MINUS(){return this.getToken($O.MINUS,0)}NOT(){return this.getToken($O.NOT,0)}get ruleIndex(){return $O.RULE_unaryOperator}accept(t){return t.visitUnaryOperator?t.visitUnaryOperator(this):t.visitChildren(this)}},Ip=class extends p{constructor(t,e){super(t,e)}EQUAL_SYMBOL(){return this.getToken($O.EQUAL_SYMBOL,0)}GREATER_SYMBOL(){return this.getToken($O.GREATER_SYMBOL,0)}LESS_SYMBOL(){return this.getToken($O.LESS_SYMBOL,0)}EXCLAMATION_SYMBOL(){return this.getToken($O.EXCLAMATION_SYMBOL,0)}get ruleIndex(){return $O.RULE_comparisonOperator}accept(t){return t.visitComparisonOperator?t.visitComparisonOperator(this):t.visitChildren(this)}},up=class extends p{constructor(t,e){super(t,e)}AND(){return this.getToken($O.AND,0)}BIT_AND_OP(t){return void 0===t?this.getTokens($O.BIT_AND_OP):this.getToken($O.BIT_AND_OP,t)}XOR(){return this.getToken($O.XOR,0)}OR(){return this.getToken($O.OR,0)}BIT_OR_OP(t){return void 0===t?this.getTokens($O.BIT_OR_OP):this.getToken($O.BIT_OR_OP,t)}get ruleIndex(){return $O.RULE_logicalOperator}accept(t){return t.visitLogicalOperator?t.visitLogicalOperator(this):t.visitChildren(this)}},Np=class extends p{constructor(t,e){super(t,e)}LESS_SYMBOL(t){return void 0===t?this.getTokens($O.LESS_SYMBOL):this.getToken($O.LESS_SYMBOL,t)}GREATER_SYMBOL(t){return void 0===t?this.getTokens($O.GREATER_SYMBOL):this.getToken($O.GREATER_SYMBOL,t)}BIT_AND_OP(){return this.getToken($O.BIT_AND_OP,0)}BIT_XOR_OP(){return this.getToken($O.BIT_XOR_OP,0)}BIT_OR_OP(){return this.getToken($O.BIT_OR_OP,0)}get ruleIndex(){return $O.RULE_bitOperator}accept(t){return t.visitBitOperator?t.visitBitOperator(this):t.visitChildren(this)}},Lp=class extends p{constructor(t,e){super(t,e)}STAR(){return this.getToken($O.STAR,0)}DIVIDE(){return this.getToken($O.DIVIDE,0)}MODULE(){return this.getToken($O.MODULE,0)}DIV(){return this.getToken($O.DIV,0)}MOD(){return this.getToken($O.MOD,0)}get ruleIndex(){return $O.RULE_multOperator}accept(t){return t.visitMultOperator?t.visitMultOperator(this):t.visitChildren(this)}},Cp=class extends p{constructor(t,e){super(t,e)}PLUS(){return this.getToken($O.PLUS,0)}MINUS(){return this.getToken($O.MINUS,0)}get ruleIndex(){return $O.RULE_addOperator}accept(t){return t.visitAddOperator?t.visitAddOperator(this):t.visitChildren(this)}},_p=class extends p{constructor(t,e){super(t,e)}MINUS(){return this.getToken($O.MINUS,0)}GREATER_SYMBOL(t){return void 0===t?this.getTokens($O.GREATER_SYMBOL):this.getToken($O.GREATER_SYMBOL,t)}get ruleIndex(){return $O.RULE_jsonOperator}accept(t){return t.visitJsonOperator?t.visitJsonOperator(this):t.visitChildren(this)}},Pp=class extends p{constructor(t,e){super(t,e)}ARMSCII8(){return this.getToken($O.ARMSCII8,0)}ASCII(){return this.getToken($O.ASCII,0)}BIG5(){return this.getToken($O.BIG5,0)}BINARY(){return this.getToken($O.BINARY,0)}CP1250(){return this.getToken($O.CP1250,0)}CP1251(){return this.getToken($O.CP1251,0)}CP1256(){return this.getToken($O.CP1256,0)}CP1257(){return this.getToken($O.CP1257,0)}CP850(){return this.getToken($O.CP850,0)}CP852(){return this.getToken($O.CP852,0)}CP866(){return this.getToken($O.CP866,0)}CP932(){return this.getToken($O.CP932,0)}DEC8(){return this.getToken($O.DEC8,0)}EUCJPMS(){return this.getToken($O.EUCJPMS,0)}EUCKR(){return this.getToken($O.EUCKR,0)}GB18030(){return this.getToken($O.GB18030,0)}GB2312(){return this.getToken($O.GB2312,0)}GBK(){return this.getToken($O.GBK,0)}GEOSTD8(){return this.getToken($O.GEOSTD8,0)}GREEK(){return this.getToken($O.GREEK,0)}HEBREW(){return this.getToken($O.HEBREW,0)}HP8(){return this.getToken($O.HP8,0)}KEYBCS2(){return this.getToken($O.KEYBCS2,0)}KOI8R(){return this.getToken($O.KOI8R,0)}KOI8U(){return this.getToken($O.KOI8U,0)}LATIN1(){return this.getToken($O.LATIN1,0)}LATIN2(){return this.getToken($O.LATIN2,0)}LATIN5(){return this.getToken($O.LATIN5,0)}LATIN7(){return this.getToken($O.LATIN7,0)}MACCE(){return this.getToken($O.MACCE,0)}MACROMAN(){return this.getToken($O.MACROMAN,0)}SJIS(){return this.getToken($O.SJIS,0)}SWE7(){return this.getToken($O.SWE7,0)}TIS620(){return this.getToken($O.TIS620,0)}UCS2(){return this.getToken($O.UCS2,0)}UJIS(){return this.getToken($O.UJIS,0)}UTF16(){return this.getToken($O.UTF16,0)}UTF16LE(){return this.getToken($O.UTF16LE,0)}UTF32(){return this.getToken($O.UTF32,0)}UTF8(){return this.getToken($O.UTF8,0)}UTF8MB3(){return this.getToken($O.UTF8MB3,0)}UTF8MB4(){return this.getToken($O.UTF8MB4,0)}get ruleIndex(){return $O.RULE_charsetNameBase}accept(t){return t.visitCharsetNameBase?t.visitCharsetNameBase(this):t.visitChildren(this)}},Mp=class extends p{constructor(t,e){super(t,e)}REPEATABLE(){return this.getToken($O.REPEATABLE,0)}COMMITTED(){return this.getToken($O.COMMITTED,0)}UNCOMMITTED(){return this.getToken($O.UNCOMMITTED,0)}SERIALIZABLE(){return this.getToken($O.SERIALIZABLE,0)}get ruleIndex(){return $O.RULE_transactionLevelBase}accept(t){return t.visitTransactionLevelBase?t.visitTransactionLevelBase(this):t.visitChildren(this)}},dp=class extends p{constructor(t,e){super(t,e)}TABLES(){return this.getToken($O.TABLES,0)}ROUTINE(){return this.getToken($O.ROUTINE,0)}EXECUTE(){return this.getToken($O.EXECUTE,0)}FILE(){return this.getToken($O.FILE,0)}PROCESS(){return this.getToken($O.PROCESS,0)}RELOAD(){return this.getToken($O.RELOAD,0)}SHUTDOWN(){return this.getToken($O.SHUTDOWN,0)}SUPER(){return this.getToken($O.SUPER,0)}PRIVILEGES(){return this.getToken($O.PRIVILEGES,0)}get ruleIndex(){return $O.RULE_privilegesBase}accept(t){return t.visitPrivilegesBase?t.visitPrivilegesBase(this):t.visitChildren(this)}},Up=class extends p{constructor(t,e){super(t,e)}QUARTER(){return this.getToken($O.QUARTER,0)}MONTH(){return this.getToken($O.MONTH,0)}DAY(){return this.getToken($O.DAY,0)}HOUR(){return this.getToken($O.HOUR,0)}MINUTE(){return this.getToken($O.MINUTE,0)}WEEK(){return this.getToken($O.WEEK,0)}SECOND(){return this.getToken($O.SECOND,0)}MICROSECOND(){return this.getToken($O.MICROSECOND,0)}get ruleIndex(){return $O.RULE_intervalTypeBase}accept(t){return t.visitIntervalTypeBase?t.visitIntervalTypeBase(this):t.visitChildren(this)}},mp=class extends p{constructor(t,e){super(t,e)}DATE(){return this.getToken($O.DATE,0)}TIME(){return this.getToken($O.TIME,0)}TIMESTAMP(){return this.getToken($O.TIMESTAMP,0)}DATETIME(){return this.getToken($O.DATETIME,0)}YEAR(){return this.getToken($O.YEAR,0)}ENUM(){return this.getToken($O.ENUM,0)}TEXT(){return this.getToken($O.TEXT,0)}get ruleIndex(){return $O.RULE_dataTypeBase}accept(t){return t.visitDataTypeBase?t.visitDataTypeBase(this):t.visitChildren(this)}},Dp=class extends p{constructor(t,e){super(t,e)}ACCOUNT(){return this.getToken($O.ACCOUNT,0)}ACTION(){return this.getToken($O.ACTION,0)}ADMIN(){return this.getToken($O.ADMIN,0)}AFTER(){return this.getToken($O.AFTER,0)}AGGREGATE(){return this.getToken($O.AGGREGATE,0)}ALGORITHM(){return this.getToken($O.ALGORITHM,0)}ANY(){return this.getToken($O.ANY,0)}ARRAY(){return this.getToken($O.ARRAY,0)}AT(){return this.getToken($O.AT,0)}AUDIT_ADMIN(){return this.getToken($O.AUDIT_ADMIN,0)}AUDIT_ABORT_EXEMPT(){return this.getToken($O.AUDIT_ABORT_EXEMPT,0)}AUTHORS(){return this.getToken($O.AUTHORS,0)}AUTOCOMMIT(){return this.getToken($O.AUTOCOMMIT,0)}AUTOEXTEND_SIZE(){return this.getToken($O.AUTOEXTEND_SIZE,0)}AUTO_INCREMENT(){return this.getToken($O.AUTO_INCREMENT,0)}AUTHENTICATION_POLICY_ADMIN(){return this.getToken($O.AUTHENTICATION_POLICY_ADMIN,0)}AVG(){return this.getToken($O.AVG,0)}AVG_ROW_LENGTH(){return this.getToken($O.AVG_ROW_LENGTH,0)}ATTRIBUTE(){return this.getToken($O.ATTRIBUTE,0)}BACKUP_ADMIN(){return this.getToken($O.BACKUP_ADMIN,0)}BEGIN(){return this.getToken($O.BEGIN,0)}BINLOG(){return this.getToken($O.BINLOG,0)}BINLOG_ADMIN(){return this.getToken($O.BINLOG_ADMIN,0)}BINLOG_ENCRYPTION_ADMIN(){return this.getToken($O.BINLOG_ENCRYPTION_ADMIN,0)}BIT(){return this.getToken($O.BIT,0)}BIT_AND(){return this.getToken($O.BIT_AND,0)}BIT_OR(){return this.getToken($O.BIT_OR,0)}BIT_XOR(){return this.getToken($O.BIT_XOR,0)}BLOCK(){return this.getToken($O.BLOCK,0)}BOOL(){return this.getToken($O.BOOL,0)}BOOLEAN(){return this.getToken($O.BOOLEAN,0)}BTREE(){return this.getToken($O.BTREE,0)}BUCKETS(){return this.getToken($O.BUCKETS,0)}CACHE(){return this.getToken($O.CACHE,0)}CASCADED(){return this.getToken($O.CASCADED,0)}CHAIN(){return this.getToken($O.CHAIN,0)}CHANGED(){return this.getToken($O.CHANGED,0)}CHANNEL(){return this.getToken($O.CHANNEL,0)}CHECKSUM(){return this.getToken($O.CHECKSUM,0)}PAGE_CHECKSUM(){return this.getToken($O.PAGE_CHECKSUM,0)}CATALOG_NAME(){return this.getToken($O.CATALOG_NAME,0)}CIPHER(){return this.getToken($O.CIPHER,0)}CLASS_ORIGIN(){return this.getToken($O.CLASS_ORIGIN,0)}CLIENT(){return this.getToken($O.CLIENT,0)}CLONE_ADMIN(){return this.getToken($O.CLONE_ADMIN,0)}CLOSE(){return this.getToken($O.CLOSE,0)}CLUSTERING(){return this.getToken($O.CLUSTERING,0)}COALESCE(){return this.getToken($O.COALESCE,0)}CODE(){return this.getToken($O.CODE,0)}COLUMNS(){return this.getToken($O.COLUMNS,0)}COLUMN_FORMAT(){return this.getToken($O.COLUMN_FORMAT,0)}COLUMN_NAME(){return this.getToken($O.COLUMN_NAME,0)}COMMENT(){return this.getToken($O.COMMENT,0)}COMMIT(){return this.getToken($O.COMMIT,0)}COMPACT(){return this.getToken($O.COMPACT,0)}COMPLETION(){return this.getToken($O.COMPLETION,0)}COMPRESSED(){return this.getToken($O.COMPRESSED,0)}COMPRESSION(){return this.getToken($O.COMPRESSION,0)}CONCURRENT(){return this.getToken($O.CONCURRENT,0)}CONDITION(){return this.getToken($O.CONDITION,0)}CONNECT(){return this.getToken($O.CONNECT,0)}CONNECTION(){return this.getToken($O.CONNECTION,0)}CONNECTION_ADMIN(){return this.getToken($O.CONNECTION_ADMIN,0)}CONSISTENT(){return this.getToken($O.CONSISTENT,0)}CONSTRAINT_CATALOG(){return this.getToken($O.CONSTRAINT_CATALOG,0)}CONSTRAINT_NAME(){return this.getToken($O.CONSTRAINT_NAME,0)}CONSTRAINT_SCHEMA(){return this.getToken($O.CONSTRAINT_SCHEMA,0)}CONTAINS(){return this.getToken($O.CONTAINS,0)}CONTEXT(){return this.getToken($O.CONTEXT,0)}CONTRIBUTORS(){return this.getToken($O.CONTRIBUTORS,0)}COPY(){return this.getToken($O.COPY,0)}COUNT(){return this.getToken($O.COUNT,0)}CPU(){return this.getToken($O.CPU,0)}CURRENT(){return this.getToken($O.CURRENT,0)}CURRENT_USER(){return this.getToken($O.CURRENT_USER,0)}CURSOR_NAME(){return this.getToken($O.CURSOR_NAME,0)}DATA(){return this.getToken($O.DATA,0)}DATAFILE(){return this.getToken($O.DATAFILE,0)}DEALLOCATE(){return this.getToken($O.DEALLOCATE,0)}DEFAULT(){return this.getToken($O.DEFAULT,0)}DEFAULT_AUTH(){return this.getToken($O.DEFAULT_AUTH,0)}DEFINER(){return this.getToken($O.DEFINER,0)}DELAY_KEY_WRITE(){return this.getToken($O.DELAY_KEY_WRITE,0)}DES_KEY_FILE(){return this.getToken($O.DES_KEY_FILE,0)}DIAGNOSTICS(){return this.getToken($O.DIAGNOSTICS,0)}DIRECTORY(){return this.getToken($O.DIRECTORY,0)}DISABLE(){return this.getToken($O.DISABLE,0)}DISCARD(){return this.getToken($O.DISCARD,0)}DISK(){return this.getToken($O.DISK,0)}DO(){return this.getToken($O.DO,0)}DUMPFILE(){return this.getToken($O.DUMPFILE,0)}DUPLICATE(){return this.getToken($O.DUPLICATE,0)}DYNAMIC(){return this.getToken($O.DYNAMIC,0)}EMPTY(){return this.getToken($O.EMPTY,0)}ENABLE(){return this.getToken($O.ENABLE,0)}ENCRYPTION(){return this.getToken($O.ENCRYPTION,0)}ENCRYPTION_KEY_ADMIN(){return this.getToken($O.ENCRYPTION_KEY_ADMIN,0)}END(){return this.getToken($O.END,0)}ENDS(){return this.getToken($O.ENDS,0)}ENGINE(){return this.getToken($O.ENGINE,0)}ENGINE_ATTRIBUTE(){return this.getToken($O.ENGINE_ATTRIBUTE,0)}ENGINES(){return this.getToken($O.ENGINES,0)}ENFORCED(){return this.getToken($O.ENFORCED,0)}ERROR(){return this.getToken($O.ERROR,0)}ERRORS(){return this.getToken($O.ERRORS,0)}ESCAPE(){return this.getToken($O.ESCAPE,0)}EUR(){return this.getToken($O.EUR,0)}EVEN(){return this.getToken($O.EVEN,0)}EVENT(){return this.getToken($O.EVENT,0)}EVENTS(){return this.getToken($O.EVENTS,0)}EVERY(){return this.getToken($O.EVERY,0)}EXCEPT(){return this.getToken($O.EXCEPT,0)}EXCHANGE(){return this.getToken($O.EXCHANGE,0)}EXCLUSIVE(){return this.getToken($O.EXCLUSIVE,0)}EXPIRE(){return this.getToken($O.EXPIRE,0)}EXPORT(){return this.getToken($O.EXPORT,0)}EXTENDED(){return this.getToken($O.EXTENDED,0)}EXTENT_SIZE(){return this.getToken($O.EXTENT_SIZE,0)}FAILED_LOGIN_ATTEMPTS(){return this.getToken($O.FAILED_LOGIN_ATTEMPTS,0)}FAST(){return this.getToken($O.FAST,0)}FAULTS(){return this.getToken($O.FAULTS,0)}FIELDS(){return this.getToken($O.FIELDS,0)}FILE_BLOCK_SIZE(){return this.getToken($O.FILE_BLOCK_SIZE,0)}FILTER(){return this.getToken($O.FILTER,0)}FIREWALL_ADMIN(){return this.getToken($O.FIREWALL_ADMIN,0)}FIREWALL_EXEMPT(){return this.getToken($O.FIREWALL_EXEMPT,0)}FIREWALL_USER(){return this.getToken($O.FIREWALL_USER,0)}FIRST(){return this.getToken($O.FIRST,0)}FIXED(){return this.getToken($O.FIXED,0)}FLUSH(){return this.getToken($O.FLUSH,0)}FOLLOWS(){return this.getToken($O.FOLLOWS,0)}FOUND(){return this.getToken($O.FOUND,0)}FULL(){return this.getToken($O.FULL,0)}FUNCTION(){return this.getToken($O.FUNCTION,0)}GENERAL(){return this.getToken($O.GENERAL,0)}GLOBAL(){return this.getToken($O.GLOBAL,0)}GRANTS(){return this.getToken($O.GRANTS,0)}GROUP(){return this.getToken($O.GROUP,0)}GROUP_CONCAT(){return this.getToken($O.GROUP_CONCAT,0)}GROUP_REPLICATION(){return this.getToken($O.GROUP_REPLICATION,0)}GROUP_REPLICATION_ADMIN(){return this.getToken($O.GROUP_REPLICATION_ADMIN,0)}HANDLER(){return this.getToken($O.HANDLER,0)}HASH(){return this.getToken($O.HASH,0)}HELP(){return this.getToken($O.HELP,0)}HISTORY(){return this.getToken($O.HISTORY,0)}HOST(){return this.getToken($O.HOST,0)}HOSTS(){return this.getToken($O.HOSTS,0)}IDENTIFIED(){return this.getToken($O.IDENTIFIED,0)}IGNORED(){return this.getToken($O.IGNORED,0)}IGNORE_SERVER_IDS(){return this.getToken($O.IGNORE_SERVER_IDS,0)}IMPORT(){return this.getToken($O.IMPORT,0)}INDEXES(){return this.getToken($O.INDEXES,0)}INITIAL_SIZE(){return this.getToken($O.INITIAL_SIZE,0)}INNODB_REDO_LOG_ARCHIVE(){return this.getToken($O.INNODB_REDO_LOG_ARCHIVE,0)}INPLACE(){return this.getToken($O.INPLACE,0)}INSERT_METHOD(){return this.getToken($O.INSERT_METHOD,0)}INSTALL(){return this.getToken($O.INSTALL,0)}INSTANCE(){return this.getToken($O.INSTANCE,0)}INSTANT(){return this.getToken($O.INSTANT,0)}INTERNAL(){return this.getToken($O.INTERNAL,0)}INVOKE(){return this.getToken($O.INVOKE,0)}INVOKER(){return this.getToken($O.INVOKER,0)}IO(){return this.getToken($O.IO,0)}IO_THREAD(){return this.getToken($O.IO_THREAD,0)}IPC(){return this.getToken($O.IPC,0)}ISO(){return this.getToken($O.ISO,0)}ISOLATION(){return this.getToken($O.ISOLATION,0)}ISSUER(){return this.getToken($O.ISSUER,0)}JIS(){return this.getToken($O.JIS,0)}JSON(){return this.getToken($O.JSON,0)}KEY_BLOCK_SIZE(){return this.getToken($O.KEY_BLOCK_SIZE,0)}LAMBDA(){return this.getToken($O.LAMBDA,0)}LANGUAGE(){return this.getToken($O.LANGUAGE,0)}LAST(){return this.getToken($O.LAST,0)}LATERAL(){return this.getToken($O.LATERAL,0)}LEAVES(){return this.getToken($O.LEAVES,0)}LESS(){return this.getToken($O.LESS,0)}LEVEL(){return this.getToken($O.LEVEL,0)}LIST(){return this.getToken($O.LIST,0)}LOCAL(){return this.getToken($O.LOCAL,0)}LOGFILE(){return this.getToken($O.LOGFILE,0)}LOGS(){return this.getToken($O.LOGS,0)}MASTER(){return this.getToken($O.MASTER,0)}MASTER_AUTO_POSITION(){return this.getToken($O.MASTER_AUTO_POSITION,0)}MASTER_CONNECT_RETRY(){return this.getToken($O.MASTER_CONNECT_RETRY,0)}MASTER_DELAY(){return this.getToken($O.MASTER_DELAY,0)}MASTER_HEARTBEAT_PERIOD(){return this.getToken($O.MASTER_HEARTBEAT_PERIOD,0)}MASTER_HOST(){return this.getToken($O.MASTER_HOST,0)}MASTER_LOG_FILE(){return this.getToken($O.MASTER_LOG_FILE,0)}MASTER_LOG_POS(){return this.getToken($O.MASTER_LOG_POS,0)}MASTER_PASSWORD(){return this.getToken($O.MASTER_PASSWORD,0)}MASTER_PORT(){return this.getToken($O.MASTER_PORT,0)}MASTER_RETRY_COUNT(){return this.getToken($O.MASTER_RETRY_COUNT,0)}MASTER_SSL(){return this.getToken($O.MASTER_SSL,0)}MASTER_SSL_CA(){return this.getToken($O.MASTER_SSL_CA,0)}MASTER_SSL_CAPATH(){return this.getToken($O.MASTER_SSL_CAPATH,0)}MASTER_SSL_CERT(){return this.getToken($O.MASTER_SSL_CERT,0)}MASTER_SSL_CIPHER(){return this.getToken($O.MASTER_SSL_CIPHER,0)}MASTER_SSL_CRL(){return this.getToken($O.MASTER_SSL_CRL,0)}MASTER_SSL_CRLPATH(){return this.getToken($O.MASTER_SSL_CRLPATH,0)}MASTER_SSL_KEY(){return this.getToken($O.MASTER_SSL_KEY,0)}MASTER_TLS_VERSION(){return this.getToken($O.MASTER_TLS_VERSION,0)}MASTER_USER(){return this.getToken($O.MASTER_USER,0)}MAX_CONNECTIONS_PER_HOUR(){return this.getToken($O.MAX_CONNECTIONS_PER_HOUR,0)}MAX_QUERIES_PER_HOUR(){return this.getToken($O.MAX_QUERIES_PER_HOUR,0)}MAX(){return this.getToken($O.MAX,0)}MAX_ROWS(){return this.getToken($O.MAX_ROWS,0)}MAX_SIZE(){return this.getToken($O.MAX_SIZE,0)}MAX_UPDATES_PER_HOUR(){return this.getToken($O.MAX_UPDATES_PER_HOUR,0)}MAX_USER_CONNECTIONS(){return this.getToken($O.MAX_USER_CONNECTIONS,0)}MEDIUM(){return this.getToken($O.MEDIUM,0)}MEMBER(){return this.getToken($O.MEMBER,0)}MEMORY(){return this.getToken($O.MEMORY,0)}MERGE(){return this.getToken($O.MERGE,0)}MESSAGE_TEXT(){return this.getToken($O.MESSAGE_TEXT,0)}MID(){return this.getToken($O.MID,0)}MIGRATE(){return this.getToken($O.MIGRATE,0)}MIN(){return this.getToken($O.MIN,0)}MIN_ROWS(){return this.getToken($O.MIN_ROWS,0)}MODE(){return this.getToken($O.MODE,0)}MODIFY(){return this.getToken($O.MODIFY,0)}MUTEX(){return this.getToken($O.MUTEX,0)}MYSQL(){return this.getToken($O.MYSQL,0)}MYSQL_ERRNO(){return this.getToken($O.MYSQL_ERRNO,0)}NAME(){return this.getToken($O.NAME,0)}NAMES(){return this.getToken($O.NAMES,0)}NCHAR(){return this.getToken($O.NCHAR,0)}NDB_STORED_USER(){return this.getToken($O.NDB_STORED_USER,0)}NESTED(){return this.getToken($O.NESTED,0)}NEVER(){return this.getToken($O.NEVER,0)}NEXT(){return this.getToken($O.NEXT,0)}NO(){return this.getToken($O.NO,0)}NOCOPY(){return this.getToken($O.NOCOPY,0)}NODEGROUP(){return this.getToken($O.NODEGROUP,0)}NONE(){return this.getToken($O.NONE,0)}NOWAIT(){return this.getToken($O.NOWAIT,0)}NUMBER(){return this.getToken($O.NUMBER,0)}ODBC(){return this.getToken($O.ODBC,0)}OFFLINE(){return this.getToken($O.OFFLINE,0)}OFFSET(){return this.getToken($O.OFFSET,0)}OF(){return this.getToken($O.OF,0)}OJ(){return this.getToken($O.OJ,0)}OLD_PASSWORD(){return this.getToken($O.OLD_PASSWORD,0)}ONE(){return this.getToken($O.ONE,0)}ONLINE(){return this.getToken($O.ONLINE,0)}ONLY(){return this.getToken($O.ONLY,0)}OPEN(){return this.getToken($O.OPEN,0)}OPTIMIZER_COSTS(){return this.getToken($O.OPTIMIZER_COSTS,0)}OPTIONAL(){return this.getToken($O.OPTIONAL,0)}OPTIONS(){return this.getToken($O.OPTIONS,0)}ORDER(){return this.getToken($O.ORDER,0)}ORDINALITY(){return this.getToken($O.ORDINALITY,0)}OWNER(){return this.getToken($O.OWNER,0)}PACK_KEYS(){return this.getToken($O.PACK_KEYS,0)}PAGE(){return this.getToken($O.PAGE,0)}PARSER(){return this.getToken($O.PARSER,0)}PARTIAL(){return this.getToken($O.PARTIAL,0)}PARTITIONING(){return this.getToken($O.PARTITIONING,0)}PARTITIONS(){return this.getToken($O.PARTITIONS,0)}PASSWORD(){return this.getToken($O.PASSWORD,0)}PASSWORDLESS_USER_ADMIN(){return this.getToken($O.PASSWORDLESS_USER_ADMIN,0)}PASSWORD_LOCK_TIME(){return this.getToken($O.PASSWORD_LOCK_TIME,0)}PATH(){return this.getToken($O.PATH,0)}PERSIST_RO_VARIABLES_ADMIN(){return this.getToken($O.PERSIST_RO_VARIABLES_ADMIN,0)}PHASE(){return this.getToken($O.PHASE,0)}PLUGINS(){return this.getToken($O.PLUGINS,0)}PLUGIN_DIR(){return this.getToken($O.PLUGIN_DIR,0)}PLUGIN(){return this.getToken($O.PLUGIN,0)}PORT(){return this.getToken($O.PORT,0)}PRECEDES(){return this.getToken($O.PRECEDES,0)}PREPARE(){return this.getToken($O.PREPARE,0)}PRESERVE(){return this.getToken($O.PRESERVE,0)}PREV(){return this.getToken($O.PREV,0)}PRIMARY(){return this.getToken($O.PRIMARY,0)}PROCESSLIST(){return this.getToken($O.PROCESSLIST,0)}PROFILE(){return this.getToken($O.PROFILE,0)}PROFILES(){return this.getToken($O.PROFILES,0)}PROXY(){return this.getToken($O.PROXY,0)}QUERY(){return this.getToken($O.QUERY,0)}QUICK(){return this.getToken($O.QUICK,0)}REBUILD(){return this.getToken($O.REBUILD,0)}RECOVER(){return this.getToken($O.RECOVER,0)}RECURSIVE(){return this.getToken($O.RECURSIVE,0)}REDO_BUFFER_SIZE(){return this.getToken($O.REDO_BUFFER_SIZE,0)}REDUNDANT(){return this.getToken($O.REDUNDANT,0)}RELAY(){return this.getToken($O.RELAY,0)}RELAYLOG(){return this.getToken($O.RELAYLOG,0)}RELAY_LOG_FILE(){return this.getToken($O.RELAY_LOG_FILE,0)}RELAY_LOG_POS(){return this.getToken($O.RELAY_LOG_POS,0)}REMOVE(){return this.getToken($O.REMOVE,0)}REORGANIZE(){return this.getToken($O.REORGANIZE,0)}REPAIR(){return this.getToken($O.REPAIR,0)}REPLICATE_DO_DB(){return this.getToken($O.REPLICATE_DO_DB,0)}REPLICATE_DO_TABLE(){return this.getToken($O.REPLICATE_DO_TABLE,0)}REPLICATE_IGNORE_DB(){return this.getToken($O.REPLICATE_IGNORE_DB,0)}REPLICATE_IGNORE_TABLE(){return this.getToken($O.REPLICATE_IGNORE_TABLE,0)}REPLICATE_REWRITE_DB(){return this.getToken($O.REPLICATE_REWRITE_DB,0)}REPLICATE_WILD_DO_TABLE(){return this.getToken($O.REPLICATE_WILD_DO_TABLE,0)}REPLICATE_WILD_IGNORE_TABLE(){return this.getToken($O.REPLICATE_WILD_IGNORE_TABLE,0)}REPLICATION(){return this.getToken($O.REPLICATION,0)}REPLICATION_APPLIER(){return this.getToken($O.REPLICATION_APPLIER,0)}REPLICATION_SLAVE_ADMIN(){return this.getToken($O.REPLICATION_SLAVE_ADMIN,0)}RESET(){return this.getToken($O.RESET,0)}RESOURCE_GROUP_ADMIN(){return this.getToken($O.RESOURCE_GROUP_ADMIN,0)}RESOURCE_GROUP_USER(){return this.getToken($O.RESOURCE_GROUP_USER,0)}RESUME(){return this.getToken($O.RESUME,0)}RETURNED_SQLSTATE(){return this.getToken($O.RETURNED_SQLSTATE,0)}RETURNS(){return this.getToken($O.RETURNS,0)}REUSE(){return this.getToken($O.REUSE,0)}ROLE(){return this.getToken($O.ROLE,0)}ROLE_ADMIN(){return this.getToken($O.ROLE_ADMIN,0)}ROLLBACK(){return this.getToken($O.ROLLBACK,0)}ROLLUP(){return this.getToken($O.ROLLUP,0)}ROTATE(){return this.getToken($O.ROTATE,0)}ROW(){return this.getToken($O.ROW,0)}ROWS(){return this.getToken($O.ROWS,0)}ROW_FORMAT(){return this.getToken($O.ROW_FORMAT,0)}RTREE(){return this.getToken($O.RTREE,0)}S3(){return this.getToken($O.S3,0)}SAVEPOINT(){return this.getToken($O.SAVEPOINT,0)}SCHEDULE(){return this.getToken($O.SCHEDULE,0)}SCHEMA_NAME(){return this.getToken($O.SCHEMA_NAME,0)}SECURITY(){return this.getToken($O.SECURITY,0)}SECONDARY_ENGINE_ATTRIBUTE(){return this.getToken($O.SECONDARY_ENGINE_ATTRIBUTE,0)}SERIAL(){return this.getToken($O.SERIAL,0)}SERVER(){return this.getToken($O.SERVER,0)}SESSION(){return this.getToken($O.SESSION,0)}SESSION_VARIABLES_ADMIN(){return this.getToken($O.SESSION_VARIABLES_ADMIN,0)}SET_USER_ID(){return this.getToken($O.SET_USER_ID,0)}SHARE(){return this.getToken($O.SHARE,0)}SHARED(){return this.getToken($O.SHARED,0)}SHOW_ROUTINE(){return this.getToken($O.SHOW_ROUTINE,0)}SIGNED(){return this.getToken($O.SIGNED,0)}SIMPLE(){return this.getToken($O.SIMPLE,0)}SLAVE(){return this.getToken($O.SLAVE,0)}SLOW(){return this.getToken($O.SLOW,0)}SKIP_QUERY_REWRITE(){return this.getToken($O.SKIP_QUERY_REWRITE,0)}SNAPSHOT(){return this.getToken($O.SNAPSHOT,0)}SOCKET(){return this.getToken($O.SOCKET,0)}SOME(){return this.getToken($O.SOME,0)}SONAME(){return this.getToken($O.SONAME,0)}SOUNDS(){return this.getToken($O.SOUNDS,0)}SOURCE(){return this.getToken($O.SOURCE,0)}SQL_AFTER_GTIDS(){return this.getToken($O.SQL_AFTER_GTIDS,0)}SQL_AFTER_MTS_GAPS(){return this.getToken($O.SQL_AFTER_MTS_GAPS,0)}SQL_BEFORE_GTIDS(){return this.getToken($O.SQL_BEFORE_GTIDS,0)}SQL_BUFFER_RESULT(){return this.getToken($O.SQL_BUFFER_RESULT,0)}SQL_CACHE(){return this.getToken($O.SQL_CACHE,0)}SQL_NO_CACHE(){return this.getToken($O.SQL_NO_CACHE,0)}SQL_THREAD(){return this.getToken($O.SQL_THREAD,0)}STACKED(){return this.getToken($O.STACKED,0)}START(){return this.getToken($O.START,0)}STARTS(){return this.getToken($O.STARTS,0)}STATS_AUTO_RECALC(){return this.getToken($O.STATS_AUTO_RECALC,0)}STATS_PERSISTENT(){return this.getToken($O.STATS_PERSISTENT,0)}STATS_SAMPLE_PAGES(){return this.getToken($O.STATS_SAMPLE_PAGES,0)}STATUS(){return this.getToken($O.STATUS,0)}STD(){return this.getToken($O.STD,0)}STDDEV(){return this.getToken($O.STDDEV,0)}STDDEV_POP(){return this.getToken($O.STDDEV_POP,0)}STDDEV_SAMP(){return this.getToken($O.STDDEV_SAMP,0)}STOP(){return this.getToken($O.STOP,0)}STORAGE(){return this.getToken($O.STORAGE,0)}STRING(){return this.getToken($O.STRING,0)}SUBCLASS_ORIGIN(){return this.getToken($O.SUBCLASS_ORIGIN,0)}SUBJECT(){return this.getToken($O.SUBJECT,0)}SUBPARTITION(){return this.getToken($O.SUBPARTITION,0)}SUBPARTITIONS(){return this.getToken($O.SUBPARTITIONS,0)}SUM(){return this.getToken($O.SUM,0)}SUSPEND(){return this.getToken($O.SUSPEND,0)}SWAPS(){return this.getToken($O.SWAPS,0)}SWITCHES(){return this.getToken($O.SWITCHES,0)}SYSTEM_VARIABLES_ADMIN(){return this.getToken($O.SYSTEM_VARIABLES_ADMIN,0)}TABLE_NAME(){return this.getToken($O.TABLE_NAME,0)}TABLESPACE(){return this.getToken($O.TABLESPACE,0)}TABLE_ENCRYPTION_ADMIN(){return this.getToken($O.TABLE_ENCRYPTION_ADMIN,0)}TABLE_TYPE(){return this.getToken($O.TABLE_TYPE,0)}TEMPORARY(){return this.getToken($O.TEMPORARY,0)}TEMPTABLE(){return this.getToken($O.TEMPTABLE,0)}THAN(){return this.getToken($O.THAN,0)}TP_CONNECTION_ADMIN(){return this.getToken($O.TP_CONNECTION_ADMIN,0)}TRADITIONAL(){return this.getToken($O.TRADITIONAL,0)}TRANSACTION(){return this.getToken($O.TRANSACTION,0)}TRANSACTIONAL(){return this.getToken($O.TRANSACTIONAL,0)}TRIGGERS(){return this.getToken($O.TRIGGERS,0)}TRUNCATE(){return this.getToken($O.TRUNCATE,0)}UNBOUNDED(){return this.getToken($O.UNBOUNDED,0)}UNDEFINED(){return this.getToken($O.UNDEFINED,0)}UNDOFILE(){return this.getToken($O.UNDOFILE,0)}UNDO_BUFFER_SIZE(){return this.getToken($O.UNDO_BUFFER_SIZE,0)}UNINSTALL(){return this.getToken($O.UNINSTALL,0)}UNKNOWN(){return this.getToken($O.UNKNOWN,0)}UNTIL(){return this.getToken($O.UNTIL,0)}UPGRADE(){return this.getToken($O.UPGRADE,0)}USA(){return this.getToken($O.USA,0)}USER(){return this.getToken($O.USER,0)}USE_FRM(){return this.getToken($O.USE_FRM,0)}USER_RESOURCES(){return this.getToken($O.USER_RESOURCES,0)}VALIDATION(){return this.getToken($O.VALIDATION,0)}VALUE(){return this.getToken($O.VALUE,0)}VAR_POP(){return this.getToken($O.VAR_POP,0)}VAR_SAMP(){return this.getToken($O.VAR_SAMP,0)}VARIABLES(){return this.getToken($O.VARIABLES,0)}VARIANCE(){return this.getToken($O.VARIANCE,0)}VERSION_TOKEN_ADMIN(){return this.getToken($O.VERSION_TOKEN_ADMIN,0)}VIEW(){return this.getToken($O.VIEW,0)}VIRTUAL(){return this.getToken($O.VIRTUAL,0)}WAIT(){return this.getToken($O.WAIT,0)}WARNINGS(){return this.getToken($O.WARNINGS,0)}WITHOUT(){return this.getToken($O.WITHOUT,0)}WORK(){return this.getToken($O.WORK,0)}WRAPPER(){return this.getToken($O.WRAPPER,0)}X509(){return this.getToken($O.X509,0)}XA(){return this.getToken($O.XA,0)}XA_RECOVER_ADMIN(){return this.getToken($O.XA_RECOVER_ADMIN,0)}XML(){return this.getToken($O.XML,0)}get ruleIndex(){return $O.RULE_keywordsCanBeId}accept(t){return t.visitKeywordsCanBeId?t.visitKeywordsCanBeId(this):t.visitChildren(this)}},pp=class extends p{constructor(t,e){super(t,e)}ABS(){return this.getToken($O.ABS,0)}ACOS(){return this.getToken($O.ACOS,0)}ADDDATE(){return this.getToken($O.ADDDATE,0)}ADDTIME(){return this.getToken($O.ADDTIME,0)}AES_DECRYPT(){return this.getToken($O.AES_DECRYPT,0)}AES_ENCRYPT(){return this.getToken($O.AES_ENCRYPT,0)}AREA(){return this.getToken($O.AREA,0)}ASBINARY(){return this.getToken($O.ASBINARY,0)}ASIN(){return this.getToken($O.ASIN,0)}ASTEXT(){return this.getToken($O.ASTEXT,0)}ASWKB(){return this.getToken($O.ASWKB,0)}ASWKT(){return this.getToken($O.ASWKT,0)}ASYMMETRIC_DECRYPT(){return this.getToken($O.ASYMMETRIC_DECRYPT,0)}ASYMMETRIC_DERIVE(){return this.getToken($O.ASYMMETRIC_DERIVE,0)}ASYMMETRIC_ENCRYPT(){return this.getToken($O.ASYMMETRIC_ENCRYPT,0)}ASYMMETRIC_SIGN(){return this.getToken($O.ASYMMETRIC_SIGN,0)}ASYMMETRIC_VERIFY(){return this.getToken($O.ASYMMETRIC_VERIFY,0)}ATAN(){return this.getToken($O.ATAN,0)}ATAN2(){return this.getToken($O.ATAN2,0)}BENCHMARK(){return this.getToken($O.BENCHMARK,0)}BIN(){return this.getToken($O.BIN,0)}BIT_COUNT(){return this.getToken($O.BIT_COUNT,0)}BIT_LENGTH(){return this.getToken($O.BIT_LENGTH,0)}BUFFER(){return this.getToken($O.BUFFER,0)}CEIL(){return this.getToken($O.CEIL,0)}CEILING(){return this.getToken($O.CEILING,0)}CENTROID(){return this.getToken($O.CENTROID,0)}CHARACTER_LENGTH(){return this.getToken($O.CHARACTER_LENGTH,0)}CHARSET(){return this.getToken($O.CHARSET,0)}CHAR_LENGTH(){return this.getToken($O.CHAR_LENGTH,0)}COERCIBILITY(){return this.getToken($O.COERCIBILITY,0)}COLLATION(){return this.getToken($O.COLLATION,0)}COMPRESS(){return this.getToken($O.COMPRESS,0)}CONCAT(){return this.getToken($O.CONCAT,0)}CONCAT_WS(){return this.getToken($O.CONCAT_WS,0)}CONNECTION_ID(){return this.getToken($O.CONNECTION_ID,0)}CONV(){return this.getToken($O.CONV,0)}CONVERT_TZ(){return this.getToken($O.CONVERT_TZ,0)}COS(){return this.getToken($O.COS,0)}COT(){return this.getToken($O.COT,0)}COUNT(){return this.getToken($O.COUNT,0)}CRC32(){return this.getToken($O.CRC32,0)}CREATE_ASYMMETRIC_PRIV_KEY(){return this.getToken($O.CREATE_ASYMMETRIC_PRIV_KEY,0)}CREATE_ASYMMETRIC_PUB_KEY(){return this.getToken($O.CREATE_ASYMMETRIC_PUB_KEY,0)}CREATE_DH_PARAMETERS(){return this.getToken($O.CREATE_DH_PARAMETERS,0)}CREATE_DIGEST(){return this.getToken($O.CREATE_DIGEST,0)}CROSSES(){return this.getToken($O.CROSSES,0)}CUME_DIST(){return this.getToken($O.CUME_DIST,0)}DATABASE(){return this.getToken($O.DATABASE,0)}DATE(){return this.getToken($O.DATE,0)}DATEDIFF(){return this.getToken($O.DATEDIFF,0)}DATE_FORMAT(){return this.getToken($O.DATE_FORMAT,0)}DAY(){return this.getToken($O.DAY,0)}DAYNAME(){return this.getToken($O.DAYNAME,0)}DAYOFMONTH(){return this.getToken($O.DAYOFMONTH,0)}DAYOFWEEK(){return this.getToken($O.DAYOFWEEK,0)}DAYOFYEAR(){return this.getToken($O.DAYOFYEAR,0)}DECODE(){return this.getToken($O.DECODE,0)}DEGREES(){return this.getToken($O.DEGREES,0)}DENSE_RANK(){return this.getToken($O.DENSE_RANK,0)}DES_DECRYPT(){return this.getToken($O.DES_DECRYPT,0)}DES_ENCRYPT(){return this.getToken($O.DES_ENCRYPT,0)}DIMENSION(){return this.getToken($O.DIMENSION,0)}DISJOINT(){return this.getToken($O.DISJOINT,0)}ELT(){return this.getToken($O.ELT,0)}ENCODE(){return this.getToken($O.ENCODE,0)}ENCRYPT(){return this.getToken($O.ENCRYPT,0)}ENDPOINT(){return this.getToken($O.ENDPOINT,0)}ENVELOPE(){return this.getToken($O.ENVELOPE,0)}EQUALS(){return this.getToken($O.EQUALS,0)}EXP(){return this.getToken($O.EXP,0)}EXPORT_SET(){return this.getToken($O.EXPORT_SET,0)}EXTERIORRING(){return this.getToken($O.EXTERIORRING,0)}EXTRACTVALUE(){return this.getToken($O.EXTRACTVALUE,0)}FIELD(){return this.getToken($O.FIELD,0)}FIND_IN_SET(){return this.getToken($O.FIND_IN_SET,0)}FIRST_VALUE(){return this.getToken($O.FIRST_VALUE,0)}FLOOR(){return this.getToken($O.FLOOR,0)}FORMAT(){return this.getToken($O.FORMAT,0)}FOUND_ROWS(){return this.getToken($O.FOUND_ROWS,0)}FROM_BASE64(){return this.getToken($O.FROM_BASE64,0)}FROM_DAYS(){return this.getToken($O.FROM_DAYS,0)}FROM_UNIXTIME(){return this.getToken($O.FROM_UNIXTIME,0)}GEOMCOLLFROMTEXT(){return this.getToken($O.GEOMCOLLFROMTEXT,0)}GEOMCOLLFROMWKB(){return this.getToken($O.GEOMCOLLFROMWKB,0)}GEOMETRYCOLLECTION(){return this.getToken($O.GEOMETRYCOLLECTION,0)}GEOMETRYCOLLECTIONFROMTEXT(){return this.getToken($O.GEOMETRYCOLLECTIONFROMTEXT,0)}GEOMETRYCOLLECTIONFROMWKB(){return this.getToken($O.GEOMETRYCOLLECTIONFROMWKB,0)}GEOMETRYFROMTEXT(){return this.getToken($O.GEOMETRYFROMTEXT,0)}GEOMETRYFROMWKB(){return this.getToken($O.GEOMETRYFROMWKB,0)}GEOMETRYN(){return this.getToken($O.GEOMETRYN,0)}GEOMETRYTYPE(){return this.getToken($O.GEOMETRYTYPE,0)}GEOMFROMTEXT(){return this.getToken($O.GEOMFROMTEXT,0)}GEOMFROMWKB(){return this.getToken($O.GEOMFROMWKB,0)}GET_FORMAT(){return this.getToken($O.GET_FORMAT,0)}GET_LOCK(){return this.getToken($O.GET_LOCK,0)}GLENGTH(){return this.getToken($O.GLENGTH,0)}GREATEST(){return this.getToken($O.GREATEST,0)}GTID_SUBSET(){return this.getToken($O.GTID_SUBSET,0)}GTID_SUBTRACT(){return this.getToken($O.GTID_SUBTRACT,0)}HEX(){return this.getToken($O.HEX,0)}HOUR(){return this.getToken($O.HOUR,0)}IFNULL(){return this.getToken($O.IFNULL,0)}INET6_ATON(){return this.getToken($O.INET6_ATON,0)}INET6_NTOA(){return this.getToken($O.INET6_NTOA,0)}INET_ATON(){return this.getToken($O.INET_ATON,0)}INET_NTOA(){return this.getToken($O.INET_NTOA,0)}INSTR(){return this.getToken($O.INSTR,0)}INTERIORRINGN(){return this.getToken($O.INTERIORRINGN,0)}INTERSECTS(){return this.getToken($O.INTERSECTS,0)}INVISIBLE(){return this.getToken($O.INVISIBLE,0)}ISCLOSED(){return this.getToken($O.ISCLOSED,0)}ISEMPTY(){return this.getToken($O.ISEMPTY,0)}ISNULL(){return this.getToken($O.ISNULL,0)}ISSIMPLE(){return this.getToken($O.ISSIMPLE,0)}IS_FREE_LOCK(){return this.getToken($O.IS_FREE_LOCK,0)}IS_IPV4(){return this.getToken($O.IS_IPV4,0)}IS_IPV4_COMPAT(){return this.getToken($O.IS_IPV4_COMPAT,0)}IS_IPV4_MAPPED(){return this.getToken($O.IS_IPV4_MAPPED,0)}IS_IPV6(){return this.getToken($O.IS_IPV6,0)}IS_USED_LOCK(){return this.getToken($O.IS_USED_LOCK,0)}LAG(){return this.getToken($O.LAG,0)}LAST_INSERT_ID(){return this.getToken($O.LAST_INSERT_ID,0)}LAST_VALUE(){return this.getToken($O.LAST_VALUE,0)}LCASE(){return this.getToken($O.LCASE,0)}LEAD(){return this.getToken($O.LEAD,0)}LEAST(){return this.getToken($O.LEAST,0)}LEFT(){return this.getToken($O.LEFT,0)}LENGTH(){return this.getToken($O.LENGTH,0)}LINEFROMTEXT(){return this.getToken($O.LINEFROMTEXT,0)}LINEFROMWKB(){return this.getToken($O.LINEFROMWKB,0)}LINESTRING(){return this.getToken($O.LINESTRING,0)}LINESTRINGFROMTEXT(){return this.getToken($O.LINESTRINGFROMTEXT,0)}LINESTRINGFROMWKB(){return this.getToken($O.LINESTRINGFROMWKB,0)}LN(){return this.getToken($O.LN,0)}LOAD_FILE(){return this.getToken($O.LOAD_FILE,0)}LOCATE(){return this.getToken($O.LOCATE,0)}LOG(){return this.getToken($O.LOG,0)}LOG10(){return this.getToken($O.LOG10,0)}LOG2(){return this.getToken($O.LOG2,0)}LOWER(){return this.getToken($O.LOWER,0)}LPAD(){return this.getToken($O.LPAD,0)}LTRIM(){return this.getToken($O.LTRIM,0)}MAKEDATE(){return this.getToken($O.MAKEDATE,0)}MAKETIME(){return this.getToken($O.MAKETIME,0)}MAKE_SET(){return this.getToken($O.MAKE_SET,0)}MASTER_POS_WAIT(){return this.getToken($O.MASTER_POS_WAIT,0)}MBRCONTAINS(){return this.getToken($O.MBRCONTAINS,0)}MBRDISJOINT(){return this.getToken($O.MBRDISJOINT,0)}MBREQUAL(){return this.getToken($O.MBREQUAL,0)}MBRINTERSECTS(){return this.getToken($O.MBRINTERSECTS,0)}MBROVERLAPS(){return this.getToken($O.MBROVERLAPS,0)}MBRTOUCHES(){return this.getToken($O.MBRTOUCHES,0)}MBRWITHIN(){return this.getToken($O.MBRWITHIN,0)}MD5(){return this.getToken($O.MD5,0)}MICROSECOND(){return this.getToken($O.MICROSECOND,0)}MINUTE(){return this.getToken($O.MINUTE,0)}MLINEFROMTEXT(){return this.getToken($O.MLINEFROMTEXT,0)}MLINEFROMWKB(){return this.getToken($O.MLINEFROMWKB,0)}MOD(){return this.getToken($O.MOD,0)}MONTH(){return this.getToken($O.MONTH,0)}MONTHNAME(){return this.getToken($O.MONTHNAME,0)}MPOINTFROMTEXT(){return this.getToken($O.MPOINTFROMTEXT,0)}MPOINTFROMWKB(){return this.getToken($O.MPOINTFROMWKB,0)}MPOLYFROMTEXT(){return this.getToken($O.MPOLYFROMTEXT,0)}MPOLYFROMWKB(){return this.getToken($O.MPOLYFROMWKB,0)}MULTILINESTRING(){return this.getToken($O.MULTILINESTRING,0)}MULTILINESTRINGFROMTEXT(){return this.getToken($O.MULTILINESTRINGFROMTEXT,0)}MULTILINESTRINGFROMWKB(){return this.getToken($O.MULTILINESTRINGFROMWKB,0)}MULTIPOINT(){return this.getToken($O.MULTIPOINT,0)}MULTIPOINTFROMTEXT(){return this.getToken($O.MULTIPOINTFROMTEXT,0)}MULTIPOINTFROMWKB(){return this.getToken($O.MULTIPOINTFROMWKB,0)}MULTIPOLYGON(){return this.getToken($O.MULTIPOLYGON,0)}MULTIPOLYGONFROMTEXT(){return this.getToken($O.MULTIPOLYGONFROMTEXT,0)}MULTIPOLYGONFROMWKB(){return this.getToken($O.MULTIPOLYGONFROMWKB,0)}NAME_CONST(){return this.getToken($O.NAME_CONST,0)}NTH_VALUE(){return this.getToken($O.NTH_VALUE,0)}NTILE(){return this.getToken($O.NTILE,0)}NULLIF(){return this.getToken($O.NULLIF,0)}NUMGEOMETRIES(){return this.getToken($O.NUMGEOMETRIES,0)}NUMINTERIORRINGS(){return this.getToken($O.NUMINTERIORRINGS,0)}NUMPOINTS(){return this.getToken($O.NUMPOINTS,0)}OCT(){return this.getToken($O.OCT,0)}OCTET_LENGTH(){return this.getToken($O.OCTET_LENGTH,0)}ORD(){return this.getToken($O.ORD,0)}OVERLAPS(){return this.getToken($O.OVERLAPS,0)}PERCENT_RANK(){return this.getToken($O.PERCENT_RANK,0)}PERIOD_ADD(){return this.getToken($O.PERIOD_ADD,0)}PERIOD_DIFF(){return this.getToken($O.PERIOD_DIFF,0)}PI(){return this.getToken($O.PI,0)}POINT(){return this.getToken($O.POINT,0)}POINTFROMTEXT(){return this.getToken($O.POINTFROMTEXT,0)}POINTFROMWKB(){return this.getToken($O.POINTFROMWKB,0)}POINTN(){return this.getToken($O.POINTN,0)}POLYFROMTEXT(){return this.getToken($O.POLYFROMTEXT,0)}POLYFROMWKB(){return this.getToken($O.POLYFROMWKB,0)}POLYGON(){return this.getToken($O.POLYGON,0)}POLYGONFROMTEXT(){return this.getToken($O.POLYGONFROMTEXT,0)}POLYGONFROMWKB(){return this.getToken($O.POLYGONFROMWKB,0)}POSITION(){return this.getToken($O.POSITION,0)}POW(){return this.getToken($O.POW,0)}POWER(){return this.getToken($O.POWER,0)}QUARTER(){return this.getToken($O.QUARTER,0)}QUOTE(){return this.getToken($O.QUOTE,0)}RADIANS(){return this.getToken($O.RADIANS,0)}RAND(){return this.getToken($O.RAND,0)}RANDOM(){return this.getToken($O.RANDOM,0)}RANK(){return this.getToken($O.RANK,0)}RANDOM_BYTES(){return this.getToken($O.RANDOM_BYTES,0)}RELEASE_LOCK(){return this.getToken($O.RELEASE_LOCK,0)}REVERSE(){return this.getToken($O.REVERSE,0)}RIGHT(){return this.getToken($O.RIGHT,0)}ROUND(){return this.getToken($O.ROUND,0)}ROW_COUNT(){return this.getToken($O.ROW_COUNT,0)}ROW_NUMBER(){return this.getToken($O.ROW_NUMBER,0)}RPAD(){return this.getToken($O.RPAD,0)}RTRIM(){return this.getToken($O.RTRIM,0)}SCHEMA(){return this.getToken($O.SCHEMA,0)}SECOND(){return this.getToken($O.SECOND,0)}SEC_TO_TIME(){return this.getToken($O.SEC_TO_TIME,0)}SESSION_USER(){return this.getToken($O.SESSION_USER,0)}SESSION_VARIABLES_ADMIN(){return this.getToken($O.SESSION_VARIABLES_ADMIN,0)}SHA(){return this.getToken($O.SHA,0)}SHA1(){return this.getToken($O.SHA1,0)}SHA2(){return this.getToken($O.SHA2,0)}SIGN(){return this.getToken($O.SIGN,0)}SIN(){return this.getToken($O.SIN,0)}SLEEP(){return this.getToken($O.SLEEP,0)}SOUNDEX(){return this.getToken($O.SOUNDEX,0)}SQL_THREAD_WAIT_AFTER_GTIDS(){return this.getToken($O.SQL_THREAD_WAIT_AFTER_GTIDS,0)}SQRT(){return this.getToken($O.SQRT,0)}SRID(){return this.getToken($O.SRID,0)}STARTPOINT(){return this.getToken($O.STARTPOINT,0)}STRCMP(){return this.getToken($O.STRCMP,0)}STR_TO_DATE(){return this.getToken($O.STR_TO_DATE,0)}ST_AREA(){return this.getToken($O.ST_AREA,0)}ST_ASBINARY(){return this.getToken($O.ST_ASBINARY,0)}ST_ASTEXT(){return this.getToken($O.ST_ASTEXT,0)}ST_ASWKB(){return this.getToken($O.ST_ASWKB,0)}ST_ASWKT(){return this.getToken($O.ST_ASWKT,0)}ST_BUFFER(){return this.getToken($O.ST_BUFFER,0)}ST_CENTROID(){return this.getToken($O.ST_CENTROID,0)}ST_CONTAINS(){return this.getToken($O.ST_CONTAINS,0)}ST_CROSSES(){return this.getToken($O.ST_CROSSES,0)}ST_DIFFERENCE(){return this.getToken($O.ST_DIFFERENCE,0)}ST_DIMENSION(){return this.getToken($O.ST_DIMENSION,0)}ST_DISJOINT(){return this.getToken($O.ST_DISJOINT,0)}ST_DISTANCE(){return this.getToken($O.ST_DISTANCE,0)}ST_ENDPOINT(){return this.getToken($O.ST_ENDPOINT,0)}ST_ENVELOPE(){return this.getToken($O.ST_ENVELOPE,0)}ST_EQUALS(){return this.getToken($O.ST_EQUALS,0)}ST_EXTERIORRING(){return this.getToken($O.ST_EXTERIORRING,0)}ST_GEOMCOLLFROMTEXT(){return this.getToken($O.ST_GEOMCOLLFROMTEXT,0)}ST_GEOMCOLLFROMTXT(){return this.getToken($O.ST_GEOMCOLLFROMTXT,0)}ST_GEOMCOLLFROMWKB(){return this.getToken($O.ST_GEOMCOLLFROMWKB,0)}ST_GEOMETRYCOLLECTIONFROMTEXT(){return this.getToken($O.ST_GEOMETRYCOLLECTIONFROMTEXT,0)}ST_GEOMETRYCOLLECTIONFROMWKB(){return this.getToken($O.ST_GEOMETRYCOLLECTIONFROMWKB,0)}ST_GEOMETRYFROMTEXT(){return this.getToken($O.ST_GEOMETRYFROMTEXT,0)}ST_GEOMETRYFROMWKB(){return this.getToken($O.ST_GEOMETRYFROMWKB,0)}ST_GEOMETRYN(){return this.getToken($O.ST_GEOMETRYN,0)}ST_GEOMETRYTYPE(){return this.getToken($O.ST_GEOMETRYTYPE,0)}ST_GEOMFROMTEXT(){return this.getToken($O.ST_GEOMFROMTEXT,0)}ST_GEOMFROMWKB(){return this.getToken($O.ST_GEOMFROMWKB,0)}ST_INTERIORRINGN(){return this.getToken($O.ST_INTERIORRINGN,0)}ST_INTERSECTION(){return this.getToken($O.ST_INTERSECTION,0)}ST_INTERSECTS(){return this.getToken($O.ST_INTERSECTS,0)}ST_ISCLOSED(){return this.getToken($O.ST_ISCLOSED,0)}ST_ISEMPTY(){return this.getToken($O.ST_ISEMPTY,0)}ST_ISSIMPLE(){return this.getToken($O.ST_ISSIMPLE,0)}ST_LINEFROMTEXT(){return this.getToken($O.ST_LINEFROMTEXT,0)}ST_LINEFROMWKB(){return this.getToken($O.ST_LINEFROMWKB,0)}ST_LINESTRINGFROMTEXT(){return this.getToken($O.ST_LINESTRINGFROMTEXT,0)}ST_LINESTRINGFROMWKB(){return this.getToken($O.ST_LINESTRINGFROMWKB,0)}ST_NUMGEOMETRIES(){return this.getToken($O.ST_NUMGEOMETRIES,0)}ST_NUMINTERIORRING(){return this.getToken($O.ST_NUMINTERIORRING,0)}ST_NUMINTERIORRINGS(){return this.getToken($O.ST_NUMINTERIORRINGS,0)}ST_NUMPOINTS(){return this.getToken($O.ST_NUMPOINTS,0)}ST_OVERLAPS(){return this.getToken($O.ST_OVERLAPS,0)}ST_POINTFROMTEXT(){return this.getToken($O.ST_POINTFROMTEXT,0)}ST_POINTFROMWKB(){return this.getToken($O.ST_POINTFROMWKB,0)}ST_POINTN(){return this.getToken($O.ST_POINTN,0)}ST_POLYFROMTEXT(){return this.getToken($O.ST_POLYFROMTEXT,0)}ST_POLYFROMWKB(){return this.getToken($O.ST_POLYFROMWKB,0)}ST_POLYGONFROMTEXT(){return this.getToken($O.ST_POLYGONFROMTEXT,0)}ST_POLYGONFROMWKB(){return this.getToken($O.ST_POLYGONFROMWKB,0)}ST_SRID(){return this.getToken($O.ST_SRID,0)}ST_STARTPOINT(){return this.getToken($O.ST_STARTPOINT,0)}ST_SYMDIFFERENCE(){return this.getToken($O.ST_SYMDIFFERENCE,0)}ST_TOUCHES(){return this.getToken($O.ST_TOUCHES,0)}ST_UNION(){return this.getToken($O.ST_UNION,0)}ST_WITHIN(){return this.getToken($O.ST_WITHIN,0)}ST_X(){return this.getToken($O.ST_X,0)}ST_Y(){return this.getToken($O.ST_Y,0)}SUBDATE(){return this.getToken($O.SUBDATE,0)}SUBSTRING_INDEX(){return this.getToken($O.SUBSTRING_INDEX,0)}SUBTIME(){return this.getToken($O.SUBTIME,0)}SYSTEM_USER(){return this.getToken($O.SYSTEM_USER,0)}TAN(){return this.getToken($O.TAN,0)}TIME(){return this.getToken($O.TIME,0)}TIMEDIFF(){return this.getToken($O.TIMEDIFF,0)}TIMESTAMP(){return this.getToken($O.TIMESTAMP,0)}TIMESTAMPADD(){return this.getToken($O.TIMESTAMPADD,0)}TIMESTAMPDIFF(){return this.getToken($O.TIMESTAMPDIFF,0)}TIME_FORMAT(){return this.getToken($O.TIME_FORMAT,0)}TIME_TO_SEC(){return this.getToken($O.TIME_TO_SEC,0)}TOUCHES(){return this.getToken($O.TOUCHES,0)}TO_BASE64(){return this.getToken($O.TO_BASE64,0)}TO_DAYS(){return this.getToken($O.TO_DAYS,0)}TO_SECONDS(){return this.getToken($O.TO_SECONDS,0)}UCASE(){return this.getToken($O.UCASE,0)}UNCOMPRESS(){return this.getToken($O.UNCOMPRESS,0)}UNCOMPRESSED_LENGTH(){return this.getToken($O.UNCOMPRESSED_LENGTH,0)}UNHEX(){return this.getToken($O.UNHEX,0)}UNIX_TIMESTAMP(){return this.getToken($O.UNIX_TIMESTAMP,0)}UPDATEXML(){return this.getToken($O.UPDATEXML,0)}UPPER(){return this.getToken($O.UPPER,0)}UUID(){return this.getToken($O.UUID,0)}UUID_SHORT(){return this.getToken($O.UUID_SHORT,0)}VALIDATE_PASSWORD_STRENGTH(){return this.getToken($O.VALIDATE_PASSWORD_STRENGTH,0)}VERSION(){return this.getToken($O.VERSION,0)}VISIBLE(){return this.getToken($O.VISIBLE,0)}WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS(){return this.getToken($O.WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS,0)}WEEK(){return this.getToken($O.WEEK,0)}WEEKDAY(){return this.getToken($O.WEEKDAY,0)}WEEKOFYEAR(){return this.getToken($O.WEEKOFYEAR,0)}WEIGHT_STRING(){return this.getToken($O.WEIGHT_STRING,0)}WITHIN(){return this.getToken($O.WITHIN,0)}YEAR(){return this.getToken($O.YEAR,0)}YEARWEEK(){return this.getToken($O.YEARWEEK,0)}Y_FUNCTION(){return this.getToken($O.Y_FUNCTION,0)}X_FUNCTION(){return this.getToken($O.X_FUNCTION,0)}JSON_ARRAY(){return this.getToken($O.JSON_ARRAY,0)}JSON_OBJECT(){return this.getToken($O.JSON_OBJECT,0)}JSON_QUOTE(){return this.getToken($O.JSON_QUOTE,0)}JSON_CONTAINS(){return this.getToken($O.JSON_CONTAINS,0)}JSON_CONTAINS_PATH(){return this.getToken($O.JSON_CONTAINS_PATH,0)}JSON_EXTRACT(){return this.getToken($O.JSON_EXTRACT,0)}JSON_KEYS(){return this.getToken($O.JSON_KEYS,0)}JSON_OVERLAPS(){return this.getToken($O.JSON_OVERLAPS,0)}JSON_SEARCH(){return this.getToken($O.JSON_SEARCH,0)}JSON_VALUE(){return this.getToken($O.JSON_VALUE,0)}JSON_ARRAY_APPEND(){return this.getToken($O.JSON_ARRAY_APPEND,0)}JSON_ARRAY_INSERT(){return this.getToken($O.JSON_ARRAY_INSERT,0)}JSON_INSERT(){return this.getToken($O.JSON_INSERT,0)}JSON_MERGE(){return this.getToken($O.JSON_MERGE,0)}JSON_MERGE_PATCH(){return this.getToken($O.JSON_MERGE_PATCH,0)}JSON_MERGE_PRESERVE(){return this.getToken($O.JSON_MERGE_PRESERVE,0)}JSON_REMOVE(){return this.getToken($O.JSON_REMOVE,0)}JSON_REPLACE(){return this.getToken($O.JSON_REPLACE,0)}JSON_SET(){return this.getToken($O.JSON_SET,0)}JSON_UNQUOTE(){return this.getToken($O.JSON_UNQUOTE,0)}JSON_DEPTH(){return this.getToken($O.JSON_DEPTH,0)}JSON_LENGTH(){return this.getToken($O.JSON_LENGTH,0)}JSON_TYPE(){return this.getToken($O.JSON_TYPE,0)}JSON_VALID(){return this.getToken($O.JSON_VALID,0)}JSON_TABLE(){return this.getToken($O.JSON_TABLE,0)}JSON_SCHEMA_VALID(){return this.getToken($O.JSON_SCHEMA_VALID,0)}JSON_SCHEMA_VALIDATION_REPORT(){return this.getToken($O.JSON_SCHEMA_VALIDATION_REPORT,0)}JSON_PRETTY(){return this.getToken($O.JSON_PRETTY,0)}JSON_STORAGE_FREE(){return this.getToken($O.JSON_STORAGE_FREE,0)}JSON_STORAGE_SIZE(){return this.getToken($O.JSON_STORAGE_SIZE,0)}JSON_ARRAYAGG(){return this.getToken($O.JSON_ARRAYAGG,0)}JSON_OBJECTAGG(){return this.getToken($O.JSON_OBJECTAGG,0)}get ruleIndex(){return $O.RULE_functionNameBase}accept(t){return t.visitFunctionNameBase?t.visitFunctionNameBase(this):t.visitChildren(this)}},gp=class extends Oe{},xp={SPACE:$O.SPACE,FROM:$O.FROM,OPENING_BRACKET:$O.LR_BRACKET,CLOSING_BRACKET:$O.RR_BRACKET,ALTER:$O.ALTER,INSERT:$O.INSERT,UPDATE:$O.UPDATE,JOIN:$O.JOIN,SEMICOLON:$O.SEMI,SELECT:$O.SELECT};var kp=new Set(function(){let t=[],e=$O.VAR_ASSIGN,s=$O.ERROR_RECONGNIGION;for(let E=e;E<=s;E++)E!==$O.STAR&&t.push(E);let a=$O.ARMSCII8,i=$O.UTF8MB4;for(let E=a;E<=i;E++)t.push(E);let r=$O.AVG,c=$O.UTC_TIMESTAMP;for(let E=r;E<=c;E++)t.push(E);let n=$O.ABS,h=$O.X_FUNCTION;for(let E=n;E<=h;E++)t.push(E);return t.push($O.EOF),t.push($O.KEY),t}()),Hp=new Set([$O.RULE_userName,$O.RULE_roleName,$O.RULE_databaseName,$O.RULE_constraintName,$O.RULE_triggerName,$O.RULE_indexName,$O.RULE_fullColumnName,$O.RULE_tableName,$O.RULE_simpleUserName,$O.RULE_fullId,$O.RULE_simpleId,$O.RULE_uid,$O.RULE_aggregateWindowedFunction,$O.RULE_scalarFunctionName,$O.RULE_specificFunction,$O.RULE_passwordFunctionClause]),Gp=class extends gp{constructor(){super(),this.visitTableName=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitAtomTableItem=t=>{try{let e=t.uid()?.getText(),s="left"===e?.toLowerCase()||"right"===e?.toLowerCase();this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.tableName().getText(),s?void 0:e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitSelectElementAlias=t=>{try{this.symbolTable.addNewSymbolOfType(Os,this.scope,t.uid().getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.symbolTable=new As("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ss,void 0)}};function Fp(t,e){if(!e)return t.root();switch(e){case"from":return t.fromClause();case"alter":return t.alterTable();case"insert":return t.insertStatement();case"update":return t.multipleUpdateStatement();case"select":return t.selectStatement()}}var vp={Lexer:zO,Parser:$O,tokenDictionary:xp,ignoredTokens:kp,rulesToVisit:Hp,getParseTree:Fp,enrichAutocompleteResult:function(t,e,s,a,i,r){let{shouldSuggestColumns:c,shouldSuggestColumnAliases:n,shouldSuggestConstraints:h,...E}=function(t,e,s){let a,i=!1,r=!1,c=!1,n=!1,h=!1,E=!1,T=!1,o=!1,R=!1,A=!1;for(let[S,l]of t)if(vO(e,l))switch(S){case $O.RULE_tableName:if(l.ruleList.includes($O.RULE_createTable))break;a=VO(s,xp,e,$O.VIEW)?"VIEWS":VO(s,xp,e,$O.TABLE)?"TABLES":"ALL";break;case $O.RULE_fullId:VO(s,xp,e,$O.VIEW)&&(l.ruleList.includes($O.RULE_alterView)||l.ruleList.includes($O.RULE_dropView))&&(a="VIEWS");break;case $O.RULE_aggregateWindowedFunction:i=!0;break;case $O.RULE_scalarFunctionName:r=!0;break;case $O.RULE_triggerName:n=!0;break;case $O.RULE_indexName:c=!0;break;case $O.RULE_constraintName:o=!0;break;case $O.RULE_databaseName:h=!0;break;case $O.RULE_roleName:E=!0;break;case $O.RULE_userName:T=!0;break;case $O.RULE_fullColumnName:case $O.RULE_indexColumnName:R=!0,(l.ruleList.includes($O.RULE_groupByItem)||l.ruleList.includes($O.RULE_orderByExpression))&&(A=!0);break;case $O.RULE_uid:(l.ruleList.includes($O.RULE_alterSpecification)&&!VO(s,xp,e,$O.ADD)||l.ruleList.includes($O.RULE_indexColumnName))&&(R=!0)}return{suggestViewsOrTables:a,suggestAggregateFunctions:i,suggestFunctions:r,suggestIndexes:c,suggestTriggers:n,suggestDatabases:h,suggestRoles:E,suggestUsers:T,shouldSuggestConstraints:o,shouldSuggestColumns:R,shouldSuggestColumnAliases:A}}(e,a,s),T={...t,...E,suggestTemplates:YO(r,i)};if(c||h||n){let t=new Gp,{tableContextSuggestion:e,suggestColumnAliases:a}=XO(zO,$O,t,xp,Fp,s,i,r);c&&e&&(T.suggestColumns=e),h&&e&&(T.suggestConstraints=e),n&&a&&(T.suggestColumnAliases=a)}return T}},Bp=class{constructor(t){this.errors=[],this.whitespaceToken=t}syntaxError(t,e,s,a,i){if(e){let t=GO(e,this.whitespaceToken);this.errors.push({message:i,...t})}else this.errors.push({message:i,startLine:s,startColumn:a,endLine:s,endColumn:a})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},yp=class t extends zt{static{this.ADD=1}static{this.AFTER=2}static{this.ALIAS=3}static{this.ALL=4}static{this.ALTER=5}static{this.AND=6}static{this.ANTI=7}static{this.ANY=8}static{this.ARRAY=9}static{this.AS=10}static{this.ASCENDING=11}static{this.ASOF=12}static{this.AST=13}static{this.ASYNC=14}static{this.ATTACH=15}static{this.BETWEEN=16}static{this.BOTH=17}static{this.BY=18}static{this.CASE=19}static{this.CAST=20}static{this.CHECK=21}static{this.CLEAR=22}static{this.CLUSTER=23}static{this.CODEC=24}static{this.COLLATE=25}static{this.COLUMN=26}static{this.COMMENT=27}static{this.CONSTRAINT=28}static{this.CREATE=29}static{this.CROSS=30}static{this.CUBE=31}static{this.CURRENT=32}static{this.DATABASE=33}static{this.DATABASES=34}static{this.DATE=35}static{this.DAY=36}static{this.DEDUPLICATE=37}static{this.DEFAULT=38}static{this.DELAY=39}static{this.DELETE=40}static{this.DESC=41}static{this.DESCENDING=42}static{this.DESCRIBE=43}static{this.DETACH=44}static{this.DICTIONARIES=45}static{this.DICTIONARY=46}static{this.DISK=47}static{this.DISTINCT=48}static{this.DISTRIBUTED=49}static{this.DROP=50}static{this.ELSE=51}static{this.END=52}static{this.ENGINE=53}static{this.ESTIMATE=54}static{this.EVENTS=55}static{this.EXISTS=56}static{this.EXPLAIN=57}static{this.EXPRESSION=58}static{this.EXTRACT=59}static{this.FETCHES=60}static{this.FINAL=61}static{this.FIRST=62}static{this.FLUSH=63}static{this.FOLLOWING=64}static{this.FOR=65}static{this.FORMAT=66}static{this.FREEZE=67}static{this.FROM=68}static{this.FULL=69}static{this.FUNCTION=70}static{this.GLOBAL=71}static{this.GRANULARITY=72}static{this.GROUP=73}static{this.HAVING=74}static{this.HIERARCHICAL=75}static{this.HOUR=76}static{this.ID=77}static{this.IF=78}static{this.ILIKE=79}static{this.IN=80}static{this.INDEX=81}static{this.INF=82}static{this.INJECTIVE=83}static{this.INNER=84}static{this.INSERT=85}static{this.INTERVAL=86}static{this.INTO=87}static{this.IS=88}static{this.IS_OBJECT_ID=89}static{this.JOIN=90}static{this.KEY=91}static{this.KILL=92}static{this.LAST=93}static{this.LAYOUT=94}static{this.LEADING=95}static{this.LEFT=96}static{this.LIFETIME=97}static{this.LIKE=98}static{this.LIMIT=99}static{this.LIVE=100}static{this.LOCAL=101}static{this.LOGS=102}static{this.MATERIALIZE=103}static{this.MATERIALIZED=104}static{this.MAX=105}static{this.MERGES=106}static{this.MIN=107}static{this.MINUTE=108}static{this.MODIFY=109}static{this.MONTH=110}static{this.MOVE=111}static{this.MUTATION=112}static{this.NAN_SQL=113}static{this.NO=114}static{this.NOT=115}static{this.NULL_SQL=116}static{this.NULLS=117}static{this.OFFSET=118}static{this.ON=119}static{this.OPTIMIZE=120}static{this.OR=121}static{this.ORDER=122}static{this.OUTER=123}static{this.OUTFILE=124}static{this.OVER=125}static{this.PARTITION=126}static{this.PIPELINE=127}static{this.PLAN=128}static{this.POPULATE=129}static{this.PRECEDING=130}static{this.PREWHERE=131}static{this.PRIMARY=132}static{this.PROJECTION=133}static{this.QUARTER=134}static{this.QUERY=135}static{this.RANGE=136}static{this.RELOAD=137}static{this.REMOVE=138}static{this.RENAME=139}static{this.REPLACE=140}static{this.REPLICA=141}static{this.REPLICATED=142}static{this.RIGHT=143}static{this.ROLLUP=144}static{this.ROW=145}static{this.ROWS=146}static{this.SAMPLE=147}static{this.SECOND=148}static{this.SELECT=149}static{this.SEMI=150}static{this.SENDS=151}static{this.SET=152}static{this.SETTINGS=153}static{this.SHOW=154}static{this.SOURCE=155}static{this.START=156}static{this.STOP=157}static{this.SUBSTRING=158}static{this.SYNC=159}static{this.SYNTAX=160}static{this.SYSTEM=161}static{this.TABLE=162}static{this.TABLES=163}static{this.TEMPORARY=164}static{this.TEST=165}static{this.THEN=166}static{this.TIES=167}static{this.TIMEOUT=168}static{this.TIMESTAMP=169}static{this.TO=170}static{this.TOP=171}static{this.TOTALS=172}static{this.TRAILING=173}static{this.TRIM=174}static{this.TREE=175}static{this.TRUNCATE=176}static{this.TTL=177}static{this.TYPE=178}static{this.UNBOUNDED=179}static{this.UNION=180}static{this.UPDATE=181}static{this.USE=182}static{this.USING=183}static{this.UUID=184}static{this.VALUES=185}static{this.VIEW=186}static{this.VOLUME=187}static{this.WATCH=188}static{this.WEEK=189}static{this.WHEN=190}static{this.WHERE=191}static{this.WINDOW=192}static{this.WITH=193}static{this.YEAR=194}static{this.JSON_FALSE=195}static{this.JSON_TRUE=196}static{this.IDENTIFIER=197}static{this.FLOATING_LITERAL=198}static{this.OCTAL_LITERAL=199}static{this.DECIMAL_LITERAL=200}static{this.HEXADECIMAL_LITERAL=201}static{this.STRING_LITERAL=202}static{this.ARROW=203}static{this.ASTERISK=204}static{this.BACKQUOTE=205}static{this.BACKSLASH=206}static{this.COLON=207}static{this.COMMA=208}static{this.CONCAT=209}static{this.DASH=210}static{this.DOT=211}static{this.EQ_DOUBLE=212}static{this.EQ_SINGLE=213}static{this.GE=214}static{this.GT=215}static{this.LBRACE=216}static{this.LBRACKET=217}static{this.LE=218}static{this.LPAREN=219}static{this.LT=220}static{this.NOT_EQ=221}static{this.PERCENT=222}static{this.PLUS=223}static{this.QUESTIONMARK=224}static{this.QUOTE_DOUBLE=225}static{this.QUOTE_SINGLE=226}static{this.RBRACE=227}static{this.RBRACKET=228}static{this.RPAREN=229}static{this.SEMICOLON=230}static{this.SLASH=231}static{this.UNDERSCORE=232}static{this.MULTI_LINE_COMMENT=233}static{this.SINGLE_LINE_COMMENT=234}static{this.WHITESPACE=235}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"'false'","'true'",null,null,null,null,null,null,"'->'","'*'","'`'","''","':'","','","'||'","'-'","'.'","'=='","'='","'>='","'>'","'{'","'['","'<='","'('","'<'",null,"'%'","'+'","'?'","'\"'","'''","'}'","']'","')'","';'","'/'","'_'"]}static{this.symbolicNames=[null,"ADD","AFTER","ALIAS","ALL","ALTER","AND","ANTI","ANY","ARRAY","AS","ASCENDING","ASOF","AST","ASYNC","ATTACH","BETWEEN","BOTH","BY","CASE","CAST","CHECK","CLEAR","CLUSTER","CODEC","COLLATE","COLUMN","COMMENT","CONSTRAINT","CREATE","CROSS","CUBE","CURRENT","DATABASE","DATABASES","DATE","DAY","DEDUPLICATE","DEFAULT","DELAY","DELETE","DESC","DESCENDING","DESCRIBE","DETACH","DICTIONARIES","DICTIONARY","DISK","DISTINCT","DISTRIBUTED","DROP","ELSE","END","ENGINE","ESTIMATE","EVENTS","EXISTS","EXPLAIN","EXPRESSION","EXTRACT","FETCHES","FINAL","FIRST","FLUSH","FOLLOWING","FOR","FORMAT","FREEZE","FROM","FULL","FUNCTION","GLOBAL","GRANULARITY","GROUP","HAVING","HIERARCHICAL","HOUR","ID","IF","ILIKE","IN","INDEX","INF","INJECTIVE","INNER","INSERT","INTERVAL","INTO","IS","IS_OBJECT_ID","JOIN","KEY","KILL","LAST","LAYOUT","LEADING","LEFT","LIFETIME","LIKE","LIMIT","LIVE","LOCAL","LOGS","MATERIALIZE","MATERIALIZED","MAX","MERGES","MIN","MINUTE","MODIFY","MONTH","MOVE","MUTATION","NAN_SQL","NO","NOT","NULL_SQL","NULLS","OFFSET","ON","OPTIMIZE","OR","ORDER","OUTER","OUTFILE","OVER","PARTITION","PIPELINE","PLAN","POPULATE","PRECEDING","PREWHERE","PRIMARY","PROJECTION","QUARTER","QUERY","RANGE","RELOAD","REMOVE","RENAME","REPLACE","REPLICA","REPLICATED","RIGHT","ROLLUP","ROW","ROWS","SAMPLE","SECOND","SELECT","SEMI","SENDS","SET","SETTINGS","SHOW","SOURCE","START","STOP","SUBSTRING","SYNC","SYNTAX","SYSTEM","TABLE","TABLES","TEMPORARY","TEST","THEN","TIES","TIMEOUT","TIMESTAMP","TO","TOP","TOTALS","TRAILING","TRIM","TREE","TRUNCATE","TTL","TYPE","UNBOUNDED","UNION","UPDATE","USE","USING","UUID","VALUES","VIEW","VOLUME","WATCH","WEEK","WHEN","WHERE","WINDOW","WITH","YEAR","JSON_FALSE","JSON_TRUE","IDENTIFIER","FLOATING_LITERAL","OCTAL_LITERAL","DECIMAL_LITERAL","HEXADECIMAL_LITERAL","STRING_LITERAL","ARROW","ASTERISK","BACKQUOTE","BACKSLASH","COLON","COMMA","CONCAT","DASH","DOT","EQ_DOUBLE","EQ_SINGLE","GE","GT","LBRACE","LBRACKET","LE","LPAREN","LT","NOT_EQ","PERCENT","PLUS","QUESTIONMARK","QUOTE_DOUBLE","QUOTE_SINGLE","RBRACE","RBRACKET","RPAREN","SEMICOLON","SLASH","UNDERSCORE","MULTI_LINE_COMMENT","SINGLE_LINE_COMMENT","WHITESPACE"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["ADD","AFTER","ALIAS","ALL","ALTER","AND","ANTI","ANY","ARRAY","AS","ASCENDING","ASOF","AST","ASYNC","ATTACH","BETWEEN","BOTH","BY","CASE","CAST","CHECK","CLEAR","CLUSTER","CODEC","COLLATE","COLUMN","COMMENT","CONSTRAINT","CREATE","CROSS","CUBE","CURRENT","DATABASE","DATABASES","DATE","DAY","DEDUPLICATE","DEFAULT","DELAY","DELETE","DESC","DESCENDING","DESCRIBE","DETACH","DICTIONARIES","DICTIONARY","DISK","DISTINCT","DISTRIBUTED","DROP","ELSE","END","ENGINE","ESTIMATE","EVENTS","EXISTS","EXPLAIN","EXPRESSION","EXTRACT","FETCHES","FINAL","FIRST","FLUSH","FOLLOWING","FOR","FORMAT","FREEZE","FROM","FULL","FUNCTION","GLOBAL","GRANULARITY","GROUP","HAVING","HIERARCHICAL","HOUR","ID","IF","ILIKE","IN","INDEX","INF","INJECTIVE","INNER","INSERT","INTERVAL","INTO","IS","IS_OBJECT_ID","JOIN","KEY","KILL","LAST","LAYOUT","LEADING","LEFT","LIFETIME","LIKE","LIMIT","LIVE","LOCAL","LOGS","MATERIALIZE","MATERIALIZED","MAX","MERGES","MIN","MINUTE","MODIFY","MONTH","MOVE","MUTATION","NAN_SQL","NO","NOT","NULL_SQL","NULLS","OFFSET","ON","OPTIMIZE","OR","ORDER","OUTER","OUTFILE","OVER","PARTITION","PIPELINE","PLAN","POPULATE","PRECEDING","PREWHERE","PRIMARY","PROJECTION","QUARTER","QUERY","RANGE","RELOAD","REMOVE","RENAME","REPLACE","REPLICA","REPLICATED","RIGHT","ROLLUP","ROW","ROWS","SAMPLE","SECOND","SELECT","SEMI","SENDS","SET","SETTINGS","SHOW","SOURCE","START","STOP","SUBSTRING","SYNC","SYNTAX","SYSTEM","TABLE","TABLES","TEMPORARY","TEST","THEN","TIES","TIMEOUT","TIMESTAMP","TO","TOP","TOTALS","TRAILING","TRIM","TREE","TRUNCATE","TTL","TYPE","UNBOUNDED","UNION","UPDATE","USE","USING","UUID","VALUES","VIEW","VOLUME","WATCH","WEEK","WHEN","WHERE","WINDOW","WITH","YEAR","JSON_FALSE","JSON_TRUE","IDENTIFIER","FLOATING_LITERAL","OCTAL_LITERAL","DECIMAL_LITERAL","HEXADECIMAL_LITERAL","STRING_LITERAL","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","LETTER","OCT_DIGIT","DEC_DIGIT","HEX_DIGIT","ARROW","ASTERISK","BACKQUOTE","BACKSLASH","COLON","COMMA","CONCAT","DASH","DOT","EQ_DOUBLE","EQ_SINGLE","GE","GT","LBRACE","LBRACKET","LE","LPAREN","LT","NOT_EQ","PERCENT","PLUS","QUESTIONMARK","QUOTE_DOUBLE","QUOTE_SINGLE","RBRACE","RBRACKET","RPAREN","SEMICOLON","SLASH","UNDERSCORE","MULTI_LINE_COMMENT","SINGLE_LINE_COMMENT","WHITESPACE"]}constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new Ae)}get grammarFileName(){return"ClickHouseLexer.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static{this._serializedATN=[4,0,235,2168,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,3,10,594,8,10,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,3,81,1101,8,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,3,193,1840,8,193,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,196,1,196,3,196,1855,8,196,1,196,1,196,1,196,5,196,1860,8,196,10,196,12,196,1863,9,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,5,196,1873,8,196,10,196,12,196,1876,9,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,5,196,1888,8,196,10,196,12,196,1891,9,196,1,196,1,196,3,196,1895,8,196,1,197,1,197,1,197,5,197,1900,8,197,10,197,12,197,1903,9,197,1,197,1,197,3,197,1907,8,197,1,197,1,197,3,197,1911,8,197,1,197,4,197,1914,8,197,11,197,12,197,1915,1,197,1,197,1,197,3,197,1921,8,197,1,197,1,197,3,197,1925,8,197,1,197,4,197,1928,8,197,11,197,12,197,1929,1,197,1,197,1,197,5,197,1935,8,197,10,197,12,197,1938,9,197,1,197,1,197,1,197,3,197,1943,8,197,1,197,4,197,1946,8,197,11,197,12,197,1947,1,197,1,197,1,197,1,197,1,197,3,197,1955,8,197,1,197,4,197,1958,8,197,11,197,12,197,1959,1,197,1,197,1,197,1,197,3,197,1966,8,197,1,197,4,197,1969,8,197,11,197,12,197,1970,3,197,1973,8,197,1,198,1,198,4,198,1977,8,198,11,198,12,198,1978,1,199,4,199,1982,8,199,11,199,12,199,1983,1,200,1,200,1,200,4,200,1989,8,200,11,200,12,200,1990,1,201,1,201,1,201,1,201,1,201,1,201,1,201,1,201,5,201,2001,8,201,10,201,12,201,2004,9,201,1,201,1,201,1,202,1,202,1,203,1,203,1,204,1,204,1,205,1,205,1,206,1,206,1,207,1,207,1,208,1,208,1,209,1,209,1,210,1,210,1,211,1,211,1,212,1,212,1,213,1,213,1,214,1,214,1,215,1,215,1,216,1,216,1,217,1,217,1,218,1,218,1,219,1,219,1,220,1,220,1,221,1,221,1,222,1,222,1,223,1,223,1,224,1,224,1,225,1,225,1,226,1,226,1,227,1,227,1,228,1,228,1,229,1,229,1,230,1,230,1,231,1,231,1,232,1,232,1,232,1,233,1,233,1,234,1,234,1,235,1,235,1,236,1,236,1,237,1,237,1,238,1,238,1,238,1,239,1,239,1,240,1,240,1,241,1,241,1,241,1,242,1,242,1,243,1,243,1,243,1,244,1,244,1,245,1,245,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,249,1,249,1,250,1,250,1,250,1,250,3,250,2113,8,250,1,251,1,251,1,252,1,252,1,253,1,253,1,254,1,254,1,255,1,255,1,256,1,256,1,257,1,257,1,258,1,258,1,259,1,259,1,260,1,260,1,261,1,261,1,262,1,262,1,262,1,262,5,262,2141,8,262,10,262,12,262,2144,9,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,5,263,2155,8,263,10,263,12,263,2158,9,263,1,263,3,263,2161,8,263,1,263,1,263,1,264,1,264,1,264,1,264,1,2142,0,265,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,102,205,103,207,104,209,105,211,106,213,107,215,108,217,109,219,110,221,111,223,112,225,113,227,114,229,115,231,116,233,117,235,118,237,119,239,120,241,121,243,122,245,123,247,124,249,125,251,126,253,127,255,128,257,129,259,130,261,131,263,132,265,133,267,134,269,135,271,136,273,137,275,138,277,139,279,140,281,141,283,142,285,143,287,144,289,145,291,146,293,147,295,148,297,149,299,150,301,151,303,152,305,153,307,154,309,155,311,156,313,157,315,158,317,159,319,160,321,161,323,162,325,163,327,164,329,165,331,166,333,167,335,168,337,169,339,170,341,171,343,172,345,173,347,174,349,175,351,176,353,177,355,178,357,179,359,180,361,181,363,182,365,183,367,184,369,185,371,186,373,187,375,188,377,189,379,190,381,191,383,192,385,193,387,194,389,195,391,196,393,197,395,198,397,199,399,200,401,201,403,202,405,0,407,0,409,0,411,0,413,0,415,0,417,0,419,0,421,0,423,0,425,0,427,0,429,0,431,0,433,0,435,0,437,0,439,0,441,0,443,0,445,0,447,0,449,0,451,0,453,0,455,0,457,0,459,0,461,0,463,0,465,203,467,204,469,205,471,206,473,207,475,208,477,209,479,210,481,211,483,212,485,213,487,214,489,215,491,216,493,217,495,218,497,219,499,220,501,221,503,222,505,223,507,224,509,225,511,226,513,227,515,228,517,229,519,230,521,231,523,232,525,233,527,234,529,235,1,0,36,2,0,92,92,96,96,2,0,34,34,92,92,2,0,39,39,92,92,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,65,90,97,122,1,0,48,55,1,0,48,57,3,0,48,57,65,70,97,102,2,0,10,10,13,13,2,1,10,10,13,13,2,0,9,13,32,32,2184,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,1,531,1,0,0,0,3,535,1,0,0,0,5,541,1,0,0,0,7,547,1,0,0,0,9,551,1,0,0,0,11,557,1,0,0,0,13,561,1,0,0,0,15,566,1,0,0,0,17,570,1,0,0,0,19,576,1,0,0,0,21,593,1,0,0,0,23,595,1,0,0,0,25,600,1,0,0,0,27,604,1,0,0,0,29,610,1,0,0,0,31,617,1,0,0,0,33,625,1,0,0,0,35,630,1,0,0,0,37,633,1,0,0,0,39,638,1,0,0,0,41,643,1,0,0,0,43,649,1,0,0,0,45,655,1,0,0,0,47,663,1,0,0,0,49,669,1,0,0,0,51,677,1,0,0,0,53,684,1,0,0,0,55,692,1,0,0,0,57,703,1,0,0,0,59,710,1,0,0,0,61,716,1,0,0,0,63,721,1,0,0,0,65,729,1,0,0,0,67,738,1,0,0,0,69,748,1,0,0,0,71,753,1,0,0,0,73,757,1,0,0,0,75,769,1,0,0,0,77,777,1,0,0,0,79,783,1,0,0,0,81,790,1,0,0,0,83,795,1,0,0,0,85,806,1,0,0,0,87,815,1,0,0,0,89,822,1,0,0,0,91,835,1,0,0,0,93,846,1,0,0,0,95,851,1,0,0,0,97,860,1,0,0,0,99,872,1,0,0,0,101,877,1,0,0,0,103,882,1,0,0,0,105,886,1,0,0,0,107,893,1,0,0,0,109,902,1,0,0,0,111,909,1,0,0,0,113,916,1,0,0,0,115,924,1,0,0,0,117,935,1,0,0,0,119,943,1,0,0,0,121,951,1,0,0,0,123,957,1,0,0,0,125,963,1,0,0,0,127,969,1,0,0,0,129,979,1,0,0,0,131,983,1,0,0,0,133,990,1,0,0,0,135,997,1,0,0,0,137,1002,1,0,0,0,139,1007,1,0,0,0,141,1016,1,0,0,0,143,1023,1,0,0,0,145,1035,1,0,0,0,147,1041,1,0,0,0,149,1048,1,0,0,0,151,1061,1,0,0,0,153,1066,1,0,0,0,155,1069,1,0,0,0,157,1072,1,0,0,0,159,1078,1,0,0,0,161,1081,1,0,0,0,163,1100,1,0,0,0,165,1102,1,0,0,0,167,1112,1,0,0,0,169,1118,1,0,0,0,171,1125,1,0,0,0,173,1134,1,0,0,0,175,1139,1,0,0,0,177,1142,1,0,0,0,179,1155,1,0,0,0,181,1160,1,0,0,0,183,1164,1,0,0,0,185,1169,1,0,0,0,187,1174,1,0,0,0,189,1181,1,0,0,0,191,1189,1,0,0,0,193,1194,1,0,0,0,195,1203,1,0,0,0,197,1208,1,0,0,0,199,1214,1,0,0,0,201,1219,1,0,0,0,203,1225,1,0,0,0,205,1230,1,0,0,0,207,1242,1,0,0,0,209,1255,1,0,0,0,211,1259,1,0,0,0,213,1266,1,0,0,0,215,1270,1,0,0,0,217,1277,1,0,0,0,219,1284,1,0,0,0,221,1290,1,0,0,0,223,1295,1,0,0,0,225,1304,1,0,0,0,227,1308,1,0,0,0,229,1311,1,0,0,0,231,1315,1,0,0,0,233,1320,1,0,0,0,235,1326,1,0,0,0,237,1333,1,0,0,0,239,1336,1,0,0,0,241,1345,1,0,0,0,243,1348,1,0,0,0,245,1354,1,0,0,0,247,1360,1,0,0,0,249,1368,1,0,0,0,251,1373,1,0,0,0,253,1383,1,0,0,0,255,1392,1,0,0,0,257,1397,1,0,0,0,259,1406,1,0,0,0,261,1416,1,0,0,0,263,1425,1,0,0,0,265,1433,1,0,0,0,267,1444,1,0,0,0,269,1452,1,0,0,0,271,1458,1,0,0,0,273,1464,1,0,0,0,275,1471,1,0,0,0,277,1478,1,0,0,0,279,1485,1,0,0,0,281,1493,1,0,0,0,283,1501,1,0,0,0,285,1512,1,0,0,0,287,1518,1,0,0,0,289,1525,1,0,0,0,291,1529,1,0,0,0,293,1534,1,0,0,0,295,1541,1,0,0,0,297,1548,1,0,0,0,299,1555,1,0,0,0,301,1560,1,0,0,0,303,1566,1,0,0,0,305,1570,1,0,0,0,307,1579,1,0,0,0,309,1584,1,0,0,0,311,1591,1,0,0,0,313,1597,1,0,0,0,315,1602,1,0,0,0,317,1612,1,0,0,0,319,1617,1,0,0,0,321,1624,1,0,0,0,323,1631,1,0,0,0,325,1637,1,0,0,0,327,1644,1,0,0,0,329,1654,1,0,0,0,331,1659,1,0,0,0,333,1664,1,0,0,0,335,1669,1,0,0,0,337,1677,1,0,0,0,339,1687,1,0,0,0,341,1690,1,0,0,0,343,1694,1,0,0,0,345,1701,1,0,0,0,347,1710,1,0,0,0,349,1715,1,0,0,0,351,1720,1,0,0,0,353,1729,1,0,0,0,355,1733,1,0,0,0,357,1738,1,0,0,0,359,1748,1,0,0,0,361,1754,1,0,0,0,363,1761,1,0,0,0,365,1765,1,0,0,0,367,1771,1,0,0,0,369,1776,1,0,0,0,371,1783,1,0,0,0,373,1788,1,0,0,0,375,1795,1,0,0,0,377,1801,1,0,0,0,379,1806,1,0,0,0,381,1811,1,0,0,0,383,1817,1,0,0,0,385,1824,1,0,0,0,387,1839,1,0,0,0,389,1841,1,0,0,0,391,1847,1,0,0,0,393,1894,1,0,0,0,395,1972,1,0,0,0,397,1974,1,0,0,0,399,1981,1,0,0,0,401,1985,1,0,0,0,403,1992,1,0,0,0,405,2007,1,0,0,0,407,2009,1,0,0,0,409,2011,1,0,0,0,411,2013,1,0,0,0,413,2015,1,0,0,0,415,2017,1,0,0,0,417,2019,1,0,0,0,419,2021,1,0,0,0,421,2023,1,0,0,0,423,2025,1,0,0,0,425,2027,1,0,0,0,427,2029,1,0,0,0,429,2031,1,0,0,0,431,2033,1,0,0,0,433,2035,1,0,0,0,435,2037,1,0,0,0,437,2039,1,0,0,0,439,2041,1,0,0,0,441,2043,1,0,0,0,443,2045,1,0,0,0,445,2047,1,0,0,0,447,2049,1,0,0,0,449,2051,1,0,0,0,451,2053,1,0,0,0,453,2055,1,0,0,0,455,2057,1,0,0,0,457,2059,1,0,0,0,459,2061,1,0,0,0,461,2063,1,0,0,0,463,2065,1,0,0,0,465,2067,1,0,0,0,467,2070,1,0,0,0,469,2072,1,0,0,0,471,2074,1,0,0,0,473,2076,1,0,0,0,475,2078,1,0,0,0,477,2080,1,0,0,0,479,2083,1,0,0,0,481,2085,1,0,0,0,483,2087,1,0,0,0,485,2090,1,0,0,0,487,2092,1,0,0,0,489,2095,1,0,0,0,491,2097,1,0,0,0,493,2099,1,0,0,0,495,2101,1,0,0,0,497,2104,1,0,0,0,499,2106,1,0,0,0,501,2112,1,0,0,0,503,2114,1,0,0,0,505,2116,1,0,0,0,507,2118,1,0,0,0,509,2120,1,0,0,0,511,2122,1,0,0,0,513,2124,1,0,0,0,515,2126,1,0,0,0,517,2128,1,0,0,0,519,2130,1,0,0,0,521,2132,1,0,0,0,523,2134,1,0,0,0,525,2136,1,0,0,0,527,2150,1,0,0,0,529,2164,1,0,0,0,531,532,3,405,202,0,532,533,3,411,205,0,533,534,3,411,205,0,534,2,1,0,0,0,535,536,3,405,202,0,536,537,3,415,207,0,537,538,3,443,221,0,538,539,3,413,206,0,539,540,3,439,219,0,540,4,1,0,0,0,541,542,3,405,202,0,542,543,3,427,213,0,543,544,3,421,210,0,544,545,3,405,202,0,545,546,3,441,220,0,546,6,1,0,0,0,547,548,3,405,202,0,548,549,3,427,213,0,549,550,3,427,213,0,550,8,1,0,0,0,551,552,3,405,202,0,552,553,3,427,213,0,553,554,3,443,221,0,554,555,3,413,206,0,555,556,3,439,219,0,556,10,1,0,0,0,557,558,3,405,202,0,558,559,3,431,215,0,559,560,3,411,205,0,560,12,1,0,0,0,561,562,3,405,202,0,562,563,3,431,215,0,563,564,3,443,221,0,564,565,3,421,210,0,565,14,1,0,0,0,566,567,3,405,202,0,567,568,3,431,215,0,568,569,3,453,226,0,569,16,1,0,0,0,570,571,3,405,202,0,571,572,3,439,219,0,572,573,3,439,219,0,573,574,3,405,202,0,574,575,3,453,226,0,575,18,1,0,0,0,576,577,3,405,202,0,577,578,3,441,220,0,578,20,1,0,0,0,579,580,3,405,202,0,580,581,3,441,220,0,581,582,3,409,204,0,582,594,1,0,0,0,583,584,3,405,202,0,584,585,3,441,220,0,585,586,3,409,204,0,586,587,3,413,206,0,587,588,3,431,215,0,588,589,3,411,205,0,589,590,3,421,210,0,590,591,3,431,215,0,591,592,3,417,208,0,592,594,1,0,0,0,593,579,1,0,0,0,593,583,1,0,0,0,594,22,1,0,0,0,595,596,3,405,202,0,596,597,3,441,220,0,597,598,3,433,216,0,598,599,3,415,207,0,599,24,1,0,0,0,600,601,3,405,202,0,601,602,3,441,220,0,602,603,3,443,221,0,603,26,1,0,0,0,604,605,3,405,202,0,605,606,3,441,220,0,606,607,3,453,226,0,607,608,3,431,215,0,608,609,3,409,204,0,609,28,1,0,0,0,610,611,3,405,202,0,611,612,3,443,221,0,612,613,3,443,221,0,613,614,3,405,202,0,614,615,3,409,204,0,615,616,3,419,209,0,616,30,1,0,0,0,617,618,3,407,203,0,618,619,3,413,206,0,619,620,3,443,221,0,620,621,3,449,224,0,621,622,3,413,206,0,622,623,3,413,206,0,623,624,3,431,215,0,624,32,1,0,0,0,625,626,3,407,203,0,626,627,3,433,216,0,627,628,3,443,221,0,628,629,3,419,209,0,629,34,1,0,0,0,630,631,3,407,203,0,631,632,3,453,226,0,632,36,1,0,0,0,633,634,3,409,204,0,634,635,3,405,202,0,635,636,3,441,220,0,636,637,3,413,206,0,637,38,1,0,0,0,638,639,3,409,204,0,639,640,3,405,202,0,640,641,3,441,220,0,641,642,3,443,221,0,642,40,1,0,0,0,643,644,3,409,204,0,644,645,3,419,209,0,645,646,3,413,206,0,646,647,3,409,204,0,647,648,3,425,212,0,648,42,1,0,0,0,649,650,3,409,204,0,650,651,3,427,213,0,651,652,3,413,206,0,652,653,3,405,202,0,653,654,3,439,219,0,654,44,1,0,0,0,655,656,3,409,204,0,656,657,3,427,213,0,657,658,3,445,222,0,658,659,3,441,220,0,659,660,3,443,221,0,660,661,3,413,206,0,661,662,3,439,219,0,662,46,1,0,0,0,663,664,3,409,204,0,664,665,3,433,216,0,665,666,3,411,205,0,666,667,3,413,206,0,667,668,3,409,204,0,668,48,1,0,0,0,669,670,3,409,204,0,670,671,3,433,216,0,671,672,3,427,213,0,672,673,3,427,213,0,673,674,3,405,202,0,674,675,3,443,221,0,675,676,3,413,206,0,676,50,1,0,0,0,677,678,3,409,204,0,678,679,3,433,216,0,679,680,3,427,213,0,680,681,3,445,222,0,681,682,3,429,214,0,682,683,3,431,215,0,683,52,1,0,0,0,684,685,3,409,204,0,685,686,3,433,216,0,686,687,3,429,214,0,687,688,3,429,214,0,688,689,3,413,206,0,689,690,3,431,215,0,690,691,3,443,221,0,691,54,1,0,0,0,692,693,3,409,204,0,693,694,3,433,216,0,694,695,3,431,215,0,695,696,3,441,220,0,696,697,3,443,221,0,697,698,3,439,219,0,698,699,3,405,202,0,699,700,3,421,210,0,700,701,3,431,215,0,701,702,3,443,221,0,702,56,1,0,0,0,703,704,3,409,204,0,704,705,3,439,219,0,705,706,3,413,206,0,706,707,3,405,202,0,707,708,3,443,221,0,708,709,3,413,206,0,709,58,1,0,0,0,710,711,3,409,204,0,711,712,3,439,219,0,712,713,3,433,216,0,713,714,3,441,220,0,714,715,3,441,220,0,715,60,1,0,0,0,716,717,3,409,204,0,717,718,3,445,222,0,718,719,3,407,203,0,719,720,3,413,206,0,720,62,1,0,0,0,721,722,3,409,204,0,722,723,3,445,222,0,723,724,3,439,219,0,724,725,3,439,219,0,725,726,3,413,206,0,726,727,3,431,215,0,727,728,3,443,221,0,728,64,1,0,0,0,729,730,3,411,205,0,730,731,3,405,202,0,731,732,3,443,221,0,732,733,3,405,202,0,733,734,3,407,203,0,734,735,3,405,202,0,735,736,3,441,220,0,736,737,3,413,206,0,737,66,1,0,0,0,738,739,3,411,205,0,739,740,3,405,202,0,740,741,3,443,221,0,741,742,3,405,202,0,742,743,3,407,203,0,743,744,3,405,202,0,744,745,3,441,220,0,745,746,3,413,206,0,746,747,3,441,220,0,747,68,1,0,0,0,748,749,3,411,205,0,749,750,3,405,202,0,750,751,3,443,221,0,751,752,3,413,206,0,752,70,1,0,0,0,753,754,3,411,205,0,754,755,3,405,202,0,755,756,3,453,226,0,756,72,1,0,0,0,757,758,3,411,205,0,758,759,3,413,206,0,759,760,3,411,205,0,760,761,3,445,222,0,761,762,3,435,217,0,762,763,3,427,213,0,763,764,3,421,210,0,764,765,3,409,204,0,765,766,3,405,202,0,766,767,3,443,221,0,767,768,3,413,206,0,768,74,1,0,0,0,769,770,3,411,205,0,770,771,3,413,206,0,771,772,3,415,207,0,772,773,3,405,202,0,773,774,3,445,222,0,774,775,3,427,213,0,775,776,3,443,221,0,776,76,1,0,0,0,777,778,3,411,205,0,778,779,3,413,206,0,779,780,3,427,213,0,780,781,3,405,202,0,781,782,3,453,226,0,782,78,1,0,0,0,783,784,3,411,205,0,784,785,3,413,206,0,785,786,3,427,213,0,786,787,3,413,206,0,787,788,3,443,221,0,788,789,3,413,206,0,789,80,1,0,0,0,790,791,3,411,205,0,791,792,3,413,206,0,792,793,3,441,220,0,793,794,3,409,204,0,794,82,1,0,0,0,795,796,3,411,205,0,796,797,3,413,206,0,797,798,3,441,220,0,798,799,3,409,204,0,799,800,3,413,206,0,800,801,3,431,215,0,801,802,3,411,205,0,802,803,3,421,210,0,803,804,3,431,215,0,804,805,3,417,208,0,805,84,1,0,0,0,806,807,3,411,205,0,807,808,3,413,206,0,808,809,3,441,220,0,809,810,3,409,204,0,810,811,3,439,219,0,811,812,3,421,210,0,812,813,3,407,203,0,813,814,3,413,206,0,814,86,1,0,0,0,815,816,3,411,205,0,816,817,3,413,206,0,817,818,3,443,221,0,818,819,3,405,202,0,819,820,3,409,204,0,820,821,3,419,209,0,821,88,1,0,0,0,822,823,3,411,205,0,823,824,3,421,210,0,824,825,3,409,204,0,825,826,3,443,221,0,826,827,3,421,210,0,827,828,3,433,216,0,828,829,3,431,215,0,829,830,3,405,202,0,830,831,3,439,219,0,831,832,3,421,210,0,832,833,3,413,206,0,833,834,3,441,220,0,834,90,1,0,0,0,835,836,3,411,205,0,836,837,3,421,210,0,837,838,3,409,204,0,838,839,3,443,221,0,839,840,3,421,210,0,840,841,3,433,216,0,841,842,3,431,215,0,842,843,3,405,202,0,843,844,3,439,219,0,844,845,3,453,226,0,845,92,1,0,0,0,846,847,3,411,205,0,847,848,3,421,210,0,848,849,3,441,220,0,849,850,3,425,212,0,850,94,1,0,0,0,851,852,3,411,205,0,852,853,3,421,210,0,853,854,3,441,220,0,854,855,3,443,221,0,855,856,3,421,210,0,856,857,3,431,215,0,857,858,3,409,204,0,858,859,3,443,221,0,859,96,1,0,0,0,860,861,3,411,205,0,861,862,3,421,210,0,862,863,3,441,220,0,863,864,3,443,221,0,864,865,3,439,219,0,865,866,3,421,210,0,866,867,3,407,203,0,867,868,3,445,222,0,868,869,3,443,221,0,869,870,3,413,206,0,870,871,3,411,205,0,871,98,1,0,0,0,872,873,3,411,205,0,873,874,3,439,219,0,874,875,3,433,216,0,875,876,3,435,217,0,876,100,1,0,0,0,877,878,3,413,206,0,878,879,3,427,213,0,879,880,3,441,220,0,880,881,3,413,206,0,881,102,1,0,0,0,882,883,3,413,206,0,883,884,3,431,215,0,884,885,3,411,205,0,885,104,1,0,0,0,886,887,3,413,206,0,887,888,3,431,215,0,888,889,3,417,208,0,889,890,3,421,210,0,890,891,3,431,215,0,891,892,3,413,206,0,892,106,1,0,0,0,893,894,3,413,206,0,894,895,3,441,220,0,895,896,3,443,221,0,896,897,3,421,210,0,897,898,3,429,214,0,898,899,3,405,202,0,899,900,3,443,221,0,900,901,3,413,206,0,901,108,1,0,0,0,902,903,3,413,206,0,903,904,3,447,223,0,904,905,3,413,206,0,905,906,3,431,215,0,906,907,3,443,221,0,907,908,3,441,220,0,908,110,1,0,0,0,909,910,3,413,206,0,910,911,3,451,225,0,911,912,3,421,210,0,912,913,3,441,220,0,913,914,3,443,221,0,914,915,3,441,220,0,915,112,1,0,0,0,916,917,3,413,206,0,917,918,3,451,225,0,918,919,3,435,217,0,919,920,3,427,213,0,920,921,3,405,202,0,921,922,3,421,210,0,922,923,3,431,215,0,923,114,1,0,0,0,924,925,3,413,206,0,925,926,3,451,225,0,926,927,3,435,217,0,927,928,3,439,219,0,928,929,3,413,206,0,929,930,3,441,220,0,930,931,3,441,220,0,931,932,3,421,210,0,932,933,3,433,216,0,933,934,3,431,215,0,934,116,1,0,0,0,935,936,3,413,206,0,936,937,3,451,225,0,937,938,3,443,221,0,938,939,3,439,219,0,939,940,3,405,202,0,940,941,3,409,204,0,941,942,3,443,221,0,942,118,1,0,0,0,943,944,3,415,207,0,944,945,3,413,206,0,945,946,3,443,221,0,946,947,3,409,204,0,947,948,3,419,209,0,948,949,3,413,206,0,949,950,3,441,220,0,950,120,1,0,0,0,951,952,3,415,207,0,952,953,3,421,210,0,953,954,3,431,215,0,954,955,3,405,202,0,955,956,3,427,213,0,956,122,1,0,0,0,957,958,3,415,207,0,958,959,3,421,210,0,959,960,3,439,219,0,960,961,3,441,220,0,961,962,3,443,221,0,962,124,1,0,0,0,963,964,3,415,207,0,964,965,3,427,213,0,965,966,3,445,222,0,966,967,3,441,220,0,967,968,3,419,209,0,968,126,1,0,0,0,969,970,3,415,207,0,970,971,3,433,216,0,971,972,3,427,213,0,972,973,3,427,213,0,973,974,3,433,216,0,974,975,3,449,224,0,975,976,3,421,210,0,976,977,3,431,215,0,977,978,3,417,208,0,978,128,1,0,0,0,979,980,3,415,207,0,980,981,3,433,216,0,981,982,3,439,219,0,982,130,1,0,0,0,983,984,3,415,207,0,984,985,3,433,216,0,985,986,3,439,219,0,986,987,3,429,214,0,987,988,3,405,202,0,988,989,3,443,221,0,989,132,1,0,0,0,990,991,3,415,207,0,991,992,3,439,219,0,992,993,3,413,206,0,993,994,3,413,206,0,994,995,3,455,227,0,995,996,3,413,206,0,996,134,1,0,0,0,997,998,3,415,207,0,998,999,3,439,219,0,999,1e3,3,433,216,0,1e3,1001,3,429,214,0,1001,136,1,0,0,0,1002,1003,3,415,207,0,1003,1004,3,445,222,0,1004,1005,3,427,213,0,1005,1006,3,427,213,0,1006,138,1,0,0,0,1007,1008,3,415,207,0,1008,1009,3,445,222,0,1009,1010,3,431,215,0,1010,1011,3,409,204,0,1011,1012,3,443,221,0,1012,1013,3,421,210,0,1013,1014,3,433,216,0,1014,1015,3,431,215,0,1015,140,1,0,0,0,1016,1017,3,417,208,0,1017,1018,3,427,213,0,1018,1019,3,433,216,0,1019,1020,3,407,203,0,1020,1021,3,405,202,0,1021,1022,3,427,213,0,1022,142,1,0,0,0,1023,1024,3,417,208,0,1024,1025,3,439,219,0,1025,1026,3,405,202,0,1026,1027,3,431,215,0,1027,1028,3,445,222,0,1028,1029,3,427,213,0,1029,1030,3,405,202,0,1030,1031,3,439,219,0,1031,1032,3,421,210,0,1032,1033,3,443,221,0,1033,1034,3,453,226,0,1034,144,1,0,0,0,1035,1036,3,417,208,0,1036,1037,3,439,219,0,1037,1038,3,433,216,0,1038,1039,3,445,222,0,1039,1040,3,435,217,0,1040,146,1,0,0,0,1041,1042,3,419,209,0,1042,1043,3,405,202,0,1043,1044,3,447,223,0,1044,1045,3,421,210,0,1045,1046,3,431,215,0,1046,1047,3,417,208,0,1047,148,1,0,0,0,1048,1049,3,419,209,0,1049,1050,3,421,210,0,1050,1051,3,413,206,0,1051,1052,3,439,219,0,1052,1053,3,405,202,0,1053,1054,3,439,219,0,1054,1055,3,409,204,0,1055,1056,3,419,209,0,1056,1057,3,421,210,0,1057,1058,3,409,204,0,1058,1059,3,405,202,0,1059,1060,3,427,213,0,1060,150,1,0,0,0,1061,1062,3,419,209,0,1062,1063,3,433,216,0,1063,1064,3,445,222,0,1064,1065,3,439,219,0,1065,152,1,0,0,0,1066,1067,3,421,210,0,1067,1068,3,411,205,0,1068,154,1,0,0,0,1069,1070,3,421,210,0,1070,1071,3,415,207,0,1071,156,1,0,0,0,1072,1073,3,421,210,0,1073,1074,3,427,213,0,1074,1075,3,421,210,0,1075,1076,3,425,212,0,1076,1077,3,413,206,0,1077,158,1,0,0,0,1078,1079,3,421,210,0,1079,1080,3,431,215,0,1080,160,1,0,0,0,1081,1082,3,421,210,0,1082,1083,3,431,215,0,1083,1084,3,411,205,0,1084,1085,3,413,206,0,1085,1086,3,451,225,0,1086,162,1,0,0,0,1087,1088,3,421,210,0,1088,1089,3,431,215,0,1089,1090,3,415,207,0,1090,1101,1,0,0,0,1091,1092,3,421,210,0,1092,1093,3,431,215,0,1093,1094,3,415,207,0,1094,1095,3,421,210,0,1095,1096,3,431,215,0,1096,1097,3,421,210,0,1097,1098,3,443,221,0,1098,1099,3,453,226,0,1099,1101,1,0,0,0,1100,1087,1,0,0,0,1100,1091,1,0,0,0,1101,164,1,0,0,0,1102,1103,3,421,210,0,1103,1104,3,431,215,0,1104,1105,3,423,211,0,1105,1106,3,413,206,0,1106,1107,3,409,204,0,1107,1108,3,443,221,0,1108,1109,3,421,210,0,1109,1110,3,447,223,0,1110,1111,3,413,206,0,1111,166,1,0,0,0,1112,1113,3,421,210,0,1113,1114,3,431,215,0,1114,1115,3,431,215,0,1115,1116,3,413,206,0,1116,1117,3,439,219,0,1117,168,1,0,0,0,1118,1119,3,421,210,0,1119,1120,3,431,215,0,1120,1121,3,441,220,0,1121,1122,3,413,206,0,1122,1123,3,439,219,0,1123,1124,3,443,221,0,1124,170,1,0,0,0,1125,1126,3,421,210,0,1126,1127,3,431,215,0,1127,1128,3,443,221,0,1128,1129,3,413,206,0,1129,1130,3,439,219,0,1130,1131,3,447,223,0,1131,1132,3,405,202,0,1132,1133,3,427,213,0,1133,172,1,0,0,0,1134,1135,3,421,210,0,1135,1136,3,431,215,0,1136,1137,3,443,221,0,1137,1138,3,433,216,0,1138,174,1,0,0,0,1139,1140,3,421,210,0,1140,1141,3,441,220,0,1141,176,1,0,0,0,1142,1143,3,421,210,0,1143,1144,3,441,220,0,1144,1145,3,523,261,0,1145,1146,3,433,216,0,1146,1147,3,407,203,0,1147,1148,3,423,211,0,1148,1149,3,413,206,0,1149,1150,3,409,204,0,1150,1151,3,443,221,0,1151,1152,3,523,261,0,1152,1153,3,421,210,0,1153,1154,3,411,205,0,1154,178,1,0,0,0,1155,1156,3,423,211,0,1156,1157,3,433,216,0,1157,1158,3,421,210,0,1158,1159,3,431,215,0,1159,180,1,0,0,0,1160,1161,3,425,212,0,1161,1162,3,413,206,0,1162,1163,3,453,226,0,1163,182,1,0,0,0,1164,1165,3,425,212,0,1165,1166,3,421,210,0,1166,1167,3,427,213,0,1167,1168,3,427,213,0,1168,184,1,0,0,0,1169,1170,3,427,213,0,1170,1171,3,405,202,0,1171,1172,3,441,220,0,1172,1173,3,443,221,0,1173,186,1,0,0,0,1174,1175,3,427,213,0,1175,1176,3,405,202,0,1176,1177,3,453,226,0,1177,1178,3,433,216,0,1178,1179,3,445,222,0,1179,1180,3,443,221,0,1180,188,1,0,0,0,1181,1182,3,427,213,0,1182,1183,3,413,206,0,1183,1184,3,405,202,0,1184,1185,3,411,205,0,1185,1186,3,421,210,0,1186,1187,3,431,215,0,1187,1188,3,417,208,0,1188,190,1,0,0,0,1189,1190,3,427,213,0,1190,1191,3,413,206,0,1191,1192,3,415,207,0,1192,1193,3,443,221,0,1193,192,1,0,0,0,1194,1195,3,427,213,0,1195,1196,3,421,210,0,1196,1197,3,415,207,0,1197,1198,3,413,206,0,1198,1199,3,443,221,0,1199,1200,3,421,210,0,1200,1201,3,429,214,0,1201,1202,3,413,206,0,1202,194,1,0,0,0,1203,1204,3,427,213,0,1204,1205,3,421,210,0,1205,1206,3,425,212,0,1206,1207,3,413,206,0,1207,196,1,0,0,0,1208,1209,3,427,213,0,1209,1210,3,421,210,0,1210,1211,3,429,214,0,1211,1212,3,421,210,0,1212,1213,3,443,221,0,1213,198,1,0,0,0,1214,1215,3,427,213,0,1215,1216,3,421,210,0,1216,1217,3,447,223,0,1217,1218,3,413,206,0,1218,200,1,0,0,0,1219,1220,3,427,213,0,1220,1221,3,433,216,0,1221,1222,3,409,204,0,1222,1223,3,405,202,0,1223,1224,3,427,213,0,1224,202,1,0,0,0,1225,1226,3,427,213,0,1226,1227,3,433,216,0,1227,1228,3,417,208,0,1228,1229,3,441,220,0,1229,204,1,0,0,0,1230,1231,3,429,214,0,1231,1232,3,405,202,0,1232,1233,3,443,221,0,1233,1234,3,413,206,0,1234,1235,3,439,219,0,1235,1236,3,421,210,0,1236,1237,3,405,202,0,1237,1238,3,427,213,0,1238,1239,3,421,210,0,1239,1240,3,455,227,0,1240,1241,3,413,206,0,1241,206,1,0,0,0,1242,1243,3,429,214,0,1243,1244,3,405,202,0,1244,1245,3,443,221,0,1245,1246,3,413,206,0,1246,1247,3,439,219,0,1247,1248,3,421,210,0,1248,1249,3,405,202,0,1249,1250,3,427,213,0,1250,1251,3,421,210,0,1251,1252,3,455,227,0,1252,1253,3,413,206,0,1253,1254,3,411,205,0,1254,208,1,0,0,0,1255,1256,3,429,214,0,1256,1257,3,405,202,0,1257,1258,3,451,225,0,1258,210,1,0,0,0,1259,1260,3,429,214,0,1260,1261,3,413,206,0,1261,1262,3,439,219,0,1262,1263,3,417,208,0,1263,1264,3,413,206,0,1264,1265,3,441,220,0,1265,212,1,0,0,0,1266,1267,3,429,214,0,1267,1268,3,421,210,0,1268,1269,3,431,215,0,1269,214,1,0,0,0,1270,1271,3,429,214,0,1271,1272,3,421,210,0,1272,1273,3,431,215,0,1273,1274,3,445,222,0,1274,1275,3,443,221,0,1275,1276,3,413,206,0,1276,216,1,0,0,0,1277,1278,3,429,214,0,1278,1279,3,433,216,0,1279,1280,3,411,205,0,1280,1281,3,421,210,0,1281,1282,3,415,207,0,1282,1283,3,453,226,0,1283,218,1,0,0,0,1284,1285,3,429,214,0,1285,1286,3,433,216,0,1286,1287,3,431,215,0,1287,1288,3,443,221,0,1288,1289,3,419,209,0,1289,220,1,0,0,0,1290,1291,3,429,214,0,1291,1292,3,433,216,0,1292,1293,3,447,223,0,1293,1294,3,413,206,0,1294,222,1,0,0,0,1295,1296,3,429,214,0,1296,1297,3,445,222,0,1297,1298,3,443,221,0,1298,1299,3,405,202,0,1299,1300,3,443,221,0,1300,1301,3,421,210,0,1301,1302,3,433,216,0,1302,1303,3,431,215,0,1303,224,1,0,0,0,1304,1305,3,431,215,0,1305,1306,3,405,202,0,1306,1307,3,431,215,0,1307,226,1,0,0,0,1308,1309,3,431,215,0,1309,1310,3,433,216,0,1310,228,1,0,0,0,1311,1312,3,431,215,0,1312,1313,3,433,216,0,1313,1314,3,443,221,0,1314,230,1,0,0,0,1315,1316,3,431,215,0,1316,1317,3,445,222,0,1317,1318,3,427,213,0,1318,1319,3,427,213,0,1319,232,1,0,0,0,1320,1321,3,431,215,0,1321,1322,3,445,222,0,1322,1323,3,427,213,0,1323,1324,3,427,213,0,1324,1325,3,441,220,0,1325,234,1,0,0,0,1326,1327,3,433,216,0,1327,1328,3,415,207,0,1328,1329,3,415,207,0,1329,1330,3,441,220,0,1330,1331,3,413,206,0,1331,1332,3,443,221,0,1332,236,1,0,0,0,1333,1334,3,433,216,0,1334,1335,3,431,215,0,1335,238,1,0,0,0,1336,1337,3,433,216,0,1337,1338,3,435,217,0,1338,1339,3,443,221,0,1339,1340,3,421,210,0,1340,1341,3,429,214,0,1341,1342,3,421,210,0,1342,1343,3,455,227,0,1343,1344,3,413,206,0,1344,240,1,0,0,0,1345,1346,3,433,216,0,1346,1347,3,439,219,0,1347,242,1,0,0,0,1348,1349,3,433,216,0,1349,1350,3,439,219,0,1350,1351,3,411,205,0,1351,1352,3,413,206,0,1352,1353,3,439,219,0,1353,244,1,0,0,0,1354,1355,3,433,216,0,1355,1356,3,445,222,0,1356,1357,3,443,221,0,1357,1358,3,413,206,0,1358,1359,3,439,219,0,1359,246,1,0,0,0,1360,1361,3,433,216,0,1361,1362,3,445,222,0,1362,1363,3,443,221,0,1363,1364,3,415,207,0,1364,1365,3,421,210,0,1365,1366,3,427,213,0,1366,1367,3,413,206,0,1367,248,1,0,0,0,1368,1369,3,433,216,0,1369,1370,3,447,223,0,1370,1371,3,413,206,0,1371,1372,3,439,219,0,1372,250,1,0,0,0,1373,1374,3,435,217,0,1374,1375,3,405,202,0,1375,1376,3,439,219,0,1376,1377,3,443,221,0,1377,1378,3,421,210,0,1378,1379,3,443,221,0,1379,1380,3,421,210,0,1380,1381,3,433,216,0,1381,1382,3,431,215,0,1382,252,1,0,0,0,1383,1384,3,435,217,0,1384,1385,3,421,210,0,1385,1386,3,435,217,0,1386,1387,3,413,206,0,1387,1388,3,427,213,0,1388,1389,3,421,210,0,1389,1390,3,431,215,0,1390,1391,3,413,206,0,1391,254,1,0,0,0,1392,1393,3,435,217,0,1393,1394,3,427,213,0,1394,1395,3,405,202,0,1395,1396,3,431,215,0,1396,256,1,0,0,0,1397,1398,3,435,217,0,1398,1399,3,433,216,0,1399,1400,3,435,217,0,1400,1401,3,445,222,0,1401,1402,3,427,213,0,1402,1403,3,405,202,0,1403,1404,3,443,221,0,1404,1405,3,413,206,0,1405,258,1,0,0,0,1406,1407,3,435,217,0,1407,1408,3,439,219,0,1408,1409,3,413,206,0,1409,1410,3,409,204,0,1410,1411,3,413,206,0,1411,1412,3,411,205,0,1412,1413,3,421,210,0,1413,1414,3,431,215,0,1414,1415,3,417,208,0,1415,260,1,0,0,0,1416,1417,3,435,217,0,1417,1418,3,439,219,0,1418,1419,3,413,206,0,1419,1420,3,449,224,0,1420,1421,3,419,209,0,1421,1422,3,413,206,0,1422,1423,3,439,219,0,1423,1424,3,413,206,0,1424,262,1,0,0,0,1425,1426,3,435,217,0,1426,1427,3,439,219,0,1427,1428,3,421,210,0,1428,1429,3,429,214,0,1429,1430,3,405,202,0,1430,1431,3,439,219,0,1431,1432,3,453,226,0,1432,264,1,0,0,0,1433,1434,3,435,217,0,1434,1435,3,439,219,0,1435,1436,3,433,216,0,1436,1437,3,423,211,0,1437,1438,3,413,206,0,1438,1439,3,409,204,0,1439,1440,3,443,221,0,1440,1441,3,421,210,0,1441,1442,3,433,216,0,1442,1443,3,431,215,0,1443,266,1,0,0,0,1444,1445,3,437,218,0,1445,1446,3,445,222,0,1446,1447,3,405,202,0,1447,1448,3,439,219,0,1448,1449,3,443,221,0,1449,1450,3,413,206,0,1450,1451,3,439,219,0,1451,268,1,0,0,0,1452,1453,3,437,218,0,1453,1454,3,445,222,0,1454,1455,3,413,206,0,1455,1456,3,439,219,0,1456,1457,3,453,226,0,1457,270,1,0,0,0,1458,1459,3,439,219,0,1459,1460,3,405,202,0,1460,1461,3,431,215,0,1461,1462,3,417,208,0,1462,1463,3,413,206,0,1463,272,1,0,0,0,1464,1465,3,439,219,0,1465,1466,3,413,206,0,1466,1467,3,427,213,0,1467,1468,3,433,216,0,1468,1469,3,405,202,0,1469,1470,3,411,205,0,1470,274,1,0,0,0,1471,1472,3,439,219,0,1472,1473,3,413,206,0,1473,1474,3,429,214,0,1474,1475,3,433,216,0,1475,1476,3,447,223,0,1476,1477,3,413,206,0,1477,276,1,0,0,0,1478,1479,3,439,219,0,1479,1480,3,413,206,0,1480,1481,3,431,215,0,1481,1482,3,405,202,0,1482,1483,3,429,214,0,1483,1484,3,413,206,0,1484,278,1,0,0,0,1485,1486,3,439,219,0,1486,1487,3,413,206,0,1487,1488,3,435,217,0,1488,1489,3,427,213,0,1489,1490,3,405,202,0,1490,1491,3,409,204,0,1491,1492,3,413,206,0,1492,280,1,0,0,0,1493,1494,3,439,219,0,1494,1495,3,413,206,0,1495,1496,3,435,217,0,1496,1497,3,427,213,0,1497,1498,3,421,210,0,1498,1499,3,409,204,0,1499,1500,3,405,202,0,1500,282,1,0,0,0,1501,1502,3,439,219,0,1502,1503,3,413,206,0,1503,1504,3,435,217,0,1504,1505,3,427,213,0,1505,1506,3,421,210,0,1506,1507,3,409,204,0,1507,1508,3,405,202,0,1508,1509,3,443,221,0,1509,1510,3,413,206,0,1510,1511,3,411,205,0,1511,284,1,0,0,0,1512,1513,3,439,219,0,1513,1514,3,421,210,0,1514,1515,3,417,208,0,1515,1516,3,419,209,0,1516,1517,3,443,221,0,1517,286,1,0,0,0,1518,1519,3,439,219,0,1519,1520,3,433,216,0,1520,1521,3,427,213,0,1521,1522,3,427,213,0,1522,1523,3,445,222,0,1523,1524,3,435,217,0,1524,288,1,0,0,0,1525,1526,3,439,219,0,1526,1527,3,433,216,0,1527,1528,3,449,224,0,1528,290,1,0,0,0,1529,1530,3,439,219,0,1530,1531,3,433,216,0,1531,1532,3,449,224,0,1532,1533,3,441,220,0,1533,292,1,0,0,0,1534,1535,3,441,220,0,1535,1536,3,405,202,0,1536,1537,3,429,214,0,1537,1538,3,435,217,0,1538,1539,3,427,213,0,1539,1540,3,413,206,0,1540,294,1,0,0,0,1541,1542,3,441,220,0,1542,1543,3,413,206,0,1543,1544,3,409,204,0,1544,1545,3,433,216,0,1545,1546,3,431,215,0,1546,1547,3,411,205,0,1547,296,1,0,0,0,1548,1549,3,441,220,0,1549,1550,3,413,206,0,1550,1551,3,427,213,0,1551,1552,3,413,206,0,1552,1553,3,409,204,0,1553,1554,3,443,221,0,1554,298,1,0,0,0,1555,1556,3,441,220,0,1556,1557,3,413,206,0,1557,1558,3,429,214,0,1558,1559,3,421,210,0,1559,300,1,0,0,0,1560,1561,3,441,220,0,1561,1562,3,413,206,0,1562,1563,3,431,215,0,1563,1564,3,411,205,0,1564,1565,3,441,220,0,1565,302,1,0,0,0,1566,1567,3,441,220,0,1567,1568,3,413,206,0,1568,1569,3,443,221,0,1569,304,1,0,0,0,1570,1571,3,441,220,0,1571,1572,3,413,206,0,1572,1573,3,443,221,0,1573,1574,3,443,221,0,1574,1575,3,421,210,0,1575,1576,3,431,215,0,1576,1577,3,417,208,0,1577,1578,3,441,220,0,1578,306,1,0,0,0,1579,1580,3,441,220,0,1580,1581,3,419,209,0,1581,1582,3,433,216,0,1582,1583,3,449,224,0,1583,308,1,0,0,0,1584,1585,3,441,220,0,1585,1586,3,433,216,0,1586,1587,3,445,222,0,1587,1588,3,439,219,0,1588,1589,3,409,204,0,1589,1590,3,413,206,0,1590,310,1,0,0,0,1591,1592,3,441,220,0,1592,1593,3,443,221,0,1593,1594,3,405,202,0,1594,1595,3,439,219,0,1595,1596,3,443,221,0,1596,312,1,0,0,0,1597,1598,3,441,220,0,1598,1599,3,443,221,0,1599,1600,3,433,216,0,1600,1601,3,435,217,0,1601,314,1,0,0,0,1602,1603,3,441,220,0,1603,1604,3,445,222,0,1604,1605,3,407,203,0,1605,1606,3,441,220,0,1606,1607,3,443,221,0,1607,1608,3,439,219,0,1608,1609,3,421,210,0,1609,1610,3,431,215,0,1610,1611,3,417,208,0,1611,316,1,0,0,0,1612,1613,3,441,220,0,1613,1614,3,453,226,0,1614,1615,3,431,215,0,1615,1616,3,409,204,0,1616,318,1,0,0,0,1617,1618,3,441,220,0,1618,1619,3,453,226,0,1619,1620,3,431,215,0,1620,1621,3,443,221,0,1621,1622,3,405,202,0,1622,1623,3,451,225,0,1623,320,1,0,0,0,1624,1625,3,441,220,0,1625,1626,3,453,226,0,1626,1627,3,441,220,0,1627,1628,3,443,221,0,1628,1629,3,413,206,0,1629,1630,3,429,214,0,1630,322,1,0,0,0,1631,1632,3,443,221,0,1632,1633,3,405,202,0,1633,1634,3,407,203,0,1634,1635,3,427,213,0,1635,1636,3,413,206,0,1636,324,1,0,0,0,1637,1638,3,443,221,0,1638,1639,3,405,202,0,1639,1640,3,407,203,0,1640,1641,3,427,213,0,1641,1642,3,413,206,0,1642,1643,3,441,220,0,1643,326,1,0,0,0,1644,1645,3,443,221,0,1645,1646,3,413,206,0,1646,1647,3,429,214,0,1647,1648,3,435,217,0,1648,1649,3,433,216,0,1649,1650,3,439,219,0,1650,1651,3,405,202,0,1651,1652,3,439,219,0,1652,1653,3,453,226,0,1653,328,1,0,0,0,1654,1655,3,443,221,0,1655,1656,3,413,206,0,1656,1657,3,441,220,0,1657,1658,3,443,221,0,1658,330,1,0,0,0,1659,1660,3,443,221,0,1660,1661,3,419,209,0,1661,1662,3,413,206,0,1662,1663,3,431,215,0,1663,332,1,0,0,0,1664,1665,3,443,221,0,1665,1666,3,421,210,0,1666,1667,3,413,206,0,1667,1668,3,441,220,0,1668,334,1,0,0,0,1669,1670,3,443,221,0,1670,1671,3,421,210,0,1671,1672,3,429,214,0,1672,1673,3,413,206,0,1673,1674,3,433,216,0,1674,1675,3,445,222,0,1675,1676,3,443,221,0,1676,336,1,0,0,0,1677,1678,3,443,221,0,1678,1679,3,421,210,0,1679,1680,3,429,214,0,1680,1681,3,413,206,0,1681,1682,3,441,220,0,1682,1683,3,443,221,0,1683,1684,3,405,202,0,1684,1685,3,429,214,0,1685,1686,3,435,217,0,1686,338,1,0,0,0,1687,1688,3,443,221,0,1688,1689,3,433,216,0,1689,340,1,0,0,0,1690,1691,3,443,221,0,1691,1692,3,433,216,0,1692,1693,3,435,217,0,1693,342,1,0,0,0,1694,1695,3,443,221,0,1695,1696,3,433,216,0,1696,1697,3,443,221,0,1697,1698,3,405,202,0,1698,1699,3,427,213,0,1699,1700,3,441,220,0,1700,344,1,0,0,0,1701,1702,3,443,221,0,1702,1703,3,439,219,0,1703,1704,3,405,202,0,1704,1705,3,421,210,0,1705,1706,3,427,213,0,1706,1707,3,421,210,0,1707,1708,3,431,215,0,1708,1709,3,417,208,0,1709,346,1,0,0,0,1710,1711,3,443,221,0,1711,1712,3,439,219,0,1712,1713,3,421,210,0,1713,1714,3,429,214,0,1714,348,1,0,0,0,1715,1716,3,443,221,0,1716,1717,3,439,219,0,1717,1718,3,413,206,0,1718,1719,3,413,206,0,1719,350,1,0,0,0,1720,1721,3,443,221,0,1721,1722,3,439,219,0,1722,1723,3,445,222,0,1723,1724,3,431,215,0,1724,1725,3,409,204,0,1725,1726,3,405,202,0,1726,1727,3,443,221,0,1727,1728,3,413,206,0,1728,352,1,0,0,0,1729,1730,3,443,221,0,1730,1731,3,443,221,0,1731,1732,3,427,213,0,1732,354,1,0,0,0,1733,1734,3,443,221,0,1734,1735,3,453,226,0,1735,1736,3,435,217,0,1736,1737,3,413,206,0,1737,356,1,0,0,0,1738,1739,3,445,222,0,1739,1740,3,431,215,0,1740,1741,3,407,203,0,1741,1742,3,433,216,0,1742,1743,3,445,222,0,1743,1744,3,431,215,0,1744,1745,3,411,205,0,1745,1746,3,413,206,0,1746,1747,3,411,205,0,1747,358,1,0,0,0,1748,1749,3,445,222,0,1749,1750,3,431,215,0,1750,1751,3,421,210,0,1751,1752,3,433,216,0,1752,1753,3,431,215,0,1753,360,1,0,0,0,1754,1755,3,445,222,0,1755,1756,3,435,217,0,1756,1757,3,411,205,0,1757,1758,3,405,202,0,1758,1759,3,443,221,0,1759,1760,3,413,206,0,1760,362,1,0,0,0,1761,1762,3,445,222,0,1762,1763,3,441,220,0,1763,1764,3,413,206,0,1764,364,1,0,0,0,1765,1766,3,445,222,0,1766,1767,3,441,220,0,1767,1768,3,421,210,0,1768,1769,3,431,215,0,1769,1770,3,417,208,0,1770,366,1,0,0,0,1771,1772,3,445,222,0,1772,1773,3,445,222,0,1773,1774,3,421,210,0,1774,1775,3,411,205,0,1775,368,1,0,0,0,1776,1777,3,447,223,0,1777,1778,3,405,202,0,1778,1779,3,427,213,0,1779,1780,3,445,222,0,1780,1781,3,413,206,0,1781,1782,3,441,220,0,1782,370,1,0,0,0,1783,1784,3,447,223,0,1784,1785,3,421,210,0,1785,1786,3,413,206,0,1786,1787,3,449,224,0,1787,372,1,0,0,0,1788,1789,3,447,223,0,1789,1790,3,433,216,0,1790,1791,3,427,213,0,1791,1792,3,445,222,0,1792,1793,3,429,214,0,1793,1794,3,413,206,0,1794,374,1,0,0,0,1795,1796,3,449,224,0,1796,1797,3,405,202,0,1797,1798,3,443,221,0,1798,1799,3,409,204,0,1799,1800,3,419,209,0,1800,376,1,0,0,0,1801,1802,3,449,224,0,1802,1803,3,413,206,0,1803,1804,3,413,206,0,1804,1805,3,425,212,0,1805,378,1,0,0,0,1806,1807,3,449,224,0,1807,1808,3,419,209,0,1808,1809,3,413,206,0,1809,1810,3,431,215,0,1810,380,1,0,0,0,1811,1812,3,449,224,0,1812,1813,3,419,209,0,1813,1814,3,413,206,0,1814,1815,3,439,219,0,1815,1816,3,413,206,0,1816,382,1,0,0,0,1817,1818,3,449,224,0,1818,1819,3,421,210,0,1819,1820,3,431,215,0,1820,1821,3,411,205,0,1821,1822,3,433,216,0,1822,1823,3,449,224,0,1823,384,1,0,0,0,1824,1825,3,449,224,0,1825,1826,3,421,210,0,1826,1827,3,443,221,0,1827,1828,3,419,209,0,1828,386,1,0,0,0,1829,1830,3,453,226,0,1830,1831,3,413,206,0,1831,1832,3,405,202,0,1832,1833,3,439,219,0,1833,1840,1,0,0,0,1834,1835,3,453,226,0,1835,1836,3,453,226,0,1836,1837,3,453,226,0,1837,1838,3,453,226,0,1838,1840,1,0,0,0,1839,1829,1,0,0,0,1839,1834,1,0,0,0,1840,388,1,0,0,0,1841,1842,5,102,0,0,1842,1843,5,97,0,0,1843,1844,5,108,0,0,1844,1845,5,115,0,0,1845,1846,5,101,0,0,1846,390,1,0,0,0,1847,1848,5,116,0,0,1848,1849,5,114,0,0,1849,1850,5,117,0,0,1850,1851,5,101,0,0,1851,392,1,0,0,0,1852,1855,3,457,228,0,1853,1855,3,523,261,0,1854,1852,1,0,0,0,1854,1853,1,0,0,0,1855,1861,1,0,0,0,1856,1860,3,457,228,0,1857,1860,3,523,261,0,1858,1860,3,461,230,0,1859,1856,1,0,0,0,1859,1857,1,0,0,0,1859,1858,1,0,0,0,1860,1863,1,0,0,0,1861,1859,1,0,0,0,1861,1862,1,0,0,0,1862,1895,1,0,0,0,1863,1861,1,0,0,0,1864,1874,3,469,234,0,1865,1873,8,0,0,0,1866,1867,3,471,235,0,1867,1868,9,0,0,0,1868,1873,1,0,0,0,1869,1870,3,469,234,0,1870,1871,3,469,234,0,1871,1873,1,0,0,0,1872,1865,1,0,0,0,1872,1866,1,0,0,0,1872,1869,1,0,0,0,1873,1876,1,0,0,0,1874,1872,1,0,0,0,1874,1875,1,0,0,0,1875,1877,1,0,0,0,1876,1874,1,0,0,0,1877,1878,3,469,234,0,1878,1895,1,0,0,0,1879,1889,3,509,254,0,1880,1888,8,1,0,0,1881,1882,3,471,235,0,1882,1883,9,0,0,0,1883,1888,1,0,0,0,1884,1885,3,509,254,0,1885,1886,3,509,254,0,1886,1888,1,0,0,0,1887,1880,1,0,0,0,1887,1881,1,0,0,0,1887,1884,1,0,0,0,1888,1891,1,0,0,0,1889,1887,1,0,0,0,1889,1890,1,0,0,0,1890,1892,1,0,0,0,1891,1889,1,0,0,0,1892,1893,3,509,254,0,1893,1895,1,0,0,0,1894,1854,1,0,0,0,1894,1864,1,0,0,0,1894,1879,1,0,0,0,1895,394,1,0,0,0,1896,1897,3,401,200,0,1897,1901,3,481,240,0,1898,1900,3,463,231,0,1899,1898,1,0,0,0,1900,1903,1,0,0,0,1901,1899,1,0,0,0,1901,1902,1,0,0,0,1902,1906,1,0,0,0,1903,1901,1,0,0,0,1904,1907,3,435,217,0,1905,1907,3,413,206,0,1906,1904,1,0,0,0,1906,1905,1,0,0,0,1907,1910,1,0,0,0,1908,1911,3,505,252,0,1909,1911,3,479,239,0,1910,1908,1,0,0,0,1910,1909,1,0,0,0,1910,1911,1,0,0,0,1911,1913,1,0,0,0,1912,1914,3,461,230,0,1913,1912,1,0,0,0,1914,1915,1,0,0,0,1915,1913,1,0,0,0,1915,1916,1,0,0,0,1916,1973,1,0,0,0,1917,1920,3,401,200,0,1918,1921,3,435,217,0,1919,1921,3,413,206,0,1920,1918,1,0,0,0,1920,1919,1,0,0,0,1921,1924,1,0,0,0,1922,1925,3,505,252,0,1923,1925,3,479,239,0,1924,1922,1,0,0,0,1924,1923,1,0,0,0,1924,1925,1,0,0,0,1925,1927,1,0,0,0,1926,1928,3,461,230,0,1927,1926,1,0,0,0,1928,1929,1,0,0,0,1929,1927,1,0,0,0,1929,1930,1,0,0,0,1930,1973,1,0,0,0,1931,1932,3,399,199,0,1932,1936,3,481,240,0,1933,1935,3,461,230,0,1934,1933,1,0,0,0,1935,1938,1,0,0,0,1936,1934,1,0,0,0,1936,1937,1,0,0,0,1937,1939,1,0,0,0,1938,1936,1,0,0,0,1939,1942,3,413,206,0,1940,1943,3,505,252,0,1941,1943,3,479,239,0,1942,1940,1,0,0,0,1942,1941,1,0,0,0,1942,1943,1,0,0,0,1943,1945,1,0,0,0,1944,1946,3,461,230,0,1945,1944,1,0,0,0,1946,1947,1,0,0,0,1947,1945,1,0,0,0,1947,1948,1,0,0,0,1948,1973,1,0,0,0,1949,1950,3,481,240,0,1950,1951,3,399,199,0,1951,1954,3,413,206,0,1952,1955,3,505,252,0,1953,1955,3,479,239,0,1954,1952,1,0,0,0,1954,1953,1,0,0,0,1954,1955,1,0,0,0,1955,1957,1,0,0,0,1956,1958,3,461,230,0,1957,1956,1,0,0,0,1958,1959,1,0,0,0,1959,1957,1,0,0,0,1959,1960,1,0,0,0,1960,1973,1,0,0,0,1961,1962,3,399,199,0,1962,1965,3,413,206,0,1963,1966,3,505,252,0,1964,1966,3,479,239,0,1965,1963,1,0,0,0,1965,1964,1,0,0,0,1965,1966,1,0,0,0,1966,1968,1,0,0,0,1967,1969,3,461,230,0,1968,1967,1,0,0,0,1969,1970,1,0,0,0,1970,1968,1,0,0,0,1970,1971,1,0,0,0,1971,1973,1,0,0,0,1972,1896,1,0,0,0,1972,1917,1,0,0,0,1972,1931,1,0,0,0,1972,1949,1,0,0,0,1972,1961,1,0,0,0,1973,396,1,0,0,0,1974,1976,5,48,0,0,1975,1977,3,459,229,0,1976,1975,1,0,0,0,1977,1978,1,0,0,0,1978,1976,1,0,0,0,1978,1979,1,0,0,0,1979,398,1,0,0,0,1980,1982,3,461,230,0,1981,1980,1,0,0,0,1982,1983,1,0,0,0,1983,1981,1,0,0,0,1983,1984,1,0,0,0,1984,400,1,0,0,0,1985,1986,5,48,0,0,1986,1988,3,451,225,0,1987,1989,3,463,231,0,1988,1987,1,0,0,0,1989,1990,1,0,0,0,1990,1988,1,0,0,0,1990,1991,1,0,0,0,1991,402,1,0,0,0,1992,2002,3,511,255,0,1993,2001,8,2,0,0,1994,1995,3,471,235,0,1995,1996,9,0,0,0,1996,2001,1,0,0,0,1997,1998,3,511,255,0,1998,1999,3,511,255,0,1999,2001,1,0,0,0,2e3,1993,1,0,0,0,2e3,1994,1,0,0,0,2e3,1997,1,0,0,0,2001,2004,1,0,0,0,2002,2e3,1,0,0,0,2002,2003,1,0,0,0,2003,2005,1,0,0,0,2004,2002,1,0,0,0,2005,2006,3,511,255,0,2006,404,1,0,0,0,2007,2008,7,3,0,0,2008,406,1,0,0,0,2009,2010,7,4,0,0,2010,408,1,0,0,0,2011,2012,7,5,0,0,2012,410,1,0,0,0,2013,2014,7,6,0,0,2014,412,1,0,0,0,2015,2016,7,7,0,0,2016,414,1,0,0,0,2017,2018,7,8,0,0,2018,416,1,0,0,0,2019,2020,7,9,0,0,2020,418,1,0,0,0,2021,2022,7,10,0,0,2022,420,1,0,0,0,2023,2024,7,11,0,0,2024,422,1,0,0,0,2025,2026,7,12,0,0,2026,424,1,0,0,0,2027,2028,7,13,0,0,2028,426,1,0,0,0,2029,2030,7,14,0,0,2030,428,1,0,0,0,2031,2032,7,15,0,0,2032,430,1,0,0,0,2033,2034,7,16,0,0,2034,432,1,0,0,0,2035,2036,7,17,0,0,2036,434,1,0,0,0,2037,2038,7,18,0,0,2038,436,1,0,0,0,2039,2040,7,19,0,0,2040,438,1,0,0,0,2041,2042,7,20,0,0,2042,440,1,0,0,0,2043,2044,7,21,0,0,2044,442,1,0,0,0,2045,2046,7,22,0,0,2046,444,1,0,0,0,2047,2048,7,23,0,0,2048,446,1,0,0,0,2049,2050,7,24,0,0,2050,448,1,0,0,0,2051,2052,7,25,0,0,2052,450,1,0,0,0,2053,2054,7,26,0,0,2054,452,1,0,0,0,2055,2056,7,27,0,0,2056,454,1,0,0,0,2057,2058,7,28,0,0,2058,456,1,0,0,0,2059,2060,7,29,0,0,2060,458,1,0,0,0,2061,2062,7,30,0,0,2062,460,1,0,0,0,2063,2064,7,31,0,0,2064,462,1,0,0,0,2065,2066,7,32,0,0,2066,464,1,0,0,0,2067,2068,5,45,0,0,2068,2069,5,62,0,0,2069,466,1,0,0,0,2070,2071,5,42,0,0,2071,468,1,0,0,0,2072,2073,5,96,0,0,2073,470,1,0,0,0,2074,2075,5,92,0,0,2075,472,1,0,0,0,2076,2077,5,58,0,0,2077,474,1,0,0,0,2078,2079,5,44,0,0,2079,476,1,0,0,0,2080,2081,5,124,0,0,2081,2082,5,124,0,0,2082,478,1,0,0,0,2083,2084,5,45,0,0,2084,480,1,0,0,0,2085,2086,5,46,0,0,2086,482,1,0,0,0,2087,2088,5,61,0,0,2088,2089,5,61,0,0,2089,484,1,0,0,0,2090,2091,5,61,0,0,2091,486,1,0,0,0,2092,2093,5,62,0,0,2093,2094,5,61,0,0,2094,488,1,0,0,0,2095,2096,5,62,0,0,2096,490,1,0,0,0,2097,2098,5,123,0,0,2098,492,1,0,0,0,2099,2100,5,91,0,0,2100,494,1,0,0,0,2101,2102,5,60,0,0,2102,2103,5,61,0,0,2103,496,1,0,0,0,2104,2105,5,40,0,0,2105,498,1,0,0,0,2106,2107,5,60,0,0,2107,500,1,0,0,0,2108,2109,5,33,0,0,2109,2113,5,61,0,0,2110,2111,5,60,0,0,2111,2113,5,62,0,0,2112,2108,1,0,0,0,2112,2110,1,0,0,0,2113,502,1,0,0,0,2114,2115,5,37,0,0,2115,504,1,0,0,0,2116,2117,5,43,0,0,2117,506,1,0,0,0,2118,2119,5,63,0,0,2119,508,1,0,0,0,2120,2121,5,34,0,0,2121,510,1,0,0,0,2122,2123,5,39,0,0,2123,512,1,0,0,0,2124,2125,5,125,0,0,2125,514,1,0,0,0,2126,2127,5,93,0,0,2127,516,1,0,0,0,2128,2129,5,41,0,0,2129,518,1,0,0,0,2130,2131,5,59,0,0,2131,520,1,0,0,0,2132,2133,5,47,0,0,2133,522,1,0,0,0,2134,2135,5,95,0,0,2135,524,1,0,0,0,2136,2137,5,47,0,0,2137,2138,5,42,0,0,2138,2142,1,0,0,0,2139,2141,9,0,0,0,2140,2139,1,0,0,0,2141,2144,1,0,0,0,2142,2143,1,0,0,0,2142,2140,1,0,0,0,2143,2145,1,0,0,0,2144,2142,1,0,0,0,2145,2146,5,42,0,0,2146,2147,5,47,0,0,2147,2148,1,0,0,0,2148,2149,6,262,0,0,2149,526,1,0,0,0,2150,2151,5,45,0,0,2151,2152,5,45,0,0,2152,2156,1,0,0,0,2153,2155,8,33,0,0,2154,2153,1,0,0,0,2155,2158,1,0,0,0,2156,2154,1,0,0,0,2156,2157,1,0,0,0,2157,2160,1,0,0,0,2158,2156,1,0,0,0,2159,2161,7,34,0,0,2160,2159,1,0,0,0,2161,2162,1,0,0,0,2162,2163,6,263,0,0,2163,528,1,0,0,0,2164,2165,7,35,0,0,2165,2166,1,0,0,0,2166,2167,6,264,1,0,2167,530,1,0,0,0,36,0,593,1100,1839,1854,1859,1861,1872,1874,1887,1889,1894,1901,1906,1910,1915,1920,1924,1929,1936,1942,1947,1954,1959,1965,1970,1972,1978,1983,1990,2e3,2002,2112,2142,2156,2160,2,6,0,0,0,1,0]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},fp=class t extends we{static{this.ADD=1}static{this.AFTER=2}static{this.ALIAS=3}static{this.ALL=4}static{this.ALTER=5}static{this.AND=6}static{this.ANTI=7}static{this.ANY=8}static{this.ARRAY=9}static{this.AS=10}static{this.ASCENDING=11}static{this.ASOF=12}static{this.AST=13}static{this.ASYNC=14}static{this.ATTACH=15}static{this.BETWEEN=16}static{this.BOTH=17}static{this.BY=18}static{this.CASE=19}static{this.CAST=20}static{this.CHECK=21}static{this.CLEAR=22}static{this.CLUSTER=23}static{this.CODEC=24}static{this.COLLATE=25}static{this.COLUMN=26}static{this.COMMENT=27}static{this.CONSTRAINT=28}static{this.CREATE=29}static{this.CROSS=30}static{this.CUBE=31}static{this.CURRENT=32}static{this.DATABASE=33}static{this.DATABASES=34}static{this.DATE=35}static{this.DAY=36}static{this.DEDUPLICATE=37}static{this.DEFAULT=38}static{this.DELAY=39}static{this.DELETE=40}static{this.DESC=41}static{this.DESCENDING=42}static{this.DESCRIBE=43}static{this.DETACH=44}static{this.DICTIONARIES=45}static{this.DICTIONARY=46}static{this.DISK=47}static{this.DISTINCT=48}static{this.DISTRIBUTED=49}static{this.DROP=50}static{this.ELSE=51}static{this.END=52}static{this.ENGINE=53}static{this.ESTIMATE=54}static{this.EVENTS=55}static{this.EXISTS=56}static{this.EXPLAIN=57}static{this.EXPRESSION=58}static{this.EXTRACT=59}static{this.FETCHES=60}static{this.FINAL=61}static{this.FIRST=62}static{this.FLUSH=63}static{this.FOLLOWING=64}static{this.FOR=65}static{this.FORMAT=66}static{this.FREEZE=67}static{this.FROM=68}static{this.FULL=69}static{this.FUNCTION=70}static{this.GLOBAL=71}static{this.GRANULARITY=72}static{this.GROUP=73}static{this.HAVING=74}static{this.HIERARCHICAL=75}static{this.HOUR=76}static{this.ID=77}static{this.IF=78}static{this.ILIKE=79}static{this.IN=80}static{this.INDEX=81}static{this.INF=82}static{this.INJECTIVE=83}static{this.INNER=84}static{this.INSERT=85}static{this.INTERVAL=86}static{this.INTO=87}static{this.IS=88}static{this.IS_OBJECT_ID=89}static{this.JOIN=90}static{this.KEY=91}static{this.KILL=92}static{this.LAST=93}static{this.LAYOUT=94}static{this.LEADING=95}static{this.LEFT=96}static{this.LIFETIME=97}static{this.LIKE=98}static{this.LIMIT=99}static{this.LIVE=100}static{this.LOCAL=101}static{this.LOGS=102}static{this.MATERIALIZE=103}static{this.MATERIALIZED=104}static{this.MAX=105}static{this.MERGES=106}static{this.MIN=107}static{this.MINUTE=108}static{this.MODIFY=109}static{this.MONTH=110}static{this.MOVE=111}static{this.MUTATION=112}static{this.NAN_SQL=113}static{this.NO=114}static{this.NOT=115}static{this.NULL_SQL=116}static{this.NULLS=117}static{this.OFFSET=118}static{this.ON=119}static{this.OPTIMIZE=120}static{this.OR=121}static{this.ORDER=122}static{this.OUTER=123}static{this.OUTFILE=124}static{this.OVER=125}static{this.PARTITION=126}static{this.PIPELINE=127}static{this.PLAN=128}static{this.POPULATE=129}static{this.PRECEDING=130}static{this.PREWHERE=131}static{this.PRIMARY=132}static{this.PROJECTION=133}static{this.QUARTER=134}static{this.QUERY=135}static{this.RANGE=136}static{this.RELOAD=137}static{this.REMOVE=138}static{this.RENAME=139}static{this.REPLACE=140}static{this.REPLICA=141}static{this.REPLICATED=142}static{this.RIGHT=143}static{this.ROLLUP=144}static{this.ROW=145}static{this.ROWS=146}static{this.SAMPLE=147}static{this.SECOND=148}static{this.SELECT=149}static{this.SEMI=150}static{this.SENDS=151}static{this.SET=152}static{this.SETTINGS=153}static{this.SHOW=154}static{this.SOURCE=155}static{this.START=156}static{this.STOP=157}static{this.SUBSTRING=158}static{this.SYNC=159}static{this.SYNTAX=160}static{this.SYSTEM=161}static{this.TABLE=162}static{this.TABLES=163}static{this.TEMPORARY=164}static{this.TEST=165}static{this.THEN=166}static{this.TIES=167}static{this.TIMEOUT=168}static{this.TIMESTAMP=169}static{this.TO=170}static{this.TOP=171}static{this.TOTALS=172}static{this.TRAILING=173}static{this.TRIM=174}static{this.TREE=175}static{this.TRUNCATE=176}static{this.TTL=177}static{this.TYPE=178}static{this.UNBOUNDED=179}static{this.UNION=180}static{this.UPDATE=181}static{this.USE=182}static{this.USING=183}static{this.UUID=184}static{this.VALUES=185}static{this.VIEW=186}static{this.VOLUME=187}static{this.WATCH=188}static{this.WEEK=189}static{this.WHEN=190}static{this.WHERE=191}static{this.WINDOW=192}static{this.WITH=193}static{this.YEAR=194}static{this.JSON_FALSE=195}static{this.JSON_TRUE=196}static{this.IDENTIFIER=197}static{this.FLOATING_LITERAL=198}static{this.OCTAL_LITERAL=199}static{this.DECIMAL_LITERAL=200}static{this.HEXADECIMAL_LITERAL=201}static{this.STRING_LITERAL=202}static{this.ARROW=203}static{this.ASTERISK=204}static{this.BACKQUOTE=205}static{this.BACKSLASH=206}static{this.COLON=207}static{this.COMMA=208}static{this.CONCAT=209}static{this.DASH=210}static{this.DOT=211}static{this.EQ_DOUBLE=212}static{this.EQ_SINGLE=213}static{this.GE=214}static{this.GT=215}static{this.LBRACE=216}static{this.LBRACKET=217}static{this.LE=218}static{this.LPAREN=219}static{this.LT=220}static{this.NOT_EQ=221}static{this.PERCENT=222}static{this.PLUS=223}static{this.QUESTIONMARK=224}static{this.QUOTE_DOUBLE=225}static{this.QUOTE_SINGLE=226}static{this.RBRACE=227}static{this.RBRACKET=228}static{this.RPAREN=229}static{this.SEMICOLON=230}static{this.SLASH=231}static{this.UNDERSCORE=232}static{this.MULTI_LINE_COMMENT=233}static{this.SINGLE_LINE_COMMENT=234}static{this.WHITESPACE=235}static{this.RULE_root=0}static{this.RULE_statements=1}static{this.RULE_statement=2}static{this.RULE_notInsertStatement=3}static{this.RULE_commonTableExpressionStatement=4}static{this.RULE_namedQuery=5}static{this.RULE_columnAliases=6}static{this.RULE_alterStatement=7}static{this.RULE_alterTableClause=8}static{this.RULE_assignmentExpressionList=9}static{this.RULE_assignmentExpression=10}static{this.RULE_tableColumnPropertyType=11}static{this.RULE_partitionClause=12}static{this.RULE_attachStatement=13}static{this.RULE_checkStatement=14}static{this.RULE_deleteStatement=15}static{this.RULE_createTableStatement=16}static{this.RULE_createDatabaseStatement=17}static{this.RULE_createDictionaryStatement=18}static{this.RULE_createLiveViewStatement=19}static{this.RULE_createMaterializedViewStatement=20}static{this.RULE_createViewStatement=21}static{this.RULE_createStatement=22}static{this.RULE_dictionarySchemaClause=23}static{this.RULE_dictionaryAttributeDefinition=24}static{this.RULE_dictionaryEngineClause=25}static{this.RULE_dictionaryPrimaryKeyClause=26}static{this.RULE_dictionaryArgumentExpression=27}static{this.RULE_sourceClause=28}static{this.RULE_lifetimeClause=29}static{this.RULE_layoutClause=30}static{this.RULE_rangeClause=31}static{this.RULE_dictionarySettingsClause=32}static{this.RULE_clusterClause=33}static{this.RULE_uuidClause=34}static{this.RULE_destinationClause=35}static{this.RULE_subqueryClause=36}static{this.RULE_tableSchemaClause=37}static{this.RULE_engineClause=38}static{this.RULE_partitionByClause=39}static{this.RULE_primaryKeyClause=40}static{this.RULE_sampleByClause=41}static{this.RULE_ttlClause=42}static{this.RULE_engineExpression=43}static{this.RULE_tableElementExpression=44}static{this.RULE_tableColumnDefinition=45}static{this.RULE_tableColumnPropertyExpression=46}static{this.RULE_tableIndexDefinition=47}static{this.RULE_tableProjectionDefinition=48}static{this.RULE_codecExpression=49}static{this.RULE_codecArgExpression=50}static{this.RULE_ttlExpression=51}static{this.RULE_describeStatement=52}static{this.RULE_dropStatement=53}static{this.RULE_existsStatement=54}static{this.RULE_explainStatement=55}static{this.RULE_insertStatement=56}static{this.RULE_columnsClause=57}static{this.RULE_dataClause=58}static{this.RULE_valuesStatement=59}static{this.RULE_killStatement=60}static{this.RULE_optimizeStatement=61}static{this.RULE_renameStatement=62}static{this.RULE_projectionSelectStatement=63}static{this.RULE_selectUnionStatement=64}static{this.RULE_selectStatementWithParentheses=65}static{this.RULE_selectStatement=66}static{this.RULE_withClause=67}static{this.RULE_topClause=68}static{this.RULE_fromClause=69}static{this.RULE_arrayJoinClause=70}static{this.RULE_windowClause=71}static{this.RULE_prewhereClause=72}static{this.RULE_whereClause=73}static{this.RULE_groupByClause=74}static{this.RULE_havingClause=75}static{this.RULE_orderByClause=76}static{this.RULE_projectionOrderByClause=77}static{this.RULE_limitByClause=78}static{this.RULE_limitClause=79}static{this.RULE_settingsClause=80}static{this.RULE_joinExpression=81}static{this.RULE_joinOperator=82}static{this.RULE_joinOperatorCross=83}static{this.RULE_joinConstraintClause=84}static{this.RULE_sampleClause=85}static{this.RULE_limitExpression=86}static{this.RULE_orderExpressionList=87}static{this.RULE_orderExpression=88}static{this.RULE_ratioExpression=89}static{this.RULE_settingExpressionList=90}static{this.RULE_settingExpression=91}static{this.RULE_windowExpression=92}static{this.RULE_windowPartitionByClause=93}static{this.RULE_windowOrderByClause=94}static{this.RULE_windowFrameClause=95}static{this.RULE_windowFrameExtend=96}static{this.RULE_windowFrameBound=97}static{this.RULE_setStatement=98}static{this.RULE_showStatement=99}static{this.RULE_systemStatement=100}static{this.RULE_truncateStatement=101}static{this.RULE_useStatement=102}static{this.RULE_watchStatement=103}static{this.RULE_columnTypeExpression=104}static{this.RULE_columnExpressionList=105}static{this.RULE_columnsExpression=106}static{this.RULE_columnExpression=107}static{this.RULE_columnArgumentList=108}static{this.RULE_columnArgumentExpression=109}static{this.RULE_columnLambdaExpression=110}static{this.RULE_columnIdentifier=111}static{this.RULE_tableExpression=112}static{this.RULE_tableFunctionExpression=113}static{this.RULE_tableIdentifier=114}static{this.RULE_tableArgList=115}static{this.RULE_tableArgExpression=116}static{this.RULE_databaseIdentifier=117}static{this.RULE_floatingLiteral=118}static{this.RULE_numberLiteral=119}static{this.RULE_literal=120}static{this.RULE_interval=121}static{this.RULE_keyword=122}static{this.RULE_keywordForAlias=123}static{this.RULE_alias=124}static{this.RULE_identifier=125}static{this.RULE_identifierOrNull=126}static{this.RULE_enumValue=127}static{this.literalNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"'false'","'true'",null,null,null,null,null,null,"'->'","'*'","'`'","''","':'","','","'||'","'-'","'.'","'=='","'='","'>='","'>'","'{'","'['","'<='","'('","'<'",null,"'%'","'+'","'?'","'\"'","'''","'}'","']'","')'","';'","'/'","'_'"]}static{this.symbolicNames=[null,"ADD","AFTER","ALIAS","ALL","ALTER","AND","ANTI","ANY","ARRAY","AS","ASCENDING","ASOF","AST","ASYNC","ATTACH","BETWEEN","BOTH","BY","CASE","CAST","CHECK","CLEAR","CLUSTER","CODEC","COLLATE","COLUMN","COMMENT","CONSTRAINT","CREATE","CROSS","CUBE","CURRENT","DATABASE","DATABASES","DATE","DAY","DEDUPLICATE","DEFAULT","DELAY","DELETE","DESC","DESCENDING","DESCRIBE","DETACH","DICTIONARIES","DICTIONARY","DISK","DISTINCT","DISTRIBUTED","DROP","ELSE","END","ENGINE","ESTIMATE","EVENTS","EXISTS","EXPLAIN","EXPRESSION","EXTRACT","FETCHES","FINAL","FIRST","FLUSH","FOLLOWING","FOR","FORMAT","FREEZE","FROM","FULL","FUNCTION","GLOBAL","GRANULARITY","GROUP","HAVING","HIERARCHICAL","HOUR","ID","IF","ILIKE","IN","INDEX","INF","INJECTIVE","INNER","INSERT","INTERVAL","INTO","IS","IS_OBJECT_ID","JOIN","KEY","KILL","LAST","LAYOUT","LEADING","LEFT","LIFETIME","LIKE","LIMIT","LIVE","LOCAL","LOGS","MATERIALIZE","MATERIALIZED","MAX","MERGES","MIN","MINUTE","MODIFY","MONTH","MOVE","MUTATION","NAN_SQL","NO","NOT","NULL_SQL","NULLS","OFFSET","ON","OPTIMIZE","OR","ORDER","OUTER","OUTFILE","OVER","PARTITION","PIPELINE","PLAN","POPULATE","PRECEDING","PREWHERE","PRIMARY","PROJECTION","QUARTER","QUERY","RANGE","RELOAD","REMOVE","RENAME","REPLACE","REPLICA","REPLICATED","RIGHT","ROLLUP","ROW","ROWS","SAMPLE","SECOND","SELECT","SEMI","SENDS","SET","SETTINGS","SHOW","SOURCE","START","STOP","SUBSTRING","SYNC","SYNTAX","SYSTEM","TABLE","TABLES","TEMPORARY","TEST","THEN","TIES","TIMEOUT","TIMESTAMP","TO","TOP","TOTALS","TRAILING","TRIM","TREE","TRUNCATE","TTL","TYPE","UNBOUNDED","UNION","UPDATE","USE","USING","UUID","VALUES","VIEW","VOLUME","WATCH","WEEK","WHEN","WHERE","WINDOW","WITH","YEAR","JSON_FALSE","JSON_TRUE","IDENTIFIER","FLOATING_LITERAL","OCTAL_LITERAL","DECIMAL_LITERAL","HEXADECIMAL_LITERAL","STRING_LITERAL","ARROW","ASTERISK","BACKQUOTE","BACKSLASH","COLON","COMMA","CONCAT","DASH","DOT","EQ_DOUBLE","EQ_SINGLE","GE","GT","LBRACE","LBRACKET","LE","LPAREN","LT","NOT_EQ","PERCENT","PLUS","QUESTIONMARK","QUOTE_DOUBLE","QUOTE_SINGLE","RBRACE","RBRACKET","RPAREN","SEMICOLON","SLASH","UNDERSCORE","MULTI_LINE_COMMENT","SINGLE_LINE_COMMENT","WHITESPACE"]}static{this.ruleNames=["root","statements","statement","notInsertStatement","commonTableExpressionStatement","namedQuery","columnAliases","alterStatement","alterTableClause","assignmentExpressionList","assignmentExpression","tableColumnPropertyType","partitionClause","attachStatement","checkStatement","deleteStatement","createTableStatement","createDatabaseStatement","createDictionaryStatement","createLiveViewStatement","createMaterializedViewStatement","createViewStatement","createStatement","dictionarySchemaClause","dictionaryAttributeDefinition","dictionaryEngineClause","dictionaryPrimaryKeyClause","dictionaryArgumentExpression","sourceClause","lifetimeClause","layoutClause","rangeClause","dictionarySettingsClause","clusterClause","uuidClause","destinationClause","subqueryClause","tableSchemaClause","engineClause","partitionByClause","primaryKeyClause","sampleByClause","ttlClause","engineExpression","tableElementExpression","tableColumnDefinition","tableColumnPropertyExpression","tableIndexDefinition","tableProjectionDefinition","codecExpression","codecArgExpression","ttlExpression","describeStatement","dropStatement","existsStatement","explainStatement","insertStatement","columnsClause","dataClause","valuesStatement","killStatement","optimizeStatement","renameStatement","projectionSelectStatement","selectUnionStatement","selectStatementWithParentheses","selectStatement","withClause","topClause","fromClause","arrayJoinClause","windowClause","prewhereClause","whereClause","groupByClause","havingClause","orderByClause","projectionOrderByClause","limitByClause","limitClause","settingsClause","joinExpression","joinOperator","joinOperatorCross","joinConstraintClause","sampleClause","limitExpression","orderExpressionList","orderExpression","ratioExpression","settingExpressionList","settingExpression","windowExpression","windowPartitionByClause","windowOrderByClause","windowFrameClause","windowFrameExtend","windowFrameBound","setStatement","showStatement","systemStatement","truncateStatement","useStatement","watchStatement","columnTypeExpression","columnExpressionList","columnsExpression","columnExpression","columnArgumentList","columnArgumentExpression","columnLambdaExpression","columnIdentifier","tableExpression","tableFunctionExpression","tableIdentifier","tableArgList","tableArgExpression","databaseIdentifier","floatingLiteral","numberLiteral","literal","interval","keyword","keywordForAlias","alias","identifier","identifierOrNull","enumValue"]}get grammarFileName(){return"ClickHouseParser.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new Ge(this,t,e)}constructor(e){super(e),this.interpreter=new Re(this,t._ATN,t.decisionsToDFA,new Ae)}root(){let e,s=new Yp(this.context,this.state);this.enterRule(s,0,t.RULE_root);try{this.enterOuterAlt(s,1),this.state=257,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&539000864||!(e-40&-32)&&1<<e-40&197659||85===e||92===e||!(e-120&-32)&&1<<e-120&538443777||!(e-152&-32)&&1<<e-152&1090519557||!(e-188&-32)&&1<<e-188&2147483681)&&(this.state=256,this.statements()),this.state=259,this.match(t.EOF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statements(){let e,s=new wp(this.context,this.state);this.enterRule(s,2,t.RULE_statements);try{switch(this.state=269,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,2,this.context)){case 1:this.enterOuterAlt(s,1),this.state=261,this.statement(),this.state=263,this.errorHandler.sync(this),e=this.tokenStream.LA(1),230===e&&(this.state=262,this.match(t.SEMICOLON));break;case 2:this.enterOuterAlt(s,2),this.state=265,this.statement(),this.state=266,this.match(t.SEMICOLON),this.state=267,this.statements()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}statement(){let e,s=new bp(this.context,this.state);this.enterRule(s,4,t.RULE_statement);try{switch(this.state=285,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.ATTACH:case t.CHECK:case t.CREATE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DROP:case t.EXISTS:case t.EXPLAIN:case t.KILL:case t.OPTIMIZE:case t.RENAME:case t.REPLACE:case t.SELECT:case t.SET:case t.SHOW:case t.SYSTEM:case t.TRUNCATE:case t.USE:case t.WATCH:case t.WITH:case t.LPAREN:if(1===(this.enterOuterAlt(s,1),this.state=271,this.notInsertStatement(),this.state=275,this.errorHandler.sync(this),e=this.tokenStream.LA(1),87===e&&(this.state=272,this.match(t.INTO),this.state=273,this.match(t.OUTFILE),this.state=274,this.match(t.STRING_LITERAL)),this.state=279,this.errorHandler.sync(this),e=this.tokenStream.LA(1),66===e&&(this.state=277,this.match(t.FORMAT),this.state=278,this.identifierOrNull()),this.state=282,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,5,this.context)))this.state=281,this.match(t.SEMICOLON);break;case t.INSERT:this.enterOuterAlt(s,2),this.state=284,this.insertStatement();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}notInsertStatement(){let e=new Wp(this.context,this.state);this.enterRule(e,6,t.RULE_notInsertStatement);try{switch(this.state=310,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,8,this.context)){case 1:this.enterOuterAlt(e,1),this.state=287,this.alterStatement();break;case 2:this.enterOuterAlt(e,2),this.state=288,this.attachStatement();break;case 3:this.enterOuterAlt(e,3),this.state=289,this.checkStatement();break;case 4:this.enterOuterAlt(e,4),this.state=290,this.createStatement();break;case 5:this.enterOuterAlt(e,5),this.state=291,this.describeStatement();break;case 6:this.enterOuterAlt(e,6),this.state=292,this.deleteStatement();break;case 7:this.enterOuterAlt(e,7),this.state=293,this.dropStatement();break;case 8:this.enterOuterAlt(e,8),this.state=294,this.existsStatement();break;case 9:this.enterOuterAlt(e,9),this.state=295,this.explainStatement();break;case 10:this.enterOuterAlt(e,10),this.state=296,this.killStatement();break;case 11:this.enterOuterAlt(e,11),this.state=297,this.optimizeStatement();break;case 12:this.enterOuterAlt(e,12),this.state=298,this.renameStatement();break;case 13:this.enterOuterAlt(e,13),this.state=299,this.selectUnionStatement();break;case 14:this.enterOuterAlt(e,14),this.state=300,this.setStatement();break;case 15:this.enterOuterAlt(e,15),this.state=301,this.showStatement();break;case 16:this.enterOuterAlt(e,16),this.state=302,this.systemStatement();break;case 17:this.enterOuterAlt(e,17),this.state=303,this.truncateStatement();break;case 18:this.enterOuterAlt(e,18),this.state=304,this.useStatement();break;case 19:this.enterOuterAlt(e,19),this.state=305,this.watchStatement();break;case 20:if(this.enterOuterAlt(e,20),1===(this.state=307,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,7,this.context)))this.state=306,this.commonTableExpressionStatement();this.state=309,this.selectStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commonTableExpressionStatement(){let e,s=new Vp(this.context,this.state);this.enterRule(s,8,t.RULE_commonTableExpressionStatement);try{for(this.enterOuterAlt(s,1),this.state=312,this.match(t.WITH),this.state=313,this.namedQuery(),this.state=318,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=314,this.match(t.COMMA),this.state=315,this.namedQuery(),this.state=320,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}namedQuery(){let e,s=new Xp(this.context,this.state);this.enterRule(s,10,t.RULE_namedQuery);try{this.enterOuterAlt(s,1),this.state=321,s._name=this.identifier(),this.state=323,this.errorHandler.sync(this),e=this.tokenStream.LA(1),219===e&&(this.state=322,this.columnAliases()),this.state=325,this.match(t.AS),this.state=326,this.match(t.LPAREN),this.state=327,this.notInsertStatement(),this.state=328,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnAliases(){let e,s=new Kp(this.context,this.state);this.enterRule(s,12,t.RULE_columnAliases);try{for(this.enterOuterAlt(s,1),this.state=330,this.match(t.LPAREN),this.state=331,this.identifier(),this.state=336,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=332,this.match(t.COMMA),this.state=333,this.identifier(),this.state=338,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=339,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterStatement(){let e,s=new Qp(this.context,this.state);this.enterRule(s,14,t.RULE_alterStatement);try{for(s=new Jp(s),this.enterOuterAlt(s,1),this.state=341,this.match(t.ALTER),this.state=342,this.match(t.TABLE),this.state=343,this.tableIdentifier(),this.state=345,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=344,this.clusterClause()),this.state=347,this.alterTableClause(),this.state=352,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=348,this.match(t.COMMA),this.state=349,this.alterTableClause(),this.state=354,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alterTableClause(){let e,s=new Zp(this.context,this.state);this.enterRule(s,16,t.RULE_alterTableClause);try{switch(this.state=569,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,42,this.context)){case 1:if(s=new Pg(s),this.enterOuterAlt(s,1),1===(this.state=355,this.match(t.ADD),this.state=356,this.match(t.COLUMN),this.state=360,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,14,this.context)))this.state=357,this.match(t.IF),this.state=358,this.match(t.NOT),this.state=359,this.match(t.EXISTS);this.state=362,this.tableColumnDefinition(),this.state=365,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=363,this.match(t.AFTER),this.state=364,this.columnIdentifier());break;case 2:if(s=new rg(s),this.enterOuterAlt(s,2),1===(this.state=367,this.match(t.ADD),this.state=368,this.match(t.INDEX),this.state=372,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,16,this.context)))this.state=369,this.match(t.IF),this.state=370,this.match(t.NOT),this.state=371,this.match(t.EXISTS);this.state=374,this.tableIndexDefinition(),this.state=377,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=375,this.match(t.AFTER),this.state=376,this.columnIdentifier());break;case 3:if(s=new _g(s),this.enterOuterAlt(s,3),1===(this.state=379,this.match(t.ADD),this.state=380,this.match(t.PROJECTION),this.state=384,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=381,this.match(t.IF),this.state=382,this.match(t.NOT),this.state=383,this.match(t.EXISTS);this.state=386,this.tableProjectionDefinition(),this.state=389,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=387,this.match(t.AFTER),this.state=388,this.columnIdentifier());break;case 4:s=new Ig(s),this.enterOuterAlt(s,4),this.state=391,this.match(t.ATTACH),this.state=392,this.partitionClause(),this.state=395,this.errorHandler.sync(this),e=this.tokenStream.LA(1),68===e&&(this.state=393,this.match(t.FROM),this.state=394,this.tableIdentifier());break;case 5:if(s=new Rg(s),this.enterOuterAlt(s,5),1===(this.state=397,this.match(t.CLEAR),this.state=398,this.match(t.COLUMN),this.state=401,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=399,this.match(t.IF),this.state=400,this.match(t.EXISTS);this.state=403,this.columnIdentifier(),this.state=406,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=404,this.match(t.IN),this.state=405,this.partitionClause());break;case 6:if(s=new Sg(s),this.enterOuterAlt(s,6),1===(this.state=408,this.match(t.CLEAR),this.state=409,this.match(t.INDEX),this.state=412,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=410,this.match(t.IF),this.state=411,this.match(t.EXISTS);this.state=414,this.columnIdentifier(),this.state=417,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=415,this.match(t.IN),this.state=416,this.partitionClause());break;case 7:if(s=new $p(s),this.enterOuterAlt(s,7),1===(this.state=419,this.match(t.CLEAR),this.state=420,this.match(t.PROJECTION),this.state=423,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)))this.state=421,this.match(t.IF),this.state=422,this.match(t.EXISTS);this.state=425,this.columnIdentifier(),this.state=428,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=426,this.match(t.IN),this.state=427,this.partitionClause());break;case 8:if(s=new sg(s),this.enterOuterAlt(s,8),1===(this.state=430,this.match(t.COMMENT),this.state=431,this.match(t.COLUMN),this.state=434,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=432,this.match(t.IF),this.state=433,this.match(t.EXISTS);this.state=436,this.columnIdentifier(),this.state=437,this.match(t.STRING_LITERAL);break;case 9:s=new eg(s),this.enterOuterAlt(s,9),this.state=439,this.match(t.DELETE),this.state=440,this.match(t.WHERE),this.state=441,this.columnExpression(0);break;case 10:s=new ig(s),this.enterOuterAlt(s,10),this.state=442,this.match(t.DETACH),this.state=443,this.partitionClause();break;case 11:if(s=new ag(s),this.enterOuterAlt(s,11),1===(this.state=444,this.match(t.DROP),this.state=445,this.match(t.COLUMN),this.state=448,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,28,this.context)))this.state=446,this.match(t.IF),this.state=447,this.match(t.EXISTS);this.state=450,this.columnIdentifier();break;case 12:if(s=new Ng(s),this.enterOuterAlt(s,12),1===(this.state=451,this.match(t.DROP),this.state=452,this.match(t.INDEX),this.state=455,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,29,this.context)))this.state=453,this.match(t.IF),this.state=454,this.match(t.EXISTS);this.state=457,this.columnIdentifier();break;case 13:if(s=new ug(s),this.enterOuterAlt(s,13),1===(this.state=458,this.match(t.DROP),this.state=459,this.match(t.PROJECTION),this.state=462,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)))this.state=460,this.match(t.IF),this.state=461,this.match(t.EXISTS);this.state=464,this.columnIdentifier();break;case 14:s=new cg(s),this.enterOuterAlt(s,14),this.state=465,this.match(t.DROP),this.state=466,this.partitionClause();break;case 15:s=new og(s),this.enterOuterAlt(s,15),this.state=467,this.match(t.FREEZE),this.state=469,this.errorHandler.sync(this),e=this.tokenStream.LA(1),126===e&&(this.state=468,this.partitionClause());break;case 16:if(s=new ng(s),this.enterOuterAlt(s,16),1===(this.state=471,this.match(t.MATERIALIZE),this.state=472,this.match(t.INDEX),this.state=475,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)))this.state=473,this.match(t.IF),this.state=474,this.match(t.EXISTS);this.state=477,this.columnIdentifier(),this.state=480,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=478,this.match(t.IN),this.state=479,this.partitionClause());break;case 17:if(s=new hg(s),this.enterOuterAlt(s,17),1===(this.state=482,this.match(t.MATERIALIZE),this.state=483,this.match(t.PROJECTION),this.state=486,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,34,this.context)))this.state=484,this.match(t.IF),this.state=485,this.match(t.EXISTS);this.state=488,this.columnIdentifier(),this.state=491,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=489,this.match(t.IN),this.state=490,this.partitionClause());break;case 18:if(s=new Og(s),this.enterOuterAlt(s,18),1===(this.state=493,this.match(t.MODIFY),this.state=494,this.match(t.COLUMN),this.state=497,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,36,this.context)))this.state=495,this.match(t.IF),this.state=496,this.match(t.EXISTS);this.state=499,this.columnIdentifier(),this.state=500,this.codecExpression();break;case 19:if(s=new Lg(s),this.enterOuterAlt(s,19),1===(this.state=502,this.match(t.MODIFY),this.state=503,this.match(t.COLUMN),this.state=506,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,37,this.context)))this.state=504,this.match(t.IF),this.state=505,this.match(t.EXISTS);this.state=508,this.columnIdentifier(),this.state=509,this.match(t.COMMENT),this.state=510,this.match(t.STRING_LITERAL);break;case 20:if(s=new tg(s),this.enterOuterAlt(s,20),1===(this.state=512,this.match(t.MODIFY),this.state=513,this.match(t.COLUMN),this.state=516,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,38,this.context)))this.state=514,this.match(t.IF),this.state=515,this.match(t.EXISTS);this.state=518,this.columnIdentifier(),this.state=519,this.match(t.REMOVE),this.state=520,this.tableColumnPropertyType();break;case 21:if(s=new Ag(s),this.enterOuterAlt(s,21),1===(this.state=522,this.match(t.MODIFY),this.state=523,this.match(t.COLUMN),this.state=526,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)))this.state=524,this.match(t.IF),this.state=525,this.match(t.EXISTS);this.state=528,this.tableColumnDefinition();break;case 22:s=new jp(s),this.enterOuterAlt(s,22),this.state=529,this.match(t.MODIFY),this.state=530,this.match(t.ORDER),this.state=531,this.match(t.BY),this.state=532,this.columnExpression(0);break;case 23:s=new Cg(s),this.enterOuterAlt(s,23),this.state=533,this.match(t.MODIFY),this.state=534,this.ttlClause();break;case 24:switch(s=new Eg(s),this.enterOuterAlt(s,24),this.state=535,this.match(t.MOVE),this.state=536,this.partitionClause(),this.state=546,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,40,this.context)){case 1:this.state=537,this.match(t.TO),this.state=538,this.match(t.DISK),this.state=539,this.match(t.STRING_LITERAL);break;case 2:this.state=540,this.match(t.TO),this.state=541,this.match(t.VOLUME),this.state=542,this.match(t.STRING_LITERAL);break;case 3:this.state=543,this.match(t.TO),this.state=544,this.match(t.TABLE),this.state=545,this.tableIdentifier()}break;case 25:s=new lg(s),this.enterOuterAlt(s,25),this.state=548,this.match(t.REMOVE),this.state=549,this.match(t.TTL);break;case 26:if(s=new Tg(s),this.enterOuterAlt(s,26),1===(this.state=550,this.match(t.RENAME),this.state=551,this.match(t.COLUMN),this.state=554,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,41,this.context)))this.state=552,this.match(t.IF),this.state=553,this.match(t.EXISTS);this.state=556,this.columnIdentifier(),this.state=557,this.match(t.TO),this.state=558,this.columnIdentifier();break;case 27:s=new qp(s),this.enterOuterAlt(s,27),this.state=560,this.match(t.REPLACE),this.state=561,this.partitionClause(),this.state=562,this.match(t.FROM),this.state=563,this.tableIdentifier();break;case 28:s=new zp(s),this.enterOuterAlt(s,28),this.state=565,this.match(t.UPDATE),this.state=566,this.assignmentExpressionList(),this.state=567,this.whereClause()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}assignmentExpressionList(){let e,s=new Mg(this.context,this.state);this.enterRule(s,18,t.RULE_assignmentExpressionList);try{for(this.enterOuterAlt(s,1),this.state=571,this.assignmentExpression(),this.state=576,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=572,this.match(t.COMMA),this.state=573,this.assignmentExpression(),this.state=578,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}assignmentExpression(){let e=new dg(this.context,this.state);this.enterRule(e,20,t.RULE_assignmentExpression);try{this.enterOuterAlt(e,1),this.state=579,this.columnIdentifier(),this.state=580,this.match(t.EQ_SINGLE),this.state=581,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableColumnPropertyType(){let e,s=new Ug(this.context,this.state);this.enterRule(s,22,t.RULE_tableColumnPropertyType);try{this.enterOuterAlt(s,1),this.state=583,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&150994952||38===e||104===e||177===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}partitionClause(){let e=new mg(this.context,this.state);this.enterRule(e,24,t.RULE_partitionClause);try{switch(this.state=590,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.enterOuterAlt(e,1),this.state=585,this.match(t.PARTITION),this.state=586,this.columnExpression(0);break;case 2:this.enterOuterAlt(e,2),this.state=587,this.match(t.PARTITION),this.state=588,this.match(t.ID),this.state=589,this.match(t.STRING_LITERAL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}attachStatement(){let e,s=new Dg(this.context,this.state);this.enterRule(s,26,t.RULE_attachStatement);try{s=new pg(s),this.enterOuterAlt(s,1),this.state=592,this.match(t.ATTACH),this.state=593,this.match(t.DICTIONARY),this.state=594,this.tableIdentifier(),this.state=596,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=595,this.clusterClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}checkStatement(){let e,s=new gg(this.context,this.state);this.enterRule(s,28,t.RULE_checkStatement);try{this.enterOuterAlt(s,1),this.state=598,this.match(t.CHECK),this.state=599,this.match(t.TABLE),this.state=600,this.tableIdentifier(),this.state=602,this.errorHandler.sync(this),e=this.tokenStream.LA(1),126===e&&(this.state=601,this.partitionClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}deleteStatement(){let e,s=new xg(this.context,this.state);this.enterRule(s,30,t.RULE_deleteStatement);try{this.enterOuterAlt(s,1),this.state=604,this.match(t.DELETE),this.state=605,this.match(t.FROM),this.state=606,this.tableIdentifier(),this.state=608,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=607,this.clusterClause()),this.state=611,this.errorHandler.sync(this),e=this.tokenStream.LA(1),191===e&&(this.state=610,this.whereClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createTableStatement(){let e,s=new kg(this.context,this.state);this.enterRule(s,32,t.RULE_createTableStatement);try{switch(this.enterOuterAlt(s,1),this.state=620,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ATTACH:this.state=613,this.match(t.ATTACH);break;case t.CREATE:this.state=614,this.match(t.CREATE),this.state=617,this.errorHandler.sync(this),e=this.tokenStream.LA(1),121===e&&(this.state=615,this.match(t.OR),this.state=616,this.match(t.REPLACE));break;case t.REPLACE:this.state=619,this.match(t.REPLACE);break;default:throw new he(this)}if(1===(this.state=623,this.errorHandler.sync(this),e=this.tokenStream.LA(1),164===e&&(this.state=622,this.match(t.TEMPORARY)),this.state=625,this.match(t.TABLE),this.state=629,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,52,this.context)))this.state=626,this.match(t.IF),this.state=627,this.match(t.NOT),this.state=628,this.match(t.EXISTS);if(1===(this.state=631,this.tableIdentifier(),this.state=633,this.errorHandler.sync(this),e=this.tokenStream.LA(1),184===e&&(this.state=632,this.uuidClause()),this.state=636,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=635,this.clusterClause()),this.state=639,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,55,this.context)))this.state=638,this.tableSchemaClause();this.state=642,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=641,this.engineClause()),this.state=645,this.errorHandler.sync(this),e=this.tokenStream.LA(1),10===e&&(this.state=644,this.subqueryClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDatabaseStatement(){let e,s=new Hg(this.context,this.state);this.enterRule(s,34,t.RULE_createDatabaseStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=647,e=this.tokenStream.LA(1),15===e||29===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=648,this.match(t.DATABASE),this.state=652,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,58,this.context)))this.state=649,this.match(t.IF),this.state=650,this.match(t.NOT),this.state=651,this.match(t.EXISTS);this.state=654,this.identifier(),this.state=656,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=655,this.clusterClause()),this.state=658,this.engineExpression()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createDictionaryStatement(){let e,s=new Gg(this.context,this.state);this.enterRule(s,36,t.RULE_createDictionaryStatement);try{switch(this.enterOuterAlt(s,1),this.state=667,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ATTACH:this.state=660,this.match(t.ATTACH);break;case t.CREATE:this.state=661,this.match(t.CREATE),this.state=664,this.errorHandler.sync(this),e=this.tokenStream.LA(1),121===e&&(this.state=662,this.match(t.OR),this.state=663,this.match(t.REPLACE));break;case t.REPLACE:this.state=666,this.match(t.REPLACE);break;default:throw new he(this)}if(1===(this.state=669,this.match(t.DICTIONARY),this.state=673,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,62,this.context)))this.state=670,this.match(t.IF),this.state=671,this.match(t.NOT),this.state=672,this.match(t.EXISTS);this.state=675,this.tableIdentifier(),this.state=677,this.errorHandler.sync(this),e=this.tokenStream.LA(1),184===e&&(this.state=676,this.uuidClause()),this.state=680,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=679,this.clusterClause()),this.state=682,this.dictionarySchemaClause(),this.state=683,this.dictionaryEngineClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createLiveViewStatement(){let e,s=new Fg(this.context,this.state);this.enterRule(s,38,t.RULE_createLiveViewStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=685,e=this.tokenStream.LA(1),15===e||29===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=686,this.match(t.LIVE),this.state=687,this.match(t.VIEW),this.state=691,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,65,this.context)))this.state=688,this.match(t.IF),this.state=689,this.match(t.NOT),this.state=690,this.match(t.EXISTS);if(1===(this.state=693,this.tableIdentifier(),this.state=695,this.errorHandler.sync(this),e=this.tokenStream.LA(1),184===e&&(this.state=694,this.uuidClause()),this.state=698,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=697,this.clusterClause()),this.state=705,this.errorHandler.sync(this),e=this.tokenStream.LA(1),193===e&&(this.state=700,this.match(t.WITH),this.state=701,this.match(t.TIMEOUT),this.state=703,this.errorHandler.sync(this),e=this.tokenStream.LA(1),200===e&&(this.state=702,this.match(t.DECIMAL_LITERAL))),this.state=708,this.errorHandler.sync(this),e=this.tokenStream.LA(1),170===e&&(this.state=707,this.destinationClause()),this.state=711,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,71,this.context)))this.state=710,this.tableSchemaClause();this.state=713,this.subqueryClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createMaterializedViewStatement(){let e,s=new vg(this.context,this.state);this.enterRule(s,40,t.RULE_createMaterializedViewStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=715,e=this.tokenStream.LA(1),15===e||29===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=716,this.match(t.MATERIALIZED),this.state=717,this.match(t.VIEW),this.state=721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,72,this.context)))this.state=718,this.match(t.IF),this.state=719,this.match(t.NOT),this.state=720,this.match(t.EXISTS);switch(this.state=723,this.tableIdentifier(),this.state=725,this.errorHandler.sync(this),e=this.tokenStream.LA(1),184===e&&(this.state=724,this.uuidClause()),this.state=728,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=727,this.clusterClause()),this.state=731,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(10===e||219===e)&&(this.state=730,this.tableSchemaClause()),this.state=738,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TO:this.state=733,this.destinationClause();break;case t.ENGINE:this.state=734,this.engineClause(),this.state=736,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=735,this.match(t.POPULATE));break;default:throw new he(this)}this.state=740,this.subqueryClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createViewStatement(){let e,s=new Bg(this.context,this.state);this.enterRule(s,42,t.RULE_createViewStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=742,e=this.tokenStream.LA(1),15===e||29===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=745,this.errorHandler.sync(this),e=this.tokenStream.LA(1),121===e&&(this.state=743,this.match(t.OR),this.state=744,this.match(t.REPLACE)),this.state=747,this.match(t.VIEW),this.state=751,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,79,this.context)))this.state=748,this.match(t.IF),this.state=749,this.match(t.NOT),this.state=750,this.match(t.EXISTS);if(1===(this.state=753,this.tableIdentifier(),this.state=755,this.errorHandler.sync(this),e=this.tokenStream.LA(1),184===e&&(this.state=754,this.uuidClause()),this.state=758,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=757,this.clusterClause()),this.state=761,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=760,this.tableSchemaClause();this.state=763,this.subqueryClause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}createStatement(){let e=new yg(this.context,this.state);this.enterRule(e,44,t.RULE_createStatement);try{switch(this.state=771,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,83,this.context)){case 1:this.enterOuterAlt(e,1),this.state=765,this.createDatabaseStatement();break;case 2:this.enterOuterAlt(e,2),this.state=766,this.createDictionaryStatement();break;case 3:this.enterOuterAlt(e,3),this.state=767,this.createLiveViewStatement();break;case 4:this.enterOuterAlt(e,4),this.state=768,this.createMaterializedViewStatement();break;case 5:this.enterOuterAlt(e,5),this.state=769,this.createTableStatement();break;case 6:this.enterOuterAlt(e,6),this.state=770,this.createViewStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dictionarySchemaClause(){let e,s=new fg(this.context,this.state);this.enterRule(s,46,t.RULE_dictionarySchemaClause);try{for(this.enterOuterAlt(s,1),this.state=773,this.match(t.LPAREN),this.state=774,this.dictionaryAttributeDefinition(),this.state=779,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=775,this.match(t.COMMA),this.state=776,this.dictionaryAttributeDefinition(),this.state=781,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=782,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dictionaryAttributeDefinition(){let e=new Yg(this.context,this.state);this.enterRule(e,48,t.RULE_dictionaryAttributeDefinition);try{let s;for(this.enterOuterAlt(e,1),this.state=784,this.identifier(),this.state=785,this.columnTypeExpression(),this.state=807,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;){if(1===s)switch(this.state=805,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,85,this.context)){case 1:if(this.state=786,e.attrs.has("default"))throw this.createFailedPredicateException('!$attrs.has("default")');this.state=787,this.match(t.DEFAULT),this.state=788,this.literal(),e.attrs.add("default");break;case 2:if(this.state=791,e.attrs.has("expression"))throw this.createFailedPredicateException('!$attrs.has("expression")');this.state=792,this.match(t.EXPRESSION),this.state=793,this.columnExpression(0),e.attrs.add("expression");break;case 3:if(this.state=796,e.attrs.has("hierarchical"))throw this.createFailedPredicateException('!$attrs.has("hierarchical")');this.state=797,this.match(t.HIERARCHICAL),e.attrs.add("hierarchical");break;case 4:if(this.state=799,e.attrs.has("injective"))throw this.createFailedPredicateException('!$attrs.has("injective")');this.state=800,this.match(t.INJECTIVE),e.attrs.add("injective");break;case 5:if(this.state=802,e.attrs.has("is_object_id"))throw this.createFailedPredicateException('!$attrs.has("is_object_id")');this.state=803,this.match(t.IS_OBJECT_ID),e.attrs.add("is_object_id")}this.state=809,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dictionaryEngineClause(){let e=new wg(this.context,this.state);this.enterRule(e,50,t.RULE_dictionaryEngineClause);try{let t;if(this.enterOuterAlt(e,1),1===(this.state=811,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,87,this.context)))this.state=810,this.dictionaryPrimaryKeyClause();for(this.state=835,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,89,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;){if(1===t)switch(this.state=833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,88,this.context)){case 1:if(this.state=813,e.clauses.has("source"))throw this.createFailedPredicateException('!$clauses.has("source")');this.state=814,this.sourceClause(),e.clauses.add("source");break;case 2:if(this.state=817,e.clauses.has("lifetime"))throw this.createFailedPredicateException('!$clauses.has("lifetime")');this.state=818,this.lifetimeClause(),e.clauses.add("lifetime");break;case 3:if(this.state=821,e.clauses.has("layout"))throw this.createFailedPredicateException('!$clauses.has("layout")');this.state=822,this.layoutClause(),e.clauses.add("layout");break;case 4:if(this.state=825,e.clauses.has("range"))throw this.createFailedPredicateException('!$clauses.has("range")');this.state=826,this.rangeClause(),e.clauses.add("range");break;case 5:if(this.state=829,e.clauses.has("settings"))throw this.createFailedPredicateException('!$clauses.has("settings")');this.state=830,this.dictionarySettingsClause(),e.clauses.add("settings")}this.state=837,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,89,this.context)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dictionaryPrimaryKeyClause(){let e=new bg(this.context,this.state);this.enterRule(e,52,t.RULE_dictionaryPrimaryKeyClause);try{this.enterOuterAlt(e,1),this.state=838,this.match(t.PRIMARY),this.state=839,this.match(t.KEY),this.state=840,this.columnExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dictionaryArgumentExpression(){let e,s=new Wg(this.context,this.state);this.enterRule(s,54,t.RULE_dictionaryArgumentExpression);try{switch(this.enterOuterAlt(s,1),this.state=842,this.identifier(),this.state=849,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AFTER:case t.ALIAS:case t.ALL:case t.ALTER:case t.AND:case t.ANTI:case t.ANY:case t.ARRAY:case t.AS:case t.ASCENDING:case t.ASOF:case t.AST:case t.ASYNC:case t.ATTACH:case t.BETWEEN:case t.BOTH:case t.BY:case t.CASE:case t.CAST:case t.CHECK:case t.CLEAR:case t.CLUSTER:case t.CODEC:case t.COLLATE:case t.COLUMN:case t.COMMENT:case t.CONSTRAINT:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.DATABASE:case t.DATABASES:case t.DATE:case t.DAY:case t.DEDUPLICATE:case t.DEFAULT:case t.DELAY:case t.DELETE:case t.DESC:case t.DESCENDING:case t.DESCRIBE:case t.DETACH:case t.DICTIONARIES:case t.DICTIONARY:case t.DISK:case t.DISTINCT:case t.DISTRIBUTED:case t.DROP:case t.ELSE:case t.END:case t.ENGINE:case t.EVENTS:case t.EXISTS:case t.EXPLAIN:case t.EXPRESSION:case t.EXTRACT:case t.FETCHES:case t.FINAL:case t.FIRST:case t.FLUSH:case t.FOLLOWING:case t.FOR:case t.FORMAT:case t.FREEZE:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOBAL:case t.GRANULARITY:case t.GROUP:case t.HAVING:case t.HIERARCHICAL:case t.HOUR:case t.ID:case t.IF:case t.ILIKE:case t.IN:case t.INDEX:case t.INJECTIVE:case t.INNER:case t.INSERT:case t.INTERVAL:case t.INTO:case t.IS:case t.IS_OBJECT_ID:case t.JOIN:case t.KEY:case t.KILL:case t.LAST:case t.LAYOUT:case t.LEADING:case t.LEFT:case t.LIFETIME:case t.LIKE:case t.LIMIT:case t.LIVE:case t.LOCAL:case t.LOGS:case t.MATERIALIZE:case t.MATERIALIZED:case t.MAX:case t.MERGES:case t.MIN:case t.MINUTE:case t.MODIFY:case t.MONTH:case t.MOVE:case t.MUTATION:case t.NO:case t.NOT:case t.NULLS:case t.OFFSET:case t.ON:case t.OPTIMIZE:case t.OR:case t.ORDER:case t.OUTER:case t.OUTFILE:case t.OVER:case t.PARTITION:case t.POPULATE:case t.PRECEDING:case t.PREWHERE:case t.PRIMARY:case t.QUARTER:case t.RANGE:case t.RELOAD:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICA:case t.REPLICATED:case t.RIGHT:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SECOND:case t.SELECT:case t.SEMI:case t.SENDS:case t.SET:case t.SETTINGS:case t.SHOW:case t.SOURCE:case t.START:case t.STOP:case t.SUBSTRING:case t.SYNC:case t.SYNTAX:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TEMPORARY:case t.TEST:case t.THEN:case t.TIES:case t.TIMEOUT:case t.TIMESTAMP:case t.TO:case t.TOP:case t.TOTALS:case t.TRAILING:case t.TRIM:case t.TRUNCATE:case t.TTL:case t.TYPE:case t.UNBOUNDED:case t.UNION:case t.UPDATE:case t.USE:case t.USING:case t.UUID:case t.VALUES:case t.VIEW:case t.VOLUME:case t.WATCH:case t.WEEK:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.YEAR:case t.JSON_FALSE:case t.JSON_TRUE:case t.IDENTIFIER:this.state=843,this.identifier(),this.state=846,this.errorHandler.sync(this),e=this.tokenStream.LA(1),219===e&&(this.state=844,this.match(t.LPAREN),this.state=845,this.match(t.RPAREN));break;case t.INF:case t.NAN_SQL:case t.NULL_SQL:case t.FLOATING_LITERAL:case t.OCTAL_LITERAL:case t.DECIMAL_LITERAL:case t.HEXADECIMAL_LITERAL:case t.STRING_LITERAL:case t.DASH:case t.DOT:case t.PLUS:this.state=848,this.literal();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sourceClause(){let e,s=new Vg(this.context,this.state);this.enterRule(s,56,t.RULE_sourceClause);try{for(this.enterOuterAlt(s,1),this.state=851,this.match(t.SOURCE),this.state=852,this.match(t.LPAREN),this.state=853,this.identifier(),this.state=854,this.match(t.LPAREN),this.state=858,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294705151||!(e-96&-32)&&1<<e-96&2146303999||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&31;)this.state=855,this.dictionaryArgumentExpression(),this.state=860,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=861,this.match(t.RPAREN),this.state=862,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lifetimeClause(){let e=new Xg(this.context,this.state);this.enterRule(e,58,t.RULE_lifetimeClause);try{switch(this.enterOuterAlt(e,1),this.state=864,this.match(t.LIFETIME),this.state=865,this.match(t.LPAREN),this.state=875,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DECIMAL_LITERAL:this.state=866,this.match(t.DECIMAL_LITERAL);break;case t.MIN:this.state=867,this.match(t.MIN),this.state=868,this.match(t.DECIMAL_LITERAL),this.state=869,this.match(t.MAX),this.state=870,this.match(t.DECIMAL_LITERAL);break;case t.MAX:this.state=871,this.match(t.MAX),this.state=872,this.match(t.DECIMAL_LITERAL),this.state=873,this.match(t.MIN),this.state=874,this.match(t.DECIMAL_LITERAL);break;default:throw new he(this)}this.state=877,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}layoutClause(){let e,s=new Kg(this.context,this.state);this.enterRule(s,60,t.RULE_layoutClause);try{for(this.enterOuterAlt(s,1),this.state=879,this.match(t.LAYOUT),this.state=880,this.match(t.LPAREN),this.state=881,this.identifier(),this.state=882,this.match(t.LPAREN),this.state=886,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294705151||!(e-96&-32)&&1<<e-96&2146303999||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&31;)this.state=883,this.dictionaryArgumentExpression(),this.state=888,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=889,this.match(t.RPAREN),this.state=890,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}rangeClause(){let e=new Qg(this.context,this.state);this.enterRule(e,62,t.RULE_rangeClause);try{switch(this.enterOuterAlt(e,1),this.state=892,this.match(t.RANGE),this.state=893,this.match(t.LPAREN),this.state=904,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.MIN:this.state=894,this.match(t.MIN),this.state=895,this.identifier(),this.state=896,this.match(t.MAX),this.state=897,this.identifier();break;case t.MAX:this.state=899,this.match(t.MAX),this.state=900,this.identifier(),this.state=901,this.match(t.MIN),this.state=902,this.identifier();break;default:throw new he(this)}this.state=906,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}dictionarySettingsClause(){let e=new Jg(this.context,this.state);this.enterRule(e,64,t.RULE_dictionarySettingsClause);try{this.enterOuterAlt(e,1),this.state=908,this.match(t.SETTINGS),this.state=909,this.match(t.LPAREN),this.state=910,this.settingExpressionList(),this.state=911,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}clusterClause(){let e=new Zg(this.context,this.state);this.enterRule(e,66,t.RULE_clusterClause);try{switch(this.enterOuterAlt(e,1),this.state=913,this.match(t.ON),this.state=914,this.match(t.CLUSTER),this.state=917,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AFTER:case t.ALIAS:case t.ALL:case t.ALTER:case t.AND:case t.ANTI:case t.ANY:case t.ARRAY:case t.AS:case t.ASCENDING:case t.ASOF:case t.AST:case t.ASYNC:case t.ATTACH:case t.BETWEEN:case t.BOTH:case t.BY:case t.CASE:case t.CAST:case t.CHECK:case t.CLEAR:case t.CLUSTER:case t.CODEC:case t.COLLATE:case t.COLUMN:case t.COMMENT:case t.CONSTRAINT:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.DATABASE:case t.DATABASES:case t.DATE:case t.DAY:case t.DEDUPLICATE:case t.DEFAULT:case t.DELAY:case t.DELETE:case t.DESC:case t.DESCENDING:case t.DESCRIBE:case t.DETACH:case t.DICTIONARIES:case t.DICTIONARY:case t.DISK:case t.DISTINCT:case t.DISTRIBUTED:case t.DROP:case t.ELSE:case t.END:case t.ENGINE:case t.EVENTS:case t.EXISTS:case t.EXPLAIN:case t.EXPRESSION:case t.EXTRACT:case t.FETCHES:case t.FINAL:case t.FIRST:case t.FLUSH:case t.FOLLOWING:case t.FOR:case t.FORMAT:case t.FREEZE:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOBAL:case t.GRANULARITY:case t.GROUP:case t.HAVING:case t.HIERARCHICAL:case t.HOUR:case t.ID:case t.IF:case t.ILIKE:case t.IN:case t.INDEX:case t.INJECTIVE:case t.INNER:case t.INSERT:case t.INTERVAL:case t.INTO:case t.IS:case t.IS_OBJECT_ID:case t.JOIN:case t.KEY:case t.KILL:case t.LAST:case t.LAYOUT:case t.LEADING:case t.LEFT:case t.LIFETIME:case t.LIKE:case t.LIMIT:case t.LIVE:case t.LOCAL:case t.LOGS:case t.MATERIALIZE:case t.MATERIALIZED:case t.MAX:case t.MERGES:case t.MIN:case t.MINUTE:case t.MODIFY:case t.MONTH:case t.MOVE:case t.MUTATION:case t.NO:case t.NOT:case t.NULLS:case t.OFFSET:case t.ON:case t.OPTIMIZE:case t.OR:case t.ORDER:case t.OUTER:case t.OUTFILE:case t.OVER:case t.PARTITION:case t.POPULATE:case t.PRECEDING:case t.PREWHERE:case t.PRIMARY:case t.QUARTER:case t.RANGE:case t.RELOAD:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICA:case t.REPLICATED:case t.RIGHT:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SECOND:case t.SELECT:case t.SEMI:case t.SENDS:case t.SET:case t.SETTINGS:case t.SHOW:case t.SOURCE:case t.START:case t.STOP:case t.SUBSTRING:case t.SYNC:case t.SYNTAX:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TEMPORARY:case t.TEST:case t.THEN:case t.TIES:case t.TIMEOUT:case t.TIMESTAMP:case t.TO:case t.TOP:case t.TOTALS:case t.TRAILING:case t.TRIM:case t.TRUNCATE:case t.TTL:case t.TYPE:case t.UNBOUNDED:case t.UNION:case t.UPDATE:case t.USE:case t.USING:case t.UUID:case t.VALUES:case t.VIEW:case t.VOLUME:case t.WATCH:case t.WEEK:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.YEAR:case t.JSON_FALSE:case t.JSON_TRUE:case t.IDENTIFIER:this.state=915,this.identifier();break;case t.STRING_LITERAL:this.state=916,this.match(t.STRING_LITERAL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}uuidClause(){let e=new qg(this.context,this.state);this.enterRule(e,68,t.RULE_uuidClause);try{this.enterOuterAlt(e,1),this.state=919,this.match(t.UUID),this.state=920,this.match(t.STRING_LITERAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}destinationClause(){let e=new jg(this.context,this.state);this.enterRule(e,70,t.RULE_destinationClause);try{this.enterOuterAlt(e,1),this.state=922,this.match(t.TO),this.state=923,this.tableIdentifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}subqueryClause(){let e=new zg(this.context,this.state);this.enterRule(e,72,t.RULE_subqueryClause);try{this.enterOuterAlt(e,1),this.state=925,this.match(t.AS),this.state=926,this.selectUnionStatement()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableSchemaClause(){let e,s=new $g(this.context,this.state);this.enterRule(s,74,t.RULE_tableSchemaClause);try{switch(this.state=943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,98,this.context)){case 1:for(s=new sx(s),this.enterOuterAlt(s,1),this.state=928,this.match(t.LPAREN),this.state=929,this.tableElementExpression(),this.state=934,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=930,this.match(t.COMMA),this.state=931,this.tableElementExpression(),this.state=936,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=937,this.match(t.RPAREN);break;case 2:s=new tx(s),this.enterOuterAlt(s,2),this.state=939,this.match(t.AS),this.state=940,this.tableIdentifier();break;case 3:s=new ex(s),this.enterOuterAlt(s,3),this.state=941,this.match(t.AS),this.state=942,this.tableFunctionExpression()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}engineClause(){let e=new ax(this.context,this.state);this.enterRule(e,76,t.RULE_engineClause);try{let t;for(this.enterOuterAlt(e,1),this.state=945,this.engineExpression(),this.state=972,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,100,this.context);2!==t&&t!==q.INVALID_ALT_NUMBER;){if(1===t)switch(this.state=970,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:if(this.state=946,e.clauses.has("orderByClause"))throw this.createFailedPredicateException('!$clauses.has("orderByClause")');this.state=947,this.orderByClause(),e.clauses.add("orderByClause");break;case 2:if(this.state=950,e.clauses.has("partitionByClause"))throw this.createFailedPredicateException('!$clauses.has("partitionByClause")');this.state=951,this.partitionByClause(),e.clauses.add("partitionByClause");break;case 3:if(this.state=954,e.clauses.has("primaryKeyClause"))throw this.createFailedPredicateException('!$clauses.has("primaryKeyClause")');this.state=955,this.primaryKeyClause(),e.clauses.add("primaryKeyClause");break;case 4:if(this.state=958,e.clauses.has("sampleByClause"))throw this.createFailedPredicateException('!$clauses.has("sampleByClause")');this.state=959,this.sampleByClause(),e.clauses.add("sampleByClause");break;case 5:if(this.state=962,e.clauses.has("ttlClause"))throw this.createFailedPredicateException('!$clauses.has("ttlClause")');this.state=963,this.ttlClause(),e.clauses.add("ttlClause");break;case 6:if(this.state=966,e.clauses.has("settingsClause"))throw this.createFailedPredicateException('!$clauses.has("settingsClause")');this.state=967,this.settingsClause(),e.clauses.add("settingsClause")}this.state=974,this.errorHandler.sync(this),t=this.interpreter.adaptivePredict(this.tokenStream,100,this.context)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}partitionByClause(){let e=new ix(this.context,this.state);this.enterRule(e,78,t.RULE_partitionByClause);try{this.enterOuterAlt(e,1),this.state=975,this.match(t.PARTITION),this.state=976,this.match(t.BY),this.state=977,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}primaryKeyClause(){let e=new rx(this.context,this.state);this.enterRule(e,80,t.RULE_primaryKeyClause);try{this.enterOuterAlt(e,1),this.state=979,this.match(t.PRIMARY),this.state=980,this.match(t.KEY),this.state=981,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sampleByClause(){let e=new cx(this.context,this.state);this.enterRule(e,82,t.RULE_sampleByClause);try{this.enterOuterAlt(e,1),this.state=983,this.match(t.SAMPLE),this.state=984,this.match(t.BY),this.state=985,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ttlClause(){let e=new nx(this.context,this.state);this.enterRule(e,84,t.RULE_ttlClause);try{let s;for(this.enterOuterAlt(e,1),this.state=987,this.match(t.TTL),this.state=988,this.ttlExpression(),this.state=993,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,101,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=989,this.match(t.COMMA),this.state=990,this.ttlExpression()),this.state=995,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,101,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}engineExpression(){let e,s=new hx(this.context,this.state);this.enterRule(s,86,t.RULE_engineExpression);try{if(1===(this.enterOuterAlt(s,1),this.state=996,this.match(t.ENGINE),this.state=998,this.errorHandler.sync(this),e=this.tokenStream.LA(1),213===e&&(this.state=997,this.match(t.EQ_SINGLE)),this.state=1e3,this.identifierOrNull(),this.state=1006,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,104,this.context)))this.state=1001,this.match(t.LPAREN),this.state=1003,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&2147483647||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&1158024191)&&(this.state=1002,this.columnExpressionList()),this.state=1005,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableElementExpression(){let e=new Ex(this.context,this.state);this.enterRule(e,88,t.RULE_tableElementExpression);try{switch(this.state=1018,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,105,this.context)){case 1:e=new Tx(e),this.enterOuterAlt(e,1),this.state=1008,this.tableColumnDefinition();break;case 2:e=new ox(e),this.enterOuterAlt(e,2),this.state=1009,this.match(t.CONSTRAINT),this.state=1010,this.identifier(),this.state=1011,this.match(t.CHECK),this.state=1012,this.columnExpression(0);break;case 3:e=new Rx(e),this.enterOuterAlt(e,3),this.state=1014,this.match(t.INDEX),this.state=1015,this.tableIndexDefinition();break;case 4:e=new Ax(e),this.enterOuterAlt(e,4),this.state=1016,this.match(t.PROJECTION),this.state=1017,this.tableProjectionDefinition()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableColumnDefinition(){let e,s=new Sx(this.context,this.state);this.enterRule(s,90,t.RULE_tableColumnDefinition);try{switch(this.state=1052,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1020,this.columnIdentifier(),this.state=1021,this.columnTypeExpression(),this.state=1023,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(3===e||38===e||104===e)&&(this.state=1022,this.tableColumnPropertyExpression()),this.state=1027,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=1025,this.match(t.COMMENT),this.state=1026,this.match(t.STRING_LITERAL)),this.state=1030,this.errorHandler.sync(this),e=this.tokenStream.LA(1),24===e&&(this.state=1029,this.codecExpression()),this.state=1034,this.errorHandler.sync(this),e=this.tokenStream.LA(1),177===e&&(this.state=1032,this.match(t.TTL),this.state=1033,this.columnExpression(0));break;case 2:if(this.enterOuterAlt(s,2),1===(this.state=1036,this.columnIdentifier(),this.state=1038,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,110,this.context)))this.state=1037,this.columnTypeExpression();this.state=1040,this.tableColumnPropertyExpression(),this.state=1043,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=1041,this.match(t.COMMENT),this.state=1042,this.match(t.STRING_LITERAL)),this.state=1046,this.errorHandler.sync(this),e=this.tokenStream.LA(1),24===e&&(this.state=1045,this.codecExpression()),this.state=1050,this.errorHandler.sync(this),e=this.tokenStream.LA(1),177===e&&(this.state=1048,this.match(t.TTL),this.state=1049,this.columnExpression(0))}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableColumnPropertyExpression(){let e,s=new lx(this.context,this.state);this.enterRule(s,92,t.RULE_tableColumnPropertyExpression);try{this.enterOuterAlt(s,1),this.state=1054,e=this.tokenStream.LA(1),3===e||38===e||104===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1055,this.columnExpression(0)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableIndexDefinition(){let e=new Ox(this.context,this.state);this.enterRule(e,94,t.RULE_tableIndexDefinition);try{this.enterOuterAlt(e,1),this.state=1057,this.columnIdentifier(),this.state=1058,this.columnExpression(0),this.state=1059,this.match(t.TYPE),this.state=1060,this.columnTypeExpression(),this.state=1061,this.match(t.GRANULARITY),this.state=1062,this.match(t.DECIMAL_LITERAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableProjectionDefinition(){let e=new Ix(this.context,this.state);this.enterRule(e,96,t.RULE_tableProjectionDefinition);try{this.enterOuterAlt(e,1),this.state=1064,this.columnIdentifier(),this.state=1065,this.projectionSelectStatement()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}codecExpression(){let e,s=new ux(this.context,this.state);this.enterRule(s,98,t.RULE_codecExpression);try{for(this.enterOuterAlt(s,1),this.state=1067,this.match(t.CODEC),this.state=1068,this.match(t.LPAREN),this.state=1069,this.codecArgExpression(),this.state=1074,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1070,this.match(t.COMMA),this.state=1071,this.codecArgExpression(),this.state=1076,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1077,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}codecArgExpression(){let e,s=new Nx(this.context,this.state);this.enterRule(s,100,t.RULE_codecArgExpression);try{this.enterOuterAlt(s,1),this.state=1079,this.identifier(),this.state=1085,this.errorHandler.sync(this),e=this.tokenStream.LA(1),219===e&&(this.state=1080,this.match(t.LPAREN),this.state=1082,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&2147483647||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&1158024191)&&(this.state=1081,this.columnExpressionList()),this.state=1084,this.match(t.RPAREN))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}ttlExpression(){let e=new Lx(this.context,this.state);this.enterRule(e,102,t.RULE_ttlExpression);try{switch(this.enterOuterAlt(e,1),this.state=1087,this.columnExpression(0),this.state=1095,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,118,this.context)){case 1:this.state=1088,this.match(t.DELETE);break;case 2:this.state=1089,this.match(t.TO),this.state=1090,this.match(t.DISK),this.state=1091,this.match(t.STRING_LITERAL);break;case 3:this.state=1092,this.match(t.TO),this.state=1093,this.match(t.VOLUME),this.state=1094,this.match(t.STRING_LITERAL)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}describeStatement(){let e,s=new Cx(this.context,this.state);this.enterRule(s,104,t.RULE_describeStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=1097,e=this.tokenStream.LA(1),41===e||43===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1099,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,119,this.context)))this.state=1098,this.match(t.TABLE);this.state=1101,this.tableExpression(0)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dropStatement(){let e,s=new _x(this.context,this.state);this.enterRule(s,106,t.RULE_dropStatement);try{switch(this.state=1134,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,127,this.context)){case 1:if(s=new Px(s),this.enterOuterAlt(s,1),1===(this.state=1103,e=this.tokenStream.LA(1),44===e||50===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1104,this.match(t.DATABASE),this.state=1107,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,120,this.context)))this.state=1105,this.match(t.IF),this.state=1106,this.match(t.EXISTS);this.state=1109,this.databaseIdentifier(),this.state=1111,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=1110,this.clusterClause());break;case 2:switch(s=new Mx(s),this.enterOuterAlt(s,2),this.state=1113,e=this.tokenStream.LA(1),44===e||50===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1120,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DICTIONARY:this.state=1114,this.match(t.DICTIONARY);break;case t.TABLE:case t.TEMPORARY:this.state=1116,this.errorHandler.sync(this),e=this.tokenStream.LA(1),164===e&&(this.state=1115,this.match(t.TEMPORARY)),this.state=1118,this.match(t.TABLE);break;case t.VIEW:this.state=1119,this.match(t.VIEW);break;default:throw new he(this)}if(1===(this.state=1124,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,124,this.context)))this.state=1122,this.match(t.IF),this.state=1123,this.match(t.EXISTS);this.state=1126,this.tableIdentifier(),this.state=1128,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=1127,this.clusterClause()),this.state=1132,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1130,this.match(t.NO),this.state=1131,this.match(t.DELAY))}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}existsStatement(){let e,s=new dx(this.context,this.state);this.enterRule(s,108,t.RULE_existsStatement);try{switch(this.state=1149,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,130,this.context)){case 1:s=new Ux(s),this.enterOuterAlt(s,1),this.state=1136,this.match(t.EXISTS),this.state=1137,this.match(t.DATABASE),this.state=1138,this.databaseIdentifier();break;case 2:switch(s=new mx(s),this.enterOuterAlt(s,2),this.state=1139,this.match(t.EXISTS),this.state=1146,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,129,this.context)){case 1:this.state=1140,this.match(t.DICTIONARY);break;case 2:this.state=1142,this.errorHandler.sync(this),e=this.tokenStream.LA(1),164===e&&(this.state=1141,this.match(t.TEMPORARY)),this.state=1144,this.match(t.TABLE);break;case 3:this.state=1145,this.match(t.VIEW)}this.state=1148,this.tableIdentifier()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}explainStatement(){let e=new Dx(this.context,this.state);this.enterRule(e,110,t.RULE_explainStatement);try{switch(this.state=1172,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,131,this.context)){case 1:e=new kx(e),this.enterOuterAlt(e,1),this.state=1151,this.match(t.EXPLAIN),this.state=1152,this.notInsertStatement();break;case 2:e=new px(e),this.enterOuterAlt(e,2),this.state=1153,this.match(t.EXPLAIN),this.state=1154,this.match(t.AST),this.state=1155,this.notInsertStatement();break;case 3:e=new Gx(e),this.enterOuterAlt(e,3),this.state=1156,this.match(t.EXPLAIN),this.state=1157,this.match(t.SYNTAX),this.state=1158,this.notInsertStatement();break;case 4:e=new Fx(e),this.enterOuterAlt(e,4),this.state=1159,this.match(t.EXPLAIN),this.state=1160,this.match(t.PIPELINE),this.state=1161,this.notInsertStatement();break;case 5:e=new xx(e),this.enterOuterAlt(e,5),this.state=1162,this.match(t.EXPLAIN),this.state=1163,this.match(t.PLAN),this.state=1164,this.notInsertStatement();break;case 6:e=new gx(e),this.enterOuterAlt(e,6),this.state=1165,this.match(t.EXPLAIN),this.state=1166,this.match(t.QUERY),this.state=1167,this.match(t.TREE),this.state=1168,this.notInsertStatement();break;case 7:e=new Hx(e),this.enterOuterAlt(e,7),this.state=1169,this.match(t.EXPLAIN),this.state=1170,this.match(t.ESTIMATE),this.state=1171,this.notInsertStatement()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}insertStatement(){let e=new vx(this.context,this.state);this.enterRule(e,112,t.RULE_insertStatement);try{if(this.enterOuterAlt(e,1),1===(this.state=1174,this.match(t.INSERT),this.state=1175,this.match(t.INTO),this.state=1177,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,132,this.context)))this.state=1176,this.match(t.TABLE);switch(this.state=1182,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,133,this.context)){case 1:this.state=1179,this.tableIdentifier();break;case 2:this.state=1180,this.match(t.FUNCTION),this.state=1181,this.tableFunctionExpression()}if(1===(this.state=1185,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,134,this.context)))this.state=1184,this.columnsClause();this.state=1187,this.dataClause()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnsClause(){let e,s=new Bx(this.context,this.state);this.enterRule(s,114,t.RULE_columnsClause);try{for(this.enterOuterAlt(s,1),this.state=1189,this.match(t.LPAREN),this.state=1190,this.columnIdentifier(),this.state=1195,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1191,this.match(t.COMMA),this.state=1192,this.columnIdentifier(),this.state=1197,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1198,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dataClause(){let e,s=new yx(this.context,this.state);this.enterRule(s,116,t.RULE_dataClause);try{switch(this.state=1209,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FORMAT:s=new Yx(s),this.enterOuterAlt(s,1),this.state=1200,this.match(t.FORMAT),this.state=1201,this.identifier();break;case t.VALUES:s=new fx(s),this.enterOuterAlt(s,2),this.state=1202,this.valuesStatement();break;case t.SELECT:case t.WITH:case t.LPAREN:s=new wx(s),this.enterOuterAlt(s,3),this.state=1203,this.selectUnionStatement(),this.state=1205,this.errorHandler.sync(this),e=this.tokenStream.LA(1),230===e&&(this.state=1204,this.match(t.SEMICOLON)),this.state=1207,this.match(t.EOF);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}valuesStatement(){let e,s=new bx(this.context,this.state);this.enterRule(s,118,t.RULE_valuesStatement);try{for(this.enterOuterAlt(s,1),this.state=1211,this.match(t.VALUES),this.state=1212,this.match(t.LPAREN),this.state=1214,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(82===e||113===e||116===e||!(e-198&-32)&&1<<e-198&33566751)&&(this.state=1213,this.literal()),this.state=1216,this.match(t.RPAREN),this.state=1225,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1217,this.match(t.COMMA),this.state=1218,this.match(t.LPAREN),this.state=1220,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(82===e||113===e||116===e||!(e-198&-32)&&1<<e-198&33566751)&&(this.state=1219,this.literal()),this.state=1222,this.match(t.RPAREN),this.state=1227,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}killStatement(){let e,s=new Wx(this.context,this.state);this.enterRule(s,120,t.RULE_killStatement);try{s=new Vx(s),this.enterOuterAlt(s,1),this.state=1228,this.match(t.KILL),this.state=1229,this.match(t.MUTATION),this.state=1231,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=1230,this.clusterClause()),this.state=1233,this.whereClause(),this.state=1235,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(14===e||159===e||165===e)&&(this.state=1234,e=this.tokenStream.LA(1),14===e||159===e||165===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}optimizeStatement(){let e,s=new Xx(this.context,this.state);this.enterRule(s,122,t.RULE_optimizeStatement);try{this.enterOuterAlt(s,1),this.state=1237,this.match(t.OPTIMIZE),this.state=1238,this.match(t.TABLE),this.state=1239,this.tableIdentifier(),this.state=1241,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=1240,this.clusterClause()),this.state=1244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),126===e&&(this.state=1243,this.partitionClause()),this.state=1247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),61===e&&(this.state=1246,this.match(t.FINAL)),this.state=1250,this.errorHandler.sync(this),e=this.tokenStream.LA(1),37===e&&(this.state=1249,this.match(t.DEDUPLICATE))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}renameStatement(){let e,s=new Kx(this.context,this.state);this.enterRule(s,124,t.RULE_renameStatement);try{for(this.enterOuterAlt(s,1),this.state=1252,this.match(t.RENAME),this.state=1253,this.match(t.TABLE),this.state=1254,this.tableIdentifier(),this.state=1255,this.match(t.TO),this.state=1256,this.tableIdentifier(),this.state=1264,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1257,this.match(t.COMMA),this.state=1258,this.tableIdentifier(),this.state=1259,this.match(t.TO),this.state=1260,this.tableIdentifier(),this.state=1266,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1268,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=1267,this.clusterClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}projectionSelectStatement(){let e,s=new Qx(this.context,this.state);this.enterRule(s,126,t.RULE_projectionSelectStatement);try{this.enterOuterAlt(s,1),this.state=1270,this.match(t.LPAREN),this.state=1272,this.errorHandler.sync(this),e=this.tokenStream.LA(1),193===e&&(this.state=1271,this.withClause()),this.state=1274,this.match(t.SELECT),this.state=1275,this.columnExpressionList(),this.state=1277,this.errorHandler.sync(this),e=this.tokenStream.LA(1),73===e&&(this.state=1276,this.groupByClause()),this.state=1280,this.errorHandler.sync(this),e=this.tokenStream.LA(1),122===e&&(this.state=1279,this.projectionOrderByClause()),this.state=1282,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectUnionStatement(){let e,s=new Jx(this.context,this.state);this.enterRule(s,128,t.RULE_selectUnionStatement);try{for(this.enterOuterAlt(s,1),this.state=1284,this.selectStatementWithParentheses(),this.state=1290,this.errorHandler.sync(this),e=this.tokenStream.LA(1);180===e;)this.state=1285,this.match(t.UNION),this.state=1286,this.match(t.ALL),this.state=1287,this.selectStatementWithParentheses(),this.state=1292,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}selectStatementWithParentheses(){let e=new Zx(this.context,this.state);this.enterRule(e,130,t.RULE_selectStatementWithParentheses);try{switch(this.state=1298,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SELECT:case t.WITH:this.enterOuterAlt(e,1),this.state=1293,this.selectStatement();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=1294,this.match(t.LPAREN),this.state=1295,this.selectUnionStatement(),this.state=1296,this.match(t.RPAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}selectStatement(){let e,s=new qx(this.context,this.state);this.enterRule(s,132,t.RULE_selectStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=1301,this.errorHandler.sync(this),e=this.tokenStream.LA(1),193===e&&(this.state=1300,this.withClause()),this.state=1303,this.match(t.SELECT),this.state=1305,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,155,this.context)))this.state=1304,this.match(t.DISTINCT);if(1===(this.state=1308,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,156,this.context)))this.state=1307,this.topClause();if(1===(this.state=1310,this.columnExpressionList(),this.state=1312,this.errorHandler.sync(this),e=this.tokenStream.LA(1),68===e&&(this.state=1311,this.fromClause()),this.state=1315,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(9===e||84===e||96===e)&&(this.state=1314,this.arrayJoinClause()),this.state=1318,this.errorHandler.sync(this),e=this.tokenStream.LA(1),192===e&&(this.state=1317,this.windowClause()),this.state=1321,this.errorHandler.sync(this),e=this.tokenStream.LA(1),131===e&&(this.state=1320,this.prewhereClause()),this.state=1324,this.errorHandler.sync(this),e=this.tokenStream.LA(1),191===e&&(this.state=1323,this.whereClause()),this.state=1327,this.errorHandler.sync(this),e=this.tokenStream.LA(1),73===e&&(this.state=1326,this.groupByClause()),this.state=1331,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,163,this.context)))this.state=1329,this.match(t.WITH),this.state=1330,e=this.tokenStream.LA(1),31===e||144===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);if(1===(this.state=1335,this.errorHandler.sync(this),e=this.tokenStream.LA(1),193===e&&(this.state=1333,this.match(t.WITH),this.state=1334,this.match(t.TOTALS)),this.state=1338,this.errorHandler.sync(this),e=this.tokenStream.LA(1),74===e&&(this.state=1337,this.havingClause()),this.state=1341,this.errorHandler.sync(this),e=this.tokenStream.LA(1),122===e&&(this.state=1340,this.orderByClause()),this.state=1344,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,167,this.context)))this.state=1343,this.limitByClause();this.state=1347,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=1346,this.limitClause()),this.state=1350,this.errorHandler.sync(this),e=this.tokenStream.LA(1),153===e&&(this.state=1349,this.settingsClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}withClause(){let e=new jx(this.context,this.state);this.enterRule(e,134,t.RULE_withClause);try{this.enterOuterAlt(e,1),this.state=1352,this.match(t.WITH),this.state=1353,this.columnExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topClause(){let e=new zx(this.context,this.state);this.enterRule(e,136,t.RULE_topClause);try{if(1===(this.enterOuterAlt(e,1),this.state=1355,this.match(t.TOP),this.state=1356,this.match(t.DECIMAL_LITERAL),this.state=1359,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,170,this.context)))this.state=1357,this.match(t.WITH),this.state=1358,this.match(t.TIES)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}fromClause(){let e=new $x(this.context,this.state);this.enterRule(e,138,t.RULE_fromClause);try{this.enterOuterAlt(e,1),this.state=1361,this.match(t.FROM),this.state=1362,this.joinExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}arrayJoinClause(){let e,s=new tk(this.context,this.state);this.enterRule(s,140,t.RULE_arrayJoinClause);try{this.enterOuterAlt(s,1),this.state=1365,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(84===e||96===e)&&(this.state=1364,e=this.tokenStream.LA(1),84===e||96===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1367,this.match(t.ARRAY),this.state=1368,this.match(t.JOIN),this.state=1369,this.columnExpressionList()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}windowClause(){let e=new ek(this.context,this.state);this.enterRule(e,142,t.RULE_windowClause);try{this.enterOuterAlt(e,1),this.state=1371,this.match(t.WINDOW),this.state=1372,this.identifier(),this.state=1373,this.match(t.AS),this.state=1374,this.match(t.LPAREN),this.state=1375,this.windowExpression(),this.state=1376,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}prewhereClause(){let e=new sk(this.context,this.state);this.enterRule(e,144,t.RULE_prewhereClause);try{this.enterOuterAlt(e,1),this.state=1378,this.match(t.PREWHERE),this.state=1379,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}whereClause(){let e=new ak(this.context,this.state);this.enterRule(e,146,t.RULE_whereClause);try{this.enterOuterAlt(e,1),this.state=1381,this.match(t.WHERE),this.state=1382,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}groupByClause(){let e,s=new ik(this.context,this.state);this.enterRule(s,148,t.RULE_groupByClause);try{switch(this.enterOuterAlt(s,1),this.state=1384,this.match(t.GROUP),this.state=1385,this.match(t.BY),this.state=1392,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)){case 1:this.state=1386,e=this.tokenStream.LA(1),31===e||144===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1387,this.match(t.LPAREN),this.state=1388,this.columnExpressionList(),this.state=1389,this.match(t.RPAREN);break;case 2:this.state=1391,this.columnExpressionList()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}havingClause(){let e=new rk(this.context,this.state);this.enterRule(e,150,t.RULE_havingClause);try{this.enterOuterAlt(e,1),this.state=1394,this.match(t.HAVING),this.state=1395,this.columnExpression(0)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}orderByClause(){let e=new ck(this.context,this.state);this.enterRule(e,152,t.RULE_orderByClause);try{this.enterOuterAlt(e,1),this.state=1397,this.match(t.ORDER),this.state=1398,this.match(t.BY),this.state=1399,this.orderExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}projectionOrderByClause(){let e=new nk(this.context,this.state);this.enterRule(e,154,t.RULE_projectionOrderByClause);try{this.enterOuterAlt(e,1),this.state=1401,this.match(t.ORDER),this.state=1402,this.match(t.BY),this.state=1403,this.columnExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}limitByClause(){let e=new hk(this.context,this.state);this.enterRule(e,156,t.RULE_limitByClause);try{this.enterOuterAlt(e,1),this.state=1405,this.match(t.LIMIT),this.state=1406,this.limitExpression(),this.state=1407,this.match(t.BY),this.state=1408,this.columnExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}limitClause(){let e,s=new Ek(this.context,this.state);this.enterRule(s,158,t.RULE_limitClause);try{this.enterOuterAlt(s,1),this.state=1410,this.match(t.LIMIT),this.state=1411,this.limitExpression(),this.state=1414,this.errorHandler.sync(this),e=this.tokenStream.LA(1),193===e&&(this.state=1412,this.match(t.WITH),this.state=1413,this.match(t.TIES))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}settingsClause(){let e=new Tk(this.context,this.state);this.enterRule(e,160,t.RULE_settingsClause);try{this.enterOuterAlt(e,1),this.state=1416,this.match(t.SETTINGS),this.state=1417,this.settingExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}joinExpression(e){void 0===e&&(e=0);let s,a=this.context,i=this.state,r=new ok(this.context,i),c=r;this.enterRecursionRule(r,162,t.RULE_joinExpression,e);try{let e;switch(this.enterOuterAlt(r,1),this.state=1431,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,176,this.context)){case 1:if(1===(r=new Ak(r),this.context=r,c=r,this.state=1420,this.tableExpression(0),this.state=1422,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,174,this.context)))this.state=1421,this.match(t.FINAL);if(1===(this.state=1425,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,175,this.context)))this.state=1424,this.sampleClause();break;case 2:r=new Rk(r),this.context=r,c=r,this.state=1427,this.match(t.LPAREN),this.state=1428,this.joinExpression(0),this.state=1429,this.match(t.RPAREN)}for(this.context.stop=this.tokenStream.LT(-1),this.state=1450,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this.parseListeners&&this.triggerExitRuleEvent(),c=r,this.state=1448,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)){case 1:if(r=new Sk(new ok(a,i)),this.pushNewRecursionContext(r,162,t.RULE_joinExpression),this.state=1433,!this.precpred(this.context,3))throw this.createFailedPredicateException("this.precpred(this.context, 3)");this.state=1434,this.joinOperatorCross(),this.state=1435,this.joinExpression(4);break;case 2:if(r=new lk(new ok(a,i)),this.pushNewRecursionContext(r,162,t.RULE_joinExpression),this.state=1437,!this.precpred(this.context,4))throw this.createFailedPredicateException("this.precpred(this.context, 4)");this.state=1439,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(71===s||101===s)&&(this.state=1438,s=this.tokenStream.LA(1),71===s||101===s?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1442,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4496||!(s-69&-32)&&1<<s-69&134250497||143===s||150===s)&&(this.state=1441,this.joinOperator()),this.state=1444,this.match(t.JOIN),this.state=1445,this.joinExpression(0),this.state=1446,this.joinConstraintClause()}this.state=1452,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,180,this.context)}}catch(n){if(!(n instanceof qt))throw n;this.errorHandler.reportError(this,n),this.errorHandler.recover(this,n)}finally{this.unrollRecursionContexts(a)}return r}joinOperator(){let e,s=new Ok(this.context,this.state);this.enterRule(s,164,t.RULE_joinOperator);try{switch(this.state=1496,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,194,this.context)){case 1:switch(s=new uk(s),this.enterOuterAlt(s,1),this.state=1462,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,183,this.context)){case 1:this.state=1454,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4368&&(this.state=1453,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4368?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1456,this.match(t.INNER);break;case 2:this.state=1457,this.match(t.INNER),this.state=1459,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4368&&(this.state=1458,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4368?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 3:this.state=1461,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4368?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}break;case 2:switch(s=new Nk(s),this.enterOuterAlt(s,2),this.state=1478,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,188,this.context)){case 1:this.state=1465,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4496||150===e)&&(this.state=1464,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4496||150===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1467,e=this.tokenStream.LA(1),96===e||143===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1469,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=1468,this.match(t.OUTER));break;case 2:this.state=1471,e=this.tokenStream.LA(1),96===e||143===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1473,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=1472,this.match(t.OUTER)),this.state=1476,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4496||150===e)&&(this.state=1475,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4496||150===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}break;case 3:switch(s=new Ik(s),this.enterOuterAlt(s,3),this.state=1494,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,193,this.context)){case 1:this.state=1481,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(4===e||8===e)&&(this.state=1480,e=this.tokenStream.LA(1),4===e||8===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1483,this.match(t.FULL),this.state=1485,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=1484,this.match(t.OUTER));break;case 2:this.state=1487,this.match(t.FULL),this.state=1489,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=1488,this.match(t.OUTER)),this.state=1492,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(4===e||8===e)&&(this.state=1491,e=this.tokenStream.LA(1),4===e||8===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}joinOperatorCross(){let e,s=new Lk(this.context,this.state);this.enterRule(s,166,t.RULE_joinOperatorCross);try{switch(this.state=1504,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CROSS:case t.GLOBAL:case t.LOCAL:this.enterOuterAlt(s,1),this.state=1499,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(71===e||101===e)&&(this.state=1498,e=this.tokenStream.LA(1),71===e||101===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1501,this.match(t.CROSS),this.state=1502,this.match(t.JOIN);break;case t.COMMA:this.enterOuterAlt(s,2),this.state=1503,this.match(t.COMMA);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}joinConstraintClause(){let e=new Ck(this.context,this.state);this.enterRule(e,168,t.RULE_joinConstraintClause);try{switch(this.state=1515,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,197,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1506,this.match(t.ON),this.state=1507,this.columnExpressionList();break;case 2:this.enterOuterAlt(e,2),this.state=1508,this.match(t.USING),this.state=1509,this.match(t.LPAREN),this.state=1510,this.columnExpressionList(),this.state=1511,this.match(t.RPAREN);break;case 3:this.enterOuterAlt(e,3),this.state=1513,this.match(t.USING),this.state=1514,this.columnExpressionList()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sampleClause(){let e=new _k(this.context,this.state);this.enterRule(e,170,t.RULE_sampleClause);try{if(1===(this.enterOuterAlt(e,1),this.state=1517,this.match(t.SAMPLE),this.state=1518,this.ratioExpression(),this.state=1521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,198,this.context)))this.state=1519,this.match(t.OFFSET),this.state=1520,this.ratioExpression()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}limitExpression(){let e,s=new Pk(this.context,this.state);this.enterRule(s,172,t.RULE_limitExpression);try{this.enterOuterAlt(s,1),this.state=1523,this.columnExpression(0),this.state=1526,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(118===e||208===e)&&(this.state=1524,e=this.tokenStream.LA(1),118===e||208===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1525,this.columnExpression(0))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}orderExpressionList(){let e=new Mk(this.context,this.state);this.enterRule(e,174,t.RULE_orderExpressionList);try{let s;for(this.enterOuterAlt(e,1),this.state=1528,this.orderExpression(),this.state=1533,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,200,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1529,this.match(t.COMMA),this.state=1530,this.orderExpression()),this.state=1535,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,200,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}orderExpression(){let e,s=new dk(this.context,this.state);this.enterRule(s,176,t.RULE_orderExpression);try{if(this.enterOuterAlt(s,1),1===(this.state=1536,this.columnExpression(0),this.state=1538,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,201,this.context)))this.state=1537,e=this.tokenStream.LA(1),!(e-11&-32)&&1<<e-11&3221225473?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);if(1===(this.state=1542,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,202,this.context)))this.state=1540,this.match(t.NULLS),this.state=1541,e=this.tokenStream.LA(1),62===e||93===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);if(1===(this.state=1546,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=1544,this.match(t.COLLATE),this.state=1545,this.match(t.STRING_LITERAL)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}ratioExpression(){let e=new Uk(this.context,this.state);this.enterRule(e,178,t.RULE_ratioExpression);try{if(1===(this.enterOuterAlt(e,1),this.state=1548,this.numberLiteral(),this.state=1551,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,204,this.context)))this.state=1549,this.match(t.SLASH),this.state=1550,this.numberLiteral()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}settingExpressionList(){let e=new mk(this.context,this.state);this.enterRule(e,180,t.RULE_settingExpressionList);try{let s;for(this.enterOuterAlt(e,1),this.state=1553,this.settingExpression(),this.state=1558,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,205,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1554,this.match(t.COMMA),this.state=1555,this.settingExpression()),this.state=1560,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,205,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}settingExpression(){let e=new Dk(this.context,this.state);this.enterRule(e,182,t.RULE_settingExpression);try{this.enterOuterAlt(e,1),this.state=1561,this.identifier(),this.state=1562,this.match(t.EQ_SINGLE),this.state=1563,this.literal()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowExpression(){let e,s=new pk(this.context,this.state);this.enterRule(s,184,t.RULE_windowExpression);try{this.enterOuterAlt(s,1),this.state=1566,this.errorHandler.sync(this),e=this.tokenStream.LA(1),126===e&&(this.state=1565,this.windowPartitionByClause()),this.state=1569,this.errorHandler.sync(this),e=this.tokenStream.LA(1),122===e&&(this.state=1568,this.windowOrderByClause()),this.state=1572,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(136===e||146===e)&&(this.state=1571,this.windowFrameClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}windowPartitionByClause(){let e=new gk(this.context,this.state);this.enterRule(e,186,t.RULE_windowPartitionByClause);try{this.enterOuterAlt(e,1),this.state=1574,this.match(t.PARTITION),this.state=1575,this.match(t.BY),this.state=1576,this.columnExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowOrderByClause(){let e=new xk(this.context,this.state);this.enterRule(e,188,t.RULE_windowOrderByClause);try{this.enterOuterAlt(e,1),this.state=1578,this.match(t.ORDER),this.state=1579,this.match(t.BY),this.state=1580,this.orderExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowFrameClause(){let e,s=new kk(this.context,this.state);this.enterRule(s,190,t.RULE_windowFrameClause);try{this.enterOuterAlt(s,1),this.state=1582,e=this.tokenStream.LA(1),136===e||146===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1583,this.windowFrameExtend()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}windowFrameExtend(){let e=new Hk(this.context,this.state);this.enterRule(e,192,t.RULE_windowFrameExtend);try{switch(this.state=1591,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CURRENT:case t.INF:case t.NAN_SQL:case t.UNBOUNDED:case t.FLOATING_LITERAL:case t.OCTAL_LITERAL:case t.DECIMAL_LITERAL:case t.HEXADECIMAL_LITERAL:case t.DASH:case t.DOT:case t.PLUS:e=new Gk(e),this.enterOuterAlt(e,1),this.state=1585,this.windowFrameBound();break;case t.BETWEEN:e=new Fk(e),this.enterOuterAlt(e,2),this.state=1586,this.match(t.BETWEEN),this.state=1587,this.windowFrameBound(),this.state=1588,this.match(t.AND),this.state=1589,this.windowFrameBound();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}windowFrameBound(){let e=new vk(this.context,this.state);this.enterRule(e,194,t.RULE_windowFrameBound);try{switch(this.enterOuterAlt(e,1),this.state=1605,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.state=1593,this.match(t.CURRENT),this.state=1594,this.match(t.ROW);break;case 2:this.state=1595,this.match(t.UNBOUNDED),this.state=1596,this.match(t.PRECEDING);break;case 3:this.state=1597,this.match(t.UNBOUNDED),this.state=1598,this.match(t.FOLLOWING);break;case 4:this.state=1599,this.numberLiteral(),this.state=1600,this.match(t.PRECEDING);break;case 5:this.state=1602,this.numberLiteral(),this.state=1603,this.match(t.FOLLOWING)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}setStatement(){let e=new Bk(this.context,this.state);this.enterRule(e,196,t.RULE_setStatement);try{this.enterOuterAlt(e,1),this.state=1607,this.match(t.SET),this.state=1608,this.settingExpressionList()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}showStatement(){let e,s=new yk(this.context,this.state);this.enterRule(s,198,t.RULE_showStatement);try{switch(this.state=1652,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,218,this.context)){case 1:s=new Wk(s),this.enterOuterAlt(s,1),this.state=1610,this.match(t.SHOW),this.state=1611,this.match(t.CREATE),this.state=1612,this.match(t.DATABASE),this.state=1613,this.databaseIdentifier();break;case 2:s=new Yk(s),this.enterOuterAlt(s,2),this.state=1614,this.match(t.SHOW),this.state=1615,this.match(t.CREATE),this.state=1616,this.match(t.DICTIONARY),this.state=1617,this.tableIdentifier();break;case 3:if(s=new fk(s),this.enterOuterAlt(s,3),1===(this.state=1618,this.match(t.SHOW),this.state=1619,this.match(t.CREATE),this.state=1621,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,211,this.context)))this.state=1620,this.match(t.TEMPORARY);if(1===(this.state=1624,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,212,this.context)))this.state=1623,this.match(t.TABLE);this.state=1626,this.tableIdentifier();break;case 4:s=new Vk(s),this.enterOuterAlt(s,4),this.state=1627,this.match(t.SHOW),this.state=1628,this.match(t.DATABASES);break;case 5:s=new bk(s),this.enterOuterAlt(s,5),this.state=1629,this.match(t.SHOW),this.state=1630,this.match(t.DICTIONARIES),this.state=1633,this.errorHandler.sync(this),e=this.tokenStream.LA(1),68===e&&(this.state=1631,this.match(t.FROM),this.state=1632,this.databaseIdentifier());break;case 6:switch(s=new wk(s),this.enterOuterAlt(s,6),this.state=1635,this.match(t.SHOW),this.state=1637,this.errorHandler.sync(this),e=this.tokenStream.LA(1),164===e&&(this.state=1636,this.match(t.TEMPORARY)),this.state=1639,this.match(t.TABLES),this.state=1642,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(68===e||80===e)&&(this.state=1640,e=this.tokenStream.LA(1),68===e||80===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1641,this.databaseIdentifier()),this.state=1647,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LIKE:this.state=1644,this.match(t.LIKE),this.state=1645,this.match(t.STRING_LITERAL);break;case t.WHERE:this.state=1646,this.whereClause();case t.EOF:case t.FORMAT:case t.INTO:case t.LIMIT:case t.RPAREN:case t.SEMICOLON:}this.state=1650,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=1649,this.limitClause())}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}systemStatement(){let e,s=new Xk(this.context,this.state);this.enterRule(s,200,t.RULE_systemStatement);try{switch(this.state=1688,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1654,this.match(t.SYSTEM),this.state=1655,this.match(t.FLUSH),this.state=1656,this.match(t.DISTRIBUTED),this.state=1657,this.tableIdentifier();break;case 2:this.enterOuterAlt(s,2),this.state=1658,this.match(t.SYSTEM),this.state=1659,this.match(t.FLUSH),this.state=1660,this.match(t.LOGS);break;case 3:this.enterOuterAlt(s,3),this.state=1661,this.match(t.SYSTEM),this.state=1662,this.match(t.RELOAD),this.state=1663,this.match(t.DICTIONARIES);break;case 4:this.enterOuterAlt(s,4),this.state=1664,this.match(t.SYSTEM),this.state=1665,this.match(t.RELOAD),this.state=1666,this.match(t.DICTIONARY),this.state=1667,this.tableIdentifier();break;case 5:switch(this.enterOuterAlt(s,5),this.state=1668,this.match(t.SYSTEM),this.state=1669,e=this.tokenStream.LA(1),156===e||157===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1677,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISTRIBUTED:this.state=1670,this.match(t.DISTRIBUTED),this.state=1671,this.match(t.SENDS);break;case t.FETCHES:this.state=1672,this.match(t.FETCHES);break;case t.MERGES:case t.TTL:this.state=1674,this.errorHandler.sync(this),e=this.tokenStream.LA(1),177===e&&(this.state=1673,this.match(t.TTL)),this.state=1676,this.match(t.MERGES);break;default:throw new he(this)}this.state=1679,this.tableIdentifier();break;case 6:this.enterOuterAlt(s,6),this.state=1680,this.match(t.SYSTEM),this.state=1681,e=this.tokenStream.LA(1),156===e||157===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1682,this.match(t.REPLICATED),this.state=1683,this.match(t.SENDS);break;case 7:this.enterOuterAlt(s,7),this.state=1684,this.match(t.SYSTEM),this.state=1685,this.match(t.SYNC),this.state=1686,this.match(t.REPLICA),this.state=1687,this.tableIdentifier()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}truncateStatement(){let e,s=new Kk(this.context,this.state);this.enterRule(s,202,t.RULE_truncateStatement);try{if(this.enterOuterAlt(s,1),1===(this.state=1690,this.match(t.TRUNCATE),this.state=1692,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,222,this.context)))this.state=1691,this.match(t.TEMPORARY);if(1===(this.state=1695,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)))this.state=1694,this.match(t.TABLE);if(1===(this.state=1699,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)))this.state=1697,this.match(t.IF),this.state=1698,this.match(t.EXISTS);this.state=1701,this.tableIdentifier(),this.state=1703,this.errorHandler.sync(this),e=this.tokenStream.LA(1),119===e&&(this.state=1702,this.clusterClause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}useStatement(){let e=new Qk(this.context,this.state);this.enterRule(e,204,t.RULE_useStatement);try{this.enterOuterAlt(e,1),this.state=1705,this.match(t.USE),this.state=1706,this.databaseIdentifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}watchStatement(){let e,s=new Jk(this.context,this.state);this.enterRule(s,206,t.RULE_watchStatement);try{this.enterOuterAlt(s,1),this.state=1708,this.match(t.WATCH),this.state=1709,this.tableIdentifier(),this.state=1711,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=1710,this.match(t.EVENTS)),this.state=1715,this.errorHandler.sync(this),e=this.tokenStream.LA(1),99===e&&(this.state=1713,this.match(t.LIMIT),this.state=1714,this.match(t.DECIMAL_LITERAL))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnTypeExpression(){let e,s=new Zk(this.context,this.state);this.enterRule(s,208,t.RULE_columnTypeExpression);try{switch(this.state=1764,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,232,this.context)){case 1:s=new tH(s),this.enterOuterAlt(s,1),this.state=1717,this.identifier();break;case 2:for(s=new zk(s),this.enterOuterAlt(s,2),this.state=1718,this.identifier(),this.state=1719,this.match(t.LPAREN),this.state=1720,this.identifier(),this.state=1721,this.columnTypeExpression(),this.state=1728,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1722,this.match(t.COMMA),this.state=1723,this.identifier(),this.state=1724,this.columnTypeExpression(),this.state=1730,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1731,this.match(t.RPAREN);break;case 3:for(s=new jk(s),this.enterOuterAlt(s,3),this.state=1733,this.identifier(),this.state=1734,this.match(t.LPAREN),this.state=1735,this.enumValue(),this.state=1740,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1736,this.match(t.COMMA),this.state=1737,this.enumValue(),this.state=1742,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1743,this.match(t.RPAREN);break;case 4:for(s=new qk(s),this.enterOuterAlt(s,4),this.state=1745,this.identifier(),this.state=1746,this.match(t.LPAREN),this.state=1747,this.columnTypeExpression(),this.state=1752,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1748,this.match(t.COMMA),this.state=1749,this.columnTypeExpression(),this.state=1754,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1755,this.match(t.RPAREN);break;case 5:s=new $k(s),this.enterOuterAlt(s,5),this.state=1757,this.identifier(),this.state=1758,this.match(t.LPAREN),this.state=1760,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&2147483647||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&1158024191)&&(this.state=1759,this.columnExpressionList()),this.state=1762,this.match(t.RPAREN)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnExpressionList(){let e=new eH(this.context,this.state);this.enterRule(e,210,t.RULE_columnExpressionList);try{let s;for(this.enterOuterAlt(e,1),this.state=1766,this.columnsExpression(),this.state=1771,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,233,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1767,this.match(t.COMMA),this.state=1768,this.columnsExpression()),this.state=1773,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,233,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnsExpression(){let e,s=new sH(this.context,this.state);this.enterRule(s,212,t.RULE_columnsExpression);try{switch(this.state=1785,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)){case 1:s=new aH(s),this.enterOuterAlt(s,1),this.state=1777,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294705151||!(e-96&-32)&&1<<e-96&2146303999||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&31)&&(this.state=1774,this.tableIdentifier(),this.state=1775,this.match(t.DOT)),this.state=1779,this.match(t.ASTERISK);break;case 2:s=new iH(s),this.enterOuterAlt(s,2),this.state=1780,this.match(t.LPAREN),this.state=1781,this.selectUnionStatement(),this.state=1782,this.match(t.RPAREN);break;case 3:s=new rH(s),this.enterOuterAlt(s,3),this.state=1784,this.columnExpression(0)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnExpression(e){void 0===e&&(e=0);let s,a=this.context,i=this.state,r=new cH(this.context,i),c=r,n=214;this.enterRecursionRule(r,214,t.RULE_columnExpression,e);try{let e;switch(this.enterOuterAlt(r,1),this.state=1916,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,248,this.context)){case 1:if(1===(r=new lH(r),this.context=r,c=r,this.state=1788,this.match(t.CASE),this.state=1790,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,236,this.context)))this.state=1789,this.columnExpression(0);this.state=1797,this.errorHandler.sync(this),s=this.tokenStream.LA(1);do{this.state=1792,this.match(t.WHEN),this.state=1793,this.columnExpression(0),this.state=1794,this.match(t.THEN),this.state=1795,this.columnExpression(0),this.state=1799,this.errorHandler.sync(this),s=this.tokenStream.LA(1)}while(190===s);this.state=1803,this.errorHandler.sync(this),s=this.tokenStream.LA(1),51===s&&(this.state=1801,this.match(t.ELSE),this.state=1802,this.columnExpression(0)),this.state=1805,this.match(t.END);break;case 2:r=new vH(r),this.context=r,c=r,this.state=1807,this.match(t.CAST),this.state=1808,this.match(t.LPAREN),this.state=1809,this.columnExpression(0),this.state=1810,this.match(t.AS),this.state=1811,this.columnTypeExpression(),this.state=1812,this.match(t.RPAREN);break;case 3:r=new TH(r),this.context=r,c=r,this.state=1814,this.match(t.DATE),this.state=1815,this.match(t.STRING_LITERAL);break;case 4:r=new FH(r),this.context=r,c=r,this.state=1816,this.match(t.EXTRACT),this.state=1817,this.match(t.LPAREN),this.state=1818,this.interval(),this.state=1819,this.match(t.FROM),this.state=1820,this.columnExpression(0),this.state=1821,this.match(t.RPAREN);break;case 5:r=new kH(r),this.context=r,c=r,this.state=1823,this.match(t.INTERVAL),this.state=1824,this.columnExpression(0),this.state=1825,this.interval();break;case 6:r=new SH(r),this.context=r,c=r,this.state=1827,this.match(t.SUBSTRING),this.state=1828,this.match(t.LPAREN),this.state=1829,this.columnExpression(0),this.state=1830,this.match(t.FROM),this.state=1831,this.columnExpression(0),this.state=1834,this.errorHandler.sync(this),s=this.tokenStream.LA(1),65===s&&(this.state=1832,this.match(t.FOR),this.state=1833,this.columnExpression(0)),this.state=1836,this.match(t.RPAREN);break;case 7:r=new pH(r),this.context=r,c=r,this.state=1838,this.match(t.TIMESTAMP),this.state=1839,this.match(t.STRING_LITERAL);break;case 8:r=new RH(r),this.context=r,c=r,this.state=1840,this.match(t.TRIM),this.state=1841,this.match(t.LPAREN),this.state=1842,s=this.tokenStream.LA(1),17===s||95===s||173===s?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1843,this.match(t.STRING_LITERAL),this.state=1844,this.match(t.FROM),this.state=1845,this.columnExpression(0),this.state=1846,this.match(t.RPAREN);break;case 9:r=new CH(r),this.context=r,c=r,this.state=1848,this.identifier(),this.state=1849,this.match(t.LPAREN),this.state=1851,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4294967292||!(s-32&-32)&&1<<s-32&4290772991||!(s-64&-32)&&1<<s-64&4294967295||!(s-96&-32)&&1<<s-96&2147483647||!(s-129&-32)&&1<<s-129&4294967215||!(s-161&-32)&&1<<s-161&4294950911||!(s-193&-32)&&1<<s-193&1158024191)&&(this.state=1850,this.columnExpressionList()),this.state=1853,this.match(t.RPAREN),this.state=1855,this.match(t.OVER),this.state=1856,this.match(t.LPAREN),this.state=1857,this.windowExpression(),this.state=1858,this.match(t.RPAREN);break;case 10:r=new UH(r),this.context=r,c=r,this.state=1860,this.identifier(),this.state=1861,this.match(t.LPAREN),this.state=1863,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4294967292||!(s-32&-32)&&1<<s-32&4290772991||!(s-64&-32)&&1<<s-64&4294967295||!(s-96&-32)&&1<<s-96&2147483647||!(s-129&-32)&&1<<s-129&4294967215||!(s-161&-32)&&1<<s-161&4294950911||!(s-193&-32)&&1<<s-193&1158024191)&&(this.state=1862,this.columnExpressionList()),this.state=1865,this.match(t.RPAREN),this.state=1867,this.match(t.OVER),this.state=1868,this.identifier();break;case 11:if(1===(r=new uH(r),this.context=r,c=r,this.state=1870,this.identifier(),this.state=1876,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,243,this.context)))this.state=1871,this.match(t.LPAREN),this.state=1873,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4294967292||!(s-32&-32)&&1<<s-32&4290772991||!(s-64&-32)&&1<<s-64&4294967295||!(s-96&-32)&&1<<s-96&2147483647||!(s-129&-32)&&1<<s-129&4294967215||!(s-161&-32)&&1<<s-161&4294950911||!(s-193&-32)&&1<<s-193&1158024191)&&(this.state=1872,this.columnExpressionList()),this.state=1875,this.match(t.RPAREN);if(1===(this.state=1878,this.match(t.LPAREN),this.state=1880,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,244,this.context)))this.state=1879,this.match(t.DISTINCT);this.state=1883,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4294967292||!(s-32&-32)&&1<<s-32&4290772991||!(s-64&-32)&&1<<s-64&4294967295||!(s-96&-32)&&1<<s-96&2147483647||!(s-129&-32)&&1<<s-129&4294967215||!(s-161&-32)&&1<<s-161&4294950911||!(s-193&-32)&&1<<s-193&1158024191)&&(this.state=1882,this.columnArgumentList()),this.state=1885,this.match(t.RPAREN);break;case 12:r=new LH(r),this.context=r,c=r,this.state=1887,this.literal();break;case 13:r=new GH(r),this.context=r,c=r,this.state=1888,this.match(t.DASH),this.state=1889,this.columnExpression(17);break;case 14:r=new AH(r),this.context=r,c=r,this.state=1890,this.match(t.NOT),this.state=1891,this.columnExpression(12);break;case 15:r=new NH(r),this.context=r,c=r,this.state=1895,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4294967292||!(s-32&-32)&&1<<s-32&4290772991||!(s-64&-32)&&1<<s-64&4294705151||!(s-96&-32)&&1<<s-96&2146303999||!(s-129&-32)&&1<<s-129&4294967215||!(s-161&-32)&&1<<s-161&4294950911||!(s-193&-32)&&1<<s-193&31)&&(this.state=1892,this.tableIdentifier(),this.state=1893,this.match(t.DOT)),this.state=1897,this.match(t.ASTERISK);break;case 16:r=new HH(r),this.context=r,c=r,this.state=1898,this.match(t.LPAREN),this.state=1899,this.selectUnionStatement(),this.state=1900,this.match(t.RPAREN);break;case 17:r=new dH(r),this.context=r,c=r,this.state=1902,this.match(t.LPAREN),this.state=1903,this.columnExpression(0),this.state=1904,this.match(t.RPAREN);break;case 18:r=new hH(r),this.context=r,c=r,this.state=1906,this.match(t.LPAREN),this.state=1907,this.columnExpressionList(),this.state=1908,this.match(t.RPAREN);break;case 19:r=new PH(r),this.context=r,c=r,this.state=1910,this.match(t.LBRACKET),this.state=1912,this.errorHandler.sync(this),s=this.tokenStream.LA(1),(!(-32&s)&&1<<s&4294967292||!(s-32&-32)&&1<<s-32&4290772991||!(s-64&-32)&&1<<s-64&4294967295||!(s-96&-32)&&1<<s-96&2147483647||!(s-129&-32)&&1<<s-129&4294967215||!(s-161&-32)&&1<<s-161&4294950911||!(s-193&-32)&&1<<s-193&1158024191)&&(this.state=1911,this.columnExpressionList()),this.state=1914,this.match(t.RBRACKET);break;case 20:r=new OH(r),this.context=r,c=r,this.state=1915,this.columnIdentifier()}for(this.context.stop=this.tokenStream.LT(-1),this.state=1989,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,257,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this.parseListeners&&this.triggerExitRuleEvent(),c=r,this.state=1987,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,256,this.context)){case 1:if(r=new xH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1918,!this.precpred(this.context,16))throw this.createFailedPredicateException("this.precpred(this.context, 16)");this.state=1919,s=this.tokenStream.LA(1),!(s-204&-32)&&1<<s-204&134479873?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1920,this.columnExpression(17);break;case 2:if(r=new gH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1921,!this.precpred(this.context,15))throw this.createFailedPredicateException("this.precpred(this.context, 15)");this.state=1922,s=this.tokenStream.LA(1),!(s-209&-32)&&1<<s-209&16387?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1923,this.columnExpression(16);break;case 3:if(r=new DH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1924,!this.precpred(this.context,14))throw this.createFailedPredicateException("this.precpred(this.context, 14)");switch(this.state=1943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=1925,this.match(t.EQ_DOUBLE);break;case 2:this.state=1926,this.match(t.EQ_SINGLE);break;case 3:this.state=1927,this.match(t.NOT_EQ);break;case 4:this.state=1928,this.match(t.LE);break;case 5:this.state=1929,this.match(t.GE);break;case 6:this.state=1930,this.match(t.LT);break;case 7:this.state=1931,this.match(t.GT);break;case 8:this.state=1933,this.errorHandler.sync(this),s=this.tokenStream.LA(1),71===s&&(this.state=1932,this.match(t.GLOBAL)),this.state=1936,this.errorHandler.sync(this),s=this.tokenStream.LA(1),115===s&&(this.state=1935,this.match(t.NOT)),this.state=1938,this.match(t.IN);break;case 9:this.state=1940,this.errorHandler.sync(this),s=this.tokenStream.LA(1),115===s&&(this.state=1939,this.match(t.NOT)),this.state=1942,s=this.tokenStream.LA(1),79===s||98===s?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}this.state=1945,this.columnExpression(15);break;case 4:if(r=new EH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1946,!this.precpred(this.context,11))throw this.createFailedPredicateException("this.precpred(this.context, 11)");this.state=1947,this.match(t.AND),this.state=1948,this.columnExpression(12);break;case 5:if(r=new BH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1949,!this.precpred(this.context,10))throw this.createFailedPredicateException("this.precpred(this.context, 10)");this.state=1950,this.match(t.OR),this.state=1951,this.columnExpression(11);break;case 6:if(r=new oH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1952,!this.precpred(this.context,9))throw this.createFailedPredicateException("this.precpred(this.context, 9)");this.state=1954,this.errorHandler.sync(this),s=this.tokenStream.LA(1),115===s&&(this.state=1953,this.match(t.NOT)),this.state=1956,this.match(t.BETWEEN),this.state=1957,this.columnExpression(0),this.state=1958,this.match(t.AND),this.state=1959,this.columnExpression(10);break;case 7:if(r=new _H(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1961,!this.precpred(this.context,8))throw this.createFailedPredicateException("this.precpred(this.context, 8)");this.state=1962,this.match(t.QUESTIONMARK),this.state=1963,this.columnExpression(0),this.state=1964,this.match(t.COLON),this.state=1965,this.columnExpression(8);break;case 8:if(r=new IH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1967,!this.precpred(this.context,19))throw this.createFailedPredicateException("this.precpred(this.context, 19)");this.state=1968,this.match(t.LBRACKET),this.state=1969,this.columnExpression(0),this.state=1970,this.match(t.RBRACKET);break;case 9:if(r=new MH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1972,!this.precpred(this.context,18))throw this.createFailedPredicateException("this.precpred(this.context, 18)");this.state=1973,this.match(t.DOT),this.state=1974,this.match(t.DECIMAL_LITERAL);break;case 10:if(r=new nH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1975,!this.precpred(this.context,13))throw this.createFailedPredicateException("this.precpred(this.context, 13)");this.state=1976,this.match(t.IS),this.state=1978,this.errorHandler.sync(this),s=this.tokenStream.LA(1),115===s&&(this.state=1977,this.match(t.NOT)),this.state=1980,this.match(t.NULL_SQL);break;case 11:if(r=new mH(new cH(a,i)),this.pushNewRecursionContext(r,n,t.RULE_columnExpression),this.state=1981,!this.precpred(this.context,7))throw this.createFailedPredicateException("this.precpred(this.context, 7)");switch(this.state=1985,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DATE:case t.FIRST:case t.ID:case t.KEY:case t.IDENTIFIER:this.state=1982,this.alias();break;case t.AS:this.state=1983,this.match(t.AS),this.state=1984,this.identifier();break;default:throw new he(this)}}this.state=1991,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,257,this.context)}}catch(h){if(!(h instanceof qt))throw h;this.errorHandler.reportError(this,h),this.errorHandler.recover(this,h)}finally{this.unrollRecursionContexts(a)}return r}columnArgumentList(){let e,s=new yH(this.context,this.state);this.enterRule(s,216,t.RULE_columnArgumentList);try{for(this.enterOuterAlt(s,1),this.state=1992,this.columnArgumentExpression(),this.state=1997,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=1993,this.match(t.COMMA),this.state=1994,this.columnArgumentExpression(),this.state=1999,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnArgumentExpression(){let e=new fH(this.context,this.state);this.enterRule(e,218,t.RULE_columnArgumentExpression);try{switch(this.state=2002,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2e3,this.columnLambdaExpression();break;case 2:this.enterOuterAlt(e,2),this.state=2001,this.columnExpression(0)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}columnLambdaExpression(){let e,s=new YH(this.context,this.state);this.enterRule(s,220,t.RULE_columnLambdaExpression);try{switch(this.enterOuterAlt(s,1),this.state=2023,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:for(this.state=2004,this.match(t.LPAREN),this.state=2005,this.identifier(),this.state=2010,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=2006,this.match(t.COMMA),this.state=2007,this.identifier(),this.state=2012,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2013,this.match(t.RPAREN);break;case t.AFTER:case t.ALIAS:case t.ALL:case t.ALTER:case t.AND:case t.ANTI:case t.ANY:case t.ARRAY:case t.AS:case t.ASCENDING:case t.ASOF:case t.AST:case t.ASYNC:case t.ATTACH:case t.BETWEEN:case t.BOTH:case t.BY:case t.CASE:case t.CAST:case t.CHECK:case t.CLEAR:case t.CLUSTER:case t.CODEC:case t.COLLATE:case t.COLUMN:case t.COMMENT:case t.CONSTRAINT:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.DATABASE:case t.DATABASES:case t.DATE:case t.DAY:case t.DEDUPLICATE:case t.DEFAULT:case t.DELAY:case t.DELETE:case t.DESC:case t.DESCENDING:case t.DESCRIBE:case t.DETACH:case t.DICTIONARIES:case t.DICTIONARY:case t.DISK:case t.DISTINCT:case t.DISTRIBUTED:case t.DROP:case t.ELSE:case t.END:case t.ENGINE:case t.EVENTS:case t.EXISTS:case t.EXPLAIN:case t.EXPRESSION:case t.EXTRACT:case t.FETCHES:case t.FINAL:case t.FIRST:case t.FLUSH:case t.FOLLOWING:case t.FOR:case t.FORMAT:case t.FREEZE:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOBAL:case t.GRANULARITY:case t.GROUP:case t.HAVING:case t.HIERARCHICAL:case t.HOUR:case t.ID:case t.IF:case t.ILIKE:case t.IN:case t.INDEX:case t.INJECTIVE:case t.INNER:case t.INSERT:case t.INTERVAL:case t.INTO:case t.IS:case t.IS_OBJECT_ID:case t.JOIN:case t.KEY:case t.KILL:case t.LAST:case t.LAYOUT:case t.LEADING:case t.LEFT:case t.LIFETIME:case t.LIKE:case t.LIMIT:case t.LIVE:case t.LOCAL:case t.LOGS:case t.MATERIALIZE:case t.MATERIALIZED:case t.MAX:case t.MERGES:case t.MIN:case t.MINUTE:case t.MODIFY:case t.MONTH:case t.MOVE:case t.MUTATION:case t.NO:case t.NOT:case t.NULLS:case t.OFFSET:case t.ON:case t.OPTIMIZE:case t.OR:case t.ORDER:case t.OUTER:case t.OUTFILE:case t.OVER:case t.PARTITION:case t.POPULATE:case t.PRECEDING:case t.PREWHERE:case t.PRIMARY:case t.QUARTER:case t.RANGE:case t.RELOAD:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICA:case t.REPLICATED:case t.RIGHT:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SECOND:case t.SELECT:case t.SEMI:case t.SENDS:case t.SET:case t.SETTINGS:case t.SHOW:case t.SOURCE:case t.START:case t.STOP:case t.SUBSTRING:case t.SYNC:case t.SYNTAX:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TEMPORARY:case t.TEST:case t.THEN:case t.TIES:case t.TIMEOUT:case t.TIMESTAMP:case t.TO:case t.TOP:case t.TOTALS:case t.TRAILING:case t.TRIM:case t.TRUNCATE:case t.TTL:case t.TYPE:case t.UNBOUNDED:case t.UNION:case t.UPDATE:case t.USE:case t.USING:case t.UUID:case t.VALUES:case t.VIEW:case t.VOLUME:case t.WATCH:case t.WEEK:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.YEAR:case t.JSON_FALSE:case t.JSON_TRUE:case t.IDENTIFIER:for(this.state=2015,this.identifier(),this.state=2020,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=2016,this.match(t.COMMA),this.state=2017,this.identifier(),this.state=2022,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}this.state=2025,this.match(t.ARROW),this.state=2026,this.columnExpression(0)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}columnIdentifier(){let e=new wH(this.context,this.state);this.enterRule(e,222,t.RULE_columnIdentifier);try{if(this.enterOuterAlt(e,1),1===(this.state=2031,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)))this.state=2028,this.tableIdentifier(),this.state=2029,this.match(t.DOT);if(1===(this.state=2033,this.identifier(),this.state=2036,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2034,this.match(t.DOT),this.state=2035,this.identifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableExpression(e){void 0===e&&(e=0);let s=this.context,a=this.state,i=new bH(this.context,a),r=i;this.enterRecursionRule(i,224,t.RULE_tableExpression,e);try{let e;switch(this.enterOuterAlt(i,1),this.state=2045,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)){case 1:i=new VH(i),this.context=i,r=i,this.state=2039,this.tableIdentifier();break;case 2:i=new WH(i),this.context=i,r=i,this.state=2040,this.tableFunctionExpression();break;case 3:i=new KH(i),this.context=i,r=i,this.state=2041,this.match(t.LPAREN),this.state=2042,this.selectUnionStatement(),this.state=2043,this.match(t.RPAREN)}for(this.context.stop=this.tokenStream.LT(-1),this.state=2055,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,267,this.context);2!==e&&e!==q.INVALID_ALT_NUMBER;){if(1===e){if(null!=this.parseListeners&&this.triggerExitRuleEvent(),r=i,i=new XH(new bH(s,a)),this.pushNewRecursionContext(i,224,t.RULE_tableExpression),this.state=2047,!this.precpred(this.context,1))throw this.createFailedPredicateException("this.precpred(this.context, 1)");switch(this.state=2051,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DATE:case t.FIRST:case t.ID:case t.KEY:case t.IDENTIFIER:this.state=2048,this.alias();break;case t.AS:this.state=2049,this.match(t.AS),this.state=2050,this.identifier();break;default:throw new he(this)}}this.state=2057,this.errorHandler.sync(this),e=this.interpreter.adaptivePredict(this.tokenStream,267,this.context)}}catch(c){if(!(c instanceof qt))throw c;this.errorHandler.reportError(this,c),this.errorHandler.recover(this,c)}finally{this.unrollRecursionContexts(s)}return i}tableFunctionExpression(){let e,s=new QH(this.context,this.state);this.enterRule(s,226,t.RULE_tableFunctionExpression);try{this.enterOuterAlt(s,1),this.state=2058,this.identifier(),this.state=2059,this.match(t.LPAREN),this.state=2061,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772991||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&2147483647||!(e-129&-32)&&1<<e-129&4294967215||!(e-161&-32)&&1<<e-161&4294950911||!(e-193&-32)&&1<<e-193&1074136063)&&(this.state=2060,this.tableArgList()),this.state=2063,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableIdentifier(){let e=new JH(this.context,this.state);this.enterRule(e,228,t.RULE_tableIdentifier);try{if(this.enterOuterAlt(e,1),1===(this.state=2068,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2065,this.databaseIdentifier(),this.state=2066,this.match(t.DOT);this.state=2070,this.identifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tableArgList(){let e,s=new ZH(this.context,this.state);this.enterRule(s,230,t.RULE_tableArgList);try{for(this.enterOuterAlt(s,1),this.state=2072,this.tableArgExpression(),this.state=2077,this.errorHandler.sync(this),e=this.tokenStream.LA(1);208===e;)this.state=2073,this.match(t.COMMA),this.state=2074,this.tableArgExpression(),this.state=2079,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}tableArgExpression(){let e=new qH(this.context,this.state);this.enterRule(e,232,t.RULE_tableArgExpression);try{switch(this.state=2083,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2080,this.columnIdentifier();break;case 2:this.enterOuterAlt(e,2),this.state=2081,this.tableFunctionExpression();break;case 3:this.enterOuterAlt(e,3),this.state=2082,this.literal()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}databaseIdentifier(){let e=new jH(this.context,this.state);this.enterRule(e,234,t.RULE_databaseIdentifier);try{this.enterOuterAlt(e,1),this.state=2085,this.identifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}floatingLiteral(){let e,s=new zH(this.context,this.state);this.enterRule(s,236,t.RULE_floatingLiteral);try{switch(this.state=2095,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.FLOATING_LITERAL:this.enterOuterAlt(s,1),this.state=2087,this.match(t.FLOATING_LITERAL);break;case t.DOT:this.enterOuterAlt(s,2),this.state=2088,this.match(t.DOT),this.state=2089,e=this.tokenStream.LA(1),199===e||200===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.DECIMAL_LITERAL:if(1===(this.enterOuterAlt(s,3),this.state=2090,this.match(t.DECIMAL_LITERAL),this.state=2091,this.match(t.DOT),this.state=2093,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,272,this.context)))this.state=2092,e=this.tokenStream.LA(1),199===e||200===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}numberLiteral(){let e,s=new $H(this.context,this.state);this.enterRule(s,238,t.RULE_numberLiteral);try{switch(this.enterOuterAlt(s,1),this.state=2098,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(210===e||223===e)&&(this.state=2097,e=this.tokenStream.LA(1),210===e||223===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2106,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,275,this.context)){case 1:this.state=2100,this.floatingLiteral();break;case 2:this.state=2101,this.match(t.OCTAL_LITERAL);break;case 3:this.state=2102,this.match(t.DECIMAL_LITERAL);break;case 4:this.state=2103,this.match(t.HEXADECIMAL_LITERAL);break;case 5:this.state=2104,this.match(t.INF);break;case 6:this.state=2105,this.match(t.NAN_SQL)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}literal(){let e=new tG(this.context,this.state);this.enterRule(e,240,t.RULE_literal);try{switch(this.state=2111,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.INF:case t.NAN_SQL:case t.FLOATING_LITERAL:case t.OCTAL_LITERAL:case t.DECIMAL_LITERAL:case t.HEXADECIMAL_LITERAL:case t.DASH:case t.DOT:case t.PLUS:this.enterOuterAlt(e,1),this.state=2108,this.numberLiteral();break;case t.STRING_LITERAL:this.enterOuterAlt(e,2),this.state=2109,this.match(t.STRING_LITERAL);break;case t.NULL_SQL:this.enterOuterAlt(e,3),this.state=2110,this.match(t.NULL_SQL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}interval(){let e,s=new eG(this.context,this.state);this.enterRule(s,242,t.RULE_interval);try{this.enterOuterAlt(s,1),this.state=2113,e=this.tokenStream.LA(1),36===e||76===e||!(e-108&-32)&&1<<e-108&67108869||148===e||189===e||194===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword(){let e,s=new sG(this.context,this.state);this.enterRule(s,244,t.RULE_keyword);try{this.enterOuterAlt(s,1),this.state=2115,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&4294967292||!(e-32&-32)&&1<<e-32&4290772975||!(e-64&-32)&&1<<e-64&4294701055||!(e-96&-32)&&1<<e-96&2146283519||!(e-129&-32)&&1<<e-129&4294442895||!(e-161&-32)&&1<<e-161&4026515455||!(e-193&-32)&&1<<e-193&13?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keywordForAlias(){let e,s=new aG(this.context,this.state);this.enterRule(s,246,t.RULE_keywordForAlias);try{this.enterOuterAlt(s,1),this.state=2117,e=this.tokenStream.LA(1),35===e||62===e||77===e||91===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alias(){let e=new iG(this.context,this.state);this.enterRule(e,248,t.RULE_alias);try{switch(this.state=2121,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IDENTIFIER:this.enterOuterAlt(e,1),this.state=2119,this.match(t.IDENTIFIER);break;case t.DATE:case t.FIRST:case t.ID:case t.KEY:this.enterOuterAlt(e,2),this.state=2120,this.keywordForAlias();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}identifier(){let e=new rG(this.context,this.state);this.enterRule(e,250,t.RULE_identifier);try{switch(this.state=2126,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IDENTIFIER:this.enterOuterAlt(e,1),this.state=2123,this.match(t.IDENTIFIER);break;case t.DAY:case t.HOUR:case t.MINUTE:case t.MONTH:case t.QUARTER:case t.SECOND:case t.WEEK:case t.YEAR:this.enterOuterAlt(e,2),this.state=2124,this.interval();break;case t.AFTER:case t.ALIAS:case t.ALL:case t.ALTER:case t.AND:case t.ANTI:case t.ANY:case t.ARRAY:case t.AS:case t.ASCENDING:case t.ASOF:case t.AST:case t.ASYNC:case t.ATTACH:case t.BETWEEN:case t.BOTH:case t.BY:case t.CASE:case t.CAST:case t.CHECK:case t.CLEAR:case t.CLUSTER:case t.CODEC:case t.COLLATE:case t.COLUMN:case t.COMMENT:case t.CONSTRAINT:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.DATABASE:case t.DATABASES:case t.DATE:case t.DEDUPLICATE:case t.DEFAULT:case t.DELAY:case t.DELETE:case t.DESC:case t.DESCENDING:case t.DESCRIBE:case t.DETACH:case t.DICTIONARIES:case t.DICTIONARY:case t.DISK:case t.DISTINCT:case t.DISTRIBUTED:case t.DROP:case t.ELSE:case t.END:case t.ENGINE:case t.EVENTS:case t.EXISTS:case t.EXPLAIN:case t.EXPRESSION:case t.EXTRACT:case t.FETCHES:case t.FINAL:case t.FIRST:case t.FLUSH:case t.FOLLOWING:case t.FOR:case t.FORMAT:case t.FREEZE:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOBAL:case t.GRANULARITY:case t.GROUP:case t.HAVING:case t.HIERARCHICAL:case t.ID:case t.IF:case t.ILIKE:case t.IN:case t.INDEX:case t.INJECTIVE:case t.INNER:case t.INSERT:case t.INTERVAL:case t.INTO:case t.IS:case t.IS_OBJECT_ID:case t.JOIN:case t.KEY:case t.KILL:case t.LAST:case t.LAYOUT:case t.LEADING:case t.LEFT:case t.LIFETIME:case t.LIKE:case t.LIMIT:case t.LIVE:case t.LOCAL:case t.LOGS:case t.MATERIALIZE:case t.MATERIALIZED:case t.MAX:case t.MERGES:case t.MIN:case t.MODIFY:case t.MOVE:case t.MUTATION:case t.NO:case t.NOT:case t.NULLS:case t.OFFSET:case t.ON:case t.OPTIMIZE:case t.OR:case t.ORDER:case t.OUTER:case t.OUTFILE:case t.OVER:case t.PARTITION:case t.POPULATE:case t.PRECEDING:case t.PREWHERE:case t.PRIMARY:case t.RANGE:case t.RELOAD:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICA:case t.REPLICATED:case t.RIGHT:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SELECT:case t.SEMI:case t.SENDS:case t.SET:case t.SETTINGS:case t.SHOW:case t.SOURCE:case t.START:case t.STOP:case t.SUBSTRING:case t.SYNC:case t.SYNTAX:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TEMPORARY:case t.TEST:case t.THEN:case t.TIES:case t.TIMEOUT:case t.TIMESTAMP:case t.TO:case t.TOP:case t.TOTALS:case t.TRAILING:case t.TRIM:case t.TRUNCATE:case t.TTL:case t.TYPE:case t.UNBOUNDED:case t.UNION:case t.UPDATE:case t.USE:case t.USING:case t.UUID:case t.VALUES:case t.VIEW:case t.VOLUME:case t.WATCH:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.JSON_FALSE:case t.JSON_TRUE:this.enterOuterAlt(e,3),this.state=2125,this.keyword();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}identifierOrNull(){let e=new cG(this.context,this.state);this.enterRule(e,252,t.RULE_identifierOrNull);try{switch(this.state=2130,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AFTER:case t.ALIAS:case t.ALL:case t.ALTER:case t.AND:case t.ANTI:case t.ANY:case t.ARRAY:case t.AS:case t.ASCENDING:case t.ASOF:case t.AST:case t.ASYNC:case t.ATTACH:case t.BETWEEN:case t.BOTH:case t.BY:case t.CASE:case t.CAST:case t.CHECK:case t.CLEAR:case t.CLUSTER:case t.CODEC:case t.COLLATE:case t.COLUMN:case t.COMMENT:case t.CONSTRAINT:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.DATABASE:case t.DATABASES:case t.DATE:case t.DAY:case t.DEDUPLICATE:case t.DEFAULT:case t.DELAY:case t.DELETE:case t.DESC:case t.DESCENDING:case t.DESCRIBE:case t.DETACH:case t.DICTIONARIES:case t.DICTIONARY:case t.DISK:case t.DISTINCT:case t.DISTRIBUTED:case t.DROP:case t.ELSE:case t.END:case t.ENGINE:case t.EVENTS:case t.EXISTS:case t.EXPLAIN:case t.EXPRESSION:case t.EXTRACT:case t.FETCHES:case t.FINAL:case t.FIRST:case t.FLUSH:case t.FOLLOWING:case t.FOR:case t.FORMAT:case t.FREEZE:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOBAL:case t.GRANULARITY:case t.GROUP:case t.HAVING:case t.HIERARCHICAL:case t.HOUR:case t.ID:case t.IF:case t.ILIKE:case t.IN:case t.INDEX:case t.INJECTIVE:case t.INNER:case t.INSERT:case t.INTERVAL:case t.INTO:case t.IS:case t.IS_OBJECT_ID:case t.JOIN:case t.KEY:case t.KILL:case t.LAST:case t.LAYOUT:case t.LEADING:case t.LEFT:case t.LIFETIME:case t.LIKE:case t.LIMIT:case t.LIVE:case t.LOCAL:case t.LOGS:case t.MATERIALIZE:case t.MATERIALIZED:case t.MAX:case t.MERGES:case t.MIN:case t.MINUTE:case t.MODIFY:case t.MONTH:case t.MOVE:case t.MUTATION:case t.NO:case t.NOT:case t.NULLS:case t.OFFSET:case t.ON:case t.OPTIMIZE:case t.OR:case t.ORDER:case t.OUTER:case t.OUTFILE:case t.OVER:case t.PARTITION:case t.POPULATE:case t.PRECEDING:case t.PREWHERE:case t.PRIMARY:case t.QUARTER:case t.RANGE:case t.RELOAD:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICA:case t.REPLICATED:case t.RIGHT:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SECOND:case t.SELECT:case t.SEMI:case t.SENDS:case t.SET:case t.SETTINGS:case t.SHOW:case t.SOURCE:case t.START:case t.STOP:case t.SUBSTRING:case t.SYNC:case t.SYNTAX:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TEMPORARY:case t.TEST:case t.THEN:case t.TIES:case t.TIMEOUT:case t.TIMESTAMP:case t.TO:case t.TOP:case t.TOTALS:case t.TRAILING:case t.TRIM:case t.TRUNCATE:case t.TTL:case t.TYPE:case t.UNBOUNDED:case t.UNION:case t.UPDATE:case t.USE:case t.USING:case t.UUID:case t.VALUES:case t.VIEW:case t.VOLUME:case t.WATCH:case t.WEEK:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.YEAR:case t.JSON_FALSE:case t.JSON_TRUE:case t.IDENTIFIER:this.enterOuterAlt(e,1),this.state=2128,this.identifier();break;case t.NULL_SQL:this.enterOuterAlt(e,2),this.state=2129,this.match(t.NULL_SQL);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}enumValue(){let e=new nG(this.context,this.state);this.enterRule(e,254,t.RULE_enumValue);try{this.enterOuterAlt(e,1),this.state=2132,this.match(t.STRING_LITERAL),this.state=2133,this.match(t.EQ_SINGLE),this.state=2134,this.numberLiteral()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sempred(t,e,s){switch(e){case 24:return this.dictionaryAttributeDefinition_sempred(t,s);case 25:return this.dictionaryEngineClause_sempred(t,s);case 38:return this.engineClause_sempred(t,s);case 81:return this.joinExpression_sempred(t,s);case 107:return this.columnExpression_sempred(t,s);case 112:return this.tableExpression_sempred(t,s)}return!0}dictionaryAttributeDefinition_sempred(t,e){switch(e){case 0:return!t.attrs.has("default");case 1:return!t.attrs.has("expression");case 2:return!t.attrs.has("hierarchical");case 3:return!t.attrs.has("injective");case 4:return!t.attrs.has("is_object_id")}return!0}dictionaryEngineClause_sempred(t,e){switch(e){case 5:return!t.clauses.has("source");case 6:return!t.clauses.has("lifetime");case 7:return!t.clauses.has("layout");case 8:return!t.clauses.has("range");case 9:return!t.clauses.has("settings")}return!0}engineClause_sempred(t,e){switch(e){case 10:return!t.clauses.has("orderByClause");case 11:return!t.clauses.has("partitionByClause");case 12:return!t.clauses.has("primaryKeyClause");case 13:return!t.clauses.has("sampleByClause");case 14:return!t.clauses.has("ttlClause");case 15:return!t.clauses.has("settingsClause")}return!0}joinExpression_sempred(t,e){switch(e){case 16:return this.precpred(this.context,3);case 17:return this.precpred(this.context,4)}return!0}columnExpression_sempred(t,e){switch(e){case 18:return this.precpred(this.context,16);case 19:return this.precpred(this.context,15);case 20:return this.precpred(this.context,14);case 21:return this.precpred(this.context,11);case 22:return this.precpred(this.context,10);case 23:return this.precpred(this.context,9);case 24:return this.precpred(this.context,8);case 25:return this.precpred(this.context,19);case 26:return this.precpred(this.context,18);case 27:return this.precpred(this.context,13);case 28:return this.precpred(this.context,7)}return!0}tableExpression_sempred(t,e){return 29!==e||this.precpred(this.context,1)}static{this._serializedATN=[4,1,235,2137,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,1,0,3,0,258,8,0,1,0,1,0,1,1,1,1,3,1,264,8,1,1,1,1,1,1,1,1,1,3,1,270,8,1,1,2,1,2,1,2,1,2,3,2,276,8,2,1,2,1,2,3,2,280,8,2,1,2,3,2,283,8,2,1,2,3,2,286,8,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,3,3,308,8,3,1,3,3,3,311,8,3,1,4,1,4,1,4,1,4,5,4,317,8,4,10,4,12,4,320,9,4,1,5,1,5,3,5,324,8,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,5,6,335,8,6,10,6,12,6,338,9,6,1,6,1,6,1,7,1,7,1,7,1,7,3,7,346,8,7,1,7,1,7,1,7,5,7,351,8,7,10,7,12,7,354,9,7,1,8,1,8,1,8,1,8,1,8,3,8,361,8,8,1,8,1,8,1,8,3,8,366,8,8,1,8,1,8,1,8,1,8,1,8,3,8,373,8,8,1,8,1,8,1,8,3,8,378,8,8,1,8,1,8,1,8,1,8,1,8,3,8,385,8,8,1,8,1,8,1,8,3,8,390,8,8,1,8,1,8,1,8,1,8,3,8,396,8,8,1,8,1,8,1,8,1,8,3,8,402,8,8,1,8,1,8,1,8,3,8,407,8,8,1,8,1,8,1,8,1,8,3,8,413,8,8,1,8,1,8,1,8,3,8,418,8,8,1,8,1,8,1,8,1,8,3,8,424,8,8,1,8,1,8,1,8,3,8,429,8,8,1,8,1,8,1,8,1,8,3,8,435,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,449,8,8,1,8,1,8,1,8,1,8,1,8,3,8,456,8,8,1,8,1,8,1,8,1,8,1,8,3,8,463,8,8,1,8,1,8,1,8,1,8,1,8,3,8,470,8,8,1,8,1,8,1,8,1,8,3,8,476,8,8,1,8,1,8,1,8,3,8,481,8,8,1,8,1,8,1,8,1,8,3,8,487,8,8,1,8,1,8,1,8,3,8,492,8,8,1,8,1,8,1,8,1,8,3,8,498,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,507,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,517,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,527,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,547,8,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,555,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,570,8,8,1,9,1,9,1,9,5,9,575,8,9,10,9,12,9,578,9,9,1,10,1,10,1,10,1,10,1,11,1,11,1,12,1,12,1,12,1,12,1,12,3,12,591,8,12,1,13,1,13,1,13,1,13,3,13,597,8,13,1,14,1,14,1,14,1,14,3,14,603,8,14,1,15,1,15,1,15,1,15,3,15,609,8,15,1,15,3,15,612,8,15,1,16,1,16,1,16,1,16,3,16,618,8,16,1,16,3,16,621,8,16,1,16,3,16,624,8,16,1,16,1,16,1,16,1,16,3,16,630,8,16,1,16,1,16,3,16,634,8,16,1,16,3,16,637,8,16,1,16,3,16,640,8,16,1,16,3,16,643,8,16,1,16,3,16,646,8,16,1,17,1,17,1,17,1,17,1,17,3,17,653,8,17,1,17,1,17,3,17,657,8,17,1,17,1,17,1,18,1,18,1,18,1,18,3,18,665,8,18,1,18,3,18,668,8,18,1,18,1,18,1,18,1,18,3,18,674,8,18,1,18,1,18,3,18,678,8,18,1,18,3,18,681,8,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,3,19,692,8,19,1,19,1,19,3,19,696,8,19,1,19,3,19,699,8,19,1,19,1,19,1,19,3,19,704,8,19,3,19,706,8,19,1,19,3,19,709,8,19,1,19,3,19,712,8,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,3,20,722,8,20,1,20,1,20,3,20,726,8,20,1,20,3,20,729,8,20,1,20,3,20,732,8,20,1,20,1,20,1,20,3,20,737,8,20,3,20,739,8,20,1,20,1,20,1,21,1,21,1,21,3,21,746,8,21,1,21,1,21,1,21,1,21,3,21,752,8,21,1,21,1,21,3,21,756,8,21,1,21,3,21,759,8,21,1,21,3,21,762,8,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,3,22,772,8,22,1,23,1,23,1,23,1,23,5,23,778,8,23,10,23,12,23,781,9,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,5,24,806,8,24,10,24,12,24,809,9,24,1,25,3,25,812,8,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,5,25,834,8,25,10,25,12,25,837,9,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,3,27,847,8,27,1,27,3,27,850,8,27,1,28,1,28,1,28,1,28,1,28,5,28,857,8,28,10,28,12,28,860,9,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,3,29,876,8,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,5,30,885,8,30,10,30,12,30,888,9,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,3,31,905,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,3,33,918,8,33,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,37,5,37,933,8,37,10,37,12,37,936,9,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,944,8,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,5,38,971,8,38,10,38,12,38,974,9,38,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,5,42,992,8,42,10,42,12,42,995,9,42,1,43,1,43,3,43,999,8,43,1,43,1,43,1,43,3,43,1004,8,43,1,43,3,43,1007,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,1019,8,44,1,45,1,45,1,45,3,45,1024,8,45,1,45,1,45,3,45,1028,8,45,1,45,3,45,1031,8,45,1,45,1,45,3,45,1035,8,45,1,45,1,45,3,45,1039,8,45,1,45,1,45,1,45,3,45,1044,8,45,1,45,3,45,1047,8,45,1,45,1,45,3,45,1051,8,45,3,45,1053,8,45,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,5,49,1073,8,49,10,49,12,49,1076,9,49,1,49,1,49,1,50,1,50,1,50,3,50,1083,8,50,1,50,3,50,1086,8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,1096,8,51,1,52,1,52,3,52,1100,8,52,1,52,1,52,1,53,1,53,1,53,1,53,3,53,1108,8,53,1,53,1,53,3,53,1112,8,53,1,53,1,53,1,53,3,53,1117,8,53,1,53,1,53,3,53,1121,8,53,1,53,1,53,3,53,1125,8,53,1,53,1,53,3,53,1129,8,53,1,53,1,53,3,53,1133,8,53,3,53,1135,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1143,8,54,1,54,1,54,3,54,1147,8,54,1,54,3,54,1150,8,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,3,55,1173,8,55,1,56,1,56,1,56,3,56,1178,8,56,1,56,1,56,1,56,3,56,1183,8,56,1,56,3,56,1186,8,56,1,56,1,56,1,57,1,57,1,57,1,57,5,57,1194,8,57,10,57,12,57,1197,9,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,3,58,1206,8,58,1,58,1,58,3,58,1210,8,58,1,59,1,59,1,59,3,59,1215,8,59,1,59,1,59,1,59,1,59,3,59,1221,8,59,1,59,5,59,1224,8,59,10,59,12,59,1227,9,59,1,60,1,60,1,60,3,60,1232,8,60,1,60,1,60,3,60,1236,8,60,1,61,1,61,1,61,1,61,3,61,1242,8,61,1,61,3,61,1245,8,61,1,61,3,61,1248,8,61,1,61,3,61,1251,8,61,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,5,62,1263,8,62,10,62,12,62,1266,9,62,1,62,3,62,1269,8,62,1,63,1,63,3,63,1273,8,63,1,63,1,63,1,63,3,63,1278,8,63,1,63,3,63,1281,8,63,1,63,1,63,1,64,1,64,1,64,1,64,5,64,1289,8,64,10,64,12,64,1292,9,64,1,65,1,65,1,65,1,65,1,65,3,65,1299,8,65,1,66,3,66,1302,8,66,1,66,1,66,3,66,1306,8,66,1,66,3,66,1309,8,66,1,66,1,66,3,66,1313,8,66,1,66,3,66,1316,8,66,1,66,3,66,1319,8,66,1,66,3,66,1322,8,66,1,66,3,66,1325,8,66,1,66,3,66,1328,8,66,1,66,1,66,3,66,1332,8,66,1,66,1,66,3,66,1336,8,66,1,66,3,66,1339,8,66,1,66,3,66,1342,8,66,1,66,3,66,1345,8,66,1,66,3,66,1348,8,66,1,66,3,66,1351,8,66,1,67,1,67,1,67,1,68,1,68,1,68,1,68,3,68,1360,8,68,1,69,1,69,1,69,1,70,3,70,1366,8,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,3,74,1393,8,74,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,3,79,1415,8,79,1,80,1,80,1,80,1,81,1,81,1,81,3,81,1423,8,81,1,81,3,81,1426,8,81,1,81,1,81,1,81,1,81,3,81,1432,8,81,1,81,1,81,1,81,1,81,1,81,1,81,3,81,1440,8,81,1,81,3,81,1443,8,81,1,81,1,81,1,81,1,81,5,81,1449,8,81,10,81,12,81,1452,9,81,1,82,3,82,1455,8,82,1,82,1,82,1,82,3,82,1460,8,82,1,82,3,82,1463,8,82,1,82,3,82,1466,8,82,1,82,1,82,3,82,1470,8,82,1,82,1,82,3,82,1474,8,82,1,82,3,82,1477,8,82,3,82,1479,8,82,1,82,3,82,1482,8,82,1,82,1,82,3,82,1486,8,82,1,82,1,82,3,82,1490,8,82,1,82,3,82,1493,8,82,3,82,1495,8,82,3,82,1497,8,82,1,83,3,83,1500,8,83,1,83,1,83,1,83,3,83,1505,8,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,3,84,1516,8,84,1,85,1,85,1,85,1,85,3,85,1522,8,85,1,86,1,86,1,86,3,86,1527,8,86,1,87,1,87,1,87,5,87,1532,8,87,10,87,12,87,1535,9,87,1,88,1,88,3,88,1539,8,88,1,88,1,88,3,88,1543,8,88,1,88,1,88,3,88,1547,8,88,1,89,1,89,1,89,3,89,1552,8,89,1,90,1,90,1,90,5,90,1557,8,90,10,90,12,90,1560,9,90,1,91,1,91,1,91,1,91,1,92,3,92,1567,8,92,1,92,3,92,1570,8,92,1,92,3,92,1573,8,92,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,3,96,1592,8,96,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,3,97,1606,8,97,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,3,99,1622,8,99,1,99,3,99,1625,8,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,3,99,1634,8,99,1,99,1,99,3,99,1638,8,99,1,99,1,99,1,99,3,99,1643,8,99,1,99,1,99,1,99,3,99,1648,8,99,1,99,3,99,1651,8,99,3,99,1653,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1675,8,100,1,100,3,100,1678,8,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1689,8,100,1,101,1,101,3,101,1693,8,101,1,101,3,101,1696,8,101,1,101,1,101,3,101,1700,8,101,1,101,1,101,3,101,1704,8,101,1,102,1,102,1,102,1,103,1,103,1,103,3,103,1712,8,103,1,103,1,103,3,103,1716,8,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,5,104,1727,8,104,10,104,12,104,1730,9,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,5,104,1739,8,104,10,104,12,104,1742,9,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,5,104,1751,8,104,10,104,12,104,1754,9,104,1,104,1,104,1,104,1,104,1,104,3,104,1761,8,104,1,104,1,104,3,104,1765,8,104,1,105,1,105,1,105,5,105,1770,8,105,10,105,12,105,1773,9,105,1,106,1,106,1,106,3,106,1778,8,106,1,106,1,106,1,106,1,106,1,106,1,106,3,106,1786,8,106,1,107,1,107,1,107,3,107,1791,8,107,1,107,1,107,1,107,1,107,1,107,4,107,1798,8,107,11,107,12,107,1799,1,107,1,107,3,107,1804,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1835,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1852,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1864,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1874,8,107,1,107,3,107,1877,8,107,1,107,1,107,3,107,1881,8,107,1,107,3,107,1884,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1896,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1913,8,107,1,107,1,107,3,107,1917,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1934,8,107,1,107,3,107,1937,8,107,1,107,1,107,3,107,1941,8,107,1,107,3,107,1944,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1955,8,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,3,107,1979,8,107,1,107,1,107,1,107,1,107,1,107,3,107,1986,8,107,5,107,1988,8,107,10,107,12,107,1991,9,107,1,108,1,108,1,108,5,108,1996,8,108,10,108,12,108,1999,9,108,1,109,1,109,3,109,2003,8,109,1,110,1,110,1,110,1,110,5,110,2009,8,110,10,110,12,110,2012,9,110,1,110,1,110,1,110,1,110,1,110,5,110,2019,8,110,10,110,12,110,2022,9,110,3,110,2024,8,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,2032,8,111,1,111,1,111,1,111,3,111,2037,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,3,112,2046,8,112,1,112,1,112,1,112,1,112,3,112,2052,8,112,5,112,2054,8,112,10,112,12,112,2057,9,112,1,113,1,113,1,113,3,113,2062,8,113,1,113,1,113,1,114,1,114,1,114,3,114,2069,8,114,1,114,1,114,1,115,1,115,1,115,5,115,2076,8,115,10,115,12,115,2079,9,115,1,116,1,116,1,116,3,116,2084,8,116,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,3,118,2094,8,118,3,118,2096,8,118,1,119,3,119,2099,8,119,1,119,1,119,1,119,1,119,1,119,1,119,3,119,2107,8,119,1,120,1,120,1,120,3,120,2112,8,120,1,121,1,121,1,122,1,122,1,123,1,123,1,124,1,124,3,124,2122,8,124,1,125,1,125,1,125,3,125,2127,8,125,1,126,1,126,3,126,2131,8,126,1,127,1,127,1,127,1,127,1,127,0,3,162,214,224,128,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,0,28,6,0,3,3,24,24,27,27,38,38,104,104,177,177,2,0,15,15,29,29,3,0,3,3,38,38,104,104,2,0,41,41,43,43,2,0,44,44,50,50,3,0,14,14,159,159,165,165,2,0,31,31,144,144,2,0,84,84,96,96,2,0,71,71,101,101,3,0,4,4,8,8,12,12,4,0,4,4,7,8,12,12,150,150,2,0,96,96,143,143,2,0,4,4,8,8,2,0,118,118,208,208,2,0,11,11,41,42,2,0,62,62,93,93,2,0,136,136,146,146,2,0,68,68,80,80,1,0,156,157,3,0,17,17,95,95,173,173,3,0,204,204,222,222,231,231,2,0,209,210,223,223,2,0,79,79,98,98,1,0,199,200,2,0,210,210,223,223,8,0,36,36,76,76,108,108,110,110,134,134,148,148,189,189,194,194,15,0,2,35,37,53,55,75,77,81,83,107,109,109,111,112,114,115,117,126,129,132,136,147,149,174,176,188,190,193,195,196,4,0,35,35,62,62,77,77,91,91,2428,0,257,1,0,0,0,2,269,1,0,0,0,4,285,1,0,0,0,6,310,1,0,0,0,8,312,1,0,0,0,10,321,1,0,0,0,12,330,1,0,0,0,14,341,1,0,0,0,16,569,1,0,0,0,18,571,1,0,0,0,20,579,1,0,0,0,22,583,1,0,0,0,24,590,1,0,0,0,26,592,1,0,0,0,28,598,1,0,0,0,30,604,1,0,0,0,32,620,1,0,0,0,34,647,1,0,0,0,36,667,1,0,0,0,38,685,1,0,0,0,40,715,1,0,0,0,42,742,1,0,0,0,44,771,1,0,0,0,46,773,1,0,0,0,48,784,1,0,0,0,50,811,1,0,0,0,52,838,1,0,0,0,54,842,1,0,0,0,56,851,1,0,0,0,58,864,1,0,0,0,60,879,1,0,0,0,62,892,1,0,0,0,64,908,1,0,0,0,66,913,1,0,0,0,68,919,1,0,0,0,70,922,1,0,0,0,72,925,1,0,0,0,74,943,1,0,0,0,76,945,1,0,0,0,78,975,1,0,0,0,80,979,1,0,0,0,82,983,1,0,0,0,84,987,1,0,0,0,86,996,1,0,0,0,88,1018,1,0,0,0,90,1052,1,0,0,0,92,1054,1,0,0,0,94,1057,1,0,0,0,96,1064,1,0,0,0,98,1067,1,0,0,0,100,1079,1,0,0,0,102,1087,1,0,0,0,104,1097,1,0,0,0,106,1134,1,0,0,0,108,1149,1,0,0,0,110,1172,1,0,0,0,112,1174,1,0,0,0,114,1189,1,0,0,0,116,1209,1,0,0,0,118,1211,1,0,0,0,120,1228,1,0,0,0,122,1237,1,0,0,0,124,1252,1,0,0,0,126,1270,1,0,0,0,128,1284,1,0,0,0,130,1298,1,0,0,0,132,1301,1,0,0,0,134,1352,1,0,0,0,136,1355,1,0,0,0,138,1361,1,0,0,0,140,1365,1,0,0,0,142,1371,1,0,0,0,144,1378,1,0,0,0,146,1381,1,0,0,0,148,1384,1,0,0,0,150,1394,1,0,0,0,152,1397,1,0,0,0,154,1401,1,0,0,0,156,1405,1,0,0,0,158,1410,1,0,0,0,160,1416,1,0,0,0,162,1431,1,0,0,0,164,1496,1,0,0,0,166,1504,1,0,0,0,168,1515,1,0,0,0,170,1517,1,0,0,0,172,1523,1,0,0,0,174,1528,1,0,0,0,176,1536,1,0,0,0,178,1548,1,0,0,0,180,1553,1,0,0,0,182,1561,1,0,0,0,184,1566,1,0,0,0,186,1574,1,0,0,0,188,1578,1,0,0,0,190,1582,1,0,0,0,192,1591,1,0,0,0,194,1605,1,0,0,0,196,1607,1,0,0,0,198,1652,1,0,0,0,200,1688,1,0,0,0,202,1690,1,0,0,0,204,1705,1,0,0,0,206,1708,1,0,0,0,208,1764,1,0,0,0,210,1766,1,0,0,0,212,1785,1,0,0,0,214,1916,1,0,0,0,216,1992,1,0,0,0,218,2002,1,0,0,0,220,2023,1,0,0,0,222,2031,1,0,0,0,224,2045,1,0,0,0,226,2058,1,0,0,0,228,2068,1,0,0,0,230,2072,1,0,0,0,232,2083,1,0,0,0,234,2085,1,0,0,0,236,2095,1,0,0,0,238,2098,1,0,0,0,240,2111,1,0,0,0,242,2113,1,0,0,0,244,2115,1,0,0,0,246,2117,1,0,0,0,248,2121,1,0,0,0,250,2126,1,0,0,0,252,2130,1,0,0,0,254,2132,1,0,0,0,256,258,3,2,1,0,257,256,1,0,0,0,257,258,1,0,0,0,258,259,1,0,0,0,259,260,5,0,0,1,260,1,1,0,0,0,261,263,3,4,2,0,262,264,5,230,0,0,263,262,1,0,0,0,263,264,1,0,0,0,264,270,1,0,0,0,265,266,3,4,2,0,266,267,5,230,0,0,267,268,3,2,1,0,268,270,1,0,0,0,269,261,1,0,0,0,269,265,1,0,0,0,270,3,1,0,0,0,271,275,3,6,3,0,272,273,5,87,0,0,273,274,5,124,0,0,274,276,5,202,0,0,275,272,1,0,0,0,275,276,1,0,0,0,276,279,1,0,0,0,277,278,5,66,0,0,278,280,3,252,126,0,279,277,1,0,0,0,279,280,1,0,0,0,280,282,1,0,0,0,281,283,5,230,0,0,282,281,1,0,0,0,282,283,1,0,0,0,283,286,1,0,0,0,284,286,3,112,56,0,285,271,1,0,0,0,285,284,1,0,0,0,286,5,1,0,0,0,287,311,3,14,7,0,288,311,3,26,13,0,289,311,3,28,14,0,290,311,3,44,22,0,291,311,3,104,52,0,292,311,3,30,15,0,293,311,3,106,53,0,294,311,3,108,54,0,295,311,3,110,55,0,296,311,3,120,60,0,297,311,3,122,61,0,298,311,3,124,62,0,299,311,3,128,64,0,300,311,3,196,98,0,301,311,3,198,99,0,302,311,3,200,100,0,303,311,3,202,101,0,304,311,3,204,102,0,305,311,3,206,103,0,306,308,3,8,4,0,307,306,1,0,0,0,307,308,1,0,0,0,308,309,1,0,0,0,309,311,3,132,66,0,310,287,1,0,0,0,310,288,1,0,0,0,310,289,1,0,0,0,310,290,1,0,0,0,310,291,1,0,0,0,310,292,1,0,0,0,310,293,1,0,0,0,310,294,1,0,0,0,310,295,1,0,0,0,310,296,1,0,0,0,310,297,1,0,0,0,310,298,1,0,0,0,310,299,1,0,0,0,310,300,1,0,0,0,310,301,1,0,0,0,310,302,1,0,0,0,310,303,1,0,0,0,310,304,1,0,0,0,310,305,1,0,0,0,310,307,1,0,0,0,311,7,1,0,0,0,312,313,5,193,0,0,313,318,3,10,5,0,314,315,5,208,0,0,315,317,3,10,5,0,316,314,1,0,0,0,317,320,1,0,0,0,318,316,1,0,0,0,318,319,1,0,0,0,319,9,1,0,0,0,320,318,1,0,0,0,321,323,3,250,125,0,322,324,3,12,6,0,323,322,1,0,0,0,323,324,1,0,0,0,324,325,1,0,0,0,325,326,5,10,0,0,326,327,5,219,0,0,327,328,3,6,3,0,328,329,5,229,0,0,329,11,1,0,0,0,330,331,5,219,0,0,331,336,3,250,125,0,332,333,5,208,0,0,333,335,3,250,125,0,334,332,1,0,0,0,335,338,1,0,0,0,336,334,1,0,0,0,336,337,1,0,0,0,337,339,1,0,0,0,338,336,1,0,0,0,339,340,5,229,0,0,340,13,1,0,0,0,341,342,5,5,0,0,342,343,5,162,0,0,343,345,3,228,114,0,344,346,3,66,33,0,345,344,1,0,0,0,345,346,1,0,0,0,346,347,1,0,0,0,347,352,3,16,8,0,348,349,5,208,0,0,349,351,3,16,8,0,350,348,1,0,0,0,351,354,1,0,0,0,352,350,1,0,0,0,352,353,1,0,0,0,353,15,1,0,0,0,354,352,1,0,0,0,355,356,5,1,0,0,356,360,5,26,0,0,357,358,5,78,0,0,358,359,5,115,0,0,359,361,5,56,0,0,360,357,1,0,0,0,360,361,1,0,0,0,361,362,1,0,0,0,362,365,3,90,45,0,363,364,5,2,0,0,364,366,3,222,111,0,365,363,1,0,0,0,365,366,1,0,0,0,366,570,1,0,0,0,367,368,5,1,0,0,368,372,5,81,0,0,369,370,5,78,0,0,370,371,5,115,0,0,371,373,5,56,0,0,372,369,1,0,0,0,372,373,1,0,0,0,373,374,1,0,0,0,374,377,3,94,47,0,375,376,5,2,0,0,376,378,3,222,111,0,377,375,1,0,0,0,377,378,1,0,0,0,378,570,1,0,0,0,379,380,5,1,0,0,380,384,5,133,0,0,381,382,5,78,0,0,382,383,5,115,0,0,383,385,5,56,0,0,384,381,1,0,0,0,384,385,1,0,0,0,385,386,1,0,0,0,386,389,3,96,48,0,387,388,5,2,0,0,388,390,3,222,111,0,389,387,1,0,0,0,389,390,1,0,0,0,390,570,1,0,0,0,391,392,5,15,0,0,392,395,3,24,12,0,393,394,5,68,0,0,394,396,3,228,114,0,395,393,1,0,0,0,395,396,1,0,0,0,396,570,1,0,0,0,397,398,5,22,0,0,398,401,5,26,0,0,399,400,5,78,0,0,400,402,5,56,0,0,401,399,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,406,3,222,111,0,404,405,5,80,0,0,405,407,3,24,12,0,406,404,1,0,0,0,406,407,1,0,0,0,407,570,1,0,0,0,408,409,5,22,0,0,409,412,5,81,0,0,410,411,5,78,0,0,411,413,5,56,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,414,1,0,0,0,414,417,3,222,111,0,415,416,5,80,0,0,416,418,3,24,12,0,417,415,1,0,0,0,417,418,1,0,0,0,418,570,1,0,0,0,419,420,5,22,0,0,420,423,5,133,0,0,421,422,5,78,0,0,422,424,5,56,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,425,1,0,0,0,425,428,3,222,111,0,426,427,5,80,0,0,427,429,3,24,12,0,428,426,1,0,0,0,428,429,1,0,0,0,429,570,1,0,0,0,430,431,5,27,0,0,431,434,5,26,0,0,432,433,5,78,0,0,433,435,5,56,0,0,434,432,1,0,0,0,434,435,1,0,0,0,435,436,1,0,0,0,436,437,3,222,111,0,437,438,5,202,0,0,438,570,1,0,0,0,439,440,5,40,0,0,440,441,5,191,0,0,441,570,3,214,107,0,442,443,5,44,0,0,443,570,3,24,12,0,444,445,5,50,0,0,445,448,5,26,0,0,446,447,5,78,0,0,447,449,5,56,0,0,448,446,1,0,0,0,448,449,1,0,0,0,449,450,1,0,0,0,450,570,3,222,111,0,451,452,5,50,0,0,452,455,5,81,0,0,453,454,5,78,0,0,454,456,5,56,0,0,455,453,1,0,0,0,455,456,1,0,0,0,456,457,1,0,0,0,457,570,3,222,111,0,458,459,5,50,0,0,459,462,5,133,0,0,460,461,5,78,0,0,461,463,5,56,0,0,462,460,1,0,0,0,462,463,1,0,0,0,463,464,1,0,0,0,464,570,3,222,111,0,465,466,5,50,0,0,466,570,3,24,12,0,467,469,5,67,0,0,468,470,3,24,12,0,469,468,1,0,0,0,469,470,1,0,0,0,470,570,1,0,0,0,471,472,5,103,0,0,472,475,5,81,0,0,473,474,5,78,0,0,474,476,5,56,0,0,475,473,1,0,0,0,475,476,1,0,0,0,476,477,1,0,0,0,477,480,3,222,111,0,478,479,5,80,0,0,479,481,3,24,12,0,480,478,1,0,0,0,480,481,1,0,0,0,481,570,1,0,0,0,482,483,5,103,0,0,483,486,5,133,0,0,484,485,5,78,0,0,485,487,5,56,0,0,486,484,1,0,0,0,486,487,1,0,0,0,487,488,1,0,0,0,488,491,3,222,111,0,489,490,5,80,0,0,490,492,3,24,12,0,491,489,1,0,0,0,491,492,1,0,0,0,492,570,1,0,0,0,493,494,5,109,0,0,494,497,5,26,0,0,495,496,5,78,0,0,496,498,5,56,0,0,497,495,1,0,0,0,497,498,1,0,0,0,498,499,1,0,0,0,499,500,3,222,111,0,500,501,3,98,49,0,501,570,1,0,0,0,502,503,5,109,0,0,503,506,5,26,0,0,504,505,5,78,0,0,505,507,5,56,0,0,506,504,1,0,0,0,506,507,1,0,0,0,507,508,1,0,0,0,508,509,3,222,111,0,509,510,5,27,0,0,510,511,5,202,0,0,511,570,1,0,0,0,512,513,5,109,0,0,513,516,5,26,0,0,514,515,5,78,0,0,515,517,5,56,0,0,516,514,1,0,0,0,516,517,1,0,0,0,517,518,1,0,0,0,518,519,3,222,111,0,519,520,5,138,0,0,520,521,3,22,11,0,521,570,1,0,0,0,522,523,5,109,0,0,523,526,5,26,0,0,524,525,5,78,0,0,525,527,5,56,0,0,526,524,1,0,0,0,526,527,1,0,0,0,527,528,1,0,0,0,528,570,3,90,45,0,529,530,5,109,0,0,530,531,5,122,0,0,531,532,5,18,0,0,532,570,3,214,107,0,533,534,5,109,0,0,534,570,3,84,42,0,535,536,5,111,0,0,536,546,3,24,12,0,537,538,5,170,0,0,538,539,5,47,0,0,539,547,5,202,0,0,540,541,5,170,0,0,541,542,5,187,0,0,542,547,5,202,0,0,543,544,5,170,0,0,544,545,5,162,0,0,545,547,3,228,114,0,546,537,1,0,0,0,546,540,1,0,0,0,546,543,1,0,0,0,547,570,1,0,0,0,548,549,5,138,0,0,549,570,5,177,0,0,550,551,5,139,0,0,551,554,5,26,0,0,552,553,5,78,0,0,553,555,5,56,0,0,554,552,1,0,0,0,554,555,1,0,0,0,555,556,1,0,0,0,556,557,3,222,111,0,557,558,5,170,0,0,558,559,3,222,111,0,559,570,1,0,0,0,560,561,5,140,0,0,561,562,3,24,12,0,562,563,5,68,0,0,563,564,3,228,114,0,564,570,1,0,0,0,565,566,5,181,0,0,566,567,3,18,9,0,567,568,3,146,73,0,568,570,1,0,0,0,569,355,1,0,0,0,569,367,1,0,0,0,569,379,1,0,0,0,569,391,1,0,0,0,569,397,1,0,0,0,569,408,1,0,0,0,569,419,1,0,0,0,569,430,1,0,0,0,569,439,1,0,0,0,569,442,1,0,0,0,569,444,1,0,0,0,569,451,1,0,0,0,569,458,1,0,0,0,569,465,1,0,0,0,569,467,1,0,0,0,569,471,1,0,0,0,569,482,1,0,0,0,569,493,1,0,0,0,569,502,1,0,0,0,569,512,1,0,0,0,569,522,1,0,0,0,569,529,1,0,0,0,569,533,1,0,0,0,569,535,1,0,0,0,569,548,1,0,0,0,569,550,1,0,0,0,569,560,1,0,0,0,569,565,1,0,0,0,570,17,1,0,0,0,571,576,3,20,10,0,572,573,5,208,0,0,573,575,3,20,10,0,574,572,1,0,0,0,575,578,1,0,0,0,576,574,1,0,0,0,576,577,1,0,0,0,577,19,1,0,0,0,578,576,1,0,0,0,579,580,3,222,111,0,580,581,5,213,0,0,581,582,3,214,107,0,582,21,1,0,0,0,583,584,7,0,0,0,584,23,1,0,0,0,585,586,5,126,0,0,586,591,3,214,107,0,587,588,5,126,0,0,588,589,5,77,0,0,589,591,5,202,0,0,590,585,1,0,0,0,590,587,1,0,0,0,591,25,1,0,0,0,592,593,5,15,0,0,593,594,5,46,0,0,594,596,3,228,114,0,595,597,3,66,33,0,596,595,1,0,0,0,596,597,1,0,0,0,597,27,1,0,0,0,598,599,5,21,0,0,599,600,5,162,0,0,600,602,3,228,114,0,601,603,3,24,12,0,602,601,1,0,0,0,602,603,1,0,0,0,603,29,1,0,0,0,604,605,5,40,0,0,605,606,5,68,0,0,606,608,3,228,114,0,607,609,3,66,33,0,608,607,1,0,0,0,608,609,1,0,0,0,609,611,1,0,0,0,610,612,3,146,73,0,611,610,1,0,0,0,611,612,1,0,0,0,612,31,1,0,0,0,613,621,5,15,0,0,614,617,5,29,0,0,615,616,5,121,0,0,616,618,5,140,0,0,617,615,1,0,0,0,617,618,1,0,0,0,618,621,1,0,0,0,619,621,5,140,0,0,620,613,1,0,0,0,620,614,1,0,0,0,620,619,1,0,0,0,621,623,1,0,0,0,622,624,5,164,0,0,623,622,1,0,0,0,623,624,1,0,0,0,624,625,1,0,0,0,625,629,5,162,0,0,626,627,5,78,0,0,627,628,5,115,0,0,628,630,5,56,0,0,629,626,1,0,0,0,629,630,1,0,0,0,630,631,1,0,0,0,631,633,3,228,114,0,632,634,3,68,34,0,633,632,1,0,0,0,633,634,1,0,0,0,634,636,1,0,0,0,635,637,3,66,33,0,636,635,1,0,0,0,636,637,1,0,0,0,637,639,1,0,0,0,638,640,3,74,37,0,639,638,1,0,0,0,639,640,1,0,0,0,640,642,1,0,0,0,641,643,3,76,38,0,642,641,1,0,0,0,642,643,1,0,0,0,643,645,1,0,0,0,644,646,3,72,36,0,645,644,1,0,0,0,645,646,1,0,0,0,646,33,1,0,0,0,647,648,7,1,0,0,648,652,5,33,0,0,649,650,5,78,0,0,650,651,5,115,0,0,651,653,5,56,0,0,652,649,1,0,0,0,652,653,1,0,0,0,653,654,1,0,0,0,654,656,3,250,125,0,655,657,3,66,33,0,656,655,1,0,0,0,656,657,1,0,0,0,657,658,1,0,0,0,658,659,3,86,43,0,659,35,1,0,0,0,660,668,5,15,0,0,661,664,5,29,0,0,662,663,5,121,0,0,663,665,5,140,0,0,664,662,1,0,0,0,664,665,1,0,0,0,665,668,1,0,0,0,666,668,5,140,0,0,667,660,1,0,0,0,667,661,1,0,0,0,667,666,1,0,0,0,668,669,1,0,0,0,669,673,5,46,0,0,670,671,5,78,0,0,671,672,5,115,0,0,672,674,5,56,0,0,673,670,1,0,0,0,673,674,1,0,0,0,674,675,1,0,0,0,675,677,3,228,114,0,676,678,3,68,34,0,677,676,1,0,0,0,677,678,1,0,0,0,678,680,1,0,0,0,679,681,3,66,33,0,680,679,1,0,0,0,680,681,1,0,0,0,681,682,1,0,0,0,682,683,3,46,23,0,683,684,3,50,25,0,684,37,1,0,0,0,685,686,7,1,0,0,686,687,5,100,0,0,687,691,5,186,0,0,688,689,5,78,0,0,689,690,5,115,0,0,690,692,5,56,0,0,691,688,1,0,0,0,691,692,1,0,0,0,692,693,1,0,0,0,693,695,3,228,114,0,694,696,3,68,34,0,695,694,1,0,0,0,695,696,1,0,0,0,696,698,1,0,0,0,697,699,3,66,33,0,698,697,1,0,0,0,698,699,1,0,0,0,699,705,1,0,0,0,700,701,5,193,0,0,701,703,5,168,0,0,702,704,5,200,0,0,703,702,1,0,0,0,703,704,1,0,0,0,704,706,1,0,0,0,705,700,1,0,0,0,705,706,1,0,0,0,706,708,1,0,0,0,707,709,3,70,35,0,708,707,1,0,0,0,708,709,1,0,0,0,709,711,1,0,0,0,710,712,3,74,37,0,711,710,1,0,0,0,711,712,1,0,0,0,712,713,1,0,0,0,713,714,3,72,36,0,714,39,1,0,0,0,715,716,7,1,0,0,716,717,5,104,0,0,717,721,5,186,0,0,718,719,5,78,0,0,719,720,5,115,0,0,720,722,5,56,0,0,721,718,1,0,0,0,721,722,1,0,0,0,722,723,1,0,0,0,723,725,3,228,114,0,724,726,3,68,34,0,725,724,1,0,0,0,725,726,1,0,0,0,726,728,1,0,0,0,727,729,3,66,33,0,728,727,1,0,0,0,728,729,1,0,0,0,729,731,1,0,0,0,730,732,3,74,37,0,731,730,1,0,0,0,731,732,1,0,0,0,732,738,1,0,0,0,733,739,3,70,35,0,734,736,3,76,38,0,735,737,5,129,0,0,736,735,1,0,0,0,736,737,1,0,0,0,737,739,1,0,0,0,738,733,1,0,0,0,738,734,1,0,0,0,739,740,1,0,0,0,740,741,3,72,36,0,741,41,1,0,0,0,742,745,7,1,0,0,743,744,5,121,0,0,744,746,5,140,0,0,745,743,1,0,0,0,745,746,1,0,0,0,746,747,1,0,0,0,747,751,5,186,0,0,748,749,5,78,0,0,749,750,5,115,0,0,750,752,5,56,0,0,751,748,1,0,0,0,751,752,1,0,0,0,752,753,1,0,0,0,753,755,3,228,114,0,754,756,3,68,34,0,755,754,1,0,0,0,755,756,1,0,0,0,756,758,1,0,0,0,757,759,3,66,33,0,758,757,1,0,0,0,758,759,1,0,0,0,759,761,1,0,0,0,760,762,3,74,37,0,761,760,1,0,0,0,761,762,1,0,0,0,762,763,1,0,0,0,763,764,3,72,36,0,764,43,1,0,0,0,765,772,3,34,17,0,766,772,3,36,18,0,767,772,3,38,19,0,768,772,3,40,20,0,769,772,3,32,16,0,770,772,3,42,21,0,771,765,1,0,0,0,771,766,1,0,0,0,771,767,1,0,0,0,771,768,1,0,0,0,771,769,1,0,0,0,771,770,1,0,0,0,772,45,1,0,0,0,773,774,5,219,0,0,774,779,3,48,24,0,775,776,5,208,0,0,776,778,3,48,24,0,777,775,1,0,0,0,778,781,1,0,0,0,779,777,1,0,0,0,779,780,1,0,0,0,780,782,1,0,0,0,781,779,1,0,0,0,782,783,5,229,0,0,783,47,1,0,0,0,784,785,3,250,125,0,785,807,3,208,104,0,786,787,4,24,0,1,787,788,5,38,0,0,788,789,3,240,120,0,789,790,6,24,-1,0,790,806,1,0,0,0,791,792,4,24,1,1,792,793,5,58,0,0,793,794,3,214,107,0,794,795,6,24,-1,0,795,806,1,0,0,0,796,797,4,24,2,1,797,798,5,75,0,0,798,806,6,24,-1,0,799,800,4,24,3,1,800,801,5,83,0,0,801,806,6,24,-1,0,802,803,4,24,4,1,803,804,5,89,0,0,804,806,6,24,-1,0,805,786,1,0,0,0,805,791,1,0,0,0,805,796,1,0,0,0,805,799,1,0,0,0,805,802,1,0,0,0,806,809,1,0,0,0,807,805,1,0,0,0,807,808,1,0,0,0,808,49,1,0,0,0,809,807,1,0,0,0,810,812,3,52,26,0,811,810,1,0,0,0,811,812,1,0,0,0,812,835,1,0,0,0,813,814,4,25,5,1,814,815,3,56,28,0,815,816,6,25,-1,0,816,834,1,0,0,0,817,818,4,25,6,1,818,819,3,58,29,0,819,820,6,25,-1,0,820,834,1,0,0,0,821,822,4,25,7,1,822,823,3,60,30,0,823,824,6,25,-1,0,824,834,1,0,0,0,825,826,4,25,8,1,826,827,3,62,31,0,827,828,6,25,-1,0,828,834,1,0,0,0,829,830,4,25,9,1,830,831,3,64,32,0,831,832,6,25,-1,0,832,834,1,0,0,0,833,813,1,0,0,0,833,817,1,0,0,0,833,821,1,0,0,0,833,825,1,0,0,0,833,829,1,0,0,0,834,837,1,0,0,0,835,833,1,0,0,0,835,836,1,0,0,0,836,51,1,0,0,0,837,835,1,0,0,0,838,839,5,132,0,0,839,840,5,91,0,0,840,841,3,210,105,0,841,53,1,0,0,0,842,849,3,250,125,0,843,846,3,250,125,0,844,845,5,219,0,0,845,847,5,229,0,0,846,844,1,0,0,0,846,847,1,0,0,0,847,850,1,0,0,0,848,850,3,240,120,0,849,843,1,0,0,0,849,848,1,0,0,0,850,55,1,0,0,0,851,852,5,155,0,0,852,853,5,219,0,0,853,854,3,250,125,0,854,858,5,219,0,0,855,857,3,54,27,0,856,855,1,0,0,0,857,860,1,0,0,0,858,856,1,0,0,0,858,859,1,0,0,0,859,861,1,0,0,0,860,858,1,0,0,0,861,862,5,229,0,0,862,863,5,229,0,0,863,57,1,0,0,0,864,865,5,97,0,0,865,875,5,219,0,0,866,876,5,200,0,0,867,868,5,107,0,0,868,869,5,200,0,0,869,870,5,105,0,0,870,876,5,200,0,0,871,872,5,105,0,0,872,873,5,200,0,0,873,874,5,107,0,0,874,876,5,200,0,0,875,866,1,0,0,0,875,867,1,0,0,0,875,871,1,0,0,0,876,877,1,0,0,0,877,878,5,229,0,0,878,59,1,0,0,0,879,880,5,94,0,0,880,881,5,219,0,0,881,882,3,250,125,0,882,886,5,219,0,0,883,885,3,54,27,0,884,883,1,0,0,0,885,888,1,0,0,0,886,884,1,0,0,0,886,887,1,0,0,0,887,889,1,0,0,0,888,886,1,0,0,0,889,890,5,229,0,0,890,891,5,229,0,0,891,61,1,0,0,0,892,893,5,136,0,0,893,904,5,219,0,0,894,895,5,107,0,0,895,896,3,250,125,0,896,897,5,105,0,0,897,898,3,250,125,0,898,905,1,0,0,0,899,900,5,105,0,0,900,901,3,250,125,0,901,902,5,107,0,0,902,903,3,250,125,0,903,905,1,0,0,0,904,894,1,0,0,0,904,899,1,0,0,0,905,906,1,0,0,0,906,907,5,229,0,0,907,63,1,0,0,0,908,909,5,153,0,0,909,910,5,219,0,0,910,911,3,180,90,0,911,912,5,229,0,0,912,65,1,0,0,0,913,914,5,119,0,0,914,917,5,23,0,0,915,918,3,250,125,0,916,918,5,202,0,0,917,915,1,0,0,0,917,916,1,0,0,0,918,67,1,0,0,0,919,920,5,184,0,0,920,921,5,202,0,0,921,69,1,0,0,0,922,923,5,170,0,0,923,924,3,228,114,0,924,71,1,0,0,0,925,926,5,10,0,0,926,927,3,128,64,0,927,73,1,0,0,0,928,929,5,219,0,0,929,934,3,88,44,0,930,931,5,208,0,0,931,933,3,88,44,0,932,930,1,0,0,0,933,936,1,0,0,0,934,932,1,0,0,0,934,935,1,0,0,0,935,937,1,0,0,0,936,934,1,0,0,0,937,938,5,229,0,0,938,944,1,0,0,0,939,940,5,10,0,0,940,944,3,228,114,0,941,942,5,10,0,0,942,944,3,226,113,0,943,928,1,0,0,0,943,939,1,0,0,0,943,941,1,0,0,0,944,75,1,0,0,0,945,972,3,86,43,0,946,947,4,38,10,1,947,948,3,152,76,0,948,949,6,38,-1,0,949,971,1,0,0,0,950,951,4,38,11,1,951,952,3,78,39,0,952,953,6,38,-1,0,953,971,1,0,0,0,954,955,4,38,12,1,955,956,3,80,40,0,956,957,6,38,-1,0,957,971,1,0,0,0,958,959,4,38,13,1,959,960,3,82,41,0,960,961,6,38,-1,0,961,971,1,0,0,0,962,963,4,38,14,1,963,964,3,84,42,0,964,965,6,38,-1,0,965,971,1,0,0,0,966,967,4,38,15,1,967,968,3,160,80,0,968,969,6,38,-1,0,969,971,1,0,0,0,970,946,1,0,0,0,970,950,1,0,0,0,970,954,1,0,0,0,970,958,1,0,0,0,970,962,1,0,0,0,970,966,1,0,0,0,971,974,1,0,0,0,972,970,1,0,0,0,972,973,1,0,0,0,973,77,1,0,0,0,974,972,1,0,0,0,975,976,5,126,0,0,976,977,5,18,0,0,977,978,3,214,107,0,978,79,1,0,0,0,979,980,5,132,0,0,980,981,5,91,0,0,981,982,3,214,107,0,982,81,1,0,0,0,983,984,5,147,0,0,984,985,5,18,0,0,985,986,3,214,107,0,986,83,1,0,0,0,987,988,5,177,0,0,988,993,3,102,51,0,989,990,5,208,0,0,990,992,3,102,51,0,991,989,1,0,0,0,992,995,1,0,0,0,993,991,1,0,0,0,993,994,1,0,0,0,994,85,1,0,0,0,995,993,1,0,0,0,996,998,5,53,0,0,997,999,5,213,0,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1006,3,252,126,0,1001,1003,5,219,0,0,1002,1004,3,210,105,0,1003,1002,1,0,0,0,1003,1004,1,0,0,0,1004,1005,1,0,0,0,1005,1007,5,229,0,0,1006,1001,1,0,0,0,1006,1007,1,0,0,0,1007,87,1,0,0,0,1008,1019,3,90,45,0,1009,1010,5,28,0,0,1010,1011,3,250,125,0,1011,1012,5,21,0,0,1012,1013,3,214,107,0,1013,1019,1,0,0,0,1014,1015,5,81,0,0,1015,1019,3,94,47,0,1016,1017,5,133,0,0,1017,1019,3,96,48,0,1018,1008,1,0,0,0,1018,1009,1,0,0,0,1018,1014,1,0,0,0,1018,1016,1,0,0,0,1019,89,1,0,0,0,1020,1021,3,222,111,0,1021,1023,3,208,104,0,1022,1024,3,92,46,0,1023,1022,1,0,0,0,1023,1024,1,0,0,0,1024,1027,1,0,0,0,1025,1026,5,27,0,0,1026,1028,5,202,0,0,1027,1025,1,0,0,0,1027,1028,1,0,0,0,1028,1030,1,0,0,0,1029,1031,3,98,49,0,1030,1029,1,0,0,0,1030,1031,1,0,0,0,1031,1034,1,0,0,0,1032,1033,5,177,0,0,1033,1035,3,214,107,0,1034,1032,1,0,0,0,1034,1035,1,0,0,0,1035,1053,1,0,0,0,1036,1038,3,222,111,0,1037,1039,3,208,104,0,1038,1037,1,0,0,0,1038,1039,1,0,0,0,1039,1040,1,0,0,0,1040,1043,3,92,46,0,1041,1042,5,27,0,0,1042,1044,5,202,0,0,1043,1041,1,0,0,0,1043,1044,1,0,0,0,1044,1046,1,0,0,0,1045,1047,3,98,49,0,1046,1045,1,0,0,0,1046,1047,1,0,0,0,1047,1050,1,0,0,0,1048,1049,5,177,0,0,1049,1051,3,214,107,0,1050,1048,1,0,0,0,1050,1051,1,0,0,0,1051,1053,1,0,0,0,1052,1020,1,0,0,0,1052,1036,1,0,0,0,1053,91,1,0,0,0,1054,1055,7,2,0,0,1055,1056,3,214,107,0,1056,93,1,0,0,0,1057,1058,3,222,111,0,1058,1059,3,214,107,0,1059,1060,5,178,0,0,1060,1061,3,208,104,0,1061,1062,5,72,0,0,1062,1063,5,200,0,0,1063,95,1,0,0,0,1064,1065,3,222,111,0,1065,1066,3,126,63,0,1066,97,1,0,0,0,1067,1068,5,24,0,0,1068,1069,5,219,0,0,1069,1074,3,100,50,0,1070,1071,5,208,0,0,1071,1073,3,100,50,0,1072,1070,1,0,0,0,1073,1076,1,0,0,0,1074,1072,1,0,0,0,1074,1075,1,0,0,0,1075,1077,1,0,0,0,1076,1074,1,0,0,0,1077,1078,5,229,0,0,1078,99,1,0,0,0,1079,1085,3,250,125,0,1080,1082,5,219,0,0,1081,1083,3,210,105,0,1082,1081,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1086,5,229,0,0,1085,1080,1,0,0,0,1085,1086,1,0,0,0,1086,101,1,0,0,0,1087,1095,3,214,107,0,1088,1096,5,40,0,0,1089,1090,5,170,0,0,1090,1091,5,47,0,0,1091,1096,5,202,0,0,1092,1093,5,170,0,0,1093,1094,5,187,0,0,1094,1096,5,202,0,0,1095,1088,1,0,0,0,1095,1089,1,0,0,0,1095,1092,1,0,0,0,1095,1096,1,0,0,0,1096,103,1,0,0,0,1097,1099,7,3,0,0,1098,1100,5,162,0,0,1099,1098,1,0,0,0,1099,1100,1,0,0,0,1100,1101,1,0,0,0,1101,1102,3,224,112,0,1102,105,1,0,0,0,1103,1104,7,4,0,0,1104,1107,5,33,0,0,1105,1106,5,78,0,0,1106,1108,5,56,0,0,1107,1105,1,0,0,0,1107,1108,1,0,0,0,1108,1109,1,0,0,0,1109,1111,3,234,117,0,1110,1112,3,66,33,0,1111,1110,1,0,0,0,1111,1112,1,0,0,0,1112,1135,1,0,0,0,1113,1120,7,4,0,0,1114,1121,5,46,0,0,1115,1117,5,164,0,0,1116,1115,1,0,0,0,1116,1117,1,0,0,0,1117,1118,1,0,0,0,1118,1121,5,162,0,0,1119,1121,5,186,0,0,1120,1114,1,0,0,0,1120,1116,1,0,0,0,1120,1119,1,0,0,0,1121,1124,1,0,0,0,1122,1123,5,78,0,0,1123,1125,5,56,0,0,1124,1122,1,0,0,0,1124,1125,1,0,0,0,1125,1126,1,0,0,0,1126,1128,3,228,114,0,1127,1129,3,66,33,0,1128,1127,1,0,0,0,1128,1129,1,0,0,0,1129,1132,1,0,0,0,1130,1131,5,114,0,0,1131,1133,5,39,0,0,1132,1130,1,0,0,0,1132,1133,1,0,0,0,1133,1135,1,0,0,0,1134,1103,1,0,0,0,1134,1113,1,0,0,0,1135,107,1,0,0,0,1136,1137,5,56,0,0,1137,1138,5,33,0,0,1138,1150,3,234,117,0,1139,1146,5,56,0,0,1140,1147,5,46,0,0,1141,1143,5,164,0,0,1142,1141,1,0,0,0,1142,1143,1,0,0,0,1143,1144,1,0,0,0,1144,1147,5,162,0,0,1145,1147,5,186,0,0,1146,1140,1,0,0,0,1146,1142,1,0,0,0,1146,1145,1,0,0,0,1146,1147,1,0,0,0,1147,1148,1,0,0,0,1148,1150,3,228,114,0,1149,1136,1,0,0,0,1149,1139,1,0,0,0,1150,109,1,0,0,0,1151,1152,5,57,0,0,1152,1173,3,6,3,0,1153,1154,5,57,0,0,1154,1155,5,13,0,0,1155,1173,3,6,3,0,1156,1157,5,57,0,0,1157,1158,5,160,0,0,1158,1173,3,6,3,0,1159,1160,5,57,0,0,1160,1161,5,127,0,0,1161,1173,3,6,3,0,1162,1163,5,57,0,0,1163,1164,5,128,0,0,1164,1173,3,6,3,0,1165,1166,5,57,0,0,1166,1167,5,135,0,0,1167,1168,5,175,0,0,1168,1173,3,6,3,0,1169,1170,5,57,0,0,1170,1171,5,54,0,0,1171,1173,3,6,3,0,1172,1151,1,0,0,0,1172,1153,1,0,0,0,1172,1156,1,0,0,0,1172,1159,1,0,0,0,1172,1162,1,0,0,0,1172,1165,1,0,0,0,1172,1169,1,0,0,0,1173,111,1,0,0,0,1174,1175,5,85,0,0,1175,1177,5,87,0,0,1176,1178,5,162,0,0,1177,1176,1,0,0,0,1177,1178,1,0,0,0,1178,1182,1,0,0,0,1179,1183,3,228,114,0,1180,1181,5,70,0,0,1181,1183,3,226,113,0,1182,1179,1,0,0,0,1182,1180,1,0,0,0,1183,1185,1,0,0,0,1184,1186,3,114,57,0,1185,1184,1,0,0,0,1185,1186,1,0,0,0,1186,1187,1,0,0,0,1187,1188,3,116,58,0,1188,113,1,0,0,0,1189,1190,5,219,0,0,1190,1195,3,222,111,0,1191,1192,5,208,0,0,1192,1194,3,222,111,0,1193,1191,1,0,0,0,1194,1197,1,0,0,0,1195,1193,1,0,0,0,1195,1196,1,0,0,0,1196,1198,1,0,0,0,1197,1195,1,0,0,0,1198,1199,5,229,0,0,1199,115,1,0,0,0,1200,1201,5,66,0,0,1201,1210,3,250,125,0,1202,1210,3,118,59,0,1203,1205,3,128,64,0,1204,1206,5,230,0,0,1205,1204,1,0,0,0,1205,1206,1,0,0,0,1206,1207,1,0,0,0,1207,1208,5,0,0,1,1208,1210,1,0,0,0,1209,1200,1,0,0,0,1209,1202,1,0,0,0,1209,1203,1,0,0,0,1210,117,1,0,0,0,1211,1212,5,185,0,0,1212,1214,5,219,0,0,1213,1215,3,240,120,0,1214,1213,1,0,0,0,1214,1215,1,0,0,0,1215,1216,1,0,0,0,1216,1225,5,229,0,0,1217,1218,5,208,0,0,1218,1220,5,219,0,0,1219,1221,3,240,120,0,1220,1219,1,0,0,0,1220,1221,1,0,0,0,1221,1222,1,0,0,0,1222,1224,5,229,0,0,1223,1217,1,0,0,0,1224,1227,1,0,0,0,1225,1223,1,0,0,0,1225,1226,1,0,0,0,1226,119,1,0,0,0,1227,1225,1,0,0,0,1228,1229,5,92,0,0,1229,1231,5,112,0,0,1230,1232,3,66,33,0,1231,1230,1,0,0,0,1231,1232,1,0,0,0,1232,1233,1,0,0,0,1233,1235,3,146,73,0,1234,1236,7,5,0,0,1235,1234,1,0,0,0,1235,1236,1,0,0,0,1236,121,1,0,0,0,1237,1238,5,120,0,0,1238,1239,5,162,0,0,1239,1241,3,228,114,0,1240,1242,3,66,33,0,1241,1240,1,0,0,0,1241,1242,1,0,0,0,1242,1244,1,0,0,0,1243,1245,3,24,12,0,1244,1243,1,0,0,0,1244,1245,1,0,0,0,1245,1247,1,0,0,0,1246,1248,5,61,0,0,1247,1246,1,0,0,0,1247,1248,1,0,0,0,1248,1250,1,0,0,0,1249,1251,5,37,0,0,1250,1249,1,0,0,0,1250,1251,1,0,0,0,1251,123,1,0,0,0,1252,1253,5,139,0,0,1253,1254,5,162,0,0,1254,1255,3,228,114,0,1255,1256,5,170,0,0,1256,1264,3,228,114,0,1257,1258,5,208,0,0,1258,1259,3,228,114,0,1259,1260,5,170,0,0,1260,1261,3,228,114,0,1261,1263,1,0,0,0,1262,1257,1,0,0,0,1263,1266,1,0,0,0,1264,1262,1,0,0,0,1264,1265,1,0,0,0,1265,1268,1,0,0,0,1266,1264,1,0,0,0,1267,1269,3,66,33,0,1268,1267,1,0,0,0,1268,1269,1,0,0,0,1269,125,1,0,0,0,1270,1272,5,219,0,0,1271,1273,3,134,67,0,1272,1271,1,0,0,0,1272,1273,1,0,0,0,1273,1274,1,0,0,0,1274,1275,5,149,0,0,1275,1277,3,210,105,0,1276,1278,3,148,74,0,1277,1276,1,0,0,0,1277,1278,1,0,0,0,1278,1280,1,0,0,0,1279,1281,3,154,77,0,1280,1279,1,0,0,0,1280,1281,1,0,0,0,1281,1282,1,0,0,0,1282,1283,5,229,0,0,1283,127,1,0,0,0,1284,1290,3,130,65,0,1285,1286,5,180,0,0,1286,1287,5,4,0,0,1287,1289,3,130,65,0,1288,1285,1,0,0,0,1289,1292,1,0,0,0,1290,1288,1,0,0,0,1290,1291,1,0,0,0,1291,129,1,0,0,0,1292,1290,1,0,0,0,1293,1299,3,132,66,0,1294,1295,5,219,0,0,1295,1296,3,128,64,0,1296,1297,5,229,0,0,1297,1299,1,0,0,0,1298,1293,1,0,0,0,1298,1294,1,0,0,0,1299,131,1,0,0,0,1300,1302,3,134,67,0,1301,1300,1,0,0,0,1301,1302,1,0,0,0,1302,1303,1,0,0,0,1303,1305,5,149,0,0,1304,1306,5,48,0,0,1305,1304,1,0,0,0,1305,1306,1,0,0,0,1306,1308,1,0,0,0,1307,1309,3,136,68,0,1308,1307,1,0,0,0,1308,1309,1,0,0,0,1309,1310,1,0,0,0,1310,1312,3,210,105,0,1311,1313,3,138,69,0,1312,1311,1,0,0,0,1312,1313,1,0,0,0,1313,1315,1,0,0,0,1314,1316,3,140,70,0,1315,1314,1,0,0,0,1315,1316,1,0,0,0,1316,1318,1,0,0,0,1317,1319,3,142,71,0,1318,1317,1,0,0,0,1318,1319,1,0,0,0,1319,1321,1,0,0,0,1320,1322,3,144,72,0,1321,1320,1,0,0,0,1321,1322,1,0,0,0,1322,1324,1,0,0,0,1323,1325,3,146,73,0,1324,1323,1,0,0,0,1324,1325,1,0,0,0,1325,1327,1,0,0,0,1326,1328,3,148,74,0,1327,1326,1,0,0,0,1327,1328,1,0,0,0,1328,1331,1,0,0,0,1329,1330,5,193,0,0,1330,1332,7,6,0,0,1331,1329,1,0,0,0,1331,1332,1,0,0,0,1332,1335,1,0,0,0,1333,1334,5,193,0,0,1334,1336,5,172,0,0,1335,1333,1,0,0,0,1335,1336,1,0,0,0,1336,1338,1,0,0,0,1337,1339,3,150,75,0,1338,1337,1,0,0,0,1338,1339,1,0,0,0,1339,1341,1,0,0,0,1340,1342,3,152,76,0,1341,1340,1,0,0,0,1341,1342,1,0,0,0,1342,1344,1,0,0,0,1343,1345,3,156,78,0,1344,1343,1,0,0,0,1344,1345,1,0,0,0,1345,1347,1,0,0,0,1346,1348,3,158,79,0,1347,1346,1,0,0,0,1347,1348,1,0,0,0,1348,1350,1,0,0,0,1349,1351,3,160,80,0,1350,1349,1,0,0,0,1350,1351,1,0,0,0,1351,133,1,0,0,0,1352,1353,5,193,0,0,1353,1354,3,210,105,0,1354,135,1,0,0,0,1355,1356,5,171,0,0,1356,1359,5,200,0,0,1357,1358,5,193,0,0,1358,1360,5,167,0,0,1359,1357,1,0,0,0,1359,1360,1,0,0,0,1360,137,1,0,0,0,1361,1362,5,68,0,0,1362,1363,3,162,81,0,1363,139,1,0,0,0,1364,1366,7,7,0,0,1365,1364,1,0,0,0,1365,1366,1,0,0,0,1366,1367,1,0,0,0,1367,1368,5,9,0,0,1368,1369,5,90,0,0,1369,1370,3,210,105,0,1370,141,1,0,0,0,1371,1372,5,192,0,0,1372,1373,3,250,125,0,1373,1374,5,10,0,0,1374,1375,5,219,0,0,1375,1376,3,184,92,0,1376,1377,5,229,0,0,1377,143,1,0,0,0,1378,1379,5,131,0,0,1379,1380,3,214,107,0,1380,145,1,0,0,0,1381,1382,5,191,0,0,1382,1383,3,214,107,0,1383,147,1,0,0,0,1384,1385,5,73,0,0,1385,1392,5,18,0,0,1386,1387,7,6,0,0,1387,1388,5,219,0,0,1388,1389,3,210,105,0,1389,1390,5,229,0,0,1390,1393,1,0,0,0,1391,1393,3,210,105,0,1392,1386,1,0,0,0,1392,1391,1,0,0,0,1393,149,1,0,0,0,1394,1395,5,74,0,0,1395,1396,3,214,107,0,1396,151,1,0,0,0,1397,1398,5,122,0,0,1398,1399,5,18,0,0,1399,1400,3,174,87,0,1400,153,1,0,0,0,1401,1402,5,122,0,0,1402,1403,5,18,0,0,1403,1404,3,210,105,0,1404,155,1,0,0,0,1405,1406,5,99,0,0,1406,1407,3,172,86,0,1407,1408,5,18,0,0,1408,1409,3,210,105,0,1409,157,1,0,0,0,1410,1411,5,99,0,0,1411,1414,3,172,86,0,1412,1413,5,193,0,0,1413,1415,5,167,0,0,1414,1412,1,0,0,0,1414,1415,1,0,0,0,1415,159,1,0,0,0,1416,1417,5,153,0,0,1417,1418,3,180,90,0,1418,161,1,0,0,0,1419,1420,6,81,-1,0,1420,1422,3,224,112,0,1421,1423,5,61,0,0,1422,1421,1,0,0,0,1422,1423,1,0,0,0,1423,1425,1,0,0,0,1424,1426,3,170,85,0,1425,1424,1,0,0,0,1425,1426,1,0,0,0,1426,1432,1,0,0,0,1427,1428,5,219,0,0,1428,1429,3,162,81,0,1429,1430,5,229,0,0,1430,1432,1,0,0,0,1431,1419,1,0,0,0,1431,1427,1,0,0,0,1432,1450,1,0,0,0,1433,1434,10,3,0,0,1434,1435,3,166,83,0,1435,1436,3,162,81,4,1436,1449,1,0,0,0,1437,1439,10,4,0,0,1438,1440,7,8,0,0,1439,1438,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1443,3,164,82,0,1442,1441,1,0,0,0,1442,1443,1,0,0,0,1443,1444,1,0,0,0,1444,1445,5,90,0,0,1445,1446,3,162,81,0,1446,1447,3,168,84,0,1447,1449,1,0,0,0,1448,1433,1,0,0,0,1448,1437,1,0,0,0,1449,1452,1,0,0,0,1450,1448,1,0,0,0,1450,1451,1,0,0,0,1451,163,1,0,0,0,1452,1450,1,0,0,0,1453,1455,7,9,0,0,1454,1453,1,0,0,0,1454,1455,1,0,0,0,1455,1456,1,0,0,0,1456,1463,5,84,0,0,1457,1459,5,84,0,0,1458,1460,7,9,0,0,1459,1458,1,0,0,0,1459,1460,1,0,0,0,1460,1463,1,0,0,0,1461,1463,7,9,0,0,1462,1454,1,0,0,0,1462,1457,1,0,0,0,1462,1461,1,0,0,0,1463,1497,1,0,0,0,1464,1466,7,10,0,0,1465,1464,1,0,0,0,1465,1466,1,0,0,0,1466,1467,1,0,0,0,1467,1469,7,11,0,0,1468,1470,5,123,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,1479,1,0,0,0,1471,1473,7,11,0,0,1472,1474,5,123,0,0,1473,1472,1,0,0,0,1473,1474,1,0,0,0,1474,1476,1,0,0,0,1475,1477,7,10,0,0,1476,1475,1,0,0,0,1476,1477,1,0,0,0,1477,1479,1,0,0,0,1478,1465,1,0,0,0,1478,1471,1,0,0,0,1479,1497,1,0,0,0,1480,1482,7,12,0,0,1481,1480,1,0,0,0,1481,1482,1,0,0,0,1482,1483,1,0,0,0,1483,1485,5,69,0,0,1484,1486,5,123,0,0,1485,1484,1,0,0,0,1485,1486,1,0,0,0,1486,1495,1,0,0,0,1487,1489,5,69,0,0,1488,1490,5,123,0,0,1489,1488,1,0,0,0,1489,1490,1,0,0,0,1490,1492,1,0,0,0,1491,1493,7,12,0,0,1492,1491,1,0,0,0,1492,1493,1,0,0,0,1493,1495,1,0,0,0,1494,1481,1,0,0,0,1494,1487,1,0,0,0,1495,1497,1,0,0,0,1496,1462,1,0,0,0,1496,1478,1,0,0,0,1496,1494,1,0,0,0,1497,165,1,0,0,0,1498,1500,7,8,0,0,1499,1498,1,0,0,0,1499,1500,1,0,0,0,1500,1501,1,0,0,0,1501,1502,5,30,0,0,1502,1505,5,90,0,0,1503,1505,5,208,0,0,1504,1499,1,0,0,0,1504,1503,1,0,0,0,1505,167,1,0,0,0,1506,1507,5,119,0,0,1507,1516,3,210,105,0,1508,1509,5,183,0,0,1509,1510,5,219,0,0,1510,1511,3,210,105,0,1511,1512,5,229,0,0,1512,1516,1,0,0,0,1513,1514,5,183,0,0,1514,1516,3,210,105,0,1515,1506,1,0,0,0,1515,1508,1,0,0,0,1515,1513,1,0,0,0,1516,169,1,0,0,0,1517,1518,5,147,0,0,1518,1521,3,178,89,0,1519,1520,5,118,0,0,1520,1522,3,178,89,0,1521,1519,1,0,0,0,1521,1522,1,0,0,0,1522,171,1,0,0,0,1523,1526,3,214,107,0,1524,1525,7,13,0,0,1525,1527,3,214,107,0,1526,1524,1,0,0,0,1526,1527,1,0,0,0,1527,173,1,0,0,0,1528,1533,3,176,88,0,1529,1530,5,208,0,0,1530,1532,3,176,88,0,1531,1529,1,0,0,0,1532,1535,1,0,0,0,1533,1531,1,0,0,0,1533,1534,1,0,0,0,1534,175,1,0,0,0,1535,1533,1,0,0,0,1536,1538,3,214,107,0,1537,1539,7,14,0,0,1538,1537,1,0,0,0,1538,1539,1,0,0,0,1539,1542,1,0,0,0,1540,1541,5,117,0,0,1541,1543,7,15,0,0,1542,1540,1,0,0,0,1542,1543,1,0,0,0,1543,1546,1,0,0,0,1544,1545,5,25,0,0,1545,1547,5,202,0,0,1546,1544,1,0,0,0,1546,1547,1,0,0,0,1547,177,1,0,0,0,1548,1551,3,238,119,0,1549,1550,5,231,0,0,1550,1552,3,238,119,0,1551,1549,1,0,0,0,1551,1552,1,0,0,0,1552,179,1,0,0,0,1553,1558,3,182,91,0,1554,1555,5,208,0,0,1555,1557,3,182,91,0,1556,1554,1,0,0,0,1557,1560,1,0,0,0,1558,1556,1,0,0,0,1558,1559,1,0,0,0,1559,181,1,0,0,0,1560,1558,1,0,0,0,1561,1562,3,250,125,0,1562,1563,5,213,0,0,1563,1564,3,240,120,0,1564,183,1,0,0,0,1565,1567,3,186,93,0,1566,1565,1,0,0,0,1566,1567,1,0,0,0,1567,1569,1,0,0,0,1568,1570,3,188,94,0,1569,1568,1,0,0,0,1569,1570,1,0,0,0,1570,1572,1,0,0,0,1571,1573,3,190,95,0,1572,1571,1,0,0,0,1572,1573,1,0,0,0,1573,185,1,0,0,0,1574,1575,5,126,0,0,1575,1576,5,18,0,0,1576,1577,3,210,105,0,1577,187,1,0,0,0,1578,1579,5,122,0,0,1579,1580,5,18,0,0,1580,1581,3,174,87,0,1581,189,1,0,0,0,1582,1583,7,16,0,0,1583,1584,3,192,96,0,1584,191,1,0,0,0,1585,1592,3,194,97,0,1586,1587,5,16,0,0,1587,1588,3,194,97,0,1588,1589,5,6,0,0,1589,1590,3,194,97,0,1590,1592,1,0,0,0,1591,1585,1,0,0,0,1591,1586,1,0,0,0,1592,193,1,0,0,0,1593,1594,5,32,0,0,1594,1606,5,145,0,0,1595,1596,5,179,0,0,1596,1606,5,130,0,0,1597,1598,5,179,0,0,1598,1606,5,64,0,0,1599,1600,3,238,119,0,1600,1601,5,130,0,0,1601,1606,1,0,0,0,1602,1603,3,238,119,0,1603,1604,5,64,0,0,1604,1606,1,0,0,0,1605,1593,1,0,0,0,1605,1595,1,0,0,0,1605,1597,1,0,0,0,1605,1599,1,0,0,0,1605,1602,1,0,0,0,1606,195,1,0,0,0,1607,1608,5,152,0,0,1608,1609,3,180,90,0,1609,197,1,0,0,0,1610,1611,5,154,0,0,1611,1612,5,29,0,0,1612,1613,5,33,0,0,1613,1653,3,234,117,0,1614,1615,5,154,0,0,1615,1616,5,29,0,0,1616,1617,5,46,0,0,1617,1653,3,228,114,0,1618,1619,5,154,0,0,1619,1621,5,29,0,0,1620,1622,5,164,0,0,1621,1620,1,0,0,0,1621,1622,1,0,0,0,1622,1624,1,0,0,0,1623,1625,5,162,0,0,1624,1623,1,0,0,0,1624,1625,1,0,0,0,1625,1626,1,0,0,0,1626,1653,3,228,114,0,1627,1628,5,154,0,0,1628,1653,5,34,0,0,1629,1630,5,154,0,0,1630,1633,5,45,0,0,1631,1632,5,68,0,0,1632,1634,3,234,117,0,1633,1631,1,0,0,0,1633,1634,1,0,0,0,1634,1653,1,0,0,0,1635,1637,5,154,0,0,1636,1638,5,164,0,0,1637,1636,1,0,0,0,1637,1638,1,0,0,0,1638,1639,1,0,0,0,1639,1642,5,163,0,0,1640,1641,7,17,0,0,1641,1643,3,234,117,0,1642,1640,1,0,0,0,1642,1643,1,0,0,0,1643,1647,1,0,0,0,1644,1645,5,98,0,0,1645,1648,5,202,0,0,1646,1648,3,146,73,0,1647,1644,1,0,0,0,1647,1646,1,0,0,0,1647,1648,1,0,0,0,1648,1650,1,0,0,0,1649,1651,3,158,79,0,1650,1649,1,0,0,0,1650,1651,1,0,0,0,1651,1653,1,0,0,0,1652,1610,1,0,0,0,1652,1614,1,0,0,0,1652,1618,1,0,0,0,1652,1627,1,0,0,0,1652,1629,1,0,0,0,1652,1635,1,0,0,0,1653,199,1,0,0,0,1654,1655,5,161,0,0,1655,1656,5,63,0,0,1656,1657,5,49,0,0,1657,1689,3,228,114,0,1658,1659,5,161,0,0,1659,1660,5,63,0,0,1660,1689,5,102,0,0,1661,1662,5,161,0,0,1662,1663,5,137,0,0,1663,1689,5,45,0,0,1664,1665,5,161,0,0,1665,1666,5,137,0,0,1666,1667,5,46,0,0,1667,1689,3,228,114,0,1668,1669,5,161,0,0,1669,1677,7,18,0,0,1670,1671,5,49,0,0,1671,1678,5,151,0,0,1672,1678,5,60,0,0,1673,1675,5,177,0,0,1674,1673,1,0,0,0,1674,1675,1,0,0,0,1675,1676,1,0,0,0,1676,1678,5,106,0,0,1677,1670,1,0,0,0,1677,1672,1,0,0,0,1677,1674,1,0,0,0,1678,1679,1,0,0,0,1679,1689,3,228,114,0,1680,1681,5,161,0,0,1681,1682,7,18,0,0,1682,1683,5,142,0,0,1683,1689,5,151,0,0,1684,1685,5,161,0,0,1685,1686,5,159,0,0,1686,1687,5,141,0,0,1687,1689,3,228,114,0,1688,1654,1,0,0,0,1688,1658,1,0,0,0,1688,1661,1,0,0,0,1688,1664,1,0,0,0,1688,1668,1,0,0,0,1688,1680,1,0,0,0,1688,1684,1,0,0,0,1689,201,1,0,0,0,1690,1692,5,176,0,0,1691,1693,5,164,0,0,1692,1691,1,0,0,0,1692,1693,1,0,0,0,1693,1695,1,0,0,0,1694,1696,5,162,0,0,1695,1694,1,0,0,0,1695,1696,1,0,0,0,1696,1699,1,0,0,0,1697,1698,5,78,0,0,1698,1700,5,56,0,0,1699,1697,1,0,0,0,1699,1700,1,0,0,0,1700,1701,1,0,0,0,1701,1703,3,228,114,0,1702,1704,3,66,33,0,1703,1702,1,0,0,0,1703,1704,1,0,0,0,1704,203,1,0,0,0,1705,1706,5,182,0,0,1706,1707,3,234,117,0,1707,205,1,0,0,0,1708,1709,5,188,0,0,1709,1711,3,228,114,0,1710,1712,5,55,0,0,1711,1710,1,0,0,0,1711,1712,1,0,0,0,1712,1715,1,0,0,0,1713,1714,5,99,0,0,1714,1716,5,200,0,0,1715,1713,1,0,0,0,1715,1716,1,0,0,0,1716,207,1,0,0,0,1717,1765,3,250,125,0,1718,1719,3,250,125,0,1719,1720,5,219,0,0,1720,1721,3,250,125,0,1721,1728,3,208,104,0,1722,1723,5,208,0,0,1723,1724,3,250,125,0,1724,1725,3,208,104,0,1725,1727,1,0,0,0,1726,1722,1,0,0,0,1727,1730,1,0,0,0,1728,1726,1,0,0,0,1728,1729,1,0,0,0,1729,1731,1,0,0,0,1730,1728,1,0,0,0,1731,1732,5,229,0,0,1732,1765,1,0,0,0,1733,1734,3,250,125,0,1734,1735,5,219,0,0,1735,1740,3,254,127,0,1736,1737,5,208,0,0,1737,1739,3,254,127,0,1738,1736,1,0,0,0,1739,1742,1,0,0,0,1740,1738,1,0,0,0,1740,1741,1,0,0,0,1741,1743,1,0,0,0,1742,1740,1,0,0,0,1743,1744,5,229,0,0,1744,1765,1,0,0,0,1745,1746,3,250,125,0,1746,1747,5,219,0,0,1747,1752,3,208,104,0,1748,1749,5,208,0,0,1749,1751,3,208,104,0,1750,1748,1,0,0,0,1751,1754,1,0,0,0,1752,1750,1,0,0,0,1752,1753,1,0,0,0,1753,1755,1,0,0,0,1754,1752,1,0,0,0,1755,1756,5,229,0,0,1756,1765,1,0,0,0,1757,1758,3,250,125,0,1758,1760,5,219,0,0,1759,1761,3,210,105,0,1760,1759,1,0,0,0,1760,1761,1,0,0,0,1761,1762,1,0,0,0,1762,1763,5,229,0,0,1763,1765,1,0,0,0,1764,1717,1,0,0,0,1764,1718,1,0,0,0,1764,1733,1,0,0,0,1764,1745,1,0,0,0,1764,1757,1,0,0,0,1765,209,1,0,0,0,1766,1771,3,212,106,0,1767,1768,5,208,0,0,1768,1770,3,212,106,0,1769,1767,1,0,0,0,1770,1773,1,0,0,0,1771,1769,1,0,0,0,1771,1772,1,0,0,0,1772,211,1,0,0,0,1773,1771,1,0,0,0,1774,1775,3,228,114,0,1775,1776,5,211,0,0,1776,1778,1,0,0,0,1777,1774,1,0,0,0,1777,1778,1,0,0,0,1778,1779,1,0,0,0,1779,1786,5,204,0,0,1780,1781,5,219,0,0,1781,1782,3,128,64,0,1782,1783,5,229,0,0,1783,1786,1,0,0,0,1784,1786,3,214,107,0,1785,1777,1,0,0,0,1785,1780,1,0,0,0,1785,1784,1,0,0,0,1786,213,1,0,0,0,1787,1788,6,107,-1,0,1788,1790,5,19,0,0,1789,1791,3,214,107,0,1790,1789,1,0,0,0,1790,1791,1,0,0,0,1791,1797,1,0,0,0,1792,1793,5,190,0,0,1793,1794,3,214,107,0,1794,1795,5,166,0,0,1795,1796,3,214,107,0,1796,1798,1,0,0,0,1797,1792,1,0,0,0,1798,1799,1,0,0,0,1799,1797,1,0,0,0,1799,1800,1,0,0,0,1800,1803,1,0,0,0,1801,1802,5,51,0,0,1802,1804,3,214,107,0,1803,1801,1,0,0,0,1803,1804,1,0,0,0,1804,1805,1,0,0,0,1805,1806,5,52,0,0,1806,1917,1,0,0,0,1807,1808,5,20,0,0,1808,1809,5,219,0,0,1809,1810,3,214,107,0,1810,1811,5,10,0,0,1811,1812,3,208,104,0,1812,1813,5,229,0,0,1813,1917,1,0,0,0,1814,1815,5,35,0,0,1815,1917,5,202,0,0,1816,1817,5,59,0,0,1817,1818,5,219,0,0,1818,1819,3,242,121,0,1819,1820,5,68,0,0,1820,1821,3,214,107,0,1821,1822,5,229,0,0,1822,1917,1,0,0,0,1823,1824,5,86,0,0,1824,1825,3,214,107,0,1825,1826,3,242,121,0,1826,1917,1,0,0,0,1827,1828,5,158,0,0,1828,1829,5,219,0,0,1829,1830,3,214,107,0,1830,1831,5,68,0,0,1831,1834,3,214,107,0,1832,1833,5,65,0,0,1833,1835,3,214,107,0,1834,1832,1,0,0,0,1834,1835,1,0,0,0,1835,1836,1,0,0,0,1836,1837,5,229,0,0,1837,1917,1,0,0,0,1838,1839,5,169,0,0,1839,1917,5,202,0,0,1840,1841,5,174,0,0,1841,1842,5,219,0,0,1842,1843,7,19,0,0,1843,1844,5,202,0,0,1844,1845,5,68,0,0,1845,1846,3,214,107,0,1846,1847,5,229,0,0,1847,1917,1,0,0,0,1848,1849,3,250,125,0,1849,1851,5,219,0,0,1850,1852,3,210,105,0,1851,1850,1,0,0,0,1851,1852,1,0,0,0,1852,1853,1,0,0,0,1853,1854,5,229,0,0,1854,1855,1,0,0,0,1855,1856,5,125,0,0,1856,1857,5,219,0,0,1857,1858,3,184,92,0,1858,1859,5,229,0,0,1859,1917,1,0,0,0,1860,1861,3,250,125,0,1861,1863,5,219,0,0,1862,1864,3,210,105,0,1863,1862,1,0,0,0,1863,1864,1,0,0,0,1864,1865,1,0,0,0,1865,1866,5,229,0,0,1866,1867,1,0,0,0,1867,1868,5,125,0,0,1868,1869,3,250,125,0,1869,1917,1,0,0,0,1870,1876,3,250,125,0,1871,1873,5,219,0,0,1872,1874,3,210,105,0,1873,1872,1,0,0,0,1873,1874,1,0,0,0,1874,1875,1,0,0,0,1875,1877,5,229,0,0,1876,1871,1,0,0,0,1876,1877,1,0,0,0,1877,1878,1,0,0,0,1878,1880,5,219,0,0,1879,1881,5,48,0,0,1880,1879,1,0,0,0,1880,1881,1,0,0,0,1881,1883,1,0,0,0,1882,1884,3,216,108,0,1883,1882,1,0,0,0,1883,1884,1,0,0,0,1884,1885,1,0,0,0,1885,1886,5,229,0,0,1886,1917,1,0,0,0,1887,1917,3,240,120,0,1888,1889,5,210,0,0,1889,1917,3,214,107,17,1890,1891,5,115,0,0,1891,1917,3,214,107,12,1892,1893,3,228,114,0,1893,1894,5,211,0,0,1894,1896,1,0,0,0,1895,1892,1,0,0,0,1895,1896,1,0,0,0,1896,1897,1,0,0,0,1897,1917,5,204,0,0,1898,1899,5,219,0,0,1899,1900,3,128,64,0,1900,1901,5,229,0,0,1901,1917,1,0,0,0,1902,1903,5,219,0,0,1903,1904,3,214,107,0,1904,1905,5,229,0,0,1905,1917,1,0,0,0,1906,1907,5,219,0,0,1907,1908,3,210,105,0,1908,1909,5,229,0,0,1909,1917,1,0,0,0,1910,1912,5,217,0,0,1911,1913,3,210,105,0,1912,1911,1,0,0,0,1912,1913,1,0,0,0,1913,1914,1,0,0,0,1914,1917,5,228,0,0,1915,1917,3,222,111,0,1916,1787,1,0,0,0,1916,1807,1,0,0,0,1916,1814,1,0,0,0,1916,1816,1,0,0,0,1916,1823,1,0,0,0,1916,1827,1,0,0,0,1916,1838,1,0,0,0,1916,1840,1,0,0,0,1916,1848,1,0,0,0,1916,1860,1,0,0,0,1916,1870,1,0,0,0,1916,1887,1,0,0,0,1916,1888,1,0,0,0,1916,1890,1,0,0,0,1916,1895,1,0,0,0,1916,1898,1,0,0,0,1916,1902,1,0,0,0,1916,1906,1,0,0,0,1916,1910,1,0,0,0,1916,1915,1,0,0,0,1917,1989,1,0,0,0,1918,1919,10,16,0,0,1919,1920,7,20,0,0,1920,1988,3,214,107,17,1921,1922,10,15,0,0,1922,1923,7,21,0,0,1923,1988,3,214,107,16,1924,1943,10,14,0,0,1925,1944,5,212,0,0,1926,1944,5,213,0,0,1927,1944,5,221,0,0,1928,1944,5,218,0,0,1929,1944,5,214,0,0,1930,1944,5,220,0,0,1931,1944,5,215,0,0,1932,1934,5,71,0,0,1933,1932,1,0,0,0,1933,1934,1,0,0,0,1934,1936,1,0,0,0,1935,1937,5,115,0,0,1936,1935,1,0,0,0,1936,1937,1,0,0,0,1937,1938,1,0,0,0,1938,1944,5,80,0,0,1939,1941,5,115,0,0,1940,1939,1,0,0,0,1940,1941,1,0,0,0,1941,1942,1,0,0,0,1942,1944,7,22,0,0,1943,1925,1,0,0,0,1943,1926,1,0,0,0,1943,1927,1,0,0,0,1943,1928,1,0,0,0,1943,1929,1,0,0,0,1943,1930,1,0,0,0,1943,1931,1,0,0,0,1943,1933,1,0,0,0,1943,1940,1,0,0,0,1944,1945,1,0,0,0,1945,1988,3,214,107,15,1946,1947,10,11,0,0,1947,1948,5,6,0,0,1948,1988,3,214,107,12,1949,1950,10,10,0,0,1950,1951,5,121,0,0,1951,1988,3,214,107,11,1952,1954,10,9,0,0,1953,1955,5,115,0,0,1954,1953,1,0,0,0,1954,1955,1,0,0,0,1955,1956,1,0,0,0,1956,1957,5,16,0,0,1957,1958,3,214,107,0,1958,1959,5,6,0,0,1959,1960,3,214,107,10,1960,1988,1,0,0,0,1961,1962,10,8,0,0,1962,1963,5,224,0,0,1963,1964,3,214,107,0,1964,1965,5,207,0,0,1965,1966,3,214,107,8,1966,1988,1,0,0,0,1967,1968,10,19,0,0,1968,1969,5,217,0,0,1969,1970,3,214,107,0,1970,1971,5,228,0,0,1971,1988,1,0,0,0,1972,1973,10,18,0,0,1973,1974,5,211,0,0,1974,1988,5,200,0,0,1975,1976,10,13,0,0,1976,1978,5,88,0,0,1977,1979,5,115,0,0,1978,1977,1,0,0,0,1978,1979,1,0,0,0,1979,1980,1,0,0,0,1980,1988,5,116,0,0,1981,1985,10,7,0,0,1982,1986,3,248,124,0,1983,1984,5,10,0,0,1984,1986,3,250,125,0,1985,1982,1,0,0,0,1985,1983,1,0,0,0,1986,1988,1,0,0,0,1987,1918,1,0,0,0,1987,1921,1,0,0,0,1987,1924,1,0,0,0,1987,1946,1,0,0,0,1987,1949,1,0,0,0,1987,1952,1,0,0,0,1987,1961,1,0,0,0,1987,1967,1,0,0,0,1987,1972,1,0,0,0,1987,1975,1,0,0,0,1987,1981,1,0,0,0,1988,1991,1,0,0,0,1989,1987,1,0,0,0,1989,1990,1,0,0,0,1990,215,1,0,0,0,1991,1989,1,0,0,0,1992,1997,3,218,109,0,1993,1994,5,208,0,0,1994,1996,3,218,109,0,1995,1993,1,0,0,0,1996,1999,1,0,0,0,1997,1995,1,0,0,0,1997,1998,1,0,0,0,1998,217,1,0,0,0,1999,1997,1,0,0,0,2e3,2003,3,220,110,0,2001,2003,3,214,107,0,2002,2e3,1,0,0,0,2002,2001,1,0,0,0,2003,219,1,0,0,0,2004,2005,5,219,0,0,2005,2010,3,250,125,0,2006,2007,5,208,0,0,2007,2009,3,250,125,0,2008,2006,1,0,0,0,2009,2012,1,0,0,0,2010,2008,1,0,0,0,2010,2011,1,0,0,0,2011,2013,1,0,0,0,2012,2010,1,0,0,0,2013,2014,5,229,0,0,2014,2024,1,0,0,0,2015,2020,3,250,125,0,2016,2017,5,208,0,0,2017,2019,3,250,125,0,2018,2016,1,0,0,0,2019,2022,1,0,0,0,2020,2018,1,0,0,0,2020,2021,1,0,0,0,2021,2024,1,0,0,0,2022,2020,1,0,0,0,2023,2004,1,0,0,0,2023,2015,1,0,0,0,2024,2025,1,0,0,0,2025,2026,5,203,0,0,2026,2027,3,214,107,0,2027,221,1,0,0,0,2028,2029,3,228,114,0,2029,2030,5,211,0,0,2030,2032,1,0,0,0,2031,2028,1,0,0,0,2031,2032,1,0,0,0,2032,2033,1,0,0,0,2033,2036,3,250,125,0,2034,2035,5,211,0,0,2035,2037,3,250,125,0,2036,2034,1,0,0,0,2036,2037,1,0,0,0,2037,223,1,0,0,0,2038,2039,6,112,-1,0,2039,2046,3,228,114,0,2040,2046,3,226,113,0,2041,2042,5,219,0,0,2042,2043,3,128,64,0,2043,2044,5,229,0,0,2044,2046,1,0,0,0,2045,2038,1,0,0,0,2045,2040,1,0,0,0,2045,2041,1,0,0,0,2046,2055,1,0,0,0,2047,2051,10,1,0,0,2048,2052,3,248,124,0,2049,2050,5,10,0,0,2050,2052,3,250,125,0,2051,2048,1,0,0,0,2051,2049,1,0,0,0,2052,2054,1,0,0,0,2053,2047,1,0,0,0,2054,2057,1,0,0,0,2055,2053,1,0,0,0,2055,2056,1,0,0,0,2056,225,1,0,0,0,2057,2055,1,0,0,0,2058,2059,3,250,125,0,2059,2061,5,219,0,0,2060,2062,3,230,115,0,2061,2060,1,0,0,0,2061,2062,1,0,0,0,2062,2063,1,0,0,0,2063,2064,5,229,0,0,2064,227,1,0,0,0,2065,2066,3,234,117,0,2066,2067,5,211,0,0,2067,2069,1,0,0,0,2068,2065,1,0,0,0,2068,2069,1,0,0,0,2069,2070,1,0,0,0,2070,2071,3,250,125,0,2071,229,1,0,0,0,2072,2077,3,232,116,0,2073,2074,5,208,0,0,2074,2076,3,232,116,0,2075,2073,1,0,0,0,2076,2079,1,0,0,0,2077,2075,1,0,0,0,2077,2078,1,0,0,0,2078,231,1,0,0,0,2079,2077,1,0,0,0,2080,2084,3,222,111,0,2081,2084,3,226,113,0,2082,2084,3,240,120,0,2083,2080,1,0,0,0,2083,2081,1,0,0,0,2083,2082,1,0,0,0,2084,233,1,0,0,0,2085,2086,3,250,125,0,2086,235,1,0,0,0,2087,2096,5,198,0,0,2088,2089,5,211,0,0,2089,2096,7,23,0,0,2090,2091,5,200,0,0,2091,2093,5,211,0,0,2092,2094,7,23,0,0,2093,2092,1,0,0,0,2093,2094,1,0,0,0,2094,2096,1,0,0,0,2095,2087,1,0,0,0,2095,2088,1,0,0,0,2095,2090,1,0,0,0,2096,237,1,0,0,0,2097,2099,7,24,0,0,2098,2097,1,0,0,0,2098,2099,1,0,0,0,2099,2106,1,0,0,0,2100,2107,3,236,118,0,2101,2107,5,199,0,0,2102,2107,5,200,0,0,2103,2107,5,201,0,0,2104,2107,5,82,0,0,2105,2107,5,113,0,0,2106,2100,1,0,0,0,2106,2101,1,0,0,0,2106,2102,1,0,0,0,2106,2103,1,0,0,0,2106,2104,1,0,0,0,2106,2105,1,0,0,0,2107,239,1,0,0,0,2108,2112,3,238,119,0,2109,2112,5,202,0,0,2110,2112,5,116,0,0,2111,2108,1,0,0,0,2111,2109,1,0,0,0,2111,2110,1,0,0,0,2112,241,1,0,0,0,2113,2114,7,25,0,0,2114,243,1,0,0,0,2115,2116,7,26,0,0,2116,245,1,0,0,0,2117,2118,7,27,0,0,2118,247,1,0,0,0,2119,2122,5,197,0,0,2120,2122,3,246,123,0,2121,2119,1,0,0,0,2121,2120,1,0,0,0,2122,249,1,0,0,0,2123,2127,5,197,0,0,2124,2127,3,242,121,0,2125,2127,3,244,122,0,2126,2123,1,0,0,0,2126,2124,1,0,0,0,2126,2125,1,0,0,0,2127,251,1,0,0,0,2128,2131,3,250,125,0,2129,2131,5,116,0,0,2130,2128,1,0,0,0,2130,2129,1,0,0,0,2131,253,1,0,0,0,2132,2133,5,202,0,0,2133,2134,5,213,0,0,2134,2135,3,238,119,0,2135,255,1,0,0,0,280,257,263,269,275,279,282,285,307,310,318,323,336,345,352,360,365,372,377,384,389,395,401,406,412,417,423,428,434,448,455,462,469,475,480,486,491,497,506,516,526,546,554,569,576,590,596,602,608,611,617,620,623,629,633,636,639,642,645,652,656,664,667,673,677,680,691,695,698,703,705,708,711,721,725,728,731,736,738,745,751,755,758,761,771,779,805,807,811,833,835,846,849,858,875,886,904,917,934,943,970,972,993,998,1003,1006,1018,1023,1027,1030,1034,1038,1043,1046,1050,1052,1074,1082,1085,1095,1099,1107,1111,1116,1120,1124,1128,1132,1134,1142,1146,1149,1172,1177,1182,1185,1195,1205,1209,1214,1220,1225,1231,1235,1241,1244,1247,1250,1264,1268,1272,1277,1280,1290,1298,1301,1305,1308,1312,1315,1318,1321,1324,1327,1331,1335,1338,1341,1344,1347,1350,1359,1365,1392,1414,1422,1425,1431,1439,1442,1448,1450,1454,1459,1462,1465,1469,1473,1476,1478,1481,1485,1489,1492,1494,1496,1499,1504,1515,1521,1526,1533,1538,1542,1546,1551,1558,1566,1569,1572,1591,1605,1621,1624,1633,1637,1642,1647,1650,1652,1674,1677,1688,1692,1695,1699,1703,1711,1715,1728,1740,1752,1760,1764,1771,1777,1785,1790,1799,1803,1834,1851,1863,1873,1876,1880,1883,1895,1912,1916,1933,1936,1940,1943,1954,1978,1985,1987,1989,1997,2002,2010,2020,2023,2031,2036,2045,2051,2055,2061,2068,2077,2083,2093,2095,2098,2106,2111,2121,2126,2130]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},Yp=class extends p{constructor(t,e){super(t,e)}EOF(){return this.getToken(fp.EOF,0)}statements(){return this.getRuleContext(0,wp)}get ruleIndex(){return fp.RULE_root}accept(t){return t.visitRoot?t.visitRoot(this):t.visitChildren(this)}},wp=class t extends p{constructor(t,e){super(t,e)}statement(){return this.getRuleContext(0,bp)}SEMICOLON(){return this.getToken(fp.SEMICOLON,0)}statements(){return this.getRuleContext(0,t)}get ruleIndex(){return fp.RULE_statements}accept(t){return t.visitStatements?t.visitStatements(this):t.visitChildren(this)}},bp=class extends p{constructor(t,e){super(t,e)}notInsertStatement(){return this.getRuleContext(0,Wp)}INTO(){return this.getToken(fp.INTO,0)}OUTFILE(){return this.getToken(fp.OUTFILE,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}FORMAT(){return this.getToken(fp.FORMAT,0)}identifierOrNull(){return this.getRuleContext(0,cG)}SEMICOLON(){return this.getToken(fp.SEMICOLON,0)}insertStatement(){return this.getRuleContext(0,vx)}get ruleIndex(){return fp.RULE_statement}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},Wp=class extends p{constructor(t,e){super(t,e)}alterStatement(){return this.getRuleContext(0,Qp)}attachStatement(){return this.getRuleContext(0,Dg)}checkStatement(){return this.getRuleContext(0,gg)}createStatement(){return this.getRuleContext(0,yg)}describeStatement(){return this.getRuleContext(0,Cx)}deleteStatement(){return this.getRuleContext(0,xg)}dropStatement(){return this.getRuleContext(0,_x)}existsStatement(){return this.getRuleContext(0,dx)}explainStatement(){return this.getRuleContext(0,Dx)}killStatement(){return this.getRuleContext(0,Wx)}optimizeStatement(){return this.getRuleContext(0,Xx)}renameStatement(){return this.getRuleContext(0,Kx)}selectUnionStatement(){return this.getRuleContext(0,Jx)}setStatement(){return this.getRuleContext(0,Bk)}showStatement(){return this.getRuleContext(0,yk)}systemStatement(){return this.getRuleContext(0,Xk)}truncateStatement(){return this.getRuleContext(0,Kk)}useStatement(){return this.getRuleContext(0,Qk)}watchStatement(){return this.getRuleContext(0,Jk)}selectStatement(){return this.getRuleContext(0,qx)}commonTableExpressionStatement(){return this.getRuleContext(0,Vp)}get ruleIndex(){return fp.RULE_notInsertStatement}accept(t){return t.visitNotInsertStatement?t.visitNotInsertStatement(this):t.visitChildren(this)}},Vp=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(fp.WITH,0)}namedQuery(t){return void 0===t?this.getRuleContexts(Xp):this.getRuleContext(t,Xp)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_commonTableExpressionStatement}accept(t){return t.visitCommonTableExpressionStatement?t.visitCommonTableExpressionStatement(this):t.visitChildren(this)}},Xp=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(fp.AS,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}RPAREN(){return this.getToken(fp.RPAREN,0)}identifier(){return this.getRuleContext(0,rG)}columnAliases(){return this.getRuleContext(0,Kp)}get ruleIndex(){return fp.RULE_namedQuery}accept(t){return t.visitNamedQuery?t.visitNamedQuery(this):t.visitChildren(this)}},Kp=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(fp.LPAREN,0)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_columnAliases}accept(t){return t.visitColumnAliases?t.visitColumnAliases(this):t.visitChildren(this)}},Qp=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_alterStatement}copyFrom(t){super.copyFrom(t)}},Jp=class extends Qp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ALTER(){return this.getToken(fp.ALTER,0)}TABLE(){return this.getToken(fp.TABLE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}alterTableClause(t){return void 0===t?this.getRuleContexts(Zp):this.getRuleContext(t,Zp)}clusterClause(){return this.getRuleContext(0,Zg)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}accept(t){return t.visitAlterTableStatement?t.visitAlterTableStatement(this):t.visitChildren(this)}},Zp=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_alterTableClause}copyFrom(t){super.copyFrom(t)}},qp=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REPLACE(){return this.getToken(fp.REPLACE,0)}partitionClause(){return this.getRuleContext(0,mg)}FROM(){return this.getToken(fp.FROM,0)}tableIdentifier(){return this.getRuleContext(0,JH)}accept(t){return t.visitAlterTableClauseReplace?t.visitAlterTableClauseReplace(this):t.visitChildren(this)}},jp=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken(fp.MODIFY,0)}ORDER(){return this.getToken(fp.ORDER,0)}BY(){return this.getToken(fp.BY,0)}columnExpression(){return this.getRuleContext(0,cH)}accept(t){return t.visitAlterTableClauseModifyOrderBy?t.visitAlterTableClauseModifyOrderBy(this):t.visitChildren(this)}},zp=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}UPDATE(){return this.getToken(fp.UPDATE,0)}assignmentExpressionList(){return this.getRuleContext(0,Mg)}whereClause(){return this.getRuleContext(0,ak)}accept(t){return t.visitAlterTableClauseUpdate?t.visitAlterTableClauseUpdate(this):t.visitChildren(this)}},$p=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CLEAR(){return this.getToken(fp.CLEAR,0)}PROJECTION(){return this.getToken(fp.PROJECTION,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}IN(){return this.getToken(fp.IN,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseClearProjection?t.visitAlterTableClauseClearProjection(this):t.visitChildren(this)}},tg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken(fp.MODIFY,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(){return this.getRuleContext(0,wH)}REMOVE(){return this.getToken(fp.REMOVE,0)}tableColumnPropertyType(){return this.getRuleContext(0,Ug)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseModifyRemove?t.visitAlterTableClauseModifyRemove(this):t.visitChildren(this)}},eg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DELETE(){return this.getToken(fp.DELETE,0)}WHERE(){return this.getToken(fp.WHERE,0)}columnExpression(){return this.getRuleContext(0,cH)}accept(t){return t.visitAlterTableClauseDelete?t.visitAlterTableClauseDelete(this):t.visitChildren(this)}},sg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}COMMENT(){return this.getToken(fp.COMMENT,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(){return this.getRuleContext(0,wH)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseComment?t.visitAlterTableClauseComment(this):t.visitChildren(this)}},ag=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken(fp.DROP,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseDropColumn?t.visitAlterTableClauseDropColumn(this):t.visitChildren(this)}},ig=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DETACH(){return this.getToken(fp.DETACH,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseDetach?t.visitAlterTableClauseDetach(this):t.visitChildren(this)}},rg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken(fp.ADD,0)}INDEX(){return this.getToken(fp.INDEX,0)}tableIndexDefinition(){return this.getRuleContext(0,Ox)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}AFTER(){return this.getToken(fp.AFTER,0)}columnIdentifier(){return this.getRuleContext(0,wH)}accept(t){return t.visitAlterTableClauseAddIndex?t.visitAlterTableClauseAddIndex(this):t.visitChildren(this)}},cg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken(fp.DROP,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseDropPartition?t.visitAlterTableClauseDropPartition(this):t.visitChildren(this)}},ng=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MATERIALIZE(){return this.getToken(fp.MATERIALIZE,0)}INDEX(){return this.getToken(fp.INDEX,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}IN(){return this.getToken(fp.IN,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseMaterializeIndex?t.visitAlterTableClauseMaterializeIndex(this):t.visitChildren(this)}},hg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MATERIALIZE(){return this.getToken(fp.MATERIALIZE,0)}PROJECTION(){return this.getToken(fp.PROJECTION,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}IN(){return this.getToken(fp.IN,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseMaterializeProjection?t.visitAlterTableClauseMaterializeProjection(this):t.visitChildren(this)}},Eg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MOVE(){return this.getToken(fp.MOVE,0)}partitionClause(){return this.getRuleContext(0,mg)}TO(){return this.getToken(fp.TO,0)}DISK(){return this.getToken(fp.DISK,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}VOLUME(){return this.getToken(fp.VOLUME,0)}TABLE(){return this.getToken(fp.TABLE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}accept(t){return t.visitAlterTableClauseMovePartition?t.visitAlterTableClauseMovePartition(this):t.visitChildren(this)}},Tg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}RENAME(){return this.getToken(fp.RENAME,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(t){return void 0===t?this.getRuleContexts(wH):this.getRuleContext(t,wH)}TO(){return this.getToken(fp.TO,0)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseRename?t.visitAlterTableClauseRename(this):t.visitChildren(this)}},og=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FREEZE(){return this.getToken(fp.FREEZE,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseFreezePartition?t.visitAlterTableClauseFreezePartition(this):t.visitChildren(this)}},Rg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CLEAR(){return this.getToken(fp.CLEAR,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}IN(){return this.getToken(fp.IN,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseClearColumn?t.visitAlterTableClauseClearColumn(this):t.visitChildren(this)}},Ag=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken(fp.MODIFY,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}tableColumnDefinition(){return this.getRuleContext(0,Sx)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseModify?t.visitAlterTableClauseModify(this):t.visitChildren(this)}},Sg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CLEAR(){return this.getToken(fp.CLEAR,0)}INDEX(){return this.getToken(fp.INDEX,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}IN(){return this.getToken(fp.IN,0)}partitionClause(){return this.getRuleContext(0,mg)}accept(t){return t.visitAlterTableClauseClearIndex?t.visitAlterTableClauseClearIndex(this):t.visitChildren(this)}},lg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}REMOVE(){return this.getToken(fp.REMOVE,0)}TTL(){return this.getToken(fp.TTL,0)}accept(t){return t.visitAlterTableClauseRemoveTTL?t.visitAlterTableClauseRemoveTTL(this):t.visitChildren(this)}},Og=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken(fp.MODIFY,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(){return this.getRuleContext(0,wH)}codecExpression(){return this.getRuleContext(0,ux)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseModifyCodec?t.visitAlterTableClauseModifyCodec(this):t.visitChildren(this)}},Ig=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ATTACH(){return this.getToken(fp.ATTACH,0)}partitionClause(){return this.getRuleContext(0,mg)}FROM(){return this.getToken(fp.FROM,0)}tableIdentifier(){return this.getRuleContext(0,JH)}accept(t){return t.visitAlterTableClauseAttach?t.visitAlterTableClauseAttach(this):t.visitChildren(this)}},ug=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken(fp.DROP,0)}PROJECTION(){return this.getToken(fp.PROJECTION,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseDropProjection?t.visitAlterTableClauseDropProjection(this):t.visitChildren(this)}},Ng=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DROP(){return this.getToken(fp.DROP,0)}INDEX(){return this.getToken(fp.INDEX,0)}columnIdentifier(){return this.getRuleContext(0,wH)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseDropIndex?t.visitAlterTableClauseDropIndex(this):t.visitChildren(this)}},Lg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken(fp.MODIFY,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}columnIdentifier(){return this.getRuleContext(0,wH)}COMMENT(){return this.getToken(fp.COMMENT,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}accept(t){return t.visitAlterTableClauseModifyComment?t.visitAlterTableClauseModifyComment(this):t.visitChildren(this)}},Cg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}MODIFY(){return this.getToken(fp.MODIFY,0)}ttlClause(){return this.getRuleContext(0,nx)}accept(t){return t.visitAlterTableClauseModifyTTL?t.visitAlterTableClauseModifyTTL(this):t.visitChildren(this)}},_g=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken(fp.ADD,0)}PROJECTION(){return this.getToken(fp.PROJECTION,0)}tableProjectionDefinition(){return this.getRuleContext(0,Ix)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}AFTER(){return this.getToken(fp.AFTER,0)}columnIdentifier(){return this.getRuleContext(0,wH)}accept(t){return t.visitAlterTableClauseAddProjection?t.visitAlterTableClauseAddProjection(this):t.visitChildren(this)}},Pg=class extends Zp{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ADD(){return this.getToken(fp.ADD,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}tableColumnDefinition(){return this.getRuleContext(0,Sx)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}AFTER(){return this.getToken(fp.AFTER,0)}columnIdentifier(){return this.getRuleContext(0,wH)}accept(t){return t.visitAlterTableClauseAddColumn?t.visitAlterTableClauseAddColumn(this):t.visitChildren(this)}},Mg=class extends p{constructor(t,e){super(t,e)}assignmentExpression(t){return void 0===t?this.getRuleContexts(dg):this.getRuleContext(t,dg)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_assignmentExpressionList}accept(t){return t.visitAssignmentExpressionList?t.visitAssignmentExpressionList(this):t.visitChildren(this)}},dg=class extends p{constructor(t,e){super(t,e)}columnIdentifier(){return this.getRuleContext(0,wH)}EQ_SINGLE(){return this.getToken(fp.EQ_SINGLE,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_assignmentExpression}accept(t){return t.visitAssignmentExpression?t.visitAssignmentExpression(this):t.visitChildren(this)}},Ug=class extends p{constructor(t,e){super(t,e)}ALIAS(){return this.getToken(fp.ALIAS,0)}CODEC(){return this.getToken(fp.CODEC,0)}COMMENT(){return this.getToken(fp.COMMENT,0)}DEFAULT(){return this.getToken(fp.DEFAULT,0)}MATERIALIZED(){return this.getToken(fp.MATERIALIZED,0)}TTL(){return this.getToken(fp.TTL,0)}get ruleIndex(){return fp.RULE_tableColumnPropertyType}accept(t){return t.visitTableColumnPropertyType?t.visitTableColumnPropertyType(this):t.visitChildren(this)}},mg=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(fp.PARTITION,0)}columnExpression(){return this.getRuleContext(0,cH)}ID(){return this.getToken(fp.ID,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}get ruleIndex(){return fp.RULE_partitionClause}accept(t){return t.visitPartitionClause?t.visitPartitionClause(this):t.visitChildren(this)}},Dg=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_attachStatement}copyFrom(t){super.copyFrom(t)}},pg=class extends Dg{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ATTACH(){return this.getToken(fp.ATTACH,0)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}tableIdentifier(){return this.getRuleContext(0,JH)}clusterClause(){return this.getRuleContext(0,Zg)}accept(t){return t.visitAttachDictionaryStatement?t.visitAttachDictionaryStatement(this):t.visitChildren(this)}},gg=class extends p{constructor(t,e){super(t,e)}CHECK(){return this.getToken(fp.CHECK,0)}TABLE(){return this.getToken(fp.TABLE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}partitionClause(){return this.getRuleContext(0,mg)}get ruleIndex(){return fp.RULE_checkStatement}accept(t){return t.visitCheckStatement?t.visitCheckStatement(this):t.visitChildren(this)}},xg=class extends p{constructor(t,e){super(t,e)}DELETE(){return this.getToken(fp.DELETE,0)}FROM(){return this.getToken(fp.FROM,0)}tableIdentifier(){return this.getRuleContext(0,JH)}clusterClause(){return this.getRuleContext(0,Zg)}whereClause(){return this.getRuleContext(0,ak)}get ruleIndex(){return fp.RULE_deleteStatement}accept(t){return t.visitDeleteStatement?t.visitDeleteStatement(this):t.visitChildren(this)}},kg=class extends p{constructor(t,e){super(t,e)}TABLE(){return this.getToken(fp.TABLE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}ATTACH(){return this.getToken(fp.ATTACH,0)}CREATE(){return this.getToken(fp.CREATE,0)}REPLACE(){return this.getToken(fp.REPLACE,0)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}uuidClause(){return this.getRuleContext(0,qg)}clusterClause(){return this.getRuleContext(0,Zg)}tableSchemaClause(){return this.getRuleContext(0,$g)}engineClause(){return this.getRuleContext(0,ax)}subqueryClause(){return this.getRuleContext(0,zg)}OR(){return this.getToken(fp.OR,0)}get ruleIndex(){return fp.RULE_createTableStatement}accept(t){return t.visitCreateTableStatement?t.visitCreateTableStatement(this):t.visitChildren(this)}},Hg=class extends p{constructor(t,e){super(t,e)}DATABASE(){return this.getToken(fp.DATABASE,0)}identifier(){return this.getRuleContext(0,rG)}engineExpression(){return this.getRuleContext(0,hx)}ATTACH(){return this.getToken(fp.ATTACH,0)}CREATE(){return this.getToken(fp.CREATE,0)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}clusterClause(){return this.getRuleContext(0,Zg)}get ruleIndex(){return fp.RULE_createDatabaseStatement}accept(t){return t.visitCreateDatabaseStatement?t.visitCreateDatabaseStatement(this):t.visitChildren(this)}},Gg=class extends p{constructor(t,e){super(t,e)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}tableIdentifier(){return this.getRuleContext(0,JH)}dictionarySchemaClause(){return this.getRuleContext(0,fg)}dictionaryEngineClause(){return this.getRuleContext(0,wg)}ATTACH(){return this.getToken(fp.ATTACH,0)}CREATE(){return this.getToken(fp.CREATE,0)}REPLACE(){return this.getToken(fp.REPLACE,0)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}uuidClause(){return this.getRuleContext(0,qg)}clusterClause(){return this.getRuleContext(0,Zg)}OR(){return this.getToken(fp.OR,0)}get ruleIndex(){return fp.RULE_createDictionaryStatement}accept(t){return t.visitCreateDictionaryStatement?t.visitCreateDictionaryStatement(this):t.visitChildren(this)}},Fg=class extends p{constructor(t,e){super(t,e)}LIVE(){return this.getToken(fp.LIVE,0)}VIEW(){return this.getToken(fp.VIEW,0)}tableIdentifier(){return this.getRuleContext(0,JH)}subqueryClause(){return this.getRuleContext(0,zg)}ATTACH(){return this.getToken(fp.ATTACH,0)}CREATE(){return this.getToken(fp.CREATE,0)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}uuidClause(){return this.getRuleContext(0,qg)}clusterClause(){return this.getRuleContext(0,Zg)}WITH(){return this.getToken(fp.WITH,0)}TIMEOUT(){return this.getToken(fp.TIMEOUT,0)}destinationClause(){return this.getRuleContext(0,jg)}tableSchemaClause(){return this.getRuleContext(0,$g)}DECIMAL_LITERAL(){return this.getToken(fp.DECIMAL_LITERAL,0)}get ruleIndex(){return fp.RULE_createLiveViewStatement}accept(t){return t.visitCreateLiveViewStatement?t.visitCreateLiveViewStatement(this):t.visitChildren(this)}},vg=class extends p{constructor(t,e){super(t,e)}MATERIALIZED(){return this.getToken(fp.MATERIALIZED,0)}VIEW(){return this.getToken(fp.VIEW,0)}tableIdentifier(){return this.getRuleContext(0,JH)}subqueryClause(){return this.getRuleContext(0,zg)}ATTACH(){return this.getToken(fp.ATTACH,0)}CREATE(){return this.getToken(fp.CREATE,0)}destinationClause(){return this.getRuleContext(0,jg)}engineClause(){return this.getRuleContext(0,ax)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}uuidClause(){return this.getRuleContext(0,qg)}clusterClause(){return this.getRuleContext(0,Zg)}tableSchemaClause(){return this.getRuleContext(0,$g)}POPULATE(){return this.getToken(fp.POPULATE,0)}get ruleIndex(){return fp.RULE_createMaterializedViewStatement}accept(t){return t.visitCreateMaterializedViewStatement?t.visitCreateMaterializedViewStatement(this):t.visitChildren(this)}},Bg=class extends p{constructor(t,e){super(t,e)}VIEW(){return this.getToken(fp.VIEW,0)}tableIdentifier(){return this.getRuleContext(0,JH)}subqueryClause(){return this.getRuleContext(0,zg)}ATTACH(){return this.getToken(fp.ATTACH,0)}CREATE(){return this.getToken(fp.CREATE,0)}OR(){return this.getToken(fp.OR,0)}REPLACE(){return this.getToken(fp.REPLACE,0)}IF(){return this.getToken(fp.IF,0)}NOT(){return this.getToken(fp.NOT,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}uuidClause(){return this.getRuleContext(0,qg)}clusterClause(){return this.getRuleContext(0,Zg)}tableSchemaClause(){return this.getRuleContext(0,$g)}get ruleIndex(){return fp.RULE_createViewStatement}accept(t){return t.visitCreateViewStatement?t.visitCreateViewStatement(this):t.visitChildren(this)}},yg=class extends p{constructor(t,e){super(t,e)}createDatabaseStatement(){return this.getRuleContext(0,Hg)}createDictionaryStatement(){return this.getRuleContext(0,Gg)}createLiveViewStatement(){return this.getRuleContext(0,Fg)}createMaterializedViewStatement(){return this.getRuleContext(0,vg)}createTableStatement(){return this.getRuleContext(0,kg)}createViewStatement(){return this.getRuleContext(0,Bg)}get ruleIndex(){return fp.RULE_createStatement}accept(t){return t.visitCreateStatement?t.visitCreateStatement(this):t.visitChildren(this)}},fg=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(fp.LPAREN,0)}dictionaryAttributeDefinition(t){return void 0===t?this.getRuleContexts(Yg):this.getRuleContext(t,Yg)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_dictionarySchemaClause}accept(t){return t.visitDictionarySchemaClause?t.visitDictionarySchemaClause(this):t.visitChildren(this)}},Yg=class extends p{constructor(t,e){super(t,e),this.attrs=new Set}identifier(){return this.getRuleContext(0,rG)}columnTypeExpression(){return this.getRuleContext(0,Zk)}DEFAULT(t){return void 0===t?this.getTokens(fp.DEFAULT):this.getToken(fp.DEFAULT,t)}literal(t){return void 0===t?this.getRuleContexts(tG):this.getRuleContext(t,tG)}EXPRESSION(t){return void 0===t?this.getTokens(fp.EXPRESSION):this.getToken(fp.EXPRESSION,t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}HIERARCHICAL(t){return void 0===t?this.getTokens(fp.HIERARCHICAL):this.getToken(fp.HIERARCHICAL,t)}INJECTIVE(t){return void 0===t?this.getTokens(fp.INJECTIVE):this.getToken(fp.INJECTIVE,t)}IS_OBJECT_ID(t){return void 0===t?this.getTokens(fp.IS_OBJECT_ID):this.getToken(fp.IS_OBJECT_ID,t)}get ruleIndex(){return fp.RULE_dictionaryAttributeDefinition}accept(t){return t.visitDictionaryAttributeDefinition?t.visitDictionaryAttributeDefinition(this):t.visitChildren(this)}},wg=class extends p{constructor(t,e){super(t,e),this.clauses=new Set}dictionaryPrimaryKeyClause(){return this.getRuleContext(0,bg)}sourceClause(t){return void 0===t?this.getRuleContexts(Vg):this.getRuleContext(t,Vg)}lifetimeClause(t){return void 0===t?this.getRuleContexts(Xg):this.getRuleContext(t,Xg)}layoutClause(t){return void 0===t?this.getRuleContexts(Kg):this.getRuleContext(t,Kg)}rangeClause(t){return void 0===t?this.getRuleContexts(Qg):this.getRuleContext(t,Qg)}dictionarySettingsClause(t){return void 0===t?this.getRuleContexts(Jg):this.getRuleContext(t,Jg)}get ruleIndex(){return fp.RULE_dictionaryEngineClause}accept(t){return t.visitDictionaryEngineClause?t.visitDictionaryEngineClause(this):t.visitChildren(this)}},bg=class extends p{constructor(t,e){super(t,e)}PRIMARY(){return this.getToken(fp.PRIMARY,0)}KEY(){return this.getToken(fp.KEY,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_dictionaryPrimaryKeyClause}accept(t){return t.visitDictionaryPrimaryKeyClause?t.visitDictionaryPrimaryKeyClause(this):t.visitChildren(this)}},Wg=class extends p{constructor(t,e){super(t,e)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}literal(){return this.getRuleContext(0,tG)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}get ruleIndex(){return fp.RULE_dictionaryArgumentExpression}accept(t){return t.visitDictionaryArgumentExpression?t.visitDictionaryArgumentExpression(this):t.visitChildren(this)}},Vg=class extends p{constructor(t,e){super(t,e)}SOURCE(){return this.getToken(fp.SOURCE,0)}LPAREN(t){return void 0===t?this.getTokens(fp.LPAREN):this.getToken(fp.LPAREN,t)}identifier(){return this.getRuleContext(0,rG)}RPAREN(t){return void 0===t?this.getTokens(fp.RPAREN):this.getToken(fp.RPAREN,t)}dictionaryArgumentExpression(t){return void 0===t?this.getRuleContexts(Wg):this.getRuleContext(t,Wg)}get ruleIndex(){return fp.RULE_sourceClause}accept(t){return t.visitSourceClause?t.visitSourceClause(this):t.visitChildren(this)}},Xg=class extends p{constructor(t,e){super(t,e)}LIFETIME(){return this.getToken(fp.LIFETIME,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}DECIMAL_LITERAL(t){return void 0===t?this.getTokens(fp.DECIMAL_LITERAL):this.getToken(fp.DECIMAL_LITERAL,t)}MIN(){return this.getToken(fp.MIN,0)}MAX(){return this.getToken(fp.MAX,0)}get ruleIndex(){return fp.RULE_lifetimeClause}accept(t){return t.visitLifetimeClause?t.visitLifetimeClause(this):t.visitChildren(this)}},Kg=class extends p{constructor(t,e){super(t,e)}LAYOUT(){return this.getToken(fp.LAYOUT,0)}LPAREN(t){return void 0===t?this.getTokens(fp.LPAREN):this.getToken(fp.LPAREN,t)}identifier(){return this.getRuleContext(0,rG)}RPAREN(t){return void 0===t?this.getTokens(fp.RPAREN):this.getToken(fp.RPAREN,t)}dictionaryArgumentExpression(t){return void 0===t?this.getRuleContexts(Wg):this.getRuleContext(t,Wg)}get ruleIndex(){return fp.RULE_layoutClause}accept(t){return t.visitLayoutClause?t.visitLayoutClause(this):t.visitChildren(this)}},Qg=class extends p{constructor(t,e){super(t,e)}RANGE(){return this.getToken(fp.RANGE,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}MIN(){return this.getToken(fp.MIN,0)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}MAX(){return this.getToken(fp.MAX,0)}get ruleIndex(){return fp.RULE_rangeClause}accept(t){return t.visitRangeClause?t.visitRangeClause(this):t.visitChildren(this)}},Jg=class extends p{constructor(t,e){super(t,e)}SETTINGS(){return this.getToken(fp.SETTINGS,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}settingExpressionList(){return this.getRuleContext(0,mk)}RPAREN(){return this.getToken(fp.RPAREN,0)}get ruleIndex(){return fp.RULE_dictionarySettingsClause}accept(t){return t.visitDictionarySettingsClause?t.visitDictionarySettingsClause(this):t.visitChildren(this)}},Zg=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(fp.ON,0)}CLUSTER(){return this.getToken(fp.CLUSTER,0)}identifier(){return this.getRuleContext(0,rG)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}get ruleIndex(){return fp.RULE_clusterClause}accept(t){return t.visitClusterClause?t.visitClusterClause(this):t.visitChildren(this)}},qg=class extends p{constructor(t,e){super(t,e)}UUID(){return this.getToken(fp.UUID,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}get ruleIndex(){return fp.RULE_uuidClause}accept(t){return t.visitUuidClause?t.visitUuidClause(this):t.visitChildren(this)}},jg=class extends p{constructor(t,e){super(t,e)}TO(){return this.getToken(fp.TO,0)}tableIdentifier(){return this.getRuleContext(0,JH)}get ruleIndex(){return fp.RULE_destinationClause}accept(t){return t.visitDestinationClause?t.visitDestinationClause(this):t.visitChildren(this)}},zg=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(fp.AS,0)}selectUnionStatement(){return this.getRuleContext(0,Jx)}get ruleIndex(){return fp.RULE_subqueryClause}accept(t){return t.visitSubqueryClause?t.visitSubqueryClause(this):t.visitChildren(this)}},$g=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_tableSchemaClause}copyFrom(t){super.copyFrom(t)}},tx=class extends $g{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AS(){return this.getToken(fp.AS,0)}tableIdentifier(){return this.getRuleContext(0,JH)}accept(t){return t.visitSchemaAsTableClause?t.visitSchemaAsTableClause(this):t.visitChildren(this)}},ex=class extends $g{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}AS(){return this.getToken(fp.AS,0)}tableFunctionExpression(){return this.getRuleContext(0,QH)}accept(t){return t.visitSchemaAsFunctionClause?t.visitSchemaAsFunctionClause(this):t.visitChildren(this)}},sx=class extends $g{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}tableElementExpression(t){return void 0===t?this.getRuleContexts(Ex):this.getRuleContext(t,Ex)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}accept(t){return t.visitSchemaDescriptionClause?t.visitSchemaDescriptionClause(this):t.visitChildren(this)}},ax=class extends p{constructor(t,e){super(t,e),this.clauses=new Set}engineExpression(){return this.getRuleContext(0,hx)}orderByClause(t){return void 0===t?this.getRuleContexts(ck):this.getRuleContext(t,ck)}partitionByClause(t){return void 0===t?this.getRuleContexts(ix):this.getRuleContext(t,ix)}primaryKeyClause(t){return void 0===t?this.getRuleContexts(rx):this.getRuleContext(t,rx)}sampleByClause(t){return void 0===t?this.getRuleContexts(cx):this.getRuleContext(t,cx)}ttlClause(t){return void 0===t?this.getRuleContexts(nx):this.getRuleContext(t,nx)}settingsClause(t){return void 0===t?this.getRuleContexts(Tk):this.getRuleContext(t,Tk)}get ruleIndex(){return fp.RULE_engineClause}accept(t){return t.visitEngineClause?t.visitEngineClause(this):t.visitChildren(this)}},ix=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(fp.PARTITION,0)}BY(){return this.getToken(fp.BY,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_partitionByClause}accept(t){return t.visitPartitionByClause?t.visitPartitionByClause(this):t.visitChildren(this)}},rx=class extends p{constructor(t,e){super(t,e)}PRIMARY(){return this.getToken(fp.PRIMARY,0)}KEY(){return this.getToken(fp.KEY,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_primaryKeyClause}accept(t){return t.visitPrimaryKeyClause?t.visitPrimaryKeyClause(this):t.visitChildren(this)}},cx=class extends p{constructor(t,e){super(t,e)}SAMPLE(){return this.getToken(fp.SAMPLE,0)}BY(){return this.getToken(fp.BY,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_sampleByClause}accept(t){return t.visitSampleByClause?t.visitSampleByClause(this):t.visitChildren(this)}},nx=class extends p{constructor(t,e){super(t,e)}TTL(){return this.getToken(fp.TTL,0)}ttlExpression(t){return void 0===t?this.getRuleContexts(Lx):this.getRuleContext(t,Lx)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_ttlClause}accept(t){return t.visitTtlClause?t.visitTtlClause(this):t.visitChildren(this)}},hx=class extends p{constructor(t,e){super(t,e)}ENGINE(){return this.getToken(fp.ENGINE,0)}identifierOrNull(){return this.getRuleContext(0,cG)}EQ_SINGLE(){return this.getToken(fp.EQ_SINGLE,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_engineExpression}accept(t){return t.visitEngineExpression?t.visitEngineExpression(this):t.visitChildren(this)}},Ex=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_tableElementExpression}copyFrom(t){super.copyFrom(t)}},Tx=class extends Ex{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableColumnDefinition(){return this.getRuleContext(0,Sx)}accept(t){return t.visitTableElementExpressionColumn?t.visitTableElementExpressionColumn(this):t.visitChildren(this)}},ox=class extends Ex{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CONSTRAINT(){return this.getToken(fp.CONSTRAINT,0)}identifier(){return this.getRuleContext(0,rG)}CHECK(){return this.getToken(fp.CHECK,0)}columnExpression(){return this.getRuleContext(0,cH)}accept(t){return t.visitTableElementExpressionConstraint?t.visitTableElementExpressionConstraint(this):t.visitChildren(this)}},Rx=class extends Ex{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INDEX(){return this.getToken(fp.INDEX,0)}tableIndexDefinition(){return this.getRuleContext(0,Ox)}accept(t){return t.visitTableElementExpressionIndex?t.visitTableElementExpressionIndex(this):t.visitChildren(this)}},Ax=class extends Ex{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}PROJECTION(){return this.getToken(fp.PROJECTION,0)}tableProjectionDefinition(){return this.getRuleContext(0,Ix)}accept(t){return t.visitTableElementExpressionProjection?t.visitTableElementExpressionProjection(this):t.visitChildren(this)}},Sx=class extends p{constructor(t,e){super(t,e)}columnIdentifier(){return this.getRuleContext(0,wH)}columnTypeExpression(){return this.getRuleContext(0,Zk)}tableColumnPropertyExpression(){return this.getRuleContext(0,lx)}COMMENT(){return this.getToken(fp.COMMENT,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}codecExpression(){return this.getRuleContext(0,ux)}TTL(){return this.getToken(fp.TTL,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_tableColumnDefinition}accept(t){return t.visitTableColumnDefinition?t.visitTableColumnDefinition(this):t.visitChildren(this)}},lx=class extends p{constructor(t,e){super(t,e)}columnExpression(){return this.getRuleContext(0,cH)}DEFAULT(){return this.getToken(fp.DEFAULT,0)}MATERIALIZED(){return this.getToken(fp.MATERIALIZED,0)}ALIAS(){return this.getToken(fp.ALIAS,0)}get ruleIndex(){return fp.RULE_tableColumnPropertyExpression}accept(t){return t.visitTableColumnPropertyExpression?t.visitTableColumnPropertyExpression(this):t.visitChildren(this)}},Ox=class extends p{constructor(t,e){super(t,e)}columnIdentifier(){return this.getRuleContext(0,wH)}columnExpression(){return this.getRuleContext(0,cH)}TYPE(){return this.getToken(fp.TYPE,0)}columnTypeExpression(){return this.getRuleContext(0,Zk)}GRANULARITY(){return this.getToken(fp.GRANULARITY,0)}DECIMAL_LITERAL(){return this.getToken(fp.DECIMAL_LITERAL,0)}get ruleIndex(){return fp.RULE_tableIndexDefinition}accept(t){return t.visitTableIndexDefinition?t.visitTableIndexDefinition(this):t.visitChildren(this)}},Ix=class extends p{constructor(t,e){super(t,e)}columnIdentifier(){return this.getRuleContext(0,wH)}projectionSelectStatement(){return this.getRuleContext(0,Qx)}get ruleIndex(){return fp.RULE_tableProjectionDefinition}accept(t){return t.visitTableProjectionDefinition?t.visitTableProjectionDefinition(this):t.visitChildren(this)}},ux=class extends p{constructor(t,e){super(t,e)}CODEC(){return this.getToken(fp.CODEC,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}codecArgExpression(t){return void 0===t?this.getRuleContexts(Nx):this.getRuleContext(t,Nx)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_codecExpression}accept(t){return t.visitCodecExpression?t.visitCodecExpression(this):t.visitChildren(this)}},Nx=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,rG)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_codecArgExpression}accept(t){return t.visitCodecArgExpression?t.visitCodecArgExpression(this):t.visitChildren(this)}},Lx=class extends p{constructor(t,e){super(t,e)}columnExpression(){return this.getRuleContext(0,cH)}DELETE(){return this.getToken(fp.DELETE,0)}TO(){return this.getToken(fp.TO,0)}DISK(){return this.getToken(fp.DISK,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}VOLUME(){return this.getToken(fp.VOLUME,0)}get ruleIndex(){return fp.RULE_ttlExpression}accept(t){return t.visitTtlExpression?t.visitTtlExpression(this):t.visitChildren(this)}},Cx=class extends p{constructor(t,e){super(t,e)}tableExpression(){return this.getRuleContext(0,bH)}DESCRIBE(){return this.getToken(fp.DESCRIBE,0)}DESC(){return this.getToken(fp.DESC,0)}TABLE(){return this.getToken(fp.TABLE,0)}get ruleIndex(){return fp.RULE_describeStatement}accept(t){return t.visitDescribeStatement?t.visitDescribeStatement(this):t.visitChildren(this)}},_x=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_dropStatement}copyFrom(t){super.copyFrom(t)}},Px=class extends _x{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DATABASE(){return this.getToken(fp.DATABASE,0)}databaseIdentifier(){return this.getRuleContext(0,jH)}DETACH(){return this.getToken(fp.DETACH,0)}DROP(){return this.getToken(fp.DROP,0)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}clusterClause(){return this.getRuleContext(0,Zg)}accept(t){return t.visitDropDatabaseStatement?t.visitDropDatabaseStatement(this):t.visitChildren(this)}},Mx=class extends _x{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableIdentifier(){return this.getRuleContext(0,JH)}DETACH(){return this.getToken(fp.DETACH,0)}DROP(){return this.getToken(fp.DROP,0)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}TABLE(){return this.getToken(fp.TABLE,0)}VIEW(){return this.getToken(fp.VIEW,0)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}clusterClause(){return this.getRuleContext(0,Zg)}NO(){return this.getToken(fp.NO,0)}DELAY(){return this.getToken(fp.DELAY,0)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}accept(t){return t.visitDropTableStatement?t.visitDropTableStatement(this):t.visitChildren(this)}},dx=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_existsStatement}copyFrom(t){super.copyFrom(t)}},Ux=class extends dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXISTS(){return this.getToken(fp.EXISTS,0)}DATABASE(){return this.getToken(fp.DATABASE,0)}databaseIdentifier(){return this.getRuleContext(0,jH)}accept(t){return t.visitExistsDatabaseStatement?t.visitExistsDatabaseStatement(this):t.visitChildren(this)}},mx=class extends dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXISTS(){return this.getToken(fp.EXISTS,0)}tableIdentifier(){return this.getRuleContext(0,JH)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}TABLE(){return this.getToken(fp.TABLE,0)}VIEW(){return this.getToken(fp.VIEW,0)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}accept(t){return t.visitExistsTableStatement?t.visitExistsTableStatement(this):t.visitChildren(this)}},Dx=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_explainStatement}copyFrom(t){super.copyFrom(t)}},px=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}AST(){return this.getToken(fp.AST,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainASTStatement?t.visitExplainASTStatement(this):t.visitChildren(this)}},gx=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}QUERY(){return this.getToken(fp.QUERY,0)}TREE(){return this.getToken(fp.TREE,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainQueryTreeStatement?t.visitExplainQueryTreeStatement(this):t.visitChildren(this)}},xx=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}PLAN(){return this.getToken(fp.PLAN,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainPlanStatement?t.visitExplainPlanStatement(this):t.visitChildren(this)}},kx=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainDefaultStatement?t.visitExplainDefaultStatement(this):t.visitChildren(this)}},Hx=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}ESTIMATE(){return this.getToken(fp.ESTIMATE,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainEstimateStatement?t.visitExplainEstimateStatement(this):t.visitChildren(this)}},Gx=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}SYNTAX(){return this.getToken(fp.SYNTAX,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainSyntaxStatement?t.visitExplainSyntaxStatement(this):t.visitChildren(this)}},Fx=class extends Dx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}PIPELINE(){return this.getToken(fp.PIPELINE,0)}notInsertStatement(){return this.getRuleContext(0,Wp)}accept(t){return t.visitExplainPipelineStatement?t.visitExplainPipelineStatement(this):t.visitChildren(this)}},vx=class extends p{constructor(t,e){super(t,e)}INSERT(){return this.getToken(fp.INSERT,0)}INTO(){return this.getToken(fp.INTO,0)}dataClause(){return this.getRuleContext(0,yx)}tableIdentifier(){return this.getRuleContext(0,JH)}FUNCTION(){return this.getToken(fp.FUNCTION,0)}tableFunctionExpression(){return this.getRuleContext(0,QH)}TABLE(){return this.getToken(fp.TABLE,0)}columnsClause(){return this.getRuleContext(0,Bx)}get ruleIndex(){return fp.RULE_insertStatement}accept(t){return t.visitInsertStatement?t.visitInsertStatement(this):t.visitChildren(this)}},Bx=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnIdentifier(t){return void 0===t?this.getRuleContexts(wH):this.getRuleContext(t,wH)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_columnsClause}accept(t){return t.visitColumnsClause?t.visitColumnsClause(this):t.visitChildren(this)}},yx=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_dataClause}copyFrom(t){super.copyFrom(t)}},fx=class extends yx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}valuesStatement(){return this.getRuleContext(0,bx)}accept(t){return t.visitDataClauseValues?t.visitDataClauseValues(this):t.visitChildren(this)}},Yx=class extends yx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FORMAT(){return this.getToken(fp.FORMAT,0)}identifier(){return this.getRuleContext(0,rG)}accept(t){return t.visitDataClauseFormat?t.visitDataClauseFormat(this):t.visitChildren(this)}},wx=class extends yx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}selectUnionStatement(){return this.getRuleContext(0,Jx)}EOF(){return this.getToken(fp.EOF,0)}SEMICOLON(){return this.getToken(fp.SEMICOLON,0)}accept(t){return t.visitDataClauseSelect?t.visitDataClauseSelect(this):t.visitChildren(this)}},bx=class extends p{constructor(t,e){super(t,e)}VALUES(){return this.getToken(fp.VALUES,0)}LPAREN(t){return void 0===t?this.getTokens(fp.LPAREN):this.getToken(fp.LPAREN,t)}RPAREN(t){return void 0===t?this.getTokens(fp.RPAREN):this.getToken(fp.RPAREN,t)}literal(t){return void 0===t?this.getRuleContexts(tG):this.getRuleContext(t,tG)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_valuesStatement}accept(t){return t.visitValuesStatement?t.visitValuesStatement(this):t.visitChildren(this)}},Wx=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_killStatement}copyFrom(t){super.copyFrom(t)}},Vx=class extends Wx{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}KILL(){return this.getToken(fp.KILL,0)}MUTATION(){return this.getToken(fp.MUTATION,0)}whereClause(){return this.getRuleContext(0,ak)}clusterClause(){return this.getRuleContext(0,Zg)}SYNC(){return this.getToken(fp.SYNC,0)}ASYNC(){return this.getToken(fp.ASYNC,0)}TEST(){return this.getToken(fp.TEST,0)}accept(t){return t.visitKillMutationStatement?t.visitKillMutationStatement(this):t.visitChildren(this)}},Xx=class extends p{constructor(t,e){super(t,e)}OPTIMIZE(){return this.getToken(fp.OPTIMIZE,0)}TABLE(){return this.getToken(fp.TABLE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}clusterClause(){return this.getRuleContext(0,Zg)}partitionClause(){return this.getRuleContext(0,mg)}FINAL(){return this.getToken(fp.FINAL,0)}DEDUPLICATE(){return this.getToken(fp.DEDUPLICATE,0)}get ruleIndex(){return fp.RULE_optimizeStatement}accept(t){return t.visitOptimizeStatement?t.visitOptimizeStatement(this):t.visitChildren(this)}},Kx=class extends p{constructor(t,e){super(t,e)}RENAME(){return this.getToken(fp.RENAME,0)}TABLE(){return this.getToken(fp.TABLE,0)}tableIdentifier(t){return void 0===t?this.getRuleContexts(JH):this.getRuleContext(t,JH)}TO(t){return void 0===t?this.getTokens(fp.TO):this.getToken(fp.TO,t)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}clusterClause(){return this.getRuleContext(0,Zg)}get ruleIndex(){return fp.RULE_renameStatement}accept(t){return t.visitRenameStatement?t.visitRenameStatement(this):t.visitChildren(this)}},Qx=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(fp.LPAREN,0)}SELECT(){return this.getToken(fp.SELECT,0)}columnExpressionList(){return this.getRuleContext(0,eH)}RPAREN(){return this.getToken(fp.RPAREN,0)}withClause(){return this.getRuleContext(0,jx)}groupByClause(){return this.getRuleContext(0,ik)}projectionOrderByClause(){return this.getRuleContext(0,nk)}get ruleIndex(){return fp.RULE_projectionSelectStatement}accept(t){return t.visitProjectionSelectStatement?t.visitProjectionSelectStatement(this):t.visitChildren(this)}},Jx=class extends p{constructor(t,e){super(t,e)}selectStatementWithParentheses(t){return void 0===t?this.getRuleContexts(Zx):this.getRuleContext(t,Zx)}UNION(t){return void 0===t?this.getTokens(fp.UNION):this.getToken(fp.UNION,t)}ALL(t){return void 0===t?this.getTokens(fp.ALL):this.getToken(fp.ALL,t)}get ruleIndex(){return fp.RULE_selectUnionStatement}accept(t){return t.visitSelectUnionStatement?t.visitSelectUnionStatement(this):t.visitChildren(this)}},Zx=class extends p{constructor(t,e){super(t,e)}selectStatement(){return this.getRuleContext(0,qx)}LPAREN(){return this.getToken(fp.LPAREN,0)}selectUnionStatement(){return this.getRuleContext(0,Jx)}RPAREN(){return this.getToken(fp.RPAREN,0)}get ruleIndex(){return fp.RULE_selectStatementWithParentheses}accept(t){return t.visitSelectStatementWithParentheses?t.visitSelectStatementWithParentheses(this):t.visitChildren(this)}},qx=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken(fp.SELECT,0)}columnExpressionList(){return this.getRuleContext(0,eH)}withClause(){return this.getRuleContext(0,jx)}DISTINCT(){return this.getToken(fp.DISTINCT,0)}topClause(){return this.getRuleContext(0,zx)}fromClause(){return this.getRuleContext(0,$x)}arrayJoinClause(){return this.getRuleContext(0,tk)}windowClause(){return this.getRuleContext(0,ek)}prewhereClause(){return this.getRuleContext(0,sk)}whereClause(){return this.getRuleContext(0,ak)}groupByClause(){return this.getRuleContext(0,ik)}WITH(t){return void 0===t?this.getTokens(fp.WITH):this.getToken(fp.WITH,t)}TOTALS(){return this.getToken(fp.TOTALS,0)}havingClause(){return this.getRuleContext(0,rk)}orderByClause(){return this.getRuleContext(0,ck)}limitByClause(){return this.getRuleContext(0,hk)}limitClause(){return this.getRuleContext(0,Ek)}settingsClause(){return this.getRuleContext(0,Tk)}CUBE(){return this.getToken(fp.CUBE,0)}ROLLUP(){return this.getToken(fp.ROLLUP,0)}get ruleIndex(){return fp.RULE_selectStatement}accept(t){return t.visitSelectStatement?t.visitSelectStatement(this):t.visitChildren(this)}},jx=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(fp.WITH,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_withClause}accept(t){return t.visitWithClause?t.visitWithClause(this):t.visitChildren(this)}},zx=class extends p{constructor(t,e){super(t,e)}TOP(){return this.getToken(fp.TOP,0)}DECIMAL_LITERAL(){return this.getToken(fp.DECIMAL_LITERAL,0)}WITH(){return this.getToken(fp.WITH,0)}TIES(){return this.getToken(fp.TIES,0)}get ruleIndex(){return fp.RULE_topClause}accept(t){return t.visitTopClause?t.visitTopClause(this):t.visitChildren(this)}},$x=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(fp.FROM,0)}joinExpression(){return this.getRuleContext(0,ok)}get ruleIndex(){return fp.RULE_fromClause}accept(t){return t.visitFromClause?t.visitFromClause(this):t.visitChildren(this)}},tk=class extends p{constructor(t,e){super(t,e)}ARRAY(){return this.getToken(fp.ARRAY,0)}JOIN(){return this.getToken(fp.JOIN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}LEFT(){return this.getToken(fp.LEFT,0)}INNER(){return this.getToken(fp.INNER,0)}get ruleIndex(){return fp.RULE_arrayJoinClause}accept(t){return t.visitArrayJoinClause?t.visitArrayJoinClause(this):t.visitChildren(this)}},ek=class extends p{constructor(t,e){super(t,e)}WINDOW(){return this.getToken(fp.WINDOW,0)}identifier(){return this.getRuleContext(0,rG)}AS(){return this.getToken(fp.AS,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}windowExpression(){return this.getRuleContext(0,pk)}RPAREN(){return this.getToken(fp.RPAREN,0)}get ruleIndex(){return fp.RULE_windowClause}accept(t){return t.visitWindowClause?t.visitWindowClause(this):t.visitChildren(this)}},sk=class extends p{constructor(t,e){super(t,e)}PREWHERE(){return this.getToken(fp.PREWHERE,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_prewhereClause}accept(t){return t.visitPrewhereClause?t.visitPrewhereClause(this):t.visitChildren(this)}},ak=class extends p{constructor(t,e){super(t,e)}WHERE(){return this.getToken(fp.WHERE,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_whereClause}accept(t){return t.visitWhereClause?t.visitWhereClause(this):t.visitChildren(this)}},ik=class extends p{constructor(t,e){super(t,e)}GROUP(){return this.getToken(fp.GROUP,0)}BY(){return this.getToken(fp.BY,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}RPAREN(){return this.getToken(fp.RPAREN,0)}CUBE(){return this.getToken(fp.CUBE,0)}ROLLUP(){return this.getToken(fp.ROLLUP,0)}get ruleIndex(){return fp.RULE_groupByClause}accept(t){return t.visitGroupByClause?t.visitGroupByClause(this):t.visitChildren(this)}},rk=class extends p{constructor(t,e){super(t,e)}HAVING(){return this.getToken(fp.HAVING,0)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_havingClause}accept(t){return t.visitHavingClause?t.visitHavingClause(this):t.visitChildren(this)}},ck=class extends p{constructor(t,e){super(t,e)}ORDER(){return this.getToken(fp.ORDER,0)}BY(){return this.getToken(fp.BY,0)}orderExpressionList(){return this.getRuleContext(0,Mk)}get ruleIndex(){return fp.RULE_orderByClause}accept(t){return t.visitOrderByClause?t.visitOrderByClause(this):t.visitChildren(this)}},nk=class extends p{constructor(t,e){super(t,e)}ORDER(){return this.getToken(fp.ORDER,0)}BY(){return this.getToken(fp.BY,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_projectionOrderByClause}accept(t){return t.visitProjectionOrderByClause?t.visitProjectionOrderByClause(this):t.visitChildren(this)}},hk=class extends p{constructor(t,e){super(t,e)}LIMIT(){return this.getToken(fp.LIMIT,0)}limitExpression(){return this.getRuleContext(0,Pk)}BY(){return this.getToken(fp.BY,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_limitByClause}accept(t){return t.visitLimitByClause?t.visitLimitByClause(this):t.visitChildren(this)}},Ek=class extends p{constructor(t,e){super(t,e)}LIMIT(){return this.getToken(fp.LIMIT,0)}limitExpression(){return this.getRuleContext(0,Pk)}WITH(){return this.getToken(fp.WITH,0)}TIES(){return this.getToken(fp.TIES,0)}get ruleIndex(){return fp.RULE_limitClause}accept(t){return t.visitLimitClause?t.visitLimitClause(this):t.visitChildren(this)}},Tk=class extends p{constructor(t,e){super(t,e)}SETTINGS(){return this.getToken(fp.SETTINGS,0)}settingExpressionList(){return this.getRuleContext(0,mk)}get ruleIndex(){return fp.RULE_settingsClause}accept(t){return t.visitSettingsClause?t.visitSettingsClause(this):t.visitChildren(this)}},ok=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_joinExpression}copyFrom(t){super.copyFrom(t)}},Rk=class extends ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}joinExpression(){return this.getRuleContext(0,ok)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitJoinExpressionParens?t.visitJoinExpressionParens(this):t.visitChildren(this)}},Ak=class extends ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableExpression(){return this.getRuleContext(0,bH)}FINAL(){return this.getToken(fp.FINAL,0)}sampleClause(){return this.getRuleContext(0,_k)}accept(t){return t.visitJoinExpressionTable?t.visitJoinExpressionTable(this):t.visitChildren(this)}},Sk=class extends ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}joinExpression(t){return void 0===t?this.getRuleContexts(ok):this.getRuleContext(t,ok)}joinOperatorCross(){return this.getRuleContext(0,Lk)}accept(t){return t.visitJoinExpressionCrossOp?t.visitJoinExpressionCrossOp(this):t.visitChildren(this)}},lk=class extends ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}joinExpression(t){return void 0===t?this.getRuleContexts(ok):this.getRuleContext(t,ok)}JOIN(){return this.getToken(fp.JOIN,0)}joinConstraintClause(){return this.getRuleContext(0,Ck)}joinOperator(){return this.getRuleContext(0,Ok)}GLOBAL(){return this.getToken(fp.GLOBAL,0)}LOCAL(){return this.getToken(fp.LOCAL,0)}accept(t){return t.visitJoinExpressionOp?t.visitJoinExpressionOp(this):t.visitChildren(this)}},Ok=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_joinOperator}copyFrom(t){super.copyFrom(t)}},Ik=class extends Ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}FULL(){return this.getToken(fp.FULL,0)}OUTER(){return this.getToken(fp.OUTER,0)}ALL(){return this.getToken(fp.ALL,0)}ANY(){return this.getToken(fp.ANY,0)}accept(t){return t.visitJoinOpFull?t.visitJoinOpFull(this):t.visitChildren(this)}},uk=class extends Ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INNER(){return this.getToken(fp.INNER,0)}ALL(){return this.getToken(fp.ALL,0)}ANY(){return this.getToken(fp.ANY,0)}ASOF(){return this.getToken(fp.ASOF,0)}accept(t){return t.visitJoinOpInner?t.visitJoinOpInner(this):t.visitChildren(this)}},Nk=class extends Ok{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LEFT(){return this.getToken(fp.LEFT,0)}RIGHT(){return this.getToken(fp.RIGHT,0)}OUTER(){return this.getToken(fp.OUTER,0)}SEMI(){return this.getToken(fp.SEMI,0)}ALL(){return this.getToken(fp.ALL,0)}ANTI(){return this.getToken(fp.ANTI,0)}ANY(){return this.getToken(fp.ANY,0)}ASOF(){return this.getToken(fp.ASOF,0)}accept(t){return t.visitJoinOpLeftRight?t.visitJoinOpLeftRight(this):t.visitChildren(this)}},Lk=class extends p{constructor(t,e){super(t,e)}CROSS(){return this.getToken(fp.CROSS,0)}JOIN(){return this.getToken(fp.JOIN,0)}GLOBAL(){return this.getToken(fp.GLOBAL,0)}LOCAL(){return this.getToken(fp.LOCAL,0)}COMMA(){return this.getToken(fp.COMMA,0)}get ruleIndex(){return fp.RULE_joinOperatorCross}accept(t){return t.visitJoinOperatorCross?t.visitJoinOperatorCross(this):t.visitChildren(this)}},Ck=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(fp.ON,0)}columnExpressionList(){return this.getRuleContext(0,eH)}USING(){return this.getToken(fp.USING,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}get ruleIndex(){return fp.RULE_joinConstraintClause}accept(t){return t.visitJoinConstraintClause?t.visitJoinConstraintClause(this):t.visitChildren(this)}},_k=class extends p{constructor(t,e){super(t,e)}SAMPLE(){return this.getToken(fp.SAMPLE,0)}ratioExpression(t){return void 0===t?this.getRuleContexts(Uk):this.getRuleContext(t,Uk)}OFFSET(){return this.getToken(fp.OFFSET,0)}get ruleIndex(){return fp.RULE_sampleClause}accept(t){return t.visitSampleClause?t.visitSampleClause(this):t.visitChildren(this)}},Pk=class extends p{constructor(t,e){super(t,e)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}COMMA(){return this.getToken(fp.COMMA,0)}OFFSET(){return this.getToken(fp.OFFSET,0)}get ruleIndex(){return fp.RULE_limitExpression}accept(t){return t.visitLimitExpression?t.visitLimitExpression(this):t.visitChildren(this)}},Mk=class extends p{constructor(t,e){super(t,e)}orderExpression(t){return void 0===t?this.getRuleContexts(dk):this.getRuleContext(t,dk)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_orderExpressionList}accept(t){return t.visitOrderExpressionList?t.visitOrderExpressionList(this):t.visitChildren(this)}},dk=class extends p{constructor(t,e){super(t,e)}columnExpression(){return this.getRuleContext(0,cH)}NULLS(){return this.getToken(fp.NULLS,0)}COLLATE(){return this.getToken(fp.COLLATE,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}ASCENDING(){return this.getToken(fp.ASCENDING,0)}DESCENDING(){return this.getToken(fp.DESCENDING,0)}DESC(){return this.getToken(fp.DESC,0)}FIRST(){return this.getToken(fp.FIRST,0)}LAST(){return this.getToken(fp.LAST,0)}get ruleIndex(){return fp.RULE_orderExpression}accept(t){return t.visitOrderExpression?t.visitOrderExpression(this):t.visitChildren(this)}},Uk=class extends p{constructor(t,e){super(t,e)}numberLiteral(t){return void 0===t?this.getRuleContexts($H):this.getRuleContext(t,$H)}SLASH(){return this.getToken(fp.SLASH,0)}get ruleIndex(){return fp.RULE_ratioExpression}accept(t){return t.visitRatioExpression?t.visitRatioExpression(this):t.visitChildren(this)}},mk=class extends p{constructor(t,e){super(t,e)}settingExpression(t){return void 0===t?this.getRuleContexts(Dk):this.getRuleContext(t,Dk)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_settingExpressionList}accept(t){return t.visitSettingExpressionList?t.visitSettingExpressionList(this):t.visitChildren(this)}},Dk=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,rG)}EQ_SINGLE(){return this.getToken(fp.EQ_SINGLE,0)}literal(){return this.getRuleContext(0,tG)}get ruleIndex(){return fp.RULE_settingExpression}accept(t){return t.visitSettingExpression?t.visitSettingExpression(this):t.visitChildren(this)}},pk=class extends p{constructor(t,e){super(t,e)}windowPartitionByClause(){return this.getRuleContext(0,gk)}windowOrderByClause(){return this.getRuleContext(0,xk)}windowFrameClause(){return this.getRuleContext(0,kk)}get ruleIndex(){return fp.RULE_windowExpression}accept(t){return t.visitWindowExpression?t.visitWindowExpression(this):t.visitChildren(this)}},gk=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(fp.PARTITION,0)}BY(){return this.getToken(fp.BY,0)}columnExpressionList(){return this.getRuleContext(0,eH)}get ruleIndex(){return fp.RULE_windowPartitionByClause}accept(t){return t.visitWindowPartitionByClause?t.visitWindowPartitionByClause(this):t.visitChildren(this)}},xk=class extends p{constructor(t,e){super(t,e)}ORDER(){return this.getToken(fp.ORDER,0)}BY(){return this.getToken(fp.BY,0)}orderExpressionList(){return this.getRuleContext(0,Mk)}get ruleIndex(){return fp.RULE_windowOrderByClause}accept(t){return t.visitWindowOrderByClause?t.visitWindowOrderByClause(this):t.visitChildren(this)}},kk=class extends p{constructor(t,e){super(t,e)}windowFrameExtend(){return this.getRuleContext(0,Hk)}ROWS(){return this.getToken(fp.ROWS,0)}RANGE(){return this.getToken(fp.RANGE,0)}get ruleIndex(){return fp.RULE_windowFrameClause}accept(t){return t.visitWindowFrameClause?t.visitWindowFrameClause(this):t.visitChildren(this)}},Hk=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_windowFrameExtend}copyFrom(t){super.copyFrom(t)}},Gk=class extends Hk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}windowFrameBound(){return this.getRuleContext(0,vk)}accept(t){return t.visitFrameStart?t.visitFrameStart(this):t.visitChildren(this)}},Fk=class extends Hk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}BETWEEN(){return this.getToken(fp.BETWEEN,0)}windowFrameBound(t){return void 0===t?this.getRuleContexts(vk):this.getRuleContext(t,vk)}AND(){return this.getToken(fp.AND,0)}accept(t){return t.visitFrameBetween?t.visitFrameBetween(this):t.visitChildren(this)}},vk=class extends p{constructor(t,e){super(t,e)}CURRENT(){return this.getToken(fp.CURRENT,0)}ROW(){return this.getToken(fp.ROW,0)}UNBOUNDED(){return this.getToken(fp.UNBOUNDED,0)}PRECEDING(){return this.getToken(fp.PRECEDING,0)}FOLLOWING(){return this.getToken(fp.FOLLOWING,0)}numberLiteral(){return this.getRuleContext(0,$H)}get ruleIndex(){return fp.RULE_windowFrameBound}accept(t){return t.visitWindowFrameBound?t.visitWindowFrameBound(this):t.visitChildren(this)}},Bk=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(fp.SET,0)}settingExpressionList(){return this.getRuleContext(0,mk)}get ruleIndex(){return fp.RULE_setStatement}accept(t){return t.visitSetStatement?t.visitSetStatement(this):t.visitChildren(this)}},yk=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_showStatement}copyFrom(t){super.copyFrom(t)}},fk=class extends yk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken(fp.SHOW,0)}CREATE(){return this.getToken(fp.CREATE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}TABLE(){return this.getToken(fp.TABLE,0)}accept(t){return t.visitShowCreateTableStatement?t.visitShowCreateTableStatement(this):t.visitChildren(this)}},Yk=class extends yk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken(fp.SHOW,0)}CREATE(){return this.getToken(fp.CREATE,0)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}tableIdentifier(){return this.getRuleContext(0,JH)}accept(t){return t.visitShowCreateDictionaryStatement?t.visitShowCreateDictionaryStatement(this):t.visitChildren(this)}},wk=class extends yk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken(fp.SHOW,0)}TABLES(){return this.getToken(fp.TABLES,0)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}databaseIdentifier(){return this.getRuleContext(0,jH)}LIKE(){return this.getToken(fp.LIKE,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}whereClause(){return this.getRuleContext(0,ak)}limitClause(){return this.getRuleContext(0,Ek)}FROM(){return this.getToken(fp.FROM,0)}IN(){return this.getToken(fp.IN,0)}accept(t){return t.visitShowTablesStatement?t.visitShowTablesStatement(this):t.visitChildren(this)}},bk=class extends yk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken(fp.SHOW,0)}DICTIONARIES(){return this.getToken(fp.DICTIONARIES,0)}FROM(){return this.getToken(fp.FROM,0)}databaseIdentifier(){return this.getRuleContext(0,jH)}accept(t){return t.visitShowDictionariesStatement?t.visitShowDictionariesStatement(this):t.visitChildren(this)}},Wk=class extends yk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken(fp.SHOW,0)}CREATE(){return this.getToken(fp.CREATE,0)}DATABASE(){return this.getToken(fp.DATABASE,0)}databaseIdentifier(){return this.getRuleContext(0,jH)}accept(t){return t.visitShowCreateDatabaseStatement?t.visitShowCreateDatabaseStatement(this):t.visitChildren(this)}},Vk=class extends yk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SHOW(){return this.getToken(fp.SHOW,0)}DATABASES(){return this.getToken(fp.DATABASES,0)}accept(t){return t.visitShowDatabasesStatement?t.visitShowDatabasesStatement(this):t.visitChildren(this)}},Xk=class extends p{constructor(t,e){super(t,e)}SYSTEM(){return this.getToken(fp.SYSTEM,0)}FLUSH(){return this.getToken(fp.FLUSH,0)}DISTRIBUTED(){return this.getToken(fp.DISTRIBUTED,0)}tableIdentifier(){return this.getRuleContext(0,JH)}LOGS(){return this.getToken(fp.LOGS,0)}RELOAD(){return this.getToken(fp.RELOAD,0)}DICTIONARIES(){return this.getToken(fp.DICTIONARIES,0)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}START(){return this.getToken(fp.START,0)}STOP(){return this.getToken(fp.STOP,0)}SENDS(){return this.getToken(fp.SENDS,0)}FETCHES(){return this.getToken(fp.FETCHES,0)}MERGES(){return this.getToken(fp.MERGES,0)}TTL(){return this.getToken(fp.TTL,0)}REPLICATED(){return this.getToken(fp.REPLICATED,0)}SYNC(){return this.getToken(fp.SYNC,0)}REPLICA(){return this.getToken(fp.REPLICA,0)}get ruleIndex(){return fp.RULE_systemStatement}accept(t){return t.visitSystemStatement?t.visitSystemStatement(this):t.visitChildren(this)}},Kk=class extends p{constructor(t,e){super(t,e)}TRUNCATE(){return this.getToken(fp.TRUNCATE,0)}tableIdentifier(){return this.getRuleContext(0,JH)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}TABLE(){return this.getToken(fp.TABLE,0)}IF(){return this.getToken(fp.IF,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}clusterClause(){return this.getRuleContext(0,Zg)}get ruleIndex(){return fp.RULE_truncateStatement}accept(t){return t.visitTruncateStatement?t.visitTruncateStatement(this):t.visitChildren(this)}},Qk=class extends p{constructor(t,e){super(t,e)}USE(){return this.getToken(fp.USE,0)}databaseIdentifier(){return this.getRuleContext(0,jH)}get ruleIndex(){return fp.RULE_useStatement}accept(t){return t.visitUseStatement?t.visitUseStatement(this):t.visitChildren(this)}},Jk=class extends p{constructor(t,e){super(t,e)}WATCH(){return this.getToken(fp.WATCH,0)}tableIdentifier(){return this.getRuleContext(0,JH)}EVENTS(){return this.getToken(fp.EVENTS,0)}LIMIT(){return this.getToken(fp.LIMIT,0)}DECIMAL_LITERAL(){return this.getToken(fp.DECIMAL_LITERAL,0)}get ruleIndex(){return fp.RULE_watchStatement}accept(t){return t.visitWatchStatement?t.visitWatchStatement(this):t.visitChildren(this)}},Zk=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_columnTypeExpression}copyFrom(t){super.copyFrom(t)}},qk=class extends Zk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(){return this.getRuleContext(0,rG)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnTypeExpression(t){return void 0===t?this.getRuleContexts(Zk):this.getRuleContext(t,Zk)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}accept(t){return t.visitColumnTypeExpressionComplex?t.visitColumnTypeExpressionComplex(this):t.visitChildren(this)}},jk=class extends Zk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(){return this.getRuleContext(0,rG)}LPAREN(){return this.getToken(fp.LPAREN,0)}enumValue(t){return void 0===t?this.getRuleContexts(nG):this.getRuleContext(t,nG)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}accept(t){return t.visitColumnTypeExpressionEnum?t.visitColumnTypeExpressionEnum(this):t.visitChildren(this)}},zk=class extends Zk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnTypeExpression(t){return void 0===t?this.getRuleContexts(Zk):this.getRuleContext(t,Zk)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}accept(t){return t.visitColumnTypeExpressionNested?t.visitColumnTypeExpressionNested(this):t.visitChildren(this)}},$k=class extends Zk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(){return this.getRuleContext(0,rG)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}accept(t){return t.visitColumnTypeExpressionParam?t.visitColumnTypeExpressionParam(this):t.visitChildren(this)}},tH=class extends Zk{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(){return this.getRuleContext(0,rG)}accept(t){return t.visitColumnTypeExpressionSimple?t.visitColumnTypeExpressionSimple(this):t.visitChildren(this)}},eH=class extends p{constructor(t,e){super(t,e)}columnsExpression(t){return void 0===t?this.getRuleContexts(sH):this.getRuleContext(t,sH)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_columnExpressionList}accept(t){return t.visitColumnExpressionList?t.visitColumnExpressionList(this):t.visitChildren(this)}},sH=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_columnsExpression}copyFrom(t){super.copyFrom(t)}},aH=class extends sH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ASTERISK(){return this.getToken(fp.ASTERISK,0)}tableIdentifier(){return this.getRuleContext(0,JH)}DOT(){return this.getToken(fp.DOT,0)}accept(t){return t.visitColumnsExpressionAsterisk?t.visitColumnsExpressionAsterisk(this):t.visitChildren(this)}},iH=class extends sH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}selectUnionStatement(){return this.getRuleContext(0,Jx)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitColumnsExpressionSubquery?t.visitColumnsExpressionSubquery(this):t.visitChildren(this)}},rH=class extends sH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(){return this.getRuleContext(0,cH)}accept(t){return t.visitColumnsExpressionColumn?t.visitColumnsExpressionColumn(this):t.visitChildren(this)}},cH=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_columnExpression}copyFrom(t){super.copyFrom(t)}},nH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(){return this.getRuleContext(0,cH)}IS(){return this.getToken(fp.IS,0)}NULL_SQL(){return this.getToken(fp.NULL_SQL,0)}NOT(){return this.getToken(fp.NOT,0)}accept(t){return t.visitColumnExpressionIsNull?t.visitColumnExpressionIsNull(this):t.visitChildren(this)}},hH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitColumnExpressionTuple?t.visitColumnExpressionTuple(this):t.visitChildren(this)}},EH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}AND(){return this.getToken(fp.AND,0)}accept(t){return t.visitColumnExpressionAnd?t.visitColumnExpressionAnd(this):t.visitChildren(this)}},TH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DATE(){return this.getToken(fp.DATE,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}accept(t){return t.visitColumnExpressionDate?t.visitColumnExpressionDate(this):t.visitChildren(this)}},oH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}BETWEEN(){return this.getToken(fp.BETWEEN,0)}AND(){return this.getToken(fp.AND,0)}NOT(){return this.getToken(fp.NOT,0)}accept(t){return t.visitColumnExpressionBetween?t.visitColumnExpressionBetween(this):t.visitChildren(this)}},RH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TRIM(){return this.getToken(fp.TRIM,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}FROM(){return this.getToken(fp.FROM,0)}columnExpression(){return this.getRuleContext(0,cH)}RPAREN(){return this.getToken(fp.RPAREN,0)}BOTH(){return this.getToken(fp.BOTH,0)}LEADING(){return this.getToken(fp.LEADING,0)}TRAILING(){return this.getToken(fp.TRAILING,0)}accept(t){return t.visitColumnExpressionTrim?t.visitColumnExpressionTrim(this):t.visitChildren(this)}},AH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}NOT(){return this.getToken(fp.NOT,0)}columnExpression(){return this.getRuleContext(0,cH)}accept(t){return t.visitColumnExpressionNot?t.visitColumnExpressionNot(this):t.visitChildren(this)}},SH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}SUBSTRING(){return this.getToken(fp.SUBSTRING,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}FROM(){return this.getToken(fp.FROM,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}FOR(){return this.getToken(fp.FOR,0)}accept(t){return t.visitColumnExpressionSubstring?t.visitColumnExpressionSubstring(this):t.visitChildren(this)}},lH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CASE(){return this.getToken(fp.CASE,0)}END(){return this.getToken(fp.END,0)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}WHEN(t){return void 0===t?this.getTokens(fp.WHEN):this.getToken(fp.WHEN,t)}THEN(t){return void 0===t?this.getTokens(fp.THEN):this.getToken(fp.THEN,t)}ELSE(){return this.getToken(fp.ELSE,0)}accept(t){return t.visitColumnExpressionCase?t.visitColumnExpressionCase(this):t.visitChildren(this)}},OH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnIdentifier(){return this.getRuleContext(0,wH)}accept(t){return t.visitColumnExpressionIdentifier?t.visitColumnExpressionIdentifier(this):t.visitChildren(this)}},IH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}LBRACKET(){return this.getToken(fp.LBRACKET,0)}RBRACKET(){return this.getToken(fp.RBRACKET,0)}accept(t){return t.visitColumnExpressionArrayAccess?t.visitColumnExpressionArrayAccess(this):t.visitChildren(this)}},uH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(){return this.getRuleContext(0,rG)}LPAREN(t){return void 0===t?this.getTokens(fp.LPAREN):this.getToken(fp.LPAREN,t)}RPAREN(t){return void 0===t?this.getTokens(fp.RPAREN):this.getToken(fp.RPAREN,t)}DISTINCT(){return this.getToken(fp.DISTINCT,0)}columnArgumentList(){return this.getRuleContext(0,yH)}columnExpressionList(){return this.getRuleContext(0,eH)}accept(t){return t.visitColumnExpressionFunction?t.visitColumnExpressionFunction(this):t.visitChildren(this)}},NH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}ASTERISK(){return this.getToken(fp.ASTERISK,0)}tableIdentifier(){return this.getRuleContext(0,JH)}DOT(){return this.getToken(fp.DOT,0)}accept(t){return t.visitColumnExpressionAsterisk?t.visitColumnExpressionAsterisk(this):t.visitChildren(this)}},LH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}literal(){return this.getRuleContext(0,tG)}accept(t){return t.visitColumnExpressionLiteral?t.visitColumnExpressionLiteral(this):t.visitChildren(this)}},CH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(){return this.getRuleContext(0,rG)}OVER(){return this.getToken(fp.OVER,0)}LPAREN(t){return void 0===t?this.getTokens(fp.LPAREN):this.getToken(fp.LPAREN,t)}windowExpression(){return this.getRuleContext(0,pk)}RPAREN(t){return void 0===t?this.getTokens(fp.RPAREN):this.getToken(fp.RPAREN,t)}columnExpressionList(){return this.getRuleContext(0,eH)}accept(t){return t.visitColumnExpressionWinFunction?t.visitColumnExpressionWinFunction(this):t.visitChildren(this)}},_H=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}QUESTIONMARK(){return this.getToken(fp.QUESTIONMARK,0)}COLON(){return this.getToken(fp.COLON,0)}accept(t){return t.visitColumnExpressionTernaryOp?t.visitColumnExpressionTernaryOp(this):t.visitChildren(this)}},PH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LBRACKET(){return this.getToken(fp.LBRACKET,0)}RBRACKET(){return this.getToken(fp.RBRACKET,0)}columnExpressionList(){return this.getRuleContext(0,eH)}accept(t){return t.visitColumnExpressionArray?t.visitColumnExpressionArray(this):t.visitChildren(this)}},MH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(){return this.getRuleContext(0,cH)}DOT(){return this.getToken(fp.DOT,0)}DECIMAL_LITERAL(){return this.getToken(fp.DECIMAL_LITERAL,0)}accept(t){return t.visitColumnExpressionTupleAccess?t.visitColumnExpressionTupleAccess(this):t.visitChildren(this)}},dH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnExpression(){return this.getRuleContext(0,cH)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitColumnExpressionParens?t.visitColumnExpressionParens(this):t.visitChildren(this)}},UH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}OVER(){return this.getToken(fp.OVER,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}columnExpressionList(){return this.getRuleContext(0,eH)}accept(t){return t.visitColumnExpressionWinFunctionTarget?t.visitColumnExpressionWinFunctionTarget(this):t.visitChildren(this)}},mH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(){return this.getRuleContext(0,cH)}alias(){return this.getRuleContext(0,iG)}AS(){return this.getToken(fp.AS,0)}identifier(){return this.getRuleContext(0,rG)}accept(t){return t.visitColumnExpressionAlias?t.visitColumnExpressionAlias(this):t.visitChildren(this)}},DH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}EQ_DOUBLE(){return this.getToken(fp.EQ_DOUBLE,0)}EQ_SINGLE(){return this.getToken(fp.EQ_SINGLE,0)}NOT_EQ(){return this.getToken(fp.NOT_EQ,0)}LE(){return this.getToken(fp.LE,0)}GE(){return this.getToken(fp.GE,0)}LT(){return this.getToken(fp.LT,0)}GT(){return this.getToken(fp.GT,0)}IN(){return this.getToken(fp.IN,0)}LIKE(){return this.getToken(fp.LIKE,0)}ILIKE(){return this.getToken(fp.ILIKE,0)}GLOBAL(){return this.getToken(fp.GLOBAL,0)}NOT(){return this.getToken(fp.NOT,0)}accept(t){return t.visitColumnExpressionPrecedence3?t.visitColumnExpressionPrecedence3(this):t.visitChildren(this)}},pH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}TIMESTAMP(){return this.getToken(fp.TIMESTAMP,0)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}accept(t){return t.visitColumnExpressionTimestamp?t.visitColumnExpressionTimestamp(this):t.visitChildren(this)}},gH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}PLUS(){return this.getToken(fp.PLUS,0)}DASH(){return this.getToken(fp.DASH,0)}CONCAT(){return this.getToken(fp.CONCAT,0)}accept(t){return t.visitColumnExpressionPrecedence2?t.visitColumnExpressionPrecedence2(this):t.visitChildren(this)}},xH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}ASTERISK(){return this.getToken(fp.ASTERISK,0)}SLASH(){return this.getToken(fp.SLASH,0)}PERCENT(){return this.getToken(fp.PERCENT,0)}accept(t){return t.visitColumnExpressionPrecedence1?t.visitColumnExpressionPrecedence1(this):t.visitChildren(this)}},kH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}INTERVAL(){return this.getToken(fp.INTERVAL,0)}columnExpression(){return this.getRuleContext(0,cH)}interval(){return this.getRuleContext(0,eG)}accept(t){return t.visitColumnExpressionInterval?t.visitColumnExpressionInterval(this):t.visitChildren(this)}},HH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}selectUnionStatement(){return this.getRuleContext(0,Jx)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitColumnExpressionSubquery?t.visitColumnExpressionSubquery(this):t.visitChildren(this)}},GH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}DASH(){return this.getToken(fp.DASH,0)}columnExpression(){return this.getRuleContext(0,cH)}accept(t){return t.visitColumnExpressionNegate?t.visitColumnExpressionNegate(this):t.visitChildren(this)}},FH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}EXTRACT(){return this.getToken(fp.EXTRACT,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}interval(){return this.getRuleContext(0,eG)}FROM(){return this.getToken(fp.FROM,0)}columnExpression(){return this.getRuleContext(0,cH)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitColumnExpressionExtract?t.visitColumnExpressionExtract(this):t.visitChildren(this)}},vH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}CAST(){return this.getToken(fp.CAST,0)}LPAREN(){return this.getToken(fp.LPAREN,0)}columnExpression(){return this.getRuleContext(0,cH)}AS(){return this.getToken(fp.AS,0)}columnTypeExpression(){return this.getRuleContext(0,Zk)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitColumnExpressionCast?t.visitColumnExpressionCast(this):t.visitChildren(this)}},BH=class extends cH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}columnExpression(t){return void 0===t?this.getRuleContexts(cH):this.getRuleContext(t,cH)}OR(){return this.getToken(fp.OR,0)}accept(t){return t.visitColumnExpressionOr?t.visitColumnExpressionOr(this):t.visitChildren(this)}},yH=class extends p{constructor(t,e){super(t,e)}columnArgumentExpression(t){return void 0===t?this.getRuleContexts(fH):this.getRuleContext(t,fH)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_columnArgumentList}accept(t){return t.visitColumnArgumentList?t.visitColumnArgumentList(this):t.visitChildren(this)}},fH=class extends p{constructor(t,e){super(t,e)}columnLambdaExpression(){return this.getRuleContext(0,YH)}columnExpression(){return this.getRuleContext(0,cH)}get ruleIndex(){return fp.RULE_columnArgumentExpression}accept(t){return t.visitColumnArgumentExpression?t.visitColumnArgumentExpression(this):t.visitChildren(this)}},YH=class extends p{constructor(t,e){super(t,e)}ARROW(){return this.getToken(fp.ARROW,0)}columnExpression(){return this.getRuleContext(0,cH)}LPAREN(){return this.getToken(fp.LPAREN,0)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}RPAREN(){return this.getToken(fp.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_columnLambdaExpression}accept(t){return t.visitColumnLambdaExpression?t.visitColumnLambdaExpression(this):t.visitChildren(this)}},wH=class extends p{constructor(t,e){super(t,e)}identifier(t){return void 0===t?this.getRuleContexts(rG):this.getRuleContext(t,rG)}tableIdentifier(){return this.getRuleContext(0,JH)}DOT(t){return void 0===t?this.getTokens(fp.DOT):this.getToken(fp.DOT,t)}get ruleIndex(){return fp.RULE_columnIdentifier}accept(t){return t.visitColumnIdentifier?t.visitColumnIdentifier(this):t.visitChildren(this)}},bH=class extends p{constructor(t,e){super(t,e)}get ruleIndex(){return fp.RULE_tableExpression}copyFrom(t){super.copyFrom(t)}},WH=class extends bH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableFunctionExpression(){return this.getRuleContext(0,QH)}accept(t){return t.visitTableExpressionFunction?t.visitTableExpressionFunction(this):t.visitChildren(this)}},VH=class extends bH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableIdentifier(){return this.getRuleContext(0,JH)}accept(t){return t.visitTableExpressionIdentifier?t.visitTableExpressionIdentifier(this):t.visitChildren(this)}},XH=class extends bH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}tableExpression(){return this.getRuleContext(0,bH)}alias(){return this.getRuleContext(0,iG)}AS(){return this.getToken(fp.AS,0)}identifier(){return this.getRuleContext(0,rG)}accept(t){return t.visitTableExpressionAlias?t.visitTableExpressionAlias(this):t.visitChildren(this)}},KH=class extends bH{constructor(t){super(t.parent,t.invokingState),super.copyFrom(t)}LPAREN(){return this.getToken(fp.LPAREN,0)}selectUnionStatement(){return this.getRuleContext(0,Jx)}RPAREN(){return this.getToken(fp.RPAREN,0)}accept(t){return t.visitTableExpressionSubquery?t.visitTableExpressionSubquery(this):t.visitChildren(this)}},QH=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,rG)}LPAREN(){return this.getToken(fp.LPAREN,0)}RPAREN(){return this.getToken(fp.RPAREN,0)}tableArgList(){return this.getRuleContext(0,ZH)}get ruleIndex(){return fp.RULE_tableFunctionExpression}accept(t){return t.visitTableFunctionExpression?t.visitTableFunctionExpression(this):t.visitChildren(this)}},JH=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,rG)}databaseIdentifier(){return this.getRuleContext(0,jH)}DOT(){return this.getToken(fp.DOT,0)}get ruleIndex(){return fp.RULE_tableIdentifier}accept(t){return t.visitTableIdentifier?t.visitTableIdentifier(this):t.visitChildren(this)}},ZH=class extends p{constructor(t,e){super(t,e)}tableArgExpression(t){return void 0===t?this.getRuleContexts(qH):this.getRuleContext(t,qH)}COMMA(t){return void 0===t?this.getTokens(fp.COMMA):this.getToken(fp.COMMA,t)}get ruleIndex(){return fp.RULE_tableArgList}accept(t){return t.visitTableArgList?t.visitTableArgList(this):t.visitChildren(this)}},qH=class extends p{constructor(t,e){super(t,e)}columnIdentifier(){return this.getRuleContext(0,wH)}tableFunctionExpression(){return this.getRuleContext(0,QH)}literal(){return this.getRuleContext(0,tG)}get ruleIndex(){return fp.RULE_tableArgExpression}accept(t){return t.visitTableArgExpression?t.visitTableArgExpression(this):t.visitChildren(this)}},jH=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,rG)}get ruleIndex(){return fp.RULE_databaseIdentifier}accept(t){return t.visitDatabaseIdentifier?t.visitDatabaseIdentifier(this):t.visitChildren(this)}},zH=class extends p{constructor(t,e){super(t,e)}FLOATING_LITERAL(){return this.getToken(fp.FLOATING_LITERAL,0)}DOT(){return this.getToken(fp.DOT,0)}DECIMAL_LITERAL(t){return void 0===t?this.getTokens(fp.DECIMAL_LITERAL):this.getToken(fp.DECIMAL_LITERAL,t)}OCTAL_LITERAL(){return this.getToken(fp.OCTAL_LITERAL,0)}get ruleIndex(){return fp.RULE_floatingLiteral}accept(t){return t.visitFloatingLiteral?t.visitFloatingLiteral(this):t.visitChildren(this)}},$H=class extends p{constructor(t,e){super(t,e)}floatingLiteral(){return this.getRuleContext(0,zH)}OCTAL_LITERAL(){return this.getToken(fp.OCTAL_LITERAL,0)}DECIMAL_LITERAL(){return this.getToken(fp.DECIMAL_LITERAL,0)}HEXADECIMAL_LITERAL(){return this.getToken(fp.HEXADECIMAL_LITERAL,0)}INF(){return this.getToken(fp.INF,0)}NAN_SQL(){return this.getToken(fp.NAN_SQL,0)}PLUS(){return this.getToken(fp.PLUS,0)}DASH(){return this.getToken(fp.DASH,0)}get ruleIndex(){return fp.RULE_numberLiteral}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},tG=class extends p{constructor(t,e){super(t,e)}numberLiteral(){return this.getRuleContext(0,$H)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}NULL_SQL(){return this.getToken(fp.NULL_SQL,0)}get ruleIndex(){return fp.RULE_literal}accept(t){return t.visitLiteral?t.visitLiteral(this):t.visitChildren(this)}},eG=class extends p{constructor(t,e){super(t,e)}SECOND(){return this.getToken(fp.SECOND,0)}MINUTE(){return this.getToken(fp.MINUTE,0)}HOUR(){return this.getToken(fp.HOUR,0)}DAY(){return this.getToken(fp.DAY,0)}WEEK(){return this.getToken(fp.WEEK,0)}MONTH(){return this.getToken(fp.MONTH,0)}QUARTER(){return this.getToken(fp.QUARTER,0)}YEAR(){return this.getToken(fp.YEAR,0)}get ruleIndex(){return fp.RULE_interval}accept(t){return t.visitInterval?t.visitInterval(this):t.visitChildren(this)}},sG=class extends p{constructor(t,e){super(t,e)}AFTER(){return this.getToken(fp.AFTER,0)}ALIAS(){return this.getToken(fp.ALIAS,0)}ALL(){return this.getToken(fp.ALL,0)}ALTER(){return this.getToken(fp.ALTER,0)}AND(){return this.getToken(fp.AND,0)}ANTI(){return this.getToken(fp.ANTI,0)}ANY(){return this.getToken(fp.ANY,0)}ARRAY(){return this.getToken(fp.ARRAY,0)}AS(){return this.getToken(fp.AS,0)}ASCENDING(){return this.getToken(fp.ASCENDING,0)}ASOF(){return this.getToken(fp.ASOF,0)}AST(){return this.getToken(fp.AST,0)}ASYNC(){return this.getToken(fp.ASYNC,0)}ATTACH(){return this.getToken(fp.ATTACH,0)}BETWEEN(){return this.getToken(fp.BETWEEN,0)}BOTH(){return this.getToken(fp.BOTH,0)}BY(){return this.getToken(fp.BY,0)}CASE(){return this.getToken(fp.CASE,0)}CAST(){return this.getToken(fp.CAST,0)}CHECK(){return this.getToken(fp.CHECK,0)}CLEAR(){return this.getToken(fp.CLEAR,0)}CLUSTER(){return this.getToken(fp.CLUSTER,0)}CODEC(){return this.getToken(fp.CODEC,0)}COLLATE(){return this.getToken(fp.COLLATE,0)}COLUMN(){return this.getToken(fp.COLUMN,0)}COMMENT(){return this.getToken(fp.COMMENT,0)}CONSTRAINT(){return this.getToken(fp.CONSTRAINT,0)}CREATE(){return this.getToken(fp.CREATE,0)}CROSS(){return this.getToken(fp.CROSS,0)}CUBE(){return this.getToken(fp.CUBE,0)}CURRENT(){return this.getToken(fp.CURRENT,0)}DATABASE(){return this.getToken(fp.DATABASE,0)}DATABASES(){return this.getToken(fp.DATABASES,0)}DATE(){return this.getToken(fp.DATE,0)}DEDUPLICATE(){return this.getToken(fp.DEDUPLICATE,0)}DEFAULT(){return this.getToken(fp.DEFAULT,0)}DELAY(){return this.getToken(fp.DELAY,0)}DELETE(){return this.getToken(fp.DELETE,0)}DESCRIBE(){return this.getToken(fp.DESCRIBE,0)}DESC(){return this.getToken(fp.DESC,0)}DESCENDING(){return this.getToken(fp.DESCENDING,0)}DETACH(){return this.getToken(fp.DETACH,0)}DICTIONARIES(){return this.getToken(fp.DICTIONARIES,0)}DICTIONARY(){return this.getToken(fp.DICTIONARY,0)}DISK(){return this.getToken(fp.DISK,0)}DISTINCT(){return this.getToken(fp.DISTINCT,0)}DISTRIBUTED(){return this.getToken(fp.DISTRIBUTED,0)}DROP(){return this.getToken(fp.DROP,0)}ELSE(){return this.getToken(fp.ELSE,0)}END(){return this.getToken(fp.END,0)}ENGINE(){return this.getToken(fp.ENGINE,0)}EVENTS(){return this.getToken(fp.EVENTS,0)}EXISTS(){return this.getToken(fp.EXISTS,0)}EXPLAIN(){return this.getToken(fp.EXPLAIN,0)}EXPRESSION(){return this.getToken(fp.EXPRESSION,0)}EXTRACT(){return this.getToken(fp.EXTRACT,0)}FETCHES(){return this.getToken(fp.FETCHES,0)}FINAL(){return this.getToken(fp.FINAL,0)}FIRST(){return this.getToken(fp.FIRST,0)}FLUSH(){return this.getToken(fp.FLUSH,0)}FOR(){return this.getToken(fp.FOR,0)}FOLLOWING(){return this.getToken(fp.FOLLOWING,0)}FORMAT(){return this.getToken(fp.FORMAT,0)}FREEZE(){return this.getToken(fp.FREEZE,0)}FROM(){return this.getToken(fp.FROM,0)}FULL(){return this.getToken(fp.FULL,0)}FUNCTION(){return this.getToken(fp.FUNCTION,0)}GLOBAL(){return this.getToken(fp.GLOBAL,0)}GRANULARITY(){return this.getToken(fp.GRANULARITY,0)}GROUP(){return this.getToken(fp.GROUP,0)}HAVING(){return this.getToken(fp.HAVING,0)}HIERARCHICAL(){return this.getToken(fp.HIERARCHICAL,0)}ID(){return this.getToken(fp.ID,0)}IF(){return this.getToken(fp.IF,0)}ILIKE(){return this.getToken(fp.ILIKE,0)}IN(){return this.getToken(fp.IN,0)}INDEX(){return this.getToken(fp.INDEX,0)}INJECTIVE(){return this.getToken(fp.INJECTIVE,0)}INNER(){return this.getToken(fp.INNER,0)}INSERT(){return this.getToken(fp.INSERT,0)}INTERVAL(){return this.getToken(fp.INTERVAL,0)}INTO(){return this.getToken(fp.INTO,0)}IS(){return this.getToken(fp.IS,0)}IS_OBJECT_ID(){return this.getToken(fp.IS_OBJECT_ID,0)}JOIN(){return this.getToken(fp.JOIN,0)}JSON_FALSE(){return this.getToken(fp.JSON_FALSE,0)}JSON_TRUE(){return this.getToken(fp.JSON_TRUE,0)}KEY(){return this.getToken(fp.KEY,0)}KILL(){return this.getToken(fp.KILL,0)}LAST(){return this.getToken(fp.LAST,0)}LAYOUT(){return this.getToken(fp.LAYOUT,0)}LEADING(){return this.getToken(fp.LEADING,0)}LEFT(){return this.getToken(fp.LEFT,0)}LIFETIME(){return this.getToken(fp.LIFETIME,0)}LIKE(){return this.getToken(fp.LIKE,0)}LIMIT(){return this.getToken(fp.LIMIT,0)}LIVE(){return this.getToken(fp.LIVE,0)}LOCAL(){return this.getToken(fp.LOCAL,0)}LOGS(){return this.getToken(fp.LOGS,0)}MATERIALIZE(){return this.getToken(fp.MATERIALIZE,0)}MATERIALIZED(){return this.getToken(fp.MATERIALIZED,0)}MAX(){return this.getToken(fp.MAX,0)}MERGES(){return this.getToken(fp.MERGES,0)}MIN(){return this.getToken(fp.MIN,0)}MODIFY(){return this.getToken(fp.MODIFY,0)}MOVE(){return this.getToken(fp.MOVE,0)}MUTATION(){return this.getToken(fp.MUTATION,0)}NO(){return this.getToken(fp.NO,0)}NOT(){return this.getToken(fp.NOT,0)}NULLS(){return this.getToken(fp.NULLS,0)}OFFSET(){return this.getToken(fp.OFFSET,0)}ON(){return this.getToken(fp.ON,0)}OPTIMIZE(){return this.getToken(fp.OPTIMIZE,0)}OR(){return this.getToken(fp.OR,0)}ORDER(){return this.getToken(fp.ORDER,0)}OUTER(){return this.getToken(fp.OUTER,0)}OUTFILE(){return this.getToken(fp.OUTFILE,0)}OVER(){return this.getToken(fp.OVER,0)}PARTITION(){return this.getToken(fp.PARTITION,0)}POPULATE(){return this.getToken(fp.POPULATE,0)}PRECEDING(){return this.getToken(fp.PRECEDING,0)}PREWHERE(){return this.getToken(fp.PREWHERE,0)}PRIMARY(){return this.getToken(fp.PRIMARY,0)}RANGE(){return this.getToken(fp.RANGE,0)}RELOAD(){return this.getToken(fp.RELOAD,0)}REMOVE(){return this.getToken(fp.REMOVE,0)}RENAME(){return this.getToken(fp.RENAME,0)}REPLACE(){return this.getToken(fp.REPLACE,0)}REPLICA(){return this.getToken(fp.REPLICA,0)}REPLICATED(){return this.getToken(fp.REPLICATED,0)}RIGHT(){return this.getToken(fp.RIGHT,0)}ROLLUP(){return this.getToken(fp.ROLLUP,0)}ROW(){return this.getToken(fp.ROW,0)}ROWS(){return this.getToken(fp.ROWS,0)}SAMPLE(){return this.getToken(fp.SAMPLE,0)}SELECT(){return this.getToken(fp.SELECT,0)}SEMI(){return this.getToken(fp.SEMI,0)}SENDS(){return this.getToken(fp.SENDS,0)}SET(){return this.getToken(fp.SET,0)}SETTINGS(){return this.getToken(fp.SETTINGS,0)}SHOW(){return this.getToken(fp.SHOW,0)}SOURCE(){return this.getToken(fp.SOURCE,0)}START(){return this.getToken(fp.START,0)}STOP(){return this.getToken(fp.STOP,0)}SUBSTRING(){return this.getToken(fp.SUBSTRING,0)}SYNC(){return this.getToken(fp.SYNC,0)}SYNTAX(){return this.getToken(fp.SYNTAX,0)}SYSTEM(){return this.getToken(fp.SYSTEM,0)}TABLE(){return this.getToken(fp.TABLE,0)}TABLES(){return this.getToken(fp.TABLES,0)}TEMPORARY(){return this.getToken(fp.TEMPORARY,0)}TEST(){return this.getToken(fp.TEST,0)}THEN(){return this.getToken(fp.THEN,0)}TIES(){return this.getToken(fp.TIES,0)}TIMEOUT(){return this.getToken(fp.TIMEOUT,0)}TIMESTAMP(){return this.getToken(fp.TIMESTAMP,0)}TOTALS(){return this.getToken(fp.TOTALS,0)}TRAILING(){return this.getToken(fp.TRAILING,0)}TRIM(){return this.getToken(fp.TRIM,0)}TRUNCATE(){return this.getToken(fp.TRUNCATE,0)}TO(){return this.getToken(fp.TO,0)}TOP(){return this.getToken(fp.TOP,0)}TTL(){return this.getToken(fp.TTL,0)}TYPE(){return this.getToken(fp.TYPE,0)}UNBOUNDED(){return this.getToken(fp.UNBOUNDED,0)}UNION(){return this.getToken(fp.UNION,0)}UPDATE(){return this.getToken(fp.UPDATE,0)}USE(){return this.getToken(fp.USE,0)}USING(){return this.getToken(fp.USING,0)}UUID(){return this.getToken(fp.UUID,0)}VALUES(){return this.getToken(fp.VALUES,0)}VIEW(){return this.getToken(fp.VIEW,0)}VOLUME(){return this.getToken(fp.VOLUME,0)}WATCH(){return this.getToken(fp.WATCH,0)}WHEN(){return this.getToken(fp.WHEN,0)}WHERE(){return this.getToken(fp.WHERE,0)}WINDOW(){return this.getToken(fp.WINDOW,0)}WITH(){return this.getToken(fp.WITH,0)}get ruleIndex(){return fp.RULE_keyword}accept(t){return t.visitKeyword?t.visitKeyword(this):t.visitChildren(this)}},aG=class extends p{constructor(t,e){super(t,e)}DATE(){return this.getToken(fp.DATE,0)}FIRST(){return this.getToken(fp.FIRST,0)}ID(){return this.getToken(fp.ID,0)}KEY(){return this.getToken(fp.KEY,0)}get ruleIndex(){return fp.RULE_keywordForAlias}accept(t){return t.visitKeywordForAlias?t.visitKeywordForAlias(this):t.visitChildren(this)}},iG=class extends p{constructor(t,e){super(t,e)}IDENTIFIER(){return this.getToken(fp.IDENTIFIER,0)}keywordForAlias(){return this.getRuleContext(0,aG)}get ruleIndex(){return fp.RULE_alias}accept(t){return t.visitAlias?t.visitAlias(this):t.visitChildren(this)}},rG=class extends p{constructor(t,e){super(t,e)}IDENTIFIER(){return this.getToken(fp.IDENTIFIER,0)}interval(){return this.getRuleContext(0,eG)}keyword(){return this.getRuleContext(0,sG)}get ruleIndex(){return fp.RULE_identifier}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},cG=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,rG)}NULL_SQL(){return this.getToken(fp.NULL_SQL,0)}get ruleIndex(){return fp.RULE_identifierOrNull}accept(t){return t.visitIdentifierOrNull?t.visitIdentifierOrNull(this):t.visitChildren(this)}},nG=class extends p{constructor(t,e){super(t,e)}STRING_LITERAL(){return this.getToken(fp.STRING_LITERAL,0)}EQ_SINGLE(){return this.getToken(fp.EQ_SINGLE,0)}numberLiteral(){return this.getRuleContext(0,$H)}get ruleIndex(){return fp.RULE_enumValue}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},hG=class extends Oe{},EG=["Null","Set","Log","Memory","TinyLog","StripeLog"],TG=["MergeTree()","Merge()","ReplacingMergeTree()","CollapsingMergeTree()","AggregatingMergeTree()","Buffer()","Dictionary()","Distributed()","File()","GraphiteMergeTree()","Join()","Kafka()","MySQL()","URL()","ReplicatedAggregatingMergeTree()","ReplicatedCollapsingMergeTree()","ReplicatedGraphiteMergeTree()","ReplicatedMergeTree()","ReplicatedReplacingMergeTree()","ReplicatedSummingMergeTree()","ReplicatedVersionedCollapsingMergeTree()","SummingMergeTree()","VersionedCollapsingMergeTree()","PostgreSQL()"],oG={SPACE:fp.WHITESPACE,FROM:fp.FROM,OPENING_BRACKET:fp.LPAREN,CLOSING_BRACKET:fp.RPAREN,ALTER:fp.ALTER,INSERT:fp.INSERT,UPDATE:fp.UPDATE,JOIN:fp.JOIN,SEMICOLON:fp.SEMICOLON,SELECT:fp.SELECT};var RG=new Set(function(){let t=[],e=fp.JSON_FALSE,s=fp.WHITESPACE;for(let a=e;a<=s;a++)a!==fp.ASTERISK&&t.push(a);return t.push(fp.EOF),t.push(fp.QUESTIONMARK),t}()),AG=new Set([fp.RULE_databaseIdentifier,fp.RULE_tableIdentifier,fp.RULE_identifier,fp.RULE_columnIdentifier,fp.RULE_identifierOrNull,fp.RULE_literal]),SG=class extends hG{constructor(){super(),this.visitTableIdentifier=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitTableExpressionAlias=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.tableExpression()?.getText(),t.alias()?.getText()||t.identifier()?.getText()||void 0)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitColumnExpressionAlias=t=>{try{let e=t.alias()?.getText()||t.identifier()?.getText();e&&this.symbolTable.addNewSymbolOfType(Os,this.scope,e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.symbolTable=new As("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ss,void 0)}};function lG(t,e){if(!e||"update"===e)return t.root();switch(e){case"from":return t.fromClause();case"alter":return t.alterStatement();case"insert":return t.insertStatement();case"select":return t.selectStatement()}}var OG={Lexer:yp,Parser:fp,tokenDictionary:oG,ignoredTokens:RG,rulesToVisit:AG,getParseTree:lG,enrichAutocompleteResult:function(t,e,s,a,i,r){let{shouldSuggestColumns:c,shouldSuggestColumnAliases:n,...h}=function(t,e,s){let a,i,r=!1,c=!1,n=!1,h=!1,E=!1;for(let[T,o]of t)if(vO(e,o))switch(T){case fp.RULE_tableIdentifier:if(o.ruleList.includes(fp.RULE_createStatement)||o.ruleList.includes(fp.RULE_columnsExpression))break;a=VO(s,oG,e,fp.VIEW)?"VIEWS":VO(s,oG,e,fp.TABLE)?"TABLES":"ALL";break;case fp.RULE_identifier:o.ruleList.includes(fp.RULE_columnExpression)&&(c=!0,r=!0),o.ruleList.includes(fp.RULE_alterTableClause)&&(h=!0);break;case fp.RULE_columnIdentifier:h=!0,(o.ruleList.includes(fp.RULE_orderExpression)||o.ruleList.includes(fp.RULE_groupByClause))&&(E=!0);break;case fp.RULE_identifierOrNull:o.ruleList.includes(fp.RULE_engineClause)&&(i={engines:EG,functionalEngines:TG});break;case fp.RULE_databaseIdentifier:n=!0}return{suggestViewsOrTables:a,suggestAggregateFunctions:r,suggestFunctions:c,suggestEngines:i,suggestDatabases:n,shouldSuggestColumns:h,shouldSuggestColumnAliases:E}}(e,a,s),E={...t,...h,suggestTemplates:YO(r,i)};if(c||n){let t=new SG,{tableContextSuggestion:e,suggestColumnAliases:a}=XO(yp,fp,t,oG,lG,s,i,r);c&&e&&(E.suggestColumns=e),n&&a&&(E.suggestColumnAliases=a)}return E}},IG=class t extends zt{static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.BACKSLASH=22}static{this.PERCENT=23}static{this.SEMICOLON=24}static{this.DOT=25}static{this.COMMA=26}static{this.LPAREN=27}static{this.RPAREN=28}static{this.QUESTION=29}static{this.COLON=30}static{this.AT=31}static{this.DOUBLE_AT=32}static{this.DOLLAR=33}static{this.QUOTE_DOUBLE=34}static{this.QUOTE_SINGLE=35}static{this.BACKTICK=36}static{this.LBRACE_CURLY=37}static{this.RBRACE_CURLY=38}static{this.CARET=39}static{this.NAMESPACE=40}static{this.ARROW=41}static{this.RBRACE_SQUARE=42}static{this.LBRACE_SQUARE=43}static{this.ABORT=44}static{this.ACTION=45}static{this.ADD=46}static{this.AFTER=47}static{this.ALL=48}static{this.ALTER=49}static{this.ANALYZE=50}static{this.AND=51}static{this.ANSI=52}static{this.ANY=53}static{this.ARRAY=54}static{this.AS=55}static{this.ASC=56}static{this.ASSUME=57}static{this.ASYMMETRIC=58}static{this.ASYNC=59}static{this.ATTACH=60}static{this.ATTRIBUTES=61}static{this.AUTOINCREMENT=62}static{this.AUTOMAP=63}static{this.BEFORE=64}static{this.BEGIN=65}static{this.BERNOULLI=66}static{this.BETWEEN=67}static{this.BITCAST=68}static{this.BY=69}static{this.CALLABLE=70}static{this.CASCADE=71}static{this.CASE=72}static{this.CAST=73}static{this.CHANGEFEED=74}static{this.CHECK=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INDEX=160}static{this.INDEXED=161}static{this.INHERITS=162}static{this.INITIAL=163}static{this.INITIALLY=164}static{this.INNER=165}static{this.INSERT=166}static{this.INSTEAD=167}static{this.INTERSECT=168}static{this.INTO=169}static{this.IS=170}static{this.ISNULL=171}static{this.JOIN=172}static{this.JSON_EXISTS=173}static{this.JSON_QUERY=174}static{this.JSON_VALUE=175}static{this.KEY=176}static{this.LAST=177}static{this.LEFT=178}static{this.LEGACY=179}static{this.LIKE=180}static{this.LIMIT=181}static{this.LIST=182}static{this.LOCAL=183}static{this.MANAGE=184}static{this.MATCH=185}static{this.MATCHES=186}static{this.MATCH_RECOGNIZE=187}static{this.MEASURES=188}static{this.MICROSECONDS=189}static{this.MILLISECONDS=190}static{this.MODIFY=191}static{this.NANOSECONDS=192}static{this.NATURAL=193}static{this.NEXT=194}static{this.NO=195}static{this.NOT=196}static{this.NOTNULL=197}static{this.NULL=198}static{this.NULLS=199}static{this.OBJECT=200}static{this.OF=201}static{this.OFFSET=202}static{this.OMIT=203}static{this.ON=204}static{this.ONE=205}static{this.ONLY=206}static{this.OPTION=207}static{this.OPTIONAL=208}static{this.OR=209}static{this.ORDER=210}static{this.OTHERS=211}static{this.OUTER=212}static{this.OVER=213}static{this.PARALLEL=214}static{this.PARTITION=215}static{this.PASSING=216}static{this.PASSWORD=217}static{this.PAST=218}static{this.PATTERN=219}static{this.PER=220}static{this.PERMUTE=221}static{this.PLAN=222}static{this.PRAGMA=223}static{this.PRECEDING=224}static{this.PRESORT=225}static{this.PRIMARY=226}static{this.PRIVILEGES=227}static{this.PROCESS=228}static{this.QUEUE=229}static{this.RAISE=230}static{this.RANGE=231}static{this.REDUCE=232}static{this.REFERENCES=233}static{this.REGEXP=234}static{this.REINDEX=235}static{this.RELEASE=236}static{this.REMOVE=237}static{this.RENAME=238}static{this.REPEATABLE=239}static{this.REPLACE=240}static{this.REPLICATION=241}static{this.RESET=242}static{this.RESOURCE=243}static{this.RESPECT=244}static{this.RESTRICT=245}static{this.RESULT=246}static{this.RETURN=247}static{this.RETURNING=248}static{this.REVERT=249}static{this.REVOKE=250}static{this.RIGHT=251}static{this.RLIKE=252}static{this.ROLLBACK=253}static{this.ROLLUP=254}static{this.ROW=255}static{this.ROWS=256}static{this.SAMPLE=257}static{this.SAVEPOINT=258}static{this.SCHEMA=259}static{this.SECONDS=260}static{this.SEEK=261}static{this.SELECT=262}static{this.SEMI=263}static{this.SET=264}static{this.SETS=265}static{this.SHOW=266}static{this.SKIP_RULE=267}static{this.SOURCE=268}static{this.STREAM=269}static{this.STRUCT=270}static{this.SUBQUERY=271}static{this.SUBSET=272}static{this.SYMBOLS=273}static{this.SYMMETRIC=274}static{this.SYNC=275}static{this.SYSTEM=276}static{this.TABLE=277}static{this.TABLES=278}static{this.TABLESAMPLE=279}static{this.TABLESTORE=280}static{this.TAGGED=281}static{this.TEMP=282}static{this.TEMPORARY=283}static{this.THEN=284}static{this.TIES=285}static{this.TO=286}static{this.TOPIC=287}static{this.TRANSACTION=288}static{this.TRIGGER=289}static{this.TRUE=290}static{this.TUPLE=291}static{this.TYPE=292}static{this.UNBOUNDED=293}static{this.UNCONDITIONAL=294}static{this.UNION=295}static{this.UNIQUE=296}static{this.UNKNOWN=297}static{this.UNMATCHED=298}static{this.UPDATE=299}static{this.UPSERT=300}static{this.USE=301}static{this.USER=302}static{this.USING=303}static{this.VACUUM=304}static{this.VALUES=305}static{this.VARIANT=306}static{this.VIEW=307}static{this.VIRTUAL=308}static{this.WHEN=309}static{this.WHERE=310}static{this.WINDOW=311}static{this.WITH=312}static{this.WITHOUT=313}static{this.WRAPPER=314}static{this.XOR=315}static{this.STRING_VALUE=316}static{this.ID_PLAIN=317}static{this.ID_QUOTED=318}static{this.DIGITS=319}static{this.INTEGER_VALUE=320}static{this.REAL=321}static{this.BLOB=322}static{this.WS=323}static{this.COMMENT=324}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","''","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'\"'","'''","'`'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","BACKSLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","AT","DOUBLE_AT","DOLLAR","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","SKIP_RULE","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","BACKSLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","AT","DOUBLE_AT","DOLLAR","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","SKIP_RULE","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new Ae)}get grammarFileName(){return"YQL.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static{this._serializedATN=[4,0,324,3058,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,3,341,2847,8,341,1,342,1,342,1,342,1,342,3,342,2853,8,342,1,343,1,343,5,343,2857,8,343,10,343,12,343,2860,9,343,1,343,1,343,1,344,1,344,5,344,2866,8,344,10,344,12,344,2869,9,344,1,344,1,344,1,345,1,345,5,345,2875,8,345,10,345,12,345,2878,9,345,1,345,1,345,4,345,2882,8,345,11,345,12,345,2883,1,345,3,345,2887,8,345,1,346,1,346,1,346,3,346,2892,8,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,3,346,2902,8,346,3,346,2904,8,346,1,347,1,347,1,347,5,347,2909,8,347,10,347,12,347,2912,9,347,1,348,1,348,1,348,1,348,1,348,3,348,2919,8,348,1,349,1,349,5,349,2923,8,349,10,349,12,349,2926,9,349,1,349,1,349,1,350,1,350,1,351,1,351,1,352,1,352,1,352,4,352,2937,8,352,11,352,12,352,2938,1,353,1,353,1,353,4,353,2944,8,353,11,353,12,353,2945,1,354,1,354,1,354,4,354,2951,8,354,11,354,12,354,2952,1,355,4,355,2956,8,355,11,355,12,355,2957,1,356,1,356,1,356,1,356,3,356,2964,8,356,1,357,1,357,1,357,3,357,2969,8,357,1,357,1,357,1,357,1,357,1,357,1,357,3,357,2977,8,357,1,358,1,358,1,358,3,358,2982,8,358,1,358,1,358,1,359,1,359,1,359,5,359,2989,8,359,10,359,12,359,2992,9,359,1,359,3,359,2995,8,359,1,359,1,359,1,359,3,359,3e3,8,359,1,359,1,359,1,359,1,359,1,359,1,359,3,359,3008,8,359,3,359,3010,8,359,1,360,1,360,1,360,4,360,3015,8,360,11,360,12,360,3016,1,360,1,360,1,361,1,361,1,361,1,361,5,361,3025,8,361,10,361,12,361,3028,9,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,5,362,3037,8,362,10,362,12,362,3040,9,362,1,362,1,362,3,362,3044,8,362,1,362,3,362,3047,8,362,1,363,1,363,1,363,1,363,1,364,1,364,3,364,3055,8,364,1,364,1,364,2,2876,3026,0,365,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,0,139,44,141,45,143,46,145,47,147,48,149,49,151,50,153,51,155,52,157,53,159,54,161,55,163,56,165,57,167,58,169,59,171,60,173,61,175,62,177,63,179,64,181,65,183,66,185,67,187,68,189,69,191,70,193,71,195,72,197,73,199,74,201,75,203,76,205,77,207,78,209,79,211,80,213,81,215,82,217,83,219,84,221,85,223,86,225,87,227,88,229,89,231,90,233,91,235,92,237,93,239,94,241,95,243,96,245,97,247,98,249,99,251,100,253,101,255,102,257,103,259,104,261,105,263,106,265,107,267,108,269,109,271,110,273,111,275,112,277,113,279,114,281,115,283,116,285,117,287,118,289,119,291,120,293,121,295,122,297,123,299,124,301,125,303,126,305,127,307,128,309,129,311,130,313,131,315,132,317,133,319,134,321,135,323,136,325,137,327,138,329,139,331,140,333,141,335,142,337,143,339,144,341,145,343,146,345,147,347,148,349,149,351,150,353,151,355,152,357,153,359,154,361,155,363,156,365,157,367,158,369,159,371,160,373,161,375,162,377,163,379,164,381,165,383,166,385,167,387,168,389,169,391,170,393,171,395,172,397,173,399,174,401,175,403,176,405,177,407,178,409,179,411,180,413,181,415,182,417,183,419,184,421,185,423,186,425,187,427,188,429,189,431,190,433,191,435,192,437,193,439,194,441,195,443,196,445,197,447,198,449,199,451,200,453,201,455,202,457,203,459,204,461,205,463,206,465,207,467,208,469,209,471,210,473,211,475,212,477,213,479,214,481,215,483,216,485,217,487,218,489,219,491,220,493,221,495,222,497,223,499,224,501,225,503,226,505,227,507,228,509,229,511,230,513,231,515,232,517,233,519,234,521,235,523,236,525,237,527,238,529,239,531,240,533,241,535,242,537,243,539,244,541,245,543,246,545,247,547,248,549,249,551,250,553,251,555,252,557,253,559,254,561,255,563,256,565,257,567,258,569,259,571,260,573,261,575,262,577,263,579,264,581,265,583,266,585,267,587,268,589,269,591,270,593,271,595,272,597,273,599,274,601,275,603,276,605,277,607,278,609,279,611,280,613,281,615,282,617,283,619,284,621,285,623,286,625,287,627,288,629,289,631,290,633,291,635,292,637,293,639,294,641,295,643,296,645,297,647,298,649,299,651,300,653,301,655,302,657,303,659,304,661,305,663,306,665,307,667,308,669,309,671,310,673,311,675,312,677,313,679,314,681,315,683,0,685,0,687,0,689,0,691,0,693,316,695,317,697,0,699,318,701,0,703,0,705,0,707,0,709,0,711,0,713,319,715,320,717,0,719,321,721,322,723,0,725,0,727,323,729,324,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,1,0,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3068,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,699,1,0,0,0,0,713,1,0,0,0,0,715,1,0,0,0,0,719,1,0,0,0,0,721,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,1,731,1,0,0,0,3,737,1,0,0,0,5,739,1,0,0,0,7,742,1,0,0,0,9,745,1,0,0,0,11,748,1,0,0,0,13,750,1,0,0,0,15,753,1,0,0,0,17,755,1,0,0,0,19,758,1,0,0,0,21,761,1,0,0,0,23,765,1,0,0,0,25,767,1,0,0,0,27,769,1,0,0,0,29,772,1,0,0,0,31,775,1,0,0,0,33,778,1,0,0,0,35,780,1,0,0,0,37,782,1,0,0,0,39,784,1,0,0,0,41,786,1,0,0,0,43,788,1,0,0,0,45,790,1,0,0,0,47,792,1,0,0,0,49,794,1,0,0,0,51,796,1,0,0,0,53,798,1,0,0,0,55,800,1,0,0,0,57,802,1,0,0,0,59,804,1,0,0,0,61,806,1,0,0,0,63,808,1,0,0,0,65,811,1,0,0,0,67,813,1,0,0,0,69,815,1,0,0,0,71,817,1,0,0,0,73,819,1,0,0,0,75,821,1,0,0,0,77,823,1,0,0,0,79,825,1,0,0,0,81,828,1,0,0,0,83,831,1,0,0,0,85,833,1,0,0,0,87,835,1,0,0,0,89,837,1,0,0,0,91,839,1,0,0,0,93,841,1,0,0,0,95,843,1,0,0,0,97,845,1,0,0,0,99,847,1,0,0,0,101,849,1,0,0,0,103,851,1,0,0,0,105,853,1,0,0,0,107,855,1,0,0,0,109,857,1,0,0,0,111,859,1,0,0,0,113,861,1,0,0,0,115,863,1,0,0,0,117,865,1,0,0,0,119,867,1,0,0,0,121,869,1,0,0,0,123,871,1,0,0,0,125,873,1,0,0,0,127,875,1,0,0,0,129,877,1,0,0,0,131,879,1,0,0,0,133,881,1,0,0,0,135,883,1,0,0,0,137,885,1,0,0,0,139,887,1,0,0,0,141,893,1,0,0,0,143,900,1,0,0,0,145,904,1,0,0,0,147,910,1,0,0,0,149,914,1,0,0,0,151,920,1,0,0,0,153,928,1,0,0,0,155,932,1,0,0,0,157,937,1,0,0,0,159,941,1,0,0,0,161,947,1,0,0,0,163,950,1,0,0,0,165,954,1,0,0,0,167,961,1,0,0,0,169,972,1,0,0,0,171,978,1,0,0,0,173,985,1,0,0,0,175,996,1,0,0,0,177,1010,1,0,0,0,179,1018,1,0,0,0,181,1025,1,0,0,0,183,1031,1,0,0,0,185,1041,1,0,0,0,187,1049,1,0,0,0,189,1057,1,0,0,0,191,1060,1,0,0,0,193,1069,1,0,0,0,195,1077,1,0,0,0,197,1082,1,0,0,0,199,1087,1,0,0,0,201,1098,1,0,0,0,203,1104,1,0,0,0,205,1112,1,0,0,0,207,1119,1,0,0,0,209,1127,1,0,0,0,211,1134,1,0,0,0,213,1142,1,0,0,0,215,1154,1,0,0,0,217,1163,1,0,0,0,219,1171,1,0,0,0,221,1182,1,0,0,0,223,1191,1,0,0,0,225,1197,1,0,0,0,227,1204,1,0,0,0,229,1210,1,0,0,0,231,1215,1,0,0,0,233,1223,1,0,0,0,235,1236,1,0,0,0,237,1249,1,0,0,0,239,1267,1,0,0,0,241,1272,1,0,0,0,243,1281,1,0,0,0,245,1289,1,0,0,0,247,1297,1,0,0,0,249,1305,1,0,0,0,251,1316,1,0,0,0,253,1325,1,0,0,0,255,1332,1,0,0,0,257,1339,1,0,0,0,259,1344,1,0,0,0,261,1353,1,0,0,0,263,1360,1,0,0,0,265,1365,1,0,0,0,267,1375,1,0,0,0,269,1383,1,0,0,0,271,1391,1,0,0,0,273,1400,1,0,0,0,275,1403,1,0,0,0,277,1408,1,0,0,0,279,1413,1,0,0,0,281,1418,1,0,0,0,283,1424,1,0,0,0,285,1437,1,0,0,0,287,1447,1,0,0,0,289,1451,1,0,0,0,291,1456,1,0,0,0,293,1462,1,0,0,0,295,1468,1,0,0,0,297,1475,1,0,0,0,299,1484,1,0,0,0,301,1491,1,0,0,0,303,1499,1,0,0,0,305,1509,1,0,0,0,307,1519,1,0,0,0,309,1526,1,0,0,0,311,1534,1,0,0,0,313,1541,1,0,0,0,315,1550,1,0,0,0,317,1555,1,0,0,0,319,1561,1,0,0,0,321,1568,1,0,0,0,323,1575,1,0,0,0,325,1581,1,0,0,0,327,1589,1,0,0,0,329,1594,1,0,0,0,331,1604,1,0,0,0,333,1608,1,0,0,0,335,1616,1,0,0,0,337,1621,1,0,0,0,339,1626,1,0,0,0,341,1635,1,0,0,0,343,1640,1,0,0,0,345,1647,1,0,0,0,347,1653,1,0,0,0,349,1659,1,0,0,0,351,1668,1,0,0,0,353,1675,1,0,0,0,355,1680,1,0,0,0,357,1687,1,0,0,0,359,1691,1,0,0,0,361,1694,1,0,0,0,363,1701,1,0,0,0,365,1707,1,0,0,0,367,1717,1,0,0,0,369,1724,1,0,0,0,371,1727,1,0,0,0,373,1733,1,0,0,0,375,1741,1,0,0,0,377,1750,1,0,0,0,379,1758,1,0,0,0,381,1768,1,0,0,0,383,1774,1,0,0,0,385,1781,1,0,0,0,387,1789,1,0,0,0,389,1799,1,0,0,0,391,1804,1,0,0,0,393,1807,1,0,0,0,395,1814,1,0,0,0,397,1819,1,0,0,0,399,1831,1,0,0,0,401,1842,1,0,0,0,403,1853,1,0,0,0,405,1857,1,0,0,0,407,1862,1,0,0,0,409,1867,1,0,0,0,411,1874,1,0,0,0,413,1879,1,0,0,0,415,1885,1,0,0,0,417,1890,1,0,0,0,419,1896,1,0,0,0,421,1903,1,0,0,0,423,1909,1,0,0,0,425,1917,1,0,0,0,427,1933,1,0,0,0,429,1942,1,0,0,0,431,1955,1,0,0,0,433,1968,1,0,0,0,435,1975,1,0,0,0,437,1987,1,0,0,0,439,1995,1,0,0,0,441,2e3,1,0,0,0,443,2003,1,0,0,0,445,2007,1,0,0,0,447,2015,1,0,0,0,449,2020,1,0,0,0,451,2026,1,0,0,0,453,2033,1,0,0,0,455,2036,1,0,0,0,457,2043,1,0,0,0,459,2048,1,0,0,0,461,2051,1,0,0,0,463,2055,1,0,0,0,465,2060,1,0,0,0,467,2067,1,0,0,0,469,2076,1,0,0,0,471,2079,1,0,0,0,473,2085,1,0,0,0,475,2092,1,0,0,0,477,2098,1,0,0,0,479,2103,1,0,0,0,481,2112,1,0,0,0,483,2122,1,0,0,0,485,2130,1,0,0,0,487,2139,1,0,0,0,489,2144,1,0,0,0,491,2152,1,0,0,0,493,2156,1,0,0,0,495,2164,1,0,0,0,497,2169,1,0,0,0,499,2176,1,0,0,0,501,2186,1,0,0,0,503,2194,1,0,0,0,505,2202,1,0,0,0,507,2213,1,0,0,0,509,2221,1,0,0,0,511,2227,1,0,0,0,513,2233,1,0,0,0,515,2239,1,0,0,0,517,2246,1,0,0,0,519,2257,1,0,0,0,521,2264,1,0,0,0,523,2272,1,0,0,0,525,2280,1,0,0,0,527,2287,1,0,0,0,529,2294,1,0,0,0,531,2305,1,0,0,0,533,2313,1,0,0,0,535,2325,1,0,0,0,537,2331,1,0,0,0,539,2340,1,0,0,0,541,2348,1,0,0,0,543,2357,1,0,0,0,545,2364,1,0,0,0,547,2371,1,0,0,0,549,2381,1,0,0,0,551,2388,1,0,0,0,553,2395,1,0,0,0,555,2401,1,0,0,0,557,2407,1,0,0,0,559,2416,1,0,0,0,561,2423,1,0,0,0,563,2427,1,0,0,0,565,2432,1,0,0,0,567,2439,1,0,0,0,569,2449,1,0,0,0,571,2456,1,0,0,0,573,2464,1,0,0,0,575,2469,1,0,0,0,577,2476,1,0,0,0,579,2481,1,0,0,0,581,2485,1,0,0,0,583,2490,1,0,0,0,585,2495,1,0,0,0,587,2500,1,0,0,0,589,2507,1,0,0,0,591,2514,1,0,0,0,593,2521,1,0,0,0,595,2530,1,0,0,0,597,2537,1,0,0,0,599,2545,1,0,0,0,601,2555,1,0,0,0,603,2560,1,0,0,0,605,2567,1,0,0,0,607,2573,1,0,0,0,609,2580,1,0,0,0,611,2592,1,0,0,0,613,2603,1,0,0,0,615,2610,1,0,0,0,617,2615,1,0,0,0,619,2625,1,0,0,0,621,2630,1,0,0,0,623,2635,1,0,0,0,625,2638,1,0,0,0,627,2644,1,0,0,0,629,2656,1,0,0,0,631,2664,1,0,0,0,633,2669,1,0,0,0,635,2675,1,0,0,0,637,2680,1,0,0,0,639,2690,1,0,0,0,641,2704,1,0,0,0,643,2710,1,0,0,0,645,2717,1,0,0,0,647,2725,1,0,0,0,649,2735,1,0,0,0,651,2742,1,0,0,0,653,2749,1,0,0,0,655,2753,1,0,0,0,657,2758,1,0,0,0,659,2764,1,0,0,0,661,2771,1,0,0,0,663,2778,1,0,0,0,665,2786,1,0,0,0,667,2791,1,0,0,0,669,2799,1,0,0,0,671,2804,1,0,0,0,673,2810,1,0,0,0,675,2817,1,0,0,0,677,2822,1,0,0,0,679,2830,1,0,0,0,681,2838,1,0,0,0,683,2846,1,0,0,0,685,2852,1,0,0,0,687,2854,1,0,0,0,689,2863,1,0,0,0,691,2881,1,0,0,0,693,2891,1,0,0,0,695,2905,1,0,0,0,697,2918,1,0,0,0,699,2920,1,0,0,0,701,2929,1,0,0,0,703,2931,1,0,0,0,705,2933,1,0,0,0,707,2940,1,0,0,0,709,2947,1,0,0,0,711,2955,1,0,0,0,713,2963,1,0,0,0,715,2965,1,0,0,0,717,2978,1,0,0,0,719,2999,1,0,0,0,721,3011,1,0,0,0,723,3020,1,0,0,0,725,3032,1,0,0,0,727,3048,1,0,0,0,729,3054,1,0,0,0,731,732,3,119,59,0,732,733,3,127,63,0,733,734,3,95,47,0,734,735,3,121,60,0,735,736,3,135,67,0,736,2,1,0,0,0,737,738,5,61,0,0,738,4,1,0,0,0,739,740,5,61,0,0,740,741,5,61,0,0,741,6,1,0,0,0,742,743,5,33,0,0,743,744,5,61,0,0,744,8,1,0,0,0,745,746,5,60,0,0,746,747,5,62,0,0,747,10,1,0,0,0,748,749,5,60,0,0,749,12,1,0,0,0,750,751,5,60,0,0,751,752,5,61,0,0,752,14,1,0,0,0,753,754,5,62,0,0,754,16,1,0,0,0,755,756,5,62,0,0,756,757,5,61,0,0,757,18,1,0,0,0,758,759,5,60,0,0,759,760,5,60,0,0,760,20,1,0,0,0,761,762,5,124,0,0,762,763,5,60,0,0,763,764,5,60,0,0,764,22,1,0,0,0,765,766,5,38,0,0,766,24,1,0,0,0,767,768,5,124,0,0,768,26,1,0,0,0,769,770,5,124,0,0,770,771,5,124,0,0,771,28,1,0,0,0,772,773,5,60,0,0,773,774,5,124,0,0,774,30,1,0,0,0,775,776,5,124,0,0,776,777,5,62,0,0,777,32,1,0,0,0,778,779,5,43,0,0,779,34,1,0,0,0,780,781,5,45,0,0,781,36,1,0,0,0,782,783,5,126,0,0,783,38,1,0,0,0,784,785,5,42,0,0,785,40,1,0,0,0,786,787,5,47,0,0,787,42,1,0,0,0,788,789,5,92,0,0,789,44,1,0,0,0,790,791,5,37,0,0,791,46,1,0,0,0,792,793,5,59,0,0,793,48,1,0,0,0,794,795,5,46,0,0,795,50,1,0,0,0,796,797,5,44,0,0,797,52,1,0,0,0,798,799,5,40,0,0,799,54,1,0,0,0,800,801,5,41,0,0,801,56,1,0,0,0,802,803,5,63,0,0,803,58,1,0,0,0,804,805,5,58,0,0,805,60,1,0,0,0,806,807,5,64,0,0,807,62,1,0,0,0,808,809,5,64,0,0,809,810,5,64,0,0,810,64,1,0,0,0,811,812,5,36,0,0,812,66,1,0,0,0,813,814,5,34,0,0,814,68,1,0,0,0,815,816,5,39,0,0,816,70,1,0,0,0,817,818,5,96,0,0,818,72,1,0,0,0,819,820,5,123,0,0,820,74,1,0,0,0,821,822,5,125,0,0,822,76,1,0,0,0,823,824,5,94,0,0,824,78,1,0,0,0,825,826,5,58,0,0,826,827,5,58,0,0,827,80,1,0,0,0,828,829,5,45,0,0,829,830,5,62,0,0,830,82,1,0,0,0,831,832,5,93,0,0,832,84,1,0,0,0,833,834,5,91,0,0,834,86,1,0,0,0,835,836,7,0,0,0,836,88,1,0,0,0,837,838,7,1,0,0,838,90,1,0,0,0,839,840,7,2,0,0,840,92,1,0,0,0,841,842,7,3,0,0,842,94,1,0,0,0,843,844,7,4,0,0,844,96,1,0,0,0,845,846,7,5,0,0,846,98,1,0,0,0,847,848,7,6,0,0,848,100,1,0,0,0,849,850,7,7,0,0,850,102,1,0,0,0,851,852,7,8,0,0,852,104,1,0,0,0,853,854,7,9,0,0,854,106,1,0,0,0,855,856,7,10,0,0,856,108,1,0,0,0,857,858,7,11,0,0,858,110,1,0,0,0,859,860,7,12,0,0,860,112,1,0,0,0,861,862,7,13,0,0,862,114,1,0,0,0,863,864,7,14,0,0,864,116,1,0,0,0,865,866,7,15,0,0,866,118,1,0,0,0,867,868,7,16,0,0,868,120,1,0,0,0,869,870,7,17,0,0,870,122,1,0,0,0,871,872,7,18,0,0,872,124,1,0,0,0,873,874,7,19,0,0,874,126,1,0,0,0,875,876,7,20,0,0,876,128,1,0,0,0,877,878,7,21,0,0,878,130,1,0,0,0,879,880,7,22,0,0,880,132,1,0,0,0,881,882,7,23,0,0,882,134,1,0,0,0,883,884,7,24,0,0,884,136,1,0,0,0,885,886,7,25,0,0,886,138,1,0,0,0,887,888,3,87,43,0,888,889,3,89,44,0,889,890,3,115,57,0,890,891,3,121,60,0,891,892,3,125,62,0,892,140,1,0,0,0,893,894,3,87,43,0,894,895,3,91,45,0,895,896,3,125,62,0,896,897,3,103,51,0,897,898,3,115,57,0,898,899,3,113,56,0,899,142,1,0,0,0,900,901,3,87,43,0,901,902,3,93,46,0,902,903,3,93,46,0,903,144,1,0,0,0,904,905,3,87,43,0,905,906,3,97,48,0,906,907,3,125,62,0,907,908,3,95,47,0,908,909,3,121,60,0,909,146,1,0,0,0,910,911,3,87,43,0,911,912,3,109,54,0,912,913,3,109,54,0,913,148,1,0,0,0,914,915,3,87,43,0,915,916,3,109,54,0,916,917,3,125,62,0,917,918,3,95,47,0,918,919,3,121,60,0,919,150,1,0,0,0,920,921,3,87,43,0,921,922,3,113,56,0,922,923,3,87,43,0,923,924,3,109,54,0,924,925,3,135,67,0,925,926,3,137,68,0,926,927,3,95,47,0,927,152,1,0,0,0,928,929,3,87,43,0,929,930,3,113,56,0,930,931,3,93,46,0,931,154,1,0,0,0,932,933,3,87,43,0,933,934,3,113,56,0,934,935,3,123,61,0,935,936,3,103,51,0,936,156,1,0,0,0,937,938,3,87,43,0,938,939,3,113,56,0,939,940,3,135,67,0,940,158,1,0,0,0,941,942,3,87,43,0,942,943,3,121,60,0,943,944,3,121,60,0,944,945,3,87,43,0,945,946,3,135,67,0,946,160,1,0,0,0,947,948,3,87,43,0,948,949,3,123,61,0,949,162,1,0,0,0,950,951,3,87,43,0,951,952,3,123,61,0,952,953,3,91,45,0,953,164,1,0,0,0,954,955,3,87,43,0,955,956,3,123,61,0,956,957,3,123,61,0,957,958,3,127,63,0,958,959,3,111,55,0,959,960,3,95,47,0,960,166,1,0,0,0,961,962,3,87,43,0,962,963,3,123,61,0,963,964,3,135,67,0,964,965,3,111,55,0,965,966,3,111,55,0,966,967,3,95,47,0,967,968,3,125,62,0,968,969,3,121,60,0,969,970,3,103,51,0,970,971,3,91,45,0,971,168,1,0,0,0,972,973,3,87,43,0,973,974,3,123,61,0,974,975,3,135,67,0,975,976,3,113,56,0,976,977,3,91,45,0,977,170,1,0,0,0,978,979,3,87,43,0,979,980,3,125,62,0,980,981,3,125,62,0,981,982,3,87,43,0,982,983,3,91,45,0,983,984,3,101,50,0,984,172,1,0,0,0,985,986,3,87,43,0,986,987,3,125,62,0,987,988,3,125,62,0,988,989,3,121,60,0,989,990,3,103,51,0,990,991,3,89,44,0,991,992,3,127,63,0,992,993,3,125,62,0,993,994,3,95,47,0,994,995,3,123,61,0,995,174,1,0,0,0,996,997,3,87,43,0,997,998,3,127,63,0,998,999,3,125,62,0,999,1e3,3,115,57,0,1e3,1001,3,103,51,0,1001,1002,3,113,56,0,1002,1003,3,91,45,0,1003,1004,3,121,60,0,1004,1005,3,95,47,0,1005,1006,3,111,55,0,1006,1007,3,95,47,0,1007,1008,3,113,56,0,1008,1009,3,125,62,0,1009,176,1,0,0,0,1010,1011,3,87,43,0,1011,1012,3,127,63,0,1012,1013,3,125,62,0,1013,1014,3,115,57,0,1014,1015,3,111,55,0,1015,1016,3,87,43,0,1016,1017,3,117,58,0,1017,178,1,0,0,0,1018,1019,3,89,44,0,1019,1020,3,95,47,0,1020,1021,3,97,48,0,1021,1022,3,115,57,0,1022,1023,3,121,60,0,1023,1024,3,95,47,0,1024,180,1,0,0,0,1025,1026,3,89,44,0,1026,1027,3,95,47,0,1027,1028,3,99,49,0,1028,1029,3,103,51,0,1029,1030,3,113,56,0,1030,182,1,0,0,0,1031,1032,3,89,44,0,1032,1033,3,95,47,0,1033,1034,3,121,60,0,1034,1035,3,113,56,0,1035,1036,3,115,57,0,1036,1037,3,127,63,0,1037,1038,3,109,54,0,1038,1039,3,109,54,0,1039,1040,3,103,51,0,1040,184,1,0,0,0,1041,1042,3,89,44,0,1042,1043,3,95,47,0,1043,1044,3,125,62,0,1044,1045,3,131,65,0,1045,1046,3,95,47,0,1046,1047,3,95,47,0,1047,1048,3,113,56,0,1048,186,1,0,0,0,1049,1050,3,89,44,0,1050,1051,3,103,51,0,1051,1052,3,125,62,0,1052,1053,3,91,45,0,1053,1054,3,87,43,0,1054,1055,3,123,61,0,1055,1056,3,125,62,0,1056,188,1,0,0,0,1057,1058,3,89,44,0,1058,1059,3,135,67,0,1059,190,1,0,0,0,1060,1061,3,91,45,0,1061,1062,3,87,43,0,1062,1063,3,109,54,0,1063,1064,3,109,54,0,1064,1065,3,87,43,0,1065,1066,3,89,44,0,1066,1067,3,109,54,0,1067,1068,3,95,47,0,1068,192,1,0,0,0,1069,1070,3,91,45,0,1070,1071,3,87,43,0,1071,1072,3,123,61,0,1072,1073,3,91,45,0,1073,1074,3,87,43,0,1074,1075,3,93,46,0,1075,1076,3,95,47,0,1076,194,1,0,0,0,1077,1078,3,91,45,0,1078,1079,3,87,43,0,1079,1080,3,123,61,0,1080,1081,3,95,47,0,1081,196,1,0,0,0,1082,1083,3,91,45,0,1083,1084,3,87,43,0,1084,1085,3,123,61,0,1085,1086,3,125,62,0,1086,198,1,0,0,0,1087,1088,3,91,45,0,1088,1089,3,101,50,0,1089,1090,3,87,43,0,1090,1091,3,113,56,0,1091,1092,3,99,49,0,1092,1093,3,95,47,0,1093,1094,3,97,48,0,1094,1095,3,95,47,0,1095,1096,3,95,47,0,1096,1097,3,93,46,0,1097,200,1,0,0,0,1098,1099,3,91,45,0,1099,1100,3,101,50,0,1100,1101,3,95,47,0,1101,1102,3,91,45,0,1102,1103,3,107,53,0,1103,202,1,0,0,0,1104,1105,3,91,45,0,1105,1106,3,115,57,0,1106,1107,3,109,54,0,1107,1108,3,109,54,0,1108,1109,3,87,43,0,1109,1110,3,125,62,0,1110,1111,3,95,47,0,1111,204,1,0,0,0,1112,1113,3,91,45,0,1113,1114,3,115,57,0,1114,1115,3,109,54,0,1115,1116,3,127,63,0,1116,1117,3,111,55,0,1117,1118,3,113,56,0,1118,206,1,0,0,0,1119,1120,3,91,45,0,1120,1121,3,115,57,0,1121,1122,3,109,54,0,1122,1123,3,127,63,0,1123,1124,3,111,55,0,1124,1125,3,113,56,0,1125,1126,3,123,61,0,1126,208,1,0,0,0,1127,1128,3,91,45,0,1128,1129,3,115,57,0,1129,1130,3,111,55,0,1130,1131,3,111,55,0,1131,1132,3,103,51,0,1132,1133,3,125,62,0,1133,210,1,0,0,0,1134,1135,3,91,45,0,1135,1136,3,115,57,0,1136,1137,3,111,55,0,1137,1138,3,117,58,0,1138,1139,3,87,43,0,1139,1140,3,91,45,0,1140,1141,3,125,62,0,1141,212,1,0,0,0,1142,1143,3,91,45,0,1143,1144,3,115,57,0,1144,1145,3,113,56,0,1145,1146,3,93,46,0,1146,1147,3,103,51,0,1147,1148,3,125,62,0,1148,1149,3,103,51,0,1149,1150,3,115,57,0,1150,1151,3,113,56,0,1151,1152,3,87,43,0,1152,1153,3,109,54,0,1153,214,1,0,0,0,1154,1155,3,91,45,0,1155,1156,3,115,57,0,1156,1157,3,113,56,0,1157,1158,3,97,48,0,1158,1159,3,109,54,0,1159,1160,3,103,51,0,1160,1161,3,91,45,0,1161,1162,3,125,62,0,1162,216,1,0,0,0,1163,1164,3,91,45,0,1164,1165,3,115,57,0,1165,1166,3,113,56,0,1166,1167,3,113,56,0,1167,1168,3,95,47,0,1168,1169,3,91,45,0,1169,1170,3,125,62,0,1170,218,1,0,0,0,1171,1172,3,91,45,0,1172,1173,3,115,57,0,1173,1174,3,113,56,0,1174,1175,3,123,61,0,1175,1176,3,125,62,0,1176,1177,3,121,60,0,1177,1178,3,87,43,0,1178,1179,3,103,51,0,1179,1180,3,113,56,0,1180,1181,3,125,62,0,1181,220,1,0,0,0,1182,1183,3,91,45,0,1183,1184,3,115,57,0,1184,1185,3,113,56,0,1185,1186,3,123,61,0,1186,1187,3,127,63,0,1187,1188,3,111,55,0,1188,1189,3,95,47,0,1189,1190,3,121,60,0,1190,222,1,0,0,0,1191,1192,3,91,45,0,1192,1193,3,115,57,0,1193,1194,3,129,64,0,1194,1195,3,95,47,0,1195,1196,3,121,60,0,1196,224,1,0,0,0,1197,1198,3,91,45,0,1198,1199,3,121,60,0,1199,1200,3,95,47,0,1200,1201,3,87,43,0,1201,1202,3,125,62,0,1202,1203,3,95,47,0,1203,226,1,0,0,0,1204,1205,3,91,45,0,1205,1206,3,121,60,0,1206,1207,3,115,57,0,1207,1208,3,123,61,0,1208,1209,3,123,61,0,1209,228,1,0,0,0,1210,1211,3,91,45,0,1211,1212,3,127,63,0,1212,1213,3,89,44,0,1213,1214,3,95,47,0,1214,230,1,0,0,0,1215,1216,3,91,45,0,1216,1217,3,127,63,0,1217,1218,3,121,60,0,1218,1219,3,121,60,0,1219,1220,3,95,47,0,1220,1221,3,113,56,0,1221,1222,3,125,62,0,1222,232,1,0,0,0,1223,1224,3,91,45,0,1224,1225,3,127,63,0,1225,1226,3,121,60,0,1226,1227,3,121,60,0,1227,1228,3,95,47,0,1228,1229,3,113,56,0,1229,1230,3,125,62,0,1230,1231,5,95,0,0,1231,1232,3,93,46,0,1232,1233,3,87,43,0,1233,1234,3,125,62,0,1234,1235,3,95,47,0,1235,234,1,0,0,0,1236,1237,3,91,45,0,1237,1238,3,127,63,0,1238,1239,3,121,60,0,1239,1240,3,121,60,0,1240,1241,3,95,47,0,1241,1242,3,113,56,0,1242,1243,3,125,62,0,1243,1244,5,95,0,0,1244,1245,3,125,62,0,1245,1246,3,103,51,0,1246,1247,3,111,55,0,1247,1248,3,95,47,0,1248,236,1,0,0,0,1249,1250,3,91,45,0,1250,1251,3,127,63,0,1251,1252,3,121,60,0,1252,1253,3,121,60,0,1253,1254,3,95,47,0,1254,1255,3,113,56,0,1255,1256,3,125,62,0,1256,1257,5,95,0,0,1257,1258,3,125,62,0,1258,1259,3,103,51,0,1259,1260,3,111,55,0,1260,1261,3,95,47,0,1261,1262,3,123,61,0,1262,1263,3,125,62,0,1263,1264,3,87,43,0,1264,1265,3,111,55,0,1265,1266,3,117,58,0,1266,238,1,0,0,0,1267,1268,3,93,46,0,1268,1269,3,87,43,0,1269,1270,3,125,62,0,1270,1271,3,87,43,0,1271,240,1,0,0,0,1272,1273,3,93,46,0,1273,1274,3,87,43,0,1274,1275,3,125,62,0,1275,1276,3,87,43,0,1276,1277,3,89,44,0,1277,1278,3,87,43,0,1278,1279,3,123,61,0,1279,1280,3,95,47,0,1280,242,1,0,0,0,1281,1282,3,93,46,0,1282,1283,3,95,47,0,1283,1284,3,91,45,0,1284,1285,3,103,51,0,1285,1286,3,111,55,0,1286,1287,3,87,43,0,1287,1288,3,109,54,0,1288,244,1,0,0,0,1289,1290,3,93,46,0,1290,1291,3,95,47,0,1291,1292,3,91,45,0,1292,1293,3,109,54,0,1293,1294,3,87,43,0,1294,1295,3,121,60,0,1295,1296,3,95,47,0,1296,246,1,0,0,0,1297,1298,3,93,46,0,1298,1299,3,95,47,0,1299,1300,3,97,48,0,1300,1301,3,87,43,0,1301,1302,3,127,63,0,1302,1303,3,109,54,0,1303,1304,3,125,62,0,1304,248,1,0,0,0,1305,1306,3,93,46,0,1306,1307,3,95,47,0,1307,1308,3,97,48,0,1308,1309,3,95,47,0,1309,1310,3,121,60,0,1310,1311,3,121,60,0,1311,1312,3,87,43,0,1312,1313,3,89,44,0,1313,1314,3,109,54,0,1314,1315,3,95,47,0,1315,250,1,0,0,0,1316,1317,3,93,46,0,1317,1318,3,95,47,0,1318,1319,3,97,48,0,1319,1320,3,95,47,0,1320,1321,3,121,60,0,1321,1322,3,121,60,0,1322,1323,3,95,47,0,1323,1324,3,93,46,0,1324,252,1,0,0,0,1325,1326,3,93,46,0,1326,1327,3,95,47,0,1327,1328,3,97,48,0,1328,1329,3,103,51,0,1329,1330,3,113,56,0,1330,1331,3,95,47,0,1331,254,1,0,0,0,1332,1333,3,93,46,0,1333,1334,3,95,47,0,1334,1335,3,109,54,0,1335,1336,3,95,47,0,1336,1337,3,125,62,0,1337,1338,3,95,47,0,1338,256,1,0,0,0,1339,1340,3,93,46,0,1340,1341,3,95,47,0,1341,1342,3,123,61,0,1342,1343,3,91,45,0,1343,258,1,0,0,0,1344,1345,3,93,46,0,1345,1346,3,95,47,0,1346,1347,3,123,61,0,1347,1348,3,91,45,0,1348,1349,3,121,60,0,1349,1350,3,103,51,0,1350,1351,3,89,44,0,1351,1352,3,95,47,0,1352,260,1,0,0,0,1353,1354,3,93,46,0,1354,1355,3,95,47,0,1355,1356,3,125,62,0,1356,1357,3,87,43,0,1357,1358,3,91,45,0,1358,1359,3,101,50,0,1359,262,1,0,0,0,1360,1361,3,93,46,0,1361,1362,3,103,51,0,1362,1363,3,91,45,0,1363,1364,3,125,62,0,1364,264,1,0,0,0,1365,1366,3,93,46,0,1366,1367,3,103,51,0,1367,1368,3,121,60,0,1368,1369,3,95,47,0,1369,1370,3,91,45,0,1370,1371,3,125,62,0,1371,1372,3,115,57,0,1372,1373,3,121,60,0,1373,1374,3,135,67,0,1374,266,1,0,0,0,1375,1376,3,93,46,0,1376,1377,3,103,51,0,1377,1378,3,123,61,0,1378,1379,3,87,43,0,1379,1380,3,89,44,0,1380,1381,3,109,54,0,1381,1382,3,95,47,0,1382,268,1,0,0,0,1383,1384,3,93,46,0,1384,1385,3,103,51,0,1385,1386,3,123,61,0,1386,1387,3,91,45,0,1387,1388,3,87,43,0,1388,1389,3,121,60,0,1389,1390,3,93,46,0,1390,270,1,0,0,0,1391,1392,3,93,46,0,1392,1393,3,103,51,0,1393,1394,3,123,61,0,1394,1395,3,125,62,0,1395,1396,3,103,51,0,1396,1397,3,113,56,0,1397,1398,3,91,45,0,1398,1399,3,125,62,0,1399,272,1,0,0,0,1400,1401,3,93,46,0,1401,1402,3,115,57,0,1402,274,1,0,0,0,1403,1404,3,93,46,0,1404,1405,3,121,60,0,1405,1406,3,115,57,0,1406,1407,3,117,58,0,1407,276,1,0,0,0,1408,1409,3,95,47,0,1409,1410,3,87,43,0,1410,1411,3,91,45,0,1411,1412,3,101,50,0,1412,278,1,0,0,0,1413,1414,3,95,47,0,1414,1415,3,109,54,0,1415,1416,3,123,61,0,1416,1417,3,95,47,0,1417,280,1,0,0,0,1418,1419,3,95,47,0,1419,1420,3,111,55,0,1420,1421,3,117,58,0,1421,1422,3,125,62,0,1422,1423,3,135,67,0,1423,282,1,0,0,0,1424,1425,3,95,47,0,1425,1426,3,111,55,0,1426,1427,3,117,58,0,1427,1428,3,125,62,0,1428,1429,3,135,67,0,1429,1430,5,95,0,0,1430,1431,3,87,43,0,1431,1432,3,91,45,0,1432,1433,3,125,62,0,1433,1434,3,103,51,0,1434,1435,3,115,57,0,1435,1436,3,113,56,0,1436,284,1,0,0,0,1437,1438,3,95,47,0,1438,1439,3,113,56,0,1439,1440,3,91,45,0,1440,1441,3,121,60,0,1441,1442,3,135,67,0,1442,1443,3,117,58,0,1443,1444,3,125,62,0,1444,1445,3,95,47,0,1445,1446,3,93,46,0,1446,286,1,0,0,0,1447,1448,3,95,47,0,1448,1449,3,113,56,0,1449,1450,3,93,46,0,1450,288,1,0,0,0,1451,1452,3,95,47,0,1452,1453,3,113,56,0,1453,1454,3,127,63,0,1454,1455,3,111,55,0,1455,290,1,0,0,0,1456,1457,3,95,47,0,1457,1458,3,121,60,0,1458,1459,3,87,43,0,1459,1460,3,123,61,0,1460,1461,3,95,47,0,1461,292,1,0,0,0,1462,1463,3,95,47,0,1463,1464,3,121,60,0,1464,1465,3,121,60,0,1465,1466,3,115,57,0,1466,1467,3,121,60,0,1467,294,1,0,0,0,1468,1469,3,95,47,0,1469,1470,3,123,61,0,1470,1471,3,91,45,0,1471,1472,3,87,43,0,1472,1473,3,117,58,0,1473,1474,3,95,47,0,1474,296,1,0,0,0,1475,1476,3,95,47,0,1476,1477,3,129,64,0,1477,1478,3,87,43,0,1478,1479,3,109,54,0,1479,1480,3,127,63,0,1480,1481,3,87,43,0,1481,1482,3,125,62,0,1482,1483,3,95,47,0,1483,298,1,0,0,0,1484,1485,3,95,47,0,1485,1486,3,133,66,0,1486,1487,3,91,45,0,1487,1488,3,95,47,0,1488,1489,3,117,58,0,1489,1490,3,125,62,0,1490,300,1,0,0,0,1491,1492,3,95,47,0,1492,1493,3,133,66,0,1493,1494,3,91,45,0,1494,1495,3,109,54,0,1495,1496,3,127,63,0,1496,1497,3,93,46,0,1497,1498,3,95,47,0,1498,302,1,0,0,0,1499,1500,3,95,47,0,1500,1501,3,133,66,0,1501,1502,3,91,45,0,1502,1503,3,109,54,0,1503,1504,3,127,63,0,1504,1505,3,123,61,0,1505,1506,3,103,51,0,1506,1507,3,115,57,0,1507,1508,3,113,56,0,1508,304,1,0,0,0,1509,1510,3,95,47,0,1510,1511,3,133,66,0,1511,1512,3,91,45,0,1512,1513,3,109,54,0,1513,1514,3,127,63,0,1514,1515,3,123,61,0,1515,1516,3,103,51,0,1516,1517,3,129,64,0,1517,1518,3,95,47,0,1518,306,1,0,0,0,1519,1520,3,95,47,0,1520,1521,3,133,66,0,1521,1522,3,103,51,0,1522,1523,3,123,61,0,1523,1524,3,125,62,0,1524,1525,3,123,61,0,1525,308,1,0,0,0,1526,1527,3,95,47,0,1527,1528,3,133,66,0,1528,1529,3,117,58,0,1529,1530,3,109,54,0,1530,1531,3,87,43,0,1531,1532,3,103,51,0,1532,1533,3,113,56,0,1533,310,1,0,0,0,1534,1535,3,95,47,0,1535,1536,3,133,66,0,1536,1537,3,117,58,0,1537,1538,3,115,57,0,1538,1539,3,121,60,0,1539,1540,3,125,62,0,1540,312,1,0,0,0,1541,1542,3,95,47,0,1542,1543,3,133,66,0,1543,1544,3,125,62,0,1544,1545,3,95,47,0,1545,1546,3,121,60,0,1546,1547,3,113,56,0,1547,1548,3,87,43,0,1548,1549,3,109,54,0,1549,314,1,0,0,0,1550,1551,3,97,48,0,1551,1552,3,87,43,0,1552,1553,3,103,51,0,1553,1554,3,109,54,0,1554,316,1,0,0,0,1555,1556,3,97,48,0,1556,1557,3,87,43,0,1557,1558,3,109,54,0,1558,1559,3,123,61,0,1559,1560,3,95,47,0,1560,318,1,0,0,0,1561,1562,3,97,48,0,1562,1563,3,87,43,0,1563,1564,3,111,55,0,1564,1565,3,103,51,0,1565,1566,3,109,54,0,1566,1567,3,135,67,0,1567,320,1,0,0,0,1568,1569,3,97,48,0,1569,1570,3,103,51,0,1570,1571,3,109,54,0,1571,1572,3,125,62,0,1572,1573,3,95,47,0,1573,1574,3,121,60,0,1574,322,1,0,0,0,1575,1576,3,97,48,0,1576,1577,3,103,51,0,1577,1578,3,121,60,0,1578,1579,3,123,61,0,1579,1580,3,125,62,0,1580,324,1,0,0,0,1581,1582,3,97,48,0,1582,1583,3,109,54,0,1583,1584,3,87,43,0,1584,1585,3,125,62,0,1585,1586,3,125,62,0,1586,1587,3,95,47,0,1587,1588,3,113,56,0,1588,326,1,0,0,0,1589,1590,3,97,48,0,1590,1591,3,109,54,0,1591,1592,3,115,57,0,1592,1593,3,131,65,0,1593,328,1,0,0,0,1594,1595,3,97,48,0,1595,1596,3,115,57,0,1596,1597,3,109,54,0,1597,1598,3,109,54,0,1598,1599,3,115,57,0,1599,1600,3,131,65,0,1600,1601,3,103,51,0,1601,1602,3,113,56,0,1602,1603,3,99,49,0,1603,330,1,0,0,0,1604,1605,3,97,48,0,1605,1606,3,115,57,0,1606,1607,3,121,60,0,1607,332,1,0,0,0,1608,1609,3,97,48,0,1609,1610,3,115,57,0,1610,1611,3,121,60,0,1611,1612,3,95,47,0,1612,1613,3,103,51,0,1613,1614,3,99,49,0,1614,1615,3,113,56,0,1615,334,1,0,0,0,1616,1617,3,97,48,0,1617,1618,3,121,60,0,1618,1619,3,115,57,0,1619,1620,3,111,55,0,1620,336,1,0,0,0,1621,1622,3,97,48,0,1622,1623,3,127,63,0,1623,1624,3,109,54,0,1624,1625,3,109,54,0,1625,338,1,0,0,0,1626,1627,3,97,48,0,1627,1628,3,127,63,0,1628,1629,3,113,56,0,1629,1630,3,91,45,0,1630,1631,3,125,62,0,1631,1632,3,103,51,0,1632,1633,3,115,57,0,1633,1634,3,113,56,0,1634,340,1,0,0,0,1635,1636,3,99,49,0,1636,1637,3,109,54,0,1637,1638,3,115,57,0,1638,1639,3,89,44,0,1639,342,1,0,0,0,1640,1641,3,99,49,0,1641,1642,3,109,54,0,1642,1643,3,115,57,0,1643,1644,3,89,44,0,1644,1645,3,87,43,0,1645,1646,3,109,54,0,1646,344,1,0,0,0,1647,1648,3,99,49,0,1648,1649,3,121,60,0,1649,1650,3,87,43,0,1650,1651,3,113,56,0,1651,1652,3,125,62,0,1652,346,1,0,0,0,1653,1654,3,99,49,0,1654,1655,3,121,60,0,1655,1656,3,115,57,0,1656,1657,3,127,63,0,1657,1658,3,117,58,0,1658,348,1,0,0,0,1659,1660,3,99,49,0,1660,1661,3,121,60,0,1661,1662,3,115,57,0,1662,1663,3,127,63,0,1663,1664,3,117,58,0,1664,1665,3,103,51,0,1665,1666,3,113,56,0,1666,1667,3,99,49,0,1667,350,1,0,0,0,1668,1669,3,99,49,0,1669,1670,3,121,60,0,1670,1671,3,115,57,0,1671,1672,3,127,63,0,1672,1673,3,117,58,0,1673,1674,3,123,61,0,1674,352,1,0,0,0,1675,1676,3,101,50,0,1676,1677,3,87,43,0,1677,1678,3,123,61,0,1678,1679,3,101,50,0,1679,354,1,0,0,0,1680,1681,3,101,50,0,1681,1682,3,87,43,0,1682,1683,3,129,64,0,1683,1684,3,103,51,0,1684,1685,3,113,56,0,1685,1686,3,99,49,0,1686,356,1,0,0,0,1687,1688,3,101,50,0,1688,1689,3,115,57,0,1689,1690,3,117,58,0,1690,358,1,0,0,0,1691,1692,3,103,51,0,1692,1693,3,97,48,0,1693,360,1,0,0,0,1694,1695,3,103,51,0,1695,1696,3,99,49,0,1696,1697,3,113,56,0,1697,1698,3,115,57,0,1698,1699,3,121,60,0,1699,1700,3,95,47,0,1700,362,1,0,0,0,1701,1702,3,103,51,0,1702,1703,3,109,54,0,1703,1704,3,103,51,0,1704,1705,3,107,53,0,1705,1706,3,95,47,0,1706,364,1,0,0,0,1707,1708,3,103,51,0,1708,1709,3,111,55,0,1709,1710,3,111,55,0,1710,1711,3,95,47,0,1711,1712,3,93,46,0,1712,1713,3,103,51,0,1713,1714,3,87,43,0,1714,1715,3,125,62,0,1715,1716,3,95,47,0,1716,366,1,0,0,0,1717,1718,3,103,51,0,1718,1719,3,111,55,0,1719,1720,3,117,58,0,1720,1721,3,115,57,0,1721,1722,3,121,60,0,1722,1723,3,125,62,0,1723,368,1,0,0,0,1724,1725,3,103,51,0,1725,1726,3,113,56,0,1726,370,1,0,0,0,1727,1728,3,103,51,0,1728,1729,3,113,56,0,1729,1730,3,93,46,0,1730,1731,3,95,47,0,1731,1732,3,133,66,0,1732,372,1,0,0,0,1733,1734,3,103,51,0,1734,1735,3,113,56,0,1735,1736,3,93,46,0,1736,1737,3,95,47,0,1737,1738,3,133,66,0,1738,1739,3,95,47,0,1739,1740,3,93,46,0,1740,374,1,0,0,0,1741,1742,3,103,51,0,1742,1743,3,113,56,0,1743,1744,3,101,50,0,1744,1745,3,95,47,0,1745,1746,3,121,60,0,1746,1747,3,103,51,0,1747,1748,3,125,62,0,1748,1749,3,123,61,0,1749,376,1,0,0,0,1750,1751,3,103,51,0,1751,1752,3,113,56,0,1752,1753,3,103,51,0,1753,1754,3,125,62,0,1754,1755,3,103,51,0,1755,1756,3,87,43,0,1756,1757,3,109,54,0,1757,378,1,0,0,0,1758,1759,3,103,51,0,1759,1760,3,113,56,0,1760,1761,3,103,51,0,1761,1762,3,125,62,0,1762,1763,3,103,51,0,1763,1764,3,87,43,0,1764,1765,3,109,54,0,1765,1766,3,109,54,0,1766,1767,3,135,67,0,1767,380,1,0,0,0,1768,1769,3,103,51,0,1769,1770,3,113,56,0,1770,1771,3,113,56,0,1771,1772,3,95,47,0,1772,1773,3,121,60,0,1773,382,1,0,0,0,1774,1775,3,103,51,0,1775,1776,3,113,56,0,1776,1777,3,123,61,0,1777,1778,3,95,47,0,1778,1779,3,121,60,0,1779,1780,3,125,62,0,1780,384,1,0,0,0,1781,1782,3,103,51,0,1782,1783,3,113,56,0,1783,1784,3,123,61,0,1784,1785,3,125,62,0,1785,1786,3,95,47,0,1786,1787,3,87,43,0,1787,1788,3,93,46,0,1788,386,1,0,0,0,1789,1790,3,103,51,0,1790,1791,3,113,56,0,1791,1792,3,125,62,0,1792,1793,3,95,47,0,1793,1794,3,121,60,0,1794,1795,3,123,61,0,1795,1796,3,95,47,0,1796,1797,3,91,45,0,1797,1798,3,125,62,0,1798,388,1,0,0,0,1799,1800,3,103,51,0,1800,1801,3,113,56,0,1801,1802,3,125,62,0,1802,1803,3,115,57,0,1803,390,1,0,0,0,1804,1805,3,103,51,0,1805,1806,3,123,61,0,1806,392,1,0,0,0,1807,1808,3,103,51,0,1808,1809,3,123,61,0,1809,1810,3,113,56,0,1810,1811,3,127,63,0,1811,1812,3,109,54,0,1812,1813,3,109,54,0,1813,394,1,0,0,0,1814,1815,3,105,52,0,1815,1816,3,115,57,0,1816,1817,3,103,51,0,1817,1818,3,113,56,0,1818,396,1,0,0,0,1819,1820,3,105,52,0,1820,1821,3,123,61,0,1821,1822,3,115,57,0,1822,1823,3,113,56,0,1823,1824,5,95,0,0,1824,1825,3,95,47,0,1825,1826,3,133,66,0,1826,1827,3,103,51,0,1827,1828,3,123,61,0,1828,1829,3,125,62,0,1829,1830,3,123,61,0,1830,398,1,0,0,0,1831,1832,3,105,52,0,1832,1833,3,123,61,0,1833,1834,3,115,57,0,1834,1835,3,113,56,0,1835,1836,5,95,0,0,1836,1837,3,119,59,0,1837,1838,3,127,63,0,1838,1839,3,95,47,0,1839,1840,3,121,60,0,1840,1841,3,135,67,0,1841,400,1,0,0,0,1842,1843,3,105,52,0,1843,1844,3,123,61,0,1844,1845,3,115,57,0,1845,1846,3,113,56,0,1846,1847,5,95,0,0,1847,1848,3,129,64,0,1848,1849,3,87,43,0,1849,1850,3,109,54,0,1850,1851,3,127,63,0,1851,1852,3,95,47,0,1852,402,1,0,0,0,1853,1854,3,107,53,0,1854,1855,3,95,47,0,1855,1856,3,135,67,0,1856,404,1,0,0,0,1857,1858,3,109,54,0,1858,1859,3,87,43,0,1859,1860,3,123,61,0,1860,1861,3,125,62,0,1861,406,1,0,0,0,1862,1863,3,109,54,0,1863,1864,3,95,47,0,1864,1865,3,97,48,0,1865,1866,3,125,62,0,1866,408,1,0,0,0,1867,1868,3,109,54,0,1868,1869,3,95,47,0,1869,1870,3,99,49,0,1870,1871,3,87,43,0,1871,1872,3,91,45,0,1872,1873,3,135,67,0,1873,410,1,0,0,0,1874,1875,3,109,54,0,1875,1876,3,103,51,0,1876,1877,3,107,53,0,1877,1878,3,95,47,0,1878,412,1,0,0,0,1879,1880,3,109,54,0,1880,1881,3,103,51,0,1881,1882,3,111,55,0,1882,1883,3,103,51,0,1883,1884,3,125,62,0,1884,414,1,0,0,0,1885,1886,3,109,54,0,1886,1887,3,103,51,0,1887,1888,3,123,61,0,1888,1889,3,125,62,0,1889,416,1,0,0,0,1890,1891,3,109,54,0,1891,1892,3,115,57,0,1892,1893,3,91,45,0,1893,1894,3,87,43,0,1894,1895,3,109,54,0,1895,418,1,0,0,0,1896,1897,3,111,55,0,1897,1898,3,87,43,0,1898,1899,3,113,56,0,1899,1900,3,87,43,0,1900,1901,3,99,49,0,1901,1902,3,95,47,0,1902,420,1,0,0,0,1903,1904,3,111,55,0,1904,1905,3,87,43,0,1905,1906,3,125,62,0,1906,1907,3,91,45,0,1907,1908,3,101,50,0,1908,422,1,0,0,0,1909,1910,3,111,55,0,1910,1911,3,87,43,0,1911,1912,3,125,62,0,1912,1913,3,91,45,0,1913,1914,3,101,50,0,1914,1915,3,95,47,0,1915,1916,3,123,61,0,1916,424,1,0,0,0,1917,1918,3,111,55,0,1918,1919,3,87,43,0,1919,1920,3,125,62,0,1920,1921,3,91,45,0,1921,1922,3,101,50,0,1922,1923,5,95,0,0,1923,1924,3,121,60,0,1924,1925,3,95,47,0,1925,1926,3,91,45,0,1926,1927,3,115,57,0,1927,1928,3,99,49,0,1928,1929,3,113,56,0,1929,1930,3,103,51,0,1930,1931,3,137,68,0,1931,1932,3,95,47,0,1932,426,1,0,0,0,1933,1934,3,111,55,0,1934,1935,3,95,47,0,1935,1936,3,87,43,0,1936,1937,3,123,61,0,1937,1938,3,127,63,0,1938,1939,3,121,60,0,1939,1940,3,95,47,0,1940,1941,3,123,61,0,1941,428,1,0,0,0,1942,1943,3,111,55,0,1943,1944,3,103,51,0,1944,1945,3,91,45,0,1945,1946,3,121,60,0,1946,1947,3,115,57,0,1947,1948,3,123,61,0,1948,1949,3,95,47,0,1949,1950,3,91,45,0,1950,1951,3,115,57,0,1951,1952,3,113,56,0,1952,1953,3,93,46,0,1953,1954,3,123,61,0,1954,430,1,0,0,0,1955,1956,3,111,55,0,1956,1957,3,103,51,0,1957,1958,3,109,54,0,1958,1959,3,109,54,0,1959,1960,3,103,51,0,1960,1961,3,123,61,0,1961,1962,3,95,47,0,1962,1963,3,91,45,0,1963,1964,3,115,57,0,1964,1965,3,113,56,0,1965,1966,3,93,46,0,1966,1967,3,123,61,0,1967,432,1,0,0,0,1968,1969,3,111,55,0,1969,1970,3,115,57,0,1970,1971,3,93,46,0,1971,1972,3,103,51,0,1972,1973,3,97,48,0,1973,1974,3,135,67,0,1974,434,1,0,0,0,1975,1976,3,113,56,0,1976,1977,3,87,43,0,1977,1978,3,113,56,0,1978,1979,3,115,57,0,1979,1980,3,123,61,0,1980,1981,3,95,47,0,1981,1982,3,91,45,0,1982,1983,3,115,57,0,1983,1984,3,113,56,0,1984,1985,3,93,46,0,1985,1986,3,123,61,0,1986,436,1,0,0,0,1987,1988,3,113,56,0,1988,1989,3,87,43,0,1989,1990,3,125,62,0,1990,1991,3,127,63,0,1991,1992,3,121,60,0,1992,1993,3,87,43,0,1993,1994,3,109,54,0,1994,438,1,0,0,0,1995,1996,3,113,56,0,1996,1997,3,95,47,0,1997,1998,3,133,66,0,1998,1999,3,125,62,0,1999,440,1,0,0,0,2e3,2001,3,113,56,0,2001,2002,3,115,57,0,2002,442,1,0,0,0,2003,2004,3,113,56,0,2004,2005,3,115,57,0,2005,2006,3,125,62,0,2006,444,1,0,0,0,2007,2008,3,113,56,0,2008,2009,3,115,57,0,2009,2010,3,125,62,0,2010,2011,3,113,56,0,2011,2012,3,127,63,0,2012,2013,3,109,54,0,2013,2014,3,109,54,0,2014,446,1,0,0,0,2015,2016,3,113,56,0,2016,2017,3,127,63,0,2017,2018,3,109,54,0,2018,2019,3,109,54,0,2019,448,1,0,0,0,2020,2021,3,113,56,0,2021,2022,3,127,63,0,2022,2023,3,109,54,0,2023,2024,3,109,54,0,2024,2025,3,123,61,0,2025,450,1,0,0,0,2026,2027,3,115,57,0,2027,2028,3,89,44,0,2028,2029,3,105,52,0,2029,2030,3,95,47,0,2030,2031,3,91,45,0,2031,2032,3,125,62,0,2032,452,1,0,0,0,2033,2034,3,115,57,0,2034,2035,3,97,48,0,2035,454,1,0,0,0,2036,2037,3,115,57,0,2037,2038,3,97,48,0,2038,2039,3,97,48,0,2039,2040,3,123,61,0,2040,2041,3,95,47,0,2041,2042,3,125,62,0,2042,456,1,0,0,0,2043,2044,3,115,57,0,2044,2045,3,111,55,0,2045,2046,3,103,51,0,2046,2047,3,125,62,0,2047,458,1,0,0,0,2048,2049,3,115,57,0,2049,2050,3,113,56,0,2050,460,1,0,0,0,2051,2052,3,115,57,0,2052,2053,3,113,56,0,2053,2054,3,95,47,0,2054,462,1,0,0,0,2055,2056,3,115,57,0,2056,2057,3,113,56,0,2057,2058,3,109,54,0,2058,2059,3,135,67,0,2059,464,1,0,0,0,2060,2061,3,115,57,0,2061,2062,3,117,58,0,2062,2063,3,125,62,0,2063,2064,3,103,51,0,2064,2065,3,115,57,0,2065,2066,3,113,56,0,2066,466,1,0,0,0,2067,2068,3,115,57,0,2068,2069,3,117,58,0,2069,2070,3,125,62,0,2070,2071,3,103,51,0,2071,2072,3,115,57,0,2072,2073,3,113,56,0,2073,2074,3,87,43,0,2074,2075,3,109,54,0,2075,468,1,0,0,0,2076,2077,3,115,57,0,2077,2078,3,121,60,0,2078,470,1,0,0,0,2079,2080,3,115,57,0,2080,2081,3,121,60,0,2081,2082,3,93,46,0,2082,2083,3,95,47,0,2083,2084,3,121,60,0,2084,472,1,0,0,0,2085,2086,3,115,57,0,2086,2087,3,125,62,0,2087,2088,3,101,50,0,2088,2089,3,95,47,0,2089,2090,3,121,60,0,2090,2091,3,123,61,0,2091,474,1,0,0,0,2092,2093,3,115,57,0,2093,2094,3,127,63,0,2094,2095,3,125,62,0,2095,2096,3,95,47,0,2096,2097,3,121,60,0,2097,476,1,0,0,0,2098,2099,3,115,57,0,2099,2100,3,129,64,0,2100,2101,3,95,47,0,2101,2102,3,121,60,0,2102,478,1,0,0,0,2103,2104,3,117,58,0,2104,2105,3,87,43,0,2105,2106,3,121,60,0,2106,2107,3,87,43,0,2107,2108,3,109,54,0,2108,2109,3,109,54,0,2109,2110,3,95,47,0,2110,2111,3,109,54,0,2111,480,1,0,0,0,2112,2113,3,117,58,0,2113,2114,3,87,43,0,2114,2115,3,121,60,0,2115,2116,3,125,62,0,2116,2117,3,103,51,0,2117,2118,3,125,62,0,2118,2119,3,103,51,0,2119,2120,3,115,57,0,2120,2121,3,113,56,0,2121,482,1,0,0,0,2122,2123,3,117,58,0,2123,2124,3,87,43,0,2124,2125,3,123,61,0,2125,2126,3,123,61,0,2126,2127,3,103,51,0,2127,2128,3,113,56,0,2128,2129,3,99,49,0,2129,484,1,0,0,0,2130,2131,3,117,58,0,2131,2132,3,87,43,0,2132,2133,3,123,61,0,2133,2134,3,123,61,0,2134,2135,3,131,65,0,2135,2136,3,115,57,0,2136,2137,3,121,60,0,2137,2138,3,93,46,0,2138,486,1,0,0,0,2139,2140,3,117,58,0,2140,2141,3,87,43,0,2141,2142,3,123,61,0,2142,2143,3,125,62,0,2143,488,1,0,0,0,2144,2145,3,117,58,0,2145,2146,3,87,43,0,2146,2147,3,125,62,0,2147,2148,3,125,62,0,2148,2149,3,95,47,0,2149,2150,3,121,60,0,2150,2151,3,113,56,0,2151,490,1,0,0,0,2152,2153,3,117,58,0,2153,2154,3,95,47,0,2154,2155,3,121,60,0,2155,492,1,0,0,0,2156,2157,3,117,58,0,2157,2158,3,95,47,0,2158,2159,3,121,60,0,2159,2160,3,111,55,0,2160,2161,3,127,63,0,2161,2162,3,125,62,0,2162,2163,3,95,47,0,2163,494,1,0,0,0,2164,2165,3,117,58,0,2165,2166,3,109,54,0,2166,2167,3,87,43,0,2167,2168,3,113,56,0,2168,496,1,0,0,0,2169,2170,3,117,58,0,2170,2171,3,121,60,0,2171,2172,3,87,43,0,2172,2173,3,99,49,0,2173,2174,3,111,55,0,2174,2175,3,87,43,0,2175,498,1,0,0,0,2176,2177,3,117,58,0,2177,2178,3,121,60,0,2178,2179,3,95,47,0,2179,2180,3,91,45,0,2180,2181,3,95,47,0,2181,2182,3,93,46,0,2182,2183,3,103,51,0,2183,2184,3,113,56,0,2184,2185,3,99,49,0,2185,500,1,0,0,0,2186,2187,3,117,58,0,2187,2188,3,121,60,0,2188,2189,3,95,47,0,2189,2190,3,123,61,0,2190,2191,3,115,57,0,2191,2192,3,121,60,0,2192,2193,3,125,62,0,2193,502,1,0,0,0,2194,2195,3,117,58,0,2195,2196,3,121,60,0,2196,2197,3,103,51,0,2197,2198,3,111,55,0,2198,2199,3,87,43,0,2199,2200,3,121,60,0,2200,2201,3,135,67,0,2201,504,1,0,0,0,2202,2203,3,117,58,0,2203,2204,3,121,60,0,2204,2205,3,103,51,0,2205,2206,3,129,64,0,2206,2207,3,103,51,0,2207,2208,3,109,54,0,2208,2209,3,95,47,0,2209,2210,3,99,49,0,2210,2211,3,95,47,0,2211,2212,3,123,61,0,2212,506,1,0,0,0,2213,2214,3,117,58,0,2214,2215,3,121,60,0,2215,2216,3,115,57,0,2216,2217,3,91,45,0,2217,2218,3,95,47,0,2218,2219,3,123,61,0,2219,2220,3,123,61,0,2220,508,1,0,0,0,2221,2222,3,119,59,0,2222,2223,3,127,63,0,2223,2224,3,95,47,0,2224,2225,3,127,63,0,2225,2226,3,95,47,0,2226,510,1,0,0,0,2227,2228,3,121,60,0,2228,2229,3,87,43,0,2229,2230,3,103,51,0,2230,2231,3,123,61,0,2231,2232,3,95,47,0,2232,512,1,0,0,0,2233,2234,3,121,60,0,2234,2235,3,87,43,0,2235,2236,3,113,56,0,2236,2237,3,99,49,0,2237,2238,3,95,47,0,2238,514,1,0,0,0,2239,2240,3,121,60,0,2240,2241,3,95,47,0,2241,2242,3,93,46,0,2242,2243,3,127,63,0,2243,2244,3,91,45,0,2244,2245,3,95,47,0,2245,516,1,0,0,0,2246,2247,3,121,60,0,2247,2248,3,95,47,0,2248,2249,3,97,48,0,2249,2250,3,95,47,0,2250,2251,3,121,60,0,2251,2252,3,95,47,0,2252,2253,3,113,56,0,2253,2254,3,91,45,0,2254,2255,3,95,47,0,2255,2256,3,123,61,0,2256,518,1,0,0,0,2257,2258,3,121,60,0,2258,2259,3,95,47,0,2259,2260,3,99,49,0,2260,2261,3,95,47,0,2261,2262,3,133,66,0,2262,2263,3,117,58,0,2263,520,1,0,0,0,2264,2265,3,121,60,0,2265,2266,3,95,47,0,2266,2267,3,103,51,0,2267,2268,3,113,56,0,2268,2269,3,93,46,0,2269,2270,3,95,47,0,2270,2271,3,133,66,0,2271,522,1,0,0,0,2272,2273,3,121,60,0,2273,2274,3,95,47,0,2274,2275,3,109,54,0,2275,2276,3,95,47,0,2276,2277,3,87,43,0,2277,2278,3,123,61,0,2278,2279,3,95,47,0,2279,524,1,0,0,0,2280,2281,3,121,60,0,2281,2282,3,95,47,0,2282,2283,3,111,55,0,2283,2284,3,115,57,0,2284,2285,3,129,64,0,2285,2286,3,95,47,0,2286,526,1,0,0,0,2287,2288,3,121,60,0,2288,2289,3,95,47,0,2289,2290,3,113,56,0,2290,2291,3,87,43,0,2291,2292,3,111,55,0,2292,2293,3,95,47,0,2293,528,1,0,0,0,2294,2295,3,121,60,0,2295,2296,3,95,47,0,2296,2297,3,117,58,0,2297,2298,3,95,47,0,2298,2299,3,87,43,0,2299,2300,3,125,62,0,2300,2301,3,87,43,0,2301,2302,3,89,44,0,2302,2303,3,109,54,0,2303,2304,3,95,47,0,2304,530,1,0,0,0,2305,2306,3,121,60,0,2306,2307,3,95,47,0,2307,2308,3,117,58,0,2308,2309,3,109,54,0,2309,2310,3,87,43,0,2310,2311,3,91,45,0,2311,2312,3,95,47,0,2312,532,1,0,0,0,2313,2314,3,121,60,0,2314,2315,3,95,47,0,2315,2316,3,117,58,0,2316,2317,3,109,54,0,2317,2318,3,103,51,0,2318,2319,3,91,45,0,2319,2320,3,87,43,0,2320,2321,3,125,62,0,2321,2322,3,103,51,0,2322,2323,3,115,57,0,2323,2324,3,113,56,0,2324,534,1,0,0,0,2325,2326,3,121,60,0,2326,2327,3,95,47,0,2327,2328,3,123,61,0,2328,2329,3,95,47,0,2329,2330,3,125,62,0,2330,536,1,0,0,0,2331,2332,3,121,60,0,2332,2333,3,95,47,0,2333,2334,3,123,61,0,2334,2335,3,115,57,0,2335,2336,3,127,63,0,2336,2337,3,121,60,0,2337,2338,3,91,45,0,2338,2339,3,95,47,0,2339,538,1,0,0,0,2340,2341,3,121,60,0,2341,2342,3,95,47,0,2342,2343,3,123,61,0,2343,2344,3,117,58,0,2344,2345,3,95,47,0,2345,2346,3,91,45,0,2346,2347,3,125,62,0,2347,540,1,0,0,0,2348,2349,3,121,60,0,2349,2350,3,95,47,0,2350,2351,3,123,61,0,2351,2352,3,125,62,0,2352,2353,3,121,60,0,2353,2354,3,103,51,0,2354,2355,3,91,45,0,2355,2356,3,125,62,0,2356,542,1,0,0,0,2357,2358,3,121,60,0,2358,2359,3,95,47,0,2359,2360,3,123,61,0,2360,2361,3,127,63,0,2361,2362,3,109,54,0,2362,2363,3,125,62,0,2363,544,1,0,0,0,2364,2365,3,121,60,0,2365,2366,3,95,47,0,2366,2367,3,125,62,0,2367,2368,3,127,63,0,2368,2369,3,121,60,0,2369,2370,3,113,56,0,2370,546,1,0,0,0,2371,2372,3,121,60,0,2372,2373,3,95,47,0,2373,2374,3,125,62,0,2374,2375,3,127,63,0,2375,2376,3,121,60,0,2376,2377,3,113,56,0,2377,2378,3,103,51,0,2378,2379,3,113,56,0,2379,2380,3,99,49,0,2380,548,1,0,0,0,2381,2382,3,121,60,0,2382,2383,3,95,47,0,2383,2384,3,129,64,0,2384,2385,3,95,47,0,2385,2386,3,121,60,0,2386,2387,3,125,62,0,2387,550,1,0,0,0,2388,2389,3,121,60,0,2389,2390,3,95,47,0,2390,2391,3,129,64,0,2391,2392,3,115,57,0,2392,2393,3,107,53,0,2393,2394,3,95,47,0,2394,552,1,0,0,0,2395,2396,3,121,60,0,2396,2397,3,103,51,0,2397,2398,3,99,49,0,2398,2399,3,101,50,0,2399,2400,3,125,62,0,2400,554,1,0,0,0,2401,2402,3,121,60,0,2402,2403,3,109,54,0,2403,2404,3,103,51,0,2404,2405,3,107,53,0,2405,2406,3,95,47,0,2406,556,1,0,0,0,2407,2408,3,121,60,0,2408,2409,3,115,57,0,2409,2410,3,109,54,0,2410,2411,3,109,54,0,2411,2412,3,89,44,0,2412,2413,3,87,43,0,2413,2414,3,91,45,0,2414,2415,3,107,53,0,2415,558,1,0,0,0,2416,2417,3,121,60,0,2417,2418,3,115,57,0,2418,2419,3,109,54,0,2419,2420,3,109,54,0,2420,2421,3,127,63,0,2421,2422,3,117,58,0,2422,560,1,0,0,0,2423,2424,3,121,60,0,2424,2425,3,115,57,0,2425,2426,3,131,65,0,2426,562,1,0,0,0,2427,2428,3,121,60,0,2428,2429,3,115,57,0,2429,2430,3,131,65,0,2430,2431,3,123,61,0,2431,564,1,0,0,0,2432,2433,3,123,61,0,2433,2434,3,87,43,0,2434,2435,3,111,55,0,2435,2436,3,117,58,0,2436,2437,3,109,54,0,2437,2438,3,95,47,0,2438,566,1,0,0,0,2439,2440,3,123,61,0,2440,2441,3,87,43,0,2441,2442,3,129,64,0,2442,2443,3,95,47,0,2443,2444,3,117,58,0,2444,2445,3,115,57,0,2445,2446,3,103,51,0,2446,2447,3,113,56,0,2447,2448,3,125,62,0,2448,568,1,0,0,0,2449,2450,3,123,61,0,2450,2451,3,91,45,0,2451,2452,3,101,50,0,2452,2453,3,95,47,0,2453,2454,3,111,55,0,2454,2455,3,87,43,0,2455,570,1,0,0,0,2456,2457,3,123,61,0,2457,2458,3,95,47,0,2458,2459,3,91,45,0,2459,2460,3,115,57,0,2460,2461,3,113,56,0,2461,2462,3,93,46,0,2462,2463,3,123,61,0,2463,572,1,0,0,0,2464,2465,3,123,61,0,2465,2466,3,95,47,0,2466,2467,3,95,47,0,2467,2468,3,107,53,0,2468,574,1,0,0,0,2469,2470,3,123,61,0,2470,2471,3,95,47,0,2471,2472,3,109,54,0,2472,2473,3,95,47,0,2473,2474,3,91,45,0,2474,2475,3,125,62,0,2475,576,1,0,0,0,2476,2477,3,123,61,0,2477,2478,3,95,47,0,2478,2479,3,111,55,0,2479,2480,3,103,51,0,2480,578,1,0,0,0,2481,2482,3,123,61,0,2482,2483,3,95,47,0,2483,2484,3,125,62,0,2484,580,1,0,0,0,2485,2486,3,123,61,0,2486,2487,3,95,47,0,2487,2488,3,125,62,0,2488,2489,3,123,61,0,2489,582,1,0,0,0,2490,2491,3,123,61,0,2491,2492,3,101,50,0,2492,2493,3,115,57,0,2493,2494,3,131,65,0,2494,584,1,0,0,0,2495,2496,3,123,61,0,2496,2497,3,107,53,0,2497,2498,3,103,51,0,2498,2499,3,117,58,0,2499,586,1,0,0,0,2500,2501,3,123,61,0,2501,2502,3,115,57,0,2502,2503,3,127,63,0,2503,2504,3,121,60,0,2504,2505,3,91,45,0,2505,2506,3,95,47,0,2506,588,1,0,0,0,2507,2508,3,123,61,0,2508,2509,3,125,62,0,2509,2510,3,121,60,0,2510,2511,3,95,47,0,2511,2512,3,87,43,0,2512,2513,3,111,55,0,2513,590,1,0,0,0,2514,2515,3,123,61,0,2515,2516,3,125,62,0,2516,2517,3,121,60,0,2517,2518,3,127,63,0,2518,2519,3,91,45,0,2519,2520,3,125,62,0,2520,592,1,0,0,0,2521,2522,3,123,61,0,2522,2523,3,127,63,0,2523,2524,3,89,44,0,2524,2525,3,119,59,0,2525,2526,3,127,63,0,2526,2527,3,95,47,0,2527,2528,3,121,60,0,2528,2529,3,135,67,0,2529,594,1,0,0,0,2530,2531,3,123,61,0,2531,2532,3,127,63,0,2532,2533,3,89,44,0,2533,2534,3,123,61,0,2534,2535,3,95,47,0,2535,2536,3,125,62,0,2536,596,1,0,0,0,2537,2538,3,123,61,0,2538,2539,3,135,67,0,2539,2540,3,111,55,0,2540,2541,3,89,44,0,2541,2542,3,115,57,0,2542,2543,3,109,54,0,2543,2544,3,123,61,0,2544,598,1,0,0,0,2545,2546,3,123,61,0,2546,2547,3,135,67,0,2547,2548,3,111,55,0,2548,2549,3,111,55,0,2549,2550,3,95,47,0,2550,2551,3,125,62,0,2551,2552,3,121,60,0,2552,2553,3,103,51,0,2553,2554,3,91,45,0,2554,600,1,0,0,0,2555,2556,3,123,61,0,2556,2557,3,135,67,0,2557,2558,3,113,56,0,2558,2559,3,91,45,0,2559,602,1,0,0,0,2560,2561,3,123,61,0,2561,2562,3,135,67,0,2562,2563,3,123,61,0,2563,2564,3,125,62,0,2564,2565,3,95,47,0,2565,2566,3,111,55,0,2566,604,1,0,0,0,2567,2568,3,125,62,0,2568,2569,3,87,43,0,2569,2570,3,89,44,0,2570,2571,3,109,54,0,2571,2572,3,95,47,0,2572,606,1,0,0,0,2573,2574,3,125,62,0,2574,2575,3,87,43,0,2575,2576,3,89,44,0,2576,2577,3,109,54,0,2577,2578,3,95,47,0,2578,2579,3,123,61,0,2579,608,1,0,0,0,2580,2581,3,125,62,0,2581,2582,3,87,43,0,2582,2583,3,89,44,0,2583,2584,3,109,54,0,2584,2585,3,95,47,0,2585,2586,3,123,61,0,2586,2587,3,87,43,0,2587,2588,3,111,55,0,2588,2589,3,117,58,0,2589,2590,3,109,54,0,2590,2591,3,95,47,0,2591,610,1,0,0,0,2592,2593,3,125,62,0,2593,2594,3,87,43,0,2594,2595,3,89,44,0,2595,2596,3,109,54,0,2596,2597,3,95,47,0,2597,2598,3,123,61,0,2598,2599,3,125,62,0,2599,2600,3,115,57,0,2600,2601,3,121,60,0,2601,2602,3,95,47,0,2602,612,1,0,0,0,2603,2604,3,125,62,0,2604,2605,3,87,43,0,2605,2606,3,99,49,0,2606,2607,3,99,49,0,2607,2608,3,95,47,0,2608,2609,3,93,46,0,2609,614,1,0,0,0,2610,2611,3,125,62,0,2611,2612,3,95,47,0,2612,2613,3,111,55,0,2613,2614,3,117,58,0,2614,616,1,0,0,0,2615,2616,3,125,62,0,2616,2617,3,95,47,0,2617,2618,3,111,55,0,2618,2619,3,117,58,0,2619,2620,3,115,57,0,2620,2621,3,121,60,0,2621,2622,3,87,43,0,2622,2623,3,121,60,0,2623,2624,3,135,67,0,2624,618,1,0,0,0,2625,2626,3,125,62,0,2626,2627,3,101,50,0,2627,2628,3,95,47,0,2628,2629,3,113,56,0,2629,620,1,0,0,0,2630,2631,3,125,62,0,2631,2632,3,103,51,0,2632,2633,3,95,47,0,2633,2634,3,123,61,0,2634,622,1,0,0,0,2635,2636,3,125,62,0,2636,2637,3,115,57,0,2637,624,1,0,0,0,2638,2639,3,125,62,0,2639,2640,3,115,57,0,2640,2641,3,117,58,0,2641,2642,3,103,51,0,2642,2643,3,91,45,0,2643,626,1,0,0,0,2644,2645,3,125,62,0,2645,2646,3,121,60,0,2646,2647,3,87,43,0,2647,2648,3,113,56,0,2648,2649,3,123,61,0,2649,2650,3,87,43,0,2650,2651,3,91,45,0,2651,2652,3,125,62,0,2652,2653,3,103,51,0,2653,2654,3,115,57,0,2654,2655,3,113,56,0,2655,628,1,0,0,0,2656,2657,3,125,62,0,2657,2658,3,121,60,0,2658,2659,3,103,51,0,2659,2660,3,99,49,0,2660,2661,3,99,49,0,2661,2662,3,95,47,0,2662,2663,3,121,60,0,2663,630,1,0,0,0,2664,2665,3,125,62,0,2665,2666,3,121,60,0,2666,2667,3,127,63,0,2667,2668,3,95,47,0,2668,632,1,0,0,0,2669,2670,3,125,62,0,2670,2671,3,127,63,0,2671,2672,3,117,58,0,2672,2673,3,109,54,0,2673,2674,3,95,47,0,2674,634,1,0,0,0,2675,2676,3,125,62,0,2676,2677,3,135,67,0,2677,2678,3,117,58,0,2678,2679,3,95,47,0,2679,636,1,0,0,0,2680,2681,3,127,63,0,2681,2682,3,113,56,0,2682,2683,3,89,44,0,2683,2684,3,115,57,0,2684,2685,3,127,63,0,2685,2686,3,113,56,0,2686,2687,3,93,46,0,2687,2688,3,95,47,0,2688,2689,3,93,46,0,2689,638,1,0,0,0,2690,2691,3,127,63,0,2691,2692,3,113,56,0,2692,2693,3,91,45,0,2693,2694,3,115,57,0,2694,2695,3,113,56,0,2695,2696,3,93,46,0,2696,2697,3,103,51,0,2697,2698,3,125,62,0,2698,2699,3,103,51,0,2699,2700,3,115,57,0,2700,2701,3,113,56,0,2701,2702,3,87,43,0,2702,2703,3,109,54,0,2703,640,1,0,0,0,2704,2705,3,127,63,0,2705,2706,3,113,56,0,2706,2707,3,103,51,0,2707,2708,3,115,57,0,2708,2709,3,113,56,0,2709,642,1,0,0,0,2710,2711,3,127,63,0,2711,2712,3,113,56,0,2712,2713,3,103,51,0,2713,2714,3,119,59,0,2714,2715,3,127,63,0,2715,2716,3,95,47,0,2716,644,1,0,0,0,2717,2718,3,127,63,0,2718,2719,3,113,56,0,2719,2720,3,107,53,0,2720,2721,3,113,56,0,2721,2722,3,115,57,0,2722,2723,3,131,65,0,2723,2724,3,113,56,0,2724,646,1,0,0,0,2725,2726,3,127,63,0,2726,2727,3,113,56,0,2727,2728,3,111,55,0,2728,2729,3,87,43,0,2729,2730,3,125,62,0,2730,2731,3,91,45,0,2731,2732,3,101,50,0,2732,2733,3,95,47,0,2733,2734,3,93,46,0,2734,648,1,0,0,0,2735,2736,3,127,63,0,2736,2737,3,117,58,0,2737,2738,3,93,46,0,2738,2739,3,87,43,0,2739,2740,3,125,62,0,2740,2741,3,95,47,0,2741,650,1,0,0,0,2742,2743,3,127,63,0,2743,2744,3,117,58,0,2744,2745,3,123,61,0,2745,2746,3,95,47,0,2746,2747,3,121,60,0,2747,2748,3,125,62,0,2748,652,1,0,0,0,2749,2750,3,127,63,0,2750,2751,3,123,61,0,2751,2752,3,95,47,0,2752,654,1,0,0,0,2753,2754,3,127,63,0,2754,2755,3,123,61,0,2755,2756,3,95,47,0,2756,2757,3,121,60,0,2757,656,1,0,0,0,2758,2759,3,127,63,0,2759,2760,3,123,61,0,2760,2761,3,103,51,0,2761,2762,3,113,56,0,2762,2763,3,99,49,0,2763,658,1,0,0,0,2764,2765,3,129,64,0,2765,2766,3,87,43,0,2766,2767,3,91,45,0,2767,2768,3,127,63,0,2768,2769,3,127,63,0,2769,2770,3,111,55,0,2770,660,1,0,0,0,2771,2772,3,129,64,0,2772,2773,3,87,43,0,2773,2774,3,109,54,0,2774,2775,3,127,63,0,2775,2776,3,95,47,0,2776,2777,3,123,61,0,2777,662,1,0,0,0,2778,2779,3,129,64,0,2779,2780,3,87,43,0,2780,2781,3,121,60,0,2781,2782,3,103,51,0,2782,2783,3,87,43,0,2783,2784,3,113,56,0,2784,2785,3,125,62,0,2785,664,1,0,0,0,2786,2787,3,129,64,0,2787,2788,3,103,51,0,2788,2789,3,95,47,0,2789,2790,3,131,65,0,2790,666,1,0,0,0,2791,2792,3,129,64,0,2792,2793,3,103,51,0,2793,2794,3,121,60,0,2794,2795,3,125,62,0,2795,2796,3,127,63,0,2796,2797,3,87,43,0,2797,2798,3,109,54,0,2798,668,1,0,0,0,2799,2800,3,131,65,0,2800,2801,3,101,50,0,2801,2802,3,95,47,0,2802,2803,3,113,56,0,2803,670,1,0,0,0,2804,2805,3,131,65,0,2805,2806,3,101,50,0,2806,2807,3,95,47,0,2807,2808,3,121,60,0,2808,2809,3,95,47,0,2809,672,1,0,0,0,2810,2811,3,131,65,0,2811,2812,3,103,51,0,2812,2813,3,113,56,0,2813,2814,3,93,46,0,2814,2815,3,115,57,0,2815,2816,3,131,65,0,2816,674,1,0,0,0,2817,2818,3,131,65,0,2818,2819,3,103,51,0,2819,2820,3,125,62,0,2820,2821,3,101,50,0,2821,676,1,0,0,0,2822,2823,3,131,65,0,2823,2824,3,103,51,0,2824,2825,3,125,62,0,2825,2826,3,101,50,0,2826,2827,3,115,57,0,2827,2828,3,127,63,0,2828,2829,3,125,62,0,2829,678,1,0,0,0,2830,2831,3,131,65,0,2831,2832,3,121,60,0,2832,2833,3,87,43,0,2833,2834,3,117,58,0,2834,2835,3,117,58,0,2835,2836,3,95,47,0,2836,2837,3,121,60,0,2837,680,1,0,0,0,2838,2839,3,133,66,0,2839,2840,3,115,57,0,2840,2841,3,121,60,0,2841,682,1,0,0,0,2842,2847,8,26,0,0,2843,2844,3,43,21,0,2844,2845,9,0,0,0,2845,2847,1,0,0,0,2846,2842,1,0,0,0,2846,2843,1,0,0,0,2847,684,1,0,0,0,2848,2853,8,27,0,0,2849,2850,3,43,21,0,2850,2851,9,0,0,0,2851,2853,1,0,0,0,2852,2848,1,0,0,0,2852,2849,1,0,0,0,2853,686,1,0,0,0,2854,2858,3,69,34,0,2855,2857,3,683,341,0,2856,2855,1,0,0,0,2857,2860,1,0,0,0,2858,2856,1,0,0,0,2858,2859,1,0,0,0,2859,2861,1,0,0,0,2860,2858,1,0,0,0,2861,2862,3,69,34,0,2862,688,1,0,0,0,2863,2867,3,67,33,0,2864,2866,3,685,342,0,2865,2864,1,0,0,0,2866,2869,1,0,0,0,2867,2865,1,0,0,0,2867,2868,1,0,0,0,2868,2870,1,0,0,0,2869,2867,1,0,0,0,2870,2871,3,67,33,0,2871,690,1,0,0,0,2872,2876,3,63,31,0,2873,2875,9,0,0,0,2874,2873,1,0,0,0,2875,2878,1,0,0,0,2876,2877,1,0,0,0,2876,2874,1,0,0,0,2877,2879,1,0,0,0,2878,2876,1,0,0,0,2879,2880,3,63,31,0,2880,2882,1,0,0,0,2881,2872,1,0,0,0,2882,2883,1,0,0,0,2883,2881,1,0,0,0,2883,2884,1,0,0,0,2884,2886,1,0,0,0,2885,2887,3,61,30,0,2886,2885,1,0,0,0,2886,2887,1,0,0,0,2887,692,1,0,0,0,2888,2892,3,687,343,0,2889,2892,3,689,344,0,2890,2892,3,691,345,0,2891,2888,1,0,0,0,2891,2889,1,0,0,0,2891,2890,1,0,0,0,2892,2903,1,0,0,0,2893,2904,3,123,61,0,2894,2904,3,127,63,0,2895,2904,3,135,67,0,2896,2904,3,105,52,0,2897,2901,3,117,58,0,2898,2902,3,125,62,0,2899,2902,3,89,44,0,2900,2902,3,129,64,0,2901,2898,1,0,0,0,2901,2899,1,0,0,0,2901,2900,1,0,0,0,2901,2902,1,0,0,0,2902,2904,1,0,0,0,2903,2893,1,0,0,0,2903,2894,1,0,0,0,2903,2895,1,0,0,0,2903,2896,1,0,0,0,2903,2897,1,0,0,0,2903,2904,1,0,0,0,2904,694,1,0,0,0,2905,2910,7,28,0,0,2906,2909,7,28,0,0,2907,2909,3,701,350,0,2908,2906,1,0,0,0,2908,2907,1,0,0,0,2909,2912,1,0,0,0,2910,2908,1,0,0,0,2910,2911,1,0,0,0,2911,696,1,0,0,0,2912,2910,1,0,0,0,2913,2914,5,96,0,0,2914,2919,5,96,0,0,2915,2916,5,92,0,0,2916,2919,5,96,0,0,2917,2919,8,29,0,0,2918,2913,1,0,0,0,2918,2915,1,0,0,0,2918,2917,1,0,0,0,2919,698,1,0,0,0,2920,2924,3,71,35,0,2921,2923,3,697,348,0,2922,2921,1,0,0,0,2923,2926,1,0,0,0,2924,2922,1,0,0,0,2924,2925,1,0,0,0,2925,2927,1,0,0,0,2926,2924,1,0,0,0,2927,2928,3,71,35,0,2928,700,1,0,0,0,2929,2930,2,48,57,0,2930,702,1,0,0,0,2931,2932,7,30,0,0,2932,704,1,0,0,0,2933,2934,5,48,0,0,2934,2936,3,133,66,0,2935,2937,3,703,351,0,2936,2935,1,0,0,0,2937,2938,1,0,0,0,2938,2936,1,0,0,0,2938,2939,1,0,0,0,2939,706,1,0,0,0,2940,2941,5,48,0,0,2941,2943,3,115,57,0,2942,2944,2,48,56,0,2943,2942,1,0,0,0,2944,2945,1,0,0,0,2945,2943,1,0,0,0,2945,2946,1,0,0,0,2946,708,1,0,0,0,2947,2948,5,48,0,0,2948,2950,3,89,44,0,2949,2951,2,48,49,0,2950,2949,1,0,0,0,2951,2952,1,0,0,0,2952,2950,1,0,0,0,2952,2953,1,0,0,0,2953,710,1,0,0,0,2954,2956,3,701,350,0,2955,2954,1,0,0,0,2956,2957,1,0,0,0,2957,2955,1,0,0,0,2957,2958,1,0,0,0,2958,712,1,0,0,0,2959,2964,3,711,355,0,2960,2964,3,705,352,0,2961,2964,3,707,353,0,2962,2964,3,709,354,0,2963,2959,1,0,0,0,2963,2960,1,0,0,0,2963,2961,1,0,0,0,2963,2962,1,0,0,0,2964,714,1,0,0,0,2965,2968,3,713,356,0,2966,2969,3,117,58,0,2967,2969,3,127,63,0,2968,2966,1,0,0,0,2968,2967,1,0,0,0,2968,2969,1,0,0,0,2969,2976,1,0,0,0,2970,2977,3,109,54,0,2971,2977,3,123,61,0,2972,2977,3,125,62,0,2973,2977,3,103,51,0,2974,2977,3,89,44,0,2975,2977,3,113,56,0,2976,2970,1,0,0,0,2976,2971,1,0,0,0,2976,2972,1,0,0,0,2976,2973,1,0,0,0,2976,2974,1,0,0,0,2976,2975,1,0,0,0,2976,2977,1,0,0,0,2977,716,1,0,0,0,2978,2981,3,95,47,0,2979,2982,3,33,16,0,2980,2982,3,35,17,0,2981,2979,1,0,0,0,2981,2980,1,0,0,0,2981,2982,1,0,0,0,2982,2983,1,0,0,0,2983,2984,3,711,355,0,2984,718,1,0,0,0,2985,2986,3,711,355,0,2986,2990,3,49,24,0,2987,2989,3,701,350,0,2988,2987,1,0,0,0,2989,2992,1,0,0,0,2990,2988,1,0,0,0,2990,2991,1,0,0,0,2991,2994,1,0,0,0,2992,2990,1,0,0,0,2993,2995,3,717,358,0,2994,2993,1,0,0,0,2994,2995,1,0,0,0,2995,3e3,1,0,0,0,2996,2997,3,711,355,0,2997,2998,3,717,358,0,2998,3e3,1,0,0,0,2999,2985,1,0,0,0,2999,2996,1,0,0,0,3e3,3009,1,0,0,0,3001,3010,3,97,48,0,3002,3007,3,117,58,0,3003,3004,3,97,48,0,3004,3005,7,31,0,0,3005,3008,1,0,0,0,3006,3008,3,113,56,0,3007,3003,1,0,0,0,3007,3006,1,0,0,0,3007,3008,1,0,0,0,3008,3010,1,0,0,0,3009,3001,1,0,0,0,3009,3002,1,0,0,0,3009,3010,1,0,0,0,3010,720,1,0,0,0,3011,3012,3,133,66,0,3012,3014,3,69,34,0,3013,3015,3,703,351,0,3014,3013,1,0,0,0,3015,3016,1,0,0,0,3016,3014,1,0,0,0,3016,3017,1,0,0,0,3017,3018,1,0,0,0,3018,3019,3,69,34,0,3019,722,1,0,0,0,3020,3021,5,47,0,0,3021,3022,5,42,0,0,3022,3026,1,0,0,0,3023,3025,9,0,0,0,3024,3023,1,0,0,0,3025,3028,1,0,0,0,3026,3027,1,0,0,0,3026,3024,1,0,0,0,3027,3029,1,0,0,0,3028,3026,1,0,0,0,3029,3030,5,42,0,0,3030,3031,5,47,0,0,3031,724,1,0,0,0,3032,3033,5,45,0,0,3033,3034,5,45,0,0,3034,3038,1,0,0,0,3035,3037,8,32,0,0,3036,3035,1,0,0,0,3037,3040,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,3046,1,0,0,0,3040,3038,1,0,0,0,3041,3043,5,13,0,0,3042,3044,5,10,0,0,3043,3042,1,0,0,0,3043,3044,1,0,0,0,3044,3047,1,0,0,0,3045,3047,7,33,0,0,3046,3041,1,0,0,0,3046,3045,1,0,0,0,3047,726,1,0,0,0,3048,3049,7,34,0,0,3049,3050,1,0,0,0,3050,3051,6,363,0,0,3051,728,1,0,0,0,3052,3055,3,723,361,0,3053,3055,3,725,362,0,3054,3052,1,0,0,0,3054,3053,1,0,0,0,3055,3056,1,0,0,0,3056,3057,6,364,1,0,3057,730,1,0,0,0,34,0,2846,2852,2858,2867,2876,2883,2886,2891,2901,2903,2908,2910,2918,2924,2938,2945,2952,2957,2963,2968,2976,2981,2990,2994,2999,3007,3009,3016,3026,3038,3043,3046,3054,2,0,1,0,6,0,0]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},uG=class t extends we{static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.BACKSLASH=22}static{this.PERCENT=23}static{this.SEMICOLON=24}static{this.DOT=25}static{this.COMMA=26}static{this.LPAREN=27}static{this.RPAREN=28}static{this.QUESTION=29}static{this.COLON=30}static{this.AT=31}static{this.DOUBLE_AT=32}static{this.DOLLAR=33}static{this.QUOTE_DOUBLE=34}static{this.QUOTE_SINGLE=35}static{this.BACKTICK=36}static{this.LBRACE_CURLY=37}static{this.RBRACE_CURLY=38}static{this.CARET=39}static{this.NAMESPACE=40}static{this.ARROW=41}static{this.RBRACE_SQUARE=42}static{this.LBRACE_SQUARE=43}static{this.ABORT=44}static{this.ACTION=45}static{this.ADD=46}static{this.AFTER=47}static{this.ALL=48}static{this.ALTER=49}static{this.ANALYZE=50}static{this.AND=51}static{this.ANSI=52}static{this.ANY=53}static{this.ARRAY=54}static{this.AS=55}static{this.ASC=56}static{this.ASSUME=57}static{this.ASYMMETRIC=58}static{this.ASYNC=59}static{this.ATTACH=60}static{this.ATTRIBUTES=61}static{this.AUTOINCREMENT=62}static{this.AUTOMAP=63}static{this.BEFORE=64}static{this.BEGIN=65}static{this.BERNOULLI=66}static{this.BETWEEN=67}static{this.BITCAST=68}static{this.BY=69}static{this.CALLABLE=70}static{this.CASCADE=71}static{this.CASE=72}static{this.CAST=73}static{this.CHANGEFEED=74}static{this.CHECK=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INDEX=160}static{this.INDEXED=161}static{this.INHERITS=162}static{this.INITIAL=163}static{this.INITIALLY=164}static{this.INNER=165}static{this.INSERT=166}static{this.INSTEAD=167}static{this.INTERSECT=168}static{this.INTO=169}static{this.IS=170}static{this.ISNULL=171}static{this.JOIN=172}static{this.JSON_EXISTS=173}static{this.JSON_QUERY=174}static{this.JSON_VALUE=175}static{this.KEY=176}static{this.LAST=177}static{this.LEFT=178}static{this.LEGACY=179}static{this.LIKE=180}static{this.LIMIT=181}static{this.LIST=182}static{this.LOCAL=183}static{this.MANAGE=184}static{this.MATCH=185}static{this.MATCHES=186}static{this.MATCH_RECOGNIZE=187}static{this.MEASURES=188}static{this.MICROSECONDS=189}static{this.MILLISECONDS=190}static{this.MODIFY=191}static{this.NANOSECONDS=192}static{this.NATURAL=193}static{this.NEXT=194}static{this.NO=195}static{this.NOT=196}static{this.NOTNULL=197}static{this.NULL=198}static{this.NULLS=199}static{this.OBJECT=200}static{this.OF=201}static{this.OFFSET=202}static{this.OMIT=203}static{this.ON=204}static{this.ONE=205}static{this.ONLY=206}static{this.OPTION=207}static{this.OPTIONAL=208}static{this.OR=209}static{this.ORDER=210}static{this.OTHERS=211}static{this.OUTER=212}static{this.OVER=213}static{this.PARALLEL=214}static{this.PARTITION=215}static{this.PASSING=216}static{this.PASSWORD=217}static{this.PAST=218}static{this.PATTERN=219}static{this.PER=220}static{this.PERMUTE=221}static{this.PLAN=222}static{this.PRAGMA=223}static{this.PRECEDING=224}static{this.PRESORT=225}static{this.PRIMARY=226}static{this.PRIVILEGES=227}static{this.PROCESS=228}static{this.QUEUE=229}static{this.RAISE=230}static{this.RANGE=231}static{this.REDUCE=232}static{this.REFERENCES=233}static{this.REGEXP=234}static{this.REINDEX=235}static{this.RELEASE=236}static{this.REMOVE=237}static{this.RENAME=238}static{this.REPEATABLE=239}static{this.REPLACE=240}static{this.REPLICATION=241}static{this.RESET=242}static{this.RESOURCE=243}static{this.RESPECT=244}static{this.RESTRICT=245}static{this.RESULT=246}static{this.RETURN=247}static{this.RETURNING=248}static{this.REVERT=249}static{this.REVOKE=250}static{this.RIGHT=251}static{this.RLIKE=252}static{this.ROLLBACK=253}static{this.ROLLUP=254}static{this.ROW=255}static{this.ROWS=256}static{this.SAMPLE=257}static{this.SAVEPOINT=258}static{this.SCHEMA=259}static{this.SECONDS=260}static{this.SEEK=261}static{this.SELECT=262}static{this.SEMI=263}static{this.SET=264}static{this.SETS=265}static{this.SHOW=266}static{this.SKIP_RULE=267}static{this.SOURCE=268}static{this.STREAM=269}static{this.STRUCT=270}static{this.SUBQUERY=271}static{this.SUBSET=272}static{this.SYMBOLS=273}static{this.SYMMETRIC=274}static{this.SYNC=275}static{this.SYSTEM=276}static{this.TABLE=277}static{this.TABLES=278}static{this.TABLESAMPLE=279}static{this.TABLESTORE=280}static{this.TAGGED=281}static{this.TEMP=282}static{this.TEMPORARY=283}static{this.THEN=284}static{this.TIES=285}static{this.TO=286}static{this.TOPIC=287}static{this.TRANSACTION=288}static{this.TRIGGER=289}static{this.TRUE=290}static{this.TUPLE=291}static{this.TYPE=292}static{this.UNBOUNDED=293}static{this.UNCONDITIONAL=294}static{this.UNION=295}static{this.UNIQUE=296}static{this.UNKNOWN=297}static{this.UNMATCHED=298}static{this.UPDATE=299}static{this.UPSERT=300}static{this.USE=301}static{this.USER=302}static{this.USING=303}static{this.VACUUM=304}static{this.VALUES=305}static{this.VARIANT=306}static{this.VIEW=307}static{this.VIRTUAL=308}static{this.WHEN=309}static{this.WHERE=310}static{this.WINDOW=311}static{this.WITH=312}static{this.WITHOUT=313}static{this.WRAPPER=314}static{this.XOR=315}static{this.STRING_VALUE=316}static{this.ID_PLAIN=317}static{this.ID_QUOTED=318}static{this.DIGITS=319}static{this.INTEGER_VALUE=320}static{this.REAL=321}static{this.BLOB=322}static{this.WS=323}static{this.COMMENT=324}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_table_inherits=211}static{this.RULE_table_partition_by=212}static{this.RULE_with_table_settings=213}static{this.RULE_table_tablestore=214}static{this.RULE_table_settings_entry=215}static{this.RULE_table_as_source=216}static{this.RULE_alter_table_stmt=217}static{this.RULE_alter_table_action=218}static{this.RULE_alter_external_table_stmt=219}static{this.RULE_alter_external_table_action=220}static{this.RULE_alter_table_store_stmt=221}static{this.RULE_alter_table_store_action=222}static{this.RULE_alter_table_add_column=223}static{this.RULE_alter_table_drop_column=224}static{this.RULE_alter_table_alter_column=225}static{this.RULE_alter_table_add_column_family=226}static{this.RULE_alter_table_alter_column_family=227}static{this.RULE_alter_table_set_table_setting_uncompat=228}static{this.RULE_alter_table_set_table_setting_compat=229}static{this.RULE_alter_table_reset_table_setting=230}static{this.RULE_alter_table_add_index=231}static{this.RULE_alter_table_drop_index=232}static{this.RULE_alter_table_rename_to=233}static{this.RULE_alter_table_rename_index_to=234}static{this.RULE_alter_table_add_changefeed=235}static{this.RULE_alter_table_alter_changefeed=236}static{this.RULE_alter_table_drop_changefeed=237}static{this.RULE_column_schema=238}static{this.RULE_family_relation=239}static{this.RULE_opt_column_constraints=240}static{this.RULE_column_order_by_specification=241}static{this.RULE_table_constraint=242}static{this.RULE_table_index=243}static{this.RULE_table_index_type=244}static{this.RULE_global_index=245}static{this.RULE_local_index=246}static{this.RULE_changefeed=247}static{this.RULE_changefeed_settings=248}static{this.RULE_changefeed_settings_entry=249}static{this.RULE_changefeed_setting_value=250}static{this.RULE_changefeed_alter_settings=251}static{this.RULE_alter_table_setting_entry=252}static{this.RULE_table_setting_value=253}static{this.RULE_family_entry=254}static{this.RULE_family_settings=255}static{this.RULE_family_settings_entry=256}static{this.RULE_family_setting_value=257}static{this.RULE_split_boundaries=258}static{this.RULE_literal_value_list=259}static{this.RULE_drop_table_stmt=260}static{this.RULE_create_user_stmt=261}static{this.RULE_alter_user_stmt=262}static{this.RULE_create_group_stmt=263}static{this.RULE_alter_group_stmt=264}static{this.RULE_drop_role_stmt=265}static{this.RULE_role_name=266}static{this.RULE_create_user_option=267}static{this.RULE_grant_permissions_stmt=268}static{this.RULE_revoke_permissions_stmt=269}static{this.RULE_permission_id=270}static{this.RULE_permission_name=271}static{this.RULE_permission_name_target=272}static{this.RULE_create_replication_stmt=273}static{this.RULE_replication_target=274}static{this.RULE_replication_settings=275}static{this.RULE_replication_settings_entry=276}static{this.RULE_alter_replication_stmt=277}static{this.RULE_alter_replication_action=278}static{this.RULE_alter_replication_set_setting=279}static{this.RULE_drop_replication_stmt=280}static{this.RULE_action_or_subquery_args=281}static{this.RULE_define_action_or_subquery_stmt=282}static{this.RULE_define_action_or_subquery_body=283}static{this.RULE_if_stmt=284}static{this.RULE_for_stmt=285}static{this.RULE_table_ref=286}static{this.RULE_table_key=287}static{this.RULE_table_arg=288}static{this.RULE_table_hints=289}static{this.RULE_table_hint=290}static{this.RULE_object_ref=291}static{this.RULE_simple_table_ref_core=292}static{this.RULE_simple_table_ref=293}static{this.RULE_into_simple_table_ref=294}static{this.RULE_delete_stmt=295}static{this.RULE_update_stmt=296}static{this.RULE_set_clause_choice=297}static{this.RULE_set_clause_list=298}static{this.RULE_set_clause=299}static{this.RULE_set_target=300}static{this.RULE_multiple_column_assignment=301}static{this.RULE_set_target_list=302}static{this.RULE_create_topic_stmt=303}static{this.RULE_create_topic_entries=304}static{this.RULE_create_topic_entry=305}static{this.RULE_with_topic_settings=306}static{this.RULE_alter_topic_stmt=307}static{this.RULE_alter_topic_action=308}static{this.RULE_alter_topic_add_consumer=309}static{this.RULE_topic_create_consumer_entry=310}static{this.RULE_alter_topic_alter_consumer=311}static{this.RULE_alter_topic_alter_consumer_entry=312}static{this.RULE_alter_topic_drop_consumer=313}static{this.RULE_topic_alter_consumer_set=314}static{this.RULE_topic_alter_consumer_reset=315}static{this.RULE_alter_topic_set_settings=316}static{this.RULE_alter_topic_reset_settings=317}static{this.RULE_drop_topic_stmt=318}static{this.RULE_topic_settings=319}static{this.RULE_topic_settings_entry=320}static{this.RULE_topic_setting_value=321}static{this.RULE_topic_consumer_with_settings=322}static{this.RULE_topic_consumer_settings=323}static{this.RULE_topic_consumer_settings_entry=324}static{this.RULE_topic_consumer_setting_value=325}static{this.RULE_topic_ref=326}static{this.RULE_topic_consumer_ref=327}static{this.RULE_null_treatment=328}static{this.RULE_filter_clause=329}static{this.RULE_window_name_or_specification=330}static{this.RULE_window_name=331}static{this.RULE_window_clause=332}static{this.RULE_window_definition_list=333}static{this.RULE_window_definition=334}static{this.RULE_new_window_name=335}static{this.RULE_window_specification=336}static{this.RULE_window_specification_details=337}static{this.RULE_existing_window_name=338}static{this.RULE_window_partition_clause=339}static{this.RULE_window_order_clause=340}static{this.RULE_window_frame_clause=341}static{this.RULE_window_frame_units=342}static{this.RULE_window_frame_extent=343}static{this.RULE_window_frame_between=344}static{this.RULE_window_frame_bound=345}static{this.RULE_window_frame_exclusion=346}static{this.RULE_use_stmt=347}static{this.RULE_subselect_stmt=348}static{this.RULE_named_nodes_stmt=349}static{this.RULE_commit_stmt=350}static{this.RULE_rollback_stmt=351}static{this.RULE_identifier=352}static{this.RULE_id=353}static{this.RULE_id_schema=354}static{this.RULE_id_expr=355}static{this.RULE_id_expr_in=356}static{this.RULE_id_window=357}static{this.RULE_id_table=358}static{this.RULE_id_without=359}static{this.RULE_id_hint=360}static{this.RULE_id_as_compat=361}static{this.RULE_an_id=362}static{this.RULE_an_id_or_type=363}static{this.RULE_an_id_schema=364}static{this.RULE_an_id_expr=365}static{this.RULE_an_id_expr_in=366}static{this.RULE_an_id_window=367}static{this.RULE_an_id_table=368}static{this.RULE_an_id_without=369}static{this.RULE_an_id_hint=370}static{this.RULE_an_id_pure=371}static{this.RULE_an_id_as_compat=372}static{this.RULE_view_name=373}static{this.RULE_opt_id_prefix=374}static{this.RULE_cluster_expr=375}static{this.RULE_id_or_type=376}static{this.RULE_opt_id_prefix_or_type=377}static{this.RULE_id_or_at=378}static{this.RULE_id_table_or_type=379}static{this.RULE_id_table_or_at=380}static{this.RULE_keyword=381}static{this.RULE_keyword_expr_uncompat=382}static{this.RULE_keyword_table_uncompat=383}static{this.RULE_keyword_select_uncompat=384}static{this.RULE_keyword_alter_uncompat=385}static{this.RULE_keyword_in_uncompat=386}static{this.RULE_keyword_window_uncompat=387}static{this.RULE_keyword_hint_uncompat=388}static{this.RULE_keyword_as_compat=389}static{this.RULE_keyword_compat=390}static{this.RULE_type_id=391}static{this.RULE_bool_value=392}static{this.RULE_real=393}static{this.RULE_integer=394}static{this.RULE_sql_query_yq=395}static{this.RULE_sql_stmt_list_yq=396}static{this.RULE_sql_stmt_yq=397}static{this.RULE_sql_stmt_core_yq=398}static{this.RULE_replication_name=399}static{this.RULE_where_expr=400}static{this.RULE_from_stmt=401}static{this.RULE_alter_table_for_autocomplete=402}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","''","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'\"'","'''","'`'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","BACKSLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","AT","DOUBLE_AT","DOLLAR","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","SKIP_RULE","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","create_user_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr","from_stmt","alter_table_for_autocomplete"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new Ge(this,t,e)}constructor(e){super(e),this.interpreter=new Re(this,t._ATN,t.decisionsToDFA,new Ae)}sql_query(){let e=new NG(this.context,this.state);this.enterRule(e,0,t.RULE_sql_query);try{switch(this.state=811,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(e,1),this.state=806,this.sql_stmt_list();break;case 2:this.enterOuterAlt(e,2),this.state=807,this.match(t.PRAGMA),this.state=808,this.match(t.ANSI),this.state=809,this.match(t.DIGITS),this.state=810,this.ansi_sql_stmt_list()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt_list(){let e,s=new LG(this.context,this.state);this.enterRule(s,2,t.RULE_sql_stmt_list);try{let a;for(this.enterOuterAlt(s,1),this.state=816,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=813,this.match(t.SEMICOLON),this.state=818,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=819,this.sql_stmt(),this.state=828,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;){if(1===a){this.state=821,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=820,this.match(t.SEMICOLON),this.state=823,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(24===e);this.state=825,this.sql_stmt()}this.state=830,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=834,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=831,this.match(t.SEMICOLON),this.state=836,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=837,this.match(t.EOF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}ansi_sql_stmt_list(){let e,s=new CG(this.context,this.state);this.enterRule(s,4,t.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(s,1),this.state=842,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=839,this.match(t.SEMICOLON),this.state=844,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=845,this.match(t.EOF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lambda_body(){let e,s=new _G(this.context,this.state);this.enterRule(s,6,t.RULE_lambda_body);try{for(this.enterOuterAlt(s,1),this.state=850,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=847,this.match(t.SEMICOLON),this.state=852,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=861,this.errorHandler.sync(this),e=this.tokenStream.LA(1);33===e||158===e;){this.state=853,this.lambda_stmt(),this.state=855,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=854,this.match(t.SEMICOLON),this.state=857,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(24===e);this.state=863,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}for(this.state=864,this.match(t.RETURN),this.state=865,this.expr(),this.state=869,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=866,this.match(t.SEMICOLON),this.state=871,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lambda_stmt(){let e=new PG(this.context,this.state);this.enterRule(e,8,t.RULE_lambda_stmt);try{switch(this.state=874,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.enterOuterAlt(e,1),this.state=872,this.named_nodes_stmt();break;case t.IMPORT:this.enterOuterAlt(e,2),this.state=873,this.import_stmt();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt(){let e,s=new MG(this.context,this.state);this.enterRule(s,10,t.RULE_sql_stmt);try{this.enterOuterAlt(s,1),this.state=881,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=876,this.match(t.EXPLAIN),this.state=879,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1===e&&(this.state=877,this.match(t.QUERY),this.state=878,this.match(t.PLAN))),this.state=883,this.sql_stmt_core()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sql_stmt_core(){let e=new dG(this.context,this.state);this.enterRule(e,12,t.RULE_sql_stmt_core);try{switch(this.state=929,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(e,1),this.state=885,this.pragma_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=886,this.select_stmt();break;case 3:this.enterOuterAlt(e,3),this.state=887,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(e,4),this.state=888,this.create_table_stmt();break;case 5:this.enterOuterAlt(e,5),this.state=889,this.drop_table_stmt();break;case 6:this.enterOuterAlt(e,6),this.state=890,this.use_stmt();break;case 7:this.enterOuterAlt(e,7),this.state=891,this.into_table_stmt();break;case 8:this.enterOuterAlt(e,8),this.state=892,this.commit_stmt();break;case 9:this.enterOuterAlt(e,9),this.state=893,this.update_stmt();break;case 10:this.enterOuterAlt(e,10),this.state=894,this.delete_stmt();break;case 11:this.enterOuterAlt(e,11),this.state=895,this.rollback_stmt();break;case 12:this.enterOuterAlt(e,12),this.state=896,this.declare_stmt();break;case 13:this.enterOuterAlt(e,13),this.state=897,this.import_stmt();break;case 14:this.enterOuterAlt(e,14),this.state=898,this.export_stmt();break;case 15:this.enterOuterAlt(e,15),this.state=899,this.alter_table_stmt();break;case 16:this.enterOuterAlt(e,16),this.state=900,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(e,17),this.state=901,this.do_stmt();break;case 18:this.enterOuterAlt(e,18),this.state=902,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(e,19),this.state=903,this.if_stmt();break;case 20:this.enterOuterAlt(e,20),this.state=904,this.for_stmt();break;case 21:this.enterOuterAlt(e,21),this.state=905,this.values_stmt();break;case 22:this.enterOuterAlt(e,22),this.state=906,this.create_user_stmt();break;case 23:this.enterOuterAlt(e,23),this.state=907,this.alter_user_stmt();break;case 24:this.enterOuterAlt(e,24),this.state=908,this.create_group_stmt();break;case 25:this.enterOuterAlt(e,25),this.state=909,this.alter_group_stmt();break;case 26:this.enterOuterAlt(e,26),this.state=910,this.drop_role_stmt();break;case 27:this.enterOuterAlt(e,27),this.state=911,this.create_object_stmt();break;case 28:this.enterOuterAlt(e,28),this.state=912,this.alter_object_stmt();break;case 29:this.enterOuterAlt(e,29),this.state=913,this.drop_object_stmt();break;case 30:this.enterOuterAlt(e,30),this.state=914,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(e,31),this.state=915,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(e,32),this.state=916,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(e,33),this.state=917,this.create_replication_stmt();break;case 34:this.enterOuterAlt(e,34),this.state=918,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(e,35),this.state=919,this.create_topic_stmt();break;case 36:this.enterOuterAlt(e,36),this.state=920,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(e,37),this.state=921,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(e,38),this.state=922,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(e,39),this.state=923,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(e,40),this.state=924,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(e,41),this.state=925,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(e,42),this.state=926,this.create_view_stmt();break;case 43:this.enterOuterAlt(e,43),this.state=927,this.drop_view_stmt();break;case 44:this.enterOuterAlt(e,44),this.state=928,this.alter_replication_stmt()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expr(){let e,s=new UG(this.context,this.state);this.enterRule(s,14,t.RULE_expr);try{switch(this.state=940,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(s,1),this.state=931,this.or_subexpr(),this.state=936,this.errorHandler.sync(this),e=this.tokenStream.LA(1);209===e;)this.state=932,this.match(t.OR),this.state=933,this.or_subexpr(),this.state=938,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;case 2:this.enterOuterAlt(s,2),this.state=939,this.type_name_composite()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}or_subexpr(){let e,s=new mG(this.context,this.state);this.enterRule(s,16,t.RULE_or_subexpr);try{for(this.enterOuterAlt(s,1),this.state=942,this.and_subexpr(),this.state=947,this.errorHandler.sync(this),e=this.tokenStream.LA(1);51===e;)this.state=943,this.match(t.AND),this.state=944,this.and_subexpr(),this.state=949,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}and_subexpr(){let e,s=new DG(this.context,this.state);this.enterRule(s,18,t.RULE_and_subexpr);try{for(this.enterOuterAlt(s,1),this.state=950,this.xor_subexpr(),this.state=955,this.errorHandler.sync(this),e=this.tokenStream.LA(1);315===e;)this.state=951,this.match(t.XOR),this.state=952,this.xor_subexpr(),this.state=957,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}xor_subexpr(){let e,s=new pG(this.context,this.state);this.enterRule(s,20,t.RULE_xor_subexpr);try{this.enterOuterAlt(s,1),this.state=958,this.eq_subexpr(),this.state=960,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(-32&e)&&1<<e&60||67===e||!(e-145&-32)&&1<<e-145&100681729||!(e-180&-32)&&1<<e-180&196641||234===e||252===e)&&(this.state=959,this.cond_expr())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}distinct_from_op(){let e,s=new gG(this.context,this.state);this.enterRule(s,22,t.RULE_distinct_from_op);try{this.enterOuterAlt(s,1),this.state=962,this.match(t.IS),this.state=964,this.errorHandler.sync(this),e=this.tokenStream.LA(1),196===e&&(this.state=963,this.match(t.NOT)),this.state=966,this.match(t.DISTINCT),this.state=967,this.match(t.FROM)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}cond_expr(){let e,s=new xG(this.context,this.state);this.enterRule(s,24,t.RULE_cond_expr);try{switch(this.state=1020,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:this.enterOuterAlt(s,1),this.state=970,this.errorHandler.sync(this),e=this.tokenStream.LA(1),196===e&&(this.state=969,this.match(t.NOT)),this.state=972,this.match_op(),this.state=973,this.eq_subexpr(),this.state=976,this.errorHandler.sync(this),e=this.tokenStream.LA(1),122===e&&(this.state=974,this.match(t.ESCAPE),this.state=975,this.eq_subexpr());break;case 2:if(this.enterOuterAlt(s,2),1===(this.state=979,this.errorHandler.sync(this),e=this.tokenStream.LA(1),196===e&&(this.state=978,this.match(t.NOT)),this.state=981,this.match(t.IN),this.state=983,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=982,this.match(t.COMPACT);this.state=985,this.in_expr();break;case 3:switch(this.enterOuterAlt(s,3),this.state=995,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=986,this.match(t.ISNULL);break;case 2:this.state=987,this.match(t.NOTNULL);break;case 3:this.state=988,this.match(t.IS),this.state=989,this.match(t.NULL);break;case 4:this.state=991,this.errorHandler.sync(this),e=this.tokenStream.LA(1),170===e&&(this.state=990,this.match(t.IS)),this.state=993,this.match(t.NOT),this.state=994,this.match(t.NULL)}break;case 4:if(this.enterOuterAlt(s,4),1===(this.state=998,this.errorHandler.sync(this),e=this.tokenStream.LA(1),196===e&&(this.state=997,this.match(t.NOT)),this.state=1e3,this.match(t.BETWEEN),this.state=1002,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1001,e=this.tokenStream.LA(1),58===e||274===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1004,this.eq_subexpr(),this.state=1005,this.match(t.AND),this.state=1006,this.eq_subexpr();break;case 5:this.enterOuterAlt(s,5),this.state=1016,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{switch(this.state=1013,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUALS:this.state=1008,this.match(t.EQUALS);break;case t.EQUALS2:this.state=1009,this.match(t.EQUALS2);break;case t.NOT_EQUALS:this.state=1010,this.match(t.NOT_EQUALS);break;case t.NOT_EQUALS2:this.state=1011,this.match(t.NOT_EQUALS2);break;case t.IS:this.state=1012,this.distinct_from_op();break;default:throw new he(this)}this.state=1015,this.eq_subexpr(),this.state=1018,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(-32&e)&&1<<e&60||170===e)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}match_op(){let e,s=new kG(this.context,this.state);this.enterRule(s,26,t.RULE_match_op);try{this.enterOuterAlt(s,1),this.state=1022,e=this.tokenStream.LA(1),145===e||156===e||180===e||185===e||234===e||252===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}eq_subexpr(){let e,s=new HG(this.context,this.state);this.enterRule(s,28,t.RULE_eq_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1024,this.neq_subexpr(),this.state=1029,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&960;)this.state=1025,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&960?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1026,this.neq_subexpr(),this.state=1031,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}shift_right(){let e=new GG(this.context,this.state);this.enterRule(e,30,t.RULE_shift_right);try{this.enterOuterAlt(e,1),this.state=1032,this.match(t.GREATER),this.state=1033,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rot_right(){let e=new FG(this.context,this.state);this.enterRule(e,32,t.RULE_rot_right);try{this.enterOuterAlt(e,1),this.state=1035,this.match(t.GREATER),this.state=1036,this.match(t.GREATER),this.state=1037,this.match(t.PIPE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}double_question(){let e=new vG(this.context,this.state);this.enterRule(e,34,t.RULE_double_question);try{this.enterOuterAlt(e,1),this.state=1039,this.match(t.QUESTION),this.state=1040,this.match(t.QUESTION)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}neq_subexpr(){let e,s=new BG(this.context,this.state);this.enterRule(s,36,t.RULE_neq_subexpr);try{let a;for(this.enterOuterAlt(s,1),this.state=1042,this.bit_subexpr(),this.state=1055,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;){if(1===a){switch(this.state=1050,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1043,this.match(t.SHIFT_LEFT);break;case 2:this.state=1044,this.shift_right();break;case 3:this.state=1045,this.match(t.ROT_LEFT);break;case 4:this.state=1046,this.rot_right();break;case 5:this.state=1047,this.match(t.AMPERSAND);break;case 6:this.state=1048,this.match(t.PIPE);break;case 7:this.state=1049,this.match(t.CARET)}this.state=1052,this.bit_subexpr()}this.state=1057,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1066,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1058,this.double_question(),this.state=1059,this.neq_subexpr();break;case 2:this.state=1062,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=1061,this.match(t.QUESTION),this.state=1064,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(29===e)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}bit_subexpr(){let e,s=new yG(this.context,this.state);this.enterRule(s,38,t.RULE_bit_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1068,this.add_subexpr(),this.state=1073,this.errorHandler.sync(this),e=this.tokenStream.LA(1);17===e||18===e;)this.state=1069,e=this.tokenStream.LA(1),17===e||18===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1070,this.add_subexpr(),this.state=1075,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}add_subexpr(){let e,s=new fG(this.context,this.state);this.enterRule(s,40,t.RULE_add_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1076,this.mul_subexpr(),this.state=1081,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&11534336;)this.state=1077,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&11534336?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1078,this.mul_subexpr(),this.state=1083,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}mul_subexpr(){let e,s=new YG(this.context,this.state);this.enterRule(s,42,t.RULE_mul_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1084,this.con_subexpr(),this.state=1089,this.errorHandler.sync(this),e=this.tokenStream.LA(1);14===e;)this.state=1085,this.match(t.DOUBLE_PIPE),this.state=1086,this.con_subexpr(),this.state=1091,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}con_subexpr(){let e=new wG(this.context,this.state);this.enterRule(e,44,t.RULE_con_subexpr);try{switch(this.state=1096,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1092,this.unary_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1093,this.unary_op(),this.state=1094,this.unary_subexpr()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unary_op(){let e,s=new bG(this.context,this.state);this.enterRule(s,46,t.RULE_unary_op);try{this.enterOuterAlt(s,1),this.state=1098,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&917504||196===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}unary_subexpr_suffix(){let e,s=new WG(this.context,this.state);this.enterRule(s,48,t.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(s,1),this.state=1110,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-25&-32)&&1<<e-25&262149;){switch(this.state=1108,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LBRACE_SQUARE:this.state=1100,this.key_expr();break;case t.LPAREN:this.state=1101,this.invoke_expr();break;case t.DOT:switch(this.state=1102,this.match(t.DOT),this.state=1106,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.state=1103,this.bind_parameter();break;case t.DIGITS:this.state=1104,this.match(t.DIGITS);break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1105,this.an_id_or_type();break;default:throw new he(this)}break;default:throw new he(this)}this.state=1112,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}this.state=1115,this.errorHandler.sync(this),e=this.tokenStream.LA(1),76===e&&(this.state=1113,this.match(t.COLLATE),this.state=1114,this.an_id())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}unary_casual_subexpr(){let e=new VG(this.context,this.state);this.enterRule(e,50,t.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(e,1),this.state=1119,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1117,this.id_expr();break;case 2:this.state=1118,this.atom_expr()}this.state=1121,this.unary_subexpr_suffix()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_unary_casual_subexpr(){let e=new XG(this.context,this.state);this.enterRule(e,52,t.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(e,1),this.state=1125,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1123,this.id_expr_in();break;case 2:this.state=1124,this.in_atom_expr()}this.state=1127,this.unary_subexpr_suffix()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unary_subexpr(){let e=new KG(this.context,this.state);this.enterRule(e,54,t.RULE_unary_subexpr);try{switch(this.state=1131,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1129,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1130,this.json_api_expr()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_unary_subexpr(){let e=new QG(this.context,this.state);this.enterRule(e,56,t.RULE_in_unary_subexpr);try{switch(this.state=1135,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1133,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1134,this.json_api_expr()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}list_literal(){let e,s=new JG(this.context,this.state);this.enterRule(s,58,t.RULE_list_literal);try{this.enterOuterAlt(s,1),this.state=1137,this.match(t.LBRACE_SQUARE),this.state=1139,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4030992413||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287)&&(this.state=1138,this.expr_list()),this.state=1142,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1141,this.match(t.COMMA)),this.state=1144,this.match(t.RBRACE_SQUARE)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expr_dict_list(){let e,s=new ZG(this.context,this.state);this.enterRule(s,60,t.RULE_expr_dict_list);try{let a;for(this.enterOuterAlt(s,1),this.state=1146,this.expr(),this.state=1149,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1147,this.match(t.COLON),this.state=1148,this.expr()),this.state=1159,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1151,this.match(t.COMMA),this.state=1152,this.expr(),this.state=1155,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=1153,this.match(t.COLON),this.state=1154,this.expr())),this.state=1161,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}dict_literal(){let e,s=new qG(this.context,this.state);this.enterRule(s,62,t.RULE_dict_literal);try{this.enterOuterAlt(s,1),this.state=1162,this.match(t.LBRACE_CURLY),this.state=1164,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4030992413||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287)&&(this.state=1163,this.expr_dict_list()),this.state=1167,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1166,this.match(t.COMMA)),this.state=1169,this.match(t.RBRACE_CURLY)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expr_struct_list(){let e=new jG(this.context,this.state);this.enterRule(e,64,t.RULE_expr_struct_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1171,this.expr(),this.state=1172,this.match(t.COLON),this.state=1173,this.expr(),this.state=1181,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1174,this.match(t.COMMA),this.state=1175,this.expr(),this.state=1176,this.match(t.COLON),this.state=1177,this.expr()),this.state=1183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_literal(){let e,s=new zG(this.context,this.state);this.enterRule(s,66,t.RULE_struct_literal);try{this.enterOuterAlt(s,1),this.state=1184,this.match(t.STRUCT_OPEN),this.state=1186,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4030992413||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287)&&(this.state=1185,this.expr_struct_list()),this.state=1189,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1188,this.match(t.COMMA)),this.state=1191,this.match(t.STRUCT_CLOSE)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}atom_expr(){let e=new $G(this.context,this.state);this.enterRule(e,68,t.RULE_atom_expr);try{switch(this.state=1210,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1193,this.literal_value();break;case 2:this.enterOuterAlt(e,2),this.state=1194,this.bind_parameter();break;case 3:this.enterOuterAlt(e,3),this.state=1195,this.lambda();break;case 4:this.enterOuterAlt(e,4),this.state=1196,this.cast_expr();break;case 5:this.enterOuterAlt(e,5),this.state=1197,this.exists_expr();break;case 6:this.enterOuterAlt(e,6),this.state=1198,this.case_expr();break;case 7:switch(this.enterOuterAlt(e,7),this.state=1199,this.an_id_or_type(),this.state=1200,this.match(t.NAMESPACE),this.state=1203,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1201,this.id_or_type();break;case t.STRING_VALUE:this.state=1202,this.match(t.STRING_VALUE);break;default:throw new he(this)}break;case 8:this.enterOuterAlt(e,8),this.state=1205,this.value_constructor();break;case 9:this.enterOuterAlt(e,9),this.state=1206,this.bitcast_expr();break;case 10:this.enterOuterAlt(e,10),this.state=1207,this.list_literal();break;case 11:this.enterOuterAlt(e,11),this.state=1208,this.dict_literal();break;case 12:this.enterOuterAlt(e,12),this.state=1209,this.struct_literal()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_atom_expr(){let e=new tF(this.context,this.state);this.enterRule(e,70,t.RULE_in_atom_expr);try{switch(this.state=1232,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1212,this.literal_value();break;case 2:this.enterOuterAlt(e,2),this.state=1213,this.bind_parameter();break;case 3:this.enterOuterAlt(e,3),this.state=1214,this.lambda();break;case 4:this.enterOuterAlt(e,4),this.state=1215,this.cast_expr();break;case 5:this.enterOuterAlt(e,5),this.state=1216,this.case_expr();break;case 6:switch(this.enterOuterAlt(e,6),this.state=1217,this.an_id_or_type(),this.state=1218,this.match(t.NAMESPACE),this.state=1221,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1219,this.id_or_type();break;case t.STRING_VALUE:this.state=1220,this.match(t.STRING_VALUE);break;default:throw new he(this)}break;case 7:this.enterOuterAlt(e,7),this.state=1223,this.match(t.LPAREN),this.state=1224,this.select_stmt(),this.state=1225,this.match(t.RPAREN);break;case 8:this.enterOuterAlt(e,8),this.state=1227,this.value_constructor();break;case 9:this.enterOuterAlt(e,9),this.state=1228,this.bitcast_expr();break;case 10:this.enterOuterAlt(e,10),this.state=1229,this.list_literal();break;case 11:this.enterOuterAlt(e,11),this.state=1230,this.dict_literal();break;case 12:this.enterOuterAlt(e,12),this.state=1231,this.struct_literal()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cast_expr(){let e=new eF(this.context,this.state);this.enterRule(e,72,t.RULE_cast_expr);try{this.enterOuterAlt(e,1),this.state=1234,this.match(t.CAST),this.state=1235,this.match(t.LPAREN),this.state=1236,this.expr(),this.state=1237,this.match(t.AS),this.state=1238,this.type_name_or_bind(),this.state=1239,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bitcast_expr(){let e=new sF(this.context,this.state);this.enterRule(e,74,t.RULE_bitcast_expr);try{this.enterOuterAlt(e,1),this.state=1241,this.match(t.BITCAST),this.state=1242,this.match(t.LPAREN),this.state=1243,this.expr(),this.state=1244,this.match(t.AS),this.state=1245,this.type_name_simple(),this.state=1246,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}exists_expr(){let e=new aF(this.context,this.state);this.enterRule(e,76,t.RULE_exists_expr);try{switch(this.enterOuterAlt(e,1),this.state=1248,this.match(t.EXISTS),this.state=1249,this.match(t.LPAREN),this.state=1252,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.state=1250,this.select_stmt();break;case t.VALUES:this.state=1251,this.values_stmt();break;default:throw new he(this)}this.state=1254,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}case_expr(){let e,s=new iF(this.context,this.state);this.enterRule(s,78,t.RULE_case_expr);try{if(this.enterOuterAlt(s,1),1===(this.state=1256,this.match(t.CASE),this.state=1258,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1257,this.expr();this.state=1261,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=1260,this.when_expr(),this.state=1263,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(309===e);this.state=1267,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1265,this.match(t.ELSE),this.state=1266,this.expr()),this.state=1269,this.match(t.END)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}lambda(){let e,s=new rF(this.context,this.state);this.enterRule(s,80,t.RULE_lambda);try{if(this.enterOuterAlt(s,1),this.state=1271,this.smart_parenthesis(),this.state=1283,this.errorHandler.sync(this),e=this.tokenStream.LA(1),41===e)switch(this.state=1272,this.match(t.ARROW),this.state=1281,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:this.state=1273,this.match(t.LPAREN),this.state=1274,this.expr(),this.state=1275,this.match(t.RPAREN);break;case t.LBRACE_CURLY:this.state=1277,this.match(t.LBRACE_CURLY),this.state=1278,this.lambda_body(),this.state=1279,this.match(t.RBRACE_CURLY);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}in_expr(){let e=new cF(this.context,this.state);this.enterRule(e,82,t.RULE_in_expr);try{this.enterOuterAlt(e,1),this.state=1285,this.in_unary_subexpr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_api_expr(){let e=new nF(this.context,this.state);this.enterRule(e,84,t.RULE_json_api_expr);try{switch(this.state=1290,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.JSON_VALUE:this.enterOuterAlt(e,1),this.state=1287,this.json_value();break;case t.JSON_EXISTS:this.enterOuterAlt(e,2),this.state=1288,this.json_exists();break;case t.JSON_QUERY:this.enterOuterAlt(e,3),this.state=1289,this.json_query();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}jsonpath_spec(){let e=new hF(this.context,this.state);this.enterRule(e,86,t.RULE_jsonpath_spec);try{this.enterOuterAlt(e,1),this.state=1292,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variable_name(){let e=new EF(this.context,this.state);this.enterRule(e,88,t.RULE_json_variable_name);try{switch(this.state=1296,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1294,this.id_expr();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=1295,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variable(){let e=new TF(this.context,this.state);this.enterRule(e,90,t.RULE_json_variable);try{this.enterOuterAlt(e,1),this.state=1298,this.expr(),this.state=1299,this.match(t.AS),this.state=1300,this.json_variable_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variables(){let e,s=new oF(this.context,this.state);this.enterRule(s,92,t.RULE_json_variables);try{for(this.enterOuterAlt(s,1),this.state=1302,this.json_variable(),this.state=1307,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1303,this.match(t.COMMA),this.state=1304,this.json_variable(),this.state=1309,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}json_common_args(){let e,s=new RF(this.context,this.state);this.enterRule(s,94,t.RULE_json_common_args);try{this.enterOuterAlt(s,1),this.state=1310,this.expr(),this.state=1311,this.match(t.COMMA),this.state=1312,this.jsonpath_spec(),this.state=1315,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=1313,this.match(t.PASSING),this.state=1314,this.json_variables())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}json_case_handler(){let e=new AF(this.context,this.state);this.enterRule(e,96,t.RULE_json_case_handler);try{switch(this.state=1321,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ERROR:this.enterOuterAlt(e,1),this.state=1317,this.match(t.ERROR);break;case t.NULL:this.enterOuterAlt(e,2),this.state=1318,this.match(t.NULL);break;case t.DEFAULT:this.enterOuterAlt(e,3),this.state=1319,this.match(t.DEFAULT),this.state=1320,this.expr();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_value(){let e,s=new SF(this.context,this.state);this.enterRule(s,98,t.RULE_json_value);try{for(this.enterOuterAlt(s,1),this.state=1323,this.match(t.JSON_VALUE),this.state=1324,this.match(t.LPAREN),this.state=1325,this.json_common_args(),this.state=1328,this.errorHandler.sync(this),e=this.tokenStream.LA(1),248===e&&(this.state=1326,this.match(t.RETURNING),this.state=1327,this.type_name_simple()),this.state=1336,this.errorHandler.sync(this),e=this.tokenStream.LA(1);98===e||121===e||198===e;)this.state=1330,this.json_case_handler(),this.state=1331,this.match(t.ON),this.state=1332,e=this.tokenStream.LA(1),115===e||121===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1338,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1339,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}json_exists_handler(){let e,s=new lF(this.context,this.state);this.enterRule(s,100,t.RULE_json_exists_handler);try{this.enterOuterAlt(s,1),this.state=1341,e=this.tokenStream.LA(1),121===e||133===e||290===e||297===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1342,this.match(t.ON),this.state=1343,this.match(t.ERROR)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}json_exists(){let e,s=new OF(this.context,this.state);this.enterRule(s,102,t.RULE_json_exists);try{this.enterOuterAlt(s,1),this.state=1345,this.match(t.JSON_EXISTS),this.state=1346,this.match(t.LPAREN),this.state=1347,this.json_common_args(),this.state=1349,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(121===e||133===e||290===e||297===e)&&(this.state=1348,this.json_exists_handler()),this.state=1351,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}json_query_wrapper(){let e,s=new IF(this.context,this.state);this.enterRule(s,104,t.RULE_json_query_wrapper);try{switch(this.state=1364,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITHOUT:this.enterOuterAlt(s,1),this.state=1353,this.match(t.WITHOUT),this.state=1355,this.errorHandler.sync(this),e=this.tokenStream.LA(1),54===e&&(this.state=1354,this.match(t.ARRAY));break;case t.WITH:this.enterOuterAlt(s,2),this.state=1357,this.match(t.WITH),this.state=1359,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||294===e)&&(this.state=1358,e=this.tokenStream.LA(1),81===e||294===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1362,this.errorHandler.sync(this),e=this.tokenStream.LA(1),54===e&&(this.state=1361,this.match(t.ARRAY));break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}json_query_handler(){let e=new uF(this.context,this.state);this.enterRule(e,106,t.RULE_json_query_handler);try{switch(this.state=1372,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1366,this.match(t.ERROR);break;case 2:this.enterOuterAlt(e,2),this.state=1367,this.match(t.NULL);break;case 3:this.enterOuterAlt(e,3),this.state=1368,this.match(t.EMPTY),this.state=1369,this.match(t.ARRAY);break;case 4:this.enterOuterAlt(e,4),this.state=1370,this.match(t.EMPTY),this.state=1371,this.match(t.OBJECT)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_query(){let e,s=new NF(this.context,this.state);this.enterRule(s,108,t.RULE_json_query);try{if(this.enterOuterAlt(s,1),1===(this.state=1374,this.match(t.JSON_QUERY),this.state=1375,this.match(t.LPAREN),this.state=1376,this.json_common_args(),this.state=1380,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(312===e||313===e)&&(this.state=1377,this.json_query_wrapper(),this.state=1378,this.match(t.WRAPPER)),this.state=1386,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1382,this.json_query_handler(),this.state=1383,this.match(t.ON),this.state=1384,this.match(t.EMPTY);this.state=1392,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||121===e||198===e)&&(this.state=1388,this.json_query_handler(),this.state=1389,this.match(t.ON),this.state=1390,this.match(t.ERROR)),this.state=1394,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}smart_parenthesis(){let e,s=new LF(this.context,this.state);this.enterRule(s,110,t.RULE_smart_parenthesis);try{this.enterOuterAlt(s,1),this.state=1396,this.match(t.LPAREN),this.state=1398,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4030992413||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287)&&(this.state=1397,this.named_expr_list()),this.state=1401,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1400,this.match(t.COMMA)),this.state=1403,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}expr_list(){let e=new CF(this.context,this.state);this.enterRule(e,112,t.RULE_expr_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1405,this.expr(),this.state=1410,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1406,this.match(t.COMMA),this.state=1407,this.expr()),this.state=1412,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pure_column_list(){let e,s=new _F(this.context,this.state);this.enterRule(s,114,t.RULE_pure_column_list);try{for(this.enterOuterAlt(s,1),this.state=1413,this.match(t.LPAREN),this.state=1414,this.an_id(),this.state=1419,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1415,this.match(t.COMMA),this.state=1416,this.an_id(),this.state=1421,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1422,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}pure_column_or_named(){let e=new PF(this.context,this.state);this.enterRule(e,116,t.RULE_pure_column_or_named);try{switch(this.state=1426,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.enterOuterAlt(e,1),this.state=1424,this.bind_parameter();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,2),this.state=1425,this.an_id();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pure_column_or_named_list(){let e,s=new MF(this.context,this.state);this.enterRule(s,118,t.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(s,1),this.state=1428,this.match(t.LPAREN),this.state=1429,this.pure_column_or_named(),this.state=1434,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1430,this.match(t.COMMA),this.state=1431,this.pure_column_or_named(),this.state=1436,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1437,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}column_name(){let e=new dF(this.context,this.state);this.enterRule(e,120,t.RULE_column_name);try{this.enterOuterAlt(e,1),this.state=1439,this.opt_id_prefix(),this.state=1440,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}without_column_name(){let e=new UF(this.context,this.state);this.enterRule(e,122,t.RULE_without_column_name);try{switch(this.state=1447,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1442,this.an_id(),this.state=1443,this.match(t.DOT),this.state=1444,this.an_id();break;case 2:this.enterOuterAlt(e,2),this.state=1446,this.an_id_without()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}column_list(){let e,s=new mF(this.context,this.state);this.enterRule(s,124,t.RULE_column_list);try{let a;for(this.enterOuterAlt(s,1),this.state=1449,this.column_name(),this.state=1454,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1450,this.match(t.COMMA),this.state=1451,this.column_name()),this.state=1456,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1458,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1457,this.match(t.COMMA))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}without_column_list(){let e,s=new DF(this.context,this.state);this.enterRule(s,126,t.RULE_without_column_list);try{let a;for(this.enterOuterAlt(s,1),this.state=1460,this.without_column_name(),this.state=1465,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1461,this.match(t.COMMA),this.state=1462,this.without_column_name()),this.state=1467,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1469,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1468,this.match(t.COMMA))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}named_expr(){let e,s=new pF(this.context,this.state);this.enterRule(s,128,t.RULE_named_expr);try{this.enterOuterAlt(s,1),this.state=1471,this.expr(),this.state=1474,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=1472,this.match(t.AS),this.state=1473,this.an_id_or_type())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}named_expr_list(){let e=new gF(this.context,this.state);this.enterRule(e,130,t.RULE_named_expr_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1476,this.named_expr(),this.state=1481,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1477,this.match(t.COMMA),this.state=1478,this.named_expr()),this.state=1483,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}invoke_expr(){let e,s=new xF(this.context,this.state);this.enterRule(s,132,t.RULE_invoke_expr);try{switch(this.enterOuterAlt(s,1),this.state=1484,this.match(t.LPAREN),this.state=1491,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRUCT_OPEN:case t.PLUS:case t.MINUS:case t.TILDA:case t.LPAREN:case t.DOLLAR:case t.LBRACE_CURLY:case t.LBRACE_SQUARE:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FALSE:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TRUE:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:case t.DIGITS:case t.INTEGER_VALUE:case t.REAL:case t.BLOB:this.state=1485,this.opt_set_quantifier(),this.state=1486,this.named_expr_list(),this.state=1488,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1487,this.match(t.COMMA));break;case t.ASTERISK:this.state=1490,this.match(t.ASTERISK);case t.RPAREN:}this.state=1493,this.match(t.RPAREN),this.state=1494,this.invoke_expr_tail()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}invoke_expr_tail(){let e,s=new kF(this.context,this.state);this.enterRule(s,134,t.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(s,1),this.state=1498,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.IGNORE:case t.RESPECT:this.state=1496,this.null_treatment();break;case t.FILTER:this.state=1497,this.filter_clause();case t.EOF:case t.EQUALS:case t.EQUALS2:case t.NOT_EQUALS:case t.NOT_EQUALS2:case t.LESS:case t.LESS_OR_EQ:case t.GREATER:case t.GREATER_OR_EQ:case t.SHIFT_LEFT:case t.ROT_LEFT:case t.AMPERSAND:case t.PIPE:case t.DOUBLE_PIPE:case t.STRUCT_CLOSE:case t.PLUS:case t.MINUS:case t.ASTERISK:case t.SLASH:case t.PERCENT:case t.SEMICOLON:case t.DOT:case t.COMMA:case t.LPAREN:case t.RPAREN:case t.QUESTION:case t.COLON:case t.RBRACE_CURLY:case t.CARET:case t.RBRACE_SQUARE:case t.LBRACE_SQUARE:case t.AFTER:case t.ALL:case t.AND:case t.AS:case t.ASC:case t.ASSUME:case t.ATTRIBUTES:case t.BETWEEN:case t.COLLATE:case t.CONNECT:case t.CONSUMER:case t.CROSS:case t.DATA:case t.DESC:case t.DESCRIBE:case t.DIRECTORY:case t.DO:case t.ELSE:case t.END:case t.ESCAPE:case t.EXCEPT:case t.EXCLUSION:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FROM:case t.FULL:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPS:case t.HAVING:case t.ILIKE:case t.IN:case t.INITIAL:case t.INNER:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NOT:case t.NOTNULL:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.OPTION:case t.OR:case t.ORDER:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PRECEDING:case t.PRESORT:case t.PRIVILEGES:case t.QUEUE:case t.RANGE:case t.REGEXP:case t.REMOVE:case t.REPLICATION:case t.RETURNING:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROWS:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBSET:case t.TABLES:case t.THEN:case t.TOPIC:case t.TYPE:case t.UNION:case t.UNMATCHED:case t.USING:case t.VIEW:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:}this.state=1502,this.errorHandler.sync(this),e=this.tokenStream.LA(1),213===e&&(this.state=1500,this.match(t.OVER),this.state=1501,this.window_name_or_specification())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}using_call_expr(){let e=new HF(this.context,this.state);this.enterRule(e,136,t.RULE_using_call_expr);try{switch(this.enterOuterAlt(e,1),this.state=1512,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1504,this.an_id_or_type(),this.state=1505,this.match(t.NAMESPACE),this.state=1506,this.an_id_or_type();break;case 2:this.state=1508,this.an_id_expr();break;case 3:this.state=1509,this.bind_parameter();break;case 4:this.state=1510,this.match(t.EXTERNAL),this.state=1511,this.match(t.FUNCTION)}this.state=1514,this.invoke_expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}key_expr(){let e=new GF(this.context,this.state);this.enterRule(e,138,t.RULE_key_expr);try{this.enterOuterAlt(e,1),this.state=1516,this.match(t.LBRACE_SQUARE),this.state=1517,this.expr(),this.state=1518,this.match(t.RBRACE_SQUARE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}when_expr(){let e=new FF(this.context,this.state);this.enterRule(e,140,t.RULE_when_expr);try{this.enterOuterAlt(e,1),this.state=1520,this.match(t.WHEN),this.state=1521,this.expr(),this.state=1522,this.match(t.THEN),this.state=1523,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}literal_value(){let e=new vF(this.context,this.state);this.enterRule(e,142,t.RULE_literal_value);try{switch(this.state=1535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,1),this.state=1525,this.integer();break;case t.REAL:this.enterOuterAlt(e,2),this.state=1526,this.real();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=1527,this.match(t.STRING_VALUE);break;case t.BLOB:this.enterOuterAlt(e,4),this.state=1528,this.match(t.BLOB);break;case t.NULL:this.enterOuterAlt(e,5),this.state=1529,this.match(t.NULL);break;case t.CURRENT_TIME:this.enterOuterAlt(e,6),this.state=1530,this.match(t.CURRENT_TIME);break;case t.CURRENT_DATE:this.enterOuterAlt(e,7),this.state=1531,this.match(t.CURRENT_DATE);break;case t.CURRENT_TIMESTAMP:this.enterOuterAlt(e,8),this.state=1532,this.match(t.CURRENT_TIMESTAMP);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,9),this.state=1533,this.bool_value();break;case t.EMPTY_ACTION:this.enterOuterAlt(e,10),this.state=1534,this.match(t.EMPTY_ACTION);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bind_parameter(){let e=new BF(this.context,this.state);this.enterRule(e,144,t.RULE_bind_parameter);try{switch(this.enterOuterAlt(e,1),this.state=1537,this.match(t.DOLLAR),this.state=1541,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1538,this.an_id_or_type();break;case t.TRUE:this.state=1539,this.match(t.TRUE);break;case t.FALSE:this.state=1540,this.match(t.FALSE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_bind_parameter(){let e,s=new yF(this.context,this.state);this.enterRule(s,146,t.RULE_opt_bind_parameter);try{this.enterOuterAlt(s,1),this.state=1543,this.bind_parameter(),this.state=1545,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=1544,this.match(t.QUESTION))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}bind_parameter_list(){let e,s=new fF(this.context,this.state);this.enterRule(s,148,t.RULE_bind_parameter_list);try{for(this.enterOuterAlt(s,1),this.state=1547,this.bind_parameter(),this.state=1552,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1548,this.match(t.COMMA),this.state=1549,this.bind_parameter(),this.state=1554,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}named_bind_parameter(){let e,s=new YF(this.context,this.state);this.enterRule(s,150,t.RULE_named_bind_parameter);try{this.enterOuterAlt(s,1),this.state=1555,this.bind_parameter(),this.state=1558,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=1556,this.match(t.AS),this.state=1557,this.bind_parameter())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}named_bind_parameter_list(){let e,s=new wF(this.context,this.state);this.enterRule(s,152,t.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(s,1),this.state=1560,this.named_bind_parameter(),this.state=1565,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1561,this.match(t.COMMA),this.state=1562,this.named_bind_parameter(),this.state=1567,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}signed_number(){let e,s=new bF(this.context,this.state);this.enterRule(s,154,t.RULE_signed_number);try{switch(this.enterOuterAlt(s,1),this.state=1569,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(17===e||18===e)&&(this.state=1568,e=this.tokenStream.LA(1),17===e||18===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1573,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.state=1571,this.integer();break;case t.REAL:this.state=1572,this.real();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_simple(){let e=new WF(this.context,this.state);this.enterRule(e,156,t.RULE_type_name_simple);try{this.enterOuterAlt(e,1),this.state=1575,this.an_id_pure()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}integer_or_bind(){let e=new VF(this.context,this.state);this.enterRule(e,158,t.RULE_integer_or_bind);try{switch(this.state=1579,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,1),this.state=1577,this.integer();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=1578,this.bind_parameter();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tag(){let e=new XF(this.context,this.state);this.enterRule(e,160,t.RULE_type_name_tag);try{switch(this.state=1584,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1581,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=1582,this.match(t.STRING_VALUE);break;case t.DOLLAR:this.enterOuterAlt(e,3),this.state=1583,this.bind_parameter();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_arg(){let e=new KF(this.context,this.state);this.enterRule(e,162,t.RULE_struct_arg);try{this.enterOuterAlt(e,1),this.state=1586,this.type_name_tag(),this.state=1587,this.match(t.COLON),this.state=1588,this.type_name_or_bind()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_arg_positional(){let e,s=new QF(this.context,this.state);this.enterRule(s,164,t.RULE_struct_arg_positional);try{switch(this.state=1602,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1590,this.type_name_tag(),this.state=1591,this.type_name_or_bind(),this.state=1596,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(196===e||198===e)&&(this.state=1593,this.errorHandler.sync(this),e=this.tokenStream.LA(1),196===e&&(this.state=1592,this.match(t.NOT)),this.state=1595,this.match(t.NULL));break;case 2:this.enterOuterAlt(s,2),this.state=1598,this.type_name_or_bind(),this.state=1599,this.match(t.AS),this.state=1600,this.type_name_tag()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}variant_arg(){let e=new JF(this.context,this.state);this.enterRule(e,166,t.RULE_variant_arg);try{if(this.enterOuterAlt(e,1),1===(this.state=1607,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1604,this.type_name_tag(),this.state=1605,this.match(t.COLON);this.state=1609,this.type_name_or_bind()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}callable_arg(){let e,s=new ZF(this.context,this.state);this.enterRule(s,168,t.RULE_callable_arg);try{this.enterOuterAlt(s,1),this.state=1611,this.variant_arg(),this.state=1615,this.errorHandler.sync(this),e=this.tokenStream.LA(1),37===e&&(this.state=1612,this.match(t.LBRACE_CURLY),this.state=1613,this.match(t.AUTOMAP),this.state=1614,this.match(t.RBRACE_CURLY))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}callable_arg_list(){let e=new qF(this.context,this.state);this.enterRule(e,170,t.RULE_callable_arg_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1617,this.callable_arg(),this.state=1622,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==s&&s!==q.INVALID_ALT_NUMBER;)1===s&&(this.state=1618,this.match(t.COMMA),this.state=1619,this.callable_arg()),this.state=1624,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_decimal(){let e=new jF(this.context,this.state);this.enterRule(e,172,t.RULE_type_name_decimal);try{this.enterOuterAlt(e,1),this.state=1625,this.match(t.DECIMAL),this.state=1626,this.match(t.LPAREN),this.state=1627,this.integer_or_bind(),this.state=1628,this.match(t.COMMA),this.state=1629,this.integer_or_bind(),this.state=1630,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_optional(){let e=new zF(this.context,this.state);this.enterRule(e,174,t.RULE_type_name_optional);try{this.enterOuterAlt(e,1),this.state=1632,this.match(t.OPTIONAL),this.state=1633,this.match(t.LESS),this.state=1634,this.type_name_or_bind(),this.state=1635,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tuple(){let e,s=new $F(this.context,this.state);this.enterRule(s,176,t.RULE_type_name_tuple);try{let a;switch(this.enterOuterAlt(s,1),this.state=1637,this.match(t.TUPLE),this.state=1654,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS:if(this.state=1638,this.match(t.LESS),this.state=1650,this.errorHandler.sync(this),e=this.tokenStream.LA(1),33===e||70===e||96===e||106===e||119===e||138===e||182===e||208===e||!(e-243&-32)&&1<<e-243&203423745||!(e-281&-32)&&1<<e-281&33555457||!(e-316&-32)&&1<<e-316&7){for(this.state=1639,this.type_name_or_bind(),this.state=1644,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1640,this.match(t.COMMA),this.state=1641,this.type_name_or_bind()),this.state=1646,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1648,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1647,this.match(t.COMMA))}this.state=1652,this.match(t.GREATER);break;case t.NOT_EQUALS2:this.state=1653,this.match(t.NOT_EQUALS2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_struct(){let e,s=new tv(this.context,this.state);this.enterRule(s,178,t.RULE_type_name_struct);try{let a;switch(this.enterOuterAlt(s,1),this.state=1656,this.match(t.STRUCT),this.state=1673,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS:if(this.state=1657,this.match(t.LESS),this.state=1669,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-33&-32)&&1<<e-33&3221223425||!(e-65&-32)&&1<<e-65&4294967263||!(e-97&-32)&&1<<e-97&4290772479||!(e-129&-32)&&1<<e-129&4294835695||!(e-161&-32)&&1<<e-161&4292870143||!(e-193&-32)&&1<<e-193&4294934527||!(e-225&-32)&&1<<e-225&4294688767||!(e-257&-32)&&1<<e-257&4278181759||!(e-289&-32)&&1<<e-289&1073610745){for(this.state=1658,this.struct_arg(),this.state=1663,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1659,this.match(t.COMMA),this.state=1660,this.struct_arg()),this.state=1665,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1667,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1666,this.match(t.COMMA))}this.state=1671,this.match(t.GREATER);break;case t.NOT_EQUALS2:this.state=1672,this.match(t.NOT_EQUALS2);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_variant(){let e,s=new ev(this.context,this.state);this.enterRule(s,180,t.RULE_type_name_variant);try{let a;for(this.enterOuterAlt(s,1),this.state=1675,this.match(t.VARIANT),this.state=1676,this.match(t.LESS),this.state=1677,this.variant_arg(),this.state=1682,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1678,this.match(t.COMMA),this.state=1679,this.variant_arg()),this.state=1684,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1686,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1685,this.match(t.COMMA)),this.state=1688,this.match(t.GREATER)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_list(){let e=new sv(this.context,this.state);this.enterRule(e,182,t.RULE_type_name_list);try{this.enterOuterAlt(e,1),this.state=1690,this.match(t.LIST),this.state=1691,this.match(t.LESS),this.state=1692,this.type_name_or_bind(),this.state=1693,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_stream(){let e=new av(this.context,this.state);this.enterRule(e,184,t.RULE_type_name_stream);try{this.enterOuterAlt(e,1),this.state=1695,this.match(t.STREAM),this.state=1696,this.match(t.LESS),this.state=1697,this.type_name_or_bind(),this.state=1698,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_flow(){let e=new iv(this.context,this.state);this.enterRule(e,186,t.RULE_type_name_flow);try{this.enterOuterAlt(e,1),this.state=1700,this.match(t.FLOW),this.state=1701,this.match(t.LESS),this.state=1702,this.type_name_or_bind(),this.state=1703,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_dict(){let e=new rv(this.context,this.state);this.enterRule(e,188,t.RULE_type_name_dict);try{this.enterOuterAlt(e,1),this.state=1705,this.match(t.DICT),this.state=1706,this.match(t.LESS),this.state=1707,this.type_name_or_bind(),this.state=1708,this.match(t.COMMA),this.state=1709,this.type_name_or_bind(),this.state=1710,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_set(){let e=new cv(this.context,this.state);this.enterRule(e,190,t.RULE_type_name_set);try{this.enterOuterAlt(e,1),this.state=1712,this.match(t.SET),this.state=1713,this.match(t.LESS),this.state=1714,this.type_name_or_bind(),this.state=1715,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_enum(){let e,s=new nv(this.context,this.state);this.enterRule(s,192,t.RULE_type_name_enum);try{let a;for(this.enterOuterAlt(s,1),this.state=1717,this.match(t.ENUM),this.state=1718,this.match(t.LESS),this.state=1719,this.type_name_tag(),this.state=1724,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=1720,this.match(t.COMMA),this.state=1721,this.type_name_tag()),this.state=1726,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1728,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1727,this.match(t.COMMA)),this.state=1730,this.match(t.GREATER)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_resource(){let e=new hv(this.context,this.state);this.enterRule(e,194,t.RULE_type_name_resource);try{this.enterOuterAlt(e,1),this.state=1732,this.match(t.RESOURCE),this.state=1733,this.match(t.LESS),this.state=1734,this.type_name_tag(),this.state=1735,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tagged(){let e=new Ev(this.context,this.state);this.enterRule(e,196,t.RULE_type_name_tagged);try{this.enterOuterAlt(e,1),this.state=1737,this.match(t.TAGGED),this.state=1738,this.match(t.LESS),this.state=1739,this.type_name_or_bind(),this.state=1740,this.match(t.COMMA),this.state=1741,this.type_name_tag(),this.state=1742,this.match(t.GREATER)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_callable(){let e,s=new Tv(this.context,this.state);this.enterRule(s,198,t.RULE_type_name_callable);try{this.enterOuterAlt(s,1),this.state=1744,this.match(t.CALLABLE),this.state=1745,this.match(t.LESS),this.state=1746,this.match(t.LPAREN),this.state=1748,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-33&-32)&&1<<e-33&3221223425||!(e-65&-32)&&1<<e-65&4294967295||!(e-97&-32)&&1<<e-97&4294967295||!(e-129&-32)&&1<<e-129&4294836207||!(e-161&-32)&&1<<e-161&4294967295||!(e-193&-32)&&1<<e-193&4294967295||!(e-225&-32)&&1<<e-225&4294950911||!(e-257&-32)&&1<<e-257&4294967295||!(e-289&-32)&&1<<e-289&1073741821)&&(this.state=1747,this.callable_arg_list()),this.state=1751,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=1750,this.match(t.COMMA)),this.state=1757,this.errorHandler.sync(this),e=this.tokenStream.LA(1),43===e&&(this.state=1753,this.match(t.LBRACE_SQUARE),this.state=1754,this.callable_arg_list(),this.state=1755,this.match(t.RBRACE_SQUARE)),this.state=1759,this.match(t.RPAREN),this.state=1760,this.match(t.ARROW),this.state=1761,this.type_name_or_bind(),this.state=1762,this.match(t.GREATER)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_composite(){let e,s=new ov(this.context,this.state);this.enterRule(s,200,t.RULE_type_name_composite);try{switch(this.enterOuterAlt(s,1),this.state=1777,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPTIONAL:this.state=1764,this.type_name_optional();break;case t.TUPLE:this.state=1765,this.type_name_tuple();break;case t.STRUCT:this.state=1766,this.type_name_struct();break;case t.VARIANT:this.state=1767,this.type_name_variant();break;case t.LIST:this.state=1768,this.type_name_list();break;case t.STREAM:this.state=1769,this.type_name_stream();break;case t.FLOW:this.state=1770,this.type_name_flow();break;case t.DICT:this.state=1771,this.type_name_dict();break;case t.SET:this.state=1772,this.type_name_set();break;case t.ENUM:this.state=1773,this.type_name_enum();break;case t.RESOURCE:this.state=1774,this.type_name_resource();break;case t.TAGGED:this.state=1775,this.type_name_tagged();break;case t.CALLABLE:this.state=1776,this.type_name_callable();break;default:throw new he(this)}for(this.state=1782,this.errorHandler.sync(this),e=this.tokenStream.LA(1);29===e;)this.state=1779,this.match(t.QUESTION),this.state=1784,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name(){let e,s=new Rv(this.context,this.state);this.enterRule(s,202,t.RULE_type_name);try{switch(this.state=1796,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STREAM:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(s,1),this.state=1785,this.type_name_composite();break;case t.DECIMAL:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:switch(this.enterOuterAlt(s,2),this.state=1788,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DECIMAL:this.state=1786,this.type_name_decimal();break;case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1787,this.type_name_simple();break;default:throw new he(this)}for(this.state=1793,this.errorHandler.sync(this),e=this.tokenStream.LA(1);29===e;)this.state=1790,this.match(t.QUESTION),this.state=1795,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_name_or_bind(){let e=new Av(this.context,this.state);this.enterRule(e,204,t.RULE_type_name_or_bind);try{switch(this.state=1800,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALLABLE:case t.DECIMAL:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STREAM:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1798,this.type_name();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=1799,this.bind_parameter();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}value_constructor_literal(){let e=new Sv(this.context,this.state);this.enterRule(e,206,t.RULE_value_constructor_literal);try{this.enterOuterAlt(e,1),this.state=1802,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}value_constructor(){let e=new lv(this.context,this.state);this.enterRule(e,208,t.RULE_value_constructor);try{switch(this.state=1827,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VARIANT:this.enterOuterAlt(e,1),this.state=1804,this.match(t.VARIANT),this.state=1805,this.match(t.LPAREN),this.state=1806,this.expr(),this.state=1807,this.match(t.COMMA),this.state=1808,this.expr(),this.state=1809,this.match(t.COMMA),this.state=1810,this.expr(),this.state=1811,this.match(t.RPAREN);break;case t.ENUM:this.enterOuterAlt(e,2),this.state=1813,this.match(t.ENUM),this.state=1814,this.match(t.LPAREN),this.state=1815,this.expr(),this.state=1816,this.match(t.COMMA),this.state=1817,this.expr(),this.state=1818,this.match(t.RPAREN);break;case t.CALLABLE:this.enterOuterAlt(e,3),this.state=1820,this.match(t.CALLABLE),this.state=1821,this.match(t.LPAREN),this.state=1822,this.expr(),this.state=1823,this.match(t.COMMA),this.state=1824,this.expr(),this.state=1825,this.match(t.RPAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declare_stmt(){let e,s=new Ov(this.context,this.state);this.enterRule(s,210,t.RULE_declare_stmt);try{this.enterOuterAlt(s,1),this.state=1829,this.match(t.DECLARE),this.state=1830,this.bind_parameter(),this.state=1831,this.match(t.AS),this.state=1832,this.type_name(),this.state=1835,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=1833,this.match(t.EQUALS),this.state=1834,this.literal_value())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}module_path(){let e,s=new Iv(this.context,this.state);this.enterRule(s,212,t.RULE_module_path);try{for(this.enterOuterAlt(s,1),this.state=1838,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1837,this.match(t.DOT)),this.state=1840,this.an_id(),this.state=1845,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1841,this.match(t.DOT),this.state=1842,this.an_id(),this.state=1847,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}import_stmt(){let e=new uv(this.context,this.state);this.enterRule(e,214,t.RULE_import_stmt);try{this.enterOuterAlt(e,1),this.state=1848,this.match(t.IMPORT),this.state=1849,this.module_path(),this.state=1850,this.match(t.SYMBOLS),this.state=1851,this.named_bind_parameter_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}export_stmt(){let e=new Nv(this.context,this.state);this.enterRule(e,216,t.RULE_export_stmt);try{this.enterOuterAlt(e,1),this.state=1853,this.match(t.EXPORT),this.state=1854,this.bind_parameter_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}call_action(){let e,s=new Lv(this.context,this.state);this.enterRule(s,218,t.RULE_call_action);try{switch(this.enterOuterAlt(s,1),this.state=1858,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.state=1856,this.bind_parameter();break;case t.EMPTY_ACTION:this.state=1857,this.match(t.EMPTY_ACTION);break;default:throw new he(this)}this.state=1860,this.match(t.LPAREN),this.state=1862,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4030992413||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287)&&(this.state=1861,this.expr_list()),this.state=1864,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}inline_action(){let e=new Cv(this.context,this.state);this.enterRule(e,220,t.RULE_inline_action);try{this.enterOuterAlt(e,1),this.state=1866,this.match(t.BEGIN),this.state=1867,this.define_action_or_subquery_body(),this.state=1868,this.match(t.END),this.state=1869,this.match(t.DO)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}do_stmt(){let e=new _v(this.context,this.state);this.enterRule(e,222,t.RULE_do_stmt);try{switch(this.enterOuterAlt(e,1),this.state=1871,this.match(t.DO),this.state=1874,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.EMPTY_ACTION:this.state=1872,this.call_action();break;case t.BEGIN:this.state=1873,this.inline_action();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pragma_stmt(){let e,s=new Pv(this.context,this.state);this.enterRule(s,224,t.RULE_pragma_stmt);try{switch(this.enterOuterAlt(s,1),this.state=1876,this.match(t.PRAGMA),this.state=1877,this.opt_id_prefix_or_type(),this.state=1878,this.an_id(),this.state=1892,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUALS:this.state=1879,this.match(t.EQUALS),this.state=1880,this.pragma_value();break;case t.LPAREN:for(this.state=1881,this.match(t.LPAREN),this.state=1882,this.pragma_value(),this.state=1887,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1883,this.match(t.COMMA),this.state=1884,this.pragma_value(),this.state=1889,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1890,this.match(t.RPAREN);case t.EOF:case t.SEMICOLON:case t.END:}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}pragma_value(){let e=new Mv(this.context,this.state);this.enterRule(e,226,t.RULE_pragma_value);try{switch(this.state=1899,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PLUS:case t.MINUS:case t.DIGITS:case t.INTEGER_VALUE:case t.REAL:this.enterOuterAlt(e,1),this.state=1894,this.signed_number();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,2),this.state=1895,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=1896,this.match(t.STRING_VALUE);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=1897,this.bool_value();break;case t.DOLLAR:this.enterOuterAlt(e,5),this.state=1898,this.bind_parameter();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sort_specification(){let e,s=new dv(this.context,this.state);this.enterRule(s,228,t.RULE_sort_specification);try{this.enterOuterAlt(s,1),this.state=1901,this.expr(),this.state=1903,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(56===e||103===e)&&(this.state=1902,e=this.tokenStream.LA(1),56===e||103===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sort_specification_list(){let e,s=new Uv(this.context,this.state);this.enterRule(s,230,t.RULE_sort_specification_list);try{for(this.enterOuterAlt(s,1),this.state=1905,this.sort_specification(),this.state=1910,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1906,this.match(t.COMMA),this.state=1907,this.sort_specification(),this.state=1912,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}select_stmt(){let e,s=new mv(this.context,this.state);this.enterRule(s,232,t.RULE_select_stmt);try{for(this.enterOuterAlt(s,1),this.state=1913,this.select_kind_parenthesis(),this.state=1919,this.errorHandler.sync(this),e=this.tokenStream.LA(1);124===e||168===e||295===e;)this.state=1914,this.select_op(),this.state=1915,this.select_kind_parenthesis(),this.state=1921,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}select_unparenthesized_stmt(){let e,s=new Dv(this.context,this.state);this.enterRule(s,234,t.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(s,1),this.state=1922,this.select_kind_partial(),this.state=1928,this.errorHandler.sync(this),e=this.tokenStream.LA(1);124===e||168===e||295===e;)this.state=1923,this.select_op(),this.state=1924,this.select_kind_parenthesis(),this.state=1930,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}select_kind_parenthesis(){let e=new pv(this.context,this.state);this.enterRule(e,236,t.RULE_select_kind_parenthesis);try{switch(this.state=1936,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.enterOuterAlt(e,1),this.state=1931,this.select_kind_partial();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=1932,this.match(t.LPAREN),this.state=1933,this.select_kind_partial(),this.state=1934,this.match(t.RPAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}select_op(){let e,s=new gv(this.context,this.state);this.enterRule(s,238,t.RULE_select_op);try{switch(this.state=1944,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.UNION:this.enterOuterAlt(s,1),this.state=1938,this.match(t.UNION),this.state=1940,this.errorHandler.sync(this),e=this.tokenStream.LA(1),48===e&&(this.state=1939,this.match(t.ALL));break;case t.INTERSECT:this.enterOuterAlt(s,2),this.state=1942,this.match(t.INTERSECT);break;case t.EXCEPT:this.enterOuterAlt(s,3),this.state=1943,this.match(t.EXCEPT);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}select_kind_partial(){let e,s=new xv(this.context,this.state);this.enterRule(s,240,t.RULE_select_kind_partial);try{this.enterOuterAlt(s,1),this.state=1946,this.select_kind(),this.state=1953,this.errorHandler.sync(this),e=this.tokenStream.LA(1),181===e&&(this.state=1947,this.match(t.LIMIT),this.state=1948,this.expr(),this.state=1951,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(26===e||202===e)&&(this.state=1949,e=this.tokenStream.LA(1),26===e||202===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1950,this.expr()))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}select_kind(){let e,s=new kv(this.context,this.state);this.enterRule(s,242,t.RULE_select_kind);try{switch(this.enterOuterAlt(s,1),this.state=1956,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=1955,this.match(t.DISCARD)),this.state=1961,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PROCESS:this.state=1958,this.process_core();break;case t.REDUCE:this.state=1959,this.reduce_core();break;case t.FROM:case t.SELECT:this.state=1960,this.select_core();break;default:throw new he(this)}this.state=1966,this.errorHandler.sync(this),e=this.tokenStream.LA(1),169===e&&(this.state=1963,this.match(t.INTO),this.state=1964,this.match(t.RESULT),this.state=1965,this.pure_column_or_named())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}process_core(){let e,s=new Hv(this.context,this.state);this.enterRule(s,244,t.RULE_process_core);try{if(this.enterOuterAlt(s,1),1===(this.state=1968,this.match(t.PROCESS),this.state=1970,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=1969,this.match(t.STREAM);for(this.state=1972,this.named_single_source(),this.state=1977,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=1973,this.match(t.COMMA),this.state=1974,this.named_single_source(),this.state=1979,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2001,this.errorHandler.sync(this),e=this.tokenStream.LA(1),303===e&&(this.state=1980,this.match(t.USING),this.state=1981,this.using_call_expr(),this.state=1984,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=1982,this.match(t.AS),this.state=1983,this.an_id()),this.state=1988,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=1986,this.match(t.WITH),this.state=1987,this.external_call_settings()),this.state=1991,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=1990,this.where_expr()),this.state=1995,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=1993,this.match(t.HAVING),this.state=1994,this.expr()),this.state=1999,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=1997,this.match(t.ASSUME),this.state=1998,this.order_by_clause()))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}external_call_param(){let e=new Gv(this.context,this.state);this.enterRule(e,246,t.RULE_external_call_param);try{this.enterOuterAlt(e,1),this.state=2003,this.an_id(),this.state=2004,this.match(t.EQUALS),this.state=2005,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}external_call_settings(){let e,s=new Fv(this.context,this.state);this.enterRule(s,248,t.RULE_external_call_settings);try{for(this.enterOuterAlt(s,1),this.state=2007,this.external_call_param(),this.state=2012,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2008,this.match(t.COMMA),this.state=2009,this.external_call_param(),this.state=2014,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}reduce_core(){let e,s=new vv(this.context,this.state);this.enterRule(s,250,t.RULE_reduce_core);try{for(this.enterOuterAlt(s,1),this.state=2015,this.match(t.REDUCE),this.state=2016,this.named_single_source(),this.state=2021,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2017,this.match(t.COMMA),this.state=2018,this.named_single_source(),this.state=2023,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(1===(this.state=2026,this.errorHandler.sync(this),e=this.tokenStream.LA(1),225===e&&(this.state=2024,this.match(t.PRESORT),this.state=2025,this.sort_specification_list()),this.state=2028,this.match(t.ON),this.state=2029,this.column_list(),this.state=2030,this.match(t.USING),this.state=2032,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2031,this.match(t.ALL);this.state=2034,this.using_call_expr(),this.state=2037,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=2035,this.match(t.AS),this.state=2036,this.an_id()),this.state=2040,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=2039,this.where_expr()),this.state=2044,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2042,this.match(t.HAVING),this.state=2043,this.expr()),this.state=2048,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=2046,this.match(t.ASSUME),this.state=2047,this.order_by_clause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}opt_set_quantifier(){let e,s=new Bv(this.context,this.state);this.enterRule(s,252,t.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(s,1),this.state=2051,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2050,e=this.tokenStream.LA(1),48===e||110===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}select_core(){let e,s=new yv(this.context,this.state);this.enterRule(s,254,t.RULE_select_core);try{let a;if(this.enterOuterAlt(s,1),1===(this.state=2055,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e&&(this.state=2053,this.match(t.FROM),this.state=2054,this.join_source()),this.state=2057,this.match(t.SELECT),this.state=2059,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2058,this.match(t.STREAM);for(this.state=2061,this.opt_set_quantifier(),this.state=2062,this.result_column(),this.state=2067,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=2063,this.match(t.COMMA),this.state=2064,this.result_column()),this.state=2069,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2071,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=2070,this.match(t.COMMA)),this.state=2075,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2073,this.match(t.WITHOUT),this.state=2074,this.without_column_list()),this.state=2079,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e&&(this.state=2077,this.match(t.FROM),this.state=2078,this.join_source()),this.state=2082,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=2081,this.where_expr()),this.state=2085,this.errorHandler.sync(this),e=this.tokenStream.LA(1),148===e&&(this.state=2084,this.group_by_clause()),this.state=2089,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2087,this.match(t.HAVING),this.state=2088,this.expr()),this.state=2092,this.errorHandler.sync(this),e=this.tokenStream.LA(1),311===e&&(this.state=2091,this.window_clause()),this.state=2095,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(57===e||210===e)&&(this.state=2094,this.ext_order_by_clause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_recognition_clause(){let e,s=new fv(this.context,this.state);this.enterRule(s,256,t.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(s,1),this.state=2097,this.match(t.MATCH_RECOGNIZE),this.state=2098,this.match(t.LPAREN),this.state=2100,this.errorHandler.sync(this),e=this.tokenStream.LA(1),215===e&&(this.state=2099,this.window_partition_clause()),this.state=2103,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=2102,this.order_by_clause()),this.state=2106,this.errorHandler.sync(this),e=this.tokenStream.LA(1),188===e&&(this.state=2105,this.row_pattern_measures()),this.state=2109,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(48===e||205===e)&&(this.state=2108,this.row_pattern_rows_per_match()),this.state=2111,this.row_pattern_common_syntax(),this.state=2112,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_rows_per_match(){let e,s=new Yv(this.context,this.state);this.enterRule(s,258,t.RULE_row_pattern_rows_per_match);try{switch(this.state=2125,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ONE:this.enterOuterAlt(s,1),this.state=2114,this.match(t.ONE),this.state=2115,this.match(t.ROW),this.state=2116,this.match(t.PER),this.state=2117,this.match(t.MATCH);break;case t.ALL:this.enterOuterAlt(s,2),this.state=2118,this.match(t.ALL),this.state=2119,this.match(t.ROWS),this.state=2120,this.match(t.PER),this.state=2121,this.match(t.MATCH),this.state=2123,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(203===e||266===e||312===e)&&(this.state=2122,this.row_pattern_empty_match_handling());break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_empty_match_handling(){let e=new wv(this.context,this.state);this.enterRule(e,260,t.RULE_row_pattern_empty_match_handling);try{switch(this.state=2136,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SHOW:this.enterOuterAlt(e,1),this.state=2127,this.match(t.SHOW),this.state=2128,this.match(t.EMPTY),this.state=2129,this.match(t.MATCHES);break;case t.OMIT:this.enterOuterAlt(e,2),this.state=2130,this.match(t.OMIT),this.state=2131,this.match(t.EMPTY),this.state=2132,this.match(t.MATCHES);break;case t.WITH:this.enterOuterAlt(e,3),this.state=2133,this.match(t.WITH),this.state=2134,this.match(t.UNMATCHED),this.state=2135,this.match(t.ROWS);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_measures(){let e=new bv(this.context,this.state);this.enterRule(e,262,t.RULE_row_pattern_measures);try{this.enterOuterAlt(e,1),this.state=2138,this.match(t.MEASURES),this.state=2139,this.row_pattern_measure_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_measure_list(){let e,s=new Wv(this.context,this.state);this.enterRule(s,264,t.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(s,1),this.state=2141,this.row_pattern_measure_definition(),this.state=2146,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2142,this.match(t.COMMA),this.state=2143,this.row_pattern_measure_definition(),this.state=2148,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_measure_definition(){let e=new Vv(this.context,this.state);this.enterRule(e,266,t.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(e,1),this.state=2149,this.expr(),this.state=2150,this.match(t.AS),this.state=2151,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_common_syntax(){let e,s=new Xv(this.context,this.state);this.enterRule(s,268,t.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(s,1),this.state=2156,this.errorHandler.sync(this),e=this.tokenStream.LA(1),47===e&&(this.state=2153,this.match(t.AFTER),this.state=2154,this.match(t.MATCH),this.state=2155,this.row_pattern_skip_to()),this.state=2159,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(163===e||261===e)&&(this.state=2158,this.row_pattern_initial_or_seek()),this.state=2161,this.match(t.PATTERN),this.state=2162,this.match(t.LPAREN),this.state=2163,this.row_pattern(),this.state=2164,this.match(t.RPAREN),this.state=2166,this.errorHandler.sync(this),e=this.tokenStream.LA(1),272===e&&(this.state=2165,this.row_pattern_subset_clause()),this.state=2168,this.match(t.DEFINE),this.state=2169,this.row_pattern_definition_list()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_skip_to(){let e=new Kv(this.context,this.state);this.enterRule(e,270,t.RULE_row_pattern_skip_to);try{switch(this.state=2190,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2171,this.match(t.SKIP_RULE),this.state=2172,this.match(t.TO),this.state=2173,this.match(t.NEXT),this.state=2174,this.match(t.ROW);break;case 2:this.enterOuterAlt(e,2),this.state=2175,this.match(t.SKIP_RULE),this.state=2176,this.match(t.PAST),this.state=2177,this.match(t.LAST),this.state=2178,this.match(t.ROW);break;case 3:this.enterOuterAlt(e,3),this.state=2179,this.match(t.SKIP_RULE),this.state=2180,this.match(t.TO),this.state=2181,this.match(t.FIRST),this.state=2182,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(e,4),this.state=2183,this.match(t.SKIP_RULE),this.state=2184,this.match(t.TO),this.state=2185,this.match(t.LAST),this.state=2186,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(e,5),this.state=2187,this.match(t.SKIP_RULE),this.state=2188,this.match(t.TO),this.state=2189,this.row_pattern_skip_to_variable_name()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_skip_to_variable_name(){let e=new Qv(this.context,this.state);this.enterRule(e,272,t.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(e,1),this.state=2192,this.row_pattern_variable_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_initial_or_seek(){let e,s=new Jv(this.context,this.state);this.enterRule(s,274,t.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(s,1),this.state=2194,e=this.tokenStream.LA(1),163===e||261===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern(){let e,s=new Zv(this.context,this.state);this.enterRule(s,276,t.RULE_row_pattern);try{for(this.enterOuterAlt(s,1),this.state=2196,this.row_pattern_term(),this.state=2201,this.errorHandler.sync(this),e=this.tokenStream.LA(1);13===e;)this.state=2197,this.match(t.PIPE),this.state=2198,this.row_pattern_term(),this.state=2203,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_term(){let e,s=new qv(this.context,this.state);this.enterRule(s,278,t.RULE_row_pattern_term);try{this.enterOuterAlt(s,1),this.state=2205,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2204,this.row_pattern_factor(),this.state=2207,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-27&-32)&&1<<e-27&5185||221===e||317===e||318===e)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_factor(){let e=new jv(this.context,this.state);this.enterRule(e,280,t.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(e,1),this.state=2209,this.row_pattern_primary(),this.state=2211,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2210,this.row_pattern_quantifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_quantifier(){let e,s=new zv(this.context,this.state);this.enterRule(s,282,t.RULE_row_pattern_quantifier);try{switch(this.state=2241,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(s,1),this.state=2213,this.match(t.ASTERISK),this.state=2215,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=2214,this.match(t.QUESTION));break;case 2:this.enterOuterAlt(s,2),this.state=2217,this.match(t.PLUS),this.state=2219,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=2218,this.match(t.QUESTION));break;case 3:this.enterOuterAlt(s,3),this.state=2221,this.match(t.QUESTION),this.state=2223,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=2222,this.match(t.QUESTION));break;case 4:this.enterOuterAlt(s,4),this.state=2225,this.match(t.LBRACE_CURLY),this.state=2227,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(319===e||320===e)&&(this.state=2226,this.integer()),this.state=2229,this.match(t.COMMA),this.state=2231,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(319===e||320===e)&&(this.state=2230,this.integer()),this.state=2233,this.match(t.RBRACE_CURLY),this.state=2235,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=2234,this.match(t.QUESTION));break;case 5:this.enterOuterAlt(s,5),this.state=2237,this.match(t.LBRACE_CURLY),this.state=2238,this.integer(),this.state=2239,this.match(t.RBRACE_CURLY)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_primary(){let e,s=new $v(this.context,this.state);this.enterRule(s,284,t.RULE_row_pattern_primary);try{switch(this.state=2258,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2243,this.row_pattern_primary_variable_name();break;case t.DOLLAR:this.enterOuterAlt(s,2),this.state=2244,this.match(t.DOLLAR);break;case t.CARET:this.enterOuterAlt(s,3),this.state=2245,this.match(t.CARET);break;case t.LPAREN:this.enterOuterAlt(s,4),this.state=2246,this.match(t.LPAREN),this.state=2248,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-27&-32)&&1<<e-27&5185||221===e||317===e||318===e)&&(this.state=2247,this.row_pattern()),this.state=2250,this.match(t.RPAREN);break;case t.LBRACE_CURLY:this.enterOuterAlt(s,5),this.state=2251,this.match(t.LBRACE_CURLY),this.state=2252,this.match(t.MINUS),this.state=2253,this.row_pattern(),this.state=2254,this.match(t.MINUS),this.state=2255,this.match(t.RBRACE_CURLY);break;case t.PERMUTE:this.enterOuterAlt(s,6),this.state=2257,this.row_pattern_permute();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_primary_variable_name(){let e=new tB(this.context,this.state);this.enterRule(e,286,t.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(e,1),this.state=2260,this.row_pattern_variable_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_permute(){let e,s=new eB(this.context,this.state);this.enterRule(s,288,t.RULE_row_pattern_permute);try{for(this.enterOuterAlt(s,1),this.state=2262,this.match(t.PERMUTE),this.state=2263,this.match(t.LPAREN),this.state=2264,this.row_pattern(),this.state=2269,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2265,this.match(t.COMMA),this.state=2266,this.row_pattern(),this.state=2271,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2272,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_subset_clause(){let e=new sB(this.context,this.state);this.enterRule(e,290,t.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(e,1),this.state=2274,this.match(t.SUBSET),this.state=2275,this.row_pattern_subset_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_list(){let e,s=new aB(this.context,this.state);this.enterRule(s,292,t.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(s,1),this.state=2277,this.row_pattern_subset_item(),this.state=2282,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2278,this.match(t.COMMA),this.state=2279,this.row_pattern_subset_item(),this.state=2284,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_subset_item(){let e=new iB(this.context,this.state);this.enterRule(e,294,t.RULE_row_pattern_subset_item);try{this.enterOuterAlt(e,1),this.state=2285,this.row_pattern_subset_item_variable_name(),this.state=2286,this.match(t.EQUALS),this.state=2287,this.match(t.LPAREN),this.state=2288,this.row_pattern_subset_rhs(),this.state=2289,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_item_variable_name(){let e=new rB(this.context,this.state);this.enterRule(e,296,t.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(e,1),this.state=2291,this.row_pattern_variable_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_rhs(){let e,s=new cB(this.context,this.state);this.enterRule(s,298,t.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(s,1),this.state=2293,this.row_pattern_subset_rhs_variable_name(),this.state=2298,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2294,this.match(t.COMMA),this.state=2295,this.row_pattern_subset_rhs_variable_name(),this.state=2300,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_subset_rhs_variable_name(){let e=new nB(this.context,this.state);this.enterRule(e,300,t.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(e,1),this.state=2301,this.row_pattern_variable_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_list(){let e,s=new hB(this.context,this.state);this.enterRule(s,302,t.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(s,1),this.state=2303,this.row_pattern_definition(),this.state=2308,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2304,this.match(t.COMMA),this.state=2305,this.row_pattern_definition(),this.state=2310,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}row_pattern_definition(){let e=new EB(this.context,this.state);this.enterRule(e,304,t.RULE_row_pattern_definition);try{this.enterOuterAlt(e,1),this.state=2311,this.row_pattern_definition_variable_name(),this.state=2312,this.match(t.AS),this.state=2313,this.row_pattern_definition_search_condition()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_variable_name(){let e=new TB(this.context,this.state);this.enterRule(e,306,t.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(e,1),this.state=2315,this.row_pattern_variable_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_search_condition(){let e=new oB(this.context,this.state);this.enterRule(e,308,t.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(e,1),this.state=2317,this.search_condition()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}search_condition(){let e=new RB(this.context,this.state);this.enterRule(e,310,t.RULE_search_condition);try{this.enterOuterAlt(e,1),this.state=2319,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_variable_name(){let e=new AB(this.context,this.state);this.enterRule(e,312,t.RULE_row_pattern_variable_name);try{this.enterOuterAlt(e,1),this.state=2321,this.identifier()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}order_by_clause(){let e=new SB(this.context,this.state);this.enterRule(e,314,t.RULE_order_by_clause);try{this.enterOuterAlt(e,1),this.state=2323,this.match(t.ORDER),this.state=2324,this.match(t.BY),this.state=2325,this.sort_specification_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ext_order_by_clause(){let e,s=new lB(this.context,this.state);this.enterRule(s,316,t.RULE_ext_order_by_clause);try{this.enterOuterAlt(s,1),this.state=2328,this.errorHandler.sync(this),e=this.tokenStream.LA(1),57===e&&(this.state=2327,this.match(t.ASSUME)),this.state=2330,this.order_by_clause()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}group_by_clause(){let e,s=new OB(this.context,this.state);this.enterRule(s,318,t.RULE_group_by_clause);try{this.enterOuterAlt(s,1),this.state=2332,this.match(t.GROUP),this.state=2334,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=2333,this.match(t.COMPACT)),this.state=2336,this.match(t.BY),this.state=2337,this.opt_set_quantifier(),this.state=2338,this.grouping_element_list(),this.state=2341,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=2339,this.match(t.WITH),this.state=2340,this.an_id())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}grouping_element_list(){let e,s=new IB(this.context,this.state);this.enterRule(s,320,t.RULE_grouping_element_list);try{for(this.enterOuterAlt(s,1),this.state=2343,this.grouping_element(),this.state=2348,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2344,this.match(t.COMMA),this.state=2345,this.grouping_element(),this.state=2350,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}grouping_element(){let e=new uB(this.context,this.state);this.enterRule(e,322,t.RULE_grouping_element);try{switch(this.state=2356,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2351,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(e,2),this.state=2352,this.rollup_list();break;case 3:this.enterOuterAlt(e,3),this.state=2353,this.cube_list();break;case 4:this.enterOuterAlt(e,4),this.state=2354,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(e,5),this.state=2355,this.hopping_window_specification()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ordinary_grouping_set(){let e=new NB(this.context,this.state);this.enterRule(e,324,t.RULE_ordinary_grouping_set);try{this.enterOuterAlt(e,1),this.state=2358,this.named_expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ordinary_grouping_set_list(){let e,s=new LB(this.context,this.state);this.enterRule(s,326,t.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(s,1),this.state=2360,this.ordinary_grouping_set(),this.state=2365,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2361,this.match(t.COMMA),this.state=2362,this.ordinary_grouping_set(),this.state=2367,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}rollup_list(){let e=new CB(this.context,this.state);this.enterRule(e,328,t.RULE_rollup_list);try{this.enterOuterAlt(e,1),this.state=2368,this.match(t.ROLLUP),this.state=2369,this.match(t.LPAREN),this.state=2370,this.ordinary_grouping_set_list(),this.state=2371,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cube_list(){let e=new _B(this.context,this.state);this.enterRule(e,330,t.RULE_cube_list);try{this.enterOuterAlt(e,1),this.state=2373,this.match(t.CUBE),this.state=2374,this.match(t.LPAREN),this.state=2375,this.ordinary_grouping_set_list(),this.state=2376,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}grouping_sets_specification(){let e=new PB(this.context,this.state);this.enterRule(e,332,t.RULE_grouping_sets_specification);try{this.enterOuterAlt(e,1),this.state=2378,this.match(t.GROUPING),this.state=2379,this.match(t.SETS),this.state=2380,this.match(t.LPAREN),this.state=2381,this.grouping_element_list(),this.state=2382,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}hopping_window_specification(){let e=new MB(this.context,this.state);this.enterRule(e,334,t.RULE_hopping_window_specification);try{this.enterOuterAlt(e,1),this.state=2384,this.match(t.HOP),this.state=2385,this.match(t.LPAREN),this.state=2386,this.expr(),this.state=2387,this.match(t.COMMA),this.state=2388,this.expr(),this.state=2389,this.match(t.COMMA),this.state=2390,this.expr(),this.state=2391,this.match(t.COMMA),this.state=2392,this.expr(),this.state=2393,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}result_column(){let e=new dB(this.context,this.state);this.enterRule(e,336,t.RULE_result_column);try{switch(this.state=2404,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2395,this.opt_id_prefix(),this.state=2396,this.match(t.ASTERISK);break;case 2:switch(this.enterOuterAlt(e,2),this.state=2398,this.expr(),this.state=2402,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.state=2399,this.match(t.AS),this.state=2400,this.an_id_or_type();break;case t.ATTRIBUTES:case t.CONNECT:case t.CONSUMER:case t.DATA:case t.DESCRIBE:case t.DIRECTORY:case t.FIRST:case t.GRANT:case t.INITIAL:case t.LAST:case t.LEGACY:case t.MANAGE:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.OMIT:case t.ONE:case t.OPTION:case t.PARALLEL:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PRIVILEGES:case t.QUEUE:case t.REMOVE:case t.REPLICATION:case t.REVOKE:case t.SECONDS:case t.SEEK:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBSET:case t.TABLES:case t.TOPIC:case t.TYPE:case t.UNMATCHED:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=2401,this.an_id_as_compat();case t.EOF:case t.SEMICOLON:case t.COMMA:case t.RPAREN:case t.ASSUME:case t.END:case t.EXCEPT:case t.FROM:case t.GROUP:case t.HAVING:case t.INTERSECT:case t.INTO:case t.LIMIT:case t.ORDER:case t.RETURNING:case t.UNION:case t.WHERE:case t.WINDOW:case t.WITHOUT:}}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}join_source(){let e,s=new UB(this.context,this.state);this.enterRule(s,338,t.RULE_join_source);try{if(this.enterOuterAlt(s,1),1===(this.state=2407,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2406,this.match(t.ANY);for(this.state=2409,this.flatten_source(),this.state=2420,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e||88===e||126===e||143===e||!(e-165&-32)&&1<<e-165&268443777||212===e||251===e;){if(1===(this.state=2410,this.join_op(),this.state=2412,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2411,this.match(t.ANY);this.state=2414,this.flatten_source(),this.state=2416,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(204===e||303===e)&&(this.state=2415,this.join_constraint()),this.state=2422,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}named_column(){let e,s=new mB(this.context,this.state);this.enterRule(s,340,t.RULE_named_column);try{this.enterOuterAlt(s,1),this.state=2423,this.column_name(),this.state=2426,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=2424,this.match(t.AS),this.state=2425,this.an_id())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}flatten_by_arg(){let e,s=new DB(this.context,this.state);this.enterRule(s,342,t.RULE_flatten_by_arg);try{switch(this.state=2436,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2428,this.named_column();break;case t.LPAREN:this.enterOuterAlt(s,2),this.state=2429,this.match(t.LPAREN),this.state=2430,this.named_expr_list(),this.state=2432,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=2431,this.match(t.COMMA)),this.state=2434,this.match(t.RPAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}flatten_source(){let e,s=new pB(this.context,this.state);this.enterRule(s,344,t.RULE_flatten_source);try{if(this.enterOuterAlt(s,1),this.state=2438,this.named_single_source(),this.state=2448,this.errorHandler.sync(this),e=this.tokenStream.LA(1),137===e)switch(this.state=2439,this.match(t.FLATTEN),this.state=2446,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BY:case t.DICT:case t.LIST:case t.OPTIONAL:this.state=2441,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(106===e||182===e||208===e)&&(this.state=2440,e=this.tokenStream.LA(1),106===e||182===e||208===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2443,this.match(t.BY),this.state=2444,this.flatten_by_arg();break;case t.COLUMNS:this.state=2445,this.match(t.COLUMNS);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}named_single_source(){let e,s=new gB(this.context,this.state);this.enterRule(s,346,t.RULE_named_single_source);try{if(this.enterOuterAlt(s,1),1===(this.state=2450,this.single_source(),this.state=2452,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2451,this.row_pattern_recognition_clause();if(this.state=2462,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-55&-32)&&1<<e-55&1342177345||!(e-94&-32)&&1<<e-94&9217||!(e-136&-32)&&1<<e-136&134219777||!(e-177&-32)&&1<<e-177&1409482373||!(e-214&-32)&&1<<e-214&142647537||!(e-250&-32)&&1<<e-250&273091585||!(e-287&-32)&&1<<e-287&3758098465){switch(this.state=2457,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.state=2454,this.match(t.AS),this.state=2455,this.an_id();break;case t.ATTRIBUTES:case t.CONNECT:case t.CONSUMER:case t.DATA:case t.DESCRIBE:case t.DIRECTORY:case t.FIRST:case t.GRANT:case t.INITIAL:case t.LAST:case t.LEGACY:case t.MANAGE:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.OMIT:case t.ONE:case t.OPTION:case t.PARALLEL:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PRIVILEGES:case t.QUEUE:case t.REMOVE:case t.REPLICATION:case t.REVOKE:case t.SECONDS:case t.SEEK:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBSET:case t.TABLES:case t.TOPIC:case t.TYPE:case t.UNMATCHED:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=2456,this.an_id_as_compat();break;default:throw new he(this)}this.state=2460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=2459,this.pure_column_list())}switch(this.state=2466,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SAMPLE:this.state=2464,this.sample_clause();break;case t.TABLESAMPLE:this.state=2465,this.tablesample_clause();case t.EOF:case t.SEMICOLON:case t.COMMA:case t.RPAREN:case t.ASSUME:case t.CROSS:case t.END:case t.EXCEPT:case t.EXCLUSION:case t.FLATTEN:case t.FULL:case t.GROUP:case t.HAVING:case t.INNER:case t.INTERSECT:case t.INTO:case t.JOIN:case t.LEFT:case t.LIMIT:case t.NATURAL:case t.ON:case t.ORDER:case t.OUTER:case t.PRESORT:case t.RETURNING:case t.RIGHT:case t.SELECT:case t.UNION:case t.USING:case t.WHERE:case t.WINDOW:}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}single_source(){let e=new xB(this.context,this.state);this.enterRule(e,348,t.RULE_single_source);try{switch(this.state=2477,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2468,this.table_ref();break;case 2:this.enterOuterAlt(e,2),this.state=2469,this.match(t.LPAREN),this.state=2470,this.select_stmt(),this.state=2471,this.match(t.RPAREN);break;case 3:this.enterOuterAlt(e,3),this.state=2473,this.match(t.LPAREN),this.state=2474,this.values_stmt(),this.state=2475,this.match(t.RPAREN)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sample_clause(){let e=new kB(this.context,this.state);this.enterRule(e,350,t.RULE_sample_clause);try{this.enterOuterAlt(e,1),this.state=2479,this.match(t.SAMPLE),this.state=2480,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tablesample_clause(){let e,s=new HB(this.context,this.state);this.enterRule(s,352,t.RULE_tablesample_clause);try{this.enterOuterAlt(s,1),this.state=2482,this.match(t.TABLESAMPLE),this.state=2483,this.sampling_mode(),this.state=2484,this.match(t.LPAREN),this.state=2485,this.expr(),this.state=2486,this.match(t.RPAREN),this.state=2488,this.errorHandler.sync(this),e=this.tokenStream.LA(1),239===e&&(this.state=2487,this.repeatable_clause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sampling_mode(){let e,s=new GB(this.context,this.state);this.enterRule(s,354,t.RULE_sampling_mode);try{this.enterOuterAlt(s,1),this.state=2490,e=this.tokenStream.LA(1),66===e||276===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}repeatable_clause(){let e=new FB(this.context,this.state);this.enterRule(e,356,t.RULE_repeatable_clause);try{this.enterOuterAlt(e,1),this.state=2492,this.match(t.REPEATABLE),this.state=2493,this.match(t.LPAREN),this.state=2494,this.expr(),this.state=2495,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}join_op(){let e,s=new vB(this.context,this.state);this.enterRule(s,358,t.RULE_join_op);try{switch(this.state=2521,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMA:this.enterOuterAlt(s,1),this.state=2497,this.match(t.COMMA);break;case t.CROSS:case t.EXCLUSION:case t.FULL:case t.INNER:case t.JOIN:case t.LEFT:case t.NATURAL:case t.OUTER:case t.RIGHT:switch(this.enterOuterAlt(s,2),this.state=2499,this.errorHandler.sync(this),e=this.tokenStream.LA(1),193===e&&(this.state=2498,this.match(t.NATURAL)),this.state=2518,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EXCLUSION:case t.FULL:case t.JOIN:case t.LEFT:case t.OUTER:case t.RIGHT:switch(this.state=2511,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LEFT:this.state=2501,this.match(t.LEFT),this.state=2503,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(206===e||263===e)&&(this.state=2502,e=this.tokenStream.LA(1),206===e||263===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.RIGHT:this.state=2505,this.match(t.RIGHT),this.state=2507,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(206===e||263===e)&&(this.state=2506,e=this.tokenStream.LA(1),206===e||263===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.EXCLUSION:this.state=2509,this.match(t.EXCLUSION);break;case t.FULL:this.state=2510,this.match(t.FULL);case t.JOIN:case t.OUTER:}this.state=2514,this.errorHandler.sync(this),e=this.tokenStream.LA(1),212===e&&(this.state=2513,this.match(t.OUTER));break;case t.INNER:this.state=2516,this.match(t.INNER);break;case t.CROSS:this.state=2517,this.match(t.CROSS);break;default:throw new he(this)}this.state=2520,this.match(t.JOIN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}join_constraint(){let e=new BB(this.context,this.state);this.enterRule(e,360,t.RULE_join_constraint);try{switch(this.state=2527,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ON:this.enterOuterAlt(e,1),this.state=2523,this.match(t.ON),this.state=2524,this.expr();break;case t.USING:this.enterOuterAlt(e,2),this.state=2525,this.match(t.USING),this.state=2526,this.pure_column_or_named_list();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}returning_columns_list(){let e,s=new yB(this.context,this.state);this.enterRule(s,362,t.RULE_returning_columns_list);try{switch(this.enterOuterAlt(s,1),this.state=2529,this.match(t.RETURNING),this.state=2539,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ASTERISK:this.state=2530,this.match(t.ASTERISK);break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:for(this.state=2531,this.an_id(),this.state=2536,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2532,this.match(t.COMMA),this.state=2533,this.an_id(),this.state=2538,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}into_table_stmt(){let e,s=new fB(this.context,this.state);this.enterRule(s,364,t.RULE_into_table_stmt);try{switch(this.enterOuterAlt(s,1),this.state=2553,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2541,this.match(t.INSERT);break;case 2:this.state=2542,this.match(t.INSERT),this.state=2543,this.match(t.OR),this.state=2544,this.match(t.ABORT);break;case 3:this.state=2545,this.match(t.INSERT),this.state=2546,this.match(t.OR),this.state=2547,this.match(t.REVERT);break;case 4:this.state=2548,this.match(t.INSERT),this.state=2549,this.match(t.OR),this.state=2550,this.match(t.IGNORE);break;case 5:this.state=2551,this.match(t.UPSERT);break;case 6:this.state=2552,this.match(t.REPLACE)}this.state=2555,this.match(t.INTO),this.state=2556,this.into_simple_table_ref(),this.state=2557,this.into_values_source(),this.state=2559,this.errorHandler.sync(this),e=this.tokenStream.LA(1),248===e&&(this.state=2558,this.returning_columns_list())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}into_table_stmt_yq(){let e=new YB(this.context,this.state);this.enterRule(e,366,t.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(e,1),this.state=2572,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2561,this.match(t.INSERT);break;case 2:this.state=2562,this.match(t.INSERT),this.state=2563,this.match(t.OR),this.state=2564,this.match(t.ABORT);break;case 3:this.state=2565,this.match(t.INSERT),this.state=2566,this.match(t.OR),this.state=2567,this.match(t.REVERT);break;case 4:this.state=2568,this.match(t.INSERT),this.state=2569,this.match(t.OR),this.state=2570,this.match(t.IGNORE);break;case 5:this.state=2571,this.match(t.REPLACE)}this.state=2574,this.match(t.INTO),this.state=2575,this.into_simple_table_ref(),this.state=2576,this.into_values_source()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}into_values_source(){let e=new wB(this.context,this.state);this.enterRule(e,368,t.RULE_into_values_source);try{switch(this.state=2584,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:case t.VALUES:if(this.enterOuterAlt(e,1),1===(this.state=2579,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2578,this.pure_column_list();this.state=2581,this.values_source();break;case t.DEFAULT:this.enterOuterAlt(e,2),this.state=2582,this.match(t.DEFAULT),this.state=2583,this.match(t.VALUES);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_stmt(){let e=new bB(this.context,this.state);this.enterRule(e,370,t.RULE_values_stmt);try{this.enterOuterAlt(e,1),this.state=2586,this.match(t.VALUES),this.state=2587,this.values_source_row_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_source(){let e=new WB(this.context,this.state);this.enterRule(e,372,t.RULE_values_source);try{switch(this.state=2591,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VALUES:this.enterOuterAlt(e,1),this.state=2589,this.values_stmt();break;case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.enterOuterAlt(e,2),this.state=2590,this.select_stmt();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_source_row_list(){let e,s=new VB(this.context,this.state);this.enterRule(s,374,t.RULE_values_source_row_list);try{for(this.enterOuterAlt(s,1),this.state=2593,this.values_source_row(),this.state=2598,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2594,this.match(t.COMMA),this.state=2595,this.values_source_row(),this.state=2600,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}values_source_row(){let e=new XB(this.context,this.state);this.enterRule(e,376,t.RULE_values_source_row);try{this.enterOuterAlt(e,1),this.state=2601,this.match(t.LPAREN),this.state=2602,this.expr_list(),this.state=2603,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simple_values_source(){let e=new KB(this.context,this.state);this.enterRule(e,378,t.RULE_simple_values_source);try{switch(this.state=2607,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2605,this.expr_list();break;case 2:this.enterOuterAlt(e,2),this.state=2606,this.select_stmt()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_external_data_source_stmt(){let e,s=new QB(this.context,this.state);this.enterRule(s,380,t.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2609,this.match(t.CREATE),this.state=2612,this.errorHandler.sync(this),e=this.tokenStream.LA(1),209===e&&(this.state=2610,this.match(t.OR),this.state=2611,this.match(t.REPLACE)),this.state=2614,this.match(t.EXTERNAL),this.state=2615,this.match(t.DATA),this.state=2616,this.match(t.SOURCE),this.state=2620,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2617,this.match(t.IF),this.state=2618,this.match(t.NOT),this.state=2619,this.match(t.EXISTS);this.state=2622,this.object_ref(),this.state=2623,this.with_table_settings()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_external_data_source_stmt(){let e,s=new JB(this.context,this.state);this.enterRule(s,382,t.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(s,1),this.state=2625,this.match(t.ALTER),this.state=2626,this.match(t.EXTERNAL),this.state=2627,this.match(t.DATA),this.state=2628,this.match(t.SOURCE),this.state=2629,this.object_ref(),this.state=2630,this.alter_external_data_source_action(),this.state=2635,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2631,this.match(t.COMMA),this.state=2632,this.alter_external_data_source_action(),this.state=2637,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_external_data_source_action(){let e=new ZB(this.context,this.state);this.enterRule(e,384,t.RULE_alter_external_data_source_action);try{switch(this.state=2641,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2638,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(e,2),this.state=2639,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(e,3),this.state=2640,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_external_data_source_stmt(){let e=new qB(this.context,this.state);this.enterRule(e,386,t.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=2643,this.match(t.DROP),this.state=2644,this.match(t.EXTERNAL),this.state=2645,this.match(t.DATA),this.state=2646,this.match(t.SOURCE),this.state=2649,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2647,this.match(t.IF),this.state=2648,this.match(t.EXISTS);this.state=2651,this.object_ref()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_view_stmt(){let e=new jB(this.context,this.state);this.enterRule(e,388,t.RULE_create_view_stmt);try{this.enterOuterAlt(e,1),this.state=2653,this.match(t.CREATE),this.state=2654,this.match(t.VIEW),this.state=2655,this.object_ref(),this.state=2656,this.with_table_settings(),this.state=2657,this.match(t.AS),this.state=2658,this.select_stmt()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_view_stmt(){let e=new zB(this.context,this.state);this.enterRule(e,390,t.RULE_drop_view_stmt);try{this.enterOuterAlt(e,1),this.state=2660,this.match(t.DROP),this.state=2661,this.match(t.VIEW),this.state=2662,this.object_ref()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}upsert_object_stmt(){let e,s=new $B(this.context,this.state);this.enterRule(s,392,t.RULE_upsert_object_stmt);try{this.enterOuterAlt(s,1),this.state=2664,this.match(t.UPSERT),this.state=2665,this.match(t.OBJECT),this.state=2666,this.object_ref(),this.state=2667,this.match(t.LPAREN),this.state=2668,this.match(t.TYPE),this.state=2669,this.object_type_ref(),this.state=2670,this.match(t.RPAREN),this.state=2672,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=2671,this.create_object_features())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_object_stmt(){let e,s=new ty(this.context,this.state);this.enterRule(s,394,t.RULE_create_object_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2674,this.match(t.CREATE),this.state=2675,this.match(t.OBJECT),this.state=2679,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,266,this.context)))this.state=2676,this.match(t.IF),this.state=2677,this.match(t.NOT),this.state=2678,this.match(t.EXISTS);this.state=2681,this.object_ref(),this.state=2682,this.match(t.LPAREN),this.state=2683,this.match(t.TYPE),this.state=2684,this.object_type_ref(),this.state=2685,this.match(t.RPAREN),this.state=2687,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=2686,this.create_object_features())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_object_features(){let e=new ey(this.context,this.state);this.enterRule(e,396,t.RULE_create_object_features);try{this.enterOuterAlt(e,1),this.state=2689,this.match(t.WITH),this.state=2690,this.object_features()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_object_stmt(){let e=new sy(this.context,this.state);this.enterRule(e,398,t.RULE_alter_object_stmt);try{this.enterOuterAlt(e,1),this.state=2692,this.match(t.ALTER),this.state=2693,this.match(t.OBJECT),this.state=2694,this.object_ref(),this.state=2695,this.match(t.LPAREN),this.state=2696,this.match(t.TYPE),this.state=2697,this.object_type_ref(),this.state=2698,this.match(t.RPAREN),this.state=2699,this.alter_object_features()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_object_features(){let e=new ay(this.context,this.state);this.enterRule(e,400,t.RULE_alter_object_features);try{this.enterOuterAlt(e,1),this.state=2701,this.match(t.SET),this.state=2702,this.object_features()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_object_stmt(){let e,s=new iy(this.context,this.state);this.enterRule(s,402,t.RULE_drop_object_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2704,this.match(t.DROP),this.state=2705,this.match(t.OBJECT),this.state=2708,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,268,this.context)))this.state=2706,this.match(t.IF),this.state=2707,this.match(t.EXISTS);this.state=2710,this.object_ref(),this.state=2711,this.match(t.LPAREN),this.state=2712,this.match(t.TYPE),this.state=2713,this.object_type_ref(),this.state=2714,this.match(t.RPAREN),this.state=2716,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=2715,this.drop_object_features())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}drop_object_features(){let e=new ry(this.context,this.state);this.enterRule(e,404,t.RULE_drop_object_features);try{this.enterOuterAlt(e,1),this.state=2718,this.match(t.WITH),this.state=2719,this.object_features()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_value(){let e=new cy(this.context,this.state);this.enterRule(e,406,t.RULE_object_feature_value);try{switch(this.state=2724,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=2721,this.id_or_type();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=2722,this.bind_parameter();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=2723,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_kv(){let e=new ny(this.context,this.state);this.enterRule(e,408,t.RULE_object_feature_kv);try{this.enterOuterAlt(e,1),this.state=2726,this.an_id_or_type(),this.state=2727,this.match(t.EQUALS),this.state=2728,this.object_feature_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_flag(){let e=new hy(this.context,this.state);this.enterRule(e,410,t.RULE_object_feature_flag);try{this.enterOuterAlt(e,1),this.state=2730,this.an_id_or_type()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature(){let e=new Ey(this.context,this.state);this.enterRule(e,412,t.RULE_object_feature);try{switch(this.state=2734,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2732,this.object_feature_kv();break;case 2:this.enterOuterAlt(e,2),this.state=2733,this.object_feature_flag()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_features(){let e,s=new Ty(this.context,this.state);this.enterRule(s,414,t.RULE_object_features);try{switch(this.state=2748,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2736,this.object_feature();break;case t.LPAREN:for(this.enterOuterAlt(s,2),this.state=2737,this.match(t.LPAREN),this.state=2738,this.object_feature(),this.state=2743,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2739,this.match(t.COMMA),this.state=2740,this.object_feature(),this.state=2745,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2746,this.match(t.RPAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}object_type_ref(){let e=new oy(this.context,this.state);this.enterRule(e,416,t.RULE_object_type_ref);try{this.enterOuterAlt(e,1),this.state=2750,this.an_id_or_type()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_table_stmt(){let e,s=new Ry(this.context,this.state);this.enterRule(s,418,t.RULE_create_table_stmt);try{let a;switch(this.enterOuterAlt(s,1),this.state=2752,this.match(t.CREATE),this.state=2755,this.errorHandler.sync(this),e=this.tokenStream.LA(1),209===e&&(this.state=2753,this.match(t.OR),this.state=2754,this.match(t.REPLACE)),this.state=2765,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLE:this.state=2757,this.match(t.TABLE);break;case t.TABLESTORE:this.state=2758,this.match(t.TABLESTORE);break;case t.EXTERNAL:this.state=2759,this.match(t.EXTERNAL),this.state=2760,this.match(t.TABLE);break;case t.TEMP:this.state=2761,this.match(t.TEMP),this.state=2762,this.match(t.TABLE);break;case t.TEMPORARY:this.state=2763,this.match(t.TEMPORARY),this.state=2764,this.match(t.TABLE);break;default:throw new he(this)}if(1===(this.state=2770,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,276,this.context)))this.state=2767,this.match(t.IF),this.state=2768,this.match(t.NOT),this.state=2769,this.match(t.EXISTS);for(this.state=2772,this.simple_table_ref(),this.state=2773,this.match(t.LPAREN),this.state=2774,this.create_table_entry(),this.state=2779,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,277,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=2775,this.match(t.COMMA),this.state=2776,this.create_table_entry()),this.state=2781,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,277,this.context);this.state=2783,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=2782,this.match(t.COMMA)),this.state=2785,this.match(t.RPAREN),this.state=2787,this.errorHandler.sync(this),e=this.tokenStream.LA(1),162===e&&(this.state=2786,this.table_inherits()),this.state=2790,this.errorHandler.sync(this),e=this.tokenStream.LA(1),215===e&&(this.state=2789,this.table_partition_by()),this.state=2793,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=2792,this.with_table_settings()),this.state=2796,this.errorHandler.sync(this),e=this.tokenStream.LA(1),280===e&&(this.state=2795,this.table_tablestore()),this.state=2799,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=2798,this.table_as_source())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_table_entry(){let e=new Ay(this.context,this.state);this.enterRule(e,420,t.RULE_create_table_entry);try{switch(this.state=2807,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,284,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2801,this.column_schema();break;case 2:this.enterOuterAlt(e,2),this.state=2802,this.table_constraint();break;case 3:this.enterOuterAlt(e,3),this.state=2803,this.table_index();break;case 4:this.enterOuterAlt(e,4),this.state=2804,this.family_entry();break;case 5:this.enterOuterAlt(e,5),this.state=2805,this.changefeed();break;case 6:this.enterOuterAlt(e,6),this.state=2806,this.an_id_schema()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_inherits(){let e,s=new Sy(this.context,this.state);this.enterRule(s,422,t.RULE_table_inherits);try{for(this.enterOuterAlt(s,1),this.state=2809,this.match(t.INHERITS),this.state=2810,this.match(t.LPAREN),this.state=2811,this.simple_table_ref_core(),this.state=2816,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2812,this.match(t.COMMA),this.state=2813,this.simple_table_ref_core(),this.state=2818,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2819,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_partition_by(){let e=new ly(this.context,this.state);this.enterRule(e,424,t.RULE_table_partition_by);try{this.enterOuterAlt(e,1),this.state=2821,this.match(t.PARTITION),this.state=2822,this.match(t.BY),this.state=2823,this.match(t.HASH),this.state=2824,this.pure_column_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_table_settings(){let e,s=new Oy(this.context,this.state);this.enterRule(s,426,t.RULE_with_table_settings);try{for(this.enterOuterAlt(s,1),this.state=2826,this.match(t.WITH),this.state=2827,this.match(t.LPAREN),this.state=2828,this.table_settings_entry(),this.state=2833,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2829,this.match(t.COMMA),this.state=2830,this.table_settings_entry(),this.state=2835,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2836,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_tablestore(){let e=new Iy(this.context,this.state);this.enterRule(e,428,t.RULE_table_tablestore);try{this.enterOuterAlt(e,1),this.state=2838,this.match(t.TABLESTORE),this.state=2839,this.simple_table_ref_core()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_settings_entry(){let e=new uy(this.context,this.state);this.enterRule(e,430,t.RULE_table_settings_entry);try{this.enterOuterAlt(e,1),this.state=2841,this.an_id(),this.state=2842,this.match(t.EQUALS),this.state=2843,this.table_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_as_source(){let e=new Ny(this.context,this.state);this.enterRule(e,432,t.RULE_table_as_source);try{this.enterOuterAlt(e,1),this.state=2845,this.match(t.AS),this.state=2846,this.values_source()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_stmt(){let e,s=new Ly(this.context,this.state);this.enterRule(s,434,t.RULE_alter_table_stmt);try{for(this.enterOuterAlt(s,1),this.state=2848,this.match(t.ALTER),this.state=2849,this.match(t.TABLE),this.state=2850,this.simple_table_ref(),this.state=2851,this.alter_table_action(),this.state=2856,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2852,this.match(t.COMMA),this.state=2853,this.alter_table_action(),this.state=2858,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_table_action(){let e=new Cy(this.context,this.state);this.enterRule(e,436,t.RULE_alter_table_action);try{switch(this.state=2874,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,288,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2859,this.alter_table_add_column();break;case 2:this.enterOuterAlt(e,2),this.state=2860,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(e,3),this.state=2861,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(e,4),this.state=2862,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(e,5),this.state=2863,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(e,6),this.state=2864,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(e,7),this.state=2865,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(e,8),this.state=2866,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(e,9),this.state=2867,this.alter_table_add_index();break;case 10:this.enterOuterAlt(e,10),this.state=2868,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(e,11),this.state=2869,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(e,12),this.state=2870,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(e,13),this.state=2871,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(e,14),this.state=2872,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(e,15),this.state=2873,this.alter_table_rename_index_to()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_external_table_stmt(){let e,s=new _y(this.context,this.state);this.enterRule(s,438,t.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(s,1),this.state=2876,this.match(t.ALTER),this.state=2877,this.match(t.EXTERNAL),this.state=2878,this.match(t.TABLE),this.state=2879,this.simple_table_ref(),this.state=2880,this.alter_external_table_action(),this.state=2885,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2881,this.match(t.COMMA),this.state=2882,this.alter_external_table_action(),this.state=2887,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_external_table_action(){let e=new Py(this.context,this.state);this.enterRule(e,440,t.RULE_alter_external_table_action);try{switch(this.state=2893,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,290,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2888,this.alter_table_add_column();break;case 2:this.enterOuterAlt(e,2),this.state=2889,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(e,3),this.state=2890,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(e,4),this.state=2891,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(e,5),this.state=2892,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_store_stmt(){let e,s=new My(this.context,this.state);this.enterRule(s,442,t.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(s,1),this.state=2895,this.match(t.ALTER),this.state=2896,this.match(t.TABLESTORE),this.state=2897,this.object_ref(),this.state=2898,this.alter_table_store_action(),this.state=2903,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2899,this.match(t.COMMA),this.state=2900,this.alter_table_store_action(),this.state=2905,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_table_store_action(){let e=new dy(this.context,this.state);this.enterRule(e,444,t.RULE_alter_table_store_action);try{switch(this.state=2908,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:this.enterOuterAlt(e,1),this.state=2906,this.alter_table_add_column();break;case t.DROP:this.enterOuterAlt(e,2),this.state=2907,this.alter_table_drop_column();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_column(){let e,s=new Uy(this.context,this.state);this.enterRule(s,446,t.RULE_alter_table_add_column);try{this.enterOuterAlt(s,1),this.state=2910,this.match(t.ADD),this.state=2912,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=2911,this.match(t.COLUMN)),this.state=2914,this.column_schema()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_table_drop_column(){let e=new my(this.context,this.state);this.enterRule(e,448,t.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(e,1),1===(this.state=2916,this.match(t.DROP),this.state=2918,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,294,this.context)))this.state=2917,this.match(t.COLUMN);this.state=2920,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column(){let e=new Dy(this.context,this.state);this.enterRule(e,450,t.RULE_alter_table_alter_column);try{this.enterOuterAlt(e,1),this.state=2922,this.match(t.ALTER),this.state=2923,this.match(t.COLUMN),this.state=2924,this.an_id(),this.state=2925,this.match(t.SET),this.state=2926,this.family_relation()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_column_family(){let e=new py(this.context,this.state);this.enterRule(e,452,t.RULE_alter_table_add_column_family);try{this.enterOuterAlt(e,1),this.state=2928,this.match(t.ADD),this.state=2929,this.family_entry()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column_family(){let e=new gy(this.context,this.state);this.enterRule(e,454,t.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(e,1),this.state=2931,this.match(t.ALTER),this.state=2932,this.match(t.FAMILY),this.state=2933,this.an_id(),this.state=2934,this.match(t.SET),this.state=2935,this.an_id(),this.state=2936,this.family_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_set_table_setting_uncompat(){let e=new xy(this.context,this.state);this.enterRule(e,456,t.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(e,1),this.state=2938,this.match(t.SET),this.state=2939,this.an_id(),this.state=2940,this.table_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_set_table_setting_compat(){let e,s=new ky(this.context,this.state);this.enterRule(s,458,t.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(s,1),this.state=2942,this.match(t.SET),this.state=2943,this.match(t.LPAREN),this.state=2944,this.alter_table_setting_entry(),this.state=2949,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2945,this.match(t.COMMA),this.state=2946,this.alter_table_setting_entry(),this.state=2951,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2952,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_table_reset_table_setting(){let e,s=new Hy(this.context,this.state);this.enterRule(s,460,t.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(s,1),this.state=2954,this.match(t.RESET),this.state=2955,this.match(t.LPAREN),this.state=2956,this.an_id(),this.state=2961,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=2957,this.match(t.COMMA),this.state=2958,this.an_id(),this.state=2963,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2964,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_table_add_index(){let e=new Gy(this.context,this.state);this.enterRule(e,462,t.RULE_alter_table_add_index);try{this.enterOuterAlt(e,1),this.state=2966,this.match(t.ADD),this.state=2967,this.table_index()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_drop_index(){let e=new Fy(this.context,this.state);this.enterRule(e,464,t.RULE_alter_table_drop_index);try{this.enterOuterAlt(e,1),this.state=2969,this.match(t.DROP),this.state=2970,this.match(t.INDEX),this.state=2971,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_rename_to(){let e=new vy(this.context,this.state);this.enterRule(e,466,t.RULE_alter_table_rename_to);try{this.enterOuterAlt(e,1),this.state=2973,this.match(t.RENAME),this.state=2974,this.match(t.TO),this.state=2975,this.an_id_table()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_rename_index_to(){let e=new By(this.context,this.state);this.enterRule(e,468,t.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(e,1),this.state=2977,this.match(t.RENAME),this.state=2978,this.match(t.INDEX),this.state=2979,this.an_id(),this.state=2980,this.match(t.TO),this.state=2981,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_changefeed(){let e=new yy(this.context,this.state);this.enterRule(e,470,t.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(e,1),this.state=2983,this.match(t.ADD),this.state=2984,this.changefeed()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_changefeed(){let e=new fy(this.context,this.state);this.enterRule(e,472,t.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(e,1),this.state=2986,this.match(t.ALTER),this.state=2987,this.match(t.CHANGEFEED),this.state=2988,this.an_id(),this.state=2989,this.changefeed_alter_settings()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_drop_changefeed(){let e=new Yy(this.context,this.state);this.enterRule(e,474,t.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(e,1),this.state=2991,this.match(t.DROP),this.state=2992,this.match(t.CHANGEFEED),this.state=2993,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}column_schema(){let e,s=new wy(this.context,this.state);this.enterRule(s,476,t.RULE_column_schema);try{this.enterOuterAlt(s,1),this.state=2995,this.an_id_schema(),this.state=2996,this.type_name_or_bind(),this.state=2998,this.errorHandler.sync(this),e=this.tokenStream.LA(1),134===e&&(this.state=2997,this.family_relation()),this.state=3e3,this.opt_column_constraints()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}family_relation(){let e=new by(this.context,this.state);this.enterRule(e,478,t.RULE_family_relation);try{this.enterOuterAlt(e,1),this.state=3002,this.match(t.FAMILY),this.state=3003,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_column_constraints(){let e,s=new Wy(this.context,this.state);this.enterRule(s,480,t.RULE_opt_column_constraints);try{this.enterOuterAlt(s,1),this.state=3009,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(196===e||198===e)&&(this.state=3006,this.errorHandler.sync(this),e=this.tokenStream.LA(1),196===e&&(this.state=3005,this.match(t.NOT)),this.state=3008,this.match(t.NULL)),this.state=3013,this.errorHandler.sync(this),e=this.tokenStream.LA(1),98===e&&(this.state=3011,this.match(t.DEFAULT),this.state=3012,this.expr())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}column_order_by_specification(){let e,s=new Vy(this.context,this.state);this.enterRule(s,482,t.RULE_column_order_by_specification);try{this.enterOuterAlt(s,1),this.state=3015,this.an_id(),this.state=3017,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(56===e||103===e)&&(this.state=3016,e=this.tokenStream.LA(1),56===e||103===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_constraint(){let e,s=new Xy(this.context,this.state);this.enterRule(s,484,t.RULE_table_constraint);try{switch(this.state=3058,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PRIMARY:for(this.enterOuterAlt(s,1),this.state=3019,this.match(t.PRIMARY),this.state=3020,this.match(t.KEY),this.state=3021,this.match(t.LPAREN),this.state=3022,this.an_id(),this.state=3027,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3023,this.match(t.COMMA),this.state=3024,this.an_id(),this.state=3029,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3030,this.match(t.RPAREN);break;case t.PARTITION:for(this.enterOuterAlt(s,2),this.state=3032,this.match(t.PARTITION),this.state=3033,this.match(t.BY),this.state=3034,this.match(t.LPAREN),this.state=3035,this.an_id(),this.state=3040,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3036,this.match(t.COMMA),this.state=3037,this.an_id(),this.state=3042,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3043,this.match(t.RPAREN);break;case t.ORDER:for(this.enterOuterAlt(s,3),this.state=3045,this.match(t.ORDER),this.state=3046,this.match(t.BY),this.state=3047,this.match(t.LPAREN),this.state=3048,this.column_order_by_specification(),this.state=3053,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3049,this.match(t.COMMA),this.state=3050,this.column_order_by_specification(),this.state=3055,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3056,this.match(t.RPAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_index(){let e,s=new Ky(this.context,this.state);this.enterRule(s,486,t.RULE_table_index);try{let a;if(this.enterOuterAlt(s,1),this.state=3060,this.match(t.INDEX),this.state=3061,this.an_id(),this.state=3062,this.table_index_type(),this.state=3083,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e){for(this.state=3063,this.match(t.WITH),this.state=3064,this.match(t.LPAREN),this.state=3065,this.an_id(),this.state=3066,this.match(t.EQUALS),this.state=3067,this.an_id(),this.state=3075,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,306,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3068,this.match(t.COMMA),this.state=3069,this.an_id(),this.state=3070,this.match(t.EQUALS),this.state=3071,this.an_id()),this.state=3077,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,306,this.context);this.state=3079,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3078,this.match(t.COMMA)),this.state=3081,this.match(t.RPAREN)}for(this.state=3085,this.match(t.ON),this.state=3086,this.match(t.LPAREN),this.state=3087,this.an_id_schema(),this.state=3092,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3088,this.match(t.COMMA),this.state=3089,this.an_id_schema(),this.state=3094,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=3095,this.match(t.RPAREN),this.state=3108,this.errorHandler.sync(this),e=this.tokenStream.LA(1),86===e){for(this.state=3096,this.match(t.COVER),this.state=3097,this.match(t.LPAREN),this.state=3098,this.an_id_schema(),this.state=3103,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3099,this.match(t.COMMA),this.state=3100,this.an_id_schema(),this.state=3105,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3106,this.match(t.RPAREN)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_index_type(){let e=new Qy(this.context,this.state);this.enterRule(e,488,t.RULE_table_index_type);try{switch(this.state=3112,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.GLOBAL:this.enterOuterAlt(e,1),this.state=3110,this.global_index();break;case t.LOCAL:this.enterOuterAlt(e,2),this.state=3111,this.local_index();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}global_index(){let e,s=new Jy(this.context,this.state);this.enterRule(s,490,t.RULE_global_index);try{this.enterOuterAlt(s,1),this.state=3114,this.match(t.GLOBAL),this.state=3116,this.errorHandler.sync(this),e=this.tokenStream.LA(1),296===e&&(this.state=3115,this.match(t.UNIQUE)),this.state=3119,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(59===e||275===e)&&(this.state=3118,e=this.tokenStream.LA(1),59===e||275===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}local_index(){let e=new Zy(this.context,this.state);this.enterRule(e,492,t.RULE_local_index);try{this.enterOuterAlt(e,1),this.state=3121,this.match(t.LOCAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed(){let e=new qy(this.context,this.state);this.enterRule(e,494,t.RULE_changefeed);try{this.enterOuterAlt(e,1),this.state=3123,this.match(t.CHANGEFEED),this.state=3124,this.an_id(),this.state=3125,this.match(t.WITH),this.state=3126,this.match(t.LPAREN),this.state=3127,this.changefeed_settings(),this.state=3128,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_settings(){let e,s=new jy(this.context,this.state);this.enterRule(s,496,t.RULE_changefeed_settings);try{for(this.enterOuterAlt(s,1),this.state=3130,this.changefeed_settings_entry(),this.state=3135,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3131,this.match(t.COMMA),this.state=3132,this.changefeed_settings_entry(),this.state=3137,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}changefeed_settings_entry(){let e=new zy(this.context,this.state);this.enterRule(e,498,t.RULE_changefeed_settings_entry);try{this.enterOuterAlt(e,1),this.state=3138,this.an_id(),this.state=3139,this.match(t.EQUALS),this.state=3140,this.changefeed_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_setting_value(){let e=new $y(this.context,this.state);this.enterRule(e,500,t.RULE_changefeed_setting_value);try{this.enterOuterAlt(e,1),this.state=3142,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_alter_settings(){let e=new tf(this.context,this.state);this.enterRule(e,502,t.RULE_changefeed_alter_settings);try{switch(this.state=3150,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISABLE:this.enterOuterAlt(e,1),this.state=3144,this.match(t.DISABLE);break;case t.SET:this.enterOuterAlt(e,2),this.state=3145,this.match(t.SET),this.state=3146,this.match(t.LPAREN),this.state=3147,this.changefeed_settings(),this.state=3148,this.match(t.RPAREN);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_setting_entry(){let e=new ef(this.context,this.state);this.enterRule(e,504,t.RULE_alter_table_setting_entry);try{this.enterOuterAlt(e,1),this.state=3152,this.an_id(),this.state=3153,this.match(t.EQUALS),this.state=3154,this.table_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_setting_value(){let e,s=new sf(this.context,this.state);this.enterRule(s,506,t.RULE_table_setting_value);try{switch(this.state=3168,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,318,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3156,this.id();break;case 2:this.enterOuterAlt(s,2),this.state=3157,this.match(t.STRING_VALUE);break;case 3:this.enterOuterAlt(s,3),this.state=3158,this.integer();break;case 4:this.enterOuterAlt(s,4),this.state=3159,this.split_boundaries();break;case 5:this.enterOuterAlt(s,5),this.state=3160,this.expr(),this.state=3161,this.match(t.ON),this.state=3162,this.an_id(),this.state=3165,this.errorHandler.sync(this),e=this.tokenStream.LA(1),55===e&&(this.state=3163,this.match(t.AS),this.state=3164,e=this.tokenStream.LA(1),!(e-189&-32)&&1<<e-189&11||260===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(s,6),this.state=3167,this.bool_value()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}family_entry(){let e=new af(this.context,this.state);this.enterRule(e,508,t.RULE_family_entry);try{this.enterOuterAlt(e,1),this.state=3170,this.match(t.FAMILY),this.state=3171,this.an_id(),this.state=3172,this.family_settings()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}family_settings(){let e,s=new rf(this.context,this.state);this.enterRule(s,510,t.RULE_family_settings);try{if(this.enterOuterAlt(s,1),this.state=3174,this.match(t.LPAREN),this.state=3183,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-44&-32)&&1<<e-44&4227334143||!(e-76&-32)&&1<<e-76&3221225471||!(e-108&-32)&&1<<e-108&3187668991||!(e-140&-32)&&1<<e-140&4294967231||!(e-172&-32)&&1<<e-172&4294966271||!(e-204&-32)&&1<<e-204&4294967279||!(e-236&-32)&&1<<e-236&4026531703||!(e-268&-32)&&1<<e-268&4282376187||!(e-300&-32)&&1<<e-300&524223)for(this.state=3175,this.family_settings_entry(),this.state=3180,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3176,this.match(t.COMMA),this.state=3177,this.family_settings_entry(),this.state=3182,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3185,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}family_settings_entry(){let e=new cf(this.context,this.state);this.enterRule(e,512,t.RULE_family_settings_entry);try{this.enterOuterAlt(e,1),this.state=3187,this.an_id(),this.state=3188,this.match(t.EQUALS),this.state=3189,this.family_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}family_setting_value(){let e=new nf(this.context,this.state);this.enterRule(e,514,t.RULE_family_setting_value);try{this.enterOuterAlt(e,1),this.state=3191,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}split_boundaries(){let e,s=new hf(this.context,this.state);this.enterRule(s,516,t.RULE_split_boundaries);try{switch(this.state=3205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,322,this.context)){case 1:for(this.enterOuterAlt(s,1),this.state=3193,this.match(t.LPAREN),this.state=3194,this.literal_value_list(),this.state=3199,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3195,this.match(t.COMMA),this.state=3196,this.literal_value_list(),this.state=3201,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3202,this.match(t.RPAREN);break;case 2:this.enterOuterAlt(s,2),this.state=3204,this.literal_value_list()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}literal_value_list(){let e,s=new Ef(this.context,this.state);this.enterRule(s,518,t.RULE_literal_value_list);try{for(this.enterOuterAlt(s,1),this.state=3207,this.match(t.LPAREN),this.state=3208,this.literal_value(),this.state=3213,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3209,this.match(t.COMMA),this.state=3210,this.literal_value(),this.state=3215,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3216,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}drop_table_stmt(){let e=new Tf(this.context,this.state);this.enterRule(e,520,t.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(e,1),this.state=3218,this.match(t.DROP),this.state=3223,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLE:this.state=3219,this.match(t.TABLE);break;case t.TABLESTORE:this.state=3220,this.match(t.TABLESTORE);break;case t.EXTERNAL:this.state=3221,this.match(t.EXTERNAL),this.state=3222,this.match(t.TABLE);break;default:throw new he(this)}if(1===(this.state=3227,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,325,this.context)))this.state=3225,this.match(t.IF),this.state=3226,this.match(t.EXISTS);this.state=3229,this.simple_table_ref()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_user_stmt(){let e,s=new of(this.context,this.state);this.enterRule(s,522,t.RULE_create_user_stmt);try{this.enterOuterAlt(s,1),this.state=3231,this.match(t.CREATE),this.state=3232,this.match(t.USER),this.state=3233,this.role_name(),this.state=3235,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(117===e||217===e)&&(this.state=3234,this.create_user_option())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_user_stmt(){let e,s=new Rf(this.context,this.state);this.enterRule(s,524,t.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3237,this.match(t.ALTER),this.state=3238,this.match(t.USER),this.state=3239,this.role_name(),this.state=3247,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ENCRYPTED:case t.PASSWORD:case t.WITH:this.state=3241,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=3240,this.match(t.WITH)),this.state=3243,this.create_user_option();break;case t.RENAME:this.state=3244,this.match(t.RENAME),this.state=3245,this.match(t.TO),this.state=3246,this.role_name();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_group_stmt(){let e,s=new Af(this.context,this.state);this.enterRule(s,526,t.RULE_create_group_stmt);try{let a;if(this.enterOuterAlt(s,1),this.state=3249,this.match(t.CREATE),this.state=3250,this.match(t.GROUP),this.state=3251,this.role_name(),this.state=3265,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e){for(this.state=3252,this.match(t.WITH),this.state=3253,this.match(t.USER),this.state=3254,this.role_name(),this.state=3259,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,329,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3255,this.match(t.COMMA),this.state=3256,this.role_name()),this.state=3261,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,329,this.context);this.state=3263,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3262,this.match(t.COMMA))}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_group_stmt(){let e,s=new Sf(this.context,this.state);this.enterRule(s,528,t.RULE_alter_group_stmt);try{let a;switch(this.enterOuterAlt(s,1),this.state=3267,this.match(t.ALTER),this.state=3268,this.match(t.GROUP),this.state=3269,this.role_name(),this.state=3286,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:case t.DROP:for(this.state=3270,e=this.tokenStream.LA(1),46===e||112===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3271,this.match(t.USER),this.state=3272,this.role_name(),this.state=3277,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,332,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3273,this.match(t.COMMA),this.state=3274,this.role_name()),this.state=3279,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,332,this.context);this.state=3281,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3280,this.match(t.COMMA));break;case t.RENAME:this.state=3283,this.match(t.RENAME),this.state=3284,this.match(t.TO),this.state=3285,this.role_name();break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}drop_role_stmt(){let e,s=new lf(this.context,this.state);this.enterRule(s,530,t.RULE_drop_role_stmt);try{let a;if(this.enterOuterAlt(s,1),1===(this.state=3288,this.match(t.DROP),this.state=3289,e=this.tokenStream.LA(1),148===e||302===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3292,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,335,this.context)))this.state=3290,this.match(t.IF),this.state=3291,this.match(t.EXISTS);for(this.state=3294,this.role_name(),this.state=3299,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,336,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3295,this.match(t.COMMA),this.state=3296,this.role_name()),this.state=3301,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,336,this.context);this.state=3303,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3302,this.match(t.COMMA))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}role_name(){let e=new Of(this.context,this.state);this.enterRule(e,532,t.RULE_role_name);try{switch(this.state=3307,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3305,this.an_id_or_type();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=3306,this.bind_parameter();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_user_option(){let e,s=new If(this.context,this.state);this.enterRule(s,534,t.RULE_create_user_option);try{this.enterOuterAlt(s,1),this.state=3310,this.errorHandler.sync(this),e=this.tokenStream.LA(1),117===e&&(this.state=3309,this.match(t.ENCRYPTED)),this.state=3312,this.match(t.PASSWORD),this.state=3313,this.expr()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}grant_permissions_stmt(){let e,s=new uf(this.context,this.state);this.enterRule(s,536,t.RULE_grant_permissions_stmt);try{let a;for(this.enterOuterAlt(s,1),this.state=3315,this.match(t.GRANT),this.state=3316,this.permission_name_target(),this.state=3317,this.match(t.ON),this.state=3318,this.an_id_schema(),this.state=3323,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3319,this.match(t.COMMA),this.state=3320,this.an_id_schema(),this.state=3325,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=3326,this.match(t.TO),this.state=3327,this.role_name(),this.state=3332,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,341,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3328,this.match(t.COMMA),this.state=3329,this.role_name()),this.state=3334,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,341,this.context);this.state=3336,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3335,this.match(t.COMMA)),this.state=3341,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=3338,this.match(t.WITH),this.state=3339,this.match(t.GRANT),this.state=3340,this.match(t.OPTION))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}revoke_permissions_stmt(){let e,s=new Nf(this.context,this.state);this.enterRule(s,538,t.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=3343,this.match(t.REVOKE),this.state=3347,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,344,this.context)))this.state=3344,this.match(t.GRANT),this.state=3345,this.match(t.OPTION),this.state=3346,this.match(t.FOR);for(this.state=3349,this.permission_name_target(),this.state=3350,this.match(t.ON),this.state=3351,this.an_id_schema(),this.state=3356,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3352,this.match(t.COMMA),this.state=3353,this.an_id_schema(),this.state=3358,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=3359,this.match(t.FROM),this.state=3360,this.role_name(),this.state=3365,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3361,this.match(t.COMMA),this.state=3362,this.role_name(),this.state=3367,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}permission_id(){let e,s=new Lf(this.context,this.state);this.enterRule(s,540,t.RULE_permission_id);try{switch(this.state=3392,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONNECT:this.enterOuterAlt(s,1),this.state=3368,this.match(t.CONNECT);break;case t.LIST:this.enterOuterAlt(s,2),this.state=3369,this.match(t.LIST);break;case t.INSERT:this.enterOuterAlt(s,3),this.state=3370,this.match(t.INSERT);break;case t.MANAGE:this.enterOuterAlt(s,4),this.state=3371,this.match(t.MANAGE);break;case t.DROP:this.enterOuterAlt(s,5),this.state=3372,this.match(t.DROP);break;case t.GRANT:this.enterOuterAlt(s,6),this.state=3373,this.match(t.GRANT);break;case t.MODIFY:this.enterOuterAlt(s,7),this.state=3374,this.match(t.MODIFY),this.state=3375,e=this.tokenStream.LA(1),61===e||278===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.ERASE:case t.UPDATE:this.enterOuterAlt(s,8),this.state=3376,e=this.tokenStream.LA(1),120===e||299===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3377,this.match(t.ROW);break;case t.ALTER:case t.DESCRIBE:case t.REMOVE:this.enterOuterAlt(s,9),this.state=3378,e=this.tokenStream.LA(1),49===e||104===e||237===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3379,this.match(t.SCHEMA);break;case t.SELECT:this.enterOuterAlt(s,10),this.state=3380,this.match(t.SELECT),this.state=3382,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(61===e||255===e||278===e)&&(this.state=3381,e=this.tokenStream.LA(1),61===e||255===e||278===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.FULL:case t.USE:this.enterOuterAlt(s,11),this.state=3384,e=this.tokenStream.LA(1),143===e||301===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3386,this.errorHandler.sync(this),e=this.tokenStream.LA(1),179===e&&(this.state=3385,this.match(t.LEGACY));break;case t.CREATE:this.enterOuterAlt(s,12),this.state=3388,this.match(t.CREATE),this.state=3390,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(107===e||229===e||277===e)&&(this.state=3389,e=this.tokenStream.LA(1),107===e||229===e||277===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}permission_name(){let e=new Cf(this.context,this.state);this.enterRule(e,542,t.RULE_permission_name);try{switch(this.state=3396,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.CONNECT:case t.CREATE:case t.DESCRIBE:case t.DROP:case t.ERASE:case t.FULL:case t.GRANT:case t.INSERT:case t.LIST:case t.MANAGE:case t.MODIFY:case t.REMOVE:case t.SELECT:case t.UPDATE:case t.USE:this.enterOuterAlt(e,1),this.state=3394,this.permission_id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=3395,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}permission_name_target(){let e,s=new _f(this.context,this.state);this.enterRule(s,544,t.RULE_permission_name_target);try{let a;switch(this.state=3413,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.CONNECT:case t.CREATE:case t.DESCRIBE:case t.DROP:case t.ERASE:case t.FULL:case t.GRANT:case t.INSERT:case t.LIST:case t.MANAGE:case t.MODIFY:case t.REMOVE:case t.SELECT:case t.UPDATE:case t.USE:case t.STRING_VALUE:for(this.enterOuterAlt(s,1),this.state=3398,this.permission_name(),this.state=3403,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,352,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3399,this.match(t.COMMA),this.state=3400,this.permission_name()),this.state=3405,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,352,this.context);this.state=3407,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3406,this.match(t.COMMA));break;case t.ALL:this.enterOuterAlt(s,2),this.state=3409,this.match(t.ALL),this.state=3411,this.errorHandler.sync(this),e=this.tokenStream.LA(1),227===e&&(this.state=3410,this.match(t.PRIVILEGES));break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_replication_stmt(){let e,s=new Pf(this.context,this.state);this.enterRule(s,546,t.RULE_create_replication_stmt);try{for(this.enterOuterAlt(s,1),this.state=3415,this.match(t.CREATE),this.state=3416,this.match(t.ASYNC),this.state=3417,this.match(t.REPLICATION),this.state=3418,this.object_ref(),this.state=3419,this.match(t.FOR),this.state=3420,this.replication_target(),this.state=3425,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3421,this.match(t.COMMA),this.state=3422,this.replication_target(),this.state=3427,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3428,this.match(t.WITH),this.state=3429,this.match(t.LPAREN),this.state=3430,this.replication_settings(),this.state=3431,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}replication_target(){let e=new Mf(this.context,this.state);this.enterRule(e,548,t.RULE_replication_target);try{this.enterOuterAlt(e,1),this.state=3433,this.object_ref(),this.state=3434,this.replication_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replication_settings(){let e,s=new df(this.context,this.state);this.enterRule(s,550,t.RULE_replication_settings);try{for(this.enterOuterAlt(s,1),this.state=3436,this.replication_settings_entry(),this.state=3441,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3437,this.match(t.COMMA),this.state=3438,this.replication_settings_entry(),this.state=3443,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}replication_settings_entry(){let e=new Uf(this.context,this.state);this.enterRule(e,552,t.RULE_replication_settings_entry);try{this.enterOuterAlt(e,1),this.state=3444,this.an_id(),this.state=3445,this.match(t.EQUALS),this.state=3446,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_replication_stmt(){let e,s=new mf(this.context,this.state);this.enterRule(s,554,t.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(s,1),this.state=3448,this.match(t.ALTER),this.state=3449,this.match(t.ASYNC),this.state=3450,this.match(t.REPLICATION),this.state=3451,this.object_ref(),this.state=3452,this.alter_replication_action(),this.state=3457,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3453,this.match(t.COMMA),this.state=3454,this.alter_replication_action(),this.state=3459,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_replication_action(){let e=new Df(this.context,this.state);this.enterRule(e,556,t.RULE_alter_replication_action);try{this.enterOuterAlt(e,1),this.state=3460,this.alter_replication_set_setting()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_replication_set_setting(){let e=new pf(this.context,this.state);this.enterRule(e,558,t.RULE_alter_replication_set_setting);try{this.enterOuterAlt(e,1),this.state=3462,this.match(t.SET),this.state=3463,this.match(t.LPAREN),this.state=3464,this.replication_settings(),this.state=3465,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_replication_stmt(){let e,s=new gf(this.context,this.state);this.enterRule(s,560,t.RULE_drop_replication_stmt);try{this.enterOuterAlt(s,1),this.state=3467,this.match(t.DROP),this.state=3468,this.match(t.ASYNC),this.state=3469,this.match(t.REPLICATION),this.state=3470,this.object_ref(),this.state=3472,this.errorHandler.sync(this),e=this.tokenStream.LA(1),71===e&&(this.state=3471,this.match(t.CASCADE))}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}action_or_subquery_args(){let e,s=new xf(this.context,this.state);this.enterRule(s,562,t.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(s,1),this.state=3474,this.opt_bind_parameter(),this.state=3479,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3475,this.match(t.COMMA),this.state=3476,this.opt_bind_parameter(),this.state=3481,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}define_action_or_subquery_stmt(){let e,s=new kf(this.context,this.state);this.enterRule(s,564,t.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(s,1),this.state=3482,this.match(t.DEFINE),this.state=3483,e=this.tokenStream.LA(1),45===e||271===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3484,this.bind_parameter(),this.state=3485,this.match(t.LPAREN),this.state=3487,this.errorHandler.sync(this),e=this.tokenStream.LA(1),33===e&&(this.state=3486,this.action_or_subquery_args()),this.state=3489,this.match(t.RPAREN),this.state=3490,this.match(t.AS),this.state=3491,this.define_action_or_subquery_body(),this.state=3492,this.match(t.END),this.state=3493,this.match(t.DEFINE)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}define_action_or_subquery_body(){let e,s=new Hf(this.context,this.state);this.enterRule(s,566,t.RULE_define_action_or_subquery_body);try{let a;for(this.enterOuterAlt(s,1),this.state=3498,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=3495,this.match(t.SEMICOLON),this.state=3500,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=3519,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-27&-32)&&1<<e-27&4194369||!(e-79&-32)&&1<<e-79&1086587137||!(e-111&-32)&&1<<e-111&2684882947||!(e-147&-32)&&1<<e-147&526465||!(e-214&-32)&&1<<e-214&67387905||!(e-250&-32)&&1<<e-250&4105||!(e-299&-32)&&1<<e-299&71){for(this.state=3501,this.sql_stmt_core(),this.state=3510,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,364,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;){if(1===a){this.state=3503,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3502,this.match(t.SEMICOLON),this.state=3505,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(24===e);this.state=3507,this.sql_stmt_core()}this.state=3512,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,364,this.context)}for(this.state=3516,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=3513,this.match(t.SEMICOLON),this.state=3518,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}if_stmt(){let e,s=new Gf(this.context,this.state);this.enterRule(s,568,t.RULE_if_stmt);try{this.enterOuterAlt(s,1),this.state=3522,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=3521,this.match(t.EVALUATE)),this.state=3524,this.match(t.IF),this.state=3525,this.expr(),this.state=3526,this.do_stmt(),this.state=3529,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=3527,this.match(t.ELSE),this.state=3528,this.do_stmt())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}for_stmt(){let e,s=new Ff(this.context,this.state);this.enterRule(s,570,t.RULE_for_stmt);try{this.enterOuterAlt(s,1),this.state=3532,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=3531,this.match(t.EVALUATE)),this.state=3535,this.errorHandler.sync(this),e=this.tokenStream.LA(1),214===e&&(this.state=3534,this.match(t.PARALLEL)),this.state=3537,this.match(t.FOR),this.state=3538,this.bind_parameter(),this.state=3539,this.match(t.IN),this.state=3540,this.expr(),this.state=3541,this.do_stmt(),this.state=3544,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=3542,this.match(t.ELSE),this.state=3543,this.do_stmt())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_ref(){let e,s=new vf(this.context,this.state);this.enterRule(s,572,t.RULE_table_ref);try{let a;if(this.enterOuterAlt(s,1),1===(this.state=3549,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,372,this.context)))this.state=3546,this.cluster_expr(),this.state=3547,this.match(t.DOT);switch(this.state=3552,this.errorHandler.sync(this),e=this.tokenStream.LA(1),31===e&&(this.state=3551,this.match(t.AT)),this.state=3584,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,380,this.context)){case 1:this.state=3554,this.table_key();break;case 2:if(this.state=3555,this.an_id_expr(),this.state=3556,this.match(t.LPAREN),this.state=3568,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-15&-32)&&1<<e-15&4031057949||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287){for(this.state=3557,this.table_arg(),this.state=3562,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,374,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3558,this.match(t.COMMA),this.state=3559,this.table_arg()),this.state=3564,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,374,this.context);this.state=3566,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3565,this.match(t.COMMA))}this.state=3570,this.match(t.RPAREN);break;case 3:this.state=3572,this.bind_parameter(),this.state=3578,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=3573,this.match(t.LPAREN),this.state=3575,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4030992413||!(e-47&-32)&&1<<e-47&4294901759||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-240&-32)&&1<<e-240&4294967295||!(e-272&-32)&&1<<e-272&4294967295||!(e-304&-32)&&1<<e-304&524287)&&(this.state=3574,this.expr_list()),this.state=3577,this.match(t.RPAREN)),this.state=3582,this.errorHandler.sync(this),e=this.tokenStream.LA(1),307===e&&(this.state=3580,this.match(t.VIEW),this.state=3581,this.view_name())}this.state=3587,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=3586,this.table_hints())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_key(){let e,s=new Bf(this.context,this.state);this.enterRule(s,574,t.RULE_table_key);try{this.enterOuterAlt(s,1),this.state=3589,this.id_table_or_type(),this.state=3592,this.errorHandler.sync(this),e=this.tokenStream.LA(1),307===e&&(this.state=3590,this.match(t.VIEW),this.state=3591,this.view_name())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_arg(){let e,s=new yf(this.context,this.state);this.enterRule(s,576,t.RULE_table_arg);try{this.enterOuterAlt(s,1),this.state=3595,this.errorHandler.sync(this),e=this.tokenStream.LA(1),31===e&&(this.state=3594,this.match(t.AT)),this.state=3597,this.named_expr(),this.state=3600,this.errorHandler.sync(this),e=this.tokenStream.LA(1),307===e&&(this.state=3598,this.match(t.VIEW),this.state=3599,this.view_name())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_hints(){let e,s=new ff(this.context,this.state);this.enterRule(s,578,t.RULE_table_hints);try{switch(this.enterOuterAlt(s,1),this.state=3602,this.match(t.WITH),this.state=3615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=3603,this.table_hint();break;case t.LPAREN:for(this.state=3604,this.match(t.LPAREN),this.state=3605,this.table_hint(),this.state=3610,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3606,this.match(t.COMMA),this.state=3607,this.table_hint(),this.state=3612,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3613,this.match(t.RPAREN);break;default:throw new he(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}table_hint(){let e,s=new Yf(this.context,this.state);this.enterRule(s,580,t.RULE_table_hint);try{let a;switch(this.state=3662,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,396,this.context)){case 1:if(this.enterOuterAlt(s,1),this.state=3617,this.an_id_hint(),this.state=3636,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e)switch(this.state=3618,this.match(t.EQUALS),this.state=3634,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=3619,this.type_name_tag();break;case t.LPAREN:for(this.state=3620,this.match(t.LPAREN),this.state=3621,this.type_name_tag(),this.state=3626,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,387,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3622,this.match(t.COMMA),this.state=3623,this.type_name_tag()),this.state=3628,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,387,this.context);this.state=3630,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3629,this.match(t.COMMA)),this.state=3632,this.match(t.RPAREN);break;default:throw new he(this)}break;case 2:this.enterOuterAlt(s,2),this.state=3638,e=this.tokenStream.LA(1),78===e||259===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3640,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=3639,this.match(t.EQUALS)),this.state=3642,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(s,3),this.state=3643,this.match(t.SCHEMA),this.state=3645,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=3644,this.match(t.EQUALS)),this.state=3647,this.match(t.LPAREN),this.state=3656,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-33&-32)&&1<<e-33&3221223425||!(e-65&-32)&&1<<e-65&4294967295||!(e-97&-32)&&1<<e-97&4294967295||!(e-129&-32)&&1<<e-129&4294836207||!(e-161&-32)&&1<<e-161&4294967295||!(e-193&-32)&&1<<e-193&4294967295||!(e-225&-32)&&1<<e-225&4294950911||!(e-257&-32)&&1<<e-257&4294967295||!(e-289&-32)&&1<<e-289&1073741821)for(this.state=3648,this.struct_arg_positional(),this.state=3653,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,393,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;)1===a&&(this.state=3649,this.match(t.COMMA),this.state=3650,this.struct_arg_positional()),this.state=3655,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,393,this.context);this.state=3659,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3658,this.match(t.COMMA)),this.state=3661,this.match(t.RPAREN)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}object_ref(){let e=new wf(this.context,this.state);this.enterRule(e,582,t.RULE_object_ref);try{if(this.enterOuterAlt(e,1),1===(this.state=3667,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,397,this.context)))this.state=3664,this.cluster_expr(),this.state=3665,this.match(t.DOT);this.state=3669,this.id_or_at()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simple_table_ref_core(){let e,s=new bf(this.context,this.state);this.enterRule(s,584,t.RULE_simple_table_ref_core);try{switch(this.state=3676,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,399,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3671,this.object_ref();break;case 2:this.enterOuterAlt(s,2),this.state=3673,this.errorHandler.sync(this),e=this.tokenStream.LA(1),31===e&&(this.state=3672,this.match(t.AT)),this.state=3675,this.bind_parameter()}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}simple_table_ref(){let e,s=new Wf(this.context,this.state);this.enterRule(s,586,t.RULE_simple_table_ref);try{this.enterOuterAlt(s,1),this.state=3678,this.simple_table_ref_core(),this.state=3680,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=3679,this.table_hints())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}into_simple_table_ref(){let e,s=new Vf(this.context,this.state);this.enterRule(s,588,t.RULE_into_simple_table_ref);try{this.enterOuterAlt(s,1),this.state=3682,this.simple_table_ref(),this.state=3686,this.errorHandler.sync(this),e=this.tokenStream.LA(1),120===e&&(this.state=3683,this.match(t.ERASE),this.state=3684,this.match(t.BY),this.state=3685,this.pure_column_list())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}delete_stmt(){let e,s=new Xf(this.context,this.state);this.enterRule(s,590,t.RULE_delete_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3688,this.match(t.DELETE),this.state=3689,this.match(t.FROM),this.state=3690,this.simple_table_ref(),this.state=3694,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHERE:this.state=3691,this.where_expr();break;case t.ON:this.state=3692,this.match(t.ON),this.state=3693,this.into_values_source();case t.EOF:case t.SEMICOLON:case t.END:case t.RETURNING:}this.state=3697,this.errorHandler.sync(this),e=this.tokenStream.LA(1),248===e&&(this.state=3696,this.returning_columns_list())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}update_stmt(){let e,s=new Kf(this.context,this.state);this.enterRule(s,592,t.RULE_update_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3699,this.match(t.UPDATE),this.state=3700,this.simple_table_ref(),this.state=3708,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.state=3701,this.match(t.SET),this.state=3702,this.set_clause_choice(),this.state=3704,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3703,this.where_expr());break;case t.ON:this.state=3706,this.match(t.ON),this.state=3707,this.into_values_source();break;default:throw new he(this)}this.state=3711,this.errorHandler.sync(this),e=this.tokenStream.LA(1),248===e&&(this.state=3710,this.returning_columns_list())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}set_clause_choice(){let e=new Qf(this.context,this.state);this.enterRule(e,594,t.RULE_set_clause_choice);try{switch(this.state=3715,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3713,this.set_clause_list();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=3714,this.multiple_column_assignment();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_clause_list(){let e,s=new Jf(this.context,this.state);this.enterRule(s,596,t.RULE_set_clause_list);try{for(this.enterOuterAlt(s,1),this.state=3717,this.set_clause(),this.state=3722,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3718,this.match(t.COMMA),this.state=3719,this.set_clause(),this.state=3724,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}set_clause(){let e=new Zf(this.context,this.state);this.enterRule(e,598,t.RULE_set_clause);try{this.enterOuterAlt(e,1),this.state=3725,this.set_target(),this.state=3726,this.match(t.EQUALS),this.state=3727,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_target(){let e=new qf(this.context,this.state);this.enterRule(e,600,t.RULE_set_target);try{this.enterOuterAlt(e,1),this.state=3729,this.column_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}multiple_column_assignment(){let e=new jf(this.context,this.state);this.enterRule(e,602,t.RULE_multiple_column_assignment);try{this.enterOuterAlt(e,1),this.state=3731,this.set_target_list(),this.state=3732,this.match(t.EQUALS),this.state=3733,this.match(t.LPAREN),this.state=3734,this.simple_values_source(),this.state=3735,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_target_list(){let e,s=new zf(this.context,this.state);this.enterRule(s,604,t.RULE_set_target_list);try{for(this.enterOuterAlt(s,1),this.state=3737,this.match(t.LPAREN),this.state=3738,this.set_target(),this.state=3743,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3739,this.match(t.COMMA),this.state=3740,this.set_target(),this.state=3745,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3746,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_topic_stmt(){let e,s=new $f(this.context,this.state);this.enterRule(s,606,t.RULE_create_topic_stmt);try{this.enterOuterAlt(s,1),this.state=3748,this.match(t.CREATE),this.state=3749,this.match(t.TOPIC),this.state=3750,this.topic_ref(),this.state=3752,this.errorHandler.sync(this),e=this.tokenStream.LA(1),27===e&&(this.state=3751,this.create_topic_entries()),this.state=3755,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=3754,this.with_topic_settings())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_topic_entries(){let e,s=new tY(this.context,this.state);this.enterRule(s,608,t.RULE_create_topic_entries);try{for(this.enterOuterAlt(s,1),this.state=3757,this.match(t.LPAREN),this.state=3758,this.create_topic_entry(),this.state=3763,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3759,this.match(t.COMMA),this.state=3760,this.create_topic_entry(),this.state=3765,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3766,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}create_topic_entry(){let e=new eY(this.context,this.state);this.enterRule(e,610,t.RULE_create_topic_entry);try{this.enterOuterAlt(e,1),this.state=3768,this.topic_create_consumer_entry()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_topic_settings(){let e=new sY(this.context,this.state);this.enterRule(e,612,t.RULE_with_topic_settings);try{this.enterOuterAlt(e,1),this.state=3770,this.match(t.WITH),this.state=3771,this.match(t.LPAREN),this.state=3772,this.topic_settings(),this.state=3773,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_stmt(){let e,s=new aY(this.context,this.state);this.enterRule(s,614,t.RULE_alter_topic_stmt);try{for(this.enterOuterAlt(s,1),this.state=3775,this.match(t.ALTER),this.state=3776,this.match(t.TOPIC),this.state=3777,this.topic_ref(),this.state=3778,this.alter_topic_action(),this.state=3783,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3779,this.match(t.COMMA),this.state=3780,this.alter_topic_action(),this.state=3785,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_topic_action(){let e=new iY(this.context,this.state);this.enterRule(e,616,t.RULE_alter_topic_action);try{switch(this.state=3791,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:this.enterOuterAlt(e,1),this.state=3786,this.alter_topic_add_consumer();break;case t.ALTER:this.enterOuterAlt(e,2),this.state=3787,this.alter_topic_alter_consumer();break;case t.DROP:this.enterOuterAlt(e,3),this.state=3788,this.alter_topic_drop_consumer();break;case t.SET:this.enterOuterAlt(e,4),this.state=3789,this.alter_topic_set_settings();break;case t.RESET:this.enterOuterAlt(e,5),this.state=3790,this.alter_topic_reset_settings();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_add_consumer(){let e=new rY(this.context,this.state);this.enterRule(e,618,t.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(e,1),this.state=3793,this.match(t.ADD),this.state=3794,this.topic_create_consumer_entry()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_create_consumer_entry(){let e,s=new cY(this.context,this.state);this.enterRule(s,620,t.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(s,1),this.state=3796,this.match(t.CONSUMER),this.state=3797,this.an_id(),this.state=3799,this.errorHandler.sync(this),e=this.tokenStream.LA(1),312===e&&(this.state=3798,this.topic_consumer_with_settings())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_topic_alter_consumer(){let e=new nY(this.context,this.state);this.enterRule(e,622,t.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(e,1),this.state=3801,this.match(t.ALTER),this.state=3802,this.match(t.CONSUMER),this.state=3803,this.topic_consumer_ref(),this.state=3804,this.alter_topic_alter_consumer_entry()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_alter_consumer_entry(){let e=new hY(this.context,this.state);this.enterRule(e,624,t.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=3808,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=3806,this.topic_alter_consumer_set();break;case t.RESET:this.enterOuterAlt(e,2),this.state=3807,this.topic_alter_consumer_reset();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_drop_consumer(){let e=new EY(this.context,this.state);this.enterRule(e,626,t.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(e,1),this.state=3810,this.match(t.DROP),this.state=3811,this.match(t.CONSUMER),this.state=3812,this.topic_consumer_ref()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_alter_consumer_set(){let e=new TY(this.context,this.state);this.enterRule(e,628,t.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(e,1),this.state=3814,this.match(t.SET),this.state=3815,this.match(t.LPAREN),this.state=3816,this.topic_consumer_settings(),this.state=3817,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_alter_consumer_reset(){let e,s=new oY(this.context,this.state);this.enterRule(s,630,t.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(s,1),this.state=3819,this.match(t.RESET),this.state=3820,this.match(t.LPAREN),this.state=3821,this.an_id(),this.state=3826,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3822,this.match(t.COMMA),this.state=3823,this.an_id(),this.state=3828,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3829,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}alter_topic_set_settings(){let e=new RY(this.context,this.state);this.enterRule(e,632,t.RULE_alter_topic_set_settings);try{this.enterOuterAlt(e,1),this.state=3831,this.match(t.SET),this.state=3832,this.match(t.LPAREN),this.state=3833,this.topic_settings(),this.state=3834,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_reset_settings(){let e,s=new AY(this.context,this.state);this.enterRule(s,634,t.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(s,1),this.state=3836,this.match(t.RESET),this.state=3837,this.match(t.LPAREN),this.state=3838,this.an_id(),this.state=3843,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3839,this.match(t.COMMA),this.state=3840,this.an_id_pure(),this.state=3845,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3846,this.match(t.RPAREN)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}drop_topic_stmt(){let e=new SY(this.context,this.state);this.enterRule(e,636,t.RULE_drop_topic_stmt);try{this.enterOuterAlt(e,1),this.state=3848,this.match(t.DROP),this.state=3849,this.match(t.TOPIC),this.state=3850,this.topic_ref()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_settings(){let e,s=new lY(this.context,this.state);this.enterRule(s,638,t.RULE_topic_settings);try{for(this.enterOuterAlt(s,1),this.state=3852,this.topic_settings_entry(),this.state=3857,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3853,this.match(t.COMMA),this.state=3854,this.topic_settings_entry(),this.state=3859,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}topic_settings_entry(){let e=new OY(this.context,this.state);this.enterRule(e,640,t.RULE_topic_settings_entry);try{this.enterOuterAlt(e,1),this.state=3860,this.an_id(),this.state=3861,this.match(t.EQUALS),this.state=3862,this.topic_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_setting_value(){let e=new IY(this.context,this.state);this.enterRule(e,642,t.RULE_topic_setting_value);try{this.enterOuterAlt(e,1),this.state=3864,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_with_settings(){let e=new uY(this.context,this.state);this.enterRule(e,644,t.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(e,1),this.state=3866,this.match(t.WITH),this.state=3867,this.match(t.LPAREN),this.state=3868,this.topic_consumer_settings(),this.state=3869,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_settings(){let e,s=new NY(this.context,this.state);this.enterRule(s,646,t.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(s,1),this.state=3871,this.topic_consumer_settings_entry(),this.state=3876,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3872,this.match(t.COMMA),this.state=3873,this.topic_consumer_settings_entry(),this.state=3878,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}topic_consumer_settings_entry(){let e=new LY(this.context,this.state);this.enterRule(e,648,t.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(e,1),this.state=3879,this.an_id(),this.state=3880,this.match(t.EQUALS),this.state=3881,this.topic_consumer_setting_value()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_setting_value(){let e=new CY(this.context,this.state);this.enterRule(e,650,t.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(e,1),this.state=3883,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_ref(){let e=new _Y(this.context,this.state);this.enterRule(e,652,t.RULE_topic_ref);try{if(this.enterOuterAlt(e,1),1===(this.state=3888,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,421,this.context)))this.state=3885,this.cluster_expr(),this.state=3886,this.match(t.DOT);this.state=3890,this.an_id()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_ref(){let e=new PY(this.context,this.state);this.enterRule(e,654,t.RULE_topic_consumer_ref);try{this.enterOuterAlt(e,1),this.state=3892,this.an_id_pure()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}null_treatment(){let e=new MY(this.context,this.state);this.enterRule(e,656,t.RULE_null_treatment);try{switch(this.state=3898,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESPECT:this.enterOuterAlt(e,1),this.state=3894,this.match(t.RESPECT),this.state=3895,this.match(t.NULLS);break;case t.IGNORE:this.enterOuterAlt(e,2),this.state=3896,this.match(t.IGNORE),this.state=3897,this.match(t.NULLS);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}filter_clause(){let e=new dY(this.context,this.state);this.enterRule(e,658,t.RULE_filter_clause);try{this.enterOuterAlt(e,1),this.state=3900,this.match(t.FILTER),this.state=3901,this.match(t.LPAREN),this.state=3902,this.where_expr(),this.state=3903,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_name_or_specification(){let e=new UY(this.context,this.state);this.enterRule(e,660,t.RULE_window_name_or_specification);try{switch(this.state=3907,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3905,this.window_name();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=3906,this.window_specification();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_name(){let e=new mY(this.context,this.state);this.enterRule(e,662,t.RULE_window_name);try{this.enterOuterAlt(e,1),this.state=3909,this.an_id_window()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_clause(){let e=new DY(this.context,this.state);this.enterRule(e,664,t.RULE_window_clause);try{this.enterOuterAlt(e,1),this.state=3911,this.match(t.WINDOW),this.state=3912,this.window_definition_list()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_definition_list(){let e,s=new pY(this.context,this.state);this.enterRule(s,666,t.RULE_window_definition_list);try{for(this.enterOuterAlt(s,1),this.state=3914,this.window_definition(),this.state=3919,this.errorHandler.sync(this),e=this.tokenStream.LA(1);26===e;)this.state=3915,this.match(t.COMMA),this.state=3916,this.window_definition(),this.state=3921,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}window_definition(){let e=new gY(this.context,this.state);this.enterRule(e,668,t.RULE_window_definition);try{this.enterOuterAlt(e,1),this.state=3922,this.new_window_name(),this.state=3923,this.match(t.AS),this.state=3924,this.window_specification()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}new_window_name(){let e=new xY(this.context,this.state);this.enterRule(e,670,t.RULE_new_window_name);try{this.enterOuterAlt(e,1),this.state=3926,this.window_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_specification(){let e=new kY(this.context,this.state);this.enterRule(e,672,t.RULE_window_specification);try{this.enterOuterAlt(e,1),this.state=3928,this.match(t.LPAREN),this.state=3929,this.window_specification_details(),this.state=3930,this.match(t.RPAREN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_specification_details(){let e,s=new HY(this.context,this.state);this.enterRule(s,674,t.RULE_window_specification_details);try{if(this.enterOuterAlt(s,1),1===(this.state=3933,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,425,this.context)))this.state=3932,this.existing_window_name();this.state=3936,this.errorHandler.sync(this),e=this.tokenStream.LA(1),215===e&&(this.state=3935,this.window_partition_clause()),this.state=3939,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=3938,this.window_order_clause()),this.state=3942,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(150===e||231===e||256===e)&&(this.state=3941,this.window_frame_clause())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}existing_window_name(){let e=new GY(this.context,this.state);this.enterRule(e,676,t.RULE_existing_window_name);try{this.enterOuterAlt(e,1),this.state=3944,this.window_name()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_partition_clause(){let e,s=new FY(this.context,this.state);this.enterRule(s,678,t.RULE_window_partition_clause);try{this.enterOuterAlt(s,1),this.state=3946,this.match(t.PARTITION),this.state=3948,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=3947,this.match(t.COMPACT)),this.state=3950,this.match(t.BY),this.state=3951,this.named_expr_list()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}window_order_clause(){let e=new vY(this.context,this.state);this.enterRule(e,680,t.RULE_window_order_clause);try{this.enterOuterAlt(e,1),this.state=3953,this.order_by_clause()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_clause(){let e,s=new BY(this.context,this.state);this.enterRule(s,682,t.RULE_window_frame_clause);try{this.enterOuterAlt(s,1),this.state=3955,this.window_frame_units(),this.state=3956,this.window_frame_extent(),this.state=3958,this.errorHandler.sync(this),e=this.tokenStream.LA(1),125===e&&(this.state=3957,this.window_frame_exclusion())}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}window_frame_units(){let e,s=new yY(this.context,this.state);this.enterRule(s,684,t.RULE_window_frame_units);try{this.enterOuterAlt(s,1),this.state=3960,e=this.tokenStream.LA(1),150===e||231===e||256===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}window_frame_extent(){let e=new fY(this.context,this.state);this.enterRule(e,686,t.RULE_window_frame_extent);try{switch(this.state=3964,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,431,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3962,this.window_frame_bound();break;case 2:this.enterOuterAlt(e,2),this.state=3963,this.window_frame_between()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_between(){let e=new YY(this.context,this.state);this.enterRule(e,688,t.RULE_window_frame_between);try{this.enterOuterAlt(e,1),this.state=3966,this.match(t.BETWEEN),this.state=3967,this.window_frame_bound(),this.state=3968,this.match(t.AND),this.state=3969,this.window_frame_bound()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_bound(){let e,s=new wY(this.context,this.state);this.enterRule(s,690,t.RULE_window_frame_bound);try{switch(this.state=3978,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,433,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3971,this.match(t.CURRENT),this.state=3972,this.match(t.ROW);break;case 2:switch(this.enterOuterAlt(s,2),this.state=3975,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,432,this.context)){case 1:this.state=3973,this.expr();break;case 2:this.state=3974,this.match(t.UNBOUNDED)}this.state=3977,e=this.tokenStream.LA(1),139===e||224===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}window_frame_exclusion(){let e=new bY(this.context,this.state);this.enterRule(e,692,t.RULE_window_frame_exclusion);try{switch(this.state=3990,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,434,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3980,this.match(t.EXCLUDE),this.state=3981,this.match(t.CURRENT),this.state=3982,this.match(t.ROW);break;case 2:this.enterOuterAlt(e,2),this.state=3983,this.match(t.EXCLUDE),this.state=3984,this.match(t.GROUP);break;case 3:this.enterOuterAlt(e,3),this.state=3985,this.match(t.EXCLUDE),this.state=3986,this.match(t.TIES);break;case 4:this.enterOuterAlt(e,4),this.state=3987,this.match(t.EXCLUDE),this.state=3988,this.match(t.NO),this.state=3989,this.match(t.OTHERS)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}use_stmt(){let e=new WY(this.context,this.state);this.enterRule(e,694,t.RULE_use_stmt);try{this.enterOuterAlt(e,1),this.state=3992,this.match(t.USE),this.state=3993,this.cluster_expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}subselect_stmt(){let e=new VY(this.context,this.state);this.enterRule(e,696,t.RULE_subselect_stmt);try{switch(this.enterOuterAlt(e,1),this.state=4e3,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:this.state=3995,this.match(t.LPAREN),this.state=3996,this.select_stmt(),this.state=3997,this.match(t.RPAREN);break;case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.state=3999,this.select_unparenthesized_stmt();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}named_nodes_stmt(){let e=new XY(this.context,this.state);this.enterRule(e,698,t.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(e,1),this.state=4002,this.bind_parameter_list(),this.state=4003,this.match(t.EQUALS),this.state=4006,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,436,this.context)){case 1:this.state=4004,this.expr();break;case 2:this.state=4005,this.subselect_stmt()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commit_stmt(){let e=new KY(this.context,this.state);this.enterRule(e,700,t.RULE_commit_stmt);try{this.enterOuterAlt(e,1),this.state=4008,this.match(t.COMMIT)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rollback_stmt(){let e=new QY(this.context,this.state);this.enterRule(e,702,t.RULE_rollback_stmt);try{this.enterOuterAlt(e,1),this.state=4010,this.match(t.ROLLBACK)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}identifier(){let e,s=new JY(this.context,this.state);this.enterRule(s,704,t.RULE_identifier);try{this.enterOuterAlt(s,1),this.state=4012,e=this.tokenStream.LA(1),317===e||318===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}id(){let e=new ZY(this.context,this.state);this.enterRule(e,706,t.RULE_id);try{switch(this.state=4016,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4014,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4015,this.keyword();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_schema(){let e=new qY(this.context,this.state);this.enterRule(e,708,t.RULE_id_schema);try{switch(this.state=4025,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4018,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4019,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4020,this.keyword_expr_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4021,this.keyword_select_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4022,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4023,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4024,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_expr(){let e=new jY(this.context,this.state);this.enterRule(e,710,t.RULE_id_expr);try{switch(this.state=4033,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4027,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4028,this.keyword_compat();break;case t.COLUMN:this.enterOuterAlt(e,3),this.state=4029,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,4),this.state=4030,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,5),this.state=4031,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,6),this.state=4032,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_expr_in(){let e=new zY(this.context,this.state);this.enterRule(e,712,t.RULE_id_expr_in);try{switch(this.state=4040,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4035,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4036,this.keyword_compat();break;case t.COLUMN:this.enterOuterAlt(e,3),this.state=4037,this.keyword_alter_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,4),this.state=4038,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,5),this.state=4039,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_window(){let e=new $Y(this.context,this.state);this.enterRule(e,714,t.RULE_id_window);try{switch(this.state=4050,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4042,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4043,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4044,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,4),this.state=4045,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,5),this.state=4046,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,6),this.state=4047,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,7),this.state=4048,this.keyword_in_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,8),this.state=4049,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_table(){let e=new tw(this.context,this.state);this.enterRule(e,716,t.RULE_id_table);try{switch(this.state=4059,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4052,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4053,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4054,this.keyword_expr_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4055,this.keyword_select_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4056,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4057,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4058,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_without(){let e=new ew(this.context,this.state);this.enterRule(e,718,t.RULE_id_without);try{switch(this.state=4068,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4061,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4062,this.keyword_compat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,3),this.state=4063,this.keyword_table_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,4),this.state=4064,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4065,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4066,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4067,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_hint(){let e=new sw(this.context,this.state);this.enterRule(e,720,t.RULE_id_hint);try{switch(this.state=4078,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4070,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4071,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4072,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,4),this.state=4073,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,5),this.state=4074,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,6),this.state=4075,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,7),this.state=4076,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,8),this.state=4077,this.keyword_window_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_as_compat(){let e=new aw(this.context,this.state);this.enterRule(e,722,t.RULE_id_as_compat);try{switch(this.state=4082,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4080,this.identifier();break;case t.ATTRIBUTES:case t.CONNECT:case t.CONSUMER:case t.DATA:case t.DESCRIBE:case t.DIRECTORY:case t.FIRST:case t.GRANT:case t.INITIAL:case t.LAST:case t.LEGACY:case t.MANAGE:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.OMIT:case t.ONE:case t.OPTION:case t.PARALLEL:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PRIVILEGES:case t.QUEUE:case t.REMOVE:case t.REPLICATION:case t.REVOKE:case t.SECONDS:case t.SEEK:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBSET:case t.TABLES:case t.TOPIC:case t.TYPE:case t.UNMATCHED:this.enterOuterAlt(e,2),this.state=4081,this.keyword_as_compat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id(){let e=new iw(this.context,this.state);this.enterRule(e,724,t.RULE_an_id);try{switch(this.state=4086,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4084,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4085,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_or_type(){let e=new rw(this.context,this.state);this.enterRule(e,726,t.RULE_an_id_or_type);try{switch(this.state=4090,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4088,this.id_or_type();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4089,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_schema(){let e=new cw(this.context,this.state);this.enterRule(e,728,t.RULE_an_id_schema);try{switch(this.state=4094,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4092,this.id_schema();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4093,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_expr(){let e=new nw(this.context,this.state);this.enterRule(e,730,t.RULE_an_id_expr);try{switch(this.state=4098,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4096,this.id_expr();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4097,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_expr_in(){let e=new hw(this.context,this.state);this.enterRule(e,732,t.RULE_an_id_expr_in);try{switch(this.state=4102,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4100,this.id_expr_in();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4101,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_window(){let e=new Ew(this.context,this.state);this.enterRule(e,734,t.RULE_an_id_window);try{switch(this.state=4106,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4104,this.id_window();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4105,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_table(){let e=new Tw(this.context,this.state);this.enterRule(e,736,t.RULE_an_id_table);try{switch(this.state=4110,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4108,this.id_table();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4109,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_without(){let e=new ow(this.context,this.state);this.enterRule(e,738,t.RULE_an_id_without);try{switch(this.state=4114,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4112,this.id_without();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4113,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_hint(){let e=new Rw(this.context,this.state);this.enterRule(e,740,t.RULE_an_id_hint);try{switch(this.state=4118,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4116,this.id_hint();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4117,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_pure(){let e=new Aw(this.context,this.state);this.enterRule(e,742,t.RULE_an_id_pure);try{switch(this.state=4122,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4120,this.identifier();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4121,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_as_compat(){let e=new Sw(this.context,this.state);this.enterRule(e,744,t.RULE_an_id_as_compat);try{switch(this.state=4126,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ATTRIBUTES:case t.CONNECT:case t.CONSUMER:case t.DATA:case t.DESCRIBE:case t.DIRECTORY:case t.FIRST:case t.GRANT:case t.INITIAL:case t.LAST:case t.LEGACY:case t.MANAGE:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.OMIT:case t.ONE:case t.OPTION:case t.PARALLEL:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PRIVILEGES:case t.QUEUE:case t.REMOVE:case t.REPLICATION:case t.REVOKE:case t.SECONDS:case t.SEEK:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBSET:case t.TABLES:case t.TOPIC:case t.TYPE:case t.UNMATCHED:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4124,this.id_as_compat();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4125,this.match(t.STRING_VALUE);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}view_name(){let e=new lw(this.context,this.state);this.enterRule(e,746,t.RULE_view_name);try{switch(this.state=4131,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4128,this.an_id();break;case 2:this.enterOuterAlt(e,2),this.state=4129,this.match(t.PRIMARY),this.state=4130,this.match(t.KEY)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_id_prefix(){let e=new Ow(this.context,this.state);this.enterRule(e,748,t.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(e,1),this.state=4136,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,458,this.context)))this.state=4133,this.an_id(),this.state=4134,this.match(t.DOT)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cluster_expr(){let e=new Iw(this.context,this.state);this.enterRule(e,750,t.RULE_cluster_expr);try{if(this.enterOuterAlt(e,1),1===(this.state=4141,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)))this.state=4138,this.an_id(),this.state=4139,this.match(t.COLON);switch(this.state=4145,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=4143,this.pure_column_or_named();break;case t.ASTERISK:this.state=4144,this.match(t.ASTERISK);break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_or_type(){let e=new uw(this.context,this.state);this.enterRule(e,752,t.RULE_id_or_type);try{switch(this.state=4149,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4147,this.id();break;case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(e,2),this.state=4148,this.type_id();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_id_prefix_or_type(){let e=new Nw(this.context,this.state);this.enterRule(e,754,t.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(e,1),this.state=4154,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,462,this.context)))this.state=4151,this.an_id_or_type(),this.state=4152,this.match(t.DOT)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_or_at(){let e,s=new Lw(this.context,this.state);this.enterRule(s,756,t.RULE_id_or_at);try{this.enterOuterAlt(s,1),this.state=4157,this.errorHandler.sync(this),e=this.tokenStream.LA(1),31===e&&(this.state=4156,this.match(t.AT)),this.state=4159,this.an_id_or_type()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}id_table_or_type(){let e=new Cw(this.context,this.state);this.enterRule(e,758,t.RULE_id_table_or_type);try{switch(this.state=4163,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4161,this.an_id_table();break;case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(e,2),this.state=4162,this.type_id();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_table_or_at(){let e,s=new _w(this.context,this.state);this.enterRule(s,760,t.RULE_id_table_or_at);try{this.enterOuterAlt(s,1),this.state=4166,this.errorHandler.sync(this),e=this.tokenStream.LA(1),31===e&&(this.state=4165,this.match(t.AT)),this.state=4168,this.id_table_or_type()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword(){let e=new Pw(this.context,this.state);this.enterRule(e,762,t.RULE_keyword);try{switch(this.state=4178,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.SKIP_RULE:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,1),this.state=4170,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,2),this.state=4171,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,3),this.state=4172,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4173,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,5),this.state=4174,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,6),this.state=4175,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,7),this.state=4176,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,8),this.state=4177,this.keyword_hint_uncompat();break;default:throw new he(this)}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_expr_uncompat(){let e,s=new Mw(this.context,this.state);this.enterRule(s,764,t.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(s,1),this.state=4180,e=this.tokenStream.LA(1),!(e-58&-32)&&1<<e-58&2147534337||!(e-91&-32)&&1<<e-91&33554439||!(e-128&-32)&&1<<e-128&33603585||!(e-173&-32)&&1<<e-173&41944071||!(e-228&-32)&&1<<e-228&68681745||!(e-262&-32)&&1<<e-262&2147487745||309===e||310===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword_table_uncompat(){let e,s=new dw(this.context,this.state);this.enterRule(s,766,t.RULE_keyword_table_uncompat);try{this.enterOuterAlt(s,1),this.state=4182,e=this.tokenStream.LA(1),53===e||120===e||269===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword_select_uncompat(){let e,s=new Uw(this.context,this.state);this.enterRule(s,768,t.RULE_keyword_select_uncompat);try{this.enterOuterAlt(s,1),this.state=4184,e=this.tokenStream.LA(1),!(e-48&-32)&&1<<e-48&641||110===e||124===e||!(e-152&-32)&&1<<e-152&536936449||!(e-295&-32)&&1<<e-295&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword_alter_uncompat(){let e=new mw(this.context,this.state);this.enterRule(e,770,t.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(e,1),this.state=4186,this.match(t.COLUMN)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_in_uncompat(){let e=new Dw(this.context,this.state);this.enterRule(e,772,t.RULE_keyword_in_uncompat);try{this.enterOuterAlt(e,1),this.state=4188,this.match(t.COMPACT)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_window_uncompat(){let e,s=new pw(this.context,this.state);this.enterRule(s,774,t.RULE_keyword_window_uncompat);try{this.enterOuterAlt(s,1),this.state=4190,e=this.tokenStream.LA(1),150===e||231===e||256===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword_hint_uncompat(){let e,s=new gw(this.context,this.state);this.enterRule(s,776,t.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(s,1),this.state=4192,e=this.tokenStream.LA(1),78===e||259===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword_as_compat(){let e,s=new xw(this.context,this.state);this.enterRule(s,778,t.RULE_keyword_as_compat);try{this.enterOuterAlt(s,1),this.state=4194,e=this.tokenStream.LA(1),!(e-61&-32)&&1<<e-61&20971521||!(e-94&-32)&&1<<e-94&9217||!(e-136&-32)&&1<<e-136&134219777||!(e-177&-32)&&1<<e-177&1409482373||!(e-214&-32)&&1<<e-214&142647537||!(e-250&-32)&&1<<e-250&273091585||!(e-287&-32)&&1<<e-287&2081?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}keyword_compat(){let e,s=new kw(this.context,this.state);this.enterRule(s,780,t.RULE_keyword_compat);try{this.enterOuterAlt(s,1),this.state=4196,e=this.tokenStream.LA(1),!(e-44&-32)&&1<<e-44&3396834799||!(e-76&-32)&&1<<e-76&3220987881||!(e-108&-32)&&1<<e-108&3186550523||!(e-140&-32)&&1<<e-140&4026518451||!(e-172&-32)&&1<<e-172&4211077617||!(e-204&-32)&&1<<e-204&3875536879||!(e-236&-32)&&1<<e-236&3949717367||!(e-268&-32)&&1<<e-268&4114603961||!(e-300&-32)&&1<<e-300&53695?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}type_id(){let e,s=new Hw(this.context,this.state);this.enterRule(s,782,t.RULE_type_id);try{this.enterOuterAlt(s,1),this.state=4198,e=this.tokenStream.LA(1),70===e||106===e||119===e||138===e||182===e||208===e||!(e-243&-32)&&1<<e-243&136314881||!(e-281&-32)&&1<<e-281&33555457?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}bool_value(){let e,s=new Gw(this.context,this.state);this.enterRule(s,784,t.RULE_bool_value);try{this.enterOuterAlt(s,1),this.state=4200,e=this.tokenStream.LA(1),133===e||290===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}real(){let e=new Fw(this.context,this.state);this.enterRule(e,786,t.RULE_real);try{this.enterOuterAlt(e,1),this.state=4202,this.match(t.REAL)}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}integer(){let e,s=new vw(this.context,this.state);this.enterRule(s,788,t.RULE_integer);try{this.enterOuterAlt(s,1),this.state=4204,e=this.tokenStream.LA(1),319===e||320===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sql_query_yq(){let e=new Bw(this.context,this.state);this.enterRule(e,790,t.RULE_sql_query_yq);try{switch(this.state=4211,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,467,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4206,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(e,2),this.state=4207,this.match(t.PRAGMA),this.state=4208,this.match(t.ANSI),this.state=4209,this.match(t.DIGITS),this.state=4210,this.ansi_sql_stmt_list()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt_list_yq(){let e,s=new yw(this.context,this.state);this.enterRule(s,792,t.RULE_sql_stmt_list_yq);try{let a;for(this.enterOuterAlt(s,1),this.state=4216,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=4213,this.match(t.SEMICOLON),this.state=4218,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=4219,this.sql_stmt_yq(),this.state=4228,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,470,this.context);2!==a&&a!==q.INVALID_ALT_NUMBER;){if(1===a){this.state=4221,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4220,this.match(t.SEMICOLON),this.state=4223,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(24===e);this.state=4225,this.sql_stmt_yq()}this.state=4230,this.errorHandler.sync(this),a=this.interpreter.adaptivePredict(this.tokenStream,470,this.context)}for(this.state=4234,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=4231,this.match(t.SEMICOLON),this.state=4236,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4237,this.match(t.EOF)}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sql_stmt_yq(){let e,s=new fw(this.context,this.state);this.enterRule(s,794,t.RULE_sql_stmt_yq);try{this.enterOuterAlt(s,1),this.state=4244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=4239,this.match(t.EXPLAIN),this.state=4242,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1===e&&(this.state=4240,this.match(t.QUERY),this.state=4241,this.match(t.PLAN))),this.state=4246,this.sql_stmt_core_yq()}catch(Is){if(!(Is instanceof qt))throw Is;this.errorHandler.reportError(this,Is),this.errorHandler.recover(this,Is)}finally{this.exitRule()}return s}sql_stmt_core_yq(){let e=new Yw(this.context,this.state);this.enterRule(e,796,t.RULE_sql_stmt_core_yq);try{switch(this.state=4261,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,474,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4248,this.pragma_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=4249,this.select_stmt();break;case 3:this.enterOuterAlt(e,3),this.state=4250,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(e,4),this.state=4251,this.use_stmt();break;case 5:this.enterOuterAlt(e,5),this.state=4252,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(e,6),this.state=4253,this.declare_stmt();break;case 7:this.enterOuterAlt(e,7),this.state=4254,this.import_stmt();break;case 8:this.enterOuterAlt(e,8),this.state=4255,this.export_stmt();break;case 9:this.enterOuterAlt(e,9),this.state=4256,this.do_stmt();break;case 10:this.enterOuterAlt(e,10),this.state=4257,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(e,11),this.state=4258,this.if_stmt();break;case 12:this.enterOuterAlt(e,12),this.state=4259,this.for_stmt();break;case 13:this.enterOuterAlt(e,13),this.state=4260,this.values_stmt()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replication_name(){let e=new ww(this.context,this.state);this.enterRule(e,798,t.RULE_replication_name);try{this.enterOuterAlt(e,1),this.state=4263,this.match(t.AS),this.state=4264,this.object_ref()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}where_expr(){let e=new bw(this.context,this.state);this.enterRule(e,800,t.RULE_where_expr);try{this.enterOuterAlt(e,1),this.state=4266,this.match(t.WHERE),this.state=4267,this.expr()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}from_stmt(){let e=new Ww(this.context,this.state);this.enterRule(e,802,t.RULE_from_stmt);try{this.enterOuterAlt(e,1),this.state=4269,this.match(t.FROM),this.state=4270,this.join_source()}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_for_autocomplete(){let e=new Vw(this.context,this.state);this.enterRule(e,804,t.RULE_alter_table_for_autocomplete);try{switch(this.state=4274,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,475,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4272,this.alter_table_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=4273,this.alter_table_store_stmt()}}catch(s){if(!(s instanceof qt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}static{this._serializedATN=[4,1,324,4277,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,1,0,1,0,1,0,1,0,1,0,3,0,812,8,0,1,1,5,1,815,8,1,10,1,12,1,818,9,1,1,1,1,1,4,1,822,8,1,11,1,12,1,823,1,1,5,1,827,8,1,10,1,12,1,830,9,1,1,1,5,1,833,8,1,10,1,12,1,836,9,1,1,1,1,1,1,2,5,2,841,8,2,10,2,12,2,844,9,2,1,2,1,2,1,3,5,3,849,8,3,10,3,12,3,852,9,3,1,3,1,3,4,3,856,8,3,11,3,12,3,857,5,3,860,8,3,10,3,12,3,863,9,3,1,3,1,3,1,3,5,3,868,8,3,10,3,12,3,871,9,3,1,4,1,4,3,4,875,8,4,1,5,1,5,1,5,3,5,880,8,5,3,5,882,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,930,8,6,1,7,1,7,1,7,5,7,935,8,7,10,7,12,7,938,9,7,1,7,3,7,941,8,7,1,8,1,8,1,8,5,8,946,8,8,10,8,12,8,949,9,8,1,9,1,9,1,9,5,9,954,8,9,10,9,12,9,957,9,9,1,10,1,10,3,10,961,8,10,1,11,1,11,3,11,965,8,11,1,11,1,11,1,11,1,12,3,12,971,8,12,1,12,1,12,1,12,1,12,3,12,977,8,12,1,12,3,12,980,8,12,1,12,1,12,3,12,984,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,992,8,12,1,12,1,12,3,12,996,8,12,1,12,3,12,999,8,12,1,12,1,12,3,12,1003,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1014,8,12,1,12,4,12,1017,8,12,11,12,12,12,1018,3,12,1021,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1028,8,14,10,14,12,14,1031,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1051,8,18,1,18,5,18,1054,8,18,10,18,12,18,1057,9,18,1,18,1,18,1,18,1,18,4,18,1063,8,18,11,18,12,18,1064,3,18,1067,8,18,1,19,1,19,1,19,5,19,1072,8,19,10,19,12,19,1075,9,19,1,20,1,20,1,20,5,20,1080,8,20,10,20,12,20,1083,9,20,1,21,1,21,1,21,5,21,1088,8,21,10,21,12,21,1091,9,21,1,22,1,22,1,22,1,22,3,22,1097,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1107,8,24,5,24,1109,8,24,10,24,12,24,1112,9,24,1,24,1,24,3,24,1116,8,24,1,25,1,25,3,25,1120,8,25,1,25,1,25,1,26,1,26,3,26,1126,8,26,1,26,1,26,1,27,1,27,3,27,1132,8,27,1,28,1,28,3,28,1136,8,28,1,29,1,29,3,29,1140,8,29,1,29,3,29,1143,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1150,8,30,1,30,1,30,1,30,1,30,3,30,1156,8,30,5,30,1158,8,30,10,30,12,30,1161,9,30,1,31,1,31,3,31,1165,8,31,1,31,3,31,1168,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1180,8,32,10,32,12,32,1183,9,32,1,33,1,33,3,33,1187,8,33,1,33,3,33,1190,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1204,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1211,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1222,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1233,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1253,8,38,1,38,1,38,1,39,1,39,3,39,1259,8,39,1,39,4,39,1262,8,39,11,39,12,39,1263,1,39,1,39,3,39,1268,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1282,8,40,3,40,1284,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1291,8,42,1,43,1,43,1,44,1,44,3,44,1297,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1306,8,46,10,46,12,46,1309,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1316,8,47,1,48,1,48,1,48,1,48,3,48,1322,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1329,8,49,1,49,1,49,1,49,1,49,5,49,1335,8,49,10,49,12,49,1338,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1350,8,51,1,51,1,51,1,52,1,52,3,52,1356,8,52,1,52,1,52,3,52,1360,8,52,1,52,3,52,1363,8,52,3,52,1365,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1373,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1381,8,54,1,54,1,54,1,54,1,54,3,54,1387,8,54,1,54,1,54,1,54,1,54,3,54,1393,8,54,1,54,1,54,1,55,1,55,3,55,1399,8,55,1,55,3,55,1402,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1409,8,56,10,56,12,56,1412,9,56,1,57,1,57,1,57,1,57,5,57,1418,8,57,10,57,12,57,1421,9,57,1,57,1,57,1,58,1,58,3,58,1427,8,58,1,59,1,59,1,59,1,59,5,59,1433,8,59,10,59,12,59,1436,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1448,8,61,1,62,1,62,1,62,5,62,1453,8,62,10,62,12,62,1456,9,62,1,62,3,62,1459,8,62,1,63,1,63,1,63,5,63,1464,8,63,10,63,12,63,1467,9,63,1,63,3,63,1470,8,63,1,64,1,64,1,64,3,64,1475,8,64,1,65,1,65,1,65,5,65,1480,8,65,10,65,12,65,1483,9,65,1,66,1,66,1,66,1,66,3,66,1489,8,66,1,66,3,66,1492,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1499,8,67,1,67,1,67,3,67,1503,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1513,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1536,8,71,1,72,1,72,1,72,1,72,3,72,1542,8,72,1,73,1,73,3,73,1546,8,73,1,74,1,74,1,74,5,74,1551,8,74,10,74,12,74,1554,9,74,1,75,1,75,1,75,3,75,1559,8,75,1,76,1,76,1,76,5,76,1564,8,76,10,76,12,76,1567,9,76,1,77,3,77,1570,8,77,1,77,1,77,3,77,1574,8,77,1,78,1,78,1,79,1,79,3,79,1580,8,79,1,80,1,80,1,80,3,80,1585,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1594,8,82,1,82,3,82,1597,8,82,1,82,1,82,1,82,1,82,3,82,1603,8,82,1,83,1,83,1,83,3,83,1608,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1616,8,84,1,85,1,85,1,85,5,85,1621,8,85,10,85,12,85,1624,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1643,8,88,10,88,12,88,1646,9,88,1,88,3,88,1649,8,88,3,88,1651,8,88,1,88,1,88,3,88,1655,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1662,8,89,10,89,12,89,1665,9,89,1,89,3,89,1668,8,89,3,89,1670,8,89,1,89,1,89,3,89,1674,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1681,8,90,10,90,12,90,1684,9,90,1,90,3,90,1687,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1723,8,96,10,96,12,96,1726,9,96,1,96,3,96,1729,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1749,8,99,1,99,3,99,1752,8,99,1,99,1,99,1,99,1,99,3,99,1758,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1778,8,100,1,100,5,100,1781,8,100,10,100,12,100,1784,9,100,1,101,1,101,1,101,3,101,1789,8,101,1,101,5,101,1792,8,101,10,101,12,101,1795,9,101,3,101,1797,8,101,1,102,1,102,3,102,1801,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1828,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1836,8,105,1,106,3,106,1839,8,106,1,106,1,106,1,106,5,106,1844,8,106,10,106,12,106,1847,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1859,8,109,1,109,1,109,3,109,1863,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1875,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,1886,8,112,10,112,12,112,1889,9,112,1,112,1,112,3,112,1893,8,112,1,113,1,113,1,113,1,113,1,113,3,113,1900,8,113,1,114,1,114,3,114,1904,8,114,1,115,1,115,1,115,5,115,1909,8,115,10,115,12,115,1912,9,115,1,116,1,116,1,116,1,116,5,116,1918,8,116,10,116,12,116,1921,9,116,1,117,1,117,1,117,1,117,5,117,1927,8,117,10,117,12,117,1930,9,117,1,118,1,118,1,118,1,118,1,118,3,118,1937,8,118,1,119,1,119,3,119,1941,8,119,1,119,1,119,3,119,1945,8,119,1,120,1,120,1,120,1,120,1,120,3,120,1952,8,120,3,120,1954,8,120,1,121,3,121,1957,8,121,1,121,1,121,1,121,3,121,1962,8,121,1,121,1,121,1,121,3,121,1967,8,121,1,122,1,122,3,122,1971,8,122,1,122,1,122,1,122,5,122,1976,8,122,10,122,12,122,1979,9,122,1,122,1,122,1,122,1,122,3,122,1985,8,122,1,122,1,122,3,122,1989,8,122,1,122,3,122,1992,8,122,1,122,1,122,3,122,1996,8,122,1,122,1,122,3,122,2e3,8,122,3,122,2002,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2011,8,124,10,124,12,124,2014,9,124,1,125,1,125,1,125,1,125,5,125,2020,8,125,10,125,12,125,2023,9,125,1,125,1,125,3,125,2027,8,125,1,125,1,125,1,125,1,125,3,125,2033,8,125,1,125,1,125,1,125,3,125,2038,8,125,1,125,3,125,2041,8,125,1,125,1,125,3,125,2045,8,125,1,125,1,125,3,125,2049,8,125,1,126,3,126,2052,8,126,1,127,1,127,3,127,2056,8,127,1,127,1,127,3,127,2060,8,127,1,127,1,127,1,127,1,127,5,127,2066,8,127,10,127,12,127,2069,9,127,1,127,3,127,2072,8,127,1,127,1,127,3,127,2076,8,127,1,127,1,127,3,127,2080,8,127,1,127,3,127,2083,8,127,1,127,3,127,2086,8,127,1,127,1,127,3,127,2090,8,127,1,127,3,127,2093,8,127,1,127,3,127,2096,8,127,1,128,1,128,1,128,3,128,2101,8,128,1,128,3,128,2104,8,128,1,128,3,128,2107,8,128,1,128,3,128,2110,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2124,8,129,3,129,2126,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2137,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2145,8,132,10,132,12,132,2148,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2157,8,134,1,134,3,134,2160,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2167,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2191,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2200,8,138,10,138,12,138,2203,9,138,1,139,4,139,2206,8,139,11,139,12,139,2207,1,140,1,140,3,140,2212,8,140,1,141,1,141,3,141,2216,8,141,1,141,1,141,3,141,2220,8,141,1,141,1,141,3,141,2224,8,141,1,141,1,141,3,141,2228,8,141,1,141,1,141,3,141,2232,8,141,1,141,1,141,3,141,2236,8,141,1,141,1,141,1,141,1,141,3,141,2242,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2249,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2259,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2268,8,144,10,144,12,144,2271,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2281,8,146,10,146,12,146,2284,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2297,8,149,10,149,12,149,2300,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2307,8,151,10,151,12,151,2310,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2329,8,158,1,158,1,158,1,159,1,159,3,159,2335,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2342,8,159,1,160,1,160,1,160,5,160,2347,8,160,10,160,12,160,2350,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2357,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2364,8,163,10,163,12,163,2367,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2403,8,168,3,168,2405,8,168,1,169,3,169,2408,8,169,1,169,1,169,1,169,3,169,2413,8,169,1,169,1,169,3,169,2417,8,169,5,169,2419,8,169,10,169,12,169,2422,9,169,1,170,1,170,1,170,3,170,2427,8,170,1,171,1,171,1,171,1,171,3,171,2433,8,171,1,171,1,171,3,171,2437,8,171,1,172,1,172,1,172,3,172,2442,8,172,1,172,1,172,1,172,3,172,2447,8,172,3,172,2449,8,172,1,173,1,173,3,173,2453,8,173,1,173,1,173,1,173,3,173,2458,8,173,1,173,3,173,2461,8,173,3,173,2463,8,173,1,173,1,173,3,173,2467,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2478,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2489,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2500,8,179,1,179,1,179,3,179,2504,8,179,1,179,1,179,3,179,2508,8,179,1,179,1,179,3,179,2512,8,179,1,179,3,179,2515,8,179,1,179,1,179,3,179,2519,8,179,1,179,3,179,2522,8,179,1,180,1,180,1,180,1,180,3,180,2528,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2535,8,181,10,181,12,181,2538,9,181,3,181,2540,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2554,8,182,1,182,1,182,1,182,1,182,3,182,2560,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2573,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2580,8,184,1,184,1,184,1,184,3,184,2585,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2592,8,186,1,187,1,187,1,187,5,187,2597,8,187,10,187,12,187,2600,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2608,8,189,1,190,1,190,1,190,3,190,2613,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2621,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2634,8,191,10,191,12,191,2637,9,191,1,192,1,192,1,192,3,192,2642,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2650,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2673,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2680,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2688,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2709,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2717,8,201,1,202,1,202,1,202,1,203,1,203,1,203,3,203,2725,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2735,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2742,8,207,10,207,12,207,2745,9,207,1,207,1,207,3,207,2749,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2756,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2766,8,209,1,209,1,209,1,209,3,209,2771,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2778,8,209,10,209,12,209,2781,9,209,1,209,3,209,2784,8,209,1,209,1,209,3,209,2788,8,209,1,209,3,209,2791,8,209,1,209,3,209,2794,8,209,1,209,3,209,2797,8,209,1,209,3,209,2800,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2808,8,210,1,211,1,211,1,211,1,211,1,211,5,211,2815,8,211,10,211,12,211,2818,9,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,5,213,2832,8,213,10,213,12,213,2835,9,213,1,213,1,213,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,5,217,2855,8,217,10,217,12,217,2858,9,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,3,218,2875,8,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,5,219,2884,8,219,10,219,12,219,2887,9,219,1,220,1,220,1,220,1,220,1,220,3,220,2894,8,220,1,221,1,221,1,221,1,221,1,221,1,221,5,221,2902,8,221,10,221,12,221,2905,9,221,1,222,1,222,3,222,2909,8,222,1,223,1,223,3,223,2913,8,223,1,223,1,223,1,224,1,224,3,224,2919,8,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,5,229,2948,8,229,10,229,12,229,2951,9,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,5,230,2960,8,230,10,230,12,230,2963,9,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,234,1,234,1,234,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,238,1,238,1,238,3,238,2999,8,238,1,238,1,238,1,239,1,239,1,239,1,240,3,240,3007,8,240,1,240,3,240,3010,8,240,1,240,1,240,3,240,3014,8,240,1,241,1,241,3,241,3018,8,241,1,242,1,242,1,242,1,242,1,242,1,242,5,242,3026,8,242,10,242,12,242,3029,9,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,5,242,3039,8,242,10,242,12,242,3042,9,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,1,242,5,242,3052,8,242,10,242,12,242,3055,9,242,1,242,1,242,3,242,3059,8,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,243,5,243,3074,8,243,10,243,12,243,3077,9,243,1,243,3,243,3080,8,243,1,243,1,243,3,243,3084,8,243,1,243,1,243,1,243,1,243,1,243,5,243,3091,8,243,10,243,12,243,3094,9,243,1,243,1,243,1,243,1,243,1,243,1,243,5,243,3102,8,243,10,243,12,243,3105,9,243,1,243,1,243,3,243,3109,8,243,1,244,1,244,3,244,3113,8,244,1,245,1,245,3,245,3117,8,245,1,245,3,245,3120,8,245,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,5,248,3134,8,248,10,248,12,248,3137,9,248,1,249,1,249,1,249,1,249,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,3,251,3151,8,251,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,1,253,3,253,3166,8,253,1,253,3,253,3169,8,253,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,5,255,3179,8,255,10,255,12,255,3182,9,255,3,255,3184,8,255,1,255,1,255,1,256,1,256,1,256,1,256,1,257,1,257,1,258,1,258,1,258,1,258,5,258,3198,8,258,10,258,12,258,3201,9,258,1,258,1,258,1,258,3,258,3206,8,258,1,259,1,259,1,259,1,259,5,259,3212,8,259,10,259,12,259,3215,9,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,3,260,3224,8,260,1,260,1,260,3,260,3228,8,260,1,260,1,260,1,261,1,261,1,261,1,261,3,261,3236,8,261,1,262,1,262,1,262,1,262,3,262,3242,8,262,1,262,1,262,1,262,1,262,3,262,3248,8,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,263,5,263,3258,8,263,10,263,12,263,3261,9,263,1,263,3,263,3264,8,263,3,263,3266,8,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,5,264,3276,8,264,10,264,12,264,3279,9,264,1,264,3,264,3282,8,264,1,264,1,264,1,264,3,264,3287,8,264,1,265,1,265,1,265,1,265,3,265,3293,8,265,1,265,1,265,1,265,5,265,3298,8,265,10,265,12,265,3301,9,265,1,265,3,265,3304,8,265,1,266,1,266,3,266,3308,8,266,1,267,3,267,3311,8,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,5,268,3322,8,268,10,268,12,268,3325,9,268,1,268,1,268,1,268,1,268,5,268,3331,8,268,10,268,12,268,3334,9,268,1,268,3,268,3337,8,268,1,268,1,268,1,268,3,268,3342,8,268,1,269,1,269,1,269,1,269,3,269,3348,8,269,1,269,1,269,1,269,1,269,1,269,5,269,3355,8,269,10,269,12,269,3358,9,269,1,269,1,269,1,269,1,269,5,269,3364,8,269,10,269,12,269,3367,9,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,3,270,3383,8,270,1,270,1,270,3,270,3387,8,270,1,270,1,270,3,270,3391,8,270,3,270,3393,8,270,1,271,1,271,3,271,3397,8,271,1,272,1,272,1,272,5,272,3402,8,272,10,272,12,272,3405,9,272,1,272,3,272,3408,8,272,1,272,1,272,3,272,3412,8,272,3,272,3414,8,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,273,5,273,3424,8,273,10,273,12,273,3427,9,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,275,1,275,1,275,5,275,3440,8,275,10,275,12,275,3443,9,275,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,277,5,277,3456,8,277,10,277,12,277,3459,9,277,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,3,280,3473,8,280,1,281,1,281,1,281,5,281,3478,8,281,10,281,12,281,3481,9,281,1,282,1,282,1,282,1,282,1,282,3,282,3488,8,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,5,283,3497,8,283,10,283,12,283,3500,9,283,1,283,1,283,4,283,3504,8,283,11,283,12,283,3505,1,283,5,283,3509,8,283,10,283,12,283,3512,9,283,1,283,5,283,3515,8,283,10,283,12,283,3518,9,283,3,283,3520,8,283,1,284,3,284,3523,8,284,1,284,1,284,1,284,1,284,1,284,3,284,3530,8,284,1,285,3,285,3533,8,285,1,285,3,285,3536,8,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,3,285,3545,8,285,1,286,1,286,1,286,3,286,3550,8,286,1,286,3,286,3553,8,286,1,286,1,286,1,286,1,286,1,286,1,286,5,286,3561,8,286,10,286,12,286,3564,9,286,1,286,3,286,3567,8,286,3,286,3569,8,286,1,286,1,286,1,286,1,286,1,286,3,286,3576,8,286,1,286,3,286,3579,8,286,1,286,1,286,3,286,3583,8,286,3,286,3585,8,286,1,286,3,286,3588,8,286,1,287,1,287,1,287,3,287,3593,8,287,1,288,3,288,3596,8,288,1,288,1,288,1,288,3,288,3601,8,288,1,289,1,289,1,289,1,289,1,289,1,289,5,289,3609,8,289,10,289,12,289,3612,9,289,1,289,1,289,3,289,3616,8,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,5,290,3625,8,290,10,290,12,290,3628,9,290,1,290,3,290,3631,8,290,1,290,1,290,3,290,3635,8,290,3,290,3637,8,290,1,290,1,290,3,290,3641,8,290,1,290,1,290,1,290,3,290,3646,8,290,1,290,1,290,1,290,1,290,5,290,3652,8,290,10,290,12,290,3655,9,290,3,290,3657,8,290,1,290,3,290,3660,8,290,1,290,3,290,3663,8,290,1,291,1,291,1,291,3,291,3668,8,291,1,291,1,291,1,292,1,292,3,292,3674,8,292,1,292,3,292,3677,8,292,1,293,1,293,3,293,3681,8,293,1,294,1,294,1,294,1,294,3,294,3687,8,294,1,295,1,295,1,295,1,295,1,295,1,295,3,295,3695,8,295,1,295,3,295,3698,8,295,1,296,1,296,1,296,1,296,1,296,3,296,3705,8,296,1,296,1,296,3,296,3709,8,296,1,296,3,296,3712,8,296,1,297,1,297,3,297,3716,8,297,1,298,1,298,1,298,5,298,3721,8,298,10,298,12,298,3724,9,298,1,299,1,299,1,299,1,299,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,5,302,3742,8,302,10,302,12,302,3745,9,302,1,302,1,302,1,303,1,303,1,303,1,303,3,303,3753,8,303,1,303,3,303,3756,8,303,1,304,1,304,1,304,1,304,5,304,3762,8,304,10,304,12,304,3765,9,304,1,304,1,304,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,5,307,3782,8,307,10,307,12,307,3785,9,307,1,308,1,308,1,308,1,308,1,308,3,308,3792,8,308,1,309,1,309,1,309,1,310,1,310,1,310,3,310,3800,8,310,1,311,1,311,1,311,1,311,1,311,1,312,1,312,3,312,3809,8,312,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,5,315,3825,8,315,10,315,12,315,3828,9,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,5,317,3842,8,317,10,317,12,317,3845,9,317,1,317,1,317,1,318,1,318,1,318,1,318,1,319,1,319,1,319,5,319,3856,8,319,10,319,12,319,3859,9,319,1,320,1,320,1,320,1,320,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,5,323,3875,8,323,10,323,12,323,3878,9,323,1,324,1,324,1,324,1,324,1,325,1,325,1,326,1,326,1,326,3,326,3889,8,326,1,326,1,326,1,327,1,327,1,328,1,328,1,328,1,328,3,328,3899,8,328,1,329,1,329,1,329,1,329,1,329,1,330,1,330,3,330,3908,8,330,1,331,1,331,1,332,1,332,1,332,1,333,1,333,1,333,5,333,3918,8,333,10,333,12,333,3921,9,333,1,334,1,334,1,334,1,334,1,335,1,335,1,336,1,336,1,336,1,336,1,337,3,337,3934,8,337,1,337,3,337,3937,8,337,1,337,3,337,3940,8,337,1,337,3,337,3943,8,337,1,338,1,338,1,339,1,339,3,339,3949,8,339,1,339,1,339,1,339,1,340,1,340,1,341,1,341,1,341,3,341,3959,8,341,1,342,1,342,1,343,1,343,3,343,3965,8,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,3,345,3976,8,345,1,345,3,345,3979,8,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,3,346,3991,8,346,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,3,348,4001,8,348,1,349,1,349,1,349,1,349,3,349,4007,8,349,1,350,1,350,1,351,1,351,1,352,1,352,1,353,1,353,3,353,4017,8,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,3,354,4026,8,354,1,355,1,355,1,355,1,355,1,355,1,355,3,355,4034,8,355,1,356,1,356,1,356,1,356,1,356,3,356,4041,8,356,1,357,1,357,1,357,1,357,1,357,1,357,1,357,1,357,3,357,4051,8,357,1,358,1,358,1,358,1,358,1,358,1,358,1,358,3,358,4060,8,358,1,359,1,359,1,359,1,359,1,359,1,359,1,359,3,359,4069,8,359,1,360,1,360,1,360,1,360,1,360,1,360,1,360,1,360,3,360,4079,8,360,1,361,1,361,3,361,4083,8,361,1,362,1,362,3,362,4087,8,362,1,363,1,363,3,363,4091,8,363,1,364,1,364,3,364,4095,8,364,1,365,1,365,3,365,4099,8,365,1,366,1,366,3,366,4103,8,366,1,367,1,367,3,367,4107,8,367,1,368,1,368,3,368,4111,8,368,1,369,1,369,3,369,4115,8,369,1,370,1,370,3,370,4119,8,370,1,371,1,371,3,371,4123,8,371,1,372,1,372,3,372,4127,8,372,1,373,1,373,1,373,3,373,4132,8,373,1,374,1,374,1,374,3,374,4137,8,374,1,375,1,375,1,375,3,375,4142,8,375,1,375,1,375,3,375,4146,8,375,1,376,1,376,3,376,4150,8,376,1,377,1,377,1,377,3,377,4155,8,377,1,378,3,378,4158,8,378,1,378,1,378,1,379,1,379,3,379,4164,8,379,1,380,3,380,4167,8,380,1,380,1,380,1,381,1,381,1,381,1,381,1,381,1,381,1,381,1,381,3,381,4179,8,381,1,382,1,382,1,383,1,383,1,384,1,384,1,385,1,385,1,386,1,386,1,387,1,387,1,388,1,388,1,389,1,389,1,390,1,390,1,391,1,391,1,392,1,392,1,393,1,393,1,394,1,394,1,395,1,395,1,395,1,395,1,395,3,395,4212,8,395,1,396,5,396,4215,8,396,10,396,12,396,4218,9,396,1,396,1,396,4,396,4222,8,396,11,396,12,396,4223,1,396,5,396,4227,8,396,10,396,12,396,4230,9,396,1,396,5,396,4233,8,396,10,396,12,396,4236,9,396,1,396,1,396,1,397,1,397,1,397,3,397,4243,8,397,3,397,4245,8,397,1,397,1,397,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398,3,398,4262,8,398,1,399,1,399,1,399,1,400,1,400,1,400,1,401,1,401,1,401,1,402,1,402,3,402,4275,8,402,1,402,0,0,403,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,0,39,2,0,58,58,274,274,6,0,145,145,156,156,180,180,185,185,234,234,252,252,1,0,6,9,1,0,17,18,2,0,20,21,23,23,2,0,17,19,196,196,2,0,115,115,121,121,4,0,121,121,133,133,290,290,297,297,2,0,81,81,294,294,2,0,56,56,103,103,2,0,26,26,202,202,2,0,48,48,110,110,2,0,163,163,261,261,3,0,106,106,182,182,208,208,2,0,66,66,276,276,2,0,206,206,263,263,2,0,59,59,275,275,3,0,189,190,192,192,260,260,2,0,46,46,112,112,2,0,148,148,302,302,2,0,61,61,278,278,2,0,120,120,299,299,3,0,49,49,104,104,237,237,3,0,61,61,255,255,278,278,2,0,143,143,301,301,3,0,107,107,229,229,277,277,2,0,45,45,271,271,2,0,78,78,259,259,3,0,150,150,231,231,256,256,2,0,139,139,224,224,1,0,317,318,21,0,58,58,67,68,72,73,89,89,91,93,116,116,128,128,142,143,153,153,173,175,183,183,196,196,198,198,228,228,232,232,247,248,254,254,262,262,274,274,293,293,309,310,3,0,53,53,120,120,269,269,11,0,48,48,55,55,57,57,110,110,124,124,152,152,168,168,181,181,295,295,311,311,313,313,31,0,61,61,83,83,85,85,94,94,104,104,107,107,136,136,147,147,163,163,177,177,179,179,184,184,186,192,194,194,203,203,205,205,207,207,214,214,218,221,227,227,229,229,237,237,241,241,250,250,260,261,266,268,272,272,278,278,287,287,292,292,298,298,50,0,44,47,49,52,54,54,56,56,59,62,64,66,69,69,71,71,74,76,79,79,81,88,90,90,94,105,107,109,111,115,117,118,121,123,125,127,129,132,134,137,139,141,144,145,147,149,151,151,154,167,169,172,176,180,184,195,197,197,199,207,209,227,229,230,233,238,240,242,244,246,249,253,255,255,257,258,260,261,263,263,265,268,271,273,275,280,282,289,292,292,294,294,296,305,307,308,312,312,314,315,12,0,70,70,106,106,119,119,138,138,182,182,208,208,243,243,264,264,270,270,281,281,291,291,306,306,2,0,133,133,290,290,1,0,319,320,4591,0,811,1,0,0,0,2,816,1,0,0,0,4,842,1,0,0,0,6,850,1,0,0,0,8,874,1,0,0,0,10,881,1,0,0,0,12,929,1,0,0,0,14,940,1,0,0,0,16,942,1,0,0,0,18,950,1,0,0,0,20,958,1,0,0,0,22,962,1,0,0,0,24,1020,1,0,0,0,26,1022,1,0,0,0,28,1024,1,0,0,0,30,1032,1,0,0,0,32,1035,1,0,0,0,34,1039,1,0,0,0,36,1042,1,0,0,0,38,1068,1,0,0,0,40,1076,1,0,0,0,42,1084,1,0,0,0,44,1096,1,0,0,0,46,1098,1,0,0,0,48,1110,1,0,0,0,50,1119,1,0,0,0,52,1125,1,0,0,0,54,1131,1,0,0,0,56,1135,1,0,0,0,58,1137,1,0,0,0,60,1146,1,0,0,0,62,1162,1,0,0,0,64,1171,1,0,0,0,66,1184,1,0,0,0,68,1210,1,0,0,0,70,1232,1,0,0,0,72,1234,1,0,0,0,74,1241,1,0,0,0,76,1248,1,0,0,0,78,1256,1,0,0,0,80,1271,1,0,0,0,82,1285,1,0,0,0,84,1290,1,0,0,0,86,1292,1,0,0,0,88,1296,1,0,0,0,90,1298,1,0,0,0,92,1302,1,0,0,0,94,1310,1,0,0,0,96,1321,1,0,0,0,98,1323,1,0,0,0,100,1341,1,0,0,0,102,1345,1,0,0,0,104,1364,1,0,0,0,106,1372,1,0,0,0,108,1374,1,0,0,0,110,1396,1,0,0,0,112,1405,1,0,0,0,114,1413,1,0,0,0,116,1426,1,0,0,0,118,1428,1,0,0,0,120,1439,1,0,0,0,122,1447,1,0,0,0,124,1449,1,0,0,0,126,1460,1,0,0,0,128,1471,1,0,0,0,130,1476,1,0,0,0,132,1484,1,0,0,0,134,1498,1,0,0,0,136,1512,1,0,0,0,138,1516,1,0,0,0,140,1520,1,0,0,0,142,1535,1,0,0,0,144,1537,1,0,0,0,146,1543,1,0,0,0,148,1547,1,0,0,0,150,1555,1,0,0,0,152,1560,1,0,0,0,154,1569,1,0,0,0,156,1575,1,0,0,0,158,1579,1,0,0,0,160,1584,1,0,0,0,162,1586,1,0,0,0,164,1602,1,0,0,0,166,1607,1,0,0,0,168,1611,1,0,0,0,170,1617,1,0,0,0,172,1625,1,0,0,0,174,1632,1,0,0,0,176,1637,1,0,0,0,178,1656,1,0,0,0,180,1675,1,0,0,0,182,1690,1,0,0,0,184,1695,1,0,0,0,186,1700,1,0,0,0,188,1705,1,0,0,0,190,1712,1,0,0,0,192,1717,1,0,0,0,194,1732,1,0,0,0,196,1737,1,0,0,0,198,1744,1,0,0,0,200,1777,1,0,0,0,202,1796,1,0,0,0,204,1800,1,0,0,0,206,1802,1,0,0,0,208,1827,1,0,0,0,210,1829,1,0,0,0,212,1838,1,0,0,0,214,1848,1,0,0,0,216,1853,1,0,0,0,218,1858,1,0,0,0,220,1866,1,0,0,0,222,1871,1,0,0,0,224,1876,1,0,0,0,226,1899,1,0,0,0,228,1901,1,0,0,0,230,1905,1,0,0,0,232,1913,1,0,0,0,234,1922,1,0,0,0,236,1936,1,0,0,0,238,1944,1,0,0,0,240,1946,1,0,0,0,242,1956,1,0,0,0,244,1968,1,0,0,0,246,2003,1,0,0,0,248,2007,1,0,0,0,250,2015,1,0,0,0,252,2051,1,0,0,0,254,2055,1,0,0,0,256,2097,1,0,0,0,258,2125,1,0,0,0,260,2136,1,0,0,0,262,2138,1,0,0,0,264,2141,1,0,0,0,266,2149,1,0,0,0,268,2156,1,0,0,0,270,2190,1,0,0,0,272,2192,1,0,0,0,274,2194,1,0,0,0,276,2196,1,0,0,0,278,2205,1,0,0,0,280,2209,1,0,0,0,282,2241,1,0,0,0,284,2258,1,0,0,0,286,2260,1,0,0,0,288,2262,1,0,0,0,290,2274,1,0,0,0,292,2277,1,0,0,0,294,2285,1,0,0,0,296,2291,1,0,0,0,298,2293,1,0,0,0,300,2301,1,0,0,0,302,2303,1,0,0,0,304,2311,1,0,0,0,306,2315,1,0,0,0,308,2317,1,0,0,0,310,2319,1,0,0,0,312,2321,1,0,0,0,314,2323,1,0,0,0,316,2328,1,0,0,0,318,2332,1,0,0,0,320,2343,1,0,0,0,322,2356,1,0,0,0,324,2358,1,0,0,0,326,2360,1,0,0,0,328,2368,1,0,0,0,330,2373,1,0,0,0,332,2378,1,0,0,0,334,2384,1,0,0,0,336,2404,1,0,0,0,338,2407,1,0,0,0,340,2423,1,0,0,0,342,2436,1,0,0,0,344,2438,1,0,0,0,346,2450,1,0,0,0,348,2477,1,0,0,0,350,2479,1,0,0,0,352,2482,1,0,0,0,354,2490,1,0,0,0,356,2492,1,0,0,0,358,2521,1,0,0,0,360,2527,1,0,0,0,362,2529,1,0,0,0,364,2553,1,0,0,0,366,2572,1,0,0,0,368,2584,1,0,0,0,370,2586,1,0,0,0,372,2591,1,0,0,0,374,2593,1,0,0,0,376,2601,1,0,0,0,378,2607,1,0,0,0,380,2609,1,0,0,0,382,2625,1,0,0,0,384,2641,1,0,0,0,386,2643,1,0,0,0,388,2653,1,0,0,0,390,2660,1,0,0,0,392,2664,1,0,0,0,394,2674,1,0,0,0,396,2689,1,0,0,0,398,2692,1,0,0,0,400,2701,1,0,0,0,402,2704,1,0,0,0,404,2718,1,0,0,0,406,2724,1,0,0,0,408,2726,1,0,0,0,410,2730,1,0,0,0,412,2734,1,0,0,0,414,2748,1,0,0,0,416,2750,1,0,0,0,418,2752,1,0,0,0,420,2807,1,0,0,0,422,2809,1,0,0,0,424,2821,1,0,0,0,426,2826,1,0,0,0,428,2838,1,0,0,0,430,2841,1,0,0,0,432,2845,1,0,0,0,434,2848,1,0,0,0,436,2874,1,0,0,0,438,2876,1,0,0,0,440,2893,1,0,0,0,442,2895,1,0,0,0,444,2908,1,0,0,0,446,2910,1,0,0,0,448,2916,1,0,0,0,450,2922,1,0,0,0,452,2928,1,0,0,0,454,2931,1,0,0,0,456,2938,1,0,0,0,458,2942,1,0,0,0,460,2954,1,0,0,0,462,2966,1,0,0,0,464,2969,1,0,0,0,466,2973,1,0,0,0,468,2977,1,0,0,0,470,2983,1,0,0,0,472,2986,1,0,0,0,474,2991,1,0,0,0,476,2995,1,0,0,0,478,3002,1,0,0,0,480,3009,1,0,0,0,482,3015,1,0,0,0,484,3058,1,0,0,0,486,3060,1,0,0,0,488,3112,1,0,0,0,490,3114,1,0,0,0,492,3121,1,0,0,0,494,3123,1,0,0,0,496,3130,1,0,0,0,498,3138,1,0,0,0,500,3142,1,0,0,0,502,3150,1,0,0,0,504,3152,1,0,0,0,506,3168,1,0,0,0,508,3170,1,0,0,0,510,3174,1,0,0,0,512,3187,1,0,0,0,514,3191,1,0,0,0,516,3205,1,0,0,0,518,3207,1,0,0,0,520,3218,1,0,0,0,522,3231,1,0,0,0,524,3237,1,0,0,0,526,3249,1,0,0,0,528,3267,1,0,0,0,530,3288,1,0,0,0,532,3307,1,0,0,0,534,3310,1,0,0,0,536,3315,1,0,0,0,538,3343,1,0,0,0,540,3392,1,0,0,0,542,3396,1,0,0,0,544,3413,1,0,0,0,546,3415,1,0,0,0,548,3433,1,0,0,0,550,3436,1,0,0,0,552,3444,1,0,0,0,554,3448,1,0,0,0,556,3460,1,0,0,0,558,3462,1,0,0,0,560,3467,1,0,0,0,562,3474,1,0,0,0,564,3482,1,0,0,0,566,3498,1,0,0,0,568,3522,1,0,0,0,570,3532,1,0,0,0,572,3549,1,0,0,0,574,3589,1,0,0,0,576,3595,1,0,0,0,578,3602,1,0,0,0,580,3662,1,0,0,0,582,3667,1,0,0,0,584,3676,1,0,0,0,586,3678,1,0,0,0,588,3682,1,0,0,0,590,3688,1,0,0,0,592,3699,1,0,0,0,594,3715,1,0,0,0,596,3717,1,0,0,0,598,3725,1,0,0,0,600,3729,1,0,0,0,602,3731,1,0,0,0,604,3737,1,0,0,0,606,3748,1,0,0,0,608,3757,1,0,0,0,610,3768,1,0,0,0,612,3770,1,0,0,0,614,3775,1,0,0,0,616,3791,1,0,0,0,618,3793,1,0,0,0,620,3796,1,0,0,0,622,3801,1,0,0,0,624,3808,1,0,0,0,626,3810,1,0,0,0,628,3814,1,0,0,0,630,3819,1,0,0,0,632,3831,1,0,0,0,634,3836,1,0,0,0,636,3848,1,0,0,0,638,3852,1,0,0,0,640,3860,1,0,0,0,642,3864,1,0,0,0,644,3866,1,0,0,0,646,3871,1,0,0,0,648,3879,1,0,0,0,650,3883,1,0,0,0,652,3888,1,0,0,0,654,3892,1,0,0,0,656,3898,1,0,0,0,658,3900,1,0,0,0,660,3907,1,0,0,0,662,3909,1,0,0,0,664,3911,1,0,0,0,666,3914,1,0,0,0,668,3922,1,0,0,0,670,3926,1,0,0,0,672,3928,1,0,0,0,674,3933,1,0,0,0,676,3944,1,0,0,0,678,3946,1,0,0,0,680,3953,1,0,0,0,682,3955,1,0,0,0,684,3960,1,0,0,0,686,3964,1,0,0,0,688,3966,1,0,0,0,690,3978,1,0,0,0,692,3990,1,0,0,0,694,3992,1,0,0,0,696,4e3,1,0,0,0,698,4002,1,0,0,0,700,4008,1,0,0,0,702,4010,1,0,0,0,704,4012,1,0,0,0,706,4016,1,0,0,0,708,4025,1,0,0,0,710,4033,1,0,0,0,712,4040,1,0,0,0,714,4050,1,0,0,0,716,4059,1,0,0,0,718,4068,1,0,0,0,720,4078,1,0,0,0,722,4082,1,0,0,0,724,4086,1,0,0,0,726,4090,1,0,0,0,728,4094,1,0,0,0,730,4098,1,0,0,0,732,4102,1,0,0,0,734,4106,1,0,0,0,736,4110,1,0,0,0,738,4114,1,0,0,0,740,4118,1,0,0,0,742,4122,1,0,0,0,744,4126,1,0,0,0,746,4131,1,0,0,0,748,4136,1,0,0,0,750,4141,1,0,0,0,752,4149,1,0,0,0,754,4154,1,0,0,0,756,4157,1,0,0,0,758,4163,1,0,0,0,760,4166,1,0,0,0,762,4178,1,0,0,0,764,4180,1,0,0,0,766,4182,1,0,0,0,768,4184,1,0,0,0,770,4186,1,0,0,0,772,4188,1,0,0,0,774,4190,1,0,0,0,776,4192,1,0,0,0,778,4194,1,0,0,0,780,4196,1,0,0,0,782,4198,1,0,0,0,784,4200,1,0,0,0,786,4202,1,0,0,0,788,4204,1,0,0,0,790,4211,1,0,0,0,792,4216,1,0,0,0,794,4244,1,0,0,0,796,4261,1,0,0,0,798,4263,1,0,0,0,800,4266,1,0,0,0,802,4269,1,0,0,0,804,4274,1,0,0,0,806,812,3,2,1,0,807,808,5,223,0,0,808,809,5,52,0,0,809,810,5,319,0,0,810,812,3,4,2,0,811,806,1,0,0,0,811,807,1,0,0,0,812,1,1,0,0,0,813,815,5,24,0,0,814,813,1,0,0,0,815,818,1,0,0,0,816,814,1,0,0,0,816,817,1,0,0,0,817,819,1,0,0,0,818,816,1,0,0,0,819,828,3,10,5,0,820,822,5,24,0,0,821,820,1,0,0,0,822,823,1,0,0,0,823,821,1,0,0,0,823,824,1,0,0,0,824,825,1,0,0,0,825,827,3,10,5,0,826,821,1,0,0,0,827,830,1,0,0,0,828,826,1,0,0,0,828,829,1,0,0,0,829,834,1,0,0,0,830,828,1,0,0,0,831,833,5,24,0,0,832,831,1,0,0,0,833,836,1,0,0,0,834,832,1,0,0,0,834,835,1,0,0,0,835,837,1,0,0,0,836,834,1,0,0,0,837,838,5,0,0,1,838,3,1,0,0,0,839,841,5,24,0,0,840,839,1,0,0,0,841,844,1,0,0,0,842,840,1,0,0,0,842,843,1,0,0,0,843,845,1,0,0,0,844,842,1,0,0,0,845,846,5,0,0,1,846,5,1,0,0,0,847,849,5,24,0,0,848,847,1,0,0,0,849,852,1,0,0,0,850,848,1,0,0,0,850,851,1,0,0,0,851,861,1,0,0,0,852,850,1,0,0,0,853,855,3,8,4,0,854,856,5,24,0,0,855,854,1,0,0,0,856,857,1,0,0,0,857,855,1,0,0,0,857,858,1,0,0,0,858,860,1,0,0,0,859,853,1,0,0,0,860,863,1,0,0,0,861,859,1,0,0,0,861,862,1,0,0,0,862,864,1,0,0,0,863,861,1,0,0,0,864,865,5,247,0,0,865,869,3,14,7,0,866,868,5,24,0,0,867,866,1,0,0,0,868,871,1,0,0,0,869,867,1,0,0,0,869,870,1,0,0,0,870,7,1,0,0,0,871,869,1,0,0,0,872,875,3,698,349,0,873,875,3,214,107,0,874,872,1,0,0,0,874,873,1,0,0,0,875,9,1,0,0,0,876,879,5,129,0,0,877,878,5,1,0,0,878,880,5,222,0,0,879,877,1,0,0,0,879,880,1,0,0,0,880,882,1,0,0,0,881,876,1,0,0,0,881,882,1,0,0,0,882,883,1,0,0,0,883,884,3,12,6,0,884,11,1,0,0,0,885,930,3,224,112,0,886,930,3,232,116,0,887,930,3,698,349,0,888,930,3,418,209,0,889,930,3,520,260,0,890,930,3,694,347,0,891,930,3,364,182,0,892,930,3,700,350,0,893,930,3,592,296,0,894,930,3,590,295,0,895,930,3,702,351,0,896,930,3,210,105,0,897,930,3,214,107,0,898,930,3,216,108,0,899,930,3,434,217,0,900,930,3,438,219,0,901,930,3,222,111,0,902,930,3,564,282,0,903,930,3,568,284,0,904,930,3,570,285,0,905,930,3,370,185,0,906,930,3,522,261,0,907,930,3,524,262,0,908,930,3,526,263,0,909,930,3,528,264,0,910,930,3,530,265,0,911,930,3,394,197,0,912,930,3,398,199,0,913,930,3,402,201,0,914,930,3,380,190,0,915,930,3,382,191,0,916,930,3,386,193,0,917,930,3,546,273,0,918,930,3,560,280,0,919,930,3,606,303,0,920,930,3,614,307,0,921,930,3,636,318,0,922,930,3,536,268,0,923,930,3,538,269,0,924,930,3,442,221,0,925,930,3,392,196,0,926,930,3,388,194,0,927,930,3,390,195,0,928,930,3,554,277,0,929,885,1,0,0,0,929,886,1,0,0,0,929,887,1,0,0,0,929,888,1,0,0,0,929,889,1,0,0,0,929,890,1,0,0,0,929,891,1,0,0,0,929,892,1,0,0,0,929,893,1,0,0,0,929,894,1,0,0,0,929,895,1,0,0,0,929,896,1,0,0,0,929,897,1,0,0,0,929,898,1,0,0,0,929,899,1,0,0,0,929,900,1,0,0,0,929,901,1,0,0,0,929,902,1,0,0,0,929,903,1,0,0,0,929,904,1,0,0,0,929,905,1,0,0,0,929,906,1,0,0,0,929,907,1,0,0,0,929,908,1,0,0,0,929,909,1,0,0,0,929,910,1,0,0,0,929,911,1,0,0,0,929,912,1,0,0,0,929,913,1,0,0,0,929,914,1,0,0,0,929,915,1,0,0,0,929,916,1,0,0,0,929,917,1,0,0,0,929,918,1,0,0,0,929,919,1,0,0,0,929,920,1,0,0,0,929,921,1,0,0,0,929,922,1,0,0,0,929,923,1,0,0,0,929,924,1,0,0,0,929,925,1,0,0,0,929,926,1,0,0,0,929,927,1,0,0,0,929,928,1,0,0,0,930,13,1,0,0,0,931,936,3,16,8,0,932,933,5,209,0,0,933,935,3,16,8,0,934,932,1,0,0,0,935,938,1,0,0,0,936,934,1,0,0,0,936,937,1,0,0,0,937,941,1,0,0,0,938,936,1,0,0,0,939,941,3,200,100,0,940,931,1,0,0,0,940,939,1,0,0,0,941,15,1,0,0,0,942,947,3,18,9,0,943,944,5,51,0,0,944,946,3,18,9,0,945,943,1,0,0,0,946,949,1,0,0,0,947,945,1,0,0,0,947,948,1,0,0,0,948,17,1,0,0,0,949,947,1,0,0,0,950,955,3,20,10,0,951,952,5,315,0,0,952,954,3,20,10,0,953,951,1,0,0,0,954,957,1,0,0,0,955,953,1,0,0,0,955,956,1,0,0,0,956,19,1,0,0,0,957,955,1,0,0,0,958,960,3,28,14,0,959,961,3,24,12,0,960,959,1,0,0,0,960,961,1,0,0,0,961,21,1,0,0,0,962,964,5,170,0,0,963,965,5,196,0,0,964,963,1,0,0,0,964,965,1,0,0,0,965,966,1,0,0,0,966,967,5,110,0,0,967,968,5,142,0,0,968,23,1,0,0,0,969,971,5,196,0,0,970,969,1,0,0,0,970,971,1,0,0,0,971,972,1,0,0,0,972,973,3,26,13,0,973,976,3,28,14,0,974,975,5,122,0,0,975,977,3,28,14,0,976,974,1,0,0,0,976,977,1,0,0,0,977,1021,1,0,0,0,978,980,5,196,0,0,979,978,1,0,0,0,979,980,1,0,0,0,980,981,1,0,0,0,981,983,5,159,0,0,982,984,5,80,0,0,983,982,1,0,0,0,983,984,1,0,0,0,984,985,1,0,0,0,985,1021,3,82,41,0,986,996,5,171,0,0,987,996,5,197,0,0,988,989,5,170,0,0,989,996,5,198,0,0,990,992,5,170,0,0,991,990,1,0,0,0,991,992,1,0,0,0,992,993,1,0,0,0,993,994,5,196,0,0,994,996,5,198,0,0,995,986,1,0,0,0,995,987,1,0,0,0,995,988,1,0,0,0,995,991,1,0,0,0,996,1021,1,0,0,0,997,999,5,196,0,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1002,5,67,0,0,1001,1003,7,0,0,0,1002,1001,1,0,0,0,1002,1003,1,0,0,0,1003,1004,1,0,0,0,1004,1005,3,28,14,0,1005,1006,5,51,0,0,1006,1007,3,28,14,0,1007,1021,1,0,0,0,1008,1014,5,2,0,0,1009,1014,5,3,0,0,1010,1014,5,4,0,0,1011,1014,5,5,0,0,1012,1014,3,22,11,0,1013,1008,1,0,0,0,1013,1009,1,0,0,0,1013,1010,1,0,0,0,1013,1011,1,0,0,0,1013,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1017,3,28,14,0,1016,1013,1,0,0,0,1017,1018,1,0,0,0,1018,1016,1,0,0,0,1018,1019,1,0,0,0,1019,1021,1,0,0,0,1020,970,1,0,0,0,1020,979,1,0,0,0,1020,995,1,0,0,0,1020,998,1,0,0,0,1020,1016,1,0,0,0,1021,25,1,0,0,0,1022,1023,7,1,0,0,1023,27,1,0,0,0,1024,1029,3,36,18,0,1025,1026,7,2,0,0,1026,1028,3,36,18,0,1027,1025,1,0,0,0,1028,1031,1,0,0,0,1029,1027,1,0,0,0,1029,1030,1,0,0,0,1030,29,1,0,0,0,1031,1029,1,0,0,0,1032,1033,5,8,0,0,1033,1034,5,8,0,0,1034,31,1,0,0,0,1035,1036,5,8,0,0,1036,1037,5,8,0,0,1037,1038,5,13,0,0,1038,33,1,0,0,0,1039,1040,5,29,0,0,1040,1041,5,29,0,0,1041,35,1,0,0,0,1042,1055,3,38,19,0,1043,1051,5,10,0,0,1044,1051,3,30,15,0,1045,1051,5,11,0,0,1046,1051,3,32,16,0,1047,1051,5,12,0,0,1048,1051,5,13,0,0,1049,1051,5,39,0,0,1050,1043,1,0,0,0,1050,1044,1,0,0,0,1050,1045,1,0,0,0,1050,1046,1,0,0,0,1050,1047,1,0,0,0,1050,1048,1,0,0,0,1050,1049,1,0,0,0,1051,1052,1,0,0,0,1052,1054,3,38,19,0,1053,1050,1,0,0,0,1054,1057,1,0,0,0,1055,1053,1,0,0,0,1055,1056,1,0,0,0,1056,1066,1,0,0,0,1057,1055,1,0,0,0,1058,1059,3,34,17,0,1059,1060,3,36,18,0,1060,1067,1,0,0,0,1061,1063,5,29,0,0,1062,1061,1,0,0,0,1063,1064,1,0,0,0,1064,1062,1,0,0,0,1064,1065,1,0,0,0,1065,1067,1,0,0,0,1066,1058,1,0,0,0,1066,1062,1,0,0,0,1066,1067,1,0,0,0,1067,37,1,0,0,0,1068,1073,3,40,20,0,1069,1070,7,3,0,0,1070,1072,3,40,20,0,1071,1069,1,0,0,0,1072,1075,1,0,0,0,1073,1071,1,0,0,0,1073,1074,1,0,0,0,1074,39,1,0,0,0,1075,1073,1,0,0,0,1076,1081,3,42,21,0,1077,1078,7,4,0,0,1078,1080,3,42,21,0,1079,1077,1,0,0,0,1080,1083,1,0,0,0,1081,1079,1,0,0,0,1081,1082,1,0,0,0,1082,41,1,0,0,0,1083,1081,1,0,0,0,1084,1089,3,44,22,0,1085,1086,5,14,0,0,1086,1088,3,44,22,0,1087,1085,1,0,0,0,1088,1091,1,0,0,0,1089,1087,1,0,0,0,1089,1090,1,0,0,0,1090,43,1,0,0,0,1091,1089,1,0,0,0,1092,1097,3,54,27,0,1093,1094,3,46,23,0,1094,1095,3,54,27,0,1095,1097,1,0,0,0,1096,1092,1,0,0,0,1096,1093,1,0,0,0,1097,45,1,0,0,0,1098,1099,7,5,0,0,1099,47,1,0,0,0,1100,1109,3,138,69,0,1101,1109,3,132,66,0,1102,1106,5,25,0,0,1103,1107,3,144,72,0,1104,1107,5,319,0,0,1105,1107,3,726,363,0,1106,1103,1,0,0,0,1106,1104,1,0,0,0,1106,1105,1,0,0,0,1107,1109,1,0,0,0,1108,1100,1,0,0,0,1108,1101,1,0,0,0,1108,1102,1,0,0,0,1109,1112,1,0,0,0,1110,1108,1,0,0,0,1110,1111,1,0,0,0,1111,1115,1,0,0,0,1112,1110,1,0,0,0,1113,1114,5,76,0,0,1114,1116,3,724,362,0,1115,1113,1,0,0,0,1115,1116,1,0,0,0,1116,49,1,0,0,0,1117,1120,3,710,355,0,1118,1120,3,68,34,0,1119,1117,1,0,0,0,1119,1118,1,0,0,0,1120,1121,1,0,0,0,1121,1122,3,48,24,0,1122,51,1,0,0,0,1123,1126,3,712,356,0,1124,1126,3,70,35,0,1125,1123,1,0,0,0,1125,1124,1,0,0,0,1126,1127,1,0,0,0,1127,1128,3,48,24,0,1128,53,1,0,0,0,1129,1132,3,50,25,0,1130,1132,3,84,42,0,1131,1129,1,0,0,0,1131,1130,1,0,0,0,1132,55,1,0,0,0,1133,1136,3,52,26,0,1134,1136,3,84,42,0,1135,1133,1,0,0,0,1135,1134,1,0,0,0,1136,57,1,0,0,0,1137,1139,5,43,0,0,1138,1140,3,112,56,0,1139,1138,1,0,0,0,1139,1140,1,0,0,0,1140,1142,1,0,0,0,1141,1143,5,26,0,0,1142,1141,1,0,0,0,1142,1143,1,0,0,0,1143,1144,1,0,0,0,1144,1145,5,42,0,0,1145,59,1,0,0,0,1146,1149,3,14,7,0,1147,1148,5,30,0,0,1148,1150,3,14,7,0,1149,1147,1,0,0,0,1149,1150,1,0,0,0,1150,1159,1,0,0,0,1151,1152,5,26,0,0,1152,1155,3,14,7,0,1153,1154,5,30,0,0,1154,1156,3,14,7,0,1155,1153,1,0,0,0,1155,1156,1,0,0,0,1156,1158,1,0,0,0,1157,1151,1,0,0,0,1158,1161,1,0,0,0,1159,1157,1,0,0,0,1159,1160,1,0,0,0,1160,61,1,0,0,0,1161,1159,1,0,0,0,1162,1164,5,37,0,0,1163,1165,3,60,30,0,1164,1163,1,0,0,0,1164,1165,1,0,0,0,1165,1167,1,0,0,0,1166,1168,5,26,0,0,1167,1166,1,0,0,0,1167,1168,1,0,0,0,1168,1169,1,0,0,0,1169,1170,5,38,0,0,1170,63,1,0,0,0,1171,1172,3,14,7,0,1172,1173,5,30,0,0,1173,1181,3,14,7,0,1174,1175,5,26,0,0,1175,1176,3,14,7,0,1176,1177,5,30,0,0,1177,1178,3,14,7,0,1178,1180,1,0,0,0,1179,1174,1,0,0,0,1180,1183,1,0,0,0,1181,1179,1,0,0,0,1181,1182,1,0,0,0,1182,65,1,0,0,0,1183,1181,1,0,0,0,1184,1186,5,15,0,0,1185,1187,3,64,32,0,1186,1185,1,0,0,0,1186,1187,1,0,0,0,1187,1189,1,0,0,0,1188,1190,5,26,0,0,1189,1188,1,0,0,0,1189,1190,1,0,0,0,1190,1191,1,0,0,0,1191,1192,5,16,0,0,1192,67,1,0,0,0,1193,1211,3,142,71,0,1194,1211,3,144,72,0,1195,1211,3,80,40,0,1196,1211,3,72,36,0,1197,1211,3,76,38,0,1198,1211,3,78,39,0,1199,1200,3,726,363,0,1200,1203,5,40,0,0,1201,1204,3,752,376,0,1202,1204,5,316,0,0,1203,1201,1,0,0,0,1203,1202,1,0,0,0,1204,1211,1,0,0,0,1205,1211,3,208,104,0,1206,1211,3,74,37,0,1207,1211,3,58,29,0,1208,1211,3,62,31,0,1209,1211,3,66,33,0,1210,1193,1,0,0,0,1210,1194,1,0,0,0,1210,1195,1,0,0,0,1210,1196,1,0,0,0,1210,1197,1,0,0,0,1210,1198,1,0,0,0,1210,1199,1,0,0,0,1210,1205,1,0,0,0,1210,1206,1,0,0,0,1210,1207,1,0,0,0,1210,1208,1,0,0,0,1210,1209,1,0,0,0,1211,69,1,0,0,0,1212,1233,3,142,71,0,1213,1233,3,144,72,0,1214,1233,3,80,40,0,1215,1233,3,72,36,0,1216,1233,3,78,39,0,1217,1218,3,726,363,0,1218,1221,5,40,0,0,1219,1222,3,752,376,0,1220,1222,5,316,0,0,1221,1219,1,0,0,0,1221,1220,1,0,0,0,1222,1233,1,0,0,0,1223,1224,5,27,0,0,1224,1225,3,232,116,0,1225,1226,5,28,0,0,1226,1233,1,0,0,0,1227,1233,3,208,104,0,1228,1233,3,74,37,0,1229,1233,3,58,29,0,1230,1233,3,62,31,0,1231,1233,3,66,33,0,1232,1212,1,0,0,0,1232,1213,1,0,0,0,1232,1214,1,0,0,0,1232,1215,1,0,0,0,1232,1216,1,0,0,0,1232,1217,1,0,0,0,1232,1223,1,0,0,0,1232,1227,1,0,0,0,1232,1228,1,0,0,0,1232,1229,1,0,0,0,1232,1230,1,0,0,0,1232,1231,1,0,0,0,1233,71,1,0,0,0,1234,1235,5,73,0,0,1235,1236,5,27,0,0,1236,1237,3,14,7,0,1237,1238,5,55,0,0,1238,1239,3,204,102,0,1239,1240,5,28,0,0,1240,73,1,0,0,0,1241,1242,5,68,0,0,1242,1243,5,27,0,0,1243,1244,3,14,7,0,1244,1245,5,55,0,0,1245,1246,3,156,78,0,1246,1247,5,28,0,0,1247,75,1,0,0,0,1248,1249,5,128,0,0,1249,1252,5,27,0,0,1250,1253,3,232,116,0,1251,1253,3,370,185,0,1252,1250,1,0,0,0,1252,1251,1,0,0,0,1253,1254,1,0,0,0,1254,1255,5,28,0,0,1255,77,1,0,0,0,1256,1258,5,72,0,0,1257,1259,3,14,7,0,1258,1257,1,0,0,0,1258,1259,1,0,0,0,1259,1261,1,0,0,0,1260,1262,3,140,70,0,1261,1260,1,0,0,0,1262,1263,1,0,0,0,1263,1261,1,0,0,0,1263,1264,1,0,0,0,1264,1267,1,0,0,0,1265,1266,5,114,0,0,1266,1268,3,14,7,0,1267,1265,1,0,0,0,1267,1268,1,0,0,0,1268,1269,1,0,0,0,1269,1270,5,118,0,0,1270,79,1,0,0,0,1271,1283,3,110,55,0,1272,1281,5,41,0,0,1273,1274,5,27,0,0,1274,1275,3,14,7,0,1275,1276,5,28,0,0,1276,1282,1,0,0,0,1277,1278,5,37,0,0,1278,1279,3,6,3,0,1279,1280,5,38,0,0,1280,1282,1,0,0,0,1281,1273,1,0,0,0,1281,1277,1,0,0,0,1282,1284,1,0,0,0,1283,1272,1,0,0,0,1283,1284,1,0,0,0,1284,81,1,0,0,0,1285,1286,3,56,28,0,1286,83,1,0,0,0,1287,1291,3,98,49,0,1288,1291,3,102,51,0,1289,1291,3,108,54,0,1290,1287,1,0,0,0,1290,1288,1,0,0,0,1290,1289,1,0,0,0,1291,85,1,0,0,0,1292,1293,5,316,0,0,1293,87,1,0,0,0,1294,1297,3,710,355,0,1295,1297,5,316,0,0,1296,1294,1,0,0,0,1296,1295,1,0,0,0,1297,89,1,0,0,0,1298,1299,3,14,7,0,1299,1300,5,55,0,0,1300,1301,3,88,44,0,1301,91,1,0,0,0,1302,1307,3,90,45,0,1303,1304,5,26,0,0,1304,1306,3,90,45,0,1305,1303,1,0,0,0,1306,1309,1,0,0,0,1307,1305,1,0,0,0,1307,1308,1,0,0,0,1308,93,1,0,0,0,1309,1307,1,0,0,0,1310,1311,3,14,7,0,1311,1312,5,26,0,0,1312,1315,3,86,43,0,1313,1314,5,216,0,0,1314,1316,3,92,46,0,1315,1313,1,0,0,0,1315,1316,1,0,0,0,1316,95,1,0,0,0,1317,1322,5,121,0,0,1318,1322,5,198,0,0,1319,1320,5,98,0,0,1320,1322,3,14,7,0,1321,1317,1,0,0,0,1321,1318,1,0,0,0,1321,1319,1,0,0,0,1322,97,1,0,0,0,1323,1324,5,175,0,0,1324,1325,5,27,0,0,1325,1328,3,94,47,0,1326,1327,5,248,0,0,1327,1329,3,156,78,0,1328,1326,1,0,0,0,1328,1329,1,0,0,0,1329,1336,1,0,0,0,1330,1331,3,96,48,0,1331,1332,5,204,0,0,1332,1333,7,6,0,0,1333,1335,1,0,0,0,1334,1330,1,0,0,0,1335,1338,1,0,0,0,1336,1334,1,0,0,0,1336,1337,1,0,0,0,1337,1339,1,0,0,0,1338,1336,1,0,0,0,1339,1340,5,28,0,0,1340,99,1,0,0,0,1341,1342,7,7,0,0,1342,1343,5,204,0,0,1343,1344,5,121,0,0,1344,101,1,0,0,0,1345,1346,5,173,0,0,1346,1347,5,27,0,0,1347,1349,3,94,47,0,1348,1350,3,100,50,0,1349,1348,1,0,0,0,1349,1350,1,0,0,0,1350,1351,1,0,0,0,1351,1352,5,28,0,0,1352,103,1,0,0,0,1353,1355,5,313,0,0,1354,1356,5,54,0,0,1355,1354,1,0,0,0,1355,1356,1,0,0,0,1356,1365,1,0,0,0,1357,1359,5,312,0,0,1358,1360,7,8,0,0,1359,1358,1,0,0,0,1359,1360,1,0,0,0,1360,1362,1,0,0,0,1361,1363,5,54,0,0,1362,1361,1,0,0,0,1362,1363,1,0,0,0,1363,1365,1,0,0,0,1364,1353,1,0,0,0,1364,1357,1,0,0,0,1365,105,1,0,0,0,1366,1373,5,121,0,0,1367,1373,5,198,0,0,1368,1369,5,115,0,0,1369,1373,5,54,0,0,1370,1371,5,115,0,0,1371,1373,5,200,0,0,1372,1366,1,0,0,0,1372,1367,1,0,0,0,1372,1368,1,0,0,0,1372,1370,1,0,0,0,1373,107,1,0,0,0,1374,1375,5,174,0,0,1375,1376,5,27,0,0,1376,1380,3,94,47,0,1377,1378,3,104,52,0,1378,1379,5,314,0,0,1379,1381,1,0,0,0,1380,1377,1,0,0,0,1380,1381,1,0,0,0,1381,1386,1,0,0,0,1382,1383,3,106,53,0,1383,1384,5,204,0,0,1384,1385,5,115,0,0,1385,1387,1,0,0,0,1386,1382,1,0,0,0,1386,1387,1,0,0,0,1387,1392,1,0,0,0,1388,1389,3,106,53,0,1389,1390,5,204,0,0,1390,1391,5,121,0,0,1391,1393,1,0,0,0,1392,1388,1,0,0,0,1392,1393,1,0,0,0,1393,1394,1,0,0,0,1394,1395,5,28,0,0,1395,109,1,0,0,0,1396,1398,5,27,0,0,1397,1399,3,130,65,0,1398,1397,1,0,0,0,1398,1399,1,0,0,0,1399,1401,1,0,0,0,1400,1402,5,26,0,0,1401,1400,1,0,0,0,1401,1402,1,0,0,0,1402,1403,1,0,0,0,1403,1404,5,28,0,0,1404,111,1,0,0,0,1405,1410,3,14,7,0,1406,1407,5,26,0,0,1407,1409,3,14,7,0,1408,1406,1,0,0,0,1409,1412,1,0,0,0,1410,1408,1,0,0,0,1410,1411,1,0,0,0,1411,113,1,0,0,0,1412,1410,1,0,0,0,1413,1414,5,27,0,0,1414,1419,3,724,362,0,1415,1416,5,26,0,0,1416,1418,3,724,362,0,1417,1415,1,0,0,0,1418,1421,1,0,0,0,1419,1417,1,0,0,0,1419,1420,1,0,0,0,1420,1422,1,0,0,0,1421,1419,1,0,0,0,1422,1423,5,28,0,0,1423,115,1,0,0,0,1424,1427,3,144,72,0,1425,1427,3,724,362,0,1426,1424,1,0,0,0,1426,1425,1,0,0,0,1427,117,1,0,0,0,1428,1429,5,27,0,0,1429,1434,3,116,58,0,1430,1431,5,26,0,0,1431,1433,3,116,58,0,1432,1430,1,0,0,0,1433,1436,1,0,0,0,1434,1432,1,0,0,0,1434,1435,1,0,0,0,1435,1437,1,0,0,0,1436,1434,1,0,0,0,1437,1438,5,28,0,0,1438,119,1,0,0,0,1439,1440,3,748,374,0,1440,1441,3,724,362,0,1441,121,1,0,0,0,1442,1443,3,724,362,0,1443,1444,5,25,0,0,1444,1445,3,724,362,0,1445,1448,1,0,0,0,1446,1448,3,738,369,0,1447,1442,1,0,0,0,1447,1446,1,0,0,0,1448,123,1,0,0,0,1449,1454,3,120,60,0,1450,1451,5,26,0,0,1451,1453,3,120,60,0,1452,1450,1,0,0,0,1453,1456,1,0,0,0,1454,1452,1,0,0,0,1454,1455,1,0,0,0,1455,1458,1,0,0,0,1456,1454,1,0,0,0,1457,1459,5,26,0,0,1458,1457,1,0,0,0,1458,1459,1,0,0,0,1459,125,1,0,0,0,1460,1465,3,122,61,0,1461,1462,5,26,0,0,1462,1464,3,122,61,0,1463,1461,1,0,0,0,1464,1467,1,0,0,0,1465,1463,1,0,0,0,1465,1466,1,0,0,0,1466,1469,1,0,0,0,1467,1465,1,0,0,0,1468,1470,5,26,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,127,1,0,0,0,1471,1474,3,14,7,0,1472,1473,5,55,0,0,1473,1475,3,726,363,0,1474,1472,1,0,0,0,1474,1475,1,0,0,0,1475,129,1,0,0,0,1476,1481,3,128,64,0,1477,1478,5,26,0,0,1478,1480,3,128,64,0,1479,1477,1,0,0,0,1480,1483,1,0,0,0,1481,1479,1,0,0,0,1481,1482,1,0,0,0,1482,131,1,0,0,0,1483,1481,1,0,0,0,1484,1491,5,27,0,0,1485,1486,3,252,126,0,1486,1488,3,130,65,0,1487,1489,5,26,0,0,1488,1487,1,0,0,0,1488,1489,1,0,0,0,1489,1492,1,0,0,0,1490,1492,5,20,0,0,1491,1485,1,0,0,0,1491,1490,1,0,0,0,1491,1492,1,0,0,0,1492,1493,1,0,0,0,1493,1494,5,28,0,0,1494,1495,3,134,67,0,1495,133,1,0,0,0,1496,1499,3,656,328,0,1497,1499,3,658,329,0,1498,1496,1,0,0,0,1498,1497,1,0,0,0,1498,1499,1,0,0,0,1499,1502,1,0,0,0,1500,1501,5,213,0,0,1501,1503,3,660,330,0,1502,1500,1,0,0,0,1502,1503,1,0,0,0,1503,135,1,0,0,0,1504,1505,3,726,363,0,1505,1506,5,40,0,0,1506,1507,3,726,363,0,1507,1513,1,0,0,0,1508,1513,3,730,365,0,1509,1513,3,144,72,0,1510,1511,5,131,0,0,1511,1513,5,144,0,0,1512,1504,1,0,0,0,1512,1508,1,0,0,0,1512,1509,1,0,0,0,1512,1510,1,0,0,0,1513,1514,1,0,0,0,1514,1515,3,132,66,0,1515,137,1,0,0,0,1516,1517,5,43,0,0,1517,1518,3,14,7,0,1518,1519,5,42,0,0,1519,139,1,0,0,0,1520,1521,5,309,0,0,1521,1522,3,14,7,0,1522,1523,5,284,0,0,1523,1524,3,14,7,0,1524,141,1,0,0,0,1525,1536,3,788,394,0,1526,1536,3,786,393,0,1527,1536,5,316,0,0,1528,1536,5,322,0,0,1529,1536,5,198,0,0,1530,1536,5,92,0,0,1531,1536,5,91,0,0,1532,1536,5,93,0,0,1533,1536,3,784,392,0,1534,1536,5,116,0,0,1535,1525,1,0,0,0,1535,1526,1,0,0,0,1535,1527,1,0,0,0,1535,1528,1,0,0,0,1535,1529,1,0,0,0,1535,1530,1,0,0,0,1535,1531,1,0,0,0,1535,1532,1,0,0,0,1535,1533,1,0,0,0,1535,1534,1,0,0,0,1536,143,1,0,0,0,1537,1541,5,33,0,0,1538,1542,3,726,363,0,1539,1542,5,290,0,0,1540,1542,5,133,0,0,1541,1538,1,0,0,0,1541,1539,1,0,0,0,1541,1540,1,0,0,0,1542,145,1,0,0,0,1543,1545,3,144,72,0,1544,1546,5,29,0,0,1545,1544,1,0,0,0,1545,1546,1,0,0,0,1546,147,1,0,0,0,1547,1552,3,144,72,0,1548,1549,5,26,0,0,1549,1551,3,144,72,0,1550,1548,1,0,0,0,1551,1554,1,0,0,0,1552,1550,1,0,0,0,1552,1553,1,0,0,0,1553,149,1,0,0,0,1554,1552,1,0,0,0,1555,1558,3,144,72,0,1556,1557,5,55,0,0,1557,1559,3,144,72,0,1558,1556,1,0,0,0,1558,1559,1,0,0,0,1559,151,1,0,0,0,1560,1565,3,150,75,0,1561,1562,5,26,0,0,1562,1564,3,150,75,0,1563,1561,1,0,0,0,1564,1567,1,0,0,0,1565,1563,1,0,0,0,1565,1566,1,0,0,0,1566,153,1,0,0,0,1567,1565,1,0,0,0,1568,1570,7,3,0,0,1569,1568,1,0,0,0,1569,1570,1,0,0,0,1570,1573,1,0,0,0,1571,1574,3,788,394,0,1572,1574,3,786,393,0,1573,1571,1,0,0,0,1573,1572,1,0,0,0,1574,155,1,0,0,0,1575,1576,3,742,371,0,1576,157,1,0,0,0,1577,1580,3,788,394,0,1578,1580,3,144,72,0,1579,1577,1,0,0,0,1579,1578,1,0,0,0,1580,159,1,0,0,0,1581,1585,3,706,353,0,1582,1585,5,316,0,0,1583,1585,3,144,72,0,1584,1581,1,0,0,0,1584,1582,1,0,0,0,1584,1583,1,0,0,0,1585,161,1,0,0,0,1586,1587,3,160,80,0,1587,1588,5,30,0,0,1588,1589,3,204,102,0,1589,163,1,0,0,0,1590,1591,3,160,80,0,1591,1596,3,204,102,0,1592,1594,5,196,0,0,1593,1592,1,0,0,0,1593,1594,1,0,0,0,1594,1595,1,0,0,0,1595,1597,5,198,0,0,1596,1593,1,0,0,0,1596,1597,1,0,0,0,1597,1603,1,0,0,0,1598,1599,3,204,102,0,1599,1600,5,55,0,0,1600,1601,3,160,80,0,1601,1603,1,0,0,0,1602,1590,1,0,0,0,1602,1598,1,0,0,0,1603,165,1,0,0,0,1604,1605,3,160,80,0,1605,1606,5,30,0,0,1606,1608,1,0,0,0,1607,1604,1,0,0,0,1607,1608,1,0,0,0,1608,1609,1,0,0,0,1609,1610,3,204,102,0,1610,167,1,0,0,0,1611,1615,3,166,83,0,1612,1613,5,37,0,0,1613,1614,5,63,0,0,1614,1616,5,38,0,0,1615,1612,1,0,0,0,1615,1616,1,0,0,0,1616,169,1,0,0,0,1617,1622,3,168,84,0,1618,1619,5,26,0,0,1619,1621,3,168,84,0,1620,1618,1,0,0,0,1621,1624,1,0,0,0,1622,1620,1,0,0,0,1622,1623,1,0,0,0,1623,171,1,0,0,0,1624,1622,1,0,0,0,1625,1626,5,96,0,0,1626,1627,5,27,0,0,1627,1628,3,158,79,0,1628,1629,5,26,0,0,1629,1630,3,158,79,0,1630,1631,5,28,0,0,1631,173,1,0,0,0,1632,1633,5,208,0,0,1633,1634,5,6,0,0,1634,1635,3,204,102,0,1635,1636,5,8,0,0,1636,175,1,0,0,0,1637,1654,5,291,0,0,1638,1650,5,6,0,0,1639,1644,3,204,102,0,1640,1641,5,26,0,0,1641,1643,3,204,102,0,1642,1640,1,0,0,0,1643,1646,1,0,0,0,1644,1642,1,0,0,0,1644,1645,1,0,0,0,1645,1648,1,0,0,0,1646,1644,1,0,0,0,1647,1649,5,26,0,0,1648,1647,1,0,0,0,1648,1649,1,0,0,0,1649,1651,1,0,0,0,1650,1639,1,0,0,0,1650,1651,1,0,0,0,1651,1652,1,0,0,0,1652,1655,5,8,0,0,1653,1655,5,5,0,0,1654,1638,1,0,0,0,1654,1653,1,0,0,0,1655,177,1,0,0,0,1656,1673,5,270,0,0,1657,1669,5,6,0,0,1658,1663,3,162,81,0,1659,1660,5,26,0,0,1660,1662,3,162,81,0,1661,1659,1,0,0,0,1662,1665,1,0,0,0,1663,1661,1,0,0,0,1663,1664,1,0,0,0,1664,1667,1,0,0,0,1665,1663,1,0,0,0,1666,1668,5,26,0,0,1667,1666,1,0,0,0,1667,1668,1,0,0,0,1668,1670,1,0,0,0,1669,1658,1,0,0,0,1669,1670,1,0,0,0,1670,1671,1,0,0,0,1671,1674,5,8,0,0,1672,1674,5,5,0,0,1673,1657,1,0,0,0,1673,1672,1,0,0,0,1674,179,1,0,0,0,1675,1676,5,306,0,0,1676,1677,5,6,0,0,1677,1682,3,166,83,0,1678,1679,5,26,0,0,1679,1681,3,166,83,0,1680,1678,1,0,0,0,1681,1684,1,0,0,0,1682,1680,1,0,0,0,1682,1683,1,0,0,0,1683,1686,1,0,0,0,1684,1682,1,0,0,0,1685,1687,5,26,0,0,1686,1685,1,0,0,0,1686,1687,1,0,0,0,1687,1688,1,0,0,0,1688,1689,5,8,0,0,1689,181,1,0,0,0,1690,1691,5,182,0,0,1691,1692,5,6,0,0,1692,1693,3,204,102,0,1693,1694,5,8,0,0,1694,183,1,0,0,0,1695,1696,5,269,0,0,1696,1697,5,6,0,0,1697,1698,3,204,102,0,1698,1699,5,8,0,0,1699,185,1,0,0,0,1700,1701,5,138,0,0,1701,1702,5,6,0,0,1702,1703,3,204,102,0,1703,1704,5,8,0,0,1704,187,1,0,0,0,1705,1706,5,106,0,0,1706,1707,5,6,0,0,1707,1708,3,204,102,0,1708,1709,5,26,0,0,1709,1710,3,204,102,0,1710,1711,5,8,0,0,1711,189,1,0,0,0,1712,1713,5,264,0,0,1713,1714,5,6,0,0,1714,1715,3,204,102,0,1715,1716,5,8,0,0,1716,191,1,0,0,0,1717,1718,5,119,0,0,1718,1719,5,6,0,0,1719,1724,3,160,80,0,1720,1721,5,26,0,0,1721,1723,3,160,80,0,1722,1720,1,0,0,0,1723,1726,1,0,0,0,1724,1722,1,0,0,0,1724,1725,1,0,0,0,1725,1728,1,0,0,0,1726,1724,1,0,0,0,1727,1729,5,26,0,0,1728,1727,1,0,0,0,1728,1729,1,0,0,0,1729,1730,1,0,0,0,1730,1731,5,8,0,0,1731,193,1,0,0,0,1732,1733,5,243,0,0,1733,1734,5,6,0,0,1734,1735,3,160,80,0,1735,1736,5,8,0,0,1736,195,1,0,0,0,1737,1738,5,281,0,0,1738,1739,5,6,0,0,1739,1740,3,204,102,0,1740,1741,5,26,0,0,1741,1742,3,160,80,0,1742,1743,5,8,0,0,1743,197,1,0,0,0,1744,1745,5,70,0,0,1745,1746,5,6,0,0,1746,1748,5,27,0,0,1747,1749,3,170,85,0,1748,1747,1,0,0,0,1748,1749,1,0,0,0,1749,1751,1,0,0,0,1750,1752,5,26,0,0,1751,1750,1,0,0,0,1751,1752,1,0,0,0,1752,1757,1,0,0,0,1753,1754,5,43,0,0,1754,1755,3,170,85,0,1755,1756,5,42,0,0,1756,1758,1,0,0,0,1757,1753,1,0,0,0,1757,1758,1,0,0,0,1758,1759,1,0,0,0,1759,1760,5,28,0,0,1760,1761,5,41,0,0,1761,1762,3,204,102,0,1762,1763,5,8,0,0,1763,199,1,0,0,0,1764,1778,3,174,87,0,1765,1778,3,176,88,0,1766,1778,3,178,89,0,1767,1778,3,180,90,0,1768,1778,3,182,91,0,1769,1778,3,184,92,0,1770,1778,3,186,93,0,1771,1778,3,188,94,0,1772,1778,3,190,95,0,1773,1778,3,192,96,0,1774,1778,3,194,97,0,1775,1778,3,196,98,0,1776,1778,3,198,99,0,1777,1764,1,0,0,0,1777,1765,1,0,0,0,1777,1766,1,0,0,0,1777,1767,1,0,0,0,1777,1768,1,0,0,0,1777,1769,1,0,0,0,1777,1770,1,0,0,0,1777,1771,1,0,0,0,1777,1772,1,0,0,0,1777,1773,1,0,0,0,1777,1774,1,0,0,0,1777,1775,1,0,0,0,1777,1776,1,0,0,0,1778,1782,1,0,0,0,1779,1781,5,29,0,0,1780,1779,1,0,0,0,1781,1784,1,0,0,0,1782,1780,1,0,0,0,1782,1783,1,0,0,0,1783,201,1,0,0,0,1784,1782,1,0,0,0,1785,1797,3,200,100,0,1786,1789,3,172,86,0,1787,1789,3,156,78,0,1788,1786,1,0,0,0,1788,1787,1,0,0,0,1789,1793,1,0,0,0,1790,1792,5,29,0,0,1791,1790,1,0,0,0,1792,1795,1,0,0,0,1793,1791,1,0,0,0,1793,1794,1,0,0,0,1794,1797,1,0,0,0,1795,1793,1,0,0,0,1796,1785,1,0,0,0,1796,1788,1,0,0,0,1797,203,1,0,0,0,1798,1801,3,202,101,0,1799,1801,3,144,72,0,1800,1798,1,0,0,0,1800,1799,1,0,0,0,1801,205,1,0,0,0,1802,1803,5,316,0,0,1803,207,1,0,0,0,1804,1805,5,306,0,0,1805,1806,5,27,0,0,1806,1807,3,14,7,0,1807,1808,5,26,0,0,1808,1809,3,14,7,0,1809,1810,5,26,0,0,1810,1811,3,14,7,0,1811,1812,5,28,0,0,1812,1828,1,0,0,0,1813,1814,5,119,0,0,1814,1815,5,27,0,0,1815,1816,3,14,7,0,1816,1817,5,26,0,0,1817,1818,3,14,7,0,1818,1819,5,28,0,0,1819,1828,1,0,0,0,1820,1821,5,70,0,0,1821,1822,5,27,0,0,1822,1823,3,14,7,0,1823,1824,5,26,0,0,1824,1825,3,14,7,0,1825,1826,5,28,0,0,1826,1828,1,0,0,0,1827,1804,1,0,0,0,1827,1813,1,0,0,0,1827,1820,1,0,0,0,1828,209,1,0,0,0,1829,1830,5,97,0,0,1830,1831,3,144,72,0,1831,1832,5,55,0,0,1832,1835,3,202,101,0,1833,1834,5,2,0,0,1834,1836,3,142,71,0,1835,1833,1,0,0,0,1835,1836,1,0,0,0,1836,211,1,0,0,0,1837,1839,5,25,0,0,1838,1837,1,0,0,0,1838,1839,1,0,0,0,1839,1840,1,0,0,0,1840,1845,3,724,362,0,1841,1842,5,25,0,0,1842,1844,3,724,362,0,1843,1841,1,0,0,0,1844,1847,1,0,0,0,1845,1843,1,0,0,0,1845,1846,1,0,0,0,1846,213,1,0,0,0,1847,1845,1,0,0,0,1848,1849,5,158,0,0,1849,1850,3,212,106,0,1850,1851,5,273,0,0,1851,1852,3,152,76,0,1852,215,1,0,0,0,1853,1854,5,130,0,0,1854,1855,3,148,74,0,1855,217,1,0,0,0,1856,1859,3,144,72,0,1857,1859,5,116,0,0,1858,1856,1,0,0,0,1858,1857,1,0,0,0,1859,1860,1,0,0,0,1860,1862,5,27,0,0,1861,1863,3,112,56,0,1862,1861,1,0,0,0,1862,1863,1,0,0,0,1863,1864,1,0,0,0,1864,1865,5,28,0,0,1865,219,1,0,0,0,1866,1867,5,65,0,0,1867,1868,3,566,283,0,1868,1869,5,118,0,0,1869,1870,5,111,0,0,1870,221,1,0,0,0,1871,1874,5,111,0,0,1872,1875,3,218,109,0,1873,1875,3,220,110,0,1874,1872,1,0,0,0,1874,1873,1,0,0,0,1875,223,1,0,0,0,1876,1877,5,223,0,0,1877,1878,3,754,377,0,1878,1892,3,724,362,0,1879,1880,5,2,0,0,1880,1893,3,226,113,0,1881,1882,5,27,0,0,1882,1887,3,226,113,0,1883,1884,5,26,0,0,1884,1886,3,226,113,0,1885,1883,1,0,0,0,1886,1889,1,0,0,0,1887,1885,1,0,0,0,1887,1888,1,0,0,0,1888,1890,1,0,0,0,1889,1887,1,0,0,0,1890,1891,5,28,0,0,1891,1893,1,0,0,0,1892,1879,1,0,0,0,1892,1881,1,0,0,0,1892,1893,1,0,0,0,1893,225,1,0,0,0,1894,1900,3,154,77,0,1895,1900,3,706,353,0,1896,1900,5,316,0,0,1897,1900,3,784,392,0,1898,1900,3,144,72,0,1899,1894,1,0,0,0,1899,1895,1,0,0,0,1899,1896,1,0,0,0,1899,1897,1,0,0,0,1899,1898,1,0,0,0,1900,227,1,0,0,0,1901,1903,3,14,7,0,1902,1904,7,9,0,0,1903,1902,1,0,0,0,1903,1904,1,0,0,0,1904,229,1,0,0,0,1905,1910,3,228,114,0,1906,1907,5,26,0,0,1907,1909,3,228,114,0,1908,1906,1,0,0,0,1909,1912,1,0,0,0,1910,1908,1,0,0,0,1910,1911,1,0,0,0,1911,231,1,0,0,0,1912,1910,1,0,0,0,1913,1919,3,236,118,0,1914,1915,3,238,119,0,1915,1916,3,236,118,0,1916,1918,1,0,0,0,1917,1914,1,0,0,0,1918,1921,1,0,0,0,1919,1917,1,0,0,0,1919,1920,1,0,0,0,1920,233,1,0,0,0,1921,1919,1,0,0,0,1922,1928,3,240,120,0,1923,1924,3,238,119,0,1924,1925,3,236,118,0,1925,1927,1,0,0,0,1926,1923,1,0,0,0,1927,1930,1,0,0,0,1928,1926,1,0,0,0,1928,1929,1,0,0,0,1929,235,1,0,0,0,1930,1928,1,0,0,0,1931,1937,3,240,120,0,1932,1933,5,27,0,0,1933,1934,3,240,120,0,1934,1935,5,28,0,0,1935,1937,1,0,0,0,1936,1931,1,0,0,0,1936,1932,1,0,0,0,1937,237,1,0,0,0,1938,1940,5,295,0,0,1939,1941,5,48,0,0,1940,1939,1,0,0,0,1940,1941,1,0,0,0,1941,1945,1,0,0,0,1942,1945,5,168,0,0,1943,1945,5,124,0,0,1944,1938,1,0,0,0,1944,1942,1,0,0,0,1944,1943,1,0,0,0,1945,239,1,0,0,0,1946,1953,3,242,121,0,1947,1948,5,181,0,0,1948,1951,3,14,7,0,1949,1950,7,10,0,0,1950,1952,3,14,7,0,1951,1949,1,0,0,0,1951,1952,1,0,0,0,1952,1954,1,0,0,0,1953,1947,1,0,0,0,1953,1954,1,0,0,0,1954,241,1,0,0,0,1955,1957,5,109,0,0,1956,1955,1,0,0,0,1956,1957,1,0,0,0,1957,1961,1,0,0,0,1958,1962,3,244,122,0,1959,1962,3,250,125,0,1960,1962,3,254,127,0,1961,1958,1,0,0,0,1961,1959,1,0,0,0,1961,1960,1,0,0,0,1962,1966,1,0,0,0,1963,1964,5,169,0,0,1964,1965,5,246,0,0,1965,1967,3,116,58,0,1966,1963,1,0,0,0,1966,1967,1,0,0,0,1967,243,1,0,0,0,1968,1970,5,228,0,0,1969,1971,5,269,0,0,1970,1969,1,0,0,0,1970,1971,1,0,0,0,1971,1972,1,0,0,0,1972,1977,3,346,173,0,1973,1974,5,26,0,0,1974,1976,3,346,173,0,1975,1973,1,0,0,0,1976,1979,1,0,0,0,1977,1975,1,0,0,0,1977,1978,1,0,0,0,1978,2001,1,0,0,0,1979,1977,1,0,0,0,1980,1981,5,303,0,0,1981,1984,3,136,68,0,1982,1983,5,55,0,0,1983,1985,3,724,362,0,1984,1982,1,0,0,0,1984,1985,1,0,0,0,1985,1988,1,0,0,0,1986,1987,5,312,0,0,1987,1989,3,248,124,0,1988,1986,1,0,0,0,1988,1989,1,0,0,0,1989,1991,1,0,0,0,1990,1992,3,800,400,0,1991,1990,1,0,0,0,1991,1992,1,0,0,0,1992,1995,1,0,0,0,1993,1994,5,152,0,0,1994,1996,3,14,7,0,1995,1993,1,0,0,0,1995,1996,1,0,0,0,1996,1999,1,0,0,0,1997,1998,5,57,0,0,1998,2e3,3,314,157,0,1999,1997,1,0,0,0,1999,2e3,1,0,0,0,2e3,2002,1,0,0,0,2001,1980,1,0,0,0,2001,2002,1,0,0,0,2002,245,1,0,0,0,2003,2004,3,724,362,0,2004,2005,5,2,0,0,2005,2006,3,14,7,0,2006,247,1,0,0,0,2007,2012,3,246,123,0,2008,2009,5,26,0,0,2009,2011,3,246,123,0,2010,2008,1,0,0,0,2011,2014,1,0,0,0,2012,2010,1,0,0,0,2012,2013,1,0,0,0,2013,249,1,0,0,0,2014,2012,1,0,0,0,2015,2016,5,232,0,0,2016,2021,3,346,173,0,2017,2018,5,26,0,0,2018,2020,3,346,173,0,2019,2017,1,0,0,0,2020,2023,1,0,0,0,2021,2019,1,0,0,0,2021,2022,1,0,0,0,2022,2026,1,0,0,0,2023,2021,1,0,0,0,2024,2025,5,225,0,0,2025,2027,3,230,115,0,2026,2024,1,0,0,0,2026,2027,1,0,0,0,2027,2028,1,0,0,0,2028,2029,5,204,0,0,2029,2030,3,124,62,0,2030,2032,5,303,0,0,2031,2033,5,48,0,0,2032,2031,1,0,0,0,2032,2033,1,0,0,0,2033,2034,1,0,0,0,2034,2037,3,136,68,0,2035,2036,5,55,0,0,2036,2038,3,724,362,0,2037,2035,1,0,0,0,2037,2038,1,0,0,0,2038,2040,1,0,0,0,2039,2041,3,800,400,0,2040,2039,1,0,0,0,2040,2041,1,0,0,0,2041,2044,1,0,0,0,2042,2043,5,152,0,0,2043,2045,3,14,7,0,2044,2042,1,0,0,0,2044,2045,1,0,0,0,2045,2048,1,0,0,0,2046,2047,5,57,0,0,2047,2049,3,314,157,0,2048,2046,1,0,0,0,2048,2049,1,0,0,0,2049,251,1,0,0,0,2050,2052,7,11,0,0,2051,2050,1,0,0,0,2051,2052,1,0,0,0,2052,253,1,0,0,0,2053,2054,5,142,0,0,2054,2056,3,338,169,0,2055,2053,1,0,0,0,2055,2056,1,0,0,0,2056,2057,1,0,0,0,2057,2059,5,262,0,0,2058,2060,5,269,0,0,2059,2058,1,0,0,0,2059,2060,1,0,0,0,2060,2061,1,0,0,0,2061,2062,3,252,126,0,2062,2067,3,336,168,0,2063,2064,5,26,0,0,2064,2066,3,336,168,0,2065,2063,1,0,0,0,2066,2069,1,0,0,0,2067,2065,1,0,0,0,2067,2068,1,0,0,0,2068,2071,1,0,0,0,2069,2067,1,0,0,0,2070,2072,5,26,0,0,2071,2070,1,0,0,0,2071,2072,1,0,0,0,2072,2075,1,0,0,0,2073,2074,5,313,0,0,2074,2076,3,126,63,0,2075,2073,1,0,0,0,2075,2076,1,0,0,0,2076,2079,1,0,0,0,2077,2078,5,142,0,0,2078,2080,3,338,169,0,2079,2077,1,0,0,0,2079,2080,1,0,0,0,2080,2082,1,0,0,0,2081,2083,3,800,400,0,2082,2081,1,0,0,0,2082,2083,1,0,0,0,2083,2085,1,0,0,0,2084,2086,3,318,159,0,2085,2084,1,0,0,0,2085,2086,1,0,0,0,2086,2089,1,0,0,0,2087,2088,5,152,0,0,2088,2090,3,14,7,0,2089,2087,1,0,0,0,2089,2090,1,0,0,0,2090,2092,1,0,0,0,2091,2093,3,664,332,0,2092,2091,1,0,0,0,2092,2093,1,0,0,0,2093,2095,1,0,0,0,2094,2096,3,316,158,0,2095,2094,1,0,0,0,2095,2096,1,0,0,0,2096,255,1,0,0,0,2097,2098,5,187,0,0,2098,2100,5,27,0,0,2099,2101,3,678,339,0,2100,2099,1,0,0,0,2100,2101,1,0,0,0,2101,2103,1,0,0,0,2102,2104,3,314,157,0,2103,2102,1,0,0,0,2103,2104,1,0,0,0,2104,2106,1,0,0,0,2105,2107,3,262,131,0,2106,2105,1,0,0,0,2106,2107,1,0,0,0,2107,2109,1,0,0,0,2108,2110,3,258,129,0,2109,2108,1,0,0,0,2109,2110,1,0,0,0,2110,2111,1,0,0,0,2111,2112,3,268,134,0,2112,2113,5,28,0,0,2113,257,1,0,0,0,2114,2115,5,205,0,0,2115,2116,5,255,0,0,2116,2117,5,220,0,0,2117,2126,5,185,0,0,2118,2119,5,48,0,0,2119,2120,5,256,0,0,2120,2121,5,220,0,0,2121,2123,5,185,0,0,2122,2124,3,260,130,0,2123,2122,1,0,0,0,2123,2124,1,0,0,0,2124,2126,1,0,0,0,2125,2114,1,0,0,0,2125,2118,1,0,0,0,2126,259,1,0,0,0,2127,2128,5,266,0,0,2128,2129,5,115,0,0,2129,2137,5,186,0,0,2130,2131,5,203,0,0,2131,2132,5,115,0,0,2132,2137,5,186,0,0,2133,2134,5,312,0,0,2134,2135,5,298,0,0,2135,2137,5,256,0,0,2136,2127,1,0,0,0,2136,2130,1,0,0,0,2136,2133,1,0,0,0,2137,261,1,0,0,0,2138,2139,5,188,0,0,2139,2140,3,264,132,0,2140,263,1,0,0,0,2141,2146,3,266,133,0,2142,2143,5,26,0,0,2143,2145,3,266,133,0,2144,2142,1,0,0,0,2145,2148,1,0,0,0,2146,2144,1,0,0,0,2146,2147,1,0,0,0,2147,265,1,0,0,0,2148,2146,1,0,0,0,2149,2150,3,14,7,0,2150,2151,5,55,0,0,2151,2152,3,724,362,0,2152,267,1,0,0,0,2153,2154,5,47,0,0,2154,2155,5,185,0,0,2155,2157,3,270,135,0,2156,2153,1,0,0,0,2156,2157,1,0,0,0,2157,2159,1,0,0,0,2158,2160,3,274,137,0,2159,2158,1,0,0,0,2159,2160,1,0,0,0,2160,2161,1,0,0,0,2161,2162,5,219,0,0,2162,2163,5,27,0,0,2163,2164,3,276,138,0,2164,2166,5,28,0,0,2165,2167,3,290,145,0,2166,2165,1,0,0,0,2166,2167,1,0,0,0,2167,2168,1,0,0,0,2168,2169,5,101,0,0,2169,2170,3,302,151,0,2170,269,1,0,0,0,2171,2172,5,267,0,0,2172,2173,5,286,0,0,2173,2174,5,194,0,0,2174,2191,5,255,0,0,2175,2176,5,267,0,0,2176,2177,5,218,0,0,2177,2178,5,177,0,0,2178,2191,5,255,0,0,2179,2180,5,267,0,0,2180,2181,5,286,0,0,2181,2182,5,136,0,0,2182,2191,3,272,136,0,2183,2184,5,267,0,0,2184,2185,5,286,0,0,2185,2186,5,177,0,0,2186,2191,3,272,136,0,2187,2188,5,267,0,0,2188,2189,5,286,0,0,2189,2191,3,272,136,0,2190,2171,1,0,0,0,2190,2175,1,0,0,0,2190,2179,1,0,0,0,2190,2183,1,0,0,0,2190,2187,1,0,0,0,2191,271,1,0,0,0,2192,2193,3,312,156,0,2193,273,1,0,0,0,2194,2195,7,12,0,0,2195,275,1,0,0,0,2196,2201,3,278,139,0,2197,2198,5,13,0,0,2198,2200,3,278,139,0,2199,2197,1,0,0,0,2200,2203,1,0,0,0,2201,2199,1,0,0,0,2201,2202,1,0,0,0,2202,277,1,0,0,0,2203,2201,1,0,0,0,2204,2206,3,280,140,0,2205,2204,1,0,0,0,2206,2207,1,0,0,0,2207,2205,1,0,0,0,2207,2208,1,0,0,0,2208,279,1,0,0,0,2209,2211,3,284,142,0,2210,2212,3,282,141,0,2211,2210,1,0,0,0,2211,2212,1,0,0,0,2212,281,1,0,0,0,2213,2215,5,20,0,0,2214,2216,5,29,0,0,2215,2214,1,0,0,0,2215,2216,1,0,0,0,2216,2242,1,0,0,0,2217,2219,5,17,0,0,2218,2220,5,29,0,0,2219,2218,1,0,0,0,2219,2220,1,0,0,0,2220,2242,1,0,0,0,2221,2223,5,29,0,0,2222,2224,5,29,0,0,2223,2222,1,0,0,0,2223,2224,1,0,0,0,2224,2242,1,0,0,0,2225,2227,5,37,0,0,2226,2228,3,788,394,0,2227,2226,1,0,0,0,2227,2228,1,0,0,0,2228,2229,1,0,0,0,2229,2231,5,26,0,0,2230,2232,3,788,394,0,2231,2230,1,0,0,0,2231,2232,1,0,0,0,2232,2233,1,0,0,0,2233,2235,5,38,0,0,2234,2236,5,29,0,0,2235,2234,1,0,0,0,2235,2236,1,0,0,0,2236,2242,1,0,0,0,2237,2238,5,37,0,0,2238,2239,3,788,394,0,2239,2240,5,38,0,0,2240,2242,1,0,0,0,2241,2213,1,0,0,0,2241,2217,1,0,0,0,2241,2221,1,0,0,0,2241,2225,1,0,0,0,2241,2237,1,0,0,0,2242,283,1,0,0,0,2243,2259,3,286,143,0,2244,2259,5,33,0,0,2245,2259,5,39,0,0,2246,2248,5,27,0,0,2247,2249,3,276,138,0,2248,2247,1,0,0,0,2248,2249,1,0,0,0,2249,2250,1,0,0,0,2250,2259,5,28,0,0,2251,2252,5,37,0,0,2252,2253,5,18,0,0,2253,2254,3,276,138,0,2254,2255,5,18,0,0,2255,2256,5,38,0,0,2256,2259,1,0,0,0,2257,2259,3,288,144,0,2258,2243,1,0,0,0,2258,2244,1,0,0,0,2258,2245,1,0,0,0,2258,2246,1,0,0,0,2258,2251,1,0,0,0,2258,2257,1,0,0,0,2259,285,1,0,0,0,2260,2261,3,312,156,0,2261,287,1,0,0,0,2262,2263,5,221,0,0,2263,2264,5,27,0,0,2264,2269,3,276,138,0,2265,2266,5,26,0,0,2266,2268,3,276,138,0,2267,2265,1,0,0,0,2268,2271,1,0,0,0,2269,2267,1,0,0,0,2269,2270,1,0,0,0,2270,2272,1,0,0,0,2271,2269,1,0,0,0,2272,2273,5,28,0,0,2273,289,1,0,0,0,2274,2275,5,272,0,0,2275,2276,3,292,146,0,2276,291,1,0,0,0,2277,2282,3,294,147,0,2278,2279,5,26,0,0,2279,2281,3,294,147,0,2280,2278,1,0,0,0,2281,2284,1,0,0,0,2282,2280,1,0,0,0,2282,2283,1,0,0,0,2283,293,1,0,0,0,2284,2282,1,0,0,0,2285,2286,3,296,148,0,2286,2287,5,2,0,0,2287,2288,5,27,0,0,2288,2289,3,298,149,0,2289,2290,5,28,0,0,2290,295,1,0,0,0,2291,2292,3,312,156,0,2292,297,1,0,0,0,2293,2298,3,300,150,0,2294,2295,5,26,0,0,2295,2297,3,300,150,0,2296,2294,1,0,0,0,2297,2300,1,0,0,0,2298,2296,1,0,0,0,2298,2299,1,0,0,0,2299,299,1,0,0,0,2300,2298,1,0,0,0,2301,2302,3,312,156,0,2302,301,1,0,0,0,2303,2308,3,304,152,0,2304,2305,5,26,0,0,2305,2307,3,304,152,0,2306,2304,1,0,0,0,2307,2310,1,0,0,0,2308,2306,1,0,0,0,2308,2309,1,0,0,0,2309,303,1,0,0,0,2310,2308,1,0,0,0,2311,2312,3,306,153,0,2312,2313,5,55,0,0,2313,2314,3,308,154,0,2314,305,1,0,0,0,2315,2316,3,312,156,0,2316,307,1,0,0,0,2317,2318,3,310,155,0,2318,309,1,0,0,0,2319,2320,3,14,7,0,2320,311,1,0,0,0,2321,2322,3,704,352,0,2322,313,1,0,0,0,2323,2324,5,210,0,0,2324,2325,5,69,0,0,2325,2326,3,230,115,0,2326,315,1,0,0,0,2327,2329,5,57,0,0,2328,2327,1,0,0,0,2328,2329,1,0,0,0,2329,2330,1,0,0,0,2330,2331,3,314,157,0,2331,317,1,0,0,0,2332,2334,5,148,0,0,2333,2335,5,80,0,0,2334,2333,1,0,0,0,2334,2335,1,0,0,0,2335,2336,1,0,0,0,2336,2337,5,69,0,0,2337,2338,3,252,126,0,2338,2341,3,320,160,0,2339,2340,5,312,0,0,2340,2342,3,724,362,0,2341,2339,1,0,0,0,2341,2342,1,0,0,0,2342,319,1,0,0,0,2343,2348,3,322,161,0,2344,2345,5,26,0,0,2345,2347,3,322,161,0,2346,2344,1,0,0,0,2347,2350,1,0,0,0,2348,2346,1,0,0,0,2348,2349,1,0,0,0,2349,321,1,0,0,0,2350,2348,1,0,0,0,2351,2357,3,324,162,0,2352,2357,3,328,164,0,2353,2357,3,330,165,0,2354,2357,3,332,166,0,2355,2357,3,334,167,0,2356,2351,1,0,0,0,2356,2352,1,0,0,0,2356,2353,1,0,0,0,2356,2354,1,0,0,0,2356,2355,1,0,0,0,2357,323,1,0,0,0,2358,2359,3,128,64,0,2359,325,1,0,0,0,2360,2365,3,324,162,0,2361,2362,5,26,0,0,2362,2364,3,324,162,0,2363,2361,1,0,0,0,2364,2367,1,0,0,0,2365,2363,1,0,0,0,2365,2366,1,0,0,0,2366,327,1,0,0,0,2367,2365,1,0,0,0,2368,2369,5,254,0,0,2369,2370,5,27,0,0,2370,2371,3,326,163,0,2371,2372,5,28,0,0,2372,329,1,0,0,0,2373,2374,5,89,0,0,2374,2375,5,27,0,0,2375,2376,3,326,163,0,2376,2377,5,28,0,0,2377,331,1,0,0,0,2378,2379,5,149,0,0,2379,2380,5,265,0,0,2380,2381,5,27,0,0,2381,2382,3,320,160,0,2382,2383,5,28,0,0,2383,333,1,0,0,0,2384,2385,5,153,0,0,2385,2386,5,27,0,0,2386,2387,3,14,7,0,2387,2388,5,26,0,0,2388,2389,3,14,7,0,2389,2390,5,26,0,0,2390,2391,3,14,7,0,2391,2392,5,26,0,0,2392,2393,3,14,7,0,2393,2394,5,28,0,0,2394,335,1,0,0,0,2395,2396,3,748,374,0,2396,2397,5,20,0,0,2397,2405,1,0,0,0,2398,2402,3,14,7,0,2399,2400,5,55,0,0,2400,2403,3,726,363,0,2401,2403,3,744,372,0,2402,2399,1,0,0,0,2402,2401,1,0,0,0,2402,2403,1,0,0,0,2403,2405,1,0,0,0,2404,2395,1,0,0,0,2404,2398,1,0,0,0,2405,337,1,0,0,0,2406,2408,5,53,0,0,2407,2406,1,0,0,0,2407,2408,1,0,0,0,2408,2409,1,0,0,0,2409,2420,3,344,172,0,2410,2412,3,358,179,0,2411,2413,5,53,0,0,2412,2411,1,0,0,0,2412,2413,1,0,0,0,2413,2414,1,0,0,0,2414,2416,3,344,172,0,2415,2417,3,360,180,0,2416,2415,1,0,0,0,2416,2417,1,0,0,0,2417,2419,1,0,0,0,2418,2410,1,0,0,0,2419,2422,1,0,0,0,2420,2418,1,0,0,0,2420,2421,1,0,0,0,2421,339,1,0,0,0,2422,2420,1,0,0,0,2423,2426,3,120,60,0,2424,2425,5,55,0,0,2425,2427,3,724,362,0,2426,2424,1,0,0,0,2426,2427,1,0,0,0,2427,341,1,0,0,0,2428,2437,3,340,170,0,2429,2430,5,27,0,0,2430,2432,3,130,65,0,2431,2433,5,26,0,0,2432,2431,1,0,0,0,2432,2433,1,0,0,0,2433,2434,1,0,0,0,2434,2435,5,28,0,0,2435,2437,1,0,0,0,2436,2428,1,0,0,0,2436,2429,1,0,0,0,2437,343,1,0,0,0,2438,2448,3,346,173,0,2439,2446,5,137,0,0,2440,2442,7,13,0,0,2441,2440,1,0,0,0,2441,2442,1,0,0,0,2442,2443,1,0,0,0,2443,2444,5,69,0,0,2444,2447,3,342,171,0,2445,2447,5,78,0,0,2446,2441,1,0,0,0,2446,2445,1,0,0,0,2447,2449,1,0,0,0,2448,2439,1,0,0,0,2448,2449,1,0,0,0,2449,345,1,0,0,0,2450,2452,3,348,174,0,2451,2453,3,256,128,0,2452,2451,1,0,0,0,2452,2453,1,0,0,0,2453,2462,1,0,0,0,2454,2455,5,55,0,0,2455,2458,3,724,362,0,2456,2458,3,744,372,0,2457,2454,1,0,0,0,2457,2456,1,0,0,0,2458,2460,1,0,0,0,2459,2461,3,114,57,0,2460,2459,1,0,0,0,2460,2461,1,0,0,0,2461,2463,1,0,0,0,2462,2457,1,0,0,0,2462,2463,1,0,0,0,2463,2466,1,0,0,0,2464,2467,3,350,175,0,2465,2467,3,352,176,0,2466,2464,1,0,0,0,2466,2465,1,0,0,0,2466,2467,1,0,0,0,2467,347,1,0,0,0,2468,2478,3,572,286,0,2469,2470,5,27,0,0,2470,2471,3,232,116,0,2471,2472,5,28,0,0,2472,2478,1,0,0,0,2473,2474,5,27,0,0,2474,2475,3,370,185,0,2475,2476,5,28,0,0,2476,2478,1,0,0,0,2477,2468,1,0,0,0,2477,2469,1,0,0,0,2477,2473,1,0,0,0,2478,349,1,0,0,0,2479,2480,5,257,0,0,2480,2481,3,14,7,0,2481,351,1,0,0,0,2482,2483,5,279,0,0,2483,2484,3,354,177,0,2484,2485,5,27,0,0,2485,2486,3,14,7,0,2486,2488,5,28,0,0,2487,2489,3,356,178,0,2488,2487,1,0,0,0,2488,2489,1,0,0,0,2489,353,1,0,0,0,2490,2491,7,14,0,0,2491,355,1,0,0,0,2492,2493,5,239,0,0,2493,2494,5,27,0,0,2494,2495,3,14,7,0,2495,2496,5,28,0,0,2496,357,1,0,0,0,2497,2522,5,26,0,0,2498,2500,5,193,0,0,2499,2498,1,0,0,0,2499,2500,1,0,0,0,2500,2518,1,0,0,0,2501,2503,5,178,0,0,2502,2504,7,15,0,0,2503,2502,1,0,0,0,2503,2504,1,0,0,0,2504,2512,1,0,0,0,2505,2507,5,251,0,0,2506,2508,7,15,0,0,2507,2506,1,0,0,0,2507,2508,1,0,0,0,2508,2512,1,0,0,0,2509,2512,5,126,0,0,2510,2512,5,143,0,0,2511,2501,1,0,0,0,2511,2505,1,0,0,0,2511,2509,1,0,0,0,2511,2510,1,0,0,0,2511,2512,1,0,0,0,2512,2514,1,0,0,0,2513,2515,5,212,0,0,2514,2513,1,0,0,0,2514,2515,1,0,0,0,2515,2519,1,0,0,0,2516,2519,5,165,0,0,2517,2519,5,88,0,0,2518,2511,1,0,0,0,2518,2516,1,0,0,0,2518,2517,1,0,0,0,2519,2520,1,0,0,0,2520,2522,5,172,0,0,2521,2497,1,0,0,0,2521,2499,1,0,0,0,2522,359,1,0,0,0,2523,2524,5,204,0,0,2524,2528,3,14,7,0,2525,2526,5,303,0,0,2526,2528,3,118,59,0,2527,2523,1,0,0,0,2527,2525,1,0,0,0,2528,361,1,0,0,0,2529,2539,5,248,0,0,2530,2540,5,20,0,0,2531,2536,3,724,362,0,2532,2533,5,26,0,0,2533,2535,3,724,362,0,2534,2532,1,0,0,0,2535,2538,1,0,0,0,2536,2534,1,0,0,0,2536,2537,1,0,0,0,2537,2540,1,0,0,0,2538,2536,1,0,0,0,2539,2530,1,0,0,0,2539,2531,1,0,0,0,2540,363,1,0,0,0,2541,2554,5,166,0,0,2542,2543,5,166,0,0,2543,2544,5,209,0,0,2544,2554,5,44,0,0,2545,2546,5,166,0,0,2546,2547,5,209,0,0,2547,2554,5,249,0,0,2548,2549,5,166,0,0,2549,2550,5,209,0,0,2550,2554,5,155,0,0,2551,2554,5,300,0,0,2552,2554,5,240,0,0,2553,2541,1,0,0,0,2553,2542,1,0,0,0,2553,2545,1,0,0,0,2553,2548,1,0,0,0,2553,2551,1,0,0,0,2553,2552,1,0,0,0,2554,2555,1,0,0,0,2555,2556,5,169,0,0,2556,2557,3,588,294,0,2557,2559,3,368,184,0,2558,2560,3,362,181,0,2559,2558,1,0,0,0,2559,2560,1,0,0,0,2560,365,1,0,0,0,2561,2573,5,166,0,0,2562,2563,5,166,0,0,2563,2564,5,209,0,0,2564,2573,5,44,0,0,2565,2566,5,166,0,0,2566,2567,5,209,0,0,2567,2573,5,249,0,0,2568,2569,5,166,0,0,2569,2570,5,209,0,0,2570,2573,5,155,0,0,2571,2573,5,240,0,0,2572,2561,1,0,0,0,2572,2562,1,0,0,0,2572,2565,1,0,0,0,2572,2568,1,0,0,0,2572,2571,1,0,0,0,2573,2574,1,0,0,0,2574,2575,5,169,0,0,2575,2576,3,588,294,0,2576,2577,3,368,184,0,2577,367,1,0,0,0,2578,2580,3,114,57,0,2579,2578,1,0,0,0,2579,2580,1,0,0,0,2580,2581,1,0,0,0,2581,2585,3,372,186,0,2582,2583,5,98,0,0,2583,2585,5,305,0,0,2584,2579,1,0,0,0,2584,2582,1,0,0,0,2585,369,1,0,0,0,2586,2587,5,305,0,0,2587,2588,3,374,187,0,2588,371,1,0,0,0,2589,2592,3,370,185,0,2590,2592,3,232,116,0,2591,2589,1,0,0,0,2591,2590,1,0,0,0,2592,373,1,0,0,0,2593,2598,3,376,188,0,2594,2595,5,26,0,0,2595,2597,3,376,188,0,2596,2594,1,0,0,0,2597,2600,1,0,0,0,2598,2596,1,0,0,0,2598,2599,1,0,0,0,2599,375,1,0,0,0,2600,2598,1,0,0,0,2601,2602,5,27,0,0,2602,2603,3,112,56,0,2603,2604,5,28,0,0,2604,377,1,0,0,0,2605,2608,3,112,56,0,2606,2608,3,232,116,0,2607,2605,1,0,0,0,2607,2606,1,0,0,0,2608,379,1,0,0,0,2609,2612,5,87,0,0,2610,2611,5,209,0,0,2611,2613,5,240,0,0,2612,2610,1,0,0,0,2612,2613,1,0,0,0,2613,2614,1,0,0,0,2614,2615,5,131,0,0,2615,2616,5,94,0,0,2616,2620,5,268,0,0,2617,2618,5,154,0,0,2618,2619,5,196,0,0,2619,2621,5,128,0,0,2620,2617,1,0,0,0,2620,2621,1,0,0,0,2621,2622,1,0,0,0,2622,2623,3,582,291,0,2623,2624,3,426,213,0,2624,381,1,0,0,0,2625,2626,5,49,0,0,2626,2627,5,131,0,0,2627,2628,5,94,0,0,2628,2629,5,268,0,0,2629,2630,3,582,291,0,2630,2635,3,384,192,0,2631,2632,5,26,0,0,2632,2634,3,384,192,0,2633,2631,1,0,0,0,2634,2637,1,0,0,0,2635,2633,1,0,0,0,2635,2636,1,0,0,0,2636,383,1,0,0,0,2637,2635,1,0,0,0,2638,2642,3,456,228,0,2639,2642,3,458,229,0,2640,2642,3,460,230,0,2641,2638,1,0,0,0,2641,2639,1,0,0,0,2641,2640,1,0,0,0,2642,385,1,0,0,0,2643,2644,5,112,0,0,2644,2645,5,131,0,0,2645,2646,5,94,0,0,2646,2649,5,268,0,0,2647,2648,5,154,0,0,2648,2650,5,128,0,0,2649,2647,1,0,0,0,2649,2650,1,0,0,0,2650,2651,1,0,0,0,2651,2652,3,582,291,0,2652,387,1,0,0,0,2653,2654,5,87,0,0,2654,2655,5,307,0,0,2655,2656,3,582,291,0,2656,2657,3,426,213,0,2657,2658,5,55,0,0,2658,2659,3,232,116,0,2659,389,1,0,0,0,2660,2661,5,112,0,0,2661,2662,5,307,0,0,2662,2663,3,582,291,0,2663,391,1,0,0,0,2664,2665,5,300,0,0,2665,2666,5,200,0,0,2666,2667,3,582,291,0,2667,2668,5,27,0,0,2668,2669,5,292,0,0,2669,2670,3,416,208,0,2670,2672,5,28,0,0,2671,2673,3,396,198,0,2672,2671,1,0,0,0,2672,2673,1,0,0,0,2673,393,1,0,0,0,2674,2675,5,87,0,0,2675,2679,5,200,0,0,2676,2677,5,154,0,0,2677,2678,5,196,0,0,2678,2680,5,128,0,0,2679,2676,1,0,0,0,2679,2680,1,0,0,0,2680,2681,1,0,0,0,2681,2682,3,582,291,0,2682,2683,5,27,0,0,2683,2684,5,292,0,0,2684,2685,3,416,208,0,2685,2687,5,28,0,0,2686,2688,3,396,198,0,2687,2686,1,0,0,0,2687,2688,1,0,0,0,2688,395,1,0,0,0,2689,2690,5,312,0,0,2690,2691,3,414,207,0,2691,397,1,0,0,0,2692,2693,5,49,0,0,2693,2694,5,200,0,0,2694,2695,3,582,291,0,2695,2696,5,27,0,0,2696,2697,5,292,0,0,2697,2698,3,416,208,0,2698,2699,5,28,0,0,2699,2700,3,400,200,0,2700,399,1,0,0,0,2701,2702,5,264,0,0,2702,2703,3,414,207,0,2703,401,1,0,0,0,2704,2705,5,112,0,0,2705,2708,5,200,0,0,2706,2707,5,154,0,0,2707,2709,5,128,0,0,2708,2706,1,0,0,0,2708,2709,1,0,0,0,2709,2710,1,0,0,0,2710,2711,3,582,291,0,2711,2712,5,27,0,0,2712,2713,5,292,0,0,2713,2714,3,416,208,0,2714,2716,5,28,0,0,2715,2717,3,404,202,0,2716,2715,1,0,0,0,2716,2717,1,0,0,0,2717,403,1,0,0,0,2718,2719,5,312,0,0,2719,2720,3,414,207,0,2720,405,1,0,0,0,2721,2725,3,752,376,0,2722,2725,3,144,72,0,2723,2725,5,316,0,0,2724,2721,1,0,0,0,2724,2722,1,0,0,0,2724,2723,1,0,0,0,2725,407,1,0,0,0,2726,2727,3,726,363,0,2727,2728,5,2,0,0,2728,2729,3,406,203,0,2729,409,1,0,0,0,2730,2731,3,726,363,0,2731,411,1,0,0,0,2732,2735,3,408,204,0,2733,2735,3,410,205,0,2734,2732,1,0,0,0,2734,2733,1,0,0,0,2735,413,1,0,0,0,2736,2749,3,412,206,0,2737,2738,5,27,0,0,2738,2743,3,412,206,0,2739,2740,5,26,0,0,2740,2742,3,412,206,0,2741,2739,1,0,0,0,2742,2745,1,0,0,0,2743,2741,1,0,0,0,2743,2744,1,0,0,0,2744,2746,1,0,0,0,2745,2743,1,0,0,0,2746,2747,5,28,0,0,2747,2749,1,0,0,0,2748,2736,1,0,0,0,2748,2737,1,0,0,0,2749,415,1,0,0,0,2750,2751,3,726,363,0,2751,417,1,0,0,0,2752,2755,5,87,0,0,2753,2754,5,209,0,0,2754,2756,5,240,0,0,2755,2753,1,0,0,0,2755,2756,1,0,0,0,2756,2765,1,0,0,0,2757,2766,5,277,0,0,2758,2766,5,280,0,0,2759,2760,5,131,0,0,2760,2766,5,277,0,0,2761,2762,5,282,0,0,2762,2766,5,277,0,0,2763,2764,5,283,0,0,2764,2766,5,277,0,0,2765,2757,1,0,0,0,2765,2758,1,0,0,0,2765,2759,1,0,0,0,2765,2761,1,0,0,0,2765,2763,1,0,0,0,2766,2770,1,0,0,0,2767,2768,5,154,0,0,2768,2769,5,196,0,0,2769,2771,5,128,0,0,2770,2767,1,0,0,0,2770,2771,1,0,0,0,2771,2772,1,0,0,0,2772,2773,3,586,293,0,2773,2774,5,27,0,0,2774,2779,3,420,210,0,2775,2776,5,26,0,0,2776,2778,3,420,210,0,2777,2775,1,0,0,0,2778,2781,1,0,0,0,2779,2777,1,0,0,0,2779,2780,1,0,0,0,2780,2783,1,0,0,0,2781,2779,1,0,0,0,2782,2784,5,26,0,0,2783,2782,1,0,0,0,2783,2784,1,0,0,0,2784,2785,1,0,0,0,2785,2787,5,28,0,0,2786,2788,3,422,211,0,2787,2786,1,0,0,0,2787,2788,1,0,0,0,2788,2790,1,0,0,0,2789,2791,3,424,212,0,2790,2789,1,0,0,0,2790,2791,1,0,0,0,2791,2793,1,0,0,0,2792,2794,3,426,213,0,2793,2792,1,0,0,0,2793,2794,1,0,0,0,2794,2796,1,0,0,0,2795,2797,3,428,214,0,2796,2795,1,0,0,0,2796,2797,1,0,0,0,2797,2799,1,0,0,0,2798,2800,3,432,216,0,2799,2798,1,0,0,0,2799,2800,1,0,0,0,2800,419,1,0,0,0,2801,2808,3,476,238,0,2802,2808,3,484,242,0,2803,2808,3,486,243,0,2804,2808,3,508,254,0,2805,2808,3,494,247,0,2806,2808,3,728,364,0,2807,2801,1,0,0,0,2807,2802,1,0,0,0,2807,2803,1,0,0,0,2807,2804,1,0,0,0,2807,2805,1,0,0,0,2807,2806,1,0,0,0,2808,421,1,0,0,0,2809,2810,5,162,0,0,2810,2811,5,27,0,0,2811,2816,3,584,292,0,2812,2813,5,26,0,0,2813,2815,3,584,292,0,2814,2812,1,0,0,0,2815,2818,1,0,0,0,2816,2814,1,0,0,0,2816,2817,1,0,0,0,2817,2819,1,0,0,0,2818,2816,1,0,0,0,2819,2820,5,28,0,0,2820,423,1,0,0,0,2821,2822,5,215,0,0,2822,2823,5,69,0,0,2823,2824,5,151,0,0,2824,2825,3,114,57,0,2825,425,1,0,0,0,2826,2827,5,312,0,0,2827,2828,5,27,0,0,2828,2833,3,430,215,0,2829,2830,5,26,0,0,2830,2832,3,430,215,0,2831,2829,1,0,0,0,2832,2835,1,0,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2836,1,0,0,0,2835,2833,1,0,0,0,2836,2837,5,28,0,0,2837,427,1,0,0,0,2838,2839,5,280,0,0,2839,2840,3,584,292,0,2840,429,1,0,0,0,2841,2842,3,724,362,0,2842,2843,5,2,0,0,2843,2844,3,506,253,0,2844,431,1,0,0,0,2845,2846,5,55,0,0,2846,2847,3,372,186,0,2847,433,1,0,0,0,2848,2849,5,49,0,0,2849,2850,5,277,0,0,2850,2851,3,586,293,0,2851,2856,3,436,218,0,2852,2853,5,26,0,0,2853,2855,3,436,218,0,2854,2852,1,0,0,0,2855,2858,1,0,0,0,2856,2854,1,0,0,0,2856,2857,1,0,0,0,2857,435,1,0,0,0,2858,2856,1,0,0,0,2859,2875,3,446,223,0,2860,2875,3,448,224,0,2861,2875,3,450,225,0,2862,2875,3,452,226,0,2863,2875,3,454,227,0,2864,2875,3,456,228,0,2865,2875,3,458,229,0,2866,2875,3,460,230,0,2867,2875,3,462,231,0,2868,2875,3,464,232,0,2869,2875,3,466,233,0,2870,2875,3,470,235,0,2871,2875,3,472,236,0,2872,2875,3,474,237,0,2873,2875,3,468,234,0,2874,2859,1,0,0,0,2874,2860,1,0,0,0,2874,2861,1,0,0,0,2874,2862,1,0,0,0,2874,2863,1,0,0,0,2874,2864,1,0,0,0,2874,2865,1,0,0,0,2874,2866,1,0,0,0,2874,2867,1,0,0,0,2874,2868,1,0,0,0,2874,2869,1,0,0,0,2874,2870,1,0,0,0,2874,2871,1,0,0,0,2874,2872,1,0,0,0,2874,2873,1,0,0,0,2875,437,1,0,0,0,2876,2877,5,49,0,0,2877,2878,5,131,0,0,2878,2879,5,277,0,0,2879,2880,3,586,293,0,2880,2885,3,440,220,0,2881,2882,5,26,0,0,2882,2884,3,440,220,0,2883,2881,1,0,0,0,2884,2887,1,0,0,0,2885,2883,1,0,0,0,2885,2886,1,0,0,0,2886,439,1,0,0,0,2887,2885,1,0,0,0,2888,2894,3,446,223,0,2889,2894,3,448,224,0,2890,2894,3,456,228,0,2891,2894,3,458,229,0,2892,2894,3,460,230,0,2893,2888,1,0,0,0,2893,2889,1,0,0,0,2893,2890,1,0,0,0,2893,2891,1,0,0,0,2893,2892,1,0,0,0,2894,441,1,0,0,0,2895,2896,5,49,0,0,2896,2897,5,280,0,0,2897,2898,3,582,291,0,2898,2903,3,444,222,0,2899,2900,5,26,0,0,2900,2902,3,444,222,0,2901,2899,1,0,0,0,2902,2905,1,0,0,0,2903,2901,1,0,0,0,2903,2904,1,0,0,0,2904,443,1,0,0,0,2905,2903,1,0,0,0,2906,2909,3,446,223,0,2907,2909,3,448,224,0,2908,2906,1,0,0,0,2908,2907,1,0,0,0,2909,445,1,0,0,0,2910,2912,5,46,0,0,2911,2913,5,77,0,0,2912,2911,1,0,0,0,2912,2913,1,0,0,0,2913,2914,1,0,0,0,2914,2915,3,476,238,0,2915,447,1,0,0,0,2916,2918,5,112,0,0,2917,2919,5,77,0,0,2918,2917,1,0,0,0,2918,2919,1,0,0,0,2919,2920,1,0,0,0,2920,2921,3,724,362,0,2921,449,1,0,0,0,2922,2923,5,49,0,0,2923,2924,5,77,0,0,2924,2925,3,724,362,0,2925,2926,5,264,0,0,2926,2927,3,478,239,0,2927,451,1,0,0,0,2928,2929,5,46,0,0,2929,2930,3,508,254,0,2930,453,1,0,0,0,2931,2932,5,49,0,0,2932,2933,5,134,0,0,2933,2934,3,724,362,0,2934,2935,5,264,0,0,2935,2936,3,724,362,0,2936,2937,3,514,257,0,2937,455,1,0,0,0,2938,2939,5,264,0,0,2939,2940,3,724,362,0,2940,2941,3,506,253,0,2941,457,1,0,0,0,2942,2943,5,264,0,0,2943,2944,5,27,0,0,2944,2949,3,504,252,0,2945,2946,5,26,0,0,2946,2948,3,504,252,0,2947,2945,1,0,0,0,2948,2951,1,0,0,0,2949,2947,1,0,0,0,2949,2950,1,0,0,0,2950,2952,1,0,0,0,2951,2949,1,0,0,0,2952,2953,5,28,0,0,2953,459,1,0,0,0,2954,2955,5,242,0,0,2955,2956,5,27,0,0,2956,2961,3,724,362,0,2957,2958,5,26,0,0,2958,2960,3,724,362,0,2959,2957,1,0,0,0,2960,2963,1,0,0,0,2961,2959,1,0,0,0,2961,2962,1,0,0,0,2962,2964,1,0,0,0,2963,2961,1,0,0,0,2964,2965,5,28,0,0,2965,461,1,0,0,0,2966,2967,5,46,0,0,2967,2968,3,486,243,0,2968,463,1,0,0,0,2969,2970,5,112,0,0,2970,2971,5,160,0,0,2971,2972,3,724,362,0,2972,465,1,0,0,0,2973,2974,5,238,0,0,2974,2975,5,286,0,0,2975,2976,3,736,368,0,2976,467,1,0,0,0,2977,2978,5,238,0,0,2978,2979,5,160,0,0,2979,2980,3,724,362,0,2980,2981,5,286,0,0,2981,2982,3,724,362,0,2982,469,1,0,0,0,2983,2984,5,46,0,0,2984,2985,3,494,247,0,2985,471,1,0,0,0,2986,2987,5,49,0,0,2987,2988,5,74,0,0,2988,2989,3,724,362,0,2989,2990,3,502,251,0,2990,473,1,0,0,0,2991,2992,5,112,0,0,2992,2993,5,74,0,0,2993,2994,3,724,362,0,2994,475,1,0,0,0,2995,2996,3,728,364,0,2996,2998,3,204,102,0,2997,2999,3,478,239,0,2998,2997,1,0,0,0,2998,2999,1,0,0,0,2999,3e3,1,0,0,0,3e3,3001,3,480,240,0,3001,477,1,0,0,0,3002,3003,5,134,0,0,3003,3004,3,724,362,0,3004,479,1,0,0,0,3005,3007,5,196,0,0,3006,3005,1,0,0,0,3006,3007,1,0,0,0,3007,3008,1,0,0,0,3008,3010,5,198,0,0,3009,3006,1,0,0,0,3009,3010,1,0,0,0,3010,3013,1,0,0,0,3011,3012,5,98,0,0,3012,3014,3,14,7,0,3013,3011,1,0,0,0,3013,3014,1,0,0,0,3014,481,1,0,0,0,3015,3017,3,724,362,0,3016,3018,7,9,0,0,3017,3016,1,0,0,0,3017,3018,1,0,0,0,3018,483,1,0,0,0,3019,3020,5,226,0,0,3020,3021,5,176,0,0,3021,3022,5,27,0,0,3022,3027,3,724,362,0,3023,3024,5,26,0,0,3024,3026,3,724,362,0,3025,3023,1,0,0,0,3026,3029,1,0,0,0,3027,3025,1,0,0,0,3027,3028,1,0,0,0,3028,3030,1,0,0,0,3029,3027,1,0,0,0,3030,3031,5,28,0,0,3031,3059,1,0,0,0,3032,3033,5,215,0,0,3033,3034,5,69,0,0,3034,3035,5,27,0,0,3035,3040,3,724,362,0,3036,3037,5,26,0,0,3037,3039,3,724,362,0,3038,3036,1,0,0,0,3039,3042,1,0,0,0,3040,3038,1,0,0,0,3040,3041,1,0,0,0,3041,3043,1,0,0,0,3042,3040,1,0,0,0,3043,3044,5,28,0,0,3044,3059,1,0,0,0,3045,3046,5,210,0,0,3046,3047,5,69,0,0,3047,3048,5,27,0,0,3048,3053,3,482,241,0,3049,3050,5,26,0,0,3050,3052,3,482,241,0,3051,3049,1,0,0,0,3052,3055,1,0,0,0,3053,3051,1,0,0,0,3053,3054,1,0,0,0,3054,3056,1,0,0,0,3055,3053,1,0,0,0,3056,3057,5,28,0,0,3057,3059,1,0,0,0,3058,3019,1,0,0,0,3058,3032,1,0,0,0,3058,3045,1,0,0,0,3059,485,1,0,0,0,3060,3061,5,160,0,0,3061,3062,3,724,362,0,3062,3083,3,488,244,0,3063,3064,5,312,0,0,3064,3065,5,27,0,0,3065,3066,3,724,362,0,3066,3067,5,2,0,0,3067,3075,3,724,362,0,3068,3069,5,26,0,0,3069,3070,3,724,362,0,3070,3071,5,2,0,0,3071,3072,3,724,362,0,3072,3074,1,0,0,0,3073,3068,1,0,0,0,3074,3077,1,0,0,0,3075,3073,1,0,0,0,3075,3076,1,0,0,0,3076,3079,1,0,0,0,3077,3075,1,0,0,0,3078,3080,5,26,0,0,3079,3078,1,0,0,0,3079,3080,1,0,0,0,3080,3081,1,0,0,0,3081,3082,5,28,0,0,3082,3084,1,0,0,0,3083,3063,1,0,0,0,3083,3084,1,0,0,0,3084,3085,1,0,0,0,3085,3086,5,204,0,0,3086,3087,5,27,0,0,3087,3092,3,728,364,0,3088,3089,5,26,0,0,3089,3091,3,728,364,0,3090,3088,1,0,0,0,3091,3094,1,0,0,0,3092,3090,1,0,0,0,3092,3093,1,0,0,0,3093,3095,1,0,0,0,3094,3092,1,0,0,0,3095,3108,5,28,0,0,3096,3097,5,86,0,0,3097,3098,5,27,0,0,3098,3103,3,728,364,0,3099,3100,5,26,0,0,3100,3102,3,728,364,0,3101,3099,1,0,0,0,3102,3105,1,0,0,0,3103,3101,1,0,0,0,3103,3104,1,0,0,0,3104,3106,1,0,0,0,3105,3103,1,0,0,0,3106,3107,5,28,0,0,3107,3109,1,0,0,0,3108,3096,1,0,0,0,3108,3109,1,0,0,0,3109,487,1,0,0,0,3110,3113,3,490,245,0,3111,3113,3,492,246,0,3112,3110,1,0,0,0,3112,3111,1,0,0,0,3113,489,1,0,0,0,3114,3116,5,146,0,0,3115,3117,5,296,0,0,3116,3115,1,0,0,0,3116,3117,1,0,0,0,3117,3119,1,0,0,0,3118,3120,7,16,0,0,3119,3118,1,0,0,0,3119,3120,1,0,0,0,3120,491,1,0,0,0,3121,3122,5,183,0,0,3122,493,1,0,0,0,3123,3124,5,74,0,0,3124,3125,3,724,362,0,3125,3126,5,312,0,0,3126,3127,5,27,0,0,3127,3128,3,496,248,0,3128,3129,5,28,0,0,3129,495,1,0,0,0,3130,3135,3,498,249,0,3131,3132,5,26,0,0,3132,3134,3,498,249,0,3133,3131,1,0,0,0,3134,3137,1,0,0,0,3135,3133,1,0,0,0,3135,3136,1,0,0,0,3136,497,1,0,0,0,3137,3135,1,0,0,0,3138,3139,3,724,362,0,3139,3140,5,2,0,0,3140,3141,3,500,250,0,3141,499,1,0,0,0,3142,3143,3,14,7,0,3143,501,1,0,0,0,3144,3151,5,108,0,0,3145,3146,5,264,0,0,3146,3147,5,27,0,0,3147,3148,3,496,248,0,3148,3149,5,28,0,0,3149,3151,1,0,0,0,3150,3144,1,0,0,0,3150,3145,1,0,0,0,3151,503,1,0,0,0,3152,3153,3,724,362,0,3153,3154,5,2,0,0,3154,3155,3,506,253,0,3155,505,1,0,0,0,3156,3169,3,706,353,0,3157,3169,5,316,0,0,3158,3169,3,788,394,0,3159,3169,3,516,258,0,3160,3161,3,14,7,0,3161,3162,5,204,0,0,3162,3165,3,724,362,0,3163,3164,5,55,0,0,3164,3166,7,17,0,0,3165,3163,1,0,0,0,3165,3166,1,0,0,0,3166,3169,1,0,0,0,3167,3169,3,784,392,0,3168,3156,1,0,0,0,3168,3157,1,0,0,0,3168,3158,1,0,0,0,3168,3159,1,0,0,0,3168,3160,1,0,0,0,3168,3167,1,0,0,0,3169,507,1,0,0,0,3170,3171,5,134,0,0,3171,3172,3,724,362,0,3172,3173,3,510,255,0,3173,509,1,0,0,0,3174,3183,5,27,0,0,3175,3180,3,512,256,0,3176,3177,5,26,0,0,3177,3179,3,512,256,0,3178,3176,1,0,0,0,3179,3182,1,0,0,0,3180,3178,1,0,0,0,3180,3181,1,0,0,0,3181,3184,1,0,0,0,3182,3180,1,0,0,0,3183,3175,1,0,0,0,3183,3184,1,0,0,0,3184,3185,1,0,0,0,3185,3186,5,28,0,0,3186,511,1,0,0,0,3187,3188,3,724,362,0,3188,3189,5,2,0,0,3189,3190,3,514,257,0,3190,513,1,0,0,0,3191,3192,5,316,0,0,3192,515,1,0,0,0,3193,3194,5,27,0,0,3194,3199,3,518,259,0,3195,3196,5,26,0,0,3196,3198,3,518,259,0,3197,3195,1,0,0,0,3198,3201,1,0,0,0,3199,3197,1,0,0,0,3199,3200,1,0,0,0,3200,3202,1,0,0,0,3201,3199,1,0,0,0,3202,3203,5,28,0,0,3203,3206,1,0,0,0,3204,3206,3,518,259,0,3205,3193,1,0,0,0,3205,3204,1,0,0,0,3206,517,1,0,0,0,3207,3208,5,27,0,0,3208,3213,3,142,71,0,3209,3210,5,26,0,0,3210,3212,3,142,71,0,3211,3209,1,0,0,0,3212,3215,1,0,0,0,3213,3211,1,0,0,0,3213,3214,1,0,0,0,3214,3216,1,0,0,0,3215,3213,1,0,0,0,3216,3217,5,28,0,0,3217,519,1,0,0,0,3218,3223,5,112,0,0,3219,3224,5,277,0,0,3220,3224,5,280,0,0,3221,3222,5,131,0,0,3222,3224,5,277,0,0,3223,3219,1,0,0,0,3223,3220,1,0,0,0,3223,3221,1,0,0,0,3224,3227,1,0,0,0,3225,3226,5,154,0,0,3226,3228,5,128,0,0,3227,3225,1,0,0,0,3227,3228,1,0,0,0,3228,3229,1,0,0,0,3229,3230,3,586,293,0,3230,521,1,0,0,0,3231,3232,5,87,0,0,3232,3233,5,302,0,0,3233,3235,3,532,266,0,3234,3236,3,534,267,0,3235,3234,1,0,0,0,3235,3236,1,0,0,0,3236,523,1,0,0,0,3237,3238,5,49,0,0,3238,3239,5,302,0,0,3239,3247,3,532,266,0,3240,3242,5,312,0,0,3241,3240,1,0,0,0,3241,3242,1,0,0,0,3242,3243,1,0,0,0,3243,3248,3,534,267,0,3244,3245,5,238,0,0,3245,3246,5,286,0,0,3246,3248,3,532,266,0,3247,3241,1,0,0,0,3247,3244,1,0,0,0,3248,525,1,0,0,0,3249,3250,5,87,0,0,3250,3251,5,148,0,0,3251,3265,3,532,266,0,3252,3253,5,312,0,0,3253,3254,5,302,0,0,3254,3259,3,532,266,0,3255,3256,5,26,0,0,3256,3258,3,532,266,0,3257,3255,1,0,0,0,3258,3261,1,0,0,0,3259,3257,1,0,0,0,3259,3260,1,0,0,0,3260,3263,1,0,0,0,3261,3259,1,0,0,0,3262,3264,5,26,0,0,3263,3262,1,0,0,0,3263,3264,1,0,0,0,3264,3266,1,0,0,0,3265,3252,1,0,0,0,3265,3266,1,0,0,0,3266,527,1,0,0,0,3267,3268,5,49,0,0,3268,3269,5,148,0,0,3269,3286,3,532,266,0,3270,3271,7,18,0,0,3271,3272,5,302,0,0,3272,3277,3,532,266,0,3273,3274,5,26,0,0,3274,3276,3,532,266,0,3275,3273,1,0,0,0,3276,3279,1,0,0,0,3277,3275,1,0,0,0,3277,3278,1,0,0,0,3278,3281,1,0,0,0,3279,3277,1,0,0,0,3280,3282,5,26,0,0,3281,3280,1,0,0,0,3281,3282,1,0,0,0,3282,3287,1,0,0,0,3283,3284,5,238,0,0,3284,3285,5,286,0,0,3285,3287,3,532,266,0,3286,3270,1,0,0,0,3286,3283,1,0,0,0,3287,529,1,0,0,0,3288,3289,5,112,0,0,3289,3292,7,19,0,0,3290,3291,5,154,0,0,3291,3293,5,128,0,0,3292,3290,1,0,0,0,3292,3293,1,0,0,0,3293,3294,1,0,0,0,3294,3299,3,532,266,0,3295,3296,5,26,0,0,3296,3298,3,532,266,0,3297,3295,1,0,0,0,3298,3301,1,0,0,0,3299,3297,1,0,0,0,3299,3300,1,0,0,0,3300,3303,1,0,0,0,3301,3299,1,0,0,0,3302,3304,5,26,0,0,3303,3302,1,0,0,0,3303,3304,1,0,0,0,3304,531,1,0,0,0,3305,3308,3,726,363,0,3306,3308,3,144,72,0,3307,3305,1,0,0,0,3307,3306,1,0,0,0,3308,533,1,0,0,0,3309,3311,5,117,0,0,3310,3309,1,0,0,0,3310,3311,1,0,0,0,3311,3312,1,0,0,0,3312,3313,5,217,0,0,3313,3314,3,14,7,0,3314,535,1,0,0,0,3315,3316,5,147,0,0,3316,3317,3,544,272,0,3317,3318,5,204,0,0,3318,3323,3,728,364,0,3319,3320,5,26,0,0,3320,3322,3,728,364,0,3321,3319,1,0,0,0,3322,3325,1,0,0,0,3323,3321,1,0,0,0,3323,3324,1,0,0,0,3324,3326,1,0,0,0,3325,3323,1,0,0,0,3326,3327,5,286,0,0,3327,3332,3,532,266,0,3328,3329,5,26,0,0,3329,3331,3,532,266,0,3330,3328,1,0,0,0,3331,3334,1,0,0,0,3332,3330,1,0,0,0,3332,3333,1,0,0,0,3333,3336,1,0,0,0,3334,3332,1,0,0,0,3335,3337,5,26,0,0,3336,3335,1,0,0,0,3336,3337,1,0,0,0,3337,3341,1,0,0,0,3338,3339,5,312,0,0,3339,3340,5,147,0,0,3340,3342,5,207,0,0,3341,3338,1,0,0,0,3341,3342,1,0,0,0,3342,537,1,0,0,0,3343,3347,5,250,0,0,3344,3345,5,147,0,0,3345,3346,5,207,0,0,3346,3348,5,140,0,0,3347,3344,1,0,0,0,3347,3348,1,0,0,0,3348,3349,1,0,0,0,3349,3350,3,544,272,0,3350,3351,5,204,0,0,3351,3356,3,728,364,0,3352,3353,5,26,0,0,3353,3355,3,728,364,0,3354,3352,1,0,0,0,3355,3358,1,0,0,0,3356,3354,1,0,0,0,3356,3357,1,0,0,0,3357,3359,1,0,0,0,3358,3356,1,0,0,0,3359,3360,5,142,0,0,3360,3365,3,532,266,0,3361,3362,5,26,0,0,3362,3364,3,532,266,0,3363,3361,1,0,0,0,3364,3367,1,0,0,0,3365,3363,1,0,0,0,3365,3366,1,0,0,0,3366,539,1,0,0,0,3367,3365,1,0,0,0,3368,3393,5,83,0,0,3369,3393,5,182,0,0,3370,3393,5,166,0,0,3371,3393,5,184,0,0,3372,3393,5,112,0,0,3373,3393,5,147,0,0,3374,3375,5,191,0,0,3375,3393,7,20,0,0,3376,3377,7,21,0,0,3377,3393,5,255,0,0,3378,3379,7,22,0,0,3379,3393,5,259,0,0,3380,3382,5,262,0,0,3381,3383,7,23,0,0,3382,3381,1,0,0,0,3382,3383,1,0,0,0,3383,3393,1,0,0,0,3384,3386,7,24,0,0,3385,3387,5,179,0,0,3386,3385,1,0,0,0,3386,3387,1,0,0,0,3387,3393,1,0,0,0,3388,3390,5,87,0,0,3389,3391,7,25,0,0,3390,3389,1,0,0,0,3390,3391,1,0,0,0,3391,3393,1,0,0,0,3392,3368,1,0,0,0,3392,3369,1,0,0,0,3392,3370,1,0,0,0,3392,3371,1,0,0,0,3392,3372,1,0,0,0,3392,3373,1,0,0,0,3392,3374,1,0,0,0,3392,3376,1,0,0,0,3392,3378,1,0,0,0,3392,3380,1,0,0,0,3392,3384,1,0,0,0,3392,3388,1,0,0,0,3393,541,1,0,0,0,3394,3397,3,540,270,0,3395,3397,5,316,0,0,3396,3394,1,0,0,0,3396,3395,1,0,0,0,3397,543,1,0,0,0,3398,3403,3,542,271,0,3399,3400,5,26,0,0,3400,3402,3,542,271,0,3401,3399,1,0,0,0,3402,3405,1,0,0,0,3403,3401,1,0,0,0,3403,3404,1,0,0,0,3404,3407,1,0,0,0,3405,3403,1,0,0,0,3406,3408,5,26,0,0,3407,3406,1,0,0,0,3407,3408,1,0,0,0,3408,3414,1,0,0,0,3409,3411,5,48,0,0,3410,3412,5,227,0,0,3411,3410,1,0,0,0,3411,3412,1,0,0,0,3412,3414,1,0,0,0,3413,3398,1,0,0,0,3413,3409,1,0,0,0,3414,545,1,0,0,0,3415,3416,5,87,0,0,3416,3417,5,59,0,0,3417,3418,5,241,0,0,3418,3419,3,582,291,0,3419,3420,5,140,0,0,3420,3425,3,548,274,0,3421,3422,5,26,0,0,3422,3424,3,548,274,0,3423,3421,1,0,0,0,3424,3427,1,0,0,0,3425,3423,1,0,0,0,3425,3426,1,0,0,0,3426,3428,1,0,0,0,3427,3425,1,0,0,0,3428,3429,5,312,0,0,3429,3430,5,27,0,0,3430,3431,3,550,275,0,3431,3432,5,28,0,0,3432,547,1,0,0,0,3433,3434,3,582,291,0,3434,3435,3,798,399,0,3435,549,1,0,0,0,3436,3441,3,552,276,0,3437,3438,5,26,0,0,3438,3440,3,552,276,0,3439,3437,1,0,0,0,3440,3443,1,0,0,0,3441,3439,1,0,0,0,3441,3442,1,0,0,0,3442,551,1,0,0,0,3443,3441,1,0,0,0,3444,3445,3,724,362,0,3445,3446,5,2,0,0,3446,3447,5,316,0,0,3447,553,1,0,0,0,3448,3449,5,49,0,0,3449,3450,5,59,0,0,3450,3451,5,241,0,0,3451,3452,3,582,291,0,3452,3457,3,556,278,0,3453,3454,5,26,0,0,3454,3456,3,556,278,0,3455,3453,1,0,0,0,3456,3459,1,0,0,0,3457,3455,1,0,0,0,3457,3458,1,0,0,0,3458,555,1,0,0,0,3459,3457,1,0,0,0,3460,3461,3,558,279,0,3461,557,1,0,0,0,3462,3463,5,264,0,0,3463,3464,5,27,0,0,3464,3465,3,550,275,0,3465,3466,5,28,0,0,3466,559,1,0,0,0,3467,3468,5,112,0,0,3468,3469,5,59,0,0,3469,3470,5,241,0,0,3470,3472,3,582,291,0,3471,3473,5,71,0,0,3472,3471,1,0,0,0,3472,3473,1,0,0,0,3473,561,1,0,0,0,3474,3479,3,146,73,0,3475,3476,5,26,0,0,3476,3478,3,146,73,0,3477,3475,1,0,0,0,3478,3481,1,0,0,0,3479,3477,1,0,0,0,3479,3480,1,0,0,0,3480,563,1,0,0,0,3481,3479,1,0,0,0,3482,3483,5,101,0,0,3483,3484,7,26,0,0,3484,3485,3,144,72,0,3485,3487,5,27,0,0,3486,3488,3,562,281,0,3487,3486,1,0,0,0,3487,3488,1,0,0,0,3488,3489,1,0,0,0,3489,3490,5,28,0,0,3490,3491,5,55,0,0,3491,3492,3,566,283,0,3492,3493,5,118,0,0,3493,3494,5,101,0,0,3494,565,1,0,0,0,3495,3497,5,24,0,0,3496,3495,1,0,0,0,3497,3500,1,0,0,0,3498,3496,1,0,0,0,3498,3499,1,0,0,0,3499,3519,1,0,0,0,3500,3498,1,0,0,0,3501,3510,3,12,6,0,3502,3504,5,24,0,0,3503,3502,1,0,0,0,3504,3505,1,0,0,0,3505,3503,1,0,0,0,3505,3506,1,0,0,0,3506,3507,1,0,0,0,3507,3509,3,12,6,0,3508,3503,1,0,0,0,3509,3512,1,0,0,0,3510,3508,1,0,0,0,3510,3511,1,0,0,0,3511,3516,1,0,0,0,3512,3510,1,0,0,0,3513,3515,5,24,0,0,3514,3513,1,0,0,0,3515,3518,1,0,0,0,3516,3514,1,0,0,0,3516,3517,1,0,0,0,3517,3520,1,0,0,0,3518,3516,1,0,0,0,3519,3501,1,0,0,0,3519,3520,1,0,0,0,3520,567,1,0,0,0,3521,3523,5,123,0,0,3522,3521,1,0,0,0,3522,3523,1,0,0,0,3523,3524,1,0,0,0,3524,3525,5,154,0,0,3525,3526,3,14,7,0,3526,3529,3,222,111,0,3527,3528,5,114,0,0,3528,3530,3,222,111,0,3529,3527,1,0,0,0,3529,3530,1,0,0,0,3530,569,1,0,0,0,3531,3533,5,123,0,0,3532,3531,1,0,0,0,3532,3533,1,0,0,0,3533,3535,1,0,0,0,3534,3536,5,214,0,0,3535,3534,1,0,0,0,3535,3536,1,0,0,0,3536,3537,1,0,0,0,3537,3538,5,140,0,0,3538,3539,3,144,72,0,3539,3540,5,159,0,0,3540,3541,3,14,7,0,3541,3544,3,222,111,0,3542,3543,5,114,0,0,3543,3545,3,222,111,0,3544,3542,1,0,0,0,3544,3545,1,0,0,0,3545,571,1,0,0,0,3546,3547,3,750,375,0,3547,3548,5,25,0,0,3548,3550,1,0,0,0,3549,3546,1,0,0,0,3549,3550,1,0,0,0,3550,3552,1,0,0,0,3551,3553,5,31,0,0,3552,3551,1,0,0,0,3552,3553,1,0,0,0,3553,3584,1,0,0,0,3554,3585,3,574,287,0,3555,3556,3,730,365,0,3556,3568,5,27,0,0,3557,3562,3,576,288,0,3558,3559,5,26,0,0,3559,3561,3,576,288,0,3560,3558,1,0,0,0,3561,3564,1,0,0,0,3562,3560,1,0,0,0,3562,3563,1,0,0,0,3563,3566,1,0,0,0,3564,3562,1,0,0,0,3565,3567,5,26,0,0,3566,3565,1,0,0,0,3566,3567,1,0,0,0,3567,3569,1,0,0,0,3568,3557,1,0,0,0,3568,3569,1,0,0,0,3569,3570,1,0,0,0,3570,3571,5,28,0,0,3571,3585,1,0,0,0,3572,3578,3,144,72,0,3573,3575,5,27,0,0,3574,3576,3,112,56,0,3575,3574,1,0,0,0,3575,3576,1,0,0,0,3576,3577,1,0,0,0,3577,3579,5,28,0,0,3578,3573,1,0,0,0,3578,3579,1,0,0,0,3579,3582,1,0,0,0,3580,3581,5,307,0,0,3581,3583,3,746,373,0,3582,3580,1,0,0,0,3582,3583,1,0,0,0,3583,3585,1,0,0,0,3584,3554,1,0,0,0,3584,3555,1,0,0,0,3584,3572,1,0,0,0,3585,3587,1,0,0,0,3586,3588,3,578,289,0,3587,3586,1,0,0,0,3587,3588,1,0,0,0,3588,573,1,0,0,0,3589,3592,3,758,379,0,3590,3591,5,307,0,0,3591,3593,3,746,373,0,3592,3590,1,0,0,0,3592,3593,1,0,0,0,3593,575,1,0,0,0,3594,3596,5,31,0,0,3595,3594,1,0,0,0,3595,3596,1,0,0,0,3596,3597,1,0,0,0,3597,3600,3,128,64,0,3598,3599,5,307,0,0,3599,3601,3,746,373,0,3600,3598,1,0,0,0,3600,3601,1,0,0,0,3601,577,1,0,0,0,3602,3615,5,312,0,0,3603,3616,3,580,290,0,3604,3605,5,27,0,0,3605,3610,3,580,290,0,3606,3607,5,26,0,0,3607,3609,3,580,290,0,3608,3606,1,0,0,0,3609,3612,1,0,0,0,3610,3608,1,0,0,0,3610,3611,1,0,0,0,3611,3613,1,0,0,0,3612,3610,1,0,0,0,3613,3614,5,28,0,0,3614,3616,1,0,0,0,3615,3603,1,0,0,0,3615,3604,1,0,0,0,3616,579,1,0,0,0,3617,3636,3,740,370,0,3618,3634,5,2,0,0,3619,3635,3,160,80,0,3620,3621,5,27,0,0,3621,3626,3,160,80,0,3622,3623,5,26,0,0,3623,3625,3,160,80,0,3624,3622,1,0,0,0,3625,3628,1,0,0,0,3626,3624,1,0,0,0,3626,3627,1,0,0,0,3627,3630,1,0,0,0,3628,3626,1,0,0,0,3629,3631,5,26,0,0,3630,3629,1,0,0,0,3630,3631,1,0,0,0,3631,3632,1,0,0,0,3632,3633,5,28,0,0,3633,3635,1,0,0,0,3634,3619,1,0,0,0,3634,3620,1,0,0,0,3635,3637,1,0,0,0,3636,3618,1,0,0,0,3636,3637,1,0,0,0,3637,3663,1,0,0,0,3638,3640,7,27,0,0,3639,3641,5,2,0,0,3640,3639,1,0,0,0,3640,3641,1,0,0,0,3641,3642,1,0,0,0,3642,3663,3,204,102,0,3643,3645,5,259,0,0,3644,3646,5,2,0,0,3645,3644,1,0,0,0,3645,3646,1,0,0,0,3646,3647,1,0,0,0,3647,3656,5,27,0,0,3648,3653,3,164,82,0,3649,3650,5,26,0,0,3650,3652,3,164,82,0,3651,3649,1,0,0,0,3652,3655,1,0,0,0,3653,3651,1,0,0,0,3653,3654,1,0,0,0,3654,3657,1,0,0,0,3655,3653,1,0,0,0,3656,3648,1,0,0,0,3656,3657,1,0,0,0,3657,3659,1,0,0,0,3658,3660,5,26,0,0,3659,3658,1,0,0,0,3659,3660,1,0,0,0,3660,3661,1,0,0,0,3661,3663,5,28,0,0,3662,3617,1,0,0,0,3662,3638,1,0,0,0,3662,3643,1,0,0,0,3663,581,1,0,0,0,3664,3665,3,750,375,0,3665,3666,5,25,0,0,3666,3668,1,0,0,0,3667,3664,1,0,0,0,3667,3668,1,0,0,0,3668,3669,1,0,0,0,3669,3670,3,756,378,0,3670,583,1,0,0,0,3671,3677,3,582,291,0,3672,3674,5,31,0,0,3673,3672,1,0,0,0,3673,3674,1,0,0,0,3674,3675,1,0,0,0,3675,3677,3,144,72,0,3676,3671,1,0,0,0,3676,3673,1,0,0,0,3677,585,1,0,0,0,3678,3680,3,584,292,0,3679,3681,3,578,289,0,3680,3679,1,0,0,0,3680,3681,1,0,0,0,3681,587,1,0,0,0,3682,3686,3,586,293,0,3683,3684,5,120,0,0,3684,3685,5,69,0,0,3685,3687,3,114,57,0,3686,3683,1,0,0,0,3686,3687,1,0,0,0,3687,589,1,0,0,0,3688,3689,5,102,0,0,3689,3690,5,142,0,0,3690,3694,3,586,293,0,3691,3695,3,800,400,0,3692,3693,5,204,0,0,3693,3695,3,368,184,0,3694,3691,1,0,0,0,3694,3692,1,0,0,0,3694,3695,1,0,0,0,3695,3697,1,0,0,0,3696,3698,3,362,181,0,3697,3696,1,0,0,0,3697,3698,1,0,0,0,3698,591,1,0,0,0,3699,3700,5,299,0,0,3700,3708,3,586,293,0,3701,3702,5,264,0,0,3702,3704,3,594,297,0,3703,3705,3,800,400,0,3704,3703,1,0,0,0,3704,3705,1,0,0,0,3705,3709,1,0,0,0,3706,3707,5,204,0,0,3707,3709,3,368,184,0,3708,3701,1,0,0,0,3708,3706,1,0,0,0,3709,3711,1,0,0,0,3710,3712,3,362,181,0,3711,3710,1,0,0,0,3711,3712,1,0,0,0,3712,593,1,0,0,0,3713,3716,3,596,298,0,3714,3716,3,602,301,0,3715,3713,1,0,0,0,3715,3714,1,0,0,0,3716,595,1,0,0,0,3717,3722,3,598,299,0,3718,3719,5,26,0,0,3719,3721,3,598,299,0,3720,3718,1,0,0,0,3721,3724,1,0,0,0,3722,3720,1,0,0,0,3722,3723,1,0,0,0,3723,597,1,0,0,0,3724,3722,1,0,0,0,3725,3726,3,600,300,0,3726,3727,5,2,0,0,3727,3728,3,14,7,0,3728,599,1,0,0,0,3729,3730,3,120,60,0,3730,601,1,0,0,0,3731,3732,3,604,302,0,3732,3733,5,2,0,0,3733,3734,5,27,0,0,3734,3735,3,378,189,0,3735,3736,5,28,0,0,3736,603,1,0,0,0,3737,3738,5,27,0,0,3738,3743,3,600,300,0,3739,3740,5,26,0,0,3740,3742,3,600,300,0,3741,3739,1,0,0,0,3742,3745,1,0,0,0,3743,3741,1,0,0,0,3743,3744,1,0,0,0,3744,3746,1,0,0,0,3745,3743,1,0,0,0,3746,3747,5,28,0,0,3747,605,1,0,0,0,3748,3749,5,87,0,0,3749,3750,5,287,0,0,3750,3752,3,652,326,0,3751,3753,3,608,304,0,3752,3751,1,0,0,0,3752,3753,1,0,0,0,3753,3755,1,0,0,0,3754,3756,3,612,306,0,3755,3754,1,0,0,0,3755,3756,1,0,0,0,3756,607,1,0,0,0,3757,3758,5,27,0,0,3758,3763,3,610,305,0,3759,3760,5,26,0,0,3760,3762,3,610,305,0,3761,3759,1,0,0,0,3762,3765,1,0,0,0,3763,3761,1,0,0,0,3763,3764,1,0,0,0,3764,3766,1,0,0,0,3765,3763,1,0,0,0,3766,3767,5,28,0,0,3767,609,1,0,0,0,3768,3769,3,620,310,0,3769,611,1,0,0,0,3770,3771,5,312,0,0,3771,3772,5,27,0,0,3772,3773,3,638,319,0,3773,3774,5,28,0,0,3774,613,1,0,0,0,3775,3776,5,49,0,0,3776,3777,5,287,0,0,3777,3778,3,652,326,0,3778,3783,3,616,308,0,3779,3780,5,26,0,0,3780,3782,3,616,308,0,3781,3779,1,0,0,0,3782,3785,1,0,0,0,3783,3781,1,0,0,0,3783,3784,1,0,0,0,3784,615,1,0,0,0,3785,3783,1,0,0,0,3786,3792,3,618,309,0,3787,3792,3,622,311,0,3788,3792,3,626,313,0,3789,3792,3,632,316,0,3790,3792,3,634,317,0,3791,3786,1,0,0,0,3791,3787,1,0,0,0,3791,3788,1,0,0,0,3791,3789,1,0,0,0,3791,3790,1,0,0,0,3792,617,1,0,0,0,3793,3794,5,46,0,0,3794,3795,3,620,310,0,3795,619,1,0,0,0,3796,3797,5,85,0,0,3797,3799,3,724,362,0,3798,3800,3,644,322,0,3799,3798,1,0,0,0,3799,3800,1,0,0,0,3800,621,1,0,0,0,3801,3802,5,49,0,0,3802,3803,5,85,0,0,3803,3804,3,654,327,0,3804,3805,3,624,312,0,3805,623,1,0,0,0,3806,3809,3,628,314,0,3807,3809,3,630,315,0,3808,3806,1,0,0,0,3808,3807,1,0,0,0,3809,625,1,0,0,0,3810,3811,5,112,0,0,3811,3812,5,85,0,0,3812,3813,3,654,327,0,3813,627,1,0,0,0,3814,3815,5,264,0,0,3815,3816,5,27,0,0,3816,3817,3,646,323,0,3817,3818,5,28,0,0,3818,629,1,0,0,0,3819,3820,5,242,0,0,3820,3821,5,27,0,0,3821,3826,3,724,362,0,3822,3823,5,26,0,0,3823,3825,3,724,362,0,3824,3822,1,0,0,0,3825,3828,1,0,0,0,3826,3824,1,0,0,0,3826,3827,1,0,0,0,3827,3829,1,0,0,0,3828,3826,1,0,0,0,3829,3830,5,28,0,0,3830,631,1,0,0,0,3831,3832,5,264,0,0,3832,3833,5,27,0,0,3833,3834,3,638,319,0,3834,3835,5,28,0,0,3835,633,1,0,0,0,3836,3837,5,242,0,0,3837,3838,5,27,0,0,3838,3843,3,724,362,0,3839,3840,5,26,0,0,3840,3842,3,742,371,0,3841,3839,1,0,0,0,3842,3845,1,0,0,0,3843,3841,1,0,0,0,3843,3844,1,0,0,0,3844,3846,1,0,0,0,3845,3843,1,0,0,0,3846,3847,5,28,0,0,3847,635,1,0,0,0,3848,3849,5,112,0,0,3849,3850,5,287,0,0,3850,3851,3,652,326,0,3851,637,1,0,0,0,3852,3857,3,640,320,0,3853,3854,5,26,0,0,3854,3856,3,640,320,0,3855,3853,1,0,0,0,3856,3859,1,0,0,0,3857,3855,1,0,0,0,3857,3858,1,0,0,0,3858,639,1,0,0,0,3859,3857,1,0,0,0,3860,3861,3,724,362,0,3861,3862,5,2,0,0,3862,3863,3,642,321,0,3863,641,1,0,0,0,3864,3865,3,14,7,0,3865,643,1,0,0,0,3866,3867,5,312,0,0,3867,3868,5,27,0,0,3868,3869,3,646,323,0,3869,3870,5,28,0,0,3870,645,1,0,0,0,3871,3876,3,648,324,0,3872,3873,5,26,0,0,3873,3875,3,648,324,0,3874,3872,1,0,0,0,3875,3878,1,0,0,0,3876,3874,1,0,0,0,3876,3877,1,0,0,0,3877,647,1,0,0,0,3878,3876,1,0,0,0,3879,3880,3,724,362,0,3880,3881,5,2,0,0,3881,3882,3,650,325,0,3882,649,1,0,0,0,3883,3884,3,14,7,0,3884,651,1,0,0,0,3885,3886,3,750,375,0,3886,3887,5,25,0,0,3887,3889,1,0,0,0,3888,3885,1,0,0,0,3888,3889,1,0,0,0,3889,3890,1,0,0,0,3890,3891,3,724,362,0,3891,653,1,0,0,0,3892,3893,3,742,371,0,3893,655,1,0,0,0,3894,3895,5,244,0,0,3895,3899,5,199,0,0,3896,3897,5,155,0,0,3897,3899,5,199,0,0,3898,3894,1,0,0,0,3898,3896,1,0,0,0,3899,657,1,0,0,0,3900,3901,5,135,0,0,3901,3902,5,27,0,0,3902,3903,3,800,400,0,3903,3904,5,28,0,0,3904,659,1,0,0,0,3905,3908,3,662,331,0,3906,3908,3,672,336,0,3907,3905,1,0,0,0,3907,3906,1,0,0,0,3908,661,1,0,0,0,3909,3910,3,734,367,0,3910,663,1,0,0,0,3911,3912,5,311,0,0,3912,3913,3,666,333,0,3913,665,1,0,0,0,3914,3919,3,668,334,0,3915,3916,5,26,0,0,3916,3918,3,668,334,0,3917,3915,1,0,0,0,3918,3921,1,0,0,0,3919,3917,1,0,0,0,3919,3920,1,0,0,0,3920,667,1,0,0,0,3921,3919,1,0,0,0,3922,3923,3,670,335,0,3923,3924,5,55,0,0,3924,3925,3,672,336,0,3925,669,1,0,0,0,3926,3927,3,662,331,0,3927,671,1,0,0,0,3928,3929,5,27,0,0,3929,3930,3,674,337,0,3930,3931,5,28,0,0,3931,673,1,0,0,0,3932,3934,3,676,338,0,3933,3932,1,0,0,0,3933,3934,1,0,0,0,3934,3936,1,0,0,0,3935,3937,3,678,339,0,3936,3935,1,0,0,0,3936,3937,1,0,0,0,3937,3939,1,0,0,0,3938,3940,3,680,340,0,3939,3938,1,0,0,0,3939,3940,1,0,0,0,3940,3942,1,0,0,0,3941,3943,3,682,341,0,3942,3941,1,0,0,0,3942,3943,1,0,0,0,3943,675,1,0,0,0,3944,3945,3,662,331,0,3945,677,1,0,0,0,3946,3948,5,215,0,0,3947,3949,5,80,0,0,3948,3947,1,0,0,0,3948,3949,1,0,0,0,3949,3950,1,0,0,0,3950,3951,5,69,0,0,3951,3952,3,130,65,0,3952,679,1,0,0,0,3953,3954,3,314,157,0,3954,681,1,0,0,0,3955,3956,3,684,342,0,3956,3958,3,686,343,0,3957,3959,3,692,346,0,3958,3957,1,0,0,0,3958,3959,1,0,0,0,3959,683,1,0,0,0,3960,3961,7,28,0,0,3961,685,1,0,0,0,3962,3965,3,690,345,0,3963,3965,3,688,344,0,3964,3962,1,0,0,0,3964,3963,1,0,0,0,3965,687,1,0,0,0,3966,3967,5,67,0,0,3967,3968,3,690,345,0,3968,3969,5,51,0,0,3969,3970,3,690,345,0,3970,689,1,0,0,0,3971,3972,5,90,0,0,3972,3979,5,255,0,0,3973,3976,3,14,7,0,3974,3976,5,293,0,0,3975,3973,1,0,0,0,3975,3974,1,0,0,0,3976,3977,1,0,0,0,3977,3979,7,29,0,0,3978,3971,1,0,0,0,3978,3975,1,0,0,0,3979,691,1,0,0,0,3980,3981,5,125,0,0,3981,3982,5,90,0,0,3982,3991,5,255,0,0,3983,3984,5,125,0,0,3984,3991,5,148,0,0,3985,3986,5,125,0,0,3986,3991,5,285,0,0,3987,3988,5,125,0,0,3988,3989,5,195,0,0,3989,3991,5,211,0,0,3990,3980,1,0,0,0,3990,3983,1,0,0,0,3990,3985,1,0,0,0,3990,3987,1,0,0,0,3991,693,1,0,0,0,3992,3993,5,301,0,0,3993,3994,3,750,375,0,3994,695,1,0,0,0,3995,3996,5,27,0,0,3996,3997,3,232,116,0,3997,3998,5,28,0,0,3998,4001,1,0,0,0,3999,4001,3,234,117,0,4e3,3995,1,0,0,0,4e3,3999,1,0,0,0,4001,697,1,0,0,0,4002,4003,3,148,74,0,4003,4006,5,2,0,0,4004,4007,3,14,7,0,4005,4007,3,696,348,0,4006,4004,1,0,0,0,4006,4005,1,0,0,0,4007,699,1,0,0,0,4008,4009,5,79,0,0,4009,701,1,0,0,0,4010,4011,5,253,0,0,4011,703,1,0,0,0,4012,4013,7,30,0,0,4013,705,1,0,0,0,4014,4017,3,704,352,0,4015,4017,3,762,381,0,4016,4014,1,0,0,0,4016,4015,1,0,0,0,4017,707,1,0,0,0,4018,4026,3,704,352,0,4019,4026,3,780,390,0,4020,4026,3,764,382,0,4021,4026,3,768,384,0,4022,4026,3,772,386,0,4023,4026,3,774,387,0,4024,4026,3,776,388,0,4025,4018,1,0,0,0,4025,4019,1,0,0,0,4025,4020,1,0,0,0,4025,4021,1,0,0,0,4025,4022,1,0,0,0,4025,4023,1,0,0,0,4025,4024,1,0,0,0,4026,709,1,0,0,0,4027,4034,3,704,352,0,4028,4034,3,780,390,0,4029,4034,3,770,385,0,4030,4034,3,772,386,0,4031,4034,3,774,387,0,4032,4034,3,776,388,0,4033,4027,1,0,0,0,4033,4028,1,0,0,0,4033,4029,1,0,0,0,4033,4030,1,0,0,0,4033,4031,1,0,0,0,4033,4032,1,0,0,0,4034,711,1,0,0,0,4035,4041,3,704,352,0,4036,4041,3,780,390,0,4037,4041,3,770,385,0,4038,4041,3,774,387,0,4039,4041,3,776,388,0,4040,4035,1,0,0,0,4040,4036,1,0,0,0,4040,4037,1,0,0,0,4040,4038,1,0,0,0,4040,4039,1,0,0,0,4041,713,1,0,0,0,4042,4051,3,704,352,0,4043,4051,3,780,390,0,4044,4051,3,764,382,0,4045,4051,3,766,383,0,4046,4051,3,768,384,0,4047,4051,3,770,385,0,4048,4051,3,772,386,0,4049,4051,3,776,388,0,4050,4042,1,0,0,0,4050,4043,1,0,0,0,4050,4044,1,0,0,0,4050,4045,1,0,0,0,4050,4046,1,0,0,0,4050,4047,1,0,0,0,4050,4048,1,0,0,0,4050,4049,1,0,0,0,4051,715,1,0,0,0,4052,4060,3,704,352,0,4053,4060,3,780,390,0,4054,4060,3,764,382,0,4055,4060,3,768,384,0,4056,4060,3,772,386,0,4057,4060,3,774,387,0,4058,4060,3,776,388,0,4059,4052,1,0,0,0,4059,4053,1,0,0,0,4059,4054,1,0,0,0,4059,4055,1,0,0,0,4059,4056,1,0,0,0,4059,4057,1,0,0,0,4059,4058,1,0,0,0,4060,717,1,0,0,0,4061,4069,3,704,352,0,4062,4069,3,780,390,0,4063,4069,3,766,383,0,4064,4069,3,770,385,0,4065,4069,3,772,386,0,4066,4069,3,774,387,0,4067,4069,3,776,388,0,4068,4061,1,0,0,0,4068,4062,1,0,0,0,4068,4063,1,0,0,0,4068,4064,1,0,0,0,4068,4065,1,0,0,0,4068,4066,1,0,0,0,4068,4067,1,0,0,0,4069,719,1,0,0,0,4070,4079,3,704,352,0,4071,4079,3,780,390,0,4072,4079,3,764,382,0,4073,4079,3,766,383,0,4074,4079,3,768,384,0,4075,4079,3,770,385,0,4076,4079,3,772,386,0,4077,4079,3,774,387,0,4078,4070,1,0,0,0,4078,4071,1,0,0,0,4078,4072,1,0,0,0,4078,4073,1,0,0,0,4078,4074,1,0,0,0,4078,4075,1,0,0,0,4078,4076,1,0,0,0,4078,4077,1,0,0,0,4079,721,1,0,0,0,4080,4083,3,704,352,0,4081,4083,3,778,389,0,4082,4080,1,0,0,0,4082,4081,1,0,0,0,4083,723,1,0,0,0,4084,4087,3,706,353,0,4085,4087,5,316,0,0,4086,4084,1,0,0,0,4086,4085,1,0,0,0,4087,725,1,0,0,0,4088,4091,3,752,376,0,4089,4091,5,316,0,0,4090,4088,1,0,0,0,4090,4089,1,0,0,0,4091,727,1,0,0,0,4092,4095,3,708,354,0,4093,4095,5,316,0,0,4094,4092,1,0,0,0,4094,4093,1,0,0,0,4095,729,1,0,0,0,4096,4099,3,710,355,0,4097,4099,5,316,0,0,4098,4096,1,0,0,0,4098,4097,1,0,0,0,4099,731,1,0,0,0,4100,4103,3,712,356,0,4101,4103,5,316,0,0,4102,4100,1,0,0,0,4102,4101,1,0,0,0,4103,733,1,0,0,0,4104,4107,3,714,357,0,4105,4107,5,316,0,0,4106,4104,1,0,0,0,4106,4105,1,0,0,0,4107,735,1,0,0,0,4108,4111,3,716,358,0,4109,4111,5,316,0,0,4110,4108,1,0,0,0,4110,4109,1,0,0,0,4111,737,1,0,0,0,4112,4115,3,718,359,0,4113,4115,5,316,0,0,4114,4112,1,0,0,0,4114,4113,1,0,0,0,4115,739,1,0,0,0,4116,4119,3,720,360,0,4117,4119,5,316,0,0,4118,4116,1,0,0,0,4118,4117,1,0,0,0,4119,741,1,0,0,0,4120,4123,3,704,352,0,4121,4123,5,316,0,0,4122,4120,1,0,0,0,4122,4121,1,0,0,0,4123,743,1,0,0,0,4124,4127,3,722,361,0,4125,4127,5,316,0,0,4126,4124,1,0,0,0,4126,4125,1,0,0,0,4127,745,1,0,0,0,4128,4132,3,724,362,0,4129,4130,5,226,0,0,4130,4132,5,176,0,0,4131,4128,1,0,0,0,4131,4129,1,0,0,0,4132,747,1,0,0,0,4133,4134,3,724,362,0,4134,4135,5,25,0,0,4135,4137,1,0,0,0,4136,4133,1,0,0,0,4136,4137,1,0,0,0,4137,749,1,0,0,0,4138,4139,3,724,362,0,4139,4140,5,30,0,0,4140,4142,1,0,0,0,4141,4138,1,0,0,0,4141,4142,1,0,0,0,4142,4145,1,0,0,0,4143,4146,3,116,58,0,4144,4146,5,20,0,0,4145,4143,1,0,0,0,4145,4144,1,0,0,0,4146,751,1,0,0,0,4147,4150,3,706,353,0,4148,4150,3,782,391,0,4149,4147,1,0,0,0,4149,4148,1,0,0,0,4150,753,1,0,0,0,4151,4152,3,726,363,0,4152,4153,5,25,0,0,4153,4155,1,0,0,0,4154,4151,1,0,0,0,4154,4155,1,0,0,0,4155,755,1,0,0,0,4156,4158,5,31,0,0,4157,4156,1,0,0,0,4157,4158,1,0,0,0,4158,4159,1,0,0,0,4159,4160,3,726,363,0,4160,757,1,0,0,0,4161,4164,3,736,368,0,4162,4164,3,782,391,0,4163,4161,1,0,0,0,4163,4162,1,0,0,0,4164,759,1,0,0,0,4165,4167,5,31,0,0,4166,4165,1,0,0,0,4166,4167,1,0,0,0,4167,4168,1,0,0,0,4168,4169,3,758,379,0,4169,761,1,0,0,0,4170,4179,3,780,390,0,4171,4179,3,764,382,0,4172,4179,3,766,383,0,4173,4179,3,768,384,0,4174,4179,3,770,385,0,4175,4179,3,772,386,0,4176,4179,3,774,387,0,4177,4179,3,776,388,0,4178,4170,1,0,0,0,4178,4171,1,0,0,0,4178,4172,1,0,0,0,4178,4173,1,0,0,0,4178,4174,1,0,0,0,4178,4175,1,0,0,0,4178,4176,1,0,0,0,4178,4177,1,0,0,0,4179,763,1,0,0,0,4180,4181,7,31,0,0,4181,765,1,0,0,0,4182,4183,7,32,0,0,4183,767,1,0,0,0,4184,4185,7,33,0,0,4185,769,1,0,0,0,4186,4187,5,77,0,0,4187,771,1,0,0,0,4188,4189,5,80,0,0,4189,773,1,0,0,0,4190,4191,7,28,0,0,4191,775,1,0,0,0,4192,4193,7,27,0,0,4193,777,1,0,0,0,4194,4195,7,34,0,0,4195,779,1,0,0,0,4196,4197,7,35,0,0,4197,781,1,0,0,0,4198,4199,7,36,0,0,4199,783,1,0,0,0,4200,4201,7,37,0,0,4201,785,1,0,0,0,4202,4203,5,321,0,0,4203,787,1,0,0,0,4204,4205,7,38,0,0,4205,789,1,0,0,0,4206,4212,3,792,396,0,4207,4208,5,223,0,0,4208,4209,5,52,0,0,4209,4210,5,319,0,0,4210,4212,3,4,2,0,4211,4206,1,0,0,0,4211,4207,1,0,0,0,4212,791,1,0,0,0,4213,4215,5,24,0,0,4214,4213,1,0,0,0,4215,4218,1,0,0,0,4216,4214,1,0,0,0,4216,4217,1,0,0,0,4217,4219,1,0,0,0,4218,4216,1,0,0,0,4219,4228,3,794,397,0,4220,4222,5,24,0,0,4221,4220,1,0,0,0,4222,4223,1,0,0,0,4223,4221,1,0,0,0,4223,4224,1,0,0,0,4224,4225,1,0,0,0,4225,4227,3,794,397,0,4226,4221,1,0,0,0,4227,4230,1,0,0,0,4228,4226,1,0,0,0,4228,4229,1,0,0,0,4229,4234,1,0,0,0,4230,4228,1,0,0,0,4231,4233,5,24,0,0,4232,4231,1,0,0,0,4233,4236,1,0,0,0,4234,4232,1,0,0,0,4234,4235,1,0,0,0,4235,4237,1,0,0,0,4236,4234,1,0,0,0,4237,4238,5,0,0,1,4238,793,1,0,0,0,4239,4242,5,129,0,0,4240,4241,5,1,0,0,4241,4243,5,222,0,0,4242,4240,1,0,0,0,4242,4243,1,0,0,0,4243,4245,1,0,0,0,4244,4239,1,0,0,0,4244,4245,1,0,0,0,4245,4246,1,0,0,0,4246,4247,3,796,398,0,4247,795,1,0,0,0,4248,4262,3,224,112,0,4249,4262,3,232,116,0,4250,4262,3,698,349,0,4251,4262,3,694,347,0,4252,4262,3,366,183,0,4253,4262,3,210,105,0,4254,4262,3,214,107,0,4255,4262,3,216,108,0,4256,4262,3,222,111,0,4257,4262,3,564,282,0,4258,4262,3,568,284,0,4259,4262,3,570,285,0,4260,4262,3,370,185,0,4261,4248,1,0,0,0,4261,4249,1,0,0,0,4261,4250,1,0,0,0,4261,4251,1,0,0,0,4261,4252,1,0,0,0,4261,4253,1,0,0,0,4261,4254,1,0,0,0,4261,4255,1,0,0,0,4261,4256,1,0,0,0,4261,4257,1,0,0,0,4261,4258,1,0,0,0,4261,4259,1,0,0,0,4261,4260,1,0,0,0,4262,797,1,0,0,0,4263,4264,5,55,0,0,4264,4265,3,582,291,0,4265,799,1,0,0,0,4266,4267,5,310,0,0,4267,4268,3,14,7,0,4268,801,1,0,0,0,4269,4270,5,142,0,0,4270,4271,3,338,169,0,4271,803,1,0,0,0,4272,4275,3,434,217,0,4273,4275,3,442,221,0,4274,4272,1,0,0,0,4274,4273,1,0,0,0,4275,805,1,0,0,0,476,811,816,823,828,834,842,850,857,861,869,874,879,881,929,936,940,947,955,960,964,970,976,979,983,991,995,998,1002,1013,1018,1020,1029,1050,1055,1064,1066,1073,1081,1089,1096,1106,1108,1110,1115,1119,1125,1131,1135,1139,1142,1149,1155,1159,1164,1167,1181,1186,1189,1203,1210,1221,1232,1252,1258,1263,1267,1281,1283,1290,1296,1307,1315,1321,1328,1336,1349,1355,1359,1362,1364,1372,1380,1386,1392,1398,1401,1410,1419,1426,1434,1447,1454,1458,1465,1469,1474,1481,1488,1491,1498,1502,1512,1535,1541,1545,1552,1558,1565,1569,1573,1579,1584,1593,1596,1602,1607,1615,1622,1644,1648,1650,1654,1663,1667,1669,1673,1682,1686,1724,1728,1748,1751,1757,1777,1782,1788,1793,1796,1800,1827,1835,1838,1845,1858,1862,1874,1887,1892,1899,1903,1910,1919,1928,1936,1940,1944,1951,1953,1956,1961,1966,1970,1977,1984,1988,1991,1995,1999,2001,2012,2021,2026,2032,2037,2040,2044,2048,2051,2055,2059,2067,2071,2075,2079,2082,2085,2089,2092,2095,2100,2103,2106,2109,2123,2125,2136,2146,2156,2159,2166,2190,2201,2207,2211,2215,2219,2223,2227,2231,2235,2241,2248,2258,2269,2282,2298,2308,2328,2334,2341,2348,2356,2365,2402,2404,2407,2412,2416,2420,2426,2432,2436,2441,2446,2448,2452,2457,2460,2462,2466,2477,2488,2499,2503,2507,2511,2514,2518,2521,2527,2536,2539,2553,2559,2572,2579,2584,2591,2598,2607,2612,2620,2635,2641,2649,2672,2679,2687,2708,2716,2724,2734,2743,2748,2755,2765,2770,2779,2783,2787,2790,2793,2796,2799,2807,2816,2833,2856,2874,2885,2893,2903,2908,2912,2918,2949,2961,2998,3006,3009,3013,3017,3027,3040,3053,3058,3075,3079,3083,3092,3103,3108,3112,3116,3119,3135,3150,3165,3168,3180,3183,3199,3205,3213,3223,3227,3235,3241,3247,3259,3263,3265,3277,3281,3286,3292,3299,3303,3307,3310,3323,3332,3336,3341,3347,3356,3365,3382,3386,3390,3392,3396,3403,3407,3411,3413,3425,3441,3457,3472,3479,3487,3498,3505,3510,3516,3519,3522,3529,3532,3535,3544,3549,3552,3562,3566,3568,3575,3578,3582,3584,3587,3592,3595,3600,3610,3615,3626,3630,3634,3636,3640,3645,3653,3656,3659,3662,3667,3673,3676,3680,3686,3694,3697,3704,3708,3711,3715,3722,3743,3752,3755,3763,3783,3791,3799,3808,3826,3843,3857,3876,3888,3898,3907,3919,3933,3936,3939,3942,3948,3958,3964,3975,3978,3990,4e3,4006,4016,4025,4033,4040,4050,4059,4068,4078,4082,4086,4090,4094,4098,4102,4106,4110,4114,4118,4122,4126,4131,4136,4141,4145,4149,4154,4157,4163,4166,4178,4211,4216,4223,4228,4234,4242,4244,4261,4274]}static get _ATN(){return t.__ATN||(t.__ATN=(new yt).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new o(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ce(t,e)))}},NG=class extends p{constructor(t,e){super(t,e)}sql_stmt_list(){return this.getRuleContext(0,LG)}PRAGMA(){return this.getToken(uG.PRAGMA,0)}ANSI(){return this.getToken(uG.ANSI,0)}DIGITS(){return this.getToken(uG.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,CG)}get ruleIndex(){return uG.RULE_sql_query}accept(t){return t.visitSql_query?t.visitSql_query(this):t.visitChildren(this)}},LG=class extends p{constructor(t,e){super(t,e)}sql_stmt(t){return void 0===t?this.getRuleContexts(MG):this.getRuleContext(t,MG)}EOF(){return this.getToken(uG.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(uG.SEMICOLON):this.getToken(uG.SEMICOLON,t)}get ruleIndex(){return uG.RULE_sql_stmt_list}accept(t){return t.visitSql_stmt_list?t.visitSql_stmt_list(this):t.visitChildren(this)}},CG=class extends p{constructor(t,e){super(t,e)}EOF(){return this.getToken(uG.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(uG.SEMICOLON):this.getToken(uG.SEMICOLON,t)}get ruleIndex(){return uG.RULE_ansi_sql_stmt_list}accept(t){return t.visitAnsi_sql_stmt_list?t.visitAnsi_sql_stmt_list(this):t.visitChildren(this)}},_G=class extends p{constructor(t,e){super(t,e)}RETURN(){return this.getToken(uG.RETURN,0)}expr(){return this.getRuleContext(0,UG)}SEMICOLON(t){return void 0===t?this.getTokens(uG.SEMICOLON):this.getToken(uG.SEMICOLON,t)}lambda_stmt(t){return void 0===t?this.getRuleContexts(PG):this.getRuleContext(t,PG)}get ruleIndex(){return uG.RULE_lambda_body}accept(t){return t.visitLambda_body?t.visitLambda_body(this):t.visitChildren(this)}},PG=class extends p{constructor(t,e){super(t,e)}named_nodes_stmt(){return this.getRuleContext(0,XY)}import_stmt(){return this.getRuleContext(0,uv)}get ruleIndex(){return uG.RULE_lambda_stmt}accept(t){return t.visitLambda_stmt?t.visitLambda_stmt(this):t.visitChildren(this)}},MG=class extends p{constructor(t,e){super(t,e)}sql_stmt_core(){return this.getRuleContext(0,dG)}EXPLAIN(){return this.getToken(uG.EXPLAIN,0)}QUERY(){return this.getToken(uG.QUERY,0)}PLAN(){return this.getToken(uG.PLAN,0)}get ruleIndex(){return uG.RULE_sql_stmt}accept(t){return t.visitSql_stmt?t.visitSql_stmt(this):t.visitChildren(this)}},dG=class extends p{constructor(t,e){super(t,e)}pragma_stmt(){return this.getRuleContext(0,Pv)}select_stmt(){return this.getRuleContext(0,mv)}named_nodes_stmt(){return this.getRuleContext(0,XY)}create_table_stmt(){return this.getRuleContext(0,Ry)}drop_table_stmt(){return this.getRuleContext(0,Tf)}use_stmt(){return this.getRuleContext(0,WY)}into_table_stmt(){return this.getRuleContext(0,fB)}commit_stmt(){return this.getRuleContext(0,KY)}update_stmt(){return this.getRuleContext(0,Kf)}delete_stmt(){return this.getRuleContext(0,Xf)}rollback_stmt(){return this.getRuleContext(0,QY)}declare_stmt(){return this.getRuleContext(0,Ov)}import_stmt(){return this.getRuleContext(0,uv)}export_stmt(){return this.getRuleContext(0,Nv)}alter_table_stmt(){return this.getRuleContext(0,Ly)}alter_external_table_stmt(){return this.getRuleContext(0,_y)}do_stmt(){return this.getRuleContext(0,_v)}define_action_or_subquery_stmt(){return this.getRuleContext(0,kf)}if_stmt(){return this.getRuleContext(0,Gf)}for_stmt(){return this.getRuleContext(0,Ff)}values_stmt(){return this.getRuleContext(0,bB)}create_user_stmt(){return this.getRuleContext(0,of)}alter_user_stmt(){return this.getRuleContext(0,Rf)}create_group_stmt(){return this.getRuleContext(0,Af)}alter_group_stmt(){return this.getRuleContext(0,Sf)}drop_role_stmt(){return this.getRuleContext(0,lf)}create_object_stmt(){return this.getRuleContext(0,ty)}alter_object_stmt(){return this.getRuleContext(0,sy)}drop_object_stmt(){return this.getRuleContext(0,iy)}create_external_data_source_stmt(){return this.getRuleContext(0,QB)}alter_external_data_source_stmt(){return this.getRuleContext(0,JB)}drop_external_data_source_stmt(){return this.getRuleContext(0,qB)}create_replication_stmt(){return this.getRuleContext(0,Pf)}drop_replication_stmt(){return this.getRuleContext(0,gf)}create_topic_stmt(){return this.getRuleContext(0,$f)}alter_topic_stmt(){return this.getRuleContext(0,aY)}drop_topic_stmt(){return this.getRuleContext(0,SY)}grant_permissions_stmt(){return this.getRuleContext(0,uf)}revoke_permissions_stmt(){return this.getRuleContext(0,Nf)}alter_table_store_stmt(){return this.getRuleContext(0,My)}upsert_object_stmt(){return this.getRuleContext(0,$B)}create_view_stmt(){return this.getRuleContext(0,jB)}drop_view_stmt(){return this.getRuleContext(0,zB)}alter_replication_stmt(){return this.getRuleContext(0,mf)}get ruleIndex(){return uG.RULE_sql_stmt_core}accept(t){return t.visitSql_stmt_core?t.visitSql_stmt_core(this):t.visitChildren(this)}},UG=class extends p{constructor(t,e){super(t,e)}or_subexpr(t){return void 0===t?this.getRuleContexts(mG):this.getRuleContext(t,mG)}OR(t){return void 0===t?this.getTokens(uG.OR):this.getToken(uG.OR,t)}type_name_composite(){return this.getRuleContext(0,ov)}get ruleIndex(){return uG.RULE_expr}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}},mG=class extends p{constructor(t,e){super(t,e)}and_subexpr(t){return void 0===t?this.getRuleContexts(DG):this.getRuleContext(t,DG)}AND(t){return void 0===t?this.getTokens(uG.AND):this.getToken(uG.AND,t)}get ruleIndex(){return uG.RULE_or_subexpr}accept(t){return t.visitOr_subexpr?t.visitOr_subexpr(this):t.visitChildren(this)}},DG=class extends p{constructor(t,e){super(t,e)}xor_subexpr(t){return void 0===t?this.getRuleContexts(pG):this.getRuleContext(t,pG)}XOR(t){return void 0===t?this.getTokens(uG.XOR):this.getToken(uG.XOR,t)}get ruleIndex(){return uG.RULE_and_subexpr}accept(t){return t.visitAnd_subexpr?t.visitAnd_subexpr(this):t.visitChildren(this)}},pG=class extends p{constructor(t,e){super(t,e)}eq_subexpr(){return this.getRuleContext(0,HG)}cond_expr(){return this.getRuleContext(0,xG)}get ruleIndex(){return uG.RULE_xor_subexpr}accept(t){return t.visitXor_subexpr?t.visitXor_subexpr(this):t.visitChildren(this)}},gG=class extends p{constructor(t,e){super(t,e)}IS(){return this.getToken(uG.IS,0)}DISTINCT(){return this.getToken(uG.DISTINCT,0)}FROM(){return this.getToken(uG.FROM,0)}NOT(){return this.getToken(uG.NOT,0)}get ruleIndex(){return uG.RULE_distinct_from_op}accept(t){return t.visitDistinct_from_op?t.visitDistinct_from_op(this):t.visitChildren(this)}},xG=class extends p{constructor(t,e){super(t,e)}match_op(){return this.getRuleContext(0,kG)}eq_subexpr(t){return void 0===t?this.getRuleContexts(HG):this.getRuleContext(t,HG)}NOT(){return this.getToken(uG.NOT,0)}ESCAPE(){return this.getToken(uG.ESCAPE,0)}IN(){return this.getToken(uG.IN,0)}in_expr(){return this.getRuleContext(0,cF)}COMPACT(){return this.getToken(uG.COMPACT,0)}ISNULL(){return this.getToken(uG.ISNULL,0)}NOTNULL(){return this.getToken(uG.NOTNULL,0)}IS(){return this.getToken(uG.IS,0)}NULL(){return this.getToken(uG.NULL,0)}BETWEEN(){return this.getToken(uG.BETWEEN,0)}AND(){return this.getToken(uG.AND,0)}SYMMETRIC(){return this.getToken(uG.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(uG.ASYMMETRIC,0)}EQUALS(t){return void 0===t?this.getTokens(uG.EQUALS):this.getToken(uG.EQUALS,t)}EQUALS2(t){return void 0===t?this.getTokens(uG.EQUALS2):this.getToken(uG.EQUALS2,t)}NOT_EQUALS(t){return void 0===t?this.getTokens(uG.NOT_EQUALS):this.getToken(uG.NOT_EQUALS,t)}NOT_EQUALS2(t){return void 0===t?this.getTokens(uG.NOT_EQUALS2):this.getToken(uG.NOT_EQUALS2,t)}distinct_from_op(t){return void 0===t?this.getRuleContexts(gG):this.getRuleContext(t,gG)}get ruleIndex(){return uG.RULE_cond_expr}accept(t){return t.visitCond_expr?t.visitCond_expr(this):t.visitChildren(this)}},kG=class extends p{constructor(t,e){super(t,e)}LIKE(){return this.getToken(uG.LIKE,0)}ILIKE(){return this.getToken(uG.ILIKE,0)}GLOB(){return this.getToken(uG.GLOB,0)}REGEXP(){return this.getToken(uG.REGEXP,0)}RLIKE(){return this.getToken(uG.RLIKE,0)}MATCH(){return this.getToken(uG.MATCH,0)}get ruleIndex(){return uG.RULE_match_op}accept(t){return t.visitMatch_op?t.visitMatch_op(this):t.visitChildren(this)}},HG=class extends p{constructor(t,e){super(t,e)}neq_subexpr(t){return void 0===t?this.getRuleContexts(BG):this.getRuleContext(t,BG)}LESS(t){return void 0===t?this.getTokens(uG.LESS):this.getToken(uG.LESS,t)}LESS_OR_EQ(t){return void 0===t?this.getTokens(uG.LESS_OR_EQ):this.getToken(uG.LESS_OR_EQ,t)}GREATER(t){return void 0===t?this.getTokens(uG.GREATER):this.getToken(uG.GREATER,t)}GREATER_OR_EQ(t){return void 0===t?this.getTokens(uG.GREATER_OR_EQ):this.getToken(uG.GREATER_OR_EQ,t)}get ruleIndex(){return uG.RULE_eq_subexpr}accept(t){return t.visitEq_subexpr?t.visitEq_subexpr(this):t.visitChildren(this)}},GG=class extends p{constructor(t,e){super(t,e)}GREATER(t){return void 0===t?this.getTokens(uG.GREATER):this.getToken(uG.GREATER,t)}get ruleIndex(){return uG.RULE_shift_right}accept(t){return t.visitShift_right?t.visitShift_right(this):t.visitChildren(this)}},FG=class extends p{constructor(t,e){super(t,e)}GREATER(t){return void 0===t?this.getTokens(uG.GREATER):this.getToken(uG.GREATER,t)}PIPE(){return this.getToken(uG.PIPE,0)}get ruleIndex(){return uG.RULE_rot_right}accept(t){return t.visitRot_right?t.visitRot_right(this):t.visitChildren(this)}},vG=class extends p{constructor(t,e){super(t,e)}QUESTION(t){return void 0===t?this.getTokens(uG.QUESTION):this.getToken(uG.QUESTION,t)}get ruleIndex(){return uG.RULE_double_question}accept(t){return t.visitDouble_question?t.visitDouble_question(this):t.visitChildren(this)}},BG=class t extends p{constructor(t,e){super(t,e)}bit_subexpr(t){return void 0===t?this.getRuleContexts(yG):this.getRuleContext(t,yG)}SHIFT_LEFT(t){return void 0===t?this.getTokens(uG.SHIFT_LEFT):this.getToken(uG.SHIFT_LEFT,t)}shift_right(t){return void 0===t?this.getRuleContexts(GG):this.getRuleContext(t,GG)}ROT_LEFT(t){return void 0===t?this.getTokens(uG.ROT_LEFT):this.getToken(uG.ROT_LEFT,t)}rot_right(t){return void 0===t?this.getRuleContexts(FG):this.getRuleContext(t,FG)}AMPERSAND(t){return void 0===t?this.getTokens(uG.AMPERSAND):this.getToken(uG.AMPERSAND,t)}PIPE(t){return void 0===t?this.getTokens(uG.PIPE):this.getToken(uG.PIPE,t)}CARET(t){return void 0===t?this.getTokens(uG.CARET):this.getToken(uG.CARET,t)}double_question(){return this.getRuleContext(0,vG)}neq_subexpr(){return this.getRuleContext(0,t)}QUESTION(t){return void 0===t?this.getTokens(uG.QUESTION):this.getToken(uG.QUESTION,t)}get ruleIndex(){return uG.RULE_neq_subexpr}accept(t){return t.visitNeq_subexpr?t.visitNeq_subexpr(this):t.visitChildren(this)}},yG=class extends p{constructor(t,e){super(t,e)}add_subexpr(t){return void 0===t?this.getRuleContexts(fG):this.getRuleContext(t,fG)}PLUS(t){return void 0===t?this.getTokens(uG.PLUS):this.getToken(uG.PLUS,t)}MINUS(t){return void 0===t?this.getTokens(uG.MINUS):this.getToken(uG.MINUS,t)}get ruleIndex(){return uG.RULE_bit_subexpr}accept(t){return t.visitBit_subexpr?t.visitBit_subexpr(this):t.visitChildren(this)}},fG=class extends p{constructor(t,e){super(t,e)}mul_subexpr(t){return void 0===t?this.getRuleContexts(YG):this.getRuleContext(t,YG)}ASTERISK(t){return void 0===t?this.getTokens(uG.ASTERISK):this.getToken(uG.ASTERISK,t)}SLASH(t){return void 0===t?this.getTokens(uG.SLASH):this.getToken(uG.SLASH,t)}PERCENT(t){return void 0===t?this.getTokens(uG.PERCENT):this.getToken(uG.PERCENT,t)}get ruleIndex(){return uG.RULE_add_subexpr}accept(t){return t.visitAdd_subexpr?t.visitAdd_subexpr(this):t.visitChildren(this)}},YG=class extends p{constructor(t,e){super(t,e)}con_subexpr(t){return void 0===t?this.getRuleContexts(wG):this.getRuleContext(t,wG)}DOUBLE_PIPE(t){return void 0===t?this.getTokens(uG.DOUBLE_PIPE):this.getToken(uG.DOUBLE_PIPE,t)}get ruleIndex(){return uG.RULE_mul_subexpr}accept(t){return t.visitMul_subexpr?t.visitMul_subexpr(this):t.visitChildren(this)}},wG=class extends p{constructor(t,e){super(t,e)}unary_subexpr(){return this.getRuleContext(0,KG)}unary_op(){return this.getRuleContext(0,bG)}get ruleIndex(){return uG.RULE_con_subexpr}accept(t){return t.visitCon_subexpr?t.visitCon_subexpr(this):t.visitChildren(this)}},bG=class extends p{constructor(t,e){super(t,e)}PLUS(){return this.getToken(uG.PLUS,0)}MINUS(){return this.getToken(uG.MINUS,0)}TILDA(){return this.getToken(uG.TILDA,0)}NOT(){return this.getToken(uG.NOT,0)}get ruleIndex(){return uG.RULE_unary_op}accept(t){return t.visitUnary_op?t.visitUnary_op(this):t.visitChildren(this)}},WG=class extends p{constructor(t,e){super(t,e)}key_expr(t){return void 0===t?this.getRuleContexts(GF):this.getRuleContext(t,GF)}invoke_expr(t){return void 0===t?this.getRuleContexts(xF):this.getRuleContext(t,xF)}COLLATE(){return this.getToken(uG.COLLATE,0)}an_id(){return this.getRuleContext(0,iw)}DOT(t){return void 0===t?this.getTokens(uG.DOT):this.getToken(uG.DOT,t)}bind_parameter(t){return void 0===t?this.getRuleContexts(BF):this.getRuleContext(t,BF)}DIGITS(t){return void 0===t?this.getTokens(uG.DIGITS):this.getToken(uG.DIGITS,t)}an_id_or_type(t){return void 0===t?this.getRuleContexts(rw):this.getRuleContext(t,rw)}get ruleIndex(){return uG.RULE_unary_subexpr_suffix}accept(t){return t.visitUnary_subexpr_suffix?t.visitUnary_subexpr_suffix(this):t.visitChildren(this)}},VG=class extends p{constructor(t,e){super(t,e)}unary_subexpr_suffix(){return this.getRuleContext(0,WG)}id_expr(){return this.getRuleContext(0,jY)}atom_expr(){return this.getRuleContext(0,$G)}get ruleIndex(){return uG.RULE_unary_casual_subexpr}accept(t){return t.visitUnary_casual_subexpr?t.visitUnary_casual_subexpr(this):t.visitChildren(this)}},XG=class extends p{constructor(t,e){super(t,e)}unary_subexpr_suffix(){return this.getRuleContext(0,WG)}id_expr_in(){return this.getRuleContext(0,zY)}in_atom_expr(){return this.getRuleContext(0,tF)}get ruleIndex(){return uG.RULE_in_unary_casual_subexpr}accept(t){return t.visitIn_unary_casual_subexpr?t.visitIn_unary_casual_subexpr(this):t.visitChildren(this)}},KG=class extends p{constructor(t,e){super(t,e)}unary_casual_subexpr(){return this.getRuleContext(0,VG)}json_api_expr(){return this.getRuleContext(0,nF)}get ruleIndex(){return uG.RULE_unary_subexpr}accept(t){return t.visitUnary_subexpr?t.visitUnary_subexpr(this):t.visitChildren(this)}},QG=class extends p{constructor(t,e){super(t,e)}in_unary_casual_subexpr(){return this.getRuleContext(0,XG)}json_api_expr(){return this.getRuleContext(0,nF)}get ruleIndex(){return uG.RULE_in_unary_subexpr}accept(t){return t.visitIn_unary_subexpr?t.visitIn_unary_subexpr(this):t.visitChildren(this)}},JG=class extends p{constructor(t,e){super(t,e)}LBRACE_SQUARE(){return this.getToken(uG.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(uG.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,CF)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_list_literal}accept(t){return t.visitList_literal?t.visitList_literal(this):t.visitChildren(this)}},ZG=class extends p{constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}COLON(t){return void 0===t?this.getTokens(uG.COLON):this.getToken(uG.COLON,t)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_expr_dict_list}accept(t){return t.visitExpr_dict_list?t.visitExpr_dict_list(this):t.visitChildren(this)}},qG=class extends p{constructor(t,e){super(t,e)}LBRACE_CURLY(){return this.getToken(uG.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(uG.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,ZG)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_dict_literal}accept(t){return t.visitDict_literal?t.visitDict_literal(this):t.visitChildren(this)}},jG=class extends p{constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}COLON(t){return void 0===t?this.getTokens(uG.COLON):this.getToken(uG.COLON,t)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_expr_struct_list}accept(t){return t.visitExpr_struct_list?t.visitExpr_struct_list(this):t.visitChildren(this)}},zG=class extends p{constructor(t,e){super(t,e)}STRUCT_OPEN(){return this.getToken(uG.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(uG.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,jG)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_struct_literal}accept(t){return t.visitStruct_literal?t.visitStruct_literal(this):t.visitChildren(this)}},$G=class extends p{constructor(t,e){super(t,e)}literal_value(){return this.getRuleContext(0,vF)}bind_parameter(){return this.getRuleContext(0,BF)}lambda(){return this.getRuleContext(0,rF)}cast_expr(){return this.getRuleContext(0,eF)}exists_expr(){return this.getRuleContext(0,aF)}case_expr(){return this.getRuleContext(0,iF)}an_id_or_type(){return this.getRuleContext(0,rw)}NAMESPACE(){return this.getToken(uG.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,uw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,lv)}bitcast_expr(){return this.getRuleContext(0,sF)}list_literal(){return this.getRuleContext(0,JG)}dict_literal(){return this.getRuleContext(0,qG)}struct_literal(){return this.getRuleContext(0,zG)}get ruleIndex(){return uG.RULE_atom_expr}accept(t){return t.visitAtom_expr?t.visitAtom_expr(this):t.visitChildren(this)}},tF=class extends p{constructor(t,e){super(t,e)}literal_value(){return this.getRuleContext(0,vF)}bind_parameter(){return this.getRuleContext(0,BF)}lambda(){return this.getRuleContext(0,rF)}cast_expr(){return this.getRuleContext(0,eF)}case_expr(){return this.getRuleContext(0,iF)}an_id_or_type(){return this.getRuleContext(0,rw)}NAMESPACE(){return this.getToken(uG.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,uw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mv)}RPAREN(){return this.getToken(uG.RPAREN,0)}value_constructor(){return this.getRuleContext(0,lv)}bitcast_expr(){return this.getRuleContext(0,sF)}list_literal(){return this.getRuleContext(0,JG)}dict_literal(){return this.getRuleContext(0,qG)}struct_literal(){return this.getRuleContext(0,zG)}get ruleIndex(){return uG.RULE_in_atom_expr}accept(t){return t.visitIn_atom_expr?t.visitIn_atom_expr(this):t.visitChildren(this)}},eF=class extends p{constructor(t,e){super(t,e)}CAST(){return this.getToken(uG.CAST,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(){return this.getRuleContext(0,UG)}AS(){return this.getToken(uG.AS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_cast_expr}accept(t){return t.visitCast_expr?t.visitCast_expr(this):t.visitChildren(this)}},sF=class extends p{constructor(t,e){super(t,e)}BITCAST(){return this.getToken(uG.BITCAST,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(){return this.getRuleContext(0,UG)}AS(){return this.getToken(uG.AS,0)}type_name_simple(){return this.getRuleContext(0,WF)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_bitcast_expr}accept(t){return t.visitBitcast_expr?t.visitBitcast_expr(this):t.visitChildren(this)}},aF=class extends p{constructor(t,e){super(t,e)}EXISTS(){return this.getToken(uG.EXISTS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}select_stmt(){return this.getRuleContext(0,mv)}values_stmt(){return this.getRuleContext(0,bB)}get ruleIndex(){return uG.RULE_exists_expr}accept(t){return t.visitExists_expr?t.visitExists_expr(this):t.visitChildren(this)}},iF=class extends p{constructor(t,e){super(t,e)}CASE(){return this.getToken(uG.CASE,0)}END(){return this.getToken(uG.END,0)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}when_expr(t){return void 0===t?this.getRuleContexts(FF):this.getRuleContext(t,FF)}ELSE(){return this.getToken(uG.ELSE,0)}get ruleIndex(){return uG.RULE_case_expr}accept(t){return t.visitCase_expr?t.visitCase_expr(this):t.visitChildren(this)}},rF=class extends p{constructor(t,e){super(t,e)}smart_parenthesis(){return this.getRuleContext(0,LF)}ARROW(){return this.getToken(uG.ARROW,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(){return this.getRuleContext(0,UG)}RPAREN(){return this.getToken(uG.RPAREN,0)}LBRACE_CURLY(){return this.getToken(uG.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,_G)}RBRACE_CURLY(){return this.getToken(uG.RBRACE_CURLY,0)}get ruleIndex(){return uG.RULE_lambda}accept(t){return t.visitLambda?t.visitLambda(this):t.visitChildren(this)}},cF=class extends p{constructor(t,e){super(t,e)}in_unary_subexpr(){return this.getRuleContext(0,QG)}get ruleIndex(){return uG.RULE_in_expr}accept(t){return t.visitIn_expr?t.visitIn_expr(this):t.visitChildren(this)}},nF=class extends p{constructor(t,e){super(t,e)}json_value(){return this.getRuleContext(0,SF)}json_exists(){return this.getRuleContext(0,OF)}json_query(){return this.getRuleContext(0,NF)}get ruleIndex(){return uG.RULE_json_api_expr}accept(t){return t.visitJson_api_expr?t.visitJson_api_expr(this):t.visitChildren(this)}},hF=class extends p{constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_jsonpath_spec}accept(t){return t.visitJsonpath_spec?t.visitJsonpath_spec(this):t.visitChildren(this)}},EF=class extends p{constructor(t,e){super(t,e)}id_expr(){return this.getRuleContext(0,jY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_json_variable_name}accept(t){return t.visitJson_variable_name?t.visitJson_variable_name(this):t.visitChildren(this)}},TF=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}AS(){return this.getToken(uG.AS,0)}json_variable_name(){return this.getRuleContext(0,EF)}get ruleIndex(){return uG.RULE_json_variable}accept(t){return t.visitJson_variable?t.visitJson_variable(this):t.visitChildren(this)}},oF=class extends p{constructor(t,e){super(t,e)}json_variable(t){return void 0===t?this.getRuleContexts(TF):this.getRuleContext(t,TF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_json_variables}accept(t){return t.visitJson_variables?t.visitJson_variables(this):t.visitChildren(this)}},RF=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}COMMA(){return this.getToken(uG.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,hF)}PASSING(){return this.getToken(uG.PASSING,0)}json_variables(){return this.getRuleContext(0,oF)}get ruleIndex(){return uG.RULE_json_common_args}accept(t){return t.visitJson_common_args?t.visitJson_common_args(this):t.visitChildren(this)}},AF=class extends p{constructor(t,e){super(t,e)}ERROR(){return this.getToken(uG.ERROR,0)}NULL(){return this.getToken(uG.NULL,0)}DEFAULT(){return this.getToken(uG.DEFAULT,0)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_json_case_handler}accept(t){return t.visitJson_case_handler?t.visitJson_case_handler(this):t.visitChildren(this)}},SF=class extends p{constructor(t,e){super(t,e)}JSON_VALUE(){return this.getToken(uG.JSON_VALUE,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}json_common_args(){return this.getRuleContext(0,RF)}RPAREN(){return this.getToken(uG.RPAREN,0)}RETURNING(){return this.getToken(uG.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,WF)}json_case_handler(t){return void 0===t?this.getRuleContexts(AF):this.getRuleContext(t,AF)}ON(t){return void 0===t?this.getTokens(uG.ON):this.getToken(uG.ON,t)}EMPTY(t){return void 0===t?this.getTokens(uG.EMPTY):this.getToken(uG.EMPTY,t)}ERROR(t){return void 0===t?this.getTokens(uG.ERROR):this.getToken(uG.ERROR,t)}get ruleIndex(){return uG.RULE_json_value}accept(t){return t.visitJson_value?t.visitJson_value(this):t.visitChildren(this)}},lF=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(uG.ON,0)}ERROR(t){return void 0===t?this.getTokens(uG.ERROR):this.getToken(uG.ERROR,t)}TRUE(){return this.getToken(uG.TRUE,0)}FALSE(){return this.getToken(uG.FALSE,0)}UNKNOWN(){return this.getToken(uG.UNKNOWN,0)}get ruleIndex(){return uG.RULE_json_exists_handler}accept(t){return t.visitJson_exists_handler?t.visitJson_exists_handler(this):t.visitChildren(this)}},OF=class extends p{constructor(t,e){super(t,e)}JSON_EXISTS(){return this.getToken(uG.JSON_EXISTS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}json_common_args(){return this.getRuleContext(0,RF)}RPAREN(){return this.getToken(uG.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,lF)}get ruleIndex(){return uG.RULE_json_exists}accept(t){return t.visitJson_exists?t.visitJson_exists(this):t.visitChildren(this)}},IF=class extends p{constructor(t,e){super(t,e)}WITHOUT(){return this.getToken(uG.WITHOUT,0)}ARRAY(){return this.getToken(uG.ARRAY,0)}WITH(){return this.getToken(uG.WITH,0)}CONDITIONAL(){return this.getToken(uG.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(uG.UNCONDITIONAL,0)}get ruleIndex(){return uG.RULE_json_query_wrapper}accept(t){return t.visitJson_query_wrapper?t.visitJson_query_wrapper(this):t.visitChildren(this)}},uF=class extends p{constructor(t,e){super(t,e)}ERROR(){return this.getToken(uG.ERROR,0)}NULL(){return this.getToken(uG.NULL,0)}EMPTY(){return this.getToken(uG.EMPTY,0)}ARRAY(){return this.getToken(uG.ARRAY,0)}OBJECT(){return this.getToken(uG.OBJECT,0)}get ruleIndex(){return uG.RULE_json_query_handler}accept(t){return t.visitJson_query_handler?t.visitJson_query_handler(this):t.visitChildren(this)}},NF=class extends p{constructor(t,e){super(t,e)}JSON_QUERY(){return this.getToken(uG.JSON_QUERY,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}json_common_args(){return this.getRuleContext(0,RF)}RPAREN(){return this.getToken(uG.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,IF)}WRAPPER(){return this.getToken(uG.WRAPPER,0)}json_query_handler(t){return void 0===t?this.getRuleContexts(uF):this.getRuleContext(t,uF)}ON(t){return void 0===t?this.getTokens(uG.ON):this.getToken(uG.ON,t)}EMPTY(){return this.getToken(uG.EMPTY,0)}ERROR(){return this.getToken(uG.ERROR,0)}get ruleIndex(){return uG.RULE_json_query}accept(t){return t.visitJson_query?t.visitJson_query(this):t.visitChildren(this)}},LF=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,gF)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_smart_parenthesis}accept(t){return t.visitSmart_parenthesis?t.visitSmart_parenthesis(this):t.visitChildren(this)}},CF=class extends p{constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_expr_list}accept(t){return t.visitExpr_list?t.visitExpr_list(this):t.visitChildren(this)}},_F=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_pure_column_list}accept(t){return t.visitPure_column_list?t.visitPure_column_list(this):t.visitChildren(this)}},PF=class extends p{constructor(t,e){super(t,e)}bind_parameter(){return this.getRuleContext(0,BF)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_pure_column_or_named}accept(t){return t.visitPure_column_or_named?t.visitPure_column_or_named(this):t.visitChildren(this)}},MF=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}pure_column_or_named(t){return void 0===t?this.getRuleContexts(PF):this.getRuleContext(t,PF)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_pure_column_or_named_list}accept(t){return t.visitPure_column_or_named_list?t.visitPure_column_or_named_list(this):t.visitChildren(this)}},dF=class extends p{constructor(t,e){super(t,e)}opt_id_prefix(){return this.getRuleContext(0,Ow)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_column_name}accept(t){return t.visitColumn_name?t.visitColumn_name(this):t.visitChildren(this)}},UF=class extends p{constructor(t,e){super(t,e)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}DOT(){return this.getToken(uG.DOT,0)}an_id_without(){return this.getRuleContext(0,ow)}get ruleIndex(){return uG.RULE_without_column_name}accept(t){return t.visitWithout_column_name?t.visitWithout_column_name(this):t.visitChildren(this)}},mF=class extends p{constructor(t,e){super(t,e)}column_name(t){return void 0===t?this.getRuleContexts(dF):this.getRuleContext(t,dF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_column_list}accept(t){return t.visitColumn_list?t.visitColumn_list(this):t.visitChildren(this)}},DF=class extends p{constructor(t,e){super(t,e)}without_column_name(t){return void 0===t?this.getRuleContexts(UF):this.getRuleContext(t,UF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_without_column_list}accept(t){return t.visitWithout_column_list?t.visitWithout_column_list(this):t.visitChildren(this)}},pF=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}AS(){return this.getToken(uG.AS,0)}an_id_or_type(){return this.getRuleContext(0,rw)}get ruleIndex(){return uG.RULE_named_expr}accept(t){return t.visitNamed_expr?t.visitNamed_expr(this):t.visitChildren(this)}},gF=class extends p{constructor(t,e){super(t,e)}named_expr(t){return void 0===t?this.getRuleContexts(pF):this.getRuleContext(t,pF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_named_expr_list}accept(t){return t.visitNamed_expr_list?t.visitNamed_expr_list(this):t.visitChildren(this)}},xF=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,kF)}opt_set_quantifier(){return this.getRuleContext(0,Bv)}named_expr_list(){return this.getRuleContext(0,gF)}ASTERISK(){return this.getToken(uG.ASTERISK,0)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_invoke_expr}accept(t){return t.visitInvoke_expr?t.visitInvoke_expr(this):t.visitChildren(this)}},kF=class extends p{constructor(t,e){super(t,e)}null_treatment(){return this.getRuleContext(0,MY)}filter_clause(){return this.getRuleContext(0,dY)}OVER(){return this.getToken(uG.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,UY)}get ruleIndex(){return uG.RULE_invoke_expr_tail}accept(t){return t.visitInvoke_expr_tail?t.visitInvoke_expr_tail(this):t.visitChildren(this)}},HF=class extends p{constructor(t,e){super(t,e)}invoke_expr(){return this.getRuleContext(0,xF)}an_id_expr(){return this.getRuleContext(0,nw)}bind_parameter(){return this.getRuleContext(0,BF)}an_id_or_type(t){return void 0===t?this.getRuleContexts(rw):this.getRuleContext(t,rw)}NAMESPACE(){return this.getToken(uG.NAMESPACE,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}FUNCTION(){return this.getToken(uG.FUNCTION,0)}get ruleIndex(){return uG.RULE_using_call_expr}accept(t){return t.visitUsing_call_expr?t.visitUsing_call_expr(this):t.visitChildren(this)}},GF=class extends p{constructor(t,e){super(t,e)}LBRACE_SQUARE(){return this.getToken(uG.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,UG)}RBRACE_SQUARE(){return this.getToken(uG.RBRACE_SQUARE,0)}get ruleIndex(){return uG.RULE_key_expr}accept(t){return t.visitKey_expr?t.visitKey_expr(this):t.visitChildren(this)}},FF=class extends p{constructor(t,e){super(t,e)}WHEN(){return this.getToken(uG.WHEN,0)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}THEN(){return this.getToken(uG.THEN,0)}get ruleIndex(){return uG.RULE_when_expr}accept(t){return t.visitWhen_expr?t.visitWhen_expr(this):t.visitChildren(this)}},vF=class extends p{constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,vw)}real(){return this.getRuleContext(0,Fw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}BLOB(){return this.getToken(uG.BLOB,0)}NULL(){return this.getToken(uG.NULL,0)}CURRENT_TIME(){return this.getToken(uG.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(uG.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(uG.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,Gw)}EMPTY_ACTION(){return this.getToken(uG.EMPTY_ACTION,0)}get ruleIndex(){return uG.RULE_literal_value}accept(t){return t.visitLiteral_value?t.visitLiteral_value(this):t.visitChildren(this)}},BF=class extends p{constructor(t,e){super(t,e)}DOLLAR(){return this.getToken(uG.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,rw)}TRUE(){return this.getToken(uG.TRUE,0)}FALSE(){return this.getToken(uG.FALSE,0)}get ruleIndex(){return uG.RULE_bind_parameter}accept(t){return t.visitBind_parameter?t.visitBind_parameter(this):t.visitChildren(this)}},yF=class extends p{constructor(t,e){super(t,e)}bind_parameter(){return this.getRuleContext(0,BF)}QUESTION(){return this.getToken(uG.QUESTION,0)}get ruleIndex(){return uG.RULE_opt_bind_parameter}accept(t){return t.visitOpt_bind_parameter?t.visitOpt_bind_parameter(this):t.visitChildren(this)}},fF=class extends p{constructor(t,e){super(t,e)}bind_parameter(t){return void 0===t?this.getRuleContexts(BF):this.getRuleContext(t,BF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_bind_parameter_list}accept(t){return t.visitBind_parameter_list?t.visitBind_parameter_list(this):t.visitChildren(this)}},YF=class extends p{constructor(t,e){super(t,e)}bind_parameter(t){return void 0===t?this.getRuleContexts(BF):this.getRuleContext(t,BF)}AS(){return this.getToken(uG.AS,0)}get ruleIndex(){return uG.RULE_named_bind_parameter}accept(t){return t.visitNamed_bind_parameter?t.visitNamed_bind_parameter(this):t.visitChildren(this)}},wF=class extends p{constructor(t,e){super(t,e)}named_bind_parameter(t){return void 0===t?this.getRuleContexts(YF):this.getRuleContext(t,YF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_named_bind_parameter_list}accept(t){return t.visitNamed_bind_parameter_list?t.visitNamed_bind_parameter_list(this):t.visitChildren(this)}},bF=class extends p{constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,vw)}real(){return this.getRuleContext(0,Fw)}PLUS(){return this.getToken(uG.PLUS,0)}MINUS(){return this.getToken(uG.MINUS,0)}get ruleIndex(){return uG.RULE_signed_number}accept(t){return t.visitSigned_number?t.visitSigned_number(this):t.visitChildren(this)}},WF=class extends p{constructor(t,e){super(t,e)}an_id_pure(){return this.getRuleContext(0,Aw)}get ruleIndex(){return uG.RULE_type_name_simple}accept(t){return t.visitType_name_simple?t.visitType_name_simple(this):t.visitChildren(this)}},VF=class extends p{constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,vw)}bind_parameter(){return this.getRuleContext(0,BF)}get ruleIndex(){return uG.RULE_integer_or_bind}accept(t){return t.visitInteger_or_bind?t.visitInteger_or_bind(this):t.visitChildren(this)}},XF=class extends p{constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,ZY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,BF)}get ruleIndex(){return uG.RULE_type_name_tag}accept(t){return t.visitType_name_tag?t.visitType_name_tag(this):t.visitChildren(this)}},KF=class extends p{constructor(t,e){super(t,e)}type_name_tag(){return this.getRuleContext(0,XF)}COLON(){return this.getToken(uG.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}get ruleIndex(){return uG.RULE_struct_arg}accept(t){return t.visitStruct_arg?t.visitStruct_arg(this):t.visitChildren(this)}},QF=class extends p{constructor(t,e){super(t,e)}type_name_tag(){return this.getRuleContext(0,XF)}type_name_or_bind(){return this.getRuleContext(0,Av)}NULL(){return this.getToken(uG.NULL,0)}NOT(){return this.getToken(uG.NOT,0)}AS(){return this.getToken(uG.AS,0)}get ruleIndex(){return uG.RULE_struct_arg_positional}accept(t){return t.visitStruct_arg_positional?t.visitStruct_arg_positional(this):t.visitChildren(this)}},JF=class extends p{constructor(t,e){super(t,e)}type_name_or_bind(){return this.getRuleContext(0,Av)}type_name_tag(){return this.getRuleContext(0,XF)}COLON(){return this.getToken(uG.COLON,0)}get ruleIndex(){return uG.RULE_variant_arg}accept(t){return t.visitVariant_arg?t.visitVariant_arg(this):t.visitChildren(this)}},ZF=class extends p{constructor(t,e){super(t,e)}variant_arg(){return this.getRuleContext(0,JF)}LBRACE_CURLY(){return this.getToken(uG.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(uG.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(uG.RBRACE_CURLY,0)}get ruleIndex(){return uG.RULE_callable_arg}accept(t){return t.visitCallable_arg?t.visitCallable_arg(this):t.visitChildren(this)}},qF=class extends p{constructor(t,e){super(t,e)}callable_arg(t){return void 0===t?this.getRuleContexts(ZF):this.getRuleContext(t,ZF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_callable_arg_list}accept(t){return t.visitCallable_arg_list?t.visitCallable_arg_list(this):t.visitChildren(this)}},jF=class extends p{constructor(t,e){super(t,e)}DECIMAL(){return this.getToken(uG.DECIMAL,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}integer_or_bind(t){return void 0===t?this.getRuleContexts(VF):this.getRuleContext(t,VF)}COMMA(){return this.getToken(uG.COMMA,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_type_name_decimal}accept(t){return t.visitType_name_decimal?t.visitType_name_decimal(this):t.visitChildren(this)}},zF=class extends p{constructor(t,e){super(t,e)}OPTIONAL(){return this.getToken(uG.OPTIONAL,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_optional}accept(t){return t.visitType_name_optional?t.visitType_name_optional(this):t.visitChildren(this)}},$F=class extends p{constructor(t,e){super(t,e)}TUPLE(){return this.getToken(uG.TUPLE,0)}LESS(){return this.getToken(uG.LESS,0)}GREATER(){return this.getToken(uG.GREATER,0)}NOT_EQUALS2(){return this.getToken(uG.NOT_EQUALS2,0)}type_name_or_bind(t){return void 0===t?this.getRuleContexts(Av):this.getRuleContext(t,Av)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_type_name_tuple}accept(t){return t.visitType_name_tuple?t.visitType_name_tuple(this):t.visitChildren(this)}},tv=class extends p{constructor(t,e){super(t,e)}STRUCT(){return this.getToken(uG.STRUCT,0)}LESS(){return this.getToken(uG.LESS,0)}GREATER(){return this.getToken(uG.GREATER,0)}NOT_EQUALS2(){return this.getToken(uG.NOT_EQUALS2,0)}struct_arg(t){return void 0===t?this.getRuleContexts(KF):this.getRuleContext(t,KF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_type_name_struct}accept(t){return t.visitType_name_struct?t.visitType_name_struct(this):t.visitChildren(this)}},ev=class extends p{constructor(t,e){super(t,e)}VARIANT(){return this.getToken(uG.VARIANT,0)}LESS(){return this.getToken(uG.LESS,0)}variant_arg(t){return void 0===t?this.getRuleContexts(JF):this.getRuleContext(t,JF)}GREATER(){return this.getToken(uG.GREATER,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_type_name_variant}accept(t){return t.visitType_name_variant?t.visitType_name_variant(this):t.visitChildren(this)}},sv=class extends p{constructor(t,e){super(t,e)}LIST(){return this.getToken(uG.LIST,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_list}accept(t){return t.visitType_name_list?t.visitType_name_list(this):t.visitChildren(this)}},av=class extends p{constructor(t,e){super(t,e)}STREAM(){return this.getToken(uG.STREAM,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_stream}accept(t){return t.visitType_name_stream?t.visitType_name_stream(this):t.visitChildren(this)}},iv=class extends p{constructor(t,e){super(t,e)}FLOW(){return this.getToken(uG.FLOW,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_flow}accept(t){return t.visitType_name_flow?t.visitType_name_flow(this):t.visitChildren(this)}},rv=class extends p{constructor(t,e){super(t,e)}DICT(){return this.getToken(uG.DICT,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(t){return void 0===t?this.getRuleContexts(Av):this.getRuleContext(t,Av)}COMMA(){return this.getToken(uG.COMMA,0)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_dict}accept(t){return t.visitType_name_dict?t.visitType_name_dict(this):t.visitChildren(this)}},cv=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_set}accept(t){return t.visitType_name_set?t.visitType_name_set(this):t.visitChildren(this)}},nv=class extends p{constructor(t,e){super(t,e)}ENUM(){return this.getToken(uG.ENUM,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_tag(t){return void 0===t?this.getRuleContexts(XF):this.getRuleContext(t,XF)}GREATER(){return this.getToken(uG.GREATER,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_type_name_enum}accept(t){return t.visitType_name_enum?t.visitType_name_enum(this):t.visitChildren(this)}},hv=class extends p{constructor(t,e){super(t,e)}RESOURCE(){return this.getToken(uG.RESOURCE,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_tag(){return this.getRuleContext(0,XF)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_resource}accept(t){return t.visitType_name_resource?t.visitType_name_resource(this):t.visitChildren(this)}},Ev=class extends p{constructor(t,e){super(t,e)}TAGGED(){return this.getToken(uG.TAGGED,0)}LESS(){return this.getToken(uG.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}COMMA(){return this.getToken(uG.COMMA,0)}type_name_tag(){return this.getRuleContext(0,XF)}GREATER(){return this.getToken(uG.GREATER,0)}get ruleIndex(){return uG.RULE_type_name_tagged}accept(t){return t.visitType_name_tagged?t.visitType_name_tagged(this):t.visitChildren(this)}},Tv=class extends p{constructor(t,e){super(t,e)}CALLABLE(){return this.getToken(uG.CALLABLE,0)}LESS(){return this.getToken(uG.LESS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}ARROW(){return this.getToken(uG.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,Av)}GREATER(){return this.getToken(uG.GREATER,0)}callable_arg_list(t){return void 0===t?this.getRuleContexts(qF):this.getRuleContext(t,qF)}COMMA(){return this.getToken(uG.COMMA,0)}LBRACE_SQUARE(){return this.getToken(uG.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(uG.RBRACE_SQUARE,0)}get ruleIndex(){return uG.RULE_type_name_callable}accept(t){return t.visitType_name_callable?t.visitType_name_callable(this):t.visitChildren(this)}},ov=class extends p{constructor(t,e){super(t,e)}type_name_optional(){return this.getRuleContext(0,zF)}type_name_tuple(){return this.getRuleContext(0,$F)}type_name_struct(){return this.getRuleContext(0,tv)}type_name_variant(){return this.getRuleContext(0,ev)}type_name_list(){return this.getRuleContext(0,sv)}type_name_stream(){return this.getRuleContext(0,av)}type_name_flow(){return this.getRuleContext(0,iv)}type_name_dict(){return this.getRuleContext(0,rv)}type_name_set(){return this.getRuleContext(0,cv)}type_name_enum(){return this.getRuleContext(0,nv)}type_name_resource(){return this.getRuleContext(0,hv)}type_name_tagged(){return this.getRuleContext(0,Ev)}type_name_callable(){return this.getRuleContext(0,Tv)}QUESTION(t){return void 0===t?this.getTokens(uG.QUESTION):this.getToken(uG.QUESTION,t)}get ruleIndex(){return uG.RULE_type_name_composite}accept(t){return t.visitType_name_composite?t.visitType_name_composite(this):t.visitChildren(this)}},Rv=class extends p{constructor(t,e){super(t,e)}type_name_composite(){return this.getRuleContext(0,ov)}type_name_decimal(){return this.getRuleContext(0,jF)}type_name_simple(){return this.getRuleContext(0,WF)}QUESTION(t){return void 0===t?this.getTokens(uG.QUESTION):this.getToken(uG.QUESTION,t)}get ruleIndex(){return uG.RULE_type_name}accept(t){return t.visitType_name?t.visitType_name(this):t.visitChildren(this)}},Av=class extends p{constructor(t,e){super(t,e)}type_name(){return this.getRuleContext(0,Rv)}bind_parameter(){return this.getRuleContext(0,BF)}get ruleIndex(){return uG.RULE_type_name_or_bind}accept(t){return t.visitType_name_or_bind?t.visitType_name_or_bind(this):t.visitChildren(this)}},Sv=class extends p{constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_value_constructor_literal}accept(t){return t.visitValue_constructor_literal?t.visitValue_constructor_literal(this):t.visitChildren(this)}},lv=class extends p{constructor(t,e){super(t,e)}VARIANT(){return this.getToken(uG.VARIANT,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}RPAREN(){return this.getToken(uG.RPAREN,0)}ENUM(){return this.getToken(uG.ENUM,0)}CALLABLE(){return this.getToken(uG.CALLABLE,0)}get ruleIndex(){return uG.RULE_value_constructor}accept(t){return t.visitValue_constructor?t.visitValue_constructor(this):t.visitChildren(this)}},Ov=class extends p{constructor(t,e){super(t,e)}DECLARE(){return this.getToken(uG.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,BF)}AS(){return this.getToken(uG.AS,0)}type_name(){return this.getRuleContext(0,Rv)}EQUALS(){return this.getToken(uG.EQUALS,0)}literal_value(){return this.getRuleContext(0,vF)}get ruleIndex(){return uG.RULE_declare_stmt}accept(t){return t.visitDeclare_stmt?t.visitDeclare_stmt(this):t.visitChildren(this)}},Iv=class extends p{constructor(t,e){super(t,e)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}DOT(t){return void 0===t?this.getTokens(uG.DOT):this.getToken(uG.DOT,t)}get ruleIndex(){return uG.RULE_module_path}accept(t){return t.visitModule_path?t.visitModule_path(this):t.visitChildren(this)}},uv=class extends p{constructor(t,e){super(t,e)}IMPORT(){return this.getToken(uG.IMPORT,0)}module_path(){return this.getRuleContext(0,Iv)}SYMBOLS(){return this.getToken(uG.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,wF)}get ruleIndex(){return uG.RULE_import_stmt}accept(t){return t.visitImport_stmt?t.visitImport_stmt(this):t.visitChildren(this)}},Nv=class extends p{constructor(t,e){super(t,e)}EXPORT(){return this.getToken(uG.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,fF)}get ruleIndex(){return uG.RULE_export_stmt}accept(t){return t.visitExport_stmt?t.visitExport_stmt(this):t.visitChildren(this)}},Lv=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,BF)}EMPTY_ACTION(){return this.getToken(uG.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,CF)}get ruleIndex(){return uG.RULE_call_action}accept(t){return t.visitCall_action?t.visitCall_action(this):t.visitChildren(this)}},Cv=class extends p{constructor(t,e){super(t,e)}BEGIN(){return this.getToken(uG.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Hf)}END(){return this.getToken(uG.END,0)}DO(){return this.getToken(uG.DO,0)}get ruleIndex(){return uG.RULE_inline_action}accept(t){return t.visitInline_action?t.visitInline_action(this):t.visitChildren(this)}},_v=class extends p{constructor(t,e){super(t,e)}DO(){return this.getToken(uG.DO,0)}call_action(){return this.getRuleContext(0,Lv)}inline_action(){return this.getRuleContext(0,Cv)}get ruleIndex(){return uG.RULE_do_stmt}accept(t){return t.visitDo_stmt?t.visitDo_stmt(this):t.visitChildren(this)}},Pv=class extends p{constructor(t,e){super(t,e)}PRAGMA(){return this.getToken(uG.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,Nw)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}pragma_value(t){return void 0===t?this.getRuleContexts(Mv):this.getRuleContext(t,Mv)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_pragma_stmt}accept(t){return t.visitPragma_stmt?t.visitPragma_stmt(this):t.visitChildren(this)}},Mv=class extends p{constructor(t,e){super(t,e)}signed_number(){return this.getRuleContext(0,bF)}id(){return this.getRuleContext(0,ZY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,Gw)}bind_parameter(){return this.getRuleContext(0,BF)}get ruleIndex(){return uG.RULE_pragma_value}accept(t){return t.visitPragma_value?t.visitPragma_value(this):t.visitChildren(this)}},dv=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}ASC(){return this.getToken(uG.ASC,0)}DESC(){return this.getToken(uG.DESC,0)}get ruleIndex(){return uG.RULE_sort_specification}accept(t){return t.visitSort_specification?t.visitSort_specification(this):t.visitChildren(this)}},Uv=class extends p{constructor(t,e){super(t,e)}sort_specification(t){return void 0===t?this.getRuleContexts(dv):this.getRuleContext(t,dv)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_sort_specification_list}accept(t){return t.visitSort_specification_list?t.visitSort_specification_list(this):t.visitChildren(this)}},mv=class extends p{constructor(t,e){super(t,e)}select_kind_parenthesis(t){return void 0===t?this.getRuleContexts(pv):this.getRuleContext(t,pv)}select_op(t){return void 0===t?this.getRuleContexts(gv):this.getRuleContext(t,gv)}get ruleIndex(){return uG.RULE_select_stmt}accept(t){return t.visitSelect_stmt?t.visitSelect_stmt(this):t.visitChildren(this)}},Dv=class extends p{constructor(t,e){super(t,e)}select_kind_partial(){return this.getRuleContext(0,xv)}select_op(t){return void 0===t?this.getRuleContexts(gv):this.getRuleContext(t,gv)}select_kind_parenthesis(t){return void 0===t?this.getRuleContexts(pv):this.getRuleContext(t,pv)}get ruleIndex(){return uG.RULE_select_unparenthesized_stmt}accept(t){return t.visitSelect_unparenthesized_stmt?t.visitSelect_unparenthesized_stmt(this):t.visitChildren(this)}},pv=class extends p{constructor(t,e){super(t,e)}select_kind_partial(){return this.getRuleContext(0,xv)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_select_kind_parenthesis}accept(t){return t.visitSelect_kind_parenthesis?t.visitSelect_kind_parenthesis(this):t.visitChildren(this)}},gv=class extends p{constructor(t,e){super(t,e)}UNION(){return this.getToken(uG.UNION,0)}ALL(){return this.getToken(uG.ALL,0)}INTERSECT(){return this.getToken(uG.INTERSECT,0)}EXCEPT(){return this.getToken(uG.EXCEPT,0)}get ruleIndex(){return uG.RULE_select_op}accept(t){return t.visitSelect_op?t.visitSelect_op(this):t.visitChildren(this)}},xv=class extends p{constructor(t,e){super(t,e)}select_kind(){return this.getRuleContext(0,kv)}LIMIT(){return this.getToken(uG.LIMIT,0)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}OFFSET(){return this.getToken(uG.OFFSET,0)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_select_kind_partial}accept(t){return t.visitSelect_kind_partial?t.visitSelect_kind_partial(this):t.visitChildren(this)}},kv=class extends p{constructor(t,e){super(t,e)}process_core(){return this.getRuleContext(0,Hv)}reduce_core(){return this.getRuleContext(0,vv)}select_core(){return this.getRuleContext(0,yv)}DISCARD(){return this.getToken(uG.DISCARD,0)}INTO(){return this.getToken(uG.INTO,0)}RESULT(){return this.getToken(uG.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,PF)}get ruleIndex(){return uG.RULE_select_kind}accept(t){return t.visitSelect_kind?t.visitSelect_kind(this):t.visitChildren(this)}},Hv=class extends p{constructor(t,e){super(t,e)}PROCESS(){return this.getToken(uG.PROCESS,0)}named_single_source(t){return void 0===t?this.getRuleContexts(gB):this.getRuleContext(t,gB)}STREAM(){return this.getToken(uG.STREAM,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}USING(){return this.getToken(uG.USING,0)}using_call_expr(){return this.getRuleContext(0,HF)}AS(){return this.getToken(uG.AS,0)}an_id(){return this.getRuleContext(0,iw)}WITH(){return this.getToken(uG.WITH,0)}external_call_settings(){return this.getRuleContext(0,Fv)}where_expr(){return this.getRuleContext(0,bw)}HAVING(){return this.getToken(uG.HAVING,0)}expr(){return this.getRuleContext(0,UG)}ASSUME(){return this.getToken(uG.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,SB)}get ruleIndex(){return uG.RULE_process_core}accept(t){return t.visitProcess_core?t.visitProcess_core(this):t.visitChildren(this)}},Gv=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_external_call_param}accept(t){return t.visitExternal_call_param?t.visitExternal_call_param(this):t.visitChildren(this)}},Fv=class extends p{constructor(t,e){super(t,e)}external_call_param(t){return void 0===t?this.getRuleContexts(Gv):this.getRuleContext(t,Gv)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_external_call_settings}accept(t){return t.visitExternal_call_settings?t.visitExternal_call_settings(this):t.visitChildren(this)}},vv=class extends p{constructor(t,e){super(t,e)}REDUCE(){return this.getToken(uG.REDUCE,0)}named_single_source(t){return void 0===t?this.getRuleContexts(gB):this.getRuleContext(t,gB)}ON(){return this.getToken(uG.ON,0)}column_list(){return this.getRuleContext(0,mF)}USING(){return this.getToken(uG.USING,0)}using_call_expr(){return this.getRuleContext(0,HF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}PRESORT(){return this.getToken(uG.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,Uv)}ALL(){return this.getToken(uG.ALL,0)}AS(){return this.getToken(uG.AS,0)}an_id(){return this.getRuleContext(0,iw)}where_expr(){return this.getRuleContext(0,bw)}HAVING(){return this.getToken(uG.HAVING,0)}expr(){return this.getRuleContext(0,UG)}ASSUME(){return this.getToken(uG.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,SB)}get ruleIndex(){return uG.RULE_reduce_core}accept(t){return t.visitReduce_core?t.visitReduce_core(this):t.visitChildren(this)}},Bv=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(uG.ALL,0)}DISTINCT(){return this.getToken(uG.DISTINCT,0)}get ruleIndex(){return uG.RULE_opt_set_quantifier}accept(t){return t.visitOpt_set_quantifier?t.visitOpt_set_quantifier(this):t.visitChildren(this)}},yv=class extends p{constructor(t,e){super(t,e)}SELECT(){return this.getToken(uG.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Bv)}result_column(t){return void 0===t?this.getRuleContexts(dB):this.getRuleContext(t,dB)}FROM(t){return void 0===t?this.getTokens(uG.FROM):this.getToken(uG.FROM,t)}join_source(t){return void 0===t?this.getRuleContexts(UB):this.getRuleContext(t,UB)}STREAM(){return this.getToken(uG.STREAM,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}WITHOUT(){return this.getToken(uG.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,DF)}where_expr(){return this.getRuleContext(0,bw)}group_by_clause(){return this.getRuleContext(0,OB)}HAVING(){return this.getToken(uG.HAVING,0)}expr(){return this.getRuleContext(0,UG)}window_clause(){return this.getRuleContext(0,DY)}ext_order_by_clause(){return this.getRuleContext(0,lB)}get ruleIndex(){return uG.RULE_select_core}accept(t){return t.visitSelect_core?t.visitSelect_core(this):t.visitChildren(this)}},fv=class extends p{constructor(t,e){super(t,e)}MATCH_RECOGNIZE(){return this.getToken(uG.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Xv)}RPAREN(){return this.getToken(uG.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,FY)}order_by_clause(){return this.getRuleContext(0,SB)}row_pattern_measures(){return this.getRuleContext(0,bv)}row_pattern_rows_per_match(){return this.getRuleContext(0,Yv)}get ruleIndex(){return uG.RULE_row_pattern_recognition_clause}accept(t){return t.visitRow_pattern_recognition_clause?t.visitRow_pattern_recognition_clause(this):t.visitChildren(this)}},Yv=class extends p{constructor(t,e){super(t,e)}ONE(){return this.getToken(uG.ONE,0)}ROW(){return this.getToken(uG.ROW,0)}PER(){return this.getToken(uG.PER,0)}MATCH(){return this.getToken(uG.MATCH,0)}ALL(){return this.getToken(uG.ALL,0)}ROWS(){return this.getToken(uG.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,wv)}get ruleIndex(){return uG.RULE_row_pattern_rows_per_match}accept(t){return t.visitRow_pattern_rows_per_match?t.visitRow_pattern_rows_per_match(this):t.visitChildren(this)}},wv=class extends p{constructor(t,e){super(t,e)}SHOW(){return this.getToken(uG.SHOW,0)}EMPTY(){return this.getToken(uG.EMPTY,0)}MATCHES(){return this.getToken(uG.MATCHES,0)}OMIT(){return this.getToken(uG.OMIT,0)}WITH(){return this.getToken(uG.WITH,0)}UNMATCHED(){return this.getToken(uG.UNMATCHED,0)}ROWS(){return this.getToken(uG.ROWS,0)}get ruleIndex(){return uG.RULE_row_pattern_empty_match_handling}accept(t){return t.visitRow_pattern_empty_match_handling?t.visitRow_pattern_empty_match_handling(this):t.visitChildren(this)}},bv=class extends p{constructor(t,e){super(t,e)}MEASURES(){return this.getToken(uG.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,Wv)}get ruleIndex(){return uG.RULE_row_pattern_measures}accept(t){return t.visitRow_pattern_measures?t.visitRow_pattern_measures(this):t.visitChildren(this)}},Wv=class extends p{constructor(t,e){super(t,e)}row_pattern_measure_definition(t){return void 0===t?this.getRuleContexts(Vv):this.getRuleContext(t,Vv)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_row_pattern_measure_list}accept(t){return t.visitRow_pattern_measure_list?t.visitRow_pattern_measure_list(this):t.visitChildren(this)}},Vv=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}AS(){return this.getToken(uG.AS,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_row_pattern_measure_definition}accept(t){return t.visitRow_pattern_measure_definition?t.visitRow_pattern_measure_definition(this):t.visitChildren(this)}},Xv=class extends p{constructor(t,e){super(t,e)}PATTERN(){return this.getToken(uG.PATTERN,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Zv)}RPAREN(){return this.getToken(uG.RPAREN,0)}DEFINE(){return this.getToken(uG.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,hB)}AFTER(){return this.getToken(uG.AFTER,0)}MATCH(){return this.getToken(uG.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Kv)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Jv)}row_pattern_subset_clause(){return this.getRuleContext(0,sB)}get ruleIndex(){return uG.RULE_row_pattern_common_syntax}accept(t){return t.visitRow_pattern_common_syntax?t.visitRow_pattern_common_syntax(this):t.visitChildren(this)}},Kv=class extends p{constructor(t,e){super(t,e)}SKIP_RULE(){return this.getToken(uG.SKIP_RULE,0)}TO(){return this.getToken(uG.TO,0)}NEXT(){return this.getToken(uG.NEXT,0)}ROW(){return this.getToken(uG.ROW,0)}PAST(){return this.getToken(uG.PAST,0)}LAST(){return this.getToken(uG.LAST,0)}FIRST(){return this.getToken(uG.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Qv)}get ruleIndex(){return uG.RULE_row_pattern_skip_to}accept(t){return t.visitRow_pattern_skip_to?t.visitRow_pattern_skip_to(this):t.visitChildren(this)}},Qv=class extends p{constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,AB)}get ruleIndex(){return uG.RULE_row_pattern_skip_to_variable_name}accept(t){return t.visitRow_pattern_skip_to_variable_name?t.visitRow_pattern_skip_to_variable_name(this):t.visitChildren(this)}},Jv=class extends p{constructor(t,e){super(t,e)}INITIAL(){return this.getToken(uG.INITIAL,0)}SEEK(){return this.getToken(uG.SEEK,0)}get ruleIndex(){return uG.RULE_row_pattern_initial_or_seek}accept(t){return t.visitRow_pattern_initial_or_seek?t.visitRow_pattern_initial_or_seek(this):t.visitChildren(this)}},Zv=class extends p{constructor(t,e){super(t,e)}row_pattern_term(t){return void 0===t?this.getRuleContexts(qv):this.getRuleContext(t,qv)}PIPE(t){return void 0===t?this.getTokens(uG.PIPE):this.getToken(uG.PIPE,t)}get ruleIndex(){return uG.RULE_row_pattern}accept(t){return t.visitRow_pattern?t.visitRow_pattern(this):t.visitChildren(this)}},qv=class extends p{constructor(t,e){super(t,e)}row_pattern_factor(t){return void 0===t?this.getRuleContexts(jv):this.getRuleContext(t,jv)}get ruleIndex(){return uG.RULE_row_pattern_term}accept(t){return t.visitRow_pattern_term?t.visitRow_pattern_term(this):t.visitChildren(this)}},jv=class extends p{constructor(t,e){super(t,e)}row_pattern_primary(){return this.getRuleContext(0,$v)}row_pattern_quantifier(){return this.getRuleContext(0,zv)}get ruleIndex(){return uG.RULE_row_pattern_factor}accept(t){return t.visitRow_pattern_factor?t.visitRow_pattern_factor(this):t.visitChildren(this)}},zv=class extends p{constructor(t,e){super(t,e)}ASTERISK(){return this.getToken(uG.ASTERISK,0)}QUESTION(t){return void 0===t?this.getTokens(uG.QUESTION):this.getToken(uG.QUESTION,t)}PLUS(){return this.getToken(uG.PLUS,0)}LBRACE_CURLY(){return this.getToken(uG.LBRACE_CURLY,0)}COMMA(){return this.getToken(uG.COMMA,0)}RBRACE_CURLY(){return this.getToken(uG.RBRACE_CURLY,0)}integer(t){return void 0===t?this.getRuleContexts(vw):this.getRuleContext(t,vw)}get ruleIndex(){return uG.RULE_row_pattern_quantifier}accept(t){return t.visitRow_pattern_quantifier?t.visitRow_pattern_quantifier(this):t.visitChildren(this)}},$v=class extends p{constructor(t,e){super(t,e)}row_pattern_primary_variable_name(){return this.getRuleContext(0,tB)}DOLLAR(){return this.getToken(uG.DOLLAR,0)}CARET(){return this.getToken(uG.CARET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Zv)}LBRACE_CURLY(){return this.getToken(uG.LBRACE_CURLY,0)}MINUS(t){return void 0===t?this.getTokens(uG.MINUS):this.getToken(uG.MINUS,t)}RBRACE_CURLY(){return this.getToken(uG.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,eB)}get ruleIndex(){return uG.RULE_row_pattern_primary}accept(t){return t.visitRow_pattern_primary?t.visitRow_pattern_primary(this):t.visitChildren(this)}},tB=class extends p{constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,AB)}get ruleIndex(){return uG.RULE_row_pattern_primary_variable_name}accept(t){return t.visitRow_pattern_primary_variable_name?t.visitRow_pattern_primary_variable_name(this):t.visitChildren(this)}},eB=class extends p{constructor(t,e){super(t,e)}PERMUTE(){return this.getToken(uG.PERMUTE,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}row_pattern(t){return void 0===t?this.getRuleContexts(Zv):this.getRuleContext(t,Zv)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_row_pattern_permute}accept(t){return t.visitRow_pattern_permute?t.visitRow_pattern_permute(this):t.visitChildren(this)}},sB=class extends p{constructor(t,e){super(t,e)}SUBSET(){return this.getToken(uG.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,aB)}get ruleIndex(){return uG.RULE_row_pattern_subset_clause}accept(t){return t.visitRow_pattern_subset_clause?t.visitRow_pattern_subset_clause(this):t.visitChildren(this)}},aB=class extends p{constructor(t,e){super(t,e)}row_pattern_subset_item(t){return void 0===t?this.getRuleContexts(iB):this.getRuleContext(t,iB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_row_pattern_subset_list}accept(t){return t.visitRow_pattern_subset_list?t.visitRow_pattern_subset_list(this):t.visitChildren(this)}},iB=class extends p{constructor(t,e){super(t,e)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,rB)}EQUALS(){return this.getToken(uG.EQUALS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,cB)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_row_pattern_subset_item}accept(t){return t.visitRow_pattern_subset_item?t.visitRow_pattern_subset_item(this):t.visitChildren(this)}},rB=class extends p{constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,AB)}get ruleIndex(){return uG.RULE_row_pattern_subset_item_variable_name}accept(t){return t.visitRow_pattern_subset_item_variable_name?t.visitRow_pattern_subset_item_variable_name(this):t.visitChildren(this)}},cB=class extends p{constructor(t,e){super(t,e)}row_pattern_subset_rhs_variable_name(t){return void 0===t?this.getRuleContexts(nB):this.getRuleContext(t,nB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_row_pattern_subset_rhs}accept(t){return t.visitRow_pattern_subset_rhs?t.visitRow_pattern_subset_rhs(this):t.visitChildren(this)}},nB=class extends p{constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,AB)}get ruleIndex(){return uG.RULE_row_pattern_subset_rhs_variable_name}accept(t){return t.visitRow_pattern_subset_rhs_variable_name?t.visitRow_pattern_subset_rhs_variable_name(this):t.visitChildren(this)}},hB=class extends p{constructor(t,e){super(t,e)}row_pattern_definition(t){return void 0===t?this.getRuleContexts(EB):this.getRuleContext(t,EB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_row_pattern_definition_list}accept(t){return t.visitRow_pattern_definition_list?t.visitRow_pattern_definition_list(this):t.visitChildren(this)}},EB=class extends p{constructor(t,e){super(t,e)}row_pattern_definition_variable_name(){return this.getRuleContext(0,TB)}AS(){return this.getToken(uG.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,oB)}get ruleIndex(){return uG.RULE_row_pattern_definition}accept(t){return t.visitRow_pattern_definition?t.visitRow_pattern_definition(this):t.visitChildren(this)}},TB=class extends p{constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,AB)}get ruleIndex(){return uG.RULE_row_pattern_definition_variable_name}accept(t){return t.visitRow_pattern_definition_variable_name?t.visitRow_pattern_definition_variable_name(this):t.visitChildren(this)}},oB=class extends p{constructor(t,e){super(t,e)}search_condition(){return this.getRuleContext(0,RB)}get ruleIndex(){return uG.RULE_row_pattern_definition_search_condition}accept(t){return t.visitRow_pattern_definition_search_condition?t.visitRow_pattern_definition_search_condition(this):t.visitChildren(this)}},RB=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_search_condition}accept(t){return t.visitSearch_condition?t.visitSearch_condition(this):t.visitChildren(this)}},AB=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}get ruleIndex(){return uG.RULE_row_pattern_variable_name}accept(t){return t.visitRow_pattern_variable_name?t.visitRow_pattern_variable_name(this):t.visitChildren(this)}},SB=class extends p{constructor(t,e){super(t,e)}ORDER(){return this.getToken(uG.ORDER,0)}BY(){return this.getToken(uG.BY,0)}sort_specification_list(){return this.getRuleContext(0,Uv)}get ruleIndex(){return uG.RULE_order_by_clause}accept(t){return t.visitOrder_by_clause?t.visitOrder_by_clause(this):t.visitChildren(this)}},lB=class extends p{constructor(t,e){super(t,e)}order_by_clause(){return this.getRuleContext(0,SB)}ASSUME(){return this.getToken(uG.ASSUME,0)}get ruleIndex(){return uG.RULE_ext_order_by_clause}accept(t){return t.visitExt_order_by_clause?t.visitExt_order_by_clause(this):t.visitChildren(this)}},OB=class extends p{constructor(t,e){super(t,e)}GROUP(){return this.getToken(uG.GROUP,0)}BY(){return this.getToken(uG.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Bv)}grouping_element_list(){return this.getRuleContext(0,IB)}COMPACT(){return this.getToken(uG.COMPACT,0)}WITH(){return this.getToken(uG.WITH,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_group_by_clause}accept(t){return t.visitGroup_by_clause?t.visitGroup_by_clause(this):t.visitChildren(this)}},IB=class extends p{constructor(t,e){super(t,e)}grouping_element(t){return void 0===t?this.getRuleContexts(uB):this.getRuleContext(t,uB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_grouping_element_list}accept(t){return t.visitGrouping_element_list?t.visitGrouping_element_list(this):t.visitChildren(this)}},uB=class extends p{constructor(t,e){super(t,e)}ordinary_grouping_set(){return this.getRuleContext(0,NB)}rollup_list(){return this.getRuleContext(0,CB)}cube_list(){return this.getRuleContext(0,_B)}grouping_sets_specification(){return this.getRuleContext(0,PB)}hopping_window_specification(){return this.getRuleContext(0,MB)}get ruleIndex(){return uG.RULE_grouping_element}accept(t){return t.visitGrouping_element?t.visitGrouping_element(this):t.visitChildren(this)}},NB=class extends p{constructor(t,e){super(t,e)}named_expr(){return this.getRuleContext(0,pF)}get ruleIndex(){return uG.RULE_ordinary_grouping_set}accept(t){return t.visitOrdinary_grouping_set?t.visitOrdinary_grouping_set(this):t.visitChildren(this)}},LB=class extends p{constructor(t,e){super(t,e)}ordinary_grouping_set(t){return void 0===t?this.getRuleContexts(NB):this.getRuleContext(t,NB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_ordinary_grouping_set_list}accept(t){return t.visitOrdinary_grouping_set_list?t.visitOrdinary_grouping_set_list(this):t.visitChildren(this)}},CB=class extends p{constructor(t,e){super(t,e)}ROLLUP(){return this.getToken(uG.ROLLUP,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,LB)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_rollup_list}accept(t){return t.visitRollup_list?t.visitRollup_list(this):t.visitChildren(this)}},_B=class extends p{constructor(t,e){super(t,e)}CUBE(){return this.getToken(uG.CUBE,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,LB)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_cube_list}accept(t){return t.visitCube_list?t.visitCube_list(this):t.visitChildren(this)}},PB=class extends p{constructor(t,e){super(t,e)}GROUPING(){return this.getToken(uG.GROUPING,0)}SETS(){return this.getToken(uG.SETS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,IB)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_grouping_sets_specification}accept(t){return t.visitGrouping_sets_specification?t.visitGrouping_sets_specification(this):t.visitChildren(this)}},MB=class extends p{constructor(t,e){super(t,e)}HOP(){return this.getToken(uG.HOP,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(t){return void 0===t?this.getRuleContexts(UG):this.getRuleContext(t,UG)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_hopping_window_specification}accept(t){return t.visitHopping_window_specification?t.visitHopping_window_specification(this):t.visitChildren(this)}},dB=class extends p{constructor(t,e){super(t,e)}opt_id_prefix(){return this.getRuleContext(0,Ow)}ASTERISK(){return this.getToken(uG.ASTERISK,0)}expr(){return this.getRuleContext(0,UG)}an_id_as_compat(){return this.getRuleContext(0,Sw)}AS(){return this.getToken(uG.AS,0)}an_id_or_type(){return this.getRuleContext(0,rw)}get ruleIndex(){return uG.RULE_result_column}accept(t){return t.visitResult_column?t.visitResult_column(this):t.visitChildren(this)}},UB=class extends p{constructor(t,e){super(t,e)}flatten_source(t){return void 0===t?this.getRuleContexts(pB):this.getRuleContext(t,pB)}ANY(t){return void 0===t?this.getTokens(uG.ANY):this.getToken(uG.ANY,t)}join_op(t){return void 0===t?this.getRuleContexts(vB):this.getRuleContext(t,vB)}join_constraint(t){return void 0===t?this.getRuleContexts(BB):this.getRuleContext(t,BB)}get ruleIndex(){return uG.RULE_join_source}accept(t){return t.visitJoin_source?t.visitJoin_source(this):t.visitChildren(this)}},mB=class extends p{constructor(t,e){super(t,e)}column_name(){return this.getRuleContext(0,dF)}AS(){return this.getToken(uG.AS,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_named_column}accept(t){return t.visitNamed_column?t.visitNamed_column(this):t.visitChildren(this)}},DB=class extends p{constructor(t,e){super(t,e)}named_column(){return this.getRuleContext(0,mB)}LPAREN(){return this.getToken(uG.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,gF)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(){return this.getToken(uG.COMMA,0)}get ruleIndex(){return uG.RULE_flatten_by_arg}accept(t){return t.visitFlatten_by_arg?t.visitFlatten_by_arg(this):t.visitChildren(this)}},pB=class extends p{constructor(t,e){super(t,e)}named_single_source(){return this.getRuleContext(0,gB)}FLATTEN(){return this.getToken(uG.FLATTEN,0)}BY(){return this.getToken(uG.BY,0)}flatten_by_arg(){return this.getRuleContext(0,DB)}COLUMNS(){return this.getToken(uG.COLUMNS,0)}OPTIONAL(){return this.getToken(uG.OPTIONAL,0)}LIST(){return this.getToken(uG.LIST,0)}DICT(){return this.getToken(uG.DICT,0)}get ruleIndex(){return uG.RULE_flatten_source}accept(t){return t.visitFlatten_source?t.visitFlatten_source(this):t.visitChildren(this)}},gB=class extends p{constructor(t,e){super(t,e)}single_source(){return this.getRuleContext(0,xB)}row_pattern_recognition_clause(){return this.getRuleContext(0,fv)}sample_clause(){return this.getRuleContext(0,kB)}tablesample_clause(){return this.getRuleContext(0,HB)}an_id_as_compat(){return this.getRuleContext(0,Sw)}pure_column_list(){return this.getRuleContext(0,_F)}AS(){return this.getToken(uG.AS,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_named_single_source}accept(t){return t.visitNamed_single_source?t.visitNamed_single_source(this):t.visitChildren(this)}},xB=class extends p{constructor(t,e){super(t,e)}table_ref(){return this.getRuleContext(0,vf)}LPAREN(){return this.getToken(uG.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mv)}RPAREN(){return this.getToken(uG.RPAREN,0)}values_stmt(){return this.getRuleContext(0,bB)}get ruleIndex(){return uG.RULE_single_source}accept(t){return t.visitSingle_source?t.visitSingle_source(this):t.visitChildren(this)}},kB=class extends p{constructor(t,e){super(t,e)}SAMPLE(){return this.getToken(uG.SAMPLE,0)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_sample_clause}accept(t){return t.visitSample_clause?t.visitSample_clause(this):t.visitChildren(this)}},HB=class extends p{constructor(t,e){super(t,e)}TABLESAMPLE(){return this.getToken(uG.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,GB)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(){return this.getRuleContext(0,UG)}RPAREN(){return this.getToken(uG.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,FB)}get ruleIndex(){return uG.RULE_tablesample_clause}accept(t){return t.visitTablesample_clause?t.visitTablesample_clause(this):t.visitChildren(this)}},GB=class extends p{constructor(t,e){super(t,e)}BERNOULLI(){return this.getToken(uG.BERNOULLI,0)}SYSTEM(){return this.getToken(uG.SYSTEM,0)}get ruleIndex(){return uG.RULE_sampling_mode}accept(t){return t.visitSampling_mode?t.visitSampling_mode(this):t.visitChildren(this)}},FB=class extends p{constructor(t,e){super(t,e)}REPEATABLE(){return this.getToken(uG.REPEATABLE,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr(){return this.getRuleContext(0,UG)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_repeatable_clause}accept(t){return t.visitRepeatable_clause?t.visitRepeatable_clause(this):t.visitChildren(this)}},vB=class extends p{constructor(t,e){super(t,e)}COMMA(){return this.getToken(uG.COMMA,0)}JOIN(){return this.getToken(uG.JOIN,0)}INNER(){return this.getToken(uG.INNER,0)}CROSS(){return this.getToken(uG.CROSS,0)}NATURAL(){return this.getToken(uG.NATURAL,0)}LEFT(){return this.getToken(uG.LEFT,0)}RIGHT(){return this.getToken(uG.RIGHT,0)}EXCLUSION(){return this.getToken(uG.EXCLUSION,0)}FULL(){return this.getToken(uG.FULL,0)}OUTER(){return this.getToken(uG.OUTER,0)}ONLY(){return this.getToken(uG.ONLY,0)}SEMI(){return this.getToken(uG.SEMI,0)}get ruleIndex(){return uG.RULE_join_op}accept(t){return t.visitJoin_op?t.visitJoin_op(this):t.visitChildren(this)}},BB=class extends p{constructor(t,e){super(t,e)}ON(){return this.getToken(uG.ON,0)}expr(){return this.getRuleContext(0,UG)}USING(){return this.getToken(uG.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,MF)}get ruleIndex(){return uG.RULE_join_constraint}accept(t){return t.visitJoin_constraint?t.visitJoin_constraint(this):t.visitChildren(this)}},yB=class extends p{constructor(t,e){super(t,e)}RETURNING(){return this.getToken(uG.RETURNING,0)}ASTERISK(){return this.getToken(uG.ASTERISK,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_returning_columns_list}accept(t){return t.visitReturning_columns_list?t.visitReturning_columns_list(this):t.visitChildren(this)}},fB=class extends p{constructor(t,e){super(t,e)}INTO(){return this.getToken(uG.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,Vf)}into_values_source(){return this.getRuleContext(0,wB)}INSERT(){return this.getToken(uG.INSERT,0)}OR(){return this.getToken(uG.OR,0)}ABORT(){return this.getToken(uG.ABORT,0)}REVERT(){return this.getToken(uG.REVERT,0)}IGNORE(){return this.getToken(uG.IGNORE,0)}UPSERT(){return this.getToken(uG.UPSERT,0)}REPLACE(){return this.getToken(uG.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,yB)}get ruleIndex(){return uG.RULE_into_table_stmt}accept(t){return t.visitInto_table_stmt?t.visitInto_table_stmt(this):t.visitChildren(this)}},YB=class extends p{constructor(t,e){super(t,e)}INTO(){return this.getToken(uG.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,Vf)}into_values_source(){return this.getRuleContext(0,wB)}INSERT(){return this.getToken(uG.INSERT,0)}OR(){return this.getToken(uG.OR,0)}ABORT(){return this.getToken(uG.ABORT,0)}REVERT(){return this.getToken(uG.REVERT,0)}IGNORE(){return this.getToken(uG.IGNORE,0)}REPLACE(){return this.getToken(uG.REPLACE,0)}get ruleIndex(){return uG.RULE_into_table_stmt_yq}accept(t){return t.visitInto_table_stmt_yq?t.visitInto_table_stmt_yq(this):t.visitChildren(this)}},wB=class extends p{constructor(t,e){super(t,e)}values_source(){return this.getRuleContext(0,WB)}pure_column_list(){return this.getRuleContext(0,_F)}DEFAULT(){return this.getToken(uG.DEFAULT,0)}VALUES(){return this.getToken(uG.VALUES,0)}get ruleIndex(){return uG.RULE_into_values_source}accept(t){return t.visitInto_values_source?t.visitInto_values_source(this):t.visitChildren(this)}},bB=class extends p{constructor(t,e){super(t,e)}VALUES(){return this.getToken(uG.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,VB)}get ruleIndex(){return uG.RULE_values_stmt}accept(t){return t.visitValues_stmt?t.visitValues_stmt(this):t.visitChildren(this)}},WB=class extends p{constructor(t,e){super(t,e)}values_stmt(){return this.getRuleContext(0,bB)}select_stmt(){return this.getRuleContext(0,mv)}get ruleIndex(){return uG.RULE_values_source}accept(t){return t.visitValues_source?t.visitValues_source(this):t.visitChildren(this)}},VB=class extends p{constructor(t,e){super(t,e)}values_source_row(t){return void 0===t?this.getRuleContexts(XB):this.getRuleContext(t,XB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_values_source_row_list}accept(t){return t.visitValues_source_row_list?t.visitValues_source_row_list(this):t.visitChildren(this)}},XB=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}expr_list(){return this.getRuleContext(0,CF)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_values_source_row}accept(t){return t.visitValues_source_row?t.visitValues_source_row(this):t.visitChildren(this)}},KB=class extends p{constructor(t,e){super(t,e)}expr_list(){return this.getRuleContext(0,CF)}select_stmt(){return this.getRuleContext(0,mv)}get ruleIndex(){return uG.RULE_simple_values_source}accept(t){return t.visitSimple_values_source?t.visitSimple_values_source(this):t.visitChildren(this)}},QB=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}DATA(){return this.getToken(uG.DATA,0)}SOURCE(){return this.getToken(uG.SOURCE,0)}object_ref(){return this.getRuleContext(0,wf)}with_table_settings(){return this.getRuleContext(0,Oy)}OR(){return this.getToken(uG.OR,0)}REPLACE(){return this.getToken(uG.REPLACE,0)}IF(){return this.getToken(uG.IF,0)}NOT(){return this.getToken(uG.NOT,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}get ruleIndex(){return uG.RULE_create_external_data_source_stmt}accept(t){return t.visitCreate_external_data_source_stmt?t.visitCreate_external_data_source_stmt(this):t.visitChildren(this)}},JB=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}DATA(){return this.getToken(uG.DATA,0)}SOURCE(){return this.getToken(uG.SOURCE,0)}object_ref(){return this.getRuleContext(0,wf)}alter_external_data_source_action(t){return void 0===t?this.getRuleContexts(ZB):this.getRuleContext(t,ZB)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_external_data_source_stmt}accept(t){return t.visitAlter_external_data_source_stmt?t.visitAlter_external_data_source_stmt(this):t.visitChildren(this)}},ZB=class extends p{constructor(t,e){super(t,e)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,xy)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,ky)}alter_table_reset_table_setting(){return this.getRuleContext(0,Hy)}get ruleIndex(){return uG.RULE_alter_external_data_source_action}accept(t){return t.visitAlter_external_data_source_action?t.visitAlter_external_data_source_action(this):t.visitChildren(this)}},qB=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}DATA(){return this.getToken(uG.DATA,0)}SOURCE(){return this.getToken(uG.SOURCE,0)}object_ref(){return this.getRuleContext(0,wf)}IF(){return this.getToken(uG.IF,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}get ruleIndex(){return uG.RULE_drop_external_data_source_stmt}accept(t){return t.visitDrop_external_data_source_stmt?t.visitDrop_external_data_source_stmt(this):t.visitChildren(this)}},jB=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}VIEW(){return this.getToken(uG.VIEW,0)}object_ref(){return this.getRuleContext(0,wf)}with_table_settings(){return this.getRuleContext(0,Oy)}AS(){return this.getToken(uG.AS,0)}select_stmt(){return this.getRuleContext(0,mv)}get ruleIndex(){return uG.RULE_create_view_stmt}accept(t){return t.visitCreate_view_stmt?t.visitCreate_view_stmt(this):t.visitChildren(this)}},zB=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}VIEW(){return this.getToken(uG.VIEW,0)}object_ref(){return this.getRuleContext(0,wf)}get ruleIndex(){return uG.RULE_drop_view_stmt}accept(t){return t.visitDrop_view_stmt?t.visitDrop_view_stmt(this):t.visitChildren(this)}},$B=class extends p{constructor(t,e){super(t,e)}UPSERT(){return this.getToken(uG.UPSERT,0)}OBJECT(){return this.getToken(uG.OBJECT,0)}object_ref(){return this.getRuleContext(0,wf)}LPAREN(){return this.getToken(uG.LPAREN,0)}TYPE(){return this.getToken(uG.TYPE,0)}object_type_ref(){return this.getRuleContext(0,oy)}RPAREN(){return this.getToken(uG.RPAREN,0)}create_object_features(){return this.getRuleContext(0,ey)}get ruleIndex(){return uG.RULE_upsert_object_stmt}accept(t){return t.visitUpsert_object_stmt?t.visitUpsert_object_stmt(this):t.visitChildren(this)}},ty=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}OBJECT(){return this.getToken(uG.OBJECT,0)}object_ref(){return this.getRuleContext(0,wf)}LPAREN(){return this.getToken(uG.LPAREN,0)}TYPE(){return this.getToken(uG.TYPE,0)}object_type_ref(){return this.getRuleContext(0,oy)}RPAREN(){return this.getToken(uG.RPAREN,0)}IF(){return this.getToken(uG.IF,0)}NOT(){return this.getToken(uG.NOT,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}create_object_features(){return this.getRuleContext(0,ey)}get ruleIndex(){return uG.RULE_create_object_stmt}accept(t){return t.visitCreate_object_stmt?t.visitCreate_object_stmt(this):t.visitChildren(this)}},ey=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(uG.WITH,0)}object_features(){return this.getRuleContext(0,Ty)}get ruleIndex(){return uG.RULE_create_object_features}accept(t){return t.visitCreate_object_features?t.visitCreate_object_features(this):t.visitChildren(this)}},sy=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}OBJECT(){return this.getToken(uG.OBJECT,0)}object_ref(){return this.getRuleContext(0,wf)}LPAREN(){return this.getToken(uG.LPAREN,0)}TYPE(){return this.getToken(uG.TYPE,0)}object_type_ref(){return this.getRuleContext(0,oy)}RPAREN(){return this.getToken(uG.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,ay)}get ruleIndex(){return uG.RULE_alter_object_stmt}accept(t){return t.visitAlter_object_stmt?t.visitAlter_object_stmt(this):t.visitChildren(this)}},ay=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}object_features(){return this.getRuleContext(0,Ty)}get ruleIndex(){return uG.RULE_alter_object_features}accept(t){return t.visitAlter_object_features?t.visitAlter_object_features(this):t.visitChildren(this)}},iy=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}OBJECT(){return this.getToken(uG.OBJECT,0)}object_ref(){return this.getRuleContext(0,wf)}LPAREN(){return this.getToken(uG.LPAREN,0)}TYPE(){return this.getToken(uG.TYPE,0)}object_type_ref(){return this.getRuleContext(0,oy)}RPAREN(){return this.getToken(uG.RPAREN,0)}IF(){return this.getToken(uG.IF,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,ry)}get ruleIndex(){return uG.RULE_drop_object_stmt}accept(t){return t.visitDrop_object_stmt?t.visitDrop_object_stmt(this):t.visitChildren(this)}},ry=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(uG.WITH,0)}object_features(){return this.getRuleContext(0,Ty)}get ruleIndex(){return uG.RULE_drop_object_features}accept(t){return t.visitDrop_object_features?t.visitDrop_object_features(this):t.visitChildren(this)}},cy=class extends p{constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,uw)}bind_parameter(){return this.getRuleContext(0,BF)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_object_feature_value}accept(t){return t.visitObject_feature_value?t.visitObject_feature_value(this):t.visitChildren(this)}},ny=class extends p{constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,rw)}EQUALS(){return this.getToken(uG.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,cy)}get ruleIndex(){return uG.RULE_object_feature_kv}accept(t){return t.visitObject_feature_kv?t.visitObject_feature_kv(this):t.visitChildren(this)}},hy=class extends p{constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,rw)}get ruleIndex(){return uG.RULE_object_feature_flag}accept(t){return t.visitObject_feature_flag?t.visitObject_feature_flag(this):t.visitChildren(this)}},Ey=class extends p{constructor(t,e){super(t,e)}object_feature_kv(){return this.getRuleContext(0,ny)}object_feature_flag(){return this.getRuleContext(0,hy)}get ruleIndex(){return uG.RULE_object_feature}accept(t){return t.visitObject_feature?t.visitObject_feature(this):t.visitChildren(this)}},Ty=class extends p{constructor(t,e){super(t,e)}object_feature(t){return void 0===t?this.getRuleContexts(Ey):this.getRuleContext(t,Ey)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_object_features}accept(t){return t.visitObject_features?t.visitObject_features(this):t.visitChildren(this)}},oy=class extends p{constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,rw)}get ruleIndex(){return uG.RULE_object_type_ref}accept(t){return t.visitObject_type_ref?t.visitObject_type_ref(this):t.visitChildren(this)}},Ry=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,Wf)}LPAREN(){return this.getToken(uG.LPAREN,0)}create_table_entry(t){return void 0===t?this.getRuleContexts(Ay):this.getRuleContext(t,Ay)}RPAREN(){return this.getToken(uG.RPAREN,0)}TABLE(){return this.getToken(uG.TABLE,0)}TABLESTORE(){return this.getToken(uG.TABLESTORE,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}TEMP(){return this.getToken(uG.TEMP,0)}TEMPORARY(){return this.getToken(uG.TEMPORARY,0)}OR(){return this.getToken(uG.OR,0)}REPLACE(){return this.getToken(uG.REPLACE,0)}IF(){return this.getToken(uG.IF,0)}NOT(){return this.getToken(uG.NOT,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}table_inherits(){return this.getRuleContext(0,Sy)}table_partition_by(){return this.getRuleContext(0,ly)}with_table_settings(){return this.getRuleContext(0,Oy)}table_tablestore(){return this.getRuleContext(0,Iy)}table_as_source(){return this.getRuleContext(0,Ny)}get ruleIndex(){return uG.RULE_create_table_stmt}accept(t){return t.visitCreate_table_stmt?t.visitCreate_table_stmt(this):t.visitChildren(this)}},Ay=class extends p{constructor(t,e){super(t,e)}column_schema(){return this.getRuleContext(0,wy)}table_constraint(){return this.getRuleContext(0,Xy)}table_index(){return this.getRuleContext(0,Ky)}family_entry(){return this.getRuleContext(0,af)}changefeed(){return this.getRuleContext(0,qy)}an_id_schema(){return this.getRuleContext(0,cw)}get ruleIndex(){return uG.RULE_create_table_entry}accept(t){return t.visitCreate_table_entry?t.visitCreate_table_entry(this):t.visitChildren(this)}},Sy=class extends p{constructor(t,e){super(t,e)}INHERITS(){return this.getToken(uG.INHERITS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}simple_table_ref_core(t){return void 0===t?this.getRuleContexts(bf):this.getRuleContext(t,bf)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_table_inherits}accept(t){return t.visitTable_inherits?t.visitTable_inherits(this):t.visitChildren(this)}},ly=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(uG.PARTITION,0)}BY(){return this.getToken(uG.BY,0)}HASH(){return this.getToken(uG.HASH,0)}pure_column_list(){return this.getRuleContext(0,_F)}get ruleIndex(){return uG.RULE_table_partition_by}accept(t){return t.visitTable_partition_by?t.visitTable_partition_by(this):t.visitChildren(this)}},Oy=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(uG.WITH,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}table_settings_entry(t){return void 0===t?this.getRuleContexts(uy):this.getRuleContext(t,uy)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_with_table_settings}accept(t){return t.visitWith_table_settings?t.visitWith_table_settings(this):t.visitChildren(this)}},Iy=class extends p{constructor(t,e){super(t,e)}TABLESTORE(){return this.getToken(uG.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,bf)}get ruleIndex(){return uG.RULE_table_tablestore}accept(t){return t.visitTable_tablestore?t.visitTable_tablestore(this):t.visitChildren(this)}},uy=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,sf)}get ruleIndex(){return uG.RULE_table_settings_entry}accept(t){return t.visitTable_settings_entry?t.visitTable_settings_entry(this):t.visitChildren(this)}},Ny=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(uG.AS,0)}values_source(){return this.getRuleContext(0,WB)}get ruleIndex(){return uG.RULE_table_as_source}accept(t){return t.visitTable_as_source?t.visitTable_as_source(this):t.visitChildren(this)}},Ly=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}TABLE(){return this.getToken(uG.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Wf)}alter_table_action(t){return void 0===t?this.getRuleContexts(Cy):this.getRuleContext(t,Cy)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_table_stmt}accept(t){return t.visitAlter_table_stmt?t.visitAlter_table_stmt(this):t.visitChildren(this)}},Cy=class extends p{constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,Uy)}alter_table_drop_column(){return this.getRuleContext(0,my)}alter_table_alter_column(){return this.getRuleContext(0,Dy)}alter_table_add_column_family(){return this.getRuleContext(0,py)}alter_table_alter_column_family(){return this.getRuleContext(0,gy)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,xy)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,ky)}alter_table_reset_table_setting(){return this.getRuleContext(0,Hy)}alter_table_add_index(){return this.getRuleContext(0,Gy)}alter_table_drop_index(){return this.getRuleContext(0,Fy)}alter_table_rename_to(){return this.getRuleContext(0,vy)}alter_table_add_changefeed(){return this.getRuleContext(0,yy)}alter_table_alter_changefeed(){return this.getRuleContext(0,fy)}alter_table_drop_changefeed(){return this.getRuleContext(0,Yy)}alter_table_rename_index_to(){return this.getRuleContext(0,By)}get ruleIndex(){return uG.RULE_alter_table_action}accept(t){return t.visitAlter_table_action?t.visitAlter_table_action(this):t.visitChildren(this)}},_y=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}TABLE(){return this.getToken(uG.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Wf)}alter_external_table_action(t){return void 0===t?this.getRuleContexts(Py):this.getRuleContext(t,Py)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_external_table_stmt}accept(t){return t.visitAlter_external_table_stmt?t.visitAlter_external_table_stmt(this):t.visitChildren(this)}},Py=class extends p{constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,Uy)}alter_table_drop_column(){return this.getRuleContext(0,my)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,xy)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,ky)}alter_table_reset_table_setting(){return this.getRuleContext(0,Hy)}get ruleIndex(){return uG.RULE_alter_external_table_action}accept(t){return t.visitAlter_external_table_action?t.visitAlter_external_table_action(this):t.visitChildren(this)}},My=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}TABLESTORE(){return this.getToken(uG.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,wf)}alter_table_store_action(t){return void 0===t?this.getRuleContexts(dy):this.getRuleContext(t,dy)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_table_store_stmt}accept(t){return t.visitAlter_table_store_stmt?t.visitAlter_table_store_stmt(this):t.visitChildren(this)}},dy=class extends p{constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,Uy)}alter_table_drop_column(){return this.getRuleContext(0,my)}get ruleIndex(){return uG.RULE_alter_table_store_action}accept(t){return t.visitAlter_table_store_action?t.visitAlter_table_store_action(this):t.visitChildren(this)}},Uy=class extends p{constructor(t,e){super(t,e)}ADD(){return this.getToken(uG.ADD,0)}column_schema(){return this.getRuleContext(0,wy)}COLUMN(){return this.getToken(uG.COLUMN,0)}get ruleIndex(){return uG.RULE_alter_table_add_column}accept(t){return t.visitAlter_table_add_column?t.visitAlter_table_add_column(this):t.visitChildren(this)}},my=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}an_id(){return this.getRuleContext(0,iw)}COLUMN(){return this.getToken(uG.COLUMN,0)}get ruleIndex(){return uG.RULE_alter_table_drop_column}accept(t){return t.visitAlter_table_drop_column?t.visitAlter_table_drop_column(this):t.visitChildren(this)}},Dy=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}COLUMN(){return this.getToken(uG.COLUMN,0)}an_id(){return this.getRuleContext(0,iw)}SET(){return this.getToken(uG.SET,0)}family_relation(){return this.getRuleContext(0,by)}get ruleIndex(){return uG.RULE_alter_table_alter_column}accept(t){return t.visitAlter_table_alter_column?t.visitAlter_table_alter_column(this):t.visitChildren(this)}},py=class extends p{constructor(t,e){super(t,e)}ADD(){return this.getToken(uG.ADD,0)}family_entry(){return this.getRuleContext(0,af)}get ruleIndex(){return uG.RULE_alter_table_add_column_family}accept(t){return t.visitAlter_table_add_column_family?t.visitAlter_table_add_column_family(this):t.visitChildren(this)}},gy=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}FAMILY(){return this.getToken(uG.FAMILY,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}SET(){return this.getToken(uG.SET,0)}family_setting_value(){return this.getRuleContext(0,nf)}get ruleIndex(){return uG.RULE_alter_table_alter_column_family}accept(t){return t.visitAlter_table_alter_column_family?t.visitAlter_table_alter_column_family(this):t.visitChildren(this)}},xy=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}an_id(){return this.getRuleContext(0,iw)}table_setting_value(){return this.getRuleContext(0,sf)}get ruleIndex(){return uG.RULE_alter_table_set_table_setting_uncompat}accept(t){return t.visitAlter_table_set_table_setting_uncompat?t.visitAlter_table_set_table_setting_uncompat(this):t.visitChildren(this)}},ky=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}alter_table_setting_entry(t){return void 0===t?this.getRuleContexts(ef):this.getRuleContext(t,ef)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_table_set_table_setting_compat}accept(t){return t.visitAlter_table_set_table_setting_compat?t.visitAlter_table_set_table_setting_compat(this):t.visitChildren(this)}},Hy=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken(uG.RESET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_table_reset_table_setting}accept(t){return t.visitAlter_table_reset_table_setting?t.visitAlter_table_reset_table_setting(this):t.visitChildren(this)}},Gy=class extends p{constructor(t,e){super(t,e)}ADD(){return this.getToken(uG.ADD,0)}table_index(){return this.getRuleContext(0,Ky)}get ruleIndex(){return uG.RULE_alter_table_add_index}accept(t){return t.visitAlter_table_add_index?t.visitAlter_table_add_index(this):t.visitChildren(this)}},Fy=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}INDEX(){return this.getToken(uG.INDEX,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_alter_table_drop_index}accept(t){return t.visitAlter_table_drop_index?t.visitAlter_table_drop_index(this):t.visitChildren(this)}},vy=class extends p{constructor(t,e){super(t,e)}RENAME(){return this.getToken(uG.RENAME,0)}TO(){return this.getToken(uG.TO,0)}an_id_table(){return this.getRuleContext(0,Tw)}get ruleIndex(){return uG.RULE_alter_table_rename_to}accept(t){return t.visitAlter_table_rename_to?t.visitAlter_table_rename_to(this):t.visitChildren(this)}},By=class extends p{constructor(t,e){super(t,e)}RENAME(){return this.getToken(uG.RENAME,0)}INDEX(){return this.getToken(uG.INDEX,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}TO(){return this.getToken(uG.TO,0)}get ruleIndex(){return uG.RULE_alter_table_rename_index_to}accept(t){return t.visitAlter_table_rename_index_to?t.visitAlter_table_rename_index_to(this):t.visitChildren(this)}},yy=class extends p{constructor(t,e){super(t,e)}ADD(){return this.getToken(uG.ADD,0)}changefeed(){return this.getRuleContext(0,qy)}get ruleIndex(){return uG.RULE_alter_table_add_changefeed}accept(t){return t.visitAlter_table_add_changefeed?t.visitAlter_table_add_changefeed(this):t.visitChildren(this)}},fy=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}CHANGEFEED(){return this.getToken(uG.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,iw)}changefeed_alter_settings(){return this.getRuleContext(0,tf)}get ruleIndex(){return uG.RULE_alter_table_alter_changefeed}accept(t){return t.visitAlter_table_alter_changefeed?t.visitAlter_table_alter_changefeed(this):t.visitChildren(this)}},Yy=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}CHANGEFEED(){return this.getToken(uG.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_alter_table_drop_changefeed}accept(t){return t.visitAlter_table_drop_changefeed?t.visitAlter_table_drop_changefeed(this):t.visitChildren(this)}},wy=class extends p{constructor(t,e){super(t,e)}an_id_schema(){return this.getRuleContext(0,cw)}type_name_or_bind(){return this.getRuleContext(0,Av)}opt_column_constraints(){return this.getRuleContext(0,Wy)}family_relation(){return this.getRuleContext(0,by)}get ruleIndex(){return uG.RULE_column_schema}accept(t){return t.visitColumn_schema?t.visitColumn_schema(this):t.visitChildren(this)}},by=class extends p{constructor(t,e){super(t,e)}FAMILY(){return this.getToken(uG.FAMILY,0)}an_id(){return this.getRuleContext(0,iw)}get ruleIndex(){return uG.RULE_family_relation}accept(t){return t.visitFamily_relation?t.visitFamily_relation(this):t.visitChildren(this)}},Wy=class extends p{constructor(t,e){super(t,e)}NULL(){return this.getToken(uG.NULL,0)}DEFAULT(){return this.getToken(uG.DEFAULT,0)}expr(){return this.getRuleContext(0,UG)}NOT(){return this.getToken(uG.NOT,0)}get ruleIndex(){return uG.RULE_opt_column_constraints}accept(t){return t.visitOpt_column_constraints?t.visitOpt_column_constraints(this):t.visitChildren(this)}},Vy=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}ASC(){return this.getToken(uG.ASC,0)}DESC(){return this.getToken(uG.DESC,0)}get ruleIndex(){return uG.RULE_column_order_by_specification}accept(t){return t.visitColumn_order_by_specification?t.visitColumn_order_by_specification(this):t.visitChildren(this)}},Xy=class extends p{constructor(t,e){super(t,e)}PRIMARY(){return this.getToken(uG.PRIMARY,0)}KEY(){return this.getToken(uG.KEY,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}PARTITION(){return this.getToken(uG.PARTITION,0)}BY(){return this.getToken(uG.BY,0)}ORDER(){return this.getToken(uG.ORDER,0)}column_order_by_specification(t){return void 0===t?this.getRuleContexts(Vy):this.getRuleContext(t,Vy)}get ruleIndex(){return uG.RULE_table_constraint}accept(t){return t.visitTable_constraint?t.visitTable_constraint(this):t.visitChildren(this)}},Ky=class extends p{constructor(t,e){super(t,e)}INDEX(){return this.getToken(uG.INDEX,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}table_index_type(){return this.getRuleContext(0,Qy)}ON(){return this.getToken(uG.ON,0)}LPAREN(t){return void 0===t?this.getTokens(uG.LPAREN):this.getToken(uG.LPAREN,t)}an_id_schema(t){return void 0===t?this.getRuleContexts(cw):this.getRuleContext(t,cw)}RPAREN(t){return void 0===t?this.getTokens(uG.RPAREN):this.getToken(uG.RPAREN,t)}WITH(){return this.getToken(uG.WITH,0)}EQUALS(t){return void 0===t?this.getTokens(uG.EQUALS):this.getToken(uG.EQUALS,t)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}COVER(){return this.getToken(uG.COVER,0)}get ruleIndex(){return uG.RULE_table_index}accept(t){return t.visitTable_index?t.visitTable_index(this):t.visitChildren(this)}},Qy=class extends p{constructor(t,e){super(t,e)}global_index(){return this.getRuleContext(0,Jy)}local_index(){return this.getRuleContext(0,Zy)}get ruleIndex(){return uG.RULE_table_index_type}accept(t){return t.visitTable_index_type?t.visitTable_index_type(this):t.visitChildren(this)}},Jy=class extends p{constructor(t,e){super(t,e)}GLOBAL(){return this.getToken(uG.GLOBAL,0)}UNIQUE(){return this.getToken(uG.UNIQUE,0)}SYNC(){return this.getToken(uG.SYNC,0)}ASYNC(){return this.getToken(uG.ASYNC,0)}get ruleIndex(){return uG.RULE_global_index}accept(t){return t.visitGlobal_index?t.visitGlobal_index(this):t.visitChildren(this)}},Zy=class extends p{constructor(t,e){super(t,e)}LOCAL(){return this.getToken(uG.LOCAL,0)}get ruleIndex(){return uG.RULE_local_index}accept(t){return t.visitLocal_index?t.visitLocal_index(this):t.visitChildren(this)}},qy=class extends p{constructor(t,e){super(t,e)}CHANGEFEED(){return this.getToken(uG.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,iw)}WITH(){return this.getToken(uG.WITH,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,jy)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_changefeed}accept(t){return t.visitChangefeed?t.visitChangefeed(this):t.visitChildren(this)}},jy=class extends p{constructor(t,e){super(t,e)}changefeed_settings_entry(t){return void 0===t?this.getRuleContexts(zy):this.getRuleContext(t,zy)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_changefeed_settings}accept(t){return t.visitChangefeed_settings?t.visitChangefeed_settings(this):t.visitChildren(this)}},zy=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,$y)}get ruleIndex(){return uG.RULE_changefeed_settings_entry}accept(t){return t.visitChangefeed_settings_entry?t.visitChangefeed_settings_entry(this):t.visitChildren(this)}},$y=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_changefeed_setting_value}accept(t){return t.visitChangefeed_setting_value?t.visitChangefeed_setting_value(this):t.visitChildren(this)}},tf=class extends p{constructor(t,e){super(t,e)}DISABLE(){return this.getToken(uG.DISABLE,0)}SET(){return this.getToken(uG.SET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,jy)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_changefeed_alter_settings}accept(t){return t.visitChangefeed_alter_settings?t.visitChangefeed_alter_settings(this):t.visitChildren(this)}},ef=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,sf)}get ruleIndex(){return uG.RULE_alter_table_setting_entry}accept(t){return t.visitAlter_table_setting_entry?t.visitAlter_table_setting_entry(this):t.visitChildren(this)}},sf=class extends p{constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,ZY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}integer(){return this.getRuleContext(0,vw)}split_boundaries(){return this.getRuleContext(0,hf)}expr(){return this.getRuleContext(0,UG)}ON(){return this.getToken(uG.ON,0)}an_id(){return this.getRuleContext(0,iw)}AS(){return this.getToken(uG.AS,0)}SECONDS(){return this.getToken(uG.SECONDS,0)}MILLISECONDS(){return this.getToken(uG.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(uG.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(uG.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,Gw)}get ruleIndex(){return uG.RULE_table_setting_value}accept(t){return t.visitTable_setting_value?t.visitTable_setting_value(this):t.visitChildren(this)}},af=class extends p{constructor(t,e){super(t,e)}FAMILY(){return this.getToken(uG.FAMILY,0)}an_id(){return this.getRuleContext(0,iw)}family_settings(){return this.getRuleContext(0,rf)}get ruleIndex(){return uG.RULE_family_entry}accept(t){return t.visitFamily_entry?t.visitFamily_entry(this):t.visitChildren(this)}},rf=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}family_settings_entry(t){return void 0===t?this.getRuleContexts(cf):this.getRuleContext(t,cf)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_family_settings}accept(t){return t.visitFamily_settings?t.visitFamily_settings(this):t.visitChildren(this)}},cf=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,nf)}get ruleIndex(){return uG.RULE_family_settings_entry}accept(t){return t.visitFamily_settings_entry?t.visitFamily_settings_entry(this):t.visitChildren(this)}},nf=class extends p{constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_family_setting_value}accept(t){return t.visitFamily_setting_value?t.visitFamily_setting_value(this):t.visitChildren(this)}},hf=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}literal_value_list(t){return void 0===t?this.getRuleContexts(Ef):this.getRuleContext(t,Ef)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_split_boundaries}accept(t){return t.visitSplit_boundaries?t.visitSplit_boundaries(this):t.visitChildren(this)}},Ef=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}literal_value(t){return void 0===t?this.getRuleContexts(vF):this.getRuleContext(t,vF)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_literal_value_list}accept(t){return t.visitLiteral_value_list?t.visitLiteral_value_list(this):t.visitChildren(this)}},Tf=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}simple_table_ref(){return this.getRuleContext(0,Wf)}TABLE(){return this.getToken(uG.TABLE,0)}TABLESTORE(){return this.getToken(uG.TABLESTORE,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}IF(){return this.getToken(uG.IF,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}get ruleIndex(){return uG.RULE_drop_table_stmt}accept(t){return t.visitDrop_table_stmt?t.visitDrop_table_stmt(this):t.visitChildren(this)}},of=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}USER(){return this.getToken(uG.USER,0)}role_name(){return this.getRuleContext(0,Of)}create_user_option(){return this.getRuleContext(0,If)}get ruleIndex(){return uG.RULE_create_user_stmt}accept(t){return t.visitCreate_user_stmt?t.visitCreate_user_stmt(this):t.visitChildren(this)}},Rf=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}USER(){return this.getToken(uG.USER,0)}role_name(t){return void 0===t?this.getRuleContexts(Of):this.getRuleContext(t,Of)}create_user_option(){return this.getRuleContext(0,If)}RENAME(){return this.getToken(uG.RENAME,0)}TO(){return this.getToken(uG.TO,0)}WITH(){return this.getToken(uG.WITH,0)}get ruleIndex(){return uG.RULE_alter_user_stmt}accept(t){return t.visitAlter_user_stmt?t.visitAlter_user_stmt(this):t.visitChildren(this)}},Af=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}GROUP(){return this.getToken(uG.GROUP,0)}role_name(t){return void 0===t?this.getRuleContexts(Of):this.getRuleContext(t,Of)}WITH(){return this.getToken(uG.WITH,0)}USER(){return this.getToken(uG.USER,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_create_group_stmt}accept(t){return t.visitCreate_group_stmt?t.visitCreate_group_stmt(this):t.visitChildren(this)}},Sf=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}GROUP(){return this.getToken(uG.GROUP,0)}role_name(t){return void 0===t?this.getRuleContexts(Of):this.getRuleContext(t,Of)}USER(){return this.getToken(uG.USER,0)}RENAME(){return this.getToken(uG.RENAME,0)}TO(){return this.getToken(uG.TO,0)}ADD(){return this.getToken(uG.ADD,0)}DROP(){return this.getToken(uG.DROP,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_group_stmt}accept(t){return t.visitAlter_group_stmt?t.visitAlter_group_stmt(this):t.visitChildren(this)}},lf=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}role_name(t){return void 0===t?this.getRuleContexts(Of):this.getRuleContext(t,Of)}USER(){return this.getToken(uG.USER,0)}GROUP(){return this.getToken(uG.GROUP,0)}IF(){return this.getToken(uG.IF,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_drop_role_stmt}accept(t){return t.visitDrop_role_stmt?t.visitDrop_role_stmt(this):t.visitChildren(this)}},Of=class extends p{constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,rw)}bind_parameter(){return this.getRuleContext(0,BF)}get ruleIndex(){return uG.RULE_role_name}accept(t){return t.visitRole_name?t.visitRole_name(this):t.visitChildren(this)}},If=class extends p{constructor(t,e){super(t,e)}PASSWORD(){return this.getToken(uG.PASSWORD,0)}expr(){return this.getRuleContext(0,UG)}ENCRYPTED(){return this.getToken(uG.ENCRYPTED,0)}get ruleIndex(){return uG.RULE_create_user_option}accept(t){return t.visitCreate_user_option?t.visitCreate_user_option(this):t.visitChildren(this)}},uf=class extends p{constructor(t,e){super(t,e)}GRANT(t){return void 0===t?this.getTokens(uG.GRANT):this.getToken(uG.GRANT,t)}permission_name_target(){return this.getRuleContext(0,_f)}ON(){return this.getToken(uG.ON,0)}an_id_schema(t){return void 0===t?this.getRuleContexts(cw):this.getRuleContext(t,cw)}TO(){return this.getToken(uG.TO,0)}role_name(t){return void 0===t?this.getRuleContexts(Of):this.getRuleContext(t,Of)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}WITH(){return this.getToken(uG.WITH,0)}OPTION(){return this.getToken(uG.OPTION,0)}get ruleIndex(){return uG.RULE_grant_permissions_stmt}accept(t){return t.visitGrant_permissions_stmt?t.visitGrant_permissions_stmt(this):t.visitChildren(this)}},Nf=class extends p{constructor(t,e){super(t,e)}REVOKE(){return this.getToken(uG.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,_f)}ON(){return this.getToken(uG.ON,0)}an_id_schema(t){return void 0===t?this.getRuleContexts(cw):this.getRuleContext(t,cw)}FROM(){return this.getToken(uG.FROM,0)}role_name(t){return void 0===t?this.getRuleContexts(Of):this.getRuleContext(t,Of)}GRANT(){return this.getToken(uG.GRANT,0)}OPTION(){return this.getToken(uG.OPTION,0)}FOR(){return this.getToken(uG.FOR,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_revoke_permissions_stmt}accept(t){return t.visitRevoke_permissions_stmt?t.visitRevoke_permissions_stmt(this):t.visitChildren(this)}},Lf=class extends p{constructor(t,e){super(t,e)}CONNECT(){return this.getToken(uG.CONNECT,0)}LIST(){return this.getToken(uG.LIST,0)}INSERT(){return this.getToken(uG.INSERT,0)}MANAGE(){return this.getToken(uG.MANAGE,0)}DROP(){return this.getToken(uG.DROP,0)}GRANT(){return this.getToken(uG.GRANT,0)}MODIFY(){return this.getToken(uG.MODIFY,0)}TABLES(){return this.getToken(uG.TABLES,0)}ATTRIBUTES(){return this.getToken(uG.ATTRIBUTES,0)}ROW(){return this.getToken(uG.ROW,0)}UPDATE(){return this.getToken(uG.UPDATE,0)}ERASE(){return this.getToken(uG.ERASE,0)}SCHEMA(){return this.getToken(uG.SCHEMA,0)}REMOVE(){return this.getToken(uG.REMOVE,0)}DESCRIBE(){return this.getToken(uG.DESCRIBE,0)}ALTER(){return this.getToken(uG.ALTER,0)}SELECT(){return this.getToken(uG.SELECT,0)}USE(){return this.getToken(uG.USE,0)}FULL(){return this.getToken(uG.FULL,0)}LEGACY(){return this.getToken(uG.LEGACY,0)}CREATE(){return this.getToken(uG.CREATE,0)}DIRECTORY(){return this.getToken(uG.DIRECTORY,0)}TABLE(){return this.getToken(uG.TABLE,0)}QUEUE(){return this.getToken(uG.QUEUE,0)}get ruleIndex(){return uG.RULE_permission_id}accept(t){return t.visitPermission_id?t.visitPermission_id(this):t.visitChildren(this)}},Cf=class extends p{constructor(t,e){super(t,e)}permission_id(){return this.getRuleContext(0,Lf)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_permission_name}accept(t){return t.visitPermission_name?t.visitPermission_name(this):t.visitChildren(this)}},_f=class extends p{constructor(t,e){super(t,e)}permission_name(t){return void 0===t?this.getRuleContexts(Cf):this.getRuleContext(t,Cf)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}ALL(){return this.getToken(uG.ALL,0)}PRIVILEGES(){return this.getToken(uG.PRIVILEGES,0)}get ruleIndex(){return uG.RULE_permission_name_target}accept(t){return t.visitPermission_name_target?t.visitPermission_name_target(this):t.visitChildren(this)}},Pf=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}ASYNC(){return this.getToken(uG.ASYNC,0)}REPLICATION(){return this.getToken(uG.REPLICATION,0)}object_ref(){return this.getRuleContext(0,wf)}FOR(){return this.getToken(uG.FOR,0)}replication_target(t){return void 0===t?this.getRuleContexts(Mf):this.getRuleContext(t,Mf)}WITH(){return this.getToken(uG.WITH,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}replication_settings(){return this.getRuleContext(0,df)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_create_replication_stmt}accept(t){return t.visitCreate_replication_stmt?t.visitCreate_replication_stmt(this):t.visitChildren(this)}},Mf=class extends p{constructor(t,e){super(t,e)}object_ref(){return this.getRuleContext(0,wf)}replication_name(){return this.getRuleContext(0,ww)}get ruleIndex(){return uG.RULE_replication_target}accept(t){return t.visitReplication_target?t.visitReplication_target(this):t.visitChildren(this)}},df=class extends p{constructor(t,e){super(t,e)}replication_settings_entry(t){return void 0===t?this.getRuleContexts(Uf):this.getRuleContext(t,Uf)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_replication_settings}accept(t){return t.visitReplication_settings?t.visitReplication_settings(this):t.visitChildren(this)}},Uf=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_replication_settings_entry}accept(t){return t.visitReplication_settings_entry?t.visitReplication_settings_entry(this):t.visitChildren(this)}},mf=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}ASYNC(){return this.getToken(uG.ASYNC,0)}REPLICATION(){return this.getToken(uG.REPLICATION,0)}object_ref(){return this.getRuleContext(0,wf)}alter_replication_action(t){return void 0===t?this.getRuleContexts(Df):this.getRuleContext(t,Df)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_replication_stmt}accept(t){return t.visitAlter_replication_stmt?t.visitAlter_replication_stmt(this):t.visitChildren(this)}},Df=class extends p{constructor(t,e){super(t,e)}alter_replication_set_setting(){return this.getRuleContext(0,pf)}get ruleIndex(){return uG.RULE_alter_replication_action}accept(t){return t.visitAlter_replication_action?t.visitAlter_replication_action(this):t.visitChildren(this)}},pf=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}replication_settings(){return this.getRuleContext(0,df)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_alter_replication_set_setting}accept(t){return t.visitAlter_replication_set_setting?t.visitAlter_replication_set_setting(this):t.visitChildren(this)}},gf=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}ASYNC(){return this.getToken(uG.ASYNC,0)}REPLICATION(){return this.getToken(uG.REPLICATION,0)}object_ref(){return this.getRuleContext(0,wf)}CASCADE(){return this.getToken(uG.CASCADE,0)}get ruleIndex(){return uG.RULE_drop_replication_stmt}accept(t){return t.visitDrop_replication_stmt?t.visitDrop_replication_stmt(this):t.visitChildren(this)}},xf=class extends p{constructor(t,e){super(t,e)}opt_bind_parameter(t){return void 0===t?this.getRuleContexts(yF):this.getRuleContext(t,yF)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_action_or_subquery_args}accept(t){return t.visitAction_or_subquery_args?t.visitAction_or_subquery_args(this):t.visitChildren(this)}},kf=class extends p{constructor(t,e){super(t,e)}DEFINE(t){return void 0===t?this.getTokens(uG.DEFINE):this.getToken(uG.DEFINE,t)}bind_parameter(){return this.getRuleContext(0,BF)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}AS(){return this.getToken(uG.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Hf)}END(){return this.getToken(uG.END,0)}ACTION(){return this.getToken(uG.ACTION,0)}SUBQUERY(){return this.getToken(uG.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,xf)}get ruleIndex(){return uG.RULE_define_action_or_subquery_stmt}accept(t){return t.visitDefine_action_or_subquery_stmt?t.visitDefine_action_or_subquery_stmt(this):t.visitChildren(this)}},Hf=class extends p{constructor(t,e){super(t,e)}SEMICOLON(t){return void 0===t?this.getTokens(uG.SEMICOLON):this.getToken(uG.SEMICOLON,t)}sql_stmt_core(t){return void 0===t?this.getRuleContexts(dG):this.getRuleContext(t,dG)}get ruleIndex(){return uG.RULE_define_action_or_subquery_body}accept(t){return t.visitDefine_action_or_subquery_body?t.visitDefine_action_or_subquery_body(this):t.visitChildren(this)}},Gf=class extends p{constructor(t,e){super(t,e)}IF(){return this.getToken(uG.IF,0)}expr(){return this.getRuleContext(0,UG)}do_stmt(t){return void 0===t?this.getRuleContexts(_v):this.getRuleContext(t,_v)}EVALUATE(){return this.getToken(uG.EVALUATE,0)}ELSE(){return this.getToken(uG.ELSE,0)}get ruleIndex(){return uG.RULE_if_stmt}accept(t){return t.visitIf_stmt?t.visitIf_stmt(this):t.visitChildren(this)}},Ff=class extends p{constructor(t,e){super(t,e)}FOR(){return this.getToken(uG.FOR,0)}bind_parameter(){return this.getRuleContext(0,BF)}IN(){return this.getToken(uG.IN,0)}expr(){return this.getRuleContext(0,UG)}do_stmt(t){return void 0===t?this.getRuleContexts(_v):this.getRuleContext(t,_v)}EVALUATE(){return this.getToken(uG.EVALUATE,0)}PARALLEL(){return this.getToken(uG.PARALLEL,0)}ELSE(){return this.getToken(uG.ELSE,0)}get ruleIndex(){return uG.RULE_for_stmt}accept(t){return t.visitFor_stmt?t.visitFor_stmt(this):t.visitChildren(this)}},vf=class extends p{constructor(t,e){super(t,e)}table_key(){return this.getRuleContext(0,Bf)}an_id_expr(){return this.getRuleContext(0,nw)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,BF)}cluster_expr(){return this.getRuleContext(0,Iw)}DOT(){return this.getToken(uG.DOT,0)}AT(){return this.getToken(uG.AT,0)}table_hints(){return this.getRuleContext(0,ff)}table_arg(t){return void 0===t?this.getRuleContexts(yf):this.getRuleContext(t,yf)}VIEW(){return this.getToken(uG.VIEW,0)}view_name(){return this.getRuleContext(0,lw)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}expr_list(){return this.getRuleContext(0,CF)}get ruleIndex(){return uG.RULE_table_ref}accept(t){return t.visitTable_ref?t.visitTable_ref(this):t.visitChildren(this)}},Bf=class extends p{constructor(t,e){super(t,e)}id_table_or_type(){return this.getRuleContext(0,Cw)}VIEW(){return this.getToken(uG.VIEW,0)}view_name(){return this.getRuleContext(0,lw)}get ruleIndex(){return uG.RULE_table_key}accept(t){return t.visitTable_key?t.visitTable_key(this):t.visitChildren(this)}},yf=class extends p{constructor(t,e){super(t,e)}named_expr(){return this.getRuleContext(0,pF)}AT(){return this.getToken(uG.AT,0)}VIEW(){return this.getToken(uG.VIEW,0)}view_name(){return this.getRuleContext(0,lw)}get ruleIndex(){return uG.RULE_table_arg}accept(t){return t.visitTable_arg?t.visitTable_arg(this):t.visitChildren(this)}},ff=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(uG.WITH,0)}table_hint(t){return void 0===t?this.getRuleContexts(Yf):this.getRuleContext(t,Yf)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_table_hints}accept(t){return t.visitTable_hints?t.visitTable_hints(this):t.visitChildren(this)}},Yf=class extends p{constructor(t,e){super(t,e)}an_id_hint(){return this.getRuleContext(0,Rw)}EQUALS(){return this.getToken(uG.EQUALS,0)}type_name_tag(t){return void 0===t?this.getRuleContexts(XF):this.getRuleContext(t,XF)}LPAREN(){return this.getToken(uG.LPAREN,0)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}type_name_or_bind(){return this.getRuleContext(0,Av)}SCHEMA(){return this.getToken(uG.SCHEMA,0)}COLUMNS(){return this.getToken(uG.COLUMNS,0)}struct_arg_positional(t){return void 0===t?this.getRuleContexts(QF):this.getRuleContext(t,QF)}get ruleIndex(){return uG.RULE_table_hint}accept(t){return t.visitTable_hint?t.visitTable_hint(this):t.visitChildren(this)}},wf=class extends p{constructor(t,e){super(t,e)}id_or_at(){return this.getRuleContext(0,Lw)}cluster_expr(){return this.getRuleContext(0,Iw)}DOT(){return this.getToken(uG.DOT,0)}get ruleIndex(){return uG.RULE_object_ref}accept(t){return t.visitObject_ref?t.visitObject_ref(this):t.visitChildren(this)}},bf=class extends p{constructor(t,e){super(t,e)}object_ref(){return this.getRuleContext(0,wf)}bind_parameter(){return this.getRuleContext(0,BF)}AT(){return this.getToken(uG.AT,0)}get ruleIndex(){return uG.RULE_simple_table_ref_core}accept(t){return t.visitSimple_table_ref_core?t.visitSimple_table_ref_core(this):t.visitChildren(this)}},Wf=class extends p{constructor(t,e){super(t,e)}simple_table_ref_core(){return this.getRuleContext(0,bf)}table_hints(){return this.getRuleContext(0,ff)}get ruleIndex(){return uG.RULE_simple_table_ref}accept(t){return t.visitSimple_table_ref?t.visitSimple_table_ref(this):t.visitChildren(this)}},Vf=class extends p{constructor(t,e){super(t,e)}simple_table_ref(){return this.getRuleContext(0,Wf)}ERASE(){return this.getToken(uG.ERASE,0)}BY(){return this.getToken(uG.BY,0)}pure_column_list(){return this.getRuleContext(0,_F)}get ruleIndex(){return uG.RULE_into_simple_table_ref}accept(t){return t.visitInto_simple_table_ref?t.visitInto_simple_table_ref(this):t.visitChildren(this)}},Xf=class extends p{constructor(t,e){super(t,e)}DELETE(){return this.getToken(uG.DELETE,0)}FROM(){return this.getToken(uG.FROM,0)}simple_table_ref(){return this.getRuleContext(0,Wf)}where_expr(){return this.getRuleContext(0,bw)}ON(){return this.getToken(uG.ON,0)}into_values_source(){return this.getRuleContext(0,wB)}returning_columns_list(){return this.getRuleContext(0,yB)}get ruleIndex(){return uG.RULE_delete_stmt}accept(t){return t.visitDelete_stmt?t.visitDelete_stmt(this):t.visitChildren(this)}},Kf=class extends p{constructor(t,e){super(t,e)}UPDATE(){return this.getToken(uG.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,Wf)}SET(){return this.getToken(uG.SET,0)}set_clause_choice(){return this.getRuleContext(0,Qf)}ON(){return this.getToken(uG.ON,0)}into_values_source(){return this.getRuleContext(0,wB)}returning_columns_list(){return this.getRuleContext(0,yB)}where_expr(){return this.getRuleContext(0,bw)}get ruleIndex(){return uG.RULE_update_stmt}accept(t){return t.visitUpdate_stmt?t.visitUpdate_stmt(this):t.visitChildren(this)}},Qf=class extends p{constructor(t,e){super(t,e)}set_clause_list(){return this.getRuleContext(0,Jf)}multiple_column_assignment(){return this.getRuleContext(0,jf)}get ruleIndex(){return uG.RULE_set_clause_choice}accept(t){return t.visitSet_clause_choice?t.visitSet_clause_choice(this):t.visitChildren(this)}},Jf=class extends p{constructor(t,e){super(t,e)}set_clause(t){return void 0===t?this.getRuleContexts(Zf):this.getRuleContext(t,Zf)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_set_clause_list}accept(t){return t.visitSet_clause_list?t.visitSet_clause_list(this):t.visitChildren(this)}},Zf=class extends p{constructor(t,e){super(t,e)}set_target(){return this.getRuleContext(0,qf)}EQUALS(){return this.getToken(uG.EQUALS,0)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_set_clause}accept(t){return t.visitSet_clause?t.visitSet_clause(this):t.visitChildren(this)}},qf=class extends p{constructor(t,e){super(t,e)}column_name(){return this.getRuleContext(0,dF)}get ruleIndex(){return uG.RULE_set_target}accept(t){return t.visitSet_target?t.visitSet_target(this):t.visitChildren(this)}},jf=class extends p{constructor(t,e){super(t,e)}set_target_list(){return this.getRuleContext(0,zf)}EQUALS(){return this.getToken(uG.EQUALS,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,KB)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_multiple_column_assignment}accept(t){return t.visitMultiple_column_assignment?t.visitMultiple_column_assignment(this):t.visitChildren(this)}},zf=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}set_target(t){return void 0===t?this.getRuleContexts(qf):this.getRuleContext(t,qf)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_set_target_list}accept(t){return t.visitSet_target_list?t.visitSet_target_list(this):t.visitChildren(this)}},$f=class extends p{constructor(t,e){super(t,e)}CREATE(){return this.getToken(uG.CREATE,0)}TOPIC(){return this.getToken(uG.TOPIC,0)}topic_ref(){return this.getRuleContext(0,_Y)}create_topic_entries(){return this.getRuleContext(0,tY)}with_topic_settings(){return this.getRuleContext(0,sY)}get ruleIndex(){return uG.RULE_create_topic_stmt}accept(t){return t.visitCreate_topic_stmt?t.visitCreate_topic_stmt(this):t.visitChildren(this)}},tY=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}create_topic_entry(t){return void 0===t?this.getRuleContexts(eY):this.getRuleContext(t,eY)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_create_topic_entries}accept(t){return t.visitCreate_topic_entries?t.visitCreate_topic_entries(this):t.visitChildren(this)}},eY=class extends p{constructor(t,e){super(t,e)}topic_create_consumer_entry(){return this.getRuleContext(0,cY)}get ruleIndex(){return uG.RULE_create_topic_entry}accept(t){return t.visitCreate_topic_entry?t.visitCreate_topic_entry(this):t.visitChildren(this)}},sY=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(uG.WITH,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}topic_settings(){return this.getRuleContext(0,lY)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_with_topic_settings}accept(t){return t.visitWith_topic_settings?t.visitWith_topic_settings(this):t.visitChildren(this)}},aY=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}TOPIC(){return this.getToken(uG.TOPIC,0)}topic_ref(){return this.getRuleContext(0,_Y)}alter_topic_action(t){return void 0===t?this.getRuleContexts(iY):this.getRuleContext(t,iY)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_alter_topic_stmt}accept(t){return t.visitAlter_topic_stmt?t.visitAlter_topic_stmt(this):t.visitChildren(this)}},iY=class extends p{constructor(t,e){super(t,e)}alter_topic_add_consumer(){return this.getRuleContext(0,rY)}alter_topic_alter_consumer(){return this.getRuleContext(0,nY)}alter_topic_drop_consumer(){return this.getRuleContext(0,EY)}alter_topic_set_settings(){return this.getRuleContext(0,RY)}alter_topic_reset_settings(){return this.getRuleContext(0,AY)}get ruleIndex(){return uG.RULE_alter_topic_action}accept(t){return t.visitAlter_topic_action?t.visitAlter_topic_action(this):t.visitChildren(this)}},rY=class extends p{constructor(t,e){super(t,e)}ADD(){return this.getToken(uG.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,cY)}get ruleIndex(){return uG.RULE_alter_topic_add_consumer}accept(t){return t.visitAlter_topic_add_consumer?t.visitAlter_topic_add_consumer(this):t.visitChildren(this)}},cY=class extends p{constructor(t,e){super(t,e)}CONSUMER(){return this.getToken(uG.CONSUMER,0)}an_id(){return this.getRuleContext(0,iw)}topic_consumer_with_settings(){return this.getRuleContext(0,uY)}get ruleIndex(){return uG.RULE_topic_create_consumer_entry}accept(t){return t.visitTopic_create_consumer_entry?t.visitTopic_create_consumer_entry(this):t.visitChildren(this)}},nY=class extends p{constructor(t,e){super(t,e)}ALTER(){return this.getToken(uG.ALTER,0)}CONSUMER(){return this.getToken(uG.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,PY)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,hY)}get ruleIndex(){return uG.RULE_alter_topic_alter_consumer}accept(t){return t.visitAlter_topic_alter_consumer?t.visitAlter_topic_alter_consumer(this):t.visitChildren(this)}},hY=class extends p{constructor(t,e){super(t,e)}topic_alter_consumer_set(){return this.getRuleContext(0,TY)}topic_alter_consumer_reset(){return this.getRuleContext(0,oY)}get ruleIndex(){return uG.RULE_alter_topic_alter_consumer_entry}accept(t){return t.visitAlter_topic_alter_consumer_entry?t.visitAlter_topic_alter_consumer_entry(this):t.visitChildren(this)}},EY=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}CONSUMER(){return this.getToken(uG.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,PY)}get ruleIndex(){return uG.RULE_alter_topic_drop_consumer}accept(t){return t.visitAlter_topic_drop_consumer?t.visitAlter_topic_drop_consumer(this):t.visitChildren(this)}},TY=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,NY)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_topic_alter_consumer_set}accept(t){return t.visitTopic_alter_consumer_set?t.visitTopic_alter_consumer_set(this):t.visitChildren(this)}},oY=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken(uG.RESET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(iw):this.getRuleContext(t,iw)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_topic_alter_consumer_reset}accept(t){return t.visitTopic_alter_consumer_reset?t.visitTopic_alter_consumer_reset(this):t.visitChildren(this)}},RY=class extends p{constructor(t,e){super(t,e)}SET(){return this.getToken(uG.SET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}topic_settings(){return this.getRuleContext(0,lY)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_alter_topic_set_settings}accept(t){return t.visitAlter_topic_set_settings?t.visitAlter_topic_set_settings(this):t.visitChildren(this)}},AY=class extends p{constructor(t,e){super(t,e)}RESET(){return this.getToken(uG.RESET,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}an_id(){return this.getRuleContext(0,iw)}RPAREN(){return this.getToken(uG.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}an_id_pure(t){return void 0===t?this.getRuleContexts(Aw):this.getRuleContext(t,Aw)}get ruleIndex(){return uG.RULE_alter_topic_reset_settings}accept(t){return t.visitAlter_topic_reset_settings?t.visitAlter_topic_reset_settings(this):t.visitChildren(this)}},SY=class extends p{constructor(t,e){super(t,e)}DROP(){return this.getToken(uG.DROP,0)}TOPIC(){return this.getToken(uG.TOPIC,0)}topic_ref(){return this.getRuleContext(0,_Y)}get ruleIndex(){return uG.RULE_drop_topic_stmt}accept(t){return t.visitDrop_topic_stmt?t.visitDrop_topic_stmt(this):t.visitChildren(this)}},lY=class extends p{constructor(t,e){super(t,e)}topic_settings_entry(t){return void 0===t?this.getRuleContexts(OY):this.getRuleContext(t,OY)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_topic_settings}accept(t){return t.visitTopic_settings?t.visitTopic_settings(this):t.visitChildren(this)}},OY=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,IY)}get ruleIndex(){return uG.RULE_topic_settings_entry}accept(t){return t.visitTopic_settings_entry?t.visitTopic_settings_entry(this):t.visitChildren(this)}},IY=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_topic_setting_value}accept(t){return t.visitTopic_setting_value?t.visitTopic_setting_value(this):t.visitChildren(this)}},uY=class extends p{constructor(t,e){super(t,e)}WITH(){return this.getToken(uG.WITH,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,NY)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_topic_consumer_with_settings}accept(t){return t.visitTopic_consumer_with_settings?t.visitTopic_consumer_with_settings(this):t.visitChildren(this)}},NY=class extends p{constructor(t,e){super(t,e)}topic_consumer_settings_entry(t){return void 0===t?this.getRuleContexts(LY):this.getRuleContext(t,LY)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_topic_consumer_settings}accept(t){return t.visitTopic_consumer_settings?t.visitTopic_consumer_settings(this):t.visitChildren(this)}},LY=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}EQUALS(){return this.getToken(uG.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,CY)}get ruleIndex(){return uG.RULE_topic_consumer_settings_entry}accept(t){return t.visitTopic_consumer_settings_entry?t.visitTopic_consumer_settings_entry(this):t.visitChildren(this)}},CY=class extends p{constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_topic_consumer_setting_value}accept(t){return t.visitTopic_consumer_setting_value?t.visitTopic_consumer_setting_value(this):t.visitChildren(this)}},_Y=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}cluster_expr(){return this.getRuleContext(0,Iw)}DOT(){return this.getToken(uG.DOT,0)}get ruleIndex(){return uG.RULE_topic_ref}accept(t){return t.visitTopic_ref?t.visitTopic_ref(this):t.visitChildren(this)}},PY=class extends p{constructor(t,e){super(t,e)}an_id_pure(){return this.getRuleContext(0,Aw)}get ruleIndex(){return uG.RULE_topic_consumer_ref}accept(t){return t.visitTopic_consumer_ref?t.visitTopic_consumer_ref(this):t.visitChildren(this)}},MY=class extends p{constructor(t,e){super(t,e)}RESPECT(){return this.getToken(uG.RESPECT,0)}NULLS(){return this.getToken(uG.NULLS,0)}IGNORE(){return this.getToken(uG.IGNORE,0)}get ruleIndex(){return uG.RULE_null_treatment}accept(t){return t.visitNull_treatment?t.visitNull_treatment(this):t.visitChildren(this)}},dY=class extends p{constructor(t,e){super(t,e)}FILTER(){return this.getToken(uG.FILTER,0)}LPAREN(){return this.getToken(uG.LPAREN,0)}where_expr(){return this.getRuleContext(0,bw)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_filter_clause}accept(t){return t.visitFilter_clause?t.visitFilter_clause(this):t.visitChildren(this)}},UY=class extends p{constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,mY)}window_specification(){return this.getRuleContext(0,kY)}get ruleIndex(){return uG.RULE_window_name_or_specification}accept(t){return t.visitWindow_name_or_specification?t.visitWindow_name_or_specification(this):t.visitChildren(this)}},mY=class extends p{constructor(t,e){super(t,e)}an_id_window(){return this.getRuleContext(0,Ew)}get ruleIndex(){return uG.RULE_window_name}accept(t){return t.visitWindow_name?t.visitWindow_name(this):t.visitChildren(this)}},DY=class extends p{constructor(t,e){super(t,e)}WINDOW(){return this.getToken(uG.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,pY)}get ruleIndex(){return uG.RULE_window_clause}accept(t){return t.visitWindow_clause?t.visitWindow_clause(this):t.visitChildren(this)}},pY=class extends p{constructor(t,e){super(t,e)}window_definition(t){return void 0===t?this.getRuleContexts(gY):this.getRuleContext(t,gY)}COMMA(t){return void 0===t?this.getTokens(uG.COMMA):this.getToken(uG.COMMA,t)}get ruleIndex(){return uG.RULE_window_definition_list}accept(t){return t.visitWindow_definition_list?t.visitWindow_definition_list(this):t.visitChildren(this)}},gY=class extends p{constructor(t,e){super(t,e)}new_window_name(){return this.getRuleContext(0,xY)}AS(){return this.getToken(uG.AS,0)}window_specification(){return this.getRuleContext(0,kY)}get ruleIndex(){return uG.RULE_window_definition}accept(t){return t.visitWindow_definition?t.visitWindow_definition(this):t.visitChildren(this)}},xY=class extends p{constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,mY)}get ruleIndex(){return uG.RULE_new_window_name}accept(t){return t.visitNew_window_name?t.visitNew_window_name(this):t.visitChildren(this)}},kY=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,HY)}RPAREN(){return this.getToken(uG.RPAREN,0)}get ruleIndex(){return uG.RULE_window_specification}accept(t){return t.visitWindow_specification?t.visitWindow_specification(this):t.visitChildren(this)}},HY=class extends p{constructor(t,e){super(t,e)}existing_window_name(){return this.getRuleContext(0,GY)}window_partition_clause(){return this.getRuleContext(0,FY)}window_order_clause(){return this.getRuleContext(0,vY)}window_frame_clause(){return this.getRuleContext(0,BY)}get ruleIndex(){return uG.RULE_window_specification_details}accept(t){return t.visitWindow_specification_details?t.visitWindow_specification_details(this):t.visitChildren(this)}},GY=class extends p{constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,mY)}get ruleIndex(){return uG.RULE_existing_window_name}accept(t){return t.visitExisting_window_name?t.visitExisting_window_name(this):t.visitChildren(this)}},FY=class extends p{constructor(t,e){super(t,e)}PARTITION(){return this.getToken(uG.PARTITION,0)}BY(){return this.getToken(uG.BY,0)}named_expr_list(){return this.getRuleContext(0,gF)}COMPACT(){return this.getToken(uG.COMPACT,0)}get ruleIndex(){return uG.RULE_window_partition_clause}accept(t){return t.visitWindow_partition_clause?t.visitWindow_partition_clause(this):t.visitChildren(this)}},vY=class extends p{constructor(t,e){super(t,e)}order_by_clause(){return this.getRuleContext(0,SB)}get ruleIndex(){return uG.RULE_window_order_clause}accept(t){return t.visitWindow_order_clause?t.visitWindow_order_clause(this):t.visitChildren(this)}},BY=class extends p{constructor(t,e){super(t,e)}window_frame_units(){return this.getRuleContext(0,yY)}window_frame_extent(){return this.getRuleContext(0,fY)}window_frame_exclusion(){return this.getRuleContext(0,bY)}get ruleIndex(){return uG.RULE_window_frame_clause}accept(t){return t.visitWindow_frame_clause?t.visitWindow_frame_clause(this):t.visitChildren(this)}},yY=class extends p{constructor(t,e){super(t,e)}ROWS(){return this.getToken(uG.ROWS,0)}RANGE(){return this.getToken(uG.RANGE,0)}GROUPS(){return this.getToken(uG.GROUPS,0)}get ruleIndex(){return uG.RULE_window_frame_units}accept(t){return t.visitWindow_frame_units?t.visitWindow_frame_units(this):t.visitChildren(this)}},fY=class extends p{constructor(t,e){super(t,e)}window_frame_bound(){return this.getRuleContext(0,wY)}window_frame_between(){return this.getRuleContext(0,YY)}get ruleIndex(){return uG.RULE_window_frame_extent}accept(t){return t.visitWindow_frame_extent?t.visitWindow_frame_extent(this):t.visitChildren(this)}},YY=class extends p{constructor(t,e){super(t,e)}BETWEEN(){return this.getToken(uG.BETWEEN,0)}window_frame_bound(t){return void 0===t?this.getRuleContexts(wY):this.getRuleContext(t,wY)}AND(){return this.getToken(uG.AND,0)}get ruleIndex(){return uG.RULE_window_frame_between}accept(t){return t.visitWindow_frame_between?t.visitWindow_frame_between(this):t.visitChildren(this)}},wY=class extends p{constructor(t,e){super(t,e)}CURRENT(){return this.getToken(uG.CURRENT,0)}ROW(){return this.getToken(uG.ROW,0)}PRECEDING(){return this.getToken(uG.PRECEDING,0)}FOLLOWING(){return this.getToken(uG.FOLLOWING,0)}expr(){return this.getRuleContext(0,UG)}UNBOUNDED(){return this.getToken(uG.UNBOUNDED,0)}get ruleIndex(){return uG.RULE_window_frame_bound}accept(t){return t.visitWindow_frame_bound?t.visitWindow_frame_bound(this):t.visitChildren(this)}},bY=class extends p{constructor(t,e){super(t,e)}EXCLUDE(){return this.getToken(uG.EXCLUDE,0)}CURRENT(){return this.getToken(uG.CURRENT,0)}ROW(){return this.getToken(uG.ROW,0)}GROUP(){return this.getToken(uG.GROUP,0)}TIES(){return this.getToken(uG.TIES,0)}NO(){return this.getToken(uG.NO,0)}OTHERS(){return this.getToken(uG.OTHERS,0)}get ruleIndex(){return uG.RULE_window_frame_exclusion}accept(t){return t.visitWindow_frame_exclusion?t.visitWindow_frame_exclusion(this):t.visitChildren(this)}},WY=class extends p{constructor(t,e){super(t,e)}USE(){return this.getToken(uG.USE,0)}cluster_expr(){return this.getRuleContext(0,Iw)}get ruleIndex(){return uG.RULE_use_stmt}accept(t){return t.visitUse_stmt?t.visitUse_stmt(this):t.visitChildren(this)}},VY=class extends p{constructor(t,e){super(t,e)}LPAREN(){return this.getToken(uG.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mv)}RPAREN(){return this.getToken(uG.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,Dv)}get ruleIndex(){return uG.RULE_subselect_stmt}accept(t){return t.visitSubselect_stmt?t.visitSubselect_stmt(this):t.visitChildren(this)}},XY=class extends p{constructor(t,e){super(t,e)}bind_parameter_list(){return this.getRuleContext(0,fF)}EQUALS(){return this.getToken(uG.EQUALS,0)}expr(){return this.getRuleContext(0,UG)}subselect_stmt(){return this.getRuleContext(0,VY)}get ruleIndex(){return uG.RULE_named_nodes_stmt}accept(t){return t.visitNamed_nodes_stmt?t.visitNamed_nodes_stmt(this):t.visitChildren(this)}},KY=class extends p{constructor(t,e){super(t,e)}COMMIT(){return this.getToken(uG.COMMIT,0)}get ruleIndex(){return uG.RULE_commit_stmt}accept(t){return t.visitCommit_stmt?t.visitCommit_stmt(this):t.visitChildren(this)}},QY=class extends p{constructor(t,e){super(t,e)}ROLLBACK(){return this.getToken(uG.ROLLBACK,0)}get ruleIndex(){return uG.RULE_rollback_stmt}accept(t){return t.visitRollback_stmt?t.visitRollback_stmt(this):t.visitChildren(this)}},JY=class extends p{constructor(t,e){super(t,e)}ID_PLAIN(){return this.getToken(uG.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(uG.ID_QUOTED,0)}get ruleIndex(){return uG.RULE_identifier}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},ZY=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword(){return this.getRuleContext(0,Pw)}get ruleIndex(){return uG.RULE_id}accept(t){return t.visitId?t.visitId(this):t.visitChildren(this)}},qY=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_expr_uncompat(){return this.getRuleContext(0,Mw)}keyword_select_uncompat(){return this.getRuleContext(0,Uw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_id_schema}accept(t){return t.visitId_schema?t.visitId_schema(this):t.visitChildren(this)}},jY=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_alter_uncompat(){return this.getRuleContext(0,mw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_id_expr}accept(t){return t.visitId_expr?t.visitId_expr(this):t.visitChildren(this)}},zY=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_alter_uncompat(){return this.getRuleContext(0,mw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_id_expr_in}accept(t){return t.visitId_expr_in?t.visitId_expr_in(this):t.visitChildren(this)}},$Y=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_expr_uncompat(){return this.getRuleContext(0,Mw)}keyword_table_uncompat(){return this.getRuleContext(0,dw)}keyword_select_uncompat(){return this.getRuleContext(0,Uw)}keyword_alter_uncompat(){return this.getRuleContext(0,mw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_id_window}accept(t){return t.visitId_window?t.visitId_window(this):t.visitChildren(this)}},tw=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_expr_uncompat(){return this.getRuleContext(0,Mw)}keyword_select_uncompat(){return this.getRuleContext(0,Uw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_id_table}accept(t){return t.visitId_table?t.visitId_table(this):t.visitChildren(this)}},ew=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_table_uncompat(){return this.getRuleContext(0,dw)}keyword_alter_uncompat(){return this.getRuleContext(0,mw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_id_without}accept(t){return t.visitId_without?t.visitId_without(this):t.visitChildren(this)}},sw=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_expr_uncompat(){return this.getRuleContext(0,Mw)}keyword_table_uncompat(){return this.getRuleContext(0,dw)}keyword_select_uncompat(){return this.getRuleContext(0,Uw)}keyword_alter_uncompat(){return this.getRuleContext(0,mw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}get ruleIndex(){return uG.RULE_id_hint}accept(t){return t.visitId_hint?t.visitId_hint(this):t.visitChildren(this)}},aw=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}keyword_as_compat(){return this.getRuleContext(0,xw)}get ruleIndex(){return uG.RULE_id_as_compat}accept(t){return t.visitId_as_compat?t.visitId_as_compat(this):t.visitChildren(this)}},iw=class extends p{constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,ZY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id}accept(t){return t.visitAn_id?t.visitAn_id(this):t.visitChildren(this)}},rw=class extends p{constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,uw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_or_type}accept(t){return t.visitAn_id_or_type?t.visitAn_id_or_type(this):t.visitChildren(this)}},cw=class extends p{constructor(t,e){super(t,e)}id_schema(){return this.getRuleContext(0,qY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_schema}accept(t){return t.visitAn_id_schema?t.visitAn_id_schema(this):t.visitChildren(this)}},nw=class extends p{constructor(t,e){super(t,e)}id_expr(){return this.getRuleContext(0,jY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_expr}accept(t){return t.visitAn_id_expr?t.visitAn_id_expr(this):t.visitChildren(this)}},hw=class extends p{constructor(t,e){super(t,e)}id_expr_in(){return this.getRuleContext(0,zY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_expr_in}accept(t){return t.visitAn_id_expr_in?t.visitAn_id_expr_in(this):t.visitChildren(this)}},Ew=class extends p{constructor(t,e){super(t,e)}id_window(){return this.getRuleContext(0,$Y)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_window}accept(t){return t.visitAn_id_window?t.visitAn_id_window(this):t.visitChildren(this)}},Tw=class extends p{constructor(t,e){super(t,e)}id_table(){return this.getRuleContext(0,tw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_table}accept(t){return t.visitAn_id_table?t.visitAn_id_table(this):t.visitChildren(this)}},ow=class extends p{constructor(t,e){super(t,e)}id_without(){return this.getRuleContext(0,ew)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_without}accept(t){return t.visitAn_id_without?t.visitAn_id_without(this):t.visitChildren(this)}},Rw=class extends p{constructor(t,e){super(t,e)}id_hint(){return this.getRuleContext(0,sw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_hint}accept(t){return t.visitAn_id_hint?t.visitAn_id_hint(this):t.visitChildren(this)}},Aw=class extends p{constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,JY)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_pure}accept(t){return t.visitAn_id_pure?t.visitAn_id_pure(this):t.visitChildren(this)}},Sw=class extends p{constructor(t,e){super(t,e)}id_as_compat(){return this.getRuleContext(0,aw)}STRING_VALUE(){return this.getToken(uG.STRING_VALUE,0)}get ruleIndex(){return uG.RULE_an_id_as_compat}accept(t){return t.visitAn_id_as_compat?t.visitAn_id_as_compat(this):t.visitChildren(this)}},lw=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}PRIMARY(){return this.getToken(uG.PRIMARY,0)}KEY(){return this.getToken(uG.KEY,0)}get ruleIndex(){return uG.RULE_view_name}accept(t){return t.visitView_name?t.visitView_name(this):t.visitChildren(this)}},Ow=class extends p{constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,iw)}DOT(){return this.getToken(uG.DOT,0)}get ruleIndex(){return uG.RULE_opt_id_prefix}accept(t){return t.visitOpt_id_prefix?t.visitOpt_id_prefix(this):t.visitChildren(this)}},Iw=class extends p{constructor(t,e){super(t,e)}pure_column_or_named(){return this.getRuleContext(0,PF)}ASTERISK(){return this.getToken(uG.ASTERISK,0)}an_id(){return this.getRuleContext(0,iw)}COLON(){return this.getToken(uG.COLON,0)}get ruleIndex(){return uG.RULE_cluster_expr}accept(t){return t.visitCluster_expr?t.visitCluster_expr(this):t.visitChildren(this)}},uw=class extends p{constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,ZY)}type_id(){return this.getRuleContext(0,Hw)}get ruleIndex(){return uG.RULE_id_or_type}accept(t){return t.visitId_or_type?t.visitId_or_type(this):t.visitChildren(this)}},Nw=class extends p{constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,rw)}DOT(){return this.getToken(uG.DOT,0)}get ruleIndex(){return uG.RULE_opt_id_prefix_or_type}accept(t){return t.visitOpt_id_prefix_or_type?t.visitOpt_id_prefix_or_type(this):t.visitChildren(this)}},Lw=class extends p{constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,rw)}AT(){return this.getToken(uG.AT,0)}get ruleIndex(){return uG.RULE_id_or_at}accept(t){return t.visitId_or_at?t.visitId_or_at(this):t.visitChildren(this)}},Cw=class extends p{constructor(t,e){super(t,e)}an_id_table(){return this.getRuleContext(0,Tw)}type_id(){return this.getRuleContext(0,Hw)}get ruleIndex(){return uG.RULE_id_table_or_type}accept(t){return t.visitId_table_or_type?t.visitId_table_or_type(this):t.visitChildren(this)}},_w=class extends p{constructor(t,e){super(t,e)}id_table_or_type(){return this.getRuleContext(0,Cw)}AT(){return this.getToken(uG.AT,0)}get ruleIndex(){return uG.RULE_id_table_or_at}accept(t){return t.visitId_table_or_at?t.visitId_table_or_at(this):t.visitChildren(this)}},Pw=class extends p{constructor(t,e){super(t,e)}keyword_compat(){return this.getRuleContext(0,kw)}keyword_expr_uncompat(){return this.getRuleContext(0,Mw)}keyword_table_uncompat(){return this.getRuleContext(0,dw)}keyword_select_uncompat(){return this.getRuleContext(0,Uw)}keyword_alter_uncompat(){return this.getRuleContext(0,mw)}keyword_in_uncompat(){return this.getRuleContext(0,Dw)}keyword_window_uncompat(){return this.getRuleContext(0,pw)}keyword_hint_uncompat(){return this.getRuleContext(0,gw)}get ruleIndex(){return uG.RULE_keyword}accept(t){return t.visitKeyword?t.visitKeyword(this):t.visitChildren(this)}},Mw=class extends p{constructor(t,e){super(t,e)}ASYMMETRIC(){return this.getToken(uG.ASYMMETRIC,0)}BETWEEN(){return this.getToken(uG.BETWEEN,0)}BITCAST(){return this.getToken(uG.BITCAST,0)}CASE(){return this.getToken(uG.CASE,0)}CAST(){return this.getToken(uG.CAST,0)}CUBE(){return this.getToken(uG.CUBE,0)}CURRENT_DATE(){return this.getToken(uG.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(uG.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(uG.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(uG.EMPTY_ACTION,0)}EXISTS(){return this.getToken(uG.EXISTS,0)}FROM(){return this.getToken(uG.FROM,0)}FULL(){return this.getToken(uG.FULL,0)}HOP(){return this.getToken(uG.HOP,0)}JSON_EXISTS(){return this.getToken(uG.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(uG.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(uG.JSON_QUERY,0)}LOCAL(){return this.getToken(uG.LOCAL,0)}NOT(){return this.getToken(uG.NOT,0)}NULL(){return this.getToken(uG.NULL,0)}PROCESS(){return this.getToken(uG.PROCESS,0)}REDUCE(){return this.getToken(uG.REDUCE,0)}RETURN(){return this.getToken(uG.RETURN,0)}RETURNING(){return this.getToken(uG.RETURNING,0)}ROLLUP(){return this.getToken(uG.ROLLUP,0)}SELECT(){return this.getToken(uG.SELECT,0)}SYMMETRIC(){return this.getToken(uG.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(uG.UNBOUNDED,0)}WHEN(){return this.getToken(uG.WHEN,0)}WHERE(){return this.getToken(uG.WHERE,0)}get ruleIndex(){return uG.RULE_keyword_expr_uncompat}accept(t){return t.visitKeyword_expr_uncompat?t.visitKeyword_expr_uncompat(this):t.visitChildren(this)}},dw=class extends p{constructor(t,e){super(t,e)}ANY(){return this.getToken(uG.ANY,0)}ERASE(){return this.getToken(uG.ERASE,0)}STREAM(){return this.getToken(uG.STREAM,0)}get ruleIndex(){return uG.RULE_keyword_table_uncompat}accept(t){return t.visitKeyword_table_uncompat?t.visitKeyword_table_uncompat(this):t.visitChildren(this)}},Uw=class extends p{constructor(t,e){super(t,e)}ALL(){return this.getToken(uG.ALL,0)}AS(){return this.getToken(uG.AS,0)}ASSUME(){return this.getToken(uG.ASSUME,0)}DISTINCT(){return this.getToken(uG.DISTINCT,0)}EXCEPT(){return this.getToken(uG.EXCEPT,0)}HAVING(){return this.getToken(uG.HAVING,0)}INTERSECT(){return this.getToken(uG.INTERSECT,0)}LIMIT(){return this.getToken(uG.LIMIT,0)}UNION(){return this.getToken(uG.UNION,0)}WINDOW(){return this.getToken(uG.WINDOW,0)}WITHOUT(){return this.getToken(uG.WITHOUT,0)}get ruleIndex(){return uG.RULE_keyword_select_uncompat}accept(t){return t.visitKeyword_select_uncompat?t.visitKeyword_select_uncompat(this):t.visitChildren(this)}},mw=class extends p{constructor(t,e){super(t,e)}COLUMN(){return this.getToken(uG.COLUMN,0)}get ruleIndex(){return uG.RULE_keyword_alter_uncompat}accept(t){return t.visitKeyword_alter_uncompat?t.visitKeyword_alter_uncompat(this):t.visitChildren(this)}},Dw=class extends p{constructor(t,e){super(t,e)}COMPACT(){return this.getToken(uG.COMPACT,0)}get ruleIndex(){return uG.RULE_keyword_in_uncompat}accept(t){return t.visitKeyword_in_uncompat?t.visitKeyword_in_uncompat(this):t.visitChildren(this)}},pw=class extends p{constructor(t,e){super(t,e)}GROUPS(){return this.getToken(uG.GROUPS,0)}RANGE(){return this.getToken(uG.RANGE,0)}ROWS(){return this.getToken(uG.ROWS,0)}get ruleIndex(){return uG.RULE_keyword_window_uncompat}accept(t){return t.visitKeyword_window_uncompat?t.visitKeyword_window_uncompat(this):t.visitChildren(this)}},gw=class extends p{constructor(t,e){super(t,e)}SCHEMA(){return this.getToken(uG.SCHEMA,0)}COLUMNS(){return this.getToken(uG.COLUMNS,0)}get ruleIndex(){return uG.RULE_keyword_hint_uncompat}accept(t){return t.visitKeyword_hint_uncompat?t.visitKeyword_hint_uncompat(this):t.visitChildren(this)}},xw=class extends p{constructor(t,e){super(t,e)}ATTRIBUTES(){return this.getToken(uG.ATTRIBUTES,0)}CONNECT(){return this.getToken(uG.CONNECT,0)}CONSUMER(){return this.getToken(uG.CONSUMER,0)}DATA(){return this.getToken(uG.DATA,0)}DESCRIBE(){return this.getToken(uG.DESCRIBE,0)}DIRECTORY(){return this.getToken(uG.DIRECTORY,0)}FIRST(){return this.getToken(uG.FIRST,0)}GRANT(){return this.getToken(uG.GRANT,0)}INITIAL(){return this.getToken(uG.INITIAL,0)}LAST(){return this.getToken(uG.LAST,0)}LEGACY(){return this.getToken(uG.LEGACY,0)}MANAGE(){return this.getToken(uG.MANAGE,0)}MATCHES(){return this.getToken(uG.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(uG.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(uG.MEASURES,0)}MICROSECONDS(){return this.getToken(uG.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(uG.MILLISECONDS,0)}MODIFY(){return this.getToken(uG.MODIFY,0)}NANOSECONDS(){return this.getToken(uG.NANOSECONDS,0)}NEXT(){return this.getToken(uG.NEXT,0)}OMIT(){return this.getToken(uG.OMIT,0)}ONE(){return this.getToken(uG.ONE,0)}OPTION(){return this.getToken(uG.OPTION,0)}PARALLEL(){return this.getToken(uG.PARALLEL,0)}PAST(){return this.getToken(uG.PAST,0)}PATTERN(){return this.getToken(uG.PATTERN,0)}PER(){return this.getToken(uG.PER,0)}PERMUTE(){return this.getToken(uG.PERMUTE,0)}PRIVILEGES(){return this.getToken(uG.PRIVILEGES,0)}QUEUE(){return this.getToken(uG.QUEUE,0)}REMOVE(){return this.getToken(uG.REMOVE,0)}REPLICATION(){return this.getToken(uG.REPLICATION,0)}REVOKE(){return this.getToken(uG.REVOKE,0)}SECONDS(){return this.getToken(uG.SECONDS,0)}SEEK(){return this.getToken(uG.SEEK,0)}SHOW(){return this.getToken(uG.SHOW,0)}SKIP_RULE(){return this.getToken(uG.SKIP_RULE,0)}SOURCE(){return this.getToken(uG.SOURCE,0)}SUBSET(){return this.getToken(uG.SUBSET,0)}TABLES(){return this.getToken(uG.TABLES,0)}TOPIC(){return this.getToken(uG.TOPIC,0)}TYPE(){return this.getToken(uG.TYPE,0)}UNMATCHED(){return this.getToken(uG.UNMATCHED,0)}get ruleIndex(){return uG.RULE_keyword_as_compat}accept(t){return t.visitKeyword_as_compat?t.visitKeyword_as_compat(this):t.visitChildren(this)}},kw=class extends p{constructor(t,e){super(t,e)}ABORT(){return this.getToken(uG.ABORT,0)}ACTION(){return this.getToken(uG.ACTION,0)}ADD(){return this.getToken(uG.ADD,0)}AFTER(){return this.getToken(uG.AFTER,0)}ALTER(){return this.getToken(uG.ALTER,0)}ANALYZE(){return this.getToken(uG.ANALYZE,0)}AND(){return this.getToken(uG.AND,0)}ANSI(){return this.getToken(uG.ANSI,0)}ARRAY(){return this.getToken(uG.ARRAY,0)}ASC(){return this.getToken(uG.ASC,0)}ASYNC(){return this.getToken(uG.ASYNC,0)}ATTACH(){return this.getToken(uG.ATTACH,0)}ATTRIBUTES(){return this.getToken(uG.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(uG.AUTOINCREMENT,0)}BEFORE(){return this.getToken(uG.BEFORE,0)}BEGIN(){return this.getToken(uG.BEGIN,0)}BERNOULLI(){return this.getToken(uG.BERNOULLI,0)}BY(){return this.getToken(uG.BY,0)}CASCADE(){return this.getToken(uG.CASCADE,0)}CHANGEFEED(){return this.getToken(uG.CHANGEFEED,0)}CHECK(){return this.getToken(uG.CHECK,0)}COLLATE(){return this.getToken(uG.COLLATE,0)}COMMIT(){return this.getToken(uG.COMMIT,0)}CONDITIONAL(){return this.getToken(uG.CONDITIONAL,0)}CONFLICT(){return this.getToken(uG.CONFLICT,0)}CONNECT(){return this.getToken(uG.CONNECT,0)}CONSTRAINT(){return this.getToken(uG.CONSTRAINT,0)}CONSUMER(){return this.getToken(uG.CONSUMER,0)}COVER(){return this.getToken(uG.COVER,0)}CREATE(){return this.getToken(uG.CREATE,0)}CROSS(){return this.getToken(uG.CROSS,0)}CURRENT(){return this.getToken(uG.CURRENT,0)}DATA(){return this.getToken(uG.DATA,0)}DATABASE(){return this.getToken(uG.DATABASE,0)}DECIMAL(){return this.getToken(uG.DECIMAL,0)}DECLARE(){return this.getToken(uG.DECLARE,0)}DEFAULT(){return this.getToken(uG.DEFAULT,0)}DEFERRABLE(){return this.getToken(uG.DEFERRABLE,0)}DEFERRED(){return this.getToken(uG.DEFERRED,0)}DEFINE(){return this.getToken(uG.DEFINE,0)}DELETE(){return this.getToken(uG.DELETE,0)}DESC(){return this.getToken(uG.DESC,0)}DESCRIBE(){return this.getToken(uG.DESCRIBE,0)}DETACH(){return this.getToken(uG.DETACH,0)}DIRECTORY(){return this.getToken(uG.DIRECTORY,0)}DISABLE(){return this.getToken(uG.DISABLE,0)}DISCARD(){return this.getToken(uG.DISCARD,0)}DO(){return this.getToken(uG.DO,0)}DROP(){return this.getToken(uG.DROP,0)}EACH(){return this.getToken(uG.EACH,0)}ELSE(){return this.getToken(uG.ELSE,0)}EMPTY(){return this.getToken(uG.EMPTY,0)}ENCRYPTED(){return this.getToken(uG.ENCRYPTED,0)}END(){return this.getToken(uG.END,0)}ERROR(){return this.getToken(uG.ERROR,0)}ESCAPE(){return this.getToken(uG.ESCAPE,0)}EVALUATE(){return this.getToken(uG.EVALUATE,0)}EXCLUDE(){return this.getToken(uG.EXCLUDE,0)}EXCLUSION(){return this.getToken(uG.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(uG.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(uG.EXPLAIN,0)}EXPORT(){return this.getToken(uG.EXPORT,0)}EXTERNAL(){return this.getToken(uG.EXTERNAL,0)}FAIL(){return this.getToken(uG.FAIL,0)}FAMILY(){return this.getToken(uG.FAMILY,0)}FILTER(){return this.getToken(uG.FILTER,0)}FIRST(){return this.getToken(uG.FIRST,0)}FLATTEN(){return this.getToken(uG.FLATTEN,0)}FOLLOWING(){return this.getToken(uG.FOLLOWING,0)}FOR(){return this.getToken(uG.FOR,0)}FOREIGN(){return this.getToken(uG.FOREIGN,0)}FUNCTION(){return this.getToken(uG.FUNCTION,0)}GLOB(){return this.getToken(uG.GLOB,0)}GRANT(){return this.getToken(uG.GRANT,0)}GROUP(){return this.getToken(uG.GROUP,0)}GROUPING(){return this.getToken(uG.GROUPING,0)}HASH(){return this.getToken(uG.HASH,0)}IF(){return this.getToken(uG.IF,0)}IGNORE(){return this.getToken(uG.IGNORE,0)}ILIKE(){return this.getToken(uG.ILIKE,0)}IMMEDIATE(){return this.getToken(uG.IMMEDIATE,0)}IMPORT(){return this.getToken(uG.IMPORT,0)}IN(){return this.getToken(uG.IN,0)}INDEX(){return this.getToken(uG.INDEX,0)}INDEXED(){return this.getToken(uG.INDEXED,0)}INHERITS(){return this.getToken(uG.INHERITS,0)}INITIAL(){return this.getToken(uG.INITIAL,0)}INITIALLY(){return this.getToken(uG.INITIALLY,0)}INNER(){return this.getToken(uG.INNER,0)}INSERT(){return this.getToken(uG.INSERT,0)}INSTEAD(){return this.getToken(uG.INSTEAD,0)}INTO(){return this.getToken(uG.INTO,0)}IS(){return this.getToken(uG.IS,0)}ISNULL(){return this.getToken(uG.ISNULL,0)}JOIN(){return this.getToken(uG.JOIN,0)}KEY(){return this.getToken(uG.KEY,0)}LAST(){return this.getToken(uG.LAST,0)}LEFT(){return this.getToken(uG.LEFT,0)}LEGACY(){return this.getToken(uG.LEGACY,0)}LIKE(){return this.getToken(uG.LIKE,0)}MANAGE(){return this.getToken(uG.MANAGE,0)}MATCH(){return this.getToken(uG.MATCH,0)}MATCHES(){return this.getToken(uG.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(uG.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(uG.MEASURES,0)}MICROSECONDS(){return this.getToken(uG.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(uG.MILLISECONDS,0)}MODIFY(){return this.getToken(uG.MODIFY,0)}NANOSECONDS(){return this.getToken(uG.NANOSECONDS,0)}NATURAL(){return this.getToken(uG.NATURAL,0)}NEXT(){return this.getToken(uG.NEXT,0)}NO(){return this.getToken(uG.NO,0)}NOTNULL(){return this.getToken(uG.NOTNULL,0)}NULLS(){return this.getToken(uG.NULLS,0)}OBJECT(){return this.getToken(uG.OBJECT,0)}OF(){return this.getToken(uG.OF,0)}OFFSET(){return this.getToken(uG.OFFSET,0)}OMIT(){return this.getToken(uG.OMIT,0)}ON(){return this.getToken(uG.ON,0)}ONE(){return this.getToken(uG.ONE,0)}ONLY(){return this.getToken(uG.ONLY,0)}OPTION(){return this.getToken(uG.OPTION,0)}OR(){return this.getToken(uG.OR,0)}ORDER(){return this.getToken(uG.ORDER,0)}OTHERS(){return this.getToken(uG.OTHERS,0)}OUTER(){return this.getToken(uG.OUTER,0)}OVER(){return this.getToken(uG.OVER,0)}PARALLEL(){return this.getToken(uG.PARALLEL,0)}PARTITION(){return this.getToken(uG.PARTITION,0)}PASSING(){return this.getToken(uG.PASSING,0)}PASSWORD(){return this.getToken(uG.PASSWORD,0)}PAST(){return this.getToken(uG.PAST,0)}PATTERN(){return this.getToken(uG.PATTERN,0)}PER(){return this.getToken(uG.PER,0)}PERMUTE(){return this.getToken(uG.PERMUTE,0)}PLAN(){return this.getToken(uG.PLAN,0)}PRAGMA(){return this.getToken(uG.PRAGMA,0)}PRECEDING(){return this.getToken(uG.PRECEDING,0)}PRESORT(){return this.getToken(uG.PRESORT,0)}PRIMARY(){return this.getToken(uG.PRIMARY,0)}PRIVILEGES(){return this.getToken(uG.PRIVILEGES,0)}QUEUE(){return this.getToken(uG.QUEUE,0)}RAISE(){return this.getToken(uG.RAISE,0)}REFERENCES(){return this.getToken(uG.REFERENCES,0)}REGEXP(){return this.getToken(uG.REGEXP,0)}REINDEX(){return this.getToken(uG.REINDEX,0)}RELEASE(){return this.getToken(uG.RELEASE,0)}REMOVE(){return this.getToken(uG.REMOVE,0)}RENAME(){return this.getToken(uG.RENAME,0)}REPLACE(){return this.getToken(uG.REPLACE,0)}REPLICATION(){return this.getToken(uG.REPLICATION,0)}RESET(){return this.getToken(uG.RESET,0)}RESPECT(){return this.getToken(uG.RESPECT,0)}RESTRICT(){return this.getToken(uG.RESTRICT,0)}RESULT(){return this.getToken(uG.RESULT,0)}REVERT(){return this.getToken(uG.REVERT,0)}REVOKE(){return this.getToken(uG.REVOKE,0)}RIGHT(){return this.getToken(uG.RIGHT,0)}RLIKE(){return this.getToken(uG.RLIKE,0)}ROLLBACK(){return this.getToken(uG.ROLLBACK,0)}ROW(){return this.getToken(uG.ROW,0)}SAMPLE(){return this.getToken(uG.SAMPLE,0)}SAVEPOINT(){return this.getToken(uG.SAVEPOINT,0)}SECONDS(){return this.getToken(uG.SECONDS,0)}SEEK(){return this.getToken(uG.SEEK,0)}SEMI(){return this.getToken(uG.SEMI,0)}SETS(){return this.getToken(uG.SETS,0)}SHOW(){return this.getToken(uG.SHOW,0)}SKIP_RULE(){return this.getToken(uG.SKIP_RULE,0)}SOURCE(){return this.getToken(uG.SOURCE,0)}SUBQUERY(){return this.getToken(uG.SUBQUERY,0)}SUBSET(){return this.getToken(uG.SUBSET,0)}SYMBOLS(){return this.getToken(uG.SYMBOLS,0)}SYNC(){return this.getToken(uG.SYNC,0)}SYSTEM(){return this.getToken(uG.SYSTEM,0)}TABLE(){return this.getToken(uG.TABLE,0)}TABLES(){return this.getToken(uG.TABLES,0)}TABLESAMPLE(){return this.getToken(uG.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(uG.TABLESTORE,0)}TEMP(){return this.getToken(uG.TEMP,0)}TEMPORARY(){return this.getToken(uG.TEMPORARY,0)}THEN(){return this.getToken(uG.THEN,0)}TIES(){return this.getToken(uG.TIES,0)}TO(){return this.getToken(uG.TO,0)}TOPIC(){return this.getToken(uG.TOPIC,0)}TRANSACTION(){return this.getToken(uG.TRANSACTION,0)}TRIGGER(){return this.getToken(uG.TRIGGER,0)}TYPE(){return this.getToken(uG.TYPE,0)}UNCONDITIONAL(){return this.getToken(uG.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(uG.UNIQUE,0)}UNKNOWN(){return this.getToken(uG.UNKNOWN,0)}UNMATCHED(){return this.getToken(uG.UNMATCHED,0)}UPDATE(){return this.getToken(uG.UPDATE,0)}UPSERT(){return this.getToken(uG.UPSERT,0)}USE(){return this.getToken(uG.USE,0)}USER(){return this.getToken(uG.USER,0)}USING(){return this.getToken(uG.USING,0)}VACUUM(){return this.getToken(uG.VACUUM,0)}VALUES(){return this.getToken(uG.VALUES,0)}VIEW(){return this.getToken(uG.VIEW,0)}VIRTUAL(){return this.getToken(uG.VIRTUAL,0)}WITH(){return this.getToken(uG.WITH,0)}WRAPPER(){return this.getToken(uG.WRAPPER,0)}XOR(){return this.getToken(uG.XOR,0)}get ruleIndex(){return uG.RULE_keyword_compat}accept(t){return t.visitKeyword_compat?t.visitKeyword_compat(this):t.visitChildren(this)}},Hw=class extends p{constructor(t,e){super(t,e)}OPTIONAL(){return this.getToken(uG.OPTIONAL,0)}TUPLE(){return this.getToken(uG.TUPLE,0)}STRUCT(){return this.getToken(uG.STRUCT,0)}VARIANT(){return this.getToken(uG.VARIANT,0)}LIST(){return this.getToken(uG.LIST,0)}FLOW(){return this.getToken(uG.FLOW,0)}DICT(){return this.getToken(uG.DICT,0)}SET(){return this.getToken(uG.SET,0)}ENUM(){return this.getToken(uG.ENUM,0)}RESOURCE(){return this.getToken(uG.RESOURCE,0)}TAGGED(){return this.getToken(uG.TAGGED,0)}CALLABLE(){return this.getToken(uG.CALLABLE,0)}get ruleIndex(){return uG.RULE_type_id}accept(t){return t.visitType_id?t.visitType_id(this):t.visitChildren(this)}},Gw=class extends p{constructor(t,e){super(t,e)}TRUE(){return this.getToken(uG.TRUE,0)}FALSE(){return this.getToken(uG.FALSE,0)}get ruleIndex(){return uG.RULE_bool_value}accept(t){return t.visitBool_value?t.visitBool_value(this):t.visitChildren(this)}},Fw=class extends p{constructor(t,e){super(t,e)}REAL(){return this.getToken(uG.REAL,0)}get ruleIndex(){return uG.RULE_real}accept(t){return t.visitReal?t.visitReal(this):t.visitChildren(this)}},vw=class extends p{constructor(t,e){super(t,e)}DIGITS(){return this.getToken(uG.DIGITS,0)}INTEGER_VALUE(){return this.getToken(uG.INTEGER_VALUE,0)}get ruleIndex(){return uG.RULE_integer}accept(t){return t.visitInteger?t.visitInteger(this):t.visitChildren(this)}},Bw=class extends p{constructor(t,e){super(t,e)}sql_stmt_list_yq(){return this.getRuleContext(0,yw)}PRAGMA(){return this.getToken(uG.PRAGMA,0)}ANSI(){return this.getToken(uG.ANSI,0)}DIGITS(){return this.getToken(uG.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,CG)}get ruleIndex(){return uG.RULE_sql_query_yq}accept(t){return t.visitSql_query_yq?t.visitSql_query_yq(this):t.visitChildren(this)}},yw=class extends p{constructor(t,e){super(t,e)}sql_stmt_yq(t){return void 0===t?this.getRuleContexts(fw):this.getRuleContext(t,fw)}EOF(){return this.getToken(uG.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(uG.SEMICOLON):this.getToken(uG.SEMICOLON,t)}get ruleIndex(){return uG.RULE_sql_stmt_list_yq}accept(t){return t.visitSql_stmt_list_yq?t.visitSql_stmt_list_yq(this):t.visitChildren(this)}},fw=class extends p{constructor(t,e){super(t,e)}sql_stmt_core_yq(){return this.getRuleContext(0,Yw)}EXPLAIN(){return this.getToken(uG.EXPLAIN,0)}QUERY(){return this.getToken(uG.QUERY,0)}PLAN(){return this.getToken(uG.PLAN,0)}get ruleIndex(){return uG.RULE_sql_stmt_yq}accept(t){return t.visitSql_stmt_yq?t.visitSql_stmt_yq(this):t.visitChildren(this)}},Yw=class extends p{constructor(t,e){super(t,e)}pragma_stmt(){return this.getRuleContext(0,Pv)}select_stmt(){return this.getRuleContext(0,mv)}named_nodes_stmt(){return this.getRuleContext(0,XY)}use_stmt(){return this.getRuleContext(0,WY)}into_table_stmt_yq(){return this.getRuleContext(0,YB)}declare_stmt(){return this.getRuleContext(0,Ov)}import_stmt(){return this.getRuleContext(0,uv)}export_stmt(){return this.getRuleContext(0,Nv)}do_stmt(){return this.getRuleContext(0,_v)}define_action_or_subquery_stmt(){return this.getRuleContext(0,kf)}if_stmt(){return this.getRuleContext(0,Gf)}for_stmt(){return this.getRuleContext(0,Ff)}values_stmt(){return this.getRuleContext(0,bB)}get ruleIndex(){return uG.RULE_sql_stmt_core_yq}accept(t){return t.visitSql_stmt_core_yq?t.visitSql_stmt_core_yq(this):t.visitChildren(this)}},ww=class extends p{constructor(t,e){super(t,e)}AS(){return this.getToken(uG.AS,0)}object_ref(){return this.getRuleContext(0,wf)}get ruleIndex(){return uG.RULE_replication_name}accept(t){return t.visitReplication_name?t.visitReplication_name(this):t.visitChildren(this)}},bw=class extends p{constructor(t,e){super(t,e)}WHERE(){return this.getToken(uG.WHERE,0)}expr(){return this.getRuleContext(0,UG)}get ruleIndex(){return uG.RULE_where_expr}accept(t){return t.visitWhere_expr?t.visitWhere_expr(this):t.visitChildren(this)}},Ww=class extends p{constructor(t,e){super(t,e)}FROM(){return this.getToken(uG.FROM,0)}join_source(){return this.getRuleContext(0,UB)}get ruleIndex(){return uG.RULE_from_stmt}accept(t){return t.visitFrom_stmt?t.visitFrom_stmt(this):t.visitChildren(this)}},Vw=class extends p{constructor(t,e){super(t,e)}alter_table_stmt(){return this.getRuleContext(0,Ly)}alter_table_store_stmt(){return this.getRuleContext(0,My)}get ruleIndex(){return uG.RULE_alter_table_for_autocomplete}accept(t){return t.visitAlter_table_for_autocomplete?t.visitAlter_table_for_autocomplete(this):t.visitChildren(this)}},Xw=class extends Oe{},Kw={SPACE:uG.WS,FROM:uG.FROM,OPENING_BRACKET:uG.LPAREN,CLOSING_BRACKET:uG.RPAREN,ALTER:uG.ALTER,INSERT:uG.INSERT,UPDATE:uG.UPDATE,JOIN:uG.JOIN,SEMICOLON:uG.SEMICOLON,SELECT:uG.SELECT};function Qw(t){let e=new Map(t.map((t=>[t,!0])));return{anyRuleInList:t=>(Array.isArray(t)?t:[t]).some((t=>e.has(t))),allRulesInList:t=>!t.some((t=>!e.has(t)))}}var Jw=uG.ruleNames;function Zw(t){let e=t.findIndex((t=>t===uG.RULE_sql_stmt_core||t===uG.RULE_sql_stmt_core_yq));if(-1===e)return;let s=t[e+1];return s?Jw[s]:void 0}var qw={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function jw(t,e,s){let a={...Qw(t),cursorTokenIndex:e,tokenStream:s},i=function({anyRuleInList:t,allRulesInList:e}){if(e([uG.RULE_select_stmt,uG.RULE_id_expr]))return!t([uG.RULE_window_specification_details,uG.RULE_group_by_clause,uG.RULE_table_ref,uG.RULE_where_expr])||void 0}(a),r=function({anyRuleInList:t}){return t([uG.RULE_alter_object_stmt,uG.RULE_drop_object_stmt])&&t(uG.RULE_id_or_at)}(a),c=function({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(uG.RULE_id_or_at))return;let a=t(uG.RULE_drop_table_stmt)&&!!VO(e,Kw,s,uG.TABLESTORE);return t(uG.RULE_alter_table_store_stmt)||a}(a),n=function({anyRuleInList:t,allRulesInList:e,tokenStream:s,cursorTokenIndex:a}){if(!t([uG.RULE_id_or_at,uG.RULE_id_table_or_type]))return;let i=t(uG.RULE_replication_target)&&!t(uG.RULE_replication_name),r=e([uG.RULE_simple_table_ref])&&!VO(s,Kw,a,uG.CREATE)&&!VO(s,Kw,a,uG.EXTERNAL);return t([uG.RULE_table_ref,uG.RULE_table_inherits])||r||i}(a),h=function({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(uG.RULE_role_name))return;let a=!!VO(e,Kw,s,uG.USER),i=!!VO(e,Kw,s,uG.RENAME),r=t(uG.RULE_revoke_permissions_stmt),c=t(uG.RULE_alter_group_stmt)&&!i&&a,n=t(uG.RULE_create_group_stmt)&&a,h=t(uG.RULE_alter_user_stmt)&&!i;return t(uG.RULE_drop_role_stmt)&&a||h||n||c||r}(a),E=function({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(uG.RULE_role_name))return;let a=!!VO(e,Kw,s,uG.GROUP),i=!!VO(e,Kw,s,uG.USER),r=!!VO(e,Kw,s,uG.RENAME),c=t(uG.RULE_drop_role_stmt)&&a,n=t(uG.RULE_alter_group_stmt)&&!r&&!i;return t(uG.RULE_revoke_permissions_stmt)||n||c}(a),T=function({anyRuleInList:t}){if(t([uG.RULE_an_id,uG.RULE_topic_ref]))return t([uG.RULE_drop_topic_stmt,uG.RULE_alter_topic_stmt])}(a),o=function({allRulesInList:t}){return t([uG.RULE_drop_view_stmt,uG.RULE_id_or_at])||t([uG.RULE_table_ref,uG.RULE_id_table_or_type])}(a),R=function({anyRuleInList:t}){if(t(uG.RULE_id_or_at))return t([uG.RULE_alter_replication_stmt,uG.RULE_drop_replication_stmt])}(a),A=function({allRulesInList:t,tokenStream:e,cursorTokenIndex:s}){let a=!!VO(e,Kw,s,uG.EXTERNAL);return t([uG.RULE_id_or_at,uG.RULE_drop_table_stmt])&&a||t([uG.RULE_table_ref,uG.RULE_id_table_or_type])}(a),S=function({anyRuleInList:t}){if(t(uG.RULE_id_or_at))return t([uG.RULE_drop_external_data_source_stmt,uG.RULE_alter_external_data_source_stmt])}(a),l=function({anyRuleInList:t}){if(t(uG.RULE_an_id))return t([uG.RULE_alter_table_drop_index,uG.RULE_alter_table_rename_index_to])}(a),O=function({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t([uG.RULE_an_id,uG.RULE_id_expr])||t([uG.RULE_table_ref,uG.RULE_values_stmt,uG.RULE_alter_table_add_column,uG.RULE_lambda_stmt]))return;let a=t(uG.RULE_select_kind)&&!VO(e,Kw,s,uG.LIMIT),i=t(uG.RULE_alter_table_alter_column)&&!VO(e,Kw,s,uG.FAMILY);return t([uG.RULE_pure_column_list,uG.RULE_pure_column_or_named,uG.RULE_column_name,uG.RULE_without_column_name,uG.RULE_alter_table_drop_column,uG.RULE_delete_stmt])||i||a}(a),I=function({anyRuleInList:t,allRulesInList:e}){let s=e([uG.RULE_id_expr,uG.RULE_select_stmt])&&!t(uG.RULE_table_ref);return t(uG.RULE_type_name_simple)||s}(a),u=function({allRulesInList:t}){return t([uG.RULE_an_id,uG.RULE_pragma_stmt])}(a),N=function({anyRuleInList:t}){if(t([uG.RULE_atom_expr,uG.RULE_in_atom_expr])&&!t(uG.RULE_table_ref))return t(uG.RULE_select_stmt)}(a),L=function({allRulesInList:t}){return t([uG.RULE_id_expr,uG.RULE_table_ref])}(a),C=function({anyRuleInList:t}){if(t(uG.RULE_id_expr)&&!t(uG.RULE_table_ref))return t(uG.RULE_select_stmt)}(a),_=function({anyRuleInList:t,allRulesInList:e}){if(e([uG.RULE_select_stmt,uG.RULE_id_expr]))return!t([uG.RULE_group_by_clause,uG.RULE_table_ref,uG.RULE_where_expr])||void 0}(a),P=function({allRulesInList:t}){return t([uG.RULE_an_id_hint,uG.RULE_table_hint])}(a),M=function({allRulesInList:t,anyRuleInList:e}){if(!e([uG.RULE_table_setting_value,uG.RULE_topic_setting_value,uG.RULE_topic_consumer_setting_value])){if(t([uG.RULE_with_table_settings,uG.RULE_an_id]))return e(uG.RULE_create_external_data_source_stmt)?"externalDataSource":e(uG.RULE_create_view_stmt)?"view":e(uG.RULE_create_table_stmt)?"table":void 0;if(t([uG.RULE_with_topic_settings,uG.RULE_an_id]))return"topic";if(t([uG.RULE_topic_consumer_with_settings,uG.RULE_an_id]))return"topicConsumer";if(t([uG.RULE_replication_settings,uG.RULE_an_id]))return"replication"}}(a);return{suggestWindowFunctions:i,shouldSuggestTableIndexes:l,shouldSuggestColumns:O,shouldSuggestColumnAliases:O,suggestSimpleTypes:I,suggestPragmas:u,suggestUdfs:N,suggestTableFunctions:L,suggestFunctions:C,suggestAggregateFunctions:_,suggestTableHints:P?Zw(t):void 0,suggestEntitySettings:M,suggestObject:r,suggestTableStore:c,suggestTable:n,suggestUser:h,suggestGroup:E,suggestTopic:T,suggestView:o,suggestReplication:R,suggestExternalTable:A,suggestExternalDatasource:S}}var zw=new Set(function(){let t=[],e=uG.EQUALS,s=uG.LBRACE_SQUARE;for(let a=e;a<=s;a++)a!==uG.ASTERISK&&t.push(a);return t.push(uG.STREAM),t.push(uG.STRING_VALUE),t.push(uG.REAL),t.push(uG.EOF),t.push(uG.DIGITS),t.push(uG.BLOB),t.push(uG.CURRENT_TIME),t.push(uG.CURRENT_DATE),t.push(uG.CURRENT_TIMESTAMP),t}()),$w=new Set([uG.RULE_id_or_type,uG.RULE_cluster_expr,uG.RULE_identifier,uG.RULE_id,uG.RULE_integer,uG.RULE_type_id,uG.RULE_keyword,uG.RULE_keyword_compat,uG.RULE_keyword_expr_uncompat,uG.RULE_keyword_table_uncompat,uG.RULE_keyword_select_uncompat,uG.RULE_keyword_alter_uncompat,uG.RULE_keyword_in_uncompat,uG.RULE_keyword_window_uncompat,uG.RULE_keyword_hint_uncompat,uG.RULE_id_schema,uG.RULE_id_expr_in,uG.RULE_id_window,uG.RULE_id_table,uG.RULE_id_without,uG.RULE_id_hint,uG.RULE_id_as_compat]),tb=class extends Xw{constructor(){super(),this.visitSimple_table_ref_core=t=>{try{let e=t.object_ref()?.id_or_at()?.an_id_or_type()?.getText();e&&this.symbolTable.addNewSymbolOfType(Ss,this.scope,e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitAlter_table_store_stmt=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.object_ref()?.id_or_at()?.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitNamed_single_source=t=>{try{this.symbolTable.addNewSymbolOfType(Ss,this.scope,t.single_source().table_ref()?.getText()??"",t.an_id()?.getText()??t.an_id_as_compat()?.getText())}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitNamed_column=t=>{try{let e=t.an_id()?.getText();e&&this.symbolTable.addNewSymbolOfType(Os,this.scope,e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitNamed_expr=t=>{try{let e=t.an_id_or_type()?.getText();e&&this.symbolTable.addNewSymbolOfType(Os,this.scope,e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.visitResult_column=t=>{try{let e=t.an_id_or_type()?.getText()??t.an_id_as_compat()?.getText();e&&this.symbolTable.addNewSymbolOfType(Os,this.scope,e)}catch(Is){if(!(Is instanceof es))throw Is}return this.visitChildren(t)},this.symbolTable=new As("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ss,void 0)}};function eb(t,e){return e?ab(t,e):t.sql_query()}function sb(t,e){return e?ab(t,e):t.sql_query_yq()}function ab(t,e){switch(e){case"from":return t.from_stmt();case"alter":return t.alter_table_for_autocomplete();case"insert":return t.into_table_stmt();case"update":return t.update_stmt();case"select":return t.select_core()}}function ib(t){return(e,s,a,i,r,c)=>{let{shouldSuggestColumns:n,shouldSuggestColumnAliases:h,shouldSuggestTableIndexes:E,...T}=function(t,e,s){let a={};for(let[O,I]of t){if(!vO(e,I))break;switch(O){case uG.RULE_id_table:case uG.RULE_id_hint:case uG.RULE_identifier:case uG.RULE_id_or_type:case uG.RULE_id:{let t=jw(I.ruleList,e,s),i=Object.fromEntries(Object.entries(t).filter((([t,e])=>e)));a={...a,...i}}}}let{suggestObject:i,suggestTableStore:r,suggestTable:c,suggestUser:n,suggestGroup:h,suggestTopic:E,suggestView:T,suggestReplication:o,suggestExternalTable:R,suggestExternalDatasource:A,...S}=a,l=Object.entries({suggestObject:i,suggestTableStore:r,suggestTable:c,suggestUser:n,suggestGroup:h,suggestTopic:E,suggestView:T,suggestReplication:o,suggestExternalTable:R,suggestExternalDatasource:A}).filter((([t,e])=>e)).map((([t])=>qw[t]));return{suggestEntity:l.length?l:void 0,...S}}(s,i,a),o={...e,...T,suggestTemplates:YO(c,r)};if(n||h||E){let e=new tb,{tableContextSuggestion:s,suggestColumnAliases:i}=XO(IG,uG,e,Kw,t,a,r,c,!0);n&&s&&(o.suggestColumns={tables:s.tables}),E&&s&&(o.suggestTableIndexes={tables:s.tables}),h&&i&&(o.suggestColumnAliases=i)}return o}}var rb=new NG(null,-1),cb={Lexer:IG,Parser:uG,tokenDictionary:Kw,ignoredTokens:zw,rulesToVisit:$w,getParseTree:eb,enrichAutocompleteResult:ib(eb),context:rb},nb=new Bw(null,-1),hb={Lexer:IG,Parser:uG,tokenDictionary:Kw,ignoredTokens:zw,rulesToVisit:$w,getParseTree:sb,enrichAutocompleteResult:ib(sb),context:nb};function Eb(t,e,s,a,i){let r=wO(t,e,i),c=new Bp(s.SPACE);return r.removeErrorListeners(),r.addErrorListener(c),a(r),{errors:c.errors}}var Tb=/^'(.*)'$/;function ob(t,e,s,a,i,r,c,n,h,E){let T=wO(t,e,n),{tokenStream:o}=T,R=new Bp(s.SPACE);T.removeErrorListeners(),T.addErrorListener(R),r(T);let A=new Rs(T);A.ignoredTokens=a,A.preferredRules=i;let S=FO(o,h,s.SPACE);if(void 0===S)throw new Error(`Could not find cursor token index for line: ${h.line}, column: ${h.column}`);let l=[],{tokens:O,rules:I}=A.collectCandidates(S,E);return O.forEach(((t,e)=>{let s=T.vocabulary.getLiteralName(e)?.replace(Tb,"$1")||T.vocabulary.getSymbolicName(e);if(!s)throw new Error(`Could not get name for token ${e}`);l.push({value:s})})),c({errors:R.errors,suggestKeywords:l},I,o,S,h,n)}function Rb(t){return Eb(vp.Lexer,vp.Parser,vp.tokenDictionary,vp.getParseTree,t)}function Ab(t,e){return ob(vp.Lexer,vp.Parser,vp.tokenDictionary,vp.ignoredTokens,vp.rulesToVisit,vp.getParseTree,vp.enrichAutocompleteResult,t,e)}function Sb(t){return Eb(jO.Lexer,jO.Parser,jO.tokenDictionary,jO.getParseTree,t)}function lb(t,e){return ob(jO.Lexer,jO.Parser,jO.tokenDictionary,jO.ignoredTokens,jO.rulesToVisit,jO.getParseTree,jO.enrichAutocompleteResult,t,e)}function Ob(t){return Eb(OG.Lexer,OG.Parser,OG.tokenDictionary,OG.getParseTree,t)}function Ib(t,e){return ob(OG.Lexer,OG.Parser,OG.tokenDictionary,OG.ignoredTokens,OG.rulesToVisit,OG.getParseTree,OG.enrichAutocompleteResult,t,e)}function ub(t){return Eb(cb.Lexer,cb.Parser,cb.tokenDictionary,cb.getParseTree,t)}function Nb(t,e){return ob(cb.Lexer,cb.Parser,cb.tokenDictionary,cb.ignoredTokens,cb.rulesToVisit,cb.getParseTree,cb.enrichAutocompleteResult,t,e,cb.context)}function Lb(t){return Eb(hb.Lexer,hb.Parser,hb.tokenDictionary,hb.getParseTree,t)}function Cb(t,e){return ob(hb.Lexer,hb.Parser,hb.tokenDictionary,hb.ignoredTokens,hb.rulesToVisit,hb.getParseTree,hb.enrichAutocompleteResult,t,e,hb.context)}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2136.b0ce42ab.chunk.js b/ydb/core/viewer/monitoring/static/js/2136.b0ce42ab.chunk.js deleted file mode 100644 index 1e8eae1a43..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2136.b0ce42ab.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2136],{55982:(e,t,a)=>{a.d(t,{U:()=>d});var n=a(34706),r=a(72616),o=a(16318),s=a(47945),i=a(51403),l=a(10161);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:p,buttonDisabled:h=!1,buttonView:m="action",buttonClassName:b,withPopover:g=!1,popoverContent:y,popoverPlacement:v="right",popoverDisabled:x=!0}=e;const[w,T]=n.useState(!1),[j,f]=n.useState(!1),[N,C]=n.useState(!1),S=()=>(0,l.jsx)(r.z,{onClick:()=>T(!0),view:m,disabled:h,loading:!h&&j,className:b,children:t});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(s.g,{visible:w,header:c,text:u,withRetry:N,retryButtonText:p,onConfirm:async e=>{f(!0),await a(e)},onConfirmActionSuccess:async()=>{C(!1);try{await(null===d||void 0===d?void 0:d())}finally{f(!1)}},onConfirmActionError:e=>{C((0,i.q)(e)),f(!1)},onClose:()=>{T(!1)}}),g?(0,l.jsx)(o.J,{content:y,placement:v,disabled:x,children:S()}):S()]})}},47945:(e,t,a)=>{a.d(t,{g:()=>g});var n=a(34706),r=a(3948),o=a(15268),s=a(19912),i=a(68585),l=a(14561),d=a(99294),c=a(37711);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"}'),p=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var h=a(10161);const m=(0,d.cn)("ydb-critical-dialog"),b=e=>403===e.status?p("no-rights-error"):e.statusText?e.statusText:p("default-error");function g(e){let{visible:t,header:a,text:d,withRetry:c,retryButtonText:u,withCheckBox:g,onClose:y,onConfirm:v,onConfirmActionSuccess:x,onConfirmActionError:w}=e;const[T,j]=n.useState(!1),[f,N]=n.useState(),[C,S]=n.useState(!1),I=async e=>(j(!0),v(e).then((()=>{x(),y()})).catch((e=>{w(e),N(e)})).finally((()=>{j(!1)})));return(0,h.jsx)(i.V,{open:t,hasCloseButton:!1,className:m(),size:"s",onClose:y,onTransitionExited:()=>{N(void 0),S(!1)},children:f?(0,h.jsxs)(n.Fragment,{children:[(0,h.jsx)(i.V.Header,{caption:a}),(0,h.jsx)(i.V.Body,{className:m("body"),children:(0,h.jsxs)("div",{className:m("body-message",{error:!0}),children:[(0,h.jsx)("span",{className:m("error-icon"),children:(0,h.jsx)(r.Z,{width:"24",height:"22"})}),b(f)]})}),(0,h.jsx)(i.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||p("button-retry"):void 0,textButtonCancel:p("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:y})]}):(0,h.jsxs)(n.Fragment,{children:[(0,h.jsx)(i.V.Header,{caption:a}),(0,h.jsxs)(i.V.Body,{className:m("body"),children:[(0,h.jsxs)("div",{className:m("body-message",{warning:!0}),children:[(0,h.jsx)("span",{className:m("warning-icon"),children:(0,h.jsx)(l.J,{data:o.Z,size:24})}),d]}),g?(0,h.jsx)(s.X,{checked:C,onUpdate:S,children:p("checkbox-text")}):null]}),(0,h.jsx)(i.V.Footer,{loading:T,preset:"default",textButtonApply:p("button-confirm"),textButtonCancel:p("button-cancel"),propsButtonApply:{type:"submit",disabled:g&&!C},onClickButtonCancel:y,onClickButtonApply:()=>I()})]})})}},51403:(e,t,a)=>{a.d(t,{q:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},29331:(e,t,a)=>{a.d(t,{Q:()=>s});var n=a(99294),r=a(10161);const o=(0,n.cn)("ydb-diagnostic-card");function s(e){let{children:t,className:a,active:n,size:s="m",interactive:i=!0}=e;return(0,r.jsx)("div",{className:o({active:n,size:s,interactive:i},a),children:t})}},34973:(e,t,a)=>{a.d(t,{C:()=>n.C});var n=a(14325)},66498:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(41989)},52154:(e,t,a)=>{a.d(t,{T:()=>s});var n=a(67661),r=a(32341),o=a(10161);const s=e=>{let{value:t,onChange:a,className:s}=e;return(0,o.jsxs)(n.E,{value:t,onUpdate:a,className:s,children:[(0,o.jsx)(n.E.Option,{value:r.pu.ALL,children:r.pu.ALL}),(0,o.jsx)(n.E.Option,{value:r.pu.PROBLEMS,children:r.pu.PROBLEMS})]})}},17784:(e,t,a)=>{a.d(t,{o:()=>n.o});var n=a(76485)},76217:(e,t,a)=>{a.d(t,{P:()=>g});var n=a(83797),r=a(2194),o=a(46878),s=a(65e3),i=a(70340),l=a(55842),d=a(61168),c=a(62508),u=a(90808),p=a(37711);const h=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),m=(0,p.wZ)("ydb-tablet-name-wrapper",{en:h});var b=a(10161);function g(e){let{tabletId:t,database:a}=e;const p=(0,l.ix)(s.VH),h=(0,o.fK)(t,{tenantName:a});return(0,b.jsx)(d.l,{disabled:!p,content:(0,b.jsx)(n.w,{responsive:!0,children:(0,b.jsx)(n.w.Item,{name:m("field_links"),children:(0,b.jsx)(u.j,{title:m("context_developer-ui"),url:(0,i.wz)(t)})})}),placement:["top","bottom"],behavior:r.x.Immediate,children:(0,b.jsx)(c.A,{name:t.toString(),path:h,hasClipboardButton:!0,showStatus:!1})})}},59907:(e,t,a)=>{a.d(t,{f:()=>s});var n=a(2634),r=a(55973),o=a(10161);function s(e){let{state:t}=e;return(0,o.jsx)(n._,{theme:(0,r.KR)(t),children:t})}},26612:(e,t,a)=>{a.d(t,{G:()=>J});var n=a(27810),r=a(55842),o=a(34706),s=a(20560),i=a(53366),l=a(99495),d=a(34973),c=a(71037),u=a(93225),p=a(15327),h=a(91538),m=a(52154),b=a(74116),g=a(17784),y=a(74640),v=a(56065),x=a(27660),w=a(88366),T=a(82114),j=a(32341),f=a(99294),N=a(96183),C=a(97485),S=a(9796);const I="nodesTableSelectedColumns",A=["NodeId","Host","DC","Rack","Version","Uptime","Memory","CPU","LoadAverage","Tablets"],F=["NodeId"];function k(e){const t=o.useMemo((()=>function(e){return[(0,S.A6)(),(0,S.Up)(e),(0,S.iJ)(),(0,S.EF)(),(0,S.KO)(),(0,S.Zi)(),(0,S.VQ)(),(0,S.rh)(),(0,S.eb)(),(0,S.gs)(),(0,S.TX)(e)].map((e=>({...e,sortable:(0,N.oh)(e.name)})))}(e)),[e]);return(0,C.N)(t,I,x.Pr,A,F)}var L=a(37711);const D=JSON.parse('{"empty.default":"No such nodes"}'),P=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432"}'),B=(0,L.wZ)("ydb-nodes",{ru:P,en:D});var q=a(10161);const E=(0,f.cn)("ydb-nodes"),R=e=>{var t;let{path:a,database:f,additionalNodesProps:C={}}=e;const[S,I]=(0,l.useQueryParams)({uptimeFilter:l.StringParam,search:l.StringParam}),A=N.U8.parse(S.uptimeFilter),F=null!==(t=S.search)&&void 0!==t?t:"",L=(0,r.zL)(),D=(0,r.ix)(j.qz),[P]=(0,r.Rj)(),{columnsToShow:R,columnsToSelect:U,setColumns:V}=k({getNodeRef:C.getNodeRef,database:f}),{currentData:O,isLoading:M,error:z}=w.k.useGetNodesQuery({path:a,database:f},{pollingInterval:P}),[Q,_]=o.useState({sortValue:"NodeId",sortOrder:s.zE}),[H,J]=(0,r.sC)(Q,(e=>{_(e)})),G=e=>{I({search:e||void 0},"replaceIn")},Z=e=>{L((0,j.M6)(e))},W=e=>{I({uptimeFilter:e},"replaceIn")},K=o.useMemo((()=>(0,T.A)(null===O||void 0===O?void 0:O.Nodes,{searchValue:F,uptimeFilter:A,problemFilter:D})),[O,F,A,D]),X=(null===O||void 0===O?void 0:O.TotalNodes)||0;return(0,u.u)(z)?(0,q.jsx)(c.J,{}):(0,q.jsxs)(y.l,{children:[(0,q.jsx)(y.l.Controls,{children:(0,q.jsxs)(o.Fragment,{children:[(0,q.jsx)(g.o,{onChange:G,placeholder:"Host name",className:E("search"),value:F}),(0,q.jsx)(m.T,{value:D,onChange:Z}),(0,q.jsx)(v.X,{value:A,onChange:W}),(0,q.jsx)(d.C,{total:X,current:K.length,label:"Nodes",loading:M}),(0,q.jsx)(i.N,{popupWidth:200,items:U,showStatus:!0,onUpdate:V,sortable:!1})]})}),z?(0,q.jsx)(p.V,{error:z}):null,(0,q.jsx)(y.l.Table,{loading:M,children:O?0!==K.length||D===j.pu.ALL&&A===N.Uu.All?(0,q.jsx)(b.G,{columnsWidthLSKey:x.t5,data:K||[],columns:R,settings:n.LE,sortOrder:H,onSort:J,emptyDataMessage:B("empty.default"),rowClassName:e=>E("node",{unavailable:(0,N.TA)(e)})}):(0,q.jsx)(h.Q,{name:"thumbsUp",width:"200"}):null})]})};var U=a(79317),V=a(16124),O=a(89991),M=a(83023);const z=(e,t)=>`getNodes|offset${t}|limit${e}`,Q=async e=>{const{type:t="any",storage:a=!1,tablets:n=!0,limit:r,offset:o,sortParams:s,filters:i,columnsIds:l}=e,{sortOrder:d,columnId:c}=null!==s&&void 0!==s?s:{},{path:u,database:p,searchValue:h,problemFilter:m,uptimeFilter:b}=null!==i&&void 0!==i?i:{},g=(0,N.oh)(c)?(0,O.A)(c,d):void 0,y=(0,M.w)(l,x.WN),v=await window.api.getNodes({type:t,storage:a,tablets:n,limit:r,offset:o,sort:g,path:u,database:p,filter:h,problems_only:(0,N.eV)(m),uptime:(0,N.RW)(b),fieldsRequired:y},{concurrentId:z(r,o),signal:e.signal}),w=(0,V.n)(v);return{data:w.Nodes||[],found:w.FoundNodes||0,total:w.TotalNodes||0}},_=(0,f.cn)("ydb-nodes"),H=e=>{var t;let{path:a,database:n,parentRef:s,additionalNodesProps:u}=e;const[b,y]=(0,l.useQueryParams)({uptimeFilter:l.StringParam,search:l.StringParam}),w=N.U8.parse(b.uptimeFilter),T=null!==(t=b.search)&&void 0!==t?t:"",f=(0,r.zL)(),C=(0,r.ix)(j.qz),S=o.useMemo((()=>({path:a,database:n,searchValue:T,problemFilter:C,uptimeFilter:w})),[a,n,T,C,w]),{columnsToShow:I,columnsToSelect:A,setColumns:F}=k({getNodeRef:null===u||void 0===u?void 0:u.getNodeRef,database:n});return(0,q.jsx)(U.WQ,{columnsWidthLSKey:x.t5,parentRef:s,columns:I,fetchData:Q,limit:50,renderControls:e=>{let{totalEntities:t,foundEntities:a,inited:n}=e;return(0,q.jsxs)(o.Fragment,{children:[(0,q.jsx)(g.o,{onChange:e=>{y({search:e||void 0},"replaceIn")},placeholder:"Host name",className:_("search"),value:T}),(0,q.jsx)(m.T,{value:C,onChange:e=>{f((0,j.M6)(e))}}),(0,q.jsx)(v.X,{value:w,onChange:e=>{y({uptimeFilter:e},"replaceIn")}}),(0,q.jsx)(d.C,{total:t,current:a,label:"Nodes",loading:!n}),(0,q.jsx)(i.N,{popupWidth:200,items:A,showStatus:!0,onUpdate:F,sortable:!1})]})},renderErrorMessage:e=>e&&403===e.status?(0,q.jsx)(c.J,{position:"left"}):(0,q.jsx)(p.V,{error:e}),renderEmptyDataMessage:()=>C!==j.pu.ALL||w!==N.Uu.All?(0,q.jsx)(h.Q,{name:"thumbsUp",width:"200"}):B("empty.default"),getRowClassName:e=>_("node",{unavailable:(0,N.TA)(e)}),filters:S,tableName:"nodes"})},J=e=>{let{parentRef:t,...a}=e;const[o]=(0,r.yu)(n.Qy);return o?(0,q.jsx)(H,{parentRef:t,...a}):(0,q.jsx)(R,{...a})}},72427:(e,t,a)=>{a.d(t,{O:()=>S});var n=a(73878),r=a(23795),o=a(14561),s=a(55982),i=a(62508),l=a(67653),d=a(74116),c=a(22877),u=a(76217),p=a(59907),h=a(65e3),m=a(6215),b=a(9038),g=a(27810),y=a(14075),v=a(55842),x=a(75544),w=a(37711);const T=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"}'),j=(0,w.wZ)("ydb-tablets",{en:T});var f=a(10161);function N(e){let{database:t}=e;return[{name:"Type",width:150,get header(){return j("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,f.jsxs)("span",{children:[t.Type," ",a?(0,f.jsx)(r.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return j("Tablet")},render:e=>{let{row:a}=e;return a.TabletId?(0,f.jsx)(u.P,{tabletId:a.TabletId,database:t}):g.jX}},{name:"State",get header(){return j("State")},render:e=>{let{row:t}=e;return(0,f.jsx)(p.f,{state:t.State})}},{name:"NodeId",get header(){return j("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,x.a3)(t.NodeId);return(0,f.jsx)(l.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return j("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,f.jsx)(i.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,f.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return j("Generation")},align:"right"},{name:"Uptime",get header(){return j("Uptime")},render:e=>{let{row:t}=e;return(0,y.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,f.jsx)(C,{...t})}}]}function C(e){const t=e.State===b.g.Stopped,a=(0,v.ix)(h.VH),[r]=m._.useKillTabletMutation(),i=e.TabletId;return i?(0,f.jsx)(s.U,{buttonView:"outlined",dialogHeader:j("dialog.kill-header"),dialogText:j("dialog.kill-text"),onConfirmAction:()=>r({id:i}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:j("controls.kill-not-allowed"),popoverDisabled:a,children:(0,f.jsx)(o.J,{data:n.Z})}):null}function S(e){let{database:t,tablets:a,className:n,loading:r}=e;return r?(0,f.jsx)(c.h,{}):(0,f.jsx)(d.G,{wrapperClassName:n,columns:N({database:t}),data:a,settings:g.LE,emptyDataMessage:j("noTabletsData")})}},88366:(e,t,a)=>{a.d(t,{k:()=>o});var n=a(78759),r=a(16124);const o=n.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,r.n)(t)}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},6215:(e,t,a)=>{a.d(t,{_:()=>r});var n=a(96183);const r=a(78759).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:r}=e,{signal:o}=t;try{const[e,t,s]=await Promise.all([window.api.getTablet({id:a,database:r},{signal:o}),window.api.getTabletHistory({id:a,database:r},{signal:o}),window.api.getNodesList({signal:o})]),i=(0,n.Xs)(s),l=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:o,State:s,Leader:l,FollowerId:d}=t,c=i&&a?i.get(Number(a)):void 0;"Dead"!==s&&e.push({nodeId:a,generation:o,changeTime:n,state:s,leader:l,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:d=[]}=e,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:l}}}catch(s){return{error:s}}},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(o){return{error:o}}},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"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2740.a9c16626.chunk.js b/ydb/core/viewer/monitoring/static/js/2740.a9c16626.chunk.js deleted file mode 100644 index c7a1994806..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2740.a9c16626.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2740],{21711:(e,t,s)=>{s.d(t,{b:()=>c});var r=s(34706),n=s(5194),l=s(99294),a=s(83658),o=s(10161);const i=(0,l.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(n.O,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:l=600}=e;const[c]=(0,a.$)(l);let u=(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(n.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}`)))})}},43464:(e,t,s)=>{s.d(t,{O:()=>a});var r=s(5194),n=s(83658),l=s(10161);const a=e=>{let{delay:t=600,className:s}=e;const[a]=(0,n.$)(t);return a?(0,l.jsx)(r.O,{className:s}):null}},13618:(e,t,s)=>{s.d(t,{$:()=>i});s(34706);var r=s(79777),n=s(99294),l=s(10161);const a=(0,n.cn)("tag"),o=e=>{let{text:t,type:s}=e;return(0,l.jsx)("div",{className:a({type:s}),children:t})},i=e=>{let{tags:t,tagsType:s,className:n="",gap:a=1}=e;return(0,l.jsx)(r.k,{className:n,gap:a,wrap:"wrap",alignItems:"center",children:t&&t.map(((e,t)=>(0,l.jsx)(o,{text:e,type:s},t)))})}},62787:(e,t,s)=>{s.r(t),s.d(t,{Cluster:()=>Pt});var r=s(34706),n=s(5194),l=s(72555),a=s(42152),o=s(55783),i=s(99495),d=s(74003),c=s(62508),u=s(67653),v=s(46878),h=s(10730),m=s(85709),p=s(99294),x=s(55842),g=s(80819),j=s(26612),N=s(92025),f=s(72427),b=s(71624),y=s(72616),w=s(34973),C=s(15327),T=s(91538),k=s(31580),S=s(52154),P=s(74116),E=s(17784),O=s(74640),D=s(83797),L=s(2194),_=s(60064),z=s(65e3),M=s(61168),A=s(90808),V=s(37711);const I=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),G=(0,V.wZ)("ydb-tenant-name-wrapper",{en:I});var Z=s(10161);const $=(e,t)=>{var s,r;if("function"!==typeof(null===t||void 0===t?void 0:t.prepareTenantBackend))return;let n=null!==(s=e.MonitoringEndpoint)&&void 0!==s?s:e.backend;const l=null!==(r=e.NodeIds)&&void 0!==r?r:e.sharedNodeIds;if(!n&&l&&l.length>0){n={NodeId:l[Math.floor(Math.random()*l.length)]}}return t.prepareTenantBackend(n)};function F(e){var t;let{tenant:s,additionalTenantsProps:r}=e;const n=(0,x.ix)(z.VH),l=$(s,r),a=Boolean(l),o=null===r||void 0===r||null===(t=r.getMonitoringLink)||void 0===t?void 0:t.call(r,s.Name,s.Type);return(0,Z.jsx)(M.l,{disabled:!n||!o,content:o?(0,Z.jsx)(D.w,{responsive:!0,children:(0,Z.jsx)(D.w.Item,{name:G("field_links"),children:(0,Z.jsx)(A.j,{title:G("field_monitoring-link"),url:o})})}):null,placement:["top","bottom"],behavior:L.x.Immediate,children:(0,Z.jsx)(c.A,{externalLink:a,name:s.Name||G("context_unknown"),withLeftTrim:!0,status:s.Overall,hasClipboardButton:!0,path:(0,_.Sj)({name:s.Name,backend:l})})})}var R=s(78276),B=s(32341),W=s(67386),H=s(78171),U=s.n(H),q=s(77468),Q=s(27810),Y=s(14739);const J=(0,W.P1)((e=>e),(e=>Y.Xv.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,W.P1)((e=>e),((e,t)=>J(t)),(e=>(0,B.Cx)(e,Q.Zy)),((e,t,s)=>{var r;const n=null!==(r=t(e).data)&&void 0!==r?r:[];return!s&&n.length>1?n.filter((e=>"Domain"!==e.Type)):n})),X=e=>e.tenants.searchValue,ee=(0,W.P1)([K,B.qz,X],((e,t,s)=>{let r=((e,t)=>t===B.pu.ALL?e:e.filter((e=>e.Overall&&e.Overall!==q.K.Green)))(e,t);return r=((e,t)=>e.filter((e=>{const s=new RegExp(U()(t),"i");return s.test(e.Name||"")||s.test(e.controlPlaneName)})))(r,s),r}));var te=s(14075);const se=(0,p.cn)("tenants"),re=e=>{let{additionalTenantsProps:t}=e;const s=(0,x.zL)(),[n]=(0,x.Rj)(),{currentData:l,isFetching:a,error:o}=Y.Xv.useGetTenantsInfoQuery({clusterName:R.qw},{pollingInterval:n}),i=a&&void 0===l,d=(0,x.ix)((e=>K(e,R.qw))),c=(0,x.ix)(X),u=(0,x.ix)((e=>ee(e,R.qw))),v=(0,x.ix)(B.qz),h=e=>{s((0,B.M6)(e))},m=e=>{s((0,Y.gI)(e))};return(0,Z.jsxs)(O.l,{children:[(0,Z.jsx)(O.l.Controls,{children:(0,Z.jsxs)(r.Fragment,{children:[(0,Z.jsx)(E.o,{value:c,onChange:m,placeholder:"Database name",className:se("search")}),(0,Z.jsx)(S.T,{value:v,onChange:h}),(0,Z.jsx)(w.C,{total:d.length,current:(null===u||void 0===u?void 0:u.length)||0,label:"Databases",loading:i})]})}),o?(0,Z.jsx)(C.V,{error:o}):null,(0,Z.jsx)(O.l.Table,{loading:i,children:l?(()=>{const e=[{name:"Name",header:"Database",render:e=>{let{row:s}=e;return(0,Z.jsx)(F,{tenant:s,additionalTenantsProps:t})},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,Z.jsxs)("div",{className:se("type"),children:[(0,Z.jsx)("span",{className:se("type-value"),children:t.Type}),(0,Z.jsx)(y.z,{className:se("type-button"),onClick:()=>m(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,te.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,te.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,te.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,te.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,te.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,Z.jsx)(k.m,{pools:t.PoolStats})}}];return 0===u.length&&v!==B.pu.ALL?(0,Z.jsx)(T.Q,{name:"thumbsUp",width:"200"}):(0,Z.jsx)(P.G,{columnsWidthLSKey:"databasesTableColumnsWidth",data:u,columns:e,settings:Q.LE,emptyDataMessage:"No such tenants"})})():null})]})};var ne=s(67661),le=s(19912),ae=s(66498),oe=s(88366),ie=s(30963);const de=(0,p.cn)("ydb-cluster-versions-bar"),ce=e=>{let{versionsValues:t=[],size:s="s",progressClassName:r}=e;return(0,Z.jsxs)("div",{className:de(),children:[(0,Z.jsx)(ie.E,{value:100,stack:t,size:s,className:r}),(0,Z.jsx)("div",{className:de("versions"),children:t.map(((e,s)=>(0,Z.jsx)("div",{className:de("version-title"),style:{color:e.color},title:e.version,children:`${e.version}${s===t.length-1?"":","}`},e.version)))})]})};var ue=s(83202),ve=s(20760),he=s(96183),me=s(75544);const pe=[{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 r=s.Endpoints&&(null===(t=s.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address),n=s.Host&&`${s.Host}${r||""}`||"unknown",l=!(0,he.TA)(s)&&s.NodeId?(0,me.a3)(s.NodeId):void 0;return(0,Z.jsx)(c.A,{name:n,path:l,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,te.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,te.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,Z.jsx)(k.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:170,resizeMinWidth:170,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,Z.jsx)(ve.y,{value:t.LoadAveragePercents[0],percents:!0,capacity:100,colorizeProgress:!0}):"\u2014"},align:b.ZP.LEFT}],xe=e=>{let{nodes:t}=e;return(0,Z.jsx)(P.G,{columnsWidthLSKey:"versionsTableColumnsWidth",data:t,columns:pe,settings:Q.LE})};var ge=s(99175);const je=(0,p.cn)("ydb-versions-nodes-tree-title"),Ne=e=>{let t,{title:s,nodes:r,items:n,versionColor:l,versionsValues:a}=e;return t=n?n.reduce(((e,t)=>t.nodes?e+t.nodes.length:e),0):r?r.length:0,(0,Z.jsxs)("div",{className:je("overview"),children:[(0,Z.jsxs)("div",{className:je("overview-container"),children:[l?(0,Z.jsx)("div",{className:je("version-color"),style:{background:l}}):null,s?(0,Z.jsxs)("span",{className:je("overview-title"),children:[s,(0,Z.jsx)(ge.m,{text:s,size:"s",className:je("clipboard-button"),view:"normal"})]}):null]}),(0,Z.jsxs)("div",{className:je("overview-info"),children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{className:je("info-value"),children:t}),(0,Z.jsx)("span",{className:je("info-label",{margin:"left"}),children:"Nodes"})]}),a?(0,Z.jsxs)("div",{className:je("version-progress"),children:[(0,Z.jsx)("span",{className:je("info-label",{margin:"right"}),children:"Versions"}),(0,Z.jsx)(ie.E,{size:"s",value:100,stack:a})]}):null]})]})},fe=(0,p.cn)("ydb-versions-grouped-node-tree"),be=e=>{let{title:t,nodes:s,items:n,expanded:l=!1,versionColor:a,versionsValues:o,level:i=0}=e;const[d,c]=r.useState(!1);r.useEffect((()=>{c(l)}),[l]);const u=(0,Z.jsx)(Ne,{title:t,nodes:s,items:n,versionColor:a,versionsValues:o}),v=()=>{c((e=>!e))};return n?(0,Z.jsx)("div",{className:fe({"first-level":0===i}),children:(0,Z.jsx)(ue.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:n.map(((e,t)=>(0,Z.jsx)(be,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:i+1},t)))},t)}):(0,Z.jsx)("div",{className:fe({"first-level":0===i}),children:(0,Z.jsx)(ue.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:(0,Z.jsx)("div",{className:fe("dt-wrapper"),children:(0,Z.jsx)(xe,{nodes:s||[]})})},t)})};var ye=s(69144),we=s.n(ye),Ce=s(58274);const Te=.5,ke=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 Pe(Object.keys(s).map((r=>{const n=s[r]/e.length*100;return{title:r,version:r,color:null===t||void 0===t?void 0:t.get((0,Ce.H)(r)),value:n<Te?Te:n}})))};function Se(e,t,s){const r=null!==s&&void 0!==s?s:e.reduce(((e,t)=>e+t.count),0);return Pe(e.map((e=>{const s=e.count/r*100;return{title:e.name,version:e.name,color:null===t||void 0===t?void 0:t.get(e.name),value:s<Te?Te:s}})))}function Pe(e){let t=e[0].value,s=0,r=0;e.forEach(((e,n)=>{r+=e.value,e.value>t&&(t=e.value,s=n)}));const n=[...e];return n[s]={...e[s],value:t+100-r},n}let Ee;!function(e){e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage"}(Ee||(Ee={}));const Oe=(e,t)=>{var s;return(null===(s=e.title)||void 0===s?void 0:s.localeCompare(t.title||""))||-1},De=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Le=(0,V.wZ)("ydb-versions",{en:De});var _e=s(64485),ze=s(39242);const Me=(0,p.cn)("ydb-versions"),Ae=e=>{let{versionToColor:t,cluster:s}=e;const[n]=(0,x.Rj)(),l=((e,t)=>{const{currentData:s}=oe.k.useGetNodesQuery((0,ze.j)(e)?_e.CN:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return r.useMemo((()=>(0,ze.j)(e)&&e.MapVersions?Se(Object.entries(e.MapVersions).map((e=>{let[t,s]=e;return{name:t,count:s}})),t,e.NodesTotal):s?Array.isArray(s.NodeGroups)?Se(s.NodeGroups,t,null===e||void 0===e?void 0:e.NodesTotal):ke(s.Nodes,t):[]),[s,t,e])})(s,t),{currentData:a,isLoading:o}=oe.k.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),i=null===a||void 0===a?void 0:a.Nodes,[d,c]=r.useState(Ee.VERSION),[u,v]=r.useState(!1),h=e=>{c(e)};if(o)return(0,Z.jsx)(ae.a,{});const m=((e,t,s)=>{if(e&&e.length){if(s===Ee.VERSION){const s=we()(e,"Version");return Object.keys(s).map((e=>{const r=s[e].filter((e=>{let{Tenants:t}=e;return Boolean(t)})),n=we()(r,"Tenants"),l=Object.keys(n).map((e=>({title:e,nodes:n[e]}))).sort(Oe);return l.length?{title:e,items:l,versionColor:null===t||void 0===t?void 0:t.get((0,Ce.H)(e))}:null})).filter((e=>Boolean(e)))}{const s=e.filter((e=>{let{Tenants:t}=e;return Boolean(t)})),r=we()(s,"Tenants");return Object.keys(r).map((e=>{const s=ke(r[e],t),n=we()(r[e],"Version"),l=Object.keys(n).map((e=>({title:e,nodes:n[e],versionColor:null===t||void 0===t?void 0:t.get((0,Ce.H)(e))})));return l.length?{title:e,items:l,versionsValues:s}:null})).filter((e=>Boolean(e))).sort(Oe)}}})(i,t,d),p=((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")})),r=we()(s,"Version");return Object.keys(r).map((e=>({title:e,nodes:r[e],versionColor:null===t||void 0===t?void 0:t.get((0,Ce.H)(e))})))})(i,t),g=((e,t)=>{if(!e||!e.length)return;const s=e.filter((e=>{let{Roles:t}=e;return!t})),r=we()(s,"Version");return Object.keys(r).map((e=>({title:e,nodes:r[e],versionColor:null===t||void 0===t?void 0:t.get((0,Ce.H)(e))})))})(i,t),j=null!==p&&void 0!==p&&p.length?(0,Z.jsxs)(r.Fragment,{children:[(0,Z.jsx)("h4",{children:Le("title_storage")}),p.map((e=>{let{title:t,nodes:s,items:r,versionColor:n}=e;return(0,Z.jsx)(be,{title:t,nodes:s,items:r,versionColor:n},`storage-nodes-${t}`)}))]}):null,N=null!==m&&void 0!==m&&m.length?(0,Z.jsxs)(r.Fragment,{children:[(0,Z.jsx)("h4",{children:Le("title_database")}),(0,Z.jsxs)("div",{className:Me("controls"),children:[(0,Z.jsxs)("div",{className:Me("group"),children:[(0,Z.jsx)("span",{className:Me("label"),children:"Group by:"}),(0,Z.jsxs)(ne.E,{value:d,onUpdate:h,children:[(0,Z.jsx)(ne.E.Option,{value:Ee.TENANT,children:Ee.TENANT}),(0,Z.jsx)(ne.E.Option,{value:Ee.VERSION,children:Ee.VERSION})]})]}),(0,Z.jsx)(le.X,{className:Me("checkbox"),onChange:()=>v((e=>!e)),checked:u,children:"All expanded"})]}),m.map((e=>{let{title:t,nodes:s,items:r,versionColor:n,versionsValues:l}=e;return(0,Z.jsx)(be,{title:t,nodes:s,items:r,expanded:u,versionColor:n,versionsValues:l},`tenant-nodes-${t}`)}))]}):null,f=null!==g&&void 0!==g&&g.length?(0,Z.jsxs)(r.Fragment,{children:[(0,Z.jsx)("h4",{children:Le("title_other")}),g.map((e=>{let{title:t,nodes:s,items:r,versionColor:n,versionsValues:l}=e;return(0,Z.jsx)(be,{title:t,nodes:s,items:r,versionColor:n,versionsValues:l},`other-nodes-${t}`)}))]}):null,b=(0,Z.jsxs)(r.Fragment,{children:[(0,Z.jsx)("h4",{children:Le("title_overall")}),(0,Z.jsx)("div",{className:Me("overall-wrapper"),children:(0,Z.jsx)(ce,{progressClassName:Me("overall-progress"),versionsValues:l.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,Z.jsxs)("div",{className:Me(),children:[b,j,N,f]})};var Ve=s(23795),Ie=s(79777),Ge=s(13618),Ze=s(25665);const $e=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),Fe=(0,V.wZ)("ydb-cluster",{en:$e});var Re=s(29331);const Be=(0,p.cn)("ydb-doughnut-metrics");function We(e){let{status:t,fillWidth:s,children:r,className:n}=e,l="var(--g-color-line-generic-solid)",a=3.6*s-90;s>50&&(l="var(--doughnut-color)",a=3.6*s+90);const o=a;return(0,Z.jsx)("div",{className:Be(null,n),children:(0,Z.jsx)("div",{style:{backgroundImage:`linear-gradient(${o}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:Be("doughnut",{status:t}),children:(0,Z.jsx)("div",{className:Be("text-wrapper"),children:r})})})}We.Legend=function(e){let{children:t,variant:s="subheader-3"}=e;return(0,Z.jsx)(Ve.x,{variant:s,color:"secondary",className:Be("legend"),children:t})},We.Value=function(e){let{children:t,variant:s="subheader-2"}=e;return(0,Z.jsx)(Ve.x,{variant:s,color:"secondary",className:Be("value"),children:t})};var He=s(43464);const Ue=(0,p.cn)("ydb-cluster-dashboard");function qe(e){let{children:t,title:s,size:r,className:n}=e;return(0,Z.jsxs)(Re.Q,{className:Ue("card",{size:r},n),size:r,interactive:!1,children:[s?(0,Z.jsx)(Ve.x,{variant:"subheader-3",className:Ue("card-title"),children:s}):null,t]})}function Qe(e){let{title:t,children:s,size:r,...n}=e;return(0,Z.jsx)(qe,{title:t,size:r,children:(0,Z.jsx)(We,{...n,className:Ue("doughnut"),children:s})})}function Ye(){return(0,Z.jsx)(qe,{className:Ue("skeleton-wrapper"),children:(0,Z.jsx)(He.O,{className:Ue("skeleton")})})}function Je(){return(0,Z.jsxs)(r.Fragment,{children:[(0,Z.jsx)(Ye,{}),(0,Z.jsx)(Ye,{}),(0,Z.jsx)(Ye,{})]})}var Ke=s(95440),Xe=s(20134),et=s(43926),tt=s(10142);const st=(0,p.cn)("ydb-disk-groups-stats"),rt=e=>{let{stats:t,children:s}=e;return(0,Z.jsx)("div",{className:st(),children:(0,Z.jsx)(et.f,{placement:["right"],pinOnClick:!0,content:(0,Z.jsx)(nt,{stats:t}),children:s})})};function nt(e){let{stats:t}=e;const{diskType:s,erasure:r,allocatedSize:n,availableSize:l}=t,a=(0,tt.dT)(Math.max(n,l),2),o=(0,tt.td)({value:n,size:a}),i=(0,tt.td)({value:l,size:a}),d=Math.round(n/(n+l)*100),c=[{name:Fe("disk-type"),content:s},{name:Fe("erasure"),content:r},{name:Fe("allocated"),content:o},{name:Fe("available"),content:i},{name:Fe("usage"),content:d+"%"}];return(0,Z.jsx)(Xe.w,{items:c,className:st("popup-content"),responsive:!0})}function lt(e){let{value:t,capacity:s,colorizeProgress:r=!0,warningThreshold:n=60,dangerThreshold:l=80,inverseColorize:a=!1,legendFormatter:o}=e;const i=parseFloat(String(t)),d=parseFloat(String(s));let c=i/d*100||0;c=c>100?100:c;const u=c<1?.5:c;return{status:(0,Ke.S)({fillWidth:c,warningThreshold:n,dangerThreshold:l,colorizeProgress:r,inverseColorize:a}),percents:(0,te.T3)(c/100),legend:o({value:i,capacity:d}),fill:u}}const at=["storage","tenant"];const ot=e=>Object.values(e).reduce(((e,t)=>(Object.values(t).forEach((t=>{e+=t.createdGroups})),e)),0);function it(e){let{value:t,capacity:s}=e;return`${(0,te.LA)(t)} / ${(0,te.LA)(s)}\n${Fe("context_cores")}`}function dt(e){let{value:t,capacity:s,...r}=e;const{status:n,percents:l,legend:a,fill:o}=lt({value:t,capacity:s,legendFormatter:it,...r});return(0,Z.jsxs)(Qe,{status:n,fillWidth:o,title:Fe("title_cpu"),children:[(0,Z.jsx)(We.Legend,{children:a}),(0,Z.jsx)(We.Value,{children:l})]})}function ct(e){let{value:t,capacity:s}=e;const r=(0,te.QO)(t,s,void 0,"\n");return`${r[0]} / ${r[1]}`}function ut(e){let{value:t,capacity:s,...r}=e;const{status:n,percents:l,legend:a,fill:o}=lt({value:t,capacity:s,legendFormatter:ct,...r});return(0,Z.jsxs)(Qe,{status:n,fillWidth:o,title:Fe("title_memory"),children:[(0,Z.jsx)(We.Legend,{children:a}),(0,Z.jsx)(We.Value,{children:l})]})}function vt(e){let{value:t,capacity:s}=e;const r=(0,te.QO)(t,s,void 0,"\n");return`${r[0]} / ${r[1]}`}function ht(e){let{value:t,capacity:s,...r}=e;const{status:n,percents:l,legend:a,fill:o}=lt({value:t,capacity:s,legendFormatter:vt,...r});return(0,Z.jsxs)(Qe,{status:n,fillWidth:o,title:Fe("title_storage"),children:[(0,Z.jsx)(We.Legend,{children:a}),(0,Z.jsx)(We.Value,{children:l})]})}function mt(e){let{value:t}=e;return(0,Ze.D)(t)?(0,Z.jsx)(Ve.x,{variant:"subheader-3",color:"secondary",children:(0,te.uf)(t)}):null}function pt(e){return e.error?(0,Z.jsx)(C.V,{error:e.error,className:Ue("error")}):(0,Z.jsx)("div",{className:Ue(),children:(0,Z.jsxs)(Ie.k,{gap:4,wrap:!0,children:[(0,Z.jsx)(Ie.k,{gap:4,wrap:"nowrap",children:(0,Z.jsx)(xt,{...e})}),(0,Z.jsx)("div",{className:Ue("cards-container"),children:(0,Z.jsx)(gt,{...e})})]})})}function xt(e){let{cluster:t,loading:s}=e;if(s)return(0,Z.jsx)(Je,{});const r=[];if((0,ze.j)(t)){const{CoresUsed:e,NumberOfCpus:s}=t;(0,Ze.D)(e)&&(0,Ze.D)(s)&&r.push((0,Z.jsx)(dt,{value:e,capacity:s},"cores"))}const{StorageTotal:n,StorageUsed:l}=t;(0,Ze.D)(n)&&(0,Ze.D)(l)&&r.push((0,Z.jsx)(ht,{value:l,capacity:n},"storage"));const{MemoryTotal:a,MemoryUsed:o}=t;return(0,Ze.D)(a)&&(0,Ze.D)(o)&&r.push((0,Z.jsx)(ut,{value:o,capacity:a},"memory")),r}function gt(e){let{cluster:t,groupStats:s={},loading:n}=e;if(n)return null;const l=[],a=function(e){const t=[];if((0,ze.j)(e)&&e.MapNodeRoles)for(const[s,n]of Object.entries(e.MapNodeRoles))at.includes(s.toLowerCase())&&t.push((0,Z.jsxs)(r.Fragment,{children:[s,": ",(0,te.uf)(n)]},s));return t}(t);if(l.push((0,Z.jsx)(qe,{size:"l",title:Fe("label_nodes"),children:(0,Z.jsxs)(Ie.k,{gap:2,direction:"column",children:[(0,Z.jsx)(mt,{value:null===t||void 0===t?void 0:t.NodesAlive}),null!==a&&void 0!==a&&a.length?(0,Z.jsx)(Ge.$,{tags:a,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const t=[];return Object.entries(e).forEach((e=>{let[s,r]=e;Object.values(r).forEach((e=>{t.push((0,Z.jsxs)(rt,{stats:e,children:[s,": ",(0,te.uf)(e.createdGroups)," /"," ",(0,te.uf)(e.totalGroups)]},`${s}|${e.erasure}`))}))})),t}(s),t=ot(s);l.push((0,Z.jsx)(qe,{size:"l",title:Fe("label_storage-groups"),children:(0,Z.jsxs)(Ie.k,{gap:2,direction:"column",children:[(0,Z.jsx)(mt,{value:t}),(0,Z.jsx)(Ge.$,{tags:e,gap:3})]})},"groups"))}const o=function(e){var t;return(0,ze.j)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(t=e.DataCenters)||void 0===t?void 0:t.filter(Boolean)}(t);return null!==o&&void 0!==o&&o.length&&l.push((0,Z.jsx)(qe,{size:"l",title:Fe("label_hosts"),children:(0,Z.jsxs)(Ie.k,{gap:2,direction:"column",children:[(0,Z.jsx)(mt,{value:null===t||void 0===t?void 0:t.Hosts}),(0,Z.jsx)(Ge.$,{tags:o,gap:3})]})},"hosts")),t.Tenants&&l.push((0,Z.jsx)(qe,{size:"l",title:Fe("label_databases"),children:(0,Z.jsx)(mt,{value:null===t||void 0===t?void 0:t.Tenants})},"tenants")),l}var jt=s(43862),Nt=s(21711);const ft=(0,p.cn)("cluster-info");s(9038);const bt=(0,p.cn)("ydb-nodes-state");function yt(e){let{state:t,children:s}=e;return(0,Z.jsx)("div",{className:bt({[t.toLowerCase()]:!0}),children:s})}const wt={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},Ct=(e,t,s)=>{const n=[];if((0,ze.j)(e)&&e.MapNodeStates){const t=Object.entries(e.MapNodeStates);t.sort(((e,t)=>wt[t[0]]-wt[e[0]]));const s=t.map((e=>{let[t,s]=e;return(0,Z.jsx)(yt,{state:t,children:s},t)}));n.push({label:Fe("label_nodes-state"),value:(0,Z.jsx)(Ie.k,{gap:2,children:s})})}const l=(e=>{if((0,ze.j)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((e=>{let[t,s]=e;return(0,Z.jsxs)(r.Fragment,{children:[t,": ",(0,te.uf)(s)]},t)}))})(e);return null!==l&&void 0!==l&&l.length&&n.push({label:Fe("label_dc"),value:(0,Z.jsx)(Ge.$,{tags:l,gap:2})}),n.push({label:Fe("label_load"),value:(0,Z.jsx)(ve.y,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),n.push(...t),s.length&&n.push({label:Fe("links"),value:(0,Z.jsx)("div",{className:ft("links"),children:s.map((e=>{let{title:t,url:s}=e;return(0,Z.jsx)(A.j,{title:t,url:s},t)}))})}),n},Tt=e=>{let{cluster:t,loading:s,error:r,additionalClusterProps:n={}}=e;const{info:l=[],links:a=[]}=n,o=Ct(null!==t&&void 0!==t?t:{},l,a);return(0,Z.jsxs)("div",{className:ft(),children:[r?(0,Z.jsx)(C.V,{error:r,className:ft("error")}):null,(0,Z.jsx)("div",{className:ft("info"),children:s?(0,Z.jsx)(Nt.b,{className:ft("skeleton"),rows:9}):r&&!t?null:(0,Z.jsx)(jt._,{dots:!0,info:o})})]})};var kt=s(4128);const St=(0,p.cn)("ydb-cluster");function Pt(e){let{additionalClusterProps:t,additionalTenantsProps:s,additionalNodesProps:p,additionalVersionsProps:b}=e;const y=r.useRef(null),w=(0,x.zL)(),C=function(){const e=(0,x.zL)(),t=(0,x.ix)((e=>e.cluster.defaultClusterTab)),s=(0,o.$B)(v.ZP.cluster),{activeTab:n}=(null===s||void 0===s?void 0:s.params)||{};let l;l=(0,kt.V2)(n)?n:t;return r.useEffect((()=>{l!==t&&e((0,h.LQ)(l))}),[l,t,e]),l}(),[{clusterName:T,backend:k}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),S=(0,x.ix)((e=>(0,h.le)(e,null!==T&&void 0!==T?T:void 0))),{data:{clusterData:P={},groupsStats:E}={},isLoading:O,error:D}=h.UM.useGetClusterInfoQuery(null!==T&&void 0!==T?T:void 0),L=D&&"object"===typeof D?D:void 0,_=(0,x.ix)((e=>(0,h.DS)(e,null!==T&&void 0!==T?T:void 0)));r.useEffect((()=>{w((0,m.J)("cluster",{}))}),[w]);const z=r.useMemo((()=>null!==b&&void 0!==b&&b.getVersionToColorMap?null===b||void 0===b?void 0:b.getVersionToColorMap():(0,g.ZP)(null===P||void 0===P?void 0:P.Versions)),[b,P]),M=r.useMemo((()=>kt._Y.find((e=>{let{id:t}=e;return t===C}))),[C]);return(0,Z.jsxs)("div",{className:St(),ref:y,children:[(0,Z.jsx)(a.ql,{defaultTitle:`${S} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${S} \u2014 YDB Monitoring`,children:M?(0,Z.jsx)("title",{children:M.title}):null}),(0,Z.jsx)("div",{className:St("header"),children:O?(0,Z.jsx)(n.O,{className:St("title-skeleton")}):(0,Z.jsx)(c.A,{size:"m",status:null===P||void 0===P?void 0:P.Overall,name:S,className:St("title")})}),(0,Z.jsx)("div",{className:St("sticky-wrapper"),children:(0,Z.jsx)(d.q,{className:St("auto-refresh-control")})}),(0,Z.jsx)(pt,{cluster:P,groupStats:E,loading:O,error:L||(null===P||void 0===P?void 0:P.error)}),(0,Z.jsx)("div",{className:St("tabs-sticky-wrapper"),children:(0,Z.jsx)(l.m,{size:"l",allowNotSelected:!0,activeTab:C,items:kt._Y,wrapTo:(e,t)=>{let{id:s}=e;const r=(0,kt.B7)(s,{clusterName:T,backend:k});return(0,Z.jsx)(u.h,{to:r,onClick:()=>{w((0,h.LQ)(s))},children:t},s)}})}),(0,Z.jsxs)(o.rs,{children:[(0,Z.jsx)(o.AW,{path:(0,v.Fz)((0,kt.B7)(kt.xu.overview)).pathname,children:(0,Z.jsx)(Tt,{cluster:P,versionToColor:z,loading:O,error:L,additionalClusterProps:t})}),(0,Z.jsx)(o.AW,{path:(0,v.Fz)((0,kt.B7)(kt.xu.tablets)).pathname,children:(0,Z.jsx)("div",{className:St("tablets"),children:(0,Z.jsx)(f.O,{loading:O,tablets:_,className:St("tablets-table")})})}),(0,Z.jsx)(o.AW,{path:(0,v.Fz)((0,kt.B7)(kt.xu.tenants)).pathname,children:(0,Z.jsx)(re,{additionalTenantsProps:s})}),(0,Z.jsx)(o.AW,{path:(0,v.Fz)((0,kt.B7)(kt.xu.nodes)).pathname,children:(0,Z.jsx)(j.G,{parentRef:y,additionalNodesProps:p})}),(0,Z.jsx)(o.AW,{path:(0,v.Fz)((0,kt.B7)(kt.xu.storage)).pathname,children:(0,Z.jsx)(N.V,{parentRef:y})}),(0,Z.jsx)(o.AW,{path:(0,v.Fz)((0,kt.B7)(kt.xu.versions)).pathname,children:(0,Z.jsx)(Ae,{versionToColor:z,cluster:P})}),(0,Z.jsx)(o.AW,{render:()=>(0,Z.jsx)(o.l_,{to:(0,v.Fz)((0,kt.B7)(C))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2840.9c4aae7d.chunk.js b/ydb/core/viewer/monitoring/static/js/2840.9c4aae7d.chunk.js new file mode 100644 index 0000000000..da4c5f4496 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2840.9c4aae7d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2840],{32840:(t,e,s)=>{s.r(e),s.d(e,{extractYqlStatementPositionsFromQuery:()=>ru,parseYqQuery:()=>$l,parseYqQueryWithCursor:()=>eu,parseYqQueryWithoutCursor:()=>Zl,parseYqlQuery:()=>zl,parseYqlQueryWithCursor:()=>tu,parseYqlQueryWithoutCursor:()=>Jl,tokenizeYqlQuery:()=>su});var r,i,a,n,c=Object.defineProperty,h=(t,e)=>c(t,"name",{value:e,configurable:!0});(i=r||(r={})).EOF=-1,i.UNKNOWN_SOURCE_NAME="<unknown>",(n=a||(a={})).INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=r.EOF,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1,n.MIN_USER_CHANNEL_VALUE=2;var o=h((t=>{const e=t;return void 0!==e.tokenSource&&void 0!==e.channel}),"isToken"),E=class t{static{h(this,"Interval")}static INVALID_INTERVAL=new t(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;start;stop;static#t=[];#e;constructor(t,e){this.start=t,this.stop=e,this.#e=Math.imul(651+t,31)+e}static of(e,s){return e!==s||e<0||e>t.INTERVAL_POOL_MAX_VALUE?new t(e,s):(t.#t[e]||(t.#t[e]=new t(e,e)),t.#t[e])}equals(t){return this.start===t.start&&this.stop===t.stop}hashCode(){return this.#e}startsBeforeDisjoint(t){return this.start<t.start&&this.stop<t.start}startsBeforeNonDisjoint(t){return this.start<=t.start&&this.stop>=t.start}startsAfter(t){return this.start>t.start}startsAfterDisjoint(t){return this.start>t.stop}startsAfterNonDisjoint(t){return this.start>t.start&&this.start<=t.stop}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.start===t.stop+1||this.stop===t.start-1}properlyContains(t){return t.start>=this.start&&t.stop<=this.stop}union(e){return t.of(Math.min(this.start,e.start),Math.max(this.stop,e.stop))}intersection(e){return t.of(Math.max(this.start,e.start),Math.min(this.stop,e.stop))}differenceNotProperlyContained(e){let s=null;return e.startsBeforeNonDisjoint(this)?s=t.of(Math.max(this.start,e.stop+1),this.stop):e.startsAfterNonDisjoint(this)&&(s=t.of(this.start,e.start-1)),s}toString(){return this.start===this.stop?this.start.toString():this.start.toString()+".."+this.stop.toString()}get length(){return this.stop<this.start?0:this.stop-this.start+1}},l=class t{static{h(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new t(t.EMPTY_NAMES,t.EMPTY_NAMES,t.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(e,s,r){this.literalNames=e??t.EMPTY_NAMES,this.symbolicNames=s??t.EMPTY_NAMES,this.displayNames=r??t.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(e){if(null==e||0===e.length)return t.EMPTY_VOCABULARY;const s=[...e],r=[...e];for(let t=0;t<e.length;t++){const i=e[t];if(null!=i){if(i?.length>0){const e=i.charAt(0);if("'"===e){r[t]=null;continue}if(e.toUpperCase()===e){s[t]=null;continue}}s[t]=null,r[t]=null}}return new t(s,r,e)}getMaxTokenType(){return this.maxTokenType}getLiteralName(t){return t>=0&&t<this.literalNames.length?this.literalNames[t]:null}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===a.EOF?"EOF":null}getDisplayName(t){if(t>=0&&t<this.displayNames.length){const e=this.displayNames[t];if(null!=e)return e}const e=this.getLiteralName(t);if(null!=e)return e;const s=this.getSymbolicName(t);return null!=s?s:`${t}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},u=class t{static{h(this,"MurmurHash")}static#s=701;constructor(){}static initialize(e=t.#s){return e}static updateFromComparable(t,e){return this.update(t,e?.hashCode()??0)}static update(t,e){return e=(e=Math.imul(e,3432918353))<<15|e>>>17,t=(t^=e=Math.imul(e,461845907))<<13|t>>>19,t=Math.imul(t,5)+3864292196}static finish(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),t^=t>>>16}static hashCode(e,s){return t.finish(t.update(s??t.#s,e),1)}},R=class t{static{h(this,"IntervalSet")}#r=[];#e;constructor(t){t&&this.addSet(t)}static of(e,s){const r=new t;return r.addRange(e,s),r}[Symbol.iterator](){return this.#r[Symbol.iterator]()}get(t){return this.#r[t]}get minElement(){return 0===this.#r.length?a.INVALID_TYPE:this.#r[0].start}get maxElement(){return 0===this.#r.length?a.INVALID_TYPE:this.#r[this.#r.length-1].stop}clear(){this.#e=void 0,this.#r=[]}addOne(t){this.addInterval(new E(t,t))}addRange(t,e){this.addInterval(new E(t,e))}addInterval(t){if(this.#e=void 0,0===this.#r.length)this.#r.push(t);else{for(let e=0;e<this.#r.length;e++){const s=this.#r[e];if(t.equals(s))return;if(t.adjacent(s)||!t.disjoint(s)){const r=t.union(s);this.#r[e]=r;for(let t=e+1;t<this.#r.length;){const s=this.#r[t];if(!r.adjacent(s)&&r.disjoint(s))break;this.#r.splice(t,1),this.#r[e]=r.union(s)}return}if(t.startsBeforeDisjoint(s))return void this.#r.splice(e,0,t)}this.#r.push(t)}}addSet(t){return t.#r.forEach((t=>this.addInterval(t)),this),this}complementWithVocabulary(e){const s=new t;return e?0===e.length?s:(s.addSet(e),s.subtract(this)):s}complement(e,s){const r=new t;return r.addInterval(new E(e,s)),r.subtract(this)}or(e){const s=new t;return s.addSet(this),e.forEach((t=>s.addSet(t))),s}and(e){if(0===e.length)return new t;const s=this.#r,r=e.#r;let i;const a=s.length,n=r.length;let c=0,h=0;for(;c<a&&h<n;){const e=s[c],a=r[h];e.startsBeforeDisjoint(a)?c++:a.startsBeforeDisjoint(e)?h++:e.properlyContains(a)?(i||(i=new t),i.addInterval(e.intersection(a)),h++):a.properlyContains(e)?(i||(i=new t),i.addInterval(e.intersection(a)),c++):e.disjoint(a)||(i||(i=new t),i.addInterval(e.intersection(a)),e.startsAfterNonDisjoint(a)?h++:a.startsAfterNonDisjoint(e)&&c++)}return i||new t}subtract(e){if(0===this.length)return new t;const s=new t(this);if(0===e.length)return s;let r=0,i=0;for(;r<s.#r.length&&i<e.#r.length;){const t=s.#r[r],a=e.#r[i];if(a.stop<t.start){i++;continue}if(a.start>t.stop){r++;continue}let n,c;a.start>t.start&&(n=new E(t.start,a.start-1)),a.stop<t.stop&&(c=new E(a.stop+1,t.stop)),n?c?(s.#r[r]=n,s.#r.splice(r+1,0,c),r++,i++):(s.#r[r]=n,r++):c?(s.#r[r]=c,i++):s.#r.splice(r,1)}return s}contains(t){let e=0,s=this.#r.length-1;for(;e<=s;){const r=Math.floor((e+s)/2),i=this.#r[r];if(i.stop<t)e=r+1;else{if(!(i.start>t))return!0;s=r-1}}return!1}removeRange(t){if(this.#e=void 0,t.start===t.stop)this.removeOne(t.start);else if(null!==this.#r){let e=0;for(const s of this.#r){if(t.stop<=s.start)return;if(t.start>s.start&&t.stop<s.stop){this.#r[e]=new E(s.start,t.start);const r=new E(t.stop,s.stop);return void this.#r.splice(e,0,r)}t.start<=s.start&&t.stop>=s.stop?(this.#r.splice(e,1),e-=1):t.start<s.stop?this.#r[e]=new E(s.start,t.start):t.stop<s.stop&&(this.#r[e]=new E(t.stop,s.stop)),e+=1}}}removeOne(t){this.#e=void 0;for(let e=0;e<this.#r.length;e++){const s=this.#r[e];if(t<s.start)return;if(t===s.start&&t===s.stop)return void this.#r.splice(e,1);if(t===s.start)return void(this.#r[e]=new E(s.start+1,s.stop));if(t===s.stop)return void(this.#r[e]=new E(s.start,s.stop));if(t<s.stop){const r=new E(s.start,t);return this.#r[e]=new E(t+1,s.stop),void this.#r.splice(e,0,r)}}}hashCode(){if(void 0===this.#e){let t=u.initialize();for(const e of this.#r)t=u.update(t,e.start),t=u.update(t,e.stop);this.#e=u.finish(t,2*this.#r.length)}return this.#e}equals(t){if(this===t)return!0;if(this.#r.length!==t.#r.length)return!1;for(let e=0;e<this.#r.length;e++)if(!this.#r[e].equals(t.#r[e]))return!1;return!0}toString(t){if(0===this.#r.length)return"{}";let e="";this.length>1&&(e+="{");for(let s=0;s<this.#r.length;++s){const r=this.#r[s],i=r.start,n=r.stop;i===n?i===a.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(n)+"'":i+".."+n,s<this.#r.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toStringWithVocabulary(t){if(0===this.#r.length)return"{}";let e="";this.length>1&&(e+="{");for(let s=0;s<this.#r.length;++s){const r=this.#r[s],i=r.start,n=r.stop;if(i===n)i===a.EOF?e+="<EOF>":e+=this.elementName(t,i);else for(let s=i;s<=n;++s)s>i&&(e+=", "),e+=this.elementName(t,s);s<this.#r.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toStringWithRuleNames(t){if(0===this.#r.length)return"{}";let e="";this.length>1&&(e+="{");const s=l.fromTokenNames(t);for(let r=0;r<this.#r.length;++r){const t=this.#r[r],i=t.start,n=t.stop;if(i===n)i===a.EOF?e+="<EOF>":e+=this.elementName(s,i);else for(let r=i;r<=n;++r)r>i&&(e+=", "),e+=this.elementName(s,r);r<this.#r.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toArray(){const t=[];for(const e of this.#r)for(let s=e.start;s<=e.stop;s++)t.push(s);return t}get length(){let t=0;if(1===this.#r.length){const t=this.#r[0];return t.stop-t.start+1}for(const e of this.#r)t+=e.length;return t}elementName(t,e){return e===a.EOF?"<EOF>":e===a.EPSILON?"<EPSILON>":t.getDisplayName(e)}},_=class{static{h(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(t){this.target=t}get isEpsilon(){return!1}get label(){return null}},T=class extends _{static{h(this,"SetTransition")}set;constructor(t,e){super(t),this.set=e||R.of(a.INVALID_TYPE,a.INVALID_TYPE)}get transitionType(){return _.SET}get label(){return this.set}matches(t,e,s){return this.set.contains(t)}toString(){return this.set.toString()}},A=class extends T{static{h(this,"NotSetTransition")}get transitionType(){return _.NOT_SET}matches(t,e,s){return t>=e&&t<=s&&!super.matches(t,e,s)}toString(){return"~"+super.toString()}},S=class t{static{h(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static EMPTY;static traceATNSimulator=!1;#e;constructor(t){this.#e=t}static calculateEmptyHashCode(){let t=u.initialize(31);return t=u.finish(t,0),t}static calculateHashCodeSingle(t,e){let s=u.initialize(31);return s=u.updateFromComparable(s,t),s=u.update(s,e),s=u.finish(s,2),s}static calculateHashCodeList(t,e){let s=u.initialize(31);for(const r of t)s=u.updateFromComparable(s,r);for(const r of e)s=u.update(s,r);return s=u.finish(s,2*t.length),s}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===t.EMPTY_RETURN_STATE}hashCode(){return this.#e}toString(t){return""}},d=h((t=>null===t?"null":t),"valueToString"),L=h((t=>Array.isArray(t)?"["+t.map(d).join(", ")+"]":"null"),"arrayToString"),C=h(((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++){const r=t[s],i=e[s];if(r!==i&&(!r||!r.equals(i)))return!1}return!0}),"equalArrays"),N=h(((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}),"equalNumberArrays"),I=h(((t,e=!1)=>(t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"\xb7")),t)),"escapeWhitespace"),O=class t extends S{static{h(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(t,e){return super(S.calculateHashCodeList(t,e)),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===S.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(e){return this===e||e instanceof t&&this.hashCode()===e.hashCode()&&(N(this.returnStates,e.returnStates)&&C(this.parents,e.parents))}toString(){if(this.isEmpty())return"[]";const t=[];for(let e=0;e<this.returnStates.length;e++)this.returnStates[e]!==S.EMPTY_RETURN_STATE?(t.push(this.returnStates[e].toString()),this.parents[e]?t.push(this.parents[e].toString()):t.push("null")):t.push("$");return`[${t.join(", ")}]`}},p=class t extends S{static{h(this,"SingletonPredictionContext")}parent;returnState;constructor(t,e){super(t?S.calculateHashCodeSingle(t,e):S.calculateEmptyHashCode()),this.parent=t??null,this.returnState=e}static create(e,s){return s===S.EMPTY_RETURN_STATE&&null===e?S.EMPTY:new t(e,s)}getParent(t){return this.parent}getReturnState(t){return this.returnState}equals(e){return this===e||e instanceof t&&(this.hashCode()===e.hashCode()&&(this.returnState===e.returnState&&(null==this.parent?null==e.parent:this.parent.equals(e.parent))))}toString(){const t=null===this.parent?"":this.parent.toString();return 0===t.length?this.returnState===S.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}},g=class t extends p{static{h(this,"EmptyPredictionContext")}static instance=new t;constructor(){super(void 0,S.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(t){return this===t}toString(){return"$"}static{S.EMPTY=new t}},m=class{static{h(this,"TerminalNode")}parent=null;symbol;constructor(t){this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return E.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new E(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===a.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},x=class extends m{static{h(this,"ErrorNode")}accept(t){return t.visitErrorNode(this)}},U=class t{static{h(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(t){this.type=t.type,this.source=t.source,this.tokenIndex=t.tokenIndex??-1,this.line=t.line??0,this.column=t.column??-1,this.channel=t.channel??a.DEFAULT_CHANNEL,this.start=t.start??0,this.stop=t.stop??0,this.#i=t.text,null!==t.source[0]&&(this.line=t.source[0].line,this.column=t.source[0].column)}static fromToken(e){const s=[e.tokenSource,e.inputStream];return new t({type:e.type,line:e.line,tokenIndex:e.tokenIndex,column:e.column,channel:e.channel,start:e.start,stop:e.stop,text:e.text,source:s})}static fromType(e,s){return new t({type:e,text:s,source:t.EMPTY_SOURCE})}static fromSource(e,s,r,i,a){return new t({type:s,channel:r,start:i,stop:a,source:e})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(t){this.source[1]=t}clone(){return new t({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(t){let e="";this.channel>0&&(e=",channel="+this.channel);let s=this.text;s?(s=s.replace(/\n/g,"\\n"),s=s.replace(/\r/g,"\\r"),s=s.replace(/\t/g,"\\t")):s="<no text>";let r=String(this.type);return t&&(r=t.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+s+"',<"+r+">"+e+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const t=this.inputStream;if(!t)return;const e=t.size;return this.start<e&&this.stop<e?t.getTextFromRange(this.start,this.stop):"<EOF>"}set text(t){this.#i=t}setText(t){this.#i=t}setType(t){this.type=t}setLine(t){this.line=t}setCharPositionInLine(t){this.column=t}setChannel(t){this.channel=t}setTokenIndex(t){this.tokenIndex=t}},f=class t{static{h(this,"Trees")}static toStringTree(e,s,r){s=s??null,null!==(r=r??null)&&(s=r.ruleNames);let i=t.getNodeText(e,s);i=I(i,!1);const a=e.getChildCount();if(0===a)return i;let n="("+i+" ";a>0&&(i=t.toStringTree(e.getChild(0),s),n=n.concat(i));for(let c=1;c<a;c++)i=t.toStringTree(e.getChild(c),s),n=n.concat(" "+i);return n=n.concat(")"),n}static getNodeText(t,e,s){if(e=e??null,null!==(s=s??null)&&(e=s.ruleNames),null!==e){if(t instanceof P){const s=t.ruleContext.getAltNumber();return 0!==s?e[t.ruleIndex]+":"+s:e[t.ruleIndex]}if(t instanceof x)return t.toString();if(t instanceof m&&null!==t.symbol)return t.symbol.text}const r=t.getPayload();return o(r)?r.text:String(t.getPayload())}static getChildren(t){const e=[];for(let s=0;s<t.getChildCount();s++)e.push(t.getChild(s));return e}static getAncestors(t){if(null===t.parent)return[];let e=[],s=t.parent;for(;null!==s;)e=[s].concat(e),s=s.parent;return e}static isAncestorOf(t,e){if(null===t||null===e||null===t.parent)return!1;let s=e.parent;for(;null!==s;){if(t===s)return!0;s=s.parent}return!1}static findAllTokenNodes(e,s){return t.findAllNodes(e,s,!0)}static findAllRuleNodes(e,s){return t.findAllNodes(e,s,!1)}static findAllNodes(e,s,r){const i=[];return t.doFindAllNodes(e,s,r,i),i}static descendants(e){let s=[e];for(let r=0;r<e.getChildCount();r++)s=s.concat(t.descendants(e.getChild(r)));return s}static getRootOfSubtreeEnclosingRegion(t,e,s){const r=t.getChildCount();for(let i=0;i<r;i++){const r=t.getChild(i),a=this.getRootOfSubtreeEnclosingRegion(r,e,s);if(null!==a)return a}return t instanceof P&&e>=t.start.tokenIndex&&(null===t.stop||s<=t.stop.tokenIndex)?t:null}static stripChildrenOutOfRange(t,e,s,r){if(null!==t)for(let i=0;i<t.getChildCount();i++){const n=t.getChild(i),c=n.getSourceInterval();if(t instanceof P&&(c.stop<s||c.start>r)&&this.isAncestorOf(n,e)){const e=U.fromType(a.INVALID_TYPE,"...");t.children[i]=new m(e)}}}static doFindAllNodes(e,s,r,i){r&&e instanceof m?e.symbol?.type===s&&i.push(e):!r&&e instanceof P&&e.ruleIndex===s&&i.push(e);for(let a=0;a<e.getChildCount();a++)t.doFindAllNodes(e.getChild(a),s,r,i)}},P=class t{static{h(this,"ParserRuleContext")}static empty=new t(null);start=null;stop=null;children=[];invokingState;#a;constructor(t,e=-1){this.#a=t,this.invokingState=e}copyFrom(t){this.#a=t.#a,this.invokingState=t.invokingState,this.children.slice(0,this.children.length),this.start=t.start,this.stop=t.stop,t.children&&t.children.forEach((t=>{t instanceof x&&(this.children.push(t),t.parent=this)}))}enterRule(t){}exitRule(t){}addChild(t){return this.children.push(t),t}removeLastChild(){this.children.pop()}addTokenNode(t){const e=new m(t);return this.children.push(e),e.parent=this,e}addErrorNode(t){return t.parent=this,this.children.push(t),t}getChild(t,e){if(t<0||t>=this.children.length)return null;if(!e)return this.children[t];for(const s of this.children)if(s instanceof e){if(0===t)return s;t-=1}return null}getToken(t,e){if(e<0||e>=this.children.length)return null;for(const s of this.children)if("symbol"in s&&s.symbol?.type===t){if(0===e)return s;e-=1}return null}getTokens(t){const e=[];for(const s of this.children)"symbol"in s&&s.symbol?.type===t&&e.push(s);return e}getRuleContext(t,e){return this.getChild(t,e)}getRuleContexts(t){const e=[];for(const s of this.children)s instanceof t&&e.push(s);return e}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start||null===this.stop?E.INVALID_INTERVAL:new E(this.start.tokenIndex,this.stop.tokenIndex)}get parent(){return this.#a}set parent(t){this.#a=t}depth(){let t=0,e=this;for(;null!==e;)e=e.parent,t+=1;return t}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((t=>t.getText())).join("")}getAltNumber(){return z.INVALID_ALT_NUMBER}setAltNumber(t){}accept(t){return t.visitChildren(this)}toStringTree(...t){return 1===t.length?f.toStringTree(this,null,t[0]):f.toStringTree(this,t[0],t[1])}toString(t,e){t=t??null,e=e??null;let s=this,r="[";for(;null!==s&&s!==e;){if(null===t)s.isEmpty()||(r+=s.invokingState);else{const e=s.ruleIndex;r+=e>=0&&e<t.length?t[e]:""+e}null===s.parent||null===t&&s.parent.isEmpty()||(r+=" "),s=s.parent}return r+="]",r}},k=class t{static{h(this,"ObjectEqualityComparator")}static instance=new t;hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}},M=class t{static{h(this,"DefaultEqualityComparator")}static instance=new t;hashCode(t){return null==t?0:k.instance.hashCode(t)}equals(t,e){return null==t?null==e:"string"===typeof t||"number"===typeof t?t===e:k.instance.equals(t,e)}},y=class t{static{h(this,"HashSet")}static#n=.75;static#c=16;#h;#o;#E=0;#l;constructor(e,s=t.#c){if(e instanceof t){this.#h=e.#h,this.#o=e.#o.slice(0);for(let t=0;t<this.#o.length;t++){const e=this.#o[t];e&&(this.#o[t]=e.slice(0))}this.#E=e.#E,this.#l=e.#l}else this.#h=e??M.instance,this.#o=this.createBuckets(s),this.#l=Math.floor(t.#c*t.#n)}getOrAdd(t){this.#E>this.#l&&this.expand();const e=this.getBucket(t);let s=this.#o[e];if(!s)return s=[t],this.#o[e]=s,++this.#E,t;for(const r of s)if(this.#h.equals(r,t))return r;return s.push(t),++this.#E,t}get(t){if(null==t)return t;const e=this.getBucket(t),s=this.#o[e];if(s)for(const r of s)if(this.#h.equals(r,t))return r}remove(t){if(null==t)return!1;const e=this.getBucket(t),s=this.#o[e];if(!s)return!1;for(let r=0;r<s.length;r++){const e=s[r];if(this.#h.equals(e,t))return s.splice(r,1),--this.#E,!0}return!1}hashCode(){let t=u.initialize();for(const e of this.#o)if(null!=e)for(const s of e){if(null==s)break;t=u.update(t,this.#h.hashCode(s))}return t=u.finish(t,this.size),t}equals(e){return e===this||e instanceof t&&(e.size===this.size&&this.containsAll(e))}add(t){return this.getOrAdd(t)===t}contains(t){return this.containsFast(t)}containsFast(t){return null!=t&&void 0!==this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(const s of this.#o)if(null!=s)for(const r of s){if(null==r)break;t[e++]=r}return t}containsAll(e){if(e instanceof t){for(const t of e.#o)if(null!=t)for(const e of t){if(null==e)break;if(!this.containsFast(e))return!1}}else for(const t of e)if(!this.containsFast(t))return!1;return!0}addAll(t){let e=!1;for(const s of t){this.getOrAdd(s)!==s&&(e=!0)}return e}clear(){this.#o=this.createBuckets(t.#c),this.#E=0,this.#l=Math.floor(t.#c*t.#n)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(const s of this.#o)if(null!=s)for(const r of s){if(null==r)break;e?e=!1:t+=", ",t+=r.toString()}return t+="}",t}toTableString(){let t="";for(const e of this.#o){if(null==e){t+="null\n";continue}t+="[";let s=!0;for(const r of e)s?s=!1:t+=" ",t+=null==r?"_":r.toString();t+="]\n"}return t}getBucket(t){return this.#h.hashCode(t)&this.#o.length-1}expand(){const e=this.#o,s=2*this.#o.length,r=this.createBuckets(s);this.#o=r,this.#l=Math.floor(s*t.#n);for(const t of e)if(t)for(const e of t){const t=this.getBucket(e);let s=this.#o[t];s||(s=[],this.#o[t]=s),s.push(e)}}get size(){return this.#E}get isEmpty(){return 0===this.#E}createBuckets(t){return new Array(t)}},D=class{static{h(this,"MapKeyEqualityComparator")}keyComparator;constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}},v=class t{static{h(this,"HashMap")}backingStore;constructor(e){this.backingStore=new y(e instanceof t?e.backingStore:new D(e))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){const e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}set(t,e){const s=this.backingStore.get({key:t,value:e});let r;return s?(r=s.value,s.value=e):this.backingStore.add({key:t,value:e}),r}setIfAbsent(t,e){const s=this.backingStore.get({key:t,value:e});let r;return s?r=s.value:this.backingStore.add({key:t,value:e}),r}values(){return this.backingStore.toArray().map((t=>t.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return this.backingStore.equals(t.backingStore)}},b=h(((t,e)=>{if(e||(e=P.empty),!e.parent||e===P.empty)return S.EMPTY;const s=b(t,e.parent),r=t.states[e.invokingState].transitions[0];return p.create(s,r.followState.stateNumber)}),"predictionContextFromRuleContext"),H=h(((t,e,s)=>{if(t.isEmpty())return t;let r=s.get(t);if(r)return r;if(r=e.get(t),r)return s.set(t,r),r;let i,a=!1,n=[];for(let c=0;c<n.length;c++){const r=H(t.getParent(c),e,s);if(a||r!==t.getParent(c)){if(!a){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);a=!0}n[c]=r}}return a?(i=0===n.length?S.EMPTY:1===n.length?p.create(n[0]??void 0,t.getReturnState(0)):new O(n,t.returnStates),e.add(i),s.set(i,i),s.set(t,i),i):(e.add(t),s.set(t,t),t)}),"getCachedPredictionContext"),w=h(((t,e,s,r)=>{if(t===e)return t;if(t instanceof p&&e instanceof p)return B(t,e,s,r);if(s){if(t instanceof g)return t;if(e instanceof g)return e}return t instanceof p&&(t=new O([t.parent],[t.returnState])),e instanceof p&&(e=new O([e.parent],[e.returnState])),F(t,e,s,r)}),"merge"),F=h(((t,e,s,r)=>{if(r){let s=r.get(t,e);if(s)return s;if(s=r.get(e,t),s)return s}let i=0,a=0,n=0,c=new Array(t.returnStates.length+e.returnStates.length).fill(0),h=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&a<e.returnStates.length;){const o=t.parents[i],E=e.parents[a];if(t.returnStates[i]===e.returnStates[a]){const e=t.returnStates[i];e===S.EMPTY_RETURN_STATE&&null===o&&null===E||null!==o&&null!==E&&o===E?(h[n]=o,c[n]=e):(h[n]=w(o,E,s,r),c[n]=e),i+=1,a+=1}else t.returnStates[i]<e.returnStates[a]?(h[n]=o,c[n]=t.returnStates[i],i+=1):(h[n]=E,c[n]=e.returnStates[a],a+=1);n+=1}if(i<t.returnStates.length)for(let E=i;E<t.returnStates.length;E++)h[n]=t.parents[E],c[n]=t.returnStates[E],n+=1;else for(let E=a;E<e.returnStates.length;E++)h[n]=e.parents[E],c[n]=e.returnStates[E],n+=1;if(n<h.length){if(1===n){const s=p.create(h[0]??void 0,c[0]);return null!==r&&r.set(t,e,s),s}h=h.slice(0,n),c=c.slice(0,n)}const o=new O(h,c);return o.equals(t)?(null!==r&&r.set(t,e,t),S.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):o.equals(e)?(null!==r&&r.set(t,e,e),e):(G(h),null!==r&&r.set(t,e,o),S.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> "+o),o)}),"mergeArrays"),G=h((t=>{const e=new v(k.instance);for(const s of t)s&&(e.containsKey(s)||e.set(s,s));for(let s=0;s<t.length;s++)t[s]&&(t[s]=e.get(t[s])??null)}),"combineCommonParents"),B=h(((t,e,s,r)=>{if(null!==r){let s=r.get(t,e);if(null!==s)return s;if(s=r.get(e,t),null!==s)return s}const i=Y(t,e,s);if(null!==i)return null!==r&&r.set(t,e,i),i;if(t.returnState===e.returnState){const i=w(t.parent,e.parent,s,r);if(i===t.parent)return t;if(i===e.parent)return e;const a=p.create(i,t.returnState);return null!==r&&r.set(t,e,a),a}{let s=null;if((t===e||null!==t.parent&&t.parent===e.parent)&&(s=t.parent),null!==s){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const a=new O([s,s],i);return null!==r&&r.set(t,e,a),a}const i=[t.returnState,e.returnState];let a=[t.parent,e.parent];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,a=[e.parent,t.parent]);const n=new O(a,i);return null!==r&&r.set(t,e,n),n}}),"mergeSingletons"),Y=h(((t,e,s)=>{if(s){if(t===S.EMPTY||e===S.EMPTY)return S.EMPTY}else{if(t===S.EMPTY&&e===S.EMPTY)return S.EMPTY;if(t===S.EMPTY){const t=[e.returnState,S.EMPTY_RETURN_STATE],s=[e.parent,null];return new O(s,t)}if(e===S.EMPTY){const e=[t.returnState,S.EMPTY_RETURN_STATE],s=[t.parent,null];return new O(s,e)}}return null}),"mergeRoot"),V=class{static{h(this,"BitSet")}data;constructor(t){this.data=t?new Uint32Array(t.map((t=>t>>>0))):new Uint32Array(1)}[Symbol.iterator](){const t=this.data.length;let e=0,s=this.data[e];const r=this.data;return{[Symbol.iterator](){return this},next:()=>{for(;e<t;){if(0!==s){const t=s&-s,r=(e<<5)+this.bitCount(t-1);return s^=t,{done:!1,value:r}}e++,e<t&&(s=r[e])}return{done:!0,value:void 0}}}}clear(t){void 0===t?this.data=new Uint32Array:(this.resize(t),this.data[t>>>5]&=~(1<<t))}or(t){const e=Math.min(this.data.length,t.data.length);for(let s=0;s<e;++s)this.data[s]|=t.data[s];if(this.data.length<t.data.length){this.resize((t.data.length<<5)-1);const s=t.data.length;for(let r=e;r<s;++r)this.data[r]=t.data[r]}}get(t){if(t<0)throw new RangeError("index cannot be negative");const e=t>>>5;return!(e>=this.data.length)&&0!==(this.data[e]&1<<t%32)}get length(){let t=0;const e=this.data.length,s=this.data;for(let r=0;r<e;r++)t+=this.bitCount(s[r]);return t}values(){const t=new Array(this.length);let e=0;const s=this.data.length;for(let r=0;r<s;++r){let s=this.data[r];for(;0!==s;){const i=s&-s;t[e++]=(r<<5)+this.bitCount(i-1),s^=i}}return t}nextSetBit(t){if(t<0)throw new RangeError("index cannot be negative");for(const e of this)if(e>t)return e}set(t){if(t<0)throw new RangeError("index cannot be negative");this.resize(t),this.data[t>>>5]|=1<<t%32}toString(){return"{"+this.values().join(", ")+"}"}resize(t){const e=t+32>>>5;if(e<=this.data.length)return;const s=new Uint32Array(e);s.set(this.data),s.fill(0,this.data.length),this.data=s}bitCount(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,63&(t+=t>>16)}},W=class t{static{h(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=t.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(t){return this.stateNumber===t.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(t,e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(t,1,e)}addTransition(t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(t)}setTransition(t,e){this.transitions.splice(t,1,e)}removeTransition(t){return this.transitions.splice(t,1)[0]}},X=class t{static{h(this,"SemanticContext")}cachedHashCode;static andContext(e,s){if(null===e||e===t.NONE)return s;if(null===s||s===t.NONE)return e;const r=new K(e,s);return 1===r.operands.length?r.operands[0]:r}static orContext(e,s){if(null===e)return s;if(null===s)return e;if(e===t.NONE||s===t.NONE)return t.NONE;const r=new Q(e,s);return 1===r.operands.length?r.operands[0]:r}static filterPrecedencePredicates(e){const s=[];for(const r of e)r instanceof t.PrecedencePredicate&&s.push(r);return s}evalPrecedence(t,e){return this}},K=class t extends X{static{h(this,"AND")}operands;constructor(e,s){super();const r=new y;e instanceof t?e.operands.forEach((t=>{r.add(t)})):r.add(e),s instanceof t?s.operands.forEach((t=>{r.add(t)})):r.add(s);const i=X.filterPrecedencePredicates(r);if(i.length>0){let t=null;i.forEach((e=>{(null===t||e.precedence<t.precedence)&&(t=e)})),t&&r.add(t)}this.operands=r.toArray()}equals(e){return this===e||e instanceof t&&C(this.operands,e.operands)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize();for(const e of this.operands)t=u.updateFromComparable(t,e);t=u.update(t,3813686060),this.cachedHashCode=u.finish(t,this.operands.length+1)}return this.cachedHashCode}evaluate(t,e){for(const s of this.operands)if(!s.evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let s=!1;const r=[];for(const a of this.operands){const i=a.evalPrecedence(t,e);if(s||=i!==a,null===i)return null;i!==X.NONE&&r.push(i)}if(!s)return this;if(0===r.length)return X.NONE;let i=null;return r.forEach((t=>{i=null===i?t:X.andContext(i,t)})),i}toString(){const t=this.operands.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}},Q=class t extends X{static{h(this,"OR")}operands;constructor(e,s){super();const r=new y;e instanceof t?e.operands.forEach((t=>{r.add(t)})):r.add(e),s instanceof t?s.operands.forEach((t=>{r.add(t)})):r.add(s);const i=X.filterPrecedencePredicates(r);if(i.length>0){const t=i.sort(((t,e)=>t.compareTo(e))),e=t[t.length-1];r.add(e)}this.operands=r.toArray()}equals(e){return this===e||e instanceof t&&C(this.operands,e.operands)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize();for(const e of this.operands)t=u.updateFromComparable(t,e);t=u.update(t,3383313031),this.cachedHashCode=u.finish(t,this.operands.length+1)}return this.cachedHashCode}evaluate(t,e){for(const s of this.operands)if(s.evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let s=!1;const r=[];for(const a of this.operands){const i=a.evalPrecedence(t,e);if(s||=i!==a,i===X.NONE)return X.NONE;null!==i&&r.push(i)}if(!s)return this;if(0===r.length)return null;let i=null;return r.forEach((t=>{i=null===i?t:X.orContext(i,t)})),i}toString(){const t=this.operands.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}};(t=>{class e extends t{static{h(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(t,e,s){super(),this.ruleIndex=t??-1,this.predIndex=e??-1,this.isCtxDependent=s??!1}evaluate(t,e){const s=this.isCtxDependent?e:null;return t.sempred(s,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize();t=u.update(t,this.ruleIndex),t=u.update(t,this.predIndex),t=u.update(t,this.isCtxDependent?1:0),t=u.finish(t,3),this.cachedHashCode=t}return this.cachedHashCode}equals(t){return this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}t.Predicate=e;class s extends t{static{h(this,"PrecedencePredicate")}precedence;constructor(t){super(),this.precedence=t??0}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,s){return e.precpred(s??null,this.precedence)?t.NONE:null}compareTo(t){return this.precedence-t.precedence}hashCode(){return 31+this.precedence}equals(t){return this===t||this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}t.PrecedencePredicate=s,t.NONE=new e})(X||(X={}));var q,j=class t{static{h(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#u}cachedHashCode;#R=null;#u;constructor(t,e,s,r){this.state=e,this.alt=t.alt,this.context=s,this.#u=r??X.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,void 0!==t.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=t.precedenceFilterSuppressed)}static duplicate(e,s){return new t(e,e.state,e.context,s??e.semanticContext)}static createWithContext(e,s,r,i){return new t({alt:s},e,r,i)}static createWithConfig(e,s,r){return new t(s,e,r??s.context,s.semanticContext)}static createWithSemanticContext(e,s,r){return new t(s,e??s.state,s.context,r)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize(7);t=u.update(t,this.state.stateNumber),t=u.update(t,this.alt),t=u.updateFromComparable(t,this.#R),t=u.updateFromComparable(t,this.semanticContext),t=u.finish(t,4),this.cachedHashCode=t}return this.cachedHashCode}get context(){return this.#R}set context(t){this.#R=t,this.cachedHashCode=void 0}equals(t){return this===t||this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}toString(t,e=!0){let s="";return e&&(s=","+this.alt),"("+this.state+s+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==X.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},J=class t{static{h(this,"LL1Analyzer")}static hitPredicate=a.INVALID_TYPE;#_;getDecisionLookahead(e){if(!e)return;const s=e.transitions.length,r=new Array(s);for(let i=0;i<s;i++){const s=new R,a=new y;this.doLook(e.transitions[i].target,void 0,S.EMPTY,s,a,new V,!1,!1),s.length>0&&!s.contains(t.hitPredicate)&&(r[i]=s)}return r}look(t,e,s,r){this.#_=t;const i=new R,a=r?b(t,r):null;return this.doLook(e,s,a,i,new y,new V,!0,!0),i}doLook(e,s,r,i,n,c,h,o){const E=j.createWithContext(e,0,r);if(!n.get(E)){if(n.add(E),e===s){if(!r)return void i.addOne(a.EPSILON);if(r.isEmpty()&&o)return void i.addOne(a.EOF)}if(e.constructor.stateType===W.RULE_STOP){if(!r)return void i.addOne(a.EPSILON);if(r.isEmpty()&&o)return void i.addOne(a.EOF);if(r!==S.EMPTY){const t=c.get(e.ruleIndex);try{c.clear(e.ruleIndex);for(let t=0;t<r.length;t++){const e=this.#_.states[r.getReturnState(t)];this.doLook(e,s,r.getParent(t),i,n,c,h,o)}}finally{t&&c.set(e.ruleIndex)}return}}for(const E of e.transitions)switch(E.transitionType){case _.RULE:{if(c.get(E.target.ruleIndex))continue;const t=p.create(r??void 0,E.followState.stateNumber);try{c.set(E.target.ruleIndex),this.doLook(E.target,s,t,i,n,c,h,o)}finally{c.clear(E.target.ruleIndex)}break}case _.PREDICATE:case _.PRECEDENCE:h?this.doLook(E.target,s,r,i,n,c,h,o):i.addOne(t.hitPredicate);break;case _.WILDCARD:i.addRange(a.MIN_USER_TOKEN_TYPE,this.#_.maxTokenType);break;default:if(E.isEpsilon)this.doLook(E.target,s,r,i,n,c,h,o);else{let t=E.label;t&&(E instanceof A&&(t=t.complement(a.MIN_USER_TOKEN_TYPE,this.#_.maxTokenType)),i.addSet(t))}}}}},z=class t{static{h(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];static#T=new J;constructor(t,e){this.grammarType=t,this.maxTokenType=e}nextTokens(e,s){if(!s&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const r=t.#T.look(this,e,void 0,s);return s||(e.nextTokenWithinRule=r),r}addState(t){t&&(t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new Error("Invalid state number.");const s=this.states[t];let r=this.nextTokens(s);if(!r.contains(a.EPSILON))return r;let i=e;const n=new R;for(n.addSet(r),n.removeOne(a.EPSILON);null!==i&&i.invokingState>=0&&r.contains(a.EPSILON);){const t=this.states[i.invokingState].transitions[0];r=this.nextTokens(t.followState),n.addSet(r),n.removeOne(a.EPSILON),i=i.parent}return r.contains(a.EPSILON)&&n.addOne(a.EOF),n}},Z=class t{static{h(this,"KeyTypeEqualityComparer")}static instance=new t;hashCode(t){let e=7;return e=31*e+t.state.stateNumber,e=31*e+t.alt,e=31*e+t.semanticContext.hashCode(),e}equals(t,e){return t===e||t.state.stateNumber===e.state.stateNumber&&t.alt===e.alt&&t.semanticContext.equals(e.semanticContext)}},$=class{static{h(this,"ATNConfigSet")}configLookup=new y(Z.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#e=-1;constructor(t){if(void 0!==t)if("boolean"===typeof t)this.fullCtx=t??!0;else{const e=t;this.addAll(e.configs),this.uniqueAlt=e.uniqueAlt,this.conflictingAlts=e.conflictingAlts,this.hasSemanticContext=e.hasSemanticContext,this.dipsIntoOuterContext=e.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(t,e=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||t.state.constructor.stateType!==W.RULE_STOP||(this.firstStopState=t),this.hasSemanticContext||=t.semanticContext!==X.NONE,this.dipsIntoOuterContext||=t.reachesIntoOuterContext;const s=this.configLookup.getOrAdd(t);if(s===t)return this.#e=-1,void this.configs.push(t);const r=!this.fullCtx,i=w(s.context,t.context,r,e);s.reachesIntoOuterContext||=t.reachesIntoOuterContext,s.precedenceFilterSuppressed||=t.precedenceFilterSuppressed,s.context=i}get elements(){return this.configs}getAlts(){const t=new V;for(const e of this.configs)t.set(e.alt);return t}getPredicates(){const t=[];for(const e of this.configs)e.semanticContext!==X.NONE&&t.push(e.semanticContext);return t}getStates(){const t=new y;for(const e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const e of this.configs)e.context=t.getCachedContext(e.context)}addAll(t){for(const e of t)this.add(e);return!1}equals(t){return this===t||!(this.fullCtx!==t.fullCtx||this.uniqueAlt!==t.uniqueAlt||this.conflictingAlts!==t.conflictingAlts||this.hasSemanticContext!==t.hasSemanticContext||this.dipsIntoOuterContext!==t.dipsIntoOuterContext||!C(this.configs,t.configs))}hashCode(){return-1===this.#e&&(this.#e=this.computeHashCode()),this.#e}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(t)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#e=-1,this.configLookup=new y(Z.instance)}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return L(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let t=u.initialize();return this.configs.forEach((e=>{t=u.update(t,e.hashCode())})),t=u.finish(t,this.configs.length),t}},tt=class extends W{static{h(this,"BasicState")}static stateType=W.BASIC},et=class extends W{static{h(this,"DecisionState")}decision=-1;nonGreedy=!1},st=class extends et{static{h(this,"BlockStartState")}endState},rt=class extends W{static{h(this,"BlockEndState")}static stateType=W.BLOCK_END;startState},it=class extends W{static{h(this,"LoopEndState")}static stateType=W.LOOP_END;loopBackState},at=class extends W{static{h(this,"RuleStartState")}static stateType=W.RULE_START;stopState;isLeftRecursiveRule=!1;isPrecedenceRule=!1},nt=class extends W{static{h(this,"RuleStopState")}static stateType=W.RULE_STOP},ct=class extends et{static{h(this,"TokensStartState")}static stateType=W.TOKEN_START},ht=class extends et{static{h(this,"PlusLoopbackState")}static stateType=W.PLUS_LOOP_BACK},ot=class extends W{static{h(this,"StarLoopbackState")}static stateType=W.STAR_LOOP_BACK},Et=class extends et{static{h(this,"StarLoopEntryState")}static stateType=W.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},lt=class extends st{static{h(this,"PlusBlockStartState")}static stateType=W.PLUS_BLOCK_START;loopBackState},ut=class extends st{static{h(this,"StarBlockStartState")}static stateType=W.STAR_BLOCK_START},Rt=class extends st{static{h(this,"BasicBlockStartState")}static stateType=W.BLOCK_START},_t=class extends _{static{h(this,"AtomTransition")}labelValue;#A;constructor(t,e){super(t),this.labelValue=e,this.#A=R.of(e,e)}get label(){return this.#A}get transitionType(){return _.ATOM}matches(t){return this.labelValue===t}toString(){return this.labelValue.toString()}},Tt=class extends _{static{h(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(t,e,s,r){super(t),this.ruleIndex=e,this.precedence=s,this.followState=r}get isEpsilon(){return!0}get transitionType(){return _.RULE}matches(t,e,s){return!1}},At=class extends _{static{h(this,"RangeTransition")}start;stop;#A=new R;constructor(t,e,s){super(t),this.start=e,this.stop=s,this.#A.addRange(e,s)}get label(){return this.#A}get transitionType(){return _.RANGE}matches(t,e,s){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},St=class extends _{static{h(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(t,e,s,r){super(t),this.ruleIndex=e,this.actionIndex=void 0===s?-1:s,this.isCtxDependent=void 0!==r&&r}get isEpsilon(){return!0}get transitionType(){return _.ACTION}matches(t,e,s){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},dt=class extends _{static{h(this,"EpsilonTransition")}#S;constructor(t,e=-1){super(t),this.#S=e}get outermostPrecedenceReturn(){return this.#S}get isEpsilon(){return!0}get transitionType(){return _.EPSILON}matches(){return!1}toString(){return"epsilon"}},Lt=class extends _{static{h(this,"WildcardTransition")}get transitionType(){return _.WILDCARD}matches(t,e,s){return t>=e&&t<=s}toString(){return"."}},Ct=class extends _{static{h(this,"AbstractPredicateTransition")}constructor(t){super(t)}},Nt=class extends Ct{static{h(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(t,e,s,r){super(t),this.ruleIndex=e,this.predIndex=s,this.isCtxDependent=r}get isEpsilon(){return!0}matches(t,e,s){return!1}get transitionType(){return _.PREDICATE}getPredicate(){return new X.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},It=class extends Ct{static{h(this,"PrecedencePredicateTransition")}precedence;constructor(t,e){super(t),this.precedence=e}get isEpsilon(){return!0}matches(t,e,s){return!1}getPredicate(){return new X.PrecedencePredicate(this.precedence)}get transitionType(){return _.PRECEDENCE}toString(){return this.precedence+" >= _p"}},Ot=0,pt=1,gt=2,mt=3,xt=4,Ut=5,ft=6,Pt=7,kt=class t{static{h(this,"LexerSkipAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=ft}equals(t){return t===this}hashCode(){return ft}execute(t){t.skip()}toString(){return"skip"}},Mt=class t{static{h(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Ot,this.channel=t}execute(t){t.channel=this.channel}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.channel),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.channel===e.channel}toString(){return"channel("+this.channel+")"}},yt=class t{static{h(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;#e;constructor(t,e){this.actionType=pt,this.ruleIndex=t,this.actionIndex=e}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.ruleIndex),t=u.update(t,this.actionIndex),this.#e=u.finish(t,3)}return this.#e}equals(e){return this===e||e instanceof t&&(this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex)}},Dt=class t{static{h(this,"LexerMoreAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=mt}equals(t){return t===this}hashCode(){return mt}execute(t){t.more()}toString(){return"more"}},vt=class t{static{h(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Pt,this.type=t}execute(t){t.type=this.type}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.type),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.type===e.type}toString(){return"type("+this.type+")"}},bt=class t{static{h(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Ut,this.mode=t}execute(t){t.pushMode(this.mode)}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.mode),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.mode===e.mode}toString(){return"pushMode("+this.mode+")"}},Ht=class t{static{h(this,"LexerPopModeAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=xt}equals(t){return t===this}hashCode(){return xt}execute(t){t.popMode()}toString(){return"popMode"}},wt=class t{static{h(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=gt,this.mode=t}execute(t){t.mode=this.mode}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.mode),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.mode===e.mode}toString(){return"mode("+this.mode+")"}},Ft=class t{static{h(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[W.INVALID_TYPE,void 0],[W.BASIC,tt],[W.RULE_START,at],[W.BLOCK_START,Rt],[W.PLUS_BLOCK_START,lt],[W.STAR_BLOCK_START,ut],[W.TOKEN_START,ct],[W.RULE_STOP,nt],[W.BLOCK_END,rt],[W.STAR_LOOP_BACK,ot],[W.STAR_LOOP_ENTRY,Et],[W.PLUS_LOOP_BACK,ht],[W.LOOP_END,it]]);static lexerActionFactoryMapper=new Map([[Ot,t=>new Mt(t)],[pt,(t,e)=>new yt(t,e)],[gt,t=>new wt(t)],[mt,()=>Dt.instance],[xt,()=>Ht.instance],[Ut,t=>new bt(t)],[ft,()=>kt.instance],[Pt,t=>new vt(t)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(t){t||(t={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=t}deserialize(t){this.data=t,this.checkVersion();const e=this.readATN();this.readStates(e),this.readRules(e),this.readModes(e);const s=[];return this.readSets(e,s),this.readEdges(e,s),this.readDecisions(e),this.readLexerActions(e),this.markPrecedenceDecisions(e),this.verifyATN(e),this.deserializationOptions.generateRuleBypassTransitions&&e.grammarType===z.PARSER&&(this.generateRuleBypassTransitions(e),this.verifyATN(e)),e}checkVersion(){const e=this.data[this.pos++];if(e!==t.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+e+" (expected "+t.SERIALIZED_VERSION+").")}readATN(){const t=this.data[this.pos++],e=this.data[this.pos++];return new z(t,e)}readStates(t){let e,s;const r=[],i=[],a=this.data[this.pos++];for(let h=0;h<a;h++){const e=this.data[this.pos++];if(e===W.INVALID_TYPE){t.addState(null);continue}const s=this.data[this.pos++],a=this.stateFactory(e,s);if(e===W.LOOP_END){const t=this.data[this.pos++];r.push([a,t])}else if(a instanceof st){const t=this.data[this.pos++];i.push([a,t])}t.addState(a)}for(e=0;e<r.length;e++){const s=r[e];s[0].loopBackState=t.states[s[1]]??void 0}for(e=0;e<i.length;e++){const s=i[e];s[0].endState=t.states[s[1]]}const n=this.data[this.pos++];for(e=0;e<n;e++)s=this.data[this.pos++],t.states[s].nonGreedy=!0;const c=this.data[this.pos++];for(e=0;e<c;e++)s=this.data[this.pos++],t.states[s].isPrecedenceRule=!0}readRules(t){let e;const s=this.data[this.pos++];for(t.grammarType===z.LEXER&&(t.ruleToTokenType=new Array(s),t.ruleToTokenType.fill(0)),t.ruleToStartState=new Array(s),t.ruleToStartState.fill(null),e=0;e<s;e++){const s=this.data[this.pos++];if(t.ruleToStartState[e]=t.states[s],t.grammarType===z.LEXER){const s=this.data[this.pos++];t.ruleToTokenType[e]=s}}for(t.ruleToStopState=new Array(s),t.ruleToStopState.fill(null),e=0;e<t.states.length;e++){const s=t.states[e];s instanceof nt&&(t.ruleToStopState[s.ruleIndex]=s,t.ruleToStartState[s.ruleIndex].stopState=s)}}readModes(t){const e=this.data[this.pos++];for(let s=0;s<e;s++){const e=this.data[this.pos++];t.modeToStartState.push(t.states[e])}}readSets(t,e){const s=this.data[this.pos++];for(let r=0;r<s;r++){const t=new R;e.push(t);const s=this.data[this.pos++];0!==this.data[this.pos++]&&t.addOne(-1);for(let e=0;e<s;e++){const e=this.data[this.pos++],s=this.data[this.pos++];t.addRange(e,s)}}}readEdges(t,e){let s,r,i,a,n;const c=this.data[this.pos++];for(s=0;s<c;s++){const s=this.data[this.pos++],r=this.data[this.pos++],i=this.data[this.pos++],n=this.data[this.pos++],c=this.data[this.pos++],h=this.data[this.pos++];a=this.edgeFactory(t,i,r,n,c,h,e);t.states[s].addTransition(a)}for(s=0;s<t.states.length;s++)for(i=t.states[s],r=0;r<i.transitions.length;r++){const e=i.transitions[r];if(!(e instanceof Tt))continue;let s=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(s=e.target.ruleIndex),a=new dt(e.followState,s),t.ruleToStopState[e.target.ruleIndex].addTransition(a)}for(s=0;s<t.states.length;s++){if(i=t.states[s],i instanceof st){if(!i.endState)throw new Error("IllegalState");if(i.endState.startState)throw new Error("IllegalState");i.endState.startState=i}if(i instanceof ht)for(r=0;r<i.transitions.length;r++)n=i.transitions[r].target,n instanceof lt&&(n.loopBackState=i);else if(i instanceof ot)for(r=0;r<i.transitions.length;r++)n=i.transitions[r].target,n instanceof Et&&(n.loopBackState=i)}}readDecisions(t){const e=this.data[this.pos++];for(let s=0;s<e;s++){const e=this.data[this.pos++],r=t.states[e];t.decisionToState.push(r),r.decision=s}}readLexerActions(t){if(t.grammarType===z.LEXER){const e=this.data[this.pos++];t.lexerActions=[];for(let s=0;s<e;s++){const e=this.data[this.pos++],s=this.data[this.pos++],r=this.data[this.pos++];t.lexerActions.push(this.lexerActionFactory(e,s,r))}}}generateRuleBypassTransitions(t){let e;const s=t.ruleToStartState.length;for(e=0;e<s;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<s;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let s,r;const i=new Rt;i.ruleIndex=e,t.addState(i);const a=new rt;a.ruleIndex=e,t.addState(a),i.endState=a,t.defineDecisionState(i),a.startState=i;let n=null,c=null;if(t.ruleToStartState[e].isPrecedenceRule){for(c=null,s=0;s<t.states.length;s++)if(r=t.states[s],this.stateIsEndStateFor(r,e)){c=r,n=r.loopBackState.transitions[0];break}if(null===n)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else c=t.ruleToStopState[e];for(s=0;s<t.states.length;s++){r=t.states[s];for(const t of r.transitions)t!==n&&t.target===c&&(t.target=a)}const h=t.ruleToStartState[e],o=h.transitions.length;for(;o>0;)i.addTransition(h.transitions[o-1]),h.transitions=h.transitions.slice(-1);t.ruleToStartState[e].addTransition(new dt(i)),c&&a.addTransition(new dt(c));const E=new tt;t.addState(E),E.addTransition(new _t(a,t.ruleToTokenType[e])),i.addTransition(new dt(E))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof Et))return null;const s=t.transitions[t.transitions.length-1].target;return s instanceof it&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof nt?t:null}markPrecedenceDecisions(t){for(const e of t.states)if(e instanceof Et&&t.ruleToStartState[e.ruleIndex].isPrecedenceRule){const t=e.transitions[e.transitions.length-1].target;t instanceof it&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof nt&&(e.precedenceRuleDecision=!0)}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(const e of t.states)if(null!==e)if(this.checkCondition(e.epsilonOnlyTransitions||e.transitions.length<=1),e instanceof lt)this.checkCondition(null!==e.loopBackState);else if(e instanceof Et)if(this.checkCondition(null!==e.loopBackState),this.checkCondition(2===e.transitions.length),e.transitions[0].target instanceof ut)this.checkCondition(e.transitions[1].target instanceof it),this.checkCondition(!e.nonGreedy);else{if(!(e.transitions[0].target instanceof it))throw new Error("IllegalState");this.checkCondition(e.transitions[1].target instanceof ut),this.checkCondition(e.nonGreedy)}else e instanceof ot?(this.checkCondition(1===e.transitions.length),this.checkCondition(e.transitions[0].target instanceof Et)):e instanceof it?this.checkCondition(null!==e.loopBackState):e instanceof at?this.checkCondition(null!==e.stopState):e instanceof st?this.checkCondition(null!==e.endState):e instanceof rt?this.checkCondition(null!==e.startState):e instanceof et?this.checkCondition(e.transitions.length<=1||e.decision>=0):this.checkCondition(e.transitions.length<=1||e instanceof nt)}checkCondition(t,e){if(!t)throw void 0!==e&&null!==e||(e="IllegalState"),e}edgeFactory(t,e,s,r,i,n,c){const h=t.states[s];switch(e){case _.EPSILON:return new dt(h);case _.RANGE:return new At(h,0!==n?a.EOF:r,i);case _.RULE:return new Tt(t.states[r],i,n,h);case _.PREDICATE:return new Nt(h,r,i,0!==n);case _.PRECEDENCE:return new It(h,r);case _.ATOM:return new _t(h,0!==n?a.EOF:r);case _.ACTION:return new St(h,r,i,0!==n);case _.SET:return new T(h,c[r]);case _.NOT_SET:return new A(h,c[r]);case _.WILDCARD:return new Lt(h);default:throw new Error("The specified transition type: "+e+" is not valid.")}}stateFactory(e,s){const r=t.stateTypeMapper.get(e);if(!r)throw new Error("The specified state type "+e+" is not valid.");const i=new r;return i.ruleIndex=s,i}lexerActionFactory(e,s,r){const i=t.lexerActionFactoryMapper.get(e);if(!i)throw new Error("The specified lexer action type "+e+" is not valid.");return i(s,r)}},Gt=class t extends(null){static{h(this,"OrderedHashMap")}#d=[];clear(){super.clear(),this.#d=[]}get(t){return super.get(t)}set(t,e){const s=super.set(t,e);return void 0===s&&this.#d.push(t),s}setIfAbsent(t,e){const s=super.setIfAbsent(t,e);return void 0===s&&this.#d.push(t),s}values(){return{[Symbol.iterator]:()=>{let t=0;return{next:()=>t<this.#d.length?{done:!1,value:super.get(this.#d[t++])}:{done:!0,value:void 0}}}}}keys(){return this.#d[Symbol.iterator]()}equals(e){return e instanceof t&&super.equals(e)}},Bt=(class t{static{h(this,"ATNSerializer")}atn;data=[];sets=new Gt(k.instance);nonGreedyStates=[];precedenceStates=[];constructor(t){this.atn=t}static getSerialized(e){return new t(e).serialize()}static serializeSets(t,e){t.push(e.length);for(const s of e){const e=s.contains(a.EOF);e&&s.get(0).stop===a.EOF?t.push(s.length-1):t.push(s.length),t.push(e?1:0);for(const r of s){if(r.start===a.EOF){if(r.stop===a.EOF)continue;t.push(0)}else t.push(r.start);t.push(r.stop)}}}serialize(){this.addPreamble();const t=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();let e=null;return e=this.addSets(),this.addEdges(t,e),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Ft.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===z.LEXER){this.data.push(this.atn.lexerActions.length);for(const t of this.atn.lexerActions)switch(this.data.push(t.actionType),t.actionType){case Ot:{const e=t.channel;this.data.push(e),this.data.push(0);break}case pt:{const e=t.ruleIndex,s=t.actionIndex;this.data.push(e),this.data.push(s);break}case gt:{const e=t.mode;this.data.push(e),this.data.push(0);break}case mt:case xt:this.data.push(0),this.data.push(0);break;case Ut:{const e=t.mode;this.data.push(e),this.data.push(0);break}case ft:this.data.push(0),this.data.push(0);break;case Pt:{const e=t.type;this.data.push(e),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${t.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const t of this.atn.decisionToState)this.data.push(t.stateNumber)}addEdges(...t){switch(t.length){case 0:{let t=0;this.data.push(this.atn.states.length);for(const e of this.atn.states){if(null===e){this.data.push(W.INVALID_TYPE);continue}const s=e.constructor.stateType;e instanceof et&&e.nonGreedy&&this.nonGreedyStates.push(e.stateNumber),e instanceof at&&e.isLeftRecursiveRule&&this.precedenceStates.push(e.stateNumber),this.data.push(s),this.data.push(e.ruleIndex),e.constructor.stateType===W.LOOP_END?this.data.push(e.loopBackState.stateNumber):e instanceof st&&this.data.push(e.endState.stateNumber),e.constructor.stateType!==W.RULE_STOP&&(t+=e.transitions.length);for(const t of e.transitions){const e=t.transitionType;if(e===_.SET||e===_.NOT_SET){const e=t;this.sets.set(e.set,!0)}}}return t}case 2:{const[e,s]=t;this.data.push(e);for(const t of this.atn.states)if(null!==t&&t.constructor.stateType!==W.RULE_STOP)for(const e of t.transitions){if(null===this.atn.states[e.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const r=t.stateNumber;let i=e.target.stateNumber;const n=e.transitionType;let c=0,h=0,o=0;switch(n){case _.RULE:i=e.followState.stateNumber,c=e.target.stateNumber,h=e.ruleIndex,o=e.precedence;break;case _.PRECEDENCE:c=e.precedence;break;case _.PREDICATE:{const t=e;c=t.ruleIndex,h=t.predIndex,o=t.isCtxDependent?1:0;break}case _.RANGE:c=e.start,h=e.stop,c===a.EOF&&(c=0,o=1);break;case _.ATOM:c=e.labelValue,c===a.EOF&&(c=0,o=1);break;case _.ACTION:{const t=e;c=t.ruleIndex,h=t.actionIndex,o=t.isCtxDependent?1:0;break}case _.SET:case _.NOT_SET:c=s.get(e.set)}this.data.push(r),this.data.push(i),this.data.push(n),this.data.push(c),this.data.push(h),this.data.push(o)}break}default:throw new Error("Invalid number of arguments")}}addSets(){t.serializeSets(this.data,[...this.sets.keys()]);const e=new Map;let s=0;for(const t of this.sets.keys())e.set(t,s++);return e}addModeStartStates(){const t=this.atn.modeToStartState.length;if(this.data.push(t),t>0)for(const e of this.atn.modeToStartState)this.data.push(e.stateNumber)}addRuleStatesAndLexerTokenTypes(){const t=this.atn.ruleToStartState.length;this.data.push(t);for(let e=0;e<t;e++){const t=this.atn.ruleToStartState[e];this.data.push(t.stateNumber),this.atn.grammarType===z.LEXER&&this.data.push(this.atn.ruleToTokenType[e])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const t of this.precedenceStates)this.data.push(t)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const t of this.nonGreedyStates)this.data.push(t)}},class t{static{h(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(t){t&&(this.configs=t)}static fromState(e){const s=new t;return s.stateNumber=e,s}static fromConfigs(e){return new t(e)}static hashCode(t){return t.configs.hashCode()}static equals(t,e){return t.configs.equals(e.configs)}getAltSet(){const t=new Set;for(const e of this.configs)t.add(e.alt);return 0===t.size?null:t}toString(){let t="";return t+=this.stateNumber,t+=":",t+=this.configs?this.configs.toString():"",this.isAcceptState&&(t+="=>",this.predicates?t+=L(this.predicates):t+=this.prediction),t.toString()}}),Yt=class{static{h(this,"ATNSimulator")}static ERROR=Bt.fromState(2147483647);atn;sharedContextCache;constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(!this.sharedContextCache)return t;const e=new v(k.instance);return H(t,this.sharedContextCache,e)}},Vt=(class t{static{h(this,"CodePointTransitions")}static createWithCodePoint(e,s){return t.createWithCodePointRange(e,s,s)}static createWithCodePointRange(t,e,s){return e===s?new _t(t,e):new At(t,e,s)}},class{static{h(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(t){this.decision=t,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString1(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),Wt=class t extends j{static{h(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(e,s,r,i){return super(e,s,r??e.context,r?X.NONE:e.semanticContext),this.lexerActionExecutor=r?i:e.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=t.checkNonGreedyDecision(e,this.state),this}static createWithExecutor(e,s,r){return new t(e,s,e.context,r)}static createWithConfig(e,s,r){return new t(s,e,r??null,s.lexerActionExecutor)}static createWithContext(e,s,r){return new t({alt:s},e,r,null)}static checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||"nonGreedy"in e&&e.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize(7);t=u.update(t,this.state.stateNumber),t=u.update(t,this.alt),t=u.updateFromComparable(t,this.context),t=u.updateFromComparable(t,this.semanticContext),t=u.update(t,this.passedThroughNonGreedyDecision?1:0),t=u.updateFromComparable(t,this.lexerActionExecutor),t=u.finish(t,6),this.cachedHashCode=t}return this.cachedHashCode}equals(t){return this===t||this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&t.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}},Xt=class{static{h(this,"BaseErrorListener")}syntaxError(t,e,s,r,i,a){}reportAmbiguity(t,e,s,r,i,a,n){}reportAttemptingFullContext(t,e,s,r,i,a){}reportContextSensitivity(t,e,s,r,i,a){}},Kt=class t extends Xt{static{h(this,"ConsoleErrorListener")}static instance=new t;syntaxError(t,e,s,r,i,a){console.error("line "+s+":"+r+" "+i)}},Qt=class extends Xt{constructor(t){return super(),this.delegates=t,this}static{h(this,"ProxyErrorListener")}syntaxError(t,e,s,r,i,a){this.delegates.forEach((n=>{n.syntaxError(t,e,s,r,i,a)}))}reportAmbiguity(t,e,s,r,i,a,n){this.delegates.forEach((c=>{c.reportAmbiguity(t,e,s,r,i,a,n)}))}reportAttemptingFullContext(t,e,s,r,i,a){this.delegates.forEach((n=>{n.reportAttemptingFullContext(t,e,s,r,i,a)}))}reportContextSensitivity(t,e,s,r,i,a){this.delegates.forEach((n=>{n.reportContextSensitivity(t,e,s,r,i,a)}))}},qt=class t{static{h(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;#L=[Kt.instance];#C=-1;checkVersion(t){const e="4.13.1";e!==t&&console.error("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this.#L.push(t)}removeErrorListeners(){this.#L=[]}removeErrorListener(t){for(let e=0;e<this.#L.length;e++)if(this.#L[e]===t)return void this.#L.splice(e,1)}getErrorListeners(){return this.#L}getTokenTypeMap(){const e=this.vocabulary;let s=t.tokenTypeMapCache.get(e);if(!s){s=new Map;for(let t=0;t<=this.atn.maxTokenType;t++){const r=e.getLiteralName(t);r&&s.set(r,t);const i=e.getSymbolicName(t);i&&s.set(i,t)}s.set("EOF",a.EOF),t.tokenTypeMapCache.set(e,s)}return s}getRuleIndexMap(){const e=this.ruleNames;let s=t.ruleIndexMapCache.get(e);return s||(s=new Map,e.forEach(((t,e)=>s.set(t,e))),t.ruleIndexMapCache.set(e,s)),s}getTokenType(t){const e=this.getTokenTypeMap().get(t);return e||a.INVALID_TYPE}getErrorHeader(t){const e=t.offendingToken?.line,s=t.offendingToken?.column;return"line "+e+":"+s}get errorListenerDispatch(){return new Qt(this.#L)}sempred(t,e,s){return!0}precpred(t,e){return!0}action(t,e,s){}get atn(){return this.interpreter.atn}get state(){return this.#C}set state(t){this.#C=t}getSerializedATN(){throw new Error("there is no serialized ATN")}getParseInfo(){return null}},jt=class t{static{h(this,"CommonTokenFactory")}static DEFAULT=new t;copyText=!1;constructor(t){this.copyText=t??!1}create(t,e,s,r,i,a,n,c){const h=U.fromSource(t,e,r,i,a);return h.line=n,h.column=c,s?h.text=s:this.copyText&&null!==t[1]&&(h.text=t[1].getTextFromRange(i,a)),h}},Jt=class t extends Error{static{h(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(e){super(e.message),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},zt=class extends Jt{static{h(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(t,e,s,r){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=s,this.deadEndConfigs=r}toString(){let t="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getTextFromRange(this.startIndex,this.startIndex)),"LexerNoViableAltException"+t}},Zt=class t extends qt{static{h(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=a.DEFAULT_CHANNEL;static HIDDEN=a.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=t.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;#N;#I=null;#O=!1;#p=[];#i;#g;constructor(t,e){super(),this.options={...this.options,...e},this.#N=t,this.#g=jt.DEFAULT}reset(e=!0){e&&this.#N.seek(0),this.#I=null,this.type=a.INVALID_TYPE,this.channel=a.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.#O=!1,this.mode=t.DEFAULT_MODE,this.#p=[],this.interpreter.reset()}nextToken(){if(null===this.#N)throw new Error("nextToken requires a non-null input stream.");const e=this.#N.mark();try{for(;;){if(this.#O)return this.emitEOF(),this.#I;this.#I=null,this.channel=a.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.#N.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let e=!1;for(;;){this.type=a.INVALID_TYPE;let r=t.SKIP;try{r=this.interpreter.match(this.#N,this.mode)}catch(s){if(!(s instanceof zt))throw s;this.notifyListeners(s),this.recover(s)}if(this.#N.LA(1)===a.EOF&&(this.#O=!0),this.type===a.INVALID_TYPE&&(this.type=r),this.type===t.SKIP){e=!0;break}if(this.type!==t.MORE)break}if(!e)return null===this.#I&&this.emit(),this.#I}}finally{this.#N.release(e)}}skip(){this.type=t.SKIP}more(){this.type=t.MORE}pushMode(t){ne.debug&&console.log("pushMode "+t),this.#p.push(this.mode),this.mode=t}popMode(){if(0===this.#p.length)throw new Error("Empty Stack");return ne.debug&&console.log("popMode back to "+this.#p.slice(0,-1)),this.mode=this.#p.pop(),this.mode}get modeStack(){return this.#p}emitToken(t){this.#I=t}emit(){const t=this.#g.create([this,this.#N],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(t),t}emitEOF(){const t=this.#g.create([this,this.#N],a.EOF,void 0,a.DEFAULT_CHANNEL,this.#N.index,this.#N.index-1,this.line,this.column);return this.emitToken(t),t}getCharIndex(){return this.#N.index}getAllTokens(){const t=[];let e=this.nextToken();for(;e.type!==a.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){const e=this.tokenStartCharIndex,s=this.#N.index,r=this.#N.getTextFromRange(e,s),i="token recognition error at: '"+this.getErrorDisplay(r)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,i,t)}getErrorDisplay(t){return t}getErrorDisplayForChar(t){return t.charCodeAt(0)===a.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(t){this.#N.LA(1)!==a.EOF&&(t instanceof zt?this.interpreter.consume(this.#N):this.#N.consume())}get inputStream(){return this.#N}set inputStream(t){this.reset(!1),this.#N=t}set tokenFactory(t){this.#g=t}get tokenFactory(){return this.#g}get sourceName(){return this.#N.getSourceName()}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get column(){return this.interpreter.column}set column(t){this.interpreter.column=t}get text(){return this.#i?this.#i:this.interpreter.getText(this.#N)}set text(t){this.#i=t}},$t=class t extends y{static{h(this,"OrderedHashSet")}#m=[];getOrAdd(t){const e=this.size,s=super.getOrAdd(t);return this.size>e&&this.#m.push(t),s}equals(e){return e instanceof t&&super.equals(e)}add(t){return!!super.add(t)&&(this.#m.push(t),!0)}clear(){super.clear(),this.#m=[]}*[Symbol.iterator](){yield*this.#m}toArray(){return this.#m.slice(0)}},te=class extends ${static{h(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new $t}},ee=class t{static{h(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;#e;constructor(t,e){this.actionType=e.actionType,this.offset=t,this.action=e}execute(t){this.action.execute(t)}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.offset),t=u.updateFromComparable(t,this.action),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&(this.offset===e.offset&&this.action===e.action)}},se=class t{static{h(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;#e;constructor(t){return this.actionType=-1,this.lexerActions=t??[],this}static append(e,s){if(null===e)return new t([s]);const r=e.lexerActions.concat([s]);return new t(r)}fixOffsetBeforeMatch(e){let s=null;for(let t=0;t<this.lexerActions.length;t++)!this.lexerActions[t].isPositionDependent||this.lexerActions[t]instanceof ee||(null===s&&(s=this.lexerActions.concat([])),s[t]=new ee(e,this.lexerActions[t]));return null===s?this:new t(s)}execute(t,e,s){if(void 0===e||void 0===s)return;let r=!1;const i=e.index;try{for(const a of this.lexerActions){let n=a;if(a instanceof ee){const t=a.offset;e.seek(s+t),n=a.action,r=s+t!==i}else a.isPositionDependent&&(e.seek(i),r=!1);n.execute(t)}}finally{r&&e.seek(i)}}hashCode(){if(void 0===this.#e){let t=u.initialize(7);for(const e of this.lexerActions)t=u.update(t,e.hashCode());this.#e=u.finish(t,this.lexerActions.length)}return this.#e}equals(t){return this===t||this.#e===t.#e&&(this.lexerActions.length===t.lexerActions.length&&this.lexerActions.every(((e,s)=>e.equals(t.lexerActions[s]))))}},re=class{static{h(this,"DFASerializer")}dfa;vocabulary;constructor(t,e){this.dfa=t,this.vocabulary=e}toString(){if(!this.dfa.s0)return"";let t="";const e=this.dfa.getStates();for(const s of e){let e=0;e=s.edges.length;for(let r=0;r<e;r++){const e=s.edges[r];if(e&&2147483647!==e.stateNumber){t+=this.getStateString(s);t+="-",t+=this.getEdgeLabel(r),t+="->",t+=this.getStateString(e),t+="\n"}}}return t}getEdgeLabel(t){return`${this.vocabulary.getDisplayName(t-1)}`}getStateString(t){const e=t.stateNumber,s=(t.isAcceptState?":":"")+"s"+e+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?`${s}=>${t.predicates.toString()}`:`${s}=>${t.prediction}`:`${s}`}},ie=class extends re{static{h(this,"LexerDFASerializer")}constructor(t){super(t,l.EMPTY_VOCABULARY)}getEdgeLabel=t=>"'"+String.fromCharCode(t)+"'"},ae=class{static{h(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;#x=new Map;constructor(t,e){this.atnStartState=t,this.decision=e??0;let s=!1;t instanceof Et&&t.precedenceRuleDecision&&(s=!0,this.s0=Bt.fromState(-1)),this.isPrecedenceDfa=s}[Symbol.iterator]=()=>this.#x.values()[Symbol.iterator]();getPrecedenceStartState=t=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||t<0||t>=this.s0.edges.length))return this.s0.edges[t]};setPrecedenceStartState=(t,e)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||!this.s0||(this.s0.edges[t]=e)};getStates(){const t=[...this.#x.values()];return t.sort(((t,e)=>t.stateNumber-e.stateNumber)),t}getState(t){return this.#x.get(t.configs.hashCode())??null}getStateForConfigs(t){return this.#x.get(t.hashCode())??null}addState(t){const e=t.configs.hashCode();this.#x.has(e)||(this.#x.set(e,t),t.stateNumber=this.#x.size-1)}toString(t){if(!t)return this.toString(l.EMPTY_VOCABULARY);if(!this.s0)return"";return new re(this,t).toString()??""}toLexerString(){if(!this.s0)return"";return new ie(this).toString()??""}get length(){return this.#x.size}},ne=class t extends Yt{static{h(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Zt.DEFAULT_MODE;#U;#f;#P;constructor(t,e,s,r){super(e,r),this.decisionToDFA=s,this.recognizer=t,t&&(this.#f=t.options)}match(t,e){this.mode=e;const s=t.mark();try{this.startIndex=t.index,this.#U=void 0;const s=this.decisionToDFA[e];return s.s0?this.execATN(t,s.s0):this.matchATN(t)}finally{t.release(s)}}reset(){this.#U=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Zt.DEFAULT_MODE}clearDFA(){for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new ae(this.atn.getDecisionState(t),t)}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getTextFromRange(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return t===a.EOF?"EOF":"'"+String.fromCharCode(t)+"'"}matchATN(e){const s=this.atn.modeToStartState[this.mode];t.debug&&console.log("matchATN mode "+this.mode+" start: "+s);const r=this.mode,i=this.computeStartState(e,s),a=i.hasSemanticContext;i.hasSemanticContext=!1;const n=this.addDFAState(i);a||(this.decisionToDFA[this.mode].s0=n);const c=this.execATN(e,n);return t.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),c}execATN(e,s){t.debug&&console.log("start state closure="+s.configs),s.isAcceptState&&this.captureSimState(e,s);let r=e.LA(1);for(;;){t.debug&&console.log("execATN loop starting closure: "+s.configs);let i=this.getExistingTargetState(s,r);if(i||(i=this.computeTargetState(e,s,r)),i===Yt.ERROR)break;if(r!==a.EOF&&this.consume(e),i.isAcceptState&&(this.captureSimState(e,i),r===a.EOF))break;r=e.LA(1),s=i}return this.failOrAccept(e,s.configs,r)}getExistingTargetState(e,s){if(s>=this.#f.minDFAEdge&&s<=this.#f.maxDFAEdge){const r=e.edges[s-this.#f.minDFAEdge];return t.debug&&r&&console.log("reuse state "+e.stateNumber+" edge to "+r.stateNumber),r}}computeTargetState(t,e,s){const r=new te;return this.getReachableConfigSet(t,e.configs,r,s),0===r.length?(r.hasSemanticContext||this.addDFAEdge(e,s,Yt.ERROR),Yt.ERROR):this.addDFAEdge(e,s,null,r)}failOrAccept(t,e,s){if(this.#U?.dfaState){const{dfaState:e,index:s,line:r,column:i}=this.#U;return this.accept(t,e.lexerActionExecutor,this.startIndex,s,r,i),e.prediction}if(s===a.EOF&&t.index===this.startIndex)return a.EOF;throw new zt(this.recognizer,t,this.startIndex,e)}getReachableConfigSet(e,s,r,i){let n=z.INVALID_ALT_NUMBER;for(const c of s){const s=c.alt===n;if(!s||!c.passedThroughNonGreedyDecision){t.debug&&console.log("testing %s at %s\n",this.getTokenName(i),c.toString(this.recognizer,!0));for(const t of c.state.transitions){const h=this.getReachableTarget(t,i);if(h){let t=c.lexerActionExecutor;t&&(t=t.fixOffsetBeforeMatch(e.index-this.startIndex));const o=i===a.EOF,E=Wt.createWithExecutor(c,h,t);this.closure(e,E,r,s,!0,o)&&(n=c.alt)}}}}}accept(e,s,r,i,a,n){t.debug&&console.log("ACTION %s\n",s),e.seek(i),this.line=a,this.column=n,s&&this.recognizer&&s.execute(this.recognizer,e,r)}getReachableTarget(t,e){return t.matches(e,this.#f.minCodePoint,this.#f.maxCodePoint)?t.target:void 0}computeStartState(t,e){const s=S.EMPTY,r=new te;for(let i=0;i<e.transitions.length;i++){const a=e.transitions[i].target,n=Wt.createWithContext(a,i+1,s);this.closure(t,n,r,!1,!1,!1)}return r}closure(e,s,r,i,a,n){let c=null;if(t.debug&&console.log("closure("+s.toString(this.recognizer,!0)+")"),s.state.constructor.stateType===W.RULE_STOP){if(t.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[s.state.ruleIndex],s):console.log("closure at rule stop %s\n",s)),!s.context||s.context.hasEmptyPath()){if(!s.context||s.context.isEmpty())return r.add(s),!0;r.add(Wt.createWithConfig(s.state,s,S.EMPTY)),i=!0}if(s.context&&!s.context.isEmpty())for(let t=0;t<s.context.length;t++)if(s.context.getReturnState(t)!==S.EMPTY_RETURN_STATE){const h=s.context.getParent(t),o=this.atn.states[s.context.getReturnState(t)];c=Wt.createWithConfig(o,s,h),i=this.closure(e,c,r,i,a,n)}return i}s.state.epsilonOnlyTransitions||i&&s.passedThroughNonGreedyDecision||r.add(s);for(const t of s.state.transitions)c=this.getEpsilonTarget(e,s,t,r,a,n),c&&(i=this.closure(e,c,r,i,a,n));return i}getEpsilonTarget(t,e,s,r,i,a){this.#P||this.setupATNFactoryLookup();const n=this.#P[s.transitionType];return n?n(t,e,s,r,i,a):null}setupATNFactoryLookup(){this.#P=[],this.#P[_.RULE]=(t,e,s)=>{const r=p.create(e.context??void 0,s.followState.stateNumber);return Wt.createWithConfig(s.target,e,r)},this.#P[_.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.#P[_.PREDICATE]=(e,s,r,i,a)=>{const n=r;return t.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,n.ruleIndex,n.predIndex,a)?Wt.createWithConfig(r.target,s):null},this.#P[_.ACTION]=(t,e,s)=>{if(null===e.context||e.context.hasEmptyPath()){const t=se.append(e.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);return Wt.createWithExecutor(e,s.target,t)}return Wt.createWithConfig(s.target,e)},this.#P[_.EPSILON]=(t,e,s)=>Wt.createWithConfig(s.target,e);const e=h(((t,e,s,r,i,n)=>n&&s.matches(a.EOF,this.#f.minCodePoint,this.#f.maxCodePoint)?Wt.createWithConfig(s.target,e):null),"simple");this.#P[_.ATOM]=e,this.#P[_.RANGE]=e,this.#P[_.SET]=e}evaluatePredicate(t,e,s,r){if(!this.recognizer)return!0;if(!r)return this.recognizer.sempred(null,e,s);const i=this.column,a=this.line,n=t.index,c=t.mark();try{return this.consume(t),this.recognizer.sempred(null,e,s)}finally{this.column=i,this.line=a,t.seek(n),t.release(c)}}captureSimState(t,e){this.#U={index:t.index,line:this.line,column:this.column,dfaState:e}}addDFAEdge(e,s,r,i){if(!r&&i){const t=i.hasSemanticContext;if(i.hasSemanticContext=!1,r=this.addDFAState(i),t)return r}return s<this.#f.minDFAEdge||s>this.#f.maxDFAEdge||(t.debug&&console.log("EDGE "+e+" -> "+r+" upon "+s),e.edges[s-this.#f.minDFAEdge]=r),r}addDFAState(t){const e=this.decisionToDFA[this.mode],s=e.getStateForConfigs(t);if(s)return s;const r=Bt.fromConfigs(t),i=t.firstStopState;return i&&(r.isAcceptState=!0,r.lexerActionExecutor=i.lexerActionExecutor,r.prediction=this.atn.ruleToTokenType[i.state.ruleIndex]),t.setReadonly(!0),e.addState(r),r}},ce=(class{static{h(this,"ParseInfo")}atnSimulator;constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const t=this.atnSimulator.getDecisionInfo(),e=new Array;for(let s=0;s<t.length;s++){t[s].llFallback>0&&e.push(s)}return e}getTotalTimeInPrediction(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.timeInPrediction;return e}getTotalSLLLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllTotalLook;return e}getTotalLLLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.llTotalLook;return e}getTotalSLLATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllATNTransitions;return e}getTotalLLATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.llATNTransitions;return e}getTotalATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllATNTransitions,e+=s.llATNTransitions;return e}getDFASize(t){if(void 0===t){let t=0;const e=this.atnSimulator.decisionToDFA;for(let s=0;s<e.length;s++)t+=this.getDFASize(s);return t}return this.atnSimulator.decisionToDFA[t].length}},class extends Jt{static{h(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(t,e=null,s=null,r=null,i=null,a=null){a=a??t.context,r=r??t.getCurrentToken(),s=s??t.getCurrentToken(),super({message:"",recognizer:t,input:e=e??t.inputStream,ctx:a}),this.deadEndConfigs=i,this.startToken=s,this.offendingToken=r}}),he=class{static{h(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new v(M.instance)}get(t,e){const s=this.cacheMap.get(t)??null;return null===s?null:s.get(e)??null}set(t,e,s){let r=this.cacheMap.get(t);r||(r=new v(M.instance),this.cacheMap.set(t,r)),r.set(e,s)}},oe=class t{static{h(this,"SubsetEqualityComparer")}static instance=new t;hashCode(t){let e=u.initialize(7);return e=u.update(e,t.state.stateNumber),e=u.updateFromComparable(e,t.context),e=u.finish(e,2),e}equals(t,e){return t.state.stateNumber===e.state.stateNumber&&(t.context?.equals(e.context)??!0)}},Ee=class t{static{h(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(e,s){if(t.allConfigsInRuleStopStates(s))return!0;if(e===t.SLL&&s.hasSemanticContext){const t=new $;for(let e of s)e=j.duplicate(e,X.NONE),t.add(e);s=t}const r=t.getConflictingAltSubsets(s);return t.hasConflictingAltSet(r)&&!t.hasStateAssociatedWithOneAlt(s)}static hasConfigInRuleStopState(t){for(const e of t)if(e.state instanceof nt)return!0;return!1}static allConfigsInRuleStopStates(t){for(const e of t)if(!(e.state instanceof nt))return!1;return!0}static resolvesToJustOneViableAlt(e){return t.getSingleViableAlt(e)}static allSubsetsConflict(e){return!t.hasNonConflictingAltSet(e)}static hasNonConflictingAltSet(t){for(const e of t)if(1===e.length)return!0;return!1}static hasConflictingAltSet(t){for(const e of t)if(e.length>1)return!0;return!1}static allSubsetsEqual(t){let e=null;for(const s of t)if(null===e)e=s;else if(s!==e)return!1;return!0}static getUniqueAlt(e){const s=t.getAlts(e);return 1===s.length?s.nextSetBit(0):z.INVALID_ALT_NUMBER}static getAlts(t){const e=new V;return t.forEach((t=>{e.or(t)})),e}static getConflictingAltSubsets(t){const e=new v(oe.instance);for(const s of t){let t=e.get(s);t||(t=new V,e.set(s,t)),t.set(s.alt)}return Array.from(e.values())}static getStateToAltMap(t){const e=new v(k.instance);for(const s of t){let t=e.get(s.state);t||(t=new V,e.set(s.state,t)),t.set(s.alt)}return e}static hasStateAssociatedWithOneAlt(t){const e={};for(const s of t){const t=s.state.stateNumber;e[t]||(e[t]=0),e[t]++}return Object.values(e).some((t=>1===t))}static getSingleViableAlt(t){let e=null;for(const s of t){const t=s.nextSetBit(0);if(null===e)e=t;else if(e!==t)return z.INVALID_ALT_NUMBER}return e??0}},le=class t extends Yt{static{h(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new he;predictionState;constructor(t,e,s,r){super(e,r),this.parser=t,this.decisionToDFA=s}static getUniqueAlt(t){let e=z.INVALID_ALT_NUMBER;for(const s of t)if(e===z.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return z.INVALID_ALT_NUMBER;return e}reset(){}clearDFA(){for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new ae(this.atn.getDecisionState(t),t)}adaptivePredict(e,s,r){(t.debug||t.traceATNSimulator)&&console.log("adaptivePredict decision "+s+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column);const i=this.decisionToDFA[s];this.predictionState={input:e,startIndex:e.index,outerContext:r??void 0,dfa:i};const a=e.mark(),n=e.index;try{let s;if(s=i.isPrecedenceDfa?i.getPrecedenceStartState(this.parser.getPrecedence()):i.s0,!s){r||(r=P.empty),t.debug&&console.log("predictATN decision "+i.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+r.toString(this.parser.ruleNames));const a=!1;let n=this.computeStartState(i.atnStartState,P.empty,a);i.isPrecedenceDfa?(n=this.applyPrecedenceFilter(n),s=this.addDFAState(i,Bt.fromConfigs(n)),i.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(i,Bt.fromConfigs(n)),i.s0=s)}const a=this.execATN(i,s,e,n,r);return t.debug&&console.log("DFA after predictATN: "+i.toString(this.parser.vocabulary)),a}finally{this.predictionState.dfa=void 0,this.mergeCache=new he,e.seek(n),e.release(a)}}execATN(e,s,r,i,n){let c;(t.debug||t.traceATNSimulator)&&console.log("execATN decision "+e.decision+", DFA state "+s+", LA(1)=="+this.getLookaheadName(r)+" line "+r.LT(1).line+":"+r.LT(1).column);let h=s,o=r.LA(1);for(;;){let s=this.getExistingTargetState(h,o);if(s||(s=this.computeTargetState(e,h,o)),s===Yt.ERROR){const t=this.noViableAlt(r,n,h.configs,i);if(r.seek(i),c=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h.configs,n),c!==z.INVALID_ALT_NUMBER)return c;throw t}if(s.requiresFullContext&&this.predictionMode!==Ee.SLL){let a=null;if(null!==s.predicates){t.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=r.index;if(e!==i&&r.seek(i),a=this.evalSemanticContext(s.predicates,n,!0),1===a.length)return t.debug&&console.log("Full LL avoided"),a.nextSetBit(0);e!==i&&r.seek(e)}t.dfaDebug&&console.log("ctx sensitive state "+n+" in "+s);const h=!0,o=this.computeStartState(e.atnStartState,n,h);return this.reportAttemptingFullContext(e,a,s.configs,i,r.index),c=this.execATNWithFullContext(e,s,o,r,i,n),c}if(s.isAcceptState){if(null===s.predicates)return s.prediction;const t=r.index;r.seek(i);const a=this.evalSemanticContext(s.predicates,n,!0);if(0===a.length)throw this.noViableAlt(r,n,s.configs,i);return 1===a.length||this.reportAmbiguity(e,s,i,t,!1,a,s.configs),a.nextSetBit(0)}h=s,o!==a.EOF&&(r.consume(),o=r.LA(1))}}getExistingTargetState(t,e){return t.edges[e+1]}computeTargetState(e,s,r){const i=this.computeReachSet(s.configs,r,!1);if(null===i)return this.addDFAEdge(e,s,r,Yt.ERROR),Yt.ERROR;let a=Bt.fromConfigs(i);const n=t.getUniqueAlt(i);if(t.debug){const t=Ee.getConflictingAltSubsets(i);console.log("SLL altSubSets="+L(t)+", configs="+i+", predict="+n+", allSubsetsConflict="+Ee.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(i))}return n!==z.INVALID_ALT_NUMBER?(a.isAcceptState=!0,a.configs.uniqueAlt=n,a.prediction=n):Ee.hasSLLConflictTerminatingPrediction(this.predictionMode,i)&&(a.configs.conflictingAlts=this.getConflictingAlts(i),a.requiresFullContext=!0,a.isAcceptState=!0,a.prediction=a.configs.conflictingAlts.nextSetBit(0)),a.isAcceptState&&a.configs.hasSemanticContext&&(this.predicateDFAState(a,this.atn.getDecisionState(e.decision)),null!==a.predicates&&(a.prediction=z.INVALID_ALT_NUMBER)),a=this.addDFAEdge(e,s,r,a),a}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getTokenName(t){if(t===a.EOF)return"EOF";const e=(this.parser?.vocabulary??l.EMPTY_VOCABULARY).getDisplayName(t);return e===t.toString()?e:e+"<"+t+">"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.deadEndConfigs;for(const s of e){let t="no edges";if(s.state.transitions.length>0){const e=s.state.transitions[0];if(e instanceof _t)t="Atom "+this.getTokenName(e.labelValue);else if(e instanceof T){t=(e instanceof A?"~":"")+"Set "+e.label}}console.error(s.toString(this.parser,!0)+":"+t)}}predicateDFAState(t,e){const s=e.transitions.length,r=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(r,t.configs,s);null!==i?(t.predicates=this.getPredicatePredictions(r,i),t.prediction=z.INVALID_ALT_NUMBER):t.prediction=r.nextSetBit(0)}execATNWithFullContext(e,s,r,i,n,c){(t.debug||t.traceATNSimulator)&&console.log("execATNWithFullContext "+r);let h,o=!1,E=r;i.seek(n);let l=i.LA(1),u=-1;for(;;){if(h=this.computeReachSet(E,l,true),null===h){const t=this.noViableAlt(i,c,E,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(E,c);if(e!==z.INVALID_ALT_NUMBER)return e;throw t}const e=Ee.getConflictingAltSubsets(h);if(t.debug&&console.log("LL altSubSets="+e+", predict="+Ee.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+Ee.resolvesToJustOneViableAlt(e)),h.uniqueAlt=t.getUniqueAlt(h),h.uniqueAlt!==z.INVALID_ALT_NUMBER){u=h.uniqueAlt;break}if(this.predictionMode!==Ee.LL_EXACT_AMBIG_DETECTION){if(u=Ee.resolvesToJustOneViableAlt(e),u!==z.INVALID_ALT_NUMBER)break}else if(Ee.allSubsetsConflict(e)&&Ee.allSubsetsEqual(e)){o=!0,u=Ee.getSingleViableAlt(e);break}E=h,l!==a.EOF&&(i.consume(),l=i.LA(1))}return h.uniqueAlt!==z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,h,n,i.index),u):(this.reportAmbiguity(e,s,n,i.index,o,void 0,h),u)}computeReachSet(e,s,r){t.debug&&console.log("in computeReachSet, starting closure: "+e);const i=new $(r);let n=null;for(const h of e)if(t.debug&&console.log("testing "+this.getTokenName(s)+" at "+h),h.state instanceof nt)(r||s===a.EOF)&&(null===n&&(n=[]),n.push(h));else for(const e of h.state.transitions){const r=this.getReachableTarget(e,s);if(null!==r){const e=j.createWithConfig(r,h);i.add(e,this.mergeCache),t.debugAdd&&console.log("added "+e+" to intermediate")}}let c=null;if(null===n&&s!==a.EOF&&(1===i.length||t.getUniqueAlt(i)!==z.INVALID_ALT_NUMBER)&&(c=i),null===c){c=new $(r);const t=new y,e=s===a.EOF;for(const s of i)this.closure(s,c,t,!1,r,e)}if(s===a.EOF&&(c=this.removeAllConfigsNotInRuleStopState(c,c===i)),null!==n&&(!r||!Ee.hasConfigInRuleStopState(c)))for(const t of n)c.add(t,this.mergeCache);return t.traceATNSimulator&&console.log("computeReachSet "+e+" -> "+c),0===c.length?null:c}removeAllConfigsNotInRuleStopState(t,e){if(Ee.allConfigsInRuleStopStates(t))return t;const s=new $(t.fullCtx);for(const r of t)if(r.state instanceof nt)s.add(r,this.mergeCache);else if(e&&r.state.epsilonOnlyTransitions){if(this.atn.nextTokens(r.state).contains(a.EPSILON)){const t=this.atn.ruleToStopState[r.state.ruleIndex];s.add(j.createWithConfig(t,r),this.mergeCache)}}return s}computeStartState(e,s,r){const i=b(this.atn,s),a=new $(r);t.traceATNSimulator&&console.log("computeStartState from ATN state "+e+" initialContext="+i.toString(this.parser));for(let t=0;t<e.transitions.length;t++){const s=e.transitions[t].target,n=j.createWithContext(s,t+1,i),c=new y;this.closure(n,a,c,!0,r,!1)}return a}applyPrecedenceFilter(t){const e=[],s=new $(t.fullCtx);for(const r of t){if(1!==r.alt)continue;const t=r.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==t&&(e[r.state.stateNumber]=r.context,t!==r.semanticContext?s.add(j.duplicate(r,t),this.mergeCache):s.add(r,this.mergeCache))}for(const r of t)if(1!==r.alt){if(!r.precedenceFilterSuppressed){const t=e[r.state.stateNumber]||null;if(null!==t&&t.equals(r.context))continue}s.add(r,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(e,s,r){let i=[];for(const t of s)e.get(t.alt)&&(i[t.alt]=X.orContext(i[t.alt]??null,t.semanticContext));let a=0;for(let t=1;t<r+1;t++){const e=i[t]??null;null===e?i[t]=X.NONE:e!==X.NONE&&(a+=1)}return 0===a&&(i=null),t.debug&&console.log("getPredsForAmbigAlts result "+L(i)),i}getPredicatePredictions(t,e){const s=[];let r=!1;for(let i=1;i<e.length;i++){const a=e[i];t.get(i)&&s.push({pred:a,alt:i}),a!==X.NONE&&(r=!0)}return r?s:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const s=this.splitAccordingToSemanticValidity(t,e),r=s[0],i=s[1];let a=this.getAltThatFinishedDecisionEntryRule(r);return a!==z.INVALID_ALT_NUMBER||i.length>0&&(a=this.getAltThatFinishedDecisionEntryRule(i),a!==z.INVALID_ALT_NUMBER)?a:z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(const s of t)(s.reachesIntoOuterContext||s.state instanceof nt&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt);return 0===e.length?z.INVALID_ALT_NUMBER:Math.min(...e)}splitAccordingToSemanticValidity(t,e){const s=new $(t.fullCtx),r=new $(t.fullCtx);for(const i of t)if(i.semanticContext!==X.NONE){i.semanticContext.evaluate(this.parser,e)?s.add(i):r.add(i)}else s.add(i);return[s,r]}evalSemanticContext(e,s,r){const i=new V;for(const a of e){if(a.pred===X.NONE){if(i.set(a.alt),!r)break;continue}const e=a.pred.evaluate(this.parser,s);if((t.debug||t.dfaDebug)&&console.log("eval pred "+a+"="+e),e&&(i.set(a.alt),!r))break}return i}closure(t,e,s,r,i,a){this.closureCheckingStopState(t,e,s,r,i,0,a)}closureCheckingStopState(e,s,r,i,a,n,c){if((t.traceATNSimulator||t.debugClosure)&&console.log("closure("+e.toString(this.parser,!0)+")"),e.state instanceof nt){if(e.context&&!e.context.isEmpty()){for(let h=0;h<e.context.length;h++){if(e.context.getReturnState(h)===S.EMPTY_RETURN_STATE){if(a){s.add(j.createWithConfig(e.state,e,S.EMPTY),this.mergeCache);continue}t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,s,r,i,a,n,c);continue}const o=this.atn.states[e.context.getReturnState(h)],E=e.context.getParent(h),l=j.createWithContext(o,e.alt,E,e.semanticContext);l.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(l,s,r,i,a,n-1,c)}return}if(a)return void s.add(e,this.mergeCache);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,s,r,i,a,n,c)}closure_(e,s,r,i,a,n,c){const h=e.state;h.epsilonOnlyTransitions||s.add(e,this.mergeCache);for(let o=0;o<h.transitions.length;o++){if(0===o&&this.canDropLoopEntryEdgeInLeftRecursiveRule(e))continue;const E=h.transitions[o],l=i&&!(E instanceof St),u=this.getEpsilonTarget(e,E,l,0===n,a,c);if(u){let i=n;if(e.state.constructor.stateType===W.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){E.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,r.getOrAdd(u)!==u)continue;s.dipsIntoOuterContext=!0,i-=1,t.debug&&console.log("dips into outer ctx: "+u)}else{if(!E.isEpsilon&&r.getOrAdd(u)!==u)continue;E instanceof Tt&&i>=0&&(i+=1)}this.closureCheckingStopState(u,s,r,l,a,i,c)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.constructor.stateType!==W.STAR_LOOP_ENTRY||!t.context)return!1;if(!e.precedenceRuleDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const s=t.context.length;for(let a=0;a<s;a++){if(this.atn.states[t.context.getReturnState(a)].ruleIndex!==e.ruleIndex)return!1}const r=e.transitions[0].target.endState.stateNumber,i=this.atn.states[r];for(let a=0;a<s;a++){const s=t.context.getReturnState(a),r=this.atn.states[s];if(1!==r.transitions.length||!r.transitions[0].isEpsilon)return!1;const n=r.transitions[0].target;if((r.constructor.stateType!==W.BLOCK_END||n!==e)&&(r!==i&&n!==i&&(n.constructor.stateType!==W.BLOCK_END||1!==n.transitions.length||!n.transitions[0].isEpsilon||n.transitions[0].target!==e)))return!1}return!0}getEpsilonTarget(e,s,r,i,n,c){switch(s.transitionType){case _.RULE:return this.ruleTransition(e,s);case _.PRECEDENCE:return this.precedenceTransition(e,s,r,i,n);case _.PREDICATE:return this.predTransition(e,s,r,i,n);case _.ACTION:if(t.debug){const t=s,e=-1===t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+e)}return j.createWithConfig(s.target,e);case _.EPSILON:return j.createWithConfig(s.target,e);case _.ATOM:case _.RANGE:case _.SET:return c&&s.matches(a.EOF,0,1)?j.createWithConfig(s.target,e):null;default:return null}}precedenceTransition(e,s,r,i,a){t.debug&&(console.log("PRED (collectPredicates="+r+") "+s.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+L(this.parser.getRuleInvocationStack())));let n=null;if(r&&i)if(a&&this.predictionState?.input){const t=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const r=s.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(t),r&&(n=j.createWithConfig(s.target,e))}else{const t=X.andContext(e.semanticContext,s.getPredicate());n=j.createWithSemanticContext(s.target,e,t)}else n=j.createWithConfig(s.target,e);return t.debug&&console.log("config from pred transition="+n),n}predTransition(e,s,r,i,a){t.debug&&(console.log("PRED (collectPredicates="+r+") "+s.ruleIndex+":"+s.predIndex+", ctx dependent="+s.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+L(this.parser.getRuleInvocationStack())));let n=null;if(r&&(s.isCtxDependent&&i||!s.isCtxDependent))if(a&&this.predictionState?.input){const t=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const r=s.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(t),r&&(n=j.createWithConfig(s.target,e))}else{const t=X.andContext(e.semanticContext,s.getPredicate());n=j.createWithSemanticContext(s.target,e,t)}else n=j.createWithConfig(s.target,e);return t.debug&&console.log("config from pred transition="+n),n}ruleTransition(e,s){t.debug&&console.log("CALL rule "+this.getRuleName(s.target.ruleIndex)+", ctx="+e.context);const r=s.followState,i=p.create(e.context??void 0,r.stateNumber);return j.createWithConfig(s.target,e,i)}getConflictingAlts(t){const e=Ee.getConflictingAltSubsets(t);return Ee.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e;return t.uniqueAlt!==z.INVALID_ALT_NUMBER?(e=new V,e.set(t.uniqueAlt)):e=t.conflictingAlts,e}noViableAlt(t,e,s,r){return new ce(this.parser,t,t.get(r),t.LT(1),s,e)}addDFAEdge(e,s,r,i){return t.debug&&console.log("EDGE "+s+" -> "+i+" upon "+this.getTokenName(r)),i=this.addDFAState(e,i),r<-1||r>this.atn.maxTokenType||(t.debug&&console.log("DFA=\n"+e.toString(null!=this.parser?this.parser.vocabulary:l.EMPTY_VOCABULARY)),s.edges[r+1]=i),i}addDFAState(e,s){if(s===Yt.ERROR)return s;const r=e.getState(s);return null!==r?r:(s.configs.readOnly||(s.configs.optimizeConfigs(this),s.configs.setReadonly(!0)),t.traceATNSimulator&&console.log("addDFAState new "+s),e.addState(s),s)}reportAttemptingFullContext(e,s,r,i,a){if(t.debug||t.retryDebug){const t=new E(i,a+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+r+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,e,i,a,s,r)}reportContextSensitivity(e,s,r,i,a){if(t.debug||t.retryDebug){const t=new E(i,a+1);console.log("reportContextSensitivity decision="+e.decision+":"+r+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,e,i,a,s,r)}reportAmbiguity(e,s,r,i,a,n,c){if(t.debug||t.retryDebug){const t=new E(r,i+1);console.log("reportAmbiguity "+n+":"+c+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,e,r,i,a,n,c)}},ue=class{static{h(this,"PredictionContextCache")}cache=new v(k.instance);add(t){if(t===S.EMPTY)return t;const e=this.cache.get(t);return e||(this.cache.set(t,t),t)}get(t){return this.cache.get(t)}get length(){return this.cache.size}},Re=class extends le{static{h(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;#k=0;#M=0;constructor(t){const e=t.interpreter.sharedContextCache;if(super(t,t.interpreter.atn,t.interpreter.decisionToDFA,e),e){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let t=0;t<this.numDecisions;t++)this.decisions[t]=new Vt(t)}}adaptivePredict(t,e,s){try{this.#k=-1,this.#M=-1,this.currentDecision=e;const r=performance.now(),i=super.adaptivePredict(t,e,s),a=performance.now();this.decisions[e].timeInPrediction+=a-r,this.decisions[e].invocations++;const n=this.#k-this.predictionState.startIndex+1;if(this.decisions[e].sllTotalLook+=n,this.decisions[e].sllMinLook=0===this.decisions[e].sllMinLook?n:Math.min(this.decisions[e].sllMinLook,n),n>this.decisions[e].sllMaxLook&&(this.decisions[e].sllMaxLook=n,this.decisions[e].sllMaxLookEvent={decision:e,configs:null,predictedAlt:i,input:t,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!1}),this.#M>=0){const s=this.#M-this.predictionState.startIndex+1;this.decisions[e].llTotalLook+=s,this.decisions[e].llMinLook=0===this.decisions[e].llMinLook?s:Math.min(this.decisions[e].llMinLook,s),s>this.decisions[e].llMaxLook&&(this.decisions[e].llMaxLook=s,this.decisions[e].llMaxLookEvent={decision:e,configs:null,predictedAlt:i,input:t,startIndex:this.predictionState.startIndex,stopIndex:this.#M,fullCtx:!0})}return i}finally{this.currentDecision=-1}}getExistingTargetState(t,e){if(this.predictionState?.input){this.#k=this.predictionState.input.index;const s=super.getExistingTargetState(t,e);return null!==s&&(this.decisions[this.currentDecision].sllDFATransitions++,s===Yt.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!1})),this.currentState=s,s}}computeTargetState(t,e,s){const r=super.computeTargetState(t,e,s);return this.currentState=r,r}computeReachSet(t,e,s){s&&this.predictionState?.input&&(this.#M=this.predictionState.input.index);const r=super.computeReachSet(t,e,s);return this.predictionState?.input&&(s?(this.decisions[this.currentDecision].llATNTransitions++,null===r&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===r&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!1}))),r}reportAttemptingFullContext(t,e,s,r,i){this.conflictingAltResolvedBySLL=null!==e?e.nextSetBit(0):s.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,e&&super.reportAttemptingFullContext(t,e,s,r,i)}reportContextSensitivity(t,e,s,r,i){e!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:s,input:this.predictionState.input,startIndex:r,stopIndex:i,fullCtx:!0}),super.reportContextSensitivity(t,e,s,r,i)}reportAmbiguity(t,e,s,r,i,a,n){let c;c=a?a.nextSetBit(0):n.getAlts().nextSetBit(0),this.predictionState?.input&&(n.fullCtx&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:n,input:this.predictionState.input,startIndex:s,stopIndex:r,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:a,decision:this.currentDecision,configs:n,input:this.predictionState.input,startIndex:s,stopIndex:r,fullCtx:n.fullCtx})),super.reportAmbiguity(t,e,s,r,i,a,n)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(q||(q={})).toString=h((t=>`(${t.pred}, ${t.alt})`),"toString");var _e,Te=class t extends Error{static{h(this,"ParseCancellationException")}constructor(e){super(),Error.captureStackTrace(this,t)}},Ae=(class{static{h(this,"InterpreterDataReader")}static parseInterpreterData(t){const e=[],s=[],r=[],i=[],a=[],n=t.split("\n");let c=0,h=n[c++];if("token literal names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;i.push("null"===h?null:h)}if(h=n[c++],"token symbolic names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;a.push("null"===h?null:h)}if(h=n[c++],"rule names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;e.push(h)}if(h=n[c++],"channel names:"===h){for(;;){if(h=n[c++],0===h.length)break;s.push(h)}if(h=n[c++],"mode names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;r.push(h)}}if(h=n[c++],"atn:"!==h)throw new Error("Unexpected data entry");h=n[c++];const o=h.split(",");let E;const u=[];for(let l=0;l<o.length;++l){const t=o[l];E=t.startsWith("[")?Number(t.substring(1).trim()):t.endsWith("]")?Number(t.substring(0,t.length-1).trim()):Number(t.trim()),u[l]=E}return{atn:(new Ft).deserialize(u),vocabulary:new l(i,a,[]),ruleNames:e,channels:s.length>0?s:void 0,modes:r.length>0?r:void 0}}},class{static{h(this,"AbstractParseTreeVisitor")}visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult();const s=t.getChildCount();for(let r=0;r<s&&this.shouldVisitNextChild(t,e);r++){const s=t.getChild(r);if(s){const t=s.accept(this);e=this.aggregateResult(e,t)}}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(t,e){return!0}aggregateResult(t,e){return e}});(class t{static{h(this,"ParseTreeWalker")}static DEFAULT=new t;walk(t,e){if(e instanceof x)t.visitErrorNode(e);else if(e instanceof m)t.visitTerminal(e);else{const s=e;this.enterRule(t,s);for(let r=0;r<e.getChildCount();r++)this.walk(t,e.getChild(r));this.exitRule(t,s)}}enterRule(t,e){const s=e.ruleContext;t.enterEveryRule(s),s.enterRule(t)}exitRule(t,e){const s=e.ruleContext;s.exitRule(t),t.exitEveryRule(s)}});(_e||(_e={})).fromString=h((t=>new Se(t)),"fromString");var Se=class{static{h(this,"CharStreamImpl")}name="";index=0;data;constructor(t){const e=[];for(const s of t)e.push(s.codePointAt(0));this.data=new Uint32Array(e)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(t){if(0===t)return 0;t<0&&(t+=1);const e=this.index+t-1;return e<0||e>=this.data.length?a.EOF:this.data[e]}mark(){return-1}release(t){}seek(t){t<=this.index?this.index=t:this.index=Math.min(t,this.data.length)}getTextFromRange(t,e){return(e=e??this.data.length-1)>=this.data.length&&(e=this.data.length-1),t>=this.data.length?"":this.#y(t,e+1)}getTextFromInterval(t){const e=t.start;let s=t.stop;return s>=this.data.length&&(s=this.data.length-1),e>=this.data.length?"":this.#y(e,s+1)}toString(){return this.#y(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:r.UNKNOWN_SOURCE_NAME}#y(t,e){const s=this.data.slice(t,e);let r="";return s.forEach((t=>{r+=String.fromCodePoint(t)})),r}},de=class{static{h(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(t){this.tokenSource=t}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get index(){return this.p}get(t){return this.lazyInit(),this.tokens[t]}consume(){let t=!1;if(t=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===a.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){const e=t-this.tokens.length+1;if(e>0){return this.fetch(e)>=e}return!0}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){const t=this.tokenSource.nextToken();if(t.tokenIndex=this.tokens.length,this.tokens.push(t),t.type===a.EOF)return this.fetchedEOF=!0,e+1}return t}getTokens(t,e,s){if(this.lazyInit(),void 0===t&&void 0===e)return this.tokens;if(t??=0,void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===s)return this.tokens.slice(t,e+1);const r=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(let i=t;i<e;i++){const t=this.tokens[i];if(t.type===a.EOF){r.push(t);break}s.has(t.type)&&r.push(t)}return r}LA(t){return this.LT(t)?.type??a.INVALID_TYPE}LB(t){return this.p-t<0?null:this.tokens[this.p-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.tokens.length)return-1;let s=this.tokens[t];for(;s.channel!==e;){if(s.type===a.EOF)return-1;t+=1,this.sync(t),s=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(t>=this.tokens.length)return this.tokens.length-1;for(;t>=0;){const s=this.tokens[t];if(s.type===a.EOF||s.channel===e)return t;--t}return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw new Error(`${t} not in 0..${this.tokens.length-1}`);const s=this.nextTokenOnChannel(t+1,Zt.DEFAULT_TOKEN_CHANNEL),r=t+1,i=-1===s?this.tokens.length-1:s;return this.filterForChannel(r,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw new Error(`${t} not in 0..${this.tokens.length-1}`);const s=this.previousTokenOnChannel(t-1,Zt.DEFAULT_TOKEN_CHANNEL);if(s===t-1)return;const r=s+1,i=t-1;return this.filterForChannel(r,i,e)}filterForChannel(t,e,s){const r=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===s?t.channel!==Zt.DEFAULT_TOKEN_CHANNEL&&r.push(t):t.channel===s&&r.push(t)}if(0!==r.length)return r}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(E.of(0,this.size-1))}getTextFromInterval(t){const e=t.start;let s=t.stop;if(e<0||s<0)return"";this.sync(s),s>=this.tokens.length&&(s=this.tokens.length-1);let r="";for(let i=e;i<=s;++i){const t=this.tokens[i];if(t.type===a.EOF)break;r+=t.text}return r}getTextFromContext(t){return this.getTextFromInterval(t.getSourceInterval())}getTextFromRange(t,e){return null!==t&&null!==e?this.getTextFromInterval(E.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}},Le=class extends de{static{h(this,"CommonTokenStream")}channel=a.DEFAULT_CHANNEL;constructor(t,e){super(t),this.channel=e??a.DEFAULT_CHANNEL}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,s=1;for(;s<=t;)e=this.previousTokenOnChannel(e-1,this.channel),s+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,s=1;for(;s<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),s+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(const e of this.tokens)if(e.channel===this.channel&&(t+=1),e.type===a.EOF)break;return t}},Ce=class t extends Zt{static{h(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new ue)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}action(t,e,s){if(4===e)this.ID_action(t,s)}ID_action(e,s){if(0===s){const e=this.text;e.charAt(0)===e.charAt(0).toUpperCase()?this.type=t.TOKEN_REF:this.type=t.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return t.__ATN||(t.__ATN=(new Ft).deserialize(t._serializedATN)),t.__ATN}static vocabulary=new l(t.literalNames,t.symbolicNames,[]);get vocabulary(){return t.vocabulary}static decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ae(t,e)))},Ne=class extends Xt{static{h(this,"XPathLexerErrorListener")}syntaxError(t,e,s,r,i,a){}},Ie=class{static{h(this,"XPathElement")}invert;nodeName;constructor(t){this.nodeName=t,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Oe=class extends Ie{static{h(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return f.findAllRuleNodes(t,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},pe=class extends Ie{static{h(this,"XPathRuleElement")}ruleIndex;constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){const e=[];for(const s of f.getChildren(t))s instanceof P&&(s.ruleIndex===this.ruleIndex&&!this.invert||s.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(s);return e}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},ge=class extends Ie{static{h(this,"XPathTokenAnywhereElement")}tokenType;constructor(t,e){super(t),this.tokenType=e}evaluate(t){return f.findAllTokenNodes(t,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},me=class extends Ie{static{h(this,"XPathTokenElement")}tokenType;constructor(t,e){super(t),this.tokenType=e}evaluate(t){const e=[];for(const s of f.getChildren(t))s instanceof m&&s.symbol&&(s.symbol.type===this.tokenType&&!this.invert||s.symbol.type!==this.tokenType&&this.invert)&&e.push(s);return e}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},xe=class extends Ie{static{h(this,"XPathWildcardAnywhereElement")}constructor(){super(fe.WILDCARD)}evaluate(t){return this.invert?[]:f.descendants(t)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Ue=class extends Ie{static{h(this,"XPathWildcardElement")}constructor(){super(fe.WILDCARD)}evaluate(t){const e=[];if(this.invert)return e;for(const s of f.getChildren(t))e.push(s);return e}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},fe=class t{static{h(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}static findAll(e,s,r){return new t(r,s).evaluate(e)}split(t){const e=new Ce(_e.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new Ne);const s=new Le(e);try{s.fill()}catch(h){if(h instanceof zt){const s="Invalid tokens or characters at index "+e.column+" in path '"+t+"' -- "+h.message;throw new RangeError(s)}throw h}const r=s.getTokens(),i=[],n=r.length;let c=0;t:for(;c<n;){const t=r[c];let e;switch(t.type){case Ce.ROOT:case Ce.ANYWHERE:const s=t.type===Ce.ANYWHERE;c++,e=r[c];const n=e.type===Ce.BANG;n&&(c++,e=r[c]);const h=this.getXPathElement(e,s);h.invert=n,i.push(h),c++;break;case Ce.TOKEN_REF:case Ce.RULE_REF:case Ce.WILDCARD:i.push(this.getXPathElement(t,!1)),++c;break;case a.EOF:break t;default:throw new Error("Unknown path element "+t)}}return i}evaluate(t){const e=new P(null);e.addChild(t);let s=new Set([e]),r=0;for(;r<this.elements.length;){const t=new Set;for(const e of s)if(e.getChildCount()>0){this.elements[r].evaluate(e).forEach((e=>{t.add(e)}),t)}r++,s=t}return s}getXPathElement(t,e){if(t.type===a.EOF)throw new Error("Missing path element at end of path");const s=t.text;if(null==s)throw new Error("Expected wordToken to have text content.");const r=this.parser.getTokenType(s),i=this.parser.getRuleIndex(s);switch(t.type){case Ce.WILDCARD:return e?new xe:new Ue;case Ce.TOKEN_REF:case Ce.STRING:if(r===a.INVALID_TYPE)throw new Error(s+" at index "+t.start+" isn't a valid token name");return e?new ge(s,r):new me(s,r);default:if(-1===i)throw new Error(s+" at index "+t.start+" isn't a valid rule name");return e?new Oe(s,i):new pe(s,i)}}},Pe=class{static{h(this,"Chunk")}},ke=class{static{h(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(t,e,s,r){this.tree=t,this.pattern=e,this.labels=s,this.mismatchedNode=r}get(t){const e=this.labels.get(t);return e&&0!==e.length?e[e.length-1]:null}getAll(t){return this.labels.get(t)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Me=class{static{h(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(t,e,s,r){this.matcher=t,this.patternRuleIndex=s,this.pattern=e,this.patternTree=r}match(t){return this.matcher.match(t,this)}matches(t){return this.matcher.match(t,this).succeeded()}findAll(t,e){const s=fe.findAll(t,e,this.matcher.getParser()),r=new Array;for(const i of s){const t=this.match(i);t.succeeded()&&r.push(t)}return r}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},ye=class extends Jt{static{h(this,"InputMismatchException")}constructor(t){super({message:"",recognizer:t,input:t.inputStream,ctx:t.context}),this.offendingToken=t.getCurrentToken()}},De=class extends Jt{static{h(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(t,e,s=null){super({message:ve(e??"no predicate",s??null),recognizer:t,input:t.inputStream,ctx:t.context});const r=t.atn.states[t.state].transitions[0];r instanceof Nt?(this.ruleIndex=r.ruleIndex,this.predicateIndex=r.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}},ve=h(((t,e)=>null!==e?e:"failed predicate: {"+t+"}?"),"formatMessage"),be=class{static{h(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new R;nextTokensContext=null;nextTokenState=0;reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=new R,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ce?this.reportNoViableAlternative(t,e):e instanceof ye?this.reportInputMismatch(t,e):e instanceof De?this.reportFailedPredicate(t,e):t.notifyErrorListeners(e.message,e.offendingToken,e))}recover(t,e){this.lastErrorIndex===t.inputStream?.index&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream?.index??0,this.lastErrorStates.addOne(t.state);const s=this.getErrorRecoverySet(t);this.consumeUntil(t,s)}sync(t){if(this.inErrorRecoveryMode(t))return;const e=t.atn.states[t.state],s=t.tokenStream.LA(1),r=t.atn.nextTokens(e);if(r.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=W.INVALID_STATE_NUMBER);if(r.contains(a.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokenState=t.state);else switch(e.constructor.stateType){case W.BLOCK_START:case W.STAR_BLOCK_START:case W.PLUS_BLOCK_START:case W.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new ye(t);case W.PLUS_LOOP_BACK:case W.STAR_LOOP_BACK:{this.reportUnwantedToken(t);const e=new R;e.addSet(t.getExpectedTokens());const s=e.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,s);break}}}reportNoViableAlternative(t,e){if(e.message.length>0)return void t.notifyErrorListeners(e.message,e.offendingToken,e);const s=t.tokenStream;let r;r=null!==s&&e.startToken?e.startToken.type===a.EOF?"<EOF>":s.getTextFromRange(e.startToken,e.offendingToken):"<unknown input>";const i="no viable alternative at input "+this.escapeWSAndQuote(r);t.notifyErrorListeners(i,e.offendingToken,e)}reportInputMismatch(t,e){if(e.message.length>0)return void t.notifyErrorListeners(e.message,e.offendingToken,e);const s="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toStringWithVocabulary(t.vocabulary);t.notifyErrorListeners(s,e.offendingToken,e)}reportFailedPredicate(t,e){const s="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;t.notifyErrorListeners(s,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),s="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringWithVocabulary(t.vocabulary);t.notifyErrorListeners(s,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),s="missing "+this.getExpectedTokens(t).toStringWithVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(s,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new ye(t)}singleTokenInsertion(t){const e=t.tokenStream?.LA(1)??-1,s=t.atn,r=s.states[t.state].transitions[0].target;return!!s.nextTokens(r,t.context??void 0).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(t){const e=t.getCurrentToken(),s=this.getExpectedTokens(t);let r,i=a.INVALID_TYPE;0!==s.length&&(i=s.minElement),r=i===a.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let n=e;const c=t.tokenStream?.LT(-1);return n.type===a.EOF&&null!==c&&(n=c),t.getTokenFactory().create(n.source,i,r,a.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return e||(e=t.type===a.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(t){const e=t.atn;let s=t.context;const r=new R;for(;null!==s&&s.invokingState>=0;){const t=e.states[s.invokingState].transitions[0],i=e.nextTokens(t.followState);r.addSet(i),s=s.parent}return r.removeOne(a.EPSILON),r}consumeUntil(t,e){let s=t.tokenStream?.LA(1)??-1;for(;s!==a.EOF&&!e.contains(s);)t.consume(),s=t.tokenStream?.LA(1)??-1}},He=class extends be{static{h(this,"BailErrorStrategy")}recover(t,e){throw new Te(e)}recoverInline(t){const e=new ye(t);throw new Te(e)}sync(t){}},we=class{static{h(this,"ListTokenSource")}sourceName;tokenFactory=jt.DEFAULT;tokens;i;eofToken;constructor(t,e){this.tokens=t,this.sourceName=e??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1],e=t.text;if(e){const t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.column+t.stop-t.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let t=-1;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1].stop;-1!==e&&(t=e+1)}const e=Math.max(-1,t-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],a.EOF,"EOF",a.DEFAULT_CHANNEL,t,e,this.line,this.column)}return this.eofToken}const t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1];let e=t.line;const s=t.text;if(s)for(const r of s)"\n"===r&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const t=this.inputStream;return null!==t?t.getSourceName():"List"}},Fe=class extends P{static{h(this,"InterpreterRuleContext")}#D;constructor(t,e,s){super(e,s),this.#D=t}get ruleIndex(){return this.#D}},Ge=class{static{h(this,"TraceListener")}parser;constructor(t){this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(t){console.log("consume "+t.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(t){}},Be=class extends qt{static{h(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new be;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;#v=null;#b=null;#H;constructor(t){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#H=t}reset(t=!0){t&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(t===a.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}getParseListeners(){return this.parseListeners??[]}addParseListener(t){if(null===t)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(t)}removeParseListener(t){if(null!==this.parseListeners&&null!==t){const e=this.parseListeners.indexOf(t);e>=0&&this.parseListeners.splice(e,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const t=this.context;this.parseListeners.forEach((e=>{e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const t=this.context;this.parseListeners.slice(0).reverse().forEach((e=>{t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(t){this.inputStream.tokenSource.tokenFactory=t}compileParseTreePattern(t,e,s){if(!s&&null!==this.tokenStream){const t=this.tokenStream.tokenSource;t instanceof Zt&&(s=t)}if(!s)throw new Error("Parser can't discover a lexer to use");return new Je(s,this).compile(t,e)}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.#b)return this.#b;return this.#b=new Ft({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(t),this.#b}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#H}set inputStream(t){this.tokenStream=t}get tokenStream(){return this.#H}set tokenStream(t){this.reset(!1),this.#H=t}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(t,e,s){s=s??null,null===(e=e??null)&&(e=this.getCurrentToken()),this.syntaxErrors+=1;const r=e.line,i=e.column;this.errorListenerDispatch.syntaxError(this,e,r,i,t,s)}consume(){const t=this.getCurrentToken();t.type!==a.EOF&&this.tokenStream.consume();const e=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||e){let s;s=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,t)):this.context.addTokenNode(t),e&&this.parseListeners.forEach((t=>{s instanceof x?t.visitErrorNode(s):t.visitTerminal(s)}))}return t}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(t,e,s){this.state=e,this.context=t,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this.context!==t&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(t)),this.context=t}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(t,e,s,r){this.state=e,this.precedenceStack.push(r),this.context=t,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,s){const r=this.context;r.parent=t,r.invokingState=e,r.stop=this.inputStream.LT(-1),this.context=t,this.context.start=r.start,this.buildParseTrees&&this.context.addChild(r),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const e=this.context,s=this.getParseListeners();if(null!==s&&s.length>0)for(;this.context!==t;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=t;e.parent=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this.context;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parent}return null}precpred(t,e){return e>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(t){const e=this.interpreter.atn;let s=this.context;const r=e.states[this.state];let i=e.nextTokens(r);if(i.contains(t))return!0;if(!i.contains(a.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&i.contains(a.EPSILON);){const r=e.states[s.invokingState].transitions[0];if(i=e.nextTokens(r.followState),i.contains(t))return!0;s=s.parent}return!(!i.contains(a.EPSILON)||t!==a.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}getRuleInvocationStack(t){null===(t=t??null)&&(t=this.context);const e=[];for(;null!==t;){const s=t.ruleIndex;s<0?e.push("n/a"):e.push(this.ruleNames[s]),t=t.parent}return e}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let t=!1;for(const e of this.interpreter.decisionToDFA)e.length>0&&(t&&console.log(),this.printer&&(this.printer.println("Decision "+e.decision+":"),this.printer.print(e.toString(this.vocabulary))),t=!0)}getSourceName(){return this.inputStream.getSourceName()}setProfile(t){const e=this.interpreter,s=e.predictionMode;if(t)e instanceof Re||(this.interpreter=new Re(this));else if(e instanceof Re){const t=e.sharedContextCache;if(t){const s=new le(this,this.atn,e.decisionToDFA,t);this.interpreter=s}}this.interpreter.predictionMode=s}setTrace(t){t?(null!==this.#v&&this.removeParseListener(this.#v),this.#v=new Ge(this),this.addParseListener(this.#v)):(this.removeParseListener(this.#v),this.#v=null)}createTerminalNode(t,e){return new m(e)}createErrorNode(t,e){return new x(e)}},Ye=class extends Be{static{h(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];#w=-1;#F=-1;#G=-1;#B=!1;#Y;#_;#V;#W;#X;#K=new ue;#Q;constructor(t,e,s,r,i){super(i),this.#Y=t,this.#_=r,this.#V=s.slice(0),this.#W=e,this.#Q=new V;for(const a of r.states)a instanceof Et&&a.precedenceRuleDecision&&this.#Q.set(a.stateNumber);this.#X=r.decisionToState.map(((t,e)=>new ae(t,e))),this.interpreter=new le(this,r,this.#X,this.#K)}reset(){super.reset(),this.#B=!1,this.overrideDecisionRoot=null}get atn(){return this.#_}get vocabulary(){return this.#W}get ruleNames(){return this.#V}get grammarFileName(){return this.#Y}get atnState(){return this.#_.states[this.state]}parse(t){const e=this.#_.ruleToStartState[t];for(this.rootContext=this.createInterpreterRuleContext(null,W.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this.rootContext,e.stateNumber,t,0):this.enterRule(this.rootContext,e.stateNumber,t);;){const t=this.atnState;if(t.constructor.stateType===W.RULE_STOP){if(this.context?.isEmpty){if(e.isPrecedenceRule){const t=this.context,e=this.parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this.rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(s){if(!(s instanceof Jt))throw s;this.state=this.#_.ruleToStopState[t.ruleIndex].stateNumber,this.errorHandler.reportError(this,s),this.recover(s)}}}addDecisionOverride(t,e,s){this.#w=t,this.#F=e,this.#G=s}get overrideDecision(){return this.#w}get overrideDecisionInputIndex(){return this.#F}enterRecursionRule(t,e,s,r){this.parentContextStack.push([this.context,t.invokingState]),super.enterRecursionRule(t,e,s,r)}visitState(t){let e=1;t instanceof et&&(e=this.visitDecisionState(t));const s=t.transitions[e-1];switch(s.transitionType){case _.EPSILON:if(this.#Q.get(t.stateNumber)&&s.target.constructor.stateType!==W.LOOP_END){const e=this.parentContextStack[this.parentContextStack.length-1],s=this.createInterpreterRuleContext(e[0],e[1],this.context.ruleIndex);this.pushNewRecursionContext(s,this.#_.ruleToStartState[t.ruleIndex].stateNumber,this.context.ruleIndex)}break;case _.ATOM:this.match(s.label.minElement);break;case _.RANGE:case _.SET:case _.NOT_SET:s.matches(this.inputStream.LA(1),a.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case _.WILDCARD:this.matchWildcard();break;case _.RULE:const e=s.target,r=e.ruleIndex,i=this.createInterpreterRuleContext(this.context,t.stateNumber,r);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,r,s.precedence):this.enterRule(i,s.target.stateNumber,r);break;case _.PREDICATE:const n=s;if(!this.sempred(this.context,n.ruleIndex,n.predIndex))throw new De(this);break;case _.ACTION:const c=s;this.action(this.context,c.ruleIndex,c.actionIndex);break;case _.PRECEDENCE:if(!this.precpred(this.context,s.precedence)){const t=s.precedence;throw new De(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=s.target.stateNumber}visitDecisionState(t){let e=1;if(t.transitions.length>1){this.errorHandler.sync(this);const s=t.decision;s!==this.#w||this.inputStream.index!==this.#F||this.#B?e=this.interpreter.adaptivePredict(this.inputStream,s,this.context):(e=this.#G,this.#B=!0)}return e}createInterpreterRuleContext(t,e,s){return new Fe(s,t,e)}visitRuleStopState(t){if(this.#_.ruleToStartState[t.ruleIndex].isPrecedenceRule){const[t,e]=this.parentContextStack.pop();this.unrollRecursionContexts(t),this.state=e}else this.exitRule();const e=this.#_.states[this.state].transitions[0];this.state=e.followState.stateNumber}recover(t){const e=this.inputStream.index;if(this.errorHandler.recover(this,t),this.inputStream.index===e){const e=t.offendingToken;if(!e)throw new Error("Expected exception to have an offending token");const s=e.tokenSource,r=[s,s?.inputStream??null];if(t instanceof ye){const s=t.getExpectedTokens();if(!s)throw new Error("Expected the exception to provide expected tokens");let i=a.INVALID_TYPE;0!==s.length&&(i=s.minElement);const n=this.getTokenFactory().create(r,i,e.text,a.DEFAULT_CHANNEL,-1,-1,e.line,e.column);this.context.addErrorNode(this.createErrorNode(this.context,n))}else{const t=this.getTokenFactory().create(r,a.INVALID_TYPE,e.text,a.DEFAULT_CHANNEL,-1,-1,e.line,e.column);this.context.addErrorNode(this.createErrorNode(this.context,t))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Ve=class extends Map{static{h(this,"MultiMap")}map(t,e){let s=this.get(t);s||(s=new Array,this.set(t,s)),s.push(e)}getPairs(){const t=new Array;for(const e of this.keys()){const s=this.get(e)??[];for(const r of s)t.push([e,r])}return t}},We=class extends Error{static{h(this,"CannotInvokeStartRuleError")}constructor(t){super(),this.cause=t}},Xe=class{static{h(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(t,e,s){this.ruleName=t,this.bypassTokenType=e,this.label=s}get channel(){return a.DEFAULT_CHANNEL}get text(){return null!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},Ke=class extends Error{static{h(this,"StartRuleDoesNotConsumeFullPatternError")}},Qe=class extends Pe{static{h(this,"TagChunk")}tag;label;constructor(...t){let e,s;if(1===t.length?s=t[0]:(e=t[0],s=t[1]),super(),!s)throw new Error("tag cannot be null or empty");this.label=e,this.tag=s}toString(){return null!==this.label?this.label+":"+this.tag:this.tag}},qe=class extends Pe{static{h(this,"TextChunk")}text;constructor(t){super(),this.text=t}toString(){return"'"+this.text+"'"}},je=class extends U{static{h(this,"TokenTagToken")}tokenName;label;constructor(t,e,s){super({type:e,source:U.EMPTY_SOURCE}),this.tokenName=t,this.label=s}get text(){return null!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Je=class{static{h(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(t,e){this.lexer=t,this.parser=e}setDelimiters(t,e,s){if(null===t||0===t.length)throw new Error("start cannot be null or empty");if(null===e||0===e.length)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=s}matches(...t){switch(t.length){case 2:{const[e,s]=t,r=new Ve;return null===this.matchImpl(e,s.getPatternTree(),r)}case 3:{const[e,s,r]=t,i=this.compile(s,r);return this.matches(e,i)}default:throw new Error("Invalid number of arguments")}}match(...t){switch(t.length){case 2:{const[e,s]=t,r=new Ve,i=this.matchImpl(e,s.getPatternTree(),r);return new ke(e,s,r,i)}case 3:{const[e,s,r]=t,i=this.compile(s,r);return this.match(e,i)}default:throw new Error("Invalid number of arguments")}}compile(t,e){const s=this.tokenize(t),r=new we(s),i=new Le(r),n=new Ye(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),i);let c=null;try{n.errorHandler=new He,c=n.parse(e)}catch(h){if(h instanceof Te){throw h.cause}throw h instanceof Jt?h:h instanceof Error?new We(h):h}if(i.LA(1)!==a.EOF)throw new Ke;return new Me(this,t,e,c)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(t){const e=this.split(t),s=new Array;for(const r of e)if(r instanceof Qe){const e=r,i=e.tag[0];if(i===i.toUpperCase()){const r=this.parser.getTokenType(e.tag);if(r===a.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);const i=new je(e.tag,r,e.label);s.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{const r=this.parser.getRuleIndex(e.tag);if(-1===r)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);const i=this.parser.getATNWithBypassAlts().ruleToTokenType[r];s.push(new Xe(e.tag,i,e.label))}}}else{const t=r,e=_e.fromString(t.text);this.lexer.inputStream=e;let i=this.lexer.nextToken();for(;i.type!==a.EOF;)s.push(i),i=this.lexer.nextToken()}return s}split(t){let e=0;const s=t.length,r=new Array,i=new Array,a=new Array;for(;e<s;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(a.push(e),e+=this.stop.length):e++;if(i.length>a.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<a.length)throw new Error("missing start tag in pattern: "+t);const n=i.length;for(let c=0;c<n;c++)if(i[c]>=a[c])throw new Error("tag delimiters out of order in pattern: "+t);if(0===n){const e=t.substring(0,s);r.push(new qe(e))}if(n>0&&i[0]>0){const e=t.substring(0,i[0]);r.push(new qe(e))}for(let c=0;c<n;c++){const e=t.substring(i[c]+this.start.length,a[c]);let s,h=e;const o=e.indexOf(":");if(o>=0&&(s=e.substring(0,o),h=e.substring(o+1,e.length)),r.push(new Qe(s,h)),c+1<n){const e=t.substring(a[c]+this.stop.length,i[c+1]);r.push(new qe(e))}}if(n>0){const e=a[n-1]+this.stop.length;if(e<s){const i=t.substring(e,s);r.push(new qe(i))}}for(let c=0;c<r.length;c++){const t=r[c];if(t instanceof qe){const e=t,s=e.text.replace(this.escape,"");s.length<e.text.length&&(r[c]=new qe(s))}}return r}matchImpl(t,e,s){if(t instanceof m&&e instanceof m){const r=t,i=e;let a;if(r.getSymbol().type===i.getSymbol().type)if(i.getSymbol()instanceof je){const e=i.getSymbol();s.map(e.tokenName,t),void 0!==e.label&&s.map(e.label,t)}else r.getText()===i.getText()||a||(a=r);else a||(a=r);return a}if(t instanceof P&&e instanceof P){let r;const i=this.getRuleTagToken(e);if(i)return t.ruleIndex===e.ruleIndex?(s.map(i.ruleName,t),i.label&&s.map(i.label,t)):r||(r=t),r;if(t.getChildCount()!==e.getChildCount())return r||(r=t),r;const a=t.getChildCount();for(let n=0;n<a;n++){const r=this.matchImpl(t.getChild(n),e.getChild(n),s);if(r)return r}return r}return t}getRuleTagToken(t){if(t instanceof P&&1===t.getChildCount()&&t.getChild(0)instanceof m){const e=t.getChild(0);if(e.getSymbol()instanceof Xe)return e.getSymbol()}}},ze=(class extends(null){static{h(this,"DiagnosticErrorListener")}exactOnly;constructor(t){super(),this.exactOnly=t??!0}reportAmbiguity=(t,e,s,r,i,a,n)=>{if(this.exactOnly&&!i)return;const c=this.getDecisionDescription(t,e),h=this.getConflictingAlts(a,n),o=t.tokenStream?.getTextFromInterval(E.of(s,r)),l=`reportAmbiguity d=${c}: ambigAlts=${h}, input='${o}'`;t.notifyErrorListeners(l,null,null)};reportAttemptingFullContext=(t,e,s,r,i,a)=>{const n=this.getDecisionDescription(t,e),c=t.tokenStream?.getTextFromInterval(E.of(s,r)),h=`reportAttemptingFullContext d=${n}, input='${c}'`;t.notifyErrorListeners(h,null,null)};reportContextSensitivity=(t,e,s,r,i,a)=>{const n=this.getDecisionDescription(t,e),c=t.tokenStream?.getTextFromInterval(E.of(s,r)),h=`reportContextSensitivity d=${n}, input='${c}'`;t.notifyErrorListeners(h,null,null)};getDecisionDescription=(t,e)=>{const s=e.decision,r=e.atnStartState.ruleIndex,i=t.ruleNames;if(r<0||r>=i.length)return s.toString();const a=i[r];return 0===a.length?s.toString():`${s} (${a})`};getConflictingAlts=(t,e)=>{if(t)return t;const s=new V;for(let r=0;r<e.configs.length;r++)s.set(e.configs[r].alt);return s}},class extends(null){static{h(this,"LexerInterpreter")}#Y;#_;#V;#q;#j;#W;#X;#K=new ue;constructor(t,e,s,r,i,a,n){if(super(n),a.grammarType!==z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#Y=t,this.#_=a,this.#V=s.slice(0),this.#q=r.slice(0),this.#j=i.slice(0),this.#W=e,this.#X=a.decisionToState.map(((t,e)=>new ae(t,e))),this.interpreter=new ne(this,a,this.#X,this.#K)}get atn(){return this.#_}get grammarFileName(){return this.#Y}get ruleNames(){return this.#V}get channelNames(){return this.#q}get modeNames(){return this.#j}get vocabulary(){return this.#W}},class t{static{h(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME=null;static PROGRAM_INIT_SIZE=null;static MIN_TOKEN_INDEX=null;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(t){this.tokens=t}getTokenStream(){return this.tokens}insertAfter(e,s,r=t.DEFAULT_PROGRAM_NAME){let i;i="number"===typeof e?e:e.tokenIndex;const a=this.getProgram(r),n=new Ze(this.tokens,i,a.length,s);a.push(n)}insertBefore(e,s,r=t.DEFAULT_PROGRAM_NAME){let i;i="number"===typeof e?e:e.tokenIndex;const a=this.getProgram(r),n=new ze(this.tokens,i,a.length,s);a.push(n)}replaceSingle(e,s,r=t.DEFAULT_PROGRAM_NAME){this.replace(e,e,s,r)}replace(e,s,r,i=t.DEFAULT_PROGRAM_NAME){if("number"!==typeof e&&(e=e.tokenIndex),"number"!==typeof s&&(s=s.tokenIndex),e>s||e<0||s<0||s>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${s}(size=${this.tokens.size})`);const a=this.getProgram(i),n=new $e(this.tokens,e,s,a.length,r);a.push(n)}delete(e,s,r=t.DEFAULT_PROGRAM_NAME){null==s&&(s=e),this.replace(e,s,null,r)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e,s=t.DEFAULT_PROGRAM_NAME){let r;r=e instanceof E?e:new E(0,this.tokens.size-1),"string"===typeof e&&(s=e);const i=this.programs.get(s);let n=r.start,c=r.stop;if(c>this.tokens.size-1&&(c=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getTextFromInterval(new E(n,c));const h=[],o=this.reduceToSingleOperationPerIndex(i);let l=n;for(;l<=c&&l<this.tokens.size;){const t=o.get(l);o.delete(l);const e=this.tokens.get(l);null==t?(e.type!==a.EOF&&h.push(String(e.text)),l++):l=t.execute(h)}if(c===this.tokens.size-1)for(const t of o.values())t&&t.index>=this.tokens.size-1&&h.push(String(t.text));return h.join("")}reduceToSingleOperationPerIndex(t){for(let s=0;s<t.length;s++){const e=t[s];if(null==e)continue;if(!(e instanceof $e))continue;const r=e,i=this.getKindOfOps(t,ze,s);for(const s of i)s.index===r.index?(t[s.instructionIndex]=null,r.text=String(s.text)+(null!=r.text?r.text.toString():"")):s.index>r.index&&s.index<=r.lastIndex&&(t[s.instructionIndex]=null);const a=this.getKindOfOps(t,$e,s);for(const s of a){if(s.index>=r.index&&s.lastIndex<=r.lastIndex){t[s.instructionIndex]=null;continue}const e=s.lastIndex<r.index||s.index>r.lastIndex;if(null!=s.text||null!=r.text||e){if(!e)throw new Error(`replace op boundaries of ${r} overlap with previous ${s}`)}else t[s.instructionIndex]=null,r.index=Math.min(s.index,r.index),r.lastIndex=Math.max(s.lastIndex,r.lastIndex)}}for(let s=0;s<t.length;s++){const e=t[s];if(null==e)continue;if(!(e instanceof ze))continue;const r=e,i=this.getKindOfOps(t,ze,s);for(const s of i)s.index===r.index&&(s instanceof Ze?(r.text=this.catOpText(s.text,r.text),t[s.instructionIndex]=null):s instanceof ze&&(r.text=this.catOpText(r.text,s.text),t[s.instructionIndex]=null));const a=this.getKindOfOps(t,$e,s);for(const n of a)if(r.index!==n.index){if(r.index>=n.index&&r.index<=n.lastIndex)throw new Error(`insert op ${r} within boundaries of previous ${n}`)}else n.text=this.catOpText(r.text,n.text),t[s]=null}const e=new Map;for(const s of t)if(null!=s){if(null!=e.get(s.index))throw new Error("should only be one op per index");e.set(s.index,s)}return e}catOpText(t,e){let s="",r="";return null!=t&&(s=t.toString()),null!=e&&(r=e.toString()),s+r}getKindOfOps(t,e,s){return t.slice(0,s).filter((t=>t&&t instanceof e))}},class{static{h(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(t,e,s,r){this.tokens=t,this.instructionIndex=s,this.index=e,this.text=void 0===r?"":r}execute(t){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}},class extends(null){static{h(this,"InsertBeforeOp")}constructor(t,e,s,r){super(t,e,s,r)}execute(t){return this.text&&t.push(this.text.toString()),this.tokens.get(this.index).type!==a.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),Ze=class extends(null){static{h(this,"InsertAfterOp")}constructor(t,e,s,r){super(t,e+1,s,r)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},$e=class extends(null){static{h(this,"ReplaceOp")}lastIndex;constructor(t,e,s,r,i){super(t,e,r,i),this.lastIndex=s}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ts=Object.defineProperty,es=(t,e)=>ts(t,"name",{value:e,configurable:!0}),ss=class{static{es(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#a;constructor(t=""){this.name=t}get parent(){return this.#a}get firstSibling(){if(this.#a)return this.#a?.firstChild}get previousSibling(){if(this.#a)return this.#a?this.#a.previousSiblingOf(this):this}get nextSibling(){return this.#a?.nextSiblingOf(this)}get lastSibling(){return this.#a?.lastChild}get next(){return this.#a?.nextOf(this)}get root(){let t=this.#a;for(;t;){if(!t.parent||this.isSymbolTable(t.parent))return t;t=t.parent}return t}get symbolTable(){if(this.isSymbolTable(this))return this;let t=this.#a;for(;t;){if(this.isSymbolTable(t))return t;t=t.parent}}get symbolPath(){const t=[];let e=this;for(;e&&(t.push(e),e.parent);)e=e.parent;return t}setParent(t){this.#a=t}removeFromParent(){this.#a?.removeSymbol(this),this.#a=void 0}async resolve(t,e=!1){return this.#a?.resolve(t,e)}resolveSync(t,e=!1){return this.#a?.resolveSync(t,e)}getParentOfType(t){let e=this.#a;for(;e;){if(e instanceof t)return e;e=e.parent}}qualifiedName(t=".",e=!1,s=!1){if(!s&&0===this.name.length)return"";let r=0===this.name.length?"<anonymous>":this.name,i=this.#a;for(;i&&((s||i.name.length>0)&&(r=(0===i.name.length?"<anonymous>":i.name)+t+r),e&&i.parent);)i=i.parent;return r}isSymbolTable(t){return void 0!==t.info}},rs=(class extends(null){static{es(this,"ArrayType")}elementType;size;referenceKind;constructor(t,e,s,r=0){super(t),this.referenceKind=e,this.elementType=s,this.size=r}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{es(this,"DuplicateSymbolError")}}),is=class t extends ss{static{es(this,"ScopedSymbol")}#J=[];#z=new Map;constructor(t=""){super(t)}get directScopes(){return this.getSymbolsOfType(t)}get children(){return this.#J}get firstChild(){if(this.#J.length>0)return this.#J[0]}get lastChild(){if(this.#J.length>0)return this.#J[this.#J.length-1]}clear(){this.#J=[],this.#z.clear()}addSymbol(t){t.removeFromParent();const e=this.symbolTable,s=this.#z.get(t.name);if(e&&e.options.allowDuplicateSymbols)this.#z.set(t.name,void 0===s?1:s+1);else{if(void 0!==s)throw new rs("Attempt to add duplicate symbol '"+(t.name??"<anonymous>")+"'");this.#z.set(t.name,1);if(this.#J.indexOf(t)>-1)throw new rs("Attempt to add duplicate symbol '"+(t.name??"<anonymous>")+"'")}this.#J.push(t),t.setParent(this)}removeSymbol(t){const e=this.#J.indexOf(t);if(e>-1){this.#J.splice(e,1),t.setParent(void 0);const s=this.#z.get(t.name);void 0!==s&&(1===s?this.#z.delete(t.name):this.#z.set(t.name,s-1))}}async getNestedSymbolsOfType(e){const s=[],r=[];this.#J.forEach((i=>{i instanceof e&&s.push(i),i instanceof t&&r.push(i.getNestedSymbolsOfType(e))}));return(await Promise.all(r)).forEach((t=>{s.push(...t)})),s}getNestedSymbolsOfTypeSync(e){const s=[];return this.#J.forEach((r=>{r instanceof e&&s.push(r),r instanceof t&&s.push(...r.getNestedSymbolsOfTypeSync(e))})),s}async getAllNestedSymbols(e){const s=[],r=[];this.#J.forEach((i=>{e&&i.name!==e||s.push(i),i instanceof t&&r.push(i.getAllNestedSymbols(e))}));return(await Promise.all(r)).forEach((t=>{s.push(...t)})),s}getAllNestedSymbolsSync(e){const s=[];return this.#J.forEach((r=>{e&&r.name!==e||s.push(r),r instanceof t&&s.push(...r.getAllNestedSymbolsSync(e))})),s}getSymbolsOfType(t){return new Promise((e=>{const s=[];this.#J.forEach((e=>{e instanceof t&&s.push(e)})),e(s)}))}async getAllSymbols(t,e=!1){const s=[];for(const r of this.#J)if(r instanceof t&&s.push(r),this.isNamespace(r)){const e=await r.getAllSymbols(t,!0);s.push(...e)}if(!e&&this.parent){const e=await this.getAllSymbols(t,!0);s.push(...e)}return s}getAllSymbolsSync(t,e=!1){const s=[];for(const r of this.#J)if(r instanceof t&&s.push(r),this.isNamespace(r)){const e=r.getAllSymbolsSync(t,!0);s.push(...e)}if(!e&&this.parent){const e=this.getAllSymbolsSync(t,!0);s.push(...e)}return s}async resolve(t,e=!1){return new Promise((s=>{for(const e of this.#J)if(e.name===t)return void s(e);e||!this.parent?s(void 0):s(this.parent.resolve(t,!1))}))}resolveSync(t,e=!1){for(const s of this.#J)if(s.name===t)return s;if(!e&&this.parent)return this.parent.resolveSync(t,!1)}symbolFromPath(e,s="."){const r=e.split(s);let i=0;r[0]!==this.name&&0!==r[0].length||++i;let a=this;for(;i<r.length;){if(!(a instanceof t))return;const e=a.children.find((t=>t.name===r[i]));if(!e)return;a=e,++i}return a}indexOfChild(t){return this.#J.findIndex((e=>e===t))}nextSiblingOf(t){const e=this.indexOfChild(t);if(!(-1===e||e>=this.#J.length-1))return this.#J[e+1]}previousSiblingOf(t){const e=this.indexOfChild(t);if(!(e<1))return this.#J[e-1]}nextOf(e){if(!e.parent)return;if(e.parent!==this)return e.parent.nextOf(e);if(e instanceof t&&e.children.length>0)return e.children[0];const s=this.nextSiblingOf(e);return s||this.parent.nextOf(this)}isNamespace(t){return void 0!==t.inline&&void 0!==t.attributes}},as=(class extends(null){static{es(this,"BlockSymbol")}},class extends ss{static{es(this,"TypedSymbol")}type;constructor(t,e){super(t),this.type=e}}),ns=class extends(null){static{es(this,"VariableSymbol")}value;constructor(t,e,s){super(t,s),this.value=e}},cs=class extends(null){static{es(this,"FieldSymbol")}setter;getter},hs=class extends(null){static{es(this,"ParameterSymbol")}},os=(class extends(null){static{es(this,"RoutineSymbol")}returnType;constructor(t,e){super(t),this.returnType=e}getVariables(t=!0){return this.getSymbolsOfType(ns)}getParameters(t=!0){return this.getSymbolsOfType(hs)}},class extends(null){static{es(this,"MethodSymbol")}methodFlags=0}),Es=(class extends(null){static{es(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(t,e,s){super(t),this.extends=e,this.implements=s}get baseTypes(){return this.extends}get kind(){return 7}getMethods(t=!1){return this.getSymbolsOfType(os)}getFields(t=!1){return this.getSymbolsOfType(cs)}},class t{static{es(this,"FundamentalType")}static integerType=new t("int",1,3);static floatType=new t("float",2,3);static stringType=new t("string",4,3);static boolType=new t("bool",6,3);name;typeKind;referenceKind;constructor(t,e=0,s=0){this.name=t,this.typeKind=e,this.referenceKind=s}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends(null){static{es(this,"InterfaceSymbol")}reference=0;extends;constructor(t,e){super(t),this.extends=e}get baseTypes(){return this.extends}get kind(){return 8}getMethods(t=!1){return this.getSymbolsOfType(os)}getFields(t=!1){return this.getSymbolsOfType(cs)}},class extends(null){static{es(this,"LiteralSymbol")}value;constructor(t,e,s){super(t,s),this.value=e}},class extends is{static{es(this,"NamespaceSymbol")}inline;attributes;constructor(t,e=!1,s=[]){super(t),this.inline=e,this.attributes=s}}),ls=(class extends(null){static{es(this,"TypeAlias")}targetType;constructor(t,e){super(t),this.targetType=e}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},es(((t,e)=>{if(!t||!e)return[];let s;for(s=0;s<Math.min(t.length,e.length)&&t[s]===e[s];s++);return t.slice(0,s)}),"longestCommonPrefix")),us=class{static{es(this,"CandidatesCollection")}tokens=new Map;rules=new Map},Rs=class{static{es(this,"FollowSetWithPath")}intervals;path=[];following=[]},_s=class t{static{es(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new us;constructor(t){this.parser=t,this.atn=t.atn,this.vocabulary=t.vocabulary,this.ruleNames=t.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(t,e){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=e?.start?e.start.tokenIndex:0;const s=this.parser.tokenStream;this.tokens=[];let r=this.tokenStartIndex;for(;;){const e=s.get(r++);if(!e)break;if(e.channel===a.DEFAULT_CHANNEL&&(this.tokens.push(e),e.tokenIndex>=t||e.type===a.EOF))break;if(e.type===a.EOF)break}const i=e?e.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[i],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const e of this.candidates.rules){let t="";for(const s of e[1].ruleList)t+=this.ruleNames[s]+" ";console.log(this.ruleNames[e[0]]+", path: ",t)}const t=new Set;for(const e of this.candidates.tokens){let s=this.vocabulary.getDisplayName(e[0])??"";for(const t of e[1])s+=" "+this.vocabulary.getDisplayName(t);t.add(s)}console.log("\n\nCollected tokens:\n");for(const e of t)console.log(e);console.log("\n\n")}return this.candidates}checkPredicate(t){return t.getPredicate().evaluate(this.parser,P.empty)}translateStackToRuleIndex(t){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let e=t.length-1;e>=0;e--)if(this.translateToRuleIndex(e,t))return!0}else for(let e=0;e<t.length;e++)if(this.translateToRuleIndex(e,t))return!0;return!1}translateToRuleIndex(t,e){const{ruleIndex:s,startTokenIndex:r}=e[t];if(this.preferredRules.has(s)){const i=e.slice(0,t).map((({ruleIndex:t})=>t));let a=!0;for(const t of this.candidates.rules)if(t[0]===s&&t[1].ruleList.length===i.length&&i.every(((e,s)=>e===t[1].ruleList[s]))){a=!1;break}return a&&(this.candidates.rules.set(s,{startTokenIndex:r,ruleList:i}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[s])),!0}return!1}getFollowingTokens(t){const e=[],s=[t.target];for(;s.length>0;){const t=s.pop();t&&t.transitions.forEach((t=>{if(t.transitionType===_.ATOM)if(t.isEpsilon)s.push(t.target);else{const r=t.label.toArray();1!==r.length||this.ignoredTokens.has(r[0])||(e.push(r[0]),s.push(t.target))}}))}return e}determineFollowSets(t,e){const s=[],r=this.collectFollowSets(t,e,s,[],[]),i=new R;for(const a of s)i.addSet(a.intervals);return{sets:s,isExhaustive:r,combined:i}}collectFollowSets(t,e,s,r,i){if(r.find((e=>e===t)))return!0;if(r.push(t),t===e||t.constructor.stateType===W.RULE_STOP)return r.pop(),!1;let n=!0;for(const c of t.transitions)if(c.transitionType===_.RULE){const t=c;if(-1!==i.indexOf(t.target.ruleIndex))continue;i.push(t.target.ruleIndex);const a=this.collectFollowSets(c.target,e,s,r,i);if(i.pop(),!a){const a=this.collectFollowSets(t.followState,e,s,r,i);n&&=a}}else if(c.transitionType===_.PREDICATE){if(this.checkPredicate(c)){const t=this.collectFollowSets(c.target,e,s,r,i);n&&=t}}else if(c.isEpsilon){const t=this.collectFollowSets(c.target,e,s,r,i);n&&=t}else if(c.transitionType===_.WILDCARD){const t=new Rs;t.intervals=R.of(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),t.path=i.slice(),s.push(t)}else{let t=c.label;if(t&&t.length>0){c.transitionType===_.NOT_SET&&(t=t.complement(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const e=new Rs;e.intervals=t??new R,e.path=i.slice(),e.following=this.getFollowingTokens(c),s.push(e)}}return r.pop(),n}processRule(e,s,r,i,n){let c=this.shortcutMap.get(e.ruleIndex);if(c){if(c.has(s))return this.showDebugOutput&&console.log("=====> shortcut"),c.get(s)}else c=new Map,this.shortcutMap.set(e.ruleIndex,c);const h=new Set;let o=t.followSetsByATN.get(this.parser.constructor.name);o||(o=new Map,t.followSetsByATN.set(this.parser.constructor.name,o));let E=o.get(e.stateNumber);if(!E){const t=this.atn.ruleToStopState[e.ruleIndex];E=this.determineFollowSets(e,t),o.set(e.stateNumber,E)}const l=this.tokens[s].tokenIndex;if(r.push({startTokenIndex:l,ruleIndex:e.ruleIndex}),s>=this.tokens.length-1){if(this.preferredRules.has(e.ruleIndex))this.translateStackToRuleIndex(r);else for(const t of E.sets){const e=r.slice(),s=t.path.map((t=>({startTokenIndex:l,ruleIndex:t})));if(e.push(...s),!this.translateStackToRuleIndex(e))for(const r of t.intervals.toArray())this.ignoredTokens.has(r)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(r)),this.candidates.tokens.has(r)?this.candidates.tokens.get(r)!==t.following&&this.candidates.tokens.set(r,[]):this.candidates.tokens.set(r,t.following))}return E.isExhaustive||h.add(s),r.pop(),h}{const t=this.tokens[s].type;if(E.isExhaustive&&!E.combined.contains(t))return r.pop(),h}e.isPrecedenceRule&&this.precedenceStack.push(i);const u=[];let T;for(u.push({state:e,tokenListIndex:s});u.length>0;){T=u.pop(),++this.statesProcessed;const t=this.tokens[T.tokenListIndex].type,e=T.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(n,T.state,this.generateBaseDescription(T.state),T.tokenListIndex),this.showRuleStack&&this.printRuleState(r)),T.state.constructor.stateType===W.RULE_STOP){h.add(T.tokenListIndex);continue}const s=T.state.transitions;for(const i of s)switch(i.transitionType){case _.RULE:{const t=i,e=this.processRule(i.target,T.tokenListIndex,r,t.precedence,n+1);for(const s of e)u.push({state:i.followState,tokenListIndex:s});break}case _.PREDICATE:this.checkPredicate(i)&&u.push({state:i.target,tokenListIndex:T.tokenListIndex});break;case _.PRECEDENCE:i.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:i.target,tokenListIndex:T.tokenListIndex});break;case _.WILDCARD:if(e){if(!this.translateStackToRuleIndex(r))for(const t of R.of(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(t)||this.candidates.tokens.set(t,[])}else u.push({state:i.target,tokenListIndex:T.tokenListIndex+1});break;default:{if(i.isEpsilon){u.push({state:i.target,tokenListIndex:T.tokenListIndex});continue}let s=i.label;if(s&&s.length>0)if(i.transitionType===_.NOT_SET&&(s=s.complement(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),e){if(!this.translateStackToRuleIndex(r)){const t=s.toArray(),e=1===t.length;for(const s of t)if(!this.ignoredTokens.has(s)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s));const t=e?this.getFollowingTokens(i):[];this.candidates.tokens.has(s)?this.candidates.tokens.set(s,ls(t,this.candidates.tokens.get(s))):this.candidates.tokens.set(s,t)}}}else s.contains(t)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(t)),u.push({state:i.target,tokenListIndex:T.tokenListIndex+1}))}}}return r.pop(),e.isPrecedenceRule&&this.precedenceStack.pop(),c.set(s,h),h}generateBaseDescription(e){return`[${e.stateNumber===W.INVALID_STATE_NUMBER?"Invalid":e.stateNumber} ${t.atnStateTypeMap[e.constructor.stateType]}] in ${this.ruleNames[e.ruleIndex]}`}printDescription(e,s,r,i){const a=" ".repeat(e);let n=a,c="";if(this.debugOutputWithTransitions)for(const h of s.transitions){let e="";const s=h.label?h.label.toArray():[];if(s.length>2)e=this.vocabulary.getDisplayName(s[0])+" .. "+this.vocabulary.getDisplayName(s[s.length-1]);else for(const t of s)e.length>0&&(e+=", "),e+=this.vocabulary.getDisplayName(t);0===e.length&&(e="\u03b5");const r=t.atnStateTypeMap[h.target.constructor.stateType];c+=`\n${a}\t(${e}) [${h.target.stateNumber} ${r}] in ${this.ruleNames[h.target.ruleIndex]}`}i>=this.tokens.length-1?n+=`<<${this.tokenStartIndex+i}>> `:n+=`<${this.tokenStartIndex+i}> `,console.log(n+"Current state: "+r+c)}printRuleState(t){if(0!==t.length)for(const e of t)console.log(this.ruleNames[e.ruleIndex]);else console.log("<empty stack>")}},Ts=class extends is{constructor(t,e){super(t),this.options=e}static{es(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...t){t.forEach((t=>{this.dependencies.add(t)}))}removeDependency(t){this.dependencies.has(t)&&this.dependencies.delete(t)}addNewSymbolOfType(t,e,...s){const r=new t(...s);return e&&e!==this?e.addSymbol(r):this.addSymbol(r),r}async addNewNamespaceFromPath(t,e,s="."){const r=e.split(s);let i=0,a=void 0===t?this:t;for(;i<r.length-1;){let t=await a.resolve(r[i],!0);void 0===t&&(t=this.addNewSymbolOfType(Es,a,r[i])),a=t,++i}return this.addNewSymbolOfType(Es,a,r[r.length-1])}addNewNamespaceFromPathSync(t,e,s="."){const r=e.split(s);let i=0,a=void 0===t?this:t;for(;i<r.length-1;){let t=a.resolveSync(r[i],!0);void 0===t&&(t=this.addNewSymbolOfType(Es,a,r[i])),a=t,++i}return this.addNewSymbolOfType(Es,a,r[r.length-1])}async getAllSymbols(t,e=!1){const s=await super.getAllSymbols(t,e);if(!e){(await Promise.all([...this.dependencies].map((s=>s.getAllSymbols(t,e))))).forEach((t=>{s.push(...t)}))}return s}getAllSymbolsSync(t,e=!1){const s=super.getAllSymbolsSync(t,e);return e||this.dependencies.forEach((r=>{s.push(...r.getAllSymbolsSync(t,e))})),s}async symbolWithContext(t){const e=es((s=>{if(s.context===t)return s;if(s instanceof is)for(const t of s.children){const s=e(t);if(s)return s}}),"findRecursive");let s=await this.getAllSymbols(ss);for(const r of s){const t=e(r);if(t)return t}for(const r of this.dependencies){s=await r.getAllSymbols(ss);for(const t of s){const s=e(t);if(s)return s}}}symbolWithContextSync(t){const e=es((s=>{if(s.context===t)return s;if(s instanceof is)for(const t of s.children){const s=e(t);if(s)return s}}),"findRecursive");let s=this.getAllSymbolsSync(ss);for(const r of s){const t=e(r);if(t)return t}for(const r of this.dependencies){s=r.getAllSymbolsSync(ss);for(const t of s){const s=e(t);if(s)return s}}}async resolve(t,e=!1){let s=await super.resolve(t,e);if(!s&&!e)for(const r of this.dependencies)if(s=await r.resolve(t,!1),s)return s;return s}resolveSync(t,e=!1){let s=super.resolveSync(t,e);if(!s&&!e)for(const r of this.dependencies)if(s=r.resolveSync(t,!1),s)return s;return s}},As=Object.defineProperty,Ss=(t,e)=>As(t,"name",{value:e,configurable:!0}),ds=/[\w]$/,Ls=/\r\n|\n|\r/g;function Cs(t,e){let s=t.column,r=t.column+(t.text?.length||0),i=t.line;return{startColumn:s,startLine:i,endColumn:r,endLine:t.type===e&&t.text?i+(t.text.match(Ls)?.length||0):i}}function Ns(t,e,s,r){let i=e.column-1;for(let a=0;a<t.size;a++){let n=t.get(a),{startColumn:c,startLine:h,endColumn:o,endLine:E}=Cs(n,s);if(E>e.line||h===e.line&&o>i)return r?a:a>0&&h===e.line&&c===i&&ds.test(t.get(a-1).text||"")?a-1:t.get(a).type===s?a+1:a}}function Is(t,e){let s=t.split(Ls),r=t.match(Ls),i="";r&&(i=r[0]);let a=0;return s.reduce(((t,s,r)=>(e.line-1===r&&(a=t.length?t.length+e.column:e.column-1),0===r?s:t+i+s)),""),a}function Os(t,e){return t===e.startTokenIndex}function ps(t,e){let s=t.slice(0,e-1),r=t.slice(e-1),i=s.lastIndexOf(";"),a=r.indexOf(";"),n=i>-1?i+1:0,c=a>-1?a+s.length:t.length;return{statement:t.slice(n,c),cursorIndex:e-n}}Ss(Cs,"getTokenPosition"),Ss(Ns,"findCursorTokenIndex"),Ss(Is,"getCursorIndex"),Ss(Os,"isStartingToWriteRule"),Ss(ps,"getCurrentStatement");var gs="(\\s|\r\n|\n|\r)+",ms=new RegExp(`^(${gs})?explain${gs}$`),xs=new RegExp(`^(${gs})?\\S+${gs}`);function Us(t,e){let s=Is(t,e),r=ps(t,s),i=r.statement.slice(0,r.cursorIndex).toLowerCase();return!(0!==s&&i.match(xs)&&!i.match(ms))}function fs(t,e,s){let r=new t(_e.fromString(s)),i=new e(new Le(r));return i.removeErrorListeners(),i}function Ps(t,e){return new t(_e.fromString(e))}Ss(Us,"shouldSuggestTemplates"),Ss(fs,"createParser"),Ss(Ps,"createLexer");var ks,Ms=class{static{Ss(this,"SqlErrorListener")}constructor(t){this.errors=[],this.whitespaceToken=t}syntaxError(t,e,s,r,i){if(e){let t=Cs(e,this.whitespaceToken);this.errors.push({message:i,...t})}else this.errors.push({message:i,startLine:s,startColumn:r,endLine:s,endColumn:r})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},ys=((ks=ys||{}).Autocomplete="autocomplete",ks.Tokens="tokens",ks);function Ds(t,e,s,r,i,a,n,c){let h=fs(e,s,t),{tokenStream:o}=h,E=new Ms(r);h.removeErrorListeners(),h.addErrorListener(E),c(h);let l=bs(h,o,n);return l.length?{statementPositions:l,strategy:"autocomplete"}:{statementPositions:vs(o,i,a),strategy:"tokens"}}function vs(t,e,s){let r=0,i=!1,a=t.size-2,n=[];for(let c=0;c<=a;c++){let h=t.get(c),o=h.type===s,E=e.includes(h.type);if(i||!E)if(i||(i=!0,r=h.start),o&&r===h.start)i=!1;else{if(o||c===a){let t=h.text?.length||0,e={startIndex:r,endIndex:h.start+t};n.push(e)}o&&(i=!1)}}return n}function bs(t,e,s){let r=new _s(t);r.preferredRules=new Set([s]);let i=e.get(e.size-2),a=[];for(;i?.tokenIndex>0;){let t,{rules:n}=r.collectCandidates(i.tokenIndex);for(let[r,{startTokenIndex:i}]of n)if(r===s){t=e.get(i);break}if(!t)break;t.tokenIndex>i.tokenIndex?i=e.get(i.tokenIndex-1):(a.push({startIndex:t.start,endIndex:i.start+(i.text?.length||0)}),i=e.get(t.tokenIndex-1))}return a.reverse(),a}Ss(Ds,"extractStatementPositionsFromQuery"),Ss(vs,"extractStatementsUsingTokens"),Ss(bs,"extractStatementsUsingAutocomplete");var Hs=-1;function ws(t,e,s,r){let i=Ps(t,r),a=new Ms(s);i.removeErrorListeners(),i.addErrorListener(a);let n=[],c=!1;do{let t=i.nextToken();if(null===t||t.type===Hs)c=!0;else{let s=e[t.type];s&&n.push({ruleName:s,startIndex:t.start,column:t.column,line:t.line,type:t.type,text:t.text})}}while(!c);return{tokens:n,errors:a.errors}}function Fs(t,e,s,r,i){let a=fs(t,e,i),n=new Ms(s);return a.removeErrorListeners(),a.addErrorListener(n),r(a),{errors:n.errors}}Ss(ws,"tokenize"),Ss(Fs,"parseQueryWithoutCursor");var Gs=/^'(.*)'$/;function Bs(t,e,s,r,i,a,n,c,h,o){let E=fs(t,e,c),{tokenStream:l}=E,u=new Ms(s);E.removeErrorListeners(),E.addErrorListener(u),a(E);let R=new _s(E);R.ignoredTokens=r,R.preferredRules=i;let _=Ns(l,h,s);if(void 0===_)throw new Error(`Could not find cursor token index for line: ${h.line}, column: ${h.column}`);let T=[],{tokens:A,rules:S}=R.collectCandidates(_,o);return A.forEach(((t,e)=>{let s=E.vocabulary.getLiteralName(e)?.replace(Gs,"$1")||E.vocabulary.getSymbolicName(e);if(!s)throw new Error(`Could not get name for token ${e}`);T.push({value:s})})),n({errors:u.errors,suggestKeywords:T},S,l,_,h,c)}function Ys(t){let e,s=t.split(Ls);for(let E=0;E<s.length;E++)if(s[E]?.includes("|")){e=E;break}if(void 0===e)throw new Error(`Cursor not provided for query ${t}`);let r=s[e];if(!r)throw new Error(`Line ${e} not found`);let[i,a,...n]=t.split("|"),[c,h,...o]=r.split("|");if(n.length>0||o.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${t}`);if(void 0===i||void 0===a||void 0===c||void 0===h)throw new Error(`Cursor not provided for query ${t}`);return[i+a,{line:e+1,column:c.length+1}]}Ss(Bs,"parseQuery"),Ss(Ys,"separateQueryAndCursor");var Vs=class extends as{static{Ss(this,"TableSymbol")}constructor(t,e,s){super(t,s),this.name=t,this.alias=e}};function Ws(t=[]){let e=t.reduce(((t,e)=>{let s=t[e.name]??new Set;return e.alias&&s.add(e.alias),t[e.name]=s,t}),{});return Object.keys(e).reduce(((t,s)=>{let r=e[s];return r.size>0?r?.forEach((e=>{t.push({name:s,alias:e})})):t.push({name:s}),t}),[])}function Xs(t){return Ws(t.symbolTable.getNestedSymbolsOfTypeSync(Vs))}Ss(Ws,"getUniqueTableSuggestions"),Ss(Xs,"getTablesFromSymbolTable");var Ks=class extends as{static{Ss(this,"ColumnAliasSymbol")}constructor(t,e){super(t,e),this.name=t}};function Qs(t){return t.symbolTable.getNestedSymbolsOfTypeSync(Ks).map((({name:t})=>({name:t})))}function qs(t,e,s){let r=e;for(;r<t.size;){let e=t.get(r);if(e.type===s.CLOSING_BRACKET||e.type===s.SEMICOLON)return{cursorIndex:e.start,tokenIndex:r};if(e.type===s.OPENING_BRACKET)return;r++}let i=t.size-1;return{cursorIndex:t.get(i).start,tokenIndex:i}}function js(t,e,s){let r=t.get(t.size-1).start,i=e,a=!1;for(;i>=0&&i<t.size;){let r=t.get(i);if(r.type===s.OPENING_BRACKET||r.type===s.CLOSING_BRACKET||r.type===s.SEMICOLON){if(a)break;i=e,a=!0}if(r.type===s.FROM){let a=qs(t,e,s);if(!a)break;let n=Js(t,i,a.tokenIndex,s),c=n?{start:n,end:a.cursorIndex}:void 0,h=zs(t,s,a.tokenIndex,s.SELECT),o=h?{start:h.start,end:a.cursorIndex}:void 0;return{start:r.start,end:a.cursorIndex,type:"from",joinTableQueryPosition:c,selectTableQueryPosition:o}}a?i++:i--,-1===i&&(i=e,a=!0)}for(i=e;i>=0;){let e=t.get(i);if(e.type===s.SEMICOLON)return;if(e.type===s.ALTER&&!zs(t,s,i,s.ALTER))return{start:e.start,end:r,type:"alter"};if(e.type===s.INSERT||e.type===s.UPSERT)return{start:e.start,end:r,type:"insert"};if(e.type===s.UPDATE)return{start:e.start,end:r,type:"update"};i--}}function Js(t,e,s,r){let i=e;for(;i<s;){let e=t.get(i);if(e.type===r.JOIN)return e.stop+1;i++}}function zs(t,e,s,r){let i=s-1;for(;i>-1;){let s=t.get(i);if(s.type===e.SEMICOLON)return;if(s.type===r)return s;i--}}function Zs(t,e,s,r,i,a,n,c,h){let o=Ns(a,n,r.SPACE,!0);if(!o)throw new Error(`Could not find actualCursorTokenIndex at Ln ${n.line}, Col ${n.column}`);let E={},l=js(a,o,r);if(l){let r=i(fs(t,e,c.slice(l.start,l.end)),l.type);if(s.visit(r),h&&l.joinTableQueryPosition){let r=i(fs(t,e,c.slice(l.joinTableQueryPosition.start,l.joinTableQueryPosition.end)),"from");s.visit(r)}if(l.selectTableQueryPosition){let r=i(fs(t,e,c.slice(l.selectTableQueryPosition.start,l.selectTableQueryPosition.end)),"select");s.visit(r)}let a=Xs(s);a.length&&(E.tableContextSuggestion={tables:a});let n=Qs(s);n.length&&(E.suggestColumnAliases=n.map((({name:t})=>({name:t}))))}return E}Ss(Qs,"getColumnAliasesFromSymbolTable"),Ss(qs,"getClosingBracketIndex"),Ss(js,"getTableQueryPosition"),Ss(Js,"getJoinIndex"),Ss(zs,"getPreviousToken"),Ss(Zs,"getContextSuggestions");var $s=class t extends Zt{static{Ss(this,"YQLLexer")}static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","TQ","TU","TE","TR","TY","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new ue)}get grammarFileName(){return"YQL.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static{this._serializedATN=[4,0,332,3149,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,2928,8,348,1,349,1,349,1,349,1,349,3,349,2934,8,349,1,350,1,350,5,350,2938,8,350,10,350,12,350,2941,9,350,1,350,1,350,1,351,1,351,5,351,2947,8,351,10,351,12,351,2950,9,351,1,351,1,351,1,352,1,352,5,352,2956,8,352,10,352,12,352,2959,9,352,1,352,1,352,4,352,2963,8,352,11,352,12,352,2964,1,352,3,352,2968,8,352,1,353,1,353,1,353,3,353,2973,8,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,3,353,2983,8,353,3,353,2985,8,353,1,354,1,354,1,354,5,354,2990,8,354,10,354,12,354,2993,9,354,1,355,1,355,1,355,1,355,1,355,3,355,3e3,8,355,1,356,1,356,5,356,3004,8,356,10,356,12,356,3007,9,356,1,356,1,356,1,357,1,357,1,358,1,358,1,359,1,359,1,359,4,359,3018,8,359,11,359,12,359,3019,1,360,1,360,1,360,4,360,3025,8,360,11,360,12,360,3026,1,361,1,361,1,361,4,361,3032,8,361,11,361,12,361,3033,1,362,4,362,3037,8,362,11,362,12,362,3038,1,363,1,363,1,363,1,363,3,363,3045,8,363,1,364,1,364,1,364,3,364,3050,8,364,1,364,1,364,1,364,1,364,1,364,1,364,3,364,3058,8,364,1,365,1,365,1,365,3,365,3063,8,365,1,365,1,365,1,366,1,366,1,366,5,366,3070,8,366,10,366,12,366,3073,9,366,1,366,3,366,3076,8,366,1,366,1,366,1,366,3,366,3081,8,366,1,366,1,366,1,366,1,366,1,366,1,366,3,366,3089,8,366,3,366,3091,8,366,1,367,1,367,1,367,4,367,3096,8,367,11,367,12,367,3097,1,367,1,367,1,368,1,368,1,369,1,369,1,370,1,370,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,5,373,3116,8,373,10,373,12,373,3119,9,373,1,373,1,373,1,373,1,374,1,374,1,374,1,374,5,374,3128,8,374,10,374,12,374,3131,9,374,1,374,1,374,3,374,3135,8,374,1,374,3,374,3138,8,374,1,375,1,375,1,375,1,375,1,376,1,376,3,376,3146,8,376,1,376,1,376,2,2957,3117,0,377,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,0,139,40,141,41,143,42,145,43,147,44,149,45,151,46,153,47,155,48,157,49,159,50,161,51,163,52,165,53,167,54,169,55,171,56,173,57,175,58,177,59,179,60,181,61,183,62,185,63,187,64,189,65,191,66,193,67,195,68,197,69,199,70,201,71,203,72,205,73,207,74,209,75,211,76,213,77,215,78,217,79,219,80,221,81,223,82,225,83,227,84,229,85,231,86,233,87,235,88,237,89,239,90,241,91,243,92,245,93,247,94,249,95,251,96,253,97,255,98,257,99,259,100,261,101,263,102,265,103,267,104,269,105,271,106,273,107,275,108,277,109,279,110,281,111,283,112,285,113,287,114,289,115,291,116,293,117,295,118,297,119,299,120,301,121,303,122,305,123,307,124,309,125,311,126,313,127,315,128,317,129,319,130,321,131,323,132,325,133,327,134,329,135,331,136,333,137,335,138,337,139,339,140,341,141,343,142,345,143,347,144,349,145,351,146,353,147,355,148,357,149,359,150,361,151,363,152,365,153,367,154,369,155,371,156,373,157,375,158,377,159,379,160,381,161,383,162,385,163,387,164,389,165,391,166,393,167,395,168,397,169,399,170,401,171,403,172,405,173,407,174,409,175,411,176,413,177,415,178,417,179,419,180,421,181,423,182,425,183,427,184,429,185,431,186,433,187,435,188,437,189,439,190,441,191,443,192,445,193,447,194,449,195,451,196,453,197,455,198,457,199,459,200,461,201,463,202,465,203,467,204,469,205,471,206,473,207,475,208,477,209,479,210,481,211,483,212,485,213,487,214,489,215,491,216,493,217,495,218,497,219,499,220,501,221,503,222,505,223,507,224,509,225,511,226,513,227,515,228,517,229,519,230,521,231,523,232,525,233,527,234,529,235,531,236,533,237,535,238,537,239,539,240,541,241,543,242,545,243,547,244,549,245,551,246,553,247,555,248,557,249,559,250,561,251,563,252,565,253,567,254,569,255,571,256,573,257,575,258,577,259,579,260,581,261,583,262,585,263,587,264,589,265,591,266,593,267,595,268,597,269,599,270,601,271,603,272,605,273,607,274,609,275,611,276,613,277,615,278,617,279,619,280,621,281,623,282,625,283,627,284,629,285,631,286,633,287,635,288,637,289,639,290,641,291,643,292,645,293,647,294,649,295,651,296,653,297,655,298,657,299,659,300,661,301,663,302,665,303,667,304,669,305,671,306,673,307,675,308,677,309,679,310,681,311,683,312,685,313,687,314,689,315,691,316,693,317,695,318,697,0,699,0,701,0,703,0,705,0,707,319,709,320,711,0,713,321,715,0,717,0,719,0,721,0,723,0,725,0,727,322,729,323,731,0,733,324,735,325,737,326,739,327,741,328,743,329,745,330,747,0,749,0,751,331,753,332,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3155,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,713,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,0,733,1,0,0,0,0,735,1,0,0,0,0,737,1,0,0,0,0,739,1,0,0,0,0,741,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,751,1,0,0,0,0,753,1,0,0,0,1,755,1,0,0,0,3,761,1,0,0,0,5,763,1,0,0,0,7,766,1,0,0,0,9,769,1,0,0,0,11,772,1,0,0,0,13,774,1,0,0,0,15,777,1,0,0,0,17,779,1,0,0,0,19,782,1,0,0,0,21,785,1,0,0,0,23,789,1,0,0,0,25,791,1,0,0,0,27,793,1,0,0,0,29,796,1,0,0,0,31,799,1,0,0,0,33,802,1,0,0,0,35,804,1,0,0,0,37,806,1,0,0,0,39,808,1,0,0,0,41,810,1,0,0,0,43,812,1,0,0,0,45,814,1,0,0,0,47,816,1,0,0,0,49,818,1,0,0,0,51,820,1,0,0,0,53,822,1,0,0,0,55,824,1,0,0,0,57,826,1,0,0,0,59,828,1,0,0,0,61,830,1,0,0,0,63,833,1,0,0,0,65,835,1,0,0,0,67,837,1,0,0,0,69,839,1,0,0,0,71,841,1,0,0,0,73,844,1,0,0,0,75,847,1,0,0,0,77,849,1,0,0,0,79,851,1,0,0,0,81,853,1,0,0,0,83,855,1,0,0,0,85,857,1,0,0,0,87,859,1,0,0,0,89,861,1,0,0,0,91,863,1,0,0,0,93,865,1,0,0,0,95,867,1,0,0,0,97,869,1,0,0,0,99,871,1,0,0,0,101,873,1,0,0,0,103,875,1,0,0,0,105,877,1,0,0,0,107,879,1,0,0,0,109,881,1,0,0,0,111,883,1,0,0,0,113,885,1,0,0,0,115,887,1,0,0,0,117,889,1,0,0,0,119,891,1,0,0,0,121,893,1,0,0,0,123,895,1,0,0,0,125,897,1,0,0,0,127,899,1,0,0,0,129,901,1,0,0,0,131,903,1,0,0,0,133,905,1,0,0,0,135,907,1,0,0,0,137,909,1,0,0,0,139,911,1,0,0,0,141,917,1,0,0,0,143,924,1,0,0,0,145,928,1,0,0,0,147,934,1,0,0,0,149,938,1,0,0,0,151,944,1,0,0,0,153,952,1,0,0,0,155,956,1,0,0,0,157,961,1,0,0,0,159,965,1,0,0,0,161,971,1,0,0,0,163,974,1,0,0,0,165,978,1,0,0,0,167,985,1,0,0,0,169,996,1,0,0,0,171,1002,1,0,0,0,173,1005,1,0,0,0,175,1012,1,0,0,0,177,1023,1,0,0,0,179,1037,1,0,0,0,181,1045,1,0,0,0,183,1052,1,0,0,0,185,1063,1,0,0,0,187,1070,1,0,0,0,189,1076,1,0,0,0,191,1086,1,0,0,0,193,1094,1,0,0,0,195,1102,1,0,0,0,197,1105,1,0,0,0,199,1114,1,0,0,0,201,1122,1,0,0,0,203,1127,1,0,0,0,205,1132,1,0,0,0,207,1143,1,0,0,0,209,1149,1,0,0,0,211,1160,1,0,0,0,213,1168,1,0,0,0,215,1175,1,0,0,0,217,1183,1,0,0,0,219,1190,1,0,0,0,221,1198,1,0,0,0,223,1210,1,0,0,0,225,1219,1,0,0,0,227,1227,1,0,0,0,229,1238,1,0,0,0,231,1247,1,0,0,0,233,1253,1,0,0,0,235,1260,1,0,0,0,237,1266,1,0,0,0,239,1271,1,0,0,0,241,1279,1,0,0,0,243,1292,1,0,0,0,245,1305,1,0,0,0,247,1323,1,0,0,0,249,1328,1,0,0,0,251,1337,1,0,0,0,253,1345,1,0,0,0,255,1353,1,0,0,0,257,1361,1,0,0,0,259,1372,1,0,0,0,261,1381,1,0,0,0,263,1388,1,0,0,0,265,1395,1,0,0,0,267,1400,1,0,0,0,269,1409,1,0,0,0,271,1416,1,0,0,0,273,1421,1,0,0,0,275,1431,1,0,0,0,277,1439,1,0,0,0,279,1447,1,0,0,0,281,1456,1,0,0,0,283,1459,1,0,0,0,285,1464,1,0,0,0,287,1469,1,0,0,0,289,1474,1,0,0,0,291,1480,1,0,0,0,293,1493,1,0,0,0,295,1503,1,0,0,0,297,1507,1,0,0,0,299,1512,1,0,0,0,301,1518,1,0,0,0,303,1524,1,0,0,0,305,1531,1,0,0,0,307,1540,1,0,0,0,309,1547,1,0,0,0,311,1555,1,0,0,0,313,1565,1,0,0,0,315,1575,1,0,0,0,317,1582,1,0,0,0,319,1590,1,0,0,0,321,1597,1,0,0,0,323,1606,1,0,0,0,325,1611,1,0,0,0,327,1617,1,0,0,0,329,1624,1,0,0,0,331,1631,1,0,0,0,333,1637,1,0,0,0,335,1645,1,0,0,0,337,1650,1,0,0,0,339,1660,1,0,0,0,341,1664,1,0,0,0,343,1672,1,0,0,0,345,1677,1,0,0,0,347,1682,1,0,0,0,349,1691,1,0,0,0,351,1696,1,0,0,0,353,1703,1,0,0,0,355,1709,1,0,0,0,357,1715,1,0,0,0,359,1724,1,0,0,0,361,1731,1,0,0,0,363,1736,1,0,0,0,365,1743,1,0,0,0,367,1747,1,0,0,0,369,1750,1,0,0,0,371,1757,1,0,0,0,373,1763,1,0,0,0,375,1773,1,0,0,0,377,1780,1,0,0,0,379,1783,1,0,0,0,381,1795,1,0,0,0,383,1801,1,0,0,0,385,1809,1,0,0,0,387,1818,1,0,0,0,389,1826,1,0,0,0,391,1836,1,0,0,0,393,1842,1,0,0,0,395,1849,1,0,0,0,397,1857,1,0,0,0,399,1867,1,0,0,0,401,1872,1,0,0,0,403,1875,1,0,0,0,405,1882,1,0,0,0,407,1887,1,0,0,0,409,1899,1,0,0,0,411,1910,1,0,0,0,413,1921,1,0,0,0,415,1925,1,0,0,0,417,1930,1,0,0,0,419,1935,1,0,0,0,421,1942,1,0,0,0,423,1947,1,0,0,0,425,1953,1,0,0,0,427,1958,1,0,0,0,429,1964,1,0,0,0,431,1971,1,0,0,0,433,1977,1,0,0,0,435,1985,1,0,0,0,437,2001,1,0,0,0,439,2010,1,0,0,0,441,2023,1,0,0,0,443,2036,1,0,0,0,445,2043,1,0,0,0,447,2055,1,0,0,0,449,2063,1,0,0,0,451,2068,1,0,0,0,453,2071,1,0,0,0,455,2075,1,0,0,0,457,2083,1,0,0,0,459,2088,1,0,0,0,461,2094,1,0,0,0,463,2101,1,0,0,0,465,2104,1,0,0,0,467,2111,1,0,0,0,469,2116,1,0,0,0,471,2119,1,0,0,0,473,2123,1,0,0,0,475,2128,1,0,0,0,477,2135,1,0,0,0,479,2144,1,0,0,0,481,2147,1,0,0,0,483,2153,1,0,0,0,485,2160,1,0,0,0,487,2166,1,0,0,0,489,2171,1,0,0,0,491,2180,1,0,0,0,493,2190,1,0,0,0,495,2198,1,0,0,0,497,2207,1,0,0,0,499,2212,1,0,0,0,501,2220,1,0,0,0,503,2224,1,0,0,0,505,2232,1,0,0,0,507,2237,1,0,0,0,509,2242,1,0,0,0,511,2249,1,0,0,0,513,2259,1,0,0,0,515,2267,1,0,0,0,517,2275,1,0,0,0,519,2286,1,0,0,0,521,2294,1,0,0,0,523,2300,1,0,0,0,525,2306,1,0,0,0,527,2312,1,0,0,0,529,2319,1,0,0,0,531,2330,1,0,0,0,533,2337,1,0,0,0,535,2345,1,0,0,0,537,2353,1,0,0,0,539,2360,1,0,0,0,541,2367,1,0,0,0,543,2378,1,0,0,0,545,2386,1,0,0,0,547,2398,1,0,0,0,549,2404,1,0,0,0,551,2413,1,0,0,0,553,2421,1,0,0,0,555,2429,1,0,0,0,557,2438,1,0,0,0,559,2445,1,0,0,0,561,2452,1,0,0,0,563,2462,1,0,0,0,565,2469,1,0,0,0,567,2476,1,0,0,0,569,2482,1,0,0,0,571,2488,1,0,0,0,573,2497,1,0,0,0,575,2504,1,0,0,0,577,2508,1,0,0,0,579,2513,1,0,0,0,581,2520,1,0,0,0,583,2530,1,0,0,0,585,2537,1,0,0,0,587,2545,1,0,0,0,589,2550,1,0,0,0,591,2557,1,0,0,0,593,2562,1,0,0,0,595,2566,1,0,0,0,597,2571,1,0,0,0,599,2576,1,0,0,0,601,2581,1,0,0,0,603,2588,1,0,0,0,605,2595,1,0,0,0,607,2602,1,0,0,0,609,2611,1,0,0,0,611,2618,1,0,0,0,613,2626,1,0,0,0,615,2636,1,0,0,0,617,2641,1,0,0,0,619,2648,1,0,0,0,621,2654,1,0,0,0,623,2661,1,0,0,0,625,2673,1,0,0,0,627,2684,1,0,0,0,629,2691,1,0,0,0,631,2696,1,0,0,0,633,2706,1,0,0,0,635,2711,1,0,0,0,637,2716,1,0,0,0,639,2719,1,0,0,0,641,2725,1,0,0,0,643,2737,1,0,0,0,645,2745,1,0,0,0,647,2750,1,0,0,0,649,2756,1,0,0,0,651,2761,1,0,0,0,653,2771,1,0,0,0,655,2785,1,0,0,0,657,2791,1,0,0,0,659,2798,1,0,0,0,661,2806,1,0,0,0,663,2816,1,0,0,0,665,2823,1,0,0,0,667,2830,1,0,0,0,669,2834,1,0,0,0,671,2839,1,0,0,0,673,2845,1,0,0,0,675,2852,1,0,0,0,677,2859,1,0,0,0,679,2867,1,0,0,0,681,2872,1,0,0,0,683,2880,1,0,0,0,685,2885,1,0,0,0,687,2891,1,0,0,0,689,2898,1,0,0,0,691,2903,1,0,0,0,693,2911,1,0,0,0,695,2919,1,0,0,0,697,2927,1,0,0,0,699,2933,1,0,0,0,701,2935,1,0,0,0,703,2944,1,0,0,0,705,2962,1,0,0,0,707,2972,1,0,0,0,709,2986,1,0,0,0,711,2999,1,0,0,0,713,3001,1,0,0,0,715,3010,1,0,0,0,717,3012,1,0,0,0,719,3014,1,0,0,0,721,3021,1,0,0,0,723,3028,1,0,0,0,725,3036,1,0,0,0,727,3044,1,0,0,0,729,3046,1,0,0,0,731,3059,1,0,0,0,733,3080,1,0,0,0,735,3092,1,0,0,0,737,3101,1,0,0,0,739,3103,1,0,0,0,741,3105,1,0,0,0,743,3107,1,0,0,0,745,3109,1,0,0,0,747,3111,1,0,0,0,749,3123,1,0,0,0,751,3139,1,0,0,0,753,3145,1,0,0,0,755,756,3,119,59,0,756,757,3,127,63,0,757,758,3,95,47,0,758,759,3,121,60,0,759,760,3,135,67,0,760,2,1,0,0,0,761,762,5,61,0,0,762,4,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,6,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,8,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,10,1,0,0,0,772,773,5,60,0,0,773,12,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,14,1,0,0,0,777,778,5,62,0,0,778,16,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,18,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,20,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,22,1,0,0,0,789,790,5,38,0,0,790,24,1,0,0,0,791,792,5,124,0,0,792,26,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,28,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,30,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,32,1,0,0,0,802,803,5,43,0,0,803,34,1,0,0,0,804,805,5,45,0,0,805,36,1,0,0,0,806,807,5,126,0,0,807,38,1,0,0,0,808,809,5,42,0,0,809,40,1,0,0,0,810,811,5,47,0,0,811,42,1,0,0,0,812,813,5,37,0,0,813,44,1,0,0,0,814,815,5,59,0,0,815,46,1,0,0,0,816,817,5,46,0,0,817,48,1,0,0,0,818,819,5,44,0,0,819,50,1,0,0,0,820,821,5,40,0,0,821,52,1,0,0,0,822,823,5,41,0,0,823,54,1,0,0,0,824,825,5,63,0,0,825,56,1,0,0,0,826,827,5,58,0,0,827,58,1,0,0,0,828,829,5,64,0,0,829,60,1,0,0,0,830,831,5,64,0,0,831,832,5,64,0,0,832,62,1,0,0,0,833,834,5,36,0,0,834,64,1,0,0,0,835,836,5,123,0,0,836,66,1,0,0,0,837,838,5,125,0,0,838,68,1,0,0,0,839,840,5,94,0,0,840,70,1,0,0,0,841,842,5,58,0,0,842,843,5,58,0,0,843,72,1,0,0,0,844,845,5,45,0,0,845,846,5,62,0,0,846,74,1,0,0,0,847,848,5,93,0,0,848,76,1,0,0,0,849,850,5,91,0,0,850,78,1,0,0,0,851,852,5,92,0,0,852,80,1,0,0,0,853,854,5,34,0,0,854,82,1,0,0,0,855,856,5,39,0,0,856,84,1,0,0,0,857,858,5,96,0,0,858,86,1,0,0,0,859,860,7,0,0,0,860,88,1,0,0,0,861,862,7,1,0,0,862,90,1,0,0,0,863,864,7,2,0,0,864,92,1,0,0,0,865,866,7,3,0,0,866,94,1,0,0,0,867,868,7,4,0,0,868,96,1,0,0,0,869,870,7,5,0,0,870,98,1,0,0,0,871,872,7,6,0,0,872,100,1,0,0,0,873,874,7,7,0,0,874,102,1,0,0,0,875,876,7,8,0,0,876,104,1,0,0,0,877,878,7,9,0,0,878,106,1,0,0,0,879,880,7,10,0,0,880,108,1,0,0,0,881,882,7,11,0,0,882,110,1,0,0,0,883,884,7,12,0,0,884,112,1,0,0,0,885,886,7,13,0,0,886,114,1,0,0,0,887,888,7,14,0,0,888,116,1,0,0,0,889,890,7,15,0,0,890,118,1,0,0,0,891,892,7,16,0,0,892,120,1,0,0,0,893,894,7,17,0,0,894,122,1,0,0,0,895,896,7,18,0,0,896,124,1,0,0,0,897,898,7,19,0,0,898,126,1,0,0,0,899,900,7,20,0,0,900,128,1,0,0,0,901,902,7,21,0,0,902,130,1,0,0,0,903,904,7,22,0,0,904,132,1,0,0,0,905,906,7,23,0,0,906,134,1,0,0,0,907,908,7,24,0,0,908,136,1,0,0,0,909,910,7,25,0,0,910,138,1,0,0,0,911,912,3,87,43,0,912,913,3,89,44,0,913,914,3,115,57,0,914,915,3,121,60,0,915,916,3,125,62,0,916,140,1,0,0,0,917,918,3,87,43,0,918,919,3,91,45,0,919,920,3,125,62,0,920,921,3,103,51,0,921,922,3,115,57,0,922,923,3,113,56,0,923,142,1,0,0,0,924,925,3,87,43,0,925,926,3,93,46,0,926,927,3,93,46,0,927,144,1,0,0,0,928,929,3,87,43,0,929,930,3,97,48,0,930,931,3,125,62,0,931,932,3,95,47,0,932,933,3,121,60,0,933,146,1,0,0,0,934,935,3,87,43,0,935,936,3,109,54,0,936,937,3,109,54,0,937,148,1,0,0,0,938,939,3,87,43,0,939,940,3,109,54,0,940,941,3,125,62,0,941,942,3,95,47,0,942,943,3,121,60,0,943,150,1,0,0,0,944,945,3,87,43,0,945,946,3,113,56,0,946,947,3,87,43,0,947,948,3,109,54,0,948,949,3,135,67,0,949,950,3,137,68,0,950,951,3,95,47,0,951,152,1,0,0,0,952,953,3,87,43,0,953,954,3,113,56,0,954,955,3,93,46,0,955,154,1,0,0,0,956,957,3,87,43,0,957,958,3,113,56,0,958,959,3,123,61,0,959,960,3,103,51,0,960,156,1,0,0,0,961,962,3,87,43,0,962,963,3,113,56,0,963,964,3,135,67,0,964,158,1,0,0,0,965,966,3,87,43,0,966,967,3,121,60,0,967,968,3,121,60,0,968,969,3,87,43,0,969,970,3,135,67,0,970,160,1,0,0,0,971,972,3,87,43,0,972,973,3,123,61,0,973,162,1,0,0,0,974,975,3,87,43,0,975,976,3,123,61,0,976,977,3,91,45,0,977,164,1,0,0,0,978,979,3,87,43,0,979,980,3,123,61,0,980,981,3,123,61,0,981,982,3,127,63,0,982,983,3,111,55,0,983,984,3,95,47,0,984,166,1,0,0,0,985,986,3,87,43,0,986,987,3,123,61,0,987,988,3,135,67,0,988,989,3,111,55,0,989,990,3,111,55,0,990,991,3,95,47,0,991,992,3,125,62,0,992,993,3,121,60,0,993,994,3,103,51,0,994,995,3,91,45,0,995,168,1,0,0,0,996,997,3,87,43,0,997,998,3,123,61,0,998,999,3,135,67,0,999,1e3,3,113,56,0,1e3,1001,3,91,45,0,1001,170,1,0,0,0,1002,1003,3,87,43,0,1003,1004,3,125,62,0,1004,172,1,0,0,0,1005,1006,3,87,43,0,1006,1007,3,125,62,0,1007,1008,3,125,62,0,1008,1009,3,87,43,0,1009,1010,3,91,45,0,1010,1011,3,101,50,0,1011,174,1,0,0,0,1012,1013,3,87,43,0,1013,1014,3,125,62,0,1014,1015,3,125,62,0,1015,1016,3,121,60,0,1016,1017,3,103,51,0,1017,1018,3,89,44,0,1018,1019,3,127,63,0,1019,1020,3,125,62,0,1020,1021,3,95,47,0,1021,1022,3,123,61,0,1022,176,1,0,0,0,1023,1024,3,87,43,0,1024,1025,3,127,63,0,1025,1026,3,125,62,0,1026,1027,3,115,57,0,1027,1028,3,103,51,0,1028,1029,3,113,56,0,1029,1030,3,91,45,0,1030,1031,3,121,60,0,1031,1032,3,95,47,0,1032,1033,3,111,55,0,1033,1034,3,95,47,0,1034,1035,3,113,56,0,1035,1036,3,125,62,0,1036,178,1,0,0,0,1037,1038,3,87,43,0,1038,1039,3,127,63,0,1039,1040,3,125,62,0,1040,1041,3,115,57,0,1041,1042,3,111,55,0,1042,1043,3,87,43,0,1043,1044,3,117,58,0,1044,180,1,0,0,0,1045,1046,3,89,44,0,1046,1047,3,87,43,0,1047,1048,3,91,45,0,1048,1049,3,107,53,0,1049,1050,3,127,63,0,1050,1051,3,117,58,0,1051,182,1,0,0,0,1052,1053,3,91,45,0,1053,1054,3,115,57,0,1054,1055,3,109,54,0,1055,1056,3,109,54,0,1056,1057,3,95,47,0,1057,1058,3,91,45,0,1058,1059,3,125,62,0,1059,1060,3,103,51,0,1060,1061,3,115,57,0,1061,1062,3,113,56,0,1062,184,1,0,0,0,1063,1064,3,89,44,0,1064,1065,3,95,47,0,1065,1066,3,97,48,0,1066,1067,3,115,57,0,1067,1068,3,121,60,0,1068,1069,3,95,47,0,1069,186,1,0,0,0,1070,1071,3,89,44,0,1071,1072,3,95,47,0,1072,1073,3,99,49,0,1073,1074,3,103,51,0,1074,1075,3,113,56,0,1075,188,1,0,0,0,1076,1077,3,89,44,0,1077,1078,3,95,47,0,1078,1079,3,121,60,0,1079,1080,3,113,56,0,1080,1081,3,115,57,0,1081,1082,3,127,63,0,1082,1083,3,109,54,0,1083,1084,3,109,54,0,1084,1085,3,103,51,0,1085,190,1,0,0,0,1086,1087,3,89,44,0,1087,1088,3,95,47,0,1088,1089,3,125,62,0,1089,1090,3,131,65,0,1090,1091,3,95,47,0,1091,1092,3,95,47,0,1092,1093,3,113,56,0,1093,192,1,0,0,0,1094,1095,3,89,44,0,1095,1096,3,103,51,0,1096,1097,3,125,62,0,1097,1098,3,91,45,0,1098,1099,3,87,43,0,1099,1100,3,123,61,0,1100,1101,3,125,62,0,1101,194,1,0,0,0,1102,1103,3,89,44,0,1103,1104,3,135,67,0,1104,196,1,0,0,0,1105,1106,3,91,45,0,1106,1107,3,87,43,0,1107,1108,3,109,54,0,1108,1109,3,109,54,0,1109,1110,3,87,43,0,1110,1111,3,89,44,0,1111,1112,3,109,54,0,1112,1113,3,95,47,0,1113,198,1,0,0,0,1114,1115,3,91,45,0,1115,1116,3,87,43,0,1116,1117,3,123,61,0,1117,1118,3,91,45,0,1118,1119,3,87,43,0,1119,1120,3,93,46,0,1120,1121,3,95,47,0,1121,200,1,0,0,0,1122,1123,3,91,45,0,1123,1124,3,87,43,0,1124,1125,3,123,61,0,1125,1126,3,95,47,0,1126,202,1,0,0,0,1127,1128,3,91,45,0,1128,1129,3,87,43,0,1129,1130,3,123,61,0,1130,1131,3,125,62,0,1131,204,1,0,0,0,1132,1133,3,91,45,0,1133,1134,3,101,50,0,1134,1135,3,87,43,0,1135,1136,3,113,56,0,1136,1137,3,99,49,0,1137,1138,3,95,47,0,1138,1139,3,97,48,0,1139,1140,3,95,47,0,1140,1141,3,95,47,0,1141,1142,3,93,46,0,1142,206,1,0,0,0,1143,1144,3,91,45,0,1144,1145,3,101,50,0,1145,1146,3,95,47,0,1146,1147,3,91,45,0,1147,1148,3,107,53,0,1148,208,1,0,0,0,1149,1150,3,91,45,0,1150,1151,3,109,54,0,1151,1152,3,87,43,0,1152,1153,3,123,61,0,1153,1154,3,123,61,0,1154,1155,3,103,51,0,1155,1156,3,97,48,0,1156,1157,3,103,51,0,1157,1158,3,95,47,0,1158,1159,3,121,60,0,1159,210,1,0,0,0,1160,1161,3,91,45,0,1161,1162,3,115,57,0,1162,1163,3,109,54,0,1163,1164,3,109,54,0,1164,1165,3,87,43,0,1165,1166,3,125,62,0,1166,1167,3,95,47,0,1167,212,1,0,0,0,1168,1169,3,91,45,0,1169,1170,3,115,57,0,1170,1171,3,109,54,0,1171,1172,3,127,63,0,1172,1173,3,111,55,0,1173,1174,3,113,56,0,1174,214,1,0,0,0,1175,1176,3,91,45,0,1176,1177,3,115,57,0,1177,1178,3,109,54,0,1178,1179,3,127,63,0,1179,1180,3,111,55,0,1180,1181,3,113,56,0,1181,1182,3,123,61,0,1182,216,1,0,0,0,1183,1184,3,91,45,0,1184,1185,3,115,57,0,1185,1186,3,111,55,0,1186,1187,3,111,55,0,1187,1188,3,103,51,0,1188,1189,3,125,62,0,1189,218,1,0,0,0,1190,1191,3,91,45,0,1191,1192,3,115,57,0,1192,1193,3,111,55,0,1193,1194,3,117,58,0,1194,1195,3,87,43,0,1195,1196,3,91,45,0,1196,1197,3,125,62,0,1197,220,1,0,0,0,1198,1199,3,91,45,0,1199,1200,3,115,57,0,1200,1201,3,113,56,0,1201,1202,3,93,46,0,1202,1203,3,103,51,0,1203,1204,3,125,62,0,1204,1205,3,103,51,0,1205,1206,3,115,57,0,1206,1207,3,113,56,0,1207,1208,3,87,43,0,1208,1209,3,109,54,0,1209,222,1,0,0,0,1210,1211,3,91,45,0,1211,1212,3,115,57,0,1212,1213,3,113,56,0,1213,1214,3,97,48,0,1214,1215,3,109,54,0,1215,1216,3,103,51,0,1216,1217,3,91,45,0,1217,1218,3,125,62,0,1218,224,1,0,0,0,1219,1220,3,91,45,0,1220,1221,3,115,57,0,1221,1222,3,113,56,0,1222,1223,3,113,56,0,1223,1224,3,95,47,0,1224,1225,3,91,45,0,1225,1226,3,125,62,0,1226,226,1,0,0,0,1227,1228,3,91,45,0,1228,1229,3,115,57,0,1229,1230,3,113,56,0,1230,1231,3,123,61,0,1231,1232,3,125,62,0,1232,1233,3,121,60,0,1233,1234,3,87,43,0,1234,1235,3,103,51,0,1235,1236,3,113,56,0,1236,1237,3,125,62,0,1237,228,1,0,0,0,1238,1239,3,91,45,0,1239,1240,3,115,57,0,1240,1241,3,113,56,0,1241,1242,3,123,61,0,1242,1243,3,127,63,0,1243,1244,3,111,55,0,1244,1245,3,95,47,0,1245,1246,3,121,60,0,1246,230,1,0,0,0,1247,1248,3,91,45,0,1248,1249,3,115,57,0,1249,1250,3,129,64,0,1250,1251,3,95,47,0,1251,1252,3,121,60,0,1252,232,1,0,0,0,1253,1254,3,91,45,0,1254,1255,3,121,60,0,1255,1256,3,95,47,0,1256,1257,3,87,43,0,1257,1258,3,125,62,0,1258,1259,3,95,47,0,1259,234,1,0,0,0,1260,1261,3,91,45,0,1261,1262,3,121,60,0,1262,1263,3,115,57,0,1263,1264,3,123,61,0,1264,1265,3,123,61,0,1265,236,1,0,0,0,1266,1267,3,91,45,0,1267,1268,3,127,63,0,1268,1269,3,89,44,0,1269,1270,3,95,47,0,1270,238,1,0,0,0,1271,1272,3,91,45,0,1272,1273,3,127,63,0,1273,1274,3,121,60,0,1274,1275,3,121,60,0,1275,1276,3,95,47,0,1276,1277,3,113,56,0,1277,1278,3,125,62,0,1278,240,1,0,0,0,1279,1280,3,91,45,0,1280,1281,3,127,63,0,1281,1282,3,121,60,0,1282,1283,3,121,60,0,1283,1284,3,95,47,0,1284,1285,3,113,56,0,1285,1286,3,125,62,0,1286,1287,5,95,0,0,1287,1288,3,93,46,0,1288,1289,3,87,43,0,1289,1290,3,125,62,0,1290,1291,3,95,47,0,1291,242,1,0,0,0,1292,1293,3,91,45,0,1293,1294,3,127,63,0,1294,1295,3,121,60,0,1295,1296,3,121,60,0,1296,1297,3,95,47,0,1297,1298,3,113,56,0,1298,1299,3,125,62,0,1299,1300,5,95,0,0,1300,1301,3,125,62,0,1301,1302,3,103,51,0,1302,1303,3,111,55,0,1303,1304,3,95,47,0,1304,244,1,0,0,0,1305,1306,3,91,45,0,1306,1307,3,127,63,0,1307,1308,3,121,60,0,1308,1309,3,121,60,0,1309,1310,3,95,47,0,1310,1311,3,113,56,0,1311,1312,3,125,62,0,1312,1313,5,95,0,0,1313,1314,3,125,62,0,1314,1315,3,103,51,0,1315,1316,3,111,55,0,1316,1317,3,95,47,0,1317,1318,3,123,61,0,1318,1319,3,125,62,0,1319,1320,3,87,43,0,1320,1321,3,111,55,0,1321,1322,3,117,58,0,1322,246,1,0,0,0,1323,1324,3,93,46,0,1324,1325,3,87,43,0,1325,1326,3,125,62,0,1326,1327,3,87,43,0,1327,248,1,0,0,0,1328,1329,3,93,46,0,1329,1330,3,87,43,0,1330,1331,3,125,62,0,1331,1332,3,87,43,0,1332,1333,3,89,44,0,1333,1334,3,87,43,0,1334,1335,3,123,61,0,1335,1336,3,95,47,0,1336,250,1,0,0,0,1337,1338,3,93,46,0,1338,1339,3,95,47,0,1339,1340,3,91,45,0,1340,1341,3,103,51,0,1341,1342,3,111,55,0,1342,1343,3,87,43,0,1343,1344,3,109,54,0,1344,252,1,0,0,0,1345,1346,3,93,46,0,1346,1347,3,95,47,0,1347,1348,3,91,45,0,1348,1349,3,109,54,0,1349,1350,3,87,43,0,1350,1351,3,121,60,0,1351,1352,3,95,47,0,1352,254,1,0,0,0,1353,1354,3,93,46,0,1354,1355,3,95,47,0,1355,1356,3,97,48,0,1356,1357,3,87,43,0,1357,1358,3,127,63,0,1358,1359,3,109,54,0,1359,1360,3,125,62,0,1360,256,1,0,0,0,1361,1362,3,93,46,0,1362,1363,3,95,47,0,1363,1364,3,97,48,0,1364,1365,3,95,47,0,1365,1366,3,121,60,0,1366,1367,3,121,60,0,1367,1368,3,87,43,0,1368,1369,3,89,44,0,1369,1370,3,109,54,0,1370,1371,3,95,47,0,1371,258,1,0,0,0,1372,1373,3,93,46,0,1373,1374,3,95,47,0,1374,1375,3,97,48,0,1375,1376,3,95,47,0,1376,1377,3,121,60,0,1377,1378,3,121,60,0,1378,1379,3,95,47,0,1379,1380,3,93,46,0,1380,260,1,0,0,0,1381,1382,3,93,46,0,1382,1383,3,95,47,0,1383,1384,3,97,48,0,1384,1385,3,103,51,0,1385,1386,3,113,56,0,1386,1387,3,95,47,0,1387,262,1,0,0,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,109,54,0,1391,1392,3,95,47,0,1392,1393,3,125,62,0,1393,1394,3,95,47,0,1394,264,1,0,0,0,1395,1396,3,93,46,0,1396,1397,3,95,47,0,1397,1398,3,123,61,0,1398,1399,3,91,45,0,1399,266,1,0,0,0,1400,1401,3,93,46,0,1401,1402,3,95,47,0,1402,1403,3,123,61,0,1403,1404,3,91,45,0,1404,1405,3,121,60,0,1405,1406,3,103,51,0,1406,1407,3,89,44,0,1407,1408,3,95,47,0,1408,268,1,0,0,0,1409,1410,3,93,46,0,1410,1411,3,95,47,0,1411,1412,3,125,62,0,1412,1413,3,87,43,0,1413,1414,3,91,45,0,1414,1415,3,101,50,0,1415,270,1,0,0,0,1416,1417,3,93,46,0,1417,1418,3,103,51,0,1418,1419,3,91,45,0,1419,1420,3,125,62,0,1420,272,1,0,0,0,1421,1422,3,93,46,0,1422,1423,3,103,51,0,1423,1424,3,121,60,0,1424,1425,3,95,47,0,1425,1426,3,91,45,0,1426,1427,3,125,62,0,1427,1428,3,115,57,0,1428,1429,3,121,60,0,1429,1430,3,135,67,0,1430,274,1,0,0,0,1431,1432,3,93,46,0,1432,1433,3,103,51,0,1433,1434,3,123,61,0,1434,1435,3,87,43,0,1435,1436,3,89,44,0,1436,1437,3,109,54,0,1437,1438,3,95,47,0,1438,276,1,0,0,0,1439,1440,3,93,46,0,1440,1441,3,103,51,0,1441,1442,3,123,61,0,1442,1443,3,91,45,0,1443,1444,3,87,43,0,1444,1445,3,121,60,0,1445,1446,3,93,46,0,1446,278,1,0,0,0,1447,1448,3,93,46,0,1448,1449,3,103,51,0,1449,1450,3,123,61,0,1450,1451,3,125,62,0,1451,1452,3,103,51,0,1452,1453,3,113,56,0,1453,1454,3,91,45,0,1454,1455,3,125,62,0,1455,280,1,0,0,0,1456,1457,3,93,46,0,1457,1458,3,115,57,0,1458,282,1,0,0,0,1459,1460,3,93,46,0,1460,1461,3,121,60,0,1461,1462,3,115,57,0,1462,1463,3,117,58,0,1463,284,1,0,0,0,1464,1465,3,95,47,0,1465,1466,3,87,43,0,1466,1467,3,91,45,0,1467,1468,3,101,50,0,1468,286,1,0,0,0,1469,1470,3,95,47,0,1470,1471,3,109,54,0,1471,1472,3,123,61,0,1472,1473,3,95,47,0,1473,288,1,0,0,0,1474,1475,3,95,47,0,1475,1476,3,111,55,0,1476,1477,3,117,58,0,1477,1478,3,125,62,0,1478,1479,3,135,67,0,1479,290,1,0,0,0,1480,1481,3,95,47,0,1481,1482,3,111,55,0,1482,1483,3,117,58,0,1483,1484,3,125,62,0,1484,1485,3,135,67,0,1485,1486,5,95,0,0,1486,1487,3,87,43,0,1487,1488,3,91,45,0,1488,1489,3,125,62,0,1489,1490,3,103,51,0,1490,1491,3,115,57,0,1491,1492,3,113,56,0,1492,292,1,0,0,0,1493,1494,3,95,47,0,1494,1495,3,113,56,0,1495,1496,3,91,45,0,1496,1497,3,121,60,0,1497,1498,3,135,67,0,1498,1499,3,117,58,0,1499,1500,3,125,62,0,1500,1501,3,95,47,0,1501,1502,3,93,46,0,1502,294,1,0,0,0,1503,1504,3,95,47,0,1504,1505,3,113,56,0,1505,1506,3,93,46,0,1506,296,1,0,0,0,1507,1508,3,95,47,0,1508,1509,3,113,56,0,1509,1510,3,127,63,0,1510,1511,3,111,55,0,1511,298,1,0,0,0,1512,1513,3,95,47,0,1513,1514,3,121,60,0,1514,1515,3,87,43,0,1515,1516,3,123,61,0,1516,1517,3,95,47,0,1517,300,1,0,0,0,1518,1519,3,95,47,0,1519,1520,3,121,60,0,1520,1521,3,121,60,0,1521,1522,3,115,57,0,1522,1523,3,121,60,0,1523,302,1,0,0,0,1524,1525,3,95,47,0,1525,1526,3,123,61,0,1526,1527,3,91,45,0,1527,1528,3,87,43,0,1528,1529,3,117,58,0,1529,1530,3,95,47,0,1530,304,1,0,0,0,1531,1532,3,95,47,0,1532,1533,3,129,64,0,1533,1534,3,87,43,0,1534,1535,3,109,54,0,1535,1536,3,127,63,0,1536,1537,3,87,43,0,1537,1538,3,125,62,0,1538,1539,3,95,47,0,1539,306,1,0,0,0,1540,1541,3,95,47,0,1541,1542,3,133,66,0,1542,1543,3,91,45,0,1543,1544,3,95,47,0,1544,1545,3,117,58,0,1545,1546,3,125,62,0,1546,308,1,0,0,0,1547,1548,3,95,47,0,1548,1549,3,133,66,0,1549,1550,3,91,45,0,1550,1551,3,109,54,0,1551,1552,3,127,63,0,1552,1553,3,93,46,0,1553,1554,3,95,47,0,1554,310,1,0,0,0,1555,1556,3,95,47,0,1556,1557,3,133,66,0,1557,1558,3,91,45,0,1558,1559,3,109,54,0,1559,1560,3,127,63,0,1560,1561,3,123,61,0,1561,1562,3,103,51,0,1562,1563,3,115,57,0,1563,1564,3,113,56,0,1564,312,1,0,0,0,1565,1566,3,95,47,0,1566,1567,3,133,66,0,1567,1568,3,91,45,0,1568,1569,3,109,54,0,1569,1570,3,127,63,0,1570,1571,3,123,61,0,1571,1572,3,103,51,0,1572,1573,3,129,64,0,1573,1574,3,95,47,0,1574,314,1,0,0,0,1575,1576,3,95,47,0,1576,1577,3,133,66,0,1577,1578,3,103,51,0,1578,1579,3,123,61,0,1579,1580,3,125,62,0,1580,1581,3,123,61,0,1581,316,1,0,0,0,1582,1583,3,95,47,0,1583,1584,3,133,66,0,1584,1585,3,117,58,0,1585,1586,3,109,54,0,1586,1587,3,87,43,0,1587,1588,3,103,51,0,1588,1589,3,113,56,0,1589,318,1,0,0,0,1590,1591,3,95,47,0,1591,1592,3,133,66,0,1592,1593,3,117,58,0,1593,1594,3,115,57,0,1594,1595,3,121,60,0,1595,1596,3,125,62,0,1596,320,1,0,0,0,1597,1598,3,95,47,0,1598,1599,3,133,66,0,1599,1600,3,125,62,0,1600,1601,3,95,47,0,1601,1602,3,121,60,0,1602,1603,3,113,56,0,1603,1604,3,87,43,0,1604,1605,3,109,54,0,1605,322,1,0,0,0,1606,1607,3,97,48,0,1607,1608,3,87,43,0,1608,1609,3,103,51,0,1609,1610,3,109,54,0,1610,324,1,0,0,0,1611,1612,3,97,48,0,1612,1613,3,87,43,0,1613,1614,3,109,54,0,1614,1615,3,123,61,0,1615,1616,3,95,47,0,1616,326,1,0,0,0,1617,1618,3,97,48,0,1618,1619,3,87,43,0,1619,1620,3,111,55,0,1620,1621,3,103,51,0,1621,1622,3,109,54,0,1622,1623,3,135,67,0,1623,328,1,0,0,0,1624,1625,3,97,48,0,1625,1626,3,103,51,0,1626,1627,3,109,54,0,1627,1628,3,125,62,0,1628,1629,3,95,47,0,1629,1630,3,121,60,0,1630,330,1,0,0,0,1631,1632,3,97,48,0,1632,1633,3,103,51,0,1633,1634,3,121,60,0,1634,1635,3,123,61,0,1635,1636,3,125,62,0,1636,332,1,0,0,0,1637,1638,3,97,48,0,1638,1639,3,109,54,0,1639,1640,3,87,43,0,1640,1641,3,125,62,0,1641,1642,3,125,62,0,1642,1643,3,95,47,0,1643,1644,3,113,56,0,1644,334,1,0,0,0,1645,1646,3,97,48,0,1646,1647,3,109,54,0,1647,1648,3,115,57,0,1648,1649,3,131,65,0,1649,336,1,0,0,0,1650,1651,3,97,48,0,1651,1652,3,115,57,0,1652,1653,3,109,54,0,1653,1654,3,109,54,0,1654,1655,3,115,57,0,1655,1656,3,131,65,0,1656,1657,3,103,51,0,1657,1658,3,113,56,0,1658,1659,3,99,49,0,1659,338,1,0,0,0,1660,1661,3,97,48,0,1661,1662,3,115,57,0,1662,1663,3,121,60,0,1663,340,1,0,0,0,1664,1665,3,97,48,0,1665,1666,3,115,57,0,1666,1667,3,121,60,0,1667,1668,3,95,47,0,1668,1669,3,103,51,0,1669,1670,3,99,49,0,1670,1671,3,113,56,0,1671,342,1,0,0,0,1672,1673,3,97,48,0,1673,1674,3,121,60,0,1674,1675,3,115,57,0,1675,1676,3,111,55,0,1676,344,1,0,0,0,1677,1678,3,97,48,0,1678,1679,3,127,63,0,1679,1680,3,109,54,0,1680,1681,3,109,54,0,1681,346,1,0,0,0,1682,1683,3,97,48,0,1683,1684,3,127,63,0,1684,1685,3,113,56,0,1685,1686,3,91,45,0,1686,1687,3,125,62,0,1687,1688,3,103,51,0,1688,1689,3,115,57,0,1689,1690,3,113,56,0,1690,348,1,0,0,0,1691,1692,3,99,49,0,1692,1693,3,109,54,0,1693,1694,3,115,57,0,1694,1695,3,89,44,0,1695,350,1,0,0,0,1696,1697,3,99,49,0,1697,1698,3,109,54,0,1698,1699,3,115,57,0,1699,1700,3,89,44,0,1700,1701,3,87,43,0,1701,1702,3,109,54,0,1702,352,1,0,0,0,1703,1704,3,99,49,0,1704,1705,3,121,60,0,1705,1706,3,87,43,0,1706,1707,3,113,56,0,1707,1708,3,125,62,0,1708,354,1,0,0,0,1709,1710,3,99,49,0,1710,1711,3,121,60,0,1711,1712,3,115,57,0,1712,1713,3,127,63,0,1713,1714,3,117,58,0,1714,356,1,0,0,0,1715,1716,3,99,49,0,1716,1717,3,121,60,0,1717,1718,3,115,57,0,1718,1719,3,127,63,0,1719,1720,3,117,58,0,1720,1721,3,103,51,0,1721,1722,3,113,56,0,1722,1723,3,99,49,0,1723,358,1,0,0,0,1724,1725,3,99,49,0,1725,1726,3,121,60,0,1726,1727,3,115,57,0,1727,1728,3,127,63,0,1728,1729,3,117,58,0,1729,1730,3,123,61,0,1730,360,1,0,0,0,1731,1732,3,101,50,0,1732,1733,3,87,43,0,1733,1734,3,123,61,0,1734,1735,3,101,50,0,1735,362,1,0,0,0,1736,1737,3,101,50,0,1737,1738,3,87,43,0,1738,1739,3,129,64,0,1739,1740,3,103,51,0,1740,1741,3,113,56,0,1741,1742,3,99,49,0,1742,364,1,0,0,0,1743,1744,3,101,50,0,1744,1745,3,115,57,0,1745,1746,3,117,58,0,1746,366,1,0,0,0,1747,1748,3,103,51,0,1748,1749,3,97,48,0,1749,368,1,0,0,0,1750,1751,3,103,51,0,1751,1752,3,99,49,0,1752,1753,3,113,56,0,1753,1754,3,115,57,0,1754,1755,3,121,60,0,1755,1756,3,95,47,0,1756,370,1,0,0,0,1757,1758,3,103,51,0,1758,1759,3,109,54,0,1759,1760,3,103,51,0,1760,1761,3,107,53,0,1761,1762,3,95,47,0,1762,372,1,0,0,0,1763,1764,3,103,51,0,1764,1765,3,111,55,0,1765,1766,3,111,55,0,1766,1767,3,95,47,0,1767,1768,3,93,46,0,1768,1769,3,103,51,0,1769,1770,3,87,43,0,1770,1771,3,125,62,0,1771,1772,3,95,47,0,1772,374,1,0,0,0,1773,1774,3,103,51,0,1774,1775,3,111,55,0,1775,1776,3,117,58,0,1776,1777,3,115,57,0,1777,1778,3,121,60,0,1778,1779,3,125,62,0,1779,376,1,0,0,0,1780,1781,3,103,51,0,1781,1782,3,113,56,0,1782,378,1,0,0,0,1783,1784,3,103,51,0,1784,1785,3,113,56,0,1785,1786,3,91,45,0,1786,1787,3,121,60,0,1787,1788,3,95,47,0,1788,1789,3,111,55,0,1789,1790,3,95,47,0,1790,1791,3,113,56,0,1791,1792,3,125,62,0,1792,1793,3,87,43,0,1793,1794,3,109,54,0,1794,380,1,0,0,0,1795,1796,3,103,51,0,1796,1797,3,113,56,0,1797,1798,3,93,46,0,1798,1799,3,95,47,0,1799,1800,3,133,66,0,1800,382,1,0,0,0,1801,1802,3,103,51,0,1802,1803,3,113,56,0,1803,1804,3,93,46,0,1804,1805,3,95,47,0,1805,1806,3,133,66,0,1806,1807,3,95,47,0,1807,1808,3,93,46,0,1808,384,1,0,0,0,1809,1810,3,103,51,0,1810,1811,3,113,56,0,1811,1812,3,101,50,0,1812,1813,3,95,47,0,1813,1814,3,121,60,0,1814,1815,3,103,51,0,1815,1816,3,125,62,0,1816,1817,3,123,61,0,1817,386,1,0,0,0,1818,1819,3,103,51,0,1819,1820,3,113,56,0,1820,1821,3,103,51,0,1821,1822,3,125,62,0,1822,1823,3,103,51,0,1823,1824,3,87,43,0,1824,1825,3,109,54,0,1825,388,1,0,0,0,1826,1827,3,103,51,0,1827,1828,3,113,56,0,1828,1829,3,103,51,0,1829,1830,3,125,62,0,1830,1831,3,103,51,0,1831,1832,3,87,43,0,1832,1833,3,109,54,0,1833,1834,3,109,54,0,1834,1835,3,135,67,0,1835,390,1,0,0,0,1836,1837,3,103,51,0,1837,1838,3,113,56,0,1838,1839,3,113,56,0,1839,1840,3,95,47,0,1840,1841,3,121,60,0,1841,392,1,0,0,0,1842,1843,3,103,51,0,1843,1844,3,113,56,0,1844,1845,3,123,61,0,1845,1846,3,95,47,0,1846,1847,3,121,60,0,1847,1848,3,125,62,0,1848,394,1,0,0,0,1849,1850,3,103,51,0,1850,1851,3,113,56,0,1851,1852,3,123,61,0,1852,1853,3,125,62,0,1853,1854,3,95,47,0,1854,1855,3,87,43,0,1855,1856,3,93,46,0,1856,396,1,0,0,0,1857,1858,3,103,51,0,1858,1859,3,113,56,0,1859,1860,3,125,62,0,1860,1861,3,95,47,0,1861,1862,3,121,60,0,1862,1863,3,123,61,0,1863,1864,3,95,47,0,1864,1865,3,91,45,0,1865,1866,3,125,62,0,1866,398,1,0,0,0,1867,1868,3,103,51,0,1868,1869,3,113,56,0,1869,1870,3,125,62,0,1870,1871,3,115,57,0,1871,400,1,0,0,0,1872,1873,3,103,51,0,1873,1874,3,123,61,0,1874,402,1,0,0,0,1875,1876,3,103,51,0,1876,1877,3,123,61,0,1877,1878,3,113,56,0,1878,1879,3,127,63,0,1879,1880,3,109,54,0,1880,1881,3,109,54,0,1881,404,1,0,0,0,1882,1883,3,105,52,0,1883,1884,3,115,57,0,1884,1885,3,103,51,0,1885,1886,3,113,56,0,1886,406,1,0,0,0,1887,1888,3,105,52,0,1888,1889,3,123,61,0,1889,1890,3,115,57,0,1890,1891,3,113,56,0,1891,1892,5,95,0,0,1892,1893,3,95,47,0,1893,1894,3,133,66,0,1894,1895,3,103,51,0,1895,1896,3,123,61,0,1896,1897,3,125,62,0,1897,1898,3,123,61,0,1898,408,1,0,0,0,1899,1900,3,105,52,0,1900,1901,3,123,61,0,1901,1902,3,115,57,0,1902,1903,3,113,56,0,1903,1904,5,95,0,0,1904,1905,3,119,59,0,1905,1906,3,127,63,0,1906,1907,3,95,47,0,1907,1908,3,121,60,0,1908,1909,3,135,67,0,1909,410,1,0,0,0,1910,1911,3,105,52,0,1911,1912,3,123,61,0,1912,1913,3,115,57,0,1913,1914,3,113,56,0,1914,1915,5,95,0,0,1915,1916,3,129,64,0,1916,1917,3,87,43,0,1917,1918,3,109,54,0,1918,1919,3,127,63,0,1919,1920,3,95,47,0,1920,412,1,0,0,0,1921,1922,3,107,53,0,1922,1923,3,95,47,0,1923,1924,3,135,67,0,1924,414,1,0,0,0,1925,1926,3,109,54,0,1926,1927,3,87,43,0,1927,1928,3,123,61,0,1928,1929,3,125,62,0,1929,416,1,0,0,0,1930,1931,3,109,54,0,1931,1932,3,95,47,0,1932,1933,3,97,48,0,1933,1934,3,125,62,0,1934,418,1,0,0,0,1935,1936,3,109,54,0,1936,1937,3,95,47,0,1937,1938,3,99,49,0,1938,1939,3,87,43,0,1939,1940,3,91,45,0,1940,1941,3,135,67,0,1941,420,1,0,0,0,1942,1943,3,109,54,0,1943,1944,3,103,51,0,1944,1945,3,107,53,0,1945,1946,3,95,47,0,1946,422,1,0,0,0,1947,1948,3,109,54,0,1948,1949,3,103,51,0,1949,1950,3,111,55,0,1950,1951,3,103,51,0,1951,1952,3,125,62,0,1952,424,1,0,0,0,1953,1954,3,109,54,0,1954,1955,3,103,51,0,1955,1956,3,123,61,0,1956,1957,3,125,62,0,1957,426,1,0,0,0,1958,1959,3,109,54,0,1959,1960,3,115,57,0,1960,1961,3,91,45,0,1961,1962,3,87,43,0,1962,1963,3,109,54,0,1963,428,1,0,0,0,1964,1965,3,111,55,0,1965,1966,3,87,43,0,1966,1967,3,113,56,0,1967,1968,3,87,43,0,1968,1969,3,99,49,0,1969,1970,3,95,47,0,1970,430,1,0,0,0,1971,1972,3,111,55,0,1972,1973,3,87,43,0,1973,1974,3,125,62,0,1974,1975,3,91,45,0,1975,1976,3,101,50,0,1976,432,1,0,0,0,1977,1978,3,111,55,0,1978,1979,3,87,43,0,1979,1980,3,125,62,0,1980,1981,3,91,45,0,1981,1982,3,101,50,0,1982,1983,3,95,47,0,1983,1984,3,123,61,0,1984,434,1,0,0,0,1985,1986,3,111,55,0,1986,1987,3,87,43,0,1987,1988,3,125,62,0,1988,1989,3,91,45,0,1989,1990,3,101,50,0,1990,1991,5,95,0,0,1991,1992,3,121,60,0,1992,1993,3,95,47,0,1993,1994,3,91,45,0,1994,1995,3,115,57,0,1995,1996,3,99,49,0,1996,1997,3,113,56,0,1997,1998,3,103,51,0,1998,1999,3,137,68,0,1999,2e3,3,95,47,0,2e3,436,1,0,0,0,2001,2002,3,111,55,0,2002,2003,3,95,47,0,2003,2004,3,87,43,0,2004,2005,3,123,61,0,2005,2006,3,127,63,0,2006,2007,3,121,60,0,2007,2008,3,95,47,0,2008,2009,3,123,61,0,2009,438,1,0,0,0,2010,2011,3,111,55,0,2011,2012,3,103,51,0,2012,2013,3,91,45,0,2013,2014,3,121,60,0,2014,2015,3,115,57,0,2015,2016,3,123,61,0,2016,2017,3,95,47,0,2017,2018,3,91,45,0,2018,2019,3,115,57,0,2019,2020,3,113,56,0,2020,2021,3,93,46,0,2021,2022,3,123,61,0,2022,440,1,0,0,0,2023,2024,3,111,55,0,2024,2025,3,103,51,0,2025,2026,3,109,54,0,2026,2027,3,109,54,0,2027,2028,3,103,51,0,2028,2029,3,123,61,0,2029,2030,3,95,47,0,2030,2031,3,91,45,0,2031,2032,3,115,57,0,2032,2033,3,113,56,0,2033,2034,3,93,46,0,2034,2035,3,123,61,0,2035,442,1,0,0,0,2036,2037,3,111,55,0,2037,2038,3,115,57,0,2038,2039,3,93,46,0,2039,2040,3,103,51,0,2040,2041,3,97,48,0,2041,2042,3,135,67,0,2042,444,1,0,0,0,2043,2044,3,113,56,0,2044,2045,3,87,43,0,2045,2046,3,113,56,0,2046,2047,3,115,57,0,2047,2048,3,123,61,0,2048,2049,3,95,47,0,2049,2050,3,91,45,0,2050,2051,3,115,57,0,2051,2052,3,113,56,0,2052,2053,3,93,46,0,2053,2054,3,123,61,0,2054,446,1,0,0,0,2055,2056,3,113,56,0,2056,2057,3,87,43,0,2057,2058,3,125,62,0,2058,2059,3,127,63,0,2059,2060,3,121,60,0,2060,2061,3,87,43,0,2061,2062,3,109,54,0,2062,448,1,0,0,0,2063,2064,3,113,56,0,2064,2065,3,95,47,0,2065,2066,3,133,66,0,2066,2067,3,125,62,0,2067,450,1,0,0,0,2068,2069,3,113,56,0,2069,2070,3,115,57,0,2070,452,1,0,0,0,2071,2072,3,113,56,0,2072,2073,3,115,57,0,2073,2074,3,125,62,0,2074,454,1,0,0,0,2075,2076,3,113,56,0,2076,2077,3,115,57,0,2077,2078,3,125,62,0,2078,2079,3,113,56,0,2079,2080,3,127,63,0,2080,2081,3,109,54,0,2081,2082,3,109,54,0,2082,456,1,0,0,0,2083,2084,3,113,56,0,2084,2085,3,127,63,0,2085,2086,3,109,54,0,2086,2087,3,109,54,0,2087,458,1,0,0,0,2088,2089,3,113,56,0,2089,2090,3,127,63,0,2090,2091,3,109,54,0,2091,2092,3,109,54,0,2092,2093,3,123,61,0,2093,460,1,0,0,0,2094,2095,3,115,57,0,2095,2096,3,89,44,0,2096,2097,3,105,52,0,2097,2098,3,95,47,0,2098,2099,3,91,45,0,2099,2100,3,125,62,0,2100,462,1,0,0,0,2101,2102,3,115,57,0,2102,2103,3,97,48,0,2103,464,1,0,0,0,2104,2105,3,115,57,0,2105,2106,3,97,48,0,2106,2107,3,97,48,0,2107,2108,3,123,61,0,2108,2109,3,95,47,0,2109,2110,3,125,62,0,2110,466,1,0,0,0,2111,2112,3,115,57,0,2112,2113,3,111,55,0,2113,2114,3,103,51,0,2114,2115,3,125,62,0,2115,468,1,0,0,0,2116,2117,3,115,57,0,2117,2118,3,113,56,0,2118,470,1,0,0,0,2119,2120,3,115,57,0,2120,2121,3,113,56,0,2121,2122,3,95,47,0,2122,472,1,0,0,0,2123,2124,3,115,57,0,2124,2125,3,113,56,0,2125,2126,3,109,54,0,2126,2127,3,135,67,0,2127,474,1,0,0,0,2128,2129,3,115,57,0,2129,2130,3,117,58,0,2130,2131,3,125,62,0,2131,2132,3,103,51,0,2132,2133,3,115,57,0,2133,2134,3,113,56,0,2134,476,1,0,0,0,2135,2136,3,115,57,0,2136,2137,3,117,58,0,2137,2138,3,125,62,0,2138,2139,3,103,51,0,2139,2140,3,115,57,0,2140,2141,3,113,56,0,2141,2142,3,87,43,0,2142,2143,3,109,54,0,2143,478,1,0,0,0,2144,2145,3,115,57,0,2145,2146,3,121,60,0,2146,480,1,0,0,0,2147,2148,3,115,57,0,2148,2149,3,121,60,0,2149,2150,3,93,46,0,2150,2151,3,95,47,0,2151,2152,3,121,60,0,2152,482,1,0,0,0,2153,2154,3,115,57,0,2154,2155,3,125,62,0,2155,2156,3,101,50,0,2156,2157,3,95,47,0,2157,2158,3,121,60,0,2158,2159,3,123,61,0,2159,484,1,0,0,0,2160,2161,3,115,57,0,2161,2162,3,127,63,0,2162,2163,3,125,62,0,2163,2164,3,95,47,0,2164,2165,3,121,60,0,2165,486,1,0,0,0,2166,2167,3,115,57,0,2167,2168,3,129,64,0,2168,2169,3,95,47,0,2169,2170,3,121,60,0,2170,488,1,0,0,0,2171,2172,3,117,58,0,2172,2173,3,87,43,0,2173,2174,3,121,60,0,2174,2175,3,87,43,0,2175,2176,3,109,54,0,2176,2177,3,109,54,0,2177,2178,3,95,47,0,2178,2179,3,109,54,0,2179,490,1,0,0,0,2180,2181,3,117,58,0,2181,2182,3,87,43,0,2182,2183,3,121,60,0,2183,2184,3,125,62,0,2184,2185,3,103,51,0,2185,2186,3,125,62,0,2186,2187,3,103,51,0,2187,2188,3,115,57,0,2188,2189,3,113,56,0,2189,492,1,0,0,0,2190,2191,3,117,58,0,2191,2192,3,87,43,0,2192,2193,3,123,61,0,2193,2194,3,123,61,0,2194,2195,3,103,51,0,2195,2196,3,113,56,0,2196,2197,3,99,49,0,2197,494,1,0,0,0,2198,2199,3,117,58,0,2199,2200,3,87,43,0,2200,2201,3,123,61,0,2201,2202,3,123,61,0,2202,2203,3,131,65,0,2203,2204,3,115,57,0,2204,2205,3,121,60,0,2205,2206,3,93,46,0,2206,496,1,0,0,0,2207,2208,3,117,58,0,2208,2209,3,87,43,0,2209,2210,3,123,61,0,2210,2211,3,125,62,0,2211,498,1,0,0,0,2212,2213,3,117,58,0,2213,2214,3,87,43,0,2214,2215,3,125,62,0,2215,2216,3,125,62,0,2216,2217,3,95,47,0,2217,2218,3,121,60,0,2218,2219,3,113,56,0,2219,500,1,0,0,0,2220,2221,3,117,58,0,2221,2222,3,95,47,0,2222,2223,3,121,60,0,2223,502,1,0,0,0,2224,2225,3,117,58,0,2225,2226,3,95,47,0,2226,2227,3,121,60,0,2227,2228,3,111,55,0,2228,2229,3,127,63,0,2229,2230,3,125,62,0,2230,2231,3,95,47,0,2231,504,1,0,0,0,2232,2233,3,117,58,0,2233,2234,3,109,54,0,2234,2235,3,87,43,0,2235,2236,3,113,56,0,2236,506,1,0,0,0,2237,2238,3,117,58,0,2238,2239,3,115,57,0,2239,2240,3,115,57,0,2240,2241,3,109,54,0,2241,508,1,0,0,0,2242,2243,3,117,58,0,2243,2244,3,121,60,0,2244,2245,3,87,43,0,2245,2246,3,99,49,0,2246,2247,3,111,55,0,2247,2248,3,87,43,0,2248,510,1,0,0,0,2249,2250,3,117,58,0,2250,2251,3,121,60,0,2251,2252,3,95,47,0,2252,2253,3,91,45,0,2253,2254,3,95,47,0,2254,2255,3,93,46,0,2255,2256,3,103,51,0,2256,2257,3,113,56,0,2257,2258,3,99,49,0,2258,512,1,0,0,0,2259,2260,3,117,58,0,2260,2261,3,121,60,0,2261,2262,3,95,47,0,2262,2263,3,123,61,0,2263,2264,3,115,57,0,2264,2265,3,121,60,0,2265,2266,3,125,62,0,2266,514,1,0,0,0,2267,2268,3,117,58,0,2268,2269,3,121,60,0,2269,2270,3,103,51,0,2270,2271,3,111,55,0,2271,2272,3,87,43,0,2272,2273,3,121,60,0,2273,2274,3,135,67,0,2274,516,1,0,0,0,2275,2276,3,117,58,0,2276,2277,3,121,60,0,2277,2278,3,103,51,0,2278,2279,3,129,64,0,2279,2280,3,103,51,0,2280,2281,3,109,54,0,2281,2282,3,95,47,0,2282,2283,3,99,49,0,2283,2284,3,95,47,0,2284,2285,3,123,61,0,2285,518,1,0,0,0,2286,2287,3,117,58,0,2287,2288,3,121,60,0,2288,2289,3,115,57,0,2289,2290,3,91,45,0,2290,2291,3,95,47,0,2291,2292,3,123,61,0,2292,2293,3,123,61,0,2293,520,1,0,0,0,2294,2295,3,119,59,0,2295,2296,3,127,63,0,2296,2297,3,95,47,0,2297,2298,3,127,63,0,2298,2299,3,95,47,0,2299,522,1,0,0,0,2300,2301,3,121,60,0,2301,2302,3,87,43,0,2302,2303,3,103,51,0,2303,2304,3,123,61,0,2304,2305,3,95,47,0,2305,524,1,0,0,0,2306,2307,3,121,60,0,2307,2308,3,87,43,0,2308,2309,3,113,56,0,2309,2310,3,99,49,0,2310,2311,3,95,47,0,2311,526,1,0,0,0,2312,2313,3,121,60,0,2313,2314,3,95,47,0,2314,2315,3,93,46,0,2315,2316,3,127,63,0,2316,2317,3,91,45,0,2317,2318,3,95,47,0,2318,528,1,0,0,0,2319,2320,3,121,60,0,2320,2321,3,95,47,0,2321,2322,3,97,48,0,2322,2323,3,95,47,0,2323,2324,3,121,60,0,2324,2325,3,95,47,0,2325,2326,3,113,56,0,2326,2327,3,91,45,0,2327,2328,3,95,47,0,2328,2329,3,123,61,0,2329,530,1,0,0,0,2330,2331,3,121,60,0,2331,2332,3,95,47,0,2332,2333,3,99,49,0,2333,2334,3,95,47,0,2334,2335,3,133,66,0,2335,2336,3,117,58,0,2336,532,1,0,0,0,2337,2338,3,121,60,0,2338,2339,3,95,47,0,2339,2340,3,103,51,0,2340,2341,3,113,56,0,2341,2342,3,93,46,0,2342,2343,3,95,47,0,2343,2344,3,133,66,0,2344,534,1,0,0,0,2345,2346,3,121,60,0,2346,2347,3,95,47,0,2347,2348,3,109,54,0,2348,2349,3,95,47,0,2349,2350,3,87,43,0,2350,2351,3,123,61,0,2351,2352,3,95,47,0,2352,536,1,0,0,0,2353,2354,3,121,60,0,2354,2355,3,95,47,0,2355,2356,3,111,55,0,2356,2357,3,115,57,0,2357,2358,3,129,64,0,2358,2359,3,95,47,0,2359,538,1,0,0,0,2360,2361,3,121,60,0,2361,2362,3,95,47,0,2362,2363,3,113,56,0,2363,2364,3,87,43,0,2364,2365,3,111,55,0,2365,2366,3,95,47,0,2366,540,1,0,0,0,2367,2368,3,121,60,0,2368,2369,3,95,47,0,2369,2370,3,117,58,0,2370,2371,3,95,47,0,2371,2372,3,87,43,0,2372,2373,3,125,62,0,2373,2374,3,87,43,0,2374,2375,3,89,44,0,2375,2376,3,109,54,0,2376,2377,3,95,47,0,2377,542,1,0,0,0,2378,2379,3,121,60,0,2379,2380,3,95,47,0,2380,2381,3,117,58,0,2381,2382,3,109,54,0,2382,2383,3,87,43,0,2383,2384,3,91,45,0,2384,2385,3,95,47,0,2385,544,1,0,0,0,2386,2387,3,121,60,0,2387,2388,3,95,47,0,2388,2389,3,117,58,0,2389,2390,3,109,54,0,2390,2391,3,103,51,0,2391,2392,3,91,45,0,2392,2393,3,87,43,0,2393,2394,3,125,62,0,2394,2395,3,103,51,0,2395,2396,3,115,57,0,2396,2397,3,113,56,0,2397,546,1,0,0,0,2398,2399,3,121,60,0,2399,2400,3,95,47,0,2400,2401,3,123,61,0,2401,2402,3,95,47,0,2402,2403,3,125,62,0,2403,548,1,0,0,0,2404,2405,3,121,60,0,2405,2406,3,95,47,0,2406,2407,3,123,61,0,2407,2408,3,115,57,0,2408,2409,3,127,63,0,2409,2410,3,121,60,0,2410,2411,3,91,45,0,2411,2412,3,95,47,0,2412,550,1,0,0,0,2413,2414,3,121,60,0,2414,2415,3,95,47,0,2415,2416,3,123,61,0,2416,2417,3,117,58,0,2417,2418,3,95,47,0,2418,2419,3,91,45,0,2419,2420,3,125,62,0,2420,552,1,0,0,0,2421,2422,3,121,60,0,2422,2423,3,95,47,0,2423,2424,3,123,61,0,2424,2425,3,125,62,0,2425,2426,3,115,57,0,2426,2427,3,121,60,0,2427,2428,3,95,47,0,2428,554,1,0,0,0,2429,2430,3,121,60,0,2430,2431,3,95,47,0,2431,2432,3,123,61,0,2432,2433,3,125,62,0,2433,2434,3,121,60,0,2434,2435,3,103,51,0,2435,2436,3,91,45,0,2436,2437,3,125,62,0,2437,556,1,0,0,0,2438,2439,3,121,60,0,2439,2440,3,95,47,0,2440,2441,3,123,61,0,2441,2442,3,127,63,0,2442,2443,3,109,54,0,2443,2444,3,125,62,0,2444,558,1,0,0,0,2445,2446,3,121,60,0,2446,2447,3,95,47,0,2447,2448,3,125,62,0,2448,2449,3,127,63,0,2449,2450,3,121,60,0,2450,2451,3,113,56,0,2451,560,1,0,0,0,2452,2453,3,121,60,0,2453,2454,3,95,47,0,2454,2455,3,125,62,0,2455,2456,3,127,63,0,2456,2457,3,121,60,0,2457,2458,3,113,56,0,2458,2459,3,103,51,0,2459,2460,3,113,56,0,2460,2461,3,99,49,0,2461,562,1,0,0,0,2462,2463,3,121,60,0,2463,2464,3,95,47,0,2464,2465,3,129,64,0,2465,2466,3,95,47,0,2466,2467,3,121,60,0,2467,2468,3,125,62,0,2468,564,1,0,0,0,2469,2470,3,121,60,0,2470,2471,3,95,47,0,2471,2472,3,129,64,0,2472,2473,3,115,57,0,2473,2474,3,107,53,0,2474,2475,3,95,47,0,2475,566,1,0,0,0,2476,2477,3,121,60,0,2477,2478,3,103,51,0,2478,2479,3,99,49,0,2479,2480,3,101,50,0,2480,2481,3,125,62,0,2481,568,1,0,0,0,2482,2483,3,121,60,0,2483,2484,3,109,54,0,2484,2485,3,103,51,0,2485,2486,3,107,53,0,2486,2487,3,95,47,0,2487,570,1,0,0,0,2488,2489,3,121,60,0,2489,2490,3,115,57,0,2490,2491,3,109,54,0,2491,2492,3,109,54,0,2492,2493,3,89,44,0,2493,2494,3,87,43,0,2494,2495,3,91,45,0,2495,2496,3,107,53,0,2496,572,1,0,0,0,2497,2498,3,121,60,0,2498,2499,3,115,57,0,2499,2500,3,109,54,0,2500,2501,3,109,54,0,2501,2502,3,127,63,0,2502,2503,3,117,58,0,2503,574,1,0,0,0,2504,2505,3,121,60,0,2505,2506,3,115,57,0,2506,2507,3,131,65,0,2507,576,1,0,0,0,2508,2509,3,121,60,0,2509,2510,3,115,57,0,2510,2511,3,131,65,0,2511,2512,3,123,61,0,2512,578,1,0,0,0,2513,2514,3,123,61,0,2514,2515,3,87,43,0,2515,2516,3,111,55,0,2516,2517,3,117,58,0,2517,2518,3,109,54,0,2518,2519,3,95,47,0,2519,580,1,0,0,0,2520,2521,3,123,61,0,2521,2522,3,87,43,0,2522,2523,3,129,64,0,2523,2524,3,95,47,0,2524,2525,3,117,58,0,2525,2526,3,115,57,0,2526,2527,3,103,51,0,2527,2528,3,113,56,0,2528,2529,3,125,62,0,2529,582,1,0,0,0,2530,2531,3,123,61,0,2531,2532,3,91,45,0,2532,2533,3,101,50,0,2533,2534,3,95,47,0,2534,2535,3,111,55,0,2535,2536,3,87,43,0,2536,584,1,0,0,0,2537,2538,3,123,61,0,2538,2539,3,95,47,0,2539,2540,3,91,45,0,2540,2541,3,115,57,0,2541,2542,3,113,56,0,2542,2543,3,93,46,0,2543,2544,3,123,61,0,2544,586,1,0,0,0,2545,2546,3,123,61,0,2546,2547,3,95,47,0,2547,2548,3,95,47,0,2548,2549,3,107,53,0,2549,588,1,0,0,0,2550,2551,3,123,61,0,2551,2552,3,95,47,0,2552,2553,3,109,54,0,2553,2554,3,95,47,0,2554,2555,3,91,45,0,2555,2556,3,125,62,0,2556,590,1,0,0,0,2557,2558,3,123,61,0,2558,2559,3,95,47,0,2559,2560,3,111,55,0,2560,2561,3,103,51,0,2561,592,1,0,0,0,2562,2563,3,123,61,0,2563,2564,3,95,47,0,2564,2565,3,125,62,0,2565,594,1,0,0,0,2566,2567,3,123,61,0,2567,2568,3,95,47,0,2568,2569,3,125,62,0,2569,2570,3,123,61,0,2570,596,1,0,0,0,2571,2572,3,123,61,0,2572,2573,3,101,50,0,2573,2574,3,115,57,0,2574,2575,3,131,65,0,2575,598,1,0,0,0,2576,2577,3,123,61,0,2577,2578,3,107,53,0,2578,2579,3,103,51,0,2579,2580,3,117,58,0,2580,600,1,0,0,0,2581,2582,3,123,61,0,2582,2583,3,115,57,0,2583,2584,3,127,63,0,2584,2585,3,121,60,0,2585,2586,3,91,45,0,2586,2587,3,95,47,0,2587,602,1,0,0,0,2588,2589,3,123,61,0,2589,2590,3,125,62,0,2590,2591,3,121,60,0,2591,2592,3,95,47,0,2592,2593,3,87,43,0,2593,2594,3,111,55,0,2594,604,1,0,0,0,2595,2596,3,123,61,0,2596,2597,3,125,62,0,2597,2598,3,121,60,0,2598,2599,3,127,63,0,2599,2600,3,91,45,0,2600,2601,3,125,62,0,2601,606,1,0,0,0,2602,2603,3,123,61,0,2603,2604,3,127,63,0,2604,2605,3,89,44,0,2605,2606,3,119,59,0,2606,2607,3,127,63,0,2607,2608,3,95,47,0,2608,2609,3,121,60,0,2609,2610,3,135,67,0,2610,608,1,0,0,0,2611,2612,3,123,61,0,2612,2613,3,127,63,0,2613,2614,3,89,44,0,2614,2615,3,123,61,0,2615,2616,3,95,47,0,2616,2617,3,125,62,0,2617,610,1,0,0,0,2618,2619,3,123,61,0,2619,2620,3,135,67,0,2620,2621,3,111,55,0,2621,2622,3,89,44,0,2622,2623,3,115,57,0,2623,2624,3,109,54,0,2624,2625,3,123,61,0,2625,612,1,0,0,0,2626,2627,3,123,61,0,2627,2628,3,135,67,0,2628,2629,3,111,55,0,2629,2630,3,111,55,0,2630,2631,3,95,47,0,2631,2632,3,125,62,0,2632,2633,3,121,60,0,2633,2634,3,103,51,0,2634,2635,3,91,45,0,2635,614,1,0,0,0,2636,2637,3,123,61,0,2637,2638,3,135,67,0,2638,2639,3,113,56,0,2639,2640,3,91,45,0,2640,616,1,0,0,0,2641,2642,3,123,61,0,2642,2643,3,135,67,0,2643,2644,3,123,61,0,2644,2645,3,125,62,0,2645,2646,3,95,47,0,2646,2647,3,111,55,0,2647,618,1,0,0,0,2648,2649,3,125,62,0,2649,2650,3,87,43,0,2650,2651,3,89,44,0,2651,2652,3,109,54,0,2652,2653,3,95,47,0,2653,620,1,0,0,0,2654,2655,3,125,62,0,2655,2656,3,87,43,0,2656,2657,3,89,44,0,2657,2658,3,109,54,0,2658,2659,3,95,47,0,2659,2660,3,123,61,0,2660,622,1,0,0,0,2661,2662,3,125,62,0,2662,2663,3,87,43,0,2663,2664,3,89,44,0,2664,2665,3,109,54,0,2665,2666,3,95,47,0,2666,2667,3,123,61,0,2667,2668,3,87,43,0,2668,2669,3,111,55,0,2669,2670,3,117,58,0,2670,2671,3,109,54,0,2671,2672,3,95,47,0,2672,624,1,0,0,0,2673,2674,3,125,62,0,2674,2675,3,87,43,0,2675,2676,3,89,44,0,2676,2677,3,109,54,0,2677,2678,3,95,47,0,2678,2679,3,123,61,0,2679,2680,3,125,62,0,2680,2681,3,115,57,0,2681,2682,3,121,60,0,2682,2683,3,95,47,0,2683,626,1,0,0,0,2684,2685,3,125,62,0,2685,2686,3,87,43,0,2686,2687,3,99,49,0,2687,2688,3,99,49,0,2688,2689,3,95,47,0,2689,2690,3,93,46,0,2690,628,1,0,0,0,2691,2692,3,125,62,0,2692,2693,3,95,47,0,2693,2694,3,111,55,0,2694,2695,3,117,58,0,2695,630,1,0,0,0,2696,2697,3,125,62,0,2697,2698,3,95,47,0,2698,2699,3,111,55,0,2699,2700,3,117,58,0,2700,2701,3,115,57,0,2701,2702,3,121,60,0,2702,2703,3,87,43,0,2703,2704,3,121,60,0,2704,2705,3,135,67,0,2705,632,1,0,0,0,2706,2707,3,125,62,0,2707,2708,3,101,50,0,2708,2709,3,95,47,0,2709,2710,3,113,56,0,2710,634,1,0,0,0,2711,2712,3,125,62,0,2712,2713,3,103,51,0,2713,2714,3,95,47,0,2714,2715,3,123,61,0,2715,636,1,0,0,0,2716,2717,3,125,62,0,2717,2718,3,115,57,0,2718,638,1,0,0,0,2719,2720,3,125,62,0,2720,2721,3,115,57,0,2721,2722,3,117,58,0,2722,2723,3,103,51,0,2723,2724,3,91,45,0,2724,640,1,0,0,0,2725,2726,3,125,62,0,2726,2727,3,121,60,0,2727,2728,3,87,43,0,2728,2729,3,113,56,0,2729,2730,3,123,61,0,2730,2731,3,87,43,0,2731,2732,3,91,45,0,2732,2733,3,125,62,0,2733,2734,3,103,51,0,2734,2735,3,115,57,0,2735,2736,3,113,56,0,2736,642,1,0,0,0,2737,2738,3,125,62,0,2738,2739,3,121,60,0,2739,2740,3,103,51,0,2740,2741,3,99,49,0,2741,2742,3,99,49,0,2742,2743,3,95,47,0,2743,2744,3,121,60,0,2744,644,1,0,0,0,2745,2746,3,125,62,0,2746,2747,3,121,60,0,2747,2748,3,127,63,0,2748,2749,3,95,47,0,2749,646,1,0,0,0,2750,2751,3,125,62,0,2751,2752,3,127,63,0,2752,2753,3,117,58,0,2753,2754,3,109,54,0,2754,2755,3,95,47,0,2755,648,1,0,0,0,2756,2757,3,125,62,0,2757,2758,3,135,67,0,2758,2759,3,117,58,0,2759,2760,3,95,47,0,2760,650,1,0,0,0,2761,2762,3,127,63,0,2762,2763,3,113,56,0,2763,2764,3,89,44,0,2764,2765,3,115,57,0,2765,2766,3,127,63,0,2766,2767,3,113,56,0,2767,2768,3,93,46,0,2768,2769,3,95,47,0,2769,2770,3,93,46,0,2770,652,1,0,0,0,2771,2772,3,127,63,0,2772,2773,3,113,56,0,2773,2774,3,91,45,0,2774,2775,3,115,57,0,2775,2776,3,113,56,0,2776,2777,3,93,46,0,2777,2778,3,103,51,0,2778,2779,3,125,62,0,2779,2780,3,103,51,0,2780,2781,3,115,57,0,2781,2782,3,113,56,0,2782,2783,3,87,43,0,2783,2784,3,109,54,0,2784,654,1,0,0,0,2785,2786,3,127,63,0,2786,2787,3,113,56,0,2787,2788,3,103,51,0,2788,2789,3,115,57,0,2789,2790,3,113,56,0,2790,656,1,0,0,0,2791,2792,3,127,63,0,2792,2793,3,113,56,0,2793,2794,3,103,51,0,2794,2795,3,119,59,0,2795,2796,3,127,63,0,2796,2797,3,95,47,0,2797,658,1,0,0,0,2798,2799,3,127,63,0,2799,2800,3,113,56,0,2800,2801,3,107,53,0,2801,2802,3,113,56,0,2802,2803,3,115,57,0,2803,2804,3,131,65,0,2804,2805,3,113,56,0,2805,660,1,0,0,0,2806,2807,3,127,63,0,2807,2808,3,113,56,0,2808,2809,3,111,55,0,2809,2810,3,87,43,0,2810,2811,3,125,62,0,2811,2812,3,91,45,0,2812,2813,3,101,50,0,2813,2814,3,95,47,0,2814,2815,3,93,46,0,2815,662,1,0,0,0,2816,2817,3,127,63,0,2817,2818,3,117,58,0,2818,2819,3,93,46,0,2819,2820,3,87,43,0,2820,2821,3,125,62,0,2821,2822,3,95,47,0,2822,664,1,0,0,0,2823,2824,3,127,63,0,2824,2825,3,117,58,0,2825,2826,3,123,61,0,2826,2827,3,95,47,0,2827,2828,3,121,60,0,2828,2829,3,125,62,0,2829,666,1,0,0,0,2830,2831,3,127,63,0,2831,2832,3,123,61,0,2832,2833,3,95,47,0,2833,668,1,0,0,0,2834,2835,3,127,63,0,2835,2836,3,123,61,0,2836,2837,3,95,47,0,2837,2838,3,121,60,0,2838,670,1,0,0,0,2839,2840,3,127,63,0,2840,2841,3,123,61,0,2841,2842,3,103,51,0,2842,2843,3,113,56,0,2843,2844,3,99,49,0,2844,672,1,0,0,0,2845,2846,3,129,64,0,2846,2847,3,87,43,0,2847,2848,3,91,45,0,2848,2849,3,127,63,0,2849,2850,3,127,63,0,2850,2851,3,111,55,0,2851,674,1,0,0,0,2852,2853,3,129,64,0,2853,2854,3,87,43,0,2854,2855,3,109,54,0,2855,2856,3,127,63,0,2856,2857,3,95,47,0,2857,2858,3,123,61,0,2858,676,1,0,0,0,2859,2860,3,129,64,0,2860,2861,3,87,43,0,2861,2862,3,121,60,0,2862,2863,3,103,51,0,2863,2864,3,87,43,0,2864,2865,3,113,56,0,2865,2866,3,125,62,0,2866,678,1,0,0,0,2867,2868,3,129,64,0,2868,2869,3,103,51,0,2869,2870,3,95,47,0,2870,2871,3,131,65,0,2871,680,1,0,0,0,2872,2873,3,129,64,0,2873,2874,3,103,51,0,2874,2875,3,121,60,0,2875,2876,3,125,62,0,2876,2877,3,127,63,0,2877,2878,3,87,43,0,2878,2879,3,109,54,0,2879,682,1,0,0,0,2880,2881,3,131,65,0,2881,2882,3,101,50,0,2882,2883,3,95,47,0,2883,2884,3,113,56,0,2884,684,1,0,0,0,2885,2886,3,131,65,0,2886,2887,3,101,50,0,2887,2888,3,95,47,0,2888,2889,3,121,60,0,2889,2890,3,95,47,0,2890,686,1,0,0,0,2891,2892,3,131,65,0,2892,2893,3,103,51,0,2893,2894,3,113,56,0,2894,2895,3,93,46,0,2895,2896,3,115,57,0,2896,2897,3,131,65,0,2897,688,1,0,0,0,2898,2899,3,131,65,0,2899,2900,3,103,51,0,2900,2901,3,125,62,0,2901,2902,3,101,50,0,2902,690,1,0,0,0,2903,2904,3,131,65,0,2904,2905,3,103,51,0,2905,2906,3,125,62,0,2906,2907,3,101,50,0,2907,2908,3,115,57,0,2908,2909,3,127,63,0,2909,2910,3,125,62,0,2910,692,1,0,0,0,2911,2912,3,131,65,0,2912,2913,3,121,60,0,2913,2914,3,87,43,0,2914,2915,3,117,58,0,2915,2916,3,117,58,0,2916,2917,3,95,47,0,2917,2918,3,121,60,0,2918,694,1,0,0,0,2919,2920,3,133,66,0,2920,2921,3,115,57,0,2921,2922,3,121,60,0,2922,696,1,0,0,0,2923,2928,8,26,0,0,2924,2925,3,79,39,0,2925,2926,9,0,0,0,2926,2928,1,0,0,0,2927,2923,1,0,0,0,2927,2924,1,0,0,0,2928,698,1,0,0,0,2929,2934,8,27,0,0,2930,2931,3,79,39,0,2931,2932,9,0,0,0,2932,2934,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2934,700,1,0,0,0,2935,2939,3,83,41,0,2936,2938,3,697,348,0,2937,2936,1,0,0,0,2938,2941,1,0,0,0,2939,2937,1,0,0,0,2939,2940,1,0,0,0,2940,2942,1,0,0,0,2941,2939,1,0,0,0,2942,2943,3,83,41,0,2943,702,1,0,0,0,2944,2948,3,81,40,0,2945,2947,3,699,349,0,2946,2945,1,0,0,0,2947,2950,1,0,0,0,2948,2946,1,0,0,0,2948,2949,1,0,0,0,2949,2951,1,0,0,0,2950,2948,1,0,0,0,2951,2952,3,81,40,0,2952,704,1,0,0,0,2953,2957,3,61,30,0,2954,2956,9,0,0,0,2955,2954,1,0,0,0,2956,2959,1,0,0,0,2957,2958,1,0,0,0,2957,2955,1,0,0,0,2958,2960,1,0,0,0,2959,2957,1,0,0,0,2960,2961,3,61,30,0,2961,2963,1,0,0,0,2962,2953,1,0,0,0,2963,2964,1,0,0,0,2964,2962,1,0,0,0,2964,2965,1,0,0,0,2965,2967,1,0,0,0,2966,2968,3,59,29,0,2967,2966,1,0,0,0,2967,2968,1,0,0,0,2968,706,1,0,0,0,2969,2973,3,701,350,0,2970,2973,3,703,351,0,2971,2973,3,705,352,0,2972,2969,1,0,0,0,2972,2970,1,0,0,0,2972,2971,1,0,0,0,2973,2984,1,0,0,0,2974,2985,3,123,61,0,2975,2985,3,127,63,0,2976,2985,3,135,67,0,2977,2985,3,105,52,0,2978,2982,3,117,58,0,2979,2983,3,125,62,0,2980,2983,3,89,44,0,2981,2983,3,129,64,0,2982,2979,1,0,0,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2982,2983,1,0,0,0,2983,2985,1,0,0,0,2984,2974,1,0,0,0,2984,2975,1,0,0,0,2984,2976,1,0,0,0,2984,2977,1,0,0,0,2984,2978,1,0,0,0,2984,2985,1,0,0,0,2985,708,1,0,0,0,2986,2991,7,28,0,0,2987,2990,7,28,0,0,2988,2990,3,715,357,0,2989,2987,1,0,0,0,2989,2988,1,0,0,0,2990,2993,1,0,0,0,2991,2989,1,0,0,0,2991,2992,1,0,0,0,2992,710,1,0,0,0,2993,2991,1,0,0,0,2994,2995,5,92,0,0,2995,3e3,9,0,0,0,2996,2997,5,96,0,0,2997,3e3,5,96,0,0,2998,3e3,8,29,0,0,2999,2994,1,0,0,0,2999,2996,1,0,0,0,2999,2998,1,0,0,0,3e3,712,1,0,0,0,3001,3005,3,85,42,0,3002,3004,3,711,355,0,3003,3002,1,0,0,0,3004,3007,1,0,0,0,3005,3003,1,0,0,0,3005,3006,1,0,0,0,3006,3008,1,0,0,0,3007,3005,1,0,0,0,3008,3009,3,85,42,0,3009,714,1,0,0,0,3010,3011,2,48,57,0,3011,716,1,0,0,0,3012,3013,7,30,0,0,3013,718,1,0,0,0,3014,3015,5,48,0,0,3015,3017,3,133,66,0,3016,3018,3,717,358,0,3017,3016,1,0,0,0,3018,3019,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,720,1,0,0,0,3021,3022,5,48,0,0,3022,3024,3,115,57,0,3023,3025,2,48,56,0,3024,3023,1,0,0,0,3025,3026,1,0,0,0,3026,3024,1,0,0,0,3026,3027,1,0,0,0,3027,722,1,0,0,0,3028,3029,5,48,0,0,3029,3031,3,89,44,0,3030,3032,2,48,49,0,3031,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3031,1,0,0,0,3033,3034,1,0,0,0,3034,724,1,0,0,0,3035,3037,3,715,357,0,3036,3035,1,0,0,0,3037,3038,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,726,1,0,0,0,3040,3045,3,725,362,0,3041,3045,3,719,359,0,3042,3045,3,721,360,0,3043,3045,3,723,361,0,3044,3040,1,0,0,0,3044,3041,1,0,0,0,3044,3042,1,0,0,0,3044,3043,1,0,0,0,3045,728,1,0,0,0,3046,3049,3,727,363,0,3047,3050,3,117,58,0,3048,3050,3,127,63,0,3049,3047,1,0,0,0,3049,3048,1,0,0,0,3049,3050,1,0,0,0,3050,3057,1,0,0,0,3051,3058,3,109,54,0,3052,3058,3,123,61,0,3053,3058,3,125,62,0,3054,3058,3,103,51,0,3055,3058,3,89,44,0,3056,3058,3,113,56,0,3057,3051,1,0,0,0,3057,3052,1,0,0,0,3057,3053,1,0,0,0,3057,3054,1,0,0,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3057,3058,1,0,0,0,3058,730,1,0,0,0,3059,3062,3,95,47,0,3060,3063,3,33,16,0,3061,3063,3,35,17,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3062,3063,1,0,0,0,3063,3064,1,0,0,0,3064,3065,3,725,362,0,3065,732,1,0,0,0,3066,3067,3,725,362,0,3067,3071,3,47,23,0,3068,3070,3,715,357,0,3069,3068,1,0,0,0,3070,3073,1,0,0,0,3071,3069,1,0,0,0,3071,3072,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3074,3076,3,731,365,0,3075,3074,1,0,0,0,3075,3076,1,0,0,0,3076,3081,1,0,0,0,3077,3078,3,725,362,0,3078,3079,3,731,365,0,3079,3081,1,0,0,0,3080,3066,1,0,0,0,3080,3077,1,0,0,0,3081,3090,1,0,0,0,3082,3091,3,97,48,0,3083,3088,3,117,58,0,3084,3085,3,97,48,0,3085,3086,7,31,0,0,3086,3089,1,0,0,0,3087,3089,3,113,56,0,3088,3084,1,0,0,0,3088,3087,1,0,0,0,3088,3089,1,0,0,0,3089,3091,1,0,0,0,3090,3082,1,0,0,0,3090,3083,1,0,0,0,3090,3091,1,0,0,0,3091,734,1,0,0,0,3092,3093,3,133,66,0,3093,3095,3,83,41,0,3094,3096,3,717,358,0,3095,3094,1,0,0,0,3096,3097,1,0,0,0,3097,3095,1,0,0,0,3097,3098,1,0,0,0,3098,3099,1,0,0,0,3099,3100,3,83,41,0,3100,736,1,0,0,0,3101,3102,7,16,0,0,3102,738,1,0,0,0,3103,3104,7,20,0,0,3104,740,1,0,0,0,3105,3106,7,4,0,0,3106,742,1,0,0,0,3107,3108,7,17,0,0,3108,744,1,0,0,0,3109,3110,7,24,0,0,3110,746,1,0,0,0,3111,3112,5,47,0,0,3112,3113,5,42,0,0,3113,3117,1,0,0,0,3114,3116,9,0,0,0,3115,3114,1,0,0,0,3116,3119,1,0,0,0,3117,3118,1,0,0,0,3117,3115,1,0,0,0,3118,3120,1,0,0,0,3119,3117,1,0,0,0,3120,3121,5,42,0,0,3121,3122,5,47,0,0,3122,748,1,0,0,0,3123,3124,5,45,0,0,3124,3125,5,45,0,0,3125,3129,1,0,0,0,3126,3128,8,32,0,0,3127,3126,1,0,0,0,3128,3131,1,0,0,0,3129,3127,1,0,0,0,3129,3130,1,0,0,0,3130,3137,1,0,0,0,3131,3129,1,0,0,0,3132,3134,5,13,0,0,3133,3135,5,10,0,0,3134,3133,1,0,0,0,3134,3135,1,0,0,0,3135,3138,1,0,0,0,3136,3138,7,33,0,0,3137,3132,1,0,0,0,3137,3136,1,0,0,0,3138,750,1,0,0,0,3139,3140,7,34,0,0,3140,3141,1,0,0,0,3141,3142,6,375,0,0,3142,752,1,0,0,0,3143,3146,3,747,373,0,3144,3146,3,749,374,0,3145,3143,1,0,0,0,3145,3144,1,0,0,0,3146,3147,1,0,0,0,3147,3148,6,376,1,0,3148,754,1,0,0,0,34,0,2927,2933,2939,2948,2957,2964,2967,2972,2982,2984,2989,2991,2999,3005,3019,3026,3033,3038,3044,3049,3057,3062,3071,3075,3080,3088,3090,3097,3117,3129,3134,3137,3145,2,0,1,0,6,0,0]}static get _ATN(){return t.__ATN||(t.__ATN=(new Ft).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new l(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ae(t,e)))}},tr=class t extends Be{static{Ss(this,"YQLParser")}static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_family_entry=275}static{this.RULE_family_settings=276}static{this.RULE_family_settings_entry=277}static{this.RULE_family_setting_value=278}static{this.RULE_split_boundaries=279}static{this.RULE_literal_value_list=280}static{this.RULE_alter_table_alter_index_action=281}static{this.RULE_drop_table_stmt=282}static{this.RULE_create_user_stmt=283}static{this.RULE_alter_user_stmt=284}static{this.RULE_create_group_stmt=285}static{this.RULE_alter_group_stmt=286}static{this.RULE_drop_role_stmt=287}static{this.RULE_role_name=288}static{this.RULE_create_user_option=289}static{this.RULE_grant_permissions_stmt=290}static{this.RULE_revoke_permissions_stmt=291}static{this.RULE_permission_id=292}static{this.RULE_permission_name=293}static{this.RULE_permission_name_target=294}static{this.RULE_create_resource_pool_stmt=295}static{this.RULE_alter_resource_pool_stmt=296}static{this.RULE_alter_resource_pool_action=297}static{this.RULE_drop_resource_pool_stmt=298}static{this.RULE_create_resource_pool_classifier_stmt=299}static{this.RULE_alter_resource_pool_classifier_stmt=300}static{this.RULE_alter_resource_pool_classifier_action=301}static{this.RULE_drop_resource_pool_classifier_stmt=302}static{this.RULE_create_replication_stmt=303}static{this.RULE_replication_target=304}static{this.RULE_replication_settings=305}static{this.RULE_replication_settings_entry=306}static{this.RULE_alter_replication_stmt=307}static{this.RULE_alter_replication_action=308}static{this.RULE_alter_replication_set_setting=309}static{this.RULE_drop_replication_stmt=310}static{this.RULE_action_or_subquery_args=311}static{this.RULE_define_action_or_subquery_stmt=312}static{this.RULE_define_action_or_subquery_body=313}static{this.RULE_if_stmt=314}static{this.RULE_for_stmt=315}static{this.RULE_table_ref=316}static{this.RULE_table_key=317}static{this.RULE_table_arg=318}static{this.RULE_table_hints=319}static{this.RULE_table_hint=320}static{this.RULE_object_ref=321}static{this.RULE_simple_table_ref_core=322}static{this.RULE_simple_table_ref=323}static{this.RULE_into_simple_table_ref=324}static{this.RULE_delete_stmt=325}static{this.RULE_update_stmt=326}static{this.RULE_set_clause_choice=327}static{this.RULE_set_clause_list=328}static{this.RULE_set_clause=329}static{this.RULE_set_target=330}static{this.RULE_multiple_column_assignment=331}static{this.RULE_set_target_list=332}static{this.RULE_create_topic_stmt=333}static{this.RULE_create_topic_entries=334}static{this.RULE_create_topic_entry=335}static{this.RULE_with_topic_settings=336}static{this.RULE_alter_topic_stmt=337}static{this.RULE_alter_topic_action=338}static{this.RULE_alter_topic_add_consumer=339}static{this.RULE_topic_create_consumer_entry=340}static{this.RULE_alter_topic_alter_consumer=341}static{this.RULE_alter_topic_alter_consumer_entry=342}static{this.RULE_alter_topic_drop_consumer=343}static{this.RULE_topic_alter_consumer_set=344}static{this.RULE_topic_alter_consumer_reset=345}static{this.RULE_alter_topic_set_settings=346}static{this.RULE_alter_topic_reset_settings=347}static{this.RULE_drop_topic_stmt=348}static{this.RULE_topic_settings=349}static{this.RULE_topic_settings_entry=350}static{this.RULE_topic_setting_value=351}static{this.RULE_topic_consumer_with_settings=352}static{this.RULE_topic_consumer_settings=353}static{this.RULE_topic_consumer_settings_entry=354}static{this.RULE_topic_consumer_setting_value=355}static{this.RULE_topic_ref=356}static{this.RULE_topic_consumer_ref=357}static{this.RULE_null_treatment=358}static{this.RULE_filter_clause=359}static{this.RULE_window_name_or_specification=360}static{this.RULE_window_name=361}static{this.RULE_window_clause=362}static{this.RULE_window_definition_list=363}static{this.RULE_window_definition=364}static{this.RULE_new_window_name=365}static{this.RULE_window_specification=366}static{this.RULE_window_specification_details=367}static{this.RULE_existing_window_name=368}static{this.RULE_window_partition_clause=369}static{this.RULE_window_order_clause=370}static{this.RULE_window_frame_clause=371}static{this.RULE_window_frame_units=372}static{this.RULE_window_frame_extent=373}static{this.RULE_window_frame_between=374}static{this.RULE_window_frame_bound=375}static{this.RULE_window_frame_exclusion=376}static{this.RULE_use_stmt=377}static{this.RULE_subselect_stmt=378}static{this.RULE_named_nodes_stmt=379}static{this.RULE_commit_stmt=380}static{this.RULE_rollback_stmt=381}static{this.RULE_analyze_table=382}static{this.RULE_analyze_table_list=383}static{this.RULE_analyze_stmt=384}static{this.RULE_identifier=385}static{this.RULE_id=386}static{this.RULE_id_schema=387}static{this.RULE_id_expr=388}static{this.RULE_id_expr_in=389}static{this.RULE_id_window=390}static{this.RULE_id_table=391}static{this.RULE_id_without=392}static{this.RULE_id_hint=393}static{this.RULE_id_as_compat=394}static{this.RULE_an_id=395}static{this.RULE_an_id_or_type=396}static{this.RULE_an_id_schema=397}static{this.RULE_an_id_expr=398}static{this.RULE_an_id_expr_in=399}static{this.RULE_an_id_window=400}static{this.RULE_an_id_table=401}static{this.RULE_an_id_without=402}static{this.RULE_an_id_hint=403}static{this.RULE_an_id_pure=404}static{this.RULE_an_id_as_compat=405}static{this.RULE_view_name=406}static{this.RULE_opt_id_prefix=407}static{this.RULE_cluster_expr=408}static{this.RULE_id_or_type=409}static{this.RULE_opt_id_prefix_or_type=410}static{this.RULE_id_or_at=411}static{this.RULE_id_table_or_type=412}static{this.RULE_id_table_or_at=413}static{this.RULE_keyword=414}static{this.RULE_keyword_expr_uncompat=415}static{this.RULE_keyword_table_uncompat=416}static{this.RULE_keyword_select_uncompat=417}static{this.RULE_keyword_alter_uncompat=418}static{this.RULE_keyword_in_uncompat=419}static{this.RULE_keyword_window_uncompat=420}static{this.RULE_keyword_hint_uncompat=421}static{this.RULE_keyword_as_compat=422}static{this.RULE_keyword_compat=423}static{this.RULE_type_id=424}static{this.RULE_bool_value=425}static{this.RULE_real=426}static{this.RULE_integer=427}static{this.RULE_sql_query_yq=428}static{this.RULE_sql_stmt_list_yq=429}static{this.RULE_sql_stmt_yq=430}static{this.RULE_sql_stmt_core_yq=431}static{this.RULE_replication_name=432}static{this.RULE_where_expr=433}static{this.RULE_from_stmt=434}static{this.RULE_alter_table_for_autocomplete=435}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","create_user_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr","from_stmt","alter_table_for_autocomplete"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new De(this,t,e)}constructor(e){super(e),this.interpreter=new le(this,t._ATN,t.decisionsToDFA,new ue)}sql_query(){let e=new er(this.context,this.state);this.enterRule(e,0,t.RULE_sql_query);try{switch(this.state=877,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(e,1),this.state=872,this.sql_stmt_list();break;case 2:this.enterOuterAlt(e,2),this.state=873,this.match(t.PRAGMA),this.state=874,this.match(t.ANSI),this.state=875,this.match(t.DIGITS),this.state=876,this.ansi_sql_stmt_list()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt_list(){let e,s=new sr(this.context,this.state);this.enterRule(s,2,t.RULE_sql_stmt_list);try{let r;for(this.enterOuterAlt(s,1),this.state=882,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=879,this.match(t.SEMICOLON),this.state=884,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=885,this.sql_stmt(),this.state=894,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){this.state=887,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=886,this.match(t.SEMICOLON),this.state=889,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=891,this.sql_stmt()}this.state=896,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=900,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=897,this.match(t.SEMICOLON),this.state=902,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=903,this.match(t.EOF)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}ansi_sql_stmt_list(){let e,s=new rr(this.context,this.state);this.enterRule(s,4,t.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(s,1),this.state=908,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=905,this.match(t.SEMICOLON),this.state=910,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=911,this.match(t.EOF)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}lambda_body(){let e,s=new ir(this.context,this.state);this.enterRule(s,6,t.RULE_lambda_body);try{for(this.enterOuterAlt(s,1),this.state=916,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=913,this.match(t.SEMICOLON),this.state=918,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=927,this.errorHandler.sync(this),e=this.tokenStream.LA(1);32===e||158===e;){this.state=919,this.lambda_stmt(),this.state=921,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=920,this.match(t.SEMICOLON),this.state=923,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=929,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}for(this.state=930,this.match(t.RETURN),this.state=931,this.expr(),this.state=935,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=932,this.match(t.SEMICOLON),this.state=937,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}lambda_stmt(){let e=new ar(this.context,this.state);this.enterRule(e,8,t.RULE_lambda_stmt);try{switch(this.state=940,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.enterOuterAlt(e,1),this.state=938,this.named_nodes_stmt();break;case t.IMPORT:this.enterOuterAlt(e,2),this.state=939,this.import_stmt();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt(){let e,s=new nr(this.context,this.state);this.enterRule(s,10,t.RULE_sql_stmt);try{this.enterOuterAlt(s,1),this.state=947,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=942,this.match(t.EXPLAIN),this.state=945,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1===e&&(this.state=943,this.match(t.QUERY),this.state=944,this.match(t.PLAN))),this.state=949,this.sql_stmt_core()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_stmt_core(){let e=new cr(this.context,this.state);this.enterRule(e,12,t.RULE_sql_stmt_core);try{switch(this.state=1007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(e,1),this.state=951,this.pragma_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=952,this.select_stmt();break;case 3:this.enterOuterAlt(e,3),this.state=953,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(e,4),this.state=954,this.create_table_stmt();break;case 5:this.enterOuterAlt(e,5),this.state=955,this.drop_table_stmt();break;case 6:this.enterOuterAlt(e,6),this.state=956,this.use_stmt();break;case 7:this.enterOuterAlt(e,7),this.state=957,this.into_table_stmt();break;case 8:this.enterOuterAlt(e,8),this.state=958,this.commit_stmt();break;case 9:this.enterOuterAlt(e,9),this.state=959,this.update_stmt();break;case 10:this.enterOuterAlt(e,10),this.state=960,this.delete_stmt();break;case 11:this.enterOuterAlt(e,11),this.state=961,this.rollback_stmt();break;case 12:this.enterOuterAlt(e,12),this.state=962,this.declare_stmt();break;case 13:this.enterOuterAlt(e,13),this.state=963,this.import_stmt();break;case 14:this.enterOuterAlt(e,14),this.state=964,this.export_stmt();break;case 15:this.enterOuterAlt(e,15),this.state=965,this.alter_table_stmt();break;case 16:this.enterOuterAlt(e,16),this.state=966,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(e,17),this.state=967,this.do_stmt();break;case 18:this.enterOuterAlt(e,18),this.state=968,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(e,19),this.state=969,this.if_stmt();break;case 20:this.enterOuterAlt(e,20),this.state=970,this.for_stmt();break;case 21:this.enterOuterAlt(e,21),this.state=971,this.values_stmt();break;case 22:this.enterOuterAlt(e,22),this.state=972,this.create_user_stmt();break;case 23:this.enterOuterAlt(e,23),this.state=973,this.alter_user_stmt();break;case 24:this.enterOuterAlt(e,24),this.state=974,this.create_group_stmt();break;case 25:this.enterOuterAlt(e,25),this.state=975,this.alter_group_stmt();break;case 26:this.enterOuterAlt(e,26),this.state=976,this.drop_role_stmt();break;case 27:this.enterOuterAlt(e,27),this.state=977,this.create_object_stmt();break;case 28:this.enterOuterAlt(e,28),this.state=978,this.alter_object_stmt();break;case 29:this.enterOuterAlt(e,29),this.state=979,this.drop_object_stmt();break;case 30:this.enterOuterAlt(e,30),this.state=980,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(e,31),this.state=981,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(e,32),this.state=982,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(e,33),this.state=983,this.create_replication_stmt();break;case 34:this.enterOuterAlt(e,34),this.state=984,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(e,35),this.state=985,this.create_topic_stmt();break;case 36:this.enterOuterAlt(e,36),this.state=986,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(e,37),this.state=987,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(e,38),this.state=988,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(e,39),this.state=989,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(e,40),this.state=990,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(e,41),this.state=991,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(e,42),this.state=992,this.create_view_stmt();break;case 43:this.enterOuterAlt(e,43),this.state=993,this.drop_view_stmt();break;case 44:this.enterOuterAlt(e,44),this.state=994,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(e,45),this.state=995,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(e,46),this.state=996,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(e,47),this.state=997,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(e,48),this.state=998,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(e,49),this.state=999,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(e,50),this.state=1e3,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(e,51),this.state=1001,this.analyze_stmt();break;case 52:this.enterOuterAlt(e,52),this.state=1002,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(e,53),this.state=1003,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(e,54),this.state=1004,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(e,55),this.state=1005,this.backup_stmt();break;case 56:this.enterOuterAlt(e,56),this.state=1006,this.restore_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expr(){let e=new hr(this.context,this.state);this.enterRule(e,14,t.RULE_expr);try{let s;switch(this.state=1018,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(e,1),this.state=1009,this.or_subexpr(),this.state=1014,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1010,this.match(t.OR),this.state=1011,this.or_subexpr()),this.state=1016,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(e,2),this.state=1017,this.type_name_composite()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}or_subexpr(){let e=new or(this.context,this.state);this.enterRule(e,16,t.RULE_or_subexpr);try{let s;for(this.enterOuterAlt(e,1),this.state=1020,this.and_subexpr(),this.state=1025,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1021,this.match(t.AND),this.state=1022,this.and_subexpr()),this.state=1027,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}and_subexpr(){let e=new Er(this.context,this.state);this.enterRule(e,18,t.RULE_and_subexpr);try{let s;for(this.enterOuterAlt(e,1),this.state=1028,this.xor_subexpr(),this.state=1033,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1029,this.match(t.XOR),this.state=1030,this.xor_subexpr()),this.state=1035,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xor_subexpr(){let e=new lr(this.context,this.state);this.enterRule(e,20,t.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(e,1),this.state=1036,this.eq_subexpr(),this.state=1038,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1037,this.cond_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}distinct_from_op(){let e,s=new ur(this.context,this.state);this.enterRule(s,22,t.RULE_distinct_from_op);try{this.enterOuterAlt(s,1),this.state=1040,this.match(t.IS),this.state=1042,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1041,this.match(t.NOT)),this.state=1044,this.match(t.DISTINCT),this.state=1045,this.match(t.FROM)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}cond_expr(){let e,s=new Rr(this.context,this.state);this.enterRule(s,24,t.RULE_cond_expr);try{let r;switch(this.state=1098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(s,1),this.state=1048,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1047,this.match(t.NOT)),this.state=1050,this.match_op(),this.state=1051,this.eq_subexpr(),this.state=1054,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1052,this.match(t.ESCAPE),this.state=1053,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(s,2),1===(this.state=1057,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1056,this.match(t.NOT)),this.state=1059,this.match(t.IN),this.state=1061,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1060,this.match(t.COMPACT);this.state=1063,this.in_expr();break;case 3:switch(this.enterOuterAlt(s,3),this.state=1073,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1064,this.match(t.ISNULL);break;case 2:this.state=1065,this.match(t.NOTNULL);break;case 3:this.state=1066,this.match(t.IS),this.state=1067,this.match(t.NULL);break;case 4:this.state=1069,this.errorHandler.sync(this),e=this.tokenStream.LA(1),171===e&&(this.state=1068,this.match(t.IS)),this.state=1071,this.match(t.NOT),this.state=1072,this.match(t.NULL)}break;case 4:if(this.enterOuterAlt(s,4),1===(this.state=1076,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1075,this.match(t.NOT)),this.state=1078,this.match(t.BETWEEN),this.state=1080,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1079,e=this.tokenStream.LA(1),54===e||277===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1082,this.eq_subexpr(),this.state=1083,this.match(t.AND),this.state=1084,this.eq_subexpr();break;case 5:this.enterOuterAlt(s,5),this.state=1094,this.errorHandler.sync(this),r=1;do{if(1!==r)throw new ce(this);switch(this.state=1091,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUALS:this.state=1086,this.match(t.EQUALS);break;case t.EQUALS2:this.state=1087,this.match(t.EQUALS2);break;case t.NOT_EQUALS:this.state=1088,this.match(t.NOT_EQUALS);break;case t.NOT_EQUALS2:this.state=1089,this.match(t.NOT_EQUALS2);break;case t.IS:this.state=1090,this.distinct_from_op();break;default:throw new ce(this)}this.state=1093,this.eq_subexpr(),this.state=1096,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==r&&r!==z.INVALID_ALT_NUMBER)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}match_op(){let e,s=new _r(this.context,this.state);this.enterRule(s,26,t.RULE_match_op);try{this.enterOuterAlt(s,1),this.state=1100,e=this.tokenStream.LA(1),145===e||156===e||181===e||186===e||236===e||255===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}eq_subexpr(){let e,s=new Tr(this.context,this.state);this.enterRule(s,28,t.RULE_eq_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1102,this.neq_subexpr(),this.state=1107,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&960;)this.state=1103,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&960?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1104,this.neq_subexpr(),this.state=1109,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}shift_right(){let e=new Ar(this.context,this.state);this.enterRule(e,30,t.RULE_shift_right);try{this.enterOuterAlt(e,1),this.state=1110,this.match(t.GREATER),this.state=1111,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rot_right(){let e=new Sr(this.context,this.state);this.enterRule(e,32,t.RULE_rot_right);try{this.enterOuterAlt(e,1),this.state=1113,this.match(t.GREATER),this.state=1114,this.match(t.GREATER),this.state=1115,this.match(t.PIPE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}double_question(){let e=new dr(this.context,this.state);this.enterRule(e,34,t.RULE_double_question);try{this.enterOuterAlt(e,1),this.state=1117,this.match(t.QUESTION),this.state=1118,this.match(t.QUESTION)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}neq_subexpr(){let e,s=new Lr(this.context,this.state);this.enterRule(s,36,t.RULE_neq_subexpr);try{let r;for(this.enterOuterAlt(s,1),this.state=1120,this.bit_subexpr(),this.state=1133,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){switch(this.state=1128,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1121,this.match(t.SHIFT_LEFT);break;case 2:this.state=1122,this.shift_right();break;case 3:this.state=1123,this.match(t.ROT_LEFT);break;case 4:this.state=1124,this.rot_right();break;case 5:this.state=1125,this.match(t.AMPERSAND);break;case 6:this.state=1126,this.match(t.PIPE);break;case 7:this.state=1127,this.match(t.CARET)}this.state=1130,this.bit_subexpr()}this.state=1135,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1144,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1136,this.double_question(),this.state=1137,this.neq_subexpr();break;case 2:this.state=1140,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=1139,this.match(t.QUESTION),this.state=1142,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(28===e)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}bit_subexpr(){let e,s=new Cr(this.context,this.state);this.enterRule(s,38,t.RULE_bit_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1146,this.add_subexpr(),this.state=1151,this.errorHandler.sync(this),e=this.tokenStream.LA(1);17===e||18===e;)this.state=1147,e=this.tokenStream.LA(1),17===e||18===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1148,this.add_subexpr(),this.state=1153,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}add_subexpr(){let e,s=new Nr(this.context,this.state);this.enterRule(s,40,t.RULE_add_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1154,this.mul_subexpr(),this.state=1159,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&7340032;)this.state=1155,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&7340032?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1156,this.mul_subexpr(),this.state=1161,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}mul_subexpr(){let e,s=new Ir(this.context,this.state);this.enterRule(s,42,t.RULE_mul_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1162,this.con_subexpr(),this.state=1167,this.errorHandler.sync(this),e=this.tokenStream.LA(1);14===e;)this.state=1163,this.match(t.DOUBLE_PIPE),this.state=1164,this.con_subexpr(),this.state=1169,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}con_subexpr(){let e=new Or(this.context,this.state);this.enterRule(e,44,t.RULE_con_subexpr);try{switch(this.state=1174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1170,this.unary_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1171,this.unary_op(),this.state=1172,this.unary_subexpr()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unary_op(){let e,s=new pr(this.context,this.state);this.enterRule(s,46,t.RULE_unary_op);try{this.enterOuterAlt(s,1),this.state=1176,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&917504||197===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}unary_subexpr_suffix(){let e,s=new gr(this.context,this.state);this.enterRule(s,48,t.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(s,1),this.state=1190,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-24&-32)&&1<<e-24&32773;){switch(this.state=1186,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LBRACE_SQUARE:this.state=1178,this.key_expr();break;case t.LPAREN:this.state=1179,this.invoke_expr();break;case t.DOT:switch(this.state=1180,this.match(t.DOT),this.state=1184,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.state=1181,this.bind_parameter();break;case t.DIGITS:this.state=1182,this.match(t.DIGITS);break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1183,this.an_id_or_type();break;default:throw new ce(this)}break;default:throw new ce(this)}this.state=1192,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}this.state=1195,this.errorHandler.sync(this),e=this.tokenStream.LA(1),76===e&&(this.state=1193,this.match(t.COLLATE),this.state=1194,this.an_id())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}unary_casual_subexpr(){let e=new mr(this.context,this.state);this.enterRule(e,50,t.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(e,1),this.state=1199,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1197,this.id_expr();break;case 2:this.state=1198,this.atom_expr()}this.state=1201,this.unary_subexpr_suffix()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_unary_casual_subexpr(){let e=new xr(this.context,this.state);this.enterRule(e,52,t.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(e,1),this.state=1205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1203,this.id_expr_in();break;case 2:this.state=1204,this.in_atom_expr()}this.state=1207,this.unary_subexpr_suffix()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unary_subexpr(){let e=new Ur(this.context,this.state);this.enterRule(e,54,t.RULE_unary_subexpr);try{switch(this.state=1211,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1209,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1210,this.json_api_expr()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_unary_subexpr(){let e=new fr(this.context,this.state);this.enterRule(e,56,t.RULE_in_unary_subexpr);try{switch(this.state=1215,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1213,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1214,this.json_api_expr()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}list_literal(){let e,s=new Pr(this.context,this.state);this.enterRule(s,58,t.RULE_list_literal);try{this.enterOuterAlt(s,1),this.state=1217,this.match(t.LBRACE_SQUARE),this.state=1219,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1218,this.expr_list()),this.state=1222,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1221,this.match(t.COMMA)),this.state=1224,this.match(t.RBRACE_SQUARE)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}expr_dict_list(){let e,s=new kr(this.context,this.state);this.enterRule(s,60,t.RULE_expr_dict_list);try{let r;for(this.enterOuterAlt(s,1),this.state=1226,this.expr(),this.state=1229,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=1227,this.match(t.COLON),this.state=1228,this.expr()),this.state=1239,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1231,this.match(t.COMMA),this.state=1232,this.expr(),this.state=1235,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=1233,this.match(t.COLON),this.state=1234,this.expr())),this.state=1241,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}dict_literal(){let e,s=new Mr(this.context,this.state);this.enterRule(s,62,t.RULE_dict_literal);try{this.enterOuterAlt(s,1),this.state=1242,this.match(t.LBRACE_CURLY),this.state=1244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1243,this.expr_dict_list()),this.state=1247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1246,this.match(t.COMMA)),this.state=1249,this.match(t.RBRACE_CURLY)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}expr_struct_list(){let e=new yr(this.context,this.state);this.enterRule(e,64,t.RULE_expr_struct_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1251,this.expr(),this.state=1252,this.match(t.COLON),this.state=1253,this.expr(),this.state=1261,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1254,this.match(t.COMMA),this.state=1255,this.expr(),this.state=1256,this.match(t.COLON),this.state=1257,this.expr()),this.state=1263,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_literal(){let e,s=new Dr(this.context,this.state);this.enterRule(s,66,t.RULE_struct_literal);try{this.enterOuterAlt(s,1),this.state=1264,this.match(t.STRUCT_OPEN),this.state=1266,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1265,this.expr_struct_list()),this.state=1269,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1268,this.match(t.COMMA)),this.state=1271,this.match(t.STRUCT_CLOSE)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}atom_expr(){let e=new vr(this.context,this.state);this.enterRule(e,68,t.RULE_atom_expr);try{switch(this.state=1290,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1273,this.literal_value();break;case 2:this.enterOuterAlt(e,2),this.state=1274,this.bind_parameter();break;case 3:this.enterOuterAlt(e,3),this.state=1275,this.lambda();break;case 4:this.enterOuterAlt(e,4),this.state=1276,this.cast_expr();break;case 5:this.enterOuterAlt(e,5),this.state=1277,this.exists_expr();break;case 6:this.enterOuterAlt(e,6),this.state=1278,this.case_expr();break;case 7:switch(this.enterOuterAlt(e,7),this.state=1279,this.an_id_or_type(),this.state=1280,this.match(t.NAMESPACE),this.state=1283,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1281,this.id_or_type();break;case t.STRING_VALUE:this.state=1282,this.match(t.STRING_VALUE);break;default:throw new ce(this)}break;case 8:this.enterOuterAlt(e,8),this.state=1285,this.value_constructor();break;case 9:this.enterOuterAlt(e,9),this.state=1286,this.bitcast_expr();break;case 10:this.enterOuterAlt(e,10),this.state=1287,this.list_literal();break;case 11:this.enterOuterAlt(e,11),this.state=1288,this.dict_literal();break;case 12:this.enterOuterAlt(e,12),this.state=1289,this.struct_literal()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_atom_expr(){let e=new br(this.context,this.state);this.enterRule(e,70,t.RULE_in_atom_expr);try{switch(this.state=1312,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1292,this.literal_value();break;case 2:this.enterOuterAlt(e,2),this.state=1293,this.bind_parameter();break;case 3:this.enterOuterAlt(e,3),this.state=1294,this.lambda();break;case 4:this.enterOuterAlt(e,4),this.state=1295,this.cast_expr();break;case 5:this.enterOuterAlt(e,5),this.state=1296,this.case_expr();break;case 6:switch(this.enterOuterAlt(e,6),this.state=1297,this.an_id_or_type(),this.state=1298,this.match(t.NAMESPACE),this.state=1301,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1299,this.id_or_type();break;case t.STRING_VALUE:this.state=1300,this.match(t.STRING_VALUE);break;default:throw new ce(this)}break;case 7:this.enterOuterAlt(e,7),this.state=1303,this.match(t.LPAREN),this.state=1304,this.select_stmt(),this.state=1305,this.match(t.RPAREN);break;case 8:this.enterOuterAlt(e,8),this.state=1307,this.value_constructor();break;case 9:this.enterOuterAlt(e,9),this.state=1308,this.bitcast_expr();break;case 10:this.enterOuterAlt(e,10),this.state=1309,this.list_literal();break;case 11:this.enterOuterAlt(e,11),this.state=1310,this.dict_literal();break;case 12:this.enterOuterAlt(e,12),this.state=1311,this.struct_literal()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cast_expr(){let e=new Hr(this.context,this.state);this.enterRule(e,72,t.RULE_cast_expr);try{this.enterOuterAlt(e,1),this.state=1314,this.match(t.CAST),this.state=1315,this.match(t.LPAREN),this.state=1316,this.expr(),this.state=1317,this.match(t.AS),this.state=1318,this.type_name_or_bind(),this.state=1319,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bitcast_expr(){let e=new wr(this.context,this.state);this.enterRule(e,74,t.RULE_bitcast_expr);try{this.enterOuterAlt(e,1),this.state=1321,this.match(t.BITCAST),this.state=1322,this.match(t.LPAREN),this.state=1323,this.expr(),this.state=1324,this.match(t.AS),this.state=1325,this.type_name_simple(),this.state=1326,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}exists_expr(){let e=new Fr(this.context,this.state);this.enterRule(e,76,t.RULE_exists_expr);try{switch(this.enterOuterAlt(e,1),this.state=1328,this.match(t.EXISTS),this.state=1329,this.match(t.LPAREN),this.state=1332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.state=1330,this.select_stmt();break;case t.VALUES:this.state=1331,this.values_stmt();break;default:throw new ce(this)}this.state=1334,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}case_expr(){let e,s=new Gr(this.context,this.state);this.enterRule(s,78,t.RULE_case_expr);try{if(this.enterOuterAlt(s,1),1===(this.state=1336,this.match(t.CASE),this.state=1338,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1337,this.expr();this.state=1341,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=1340,this.when_expr(),this.state=1343,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(312===e);this.state=1347,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1345,this.match(t.ELSE),this.state=1346,this.expr()),this.state=1349,this.match(t.END)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}lambda(){let e,s=new Br(this.context,this.state);this.enterRule(s,80,t.RULE_lambda);try{if(this.enterOuterAlt(s,1),this.state=1351,this.smart_parenthesis(),this.state=1363,this.errorHandler.sync(this),e=this.tokenStream.LA(1),37===e)switch(this.state=1352,this.match(t.ARROW),this.state=1361,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:this.state=1353,this.match(t.LPAREN),this.state=1354,this.expr(),this.state=1355,this.match(t.RPAREN);break;case t.LBRACE_CURLY:this.state=1357,this.match(t.LBRACE_CURLY),this.state=1358,this.lambda_body(),this.state=1359,this.match(t.RBRACE_CURLY);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}in_expr(){let e=new Yr(this.context,this.state);this.enterRule(e,82,t.RULE_in_expr);try{this.enterOuterAlt(e,1),this.state=1365,this.in_unary_subexpr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_api_expr(){let e=new Vr(this.context,this.state);this.enterRule(e,84,t.RULE_json_api_expr);try{switch(this.state=1370,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.JSON_VALUE:this.enterOuterAlt(e,1),this.state=1367,this.json_value();break;case t.JSON_EXISTS:this.enterOuterAlt(e,2),this.state=1368,this.json_exists();break;case t.JSON_QUERY:this.enterOuterAlt(e,3),this.state=1369,this.json_query();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}jsonpath_spec(){let e=new Wr(this.context,this.state);this.enterRule(e,86,t.RULE_jsonpath_spec);try{this.enterOuterAlt(e,1),this.state=1372,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variable_name(){let e=new Xr(this.context,this.state);this.enterRule(e,88,t.RULE_json_variable_name);try{switch(this.state=1376,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1374,this.id_expr();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=1375,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variable(){let e=new Kr(this.context,this.state);this.enterRule(e,90,t.RULE_json_variable);try{this.enterOuterAlt(e,1),this.state=1378,this.expr(),this.state=1379,this.match(t.AS),this.state=1380,this.json_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variables(){let e,s=new Qr(this.context,this.state);this.enterRule(s,92,t.RULE_json_variables);try{for(this.enterOuterAlt(s,1),this.state=1382,this.json_variable(),this.state=1387,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1383,this.match(t.COMMA),this.state=1384,this.json_variable(),this.state=1389,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_common_args(){let e,s=new qr(this.context,this.state);this.enterRule(s,94,t.RULE_json_common_args);try{this.enterOuterAlt(s,1),this.state=1390,this.expr(),this.state=1391,this.match(t.COMMA),this.state=1392,this.jsonpath_spec(),this.state=1395,this.errorHandler.sync(this),e=this.tokenStream.LA(1),217===e&&(this.state=1393,this.match(t.PASSING),this.state=1394,this.json_variables())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_case_handler(){let e=new jr(this.context,this.state);this.enterRule(e,96,t.RULE_json_case_handler);try{switch(this.state=1401,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ERROR:this.enterOuterAlt(e,1),this.state=1397,this.match(t.ERROR);break;case t.NULL:this.enterOuterAlt(e,2),this.state=1398,this.match(t.NULL);break;case t.DEFAULT:this.enterOuterAlt(e,3),this.state=1399,this.match(t.DEFAULT),this.state=1400,this.expr();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_value(){let e,s=new Jr(this.context,this.state);this.enterRule(s,98,t.RULE_json_value);try{for(this.enterOuterAlt(s,1),this.state=1403,this.match(t.JSON_VALUE),this.state=1404,this.match(t.LPAREN),this.state=1405,this.json_common_args(),this.state=1408,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=1406,this.match(t.RETURNING),this.state=1407,this.type_name_simple()),this.state=1416,this.errorHandler.sync(this),e=this.tokenStream.LA(1);98===e||121===e||199===e;)this.state=1410,this.json_case_handler(),this.state=1411,this.match(t.ON),this.state=1412,e=this.tokenStream.LA(1),115===e||121===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1418,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1419,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_exists_handler(){let e,s=new zr(this.context,this.state);this.enterRule(s,100,t.RULE_json_exists_handler);try{this.enterOuterAlt(s,1),this.state=1421,e=this.tokenStream.LA(1),121===e||133===e||293===e||300===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1422,this.match(t.ON),this.state=1423,this.match(t.ERROR)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_exists(){let e,s=new Zr(this.context,this.state);this.enterRule(s,102,t.RULE_json_exists);try{this.enterOuterAlt(s,1),this.state=1425,this.match(t.JSON_EXISTS),this.state=1426,this.match(t.LPAREN),this.state=1427,this.json_common_args(),this.state=1429,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(121===e||133===e||293===e||300===e)&&(this.state=1428,this.json_exists_handler()),this.state=1431,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_query_wrapper(){let e,s=new $r(this.context,this.state);this.enterRule(s,104,t.RULE_json_query_wrapper);try{switch(this.state=1444,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITHOUT:this.enterOuterAlt(s,1),this.state=1433,this.match(t.WITHOUT),this.state=1435,this.errorHandler.sync(this),e=this.tokenStream.LA(1),50===e&&(this.state=1434,this.match(t.ARRAY));break;case t.WITH:this.enterOuterAlt(s,2),this.state=1437,this.match(t.WITH),this.state=1439,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||297===e)&&(this.state=1438,e=this.tokenStream.LA(1),81===e||297===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1442,this.errorHandler.sync(this),e=this.tokenStream.LA(1),50===e&&(this.state=1441,this.match(t.ARRAY));break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_query_handler(){let e=new ti(this.context,this.state);this.enterRule(e,106,t.RULE_json_query_handler);try{switch(this.state=1452,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1446,this.match(t.ERROR);break;case 2:this.enterOuterAlt(e,2),this.state=1447,this.match(t.NULL);break;case 3:this.enterOuterAlt(e,3),this.state=1448,this.match(t.EMPTY),this.state=1449,this.match(t.ARRAY);break;case 4:this.enterOuterAlt(e,4),this.state=1450,this.match(t.EMPTY),this.state=1451,this.match(t.OBJECT)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_query(){let e,s=new ei(this.context,this.state);this.enterRule(s,108,t.RULE_json_query);try{if(this.enterOuterAlt(s,1),1===(this.state=1454,this.match(t.JSON_QUERY),this.state=1455,this.match(t.LPAREN),this.state=1456,this.json_common_args(),this.state=1460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(315===e||316===e)&&(this.state=1457,this.json_query_wrapper(),this.state=1458,this.match(t.WRAPPER)),this.state=1466,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1462,this.json_query_handler(),this.state=1463,this.match(t.ON),this.state=1464,this.match(t.EMPTY);this.state=1472,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||121===e||199===e)&&(this.state=1468,this.json_query_handler(),this.state=1469,this.match(t.ON),this.state=1470,this.match(t.ERROR)),this.state=1474,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}smart_parenthesis(){let e,s=new si(this.context,this.state);this.enterRule(s,110,t.RULE_smart_parenthesis);try{this.enterOuterAlt(s,1),this.state=1476,this.match(t.LPAREN),this.state=1478,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1477,this.named_expr_list()),this.state=1481,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1480,this.match(t.COMMA)),this.state=1483,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}expr_list(){let e=new ri(this.context,this.state);this.enterRule(e,112,t.RULE_expr_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1485,this.expr(),this.state=1490,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1486,this.match(t.COMMA),this.state=1487,this.expr()),this.state=1492,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pure_column_list(){let e,s=new ii(this.context,this.state);this.enterRule(s,114,t.RULE_pure_column_list);try{for(this.enterOuterAlt(s,1),this.state=1493,this.match(t.LPAREN),this.state=1494,this.an_id(),this.state=1499,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1495,this.match(t.COMMA),this.state=1496,this.an_id(),this.state=1501,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1502,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}pure_column_or_named(){let e=new ai(this.context,this.state);this.enterRule(e,116,t.RULE_pure_column_or_named);try{switch(this.state=1506,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.enterOuterAlt(e,1),this.state=1504,this.bind_parameter();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,2),this.state=1505,this.an_id();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pure_column_or_named_list(){let e,s=new ni(this.context,this.state);this.enterRule(s,118,t.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(s,1),this.state=1508,this.match(t.LPAREN),this.state=1509,this.pure_column_or_named(),this.state=1514,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1510,this.match(t.COMMA),this.state=1511,this.pure_column_or_named(),this.state=1516,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1517,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}column_name(){let e=new ci(this.context,this.state);this.enterRule(e,120,t.RULE_column_name);try{this.enterOuterAlt(e,1),this.state=1519,this.opt_id_prefix(),this.state=1520,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}without_column_name(){let e=new hi(this.context,this.state);this.enterRule(e,122,t.RULE_without_column_name);try{switch(this.state=1527,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1522,this.an_id(),this.state=1523,this.match(t.DOT),this.state=1524,this.an_id();break;case 2:this.enterOuterAlt(e,2),this.state=1526,this.an_id_without()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}column_list(){let e,s=new oi(this.context,this.state);this.enterRule(s,124,t.RULE_column_list);try{let r;for(this.enterOuterAlt(s,1),this.state=1529,this.column_name(),this.state=1534,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1530,this.match(t.COMMA),this.state=1531,this.column_name()),this.state=1536,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1538,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1537,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}without_column_list(){let e,s=new Ei(this.context,this.state);this.enterRule(s,126,t.RULE_without_column_list);try{let r;for(this.enterOuterAlt(s,1),this.state=1540,this.without_column_name(),this.state=1545,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1541,this.match(t.COMMA),this.state=1542,this.without_column_name()),this.state=1547,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1549,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1548,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_expr(){let e,s=new li(this.context,this.state);this.enterRule(s,128,t.RULE_named_expr);try{this.enterOuterAlt(s,1),this.state=1551,this.expr(),this.state=1554,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=1552,this.match(t.AS),this.state=1553,this.an_id_or_type())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_expr_list(){let e=new ui(this.context,this.state);this.enterRule(e,130,t.RULE_named_expr_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1556,this.named_expr(),this.state=1561,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1557,this.match(t.COMMA),this.state=1558,this.named_expr()),this.state=1563,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}invoke_expr(){let e,s=new Ri(this.context,this.state);this.enterRule(s,132,t.RULE_invoke_expr);try{switch(this.enterOuterAlt(s,1),this.state=1564,this.match(t.LPAREN),this.state=1571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRUCT_OPEN:case t.PLUS:case t.MINUS:case t.TILDA:case t.LPAREN:case t.DOLLAR:case t.LBRACE_CURLY:case t.LBRACE_SQUARE:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FALSE:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TRUE:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:case t.DIGITS:case t.INTEGER_VALUE:case t.REAL:case t.BLOB:this.state=1565,this.opt_set_quantifier(),this.state=1566,this.named_expr_list(),this.state=1568,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1567,this.match(t.COMMA));break;case t.ASTERISK:this.state=1570,this.match(t.ASTERISK);case t.RPAREN:}this.state=1573,this.match(t.RPAREN),this.state=1574,this.invoke_expr_tail()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}invoke_expr_tail(){let e,s=new _i(this.context,this.state);this.enterRule(s,134,t.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(s,1),this.state=1578,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1576,this.null_treatment();break;case 2:this.state=1577,this.filter_clause()}this.state=1582,this.errorHandler.sync(this),e=this.tokenStream.LA(1),214===e&&(this.state=1580,this.match(t.OVER),this.state=1581,this.window_name_or_specification())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}using_call_expr(){let e=new Ti(this.context,this.state);this.enterRule(e,136,t.RULE_using_call_expr);try{switch(this.enterOuterAlt(e,1),this.state=1592,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1584,this.an_id_or_type(),this.state=1585,this.match(t.NAMESPACE),this.state=1586,this.an_id_or_type();break;case 2:this.state=1588,this.an_id_expr();break;case 3:this.state=1589,this.bind_parameter();break;case 4:this.state=1590,this.match(t.EXTERNAL),this.state=1591,this.match(t.FUNCTION)}this.state=1594,this.invoke_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}key_expr(){let e=new Ai(this.context,this.state);this.enterRule(e,138,t.RULE_key_expr);try{this.enterOuterAlt(e,1),this.state=1596,this.match(t.LBRACE_SQUARE),this.state=1597,this.expr(),this.state=1598,this.match(t.RBRACE_SQUARE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}when_expr(){let e=new Si(this.context,this.state);this.enterRule(e,140,t.RULE_when_expr);try{this.enterOuterAlt(e,1),this.state=1600,this.match(t.WHEN),this.state=1601,this.expr(),this.state=1602,this.match(t.THEN),this.state=1603,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}literal_value(){let e=new di(this.context,this.state);this.enterRule(e,142,t.RULE_literal_value);try{switch(this.state=1615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,1),this.state=1605,this.integer();break;case t.REAL:this.enterOuterAlt(e,2),this.state=1606,this.real();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=1607,this.match(t.STRING_VALUE);break;case t.BLOB:this.enterOuterAlt(e,4),this.state=1608,this.match(t.BLOB);break;case t.NULL:this.enterOuterAlt(e,5),this.state=1609,this.match(t.NULL);break;case t.CURRENT_TIME:this.enterOuterAlt(e,6),this.state=1610,this.match(t.CURRENT_TIME);break;case t.CURRENT_DATE:this.enterOuterAlt(e,7),this.state=1611,this.match(t.CURRENT_DATE);break;case t.CURRENT_TIMESTAMP:this.enterOuterAlt(e,8),this.state=1612,this.match(t.CURRENT_TIMESTAMP);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,9),this.state=1613,this.bool_value();break;case t.EMPTY_ACTION:this.enterOuterAlt(e,10),this.state=1614,this.match(t.EMPTY_ACTION);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bind_parameter(){let e=new Li(this.context,this.state);this.enterRule(e,144,t.RULE_bind_parameter);try{switch(this.enterOuterAlt(e,1),this.state=1617,this.match(t.DOLLAR),this.state=1621,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1618,this.an_id_or_type();break;case t.TRUE:this.state=1619,this.match(t.TRUE);break;case t.FALSE:this.state=1620,this.match(t.FALSE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_bind_parameter(){let e,s=new Ci(this.context,this.state);this.enterRule(s,146,t.RULE_opt_bind_parameter);try{this.enterOuterAlt(s,1),this.state=1623,this.bind_parameter(),this.state=1625,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=1624,this.match(t.QUESTION))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}bind_parameter_list(){let e,s=new Ni(this.context,this.state);this.enterRule(s,148,t.RULE_bind_parameter_list);try{for(this.enterOuterAlt(s,1),this.state=1627,this.bind_parameter(),this.state=1632,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1628,this.match(t.COMMA),this.state=1629,this.bind_parameter(),this.state=1634,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_bind_parameter(){let e,s=new Ii(this.context,this.state);this.enterRule(s,150,t.RULE_named_bind_parameter);try{this.enterOuterAlt(s,1),this.state=1635,this.bind_parameter(),this.state=1638,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=1636,this.match(t.AS),this.state=1637,this.bind_parameter())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_bind_parameter_list(){let e,s=new Oi(this.context,this.state);this.enterRule(s,152,t.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(s,1),this.state=1640,this.named_bind_parameter(),this.state=1645,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1641,this.match(t.COMMA),this.state=1642,this.named_bind_parameter(),this.state=1647,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}signed_number(){let e,s=new pi(this.context,this.state);this.enterRule(s,154,t.RULE_signed_number);try{switch(this.enterOuterAlt(s,1),this.state=1649,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(17===e||18===e)&&(this.state=1648,e=this.tokenStream.LA(1),17===e||18===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.state=1651,this.integer();break;case t.REAL:this.state=1652,this.real();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_simple(){let e=new gi(this.context,this.state);this.enterRule(e,156,t.RULE_type_name_simple);try{this.enterOuterAlt(e,1),this.state=1655,this.an_id_pure()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}integer_or_bind(){let e=new mi(this.context,this.state);this.enterRule(e,158,t.RULE_integer_or_bind);try{switch(this.state=1659,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,1),this.state=1657,this.integer();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=1658,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tag(){let e=new xi(this.context,this.state);this.enterRule(e,160,t.RULE_type_name_tag);try{switch(this.state=1664,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1661,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=1662,this.match(t.STRING_VALUE);break;case t.DOLLAR:this.enterOuterAlt(e,3),this.state=1663,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_arg(){let e=new Ui(this.context,this.state);this.enterRule(e,162,t.RULE_struct_arg);try{this.enterOuterAlt(e,1),this.state=1666,this.type_name_tag(),this.state=1667,this.match(t.COLON),this.state=1668,this.type_name_or_bind()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_arg_positional(){let e,s=new fi(this.context,this.state);this.enterRule(s,164,t.RULE_struct_arg_positional);try{switch(this.state=1682,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1670,this.type_name_tag(),this.state=1671,this.type_name_or_bind(),this.state=1676,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(197===e||199===e)&&(this.state=1673,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1672,this.match(t.NOT)),this.state=1675,this.match(t.NULL));break;case 2:this.enterOuterAlt(s,2),this.state=1678,this.type_name_or_bind(),this.state=1679,this.match(t.AS),this.state=1680,this.type_name_tag()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}variant_arg(){let e=new Pi(this.context,this.state);this.enterRule(e,166,t.RULE_variant_arg);try{if(this.enterOuterAlt(e,1),1===(this.state=1687,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1684,this.type_name_tag(),this.state=1685,this.match(t.COLON);this.state=1689,this.type_name_or_bind()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}callable_arg(){let e,s=new ki(this.context,this.state);this.enterRule(s,168,t.RULE_callable_arg);try{this.enterOuterAlt(s,1),this.state=1691,this.variant_arg(),this.state=1695,this.errorHandler.sync(this),e=this.tokenStream.LA(1),33===e&&(this.state=1692,this.match(t.LBRACE_CURLY),this.state=1693,this.match(t.AUTOMAP),this.state=1694,this.match(t.RBRACE_CURLY))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}callable_arg_list(){let e=new Mi(this.context,this.state);this.enterRule(e,170,t.RULE_callable_arg_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1697,this.callable_arg(),this.state=1702,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1698,this.match(t.COMMA),this.state=1699,this.callable_arg()),this.state=1704,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_decimal(){let e=new yi(this.context,this.state);this.enterRule(e,172,t.RULE_type_name_decimal);try{this.enterOuterAlt(e,1),this.state=1705,this.match(t.DECIMAL),this.state=1706,this.match(t.LPAREN),this.state=1707,this.integer_or_bind(),this.state=1708,this.match(t.COMMA),this.state=1709,this.integer_or_bind(),this.state=1710,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_optional(){let e=new Di(this.context,this.state);this.enterRule(e,174,t.RULE_type_name_optional);try{this.enterOuterAlt(e,1),this.state=1712,this.match(t.OPTIONAL),this.state=1713,this.match(t.LESS),this.state=1714,this.type_name_or_bind(),this.state=1715,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tuple(){let e,s=new vi(this.context,this.state);this.enterRule(s,176,t.RULE_type_name_tuple);try{let r;switch(this.enterOuterAlt(s,1),this.state=1717,this.match(t.TUPLE),this.state=1734,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS:if(this.state=1718,this.match(t.LESS),this.state=1730,this.errorHandler.sync(this),e=this.tokenStream.LA(1),32===e||69===e||96===e||106===e||119===e||138===e||183===e||209===e||!(e-245&-32)&&1<<e-245&406847489||!(e-284&-32)&&1<<e-284&33555457||!(e-319&-32)&&1<<e-319&7){for(this.state=1719,this.type_name_or_bind(),this.state=1724,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1720,this.match(t.COMMA),this.state=1721,this.type_name_or_bind()),this.state=1726,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1728,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1727,this.match(t.COMMA))}this.state=1732,this.match(t.GREATER);break;case t.NOT_EQUALS2:this.state=1733,this.match(t.NOT_EQUALS2);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_struct(){let e,s=new bi(this.context,this.state);this.enterRule(s,178,t.RULE_type_name_struct);try{let r;switch(this.enterOuterAlt(s,1),this.state=1736,this.match(t.STRUCT),this.state=1753,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS:if(this.state=1737,this.match(t.LESS),this.state=1749,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-32&-32)&&1<<e-32&4026531585||!(e-64&-32)&&1<<e-64&4294967263||!(e-96&-32)&&1<<e-96&4286577663||!(e-128&-32)&&1<<e-128&4294704095||!(e-160&-32)&&1<<e-160&4286578687||!(e-192&-32)&&1<<e-192&4294836223||!(e-224&-32)&&1<<e-224&4292739071||!(e-256&-32)&&1<<e-256&4026398719||!(e-288&-32)&&1<<e-288&4292870047||320===e||321===e){for(this.state=1738,this.struct_arg(),this.state=1743,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1739,this.match(t.COMMA),this.state=1740,this.struct_arg()),this.state=1745,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1747,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1746,this.match(t.COMMA))}this.state=1751,this.match(t.GREATER);break;case t.NOT_EQUALS2:this.state=1752,this.match(t.NOT_EQUALS2);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_variant(){let e,s=new Hi(this.context,this.state);this.enterRule(s,180,t.RULE_type_name_variant);try{let r;for(this.enterOuterAlt(s,1),this.state=1755,this.match(t.VARIANT),this.state=1756,this.match(t.LESS),this.state=1757,this.variant_arg(),this.state=1762,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1758,this.match(t.COMMA),this.state=1759,this.variant_arg()),this.state=1764,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1766,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1765,this.match(t.COMMA)),this.state=1768,this.match(t.GREATER)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_list(){let e=new wi(this.context,this.state);this.enterRule(e,182,t.RULE_type_name_list);try{this.enterOuterAlt(e,1),this.state=1770,this.match(t.LIST),this.state=1771,this.match(t.LESS),this.state=1772,this.type_name_or_bind(),this.state=1773,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_stream(){let e=new Fi(this.context,this.state);this.enterRule(e,184,t.RULE_type_name_stream);try{this.enterOuterAlt(e,1),this.state=1775,this.match(t.STREAM),this.state=1776,this.match(t.LESS),this.state=1777,this.type_name_or_bind(),this.state=1778,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_flow(){let e=new Gi(this.context,this.state);this.enterRule(e,186,t.RULE_type_name_flow);try{this.enterOuterAlt(e,1),this.state=1780,this.match(t.FLOW),this.state=1781,this.match(t.LESS),this.state=1782,this.type_name_or_bind(),this.state=1783,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_dict(){let e=new Bi(this.context,this.state);this.enterRule(e,188,t.RULE_type_name_dict);try{this.enterOuterAlt(e,1),this.state=1785,this.match(t.DICT),this.state=1786,this.match(t.LESS),this.state=1787,this.type_name_or_bind(),this.state=1788,this.match(t.COMMA),this.state=1789,this.type_name_or_bind(),this.state=1790,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_set(){let e=new Yi(this.context,this.state);this.enterRule(e,190,t.RULE_type_name_set);try{this.enterOuterAlt(e,1),this.state=1792,this.match(t.SET),this.state=1793,this.match(t.LESS),this.state=1794,this.type_name_or_bind(),this.state=1795,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_enum(){let e,s=new Vi(this.context,this.state);this.enterRule(s,192,t.RULE_type_name_enum);try{let r;for(this.enterOuterAlt(s,1),this.state=1797,this.match(t.ENUM),this.state=1798,this.match(t.LESS),this.state=1799,this.type_name_tag(),this.state=1804,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1800,this.match(t.COMMA),this.state=1801,this.type_name_tag()),this.state=1806,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1808,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1807,this.match(t.COMMA)),this.state=1810,this.match(t.GREATER)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_resource(){let e=new Wi(this.context,this.state);this.enterRule(e,194,t.RULE_type_name_resource);try{this.enterOuterAlt(e,1),this.state=1812,this.match(t.RESOURCE),this.state=1813,this.match(t.LESS),this.state=1814,this.type_name_tag(),this.state=1815,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tagged(){let e=new Xi(this.context,this.state);this.enterRule(e,196,t.RULE_type_name_tagged);try{this.enterOuterAlt(e,1),this.state=1817,this.match(t.TAGGED),this.state=1818,this.match(t.LESS),this.state=1819,this.type_name_or_bind(),this.state=1820,this.match(t.COMMA),this.state=1821,this.type_name_tag(),this.state=1822,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_callable(){let e,s=new Ki(this.context,this.state);this.enterRule(s,198,t.RULE_type_name_callable);try{this.enterOuterAlt(s,1),this.state=1824,this.match(t.CALLABLE),this.state=1825,this.match(t.LESS),this.state=1826,this.match(t.LPAREN),this.state=1828,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-32&-32)&&1<<e-32&4026531585||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&4294967295||!(e-128&-32)&&1<<e-128&4294705119||!(e-160&-32)&&1<<e-160&4294967295||!(e-192&-32)&&1<<e-192&4294967295||!(e-224&-32)&&1<<e-224&4294836223||!(e-256&-32)&&1<<e-256&4294967295||!(e-288&-32)&&1<<e-288&4294967263||320===e||321===e)&&(this.state=1827,this.callable_arg_list()),this.state=1831,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1830,this.match(t.COMMA)),this.state=1837,this.errorHandler.sync(this),e=this.tokenStream.LA(1),39===e&&(this.state=1833,this.match(t.LBRACE_SQUARE),this.state=1834,this.callable_arg_list(),this.state=1835,this.match(t.RBRACE_SQUARE)),this.state=1839,this.match(t.RPAREN),this.state=1840,this.match(t.ARROW),this.state=1841,this.type_name_or_bind(),this.state=1842,this.match(t.GREATER)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_composite(){let e,s=new Qi(this.context,this.state);this.enterRule(s,200,t.RULE_type_name_composite);try{switch(this.enterOuterAlt(s,1),this.state=1857,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPTIONAL:this.state=1844,this.type_name_optional();break;case t.TUPLE:this.state=1845,this.type_name_tuple();break;case t.STRUCT:this.state=1846,this.type_name_struct();break;case t.VARIANT:this.state=1847,this.type_name_variant();break;case t.LIST:this.state=1848,this.type_name_list();break;case t.STREAM:this.state=1849,this.type_name_stream();break;case t.FLOW:this.state=1850,this.type_name_flow();break;case t.DICT:this.state=1851,this.type_name_dict();break;case t.SET:this.state=1852,this.type_name_set();break;case t.ENUM:this.state=1853,this.type_name_enum();break;case t.RESOURCE:this.state=1854,this.type_name_resource();break;case t.TAGGED:this.state=1855,this.type_name_tagged();break;case t.CALLABLE:this.state=1856,this.type_name_callable();break;default:throw new ce(this)}for(this.state=1862,this.errorHandler.sync(this),e=this.tokenStream.LA(1);28===e;)this.state=1859,this.match(t.QUESTION),this.state=1864,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name(){let e,s=new qi(this.context,this.state);this.enterRule(s,202,t.RULE_type_name);try{switch(this.state=1876,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STREAM:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(s,1),this.state=1865,this.type_name_composite();break;case t.DECIMAL:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:switch(this.enterOuterAlt(s,2),this.state=1868,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DECIMAL:this.state=1866,this.type_name_decimal();break;case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1867,this.type_name_simple();break;default:throw new ce(this)}for(this.state=1873,this.errorHandler.sync(this),e=this.tokenStream.LA(1);28===e;)this.state=1870,this.match(t.QUESTION),this.state=1875,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_or_bind(){let e=new ji(this.context,this.state);this.enterRule(e,204,t.RULE_type_name_or_bind);try{switch(this.state=1880,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALLABLE:case t.DECIMAL:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STREAM:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1878,this.type_name();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=1879,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}value_constructor_literal(){let e=new Ji(this.context,this.state);this.enterRule(e,206,t.RULE_value_constructor_literal);try{this.enterOuterAlt(e,1),this.state=1882,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}value_constructor(){let e=new zi(this.context,this.state);this.enterRule(e,208,t.RULE_value_constructor);try{switch(this.state=1907,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VARIANT:this.enterOuterAlt(e,1),this.state=1884,this.match(t.VARIANT),this.state=1885,this.match(t.LPAREN),this.state=1886,this.expr(),this.state=1887,this.match(t.COMMA),this.state=1888,this.expr(),this.state=1889,this.match(t.COMMA),this.state=1890,this.expr(),this.state=1891,this.match(t.RPAREN);break;case t.ENUM:this.enterOuterAlt(e,2),this.state=1893,this.match(t.ENUM),this.state=1894,this.match(t.LPAREN),this.state=1895,this.expr(),this.state=1896,this.match(t.COMMA),this.state=1897,this.expr(),this.state=1898,this.match(t.RPAREN);break;case t.CALLABLE:this.enterOuterAlt(e,3),this.state=1900,this.match(t.CALLABLE),this.state=1901,this.match(t.LPAREN),this.state=1902,this.expr(),this.state=1903,this.match(t.COMMA),this.state=1904,this.expr(),this.state=1905,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declare_stmt(){let e,s=new Zi(this.context,this.state);this.enterRule(s,210,t.RULE_declare_stmt);try{this.enterOuterAlt(s,1),this.state=1909,this.match(t.DECLARE),this.state=1910,this.bind_parameter(),this.state=1911,this.match(t.AS),this.state=1912,this.type_name(),this.state=1915,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=1913,this.match(t.EQUALS),this.state=1914,this.literal_value())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}module_path(){let e,s=new $i(this.context,this.state);this.enterRule(s,212,t.RULE_module_path);try{for(this.enterOuterAlt(s,1),this.state=1918,this.errorHandler.sync(this),e=this.tokenStream.LA(1),24===e&&(this.state=1917,this.match(t.DOT)),this.state=1920,this.an_id(),this.state=1925,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=1921,this.match(t.DOT),this.state=1922,this.an_id(),this.state=1927,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}import_stmt(){let e=new ta(this.context,this.state);this.enterRule(e,214,t.RULE_import_stmt);try{this.enterOuterAlt(e,1),this.state=1928,this.match(t.IMPORT),this.state=1929,this.module_path(),this.state=1930,this.match(t.SYMBOLS),this.state=1931,this.named_bind_parameter_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}export_stmt(){let e=new ea(this.context,this.state);this.enterRule(e,216,t.RULE_export_stmt);try{this.enterOuterAlt(e,1),this.state=1933,this.match(t.EXPORT),this.state=1934,this.bind_parameter_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}call_action(){let e,s=new sa(this.context,this.state);this.enterRule(s,218,t.RULE_call_action);try{switch(this.enterOuterAlt(s,1),this.state=1938,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.state=1936,this.bind_parameter();break;case t.EMPTY_ACTION:this.state=1937,this.match(t.EMPTY_ACTION);break;default:throw new ce(this)}this.state=1940,this.match(t.LPAREN),this.state=1942,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1941,this.expr_list()),this.state=1944,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}inline_action(){let e=new ra(this.context,this.state);this.enterRule(e,220,t.RULE_inline_action);try{this.enterOuterAlt(e,1),this.state=1946,this.match(t.BEGIN),this.state=1947,this.define_action_or_subquery_body(),this.state=1948,this.match(t.END),this.state=1949,this.match(t.DO)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}do_stmt(){let e=new ia(this.context,this.state);this.enterRule(e,222,t.RULE_do_stmt);try{switch(this.enterOuterAlt(e,1),this.state=1951,this.match(t.DO),this.state=1954,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.EMPTY_ACTION:this.state=1952,this.call_action();break;case t.BEGIN:this.state=1953,this.inline_action();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pragma_stmt(){let e,s=new aa(this.context,this.state);this.enterRule(s,224,t.RULE_pragma_stmt);try{switch(this.enterOuterAlt(s,1),this.state=1956,this.match(t.PRAGMA),this.state=1957,this.opt_id_prefix_or_type(),this.state=1958,this.an_id(),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUALS:this.state=1959,this.match(t.EQUALS),this.state=1960,this.pragma_value();break;case t.LPAREN:for(this.state=1961,this.match(t.LPAREN),this.state=1962,this.pragma_value(),this.state=1967,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1963,this.match(t.COMMA),this.state=1964,this.pragma_value(),this.state=1969,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1970,this.match(t.RPAREN);case t.EOF:case t.SEMICOLON:case t.END:}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}pragma_value(){let e=new na(this.context,this.state);this.enterRule(e,226,t.RULE_pragma_value);try{switch(this.state=1979,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PLUS:case t.MINUS:case t.DIGITS:case t.INTEGER_VALUE:case t.REAL:this.enterOuterAlt(e,1),this.state=1974,this.signed_number();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,2),this.state=1975,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=1976,this.match(t.STRING_VALUE);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=1977,this.bool_value();break;case t.DOLLAR:this.enterOuterAlt(e,5),this.state=1978,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sort_specification(){let e,s=new ca(this.context,this.state);this.enterRule(s,228,t.RULE_sort_specification);try{this.enterOuterAlt(s,1),this.state=1981,this.expr(),this.state=1983,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(52===e||103===e)&&(this.state=1982,e=this.tokenStream.LA(1),52===e||103===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sort_specification_list(){let e,s=new ha(this.context,this.state);this.enterRule(s,230,t.RULE_sort_specification_list);try{for(this.enterOuterAlt(s,1),this.state=1985,this.sort_specification(),this.state=1990,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1986,this.match(t.COMMA),this.state=1987,this.sort_specification(),this.state=1992,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_stmt(){let e,s=new oa(this.context,this.state);this.enterRule(s,232,t.RULE_select_stmt);try{for(this.enterOuterAlt(s,1),this.state=1993,this.select_kind_parenthesis(),this.state=1999,this.errorHandler.sync(this),e=this.tokenStream.LA(1);124===e||169===e||298===e;)this.state=1994,this.select_op(),this.state=1995,this.select_kind_parenthesis(),this.state=2001,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_unparenthesized_stmt(){let e,s=new Ea(this.context,this.state);this.enterRule(s,234,t.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(s,1),this.state=2002,this.select_kind_partial(),this.state=2008,this.errorHandler.sync(this),e=this.tokenStream.LA(1);124===e||169===e||298===e;)this.state=2003,this.select_op(),this.state=2004,this.select_kind_parenthesis(),this.state=2010,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_kind_parenthesis(){let e=new la(this.context,this.state);this.enterRule(e,236,t.RULE_select_kind_parenthesis);try{switch(this.state=2016,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.enterOuterAlt(e,1),this.state=2011,this.select_kind_partial();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=2012,this.match(t.LPAREN),this.state=2013,this.select_kind_partial(),this.state=2014,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}select_op(){let e,s=new ua(this.context,this.state);this.enterRule(s,238,t.RULE_select_op);try{switch(this.state=2024,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.UNION:this.enterOuterAlt(s,1),this.state=2018,this.match(t.UNION),this.state=2020,this.errorHandler.sync(this),e=this.tokenStream.LA(1),44===e&&(this.state=2019,this.match(t.ALL));break;case t.INTERSECT:this.enterOuterAlt(s,2),this.state=2022,this.match(t.INTERSECT);break;case t.EXCEPT:this.enterOuterAlt(s,3),this.state=2023,this.match(t.EXCEPT);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_kind_partial(){let e,s=new Ra(this.context,this.state);this.enterRule(s,240,t.RULE_select_kind_partial);try{this.enterOuterAlt(s,1),this.state=2026,this.select_kind(),this.state=2033,this.errorHandler.sync(this),e=this.tokenStream.LA(1),182===e&&(this.state=2027,this.match(t.LIMIT),this.state=2028,this.expr(),this.state=2031,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(25===e||203===e)&&(this.state=2029,e=this.tokenStream.LA(1),25===e||203===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2030,this.expr()))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_kind(){let e,s=new _a(this.context,this.state);this.enterRule(s,242,t.RULE_select_kind);try{switch(this.enterOuterAlt(s,1),this.state=2036,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=2035,this.match(t.DISCARD)),this.state=2041,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PROCESS:this.state=2038,this.process_core();break;case t.REDUCE:this.state=2039,this.reduce_core();break;case t.FROM:case t.SELECT:this.state=2040,this.select_core();break;default:throw new ce(this)}this.state=2046,this.errorHandler.sync(this),e=this.tokenStream.LA(1),170===e&&(this.state=2043,this.match(t.INTO),this.state=2044,this.match(t.RESULT),this.state=2045,this.pure_column_or_named())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}process_core(){let e,s=new Ta(this.context,this.state);this.enterRule(s,244,t.RULE_process_core);try{if(this.enterOuterAlt(s,1),1===(this.state=2048,this.match(t.PROCESS),this.state=2050,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2049,this.match(t.STREAM);for(this.state=2052,this.named_single_source(),this.state=2057,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2053,this.match(t.COMMA),this.state=2054,this.named_single_source(),this.state=2059,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2081,this.errorHandler.sync(this),e=this.tokenStream.LA(1),306===e&&(this.state=2060,this.match(t.USING),this.state=2061,this.using_call_expr(),this.state=2064,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2062,this.match(t.AS),this.state=2063,this.an_id()),this.state=2068,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2066,this.match(t.WITH),this.state=2067,this.external_call_settings()),this.state=2071,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2070,this.where_expr()),this.state=2075,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2073,this.match(t.HAVING),this.state=2074,this.expr()),this.state=2079,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=2077,this.match(t.ASSUME),this.state=2078,this.order_by_clause()))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}external_call_param(){let e=new Aa(this.context,this.state);this.enterRule(e,246,t.RULE_external_call_param);try{this.enterOuterAlt(e,1),this.state=2083,this.an_id(),this.state=2084,this.match(t.EQUALS),this.state=2085,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}external_call_settings(){let e,s=new Sa(this.context,this.state);this.enterRule(s,248,t.RULE_external_call_settings);try{for(this.enterOuterAlt(s,1),this.state=2087,this.external_call_param(),this.state=2092,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2088,this.match(t.COMMA),this.state=2089,this.external_call_param(),this.state=2094,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}reduce_core(){let e,s=new da(this.context,this.state);this.enterRule(s,250,t.RULE_reduce_core);try{for(this.enterOuterAlt(s,1),this.state=2095,this.match(t.REDUCE),this.state=2096,this.named_single_source(),this.state=2101,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2097,this.match(t.COMMA),this.state=2098,this.named_single_source(),this.state=2103,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(1===(this.state=2106,this.errorHandler.sync(this),e=this.tokenStream.LA(1),227===e&&(this.state=2104,this.match(t.PRESORT),this.state=2105,this.sort_specification_list()),this.state=2108,this.match(t.ON),this.state=2109,this.column_list(),this.state=2110,this.match(t.USING),this.state=2112,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2111,this.match(t.ALL);this.state=2114,this.using_call_expr(),this.state=2117,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2115,this.match(t.AS),this.state=2116,this.an_id()),this.state=2120,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2119,this.where_expr()),this.state=2124,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2122,this.match(t.HAVING),this.state=2123,this.expr()),this.state=2128,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=2126,this.match(t.ASSUME),this.state=2127,this.order_by_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}opt_set_quantifier(){let e,s=new La(this.context,this.state);this.enterRule(s,252,t.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(s,1),this.state=2131,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2130,e=this.tokenStream.LA(1),44===e||110===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_core(){let e,s=new Ca(this.context,this.state);this.enterRule(s,254,t.RULE_select_core);try{let r;if(this.enterOuterAlt(s,1),1===(this.state=2134,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e&&(this.state=2133,this.from_stmt()),this.state=2136,this.match(t.SELECT),this.state=2138,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2137,this.match(t.STREAM);for(this.state=2140,this.opt_set_quantifier(),this.state=2141,this.result_column(),this.state=2146,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=2142,this.match(t.COMMA),this.state=2143,this.result_column()),this.state=2148,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2150,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=2149,this.match(t.COMMA)),this.state=2154,this.errorHandler.sync(this),e=this.tokenStream.LA(1),316===e&&(this.state=2152,this.match(t.WITHOUT),this.state=2153,this.without_column_list()),this.state=2157,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e&&(this.state=2156,this.from_stmt()),this.state=2160,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2159,this.where_expr()),this.state=2163,this.errorHandler.sync(this),e=this.tokenStream.LA(1),148===e&&(this.state=2162,this.group_by_clause()),this.state=2167,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2165,this.match(t.HAVING),this.state=2166,this.expr()),this.state=2170,this.errorHandler.sync(this),e=this.tokenStream.LA(1),314===e&&(this.state=2169,this.window_clause()),this.state=2173,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(53===e||211===e)&&(this.state=2172,this.ext_order_by_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_recognition_clause(){let e,s=new Na(this.context,this.state);this.enterRule(s,256,t.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(s,1),this.state=2175,this.match(t.MATCH_RECOGNIZE),this.state=2176,this.match(t.LPAREN),this.state=2178,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=2177,this.window_partition_clause()),this.state=2181,this.errorHandler.sync(this),e=this.tokenStream.LA(1),211===e&&(this.state=2180,this.order_by_clause()),this.state=2184,this.errorHandler.sync(this),e=this.tokenStream.LA(1),189===e&&(this.state=2183,this.row_pattern_measures()),this.state=2187,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(44===e||206===e)&&(this.state=2186,this.row_pattern_rows_per_match()),this.state=2189,this.row_pattern_common_syntax(),this.state=2190,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_rows_per_match(){let e,s=new Ia(this.context,this.state);this.enterRule(s,258,t.RULE_row_pattern_rows_per_match);try{switch(this.state=2203,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ONE:this.enterOuterAlt(s,1),this.state=2192,this.match(t.ONE),this.state=2193,this.match(t.ROW),this.state=2194,this.match(t.PER),this.state=2195,this.match(t.MATCH);break;case t.ALL:this.enterOuterAlt(s,2),this.state=2196,this.match(t.ALL),this.state=2197,this.match(t.ROWS),this.state=2198,this.match(t.PER),this.state=2199,this.match(t.MATCH),this.state=2201,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(204===e||269===e||315===e)&&(this.state=2200,this.row_pattern_empty_match_handling());break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_empty_match_handling(){let e=new Oa(this.context,this.state);this.enterRule(e,260,t.RULE_row_pattern_empty_match_handling);try{switch(this.state=2214,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SHOW:this.enterOuterAlt(e,1),this.state=2205,this.match(t.SHOW),this.state=2206,this.match(t.EMPTY),this.state=2207,this.match(t.MATCHES);break;case t.OMIT:this.enterOuterAlt(e,2),this.state=2208,this.match(t.OMIT),this.state=2209,this.match(t.EMPTY),this.state=2210,this.match(t.MATCHES);break;case t.WITH:this.enterOuterAlt(e,3),this.state=2211,this.match(t.WITH),this.state=2212,this.match(t.UNMATCHED),this.state=2213,this.match(t.ROWS);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_measures(){let e=new pa(this.context,this.state);this.enterRule(e,262,t.RULE_row_pattern_measures);try{this.enterOuterAlt(e,1),this.state=2216,this.match(t.MEASURES),this.state=2217,this.row_pattern_measure_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_measure_list(){let e,s=new ga(this.context,this.state);this.enterRule(s,264,t.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(s,1),this.state=2219,this.row_pattern_measure_definition(),this.state=2224,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2220,this.match(t.COMMA),this.state=2221,this.row_pattern_measure_definition(),this.state=2226,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_measure_definition(){let e=new ma(this.context,this.state);this.enterRule(e,266,t.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(e,1),this.state=2227,this.expr(),this.state=2228,this.match(t.AS),this.state=2229,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_common_syntax(){let e,s=new xa(this.context,this.state);this.enterRule(s,268,t.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(s,1),this.state=2234,this.errorHandler.sync(this),e=this.tokenStream.LA(1),43===e&&(this.state=2231,this.match(t.AFTER),this.state=2232,this.match(t.MATCH),this.state=2233,this.row_pattern_skip_to()),this.state=2237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(164===e||264===e)&&(this.state=2236,this.row_pattern_initial_or_seek()),this.state=2239,this.match(t.PATTERN),this.state=2240,this.match(t.LPAREN),this.state=2241,this.row_pattern(),this.state=2242,this.match(t.RPAREN),this.state=2244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),275===e&&(this.state=2243,this.row_pattern_subset_clause()),this.state=2246,this.match(t.DEFINE),this.state=2247,this.row_pattern_definition_list()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_skip_to(){let e=new Ua(this.context,this.state);this.enterRule(e,270,t.RULE_row_pattern_skip_to);try{switch(this.state=2268,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2249,this.match(t.TSKIP),this.state=2250,this.match(t.TO),this.state=2251,this.match(t.NEXT),this.state=2252,this.match(t.ROW);break;case 2:this.enterOuterAlt(e,2),this.state=2253,this.match(t.TSKIP),this.state=2254,this.match(t.PAST),this.state=2255,this.match(t.LAST),this.state=2256,this.match(t.ROW);break;case 3:this.enterOuterAlt(e,3),this.state=2257,this.match(t.TSKIP),this.state=2258,this.match(t.TO),this.state=2259,this.match(t.FIRST),this.state=2260,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(e,4),this.state=2261,this.match(t.TSKIP),this.state=2262,this.match(t.TO),this.state=2263,this.match(t.LAST),this.state=2264,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(e,5),this.state=2265,this.match(t.TSKIP),this.state=2266,this.match(t.TO),this.state=2267,this.row_pattern_skip_to_variable_name()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_skip_to_variable_name(){let e=new fa(this.context,this.state);this.enterRule(e,272,t.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(e,1),this.state=2270,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_initial_or_seek(){let e,s=new Pa(this.context,this.state);this.enterRule(s,274,t.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(s,1),this.state=2272,e=this.tokenStream.LA(1),164===e||264===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern(){let e,s=new ka(this.context,this.state);this.enterRule(s,276,t.RULE_row_pattern);try{for(this.enterOuterAlt(s,1),this.state=2274,this.row_pattern_term(),this.state=2279,this.errorHandler.sync(this),e=this.tokenStream.LA(1);13===e;)this.state=2275,this.match(t.PIPE),this.state=2276,this.row_pattern_term(),this.state=2281,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_term(){let e,s=new Ma(this.context,this.state);this.enterRule(s,278,t.RULE_row_pattern_term);try{this.enterOuterAlt(s,1),this.state=2283,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2282,this.row_pattern_factor(),this.state=2285,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-26&-32)&&1<<e-26&705||222===e||320===e||321===e)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_factor(){let e=new ya(this.context,this.state);this.enterRule(e,280,t.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(e,1),this.state=2287,this.row_pattern_primary(),this.state=2289,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2288,this.row_pattern_quantifier()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_quantifier(){let e,s=new Da(this.context,this.state);this.enterRule(s,282,t.RULE_row_pattern_quantifier);try{switch(this.state=2319,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(s,1),this.state=2291,this.match(t.ASTERISK),this.state=2293,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2292,this.match(t.QUESTION));break;case 2:this.enterOuterAlt(s,2),this.state=2295,this.match(t.PLUS),this.state=2297,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2296,this.match(t.QUESTION));break;case 3:this.enterOuterAlt(s,3),this.state=2299,this.match(t.QUESTION),this.state=2301,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2300,this.match(t.QUESTION));break;case 4:this.enterOuterAlt(s,4),this.state=2303,this.match(t.LBRACE_CURLY),this.state=2305,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(322===e||323===e)&&(this.state=2304,this.integer()),this.state=2307,this.match(t.COMMA),this.state=2309,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(322===e||323===e)&&(this.state=2308,this.integer()),this.state=2311,this.match(t.RBRACE_CURLY),this.state=2313,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2312,this.match(t.QUESTION));break;case 5:this.enterOuterAlt(s,5),this.state=2315,this.match(t.LBRACE_CURLY),this.state=2316,this.integer(),this.state=2317,this.match(t.RBRACE_CURLY)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_primary(){let e,s=new va(this.context,this.state);this.enterRule(s,284,t.RULE_row_pattern_primary);try{switch(this.state=2336,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2321,this.row_pattern_primary_variable_name();break;case t.DOLLAR:this.enterOuterAlt(s,2),this.state=2322,this.match(t.DOLLAR);break;case t.CARET:this.enterOuterAlt(s,3),this.state=2323,this.match(t.CARET);break;case t.LPAREN:this.enterOuterAlt(s,4),this.state=2324,this.match(t.LPAREN),this.state=2326,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-26&-32)&&1<<e-26&705||222===e||320===e||321===e)&&(this.state=2325,this.row_pattern()),this.state=2328,this.match(t.RPAREN);break;case t.LBRACE_CURLY:this.enterOuterAlt(s,5),this.state=2329,this.match(t.LBRACE_CURLY),this.state=2330,this.match(t.MINUS),this.state=2331,this.row_pattern(),this.state=2332,this.match(t.MINUS),this.state=2333,this.match(t.RBRACE_CURLY);break;case t.PERMUTE:this.enterOuterAlt(s,6),this.state=2335,this.row_pattern_permute();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_primary_variable_name(){let e=new ba(this.context,this.state);this.enterRule(e,286,t.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(e,1),this.state=2338,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_permute(){let e,s=new Ha(this.context,this.state);this.enterRule(s,288,t.RULE_row_pattern_permute);try{for(this.enterOuterAlt(s,1),this.state=2340,this.match(t.PERMUTE),this.state=2341,this.match(t.LPAREN),this.state=2342,this.row_pattern(),this.state=2347,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2343,this.match(t.COMMA),this.state=2344,this.row_pattern(),this.state=2349,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2350,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_subset_clause(){let e=new wa(this.context,this.state);this.enterRule(e,290,t.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(e,1),this.state=2352,this.match(t.SUBSET),this.state=2353,this.row_pattern_subset_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_list(){let e,s=new Fa(this.context,this.state);this.enterRule(s,292,t.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(s,1),this.state=2355,this.row_pattern_subset_item(),this.state=2360,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2356,this.match(t.COMMA),this.state=2357,this.row_pattern_subset_item(),this.state=2362,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_subset_item(){let e=new Ga(this.context,this.state);this.enterRule(e,294,t.RULE_row_pattern_subset_item);try{this.enterOuterAlt(e,1),this.state=2363,this.row_pattern_subset_item_variable_name(),this.state=2364,this.match(t.EQUALS),this.state=2365,this.match(t.LPAREN),this.state=2366,this.row_pattern_subset_rhs(),this.state=2367,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_item_variable_name(){let e=new Ba(this.context,this.state);this.enterRule(e,296,t.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(e,1),this.state=2369,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_rhs(){let e,s=new Ya(this.context,this.state);this.enterRule(s,298,t.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(s,1),this.state=2371,this.row_pattern_subset_rhs_variable_name(),this.state=2376,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2372,this.match(t.COMMA),this.state=2373,this.row_pattern_subset_rhs_variable_name(),this.state=2378,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_subset_rhs_variable_name(){let e=new Va(this.context,this.state);this.enterRule(e,300,t.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(e,1),this.state=2379,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_list(){let e,s=new Wa(this.context,this.state);this.enterRule(s,302,t.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(s,1),this.state=2381,this.row_pattern_definition(),this.state=2386,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2382,this.match(t.COMMA),this.state=2383,this.row_pattern_definition(),this.state=2388,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_definition(){let e=new Xa(this.context,this.state);this.enterRule(e,304,t.RULE_row_pattern_definition);try{this.enterOuterAlt(e,1),this.state=2389,this.row_pattern_definition_variable_name(),this.state=2390,this.match(t.AS),this.state=2391,this.row_pattern_definition_search_condition()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_variable_name(){let e=new Ka(this.context,this.state);this.enterRule(e,306,t.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(e,1),this.state=2393,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_search_condition(){let e=new Qa(this.context,this.state);this.enterRule(e,308,t.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(e,1),this.state=2395,this.search_condition()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}search_condition(){let e=new qa(this.context,this.state);this.enterRule(e,310,t.RULE_search_condition);try{this.enterOuterAlt(e,1),this.state=2397,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_variable_name(){let e=new ja(this.context,this.state);this.enterRule(e,312,t.RULE_row_pattern_variable_name);try{this.enterOuterAlt(e,1),this.state=2399,this.identifier()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}order_by_clause(){let e=new Ja(this.context,this.state);this.enterRule(e,314,t.RULE_order_by_clause);try{this.enterOuterAlt(e,1),this.state=2401,this.match(t.ORDER),this.state=2402,this.match(t.BY),this.state=2403,this.sort_specification_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ext_order_by_clause(){let e,s=new za(this.context,this.state);this.enterRule(s,316,t.RULE_ext_order_by_clause);try{this.enterOuterAlt(s,1),this.state=2406,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=2405,this.match(t.ASSUME)),this.state=2408,this.order_by_clause()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}group_by_clause(){let e,s=new Za(this.context,this.state);this.enterRule(s,318,t.RULE_group_by_clause);try{this.enterOuterAlt(s,1),this.state=2410,this.match(t.GROUP),this.state=2412,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=2411,this.match(t.COMPACT)),this.state=2414,this.match(t.BY),this.state=2415,this.opt_set_quantifier(),this.state=2416,this.grouping_element_list(),this.state=2419,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2417,this.match(t.WITH),this.state=2418,this.an_id())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}grouping_element_list(){let e,s=new $a(this.context,this.state);this.enterRule(s,320,t.RULE_grouping_element_list);try{for(this.enterOuterAlt(s,1),this.state=2421,this.grouping_element(),this.state=2426,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2422,this.match(t.COMMA),this.state=2423,this.grouping_element(),this.state=2428,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}grouping_element(){let e=new tn(this.context,this.state);this.enterRule(e,322,t.RULE_grouping_element);try{switch(this.state=2434,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2429,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(e,2),this.state=2430,this.rollup_list();break;case 3:this.enterOuterAlt(e,3),this.state=2431,this.cube_list();break;case 4:this.enterOuterAlt(e,4),this.state=2432,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(e,5),this.state=2433,this.hopping_window_specification()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ordinary_grouping_set(){let e=new en(this.context,this.state);this.enterRule(e,324,t.RULE_ordinary_grouping_set);try{this.enterOuterAlt(e,1),this.state=2436,this.named_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ordinary_grouping_set_list(){let e,s=new sn(this.context,this.state);this.enterRule(s,326,t.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(s,1),this.state=2438,this.ordinary_grouping_set(),this.state=2443,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2439,this.match(t.COMMA),this.state=2440,this.ordinary_grouping_set(),this.state=2445,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}rollup_list(){let e=new rn(this.context,this.state);this.enterRule(e,328,t.RULE_rollup_list);try{this.enterOuterAlt(e,1),this.state=2446,this.match(t.ROLLUP),this.state=2447,this.match(t.LPAREN),this.state=2448,this.ordinary_grouping_set_list(),this.state=2449,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cube_list(){let e=new an(this.context,this.state);this.enterRule(e,330,t.RULE_cube_list);try{this.enterOuterAlt(e,1),this.state=2451,this.match(t.CUBE),this.state=2452,this.match(t.LPAREN),this.state=2453,this.ordinary_grouping_set_list(),this.state=2454,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}grouping_sets_specification(){let e=new nn(this.context,this.state);this.enterRule(e,332,t.RULE_grouping_sets_specification);try{this.enterOuterAlt(e,1),this.state=2456,this.match(t.GROUPING),this.state=2457,this.match(t.SETS),this.state=2458,this.match(t.LPAREN),this.state=2459,this.grouping_element_list(),this.state=2460,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}hopping_window_specification(){let e=new cn(this.context,this.state);this.enterRule(e,334,t.RULE_hopping_window_specification);try{this.enterOuterAlt(e,1),this.state=2462,this.match(t.HOP),this.state=2463,this.match(t.LPAREN),this.state=2464,this.expr(),this.state=2465,this.match(t.COMMA),this.state=2466,this.expr(),this.state=2467,this.match(t.COMMA),this.state=2468,this.expr(),this.state=2469,this.match(t.COMMA),this.state=2470,this.expr(),this.state=2471,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}result_column(){let e=new hn(this.context,this.state);this.enterRule(e,336,t.RULE_result_column);try{switch(this.state=2482,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2473,this.opt_id_prefix(),this.state=2474,this.match(t.ASTERISK);break;case 2:switch(this.enterOuterAlt(e,2),this.state=2476,this.expr(),this.state=2480,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2477,this.match(t.AS),this.state=2478,this.an_id_or_type();break;case 2:this.state=2479,this.an_id_as_compat()}}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}join_source(){let e,s=new on(this.context,this.state);this.enterRule(s,338,t.RULE_join_source);try{if(this.enterOuterAlt(s,1),1===(this.state=2485,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2484,this.match(t.ANY);for(this.state=2487,this.flatten_source(),this.state=2498,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e||88===e||126===e||143===e||!(e-166&-32)&&1<<e-166&268443777||213===e||254===e;){if(1===(this.state=2488,this.join_op(),this.state=2490,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2489,this.match(t.ANY);this.state=2492,this.flatten_source(),this.state=2494,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(205===e||306===e)&&(this.state=2493,this.join_constraint()),this.state=2500,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_column(){let e,s=new En(this.context,this.state);this.enterRule(s,340,t.RULE_named_column);try{this.enterOuterAlt(s,1),this.state=2501,this.column_name(),this.state=2504,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2502,this.match(t.AS),this.state=2503,this.an_id())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}flatten_by_arg(){let e,s=new ln(this.context,this.state);this.enterRule(s,342,t.RULE_flatten_by_arg);try{switch(this.state=2514,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2506,this.named_column();break;case t.LPAREN:this.enterOuterAlt(s,2),this.state=2507,this.match(t.LPAREN),this.state=2508,this.named_expr_list(),this.state=2510,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=2509,this.match(t.COMMA)),this.state=2512,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}flatten_source(){let e,s=new un(this.context,this.state);this.enterRule(s,344,t.RULE_flatten_source);try{if(this.enterOuterAlt(s,1),this.state=2516,this.named_single_source(),this.state=2526,this.errorHandler.sync(this),e=this.tokenStream.LA(1),137===e)switch(this.state=2517,this.match(t.FLATTEN),this.state=2524,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BY:case t.DICT:case t.LIST:case t.OPTIONAL:this.state=2519,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(106===e||183===e||209===e)&&(this.state=2518,e=this.tokenStream.LA(1),106===e||183===e||209===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2521,this.match(t.BY),this.state=2522,this.flatten_by_arg();break;case t.COLUMNS:this.state=2523,this.match(t.COLUMNS);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_single_source(){let e,s=new Rn(this.context,this.state);this.enterRule(s,346,t.RULE_named_single_source);try{if(this.enterOuterAlt(s,1),1===(this.state=2528,this.single_source(),this.state=2530,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2529,this.row_pattern_recognition_clause();if(1===(this.state=2540,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.state=2532,this.match(t.AS),this.state=2533,this.an_id();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.LAST:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.NO:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.OTHERS:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.REVERT:case t.REVOKE:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.VACUUM:case t.VALUES:case t.VIRTUAL:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=2534,this.an_id_as_compat();break;default:throw new ce(this)}this.state=2538,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=2537,this.pure_column_list())}switch(this.state=2544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SAMPLE:this.state=2542,this.sample_clause();break;case t.TABLESAMPLE:this.state=2543,this.tablesample_clause();case t.EOF:case t.SEMICOLON:case t.COMMA:case t.RPAREN:case t.ASSUME:case t.CROSS:case t.END:case t.EXCEPT:case t.EXCLUSION:case t.FLATTEN:case t.FULL:case t.GROUP:case t.HAVING:case t.INNER:case t.INTERSECT:case t.INTO:case t.JOIN:case t.LEFT:case t.LIMIT:case t.NATURAL:case t.ON:case t.ORDER:case t.OUTER:case t.PRESORT:case t.RETURNING:case t.RIGHT:case t.SELECT:case t.UNION:case t.USING:case t.WHERE:case t.WINDOW:}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}single_source(){let e=new _n(this.context,this.state);this.enterRule(e,348,t.RULE_single_source);try{switch(this.state=2555,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2546,this.table_ref();break;case 2:this.enterOuterAlt(e,2),this.state=2547,this.match(t.LPAREN),this.state=2548,this.select_stmt(),this.state=2549,this.match(t.RPAREN);break;case 3:this.enterOuterAlt(e,3),this.state=2551,this.match(t.LPAREN),this.state=2552,this.values_stmt(),this.state=2553,this.match(t.RPAREN)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sample_clause(){let e=new Tn(this.context,this.state);this.enterRule(e,350,t.RULE_sample_clause);try{this.enterOuterAlt(e,1),this.state=2557,this.match(t.SAMPLE),this.state=2558,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tablesample_clause(){let e,s=new An(this.context,this.state);this.enterRule(s,352,t.RULE_tablesample_clause);try{this.enterOuterAlt(s,1),this.state=2560,this.match(t.TABLESAMPLE),this.state=2561,this.sampling_mode(),this.state=2562,this.match(t.LPAREN),this.state=2563,this.expr(),this.state=2564,this.match(t.RPAREN),this.state=2566,this.errorHandler.sync(this),e=this.tokenStream.LA(1),241===e&&(this.state=2565,this.repeatable_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sampling_mode(){let e,s=new Sn(this.context,this.state);this.enterRule(s,354,t.RULE_sampling_mode);try{this.enterOuterAlt(s,1),this.state=2568,e=this.tokenStream.LA(1),65===e||279===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}repeatable_clause(){let e=new dn(this.context,this.state);this.enterRule(e,356,t.RULE_repeatable_clause);try{this.enterOuterAlt(e,1),this.state=2570,this.match(t.REPEATABLE),this.state=2571,this.match(t.LPAREN),this.state=2572,this.expr(),this.state=2573,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}join_op(){let e,s=new Ln(this.context,this.state);this.enterRule(s,358,t.RULE_join_op);try{switch(this.state=2599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMA:this.enterOuterAlt(s,1),this.state=2575,this.match(t.COMMA);break;case t.CROSS:case t.EXCLUSION:case t.FULL:case t.INNER:case t.JOIN:case t.LEFT:case t.NATURAL:case t.OUTER:case t.RIGHT:switch(this.enterOuterAlt(s,2),this.state=2577,this.errorHandler.sync(this),e=this.tokenStream.LA(1),194===e&&(this.state=2576,this.match(t.NATURAL)),this.state=2596,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EXCLUSION:case t.FULL:case t.JOIN:case t.LEFT:case t.OUTER:case t.RIGHT:switch(this.state=2589,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LEFT:this.state=2579,this.match(t.LEFT),this.state=2581,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(207===e||266===e)&&(this.state=2580,e=this.tokenStream.LA(1),207===e||266===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.RIGHT:this.state=2583,this.match(t.RIGHT),this.state=2585,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(207===e||266===e)&&(this.state=2584,e=this.tokenStream.LA(1),207===e||266===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.EXCLUSION:this.state=2587,this.match(t.EXCLUSION);break;case t.FULL:this.state=2588,this.match(t.FULL);case t.JOIN:case t.OUTER:}this.state=2592,this.errorHandler.sync(this),e=this.tokenStream.LA(1),213===e&&(this.state=2591,this.match(t.OUTER));break;case t.INNER:this.state=2594,this.match(t.INNER);break;case t.CROSS:this.state=2595,this.match(t.CROSS);break;default:throw new ce(this)}this.state=2598,this.match(t.JOIN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}join_constraint(){let e=new Cn(this.context,this.state);this.enterRule(e,360,t.RULE_join_constraint);try{switch(this.state=2605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ON:this.enterOuterAlt(e,1),this.state=2601,this.match(t.ON),this.state=2602,this.expr();break;case t.USING:this.enterOuterAlt(e,2),this.state=2603,this.match(t.USING),this.state=2604,this.pure_column_or_named_list();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}returning_columns_list(){let e,s=new Nn(this.context,this.state);this.enterRule(s,362,t.RULE_returning_columns_list);try{switch(this.enterOuterAlt(s,1),this.state=2607,this.match(t.RETURNING),this.state=2617,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ASTERISK:this.state=2608,this.match(t.ASTERISK);break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:for(this.state=2609,this.an_id(),this.state=2614,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2610,this.match(t.COMMA),this.state=2611,this.an_id(),this.state=2616,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}into_table_stmt(){let e,s=new In(this.context,this.state);this.enterRule(s,364,t.RULE_into_table_stmt);try{switch(this.enterOuterAlt(s,1),this.state=2631,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2619,this.match(t.INSERT);break;case 2:this.state=2620,this.match(t.INSERT),this.state=2621,this.match(t.OR),this.state=2622,this.match(t.ABORT);break;case 3:this.state=2623,this.match(t.INSERT),this.state=2624,this.match(t.OR),this.state=2625,this.match(t.REVERT);break;case 4:this.state=2626,this.match(t.INSERT),this.state=2627,this.match(t.OR),this.state=2628,this.match(t.IGNORE);break;case 5:this.state=2629,this.match(t.UPSERT);break;case 6:this.state=2630,this.match(t.REPLACE)}this.state=2633,this.match(t.INTO),this.state=2634,this.into_simple_table_ref(),this.state=2635,this.into_values_source(),this.state=2637,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=2636,this.returning_columns_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}into_table_stmt_yq(){let e=new On(this.context,this.state);this.enterRule(e,366,t.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(e,1),this.state=2650,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2639,this.match(t.INSERT);break;case 2:this.state=2640,this.match(t.INSERT),this.state=2641,this.match(t.OR),this.state=2642,this.match(t.ABORT);break;case 3:this.state=2643,this.match(t.INSERT),this.state=2644,this.match(t.OR),this.state=2645,this.match(t.REVERT);break;case 4:this.state=2646,this.match(t.INSERT),this.state=2647,this.match(t.OR),this.state=2648,this.match(t.IGNORE);break;case 5:this.state=2649,this.match(t.REPLACE)}this.state=2652,this.match(t.INTO),this.state=2653,this.into_simple_table_ref(),this.state=2654,this.into_values_source()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}into_values_source(){let e=new pn(this.context,this.state);this.enterRule(e,368,t.RULE_into_values_source);try{switch(this.state=2662,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:case t.VALUES:if(this.enterOuterAlt(e,1),1===(this.state=2657,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2656,this.pure_column_list();this.state=2659,this.values_source();break;case t.DEFAULT:this.enterOuterAlt(e,2),this.state=2660,this.match(t.DEFAULT),this.state=2661,this.match(t.VALUES);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_stmt(){let e=new gn(this.context,this.state);this.enterRule(e,370,t.RULE_values_stmt);try{this.enterOuterAlt(e,1),this.state=2664,this.match(t.VALUES),this.state=2665,this.values_source_row_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_source(){let e=new mn(this.context,this.state);this.enterRule(e,372,t.RULE_values_source);try{switch(this.state=2669,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VALUES:this.enterOuterAlt(e,1),this.state=2667,this.values_stmt();break;case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.enterOuterAlt(e,2),this.state=2668,this.select_stmt();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_source_row_list(){let e,s=new xn(this.context,this.state);this.enterRule(s,374,t.RULE_values_source_row_list);try{for(this.enterOuterAlt(s,1),this.state=2671,this.values_source_row(),this.state=2676,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2672,this.match(t.COMMA),this.state=2673,this.values_source_row(),this.state=2678,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}values_source_row(){let e=new Un(this.context,this.state);this.enterRule(e,376,t.RULE_values_source_row);try{this.enterOuterAlt(e,1),this.state=2679,this.match(t.LPAREN),this.state=2680,this.expr_list(),this.state=2681,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simple_values_source(){let e=new fn(this.context,this.state);this.enterRule(e,378,t.RULE_simple_values_source);try{switch(this.state=2685,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2683,this.expr_list();break;case 2:this.enterOuterAlt(e,2),this.state=2684,this.select_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_external_data_source_stmt(){let e,s=new Pn(this.context,this.state);this.enterRule(s,380,t.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2687,this.match(t.CREATE),this.state=2690,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=2688,this.match(t.OR),this.state=2689,this.match(t.REPLACE)),this.state=2692,this.match(t.EXTERNAL),this.state=2693,this.match(t.DATA),this.state=2694,this.match(t.SOURCE),this.state=2698,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2695,this.match(t.IF),this.state=2696,this.match(t.NOT),this.state=2697,this.match(t.EXISTS);this.state=2700,this.object_ref(),this.state=2701,this.with_table_settings()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_external_data_source_stmt(){let e,s=new kn(this.context,this.state);this.enterRule(s,382,t.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(s,1),this.state=2703,this.match(t.ALTER),this.state=2704,this.match(t.EXTERNAL),this.state=2705,this.match(t.DATA),this.state=2706,this.match(t.SOURCE),this.state=2707,this.object_ref(),this.state=2708,this.alter_external_data_source_action(),this.state=2713,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2709,this.match(t.COMMA),this.state=2710,this.alter_external_data_source_action(),this.state=2715,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_external_data_source_action(){let e=new Mn(this.context,this.state);this.enterRule(e,384,t.RULE_alter_external_data_source_action);try{switch(this.state=2719,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2716,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(e,2),this.state=2717,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(e,3),this.state=2718,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_external_data_source_stmt(){let e=new yn(this.context,this.state);this.enterRule(e,386,t.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=2721,this.match(t.DROP),this.state=2722,this.match(t.EXTERNAL),this.state=2723,this.match(t.DATA),this.state=2724,this.match(t.SOURCE),this.state=2727,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2725,this.match(t.IF),this.state=2726,this.match(t.EXISTS);this.state=2729,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_view_stmt(){let e,s=new Dn(this.context,this.state);this.enterRule(s,388,t.RULE_create_view_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2731,this.match(t.CREATE),this.state=2732,this.match(t.VIEW),this.state=2736,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2733,this.match(t.IF),this.state=2734,this.match(t.NOT),this.state=2735,this.match(t.EXISTS);this.state=2738,this.object_ref(),this.state=2740,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2739,this.create_object_features()),this.state=2742,this.match(t.AS),this.state=2743,this.select_stmt()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_view_stmt(){let e=new vn(this.context,this.state);this.enterRule(e,390,t.RULE_drop_view_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=2745,this.match(t.DROP),this.state=2746,this.match(t.VIEW),this.state=2749,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2747,this.match(t.IF),this.state=2748,this.match(t.EXISTS);this.state=2751,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}upsert_object_stmt(){let e,s=new bn(this.context,this.state);this.enterRule(s,392,t.RULE_upsert_object_stmt);try{this.enterOuterAlt(s,1),this.state=2753,this.match(t.UPSERT),this.state=2754,this.match(t.OBJECT),this.state=2755,this.object_ref(),this.state=2756,this.match(t.LPAREN),this.state=2757,this.match(t.TYPE),this.state=2758,this.object_type_ref(),this.state=2759,this.match(t.RPAREN),this.state=2761,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2760,this.create_object_features())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_object_stmt(){let e,s=new Hn(this.context,this.state);this.enterRule(s,394,t.RULE_create_object_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2763,this.match(t.CREATE),this.state=2764,this.match(t.OBJECT),this.state=2768,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2765,this.match(t.IF),this.state=2766,this.match(t.NOT),this.state=2767,this.match(t.EXISTS);this.state=2770,this.object_ref(),this.state=2771,this.match(t.LPAREN),this.state=2772,this.match(t.TYPE),this.state=2773,this.object_type_ref(),this.state=2774,this.match(t.RPAREN),this.state=2776,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2775,this.create_object_features())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_object_features(){let e=new wn(this.context,this.state);this.enterRule(e,396,t.RULE_create_object_features);try{this.enterOuterAlt(e,1),this.state=2778,this.match(t.WITH),this.state=2779,this.object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_object_stmt(){let e=new Fn(this.context,this.state);this.enterRule(e,398,t.RULE_alter_object_stmt);try{this.enterOuterAlt(e,1),this.state=2781,this.match(t.ALTER),this.state=2782,this.match(t.OBJECT),this.state=2783,this.object_ref(),this.state=2784,this.match(t.LPAREN),this.state=2785,this.match(t.TYPE),this.state=2786,this.object_type_ref(),this.state=2787,this.match(t.RPAREN),this.state=2788,this.alter_object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_object_features(){let e=new Gn(this.context,this.state);this.enterRule(e,400,t.RULE_alter_object_features);try{this.enterOuterAlt(e,1),this.state=2790,this.match(t.SET),this.state=2791,this.object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_object_stmt(){let e,s=new Bn(this.context,this.state);this.enterRule(s,402,t.RULE_drop_object_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2793,this.match(t.DROP),this.state=2794,this.match(t.OBJECT),this.state=2797,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2795,this.match(t.IF),this.state=2796,this.match(t.EXISTS);this.state=2799,this.object_ref(),this.state=2800,this.match(t.LPAREN),this.state=2801,this.match(t.TYPE),this.state=2802,this.object_type_ref(),this.state=2803,this.match(t.RPAREN),this.state=2805,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2804,this.drop_object_features())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_object_features(){let e=new Yn(this.context,this.state);this.enterRule(e,404,t.RULE_drop_object_features);try{this.enterOuterAlt(e,1),this.state=2807,this.match(t.WITH),this.state=2808,this.object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_value(){let e=new Vn(this.context,this.state);this.enterRule(e,406,t.RULE_object_feature_value);try{switch(this.state=2814,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=2810,this.id_or_type();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=2811,this.bind_parameter();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=2812,this.match(t.STRING_VALUE);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=2813,this.bool_value();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_kv(){let e=new Wn(this.context,this.state);this.enterRule(e,408,t.RULE_object_feature_kv);try{this.enterOuterAlt(e,1),this.state=2816,this.an_id_or_type(),this.state=2817,this.match(t.EQUALS),this.state=2818,this.object_feature_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_flag(){let e=new Xn(this.context,this.state);this.enterRule(e,410,t.RULE_object_feature_flag);try{this.enterOuterAlt(e,1),this.state=2820,this.an_id_or_type()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature(){let e=new Kn(this.context,this.state);this.enterRule(e,412,t.RULE_object_feature);try{switch(this.state=2824,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2822,this.object_feature_kv();break;case 2:this.enterOuterAlt(e,2),this.state=2823,this.object_feature_flag()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_features(){let e,s=new Qn(this.context,this.state);this.enterRule(s,414,t.RULE_object_features);try{switch(this.state=2838,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2826,this.object_feature();break;case t.LPAREN:for(this.enterOuterAlt(s,2),this.state=2827,this.match(t.LPAREN),this.state=2828,this.object_feature(),this.state=2833,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2829,this.match(t.COMMA),this.state=2830,this.object_feature(),this.state=2835,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2836,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}object_type_ref(){let e=new qn(this.context,this.state);this.enterRule(e,416,t.RULE_object_type_ref);try{this.enterOuterAlt(e,1),this.state=2840,this.an_id_or_type()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_table_stmt(){let e,s=new jn(this.context,this.state);this.enterRule(s,418,t.RULE_create_table_stmt);try{let r;switch(this.enterOuterAlt(s,1),this.state=2842,this.match(t.CREATE),this.state=2845,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=2843,this.match(t.OR),this.state=2844,this.match(t.REPLACE)),this.state=2855,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLE:this.state=2847,this.match(t.TABLE);break;case t.TABLESTORE:this.state=2848,this.match(t.TABLESTORE);break;case t.EXTERNAL:this.state=2849,this.match(t.EXTERNAL),this.state=2850,this.match(t.TABLE);break;case t.TEMP:this.state=2851,this.match(t.TEMP),this.state=2852,this.match(t.TABLE);break;case t.TEMPORARY:this.state=2853,this.match(t.TEMPORARY),this.state=2854,this.match(t.TABLE);break;default:throw new ce(this)}if(1===(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2857,this.match(t.IF),this.state=2858,this.match(t.NOT),this.state=2859,this.match(t.EXISTS);for(this.state=2862,this.simple_table_ref(),this.state=2863,this.match(t.LPAREN),this.state=2864,this.create_table_entry(),this.state=2869,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=2865,this.match(t.COMMA),this.state=2866,this.create_table_entry()),this.state=2871,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2873,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=2872,this.match(t.COMMA)),this.state=2875,this.match(t.RPAREN),this.state=2877,this.errorHandler.sync(this),e=this.tokenStream.LA(1),163===e&&(this.state=2876,this.table_inherits()),this.state=2880,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=2879,this.table_partition_by()),this.state=2883,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2882,this.with_table_settings()),this.state=2886,this.errorHandler.sync(this),e=this.tokenStream.LA(1),283===e&&(this.state=2885,this.table_tablestore()),this.state=2889,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2888,this.table_as_source())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_table_entry(){let e=new Jn(this.context,this.state);this.enterRule(e,420,t.RULE_create_table_entry);try{switch(this.state=2897,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2891,this.column_schema();break;case 2:this.enterOuterAlt(e,2),this.state=2892,this.table_constraint();break;case 3:this.enterOuterAlt(e,3),this.state=2893,this.table_index();break;case 4:this.enterOuterAlt(e,4),this.state=2894,this.family_entry();break;case 5:this.enterOuterAlt(e,5),this.state=2895,this.changefeed();break;case 6:this.enterOuterAlt(e,6),this.state=2896,this.an_id_schema()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_backup_collection_stmt(){let e,s=new zn(this.context,this.state);this.enterRule(s,422,t.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(s,1),this.state=2899,this.match(t.CREATE),this.state=2900,this.backup_collection(),this.state=2902,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(26===e||95===e)&&(this.state=2901,this.create_backup_collection_entries()),this.state=2904,this.match(t.WITH),this.state=2905,this.match(t.LPAREN),this.state=2906,this.backup_collection_settings(),this.state=2907,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_stmt(){let e=new Zn(this.context,this.state);this.enterRule(e,424,t.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(e,1),this.state=2909,this.match(t.ALTER),this.state=2910,this.backup_collection(),this.state=2913,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESET:case t.SET:this.state=2911,this.alter_backup_collection_actions();break;case t.ADD:case t.DROP:this.state=2912,this.alter_backup_collection_entries();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_backup_collection_stmt(){let e=new $n(this.context,this.state);this.enterRule(e,426,t.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(e,1),this.state=2915,this.match(t.DROP),this.state=2916,this.backup_collection()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_backup_collection_entries(){let e=new tc(this.context,this.state);this.enterRule(e,428,t.RULE_create_backup_collection_entries);try{switch(this.state=2920,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DATABASE:this.enterOuterAlt(e,1),this.state=2918,this.match(t.DATABASE);break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=2919,this.create_backup_collection_entries_many();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_backup_collection_entries_many(){let e=new ec(this.context,this.state);this.enterRule(e,430,t.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(e,1),this.state=2922,this.match(t.LPAREN),this.state=2923,this.table_list(),this.state=2924,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_list(){let e,s=new sc(this.context,this.state);this.enterRule(s,432,t.RULE_table_list);try{for(this.enterOuterAlt(s,1),this.state=2926,this.match(t.TABLE),this.state=2927,this.an_id_table(),this.state=2933,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2928,this.match(t.COMMA),this.state=2929,this.match(t.TABLE),this.state=2930,this.an_id_table(),this.state=2935,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_actions(){let e,s=new rc(this.context,this.state);this.enterRule(s,434,t.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(s,1),this.state=2936,this.alter_backup_collection_action(),this.state=2941,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2937,this.match(t.COMMA),this.state=2938,this.alter_backup_collection_action(),this.state=2943,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_action(){let e=new ic(this.context,this.state);this.enterRule(e,436,t.RULE_alter_backup_collection_action);try{switch(this.state=2946,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=2944,this.alter_table_set_table_setting_compat();break;case t.RESET:this.enterOuterAlt(e,2),this.state=2945,this.alter_table_reset_table_setting();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_backup_collection_entries(){let e,s=new ac(this.context,this.state);this.enterRule(s,438,t.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(s,1),this.state=2948,this.alter_backup_collection_entry(),this.state=2953,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2949,this.match(t.COMMA),this.state=2950,this.alter_backup_collection_entry(),this.state=2955,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_entry(){let e=new nc(this.context,this.state);this.enterRule(e,440,t.RULE_alter_backup_collection_entry);try{switch(this.state=2966,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2956,this.match(t.ADD),this.state=2957,this.match(t.DATABASE);break;case 2:this.enterOuterAlt(e,2),this.state=2958,this.match(t.DROP),this.state=2959,this.match(t.DATABASE);break;case 3:this.enterOuterAlt(e,3),this.state=2960,this.match(t.ADD),this.state=2961,this.match(t.TABLE),this.state=2962,this.an_id_table();break;case 4:this.enterOuterAlt(e,4),this.state=2963,this.match(t.DROP),this.state=2964,this.match(t.TABLE),this.state=2965,this.an_id_table()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}backup_collection(){let e=new cc(this.context,this.state);this.enterRule(e,442,t.RULE_backup_collection);try{this.enterOuterAlt(e,1),this.state=2968,this.match(t.BACKUP),this.state=2969,this.match(t.COLLECTION),this.state=2970,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}backup_collection_settings(){let e,s=new hc(this.context,this.state);this.enterRule(s,444,t.RULE_backup_collection_settings);try{for(this.enterOuterAlt(s,1),this.state=2972,this.backup_collection_settings_entry(),this.state=2977,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2973,this.match(t.COMMA),this.state=2974,this.backup_collection_settings_entry(),this.state=2979,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}backup_collection_settings_entry(){let e=new oc(this.context,this.state);this.enterRule(e,446,t.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(e,1),this.state=2980,this.an_id(),this.state=2981,this.match(t.EQUALS),this.state=2982,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}backup_stmt(){let e,s=new Ec(this.context,this.state);this.enterRule(s,448,t.RULE_backup_stmt);try{this.enterOuterAlt(s,1),this.state=2984,this.match(t.BACKUP),this.state=2985,this.object_ref(),this.state=2987,this.errorHandler.sync(this),e=this.tokenStream.LA(1),160===e&&(this.state=2986,this.match(t.INCREMENTAL))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}restore_stmt(){let e,s=new lc(this.context,this.state);this.enterRule(s,450,t.RULE_restore_stmt);try{this.enterOuterAlt(s,1),this.state=2989,this.match(t.RESTORE),this.state=2990,this.object_ref(),this.state=2993,this.errorHandler.sync(this),e=this.tokenStream.LA(1),56===e&&(this.state=2991,this.match(t.AT),this.state=2992,this.match(t.STRING_VALUE))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_inherits(){let e,s=new uc(this.context,this.state);this.enterRule(s,452,t.RULE_table_inherits);try{for(this.enterOuterAlt(s,1),this.state=2995,this.match(t.INHERITS),this.state=2996,this.match(t.LPAREN),this.state=2997,this.simple_table_ref_core(),this.state=3002,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2998,this.match(t.COMMA),this.state=2999,this.simple_table_ref_core(),this.state=3004,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3005,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_partition_by(){let e=new Rc(this.context,this.state);this.enterRule(e,454,t.RULE_table_partition_by);try{this.enterOuterAlt(e,1),this.state=3007,this.match(t.PARTITION),this.state=3008,this.match(t.BY),this.state=3009,this.match(t.HASH),this.state=3010,this.pure_column_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_table_settings(){let e,s=new _c(this.context,this.state);this.enterRule(s,456,t.RULE_with_table_settings);try{for(this.enterOuterAlt(s,1),this.state=3012,this.match(t.WITH),this.state=3013,this.match(t.LPAREN),this.state=3014,this.table_settings_entry(),this.state=3019,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3015,this.match(t.COMMA),this.state=3016,this.table_settings_entry(),this.state=3021,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3022,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_tablestore(){let e=new Tc(this.context,this.state);this.enterRule(e,458,t.RULE_table_tablestore);try{this.enterOuterAlt(e,1),this.state=3024,this.match(t.TABLESTORE),this.state=3025,this.simple_table_ref_core()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_settings_entry(){let e=new Ac(this.context,this.state);this.enterRule(e,460,t.RULE_table_settings_entry);try{this.enterOuterAlt(e,1),this.state=3027,this.an_id(),this.state=3028,this.match(t.EQUALS),this.state=3029,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_as_source(){let e=new Sc(this.context,this.state);this.enterRule(e,462,t.RULE_table_as_source);try{this.enterOuterAlt(e,1),this.state=3031,this.match(t.AS),this.state=3032,this.values_source()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_stmt(){let e,s=new dc(this.context,this.state);this.enterRule(s,464,t.RULE_alter_table_stmt);try{for(this.enterOuterAlt(s,1),this.state=3034,this.match(t.ALTER),this.state=3035,this.match(t.TABLE),this.state=3036,this.simple_table_ref(),this.state=3037,this.alter_table_action(),this.state=3042,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3038,this.match(t.COMMA),this.state=3039,this.alter_table_action(),this.state=3044,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_action(){let e=new Lc(this.context,this.state);this.enterRule(e,466,t.RULE_alter_table_action);try{switch(this.state=3062,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3045,this.alter_table_add_column();break;case 2:this.enterOuterAlt(e,2),this.state=3046,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(e,3),this.state=3047,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(e,4),this.state=3048,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(e,5),this.state=3049,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(e,6),this.state=3050,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(e,7),this.state=3051,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(e,8),this.state=3052,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(e,9),this.state=3053,this.alter_table_add_index();break;case 10:this.enterOuterAlt(e,10),this.state=3054,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(e,11),this.state=3055,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(e,12),this.state=3056,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(e,13),this.state=3057,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(e,14),this.state=3058,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(e,15),this.state=3059,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(e,16),this.state=3060,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(e,17),this.state=3061,this.alter_table_alter_column_drop_not_null()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_external_table_stmt(){let e,s=new Cc(this.context,this.state);this.enterRule(s,468,t.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(s,1),this.state=3064,this.match(t.ALTER),this.state=3065,this.match(t.EXTERNAL),this.state=3066,this.match(t.TABLE),this.state=3067,this.simple_table_ref(),this.state=3068,this.alter_external_table_action(),this.state=3073,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3069,this.match(t.COMMA),this.state=3070,this.alter_external_table_action(),this.state=3075,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_external_table_action(){let e=new Nc(this.context,this.state);this.enterRule(e,470,t.RULE_alter_external_table_action);try{switch(this.state=3081,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3076,this.alter_table_add_column();break;case 2:this.enterOuterAlt(e,2),this.state=3077,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(e,3),this.state=3078,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(e,4),this.state=3079,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(e,5),this.state=3080,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_store_stmt(){let e,s=new Ic(this.context,this.state);this.enterRule(s,472,t.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(s,1),this.state=3083,this.match(t.ALTER),this.state=3084,this.match(t.TABLESTORE),this.state=3085,this.object_ref(),this.state=3086,this.alter_table_store_action(),this.state=3091,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3087,this.match(t.COMMA),this.state=3088,this.alter_table_store_action(),this.state=3093,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_store_action(){let e=new Oc(this.context,this.state);this.enterRule(e,474,t.RULE_alter_table_store_action);try{switch(this.state=3096,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:this.enterOuterAlt(e,1),this.state=3094,this.alter_table_add_column();break;case t.DROP:this.enterOuterAlt(e,2),this.state=3095,this.alter_table_drop_column();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_column(){let e,s=new pc(this.context,this.state);this.enterRule(s,476,t.RULE_alter_table_add_column);try{this.enterOuterAlt(s,1),this.state=3098,this.match(t.ADD),this.state=3100,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=3099,this.match(t.COLUMN)),this.state=3102,this.column_schema()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_drop_column(){let e=new gc(this.context,this.state);this.enterRule(e,478,t.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(e,1),1===(this.state=3104,this.match(t.DROP),this.state=3106,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3105,this.match(t.COLUMN);this.state=3108,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column(){let e=new mc(this.context,this.state);this.enterRule(e,480,t.RULE_alter_table_alter_column);try{this.enterOuterAlt(e,1),this.state=3110,this.match(t.ALTER),this.state=3111,this.match(t.COLUMN),this.state=3112,this.an_id(),this.state=3113,this.match(t.SET),this.state=3114,this.family_relation()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column_drop_not_null(){let e=new xc(this.context,this.state);this.enterRule(e,482,t.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(e,1),this.state=3116,this.match(t.ALTER),this.state=3117,this.match(t.COLUMN),this.state=3118,this.an_id(),this.state=3119,this.match(t.DROP),this.state=3120,this.match(t.NOT),this.state=3121,this.match(t.NULL)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_column_family(){let e=new Uc(this.context,this.state);this.enterRule(e,484,t.RULE_alter_table_add_column_family);try{this.enterOuterAlt(e,1),this.state=3123,this.match(t.ADD),this.state=3124,this.family_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column_family(){let e=new fc(this.context,this.state);this.enterRule(e,486,t.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(e,1),this.state=3126,this.match(t.ALTER),this.state=3127,this.match(t.FAMILY),this.state=3128,this.an_id(),this.state=3129,this.match(t.SET),this.state=3130,this.an_id(),this.state=3131,this.family_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_set_table_setting_uncompat(){let e=new Pc(this.context,this.state);this.enterRule(e,488,t.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(e,1),this.state=3133,this.match(t.SET),this.state=3134,this.an_id(),this.state=3135,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_set_table_setting_compat(){let e,s=new kc(this.context,this.state);this.enterRule(s,490,t.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(s,1),this.state=3137,this.match(t.SET),this.state=3138,this.match(t.LPAREN),this.state=3139,this.alter_table_setting_entry(),this.state=3144,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3140,this.match(t.COMMA),this.state=3141,this.alter_table_setting_entry(),this.state=3146,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3147,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_reset_table_setting(){let e,s=new Mc(this.context,this.state);this.enterRule(s,492,t.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(s,1),this.state=3149,this.match(t.RESET),this.state=3150,this.match(t.LPAREN),this.state=3151,this.an_id(),this.state=3156,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3152,this.match(t.COMMA),this.state=3153,this.an_id(),this.state=3158,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3159,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_add_index(){let e=new yc(this.context,this.state);this.enterRule(e,494,t.RULE_alter_table_add_index);try{this.enterOuterAlt(e,1),this.state=3161,this.match(t.ADD),this.state=3162,this.table_index()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_drop_index(){let e=new Dc(this.context,this.state);this.enterRule(e,496,t.RULE_alter_table_drop_index);try{this.enterOuterAlt(e,1),this.state=3164,this.match(t.DROP),this.state=3165,this.match(t.INDEX),this.state=3166,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_rename_to(){let e=new vc(this.context,this.state);this.enterRule(e,498,t.RULE_alter_table_rename_to);try{this.enterOuterAlt(e,1),this.state=3168,this.match(t.RENAME),this.state=3169,this.match(t.TO),this.state=3170,this.an_id_table()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_rename_index_to(){let e=new bc(this.context,this.state);this.enterRule(e,500,t.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(e,1),this.state=3172,this.match(t.RENAME),this.state=3173,this.match(t.INDEX),this.state=3174,this.an_id(),this.state=3175,this.match(t.TO),this.state=3176,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_changefeed(){let e=new Hc(this.context,this.state);this.enterRule(e,502,t.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(e,1),this.state=3178,this.match(t.ADD),this.state=3179,this.changefeed()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_changefeed(){let e=new wc(this.context,this.state);this.enterRule(e,504,t.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(e,1),this.state=3181,this.match(t.ALTER),this.state=3182,this.match(t.CHANGEFEED),this.state=3183,this.an_id(),this.state=3184,this.changefeed_alter_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_drop_changefeed(){let e=new Fc(this.context,this.state);this.enterRule(e,506,t.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(e,1),this.state=3186,this.match(t.DROP),this.state=3187,this.match(t.CHANGEFEED),this.state=3188,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_index(){let e=new Gc(this.context,this.state);this.enterRule(e,508,t.RULE_alter_table_alter_index);try{this.enterOuterAlt(e,1),this.state=3190,this.match(t.ALTER),this.state=3191,this.match(t.INDEX),this.state=3192,this.an_id(),this.state=3193,this.alter_table_alter_index_action()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}column_schema(){let e,s=new Bc(this.context,this.state);this.enterRule(s,510,t.RULE_column_schema);try{this.enterOuterAlt(s,1),this.state=3195,this.an_id_schema(),this.state=3196,this.type_name_or_bind(),this.state=3198,this.errorHandler.sync(this),e=this.tokenStream.LA(1),134===e&&(this.state=3197,this.family_relation()),this.state=3200,this.opt_column_constraints()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}family_relation(){let e=new Yc(this.context,this.state);this.enterRule(e,512,t.RULE_family_relation);try{this.enterOuterAlt(e,1),this.state=3202,this.match(t.FAMILY),this.state=3203,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_column_constraints(){let e,s=new Vc(this.context,this.state);this.enterRule(s,514,t.RULE_opt_column_constraints);try{this.enterOuterAlt(s,1),this.state=3209,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(197===e||199===e)&&(this.state=3206,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=3205,this.match(t.NOT)),this.state=3208,this.match(t.NULL)),this.state=3213,this.errorHandler.sync(this),e=this.tokenStream.LA(1),98===e&&(this.state=3211,this.match(t.DEFAULT),this.state=3212,this.expr())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}column_order_by_specification(){let e,s=new Wc(this.context,this.state);this.enterRule(s,516,t.RULE_column_order_by_specification);try{this.enterOuterAlt(s,1),this.state=3215,this.an_id(),this.state=3217,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(52===e||103===e)&&(this.state=3216,e=this.tokenStream.LA(1),52===e||103===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_constraint(){let e,s=new Xc(this.context,this.state);this.enterRule(s,518,t.RULE_table_constraint);try{switch(this.state=3258,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PRIMARY:for(this.enterOuterAlt(s,1),this.state=3219,this.match(t.PRIMARY),this.state=3220,this.match(t.KEY),this.state=3221,this.match(t.LPAREN),this.state=3222,this.an_id(),this.state=3227,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3223,this.match(t.COMMA),this.state=3224,this.an_id(),this.state=3229,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3230,this.match(t.RPAREN);break;case t.PARTITION:for(this.enterOuterAlt(s,2),this.state=3232,this.match(t.PARTITION),this.state=3233,this.match(t.BY),this.state=3234,this.match(t.LPAREN),this.state=3235,this.an_id(),this.state=3240,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3236,this.match(t.COMMA),this.state=3237,this.an_id(),this.state=3242,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3243,this.match(t.RPAREN);break;case t.ORDER:for(this.enterOuterAlt(s,3),this.state=3245,this.match(t.ORDER),this.state=3246,this.match(t.BY),this.state=3247,this.match(t.LPAREN),this.state=3248,this.column_order_by_specification(),this.state=3253,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3249,this.match(t.COMMA),this.state=3250,this.column_order_by_specification(),this.state=3255,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3256,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_index(){let e,s=new Kc(this.context,this.state);this.enterRule(s,520,t.RULE_table_index);try{for(this.enterOuterAlt(s,1),this.state=3260,this.match(t.INDEX),this.state=3261,this.an_id(),this.state=3262,this.table_index_type(),this.state=3263,this.match(t.ON),this.state=3264,this.match(t.LPAREN),this.state=3265,this.an_id_schema(),this.state=3270,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3266,this.match(t.COMMA),this.state=3267,this.an_id_schema(),this.state=3272,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=3273,this.match(t.RPAREN),this.state=3286,this.errorHandler.sync(this),e=this.tokenStream.LA(1),86===e){for(this.state=3274,this.match(t.COVER),this.state=3275,this.match(t.LPAREN),this.state=3276,this.an_id_schema(),this.state=3281,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3277,this.match(t.COMMA),this.state=3278,this.an_id_schema(),this.state=3283,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3284,this.match(t.RPAREN)}this.state=3289,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3288,this.with_index_settings())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_index_type(){let e,s=new Qc(this.context,this.state);this.enterRule(s,522,t.RULE_table_index_type);try{switch(this.enterOuterAlt(s,1),this.state=3293,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.GLOBAL:this.state=3291,this.global_index();break;case t.LOCAL:this.state=3292,this.local_index();break;default:throw new ce(this)}this.state=3297,this.errorHandler.sync(this),e=this.tokenStream.LA(1),306===e&&(this.state=3295,this.match(t.USING),this.state=3296,this.index_subtype())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}global_index(){let e,s=new qc(this.context,this.state);this.enterRule(s,524,t.RULE_global_index);try{this.enterOuterAlt(s,1),this.state=3299,this.match(t.GLOBAL),this.state=3301,this.errorHandler.sync(this),e=this.tokenStream.LA(1),299===e&&(this.state=3300,this.match(t.UNIQUE)),this.state=3304,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(55===e||278===e)&&(this.state=3303,e=this.tokenStream.LA(1),55===e||278===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}local_index(){let e=new jc(this.context,this.state);this.enterRule(e,526,t.RULE_local_index);try{this.enterOuterAlt(e,1),this.state=3306,this.match(t.LOCAL)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}index_subtype(){let e=new Jc(this.context,this.state);this.enterRule(e,528,t.RULE_index_subtype);try{this.enterOuterAlt(e,1),this.state=3308,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_index_settings(){let e,s=new zc(this.context,this.state);this.enterRule(s,530,t.RULE_with_index_settings);try{let r;for(this.enterOuterAlt(s,1),this.state=3310,this.match(t.WITH),this.state=3311,this.match(t.LPAREN),this.state=3312,this.index_setting_entry(),this.state=3317,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3313,this.match(t.COMMA),this.state=3314,this.index_setting_entry()),this.state=3319,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3321,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3320,this.match(t.COMMA)),this.state=3323,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}index_setting_entry(){let e=new Zc(this.context,this.state);this.enterRule(e,532,t.RULE_index_setting_entry);try{this.enterOuterAlt(e,1),this.state=3325,this.an_id(),this.state=3326,this.match(t.EQUALS),this.state=3327,this.index_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}index_setting_value(){let e=new $c(this.context,this.state);this.enterRule(e,534,t.RULE_index_setting_value);try{switch(this.state=3333,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3329,this.id_or_type();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=3330,this.match(t.STRING_VALUE);break;case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,3),this.state=3331,this.integer();break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=3332,this.bool_value();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed(){let e=new th(this.context,this.state);this.enterRule(e,536,t.RULE_changefeed);try{this.enterOuterAlt(e,1),this.state=3335,this.match(t.CHANGEFEED),this.state=3336,this.an_id(),this.state=3337,this.match(t.WITH),this.state=3338,this.match(t.LPAREN),this.state=3339,this.changefeed_settings(),this.state=3340,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_settings(){let e,s=new eh(this.context,this.state);this.enterRule(s,538,t.RULE_changefeed_settings);try{for(this.enterOuterAlt(s,1),this.state=3342,this.changefeed_settings_entry(),this.state=3347,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3343,this.match(t.COMMA),this.state=3344,this.changefeed_settings_entry(),this.state=3349,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}changefeed_settings_entry(){let e=new sh(this.context,this.state);this.enterRule(e,540,t.RULE_changefeed_settings_entry);try{this.enterOuterAlt(e,1),this.state=3350,this.an_id(),this.state=3351,this.match(t.EQUALS),this.state=3352,this.changefeed_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_setting_value(){let e=new rh(this.context,this.state);this.enterRule(e,542,t.RULE_changefeed_setting_value);try{this.enterOuterAlt(e,1),this.state=3354,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_alter_settings(){let e=new ih(this.context,this.state);this.enterRule(e,544,t.RULE_changefeed_alter_settings);try{switch(this.state=3362,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISABLE:this.enterOuterAlt(e,1),this.state=3356,this.match(t.DISABLE);break;case t.SET:this.enterOuterAlt(e,2),this.state=3357,this.match(t.SET),this.state=3358,this.match(t.LPAREN),this.state=3359,this.changefeed_settings(),this.state=3360,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_setting_entry(){let e=new ah(this.context,this.state);this.enterRule(e,546,t.RULE_alter_table_setting_entry);try{this.enterOuterAlt(e,1),this.state=3364,this.an_id(),this.state=3365,this.match(t.EQUALS),this.state=3366,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_setting_value(){let e,s=new nh(this.context,this.state);this.enterRule(s,548,t.RULE_table_setting_value);try{switch(this.state=3380,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3368,this.id();break;case 2:this.enterOuterAlt(s,2),this.state=3369,this.match(t.STRING_VALUE);break;case 3:this.enterOuterAlt(s,3),this.state=3370,this.integer();break;case 4:this.enterOuterAlt(s,4),this.state=3371,this.split_boundaries();break;case 5:this.enterOuterAlt(s,5),this.state=3372,this.expr(),this.state=3373,this.match(t.ON),this.state=3374,this.an_id(),this.state=3377,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=3375,this.match(t.AS),this.state=3376,e=this.tokenStream.LA(1),!(e-190&-32)&&1<<e-190&11||263===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(s,6),this.state=3379,this.bool_value()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}family_entry(){let e=new ch(this.context,this.state);this.enterRule(e,550,t.RULE_family_entry);try{this.enterOuterAlt(e,1),this.state=3382,this.match(t.FAMILY),this.state=3383,this.an_id(),this.state=3384,this.family_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}family_settings(){let e,s=new hh(this.context,this.state);this.enterRule(s,552,t.RULE_family_settings);try{if(this.enterOuterAlt(s,1),this.state=3386,this.match(t.LPAREN),this.state=3395,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-40&-32)&&1<<e-40&3757047807||!(e-72&-32)&&1<<e-72&4294967295||!(e-104&-32)&&1<<e-104&3758063611||!(e-136&-32)&&1<<e-136&4294966267||!(e-168&-32)&&1<<e-168&4294934527||!(e-200&-32)&&1<<e-200&4294966783||!(e-232&-32)&&1<<e-232&4294958591||!(e-264&-32)&&1<<e-264&2683305463||!(e-296&-32)&&1<<e-296&67100671)for(this.state=3387,this.family_settings_entry(),this.state=3392,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3388,this.match(t.COMMA),this.state=3389,this.family_settings_entry(),this.state=3394,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3397,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}family_settings_entry(){let e=new oh(this.context,this.state);this.enterRule(e,554,t.RULE_family_settings_entry);try{this.enterOuterAlt(e,1),this.state=3399,this.an_id(),this.state=3400,this.match(t.EQUALS),this.state=3401,this.family_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}family_setting_value(){let e=new Eh(this.context,this.state);this.enterRule(e,556,t.RULE_family_setting_value);try{switch(this.state=3405,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_VALUE:this.enterOuterAlt(e,1),this.state=3403,this.match(t.STRING_VALUE);break;case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,2),this.state=3404,this.integer();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}split_boundaries(){let e,s=new lh(this.context,this.state);this.enterRule(s,558,t.RULE_split_boundaries);try{switch(this.state=3419,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,339,this.context)){case 1:for(this.enterOuterAlt(s,1),this.state=3407,this.match(t.LPAREN),this.state=3408,this.literal_value_list(),this.state=3413,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3409,this.match(t.COMMA),this.state=3410,this.literal_value_list(),this.state=3415,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3416,this.match(t.RPAREN);break;case 2:this.enterOuterAlt(s,2),this.state=3418,this.literal_value_list()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}literal_value_list(){let e,s=new uh(this.context,this.state);this.enterRule(s,560,t.RULE_literal_value_list);try{for(this.enterOuterAlt(s,1),this.state=3421,this.match(t.LPAREN),this.state=3422,this.literal_value(),this.state=3427,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3423,this.match(t.COMMA),this.state=3424,this.literal_value(),this.state=3429,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3430,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_alter_index_action(){let e=new Rh(this.context,this.state);this.enterRule(e,562,t.RULE_alter_table_alter_index_action);try{switch(this.state=3435,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,341,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3432,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(e,2),this.state=3433,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(e,3),this.state=3434,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_table_stmt(){let e=new _h(this.context,this.state);this.enterRule(e,564,t.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(e,1),this.state=3437,this.match(t.DROP),this.state=3442,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLE:this.state=3438,this.match(t.TABLE);break;case t.TABLESTORE:this.state=3439,this.match(t.TABLESTORE);break;case t.EXTERNAL:this.state=3440,this.match(t.EXTERNAL),this.state=3441,this.match(t.TABLE);break;default:throw new ce(this)}if(1===(this.state=3446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,343,this.context)))this.state=3444,this.match(t.IF),this.state=3445,this.match(t.EXISTS);this.state=3448,this.simple_table_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_user_stmt(){let e,s=new Th(this.context,this.state);this.enterRule(s,566,t.RULE_create_user_stmt);try{this.enterOuterAlt(s,1),this.state=3450,this.match(t.CREATE),this.state=3451,this.match(t.USER),this.state=3452,this.role_name(),this.state=3454,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(117===e||218===e)&&(this.state=3453,this.create_user_option())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_user_stmt(){let e,s=new Ah(this.context,this.state);this.enterRule(s,568,t.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3456,this.match(t.ALTER),this.state=3457,this.match(t.USER),this.state=3458,this.role_name(),this.state=3466,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ENCRYPTED:case t.PASSWORD:case t.WITH:this.state=3460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3459,this.match(t.WITH)),this.state=3462,this.create_user_option();break;case t.RENAME:this.state=3463,this.match(t.RENAME),this.state=3464,this.match(t.TO),this.state=3465,this.role_name();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_group_stmt(){let e,s=new Sh(this.context,this.state);this.enterRule(s,570,t.RULE_create_group_stmt);try{let r;if(this.enterOuterAlt(s,1),this.state=3468,this.match(t.CREATE),this.state=3469,this.match(t.GROUP),this.state=3470,this.role_name(),this.state=3484,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e){for(this.state=3471,this.match(t.WITH),this.state=3472,this.match(t.USER),this.state=3473,this.role_name(),this.state=3478,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3474,this.match(t.COMMA),this.state=3475,this.role_name()),this.state=3480,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);this.state=3482,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3481,this.match(t.COMMA))}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_group_stmt(){let e,s=new dh(this.context,this.state);this.enterRule(s,572,t.RULE_alter_group_stmt);try{let r;switch(this.enterOuterAlt(s,1),this.state=3486,this.match(t.ALTER),this.state=3487,this.match(t.GROUP),this.state=3488,this.role_name(),this.state=3505,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:case t.DROP:for(this.state=3489,e=this.tokenStream.LA(1),42===e||112===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3490,this.match(t.USER),this.state=3491,this.role_name(),this.state=3496,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3492,this.match(t.COMMA),this.state=3493,this.role_name()),this.state=3498,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);this.state=3500,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3499,this.match(t.COMMA));break;case t.RENAME:this.state=3502,this.match(t.RENAME),this.state=3503,this.match(t.TO),this.state=3504,this.role_name();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_role_stmt(){let e,s=new Lh(this.context,this.state);this.enterRule(s,574,t.RULE_drop_role_stmt);try{let r;if(this.enterOuterAlt(s,1),1===(this.state=3507,this.match(t.DROP),this.state=3508,e=this.tokenStream.LA(1),148===e||305===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3511,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,353,this.context)))this.state=3509,this.match(t.IF),this.state=3510,this.match(t.EXISTS);for(this.state=3513,this.role_name(),this.state=3518,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3514,this.match(t.COMMA),this.state=3515,this.role_name()),this.state=3520,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3522,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3521,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}role_name(){let e=new Ch(this.context,this.state);this.enterRule(e,576,t.RULE_role_name);try{switch(this.state=3526,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3524,this.an_id_or_type();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=3525,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_user_option(){let e,s=new Nh(this.context,this.state);this.enterRule(s,578,t.RULE_create_user_option);try{this.enterOuterAlt(s,1),this.state=3529,this.errorHandler.sync(this),e=this.tokenStream.LA(1),117===e&&(this.state=3528,this.match(t.ENCRYPTED)),this.state=3531,this.match(t.PASSWORD),this.state=3532,this.expr()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}grant_permissions_stmt(){let e,s=new Ih(this.context,this.state);this.enterRule(s,580,t.RULE_grant_permissions_stmt);try{let r;for(this.enterOuterAlt(s,1),this.state=3534,this.match(t.GRANT),this.state=3535,this.permission_name_target(),this.state=3536,this.match(t.ON),this.state=3537,this.an_id_schema(),this.state=3542,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3538,this.match(t.COMMA),this.state=3539,this.an_id_schema(),this.state=3544,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=3545,this.match(t.TO),this.state=3546,this.role_name(),this.state=3551,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3547,this.match(t.COMMA),this.state=3548,this.role_name()),this.state=3553,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);this.state=3555,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3554,this.match(t.COMMA)),this.state=3560,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3557,this.match(t.WITH),this.state=3558,this.match(t.GRANT),this.state=3559,this.match(t.OPTION))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}revoke_permissions_stmt(){let e,s=new Oh(this.context,this.state);this.enterRule(s,582,t.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=3562,this.match(t.REVOKE),this.state=3566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,362,this.context)))this.state=3563,this.match(t.GRANT),this.state=3564,this.match(t.OPTION),this.state=3565,this.match(t.FOR);for(this.state=3568,this.permission_name_target(),this.state=3569,this.match(t.ON),this.state=3570,this.an_id_schema(),this.state=3575,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3571,this.match(t.COMMA),this.state=3572,this.an_id_schema(),this.state=3577,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=3578,this.match(t.FROM),this.state=3579,this.role_name(),this.state=3584,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3580,this.match(t.COMMA),this.state=3581,this.role_name(),this.state=3586,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}permission_id(){let e,s=new ph(this.context,this.state);this.enterRule(s,584,t.RULE_permission_id);try{switch(this.state=3611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONNECT:this.enterOuterAlt(s,1),this.state=3587,this.match(t.CONNECT);break;case t.LIST:this.enterOuterAlt(s,2),this.state=3588,this.match(t.LIST);break;case t.INSERT:this.enterOuterAlt(s,3),this.state=3589,this.match(t.INSERT);break;case t.MANAGE:this.enterOuterAlt(s,4),this.state=3590,this.match(t.MANAGE);break;case t.DROP:this.enterOuterAlt(s,5),this.state=3591,this.match(t.DROP);break;case t.GRANT:this.enterOuterAlt(s,6),this.state=3592,this.match(t.GRANT);break;case t.MODIFY:this.enterOuterAlt(s,7),this.state=3593,this.match(t.MODIFY),this.state=3594,e=this.tokenStream.LA(1),58===e||281===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.ERASE:case t.UPDATE:this.enterOuterAlt(s,8),this.state=3595,e=this.tokenStream.LA(1),120===e||302===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3596,this.match(t.ROW);break;case t.ALTER:case t.DESCRIBE:case t.REMOVE:this.enterOuterAlt(s,9),this.state=3597,e=this.tokenStream.LA(1),45===e||104===e||239===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3598,this.match(t.SCHEMA);break;case t.SELECT:this.enterOuterAlt(s,10),this.state=3599,this.match(t.SELECT),this.state=3601,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(58===e||258===e||281===e)&&(this.state=3600,e=this.tokenStream.LA(1),58===e||258===e||281===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.FULL:case t.USE:this.enterOuterAlt(s,11),this.state=3603,e=this.tokenStream.LA(1),143===e||304===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3605,this.errorHandler.sync(this),e=this.tokenStream.LA(1),180===e&&(this.state=3604,this.match(t.LEGACY));break;case t.CREATE:this.enterOuterAlt(s,12),this.state=3607,this.match(t.CREATE),this.state=3609,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(107===e||231===e||280===e)&&(this.state=3608,e=this.tokenStream.LA(1),107===e||231===e||280===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}permission_name(){let e=new gh(this.context,this.state);this.enterRule(e,586,t.RULE_permission_name);try{switch(this.state=3615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.CONNECT:case t.CREATE:case t.DESCRIBE:case t.DROP:case t.ERASE:case t.FULL:case t.GRANT:case t.INSERT:case t.LIST:case t.MANAGE:case t.MODIFY:case t.REMOVE:case t.SELECT:case t.UPDATE:case t.USE:this.enterOuterAlt(e,1),this.state=3613,this.permission_id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=3614,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}permission_name_target(){let e,s=new mh(this.context,this.state);this.enterRule(s,588,t.RULE_permission_name_target);try{let r;switch(this.state=3632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.CONNECT:case t.CREATE:case t.DESCRIBE:case t.DROP:case t.ERASE:case t.FULL:case t.GRANT:case t.INSERT:case t.LIST:case t.MANAGE:case t.MODIFY:case t.REMOVE:case t.SELECT:case t.UPDATE:case t.USE:case t.STRING_VALUE:for(this.enterOuterAlt(s,1),this.state=3617,this.permission_name(),this.state=3622,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3618,this.match(t.COMMA),this.state=3619,this.permission_name()),this.state=3624,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);this.state=3626,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3625,this.match(t.COMMA));break;case t.ALL:this.enterOuterAlt(s,2),this.state=3628,this.match(t.ALL),this.state=3630,this.errorHandler.sync(this),e=this.tokenStream.LA(1),229===e&&(this.state=3629,this.match(t.PRIVILEGES));break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_resource_pool_stmt(){let e=new xh(this.context,this.state);this.enterRule(e,590,t.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(e,1),this.state=3634,this.match(t.CREATE),this.state=3635,this.match(t.RESOURCE),this.state=3636,this.match(t.POOL),this.state=3637,this.object_ref(),this.state=3638,this.with_table_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_resource_pool_stmt(){let e,s=new Uh(this.context,this.state);this.enterRule(s,592,t.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(s,1),this.state=3640,this.match(t.ALTER),this.state=3641,this.match(t.RESOURCE),this.state=3642,this.match(t.POOL),this.state=3643,this.object_ref(),this.state=3644,this.alter_resource_pool_action(),this.state=3649,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3645,this.match(t.COMMA),this.state=3646,this.alter_resource_pool_action(),this.state=3651,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_resource_pool_action(){let e=new fh(this.context,this.state);this.enterRule(e,594,t.RULE_alter_resource_pool_action);try{switch(this.state=3654,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=3652,this.alter_table_set_table_setting_compat();break;case t.RESET:this.enterOuterAlt(e,2),this.state=3653,this.alter_table_reset_table_setting();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_resource_pool_stmt(){let e=new Ph(this.context,this.state);this.enterRule(e,596,t.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(e,1),this.state=3656,this.match(t.DROP),this.state=3657,this.match(t.RESOURCE),this.state=3658,this.match(t.POOL),this.state=3659,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_resource_pool_classifier_stmt(){let e=new kh(this.context,this.state);this.enterRule(e,598,t.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(e,1),this.state=3661,this.match(t.CREATE),this.state=3662,this.match(t.RESOURCE),this.state=3663,this.match(t.POOL),this.state=3664,this.match(t.CLASSIFIER),this.state=3665,this.object_ref(),this.state=3666,this.with_table_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_resource_pool_classifier_stmt(){let e,s=new Mh(this.context,this.state);this.enterRule(s,600,t.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(s,1),this.state=3668,this.match(t.ALTER),this.state=3669,this.match(t.RESOURCE),this.state=3670,this.match(t.POOL),this.state=3671,this.match(t.CLASSIFIER),this.state=3672,this.object_ref(),this.state=3673,this.alter_resource_pool_classifier_action(),this.state=3678,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3674,this.match(t.COMMA),this.state=3675,this.alter_resource_pool_classifier_action(),this.state=3680,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_resource_pool_classifier_action(){let e=new yh(this.context,this.state);this.enterRule(e,602,t.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3683,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=3681,this.alter_table_set_table_setting_compat();break;case t.RESET:this.enterOuterAlt(e,2),this.state=3682,this.alter_table_reset_table_setting();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_resource_pool_classifier_stmt(){let e=new Dh(this.context,this.state);this.enterRule(e,604,t.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(e,1),this.state=3685,this.match(t.DROP),this.state=3686,this.match(t.RESOURCE),this.state=3687,this.match(t.POOL),this.state=3688,this.match(t.CLASSIFIER),this.state=3689,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_replication_stmt(){let e,s=new vh(this.context,this.state);this.enterRule(s,606,t.RULE_create_replication_stmt);try{for(this.enterOuterAlt(s,1),this.state=3691,this.match(t.CREATE),this.state=3692,this.match(t.ASYNC),this.state=3693,this.match(t.REPLICATION),this.state=3694,this.object_ref(),this.state=3695,this.match(t.FOR),this.state=3696,this.replication_target(),this.state=3701,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3697,this.match(t.COMMA),this.state=3698,this.replication_target(),this.state=3703,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3704,this.match(t.WITH),this.state=3705,this.match(t.LPAREN),this.state=3706,this.replication_settings(),this.state=3707,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}replication_target(){let e=new bh(this.context,this.state);this.enterRule(e,608,t.RULE_replication_target);try{this.enterOuterAlt(e,1),this.state=3709,this.object_ref(),this.state=3710,this.replication_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replication_settings(){let e,s=new Hh(this.context,this.state);this.enterRule(s,610,t.RULE_replication_settings);try{for(this.enterOuterAlt(s,1),this.state=3712,this.replication_settings_entry(),this.state=3717,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3713,this.match(t.COMMA),this.state=3714,this.replication_settings_entry(),this.state=3719,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}replication_settings_entry(){let e=new wh(this.context,this.state);this.enterRule(e,612,t.RULE_replication_settings_entry);try{this.enterOuterAlt(e,1),this.state=3720,this.an_id(),this.state=3721,this.match(t.EQUALS),this.state=3722,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_replication_stmt(){let e,s=new Fh(this.context,this.state);this.enterRule(s,614,t.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(s,1),this.state=3724,this.match(t.ALTER),this.state=3725,this.match(t.ASYNC),this.state=3726,this.match(t.REPLICATION),this.state=3727,this.object_ref(),this.state=3728,this.alter_replication_action(),this.state=3733,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3729,this.match(t.COMMA),this.state=3730,this.alter_replication_action(),this.state=3735,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_replication_action(){let e=new Gh(this.context,this.state);this.enterRule(e,616,t.RULE_alter_replication_action);try{this.enterOuterAlt(e,1),this.state=3736,this.alter_replication_set_setting()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_replication_set_setting(){let e=new Bh(this.context,this.state);this.enterRule(e,618,t.RULE_alter_replication_set_setting);try{this.enterOuterAlt(e,1),this.state=3738,this.match(t.SET),this.state=3739,this.match(t.LPAREN),this.state=3740,this.replication_settings(),this.state=3741,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_replication_stmt(){let e,s=new Yh(this.context,this.state);this.enterRule(s,620,t.RULE_drop_replication_stmt);try{this.enterOuterAlt(s,1),this.state=3743,this.match(t.DROP),this.state=3744,this.match(t.ASYNC),this.state=3745,this.match(t.REPLICATION),this.state=3746,this.object_ref(),this.state=3748,this.errorHandler.sync(this),e=this.tokenStream.LA(1),70===e&&(this.state=3747,this.match(t.CASCADE))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}action_or_subquery_args(){let e,s=new Vh(this.context,this.state);this.enterRule(s,622,t.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(s,1),this.state=3750,this.opt_bind_parameter(),this.state=3755,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3751,this.match(t.COMMA),this.state=3752,this.opt_bind_parameter(),this.state=3757,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}define_action_or_subquery_stmt(){let e,s=new Wh(this.context,this.state);this.enterRule(s,624,t.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(s,1),this.state=3758,this.match(t.DEFINE),this.state=3759,e=this.tokenStream.LA(1),41===e||274===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3760,this.bind_parameter(),this.state=3761,this.match(t.LPAREN),this.state=3763,this.errorHandler.sync(this),e=this.tokenStream.LA(1),32===e&&(this.state=3762,this.action_or_subquery_args()),this.state=3765,this.match(t.RPAREN),this.state=3766,this.match(t.AS),this.state=3767,this.define_action_or_subquery_body(),this.state=3768,this.match(t.END),this.state=3769,this.match(t.DEFINE)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}define_action_or_subquery_body(){let e,s=new Xh(this.context,this.state);this.enterRule(s,626,t.RULE_define_action_or_subquery_body);try{let r;for(this.enterOuterAlt(s,1),this.state=3774,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=3771,this.match(t.SEMICOLON),this.state=3776,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=3795,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e||!(e-32&-32)&&1<<e-32&536895489||!(e-79&-32)&&1<<e-79&1086587137||!(e-111&-32)&&1<<e-111&2684882947||!(e-147&-32)&&1<<e-147&1050753||!(e-215&-32)&&1<<e-215&134775809||!(e-247&-32)&&1<<e-247&262721||!(e-302&-32)&&1<<e-302&71){for(this.state=3777,this.sql_stmt_core(),this.state=3786,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,386,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){this.state=3779,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3778,this.match(t.SEMICOLON),this.state=3781,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=3783,this.sql_stmt_core()}this.state=3788,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,386,this.context)}for(this.state=3792,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=3789,this.match(t.SEMICOLON),this.state=3794,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}if_stmt(){let e,s=new Kh(this.context,this.state);this.enterRule(s,628,t.RULE_if_stmt);try{this.enterOuterAlt(s,1),this.state=3798,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=3797,this.match(t.EVALUATE)),this.state=3800,this.match(t.IF),this.state=3801,this.expr(),this.state=3802,this.do_stmt(),this.state=3805,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=3803,this.match(t.ELSE),this.state=3804,this.do_stmt())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}for_stmt(){let e,s=new Qh(this.context,this.state);this.enterRule(s,630,t.RULE_for_stmt);try{this.enterOuterAlt(s,1),this.state=3808,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=3807,this.match(t.EVALUATE)),this.state=3811,this.errorHandler.sync(this),e=this.tokenStream.LA(1),215===e&&(this.state=3810,this.match(t.PARALLEL)),this.state=3813,this.match(t.FOR),this.state=3814,this.bind_parameter(),this.state=3815,this.match(t.IN),this.state=3816,this.expr(),this.state=3817,this.do_stmt(),this.state=3820,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=3818,this.match(t.ELSE),this.state=3819,this.do_stmt())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_ref(){let e,s=new qh(this.context,this.state);this.enterRule(s,632,t.RULE_table_ref);try{let r;if(this.enterOuterAlt(s,1),1===(this.state=3825,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,394,this.context)))this.state=3822,this.cluster_expr(),this.state=3823,this.match(t.DOT);switch(this.state=3828,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=3827,this.match(t.COMMAT)),this.state=3860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,402,this.context)){case 1:this.state=3830,this.table_key();break;case 2:if(this.state=3831,this.an_id_expr(),this.state=3832,this.match(t.LPAREN),this.state=3844,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-15&-32)&&1<<e-15&4278618141||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607){for(this.state=3833,this.table_arg(),this.state=3838,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3834,this.match(t.COMMA),this.state=3835,this.table_arg()),this.state=3840,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);this.state=3842,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3841,this.match(t.COMMA))}this.state=3846,this.match(t.RPAREN);break;case 3:this.state=3848,this.bind_parameter(),this.state=3854,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3849,this.match(t.LPAREN),this.state=3851,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=3850,this.expr_list()),this.state=3853,this.match(t.RPAREN)),this.state=3858,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3856,this.match(t.VIEW),this.state=3857,this.view_name())}this.state=3863,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3862,this.table_hints())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_key(){let e,s=new jh(this.context,this.state);this.enterRule(s,634,t.RULE_table_key);try{this.enterOuterAlt(s,1),this.state=3865,this.id_table_or_type(),this.state=3868,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3866,this.match(t.VIEW),this.state=3867,this.view_name())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_arg(){let e,s=new Jh(this.context,this.state);this.enterRule(s,636,t.RULE_table_arg);try{this.enterOuterAlt(s,1),this.state=3871,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=3870,this.match(t.COMMAT)),this.state=3873,this.named_expr(),this.state=3876,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3874,this.match(t.VIEW),this.state=3875,this.view_name())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_hints(){let e,s=new zh(this.context,this.state);this.enterRule(s,638,t.RULE_table_hints);try{switch(this.enterOuterAlt(s,1),this.state=3878,this.match(t.WITH),this.state=3891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=3879,this.table_hint();break;case t.LPAREN:for(this.state=3880,this.match(t.LPAREN),this.state=3881,this.table_hint(),this.state=3886,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3882,this.match(t.COMMA),this.state=3883,this.table_hint(),this.state=3888,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3889,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_hint(){let e,s=new Zh(this.context,this.state);this.enterRule(s,640,t.RULE_table_hint);try{let r;switch(this.state=3938,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,418,this.context)){case 1:if(this.enterOuterAlt(s,1),this.state=3893,this.an_id_hint(),this.state=3912,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e)switch(this.state=3894,this.match(t.EQUALS),this.state=3910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=3895,this.type_name_tag();break;case t.LPAREN:for(this.state=3896,this.match(t.LPAREN),this.state=3897,this.type_name_tag(),this.state=3902,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3898,this.match(t.COMMA),this.state=3899,this.type_name_tag()),this.state=3904,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);this.state=3906,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3905,this.match(t.COMMA)),this.state=3908,this.match(t.RPAREN);break;default:throw new ce(this)}break;case 2:this.enterOuterAlt(s,2),this.state=3914,e=this.tokenStream.LA(1),78===e||262===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3916,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=3915,this.match(t.EQUALS)),this.state=3918,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(s,3),this.state=3919,this.match(t.SCHEMA),this.state=3921,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=3920,this.match(t.EQUALS)),this.state=3923,this.match(t.LPAREN),this.state=3932,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-32&-32)&&1<<e-32&4026531585||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&4294967295||!(e-128&-32)&&1<<e-128&4294705119||!(e-160&-32)&&1<<e-160&4294967295||!(e-192&-32)&&1<<e-192&4294967295||!(e-224&-32)&&1<<e-224&4294836223||!(e-256&-32)&&1<<e-256&4294967295||!(e-288&-32)&&1<<e-288&4294967263||320===e||321===e)for(this.state=3924,this.struct_arg_positional(),this.state=3929,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3925,this.match(t.COMMA),this.state=3926,this.struct_arg_positional()),this.state=3931,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);this.state=3935,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3934,this.match(t.COMMA)),this.state=3937,this.match(t.RPAREN)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}object_ref(){let e=new $h(this.context,this.state);this.enterRule(e,642,t.RULE_object_ref);try{if(this.enterOuterAlt(e,1),1===(this.state=3943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,419,this.context)))this.state=3940,this.cluster_expr(),this.state=3941,this.match(t.DOT);this.state=3945,this.id_or_at()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simple_table_ref_core(){let e,s=new to(this.context,this.state);this.enterRule(s,644,t.RULE_simple_table_ref_core);try{switch(this.state=3952,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,421,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3947,this.object_ref();break;case 2:this.enterOuterAlt(s,2),this.state=3949,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=3948,this.match(t.COMMAT)),this.state=3951,this.bind_parameter()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}simple_table_ref(){let e,s=new eo(this.context,this.state);this.enterRule(s,646,t.RULE_simple_table_ref);try{this.enterOuterAlt(s,1),this.state=3954,this.simple_table_ref_core(),this.state=3956,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3955,this.table_hints())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}into_simple_table_ref(){let e,s=new so(this.context,this.state);this.enterRule(s,648,t.RULE_into_simple_table_ref);try{this.enterOuterAlt(s,1),this.state=3958,this.simple_table_ref(),this.state=3962,this.errorHandler.sync(this),e=this.tokenStream.LA(1),120===e&&(this.state=3959,this.match(t.ERASE),this.state=3960,this.match(t.BY),this.state=3961,this.pure_column_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}delete_stmt(){let e,s=new ro(this.context,this.state);this.enterRule(s,650,t.RULE_delete_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3964,this.match(t.DELETE),this.state=3965,this.match(t.FROM),this.state=3966,this.simple_table_ref(),this.state=3970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHERE:this.state=3967,this.where_expr();break;case t.ON:this.state=3968,this.match(t.ON),this.state=3969,this.into_values_source();case t.EOF:case t.SEMICOLON:case t.END:case t.RETURNING:}this.state=3973,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=3972,this.returning_columns_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}update_stmt(){let e,s=new io(this.context,this.state);this.enterRule(s,652,t.RULE_update_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3975,this.match(t.UPDATE),this.state=3976,this.simple_table_ref(),this.state=3984,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.state=3977,this.match(t.SET),this.state=3978,this.set_clause_choice(),this.state=3980,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=3979,this.where_expr());break;case t.ON:this.state=3982,this.match(t.ON),this.state=3983,this.into_values_source();break;default:throw new ce(this)}this.state=3987,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=3986,this.returning_columns_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}set_clause_choice(){let e=new ao(this.context,this.state);this.enterRule(e,654,t.RULE_set_clause_choice);try{switch(this.state=3991,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3989,this.set_clause_list();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=3990,this.multiple_column_assignment();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_clause_list(){let e,s=new no(this.context,this.state);this.enterRule(s,656,t.RULE_set_clause_list);try{for(this.enterOuterAlt(s,1),this.state=3993,this.set_clause(),this.state=3998,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3994,this.match(t.COMMA),this.state=3995,this.set_clause(),this.state=4e3,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}set_clause(){let e=new co(this.context,this.state);this.enterRule(e,658,t.RULE_set_clause);try{this.enterOuterAlt(e,1),this.state=4001,this.set_target(),this.state=4002,this.match(t.EQUALS),this.state=4003,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_target(){let e=new ho(this.context,this.state);this.enterRule(e,660,t.RULE_set_target);try{this.enterOuterAlt(e,1),this.state=4005,this.column_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}multiple_column_assignment(){let e=new oo(this.context,this.state);this.enterRule(e,662,t.RULE_multiple_column_assignment);try{this.enterOuterAlt(e,1),this.state=4007,this.set_target_list(),this.state=4008,this.match(t.EQUALS),this.state=4009,this.match(t.LPAREN),this.state=4010,this.simple_values_source(),this.state=4011,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_target_list(){let e,s=new Eo(this.context,this.state);this.enterRule(s,664,t.RULE_set_target_list);try{for(this.enterOuterAlt(s,1),this.state=4013,this.match(t.LPAREN),this.state=4014,this.set_target(),this.state=4019,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4015,this.match(t.COMMA),this.state=4016,this.set_target(),this.state=4021,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4022,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_topic_stmt(){let e,s=new lo(this.context,this.state);this.enterRule(s,666,t.RULE_create_topic_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=4024,this.match(t.CREATE),this.state=4025,this.match(t.TOPIC),this.state=4029,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,432,this.context)))this.state=4026,this.match(t.IF),this.state=4027,this.match(t.NOT),this.state=4028,this.match(t.EXISTS);this.state=4031,this.topic_ref(),this.state=4033,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=4032,this.create_topic_entries()),this.state=4036,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=4035,this.with_topic_settings())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_topic_entries(){let e,s=new uo(this.context,this.state);this.enterRule(s,668,t.RULE_create_topic_entries);try{for(this.enterOuterAlt(s,1),this.state=4038,this.match(t.LPAREN),this.state=4039,this.create_topic_entry(),this.state=4044,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4040,this.match(t.COMMA),this.state=4041,this.create_topic_entry(),this.state=4046,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4047,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_topic_entry(){let e=new Ro(this.context,this.state);this.enterRule(e,670,t.RULE_create_topic_entry);try{this.enterOuterAlt(e,1),this.state=4049,this.topic_create_consumer_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_topic_settings(){let e=new _o(this.context,this.state);this.enterRule(e,672,t.RULE_with_topic_settings);try{this.enterOuterAlt(e,1),this.state=4051,this.match(t.WITH),this.state=4052,this.match(t.LPAREN),this.state=4053,this.topic_settings(),this.state=4054,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_stmt(){let e,s=new To(this.context,this.state);this.enterRule(s,674,t.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=4056,this.match(t.ALTER),this.state=4057,this.match(t.TOPIC),this.state=4060,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,436,this.context)))this.state=4058,this.match(t.IF),this.state=4059,this.match(t.EXISTS);for(this.state=4062,this.topic_ref(),this.state=4063,this.alter_topic_action(),this.state=4068,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4064,this.match(t.COMMA),this.state=4065,this.alter_topic_action(),this.state=4070,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_topic_action(){let e=new Ao(this.context,this.state);this.enterRule(e,676,t.RULE_alter_topic_action);try{switch(this.state=4076,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:this.enterOuterAlt(e,1),this.state=4071,this.alter_topic_add_consumer();break;case t.ALTER:this.enterOuterAlt(e,2),this.state=4072,this.alter_topic_alter_consumer();break;case t.DROP:this.enterOuterAlt(e,3),this.state=4073,this.alter_topic_drop_consumer();break;case t.SET:this.enterOuterAlt(e,4),this.state=4074,this.alter_topic_set_settings();break;case t.RESET:this.enterOuterAlt(e,5),this.state=4075,this.alter_topic_reset_settings();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_add_consumer(){let e=new So(this.context,this.state);this.enterRule(e,678,t.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(e,1),this.state=4078,this.match(t.ADD),this.state=4079,this.topic_create_consumer_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_create_consumer_entry(){let e,s=new Lo(this.context,this.state);this.enterRule(s,680,t.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(s,1),this.state=4081,this.match(t.CONSUMER),this.state=4082,this.an_id(),this.state=4084,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=4083,this.topic_consumer_with_settings())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_topic_alter_consumer(){let e=new Co(this.context,this.state);this.enterRule(e,682,t.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(e,1),this.state=4086,this.match(t.ALTER),this.state=4087,this.match(t.CONSUMER),this.state=4088,this.topic_consumer_ref(),this.state=4089,this.alter_topic_alter_consumer_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_alter_consumer_entry(){let e=new No(this.context,this.state);this.enterRule(e,684,t.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4093,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=4091,this.topic_alter_consumer_set();break;case t.RESET:this.enterOuterAlt(e,2),this.state=4092,this.topic_alter_consumer_reset();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_drop_consumer(){let e=new Io(this.context,this.state);this.enterRule(e,686,t.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(e,1),this.state=4095,this.match(t.DROP),this.state=4096,this.match(t.CONSUMER),this.state=4097,this.topic_consumer_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_alter_consumer_set(){let e=new Oo(this.context,this.state);this.enterRule(e,688,t.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(e,1),this.state=4099,this.match(t.SET),this.state=4100,this.match(t.LPAREN),this.state=4101,this.topic_consumer_settings(),this.state=4102,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_alter_consumer_reset(){let e,s=new po(this.context,this.state);this.enterRule(s,690,t.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(s,1),this.state=4104,this.match(t.RESET),this.state=4105,this.match(t.LPAREN),this.state=4106,this.an_id(),this.state=4111,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4107,this.match(t.COMMA),this.state=4108,this.an_id(),this.state=4113,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4114,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_topic_set_settings(){let e=new go(this.context,this.state);this.enterRule(e,692,t.RULE_alter_topic_set_settings);try{this.enterOuterAlt(e,1),this.state=4116,this.match(t.SET),this.state=4117,this.match(t.LPAREN),this.state=4118,this.topic_settings(),this.state=4119,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_reset_settings(){let e,s=new mo(this.context,this.state);this.enterRule(s,694,t.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(s,1),this.state=4121,this.match(t.RESET),this.state=4122,this.match(t.LPAREN),this.state=4123,this.an_id(),this.state=4128,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4124,this.match(t.COMMA),this.state=4125,this.an_id_pure(),this.state=4130,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4131,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_topic_stmt(){let e=new xo(this.context,this.state);this.enterRule(e,696,t.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=4133,this.match(t.DROP),this.state=4134,this.match(t.TOPIC),this.state=4137,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,443,this.context)))this.state=4135,this.match(t.IF),this.state=4136,this.match(t.EXISTS);this.state=4139,this.topic_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_settings(){let e,s=new Uo(this.context,this.state);this.enterRule(s,698,t.RULE_topic_settings);try{for(this.enterOuterAlt(s,1),this.state=4141,this.topic_settings_entry(),this.state=4146,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4142,this.match(t.COMMA),this.state=4143,this.topic_settings_entry(),this.state=4148,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}topic_settings_entry(){let e=new fo(this.context,this.state);this.enterRule(e,700,t.RULE_topic_settings_entry);try{this.enterOuterAlt(e,1),this.state=4149,this.an_id(),this.state=4150,this.match(t.EQUALS),this.state=4151,this.topic_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_setting_value(){let e=new Po(this.context,this.state);this.enterRule(e,702,t.RULE_topic_setting_value);try{this.enterOuterAlt(e,1),this.state=4153,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_with_settings(){let e=new ko(this.context,this.state);this.enterRule(e,704,t.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(e,1),this.state=4155,this.match(t.WITH),this.state=4156,this.match(t.LPAREN),this.state=4157,this.topic_consumer_settings(),this.state=4158,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_settings(){let e,s=new Mo(this.context,this.state);this.enterRule(s,706,t.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(s,1),this.state=4160,this.topic_consumer_settings_entry(),this.state=4165,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4161,this.match(t.COMMA),this.state=4162,this.topic_consumer_settings_entry(),this.state=4167,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}topic_consumer_settings_entry(){let e=new yo(this.context,this.state);this.enterRule(e,708,t.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(e,1),this.state=4168,this.an_id(),this.state=4169,this.match(t.EQUALS),this.state=4170,this.topic_consumer_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_setting_value(){let e=new Do(this.context,this.state);this.enterRule(e,710,t.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(e,1),this.state=4172,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_ref(){let e=new vo(this.context,this.state);this.enterRule(e,712,t.RULE_topic_ref);try{if(this.enterOuterAlt(e,1),1===(this.state=4177,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4174,this.cluster_expr(),this.state=4175,this.match(t.DOT);this.state=4179,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_ref(){let e=new bo(this.context,this.state);this.enterRule(e,714,t.RULE_topic_consumer_ref);try{this.enterOuterAlt(e,1),this.state=4181,this.an_id_pure()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}null_treatment(){let e=new Ho(this.context,this.state);this.enterRule(e,716,t.RULE_null_treatment);try{switch(this.state=4187,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESPECT:this.enterOuterAlt(e,1),this.state=4183,this.match(t.RESPECT),this.state=4184,this.match(t.NULLS);break;case t.IGNORE:this.enterOuterAlt(e,2),this.state=4185,this.match(t.IGNORE),this.state=4186,this.match(t.NULLS);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}filter_clause(){let e=new wo(this.context,this.state);this.enterRule(e,718,t.RULE_filter_clause);try{this.enterOuterAlt(e,1),this.state=4189,this.match(t.FILTER),this.state=4190,this.match(t.LPAREN),this.state=4191,this.where_expr(),this.state=4192,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_name_or_specification(){let e=new Fo(this.context,this.state);this.enterRule(e,720,t.RULE_window_name_or_specification);try{switch(this.state=4196,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4194,this.window_name();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=4195,this.window_specification();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_name(){let e=new Go(this.context,this.state);this.enterRule(e,722,t.RULE_window_name);try{this.enterOuterAlt(e,1),this.state=4198,this.an_id_window()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_clause(){let e=new Bo(this.context,this.state);this.enterRule(e,724,t.RULE_window_clause);try{this.enterOuterAlt(e,1),this.state=4200,this.match(t.WINDOW),this.state=4201,this.window_definition_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_definition_list(){let e,s=new Yo(this.context,this.state);this.enterRule(s,726,t.RULE_window_definition_list);try{for(this.enterOuterAlt(s,1),this.state=4203,this.window_definition(),this.state=4208,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4204,this.match(t.COMMA),this.state=4205,this.window_definition(),this.state=4210,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_definition(){let e=new Vo(this.context,this.state);this.enterRule(e,728,t.RULE_window_definition);try{this.enterOuterAlt(e,1),this.state=4211,this.new_window_name(),this.state=4212,this.match(t.AS),this.state=4213,this.window_specification()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}new_window_name(){let e=new Wo(this.context,this.state);this.enterRule(e,730,t.RULE_new_window_name);try{this.enterOuterAlt(e,1),this.state=4215,this.window_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_specification(){let e=new Xo(this.context,this.state);this.enterRule(e,732,t.RULE_window_specification);try{this.enterOuterAlt(e,1),this.state=4217,this.match(t.LPAREN),this.state=4218,this.window_specification_details(),this.state=4219,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_specification_details(){let e,s=new Ko(this.context,this.state);this.enterRule(s,734,t.RULE_window_specification_details);try{if(this.enterOuterAlt(s,1),1===(this.state=4222,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4221,this.existing_window_name();this.state=4225,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=4224,this.window_partition_clause()),this.state=4228,this.errorHandler.sync(this),e=this.tokenStream.LA(1),211===e&&(this.state=4227,this.window_order_clause()),this.state=4231,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(150===e||233===e||259===e)&&(this.state=4230,this.window_frame_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}existing_window_name(){let e=new Qo(this.context,this.state);this.enterRule(e,736,t.RULE_existing_window_name);try{this.enterOuterAlt(e,1),this.state=4233,this.window_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_partition_clause(){let e,s=new qo(this.context,this.state);this.enterRule(s,738,t.RULE_window_partition_clause);try{this.enterOuterAlt(s,1),this.state=4235,this.match(t.PARTITION),this.state=4237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=4236,this.match(t.COMPACT)),this.state=4239,this.match(t.BY),this.state=4240,this.named_expr_list()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_order_clause(){let e=new jo(this.context,this.state);this.enterRule(e,740,t.RULE_window_order_clause);try{this.enterOuterAlt(e,1),this.state=4242,this.order_by_clause()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_clause(){let e,s=new Jo(this.context,this.state);this.enterRule(s,742,t.RULE_window_frame_clause);try{this.enterOuterAlt(s,1),this.state=4244,this.window_frame_units(),this.state=4245,this.window_frame_extent(),this.state=4247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),125===e&&(this.state=4246,this.window_frame_exclusion())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_frame_units(){let e,s=new zo(this.context,this.state);this.enterRule(s,744,t.RULE_window_frame_units);try{this.enterOuterAlt(s,1),this.state=4249,e=this.tokenStream.LA(1),150===e||233===e||259===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_frame_extent(){let e=new Zo(this.context,this.state);this.enterRule(e,746,t.RULE_window_frame_extent);try{switch(this.state=4253,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,456,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4251,this.window_frame_bound();break;case 2:this.enterOuterAlt(e,2),this.state=4252,this.window_frame_between()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_between(){let e=new $o(this.context,this.state);this.enterRule(e,748,t.RULE_window_frame_between);try{this.enterOuterAlt(e,1),this.state=4255,this.match(t.BETWEEN),this.state=4256,this.window_frame_bound(),this.state=4257,this.match(t.AND),this.state=4258,this.window_frame_bound()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_bound(){let e,s=new tE(this.context,this.state);this.enterRule(s,750,t.RULE_window_frame_bound);try{switch(this.state=4267,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,458,this.context)){case 1:this.enterOuterAlt(s,1),this.state=4260,this.match(t.CURRENT),this.state=4261,this.match(t.ROW);break;case 2:switch(this.enterOuterAlt(s,2),this.state=4264,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)){case 1:this.state=4262,this.expr();break;case 2:this.state=4263,this.match(t.UNBOUNDED)}this.state=4266,e=this.tokenStream.LA(1),139===e||226===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_frame_exclusion(){let e=new eE(this.context,this.state);this.enterRule(e,752,t.RULE_window_frame_exclusion);try{switch(this.state=4279,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4269,this.match(t.EXCLUDE),this.state=4270,this.match(t.CURRENT),this.state=4271,this.match(t.ROW);break;case 2:this.enterOuterAlt(e,2),this.state=4272,this.match(t.EXCLUDE),this.state=4273,this.match(t.GROUP);break;case 3:this.enterOuterAlt(e,3),this.state=4274,this.match(t.EXCLUDE),this.state=4275,this.match(t.TIES);break;case 4:this.enterOuterAlt(e,4),this.state=4276,this.match(t.EXCLUDE),this.state=4277,this.match(t.NO),this.state=4278,this.match(t.OTHERS)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}use_stmt(){let e=new sE(this.context,this.state);this.enterRule(e,754,t.RULE_use_stmt);try{this.enterOuterAlt(e,1),this.state=4281,this.match(t.USE),this.state=4282,this.cluster_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}subselect_stmt(){let e=new rE(this.context,this.state);this.enterRule(e,756,t.RULE_subselect_stmt);try{switch(this.enterOuterAlt(e,1),this.state=4289,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:this.state=4284,this.match(t.LPAREN),this.state=4285,this.select_stmt(),this.state=4286,this.match(t.RPAREN);break;case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.state=4288,this.select_unparenthesized_stmt();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}named_nodes_stmt(){let e=new iE(this.context,this.state);this.enterRule(e,758,t.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(e,1),this.state=4291,this.bind_parameter_list(),this.state=4292,this.match(t.EQUALS),this.state=4295,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,461,this.context)){case 1:this.state=4293,this.expr();break;case 2:this.state=4294,this.subselect_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commit_stmt(){let e=new aE(this.context,this.state);this.enterRule(e,760,t.RULE_commit_stmt);try{this.enterOuterAlt(e,1),this.state=4297,this.match(t.COMMIT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rollback_stmt(){let e=new nE(this.context,this.state);this.enterRule(e,762,t.RULE_rollback_stmt);try{this.enterOuterAlt(e,1),this.state=4299,this.match(t.ROLLBACK)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}analyze_table(){let e,s=new cE(this.context,this.state);this.enterRule(s,764,t.RULE_analyze_table);try{this.enterOuterAlt(s,1),this.state=4301,this.simple_table_ref(),this.state=4306,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=4302,this.match(t.LPAREN),this.state=4303,this.column_list(),this.state=4304,this.match(t.RPAREN))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}analyze_table_list(){let e,s=new hE(this.context,this.state);this.enterRule(s,766,t.RULE_analyze_table_list);try{let r;for(this.enterOuterAlt(s,1),this.state=4308,this.analyze_table(),this.state=4313,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=4309,this.match(t.COMMA),this.state=4310,this.analyze_table()),this.state=4315,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);this.state=4317,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=4316,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}analyze_stmt(){let e=new oE(this.context,this.state);this.enterRule(e,768,t.RULE_analyze_stmt);try{this.enterOuterAlt(e,1),this.state=4319,this.match(t.ANALYZE),this.state=4320,this.analyze_table_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}identifier(){let e,s=new EE(this.context,this.state);this.enterRule(s,770,t.RULE_identifier);try{this.enterOuterAlt(s,1),this.state=4322,e=this.tokenStream.LA(1),320===e||321===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}id(){let e=new lE(this.context,this.state);this.enterRule(e,772,t.RULE_id);try{switch(this.state=4326,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4324,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4325,this.keyword();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_schema(){let e=new uE(this.context,this.state);this.enterRule(e,774,t.RULE_id_schema);try{switch(this.state=4335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4328,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4329,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4330,this.keyword_expr_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4331,this.keyword_select_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4332,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4333,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4334,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_expr(){let e=new RE(this.context,this.state);this.enterRule(e,776,t.RULE_id_expr);try{switch(this.state=4343,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4337,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4338,this.keyword_compat();break;case t.COLUMN:this.enterOuterAlt(e,3),this.state=4339,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,4),this.state=4340,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,5),this.state=4341,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,6),this.state=4342,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_expr_in(){let e=new _E(this.context,this.state);this.enterRule(e,778,t.RULE_id_expr_in);try{switch(this.state=4350,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4345,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4346,this.keyword_compat();break;case t.COLUMN:this.enterOuterAlt(e,3),this.state=4347,this.keyword_alter_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,4),this.state=4348,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,5),this.state=4349,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_window(){let e=new TE(this.context,this.state);this.enterRule(e,780,t.RULE_id_window);try{switch(this.state=4360,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4352,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4353,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4354,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,4),this.state=4355,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,5),this.state=4356,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,6),this.state=4357,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,7),this.state=4358,this.keyword_in_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,8),this.state=4359,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_table(){let e=new AE(this.context,this.state);this.enterRule(e,782,t.RULE_id_table);try{switch(this.state=4369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4362,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4363,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4364,this.keyword_expr_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4365,this.keyword_select_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4366,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4367,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4368,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_without(){let e=new SE(this.context,this.state);this.enterRule(e,784,t.RULE_id_without);try{switch(this.state=4378,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4371,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4372,this.keyword_compat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,3),this.state=4373,this.keyword_table_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,4),this.state=4374,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4375,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4376,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4377,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_hint(){let e=new dE(this.context,this.state);this.enterRule(e,786,t.RULE_id_hint);try{switch(this.state=4388,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4380,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4381,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4382,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,4),this.state=4383,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,5),this.state=4384,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,6),this.state=4385,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,7),this.state=4386,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,8),this.state=4387,this.keyword_window_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_as_compat(){let e=new LE(this.context,this.state);this.enterRule(e,788,t.RULE_id_as_compat);try{switch(this.state=4392,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4390,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.LAST:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.NO:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.OTHERS:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.REVERT:case t.REVOKE:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.VACUUM:case t.VALUES:case t.VIRTUAL:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4391,this.keyword_as_compat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id(){let e=new CE(this.context,this.state);this.enterRule(e,790,t.RULE_an_id);try{switch(this.state=4396,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4394,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4395,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_or_type(){let e=new NE(this.context,this.state);this.enterRule(e,792,t.RULE_an_id_or_type);try{switch(this.state=4400,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4398,this.id_or_type();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4399,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_schema(){let e=new IE(this.context,this.state);this.enterRule(e,794,t.RULE_an_id_schema);try{switch(this.state=4404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4402,this.id_schema();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4403,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_expr(){let e=new OE(this.context,this.state);this.enterRule(e,796,t.RULE_an_id_expr);try{switch(this.state=4408,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4406,this.id_expr();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4407,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_expr_in(){let e=new pE(this.context,this.state);this.enterRule(e,798,t.RULE_an_id_expr_in);try{switch(this.state=4412,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4410,this.id_expr_in();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4411,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_window(){let e=new gE(this.context,this.state);this.enterRule(e,800,t.RULE_an_id_window);try{switch(this.state=4416,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4414,this.id_window();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4415,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_table(){let e=new mE(this.context,this.state);this.enterRule(e,802,t.RULE_an_id_table);try{switch(this.state=4420,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4418,this.id_table();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4419,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_without(){let e=new xE(this.context,this.state);this.enterRule(e,804,t.RULE_an_id_without);try{switch(this.state=4424,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4422,this.id_without();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4423,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_hint(){let e=new UE(this.context,this.state);this.enterRule(e,806,t.RULE_an_id_hint);try{switch(this.state=4428,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4426,this.id_hint();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4427,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_pure(){let e=new fE(this.context,this.state);this.enterRule(e,808,t.RULE_an_id_pure);try{switch(this.state=4432,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4430,this.identifier();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4431,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_as_compat(){let e=new PE(this.context,this.state);this.enterRule(e,810,t.RULE_an_id_as_compat);try{switch(this.state=4436,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.LAST:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.NO:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.OTHERS:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.REVERT:case t.REVOKE:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.VACUUM:case t.VALUES:case t.VIRTUAL:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4434,this.id_as_compat();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4435,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}view_name(){let e=new kE(this.context,this.state);this.enterRule(e,812,t.RULE_view_name);try{switch(this.state=4441,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,485,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4438,this.an_id();break;case 2:this.enterOuterAlt(e,2),this.state=4439,this.match(t.PRIMARY),this.state=4440,this.match(t.KEY)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_id_prefix(){let e=new ME(this.context,this.state);this.enterRule(e,814,t.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(e,1),this.state=4446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,486,this.context)))this.state=4443,this.an_id(),this.state=4444,this.match(t.DOT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cluster_expr(){let e=new yE(this.context,this.state);this.enterRule(e,816,t.RULE_cluster_expr);try{if(this.enterOuterAlt(e,1),1===(this.state=4451,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,487,this.context)))this.state=4448,this.an_id(),this.state=4449,this.match(t.COLON);switch(this.state=4455,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=4453,this.pure_column_or_named();break;case t.ASTERISK:this.state=4454,this.match(t.ASTERISK);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_or_type(){let e=new DE(this.context,this.state);this.enterRule(e,818,t.RULE_id_or_type);try{switch(this.state=4459,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4457,this.id();break;case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(e,2),this.state=4458,this.type_id();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_id_prefix_or_type(){let e=new vE(this.context,this.state);this.enterRule(e,820,t.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(e,1),this.state=4464,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,490,this.context)))this.state=4461,this.an_id_or_type(),this.state=4462,this.match(t.DOT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_or_at(){let e,s=new bE(this.context,this.state);this.enterRule(s,822,t.RULE_id_or_at);try{this.enterOuterAlt(s,1),this.state=4467,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=4466,this.match(t.COMMAT)),this.state=4469,this.an_id_or_type()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}id_table_or_type(){let e=new HE(this.context,this.state);this.enterRule(e,824,t.RULE_id_table_or_type);try{switch(this.state=4473,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4471,this.an_id_table();break;case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(e,2),this.state=4472,this.type_id();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_table_or_at(){let e,s=new wE(this.context,this.state);this.enterRule(s,826,t.RULE_id_table_or_at);try{this.enterOuterAlt(s,1),this.state=4476,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=4475,this.match(t.COMMAT)),this.state=4478,this.id_table_or_type()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword(){let e=new FE(this.context,this.state);this.enterRule(e,828,t.RULE_keyword);try{switch(this.state=4488,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,1),this.state=4480,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,2),this.state=4481,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,3),this.state=4482,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4483,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,5),this.state=4484,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,6),this.state=4485,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,7),this.state=4486,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,8),this.state=4487,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_expr_uncompat(){let e,s=new GE(this.context,this.state);this.enterRule(s,830,t.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(s,1),this.state=4490,e=this.tokenStream.LA(1),!(e-54&-32)&&1<<e-54&405505||!(e-89&-32)&&1<<e-89&134217757||!(e-128&-32)&&1<<e-128&33603585||!(e-174&-32)&&1<<e-174&41944071||!(e-230&-32)&&1<<e-230&137363473||!(e-265&-32)&&1<<e-265&2147487745||312===e||313===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_table_uncompat(){let e,s=new BE(this.context,this.state);this.enterRule(s,832,t.RULE_keyword_table_uncompat);try{this.enterOuterAlt(s,1),this.state=4492,e=this.tokenStream.LA(1),49===e||120===e||272===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_select_uncompat(){let e,s=new YE(this.context,this.state);this.enterRule(s,834,t.RULE_keyword_select_uncompat);try{this.enterOuterAlt(s,1),this.state=4494,e=this.tokenStream.LA(1),!(e-44&-32)&&1<<e-44&641||110===e||124===e||!(e-152&-32)&&1<<e-152&1073872897||!(e-298&-32)&&1<<e-298&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_alter_uncompat(){let e=new VE(this.context,this.state);this.enterRule(e,836,t.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(e,1),this.state=4496,this.match(t.COLUMN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_in_uncompat(){let e=new WE(this.context,this.state);this.enterRule(e,838,t.RULE_keyword_in_uncompat);try{this.enterOuterAlt(e,1),this.state=4498,this.match(t.COMPACT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_window_uncompat(){let e,s=new XE(this.context,this.state);this.enterRule(s,840,t.RULE_keyword_window_uncompat);try{this.enterOuterAlt(s,1),this.state=4500,e=this.tokenStream.LA(1),150===e||233===e||259===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_hint_uncompat(){let e,s=new KE(this.context,this.state);this.enterRule(s,842,t.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(s,1),this.state=4502,e=this.tokenStream.LA(1),78===e||262===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_as_compat(){let e,s=new QE(this.context,this.state);this.enterRule(s,844,t.RULE_keyword_as_compat);try{this.enterOuterAlt(s,1),this.state=4504,e=this.tokenStream.LA(1),!(e-40&-32)&&1<<e-40&1408210415||!(e-73&-32)&&1<<e-73&4024598343||!(e-105&-32)&&1<<e-105&4015470493||!(e-137&-32)&&1<<e-137&3757989277||!(e-170&-32)&&1<<e-170&3338636547||!(e-202&-32)&&1<<e-202&1845486967||!(e-235&-32)&&1<<e-235&884358079||!(e-268&-32)&&1<<e-268&2852060623||!(e-300&-32)&&1<<e-300&395711?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_compat(){let e,s=new qE(this.context,this.state);this.enterRule(s,846,t.RULE_keyword_compat);try{this.enterOuterAlt(s,1),this.state=4506,e=this.tokenStream.LA(1),!(e-40&-32)&&1<<e-40&1408210415||!(e-73&-32)&&1<<e-73&4293066575||!(e-105&-32)&&1<<e-105&4017567709||!(e-137&-32)&&1<<e-137&4294860189||!(e-170&-32)&&1<<e-170&3623849871||!(e-202&-32)&&1<<e-202&1879048063||!(e-235&-32)&&1<<e-235&3065936831||!(e-268&-32)&&1<<e-268&2852060623||!(e-300&-32)&&1<<e-300&429567?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_id(){let e,s=new jE(this.context,this.state);this.enterRule(s,848,t.RULE_type_id);try{this.enterOuterAlt(s,1),this.state=4508,e=this.tokenStream.LA(1),69===e||106===e||119===e||138===e||183===e||209===e||!(e-245&-32)&&1<<e-245&272629761||!(e-284&-32)&&1<<e-284&33555457?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}bool_value(){let e,s=new JE(this.context,this.state);this.enterRule(s,850,t.RULE_bool_value);try{this.enterOuterAlt(s,1),this.state=4510,e=this.tokenStream.LA(1),133===e||293===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}real(){let e=new zE(this.context,this.state);this.enterRule(e,852,t.RULE_real);try{this.enterOuterAlt(e,1),this.state=4512,this.match(t.REAL)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}integer(){let e,s=new ZE(this.context,this.state);this.enterRule(s,854,t.RULE_integer);try{this.enterOuterAlt(s,1),this.state=4514,e=this.tokenStream.LA(1),322===e||323===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_query_yq(){let e=new $E(this.context,this.state);this.enterRule(e,856,t.RULE_sql_query_yq);try{switch(this.state=4521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,495,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4516,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(e,2),this.state=4517,this.match(t.PRAGMA),this.state=4518,this.match(t.ANSI),this.state=4519,this.match(t.DIGITS),this.state=4520,this.ansi_sql_stmt_list()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt_list_yq(){let e,s=new tl(this.context,this.state);this.enterRule(s,858,t.RULE_sql_stmt_list_yq);try{let r;for(this.enterOuterAlt(s,1),this.state=4526,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=4523,this.match(t.SEMICOLON),this.state=4528,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=4529,this.sql_stmt_yq(),this.state=4538,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,498,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){this.state=4531,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4530,this.match(t.SEMICOLON),this.state=4533,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=4535,this.sql_stmt_yq()}this.state=4540,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,498,this.context)}for(this.state=4544,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=4541,this.match(t.SEMICOLON),this.state=4546,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4547,this.match(t.EOF)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_stmt_yq(){let e,s=new el(this.context,this.state);this.enterRule(s,860,t.RULE_sql_stmt_yq);try{this.enterOuterAlt(s,1),this.state=4554,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=4549,this.match(t.EXPLAIN),this.state=4552,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1===e&&(this.state=4550,this.match(t.QUERY),this.state=4551,this.match(t.PLAN))),this.state=4556,this.sql_stmt_core_yq()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_stmt_core_yq(){let e=new sl(this.context,this.state);this.enterRule(e,862,t.RULE_sql_stmt_core_yq);try{switch(this.state=4571,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,502,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4558,this.pragma_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=4559,this.select_stmt();break;case 3:this.enterOuterAlt(e,3),this.state=4560,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(e,4),this.state=4561,this.use_stmt();break;case 5:this.enterOuterAlt(e,5),this.state=4562,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(e,6),this.state=4563,this.declare_stmt();break;case 7:this.enterOuterAlt(e,7),this.state=4564,this.import_stmt();break;case 8:this.enterOuterAlt(e,8),this.state=4565,this.export_stmt();break;case 9:this.enterOuterAlt(e,9),this.state=4566,this.do_stmt();break;case 10:this.enterOuterAlt(e,10),this.state=4567,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(e,11),this.state=4568,this.if_stmt();break;case 12:this.enterOuterAlt(e,12),this.state=4569,this.for_stmt();break;case 13:this.enterOuterAlt(e,13),this.state=4570,this.values_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replication_name(){let e=new rl(this.context,this.state);this.enterRule(e,864,t.RULE_replication_name);try{this.enterOuterAlt(e,1),this.state=4573,this.match(t.AS),this.state=4574,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}where_expr(){let e=new il(this.context,this.state);this.enterRule(e,866,t.RULE_where_expr);try{this.enterOuterAlt(e,1),this.state=4576,this.match(t.WHERE),this.state=4577,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}from_stmt(){let e=new al(this.context,this.state);this.enterRule(e,868,t.RULE_from_stmt);try{this.enterOuterAlt(e,1),this.state=4579,this.match(t.FROM),this.state=4580,this.join_source()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_for_autocomplete(){let e=new nl(this.context,this.state);this.enterRule(e,870,t.RULE_alter_table_for_autocomplete);try{switch(this.state=4584,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,503,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4582,this.alter_table_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=4583,this.alter_table_store_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}static{this._serializedATN=[4,1,332,4587,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,1,0,1,0,1,0,1,0,1,0,3,0,878,8,0,1,1,5,1,881,8,1,10,1,12,1,884,9,1,1,1,1,1,4,1,888,8,1,11,1,12,1,889,1,1,5,1,893,8,1,10,1,12,1,896,9,1,1,1,5,1,899,8,1,10,1,12,1,902,9,1,1,1,1,1,1,2,5,2,907,8,2,10,2,12,2,910,9,2,1,2,1,2,1,3,5,3,915,8,3,10,3,12,3,918,9,3,1,3,1,3,4,3,922,8,3,11,3,12,3,923,5,3,926,8,3,10,3,12,3,929,9,3,1,3,1,3,1,3,5,3,934,8,3,10,3,12,3,937,9,3,1,4,1,4,3,4,941,8,4,1,5,1,5,1,5,3,5,946,8,5,3,5,948,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1008,8,6,1,7,1,7,1,7,5,7,1013,8,7,10,7,12,7,1016,9,7,1,7,3,7,1019,8,7,1,8,1,8,1,8,5,8,1024,8,8,10,8,12,8,1027,9,8,1,9,1,9,1,9,5,9,1032,8,9,10,9,12,9,1035,9,9,1,10,1,10,3,10,1039,8,10,1,11,1,11,3,11,1043,8,11,1,11,1,11,1,11,1,12,3,12,1049,8,12,1,12,1,12,1,12,1,12,3,12,1055,8,12,1,12,3,12,1058,8,12,1,12,1,12,3,12,1062,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1070,8,12,1,12,1,12,3,12,1074,8,12,1,12,3,12,1077,8,12,1,12,1,12,3,12,1081,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1092,8,12,1,12,4,12,1095,8,12,11,12,12,12,1096,3,12,1099,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1106,8,14,10,14,12,14,1109,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1129,8,18,1,18,5,18,1132,8,18,10,18,12,18,1135,9,18,1,18,1,18,1,18,1,18,4,18,1141,8,18,11,18,12,18,1142,3,18,1145,8,18,1,19,1,19,1,19,5,19,1150,8,19,10,19,12,19,1153,9,19,1,20,1,20,1,20,5,20,1158,8,20,10,20,12,20,1161,9,20,1,21,1,21,1,21,5,21,1166,8,21,10,21,12,21,1169,9,21,1,22,1,22,1,22,1,22,3,22,1175,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1185,8,24,3,24,1187,8,24,5,24,1189,8,24,10,24,12,24,1192,9,24,1,24,1,24,3,24,1196,8,24,1,25,1,25,3,25,1200,8,25,1,25,1,25,1,26,1,26,3,26,1206,8,26,1,26,1,26,1,27,1,27,3,27,1212,8,27,1,28,1,28,3,28,1216,8,28,1,29,1,29,3,29,1220,8,29,1,29,3,29,1223,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1230,8,30,1,30,1,30,1,30,1,30,3,30,1236,8,30,5,30,1238,8,30,10,30,12,30,1241,9,30,1,31,1,31,3,31,1245,8,31,1,31,3,31,1248,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1260,8,32,10,32,12,32,1263,9,32,1,33,1,33,3,33,1267,8,33,1,33,3,33,1270,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1284,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1291,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1302,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1313,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1333,8,38,1,38,1,38,1,39,1,39,3,39,1339,8,39,1,39,4,39,1342,8,39,11,39,12,39,1343,1,39,1,39,3,39,1348,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1362,8,40,3,40,1364,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1371,8,42,1,43,1,43,1,44,1,44,3,44,1377,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1386,8,46,10,46,12,46,1389,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1396,8,47,1,48,1,48,1,48,1,48,3,48,1402,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1409,8,49,1,49,1,49,1,49,1,49,5,49,1415,8,49,10,49,12,49,1418,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1430,8,51,1,51,1,51,1,52,1,52,3,52,1436,8,52,1,52,1,52,3,52,1440,8,52,1,52,3,52,1443,8,52,3,52,1445,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1453,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1461,8,54,1,54,1,54,1,54,1,54,3,54,1467,8,54,1,54,1,54,1,54,1,54,3,54,1473,8,54,1,54,1,54,1,55,1,55,3,55,1479,8,55,1,55,3,55,1482,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1489,8,56,10,56,12,56,1492,9,56,1,57,1,57,1,57,1,57,5,57,1498,8,57,10,57,12,57,1501,9,57,1,57,1,57,1,58,1,58,3,58,1507,8,58,1,59,1,59,1,59,1,59,5,59,1513,8,59,10,59,12,59,1516,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1528,8,61,1,62,1,62,1,62,5,62,1533,8,62,10,62,12,62,1536,9,62,1,62,3,62,1539,8,62,1,63,1,63,1,63,5,63,1544,8,63,10,63,12,63,1547,9,63,1,63,3,63,1550,8,63,1,64,1,64,1,64,3,64,1555,8,64,1,65,1,65,1,65,5,65,1560,8,65,10,65,12,65,1563,9,65,1,66,1,66,1,66,1,66,3,66,1569,8,66,1,66,3,66,1572,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1579,8,67,1,67,1,67,3,67,1583,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1593,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1616,8,71,1,72,1,72,1,72,1,72,3,72,1622,8,72,1,73,1,73,3,73,1626,8,73,1,74,1,74,1,74,5,74,1631,8,74,10,74,12,74,1634,9,74,1,75,1,75,1,75,3,75,1639,8,75,1,76,1,76,1,76,5,76,1644,8,76,10,76,12,76,1647,9,76,1,77,3,77,1650,8,77,1,77,1,77,3,77,1654,8,77,1,78,1,78,1,79,1,79,3,79,1660,8,79,1,80,1,80,1,80,3,80,1665,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1674,8,82,1,82,3,82,1677,8,82,1,82,1,82,1,82,1,82,3,82,1683,8,82,1,83,1,83,1,83,3,83,1688,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1696,8,84,1,85,1,85,1,85,5,85,1701,8,85,10,85,12,85,1704,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1723,8,88,10,88,12,88,1726,9,88,1,88,3,88,1729,8,88,3,88,1731,8,88,1,88,1,88,3,88,1735,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1742,8,89,10,89,12,89,1745,9,89,1,89,3,89,1748,8,89,3,89,1750,8,89,1,89,1,89,3,89,1754,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1761,8,90,10,90,12,90,1764,9,90,1,90,3,90,1767,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1803,8,96,10,96,12,96,1806,9,96,1,96,3,96,1809,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1829,8,99,1,99,3,99,1832,8,99,1,99,1,99,1,99,1,99,3,99,1838,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1858,8,100,1,100,5,100,1861,8,100,10,100,12,100,1864,9,100,1,101,1,101,1,101,3,101,1869,8,101,1,101,5,101,1872,8,101,10,101,12,101,1875,9,101,3,101,1877,8,101,1,102,1,102,3,102,1881,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1908,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1916,8,105,1,106,3,106,1919,8,106,1,106,1,106,1,106,5,106,1924,8,106,10,106,12,106,1927,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1939,8,109,1,109,1,109,3,109,1943,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1955,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,1966,8,112,10,112,12,112,1969,9,112,1,112,1,112,3,112,1973,8,112,1,113,1,113,1,113,1,113,1,113,3,113,1980,8,113,1,114,1,114,3,114,1984,8,114,1,115,1,115,1,115,5,115,1989,8,115,10,115,12,115,1992,9,115,1,116,1,116,1,116,1,116,5,116,1998,8,116,10,116,12,116,2001,9,116,1,117,1,117,1,117,1,117,5,117,2007,8,117,10,117,12,117,2010,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2017,8,118,1,119,1,119,3,119,2021,8,119,1,119,1,119,3,119,2025,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2032,8,120,3,120,2034,8,120,1,121,3,121,2037,8,121,1,121,1,121,1,121,3,121,2042,8,121,1,121,1,121,1,121,3,121,2047,8,121,1,122,1,122,3,122,2051,8,122,1,122,1,122,1,122,5,122,2056,8,122,10,122,12,122,2059,9,122,1,122,1,122,1,122,1,122,3,122,2065,8,122,1,122,1,122,3,122,2069,8,122,1,122,3,122,2072,8,122,1,122,1,122,3,122,2076,8,122,1,122,1,122,3,122,2080,8,122,3,122,2082,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2091,8,124,10,124,12,124,2094,9,124,1,125,1,125,1,125,1,125,5,125,2100,8,125,10,125,12,125,2103,9,125,1,125,1,125,3,125,2107,8,125,1,125,1,125,1,125,1,125,3,125,2113,8,125,1,125,1,125,1,125,3,125,2118,8,125,1,125,3,125,2121,8,125,1,125,1,125,3,125,2125,8,125,1,125,1,125,3,125,2129,8,125,1,126,3,126,2132,8,126,1,127,3,127,2135,8,127,1,127,1,127,3,127,2139,8,127,1,127,1,127,1,127,1,127,5,127,2145,8,127,10,127,12,127,2148,9,127,1,127,3,127,2151,8,127,1,127,1,127,3,127,2155,8,127,1,127,3,127,2158,8,127,1,127,3,127,2161,8,127,1,127,3,127,2164,8,127,1,127,1,127,3,127,2168,8,127,1,127,3,127,2171,8,127,1,127,3,127,2174,8,127,1,128,1,128,1,128,3,128,2179,8,128,1,128,3,128,2182,8,128,1,128,3,128,2185,8,128,1,128,3,128,2188,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2202,8,129,3,129,2204,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2215,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2223,8,132,10,132,12,132,2226,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2235,8,134,1,134,3,134,2238,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2245,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2269,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2278,8,138,10,138,12,138,2281,9,138,1,139,4,139,2284,8,139,11,139,12,139,2285,1,140,1,140,3,140,2290,8,140,1,141,1,141,3,141,2294,8,141,1,141,1,141,3,141,2298,8,141,1,141,1,141,3,141,2302,8,141,1,141,1,141,3,141,2306,8,141,1,141,1,141,3,141,2310,8,141,1,141,1,141,3,141,2314,8,141,1,141,1,141,1,141,1,141,3,141,2320,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2327,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2337,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2346,8,144,10,144,12,144,2349,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2359,8,146,10,146,12,146,2362,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2375,8,149,10,149,12,149,2378,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2385,8,151,10,151,12,151,2388,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2407,8,158,1,158,1,158,1,159,1,159,3,159,2413,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2420,8,159,1,160,1,160,1,160,5,160,2425,8,160,10,160,12,160,2428,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2435,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2442,8,163,10,163,12,163,2445,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2481,8,168,3,168,2483,8,168,1,169,3,169,2486,8,169,1,169,1,169,1,169,3,169,2491,8,169,1,169,1,169,3,169,2495,8,169,5,169,2497,8,169,10,169,12,169,2500,9,169,1,170,1,170,1,170,3,170,2505,8,170,1,171,1,171,1,171,1,171,3,171,2511,8,171,1,171,1,171,3,171,2515,8,171,1,172,1,172,1,172,3,172,2520,8,172,1,172,1,172,1,172,3,172,2525,8,172,3,172,2527,8,172,1,173,1,173,3,173,2531,8,173,1,173,1,173,1,173,3,173,2536,8,173,1,173,3,173,2539,8,173,3,173,2541,8,173,1,173,1,173,3,173,2545,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2556,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2567,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2578,8,179,1,179,1,179,3,179,2582,8,179,1,179,1,179,3,179,2586,8,179,1,179,1,179,3,179,2590,8,179,1,179,3,179,2593,8,179,1,179,1,179,3,179,2597,8,179,1,179,3,179,2600,8,179,1,180,1,180,1,180,1,180,3,180,2606,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2613,8,181,10,181,12,181,2616,9,181,3,181,2618,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2632,8,182,1,182,1,182,1,182,1,182,3,182,2638,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2651,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2658,8,184,1,184,1,184,1,184,3,184,2663,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2670,8,186,1,187,1,187,1,187,5,187,2675,8,187,10,187,12,187,2678,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2686,8,189,1,190,1,190,1,190,3,190,2691,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2699,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2712,8,191,10,191,12,191,2715,9,191,1,192,1,192,1,192,3,192,2720,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2728,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2737,8,194,1,194,1,194,3,194,2741,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2750,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2762,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2769,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2777,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2798,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2806,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2815,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2825,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2832,8,207,10,207,12,207,2835,9,207,1,207,1,207,3,207,2839,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2846,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2856,8,209,1,209,1,209,1,209,3,209,2861,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2868,8,209,10,209,12,209,2871,9,209,1,209,3,209,2874,8,209,1,209,1,209,3,209,2878,8,209,1,209,3,209,2881,8,209,1,209,3,209,2884,8,209,1,209,3,209,2887,8,209,1,209,3,209,2890,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2898,8,210,1,211,1,211,1,211,3,211,2903,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2914,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2921,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2932,8,216,10,216,12,216,2935,9,216,1,217,1,217,1,217,5,217,2940,8,217,10,217,12,217,2943,9,217,1,218,1,218,3,218,2947,8,218,1,219,1,219,1,219,5,219,2952,8,219,10,219,12,219,2955,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,2967,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,2976,8,222,10,222,12,222,2979,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,2988,8,224,1,225,1,225,1,225,1,225,3,225,2994,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3001,8,226,10,226,12,226,3004,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3018,8,228,10,228,12,228,3021,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3041,8,232,10,232,12,232,3044,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3063,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3072,8,234,10,234,12,234,3075,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3082,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3090,8,236,10,236,12,236,3093,9,236,1,237,1,237,3,237,3097,8,237,1,238,1,238,3,238,3101,8,238,1,238,1,238,1,239,1,239,3,239,3107,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3143,8,245,10,245,12,245,3146,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3155,8,246,10,246,12,246,3158,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3199,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3207,8,257,1,257,3,257,3210,8,257,1,257,1,257,3,257,3214,8,257,1,258,1,258,3,258,3218,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3226,8,259,10,259,12,259,3229,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3239,8,259,10,259,12,259,3242,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3252,8,259,10,259,12,259,3255,9,259,1,259,1,259,3,259,3259,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3269,8,260,10,260,12,260,3272,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3280,8,260,10,260,12,260,3283,9,260,1,260,1,260,3,260,3287,8,260,1,260,3,260,3290,8,260,1,261,1,261,3,261,3294,8,261,1,261,1,261,3,261,3298,8,261,1,262,1,262,3,262,3302,8,262,1,262,3,262,3305,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3316,8,265,10,265,12,265,3319,9,265,1,265,3,265,3322,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3334,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3346,8,269,10,269,12,269,3349,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3363,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3378,8,274,1,274,3,274,3381,8,274,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,5,276,3391,8,276,10,276,12,276,3394,9,276,3,276,3396,8,276,1,276,1,276,1,277,1,277,1,277,1,277,1,278,1,278,3,278,3406,8,278,1,279,1,279,1,279,1,279,5,279,3412,8,279,10,279,12,279,3415,9,279,1,279,1,279,1,279,3,279,3420,8,279,1,280,1,280,1,280,1,280,5,280,3426,8,280,10,280,12,280,3429,9,280,1,280,1,280,1,281,1,281,1,281,3,281,3436,8,281,1,282,1,282,1,282,1,282,1,282,3,282,3443,8,282,1,282,1,282,3,282,3447,8,282,1,282,1,282,1,283,1,283,1,283,1,283,3,283,3455,8,283,1,284,1,284,1,284,1,284,3,284,3461,8,284,1,284,1,284,1,284,1,284,3,284,3467,8,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,5,285,3477,8,285,10,285,12,285,3480,9,285,1,285,3,285,3483,8,285,3,285,3485,8,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,5,286,3495,8,286,10,286,12,286,3498,9,286,1,286,3,286,3501,8,286,1,286,1,286,1,286,3,286,3506,8,286,1,287,1,287,1,287,1,287,3,287,3512,8,287,1,287,1,287,1,287,5,287,3517,8,287,10,287,12,287,3520,9,287,1,287,3,287,3523,8,287,1,288,1,288,3,288,3527,8,288,1,289,3,289,3530,8,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,5,290,3541,8,290,10,290,12,290,3544,9,290,1,290,1,290,1,290,1,290,5,290,3550,8,290,10,290,12,290,3553,9,290,1,290,3,290,3556,8,290,1,290,1,290,1,290,3,290,3561,8,290,1,291,1,291,1,291,1,291,3,291,3567,8,291,1,291,1,291,1,291,1,291,1,291,5,291,3574,8,291,10,291,12,291,3577,9,291,1,291,1,291,1,291,1,291,5,291,3583,8,291,10,291,12,291,3586,9,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,3,292,3602,8,292,1,292,1,292,3,292,3606,8,292,1,292,1,292,3,292,3610,8,292,3,292,3612,8,292,1,293,1,293,3,293,3616,8,293,1,294,1,294,1,294,5,294,3621,8,294,10,294,12,294,3624,9,294,1,294,3,294,3627,8,294,1,294,1,294,3,294,3631,8,294,3,294,3633,8,294,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3648,8,296,10,296,12,296,3651,9,296,1,297,1,297,3,297,3655,8,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,5,300,3677,8,300,10,300,12,300,3680,9,300,1,301,1,301,3,301,3684,8,301,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,5,303,3700,8,303,10,303,12,303,3703,9,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,305,1,305,1,305,5,305,3716,8,305,10,305,12,305,3719,9,305,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,5,307,3732,8,307,10,307,12,307,3735,9,307,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,3,310,3749,8,310,1,311,1,311,1,311,5,311,3754,8,311,10,311,12,311,3757,9,311,1,312,1,312,1,312,1,312,1,312,3,312,3764,8,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,5,313,3773,8,313,10,313,12,313,3776,9,313,1,313,1,313,4,313,3780,8,313,11,313,12,313,3781,1,313,5,313,3785,8,313,10,313,12,313,3788,9,313,1,313,5,313,3791,8,313,10,313,12,313,3794,9,313,3,313,3796,8,313,1,314,3,314,3799,8,314,1,314,1,314,1,314,1,314,1,314,3,314,3806,8,314,1,315,3,315,3809,8,315,1,315,3,315,3812,8,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,3,315,3821,8,315,1,316,1,316,1,316,3,316,3826,8,316,1,316,3,316,3829,8,316,1,316,1,316,1,316,1,316,1,316,1,316,5,316,3837,8,316,10,316,12,316,3840,9,316,1,316,3,316,3843,8,316,3,316,3845,8,316,1,316,1,316,1,316,1,316,1,316,3,316,3852,8,316,1,316,3,316,3855,8,316,1,316,1,316,3,316,3859,8,316,3,316,3861,8,316,1,316,3,316,3864,8,316,1,317,1,317,1,317,3,317,3869,8,317,1,318,3,318,3872,8,318,1,318,1,318,1,318,3,318,3877,8,318,1,319,1,319,1,319,1,319,1,319,1,319,5,319,3885,8,319,10,319,12,319,3888,9,319,1,319,1,319,3,319,3892,8,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,5,320,3901,8,320,10,320,12,320,3904,9,320,1,320,3,320,3907,8,320,1,320,1,320,3,320,3911,8,320,3,320,3913,8,320,1,320,1,320,3,320,3917,8,320,1,320,1,320,1,320,3,320,3922,8,320,1,320,1,320,1,320,1,320,5,320,3928,8,320,10,320,12,320,3931,9,320,3,320,3933,8,320,1,320,3,320,3936,8,320,1,320,3,320,3939,8,320,1,321,1,321,1,321,3,321,3944,8,321,1,321,1,321,1,322,1,322,3,322,3950,8,322,1,322,3,322,3953,8,322,1,323,1,323,3,323,3957,8,323,1,324,1,324,1,324,1,324,3,324,3963,8,324,1,325,1,325,1,325,1,325,1,325,1,325,3,325,3971,8,325,1,325,3,325,3974,8,325,1,326,1,326,1,326,1,326,1,326,3,326,3981,8,326,1,326,1,326,3,326,3985,8,326,1,326,3,326,3988,8,326,1,327,1,327,3,327,3992,8,327,1,328,1,328,1,328,5,328,3997,8,328,10,328,12,328,4e3,9,328,1,329,1,329,1,329,1,329,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,5,332,4018,8,332,10,332,12,332,4021,9,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,3,333,4030,8,333,1,333,1,333,3,333,4034,8,333,1,333,3,333,4037,8,333,1,334,1,334,1,334,1,334,5,334,4043,8,334,10,334,12,334,4046,9,334,1,334,1,334,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,3,337,4061,8,337,1,337,1,337,1,337,1,337,5,337,4067,8,337,10,337,12,337,4070,9,337,1,338,1,338,1,338,1,338,1,338,3,338,4077,8,338,1,339,1,339,1,339,1,340,1,340,1,340,3,340,4085,8,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,3,342,4094,8,342,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,5,345,4110,8,345,10,345,12,345,4113,9,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,5,347,4127,8,347,10,347,12,347,4130,9,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,4138,8,348,1,348,1,348,1,349,1,349,1,349,5,349,4145,8,349,10,349,12,349,4148,9,349,1,350,1,350,1,350,1,350,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,5,353,4164,8,353,10,353,12,353,4167,9,353,1,354,1,354,1,354,1,354,1,355,1,355,1,356,1,356,1,356,3,356,4178,8,356,1,356,1,356,1,357,1,357,1,358,1,358,1,358,1,358,3,358,4188,8,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,3,360,4197,8,360,1,361,1,361,1,362,1,362,1,362,1,363,1,363,1,363,5,363,4207,8,363,10,363,12,363,4210,9,363,1,364,1,364,1,364,1,364,1,365,1,365,1,366,1,366,1,366,1,366,1,367,3,367,4223,8,367,1,367,3,367,4226,8,367,1,367,3,367,4229,8,367,1,367,3,367,4232,8,367,1,368,1,368,1,369,1,369,3,369,4238,8,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4248,8,371,1,372,1,372,1,373,1,373,3,373,4254,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,1,375,1,375,3,375,4265,8,375,1,375,3,375,4268,8,375,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,3,376,4280,8,376,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,3,378,4290,8,378,1,379,1,379,1,379,1,379,3,379,4296,8,379,1,380,1,380,1,381,1,381,1,382,1,382,1,382,1,382,1,382,3,382,4307,8,382,1,383,1,383,1,383,5,383,4312,8,383,10,383,12,383,4315,9,383,1,383,3,383,4318,8,383,1,384,1,384,1,384,1,385,1,385,1,386,1,386,3,386,4327,8,386,1,387,1,387,1,387,1,387,1,387,1,387,1,387,3,387,4336,8,387,1,388,1,388,1,388,1,388,1,388,1,388,3,388,4344,8,388,1,389,1,389,1,389,1,389,1,389,3,389,4351,8,389,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,3,390,4361,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4370,8,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,3,392,4379,8,392,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,3,393,4389,8,393,1,394,1,394,3,394,4393,8,394,1,395,1,395,3,395,4397,8,395,1,396,1,396,3,396,4401,8,396,1,397,1,397,3,397,4405,8,397,1,398,1,398,3,398,4409,8,398,1,399,1,399,3,399,4413,8,399,1,400,1,400,3,400,4417,8,400,1,401,1,401,3,401,4421,8,401,1,402,1,402,3,402,4425,8,402,1,403,1,403,3,403,4429,8,403,1,404,1,404,3,404,4433,8,404,1,405,1,405,3,405,4437,8,405,1,406,1,406,1,406,3,406,4442,8,406,1,407,1,407,1,407,3,407,4447,8,407,1,408,1,408,1,408,3,408,4452,8,408,1,408,1,408,3,408,4456,8,408,1,409,1,409,3,409,4460,8,409,1,410,1,410,1,410,3,410,4465,8,410,1,411,3,411,4468,8,411,1,411,1,411,1,412,1,412,3,412,4474,8,412,1,413,3,413,4477,8,413,1,413,1,413,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,3,414,4489,8,414,1,415,1,415,1,416,1,416,1,417,1,417,1,418,1,418,1,419,1,419,1,420,1,420,1,421,1,421,1,422,1,422,1,423,1,423,1,424,1,424,1,425,1,425,1,426,1,426,1,427,1,427,1,428,1,428,1,428,1,428,1,428,3,428,4522,8,428,1,429,5,429,4525,8,429,10,429,12,429,4528,9,429,1,429,1,429,4,429,4532,8,429,11,429,12,429,4533,1,429,5,429,4537,8,429,10,429,12,429,4540,9,429,1,429,5,429,4543,8,429,10,429,12,429,4546,9,429,1,429,1,429,1,430,1,430,1,430,3,430,4553,8,430,3,430,4555,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4572,8,431,1,432,1,432,1,432,1,433,1,433,1,433,1,434,1,434,1,434,1,435,1,435,3,435,4585,8,435,1,435,0,0,436,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,0,39,2,0,54,54,277,277,6,0,145,145,156,156,181,181,186,186,236,236,255,255,1,0,6,9,1,0,17,18,1,0,20,22,2,0,17,19,197,197,2,0,115,115,121,121,4,0,121,121,133,133,293,293,300,300,2,0,81,81,297,297,2,0,52,52,103,103,2,0,25,25,203,203,2,0,44,44,110,110,2,0,164,164,264,264,3,0,106,106,183,183,209,209,2,0,65,65,279,279,2,0,207,207,266,266,2,0,55,55,278,278,3,0,190,191,193,193,263,263,2,0,42,42,112,112,2,0,148,148,305,305,2,0,58,58,281,281,2,0,120,120,302,302,3,0,45,45,104,104,239,239,3,0,58,58,258,258,281,281,2,0,143,143,304,304,3,0,107,107,231,231,280,280,2,0,41,41,274,274,2,0,78,78,262,262,3,0,150,150,233,233,259,259,2,0,139,139,226,226,1,0,320,321,21,0,54,54,66,67,71,72,89,89,91,93,116,116,128,128,142,143,153,153,174,176,184,184,197,197,199,199,230,230,234,234,250,251,257,257,265,265,277,277,296,296,312,313,3,0,49,49,120,120,272,272,11,0,44,44,51,51,53,53,110,110,124,124,152,152,169,169,182,182,298,298,314,314,316,316,58,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,75,79,79,81,87,90,90,94,100,102,105,107,109,112,115,117,118,121,123,125,125,127,127,129,132,134,137,139,141,144,145,147,149,151,151,154,165,167,168,170,171,178,178,180,181,185,193,195,196,200,204,206,208,210,210,212,212,215,226,228,229,231,232,235,240,242,244,246,248,252,253,255,256,258,258,261,261,263,264,268,271,274,276,278,283,285,292,295,295,297,297,299,305,307,308,311,311,317,318,50,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,76,79,79,81,88,90,90,94,105,107,109,111,115,117,118,121,123,125,127,129,132,134,137,139,141,144,145,147,149,151,151,154,168,170,173,177,181,185,196,198,198,200,208,210,229,231,232,235,240,242,244,246,249,252,256,258,258,260,261,263,264,266,266,268,271,274,276,278,283,285,292,295,295,297,297,299,308,310,311,315,315,317,318,12,0,69,69,106,106,119,119,138,138,183,183,209,209,245,245,267,267,273,273,284,284,294,294,309,309,2,0,133,133,293,293,1,0,322,323,4916,0,877,1,0,0,0,2,882,1,0,0,0,4,908,1,0,0,0,6,916,1,0,0,0,8,940,1,0,0,0,10,947,1,0,0,0,12,1007,1,0,0,0,14,1018,1,0,0,0,16,1020,1,0,0,0,18,1028,1,0,0,0,20,1036,1,0,0,0,22,1040,1,0,0,0,24,1098,1,0,0,0,26,1100,1,0,0,0,28,1102,1,0,0,0,30,1110,1,0,0,0,32,1113,1,0,0,0,34,1117,1,0,0,0,36,1120,1,0,0,0,38,1146,1,0,0,0,40,1154,1,0,0,0,42,1162,1,0,0,0,44,1174,1,0,0,0,46,1176,1,0,0,0,48,1190,1,0,0,0,50,1199,1,0,0,0,52,1205,1,0,0,0,54,1211,1,0,0,0,56,1215,1,0,0,0,58,1217,1,0,0,0,60,1226,1,0,0,0,62,1242,1,0,0,0,64,1251,1,0,0,0,66,1264,1,0,0,0,68,1290,1,0,0,0,70,1312,1,0,0,0,72,1314,1,0,0,0,74,1321,1,0,0,0,76,1328,1,0,0,0,78,1336,1,0,0,0,80,1351,1,0,0,0,82,1365,1,0,0,0,84,1370,1,0,0,0,86,1372,1,0,0,0,88,1376,1,0,0,0,90,1378,1,0,0,0,92,1382,1,0,0,0,94,1390,1,0,0,0,96,1401,1,0,0,0,98,1403,1,0,0,0,100,1421,1,0,0,0,102,1425,1,0,0,0,104,1444,1,0,0,0,106,1452,1,0,0,0,108,1454,1,0,0,0,110,1476,1,0,0,0,112,1485,1,0,0,0,114,1493,1,0,0,0,116,1506,1,0,0,0,118,1508,1,0,0,0,120,1519,1,0,0,0,122,1527,1,0,0,0,124,1529,1,0,0,0,126,1540,1,0,0,0,128,1551,1,0,0,0,130,1556,1,0,0,0,132,1564,1,0,0,0,134,1578,1,0,0,0,136,1592,1,0,0,0,138,1596,1,0,0,0,140,1600,1,0,0,0,142,1615,1,0,0,0,144,1617,1,0,0,0,146,1623,1,0,0,0,148,1627,1,0,0,0,150,1635,1,0,0,0,152,1640,1,0,0,0,154,1649,1,0,0,0,156,1655,1,0,0,0,158,1659,1,0,0,0,160,1664,1,0,0,0,162,1666,1,0,0,0,164,1682,1,0,0,0,166,1687,1,0,0,0,168,1691,1,0,0,0,170,1697,1,0,0,0,172,1705,1,0,0,0,174,1712,1,0,0,0,176,1717,1,0,0,0,178,1736,1,0,0,0,180,1755,1,0,0,0,182,1770,1,0,0,0,184,1775,1,0,0,0,186,1780,1,0,0,0,188,1785,1,0,0,0,190,1792,1,0,0,0,192,1797,1,0,0,0,194,1812,1,0,0,0,196,1817,1,0,0,0,198,1824,1,0,0,0,200,1857,1,0,0,0,202,1876,1,0,0,0,204,1880,1,0,0,0,206,1882,1,0,0,0,208,1907,1,0,0,0,210,1909,1,0,0,0,212,1918,1,0,0,0,214,1928,1,0,0,0,216,1933,1,0,0,0,218,1938,1,0,0,0,220,1946,1,0,0,0,222,1951,1,0,0,0,224,1956,1,0,0,0,226,1979,1,0,0,0,228,1981,1,0,0,0,230,1985,1,0,0,0,232,1993,1,0,0,0,234,2002,1,0,0,0,236,2016,1,0,0,0,238,2024,1,0,0,0,240,2026,1,0,0,0,242,2036,1,0,0,0,244,2048,1,0,0,0,246,2083,1,0,0,0,248,2087,1,0,0,0,250,2095,1,0,0,0,252,2131,1,0,0,0,254,2134,1,0,0,0,256,2175,1,0,0,0,258,2203,1,0,0,0,260,2214,1,0,0,0,262,2216,1,0,0,0,264,2219,1,0,0,0,266,2227,1,0,0,0,268,2234,1,0,0,0,270,2268,1,0,0,0,272,2270,1,0,0,0,274,2272,1,0,0,0,276,2274,1,0,0,0,278,2283,1,0,0,0,280,2287,1,0,0,0,282,2319,1,0,0,0,284,2336,1,0,0,0,286,2338,1,0,0,0,288,2340,1,0,0,0,290,2352,1,0,0,0,292,2355,1,0,0,0,294,2363,1,0,0,0,296,2369,1,0,0,0,298,2371,1,0,0,0,300,2379,1,0,0,0,302,2381,1,0,0,0,304,2389,1,0,0,0,306,2393,1,0,0,0,308,2395,1,0,0,0,310,2397,1,0,0,0,312,2399,1,0,0,0,314,2401,1,0,0,0,316,2406,1,0,0,0,318,2410,1,0,0,0,320,2421,1,0,0,0,322,2434,1,0,0,0,324,2436,1,0,0,0,326,2438,1,0,0,0,328,2446,1,0,0,0,330,2451,1,0,0,0,332,2456,1,0,0,0,334,2462,1,0,0,0,336,2482,1,0,0,0,338,2485,1,0,0,0,340,2501,1,0,0,0,342,2514,1,0,0,0,344,2516,1,0,0,0,346,2528,1,0,0,0,348,2555,1,0,0,0,350,2557,1,0,0,0,352,2560,1,0,0,0,354,2568,1,0,0,0,356,2570,1,0,0,0,358,2599,1,0,0,0,360,2605,1,0,0,0,362,2607,1,0,0,0,364,2631,1,0,0,0,366,2650,1,0,0,0,368,2662,1,0,0,0,370,2664,1,0,0,0,372,2669,1,0,0,0,374,2671,1,0,0,0,376,2679,1,0,0,0,378,2685,1,0,0,0,380,2687,1,0,0,0,382,2703,1,0,0,0,384,2719,1,0,0,0,386,2721,1,0,0,0,388,2731,1,0,0,0,390,2745,1,0,0,0,392,2753,1,0,0,0,394,2763,1,0,0,0,396,2778,1,0,0,0,398,2781,1,0,0,0,400,2790,1,0,0,0,402,2793,1,0,0,0,404,2807,1,0,0,0,406,2814,1,0,0,0,408,2816,1,0,0,0,410,2820,1,0,0,0,412,2824,1,0,0,0,414,2838,1,0,0,0,416,2840,1,0,0,0,418,2842,1,0,0,0,420,2897,1,0,0,0,422,2899,1,0,0,0,424,2909,1,0,0,0,426,2915,1,0,0,0,428,2920,1,0,0,0,430,2922,1,0,0,0,432,2926,1,0,0,0,434,2936,1,0,0,0,436,2946,1,0,0,0,438,2948,1,0,0,0,440,2966,1,0,0,0,442,2968,1,0,0,0,444,2972,1,0,0,0,446,2980,1,0,0,0,448,2984,1,0,0,0,450,2989,1,0,0,0,452,2995,1,0,0,0,454,3007,1,0,0,0,456,3012,1,0,0,0,458,3024,1,0,0,0,460,3027,1,0,0,0,462,3031,1,0,0,0,464,3034,1,0,0,0,466,3062,1,0,0,0,468,3064,1,0,0,0,470,3081,1,0,0,0,472,3083,1,0,0,0,474,3096,1,0,0,0,476,3098,1,0,0,0,478,3104,1,0,0,0,480,3110,1,0,0,0,482,3116,1,0,0,0,484,3123,1,0,0,0,486,3126,1,0,0,0,488,3133,1,0,0,0,490,3137,1,0,0,0,492,3149,1,0,0,0,494,3161,1,0,0,0,496,3164,1,0,0,0,498,3168,1,0,0,0,500,3172,1,0,0,0,502,3178,1,0,0,0,504,3181,1,0,0,0,506,3186,1,0,0,0,508,3190,1,0,0,0,510,3195,1,0,0,0,512,3202,1,0,0,0,514,3209,1,0,0,0,516,3215,1,0,0,0,518,3258,1,0,0,0,520,3260,1,0,0,0,522,3293,1,0,0,0,524,3299,1,0,0,0,526,3306,1,0,0,0,528,3308,1,0,0,0,530,3310,1,0,0,0,532,3325,1,0,0,0,534,3333,1,0,0,0,536,3335,1,0,0,0,538,3342,1,0,0,0,540,3350,1,0,0,0,542,3354,1,0,0,0,544,3362,1,0,0,0,546,3364,1,0,0,0,548,3380,1,0,0,0,550,3382,1,0,0,0,552,3386,1,0,0,0,554,3399,1,0,0,0,556,3405,1,0,0,0,558,3419,1,0,0,0,560,3421,1,0,0,0,562,3435,1,0,0,0,564,3437,1,0,0,0,566,3450,1,0,0,0,568,3456,1,0,0,0,570,3468,1,0,0,0,572,3486,1,0,0,0,574,3507,1,0,0,0,576,3526,1,0,0,0,578,3529,1,0,0,0,580,3534,1,0,0,0,582,3562,1,0,0,0,584,3611,1,0,0,0,586,3615,1,0,0,0,588,3632,1,0,0,0,590,3634,1,0,0,0,592,3640,1,0,0,0,594,3654,1,0,0,0,596,3656,1,0,0,0,598,3661,1,0,0,0,600,3668,1,0,0,0,602,3683,1,0,0,0,604,3685,1,0,0,0,606,3691,1,0,0,0,608,3709,1,0,0,0,610,3712,1,0,0,0,612,3720,1,0,0,0,614,3724,1,0,0,0,616,3736,1,0,0,0,618,3738,1,0,0,0,620,3743,1,0,0,0,622,3750,1,0,0,0,624,3758,1,0,0,0,626,3774,1,0,0,0,628,3798,1,0,0,0,630,3808,1,0,0,0,632,3825,1,0,0,0,634,3865,1,0,0,0,636,3871,1,0,0,0,638,3878,1,0,0,0,640,3938,1,0,0,0,642,3943,1,0,0,0,644,3952,1,0,0,0,646,3954,1,0,0,0,648,3958,1,0,0,0,650,3964,1,0,0,0,652,3975,1,0,0,0,654,3991,1,0,0,0,656,3993,1,0,0,0,658,4001,1,0,0,0,660,4005,1,0,0,0,662,4007,1,0,0,0,664,4013,1,0,0,0,666,4024,1,0,0,0,668,4038,1,0,0,0,670,4049,1,0,0,0,672,4051,1,0,0,0,674,4056,1,0,0,0,676,4076,1,0,0,0,678,4078,1,0,0,0,680,4081,1,0,0,0,682,4086,1,0,0,0,684,4093,1,0,0,0,686,4095,1,0,0,0,688,4099,1,0,0,0,690,4104,1,0,0,0,692,4116,1,0,0,0,694,4121,1,0,0,0,696,4133,1,0,0,0,698,4141,1,0,0,0,700,4149,1,0,0,0,702,4153,1,0,0,0,704,4155,1,0,0,0,706,4160,1,0,0,0,708,4168,1,0,0,0,710,4172,1,0,0,0,712,4177,1,0,0,0,714,4181,1,0,0,0,716,4187,1,0,0,0,718,4189,1,0,0,0,720,4196,1,0,0,0,722,4198,1,0,0,0,724,4200,1,0,0,0,726,4203,1,0,0,0,728,4211,1,0,0,0,730,4215,1,0,0,0,732,4217,1,0,0,0,734,4222,1,0,0,0,736,4233,1,0,0,0,738,4235,1,0,0,0,740,4242,1,0,0,0,742,4244,1,0,0,0,744,4249,1,0,0,0,746,4253,1,0,0,0,748,4255,1,0,0,0,750,4267,1,0,0,0,752,4279,1,0,0,0,754,4281,1,0,0,0,756,4289,1,0,0,0,758,4291,1,0,0,0,760,4297,1,0,0,0,762,4299,1,0,0,0,764,4301,1,0,0,0,766,4308,1,0,0,0,768,4319,1,0,0,0,770,4322,1,0,0,0,772,4326,1,0,0,0,774,4335,1,0,0,0,776,4343,1,0,0,0,778,4350,1,0,0,0,780,4360,1,0,0,0,782,4369,1,0,0,0,784,4378,1,0,0,0,786,4388,1,0,0,0,788,4392,1,0,0,0,790,4396,1,0,0,0,792,4400,1,0,0,0,794,4404,1,0,0,0,796,4408,1,0,0,0,798,4412,1,0,0,0,800,4416,1,0,0,0,802,4420,1,0,0,0,804,4424,1,0,0,0,806,4428,1,0,0,0,808,4432,1,0,0,0,810,4436,1,0,0,0,812,4441,1,0,0,0,814,4446,1,0,0,0,816,4451,1,0,0,0,818,4459,1,0,0,0,820,4464,1,0,0,0,822,4467,1,0,0,0,824,4473,1,0,0,0,826,4476,1,0,0,0,828,4488,1,0,0,0,830,4490,1,0,0,0,832,4492,1,0,0,0,834,4494,1,0,0,0,836,4496,1,0,0,0,838,4498,1,0,0,0,840,4500,1,0,0,0,842,4502,1,0,0,0,844,4504,1,0,0,0,846,4506,1,0,0,0,848,4508,1,0,0,0,850,4510,1,0,0,0,852,4512,1,0,0,0,854,4514,1,0,0,0,856,4521,1,0,0,0,858,4526,1,0,0,0,860,4554,1,0,0,0,862,4571,1,0,0,0,864,4573,1,0,0,0,866,4576,1,0,0,0,868,4579,1,0,0,0,870,4584,1,0,0,0,872,878,3,2,1,0,873,874,5,225,0,0,874,875,5,48,0,0,875,876,5,322,0,0,876,878,3,4,2,0,877,872,1,0,0,0,877,873,1,0,0,0,878,1,1,0,0,0,879,881,5,23,0,0,880,879,1,0,0,0,881,884,1,0,0,0,882,880,1,0,0,0,882,883,1,0,0,0,883,885,1,0,0,0,884,882,1,0,0,0,885,894,3,10,5,0,886,888,5,23,0,0,887,886,1,0,0,0,888,889,1,0,0,0,889,887,1,0,0,0,889,890,1,0,0,0,890,891,1,0,0,0,891,893,3,10,5,0,892,887,1,0,0,0,893,896,1,0,0,0,894,892,1,0,0,0,894,895,1,0,0,0,895,900,1,0,0,0,896,894,1,0,0,0,897,899,5,23,0,0,898,897,1,0,0,0,899,902,1,0,0,0,900,898,1,0,0,0,900,901,1,0,0,0,901,903,1,0,0,0,902,900,1,0,0,0,903,904,5,0,0,1,904,3,1,0,0,0,905,907,5,23,0,0,906,905,1,0,0,0,907,910,1,0,0,0,908,906,1,0,0,0,908,909,1,0,0,0,909,911,1,0,0,0,910,908,1,0,0,0,911,912,5,0,0,1,912,5,1,0,0,0,913,915,5,23,0,0,914,913,1,0,0,0,915,918,1,0,0,0,916,914,1,0,0,0,916,917,1,0,0,0,917,927,1,0,0,0,918,916,1,0,0,0,919,921,3,8,4,0,920,922,5,23,0,0,921,920,1,0,0,0,922,923,1,0,0,0,923,921,1,0,0,0,923,924,1,0,0,0,924,926,1,0,0,0,925,919,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,930,1,0,0,0,929,927,1,0,0,0,930,931,5,250,0,0,931,935,3,14,7,0,932,934,5,23,0,0,933,932,1,0,0,0,934,937,1,0,0,0,935,933,1,0,0,0,935,936,1,0,0,0,936,7,1,0,0,0,937,935,1,0,0,0,938,941,3,758,379,0,939,941,3,214,107,0,940,938,1,0,0,0,940,939,1,0,0,0,941,9,1,0,0,0,942,945,5,129,0,0,943,944,5,1,0,0,944,946,5,223,0,0,945,943,1,0,0,0,945,946,1,0,0,0,946,948,1,0,0,0,947,942,1,0,0,0,947,948,1,0,0,0,948,949,1,0,0,0,949,950,3,12,6,0,950,11,1,0,0,0,951,1008,3,224,112,0,952,1008,3,232,116,0,953,1008,3,758,379,0,954,1008,3,418,209,0,955,1008,3,564,282,0,956,1008,3,754,377,0,957,1008,3,364,182,0,958,1008,3,760,380,0,959,1008,3,652,326,0,960,1008,3,650,325,0,961,1008,3,762,381,0,962,1008,3,210,105,0,963,1008,3,214,107,0,964,1008,3,216,108,0,965,1008,3,464,232,0,966,1008,3,468,234,0,967,1008,3,222,111,0,968,1008,3,624,312,0,969,1008,3,628,314,0,970,1008,3,630,315,0,971,1008,3,370,185,0,972,1008,3,566,283,0,973,1008,3,568,284,0,974,1008,3,570,285,0,975,1008,3,572,286,0,976,1008,3,574,287,0,977,1008,3,394,197,0,978,1008,3,398,199,0,979,1008,3,402,201,0,980,1008,3,380,190,0,981,1008,3,382,191,0,982,1008,3,386,193,0,983,1008,3,606,303,0,984,1008,3,620,310,0,985,1008,3,666,333,0,986,1008,3,674,337,0,987,1008,3,696,348,0,988,1008,3,580,290,0,989,1008,3,582,291,0,990,1008,3,472,236,0,991,1008,3,392,196,0,992,1008,3,388,194,0,993,1008,3,390,195,0,994,1008,3,614,307,0,995,1008,3,590,295,0,996,1008,3,592,296,0,997,1008,3,596,298,0,998,1008,3,422,211,0,999,1008,3,424,212,0,1e3,1008,3,426,213,0,1001,1008,3,768,384,0,1002,1008,3,598,299,0,1003,1008,3,600,300,0,1004,1008,3,604,302,0,1005,1008,3,448,224,0,1006,1008,3,450,225,0,1007,951,1,0,0,0,1007,952,1,0,0,0,1007,953,1,0,0,0,1007,954,1,0,0,0,1007,955,1,0,0,0,1007,956,1,0,0,0,1007,957,1,0,0,0,1007,958,1,0,0,0,1007,959,1,0,0,0,1007,960,1,0,0,0,1007,961,1,0,0,0,1007,962,1,0,0,0,1007,963,1,0,0,0,1007,964,1,0,0,0,1007,965,1,0,0,0,1007,966,1,0,0,0,1007,967,1,0,0,0,1007,968,1,0,0,0,1007,969,1,0,0,0,1007,970,1,0,0,0,1007,971,1,0,0,0,1007,972,1,0,0,0,1007,973,1,0,0,0,1007,974,1,0,0,0,1007,975,1,0,0,0,1007,976,1,0,0,0,1007,977,1,0,0,0,1007,978,1,0,0,0,1007,979,1,0,0,0,1007,980,1,0,0,0,1007,981,1,0,0,0,1007,982,1,0,0,0,1007,983,1,0,0,0,1007,984,1,0,0,0,1007,985,1,0,0,0,1007,986,1,0,0,0,1007,987,1,0,0,0,1007,988,1,0,0,0,1007,989,1,0,0,0,1007,990,1,0,0,0,1007,991,1,0,0,0,1007,992,1,0,0,0,1007,993,1,0,0,0,1007,994,1,0,0,0,1007,995,1,0,0,0,1007,996,1,0,0,0,1007,997,1,0,0,0,1007,998,1,0,0,0,1007,999,1,0,0,0,1007,1e3,1,0,0,0,1007,1001,1,0,0,0,1007,1002,1,0,0,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,13,1,0,0,0,1009,1014,3,16,8,0,1010,1011,5,210,0,0,1011,1013,3,16,8,0,1012,1010,1,0,0,0,1013,1016,1,0,0,0,1014,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1019,1,0,0,0,1016,1014,1,0,0,0,1017,1019,3,200,100,0,1018,1009,1,0,0,0,1018,1017,1,0,0,0,1019,15,1,0,0,0,1020,1025,3,18,9,0,1021,1022,5,47,0,0,1022,1024,3,18,9,0,1023,1021,1,0,0,0,1024,1027,1,0,0,0,1025,1023,1,0,0,0,1025,1026,1,0,0,0,1026,17,1,0,0,0,1027,1025,1,0,0,0,1028,1033,3,20,10,0,1029,1030,5,318,0,0,1030,1032,3,20,10,0,1031,1029,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1033,1034,1,0,0,0,1034,19,1,0,0,0,1035,1033,1,0,0,0,1036,1038,3,28,14,0,1037,1039,3,24,12,0,1038,1037,1,0,0,0,1038,1039,1,0,0,0,1039,21,1,0,0,0,1040,1042,5,171,0,0,1041,1043,5,197,0,0,1042,1041,1,0,0,0,1042,1043,1,0,0,0,1043,1044,1,0,0,0,1044,1045,5,110,0,0,1045,1046,5,142,0,0,1046,23,1,0,0,0,1047,1049,5,197,0,0,1048,1047,1,0,0,0,1048,1049,1,0,0,0,1049,1050,1,0,0,0,1050,1051,3,26,13,0,1051,1054,3,28,14,0,1052,1053,5,122,0,0,1053,1055,3,28,14,0,1054,1052,1,0,0,0,1054,1055,1,0,0,0,1055,1099,1,0,0,0,1056,1058,5,197,0,0,1057,1056,1,0,0,0,1057,1058,1,0,0,0,1058,1059,1,0,0,0,1059,1061,5,159,0,0,1060,1062,5,80,0,0,1061,1060,1,0,0,0,1061,1062,1,0,0,0,1062,1063,1,0,0,0,1063,1099,3,82,41,0,1064,1074,5,172,0,0,1065,1074,5,198,0,0,1066,1067,5,171,0,0,1067,1074,5,199,0,0,1068,1070,5,171,0,0,1069,1068,1,0,0,0,1069,1070,1,0,0,0,1070,1071,1,0,0,0,1071,1072,5,197,0,0,1072,1074,5,199,0,0,1073,1064,1,0,0,0,1073,1065,1,0,0,0,1073,1066,1,0,0,0,1073,1069,1,0,0,0,1074,1099,1,0,0,0,1075,1077,5,197,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1080,5,66,0,0,1079,1081,7,0,0,0,1080,1079,1,0,0,0,1080,1081,1,0,0,0,1081,1082,1,0,0,0,1082,1083,3,28,14,0,1083,1084,5,47,0,0,1084,1085,3,28,14,0,1085,1099,1,0,0,0,1086,1092,5,2,0,0,1087,1092,5,3,0,0,1088,1092,5,4,0,0,1089,1092,5,5,0,0,1090,1092,3,22,11,0,1091,1086,1,0,0,0,1091,1087,1,0,0,0,1091,1088,1,0,0,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1095,3,28,14,0,1094,1091,1,0,0,0,1095,1096,1,0,0,0,1096,1094,1,0,0,0,1096,1097,1,0,0,0,1097,1099,1,0,0,0,1098,1048,1,0,0,0,1098,1057,1,0,0,0,1098,1073,1,0,0,0,1098,1076,1,0,0,0,1098,1094,1,0,0,0,1099,25,1,0,0,0,1100,1101,7,1,0,0,1101,27,1,0,0,0,1102,1107,3,36,18,0,1103,1104,7,2,0,0,1104,1106,3,36,18,0,1105,1103,1,0,0,0,1106,1109,1,0,0,0,1107,1105,1,0,0,0,1107,1108,1,0,0,0,1108,29,1,0,0,0,1109,1107,1,0,0,0,1110,1111,5,8,0,0,1111,1112,5,8,0,0,1112,31,1,0,0,0,1113,1114,5,8,0,0,1114,1115,5,8,0,0,1115,1116,5,13,0,0,1116,33,1,0,0,0,1117,1118,5,28,0,0,1118,1119,5,28,0,0,1119,35,1,0,0,0,1120,1133,3,38,19,0,1121,1129,5,10,0,0,1122,1129,3,30,15,0,1123,1129,5,11,0,0,1124,1129,3,32,16,0,1125,1129,5,12,0,0,1126,1129,5,13,0,0,1127,1129,5,35,0,0,1128,1121,1,0,0,0,1128,1122,1,0,0,0,1128,1123,1,0,0,0,1128,1124,1,0,0,0,1128,1125,1,0,0,0,1128,1126,1,0,0,0,1128,1127,1,0,0,0,1129,1130,1,0,0,0,1130,1132,3,38,19,0,1131,1128,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1133,1134,1,0,0,0,1134,1144,1,0,0,0,1135,1133,1,0,0,0,1136,1137,3,34,17,0,1137,1138,3,36,18,0,1138,1145,1,0,0,0,1139,1141,5,28,0,0,1140,1139,1,0,0,0,1141,1142,1,0,0,0,1142,1140,1,0,0,0,1142,1143,1,0,0,0,1143,1145,1,0,0,0,1144,1136,1,0,0,0,1144,1140,1,0,0,0,1144,1145,1,0,0,0,1145,37,1,0,0,0,1146,1151,3,40,20,0,1147,1148,7,3,0,0,1148,1150,3,40,20,0,1149,1147,1,0,0,0,1150,1153,1,0,0,0,1151,1149,1,0,0,0,1151,1152,1,0,0,0,1152,39,1,0,0,0,1153,1151,1,0,0,0,1154,1159,3,42,21,0,1155,1156,7,4,0,0,1156,1158,3,42,21,0,1157,1155,1,0,0,0,1158,1161,1,0,0,0,1159,1157,1,0,0,0,1159,1160,1,0,0,0,1160,41,1,0,0,0,1161,1159,1,0,0,0,1162,1167,3,44,22,0,1163,1164,5,14,0,0,1164,1166,3,44,22,0,1165,1163,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,43,1,0,0,0,1169,1167,1,0,0,0,1170,1175,3,54,27,0,1171,1172,3,46,23,0,1172,1173,3,54,27,0,1173,1175,1,0,0,0,1174,1170,1,0,0,0,1174,1171,1,0,0,0,1175,45,1,0,0,0,1176,1177,7,5,0,0,1177,47,1,0,0,0,1178,1187,3,138,69,0,1179,1187,3,132,66,0,1180,1184,5,24,0,0,1181,1185,3,144,72,0,1182,1185,5,322,0,0,1183,1185,3,792,396,0,1184,1181,1,0,0,0,1184,1182,1,0,0,0,1184,1183,1,0,0,0,1185,1187,1,0,0,0,1186,1178,1,0,0,0,1186,1179,1,0,0,0,1186,1180,1,0,0,0,1187,1189,1,0,0,0,1188,1186,1,0,0,0,1189,1192,1,0,0,0,1190,1188,1,0,0,0,1190,1191,1,0,0,0,1191,1195,1,0,0,0,1192,1190,1,0,0,0,1193,1194,5,76,0,0,1194,1196,3,790,395,0,1195,1193,1,0,0,0,1195,1196,1,0,0,0,1196,49,1,0,0,0,1197,1200,3,776,388,0,1198,1200,3,68,34,0,1199,1197,1,0,0,0,1199,1198,1,0,0,0,1200,1201,1,0,0,0,1201,1202,3,48,24,0,1202,51,1,0,0,0,1203,1206,3,778,389,0,1204,1206,3,70,35,0,1205,1203,1,0,0,0,1205,1204,1,0,0,0,1206,1207,1,0,0,0,1207,1208,3,48,24,0,1208,53,1,0,0,0,1209,1212,3,50,25,0,1210,1212,3,84,42,0,1211,1209,1,0,0,0,1211,1210,1,0,0,0,1212,55,1,0,0,0,1213,1216,3,52,26,0,1214,1216,3,84,42,0,1215,1213,1,0,0,0,1215,1214,1,0,0,0,1216,57,1,0,0,0,1217,1219,5,39,0,0,1218,1220,3,112,56,0,1219,1218,1,0,0,0,1219,1220,1,0,0,0,1220,1222,1,0,0,0,1221,1223,5,25,0,0,1222,1221,1,0,0,0,1222,1223,1,0,0,0,1223,1224,1,0,0,0,1224,1225,5,38,0,0,1225,59,1,0,0,0,1226,1229,3,14,7,0,1227,1228,5,29,0,0,1228,1230,3,14,7,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,1239,1,0,0,0,1231,1232,5,25,0,0,1232,1235,3,14,7,0,1233,1234,5,29,0,0,1234,1236,3,14,7,0,1235,1233,1,0,0,0,1235,1236,1,0,0,0,1236,1238,1,0,0,0,1237,1231,1,0,0,0,1238,1241,1,0,0,0,1239,1237,1,0,0,0,1239,1240,1,0,0,0,1240,61,1,0,0,0,1241,1239,1,0,0,0,1242,1244,5,33,0,0,1243,1245,3,60,30,0,1244,1243,1,0,0,0,1244,1245,1,0,0,0,1245,1247,1,0,0,0,1246,1248,5,25,0,0,1247,1246,1,0,0,0,1247,1248,1,0,0,0,1248,1249,1,0,0,0,1249,1250,5,34,0,0,1250,63,1,0,0,0,1251,1252,3,14,7,0,1252,1253,5,29,0,0,1253,1261,3,14,7,0,1254,1255,5,25,0,0,1255,1256,3,14,7,0,1256,1257,5,29,0,0,1257,1258,3,14,7,0,1258,1260,1,0,0,0,1259,1254,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,65,1,0,0,0,1263,1261,1,0,0,0,1264,1266,5,15,0,0,1265,1267,3,64,32,0,1266,1265,1,0,0,0,1266,1267,1,0,0,0,1267,1269,1,0,0,0,1268,1270,5,25,0,0,1269,1268,1,0,0,0,1269,1270,1,0,0,0,1270,1271,1,0,0,0,1271,1272,5,16,0,0,1272,67,1,0,0,0,1273,1291,3,142,71,0,1274,1291,3,144,72,0,1275,1291,3,80,40,0,1276,1291,3,72,36,0,1277,1291,3,76,38,0,1278,1291,3,78,39,0,1279,1280,3,792,396,0,1280,1283,5,36,0,0,1281,1284,3,818,409,0,1282,1284,5,319,0,0,1283,1281,1,0,0,0,1283,1282,1,0,0,0,1284,1291,1,0,0,0,1285,1291,3,208,104,0,1286,1291,3,74,37,0,1287,1291,3,58,29,0,1288,1291,3,62,31,0,1289,1291,3,66,33,0,1290,1273,1,0,0,0,1290,1274,1,0,0,0,1290,1275,1,0,0,0,1290,1276,1,0,0,0,1290,1277,1,0,0,0,1290,1278,1,0,0,0,1290,1279,1,0,0,0,1290,1285,1,0,0,0,1290,1286,1,0,0,0,1290,1287,1,0,0,0,1290,1288,1,0,0,0,1290,1289,1,0,0,0,1291,69,1,0,0,0,1292,1313,3,142,71,0,1293,1313,3,144,72,0,1294,1313,3,80,40,0,1295,1313,3,72,36,0,1296,1313,3,78,39,0,1297,1298,3,792,396,0,1298,1301,5,36,0,0,1299,1302,3,818,409,0,1300,1302,5,319,0,0,1301,1299,1,0,0,0,1301,1300,1,0,0,0,1302,1313,1,0,0,0,1303,1304,5,26,0,0,1304,1305,3,232,116,0,1305,1306,5,27,0,0,1306,1313,1,0,0,0,1307,1313,3,208,104,0,1308,1313,3,74,37,0,1309,1313,3,58,29,0,1310,1313,3,62,31,0,1311,1313,3,66,33,0,1312,1292,1,0,0,0,1312,1293,1,0,0,0,1312,1294,1,0,0,0,1312,1295,1,0,0,0,1312,1296,1,0,0,0,1312,1297,1,0,0,0,1312,1303,1,0,0,0,1312,1307,1,0,0,0,1312,1308,1,0,0,0,1312,1309,1,0,0,0,1312,1310,1,0,0,0,1312,1311,1,0,0,0,1313,71,1,0,0,0,1314,1315,5,72,0,0,1315,1316,5,26,0,0,1316,1317,3,14,7,0,1317,1318,5,51,0,0,1318,1319,3,204,102,0,1319,1320,5,27,0,0,1320,73,1,0,0,0,1321,1322,5,67,0,0,1322,1323,5,26,0,0,1323,1324,3,14,7,0,1324,1325,5,51,0,0,1325,1326,3,156,78,0,1326,1327,5,27,0,0,1327,75,1,0,0,0,1328,1329,5,128,0,0,1329,1332,5,26,0,0,1330,1333,3,232,116,0,1331,1333,3,370,185,0,1332,1330,1,0,0,0,1332,1331,1,0,0,0,1333,1334,1,0,0,0,1334,1335,5,27,0,0,1335,77,1,0,0,0,1336,1338,5,71,0,0,1337,1339,3,14,7,0,1338,1337,1,0,0,0,1338,1339,1,0,0,0,1339,1341,1,0,0,0,1340,1342,3,140,70,0,1341,1340,1,0,0,0,1342,1343,1,0,0,0,1343,1341,1,0,0,0,1343,1344,1,0,0,0,1344,1347,1,0,0,0,1345,1346,5,114,0,0,1346,1348,3,14,7,0,1347,1345,1,0,0,0,1347,1348,1,0,0,0,1348,1349,1,0,0,0,1349,1350,5,118,0,0,1350,79,1,0,0,0,1351,1363,3,110,55,0,1352,1361,5,37,0,0,1353,1354,5,26,0,0,1354,1355,3,14,7,0,1355,1356,5,27,0,0,1356,1362,1,0,0,0,1357,1358,5,33,0,0,1358,1359,3,6,3,0,1359,1360,5,34,0,0,1360,1362,1,0,0,0,1361,1353,1,0,0,0,1361,1357,1,0,0,0,1362,1364,1,0,0,0,1363,1352,1,0,0,0,1363,1364,1,0,0,0,1364,81,1,0,0,0,1365,1366,3,56,28,0,1366,83,1,0,0,0,1367,1371,3,98,49,0,1368,1371,3,102,51,0,1369,1371,3,108,54,0,1370,1367,1,0,0,0,1370,1368,1,0,0,0,1370,1369,1,0,0,0,1371,85,1,0,0,0,1372,1373,5,319,0,0,1373,87,1,0,0,0,1374,1377,3,776,388,0,1375,1377,5,319,0,0,1376,1374,1,0,0,0,1376,1375,1,0,0,0,1377,89,1,0,0,0,1378,1379,3,14,7,0,1379,1380,5,51,0,0,1380,1381,3,88,44,0,1381,91,1,0,0,0,1382,1387,3,90,45,0,1383,1384,5,25,0,0,1384,1386,3,90,45,0,1385,1383,1,0,0,0,1386,1389,1,0,0,0,1387,1385,1,0,0,0,1387,1388,1,0,0,0,1388,93,1,0,0,0,1389,1387,1,0,0,0,1390,1391,3,14,7,0,1391,1392,5,25,0,0,1392,1395,3,86,43,0,1393,1394,5,217,0,0,1394,1396,3,92,46,0,1395,1393,1,0,0,0,1395,1396,1,0,0,0,1396,95,1,0,0,0,1397,1402,5,121,0,0,1398,1402,5,199,0,0,1399,1400,5,98,0,0,1400,1402,3,14,7,0,1401,1397,1,0,0,0,1401,1398,1,0,0,0,1401,1399,1,0,0,0,1402,97,1,0,0,0,1403,1404,5,176,0,0,1404,1405,5,26,0,0,1405,1408,3,94,47,0,1406,1407,5,251,0,0,1407,1409,3,156,78,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1416,1,0,0,0,1410,1411,3,96,48,0,1411,1412,5,205,0,0,1412,1413,7,6,0,0,1413,1415,1,0,0,0,1414,1410,1,0,0,0,1415,1418,1,0,0,0,1416,1414,1,0,0,0,1416,1417,1,0,0,0,1417,1419,1,0,0,0,1418,1416,1,0,0,0,1419,1420,5,27,0,0,1420,99,1,0,0,0,1421,1422,7,7,0,0,1422,1423,5,205,0,0,1423,1424,5,121,0,0,1424,101,1,0,0,0,1425,1426,5,174,0,0,1426,1427,5,26,0,0,1427,1429,3,94,47,0,1428,1430,3,100,50,0,1429,1428,1,0,0,0,1429,1430,1,0,0,0,1430,1431,1,0,0,0,1431,1432,5,27,0,0,1432,103,1,0,0,0,1433,1435,5,316,0,0,1434,1436,5,50,0,0,1435,1434,1,0,0,0,1435,1436,1,0,0,0,1436,1445,1,0,0,0,1437,1439,5,315,0,0,1438,1440,7,8,0,0,1439,1438,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1443,5,50,0,0,1442,1441,1,0,0,0,1442,1443,1,0,0,0,1443,1445,1,0,0,0,1444,1433,1,0,0,0,1444,1437,1,0,0,0,1445,105,1,0,0,0,1446,1453,5,121,0,0,1447,1453,5,199,0,0,1448,1449,5,115,0,0,1449,1453,5,50,0,0,1450,1451,5,115,0,0,1451,1453,5,201,0,0,1452,1446,1,0,0,0,1452,1447,1,0,0,0,1452,1448,1,0,0,0,1452,1450,1,0,0,0,1453,107,1,0,0,0,1454,1455,5,175,0,0,1455,1456,5,26,0,0,1456,1460,3,94,47,0,1457,1458,3,104,52,0,1458,1459,5,317,0,0,1459,1461,1,0,0,0,1460,1457,1,0,0,0,1460,1461,1,0,0,0,1461,1466,1,0,0,0,1462,1463,3,106,53,0,1463,1464,5,205,0,0,1464,1465,5,115,0,0,1465,1467,1,0,0,0,1466,1462,1,0,0,0,1466,1467,1,0,0,0,1467,1472,1,0,0,0,1468,1469,3,106,53,0,1469,1470,5,205,0,0,1470,1471,5,121,0,0,1471,1473,1,0,0,0,1472,1468,1,0,0,0,1472,1473,1,0,0,0,1473,1474,1,0,0,0,1474,1475,5,27,0,0,1475,109,1,0,0,0,1476,1478,5,26,0,0,1477,1479,3,130,65,0,1478,1477,1,0,0,0,1478,1479,1,0,0,0,1479,1481,1,0,0,0,1480,1482,5,25,0,0,1481,1480,1,0,0,0,1481,1482,1,0,0,0,1482,1483,1,0,0,0,1483,1484,5,27,0,0,1484,111,1,0,0,0,1485,1490,3,14,7,0,1486,1487,5,25,0,0,1487,1489,3,14,7,0,1488,1486,1,0,0,0,1489,1492,1,0,0,0,1490,1488,1,0,0,0,1490,1491,1,0,0,0,1491,113,1,0,0,0,1492,1490,1,0,0,0,1493,1494,5,26,0,0,1494,1499,3,790,395,0,1495,1496,5,25,0,0,1496,1498,3,790,395,0,1497,1495,1,0,0,0,1498,1501,1,0,0,0,1499,1497,1,0,0,0,1499,1500,1,0,0,0,1500,1502,1,0,0,0,1501,1499,1,0,0,0,1502,1503,5,27,0,0,1503,115,1,0,0,0,1504,1507,3,144,72,0,1505,1507,3,790,395,0,1506,1504,1,0,0,0,1506,1505,1,0,0,0,1507,117,1,0,0,0,1508,1509,5,26,0,0,1509,1514,3,116,58,0,1510,1511,5,25,0,0,1511,1513,3,116,58,0,1512,1510,1,0,0,0,1513,1516,1,0,0,0,1514,1512,1,0,0,0,1514,1515,1,0,0,0,1515,1517,1,0,0,0,1516,1514,1,0,0,0,1517,1518,5,27,0,0,1518,119,1,0,0,0,1519,1520,3,814,407,0,1520,1521,3,790,395,0,1521,121,1,0,0,0,1522,1523,3,790,395,0,1523,1524,5,24,0,0,1524,1525,3,790,395,0,1525,1528,1,0,0,0,1526,1528,3,804,402,0,1527,1522,1,0,0,0,1527,1526,1,0,0,0,1528,123,1,0,0,0,1529,1534,3,120,60,0,1530,1531,5,25,0,0,1531,1533,3,120,60,0,1532,1530,1,0,0,0,1533,1536,1,0,0,0,1534,1532,1,0,0,0,1534,1535,1,0,0,0,1535,1538,1,0,0,0,1536,1534,1,0,0,0,1537,1539,5,25,0,0,1538,1537,1,0,0,0,1538,1539,1,0,0,0,1539,125,1,0,0,0,1540,1545,3,122,61,0,1541,1542,5,25,0,0,1542,1544,3,122,61,0,1543,1541,1,0,0,0,1544,1547,1,0,0,0,1545,1543,1,0,0,0,1545,1546,1,0,0,0,1546,1549,1,0,0,0,1547,1545,1,0,0,0,1548,1550,5,25,0,0,1549,1548,1,0,0,0,1549,1550,1,0,0,0,1550,127,1,0,0,0,1551,1554,3,14,7,0,1552,1553,5,51,0,0,1553,1555,3,792,396,0,1554,1552,1,0,0,0,1554,1555,1,0,0,0,1555,129,1,0,0,0,1556,1561,3,128,64,0,1557,1558,5,25,0,0,1558,1560,3,128,64,0,1559,1557,1,0,0,0,1560,1563,1,0,0,0,1561,1559,1,0,0,0,1561,1562,1,0,0,0,1562,131,1,0,0,0,1563,1561,1,0,0,0,1564,1571,5,26,0,0,1565,1566,3,252,126,0,1566,1568,3,130,65,0,1567,1569,5,25,0,0,1568,1567,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1572,5,20,0,0,1571,1565,1,0,0,0,1571,1570,1,0,0,0,1571,1572,1,0,0,0,1572,1573,1,0,0,0,1573,1574,5,27,0,0,1574,1575,3,134,67,0,1575,133,1,0,0,0,1576,1579,3,716,358,0,1577,1579,3,718,359,0,1578,1576,1,0,0,0,1578,1577,1,0,0,0,1578,1579,1,0,0,0,1579,1582,1,0,0,0,1580,1581,5,214,0,0,1581,1583,3,720,360,0,1582,1580,1,0,0,0,1582,1583,1,0,0,0,1583,135,1,0,0,0,1584,1585,3,792,396,0,1585,1586,5,36,0,0,1586,1587,3,792,396,0,1587,1593,1,0,0,0,1588,1593,3,796,398,0,1589,1593,3,144,72,0,1590,1591,5,131,0,0,1591,1593,5,144,0,0,1592,1584,1,0,0,0,1592,1588,1,0,0,0,1592,1589,1,0,0,0,1592,1590,1,0,0,0,1593,1594,1,0,0,0,1594,1595,3,132,66,0,1595,137,1,0,0,0,1596,1597,5,39,0,0,1597,1598,3,14,7,0,1598,1599,5,38,0,0,1599,139,1,0,0,0,1600,1601,5,312,0,0,1601,1602,3,14,7,0,1602,1603,5,287,0,0,1603,1604,3,14,7,0,1604,141,1,0,0,0,1605,1616,3,854,427,0,1606,1616,3,852,426,0,1607,1616,5,319,0,0,1608,1616,5,325,0,0,1609,1616,5,199,0,0,1610,1616,5,92,0,0,1611,1616,5,91,0,0,1612,1616,5,93,0,0,1613,1616,3,850,425,0,1614,1616,5,116,0,0,1615,1605,1,0,0,0,1615,1606,1,0,0,0,1615,1607,1,0,0,0,1615,1608,1,0,0,0,1615,1609,1,0,0,0,1615,1610,1,0,0,0,1615,1611,1,0,0,0,1615,1612,1,0,0,0,1615,1613,1,0,0,0,1615,1614,1,0,0,0,1616,143,1,0,0,0,1617,1621,5,32,0,0,1618,1622,3,792,396,0,1619,1622,5,293,0,0,1620,1622,5,133,0,0,1621,1618,1,0,0,0,1621,1619,1,0,0,0,1621,1620,1,0,0,0,1622,145,1,0,0,0,1623,1625,3,144,72,0,1624,1626,5,28,0,0,1625,1624,1,0,0,0,1625,1626,1,0,0,0,1626,147,1,0,0,0,1627,1632,3,144,72,0,1628,1629,5,25,0,0,1629,1631,3,144,72,0,1630,1628,1,0,0,0,1631,1634,1,0,0,0,1632,1630,1,0,0,0,1632,1633,1,0,0,0,1633,149,1,0,0,0,1634,1632,1,0,0,0,1635,1638,3,144,72,0,1636,1637,5,51,0,0,1637,1639,3,144,72,0,1638,1636,1,0,0,0,1638,1639,1,0,0,0,1639,151,1,0,0,0,1640,1645,3,150,75,0,1641,1642,5,25,0,0,1642,1644,3,150,75,0,1643,1641,1,0,0,0,1644,1647,1,0,0,0,1645,1643,1,0,0,0,1645,1646,1,0,0,0,1646,153,1,0,0,0,1647,1645,1,0,0,0,1648,1650,7,3,0,0,1649,1648,1,0,0,0,1649,1650,1,0,0,0,1650,1653,1,0,0,0,1651,1654,3,854,427,0,1652,1654,3,852,426,0,1653,1651,1,0,0,0,1653,1652,1,0,0,0,1654,155,1,0,0,0,1655,1656,3,808,404,0,1656,157,1,0,0,0,1657,1660,3,854,427,0,1658,1660,3,144,72,0,1659,1657,1,0,0,0,1659,1658,1,0,0,0,1660,159,1,0,0,0,1661,1665,3,772,386,0,1662,1665,5,319,0,0,1663,1665,3,144,72,0,1664,1661,1,0,0,0,1664,1662,1,0,0,0,1664,1663,1,0,0,0,1665,161,1,0,0,0,1666,1667,3,160,80,0,1667,1668,5,29,0,0,1668,1669,3,204,102,0,1669,163,1,0,0,0,1670,1671,3,160,80,0,1671,1676,3,204,102,0,1672,1674,5,197,0,0,1673,1672,1,0,0,0,1673,1674,1,0,0,0,1674,1675,1,0,0,0,1675,1677,5,199,0,0,1676,1673,1,0,0,0,1676,1677,1,0,0,0,1677,1683,1,0,0,0,1678,1679,3,204,102,0,1679,1680,5,51,0,0,1680,1681,3,160,80,0,1681,1683,1,0,0,0,1682,1670,1,0,0,0,1682,1678,1,0,0,0,1683,165,1,0,0,0,1684,1685,3,160,80,0,1685,1686,5,29,0,0,1686,1688,1,0,0,0,1687,1684,1,0,0,0,1687,1688,1,0,0,0,1688,1689,1,0,0,0,1689,1690,3,204,102,0,1690,167,1,0,0,0,1691,1695,3,166,83,0,1692,1693,5,33,0,0,1693,1694,5,60,0,0,1694,1696,5,34,0,0,1695,1692,1,0,0,0,1695,1696,1,0,0,0,1696,169,1,0,0,0,1697,1702,3,168,84,0,1698,1699,5,25,0,0,1699,1701,3,168,84,0,1700,1698,1,0,0,0,1701,1704,1,0,0,0,1702,1700,1,0,0,0,1702,1703,1,0,0,0,1703,171,1,0,0,0,1704,1702,1,0,0,0,1705,1706,5,96,0,0,1706,1707,5,26,0,0,1707,1708,3,158,79,0,1708,1709,5,25,0,0,1709,1710,3,158,79,0,1710,1711,5,27,0,0,1711,173,1,0,0,0,1712,1713,5,209,0,0,1713,1714,5,6,0,0,1714,1715,3,204,102,0,1715,1716,5,8,0,0,1716,175,1,0,0,0,1717,1734,5,294,0,0,1718,1730,5,6,0,0,1719,1724,3,204,102,0,1720,1721,5,25,0,0,1721,1723,3,204,102,0,1722,1720,1,0,0,0,1723,1726,1,0,0,0,1724,1722,1,0,0,0,1724,1725,1,0,0,0,1725,1728,1,0,0,0,1726,1724,1,0,0,0,1727,1729,5,25,0,0,1728,1727,1,0,0,0,1728,1729,1,0,0,0,1729,1731,1,0,0,0,1730,1719,1,0,0,0,1730,1731,1,0,0,0,1731,1732,1,0,0,0,1732,1735,5,8,0,0,1733,1735,5,5,0,0,1734,1718,1,0,0,0,1734,1733,1,0,0,0,1735,177,1,0,0,0,1736,1753,5,273,0,0,1737,1749,5,6,0,0,1738,1743,3,162,81,0,1739,1740,5,25,0,0,1740,1742,3,162,81,0,1741,1739,1,0,0,0,1742,1745,1,0,0,0,1743,1741,1,0,0,0,1743,1744,1,0,0,0,1744,1747,1,0,0,0,1745,1743,1,0,0,0,1746,1748,5,25,0,0,1747,1746,1,0,0,0,1747,1748,1,0,0,0,1748,1750,1,0,0,0,1749,1738,1,0,0,0,1749,1750,1,0,0,0,1750,1751,1,0,0,0,1751,1754,5,8,0,0,1752,1754,5,5,0,0,1753,1737,1,0,0,0,1753,1752,1,0,0,0,1754,179,1,0,0,0,1755,1756,5,309,0,0,1756,1757,5,6,0,0,1757,1762,3,166,83,0,1758,1759,5,25,0,0,1759,1761,3,166,83,0,1760,1758,1,0,0,0,1761,1764,1,0,0,0,1762,1760,1,0,0,0,1762,1763,1,0,0,0,1763,1766,1,0,0,0,1764,1762,1,0,0,0,1765,1767,5,25,0,0,1766,1765,1,0,0,0,1766,1767,1,0,0,0,1767,1768,1,0,0,0,1768,1769,5,8,0,0,1769,181,1,0,0,0,1770,1771,5,183,0,0,1771,1772,5,6,0,0,1772,1773,3,204,102,0,1773,1774,5,8,0,0,1774,183,1,0,0,0,1775,1776,5,272,0,0,1776,1777,5,6,0,0,1777,1778,3,204,102,0,1778,1779,5,8,0,0,1779,185,1,0,0,0,1780,1781,5,138,0,0,1781,1782,5,6,0,0,1782,1783,3,204,102,0,1783,1784,5,8,0,0,1784,187,1,0,0,0,1785,1786,5,106,0,0,1786,1787,5,6,0,0,1787,1788,3,204,102,0,1788,1789,5,25,0,0,1789,1790,3,204,102,0,1790,1791,5,8,0,0,1791,189,1,0,0,0,1792,1793,5,267,0,0,1793,1794,5,6,0,0,1794,1795,3,204,102,0,1795,1796,5,8,0,0,1796,191,1,0,0,0,1797,1798,5,119,0,0,1798,1799,5,6,0,0,1799,1804,3,160,80,0,1800,1801,5,25,0,0,1801,1803,3,160,80,0,1802,1800,1,0,0,0,1803,1806,1,0,0,0,1804,1802,1,0,0,0,1804,1805,1,0,0,0,1805,1808,1,0,0,0,1806,1804,1,0,0,0,1807,1809,5,25,0,0,1808,1807,1,0,0,0,1808,1809,1,0,0,0,1809,1810,1,0,0,0,1810,1811,5,8,0,0,1811,193,1,0,0,0,1812,1813,5,245,0,0,1813,1814,5,6,0,0,1814,1815,3,160,80,0,1815,1816,5,8,0,0,1816,195,1,0,0,0,1817,1818,5,284,0,0,1818,1819,5,6,0,0,1819,1820,3,204,102,0,1820,1821,5,25,0,0,1821,1822,3,160,80,0,1822,1823,5,8,0,0,1823,197,1,0,0,0,1824,1825,5,69,0,0,1825,1826,5,6,0,0,1826,1828,5,26,0,0,1827,1829,3,170,85,0,1828,1827,1,0,0,0,1828,1829,1,0,0,0,1829,1831,1,0,0,0,1830,1832,5,25,0,0,1831,1830,1,0,0,0,1831,1832,1,0,0,0,1832,1837,1,0,0,0,1833,1834,5,39,0,0,1834,1835,3,170,85,0,1835,1836,5,38,0,0,1836,1838,1,0,0,0,1837,1833,1,0,0,0,1837,1838,1,0,0,0,1838,1839,1,0,0,0,1839,1840,5,27,0,0,1840,1841,5,37,0,0,1841,1842,3,204,102,0,1842,1843,5,8,0,0,1843,199,1,0,0,0,1844,1858,3,174,87,0,1845,1858,3,176,88,0,1846,1858,3,178,89,0,1847,1858,3,180,90,0,1848,1858,3,182,91,0,1849,1858,3,184,92,0,1850,1858,3,186,93,0,1851,1858,3,188,94,0,1852,1858,3,190,95,0,1853,1858,3,192,96,0,1854,1858,3,194,97,0,1855,1858,3,196,98,0,1856,1858,3,198,99,0,1857,1844,1,0,0,0,1857,1845,1,0,0,0,1857,1846,1,0,0,0,1857,1847,1,0,0,0,1857,1848,1,0,0,0,1857,1849,1,0,0,0,1857,1850,1,0,0,0,1857,1851,1,0,0,0,1857,1852,1,0,0,0,1857,1853,1,0,0,0,1857,1854,1,0,0,0,1857,1855,1,0,0,0,1857,1856,1,0,0,0,1858,1862,1,0,0,0,1859,1861,5,28,0,0,1860,1859,1,0,0,0,1861,1864,1,0,0,0,1862,1860,1,0,0,0,1862,1863,1,0,0,0,1863,201,1,0,0,0,1864,1862,1,0,0,0,1865,1877,3,200,100,0,1866,1869,3,172,86,0,1867,1869,3,156,78,0,1868,1866,1,0,0,0,1868,1867,1,0,0,0,1869,1873,1,0,0,0,1870,1872,5,28,0,0,1871,1870,1,0,0,0,1872,1875,1,0,0,0,1873,1871,1,0,0,0,1873,1874,1,0,0,0,1874,1877,1,0,0,0,1875,1873,1,0,0,0,1876,1865,1,0,0,0,1876,1868,1,0,0,0,1877,203,1,0,0,0,1878,1881,3,202,101,0,1879,1881,3,144,72,0,1880,1878,1,0,0,0,1880,1879,1,0,0,0,1881,205,1,0,0,0,1882,1883,5,319,0,0,1883,207,1,0,0,0,1884,1885,5,309,0,0,1885,1886,5,26,0,0,1886,1887,3,14,7,0,1887,1888,5,25,0,0,1888,1889,3,14,7,0,1889,1890,5,25,0,0,1890,1891,3,14,7,0,1891,1892,5,27,0,0,1892,1908,1,0,0,0,1893,1894,5,119,0,0,1894,1895,5,26,0,0,1895,1896,3,14,7,0,1896,1897,5,25,0,0,1897,1898,3,14,7,0,1898,1899,5,27,0,0,1899,1908,1,0,0,0,1900,1901,5,69,0,0,1901,1902,5,26,0,0,1902,1903,3,14,7,0,1903,1904,5,25,0,0,1904,1905,3,14,7,0,1905,1906,5,27,0,0,1906,1908,1,0,0,0,1907,1884,1,0,0,0,1907,1893,1,0,0,0,1907,1900,1,0,0,0,1908,209,1,0,0,0,1909,1910,5,97,0,0,1910,1911,3,144,72,0,1911,1912,5,51,0,0,1912,1915,3,202,101,0,1913,1914,5,2,0,0,1914,1916,3,142,71,0,1915,1913,1,0,0,0,1915,1916,1,0,0,0,1916,211,1,0,0,0,1917,1919,5,24,0,0,1918,1917,1,0,0,0,1918,1919,1,0,0,0,1919,1920,1,0,0,0,1920,1925,3,790,395,0,1921,1922,5,24,0,0,1922,1924,3,790,395,0,1923,1921,1,0,0,0,1924,1927,1,0,0,0,1925,1923,1,0,0,0,1925,1926,1,0,0,0,1926,213,1,0,0,0,1927,1925,1,0,0,0,1928,1929,5,158,0,0,1929,1930,3,212,106,0,1930,1931,5,276,0,0,1931,1932,3,152,76,0,1932,215,1,0,0,0,1933,1934,5,130,0,0,1934,1935,3,148,74,0,1935,217,1,0,0,0,1936,1939,3,144,72,0,1937,1939,5,116,0,0,1938,1936,1,0,0,0,1938,1937,1,0,0,0,1939,1940,1,0,0,0,1940,1942,5,26,0,0,1941,1943,3,112,56,0,1942,1941,1,0,0,0,1942,1943,1,0,0,0,1943,1944,1,0,0,0,1944,1945,5,27,0,0,1945,219,1,0,0,0,1946,1947,5,64,0,0,1947,1948,3,626,313,0,1948,1949,5,118,0,0,1949,1950,5,111,0,0,1950,221,1,0,0,0,1951,1954,5,111,0,0,1952,1955,3,218,109,0,1953,1955,3,220,110,0,1954,1952,1,0,0,0,1954,1953,1,0,0,0,1955,223,1,0,0,0,1956,1957,5,225,0,0,1957,1958,3,820,410,0,1958,1972,3,790,395,0,1959,1960,5,2,0,0,1960,1973,3,226,113,0,1961,1962,5,26,0,0,1962,1967,3,226,113,0,1963,1964,5,25,0,0,1964,1966,3,226,113,0,1965,1963,1,0,0,0,1966,1969,1,0,0,0,1967,1965,1,0,0,0,1967,1968,1,0,0,0,1968,1970,1,0,0,0,1969,1967,1,0,0,0,1970,1971,5,27,0,0,1971,1973,1,0,0,0,1972,1959,1,0,0,0,1972,1961,1,0,0,0,1972,1973,1,0,0,0,1973,225,1,0,0,0,1974,1980,3,154,77,0,1975,1980,3,772,386,0,1976,1980,5,319,0,0,1977,1980,3,850,425,0,1978,1980,3,144,72,0,1979,1974,1,0,0,0,1979,1975,1,0,0,0,1979,1976,1,0,0,0,1979,1977,1,0,0,0,1979,1978,1,0,0,0,1980,227,1,0,0,0,1981,1983,3,14,7,0,1982,1984,7,9,0,0,1983,1982,1,0,0,0,1983,1984,1,0,0,0,1984,229,1,0,0,0,1985,1990,3,228,114,0,1986,1987,5,25,0,0,1987,1989,3,228,114,0,1988,1986,1,0,0,0,1989,1992,1,0,0,0,1990,1988,1,0,0,0,1990,1991,1,0,0,0,1991,231,1,0,0,0,1992,1990,1,0,0,0,1993,1999,3,236,118,0,1994,1995,3,238,119,0,1995,1996,3,236,118,0,1996,1998,1,0,0,0,1997,1994,1,0,0,0,1998,2001,1,0,0,0,1999,1997,1,0,0,0,1999,2e3,1,0,0,0,2e3,233,1,0,0,0,2001,1999,1,0,0,0,2002,2008,3,240,120,0,2003,2004,3,238,119,0,2004,2005,3,236,118,0,2005,2007,1,0,0,0,2006,2003,1,0,0,0,2007,2010,1,0,0,0,2008,2006,1,0,0,0,2008,2009,1,0,0,0,2009,235,1,0,0,0,2010,2008,1,0,0,0,2011,2017,3,240,120,0,2012,2013,5,26,0,0,2013,2014,3,240,120,0,2014,2015,5,27,0,0,2015,2017,1,0,0,0,2016,2011,1,0,0,0,2016,2012,1,0,0,0,2017,237,1,0,0,0,2018,2020,5,298,0,0,2019,2021,5,44,0,0,2020,2019,1,0,0,0,2020,2021,1,0,0,0,2021,2025,1,0,0,0,2022,2025,5,169,0,0,2023,2025,5,124,0,0,2024,2018,1,0,0,0,2024,2022,1,0,0,0,2024,2023,1,0,0,0,2025,239,1,0,0,0,2026,2033,3,242,121,0,2027,2028,5,182,0,0,2028,2031,3,14,7,0,2029,2030,7,10,0,0,2030,2032,3,14,7,0,2031,2029,1,0,0,0,2031,2032,1,0,0,0,2032,2034,1,0,0,0,2033,2027,1,0,0,0,2033,2034,1,0,0,0,2034,241,1,0,0,0,2035,2037,5,109,0,0,2036,2035,1,0,0,0,2036,2037,1,0,0,0,2037,2041,1,0,0,0,2038,2042,3,244,122,0,2039,2042,3,250,125,0,2040,2042,3,254,127,0,2041,2038,1,0,0,0,2041,2039,1,0,0,0,2041,2040,1,0,0,0,2042,2046,1,0,0,0,2043,2044,5,170,0,0,2044,2045,5,249,0,0,2045,2047,3,116,58,0,2046,2043,1,0,0,0,2046,2047,1,0,0,0,2047,243,1,0,0,0,2048,2050,5,230,0,0,2049,2051,5,272,0,0,2050,2049,1,0,0,0,2050,2051,1,0,0,0,2051,2052,1,0,0,0,2052,2057,3,346,173,0,2053,2054,5,25,0,0,2054,2056,3,346,173,0,2055,2053,1,0,0,0,2056,2059,1,0,0,0,2057,2055,1,0,0,0,2057,2058,1,0,0,0,2058,2081,1,0,0,0,2059,2057,1,0,0,0,2060,2061,5,306,0,0,2061,2064,3,136,68,0,2062,2063,5,51,0,0,2063,2065,3,790,395,0,2064,2062,1,0,0,0,2064,2065,1,0,0,0,2065,2068,1,0,0,0,2066,2067,5,315,0,0,2067,2069,3,248,124,0,2068,2066,1,0,0,0,2068,2069,1,0,0,0,2069,2071,1,0,0,0,2070,2072,3,866,433,0,2071,2070,1,0,0,0,2071,2072,1,0,0,0,2072,2075,1,0,0,0,2073,2074,5,152,0,0,2074,2076,3,14,7,0,2075,2073,1,0,0,0,2075,2076,1,0,0,0,2076,2079,1,0,0,0,2077,2078,5,53,0,0,2078,2080,3,314,157,0,2079,2077,1,0,0,0,2079,2080,1,0,0,0,2080,2082,1,0,0,0,2081,2060,1,0,0,0,2081,2082,1,0,0,0,2082,245,1,0,0,0,2083,2084,3,790,395,0,2084,2085,5,2,0,0,2085,2086,3,14,7,0,2086,247,1,0,0,0,2087,2092,3,246,123,0,2088,2089,5,25,0,0,2089,2091,3,246,123,0,2090,2088,1,0,0,0,2091,2094,1,0,0,0,2092,2090,1,0,0,0,2092,2093,1,0,0,0,2093,249,1,0,0,0,2094,2092,1,0,0,0,2095,2096,5,234,0,0,2096,2101,3,346,173,0,2097,2098,5,25,0,0,2098,2100,3,346,173,0,2099,2097,1,0,0,0,2100,2103,1,0,0,0,2101,2099,1,0,0,0,2101,2102,1,0,0,0,2102,2106,1,0,0,0,2103,2101,1,0,0,0,2104,2105,5,227,0,0,2105,2107,3,230,115,0,2106,2104,1,0,0,0,2106,2107,1,0,0,0,2107,2108,1,0,0,0,2108,2109,5,205,0,0,2109,2110,3,124,62,0,2110,2112,5,306,0,0,2111,2113,5,44,0,0,2112,2111,1,0,0,0,2112,2113,1,0,0,0,2113,2114,1,0,0,0,2114,2117,3,136,68,0,2115,2116,5,51,0,0,2116,2118,3,790,395,0,2117,2115,1,0,0,0,2117,2118,1,0,0,0,2118,2120,1,0,0,0,2119,2121,3,866,433,0,2120,2119,1,0,0,0,2120,2121,1,0,0,0,2121,2124,1,0,0,0,2122,2123,5,152,0,0,2123,2125,3,14,7,0,2124,2122,1,0,0,0,2124,2125,1,0,0,0,2125,2128,1,0,0,0,2126,2127,5,53,0,0,2127,2129,3,314,157,0,2128,2126,1,0,0,0,2128,2129,1,0,0,0,2129,251,1,0,0,0,2130,2132,7,11,0,0,2131,2130,1,0,0,0,2131,2132,1,0,0,0,2132,253,1,0,0,0,2133,2135,3,868,434,0,2134,2133,1,0,0,0,2134,2135,1,0,0,0,2135,2136,1,0,0,0,2136,2138,5,265,0,0,2137,2139,5,272,0,0,2138,2137,1,0,0,0,2138,2139,1,0,0,0,2139,2140,1,0,0,0,2140,2141,3,252,126,0,2141,2146,3,336,168,0,2142,2143,5,25,0,0,2143,2145,3,336,168,0,2144,2142,1,0,0,0,2145,2148,1,0,0,0,2146,2144,1,0,0,0,2146,2147,1,0,0,0,2147,2150,1,0,0,0,2148,2146,1,0,0,0,2149,2151,5,25,0,0,2150,2149,1,0,0,0,2150,2151,1,0,0,0,2151,2154,1,0,0,0,2152,2153,5,316,0,0,2153,2155,3,126,63,0,2154,2152,1,0,0,0,2154,2155,1,0,0,0,2155,2157,1,0,0,0,2156,2158,3,868,434,0,2157,2156,1,0,0,0,2157,2158,1,0,0,0,2158,2160,1,0,0,0,2159,2161,3,866,433,0,2160,2159,1,0,0,0,2160,2161,1,0,0,0,2161,2163,1,0,0,0,2162,2164,3,318,159,0,2163,2162,1,0,0,0,2163,2164,1,0,0,0,2164,2167,1,0,0,0,2165,2166,5,152,0,0,2166,2168,3,14,7,0,2167,2165,1,0,0,0,2167,2168,1,0,0,0,2168,2170,1,0,0,0,2169,2171,3,724,362,0,2170,2169,1,0,0,0,2170,2171,1,0,0,0,2171,2173,1,0,0,0,2172,2174,3,316,158,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,255,1,0,0,0,2175,2176,5,188,0,0,2176,2178,5,26,0,0,2177,2179,3,738,369,0,2178,2177,1,0,0,0,2178,2179,1,0,0,0,2179,2181,1,0,0,0,2180,2182,3,314,157,0,2181,2180,1,0,0,0,2181,2182,1,0,0,0,2182,2184,1,0,0,0,2183,2185,3,262,131,0,2184,2183,1,0,0,0,2184,2185,1,0,0,0,2185,2187,1,0,0,0,2186,2188,3,258,129,0,2187,2186,1,0,0,0,2187,2188,1,0,0,0,2188,2189,1,0,0,0,2189,2190,3,268,134,0,2190,2191,5,27,0,0,2191,257,1,0,0,0,2192,2193,5,206,0,0,2193,2194,5,258,0,0,2194,2195,5,221,0,0,2195,2204,5,186,0,0,2196,2197,5,44,0,0,2197,2198,5,259,0,0,2198,2199,5,221,0,0,2199,2201,5,186,0,0,2200,2202,3,260,130,0,2201,2200,1,0,0,0,2201,2202,1,0,0,0,2202,2204,1,0,0,0,2203,2192,1,0,0,0,2203,2196,1,0,0,0,2204,259,1,0,0,0,2205,2206,5,269,0,0,2206,2207,5,115,0,0,2207,2215,5,187,0,0,2208,2209,5,204,0,0,2209,2210,5,115,0,0,2210,2215,5,187,0,0,2211,2212,5,315,0,0,2212,2213,5,301,0,0,2213,2215,5,259,0,0,2214,2205,1,0,0,0,2214,2208,1,0,0,0,2214,2211,1,0,0,0,2215,261,1,0,0,0,2216,2217,5,189,0,0,2217,2218,3,264,132,0,2218,263,1,0,0,0,2219,2224,3,266,133,0,2220,2221,5,25,0,0,2221,2223,3,266,133,0,2222,2220,1,0,0,0,2223,2226,1,0,0,0,2224,2222,1,0,0,0,2224,2225,1,0,0,0,2225,265,1,0,0,0,2226,2224,1,0,0,0,2227,2228,3,14,7,0,2228,2229,5,51,0,0,2229,2230,3,790,395,0,2230,267,1,0,0,0,2231,2232,5,43,0,0,2232,2233,5,186,0,0,2233,2235,3,270,135,0,2234,2231,1,0,0,0,2234,2235,1,0,0,0,2235,2237,1,0,0,0,2236,2238,3,274,137,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2239,1,0,0,0,2239,2240,5,220,0,0,2240,2241,5,26,0,0,2241,2242,3,276,138,0,2242,2244,5,27,0,0,2243,2245,3,290,145,0,2244,2243,1,0,0,0,2244,2245,1,0,0,0,2245,2246,1,0,0,0,2246,2247,5,101,0,0,2247,2248,3,302,151,0,2248,269,1,0,0,0,2249,2250,5,270,0,0,2250,2251,5,289,0,0,2251,2252,5,195,0,0,2252,2269,5,258,0,0,2253,2254,5,270,0,0,2254,2255,5,219,0,0,2255,2256,5,178,0,0,2256,2269,5,258,0,0,2257,2258,5,270,0,0,2258,2259,5,289,0,0,2259,2260,5,136,0,0,2260,2269,3,272,136,0,2261,2262,5,270,0,0,2262,2263,5,289,0,0,2263,2264,5,178,0,0,2264,2269,3,272,136,0,2265,2266,5,270,0,0,2266,2267,5,289,0,0,2267,2269,3,272,136,0,2268,2249,1,0,0,0,2268,2253,1,0,0,0,2268,2257,1,0,0,0,2268,2261,1,0,0,0,2268,2265,1,0,0,0,2269,271,1,0,0,0,2270,2271,3,312,156,0,2271,273,1,0,0,0,2272,2273,7,12,0,0,2273,275,1,0,0,0,2274,2279,3,278,139,0,2275,2276,5,13,0,0,2276,2278,3,278,139,0,2277,2275,1,0,0,0,2278,2281,1,0,0,0,2279,2277,1,0,0,0,2279,2280,1,0,0,0,2280,277,1,0,0,0,2281,2279,1,0,0,0,2282,2284,3,280,140,0,2283,2282,1,0,0,0,2284,2285,1,0,0,0,2285,2283,1,0,0,0,2285,2286,1,0,0,0,2286,279,1,0,0,0,2287,2289,3,284,142,0,2288,2290,3,282,141,0,2289,2288,1,0,0,0,2289,2290,1,0,0,0,2290,281,1,0,0,0,2291,2293,5,20,0,0,2292,2294,5,28,0,0,2293,2292,1,0,0,0,2293,2294,1,0,0,0,2294,2320,1,0,0,0,2295,2297,5,17,0,0,2296,2298,5,28,0,0,2297,2296,1,0,0,0,2297,2298,1,0,0,0,2298,2320,1,0,0,0,2299,2301,5,28,0,0,2300,2302,5,28,0,0,2301,2300,1,0,0,0,2301,2302,1,0,0,0,2302,2320,1,0,0,0,2303,2305,5,33,0,0,2304,2306,3,854,427,0,2305,2304,1,0,0,0,2305,2306,1,0,0,0,2306,2307,1,0,0,0,2307,2309,5,25,0,0,2308,2310,3,854,427,0,2309,2308,1,0,0,0,2309,2310,1,0,0,0,2310,2311,1,0,0,0,2311,2313,5,34,0,0,2312,2314,5,28,0,0,2313,2312,1,0,0,0,2313,2314,1,0,0,0,2314,2320,1,0,0,0,2315,2316,5,33,0,0,2316,2317,3,854,427,0,2317,2318,5,34,0,0,2318,2320,1,0,0,0,2319,2291,1,0,0,0,2319,2295,1,0,0,0,2319,2299,1,0,0,0,2319,2303,1,0,0,0,2319,2315,1,0,0,0,2320,283,1,0,0,0,2321,2337,3,286,143,0,2322,2337,5,32,0,0,2323,2337,5,35,0,0,2324,2326,5,26,0,0,2325,2327,3,276,138,0,2326,2325,1,0,0,0,2326,2327,1,0,0,0,2327,2328,1,0,0,0,2328,2337,5,27,0,0,2329,2330,5,33,0,0,2330,2331,5,18,0,0,2331,2332,3,276,138,0,2332,2333,5,18,0,0,2333,2334,5,34,0,0,2334,2337,1,0,0,0,2335,2337,3,288,144,0,2336,2321,1,0,0,0,2336,2322,1,0,0,0,2336,2323,1,0,0,0,2336,2324,1,0,0,0,2336,2329,1,0,0,0,2336,2335,1,0,0,0,2337,285,1,0,0,0,2338,2339,3,312,156,0,2339,287,1,0,0,0,2340,2341,5,222,0,0,2341,2342,5,26,0,0,2342,2347,3,276,138,0,2343,2344,5,25,0,0,2344,2346,3,276,138,0,2345,2343,1,0,0,0,2346,2349,1,0,0,0,2347,2345,1,0,0,0,2347,2348,1,0,0,0,2348,2350,1,0,0,0,2349,2347,1,0,0,0,2350,2351,5,27,0,0,2351,289,1,0,0,0,2352,2353,5,275,0,0,2353,2354,3,292,146,0,2354,291,1,0,0,0,2355,2360,3,294,147,0,2356,2357,5,25,0,0,2357,2359,3,294,147,0,2358,2356,1,0,0,0,2359,2362,1,0,0,0,2360,2358,1,0,0,0,2360,2361,1,0,0,0,2361,293,1,0,0,0,2362,2360,1,0,0,0,2363,2364,3,296,148,0,2364,2365,5,2,0,0,2365,2366,5,26,0,0,2366,2367,3,298,149,0,2367,2368,5,27,0,0,2368,295,1,0,0,0,2369,2370,3,312,156,0,2370,297,1,0,0,0,2371,2376,3,300,150,0,2372,2373,5,25,0,0,2373,2375,3,300,150,0,2374,2372,1,0,0,0,2375,2378,1,0,0,0,2376,2374,1,0,0,0,2376,2377,1,0,0,0,2377,299,1,0,0,0,2378,2376,1,0,0,0,2379,2380,3,312,156,0,2380,301,1,0,0,0,2381,2386,3,304,152,0,2382,2383,5,25,0,0,2383,2385,3,304,152,0,2384,2382,1,0,0,0,2385,2388,1,0,0,0,2386,2384,1,0,0,0,2386,2387,1,0,0,0,2387,303,1,0,0,0,2388,2386,1,0,0,0,2389,2390,3,306,153,0,2390,2391,5,51,0,0,2391,2392,3,308,154,0,2392,305,1,0,0,0,2393,2394,3,312,156,0,2394,307,1,0,0,0,2395,2396,3,310,155,0,2396,309,1,0,0,0,2397,2398,3,14,7,0,2398,311,1,0,0,0,2399,2400,3,770,385,0,2400,313,1,0,0,0,2401,2402,5,211,0,0,2402,2403,5,68,0,0,2403,2404,3,230,115,0,2404,315,1,0,0,0,2405,2407,5,53,0,0,2406,2405,1,0,0,0,2406,2407,1,0,0,0,2407,2408,1,0,0,0,2408,2409,3,314,157,0,2409,317,1,0,0,0,2410,2412,5,148,0,0,2411,2413,5,80,0,0,2412,2411,1,0,0,0,2412,2413,1,0,0,0,2413,2414,1,0,0,0,2414,2415,5,68,0,0,2415,2416,3,252,126,0,2416,2419,3,320,160,0,2417,2418,5,315,0,0,2418,2420,3,790,395,0,2419,2417,1,0,0,0,2419,2420,1,0,0,0,2420,319,1,0,0,0,2421,2426,3,322,161,0,2422,2423,5,25,0,0,2423,2425,3,322,161,0,2424,2422,1,0,0,0,2425,2428,1,0,0,0,2426,2424,1,0,0,0,2426,2427,1,0,0,0,2427,321,1,0,0,0,2428,2426,1,0,0,0,2429,2435,3,324,162,0,2430,2435,3,328,164,0,2431,2435,3,330,165,0,2432,2435,3,332,166,0,2433,2435,3,334,167,0,2434,2429,1,0,0,0,2434,2430,1,0,0,0,2434,2431,1,0,0,0,2434,2432,1,0,0,0,2434,2433,1,0,0,0,2435,323,1,0,0,0,2436,2437,3,128,64,0,2437,325,1,0,0,0,2438,2443,3,324,162,0,2439,2440,5,25,0,0,2440,2442,3,324,162,0,2441,2439,1,0,0,0,2442,2445,1,0,0,0,2443,2441,1,0,0,0,2443,2444,1,0,0,0,2444,327,1,0,0,0,2445,2443,1,0,0,0,2446,2447,5,257,0,0,2447,2448,5,26,0,0,2448,2449,3,326,163,0,2449,2450,5,27,0,0,2450,329,1,0,0,0,2451,2452,5,89,0,0,2452,2453,5,26,0,0,2453,2454,3,326,163,0,2454,2455,5,27,0,0,2455,331,1,0,0,0,2456,2457,5,149,0,0,2457,2458,5,268,0,0,2458,2459,5,26,0,0,2459,2460,3,320,160,0,2460,2461,5,27,0,0,2461,333,1,0,0,0,2462,2463,5,153,0,0,2463,2464,5,26,0,0,2464,2465,3,14,7,0,2465,2466,5,25,0,0,2466,2467,3,14,7,0,2467,2468,5,25,0,0,2468,2469,3,14,7,0,2469,2470,5,25,0,0,2470,2471,3,14,7,0,2471,2472,5,27,0,0,2472,335,1,0,0,0,2473,2474,3,814,407,0,2474,2475,5,20,0,0,2475,2483,1,0,0,0,2476,2480,3,14,7,0,2477,2478,5,51,0,0,2478,2481,3,792,396,0,2479,2481,3,810,405,0,2480,2477,1,0,0,0,2480,2479,1,0,0,0,2480,2481,1,0,0,0,2481,2483,1,0,0,0,2482,2473,1,0,0,0,2482,2476,1,0,0,0,2483,337,1,0,0,0,2484,2486,5,49,0,0,2485,2484,1,0,0,0,2485,2486,1,0,0,0,2486,2487,1,0,0,0,2487,2498,3,344,172,0,2488,2490,3,358,179,0,2489,2491,5,49,0,0,2490,2489,1,0,0,0,2490,2491,1,0,0,0,2491,2492,1,0,0,0,2492,2494,3,344,172,0,2493,2495,3,360,180,0,2494,2493,1,0,0,0,2494,2495,1,0,0,0,2495,2497,1,0,0,0,2496,2488,1,0,0,0,2497,2500,1,0,0,0,2498,2496,1,0,0,0,2498,2499,1,0,0,0,2499,339,1,0,0,0,2500,2498,1,0,0,0,2501,2504,3,120,60,0,2502,2503,5,51,0,0,2503,2505,3,790,395,0,2504,2502,1,0,0,0,2504,2505,1,0,0,0,2505,341,1,0,0,0,2506,2515,3,340,170,0,2507,2508,5,26,0,0,2508,2510,3,130,65,0,2509,2511,5,25,0,0,2510,2509,1,0,0,0,2510,2511,1,0,0,0,2511,2512,1,0,0,0,2512,2513,5,27,0,0,2513,2515,1,0,0,0,2514,2506,1,0,0,0,2514,2507,1,0,0,0,2515,343,1,0,0,0,2516,2526,3,346,173,0,2517,2524,5,137,0,0,2518,2520,7,13,0,0,2519,2518,1,0,0,0,2519,2520,1,0,0,0,2520,2521,1,0,0,0,2521,2522,5,68,0,0,2522,2525,3,342,171,0,2523,2525,5,78,0,0,2524,2519,1,0,0,0,2524,2523,1,0,0,0,2525,2527,1,0,0,0,2526,2517,1,0,0,0,2526,2527,1,0,0,0,2527,345,1,0,0,0,2528,2530,3,348,174,0,2529,2531,3,256,128,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2540,1,0,0,0,2532,2533,5,51,0,0,2533,2536,3,790,395,0,2534,2536,3,810,405,0,2535,2532,1,0,0,0,2535,2534,1,0,0,0,2536,2538,1,0,0,0,2537,2539,3,114,57,0,2538,2537,1,0,0,0,2538,2539,1,0,0,0,2539,2541,1,0,0,0,2540,2535,1,0,0,0,2540,2541,1,0,0,0,2541,2544,1,0,0,0,2542,2545,3,350,175,0,2543,2545,3,352,176,0,2544,2542,1,0,0,0,2544,2543,1,0,0,0,2544,2545,1,0,0,0,2545,347,1,0,0,0,2546,2556,3,632,316,0,2547,2548,5,26,0,0,2548,2549,3,232,116,0,2549,2550,5,27,0,0,2550,2556,1,0,0,0,2551,2552,5,26,0,0,2552,2553,3,370,185,0,2553,2554,5,27,0,0,2554,2556,1,0,0,0,2555,2546,1,0,0,0,2555,2547,1,0,0,0,2555,2551,1,0,0,0,2556,349,1,0,0,0,2557,2558,5,260,0,0,2558,2559,3,14,7,0,2559,351,1,0,0,0,2560,2561,5,282,0,0,2561,2562,3,354,177,0,2562,2563,5,26,0,0,2563,2564,3,14,7,0,2564,2566,5,27,0,0,2565,2567,3,356,178,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,353,1,0,0,0,2568,2569,7,14,0,0,2569,355,1,0,0,0,2570,2571,5,241,0,0,2571,2572,5,26,0,0,2572,2573,3,14,7,0,2573,2574,5,27,0,0,2574,357,1,0,0,0,2575,2600,5,25,0,0,2576,2578,5,194,0,0,2577,2576,1,0,0,0,2577,2578,1,0,0,0,2578,2596,1,0,0,0,2579,2581,5,179,0,0,2580,2582,7,15,0,0,2581,2580,1,0,0,0,2581,2582,1,0,0,0,2582,2590,1,0,0,0,2583,2585,5,254,0,0,2584,2586,7,15,0,0,2585,2584,1,0,0,0,2585,2586,1,0,0,0,2586,2590,1,0,0,0,2587,2590,5,126,0,0,2588,2590,5,143,0,0,2589,2579,1,0,0,0,2589,2583,1,0,0,0,2589,2587,1,0,0,0,2589,2588,1,0,0,0,2589,2590,1,0,0,0,2590,2592,1,0,0,0,2591,2593,5,213,0,0,2592,2591,1,0,0,0,2592,2593,1,0,0,0,2593,2597,1,0,0,0,2594,2597,5,166,0,0,2595,2597,5,88,0,0,2596,2589,1,0,0,0,2596,2594,1,0,0,0,2596,2595,1,0,0,0,2597,2598,1,0,0,0,2598,2600,5,173,0,0,2599,2575,1,0,0,0,2599,2577,1,0,0,0,2600,359,1,0,0,0,2601,2602,5,205,0,0,2602,2606,3,14,7,0,2603,2604,5,306,0,0,2604,2606,3,118,59,0,2605,2601,1,0,0,0,2605,2603,1,0,0,0,2606,361,1,0,0,0,2607,2617,5,251,0,0,2608,2618,5,20,0,0,2609,2614,3,790,395,0,2610,2611,5,25,0,0,2611,2613,3,790,395,0,2612,2610,1,0,0,0,2613,2616,1,0,0,0,2614,2612,1,0,0,0,2614,2615,1,0,0,0,2615,2618,1,0,0,0,2616,2614,1,0,0,0,2617,2608,1,0,0,0,2617,2609,1,0,0,0,2618,363,1,0,0,0,2619,2632,5,167,0,0,2620,2621,5,167,0,0,2621,2622,5,210,0,0,2622,2632,5,40,0,0,2623,2624,5,167,0,0,2624,2625,5,210,0,0,2625,2632,5,252,0,0,2626,2627,5,167,0,0,2627,2628,5,210,0,0,2628,2632,5,155,0,0,2629,2632,5,303,0,0,2630,2632,5,242,0,0,2631,2619,1,0,0,0,2631,2620,1,0,0,0,2631,2623,1,0,0,0,2631,2626,1,0,0,0,2631,2629,1,0,0,0,2631,2630,1,0,0,0,2632,2633,1,0,0,0,2633,2634,5,170,0,0,2634,2635,3,648,324,0,2635,2637,3,368,184,0,2636,2638,3,362,181,0,2637,2636,1,0,0,0,2637,2638,1,0,0,0,2638,365,1,0,0,0,2639,2651,5,167,0,0,2640,2641,5,167,0,0,2641,2642,5,210,0,0,2642,2651,5,40,0,0,2643,2644,5,167,0,0,2644,2645,5,210,0,0,2645,2651,5,252,0,0,2646,2647,5,167,0,0,2647,2648,5,210,0,0,2648,2651,5,155,0,0,2649,2651,5,242,0,0,2650,2639,1,0,0,0,2650,2640,1,0,0,0,2650,2643,1,0,0,0,2650,2646,1,0,0,0,2650,2649,1,0,0,0,2651,2652,1,0,0,0,2652,2653,5,170,0,0,2653,2654,3,648,324,0,2654,2655,3,368,184,0,2655,367,1,0,0,0,2656,2658,3,114,57,0,2657,2656,1,0,0,0,2657,2658,1,0,0,0,2658,2659,1,0,0,0,2659,2663,3,372,186,0,2660,2661,5,98,0,0,2661,2663,5,308,0,0,2662,2657,1,0,0,0,2662,2660,1,0,0,0,2663,369,1,0,0,0,2664,2665,5,308,0,0,2665,2666,3,374,187,0,2666,371,1,0,0,0,2667,2670,3,370,185,0,2668,2670,3,232,116,0,2669,2667,1,0,0,0,2669,2668,1,0,0,0,2670,373,1,0,0,0,2671,2676,3,376,188,0,2672,2673,5,25,0,0,2673,2675,3,376,188,0,2674,2672,1,0,0,0,2675,2678,1,0,0,0,2676,2674,1,0,0,0,2676,2677,1,0,0,0,2677,375,1,0,0,0,2678,2676,1,0,0,0,2679,2680,5,26,0,0,2680,2681,3,112,56,0,2681,2682,5,27,0,0,2682,377,1,0,0,0,2683,2686,3,112,56,0,2684,2686,3,232,116,0,2685,2683,1,0,0,0,2685,2684,1,0,0,0,2686,379,1,0,0,0,2687,2690,5,87,0,0,2688,2689,5,210,0,0,2689,2691,5,242,0,0,2690,2688,1,0,0,0,2690,2691,1,0,0,0,2691,2692,1,0,0,0,2692,2693,5,131,0,0,2693,2694,5,94,0,0,2694,2698,5,271,0,0,2695,2696,5,154,0,0,2696,2697,5,197,0,0,2697,2699,5,128,0,0,2698,2695,1,0,0,0,2698,2699,1,0,0,0,2699,2700,1,0,0,0,2700,2701,3,642,321,0,2701,2702,3,456,228,0,2702,381,1,0,0,0,2703,2704,5,45,0,0,2704,2705,5,131,0,0,2705,2706,5,94,0,0,2706,2707,5,271,0,0,2707,2708,3,642,321,0,2708,2713,3,384,192,0,2709,2710,5,25,0,0,2710,2712,3,384,192,0,2711,2709,1,0,0,0,2712,2715,1,0,0,0,2713,2711,1,0,0,0,2713,2714,1,0,0,0,2714,383,1,0,0,0,2715,2713,1,0,0,0,2716,2720,3,488,244,0,2717,2720,3,490,245,0,2718,2720,3,492,246,0,2719,2716,1,0,0,0,2719,2717,1,0,0,0,2719,2718,1,0,0,0,2720,385,1,0,0,0,2721,2722,5,112,0,0,2722,2723,5,131,0,0,2723,2724,5,94,0,0,2724,2727,5,271,0,0,2725,2726,5,154,0,0,2726,2728,5,128,0,0,2727,2725,1,0,0,0,2727,2728,1,0,0,0,2728,2729,1,0,0,0,2729,2730,3,642,321,0,2730,387,1,0,0,0,2731,2732,5,87,0,0,2732,2736,5,310,0,0,2733,2734,5,154,0,0,2734,2735,5,197,0,0,2735,2737,5,128,0,0,2736,2733,1,0,0,0,2736,2737,1,0,0,0,2737,2738,1,0,0,0,2738,2740,3,642,321,0,2739,2741,3,396,198,0,2740,2739,1,0,0,0,2740,2741,1,0,0,0,2741,2742,1,0,0,0,2742,2743,5,51,0,0,2743,2744,3,232,116,0,2744,389,1,0,0,0,2745,2746,5,112,0,0,2746,2749,5,310,0,0,2747,2748,5,154,0,0,2748,2750,5,128,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,2751,1,0,0,0,2751,2752,3,642,321,0,2752,391,1,0,0,0,2753,2754,5,303,0,0,2754,2755,5,201,0,0,2755,2756,3,642,321,0,2756,2757,5,26,0,0,2757,2758,5,295,0,0,2758,2759,3,416,208,0,2759,2761,5,27,0,0,2760,2762,3,396,198,0,2761,2760,1,0,0,0,2761,2762,1,0,0,0,2762,393,1,0,0,0,2763,2764,5,87,0,0,2764,2768,5,201,0,0,2765,2766,5,154,0,0,2766,2767,5,197,0,0,2767,2769,5,128,0,0,2768,2765,1,0,0,0,2768,2769,1,0,0,0,2769,2770,1,0,0,0,2770,2771,3,642,321,0,2771,2772,5,26,0,0,2772,2773,5,295,0,0,2773,2774,3,416,208,0,2774,2776,5,27,0,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,395,1,0,0,0,2778,2779,5,315,0,0,2779,2780,3,414,207,0,2780,397,1,0,0,0,2781,2782,5,45,0,0,2782,2783,5,201,0,0,2783,2784,3,642,321,0,2784,2785,5,26,0,0,2785,2786,5,295,0,0,2786,2787,3,416,208,0,2787,2788,5,27,0,0,2788,2789,3,400,200,0,2789,399,1,0,0,0,2790,2791,5,267,0,0,2791,2792,3,414,207,0,2792,401,1,0,0,0,2793,2794,5,112,0,0,2794,2797,5,201,0,0,2795,2796,5,154,0,0,2796,2798,5,128,0,0,2797,2795,1,0,0,0,2797,2798,1,0,0,0,2798,2799,1,0,0,0,2799,2800,3,642,321,0,2800,2801,5,26,0,0,2801,2802,5,295,0,0,2802,2803,3,416,208,0,2803,2805,5,27,0,0,2804,2806,3,404,202,0,2805,2804,1,0,0,0,2805,2806,1,0,0,0,2806,403,1,0,0,0,2807,2808,5,315,0,0,2808,2809,3,414,207,0,2809,405,1,0,0,0,2810,2815,3,818,409,0,2811,2815,3,144,72,0,2812,2815,5,319,0,0,2813,2815,3,850,425,0,2814,2810,1,0,0,0,2814,2811,1,0,0,0,2814,2812,1,0,0,0,2814,2813,1,0,0,0,2815,407,1,0,0,0,2816,2817,3,792,396,0,2817,2818,5,2,0,0,2818,2819,3,406,203,0,2819,409,1,0,0,0,2820,2821,3,792,396,0,2821,411,1,0,0,0,2822,2825,3,408,204,0,2823,2825,3,410,205,0,2824,2822,1,0,0,0,2824,2823,1,0,0,0,2825,413,1,0,0,0,2826,2839,3,412,206,0,2827,2828,5,26,0,0,2828,2833,3,412,206,0,2829,2830,5,25,0,0,2830,2832,3,412,206,0,2831,2829,1,0,0,0,2832,2835,1,0,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2836,1,0,0,0,2835,2833,1,0,0,0,2836,2837,5,27,0,0,2837,2839,1,0,0,0,2838,2826,1,0,0,0,2838,2827,1,0,0,0,2839,415,1,0,0,0,2840,2841,3,792,396,0,2841,417,1,0,0,0,2842,2845,5,87,0,0,2843,2844,5,210,0,0,2844,2846,5,242,0,0,2845,2843,1,0,0,0,2845,2846,1,0,0,0,2846,2855,1,0,0,0,2847,2856,5,280,0,0,2848,2856,5,283,0,0,2849,2850,5,131,0,0,2850,2856,5,280,0,0,2851,2852,5,285,0,0,2852,2856,5,280,0,0,2853,2854,5,286,0,0,2854,2856,5,280,0,0,2855,2847,1,0,0,0,2855,2848,1,0,0,0,2855,2849,1,0,0,0,2855,2851,1,0,0,0,2855,2853,1,0,0,0,2856,2860,1,0,0,0,2857,2858,5,154,0,0,2858,2859,5,197,0,0,2859,2861,5,128,0,0,2860,2857,1,0,0,0,2860,2861,1,0,0,0,2861,2862,1,0,0,0,2862,2863,3,646,323,0,2863,2864,5,26,0,0,2864,2869,3,420,210,0,2865,2866,5,25,0,0,2866,2868,3,420,210,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2873,1,0,0,0,2871,2869,1,0,0,0,2872,2874,5,25,0,0,2873,2872,1,0,0,0,2873,2874,1,0,0,0,2874,2875,1,0,0,0,2875,2877,5,27,0,0,2876,2878,3,452,226,0,2877,2876,1,0,0,0,2877,2878,1,0,0,0,2878,2880,1,0,0,0,2879,2881,3,454,227,0,2880,2879,1,0,0,0,2880,2881,1,0,0,0,2881,2883,1,0,0,0,2882,2884,3,456,228,0,2883,2882,1,0,0,0,2883,2884,1,0,0,0,2884,2886,1,0,0,0,2885,2887,3,458,229,0,2886,2885,1,0,0,0,2886,2887,1,0,0,0,2887,2889,1,0,0,0,2888,2890,3,462,231,0,2889,2888,1,0,0,0,2889,2890,1,0,0,0,2890,419,1,0,0,0,2891,2898,3,510,255,0,2892,2898,3,518,259,0,2893,2898,3,520,260,0,2894,2898,3,550,275,0,2895,2898,3,536,268,0,2896,2898,3,794,397,0,2897,2891,1,0,0,0,2897,2892,1,0,0,0,2897,2893,1,0,0,0,2897,2894,1,0,0,0,2897,2895,1,0,0,0,2897,2896,1,0,0,0,2898,421,1,0,0,0,2899,2900,5,87,0,0,2900,2902,3,442,221,0,2901,2903,3,428,214,0,2902,2901,1,0,0,0,2902,2903,1,0,0,0,2903,2904,1,0,0,0,2904,2905,5,315,0,0,2905,2906,5,26,0,0,2906,2907,3,444,222,0,2907,2908,5,27,0,0,2908,423,1,0,0,0,2909,2910,5,45,0,0,2910,2913,3,442,221,0,2911,2914,3,434,217,0,2912,2914,3,438,219,0,2913,2911,1,0,0,0,2913,2912,1,0,0,0,2914,425,1,0,0,0,2915,2916,5,112,0,0,2916,2917,3,442,221,0,2917,427,1,0,0,0,2918,2921,5,95,0,0,2919,2921,3,430,215,0,2920,2918,1,0,0,0,2920,2919,1,0,0,0,2921,429,1,0,0,0,2922,2923,5,26,0,0,2923,2924,3,432,216,0,2924,2925,5,27,0,0,2925,431,1,0,0,0,2926,2927,5,280,0,0,2927,2933,3,802,401,0,2928,2929,5,25,0,0,2929,2930,5,280,0,0,2930,2932,3,802,401,0,2931,2928,1,0,0,0,2932,2935,1,0,0,0,2933,2931,1,0,0,0,2933,2934,1,0,0,0,2934,433,1,0,0,0,2935,2933,1,0,0,0,2936,2941,3,436,218,0,2937,2938,5,25,0,0,2938,2940,3,436,218,0,2939,2937,1,0,0,0,2940,2943,1,0,0,0,2941,2939,1,0,0,0,2941,2942,1,0,0,0,2942,435,1,0,0,0,2943,2941,1,0,0,0,2944,2947,3,490,245,0,2945,2947,3,492,246,0,2946,2944,1,0,0,0,2946,2945,1,0,0,0,2947,437,1,0,0,0,2948,2953,3,440,220,0,2949,2950,5,25,0,0,2950,2952,3,440,220,0,2951,2949,1,0,0,0,2952,2955,1,0,0,0,2953,2951,1,0,0,0,2953,2954,1,0,0,0,2954,439,1,0,0,0,2955,2953,1,0,0,0,2956,2957,5,42,0,0,2957,2967,5,95,0,0,2958,2959,5,112,0,0,2959,2967,5,95,0,0,2960,2961,5,42,0,0,2961,2962,5,280,0,0,2962,2967,3,802,401,0,2963,2964,5,112,0,0,2964,2965,5,280,0,0,2965,2967,3,802,401,0,2966,2956,1,0,0,0,2966,2958,1,0,0,0,2966,2960,1,0,0,0,2966,2963,1,0,0,0,2967,441,1,0,0,0,2968,2969,5,61,0,0,2969,2970,5,62,0,0,2970,2971,3,642,321,0,2971,443,1,0,0,0,2972,2977,3,446,223,0,2973,2974,5,25,0,0,2974,2976,3,446,223,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,445,1,0,0,0,2979,2977,1,0,0,0,2980,2981,3,790,395,0,2981,2982,5,2,0,0,2982,2983,3,548,274,0,2983,447,1,0,0,0,2984,2985,5,61,0,0,2985,2987,3,642,321,0,2986,2988,5,160,0,0,2987,2986,1,0,0,0,2987,2988,1,0,0,0,2988,449,1,0,0,0,2989,2990,5,247,0,0,2990,2993,3,642,321,0,2991,2992,5,56,0,0,2992,2994,5,319,0,0,2993,2991,1,0,0,0,2993,2994,1,0,0,0,2994,451,1,0,0,0,2995,2996,5,163,0,0,2996,2997,5,26,0,0,2997,3002,3,644,322,0,2998,2999,5,25,0,0,2999,3001,3,644,322,0,3e3,2998,1,0,0,0,3001,3004,1,0,0,0,3002,3e3,1,0,0,0,3002,3003,1,0,0,0,3003,3005,1,0,0,0,3004,3002,1,0,0,0,3005,3006,5,27,0,0,3006,453,1,0,0,0,3007,3008,5,216,0,0,3008,3009,5,68,0,0,3009,3010,5,151,0,0,3010,3011,3,114,57,0,3011,455,1,0,0,0,3012,3013,5,315,0,0,3013,3014,5,26,0,0,3014,3019,3,460,230,0,3015,3016,5,25,0,0,3016,3018,3,460,230,0,3017,3015,1,0,0,0,3018,3021,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,3022,1,0,0,0,3021,3019,1,0,0,0,3022,3023,5,27,0,0,3023,457,1,0,0,0,3024,3025,5,283,0,0,3025,3026,3,644,322,0,3026,459,1,0,0,0,3027,3028,3,790,395,0,3028,3029,5,2,0,0,3029,3030,3,548,274,0,3030,461,1,0,0,0,3031,3032,5,51,0,0,3032,3033,3,372,186,0,3033,463,1,0,0,0,3034,3035,5,45,0,0,3035,3036,5,280,0,0,3036,3037,3,646,323,0,3037,3042,3,466,233,0,3038,3039,5,25,0,0,3039,3041,3,466,233,0,3040,3038,1,0,0,0,3041,3044,1,0,0,0,3042,3040,1,0,0,0,3042,3043,1,0,0,0,3043,465,1,0,0,0,3044,3042,1,0,0,0,3045,3063,3,476,238,0,3046,3063,3,478,239,0,3047,3063,3,480,240,0,3048,3063,3,484,242,0,3049,3063,3,486,243,0,3050,3063,3,488,244,0,3051,3063,3,490,245,0,3052,3063,3,492,246,0,3053,3063,3,494,247,0,3054,3063,3,496,248,0,3055,3063,3,498,249,0,3056,3063,3,502,251,0,3057,3063,3,504,252,0,3058,3063,3,506,253,0,3059,3063,3,500,250,0,3060,3063,3,508,254,0,3061,3063,3,482,241,0,3062,3045,1,0,0,0,3062,3046,1,0,0,0,3062,3047,1,0,0,0,3062,3048,1,0,0,0,3062,3049,1,0,0,0,3062,3050,1,0,0,0,3062,3051,1,0,0,0,3062,3052,1,0,0,0,3062,3053,1,0,0,0,3062,3054,1,0,0,0,3062,3055,1,0,0,0,3062,3056,1,0,0,0,3062,3057,1,0,0,0,3062,3058,1,0,0,0,3062,3059,1,0,0,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3063,467,1,0,0,0,3064,3065,5,45,0,0,3065,3066,5,131,0,0,3066,3067,5,280,0,0,3067,3068,3,646,323,0,3068,3073,3,470,235,0,3069,3070,5,25,0,0,3070,3072,3,470,235,0,3071,3069,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,469,1,0,0,0,3075,3073,1,0,0,0,3076,3082,3,476,238,0,3077,3082,3,478,239,0,3078,3082,3,488,244,0,3079,3082,3,490,245,0,3080,3082,3,492,246,0,3081,3076,1,0,0,0,3081,3077,1,0,0,0,3081,3078,1,0,0,0,3081,3079,1,0,0,0,3081,3080,1,0,0,0,3082,471,1,0,0,0,3083,3084,5,45,0,0,3084,3085,5,283,0,0,3085,3086,3,642,321,0,3086,3091,3,474,237,0,3087,3088,5,25,0,0,3088,3090,3,474,237,0,3089,3087,1,0,0,0,3090,3093,1,0,0,0,3091,3089,1,0,0,0,3091,3092,1,0,0,0,3092,473,1,0,0,0,3093,3091,1,0,0,0,3094,3097,3,476,238,0,3095,3097,3,478,239,0,3096,3094,1,0,0,0,3096,3095,1,0,0,0,3097,475,1,0,0,0,3098,3100,5,42,0,0,3099,3101,5,77,0,0,3100,3099,1,0,0,0,3100,3101,1,0,0,0,3101,3102,1,0,0,0,3102,3103,3,510,255,0,3103,477,1,0,0,0,3104,3106,5,112,0,0,3105,3107,5,77,0,0,3106,3105,1,0,0,0,3106,3107,1,0,0,0,3107,3108,1,0,0,0,3108,3109,3,790,395,0,3109,479,1,0,0,0,3110,3111,5,45,0,0,3111,3112,5,77,0,0,3112,3113,3,790,395,0,3113,3114,5,267,0,0,3114,3115,3,512,256,0,3115,481,1,0,0,0,3116,3117,5,45,0,0,3117,3118,5,77,0,0,3118,3119,3,790,395,0,3119,3120,5,112,0,0,3120,3121,5,197,0,0,3121,3122,5,199,0,0,3122,483,1,0,0,0,3123,3124,5,42,0,0,3124,3125,3,550,275,0,3125,485,1,0,0,0,3126,3127,5,45,0,0,3127,3128,5,134,0,0,3128,3129,3,790,395,0,3129,3130,5,267,0,0,3130,3131,3,790,395,0,3131,3132,3,556,278,0,3132,487,1,0,0,0,3133,3134,5,267,0,0,3134,3135,3,790,395,0,3135,3136,3,548,274,0,3136,489,1,0,0,0,3137,3138,5,267,0,0,3138,3139,5,26,0,0,3139,3144,3,546,273,0,3140,3141,5,25,0,0,3141,3143,3,546,273,0,3142,3140,1,0,0,0,3143,3146,1,0,0,0,3144,3142,1,0,0,0,3144,3145,1,0,0,0,3145,3147,1,0,0,0,3146,3144,1,0,0,0,3147,3148,5,27,0,0,3148,491,1,0,0,0,3149,3150,5,244,0,0,3150,3151,5,26,0,0,3151,3156,3,790,395,0,3152,3153,5,25,0,0,3153,3155,3,790,395,0,3154,3152,1,0,0,0,3155,3158,1,0,0,0,3156,3154,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3156,1,0,0,0,3159,3160,5,27,0,0,3160,493,1,0,0,0,3161,3162,5,42,0,0,3162,3163,3,520,260,0,3163,495,1,0,0,0,3164,3165,5,112,0,0,3165,3166,5,161,0,0,3166,3167,3,790,395,0,3167,497,1,0,0,0,3168,3169,5,240,0,0,3169,3170,5,289,0,0,3170,3171,3,802,401,0,3171,499,1,0,0,0,3172,3173,5,240,0,0,3173,3174,5,161,0,0,3174,3175,3,790,395,0,3175,3176,5,289,0,0,3176,3177,3,790,395,0,3177,501,1,0,0,0,3178,3179,5,42,0,0,3179,3180,3,536,268,0,3180,503,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,73,0,0,3183,3184,3,790,395,0,3184,3185,3,544,272,0,3185,505,1,0,0,0,3186,3187,5,112,0,0,3187,3188,5,73,0,0,3188,3189,3,790,395,0,3189,507,1,0,0,0,3190,3191,5,45,0,0,3191,3192,5,161,0,0,3192,3193,3,790,395,0,3193,3194,3,562,281,0,3194,509,1,0,0,0,3195,3196,3,794,397,0,3196,3198,3,204,102,0,3197,3199,3,512,256,0,3198,3197,1,0,0,0,3198,3199,1,0,0,0,3199,3200,1,0,0,0,3200,3201,3,514,257,0,3201,511,1,0,0,0,3202,3203,5,134,0,0,3203,3204,3,790,395,0,3204,513,1,0,0,0,3205,3207,5,197,0,0,3206,3205,1,0,0,0,3206,3207,1,0,0,0,3207,3208,1,0,0,0,3208,3210,5,199,0,0,3209,3206,1,0,0,0,3209,3210,1,0,0,0,3210,3213,1,0,0,0,3211,3212,5,98,0,0,3212,3214,3,14,7,0,3213,3211,1,0,0,0,3213,3214,1,0,0,0,3214,515,1,0,0,0,3215,3217,3,790,395,0,3216,3218,7,9,0,0,3217,3216,1,0,0,0,3217,3218,1,0,0,0,3218,517,1,0,0,0,3219,3220,5,228,0,0,3220,3221,5,177,0,0,3221,3222,5,26,0,0,3222,3227,3,790,395,0,3223,3224,5,25,0,0,3224,3226,3,790,395,0,3225,3223,1,0,0,0,3226,3229,1,0,0,0,3227,3225,1,0,0,0,3227,3228,1,0,0,0,3228,3230,1,0,0,0,3229,3227,1,0,0,0,3230,3231,5,27,0,0,3231,3259,1,0,0,0,3232,3233,5,216,0,0,3233,3234,5,68,0,0,3234,3235,5,26,0,0,3235,3240,3,790,395,0,3236,3237,5,25,0,0,3237,3239,3,790,395,0,3238,3236,1,0,0,0,3239,3242,1,0,0,0,3240,3238,1,0,0,0,3240,3241,1,0,0,0,3241,3243,1,0,0,0,3242,3240,1,0,0,0,3243,3244,5,27,0,0,3244,3259,1,0,0,0,3245,3246,5,211,0,0,3246,3247,5,68,0,0,3247,3248,5,26,0,0,3248,3253,3,516,258,0,3249,3250,5,25,0,0,3250,3252,3,516,258,0,3251,3249,1,0,0,0,3252,3255,1,0,0,0,3253,3251,1,0,0,0,3253,3254,1,0,0,0,3254,3256,1,0,0,0,3255,3253,1,0,0,0,3256,3257,5,27,0,0,3257,3259,1,0,0,0,3258,3219,1,0,0,0,3258,3232,1,0,0,0,3258,3245,1,0,0,0,3259,519,1,0,0,0,3260,3261,5,161,0,0,3261,3262,3,790,395,0,3262,3263,3,522,261,0,3263,3264,5,205,0,0,3264,3265,5,26,0,0,3265,3270,3,794,397,0,3266,3267,5,25,0,0,3267,3269,3,794,397,0,3268,3266,1,0,0,0,3269,3272,1,0,0,0,3270,3268,1,0,0,0,3270,3271,1,0,0,0,3271,3273,1,0,0,0,3272,3270,1,0,0,0,3273,3286,5,27,0,0,3274,3275,5,86,0,0,3275,3276,5,26,0,0,3276,3281,3,794,397,0,3277,3278,5,25,0,0,3278,3280,3,794,397,0,3279,3277,1,0,0,0,3280,3283,1,0,0,0,3281,3279,1,0,0,0,3281,3282,1,0,0,0,3282,3284,1,0,0,0,3283,3281,1,0,0,0,3284,3285,5,27,0,0,3285,3287,1,0,0,0,3286,3274,1,0,0,0,3286,3287,1,0,0,0,3287,3289,1,0,0,0,3288,3290,3,530,265,0,3289,3288,1,0,0,0,3289,3290,1,0,0,0,3290,521,1,0,0,0,3291,3294,3,524,262,0,3292,3294,3,526,263,0,3293,3291,1,0,0,0,3293,3292,1,0,0,0,3294,3297,1,0,0,0,3295,3296,5,306,0,0,3296,3298,3,528,264,0,3297,3295,1,0,0,0,3297,3298,1,0,0,0,3298,523,1,0,0,0,3299,3301,5,146,0,0,3300,3302,5,299,0,0,3301,3300,1,0,0,0,3301,3302,1,0,0,0,3302,3304,1,0,0,0,3303,3305,7,16,0,0,3304,3303,1,0,0,0,3304,3305,1,0,0,0,3305,525,1,0,0,0,3306,3307,5,184,0,0,3307,527,1,0,0,0,3308,3309,3,790,395,0,3309,529,1,0,0,0,3310,3311,5,315,0,0,3311,3312,5,26,0,0,3312,3317,3,532,266,0,3313,3314,5,25,0,0,3314,3316,3,532,266,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3321,1,0,0,0,3319,3317,1,0,0,0,3320,3322,5,25,0,0,3321,3320,1,0,0,0,3321,3322,1,0,0,0,3322,3323,1,0,0,0,3323,3324,5,27,0,0,3324,531,1,0,0,0,3325,3326,3,790,395,0,3326,3327,5,2,0,0,3327,3328,3,534,267,0,3328,533,1,0,0,0,3329,3334,3,818,409,0,3330,3334,5,319,0,0,3331,3334,3,854,427,0,3332,3334,3,850,425,0,3333,3329,1,0,0,0,3333,3330,1,0,0,0,3333,3331,1,0,0,0,3333,3332,1,0,0,0,3334,535,1,0,0,0,3335,3336,5,73,0,0,3336,3337,3,790,395,0,3337,3338,5,315,0,0,3338,3339,5,26,0,0,3339,3340,3,538,269,0,3340,3341,5,27,0,0,3341,537,1,0,0,0,3342,3347,3,540,270,0,3343,3344,5,25,0,0,3344,3346,3,540,270,0,3345,3343,1,0,0,0,3346,3349,1,0,0,0,3347,3345,1,0,0,0,3347,3348,1,0,0,0,3348,539,1,0,0,0,3349,3347,1,0,0,0,3350,3351,3,790,395,0,3351,3352,5,2,0,0,3352,3353,3,542,271,0,3353,541,1,0,0,0,3354,3355,3,14,7,0,3355,543,1,0,0,0,3356,3363,5,108,0,0,3357,3358,5,267,0,0,3358,3359,5,26,0,0,3359,3360,3,538,269,0,3360,3361,5,27,0,0,3361,3363,1,0,0,0,3362,3356,1,0,0,0,3362,3357,1,0,0,0,3363,545,1,0,0,0,3364,3365,3,790,395,0,3365,3366,5,2,0,0,3366,3367,3,548,274,0,3367,547,1,0,0,0,3368,3381,3,772,386,0,3369,3381,5,319,0,0,3370,3381,3,854,427,0,3371,3381,3,558,279,0,3372,3373,3,14,7,0,3373,3374,5,205,0,0,3374,3377,3,790,395,0,3375,3376,5,51,0,0,3376,3378,7,17,0,0,3377,3375,1,0,0,0,3377,3378,1,0,0,0,3378,3381,1,0,0,0,3379,3381,3,850,425,0,3380,3368,1,0,0,0,3380,3369,1,0,0,0,3380,3370,1,0,0,0,3380,3371,1,0,0,0,3380,3372,1,0,0,0,3380,3379,1,0,0,0,3381,549,1,0,0,0,3382,3383,5,134,0,0,3383,3384,3,790,395,0,3384,3385,3,552,276,0,3385,551,1,0,0,0,3386,3395,5,26,0,0,3387,3392,3,554,277,0,3388,3389,5,25,0,0,3389,3391,3,554,277,0,3390,3388,1,0,0,0,3391,3394,1,0,0,0,3392,3390,1,0,0,0,3392,3393,1,0,0,0,3393,3396,1,0,0,0,3394,3392,1,0,0,0,3395,3387,1,0,0,0,3395,3396,1,0,0,0,3396,3397,1,0,0,0,3397,3398,5,27,0,0,3398,553,1,0,0,0,3399,3400,3,790,395,0,3400,3401,5,2,0,0,3401,3402,3,556,278,0,3402,555,1,0,0,0,3403,3406,5,319,0,0,3404,3406,3,854,427,0,3405,3403,1,0,0,0,3405,3404,1,0,0,0,3406,557,1,0,0,0,3407,3408,5,26,0,0,3408,3413,3,560,280,0,3409,3410,5,25,0,0,3410,3412,3,560,280,0,3411,3409,1,0,0,0,3412,3415,1,0,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3416,1,0,0,0,3415,3413,1,0,0,0,3416,3417,5,27,0,0,3417,3420,1,0,0,0,3418,3420,3,560,280,0,3419,3407,1,0,0,0,3419,3418,1,0,0,0,3420,559,1,0,0,0,3421,3422,5,26,0,0,3422,3427,3,142,71,0,3423,3424,5,25,0,0,3424,3426,3,142,71,0,3425,3423,1,0,0,0,3426,3429,1,0,0,0,3427,3425,1,0,0,0,3427,3428,1,0,0,0,3428,3430,1,0,0,0,3429,3427,1,0,0,0,3430,3431,5,27,0,0,3431,561,1,0,0,0,3432,3436,3,488,244,0,3433,3436,3,490,245,0,3434,3436,3,492,246,0,3435,3432,1,0,0,0,3435,3433,1,0,0,0,3435,3434,1,0,0,0,3436,563,1,0,0,0,3437,3442,5,112,0,0,3438,3443,5,280,0,0,3439,3443,5,283,0,0,3440,3441,5,131,0,0,3441,3443,5,280,0,0,3442,3438,1,0,0,0,3442,3439,1,0,0,0,3442,3440,1,0,0,0,3443,3446,1,0,0,0,3444,3445,5,154,0,0,3445,3447,5,128,0,0,3446,3444,1,0,0,0,3446,3447,1,0,0,0,3447,3448,1,0,0,0,3448,3449,3,646,323,0,3449,565,1,0,0,0,3450,3451,5,87,0,0,3451,3452,5,305,0,0,3452,3454,3,576,288,0,3453,3455,3,578,289,0,3454,3453,1,0,0,0,3454,3455,1,0,0,0,3455,567,1,0,0,0,3456,3457,5,45,0,0,3457,3458,5,305,0,0,3458,3466,3,576,288,0,3459,3461,5,315,0,0,3460,3459,1,0,0,0,3460,3461,1,0,0,0,3461,3462,1,0,0,0,3462,3467,3,578,289,0,3463,3464,5,240,0,0,3464,3465,5,289,0,0,3465,3467,3,576,288,0,3466,3460,1,0,0,0,3466,3463,1,0,0,0,3467,569,1,0,0,0,3468,3469,5,87,0,0,3469,3470,5,148,0,0,3470,3484,3,576,288,0,3471,3472,5,315,0,0,3472,3473,5,305,0,0,3473,3478,3,576,288,0,3474,3475,5,25,0,0,3475,3477,3,576,288,0,3476,3474,1,0,0,0,3477,3480,1,0,0,0,3478,3476,1,0,0,0,3478,3479,1,0,0,0,3479,3482,1,0,0,0,3480,3478,1,0,0,0,3481,3483,5,25,0,0,3482,3481,1,0,0,0,3482,3483,1,0,0,0,3483,3485,1,0,0,0,3484,3471,1,0,0,0,3484,3485,1,0,0,0,3485,571,1,0,0,0,3486,3487,5,45,0,0,3487,3488,5,148,0,0,3488,3505,3,576,288,0,3489,3490,7,18,0,0,3490,3491,5,305,0,0,3491,3496,3,576,288,0,3492,3493,5,25,0,0,3493,3495,3,576,288,0,3494,3492,1,0,0,0,3495,3498,1,0,0,0,3496,3494,1,0,0,0,3496,3497,1,0,0,0,3497,3500,1,0,0,0,3498,3496,1,0,0,0,3499,3501,5,25,0,0,3500,3499,1,0,0,0,3500,3501,1,0,0,0,3501,3506,1,0,0,0,3502,3503,5,240,0,0,3503,3504,5,289,0,0,3504,3506,3,576,288,0,3505,3489,1,0,0,0,3505,3502,1,0,0,0,3506,573,1,0,0,0,3507,3508,5,112,0,0,3508,3511,7,19,0,0,3509,3510,5,154,0,0,3510,3512,5,128,0,0,3511,3509,1,0,0,0,3511,3512,1,0,0,0,3512,3513,1,0,0,0,3513,3518,3,576,288,0,3514,3515,5,25,0,0,3515,3517,3,576,288,0,3516,3514,1,0,0,0,3517,3520,1,0,0,0,3518,3516,1,0,0,0,3518,3519,1,0,0,0,3519,3522,1,0,0,0,3520,3518,1,0,0,0,3521,3523,5,25,0,0,3522,3521,1,0,0,0,3522,3523,1,0,0,0,3523,575,1,0,0,0,3524,3527,3,792,396,0,3525,3527,3,144,72,0,3526,3524,1,0,0,0,3526,3525,1,0,0,0,3527,577,1,0,0,0,3528,3530,5,117,0,0,3529,3528,1,0,0,0,3529,3530,1,0,0,0,3530,3531,1,0,0,0,3531,3532,5,218,0,0,3532,3533,3,14,7,0,3533,579,1,0,0,0,3534,3535,5,147,0,0,3535,3536,3,588,294,0,3536,3537,5,205,0,0,3537,3542,3,794,397,0,3538,3539,5,25,0,0,3539,3541,3,794,397,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3545,1,0,0,0,3544,3542,1,0,0,0,3545,3546,5,289,0,0,3546,3551,3,576,288,0,3547,3548,5,25,0,0,3548,3550,3,576,288,0,3549,3547,1,0,0,0,3550,3553,1,0,0,0,3551,3549,1,0,0,0,3551,3552,1,0,0,0,3552,3555,1,0,0,0,3553,3551,1,0,0,0,3554,3556,5,25,0,0,3555,3554,1,0,0,0,3555,3556,1,0,0,0,3556,3560,1,0,0,0,3557,3558,5,315,0,0,3558,3559,5,147,0,0,3559,3561,5,208,0,0,3560,3557,1,0,0,0,3560,3561,1,0,0,0,3561,581,1,0,0,0,3562,3566,5,253,0,0,3563,3564,5,147,0,0,3564,3565,5,208,0,0,3565,3567,5,140,0,0,3566,3563,1,0,0,0,3566,3567,1,0,0,0,3567,3568,1,0,0,0,3568,3569,3,588,294,0,3569,3570,5,205,0,0,3570,3575,3,794,397,0,3571,3572,5,25,0,0,3572,3574,3,794,397,0,3573,3571,1,0,0,0,3574,3577,1,0,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3578,1,0,0,0,3577,3575,1,0,0,0,3578,3579,5,142,0,0,3579,3584,3,576,288,0,3580,3581,5,25,0,0,3581,3583,3,576,288,0,3582,3580,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3584,3585,1,0,0,0,3585,583,1,0,0,0,3586,3584,1,0,0,0,3587,3612,5,83,0,0,3588,3612,5,183,0,0,3589,3612,5,167,0,0,3590,3612,5,185,0,0,3591,3612,5,112,0,0,3592,3612,5,147,0,0,3593,3594,5,192,0,0,3594,3612,7,20,0,0,3595,3596,7,21,0,0,3596,3612,5,258,0,0,3597,3598,7,22,0,0,3598,3612,5,262,0,0,3599,3601,5,265,0,0,3600,3602,7,23,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3612,1,0,0,0,3603,3605,7,24,0,0,3604,3606,5,180,0,0,3605,3604,1,0,0,0,3605,3606,1,0,0,0,3606,3612,1,0,0,0,3607,3609,5,87,0,0,3608,3610,7,25,0,0,3609,3608,1,0,0,0,3609,3610,1,0,0,0,3610,3612,1,0,0,0,3611,3587,1,0,0,0,3611,3588,1,0,0,0,3611,3589,1,0,0,0,3611,3590,1,0,0,0,3611,3591,1,0,0,0,3611,3592,1,0,0,0,3611,3593,1,0,0,0,3611,3595,1,0,0,0,3611,3597,1,0,0,0,3611,3599,1,0,0,0,3611,3603,1,0,0,0,3611,3607,1,0,0,0,3612,585,1,0,0,0,3613,3616,3,584,292,0,3614,3616,5,319,0,0,3615,3613,1,0,0,0,3615,3614,1,0,0,0,3616,587,1,0,0,0,3617,3622,3,586,293,0,3618,3619,5,25,0,0,3619,3621,3,586,293,0,3620,3618,1,0,0,0,3621,3624,1,0,0,0,3622,3620,1,0,0,0,3622,3623,1,0,0,0,3623,3626,1,0,0,0,3624,3622,1,0,0,0,3625,3627,5,25,0,0,3626,3625,1,0,0,0,3626,3627,1,0,0,0,3627,3633,1,0,0,0,3628,3630,5,44,0,0,3629,3631,5,229,0,0,3630,3629,1,0,0,0,3630,3631,1,0,0,0,3631,3633,1,0,0,0,3632,3617,1,0,0,0,3632,3628,1,0,0,0,3633,589,1,0,0,0,3634,3635,5,87,0,0,3635,3636,5,245,0,0,3636,3637,5,224,0,0,3637,3638,3,642,321,0,3638,3639,3,456,228,0,3639,591,1,0,0,0,3640,3641,5,45,0,0,3641,3642,5,245,0,0,3642,3643,5,224,0,0,3643,3644,3,642,321,0,3644,3649,3,594,297,0,3645,3646,5,25,0,0,3646,3648,3,594,297,0,3647,3645,1,0,0,0,3648,3651,1,0,0,0,3649,3647,1,0,0,0,3649,3650,1,0,0,0,3650,593,1,0,0,0,3651,3649,1,0,0,0,3652,3655,3,490,245,0,3653,3655,3,492,246,0,3654,3652,1,0,0,0,3654,3653,1,0,0,0,3655,595,1,0,0,0,3656,3657,5,112,0,0,3657,3658,5,245,0,0,3658,3659,5,224,0,0,3659,3660,3,642,321,0,3660,597,1,0,0,0,3661,3662,5,87,0,0,3662,3663,5,245,0,0,3663,3664,5,224,0,0,3664,3665,5,75,0,0,3665,3666,3,642,321,0,3666,3667,3,456,228,0,3667,599,1,0,0,0,3668,3669,5,45,0,0,3669,3670,5,245,0,0,3670,3671,5,224,0,0,3671,3672,5,75,0,0,3672,3673,3,642,321,0,3673,3678,3,602,301,0,3674,3675,5,25,0,0,3675,3677,3,602,301,0,3676,3674,1,0,0,0,3677,3680,1,0,0,0,3678,3676,1,0,0,0,3678,3679,1,0,0,0,3679,601,1,0,0,0,3680,3678,1,0,0,0,3681,3684,3,490,245,0,3682,3684,3,492,246,0,3683,3681,1,0,0,0,3683,3682,1,0,0,0,3684,603,1,0,0,0,3685,3686,5,112,0,0,3686,3687,5,245,0,0,3687,3688,5,224,0,0,3688,3689,5,75,0,0,3689,3690,3,642,321,0,3690,605,1,0,0,0,3691,3692,5,87,0,0,3692,3693,5,55,0,0,3693,3694,5,243,0,0,3694,3695,3,642,321,0,3695,3696,5,140,0,0,3696,3701,3,608,304,0,3697,3698,5,25,0,0,3698,3700,3,608,304,0,3699,3697,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3701,3702,1,0,0,0,3702,3704,1,0,0,0,3703,3701,1,0,0,0,3704,3705,5,315,0,0,3705,3706,5,26,0,0,3706,3707,3,610,305,0,3707,3708,5,27,0,0,3708,607,1,0,0,0,3709,3710,3,642,321,0,3710,3711,3,864,432,0,3711,609,1,0,0,0,3712,3717,3,612,306,0,3713,3714,5,25,0,0,3714,3716,3,612,306,0,3715,3713,1,0,0,0,3716,3719,1,0,0,0,3717,3715,1,0,0,0,3717,3718,1,0,0,0,3718,611,1,0,0,0,3719,3717,1,0,0,0,3720,3721,3,790,395,0,3721,3722,5,2,0,0,3722,3723,5,319,0,0,3723,613,1,0,0,0,3724,3725,5,45,0,0,3725,3726,5,55,0,0,3726,3727,5,243,0,0,3727,3728,3,642,321,0,3728,3733,3,616,308,0,3729,3730,5,25,0,0,3730,3732,3,616,308,0,3731,3729,1,0,0,0,3732,3735,1,0,0,0,3733,3731,1,0,0,0,3733,3734,1,0,0,0,3734,615,1,0,0,0,3735,3733,1,0,0,0,3736,3737,3,618,309,0,3737,617,1,0,0,0,3738,3739,5,267,0,0,3739,3740,5,26,0,0,3740,3741,3,610,305,0,3741,3742,5,27,0,0,3742,619,1,0,0,0,3743,3744,5,112,0,0,3744,3745,5,55,0,0,3745,3746,5,243,0,0,3746,3748,3,642,321,0,3747,3749,5,70,0,0,3748,3747,1,0,0,0,3748,3749,1,0,0,0,3749,621,1,0,0,0,3750,3755,3,146,73,0,3751,3752,5,25,0,0,3752,3754,3,146,73,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,623,1,0,0,0,3757,3755,1,0,0,0,3758,3759,5,101,0,0,3759,3760,7,26,0,0,3760,3761,3,144,72,0,3761,3763,5,26,0,0,3762,3764,3,622,311,0,3763,3762,1,0,0,0,3763,3764,1,0,0,0,3764,3765,1,0,0,0,3765,3766,5,27,0,0,3766,3767,5,51,0,0,3767,3768,3,626,313,0,3768,3769,5,118,0,0,3769,3770,5,101,0,0,3770,625,1,0,0,0,3771,3773,5,23,0,0,3772,3771,1,0,0,0,3773,3776,1,0,0,0,3774,3772,1,0,0,0,3774,3775,1,0,0,0,3775,3795,1,0,0,0,3776,3774,1,0,0,0,3777,3786,3,12,6,0,3778,3780,5,23,0,0,3779,3778,1,0,0,0,3780,3781,1,0,0,0,3781,3779,1,0,0,0,3781,3782,1,0,0,0,3782,3783,1,0,0,0,3783,3785,3,12,6,0,3784,3779,1,0,0,0,3785,3788,1,0,0,0,3786,3784,1,0,0,0,3786,3787,1,0,0,0,3787,3792,1,0,0,0,3788,3786,1,0,0,0,3789,3791,5,23,0,0,3790,3789,1,0,0,0,3791,3794,1,0,0,0,3792,3790,1,0,0,0,3792,3793,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3795,3777,1,0,0,0,3795,3796,1,0,0,0,3796,627,1,0,0,0,3797,3799,5,123,0,0,3798,3797,1,0,0,0,3798,3799,1,0,0,0,3799,3800,1,0,0,0,3800,3801,5,154,0,0,3801,3802,3,14,7,0,3802,3805,3,222,111,0,3803,3804,5,114,0,0,3804,3806,3,222,111,0,3805,3803,1,0,0,0,3805,3806,1,0,0,0,3806,629,1,0,0,0,3807,3809,5,123,0,0,3808,3807,1,0,0,0,3808,3809,1,0,0,0,3809,3811,1,0,0,0,3810,3812,5,215,0,0,3811,3810,1,0,0,0,3811,3812,1,0,0,0,3812,3813,1,0,0,0,3813,3814,5,140,0,0,3814,3815,3,144,72,0,3815,3816,5,159,0,0,3816,3817,3,14,7,0,3817,3820,3,222,111,0,3818,3819,5,114,0,0,3819,3821,3,222,111,0,3820,3818,1,0,0,0,3820,3821,1,0,0,0,3821,631,1,0,0,0,3822,3823,3,816,408,0,3823,3824,5,24,0,0,3824,3826,1,0,0,0,3825,3822,1,0,0,0,3825,3826,1,0,0,0,3826,3828,1,0,0,0,3827,3829,5,30,0,0,3828,3827,1,0,0,0,3828,3829,1,0,0,0,3829,3860,1,0,0,0,3830,3861,3,634,317,0,3831,3832,3,796,398,0,3832,3844,5,26,0,0,3833,3838,3,636,318,0,3834,3835,5,25,0,0,3835,3837,3,636,318,0,3836,3834,1,0,0,0,3837,3840,1,0,0,0,3838,3836,1,0,0,0,3838,3839,1,0,0,0,3839,3842,1,0,0,0,3840,3838,1,0,0,0,3841,3843,5,25,0,0,3842,3841,1,0,0,0,3842,3843,1,0,0,0,3843,3845,1,0,0,0,3844,3833,1,0,0,0,3844,3845,1,0,0,0,3845,3846,1,0,0,0,3846,3847,5,27,0,0,3847,3861,1,0,0,0,3848,3854,3,144,72,0,3849,3851,5,26,0,0,3850,3852,3,112,56,0,3851,3850,1,0,0,0,3851,3852,1,0,0,0,3852,3853,1,0,0,0,3853,3855,5,27,0,0,3854,3849,1,0,0,0,3854,3855,1,0,0,0,3855,3858,1,0,0,0,3856,3857,5,310,0,0,3857,3859,3,812,406,0,3858,3856,1,0,0,0,3858,3859,1,0,0,0,3859,3861,1,0,0,0,3860,3830,1,0,0,0,3860,3831,1,0,0,0,3860,3848,1,0,0,0,3861,3863,1,0,0,0,3862,3864,3,638,319,0,3863,3862,1,0,0,0,3863,3864,1,0,0,0,3864,633,1,0,0,0,3865,3868,3,824,412,0,3866,3867,5,310,0,0,3867,3869,3,812,406,0,3868,3866,1,0,0,0,3868,3869,1,0,0,0,3869,635,1,0,0,0,3870,3872,5,30,0,0,3871,3870,1,0,0,0,3871,3872,1,0,0,0,3872,3873,1,0,0,0,3873,3876,3,128,64,0,3874,3875,5,310,0,0,3875,3877,3,812,406,0,3876,3874,1,0,0,0,3876,3877,1,0,0,0,3877,637,1,0,0,0,3878,3891,5,315,0,0,3879,3892,3,640,320,0,3880,3881,5,26,0,0,3881,3886,3,640,320,0,3882,3883,5,25,0,0,3883,3885,3,640,320,0,3884,3882,1,0,0,0,3885,3888,1,0,0,0,3886,3884,1,0,0,0,3886,3887,1,0,0,0,3887,3889,1,0,0,0,3888,3886,1,0,0,0,3889,3890,5,27,0,0,3890,3892,1,0,0,0,3891,3879,1,0,0,0,3891,3880,1,0,0,0,3892,639,1,0,0,0,3893,3912,3,806,403,0,3894,3910,5,2,0,0,3895,3911,3,160,80,0,3896,3897,5,26,0,0,3897,3902,3,160,80,0,3898,3899,5,25,0,0,3899,3901,3,160,80,0,3900,3898,1,0,0,0,3901,3904,1,0,0,0,3902,3900,1,0,0,0,3902,3903,1,0,0,0,3903,3906,1,0,0,0,3904,3902,1,0,0,0,3905,3907,5,25,0,0,3906,3905,1,0,0,0,3906,3907,1,0,0,0,3907,3908,1,0,0,0,3908,3909,5,27,0,0,3909,3911,1,0,0,0,3910,3895,1,0,0,0,3910,3896,1,0,0,0,3911,3913,1,0,0,0,3912,3894,1,0,0,0,3912,3913,1,0,0,0,3913,3939,1,0,0,0,3914,3916,7,27,0,0,3915,3917,5,2,0,0,3916,3915,1,0,0,0,3916,3917,1,0,0,0,3917,3918,1,0,0,0,3918,3939,3,204,102,0,3919,3921,5,262,0,0,3920,3922,5,2,0,0,3921,3920,1,0,0,0,3921,3922,1,0,0,0,3922,3923,1,0,0,0,3923,3932,5,26,0,0,3924,3929,3,164,82,0,3925,3926,5,25,0,0,3926,3928,3,164,82,0,3927,3925,1,0,0,0,3928,3931,1,0,0,0,3929,3927,1,0,0,0,3929,3930,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3932,3924,1,0,0,0,3932,3933,1,0,0,0,3933,3935,1,0,0,0,3934,3936,5,25,0,0,3935,3934,1,0,0,0,3935,3936,1,0,0,0,3936,3937,1,0,0,0,3937,3939,5,27,0,0,3938,3893,1,0,0,0,3938,3914,1,0,0,0,3938,3919,1,0,0,0,3939,641,1,0,0,0,3940,3941,3,816,408,0,3941,3942,5,24,0,0,3942,3944,1,0,0,0,3943,3940,1,0,0,0,3943,3944,1,0,0,0,3944,3945,1,0,0,0,3945,3946,3,822,411,0,3946,643,1,0,0,0,3947,3953,3,642,321,0,3948,3950,5,30,0,0,3949,3948,1,0,0,0,3949,3950,1,0,0,0,3950,3951,1,0,0,0,3951,3953,3,144,72,0,3952,3947,1,0,0,0,3952,3949,1,0,0,0,3953,645,1,0,0,0,3954,3956,3,644,322,0,3955,3957,3,638,319,0,3956,3955,1,0,0,0,3956,3957,1,0,0,0,3957,647,1,0,0,0,3958,3962,3,646,323,0,3959,3960,5,120,0,0,3960,3961,5,68,0,0,3961,3963,3,114,57,0,3962,3959,1,0,0,0,3962,3963,1,0,0,0,3963,649,1,0,0,0,3964,3965,5,102,0,0,3965,3966,5,142,0,0,3966,3970,3,646,323,0,3967,3971,3,866,433,0,3968,3969,5,205,0,0,3969,3971,3,368,184,0,3970,3967,1,0,0,0,3970,3968,1,0,0,0,3970,3971,1,0,0,0,3971,3973,1,0,0,0,3972,3974,3,362,181,0,3973,3972,1,0,0,0,3973,3974,1,0,0,0,3974,651,1,0,0,0,3975,3976,5,302,0,0,3976,3984,3,646,323,0,3977,3978,5,267,0,0,3978,3980,3,654,327,0,3979,3981,3,866,433,0,3980,3979,1,0,0,0,3980,3981,1,0,0,0,3981,3985,1,0,0,0,3982,3983,5,205,0,0,3983,3985,3,368,184,0,3984,3977,1,0,0,0,3984,3982,1,0,0,0,3985,3987,1,0,0,0,3986,3988,3,362,181,0,3987,3986,1,0,0,0,3987,3988,1,0,0,0,3988,653,1,0,0,0,3989,3992,3,656,328,0,3990,3992,3,662,331,0,3991,3989,1,0,0,0,3991,3990,1,0,0,0,3992,655,1,0,0,0,3993,3998,3,658,329,0,3994,3995,5,25,0,0,3995,3997,3,658,329,0,3996,3994,1,0,0,0,3997,4e3,1,0,0,0,3998,3996,1,0,0,0,3998,3999,1,0,0,0,3999,657,1,0,0,0,4e3,3998,1,0,0,0,4001,4002,3,660,330,0,4002,4003,5,2,0,0,4003,4004,3,14,7,0,4004,659,1,0,0,0,4005,4006,3,120,60,0,4006,661,1,0,0,0,4007,4008,3,664,332,0,4008,4009,5,2,0,0,4009,4010,5,26,0,0,4010,4011,3,378,189,0,4011,4012,5,27,0,0,4012,663,1,0,0,0,4013,4014,5,26,0,0,4014,4019,3,660,330,0,4015,4016,5,25,0,0,4016,4018,3,660,330,0,4017,4015,1,0,0,0,4018,4021,1,0,0,0,4019,4017,1,0,0,0,4019,4020,1,0,0,0,4020,4022,1,0,0,0,4021,4019,1,0,0,0,4022,4023,5,27,0,0,4023,665,1,0,0,0,4024,4025,5,87,0,0,4025,4029,5,290,0,0,4026,4027,5,154,0,0,4027,4028,5,197,0,0,4028,4030,5,128,0,0,4029,4026,1,0,0,0,4029,4030,1,0,0,0,4030,4031,1,0,0,0,4031,4033,3,712,356,0,4032,4034,3,668,334,0,4033,4032,1,0,0,0,4033,4034,1,0,0,0,4034,4036,1,0,0,0,4035,4037,3,672,336,0,4036,4035,1,0,0,0,4036,4037,1,0,0,0,4037,667,1,0,0,0,4038,4039,5,26,0,0,4039,4044,3,670,335,0,4040,4041,5,25,0,0,4041,4043,3,670,335,0,4042,4040,1,0,0,0,4043,4046,1,0,0,0,4044,4042,1,0,0,0,4044,4045,1,0,0,0,4045,4047,1,0,0,0,4046,4044,1,0,0,0,4047,4048,5,27,0,0,4048,669,1,0,0,0,4049,4050,3,680,340,0,4050,671,1,0,0,0,4051,4052,5,315,0,0,4052,4053,5,26,0,0,4053,4054,3,698,349,0,4054,4055,5,27,0,0,4055,673,1,0,0,0,4056,4057,5,45,0,0,4057,4060,5,290,0,0,4058,4059,5,154,0,0,4059,4061,5,128,0,0,4060,4058,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4063,3,712,356,0,4063,4068,3,676,338,0,4064,4065,5,25,0,0,4065,4067,3,676,338,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,675,1,0,0,0,4070,4068,1,0,0,0,4071,4077,3,678,339,0,4072,4077,3,682,341,0,4073,4077,3,686,343,0,4074,4077,3,692,346,0,4075,4077,3,694,347,0,4076,4071,1,0,0,0,4076,4072,1,0,0,0,4076,4073,1,0,0,0,4076,4074,1,0,0,0,4076,4075,1,0,0,0,4077,677,1,0,0,0,4078,4079,5,42,0,0,4079,4080,3,680,340,0,4080,679,1,0,0,0,4081,4082,5,85,0,0,4082,4084,3,790,395,0,4083,4085,3,704,352,0,4084,4083,1,0,0,0,4084,4085,1,0,0,0,4085,681,1,0,0,0,4086,4087,5,45,0,0,4087,4088,5,85,0,0,4088,4089,3,714,357,0,4089,4090,3,684,342,0,4090,683,1,0,0,0,4091,4094,3,688,344,0,4092,4094,3,690,345,0,4093,4091,1,0,0,0,4093,4092,1,0,0,0,4094,685,1,0,0,0,4095,4096,5,112,0,0,4096,4097,5,85,0,0,4097,4098,3,714,357,0,4098,687,1,0,0,0,4099,4100,5,267,0,0,4100,4101,5,26,0,0,4101,4102,3,706,353,0,4102,4103,5,27,0,0,4103,689,1,0,0,0,4104,4105,5,244,0,0,4105,4106,5,26,0,0,4106,4111,3,790,395,0,4107,4108,5,25,0,0,4108,4110,3,790,395,0,4109,4107,1,0,0,0,4110,4113,1,0,0,0,4111,4109,1,0,0,0,4111,4112,1,0,0,0,4112,4114,1,0,0,0,4113,4111,1,0,0,0,4114,4115,5,27,0,0,4115,691,1,0,0,0,4116,4117,5,267,0,0,4117,4118,5,26,0,0,4118,4119,3,698,349,0,4119,4120,5,27,0,0,4120,693,1,0,0,0,4121,4122,5,244,0,0,4122,4123,5,26,0,0,4123,4128,3,790,395,0,4124,4125,5,25,0,0,4125,4127,3,808,404,0,4126,4124,1,0,0,0,4127,4130,1,0,0,0,4128,4126,1,0,0,0,4128,4129,1,0,0,0,4129,4131,1,0,0,0,4130,4128,1,0,0,0,4131,4132,5,27,0,0,4132,695,1,0,0,0,4133,4134,5,112,0,0,4134,4137,5,290,0,0,4135,4136,5,154,0,0,4136,4138,5,128,0,0,4137,4135,1,0,0,0,4137,4138,1,0,0,0,4138,4139,1,0,0,0,4139,4140,3,712,356,0,4140,697,1,0,0,0,4141,4146,3,700,350,0,4142,4143,5,25,0,0,4143,4145,3,700,350,0,4144,4142,1,0,0,0,4145,4148,1,0,0,0,4146,4144,1,0,0,0,4146,4147,1,0,0,0,4147,699,1,0,0,0,4148,4146,1,0,0,0,4149,4150,3,790,395,0,4150,4151,5,2,0,0,4151,4152,3,702,351,0,4152,701,1,0,0,0,4153,4154,3,14,7,0,4154,703,1,0,0,0,4155,4156,5,315,0,0,4156,4157,5,26,0,0,4157,4158,3,706,353,0,4158,4159,5,27,0,0,4159,705,1,0,0,0,4160,4165,3,708,354,0,4161,4162,5,25,0,0,4162,4164,3,708,354,0,4163,4161,1,0,0,0,4164,4167,1,0,0,0,4165,4163,1,0,0,0,4165,4166,1,0,0,0,4166,707,1,0,0,0,4167,4165,1,0,0,0,4168,4169,3,790,395,0,4169,4170,5,2,0,0,4170,4171,3,710,355,0,4171,709,1,0,0,0,4172,4173,3,14,7,0,4173,711,1,0,0,0,4174,4175,3,816,408,0,4175,4176,5,24,0,0,4176,4178,1,0,0,0,4177,4174,1,0,0,0,4177,4178,1,0,0,0,4178,4179,1,0,0,0,4179,4180,3,790,395,0,4180,713,1,0,0,0,4181,4182,3,808,404,0,4182,715,1,0,0,0,4183,4184,5,246,0,0,4184,4188,5,200,0,0,4185,4186,5,155,0,0,4186,4188,5,200,0,0,4187,4183,1,0,0,0,4187,4185,1,0,0,0,4188,717,1,0,0,0,4189,4190,5,135,0,0,4190,4191,5,26,0,0,4191,4192,3,866,433,0,4192,4193,5,27,0,0,4193,719,1,0,0,0,4194,4197,3,722,361,0,4195,4197,3,732,366,0,4196,4194,1,0,0,0,4196,4195,1,0,0,0,4197,721,1,0,0,0,4198,4199,3,800,400,0,4199,723,1,0,0,0,4200,4201,5,314,0,0,4201,4202,3,726,363,0,4202,725,1,0,0,0,4203,4208,3,728,364,0,4204,4205,5,25,0,0,4205,4207,3,728,364,0,4206,4204,1,0,0,0,4207,4210,1,0,0,0,4208,4206,1,0,0,0,4208,4209,1,0,0,0,4209,727,1,0,0,0,4210,4208,1,0,0,0,4211,4212,3,730,365,0,4212,4213,5,51,0,0,4213,4214,3,732,366,0,4214,729,1,0,0,0,4215,4216,3,722,361,0,4216,731,1,0,0,0,4217,4218,5,26,0,0,4218,4219,3,734,367,0,4219,4220,5,27,0,0,4220,733,1,0,0,0,4221,4223,3,736,368,0,4222,4221,1,0,0,0,4222,4223,1,0,0,0,4223,4225,1,0,0,0,4224,4226,3,738,369,0,4225,4224,1,0,0,0,4225,4226,1,0,0,0,4226,4228,1,0,0,0,4227,4229,3,740,370,0,4228,4227,1,0,0,0,4228,4229,1,0,0,0,4229,4231,1,0,0,0,4230,4232,3,742,371,0,4231,4230,1,0,0,0,4231,4232,1,0,0,0,4232,735,1,0,0,0,4233,4234,3,722,361,0,4234,737,1,0,0,0,4235,4237,5,216,0,0,4236,4238,5,80,0,0,4237,4236,1,0,0,0,4237,4238,1,0,0,0,4238,4239,1,0,0,0,4239,4240,5,68,0,0,4240,4241,3,130,65,0,4241,739,1,0,0,0,4242,4243,3,314,157,0,4243,741,1,0,0,0,4244,4245,3,744,372,0,4245,4247,3,746,373,0,4246,4248,3,752,376,0,4247,4246,1,0,0,0,4247,4248,1,0,0,0,4248,743,1,0,0,0,4249,4250,7,28,0,0,4250,745,1,0,0,0,4251,4254,3,750,375,0,4252,4254,3,748,374,0,4253,4251,1,0,0,0,4253,4252,1,0,0,0,4254,747,1,0,0,0,4255,4256,5,66,0,0,4256,4257,3,750,375,0,4257,4258,5,47,0,0,4258,4259,3,750,375,0,4259,749,1,0,0,0,4260,4261,5,90,0,0,4261,4268,5,258,0,0,4262,4265,3,14,7,0,4263,4265,5,296,0,0,4264,4262,1,0,0,0,4264,4263,1,0,0,0,4265,4266,1,0,0,0,4266,4268,7,29,0,0,4267,4260,1,0,0,0,4267,4264,1,0,0,0,4268,751,1,0,0,0,4269,4270,5,125,0,0,4270,4271,5,90,0,0,4271,4280,5,258,0,0,4272,4273,5,125,0,0,4273,4280,5,148,0,0,4274,4275,5,125,0,0,4275,4280,5,288,0,0,4276,4277,5,125,0,0,4277,4278,5,196,0,0,4278,4280,5,212,0,0,4279,4269,1,0,0,0,4279,4272,1,0,0,0,4279,4274,1,0,0,0,4279,4276,1,0,0,0,4280,753,1,0,0,0,4281,4282,5,304,0,0,4282,4283,3,816,408,0,4283,755,1,0,0,0,4284,4285,5,26,0,0,4285,4286,3,232,116,0,4286,4287,5,27,0,0,4287,4290,1,0,0,0,4288,4290,3,234,117,0,4289,4284,1,0,0,0,4289,4288,1,0,0,0,4290,757,1,0,0,0,4291,4292,3,148,74,0,4292,4295,5,2,0,0,4293,4296,3,14,7,0,4294,4296,3,756,378,0,4295,4293,1,0,0,0,4295,4294,1,0,0,0,4296,759,1,0,0,0,4297,4298,5,79,0,0,4298,761,1,0,0,0,4299,4300,5,256,0,0,4300,763,1,0,0,0,4301,4306,3,646,323,0,4302,4303,5,26,0,0,4303,4304,3,124,62,0,4304,4305,5,27,0,0,4305,4307,1,0,0,0,4306,4302,1,0,0,0,4306,4307,1,0,0,0,4307,765,1,0,0,0,4308,4313,3,764,382,0,4309,4310,5,25,0,0,4310,4312,3,764,382,0,4311,4309,1,0,0,0,4312,4315,1,0,0,0,4313,4311,1,0,0,0,4313,4314,1,0,0,0,4314,4317,1,0,0,0,4315,4313,1,0,0,0,4316,4318,5,25,0,0,4317,4316,1,0,0,0,4317,4318,1,0,0,0,4318,767,1,0,0,0,4319,4320,5,46,0,0,4320,4321,3,766,383,0,4321,769,1,0,0,0,4322,4323,7,30,0,0,4323,771,1,0,0,0,4324,4327,3,770,385,0,4325,4327,3,828,414,0,4326,4324,1,0,0,0,4326,4325,1,0,0,0,4327,773,1,0,0,0,4328,4336,3,770,385,0,4329,4336,3,846,423,0,4330,4336,3,830,415,0,4331,4336,3,834,417,0,4332,4336,3,838,419,0,4333,4336,3,840,420,0,4334,4336,3,842,421,0,4335,4328,1,0,0,0,4335,4329,1,0,0,0,4335,4330,1,0,0,0,4335,4331,1,0,0,0,4335,4332,1,0,0,0,4335,4333,1,0,0,0,4335,4334,1,0,0,0,4336,775,1,0,0,0,4337,4344,3,770,385,0,4338,4344,3,846,423,0,4339,4344,3,836,418,0,4340,4344,3,838,419,0,4341,4344,3,840,420,0,4342,4344,3,842,421,0,4343,4337,1,0,0,0,4343,4338,1,0,0,0,4343,4339,1,0,0,0,4343,4340,1,0,0,0,4343,4341,1,0,0,0,4343,4342,1,0,0,0,4344,777,1,0,0,0,4345,4351,3,770,385,0,4346,4351,3,846,423,0,4347,4351,3,836,418,0,4348,4351,3,840,420,0,4349,4351,3,842,421,0,4350,4345,1,0,0,0,4350,4346,1,0,0,0,4350,4347,1,0,0,0,4350,4348,1,0,0,0,4350,4349,1,0,0,0,4351,779,1,0,0,0,4352,4361,3,770,385,0,4353,4361,3,846,423,0,4354,4361,3,830,415,0,4355,4361,3,832,416,0,4356,4361,3,834,417,0,4357,4361,3,836,418,0,4358,4361,3,838,419,0,4359,4361,3,842,421,0,4360,4352,1,0,0,0,4360,4353,1,0,0,0,4360,4354,1,0,0,0,4360,4355,1,0,0,0,4360,4356,1,0,0,0,4360,4357,1,0,0,0,4360,4358,1,0,0,0,4360,4359,1,0,0,0,4361,781,1,0,0,0,4362,4370,3,770,385,0,4363,4370,3,846,423,0,4364,4370,3,830,415,0,4365,4370,3,834,417,0,4366,4370,3,838,419,0,4367,4370,3,840,420,0,4368,4370,3,842,421,0,4369,4362,1,0,0,0,4369,4363,1,0,0,0,4369,4364,1,0,0,0,4369,4365,1,0,0,0,4369,4366,1,0,0,0,4369,4367,1,0,0,0,4369,4368,1,0,0,0,4370,783,1,0,0,0,4371,4379,3,770,385,0,4372,4379,3,846,423,0,4373,4379,3,832,416,0,4374,4379,3,836,418,0,4375,4379,3,838,419,0,4376,4379,3,840,420,0,4377,4379,3,842,421,0,4378,4371,1,0,0,0,4378,4372,1,0,0,0,4378,4373,1,0,0,0,4378,4374,1,0,0,0,4378,4375,1,0,0,0,4378,4376,1,0,0,0,4378,4377,1,0,0,0,4379,785,1,0,0,0,4380,4389,3,770,385,0,4381,4389,3,846,423,0,4382,4389,3,830,415,0,4383,4389,3,832,416,0,4384,4389,3,834,417,0,4385,4389,3,836,418,0,4386,4389,3,838,419,0,4387,4389,3,840,420,0,4388,4380,1,0,0,0,4388,4381,1,0,0,0,4388,4382,1,0,0,0,4388,4383,1,0,0,0,4388,4384,1,0,0,0,4388,4385,1,0,0,0,4388,4386,1,0,0,0,4388,4387,1,0,0,0,4389,787,1,0,0,0,4390,4393,3,770,385,0,4391,4393,3,844,422,0,4392,4390,1,0,0,0,4392,4391,1,0,0,0,4393,789,1,0,0,0,4394,4397,3,772,386,0,4395,4397,5,319,0,0,4396,4394,1,0,0,0,4396,4395,1,0,0,0,4397,791,1,0,0,0,4398,4401,3,818,409,0,4399,4401,5,319,0,0,4400,4398,1,0,0,0,4400,4399,1,0,0,0,4401,793,1,0,0,0,4402,4405,3,774,387,0,4403,4405,5,319,0,0,4404,4402,1,0,0,0,4404,4403,1,0,0,0,4405,795,1,0,0,0,4406,4409,3,776,388,0,4407,4409,5,319,0,0,4408,4406,1,0,0,0,4408,4407,1,0,0,0,4409,797,1,0,0,0,4410,4413,3,778,389,0,4411,4413,5,319,0,0,4412,4410,1,0,0,0,4412,4411,1,0,0,0,4413,799,1,0,0,0,4414,4417,3,780,390,0,4415,4417,5,319,0,0,4416,4414,1,0,0,0,4416,4415,1,0,0,0,4417,801,1,0,0,0,4418,4421,3,782,391,0,4419,4421,5,319,0,0,4420,4418,1,0,0,0,4420,4419,1,0,0,0,4421,803,1,0,0,0,4422,4425,3,784,392,0,4423,4425,5,319,0,0,4424,4422,1,0,0,0,4424,4423,1,0,0,0,4425,805,1,0,0,0,4426,4429,3,786,393,0,4427,4429,5,319,0,0,4428,4426,1,0,0,0,4428,4427,1,0,0,0,4429,807,1,0,0,0,4430,4433,3,770,385,0,4431,4433,5,319,0,0,4432,4430,1,0,0,0,4432,4431,1,0,0,0,4433,809,1,0,0,0,4434,4437,3,788,394,0,4435,4437,5,319,0,0,4436,4434,1,0,0,0,4436,4435,1,0,0,0,4437,811,1,0,0,0,4438,4442,3,790,395,0,4439,4440,5,228,0,0,4440,4442,5,177,0,0,4441,4438,1,0,0,0,4441,4439,1,0,0,0,4442,813,1,0,0,0,4443,4444,3,790,395,0,4444,4445,5,24,0,0,4445,4447,1,0,0,0,4446,4443,1,0,0,0,4446,4447,1,0,0,0,4447,815,1,0,0,0,4448,4449,3,790,395,0,4449,4450,5,29,0,0,4450,4452,1,0,0,0,4451,4448,1,0,0,0,4451,4452,1,0,0,0,4452,4455,1,0,0,0,4453,4456,3,116,58,0,4454,4456,5,20,0,0,4455,4453,1,0,0,0,4455,4454,1,0,0,0,4456,817,1,0,0,0,4457,4460,3,772,386,0,4458,4460,3,848,424,0,4459,4457,1,0,0,0,4459,4458,1,0,0,0,4460,819,1,0,0,0,4461,4462,3,792,396,0,4462,4463,5,24,0,0,4463,4465,1,0,0,0,4464,4461,1,0,0,0,4464,4465,1,0,0,0,4465,821,1,0,0,0,4466,4468,5,30,0,0,4467,4466,1,0,0,0,4467,4468,1,0,0,0,4468,4469,1,0,0,0,4469,4470,3,792,396,0,4470,823,1,0,0,0,4471,4474,3,802,401,0,4472,4474,3,848,424,0,4473,4471,1,0,0,0,4473,4472,1,0,0,0,4474,825,1,0,0,0,4475,4477,5,30,0,0,4476,4475,1,0,0,0,4476,4477,1,0,0,0,4477,4478,1,0,0,0,4478,4479,3,824,412,0,4479,827,1,0,0,0,4480,4489,3,846,423,0,4481,4489,3,830,415,0,4482,4489,3,832,416,0,4483,4489,3,834,417,0,4484,4489,3,836,418,0,4485,4489,3,838,419,0,4486,4489,3,840,420,0,4487,4489,3,842,421,0,4488,4480,1,0,0,0,4488,4481,1,0,0,0,4488,4482,1,0,0,0,4488,4483,1,0,0,0,4488,4484,1,0,0,0,4488,4485,1,0,0,0,4488,4486,1,0,0,0,4488,4487,1,0,0,0,4489,829,1,0,0,0,4490,4491,7,31,0,0,4491,831,1,0,0,0,4492,4493,7,32,0,0,4493,833,1,0,0,0,4494,4495,7,33,0,0,4495,835,1,0,0,0,4496,4497,5,77,0,0,4497,837,1,0,0,0,4498,4499,5,80,0,0,4499,839,1,0,0,0,4500,4501,7,28,0,0,4501,841,1,0,0,0,4502,4503,7,27,0,0,4503,843,1,0,0,0,4504,4505,7,34,0,0,4505,845,1,0,0,0,4506,4507,7,35,0,0,4507,847,1,0,0,0,4508,4509,7,36,0,0,4509,849,1,0,0,0,4510,4511,7,37,0,0,4511,851,1,0,0,0,4512,4513,5,324,0,0,4513,853,1,0,0,0,4514,4515,7,38,0,0,4515,855,1,0,0,0,4516,4522,3,858,429,0,4517,4518,5,225,0,0,4518,4519,5,48,0,0,4519,4520,5,322,0,0,4520,4522,3,4,2,0,4521,4516,1,0,0,0,4521,4517,1,0,0,0,4522,857,1,0,0,0,4523,4525,5,23,0,0,4524,4523,1,0,0,0,4525,4528,1,0,0,0,4526,4524,1,0,0,0,4526,4527,1,0,0,0,4527,4529,1,0,0,0,4528,4526,1,0,0,0,4529,4538,3,860,430,0,4530,4532,5,23,0,0,4531,4530,1,0,0,0,4532,4533,1,0,0,0,4533,4531,1,0,0,0,4533,4534,1,0,0,0,4534,4535,1,0,0,0,4535,4537,3,860,430,0,4536,4531,1,0,0,0,4537,4540,1,0,0,0,4538,4536,1,0,0,0,4538,4539,1,0,0,0,4539,4544,1,0,0,0,4540,4538,1,0,0,0,4541,4543,5,23,0,0,4542,4541,1,0,0,0,4543,4546,1,0,0,0,4544,4542,1,0,0,0,4544,4545,1,0,0,0,4545,4547,1,0,0,0,4546,4544,1,0,0,0,4547,4548,5,0,0,1,4548,859,1,0,0,0,4549,4552,5,129,0,0,4550,4551,5,1,0,0,4551,4553,5,223,0,0,4552,4550,1,0,0,0,4552,4553,1,0,0,0,4553,4555,1,0,0,0,4554,4549,1,0,0,0,4554,4555,1,0,0,0,4555,4556,1,0,0,0,4556,4557,3,862,431,0,4557,861,1,0,0,0,4558,4572,3,224,112,0,4559,4572,3,232,116,0,4560,4572,3,758,379,0,4561,4572,3,754,377,0,4562,4572,3,366,183,0,4563,4572,3,210,105,0,4564,4572,3,214,107,0,4565,4572,3,216,108,0,4566,4572,3,222,111,0,4567,4572,3,624,312,0,4568,4572,3,628,314,0,4569,4572,3,630,315,0,4570,4572,3,370,185,0,4571,4558,1,0,0,0,4571,4559,1,0,0,0,4571,4560,1,0,0,0,4571,4561,1,0,0,0,4571,4562,1,0,0,0,4571,4563,1,0,0,0,4571,4564,1,0,0,0,4571,4565,1,0,0,0,4571,4566,1,0,0,0,4571,4567,1,0,0,0,4571,4568,1,0,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,863,1,0,0,0,4573,4574,5,51,0,0,4574,4575,3,642,321,0,4575,865,1,0,0,0,4576,4577,5,313,0,0,4577,4578,3,14,7,0,4578,867,1,0,0,0,4579,4580,5,142,0,0,4580,4581,3,338,169,0,4581,869,1,0,0,0,4582,4585,3,464,232,0,4583,4585,3,472,236,0,4584,4582,1,0,0,0,4584,4583,1,0,0,0,4585,871,1,0,0,0,504,877,882,889,894,900,908,916,923,927,935,940,945,947,1007,1014,1018,1025,1033,1038,1042,1048,1054,1057,1061,1069,1073,1076,1080,1091,1096,1098,1107,1128,1133,1142,1144,1151,1159,1167,1174,1184,1186,1190,1195,1199,1205,1211,1215,1219,1222,1229,1235,1239,1244,1247,1261,1266,1269,1283,1290,1301,1312,1332,1338,1343,1347,1361,1363,1370,1376,1387,1395,1401,1408,1416,1429,1435,1439,1442,1444,1452,1460,1466,1472,1478,1481,1490,1499,1506,1514,1527,1534,1538,1545,1549,1554,1561,1568,1571,1578,1582,1592,1615,1621,1625,1632,1638,1645,1649,1653,1659,1664,1673,1676,1682,1687,1695,1702,1724,1728,1730,1734,1743,1747,1749,1753,1762,1766,1804,1808,1828,1831,1837,1857,1862,1868,1873,1876,1880,1907,1915,1918,1925,1938,1942,1954,1967,1972,1979,1983,1990,1999,2008,2016,2020,2024,2031,2033,2036,2041,2046,2050,2057,2064,2068,2071,2075,2079,2081,2092,2101,2106,2112,2117,2120,2124,2128,2131,2134,2138,2146,2150,2154,2157,2160,2163,2167,2170,2173,2178,2181,2184,2187,2201,2203,2214,2224,2234,2237,2244,2268,2279,2285,2289,2293,2297,2301,2305,2309,2313,2319,2326,2336,2347,2360,2376,2386,2406,2412,2419,2426,2434,2443,2480,2482,2485,2490,2494,2498,2504,2510,2514,2519,2524,2526,2530,2535,2538,2540,2544,2555,2566,2577,2581,2585,2589,2592,2596,2599,2605,2614,2617,2631,2637,2650,2657,2662,2669,2676,2685,2690,2698,2713,2719,2727,2736,2740,2749,2761,2768,2776,2797,2805,2814,2824,2833,2838,2845,2855,2860,2869,2873,2877,2880,2883,2886,2889,2897,2902,2913,2920,2933,2941,2946,2953,2966,2977,2987,2993,3002,3019,3042,3062,3073,3081,3091,3096,3100,3106,3144,3156,3198,3206,3209,3213,3217,3227,3240,3253,3258,3270,3281,3286,3289,3293,3297,3301,3304,3317,3321,3333,3347,3362,3377,3380,3392,3395,3405,3413,3419,3427,3435,3442,3446,3454,3460,3466,3478,3482,3484,3496,3500,3505,3511,3518,3522,3526,3529,3542,3551,3555,3560,3566,3575,3584,3601,3605,3609,3611,3615,3622,3626,3630,3632,3649,3654,3678,3683,3701,3717,3733,3748,3755,3763,3774,3781,3786,3792,3795,3798,3805,3808,3811,3820,3825,3828,3838,3842,3844,3851,3854,3858,3860,3863,3868,3871,3876,3886,3891,3902,3906,3910,3912,3916,3921,3929,3932,3935,3938,3943,3949,3952,3956,3962,3970,3973,3980,3984,3987,3991,3998,4019,4029,4033,4036,4044,4060,4068,4076,4084,4093,4111,4128,4137,4146,4165,4177,4187,4196,4208,4222,4225,4228,4231,4237,4247,4253,4264,4267,4279,4289,4295,4306,4313,4317,4326,4335,4343,4350,4360,4369,4378,4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4441,4446,4451,4455,4459,4464,4467,4473,4476,4488,4521,4526,4533,4538,4544,4552,4554,4571,4584]}static get _ATN(){return t.__ATN||(t.__ATN=(new Ft).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new l(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ae(t,e)))}},er=class extends P{static{Ss(this,"Sql_queryContext")}constructor(t,e){super(t,e)}sql_stmt_list(){return this.getRuleContext(0,sr)}PRAGMA(){return this.getToken(tr.PRAGMA,0)}ANSI(){return this.getToken(tr.ANSI,0)}DIGITS(){return this.getToken(tr.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,rr)}get ruleIndex(){return tr.RULE_sql_query}accept(t){return t.visitSql_query?t.visitSql_query(this):t.visitChildren(this)}},sr=class extends P{static{Ss(this,"Sql_stmt_listContext")}constructor(t,e){super(t,e)}sql_stmt(t){return void 0===t?this.getRuleContexts(nr):this.getRuleContext(t,nr)}EOF(){return this.getToken(tr.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(tr.SEMICOLON):this.getToken(tr.SEMICOLON,t)}get ruleIndex(){return tr.RULE_sql_stmt_list}accept(t){return t.visitSql_stmt_list?t.visitSql_stmt_list(this):t.visitChildren(this)}},rr=class extends P{static{Ss(this,"Ansi_sql_stmt_listContext")}constructor(t,e){super(t,e)}EOF(){return this.getToken(tr.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(tr.SEMICOLON):this.getToken(tr.SEMICOLON,t)}get ruleIndex(){return tr.RULE_ansi_sql_stmt_list}accept(t){return t.visitAnsi_sql_stmt_list?t.visitAnsi_sql_stmt_list(this):t.visitChildren(this)}},ir=class extends P{static{Ss(this,"Lambda_bodyContext")}constructor(t,e){super(t,e)}RETURN(){return this.getToken(tr.RETURN,0)}expr(){return this.getRuleContext(0,hr)}SEMICOLON(t){return void 0===t?this.getTokens(tr.SEMICOLON):this.getToken(tr.SEMICOLON,t)}lambda_stmt(t){return void 0===t?this.getRuleContexts(ar):this.getRuleContext(t,ar)}get ruleIndex(){return tr.RULE_lambda_body}accept(t){return t.visitLambda_body?t.visitLambda_body(this):t.visitChildren(this)}},ar=class extends P{static{Ss(this,"Lambda_stmtContext")}constructor(t,e){super(t,e)}named_nodes_stmt(){return this.getRuleContext(0,iE)}import_stmt(){return this.getRuleContext(0,ta)}get ruleIndex(){return tr.RULE_lambda_stmt}accept(t){return t.visitLambda_stmt?t.visitLambda_stmt(this):t.visitChildren(this)}},nr=class extends P{static{Ss(this,"Sql_stmtContext")}constructor(t,e){super(t,e)}sql_stmt_core(){return this.getRuleContext(0,cr)}EXPLAIN(){return this.getToken(tr.EXPLAIN,0)}QUERY(){return this.getToken(tr.QUERY,0)}PLAN(){return this.getToken(tr.PLAN,0)}get ruleIndex(){return tr.RULE_sql_stmt}accept(t){return t.visitSql_stmt?t.visitSql_stmt(this):t.visitChildren(this)}},cr=class extends P{static{Ss(this,"Sql_stmt_coreContext")}constructor(t,e){super(t,e)}pragma_stmt(){return this.getRuleContext(0,aa)}select_stmt(){return this.getRuleContext(0,oa)}named_nodes_stmt(){return this.getRuleContext(0,iE)}create_table_stmt(){return this.getRuleContext(0,jn)}drop_table_stmt(){return this.getRuleContext(0,_h)}use_stmt(){return this.getRuleContext(0,sE)}into_table_stmt(){return this.getRuleContext(0,In)}commit_stmt(){return this.getRuleContext(0,aE)}update_stmt(){return this.getRuleContext(0,io)}delete_stmt(){return this.getRuleContext(0,ro)}rollback_stmt(){return this.getRuleContext(0,nE)}declare_stmt(){return this.getRuleContext(0,Zi)}import_stmt(){return this.getRuleContext(0,ta)}export_stmt(){return this.getRuleContext(0,ea)}alter_table_stmt(){return this.getRuleContext(0,dc)}alter_external_table_stmt(){return this.getRuleContext(0,Cc)}do_stmt(){return this.getRuleContext(0,ia)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Wh)}if_stmt(){return this.getRuleContext(0,Kh)}for_stmt(){return this.getRuleContext(0,Qh)}values_stmt(){return this.getRuleContext(0,gn)}create_user_stmt(){return this.getRuleContext(0,Th)}alter_user_stmt(){return this.getRuleContext(0,Ah)}create_group_stmt(){return this.getRuleContext(0,Sh)}alter_group_stmt(){return this.getRuleContext(0,dh)}drop_role_stmt(){return this.getRuleContext(0,Lh)}create_object_stmt(){return this.getRuleContext(0,Hn)}alter_object_stmt(){return this.getRuleContext(0,Fn)}drop_object_stmt(){return this.getRuleContext(0,Bn)}create_external_data_source_stmt(){return this.getRuleContext(0,Pn)}alter_external_data_source_stmt(){return this.getRuleContext(0,kn)}drop_external_data_source_stmt(){return this.getRuleContext(0,yn)}create_replication_stmt(){return this.getRuleContext(0,vh)}drop_replication_stmt(){return this.getRuleContext(0,Yh)}create_topic_stmt(){return this.getRuleContext(0,lo)}alter_topic_stmt(){return this.getRuleContext(0,To)}drop_topic_stmt(){return this.getRuleContext(0,xo)}grant_permissions_stmt(){return this.getRuleContext(0,Ih)}revoke_permissions_stmt(){return this.getRuleContext(0,Oh)}alter_table_store_stmt(){return this.getRuleContext(0,Ic)}upsert_object_stmt(){return this.getRuleContext(0,bn)}create_view_stmt(){return this.getRuleContext(0,Dn)}drop_view_stmt(){return this.getRuleContext(0,vn)}alter_replication_stmt(){return this.getRuleContext(0,Fh)}create_resource_pool_stmt(){return this.getRuleContext(0,xh)}alter_resource_pool_stmt(){return this.getRuleContext(0,Uh)}drop_resource_pool_stmt(){return this.getRuleContext(0,Ph)}create_backup_collection_stmt(){return this.getRuleContext(0,zn)}alter_backup_collection_stmt(){return this.getRuleContext(0,Zn)}drop_backup_collection_stmt(){return this.getRuleContext(0,$n)}analyze_stmt(){return this.getRuleContext(0,oE)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,kh)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Mh)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Dh)}backup_stmt(){return this.getRuleContext(0,Ec)}restore_stmt(){return this.getRuleContext(0,lc)}get ruleIndex(){return tr.RULE_sql_stmt_core}accept(t){return t.visitSql_stmt_core?t.visitSql_stmt_core(this):t.visitChildren(this)}},hr=class extends P{static{Ss(this,"ExprContext")}constructor(t,e){super(t,e)}or_subexpr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}OR(t){return void 0===t?this.getTokens(tr.OR):this.getToken(tr.OR,t)}type_name_composite(){return this.getRuleContext(0,Qi)}get ruleIndex(){return tr.RULE_expr}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}},or=class extends P{static{Ss(this,"Or_subexprContext")}constructor(t,e){super(t,e)}and_subexpr(t){return void 0===t?this.getRuleContexts(Er):this.getRuleContext(t,Er)}AND(t){return void 0===t?this.getTokens(tr.AND):this.getToken(tr.AND,t)}get ruleIndex(){return tr.RULE_or_subexpr}accept(t){return t.visitOr_subexpr?t.visitOr_subexpr(this):t.visitChildren(this)}},Er=class extends P{static{Ss(this,"And_subexprContext")}constructor(t,e){super(t,e)}xor_subexpr(t){return void 0===t?this.getRuleContexts(lr):this.getRuleContext(t,lr)}XOR(t){return void 0===t?this.getTokens(tr.XOR):this.getToken(tr.XOR,t)}get ruleIndex(){return tr.RULE_and_subexpr}accept(t){return t.visitAnd_subexpr?t.visitAnd_subexpr(this):t.visitChildren(this)}},lr=class extends P{static{Ss(this,"Xor_subexprContext")}constructor(t,e){super(t,e)}eq_subexpr(){return this.getRuleContext(0,Tr)}cond_expr(){return this.getRuleContext(0,Rr)}get ruleIndex(){return tr.RULE_xor_subexpr}accept(t){return t.visitXor_subexpr?t.visitXor_subexpr(this):t.visitChildren(this)}},ur=class extends P{static{Ss(this,"Distinct_from_opContext")}constructor(t,e){super(t,e)}IS(){return this.getToken(tr.IS,0)}DISTINCT(){return this.getToken(tr.DISTINCT,0)}FROM(){return this.getToken(tr.FROM,0)}NOT(){return this.getToken(tr.NOT,0)}get ruleIndex(){return tr.RULE_distinct_from_op}accept(t){return t.visitDistinct_from_op?t.visitDistinct_from_op(this):t.visitChildren(this)}},Rr=class extends P{static{Ss(this,"Cond_exprContext")}constructor(t,e){super(t,e)}match_op(){return this.getRuleContext(0,_r)}eq_subexpr(t){return void 0===t?this.getRuleContexts(Tr):this.getRuleContext(t,Tr)}NOT(){return this.getToken(tr.NOT,0)}ESCAPE(){return this.getToken(tr.ESCAPE,0)}IN(){return this.getToken(tr.IN,0)}in_expr(){return this.getRuleContext(0,Yr)}COMPACT(){return this.getToken(tr.COMPACT,0)}ISNULL(){return this.getToken(tr.ISNULL,0)}NOTNULL(){return this.getToken(tr.NOTNULL,0)}IS(){return this.getToken(tr.IS,0)}NULL(){return this.getToken(tr.NULL,0)}BETWEEN(){return this.getToken(tr.BETWEEN,0)}AND(){return this.getToken(tr.AND,0)}SYMMETRIC(){return this.getToken(tr.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(tr.ASYMMETRIC,0)}EQUALS(t){return void 0===t?this.getTokens(tr.EQUALS):this.getToken(tr.EQUALS,t)}EQUALS2(t){return void 0===t?this.getTokens(tr.EQUALS2):this.getToken(tr.EQUALS2,t)}NOT_EQUALS(t){return void 0===t?this.getTokens(tr.NOT_EQUALS):this.getToken(tr.NOT_EQUALS,t)}NOT_EQUALS2(t){return void 0===t?this.getTokens(tr.NOT_EQUALS2):this.getToken(tr.NOT_EQUALS2,t)}distinct_from_op(t){return void 0===t?this.getRuleContexts(ur):this.getRuleContext(t,ur)}get ruleIndex(){return tr.RULE_cond_expr}accept(t){return t.visitCond_expr?t.visitCond_expr(this):t.visitChildren(this)}},_r=class extends P{static{Ss(this,"Match_opContext")}constructor(t,e){super(t,e)}LIKE(){return this.getToken(tr.LIKE,0)}ILIKE(){return this.getToken(tr.ILIKE,0)}GLOB(){return this.getToken(tr.GLOB,0)}REGEXP(){return this.getToken(tr.REGEXP,0)}RLIKE(){return this.getToken(tr.RLIKE,0)}MATCH(){return this.getToken(tr.MATCH,0)}get ruleIndex(){return tr.RULE_match_op}accept(t){return t.visitMatch_op?t.visitMatch_op(this):t.visitChildren(this)}},Tr=class extends P{static{Ss(this,"Eq_subexprContext")}constructor(t,e){super(t,e)}neq_subexpr(t){return void 0===t?this.getRuleContexts(Lr):this.getRuleContext(t,Lr)}LESS(t){return void 0===t?this.getTokens(tr.LESS):this.getToken(tr.LESS,t)}LESS_OR_EQ(t){return void 0===t?this.getTokens(tr.LESS_OR_EQ):this.getToken(tr.LESS_OR_EQ,t)}GREATER(t){return void 0===t?this.getTokens(tr.GREATER):this.getToken(tr.GREATER,t)}GREATER_OR_EQ(t){return void 0===t?this.getTokens(tr.GREATER_OR_EQ):this.getToken(tr.GREATER_OR_EQ,t)}get ruleIndex(){return tr.RULE_eq_subexpr}accept(t){return t.visitEq_subexpr?t.visitEq_subexpr(this):t.visitChildren(this)}},Ar=class extends P{static{Ss(this,"Shift_rightContext")}constructor(t,e){super(t,e)}GREATER(t){return void 0===t?this.getTokens(tr.GREATER):this.getToken(tr.GREATER,t)}get ruleIndex(){return tr.RULE_shift_right}accept(t){return t.visitShift_right?t.visitShift_right(this):t.visitChildren(this)}},Sr=class extends P{static{Ss(this,"Rot_rightContext")}constructor(t,e){super(t,e)}GREATER(t){return void 0===t?this.getTokens(tr.GREATER):this.getToken(tr.GREATER,t)}PIPE(){return this.getToken(tr.PIPE,0)}get ruleIndex(){return tr.RULE_rot_right}accept(t){return t.visitRot_right?t.visitRot_right(this):t.visitChildren(this)}},dr=class extends P{static{Ss(this,"Double_questionContext")}constructor(t,e){super(t,e)}QUESTION(t){return void 0===t?this.getTokens(tr.QUESTION):this.getToken(tr.QUESTION,t)}get ruleIndex(){return tr.RULE_double_question}accept(t){return t.visitDouble_question?t.visitDouble_question(this):t.visitChildren(this)}},Lr=class t extends P{static{Ss(this,"Neq_subexprContext")}constructor(t,e){super(t,e)}bit_subexpr(t){return void 0===t?this.getRuleContexts(Cr):this.getRuleContext(t,Cr)}double_question(){return this.getRuleContext(0,dr)}neq_subexpr(){return this.getRuleContext(0,t)}SHIFT_LEFT(t){return void 0===t?this.getTokens(tr.SHIFT_LEFT):this.getToken(tr.SHIFT_LEFT,t)}shift_right(t){return void 0===t?this.getRuleContexts(Ar):this.getRuleContext(t,Ar)}ROT_LEFT(t){return void 0===t?this.getTokens(tr.ROT_LEFT):this.getToken(tr.ROT_LEFT,t)}rot_right(t){return void 0===t?this.getRuleContexts(Sr):this.getRuleContext(t,Sr)}AMPERSAND(t){return void 0===t?this.getTokens(tr.AMPERSAND):this.getToken(tr.AMPERSAND,t)}PIPE(t){return void 0===t?this.getTokens(tr.PIPE):this.getToken(tr.PIPE,t)}CARET(t){return void 0===t?this.getTokens(tr.CARET):this.getToken(tr.CARET,t)}QUESTION(t){return void 0===t?this.getTokens(tr.QUESTION):this.getToken(tr.QUESTION,t)}get ruleIndex(){return tr.RULE_neq_subexpr}accept(t){return t.visitNeq_subexpr?t.visitNeq_subexpr(this):t.visitChildren(this)}},Cr=class extends P{static{Ss(this,"Bit_subexprContext")}constructor(t,e){super(t,e)}add_subexpr(t){return void 0===t?this.getRuleContexts(Nr):this.getRuleContext(t,Nr)}PLUS(t){return void 0===t?this.getTokens(tr.PLUS):this.getToken(tr.PLUS,t)}MINUS(t){return void 0===t?this.getTokens(tr.MINUS):this.getToken(tr.MINUS,t)}get ruleIndex(){return tr.RULE_bit_subexpr}accept(t){return t.visitBit_subexpr?t.visitBit_subexpr(this):t.visitChildren(this)}},Nr=class extends P{static{Ss(this,"Add_subexprContext")}constructor(t,e){super(t,e)}mul_subexpr(t){return void 0===t?this.getRuleContexts(Ir):this.getRuleContext(t,Ir)}ASTERISK(t){return void 0===t?this.getTokens(tr.ASTERISK):this.getToken(tr.ASTERISK,t)}SLASH(t){return void 0===t?this.getTokens(tr.SLASH):this.getToken(tr.SLASH,t)}PERCENT(t){return void 0===t?this.getTokens(tr.PERCENT):this.getToken(tr.PERCENT,t)}get ruleIndex(){return tr.RULE_add_subexpr}accept(t){return t.visitAdd_subexpr?t.visitAdd_subexpr(this):t.visitChildren(this)}},Ir=class extends P{static{Ss(this,"Mul_subexprContext")}constructor(t,e){super(t,e)}con_subexpr(t){return void 0===t?this.getRuleContexts(Or):this.getRuleContext(t,Or)}DOUBLE_PIPE(t){return void 0===t?this.getTokens(tr.DOUBLE_PIPE):this.getToken(tr.DOUBLE_PIPE,t)}get ruleIndex(){return tr.RULE_mul_subexpr}accept(t){return t.visitMul_subexpr?t.visitMul_subexpr(this):t.visitChildren(this)}},Or=class extends P{static{Ss(this,"Con_subexprContext")}constructor(t,e){super(t,e)}unary_subexpr(){return this.getRuleContext(0,Ur)}unary_op(){return this.getRuleContext(0,pr)}get ruleIndex(){return tr.RULE_con_subexpr}accept(t){return t.visitCon_subexpr?t.visitCon_subexpr(this):t.visitChildren(this)}},pr=class extends P{static{Ss(this,"Unary_opContext")}constructor(t,e){super(t,e)}PLUS(){return this.getToken(tr.PLUS,0)}MINUS(){return this.getToken(tr.MINUS,0)}TILDA(){return this.getToken(tr.TILDA,0)}NOT(){return this.getToken(tr.NOT,0)}get ruleIndex(){return tr.RULE_unary_op}accept(t){return t.visitUnary_op?t.visitUnary_op(this):t.visitChildren(this)}},gr=class extends P{static{Ss(this,"Unary_subexpr_suffixContext")}constructor(t,e){super(t,e)}COLLATE(){return this.getToken(tr.COLLATE,0)}an_id(){return this.getRuleContext(0,CE)}key_expr(t){return void 0===t?this.getRuleContexts(Ai):this.getRuleContext(t,Ai)}invoke_expr(t){return void 0===t?this.getRuleContexts(Ri):this.getRuleContext(t,Ri)}DOT(t){return void 0===t?this.getTokens(tr.DOT):this.getToken(tr.DOT,t)}bind_parameter(t){return void 0===t?this.getRuleContexts(Li):this.getRuleContext(t,Li)}DIGITS(t){return void 0===t?this.getTokens(tr.DIGITS):this.getToken(tr.DIGITS,t)}an_id_or_type(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}get ruleIndex(){return tr.RULE_unary_subexpr_suffix}accept(t){return t.visitUnary_subexpr_suffix?t.visitUnary_subexpr_suffix(this):t.visitChildren(this)}},mr=class extends P{static{Ss(this,"Unary_casual_subexprContext")}constructor(t,e){super(t,e)}unary_subexpr_suffix(){return this.getRuleContext(0,gr)}id_expr(){return this.getRuleContext(0,RE)}atom_expr(){return this.getRuleContext(0,vr)}get ruleIndex(){return tr.RULE_unary_casual_subexpr}accept(t){return t.visitUnary_casual_subexpr?t.visitUnary_casual_subexpr(this):t.visitChildren(this)}},xr=class extends P{static{Ss(this,"In_unary_casual_subexprContext")}constructor(t,e){super(t,e)}unary_subexpr_suffix(){return this.getRuleContext(0,gr)}id_expr_in(){return this.getRuleContext(0,_E)}in_atom_expr(){return this.getRuleContext(0,br)}get ruleIndex(){return tr.RULE_in_unary_casual_subexpr}accept(t){return t.visitIn_unary_casual_subexpr?t.visitIn_unary_casual_subexpr(this):t.visitChildren(this)}},Ur=class extends P{static{Ss(this,"Unary_subexprContext")}constructor(t,e){super(t,e)}unary_casual_subexpr(){return this.getRuleContext(0,mr)}json_api_expr(){return this.getRuleContext(0,Vr)}get ruleIndex(){return tr.RULE_unary_subexpr}accept(t){return t.visitUnary_subexpr?t.visitUnary_subexpr(this):t.visitChildren(this)}},fr=class extends P{static{Ss(this,"In_unary_subexprContext")}constructor(t,e){super(t,e)}in_unary_casual_subexpr(){return this.getRuleContext(0,xr)}json_api_expr(){return this.getRuleContext(0,Vr)}get ruleIndex(){return tr.RULE_in_unary_subexpr}accept(t){return t.visitIn_unary_subexpr?t.visitIn_unary_subexpr(this):t.visitChildren(this)}},Pr=class extends P{static{Ss(this,"List_literalContext")}constructor(t,e){super(t,e)}LBRACE_SQUARE(){return this.getToken(tr.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(tr.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,ri)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_list_literal}accept(t){return t.visitList_literal?t.visitList_literal(this):t.visitChildren(this)}},kr=class extends P{static{Ss(this,"Expr_dict_listContext")}constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}COLON(t){return void 0===t?this.getTokens(tr.COLON):this.getToken(tr.COLON,t)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_expr_dict_list}accept(t){return t.visitExpr_dict_list?t.visitExpr_dict_list(this):t.visitChildren(this)}},Mr=class extends P{static{Ss(this,"Dict_literalContext")}constructor(t,e){super(t,e)}LBRACE_CURLY(){return this.getToken(tr.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(tr.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,kr)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_dict_literal}accept(t){return t.visitDict_literal?t.visitDict_literal(this):t.visitChildren(this)}},yr=class extends P{static{Ss(this,"Expr_struct_listContext")}constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}COLON(t){return void 0===t?this.getTokens(tr.COLON):this.getToken(tr.COLON,t)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_expr_struct_list}accept(t){return t.visitExpr_struct_list?t.visitExpr_struct_list(this):t.visitChildren(this)}},Dr=class extends P{static{Ss(this,"Struct_literalContext")}constructor(t,e){super(t,e)}STRUCT_OPEN(){return this.getToken(tr.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(tr.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,yr)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_struct_literal}accept(t){return t.visitStruct_literal?t.visitStruct_literal(this):t.visitChildren(this)}},vr=class extends P{static{Ss(this,"Atom_exprContext")}constructor(t,e){super(t,e)}literal_value(){return this.getRuleContext(0,di)}bind_parameter(){return this.getRuleContext(0,Li)}lambda(){return this.getRuleContext(0,Br)}cast_expr(){return this.getRuleContext(0,Hr)}exists_expr(){return this.getRuleContext(0,Fr)}case_expr(){return this.getRuleContext(0,Gr)}an_id_or_type(){return this.getRuleContext(0,NE)}NAMESPACE(){return this.getToken(tr.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,DE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,zi)}bitcast_expr(){return this.getRuleContext(0,wr)}list_literal(){return this.getRuleContext(0,Pr)}dict_literal(){return this.getRuleContext(0,Mr)}struct_literal(){return this.getRuleContext(0,Dr)}get ruleIndex(){return tr.RULE_atom_expr}accept(t){return t.visitAtom_expr?t.visitAtom_expr(this):t.visitChildren(this)}},br=class extends P{static{Ss(this,"In_atom_exprContext")}constructor(t,e){super(t,e)}literal_value(){return this.getRuleContext(0,di)}bind_parameter(){return this.getRuleContext(0,Li)}lambda(){return this.getRuleContext(0,Br)}cast_expr(){return this.getRuleContext(0,Hr)}case_expr(){return this.getRuleContext(0,Gr)}an_id_or_type(){return this.getRuleContext(0,NE)}NAMESPACE(){return this.getToken(tr.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,DE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}select_stmt(){return this.getRuleContext(0,oa)}RPAREN(){return this.getToken(tr.RPAREN,0)}value_constructor(){return this.getRuleContext(0,zi)}bitcast_expr(){return this.getRuleContext(0,wr)}list_literal(){return this.getRuleContext(0,Pr)}dict_literal(){return this.getRuleContext(0,Mr)}struct_literal(){return this.getRuleContext(0,Dr)}get ruleIndex(){return tr.RULE_in_atom_expr}accept(t){return t.visitIn_atom_expr?t.visitIn_atom_expr(this):t.visitChildren(this)}},Hr=class extends P{static{Ss(this,"Cast_exprContext")}constructor(t,e){super(t,e)}CAST(){return this.getToken(tr.CAST,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(){return this.getRuleContext(0,hr)}AS(){return this.getToken(tr.AS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_cast_expr}accept(t){return t.visitCast_expr?t.visitCast_expr(this):t.visitChildren(this)}},wr=class extends P{static{Ss(this,"Bitcast_exprContext")}constructor(t,e){super(t,e)}BITCAST(){return this.getToken(tr.BITCAST,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(){return this.getRuleContext(0,hr)}AS(){return this.getToken(tr.AS,0)}type_name_simple(){return this.getRuleContext(0,gi)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_bitcast_expr}accept(t){return t.visitBitcast_expr?t.visitBitcast_expr(this):t.visitChildren(this)}},Fr=class extends P{static{Ss(this,"Exists_exprContext")}constructor(t,e){super(t,e)}EXISTS(){return this.getToken(tr.EXISTS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}select_stmt(){return this.getRuleContext(0,oa)}values_stmt(){return this.getRuleContext(0,gn)}get ruleIndex(){return tr.RULE_exists_expr}accept(t){return t.visitExists_expr?t.visitExists_expr(this):t.visitChildren(this)}},Gr=class extends P{static{Ss(this,"Case_exprContext")}constructor(t,e){super(t,e)}CASE(){return this.getToken(tr.CASE,0)}END(){return this.getToken(tr.END,0)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}when_expr(t){return void 0===t?this.getRuleContexts(Si):this.getRuleContext(t,Si)}ELSE(){return this.getToken(tr.ELSE,0)}get ruleIndex(){return tr.RULE_case_expr}accept(t){return t.visitCase_expr?t.visitCase_expr(this):t.visitChildren(this)}},Br=class extends P{static{Ss(this,"LambdaContext")}constructor(t,e){super(t,e)}smart_parenthesis(){return this.getRuleContext(0,si)}ARROW(){return this.getToken(tr.ARROW,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(){return this.getRuleContext(0,hr)}RPAREN(){return this.getToken(tr.RPAREN,0)}LBRACE_CURLY(){return this.getToken(tr.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,ir)}RBRACE_CURLY(){return this.getToken(tr.RBRACE_CURLY,0)}get ruleIndex(){return tr.RULE_lambda}accept(t){return t.visitLambda?t.visitLambda(this):t.visitChildren(this)}},Yr=class extends P{static{Ss(this,"In_exprContext")}constructor(t,e){super(t,e)}in_unary_subexpr(){return this.getRuleContext(0,fr)}get ruleIndex(){return tr.RULE_in_expr}accept(t){return t.visitIn_expr?t.visitIn_expr(this):t.visitChildren(this)}},Vr=class extends P{static{Ss(this,"Json_api_exprContext")}constructor(t,e){super(t,e)}json_value(){return this.getRuleContext(0,Jr)}json_exists(){return this.getRuleContext(0,Zr)}json_query(){return this.getRuleContext(0,ei)}get ruleIndex(){return tr.RULE_json_api_expr}accept(t){return t.visitJson_api_expr?t.visitJson_api_expr(this):t.visitChildren(this)}},Wr=class extends P{static{Ss(this,"Jsonpath_specContext")}constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_jsonpath_spec}accept(t){return t.visitJsonpath_spec?t.visitJsonpath_spec(this):t.visitChildren(this)}},Xr=class extends P{static{Ss(this,"Json_variable_nameContext")}constructor(t,e){super(t,e)}id_expr(){return this.getRuleContext(0,RE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_json_variable_name}accept(t){return t.visitJson_variable_name?t.visitJson_variable_name(this):t.visitChildren(this)}},Kr=class extends P{static{Ss(this,"Json_variableContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}AS(){return this.getToken(tr.AS,0)}json_variable_name(){return this.getRuleContext(0,Xr)}get ruleIndex(){return tr.RULE_json_variable}accept(t){return t.visitJson_variable?t.visitJson_variable(this):t.visitChildren(this)}},Qr=class extends P{static{Ss(this,"Json_variablesContext")}constructor(t,e){super(t,e)}json_variable(t){return void 0===t?this.getRuleContexts(Kr):this.getRuleContext(t,Kr)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_json_variables}accept(t){return t.visitJson_variables?t.visitJson_variables(this):t.visitChildren(this)}},qr=class extends P{static{Ss(this,"Json_common_argsContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}COMMA(){return this.getToken(tr.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,Wr)}PASSING(){return this.getToken(tr.PASSING,0)}json_variables(){return this.getRuleContext(0,Qr)}get ruleIndex(){return tr.RULE_json_common_args}accept(t){return t.visitJson_common_args?t.visitJson_common_args(this):t.visitChildren(this)}},jr=class extends P{static{Ss(this,"Json_case_handlerContext")}constructor(t,e){super(t,e)}ERROR(){return this.getToken(tr.ERROR,0)}NULL(){return this.getToken(tr.NULL,0)}DEFAULT(){return this.getToken(tr.DEFAULT,0)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_json_case_handler}accept(t){return t.visitJson_case_handler?t.visitJson_case_handler(this):t.visitChildren(this)}},Jr=class extends P{static{Ss(this,"Json_valueContext")}constructor(t,e){super(t,e)}JSON_VALUE(){return this.getToken(tr.JSON_VALUE,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}json_common_args(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(tr.RPAREN,0)}RETURNING(){return this.getToken(tr.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,gi)}json_case_handler(t){return void 0===t?this.getRuleContexts(jr):this.getRuleContext(t,jr)}ON(t){return void 0===t?this.getTokens(tr.ON):this.getToken(tr.ON,t)}EMPTY(t){return void 0===t?this.getTokens(tr.EMPTY):this.getToken(tr.EMPTY,t)}ERROR(t){return void 0===t?this.getTokens(tr.ERROR):this.getToken(tr.ERROR,t)}get ruleIndex(){return tr.RULE_json_value}accept(t){return t.visitJson_value?t.visitJson_value(this):t.visitChildren(this)}},zr=class extends P{static{Ss(this,"Json_exists_handlerContext")}constructor(t,e){super(t,e)}ON(){return this.getToken(tr.ON,0)}ERROR(t){return void 0===t?this.getTokens(tr.ERROR):this.getToken(tr.ERROR,t)}TRUE(){return this.getToken(tr.TRUE,0)}FALSE(){return this.getToken(tr.FALSE,0)}UNKNOWN(){return this.getToken(tr.UNKNOWN,0)}get ruleIndex(){return tr.RULE_json_exists_handler}accept(t){return t.visitJson_exists_handler?t.visitJson_exists_handler(this):t.visitChildren(this)}},Zr=class extends P{static{Ss(this,"Json_existsContext")}constructor(t,e){super(t,e)}JSON_EXISTS(){return this.getToken(tr.JSON_EXISTS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}json_common_args(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(tr.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,zr)}get ruleIndex(){return tr.RULE_json_exists}accept(t){return t.visitJson_exists?t.visitJson_exists(this):t.visitChildren(this)}},$r=class extends P{static{Ss(this,"Json_query_wrapperContext")}constructor(t,e){super(t,e)}WITHOUT(){return this.getToken(tr.WITHOUT,0)}ARRAY(){return this.getToken(tr.ARRAY,0)}WITH(){return this.getToken(tr.WITH,0)}CONDITIONAL(){return this.getToken(tr.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(tr.UNCONDITIONAL,0)}get ruleIndex(){return tr.RULE_json_query_wrapper}accept(t){return t.visitJson_query_wrapper?t.visitJson_query_wrapper(this):t.visitChildren(this)}},ti=class extends P{static{Ss(this,"Json_query_handlerContext")}constructor(t,e){super(t,e)}ERROR(){return this.getToken(tr.ERROR,0)}NULL(){return this.getToken(tr.NULL,0)}EMPTY(){return this.getToken(tr.EMPTY,0)}ARRAY(){return this.getToken(tr.ARRAY,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}get ruleIndex(){return tr.RULE_json_query_handler}accept(t){return t.visitJson_query_handler?t.visitJson_query_handler(this):t.visitChildren(this)}},ei=class extends P{static{Ss(this,"Json_queryContext")}constructor(t,e){super(t,e)}JSON_QUERY(){return this.getToken(tr.JSON_QUERY,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}json_common_args(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(tr.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,$r)}WRAPPER(){return this.getToken(tr.WRAPPER,0)}json_query_handler(t){return void 0===t?this.getRuleContexts(ti):this.getRuleContext(t,ti)}ON(t){return void 0===t?this.getTokens(tr.ON):this.getToken(tr.ON,t)}EMPTY(){return this.getToken(tr.EMPTY,0)}ERROR(){return this.getToken(tr.ERROR,0)}get ruleIndex(){return tr.RULE_json_query}accept(t){return t.visitJson_query?t.visitJson_query(this):t.visitChildren(this)}},si=class extends P{static{Ss(this,"Smart_parenthesisContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,ui)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_smart_parenthesis}accept(t){return t.visitSmart_parenthesis?t.visitSmart_parenthesis(this):t.visitChildren(this)}},ri=class extends P{static{Ss(this,"Expr_listContext")}constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_expr_list}accept(t){return t.visitExpr_list?t.visitExpr_list(this):t.visitChildren(this)}},ii=class extends P{static{Ss(this,"Pure_column_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_pure_column_list}accept(t){return t.visitPure_column_list?t.visitPure_column_list(this):t.visitChildren(this)}},ai=class extends P{static{Ss(this,"Pure_column_or_namedContext")}constructor(t,e){super(t,e)}bind_parameter(){return this.getRuleContext(0,Li)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_pure_column_or_named}accept(t){return t.visitPure_column_or_named?t.visitPure_column_or_named(this):t.visitChildren(this)}},ni=class extends P{static{Ss(this,"Pure_column_or_named_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}pure_column_or_named(t){return void 0===t?this.getRuleContexts(ai):this.getRuleContext(t,ai)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_pure_column_or_named_list}accept(t){return t.visitPure_column_or_named_list?t.visitPure_column_or_named_list(this):t.visitChildren(this)}},ci=class extends P{static{Ss(this,"Column_nameContext")}constructor(t,e){super(t,e)}opt_id_prefix(){return this.getRuleContext(0,ME)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_column_name}accept(t){return t.visitColumn_name?t.visitColumn_name(this):t.visitChildren(this)}},hi=class extends P{static{Ss(this,"Without_column_nameContext")}constructor(t,e){super(t,e)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}DOT(){return this.getToken(tr.DOT,0)}an_id_without(){return this.getRuleContext(0,xE)}get ruleIndex(){return tr.RULE_without_column_name}accept(t){return t.visitWithout_column_name?t.visitWithout_column_name(this):t.visitChildren(this)}},oi=class extends P{static{Ss(this,"Column_listContext")}constructor(t,e){super(t,e)}column_name(t){return void 0===t?this.getRuleContexts(ci):this.getRuleContext(t,ci)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_column_list}accept(t){return t.visitColumn_list?t.visitColumn_list(this):t.visitChildren(this)}},Ei=class extends P{static{Ss(this,"Without_column_listContext")}constructor(t,e){super(t,e)}without_column_name(t){return void 0===t?this.getRuleContexts(hi):this.getRuleContext(t,hi)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_without_column_list}accept(t){return t.visitWithout_column_list?t.visitWithout_column_list(this):t.visitChildren(this)}},li=class extends P{static{Ss(this,"Named_exprContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}AS(){return this.getToken(tr.AS,0)}an_id_or_type(){return this.getRuleContext(0,NE)}get ruleIndex(){return tr.RULE_named_expr}accept(t){return t.visitNamed_expr?t.visitNamed_expr(this):t.visitChildren(this)}},ui=class extends P{static{Ss(this,"Named_expr_listContext")}constructor(t,e){super(t,e)}named_expr(t){return void 0===t?this.getRuleContexts(li):this.getRuleContext(t,li)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_named_expr_list}accept(t){return t.visitNamed_expr_list?t.visitNamed_expr_list(this):t.visitChildren(this)}},Ri=class extends P{static{Ss(this,"Invoke_exprContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,_i)}opt_set_quantifier(){return this.getRuleContext(0,La)}named_expr_list(){return this.getRuleContext(0,ui)}ASTERISK(){return this.getToken(tr.ASTERISK,0)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_invoke_expr}accept(t){return t.visitInvoke_expr?t.visitInvoke_expr(this):t.visitChildren(this)}},_i=class extends P{static{Ss(this,"Invoke_expr_tailContext")}constructor(t,e){super(t,e)}null_treatment(){return this.getRuleContext(0,Ho)}filter_clause(){return this.getRuleContext(0,wo)}OVER(){return this.getToken(tr.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,Fo)}get ruleIndex(){return tr.RULE_invoke_expr_tail}accept(t){return t.visitInvoke_expr_tail?t.visitInvoke_expr_tail(this):t.visitChildren(this)}},Ti=class extends P{static{Ss(this,"Using_call_exprContext")}constructor(t,e){super(t,e)}invoke_expr(){return this.getRuleContext(0,Ri)}an_id_or_type(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}NAMESPACE(){return this.getToken(tr.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,OE)}bind_parameter(){return this.getRuleContext(0,Li)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}FUNCTION(){return this.getToken(tr.FUNCTION,0)}get ruleIndex(){return tr.RULE_using_call_expr}accept(t){return t.visitUsing_call_expr?t.visitUsing_call_expr(this):t.visitChildren(this)}},Ai=class extends P{static{Ss(this,"Key_exprContext")}constructor(t,e){super(t,e)}LBRACE_SQUARE(){return this.getToken(tr.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,hr)}RBRACE_SQUARE(){return this.getToken(tr.RBRACE_SQUARE,0)}get ruleIndex(){return tr.RULE_key_expr}accept(t){return t.visitKey_expr?t.visitKey_expr(this):t.visitChildren(this)}},Si=class extends P{static{Ss(this,"When_exprContext")}constructor(t,e){super(t,e)}WHEN(){return this.getToken(tr.WHEN,0)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}THEN(){return this.getToken(tr.THEN,0)}get ruleIndex(){return tr.RULE_when_expr}accept(t){return t.visitWhen_expr?t.visitWhen_expr(this):t.visitChildren(this)}},di=class extends P{static{Ss(this,"Literal_valueContext")}constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,ZE)}real(){return this.getRuleContext(0,zE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}BLOB(){return this.getToken(tr.BLOB,0)}NULL(){return this.getToken(tr.NULL,0)}CURRENT_TIME(){return this.getToken(tr.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(tr.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(tr.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,JE)}EMPTY_ACTION(){return this.getToken(tr.EMPTY_ACTION,0)}get ruleIndex(){return tr.RULE_literal_value}accept(t){return t.visitLiteral_value?t.visitLiteral_value(this):t.visitChildren(this)}},Li=class extends P{static{Ss(this,"Bind_parameterContext")}constructor(t,e){super(t,e)}DOLLAR(){return this.getToken(tr.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,NE)}TRUE(){return this.getToken(tr.TRUE,0)}FALSE(){return this.getToken(tr.FALSE,0)}get ruleIndex(){return tr.RULE_bind_parameter}accept(t){return t.visitBind_parameter?t.visitBind_parameter(this):t.visitChildren(this)}},Ci=class extends P{static{Ss(this,"Opt_bind_parameterContext")}constructor(t,e){super(t,e)}bind_parameter(){return this.getRuleContext(0,Li)}QUESTION(){return this.getToken(tr.QUESTION,0)}get ruleIndex(){return tr.RULE_opt_bind_parameter}accept(t){return t.visitOpt_bind_parameter?t.visitOpt_bind_parameter(this):t.visitChildren(this)}},Ni=class extends P{static{Ss(this,"Bind_parameter_listContext")}constructor(t,e){super(t,e)}bind_parameter(t){return void 0===t?this.getRuleContexts(Li):this.getRuleContext(t,Li)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_bind_parameter_list}accept(t){return t.visitBind_parameter_list?t.visitBind_parameter_list(this):t.visitChildren(this)}},Ii=class extends P{static{Ss(this,"Named_bind_parameterContext")}constructor(t,e){super(t,e)}bind_parameter(t){return void 0===t?this.getRuleContexts(Li):this.getRuleContext(t,Li)}AS(){return this.getToken(tr.AS,0)}get ruleIndex(){return tr.RULE_named_bind_parameter}accept(t){return t.visitNamed_bind_parameter?t.visitNamed_bind_parameter(this):t.visitChildren(this)}},Oi=class extends P{static{Ss(this,"Named_bind_parameter_listContext")}constructor(t,e){super(t,e)}named_bind_parameter(t){return void 0===t?this.getRuleContexts(Ii):this.getRuleContext(t,Ii)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_named_bind_parameter_list}accept(t){return t.visitNamed_bind_parameter_list?t.visitNamed_bind_parameter_list(this):t.visitChildren(this)}},pi=class extends P{static{Ss(this,"Signed_numberContext")}constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,ZE)}real(){return this.getRuleContext(0,zE)}PLUS(){return this.getToken(tr.PLUS,0)}MINUS(){return this.getToken(tr.MINUS,0)}get ruleIndex(){return tr.RULE_signed_number}accept(t){return t.visitSigned_number?t.visitSigned_number(this):t.visitChildren(this)}},gi=class extends P{static{Ss(this,"Type_name_simpleContext")}constructor(t,e){super(t,e)}an_id_pure(){return this.getRuleContext(0,fE)}get ruleIndex(){return tr.RULE_type_name_simple}accept(t){return t.visitType_name_simple?t.visitType_name_simple(this):t.visitChildren(this)}},mi=class extends P{static{Ss(this,"Integer_or_bindContext")}constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,ZE)}bind_parameter(){return this.getRuleContext(0,Li)}get ruleIndex(){return tr.RULE_integer_or_bind}accept(t){return t.visitInteger_or_bind?t.visitInteger_or_bind(this):t.visitChildren(this)}},xi=class extends P{static{Ss(this,"Type_name_tagContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,lE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Li)}get ruleIndex(){return tr.RULE_type_name_tag}accept(t){return t.visitType_name_tag?t.visitType_name_tag(this):t.visitChildren(this)}},Ui=class extends P{static{Ss(this,"Struct_argContext")}constructor(t,e){super(t,e)}type_name_tag(){return this.getRuleContext(0,xi)}COLON(){return this.getToken(tr.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}get ruleIndex(){return tr.RULE_struct_arg}accept(t){return t.visitStruct_arg?t.visitStruct_arg(this):t.visitChildren(this)}},fi=class extends P{static{Ss(this,"Struct_arg_positionalContext")}constructor(t,e){super(t,e)}type_name_tag(){return this.getRuleContext(0,xi)}type_name_or_bind(){return this.getRuleContext(0,ji)}NULL(){return this.getToken(tr.NULL,0)}NOT(){return this.getToken(tr.NOT,0)}AS(){return this.getToken(tr.AS,0)}get ruleIndex(){return tr.RULE_struct_arg_positional}accept(t){return t.visitStruct_arg_positional?t.visitStruct_arg_positional(this):t.visitChildren(this)}},Pi=class extends P{static{Ss(this,"Variant_argContext")}constructor(t,e){super(t,e)}type_name_or_bind(){return this.getRuleContext(0,ji)}type_name_tag(){return this.getRuleContext(0,xi)}COLON(){return this.getToken(tr.COLON,0)}get ruleIndex(){return tr.RULE_variant_arg}accept(t){return t.visitVariant_arg?t.visitVariant_arg(this):t.visitChildren(this)}},ki=class extends P{static{Ss(this,"Callable_argContext")}constructor(t,e){super(t,e)}variant_arg(){return this.getRuleContext(0,Pi)}LBRACE_CURLY(){return this.getToken(tr.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(tr.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(tr.RBRACE_CURLY,0)}get ruleIndex(){return tr.RULE_callable_arg}accept(t){return t.visitCallable_arg?t.visitCallable_arg(this):t.visitChildren(this)}},Mi=class extends P{static{Ss(this,"Callable_arg_listContext")}constructor(t,e){super(t,e)}callable_arg(t){return void 0===t?this.getRuleContexts(ki):this.getRuleContext(t,ki)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_callable_arg_list}accept(t){return t.visitCallable_arg_list?t.visitCallable_arg_list(this):t.visitChildren(this)}},yi=class extends P{static{Ss(this,"Type_name_decimalContext")}constructor(t,e){super(t,e)}DECIMAL(){return this.getToken(tr.DECIMAL,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}integer_or_bind(t){return void 0===t?this.getRuleContexts(mi):this.getRuleContext(t,mi)}COMMA(){return this.getToken(tr.COMMA,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_type_name_decimal}accept(t){return t.visitType_name_decimal?t.visitType_name_decimal(this):t.visitChildren(this)}},Di=class extends P{static{Ss(this,"Type_name_optionalContext")}constructor(t,e){super(t,e)}OPTIONAL(){return this.getToken(tr.OPTIONAL,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_optional}accept(t){return t.visitType_name_optional?t.visitType_name_optional(this):t.visitChildren(this)}},vi=class extends P{static{Ss(this,"Type_name_tupleContext")}constructor(t,e){super(t,e)}TUPLE(){return this.getToken(tr.TUPLE,0)}LESS(){return this.getToken(tr.LESS,0)}GREATER(){return this.getToken(tr.GREATER,0)}NOT_EQUALS2(){return this.getToken(tr.NOT_EQUALS2,0)}type_name_or_bind(t){return void 0===t?this.getRuleContexts(ji):this.getRuleContext(t,ji)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_type_name_tuple}accept(t){return t.visitType_name_tuple?t.visitType_name_tuple(this):t.visitChildren(this)}},bi=class extends P{static{Ss(this,"Type_name_structContext")}constructor(t,e){super(t,e)}STRUCT(){return this.getToken(tr.STRUCT,0)}LESS(){return this.getToken(tr.LESS,0)}GREATER(){return this.getToken(tr.GREATER,0)}NOT_EQUALS2(){return this.getToken(tr.NOT_EQUALS2,0)}struct_arg(t){return void 0===t?this.getRuleContexts(Ui):this.getRuleContext(t,Ui)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_type_name_struct}accept(t){return t.visitType_name_struct?t.visitType_name_struct(this):t.visitChildren(this)}},Hi=class extends P{static{Ss(this,"Type_name_variantContext")}constructor(t,e){super(t,e)}VARIANT(){return this.getToken(tr.VARIANT,0)}LESS(){return this.getToken(tr.LESS,0)}variant_arg(t){return void 0===t?this.getRuleContexts(Pi):this.getRuleContext(t,Pi)}GREATER(){return this.getToken(tr.GREATER,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_type_name_variant}accept(t){return t.visitType_name_variant?t.visitType_name_variant(this):t.visitChildren(this)}},wi=class extends P{static{Ss(this,"Type_name_listContext")}constructor(t,e){super(t,e)}LIST(){return this.getToken(tr.LIST,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_list}accept(t){return t.visitType_name_list?t.visitType_name_list(this):t.visitChildren(this)}},Fi=class extends P{static{Ss(this,"Type_name_streamContext")}constructor(t,e){super(t,e)}STREAM(){return this.getToken(tr.STREAM,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_stream}accept(t){return t.visitType_name_stream?t.visitType_name_stream(this):t.visitChildren(this)}},Gi=class extends P{static{Ss(this,"Type_name_flowContext")}constructor(t,e){super(t,e)}FLOW(){return this.getToken(tr.FLOW,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_flow}accept(t){return t.visitType_name_flow?t.visitType_name_flow(this):t.visitChildren(this)}},Bi=class extends P{static{Ss(this,"Type_name_dictContext")}constructor(t,e){super(t,e)}DICT(){return this.getToken(tr.DICT,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(t){return void 0===t?this.getRuleContexts(ji):this.getRuleContext(t,ji)}COMMA(){return this.getToken(tr.COMMA,0)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_dict}accept(t){return t.visitType_name_dict?t.visitType_name_dict(this):t.visitChildren(this)}},Yi=class extends P{static{Ss(this,"Type_name_setContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_set}accept(t){return t.visitType_name_set?t.visitType_name_set(this):t.visitChildren(this)}},Vi=class extends P{static{Ss(this,"Type_name_enumContext")}constructor(t,e){super(t,e)}ENUM(){return this.getToken(tr.ENUM,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_tag(t){return void 0===t?this.getRuleContexts(xi):this.getRuleContext(t,xi)}GREATER(){return this.getToken(tr.GREATER,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_type_name_enum}accept(t){return t.visitType_name_enum?t.visitType_name_enum(this):t.visitChildren(this)}},Wi=class extends P{static{Ss(this,"Type_name_resourceContext")}constructor(t,e){super(t,e)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_tag(){return this.getRuleContext(0,xi)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_resource}accept(t){return t.visitType_name_resource?t.visitType_name_resource(this):t.visitChildren(this)}},Xi=class extends P{static{Ss(this,"Type_name_taggedContext")}constructor(t,e){super(t,e)}TAGGED(){return this.getToken(tr.TAGGED,0)}LESS(){return this.getToken(tr.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}COMMA(){return this.getToken(tr.COMMA,0)}type_name_tag(){return this.getRuleContext(0,xi)}GREATER(){return this.getToken(tr.GREATER,0)}get ruleIndex(){return tr.RULE_type_name_tagged}accept(t){return t.visitType_name_tagged?t.visitType_name_tagged(this):t.visitChildren(this)}},Ki=class extends P{static{Ss(this,"Type_name_callableContext")}constructor(t,e){super(t,e)}CALLABLE(){return this.getToken(tr.CALLABLE,0)}LESS(){return this.getToken(tr.LESS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}ARROW(){return this.getToken(tr.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,ji)}GREATER(){return this.getToken(tr.GREATER,0)}callable_arg_list(t){return void 0===t?this.getRuleContexts(Mi):this.getRuleContext(t,Mi)}COMMA(){return this.getToken(tr.COMMA,0)}LBRACE_SQUARE(){return this.getToken(tr.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(tr.RBRACE_SQUARE,0)}get ruleIndex(){return tr.RULE_type_name_callable}accept(t){return t.visitType_name_callable?t.visitType_name_callable(this):t.visitChildren(this)}},Qi=class extends P{static{Ss(this,"Type_name_compositeContext")}constructor(t,e){super(t,e)}type_name_optional(){return this.getRuleContext(0,Di)}type_name_tuple(){return this.getRuleContext(0,vi)}type_name_struct(){return this.getRuleContext(0,bi)}type_name_variant(){return this.getRuleContext(0,Hi)}type_name_list(){return this.getRuleContext(0,wi)}type_name_stream(){return this.getRuleContext(0,Fi)}type_name_flow(){return this.getRuleContext(0,Gi)}type_name_dict(){return this.getRuleContext(0,Bi)}type_name_set(){return this.getRuleContext(0,Yi)}type_name_enum(){return this.getRuleContext(0,Vi)}type_name_resource(){return this.getRuleContext(0,Wi)}type_name_tagged(){return this.getRuleContext(0,Xi)}type_name_callable(){return this.getRuleContext(0,Ki)}QUESTION(t){return void 0===t?this.getTokens(tr.QUESTION):this.getToken(tr.QUESTION,t)}get ruleIndex(){return tr.RULE_type_name_composite}accept(t){return t.visitType_name_composite?t.visitType_name_composite(this):t.visitChildren(this)}},qi=class extends P{static{Ss(this,"Type_nameContext")}constructor(t,e){super(t,e)}type_name_composite(){return this.getRuleContext(0,Qi)}type_name_decimal(){return this.getRuleContext(0,yi)}type_name_simple(){return this.getRuleContext(0,gi)}QUESTION(t){return void 0===t?this.getTokens(tr.QUESTION):this.getToken(tr.QUESTION,t)}get ruleIndex(){return tr.RULE_type_name}accept(t){return t.visitType_name?t.visitType_name(this):t.visitChildren(this)}},ji=class extends P{static{Ss(this,"Type_name_or_bindContext")}constructor(t,e){super(t,e)}type_name(){return this.getRuleContext(0,qi)}bind_parameter(){return this.getRuleContext(0,Li)}get ruleIndex(){return tr.RULE_type_name_or_bind}accept(t){return t.visitType_name_or_bind?t.visitType_name_or_bind(this):t.visitChildren(this)}},Ji=class extends P{static{Ss(this,"Value_constructor_literalContext")}constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_value_constructor_literal}accept(t){return t.visitValue_constructor_literal?t.visitValue_constructor_literal(this):t.visitChildren(this)}},zi=class extends P{static{Ss(this,"Value_constructorContext")}constructor(t,e){super(t,e)}VARIANT(){return this.getToken(tr.VARIANT,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}RPAREN(){return this.getToken(tr.RPAREN,0)}ENUM(){return this.getToken(tr.ENUM,0)}CALLABLE(){return this.getToken(tr.CALLABLE,0)}get ruleIndex(){return tr.RULE_value_constructor}accept(t){return t.visitValue_constructor?t.visitValue_constructor(this):t.visitChildren(this)}},Zi=class extends P{static{Ss(this,"Declare_stmtContext")}constructor(t,e){super(t,e)}DECLARE(){return this.getToken(tr.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Li)}AS(){return this.getToken(tr.AS,0)}type_name(){return this.getRuleContext(0,qi)}EQUALS(){return this.getToken(tr.EQUALS,0)}literal_value(){return this.getRuleContext(0,di)}get ruleIndex(){return tr.RULE_declare_stmt}accept(t){return t.visitDeclare_stmt?t.visitDeclare_stmt(this):t.visitChildren(this)}},$i=class extends P{static{Ss(this,"Module_pathContext")}constructor(t,e){super(t,e)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}DOT(t){return void 0===t?this.getTokens(tr.DOT):this.getToken(tr.DOT,t)}get ruleIndex(){return tr.RULE_module_path}accept(t){return t.visitModule_path?t.visitModule_path(this):t.visitChildren(this)}},ta=class extends P{static{Ss(this,"Import_stmtContext")}constructor(t,e){super(t,e)}IMPORT(){return this.getToken(tr.IMPORT,0)}module_path(){return this.getRuleContext(0,$i)}SYMBOLS(){return this.getToken(tr.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,Oi)}get ruleIndex(){return tr.RULE_import_stmt}accept(t){return t.visitImport_stmt?t.visitImport_stmt(this):t.visitChildren(this)}},ea=class extends P{static{Ss(this,"Export_stmtContext")}constructor(t,e){super(t,e)}EXPORT(){return this.getToken(tr.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Ni)}get ruleIndex(){return tr.RULE_export_stmt}accept(t){return t.visitExport_stmt?t.visitExport_stmt(this):t.visitChildren(this)}},sa=class extends P{static{Ss(this,"Call_actionContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Li)}EMPTY_ACTION(){return this.getToken(tr.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,ri)}get ruleIndex(){return tr.RULE_call_action}accept(t){return t.visitCall_action?t.visitCall_action(this):t.visitChildren(this)}},ra=class extends P{static{Ss(this,"Inline_actionContext")}constructor(t,e){super(t,e)}BEGIN(){return this.getToken(tr.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Xh)}END(){return this.getToken(tr.END,0)}DO(){return this.getToken(tr.DO,0)}get ruleIndex(){return tr.RULE_inline_action}accept(t){return t.visitInline_action?t.visitInline_action(this):t.visitChildren(this)}},ia=class extends P{static{Ss(this,"Do_stmtContext")}constructor(t,e){super(t,e)}DO(){return this.getToken(tr.DO,0)}call_action(){return this.getRuleContext(0,sa)}inline_action(){return this.getRuleContext(0,ra)}get ruleIndex(){return tr.RULE_do_stmt}accept(t){return t.visitDo_stmt?t.visitDo_stmt(this):t.visitChildren(this)}},aa=class extends P{static{Ss(this,"Pragma_stmtContext")}constructor(t,e){super(t,e)}PRAGMA(){return this.getToken(tr.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,vE)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}pragma_value(t){return void 0===t?this.getRuleContexts(na):this.getRuleContext(t,na)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_pragma_stmt}accept(t){return t.visitPragma_stmt?t.visitPragma_stmt(this):t.visitChildren(this)}},na=class extends P{static{Ss(this,"Pragma_valueContext")}constructor(t,e){super(t,e)}signed_number(){return this.getRuleContext(0,pi)}id(){return this.getRuleContext(0,lE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,JE)}bind_parameter(){return this.getRuleContext(0,Li)}get ruleIndex(){return tr.RULE_pragma_value}accept(t){return t.visitPragma_value?t.visitPragma_value(this):t.visitChildren(this)}},ca=class extends P{static{Ss(this,"Sort_specificationContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}ASC(){return this.getToken(tr.ASC,0)}DESC(){return this.getToken(tr.DESC,0)}get ruleIndex(){return tr.RULE_sort_specification}accept(t){return t.visitSort_specification?t.visitSort_specification(this):t.visitChildren(this)}},ha=class extends P{static{Ss(this,"Sort_specification_listContext")}constructor(t,e){super(t,e)}sort_specification(t){return void 0===t?this.getRuleContexts(ca):this.getRuleContext(t,ca)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_sort_specification_list}accept(t){return t.visitSort_specification_list?t.visitSort_specification_list(this):t.visitChildren(this)}},oa=class extends P{static{Ss(this,"Select_stmtContext")}constructor(t,e){super(t,e)}select_kind_parenthesis(t){return void 0===t?this.getRuleContexts(la):this.getRuleContext(t,la)}select_op(t){return void 0===t?this.getRuleContexts(ua):this.getRuleContext(t,ua)}get ruleIndex(){return tr.RULE_select_stmt}accept(t){return t.visitSelect_stmt?t.visitSelect_stmt(this):t.visitChildren(this)}},Ea=class extends P{static{Ss(this,"Select_unparenthesized_stmtContext")}constructor(t,e){super(t,e)}select_kind_partial(){return this.getRuleContext(0,Ra)}select_op(t){return void 0===t?this.getRuleContexts(ua):this.getRuleContext(t,ua)}select_kind_parenthesis(t){return void 0===t?this.getRuleContexts(la):this.getRuleContext(t,la)}get ruleIndex(){return tr.RULE_select_unparenthesized_stmt}accept(t){return t.visitSelect_unparenthesized_stmt?t.visitSelect_unparenthesized_stmt(this):t.visitChildren(this)}},la=class extends P{static{Ss(this,"Select_kind_parenthesisContext")}constructor(t,e){super(t,e)}select_kind_partial(){return this.getRuleContext(0,Ra)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_select_kind_parenthesis}accept(t){return t.visitSelect_kind_parenthesis?t.visitSelect_kind_parenthesis(this):t.visitChildren(this)}},ua=class extends P{static{Ss(this,"Select_opContext")}constructor(t,e){super(t,e)}UNION(){return this.getToken(tr.UNION,0)}ALL(){return this.getToken(tr.ALL,0)}INTERSECT(){return this.getToken(tr.INTERSECT,0)}EXCEPT(){return this.getToken(tr.EXCEPT,0)}get ruleIndex(){return tr.RULE_select_op}accept(t){return t.visitSelect_op?t.visitSelect_op(this):t.visitChildren(this)}},Ra=class extends P{static{Ss(this,"Select_kind_partialContext")}constructor(t,e){super(t,e)}select_kind(){return this.getRuleContext(0,_a)}LIMIT(){return this.getToken(tr.LIMIT,0)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}OFFSET(){return this.getToken(tr.OFFSET,0)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_select_kind_partial}accept(t){return t.visitSelect_kind_partial?t.visitSelect_kind_partial(this):t.visitChildren(this)}},_a=class extends P{static{Ss(this,"Select_kindContext")}constructor(t,e){super(t,e)}process_core(){return this.getRuleContext(0,Ta)}reduce_core(){return this.getRuleContext(0,da)}select_core(){return this.getRuleContext(0,Ca)}DISCARD(){return this.getToken(tr.DISCARD,0)}INTO(){return this.getToken(tr.INTO,0)}RESULT(){return this.getToken(tr.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,ai)}get ruleIndex(){return tr.RULE_select_kind}accept(t){return t.visitSelect_kind?t.visitSelect_kind(this):t.visitChildren(this)}},Ta=class extends P{static{Ss(this,"Process_coreContext")}constructor(t,e){super(t,e)}PROCESS(){return this.getToken(tr.PROCESS,0)}named_single_source(t){return void 0===t?this.getRuleContexts(Rn):this.getRuleContext(t,Rn)}STREAM(){return this.getToken(tr.STREAM,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}USING(){return this.getToken(tr.USING,0)}using_call_expr(){return this.getRuleContext(0,Ti)}AS(){return this.getToken(tr.AS,0)}an_id(){return this.getRuleContext(0,CE)}WITH(){return this.getToken(tr.WITH,0)}external_call_settings(){return this.getRuleContext(0,Sa)}where_expr(){return this.getRuleContext(0,il)}HAVING(){return this.getToken(tr.HAVING,0)}expr(){return this.getRuleContext(0,hr)}ASSUME(){return this.getToken(tr.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,Ja)}get ruleIndex(){return tr.RULE_process_core}accept(t){return t.visitProcess_core?t.visitProcess_core(this):t.visitChildren(this)}},Aa=class extends P{static{Ss(this,"External_call_paramContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_external_call_param}accept(t){return t.visitExternal_call_param?t.visitExternal_call_param(this):t.visitChildren(this)}},Sa=class extends P{static{Ss(this,"External_call_settingsContext")}constructor(t,e){super(t,e)}external_call_param(t){return void 0===t?this.getRuleContexts(Aa):this.getRuleContext(t,Aa)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_external_call_settings}accept(t){return t.visitExternal_call_settings?t.visitExternal_call_settings(this):t.visitChildren(this)}},da=class extends P{static{Ss(this,"Reduce_coreContext")}constructor(t,e){super(t,e)}REDUCE(){return this.getToken(tr.REDUCE,0)}named_single_source(t){return void 0===t?this.getRuleContexts(Rn):this.getRuleContext(t,Rn)}ON(){return this.getToken(tr.ON,0)}column_list(){return this.getRuleContext(0,oi)}USING(){return this.getToken(tr.USING,0)}using_call_expr(){return this.getRuleContext(0,Ti)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}PRESORT(){return this.getToken(tr.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,ha)}ALL(){return this.getToken(tr.ALL,0)}AS(){return this.getToken(tr.AS,0)}an_id(){return this.getRuleContext(0,CE)}where_expr(){return this.getRuleContext(0,il)}HAVING(){return this.getToken(tr.HAVING,0)}expr(){return this.getRuleContext(0,hr)}ASSUME(){return this.getToken(tr.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,Ja)}get ruleIndex(){return tr.RULE_reduce_core}accept(t){return t.visitReduce_core?t.visitReduce_core(this):t.visitChildren(this)}},La=class extends P{static{Ss(this,"Opt_set_quantifierContext")}constructor(t,e){super(t,e)}ALL(){return this.getToken(tr.ALL,0)}DISTINCT(){return this.getToken(tr.DISTINCT,0)}get ruleIndex(){return tr.RULE_opt_set_quantifier}accept(t){return t.visitOpt_set_quantifier?t.visitOpt_set_quantifier(this):t.visitChildren(this)}},Ca=class extends P{static{Ss(this,"Select_coreContext")}constructor(t,e){super(t,e)}SELECT(){return this.getToken(tr.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,La)}result_column(t){return void 0===t?this.getRuleContexts(hn):this.getRuleContext(t,hn)}from_stmt(t){return void 0===t?this.getRuleContexts(al):this.getRuleContext(t,al)}STREAM(){return this.getToken(tr.STREAM,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}WITHOUT(){return this.getToken(tr.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,Ei)}where_expr(){return this.getRuleContext(0,il)}group_by_clause(){return this.getRuleContext(0,Za)}HAVING(){return this.getToken(tr.HAVING,0)}expr(){return this.getRuleContext(0,hr)}window_clause(){return this.getRuleContext(0,Bo)}ext_order_by_clause(){return this.getRuleContext(0,za)}get ruleIndex(){return tr.RULE_select_core}accept(t){return t.visitSelect_core?t.visitSelect_core(this):t.visitChildren(this)}},Na=class extends P{static{Ss(this,"Row_pattern_recognition_clauseContext")}constructor(t,e){super(t,e)}MATCH_RECOGNIZE(){return this.getToken(tr.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,xa)}RPAREN(){return this.getToken(tr.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,qo)}order_by_clause(){return this.getRuleContext(0,Ja)}row_pattern_measures(){return this.getRuleContext(0,pa)}row_pattern_rows_per_match(){return this.getRuleContext(0,Ia)}get ruleIndex(){return tr.RULE_row_pattern_recognition_clause}accept(t){return t.visitRow_pattern_recognition_clause?t.visitRow_pattern_recognition_clause(this):t.visitChildren(this)}},Ia=class extends P{static{Ss(this,"Row_pattern_rows_per_matchContext")}constructor(t,e){super(t,e)}ONE(){return this.getToken(tr.ONE,0)}ROW(){return this.getToken(tr.ROW,0)}PER(){return this.getToken(tr.PER,0)}MATCH(){return this.getToken(tr.MATCH,0)}ALL(){return this.getToken(tr.ALL,0)}ROWS(){return this.getToken(tr.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,Oa)}get ruleIndex(){return tr.RULE_row_pattern_rows_per_match}accept(t){return t.visitRow_pattern_rows_per_match?t.visitRow_pattern_rows_per_match(this):t.visitChildren(this)}},Oa=class extends P{static{Ss(this,"Row_pattern_empty_match_handlingContext")}constructor(t,e){super(t,e)}SHOW(){return this.getToken(tr.SHOW,0)}EMPTY(){return this.getToken(tr.EMPTY,0)}MATCHES(){return this.getToken(tr.MATCHES,0)}OMIT(){return this.getToken(tr.OMIT,0)}WITH(){return this.getToken(tr.WITH,0)}UNMATCHED(){return this.getToken(tr.UNMATCHED,0)}ROWS(){return this.getToken(tr.ROWS,0)}get ruleIndex(){return tr.RULE_row_pattern_empty_match_handling}accept(t){return t.visitRow_pattern_empty_match_handling?t.visitRow_pattern_empty_match_handling(this):t.visitChildren(this)}},pa=class extends P{static{Ss(this,"Row_pattern_measuresContext")}constructor(t,e){super(t,e)}MEASURES(){return this.getToken(tr.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,ga)}get ruleIndex(){return tr.RULE_row_pattern_measures}accept(t){return t.visitRow_pattern_measures?t.visitRow_pattern_measures(this):t.visitChildren(this)}},ga=class extends P{static{Ss(this,"Row_pattern_measure_listContext")}constructor(t,e){super(t,e)}row_pattern_measure_definition(t){return void 0===t?this.getRuleContexts(ma):this.getRuleContext(t,ma)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_row_pattern_measure_list}accept(t){return t.visitRow_pattern_measure_list?t.visitRow_pattern_measure_list(this):t.visitChildren(this)}},ma=class extends P{static{Ss(this,"Row_pattern_measure_definitionContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}AS(){return this.getToken(tr.AS,0)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_row_pattern_measure_definition}accept(t){return t.visitRow_pattern_measure_definition?t.visitRow_pattern_measure_definition(this):t.visitChildren(this)}},xa=class extends P{static{Ss(this,"Row_pattern_common_syntaxContext")}constructor(t,e){super(t,e)}PATTERN(){return this.getToken(tr.PATTERN,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}row_pattern(){return this.getRuleContext(0,ka)}RPAREN(){return this.getToken(tr.RPAREN,0)}DEFINE(){return this.getToken(tr.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Wa)}AFTER(){return this.getToken(tr.AFTER,0)}MATCH(){return this.getToken(tr.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Ua)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Pa)}row_pattern_subset_clause(){return this.getRuleContext(0,wa)}get ruleIndex(){return tr.RULE_row_pattern_common_syntax}accept(t){return t.visitRow_pattern_common_syntax?t.visitRow_pattern_common_syntax(this):t.visitChildren(this)}},Ua=class extends P{static{Ss(this,"Row_pattern_skip_toContext")}constructor(t,e){super(t,e)}TSKIP(){return this.getToken(tr.TSKIP,0)}TO(){return this.getToken(tr.TO,0)}NEXT(){return this.getToken(tr.NEXT,0)}ROW(){return this.getToken(tr.ROW,0)}PAST(){return this.getToken(tr.PAST,0)}LAST(){return this.getToken(tr.LAST,0)}FIRST(){return this.getToken(tr.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,fa)}get ruleIndex(){return tr.RULE_row_pattern_skip_to}accept(t){return t.visitRow_pattern_skip_to?t.visitRow_pattern_skip_to(this):t.visitChildren(this)}},fa=class extends P{static{Ss(this,"Row_pattern_skip_to_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,ja)}get ruleIndex(){return tr.RULE_row_pattern_skip_to_variable_name}accept(t){return t.visitRow_pattern_skip_to_variable_name?t.visitRow_pattern_skip_to_variable_name(this):t.visitChildren(this)}},Pa=class extends P{static{Ss(this,"Row_pattern_initial_or_seekContext")}constructor(t,e){super(t,e)}INITIAL(){return this.getToken(tr.INITIAL,0)}SEEK(){return this.getToken(tr.SEEK,0)}get ruleIndex(){return tr.RULE_row_pattern_initial_or_seek}accept(t){return t.visitRow_pattern_initial_or_seek?t.visitRow_pattern_initial_or_seek(this):t.visitChildren(this)}},ka=class extends P{static{Ss(this,"Row_patternContext")}constructor(t,e){super(t,e)}row_pattern_term(t){return void 0===t?this.getRuleContexts(Ma):this.getRuleContext(t,Ma)}PIPE(t){return void 0===t?this.getTokens(tr.PIPE):this.getToken(tr.PIPE,t)}get ruleIndex(){return tr.RULE_row_pattern}accept(t){return t.visitRow_pattern?t.visitRow_pattern(this):t.visitChildren(this)}},Ma=class extends P{static{Ss(this,"Row_pattern_termContext")}constructor(t,e){super(t,e)}row_pattern_factor(t){return void 0===t?this.getRuleContexts(ya):this.getRuleContext(t,ya)}get ruleIndex(){return tr.RULE_row_pattern_term}accept(t){return t.visitRow_pattern_term?t.visitRow_pattern_term(this):t.visitChildren(this)}},ya=class extends P{static{Ss(this,"Row_pattern_factorContext")}constructor(t,e){super(t,e)}row_pattern_primary(){return this.getRuleContext(0,va)}row_pattern_quantifier(){return this.getRuleContext(0,Da)}get ruleIndex(){return tr.RULE_row_pattern_factor}accept(t){return t.visitRow_pattern_factor?t.visitRow_pattern_factor(this):t.visitChildren(this)}},Da=class extends P{static{Ss(this,"Row_pattern_quantifierContext")}constructor(t,e){super(t,e)}ASTERISK(){return this.getToken(tr.ASTERISK,0)}QUESTION(t){return void 0===t?this.getTokens(tr.QUESTION):this.getToken(tr.QUESTION,t)}PLUS(){return this.getToken(tr.PLUS,0)}LBRACE_CURLY(){return this.getToken(tr.LBRACE_CURLY,0)}COMMA(){return this.getToken(tr.COMMA,0)}RBRACE_CURLY(){return this.getToken(tr.RBRACE_CURLY,0)}integer(t){return void 0===t?this.getRuleContexts(ZE):this.getRuleContext(t,ZE)}get ruleIndex(){return tr.RULE_row_pattern_quantifier}accept(t){return t.visitRow_pattern_quantifier?t.visitRow_pattern_quantifier(this):t.visitChildren(this)}},va=class extends P{static{Ss(this,"Row_pattern_primaryContext")}constructor(t,e){super(t,e)}row_pattern_primary_variable_name(){return this.getRuleContext(0,ba)}DOLLAR(){return this.getToken(tr.DOLLAR,0)}CARET(){return this.getToken(tr.CARET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}row_pattern(){return this.getRuleContext(0,ka)}LBRACE_CURLY(){return this.getToken(tr.LBRACE_CURLY,0)}MINUS(t){return void 0===t?this.getTokens(tr.MINUS):this.getToken(tr.MINUS,t)}RBRACE_CURLY(){return this.getToken(tr.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,Ha)}get ruleIndex(){return tr.RULE_row_pattern_primary}accept(t){return t.visitRow_pattern_primary?t.visitRow_pattern_primary(this):t.visitChildren(this)}},ba=class extends P{static{Ss(this,"Row_pattern_primary_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,ja)}get ruleIndex(){return tr.RULE_row_pattern_primary_variable_name}accept(t){return t.visitRow_pattern_primary_variable_name?t.visitRow_pattern_primary_variable_name(this):t.visitChildren(this)}},Ha=class extends P{static{Ss(this,"Row_pattern_permuteContext")}constructor(t,e){super(t,e)}PERMUTE(){return this.getToken(tr.PERMUTE,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}row_pattern(t){return void 0===t?this.getRuleContexts(ka):this.getRuleContext(t,ka)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_row_pattern_permute}accept(t){return t.visitRow_pattern_permute?t.visitRow_pattern_permute(this):t.visitChildren(this)}},wa=class extends P{static{Ss(this,"Row_pattern_subset_clauseContext")}constructor(t,e){super(t,e)}SUBSET(){return this.getToken(tr.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,Fa)}get ruleIndex(){return tr.RULE_row_pattern_subset_clause}accept(t){return t.visitRow_pattern_subset_clause?t.visitRow_pattern_subset_clause(this):t.visitChildren(this)}},Fa=class extends P{static{Ss(this,"Row_pattern_subset_listContext")}constructor(t,e){super(t,e)}row_pattern_subset_item(t){return void 0===t?this.getRuleContexts(Ga):this.getRuleContext(t,Ga)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_row_pattern_subset_list}accept(t){return t.visitRow_pattern_subset_list?t.visitRow_pattern_subset_list(this):t.visitChildren(this)}},Ga=class extends P{static{Ss(this,"Row_pattern_subset_itemContext")}constructor(t,e){super(t,e)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Ba)}EQUALS(){return this.getToken(tr.EQUALS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,Ya)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_row_pattern_subset_item}accept(t){return t.visitRow_pattern_subset_item?t.visitRow_pattern_subset_item(this):t.visitChildren(this)}},Ba=class extends P{static{Ss(this,"Row_pattern_subset_item_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,ja)}get ruleIndex(){return tr.RULE_row_pattern_subset_item_variable_name}accept(t){return t.visitRow_pattern_subset_item_variable_name?t.visitRow_pattern_subset_item_variable_name(this):t.visitChildren(this)}},Ya=class extends P{static{Ss(this,"Row_pattern_subset_rhsContext")}constructor(t,e){super(t,e)}row_pattern_subset_rhs_variable_name(t){return void 0===t?this.getRuleContexts(Va):this.getRuleContext(t,Va)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_row_pattern_subset_rhs}accept(t){return t.visitRow_pattern_subset_rhs?t.visitRow_pattern_subset_rhs(this):t.visitChildren(this)}},Va=class extends P{static{Ss(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,ja)}get ruleIndex(){return tr.RULE_row_pattern_subset_rhs_variable_name}accept(t){return t.visitRow_pattern_subset_rhs_variable_name?t.visitRow_pattern_subset_rhs_variable_name(this):t.visitChildren(this)}},Wa=class extends P{static{Ss(this,"Row_pattern_definition_listContext")}constructor(t,e){super(t,e)}row_pattern_definition(t){return void 0===t?this.getRuleContexts(Xa):this.getRuleContext(t,Xa)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_row_pattern_definition_list}accept(t){return t.visitRow_pattern_definition_list?t.visitRow_pattern_definition_list(this):t.visitChildren(this)}},Xa=class extends P{static{Ss(this,"Row_pattern_definitionContext")}constructor(t,e){super(t,e)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Ka)}AS(){return this.getToken(tr.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,Qa)}get ruleIndex(){return tr.RULE_row_pattern_definition}accept(t){return t.visitRow_pattern_definition?t.visitRow_pattern_definition(this):t.visitChildren(this)}},Ka=class extends P{static{Ss(this,"Row_pattern_definition_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,ja)}get ruleIndex(){return tr.RULE_row_pattern_definition_variable_name}accept(t){return t.visitRow_pattern_definition_variable_name?t.visitRow_pattern_definition_variable_name(this):t.visitChildren(this)}},Qa=class extends P{static{Ss(this,"Row_pattern_definition_search_conditionContext")}constructor(t,e){super(t,e)}search_condition(){return this.getRuleContext(0,qa)}get ruleIndex(){return tr.RULE_row_pattern_definition_search_condition}accept(t){return t.visitRow_pattern_definition_search_condition?t.visitRow_pattern_definition_search_condition(this):t.visitChildren(this)}},qa=class extends P{static{Ss(this,"Search_conditionContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_search_condition}accept(t){return t.visitSearch_condition?t.visitSearch_condition(this):t.visitChildren(this)}},ja=class extends P{static{Ss(this,"Row_pattern_variable_nameContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}get ruleIndex(){return tr.RULE_row_pattern_variable_name}accept(t){return t.visitRow_pattern_variable_name?t.visitRow_pattern_variable_name(this):t.visitChildren(this)}},Ja=class extends P{static{Ss(this,"Order_by_clauseContext")}constructor(t,e){super(t,e)}ORDER(){return this.getToken(tr.ORDER,0)}BY(){return this.getToken(tr.BY,0)}sort_specification_list(){return this.getRuleContext(0,ha)}get ruleIndex(){return tr.RULE_order_by_clause}accept(t){return t.visitOrder_by_clause?t.visitOrder_by_clause(this):t.visitChildren(this)}},za=class extends P{static{Ss(this,"Ext_order_by_clauseContext")}constructor(t,e){super(t,e)}order_by_clause(){return this.getRuleContext(0,Ja)}ASSUME(){return this.getToken(tr.ASSUME,0)}get ruleIndex(){return tr.RULE_ext_order_by_clause}accept(t){return t.visitExt_order_by_clause?t.visitExt_order_by_clause(this):t.visitChildren(this)}},Za=class extends P{static{Ss(this,"Group_by_clauseContext")}constructor(t,e){super(t,e)}GROUP(){return this.getToken(tr.GROUP,0)}BY(){return this.getToken(tr.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,La)}grouping_element_list(){return this.getRuleContext(0,$a)}COMPACT(){return this.getToken(tr.COMPACT,0)}WITH(){return this.getToken(tr.WITH,0)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_group_by_clause}accept(t){return t.visitGroup_by_clause?t.visitGroup_by_clause(this):t.visitChildren(this)}},$a=class extends P{static{Ss(this,"Grouping_element_listContext")}constructor(t,e){super(t,e)}grouping_element(t){return void 0===t?this.getRuleContexts(tn):this.getRuleContext(t,tn)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_grouping_element_list}accept(t){return t.visitGrouping_element_list?t.visitGrouping_element_list(this):t.visitChildren(this)}},tn=class extends P{static{Ss(this,"Grouping_elementContext")}constructor(t,e){super(t,e)}ordinary_grouping_set(){return this.getRuleContext(0,en)}rollup_list(){return this.getRuleContext(0,rn)}cube_list(){return this.getRuleContext(0,an)}grouping_sets_specification(){return this.getRuleContext(0,nn)}hopping_window_specification(){return this.getRuleContext(0,cn)}get ruleIndex(){return tr.RULE_grouping_element}accept(t){return t.visitGrouping_element?t.visitGrouping_element(this):t.visitChildren(this)}},en=class extends P{static{Ss(this,"Ordinary_grouping_setContext")}constructor(t,e){super(t,e)}named_expr(){return this.getRuleContext(0,li)}get ruleIndex(){return tr.RULE_ordinary_grouping_set}accept(t){return t.visitOrdinary_grouping_set?t.visitOrdinary_grouping_set(this):t.visitChildren(this)}},sn=class extends P{static{Ss(this,"Ordinary_grouping_set_listContext")}constructor(t,e){super(t,e)}ordinary_grouping_set(t){return void 0===t?this.getRuleContexts(en):this.getRuleContext(t,en)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_ordinary_grouping_set_list}accept(t){return t.visitOrdinary_grouping_set_list?t.visitOrdinary_grouping_set_list(this):t.visitChildren(this)}},rn=class extends P{static{Ss(this,"Rollup_listContext")}constructor(t,e){super(t,e)}ROLLUP(){return this.getToken(tr.ROLLUP,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,sn)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_rollup_list}accept(t){return t.visitRollup_list?t.visitRollup_list(this):t.visitChildren(this)}},an=class extends P{static{Ss(this,"Cube_listContext")}constructor(t,e){super(t,e)}CUBE(){return this.getToken(tr.CUBE,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,sn)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_cube_list}accept(t){return t.visitCube_list?t.visitCube_list(this):t.visitChildren(this)}},nn=class extends P{static{Ss(this,"Grouping_sets_specificationContext")}constructor(t,e){super(t,e)}GROUPING(){return this.getToken(tr.GROUPING,0)}SETS(){return this.getToken(tr.SETS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,$a)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_grouping_sets_specification}accept(t){return t.visitGrouping_sets_specification?t.visitGrouping_sets_specification(this):t.visitChildren(this)}},cn=class extends P{static{Ss(this,"Hopping_window_specificationContext")}constructor(t,e){super(t,e)}HOP(){return this.getToken(tr.HOP,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_hopping_window_specification}accept(t){return t.visitHopping_window_specification?t.visitHopping_window_specification(this):t.visitChildren(this)}},hn=class extends P{static{Ss(this,"Result_columnContext")}constructor(t,e){super(t,e)}opt_id_prefix(){return this.getRuleContext(0,ME)}ASTERISK(){return this.getToken(tr.ASTERISK,0)}expr(){return this.getRuleContext(0,hr)}AS(){return this.getToken(tr.AS,0)}an_id_or_type(){return this.getRuleContext(0,NE)}an_id_as_compat(){return this.getRuleContext(0,PE)}get ruleIndex(){return tr.RULE_result_column}accept(t){return t.visitResult_column?t.visitResult_column(this):t.visitChildren(this)}},on=class extends P{static{Ss(this,"Join_sourceContext")}constructor(t,e){super(t,e)}flatten_source(t){return void 0===t?this.getRuleContexts(un):this.getRuleContext(t,un)}ANY(t){return void 0===t?this.getTokens(tr.ANY):this.getToken(tr.ANY,t)}join_op(t){return void 0===t?this.getRuleContexts(Ln):this.getRuleContext(t,Ln)}join_constraint(t){return void 0===t?this.getRuleContexts(Cn):this.getRuleContext(t,Cn)}get ruleIndex(){return tr.RULE_join_source}accept(t){return t.visitJoin_source?t.visitJoin_source(this):t.visitChildren(this)}},En=class extends P{static{Ss(this,"Named_columnContext")}constructor(t,e){super(t,e)}column_name(){return this.getRuleContext(0,ci)}AS(){return this.getToken(tr.AS,0)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_named_column}accept(t){return t.visitNamed_column?t.visitNamed_column(this):t.visitChildren(this)}},ln=class extends P{static{Ss(this,"Flatten_by_argContext")}constructor(t,e){super(t,e)}named_column(){return this.getRuleContext(0,En)}LPAREN(){return this.getToken(tr.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,ui)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(){return this.getToken(tr.COMMA,0)}get ruleIndex(){return tr.RULE_flatten_by_arg}accept(t){return t.visitFlatten_by_arg?t.visitFlatten_by_arg(this):t.visitChildren(this)}},un=class extends P{static{Ss(this,"Flatten_sourceContext")}constructor(t,e){super(t,e)}named_single_source(){return this.getRuleContext(0,Rn)}FLATTEN(){return this.getToken(tr.FLATTEN,0)}BY(){return this.getToken(tr.BY,0)}flatten_by_arg(){return this.getRuleContext(0,ln)}COLUMNS(){return this.getToken(tr.COLUMNS,0)}OPTIONAL(){return this.getToken(tr.OPTIONAL,0)}LIST(){return this.getToken(tr.LIST,0)}DICT(){return this.getToken(tr.DICT,0)}get ruleIndex(){return tr.RULE_flatten_source}accept(t){return t.visitFlatten_source?t.visitFlatten_source(this):t.visitChildren(this)}},Rn=class extends P{static{Ss(this,"Named_single_sourceContext")}constructor(t,e){super(t,e)}single_source(){return this.getRuleContext(0,_n)}row_pattern_recognition_clause(){return this.getRuleContext(0,Na)}sample_clause(){return this.getRuleContext(0,Tn)}tablesample_clause(){return this.getRuleContext(0,An)}AS(){return this.getToken(tr.AS,0)}an_id(){return this.getRuleContext(0,CE)}an_id_as_compat(){return this.getRuleContext(0,PE)}pure_column_list(){return this.getRuleContext(0,ii)}get ruleIndex(){return tr.RULE_named_single_source}accept(t){return t.visitNamed_single_source?t.visitNamed_single_source(this):t.visitChildren(this)}},_n=class extends P{static{Ss(this,"Single_sourceContext")}constructor(t,e){super(t,e)}table_ref(){return this.getRuleContext(0,qh)}LPAREN(){return this.getToken(tr.LPAREN,0)}select_stmt(){return this.getRuleContext(0,oa)}RPAREN(){return this.getToken(tr.RPAREN,0)}values_stmt(){return this.getRuleContext(0,gn)}get ruleIndex(){return tr.RULE_single_source}accept(t){return t.visitSingle_source?t.visitSingle_source(this):t.visitChildren(this)}},Tn=class extends P{static{Ss(this,"Sample_clauseContext")}constructor(t,e){super(t,e)}SAMPLE(){return this.getToken(tr.SAMPLE,0)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_sample_clause}accept(t){return t.visitSample_clause?t.visitSample_clause(this):t.visitChildren(this)}},An=class extends P{static{Ss(this,"Tablesample_clauseContext")}constructor(t,e){super(t,e)}TABLESAMPLE(){return this.getToken(tr.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,Sn)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(){return this.getRuleContext(0,hr)}RPAREN(){return this.getToken(tr.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,dn)}get ruleIndex(){return tr.RULE_tablesample_clause}accept(t){return t.visitTablesample_clause?t.visitTablesample_clause(this):t.visitChildren(this)}},Sn=class extends P{static{Ss(this,"Sampling_modeContext")}constructor(t,e){super(t,e)}BERNOULLI(){return this.getToken(tr.BERNOULLI,0)}SYSTEM(){return this.getToken(tr.SYSTEM,0)}get ruleIndex(){return tr.RULE_sampling_mode}accept(t){return t.visitSampling_mode?t.visitSampling_mode(this):t.visitChildren(this)}},dn=class extends P{static{Ss(this,"Repeatable_clauseContext")}constructor(t,e){super(t,e)}REPEATABLE(){return this.getToken(tr.REPEATABLE,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr(){return this.getRuleContext(0,hr)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_repeatable_clause}accept(t){return t.visitRepeatable_clause?t.visitRepeatable_clause(this):t.visitChildren(this)}},Ln=class extends P{static{Ss(this,"Join_opContext")}constructor(t,e){super(t,e)}COMMA(){return this.getToken(tr.COMMA,0)}JOIN(){return this.getToken(tr.JOIN,0)}INNER(){return this.getToken(tr.INNER,0)}CROSS(){return this.getToken(tr.CROSS,0)}NATURAL(){return this.getToken(tr.NATURAL,0)}LEFT(){return this.getToken(tr.LEFT,0)}RIGHT(){return this.getToken(tr.RIGHT,0)}EXCLUSION(){return this.getToken(tr.EXCLUSION,0)}FULL(){return this.getToken(tr.FULL,0)}OUTER(){return this.getToken(tr.OUTER,0)}ONLY(){return this.getToken(tr.ONLY,0)}SEMI(){return this.getToken(tr.SEMI,0)}get ruleIndex(){return tr.RULE_join_op}accept(t){return t.visitJoin_op?t.visitJoin_op(this):t.visitChildren(this)}},Cn=class extends P{static{Ss(this,"Join_constraintContext")}constructor(t,e){super(t,e)}ON(){return this.getToken(tr.ON,0)}expr(){return this.getRuleContext(0,hr)}USING(){return this.getToken(tr.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,ni)}get ruleIndex(){return tr.RULE_join_constraint}accept(t){return t.visitJoin_constraint?t.visitJoin_constraint(this):t.visitChildren(this)}},Nn=class extends P{static{Ss(this,"Returning_columns_listContext")}constructor(t,e){super(t,e)}RETURNING(){return this.getToken(tr.RETURNING,0)}ASTERISK(){return this.getToken(tr.ASTERISK,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_returning_columns_list}accept(t){return t.visitReturning_columns_list?t.visitReturning_columns_list(this):t.visitChildren(this)}},In=class extends P{static{Ss(this,"Into_table_stmtContext")}constructor(t,e){super(t,e)}INTO(){return this.getToken(tr.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,so)}into_values_source(){return this.getRuleContext(0,pn)}INSERT(){return this.getToken(tr.INSERT,0)}OR(){return this.getToken(tr.OR,0)}ABORT(){return this.getToken(tr.ABORT,0)}REVERT(){return this.getToken(tr.REVERT,0)}IGNORE(){return this.getToken(tr.IGNORE,0)}UPSERT(){return this.getToken(tr.UPSERT,0)}REPLACE(){return this.getToken(tr.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,Nn)}get ruleIndex(){return tr.RULE_into_table_stmt}accept(t){return t.visitInto_table_stmt?t.visitInto_table_stmt(this):t.visitChildren(this)}},On=class extends P{static{Ss(this,"Into_table_stmt_yqContext")}constructor(t,e){super(t,e)}INTO(){return this.getToken(tr.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,so)}into_values_source(){return this.getRuleContext(0,pn)}INSERT(){return this.getToken(tr.INSERT,0)}OR(){return this.getToken(tr.OR,0)}ABORT(){return this.getToken(tr.ABORT,0)}REVERT(){return this.getToken(tr.REVERT,0)}IGNORE(){return this.getToken(tr.IGNORE,0)}REPLACE(){return this.getToken(tr.REPLACE,0)}get ruleIndex(){return tr.RULE_into_table_stmt_yq}accept(t){return t.visitInto_table_stmt_yq?t.visitInto_table_stmt_yq(this):t.visitChildren(this)}},pn=class extends P{static{Ss(this,"Into_values_sourceContext")}constructor(t,e){super(t,e)}values_source(){return this.getRuleContext(0,mn)}pure_column_list(){return this.getRuleContext(0,ii)}DEFAULT(){return this.getToken(tr.DEFAULT,0)}VALUES(){return this.getToken(tr.VALUES,0)}get ruleIndex(){return tr.RULE_into_values_source}accept(t){return t.visitInto_values_source?t.visitInto_values_source(this):t.visitChildren(this)}},gn=class extends P{static{Ss(this,"Values_stmtContext")}constructor(t,e){super(t,e)}VALUES(){return this.getToken(tr.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,xn)}get ruleIndex(){return tr.RULE_values_stmt}accept(t){return t.visitValues_stmt?t.visitValues_stmt(this):t.visitChildren(this)}},mn=class extends P{static{Ss(this,"Values_sourceContext")}constructor(t,e){super(t,e)}values_stmt(){return this.getRuleContext(0,gn)}select_stmt(){return this.getRuleContext(0,oa)}get ruleIndex(){return tr.RULE_values_source}accept(t){return t.visitValues_source?t.visitValues_source(this):t.visitChildren(this)}},xn=class extends P{static{Ss(this,"Values_source_row_listContext")}constructor(t,e){super(t,e)}values_source_row(t){return void 0===t?this.getRuleContexts(Un):this.getRuleContext(t,Un)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_values_source_row_list}accept(t){return t.visitValues_source_row_list?t.visitValues_source_row_list(this):t.visitChildren(this)}},Un=class extends P{static{Ss(this,"Values_source_rowContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}expr_list(){return this.getRuleContext(0,ri)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_values_source_row}accept(t){return t.visitValues_source_row?t.visitValues_source_row(this):t.visitChildren(this)}},fn=class extends P{static{Ss(this,"Simple_values_sourceContext")}constructor(t,e){super(t,e)}expr_list(){return this.getRuleContext(0,ri)}select_stmt(){return this.getRuleContext(0,oa)}get ruleIndex(){return tr.RULE_simple_values_source}accept(t){return t.visitSimple_values_source?t.visitSimple_values_source(this):t.visitChildren(this)}},Pn=class extends P{static{Ss(this,"Create_external_data_source_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}DATA(){return this.getToken(tr.DATA,0)}SOURCE(){return this.getToken(tr.SOURCE,0)}object_ref(){return this.getRuleContext(0,$h)}with_table_settings(){return this.getRuleContext(0,_c)}OR(){return this.getToken(tr.OR,0)}REPLACE(){return this.getToken(tr.REPLACE,0)}IF(){return this.getToken(tr.IF,0)}NOT(){return this.getToken(tr.NOT,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}get ruleIndex(){return tr.RULE_create_external_data_source_stmt}accept(t){return t.visitCreate_external_data_source_stmt?t.visitCreate_external_data_source_stmt(this):t.visitChildren(this)}},kn=class extends P{static{Ss(this,"Alter_external_data_source_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}DATA(){return this.getToken(tr.DATA,0)}SOURCE(){return this.getToken(tr.SOURCE,0)}object_ref(){return this.getRuleContext(0,$h)}alter_external_data_source_action(t){return void 0===t?this.getRuleContexts(Mn):this.getRuleContext(t,Mn)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_external_data_source_stmt}accept(t){return t.visitAlter_external_data_source_stmt?t.visitAlter_external_data_source_stmt(this):t.visitChildren(this)}},Mn=class extends P{static{Ss(this,"Alter_external_data_source_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}get ruleIndex(){return tr.RULE_alter_external_data_source_action}accept(t){return t.visitAlter_external_data_source_action?t.visitAlter_external_data_source_action(this):t.visitChildren(this)}},yn=class extends P{static{Ss(this,"Drop_external_data_source_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}DATA(){return this.getToken(tr.DATA,0)}SOURCE(){return this.getToken(tr.SOURCE,0)}object_ref(){return this.getRuleContext(0,$h)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}get ruleIndex(){return tr.RULE_drop_external_data_source_stmt}accept(t){return t.visitDrop_external_data_source_stmt?t.visitDrop_external_data_source_stmt(this):t.visitChildren(this)}},Dn=class extends P{static{Ss(this,"Create_view_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}VIEW(){return this.getToken(tr.VIEW,0)}object_ref(){return this.getRuleContext(0,$h)}AS(){return this.getToken(tr.AS,0)}select_stmt(){return this.getRuleContext(0,oa)}IF(){return this.getToken(tr.IF,0)}NOT(){return this.getToken(tr.NOT,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}create_object_features(){return this.getRuleContext(0,wn)}get ruleIndex(){return tr.RULE_create_view_stmt}accept(t){return t.visitCreate_view_stmt?t.visitCreate_view_stmt(this):t.visitChildren(this)}},vn=class extends P{static{Ss(this,"Drop_view_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}VIEW(){return this.getToken(tr.VIEW,0)}object_ref(){return this.getRuleContext(0,$h)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}get ruleIndex(){return tr.RULE_drop_view_stmt}accept(t){return t.visitDrop_view_stmt?t.visitDrop_view_stmt(this):t.visitChildren(this)}},bn=class extends P{static{Ss(this,"Upsert_object_stmtContext")}constructor(t,e){super(t,e)}UPSERT(){return this.getToken(tr.UPSERT,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}object_ref(){return this.getRuleContext(0,$h)}LPAREN(){return this.getToken(tr.LPAREN,0)}TYPE(){return this.getToken(tr.TYPE,0)}object_type_ref(){return this.getRuleContext(0,qn)}RPAREN(){return this.getToken(tr.RPAREN,0)}create_object_features(){return this.getRuleContext(0,wn)}get ruleIndex(){return tr.RULE_upsert_object_stmt}accept(t){return t.visitUpsert_object_stmt?t.visitUpsert_object_stmt(this):t.visitChildren(this)}},Hn=class extends P{static{Ss(this,"Create_object_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}object_ref(){return this.getRuleContext(0,$h)}LPAREN(){return this.getToken(tr.LPAREN,0)}TYPE(){return this.getToken(tr.TYPE,0)}object_type_ref(){return this.getRuleContext(0,qn)}RPAREN(){return this.getToken(tr.RPAREN,0)}IF(){return this.getToken(tr.IF,0)}NOT(){return this.getToken(tr.NOT,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}create_object_features(){return this.getRuleContext(0,wn)}get ruleIndex(){return tr.RULE_create_object_stmt}accept(t){return t.visitCreate_object_stmt?t.visitCreate_object_stmt(this):t.visitChildren(this)}},wn=class extends P{static{Ss(this,"Create_object_featuresContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}object_features(){return this.getRuleContext(0,Qn)}get ruleIndex(){return tr.RULE_create_object_features}accept(t){return t.visitCreate_object_features?t.visitCreate_object_features(this):t.visitChildren(this)}},Fn=class extends P{static{Ss(this,"Alter_object_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}object_ref(){return this.getRuleContext(0,$h)}LPAREN(){return this.getToken(tr.LPAREN,0)}TYPE(){return this.getToken(tr.TYPE,0)}object_type_ref(){return this.getRuleContext(0,qn)}RPAREN(){return this.getToken(tr.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Gn)}get ruleIndex(){return tr.RULE_alter_object_stmt}accept(t){return t.visitAlter_object_stmt?t.visitAlter_object_stmt(this):t.visitChildren(this)}},Gn=class extends P{static{Ss(this,"Alter_object_featuresContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}object_features(){return this.getRuleContext(0,Qn)}get ruleIndex(){return tr.RULE_alter_object_features}accept(t){return t.visitAlter_object_features?t.visitAlter_object_features(this):t.visitChildren(this)}},Bn=class extends P{static{Ss(this,"Drop_object_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}object_ref(){return this.getRuleContext(0,$h)}LPAREN(){return this.getToken(tr.LPAREN,0)}TYPE(){return this.getToken(tr.TYPE,0)}object_type_ref(){return this.getRuleContext(0,qn)}RPAREN(){return this.getToken(tr.RPAREN,0)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,Yn)}get ruleIndex(){return tr.RULE_drop_object_stmt}accept(t){return t.visitDrop_object_stmt?t.visitDrop_object_stmt(this):t.visitChildren(this)}},Yn=class extends P{static{Ss(this,"Drop_object_featuresContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}object_features(){return this.getRuleContext(0,Qn)}get ruleIndex(){return tr.RULE_drop_object_features}accept(t){return t.visitDrop_object_features?t.visitDrop_object_features(this):t.visitChildren(this)}},Vn=class extends P{static{Ss(this,"Object_feature_valueContext")}constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,DE)}bind_parameter(){return this.getRuleContext(0,Li)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,JE)}get ruleIndex(){return tr.RULE_object_feature_value}accept(t){return t.visitObject_feature_value?t.visitObject_feature_value(this):t.visitChildren(this)}},Wn=class extends P{static{Ss(this,"Object_feature_kvContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(tr.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,Vn)}get ruleIndex(){return tr.RULE_object_feature_kv}accept(t){return t.visitObject_feature_kv?t.visitObject_feature_kv(this):t.visitChildren(this)}},Xn=class extends P{static{Ss(this,"Object_feature_flagContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,NE)}get ruleIndex(){return tr.RULE_object_feature_flag}accept(t){return t.visitObject_feature_flag?t.visitObject_feature_flag(this):t.visitChildren(this)}},Kn=class extends P{static{Ss(this,"Object_featureContext")}constructor(t,e){super(t,e)}object_feature_kv(){return this.getRuleContext(0,Wn)}object_feature_flag(){return this.getRuleContext(0,Xn)}get ruleIndex(){return tr.RULE_object_feature}accept(t){return t.visitObject_feature?t.visitObject_feature(this):t.visitChildren(this)}},Qn=class extends P{static{Ss(this,"Object_featuresContext")}constructor(t,e){super(t,e)}object_feature(t){return void 0===t?this.getRuleContexts(Kn):this.getRuleContext(t,Kn)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_object_features}accept(t){return t.visitObject_features?t.visitObject_features(this):t.visitChildren(this)}},qn=class extends P{static{Ss(this,"Object_type_refContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,NE)}get ruleIndex(){return tr.RULE_object_type_ref}accept(t){return t.visitObject_type_ref?t.visitObject_type_ref(this):t.visitChildren(this)}},jn=class extends P{static{Ss(this,"Create_table_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,eo)}LPAREN(){return this.getToken(tr.LPAREN,0)}create_table_entry(t){return void 0===t?this.getRuleContexts(Jn):this.getRuleContext(t,Jn)}RPAREN(){return this.getToken(tr.RPAREN,0)}TABLE(){return this.getToken(tr.TABLE,0)}TABLESTORE(){return this.getToken(tr.TABLESTORE,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}TEMP(){return this.getToken(tr.TEMP,0)}TEMPORARY(){return this.getToken(tr.TEMPORARY,0)}OR(){return this.getToken(tr.OR,0)}REPLACE(){return this.getToken(tr.REPLACE,0)}IF(){return this.getToken(tr.IF,0)}NOT(){return this.getToken(tr.NOT,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}table_inherits(){return this.getRuleContext(0,uc)}table_partition_by(){return this.getRuleContext(0,Rc)}with_table_settings(){return this.getRuleContext(0,_c)}table_tablestore(){return this.getRuleContext(0,Tc)}table_as_source(){return this.getRuleContext(0,Sc)}get ruleIndex(){return tr.RULE_create_table_stmt}accept(t){return t.visitCreate_table_stmt?t.visitCreate_table_stmt(this):t.visitChildren(this)}},Jn=class extends P{static{Ss(this,"Create_table_entryContext")}constructor(t,e){super(t,e)}column_schema(){return this.getRuleContext(0,Bc)}table_constraint(){return this.getRuleContext(0,Xc)}table_index(){return this.getRuleContext(0,Kc)}family_entry(){return this.getRuleContext(0,ch)}changefeed(){return this.getRuleContext(0,th)}an_id_schema(){return this.getRuleContext(0,IE)}get ruleIndex(){return tr.RULE_create_table_entry}accept(t){return t.visitCreate_table_entry?t.visitCreate_table_entry(this):t.visitChildren(this)}},zn=class extends P{static{Ss(this,"Create_backup_collection_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}backup_collection(){return this.getRuleContext(0,cc)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,hc)}RPAREN(){return this.getToken(tr.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,tc)}get ruleIndex(){return tr.RULE_create_backup_collection_stmt}accept(t){return t.visitCreate_backup_collection_stmt?t.visitCreate_backup_collection_stmt(this):t.visitChildren(this)}},Zn=class extends P{static{Ss(this,"Alter_backup_collection_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}backup_collection(){return this.getRuleContext(0,cc)}alter_backup_collection_actions(){return this.getRuleContext(0,rc)}alter_backup_collection_entries(){return this.getRuleContext(0,ac)}get ruleIndex(){return tr.RULE_alter_backup_collection_stmt}accept(t){return t.visitAlter_backup_collection_stmt?t.visitAlter_backup_collection_stmt(this):t.visitChildren(this)}},$n=class extends P{static{Ss(this,"Drop_backup_collection_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}backup_collection(){return this.getRuleContext(0,cc)}get ruleIndex(){return tr.RULE_drop_backup_collection_stmt}accept(t){return t.visitDrop_backup_collection_stmt?t.visitDrop_backup_collection_stmt(this):t.visitChildren(this)}},tc=class extends P{static{Ss(this,"Create_backup_collection_entriesContext")}constructor(t,e){super(t,e)}DATABASE(){return this.getToken(tr.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,ec)}get ruleIndex(){return tr.RULE_create_backup_collection_entries}accept(t){return t.visitCreate_backup_collection_entries?t.visitCreate_backup_collection_entries(this):t.visitChildren(this)}},ec=class extends P{static{Ss(this,"Create_backup_collection_entries_manyContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}table_list(){return this.getRuleContext(0,sc)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_create_backup_collection_entries_many}accept(t){return t.visitCreate_backup_collection_entries_many?t.visitCreate_backup_collection_entries_many(this):t.visitChildren(this)}},sc=class extends P{static{Ss(this,"Table_listContext")}constructor(t,e){super(t,e)}TABLE(t){return void 0===t?this.getTokens(tr.TABLE):this.getToken(tr.TABLE,t)}an_id_table(t){return void 0===t?this.getRuleContexts(mE):this.getRuleContext(t,mE)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_table_list}accept(t){return t.visitTable_list?t.visitTable_list(this):t.visitChildren(this)}},rc=class extends P{static{Ss(this,"Alter_backup_collection_actionsContext")}constructor(t,e){super(t,e)}alter_backup_collection_action(t){return void 0===t?this.getRuleContexts(ic):this.getRuleContext(t,ic)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_backup_collection_actions}accept(t){return t.visitAlter_backup_collection_actions?t.visitAlter_backup_collection_actions(this):t.visitChildren(this)}},ic=class extends P{static{Ss(this,"Alter_backup_collection_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}get ruleIndex(){return tr.RULE_alter_backup_collection_action}accept(t){return t.visitAlter_backup_collection_action?t.visitAlter_backup_collection_action(this):t.visitChildren(this)}},ac=class extends P{static{Ss(this,"Alter_backup_collection_entriesContext")}constructor(t,e){super(t,e)}alter_backup_collection_entry(t){return void 0===t?this.getRuleContexts(nc):this.getRuleContext(t,nc)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_backup_collection_entries}accept(t){return t.visitAlter_backup_collection_entries?t.visitAlter_backup_collection_entries(this):t.visitChildren(this)}},nc=class extends P{static{Ss(this,"Alter_backup_collection_entryContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(tr.ADD,0)}DATABASE(){return this.getToken(tr.DATABASE,0)}DROP(){return this.getToken(tr.DROP,0)}TABLE(){return this.getToken(tr.TABLE,0)}an_id_table(){return this.getRuleContext(0,mE)}get ruleIndex(){return tr.RULE_alter_backup_collection_entry}accept(t){return t.visitAlter_backup_collection_entry?t.visitAlter_backup_collection_entry(this):t.visitChildren(this)}},cc=class extends P{static{Ss(this,"Backup_collectionContext")}constructor(t,e){super(t,e)}BACKUP(){return this.getToken(tr.BACKUP,0)}COLLECTION(){return this.getToken(tr.COLLECTION,0)}object_ref(){return this.getRuleContext(0,$h)}get ruleIndex(){return tr.RULE_backup_collection}accept(t){return t.visitBackup_collection?t.visitBackup_collection(this):t.visitChildren(this)}},hc=class extends P{static{Ss(this,"Backup_collection_settingsContext")}constructor(t,e){super(t,e)}backup_collection_settings_entry(t){return void 0===t?this.getRuleContexts(oc):this.getRuleContext(t,oc)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_backup_collection_settings}accept(t){return t.visitBackup_collection_settings?t.visitBackup_collection_settings(this):t.visitChildren(this)}},oc=class extends P{static{Ss(this,"Backup_collection_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,nh)}get ruleIndex(){return tr.RULE_backup_collection_settings_entry}accept(t){return t.visitBackup_collection_settings_entry?t.visitBackup_collection_settings_entry(this):t.visitChildren(this)}},Ec=class extends P{static{Ss(this,"Backup_stmtContext")}constructor(t,e){super(t,e)}BACKUP(){return this.getToken(tr.BACKUP,0)}object_ref(){return this.getRuleContext(0,$h)}INCREMENTAL(){return this.getToken(tr.INCREMENTAL,0)}get ruleIndex(){return tr.RULE_backup_stmt}accept(t){return t.visitBackup_stmt?t.visitBackup_stmt(this):t.visitChildren(this)}},lc=class extends P{static{Ss(this,"Restore_stmtContext")}constructor(t,e){super(t,e)}RESTORE(){return this.getToken(tr.RESTORE,0)}object_ref(){return this.getRuleContext(0,$h)}AT(){return this.getToken(tr.AT,0)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_restore_stmt}accept(t){return t.visitRestore_stmt?t.visitRestore_stmt(this):t.visitChildren(this)}},uc=class extends P{static{Ss(this,"Table_inheritsContext")}constructor(t,e){super(t,e)}INHERITS(){return this.getToken(tr.INHERITS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}simple_table_ref_core(t){return void 0===t?this.getRuleContexts(to):this.getRuleContext(t,to)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_table_inherits}accept(t){return t.visitTable_inherits?t.visitTable_inherits(this):t.visitChildren(this)}},Rc=class extends P{static{Ss(this,"Table_partition_byContext")}constructor(t,e){super(t,e)}PARTITION(){return this.getToken(tr.PARTITION,0)}BY(){return this.getToken(tr.BY,0)}HASH(){return this.getToken(tr.HASH,0)}pure_column_list(){return this.getRuleContext(0,ii)}get ruleIndex(){return tr.RULE_table_partition_by}accept(t){return t.visitTable_partition_by?t.visitTable_partition_by(this):t.visitChildren(this)}},_c=class extends P{static{Ss(this,"With_table_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}table_settings_entry(t){return void 0===t?this.getRuleContexts(Ac):this.getRuleContext(t,Ac)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_with_table_settings}accept(t){return t.visitWith_table_settings?t.visitWith_table_settings(this):t.visitChildren(this)}},Tc=class extends P{static{Ss(this,"Table_tablestoreContext")}constructor(t,e){super(t,e)}TABLESTORE(){return this.getToken(tr.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,to)}get ruleIndex(){return tr.RULE_table_tablestore}accept(t){return t.visitTable_tablestore?t.visitTable_tablestore(this):t.visitChildren(this)}},Ac=class extends P{static{Ss(this,"Table_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,nh)}get ruleIndex(){return tr.RULE_table_settings_entry}accept(t){return t.visitTable_settings_entry?t.visitTable_settings_entry(this):t.visitChildren(this)}},Sc=class extends P{static{Ss(this,"Table_as_sourceContext")}constructor(t,e){super(t,e)}AS(){return this.getToken(tr.AS,0)}values_source(){return this.getRuleContext(0,mn)}get ruleIndex(){return tr.RULE_table_as_source}accept(t){return t.visitTable_as_source?t.visitTable_as_source(this):t.visitChildren(this)}},dc=class extends P{static{Ss(this,"Alter_table_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}TABLE(){return this.getToken(tr.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,eo)}alter_table_action(t){return void 0===t?this.getRuleContexts(Lc):this.getRuleContext(t,Lc)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_table_stmt}accept(t){return t.visitAlter_table_stmt?t.visitAlter_table_stmt(this):t.visitChildren(this)}},Lc=class extends P{static{Ss(this,"Alter_table_actionContext")}constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,pc)}alter_table_drop_column(){return this.getRuleContext(0,gc)}alter_table_alter_column(){return this.getRuleContext(0,mc)}alter_table_add_column_family(){return this.getRuleContext(0,Uc)}alter_table_alter_column_family(){return this.getRuleContext(0,fc)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}alter_table_add_index(){return this.getRuleContext(0,yc)}alter_table_drop_index(){return this.getRuleContext(0,Dc)}alter_table_rename_to(){return this.getRuleContext(0,vc)}alter_table_add_changefeed(){return this.getRuleContext(0,Hc)}alter_table_alter_changefeed(){return this.getRuleContext(0,wc)}alter_table_drop_changefeed(){return this.getRuleContext(0,Fc)}alter_table_rename_index_to(){return this.getRuleContext(0,bc)}alter_table_alter_index(){return this.getRuleContext(0,Gc)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,xc)}get ruleIndex(){return tr.RULE_alter_table_action}accept(t){return t.visitAlter_table_action?t.visitAlter_table_action(this):t.visitChildren(this)}},Cc=class extends P{static{Ss(this,"Alter_external_table_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}TABLE(){return this.getToken(tr.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,eo)}alter_external_table_action(t){return void 0===t?this.getRuleContexts(Nc):this.getRuleContext(t,Nc)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_external_table_stmt}accept(t){return t.visitAlter_external_table_stmt?t.visitAlter_external_table_stmt(this):t.visitChildren(this)}},Nc=class extends P{static{Ss(this,"Alter_external_table_actionContext")}constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,pc)}alter_table_drop_column(){return this.getRuleContext(0,gc)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}get ruleIndex(){return tr.RULE_alter_external_table_action}accept(t){return t.visitAlter_external_table_action?t.visitAlter_external_table_action(this):t.visitChildren(this)}},Ic=class extends P{static{Ss(this,"Alter_table_store_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}TABLESTORE(){return this.getToken(tr.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,$h)}alter_table_store_action(t){return void 0===t?this.getRuleContexts(Oc):this.getRuleContext(t,Oc)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_table_store_stmt}accept(t){return t.visitAlter_table_store_stmt?t.visitAlter_table_store_stmt(this):t.visitChildren(this)}},Oc=class extends P{static{Ss(this,"Alter_table_store_actionContext")}constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,pc)}alter_table_drop_column(){return this.getRuleContext(0,gc)}get ruleIndex(){return tr.RULE_alter_table_store_action}accept(t){return t.visitAlter_table_store_action?t.visitAlter_table_store_action(this):t.visitChildren(this)}},pc=class extends P{static{Ss(this,"Alter_table_add_columnContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(tr.ADD,0)}column_schema(){return this.getRuleContext(0,Bc)}COLUMN(){return this.getToken(tr.COLUMN,0)}get ruleIndex(){return tr.RULE_alter_table_add_column}accept(t){return t.visitAlter_table_add_column?t.visitAlter_table_add_column(this):t.visitChildren(this)}},gc=class extends P{static{Ss(this,"Alter_table_drop_columnContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}an_id(){return this.getRuleContext(0,CE)}COLUMN(){return this.getToken(tr.COLUMN,0)}get ruleIndex(){return tr.RULE_alter_table_drop_column}accept(t){return t.visitAlter_table_drop_column?t.visitAlter_table_drop_column(this):t.visitChildren(this)}},mc=class extends P{static{Ss(this,"Alter_table_alter_columnContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}COLUMN(){return this.getToken(tr.COLUMN,0)}an_id(){return this.getRuleContext(0,CE)}SET(){return this.getToken(tr.SET,0)}family_relation(){return this.getRuleContext(0,Yc)}get ruleIndex(){return tr.RULE_alter_table_alter_column}accept(t){return t.visitAlter_table_alter_column?t.visitAlter_table_alter_column(this):t.visitChildren(this)}},xc=class extends P{static{Ss(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}COLUMN(){return this.getToken(tr.COLUMN,0)}an_id(){return this.getRuleContext(0,CE)}DROP(){return this.getToken(tr.DROP,0)}NOT(){return this.getToken(tr.NOT,0)}NULL(){return this.getToken(tr.NULL,0)}get ruleIndex(){return tr.RULE_alter_table_alter_column_drop_not_null}accept(t){return t.visitAlter_table_alter_column_drop_not_null?t.visitAlter_table_alter_column_drop_not_null(this):t.visitChildren(this)}},Uc=class extends P{static{Ss(this,"Alter_table_add_column_familyContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(tr.ADD,0)}family_entry(){return this.getRuleContext(0,ch)}get ruleIndex(){return tr.RULE_alter_table_add_column_family}accept(t){return t.visitAlter_table_add_column_family?t.visitAlter_table_add_column_family(this):t.visitChildren(this)}},fc=class extends P{static{Ss(this,"Alter_table_alter_column_familyContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}FAMILY(){return this.getToken(tr.FAMILY,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}SET(){return this.getToken(tr.SET,0)}family_setting_value(){return this.getRuleContext(0,Eh)}get ruleIndex(){return tr.RULE_alter_table_alter_column_family}accept(t){return t.visitAlter_table_alter_column_family?t.visitAlter_table_alter_column_family(this):t.visitChildren(this)}},Pc=class extends P{static{Ss(this,"Alter_table_set_table_setting_uncompatContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}an_id(){return this.getRuleContext(0,CE)}table_setting_value(){return this.getRuleContext(0,nh)}get ruleIndex(){return tr.RULE_alter_table_set_table_setting_uncompat}accept(t){return t.visitAlter_table_set_table_setting_uncompat?t.visitAlter_table_set_table_setting_uncompat(this):t.visitChildren(this)}},kc=class extends P{static{Ss(this,"Alter_table_set_table_setting_compatContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}alter_table_setting_entry(t){return void 0===t?this.getRuleContexts(ah):this.getRuleContext(t,ah)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_table_set_table_setting_compat}accept(t){return t.visitAlter_table_set_table_setting_compat?t.visitAlter_table_set_table_setting_compat(this):t.visitChildren(this)}},Mc=class extends P{static{Ss(this,"Alter_table_reset_table_settingContext")}constructor(t,e){super(t,e)}RESET(){return this.getToken(tr.RESET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_table_reset_table_setting}accept(t){return t.visitAlter_table_reset_table_setting?t.visitAlter_table_reset_table_setting(this):t.visitChildren(this)}},yc=class extends P{static{Ss(this,"Alter_table_add_indexContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(tr.ADD,0)}table_index(){return this.getRuleContext(0,Kc)}get ruleIndex(){return tr.RULE_alter_table_add_index}accept(t){return t.visitAlter_table_add_index?t.visitAlter_table_add_index(this):t.visitChildren(this)}},Dc=class extends P{static{Ss(this,"Alter_table_drop_indexContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}INDEX(){return this.getToken(tr.INDEX,0)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_alter_table_drop_index}accept(t){return t.visitAlter_table_drop_index?t.visitAlter_table_drop_index(this):t.visitChildren(this)}},vc=class extends P{static{Ss(this,"Alter_table_rename_toContext")}constructor(t,e){super(t,e)}RENAME(){return this.getToken(tr.RENAME,0)}TO(){return this.getToken(tr.TO,0)}an_id_table(){return this.getRuleContext(0,mE)}get ruleIndex(){return tr.RULE_alter_table_rename_to}accept(t){return t.visitAlter_table_rename_to?t.visitAlter_table_rename_to(this):t.visitChildren(this)}},bc=class extends P{static{Ss(this,"Alter_table_rename_index_toContext")}constructor(t,e){super(t,e)}RENAME(){return this.getToken(tr.RENAME,0)}INDEX(){return this.getToken(tr.INDEX,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}TO(){return this.getToken(tr.TO,0)}get ruleIndex(){return tr.RULE_alter_table_rename_index_to}accept(t){return t.visitAlter_table_rename_index_to?t.visitAlter_table_rename_index_to(this):t.visitChildren(this)}},Hc=class extends P{static{Ss(this,"Alter_table_add_changefeedContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(tr.ADD,0)}changefeed(){return this.getRuleContext(0,th)}get ruleIndex(){return tr.RULE_alter_table_add_changefeed}accept(t){return t.visitAlter_table_add_changefeed?t.visitAlter_table_add_changefeed(this):t.visitChildren(this)}},wc=class extends P{static{Ss(this,"Alter_table_alter_changefeedContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}CHANGEFEED(){return this.getToken(tr.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,CE)}changefeed_alter_settings(){return this.getRuleContext(0,ih)}get ruleIndex(){return tr.RULE_alter_table_alter_changefeed}accept(t){return t.visitAlter_table_alter_changefeed?t.visitAlter_table_alter_changefeed(this):t.visitChildren(this)}},Fc=class extends P{static{Ss(this,"Alter_table_drop_changefeedContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}CHANGEFEED(){return this.getToken(tr.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_alter_table_drop_changefeed}accept(t){return t.visitAlter_table_drop_changefeed?t.visitAlter_table_drop_changefeed(this):t.visitChildren(this)}},Gc=class extends P{static{Ss(this,"Alter_table_alter_indexContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}INDEX(){return this.getToken(tr.INDEX,0)}an_id(){return this.getRuleContext(0,CE)}alter_table_alter_index_action(){return this.getRuleContext(0,Rh)}get ruleIndex(){return tr.RULE_alter_table_alter_index}accept(t){return t.visitAlter_table_alter_index?t.visitAlter_table_alter_index(this):t.visitChildren(this)}},Bc=class extends P{static{Ss(this,"Column_schemaContext")}constructor(t,e){super(t,e)}an_id_schema(){return this.getRuleContext(0,IE)}type_name_or_bind(){return this.getRuleContext(0,ji)}opt_column_constraints(){return this.getRuleContext(0,Vc)}family_relation(){return this.getRuleContext(0,Yc)}get ruleIndex(){return tr.RULE_column_schema}accept(t){return t.visitColumn_schema?t.visitColumn_schema(this):t.visitChildren(this)}},Yc=class extends P{static{Ss(this,"Family_relationContext")}constructor(t,e){super(t,e)}FAMILY(){return this.getToken(tr.FAMILY,0)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_family_relation}accept(t){return t.visitFamily_relation?t.visitFamily_relation(this):t.visitChildren(this)}},Vc=class extends P{static{Ss(this,"Opt_column_constraintsContext")}constructor(t,e){super(t,e)}NULL(){return this.getToken(tr.NULL,0)}DEFAULT(){return this.getToken(tr.DEFAULT,0)}expr(){return this.getRuleContext(0,hr)}NOT(){return this.getToken(tr.NOT,0)}get ruleIndex(){return tr.RULE_opt_column_constraints}accept(t){return t.visitOpt_column_constraints?t.visitOpt_column_constraints(this):t.visitChildren(this)}},Wc=class extends P{static{Ss(this,"Column_order_by_specificationContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}ASC(){return this.getToken(tr.ASC,0)}DESC(){return this.getToken(tr.DESC,0)}get ruleIndex(){return tr.RULE_column_order_by_specification}accept(t){return t.visitColumn_order_by_specification?t.visitColumn_order_by_specification(this):t.visitChildren(this)}},Xc=class extends P{static{Ss(this,"Table_constraintContext")}constructor(t,e){super(t,e)}PRIMARY(){return this.getToken(tr.PRIMARY,0)}KEY(){return this.getToken(tr.KEY,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}PARTITION(){return this.getToken(tr.PARTITION,0)}BY(){return this.getToken(tr.BY,0)}ORDER(){return this.getToken(tr.ORDER,0)}column_order_by_specification(t){return void 0===t?this.getRuleContexts(Wc):this.getRuleContext(t,Wc)}get ruleIndex(){return tr.RULE_table_constraint}accept(t){return t.visitTable_constraint?t.visitTable_constraint(this):t.visitChildren(this)}},Kc=class extends P{static{Ss(this,"Table_indexContext")}constructor(t,e){super(t,e)}INDEX(){return this.getToken(tr.INDEX,0)}an_id(){return this.getRuleContext(0,CE)}table_index_type(){return this.getRuleContext(0,Qc)}ON(){return this.getToken(tr.ON,0)}LPAREN(t){return void 0===t?this.getTokens(tr.LPAREN):this.getToken(tr.LPAREN,t)}an_id_schema(t){return void 0===t?this.getRuleContexts(IE):this.getRuleContext(t,IE)}RPAREN(t){return void 0===t?this.getTokens(tr.RPAREN):this.getToken(tr.RPAREN,t)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}COVER(){return this.getToken(tr.COVER,0)}with_index_settings(){return this.getRuleContext(0,zc)}get ruleIndex(){return tr.RULE_table_index}accept(t){return t.visitTable_index?t.visitTable_index(this):t.visitChildren(this)}},Qc=class extends P{static{Ss(this,"Table_index_typeContext")}constructor(t,e){super(t,e)}global_index(){return this.getRuleContext(0,qc)}local_index(){return this.getRuleContext(0,jc)}USING(){return this.getToken(tr.USING,0)}index_subtype(){return this.getRuleContext(0,Jc)}get ruleIndex(){return tr.RULE_table_index_type}accept(t){return t.visitTable_index_type?t.visitTable_index_type(this):t.visitChildren(this)}},qc=class extends P{static{Ss(this,"Global_indexContext")}constructor(t,e){super(t,e)}GLOBAL(){return this.getToken(tr.GLOBAL,0)}UNIQUE(){return this.getToken(tr.UNIQUE,0)}SYNC(){return this.getToken(tr.SYNC,0)}ASYNC(){return this.getToken(tr.ASYNC,0)}get ruleIndex(){return tr.RULE_global_index}accept(t){return t.visitGlobal_index?t.visitGlobal_index(this):t.visitChildren(this)}},jc=class extends P{static{Ss(this,"Local_indexContext")}constructor(t,e){super(t,e)}LOCAL(){return this.getToken(tr.LOCAL,0)}get ruleIndex(){return tr.RULE_local_index}accept(t){return t.visitLocal_index?t.visitLocal_index(this):t.visitChildren(this)}},Jc=class extends P{static{Ss(this,"Index_subtypeContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}get ruleIndex(){return tr.RULE_index_subtype}accept(t){return t.visitIndex_subtype?t.visitIndex_subtype(this):t.visitChildren(this)}},zc=class extends P{static{Ss(this,"With_index_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}index_setting_entry(t){return void 0===t?this.getRuleContexts(Zc):this.getRuleContext(t,Zc)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_with_index_settings}accept(t){return t.visitWith_index_settings?t.visitWith_index_settings(this):t.visitChildren(this)}},Zc=class extends P{static{Ss(this,"Index_setting_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,$c)}get ruleIndex(){return tr.RULE_index_setting_entry}accept(t){return t.visitIndex_setting_entry?t.visitIndex_setting_entry(this):t.visitChildren(this)}},$c=class extends P{static{Ss(this,"Index_setting_valueContext")}constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,DE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}integer(){return this.getRuleContext(0,ZE)}bool_value(){return this.getRuleContext(0,JE)}get ruleIndex(){return tr.RULE_index_setting_value}accept(t){return t.visitIndex_setting_value?t.visitIndex_setting_value(this):t.visitChildren(this)}},th=class extends P{static{Ss(this,"ChangefeedContext")}constructor(t,e){super(t,e)}CHANGEFEED(){return this.getToken(tr.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,CE)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,eh)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_changefeed}accept(t){return t.visitChangefeed?t.visitChangefeed(this):t.visitChildren(this)}},eh=class extends P{static{Ss(this,"Changefeed_settingsContext")}constructor(t,e){super(t,e)}changefeed_settings_entry(t){return void 0===t?this.getRuleContexts(sh):this.getRuleContext(t,sh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_changefeed_settings}accept(t){return t.visitChangefeed_settings?t.visitChangefeed_settings(this):t.visitChildren(this)}},sh=class extends P{static{Ss(this,"Changefeed_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,rh)}get ruleIndex(){return tr.RULE_changefeed_settings_entry}accept(t){return t.visitChangefeed_settings_entry?t.visitChangefeed_settings_entry(this):t.visitChildren(this)}},rh=class extends P{static{Ss(this,"Changefeed_setting_valueContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_changefeed_setting_value}accept(t){return t.visitChangefeed_setting_value?t.visitChangefeed_setting_value(this):t.visitChildren(this)}},ih=class extends P{static{Ss(this,"Changefeed_alter_settingsContext")}constructor(t,e){super(t,e)}DISABLE(){return this.getToken(tr.DISABLE,0)}SET(){return this.getToken(tr.SET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,eh)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_changefeed_alter_settings}accept(t){return t.visitChangefeed_alter_settings?t.visitChangefeed_alter_settings(this):t.visitChildren(this)}},ah=class extends P{static{Ss(this,"Alter_table_setting_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,nh)}get ruleIndex(){return tr.RULE_alter_table_setting_entry}accept(t){return t.visitAlter_table_setting_entry?t.visitAlter_table_setting_entry(this):t.visitChildren(this)}},nh=class extends P{static{Ss(this,"Table_setting_valueContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,lE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}integer(){return this.getRuleContext(0,ZE)}split_boundaries(){return this.getRuleContext(0,lh)}expr(){return this.getRuleContext(0,hr)}ON(){return this.getToken(tr.ON,0)}an_id(){return this.getRuleContext(0,CE)}AS(){return this.getToken(tr.AS,0)}SECONDS(){return this.getToken(tr.SECONDS,0)}MILLISECONDS(){return this.getToken(tr.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(tr.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(tr.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,JE)}get ruleIndex(){return tr.RULE_table_setting_value}accept(t){return t.visitTable_setting_value?t.visitTable_setting_value(this):t.visitChildren(this)}},ch=class extends P{static{Ss(this,"Family_entryContext")}constructor(t,e){super(t,e)}FAMILY(){return this.getToken(tr.FAMILY,0)}an_id(){return this.getRuleContext(0,CE)}family_settings(){return this.getRuleContext(0,hh)}get ruleIndex(){return tr.RULE_family_entry}accept(t){return t.visitFamily_entry?t.visitFamily_entry(this):t.visitChildren(this)}},hh=class extends P{static{Ss(this,"Family_settingsContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}family_settings_entry(t){return void 0===t?this.getRuleContexts(oh):this.getRuleContext(t,oh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_family_settings}accept(t){return t.visitFamily_settings?t.visitFamily_settings(this):t.visitChildren(this)}},oh=class extends P{static{Ss(this,"Family_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,Eh)}get ruleIndex(){return tr.RULE_family_settings_entry}accept(t){return t.visitFamily_settings_entry?t.visitFamily_settings_entry(this):t.visitChildren(this)}},Eh=class extends P{static{Ss(this,"Family_setting_valueContext")}constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}integer(){return this.getRuleContext(0,ZE)}get ruleIndex(){return tr.RULE_family_setting_value}accept(t){return t.visitFamily_setting_value?t.visitFamily_setting_value(this):t.visitChildren(this)}},lh=class extends P{static{Ss(this,"Split_boundariesContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}literal_value_list(t){return void 0===t?this.getRuleContexts(uh):this.getRuleContext(t,uh)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_split_boundaries}accept(t){return t.visitSplit_boundaries?t.visitSplit_boundaries(this):t.visitChildren(this)}},uh=class extends P{static{Ss(this,"Literal_value_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}literal_value(t){return void 0===t?this.getRuleContexts(di):this.getRuleContext(t,di)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_literal_value_list}accept(t){return t.visitLiteral_value_list?t.visitLiteral_value_list(this):t.visitChildren(this)}},Rh=class extends P{static{Ss(this,"Alter_table_alter_index_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}get ruleIndex(){return tr.RULE_alter_table_alter_index_action}accept(t){return t.visitAlter_table_alter_index_action?t.visitAlter_table_alter_index_action(this):t.visitChildren(this)}},_h=class extends P{static{Ss(this,"Drop_table_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}simple_table_ref(){return this.getRuleContext(0,eo)}TABLE(){return this.getToken(tr.TABLE,0)}TABLESTORE(){return this.getToken(tr.TABLESTORE,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}get ruleIndex(){return tr.RULE_drop_table_stmt}accept(t){return t.visitDrop_table_stmt?t.visitDrop_table_stmt(this):t.visitChildren(this)}},Th=class extends P{static{Ss(this,"Create_user_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}USER(){return this.getToken(tr.USER,0)}role_name(){return this.getRuleContext(0,Ch)}create_user_option(){return this.getRuleContext(0,Nh)}get ruleIndex(){return tr.RULE_create_user_stmt}accept(t){return t.visitCreate_user_stmt?t.visitCreate_user_stmt(this):t.visitChildren(this)}},Ah=class extends P{static{Ss(this,"Alter_user_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}USER(){return this.getToken(tr.USER,0)}role_name(t){return void 0===t?this.getRuleContexts(Ch):this.getRuleContext(t,Ch)}create_user_option(){return this.getRuleContext(0,Nh)}RENAME(){return this.getToken(tr.RENAME,0)}TO(){return this.getToken(tr.TO,0)}WITH(){return this.getToken(tr.WITH,0)}get ruleIndex(){return tr.RULE_alter_user_stmt}accept(t){return t.visitAlter_user_stmt?t.visitAlter_user_stmt(this):t.visitChildren(this)}},Sh=class extends P{static{Ss(this,"Create_group_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}GROUP(){return this.getToken(tr.GROUP,0)}role_name(t){return void 0===t?this.getRuleContexts(Ch):this.getRuleContext(t,Ch)}WITH(){return this.getToken(tr.WITH,0)}USER(){return this.getToken(tr.USER,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_create_group_stmt}accept(t){return t.visitCreate_group_stmt?t.visitCreate_group_stmt(this):t.visitChildren(this)}},dh=class extends P{static{Ss(this,"Alter_group_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}GROUP(){return this.getToken(tr.GROUP,0)}role_name(t){return void 0===t?this.getRuleContexts(Ch):this.getRuleContext(t,Ch)}USER(){return this.getToken(tr.USER,0)}RENAME(){return this.getToken(tr.RENAME,0)}TO(){return this.getToken(tr.TO,0)}ADD(){return this.getToken(tr.ADD,0)}DROP(){return this.getToken(tr.DROP,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_group_stmt}accept(t){return t.visitAlter_group_stmt?t.visitAlter_group_stmt(this):t.visitChildren(this)}},Lh=class extends P{static{Ss(this,"Drop_role_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}role_name(t){return void 0===t?this.getRuleContexts(Ch):this.getRuleContext(t,Ch)}USER(){return this.getToken(tr.USER,0)}GROUP(){return this.getToken(tr.GROUP,0)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_drop_role_stmt}accept(t){return t.visitDrop_role_stmt?t.visitDrop_role_stmt(this):t.visitChildren(this)}},Ch=class extends P{static{Ss(this,"Role_nameContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,NE)}bind_parameter(){return this.getRuleContext(0,Li)}get ruleIndex(){return tr.RULE_role_name}accept(t){return t.visitRole_name?t.visitRole_name(this):t.visitChildren(this)}},Nh=class extends P{static{Ss(this,"Create_user_optionContext")}constructor(t,e){super(t,e)}PASSWORD(){return this.getToken(tr.PASSWORD,0)}expr(){return this.getRuleContext(0,hr)}ENCRYPTED(){return this.getToken(tr.ENCRYPTED,0)}get ruleIndex(){return tr.RULE_create_user_option}accept(t){return t.visitCreate_user_option?t.visitCreate_user_option(this):t.visitChildren(this)}},Ih=class extends P{static{Ss(this,"Grant_permissions_stmtContext")}constructor(t,e){super(t,e)}GRANT(t){return void 0===t?this.getTokens(tr.GRANT):this.getToken(tr.GRANT,t)}permission_name_target(){return this.getRuleContext(0,mh)}ON(){return this.getToken(tr.ON,0)}an_id_schema(t){return void 0===t?this.getRuleContexts(IE):this.getRuleContext(t,IE)}TO(){return this.getToken(tr.TO,0)}role_name(t){return void 0===t?this.getRuleContexts(Ch):this.getRuleContext(t,Ch)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}WITH(){return this.getToken(tr.WITH,0)}OPTION(){return this.getToken(tr.OPTION,0)}get ruleIndex(){return tr.RULE_grant_permissions_stmt}accept(t){return t.visitGrant_permissions_stmt?t.visitGrant_permissions_stmt(this):t.visitChildren(this)}},Oh=class extends P{static{Ss(this,"Revoke_permissions_stmtContext")}constructor(t,e){super(t,e)}REVOKE(){return this.getToken(tr.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,mh)}ON(){return this.getToken(tr.ON,0)}an_id_schema(t){return void 0===t?this.getRuleContexts(IE):this.getRuleContext(t,IE)}FROM(){return this.getToken(tr.FROM,0)}role_name(t){return void 0===t?this.getRuleContexts(Ch):this.getRuleContext(t,Ch)}GRANT(){return this.getToken(tr.GRANT,0)}OPTION(){return this.getToken(tr.OPTION,0)}FOR(){return this.getToken(tr.FOR,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_revoke_permissions_stmt}accept(t){return t.visitRevoke_permissions_stmt?t.visitRevoke_permissions_stmt(this):t.visitChildren(this)}},ph=class extends P{static{Ss(this,"Permission_idContext")}constructor(t,e){super(t,e)}CONNECT(){return this.getToken(tr.CONNECT,0)}LIST(){return this.getToken(tr.LIST,0)}INSERT(){return this.getToken(tr.INSERT,0)}MANAGE(){return this.getToken(tr.MANAGE,0)}DROP(){return this.getToken(tr.DROP,0)}GRANT(){return this.getToken(tr.GRANT,0)}MODIFY(){return this.getToken(tr.MODIFY,0)}TABLES(){return this.getToken(tr.TABLES,0)}ATTRIBUTES(){return this.getToken(tr.ATTRIBUTES,0)}ROW(){return this.getToken(tr.ROW,0)}UPDATE(){return this.getToken(tr.UPDATE,0)}ERASE(){return this.getToken(tr.ERASE,0)}SCHEMA(){return this.getToken(tr.SCHEMA,0)}REMOVE(){return this.getToken(tr.REMOVE,0)}DESCRIBE(){return this.getToken(tr.DESCRIBE,0)}ALTER(){return this.getToken(tr.ALTER,0)}SELECT(){return this.getToken(tr.SELECT,0)}USE(){return this.getToken(tr.USE,0)}FULL(){return this.getToken(tr.FULL,0)}LEGACY(){return this.getToken(tr.LEGACY,0)}CREATE(){return this.getToken(tr.CREATE,0)}DIRECTORY(){return this.getToken(tr.DIRECTORY,0)}TABLE(){return this.getToken(tr.TABLE,0)}QUEUE(){return this.getToken(tr.QUEUE,0)}get ruleIndex(){return tr.RULE_permission_id}accept(t){return t.visitPermission_id?t.visitPermission_id(this):t.visitChildren(this)}},gh=class extends P{static{Ss(this,"Permission_nameContext")}constructor(t,e){super(t,e)}permission_id(){return this.getRuleContext(0,ph)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_permission_name}accept(t){return t.visitPermission_name?t.visitPermission_name(this):t.visitChildren(this)}},mh=class extends P{static{Ss(this,"Permission_name_targetContext")}constructor(t,e){super(t,e)}permission_name(t){return void 0===t?this.getRuleContexts(gh):this.getRuleContext(t,gh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}ALL(){return this.getToken(tr.ALL,0)}PRIVILEGES(){return this.getToken(tr.PRIVILEGES,0)}get ruleIndex(){return tr.RULE_permission_name_target}accept(t){return t.visitPermission_name_target?t.visitPermission_name_target(this):t.visitChildren(this)}},xh=class extends P{static{Ss(this,"Create_resource_pool_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}POOL(){return this.getToken(tr.POOL,0)}object_ref(){return this.getRuleContext(0,$h)}with_table_settings(){return this.getRuleContext(0,_c)}get ruleIndex(){return tr.RULE_create_resource_pool_stmt}accept(t){return t.visitCreate_resource_pool_stmt?t.visitCreate_resource_pool_stmt(this):t.visitChildren(this)}},Uh=class extends P{static{Ss(this,"Alter_resource_pool_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}POOL(){return this.getToken(tr.POOL,0)}object_ref(){return this.getRuleContext(0,$h)}alter_resource_pool_action(t){return void 0===t?this.getRuleContexts(fh):this.getRuleContext(t,fh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_resource_pool_stmt}accept(t){return t.visitAlter_resource_pool_stmt?t.visitAlter_resource_pool_stmt(this):t.visitChildren(this)}},fh=class extends P{static{Ss(this,"Alter_resource_pool_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}get ruleIndex(){return tr.RULE_alter_resource_pool_action}accept(t){return t.visitAlter_resource_pool_action?t.visitAlter_resource_pool_action(this):t.visitChildren(this)}},Ph=class extends P{static{Ss(this,"Drop_resource_pool_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}POOL(){return this.getToken(tr.POOL,0)}object_ref(){return this.getRuleContext(0,$h)}get ruleIndex(){return tr.RULE_drop_resource_pool_stmt}accept(t){return t.visitDrop_resource_pool_stmt?t.visitDrop_resource_pool_stmt(this):t.visitChildren(this)}},kh=class extends P{static{Ss(this,"Create_resource_pool_classifier_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}POOL(){return this.getToken(tr.POOL,0)}CLASSIFIER(){return this.getToken(tr.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,$h)}with_table_settings(){return this.getRuleContext(0,_c)}get ruleIndex(){return tr.RULE_create_resource_pool_classifier_stmt}accept(t){return t.visitCreate_resource_pool_classifier_stmt?t.visitCreate_resource_pool_classifier_stmt(this):t.visitChildren(this)}},Mh=class extends P{static{Ss(this,"Alter_resource_pool_classifier_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}POOL(){return this.getToken(tr.POOL,0)}CLASSIFIER(){return this.getToken(tr.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,$h)}alter_resource_pool_classifier_action(t){return void 0===t?this.getRuleContexts(yh):this.getRuleContext(t,yh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_resource_pool_classifier_stmt}accept(t){return t.visitAlter_resource_pool_classifier_stmt?t.visitAlter_resource_pool_classifier_stmt(this):t.visitChildren(this)}},yh=class extends P{static{Ss(this,"Alter_resource_pool_classifier_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,kc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Mc)}get ruleIndex(){return tr.RULE_alter_resource_pool_classifier_action}accept(t){return t.visitAlter_resource_pool_classifier_action?t.visitAlter_resource_pool_classifier_action(this):t.visitChildren(this)}},Dh=class extends P{static{Ss(this,"Drop_resource_pool_classifier_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}POOL(){return this.getToken(tr.POOL,0)}CLASSIFIER(){return this.getToken(tr.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,$h)}get ruleIndex(){return tr.RULE_drop_resource_pool_classifier_stmt}accept(t){return t.visitDrop_resource_pool_classifier_stmt?t.visitDrop_resource_pool_classifier_stmt(this):t.visitChildren(this)}},vh=class extends P{static{Ss(this,"Create_replication_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}ASYNC(){return this.getToken(tr.ASYNC,0)}REPLICATION(){return this.getToken(tr.REPLICATION,0)}object_ref(){return this.getRuleContext(0,$h)}FOR(){return this.getToken(tr.FOR,0)}replication_target(t){return void 0===t?this.getRuleContexts(bh):this.getRuleContext(t,bh)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}replication_settings(){return this.getRuleContext(0,Hh)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_create_replication_stmt}accept(t){return t.visitCreate_replication_stmt?t.visitCreate_replication_stmt(this):t.visitChildren(this)}},bh=class extends P{static{Ss(this,"Replication_targetContext")}constructor(t,e){super(t,e)}object_ref(){return this.getRuleContext(0,$h)}replication_name(){return this.getRuleContext(0,rl)}get ruleIndex(){return tr.RULE_replication_target}accept(t){return t.visitReplication_target?t.visitReplication_target(this):t.visitChildren(this)}},Hh=class extends P{static{Ss(this,"Replication_settingsContext")}constructor(t,e){super(t,e)}replication_settings_entry(t){return void 0===t?this.getRuleContexts(wh):this.getRuleContext(t,wh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_replication_settings}accept(t){return t.visitReplication_settings?t.visitReplication_settings(this):t.visitChildren(this)}},wh=class extends P{static{Ss(this,"Replication_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_replication_settings_entry}accept(t){return t.visitReplication_settings_entry?t.visitReplication_settings_entry(this):t.visitChildren(this)}},Fh=class extends P{static{Ss(this,"Alter_replication_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}ASYNC(){return this.getToken(tr.ASYNC,0)}REPLICATION(){return this.getToken(tr.REPLICATION,0)}object_ref(){return this.getRuleContext(0,$h)}alter_replication_action(t){return void 0===t?this.getRuleContexts(Gh):this.getRuleContext(t,Gh)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_replication_stmt}accept(t){return t.visitAlter_replication_stmt?t.visitAlter_replication_stmt(this):t.visitChildren(this)}},Gh=class extends P{static{Ss(this,"Alter_replication_actionContext")}constructor(t,e){super(t,e)}alter_replication_set_setting(){return this.getRuleContext(0,Bh)}get ruleIndex(){return tr.RULE_alter_replication_action}accept(t){return t.visitAlter_replication_action?t.visitAlter_replication_action(this):t.visitChildren(this)}},Bh=class extends P{static{Ss(this,"Alter_replication_set_settingContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}replication_settings(){return this.getRuleContext(0,Hh)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_alter_replication_set_setting}accept(t){return t.visitAlter_replication_set_setting?t.visitAlter_replication_set_setting(this):t.visitChildren(this)}},Yh=class extends P{static{Ss(this,"Drop_replication_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}ASYNC(){return this.getToken(tr.ASYNC,0)}REPLICATION(){return this.getToken(tr.REPLICATION,0)}object_ref(){return this.getRuleContext(0,$h)}CASCADE(){return this.getToken(tr.CASCADE,0)}get ruleIndex(){return tr.RULE_drop_replication_stmt}accept(t){return t.visitDrop_replication_stmt?t.visitDrop_replication_stmt(this):t.visitChildren(this)}},Vh=class extends P{static{Ss(this,"Action_or_subquery_argsContext")}constructor(t,e){super(t,e)}opt_bind_parameter(t){return void 0===t?this.getRuleContexts(Ci):this.getRuleContext(t,Ci)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_action_or_subquery_args}accept(t){return t.visitAction_or_subquery_args?t.visitAction_or_subquery_args(this):t.visitChildren(this)}},Wh=class extends P{static{Ss(this,"Define_action_or_subquery_stmtContext")}constructor(t,e){super(t,e)}DEFINE(t){return void 0===t?this.getTokens(tr.DEFINE):this.getToken(tr.DEFINE,t)}bind_parameter(){return this.getRuleContext(0,Li)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}AS(){return this.getToken(tr.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Xh)}END(){return this.getToken(tr.END,0)}ACTION(){return this.getToken(tr.ACTION,0)}SUBQUERY(){return this.getToken(tr.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,Vh)}get ruleIndex(){return tr.RULE_define_action_or_subquery_stmt}accept(t){return t.visitDefine_action_or_subquery_stmt?t.visitDefine_action_or_subquery_stmt(this):t.visitChildren(this)}},Xh=class extends P{static{Ss(this,"Define_action_or_subquery_bodyContext")}constructor(t,e){super(t,e)}SEMICOLON(t){return void 0===t?this.getTokens(tr.SEMICOLON):this.getToken(tr.SEMICOLON,t)}sql_stmt_core(t){return void 0===t?this.getRuleContexts(cr):this.getRuleContext(t,cr)}get ruleIndex(){return tr.RULE_define_action_or_subquery_body}accept(t){return t.visitDefine_action_or_subquery_body?t.visitDefine_action_or_subquery_body(this):t.visitChildren(this)}},Kh=class extends P{static{Ss(this,"If_stmtContext")}constructor(t,e){super(t,e)}IF(){return this.getToken(tr.IF,0)}expr(){return this.getRuleContext(0,hr)}do_stmt(t){return void 0===t?this.getRuleContexts(ia):this.getRuleContext(t,ia)}EVALUATE(){return this.getToken(tr.EVALUATE,0)}ELSE(){return this.getToken(tr.ELSE,0)}get ruleIndex(){return tr.RULE_if_stmt}accept(t){return t.visitIf_stmt?t.visitIf_stmt(this):t.visitChildren(this)}},Qh=class extends P{static{Ss(this,"For_stmtContext")}constructor(t,e){super(t,e)}FOR(){return this.getToken(tr.FOR,0)}bind_parameter(){return this.getRuleContext(0,Li)}IN(){return this.getToken(tr.IN,0)}expr(){return this.getRuleContext(0,hr)}do_stmt(t){return void 0===t?this.getRuleContexts(ia):this.getRuleContext(t,ia)}EVALUATE(){return this.getToken(tr.EVALUATE,0)}PARALLEL(){return this.getToken(tr.PARALLEL,0)}ELSE(){return this.getToken(tr.ELSE,0)}get ruleIndex(){return tr.RULE_for_stmt}accept(t){return t.visitFor_stmt?t.visitFor_stmt(this):t.visitChildren(this)}},qh=class extends P{static{Ss(this,"Table_refContext")}constructor(t,e){super(t,e)}table_key(){return this.getRuleContext(0,jh)}an_id_expr(){return this.getRuleContext(0,OE)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Li)}cluster_expr(){return this.getRuleContext(0,yE)}DOT(){return this.getToken(tr.DOT,0)}COMMAT(){return this.getToken(tr.COMMAT,0)}table_hints(){return this.getRuleContext(0,zh)}table_arg(t){return void 0===t?this.getRuleContexts(Jh):this.getRuleContext(t,Jh)}VIEW(){return this.getToken(tr.VIEW,0)}view_name(){return this.getRuleContext(0,kE)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}expr_list(){return this.getRuleContext(0,ri)}get ruleIndex(){return tr.RULE_table_ref}accept(t){return t.visitTable_ref?t.visitTable_ref(this):t.visitChildren(this)}},jh=class extends P{static{Ss(this,"Table_keyContext")}constructor(t,e){super(t,e)}id_table_or_type(){return this.getRuleContext(0,HE)}VIEW(){return this.getToken(tr.VIEW,0)}view_name(){return this.getRuleContext(0,kE)}get ruleIndex(){return tr.RULE_table_key}accept(t){return t.visitTable_key?t.visitTable_key(this):t.visitChildren(this)}},Jh=class extends P{static{Ss(this,"Table_argContext")}constructor(t,e){super(t,e)}named_expr(){return this.getRuleContext(0,li)}COMMAT(){return this.getToken(tr.COMMAT,0)}VIEW(){return this.getToken(tr.VIEW,0)}view_name(){return this.getRuleContext(0,kE)}get ruleIndex(){return tr.RULE_table_arg}accept(t){return t.visitTable_arg?t.visitTable_arg(this):t.visitChildren(this)}},zh=class extends P{static{Ss(this,"Table_hintsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}table_hint(t){return void 0===t?this.getRuleContexts(Zh):this.getRuleContext(t,Zh)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_table_hints}accept(t){return t.visitTable_hints?t.visitTable_hints(this):t.visitChildren(this)}},Zh=class extends P{static{Ss(this,"Table_hintContext")}constructor(t,e){super(t,e)}an_id_hint(){return this.getRuleContext(0,UE)}EQUALS(){return this.getToken(tr.EQUALS,0)}type_name_tag(t){return void 0===t?this.getRuleContexts(xi):this.getRuleContext(t,xi)}LPAREN(){return this.getToken(tr.LPAREN,0)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}type_name_or_bind(){return this.getRuleContext(0,ji)}SCHEMA(){return this.getToken(tr.SCHEMA,0)}COLUMNS(){return this.getToken(tr.COLUMNS,0)}struct_arg_positional(t){return void 0===t?this.getRuleContexts(fi):this.getRuleContext(t,fi)}get ruleIndex(){return tr.RULE_table_hint}accept(t){return t.visitTable_hint?t.visitTable_hint(this):t.visitChildren(this)}},$h=class extends P{static{Ss(this,"Object_refContext")}constructor(t,e){super(t,e)}id_or_at(){return this.getRuleContext(0,bE)}cluster_expr(){return this.getRuleContext(0,yE)}DOT(){return this.getToken(tr.DOT,0)}get ruleIndex(){return tr.RULE_object_ref}accept(t){return t.visitObject_ref?t.visitObject_ref(this):t.visitChildren(this)}},to=class extends P{static{Ss(this,"Simple_table_ref_coreContext")}constructor(t,e){super(t,e)}object_ref(){return this.getRuleContext(0,$h)}bind_parameter(){return this.getRuleContext(0,Li)}COMMAT(){return this.getToken(tr.COMMAT,0)}get ruleIndex(){return tr.RULE_simple_table_ref_core}accept(t){return t.visitSimple_table_ref_core?t.visitSimple_table_ref_core(this):t.visitChildren(this)}},eo=class extends P{static{Ss(this,"Simple_table_refContext")}constructor(t,e){super(t,e)}simple_table_ref_core(){return this.getRuleContext(0,to)}table_hints(){return this.getRuleContext(0,zh)}get ruleIndex(){return tr.RULE_simple_table_ref}accept(t){return t.visitSimple_table_ref?t.visitSimple_table_ref(this):t.visitChildren(this)}},so=class extends P{static{Ss(this,"Into_simple_table_refContext")}constructor(t,e){super(t,e)}simple_table_ref(){return this.getRuleContext(0,eo)}ERASE(){return this.getToken(tr.ERASE,0)}BY(){return this.getToken(tr.BY,0)}pure_column_list(){return this.getRuleContext(0,ii)}get ruleIndex(){return tr.RULE_into_simple_table_ref}accept(t){return t.visitInto_simple_table_ref?t.visitInto_simple_table_ref(this):t.visitChildren(this)}},ro=class extends P{static{Ss(this,"Delete_stmtContext")}constructor(t,e){super(t,e)}DELETE(){return this.getToken(tr.DELETE,0)}FROM(){return this.getToken(tr.FROM,0)}simple_table_ref(){return this.getRuleContext(0,eo)}where_expr(){return this.getRuleContext(0,il)}ON(){return this.getToken(tr.ON,0)}into_values_source(){return this.getRuleContext(0,pn)}returning_columns_list(){return this.getRuleContext(0,Nn)}get ruleIndex(){return tr.RULE_delete_stmt}accept(t){return t.visitDelete_stmt?t.visitDelete_stmt(this):t.visitChildren(this)}},io=class extends P{static{Ss(this,"Update_stmtContext")}constructor(t,e){super(t,e)}UPDATE(){return this.getToken(tr.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,eo)}SET(){return this.getToken(tr.SET,0)}set_clause_choice(){return this.getRuleContext(0,ao)}ON(){return this.getToken(tr.ON,0)}into_values_source(){return this.getRuleContext(0,pn)}returning_columns_list(){return this.getRuleContext(0,Nn)}where_expr(){return this.getRuleContext(0,il)}get ruleIndex(){return tr.RULE_update_stmt}accept(t){return t.visitUpdate_stmt?t.visitUpdate_stmt(this):t.visitChildren(this)}},ao=class extends P{static{Ss(this,"Set_clause_choiceContext")}constructor(t,e){super(t,e)}set_clause_list(){return this.getRuleContext(0,no)}multiple_column_assignment(){return this.getRuleContext(0,oo)}get ruleIndex(){return tr.RULE_set_clause_choice}accept(t){return t.visitSet_clause_choice?t.visitSet_clause_choice(this):t.visitChildren(this)}},no=class extends P{static{Ss(this,"Set_clause_listContext")}constructor(t,e){super(t,e)}set_clause(t){return void 0===t?this.getRuleContexts(co):this.getRuleContext(t,co)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_set_clause_list}accept(t){return t.visitSet_clause_list?t.visitSet_clause_list(this):t.visitChildren(this)}},co=class extends P{static{Ss(this,"Set_clauseContext")}constructor(t,e){super(t,e)}set_target(){return this.getRuleContext(0,ho)}EQUALS(){return this.getToken(tr.EQUALS,0)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_set_clause}accept(t){return t.visitSet_clause?t.visitSet_clause(this):t.visitChildren(this)}},ho=class extends P{static{Ss(this,"Set_targetContext")}constructor(t,e){super(t,e)}column_name(){return this.getRuleContext(0,ci)}get ruleIndex(){return tr.RULE_set_target}accept(t){return t.visitSet_target?t.visitSet_target(this):t.visitChildren(this)}},oo=class extends P{static{Ss(this,"Multiple_column_assignmentContext")}constructor(t,e){super(t,e)}set_target_list(){return this.getRuleContext(0,Eo)}EQUALS(){return this.getToken(tr.EQUALS,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,fn)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_multiple_column_assignment}accept(t){return t.visitMultiple_column_assignment?t.visitMultiple_column_assignment(this):t.visitChildren(this)}},Eo=class extends P{static{Ss(this,"Set_target_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}set_target(t){return void 0===t?this.getRuleContexts(ho):this.getRuleContext(t,ho)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_set_target_list}accept(t){return t.visitSet_target_list?t.visitSet_target_list(this):t.visitChildren(this)}},lo=class extends P{static{Ss(this,"Create_topic_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(tr.CREATE,0)}TOPIC(){return this.getToken(tr.TOPIC,0)}topic_ref(){return this.getRuleContext(0,vo)}IF(){return this.getToken(tr.IF,0)}NOT(){return this.getToken(tr.NOT,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,uo)}with_topic_settings(){return this.getRuleContext(0,_o)}get ruleIndex(){return tr.RULE_create_topic_stmt}accept(t){return t.visitCreate_topic_stmt?t.visitCreate_topic_stmt(this):t.visitChildren(this)}},uo=class extends P{static{Ss(this,"Create_topic_entriesContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}create_topic_entry(t){return void 0===t?this.getRuleContexts(Ro):this.getRuleContext(t,Ro)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_create_topic_entries}accept(t){return t.visitCreate_topic_entries?t.visitCreate_topic_entries(this):t.visitChildren(this)}},Ro=class extends P{static{Ss(this,"Create_topic_entryContext")}constructor(t,e){super(t,e)}topic_create_consumer_entry(){return this.getRuleContext(0,Lo)}get ruleIndex(){return tr.RULE_create_topic_entry}accept(t){return t.visitCreate_topic_entry?t.visitCreate_topic_entry(this):t.visitChildren(this)}},_o=class extends P{static{Ss(this,"With_topic_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}topic_settings(){return this.getRuleContext(0,Uo)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_with_topic_settings}accept(t){return t.visitWith_topic_settings?t.visitWith_topic_settings(this):t.visitChildren(this)}},To=class extends P{static{Ss(this,"Alter_topic_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}TOPIC(){return this.getToken(tr.TOPIC,0)}topic_ref(){return this.getRuleContext(0,vo)}alter_topic_action(t){return void 0===t?this.getRuleContexts(Ao):this.getRuleContext(t,Ao)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_alter_topic_stmt}accept(t){return t.visitAlter_topic_stmt?t.visitAlter_topic_stmt(this):t.visitChildren(this)}},Ao=class extends P{static{Ss(this,"Alter_topic_actionContext")}constructor(t,e){super(t,e)}alter_topic_add_consumer(){return this.getRuleContext(0,So)}alter_topic_alter_consumer(){return this.getRuleContext(0,Co)}alter_topic_drop_consumer(){return this.getRuleContext(0,Io)}alter_topic_set_settings(){return this.getRuleContext(0,go)}alter_topic_reset_settings(){return this.getRuleContext(0,mo)}get ruleIndex(){return tr.RULE_alter_topic_action}accept(t){return t.visitAlter_topic_action?t.visitAlter_topic_action(this):t.visitChildren(this)}},So=class extends P{static{Ss(this,"Alter_topic_add_consumerContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(tr.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,Lo)}get ruleIndex(){return tr.RULE_alter_topic_add_consumer}accept(t){return t.visitAlter_topic_add_consumer?t.visitAlter_topic_add_consumer(this):t.visitChildren(this)}},Lo=class extends P{static{Ss(this,"Topic_create_consumer_entryContext")}constructor(t,e){super(t,e)}CONSUMER(){return this.getToken(tr.CONSUMER,0)}an_id(){return this.getRuleContext(0,CE)}topic_consumer_with_settings(){return this.getRuleContext(0,ko)}get ruleIndex(){return tr.RULE_topic_create_consumer_entry}accept(t){return t.visitTopic_create_consumer_entry?t.visitTopic_create_consumer_entry(this):t.visitChildren(this)}},Co=class extends P{static{Ss(this,"Alter_topic_alter_consumerContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(tr.ALTER,0)}CONSUMER(){return this.getToken(tr.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,bo)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,No)}get ruleIndex(){return tr.RULE_alter_topic_alter_consumer}accept(t){return t.visitAlter_topic_alter_consumer?t.visitAlter_topic_alter_consumer(this):t.visitChildren(this)}},No=class extends P{static{Ss(this,"Alter_topic_alter_consumer_entryContext")}constructor(t,e){super(t,e)}topic_alter_consumer_set(){return this.getRuleContext(0,Oo)}topic_alter_consumer_reset(){return this.getRuleContext(0,po)}get ruleIndex(){return tr.RULE_alter_topic_alter_consumer_entry}accept(t){return t.visitAlter_topic_alter_consumer_entry?t.visitAlter_topic_alter_consumer_entry(this):t.visitChildren(this)}},Io=class extends P{static{Ss(this,"Alter_topic_drop_consumerContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}CONSUMER(){return this.getToken(tr.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,bo)}get ruleIndex(){return tr.RULE_alter_topic_drop_consumer}accept(t){return t.visitAlter_topic_drop_consumer?t.visitAlter_topic_drop_consumer(this):t.visitChildren(this)}},Oo=class extends P{static{Ss(this,"Topic_alter_consumer_setContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_topic_alter_consumer_set}accept(t){return t.visitTopic_alter_consumer_set?t.visitTopic_alter_consumer_set(this):t.visitChildren(this)}},po=class extends P{static{Ss(this,"Topic_alter_consumer_resetContext")}constructor(t,e){super(t,e)}RESET(){return this.getToken(tr.RESET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(CE):this.getRuleContext(t,CE)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_topic_alter_consumer_reset}accept(t){return t.visitTopic_alter_consumer_reset?t.visitTopic_alter_consumer_reset(this):t.visitChildren(this)}},go=class extends P{static{Ss(this,"Alter_topic_set_settingsContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(tr.SET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}topic_settings(){return this.getRuleContext(0,Uo)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_alter_topic_set_settings}accept(t){return t.visitAlter_topic_set_settings?t.visitAlter_topic_set_settings(this):t.visitChildren(this)}},mo=class extends P{static{Ss(this,"Alter_topic_reset_settingsContext")}constructor(t,e){super(t,e)}RESET(){return this.getToken(tr.RESET,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}an_id(){return this.getRuleContext(0,CE)}RPAREN(){return this.getToken(tr.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}an_id_pure(t){return void 0===t?this.getRuleContexts(fE):this.getRuleContext(t,fE)}get ruleIndex(){return tr.RULE_alter_topic_reset_settings}accept(t){return t.visitAlter_topic_reset_settings?t.visitAlter_topic_reset_settings(this):t.visitChildren(this)}},xo=class extends P{static{Ss(this,"Drop_topic_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(tr.DROP,0)}TOPIC(){return this.getToken(tr.TOPIC,0)}topic_ref(){return this.getRuleContext(0,vo)}IF(){return this.getToken(tr.IF,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}get ruleIndex(){return tr.RULE_drop_topic_stmt}accept(t){return t.visitDrop_topic_stmt?t.visitDrop_topic_stmt(this):t.visitChildren(this)}},Uo=class extends P{static{Ss(this,"Topic_settingsContext")}constructor(t,e){super(t,e)}topic_settings_entry(t){return void 0===t?this.getRuleContexts(fo):this.getRuleContext(t,fo)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_topic_settings}accept(t){return t.visitTopic_settings?t.visitTopic_settings(this):t.visitChildren(this)}},fo=class extends P{static{Ss(this,"Topic_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Po)}get ruleIndex(){return tr.RULE_topic_settings_entry}accept(t){return t.visitTopic_settings_entry?t.visitTopic_settings_entry(this):t.visitChildren(this)}},Po=class extends P{static{Ss(this,"Topic_setting_valueContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_topic_setting_value}accept(t){return t.visitTopic_setting_value?t.visitTopic_setting_value(this):t.visitChildren(this)}},ko=class extends P{static{Ss(this,"Topic_consumer_with_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(tr.WITH,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_topic_consumer_with_settings}accept(t){return t.visitTopic_consumer_with_settings?t.visitTopic_consumer_with_settings(this):t.visitChildren(this)}},Mo=class extends P{static{Ss(this,"Topic_consumer_settingsContext")}constructor(t,e){super(t,e)}topic_consumer_settings_entry(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_topic_consumer_settings}accept(t){return t.visitTopic_consumer_settings?t.visitTopic_consumer_settings(this):t.visitChildren(this)}},yo=class extends P{static{Ss(this,"Topic_consumer_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}EQUALS(){return this.getToken(tr.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,Do)}get ruleIndex(){return tr.RULE_topic_consumer_settings_entry}accept(t){return t.visitTopic_consumer_settings_entry?t.visitTopic_consumer_settings_entry(this):t.visitChildren(this)}},Do=class extends P{static{Ss(this,"Topic_consumer_setting_valueContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_topic_consumer_setting_value}accept(t){return t.visitTopic_consumer_setting_value?t.visitTopic_consumer_setting_value(this):t.visitChildren(this)}},vo=class extends P{static{Ss(this,"Topic_refContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}cluster_expr(){return this.getRuleContext(0,yE)}DOT(){return this.getToken(tr.DOT,0)}get ruleIndex(){return tr.RULE_topic_ref}accept(t){return t.visitTopic_ref?t.visitTopic_ref(this):t.visitChildren(this)}},bo=class extends P{static{Ss(this,"Topic_consumer_refContext")}constructor(t,e){super(t,e)}an_id_pure(){return this.getRuleContext(0,fE)}get ruleIndex(){return tr.RULE_topic_consumer_ref}accept(t){return t.visitTopic_consumer_ref?t.visitTopic_consumer_ref(this):t.visitChildren(this)}},Ho=class extends P{static{Ss(this,"Null_treatmentContext")}constructor(t,e){super(t,e)}RESPECT(){return this.getToken(tr.RESPECT,0)}NULLS(){return this.getToken(tr.NULLS,0)}IGNORE(){return this.getToken(tr.IGNORE,0)}get ruleIndex(){return tr.RULE_null_treatment}accept(t){return t.visitNull_treatment?t.visitNull_treatment(this):t.visitChildren(this)}},wo=class extends P{static{Ss(this,"Filter_clauseContext")}constructor(t,e){super(t,e)}FILTER(){return this.getToken(tr.FILTER,0)}LPAREN(){return this.getToken(tr.LPAREN,0)}where_expr(){return this.getRuleContext(0,il)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_filter_clause}accept(t){return t.visitFilter_clause?t.visitFilter_clause(this):t.visitChildren(this)}},Fo=class extends P{static{Ss(this,"Window_name_or_specificationContext")}constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,Go)}window_specification(){return this.getRuleContext(0,Xo)}get ruleIndex(){return tr.RULE_window_name_or_specification}accept(t){return t.visitWindow_name_or_specification?t.visitWindow_name_or_specification(this):t.visitChildren(this)}},Go=class extends P{static{Ss(this,"Window_nameContext")}constructor(t,e){super(t,e)}an_id_window(){return this.getRuleContext(0,gE)}get ruleIndex(){return tr.RULE_window_name}accept(t){return t.visitWindow_name?t.visitWindow_name(this):t.visitChildren(this)}},Bo=class extends P{static{Ss(this,"Window_clauseContext")}constructor(t,e){super(t,e)}WINDOW(){return this.getToken(tr.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,Yo)}get ruleIndex(){return tr.RULE_window_clause}accept(t){return t.visitWindow_clause?t.visitWindow_clause(this):t.visitChildren(this)}},Yo=class extends P{static{Ss(this,"Window_definition_listContext")}constructor(t,e){super(t,e)}window_definition(t){return void 0===t?this.getRuleContexts(Vo):this.getRuleContext(t,Vo)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_window_definition_list}accept(t){return t.visitWindow_definition_list?t.visitWindow_definition_list(this):t.visitChildren(this)}},Vo=class extends P{static{Ss(this,"Window_definitionContext")}constructor(t,e){super(t,e)}new_window_name(){return this.getRuleContext(0,Wo)}AS(){return this.getToken(tr.AS,0)}window_specification(){return this.getRuleContext(0,Xo)}get ruleIndex(){return tr.RULE_window_definition}accept(t){return t.visitWindow_definition?t.visitWindow_definition(this):t.visitChildren(this)}},Wo=class extends P{static{Ss(this,"New_window_nameContext")}constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,Go)}get ruleIndex(){return tr.RULE_new_window_name}accept(t){return t.visitNew_window_name?t.visitNew_window_name(this):t.visitChildren(this)}},Xo=class extends P{static{Ss(this,"Window_specificationContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,Ko)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_window_specification}accept(t){return t.visitWindow_specification?t.visitWindow_specification(this):t.visitChildren(this)}},Ko=class extends P{static{Ss(this,"Window_specification_detailsContext")}constructor(t,e){super(t,e)}existing_window_name(){return this.getRuleContext(0,Qo)}window_partition_clause(){return this.getRuleContext(0,qo)}window_order_clause(){return this.getRuleContext(0,jo)}window_frame_clause(){return this.getRuleContext(0,Jo)}get ruleIndex(){return tr.RULE_window_specification_details}accept(t){return t.visitWindow_specification_details?t.visitWindow_specification_details(this):t.visitChildren(this)}},Qo=class extends P{static{Ss(this,"Existing_window_nameContext")}constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,Go)}get ruleIndex(){return tr.RULE_existing_window_name}accept(t){return t.visitExisting_window_name?t.visitExisting_window_name(this):t.visitChildren(this)}},qo=class extends P{static{Ss(this,"Window_partition_clauseContext")}constructor(t,e){super(t,e)}PARTITION(){return this.getToken(tr.PARTITION,0)}BY(){return this.getToken(tr.BY,0)}named_expr_list(){return this.getRuleContext(0,ui)}COMPACT(){return this.getToken(tr.COMPACT,0)}get ruleIndex(){return tr.RULE_window_partition_clause}accept(t){return t.visitWindow_partition_clause?t.visitWindow_partition_clause(this):t.visitChildren(this)}},jo=class extends P{static{Ss(this,"Window_order_clauseContext")}constructor(t,e){super(t,e)}order_by_clause(){return this.getRuleContext(0,Ja)}get ruleIndex(){return tr.RULE_window_order_clause}accept(t){return t.visitWindow_order_clause?t.visitWindow_order_clause(this):t.visitChildren(this)}},Jo=class extends P{static{Ss(this,"Window_frame_clauseContext")}constructor(t,e){super(t,e)}window_frame_units(){return this.getRuleContext(0,zo)}window_frame_extent(){return this.getRuleContext(0,Zo)}window_frame_exclusion(){return this.getRuleContext(0,eE)}get ruleIndex(){return tr.RULE_window_frame_clause}accept(t){return t.visitWindow_frame_clause?t.visitWindow_frame_clause(this):t.visitChildren(this)}},zo=class extends P{static{Ss(this,"Window_frame_unitsContext")}constructor(t,e){super(t,e)}ROWS(){return this.getToken(tr.ROWS,0)}RANGE(){return this.getToken(tr.RANGE,0)}GROUPS(){return this.getToken(tr.GROUPS,0)}get ruleIndex(){return tr.RULE_window_frame_units}accept(t){return t.visitWindow_frame_units?t.visitWindow_frame_units(this):t.visitChildren(this)}},Zo=class extends P{static{Ss(this,"Window_frame_extentContext")}constructor(t,e){super(t,e)}window_frame_bound(){return this.getRuleContext(0,tE)}window_frame_between(){return this.getRuleContext(0,$o)}get ruleIndex(){return tr.RULE_window_frame_extent}accept(t){return t.visitWindow_frame_extent?t.visitWindow_frame_extent(this):t.visitChildren(this)}},$o=class extends P{static{Ss(this,"Window_frame_betweenContext")}constructor(t,e){super(t,e)}BETWEEN(){return this.getToken(tr.BETWEEN,0)}window_frame_bound(t){return void 0===t?this.getRuleContexts(tE):this.getRuleContext(t,tE)}AND(){return this.getToken(tr.AND,0)}get ruleIndex(){return tr.RULE_window_frame_between}accept(t){return t.visitWindow_frame_between?t.visitWindow_frame_between(this):t.visitChildren(this)}},tE=class extends P{static{Ss(this,"Window_frame_boundContext")}constructor(t,e){super(t,e)}CURRENT(){return this.getToken(tr.CURRENT,0)}ROW(){return this.getToken(tr.ROW,0)}PRECEDING(){return this.getToken(tr.PRECEDING,0)}FOLLOWING(){return this.getToken(tr.FOLLOWING,0)}expr(){return this.getRuleContext(0,hr)}UNBOUNDED(){return this.getToken(tr.UNBOUNDED,0)}get ruleIndex(){return tr.RULE_window_frame_bound}accept(t){return t.visitWindow_frame_bound?t.visitWindow_frame_bound(this):t.visitChildren(this)}},eE=class extends P{static{Ss(this,"Window_frame_exclusionContext")}constructor(t,e){super(t,e)}EXCLUDE(){return this.getToken(tr.EXCLUDE,0)}CURRENT(){return this.getToken(tr.CURRENT,0)}ROW(){return this.getToken(tr.ROW,0)}GROUP(){return this.getToken(tr.GROUP,0)}TIES(){return this.getToken(tr.TIES,0)}NO(){return this.getToken(tr.NO,0)}OTHERS(){return this.getToken(tr.OTHERS,0)}get ruleIndex(){return tr.RULE_window_frame_exclusion}accept(t){return t.visitWindow_frame_exclusion?t.visitWindow_frame_exclusion(this):t.visitChildren(this)}},sE=class extends P{static{Ss(this,"Use_stmtContext")}constructor(t,e){super(t,e)}USE(){return this.getToken(tr.USE,0)}cluster_expr(){return this.getRuleContext(0,yE)}get ruleIndex(){return tr.RULE_use_stmt}accept(t){return t.visitUse_stmt?t.visitUse_stmt(this):t.visitChildren(this)}},rE=class extends P{static{Ss(this,"Subselect_stmtContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(tr.LPAREN,0)}select_stmt(){return this.getRuleContext(0,oa)}RPAREN(){return this.getToken(tr.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,Ea)}get ruleIndex(){return tr.RULE_subselect_stmt}accept(t){return t.visitSubselect_stmt?t.visitSubselect_stmt(this):t.visitChildren(this)}},iE=class extends P{static{Ss(this,"Named_nodes_stmtContext")}constructor(t,e){super(t,e)}bind_parameter_list(){return this.getRuleContext(0,Ni)}EQUALS(){return this.getToken(tr.EQUALS,0)}expr(){return this.getRuleContext(0,hr)}subselect_stmt(){return this.getRuleContext(0,rE)}get ruleIndex(){return tr.RULE_named_nodes_stmt}accept(t){return t.visitNamed_nodes_stmt?t.visitNamed_nodes_stmt(this):t.visitChildren(this)}},aE=class extends P{static{Ss(this,"Commit_stmtContext")}constructor(t,e){super(t,e)}COMMIT(){return this.getToken(tr.COMMIT,0)}get ruleIndex(){return tr.RULE_commit_stmt}accept(t){return t.visitCommit_stmt?t.visitCommit_stmt(this):t.visitChildren(this)}},nE=class extends P{static{Ss(this,"Rollback_stmtContext")}constructor(t,e){super(t,e)}ROLLBACK(){return this.getToken(tr.ROLLBACK,0)}get ruleIndex(){return tr.RULE_rollback_stmt}accept(t){return t.visitRollback_stmt?t.visitRollback_stmt(this):t.visitChildren(this)}},cE=class extends P{static{Ss(this,"Analyze_tableContext")}constructor(t,e){super(t,e)}simple_table_ref(){return this.getRuleContext(0,eo)}LPAREN(){return this.getToken(tr.LPAREN,0)}column_list(){return this.getRuleContext(0,oi)}RPAREN(){return this.getToken(tr.RPAREN,0)}get ruleIndex(){return tr.RULE_analyze_table}accept(t){return t.visitAnalyze_table?t.visitAnalyze_table(this):t.visitChildren(this)}},hE=class extends P{static{Ss(this,"Analyze_table_listContext")}constructor(t,e){super(t,e)}analyze_table(t){return void 0===t?this.getRuleContexts(cE):this.getRuleContext(t,cE)}COMMA(t){return void 0===t?this.getTokens(tr.COMMA):this.getToken(tr.COMMA,t)}get ruleIndex(){return tr.RULE_analyze_table_list}accept(t){return t.visitAnalyze_table_list?t.visitAnalyze_table_list(this):t.visitChildren(this)}},oE=class extends P{static{Ss(this,"Analyze_stmtContext")}constructor(t,e){super(t,e)}ANALYZE(){return this.getToken(tr.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,hE)}get ruleIndex(){return tr.RULE_analyze_stmt}accept(t){return t.visitAnalyze_stmt?t.visitAnalyze_stmt(this):t.visitChildren(this)}},EE=class extends P{static{Ss(this,"IdentifierContext")}constructor(t,e){super(t,e)}ID_PLAIN(){return this.getToken(tr.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(tr.ID_QUOTED,0)}get ruleIndex(){return tr.RULE_identifier}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},lE=class extends P{static{Ss(this,"IdContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword(){return this.getRuleContext(0,FE)}get ruleIndex(){return tr.RULE_id}accept(t){return t.visitId?t.visitId(this):t.visitChildren(this)}},uE=class extends P{static{Ss(this,"Id_schemaContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_expr_uncompat(){return this.getRuleContext(0,GE)}keyword_select_uncompat(){return this.getRuleContext(0,YE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_id_schema}accept(t){return t.visitId_schema?t.visitId_schema(this):t.visitChildren(this)}},RE=class extends P{static{Ss(this,"Id_exprContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_alter_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_id_expr}accept(t){return t.visitId_expr?t.visitId_expr(this):t.visitChildren(this)}},_E=class extends P{static{Ss(this,"Id_expr_inContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_alter_uncompat(){return this.getRuleContext(0,VE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_id_expr_in}accept(t){return t.visitId_expr_in?t.visitId_expr_in(this):t.visitChildren(this)}},TE=class extends P{static{Ss(this,"Id_windowContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_expr_uncompat(){return this.getRuleContext(0,GE)}keyword_table_uncompat(){return this.getRuleContext(0,BE)}keyword_select_uncompat(){return this.getRuleContext(0,YE)}keyword_alter_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_id_window}accept(t){return t.visitId_window?t.visitId_window(this):t.visitChildren(this)}},AE=class extends P{static{Ss(this,"Id_tableContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_expr_uncompat(){return this.getRuleContext(0,GE)}keyword_select_uncompat(){return this.getRuleContext(0,YE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_id_table}accept(t){return t.visitId_table?t.visitId_table(this):t.visitChildren(this)}},SE=class extends P{static{Ss(this,"Id_withoutContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_table_uncompat(){return this.getRuleContext(0,BE)}keyword_alter_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_id_without}accept(t){return t.visitId_without?t.visitId_without(this):t.visitChildren(this)}},dE=class extends P{static{Ss(this,"Id_hintContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_expr_uncompat(){return this.getRuleContext(0,GE)}keyword_table_uncompat(){return this.getRuleContext(0,BE)}keyword_select_uncompat(){return this.getRuleContext(0,YE)}keyword_alter_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}get ruleIndex(){return tr.RULE_id_hint}accept(t){return t.visitId_hint?t.visitId_hint(this):t.visitChildren(this)}},LE=class extends P{static{Ss(this,"Id_as_compatContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}keyword_as_compat(){return this.getRuleContext(0,QE)}get ruleIndex(){return tr.RULE_id_as_compat}accept(t){return t.visitId_as_compat?t.visitId_as_compat(this):t.visitChildren(this)}},CE=class extends P{static{Ss(this,"An_idContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,lE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id}accept(t){return t.visitAn_id?t.visitAn_id(this):t.visitChildren(this)}},NE=class extends P{static{Ss(this,"An_id_or_typeContext")}constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,DE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_or_type}accept(t){return t.visitAn_id_or_type?t.visitAn_id_or_type(this):t.visitChildren(this)}},IE=class extends P{static{Ss(this,"An_id_schemaContext")}constructor(t,e){super(t,e)}id_schema(){return this.getRuleContext(0,uE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_schema}accept(t){return t.visitAn_id_schema?t.visitAn_id_schema(this):t.visitChildren(this)}},OE=class extends P{static{Ss(this,"An_id_exprContext")}constructor(t,e){super(t,e)}id_expr(){return this.getRuleContext(0,RE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_expr}accept(t){return t.visitAn_id_expr?t.visitAn_id_expr(this):t.visitChildren(this)}},pE=class extends P{static{Ss(this,"An_id_expr_inContext")}constructor(t,e){super(t,e)}id_expr_in(){return this.getRuleContext(0,_E)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_expr_in}accept(t){return t.visitAn_id_expr_in?t.visitAn_id_expr_in(this):t.visitChildren(this)}},gE=class extends P{static{Ss(this,"An_id_windowContext")}constructor(t,e){super(t,e)}id_window(){return this.getRuleContext(0,TE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_window}accept(t){return t.visitAn_id_window?t.visitAn_id_window(this):t.visitChildren(this)}},mE=class extends P{static{Ss(this,"An_id_tableContext")}constructor(t,e){super(t,e)}id_table(){return this.getRuleContext(0,AE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_table}accept(t){return t.visitAn_id_table?t.visitAn_id_table(this):t.visitChildren(this)}},xE=class extends P{static{Ss(this,"An_id_withoutContext")}constructor(t,e){super(t,e)}id_without(){return this.getRuleContext(0,SE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_without}accept(t){return t.visitAn_id_without?t.visitAn_id_without(this):t.visitChildren(this)}},UE=class extends P{static{Ss(this,"An_id_hintContext")}constructor(t,e){super(t,e)}id_hint(){return this.getRuleContext(0,dE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_hint}accept(t){return t.visitAn_id_hint?t.visitAn_id_hint(this):t.visitChildren(this)}},fE=class extends P{static{Ss(this,"An_id_pureContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,EE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_pure}accept(t){return t.visitAn_id_pure?t.visitAn_id_pure(this):t.visitChildren(this)}},PE=class extends P{static{Ss(this,"An_id_as_compatContext")}constructor(t,e){super(t,e)}id_as_compat(){return this.getRuleContext(0,LE)}STRING_VALUE(){return this.getToken(tr.STRING_VALUE,0)}get ruleIndex(){return tr.RULE_an_id_as_compat}accept(t){return t.visitAn_id_as_compat?t.visitAn_id_as_compat(this):t.visitChildren(this)}},kE=class extends P{static{Ss(this,"View_nameContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}PRIMARY(){return this.getToken(tr.PRIMARY,0)}KEY(){return this.getToken(tr.KEY,0)}get ruleIndex(){return tr.RULE_view_name}accept(t){return t.visitView_name?t.visitView_name(this):t.visitChildren(this)}},ME=class extends P{static{Ss(this,"Opt_id_prefixContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,CE)}DOT(){return this.getToken(tr.DOT,0)}get ruleIndex(){return tr.RULE_opt_id_prefix}accept(t){return t.visitOpt_id_prefix?t.visitOpt_id_prefix(this):t.visitChildren(this)}},yE=class extends P{static{Ss(this,"Cluster_exprContext")}constructor(t,e){super(t,e)}pure_column_or_named(){return this.getRuleContext(0,ai)}ASTERISK(){return this.getToken(tr.ASTERISK,0)}an_id(){return this.getRuleContext(0,CE)}COLON(){return this.getToken(tr.COLON,0)}get ruleIndex(){return tr.RULE_cluster_expr}accept(t){return t.visitCluster_expr?t.visitCluster_expr(this):t.visitChildren(this)}},DE=class extends P{static{Ss(this,"Id_or_typeContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,lE)}type_id(){return this.getRuleContext(0,jE)}get ruleIndex(){return tr.RULE_id_or_type}accept(t){return t.visitId_or_type?t.visitId_or_type(this):t.visitChildren(this)}},vE=class extends P{static{Ss(this,"Opt_id_prefix_or_typeContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,NE)}DOT(){return this.getToken(tr.DOT,0)}get ruleIndex(){return tr.RULE_opt_id_prefix_or_type}accept(t){return t.visitOpt_id_prefix_or_type?t.visitOpt_id_prefix_or_type(this):t.visitChildren(this)}},bE=class extends P{static{Ss(this,"Id_or_atContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,NE)}COMMAT(){return this.getToken(tr.COMMAT,0)}get ruleIndex(){return tr.RULE_id_or_at}accept(t){return t.visitId_or_at?t.visitId_or_at(this):t.visitChildren(this)}},HE=class extends P{static{Ss(this,"Id_table_or_typeContext")}constructor(t,e){super(t,e)}an_id_table(){return this.getRuleContext(0,mE)}type_id(){return this.getRuleContext(0,jE)}get ruleIndex(){return tr.RULE_id_table_or_type}accept(t){return t.visitId_table_or_type?t.visitId_table_or_type(this):t.visitChildren(this)}},wE=class extends P{static{Ss(this,"Id_table_or_atContext")}constructor(t,e){super(t,e)}id_table_or_type(){return this.getRuleContext(0,HE)}COMMAT(){return this.getToken(tr.COMMAT,0)}get ruleIndex(){return tr.RULE_id_table_or_at}accept(t){return t.visitId_table_or_at?t.visitId_table_or_at(this):t.visitChildren(this)}},FE=class extends P{static{Ss(this,"KeywordContext")}constructor(t,e){super(t,e)}keyword_compat(){return this.getRuleContext(0,qE)}keyword_expr_uncompat(){return this.getRuleContext(0,GE)}keyword_table_uncompat(){return this.getRuleContext(0,BE)}keyword_select_uncompat(){return this.getRuleContext(0,YE)}keyword_alter_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return tr.RULE_keyword}accept(t){return t.visitKeyword?t.visitKeyword(this):t.visitChildren(this)}},GE=class extends P{static{Ss(this,"Keyword_expr_uncompatContext")}constructor(t,e){super(t,e)}ASYMMETRIC(){return this.getToken(tr.ASYMMETRIC,0)}BETWEEN(){return this.getToken(tr.BETWEEN,0)}BITCAST(){return this.getToken(tr.BITCAST,0)}CASE(){return this.getToken(tr.CASE,0)}CAST(){return this.getToken(tr.CAST,0)}CUBE(){return this.getToken(tr.CUBE,0)}CURRENT_DATE(){return this.getToken(tr.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(tr.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(tr.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(tr.EMPTY_ACTION,0)}EXISTS(){return this.getToken(tr.EXISTS,0)}FROM(){return this.getToken(tr.FROM,0)}FULL(){return this.getToken(tr.FULL,0)}HOP(){return this.getToken(tr.HOP,0)}JSON_EXISTS(){return this.getToken(tr.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(tr.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(tr.JSON_QUERY,0)}LOCAL(){return this.getToken(tr.LOCAL,0)}NOT(){return this.getToken(tr.NOT,0)}NULL(){return this.getToken(tr.NULL,0)}PROCESS(){return this.getToken(tr.PROCESS,0)}REDUCE(){return this.getToken(tr.REDUCE,0)}RETURN(){return this.getToken(tr.RETURN,0)}RETURNING(){return this.getToken(tr.RETURNING,0)}ROLLUP(){return this.getToken(tr.ROLLUP,0)}SELECT(){return this.getToken(tr.SELECT,0)}SYMMETRIC(){return this.getToken(tr.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(tr.UNBOUNDED,0)}WHEN(){return this.getToken(tr.WHEN,0)}WHERE(){return this.getToken(tr.WHERE,0)}get ruleIndex(){return tr.RULE_keyword_expr_uncompat}accept(t){return t.visitKeyword_expr_uncompat?t.visitKeyword_expr_uncompat(this):t.visitChildren(this)}},BE=class extends P{static{Ss(this,"Keyword_table_uncompatContext")}constructor(t,e){super(t,e)}ANY(){return this.getToken(tr.ANY,0)}ERASE(){return this.getToken(tr.ERASE,0)}STREAM(){return this.getToken(tr.STREAM,0)}get ruleIndex(){return tr.RULE_keyword_table_uncompat}accept(t){return t.visitKeyword_table_uncompat?t.visitKeyword_table_uncompat(this):t.visitChildren(this)}},YE=class extends P{static{Ss(this,"Keyword_select_uncompatContext")}constructor(t,e){super(t,e)}ALL(){return this.getToken(tr.ALL,0)}AS(){return this.getToken(tr.AS,0)}ASSUME(){return this.getToken(tr.ASSUME,0)}DISTINCT(){return this.getToken(tr.DISTINCT,0)}EXCEPT(){return this.getToken(tr.EXCEPT,0)}HAVING(){return this.getToken(tr.HAVING,0)}INTERSECT(){return this.getToken(tr.INTERSECT,0)}LIMIT(){return this.getToken(tr.LIMIT,0)}UNION(){return this.getToken(tr.UNION,0)}WINDOW(){return this.getToken(tr.WINDOW,0)}WITHOUT(){return this.getToken(tr.WITHOUT,0)}get ruleIndex(){return tr.RULE_keyword_select_uncompat}accept(t){return t.visitKeyword_select_uncompat?t.visitKeyword_select_uncompat(this):t.visitChildren(this)}},VE=class extends P{static{Ss(this,"Keyword_alter_uncompatContext")}constructor(t,e){super(t,e)}COLUMN(){return this.getToken(tr.COLUMN,0)}get ruleIndex(){return tr.RULE_keyword_alter_uncompat}accept(t){return t.visitKeyword_alter_uncompat?t.visitKeyword_alter_uncompat(this):t.visitChildren(this)}},WE=class extends P{static{Ss(this,"Keyword_in_uncompatContext")}constructor(t,e){super(t,e)}COMPACT(){return this.getToken(tr.COMPACT,0)}get ruleIndex(){return tr.RULE_keyword_in_uncompat}accept(t){return t.visitKeyword_in_uncompat?t.visitKeyword_in_uncompat(this):t.visitChildren(this)}},XE=class extends P{static{Ss(this,"Keyword_window_uncompatContext")}constructor(t,e){super(t,e)}GROUPS(){return this.getToken(tr.GROUPS,0)}RANGE(){return this.getToken(tr.RANGE,0)}ROWS(){return this.getToken(tr.ROWS,0)}get ruleIndex(){return tr.RULE_keyword_window_uncompat}accept(t){return t.visitKeyword_window_uncompat?t.visitKeyword_window_uncompat(this):t.visitChildren(this)}},KE=class extends P{static{Ss(this,"Keyword_hint_uncompatContext")}constructor(t,e){super(t,e)}SCHEMA(){return this.getToken(tr.SCHEMA,0)}COLUMNS(){return this.getToken(tr.COLUMNS,0)}get ruleIndex(){return tr.RULE_keyword_hint_uncompat}accept(t){return t.visitKeyword_hint_uncompat?t.visitKeyword_hint_uncompat(this):t.visitChildren(this)}},QE=class extends P{static{Ss(this,"Keyword_as_compatContext")}constructor(t,e){super(t,e)}ABORT(){return this.getToken(tr.ABORT,0)}ACTION(){return this.getToken(tr.ACTION,0)}ADD(){return this.getToken(tr.ADD,0)}AFTER(){return this.getToken(tr.AFTER,0)}ALTER(){return this.getToken(tr.ALTER,0)}ANALYZE(){return this.getToken(tr.ANALYZE,0)}AND(){return this.getToken(tr.AND,0)}ANSI(){return this.getToken(tr.ANSI,0)}ARRAY(){return this.getToken(tr.ARRAY,0)}ASC(){return this.getToken(tr.ASC,0)}ASYNC(){return this.getToken(tr.ASYNC,0)}AT(){return this.getToken(tr.AT,0)}ATTACH(){return this.getToken(tr.ATTACH,0)}ATTRIBUTES(){return this.getToken(tr.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(tr.AUTOINCREMENT,0)}BACKUP(){return this.getToken(tr.BACKUP,0)}BEFORE(){return this.getToken(tr.BEFORE,0)}BEGIN(){return this.getToken(tr.BEGIN,0)}BERNOULLI(){return this.getToken(tr.BERNOULLI,0)}BY(){return this.getToken(tr.BY,0)}CASCADE(){return this.getToken(tr.CASCADE,0)}CHANGEFEED(){return this.getToken(tr.CHANGEFEED,0)}CHECK(){return this.getToken(tr.CHECK,0)}CLASSIFIER(){return this.getToken(tr.CLASSIFIER,0)}COLLECTION(){return this.getToken(tr.COLLECTION,0)}COMMIT(){return this.getToken(tr.COMMIT,0)}CONDITIONAL(){return this.getToken(tr.CONDITIONAL,0)}CONFLICT(){return this.getToken(tr.CONFLICT,0)}CONNECT(){return this.getToken(tr.CONNECT,0)}CONSTRAINT(){return this.getToken(tr.CONSTRAINT,0)}CONSUMER(){return this.getToken(tr.CONSUMER,0)}COVER(){return this.getToken(tr.COVER,0)}CREATE(){return this.getToken(tr.CREATE,0)}CURRENT(){return this.getToken(tr.CURRENT,0)}DATA(){return this.getToken(tr.DATA,0)}DATABASE(){return this.getToken(tr.DATABASE,0)}DECIMAL(){return this.getToken(tr.DECIMAL,0)}DECLARE(){return this.getToken(tr.DECLARE,0)}DEFAULT(){return this.getToken(tr.DEFAULT,0)}DEFERRABLE(){return this.getToken(tr.DEFERRABLE,0)}DEFERRED(){return this.getToken(tr.DEFERRED,0)}DELETE(){return this.getToken(tr.DELETE,0)}DESC(){return this.getToken(tr.DESC,0)}DESCRIBE(){return this.getToken(tr.DESCRIBE,0)}DETACH(){return this.getToken(tr.DETACH,0)}DIRECTORY(){return this.getToken(tr.DIRECTORY,0)}DISABLE(){return this.getToken(tr.DISABLE,0)}DISCARD(){return this.getToken(tr.DISCARD,0)}DROP(){return this.getToken(tr.DROP,0)}EACH(){return this.getToken(tr.EACH,0)}ELSE(){return this.getToken(tr.ELSE,0)}EMPTY(){return this.getToken(tr.EMPTY,0)}ENCRYPTED(){return this.getToken(tr.ENCRYPTED,0)}END(){return this.getToken(tr.END,0)}ERROR(){return this.getToken(tr.ERROR,0)}ESCAPE(){return this.getToken(tr.ESCAPE,0)}EVALUATE(){return this.getToken(tr.EVALUATE,0)}EXCLUDE(){return this.getToken(tr.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(tr.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(tr.EXPLAIN,0)}EXPORT(){return this.getToken(tr.EXPORT,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}FAIL(){return this.getToken(tr.FAIL,0)}FAMILY(){return this.getToken(tr.FAMILY,0)}FILTER(){return this.getToken(tr.FILTER,0)}FIRST(){return this.getToken(tr.FIRST,0)}FLATTEN(){return this.getToken(tr.FLATTEN,0)}FOLLOWING(){return this.getToken(tr.FOLLOWING,0)}FOR(){return this.getToken(tr.FOR,0)}FOREIGN(){return this.getToken(tr.FOREIGN,0)}FUNCTION(){return this.getToken(tr.FUNCTION,0)}GLOB(){return this.getToken(tr.GLOB,0)}GRANT(){return this.getToken(tr.GRANT,0)}GROUP(){return this.getToken(tr.GROUP,0)}GROUPING(){return this.getToken(tr.GROUPING,0)}HASH(){return this.getToken(tr.HASH,0)}IF(){return this.getToken(tr.IF,0)}IGNORE(){return this.getToken(tr.IGNORE,0)}ILIKE(){return this.getToken(tr.ILIKE,0)}IMMEDIATE(){return this.getToken(tr.IMMEDIATE,0)}IMPORT(){return this.getToken(tr.IMPORT,0)}IN(){return this.getToken(tr.IN,0)}INCREMENTAL(){return this.getToken(tr.INCREMENTAL,0)}INDEX(){return this.getToken(tr.INDEX,0)}INDEXED(){return this.getToken(tr.INDEXED,0)}INHERITS(){return this.getToken(tr.INHERITS,0)}INITIAL(){return this.getToken(tr.INITIAL,0)}INITIALLY(){return this.getToken(tr.INITIALLY,0)}INSERT(){return this.getToken(tr.INSERT,0)}INSTEAD(){return this.getToken(tr.INSTEAD,0)}INTO(){return this.getToken(tr.INTO,0)}IS(){return this.getToken(tr.IS,0)}LAST(){return this.getToken(tr.LAST,0)}LEGACY(){return this.getToken(tr.LEGACY,0)}LIKE(){return this.getToken(tr.LIKE,0)}MANAGE(){return this.getToken(tr.MANAGE,0)}MATCH(){return this.getToken(tr.MATCH,0)}MATCHES(){return this.getToken(tr.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(tr.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(tr.MEASURES,0)}MICROSECONDS(){return this.getToken(tr.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(tr.MILLISECONDS,0)}MODIFY(){return this.getToken(tr.MODIFY,0)}NANOSECONDS(){return this.getToken(tr.NANOSECONDS,0)}NEXT(){return this.getToken(tr.NEXT,0)}NO(){return this.getToken(tr.NO,0)}NULLS(){return this.getToken(tr.NULLS,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}OF(){return this.getToken(tr.OF,0)}OFFSET(){return this.getToken(tr.OFFSET,0)}OMIT(){return this.getToken(tr.OMIT,0)}ONE(){return this.getToken(tr.ONE,0)}ONLY(){return this.getToken(tr.ONLY,0)}OPTION(){return this.getToken(tr.OPTION,0)}OR(){return this.getToken(tr.OR,0)}OTHERS(){return this.getToken(tr.OTHERS,0)}PARALLEL(){return this.getToken(tr.PARALLEL,0)}PARTITION(){return this.getToken(tr.PARTITION,0)}PASSING(){return this.getToken(tr.PASSING,0)}PASSWORD(){return this.getToken(tr.PASSWORD,0)}PAST(){return this.getToken(tr.PAST,0)}PATTERN(){return this.getToken(tr.PATTERN,0)}PER(){return this.getToken(tr.PER,0)}PERMUTE(){return this.getToken(tr.PERMUTE,0)}PLAN(){return this.getToken(tr.PLAN,0)}POOL(){return this.getToken(tr.POOL,0)}PRAGMA(){return this.getToken(tr.PRAGMA,0)}PRECEDING(){return this.getToken(tr.PRECEDING,0)}PRIMARY(){return this.getToken(tr.PRIMARY,0)}PRIVILEGES(){return this.getToken(tr.PRIVILEGES,0)}QUEUE(){return this.getToken(tr.QUEUE,0)}RAISE(){return this.getToken(tr.RAISE,0)}REFERENCES(){return this.getToken(tr.REFERENCES,0)}REGEXP(){return this.getToken(tr.REGEXP,0)}REINDEX(){return this.getToken(tr.REINDEX,0)}RELEASE(){return this.getToken(tr.RELEASE,0)}REMOVE(){return this.getToken(tr.REMOVE,0)}RENAME(){return this.getToken(tr.RENAME,0)}REPLACE(){return this.getToken(tr.REPLACE,0)}REPLICATION(){return this.getToken(tr.REPLICATION,0)}RESET(){return this.getToken(tr.RESET,0)}RESPECT(){return this.getToken(tr.RESPECT,0)}RESTORE(){return this.getToken(tr.RESTORE,0)}RESTRICT(){return this.getToken(tr.RESTRICT,0)}REVERT(){return this.getToken(tr.REVERT,0)}REVOKE(){return this.getToken(tr.REVOKE,0)}RLIKE(){return this.getToken(tr.RLIKE,0)}ROLLBACK(){return this.getToken(tr.ROLLBACK,0)}ROW(){return this.getToken(tr.ROW,0)}SAVEPOINT(){return this.getToken(tr.SAVEPOINT,0)}SECONDS(){return this.getToken(tr.SECONDS,0)}SEEK(){return this.getToken(tr.SEEK,0)}SETS(){return this.getToken(tr.SETS,0)}SHOW(){return this.getToken(tr.SHOW,0)}TSKIP(){return this.getToken(tr.TSKIP,0)}SOURCE(){return this.getToken(tr.SOURCE,0)}SUBQUERY(){return this.getToken(tr.SUBQUERY,0)}SUBSET(){return this.getToken(tr.SUBSET,0)}SYMBOLS(){return this.getToken(tr.SYMBOLS,0)}SYNC(){return this.getToken(tr.SYNC,0)}SYSTEM(){return this.getToken(tr.SYSTEM,0)}TABLE(){return this.getToken(tr.TABLE,0)}TABLES(){return this.getToken(tr.TABLES,0)}TABLESAMPLE(){return this.getToken(tr.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(tr.TABLESTORE,0)}TEMP(){return this.getToken(tr.TEMP,0)}TEMPORARY(){return this.getToken(tr.TEMPORARY,0)}THEN(){return this.getToken(tr.THEN,0)}TIES(){return this.getToken(tr.TIES,0)}TO(){return this.getToken(tr.TO,0)}TOPIC(){return this.getToken(tr.TOPIC,0)}TRANSACTION(){return this.getToken(tr.TRANSACTION,0)}TRIGGER(){return this.getToken(tr.TRIGGER,0)}TYPE(){return this.getToken(tr.TYPE,0)}UNCONDITIONAL(){return this.getToken(tr.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(tr.UNIQUE,0)}UNKNOWN(){return this.getToken(tr.UNKNOWN,0)}UNMATCHED(){return this.getToken(tr.UNMATCHED,0)}UPDATE(){return this.getToken(tr.UPDATE,0)}UPSERT(){return this.getToken(tr.UPSERT,0)}USE(){return this.getToken(tr.USE,0)}USER(){return this.getToken(tr.USER,0)}VACUUM(){return this.getToken(tr.VACUUM,0)}VALUES(){return this.getToken(tr.VALUES,0)}VIRTUAL(){return this.getToken(tr.VIRTUAL,0)}WRAPPER(){return this.getToken(tr.WRAPPER,0)}XOR(){return this.getToken(tr.XOR,0)}get ruleIndex(){return tr.RULE_keyword_as_compat}accept(t){return t.visitKeyword_as_compat?t.visitKeyword_as_compat(this):t.visitChildren(this)}},qE=class extends P{static{Ss(this,"Keyword_compatContext")}constructor(t,e){super(t,e)}ABORT(){return this.getToken(tr.ABORT,0)}ACTION(){return this.getToken(tr.ACTION,0)}ADD(){return this.getToken(tr.ADD,0)}AFTER(){return this.getToken(tr.AFTER,0)}ALTER(){return this.getToken(tr.ALTER,0)}ANALYZE(){return this.getToken(tr.ANALYZE,0)}AND(){return this.getToken(tr.AND,0)}ANSI(){return this.getToken(tr.ANSI,0)}ARRAY(){return this.getToken(tr.ARRAY,0)}ASC(){return this.getToken(tr.ASC,0)}ASYNC(){return this.getToken(tr.ASYNC,0)}AT(){return this.getToken(tr.AT,0)}ATTACH(){return this.getToken(tr.ATTACH,0)}ATTRIBUTES(){return this.getToken(tr.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(tr.AUTOINCREMENT,0)}BACKUP(){return this.getToken(tr.BACKUP,0)}BEFORE(){return this.getToken(tr.BEFORE,0)}BEGIN(){return this.getToken(tr.BEGIN,0)}BERNOULLI(){return this.getToken(tr.BERNOULLI,0)}BY(){return this.getToken(tr.BY,0)}CASCADE(){return this.getToken(tr.CASCADE,0)}CHANGEFEED(){return this.getToken(tr.CHANGEFEED,0)}CHECK(){return this.getToken(tr.CHECK,0)}CLASSIFIER(){return this.getToken(tr.CLASSIFIER,0)}COLLATE(){return this.getToken(tr.COLLATE,0)}COLLECTION(){return this.getToken(tr.COLLECTION,0)}COMMIT(){return this.getToken(tr.COMMIT,0)}CONDITIONAL(){return this.getToken(tr.CONDITIONAL,0)}CONFLICT(){return this.getToken(tr.CONFLICT,0)}CONNECT(){return this.getToken(tr.CONNECT,0)}CONSTRAINT(){return this.getToken(tr.CONSTRAINT,0)}CONSUMER(){return this.getToken(tr.CONSUMER,0)}COVER(){return this.getToken(tr.COVER,0)}CREATE(){return this.getToken(tr.CREATE,0)}CROSS(){return this.getToken(tr.CROSS,0)}CURRENT(){return this.getToken(tr.CURRENT,0)}DATA(){return this.getToken(tr.DATA,0)}DATABASE(){return this.getToken(tr.DATABASE,0)}DECIMAL(){return this.getToken(tr.DECIMAL,0)}DECLARE(){return this.getToken(tr.DECLARE,0)}DEFAULT(){return this.getToken(tr.DEFAULT,0)}DEFERRABLE(){return this.getToken(tr.DEFERRABLE,0)}DEFERRED(){return this.getToken(tr.DEFERRED,0)}DEFINE(){return this.getToken(tr.DEFINE,0)}DELETE(){return this.getToken(tr.DELETE,0)}DESC(){return this.getToken(tr.DESC,0)}DESCRIBE(){return this.getToken(tr.DESCRIBE,0)}DETACH(){return this.getToken(tr.DETACH,0)}DIRECTORY(){return this.getToken(tr.DIRECTORY,0)}DISABLE(){return this.getToken(tr.DISABLE,0)}DISCARD(){return this.getToken(tr.DISCARD,0)}DO(){return this.getToken(tr.DO,0)}DROP(){return this.getToken(tr.DROP,0)}EACH(){return this.getToken(tr.EACH,0)}ELSE(){return this.getToken(tr.ELSE,0)}EMPTY(){return this.getToken(tr.EMPTY,0)}ENCRYPTED(){return this.getToken(tr.ENCRYPTED,0)}END(){return this.getToken(tr.END,0)}ERROR(){return this.getToken(tr.ERROR,0)}ESCAPE(){return this.getToken(tr.ESCAPE,0)}EVALUATE(){return this.getToken(tr.EVALUATE,0)}EXCLUDE(){return this.getToken(tr.EXCLUDE,0)}EXCLUSION(){return this.getToken(tr.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(tr.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(tr.EXPLAIN,0)}EXPORT(){return this.getToken(tr.EXPORT,0)}EXTERNAL(){return this.getToken(tr.EXTERNAL,0)}FAIL(){return this.getToken(tr.FAIL,0)}FAMILY(){return this.getToken(tr.FAMILY,0)}FILTER(){return this.getToken(tr.FILTER,0)}FIRST(){return this.getToken(tr.FIRST,0)}FLATTEN(){return this.getToken(tr.FLATTEN,0)}FOLLOWING(){return this.getToken(tr.FOLLOWING,0)}FOR(){return this.getToken(tr.FOR,0)}FOREIGN(){return this.getToken(tr.FOREIGN,0)}FUNCTION(){return this.getToken(tr.FUNCTION,0)}GLOB(){return this.getToken(tr.GLOB,0)}GRANT(){return this.getToken(tr.GRANT,0)}GROUP(){return this.getToken(tr.GROUP,0)}GROUPING(){return this.getToken(tr.GROUPING,0)}HASH(){return this.getToken(tr.HASH,0)}IF(){return this.getToken(tr.IF,0)}IGNORE(){return this.getToken(tr.IGNORE,0)}ILIKE(){return this.getToken(tr.ILIKE,0)}IMMEDIATE(){return this.getToken(tr.IMMEDIATE,0)}IMPORT(){return this.getToken(tr.IMPORT,0)}IN(){return this.getToken(tr.IN,0)}INCREMENTAL(){return this.getToken(tr.INCREMENTAL,0)}INDEX(){return this.getToken(tr.INDEX,0)}INDEXED(){return this.getToken(tr.INDEXED,0)}INHERITS(){return this.getToken(tr.INHERITS,0)}INITIAL(){return this.getToken(tr.INITIAL,0)}INITIALLY(){return this.getToken(tr.INITIALLY,0)}INNER(){return this.getToken(tr.INNER,0)}INSERT(){return this.getToken(tr.INSERT,0)}INSTEAD(){return this.getToken(tr.INSTEAD,0)}INTO(){return this.getToken(tr.INTO,0)}IS(){return this.getToken(tr.IS,0)}ISNULL(){return this.getToken(tr.ISNULL,0)}JOIN(){return this.getToken(tr.JOIN,0)}KEY(){return this.getToken(tr.KEY,0)}LAST(){return this.getToken(tr.LAST,0)}LEFT(){return this.getToken(tr.LEFT,0)}LEGACY(){return this.getToken(tr.LEGACY,0)}LIKE(){return this.getToken(tr.LIKE,0)}MANAGE(){return this.getToken(tr.MANAGE,0)}MATCH(){return this.getToken(tr.MATCH,0)}MATCHES(){return this.getToken(tr.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(tr.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(tr.MEASURES,0)}MICROSECONDS(){return this.getToken(tr.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(tr.MILLISECONDS,0)}MODIFY(){return this.getToken(tr.MODIFY,0)}NANOSECONDS(){return this.getToken(tr.NANOSECONDS,0)}NATURAL(){return this.getToken(tr.NATURAL,0)}NEXT(){return this.getToken(tr.NEXT,0)}NO(){return this.getToken(tr.NO,0)}NOTNULL(){return this.getToken(tr.NOTNULL,0)}NULLS(){return this.getToken(tr.NULLS,0)}OBJECT(){return this.getToken(tr.OBJECT,0)}OF(){return this.getToken(tr.OF,0)}OFFSET(){return this.getToken(tr.OFFSET,0)}OMIT(){return this.getToken(tr.OMIT,0)}ON(){return this.getToken(tr.ON,0)}ONE(){return this.getToken(tr.ONE,0)}ONLY(){return this.getToken(tr.ONLY,0)}OPTION(){return this.getToken(tr.OPTION,0)}OR(){return this.getToken(tr.OR,0)}ORDER(){return this.getToken(tr.ORDER,0)}OTHERS(){return this.getToken(tr.OTHERS,0)}OUTER(){return this.getToken(tr.OUTER,0)}OVER(){return this.getToken(tr.OVER,0)}PARALLEL(){return this.getToken(tr.PARALLEL,0)}PARTITION(){return this.getToken(tr.PARTITION,0)}PASSING(){return this.getToken(tr.PASSING,0)}PASSWORD(){return this.getToken(tr.PASSWORD,0)}PAST(){return this.getToken(tr.PAST,0)}PATTERN(){return this.getToken(tr.PATTERN,0)}PER(){return this.getToken(tr.PER,0)}PERMUTE(){return this.getToken(tr.PERMUTE,0)}PLAN(){return this.getToken(tr.PLAN,0)}POOL(){return this.getToken(tr.POOL,0)}PRAGMA(){return this.getToken(tr.PRAGMA,0)}PRECEDING(){return this.getToken(tr.PRECEDING,0)}PRESORT(){return this.getToken(tr.PRESORT,0)}PRIMARY(){return this.getToken(tr.PRIMARY,0)}PRIVILEGES(){return this.getToken(tr.PRIVILEGES,0)}QUEUE(){return this.getToken(tr.QUEUE,0)}RAISE(){return this.getToken(tr.RAISE,0)}REFERENCES(){return this.getToken(tr.REFERENCES,0)}REGEXP(){return this.getToken(tr.REGEXP,0)}REINDEX(){return this.getToken(tr.REINDEX,0)}RELEASE(){return this.getToken(tr.RELEASE,0)}REMOVE(){return this.getToken(tr.REMOVE,0)}RENAME(){return this.getToken(tr.RENAME,0)}REPLACE(){return this.getToken(tr.REPLACE,0)}REPLICATION(){return this.getToken(tr.REPLICATION,0)}RESET(){return this.getToken(tr.RESET,0)}RESPECT(){return this.getToken(tr.RESPECT,0)}RESTORE(){return this.getToken(tr.RESTORE,0)}RESTRICT(){return this.getToken(tr.RESTRICT,0)}RESULT(){return this.getToken(tr.RESULT,0)}REVERT(){return this.getToken(tr.REVERT,0)}REVOKE(){return this.getToken(tr.REVOKE,0)}RIGHT(){return this.getToken(tr.RIGHT,0)}RLIKE(){return this.getToken(tr.RLIKE,0)}ROLLBACK(){return this.getToken(tr.ROLLBACK,0)}ROW(){return this.getToken(tr.ROW,0)}SAMPLE(){return this.getToken(tr.SAMPLE,0)}SAVEPOINT(){return this.getToken(tr.SAVEPOINT,0)}SECONDS(){return this.getToken(tr.SECONDS,0)}SEEK(){return this.getToken(tr.SEEK,0)}SEMI(){return this.getToken(tr.SEMI,0)}SETS(){return this.getToken(tr.SETS,0)}SHOW(){return this.getToken(tr.SHOW,0)}TSKIP(){return this.getToken(tr.TSKIP,0)}SOURCE(){return this.getToken(tr.SOURCE,0)}SUBQUERY(){return this.getToken(tr.SUBQUERY,0)}SUBSET(){return this.getToken(tr.SUBSET,0)}SYMBOLS(){return this.getToken(tr.SYMBOLS,0)}SYNC(){return this.getToken(tr.SYNC,0)}SYSTEM(){return this.getToken(tr.SYSTEM,0)}TABLE(){return this.getToken(tr.TABLE,0)}TABLES(){return this.getToken(tr.TABLES,0)}TABLESAMPLE(){return this.getToken(tr.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(tr.TABLESTORE,0)}TEMP(){return this.getToken(tr.TEMP,0)}TEMPORARY(){return this.getToken(tr.TEMPORARY,0)}THEN(){return this.getToken(tr.THEN,0)}TIES(){return this.getToken(tr.TIES,0)}TO(){return this.getToken(tr.TO,0)}TOPIC(){return this.getToken(tr.TOPIC,0)}TRANSACTION(){return this.getToken(tr.TRANSACTION,0)}TRIGGER(){return this.getToken(tr.TRIGGER,0)}TYPE(){return this.getToken(tr.TYPE,0)}UNCONDITIONAL(){return this.getToken(tr.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(tr.UNIQUE,0)}UNKNOWN(){return this.getToken(tr.UNKNOWN,0)}UNMATCHED(){return this.getToken(tr.UNMATCHED,0)}UPDATE(){return this.getToken(tr.UPDATE,0)}UPSERT(){return this.getToken(tr.UPSERT,0)}USE(){return this.getToken(tr.USE,0)}USER(){return this.getToken(tr.USER,0)}USING(){return this.getToken(tr.USING,0)}VACUUM(){return this.getToken(tr.VACUUM,0)}VALUES(){return this.getToken(tr.VALUES,0)}VIEW(){return this.getToken(tr.VIEW,0)}VIRTUAL(){return this.getToken(tr.VIRTUAL,0)}WITH(){return this.getToken(tr.WITH,0)}WRAPPER(){return this.getToken(tr.WRAPPER,0)}XOR(){return this.getToken(tr.XOR,0)}get ruleIndex(){return tr.RULE_keyword_compat}accept(t){return t.visitKeyword_compat?t.visitKeyword_compat(this):t.visitChildren(this)}},jE=class extends P{static{Ss(this,"Type_idContext")}constructor(t,e){super(t,e)}OPTIONAL(){return this.getToken(tr.OPTIONAL,0)}TUPLE(){return this.getToken(tr.TUPLE,0)}STRUCT(){return this.getToken(tr.STRUCT,0)}VARIANT(){return this.getToken(tr.VARIANT,0)}LIST(){return this.getToken(tr.LIST,0)}FLOW(){return this.getToken(tr.FLOW,0)}DICT(){return this.getToken(tr.DICT,0)}SET(){return this.getToken(tr.SET,0)}ENUM(){return this.getToken(tr.ENUM,0)}RESOURCE(){return this.getToken(tr.RESOURCE,0)}TAGGED(){return this.getToken(tr.TAGGED,0)}CALLABLE(){return this.getToken(tr.CALLABLE,0)}get ruleIndex(){return tr.RULE_type_id}accept(t){return t.visitType_id?t.visitType_id(this):t.visitChildren(this)}},JE=class extends P{static{Ss(this,"Bool_valueContext")}constructor(t,e){super(t,e)}TRUE(){return this.getToken(tr.TRUE,0)}FALSE(){return this.getToken(tr.FALSE,0)}get ruleIndex(){return tr.RULE_bool_value}accept(t){return t.visitBool_value?t.visitBool_value(this):t.visitChildren(this)}},zE=class extends P{static{Ss(this,"RealContext")}constructor(t,e){super(t,e)}REAL(){return this.getToken(tr.REAL,0)}get ruleIndex(){return tr.RULE_real}accept(t){return t.visitReal?t.visitReal(this):t.visitChildren(this)}},ZE=class extends P{static{Ss(this,"IntegerContext")}constructor(t,e){super(t,e)}DIGITS(){return this.getToken(tr.DIGITS,0)}INTEGER_VALUE(){return this.getToken(tr.INTEGER_VALUE,0)}get ruleIndex(){return tr.RULE_integer}accept(t){return t.visitInteger?t.visitInteger(this):t.visitChildren(this)}},$E=class extends P{static{Ss(this,"Sql_query_yqContext")}constructor(t,e){super(t,e)}sql_stmt_list_yq(){return this.getRuleContext(0,tl)}PRAGMA(){return this.getToken(tr.PRAGMA,0)}ANSI(){return this.getToken(tr.ANSI,0)}DIGITS(){return this.getToken(tr.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,rr)}get ruleIndex(){return tr.RULE_sql_query_yq}accept(t){return t.visitSql_query_yq?t.visitSql_query_yq(this):t.visitChildren(this)}},tl=class extends P{static{Ss(this,"Sql_stmt_list_yqContext")}constructor(t,e){super(t,e)}sql_stmt_yq(t){return void 0===t?this.getRuleContexts(el):this.getRuleContext(t,el)}EOF(){return this.getToken(tr.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(tr.SEMICOLON):this.getToken(tr.SEMICOLON,t)}get ruleIndex(){return tr.RULE_sql_stmt_list_yq}accept(t){return t.visitSql_stmt_list_yq?t.visitSql_stmt_list_yq(this):t.visitChildren(this)}},el=class extends P{static{Ss(this,"Sql_stmt_yqContext")}constructor(t,e){super(t,e)}sql_stmt_core_yq(){return this.getRuleContext(0,sl)}EXPLAIN(){return this.getToken(tr.EXPLAIN,0)}QUERY(){return this.getToken(tr.QUERY,0)}PLAN(){return this.getToken(tr.PLAN,0)}get ruleIndex(){return tr.RULE_sql_stmt_yq}accept(t){return t.visitSql_stmt_yq?t.visitSql_stmt_yq(this):t.visitChildren(this)}},sl=class extends P{static{Ss(this,"Sql_stmt_core_yqContext")}constructor(t,e){super(t,e)}pragma_stmt(){return this.getRuleContext(0,aa)}select_stmt(){return this.getRuleContext(0,oa)}named_nodes_stmt(){return this.getRuleContext(0,iE)}use_stmt(){return this.getRuleContext(0,sE)}into_table_stmt_yq(){return this.getRuleContext(0,On)}declare_stmt(){return this.getRuleContext(0,Zi)}import_stmt(){return this.getRuleContext(0,ta)}export_stmt(){return this.getRuleContext(0,ea)}do_stmt(){return this.getRuleContext(0,ia)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Wh)}if_stmt(){return this.getRuleContext(0,Kh)}for_stmt(){return this.getRuleContext(0,Qh)}values_stmt(){return this.getRuleContext(0,gn)}get ruleIndex(){return tr.RULE_sql_stmt_core_yq}accept(t){return t.visitSql_stmt_core_yq?t.visitSql_stmt_core_yq(this):t.visitChildren(this)}},rl=class extends P{static{Ss(this,"Replication_nameContext")}constructor(t,e){super(t,e)}AS(){return this.getToken(tr.AS,0)}object_ref(){return this.getRuleContext(0,$h)}get ruleIndex(){return tr.RULE_replication_name}accept(t){return t.visitReplication_name?t.visitReplication_name(this):t.visitChildren(this)}},il=class extends P{static{Ss(this,"Where_exprContext")}constructor(t,e){super(t,e)}WHERE(){return this.getToken(tr.WHERE,0)}expr(){return this.getRuleContext(0,hr)}get ruleIndex(){return tr.RULE_where_expr}accept(t){return t.visitWhere_expr?t.visitWhere_expr(this):t.visitChildren(this)}},al=class extends P{static{Ss(this,"From_stmtContext")}constructor(t,e){super(t,e)}FROM(){return this.getToken(tr.FROM,0)}join_source(){return this.getRuleContext(0,on)}get ruleIndex(){return tr.RULE_from_stmt}accept(t){return t.visitFrom_stmt?t.visitFrom_stmt(this):t.visitChildren(this)}},nl=class extends P{static{Ss(this,"Alter_table_for_autocompleteContext")}constructor(t,e){super(t,e)}alter_table_stmt(){return this.getRuleContext(0,dc)}alter_table_store_stmt(){return this.getRuleContext(0,Ic)}get ruleIndex(){return tr.RULE_alter_table_for_autocomplete}accept(t){return t.visitAlter_table_for_autocomplete?t.visitAlter_table_for_autocomplete(this):t.visitChildren(this)}},cl=class extends Ae{static{Ss(this,"YQLVisitor")}},hl={SPACE:tr.WS,FROM:tr.FROM,OPENING_BRACKET:tr.LPAREN,CLOSING_BRACKET:tr.RPAREN,ALTER:tr.ALTER,INSERT:tr.INSERT,UPSERT:tr.UPSERT,UPDATE:tr.UPDATE,JOIN:tr.JOIN,SEMICOLON:tr.SEMICOLON,SELECT:tr.SELECT};function ol(t,e,s,r){let i,a=s-1;do{if(i=t.get(a),i?.type===r)return!0;a--}while(i?.type===e.SPACE);return!1}function El(t){let e=new Map(t.map((t=>[t,!0])));return{anyRuleInList:t=>(Array.isArray(t)?t:[t]).some((t=>e.has(t))),allRulesInList:t=>!t.some((t=>!e.has(t)))}}function ll({anyRuleInList:t,allRulesInList:e}){if(e([tr.RULE_select_stmt,tr.RULE_id_expr]))return!t([tr.RULE_window_specification_details,tr.RULE_group_by_clause,tr.RULE_table_ref,tr.RULE_where_expr])||void 0}function ul({anyRuleInList:t}){return t([tr.RULE_alter_object_stmt,tr.RULE_drop_object_stmt])&&t(tr.RULE_id_or_at)}function Rl({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(tr.RULE_id_or_at))return;let r=t(tr.RULE_drop_table_stmt)&&!!zs(e,hl,s,tr.TABLESTORE);return t(tr.RULE_alter_table_store_stmt)||r}function _l({anyRuleInList:t,allRulesInList:e,tokenStream:s,cursorTokenIndex:r}){if(!t([tr.RULE_id_or_at,tr.RULE_id_table_or_type]))return;let i=t(tr.RULE_replication_target)&&!t(tr.RULE_replication_name),a=e([tr.RULE_simple_table_ref])&&!zs(s,hl,r,tr.CREATE)&&!zs(s,hl,r,tr.EXTERNAL);return t([tr.RULE_table_ref,tr.RULE_table_inherits])||a||i}function Tl({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(tr.RULE_role_name))return;let r=!!zs(e,hl,s,tr.USER),i=!!zs(e,hl,s,tr.RENAME),a=t(tr.RULE_revoke_permissions_stmt),n=t(tr.RULE_alter_group_stmt)&&!i&&r,c=t(tr.RULE_create_group_stmt)&&r,h=t(tr.RULE_alter_user_stmt)&&!i;return t(tr.RULE_drop_role_stmt)&&r||h||c||n||a}function Al({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(tr.RULE_role_name))return;let r=!!zs(e,hl,s,tr.GROUP),i=!!zs(e,hl,s,tr.USER),a=!!zs(e,hl,s,tr.RENAME),n=t(tr.RULE_drop_role_stmt)&&r,c=t(tr.RULE_alter_group_stmt)&&!a&&!i;return t(tr.RULE_revoke_permissions_stmt)||c||n}function Sl({anyRuleInList:t}){if(t([tr.RULE_an_id,tr.RULE_topic_ref]))return t([tr.RULE_drop_topic_stmt,tr.RULE_alter_topic_stmt])}function dl({allRulesInList:t}){return t([tr.RULE_drop_view_stmt,tr.RULE_id_or_at])||t([tr.RULE_table_ref,tr.RULE_id_table_or_type])}function Ll({anyRuleInList:t}){if(t(tr.RULE_id_or_at))return t([tr.RULE_alter_replication_stmt,tr.RULE_drop_replication_stmt])}function Cl({allRulesInList:t,tokenStream:e,cursorTokenIndex:s}){let r=!!zs(e,hl,s,tr.EXTERNAL);return t([tr.RULE_id_or_at,tr.RULE_drop_table_stmt])&&r||t([tr.RULE_table_ref,tr.RULE_id_table_or_type])}function Nl({anyRuleInList:t}){if(t(tr.RULE_id_or_at))return t([tr.RULE_drop_external_data_source_stmt,tr.RULE_alter_external_data_source_stmt])}function Il({anyRuleInList:t}){return!!t(tr.RULE_an_id)&&t([tr.RULE_alter_table_drop_index,tr.RULE_alter_table_rename_index_to])}function Ol({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t([tr.RULE_an_id,tr.RULE_id_expr])||t([tr.RULE_table_ref,tr.RULE_values_stmt,tr.RULE_alter_table_add_column,tr.RULE_lambda_stmt]))return!1;let r=t(tr.RULE_select_kind)&&!zs(e,hl,s,tr.LIMIT),i=t(tr.RULE_alter_table_alter_column)&&!zs(e,hl,s,tr.FAMILY);return t([tr.RULE_pure_column_list,tr.RULE_pure_column_or_named,tr.RULE_column_name,tr.RULE_without_column_name,tr.RULE_alter_table_drop_column,tr.RULE_delete_stmt])||i||r}function pl(t){if(!Ol(t))return!1;let{tokenStream:e,cursorTokenIndex:s,anyRuleInList:r,allRulesInList:i}=t;return r([tr.RULE_into_table_stmt,tr.RULE_into_table_stmt_yq])&&r(tr.RULE_into_values_source)?ol(e,hl,s,tr.LPAREN):!!i([tr.RULE_select_stmt,tr.RULE_result_column])&&ol(e,hl,s,tr.SELECT)}function gl({anyRuleInList:t,allRulesInList:e}){let s=e([tr.RULE_id_expr,tr.RULE_select_stmt])&&!t(tr.RULE_table_ref);return t(tr.RULE_type_name_simple)||s}function ml({allRulesInList:t}){return t([tr.RULE_an_id,tr.RULE_pragma_stmt])}function xl({anyRuleInList:t}){if(t([tr.RULE_atom_expr,tr.RULE_in_atom_expr])&&!t(tr.RULE_table_ref))return t(tr.RULE_select_stmt)}function Ul({allRulesInList:t}){return t([tr.RULE_id_expr,tr.RULE_table_ref])}function fl({anyRuleInList:t}){if(t(tr.RULE_id_expr)&&!t(tr.RULE_table_ref))return t(tr.RULE_select_stmt)}function Pl({anyRuleInList:t,allRulesInList:e}){if(e([tr.RULE_select_stmt,tr.RULE_id_expr]))return!t([tr.RULE_group_by_clause,tr.RULE_table_ref,tr.RULE_where_expr])||void 0}function kl({allRulesInList:t}){return t([tr.RULE_an_id_hint,tr.RULE_table_hint])}function Ml({allRulesInList:t,anyRuleInList:e}){if(!e([tr.RULE_table_setting_value,tr.RULE_topic_setting_value,tr.RULE_topic_consumer_setting_value])){if(t([tr.RULE_with_table_settings,tr.RULE_an_id]))return e(tr.RULE_create_external_data_source_stmt)?"externalDataSource":e(tr.RULE_create_view_stmt)?"view":e(tr.RULE_create_table_stmt)?"table":void 0;if(t([tr.RULE_with_topic_settings,tr.RULE_an_id]))return"topic";if(t([tr.RULE_topic_consumer_with_settings,tr.RULE_an_id]))return"topicConsumer";if(t([tr.RULE_replication_settings,tr.RULE_an_id]))return"replication"}}Ss(ol,"isFirstPreviousTokenOfType"),Ss(El,"getRuleCheckHelpers"),Ss(ll,"getWindowFunctionsSuggestions"),Ss(ul,"getObjectSuggestions"),Ss(Rl,"getTablestoreSuggestions"),Ss(_l,"getTableSuggestions"),Ss(Tl,"getUserSuggestions"),Ss(Al,"getGroupSuggestions"),Ss(Sl,"getTopicSuggestions"),Ss(dl,"getViewSuggestions"),Ss(Ll,"getReplicationSuggestions"),Ss(Cl,"getExternalTableSuggestions"),Ss(Nl,"getExternalDatasourceSuggestions"),Ss(Il,"checkShouldSuggestTableIndexes"),Ss(Ol,"checkShouldSuggestColumns"),Ss(pl,"checkShouldSuggestAllColumns"),Ss(gl,"getSimpleTypesSuggestions"),Ss(ml,"getPragmasSuggestions"),Ss(xl,"getUdfsSuggestions"),Ss(Ul,"getTableFunctionsSuggestions"),Ss(fl,"getFunctionsSuggestions"),Ss(Pl,"getAggregateFunctionsSuggestions"),Ss(kl,"checkShouldSuggestTableHints"),Ss(Ml,"getEntitySettingsSuggestions");var yl=tr.ruleNames;function Dl(t){let e=t.findIndex((t=>t===tr.RULE_sql_stmt_core||t===tr.RULE_sql_stmt_core_yq));if(-1===e)return;let s=t[e+1];return s?yl[s]:void 0}Ss(Dl,"getParticularStatement");var vl={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function bl(t,e,s){let r={...El(t),cursorTokenIndex:e,tokenStream:s},i=ll(r),a=ul(r),n=Rl(r),c=_l(r),h=Tl(r),o=Al(r),E=Sl(r),l=dl(r),u=Ll(r),R=Cl(r),_=Nl(r),T=Il(r),A=Ol(r),S=pl(r),d=gl(r),L=ml(r),C=xl(r),N=Ul(r),I=fl(r),O=Pl(r),p=kl(r),g=Ml(r);return{suggestWindowFunctions:i,shouldSuggestTableIndexes:T,shouldSuggestColumns:A,shouldSuggestAllColumns:S,shouldSuggestColumnAliases:A,suggestSimpleTypes:d,suggestPragmas:L,suggestUdfs:C,suggestTableFunctions:N,suggestFunctions:I,suggestAggregateFunctions:O,suggestTableHints:p?Dl(t):void 0,suggestEntitySettings:g,suggestObject:a,suggestTableStore:n,suggestTable:c,suggestUser:h,suggestGroup:o,suggestTopic:E,suggestView:l,suggestReplication:u,suggestExternalTable:R,suggestExternalDatasource:_}}function Hl(){let t=[],e=tr.EQUALS,s=tr.LBRACE_SQUARE;for(let r=e;r<=s;r++)r!==tr.ASTERISK&&t.push(r);return t.push(tr.STREAM),t.push(tr.STRING_VALUE),t.push(tr.REAL),t.push(tr.EOF),t.push(tr.DIGITS),t.push(tr.BLOB),t.push(tr.CURRENT_TIME),t.push(tr.CURRENT_DATE),t.push(tr.CURRENT_TIMESTAMP),t}Ss(bl,"getGranularSuggestions"),Ss(Hl,"getIgnoredTokens");var wl=new Set(Hl()),Fl=new Set([tr.RULE_id_or_type,tr.RULE_cluster_expr,tr.RULE_identifier,tr.RULE_id,tr.RULE_integer,tr.RULE_type_id,tr.RULE_keyword,tr.RULE_keyword_compat,tr.RULE_keyword_as_compat,tr.RULE_keyword_expr_uncompat,tr.RULE_keyword_table_uncompat,tr.RULE_keyword_select_uncompat,tr.RULE_keyword_alter_uncompat,tr.RULE_keyword_in_uncompat,tr.RULE_keyword_window_uncompat,tr.RULE_keyword_hint_uncompat,tr.RULE_id_schema,tr.RULE_id_expr_in,tr.RULE_id_window,tr.RULE_id_table,tr.RULE_id_without,tr.RULE_id_hint,tr.RULE_id_as_compat]),Gl=class extends cl{constructor(){super(),this.visitSimple_table_ref_core=t=>{try{let e=t.object_ref()?.id_or_at()?.an_id_or_type()?.getText();e&&this.symbolTable.addNewSymbolOfType(Vs,this.scope,e)}catch(e){if(!(e instanceof rs))throw e}return this.visitChildren(t)},this.visitAlter_table_store_stmt=t=>{try{this.symbolTable.addNewSymbolOfType(Vs,this.scope,t.object_ref()?.id_or_at()?.getText())}catch(e){if(!(e instanceof rs))throw e}return this.visitChildren(t)},this.visitNamed_single_source=t=>{try{this.symbolTable.addNewSymbolOfType(Vs,this.scope,t.single_source().table_ref()?.getText()??"",t.an_id()?.getText()??t.an_id_as_compat()?.getText())}catch(e){if(!(e instanceof rs))throw e}return this.visitChildren(t)},this.visitNamed_column=t=>{try{let e=t.an_id()?.getText();e&&this.symbolTable.addNewSymbolOfType(Ks,this.scope,e)}catch(e){if(!(e instanceof rs))throw e}return this.visitChildren(t)},this.visitNamed_expr=t=>{try{let e=t.an_id_or_type()?.getText();e&&this.symbolTable.addNewSymbolOfType(Ks,this.scope,e)}catch(e){if(!(e instanceof rs))throw e}return this.visitChildren(t)},this.visitResult_column=t=>{try{let e=t.an_id_or_type()?.getText()??t.an_id_as_compat()?.getText();e&&this.symbolTable.addNewSymbolOfType(Ks,this.scope,e)}catch(e){if(!(e instanceof rs))throw e}return this.visitChildren(t)},this.symbolTable=new Ts("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(is,void 0)}static{Ss(this,"YQLSymbolTableVisitor")}};function Bl(t,e,s){let r={};for(let[A,S]of t){if(!Os(e,S))break;switch(A){case tr.RULE_id_table:case tr.RULE_id_hint:case tr.RULE_identifier:case tr.RULE_id_or_type:case tr.RULE_id:{let t=bl(S.ruleList,e,s),i=Object.fromEntries(Object.entries(t).filter((([t,e])=>e)));r={...r,...i}}}}let{suggestObject:i,suggestTableStore:a,suggestTable:n,suggestUser:c,suggestGroup:h,suggestTopic:o,suggestView:E,suggestReplication:l,suggestExternalTable:u,suggestExternalDatasource:R,..._}=r,T=Object.entries({suggestObject:i,suggestTableStore:a,suggestTable:n,suggestUser:c,suggestGroup:h,suggestTopic:o,suggestView:E,suggestReplication:l,suggestExternalTable:u,suggestExternalDatasource:R}).filter((([t,e])=>e)).map((([t])=>vl[t]));return{suggestEntity:T.length?T:void 0,..._}}function Yl(t,e){return e?Wl(t,e):t.sql_query()}function Vl(t,e){return e?Wl(t,e):t.sql_query_yq()}function Wl(t,e){switch(e){case"from":return t.from_stmt();case"alter":return t.alter_table_for_autocomplete();case"insert":return t.into_table_stmt();case"update":return t.update_stmt();case"select":return t.select_core()}}function Xl(t){return(e,s,r,i,a,n)=>{let{shouldSuggestColumns:c,shouldSuggestAllColumns:h,shouldSuggestColumnAliases:o,shouldSuggestTableIndexes:E,...l}=Bl(s,i,r),u={...e,...l,suggestTemplates:Us(n,a)};if(c||o||E){let e=new Gl,{tableContextSuggestion:s,suggestColumnAliases:i}=Zs($s,tr,e,hl,t,r,a,n,!0);c&&s&&(u.suggestColumns={tables:s.tables},h&&(u.suggestColumns.all=!0)),E&&s&&(u.suggestTableIndexes={tables:s.tables}),o&&i&&(u.suggestColumnAliases=i)}return u}}Ss(Bl,"processVisitedRules"),Ss(Yl,"getParseTree"),Ss(Vl,"getParseTreeYQ"),Ss(Wl,"getCommonParseTree"),Ss(Xl,"getEnrichAutocompleteResult");var Kl=new er(null,-1),Ql={Lexer:$s,Parser:tr,tokenDictionary:hl,ignoredTokens:wl,rulesToVisit:Fl,getParseTree:Yl,enrichAutocompleteResult:Xl(Yl),context:Kl},ql=new $E(null,-1),jl={Lexer:$s,Parser:tr,tokenDictionary:hl,ignoredTokens:wl,rulesToVisit:Fl,getParseTree:Vl,enrichAutocompleteResult:Xl(Vl),context:ql};function Jl(t){return Fs(Ql.Lexer,Ql.Parser,Ql.tokenDictionary.SPACE,Ql.getParseTree,t)}function zl(t,e){return Bs(Ql.Lexer,Ql.Parser,Ql.tokenDictionary.SPACE,Ql.ignoredTokens,Ql.rulesToVisit,Ql.getParseTree,Ql.enrichAutocompleteResult,t,e,Ql.context)}function Zl(t){return Fs(jl.Lexer,jl.Parser,jl.tokenDictionary.SPACE,jl.getParseTree,t)}function $l(t,e){return Bs(jl.Lexer,jl.Parser,jl.tokenDictionary.SPACE,jl.ignoredTokens,jl.rulesToVisit,jl.getParseTree,jl.enrichAutocompleteResult,t,e,jl.context)}function tu(t){return zl(...Ys(t))}function eu(t){return $l(...Ys(t))}function su(t){return ws($s,$s.symbolicNames,Ql.tokenDictionary.SPACE,t)}function ru(t){return Ds(t,Ql.Lexer,Ql.Parser,Ql.tokenDictionary.SPACE,[Ql.tokenDictionary.SPACE],Ql.tokenDictionary.SEMICOLON,tr.RULE_sql_stmt,Ql.getParseTree)}Ss(Jl,"parseYqlQueryWithoutCursor"),Ss(zl,"parseYqlQuery"),Ss(Zl,"parseYqQueryWithoutCursor"),Ss($l,"parseYqQuery"),Ss(tu,"parseYqlQueryWithCursor"),Ss(eu,"parseYqQueryWithCursor"),Ss(su,"tokenizeYqlQuery"),Ss(ru,"extractYqlStatementPositionsFromQuery")}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2881.44a91214.chunk.js b/ydb/core/viewer/monitoring/static/js/2881.44a91214.chunk.js new file mode 100644 index 0000000000..96f1bdc486 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2881.44a91214.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2881],{89516:(e,t,s)=>{s.d(t,{a:()=>l});var i=s(99294),o=s(73287),n=s(10161);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]})}},21711:(e,t,s)=>{s.d(t,{b:()=>c});var i=s(34706),o=s(5194),n=s(99294),a=s(83658),l=s(10161);const d=(0,n.cn)("ydb-info-viewer-skeleton"),r=()=>(0,l.jsxs)("div",{className:d("label"),children:[(0,l.jsx)(o.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,a.$)(n);let m=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(r,{}),(0,l.jsx)(o.O,{className:d("value")})]});return c||(m=null),(0,l.jsx)("div",{className:d(null,s),children:[...new Array(t)].map(((e,t)=>(0,l.jsx)("div",{className:d("row"),children:m},`skeleton-row-${t}`)))})}},50377:(e,t,s)=>{s.d(t,{P:()=>y});var i=s(79777),o=s(46878),n=s(65e3),a=s(25665),l=s(10142),d=s(99294),r=s(38980),c=s(70340),m=s(55842),u=s(43862),p=s(90808),h=s(20760),g=s(73287),v=s(37711);const D=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"}'),k=(0,v.wZ)("ydb-pDisk-info",{en:D});var b=s(10161);const x=(0,d.cn)("ydb-pdisk-info");function y(e){let{pDisk:t,nodeId:s,withPDiskPageLink:d,className:v}=e;const D=(0,m.ix)(n.VH),[y,N,S,f]=function(e){let{pDisk:t,nodeId:s,withPDiskPageLink:i,isUserAllowedToMakeChanges:n}=e;const{PDiskId:d,Path:m,Guid:u,Category:v,Type:D,Device:y,Realtime:N,State:S,SerialNumber:f,TotalSize:j,AllocatedSize:I,StatusV2:w,NumActiveSlots:T,ExpectedSlotCount:P,LogUsedSize:E,LogTotalSize:C,SystemSize:z,SharedWithOs:M}=t||{},O=[];(0,a.D)(v)&&O.push({label:k("type"),value:D}),(0,a.D)(m)&&O.push({label:k("path"),value:m}),(0,a.D)(u)&&O.push({label:k("guid"),value:u}),f&&O.push({label:k("serial-number"),value:f}),(0,a.D)(M)&&O.push({label:k("shared-with-os"),value:k("yes")});const _=[];(0,a.D)(w)&&_.push({label:k("drive-status"),value:w}),(0,a.D)(S)&&_.push({label:k("state"),value:S}),(0,a.D)(y)&&_.push({label:k("device"),value:(0,b.jsx)(g.J,{status:y})}),(0,a.D)(N)&&_.push({label:k("realtime"),value:(0,b.jsx)(g.J,{status:N})});const A=[];A.push({label:k("space"),value:(0,b.jsx)(h.y,{value:I,capacity:j,formatValues:r.q3,colorizeProgress:!0})}),(0,a.D)(T)&&(0,a.D)(P)&&A.push({label:k("slots"),value:(0,b.jsx)(h.y,{value:T,capacity:P})}),(0,a.D)(E)&&(0,a.D)(C)&&A.push({label:k("log-size"),value:(0,b.jsx)(h.y,{value:E,capacity:C,formatValues:r.q3})}),(0,a.D)(z)&&A.push({label:k("system-size"),value:(0,l.td)({value:z})});const L=[];if((i||n)&&(0,a.D)(d)&&(0,a.D)(s)){const e=(0,o.ds)(d,s),t=(0,c.ok)({nodeId:s,pDiskId:d});L.push({label:k("links"),value:(0,b.jsxs)("span",{className:x("links"),children:[i&&(0,b.jsx)(p.j,{title:k("pdisk-page"),url:e,external:!1}),n&&(0,b.jsx)(p.j,{title:k("developer-ui"),url:t})]})})}return[O,_,A,L]}({pDisk:t,nodeId:s,withPDiskPageLink:d,isUserAllowedToMakeChanges:D});return(0,b.jsxs)(i.k,{className:v,gap:2,direction:"row",wrap:!0,children:[(0,b.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(u._,{info:y,renderEmptyState:()=>null}),(0,b.jsx)(u._,{info:S,renderEmptyState:()=>null})]}),(0,b.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(u._,{info:N,renderEmptyState:()=>null}),(0,b.jsx)(u._,{info:f,renderEmptyState:()=>null})]})]})}},84573:(e,t,s)=>{s.d(t,{B:()=>c});var i=s(79777),o=s(99294),n=s(74003),a=s(43464),l=s(10161);const d=(0,o.cn)("ydb-page-meta");function r(e){let{items:t,loading:s}=e;return(0,l.jsx)("div",{className:d("info"),children:s?(0,l.jsx)(a.O,{className:d("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:t,...s}=e;return(0,l.jsxs)(i.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:d(null,t),children:[(0,l.jsx)(r,{...s}),(0,l.jsx)(n.q,{})]})}},43464:(e,t,s)=>{s.d(t,{O:()=>a});var i=s(5194),o=s(83658),n=s(10161);const a=e=>{let{delay:t=600,className:s}=e;const[a]=(0,o.$)(t);return a?(0,n.jsx)(i.O,{className:s}):null}},71676:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>xe});var i=s(34706),o=s(42568),n=s(14561),a=s(72555),l=s(64485),d=s(42152),r=s(99495),c=s(75475),m=s(55982),u=s(89516),p=s(15327),h=s(21711),g=s(32489),v=s(50377),D=s(84573),k=s(46878),b=s(78759),x=s(65e3),y=s(39202),N=s(85709),S=s(53458),f=s(32677),j=s(25665),I=s(26612),w=s(96183);const T=b.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,f.AE)("/pdisk/info",void 0,{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 a=null===(t=n.SystemStateInfo)||void 0===t?void 0:t[0],l=(0,w.Ns)(a),{BSC:d={},Whiteboard:r={}}=o||{},{PDisk:c={},VDisks:m=[]}=r,{PDisk:u={}}=d,p=(0,I.TD)({...u,...c}),h=null!==(s=p.NodeId)&&void 0!==s?s:l.NodeId,{LogUsedSize:g,LogTotalSize:v,TotalSize:D,SystemSize:k,ExpectedSlotCount:b,EnforcedDynamicSlotSize:x}=p;let y;(0,j.D)(v)&&(y={SlotType:"log",Used:Number(g),Total:Number(v),UsagePercent:100*Number(g)/Number(v),Severity:1,SlotData:{LogUsedSize:g,LogTotalSize:v,SystemSize:k}});const N=m.map((e=>(0,I.se)({...e,NodeId:h})));N.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const S=N.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 f=[];if(b&&b>S.length){const e=b-S.length;let t=Number(x);if(isNaN(t)){const s=S.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(D)-s-Number(v))/e}f=(0,j.c$)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const T=[...S,...f];return y&&T.length>0&&T.unshift(y),{...p,NodeId:h,NodeHost:l.Host,NodeType:null===(i=l.Roles)||void 0===i?void 0:i[0],NodeDC:l.DC,SlotItems:T}}(await Promise.all([l,window.api.getNodeInfo(s,{signal:o})]));return{data:e}}catch(d){return{error:d}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,S.CH)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var P=s(99294),E=s(55842),C=s(58095),z=s(85996),M=s(36413),O=s(16318),_=s(72616),A=s(47945),L=s(51403),R=s(37711);const U=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"}'),V=(0,R.wZ)("ydb-pDisk-page",{en:U});var $,H,J,B;function q(){return q=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},q.apply(this,arguments)}const G=function(e){return i.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),$||($=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})),H||(H=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})),J||(J=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)"})),B||(B=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 W=s(10161);const Z=(0,P.cn)("ydb-pdisk-decommission-button");function F(e){return"DECOMMIT_IMMINENT"===e?V("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?V("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?V("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?V("decommission-dialog-none-warning"):void 0}function Y(e){let{decommission:t,onConfirmAction:s,onConfirmActionSuccess:o,buttonDisabled:n,popoverDisabled:a}=e;const[l,d]=i.useState(),[r,c]=i.useState(!1),[m,u]=i.useState(!1),p=function(e,t){return[{text:V("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:V("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:V("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:V("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(t,d);return(0,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(M.h,{renderSwitcher:e=>(0,W.jsx)(Q,{popoverDisabled:a,loading:r,disabled:n,...e}),items:p,popupProps:{className:Z("popup")}}),(0,W.jsx)(A.g,{visible:Boolean(l),header:V("decommission-dialog-title"),text:F(l),withRetry:m,withCheckBox:!0,retryButtonText:V("decommission-dialog-force-change"),onConfirm:async e=>{c(!0),await s(l,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,j.Dc)(5e3);try{await o()}finally{c(!1)}},onConfirmActionError:e=>{u((0,L.q)(e)),c(!1)},onClose:()=>{d(void 0)}})]})}function Q(e){let{popoverDisabled:t,...s}=e;return(0,W.jsx)(O.J,{content:V("decommission-change-not-allowed"),placement:"right",disabled:t,children:(0,W.jsxs)(_.z,{view:"normal",className:Z("button"),...s,children:[(0,W.jsx)(n.J,{data:G}),V("decommission-button"),(0,W.jsx)(n.J,{data:z.Z})]})})}var K=s(2634);function X(e){return V("decommission-label",{decommission:e})}function ee(e){let{decommission:t}=e;return"DECOMMIT_IMMINENT"===t?(0,W.jsx)(K._,{theme:"danger",size:"m",children:X(V("decommission-imminent"))}):"DECOMMIT_PENDING"===t?(0,W.jsx)(K._,{theme:"warning",size:"m",children:X(V("decommission-pending"))}):"DECOMMIT_REJECTED"===t?(0,W.jsx)(K._,{theme:"normal",size:"m",children:X(V("decommission-rejected"))}):null}var te=s(90457),se=s(91890),ie=s(41591),oe=s(67653),ne=s(20760),ae=s(49263),le=s(10142),de=s(38980);const re=(0,P.cn)("ydb-pdisk-space-distribution"),ce=40;function me(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,W.jsx)("div",{className:re(null),style:{height:n,minHeight:n},children:(0,W.jsx)(te.p,{className:re("pdisk-bar"),severity:t.Severity,diskAllocatedPercent:t.AllocatedPercent,content:null===s||void 0===s?void 0:s.map(((e,t)=>(0,W.jsx)(ue,{item:e,pDiskId:i,nodeId:o},t))),faded:!0})}):V("no-slots-data")}function ue(e){let{item:t,pDiskId:s,nodeId:i}=e;return(0,W.jsx)("div",{className:re("slot-wrapper"),style:{flexGrow:Number(t.Total)||1},children:(()=>{if("vDisk"===t.SlotType){var e;const o=(0,j.D)(null===(e=t.SlotData)||void 0===e?void 0:e.VDiskSlotId)&&(0,j.D)(s)&&(0,j.D)(i)?(0,k.By)(t.SlotData.VDiskSlotId,s,i):void 0;return(0,W.jsx)(se.I,{popupContent:(0,W.jsx)(ae.K,{data:t.SlotData,withTitle:!0}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(oe.h,{to:o,children:(0,W.jsx)(te.p,{className:re("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,W.jsx)(pe,{id:t.Id,title:t.Title,used:t.Used,total:t.Total})})})})}return function(e){return"log"===e.SlotType}(t)?(0,W.jsx)(se.I,{popupContent:(0,W.jsx)(he,{data:t.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.p,{className:re("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,W.jsx)(pe,{title:V("log"),used:t.Used,total:t.Total})})}):function(e){return"empty"===e.SlotType}(t)?(0,W.jsx)(se.I,{popupContent:(0,W.jsx)(ge,{data:t.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.p,{className:re("slot"),severity:t.Severity,empty:!0,content:(0,W.jsx)(pe,{title:V("empty-slot"),used:t.Total})})}):null})()})}function pe(e){let{id:t,title:s,used:i,total:o}=e;return(0,W.jsxs)("div",{className:re("slot-content"),children:[(0,W.jsxs)("span",{children:[(0,j.D)(t)?(0,W.jsx)("span",{className:re("slot-id"),children:t}):null,s]}),(0,W.jsx)("span",{className:re("slot-size"),children:(()=>{const[e,t]=(0,de.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:V("label.log-size"),value:(0,W.jsx)(ne.y,{value:i,capacity:s,formatValues:de.q3})}];return(0,j.D)(o)&&n.push({label:V("label.system-size"),value:(0,le.td)({value:o})}),(0,W.jsx)(ie._P,{title:V("log"),info:n})}function ge(e){let{data:t}=e;const{Size:s}=t,i=[{label:V("label.slot-size"),value:(0,le.td)({value:s})}];return(0,W.jsx)(ie._P,{title:V("empty-slot"),info:i})}const ve=(0,P.cn)("ydb-pdisk-page"),De={diskDistribution:"diskDistribution",storage:"storage"},ke=[{id:De.diskDistribution,get title(){return V("disk-distribution")}},{id:De.storage,get title(){return V("storage")}}],be=c.z.nativeEnum(De).catch(De.diskDistribution);function xe(){const e=(0,E.zL)(),t=(0,E.ix)(x.VH),s=(0,y.X_)(),c=i.useRef(null),[{nodeId:f,pDiskId:I,activeTab:w}]=(0,r.useQueryParams)({activeTab:r.StringParam,nodeId:r.StringParam,pDiskId:r.StringParam}),P=(0,j.D)(f)&&(0,j.D)(I),z=be.parse(w);i.useEffect((()=>{e((0,N.J)("pDisk",{nodeId:f,pDiskId:I}))}),[e,f,I]);const[M]=(0,E.Rj)(),O=P?{nodeId:f,pDiskId:I}:l.CN,_=T.useGetPdiskInfoQuery(O,{pollingInterval:M}),A=_.isFetching&&void 0===_.currentData,L=_.currentData,{NodeHost:R,NodeId:U,NodeType:$,NodeDC:H,Severity:J,DecommitStatus:B}=L||{},q=async e=>{if(P){const t=await window.api[s?"restartPDisk":"restartPDiskOld"]({nodeId:f,pDiskId:I,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(P){const s=await window.api.changePDiskStatus({nodeId:f,pDiskId:I,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},Z=()=>{P&&e(b.h.util.invalidateTags([{type:"PDiskData",id:(0,S.CH)(f,I)}]),"StorageData")};return(0,W.jsxs)("div",{className:ve(null),ref:c,children:[(()=>{const e=I?`${V("pdisk")} ${I}`:V("pdisk"),t=R||V("node");return(0,W.jsx)(d.ql,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=R?`${V("fqdn")}: ${R}`:void 0,t=U?`${V("node")}: ${U}`:void 0;return(0,W.jsx)(D.B,{loading:A,items:[e,t,$,H],className:ve("meta")})})(),(0,W.jsxs)("div",{className:ve("title"),children:[(0,W.jsx)(u.a,{entityName:V("pdisk"),status:(0,S.b2)(J),id:(0,S.CH)(f,I)}),(0,W.jsx)(ee,{decommission:B})]}),(0,W.jsxs)("div",{className:ve("controls"),children:[(0,W.jsxs)(m.U,{onConfirmAction:q,onConfirmActionSuccess:Z,buttonDisabled:!P||!t,buttonView:"normal",dialogHeader:V("restart-pdisk-dialog-header"),dialogText:V("restart-pdisk-dialog-text"),retryButtonText:V("force-restart-pdisk-button"),withPopover:!0,popoverContent:V("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,W.jsx)(n.J,{data:o.Z}),V("restart-pdisk-button")]}),s?(0,W.jsx)(Y,{decommission:B,onConfirmAction:G,onConfirmActionSuccess:Z,buttonDisabled:!P||!t,popoverDisabled:t}):null]}),_.error?(0,W.jsx)(p.V,{error:_.error}):null,A?(0,W.jsx)(h.b,{className:ve("info"),rows:10}):(0,W.jsx)(v.P,{pDisk:L,nodeId:f,className:ve("info")}),(0,W.jsx)("div",{className:ve("tabs"),children:(0,W.jsx)(a.m,{size:"l",items:ke,activeTab:z,wrapTo:(e,t)=>{let{id:s}=e;const i=P?(0,k.ds)(I,f,{activeTab:s}):void 0;return(0,W.jsx)(g.h,{to:i,children:t},s)}})}),(()=>{switch(z){case"diskDistribution":return L?(0,W.jsx)("div",{className:ve("disk-distribution"),children:(0,W.jsx)(me,{data:L})}):null;case"storage":return P?(0,W.jsx)(C.V,{nodeId:f,pDiskId:I,parentRef:c}):null;default:return null}})()]})}},42568:(e,t,s)=>{s.d(t,{Z:()=>o});var i=s(34706);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.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/3017.cd53b447.chunk.js b/ydb/core/viewer/monitoring/static/js/3017.cd53b447.chunk.js new file mode 100644 index 0000000000..64e79d9f28 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3017.cd53b447.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3017],{74003:(e,t,r)=>{r.d(t,{q:()=>h});var n=r(26714),s=r(72616),o=r(26390),a=r(78759),i=r(99294),l=r(55842),d=r(37711);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=r(10161);const p=(0,i.cn)("auto-refresh-control");function h(e){let{className:t}=e;const r=(0,l.zL)(),[i,d]=(0,l.Rj)();return(0,m.jsxs)("div",{className:p(null,t),children:[(0,m.jsx)(s.z,{view:"flat-secondary",onClick:()=>{r(a.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(s.z.Icon,{children:(0,m.jsx)(n.Z,{})})}),(0,m.jsxs)(o.P,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",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")})]})]})}},61168:(e,t,r)=>{r.d(t,{l:()=>l});var n=r(16318),s=r(99294),o=r(10161);const a=(0,s.cn)("ydb-cell-with-popover"),i=100;function l(e){let{children:t,className:r,wrapperClassName:s,fullWidth:l,...d}=e;return(0,o.jsx)("div",{className:a({fullWidth:l},s),children:(0,o.jsx)(n.J,{delayClosing:i,delayOpening:i,className:a("popover",{"full-width":l},r),...d,children:t})})}},43926:(e,t,r)=>{r.d(t,{f:()=>a});var n=r(34706),s=r(24874),o=r(10161);const a=e=>{let{children:t,content:r,className:a,pinOnClick:i,hasArrow:l=!0,placement:d=["top","bottom"],...u}=e;const[c,m]=n.useState(!1),[p,h]=n.useState(!1),g=n.useRef(null);return(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(s.G,{anchorRef:g,open:p||c,placement:d,hasArrow:l,onOutsideClick:()=>{h(!1)},...u,children:r}),(0,o.jsx)("span",{className:a,ref:g,onClick:i?()=>{h(!0)}:void 0,onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:t})]})}},90457:(e,t,r)=>{r.d(t,{p:()=>d});r(34706);var n=r(99294),s=r(27810),o=r(53458),a=r(55842),i=r(10161);const l=(0,n.cn)("storage-disk-progress-bar");function d(e){let{diskAllocatedPercent:t=-1,severity:r,compact:n,faded:d,inactive:u,empty:c,content:m,className:p}=e;const[h]=(0,a.yu)(s.yT),g={inverted:h,compact:n,faded:d,empty:c,inactive:u},v=void 0!==r&&(0,o.b2)(r);v&&(g[v.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(g,p),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:[(()=>{if(n)return(0,i.jsx)("div",{className:l("fill-bar",g),style:{width:"100%"}});const e=h?100-t:t;return t>=0?(0,i.jsx)("div",{className:l("fill-bar",g),style:{width:`${e}%`}}):null})(),m||(!n&&t>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(t)}%`}):null)]})}},14325:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(2634),s=r(99294);const o=(0,r(37711).wZ)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var a=r(10161);const i=(0,s.cn)("ydb-entities-count"),l=e=>{let{total:t,current:r,label:s,loading:l,className:d}=e,u="";return s&&(u+=`${s}: `),l?u+="...":(u+=`${r}`,t&&Number(t)!==Number(r)&&(u+=` ${o("of")} ${t}`)),(0,a.jsx)(n._,{theme:"info",size:"m",className:i(null,d),children:u})}},62508:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(17823),s=r(99175),o=r(77468),a=r(99294),i=r(32489),l=r(73287),d=r(10161);const u=(0,a.cn)("entity-status");function c(e){let{status:t=o.K.Grey,name:r="",label:a,path:c,iconPath:m,size:p="s",mode:h="color",showStatus:g=!0,externalLink:v=!1,withLeftTrim:S=!1,hasClipboardButton:f,clipboardButtonAlwaysVisible:x=!1,className:w}=e;const N=()=>g?(0,d.jsx)(l.J,{className:u("icon"),status:t,size:p,mode:h}):null;return(0,d.jsxs)("div",{className:u(null,w),children:[m?(b=m,(0,d.jsx)(n.r,{target:"_blank",href:b,children:N()})):N(),a&&(0,d.jsx)("span",{title:a,className:u("label",{size:p,state:t.toLowerCase()}),children:a}),(c||r)&&(0,d.jsxs)("div",{className:u("wrapper",{"with-button":f}),children:[(0,d.jsx)("span",{className:u("link",{"with-left-trim":S}),title:r,children:c?v?(0,d.jsx)(n.r,{className:u("name"),href:c,children:r}):(0,d.jsx)(i.h,{className:u("name"),to:c,children:r}):r&&(0,d.jsx)("span",{className:u("name"),children:r})}),f&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:x}),children:(0,d.jsx)(s.m,{text:r,size:"xs",view:"normal",className:u("clipboard-button",{visible:x})})})]})]});var b}},91890:(e,t,r)=>{r.d(t,{I:()=>u});var n=r(34706),s=r(24874),o=r(58399),a=r.n(o),i=r(99294),l=r(10161);const d=(0,i.cn)("hover-popup"),u=e=>{let{children:t,popupContent:r,showPopup:o,offset:i,anchorRef:u,onShowPopup:c,onHidePopup:m,placement:p=["top","bottom"],contentClassName:h}=e;const[g,v]=n.useState(!1),S=n.useRef(null),f=n.useMemo((()=>a()((()=>{v(!0),null===c||void 0===c||c()}),100)),[c]),x=n.useCallback((()=>{v(!1),null===m||void 0===m||m()}),[m]),w=n.useMemo((()=>a()(x,100)),[x]),N=f,[b,k]=n.useState(!1),[y,D]=n.useState(!1),I=n.useCallback((()=>{k(!0)}),[]),j=n.useCallback((()=>{k(!1)}),[]),P=n.useCallback((()=>{D(!0)}),[]),C=n.useCallback((()=>{D(!1)}),[]),E=n.useCallback((()=>{D(!1),k(!1),x()}),[x]),T=g||o||b||y;return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:N,onMouseLeave:()=>{f.cancel(),w()},children:t}),(0,l.jsx)(s.G,{contentClassName:d(null,h),anchorRef:u||S,open:T,onMouseEnter:I,onMouseLeave:j,onEscapeKeyDown:E,onBlur:C,placement:p,hasArrow:!0,offset:i||[0,12],children:(0,l.jsx)("div",{onContextMenu:P,children:r})})]})}},92146:(e,t,r)=>{r.d(t,{O:()=>N});var n=r(53216),s=r(83797),o=r(10142),a=r(99294),i=r(27810),l=r(95440),d=r(73689),u=r(91890),c=r(20760),m=r(37711);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.wZ)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kE)(e)?parseFloat(String(e)):void 0}var v=r(10161);const S=1,f=.01*i.GS,x=(0,a.cn)("memory-viewer"),w=(e,t)=>[(0,o.td)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,o.td)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function N(e){let{stats:t,percents:r,formatValues:a,className:i,warningThreshold:m=60,dangerThreshold:p=80}=e;const N=t.AnonRss,b=t.HardLimit,k=(0,n.F)();let y=Math.round(parseFloat(String(N))/parseFloat(String(b))*100)||0;y=y>100?100:y;let D=N,I=b,j="/";r?(D=y+"%",I="",j=""):a&&([D,I]=a(Number(N),Number(b)));const P=function(e){const t=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],r=t.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),n=g(e.AnonRss);if(n){const e=Math.max(0,n-r);t.push({label:h("text_other"),key:"Other",value:e,isInfo:!1})}return t.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:g(e.AnonRss),isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),t.filter((e=>void 0!==e.value))}(t),C=(0,l.S)({fillWidth:y,warningThreshold:m,dangerThreshold:p,colorizeProgress:!0});let E=0;return(0,v.jsx)(u.I,{popupContent:(0,v.jsx)(s.w,{responsive:!0,children:P.map((e=>{let{label:t,value:r,capacity:n,key:a}=e;return(0,v.jsx)(s.w.Item,{name:(0,v.jsxs)("div",{className:x("container"),children:[(0,v.jsx)("div",{className:x("legend",{type:a})}),(0,v.jsx)("div",{className:x("name"),children:t})]}),children:n?(0,v.jsx)(c.y,{value:r,capacity:n,formatValues:w,colorizeProgress:!0}):(0,o.td)({value:r,size:"gb",withSizeLabel:!0,precision:2})},t)}))}),children:(0,v.jsx)("div",{className:x({theme:k,status:C},i),children:(0,v.jsxs)("div",{className:x("progress-container"),children:[P.filter((e=>{let{isInfo:t}=e;return!t})).map((e=>{if(e.value<f)return null;const t=Math.max((r=e.value,N?r/parseFloat(String(b))*100:0),S);var r;const n=E;return E+=t,(0,v.jsx)("div",{className:x("segment",{type:e.key}),style:{width:`${t}%`,left:`${n}%`}},e.key)})),(0,v.jsx)("div",{className:x("text"),children:(0,d.kE)(b)?`${D} ${j} ${I}`:D})]})})})}},66970:(e,t,r)=>{r.d(t,{J:()=>S,b:()=>v});var n=r(34706),s=r(65e3),o=r(4969),a=r(77468),i=r(25665),l=r(27810),d=r(70340),u=r(55842),c=r(73689),m=r(41591),p=r(90808),h=r(10161);const g=[a.K.Orange,a.K.Red,a.K.Yellow],v=(e,t,r)=>{const{AvailableSize:n,TotalSize:s,State:o,PDiskId:a,NodeId:u,StringifiedId:m,Path:v,Realtime:S,Type:f,Device:x}=e,w=[{label:"PDisk",value:null!==m&&void 0!==m?m:l.jX},{label:"State",value:o||"not available"},{label:"Type",value:f||"unknown"}];if(u&&w.push({label:"Node Id",value:u}),t&&w.push({label:"Host",value:t}),v&&w.push({label:"Path",value:v}),(0,c.kE)(s)&&w.push({label:"Available",value:`${(0,c.Uz)(n)} of ${(0,c.Uz)(s)}`}),S&&g.includes(S)&&w.push({label:"Realtime",value:S}),x&&g.includes(x)&&w.push({label:"Device",value:x}),r&&(0,i.D)(u)&&(0,i.D)(a)){const e=(0,d.ok)({nodeId:u,pDiskId:a});w.push({label:"Links",value:(0,h.jsx)(p.j,{title:"Developer UI",url:e})})}return w},S=e=>{let{data:t}=e;const r=(0,u.ix)(s.VH),a=(0,u.ix)(o.s),l=(0,i.D)(t.NodeId)?null===a||void 0===a?void 0:a.get(t.NodeId):void 0,d=n.useMemo((()=>v(t,l,r)),[t,l,r]);return(0,h.jsx)(m._P,{title:"PDisk",info:d,size:"s"})}},25747:(e,t,r)=>{r.d(t,{WQ:()=>M});var n=r(34706),s=r(74640);const o=r(78759).h.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async(e,t)=>{let{offset:r,limit:n,sortParams:s,filters:o,columnsIds:a,fetchData:i}=e,{signal:l}=t;try{return{data:await i({limit:n,offset:r,filters:o,sortParams:s,columnsIds:a,signal:l})}}catch(d){return{error:d}}},providesTags:["All"]})}}});var a=r(25665),i=r(55842),l=r(15327),d=r(5194);const u="left",c=!0,m=-1,p=41;const h=(0,r(99294).cn)("ydb-paginated-table");var g=r(10161);const v=e=>{let{children:t,className:r,height:n,width:s,align:o=u,resizeable:a}=e;return(0,g.jsx)("td",{className:h("row-cell",{align:o},r),style:{height:`${n}px`,width:`${s}px`,maxWidth:a?`${s}px`:void 0},children:t})},S=e=>{let{index:t,columns:r,height:n}=e;return(0,g.jsx)("tr",{className:h("row",{loading:!0}),children:r.map((e=>{var r;const s=null!==(r=e.resizeable)&&void 0!==r?r:c;return(0,g.jsx)(v,{height:n,width:e.width,align:e.align,className:e.className,resizeable:s,children:(0,g.jsx)(d.O,{className:h("row-skeleton"),style:{width:"80%",height:"50%"}})},`${e.name}${t}`)}))})},f=e=>{let{row:t,index:r,columns:n,getRowClassName:s,height:o}=e;const a=null===s||void 0===s?void 0:s(t);return(0,g.jsx)("tr",{className:h("row",a),children:n.map((e=>{var n;const s=null!==(n=e.resizeable)&&void 0!==n?n:c;return(0,g.jsx)(v,{height:o,width:e.width,align:e.align,className:e.className,resizeable:s,children:e.render({row:t,index:r})},`${e.name}${r}`)}))})},x=e=>{let{columns:t,children:r}=e;return(0,g.jsx)("tr",{className:h("row",{empty:!0}),children:(0,g.jsx)("td",{colSpan:t.length,className:h("td"),children:r})})};var w=r(37711);const N=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),b=(0,w.wZ)("ydb-paginated-table",{ru:N,en:{empty:"No data"}});const k=n.memo;const y=k((function(e){var t;let{id:r,chunkSize:s,calculatedCount:d,rowHeight:u,columns:c,fetchData:m,tableName:p,filters:h,sortParams:v,getRowClassName:w,renderErrorMessage:N,renderEmptyDataMessage:k,onDataFetched:y,isActive:D}=e;const[I,j]=n.useState(!0),[P]=(0,i.Rj)(),C={offset:r*s,limit:s,fetchData:m,filters:h,sortParams:v,columnsIds:c.map((e=>e.name)),tableName:p};o.useFetchTableChunkQuery(C,{skip:I||!D,pollingInterval:P});const{currentData:E,error:T}=o.endpoints.fetchTableChunk.useQueryState(C);n.useEffect((()=>{let e=0;return D&&I&&(e=window.setTimeout((()=>{j(!1)}),200)),()=>{window.clearTimeout(e)}}),[D,I]),n.useEffect((()=>{if(E&&D){const{total:e=0,found:t=0}=E;y(e,t)}}),[E,D,y]);const U=(null===E||void 0===E||null===(t=E.data)||void 0===t?void 0:t.length)||d;return(0,g.jsx)("tbody",{id:r.toString(),style:{height:U*u+"px",display:D?"table-row-group":"block"},children:(()=>{var e;if(!D)return null;if(!E){if(T){const e=T;return(0,g.jsx)(x,{columns:c,children:N?N(e):(0,g.jsx)(l.V,{error:e})})}return(0,a.c$)(U).map((e=>(0,g.jsx)(S,{columns:c,height:u,index:e},e)))}return null!==(e=E.data)&&void 0!==e&&e.length?E.data.map(((e,t)=>(0,g.jsx)(f,{index:t,row:e,columns:c,height:u,getRowClassName:w},t))):(0,g.jsx)(x,{columns:c,children:k?k():b("empty")})})()})}));function D(e){let{minWidth:t,maxWidth:r,getCurrentColumnWidth:s,onResize:o}=e;const a=n.useRef(null),[i,l]=n.useState(!1);return n.useEffect((()=>{const e=a.current;if(!e)return;let n,i,d;const u=function(e){let t,r=null;return function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];t=s,"number"!==typeof r&&(r=requestAnimationFrame((()=>{e(...t),r=null})))}}((e=>{if(I(e),"number"!==typeof n||"number"!==typeof i)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))}(i+s,t,r);a!==d&&(d=a,null===o||void 0===o||o(d))})),c=e=>{I(e),void 0!==d&&(null===o||void 0===o||o(d)),l(!1),n=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{i=s(),I(e),n=e.clientX,l(!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)}}),[o,t,r,s]),(0,g.jsx)("span",{ref:a,className:h("resize-handler",{resizing:i}),onClick:e=>I(e)})}function I(e){e.preventDefault(),e.stopPropagation()}const j=e=>{let{order:t}=e;return(0,g.jsx)("svg",{className:h("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"})})},P=e=>{let{sortOrder:t,sortable:r,defaultSortOrder:n}=e;return r?(0,g.jsx)("span",{className:h("sort-icon-container",{shadow:!t}),children:(0,g.jsx)(j,{order:t||n})}):null},C=e=>{var t;let{column:r,resizeable:s,sortOrder:o,defaultSortOrder:a,onSort:i,rowHeight:l,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 p=n.useCallback((()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),v=n.useCallback((e=>{null===c||void 0===c||c(r.name,e)}),[c,r.name]),S=null!==(t=r.header)&&void 0!==t?t:r.name,f={height:`${l}px`,width:`${r.width}px`,minWidth:s?`${r.width}px`:void 0,maxWidth:s?`${r.width}px`:void 0};return(0,g.jsxs)("th",{ref:m,className:h("head-cell-wrapper"),style:f,children:[(0,g.jsxs)("div",{className:h("head-cell",{align:r.align,sortable:r.sortable},r.className),onClick:()=>{r.sortable&&(null===i||void 0===i||i(r.name))},children:[(0,g.jsx)("div",{className:h("head-cell-content"),children:S}),(0,g.jsx)(P,{sortOrder:o,sortable:r.sortable,defaultSortOrder:a})]}),s?(0,g.jsx)(D,{maxWidth:r.resizeMaxWidth,minWidth:r.resizeMinWidth,getCurrentColumnWidth:p,onResize:v}):null]})},E=e=>{let{columns:t,onSort:r,onColumnsResize:s,defaultSortOrder:o=m,rowHeight:a=p}=e;const[i,l]=n.useState({}),d=e=>{let t={};if(e===i.columnId){if(i.sortOrder&&i.sortOrder!==o)return l(t),void(null===r||void 0===r||r(t));t={sortOrder:1===i.sortOrder?-1:1,columnId:e}}else t={sortOrder:o,columnId:e};null===r||void 0===r||r(t),l(t)};return(0,g.jsxs)(n.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:h("head"),children:(0,g.jsx)("tr",{children:t.map((e=>{var t;const r=i.columnId===e.name?i.sortOrder:void 0,n=s&&(null!==(t=e.resizeable)&&void 0!==t?t:c);return(0,g.jsx)(C,{column:e,resizeable:n,sortOrder:r,defaultSortOrder:o,onSort:d,rowHeight:a,onColumnsResize:s},e.name)}))})})]})};var T=r(76421);const U=1,G=e=>{let{limit:t,initialEntitiesCount:r,fetchData:o,filters:a,tableName:i,columns:l,getRowClassName:d,rowHeight:u=p,parentRef:c,initialSortParams:m,onColumnsResize:v,renderControls:S,renderErrorMessage:f,renderEmptyDataMessage:x,containerClassName:w}=e;const N=r||0,b=r||1,[k,D]=n.useState(m),[I,j]=n.useState(N),[P,C]=n.useState(b),[G,R]=n.useState(!0),M=n.useRef(null),L=(e=>{let{parentRef:t,tableRef:r,totalItems:s,rowHeight:o,chunkSize:a,overscanCount:i=U}=e;const l=n.useMemo((()=>Math.ceil(s/a)),[a,s]),[d,u]=n.useState(0),[c,m]=n.useState(Math.min(i,Math.max(l-1,0))),p=n.useCallback((()=>{const e=null===t||void 0===t?void 0:t.current,n=r.current;if(!e||!n)return null;const s=function(e,t){let r=e,n=0;for(;r&&r!==t;)n+=r.offsetTop,r=r.offsetParent;return n}(n,e),d=e.scrollTop,u=Math.max(d-s,0),c=u+e.clientHeight;return{start:Math.max(Math.floor(u/o/a)-i,0),end:Math.min(Math.floor(c/o/a)+i,Math.max(l-1,0))}}),[t,r,o,a,i,l]),h=n.useCallback((()=>{const e=p();e&&(u(e.start),m(e.end))}),[p]);return n.useEffect((()=>{const e=null===t||void 0===t?void 0:t.current;if(!e)return;const r=(0,T.throttle)(h,100,{leading:!0,trailing:!0});return e.addEventListener("scroll",r),()=>{e.removeEventListener("scroll",r),r.cancel()}}),[h,t]),n.useMemo((()=>{const e=Array(l).fill(!1);for(let t=d;t<=c;t++)e[t]=!0;return e}),[l,d,c])})({parentRef:c,tableRef:M,totalItems:P,rowHeight:u,chunkSize:t}),A=n.useMemo((()=>P?P%t||t:1),[P,t]),z=n.useCallback(((e,t)=>{j(e),C(t),R(!1)}),[]);n.useLayoutEffect((()=>{j(N),C(b),R(!0),null!==c&&void 0!==c&&c.current&&c.current.scrollTo(0,0)}),[a,b,N,c]);const V=()=>(0,g.jsxs)("table",{className:h("table"),children:[(0,g.jsx)(E,{columns:l,onSort:D,onColumnsResize:v}),L.map(((e,r)=>(0,g.jsx)(y,{id:r,calculatedCount:r===L.length-1?A:t,chunkSize:t,rowHeight:u,columns:l,fetchData:o,filters:a,tableName:i,sortParams:k,getRowClassName:d,renderErrorMessage:f,renderEmptyDataMessage:x,onDataFetched:z,isActive:e},r)))]});return(0,g.jsx)("div",{ref:M,className:h(null,w),children:S?(0,g.jsxs)(s.l,{children:[(0,g.jsx)(s.l.Controls,{children:S({inited:!G,totalEntities:I,foundEntities:P})}),(0,g.jsx)(s.l.Table,{children:V()})]}):V()})};var R=r(46154);function M(e){let{columnsWidthLSKey:t,columns:r,...n}=e;const[s,o]=(0,R.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,g.jsx)(G,{columns:a,onColumnsResize:o,containerClassName:h("resizeable-table-container"),...n})}},31580:(e,t,r)=>{r.d(t,{m:()=>u});var n=r(99294),s=r(43926),o=r(13467),a=r(10161);const i=(0,n.cn)("ydb-pool-bar"),l=e=>{let{data:t={}}=e;const{Usage:r=0}=t,n=Math.min(100*r,100),l=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(n);return(0,a.jsx)(s.f,{className:i({type:l}),content:(0,a.jsx)(o.A8,{data:t,className:i("popup-content")}),children:(0,a.jsx)("div",{style:{height:`${n}%`},className:i("value",{type:l})})})},d=(0,n.cn)("ydb-pools-graph"),u=e=>{let{pools:t=[]}=e;return(0,a.jsx)("div",{className:d(),children:t.map(((e,t)=>(0,a.jsx)(l,{data:e},t)))})}},20760:(e,t,r)=>{r.d(t,{y:()=>m});var n=r(53216),s=r(99294),o=r(38980),a=r(95440),i=r(73689),l=r(10161);const d=(0,s.cn)("progress-viewer"),u=e=>(0,o.uf)((0,o.W0)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m(e){let{value:t,capacity:r,formatValues:s=c,percents:o,className:u,size:m="xs",colorizeProgress:p,inverseColorize:h,warningThreshold:g=60,dangerThreshold:v=80,hideCapacity:S}=e;const f=(0,n.F)();let x=Math.round(parseFloat(String(t))/parseFloat(String(r))*100)||0;x=x>100?100:x;let w=t,N=r,b="/";o?(w=x+"%",N="",b=""):s&&([w,N]=s(Number(t),Number(r)));const k=(0,a.S)({fillWidth:x,warningThreshold:g,dangerThreshold:v,colorizeProgress:p,inverseColorize:h});p&&!(0,i.kE)(r)&&(x=100);const y={width:x+"%"};return(0,i.kE)(t)?(0,l.jsxs)("div",{className:d({size:m,theme:f,status:k},u),children:[(0,l.jsx)("div",{className:d("line"),style:y}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kE)(r)&&!S?`${w} ${b} ${N}`:w})]}):(0,l.jsx)("div",{className:`${d({size:m})} ${u} error`,children:"no data"})}},74116:(e,t,r)=>{r.d(t,{G:()=>d});var n=r(59769),s=r(71624),o=r(99294),a=r(46154),i=r(10161);const l=(0,o.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:t,columns:r,settings:o,wrapperClassName:d,...u}=e;const[c,m]=(0,a.M)(t),p=(0,n.B)(r,c),h={...o,defaultResizeable:!0};return(0,i.jsx)("div",{className:l(null,d),children:(0,i.jsx)(s.ZP,{theme:"yandex-cloud",columns:p,onResize:m,settings:h,...u})})}},76485:(e,t,r)=>{r.d(t,{o:()=>l});var n=r(34706),s=r(86357),o=r(99294),a=r(10161);const i=(0,o.cn)("ydb-search"),l=e=>{let{onChange:t,value:r="",width:o,className:l,debounce:d=200,placeholder:u}=e;const[c,m]=n.useState(r),p=n.useRef();n.useEffect((()=>{m((e=>e!==r?r:e))}),[r]);return(0,a.jsx)(s.o,{hasClear:!0,autoFocus:!0,style:{width:o},className:i(null,l),placeholder:u,value:c,onUpdate:e=>{m(e),window.clearTimeout(p.current),p.current=window.setTimeout((()=>{null===t||void 0===t||t(e)}),d)}})}},73287:(e,t,r)=>{r.d(t,{J:()=>m});var n=r(29254),s=r(96334),o=r(15268),a=r(14561),i=r(77468),l=r(99294),d=r(10161);const u=(0,l.cn)("ydb-status-icon"),c={[i.K.Blue]:n.Z,[i.K.Yellow]:s.Z,[i.K.Orange]:o.Z,[i.K.Red]:s.Z};function m(e){let{status:t=i.K.Grey,size:r="s",mode:n="color",className:s}=e;const o={state:t.toLowerCase(),size:r};return"icons"===n&&t in c?(0,d.jsx)(a.J,{className:u("status-icon",o,s),data:c[t]}):(0,d.jsx)("div",{className:u("status-color",o,s)})}},22877:(e,t,r)=>{r.d(t,{h:()=>l});var n=r(5194),s=r(99294),o=r(83658),a=r(10161);const i=(0,s.cn)("table-skeleton"),l=e=>{let{rows:t=2,delay:r=600,className:s}=e;const[l]=(0,o.$)(r);return(0,a.jsxs)("div",{className:i("wrapper",{hidden:!l},s),children:[(0,a.jsxs)("div",{className:i("row"),children:[(0,a.jsx)(n.O,{className:i("col-1")}),(0,a.jsx)(n.O,{className:i("col-2")}),(0,a.jsx)(n.O,{className:i("col-3")}),(0,a.jsx)(n.O,{className:i("col-4")}),(0,a.jsx)(n.O,{className:i("col-5")})]}),[...new Array(t)].map(((e,t)=>(0,a.jsx)("div",{className:i("row"),children:(0,a.jsx)(n.O,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},74640:(e,t,r)=>{r.d(t,{l:()=>i});var n=r(99294),s=r(22877),o=r(10161);const a=(0,n.cn)("ydb-table-with-controls-layout"),i=e=>{let{children:t,className:r}=e;return(0,o.jsx)("div",{className:a(null,r),children:t})};i.Controls=function(e){let{children:t,className:r}=e;return(0,o.jsx)("div",{className:a("controls-wrapper"),children:(0,o.jsx)("div",{className:a("controls",r),children:t})})},i.Table=function(e){let{children:t,loading:r,className:n}=e;return r?(0,o.jsx)(s.h,{className:a("loader")}):(0,o.jsx)("div",{className:a("table",n),children:t})}},56065:(e,t,r)=>{r.d(t,{X:()=>a});var n=r(67661),s=r(96183),o=r(10161);const a=e=>{let{value:t,onChange:r,className:a}=e;return(0,o.jsxs)(n.E,{value:t,onUpdate:r,className:a,children:[(0,o.jsx)(n.E.Option,{value:s.Uu.All,children:s.qU[s.Uu.All]}),(0,o.jsx)(n.E.Option,{value:s.Uu.SmallUptime,children:s.qU[s.Uu.SmallUptime]})]})}},46931:(e,t,r)=>{r.d(t,{a:()=>i});var n=r(2634),s=r(99294),o=r(10161);const a=(0,s.cn)("ydb-usage-label");function i(e){let{value:t,overloadThreshold:r=90,theme:s,...i}=e;return(0,o.jsxs)(n._,{theme:s,className:a({overload:Number(t)>=r}),...i,children:[t||0,"%"]})}},4893:(e,t,r)=>{r.d(t,{T:()=>C});var n=r(99294),s=r(90457),o=r(91890),a=r(67653),i=r(34706),l=r(2634),d=r(65e3),u=r(4969),c=r(77468),m=r(25665),p=r(27810),h=r(70340),g=r(53458),v=r(55842),S=r(73689),f=r(41591),x=r(90808),w=r(66970),N=r(75544),b=r(46878),k=r(38980);function y(e){let t;const r=(0,g.Iz)(e)?e.VDiskSlotId:e.VSlotId;return(0,m.D)(r)&&(0,m.D)(e.PDiskId)&&(0,m.D)(e.NodeId)?t=(0,b.By)(r,e.PDiskId,e.NodeId):(0,m.D)(e.NodeId)&&(0,g.Iz)(e)&&(t=(0,b.ax)(b.ZP.node,{id:e.NodeId,activeTab:N.pV},{pdiskId:e.PDiskId,vdiskId:(0,k.a2)(e.VDiskId)})),t}var D=r(10161);const I=(0,n.cn)("vdisk-storage-popup"),j=e=>{let{data:t}=e;const r=(0,g.Iz)(t),n=(0,v.ix)(d.VH),s=i.useMemo((()=>r?((e,t)=>{var r,n,s,o;const{NodeId:a,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:u,SatisfactionRank:p,DiskSpace:g,FrontQueues:v,Replicated:f,UnsyncedVDisks:w,AllocatedSize:N,ReadThroughput:b,WriteThroughput:k,StoragePoolName:y}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==u&&void 0!==u?u:"not available"}];var j,P;if(y&&I.push({label:"StoragePool",value:y}),p&&(null===(r=p.FreshRank)||void 0===r?void 0:r.Flag)!==c.K.Green&&I.push({label:"Fresh",value:null===(j=p.FreshRank)||void 0===j?void 0:j.Flag}),p&&(null===(n=p.LevelRank)||void 0===n?void 0:n.Flag)!==c.K.Green&&I.push({label:"Level",value:null===(P=p.LevelRank)||void 0===P?void 0:P.Flag}),p&&null!==(s=p.FreshRank)&&void 0!==s&&s.RankPercent&&I.push({label:"Fresh",value:p.FreshRank.RankPercent}),p&&null!==(o=p.LevelRank)&&void 0!==o&&o.RankPercent&&I.push({label:"Level",value:p.LevelRank.RankPercent}),g&&g!==c.K.Green&&I.push({label:"Space",value:g}),v&&v!==c.K.Green&&I.push({label:"FrontQueues",value:v}),f||I.push({label:"Replicated",value:"NO"}),w&&I.push({label:"UnsyncVDisks",value:w}),Number(N)&&I.push({label:"Allocated",value:(0,S.Uz)(N)}),Number(b)&&I.push({label:"Read",value:(0,S.Qt)(b)}),Number(k)&&I.push({label:"Write",value:(0,S.Qt)(k)}),t&&(0,m.D)(a)&&(0,m.D)(i)&&(0,m.D)(l)){const e=(0,h.yf)({nodeId:a,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,D.jsx)(x.j,{title:"Developer UI",url:e})})}return I})(t,n):((e,t)=>{const{NodeId:r,PDiskId:n,VSlotId:s,StoragePoolName:o}=e,a=[{label:"State",value:"not available"}];if(o&&a.push({label:"StoragePool",value:o}),a.push({label:"NodeId",value:null!==r&&void 0!==r?r:p.jX},{label:"PDiskId",value:null!==n&&void 0!==n?n:p.jX},{label:"VSlotId",value:null!==s&&void 0!==s?s:p.jX}),t&&(0,m.D)(r)&&(0,m.D)(n)&&(0,m.D)(s)){const e=(0,h.yf)({nodeId:r,pDiskId:n,vDiskSlotId:s});a.push({label:"Links",value:(0,D.jsx)(x.j,{title:"Developer UI",url:e})})}return a})(t,n)),[t,r,n]),o=(0,v.ix)(u.s),N=(0,m.D)(t.NodeId)?null===o||void 0===o?void 0:o.get(t.NodeId):void 0,b=i.useMemo((()=>r&&t.PDisk&&(0,w.b)(t.PDisk,N,n)),[t,N,r,n]),k=[];if("Donors"in t&&t.Donors){const e=t.Donors;for(const t of e)k.push({label:"VDisk",value:(0,D.jsx)(a.h,{to:y(t),children:t.StringifiedId})})}return(0,D.jsxs)("div",{className:I(),children:[t.DonorMode&&(0,D.jsx)(l._,{className:I("donor-label"),children:"Donor"}),(0,D.jsx)(f._P,{title:"VDisk",info:s,size:"s"}),b&&(0,D.jsx)(f._P,{title:"PDisk",info:b,size:"s"}),k.length>0&&(0,D.jsx)(f._P,{title:"Donors",info:k,size:"s"})]})},P=(0,n.cn)("ydb-vdisk-component"),C=e=>{let{data:t={},compact:r,inactive:n,showPopup:i,onShowPopup:l,onHidePopup:d,progressBarClassName:u}=e;const c=y(t);return(0,D.jsx)(o.I,{showPopup:i,onShowPopup:l,onHidePopup:d,popupContent:(0,D.jsx)(j,{data:t}),children:(0,D.jsx)("div",{className:P(),children:(0,D.jsx)(a.h,{to:c,className:P("content"),children:(0,D.jsx)(s.p,{diskAllocatedPercent:t.AllocatedPercent,severity:t.Severity,compact:r,inactive:n,className:u})})})})}},2387:(e,t,r)=>{r.d(t,{O5:()=>ne,O8:()=>q,eb:()=>H,EF:()=>z,cB:()=>$,Up:()=>L,gs:()=>B,OJ:()=>K,rh:()=>_,Fi:()=>J,qQ:()=>Y,A6:()=>M,iJ:()=>A,_5:()=>re,o9:()=>W,n2:()=>F,KO:()=>V,oY:()=>te,ek:()=>ee,As:()=>Q,TX:()=>X,VQ:()=>O,Zi:()=>Z});var n=r(71624),s=r(83797),o=r(16124),a=r(25665),i=r(99294),l=r(27810),d=r(38980),u=r(61734),c=r(73689),m=r(61168),p=r(92146),h=r(2194),g=r(75544),v=r(70340),S=r(96183),f=r(62508),x=r(13467),w=r(10161);const N=e=>{let{node:t,getNodeRef:r,database:n,statusForIcon:s}=e;if(!t.Host)return(0,w.jsx)("span",{children:"\u2014"});const o="ConnectStatus"===s?t.ConnectStatus:t.SystemState,a=!(0,S.TA)(t);let i;if(r){const e=r(t);i=e?(0,v.i1)(e):void 0}else if(t.NodeId){const e=(0,v.wq)(t.NodeId);i=(0,v.i1)(e)}const l=a?(0,g.a3)(t.NodeId,{database:null!==n&&void 0!==n?n:t.TenantName}):void 0;return(0,w.jsx)(m.l,{disabled:!a,content:(0,w.jsx)(x.bP,{data:t,nodeHref:i}),placement:["top","bottom"],behavior:h.x.Immediate,delayClosing:200,children:(0,w.jsx)(f.A,{name:t.Host,status:o,path:l,hasClipboardButton:!0})})};var b=r(31580),k=r(20760),y=r(26836),D=r(55973);const I=(0,i.cn)("tablets-statistic"),j=e=>{let{tablets:t=[],database:r,nodeId:n}=e;const s=(e=>e.map((e=>({label:(0,l.qV)(e.Type),type:e.Type,count:e.Count,state:(0,D.FW)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(t);return(0,w.jsx)("div",{className:I(),children:s.map(((e,t)=>{var s;const o=(0,g.a3)(n,{database:r},g.IA),a=`${e.label}: ${e.count}`,i=I("tablet",{state:null===(s=e.state)||void 0===s?void 0:s.toLowerCase()});return(0,w.jsx)(y.rU,{to:o,className:i,children:a},t)}))})};var P=r(46931),C=r(60918),E=r(5628),T=r(83627);function U(e){return(0,T.zm)((0,T.BO)(e,1))}function G(e){const t=(0,T.BO)(e,1);return(Number(t)<=0?"":"+")+(0,T.zm)(t)}const R=(0,i.cn)("ydb-nodes-columns");function M(){return{name:C.xv.NodeId,header:"#",width:80,render:e=>{let{row:t}=e;return t.NodeId},align:n.ZP.RIGHT}}function L(e){let{getNodeRef:t,database:r}=e,{statusForIcon:s="SystemState"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{name:C.xv.Host,header:C.Pr.Host,render:e=>{let{row:n}=e;return(0,w.jsx)(N,{node:n,getNodeRef:t,database:r,statusForIcon:s})},width:350,align:n.ZP.LEFT}}function A(){return{name:C.xv.NodeName,header:C.Pr.NodeName,align:n.ZP.LEFT,render:e=>{let{row:t}=e;return t.NodeName||l.jX},width:200}}function z(){return{name:C.xv.DC,header:C.Pr.DC,align:n.ZP.LEFT,render:e=>{let{row:t}=e;return t.DC||l.jX},width:60}}function V(){return{name:C.xv.Rack,header:C.Pr.Rack,align:n.ZP.LEFT,render:e=>{let{row:t}=e;return t.Rack||l.jX},width:100}}function Z(){return{name:C.xv.Version,header:C.Pr.Version,width:200,align:n.ZP.LEFT,render:e=>{let{row:t}=e;return(0,w.jsx)(m.l,{content:t.Version,children:t.Version})}}}function O(){return{name:C.xv.Uptime,header:C.Pr.Uptime,sortAccessor:e=>{let{StartTime:t}=e;return t?-t:0},render:e=>{let{row:t}=e;return t.Uptime},align:n.ZP.RIGHT,width:110}}function F(){return{name:C.xv.RAM,header:C.Pr.RAM,sortAccessor:e=>{let{MemoryUsed:t=0}=e;return Number(t)},defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:t}=e;const[r,n]=(0,c.kE)(t.MemoryUsed)&&(0,c.kE)(t.MemoryLimit)?(0,d.QO)(Number(t.MemoryUsed),Number(t.MemoryLimit),"gb",void 0,!0):[0,0];return(0,w.jsx)(m.l,{placement:["top","auto"],fullWidth:!0,content:(0,w.jsxs)(s.w,{responsive:!0,children:[(0,w.jsx)(s.w.Item,{name:(0,E.Z)("field_memory-used"),children:r}),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("field_memory-limit"),children:n})]}),children:(0,w.jsx)(k.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:(e,t)=>(0,d.QO)(e,t,"gb",void 0,!0),className:R("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:n.ZP.LEFT,width:80,resizeMinWidth:40}}function _(){return{name:C.xv.Memory,header:C.Pr.Memory,defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryStats?(0,w.jsx)(p.O,{formatValues:d.q3,stats:t.MemoryStats}):(0,w.jsx)(k.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:d.q3,colorizeProgress:!0})},align:n.ZP.LEFT,width:300,resizeMinWidth:170}}function W(){return{name:C.xv.Pools,header:C.Pr.Pools,sortAccessor:e=>{let{PoolStats:t=[]}=e;return Math.max(...t.map((e=>{let{Usage:t}=e;return Number(t)})))},defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.PoolStats?(0,w.jsx)(b.m,{pools:t.PoolStats}):l.jX},align:n.ZP.LEFT,width:80,resizeMinWidth:60}}function H(){return{name:C.xv.CPU,header:C.Pr.CPU,sortAccessor:e=>{let{PoolStats:t=[]}=e;return Math.max(...t.map((e=>{let{Usage:t}=e;return Number(t)})))},defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:t}=e;if(!t.PoolStats)return l.jX;let r=(0,c.kE)(t.CoresUsed)&&(0,c.kE)(t.CoresTotal)?t.CoresUsed/t.CoresTotal:void 0;if(void 0===r){let e=0;r=t.PoolStats.reduce(((t,r)=>(e+=Number(r.Threads),t+Number(r.Usage)*Number(r.Threads))),0),r/=e}return(0,w.jsx)(m.l,{placement:["top","auto"],fullWidth:!0,content:(0,w.jsx)(s.w,{responsive:!0,children:t.PoolStats.map((e=>(0,c.kE)(e.Usage)?(0,w.jsx)(s.w.Item,{name:e.Name,children:(0,x.gK)("Usage",e.Usage).value},e.Name):null))}),children:(0,w.jsx)(k.y,{className:R("column-cpu"),value:r,capacity:1,colorizeProgress:!0,percents:!0})})},align:n.ZP.LEFT,width:80,resizeMinWidth:40}}function B(){return{name:C.xv.LoadAverage,header:C.Pr.LoadAverage,sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,w.jsx)(k.y,{value:t.LoadAveragePercents&&t.LoadAveragePercents.length>0?t.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100})},align:n.ZP.LEFT,width:170,resizeMinWidth:170}}function K(){return{name:C.xv.Load,header:C.Pr.Load,sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,w.jsx)(P.a,{value:t.LoadAveragePercents[0].toFixed(),theme:(0,o.w)(t.LoadAveragePercents[0])}):l.jX},align:n.ZP.LEFT,width:80,resizeMinWidth:70}}function $(){return{name:C.xv.DiskSpaceUsage,header:C.Pr.DiskSpaceUsage,render:e=>{let{row:t}=e;return(0,a.D)(t.DiskSpaceUsage)?(0,w.jsx)(P.a,{value:Math.floor(t.DiskSpaceUsage),theme:(0,u.H)(t.DiskSpaceUsage)}):l.jX},align:n.ZP.LEFT,width:115,resizeMinWidth:75}}function Q(){return{name:C.xv.TotalSessions,header:C.Pr.TotalSessions,render:e=>{var t;let{row:r}=e;return null!==(t=r.TotalSessions)&&void 0!==t?t:l.jX},align:n.ZP.RIGHT,width:100}}function X(e){let{database:t}=e;return{name:C.xv.Tablets,header:C.Pr.Tablets,width:500,resizeMinWidth:500,render:e=>{let{row:r}=e;return r.Tablets?(0,w.jsx)(j,{database:null!==t&&void 0!==t?t:r.TenantName,nodeId:r.NodeId,tablets:r.Tablets}):l.jX},align:n.ZP.LEFT,sortable:!1}}function J(){return{name:C.xv.Missing,header:C.Pr.Missing,render:e=>{let{row:t}=e;return t.Missing},align:n.ZP.CENTER,defaultOrder:n.ZP.DESCENDING}}function q(){return{name:C.xv.Connections,header:C.Pr.Connections,render:e=>{let{row:t}=e;return(0,c.kE)(t.Connections)?t.Connections:l.jX},align:n.ZP.RIGHT,width:130}}function Y(){return{name:C.xv.NetworkUtilization,header:C.Pr.NetworkUtilization,render:e=>{let{row:t}=e;const{NetworkUtilization:r,NetworkUtilizationMin:n=0,NetworkUtilizationMax:o=0}=t;return(0,c.kE)(r)?(0,w.jsx)(m.l,{placement:["top","auto"],fullWidth:!0,content:(0,w.jsxs)(s.w,{responsive:!0,children:[(0,w.jsx)(s.w.Item,{name:(0,E.Z)("sum"),children:(0,d.T3)(r)},"NetworkUtilization"),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("min"),children:(0,d.T3)(n)},"NetworkUtilizationMin"),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("max"),children:(0,d.T3)(o)},"NetworkUtilizationMax")]}),children:(0,d.T3)(r)}):l.jX},align:n.ZP.RIGHT,width:110}}function ee(){return{name:C.xv.SendThroughput,header:C.Pr.SendThroughput,render:e=>{let{row:t}=e;return(0,c.kE)(t.SendThroughput)?(0,c.Qt)(t.SendThroughput):l.jX},align:n.ZP.RIGHT,width:110}}function te(){return{name:C.xv.ReceiveThroughput,header:C.Pr.ReceiveThroughput,render:e=>{let{row:t}=e;return(0,c.kE)(t.ReceiveThroughput)?(0,c.Qt)(t.ReceiveThroughput):l.jX},align:n.ZP.RIGHT,width:110}}function re(){return{name:C.xv.PingTime,header:C.Pr.PingTime,render:e=>{let{row:t}=e;const{PingTimeUs:r,PingTimeMinUs:n=0,PingTimeMaxUs:o=0}=t;return(0,c.kE)(r)?(0,w.jsx)(m.l,{placement:["top","auto"],fullWidth:!0,content:(0,w.jsxs)(s.w,{responsive:!0,children:[(0,w.jsx)(s.w.Item,{name:(0,E.Z)("avg"),children:U(r)},"PingTimeUs"),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("min"),children:U(n)},"PingTimeMinUs"),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("max"),children:U(o)},"PingTimeMaxUs")]}),children:U(r)}):l.jX},align:n.ZP.RIGHT,width:110}}function ne(){return{name:C.xv.ClockSkew,header:C.Pr.ClockSkew,render:e=>{let{row:t}=e;const{ClockSkewUs:r,ClockSkewMinUs:n=0,ClockSkewMaxUs:o=0}=t;return(0,c.kE)(r)?(0,w.jsx)(m.l,{placement:["top","auto"],fullWidth:!0,content:(0,w.jsxs)(s.w,{responsive:!0,children:[(0,w.jsx)(s.w.Item,{name:(0,E.Z)("avg"),children:G(r)},"ClockSkewUs"),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("min"),children:G(n)},"ClockSkewMinUs"),(0,w.jsx)(s.w.Item,{name:(0,E.Z)("max"),children:G(o)},"ClockSkewMaxUs")]}),children:G(r)}):l.jX},align:n.ZP.RIGHT,width:110}}},60918:(e,t,r)=>{r.d(t,{Gd:()=>c,Ke:()=>m,Pr:()=>a,WN:()=>d,t5:()=>s,ws:()=>l,xv:()=>o});var n=r(5628);const s="nodesTableColumnsWidth",o={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},a={get NodeId(){return(0,n.Z)("node-id")},get Host(){return(0,n.Z)("host")},get Database(){return(0,n.Z)("database")},get NodeName(){return(0,n.Z)("node-name")},get DC(){return(0,n.Z)("dc")},get Rack(){return(0,n.Z)("rack")},get Version(){return(0,n.Z)("version")},get Uptime(){return(0,n.Z)("uptime")},get Memory(){return(0,n.Z)("memory")},get RAM(){return(0,n.Z)("ram")},get Pools(){return(0,n.Z)("pools")},get CPU(){return(0,n.Z)("cpu")},get LoadAverage(){return(0,n.Z)("load-average")},get Load(){return(0,n.Z)("load")},get DiskSpaceUsage(){return(0,n.Z)("disk-usage")},get TotalSessions(){return(0,n.Z)("sessions")},get Connections(){return(0,n.Z)("connections")},get NetworkUtilization(){return(0,n.Z)("utilization")},get SendThroughput(){return(0,n.Z)("send")},get ReceiveThroughput(){return(0,n.Z)("receive")},get PingTime(){return(0,n.Z)("ping")},get ClockSkew(){return(0,n.Z)("skew")},get Missing(){return(0,n.Z)("missing")},get Tablets(){return(0,n.Z)("tablets")},get PDisks(){return(0,n.Z)("pdisks")}},i={get NodeId(){return(0,n.Z)("node-id")},get Host(){return(0,n.Z)("host")},get NodeName(){return(0,n.Z)("node-name")},get Database(){return(0,n.Z)("database")},get DiskSpaceUsage(){return(0,n.Z)("disk-usage")},get DC(){return(0,n.Z)("dc")},get Rack(){return(0,n.Z)("rack")},get Missing(){return(0,n.Z)("missing")},get Uptime(){return(0,n.Z)("uptime")},get Version(){return(0,n.Z)("version")},get SystemState(){return(0,n.Z)("system-state")},get ConnectStatus(){return(0,n.Z)("connect-status")},get NetworkUtilization(){return(0,n.Z)("network-utilization")},get ClockSkew(){return(0,n.Z)("clock-skew")},get PingTime(){return(0,n.Z)("ping-time")}};function l(e){return i[e]}const d={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},u={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function c(e){return u[e]}function m(e){return Boolean(c(e))}},5628:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(37711);const s=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),o=(0,n.wZ)("ydb-nodes-columns",{en:s})},98530:(e,t,r)=>{r.d(t,{l:()=>g});var n=r(34706),s=r(90457),o=r(91890),a=r(67653),i=r(66970),l=r(4893),d=r(46878),u=r(25665),c=r(99294),m=r(14418),p=r(10161);const h=(0,c.cn)("pdisk-storage"),g=e=>{let{data:t={},vDisks:r,showPopup:c,onShowPopup:g,onHidePopup:v,className:S,progressBarClassName:f,viewContext:x}=e;const{NodeId:w,PDiskId:N}=t,b=(0,u.D)(w)&&(0,u.D)(N),k=n.useRef(null);let y;return b&&(y=(0,d.ds)(N,w)),(0,p.jsxs)("div",{className:h(null,S),ref:k,children:[null!==r&&void 0!==r&&r.length?(0,p.jsx)("div",{className:h("vdisks"),children:r.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.T,{data:e,inactive:!(0,m.XW)(e,x),compact:!0})},e.StringifiedId)))}):null,(0,p.jsx)(o.I,{showPopup:c,anchorRef:k,onShowPopup:g,onHidePopup:v,popupContent:(0,p.jsx)(i.J,{data:t}),children:(0,p.jsxs)(a.h,{to:y,className:h("content"),children:[(0,p.jsx)(s.p,{diskAllocatedPercent:t.AllocatedPercent,severity:t.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:t.Type})]})})]})}},96635:(e,t,r)=>{r.d(t,{V:()=>ne,m:()=>re});var n=r(34706),s=r(51553),o=r(71624),a=r(2194),i=r(2634),l=r(16318),d=r(14561),u=r(61168),c=r(67653),m=r(73287),p=r(46931),h=r(38980),g=r(53458),v=r(99294),S=r(10161);const f=(0,v.cn)("stack"),x=e=>{let{children:t,className:r}=e;return(0,S.jsx)("div",{className:f(null,r),children:n.Children.map(t,((e,t)=>n.isValidElement(e)?(0,S.jsx)("div",{className:f("layer"),style:{"--ydb-stack-level":t},children:e}):null))})};var w=r(4893);function N(e){let{data:t,className:r,stackClassName:n,...s}=e;const{Donors:o,...a}=t||{},i=o&&o.length>0?(0,S.jsxs)(x,{className:n,children:[(0,S.jsx)(w.T,{data:a,...s}),o.map((e=>{const t=(0,g.Iz)(e);return(0,S.jsx)(w.T,{data:e,...s},(0,h.a2)(t?e.VDiskId:e))}))]}):(0,S.jsx)(w.T,{data:t,...s});return(0,S.jsx)("div",{className:r,children:i})}var b=r(46878),k=r(25665),y=r(27810),D=r(61734),I=r(83627),j=r(73689),P=r(75246),C=r(79777),E=r(98530),T=r(14418);const U=(0,v.cn)("ydb-storage-disks"),G=300;function R(e){let{vDisks:t=[],viewContext:r}=e;const[s,o]=n.useState(),{theme:{spaceBaseSize:a}}=(0,P.l)();if(!t.length)return null;const i=(G-a*(t.length-1))/t.length;return(0,S.jsxs)("div",{className:U(null),children:[(0,S.jsx)(C.k,{direction:"row",gap:1,grow:!0,style:{width:G},children:null===t||void 0===t?void 0:t.map((e=>(0,S.jsx)(M,{vDisk:e,inactive:!(0,T.XW)(e,r),highlightedVDisk:s,setHighlightedVDisk:o,unavailableVDiskWidth:i},e.StringifiedId)))}),(0,S.jsx)("div",{className:U("pdisks-wrapper"),children:null===t||void 0===t?void 0:t.map((e=>{var t;return(0,S.jsx)(L,{vDisk:e,highlightedVDisk:s,setHighlightedVDisk:o},null===e||void 0===e||null===(t=e.PDisk)||void 0===t?void 0:t.StringifiedId)}))})]})}function M(e){let{vDisk:t,highlightedVDisk:r,inactive:n,setHighlightedVDisk:s,unavailableVDiskWidth:o}=e;const a={...t,PDisk:void 0},i=t.StringifiedId,l=(0,k.D)(a.AllocatedSize)?void 0:o,d=Number(a.AllocatedSize)||1;return(0,S.jsx)("div",{style:{flexGrow:d,minWidth:l},className:U("vdisk-item"),children:(0,S.jsx)(w.T,{data:a,compact:!0,inactive:n,showPopup:r===i,onShowPopup:()=>s(i),onHidePopup:()=>s(void 0),progressBarClassName:U("vdisk-progress-bar")})})}function L(e){let{vDisk:t,highlightedVDisk:r,setHighlightedVDisk:n}=e;const s=t.StringifiedId;return t.PDisk?(0,S.jsx)(E.l,{className:U("pdisk-item"),progressBarClassName:U("pdisk-progress-bar"),data:t.PDisk,showPopup:r===s,onShowPopup:()=>n(s),onHidePopup:()=>n(void 0)}):null}var A=r(50791),z=r(78090);const V=(0,v.cn)("ydb-storage-groups-columns"),Z={name:z.tn.PoolName,header:z.G0.PoolName,width:250,render:e=>{let{row:t}=e;return t.PoolName?(0,S.jsx)(u.l,{content:t.PoolName,placement:["right"],behavior:a.x.Immediate,className:V("pool-name-wrapper"),children:(0,S.jsx)("span",{className:V("pool-name"),children:t.PoolName})}):y.jX},align:o.ZP.LEFT},O={name:z.tn.MediaType,header:z.G0.MediaType,width:100,resizeMinWidth:100,align:o.ZP.LEFT,render:e=>{let{row:t}=e;return(0,S.jsxs)(n.Fragment,{children:[(0,S.jsx)(i._,{children:t.MediaType||"\u2014"}),"\xa0",t.Encryption&&(0,S.jsx)(l.J,{content:(0,A.Z)("encrypted"),placement:"right",behavior:a.x.Immediate,children:(0,S.jsx)(i._,{children:(0,S.jsx)(d.J,{data:s.Z,size:18})})})]})},sortable:!1},F={name:z.tn.Erasure,header:z.G0.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:e=>{let{row:t}=e;return t.ErasureSpecies?t.ErasureSpecies:"-"},align:o.ZP.LEFT},_={name:z.tn.Degraded,header:z.G0.Degraded,width:110,resizeMinWidth:110,render:e=>{let{row:t}=e;return t.Degraded?(0,S.jsxs)(i._,{theme:(0,T._O)(t),children:["Degraded: ",t.Degraded]}):"-"},align:o.ZP.LEFT,defaultOrder:o.ZP.DESCENDING},W={name:z.tn.Usage,header:z.G0.Usage,width:85,resizeMinWidth:75,render:e=>{let{row:t}=e;return(0,k.D)(t.Usage)?(0,S.jsx)(p.a,{value:Math.floor(t.Usage),theme:(0,D.H)(t.Usage)}):y.jX},align:o.ZP.LEFT},H={name:z.tn.DiskSpaceUsage,header:z.G0.DiskSpaceUsage,width:115,resizeMinWidth:75,render:e=>{let{row:t}=e;return(0,k.D)(t.DiskSpaceUsage)?(0,S.jsx)(p.a,{value:Math.floor(t.DiskSpaceUsage),theme:(0,D.H)(t.DiskSpaceUsage)}):y.jX},align:o.ZP.LEFT},B={name:z.tn.GroupId,header:z.G0.GroupId,width:130,render:e=>{let{row:t}=e;return t.GroupId?(0,S.jsx)(c.h,{className:V("group-id"),to:(0,b.Uu)(t.GroupId),children:t.GroupId}):"-"},sortAccessor:e=>Number(e.GroupId),align:o.ZP.RIGHT},K={name:z.tn.Used,header:z.G0.Used,width:100,render:e=>{let{row:t}=e;return(0,j.Uz)(t.Used,!0)},align:o.ZP.RIGHT},$={name:z.tn.Limit,header:z.G0.Limit,width:100,render:e=>{let{row:t}=e;return(0,j.Uz)(t.Limit)},align:o.ZP.RIGHT},Q={name:z.tn.DiskSpace,header:z.G0.DiskSpace,width:70,render:e=>{let{row:t}=e;return(0,S.jsx)(m.J,{status:t.DiskSpace})},align:o.ZP.CENTER},X={name:z.tn.Read,header:z.G0.Read,width:100,render:e=>{let{row:t}=e;return t.Read?(0,j.Qt)(t.Read):"-"},align:o.ZP.RIGHT},J={name:z.tn.Write,header:z.G0.Write,width:100,render:e=>{let{row:t}=e;return t.Write?(0,j.Qt)(t.Write):"-"},align:o.ZP.RIGHT},q={name:z.tn.Latency,header:z.G0.Latency,width:100,render:e=>{let{row:t}=e;return(0,k.D)(t.LatencyPutTabletLogMs)?(0,I.zm)(t.LatencyPutTabletLogMs):y.jX},align:o.ZP.RIGHT},Y={name:z.tn.AllocationUnits,header:z.G0.AllocationUnits,width:150,render:e=>{let{row:t}=e;return(0,k.D)(t.AllocationUnits)?(0,h.uf)(t.AllocationUnits):y.jX},align:o.ZP.RIGHT},ee=e=>({name:z.tn.VDisks,header:z.G0.VDisks,className:V("vdisks-column"),render:t=>{var r;let{row:n}=t;return(0,S.jsx)("div",{className:V("vdisks-wrapper"),children:null===(r=n.VDisks)||void 0===r?void 0:r.map((t=>(0,S.jsx)(N,{data:t,inactive:!(0,T.XW)(t,null===e||void 0===e?void 0:e.viewContext),className:V("vdisks-item")},t.StringifiedId)))})},align:o.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),te=e=>({name:z.tn.VDisksPDisks,header:z.G0.VDisksPDisks,className:V("disks-column"),render:t=>{let{row:r}=t;return(0,S.jsx)(R,{vDisks:r.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext})},align:o.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),re=()=>[B,O,F,W,K,$].map((e=>({...e,sortable:!1}))),ne=e=>[B,Z,O,F,_,W,H,K,$,Q,X,J,q,Y,ee(e),te(e)].map((e=>({...e,sortable:(0,z.cz)(e.name)})))},78090:(e,t,r)=>{r.d(t,{nu:()=>u,h2:()=>S,Rt:()=>c,tn:()=>d,G0:()=>m,Ty:()=>i,r8:()=>g,j0:()=>l,re:()=>x,cz:()=>w,Hx:()=>v});var n=r(75475),s=r(37711);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-usage":"Disk 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"}'),a=(0,s.wZ)("ydb-storage-groups-columns",{en:o}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded"},u=["GroupId","PoolName","MediaType","Erasure","Used","Limit","Usage","Read","Write","VDisks"],c=["GroupId"],m={get PoolName(){return a("pool-name")},get MediaType(){return a("type")},get Erasure(){return a("erasure")},get GroupId(){return a("group-id")},get Used(){return a("used")},get Limit(){return a("limit")},get Usage(){return a("usage")},get DiskSpaceUsage(){return a("disk-usage")},get DiskSpace(){return a("space")},get Read(){return a("read")},get Write(){return a("write")},get Latency(){return a("latency")},get AllocationUnits(){return a("allocation-units")},get VDisks(){return a("vdisks")},get VDisksPDisks(){return a("vdisks-pdisks")},get Degraded(){return a("missing-disks")}},p={get GroupId(){return a("group-id")},get Erasure(){return a("erasure")},get Usage(){return a("usage")},get DiskSpaceUsage(){return a("disk-usage")},get PoolName(){return a("pool-name")},get Kind(){return a("type")},get Encryption(){return a("encryption")},get MediaType(){return a("type")},get MissingDisks(){return a("missing-disks")},get State(){return a("state")},get Latency(){return a("latency")}},h=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],g=h.map((e=>({value:e,content:p[e]}))),v=n.z.custom((e=>h.includes(e))).catch(void 0),S={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"]},f={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded"};function x(e){return f[e]}function w(e){return Boolean(x(e))}},50791:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(37711);const s=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"}'),a=(0,n.wZ)("ydb-storage-groups",{ru:o,en:s})},58095:(e,t,r)=>{r.d(t,{V:()=>qe});var n=r(27810),s=r(55842),o=r(34706),a=r(87149),i=r(48653),l=r(74640),d=r(39202),u=r(89085),c=r(53366),m=r(23795),p=r(26390),h=r(14325),g=r(76485),v=r(56065),S=r(78090),f=r(75475),x=r(60918);const w="storageNodesColumnsWidth",N="storageNodesSelectedColumns",b=["NodeId","Host","DC","Rack","Pools","Uptime","PDisks"],k=["NodeId"],y=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],D=y.map((e=>({value:e,content:(0,x.ws)(e)}))),I=f.z.custom((e=>y.includes(e))).catch(void 0);var j=r(67661),P=r(34695),C=r(10161);const E={[P.d.groups]:"Groups",[P.d.nodes]:"Nodes"},T=e=>{let{value:t,onChange:r}=e;return(0,C.jsxs)(j.E,{value:t,onUpdate:r,qa:"storage-type-filter",children:[(0,C.jsx)(j.E.Option,{value:P.d.groups,children:E[P.d.groups]}),(0,C.jsx)(j.E.Option,{value:P.d.nodes,children:E[P.d.nodes]})]})},U={[P.G.all]:"All",[P.G.missing]:"Degraded",[P.G.space]:"Out of Space"},G=e=>{let{value:t,onChange:r}=e;return(0,C.jsxs)(j.E,{value:t,onUpdate:r,qa:"storage-visible-entities-filter",children:[(0,C.jsx)(j.E.Option,{value:P.G.missing,children:U[P.G.missing]}),(0,C.jsx)(j.E.Option,{value:P.G.space,children:U[P.G.space]}),(0,C.jsx)(j.E.Option,{value:P.G.all,children:U[P.G.all]})]})};var R=r(37711);const M=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"}'),L=(0,R.wZ)("ydb-storage",{en:M});var A=r(71037),z=r(15327),V=r(99294);const Z=(0,V.cn)("global-storage"),O=e=>403===e.status?(0,C.jsx)(A.J,{position:"left"}):(0,C.jsx)(z.V,{error:e});var F=r(99495);const _=f.z.nativeEnum(P.G).catch(P.G.all),W=f.z.nativeEnum(P.d).catch(P.d.groups);var H=r(96183);function B(){var e;const[t,r]=(0,F.useQueryParams)({type:F.StringParam,visible:F.StringParam,search:F.StringParam,uptimeFilter:F.StringParam,storageNodesGroupBy:F.StringParam,storageGroupsGroupBy:F.StringParam}),n=W.parse(t.type),s=_.parse(t.visible),o=null!==(e=t.search)&&void 0!==e?e:"",a=H.U8.parse(t.uptimeFilter),i=S.Hx.parse(t.storageGroupsGroupBy),l=I.parse(t.storageNodesGroupBy),d=e=>{r({visible:e},"replaceIn")},u=e=>{r({uptimeFilter:e},"replaceIn")};return{storageType:n,visibleEntities:s,searchValue:o,nodesUptimeFilter:a,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{r({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{r({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{r({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{r({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(H.Uu.All)}}}function K(e){let{withTypeSelector:t,withGroupBySelect:r,entitiesCountCurrent:n,entitiesCountTotal:s,entitiesLoading:a,columnsToSelect:i,handleSelectedColumnsUpdate:l}=e;const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:f,handleTextFilterChange:x,handleStorageTypeChange:w,handleVisibleEntitiesChange:N,handleStorageGroupsGroupByParamChange:b}=B();return(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(g.o,{value:d,onChange:x,placeholder:L("controls_groups-search-placeholder"),className:Z("search")}),t&&(0,C.jsx)(T,{value:u,onChange:w}),r?null:(0,C.jsx)(G,{value:v,onChange:N}),(0,C.jsx)(c.N,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),r?(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(m.x,{variant:"body-2",children:L("controls_group-by-placeholder")}),(0,C.jsx)(p.P,{hasClear:!0,placeholder:"-",width:150,defaultValue:f?[f]:void 0,onUpdate:e=>{b(e[0])},options:S.r8})]}):null,(0,C.jsx)(h.C,{label:L("groups"),loading:a,total:s,current:n})]})}function $(e){let{withTypeSelector:t,withGroupBySelect:r,entitiesCountCurrent:n,entitiesCountTotal:s,entitiesLoading:a,columnsToSelect:i,handleSelectedColumnsUpdate:l}=e;const{searchValue:d,storageType:u,visibleEntities:S,nodesUptimeFilter:f,storageNodesGroupByParam:x,handleTextFilterChange:w,handleStorageTypeChange:N,handleVisibleEntitiesChange:b,handleUptimeFilterChange:k,handleStorageNodesGroupByParamChange:y}=B();return(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(g.o,{value:d,onChange:w,placeholder:L("controls_nodes-search-placeholder"),className:Z("search")}),t&&(0,C.jsx)(T,{value:u,onChange:N}),r?null:(0,C.jsx)(G,{value:S,onChange:b}),r?null:(0,C.jsx)(v.X,{value:f,onChange:k}),(0,C.jsx)(c.N,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),r?(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(m.x,{variant:"body-2",children:L("controls_group-by-placeholder")}),(0,C.jsx)(p.P,{hasClear:!0,placeholder:"-",width:150,defaultValue:x?[x]:void 0,onUpdate:e=>{y(e[0])},options:D})]}):null,(0,C.jsx)(h.C,{label:L("nodes"),loading:a,total:s,current:n})]})}var Q=r(25747),X=r(72616),J=r(90205),q=r(91538);const Y=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),ee=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"}'),te=(0,R.wZ)("ydb-storage-empty-filter",{ru:ee,en:Y}),re=e=>{let{title:t,message:r=te("default_message"),showAll:n=te("default_button_label"),onShowAll:s}=e;return(0,C.jsx)(J.u,{image:(0,C.jsx)(q.Q,{name:"thumbsUp"}),position:"left",title:t,description:r,actions:s&&[(0,C.jsx)(X.z,{onClick:s,children:n},"show-all")]})};var ne=r(50791);const se=e=>{let t,{visibleEntities:r,onShowAll:n}=e;return r===P.G.space&&(t=(0,ne.Z)("empty.out_of_space")),r===P.G.missing&&(t=(0,ne.Z)("empty.degraded")),t?(0,C.jsx)(re,{title:t,showAll:(0,ne.Z)("show_all"),onShowAll:n}):null};var oe=r(55993),ae=r(89991),ie=r(83023);const le=e=>{let{columns:t,database:r,nodeId:n,groupId:s,pDiskId:a,filterGroup:l,filterGroupBy:u,searchValue:c,visibleEntities:m,onShowAll:p,parentRef:h,renderControls:g,renderErrorMessage:v,initialEntitiesCount:f}=e;const x=(0,d.rU)(),w=(0,d.tS)(),N=(b=w,o.useCallback((async e=>{const{limit:t,offset:r,sortParams:n,filters:s,columnsIds:o}=e,{sortOrder:a,columnId:i}=null!==n&&void 0!==n?n:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==s&&void 0!==s?s:{},v=(0,S.re)(i),f=v?(0,ae.A)(v,a):void 0,x=(0,ie.w)(o,S.h2),{groups:w,found:N,total:k}=await(0,oe.R)({limit:t,offset:r,sort:f,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:x,shouldUseGroupsHandler:b});return{data:w||[],found:N||0,total:k||0}}),[b]));var b;const k=o.useMemo((()=>({searchValue:c,visibleEntities:m,database:r,nodeId:n,groupId:s,pDiskId:a,filterGroup:l,filterGroupBy:u})),[c,m,r,n,s,a,l,u]);return(0,C.jsx)(i.s,{loading:!x,children:(0,C.jsx)(Q.WQ,{columnsWidthLSKey:S.Ty,parentRef:h,columns:t,fetchData:N,limit:50,initialEntitiesCount:f,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:()=>m!==P.G.all?(0,C.jsx)(se,{onShowAll:p,visibleEntities:m}):(0,ne.Z)("empty.default"),filters:k,tableName:"storage-groups"})})};var de=r(97485),ue=r(96635);function ce(e){return o.useMemo((()=>(0,ue.V)({viewContext:e})),[e])}function me(e){let{visibleEntities:t,viewContext:r}=e;const n=ce(r),s=o.useMemo((()=>t===P.G.missing?[...S.Rt,S.tn.Degraded]:t===P.G.space?[...S.Rt,S.tn.DiskSpace]:S.Rt),[t]);return(0,de.N)(n,S.j0,S.G0,S.nu,s)}var pe=r(78326),he=r(18258);function ge(e){const{storageGroupsGroupByParam:t,visibleEntities:r,handleShowAllGroups:n}=B(),s=(0,d.rU)(),a=(0,d.Pq)();o.useEffect((()=>{a&&"all"!==r&&n()}),[n,a,r]);return(0,C.jsx)(i.s,{loading:!s,children:a&&t?(0,C.jsx)(Se,{...e}):(0,C.jsx)(ve,{...e})})}function ve(e){let{database:t,nodeId:r,groupId:n,pDiskId:s,viewContext:o,parentRef:a,initialEntitiesCount:i}=e;const{searchValue:l,visibleEntities:u,handleShowAllGroups:c}=B(),m=(0,d.Pq)(),{columnsToShow:p,columnsToSelect:h,setColumns:g}=me({visibleEntities:u,viewContext:o});return(0,C.jsx)(le,{database:t,nodeId:r,groupId:n,pDiskId:s,searchValue:l,visibleEntities:u,onShowAll:c,parentRef:a,renderControls:e=>{let{totalEntities:t,foundEntities:r,inited:n}=e;return(0,C.jsx)(K,{withTypeSelector:!0,withGroupBySelect:m,entitiesCountCurrent:r,entitiesCountTotal:t,entitiesLoading:!n,columnsToSelect:h,handleSelectedColumnsUpdate:g})},renderErrorMessage:O,columns:p,initialEntitiesCount:i})}function Se(e){let{database:t,nodeId:r,groupId:n,pDiskId:o,parentRef:i,viewContext:d}=e;const[c]=(0,s.Rj)(),{searchValue:m,storageGroupsGroupByParam:p,visibleEntities:h,handleShowAllGroups:g}=B(),{columnsToShow:v,columnsToSelect:S,setColumns:f}=me({visibleEntities:h,viewContext:d}),{currentData:x,isFetching:w,error:N}=u.y.useGetStorageGroupsInfoQuery({database:t,with:"all",nodeId:r,groupId:n,pDiskId:o,filter:m,shouldUseGroupsHandler:!0,group:p},{pollingInterval:c}),b=void 0===x&&w,{tableGroups:k,found:y=0,total:D=0}=x||{},{expandedGroups:I,setIsGroupExpanded:j}=(0,he.r)(k);return(0,C.jsxs)(l.l,{children:[(0,C.jsx)(l.l.Controls,{children:(0,C.jsx)(K,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:y,entitiesCountTotal:D,entitiesLoading:b,columnsToSelect:S,handleSelectedColumnsUpdate:f})}),N?(0,C.jsx)(a.V,{error:N}):null,(0,C.jsx)(l.l.Table,{loading:b,className:Z("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((e=>{let{name:s,count:a}=e;const l=I[s];return(0,C.jsx)(pe.G,{title:s,count:a,entityName:L("groups"),expanded:l,onIsExpandedChange:j,children:(0,C.jsx)(le,{database:t,parentRef:i,nodeId:r,groupId:n,pDiskId:o,filterGroup:s,filterGroupBy:p,searchValue:m,visibleEntities:"all",onShowAll:g,renderErrorMessage:O,columns:v,initialEntitiesCount:a})},s)})):L("no-groups")})]})}var fe=r(10730),xe=r(61979);const we=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"}'),Ne=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"}'),be=(0,R.wZ)("ydb-storage-nodes",{ru:Ne,en:we}),ke=e=>{let t,{visibleEntities:r,nodesUptimeFilter:n,onShowAll:s}=e;return r===P.G.space&&(t=be("empty.out_of_space")),r===P.G.missing&&(t=be("empty.degraded")),n===H.Uu.SmallUptime&&(t=be("empty.small_uptime")),r!==P.G.all&&n!==H.Uu.All&&(t=be("empty.several_filters")),t?(0,C.jsx)(re,{title:t,showAll:be("show_all"),onShowAll:s}):null};var ye=r(69541);const De=async e=>{const{type:t="static",storage:r=!0,limit:n,offset:s,sortParams:o,filters:a,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==a&&void 0!==a?a:{},{sortOrder:v,columnId:S}=null!==o&&void 0!==o?o:{},f=(0,x.Gd)(S),w=f?(0,ae.A)(f,v):void 0,N=(0,ie.w)(i,x.WN),b=await window.api.getNodes({type:t,storage:r,limit:n,offset:s,sort:w,filter:l,uptime:(0,H.RW)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:N}),k=(0,ye.Y2)(b);return{data:k.nodes||[],found:k.found||0,total:k.total||0}},Ie=(0,V.cn)("ydb-storage-nodes"),je=e=>Ie("node",{unavailable:(0,H.TA)(e)}),Pe=e=>{let{columns:t,database:r,nodeId:n,groupId:s,filterGroup:a,filterGroupBy:i,searchValue:l,visibleEntities:d,nodesUptimeFilter:u,onShowAll:c,parentRef:m,renderControls:p,renderErrorMessage:h,initialEntitiesCount:g}=e;const v=o.useMemo((()=>({searchValue:l,visibleEntities:d,nodesUptimeFilter:u,database:r,nodeId:n,groupId:s,filterGroup:a,filterGroupBy:i})),[l,d,u,r,n,s,a,i]);return(0,C.jsx)(Q.WQ,{columnsWidthLSKey:w,parentRef:m,columns:t,fetchData:De,rowHeight:51,limit:50,initialEntitiesCount:g,renderControls:p,renderErrorMessage:h,renderEmptyDataMessage:()=>d!==P.G.all||u!==H.Uu.All?(0,C.jsx)(ke,{onShowAll:c,nodesUptimeFilter:u,visibleEntities:d}):be("empty.default"),getRowClassName:je,filters:v,tableName:"storage-nodes"})};var Ce=r(71624),Ee=r(2387),Te=r(98530);const Ue=(0,V.cn)("ydb-storage-nodes-columns"),Ge=e=>{let{viewContext:t}=e;return{name:x.xv.PDisks,header:x.Pr.PDisks,className:Ue("pdisks-column"),render:e=>{var r;let{row:n}=e;return(0,C.jsx)("div",{className:Ue("pdisks-wrapper"),children:null===(r=n.PDisks)||void 0===r?void 0:r.map((e=>{var r;const s=null===(r=n.VDisks)||void 0===r?void 0:r.filter((t=>t.PDiskId===e.PDiskId));return(0,C.jsx)("div",{className:Ue("pdisks-item"),children:(0,C.jsx)(Te.l,{data:e,vDisks:s,viewContext:t})},e.PDiskId)}))})},align:Ce.ZP.CENTER,sortable:!1,width:900,resizeable:!1}},Re=e=>{let{database:t,additionalNodesProps:r,viewContext:n}=e;const s=null===r||void 0===r?void 0:r.getNodeRef;return[(0,Ee.A6)(),(0,Ee.iJ)(),(0,Ee.Up)({getNodeRef:s,database:t}),(0,Ee.EF)(),(0,Ee.KO)(),(0,Ee.Zi)(),(0,Ee.rh)(),(0,Ee.n2)(),(0,Ee.o9)(),(0,Ee.eb)(),(0,Ee.cB)(),(0,Ee.VQ)(),(0,Ee.Fi)(),Ge({viewContext:n})].map((e=>({...e,sortable:(0,x.Ke)(e.name)})))};function Me(e){let{visibleEntities:t,database:r,additionalNodesProps:n,viewContext:s}=e;const a=o.useMemo((()=>Re({database:r,additionalNodesProps:n,viewContext:s})),[r,n,s]),i=o.useMemo((()=>t===P.G.missing?[...k,x.xv.Missing]:k),[t]);return(0,de.N)(a,N,x.Pr,b,i)}const Le=e=>{const{storageNodesGroupByParam:t,visibleEntities:r,nodesUptimeFilter:n,handleShowAllNodes:s}=B(),a=(0,d.rU)(),l=(0,d.th)();o.useEffect((()=>{!l||"all"===r&&n===H.Uu.All||s()}),[s,n,l,r]);return(0,C.jsx)(i.s,{loading:!a,children:l&&t?(0,C.jsx)(ze,{...e}):(0,C.jsx)(Ae,{...e})})};function Ae(e){let{database:t,nodeId:r,groupId:n,viewContext:s,parentRef:o,initialEntitiesCount:a}=e;const{searchValue:i,visibleEntities:l,nodesUptimeFilter:u,handleShowAllNodes:c}=B(),m=(0,d.th)(),{columnsToShow:p,columnsToSelect:h,setColumns:g}=Ve({database:t,viewContext:s});return(0,C.jsx)(Pe,{database:t,nodeId:r,groupId:n,searchValue:i,visibleEntities:l,nodesUptimeFilter:u,onShowAll:c,parentRef:o,renderControls:e=>{let{totalEntities:t,foundEntities:r,inited:n}=e;return(0,C.jsx)($,{withTypeSelector:!0,withGroupBySelect:m,entitiesCountCurrent:r,entitiesCountTotal:t,entitiesLoading:!n,columnsToSelect:h,handleSelectedColumnsUpdate:g})},renderErrorMessage:O,columns:p,initialEntitiesCount:a})}function ze(e){let{database:t,groupId:r,nodeId:n,viewContext:o,parentRef:a}=e;const[i]=(0,s.Rj)(),{searchValue:d,storageNodesGroupByParam:c,handleShowAllNodes:m}=B(),{columnsToShow:p,columnsToSelect:h,setColumns:g}=Ve({database:t,viewContext:o}),{currentData:v,isFetching:S,error:f}=u.y.useGetStorageNodesInfoQuery({database:t,with:"all",filter:d,node_id:n,group_id:r,group:c},{pollingInterval:i}),x=void 0===v&&S,{tableGroups:w,found:N=0,total:b=0}=v||{},{expandedGroups:k,setIsGroupExpanded:y}=(0,he.r)(w);return(0,C.jsxs)(l.l,{children:[(0,C.jsx)(l.l.Controls,{children:(0,C.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:N,entitiesCountTotal:b,entitiesLoading:x,columnsToSelect:h,handleSelectedColumnsUpdate:g})}),f?(0,C.jsx)(z.V,{error:f}):null,(0,C.jsx)(l.l.Table,{loading:x,className:Z("groups-wrapper"),children:null!==w&&void 0!==w&&w.length?w.map((e=>{let{name:s,count:o}=e;const i=k[s];return(0,C.jsx)(pe.G,{title:s,count:o,entityName:L("nodes"),expanded:i,onIsExpandedChange:y,children:(0,C.jsx)(Pe,{database:t,parentRef:a,nodeId:n,groupId:r,searchValue:d,visibleEntities:"all",nodesUptimeFilter:H.Uu.All,onShowAll:m,filterGroup:s,filterGroupBy:c,renderErrorMessage:O,columns:p,initialEntitiesCount:o})},s)})):L("no-nodes")})]})}function Ve(e){let{database:t,viewContext:r}=e;const{balancer:n}=(0,fe.kW)(),{additionalNodesProps:s}=(0,xe.f)({balancer:n}),{visibleEntities:o}=B();return Me({additionalNodesProps:s,visibleEntities:o,database:t,viewContext:r})}var Ze=r(14418);const Oe=e=>{const{storageType:t}=B();return"nodes"===t?(0,C.jsx)(Le,{initialEntitiesCount:(0,Ze._M)(e.viewContext),...e}):(0,C.jsx)(ge,{initialEntitiesCount:(0,Ze.le)(e.viewContext),...e})};var Fe=r(93225),_e=r(82114);const We=e=>e.trim().toLowerCase(),He=(e,t)=>{const r=We(t);return r?e.filter((e=>{var t,n;return(null===(t=e.NodeId)||void 0===t?void 0:t.toString().includes(r))||(null===(n=e.Host)||void 0===n?void 0:n.toLowerCase().includes(r))})):e},Be=(e,t)=>{const r=We(t);return r?e.filter((e=>{var t,n;return(null===(t=e.PoolName)||void 0===t?void 0:t.toLowerCase().includes(r))||(null===(n=e.GroupId)||void 0===n?void 0:n.toString().includes(r))})):e};var Ke=r(74116);function $e(e){let{data:t,columns:r,visibleEntities:s,onShowAll:o,sort:a,handleSort:i}=e;return t.length||s===P.G.all?(0,C.jsx)(Ke.G,{columnsWidthLSKey:S.Ty,data:t,columns:r,settings:n.LE,emptyDataMessage:(0,ne.Z)("empty.default"),sortOrder:a,onSort:i},s):(0,C.jsx)(se,{onShowAll:o,visibleEntities:s})}const Qe={...n.LE,dynamicRenderMinSize:51};function Xe(e){let{data:t,columns:r,visibleEntities:n,nodesUptimeFilter:s,sort:o,onShowAll:a,handleSort:i}=e;return t.length||n===P.G.all&&s===H.Uu.All?(0,C.jsx)(Ke.G,{columnsWidthLSKey:w,data:t,columns:r,settings:Qe,emptyDataMessage:be("empty.default"),rowClassName:je,sortOrder:o,onSort:i},n):(0,C.jsx)(ke,{visibleEntities:n,nodesUptimeFilter:s,onShowAll:a})}const Je=e=>{var t,r;let{database:n,viewContext:a,nodeId:i,groupId:c,pDiskId:m}=e;const{balancer:p}=(0,fe.kW)(),{additionalNodesProps:h}=(0,xe.f)({balancer:p}),{storageType:g,searchValue:v,visibleEntities:S,nodesUptimeFilter:f,handleShowAllGroups:x,handleShowAllNodes:w}=B(),N=(0,d.rU)(),b=(0,d.tS)(),[k]=(0,s.Rj)(),y="groups"===g,D="nodes"===g,[I,j]=o.useState({sortOrder:void 0,sortValue:void 0}),P=I.sortValue?I:Ze.TP,[E,T]=o.useState({sortOrder:void 0,sortValue:void 0}),U=E.sortOrder?E:(0,Ze._r)(S),{columnsToShow:G,columnsToSelect:R,setColumns:M}=Me({additionalNodesProps:h,visibleEntities:S,database:n,viewContext:a}),{columnsToShow:L,columnsToSelect:V,setColumns:O}=me({visibleEntities:S,viewContext:a}),F=u.y.useGetStorageNodesInfoQuery({database:n,with:S,node_id:i,group_id:c},{skip:!D,pollingInterval:k}),_=u.y.useGetStorageGroupsInfoQuery({database:n,with:S,nodeId:i,groupId:c,pDiskId:m,shouldUseGroupsHandler:b,fieldsRequired:"all"},{skip:!y||!N,pollingInterval:k}),{currentData:W,isFetching:H,error:Q}=D?F:_,{currentData:{nodes:X=[]}={}}=F,{currentData:{groups:J=[]}={}}=_,q=(null===(t=F.currentData)||void 0===t?void 0:t.total)||0,Y=(null===(r=_.currentData)||void 0===r?void 0:r.total)||0,ee=void 0===W&&H,te=o.useMemo((()=>function(e,t,r){let n=e||[];return n=He(n,t),n=(0,_e.f)(n,r),n}(X,v,f)),[X,f,v]),re=o.useMemo((()=>function(e,t){let r=e||[];return r=Be(r,t),r}(J,v)),[v,J]),[ne,se]=(0,s.sC)(P,(e=>j(e))),[oe,ae]=(0,s.sC)(U,(e=>T(e)));return(0,Fe.u)(Q)?(0,C.jsx)(A.J,{position:"left"}):(0,C.jsxs)(l.l,{children:[(0,C.jsx)(l.l.Controls,{children:(0,C.jsxs)(o.Fragment,{children:[y?(0,C.jsx)(K,{withTypeSelector:!0,entitiesCountCurrent:re.length,entitiesCountTotal:Y,entitiesLoading:ee,columnsToSelect:V,handleSelectedColumnsUpdate:O}):null,D?(0,C.jsx)($,{withTypeSelector:!0,entitiesCountCurrent:te.length,entitiesCountTotal:q,entitiesLoading:ee,columnsToSelect:R,handleSelectedColumnsUpdate:M}):null]})}),Q?(0,C.jsx)(z.V,{error:Q}):null,(0,C.jsx)(l.l.Table,{loading:ee||!N,className:Z("table"),children:W?(0,C.jsxs)(o.Fragment,{children:[y?(0,C.jsx)($e,{visibleEntities:S,data:re,onShowAll:x,sort:oe,handleSort:ae,columns:L},"groups"):null,D?(0,C.jsx)(Xe,{visibleEntities:S,nodesUptimeFilter:f,data:te,onShowAll:w,sort:ne,handleSort:se,columns:G},"nodes"):null]}):null})]})},qe=e=>{var t,r,o,a;let{parentRef:i,...l}=e;const[d]=(0,s.yu)(n.Qy),u={nodeId:null===(t=l.nodeId)||void 0===t?void 0:t.toString(),pDiskId:null===(r=l.pDiskId)||void 0===r?void 0:r.toString(),groupId:null===(o=l.groupId)||void 0===o?void 0:o.toString(),vDiskSlotId:null===(a=l.vDiskSlotId)||void 0===a?void 0:a.toString()};return d?(0,C.jsx)(Oe,{parentRef:i,viewContext:u,...l}):(0,C.jsx)(Je,{viewContext:u,...l})}},78326:(e,t,r)=>{r.d(t,{G:()=>d});r(34706);var n=r(81778),s=r(23795),o=r(2634),a=r(99294),i=r(10161);const l=(0,a.cn)("ydb-table-group");function d(e){let{children:t,title:r,entityName:a,count:d,expanded:u=!1,onIsExpandedChange:c}=e;const m=()=>{c(r,!u)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:m,className:l("button"),title:r,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(n.F,{direction:u?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(s.x,{variant:"subheader-2",children:r}),(0,i.jsxs)(s.x,{variant:"body-2",color:"secondary",className:l("count"),children:[a,": ",(0,i.jsx)(o._,{theme:"normal",children:d})]})]})]})}),u?(0,i.jsx)("div",{className:l("content"),children:t}):null]})}},18258:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(34706);function s(e){const[t,r]=n.useState({});n.useEffect((()=>{null!==e&&void 0!==e&&e.length&&r((t=>e.reduce(((e,r)=>{let{name:n}=r;const s=t[n];return{...e,[n]:null!==s&&void 0!==s&&s}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:n.useCallback(((e,t)=>{r((r=>({...r,[e]:t})))}),[])}}},14418:(e,t,r)=>{r.d(t,{TP:()=>m,XW:()=>S,_M:()=>x,_O:()=>c,_r:()=>v,le:()=>w});var n=r(20560),s=r(60918),o=r(34695),a=r(25665),i=r(84029),l=r(78090);const d=(0,i.p)(1,2,["success","warning","danger"]),u={"block-4-2":(0,i.p)(1,2,["success","warning","danger"]),"mirror-3-dc":(0,i.p)(1,3,["success","warning","danger"])},c=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in u?u[e.ErasureSpecies]:d)(e.Degraded)},m={sortValue:s.xv.NodeId,sortOrder:n.zE},p={sortValue:l.tn.PoolName,sortOrder:n.zE},h={sortValue:l.tn.Degraded,sortOrder:n.hr},g={sortValue:l.tn.Usage,sortOrder:n.hr};function v(e){return e===o.G.missing?h:e===o.G.space?g:p}function S(e,t){var r;let n=!0;return(0,a.D)(null===(r=e.VDiskId)||void 0===r?void 0:r.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(n&&=String(e.VDiskId.GroupID)===t.groupId),(0,a.D)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(n&&=String(e.NodeId)===t.nodeId),(0,a.D)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(n&&=String(e.PDiskId)===t.pDiskId),(0,a.D)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(n&&=String(e.VDiskSlotId)===t.vDiskSlotId),n}const f=10;function x(e){let{nodeId:t,pDiskId:r,vDiskSlotId:n}=e;return(0,a.D)(t)||(0,a.D)(r)||(0,a.D)(n)?1:f}function w(e){let{vDiskSlotId:t,groupId:r}=e;return(0,a.D)(r)||(0,a.D)(t)?1:f}},82114:(e,t,r)=>{r.d(t,{A:()=>m,f:()=>u});var n=r(77468),s=r(27810),o=r(38980),a=r(89991),i=r(96183),l=r(32341);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:t}=e;return t&&t!==n.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:t}=e;return!t||(0,o.OW)(t)<s.RQ}))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!t)return e;const r=(0,a.Y)(t);return e.filter((e=>!e.Host||(r.test(e.Host)||r.test(String(e.NodeId)))))};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{uptimeFilter:t,searchValue:r,problemFilter:n}=arguments.length>1?arguments[1]:void 0,s=u(e,t);return s=d(s,n),s=c(s,r),s}},16124:(e,t,r)=>{r.d(t,{n:()=>o,w:()=>a});var n=r(84029),s=r(96183);const o=e=>{var t;const r=(e.Nodes||[]).map((e=>{const{SystemState:t,...r}=e;return{...r,...(0,s.Ns)(t)}}));return{Nodes:r,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((e=>{let{GroupName:t,NodeCount:r}=e;if(t&&r)return{name:t,count:Number(r)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||r.length,FoundNodes:Number(e.FoundNodes)}},a=(0,n.p)(60,80,["success","warning","danger"])},34695:(e,t,r)=>{r.d(t,{G:()=>n,d:()=>s});const n={all:"all",missing:"missing",space:"space"},s={groups:"groups",nodes:"nodes"}},55993:(e,t,r)=>{r.d(t,{R:()=>s});var n=r(69541);async function s(e,t){let{version:r="v2",shouldUseGroupsHandler:s,...o}=e;if(s&&"v1"!==r){const e=await window.api.getStorageGroups({...o},t);return(0,n._u)(e)}{const e=await window.api.getStorageInfo({version:r,...o},t);return(0,n.S9)(e)}}},89085:(e,t,r)=>{r.d(t,{y:()=>a});var n=r(78759),s=r(55993),o=r(69541);const a=n.h.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,t)=>{let{signal:r}=t;try{const t=await window.api.getNodes({storage:!0,type:"static",...e},{signal:r});return{data:(0,o.Y2)(t)}}catch(n){return{error:n}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,t)=>{let{signal:r}=t;try{return{data:await(0,s.R)(e,{signal:r})}}catch(n){return{error:n}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},69541:(e,t,r)=>{r.d(t,{_u:()=>b,Y2:()=>w,S9:()=>N});var n=r(96234),s=r(38392),o=r(53458),a=r(26612),i=r(96183),l=r(61734),d=r(83627),u=r(38980),c=r(69715),m=r(29919),p=r(77668);function h(){var e,t,r,n;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Whiteboard:i={},PDisk:l,...d}=s,g={...i,...d,VDiskId:i.VDiskId},v=l?function(){var e,t,r;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Whiteboard:s,...i}=n,l={...s,...i,PDiskId:null===s||void 0===s?void 0:s.PDiskId},d=i.PDiskId||(0,o.CH)(l.NodeId,l.PDiskId),{AllocatedPercent:u,AllocatedSize:m,AvailableSize:h,TotalSize:g}=(0,a.kd)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(e=null===(t=i.Type)||void 0===t?void 0:t.toUpperCase())&&void 0!==e?e:(0,p.y)(null===s||void 0===s?void 0:s.Category),S=(0,c.y)({State:null===s||void 0===s?void 0:s.State,AllocatedPercent:u}),f=null!==(r=i.SlotSize)&&void 0!==r?r:null===s||void 0===s?void 0:s.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:u,AllocatedSize:m,AvailableSize:h,TotalSize:g,Type:v,Severity:S,SlotSize:f}}({...l,NodeId:g.NodeId}):void 0,S=null!==(e=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==e?e:null===i||void 0===i?void 0:i.PDiskId,f=null!==(t=d.VDiskId)&&void 0!==t?t:(0,u.a2)(i.VDiskId),x=(0,m.Z)(g),w=(0,a.Jn)({AvailableSize:null!==(r=g.AvailableSize)&&void 0!==r?r:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),N=null===(n=d.Donors)||void 0===n?void 0:n.map((e=>h({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...w,PDisk:v,Donors:N,PDiskId:S,StringifiedId:f,Severity:x}}function g(e){const{DiskSpace:t,VDisks:r=[]}=e;return t||(0,o.b2)(Math.max(...r.map((e=>(0,o.Or)(e.DiskSpace)))))}const v=(e,t)=>{var r;const n=(0,a.se)(e);return{...n,StoragePoolName:t,Donors:null===n||void 0===n||null===(r=n.Donors)||void 0===r?void 0:r.map((e=>({...e,StoragePoolName:t})))}},S=e=>{const{VDisks:t=[],PoolName:r,Usage:n=0,Read:s=0,Write:o=0,Used:a=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,h=t.map((e=>v(e,r))),S=100*Number(n),f=g(e);return{...e,PoolName:r,GroupId:c,MediaType:u||d,VDisks:h,Usage:S,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(s),Write:Number(o),Used:Number(a),Limit:Number(i),Degraded:Number(l),DiskSpace:f}},f=(e,t)=>{let r=[];return e?r=e.map(S):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{r.push(((e,t)=>{var r;let o,i=0,d=0,u=0,c=0,m=0;const{Name:p,MediaType:h}=t;if(e.VDisks)for(const l of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:r,AllocatedSize:p,PDisk:h,ReadThroughput:g,WriteThroughput:v}=l,{Type:S,State:f,AvailableSize:x}=(0,a.TD)(h);e&&f===n.w.Normal&&t===s.H.OK||(i+=1);const w=Number(null!==r&&void 0!==r?r:x)||0,N=Number(p)||0;d+=N,u+=w+N,c+=Number(g)||0,m+=Number(v)||0,o=!S||S!==o&&o?"Mixed":S}const S=null===(r=e.VDisks)||void 0===r?void 0:r.map((e=>v(e,p))),f=u?(0,l.I)({Used:d,Limit:u},5):void 0,x=g(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:S,Usage:f,Read:c,Write:m,PoolName:p,Used:d,Limit:u,Degraded:i,MediaType:h||o||void 0,DiskSpace:x}})(t,e))}))})),r},x=e=>{var t,r,s;const o=(null===(t=e.PDisks)||void 0===t?void 0:t.filter((e=>e.State!==n.w.Normal)).length)||0,l=null===(r=e.PDisks)||void 0===r?void 0:r.map((t=>({...(0,a.TD)(t),NodeId:e.NodeId}))),d=null===(s=e.VDisks)||void 0===s?void 0:s.map((t=>({...(0,a.se)(t),NodeId:e.NodeId})));return{...(0,i.Ns)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:l,VDisks:d,Missing:o}},w=e=>{const{Nodes:t,TotalNodes:r,FoundNodes:n,NodeGroups:s}=e,o=null===s||void 0===s?void 0:s.map((e=>{let{GroupName:t,NodeCount:r}=e;if(t&&r)return{name:t,count:Number(r)}})).filter((e=>Boolean(e))),a=null===t||void 0===t?void 0:t.map(x);return{nodes:a,total:Number(r)||(null===a||void 0===a?void 0:a.length),found:Number(n),tableGroups:o}},N=e=>{const{StoragePools:t,StorageGroups:r,TotalGroups:n,FoundGroups:s}=e,o=f(r,t);return{groups:o,total:Number(n)||o.length,found:Number(s)}};function b(e){const{FoundGroups:t,TotalGroups:r,StorageGroups:n=[],StorageGroupGroups:s}=e,o=n.map((e=>{const{Usage:t,DiskSpaceUsage:r,Read:n,Write:s,Used:o,Limit:a,MissingDisks:i,VDisks:l=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:p}=e,v=l.map(h),S=g(e);return{...e,Usage:t,DiskSpaceUsage:r,Read:Number(n),Write:Number(s),Used:Number(o),Limit:Number(a),LatencyPutTabletLogMs:(0,d.BO)(c),LatencyPutUserDataMs:(0,d.BO)(m),LatencyGetFastMs:(0,d.BO)(p),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:S}})),a=null===s||void 0===s?void 0:s.map((e=>{let{GroupName:t,GroupCount:r}=e;if(t&&r)return{name:t,count:Number(r)}})).filter((e=>Boolean(e)));return{groups:o,total:Number(r)||o.length,found:Number(t),tableGroups:a}}},96234:(e,t,r)=>{let n;r.d(t,{w:()=>n}),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"}(n||(n={}))},38392:(e,t,r)=>{let n;r.d(t,{H:()=>n}),function(e){e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError"}(n||(n={}))},69715:(e,t,r)=>{r.d(t,{y:()=>i});var n=r(77468),s=r(84029),o=r(53443);const a=(0,s.p)(85,95,[n.K.Green,n.K.Yellow,n.K.Red]);function i(e){const t=function(e){return t=e,void 0!==t&&t in o.tH?o.tH[e]:o.i6;var t}(e.State),r=a(e.AllocatedPercent||0);return t!==o.i6&&r?Math.max(t,o.oO[r]):t}},29919:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(53443);function s(e){const{DiskSpace:t,VDiskState:r,FrontQueues:s,Replicated:a}=e;if(!r)return n.i6;const i=o(t),l=function(e){var t;if(!e)return n.i6;return null!==(t=n.mr[e])&&void 0!==t?t:n.i6}(r),d=Math.min(n.oO.Orange,o(s));let u=Math.max(i,l,d);return a||u!==n.oO.Green||(u=n.oO.Blue),u}function o(e){var t;return e&&null!==(t=n.oO[e])&&void 0!==t?t:n.i6}},53443:(e,t,r)=>{r.d(t,{i6:()=>i,mG:()=>a,mr:()=>d,oO:()=>o,s:()=>l,tH:()=>u});var n=r(96234),s=r(38392);const o={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},a=Object.entries(o).reduce(((e,t)=>{let[r,n]=t;return{...e,[n]:r}}),{}),i=o.Grey,l=a[i],d={[s.H.OK]:o.Green,[s.H.Initial]:o.Yellow,[s.H.SyncGuidRecovery]:o.Yellow,[s.H.LocalRecoveryError]:o.Red,[s.H.SyncGuidRecoveryError]:o.Red,[s.H.PDiskError]:o.Red},u={[n.w.Initial]:o.Grey,[n.w.Normal]:o.Green,[n.w.InitialFormatRead]:o.Yellow,[n.w.InitialSysLogRead]:o.Yellow,[n.w.InitialCommonLogRead]:o.Yellow,[n.w.InitialFormatReadError]:o.Red,[n.w.InitialSysLogReadError]:o.Red,[n.w.InitialSysLogParseError]:o.Red,[n.w.InitialCommonLogReadError]:o.Red,[n.w.InitialCommonLogParseError]:o.Red,[n.w.CommonLoggerInitError]:o.Red,[n.w.OpenFileError]:o.Red,[n.w.ChunkQuotaError]:o.Red,[n.w.DeviceIoError]:o.Red}},77668:(e,t,r)=>{r.d(t,{y:()=>s});const n={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function s(e){if(!e)return;const t=function(e,t){const r={};return Object.entries(t).reduce(((t,n)=>{let[s,o]=n;const a=e.length-t,i=a-o;return r[s]=e.substring(i,a)||"0",t+o}),0),r}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return n.SSD;case 2:return n.MVME}else if("0"===t.typeExt)return n.HDD}},53458:(e,t,r)=>{r.d(t,{CH:()=>l,FR:()=>d,Iz:()=>o,Or:()=>i,b2:()=>a});var n=r(25665),s=r(53443);function o(e){return"VDiskId"in e}function a(e){return void 0===e?s.s:s.mG[e]||s.s}function i(e){return e?s.oO[e]:0}function l(e,t){if((0,n.D)(e)&&(0,n.D)(t))return`${e}-${t}`}function d(e,t,r){return[e,t,r].join("-")}},26612:(e,t,r)=>{r.d(t,{Jn:()=>u,TD:()=>d,kd:()=>c,se:()=>l});var n=r(38980),s=r(69715),o=r(29919),a=r(77668),i=r(53458);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(0,i.Iz)(t)){const{NodeId:e,PDiskId:r,VSlotId:s}=t;return{StringifiedId:(0,n.a2)({NodeId:e,PDiskId:r,VSlotId:s}),NodeId:e,PDiskId:r,VDiskSlotId:s}}const{PDisk:r,PDiskId:s,VDiskId:a,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=t,v=r?d({...r,NodeId:null!==(e=null===r||void 0===r?void 0:r.NodeId)&&void 0!==e?e:c}):void 0,S=null!==s&&void 0!==s?s:null===v||void 0===v?void 0:v.PDiskId,f=u({AvailableSize:null!==p&&void 0!==p?p:null===r||void 0===r?void 0:r.AvailableSize,AllocatedSize:h}),x=(0,o.Z)(t),w=(0,n.a2)(a);return{...g,...f,VDiskId:a,NodeId:c,PDiskId:S,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:x,StringifiedId:w}}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{AvailableSize:t,TotalSize:r,Category:n,State:o,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.CH)(l,d),h=(0,a.y)(n),g=c({AvailableSize:t,TotalSize:r}),v=(0,s.y)({State:o,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:n,State:o,Severity:v,SlotSize:u}}function u(e){let{AvailableSize:t,AllocatedSize:r}=e;const n=Number(t),s=Number(r),o=s+n;return{AvailableSize:n,AllocatedSize:s,TotalSize:o,AllocatedPercent:Math.round(100*s/o)}}function c(e){let{AvailableSize:t,TotalSize:r}=e;const n=Number(t),s=Number(r),o=s-n;return{AvailableSize:n,TotalSize:s,AllocatedSize:o,AllocatedPercent:Math.round(100*o/s)}}},89991:(e,t,r)=>{r.d(t,{A:()=>a,Y:()=>i});var n=r(20560),s=r(78171),o=r.n(s);const a=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.hr)===n.hr?`-${e}`:e},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new RegExp(o()(e),"i")}},84029:(e,t,r)=>{r.d(t,{p:()=>n});const n=(e,t,r)=>n=>0<=n&&n<e?r[0]:e<=n&&n<t?r[1]:t<=n?r[2]:void 0},97485:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(34706),s=r(9951);const o=(e,t,r,o,a)=>{const[i,l]=n.useState((()=>s.r.readUserSettingsValue(t,o)));return{columnsToShow:n.useMemo((()=>e.filter((e=>{const t=e.name,r=i.includes(t),n=null===a||void 0===a?void 0:a.includes(t);return r||n}))),[e,a,i]),columnsToSelect:n.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===a||void 0===a?void 0:a.includes(e),n=i.includes(e);return{id:e,title:r[e],selected:t||n,required:t,sticky:t?"start":void 0}}))),[e,r,a,i]),setColumns:n.useCallback((e=>{const r=e.filter((e=>e.selected)).map((e=>e.id));s.r.setUserSettingsValue(t,r),l(r)}),[t])}}},46154:(e,t,r)=>{r.d(t,{M:()=>a});var n=r(34706),s=r(59769),o=r(9951);const a=e=>{const t=n.useCallback((()=>e?o.r.readUserSettingsValue(e,{}):{}),[e]),r=n.useCallback((t=>{e&&o.r.setUserSettingsValue(e,t)}),[e]);return(0,s.M)({saveSizes:r,getSizes:t})}},95440:(e,t,r)=>{function n(e){let{inverseColorize:t,warningThreshold:r=60,dangerThreshold:n=80,colorizeProgress:s,fillWidth:o}=e,a=t?"danger":"good";return s&&(o>r&&o<=n?a="warning":o>n&&(a=t?"good":"danger")),a}r.d(t,{S:()=>n})},61734:(e,t,r)=>{r.d(t,{H:()=>o,I:()=>s});var n=r(84029);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=e.Limit?100*e.Used/e.Limit:0;return Math.floor(r/t)*t},o=(0,n.p)(80,85,["success","warning","danger"])},83023:(e,t,r)=>{function n(e,t){const r=e.reduce(((e,r)=>(t[r].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(r).sort()}r.d(t,{w:()=>n})},55973:(e,t,r)=>{r.d(t,{FW:()=>a,KR:()=>i});var n=r(77468),s=r(9038);const o={[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(o).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:o[e];var t});function i(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/3062.5a010e35.chunk.js b/ydb/core/viewer/monitoring/static/js/3062.5a010e35.chunk.js new file mode 100644 index 0000000000..a5551e9d7c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3062.5a010e35.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3062],{20134:(e,t,n)=>{"use strict";n.d(t,{w:()=>v});var a=n(34706),s=n(99175);const l=(0,n(38534).G)("definition-list");const o=e=>"label"in e&&!("name"in e);function i(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function r(e){let{copyText:t,content:n,copyPosition:o}=e;const i="inside"===o,r=null!==n&&void 0!==n?n:"\u2014";return t?a.createElement("div",{className:l("copy-container",{"icon-inside":i})},a.createElement("span",null,r),a.createElement(s.m,{size:"s",text:t,className:l("copy-button"),view:i?"raised":"flat-secondary"})):r}var c=n(23795);function d(e){let{label:t}=e;return a.createElement("div",{className:l("title")},a.createElement(c.x,{variant:"subheader-1",color:"complementary"},t))}var m=n(91807);function u(e){let{note:t}=e;if(!t)return null;const n=l("item-note-tooltip");return"string"===typeof t?a.createElement(m.J,{className:n,content:t,placement:["bottom","top"]}):"object"===typeof t?a.createElement(m.J,Object.assign({className:n,placement:["bottom","top"]},t)):null}function p(e){let{note:t,name:n,nameTitle:s,multilineName:o}=e;const r=a.createElement(a.Fragment,null,"\xa0",a.createElement(u,{note:t}));return a.createElement(a.Fragment,null,a.createElement("div",{className:l("term-wrapper")},a.createElement("span",{title:i(s,n)},n),o&&r),!o&&r,a.createElement("div",{className:l("dots",{"with-note":Boolean(t)})}))}function v(e){let{items:t,responsive:n,nameMaxWidth:s,contentMaxWidth:c="auto",className:m,itemClassName:u,copyPosition:v="outside",qa:h}=e;const E=s?{flexBasis:s}:{},b="number"===typeof c?{flexBasis:c,maxWidth:c}:{},f=a.useMemo((()=>function(e){return e.reduce(((e,t)=>{var n;if(o(t)){e.push({label:t.label});const a=[...null!==(n=t.items)&&void 0!==n?n:[]].map((e=>Object.assign(Object.assign({},e),{isGrouped:!0})));e.push(...a)}else e.push(t);return e}),[])}(t).map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("dl",{className:l({responsive:n},m),"data-qa":h},f.map((e=>{if(o(e)){const{key:t,label:n}=e;return a.createElement(d,{key:t,label:n})}const{name:t,key:n,content:s,contentTitle:c,nameTitle:m,copyText:h,note:f,multilineName:y,isGrouped:w}=e;return a.createElement("div",{key:n,className:l("item",{grouped:w},u)},a.createElement("dt",{className:l("term-container",{multiline:y}),style:E},a.createElement(p,{name:t,nameTitle:m,note:f,multilineName:y})),a.createElement("dd",{className:l("definition"),title:i(c,s),style:Object.assign(Object.assign({},b),{lineBreak:"string"===typeof s&&(N=20,function(e){return e.split(/\s+/).some((e=>e.length>N))})(s)?"anywhere":void 0})},a.createElement(r,{copyPosition:v,copyText:h,content:s})));var N})))}},91807:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var a=n(34706),s=n(29837),l=n(16318),o=n(14561);const i=(0,n(38534).G)("help-popover"),r=16;function c(e){var t;return a.createElement(l.J,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(o.J,{data:s.Z,size:r})))}},38534:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var a=n(95936);(0,a.withNaming)({e:"__",m:"_",v:"_"});const s=(0,a.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},42568:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(34706);const s=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"}))},3948:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(34706);const s=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 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},19912:(e,t,n)=>{"use strict";n.d(t,{X:()=>c});var a=n(34706),s=n(75447),l=n(19694);function o(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.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 r=(0,n(87578).Ge)("checkbox"),c=a.forwardRef((function(e,t){const{size:n="m",indeterminate:c,disabled:d=!1,content:m,children:u,title:p,style:v,className:h,qa:E}=e,{checked:b,inputProps:f}=(0,s.O)(e),y=m||u,w=a.createElement("span",{className:r("indicator")},a.createElement("span",{className:r("icon"),"aria-hidden":!0},c?a.createElement(o,{className:r("icon-svg",{type:"dash"})}):a.createElement(i,{className:r("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},f,{className:r("control")})),a.createElement("span",{className:r("outline")}));return a.createElement(l.J,{ref:t,title:p,style:v,size:n,disabled:d,className:r({size:n,disabled:d,indeterminate:c,checked:b},h),qa:E,control:w},y)}))},68585:(e,t,n)=>{"use strict";n.d(t,{V:()=>K});var a=n(34706),s=n(77498),l=n(9446),o=n(38873),i=n(41715),r=n(47741),c=n(87578),d=n(90512),m=n(98960);const u=(0,c.Ge)("modal");function p(e){let{open:t=!1,keepMounted:n=!1,disableBodyScrollLock:c=!1,disableEscapeKeyDown:p,disableOutsideClick:v,disableFocusTrap:h,disableAutoFocus:E,focusTrap:b=!0,autoFocus:f=!0,restoreFocusRef:y,onEscapeKeyDown:w,onEnterKeyDown:N,onOutsideClick:g,onClose:x,onTransitionEnter:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:T,children:j,style:B,contentOverflow:K="visible",className:D,contentClassName:L,"aria-labelledby":z,"aria-label":R,container:_,qa:A}=e;const F=a.useRef(null),G=a.useRef(null),[M,P]=a.useState(!1);(0,l.y)({enabled:!c&&(t||M)});const S=(0,o.H)({enabled:t||M,restoreFocusRef:y,focusTrapped:!0});return(0,d.s)({open:t,disableEscapeKeyDown:p,disableOutsideClick:v,onEscapeKeyDown:w,onEnterKeyDown:N,onOutsideClick:g,onClose:x,contentRefs:[G],type:"modal"}),a.createElement(s.Z,{nodeRef:F,in:t,addEndListener:e=>{var t;return null===(t=F.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,m.Y)(u),mountOnEnter:!n,unmountOnExit:!n,appear:!0,onEnter:()=>{P(!0),null===k||void 0===k||k()},onExit:()=>{P(!0),null===O||void 0===O||O()},onEntered:()=>{P(!1),null===C||void 0===C||C()},onExited:()=>{P(!1),null===T||void 0===T||T()}},a.createElement(i.h,{container:_},a.createElement("div",{ref:F,style:B,className:u({open:t},D),"data-qa":A},a.createElement("div",{className:u("content-aligner")},a.createElement("div",{className:u("content-wrapper")},a.createElement(r.i,{enabled:!h&&b&&t&&!M,autoFocus:!E&&f},a.createElement("div",Object.assign({ref:G,tabIndex:-1,role:"dialog","aria-modal":t,"aria-label":R,"aria-labelledby":z,className:u("content",{"has-scroll":"auto"===K},L)},S),j)))))))}var v=n(2915),h=n(72616),E=n(14561),b=n(3581);const f=JSON.parse('{"close":"Close dialog"}'),y=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,b.e)({en:f,ru:y},"Dialog"),N=(0,c.Ge)("dialog-btn-close");function g(e){let{onClose:t}=e;return a.createElement("div",{className:N()},a.createElement(h.z,{view:"flat",size:"l",className:N("btn"),onClick:e=>t(e,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},a.createElement(E.J,{data:v.Z,size:20})))}const x=(0,c.Ge)("dialog-body");const k=(0,c.Ge)("dialog-divider");var C=n(24874);const O=(0,c.Ge)("dialog-footer");class T extends a.Component{constructor(){super(...arguments),this.errorTooltipRef=a.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:s,textButtonApply:l,propsButtonCancel:o,propsButtonApply:i,preset:r,children:c,errorText:d,showError:m,renderButtons:u,className:p}=this.props,v=a.createElement("div",{className:O("button",{action:"cancel"})},a.createElement(h.z,Object.assign({view:l?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},o),s)),E=a.createElement("div",{className:O("button",{action:"apply"})},a.createElement(h.z,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:O("button-apply",{preset:r})},i),l),d&&a.createElement(C.G,{open:m,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},a.createElement("div",{className:O("error")},d)));return a.createElement("div",{className:O(null,p)},a.createElement("div",{className:O("children")},c),a.createElement("div",{className:O("bts-wrapper")},u?u(E,v):a.createElement(a.Fragment,null,s&&v,l&&E)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}T.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const j=(0,c.Ge)("dialog-header");const B=(0,c.Ge)("dialog");class K extends a.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:s,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,size:m,contentOverflow:u="visible",className:v,modalClassName:h,hasCloseButton:E,onEscapeKeyDown:b,onEnterKeyDown:f,onOutsideClick:y,onClose:w,onTransitionEnter:N,onTransitionEntered:x,onTransitionExit:k,onTransitionExited:C,"aria-label":O,"aria-labelledby":T,qa:j}=this.props;return a.createElement(p,{open:n,contentOverflow:u,disableBodyScrollLock:s,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,onEscapeKeyDown:b,onEnterKeyDown:f,onOutsideClick:y,onClose:w,onTransitionEnter:N,onTransitionEntered:x,onTransitionExit:k,onTransitionExited:C,className:B("modal",h),"aria-label":O,"aria-labelledby":T,container:e,qa:j},a.createElement("div",{className:B({size:m,"has-close":E,"has-scroll":"auto"===u},v)},t,E&&a.createElement(g,{onClose:this.handleCloseButtonClick})))}}K.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},K.Footer=T,K.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:s,className:l,id:o}=e;return a.createElement("div",{className:j(null,l)},n,a.createElement("div",{className:j("caption"),id:o},t),s)},K.Body=function(e){const{className:t,hasBorders:n=!1}=e;return a.createElement("div",{className:x({"has-borders":n},t)},e.children)},K.Divider=function(e){let{className:t}=e;return a.createElement("div",{className:k(null,t)})}},30963:(e,t,n)=>{"use strict";n.d(t,{E:()=>m});var a=n(34706);const s=(0,n(87578).Ge)("progress");function l(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function o(e){let{item:t}=e;const{value:n,color:l,className:o,theme:i,title:r,content:c,loading:d}=t,m={loading:d};return"undefined"===typeof l&&(m.theme=i||"default"),Number.isFinite(n)?a.createElement("div",{className:s("item",m,o),style:{width:`${n}%`,backgroundColor:l},title:r},c):null}function i(e){return e<100?e-100:0}function r(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const l="number"===typeof a?a:s,o=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return l>=o&&l<=i}));return e?e.theme:t}return t}function c(e){const{stack:t,stackClassName:n,value:r,text:c}=e,d=i(r||function(e){return e.reduce(((e,t)=>{let{value:n}=t;return e+n}),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},a.createElement("div",{className:s("item"),style:{width:-d+"%"}}),t.map(((e,t)=>a.createElement(o,{key:t,item:e}))),a.createElement(l,{offset:d,text:c}))}function d(e){const{value:t,loading:n,text:o}=e,c=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:r(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},a.createElement(l,{offset:c,text:o})):null}const m=a.forwardRef((function(e,t){const{text:n="",theme:l="default",size:o="m",loading:i=!1,className:r,qa:m}=e,u=Object.assign(Object.assign({},e),{text:n,theme:l,size:o,loading:i});return a.createElement("div",{ref:t,className:s({size:o},r),"data-qa":m},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(u)?a.createElement(c,Object.assign({},u)):a.createElement(d,Object.assign({},u)))}))},55658:e=>{e.exports=function(e,t,n,a){for(var s=-1,l=null==e?0:e.length;++s<l;){var o=e[s];t(a,o,n(o),e)}return a}},25116:(e,t,n)=>{var a=n(54655);e.exports=function(e,t,n,s){return a(e,(function(e,a,l){t(s,e,n(e),l)})),s}},99902:(e,t,n)=>{var a=n(55658),s=n(25116),l=n(17370),o=n(97182);e.exports=function(e,t){return function(n,i){var r=o(n)?a:s,c=t?t():{};return r(n,e,l(i,2),c)}}},69144:(e,t,n)=>{var a=n(91560),s=n(99902),l=Object.prototype.hasOwnProperty,o=s((function(e,t,n){l.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=o},83202:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var a=n(10161),s=n(34706),l=n(36413),o=n(67303);const i="--ydb-tree-view-level",r=(0,o.G)("ydb-tree-view");function c(e){let{children:t,name:n,title:o,icon:c,collapsed:d=!0,active:m=!1,onClick:u,onArrowClick:p,hasArrow:v=!1,actions:h,additionalNodeElements:E,level:b}=e;const f=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),y=p||u;let w="tree-view_arrow",N="tree-view_children";return d&&(w+=" tree-view_arrow-collapsed",N+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:r(),style:{[i]:b},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${r("item",{active:m})}`,onClick:f,children:[(0,a.jsx)("button",{type:"button",className:`${w} ${r("arrow",{collapsed:d,hidden:!v})}`,disabled:!y,onClick:y}),(0,a.jsxs)("div",{className:r("content"),children:[c&&(0,a.jsx)("div",{className:r("icon"),children:c}),(0,a.jsx)("div",{className:r("text"),title:o,children:n}),h&&h.length>0&&(0,a.jsxs)("div",{className:r("actions"),children:[E,(0,a.jsx)(l.h,{defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:h})]})]})]}),(0,a.jsx)("div",{className:`${N} ${r("container",{collapsed:d})}`,children:d?null:t})]})})}},67303:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});const a=(0,n(95936).withNaming)({e:"__",m:"_"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3556.12b7e853.chunk.js b/ydb/core/viewer/monitoring/static/js/3556.12b7e853.chunk.js deleted file mode 100644 index d7bb15fe9f..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3556.12b7e853.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3556],{66498:(e,t,a)=>{a.d(t,{a:()=>s.a});var s=a(41989)},50377:(e,t,a)=>{a.d(t,{P:()=>k});var s=a(79777),i=a(46878),l=a(65e3),n=a(25665),r=a(10142),d=a(99294),o=a(14075),c=a(70340),u=a(55842),v=a(43862),p=a(90808),h=a(20760),m=a(73287),b=a(37711);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 j=a(10161);const N=(0,d.cn)("ydb-pdisk-info");function k(e){let{pDisk:t,nodeId:a,withPDiskPageLink:d,className:b}=e;const g=(0,u.ix)(l.VH),[k,y,I,f]=function(e){let{pDisk:t,nodeId:a,withPDiskPageLink:s,isUserAllowedToMakeChanges:l}=e;const{PDiskId:d,Path:u,Guid:v,Category:b,Type:g,Device:k,Realtime:y,State:I,SerialNumber:f,TotalSize:w,AllocatedSize:D,StatusV2:S,NumActiveSlots:T,ExpectedSlotCount:P,LogUsedSize:z,LogTotalSize:V,SystemSize:A,SharedWithOs:C}=t||{},E=[];(0,n.D)(b)&&E.push({label:x("type"),value:g}),(0,n.D)(u)&&E.push({label:x("path"),value:u}),(0,n.D)(v)&&E.push({label:x("guid"),value:v}),f&&E.push({label:x("serial-number"),value:f}),(0,n.D)(C)&&E.push({label:x("shared-with-os"),value:x("yes")});const q=[];(0,n.D)(S)&&q.push({label:x("drive-status"),value:S}),(0,n.D)(I)&&q.push({label:x("state"),value:I}),(0,n.D)(k)&&q.push({label:x("device"),value:(0,j.jsx)(m.J,{status:k})}),(0,n.D)(y)&&q.push({label:x("realtime"),value:(0,j.jsx)(m.J,{status:y})});const R=[];R.push({label:x("space"),value:(0,j.jsx)(h.y,{value:D,capacity:w,formatValues:o.q3,colorizeProgress:!0})}),(0,n.D)(T)&&(0,n.D)(P)&&R.push({label:x("slots"),value:(0,j.jsx)(h.y,{value:T,capacity:P})}),(0,n.D)(z)&&(0,n.D)(V)&&R.push({label:x("log-size"),value:(0,j.jsx)(h.y,{value:z,capacity:V,formatValues:o.q3})}),(0,n.D)(A)&&R.push({label:x("system-size"),value:(0,r.td)({value:A})});const L=[];if((s||l)&&(0,n.D)(d)&&(0,n.D)(a)){const e=(0,i.ds)(d,a),t=(0,c.ok)({nodeId:a,pDiskId:d});L.push({label:x("links"),value:(0,j.jsxs)("span",{className:N("links"),children:[s&&(0,j.jsx)(p.j,{title:x("pdisk-page"),url:e,external:!1}),l&&(0,j.jsx)(p.j,{title:x("developer-ui"),url:t})]})})}return[E,q,R,L]}({pDisk:t,nodeId:a,withPDiskPageLink:d,isUserAllowedToMakeChanges:g});return(0,j.jsxs)(s.k,{className:b,gap:2,direction:"row",wrap:!0,children:[(0,j.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,j.jsx)(v._,{info:k,renderEmptyState:()=>null}),(0,j.jsx)(v._,{info:I,renderEmptyState:()=>null})]}),(0,j.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,j.jsx)(v._,{info:y,renderEmptyState:()=>null}),(0,j.jsx)(v._,{info:f,renderEmptyState:()=>null})]})]})}},76217:(e,t,a)=>{a.d(t,{P:()=>b});var s=a(83797),i=a(2194),l=a(46878),n=a(65e3),r=a(70340),d=a(55842),o=a(61168),c=a(62508),u=a(90808),v=a(37711);const p=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),h=(0,v.wZ)("ydb-tablet-name-wrapper",{en:p});var m=a(10161);function b(e){let{tabletId:t,database:a}=e;const v=(0,d.ix)(n.VH),p=(0,l.fK)(t,{tenantName:a});return(0,m.jsx)(o.l,{disabled:!v,content:(0,m.jsx)(s.w,{responsive:!0,children:(0,m.jsx)(s.w.Item,{name:h("field_links"),children:(0,m.jsx)(u.j,{title:h("context_developer-ui"),url:(0,r.wz)(t)})})}),placement:["top","bottom"],behavior:i.x.Immediate,children:(0,m.jsx)(c.A,{name:t.toString(),path:p,hasClipboardButton:!0,showStatus:!1})})}},59907:(e,t,a)=>{a.d(t,{f:()=>n});var s=a(2634),i=a(55973),l=a(10161);function n(e){let{state:t}=e;return(0,l.jsx)(s._,{theme:(0,i.KR)(t),children:t})}},13618:(e,t,a)=>{a.d(t,{$:()=>d});a(34706);var s=a(79777),i=a(99294),l=a(10161);const n=(0,i.cn)("tag"),r=e=>{let{text:t,type:a}=e;return(0,l.jsx)("div",{className:n({type:a}),children:t})},d=e=>{let{tags:t,tagsType:a,className:i="",gap:n=1}=e;return(0,l.jsx)(s.k,{className:i,gap:n,wrap:"wrap",alignItems:"center",children:t&&t.map(((e,t)=>(0,l.jsx)(r,{text:e,type:a},t)))})}},33100:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>ke,STORAGE_ROLE:()=>Ne});var s=a(34706),i=a(72555),l=a(42152),n=a(55783),r=a(26836),d=a(74003),o=a(15152),c=a(14561),u=a(99294),v=a(70340),p=a(62508),h=a(13618),m=a(10161);const b=(0,u.cn)("basic-node-viewer"),g=e=>{let t,{node:a,additionalNodesProps:i,className:l}=e;return null!==i&&void 0!==i&&i.getNodeRef?t=i.getNodeRef(a)+"internal":a.NodeId&&(t=(0,v.wq)(a.NodeId)+"internal"),(0,m.jsx)("div",{className:b(null,l),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:o.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(15327),j=a(27810),N=a(43862);const k=(0,u.cn)("ydb-pool-usage"),y=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},I=e=>{let{data:t={}}=e;const{Threads:a,Name:s="Unknown",Usage:i=0}=t,l=i&&a,n=Math.floor(100*i),r=n>100?100:n;return(0,m.jsxs)("div",{className:k(),children:[(0,m.jsxs)("div",{className:k("info"),children:[(0,m.jsx)("div",{className:k("pool-name"),children:s}),l&&(0,m.jsxs)("div",{className:k("value"),children:[(0,m.jsxs)("div",{className:k("percents"),children:[n<1?"<1":n,"%"]}),(0,m.jsxs)("div",{className:k("threads"),children:["(\xd7",a,")"]})]})]}),(0,m.jsx)("div",{className:k("visual"),children:(0,m.jsx)("div",{className:k("usage-line",{type:y(r)}),style:{width:`${r}%`}})})]})};var f=a(20760);const w=(0,u.cn)("full-node-viewer"),D=e=>{var t,a,s,i;let{node:l,className:n}=e;const r=null===l||void 0===l||null===(t=l.Endpoints)||void 0===t?void 0:t.map((e=>{let{Name:t,Address:a}=e;return{label:t,value:a}})),d=[];null!==l&&void 0!==l&&null!==(a=l.Tenants)&&void 0!==a&&a.length&&d.push({label:"Database",value:l.Tenants[0]}),d.push({label:"Version",value:null===l||void 0===l?void 0:l.Version},{label:"Uptime",value:null===l||void 0===l?void 0:l.Uptime},{label:"DC",value:(null===l||void 0===l?void 0:l.DataCenterDescription)||(null===l||void 0===l?void 0:l.DC)},{label:"Rack",value:null===l||void 0===l?void 0:l.Rack});const o=null===l||void 0===l||null===(s=l.LoadAveragePercents)||void 0===s?void 0:s.map(((e,t)=>({label:j.x5[t],value:(0,m.jsx)(f.y,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,m.jsx)("div",{className:`${w()} ${n}`,children:l?(0,m.jsxs)("div",{className:w("common-info"),children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:w("section-title"),children:"Pools"}),(0,m.jsx)("div",{className:w("section",{pools:!0}),children:null===l||void 0===l||null===(i=l.PoolStats)||void 0===i?void 0:i.map(((e,t)=>(0,m.jsx)(I,{data:e},t)))})]}),r&&r.length&&(0,m.jsx)(N._,{title:"Endpoints",className:w("section"),info:r}),(0,m.jsx)(N._,{title:"Common info",className:w("section"),info:d}),(0,m.jsx)(N._,{title:"Load average",className:w("section",{average:!0}),info:o})]}):(0,m.jsx)("div",{className:"error",children:"no data"})})};var S=a(66498),T=a(46878),P=a(39202),z=a(85709),V=a(78759),A=a(96183);const C=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,A.Ns)(a)},E=V.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:C(e)}}catch(i){return{error:i}}},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(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"});var q=a(55842),R=a(92025),L=a(28265),_=a(75544),O=a(55102),U=a.n(O),F=a(99495),J=a(67386),Z=a(14075),G=a(84953);const H=(0,J.P1)((e=>e),(e=>E.endpoints.getNodeStructure.select({nodeId:e}))),$=(0,J.P1)((e=>e),((e,t)=>H(t)),((e,t)=>t(e).data)),M=(0,J.P1)(((e,t)=>Number(t)),((e,t)=>$(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 i;const l=null===(i=a.VDisks)||void 0===i?void 0:i.filter((t=>t.NodeId===e)).map(G.w);null===l||void 0===l||l.forEach((a=>{const i=(0,Z.a2)(a.VDiskId),l=(0,G.b)(a.PDisk),n=l.PDiskId;s[String(n)]||(s[String(n)]={vDisks:{},...l}),s[String(n)].vDisks[i]={...a,PDiskId:n,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,i=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:i},e}),{})}));var B=a(29254),K=a(71624),Q=a(72616),Y=a(16318),X=a(81778),W=a(50377),ee=a(73287),te=a(49263),ae=a(77468),se=a(38392),ie=a(25665),le=a(37711);const ne=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),re=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"}'),de=(0,le.wZ)("ydb-node-page",{en:ne,ru:re}),oe=(0,u.cn)("kv-node-structure");function ce(e){let{label:t,value:a,className:s}=e;return(0,m.jsxs)("span",{className:oe("pdisk-title-item",s),children:[t&&(0,m.jsxs)("span",{className:oe("pdisk-title-item-label"),children:[t,":"]}),(0,m.jsx)("span",{className:oe("pdisk-title-item-value"),children:a})]})}const ue=(0,u.cn)("kv-node-structure");var ve;!function(e){e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info"}(ve||(ve={}));const pe={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function he(e){let{pDiskId:t,selectedVdiskId:a,nodeId:s}=e;return[{name:ve.slotId,header:pe[ve.slotId],width:100,render:e=>{let{row:i}=e;const l=i.VDiskSlotId;let n=null;return(0,ie.D)(s)&&(0,ie.D)(t)&&(0,ie.D)(l)&&(n=(0,v.yf)({nodeId:s,pDiskId:t,vDiskSlotId:l})),(0,m.jsxs)("div",{className:ue("vdisk-id",{selected:i.id===a}),children:[(0,m.jsx)("span",{children:l}),n&&(0,m.jsx)(Q.z,{size:"s",className:ue("external-button",{hidden:!0}),href:n,target:"_blank",title:de("vdisk.developer-ui-button-title"),children:(0,m.jsx)(c.J,{data:o.Z})})]})},align:K.ZP.LEFT},{name:ve.VDiskState,header:pe[ve.VDiskState],width:70,render:e=>{let{row:t}=e;return(0,m.jsx)(ee.J,{status:t.VDiskState===se.H.OK?ae.K.Green:ae.K.Red})},sortAccessor:e=>e.VDiskState===se.H.OK?1:0,align:K.ZP.CENTER},{name:ve.Size,header:pe[ve.Size],width:170,render:e=>{let{row:t}=e;return(0,m.jsx)(f.y,{value:t.AllocatedSize,capacity:Number(t.AllocatedSize)+Number(t.AvailableSize),formatValues:Z.q3,colorizeProgress:!0})},sortAccessor:e=>Number(e.AllocatedSize),align:K.ZP.CENTER},{name:ve.Info,header:pe[ve.Info],width:70,render:e=>{let{row:t}=e;return(0,m.jsx)(Y.J,{placement:["right"],content:(0,m.jsx)(te.K,{data:t,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:ue("vdisk-details"),children:(0,m.jsx)(Q.z,{view:"flat-secondary",className:ue("vdisk-details-button",{selected:t.id===a}),children:(0,m.jsx)(c.J,{data:B.Z,size:18})})})},sortable:!1}]}function me(e){let{id:t,data:a,selectedVdiskId:i,nodeId:l,unfolded:n}=e;const[r,d]=s.useState(null!==n&&void 0!==n&&n),{TotalSize:o=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:p,vDisks:h}=a,b=Number(o),g=Number(c);return(0,m.jsxs)("div",{className:ue("pdisk"),id:t,children:[(0,m.jsxs)("div",{className:ue("pdisk-header"),children:[(0,m.jsxs)("div",{className:ue("pdisk-title-wrapper"),children:[(0,m.jsx)(ee.J,{status:u}),(0,m.jsx)(ce,{label:"PDiskID",value:v,className:ue("pdisk-title-id")}),(0,m.jsx)(ce,{value:p,className:ue("pdisk-title-type")}),(0,m.jsx)(f.y,{value:b-g,capacity:b,formatValues:Z.q3,colorizeProgress:!0,className:ue("pdisk-title-size")}),(0,m.jsx)(ce,{label:"VDisks",value:h.length})]}),(0,m.jsx)(Q.z,{onClick:r?()=>{d(!1)}:()=>{d(!0)},view:"flat-secondary",children:(0,m.jsx)(X.F,{direction:r?"top":"bottom"})})]}),r&&(U()(a)?(0,m.jsx)("div",{children:"No information about PDisk"}):(0,m.jsxs)("div",{children:[(0,m.jsx)(W.P,{pDisk:a,nodeId:l,className:ue("pdisk-details"),withPDiskPageLink:!0}),(0,m.jsxs)("div",{className:ue("vdisks-container"),children:[(0,m.jsx)("div",{className:ue("vdisks-header"),children:"VDisks"}),(0,m.jsx)(K.ZP,{theme:"yandex-cloud",data:h,columns:he({nodeId:l,pDiskId:v,selectedVdiskId:i}),settings:{...j.LE,dynamicRender:!1},rowClassName:e=>e.id===i?ue("selected-vdisk"):""})]})]}))]})}const be=(0,u.cn)("kv-node-structure");function ge(e){let{type:t,id:a}=e;return`${t}-${a}`}const xe=function(e){let{nodeId:t,className:a}=e;const i=(0,q.ix)((e=>M(e,t))),[l]=(0,q.Rj)(),{currentData:n,isFetching:r,error:d}=E.useGetNodeStructureQuery({nodeId:t},{pollingInterval:l}),o=r&&void 0===n,[{pdiskId:c,vdiskId:u}]=(0,F.useQueryParams)({pdiskId:F.StringParam,vdiskId:F.StringParam}),v=s.useRef(null),p=s.useRef(!1);return s.useEffect((()=>{if(!U()(i)&&!p.current&&v.current&&c){const t=document.getElementById(ge({type:"pdisk",id:c}));let a=0;if(u){var e;const t=null===(e=i[c])||void 0===e?void 0:e.vDisks,s=null===t||void 0===t?void 0:t.find((e=>e.id===u)),l=s?document.querySelector(".data-table"):void 0,n=(null===s||void 0===s?void 0:s.order)||0;l&&(a+=l.offsetTop+40*n)}t&&(v.current.scrollTo({behavior:"smooth",top:a||t.offsetTop}),p.current=!0)}}),[i,c,u]),(0,m.jsxs)("div",{className:be(),ref:v,children:[d?(0,m.jsx)(x.V,{error:d,className:be("error")}):null,(0,m.jsx)("div",{className:a,children:o?(0,m.jsx)(S.a,{size:"m"}):d&&!n?null:(()=>{const e=Object.keys(i);return e.length>0?e.map((e=>(0,m.jsx)(me,{data:i[e],id:ge({type:"pdisk",id:e}),unfolded:c===e,selectedVdiskId:u,nodeId:t},e))):"There is no information about node structure."})()})]})},je=(0,u.cn)("node"),Ne="Storage";function ke(e){var t,a;const o=s.useRef(null),c=(0,q.zL)(),u=(0,n.TH)(),v=null!==(t=(0,n.$B)(T.ZP.node))&&void 0!==t?t:Object.create(null),{id:p,activeTab:h}=v.params,{tenantName:b}=(0,T.mB)(u),[j]=(0,q.Rj)(),{currentData:N,isFetching:k,error:y}=E.useGetNodeInfoQuery({nodeId:p},{pollingInterval:j}),I=k&&void 0===N,f=N,w=(0,P.rU)(),V=(0,P.X_)(),{activeTabVerified:A,nodeTabs:C}=s.useMemo((()=>{var e;let t=(null===f||void 0===f||null===(e=f.Roles)||void 0===e?void 0:e.find((e=>e===Ne)))?_.ZJ:_.ZJ.filter((e=>e.id!==_.P_));V&&(t=t.filter((e=>e.id!==_.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,f,V]),O=(null===f||void 0===f||null===(a=f.Tenants)||void 0===a?void 0:a[0])||(null===b||void 0===b?void 0:b.toString());let U;if(f){var F;const e=!(null!==f&&void 0!==f&&null!==(F=f.Tenants)&&void 0!==F&&F[0]);U=e?"Storage":"Compute"}s.useEffect((()=>{c((0,z.J)("node",{tenantName:O,nodeRole:U,nodeId:p}))}),[c,O,p,U]);const J=()=>{switch(A.id){case _.P_:return(0,m.jsx)("div",{className:je("storage"),children:(0,m.jsx)(R.V,{nodeId:p,parentRef:o})});case _.IA:return(0,m.jsx)(L.J,{nodeId:p,database:O,className:je("node-page-wrapper")});case _.pV:return(0,m.jsx)(xe,{className:je("node-page-wrapper"),nodeId:p});case _.mD:return(0,m.jsx)(D,{node:f,className:je("overview-wrapper")});default:return!1}};return I||!w?(0,m.jsx)(S.a,{size:"l"}):f?(0,m.jsxs)("div",{className:je(null,e.className),ref:o,children:[(0,m.jsx)(l.ql,{titleTemplate:`%s \u2014 ${f.Host} \u2014 YDB Monitoring`,defaultTitle:`${f.Host} \u2014 YDB Monitoring`,children:(0,m.jsx)("title",{children:A.title})}),(0,m.jsx)(g,{node:f,additionalNodesProps:e.additionalNodesProps,className:je("header")}),y?(0,m.jsx)(x.V,{error:y,className:je("error")}):null,(0,m.jsxs)("div",{className:je("tabs"),children:[(0,m.jsx)(i.m,{size:"l",items:C,activeTab:A.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:O}),className:je("tab"),children:t},a)},allowNotSelected:!0}),(0,m.jsx)(d.q,{})]}),(0,m.jsx)("div",{className:je("content"),children:J()})]}):y?(0,m.jsx)(x.V,{error:y}):(0,m.jsx)("div",{className:"error",children:"no node data"})}},72427:(e,t,a)=>{a.d(t,{O:()=>D});var s=a(73878),i=a(23795),l=a(14561),n=a(55982),r=a(62508),d=a(67653),o=a(74116),c=a(22877),u=a(76217),v=a(59907),p=a(65e3),h=a(6215),m=a(9038),b=a(27810),g=a(14075),x=a(55842),j=a(75544),N=a(37711);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"}'),y=(0,N.wZ)("ydb-tablets",{en:k});var I=a(10161);function f(e){let{database:t}=e;return[{name:"Type",width:150,get header(){return y("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,I.jsxs)("span",{children:[t.Type," ",a?(0,I.jsx)(i.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return y("Tablet")},render:e=>{let{row:a}=e;return a.TabletId?(0,I.jsx)(u.P,{tabletId:a.TabletId,database:t}):b.jX}},{name:"State",get header(){return y("State")},render:e=>{let{row:t}=e;return(0,I.jsx)(v.f,{state:t.State})}},{name:"NodeId",get header(){return y("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,j.a3)(t.NodeId);return(0,I.jsx)(d.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return y("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,I.jsx)(r.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,I.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return y("Generation")},align:"right"},{name:"Uptime",get header(){return y("Uptime")},render:e=>{let{row:t}=e;return(0,g.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,I.jsx)(w,{...t})}}]}function w(e){const t=e.State===m.g.Stopped,a=(0,x.ix)(p.VH),[i]=h._.useKillTabletMutation(),r=e.TabletId;return r?(0,I.jsx)(n.U,{buttonView:"outlined",dialogHeader:y("dialog.kill-header"),dialogText:y("dialog.kill-text"),onConfirmAction:()=>i({id:r}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:y("controls.kill-not-allowed"),popoverDisabled:a,children:(0,I.jsx)(l.J,{data:s.Z})}):null}function D(e){let{database:t,tablets:a,className:s,loading:i}=e;return i?(0,I.jsx)(c.h,{}):(0,I.jsx)(o.G,{wrapperClassName:s,columns:f({database:t}),data:a,settings:b.LE,emptyDataMessage:y("noTabletsData")})}},28265:(e,t,a)=>{a.d(t,{J:()=>j});var s=a(64485),i=a(15327),l=a(67386),n=a(74647),r=a.n(n),d=a(78759),o=a(4969);const c=d.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"}),u=(0,l.P1)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:l.PP,argsMemoizeOptions:{equalityCheck:r()}}),v=(0,l.P1)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),p=(0,l.P1)(((e,t)=>v(e,t)),(e=>(0,o.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 h=a(99294),m=a(55842),b=a(72427),g=a(10161);const x=(0,h.cn)("tablets");function j(e){let{nodeId:t,path:a,database:l,className:n}=e;const[r]=(0,m.Rj)();let d={};const o=void 0===t?void 0:String(t);void 0!==o?d={nodeId:o,database:l}:a&&(d={path:a,database:l});const{currentData:u,isFetching:v,error:h}=c.useGetTabletsInfoQuery(0===Object.keys(d).length?s.CN:d,{pollingInterval:r}),j=v&&void 0===u,N=(0,m.ix)((e=>p(e,d)));return(0,g.jsxs)("div",{className:x(null,n),children:[h?(0,g.jsx)(i.V,{error:h}):null,u||j?(0,g.jsx)(b.O,{tablets:N,database:l,loading:j}):null]})}},6215:(e,t,a)=>{a.d(t,{_:()=>i});var s=a(96183);const i=a(78759).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:i}=e,{signal:l}=t;try{const[e,t,n]=await Promise.all([window.api.getTablet({id:a,database:i},{signal:l}),window.api.getTabletHistory({id:a,database:i},{signal:l}),window.api.getNodesList({signal:l})]),r=(0,s.Xs)(n),d=Object.keys(t).reduce(((e,a)=>{var s;const i=null===(s=t[a])||void 0===s?void 0:s.TabletStateInfo;if(i&&i.length){const t=i.find((e=>e.Leader))||i[0],{ChangeTime:s,Generation:l,State:n,Leader:d,FollowerId:o}=t,c=r&&a?r.get(Number(a)):void 0;"Dead"!==n&&e.push({nodeId:a,generation:l,changeTime:s,state:n,leader:d,followerId:o,fqdn:c})}return e}),[]),{TabletStateInfo:o=[]}=e,[c={}]=o,{TabletId:u}=c;return{data:{id:u,data:c,history:d}}}catch(n){return{error:n}}},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:i}=a;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${i}`}}catch(i){return{error:i}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:a,hiveId:s}=e,{signal:i}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:s},{signal:i})}}catch(l){return{error:l}}},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"})},73878:(e,t,a)=>{a.d(t,{Z:()=>i});var s=a(34706);const i=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 1.5a6.501 6.501 0 0 0-6.445 5.649.75.75 0 1 0 1.488.194A5.001 5.001 0 0 1 11.57 4.5h-1.32a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.06A6.48 6.48 0 0 0 8 1.5Zm-5.25 13a.75.75 0 0 1-.75-.75v-3a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5H4.43a5.001 5.001 0 0 0 8.528-2.843.75.75 0 1 1 1.487.194A6.501 6.501 0 0 1 3.5 12.691v1.059a.75.75 0 0 1-.75.75Z",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3933.1914913e.chunk.js b/ydb/core/viewer/monitoring/static/js/3933.1914913e.chunk.js new file mode 100644 index 0000000000..17d84ea37d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3933.1914913e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3933],{28265:(e,t,a)=>{"use strict";a.d(t,{J:()=>b});var n=a(64485),r=a(15327),i=a(67386),s=a(74647),o=a.n(s),l=a(78759),c=a(4969);const d=l.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"}),u=(0,i.P1)((e=>e),(e=>d.endpoints.getTabletsInfo.select(e)),{argsMemoize:i.PP,argsMemoizeOptions:{equalityCheck:o()}}),m=(0,i.P1)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),p=(0,i.P1)(((e,t)=>m(e,t)),(e=>(0,c.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 h=a(99294),v=a(55842),x=a(72427),g=a(10161);const y=(0,h.cn)("tablets");function b(e){let{nodeId:t,path:a,database:i,className:s}=e;const[o]=(0,v.Rj)();let l={};const c=void 0===t?void 0:String(t);void 0!==c?l={nodeId:c,database:i}:a&&(l={path:a,database:i});const{currentData:u,isFetching:m,error:h}=d.useGetTabletsInfoQuery(0===Object.keys(l).length?n.CN:l,{pollingInterval:o}),b=m&&void 0===u,f=(0,v.ix)((e=>p(e,l)));return(0,g.jsxs)("div",{className:y(null,s),children:[h?(0,g.jsx)(r.V,{error:h}):null,u||b?(0,g.jsx)(x.O,{tablets:f,database:i,loading:b}):null]})}},16033:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Hv});var n=a(34706),r=a(42152),i=a(99495),s=a(93225),o=a(48653),l=a(28206),c=a(99294),d=a(10161);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,i=n||p;t&&(r(i),a(i))}),[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,x,g=a(85709),y=a(67386),b=a(64485);let f,E;var S;let T,j;var N,C,w,P,I;let D;var _,R,A,O,M,k,L;!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"}(v||(v={})),function(e){e.UNKNOWN="UNKNOWN",e.USER="USER",e.GROUP="GROUP"}(x||(x={})),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"}(f||(f={})),function(e){e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl"}(E||(E={})),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"}(T||(T={})),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"}(j||(j={})),function(e){e.ECdcStreamModeInvalid="ECdcStreamModeInvalid",e.ECdcStreamModeKeysOnly="ECdcStreamModeKeysOnly",e.ECdcStreamModeUpdate="ECdcStreamModeUpdate",e.ECdcStreamModeNewImage="ECdcStreamModeNewImage",e.ECdcStreamModeOldImage="ECdcStreamModeOldImage",e.ECdcStreamModeNewAndOldImages="ECdcStreamModeNewAndOldImages"}(N||(N={})),function(e){e.ECdcStreamFormatInvalid="ECdcStreamFormatInvalid",e.ECdcStreamFormatProto="ECdcStreamFormatProto",e.ECdcStreamFormatJson="ECdcStreamFormatJson"}(C||(C={})),function(e){e.ECdcStreamStateInvalid="ECdcStreamStateInvalid",e.ECdcStreamStateReady="ECdcStreamStateReady",e.ECdcStreamStateDisabled="ECdcStreamStateDisabled"}(w||(w={})),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"}(I||(I={})),function(e){e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS"}(D||(D={})),function(e){e.SysLog="SysLog",e.Log="Log",e.Data="Data",e.External="External"}(_||(_={})),function(e){e.Unspecified="Unspecified",e.Freeze="Freeze",e.Unfreeze="Unfreeze"}(R||(R={})),function(e){e.ColumnCacheNone="ColumnCacheNone",e.ColumnCacheOnce="ColumnCacheOnce",e.ColumnCacheEver="ColumnCacheEver"}(A||(A={})),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"}(O||(O={})),function(e){e.CompactionStrategyUnset="CompactionStrategyUnset",e.CompactionStrategyGenerational="CompactionStrategyGenerational",e.CompactionStrategySharded="CompactionStrategySharded"}(M||(M={})),function(e){e.EIndexTypeInvalid="EIndexTypeInvalid",e.EIndexTypeGlobal="EIndexTypeGlobal",e.EIndexTypeGlobalAsync="EIndexTypeGlobalAsync"}(k||(k={})),function(e){e.EIndexStateInvalid="EIndexStateInvalid",e.EIndexStateReady="EIndexStateReady",e.EIndexStateNotReady="EIndexStateNotReady",e.EIndexStateWriteOnly="EIndexStateWriteOnly"}(L||(L={}));const z={[E.EPathSubTypeSyncIndexImplTable]:"index_table",[E.EPathSubTypeAsyncIndexImplTable]:"index_table",[E.EPathSubTypeStreamImpl]:void 0,[E.EPathSubTypeEmpty]:void 0},q={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:"database",[f.EPathTypeExtSubDomain]:"database",[f.EPathTypeDir]:"directory",[f.EPathTypeColumnStore]:"directory",[f.EPathTypeTable]:"table",[f.EPathTypeTableIndex]:"index",[f.EPathTypeColumnTable]:"column_table",[f.EPathTypeCdcStream]:"stream",[f.EPathTypePersQueueGroup]:"topic",[f.EPathTypeExternalDataSource]:"external_data_source",[f.EPathTypeExternalTable]:"external_table",[f.EPathTypeView]:"view",[f.EPathTypeReplication]:"async_replication"},U={table:f.EPathTypeTable,index:f.EPathTypeTableIndex,column_table:f.EPathTypeColumnTable,external_table:f.EPathTypeExternalTable,view:f.EPathTypeView},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.EPathTypeDir,t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"directory";return t&&z[t]||q[e]||a},Q={[E.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[E.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[E.EPathSubTypeStreamImpl]:void 0,[E.EPathSubTypeEmpty]:void 0},G={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:"Database",[f.EPathTypeExtSubDomain]:"Database",[f.EPathTypeDir]:"Directory",[f.EPathTypeTable]:"Table",[f.EPathTypeTableIndex]:"Secondary Index",[f.EPathTypeColumnStore]:"Tablestore",[f.EPathTypeColumnTable]:"Column-oriented table",[f.EPathTypeCdcStream]:"Changefeed",[f.EPathTypePersQueueGroup]:"Topic",[f.EPathTypeExternalDataSource]:"External Data Source",[f.EPathTypeExternalTable]:"External Table",[f.EPathTypeView]:"View",[f.EPathTypeReplication]:"Async Replication"},B={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},$=e=>e&&B[e],V={[f.EPathTypeTable]:!0,[f.EPathTypeColumnTable]:!0,[f.EPathTypeExternalTable]:!0,[f.EPathTypeView]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeReplication]:!1},H=e=>{var t;return null!==(t=e&&V[e])&&void 0!==t&&t},Z={[E.EPathSubTypeSyncIndexImplTable]:!0,[E.EPathSubTypeAsyncIndexImplTable]:!0,[E.EPathSubTypeStreamImpl]:!1,[E.EPathSubTypeEmpty]:!1},W=e=>{var t;return null!==(t=e&&Z[e])&&void 0!==t&&t},J={[f.EPathTypeColumnStore]:!0,[f.EPathTypeColumnTable]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},K=e=>{var t;return null!==(t=e&&J[e])&&void 0!==t&&t},Y={[f.EPathTypeSubDomain]:!0,[f.EPathTypeExtSubDomain]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},X=e=>{var t;return null!==(t=e&&Y[e])&&void 0!==t&&t},ee={[f.EPathTypeCdcStream]:!0,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeInvalid]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},te=e=>{var t;return null!==(t=e&&ee[e])&&void 0!==t&&t},ae={[E.EPathSubTypeSyncIndexImplTable]:!0,[E.EPathSubTypeAsyncIndexImplTable]:!0,[E.EPathSubTypeStreamImpl]:!1,[E.EPathSubTypeEmpty]:!1},ne={[f.EPathTypeCdcStream]:!0,[f.EPathTypePersQueueGroup]:!0,[f.EPathTypeExternalDataSource]:!0,[f.EPathTypeExternalTable]:!0,[f.EPathTypeView]:!0,[f.EPathTypeReplication]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1},re=(e,t)=>{var a;return null!==(a=t&&ae[t]||e&&ne[e])&&void 0!==a&&a},ie=(f.EPathTypeCdcStream,f.EPathTypePersQueueGroup,f.EPathTypeInvalid,f.EPathTypeColumnStore,f.EPathTypeColumnTable,f.EPathTypeDir,f.EPathTypeTable,f.EPathTypeSubDomain,f.EPathTypeTableIndex,f.EPathTypeExtSubDomain,f.EPathTypeExternalDataSource,f.EPathTypeExternalTable,f.EPathTypeView,f.EPathTypeReplication,e=>e===f.EPathTypeExternalTable),se=e=>e===f.EPathTypeTable,oe=e=>e===f.EPathTypeView;var le=a(78759);const ce=le.h.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async(e,t)=>{let{paths:a,database:n}=e,{signal:r}=t;try{return{data:await Promise.all(a.map((e=>window.api.getDescribe({path:e,database:n},{signal:r}))))}}catch(i){return{error:i}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:r}=t;try{return{data:await window.api.getDescribe({path:a,database:n},{signal:r})}}catch(i){return{error:i}}},keepUnusedDataFor:0,providesTags:["All"]})})}),de=(0,y.P1)((e=>e),((e,t)=>t),((e,t)=>ce.endpoints.getOverview.select({path:e,database:t}))),ue=(0,y.P1)((e=>e),((e,t,a)=>de(t,a)),((e,t)=>t(e).data)),me=(0,y.P1)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=ue(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>te(t)?null===a||void 0===a?void 0:a.map((t=>{let{Name:a}=t;return e+"/"+a})):void 0));function pe(e){let{paths:t,database:a,autoRefreshInterval:n}=e;const[r,...i]=t,{currentData:s,isFetching:o,error:l}=ce.useGetOverviewQuery({path:r,database:a},{pollingInterval:n}),{currentData:c,isFetching:d,error:u}=ce.useGetMultiOverviewQuery(i.length?{paths:i,database:a}:b.CN,{pollingInterval:n});return{loading:o&&void 0===s||d&&void 0===c,error:l||u,mergedDescribe:[s,...null!==c&&void 0!==c?c:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var he=a(27810),ve=a(55842),xe=a(53785),ge=a(53096),ye=a(72555),be=a(26836),fe=a(74003),Ee=a(39202),Se=a(27084),Te=a(26390),je=a(19912),Ne=a(15327),Ce=a(66498),we=a(51992),Pe=a(32678),Ie=a(38980),De=a(42542),_e=a.n(De),Re=a(46878),Ae=a(78276);const Oe=(0,c.cn)("heatmap"),Me={width:0,height:0},ke=10,Le=2,ze=e=>{const[t,a]=n.useState(Me),{tablets:r}=e,i=n.useRef(null),s=n.useRef(null);n.useEffect((()=>{const e=i.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,i=n%r*(ke+Le),s=Math.floor(n/r)*(ke+Le);e.fillStyle=a.color||"grey",e.fillRect(i,s,ke,ke)}}(a))})),n.useLayoutEffect((()=>{const e=s.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/(ke+Le)),i=Math.ceil(r.length/n);a({width:t,height:i*(ke+Le),columnsCount:n,rowsCount:i})}}),[]);const o=()=>{let e=i.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=i.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=ke+Le,i=ke+Le,s=Math.floor(e/r);return n*Math.floor(a/i)+s},u=_e()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const i=e.parentRef.current,s=t-l()+i.scrollLeft,d=a-o()+i.scrollTop,u=c(s,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:s,className:Oe("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:i,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,i=t.clientY-o()+a.scrollTop,s=c(n,i),d=r[s];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,Re.fK)(t);return`https://${[a,Ae.EZ,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},qe={r:255,g:4,b:0},Ue={r:255,g:219,b:77},Fe={r:59,g:201,b:53},Qe={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}},Ge=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Be=(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),i=(t.b-a.b)/(e-1),s=[];for(let o=0;o<e;o++)s.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-i*o)});return s.map((e=>(e=>{let{r:t,g:a,b:n}=e;return`#${Ge(t)}${Ge(a)}${Ge(n)}`})(e)))},$e=e=>{const t=Math.floor(e/2),a=t+1;return[...Be(e%2===0?t:t+1,Fe,Ue),...Be(a,Ue,qe).slice(1)]},Ve=(e,t)=>{const a=new Set,n=Qe[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]}},He=(0,c.cn)("histogram"),Ze=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:i,leftBound:s,rightBound:o,color:l}=a,c=i/r*100;return(0,d.jsx)("div",{ref:t,className:He("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:i,leftBound:s,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},We=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=Ve(a,t),i=$e(50),s=(r-n)/50,o=i.map(((e,t)=>({color:e,count:0,leftBound:(0,Ie.uf)(n+t*s),rightBound:(0,Ie.uf)(n+(t+1)*s)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),i=Math.floor(r/s),c=(null===(n=o[i])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[i]={...o[i],count:c}}));return(0,d.jsx)("div",{className:He(),children:(0,d.jsxs)("div",{className:He("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(Ze,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:He("x-min"),children:(0,Ie.uf)(n)}),(0,d.jsx)("div",{className:He("x-max"),children:(0,Ie.uf)(r)}),(0,d.jsx)("div",{className:He("y-min"),children:"0"}),(0,d.jsx)("div",{className:He("y-max"),children:(0,Ie.uf)(l)})]})})},Je=(0,c.cn)("heatmap"),Ke=$e(500),Ye=e=>{let{path:t,database:a}=e;const r=(0,ve.zL)(),i=n.createRef(),[s]=(0,ve.Rj)(),{currentData:o,isFetching:l,error:c}=we.Vc.useGetHeatmapTabletsInfoQuery({path:t,database:a},{pollingInterval:s}),u=l&&void 0===o,{tablets:m=[],metrics:p}=o||{},{sort:h,heatmap:v,currentMetric:x}=(0,ve.ix)((e=>e.heatmap)),g=function(){r((0,Pe.hJ)(...arguments))},y=()=>{r((0,Pe.i8)())},b=e=>{r((0,we.U_)({currentMetric:e[0]}))},f=()=>{r((0,we.U_)({sort:!h}))},E=()=>{r((0,we.U_)({heatmap:!v}))},S=()=>{const{min:e,max:t}=Ve(x,m),a=m.map((a=>{var n;const r=x&&Number(null===(n=a.metrics)||void 0===n?void 0:n[x]),i=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),s=Ke[i];return{...a,color:s,value:r,formattedValue:(0,Ie.uf)(r),currentMetric:x}})),n=h?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:i,className:Je("items"),children:(0,d.jsx)(ze,{tablets:n,parentRef:i,showTooltip:g,hideTooltip:y})})};return u?(0,d.jsx)(Ce.a,{}):(()=>{const{min:e,max:t}=Ve(x,m);let a;return c&&!o||(a=v?S():(0,d.jsx)(We,{tablets:m,currentMetric:x,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:Je(),children:[(0,d.jsxs)("div",{className:Je("filters"),children:[(0,d.jsx)(Te.P,{className:Je("heatmap-select"),value:x?[x]:[],options:p,onUpdate:b,width:200}),(0,d.jsx)("div",{className:Je("sort-checkbox"),children:(0,d.jsx)(je.X,{onUpdate:f,checked:h,children:"Sort"})}),(0,d.jsx)("div",{className:Je("histogram-checkbox"),children:(0,d.jsx)(je.X,{onUpdate:E,checked:v,children:"Heatmap"})}),(0,d.jsxs)("div",{className:Je("limits"),children:[(0,d.jsxs)("div",{className:Je("limits-block"),children:[(0,d.jsx)("div",{className:Je("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:Je("limits-value"),children:Number.isInteger(e)?(0,Ie.uf)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:Je("limits-block"),children:[(0,d.jsx)("div",{className:Je("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:Je("limits-value"),children:Number.isInteger(t)?(0,Ie.uf)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:Je("limits-block"),children:[(0,d.jsx)("div",{className:Je("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:Je("limits-value"),children:(0,Ie.uf)(m.length)})]})]})]}),c?(0,d.jsx)(Ne.V,{error:c}):null,a]})})()};var Xe=a(78294),et=a(71037),tt=a(74116),at=a(74640);const nt=le.h.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getOperationList(e,{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.cancelOperation(e,{signal:a})}}catch(n){return{error:n}}}}),forgetOperation:e.mutation({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.forgetOperation(e,{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});var rt=a(34973),it=a(17784),st=a(37711);const ot=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),lt=(0,st.wZ)("ydb-operations",{en:ot}),ct={ID:"id",STATUS:"status",CREATED_BY:"created_by",CREATE_TIME:"create_time",END_TIME:"end_time",DURATION:"duration"},dt={[ct.ID]:lt("column_operationId"),[ct.STATUS]:lt("column_status"),[ct.CREATED_BY]:lt("column_createdBy"),[ct.CREATE_TIME]:lt("column_createTime"),[ct.END_TIME]:lt("column_endTime"),[ct.DURATION]:lt("column_duration")},ut=(ct.ID,ct.STATUS,ct.CREATED_BY,ct.CREATE_TIME,ct.END_TIME,ct.DURATION,[{value:"export",content:lt("kind_export")},{value:"ss/backgrounds",content:lt("kind_ssBackgrounds")},{value:"buildindex",content:lt("kind_buildIndex")}]),mt=(0,c.cn)("operations");function pt(e){let{kind:t,searchValue:a,entitiesCountCurrent:r,entitiesCountTotal:i,entitiesLoading:s,handleKindChange:o,handleSearchChange:l}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(it.o,{value:a,onChange:l,placeholder:lt("pleaceholder_search"),className:mt("search")}),(0,d.jsx)(Te.P,{value:[t],width:150,options:ut,onUpdate:e=>o(e[0])}),(0,d.jsx)(rt.C,{label:lt("label_operations"),loading:s,total:i,current:r})]})}var ht=a(42805),vt=a(54296),xt=a(12205),gt=a(23795),yt=a(79777),bt=a(90132),ft=a(14561),Et=a(55982),St=a(61168);let Tt,jt;!function(e){e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR"}(Tt||(Tt={})),function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.STATE_PREPARING="STATE_PREPARING",e.STATE_TRANSFERING_DATA="STATE_TRANSFERING_DATA",e.STATE_APPLYING="STATE_APPLYING",e.STATE_DONE="STATE_DONE",e.STATE_CANCELLATION="STATE_CANCELLATION",e.STATE_CANCELLED="STATE_CANCELLED",e.STATE_REJECTION="STATE_REJECTION",e.STATE_REJECTED="STATE_REJECTED"}(jt||(jt={}));var Nt=a(72484);const Ct=function(e){let{name:t,title:a,type:n,content:r}=e;return Nt.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})};var wt=a(83627);function Pt(e){let{database:t,refreshTable:a}=e;return[{name:ct.ID,header:dt[ct.ID],width:340,render:e=>{let{row:t}=e;return t.id?(0,d.jsx)(St.l,{placement:["top","bottom"],content:t.id,children:t.id}):he.jX}},{name:ct.STATUS,header:dt[ct.STATUS],render:e=>{let{row:t}=e;return t.status?(0,d.jsx)(gt.x,{color:t.status===Tt.SUCCESS?"positive":"danger",children:t.status}):he.jX}},{name:ct.CREATED_BY,header:dt[ct.CREATED_BY],render:e=>{let{row:t}=e;return t.created_by?t.created_by:he.jX}},{name:ct.CREATE_TIME,header:dt[ct.CREATE_TIME],render:e=>{let{row:t}=e;return t.create_time?(0,Ie.o0)((0,wt.aR)(t.create_time)):he.jX},sortAccessor:e=>e.create_time?(0,wt.aR)(e.create_time):0},{name:ct.END_TIME,header:dt[ct.END_TIME],render:e=>{let{row:t}=e;return t.end_time?(0,Ie.o0)((0,wt.aR)(t.end_time)):he.jX},sortAccessor:e=>e.end_time?(0,wt.aR)(e.end_time):Number.MAX_SAFE_INTEGER},{name:ct.DURATION,header:dt[ct.DURATION],render:e=>{let{row:t}=e,a=0;if(!t.create_time)return he.jX;const n=(0,wt.aR)(t.create_time);if(t.end_time){a=(0,wt.aR)(t.end_time)-n}else a=Date.now()-n;const r=a>he.RQ*he.NO?(0,ht.x9)(a).format("hh:mm:ss"):(0,ht.x9)(a).format("mm:ss");return t.end_time?r:lt("label_duration-ongoing",{value:r})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,wt.aR)(e.create_time);if(e.end_time){return(0,wt.aR)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:e=>{let{row:n}=e;return(0,d.jsx)(It,{operation:n,database:t,refreshTable:a})}}]}function It(e){let{operation:t,database:a,refreshTable:n}=e;const[r,{isLoading:i}]=nt.useCancelOperationMutation(),[s,{isLoading:o}]=nt.useForgetOperationMutation(),l=t.id;return l?(0,d.jsxs)(yt.k,{gap:"2",children:[(0,d.jsx)(bt.M,{title:lt("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(Et.U,{buttonView:"outlined",dialogHeader:lt("header_forget"),dialogText:lt("text_forget"),onConfirmAction:()=>s({id:l,database:a}).unwrap().then((()=>{Ct({name:"Forgotten",title:lt("text_forgotten",{id:l}),type:"success"}),n()})),buttonDisabled:i,children:(0,d.jsx)(ft.J,{data:vt.Z})})})}),(0,d.jsx)(bt.M,{title:lt("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(Et.U,{buttonView:"outlined",dialogHeader:lt("header_cancel"),dialogText:lt("text_cancel"),onConfirmAction:()=>r({id:l,database:a}).unwrap().then((()=>{Ct({name:"Cancelled",title:lt("text_cancelled",{id:l}),type:"success"}),n()})),buttonDisabled:o,children:(0,d.jsx)(ft.J,{data:xt.Z})})})})]}):null}var Dt=a(75475);const _t=Dt.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function Rt(e){var t;let{database:a}=e;const[r]=(0,ve.Rj)(),{kind:o,searchValue:l,pageSize:c,pageToken:u,handleKindChange:m,handleSearchChange:p}=function(){var e,t,a;const[n,r]=(0,i.useQueryParams)({kind:i.StringParam,search:i.StringParam,pageSize:i.NumberParam,pageToken:i.StringParam});return{kind:_t.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:h,isFetching:v,error:x,refetch:g}=nt.useGetOperationListQuery({database:a,kind:o,page_size:c,page_token:u},{pollingInterval:r}),y=n.useMemo((()=>null!==h&&void 0!==h&&h.operations?h.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(l.toLowerCase())})):[]),[null===h||void 0===h?void 0:h.operations,l]);return(0,s.u)(x)?(0,d.jsx)(et.J,{position:"left"}):(0,d.jsxs)(at.l,{children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(pt,{kind:o,searchValue:l,entitiesCountCurrent:y.length,entitiesCountTotal:null===h||void 0===h||null===(t=h.operations)||void 0===t?void 0:t.length,entitiesLoading:v,handleKindChange:m,handleSearchChange:p})}),x?(0,d.jsx)(Ne.V,{error:x}):null,(0,d.jsx)(at.l.Table,{loading:v,className:mt("table"),children:h?(0,d.jsx)(tt.G,{columns:Pt({database:a,refreshTable:g}),data:y,emptyDataMessage:lt("title_empty")}):null})]})}var At=a(58095),Ot=a(28265),Mt=a(22877),kt=a(83751);function Lt(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const zt=le.h.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async e=>{let{database:t,path:a}=e;try{var n,r;const e=await window.api.sendQuery({query:Lt(a),database:t,action:"execute-scan"},{withRetries:!0});return(0,kt.gW)(e)?{error:e}:{data:(null===e||void 0===e||null===(n=e.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"});var qt=a(2634),Ut=a(43926);const Ft=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:"}'),Qt=(0,st.wZ)("ydb-schema-viewer",{en:Ft}),Gt=(0,c.cn)("schema-viewer");const Bt=e=>{let{tableData:t,extended:a,type:n}=e;const r="primary"===n?function(e){return e.filter((e=>void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name)).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(t):function(e){return e.filter((e=>e.isPartitioningKeyColumn&&e.name)).map((e=>e.name))}(t),i=a?3:r.length,s=r.slice(0,i),o=r.slice(i);return r.length>0?(0,d.jsxs)("div",{className:Gt("keys",{summary:!a,type:n}),children:[(0,d.jsx)("div",{className:Gt("keys-header"),children:Qt("primary"===n?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:Gt("keys-values"),children:[" "+s.join(", "),o.length?(0,d.jsx)(Ut.f,{className:Gt("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:Gt("popup-content"),children:o.map((e=>(0,d.jsx)("div",{className:Gt("popup-item"),children:e},e)))}),children:(0,d.jsx)(qt._,{className:Gt("keys-label"),children:`+${o.length}`})}):null]})]}):null};var $t=a(71624);const Vt="autoIncrement",Ht="defaultValue",Zt="familyName",Wt="prefferedPoolKind",Jt="columnCodec",Kt={name:"id",get header(){return Qt("column-title.id")},width:60,render:e=>{let{row:t}=e;return t.id}},Yt={name:"name",get header(){return Qt("column-title.name")},width:100,render:e=>{let{row:t}=e;return t.name}},Xt={name:"type",get header(){return Qt("column-title.type")},width:100,render:e=>{let{row:t}=e;return t.type}},ea={name:"notNull",get header(){return Qt("column-title.notNull")},width:100,defaultOrder:$t.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.notNull)return"\u2713"}},ta={name:Vt,get header(){return Qt("column-title.autoIncrement")},width:100,defaultOrder:$t.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.autoIncrement)return"\u2713"}},aa={name:Ht,get header(){return Qt("column-title.defaultValue")},width:100,render:e=>{let{row:t}=e;return String(t.defaultValue)}},na={name:Zt,get header(){return Qt("column-title.family")},width:100,render:e=>{let{row:t}=e;return t.familyName}},ra={name:Wt,get header(){return Qt("column-title.media")},width:100,render:e=>{let{row:t}=e;return t.prefferedPoolKind}},ia={name:Jt,get header(){return Qt("column-title.compression")},width:100,render:e=>{let{row:t}=e;return t.columnCodec}};function sa(){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,KeyColumnNames:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r,i;const{Id:s,Name:o,NotNull:l,Type:c,Family:d,DefaultFromSequence:u,DefaultFromLiteral:m}=e,p=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===o)))&&void 0!==a?a:-1,h=d?t[d].Name:void 0,v=d?null===(r=t[d].StorageConfig)||void 0===r||null===(i=r.Data)||void 0===i?void 0:i.PreferredPoolKind:void 0,x=d?function(e){if(e)return e===T.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[d].ColumnCodec):void 0;return{id:s,name:o,keyColumnIndex:p,type:c,notNull:l,autoIncrement:Boolean(u),defaultValue:Object.values((null===m||void 0===m?void 0:m.value)||{})[0]||"-",familyName:h,prefferedPoolKind:v,columnCodec:x}}));return[...(null===r||void 0===r?void 0:r.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===r||void 0===r?void 0:r.filter((e=>-1===e.keyColumnIndex)))||[]]}function oa(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return se(e)?sa(a):K(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:i={}}=a,{Columns:s=[]}=i,o=null===n||void 0===n?void 0:n.map((e=>{var t;const{Id:a,Name:n,Type:i,NotNull:o}=e,l=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===n)))&&void 0!==t?t:-1,c=Boolean(null===s||void 0===s?void 0:s.find((e=>e===n)));return{id:a,name:n,keyColumnIndex:l,isPartitioningKeyColumn:c,type:i,notNull:o}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):ie(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):[]}function la(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}})))||[]}const ca=e=>{let{type:t,path:a,tenantName:r,extended:i=!1}=e;const[s]=(0,ve.Rj)(),{currentData:o,isLoading:l}=ce.useGetOverviewQuery({path:a,database:r},{pollingInterval:s}),c=oe(t)?{path:a,database:r}:b.CN,{data:u,isLoading:m}=zt.useGetViewSchemaQuery(c),p=n.useMemo((()=>oe(t)?la(u):oa(t,o)),[o,t,u]),h=n.useMemo((()=>p.some((e=>e.autoIncrement))),[p]),v=n.useMemo((()=>p.some((e=>e.defaultValue))),[p]),x=n.useMemo((()=>oe(t)?[Yt,Xt]:ie(t)||K(t)?[Kt,Yt,Xt,ea]:se(t)?function(e,t,a){const n=[Kt,Yt,Xt,ea];return a&&n.push(aa),e&&n.push(na,ra,ia),t&&n.push(ta),n}(i,h,v):[]),[t,i,h,v]);return l||m?(0,d.jsx)(Mt.h,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Gt("keys-wrapper"),children:[(0,d.jsx)(Bt,{tableData:p,extended:i,type:"primary"}),(0,d.jsx)(Bt,{tableData:p,extended:i,type:"partitioning"})]}),(0,d.jsx)("div",{className:Gt(),children:(0,d.jsx)(tt.G,{columnsWidthLSKey:"schemaTableColumnsWidth",data:p,columns:x,settings:he.LE})})]})};var da=a(60064),ua=a(87669),ma=a(16318),pa=a(77315);const ha=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"}'),va=(0,st.wZ)("ydb-diagnostics-configs",{en:ha}),xa=(0,c.cn)("ydb-diagnostics-configs"),ga=[{name:"Touched",header:"",render:e=>{let{row:t}=e;return t.Current?(0,d.jsx)(ma.J,{content:va("flag-touched"),className:xa("icon-touched"),placement:"left",children:(0,d.jsx)(ft.J,{data:ua.Z})}):null},width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return va("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 va("td-default")},render:e=>{let{row:t}=e;switch(t.Default){case!0:return va("enabled");case!1:return va("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return va("td-current")},render:e=>{var t;let{row:a}=e;return(0,d.jsx)(pa.r,{disabled:!0,checked:(null!==(t=a.Current)&&void 0!==t?t:a.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ya=e=>{let{database:t}=e;const[a,n]=(0,i.useQueryParam)("search",i.StringParam),{currentData:r=[],isFetching:s,error:o}=Se.$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)(at.l,{children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(it.o,{value:l,onChange:e=>{n(e||void 0,"replaceIn")},placeholder:va("search-placeholder")})}),(0,d.jsx)(at.l.Table,{loading:s,children:o?(0,d.jsx)(Ne.V,{error:o}):(0,d.jsx)(tt.G,{emptyDataMessage:va(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:ga,data:c,settings:he.LE})})]})};var ba=a(78171),fa=a.n(ba),Ea=a(10142);const Sa=le.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"}),Ta=(0,y.P1)((e=>e),((e,t)=>t),((e,t)=>Sa.endpoints.getTopic.select({path:e,database:t}))),ja=(0,y.P1)((e=>e),((e,t,a)=>Ta(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),Na=(0,y.P1)((e=>e),((e,t,a)=>Ta(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),Ca=(0,y.P1)(Na,(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)))),wa=(0,y.P1)(ja,(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,wt.lE)(a),partitionsWriteLag:(0,wt.DA)(n),writeSpeed:(0,Ea.c4)(r)}})),Pa=(0,y.P1)(Na,(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:i,bytes_read:s}=a||{};return{name:t,readSpeed:(0,Ea.c4)(s),writeLag:(0,wt.DA)(i),readLag:(0,wt.DA)(r),readIdleTime:(0,wt.lE)(n)}})))),Ia=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),Da=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"}'),_a=(0,st.wZ)("ydb-components-speed-multimeter",{ru:Da,en:Ia}),Ra=(0,c.cn)("speed-multimeter"),Aa=e=>{let{data:t,speedSize:a="kb",withValue:r=!0,withPopover:i=!0}=e;const{perMinute:s=0,perHour:o=0,perDay:l=0}=t||{},c=[s,o,l],u=e=>(0,Ea.td)({value:e,size:a,withSpeedLabel:!0}),m=[{value:u(s),label:_a("perMinute")},{value:u(o),label:_a("perHour")},{value:u(l),label:_a("perDay")}],[p,h]=n.useState(s),[v,x]=n.useState(r?0:void 0),[g,y]=n.useState(),b=(e,t)=>{h(e[t]),x(t),y(t)},f=e=>v===e,E=e=>g===e;return(0,d.jsx)("div",{className:Ra(),children:(0,d.jsxs)("div",{className:Ra("content"),children:[r&&(0,d.jsx)("div",{className:Ra("displayed-value"),children:u(p)}),(0,d.jsx)(ma.J,{content:(0,d.jsxs)("div",{className:Ra("popover-content"),children:[(0,d.jsx)("span",{className:Ra("popover-header"),children:_a("averageSpeed")}),m.map(((e,t)=>{return(0,d.jsx)("span",{className:Ra("popover-row",(a=f(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:Ra("popover-container"),placement:"bottom",disabled:!i,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:Ra("bars"),onMouseLeave:()=>{h(s),x(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:Ra("bar-container",{highlighted:E(a)}),onMouseEnter:b.bind(null,c,a),children:(0,d.jsx)("div",{className:Ra("bar",{color:f(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Oa=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ma=e=>{let{data:t}=e;const{writeSpeed:a,partitionsWriteLag:n,partitionsIdleTime:r}=t||{},i=[{label:"Write speed",value:(0,d.jsx)(Aa,{data:a})},{label:"Write lag",value:(0,Ie.gC)(n||0)},{label:"Write idle time",value:(0,Ie.gC)(r||0)}];return(0,d.jsx)("div",{className:Oa("wrapper"),children:i.map(((e,t)=>(0,d.jsxs)("div",{className:Oa("item"),children:[(0,d.jsx)("div",{className:Oa("label"),children:e.label}),(0,d.jsx)("div",{className:Oa("value"),children:e.value})]},t)))})};var ka=a(88726),La=a.n(ka),za=a(67653),qa=a(91807);const Ua=e=>{let{text:t,popoverContent:a,popoverClassName:n,className:r,contentClassName:i,buttonProps:s}=e;return(0,d.jsxs)("div",{className:r,children:[t,"\xa0",(0,d.jsx)(qa.J,{className:n,buttonProps:s,content:a,contentClassName:i})]})},Fa=70,Qa=54,Ga=268,Ba="#ADE8F5",$a="#f5be9d",Va=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})},Ha=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`})},Za=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:$a,children:(0,d.jsx)(Ha,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Va,{width:Fa,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)(Va,{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:$a}),(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:$a}),(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"})})})]})]}),Wa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Ba,children:(0,d.jsx)(Ha,{width:Ga})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Va,{width:Fa,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)(Va,{width:Fa,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)(Va,{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:Ba}),(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:Ba}),(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:Ba}),(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"})})})]})]}),Ja=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})})},Ka=()=>(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:Ga,height:Qa,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)(Ja,{id:"latest-read",fill:Ba}),(0,d.jsx)(Ja,{id:"latest-write",fill:$a})]}),(0,d.jsx)(Za,{})]}),Ya=()=>(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:Ga,height:Qa,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)(Ja,{id:"latest-read",fill:Ba}),(0,d.jsx)(Ja,{id:"latest-write",fill:$a})]}),(0,d.jsx)(Wa,{})]}),Xa=(0,c.cn)("ydb-lag-popover-content"),en=e=>{let{text:t,type:a}=e;return(0,d.jsxs)("div",{className:Xa({type:a}),children:[(0,d.jsx)("div",{className:Xa("text"),children:t}),(0,d.jsx)("div",{children:"read"===a?(0,d.jsx)(Ya,{}):(0,d.jsx)(Ka,{})})]})},tn=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"}'),an=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"}'),nn=(0,st.wZ)("ydb-diagnostics-consumers",{ru:an,en:tn}),rn="consumer",sn="readSpeed",on="readLags",ln={[rn]:"Consumer",[sn]:"Read speed",[on]:"Read lags, duration"},cn="writeLag",dn="readLag",un="readIdleTime",mn={[cn]:"write lag",[dn]:"read lag",[un]:"read idle time"},pn=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),hn=()=>(0,d.jsx)(Ua,{className:pn("lags"),text:ln[on],popoverContent:(0,d.jsx)(en,{text:nn("lagsPopover.readLags"),type:"read"})}),vn=(0,c.cn)("ydb-diagnostics-consumers-columns"),xn=[{name:rn,header:ln[rn],align:$t.ZP.LEFT,render:e=>{let{row:t}=e;if(!t.name)return"\u2013";const a=La().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(za.h,{to:(0,da.Sj)({...a,[da.XV.diagnosticsTab]:ge.qQ.partitions,selectedConsumer:t.name}),children:t.name})}},{name:sn,header:ln[sn],align:$t.ZP.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:e=>{let{row:t}=e;return(0,d.jsx)(Aa,{data:t.readSpeed})}},{name:on,header:(0,d.jsx)(hn,{}),className:vn("lags-header"),sub:[{name:cn,header:mn[cn],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.writeLag)}},{name:dn,header:mn[dn],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.readLag)}},{name:un,header:mn[un],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.readIdleTime)}}]}],gn=(0,c.cn)("ydb-diagnostics-consumers"),yn=e=>{let{path:t,database:a,type:r}=e;const i=(e=>e===f.EPathTypeCdcStream)(r),[s,o]=n.useState(""),[l]=(0,ve.Rj)(),{currentData:c,isFetching:u,error:m}=Sa.useGetTopicQuery({path:t,database:a},{pollingInterval:l}),p=u&&void 0===c,h=(0,ve.ix)((e=>Pa(e,t,a))),v=(0,ve.ix)((e=>wa(e,t,a))),x=n.useMemo((()=>{if(!h)return[];const e=new RegExp(fa()(s),"i");return h.filter((t=>e.test(String(t.name))))}),[h,s]);return p?(0,d.jsx)(Ce.a,{size:"m"}):m||h&&h.length?(0,d.jsxs)("div",{className:gn(),children:[(0,d.jsxs)("div",{className:gn("controls"),children:[(0,d.jsx)(it.o,{onChange:e=>{o(e)},placeholder:nn("controls.search"),className:gn("search"),value:s}),v&&(0,d.jsx)(Ma,{data:v})]}),m?(0,d.jsx)(Ne.V,{error:m}):null,h?(0,d.jsx)("div",{className:gn("table-wrapper"),children:(0,d.jsx)("div",{className:gn("table-content"),children:(0,d.jsx)(tt.G,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:gn("table"),data:x,columns:xn,settings:he.LE,emptyDataMessage:nn("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:nn("noConsumersMessage."+(i?"stream":"topic"))})};var bn=a(99175),fn=a(19992),En=a.n(fn),Sn=a(95877);a(25219);const Tn=(0,c.cn)("ydb-describe"),jn=new Map,Nn=e=>{let{path:t,database:a,type:n}=e;const[r]=(0,ve.Rj)(),i=te(n),s=(0,ve.ix)((e=>me(e,t,n,a)),Sn.wU);let o=[];i?s&&(o=[t,...s]):o=[t];const{mergedDescribe:l,loading:c,error:u}=pe({paths:o,autoRefreshInterval:r,database:a});let m;if(l){const e=Object.keys(l);m=1===e.length?l[e[0]]:l}return c||i&&!s?(0,d.jsx)(Ce.a,{size:"m"}):m||u?(0,d.jsxs)("div",{className:Tn(),children:[u?(0,d.jsx)(Ne.V,{error:u}):null,m?(0,d.jsxs)("div",{className:Tn("result"),children:[(0,d.jsx)(En(),{data:m,className:Tn("tree"),onClick:e=>{let{path:t}=e;const a=!jn.get(t);jn.set(t,a)},searchOptions:{debounceTime:300},isExpanded:e=>jn.get(e)||!1}),(0,d.jsx)(bn.m,{view:"flat-secondary",text:JSON.stringify(m),className:Tn("copy")})]}):null]}):(0,d.jsx)("div",{className:Tn("message-container"),children:"Empty"})};var Cn=a(41591);const wn=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&Q[r]||n&&G[n];var n,r},Pn=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 In=a(73211),Dn=a(9379);const _n=(0,Dn.a)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring("EPathType".length),CreateStep:Ie.o0},labels:{PathType:(0,In.Z)("common.type"),CreateStep:(0,In.Z)("common.created")}}),Rn=e=>{let{value:t,withSpeedLabel:a,...n}=e;const r=(0,Ea.td)({value:t,withSpeedLabel:a,...n}),i=(0,Ea.td)({value:t,withSpeedLabel:a,size:"b"});return(0,d.jsx)("span",{title:i,children:r})},An=(e,t)=>e?(0,d.jsx)(Rn,{value:e,significantDigits:2,...t}):null,On=(0,Dn.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:An},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Mn={[D.METERING_MODE_REQUEST_UNITS]:"request-units",[D.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},kn=(0,Dn.a)({values:{Partitions:e=>(0,Ie.uf)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/he.RQ*100)/100;return`${(0,Ie.uf)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),Ln=(0,Dn.a)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Mn[e]},labels:{MeteringMode:"Metering mode"}}),zn=(0,Dn.a)({values:{StorageLimitBytes:Ie.td,WriteSpeedInBytesPerSecond:Ie.t$},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),qn=(0,Dn.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)}}),Un=(0,Dn.a)({values:{CPU:Ie.LO,Memory:An,Storage:An,Network:Ie.t$,ReadThroughput:Ie.t$,WriteThroughput:Ie.t$},defaultValueFormatter:Ie.uf}),Fn=(0,Dn.a)({values:{FollowerCount:Ie.uf},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Qn=(0,Dn.a)({values:{FollowerCount:Ie.uf,CrossDataCenterFollowerCount:Ie.uf}}),Gn=(0,Dn.a)({values:{DataSize:An,IndexSize:An,LastAccessTime:Ie.o0,LastUpdateTime:Ie.o0},defaultValueFormatter:Ie.uf}),Bn=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),$n=e=>{var t;let{data:a}=e;const n=wn(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,i=[];let s;for(s in r)Bn.has(s)&&i.push(On(s,null===r||void 0===r?void 0:r[s]));return(0,d.jsx)(Cn._P,{title:n,info:i})};var Vn=a(62508);const Hn=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"}'),Zn=(0,st.wZ)("ydb-tenant-objects-info",{en:Hn}),Wn=(0,c.cn)("ydb-external-data-source-info"),Jn=e=>{var t,a,n,r;return[{label:Zn("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},_n("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},Kn=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Jn(e),{label:Zn("external-objects.location"),value:(0,d.jsx)(Vn.A,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Wn("location")})},{label:Zn("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Zn("external-objects.auth-method.service-account"):Zn("external-objects.auth-method.none")}]},Yn=e=>{let{data:t,prepareData:a}=e;const n=wn(null===t||void 0===t?void 0:t.PathDescription);return t?(0,d.jsx)(Cn._P,{title:n,info:a(t)}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})},Xn=e=>{let{data:t}=e;return(0,d.jsx)(Yn,{data:t,prepareData:Kn})};var er=a(55783),tr=a(90808);const ar=(0,c.cn)("ydb-external-table-info"),nr=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:i,DataSourcePath:s}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===s||void 0===s?void 0:s.split("/").pop();return[{label:Zn("external-objects.source-type"),value:i},_n("CreateStep",r),{label:Zn("external-objects.data-source"),value:s&&(0,d.jsx)("span",{title:s,children:(0,d.jsx)(tr.j,{title:o||"",url:t})})}]},rr=(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[...nr(e,t),{label:Zn("external-objects.location"),value:(0,d.jsx)(Vn.A,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:ar("location")})}]},ir=e=>{var t,a;let{data:n,prepareData:r}=e;const i=(0,er.TH)(),s=(0,Re.mB)(i),o=(0,Re.vF)({...s,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=wn(null===n||void 0===n?void 0:n.PathDescription);return n?(0,d.jsx)(Cn._P,{title:l,info:r(n,o)}):(0,d.jsxs)("div",{className:"error",children:["No ",l," data"]})},sr=e=>{let{data:t}=e;return(0,d.jsx)(ir,{data:t,prepareData:rr})};var or=a(20134);const lr=JSON.parse('{"no-data":"No data"}'),cr=(0,st.wZ)("ydb-definition-list",{en:lr}),dr=(0,c.cn)("ydb-definition-list");function ur(e){let{title:t,items:a,nameMaxWidth:n=220,copyPosition:r="outside",className:i,itemClassName:s,...o}=e;return(0,d.jsxs)("div",{className:dr(null),children:[t?(0,d.jsx)("div",{className:dr("title"),children:t}):null,a.length?(0,d.jsx)(or.w,{items:a,nameMaxWidth:n,copyPosition:r,className:dr("properties-list",i),itemClassName:dr("item",s),...o}):cr("no-data")]})}const mr=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:Zn("view.query-text"),copyText:n,content:(0,d.jsx)(gt.x,{variant:"code-2",wordBreak:"break-word",children:n})}]};function pr(e){let{data:t}=e;const a=wn(null===t||void 0===t?void 0:t.PathDescription);if(!t)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=mr(t);return(0,d.jsx)(ur,{title:a,items:n})}function hr(e){let{state:t}=e;return t?"StandBy"in t?(0,d.jsx)(qt._,{theme:"info",children:"Standby"}):"Paused"in t?(0,d.jsx)(qt._,{theme:"info",children:"Paused"}):"Done"in t?(0,d.jsx)(qt._,{theme:"success",children:"Done"}):"Error"in t?(0,d.jsx)(qt._,{theme:"danger",children:"Error"}):(0,d.jsx)(qt._,{size:"s",children:"Unknown"}):null}const vr=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),xr=(0,st.wZ)("ydb-diagnostics-async-replication-paths",{en:vr}),gr=(0,c.cn)("ydb-async-replication-paths"),yr=[{name:xr("column.srcPath.name"),render:e=>{let{row:t}=e;return t.SrcPath},sortAccessor:e=>e.SrcPath},{name:xr("column.dstPath.name"),render:e=>{let{row:t}=e;return t.DstPath},sortAccessor:e=>e.DstPath}];function br(e){let{config:t}=e;if(!t)return null;let a=xr("noData");var n,r;t.Everything&&(a=(0,d.jsxs)("span",{children:[xr("everythingWithPrefix")," ",(0,d.jsx)(gt.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)(tt.G,{data:t.Specific.Targets,settings:he.E6,columns:yr})),(0,d.jsxs)("div",{className:gr(),children:[(0,d.jsx)("div",{className:gr("title"),children:xr("title")}),a]})}function fr(e){let{connection:t}=e;return t?t.StaticCredentials?(0,d.jsx)(qt._,{value:t.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in t?"OAuth":"unknown":null}const Er=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"}'),Sr=(0,st.wZ)("ydb-diagnostics-async-replication-info",{en:Er});function Tr(e){var t,a;let{data:n}=e;const r=wn(null===n||void 0===n?void 0:n.PathDescription);if(!n)return(0,d.jsxs)("div",{className:"error",children:[Sr("noData")," ",r]});const i=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,i=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:s,Database:o}=i,l=[];r&&l.push({name:Sr("state.label"),content:(0,d.jsx)(hr,{state:r})});s&&l.push({name:Sr("srcConnection.endpoint.label"),copyText:s,content:(0,d.jsx)(gt.x,{variant:"code-inline-2",children:s})});o&&l.push({name:Sr("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(gt.x,{variant:"code-inline-2",children:o})});i&&l.push({name:Sr("credentials.label"),content:(0,d.jsx)(fr,{connection:i})});return l}(n);return(0,d.jsxs)(yt.k,{direction:"column",gap:"4",children:[(0,d.jsx)(ur,{title:r,items:i}),(0,d.jsx)(br,{config:null===(t=n.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const jr=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),Nr=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"}'),Cr=(0,st.wZ)("ydb-diagnostics-overview-topic-stats",{ru:Nr,en:jr}),wr=(0,c.cn)("ydb-overview-topic-stats"),Pr=e=>[{label:"Store size",value:(0,Ie.td)(e.storeSize)},{label:(0,d.jsx)(Ua,{text:"Write idle time",popoverContent:(0,d.jsx)(en,{text:Cr("writeIdleTimePopover"),type:"write"})}),value:(0,wt.tt)(e.partitionsIdleTime)},{label:(0,d.jsx)(Ua,{text:"Write lag",popoverContent:(0,d.jsx)(en,{text:Cr("writeLagPopover"),type:"write"})}),value:(0,wt.tt)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Aa,{data:e.writeSpeed,withValue:!1})}],Ir=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,Ie.t$)(t.perMinute)},{label:"per hour",value:(0,Ie.t$)(t.perHour)},{label:"per day",value:(0,Ie.t$)(t.perDay)}]},Dr=e=>{let{path:t,database:a}=e;const[r]=(0,ve.Rj)(),{currentData:i,isFetching:s,error:o}=Sa.useGetTopicQuery({path:t,database:a},{pollingInterval:r}),l=s&&void 0===i,c=(0,ve.ix)((e=>wa(e,t,a)));if(l)return(0,d.jsx)("div",{className:wr(),children:(0,d.jsx)(Ce.a,{size:"s"})});const u=o||!c?(0,d.jsx)(Ne.V,{error:o}):null;return(0,d.jsxs)("div",{className:wr(),children:[(0,d.jsx)("div",{className:wr("title"),children:"Stats"}),u,c?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:wr("info"),children:(0,d.jsx)(Cn._P,{info:Pr(c),multilineLabels:!0})}),(0,d.jsx)("div",{className:wr("bytes-written"),children:(0,d.jsx)(Cn._P,{info:Ir(c)})})]}):null]})},_r=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:i,MeteringMode:s}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,Cn.Z6)(kn,{Partitions:n,PQTabletConfig:r}),...(0,Cn.Z6)(zn,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,Cn.Z6)(Ln,{Codecs:i,MeteringMode:s})]},Rr=(e,t)=>{var a,n,r;if(!e&&!t)return[];const i=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:s,Format:o}=i||{};return[_n("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,Cn.Z6)(qn,{Mode:s,Format:o}),..._r(t)]},Ar=e=>{let{path:t,database:a,data:n,topic:r}=e;const i=wn(null===n||void 0===n?void 0:n.PathDescription);return n&&r?(0,d.jsxs)("div",{children:[(0,d.jsx)(Cn._P,{title:i,info:Rr(n,r)}),(0,d.jsx)(Dr,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",i," data"]})},Or=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.dropIndex":"Drop index","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.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","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"}'),Mr=(0,st.wZ)("ydb-tenant",{en:Or});function kr(e){let{data:t}=e;const a=wn(t);return Pn(t)?(0,d.jsxs)(yt.k,{gap:1,wrap:"nowrap",children:[a," ",(0,d.jsx)(qt._,{children:Mr("label.read-only")})]}):a}const Lr=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"}'),zr=(0,st.wZ)("ydb-diagnostics-overview-table-info",{en:Lr});var qr=a(83351),Ur=a.n(qr),Fr=a(25665),Qr=a(73689);const Gr=e=>e.SchemaPresetName&&void 0!==e.SchemaPresetId,Br=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=zr("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,wt.tt)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:zr("label.ttl"),value:t}}};const $r=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:i={},TTLSettings:s}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:x,PlannedTxCompleted:g,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:E,InFlightTxCount:S,RowUpdates:T,RowDeletes:j,RowReads:N,RangeReads:C,RangeReadRows:w}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=i;let _=[];switch(t){case f.EPathTypeTable:_=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:i}=e,s=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?zr("value.partitioning-by-size.enabled",{size:(0,Ie.td)(n.SizeToSplit)}):zr("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?zr("enabled"):zr("disabled");if(s.push({label:zr("label.partitioning-by-size"),value:o},{label:zr("label.partitioning-by-load"),value:l},{label:zr("label.partitions-min"),value:(0,Ie.uf)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&s.push({label:zr("label.partitions-max"),value:(0,Ie.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}`,s.push({label:zr("label.read-replicas"),value:n})}if(t){const e=Br(t);e&&s.push(e)}return(0,Fr.D)(i)&&s.push({label:zr("label.bloom-filter"),value:zr(i?"enabled":"disabled")}),s})(i,s);break;case f.EPathTypeColumnTable:_=function(e){var t,a;const n=[];if(n.push({label:zr("label.standalone"),value:String(!Gr(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:zr("label.partitioning"),value:(0,d.jsx)(gt.x,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Br(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const R=(0,Cn.Z6)(Gn,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,Qr.kE)(p)&&(i.EnableFilterByKey||Number(p)>0)&&R.push({label:"BloomFilterSize",value:An(p)});const A=[R,(0,Cn.Z6)(Gn,{LastAccessTime:h,LastUpdateTime:v}),(0,Cn.Z6)(Gn,{ImmediateTxCompleted:x,PlannedTxCompleted:g,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:E,InFlightTxCount:S}),(0,Cn.Z6)(Gn,{RowUpdates:T,RowDeletes:j,RowReads:N,RangeReads:C,RangeReadRows:w})],O=(0,Cn.Z6)(Un,Ur()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let M=[];return Array.isArray(P)&&P.length>0?M=(0,Cn.Z6)(Fn,P[0]):void 0!==I?M.push(Qn("FollowerCount",I)):void 0!==D&&M.push(Qn("CrossDataCenterFollowerCount",D)),{generalInfo:_,tableStatsInfo:A,tabletMetricsInfo:O,partitionConfigInfo:M}},Vr=(0,c.cn)("ydb-diagnostics-table-info"),Hr=e=>{let{data:t,type:a}=e;const r=(0,d.jsx)(kr,{data:null===t||void 0===t?void 0:t.PathDescription}),{generalInfo:i,tableStatsInfo:s,tabletMetricsInfo:o=[],partitionConfigInfo:l=[]}=n.useMemo((()=>$r(t,a)),[t,a]);return(0,d.jsxs)("div",{className:Vr(),children:[(0,d.jsx)(Cn._P,{info:i,title:r,className:Vr("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:Vr("title"),children:r})}),(0,d.jsxs)("div",{className:Vr("row"),children:[s?(0,d.jsx)("div",{className:Vr("col"),children:s.map(((e,t)=>(0,d.jsx)(Cn._P,{info:e,title:0===t?zr("tableStats"):void 0,className:Vr("info-block"),renderEmptyState:()=>null},t)))}):null,o.length>0||l.length>0?(0,d.jsxs)("div",{className:Vr("col"),children:[(0,d.jsx)(Cn._P,{info:o,title:zr("tabletMetrics"),className:Vr("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(Cn._P,{info:l,title:zr("partitionConfig"),className:Vr("info-block"),renderEmptyState:()=>null})]}):null]})]})},Zr=e=>{let{data:t,path:a,database:n}=e;const r=wn(null===t||void 0===t?void 0:t.PathDescription);return t?(0,d.jsxs)("div",{children:[(0,d.jsx)(Cn._P,{title:r,info:_r(t)}),(0,d.jsx)(Dr,{path:a,database:n})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})};const Wr=function(e){let{type:t,path:a,database:r}=e;const[i]=(0,ve.Rj)(),s=te(t),o=(0,ve.ix)((e=>me(e,a,t,r)),Sn.wU);let l=[];s?o&&(l=[a,...o]):l=[a];const{mergedDescribe:c,loading:u,error:m}=pe({paths:l,database:r,autoRefreshInterval:i}),p=c[a];return u||s&&!o?(0,d.jsx)(Ce.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[m?(0,d.jsx)(Ne.V,{error:m}):null,m&&!p?null:(()=>{var e;const n=null!==p&&void 0!==p?p:void 0,i={[f.EPathTypeInvalid]:void 0,[f.EPathTypeDir]:void 0,[f.EPathTypeTable]:void 0,[f.EPathTypeSubDomain]:void 0,[f.EPathTypeTableIndex]:()=>(0,d.jsx)($n,{data:n}),[f.EPathTypeExtSubDomain]:void 0,[f.EPathTypeColumnStore]:void 0,[f.EPathTypeColumnTable]:void 0,[f.EPathTypeCdcStream]:()=>{const e=null===o||void 0===o?void 0:o[0];var t;if(e)return(0,d.jsx)(Ar,{path:a,database:r,data:n,topic:null!==(t=null===c||void 0===c?void 0:c[e])&&void 0!==t?t:void 0})},[f.EPathTypePersQueueGroup]:()=>(0,d.jsx)(Zr,{data:n,path:a,database:r}),[f.EPathTypeExternalTable]:()=>(0,d.jsx)(sr,{data:n}),[f.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Xn,{data:n}),[f.EPathTypeView]:()=>(0,d.jsx)(pr,{data:n}),[f.EPathTypeReplication]:()=>(0,d.jsx)(Tr,{data:n})};return t&&(null===(e=i[t])||void 0===e?void 0:e.call(i))||(0,d.jsx)(Hr,{data:n,type:t})})()]})};var Jr,Kr=a(81550),Yr=a(72616);function Xr(){return Xr=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},Xr.apply(this,arguments)}const ei=function(e){return n.createElement("svg",Xr({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Jr||(Jr=n.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"})))};function ti(e){let{href:t,className:a,size:n="xs"}=e;return(0,d.jsx)(Yr.z,{href:t,target:"_blank",className:a,size:n,title:"Monitoring dashboard",children:(0,d.jsx)(ft.J,{data:ei})})}var ai=a(46987),ni=a(86636),ri=a(14345),ii=a(19214),si=a(62105);const oi=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];const li=e=>{switch(e){case"ms":return ci;case"size":return di;case"percent":return ui;default:return}};function ci(e){return null===e?he.jX:(0,wt.zm)((0,Ie.W0)(mi(e),2))}function di(e){return null===e?he.jX:(0,Ea.td)({value:mi(e),precision:3})}function ui(e){return null===e?he.jX:Math.round(100*mi(e))+"%"}function mi(e){return(0,Qr.kE)(e)?Number(e):0}const pi={"30m":30*he.sU,"1h":he.RQ,"1d":he.ii,"1w":7*he.ii},hi=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),vi=(0,st.wZ)("ydb-metric-chart",{en:hi}),xi=le.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:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=a.map((e=>`target=${e.target}`)).join("&"),o=Math.round(Date.now()/1e3),l=o-pi[n];return window.api.getChartData({target:s,from:l,until:o,maxDataPoints:r,database:t},{signal:i})}(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 i=a.map((e=>e[0]));return{...r,data:i}})).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?vi("not-supported"):t.error)}}catch(n){return{error:n}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),gi=(0,c.cn)("ydb-metric-chart");ni.X.set({plugins:[ii.YagrPlugin]});const yi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dataType:a,scaleRange:n}=t,r=li(a),i=!e.metrics.length,s=e.metrics.map(((e,t)=>{const a=e.color||oi[t],n=function(e,t){const a=(0,si.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:s},libraryConfig:{chart:{size:{padding:i?[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"}}}},bi={timeline:[],metrics:[]},fi=e=>{let{database:t,title:a,metrics:r,timeFrame:i="1h",autorefresh:s,width:o=400,height:l=o/1.5,chartOptions:c,onChartDataStatusChange:u,isChartVisible:m}=e;const{currentData:p,error:h,isFetching:v,status:x}=xi.useGetChartDataQuery({database:t,metrics:r,timeFrame:i,maxDataPoints:o/2},{pollingInterval:s}),g=v&&!p;n.useEffect((()=>null===u||void 0===u?void 0:u("fulfilled"===x?"success":"loading")),[x,u]);const y=yi(p||bi,c);return(0,d.jsxs)("div",{className:gi(null),style:{height:l,width:o},children:[(0,d.jsx)("div",{className:gi("title"),children:a}),g?(0,d.jsx)(Ce.a,{}):m?(0,d.jsxs)("div",{className:gi("chart"),children:[(0,d.jsx)(ri.ZP,{type:"yagr",data:y}),h?(0,d.jsx)(Ne.V,{className:gi("error"),error:h}):null]}):null]})},Ei=(0,c.cn)("ydb-timeframe-selector"),Si=e=>{let{value:t,onChange:a,className:n}=e;return(0,d.jsx)("div",{className:Ei(null,n),children:Object.keys(pi).map((e=>(0,d.jsx)(Yr.z,{view:"flat",selected:t===e,onClick:()=>a(e),children:e},e)))})},Ti=(0,c.cn)("ydb-tenant-dashboard"),ji=e=>{let{database:t,charts:a}=e;const[r,s]=n.useState(!0),[o="1h",l]=(0,i.useQueryParam)("timeframe",i.StringParam),[c]=(0,ve.Rj)(),u=r?0:c,m=e=>{"success"===e&&s(!1)},p=1===a.length?872:428;return(0,d.jsxs)("div",{className:Ti(null),style:{display:r?"none":void 0},children:[(0,d.jsx)("div",{className:Ti("controls"),children:(0,d.jsx)(Si,{value:o,onChange:l})}),(0,d.jsx)("div",{className:Ti("charts"),children:a.map((e=>{const a=e.metrics.map((e=>{let{target:t}=e;return t})).join("&");return(0,d.jsx)(fi,{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)}))})]})},Ni=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","column-header.process":"Process"}'),Ci=(0,st.wZ)("ydb-diagnostics-tenant-overview",{en:Ni}),wi=[{title:Ci("charts.queries-per-second"),metrics:[{target:"queries.requests",title:Ci("charts.queries-per-second")}]},{title:Ci("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:Ci("charts.transaction-latency",{percentile:"p50"})},{target:"queries.latencies.p75",title:Ci("charts.transaction-latency",{percentile:"p75"})},{target:"queries.latencies.p90",title:Ci("charts.transaction-latency",{percentile:"p90"})},{target:"queries.latencies.p99",title:Ci("charts.transaction-latency",{percentile:"p99"})}],options:{dataType:"ms"}}],Pi=e=>{let{database:t}=e;return(0,d.jsx)(ji,{database:t,charts:wi})},Ii=le.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(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"}),Di={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},_i=e=>e.sort(((e,t)=>(Di[e.status]||0)-(Di[t.status]||0))),Ri=e=>{let{issue:t,data:a}=e;return _i(a.filter((e=>t.reason&&-1!==t.reason.indexOf(e.id))))},Ai=e=>_i(e.filter((t=>!e.find((e=>e.reason&&-1!==e.reason.indexOf(t.id)))))),Oi=e=>{let{data:t,roots:a}=e;return a?a.map((e=>{const a=Oi({roots:Ri({issue:e,data:t}),data:t});return{...e,reasonsItems:a}})):[]},Mi=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(Di[a]||0)-(Di[n]||0)}))},ki=(0,y.P1)((e=>e),(e=>Ii.endpoints.getHealthcheckInfo.select({database:e}))),Li=(0,y.P1)((e=>e),((e,t)=>ki(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),zi=(0,y.P1)(Li,(function(){return Ai(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])})),qi=(0,y.P1)([Li,zi],(function(){return Oi({data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],roots:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})})),Ui=(0,y.P1)(Li,(function(){return Mi(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])}));let Fi,Qi;!function(e){e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY"}(Fi||(Fi={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED"}(Qi||(Qi={}));const Gi=function(e){let{autorefresh:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{currentData:a,isFetching:n,error:r,refetch:i}=Ii.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),s=(null===a||void 0===a?void 0:a.self_check_result)||Fi.UNSPECIFIED,o=(0,ve.ix)((t=>Ui(t,e)));return{issueTrees:(0,ve.ix)((t=>qi(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:i,selfCheckResult:s}};var Bi=a(83202),$i=a(77468);const Vi={[Qi.UNSPECIFIED]:$i.K.Grey,[Qi.GREY]:$i.K.Grey,[Qi.GREEN]:$i.K.Green,[Qi.BLUE]:$i.K.Blue,[Qi.YELLOW]:$i.K.Yellow,[Qi.ORANGE]:$i.K.Orange,[Qi.RED]:$i.K.Red},Hi=(0,c.cn)("issue-tree-item"),Zi=e=>{let{status:t,message:a,type:n,onClick:r}=e;return(0,d.jsxs)("div",{className:Hi(),onClick:r,children:[(0,d.jsx)("div",{className:Hi("field",{status:!0}),children:(0,d.jsx)(Vn.A,{mode:"icons",status:t,name:n})}),(0,d.jsx)("div",{className:Hi("field",{message:!0}),children:a})]})},Wi=(0,c.cn)("issue-tree"),Ji=e=>{let{issueTree:t}=e;const[a,r]=n.useState({}),i=n.useCallback((e=>e?(0,d.jsx)("div",{className:Wi("info-panel"),children:(0,d.jsx)(En(),{data:e,search:!1,isExpanded:()=>!0,className:Wi("inspector")})}):null),[]),s=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)(Bi.L,{name:(0,d.jsx)(Zi,{status:Vi[n],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[i(Ur()(m,["reason"])),s(c||[])]},t)}))),[a,i]);return(0,d.jsx)("div",{className:Wi(),children:(0,d.jsx)("div",{className:Wi("block"),children:s([t])})})},Ki=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"}'),Yi=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"}'),Xi=(0,st.wZ)("ydb-diagnostics-healthcheck",{ru:Yi,en:Ki}),es=(0,c.cn)("healthcheck");function ts(e){let{tenantName:t}=e;const[a]=(0,ve.Rj)(),{issueTrees:r,loading:i,error:s}=Gi(t,{autorefresh:a});return(0,d.jsx)("div",{className:es("details"),children:(0,d.jsx)("div",{className:es("details-content-wrapper"),children:s?(0,d.jsx)(Ne.V,{error:s,defaultMessage:Xi("no-data")}):i?(0,d.jsx)(Ce.a,{size:"m"}):r&&r.length?(0,d.jsx)(n.Fragment,{children:r.map((e=>(0,d.jsx)(Ji,{issueTree:e},e.id)))}):Xi("status_message.ok")})})}var as=a(93145),ns=a(29837),rs=a(22927),is=a(52232),ss=a(92921),os=a(15268),ls=a(29331);const cs=(0,c.cn)("healthcheck"),ds={[Fi.UNSPECIFIED]:ns.Z,[Fi.GOOD]:rs.Z,[Fi.DEGRADED]:is.Z,[Fi.MAINTENANCE_REQUIRED]:ss.Z,[Fi.EMERGENCY]:os.Z};function us(e){const{tenantName:t,active:a}=e,[n]=(0,ve.Rj)(),{currentData:r,isFetching:i,error:s}=Ii.useGetHealthcheckInfoQuery({database:t},{pollingInterval:n}),o=i&&void 0===r;return(0,d.jsxs)(ls.Q,{className:cs("preview"),active:a,children:[(0,d.jsx)("div",{className:cs("preview-header"),children:(0,d.jsx)("div",{className:cs("preview-title-wrapper"),children:(0,d.jsx)("div",{className:cs("preview-title"),children:Xi("title.healthcheck")})})}),(()=>{if(s)return(0,d.jsx)(Ne.V,{error:s,defaultMessage:Xi("no-data")});if(o)return(0,d.jsx)(Ce.a,{size:"m"});const e=(null===r||void 0===r?void 0:r.self_check_result)||Fi.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:cs("preview-content"),children:(0,d.jsxs)("div",{className:cs("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ft.J,{className:cs("preview-status-icon"),data:ds[e]}),(0,d.jsx)("div",{className:cs("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var ms=a(20760),ps=a(73287);const hs=(0,c.cn)("ydb-metrics-card"),vs=e=>{let t;return"Warning"===e&&(t=$i.K.Yellow),"Danger"===e&&(t=$i.K.Red),t?(0,d.jsx)(ps.J,{status:t,mode:"icons",size:"l"}):null};function xs(e){let{active:t,label:a,status:n,metrics:r}=e;return(0,d.jsxs)(ls.Q,{className:hs({active:t}),active:t,children:[(0,d.jsxs)("div",{className:hs("header"),children:[a&&(0,d.jsx)("div",{className:hs("label"),children:a}),vs(n)]}),(0,d.jsx)("div",{className:hs("content"),children:r.map(((e,t)=>{let{title:a,...n}=e;return(0,d.jsxs)("div",{className:hs("metric"),children:[(0,d.jsx)("div",{className:hs("metric-title"),children:a}),(0,d.jsx)(ms.y,{size:"xs",colorizeProgress:!0,...n})]},t)}))})]})}const gs=(0,c.cn)("metrics-cards");function ys(e){let{poolsCpuStats:t,memoryStats:a,blobStorageStats:n,tabletStorageStats:r,tenantName:i}=e;const s=(0,er.TH)(),{metricsTab:o}=(0,ve.ix)((e=>e.tenant)),l=(0,Re.mB)(s),c=e=>e===o?"":e,u={[ge.Xk.cpu]:(0,da.Sj)({...l,[da.XV.metricsTab]:c(ge.Xk.cpu)}),[ge.Xk.storage]:(0,da.Sj)({...l,[da.XV.metricsTab]:c(ge.Xk.storage)}),[ge.Xk.memory]:(0,da.Sj)({...l,[da.XV.metricsTab]:c(ge.Xk.memory)}),[ge.Xk.healthcheck]:(0,da.Sj)({...l,[da.XV.metricsTab]:c(ge.Xk.healthcheck)})};return(0,d.jsxs)("div",{className:gs(),children:[(0,d.jsx)(be.rU,{to:u.cpu,className:gs("tab"),children:(0,d.jsx)(bs,{poolsCpuStats:t,active:o===ge.Xk.cpu})}),(0,d.jsx)(be.rU,{to:u.storage,className:gs("tab"),children:(0,d.jsx)(fs,{blobStorageStats:n,tabletStorageStats:r,active:o===ge.Xk.storage})}),(0,d.jsx)(be.rU,{to:u.memory,className:gs("tab"),children:(0,d.jsx)(Es,{memoryStats:a,active:o===ge.Xk.memory})}),(0,d.jsx)(be.rU,{to:u.healthcheck,className:gs("tab"),children:(0,d.jsx)(us,{tenantName:i,active:o===ge.Xk.healthcheck})})]})}function bs(e){let{poolsCpuStats:t=[],active:a}=e,n=as.L.Unspecified;const r=t.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:a,limit:r,used:i}=e,s=(0,ai.Vn)(a);return as.l[s]>as.l[n]&&(n=s),{title:t,value:i,capacity:r,warningThreshold:ai.hJ,dangerThreshold:ai.Gz}}));return(0,d.jsx)(xs,{label:Ci("cards.cpu-label"),active:a,metrics:r,status:n})}function fs(e){let{blobStorageStats:t=[],tabletStorageStats:a,active:n}=e,r=as.L.Unspecified;const i=(a||t).map((e=>{const{name:t,used:a,limit:n,usage:i}=e,s=(0,ai._W)(i);return as.l[s]>as.l[r]&&(r=s),{title:t,value:a,capacity:n,warningThreshold:ai._g,dangerThreshold:ai.nD,formatValues:Ie.QO}}));return(0,d.jsx)(xs,{label:Ci("cards.storage-label"),active:n,metrics:i,status:r})}function Es(e){let{active:t,memoryStats:a=[]}=e,n=as.L.Unspecified;const r=a.map((e=>{const{name:t,used:a,limit:r,usage:i}=e,s=(0,ai.Lv)(i);return as.l[s]>as.l[n]&&(n=s),{title:t,value:a,capacity:r,warningThreshold:ai.B8,dangerThreshold:ai.nr,formatValues:Ie.QO}}));return(0,d.jsx)(xs,{label:Ci("cards.memory-label"),active:t,metrics:r,status:n})}var Ss=a(2387),Ts=a(60918),js=a(88366),Ns=a(83023);const Cs=(0,c.cn)("tenant-overview");function ws(e){let{title:t,error:a,loading:r,tableClassNameModifiers:i={},...s}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Cs("title"),children:t}),a?(0,d.jsx)(Ne.V,{error:a}):null,(0,d.jsx)("div",{className:Cs("table",i),children:a&&0===s.data.length?null:r?(0,d.jsx)(Mt.h,{rows:he.fl}):(0,d.jsx)(tt.G,{settings:he.E6,...s})})]})}var Ps=a(32489);const Is=e=>{let{prefix:t=Ci("top"),entity:a,postfix:r,link:i,onClick:s}=e;return i?(0,d.jsxs)(n.Fragment,{children:[t," ",(0,d.jsx)(Ps.h,{to:i,onClick:s,children:a})," ",r]}):`${t} ${a} ${r}`};function Ds(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,ve.A3)(),[r]=(0,ve.Rj)(),[i,s]=function(e){const t={...(0,Ss.Up)(e),width:void 0},a=[(0,Ss.o9)(),(0,Ss.A6)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,Ns.w)(n,Ts.WN)]}({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef,database:t}),{currentData:o,isFetching:l,error:c}=js.k.useGetNodesQuery({tenant:t,type:"any",sort:"-CPU",limit:he.fl,tablets:!1,fieldsRequired:s},{pollingInterval:r}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.Nodes)||[],p=Is({entity:Ci("nodes"),postfix:Ci("by-pools-usage"),link:(0,da.Sj)({...n,[da.XV.diagnosticsTab]:ge.qQ.nodes})});return(0,d.jsx)(ws,{columnsWidthLSKey:Ts.t5,data:m,columns:i,title:p,loading:u,error:c,emptyDataMessage:Ci("top-nodes.empty-data")})}function _s(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,ve.A3)(),[r]=(0,ve.Rj)(),[i,s]=function(e){const t={...(0,Ss.Up)(e),width:void 0},a=[(0,Ss.OJ)(),(0,Ss.A6)(),t,(0,Ss.Zi)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,Ns.w)(n,Ts.WN)]}({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef,database:t}),{currentData:o,isFetching:l,error:c}=js.k.useGetNodesQuery({tenant:t,type:"any",sort:"-LoadAverage",limit:he.fl,tablets:!1,fieldsRequired:s},{pollingInterval:r}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.Nodes)||[],p=Is({entity:Ci("nodes"),postfix:Ci("by-load"),link:(0,da.Sj)({...n,[da.XV.diagnosticsTab]:ge.qQ.nodes})});return(0,d.jsx)(ws,{columnsWidthLSKey:Ts.t5,data:m,columns:i,title:p,loading:u,error:c,emptyDataMessage:Ci("top-nodes.empty-data")})}var Rs=a(55159),As=a(23367),Os=a(15428),Ms=a(68585);const ks=JSON.parse('{"action_cancel":"Cancel"}'),Ls=(0,st.wZ)("ydb-confirmation-dialog",{en:ks}),zs=(0,c.cn)("confirmation-dialog"),qs="confirmation-dialog";function Us(e){let{caption:t="",children:a,onConfirm:n,onClose:r,progress:i,textButtonApply:s,textButtonCancel:o,buttonApplyView:l="normal",className:c,renderButtons:u,open:m}=e;return(0,d.jsxs)(Ms.V,{className:zs(null,c),size:"s",onClose:r,disableOutsideClick:!0,open:m,children:[(0,d.jsx)(Ms.V.Header,{caption:(0,d.jsx)("span",{className:zs("caption"),children:t})}),(0,d.jsx)(Ms.V.Body,{children:a}),(0,d.jsx)(Ms.V.Footer,{onClickButtonApply:n,propsButtonApply:{view:l},textButtonApply:s,textButtonCancel:null!==o&&void 0!==o?o:Ls("action_cancel"),onClickButtonCancel:r,loading:i,renderButtons:u})]})}const Fs=Os.Ue((e=>{const t=Os.dd(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(Us,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));Os.z2(qs,Fs);var Qs=a(36413),Gs=a(86357),Bs=a(6130);function $s(){const[e]=(0,ve.yu)(he.DG,[]),t=(0,ve.ix)(Bs.zC).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Vs=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"}'),Hs=(0,st.wZ)("ydb-save-query-dialog",{en:Vs}),Zs=(0,c.cn)("ydb-save-query");function Ws(e){const t=(0,ve.zL)();return n.useCallback((()=>{Os.ZP.show(Xs,e),t((0,Bs.y3)())}),[t,e])}function Js(e){let{dialogProps:t,...a}=e;const n=Ws(t);return(0,d.jsx)(Yr.z,{onClick:n,...a,children:Hs("action.save")})}function Ks(e){let{buttonProps:t={}}=e;const a=(0,ve.zL)(),n=(0,ve.ix)(Bs.g0),r=Ws(),i=()=>{a((0,Bs.PM)(n)),a((0,Bs.y3)())};return n?(()=>{const e=[{action:i,text:Hs("action.edit-existing")},{action:r,text:Hs("action.save-as-new")}];return(0,d.jsx)(Qs.h,{items:e,renderSwitcher:e=>(0,d.jsx)(Yr.z,{...e,...t,children:Hs("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(Js,{})}function Ys(e){let{onSuccess:t,onCancel:a,onClose:r,open:i}=e;const s=$s(),o=(0,ve.zL)(),[l,c]=n.useState(""),[u,m]=n.useState(),p=()=>{o((0,Bs.lm)("idle")),c(""),m(void 0),null===r||void 0===r||r()},h=()=>{null===a||void 0===a||a(),p()};return(0,d.jsxs)(Ms.V,{open:i,hasCloseButton:!1,size:"s",onClose:h,children:[(0,d.jsx)(Ms.V.Header,{caption:Hs("action.save")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const a=(n=l)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?Hs("error.name-exists"):void 0:Hs("error.name-not-empty");var n;m(a),a||(o((0,Bs.PM)(l)),p(),null===t||void 0===t||t())},children:[(0,d.jsxs)(Ms.V.Body,{className:Zs("dialog-body"),children:[(0,d.jsx)("div",{className:Zs("dialog-row"),children:Hs("description")}),(0,d.jsxs)("div",{className:Zs("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Zs("field-title","required"),children:Hs("input-label")}),(0,d.jsx)("div",{className:Zs("control-wrapper"),children:(0,d.jsx)(Gs.o,{id:"queryName",placeholder:Hs("input-placeholder"),value:l,onUpdate:e=>{c(e),m(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:u?"invalid":void 0,errorMessage:u})})]})]}),(0,d.jsx)(Ms.V.Footer,{textButtonApply:Hs("button-apply"),textButtonCancel:Hs("button-cancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const Xs="save-query-dialog",eo=Os.ZP.create((e=>{const t=Os.ZP.useModal();return(0,d.jsx)(Ys,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));Os.ZP.register(Xs,eo);const to=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),ao=(0,st.wZ)("ydb-change-input-confirmation",{en:to});function no(){const e=Os.ZP.useModal(qs),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),r=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),i=n.useMemo((()=>({onSuccess:a,onCancel:r})),[a,r]);return(0,d.jsx)(Js,{view:"action",size:"l",dialogProps:i})}async function ro(){return await Os.ZP.show(qs,{id:qs,caption:ao("context_unsaved-changes-warning"),textButtonApply:ao("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(no,{}),e]})})}function io(e){const t=(0,ve.ix)(As.jm),a=n.useMemo((()=>function(e){return async t=>{await ro()&&e(t)}}(e)),[e]);return t?a:e}const so=(0,c.cn)("kv-truncated-query"),oo=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:so(),children:e}),(0,d.jsx)("span",{className:so("message",{color:"secondary"}),children:t})]})}return(0,d.jsx)(n.Fragment,{children:t})},lo=e=>{let{value:t=""}=e;return(0,d.jsx)(St.l,{contentClassName:so("popover-content"),content:t,children:t})},co="CPUTime",uo="QueryText",mo="EndTime",po="ReadRows",ho="ReadBytes",vo="UserSID",xo="OneLineQueryText",go="QueryHash",yo="Duration",bo="CPUCores",fo="PeakTime",Eo="IntervalEnd",So=[bo,"DataSize","InFlightTxCount"],To=[co,mo,po,ho,vo,yo],jo=e=>Object.values(So).includes(e);var No=a(57857),Co=a.n(No);const wo=6,Po={...he.LE,dynamicRenderType:"variable"},Io=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running","col_user":"User","col_start-time":"Start time","col_query-text":"Query text","col_app":"Application"}'),Do=(0,st.wZ)("ydb-diagnostics-top-queries",{en:Io}),_o=(0,c.cn)("kv-top-queries"),Ro="topQueriesColumnsWidth",Ao={name:co,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,wt.zm)((0,wt.BO)(null!==(t=a.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:$t.ZP.RIGHT,sortable:!1},Oo={name:uo,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,d.jsx)("div",{className:_o("query"),children:(0,d.jsx)(oo,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:wo})})},sortable:!1,width:500},Mo={name:mo,render:e=>{let{row:t}=e;return(0,Ie.o0)(new Date(t.EndTime).getTime())},align:$t.ZP.RIGHT,width:200},ko={name:po,render:e=>{let{row:t}=e;return(0,Ie.uf)(t.ReadRows)},sortAccessor:e=>Number(e.ReadRows),align:$t.ZP.RIGHT,width:150},Lo={name:ho,render:e=>{let{row:t}=e;return(0,Ie.uf)(t.ReadBytes)},sortAccessor:e=>Number(e.ReadBytes),align:$t.ZP.RIGHT,width:150},zo={name:vo,render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:_o("user-sid"),children:t.UserSID||"\u2013"})},sortAccessor:e=>String(e.UserSID),align:$t.ZP.LEFT},qo={name:xo,header:"QueryText",render:e=>{var t;let{row:a}=e;return(0,d.jsx)(lo,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString()})},sortable:!1,width:500},Uo={name:go,render:e=>{let{row:t}=e;return a=String(t.QueryText),(Co().str(a)>>>0).toString(16).toUpperCase().padStart(8,"0");var a},width:130,sortable:!1},Fo={name:yo,header:"Duration",render:e=>{var t;let{row:a}=e;return(0,wt.zm)((0,wt.BO)(null!==(t=a.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:$t.ZP.RIGHT,width:150},Qo={name:"QueryStartAt",get header(){return Do("col_start-time")},render:e=>{let{row:t}=e;return(0,Ie.o0)(new Date(t.QueryStartAt).getTime())},sortable:!0,resizeable:!1,defaultOrder:$t.ZP.DESCENDING},Go=[Ao,Oo,Mo,Fo,ko,Lo,zo],Bo=[Uo,qo,Ao],$o=[zo,Qo,Oo,{name:"ApplicationName",get header(){return Do("col_app")},render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:_o("user-sid"),children:t.ApplicationName||"\u2013"})},sortable:!0}];function Vo(e){var t,a;let{tenantName:r}=e;const i=(0,ve.zL)(),s=(0,er.TH)(),o=(0,er.k6)(),l=(0,Re.mB)(s),[c]=(0,ve.Rj)(),u=Bo,{currentData:m,isFetching:p,error:h}=Rs.MU.useGetTopQueriesQuery({database:r},{pollingInterval:c}),v=p&&void 0===m,x=(null===m||void 0===m||null===(t=m.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=io(n.useCallback((e=>{const{QueryText:t}=e;i((0,As.B8)({input:t}));const a=(0,Re.mB)(s),n=(0,da.Sj)({...a,[ge.bS]:ge.m2.query,[da.XV.queryTab]:ge._0.newQuery});o.push(n)}),[i,o,s])),y=Is({entity:Ci("queries"),postfix:Ci("by-cpu-time",{executionPeriod:Ci("executed-last-hour")}),onClick:()=>{i((0,Rs.Im)({from:void 0,to:void 0}))},link:(0,da.Sj)({...l,[da.XV.diagnosticsTab]:ge.qQ.topQueries})});return(0,d.jsx)(ws,{columnsWidthLSKey:Ro,data:x||[],columns:u,onRowClick:g,title:y,loading:v,error:(0,kt.fV)(h),rowClassName:()=>Cs("top-queries-row")})}function Ho(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 ${he.fl}`}const Zo=le.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({query:Ho(n,a),database:a,action:"execute-scan"},{signal:r,withRetries:!0});return(0,kt.gW)(e)?{error:e}:{data:(0,kt.Ae)(e)}}catch(i){return{error:i||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var Wo=a(17823);function Jo(e){let{path:t,location:a,...n}=e;const r=(0,Re.mB)(a),i=(0,Re.vF)({...r,schema:t});return(0,d.jsx)(Wo.r,{view:"normal",...n,href:i})}var Ko=a(76217),Yo=a(46931);const Xo=(0,a(84029).p)(60,80,["success","warning","danger"]);var el=a(75544);const tl="topShardsColumnsWidth",al="TabletId",nl="CPUCores",rl="DataSize",il="Path",sl="NodeId",ol="InFlightTxCount",ll={TabletId:"TabletId",CPUCores:"CPUCores",DataSize:"DataSize (B)",Path:"Path",NodeId:"NodeId",PeakTime:"PeakTime",InFlightTxCount:"InFlightTxCount",IntervalEnd:"IntervalEnd"};const cl=(e,t)=>({name:il,header:ll[il],render:a=>{let{row:n}=a;return(0,d.jsx)(Jo,{path:e+n.Path,location:t,children:n.Path})},sortable:!1,width:300}),dl={name:nl,header:ll[nl],render:e=>{let{row:t}=e;return a=t.CPUCores||0,`${(0,Ie.W0)(100*Number(a),2)}%`;var a},align:$t.ZP.RIGHT},ul={name:rl,header:ll[rl],render:e=>{let{row:t}=e;return(0,Ie.uf)(t.DataSize)},align:$t.ZP.RIGHT},ml={name:al,header:ll[al],render:e=>{let{row:t}=e;return t.TabletId?(0,d.jsx)(Ko.P,{tabletId:t.TabletId}):"\u2013"},sortable:!1,width:220},pl={name:sl,header:ll[sl],render:e=>{let{row:t}=e;return t.NodeId?(0,d.jsx)(za.h,{to:(0,el.a3)(t.NodeId),children:t.NodeId}):"\u2013"},align:$t.ZP.RIGHT},hl={name:nl,header:ll[nl],render:e=>{let{row:t}=e;return(0,d.jsx)(Yo.a,{value:(0,Ie.W0)(100*Number(t.CPUCores),2),theme:Xo(100*Number(t.CPUCores))})},align:$t.ZP.RIGHT,sortable:!1,width:140,resizeMinWidth:140},vl={name:ol,header:ll[ol],render:e=>{let{row:t}=e;return(0,Ie.uf)(t.InFlightTxCount)},align:$t.ZP.RIGHT},xl=e=>{var t,a;let{tenantName:n,path:r}=e;const i=(0,er.TH)(),s=(0,Re.mB)(i),[o]=(0,ve.Rj)(),{currentData:l,isFetching:c,error:u}=Zo.useGetTopShardsQuery({database:n,path:r},{pollingInterval:o}),m=c&&void 0===l,p=(null===l||void 0===l||null===(t=l.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],h=((e,t)=>[ml,cl(e,t),hl])(n,i),v=Is({entity:Ci("shards"),postfix:Ci("by-cpu-usage"),link:(0,da.Sj)({...s,[da.XV.diagnosticsTab]:ge.qQ.topShards})});return(0,d.jsx)(ws,{columnsWidthLSKey:tl,data:p||[],columns:h,title:v,loading:m,error:(0,kt.fV)(u)})},gl=[{title:Ci("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 yl(e){let{tenantName:t,additionalNodesProps:a}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(ji,{database:t,charts:gl}),(0,d.jsx)(_s,{tenantName:t,additionalNodesProps:a}),(0,d.jsx)(Ds,{tenantName:t,additionalNodesProps:a}),(0,d.jsx)(xl,{tenantName:t,path:t}),(0,d.jsx)(Vo,{tenantName:t})]})}var bl=a(92146);function fl(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,ve.A3)(),[r]=(0,ve.Rj)(),[i,s]=function(e){const t=[(0,Ss.A6)(),(0,Ss.Up)(e),(0,Ss.VQ)(),(0,Ss.OJ)(),(0,Ss.rh)(),(0,Ss.As)(),(0,Ss.TX)(e)].map((e=>({...e,sortable:!1}))),a=t.map((e=>e.name));return[t,(0,Ns.w)(a,Ts.WN)]}({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef,database:t}),{currentData:o,isFetching:l,error:c}=js.k.useGetNodesQuery({tenant:t,type:"any",tablets:!0,sort:"-Memory",limit:he.fl,fieldsRequired:s},{pollingInterval:r}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.Nodes)||[],p=Is({entity:Ci("nodes"),postfix:Ci("by-memory"),link:(0,da.Sj)({...n,[da.XV.diagnosticsTab]:ge.qQ.nodes})});return(0,d.jsx)(ws,{columnsWidthLSKey:Ts.t5,data:m,columns:i,title:p,loading:u,error:c,emptyDataMessage:Ci("top-nodes.empty-data")})}const El=[{title:Ci("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:Ci("charts.memory-usage")}],options:{dataType:"size"}}];function Sl(e){let{tenantName:t,memoryStats:a,memoryUsed:r,memoryLimit:i}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(ji,{database:t,charts:El}),(0,d.jsx)("div",{className:Cs("title"),children:"Memory details"}),(0,d.jsx)("div",{className:Cs("memory-info"),children:a?(0,d.jsx)(bl.O,{formatValues:Ie.q3,stats:a}):(0,d.jsx)(ms.y,{value:r,capacity:i,formatValues:Ie.q3,colorizeProgress:!0})}),(0,d.jsx)(fl,{tenantName:t})]})}var Tl=a(43862),jl=a(89085),Nl=a(96635),Cl=a(78090);function wl(e){let{tenant:t}=e;const a=(0,ve.A3)(),n=(0,Ee.rU)(),r=(0,Ee.tS)(),[i]=(0,ve.Rj)(),[s,o]=function(){const e=(0,Nl.m)(),t=e.map((e=>e.name));return[e,(0,Ns.w)(t,Cl.h2)]}(),{currentData:l,isFetching:c,error:u}=jl.y.useGetStorageGroupsInfoQuery({tenant:t,sort:"-Usage",with:"all",limit:he.fl,shouldUseGroupsHandler:r,fieldsRequired:o},{pollingInterval:i,skip:!n}),m=c&&void 0===l,p=(null===l||void 0===l?void 0:l.groups)||[],h=Is({entity:Ci("groups"),postfix:Ci("by-usage"),link:(0,da.Sj)({...a,[da.XV.diagnosticsTab]:ge.qQ.storage})});return(0,d.jsx)(ws,{columnsWidthLSKey:Cl.Ty,data:p,columns:s,title:h,loading:m||!n,error:u})}const Pl=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${he.fl}\n`,Il=le.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({query:Pl(a),database:a,action:"execute-scan"},{signal:n,withRetries:!0});return(0,kt.gW)(e)?{error:e}:{data:(0,kt.Ae)(e)}}catch(r){return{error:r||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"}),Dl="topTablesTableColumnsWidth";function _l(e){var t,a;let{path:n}=e;const r=(0,er.TH)(),[i]=(0,ve.Rj)(),{currentData:s,error:o,isFetching:l}=Il.useGetTopTablesQuery({path:n},{pollingInterval:i}),c=l&&void 0===s,u=(null===s||void 0===s||null===(t=s.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],m=[{name:"Size",width:100,sortable:!1,render:e=>{let{row:t}=e;return(e=>{const t=(0,Ea.dT)(null!==u&&void 0!==u&&u.length?Number(u[0].Size):0,0);return(0,Ea.td)({value:e,size:t,precision:1})})(Number(t.Size))},align:$t.ZP.RIGHT},{name:"Path",width:700,sortable:!1,render:e=>{let{row:t}=e;return t.Path?(0,d.jsx)(St.l,{content:t.Path,children:(0,d.jsx)(Jo,{path:String(t.Path),location:r,children:t.Path})}):null}}],p=Is({entity:Ci("tables"),postfix:Ci("by-size")});return(0,d.jsx)(ws,{columnsWidthLSKey:Dl,data:u||[],columns:m,title:p,loading:c,error:(0,kt.fV)(o)})}const Rl=[{title:Ci("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:Ci("charts.storage-usage")}],options:{dataType:"size"}}];function Al(e){let{tenantName:t,metrics:a}=e;const{blobStorageUsed:r,tabletStorageUsed:i,blobStorageLimit:s,tabletStorageLimit:o}=a,l=[{label:(0,d.jsx)(Ua,{text:Ci("storage.tablet-storage-title"),popoverContent:Ci("storage.tablet-storage-description")}),value:(0,d.jsx)(ms.y,{value:i,capacity:o,formatValues:Ie.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})},{label:(0,d.jsx)(Ua,{text:Ci("storage.db-storage-title"),popoverContent:Ci("storage.db-storage-description")}),value:(0,d.jsx)(ms.y,{value:r,capacity:s,formatValues:Ie.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(ji,{database:t,charts:Rl}),(0,d.jsx)(Tl._,{className:Cs("storage-info"),title:"Storage details",info:l}),(0,d.jsx)(_l,{path:t}),(0,d.jsx)(wl,{tenant:t})]})}function Ol(e){var t,a,n;let{tenantName:r,additionalTenantProps:i,additionalNodesProps:s}=e;const{metricsTab:o}=(0,ve.ix)((e=>e.tenant)),[l]=(0,ve.Rj)(),{currentData:c,isFetching:u}=Se.$1.useGetTenantInfoQuery({path:r},{pollingInterval:l}),m=u&&void 0===c,{Name:p,Type:h,Overall:v}=c||{},x=$(h),{currentData:g}=ce.useGetOverviewQuery({path:r,database:r},{pollingInterval:l}),{Tables:y,Topics:b}=(null===g||void 0===g||null===(t=g.PathDescription)||void 0===t||null===(a=t.DomainDescription)||void 0===a?void 0:a.DiskSpaceUsage)||{},f=[null===y||void 0===y?void 0:y.TotalSize,null===b||void 0===b?void 0:b.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),E={...c,Metrics:{...null===c||void 0===c?void 0:c.Metrics,Storage:String(f)}},{blobStorage:S,tabletStorage:T,blobStorageLimit:j,tabletStorageLimit:N,poolsStats:C,memoryStats:w,blobStorageStats:P,tabletStorageStats:I}=(0,ai.HH)(E),D={blobStorageUsed:S,blobStorageLimit:j,tabletStorageUsed:T,tabletStorageLimit:N};if(m)return(0,d.jsx)("div",{className:Cs("loader"),children:(0,d.jsx)(Kr.a,{size:"m"})});const _=null===i||void 0===i||null===(n=i.getMonitoringLink)||void 0===n?void 0:n.call(i,p,h);return(0,d.jsxs)("div",{className:Cs(),children:[(0,d.jsxs)("div",{className:Cs("info"),children:[(0,d.jsx)("div",{className:Cs("top-label"),children:x}),(0,d.jsxs)("div",{className:Cs("top"),children:[(0,d.jsx)("div",{className:Cs("tenant-name-wrapper"),children:(0,d.jsx)(Vn.A,{status:v,name:p||he.FU,withLeftTrim:!0,hasClipboardButton:Boolean(c),clipboardButtonAlwaysVisible:!0})}),_&&(0,d.jsx)(ti,{href:_})]}),(0,d.jsx)(ys,{poolsCpuStats:C,memoryStats:w,blobStorageStats:P,tabletStorageStats:I,tenantName:r})]}),(()=>{switch(o){case ge.Xk.cpu:return(0,d.jsx)(yl,{tenantName:r,additionalNodesProps:s});case ge.Xk.storage:return(0,d.jsx)(Al,{tenantName:r,metrics:D});case ge.Xk.memory:return(0,d.jsx)(Sl,{tenantName:r,memoryUsed:E.MemoryUsed,memoryLimit:E.MemoryLimit,memoryStats:E.MemoryStats});case ge.Xk.healthcheck:return(0,d.jsx)(ts,{tenantName:r});default:return(0,d.jsx)(Pi,{database:r})}})()]})}const Ml=(0,c.cn)("kv-detailed-overview");const kl=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:i}=e,s=a===n;return(0,d.jsx)("div",{className:Ml(),children:s?(0,d.jsx)("div",{className:Ml("section"),children:(0,d.jsx)(Ol,{tenantName:a,additionalTenantProps:r,additionalNodesProps:i})}):(0,d.jsx)(Wr,{type:t,path:n,database:a})})},Ll={id:ge.qQ.overview,title:"Info"},zl={id:ge.qQ.schema,title:"Schema"},ql={id:ge.qQ.topQueries,title:"Queries"},Ul={id:ge.qQ.topShards,title:"Top shards"},Fl={id:ge.qQ.nodes,title:"Nodes"},Ql={id:ge.qQ.tablets,title:"Tablets"},Gl={id:ge.qQ.storage,title:"Storage"},Bl={id:ge.qQ.network,title:"Network"},$l={id:ge.qQ.describe,title:"Describe"},Vl={id:ge.qQ.hotKeys,title:"Hot keys"},Hl={id:ge.qQ.graph,title:"Graph"},Zl={id:ge.qQ.consumers,title:"Consumers"},Wl={id:ge.qQ.partitions,title:"Partitions"},Jl=[Ll,Ql,$l],Kl=[Ll,ql,Ul,Fl,Ql,Gl,Bl,$l,{id:ge.qQ.configs,title:"Configs"},{id:ge.qQ.operations,title:"Operations"}],Yl=[Ll,zl,Ul,Fl,Hl,Ql,Vl,$l],Xl=[Ll,zl,Ul,Fl,Ql,$l],ec=[Ll,Ul,Fl,$l],tc=[Ll,Zl,Wl,Fl,Ql,$l],ac=[Ll,Zl,Wl,Fl,Ql,$l],nc=[Ll,$l],rc=[Ll,zl,$l],ic=[Ll,zl,$l],sc={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:Kl,[f.EPathTypeExtSubDomain]:Kl,[f.EPathTypeColumnStore]:Kl,[f.EPathTypeTable]:Yl,[f.EPathTypeColumnTable]:Xl,[f.EPathTypeDir]:ec,[f.EPathTypeTableIndex]:ec,[f.EPathTypeCdcStream]:tc,[f.EPathTypePersQueueGroup]:ac,[f.EPathTypeExternalDataSource]:nc,[f.EPathTypeExternalTable]:rc,[f.EPathTypeView]:ic,[f.EPathTypeReplication]:Jl},oc=e=>e&&sc[e]||ec,lc=e=>{let{hasFeatureFlags:t}=e;return t?Kl:Kl.filter((e=>e.id!==ge.qQ.configs))};var cc=a(2915),dc=a(38610);const uc=le.h.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:r}=t;try{var i;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!==(i=(await window.api.getHotKeys({path:a,database:n,enableSampling:!1},{signal:r})).hotkeys)&&void 0!==i?i:null}}catch(s){return{error:s}}},providesTags:["All"]})}),overrideExisting:"throw"}),mc=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."}'),pc=(0,st.wZ)("ydb-hot-keys",{en:mc});var hc;function vc(){return vc=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},vc.apply(this,arguments)}const xc=function(e){return n.createElement("svg",vc({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),hc||(hc=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"})))},gc=(0,c.cn)("ydb-hot-keys"),yc={accessSample:"accessSample",keyValues:"keyValues"},bc=function(){return[...(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:gc("primary-key-column"),children:[(0,d.jsx)(ft.J,{data:xc,width:12,height:7}),e]}),render:e=>{let{row:a}=e;return a.keyValues[t]},align:$t.ZP.RIGHT,sortable:!1}))),{name:yc.accessSample,header:"Samples",render:e=>{let{row:t}=e;return t.accessSample},align:$t.ZP.RIGHT,sortable:!1}]};function fc(e){var t,a;let{path:r,database:i}=e;const{currentData:s,isFetching:o,error:l}=uc.useGetHotKeysQuery({path:r,database:i}),c=o&&void 0===s,[u]=(0,ve.Rj)(),{currentData:m,isLoading:p}=ce.useGetOverviewQuery({path:r,database:i},{pollingInterval:u}),h=null===m||void 0===m||null===(t=m.PathDescription)||void 0===t||null===(a=t.Table)||void 0===a?void 0:a.KeyColumnNames,v=n.useMemo((()=>bc(h)),[h]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ec,{}),c||p?(0,d.jsx)("div",{children:pc("hot-keys-collecting")}):l?(0,d.jsx)(Ne.V,{error:l}):s?(0,d.jsx)(tt.G,{wrapperClassName:gc("table"),columns:v,data:s,settings:he.LE,initialSortOrder:{columnId:yc.accessSample,order:$t.ZP.DESCENDING}}):(0,d.jsx)("div",{children:pc("no-data")})]})}function Ec(){const[e,t]=(0,ve.yu)(he.RI);return e?null:(0,d.jsxs)(dc.Z,{theme:"info",view:"filled",type:"container",className:gc("help-card"),children:[pc("help"),(0,d.jsx)(Yr.z,{className:gc("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ft.J,{data:cc.Z,size:18})})]})}var Sc=a(97379),Tc=a(91538),jc=a(52154);const Nc=le.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 Cc=a(32341);const wc=(0,c.cn)("node-network");function Pc(){}function Ic(e){let{nodeId:t,connected:a,capacity:r,rack:i,status:s,onClick:o=Pc,onMouseEnter:l=Pc,onMouseLeave:c=Pc,showID:u,isBlurred:m}=e;const p=n.useRef(null),h=s||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?$i.K.Green:a>=70?$i.K.Yellow:a>=1?$i.K.Red:$i.K.Grey}(a,r);return(0,d.jsx)("div",{ref:p,className:wc({[h.toLowerCase()]:!0,id:u,blur:m}),onMouseEnter:()=>{l(p.current,{nodeId:t,connected:a,capacity:r,rack:i},"node")},onMouseLeave:()=>{c()},onClick:()=>o(t),children:u?t:null})}const Dc=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var _c,Rc,Ac,Oc,Mc,kc,Lc,zc,qc,Uc,Fc,Qc,Gc,Bc,$c;function Vc(){return Vc=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},Vc.apply(this,arguments)}const Hc=function(e){return n.createElement("svg",Vc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),_c||(_c=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"})),Rc||(Rc=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"})),Ac||(Ac=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"})),Oc||(Oc=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"})),Mc||(Mc=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),kc||(kc=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"})),Lc||(Lc=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"})),zc||(zc=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"})),qc||(qc=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"})),Uc||(Uc=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"})),Fc||(Fc=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"})),Qc||(Qc=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"})),Gc||(Gc=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"})),Bc||(Bc=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),$c||($c=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"})))},Zc=(0,c.cn)("network");function Wc(e){var t,a;let{tenantName:r}=e;const[i]=(0,ve.Rj)(),s=(0,ve.ix)(Cc.qz),o=(0,ve.zL)(),[l,c]=n.useState(),[u,m]=n.useState(!1),[p,h]=n.useState(!1),{currentData:v,isFetching:x,error:g}=Nc.useGetNetworkInfoQuery(r,{pollingInterval:i});if(x&&void 0===v)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Kr.a,{size:"l"})});const y=v,b=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===b.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const f=Kc(b,"NodeType"),E=l?Kc(null!==(a=l.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Zc(),children:[g?(0,d.jsx)(Ne.V,{error:g}):null,b.length>0?(0,d.jsx)("div",{className:Zc("inner"),children:(0,d.jsxs)("div",{className:Zc("nodes-row"),children:[(0,d.jsxs)("div",{className:Zc("left"),children:[(0,d.jsx)("div",{className:Zc("controls-wrapper"),children:(0,d.jsxs)("div",{className:Zc("controls"),children:[(0,d.jsx)(jc.T,{value:s,onChange:e=>{o((0,Cc.M6)(e))},className:Zc("problem-filter")}),(0,d.jsx)("div",{className:Zc("checkbox-wrapper"),children:(0,d.jsx)(je.X,{onUpdate:()=>{m(!u)},checked:u,children:"ID"})}),(0,d.jsx)("div",{className:Zc("checkbox-wrapper"),children:(0,d.jsx)(je.X,{onUpdate:()=>{h(!p)},checked:p,children:"Racks"})})]})}),(0,d.jsx)(Jc,{nodes:f,showId:u,showRacks:p,clickedNode:l,onClickNode:c})]}),(0,d.jsx)("div",{className:Zc("right"),children:l?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Zc("label"),children:["Connectivity of node"," ",(0,d.jsx)(be.rU,{className:Zc("link"),to:(0,el.a3)(l.NodeId),children:l.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Zc("nodes-row"),children:(0,d.jsx)(Jc,{nodes:E,isRight:!0,showId:u,showRacks:p,clickedNode:l,onClickNode:c})})]}):(0,d.jsxs)("div",{className:Zc("placeholder"),children:[(0,d.jsx)("div",{className:Zc("placeholder-img"),children:(0,d.jsx)(ft.J,{data:Hc,width:221,height:204})}),(0,d.jsx)("div",{className:Zc("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Jc(e){let{nodes:t,isRight:a,showId:n,showRacks:r,clickedNode:i,onClickNode:s}=e;const o=(0,ve.ix)(Cc.qz),l=(0,ve.zL)();let c=0;const u=Object.keys(t).map(((e,u)=>{const m=Kc(t[e],"Rack");return(0,d.jsxs)("div",{className:Zc("nodes-container",{right:a}),children:[(0,d.jsxs)("div",{className:Zc("nodes-title"),children:[e," nodes"]}),(0,d.jsx)("div",{className:Zc("nodes"),children:r?Object.keys(m).map(((e,t)=>(0,d.jsxs)("div",{className:Zc("rack-column"),children:[(0,d.jsx)("div",{className:Zc("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=Dc(e.Peers)),o===Cc.pu.PROBLEMS&&r!==u||o===Cc.pu.ALL||a?(c++,(0,d.jsx)(Ic,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:r,connected:u,onMouseEnter:function(){l((0,Pe.hJ)(...arguments))},onMouseLeave:()=>{l((0,Pe.i8)())},onClick:a?void 0:()=>{s(i&&e.NodeId===i.NodeId?void 0:e)},isBlurred:!a&&i&&i.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=Dc(m)),o===Cc.pu.PROBLEMS&&r!==u||o===Cc.pu.ALL||a?(c++,(0,d.jsx)(Ic,{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,Pe.hJ)(...arguments))},onMouseLeave:()=>{l((0,Pe.i8)())},onClick:a?void 0:()=>{s(i&&e.NodeId===i.NodeId?void 0:e)},isBlurred:!a&&i&&i.NodeId!==e.NodeId},t)):null}))})]},u)}));return o===Cc.pu.PROBLEMS&&0===c?(0,d.jsx)(Tc.Q,{name:"thumbsUp",width:"200"}):u}function Kc(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const Yc="networkNodesTableSelectedColumns",Xc=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],ed=["NodeId"],td=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function ad(e){let{database:t,path:a,parentRef:n,additionalNodesProps:r}=e;const i=(0,Ee.rU)(),s=(0,Ee.vX)(),[l]=(0,ve.yu)(he._X),c=s&&l;return(0,d.jsx)(o.s,{loading:!i,children:(()=>{return c?(0,d.jsx)(Sc.m,{path:a,database:t,parentRef:n,additionalNodesProps:r,columns:(e={database:t,getNodeRef:null===r||void 0===r?void 0:r.getNodeRef},[(0,Ss.A6)(),(0,Ss.Up)(e,{statusForIcon:"ConnectStatus"}),(0,Ss.EF)(),(0,Ss.KO)(),(0,Ss.VQ)(),(0,Ss.eb)(),(0,Ss.o9)(),(0,Ss.O8)(),(0,Ss.qQ)(),(0,Ss.ek)(),(0,Ss.oY)(),(0,Ss._5)(),(0,Ss.O5)()].map((e=>({...e,sortable:(0,Ts.Ke)(e.name)})))),defaultColumnsIds:Xc,requiredColumnsIds:ed,selectedColumnsKey:Yc,groupByParams:td}):(0,d.jsx)(Wc,{tenantName:t});var e})()})}var nd=a(4969),rd=a(72736),id=a(53366),sd=a(76485);const od=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"}'),ld=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"}'),cd=(0,st.wZ)("ydb-diagnostics-partitions",{ru:ld,en:od}),dd={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"},ud={[dd.PARTITION_ID]:"Partition ID",[dd.STORE_SIZE]:"Store size",[dd.WRITE_SPEED]:"Write speed",[dd.READ_SPEED]:"Read speed",[dd.WRITE_LAGS]:"Write lags, duration",[dd.READ_LAGS]:"Read lags, duration",[dd.UNCOMMITED_MESSAGES]:"Uncommited messages",[dd.UNREAD_MESSAGES]:"Unread messages",[dd.START_OFFSET]:"Start offset",[dd.END_OFFSET]:"End offset",[dd.COMMITED_OFFSET]:"Commited offset",[dd.READ_SESSION_ID]:"Read session ID",[dd.READER_NAME]:"Reader name",[dd.PARTITION_HOST]:"Partition host",[dd.CONNECTION_HOST]:"Connection host"},md="partitionWriteLag",pd="partitionWriteIdleTime",hd={[md]:"write lag",[pd]:"write idle time"},vd="consumerWriteLag",xd="consumerReadLag",gd="consumerReadIdleTime",yd={[vd]:"write lag",[xd]:"read lag",[gd]:"read idle time"},bd=[dd.PARTITION_ID,dd.STORE_SIZE,dd.WRITE_SPEED,dd.WRITE_LAGS,dd.START_OFFSET,dd.END_OFFSET,dd.PARTITION_HOST],fd=Object.values(dd),Ed=e=>{let{consumers:t,selectedConsumer:a,onSelectedConsumerChange:r,selectDisabled:i,partitions:s,onSearchChange:o,hiddenColumns:l,onHiddenColumnsChange:c,initialColumnsIds:u}=e;const[m,p]=n.useState(""),[h,v]=n.useState("");n.useEffect((()=>{if(!s)return;const e=new RegExp(fa()(h),"i"),t=new RegExp(fa()(m),"i"),a=s.filter((a=>{const{partitionId:n,readerName:r,readSessionId:i,partitionNodeId:s,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,i,s,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));o(a)}),[h,m,s,o]);const x=n.useMemo((()=>{const e=t&&t.length?t.map((e=>({value:e,content:e}))):[];return[{value:"",content:cd("controls.consumerSelector.emptyOption")},...e]}),[t]),g=n.useMemo((()=>{const e=[];for(const t of u){const a=t===dd.PARTITION_ID,n={title:ud[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:Rd("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Te.P,{className:Rd("consumer-select"),label:cd("controls.consumerSelector"),options:x,value:[a||""],onUpdate:e=>{r(e[0]||void 0)},filterable:t&&t.length>5,disabled:i||!t||!t.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(sd.o,{onChange:e=>{v(e)},placeholder:cd("controls.partitionSearch"),className:Rd("search",{partition:!0}),value:h}),(0,d.jsx)(sd.o,{onChange:e=>{p(e)},placeholder:cd("controls.generalSearch"),className:Rd("search",{general:!0}),value:m}),(0,d.jsx)(id.N,{popupWidth:242,items:g,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")]})},Sd=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),Td=e=>{let{title:t}=e;return(0,d.jsx)("div",{className:Sd("multiline"),children:t})},jd=()=>(0,d.jsx)("div",{className:Sd("read-session"),children:ud[dd.READ_SESSION_ID]}),Nd=()=>(0,d.jsx)(Ua,{className:Sd("lags"),text:ud[dd.WRITE_LAGS],popoverContent:(0,d.jsx)(en,{text:cd("lagsPopover.writeLags"),type:"write"})}),Cd=()=>(0,d.jsx)(Ua,{className:Sd("lags"),text:ud[dd.READ_LAGS],popoverContent:(0,d.jsx)(en,{text:cd("lagsPopover.readLags"),type:"read"})}),wd=()=>(0,d.jsx)(Ua,{className:Sd("messages"),text:ud[dd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:Sd("messages-popover-content"),children:cd("headers.unread")})}),Pd=()=>(0,d.jsx)(Ua,{className:Sd("messages"),text:ud[dd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:Sd("messages-popover-content"),children:cd("headers.uncommited")})}),Id=(0,c.cn)("ydb-diagnostics-partitions-columns"),Dd=[{name:dd.PARTITION_ID,header:(0,d.jsx)(Td,{title:ud[dd.PARTITION_ID]}),sortAccessor:e=>(0,Qr.kE)(e.partitionId)&&Number(e.partitionId),align:$t.ZP.LEFT,render:e=>{let{row:t}=e;return t.partitionId}},{name:dd.STORE_SIZE,header:(0,d.jsx)(Td,{title:ud[dd.STORE_SIZE]}),align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.td)(t.storeSize)}},{name:dd.WRITE_SPEED,header:ud[dd.WRITE_SPEED],align:$t.ZP.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:e=>{let{row:t}=e;return(0,d.jsx)(Aa,{data:t.writeSpeed})}},{name:dd.READ_SPEED,header:ud[dd.READ_SPEED],align:$t.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)(Aa,{data:t.readSpeed})}},{name:dd.WRITE_LAGS,header:(0,d.jsx)(Nd,{}),className:Id("lags-header"),sub:[{name:md,header:hd[md],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.partitionWriteLag)}},{name:pd,header:hd[pd],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.partitionWriteIdleTime)}}]},{name:dd.READ_LAGS,header:(0,d.jsx)(Cd,{}),className:Id("lags-header"),sub:[{name:vd,header:yd[vd],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.consumerWriteLag)}},{name:xd,header:yd[xd],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.consumerReadLag)}},{name:gd,header:yd[gd],align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,Ie.gC)(t.consumerReadIdleTime)}}]},{name:dd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(Pd,{}),align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return t.uncommitedMessages}},{name:dd.UNREAD_MESSAGES,header:(0,d.jsx)(wd,{}),align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return t.unreadMessages}},{name:dd.START_OFFSET,header:(0,d.jsx)(Td,{title:ud[dd.START_OFFSET]}),sortAccessor:e=>(0,Qr.kE)(e.startOffset)&&Number(e.startOffset),align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return t.startOffset}},{name:dd.END_OFFSET,header:(0,d.jsx)(Td,{title:ud[dd.END_OFFSET]}),sortAccessor:e=>(0,Qr.kE)(e.endOffset)&&Number(e.endOffset),align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return t.endOffset}},{name:dd.COMMITED_OFFSET,header:(0,d.jsx)(Td,{title:ud[dd.COMMITED_OFFSET]}),sortAccessor:e=>(0,Qr.kE)(e.commitedOffset)&&Number(e.commitedOffset),align:$t.ZP.RIGHT,render:e=>{let{row:t}=e;return t.commitedOffset}},{name:dd.READ_SESSION_ID,header:(0,d.jsx)(jd,{}),align:$t.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readSessionId?(0,d.jsx)(Vn.A,{name:t.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:dd.READER_NAME,header:(0,d.jsx)(Td,{title:ud[dd.READER_NAME]}),align:$t.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readerName?(0,d.jsx)(Vn.A,{name:t.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:dd.PARTITION_HOST,header:(0,d.jsx)(Td,{title:ud[dd.PARTITION_HOST]}),align:$t.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.partitionNodeId&&t.partitionHost?(0,d.jsx)(Vn.A,{name:t.partitionHost,path:(0,el.a3)(t.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:dd.CONNECTION_HOST,header:(0,d.jsx)(Td,{title:ud[dd.CONNECTION_HOST]}),align:$t.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.connectionNodeId&&t.connectionHost?(0,d.jsx)(Vn.A,{name:t.connectionHost,path:(0,el.a3)(t.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}}],_d=Dd.filter((e=>bd.includes(e.name))),Rd=(0,c.cn)("ydb-diagnostics-partitions"),Ad=e=>{let{path:t,database:a}=e;const r=(0,ve.zL)(),[i,s]=n.useState([]),o=(0,ve.ix)((e=>Ca(e,t,a))),[l]=(0,ve.Rj)(),{selectedConsumer:c}=(0,ve.ix)((e=>e.partitions)),{currentData:u,isFetching:m,error:p}=Sa.useGetTopicQuery({path:t,database:a}),h=m&&void 0===u,{currentData:v,isFetching:x,error:g}=nd.W.useGetNodesListQuery(void 0),y=x&&void 0===v,f=(0,ve.ix)(nd.s),[E,S]=(0,ve.yu)(he.ZY),[T,j]=(e=>{const[t,a]=n.useState([]),[r,i]=n.useState([]);return n.useEffect((()=>{e?(a(Dd),i(fd)):(a(_d),i(bd))}),[e]),[t,r]})(c),N=h?b.CN:{path:t,database:a,consumerName:c},{currentData:C,isFetching:w,error:P}=rd.TB.useGetPartitionsQuery(N,{pollingInterval:l}),I=w&&void 0===C,D=C,_=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}}))}(D,f)),[D,f]);n.useEffect((()=>{const e=!h&&!o,t=c&&o&&!o.includes(c);(e||t)&&r((0,rd.M$)(void 0))}),[r,h,c,o]);const R=n.useMemo((()=>T.filter((e=>!E.includes(e.name)))),[T,E]),A=e=>{S(e)},O=e=>{r((0,rd.M$)(e))},M=h||y||I,k=g||p||P;return(0,d.jsxs)("div",{className:Rd(),children:[(0,d.jsx)("div",{className:Rd("controls"),children:(0,d.jsx)(Ed,{consumers:o,selectedConsumer:c,onSelectedConsumerChange:O,selectDisabled:Boolean(k)||M,partitions:_,onSearchChange:s,hiddenColumns:E,onHiddenColumnsChange:A,initialColumnsIds:j})}),k?(0,d.jsx)(Ne.V,{error:k}):null,(0,d.jsx)("div",{className:Rd("table-wrapper"),children:(0,d.jsx)("div",{className:Rd("table-content"),children:C?M?(0,d.jsx)(Mt.h,{className:Rd("loader")}):(0,d.jsx)(tt.G,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:Rd("table"),data:i,columns:R,settings:he.LE,emptyDataMessage:cd("table.emptyDataMessage")}):null})})]})};var Od=a(67661),Md=a(54431);const kd=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Ld=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),zd=(0,st.wZ)("ydb-date-range",{ru:Ld,en:kd});function qd(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 Ud=(0,c.cn)("date-range"),Fd={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Qd=e=>{let{from:t,to:a,className:r,onChange:i}=e;const s=n.useCallback((e=>null===i||void 0===i?void 0:i(function(e){var t,a,n,r,i,s;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,ht.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===(i=(0,ht.J)(null===e||void 0===e||null===(s=e.end)||void 0===s?void 0:s.value))||void 0===i?void 0:i.valueOf())}}(e))),[i]),o=n.useMemo((()=>{if(t||a)return function(e){var t,a;const n=(0,ht.KN)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,ht.KN)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,ht.J)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,ht.J)(Number(e.to))}:null}}({from:t,to:a})}),[t,a]),l=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:Ud(null,r),children:(0,d.jsx)(Md.H,{withPresets:!0,className:Ud("range-input",{[qd(o)]:!0}),timeZone:l,value:o||Fd,allowNullableValues:!0,size:"m",format:zd("date-time-format"),onUpdate:s,placeholder:`${zd("date-time-format")} - ${zd("date-time-format")}`,withApplyButton:!0})})},Gd=e=>{var t;let{database:a,onRowClick:r,rowClassName:i}=e;const[s]=(0,ve.Rj)(),o=(0,ve.ix)((e=>e.executeTopQueries)),{currentData:l,isLoading:c,error:u}=Rs.MU.useGetRunningQueriesQuery({database:a,filters:o},{pollingInterval:s}),m=(null===l||void 0===l||null===(t=l.resultSets)||void 0===t?void 0:t[0].result)||[];return(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(Ne.V,{error:(0,kt.fV)(u)}):null,(0,d.jsx)(at.l.Table,{loading:c,children:(0,d.jsx)(tt.G,{emptyDataMessage:Do("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:$o,data:m,settings:Po,onRowClick:e=>r(e.QueryText),rowClassName:()=>i})})]})},Bd=e=>{var t,a;let{database:r,onRowClick:i,rowClassName:s}=e;const[o]=(0,ve.Rj)(),l=(0,ve.ix)((e=>e.executeTopQueries)),{currentData:c,isLoading:u,error:m}=Rs.MU.useGetTopQueriesQuery({database:r,filters:l},{pollingInterval:o}),p=(null===c||void 0===c||null===(t=c.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],h=Go.map((e=>{return{...e,sortable:(t=e.name,Object.values(To).includes(t))};var t}));return(0,d.jsxs)(n.Fragment,{children:[m?(0,d.jsx)(Ne.V,{error:(0,kt.fV)(m)}):null,(0,d.jsx)(at.l.Table,{loading:u,children:(0,d.jsx)(tt.G,{emptyDataMessage:Do("no-data"),columnsWidthLSKey:Ro,columns:h,data:p||[],settings:Po,onRowClick:e=>i(e.QueryText),rowClassName:()=>s})})]})},$d=(0,c.cn)("kv-top-queries"),Vd={top:"top",running:"running"},Hd=[{value:Vd.top,get content(){return Do("mode_top")}},{value:Vd.running,get content(){return Do("mode_running")}}],Zd=Dt.z.nativeEnum(Vd).catch(Vd.top),Wd=e=>{let{tenantName:t}=e;const a=(0,ve.zL)(),r=(0,er.TH)(),s=(0,er.k6)(),[o=Vd.top,l]=(0,i.useQueryParam)("queryMode",i.StringParam),c=Zd.parse(o),u=c===Vd.top,m=(0,ve.ix)((e=>e.executeTopQueries)),p=io(n.useCallback((e=>{a((0,As.B8)({input:e}));const t=(0,Re.mB)(r),n=(0,da.Sj)({...t,[ge.bS]:ge.m2.query,[da.XV.queryTab]:ge._0.newQuery});s.push(n)}),[a,s,r])),h=u?Bd:Gd;return(0,d.jsxs)(at.l,{children:[(0,d.jsxs)(at.l.Controls,{children:[(0,d.jsx)(Od.E,{options:Hd,value:c,onUpdate:l}),(0,d.jsx)(it.o,{value:m.text,onChange:e=>{a((0,Rs.Im)({text:e}))},placeholder:Do("filter.text.placeholder"),className:$d("search")}),u?(0,d.jsx)(Qd,{from:m.from,to:m.to,onChange:e=>{a((0,Rs.Im)(e))}}):null]}),(0,d.jsx)(h,{database:t,onRowClick:p,rowClassName:$d("row")})]})};var Jd=a(43647),Kd=a(70337);const Yd=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%"}'),Xd=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%"}'),eu=(0,st.wZ)("ydb-diagnostics-top-shards",{ru:Xd,en:Yd}),tu=e=>{let{value:t,onChange:a}=e;const r=t.mode===Kd.F.Immediate?void 0:t.from,i=t.mode===Kd.F.Immediate?void 0:t.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Od.E,{value:t.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(Kd.F,e)){const t=Object.values(Kd.F).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}a({mode:e})},children:[(0,d.jsx)(Od.E.Option,{value:Kd.F.Immediate,children:eu("filters.mode.immediate")}),(0,d.jsx)(Od.E.Option,{value:Kd.F.History,children:eu("filters.mode.history")})]}),(0,d.jsx)(Qd,{from:r,to:i,onChange:e=>{a({mode:Kd.F.History,...e})}})]})},au=(0,c.cn)("top-shards"),nu={...he.LE,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:$t.ZP.DESCENDING};function ru(e){return e?(0,Ie.o0)(new Date(e).getTime()):"\u2013"}function iu(e){return e?e.split(",").map((e=>({columnId:e,order:$t.ZP.DESCENDING}))):void 0}function su(e){return e.to="now",e.from="now-1h",e}const ou=e=>{var t,a;let{tenantName:r,path:i,type:s}=e;const o=(0,ve.zL)(),l=(0,er.TH)(),[c]=(0,ve.Rj)(),u=(0,ve.ix)((e=>e.shardsWorkload)),[m,p]=n.useState((()=>{const e={...u};return e.mode||(e.mode=Kd.F.Immediate),e.from||e.to||su(e),e})),[h,v]=n.useState(bo),{currentData:x,isFetching:g,error:y}=Jd.Ag.useSendShardQueryQuery({database:r,path:i,sortOrder:(b=h,b?b.split(",").map((e=>({columnId:e,order:"DESC"}))):void 0),filters:m},{pollingInterval:c});var b;const f=g&&void 0===x,E=(null===x||void 0===x||null===(t=x.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],S=e=>{v(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))},T=e=>{const t={...e};if(!u.from&&!u.to&&!e.from&&!e.to)switch(e.mode){case Kd.F.Immediate:t.from=t.to=void 0;break;case Kd.F.History:su(t)}o((0,Jd.K2)(e)),p((e=>({...e,...t})))},j=n.useMemo((()=>{const e=((e,t)=>[cl(e,t),dl,ul,ml,pl,vl])(r,l),t=e.map((e=>({...e,sortable:jo(e.name)})));return m.mode===Kd.F.History&&(t.splice(5,0,{name:fo,render:e=>{let{row:t}=e;return ru(t.PeakTime)},sortable:!1}),t.push({name:Eo,render:e=>{let{row:t}=e;return ru(t.IntervalEnd)}})),t}),[m.mode,l,r]);return(0,d.jsxs)(at.l,{children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(tu,{value:m,onChange:T})}),m.mode===Kd.F.History&&(0,d.jsx)("div",{className:au("hint"),children:eu("description")}),y?(0,d.jsx)(Ne.V,{error:(0,kt.fV)(y)}):null,(0,d.jsx)(at.l.Table,{loading:f,children:y&&!E?null:!E||K(s)?eu("no-data"):(0,d.jsx)(tt.G,{columnsWidthLSKey:tl,columns:j,data:E,settings:nu,onSort:S,sortOrder:iu(h)})})]})},lu=(0,c.cn)("kv-tenant-diagnostics");const cu=function(e){const t=n.useRef(null),a=(0,ve.zL)(),{diagnosticsTab:s=ge.qQ.overview}=(0,ve.ix)((e=>e.tenant)),[o]=(0,i.useQueryParams)({database:i.StringParam,schema:i.StringParam,backend:i.StringParam,clusterName:i.StringParam}),l=X(e.type)?e.path:e.tenantName,c=X(e.type)||e.path===e.tenantName,u=(0,Ee.bq)(),m=c?lc({hasFeatureFlags:u}):oc(e.type);let p=m.find((e=>e.id===s));return p||(p=m[0]),n.useEffect((()=>{p&&p.id!==s&&a((0,Se.$v)(p.id))}),[p,s,a]),(0,d.jsxs)("div",{className:lu(),children:[p?(0,d.jsx)(r.ql,{children:(0,d.jsx)("title",{children:p.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:lu("header-wrapper"),children:(0,d.jsxs)("div",{className:lu("tabs"),children:[(0,d.jsx)(ye.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,da.Sj)({...o,[da.XV.diagnosticsTab]:a});return(0,d.jsx)(be.rU,{to:n,className:lu("tab"),children:t},a)},allowNotSelected:!0}),(0,d.jsx)(fe.q,{})]})})})(),(0,d.jsx)("div",{className:lu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=p)||void 0===a?void 0:a.id){case ge.qQ.overview:return(0,d.jsx)(kl,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ge.qQ.schema:return(0,d.jsx)(ca,{path:r,tenantName:l,type:n,extended:!0});case ge.qQ.topQueries:return(0,d.jsx)(Wd,{tenantName:l});case ge.qQ.topShards:return(0,d.jsx)(ou,{tenantName:l,path:r,type:n});case ge.qQ.nodes:return(0,d.jsx)(Xe.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ge.qQ.tablets:return(0,d.jsx)(Ot.J,{path:r,database:l});case ge.qQ.storage:return(0,d.jsx)(At.V,{database:l,parentRef:t});case ge.qQ.network:return(0,d.jsx)(ad,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ge.qQ.describe:return(0,d.jsx)(Nn,{path:r,database:l,type:n});case ge.qQ.hotKeys:return(0,d.jsx)(fc,{path:r,database:l});case ge.qQ.graph:return(0,d.jsx)(Ye,{path:r,database:l});case ge.qQ.consumers:return(0,d.jsx)(yn,{path:r,database:l,type:n});case ge.qQ.partitions:return(0,d.jsx)(Ad,{path:r,database:l});case ge.qQ.configs:return(0,d.jsx)(ya,{database:l});case ge.qQ.operations:return(0,d.jsx)(Rt,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},du=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"}'),uu=(0,st.wZ)("ydb-query-editor",{en:du}),mu=(0,c.cn)("ydb-queries-history"),pu="queriesHistoryTableColumnsWidth";const hu=function(e){let{changeUserInput:t}=e;const a=(0,ve.zL)(),n=(0,ve.ix)(As.qV),r=(0,ve.ix)(As.vS),i=[...n].reverse(),s=io((e=>{t({input:e.queryText}),a((0,Se.jk)(ge._0.newQuery))})),o=[{name:"queryText",header:uu("history.queryText"),render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:mu("query"),children:(0,d.jsx)(oo,{value:t.queryText,maxQueryHeight:wo})})},sortable:!1,width:600},{name:"EndTime",header:uu("history.endTime"),render:e=>{let{row:t}=e;return t.endTime?(0,Ie.o0)(t.endTime.toString()):"-"},align:"right",width:200,sortable:!1},{name:"Duration",header:uu("history.duration"),render:e=>{let{row:t}=e;return t.durationUs?(0,wt.zm)((0,wt.BO)(t.durationUs)):"-"},align:"right",width:150,sortable:!1}];return(0,d.jsxs)(at.l,{className:mu(),children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(it.o,{value:r,onChange:e=>{a((0,As.u$)(e))},placeholder:uu("filter.text.placeholder"),className:mu("search")})}),(0,d.jsx)(at.l.Table,{children:(0,d.jsx)(tt.G,{columnsWidthLSKey:pu,columns:o,data:i,settings:Po,emptyDataMessage:uu(r?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>mu("table-row")})})]})};var vu=a(76421),xu=a(40145);const gu=(0,a(99669).k)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,39862))).default})),"Editor");var yu=a(19580);function bu(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 fu=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","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","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"}'),Eu=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","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","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"}'),Su=(0,st.wZ)("ydb-query-settings-dialog",{en:fu,ru:Eu}),Tu=[{value:kt.cy.implicit,content:kt.Nf[kt.cy.implicit],text:uu("transaction-mode-description.implicit"),isDefault:!0},{value:kt.cy.serializable,content:kt.Nf[kt.cy.serializable],text:uu("transaction-mode-description.serializable")},{value:kt.cy.onlinero,content:kt.Nf[kt.cy.onlinero],text:uu("transaction-mode-description.onlinero")},{value:kt.cy.stalero,content:kt.Nf[kt.cy.stalero],text:uu("transaction-mode-description.stalero")},{value:kt.cy.snapshot,content:kt.Nf[kt.cy.snapshot],text:uu("transaction-mode-description.snapshot")}],ju=[{value:kt.wZ.query,content:kt.U4[kt.wZ.query],text:uu("method-description.query"),isDefault:!0},{value:kt.wZ.script,content:kt.U4[kt.wZ.script],text:uu("method-description.script")},{value:kt.wZ.scan,content:kt.U4[kt.wZ.scan],text:uu("method-description.scan")},{value:kt.wZ.data,content:kt.U4[kt.wZ.data],text:uu("method-description.data")},{value:kt.wZ.pg,content:kt.U4[kt.wZ.pg],text:uu("method-description.pg")}],Nu=[{value:kt.$E.none,content:kt.Ie[kt.$E.none],text:uu("statistics-mode-description.none"),isDefault:!0},{value:kt.$E.basic,content:kt.Ie[kt.$E.basic],text:uu("statistics-mode-description.basic")},{value:kt.$E.full,content:kt.Ie[kt.$E.full],text:uu("statistics-mode-description.full")},{value:kt.$E.profile,content:kt.Ie[kt.$E.profile],text:uu("statistics-mode-description.profile")}],Cu=[{value:kt.Rm.off,content:kt.Vj[kt.Rm.off],text:uu("tracing-level-description.off"),isDefault:!0},{value:kt.Rm.toplevel,content:kt.Vj[kt.Rm.toplevel],text:uu("tracing-level-description.toplevel")},{value:kt.Rm.basic,content:kt.Vj[kt.Rm.basic],text:uu("tracing-level-description.basic")},{value:kt.Rm.detailed,content:kt.Vj[kt.Rm.detailed],text:uu("tracing-level-description.detailed")},{value:kt.Rm.diagnostic,content:kt.Vj[kt.Rm.diagnostic],text:uu("tracing-level-description.diagnostic")},{value:kt.Rm.trace,content:kt.Vj[kt.Rm.trace],text:uu("tracing-level-description.trace")}],wu={transactionMode:{title:Su("form.transaction-mode"),options:Tu},queryMode:{title:Su("form.query-mode"),options:ju},statisticsMode:{title:Su("form.statistics-mode"),options:Nu},tracingLevel:{title:Su("form.tracing-level"),options:Cu},timeout:{title:Su("form.timeout")},limitRows:{title:Su("form.limit-rows")}};function Pu(e){let{currentSettings:t,defaultSettings:a}=e;const n=bu(t,a),r={};return n.forEach((e=>{const a=wu[e],n=t[e];if("options"in a){var i;const e=null===(i=a.options.find((e=>e.value===n)))||void 0===i?void 0:i.content;e&&(r[a.title]=e)}else n&&(r[a.title]=String(n))})),r}var Iu=a(82202);const Du=()=>{const[e,t]=(0,Iu.y)(he.RE);let a;try{a=kt.J7.parse(e)}catch(n){a=void 0}return[a,t]};var _u=a(8214);const Ru=()=>{const[e,t]=(0,Iu.y)(he.Rn),[a]=Du(),[n]=(0,_u.d)(),r=a?bu(a,kt.hl):[],i=n?bu(n,kt.hl):[],s=r.length>0,o=a?Pu({currentSettings:a,defaultSettings:kt.hl}):{},l=n?Pu({currentSettings:n,defaultSettings:kt.hl}):{},c=e&&Date.now()-e<1e3*he.nU;return{isBannerShown:s&&!c,isIndicatorShown:s&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:i,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}},Au="s-expression",Ou="yql";var Mu=a(58903);let ku;!function(e){e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear"}(ku||(ku={}));const Lu=e=>{localStorage.setItem(e,"true")},zu=e=>{localStorage.removeItem(e)};function qu(e){return function(t,a){switch(a){case ku.triggerCollapse:return Lu(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case ku.triggerExpand:return zu(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case ku.clear:return zu(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const Uu=(0,c.cn)("kv-pane-visibility-button");function Fu(e){let{onCollapse:t,onExpand:a,isCollapsed:r,initialDirection:i="top",className:s}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(bt.M,{title:"Collapse",children:(0,d.jsx)(Yr.z,{view:"flat-secondary",onClick:t,className:Uu({hidden:r},s),children:(0,d.jsx)(ft.J,{data:Mu.Z,className:Uu({[i]:!0})})})}),(0,d.jsx)(bt.M,{title:"Expand",children:(0,d.jsx)(Yr.z,{view:"flat-secondary",onClick:a,className:Uu({hidden:!r},s),children:(0,d.jsx)(ft.J,{data:Mu.Z,className:Uu({[i]:!0},"rotate")})})})]})}const Qu=(0,c.cn)("kv-divider");const Gu=function(){return(0,d.jsx)("div",{className:Qu()})},Bu=(0,c.cn)("ydb-query-elapsed-time");function $u(e){let{className:t}=e;const[,a]=n.useState({}),[r]=n.useState(Date.now()),i=Date.now()-r;n.useEffect((()=>{const e=setInterval((()=>{a({})}),he.NO);return()=>{clearInterval(e)}}),[]);const s=i>he.RQ*he.NO?(0,ht.x9)(i).format("hh:mm:ss"):(0,ht.x9)(i).format("mm:ss");return(0,d.jsx)(qt._,{className:Bu(null,t),children:s})}var Vu=a(1995),Hu=a(50015);const Zu=function(e){let{disabled:t}=e;const a=(0,ve.zL)();return(0,d.jsx)(Yr.z,{onClick:()=>{a((0,Hu.Xl)())},view:"flat-secondary",disabled:t,title:"Fullscreen",children:(0,d.jsx)(ft.J,{data:Vu.Z})})};var Wu,Ju=a(41715);function Ku(){return Ku=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},Ku.apply(this,arguments)}const Yu=function(e){return n.createElement("svg",Ku({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Wu||(Wu=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 Xu;const em=(0,c.cn)("ydb-fullscreen"),tm=null!==(Xu=document.getElementById("fullscreen-root"))&&void 0!==Xu?Xu:void 0;const am=function(e){let{children:t,className:a}=e;const r=(0,ve.ix)((e=>e.fullscreen)),i=(0,ve.zL)(),s=n.useCallback((()=>{i((0,Hu.vj)())}),[i]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[s]);const[o,l]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===tm||void 0===tm||tm.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===tm||void 0===tm||tm.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)(Ju.h,{container:o,children:(0,d.jsxs)("div",{className:em({fullscreen:r},a),children:[(0,d.jsx)(Yr.z,{onClick:s,view:"raised",className:em("close-button"),children:(0,d.jsx)(ft.J,{data:Yu})}),t]})})}):null};var nm=a(92243);function rm(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:i,shapes:s}=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,nm.hP)(e.id,r,i,s);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,i,s]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const im={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},sm={node:nm.od};function om(e){return(0,d.jsx)(rm,{...e,opts:im,shapes:sm})}var lm=a(29651),cm=a(81187),dm=a(46640);function um(e){var t;const a=(0,kt.dt)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}var mm=a(87717);const pm=(0,c.cn)("ydb-query-settings-description"),hm=e=>{let{querySettings:t,prefix:a}=e;return(0,d.jsxs)("div",{className:pm("message"),children:[a,Object.entries(t).map(((e,t,a)=>{let[n,r]=e;return(0,d.jsxs)("span",{className:pm("description-item"),children:[`${n}: ${r}`,t<a.length-1?", ":null]},t)}))]})},vm=(0,c.cn)("kv-query-execution-status"),xm=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=Ru();return e?(0,d.jsx)(cm.u,{openDelay:0,content:(0,d.jsx)(hm,{prefix:uu("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(ft.J,{data:is.Z,className:vm("query-settings-icon")})}):null},gm=e=>{let t,a,{className:n,error:r,loading:i}=e;if(i)t=(0,d.jsx)(dm.y,{size:"xs"}),a="Running";else if((0,mm.IZ)(r)&&"ECONNABORTED"===r.code)t=(0,d.jsx)(ft.J,{data:lm.Z}),a="Connection aborted";else if(um(r))t=(0,d.jsx)(ft.J,{data:xt.Z}),a="Stopped";else{const e=Boolean(r);t=(0,d.jsx)(ft.J,{data:e?ss.Z:rs.Z,className:vm("result-status-icon",{error:e})}),a=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:vm(null,n),children:[t,a,um(r)||i?null:(0,d.jsx)(xm,{})]})},ym=n.memo((function(e){const{className:t,value:a}=e,n=(0,ve.zL)();return(0,d.jsx)("span",{className:jm("cell",t),onClick:e=>n((0,Pe.hJ)(e.target,a,"cell")),children:a})})),bm=JSON.parse('{"empty":"Table is empty"}'),fm=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Em=(0,st.wZ)("ydb-query-result-table",{ru:fm,en:bm}),Sm=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},Tm={...he.LE,stripedRows:!0,dynamicRenderType:"variable",dynamicItemSizeGetter:()=>40,sortable:!1},jm=(0,c.cn)("ydb-query-result-table"),Nm=(e,t)=>t,Cm=e=>{const{columns:t,data:a,...r}=e,i=n.useMemo((()=>(0,kt.Xh)(a)),[a]),s=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,kt.T$)(n);return{name:t,width:Sm({data:a,name:t}),align:"number"===r?$t.ZP.RIGHT:$t.ZP.LEFT,render:e=>{let{row:a}=e;return(0,d.jsx)(ym,{value:String(a[t])})}}}))})(t,i):(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:Sm({data:t,name:a}),align:(0,Qr.kE)(e[0][a])?$t.ZP.RIGHT:$t.ZP.LEFT,render:e=>{let{row:t}=e;return(0,d.jsx)(ym,{value:String(t[a])})}})))})(i)),[i,t]);return Array.isArray(a)?s.length?(0,d.jsx)(tt.G,{data:i,columns:s,settings:Tm,rowKey:Nm,...r}):(0,d.jsx)("div",{className:jm("message"),children:Em("empty")}):null};var wm=a(87130);const Pm=le.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,kt.gW)(e))return{error:e};return{data:(0,kt.Ae)(e)}}catch(i){return{error:i}}}})}),overrideExisting:"throw"}),Im=(0,c.cn)("cancel-query-button");function Dm(e){let{queryId:t,tenantName:a}=e;const[r,i]=Pm.useCancelQueryMutation(),s=n.useCallback((()=>{r({queryId:t,database:a})}),[t,r,a]);return(0,d.jsxs)(Yr.z,{loading:i.isLoading,onClick:s,className:Im("stop-button",{error:Boolean(i.error)}),children:[(0,d.jsx)(ft.J,{data:wm.Z,size:16}),uu("action.stop")]})}var _m=a(8475),Rm=a(72001),Am=a(25089);const Om=(0,c.cn)("ydb-query-explain-simplified-plan");function Mm(e){let{value:t,formatter:a}=e;if(!(0,Qr.kE)(t))return;const n=a(Number(t));return(0,d.jsx)("div",{className:Om("metrics-cell"),children:n})}var km=a(81778);const Lm={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function zm(e){return e in Lm?Lm[e]:"var(--g-color-text-secondary)"}function qm(){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=zm(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,Ie.fm)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...i}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(i))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],i=zm(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:i},children:[n,": ",(0,Ie.fm)(r)]},e))}}return t}function Um(e){let{params:t}=e;return t?(0,d.jsxs)("span",{className:Om("operation-params"),children:["(",qm(t),")"]}):null}const Fm=25,Qm=9;function Gm(e){let{modifiers:t,left:a}=e;return(0,d.jsx)("div",{className:Om("divider",t),style:{left:a}})}function Bm(e){let{row:t,depth:a=0,params:r}=e;const{name:i,operationParams:s,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)(Gm,{modifiers:{horizontal:!0},left:Qm+1+Fm*(r-1)},"last")):n.push((0,d.jsx)(Gm,{modifiers:{last:!0},left:Qm+Fm*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Gm,{modifiers:{first:!0},left:Qm+Fm*r},"first")),a[r]&&n.push((0,d.jsx)(Gm,{left:Qm+Fm*(r-1)},r));return n}(o,l)),[o,l]);return(0,d.jsxs)("div",{style:{paddingLeft:Fm*a},className:Om("operation-name"),children:[c,(0,d.jsxs)(yt.k,{gap:1,alignItems:"flex-start",className:Om("operation-content"),children:[t.getCanExpand()&&(0,d.jsx)(Yr.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,d.jsx)(Yr.z.Icon,{children:(0,d.jsx)(km.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Om("operation-name-content"),children:(0,d.jsxs)("div",{children:[i,"\xa0",(0,d.jsx)(Um,{params:s})]})})]})]})}function $m(e){return(0,d.jsx)(Mm,{value:e.getValue(),formatter:e=>e<1e8?(0,Am.X)(e).format():(0,Qr.t_)(e,1)})}function Vm(e){let{name:t}=e;return(0,d.jsx)("div",{className:Om("table-header-content"),children:t})}const Hm=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(Vm,{name:"Operation"}),size:600,cell:e=>(0,d.jsx)(Bm,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(Vm,{name:"A-Cpu"}),size:90,minSize:100,cell:function(e){return(0,d.jsx)(Mm,{value:e.getValue(),formatter:e=>(0,wt.zm)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(Vm,{name:"A-Rows"}),size:90,minSize:100,cell:$m,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(Vm,{name:"E-Cost"}),size:90,minSize:100,cell:$m,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(Vm,{name:"E-Rows"}),size:90,minSize:100,cell:$m,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(Vm,{name:"E-Size"}),size:90,minSize:100,cell:$m,meta:{align:"right",verticalAlign:"top"}}];function Zm(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:i}=t.pop(),s=[];for(let a=0;a<e.length;a++){const r={...e[a]},i=a<e.length-1?1:0;let o=`${n}.${i}`;n||(o=String(i)),r.lines=o,s.push(r),r.children&&t.push({items:r.children,prefix:o,parentIndex:a,parentArray:s})}-1===r?a.push(...s):i[r].children=s}return a}(t)),[t]),[r,i]=n.useState(!0),s=(0,_m.x)({columns:Hm,data:a,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:i,state:{expanded:r}});return(0,d.jsx)("div",{className:Om(),children:(0,d.jsx)(Rm.i,{table:s,headerCellClassName:e=>{var t;let{column:a}=e;const n=null===(t=a.columnDef.meta)||void 0===t?void 0:t.align;return Om("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 Om("table-cell",{align:n,"vertical-align":r})},className:Om("table"),stickyHeader:!0})})}var Wm=a(58231);const Jm=(0,c.cn)("ydb-query-duration"),Km=e=>{let{duration:t}=e;if(!t)return null;const a=(0,wt.tt)((0,wt.BO)(t),1);return(0,d.jsx)("span",{className:Jm(),children:(0,d.jsx)(Ua,{className:Jm("item-with-popover"),contentClassName:Jm("popover-content"),text:a,popoverClassName:Jm("popover"),popoverContent:uu("query-duration.description"),buttonProps:{className:Jm("popover-button")}})})};var Ym=a(74679);const Xm=(0,c.cn)("ydb-query-settings-banner");function ep(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=Ru();return e?(0,d.jsx)(Ym.b,{className:Xm(),theme:"info",align:"baseline",message:(0,d.jsx)(hm,{prefix:uu("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function tp(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var ap=a(15152);const np=le.h.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async(e,t)=>{let{plan:a,database:n}=e,{signal:r}=t;try{return{data:await window.api.planToSvg({database:n,plan:a},{signal:r})}}catch(i){return{error:i}}}})}),overrideExisting:"throw"}),rp=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","text_plan-svg":"Execution plan","text_open-plan-svg":"Open execution plan in new window","text_error-plan-svg":"Error: {{error}}"}'),ip=(0,st.wZ)("ydb-execute-result",{en:rp});function sp(e,t){return e?"flat-danger":t?"flat-secondary":"flat-info"}function op(e){let{plan:t,database:a}=e;const[r,i]=n.useState(null),[s,o]=n.useState(null),[l,{isLoading:c}]=np.useLazyPlanToSvgQueryQuery(),u=n.useCallback((()=>{l({plan:t,database:a}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);o(a),i(null),window.open(a,"_blank")})).catch((e=>{i(JSON.stringify(e))}))}),[a,l,t]);return n.useEffect((()=>()=>{s&&URL.revokeObjectURL(s)}),[s]),(0,d.jsx)(cm.u,{content:r?ip("text_error-plan-svg",{error:r}):ip("text_open-plan-svg"),children:(0,d.jsxs)(Yr.z,{view:sp(r,c),loading:c,onClick:u,disabled:c,children:[ip("text_plan-svg"),(0,d.jsx)(Yr.z.Icon,{children:(0,d.jsx)(ap.Z,{})})]})})}var lp=a(10730);const cp=le.h.injectEndpoints({endpoints:e=>({checkTrace:e.query({queryFn:async(e,t)=>{let{url:a}=e,{signal:n,dispatch:r}=t;try{const e=await window.api.checkTrace({url:a},{signal:n});return r((0,As.Rp)()),{data:e}}catch(i){return{error:i}}}})}),overrideExisting:"throw"});function dp(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}function up(e){let{traceId:t,isTraceReady:a}=e;const{traceCheck:r,traceView:i}=(0,lp.kW)(),s=null!==r&&void 0!==r&&r.url?dp(r.url,{traceId:t}):"",o=null!==i&&void 0!==i&&i.url?dp(i.url,{traceId:t}):"",[l,{isLoading:c,isUninitialized:u}]=cp.useLazyCheckTraceQuery();return n.useEffect((()=>{let e;return s&&!a&&(e=l({url:s})),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[l,s,a]),!o||u&&!a?null:(0,d.jsxs)(Yr.z,{view:c?"flat-secondary":"flat-info",loading:c,href:o,target:"_blank",children:[ip("trace"),(0,d.jsx)(Yr.z.Icon,{children:(0,d.jsx)(ap.Z,{})})]})}var mp=a(45514),pp=a(90035);const hp=(0,c.cn)("ydb-query-execute-result"),vp={result:"result",stats:"stats",schema:"schema",simplified:"simplified"};function xp(e){var t,a;let{result:r,isResultsCollapsed:i,theme:s,tenantName:l,onCollapseResults:c,onExpandResults:u}=e;const[m,p]=n.useState(0),[h,v]=n.useState(vp.result),x=(0,ve.zL)(),[g]=(0,ve.yu)(he.Mg),{error:y,isLoading:b,queryId:f,data:E}=r,S=null===E||void 0===E?void 0:E.stats,T=(null===E||void 0===E||null===(t=E.resultSets)||void 0===t?void 0:t.length)||0,j=null===E||void 0===E||null===(a=E.resultSets)||void 0===a?void 0:a[m],{plan:N,simplifiedPlan:C}=n.useMemo((()=>function(e){var t,a,n;if(!e)return{};const{plan:r}=e;if(r){const e=(0,kt.y5)(r);if(e.meta.version!==mp.J.v2)return{};const{Plan:t,SimplifiedPlan:a}=e;return{plan:t?{...(0,pp.G)(t),tables:e.tables}:void 0,simplifiedPlan:{plan:a?(0,pp.f)([a]):void 0,pristine:a}}}const{stats:i}=e,s=null===i||void 0===i||null===(t=i.Executions)||void 0===t||null===(a=t[0])||void 0===a||null===(n=a.TxPlansWithStats)||void 0===n?void 0:n[0];if(!s)return{};try{const e=JSON.parse(s);return{plan:(0,pp.G)(e)}}catch(o){return{}}}(E)),[E]),w=[{value:vp.result,content:ip("action.result")},{value:vp.stats,content:ip("action.stats")}];N&&w.push({value:vp.schema,content:ip("action.schema")}),null!==C&&void 0!==C&&C.plan&&w.push({value:vp.simplified,content:ip("action.explain-plan")});const P=(0,kt.dt)(y);n.useEffect((()=>()=>{x((0,Hu.vj)())}),[x]);const I=()=>{switch(h){case vp.result:{const e=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(tp).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(tp("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===j||void 0===j?void 0:j.result);return e}case vp.stats:return S;case vp.simplified:return null===C||void 0===C?void 0:C.pristine;default:return}};return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:hp("controls"),children:[(0,d.jsxs)("div",{className:hp("controls-right"),children:[(0,d.jsx)(gm,{error:y,loading:b}),!y&&!b&&(0,d.jsxs)(n.Fragment,{children:[void 0!==(null===S||void 0===S?void 0:S.DurationUs)&&(0,d.jsx)(Km,{duration:Number(S.DurationUs)}),w&&h&&(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Gu,{}),(0,d.jsx)(Od.E,{options:w,value:h,onUpdate:e=>{v(e)}})]})]}),b?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)($u,{className:hp("elapsed-time")}),(0,d.jsx)(Dm,{queryId:f,tenantName:l})]}):null,null!==E&&void 0!==E&&E.traceId?(0,d.jsx)(up,{traceId:E.traceId,isTraceReady:r.isTraceReady}):null,null!==E&&void 0!==E&&E.plan&&g?(0,d.jsx)(op,{plan:null===E||void 0===E?void 0:E.plan,database:l}):null]}),(0,d.jsxs)("div",{className:hp("controls-left"),children:[(()=>{const e=I(),t=(0,Ie.fm)(e);return t?(0,d.jsx)(bn.m,{text:t,view:"flat-secondary",title:ip("action.copy",{activeSection:h})}):null})(),(0,d.jsx)(Zu,{}),(0,d.jsx)(Fu,{onCollapse:c,onExpand:u,isCollapsed:i,initialDirection:"bottom"})]})]}),b||um(y)?null:(0,d.jsx)(ep,{}),(0,d.jsx)(o.s,{loading:b,children:(0,d.jsx)(am,{children:y&&!um(y)?P?"object"===typeof P?(0,d.jsx)(Wm.I,{data:P}):(0,d.jsx)("div",{className:hp("error"),children:P}):null:h===vp.result?(0,d.jsxs)("div",{className:hp("result-wrapper"),children:[T>1&&(0,d.jsx)("div",{children:(0,d.jsx)(ye.m,{className:hp("result-tabs"),size:"l",items:(0,Fr.c$)(T).map((e=>{var t,a;return{id:String(e),title:`Result #${e+1}${null!==E&&void 0!==E&&null!==(t=E.resultSets)&&void 0!==t&&null!==(a=t[e])&&void 0!==a&&a.truncated?" (T)":""}`}})),activeTab:String(m),onSelectTab:e=>p(Number(e))})}),j&&(0,d.jsxs)("div",{className:hp("result"),children:[(0,d.jsxs)("div",{className:hp("result-head"),children:[(0,d.jsx)(gt.x,{variant:"subheader-3",children:null!==j&&void 0!==j&&j.truncated?ip("title.truncated"):ip("title.result")}),j.result&&(0,d.jsx)(gt.x,{color:"secondary",variant:"body-2",className:hp("row-count"),children:`(${j.result.length})`})]}),(0,d.jsx)(Cm,{data:j.result,columns:j.columns})]})]}):h===vp.stats?(0,d.jsx)("div",{className:hp("inspector"),children:(0,d.jsx)(En(),{data:S,isExpanded:()=>!0,searchOptions:{debounceTime:300}})}):h===vp.schema?(null===N||void 0===N?void 0:N.links)&&(null===N||void 0===N?void 0:N.nodes)&&(null===N||void 0===N?void 0:N.nodes.length)?(0,d.jsx)("div",{className:hp("explain-canvas-container"),children:(0,d.jsx)(om,{data:N},s)}):ip("description.graph-is-not-supported"):h===vp.simplified?(()=>{const{plan:e}=null!==C&&void 0!==C?C:{};return e?(0,d.jsx)(Zm,{plan:e}):null})():null})})]})}var gp=a(39862);const yp=(0,c.cn)("ydb-query-explain-ast"),bp={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function fp(e){let{ast:t,theme:a}=e;return(0,d.jsx)("div",{className:yp(),children:(0,d.jsx)(gp.default,{language:Au,value:t,options:bp,theme:`vs-${a}`})})}const Ep=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}}"}'),Sp=(0,st.wZ)("ydb-explain-result",{en:Ep}),Tp=(0,c.cn)("ydb-query-explain-graph");function jp(e){let{explain:t,theme:a}=e;const{links:n,nodes:r,version:i}=null!==t&&void 0!==t?t:{},s=i===mp.J.v2,o=n&&r&&r.length;return s&&o?(0,d.jsx)("div",{className:Tp("canvas-container"),children:(0,d.jsx)(om,{data:{links:n,nodes:r}},a)}):(0,d.jsx)("div",{className:Tp("text-message"),children:Sp("description.graph-is-not-supported")})}const Np=(0,c.cn)("ydb-query-explain-text");function Cp(e){let{explain:t}=e;return(0,d.jsx)(En(),{data:t,isExpanded:()=>!0,className:Np("inspector"),searchOptions:{debounceTime:300}})}const wp=(0,c.cn)("ydb-query-explain-result"),Pp={schema:"schema",json:"json",ast:"ast",simplified:"simplified"},Ip={[Pp.schema]:Sp("action.schema"),[Pp.json]:Sp("action.json"),[Pp.ast]:Sp("action.ast"),[Pp.simplified]:Sp("action.explain-plan")},Dp=[{value:Pp.schema,content:Ip[Pp.schema]},{value:Pp.simplified,content:Ip[Pp.simplified]},{value:Pp.json,content:Ip[Pp.json]},{value:Pp.ast,content:Ip[Pp.ast]}];function _p(e){let{theme:t,result:a,tenantName:r,onCollapseResults:i,onExpandResults:s,isResultsCollapsed:l}=e;const c=(0,ve.zL)(),[u,m]=n.useState(Pp.schema),[p,h]=n.useTransition(),{error:v,isLoading:x,queryId:g}=a,{preparedPlan:y,ast:b,simplifiedPlan:f}=a.data||{};n.useEffect((()=>()=>{c((0,Hu.vj)())}),[c]);const E=()=>(0,d.jsx)("div",{className:wp("text-message"),children:Sp("description.empty-result",{activeOption:Ip[u]})}),S=(()=>{switch(u){case Pp.json:return null===y||void 0===y?void 0:y.pristine;case Pp.ast:return b;case Pp.simplified:return null===f||void 0===f?void 0:f.pristine;default:return}})(),T=(0,Ie.fm)(S);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:wp("controls"),children:[(0,d.jsxs)("div",{className:wp("controls-right"),children:[(0,d.jsx)(gm,{error:v,loading:x}),!v&&!x&&(0,d.jsxs)(n.Fragment,{children:[void 0!==(null===y||void 0===y?void 0:y.DurationUs)&&(0,d.jsx)(Km,{duration:y.DurationUs}),(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Gu,{}),(0,d.jsx)(Od.E,{options:Dp,value:u,onUpdate:e=>{h((()=>m(e)))}})]})]}),x?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)($u,{className:wp("elapsed-time")}),(0,d.jsx)(Dm,{queryId:g,tenantName:r})]}):null]}),(0,d.jsxs)("div",{className:wp("controls-left"),children:[T&&(0,d.jsx)(bn.m,{text:T,view:"flat-secondary",title:Sp("action.copy",{activeOption:u})}),(0,d.jsx)(Zu,{disabled:Boolean(v)}),(0,d.jsx)(Fu,{onCollapse:i,onExpand:s,isCollapsed:l,initialDirection:"bottom"})]})]}),x||um(v)?null:(0,d.jsx)(ep,{}),(0,d.jsx)(o.s,{loading:x||p,children:(0,d.jsx)(am,{className:wp("result"),children:(()=>{if(um(v))return null;if(v)return(0,d.jsx)("div",{className:wp("text-message"),children:(0,kt.fV)(v)});switch(u){case Pp.json:return null!==y&&void 0!==y&&y.pristine?(0,d.jsx)(Cp,{explain:y.pristine}):E();case Pp.ast:return b?(0,d.jsx)(fp,{ast:b,theme:t}):E();case Pp.schema:var e;return null!==y&&void 0!==y&&null!==(e=y.nodes)&&void 0!==e&&e.length?(0,d.jsx)(jp,{theme:t,explain:y}):E();case Pp.simplified:{const{plan:e}=null!==f&&void 0!==f?f:{};return null!==e&&void 0!==e&&e.length?(0,d.jsx)(Zm,{plan:e}):E()}default:return null}})()})})]})}const Rp=le.h.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async(e,t)=>{let{query:a,database:n,action:r}=e,{signal:i}=t;try{const e=await window.api.sendQuery({query:a,database:n,action:r},{signal:i,withRetries:!0});return(0,kt.gW)(e)?{error:e}:{data:(0,kt.Ae)(e)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["All","PreviewData"]})}),overrideExisting:"throw"}),Ap=(0,c.cn)("kv-preview"),Op=e=>{var t,a,n;let{database:r,path:i,type:s}=e;const o=(0,ve.zL)(),l=H(s),c=`select * from \`${i}\` limit 32`,{currentData:u,isFetching:m,error:p}=Rp.useSendQueryQuery({database:r,query:c,action:ie(s)?"execute-query":"execute-scan"},{skip:!l,refetchOnMountOrArgChange:!0}),h=m&&void 0===u,v=null!==(t=null===u||void 0===u||null===(a=u.resultSets)||void 0===a?void 0:a[0])&&void 0!==t?t:{},x=()=>{o((0,yu.m7)(!1))};if(h)return(0,d.jsx)("div",{className:Ap("loader-container"),children:(0,d.jsx)(Kr.a,{size:"m"})});let g;l?p&&(g=(0,d.jsx)("div",{className:Ap("message-container","error"),children:(0,kt.fV)(p)})):g=(0,d.jsx)("div",{className:Ap("message-container"),children:uu("preview.not-available")});const y=null!==(n=g)&&void 0!==n?n:(0,d.jsx)("div",{className:Ap("result"),children:(0,d.jsx)(Cm,{data:v.result,columns:v.columns})});return(0,d.jsxs)("div",{className:Ap(),children:[(0,d.jsxs)("div",{className:Ap("header"),children:[(0,d.jsxs)("div",{className:Ap("title"),children:[uu("preview.title")," ",(0,d.jsx)("div",{className:Ap("table-name"),children:i})]}),(0,d.jsxs)("div",{className:Ap("controls-left"),children:[(0,d.jsx)(Zu,{disabled:Boolean(p)}),(0,d.jsx)(Yr.z,{view:"flat-secondary",onClick:x,title:uu("preview.close"),children:(0,d.jsx)(ft.J,{data:cc.Z,size:18})})]})]}),(0,d.jsx)(am,{children:y})]})};var Mp=a(68045),kp=a(81101),Lp=a(85996);function zp(e){var t;window.ydbEditor||console.error("Monaco editor not found"),null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e)}const qp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_row_table\``:"${1:my_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)`,Up=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_column_table\``:"${1:my_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)`,Fp=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3: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);',Qp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,Gp=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.tableData)||void 0===t?void 0:t.map((e=>"`"+e.name+"`")).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},Bp=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.tableData)||void 0===t?void 0:t.map((e=>`\`${e.name}\``)).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.tableData?"${3: }":'${3:1, "foo"}'} );`},$p=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:my_table}"};`,Vp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${t}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${e.relativePath}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},Hp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\`/my_topic`:"${1: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);`,Zp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"}\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 );`,Wp=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"};`,Jp=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\`/my_view`:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,Kp=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_view>}"};`,Yp=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"};`,Xp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,eh=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,th=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${a}\``:"${1:<my_table>}"} DROP INDEX ${t||"${2:<index_name>}"};`},ah=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- 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.`,nh=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",rh=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\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.",ih=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,sh=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<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.",oh=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<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.",lh=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\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.`,ch=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<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.`,dh=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,uh=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"};`,mh=e=>{const t=t=>()=>{e(t())};return{createRowTable:t(qp),createColumnTable:t(Up),createAsyncReplication:t(Fp),alterAsyncReplication:t(Xp),dropAsyncReplication:t(Yp),alterTable:t(Qp),selectQuery:t(Gp),upsertQuery:t(Bp),createExternalTable:t(Vp),dropExternalTable:t($p),createTopic:t(Hp),alterTopic:t(Zp),dropTopic:t(Wp),createView:t(Jp),dropTable:t(uh),deleteRows:t(ih),updateTable:t(dh),createUser:t(rh),createGroup:t(nh),createCdcStream:t(ah),grantPrivilege:t(lh),revokePrivilege:t(ch),dropUser:t(oh),dropGroup:t(sh),addTableIndex:t(eh),dropTableIndex:t(th)}},ph=JSON.parse('{"button.new-sql":"New query","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.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","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 changefeed","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"}'),hh=(0,st.wZ)("ydb-new-sql",{en:ph});function vh(){const e=io(n.useCallback((e=>{zp(e)}),[])),t=mh(e),a=[{text:hh("menu.tables"),items:[{text:hh("action.create-row-table"),action:t.createRowTable},{text:hh("action.create-column-table"),action:t.createColumnTable},{text:hh("action.create-external-table"),action:t.createExternalTable},{text:hh("action.upsert-to-table"),action:t.upsertQuery},{text:hh("action.update-table"),action:t.updateTable},{text:hh("action.alter-table"),action:t.alterTable},{text:hh("action.select-rows"),action:t.selectQuery},{text:hh("action.delete-rows"),action:t.deleteRows},{text:hh("action.drop-table"),action:t.dropTable},{text:hh("action.drop-external-table"),action:t.dropExternalTable},{text:hh("action.add-index"),action:t.addTableIndex},{text:hh("action.drop-index"),action:t.dropTableIndex}]},{text:hh("menu.topics"),items:[{text:hh("action.create-topic"),action:t.createTopic},{text:hh("action.alter-topic"),action:t.alterTopic},{text:hh("action.drop-topic"),action:t.dropTopic}]},{text:hh("menu.replication"),items:[{text:hh("action.create-async-replication"),action:t.createAsyncReplication},{text:hh("action.alter-async-replication"),action:t.alterAsyncReplication},{text:hh("action.drop-async-replication"),action:t.dropAsyncReplication}]},{text:hh("menu.capture"),items:[{text:hh("action.create-cdc-stream"),action:t.createCdcStream}]},{text:hh("menu.users"),items:[{text:hh("action.create-user"),action:t.createUser},{text:hh("action.create-group"),action:t.createGroup},{text:hh("action.drop-user"),action:t.dropUser},{text:hh("action.drop-group"),action:t.dropGroup},{text:hh("action.grant-privilege"),action:t.grantPrivilege},{text:hh("action.revoke-privilege"),action:t.revokePrivilege}]}];return(0,d.jsx)(Qs.h,{items:a,renderSwitcher:e=>(0,d.jsxs)(Yr.z,{...e,children:[hh("button.new-sql"),(0,d.jsx)(Yr.z.Icon,{children:(0,d.jsx)(Lp.Z,{})})]}),popupProps:{placement:"top"}})}const xh=(0,c.cn)("ydb-query-editor-controls"),gh=e=>{let{onClick:t,runIsLoading:a}=e;const{changedCurrentSettings:n,changedCurrentSettingsDescriptions:r}=Ru(),i=n.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(cm.u,{disabled:0===n.length,content:(0,d.jsx)(hm,{prefix:uu("gear.tooltip"),querySettings:r}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(Yr.z,{onClick:t,loading:a,className:xh("gear-button"),...i,children:[(0,d.jsx)(ft.J,{data:Mp.Z,size:16}),i?(0,d.jsxs)("div",{className:xh("changed-settings"),children:["(",n.length,")"]}):null]})})},yh=e=>{let{disabled:t,isLoading:a,highlightedAction:n,handleSendExecuteClick:r,onSettingsButtonClick:i,handleGetExplainQueryClick:s}=e;const o="execute"===n?"action":void 0,l="explain"===n?"action":void 0;return(0,d.jsxs)("div",{className:xh(),children:[(0,d.jsxs)("div",{className:xh("left"),children:[(0,d.jsxs)(Yr.z,{onClick:()=>{r()},disabled:t,loading:a,view:o,className:xh("run-button"),children:[(0,d.jsx)(ft.J,{data:kp.Z,size:14}),"Run"]}),(0,d.jsx)(Yr.z,{onClick:()=>{s()},disabled:t,loading:a,view:l,children:"Explain"}),(0,d.jsx)(gh,{onClick:i,runIsLoading:a})]}),(0,d.jsxs)("div",{className:xh("right"),children:[(0,d.jsx)(vh,{}),(0,d.jsx)(Ks,{buttonProps:{disabled:t}})]})]})};var bh=a(94941),fh=a(55247);const Eh=()=>-1,Sh=(0,c.cn)("ydb-query-settings-select");function Th(e){return(0,d.jsx)("div",{className:Sh("selector"),children:(0,d.jsx)(Te.P,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:Eh,popupClassName:Sh("popup"),renderOption:e=>(0,d.jsxs)("div",{className:Sh("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:Sh("item-title"),children:[e.content,e.isDefault?Su("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:Sh("item-description"),children:e.text})]}),width:"max"})})}const jh=(0,c.cn)("ydb-query-settings-dialog");function Nh(){const e=(0,ve.zL)(),t=(0,ve.ix)(Bs.oK),[a,r]=(0,ve.dU)(),i=n.useCallback((()=>{e((0,Bs.lm)("idle"))}),[e]),s=n.useCallback((e=>{r(e),i()}),[i,r]);return(0,d.jsxs)(Ms.V,{open:"settings"===t,size:"s",onClose:i,className:jh(),hasCloseButton:!1,children:[(0,d.jsx)(Ms.V.Header,{caption:Su("action.settings")}),(0,d.jsx)(Ch,{initialValues:a,onSubmit:s,onClose:i})]})}function Ch(e){let{initialValues:t,onSubmit:a,onClose:r}=e;const{control:i,handleSubmit:s,formState:{errors:o}}=(0,fh.cI)({defaultValues:t,resolver:(0,bh.F)(kt.J7)}),[l]=(0,ve.yu)(he.Mg),c=(0,Ee.uY)();return(0,d.jsxs)("form",{onSubmit:s(a),children:[(0,d.jsxs)(Ms.V.Body,{className:jh("dialog-body"),children:[(0,d.jsxs)(yt.k,{direction:"row",alignItems:"flex-start",className:jh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:jh("field-title"),children:wu.queryMode.title}),(0,d.jsx)("div",{className:jh("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(fh.Qr,{name:"queryMode",control:i,render:e=>{let{field:t}=e;return(0,d.jsx)(Th,{id:"queryMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:wu.queryMode.options})}})})]}),(0,d.jsxs)(yt.k,{direction:"row",alignItems:"flex-start",className:jh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:jh("field-title"),children:wu.timeout.title}),(0,d.jsx)("div",{className:jh("control-wrapper"),children:(0,d.jsx)(fh.Qr,{name:"timeout",control:i,render:e=>{var t,a;let{field:r}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Gs.o,{id:"timeout",type:"number",...r,value:null===(t=r.value)||void 0===t?void 0:t.toString(),className:jh("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:jh("timeout-suffix"),children:Su("form.timeout.seconds")})]})}})})]}),c&&(0,d.jsxs)(yt.k,{direction:"row",alignItems:"flex-start",className:jh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:jh("field-title"),children:wu.tracingLevel.title}),(0,d.jsx)("div",{className:jh("control-wrapper"),children:(0,d.jsx)(fh.Qr,{name:"tracingLevel",control:i,render:e=>{let{field:t}=e;return(0,d.jsx)(Th,{id:"tracingLevel",setting:t.value,onUpdateSetting:t.onChange,settingOptions:wu.tracingLevel.options})}})})]}),(0,d.jsxs)(yt.k,{direction:"row",alignItems:"flex-start",className:jh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:jh("field-title"),children:wu.transactionMode.title}),(0,d.jsx)("div",{className:jh("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(fh.Qr,{name:"transactionMode",control:i,render:e=>{let{field:t}=e;return(0,d.jsx)(Th,{id:"transactionMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:wu.transactionMode.options})}})})]}),(0,d.jsxs)(yt.k,{direction:"row",alignItems:"flex-start",className:jh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:jh("field-title"),children:wu.statisticsMode.title}),(0,d.jsx)(cm.u,{className:jh("statistics-mode-tooltip"),disabled:!l,openDelay:0,content:Su("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:jh("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(fh.Qr,{name:"statisticsMode",control:i,render:e=>{let{field:t}=e;return(0,d.jsx)(Th,{id:"statisticsMode",disabled:l,setting:t.value,onUpdateSetting:t.onChange,settingOptions:wu.statisticsMode.options})}})})})]}),(0,d.jsxs)(yt.k,{direction:"row",alignItems:"flex-start",className:jh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:jh("field-title"),children:wu.limitRows.title}),(0,d.jsx)("div",{className:jh("control-wrapper"),children:(0,d.jsx)(fh.Qr,{name:"limitRows",control:i,render:e=>{var t,a;let{field:n}=e;return(0,d.jsx)(Gs.o,{id:"limitRows",type:"number",...n,value:null===(t=n.value)||void 0===t?void 0:t.toString(),className:jh("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)(Ms.V.Footer,{textButtonApply:Su("button-done"),textButtonCancel:Su("button-cancel"),onClickButtonCancel:r,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:jh("buttons-container"),children:[(0,d.jsx)(Wo.r,{href:"https://ydb.tech/docs",target:"_blank",className:jh("documentation-link"),children:Su("docs")}),(0,d.jsxs)("div",{className:jh("main-buttons"),children:[t,e]})]})})]})}const wh={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1}};const Ph="navigation",Ih=(0,c.cn)("query-editor"),Dh={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function _h(e){const t=function(){const[e]=(0,ve.yu)(he.y6),[t]=(0,ve.yu)(he.XX);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...wh}}),[e,t])}(),a=(0,ve.zL)(),{tenantName:r,path:i,type:s,theme:o,changeUserInput:l}=e,c=(0,ve.ix)(As.m_),u=(0,ve.ix)(As.tF),m=(0,ve.ix)(As.qV),p=(0,ve.ix)(As.Wz),v=(0,ve.ix)(As.jm),x=(0,ve.ix)(yu.bX),g=Boolean(u),[y]=(0,ve.dU)(),b=(0,Ee.uY)(),[f,E]=Du(),{resetBanner:S}=Ru(),[T,j]=(0,ve.yu)(he.w7),[N]=As.c4.useUseSendQueryMutation();n.useEffect((()=>{c!==r&&a((0,As.K0)(r))}),[a,r,c]);const[C,w]=n.useReducer(qu(he.eG),Dh);n.useEffect((()=>{w(ku.triggerCollapse)}),[]),n.useEffect((()=>{w(x||g?ku.triggerExpand:ku.triggerCollapse)}),[x,g]);const P=(0,ve.xd)((()=>m&&0!==m.length?m[m.length-1].queryText:"")),I=(0,ve.xd)((e=>{const t=null!==e&&void 0!==e?e:v;j(kt.Jf.execute),(0,vu.isEqual)(f,y)||(S(),E(y));const n=(0,xu.Z)();var i;(N({actionType:"execute",query:t,database:r,querySettings:y,enableTracingLevel:b,queryId:n}),a((0,yu.m7)(!1)),e)||t!==(null===(i=m[p])||void 0===i?void 0:i.queryText)&&a((0,As.hO)({queryText:v,queryId:n}));w(ku.triggerExpand)})),D=()=>{a((0,Bs.lm)("settings"))},_=(0,ve.xd)((()=>{j(kt.Jf.explain),(0,vu.isEqual)(f,y)||(S(),E(y));const e=(0,xu.Z)();N({actionType:"explain",query:v,database:r,querySettings:y,enableTracingLevel:b,queryId:e}),a((0,yu.m7)(!1)),w(ku.triggerExpand)})),R=(0,ve.xd)((()=>{T===kt.Jf.explain?_():I()}));return(0,d.jsxs)("div",{className:Ih(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:he.XN,triggerCollapse:C.triggerCollapse,triggerExpand:C.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{w(ku.clear)},children:[(0,d.jsxs)("div",{className:Ih("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Ih("monaco-wrapper"),children:(0,d.jsx)("div",{className:Ih("monaco"),children:(0,d.jsx)(gu,{language:Ou,value:v,options:t,onChange:e=>{l({input:e})},editorDidMount:(e,t)=>{window.ydbEditor=e;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}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),function(e){const t=_e()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){Ah(e.getValue(),t()),e.onDidChangeModelContent((()=>{Ah(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,P),e.focus(),e.addAction({id:"sendQuery",label:uu("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Ph,contextMenuOrder:1,run:()=>R()});const r=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((e=>{let{selection:t,secondarySelections:a}=e;const n=t.selectionStartLineNumber!==t.positionLineNumber||t.selectionStartColumn!==t.positionColumn,i=a.length>0;r.set(n&&!i)})),e.addAction({id:"sendSelectedQuery",label:uu("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Ph,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});I(e)}}}),e.addAction({id:"previous-query",label:uu("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Ph,contextMenuOrder:2,run:()=>{a((0,As.NU)())}}),e.addAction({id:"next-query",label:uu("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Ph,contextMenuOrder:3,run:()=>{a((0,As.AJ)())}}),e.addAction({id:"save-query",label:uu("action.save-query"),keybindings:[n.saveQuery],run:()=>{Os.ZP.show(Xs)}})},theme:`vs-${o}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})})}),(0,d.jsx)(yh,{handleSendExecuteClick:I,onSettingsButtonClick:D,isLoading:Boolean(null===u||void 0===u?void 0:u.isLoading),handleGetExplainQueryClick:_,disabled:!v,highlightedAction:T})]}),(0,d.jsx)("div",{className:Ih("pane-wrapper"),children:(0,d.jsx)(Rh,{resultVisibilityState:C,onExpandResultHandler:()=>{w(ku.triggerExpand)},onCollapseResultHandler:()=>{w(ku.triggerCollapse)},type:s,theme:o,result:u,tenantName:r,path:i,showPreview:x},null===u||void 0===u?void 0:u.queryId)})]}),(0,d.jsx)(Nh,{})]})}function Rh(e){let{resultVisibilityState:t,onExpandResultHandler:a,onCollapseResultHandler:n,type:r,theme:i,result:s,tenantName:o,path:l,showPreview:c}=e;return c?(0,d.jsx)(Op,{database:o,path:l,type:r}):"execute"===(null===s||void 0===s?void 0:s.type)?(0,d.jsx)(xp,{result:s,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n,theme:i,tenantName:o}):"explain"===(null===s||void 0===s?void 0:s.type)?(0,d.jsx)(_p,{result:s,theme:i,tenantName:o,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n}):null}function Ah(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Oh=[{id:ge._0.newQuery,title:uu("tabs.newQuery")},{id:ge._0.history,title:uu("tabs.history")},{id:ge._0.saved,title:uu("tabs.saved")}],Mh=e=>{let{className:t,activeTab:a}=e;const n=(0,er.TH)(),r=(0,Re.mB)(n);return(0,d.jsx)("div",{className:t,children:(0,d.jsx)(ye.m,{size:"l",allowNotSelected:!0,activeTab:a,items:Oh,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,da.Sj)({...r,[da.XV.queryTab]:a});return(0,d.jsx)(Ps.h,{to:n,children:t},a)}})})};var kh=a(7603),Lh=a(44899);const zh=(0,c.cn)("ydb-saved-queries"),qh=e=>{let{visible:t,queryName:a,onCancelClick:n,onConfirmClick:r}=e;return(0,d.jsxs)(Ms.V,{open:t,hasCloseButton:!1,size:"s",onClose:n,onEnterKeyDown:r,children:[(0,d.jsx)(Ms.V.Header,{caption:uu("delete-dialog.header")}),(0,d.jsxs)(Ms.V.Body,{className:zh("dialog-body"),children:[uu("delete-dialog.question"),(0,d.jsx)("span",{className:zh("dialog-query-name"),children:` ${a}?`})]}),(0,d.jsx)(Ms.V.Footer,{textButtonApply:uu("delete-dialog.delete"),textButtonCancel:uu("delete-dialog.cancel"),onClickButtonCancel:n,onClickButtonApply:r})]})},Uh=e=>{let{changeUserInput:t}=e;const a=$s(),r=(0,ve.zL)(),i=(0,ve.ix)(Bs.zC),[s,o]=n.useState(!1),[l,c]=n.useState(""),u=()=>{o(!1),c("")},m=io(n.useCallback((e=>{let{queryText:a,queryName:n}=e;t({input:a}),r((0,Bs.GC)(n)),r((0,Se.jk)(ge._0.newQuery))}),[t,r])),p=[{name:"name",header:"Name",render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:zh("query-name"),children:t.name})},width:200},{name:"body",header:"Query Text",render:e=>{let{row:t}=e;return(0,d.jsxs)("div",{className:zh("query"),children:[(0,d.jsx)("div",{className:zh("query-body"),children:(0,d.jsx)(oo,{value:t.body,maxQueryHeight:wo})}),(0,d.jsxs)("span",{className:zh("controls"),children:[(0,d.jsx)(Yr.z,{view:"flat-secondary",children:(0,d.jsx)(ft.J,{data:kh.Z})}),(0,d.jsx)(Yr.z,{view:"flat-secondary",onClick:(a=t.name,e=>{e.stopPropagation(),o(!0),c(a)}),children:(0,d.jsx)(ft.J,{data:Lh.Z})})]})]});var a},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(at.l,{className:zh(),children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(it.o,{onChange:e=>{r((0,Bs.b0)(e))},placeholder:uu("filter.text.placeholder"),className:zh("search")})}),(0,d.jsx)(at.l.Table,{children:(0,d.jsx)(tt.G,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:p,data:a,settings:Po,emptyDataMessage:uu(i?"history.empty-search":"saved.empty"),rowClassName:()=>zh("row"),onRowClick:e=>m({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:$t.ZP.ASCENDING}})})]}),(0,d.jsx)(qh,{visible:s,queryName:l,onCancelClick:()=>{u()},onConfirmClick:()=>{u(),r((0,Bs.qF)(l)),c("")}})]})},Fh=(0,c.cn)("ydb-query"),Qh=e=>{const t=(0,ve.zL)(),{queryTab:a=ge._0.newQuery}=(0,ve.ix)((e=>e.tenant)),i=e=>{t((0,As.B8)(e))},s=n.useMemo((()=>Oh.find((e=>{let{id:t}=e;return t===a}))),[a]);return(0,d.jsxs)("div",{className:Fh(),children:[s?(0,d.jsx)(r.ql,{children:(0,d.jsx)("title",{children:s.title})}):null,(0,d.jsx)(Mh,{className:Fh("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Fh("content"),children:(()=>{switch(a){case ge._0.newQuery:return(0,d.jsx)(_h,{changeUserInput:i,...e});case ge._0.history:return(0,d.jsx)(hu,{changeUserInput:i});case ge._0.saved:return(0,d.jsx)(Uh,{changeUserInput:i});default:return null}})()})]})};var Gh=a(34996),Bh=a(71267);const $h=["query","diagnostics"],Vh={query:Gh.Z,diagnostics:Bh.Z};const Hh=(0,c.cn)("ydb-tenant-navigation"),Zh=e=>{let{id:t,title:a,icon:n}=e;return{value:t,content:(0,d.jsxs)("span",{className:Hh("item"),children:[(0,d.jsx)(ft.J,{data:n,size:16,className:Hh("icon")}),(0,d.jsx)("span",{className:Hh("text"),children:a})]})}},Wh=()=>{const e=function(){const e=(0,er.k6)(),t=(0,er.TH)(),a=(0,Re.mB)(t),[,r]=(0,ve.yu)(he.pf),{tenantPage:i}=(0,ve.ix)((e=>e.tenant)),s=n.useMemo((()=>{if(t.pathname!==Re.ZP.tenant)return[];const n=$h.map((t=>{const n=ge.m2[t],s=(0,da.Sj)({...a,[ge.bS]:n});return{id:n,title:Mr(`pages.${t}`),icon:Vh[t],path:s,current:i===n,onForward:()=>{r(n),e.push(s)}}}));return n}),[i,r,t.pathname,e,a]);return s}();return(0,d.jsx)("div",{className:Hh(),children:(0,d.jsx)(Od.E,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Hh("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Zh)})})},Jh=(0,c.cn)("object-general");const Kh=function(e){const t=(0,xe.C)(),{tenantPage:a}=(0,ve.ix)((e=>e.tenant));return(0,d.jsxs)("div",{className:Jh(),children:[(0,d.jsx)(Wh,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:i,tenantName:s,path:o}=e;return a===ge.m2.query?(0,d.jsx)(Qh,{tenantName:s,path:o,theme:t,type:n}):(0,d.jsx)(cu,{type:n,tenantName:s,path:o,additionalTenantProps:r,additionalNodesProps:i})})()]})};var Yh=a(13872);const Xh=le.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(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"}),ev=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"}'),tv=(0,st.wZ)("ydb-acl",{en:ev}),av=(0,c.cn)("ydb-acl"),nv=e=>{if(e&&e.endsWith("@staff")&&!e.startsWith("svc_")){return e.split("@")[0]}return e},rv=["access","type","inheritance"],iv={access:"Access",type:"Access type",inheritance:"Inheritance type"},sv="Allow",ov=new Set(["Object","Container"]);function lv(e){let{value:t}=e;const a="string"===typeof t?[t]:t;return(0,d.jsx)("div",{className:av("definition-content"),children:a.map((e=>(0,d.jsx)("span",{children:e},e)))})}function cv(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:i}=e,s=t.concat(a),o=n===sv?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==ov.size||r.some((e=>!ov.has(e))))&&(l=r),{access:s.length?s:void 0,type:o,inheritance:l,Subject:i}}))}(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)(lv,{value:n[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:av("group-label"),children:t}),items:rv.map((e=>{const t=a[e];if(t)return{name:iv[e],content:(0,d.jsx)(lv,{value:t}),multilineName:!0}})).filter(Fr.D)}}))}const dv=e=>{let{path:t,database:a}=e;const{currentData:r,isFetching:i,error:s}=Xh.useGetSchemaAclQuery({path:t,database:a}),o=i&&!r,{acl:l,effectiveAcl:c,owner:u,interruptInheritance:m}=r||{},p=cv(l),h=cv(c),v=function(e){const t=nv(e);return t?[{name:t,content:tv("title_owner"),multilineName:!0}]:[]}(u),x=m?[{name:tv("title_interupt-inheritance"),content:(0,d.jsx)(ft.J,{data:Yh.Z,size:20}),multilineName:!0}]:[];if(o)return(0,d.jsx)(Ce.a,{});if(s)return(0,d.jsx)(Ne.V,{error:s});if(!l&&!u&&!c)return(0,d.jsx)(n.Fragment,{children:tv("description_empty")});const g=v.concat(p);return(0,d.jsxs)("div",{className:av(),children:[(0,d.jsx)(uv,{items:x}),(0,d.jsx)(uv,{items:g,title:tv("title_rights")}),(0,d.jsx)(uv,{items:h,title:tv("title_effective-rights")})]})};function uv(e){let{items:t,title:a}=e;return t.length?(0,d.jsxs)(n.Fragment,{children:[a&&(0,d.jsx)("div",{className:av("list-title"),children:a}),(0,d.jsx)(or.w,{items:t,nameMaxWidth:200,className:av("result",{"no-title":!a}),responsive:!0})]}):null}var mv=a(49459);const pv=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(le.h.util.invalidateTags(["PreviewData"])),t((0,yu.m7)(!0)),t((0,Se.Cs)(ge.m2.query)),t((0,Se.jk)(ge._0.newQuery)),n(e)}}},hv=(e,t)=>(0,d.jsx)(Yr.z,{view:"flat-secondary",onClick:e.openPreview,title:Mr("actions.openPreview"),size:t||"s",children:(0,d.jsx)(ft.J,{data:mv.Z})}),vv=(e,t,a)=>(n,r)=>{const i=pv(n,e,t),s=hv(i,a);return{async_replication:void 0,database:void 0,directory:void 0,table:s,column_table:s,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:s,external_data_source:void 0,view:s}[r]},xv=(e,t,a)=>(n,r)=>{const i=pv(n,e,t);return{preview:hv(i,a)}[r]};var gv=a(91517);const yv=le.h.injectEndpoints({endpoints:e=>({getTableSchemaData:e.mutation({queryFn:async(e,t)=>{let{path:a,tenantName:n,type:r}=e,{dispatch:i}=t;try{if(oe(r)){const e=await i(zt.endpoints.getViewSchema.initiate({database:n,path:a}));if((0,kt.gW)(e))return{error:e};return{data:la(e.data)}}const e=await i(ce.endpoints.getOverview.initiate({path:a,database:n}));return{data:oa(r,e.data)}}catch(s){return{error:s}}}})})});var bv=a(1868),fv=a.n(bv);function Ev(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 Sv(e,t){return t===f.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Tv=(e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:r,getTableSchemaDataPromise:i,getConfirmation:s}=a,o=a=>()=>{const r=()=>{const r=U[e.type],s=[Gp,Bp].includes(a)&&r&&i?i({path:e.path,tenantName:e.tenantName,type:r}):Promise.resolve(void 0);t((0,Se.Cs)(ge.m2.query)),t((0,Se.jk)(ge._0.newQuery)),n(e.path),s.then((t=>{zp(a({...e,tableData:t}))}))};if(s){s().then((e=>{e&&r()}))}else r()};return{createDirectory:r?()=>{r(e.path)}:void 0,createTable:o(qp),createColumnTable:o(Up),createAsyncReplication:o(Fp),alterAsyncReplication:o(Xp),dropAsyncReplication:o(Yp),alterTable:o(Qp),dropTable:o(uh),selectQuery:o(Gp),upsertQuery:o(Bp),createExternalTable:o(Vp),dropExternalTable:o($p),selectQueryFromExternalTable:o(Gp),createTopic:o(Hp),alterTopic:o(Zp),dropTopic:o(Wp),createView:o(Jp),dropView:o(Kp),dropIndex:o(th),addTableIndex:o(eh),createCdcStream:o(ah),copyPath:()=>{try{fv()(e.relativePath),Ct({name:"Copied",title:Mr("actions.copied"),type:"success"})}catch{Ct({name:"Not copied",title:Mr("actions.notCopied"),type:"error"})}}}},jv=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(n,r)=>{const i=Ev(n,a),s=Tv({path:n,relativePath:i,tenantName:a,type:r},e,t),o={text:Mr("actions.copyPath"),action:s.copyPath},l=[[o],[{text:Mr("actions.createTable"),action:s.createTable},{text:Mr("actions.createColumnTable"),action:s.createColumnTable},{text:Mr("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:Mr("actions.createTopic"),action:s.createTopic},{text:Mr("actions.createView"),action:s.createView}]];s.createDirectory&&l.splice(1,0,[{text:Mr("actions.createDirectory"),action:s.createDirectory}]);const c=[[o],[{text:Mr("actions.alterTable"),action:s.alterTable},{text:Mr("actions.dropTable"),action:s.dropTable},{text:Mr("actions.selectQuery"),action:s.selectQuery},{text:Mr("actions.upsertQuery"),action:s.upsertQuery},{text:Mr("actions.addTableIndex"),action:s.addTableIndex},{text:Mr("actions.createCdcStream"),action:s.createCdcStream}]],d=[[o],[{text:Mr("actions.alterTable"),action:s.alterTable},{text:Mr("actions.dropTable"),action:s.dropTable},{text:Mr("actions.selectQuery"),action:s.selectQuery},{text:Mr("actions.upsertQuery"),action:s.upsertQuery}]],u=[[o],[{text:Mr("actions.alterTopic"),action:s.alterTopic},{text:Mr("actions.dropTopic"),action:s.dropTopic}]],m=[[o],[{text:Mr("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:Mr("actions.dropTable"),action:s.dropExternalTable}]],p=[[o],[{text:Mr("actions.createExternalTable"),action:s.createExternalTable}]],h=[[o],[{text:Mr("actions.selectQuery"),action:s.selectQuery}],[{text:Mr("actions.dropView"),action:s.dropView}]],v=[o];return{async_replication:[[o],[{text:Mr("actions.alterReplication"),action:s.alterAsyncReplication},{text:Mr("actions.dropReplication"),action:s.dropAsyncReplication}]],database:l,directory:l,table:c,column_table:d,index_table:v,topic:u,stream:v,index:[[o,{text:Mr("actions.dropIndex"),action:s.dropIndex}]],external_table:m,external_data_source:p,view:h}[r]}},Nv=(0,c.cn)("ydb-schema-create-directory-dialog"),Cv="relativePath";function wv(e){let{open:t,onClose:a,database:r,parentPath:i,onSuccess:s}=e;const[o,l]=n.useState(""),[c,u]=n.useState(""),[m,p]=yu.m3.useCreateDirectoryMutation(),h=()=>{l(""),p.reset()},v=()=>{a(),u(""),h()};return(0,d.jsxs)(Ms.V,{open:t,onClose:v,size:"s",children:[(0,d.jsx)(Ms.V.Header,{caption:Mr("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(a=c)?/\s/.test(a)?Mr("schema.tree.dialog.whitespace"):"":Mr("schema.tree.dialog.empty");var a;l(t),t||m({database:r,path:`${i}/${c}`}).unwrap().then((()=>{v(),s(c)}))},children:[(0,d.jsxs)(Ms.V.Body,{children:[(0,d.jsxs)("label",{htmlFor:Cv,className:Nv("label"),children:[(0,d.jsx)("span",{className:Nv("description"),children:Mr("schema.tree.dialog.description")}),`${i}/`]}),(0,d.jsx)("div",{className:Nv("input-wrapper"),children:(0,d.jsx)(Gs.o,{placeholder:Mr("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:Cv,errorMessage:o})}),p.isError&&(0,d.jsx)(Ne.V,{error:p.error,defaultMessage:Mr("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Ms.V.Footer,{loading:p.isLoading,textButtonApply:Mr("schema.tree.dialog.buttonApply"),textButtonCancel:Mr("schema.tree.dialog.buttonCancel"),onClickButtonCancel:v,propsButtonApply:{type:"submit"}})]})]})}const Pv=n.createContext(void 0),Iv=n.createContext(void 0);function Dv(e){let{children:t}=e;const[a,r]=n.useState("");return(0,d.jsx)(Pv.Provider,{value:a,children:(0,d.jsx)(Iv.Provider,{value:r,children:t})})}function _v(){const e=n.useContext(Iv);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}const Rv=2*he.NO;function Av(e){const t=(0,Ee.j0)(),{rootPath:a,rootName:r,rootType:i,currentPath:s,onActivePathUpdate:o}=e,l=(0,ve.zL)(),c=(0,ve.ix)(As.jm),[u]=yv.useGetTableSchemaDataMutation(),m=n.useCallback((async e=>{try{return await Promise.race([u(e).unwrap(),(0,Fr.Dc)(Rv)])}catch(t){return}}),[u]),[p,h]=(0,ve.dU)(),[v,x]=n.useState(!1),[g,y]=n.useState(""),b=_v(),f=function(){const e=n.useContext(Pv);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}();n.useEffect((()=>{null!==s&&void 0!==s&&s.startsWith(a)||o(a)}),[s,o,a]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(wv,{onClose:()=>{x(!1)},open:v,database:a,parentPath:g,onSuccess:e=>{const t=`${g}/${e}`;o(t),b(t)}}),(0,d.jsx)(gv.f,{rootState:{path:a,name:r,type:F(i),collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(yu.m3.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:i}=await n;if(n.unsubscribe(),(null===i||void 0===i?void 0:i.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:F(a,n),expandable:!re(a,n)}}))},getActions:jv(l,{setActivePath:o,updateQueryExecutionSettings:e=>h({...p,...e}),showCreateDirectoryDialog:t?e=>{y(e),x(!0)}:void 0,getTableSchemaDataPromise:m,getConfirmation:c?ro:void 0},a),renderAdditionalNodeElements:vv(l,{setActivePath:o}),activePath:s,onActivePathUpdate:o,cache:!1,virtualize:!0},f)]})}const Ov=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"}'),Mv=(0,st.wZ)("ydb-object-summary",{en:Ov}),kv=(0,c.cn)("ydb-object-summary");function Lv(e){var t;let{tenantName:a,path:n}=e;const{data:r={},isLoading:s}=(0,yu.hz)({path:a,database:a}),o=null===r||void 0===r||null===(t=r.PathDescription)||void 0===t?void 0:t.Self,[,l]=(0,i.useQueryParam)("schema",i.StringParam);return!o&&s?(0,d.jsx)("div",{children:(0,d.jsx)(Ce.a,{})}):(0,d.jsxs)("div",{className:kv("tree-wrapper"),children:[(0,d.jsx)("div",{className:kv("tree-header"),children:Mv("title_navigation")}),(0,d.jsx)("div",{className:kv("tree"),children:o?(0,d.jsx)(Av,{rootPath:a,rootName:o.Name||a,rootType:o.PathType,currentPath:n,onActivePathUpdate:l}):null})]})}var zv=a(47471);function qv(){const e=(0,ve.zL)(),{diagnosticsTab:t,tenantPage:a}=(0,ve.ix)((e=>e.tenant)),n=a===ge.m2.diagnostics&&t===ge.qQ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(Yr.z,{title:Mv("action_openInDiagnostics"),onClick:()=>{e((0,Se.Cs)(ge.m2.diagnostics)),e((0,Se.$v)(ge.qQ.schema))},size:"s",children:(0,d.jsx)(ft.J,{data:zv.Z,size:14})})})}var Uv=a(26714),Fv=a(8064);function Qv(){const e=_v();return(0,d.jsx)(bt.M,{title:"Refresh",children:(0,d.jsx)(Yr.z,{view:"flat-secondary",onClick:()=>{e((0,Fv.x0)())},children:(0,d.jsx)(ft.J,{data:Uv.Z})})})}const Gv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(he.Mn))});function Bv(e){var t;let{type:a,subType:r,tenantName:s,path:o,onCollapseSummary:l,onExpandSummary:c,isCollapsed:u}=e;const[m]=(0,ve.Rj)(),p=(0,ve.zL)(),[,v]=(0,i.useQueryParam)("schema",i.StringParam),[x,g]=n.useReducer(qu(he.Mn),void 0,Gv),{summaryTab:y=ge.uw.overview}=(0,ve.ix)((e=>e.tenant)),b=(0,er.TH)(),S=La().parse(b.search,{ignoreQueryPrefix:!0}),{currentData:T}=ce.useGetOverviewQuery({path:o,database:s},{pollingInterval:m}),j=null===T||void 0===T||null===(t=T.PathDescription)||void 0===t?void 0:t.Self;n.useEffect((()=>{const e=H(a);!a||e||da.Cc.find((e=>e.id===y))||p((0,Se.Tu)(ge.uw.overview))}),[p,a,y]);const N=()=>{const e=H(a)?[...da.Cc,...da.c7]:da.Cc;return(0,d.jsx)("div",{className:kv("tabs"),children:(0,d.jsxs)(yt.k,{className:kv("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ye.m,{size:"l",items:e,activeTab:y,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,da.Sj)({...S,[da.XV.summaryTab]:a});return(0,d.jsx)(be.rU,{to:n,className:kv("tab"),children:t},a)},allowNotSelected:!0}),y===ge.uw.schema&&(0,d.jsx)(qv,{})]})})},C=()=>{switch(y){case ge.uw.acl:return(0,d.jsx)(dv,{path:o,database:s});case ge.uw.schema:return(0,d.jsx)(ca,{type:a,path:o,tenantName:s});default:return(()=>{var e;if(!j)return;const{CreateStep:t,PathType:a,PathSubType:r,PathId:i,PathVersion:s}=j,l=[],c=Sv(o,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:Mv("field_type"),content:c}),r!==E.EPathSubTypeEmpty&&l.push({name:Mv("field_subtype"),content:null===r||void 0===r?void 0:r.replace(/^EPathSubType/,"")}),l.push({name:Mv("field_id"),content:i}),l.push({name:Mv("field_version"),content:s}),l.push({name:Mv("field_created"),content:(0,Ie.o0)(t)});const{PathDescription:u}=T;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:Mv("field_data-size"),content:An(e)},{name:Mv("field_row-count"),content:(0,Ie.uf)(t)})}const m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let i=(0,Ie.uf)(t),s=(0,Ie.uf)(a);return i&&n&&(i=`${i} / ${(0,Ie.uf)(n)}`),s&&r&&(s=`${s} / ${(0,Ie.uf)(r)}`),[{name:Mv("field_paths"),content:i},{name:Mv("field_shards"),content:s}]},p={[f.EPathTypeInvalid]:void 0,[f.EPathTypeDir]:void 0,[f.EPathTypeTable]:()=>{var e;return[{name:Mv("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[f.EPathTypeSubDomain]:m,[f.EPathTypeTableIndex]:void 0,[f.EPathTypeExtSubDomain]:m,[f.EPathTypeColumnStore]:()=>{var e,t;return[{name:Mv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[f.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:Mv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[f.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:Mv("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:Mv("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[f.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.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[{name:Mv("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:Mv("field_retention"),content:r&&(0,Ie.xh)(r)}]},[f.EPathTypeExternalTable]:()=>{var e,t;const a=(0,Re.vF)({...S,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},i=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:Mv("field_source-type"),content:n},{name:Mv("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(tr.j,{title:i||"",url:a})})}]},[f.EPathTypeExternalDataSource]:()=>{var e;return[{name:Mv("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[f.EPathTypeView]:void 0,[f.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:Mv("field_state"),content:(0,d.jsx)(hr,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:kv("overview-item-content"),children:e.content}),multilineName:!0})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:kv("overview-title"),children:(0,d.jsx)(kr,{data:u})}),(0,d.jsx)(or.w,{items:v,responsive:!0,nameMaxWidth:150})]})})()}},w=()=>{g(ku.triggerCollapse)},P=()=>{g(ku.triggerExpand)},I=()=>{g(ku.clear)},D=Ev(o,s),_=()=>{const e=H(a)&&!W(r);return(0,d.jsxs)(n.Fragment,{children:[e&&xv(p,{setActivePath:v},"m")(o,"preview"),(0,d.jsx)(bn.m,{text:D,view:"flat-secondary",title:Mv("action_copySchemaPath")}),(0,d.jsx)(Fu,{onCollapse:w,onExpand:P,isCollapsed:x.collapsed,initialDirection:"bottom"})]})},R=()=>{const{Status:e,Reason:t}=null!==T&&void 0!==T?T:{};if(a){let e=a.replace("EPathType","");return Sv(o,a)&&(e="domain"),(0,d.jsx)("div",{className:kv("entity-type"),children:e})}let n;return e&&t&&(n=`${e}: ${t}`),(0,d.jsx)("div",{className:kv("entity-type",{error:!0}),children:(0,d.jsx)(qa.J,{content:n,offset:{left:0}})})};return(0,d.jsx)(Dv,{children:(0,d.jsxs)("div",{className:kv(),children:[(0,d.jsx)("div",{className:kv({hidden:u}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:he.wr,onSplitStartDragAdditional:I,triggerCollapse:x.triggerCollapse,triggerExpand:x.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Lv,{tenantName:s,path:o}),(0,d.jsxs)("div",{className:kv("info"),children:[(0,d.jsxs)("div",{className:kv("sticky-top"),children:[(0,d.jsxs)("div",{className:kv("info-header"),children:[(0,d.jsxs)("div",{className:kv("info-title"),children:[R(),(0,d.jsx)("div",{className:kv("path-name"),children:D})]}),(0,d.jsx)("div",{className:kv("info-controls"),children:_()})]}),N()]}),(0,d.jsx)("div",{className:kv("overview-wrapper"),children:C()})]})]})}),(0,d.jsxs)(yt.k,{className:kv("actions"),gap:.5,children:[!u&&(0,d.jsx)(Qv,{}),(0,d.jsx)(Fu,{onCollapse:l,onExpand:c,isCollapsed:u,initialDirection:"left"})]})]})})}const $v=(0,c.cn)("tenant-page"),Vv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(he.sO))});function Hv(e){var t;const[l]=(0,ve.Rj)(),[c,u]=n.useReducer(qu(he.sO),void 0,Vv),[{database:m,name:p,schema:v},x]=(0,i.useQueryParams)({database:i.StringParam,name:i.StringParam,schema:i.StringParam});n.useEffect((()=>{p&&!m&&x({database:p,name:void 0},"replaceIn")}),[m,p,x]);const y=null!==m&&void 0!==m?m:p;if(!y)throw new Error("Tenant name is not defined");const b=n.useRef();n.useEffect((()=>{if(b.current!==y){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(633).then(a.bind(a,30633));e(y)})().catch(console.error),b.current=y}}),[y]);const f=(0,ve.zL)();n.useEffect((()=>{f((0,g.J)("tenant",{tenantName:y}))}),[y,f]);const E=null!==v&&void 0!==v?v:y,{currentData:S,error:T,isLoading:j}=ce.useGetOverviewQuery({path:E,database:y},{pollingInterval:l}),{PathType:N,PathSubType:C}=(null===S||void 0===S||null===(t=S.PathDescription)||void 0===t?void 0:t.Self)||{},w=(0,s.u)(T),[P,I]=n.useState(!0);P&&!j&&I(!1);const D=E||Mr("page.title");return(0,d.jsxs)("div",{className:$v(),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)(s.S,{error:w?T:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:he.z4,defaultSizes:[25,75],triggerCollapse:c.triggerCollapse,triggerExpand:c.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{u(ku.clear)},children:[(0,d.jsx)(Bv,{type:N,subType:C,tenantName:y,path:E,onCollapseSummary:()=>{u(ku.triggerCollapse)},onExpandSummary:()=>{u(ku.triggerExpand)},isCollapsed:c.collapsed}),(0,d.jsx)("div",{className:$v("main"),children:(0,d.jsx)(Kh,{type:N,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:y,path:E})})]})})})]})}},24960:()=>{},26759:()=>{},56272:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4135.066e893b.chunk.js b/ydb/core/viewer/monitoring/static/js/4135.066e893b.chunk.js new file mode 100644 index 0000000000..700215e780 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4135.066e893b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4135],{89516:(e,i,s)=>{s.d(i,{a:()=>a});var t=s(99294),d=s(73287),o=s(10161);const n=(0,t.cn)("ydb-entity-page-title");function a(e){let{entityName:i,status:s,id:t,className:a}=e;return(0,o.jsxs)("div",{className:n(null,a),children:[(0,o.jsx)("span",{className:n("prefix"),children:i}),(0,o.jsx)(d.J,{className:n("icon"),status:s,size:"s"}),t]})}},21711:(e,i,s)=>{s.d(i,{b:()=>c});var t=s(34706),d=s(5194),o=s(99294),n=s(83658),a=s(10161);const l=(0,o.cn)("ydb-info-viewer-skeleton"),r=()=>(0,a.jsxs)("div",{className:l("label"),children:[(0,a.jsx)(d.O,{className:l("label__text")}),(0,a.jsx)("div",{className:l("label__dots")})]}),c=e=>{let{rows:i=8,className:s,delay:o=600}=e;const[c]=(0,n.$)(o);let v=(0,a.jsxs)(t.Fragment,{children:[(0,a.jsx)(r,{}),(0,a.jsx)(d.O,{className:l("value")})]});return c||(v=null),(0,a.jsx)("div",{className:l(null,s),children:[...new Array(i)].map(((e,i)=>(0,a.jsx)("div",{className:l("row"),children:v},`skeleton-row-${i}`)))})}},84573:(e,i,s)=>{s.d(i,{B:()=>c});var t=s(79777),d=s(99294),o=s(74003),n=s(43464),a=s(10161);const l=(0,d.cn)("ydb-page-meta");function r(e){let{items:i,loading:s}=e;return(0,a.jsx)("div",{className:l("info"),children:s?(0,a.jsx)(n.O,{className:l("skeleton")}):i.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:i,...s}=e;return(0,a.jsxs)(t.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:l(null,i),children:[(0,a.jsx)(r,{...s}),(0,a.jsx)(o.q,{})]})}},43464:(e,i,s)=>{s.d(i,{O:()=>n});var t=s(5194),d=s(83658),o=s(10161);const n=e=>{let{delay:i=600,className:s}=e;const[n]=(0,d.$)(i);return n?(0,o.jsx)(t.O,{className:s}):null}},49038:(e,i,s)=>{s.r(i),s.d(i,{VDiskPage:()=>C});var t=s(34706);const d=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:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06l2.5-2.5Zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06ZM14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0ZM3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z",clipRule:"evenodd"}));var o=s(14561),n=s(64485),a=s(42152),l=s(99495),r=s(55982),c=s(89516),v=s(15327),u=s(21711),D=s(84573),k=s(49263),p=s(78759),g=s(65e3),m=s(39202),I=s(85709),x=s(53458),N=s(26612),h=s(96183);const f=p.h.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async(e,i)=>{let{nodeId:s,pDiskId:t,vDiskSlotId:d}=e,{signal:o}=i;try{const e=function(e){var i,s,t,d,o,n,a;let[l,r,c]=e;const v=null===(i=l.VDiskStateInfo)||void 0===i?void 0:i[0],u=(0,N.se)(v),D=null===(s=r.PDiskStateInfo)||void 0===s?void 0:s[0],k=(0,N.TD)(D),p=null===(t=c.SystemStateInfo)||void 0===t?void 0:t[0],g=(0,h.Ns)(p),m=null!==(d=null!==(o=u.NodeId)&&void 0!==o?o:k.NodeId)&&void 0!==d?d:g.NodeId,I=g.Host,x=null===(n=g.Roles)||void 0===n?void 0:n[0],f=g.DC,j=null!==(a=u.PDiskId)&&void 0!==a?a:k.PDiskId,y=k.Type;return{...u,NodeId:m,NodeHost:I,NodeType:x,NodeDC:f,PDiskId:j,PDiskType:y}}(await Promise.all([window.api.getVDiskInfo({nodeId:s,pDiskId:t,vDiskSlotId:d},{signal:o}),window.api.getNodeWhiteboardPDiskInfo({nodeId:s,pDiskId:t},{signal:o}),window.api.getNodeInfo(s,{signal:o})]));return{data:e}}catch(n){return{error:n}}},providesTags:(e,i,s)=>["All",{type:"VDiskData",id:(0,x.FR)(s.nodeId,s.pDiskId,s.vDiskSlotId)}]})}),overrideExisting:"throw"});var j=s(25665),y=s(99294),w=s(55842),b=s(58095),S=s(37711);const V=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"}'),$=(0,S.wZ)("ydb-vDisk-page",{en:V});var P=s(10161);const T=(0,y.cn)("ydb-vdisk-page");function C(){const e=(0,w.zL)(),i=t.useRef(null),s=(0,w.ix)(g.VH),N=(0,m.X_)(),[{nodeId:h,pDiskId:y,vDiskSlotId:S}]=(0,l.useQueryParams)({nodeId:l.StringParam,pDiskId:l.StringParam,vDiskSlotId:l.StringParam});t.useEffect((()=>{e((0,I.J)("vDisk",{nodeId:h,pDiskId:y,vDiskSlotId:S}))}),[e,h,y,S]);const[V]=(0,w.Rj)(),C=(0,j.D)(h)&&(0,j.D)(y)&&(0,j.D)(S)?{nodeId:h,pDiskId:y,vDiskSlotId:S}:n.CN,{currentData:R={},isFetching:_,error:E}=f.useGetVDiskDataQuery(C,{pollingInterval:V}),F=_&&void 0===R,{NodeHost:O,NodeId:B,NodeType:H,NodeDC:q,PDiskId:G,PDiskType:M,Severity:Z,VDiskId:A}=R,{GroupID:J,GroupGeneration:L,Ring:Q,Domain:Y,VDisk:z}=A||{},K=(0,j.D)(J)&&(0,j.D)(L)&&(0,j.D)(Q)&&(0,j.D)(Y)&&(0,j.D)(z),U=async e=>{if(K)return window.api[N?"evictVDisk":"evictVDiskOld"]({groupId:J,groupGeneration:L,failRealmIdx:Q,failDomainIdx:Y,vDiskIdx:z,force:e}).then((e=>{if(!1===(null===e||void 0===e?void 0:e.result)){throw{statusText:e.error,retryPossible:e.forceRetryPossible}}}))},W=()=>{e(p.h.util.invalidateTags([{type:"VDiskData",id:(0,x.FR)(h||0,y||0,S||0)},"StorageData"]))};return(0,P.jsxs)("div",{className:T(null),ref:i,children:[(()=>{const e=S?`${$("vdisk")} ${S}`:$("vdisk"),i=y?`${$("pdisk")} ${y}`:$("pdisk"),s=O||$("node");return(0,P.jsx)(a.ql,{titleTemplate:`%s - ${e} - ${i} \u2014 ${s} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${i} \u2014 ${s} \u2014 YDB Monitoring`})})(),(()=>{const e=O?`${$("fqdn")}: ${O}`:void 0,i=B?`${$("node")}: ${B}`:void 0,s=B?`${$("pdisk")}: ${G}`:void 0;return(0,P.jsx)(D.B,{className:T("meta"),loading:F,items:[e,i,H,q,s,M]})})(),(0,P.jsx)(c.a,{className:T("title"),entityName:$("vdisk"),status:(0,x.b2)(Z),id:null===R||void 0===R?void 0:R.StringifiedId}),(0,P.jsx)("div",{className:T("controls"),children:(0,P.jsxs)(r.U,{onConfirmAction:U,onConfirmActionSuccess:W,buttonDisabled:!K||!s,buttonView:"normal",dialogHeader:$("evict-vdisk-dialog-header"),dialogText:$("evict-vdisk-dialog-text"),retryButtonText:$("force-evict-vdisk-button"),withPopover:!0,popoverContent:$("evict-vdisk-not-allowed"),popoverDisabled:s,children:[(0,P.jsx)(o.J,{data:d}),$("evict-vdisk-button")]})}),F?(0,P.jsx)(u.b,{rows:20}):(0,P.jsxs)(t.Fragment,{children:[E?(0,P.jsx)(v.V,{error:E}):null,(0,P.jsx)(k.K,{data:R,className:T("info")}),(0,j.D)(J)&&(0,j.D)(h)?(0,P.jsxs)(t.Fragment,{children:[(0,P.jsx)("div",{className:T("storage-title"),children:$("storage")}),(0,P.jsx)(b.V,{groupId:J,nodeId:h,pDiskId:null!==y&&void 0!==y?y:void 0,vDiskSlotId:null!==S&&void 0!==S?S:void 0,parentRef:i})]}):null]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/433.81528b91.chunk.js b/ydb/core/viewer/monitoring/static/js/433.81528b91.chunk.js new file mode 100644 index 0000000000..b592904da9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/433.81528b91.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 433.81528b91.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[433],{42568:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(34706);const l=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:"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"}))},3948:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(34706);const l=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:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},87130:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(34706);const l=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:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-7Z",clipRule:"evenodd"}))},72001:(e,t,n)=>{n.d(t,{i:()=>ot});var o=n(34706);n(72985);const l="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function i(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function r(e){return"nodeType"in e}function a(e){var t,n;return e?i(e)?e:r(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){const{Document:t}=a(e);return e instanceof t}function u(e){return!i(e)&&e instanceof a(e).HTMLElement}function d(e){return e instanceof a(e).SVGElement}function c(e){return e?i(e)?e.document:r(e)?s(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const g=l?o.useLayoutEffect:o.useEffect;function p(e){const t=(0,o.useRef)(e);return g((()=>{t.current=e})),(0,o.useCallback)((function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)}),[])}function m(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return g((()=>{n.current!==e&&(n.current=e)}),t),n}function f(e){const t=p(e),n=(0,o.useRef)(null),l=(0,o.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,l]}let h={};function v(e,t){return(0,o.useMemo)((()=>{if(t)return t;const n=null==h[e]?0:h[e]+1;return h[e]=n,e+"-"+n}),[e,t])}function w(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];return o.reduce(((t,n)=>{const o=Object.entries(n);for(const[l,i]of o){const n=t[l];null!=n&&(t[l]=n+e*i)}return t}),{...t})}}const b=w(1),C=w(-1);function S(e){if(!e)return!1;const{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function R(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const y=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[y.Translate.toString(e),y.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}});var x;function E(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(x||(x={}));const I=Object.freeze({x:0,y:0});function M(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const F={ignoreTransform:!1};function D(e,t){void 0===t&&(t=F);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=a(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=M(t);if(!o)return e;const{scaleX:l,scaleY:i,x:r,y:a}=o,s=e.left-r-(1-l)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=l?e.width/l:e.width,c=i?e.height/i:e.height;return{width:d,height:c,top:u,right:s+d,bottom:u+c,left:s}}(n,t,o))}const{top:o,left:l,width:i,height:r,bottom:s,right:u}=n;return{top:o,left:l,width:i,height:r,bottom:s,right:u}}function P(e){return D(e,{ignoreTransform:!0})}function V(e,t){const n=[];return e?function o(l){if(null!=t&&n.length>=t)return n;if(!l)return n;if(s(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!u(l)||d(l))return n;if(n.includes(l))return n;const i=a(e).getComputedStyle(l);return l!==e&&function(e,t){void 0===t&&(t=a(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const o=t[e];return"string"===typeof o&&n.test(o)}))}(l,i)&&n.push(l),function(e,t){return void 0===t&&(t=a(e).getComputedStyle(e)),"fixed"===t.position}(l,i)?n:o(l.parentNode)}(e):n}function N(e){const[t]=V(e,1);return null!=t?t:null}var z;function O(e){return!(!l||!e)&&e===document.scrollingElement}function _(e){const t={x:0,y:0},n=O(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(z||(z={}));function L(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:l,width:e.clientWidth,height:e.clientHeight}}function A(e,t){if(void 0===t&&(t=D),!e)return;const{top:n,left:o,bottom:l,right:i}=t(e);N(e)&&(l<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}class G{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function T(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var H,k;function B(e){e.preventDefault()}function j(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(H||(H={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(k||(k={}));const K={start:[k.Space,k.Enter],cancel:[k.Esc],end:[k.Space,k.Enter]},q=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case k.Right:return{...n,x:n.x+25};case k.Left:return{...n,x:n.x-25};case k.Down:return{...n,y:n.y+25};case k.Up:return{...n,y:n.y-25}}};class U{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new G(c(t)),this.windowListeners=new G(a(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(H.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&A(n),t(I)}handleKeyDown(e){if(S(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:l=K,coordinateGetter:i=q,scrollBehavior:r="smooth"}=o,{code:a}=e;if(l.end.includes(a))return void this.handleEnd(e);if(l.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:I;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=C(d,u),o={x:0,y:0},{scrollableAncestors:l}=n.current;for(const n of l){const l=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:u,maxScroll:c,minScroll:g}=_(n),p=L(n),m={x:Math.min(l===k.Right?p.right-p.width/2:p.right,Math.max(l===k.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(l===k.Down?p.bottom-p.height/2:p.bottom,Math.max(l===k.Down?p.top:p.top+p.height/2,d.y))},f=l===k.Right&&!a||l===k.Left&&!s,h=l===k.Down&&!u||l===k.Up&&!i;if(f&&m.x!==d.x){const e=n.scrollLeft+t.x,i=l===k.Right&&e<=c.x||l===k.Left&&e>=g.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:r});o.x=i?n.scrollLeft-e:l===k.Right?n.scrollLeft-c.x:n.scrollLeft-g.x,o.x&&n.scrollBy({left:-o.x,behavior:r});break}if(h&&m.y!==d.y){const e=n.scrollTop+t.y,i=l===k.Down&&e<=c.y||l===k.Up&&e>=g.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:r});o.y=i?n.scrollTop-e:l===k.Down?n.scrollTop-c.y:n.scrollTop-g.y,o.y&&n.scrollBy({top:-o.y,behavior:r});break}}this.handleMove(e,b(C(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function X(e){return Boolean(e&&"distance"in e)}function $(e){return Boolean(e&&"delay"in e)}U.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=K,onActivation:l}=t,{active:i}=n;const{code:r}=e.nativeEvent;if(o.start.includes(r)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class W{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=a(e);return e instanceof t?e:c(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=c(i),this.documentListeners=new G(this.document),this.listeners=new G(n),this.windowListeners=new G(a(i)),this.initialCoordinates=null!=(o=R(l))?o:I,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.DragStart,B),this.windowListeners.add(H.VisibilityChange,this.handleCancel),this.windowListeners.add(H.ContextMenu,B),this.documentListeners.add(H.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if($(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(X(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(H.Click,j,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(H.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:l}=this,{onMove:i,options:{activationConstraint:r}}=l;if(!o)return;const a=null!=(t=R(e))?t:I,s=C(o,a);if(!n&&r){if(X(r)){if(null!=r.tolerance&&T(s,r.tolerance))return this.handleCancel();if(T(s,r.distance))return this.handleStart()}return $(r)&&T(s,r.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(a)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===k.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Y={move:{name:"pointermove"},end:{name:"pointerup"}};class Z extends W{constructor(e){const{event:t}=e,n=c(t.target);super(e,Y,n)}}Z.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const J={move:{name:"mousemove"},end:{name:"mouseup"}};var Q;!function(e){e[e.RightClick=2]="RightClick"}(Q||(Q={}));(class extends W{constructor(e){super(e,J,c(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Q.RightClick&&(null==o||o({event:n}),!0)}}];const ee={move:{name:"touchmove"},end:{name:"touchend"}};var te,ne;(class extends W{constructor(e){super(e,ee)}static setup(){return window.addEventListener(ee.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ee.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:l}=n;return!(l.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(te||(te={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ne||(ne={}));z.Backward,z.Forward,z.Backward,z.Forward;var oe,le;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(oe||(oe={})),function(e){e.Optimized="optimized"}(le||(le={}));function ie(e){let{callback:t,disabled:n}=e;const l=p(t),i=(0,o.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(l)}),[n]);return(0,o.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}oe.WhileDragging,le.Optimized;class re extends Map{get(e){var t;return null!=e&&null!=super.get(e)?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(null==this.get(e)?void 0:n.node.current)?t:void 0}}const ae={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:E,draggableNodes:new Map,over:null,measureDroppableContainers:E},se=(0,o.createContext)(ae);const ue=(0,o.createContext)({...I,scaleX:1,scaleY:1});var de;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(de||(de={}));const ce=(0,o.createContext)(null),ge="button",pe="Droppable";function me(e){let{id:t,data:n,disabled:l=!1,attributes:i}=e;const r=v(pe),{activators:a,activatorEvent:s,active:u,activeNodeRect:d,ariaDescribedById:c,draggableNodes:p,over:h}=(0,o.useContext)(se),{role:w=ge,roleDescription:b="draggable",tabIndex:C=0}=null!=i?i:{},S=(null==u?void 0:u.id)===t,R=(0,o.useContext)(S?ue:ce),[y,x]=f(),[E,I]=f(),M=function(e,t){return(0,o.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:o,handler:l}=n;return e[o]=e=>{l(e,t)},e}),{})),[e,t])}(a,t),F=m(n);g((()=>(p.set(t,{id:t,key:r,node:y,activatorNode:E,data:F}),()=>{const e=p.get(t);e&&e.key===r&&p.delete(t)})),[p,t]);return{active:u,activatorEvent:s,activeNodeRect:d,attributes:(0,o.useMemo)((()=>({role:w,tabIndex:C,"aria-disabled":l,"aria-pressed":!(!S||w!==ge)||void 0,"aria-roledescription":b,"aria-describedby":c.draggable})),[l,w,C,S,b,c.draggable]),isDragging:S,listeners:l?void 0:M,node:y,over:h,setNodeRef:x,setActivatorNodeRef:I,transform:R}}const fe="Droppable",he={timeout:25};function ve(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function we(e){return null!==e&&e>=0}const be=e=>{let{rects:t,activeIndex:n,overIndex:o,index:l}=e;const i=ve(t,o,n),r=t[l],a=i[l];return a&&r?{x:a.left-r.left,y:a.top-r.top,scaleX:a.width/r.width,scaleY:a.height/r.height}:null};const Ce="Sortable",Se=o.createContext({activeIndex:-1,containerId:Ce,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:be,disabled:{draggable:!1,droppable:!1}});const Re=e=>{let{id:t,items:n,activeIndex:o,overIndex:l}=e;return ve(n,o,l).indexOf(t)},ye=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:l,items:i,newIndex:r,previousItems:a,previousContainerId:s,transition:u}=e;return!(!u||!o)&&((a===i||l!==r)&&(!!n||r!==l&&t===s))},xe={duration:200,easing:"ease"},Ee="transform",Ie=y.Transition.toString({property:Ee,duration:0,easing:"linear"}),Me={roleDescription:"sortable"};function Fe(e){let{animateLayoutChanges:t=ye,attributes:n,disabled:l,data:i,getNewIndex:r=Re,id:a,strategy:s,resizeObserverConfig:u,transition:d=xe}=e;const{items:c,containerId:p,activeIndex:h,disabled:w,disableTransforms:b,sortedRects:C,overIndex:R,useDragOverlay:E,strategy:I}=(0,o.useContext)(Se),M=function(e,t){var n,o;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(l,w),F=c.indexOf(a),P=(0,o.useMemo)((()=>({sortable:{containerId:p,index:F,items:c},...i})),[p,i,F,c]),V=(0,o.useMemo)((()=>c.slice(c.indexOf(a))),[c,a]),{rect:N,node:z,isOver:O,setNodeRef:_}=function(e){let{data:t,disabled:n=!1,id:l,resizeObserverConfig:i}=e;const r=v(fe),{active:a,dispatch:s,over:u,measureDroppableContainers:d}=(0,o.useContext)(se),c=(0,o.useRef)({disabled:n}),p=(0,o.useRef)(!1),h=(0,o.useRef)(null),w=(0,o.useRef)(null),{disabled:b,updateMeasurementsFor:C,timeout:S}={...he,...i},R=m(null!=C?C:l),y=ie({callback:(0,o.useCallback)((()=>{p.current?(null!=w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{d(Array.isArray(R.current)?R.current:[R.current]),w.current=null}),S)):p.current=!0}),[S]),disabled:b||!a}),E=(0,o.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),p.current=!1),e&&y.observe(e))}),[y]),[I,M]=f(E),F=m(t);return(0,o.useEffect)((()=>{y&&I.current&&(y.disconnect(),p.current=!1,y.observe(I.current))}),[I,y]),g((()=>(s({type:x.RegisterDroppable,element:{id:l,key:r,disabled:n,node:I,rect:h,data:F}}),()=>s({type:x.UnregisterDroppable,key:r,id:l}))),[l]),(0,o.useEffect)((()=>{n!==c.current.disabled&&(s({type:x.SetDroppableDisabled,id:l,key:r,disabled:n}),c.current.disabled=n)}),[l,r,n,s]),{active:a,rect:h,isOver:(null==u?void 0:u.id)===l,node:I,over:u,setNodeRef:M}}({id:a,data:P,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:V,...u}}),{active:L,activatorEvent:A,activeNodeRect:G,attributes:T,setNodeRef:H,listeners:k,isDragging:B,over:j,setActivatorNodeRef:K,transform:q}=me({id:a,data:P,attributes:{...Me,...n},disabled:M.draggable}),U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(_,H),X=Boolean(L),$=X&&!b&&we(h)&&we(R),W=!E&&B,Y=W&&$?q:null,Z=$?null!=Y?Y:(null!=s?s:I)({rects:C,activeNodeRect:G,activeIndex:h,overIndex:R,index:F}):null,J=we(h)&&we(R)?r({id:a,items:c,activeIndex:h,overIndex:R}):F,Q=null==L?void 0:L.id,ee=(0,o.useRef)({activeId:Q,items:c,newIndex:J,containerId:p}),te=c!==ee.current.items,ne=t({active:L,containerId:p,isDragging:B,isSorting:X,id:a,index:F,items:c,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:d,wasDragging:null!=ee.current.activeId}),oe=function(e){let{disabled:t,index:n,node:l,rect:i}=e;const[r,a]=(0,o.useState)(null),s=(0,o.useRef)(n);return g((()=>{if(!t&&n!==s.current&&l.current){const e=i.current;if(e){const t=D(l.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==s.current&&(s.current=n)}),[t,n,l,i]),(0,o.useEffect)((()=>{r&&a(null)}),[r]),r}({disabled:!ne,index:F,node:z,rect:N});return(0,o.useEffect)((()=>{X&&ee.current.newIndex!==J&&(ee.current.newIndex=J),p!==ee.current.containerId&&(ee.current.containerId=p),c!==ee.current.items&&(ee.current.items=c)}),[X,J,p,c]),(0,o.useEffect)((()=>{if(Q===ee.current.activeId)return;if(Q&&!ee.current.activeId)return void(ee.current.activeId=Q);const e=setTimeout((()=>{ee.current.activeId=Q}),50);return()=>clearTimeout(e)}),[Q]),{active:L,activeIndex:h,attributes:T,data:P,rect:N,index:F,newIndex:J,items:c,isOver:O,isSorting:X,isDragging:B,listeners:k,node:z,overIndex:R,over:j,setNodeRef:U,setActivatorNodeRef:K,setDroppableNodeRef:_,setDraggableNodeRef:H,transform:null!=oe?oe:Z,transition:function(){if(oe||te&&ee.current.newIndex===F)return Ie;if(W&&!S(A)||!d)return;if(X||ne)return y.Transition.toString({...d,property:Ee});return}()}}k.Down,k.Right,k.Up,k.Left;var De=n(15178);const Pe=o.createContext(void 0),Ve=o.createContext({getRowByIndex:()=>{},enableNesting:!1}),Ne={};var ze=n(11399);const Oe=e=>{const t=e.column.getIsPinned(),n="left"===t,o="right"===t;return{"pinned-left":n,"pinned-right":o,"last-pinned-left":n&&e.column.getIsLastColumn("left"),"first-pinned-right":o&&e.column.getIsFirstColumn("right")}},_e=e=>e?Object.assign({id:e.column.id},Oe(e)):null,Le=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0,position:n?"sticky":void 0,zIndex:n?1:void 0},t)};var Ae=n(95936);(0,Ae.withNaming)({e:"__",m:"_"});const Ge=(0,Ae.withNaming)({n:"gt-",e:"__",m:"_"}),Te=Ge("table");var He=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const ke=e=>{var{cell:t,children:n,className:l,style:i}=e,r=He(e,["cell","children","className","style"]);const a=o.useMemo((()=>"function"===typeof l?l(t):l),[t,l]);return o.createElement("td",Object.assign({className:Te("cell",_e(t),a),style:Le(t,i)},r),t?(0,ze.ie)(t.column.columnDef.cell,t.getContext()):n)},Be=Ge("group-header"),je=e=>{let{className:t,getGroupTitle:n,row:l}=e;var i;return o.createElement("h2",{className:Be(null,t)},o.createElement("button",{className:Be("button"),onClick:l.getToggleExpandedHandler()},o.createElement("svg",{className:Be("icon",{expanded:l.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},o.createElement("path",{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",fill:"currentColor"})),o.createElement("span",{className:Be("content")},o.createElement("span",{className:Be("title")},null!==(i=null===n||void 0===n?void 0:n(l))&&void 0!==i?i:l.id),o.createElement("span",{className:Be("total")},l.subRows.length))))},Ke=o.forwardRef(((e,t)=>{let{cellClassName:n,className:l,getGroupTitle:i,getIsCustomRow:r,getIsGroupHeaderRow:a,getRowAttributes:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:c,renderGroupHeader:g,renderGroupHeaderRowContent:p,row:m,rowVirtualizer:f,style:h,virtualItem:v}=e;const w=(0,De.c)(null===f||void 0===f?void 0:f.measureElement,t),b=o.useMemo((()=>"function"===typeof l?l(m):l),[l,m]),C=o.useCallback((e=>{null===d||void 0===d||d(m,e)}),[d,m]);return o.createElement("tr",Object.assign({ref:w,style:Object.assign({top:null===v||void 0===v?void 0:v.start},h),className:Te("row",{selected:m.getIsSelected(),interactive:Boolean(d)},b),onClick:C,"data-index":null===v||void 0===v?void 0:v.index},null===s||void 0===s?void 0:s(m)),(null===a||void 0===a?void 0:a(m))?p?p({Cell:ke,cellClassName:n,getGroupTitle:i,row:m}):o.createElement(ke,{className:n,colSpan:m.getVisibleCells().length},g?g({className:Te("group-header",u),getGroupTitle:i,row:m}):o.createElement(je,{className:Te("group-header",u),getGroupTitle:i,row:m})):(null===r||void 0===r?void 0:r(m))&&c?c({Cell:ke,cellClassName:n,row:m}):m.getVisibleCells().map((e=>o.createElement(ke,{key:e.id,cell:e,className:n}))))}));Ke.displayName="Row";var qe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const Ue=o.forwardRef(((e,t)=>{var n,{getRowAttributes:l,row:i,style:r}=e,a=qe(e,["getRowAttributes","row","style"]);const{setNodeRef:s,transform:u,transition:d,isDragging:c}=Fe({id:i.id}),{isChildMode:g,activeItemKey:p,targetItemIndex:m=-1}=null!==(n=o.useContext(Pe))&&void 0!==n?n:{},{enableNesting:f}=o.useContext(Ve),h=Boolean(p),v=g&&m===i.index,w=(0,De.c)(s,t),{isFirstChild:b,depth:C}=(e=>{let{row:t,isDragging:n}=e;var l,i,r,a,s;const{isChildMode:u,isParentMode:d,isNextChildMode:c,targetItemIndex:g=-1}=null!==(l=o.useContext(Pe))&&void 0!==l?l:{},{getRowByIndex:p,enableNesting:m}=o.useContext(Ve);let f=n&&-1===g,h=0;if(m)if(n&&-1!==g){const e=null!==(r=null===(i=p(g))||void 0===i?void 0:i.depth)&&void 0!==r?r:0,t=null!==(s=null===(a=p(g+1))||void 0===a?void 0:a.depth)&&void 0!==s?s:0;if(f=t>e,f)h=t,d&&h--;else{let n=0;d?n=-1:u&&(n=1),h=(c?e:Math.min(e,t))+n}h=Math.max(0,h)}else h=f?0:t.depth;return{depth:h,isFirstChild:f}})({row:i,isDragging:c}),S=(e=>{let{style:t=Ne,transform:n,transition:l,isDragging:i,isDragActive:r,isFirstChild:a,draggableChildRowOffset:s=32,nestingEnabled:u}=e;var d;const{isChildMode:c,isParentMode:g}=null!==(d=o.useContext(Pe))&&void 0!==d?d:{};return o.useMemo((()=>{if(!r||!n)return t;let e=0;return u&&i&&(g?e=-s:c&&!a&&(e=s)),Object.assign(Object.assign({},t),{transition:l,transform:`translate3d(${Math.max(e,0)}px, ${n.y}px, 0)`})}),[s,c,r,i,a,g,t,n,l,u])})({style:r,transform:u,transition:d,isDragging:c,isDragActive:h,isFirstChild:b,nestingEnabled:f}),R=o.useCallback((e=>Object.assign(Object.assign({},null===l||void 0===l?void 0:l(e)),{"data-key":e.id,"data-depth":C,"data-draggable":!0,"data-dragging":c,"data-drag-active":h,"data-expanded":h&&v})),[l,C,c,h,v]);return o.createElement(Ke,Object.assign({ref:w,getRowAttributes:R,row:i,style:S},a))}));Ue.displayName="DraggableRow";const Xe=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},Oe(e)),$e=e=>{let{className:t,header:n}=e;if(n.isPlaceholder)return null;const l=n.depth-n.column.depth;return o.createElement("th",{className:Te("footer-cell",Xe(n),t),colSpan:n.colSpan>1?n.colSpan:void 0,rowSpan:l>1?l:void 0,style:Le(n)},(0,ze.ie)(n.column.columnDef.footer,n.getContext()))},We=e=>{let{cellClassName:t,className:n,footerGroup:l}=e;return l.headers.every((e=>!e.column.columnDef.footer))?null:o.createElement("tr",{className:Te("footer-row",n)},l.headers.map((e=>o.createElement($e,{key:e.column.id,className:t,header:e}))))},Ye=Ge("resize-handle"),Ze=e=>{let{className:t,header:n}=e;var l;const{table:i}=n.getContext(),{columnResizeDirection:r,columnResizeMode:a}=i.options,{columnSizingInfo:s}=i.getState(),u=("rtl"===r?-1:1)*(null!==(l=s.deltaOffset)&&void 0!==l?l:0);return o.createElement("div",{className:Ye({direction:r,resizing:n.column.getIsResizing()},t),onDoubleClick:()=>n.column.resetSize(),onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),style:{transform:"onEnd"===a&&n.column.getIsResizing()?`translateX(${u}px)`:void 0}})},Je=Ge("sort-indicator"),Qe=e=>{let{className:t,header:n}=e;const l=n.column.getIsSorted();return o.createElement("span",{className:Je({order:l,invisible:!l},t)},o.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},o.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},et=e=>{let{className:t,header:n,parentHeader:l,renderResizeHandle:i,renderSortIndicator:r,resizeHandleClassName:a,sortIndicatorClassName:s}=e;const u=o.useMemo((()=>"function"===typeof t?t(n,l):t),[t,n,l]),d=n.isPlaceholder&&(null===l||void 0===l?void 0:l.isPlaceholder)&&l.placeholderId===n.placeholderId,c=!n.isPlaceholder&&n.id===n.column.id&&n.depth-n.column.depth>1;if(d||c)return null;const g=n.isPlaceholder?n.getLeafHeaders().length:1;return o.createElement("th",{className:Te("header-cell",Xe(n),u),colSpan:n.colSpan>1?n.colSpan:void 0,rowSpan:g>1?g:void 0,onClick:n.column.getToggleSortingHandler(),style:Le(n)},(0,ze.ie)(n.column.columnDef.header,n.getContext())," ",n.column.getCanSort()&&(r?r({className:Te("sort-indicator",s),header:n}):o.createElement(Qe,{className:Te("sort-indicator",s),header:n})),n.column.getCanResize()&&(i?i({className:Te("resize-handle",a),header:n}):o.createElement(Ze,{className:Te("resize-handle",a),header:n})))},tt=e=>{let{cellClassName:t,className:n,headerGroup:l,parentHeaderGroup:i,renderResizeHandle:r,renderSortIndicator:a,resizeHandleClassName:s,sortIndicatorClassName:u}=e;const d=o.useMemo((()=>"function"===typeof n?n(l,i):n),[n,l,i]);return o.createElement("tr",{className:Te("header-row",d)},l.headers.map((e=>o.createElement(et,{key:e.column.id,className:t,header:e,parentHeader:null===i||void 0===i?void 0:i.headers.find((t=>e.column.id===t.column.id)),renderResizeHandle:r,renderSortIndicator:a,resizeHandleClassName:s,sortIndicatorClassName:u}))))},nt=e=>{let{children:t,enableNesting:n,getRowByIndex:l}=e;const i=o.useMemo((()=>({getRowByIndex:l,enableNesting:n})),[l,n]);return o.createElement(Ve.Provider,{value:i},t)},ot=o.forwardRef(((e,t)=>{let{bodyClassName:n,cellClassName:l,className:i,enableNesting:r,footerCellClassName:a,footerClassName:s,footerRowClassName:u,getGroupTitle:d,getIsGroupHeaderRow:c,getRowAttributes:g,headerCellClassName:p,headerClassName:m,headerRowClassName:f,onRowClick:h,renderGroupHeader:v,renderGroupHeaderRowContent:w,renderResizeHandle:b,renderSortIndicator:C,resizeHandleClassName:S,rowClassName:R,rowVirtualizer:y,sortIndicatorClassName:x,stickyFooter:E,stickyHeader:I,table:M,withFooter:F,withHeader:D=!0}=e;var P;const V=o.useContext(Pe),N=null!==(P=null===V||void 0===V?void 0:V.activeItemIndex)&&void 0!==P?P:-1,z=o.useCallback((e=>M.getRowModel().rows[e]),[M]),{rows:O}=M.getRowModel(),_=D&&M.getHeaderGroups(),L=F&&M.getFooterGroups();return o.createElement(nt,{getRowByIndex:z,enableNesting:r},o.createElement("table",{ref:t,className:Te({"with-row-virtualization":Boolean(y)},i),"data-dragging-row-index":N>-1?N:void 0},_&&o.createElement("thead",{className:Te("header",{sticky:I},m)},_.map(((e,t)=>o.createElement(tt,{key:e.id,cellClassName:p,className:f,headerGroup:e,parentHeaderGroup:_[t-1],renderResizeHandle:b,renderSortIndicator:C,resizeHandleClassName:S,sortIndicatorClassName:x})))),o.createElement("tbody",{className:Te("body",n),style:{height:null===y||void 0===y?void 0:y.getTotalSize()}},((null===y||void 0===y?void 0:y.getVirtualItems())||O).map((e=>{const t=y?O[e.index]:e,n={cellClassName:l,className:R,getGroupTitle:d,getIsGroupHeaderRow:c,getRowAttributes:g,onClick:h,renderGroupHeader:v,renderGroupHeaderRowContent:w,row:t,rowVirtualizer:y,virtualItem:y?e:void 0};return V?o.createElement(Ue,Object.assign({key:t.id},n)):o.createElement(Ke,Object.assign({key:t.id},n))}))),L&&o.createElement("tfoot",{className:Te("footer",{sticky:E},s)},L.map((e=>o.createElement(We,{key:e.id,cellClassName:a,className:u,footerGroup:e}))))))}));ot.displayName="Table"},8475:(e,t,n)=>{n.d(t,{x:()=>i});var o=n(95219),l=n(11399);const i=e=>{var t,n,i,r,a,s,u,d,c,g,p,m,f;const h=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(i=e.enableExpanding)&&void 0!==i&&i,enableGrouping:null!==(r=e.enableGrouping)&&void 0!==r&&r,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,o.sC)(),getExpandedRowModel:e.enableExpanding?null!==(c=e.getExpandedRowModel)&&void 0!==c?c:(0,o.rV)():void 0,getGroupedRowModel:e.enableGrouping?null!==(g=e.getGroupedRowModel)&&void 0!==g?g:(0,o.qe)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,o.tj)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,l.b7)(h)}},19912:(e,t,n)=>{n.d(t,{X:()=>u});var o=n(34706),l=n(75447),i=n(19694);function r(e){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),o.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),o.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 s=(0,n(87578).Ge)("checkbox"),u=o.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:c,children:g,title:p,style:m,className:f,qa:h}=e,{checked:v,inputProps:w}=(0,l.O)(e),b=c||g,C=o.createElement("span",{className:s("indicator")},o.createElement("span",{className:s("icon"),"aria-hidden":!0},u?o.createElement(r,{className:s("icon-svg",{type:"dash"})}):o.createElement(a,{className:s("icon-svg",{type:"tick"})})),o.createElement("input",Object.assign({},w,{className:s("control")})),o.createElement("span",{className:s("outline")}));return o.createElement(i.J,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:v},f),qa:h,control:C},b)}))},68585:(e,t,n)=>{n.d(t,{V:()=>P});var o=n(34706),l=n(77498),i=n(9446),r=n(38873),a=n(41715),s=n(47741),u=n(87578),d=n(90512),c=n(98960);const g=(0,u.Ge)("modal");function p(e){let{open:t=!1,keepMounted:n=!1,disableBodyScrollLock:u=!1,disableEscapeKeyDown:p,disableOutsideClick:m,disableFocusTrap:f,disableAutoFocus:h,focusTrap:v=!0,autoFocus:w=!0,restoreFocusRef:b,onEscapeKeyDown:C,onEnterKeyDown:S,onOutsideClick:R,onClose:y,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:I,onTransitionExited:M,children:F,style:D,contentOverflow:P="visible",className:V,contentClassName:N,"aria-labelledby":z,"aria-label":O,container:_,qa:L}=e;const A=o.useRef(null),G=o.useRef(null),[T,H]=o.useState(!1);(0,i.y)({enabled:!u&&(t||T)});const k=(0,r.H)({enabled:t||T,restoreFocusRef:b,focusTrapped:!0});return(0,d.s)({open:t,disableEscapeKeyDown:p,disableOutsideClick:m,onEscapeKeyDown:C,onEnterKeyDown:S,onOutsideClick:R,onClose:y,contentRefs:[G],type:"modal"}),o.createElement(l.Z,{nodeRef:A,in:t,addEndListener:e=>{var t;return null===(t=A.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,c.Y)(g),mountOnEnter:!n,unmountOnExit:!n,appear:!0,onEnter:()=>{H(!0),null===x||void 0===x||x()},onExit:()=>{H(!0),null===I||void 0===I||I()},onEntered:()=>{H(!1),null===E||void 0===E||E()},onExited:()=>{H(!1),null===M||void 0===M||M()}},o.createElement(a.h,{container:_},o.createElement("div",{ref:A,style:D,className:g({open:t},V),"data-qa":L},o.createElement("div",{className:g("content-aligner")},o.createElement("div",{className:g("content-wrapper")},o.createElement(s.i,{enabled:!f&&v&&t&&!T,autoFocus:!h&&w},o.createElement("div",Object.assign({ref:G,tabIndex:-1,role:"dialog","aria-modal":t,"aria-label":O,"aria-labelledby":z,className:g("content",{"has-scroll":"auto"===P},N)},k),F)))))))}var m=n(2915),f=n(72616),h=n(14561),v=n(3581);const w=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),C=(0,v.e)({en:w,ru:b},"Dialog"),S=(0,u.Ge)("dialog-btn-close");function R(e){let{onClose:t}=e;return o.createElement("div",{className:S()},o.createElement(f.z,{view:"flat",size:"l",className:S("btn"),onClick:e=>t(e,{isOutsideClick:!1}),extraProps:{"aria-label":C("close")}},o.createElement(h.J,{data:m.Z,size:20})))}const y=(0,u.Ge)("dialog-body");const x=(0,u.Ge)("dialog-divider");var E=n(24874);const I=(0,u.Ge)("dialog-footer");class M extends o.Component{constructor(){super(...arguments),this.errorTooltipRef=o.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:l,textButtonApply:i,propsButtonCancel:r,propsButtonApply:a,preset:s,children:u,errorText:d,showError:c,renderButtons:g,className:p}=this.props,m=o.createElement("div",{className:I("button",{action:"cancel"})},o.createElement(f.z,Object.assign({view:i?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},r),l)),h=o.createElement("div",{className:I("button",{action:"apply"})},o.createElement(f.z,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:I("button-apply",{preset:s})},a),i),d&&o.createElement(E.G,{open:c,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},o.createElement("div",{className:I("error")},d)));return o.createElement("div",{className:I(null,p)},o.createElement("div",{className:I("children")},u),o.createElement("div",{className:I("bts-wrapper")},g?g(h,m):o.createElement(o.Fragment,null,l&&m,i&&h)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}M.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const F=(0,u.Ge)("dialog-header");const D=(0,u.Ge)("dialog");class P extends o.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:l,disableEscapeKeyDown:i,disableOutsideClick:r,disableFocusTrap:a,disableAutoFocus:s,restoreFocusRef:u,keepMounted:d,size:c,contentOverflow:g="visible",className:m,modalClassName:f,hasCloseButton:h,onEscapeKeyDown:v,onEnterKeyDown:w,onOutsideClick:b,onClose:C,onTransitionEnter:S,onTransitionEntered:y,onTransitionExit:x,onTransitionExited:E,"aria-label":I,"aria-labelledby":M,qa:F}=this.props;return o.createElement(p,{open:n,contentOverflow:g,disableBodyScrollLock:l,disableEscapeKeyDown:i,disableOutsideClick:r,disableFocusTrap:a,disableAutoFocus:s,restoreFocusRef:u,keepMounted:d,onEscapeKeyDown:v,onEnterKeyDown:w,onOutsideClick:b,onClose:C,onTransitionEnter:S,onTransitionEntered:y,onTransitionExit:x,onTransitionExited:E,className:D("modal",f),"aria-label":I,"aria-labelledby":M,container:e,qa:F},o.createElement("div",{className:D({size:c,"has-close":h,"has-scroll":"auto"===g},m)},t,h&&o.createElement(R,{onClose:this.handleCloseButtonClick})))}}P.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},P.Footer=M,P.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:l,className:i,id:r}=e;return o.createElement("div",{className:F(null,i)},n,o.createElement("div",{className:F("caption"),id:r},t),l)},P.Body=function(e){const{className:t,hasBorders:n=!1}=e;return o.createElement("div",{className:y({"has-borders":n},t)},e.children)},P.Divider=function(e){let{className:t}=e;return o.createElement("div",{className:x(null,t)})}},11399:(e,t,n)=>{n.d(t,{b7:()=>r,ie:()=>i});var o=n(34706),l=n(95219);function i(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}function r(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:(0,l.W_)(t)}))),[i,r]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{r(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},95219:(e,t,n)=>{function o(e,t){return"function"===typeof e?e(t):e}function l(e,t){return n=>{t.setState((t=>({...t,[e]:o(n,t[e])})))}}function i(e){return e instanceof Function}function r(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const l=t(e);null!=l&&l.length&&o(l)}))};return o(e),n}function a(e,t,n){let o,l=[];return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(!(a.length!==l.length||a.some(((e,t)=>l[t]!==e))))return o;let s;if(l=a,n.key&&n.debug&&(s=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-s))/100,o=t/16,l=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${l(t,5)} /${l(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function s(e,t,n,o){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:o}}n.d(t,{W_:()=>$,qe:()=>J,rV:()=>Y,sC:()=>W,tj:()=>Q});const u="debugHeaders";function d(e,t,n){var o;let l={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(l),e},getContext:()=>({table:e,header:l,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(l,e)})),l}const c={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,l)=>{var i,r;const a=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[];return g(t,[...a,...n.filter((e=>!(null!=o&&o.includes(e.id))&&!(null!=l&&l.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,l)=>g(t,n=n.filter((e=>!(null!=o&&o.includes(e.id))&&!(null!=l&&l.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var l;return g(t,null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var l;return g(t,null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,l,i,r,a,s;return[...null!=(o=null==(l=e[0])?void 0:l.headers)?o:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function g(e,t,n,o){var l,i;let r=0;const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const l={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const r=[...i].reverse()[0];let a,s=!1;if(e.column.depth===l.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e);else{const l=d(n,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===a)).length}`:void 0,depth:t,index:i.length});l.subHeaders.push(e),i.push(l)}l.headers.push(e),e.headerGroup=l})),s.push(l),t>0&&u(i,t-1)},c=t.map(((e,t)=>d(n,e,{depth:r,index:t})));u(c,r-1),s.reverse();const g=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],g(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:l}=e;t+=n,o.push(l)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return g(null!=(l=null==(i=s[0])?void 0:i.headers)?l:[]),s}const p=(e,t,n,o,l,i,u)=>{let d={id:t,index:o,original:n,depth:l,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,o),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,o),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>r(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=l.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,l]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((o=>{null==o.createCell||o.createCell(l,n,t,e)}),{}),l}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let r=0;r<e._features.length;r++){const t=e._features[r];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var o;const l=n.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(l))};f.autoRemove=e=>E(e);const h=(e,t,n)=>{var o;return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.includes(n))};h.autoRemove=e=>E(e);const v=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};v.autoRemove=e=>E(e);const w=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};w.autoRemove=e=>E(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));b.autoRemove=e=>E(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));C.autoRemove=e=>E(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>E(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>E(e);const y=(e,t,n)=>{let[o,l]=n;const i=e.getValue(t);return i>=o&&i<=l};y.resolveFilterValue=e=>{let[t,n]=e,o="number"!==typeof t?parseFloat(t):t,l="number"!==typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,r=null===n||Number.isNaN(l)?1/0:l;if(i>r){const e=i;i=r,r=e}return[i,r]},y.autoRemove=e=>E(e)||E(e[0])&&E(e[1]);const x={includesString:f,includesStringSensitive:h,equalsString:v,arrIncludes:w,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function E(e){return void 0===e||null===e||""===e}const I={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:l("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"===typeof o?x.includesString:"number"===typeof o?x.inNumberRange:"boolean"===typeof o||null!==o&&"object"===typeof o?x.equals:Array.isArray(o)?x.arrIncludes:x.weakEquals},e.getFilterFn=()=>{var n,o;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:x[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,l;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(l=t.options.enableFilters)||l)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const l=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),r=o(n,i?i.value:void 0);var a;if(M(l,r,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:r};var u;return i?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var l;return null==(l=o(t,e))?void 0:l.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(M(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function M(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const F={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"===typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=l=n):(o>n&&(o=n),l<n&&(l=n)))})),[o,l]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let l=t.getValue(e);null!=l&&(l=+l)>=l&&(++n,o+=l)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(o=n,!Array.isArray(o)||!o.every((e=>"number"===typeof e)))return;var o;if(1===n.length)return n[0];const l=Math.floor(n.length/2),i=n.sort(((e,t)=>e-t));return n.length%2!==0?i[l]:(i[l-1]+i[l])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},D={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:l("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,o;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(o=t.options.enableGrouping)||o)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"===typeof o?F.sum:"[object Date]"===Object.prototype.toString.call(o)?F.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:F[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const P={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:l("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[L(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var o;return(null==(o=L(t,n)[0])?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const l=L(t,n);return(null==(o=l[l.length-1])?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let l=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&l.push(n.splice(o,1)[0])}l=[...l,...n]}else l=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(l,t,n)}),s(e.options,"debugTable"))}},V={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:l("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,l,i,r,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,l;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(l=t.options.enableColumnPinning)?l:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:l}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),r=n.some((e=>null==l?void 0:l.includes(e)));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,o;const l=e.getIsPinned();return l?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[l])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var l,i;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(l=o.left)?void 0:l.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.id)))}),s(e.options,"debugColumns"))}},N={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>N,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:l("columnSizing",e),onColumnSizingInfoChange:l("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,l;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:N.minSize,null!=(o=null!=i?i:e.columnDef.size)?o:N.size),null!=(l=e.columnDef.maxSize)?l:N.maxSize)},e.getStart=a((e=>[e,L(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,L(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),l=null==o?void 0:o.getCanResize();return i=>{if(!o||!l)return;if(null==i.persist||i.persist(),_(i)&&i.touches&&i.touches.length>1)return;const r=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],s=_(i)?Math.round(i.touches[0].clientX):i.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var o,l;const i="rtl"===t.options.columnResizeDirection?-1:1,r=(n-(null!=(o=null==e?void 0:e.startOffset)?o:0))*i,a=Math.max(r/(null!=(l=null==e?void 0:e.startSize)?l:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:r,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},c=e=>d("move",e),g=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>c(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),g(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"===typeof O)return O;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return O=e,O}()&&{passive:!1};_(i)?(null==p||p.addEventListener("touchmove",f.moveHandler,h),null==p||p.addEventListener("touchend",f.upHandler,h)):(null==p||p.addEventListener("mousemove",m.moveHandler,h),null==p||p.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let O=null;function _(e){return"touchstart"===e.type}function L(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:l("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const o={...n},l=e.getPreGroupedRowModel().flatRows;return t?l.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):l.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),l={...n};return e.getRowModel().rows.forEach((t=>{G(l,t.id,o,!0,e)})),l})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?T(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?T(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?T(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=Boolean(t.length&&Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const l=e.getIsSelected();t.setRowSelection((i=>{var r;if(n="undefined"!==typeof n?n:!l,e.getCanSelect()&&l===n)return i;const a={...i};return G(a,e.id,n,null==(r=null==o?void 0:o.selectChildren)||r,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return H(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===k(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===k(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},G=(e,t,n,o,l)=>{var i;const r=l.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),r.getCanSelect()&&(e[t]=!0)):delete e[t],o&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach((t=>G(e,t.id,n,o,l)))};function T(e,t){const n=e.getState().rowSelection,o=[],l={},i=function(e,t){return e.map((e=>{var t;const r=H(e,n);if(r&&(o.push(e),l[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),r)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:l}}function H(e,t){var n;return null!=(n=t[e.id])&&n}function k(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let l=!0,i=!1;return e.subRows.forEach((e=>{if((!i||l)&&(e.getCanSelect()&&(H(e,t)?i=!0:l=!1),e.subRows&&e.subRows.length)){const n=k(e,t);"all"===n?i=!0:"some"===n?(i=!0,l=!1):l=!1}})),l?"all":!!i&&"some"}const B=/([0-9]+)/gm;function j(e,t){return e===t?0:e>t?1:-1}function K(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function q(e,t){const n=e.split(B).filter(Boolean),o=t.split(B).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),l=parseInt(e,10),i=parseInt(t,10),r=[l,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(l)?-1:1;if(l>i)return 1;if(i>l)return-1}}return n.length-o.length}const U={alphanumeric:(e,t,n)=>q(K(e.getValue(n)).toLowerCase(),K(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>q(K(e.getValue(n)),K(t.getValue(n))),text:(e,t,n)=>j(K(e.getValue(n)).toLowerCase(),K(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>j(K(e.getValue(n)),K(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),l=t.getValue(n);return o>l?1:o<l?-1:0},basic:(e,t,n)=>j(e.getValue(n),t.getValue(n))},X=[c,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:l("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;const l=e.columns;return null==(n=l.length?l.some((e=>e.getIsVisible())):null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},P,V,m,I,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:l("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof o||"number"===typeof o}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,l,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(l=t.options.enableFilters)||l)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>x.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return i(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:x[o]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:l("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(o=!0,n.split(B).length>1))return U.alphanumeric}return o?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const l=e.getNextSortingOrder(),i="undefined"!==typeof n&&null!==n;t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),s=null==r?void 0:r.findIndex((t=>t.id===e.id));let u,d=[],c=i?n:"desc"===l;var g;(u=null!=r&&r.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=r&&r.length&&s!==r.length-1?"replace":a?"toggle":"replace","toggle"===u&&(i||l||(u="remove")),"add"===u)?(d=[...r,{id:e.id,desc:c}],d.splice(0,d.length-(null!=(g=t.options.maxMultiSortColCount)?g:Number.MAX_SAFE_INTEGER))):d="toggle"===u?r.map((t=>t.id===e.id?{...t,desc:c}:t)):"remove"===u?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:c}];return d}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,l;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?!!(r===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(l=t.options.enableMultiRemove)&&!l)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},D,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:l("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,l;if(t){if(null!=(o=null!=(l=e.options.autoResetAll)?l:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var l;const i=!0===o||!(null==o||!o[e.id]);let r={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{r[e]=!0})):r=o,n=null!=(l=n)?l:!i,!i&&n)return{...r,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=r;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||(null==o?void 0:o[e.id]))},e.getCanExpand=()=>{var n,o,l;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(l=e.subRows)||!l.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:l("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,l;if(t){if(null!=(o=null!=(l=e.options.autoResetAll)?l:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>o(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let l=o(t,n.pageIndex);const i="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...n,pageIndex:l}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,o(t,e.pageSize)),l=e.pageSize*e.pageIndex,i=Math.floor(l/n);return{...e,pageIndex:i,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var l;let i=o(t,null!=(l=e.options.pageCount)?l:-1);return"number"===typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:l("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,l)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],r=l?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...r,e.id,...i]);t.setRowPinning((e=>{var t,o,l,i,r,s;return"bottom"===n?{top:(null!=(l=null==e?void 0:e.top)?l:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:l}=t.options;return"function"===typeof o?o(e):null==(n=null!=o?o:l)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:l}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),r=n.some((e=>null==l?void 0:l.includes(e)));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,o;const l=e.getIsPinned();if(!l)return-1;const i=null==(n="top"===l?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var l,i;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(l=o.top)?void 0:l.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,o)=>{var l;return(null==(l=e.options.keepPinnedRows)||l?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:o})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!o.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function $(e){var t,n;const l=[...X,...null!=(t=e._features)?t:[]];let i={_features:l};const r=i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i))),{});let u={...null!=(n=e.initialState)?n:{}};i._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let c=!1;const g={_features:l,options:{...r,...e},initialState:u,_queue:e=>{d.push(e),c||(c=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();c=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=o(e,i.options);i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,n)=>{var o;return null!=(o=null==i.options.getRowId?void 0:i.options.getRowId(e,t,n))?o:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?i.getPrePaginationRowModel():i.getRowModel()).rowsById[e];if(!n&&(n=i.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[i.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:a((()=>[i._getColumnDefs()]),(e=>{const t=function(e,n,o){return void 0===o&&(o=0),e.map((e=>{const l=function(e,t,n,o){var l,i;const r={...e._getDefaultColumnDef(),...t},u=r.accessorKey;let d,c=null!=(l=null!=(i=r.id)?i:u?u.replace(".","_"):void 0)?l:"string"===typeof r.header?r.header:void 0;if(r.accessorFn?d=r.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const o of u.split(".")){var n;t=null==(n=t)?void 0:n[o]}return t}:e=>e[r.accessorKey]),!c)throw new Error;let g={id:`${String(c)}`,accessorFn:d,parent:o,depth:n,columnDef:r,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[g,...null==(e=g.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=g.columns)&&t.length){let t=g.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[g]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(g,e);return g}(i,e,o,n),r=e;return l.columns=r.columns?t(r.columns,l,o+1):[],l}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>i._getAllFlatColumnsById()[e]};Object.assign(i,g);for(let o=0;o<i._features.length;o++){const e=i._features[o];null==e||null==e.createTable||e.createTable(i)}return i}function W(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,l,i){void 0===l&&(l=0);const r=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,i),t[s],s,l,void 0,null==i?void 0:i.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,r.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=o(u.originalSubRows,l+1,u))}return r};return n.rows=o(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function Y(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?Z(t):t),s(e.options,"debugTable"))}function Z(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function J(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const o=t.filter((t=>e.getColumn(t))),l=[],i={},a=function(t,n,s){if(void 0===n&&(n=0),n>=o.length)return t.map((e=>(e.depth=n,l.push(e),i[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=o[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const o=`${n.getGroupingValue(t)}`,l=e.get(o);return l?l.push(n):e.set(o,[n]),e}),n)}(t,u),c=Array.from(d.entries()).map(((t,d)=>{let[c,g]=t,m=`${u}:${c}`;m=s?`${s}>${m}`:m;const f=a(g,n+1,m);f.forEach((e=>{e.parentId=m}));const h=n?r(g,(e=>e.subRows)):g,v=p(e,m,h[0].original,d,n,void 0,s);return Object.assign(v,{groupingColumnId:u,groupingValue:c,subRows:f,leafRows:h,getValue:t=>{if(o.includes(t)){if(v._valuesCache.hasOwnProperty(t))return v._valuesCache[t];var n;if(g[0])v._valuesCache[t]=null!=(n=g[0].getValue(t))?n:void 0;return v._valuesCache[t]}if(v._groupingValuesCache.hasOwnProperty(t))return v._groupingValuesCache[t];const l=e.getColumn(t),i=null==l?void 0:l.getAggregationFn();return i?(v._groupingValuesCache[t]=i(t,h,g),v._groupingValuesCache[t]):void 0}}),f.forEach((e=>{l.push(e),i[e.id]=e})),v}));return c},s=a(n.rows,0);return s.forEach((e=>{l.push(e),i[e.id]=e})),{rows:s,flatRows:l,rowsById:i}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Q(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,l=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),r={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(r[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const l=i[o],a=r[l.id],s=a.sortUndefined,u=null!=(n=null==l?void 0:l.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(l.id),o=void 0===t.getValue(l.id);if(n||o){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&o?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,l.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;l.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:l,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8337.5c096a37.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/433.81528b91.chunk.js.LICENSE.txt index 23ee32e19b..23ee32e19b 100644 --- a/ydb/core/viewer/monitoring/static/js/8337.5c096a37.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/433.81528b91.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/5879.abdba9dc.chunk.js b/ydb/core/viewer/monitoring/static/js/5879.abdba9dc.chunk.js new file mode 100644 index 0000000000..8ba2054b4e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5879.abdba9dc.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5879],{66498:(e,t,a)=>{a.d(t,{a:()=>s.a});var s=a(41989)},50377:(e,t,a)=>{a.d(t,{P:()=>N});var s=a(79777),i=a(46878),l=a(65e3),n=a(25665),r=a(10142),d=a(99294),o=a(38980),c=a(70340),u=a(55842),v=a(43862),p=a(90808),h=a(20760),m=a(73287),g=a(37711);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"}'),x=(0,g.wZ)("ydb-pDisk-info",{en:b});var j=a(10161);const k=(0,d.cn)("ydb-pdisk-info");function N(e){let{pDisk:t,nodeId:a,withPDiskPageLink:d,className:g}=e;const b=(0,u.ix)(l.VH),[N,y,f,I]=function(e){let{pDisk:t,nodeId:a,withPDiskPageLink:s,isUserAllowedToMakeChanges:l}=e;const{PDiskId:d,Path:u,Guid:v,Category:g,Type:b,Device:N,Realtime:y,State:f,SerialNumber:I,TotalSize:w,AllocatedSize:D,StatusV2:S,NumActiveSlots:T,ExpectedSlotCount:P,LogUsedSize:z,LogTotalSize:V,SystemSize:A,SharedWithOs:C}=t||{},E=[];(0,n.D)(g)&&E.push({label:x("type"),value:b}),(0,n.D)(u)&&E.push({label:x("path"),value:u}),(0,n.D)(v)&&E.push({label:x("guid"),value:v}),I&&E.push({label:x("serial-number"),value:I}),(0,n.D)(C)&&E.push({label:x("shared-with-os"),value:x("yes")});const q=[];(0,n.D)(S)&&q.push({label:x("drive-status"),value:S}),(0,n.D)(f)&&q.push({label:x("state"),value:f}),(0,n.D)(N)&&q.push({label:x("device"),value:(0,j.jsx)(m.J,{status:N})}),(0,n.D)(y)&&q.push({label:x("realtime"),value:(0,j.jsx)(m.J,{status:y})});const R=[];R.push({label:x("space"),value:(0,j.jsx)(h.y,{value:D,capacity:w,formatValues:o.q3,colorizeProgress:!0})}),(0,n.D)(T)&&(0,n.D)(P)&&R.push({label:x("slots"),value:(0,j.jsx)(h.y,{value:T,capacity:P})}),(0,n.D)(z)&&(0,n.D)(V)&&R.push({label:x("log-size"),value:(0,j.jsx)(h.y,{value:z,capacity:V,formatValues:o.q3})}),(0,n.D)(A)&&R.push({label:x("system-size"),value:(0,r.td)({value:A})});const L=[];if((s||l)&&(0,n.D)(d)&&(0,n.D)(a)){const e=(0,i.ds)(d,a),t=(0,c.ok)({nodeId:a,pDiskId:d});L.push({label:x("links"),value:(0,j.jsxs)("span",{className:k("links"),children:[s&&(0,j.jsx)(p.j,{title:x("pdisk-page"),url:e,external:!1}),l&&(0,j.jsx)(p.j,{title:x("developer-ui"),url:t})]})})}return[E,q,R,L]}({pDisk:t,nodeId:a,withPDiskPageLink:d,isUserAllowedToMakeChanges:b});return(0,j.jsxs)(s.k,{className:g,gap:2,direction:"row",wrap:!0,children:[(0,j.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,j.jsx)(v._,{info:N,renderEmptyState:()=>null}),(0,j.jsx)(v._,{info:f,renderEmptyState:()=>null})]}),(0,j.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,j.jsx)(v._,{info:y,renderEmptyState:()=>null}),(0,j.jsx)(v._,{info:I,renderEmptyState:()=>null})]})]})}},76217:(e,t,a)=>{a.d(t,{P:()=>g});var s=a(83797),i=a(2194),l=a(46878),n=a(65e3),r=a(70340),d=a(55842),o=a(61168),c=a(62508),u=a(90808),v=a(37711);const p=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),h=(0,v.wZ)("ydb-tablet-name-wrapper",{en:p});var m=a(10161);function g(e){let{tabletId:t,database:a}=e;const v=(0,d.ix)(n.VH),p=(0,l.fK)(t,{database:a});return(0,m.jsx)(o.l,{disabled:!v,delayClosing:200,content:(0,m.jsx)(s.w,{responsive:!0,children:(0,m.jsx)(s.w.Item,{name:h("field_links"),children:(0,m.jsx)(u.j,{title:h("context_developer-ui"),url:(0,r.wz)(t)})})}),placement:["top","bottom"],behavior:i.x.Immediate,children:(0,m.jsx)(c.A,{name:t.toString(),path:p,hasClipboardButton:!0,showStatus:!1})})}},59907:(e,t,a)=>{a.d(t,{f:()=>n});var s=a(2634),i=a(55973),l=a(10161);function n(e){let{state:t}=e;return(0,l.jsx)(s._,{theme:(0,i.KR)(t),children:t})}},13618:(e,t,a)=>{a.d(t,{$:()=>d});a(34706);var s=a(79777),i=a(99294),l=a(10161);const n=(0,i.cn)("tag"),r=e=>{let{text:t,type:a}=e;return(0,l.jsx)("div",{className:n({type:a}),children:t})},d=e=>{let{tags:t,tagsType:a,className:i="",gap:n=1}=e;return(0,l.jsx)(s.k,{className:i,gap:n,wrap:"wrap",alignItems:"center",children:t&&t.map(((e,t)=>(0,l.jsx)(r,{text:e,type:a},t)))})}},33100:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>Ne,STORAGE_ROLE:()=>ke});var s=a(34706),i=a(72555),l=a(42152),n=a(55783),r=a(26836),d=a(99495),o=a(74003),c=a(15152),u=a(14561),v=a(99294),p=a(70340),h=a(62508),m=a(13618),g=a(10161);const b=(0,v.cn)("basic-node-viewer"),x=e=>{let t,{node:a,additionalNodesProps:i,className:l}=e;if(null!==i&&void 0!==i&&i.getNodeRef){const e=i.getNodeRef(a);t=e?(0,p.i1)(e):void 0}else if(a.NodeId){const e=(0,p.wq)(a.NodeId);t=(0,p.i1)(e)}return(0,g.jsx)("div",{className:b(null,l),children:a?(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)("div",{className:b("title"),children:"Node"}),(0,g.jsx)(h.A,{status:a.SystemState,name:a.Host}),t&&(0,g.jsx)("a",{rel:"noopener noreferrer",className:b("link",{external:!0}),href:t,target:"_blank",children:(0,g.jsx)(u.J,{data:c.Z})}),(0,g.jsxs)("div",{className:b("id"),children:[(0,g.jsx)("label",{className:b("label"),children:"NodeID"}),(0,g.jsx)("label",{children:a.NodeId})]}),a.DC&&(0,g.jsx)(m.$,{tags:[a.DC]}),a.Roles&&(0,g.jsx)(m.$,{tags:a.Roles,tagsType:"blue"})]}):(0,g.jsx)("div",{className:"error",children:"no data"})})};var j=a(15327),k=a(27810),N=a(43862);const y=(0,v.cn)("ydb-pool-usage"),f=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},I=e=>{let{data:t={}}=e;const{Threads:a,Name:s="Unknown",Usage:i=0}=t,l=i&&a,n=Math.floor(100*i),r=n>100?100:n;return(0,g.jsxs)("div",{className:y(),children:[(0,g.jsxs)("div",{className:y("info"),children:[(0,g.jsx)("div",{className:y("pool-name"),children:s}),l&&(0,g.jsxs)("div",{className:y("value"),children:[(0,g.jsxs)("div",{className:y("percents"),children:[n<1?"<1":n,"%"]}),(0,g.jsxs)("div",{className:y("threads"),children:["(\xd7",a,")"]})]})]}),(0,g.jsx)("div",{className:y("visual"),children:(0,g.jsx)("div",{className:y("usage-line",{type:f(r)}),style:{width:`${r}%`}})})]})};var w=a(20760);const D=(0,v.cn)("full-node-viewer"),S=e=>{var t,a,s,i;let{node:l,className:n}=e;const r=null===l||void 0===l||null===(t=l.Endpoints)||void 0===t?void 0:t.map((e=>{let{Name:t,Address:a}=e;return{label:t,value:a}})),d=[];null!==l&&void 0!==l&&null!==(a=l.Tenants)&&void 0!==a&&a.length&&d.push({label:"Database",value:l.Tenants[0]}),d.push({label:"Version",value:null===l||void 0===l?void 0:l.Version},{label:"Uptime",value:null===l||void 0===l?void 0:l.Uptime},{label:"DC",value:(null===l||void 0===l?void 0:l.DataCenterDescription)||(null===l||void 0===l?void 0:l.DC)},{label:"Rack",value:null===l||void 0===l?void 0:l.Rack});const o=null===l||void 0===l||null===(s=l.LoadAveragePercents)||void 0===s?void 0:s.map(((e,t)=>({label:k.x5[t],value:(0,g.jsx)(w.y,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,g.jsx)("div",{className:`${D()} ${n}`,children:l?(0,g.jsxs)("div",{className:D("common-info"),children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:D("section-title"),children:"Pools"}),(0,g.jsx)("div",{className:D("section",{pools:!0}),children:null===l||void 0===l||null===(i=l.PoolStats)||void 0===i?void 0:i.map(((e,t)=>(0,g.jsx)(I,{data:e},t)))})]}),r&&r.length&&(0,g.jsx)(N._,{title:"Endpoints",className:D("section"),info:r}),(0,g.jsx)(N._,{title:"Common info",className:D("section"),info:d}),(0,g.jsx)(N._,{title:"Load average",className:D("section",{average:!0}),info:o})]}):(0,g.jsx)("div",{className:"error",children:"no data"})})};var T=a(66498),P=a(46878),z=a(39202),V=a(85709),A=a(78759),C=a(96183);const E=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,C.Ns)(a)},q=A.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:E(e)}}catch(i){return{error:i}}},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(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"});var R=a(55842),L=a(58095),_=a(28265),O=a(75544),U=a(55102),F=a.n(U),J=a(67386),Z=a(38980),G=a(26612);const $=(0,J.P1)((e=>e),(e=>q.endpoints.getNodeStructure.select({nodeId:e}))),H=(0,J.P1)((e=>e),((e,t)=>$(t)),((e,t)=>t(e).data)),M=(0,J.P1)(((e,t)=>Number(t)),((e,t)=>H(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 i;const l=null===(i=a.VDisks)||void 0===i?void 0:i.filter((t=>t.NodeId===e)).map(G.se);null===l||void 0===l||l.forEach((a=>{var i;const l=(0,Z.a2)(a.VDiskId),n=null===(i=a.PDisk)||void 0===i?void 0:i.PDiskId;s[String(n)]||(s[String(n)]={vDisks:{},...a.PDisk}),s[String(n)].vDisks[l]={...a,PDiskId:n,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,i=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:i},e}),{})}));var K=a(29254),Q=a(71624),B=a(72616),Y=a(16318),X=a(81778),W=a(50377),ee=a(73287),te=a(49263),ae=a(77468),se=a(38392),ie=a(25665),le=a(37711);const ne=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),re=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"}'),de=(0,le.wZ)("ydb-node-page",{en:ne,ru:re}),oe=(0,v.cn)("kv-node-structure");function ce(e){let{label:t,value:a,className:s}=e;return(0,g.jsxs)("span",{className:oe("pdisk-title-item",s),children:[t&&(0,g.jsxs)("span",{className:oe("pdisk-title-item-label"),children:[t,":"]}),(0,g.jsx)("span",{className:oe("pdisk-title-item-value"),children:a})]})}const ue=(0,v.cn)("kv-node-structure");var ve;!function(e){e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info"}(ve||(ve={}));const pe={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function he(e){let{pDiskId:t,selectedVdiskId:a,nodeId:s}=e;return[{name:ve.slotId,header:pe[ve.slotId],width:100,render:e=>{let{row:i}=e;const l=i.VDiskSlotId;let n=null;return(0,ie.D)(s)&&(0,ie.D)(t)&&(0,ie.D)(l)&&(n=(0,p.yf)({nodeId:s,pDiskId:t,vDiskSlotId:l})),(0,g.jsxs)("div",{className:ue("vdisk-id",{selected:i.id===a}),children:[(0,g.jsx)("span",{children:l}),n&&(0,g.jsx)(B.z,{size:"s",className:ue("external-button",{hidden:!0}),href:n,target:"_blank",title:de("vdisk.developer-ui-button-title"),children:(0,g.jsx)(u.J,{data:c.Z})})]})},align:Q.ZP.LEFT},{name:ve.VDiskState,header:pe[ve.VDiskState],width:70,render:e=>{let{row:t}=e;return(0,g.jsx)(ee.J,{status:t.VDiskState===se.H.OK?ae.K.Green:ae.K.Red})},sortAccessor:e=>e.VDiskState===se.H.OK?1:0,align:Q.ZP.CENTER},{name:ve.Size,header:pe[ve.Size],width:170,render:e=>{let{row:t}=e;return(0,g.jsx)(w.y,{value:t.AllocatedSize,capacity:Number(t.AllocatedSize)+Number(t.AvailableSize),formatValues:Z.q3,colorizeProgress:!0})},sortAccessor:e=>Number(e.AllocatedSize),align:Q.ZP.CENTER},{name:ve.Info,header:pe[ve.Info],width:70,render:e=>{let{row:t}=e;return(0,g.jsx)(Y.J,{placement:["right"],content:(0,g.jsx)(te.K,{data:t,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:ue("vdisk-details"),children:(0,g.jsx)(B.z,{view:"flat-secondary",className:ue("vdisk-details-button",{selected:t.id===a}),children:(0,g.jsx)(u.J,{data:K.Z,size:18})})})},sortable:!1}]}function me(e){let{id:t,data:a,selectedVdiskId:i,nodeId:l,unfolded:n}=e;const[r,d]=s.useState(null!==n&&void 0!==n&&n),{TotalSize:o=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:p,vDisks:h}=a,m=Number(o),b=Number(c);return(0,g.jsxs)("div",{className:ue("pdisk"),id:t,children:[(0,g.jsxs)("div",{className:ue("pdisk-header"),children:[(0,g.jsxs)("div",{className:ue("pdisk-title-wrapper"),children:[(0,g.jsx)(ee.J,{status:u}),(0,g.jsx)(ce,{label:"PDiskID",value:v,className:ue("pdisk-title-id")}),(0,g.jsx)(ce,{value:p,className:ue("pdisk-title-type")}),(0,g.jsx)(w.y,{value:m-b,capacity:m,formatValues:Z.q3,colorizeProgress:!0,className:ue("pdisk-title-size")}),(0,g.jsx)(ce,{label:"VDisks",value:h.length})]}),(0,g.jsx)(B.z,{onClick:r?()=>{d(!1)}:()=>{d(!0)},view:"flat-secondary",children:(0,g.jsx)(X.F,{direction:r?"top":"bottom"})})]}),r&&(F()(a)?(0,g.jsx)("div",{children:"No information about PDisk"}):(0,g.jsxs)("div",{children:[(0,g.jsx)(W.P,{pDisk:a,nodeId:l,className:ue("pdisk-details"),withPDiskPageLink:!0}),(0,g.jsxs)("div",{className:ue("vdisks-container"),children:[(0,g.jsx)("div",{className:ue("vdisks-header"),children:"VDisks"}),(0,g.jsx)(Q.ZP,{theme:"yandex-cloud",data:h,columns:he({nodeId:l,pDiskId:v,selectedVdiskId:i}),settings:{...k.LE,dynamicRender:!1},rowClassName:e=>e.id===i?ue("selected-vdisk"):""})]})]}))]})}const ge=(0,v.cn)("kv-node-structure");function be(e){let{type:t,id:a}=e;return`${t}-${a}`}const xe=function(e){let{nodeId:t,className:a}=e;const i=(0,R.ix)((e=>M(e,t))),[l]=(0,R.Rj)(),{currentData:n,isFetching:r,error:o}=q.useGetNodeStructureQuery({nodeId:t},{pollingInterval:l}),c=r&&void 0===n,[{pdiskId:u,vdiskId:v}]=(0,d.useQueryParams)({pdiskId:d.StringParam,vdiskId:d.StringParam}),p=s.useRef(null),h=s.useRef(!1);return s.useEffect((()=>{if(!F()(i)&&!h.current&&p.current&&u){const t=document.getElementById(be({type:"pdisk",id:u}));let a=0;if(v){var e;const t=null===(e=i[u])||void 0===e?void 0:e.vDisks,s=null===t||void 0===t?void 0:t.find((e=>e.id===v)),l=s?document.querySelector(".data-table"):void 0,n=(null===s||void 0===s?void 0:s.order)||0;l&&(a+=l.offsetTop+40*n)}t&&(p.current.scrollTo({behavior:"smooth",top:a||t.offsetTop}),h.current=!0)}}),[i,u,v]),(0,g.jsxs)("div",{className:ge(),ref:p,children:[o?(0,g.jsx)(j.V,{error:o,className:ge("error")}):null,(0,g.jsx)("div",{className:a,children:c?(0,g.jsx)(T.a,{size:"m"}):o&&!n?null:(()=>{const e=Object.keys(i);return e.length>0?e.map((e=>(0,g.jsx)(me,{data:i[e],id:be({type:"pdisk",id:e}),unfolded:u===e,selectedVdiskId:v,nodeId:t},e))):"There is no information about node structure."})()})]})},je=(0,v.cn)("node"),ke="Storage";function Ne(e){var t,a;const c=s.useRef(null),u=(0,R.zL)(),v=null!==(t=(0,n.$B)(P.ZP.node))&&void 0!==t?t:Object.create(null),{id:p,activeTab:h}=v.params,[{database:m}]=(0,d.useQueryParams)(O.v3),[b]=(0,R.Rj)(),{currentData:k,isFetching:N,error:y}=q.useGetNodeInfoQuery({nodeId:p},{pollingInterval:b}),f=N&&void 0===k,I=k,w=(0,z.rU)(),D=(0,z.X_)(),{activeTabVerified:A,nodeTabs:C}=s.useMemo((()=>{var e;let t=(null===I||void 0===I||null===(e=I.Roles)||void 0===e?void 0:e.find((e=>e===ke)))?O.ZJ:O.ZJ.filter((e=>e.id!==O.P_));D&&(t=t.filter((e=>e.id!==O.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,I,D]),E=(null===I||void 0===I||null===(a=I.Tenants)||void 0===a?void 0:a[0])||(null===m||void 0===m?void 0:m.toString());let U;if(I){var F;const e=!(null!==I&&void 0!==I&&null!==(F=I.Tenants)&&void 0!==F&&F[0]);U=e?"Storage":"Compute"}s.useEffect((()=>{u((0,V.J)("node",{tenantName:E,nodeRole:U,nodeId:p}))}),[u,E,p,U]);const J=()=>{switch(A.id){case O.P_:return(0,g.jsx)("div",{className:je("storage"),ref:c,children:(0,g.jsx)(L.V,{nodeId:p,parentRef:c})});case O.IA:return(0,g.jsx)(_.J,{nodeId:p,database:E,className:je("node-page-wrapper")});case O.pV:return(0,g.jsx)(xe,{className:je("node-page-wrapper"),nodeId:p});case O.mD:return(0,g.jsx)(S,{node:I,className:je("overview-wrapper")});default:return!1}};return f||!w?(0,g.jsx)(T.a,{size:"l"}):I?(0,g.jsxs)("div",{className:je(null,e.className),children:[(0,g.jsx)(l.ql,{titleTemplate:`%s \u2014 ${I.Host} \u2014 YDB Monitoring`,defaultTitle:`${I.Host} \u2014 YDB Monitoring`,children:(0,g.jsx)("title",{children:A.title})}),(0,g.jsx)(x,{node:I,additionalNodesProps:e.additionalNodesProps,className:je("header")}),y?(0,g.jsx)(j.V,{error:y,className:je("error")}):null,(0,g.jsxs)("div",{className:je("tabs"),children:[(0,g.jsx)(i.m,{size:"l",items:C,activeTab:A.id,wrapTo:(e,t)=>{let{id:a}=e;return(0,g.jsx)(r.rU,{to:(0,O.a3)(p,{database:E},a),className:je("tab"),children:t},a)},allowNotSelected:!0}),(0,g.jsx)(o.q,{})]}),(0,g.jsx)("div",{className:je("content"),children:J()})]}):y?(0,g.jsx)(j.V,{error:y}):(0,g.jsx)("div",{className:"error",children:"no node data"})}},72427:(e,t,a)=>{a.d(t,{O:()=>D});var s=a(42568),i=a(23795),l=a(14561),n=a(55982),r=a(62508),d=a(67653),o=a(74116),c=a(22877),u=a(76217),v=a(59907),p=a(65e3),h=a(6215),m=a(9038),g=a(27810),b=a(38980),x=a(55842),j=a(75544),k=a(37711);const N=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"}'),y=(0,k.wZ)("ydb-tablets",{en:N});var f=a(10161);function I(e){let{database:t}=e;return[{name:"Type",width:150,get header(){return y("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,f.jsxs)("span",{children:[t.Type," ",a?(0,f.jsx)(i.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return y("Tablet")},render:e=>{let{row:a}=e;return a.TabletId?(0,f.jsx)(u.P,{tabletId:a.TabletId,database:t}):g.jX}},{name:"State",get header(){return y("State")},render:e=>{let{row:t}=e;return(0,f.jsx)(v.f,{state:t.State})}},{name:"NodeId",get header(){return y("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,j.a3)(t.NodeId);return(0,f.jsx)(d.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return y("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,f.jsx)(r.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,f.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return y("Generation")},align:"right"},{name:"Uptime",get header(){return y("Uptime")},render:e=>{let{row:t}=e;return(0,b.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,f.jsx)(w,{...t})}}]}function w(e){const t=e.State===m.g.Stopped,a=(0,x.ix)(p.VH),[i]=h._.useKillTabletMutation(),r=e.TabletId;return r?(0,f.jsx)(n.U,{buttonView:"outlined",buttonTitle:y("dialog.kill-header"),dialogHeader:y("dialog.kill-header"),dialogText:y("dialog.kill-text"),onConfirmAction:()=>i({id:r}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:y(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,f.jsx)(l.J,{data:s.Z})}):null}function D(e){let{database:t,tablets:a,className:s,loading:i}=e;return i?(0,f.jsx)(c.h,{}):(0,f.jsx)(o.G,{wrapperClassName:s,columns:I({database:t}),data:a,settings:g.LE,emptyDataMessage:y("noTabletsData")})}},28265:(e,t,a)=>{a.d(t,{J:()=>j});var s=a(64485),i=a(15327),l=a(67386),n=a(74647),r=a.n(n),d=a(78759),o=a(4969);const c=d.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"}),u=(0,l.P1)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:l.PP,argsMemoizeOptions:{equalityCheck:r()}}),v=(0,l.P1)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),p=(0,l.P1)(((e,t)=>v(e,t)),(e=>(0,o.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 h=a(99294),m=a(55842),g=a(72427),b=a(10161);const x=(0,h.cn)("tablets");function j(e){let{nodeId:t,path:a,database:l,className:n}=e;const[r]=(0,m.Rj)();let d={};const o=void 0===t?void 0:String(t);void 0!==o?d={nodeId:o,database:l}:a&&(d={path:a,database:l});const{currentData:u,isFetching:v,error:h}=c.useGetTabletsInfoQuery(0===Object.keys(d).length?s.CN:d,{pollingInterval:r}),j=v&&void 0===u,k=(0,m.ix)((e=>p(e,d)));return(0,b.jsxs)("div",{className:x(null,n),children:[h?(0,b.jsx)(i.V,{error:h}):null,u||j?(0,b.jsx)(g.O,{tablets:k,database:l,loading:j}):null]})}},6215:(e,t,a)=>{a.d(t,{_:()=>i});var s=a(96183);const i=a(78759).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:i}=e,{signal:l}=t;try{const[e,t,n]=await Promise.all([window.api.getTablet({id:a,database:i},{signal:l}),window.api.getTabletHistory({id:a,database:i},{signal:l}),window.api.getNodesList({signal:l})]),r=(0,s.Xs)(n),d=Object.keys(t).reduce(((e,a)=>{var s;const i=null===(s=t[a])||void 0===s?void 0:s.TabletStateInfo;if(i&&i.length){const t=i.find((e=>e.Leader))||i[0],{ChangeTime:s,Generation:l,State:n,Leader:d,FollowerId:o}=t,c=r&&a?r.get(Number(a)):void 0;"Dead"!==n&&e.push({nodeId:a,generation:l,changeTime:s,state:n,leader:d,followerId:o,fqdn:c})}return e}),[]),{TabletStateInfo:o=[]}=e,[c={}]=o,{TabletId:u}=c;return{data:{id:u,data:c,history:d}}}catch(n){return{error:n}}},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:i}=a;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${i}`}}catch(i){return{error:i}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:a,hiveId:s}=e,{signal:i}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:s},{signal:i})}}catch(l){return{error:l}}},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"})},42568:(e,t,a)=>{a.d(t,{Z:()=>i});var s=a(34706);const i=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 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/5986.f8e39c8a.chunk.js b/ydb/core/viewer/monitoring/static/js/5986.f8e39c8a.chunk.js new file mode 100644 index 0000000000..003889dfd1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5986.f8e39c8a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5986],{55982:(e,t,a)=>{a.d(t,{U:()=>d});var n=a(34706),r=a(72616),s=a(16318),o=a(47945),l=a(51403),i=a(10161);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:u,dialogText:c,retryButtonText:p,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:g,buttonClassName:b,withPopover:y=!1,popoverContent:v,popoverPlacement:x="right",popoverDisabled:f=!0}=e;const[j,C]=n.useState(!1),[w,N]=n.useState(!1),[T,S]=n.useState(!1),I=()=>(0,i.jsx)(r.z,{onClick:()=>C(!0),view:m,disabled:h,loading:!h&&w,className:b,title:g,children:t});return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(o.g,{visible:j,header:u,text:c,withRetry:T,retryButtonText:p,onConfirm:async e=>{N(!0),await a(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===d||void 0===d?void 0:d())}finally{N(!1)}},onConfirmActionError:e=>{S((0,l.q)(e)),N(!1)},onClose:()=>{C(!1)}}),y?(0,i.jsx)(s.J,{content:v,placement:x,disabled:f,children:I()}):I()]})}},47945:(e,t,a)=>{a.d(t,{g:()=>y});var n=a(34706),r=a(3948),s=a(15268),o=a(19912),l=a(68585),i=a(14561),d=a(58231),u=a(99294),c=a(37711);const p=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:p});var m=a(10161);const g=(0,u.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(d.I,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function y(e){let{visible:t,header:a,text:d,withRetry:u,retryButtonText:c,withCheckBox:p,onClose:y,onConfirm:v,onConfirmActionSuccess:x,onConfirmActionError:f}=e;const[j,C]=n.useState(!1),[w,N]=n.useState(),[T,S]=n.useState(!1),I=async e=>(C(!0),v(e).then((()=>{x(),y()})).catch((e=>{f(e),N(e)})).finally((()=>{C(!1)})));return(0,m.jsx)(l.V,{open:t,hasCloseButton:!1,className:g(),size:"s",onClose:y,onTransitionExited:()=>{N(void 0),S(!1)},children:w?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(l.V.Header,{caption:a}),(0,m.jsx)(l.V.Body,{className:g("body"),children:(0,m.jsxs)("div",{className:g("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:g("error-icon"),children:(0,m.jsx)(r.Z,{width:"24",height:"22"})}),b(w)]})}),(0,m.jsx)(l.V.Footer,{loading:!1,preset:"default",textButtonApply:u?c||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:y})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(l.V.Header,{caption:a}),(0,m.jsxs)(l.V.Body,{className:g("body"),children:[(0,m.jsxs)("div",{className:g("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:g("warning-icon"),children:(0,m.jsx)(i.J,{data:s.Z,size:24})}),d]}),p?(0,m.jsx)(o.X,{checked:T,onUpdate:S,children:h("checkbox-text")}):null]}),(0,m.jsx)(l.V.Footer,{loading:j,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:p&&!T},onClickButtonCancel:y,onClickButtonApply:()=>I()})]})})}},51403:(e,t,a)=>{a.d(t,{q:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},29331:(e,t,a)=>{a.d(t,{Q:()=>o});var n=a(99294),r=a(10161);const s=(0,n.cn)("ydb-diagnostic-card");function o(e){let{children:t,className:a,active:n,size:o="m",interactive:l=!0}=e;return(0,r.jsx)("div",{className:s({active:n,size:o,interactive:l},a),children:t})}},34973:(e,t,a)=>{a.d(t,{C:()=>n.C});var n=a(14325)},66498:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(41989)},52154:(e,t,a)=>{a.d(t,{T:()=>o});var n=a(67661),r=a(32341),s=a(10161);const o=e=>{let{value:t,onChange:a,className:o}=e;return(0,s.jsxs)(n.E,{value:t,onUpdate:a,className:o,children:[(0,s.jsx)(n.E.Option,{value:r.pu.ALL,children:r.pu.ALL}),(0,s.jsx)(n.E.Option,{value:r.pu.PROBLEMS,children:r.pu.PROBLEMS})]})}},17784:(e,t,a)=>{a.d(t,{o:()=>n.o});var n=a(76485)},76217:(e,t,a)=>{a.d(t,{P:()=>b});var n=a(83797),r=a(2194),s=a(46878),o=a(65e3),l=a(70340),i=a(55842),d=a(61168),u=a(62508),c=a(90808),p=a(37711);const h=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),m=(0,p.wZ)("ydb-tablet-name-wrapper",{en:h});var g=a(10161);function b(e){let{tabletId:t,database:a}=e;const p=(0,i.ix)(o.VH),h=(0,s.fK)(t,{database:a});return(0,g.jsx)(d.l,{disabled:!p,delayClosing:200,content:(0,g.jsx)(n.w,{responsive:!0,children:(0,g.jsx)(n.w.Item,{name:m("field_links"),children:(0,g.jsx)(c.j,{title:m("context_developer-ui"),url:(0,l.wz)(t)})})}),placement:["top","bottom"],behavior:r.x.Immediate,children:(0,g.jsx)(u.A,{name:t.toString(),path:h,hasClipboardButton:!0,showStatus:!1})})}},59907:(e,t,a)=>{a.d(t,{f:()=>o});var n=a(2634),r=a(55973),s=a(10161);function o(e){let{state:t}=e;return(0,s.jsx)(n._,{theme:(0,r.KR)(t),children:t})}},73759:(e,t,a)=>{a.d(t,{m:()=>v});var n=a(34706),r=a(53366),s=a(23795),o=a(26390),l=a(34973),i=a(52154),d=a(17784),u=a(56065),c=a(39202),p=a(10226),h=a(35283),m=a(54162),g=a(81991),b=a(24837),y=a(10161);function v(e){let{withGroupBySelect:t,groupByParams:a=[],columnsToSelect:v,handleSelectedColumnsUpdate:x,entitiesCountCurrent:f,entitiesCountTotal:j,entitiesLoading:C}=e;const{searchValue:w,uptimeFilter:N,groupByParam:T,handleSearchQueryChange:S,handleUptimeFilterChange:I,handleGroupByParamChange:F}=(0,b.u)(a),{problemFilter:P,handleProblemFilterChange:A}=(0,p.t)(),B=(0,c.Zl)(),_=(0,h.yR)(a,B);return(0,y.jsxs)(n.Fragment,{children:[(0,y.jsx)(d.o,{onChange:S,placeholder:(0,m.Z)("controls_search-placeholder"),width:238,value:w}),B&&t?null:(0,y.jsx)(i.T,{value:P,onChange:A}),t?null:(0,y.jsx)(u.X,{value:N,onChange:I}),(0,y.jsx)(r.N,{popupWidth:200,items:v,showStatus:!0,onUpdate:x,sortable:!1}),t?(0,y.jsxs)(n.Fragment,{children:[(0,y.jsx)(s.x,{variant:"body-2",children:(0,m.Z)("controls_group-by-placeholder")}),(0,y.jsx)(o.P,{hasClear:!0,placeholder:"-",width:150,defaultValue:T?[T]:void 0,onUpdate:e=>{F(e[0])},options:_,className:(0,g.b)("group-by-select"),popupClassName:(0,g.b)("group-by-popup")})]}):null,(0,y.jsx)(l.C,{current:f,total:j,label:(0,m.Z)("nodes"),loading:C})]})}},78294:(e,t,a)=>{a.d(t,{G:()=>F});var n=a(27810),r=a(55842),s=a(34706),o=a(20560),l=a(71037),i=a(93225),d=a(15327),u=a(91538),c=a(74116),p=a(74640),h=a(60918),m=a(88366),g=a(82114),b=a(10226),y=a(96183),v=a(73759),x=a(97485),f=a(92256),j=a(35283);var C=a(54162),w=a(81991),N=a(24837),T=(a(62545),a(10161));const S=e=>{let{path:t,database:a,additionalNodesProps:S={}}=e;const{searchValue:I,uptimeFilter:F}=(0,N.u)(void 0),{problemFilter:P}=(0,b.t)(),[A]=(0,r.Rj)(),{columnsToShow:B,columnsToSelect:_,setColumns:k}=function(e){const t=s.useMemo((()=>(0,f.g)(e)),[e]);return(0,x.N)(t,j.pM,h.Pr,j.P3,j.nn)}({getNodeRef:S.getNodeRef,database:a}),{currentData:R,isLoading:G,error:U}=m.k.useGetNodesQuery({path:t,database:a},{pollingInterval:A}),[V,L]=s.useState({sortValue:"NodeId",sortOrder:o.zE}),[E,D]=(0,r.sC)(V,(e=>{L(e)})),q=s.useMemo((()=>(0,g.A)(null===R||void 0===R?void 0:R.Nodes,{searchValue:I,uptimeFilter:F,problemFilter:P})),[R,I,F,P]),Z=(null===R||void 0===R?void 0:R.TotalNodes)||0;return(0,i.u)(U)?(0,T.jsx)(l.J,{}):(0,T.jsxs)(p.l,{children:[(0,T.jsx)(p.l.Controls,{children:(0,T.jsx)(v.m,{columnsToSelect:_,handleSelectedColumnsUpdate:k,entitiesCountCurrent:q.length,entitiesCountTotal:Z,entitiesLoading:G,groupByParams:void 0})}),U?(0,T.jsx)(d.V,{error:U}):null,(0,T.jsx)(p.l.Table,{loading:G,children:R?0!==q.length||"All"===P&&F===y.Uu.All?(0,T.jsx)(c.G,{columnsWidthLSKey:h.t5,data:q||[],columns:B,settings:n.LE,sortOrder:E,onSort:D,emptyDataMessage:(0,C.Z)("empty.default"),rowClassName:w.U}):(0,T.jsx)(u.Q,{name:"thumbsUp",width:"200"}):null})]})};var I=a(97379);const F=e=>{let{parentRef:t,...a}=e;const[s]=(0,r.yu)(n.Qy);return s?(0,T.jsx)(I.m,{parentRef:t,...a}):(0,T.jsx)(S,{...a})}},97379:(e,t,a)=>{a.d(t,{m:()=>A});var n=a(34706),r=a(15327),s=a(48653),o=a(74640),l=a(60918),i=a(39202),d=a(88366),u=a(10226),c=a(55842),p=a(97485),h=a(96183),m=a(78326),g=a(18258),b=a(73759),y=a(91538),v=a(25747),x=a(16124),f=a(89991),j=a(83023);const C=async e=>{const{type:t="any",storage:a=!1,tablets:n=!0,limit:r,offset:s,sortParams:o,filters:i,columnsIds:d}=e,{sortOrder:u,columnId:c}=null!==o&&void 0!==o?o:{},{path:p,database:m,searchValue:g,problemFilter:b,uptimeFilter:y,filterGroup:v,filterGroupBy:C}=null!==i&&void 0!==i?i:{},w=(0,l.Gd)(c),N=w?(0,f.A)(w,u):void 0,T=(0,j.w)(d,l.WN),S=await window.api.getNodes({type:t,storage:a,tablets:n,limit:r,offset:s,sort:N,path:p,database:m,filter:g,problems_only:(0,h.eV)(b),uptime:(0,h.RW)(y),filter_group:v,filter_group_by:C,fieldsRequired:T}),I=(0,x.n)(S);return{data:I.Nodes||[],found:I.FoundNodes||0,total:I.TotalNodes||0}};var w=a(54162),N=a(81991),T=a(10161);function S(e){let{path:t,database:a,searchValue:r,problemFilter:s,uptimeFilter:o,filterGroup:i,filterGroupBy:d,columns:u,parentRef:c,renderControls:p,initialEntitiesCount:m}=e;const g=n.useMemo((()=>({path:t,database:a,searchValue:r,problemFilter:s,uptimeFilter:o,filterGroup:i,filterGroupBy:d})),[t,a,r,s,o,i,d]);return(0,T.jsx)(v.WQ,{columnsWidthLSKey:l.t5,parentRef:c,columns:u,fetchData:C,limit:50,initialEntitiesCount:m,renderControls:p,renderErrorMessage:N.i,renderEmptyDataMessage:()=>"All"!==s||o!==h.Uu.All?(0,T.jsx)(y.Q,{name:"thumbsUp",width:"200"}):(0,w.Z)("empty.default"),getRowClassName:N.U,filters:g,tableName:"nodes"})}var I=a(92256),F=a(35283),P=a(24837);a(62545);function A(e){let{path:t,database:a,parentRef:r,additionalNodesProps:o,columns:l=(0,I.g)({database:a,getNodeRef:null===o||void 0===o?void 0:o.getNodeRef}),defaultColumnsIds:d=F.P3,requiredColumnsIds:c=F.nn,selectedColumnsKey:p=F.pM,groupByParams:m=F.VP}=e;const{uptimeFilter:g,groupByParam:b,handleUptimeFilterChange:y}=(0,P.u)(m),{problemFilter:v,handleProblemFilterChange:x}=(0,u.t)(),f=(0,i.rU)(),j=(0,i.th)();n.useEffect((()=>{!j||"All"===v&&g===h.Uu.All||(x("All"),y(h.Uu.All))}),[x,y,v,g,j]);return(0,T.jsx)(s.s,{loading:!f,children:j&&b?(0,T.jsx)(_,{path:t,database:a,parentRef:r,columns:l,defaultColumnsIds:d,requiredColumnsIds:c,selectedColumnsKey:p,groupByParams:m}):(0,T.jsx)(B,{path:t,database:a,parentRef:r,columns:l,defaultColumnsIds:d,requiredColumnsIds:c,selectedColumnsKey:p,groupByParams:m})})}function B(e){let{path:t,database:a,parentRef:n,columns:r,defaultColumnsIds:s,requiredColumnsIds:o,selectedColumnsKey:d,groupByParams:c}=e;const{searchValue:h,uptimeFilter:m}=(0,P.u)(c),{problemFilter:g}=(0,u.t)(),y=(0,i.th)(),{columnsToShow:v,columnsToSelect:x,setColumns:f}=(0,p.N)(r,d,l.Pr,s,o);return(0,T.jsx)(S,{path:t,database:a,searchValue:h,problemFilter:g,uptimeFilter:m,columns:v,parentRef:n,renderControls:e=>{let{totalEntities:t,foundEntities:a,inited:n}=e;return(0,T.jsx)(b.m,{withGroupBySelect:y,groupByParams:c,columnsToSelect:x,handleSelectedColumnsUpdate:f,entitiesCountCurrent:a,entitiesCountTotal:t,entitiesLoading:!n})}})}function _(e){let{path:t,database:a,parentRef:n,columns:s,defaultColumnsIds:i,requiredColumnsIds:u,selectedColumnsKey:y,groupByParams:v}=e;const{searchValue:x,groupByParam:f}=(0,P.u)(v),[j]=(0,c.Rj)(),{columnsToShow:C,columnsToSelect:I,setColumns:F}=(0,p.N)(s,y,l.Pr,i,u),{currentData:A,isFetching:B,error:_}=d.k.useGetNodesQuery({path:t,database:a,filter:x,group:f,limit:0},{pollingInterval:j}),k=void 0===A&&B,{NodeGroups:R,FoundNodes:G=0,TotalNodes:U=0}=A||{},{expandedGroups:V,setIsGroupExpanded:L}=(0,g.r)(R);return(0,T.jsxs)(o.l,{children:[(0,T.jsx)(o.l.Controls,{children:(0,T.jsx)(b.m,{withGroupBySelect:!0,groupByParams:v,columnsToSelect:I,handleSelectedColumnsUpdate:F,entitiesCountCurrent:G,entitiesCountTotal:U,entitiesLoading:k})}),_?(0,T.jsx)(r.V,{error:_}):null,(0,T.jsx)(o.l.Table,{loading:k,className:(0,N.b)("groups-wrapper"),children:null!==R&&void 0!==R&&R.length?R.map((e=>{let{name:r,count:s}=e;const o=V[r];return(0,T.jsx)(m.G,{title:r,count:s,entityName:(0,w.Z)("nodes"),expanded:o,onIsExpandedChange:L,children:(0,T.jsx)(S,{path:t,database:a,searchValue:x,problemFilter:"All",uptimeFilter:h.Uu.All,filterGroup:r,filterGroupBy:f,initialEntitiesCount:s,columns:C,parentRef:n})},r)})):(0,w.Z)("no-nodes-groups")})]})}},92256:(e,t,a)=>{a.d(t,{g:()=>s});var n=a(2387),r=a(60918);function s(e){return[(0,n.A6)(),(0,n.Up)(e),(0,n.iJ)(),(0,n.EF)(),(0,n.KO)(),(0,n.Zi)(),(0,n.VQ)(),(0,n.rh)(),(0,n.n2)(),(0,n.o9)(),(0,n.eb)(),(0,n.gs)(),(0,n.TX)(e)].map((e=>({...e,sortable:(0,r.Ke)(e.name)})))}},35283:(e,t,a)=>{a.d(t,{P3:()=>s,VP:()=>l,WG:()=>u,nn:()=>o,pM:()=>r,yR:()=>d});var n=a(60918);const r="nodesTableSelectedColumns",s=["NodeId","Host","DC","Rack","Version","Uptime","Memory","Pools","LoadAverage","Tablets"],o=["NodeId"],l=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function i(e,t){return t?e:e.filter((e=>"SystemState"!==e))}function d(e,t){return i(e,t).map((e=>({value:e,content:(0,n.ws)(e)})))}function u(e,t,a){return i(t,a).find((t=>t===e))}},54162:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(37711);const r=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:"}'),s=(0,n.wZ)("ydb-nodes",{en:r})},81991:(e,t,a)=>{a.d(t,{U:()=>d,b:()=>i,i:()=>u});var n=a(71037),r=a(15327),s=a(99294),o=a(96183),l=a(10161);const i=(0,s.cn)("ydb-nodes"),d=e=>i("node",{unavailable:(0,o.TA)(e)}),u=e=>e&&403===e.status?(0,l.jsx)(n.J,{position:"left"}):(0,l.jsx)(r.V,{error:e})},24837:(e,t,a)=>{a.d(t,{u:()=>l});var n=a(99495),r=a(39202),s=a(96183),o=a(35283);function l(e){var t;const[a,l]=(0,n.useQueryParams)({uptimeFilter:n.StringParam,search:n.StringParam,nodesGroupBy:n.StringParam}),i=s.U8.parse(a.uptimeFilter),d=null!==(t=a.search)&&void 0!==t?t:"",u=(0,r.Zl)();return{uptimeFilter:i,searchValue:d,groupByParam:(0,o.WG)(a.nodesGroupBy,null!==e&&void 0!==e?e:[],u),handleSearchQueryChange:e=>{l({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{l({uptimeFilter:e},"replaceIn")},handleGroupByParamChange:e=>{l({nodesGroupBy:e},"replaceIn")}}}},72427:(e,t,a)=>{a.d(t,{O:()=>S});var n=a(42568),r=a(23795),s=a(14561),o=a(55982),l=a(62508),i=a(67653),d=a(74116),u=a(22877),c=a(76217),p=a(59907),h=a(65e3),m=a(6215),g=a(9038),b=a(27810),y=a(38980),v=a(55842),x=a(75544),f=a(37711);const j=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"}'),C=(0,f.wZ)("ydb-tablets",{en:j});var w=a(10161);function N(e){let{database:t}=e;return[{name:"Type",width:150,get header(){return C("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,w.jsxs)("span",{children:[t.Type," ",a?(0,w.jsx)(r.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return C("Tablet")},render:e=>{let{row:a}=e;return a.TabletId?(0,w.jsx)(c.P,{tabletId:a.TabletId,database:t}):b.jX}},{name:"State",get header(){return C("State")},render:e=>{let{row:t}=e;return(0,w.jsx)(p.f,{state:t.State})}},{name:"NodeId",get header(){return C("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,x.a3)(t.NodeId);return(0,w.jsx)(i.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return C("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,w.jsx)(l.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,w.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return C("Generation")},align:"right"},{name:"Uptime",get header(){return C("Uptime")},render:e=>{let{row:t}=e;return(0,y.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,w.jsx)(T,{...t})}}]}function T(e){const t=e.State===g.g.Stopped,a=(0,v.ix)(h.VH),[r]=m._.useKillTabletMutation(),l=e.TabletId;return l?(0,w.jsx)(o.U,{buttonView:"outlined",buttonTitle:C("dialog.kill-header"),dialogHeader:C("dialog.kill-header"),dialogText:C("dialog.kill-text"),onConfirmAction:()=>r({id:l}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:C(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,w.jsx)(s.J,{data:n.Z})}):null}function S(e){let{database:t,tablets:a,className:n,loading:r}=e;return r?(0,w.jsx)(u.h,{}):(0,w.jsx)(d.G,{wrapperClassName:n,columns:N({database:t}),data:a,settings:b.LE,emptyDataMessage:C("noTabletsData")})}},58231:(e,t,a)=>{a.d(t,{I:()=>S});var n=a(34706),r=a(29254),s=a(96334),o=a(15268),l=a(3948),i=a(72616),d=a(81778),u=a(14561),c=a(17823),p=a(99294),h=a(37711);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),g=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)"]}'),b=(0,h.wZ)("ydb-shorty-string",{ru:g,en:m});var y=a(10161);const v=(0,p.cn)("kv-shorty-string");function x(e){let{value:t="",limit:a=200,strict:r=!1,displayLength:s=!0,render:o=(e=>e),onToggle:l,expandLabel:i=b("default_expand_label"),collapseLabel:d=b("default_collapse_label")}=e;const[u,p]=n.useState(!1),h=(u?d:i)+(s&&!u?b("chars_count",{count:t.length}):""),m=t.length>a+(r?0:h.length),g=u||!m?t:t.slice(0,a-4)+"\xa0...";return(0,y.jsxs)("div",{className:v(),children:[o(g),m?(0,y.jsx)(c.r,{className:v("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),p((e=>!e)),null===l||void 0===l||l()},children:h}):null]})}var f=a(73689);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function C(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const w=(0,p.cn)("kv-result-issues"),N=(0,p.cn)("kv-issues"),T=(0,p.cn)("kv-issue");function S(e){let{data:t,hideSeverity:a}=e;const[r,s]=n.useState(!1),o="string"===typeof t||null===t||void 0===t?void 0:t.issues,l=Array.isArray(o)&&o.length>0;return(0,y.jsxs)("div",{className:w(),children:[(0,y.jsxs)("div",{className:w("error-message"),children:[(()=>{let e;if("string"===typeof t)e=t;else{var r,s;const o=C(null===t||void 0===t||null===(r=t.error)||void 0===r?void 0:r.severity);e=(0,y.jsxs)(n.Fragment,{children:[a?null:(0,y.jsxs)(n.Fragment,{children:[(0,y.jsx)(_,{severity:o})," "]}),(0,y.jsx)("span",{className:w("error-message-text"),children:null===t||void 0===t||null===(s=t.error)||void 0===s?void 0:s.message})]})}return e})(),l&&(0,y.jsx)(i.z,{view:"normal",onClick:()=>s(!r),children:r?"Hide details":"Show details"})]}),l&&r&&(0,y.jsx)(I,{hideSeverity:a,issues:o})]})}function I(e){let{issues:t,hideSeverity:a}=e;const n=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,y.jsx)("div",{className:N(null),children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,y.jsx)(F,{hideSeverity:a,issue:e,expanded:e===n},t)))})}function F(e){let{issue:t,hideSeverity:a,level:r=0}=e;const[s,o]=n.useState(!0),l=C(t.severity),u=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,f.kE)(t.row))return"";const{row:a,column:n}=t;return(0,f.kE)(n)?`${a}:${n}`:`line ${a}`}(t),c=t.issues,p=Array.isArray(c)&&c.length>0,h=s?"bottom":"right";return(0,y.jsxs)("div",{className:T({leaf:!p,"has-issues":p}),children:[(0,y.jsxs)("div",{className:T("line"),children:[p&&(0,y.jsx)(i.z,{view:"flat-secondary",onClick:()=>o(!s),className:T("arrow-toggle"),children:(0,y.jsx)(d.F,{direction:h,size:16})}),a?null:(0,y.jsx)(_,{severity:l}),(0,y.jsxs)("span",{className:T("message"),children:[u&&(0,y.jsx)("span",{className:T("place-text"),title:"Position",children:u}),(0,y.jsx)("div",{className:T("message-text"),children:(0,y.jsx)(x,{value:t.message,expandLabel:"Show full message"})})]}),t.issue_code?(0,y.jsxs)("span",{className:T("code"),children:["Code: ",t.issue_code]}):null]}),p&&s&&(0,y.jsx)("div",{className:T("issues"),children:(0,y.jsx)(P,{issues:c,level:r+1,expanded:s})})]})}function P(e){const{issues:t,level:a,expanded:n}=e;return(0,y.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,y.jsx)(F,{issue:e,level:a,expanded:n},t)))})}const A={S_INFO:r.Z,S_WARNING:s.Z,S_ERROR:o.Z,S_FATAL:l.Z},B=(0,p.cn)("yql-issue-severity");function _(e){let{severity:t}=e;const a=t.slice(2).toLowerCase();return(0,y.jsxs)("span",{className:B({severity:a}),children:[(0,y.jsx)(u.J,{className:B("icon"),data:A[t]}),(0,y.jsx)("span",{className:B("title"),children:a})]})}},88366:(e,t,a)=>{a.d(t,{k:()=>s});var n=a(78759),r=a(16124);const s=n.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,r.n)(t)}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},10226:(e,t,a)=>{a.d(t,{t:()=>s});var n=a(55842),r=a(32341);function s(){const e=(0,n.zL)();return{problemFilter:(0,n.ix)(r.qz),handleProblemFilterChange:t=>{e((0,r.M6)(t))}}}},6215:(e,t,a)=>{a.d(t,{_:()=>r});var n=a(96183);const r=a(78759).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:r}=e,{signal:s}=t;try{const[e,t,o]=await Promise.all([window.api.getTablet({id:a,database:r},{signal:s}),window.api.getTabletHistory({id:a,database:r},{signal:s}),window.api.getNodesList({signal:s})]),l=(0,n.Xs)(o),i=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:o,Leader:i,FollowerId:d}=t,u=l&&a?l.get(Number(a)):void 0;"Dead"!==o&&e.push({nodeId:a,generation:s,changeTime:n,state:o,leader:i,followerId:d,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=e,[u={}]=d,{TabletId:c}=u;return{data:{id:c,data:u,history:i}}}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"})},62545:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/633.220bc737.chunk.js b/ydb/core/viewer/monitoring/static/js/633.220bc737.chunk.js deleted file mode 100644 index fd731fa8f5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/633.220bc737.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[633],{30633:(e,t,n)=>{n.r(t),n.d(t,{registerYQLCompletionItemProvider:()=>U});n(98098),n(23053),n(15968),n(32944),n(34564),n(19757),n(13391),n(50238),n(79623),n(52722),n(21476),n(61778),n(8295),n(63950),n(29134),n(1377),n(44870),n(61522),n(66953),n(17987),n(45713),n(63776),n(91135),n(13499),n(95851),n(95879),n(67069),n(76198),n(81584),n(11506),n(49116),n(48628),n(40335),n(37434),n(38259),n(54829),n(70597),n(25025),n(73166),n(27353),n(46030),n(36513),n(81927),n(10628),n(3394),n(71571),n(70902),n(40606),n(23977),n(36920),n(97737),n(89489),n(78201),n(79908),n(67017),n(34338),n(82148),n(53295),n(48208),n(77042),n(49724),n(39422),n(71636),n(78564),n(97235),n(77137);var i,s=n(56017);n(67709),n(41777),n(26525),n(52016),n(7067),n(86543),n(59134),n(65340),n(7389),n(66493),n(12867),n(78859),n(80198),n(39019),n(33693),n(76434),n(16842),n(14983),n(56454),n(61466),n(76799),n(29679),n(47281),n(13078),n(55799),n(45115),n(41645),n(82686),n(86703),n(1072),n(902),n(72107),n(66405),n(30539),n(45189),n(81888),n(13162),n(31518),n(60601),n(78626),n(13763),n(6581),n(44758),n(35281),n(97611),n(63874),n(29075),n(51083),n(97810),n(22920),n(89045),n(14366),n(54872),n(66333),n(34789),n(64646),n(31e3),n(94380),n(87133),n(87259),n(47526),n(30408),n(10211),n(55167),n(89673),n(56536),n(17535),n(21914),n(63235),n(70600),n(8940),n(187),n(92176),n(86394),n(59280),n(79397),n(13536),n(7717),n(32434),n(19736),n(94385),n(83443),n(54205),n(6174),n(23523),n(60951),n(91063);self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=n.p,o=(s?s.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,a.length)!==a){/^(\/\/)/.test(o)&&(o=window.location.protocol+o);var l=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return o}});var o=n(54975);const r=["String","Bool","Int32","Uint32","Int64","Uint64","Float","Double","Void","Yson","Utf8","Unit","Json","Date","Datetime","Timestamp","Interval","Null","Int8","Uint8","Int16","Uint16","TzDate","TzDatetime","TzTimestamp","Uuid","EmptyList","EmptyDict","JsonDocument","DyNumber"],a=["CAST","COALESCE","LENGTH","LEN","SUBSTRING","FIND","RFIND","StartsWith","EndsWith","IF","NANVL","Random","RandomNumber","RandomUuid","CurrentUtcDate","CurrentUtcDatetime","CurrentUtcTimestamp","CurrentTzDate","CurrentTzDatetime","CurrentTzTimestamp","AddTimezone","RemoveTimezone","MAX_OF","MIN_OF","GREATEST","LEAST","AsTuple","AsStruct","AsList","AsDict","AsSet","AsListStrict","AsDictStrict","AsSetStrict","Variant","AsVariant","Enum","AsEnum","AsTagged","Untag","TableRow","JoinTableRow","Ensure","EnsureType","EnsureConvertibleTo","ToBytes","FromBytes","ByteAt","TestBit","ClearBit","SetBit","FlipBit","Abs","Just","Unwrap","Nothing","Callable","StaticMap","StaticZip","ListCreate","AsListStrict","ListLength","ListHasItems","ListCollect","ListSort","ListSortAsc","ListSortDesc","ListExtend","ListExtendStrict","ListUnionAll","ListZip","ListZipAll","ListEnumerate","ListReverse","ListSkip","ListTake","ListIndexOf","ListMap","ListFilter","ListFlatMap","ListNotNull","ListFlatten","ListUniq","ListAny","ListAll","ListHas","ListHead","ListLast","ListMin","ListMax","ListSum","ListAvg","ListFold","ListFold1","ListFoldMap","ListFold1Map","ListFromRange","ListReplicate","ListConcat","ListExtract","ListTakeWhile","ListSkipWhile","ListAggregate","ToDict","ToMultiDict","ToSet","DictCreate","SetCreate","DictLength","DictHasItems","DictItems","DictKeys","DictPayloads","DictLookup","DictContains","DictAggregate","SetIsDisjoint","SetIntersection","SetIncludes","SetUnion","SetDifference","SetSymmetricDifference","TryMember","ExpandStruct","AddMember","RemoveMember","ForceRemoveMember","ChooseMembers","RemoveMembers","ForceRemoveMembers","CombineMembers","FlattenMembers","StructMembers","RenameMembers","ForceRenameMembers","GatherMembers","SpreadMembers","ForceSpreadMembers","FormatType","ParseType","TypeOf","InstanceOf","DataType","OptionalType","ListType","StreamType","DictType","TupleType","StructType","VariantType","ResourceType","CallableType","GenericType","UnitType","VoidType","OptionalItemType","ListItemType","StreamItemType","DictKeyType","DictPayloadType","TupleElementType","StructMemberType","CallableResultType","CallableArgumentType","VariantUnderlyingType","JSON_EXISTS","JSON_VALUE","JSON_QUERY"],l=["COUNT","MIN","MAX","SUM","AVG","COUNT_IF","SUM_IF","AVG_IF","SOME","CountDistinctEstimate","HyperLogLog","AGGREGATE_LIST","AGGREGATE_LIST_DISTINCT","AGG_LIST","AGG_LIST_DISTINCT","MAX_BY","MIN_BY","AGGREGATE_BY","MULTI_AGGREGATE_BY","TOP","BOTTOM","TOP_BY","BOTTOM_BY","TOPFREQ","MODE","STDDEV","VARIANCE","CORRELATION","COVARIANCE","PERCENTILE","MEDIAN","HISTOGRAM","LogarithmicHistogram","LogHistogram","LinearHistogram","BOOL_AND","BOOL_OR","BOOL_XOR","BIT_AND","BIT_OR","BIT_XOR","SessionStart"],u=Object.entries({DateTime:["EndOfMonth","Format","FromMicroseconds","FromMilliseconds","FromSeconds","GetDayOfMonth","GetDayOfWeek","GetDayOfWeekName","GetDayOfYear","GetHour","GetMicrosecondOfSecond","GetMillisecondOfSecond","GetMinute","GetMonth","GetMonthName","GetSecond","GetTimezoneId","GetTimezoneName","GetWeekOfYear","GetWeekOfYearIso8601","GetYear","IntervalFromDays","IntervalFromHours","IntervalFromMicroseconds","IntervalFromMilliseconds","IntervalFromMinutes","IntervalFromSeconds","MakeDate","MakeDatetime","MakeTimestamp","MakeTzDate","MakeTzDatetime","MakeTzTimestamp","Parse","ParseHttp","ParseIso8601","ParseRfc822","ParseX509","ShiftMonths","ShiftQuarters","ShiftYears","Split","StartOf","StartOfDay","StartOfMonth","StartOfQuarter","StartOfWeek","StartOfYear","TimeOfDay","ToDays","ToHours","ToMicroseconds","ToMilliseconds","ToMinutes","ToSeconds","Update"],Dsv:["Parse","ReadRecord","Serialize"],String:["AsciiToLower","AsciiToTitle","AsciiToUpper","Base32Decode","Base32Encode","Base32StrictDecode","Base64Decode","Base64Encode","Base64EncodeUrl","Base64StrictDecode","Bin","BinText","CgiEscape","CgiUnescape","Collapse","CollapseText","Contains","DecodeHtml","EncodeHtml","EndsWith","EndsWithIgnoreCase","EscapeC","FromByteList","HasPrefix","HasPrefixIgnoreCase","HasSuffix","HasSuffixIgnoreCase","Hex","HexDecode","HexEncode","HexText","HumanReadableBytes","HumanReadableDuration","HumanReadableQuantity","IsAscii","IsAsciiAlnum","IsAsciiAlpha","IsAsciiDigit","IsAsciiHex","IsAsciiLower","IsAsciiSpace","IsAsciiUpper","JoinFromList","LeftPad","LevensteinDistance","Prec","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","RightPad","SBin","SHex","SplitToList","StartsWith","StartsWithIgnoreCase","Strip","ToByteList","UnescapeC"],Unicode:["Find","Fold","FromCodePointList","GetLength","IsAlnum","IsAlpha","IsAscii","IsDigit","IsHex","IsLower","IsSpace","IsUnicodeSet","IsUpper","IsUtf","JoinFromList","LevensteinDistance","Normalize","NormalizeNFC","NormalizeNFD","NormalizeNFKC","NormalizeNFKD","RFind","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","Reverse","SplitToList","Strip","Substring","ToCodePointList","ToLower","ToTitle","ToUint64","ToUpper","Translit","TryToUint64"],Url:["BuildQueryString","CanBePunycodeHostName","CutQueryStringAndFragment","CutScheme","CutWWW","CutWWW2","Decode","Encode","ForceHostNameToPunycode","ForcePunycodeToHostName","GetCGIParam","GetDomain","GetDomainLevel","GetFragment","GetHost","GetHostPort","GetOwner","GetPath","GetPort","GetScheme","GetSchemeHost","GetSchemeHostPort","GetSignificantDomain","GetTLD","GetTail","HostNameToPunycode","IsAllowedByRobotsTxt","IsKnownTLD","IsWellKnownTLD","Normalize","NormalizeWithDefaultHttpScheme","Parse","PunycodeToHostName","QueryStringToDict","QueryStringToList"],Yson:["Attributes","Contains","ConvertTo","ConvertToBool","ConvertToBoolDict","ConvertToBoolList","ConvertToDict","ConvertToDouble","ConvertToDoubleDict","ConvertToDoubleList","ConvertToInt64","ConvertToInt64Dict","ConvertToInt64List","ConvertToList","ConvertToString","ConvertToStringDict","ConvertToStringList","ConvertToUint64","ConvertToUint64Dict","ConvertToUint64List","Equals","From","GetHash","GetLength","IsBool","IsDict","IsDouble","IsEntity","IsInt64","IsList","IsString","IsUint64","Lookup","LookupBool","LookupDict","LookupDouble","LookupInt64","LookupList","LookupString","LookupUint64","Options","Parse","ParseJson","ParseJsonDecodeUtf8","Serialize","SerializeJson","SerializePretty","SerializeText","WithAttributes","YPath","YPathBool","YPathDict","YPathDouble","YPathInt64","YPathList","YPathString","YPathUint64"],HyperLogLog:["AddValue","Create","Deserialize","GetResult","Merge","Serialize"],Hyperscan:["BacktrackingGrep","BacktrackingMatch","Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Ip:["ConvertToIPv6","FromString","GetSubnet","GetSubnetByMask","IsEmbeddedIPv4","IsIPv4","IsIPv6","SubnetFromString","SubnetMatch","SubnetToString","ToFixedIPv6String","ToString"],Json:["BoolAsJsonNode","CompilePath","DoubleAsJsonNode","JsonAsJsonNode","JsonDocumentSqlExists","JsonDocumentSqlQuery","JsonDocumentSqlQueryConditionalWrap","JsonDocumentSqlQueryWrap","JsonDocumentSqlTryExists","JsonDocumentSqlValueBool","JsonDocumentSqlValueConvertToUtf8","JsonDocumentSqlValueInt64","JsonDocumentSqlValueNumber","JsonDocumentSqlValueUtf8","Parse","Serialize","SerializeToJsonDocument","SqlExists","SqlQuery","SqlQueryConditionalWrap","SqlQueryWrap","SqlTryExists","SqlValueBool","SqlValueConvertToUtf8","SqlValueInt64","SqlValueNumber","SqlValueUtf8","Utf8AsJsonNode"],Math:["Abs","Acos","Asin","Asinh","Atan","Atan2","Cbrt","Ceil","Cos","Cosh","E","Eps","Erf","ErfInv","ErfcInv","Exp","Exp2","Fabs","Floor","Fmod","FuzzyEquals","Hypot","IsFinite","IsInf","IsNaN","Ldexp","Lgamma","Log","Log10","Log2","Mod","NearbyInt","Pi","Pow","Rem","Remainder","Rint","Round","RoundDownward","RoundToNearest","RoundTowardZero","RoundUpward","Sigmoid","Sin","Sinh","Sqrt","Tan","Tanh","Tgamma","Trunc"],Pire:["Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Re2:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Re2posix:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Digest:["Argon2","Blake2B","CityHash","CityHash128","Crc32c","Crc64","FarmHashFingerprint","FarmHashFingerprint128","FarmHashFingerprint2","FarmHashFingerprint32","FarmHashFingerprint64","Fnv32","Fnv64","HighwayHash","IntHash64","Md5HalfMix","Md5Hex","Md5Raw","MurMurHash","MurMurHash2A","MurMurHash2A32","MurMurHash32","NumericHash","Sha1","Sha256","SipHash","SuperFastHash","XXH3","XXH3_128"],Histogram:["CalcLowerBound","CalcLowerBoundSafe","CalcUpperBound","CalcUpperBoundSafe","GetSumAboveBound","GetSumBelowBound","GetSumInRange","Normalize","Print","ToCumulativeDistributionFunction"]}).reduce(((e,t)=>{let[n,i]=t;const s=i.map((e=>`${n}::${e}`));return e.concat(s)}),[]),c=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],m=[],T=["TablePathPrefix","Warning"],d={table:["AUTO_PARTITIONING_BY_SIZE","AUTO_PARTITIONING_PARTITION_SIZE_MB","AUTO_PARTITIONING_BY_LOAD","AUTO_PARTITIONING_MIN_PARTITIONS_COUNT","AUTO_PARTITIONING_MAX_PARTITIONS_COUNT","UNIFORM_PARTITIONS","READ_REPLICAS_SETTINGS","TTL","KEY_BLOOM_FILTER","STORE"],view:["security_invoker"],topic:["min_active_partitions","partition_count_limit","retention_period","retention_storage_mb","partition_write_speed_bytes_per_second","partition_write_burst_bytes","metering_mode"],object:[],user:[],group:[],externalDataSource:[],externalTable:[],tableStore:[],replication:["ENDPOINT","DATABASE","USER","PASSWORD"],tableIndex:[],topicConsumer:["important","read_from"]},g={Method:0,Function:1,Constructor:2,Field:3,Variable:4,Class:5,Struct:6,Interface:7,Module:8,Property:9,Event:10,Operator:11,Unit:12,Value:13,Constant:14,Enum:15,EnumMember:16,Keyword:17,Text:18,Color:19,File:20,Reference:21,Customcolor:22,Folder:23,TypeParameter:24,User:25,Issue:26,Snippet:27},p=/[\s'"-/@]/,S={externalDataSource:["external_data_source"],externalTable:["external_table"],replication:["replication"],table:["table","column_table"],tableStore:["column_store"],topic:["pers_queue_group"],view:["view"],tableIndex:["table_index","index"]},I=["dir","unknown","ext_sub_domain"],L=["dir","ext_sub_domain"];function y(e){let t=e;return e.match(p)&&(t=`\`${e}\``),t}function A(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function h(e){return e.startsWith("/")?e.slice(1):e}function C(){let e=arguments.length>1?arguments[1]:void 0;const t=A(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");if(!t.startsWith("/"))return t;let n=h(t);const i=h(e);return n.startsWith(i)&&(n=n.slice(i.length)),h(n)}const b={suggestTemplates:0,suggestPragmas:1,suggestEntity:2,suggestColumns:3,suggestColumnAliases:4,suggestTableIndexes:5,suggestTableHints:6,suggestEntitySettings:7,suggestKeywords:8,suggestAggregateFunctions:9,suggestTableFunctions:10,suggestWindowFunctions:11,suggestFunctions:12,suggestSimpleTypes:13,suggestUdfs:14};function D(e){return b[e]}async function f(e,t,n,i){const o=C(i,n),r=await window.api.autocomplete({database:n,prefix:o,limit:1e3}),a=null===i||void 0===i?void 0:i.startsWith("`");if(r.Success){return function(e,t){const n=t.reduce(((e,t)=>{const n=S[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(I));return e.filter((e=>{let{Type:t}=e;return n.has(t)}))}(r.Result.Entities,t).reduce(((t,n)=>{var i;let{Name:o,Type:r}=n;const l=L.includes(r),u=l?`${o}/`:o;let c;return l&&!a&&(c=`\`${u}$0\``),t.push({label:u,insertText:null!==(i=c)&&void 0!==i?i:u,kind:l?g.Folder:g.Text,insertTextRules:c?s.languages.CompletionItemInsertTextRule.InsertAsSnippet:s.languages.CompletionItemInsertTextRule.None,detail:r,range:e,command:u.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:O(D("suggestEntity"))}),t}),[])}return[]}async function F(e){return(await async function(){return a}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Function",range:e,sortText:O(D("suggestFunctions"))})))}async function v(e){return(await async function(){return r}()).map((t=>({label:t,insertText:t,kind:g.TypeParameter,detail:"Type",range:e,sortText:O(D("suggestSimpleTypes"))})))}async function E(e){return(await async function(){return u}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"UDF",range:e,sortText:O(D("suggestUdfs"))})))}async function M(e){return(await async function(){return c}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Window function",range:e,sortText:O(D("suggestWindowFunctions"))})))}async function R(e){return(await async function(){return m}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Table function",range:e,sortText:O(D("suggestTableFunctions"))})))}async function N(e){return(await async function(){return l}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Aggregate function",range:e,sortText:O(D("suggestAggregateFunctions"))})))}async function w(e){return(await async function(){return T}()).map((t=>({label:t,insertText:t,kind:g.Module,detail:"Pragma",range:e,sortText:O(D("suggestPragmas"))})))}async function _(e,t){const n=await async function(e){return d[e]}(t);return n.map((t=>({label:t,insertText:t,kind:g.Property,detail:"Setting",range:e,sortText:O(D("suggestEntitySettings"))})))}const P="abcdefghijklmnopqrstuvwxyz";function O(e){const t=P[e];if(t)return t;const n=Math.floor(e/P.length),i=e%P.length;return P.slice(-1).repeat(n)+P[i]}function x(e){return async(t,i,s,o)=>{const r=function(e,t){const{startColumn:n,endColumn:i}=e.getWordUntilPosition(t),s="$"===e.getLineContent(t.lineNumber)[n-2]?1:0;return{startColumn:n-s,startLineNumber:t.lineNumber,endColumn:i,endLineNumber:t.lineNumber}}(t,i),a=await async function(e,t,i,s){const{parseYqlQuery:o}=await n.e(165).then(n.bind(n,10165)),r={line:t.lineNumber,column:t.column},a=o(e.getValue(),r);let l=[],u=[],c=[],m=[],T=[],d=[],p=[],S=[],I=[];if(a.suggestEntity){const n=function(e,t){var n,i,s,o;const r=e.findPreviousMatch("\\s(`?[^\\s]*)",t,!0,!1,null,!0),a=e.findNextMatch("([^\\s]*)`?",t,!0,!1,null,!0);return`${null!==(n=null===r||void 0===r||null===(i=r.matches)||void 0===i?void 0:i[1])&&void 0!==n?n:""}${null!==(s=null===a||void 0===a||null===(o=a.matches)||void 0===o?void 0:o[1])&&void 0!==s?s:""}`}(e,t);l=await f(i,a.suggestEntity,s,n)}a.suggestFunctions&&(u=await F(i));a.suggestAggregateFunctions&&(c=await N(i));a.suggestWindowFunctions&&(m=await M(i));a.suggestTableFunctions&&(T=await R(i));a.suggestSimpleTypes&&(p=await v(i));a.suggestUdfs&&(d=await E(i));a.suggestPragmas&&(S=await w(i));a.suggestEntitySettings&&(I=await _(i,a.suggestEntitySettings));const L=await function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.name,insertText:t.name,kind:g.Field,detail:"Column alias",range:e,sortText:O(D("suggestColumnAliases"))}))):[]}(i,a.suggestColumnAliases),h=await async function(e,t,n){var i,s,o;if(null===t||void 0===t||!t.tables)return[];const r=[],a=t.tables.length>1,l=null!==(i=null===(s=t.tables)||void 0===s?void 0:s.map((e=>{let t=A(e.name);return t.endsWith("/")||(t=`${t}/`),C(t,n)})))&&void 0!==i?i:[],u=Array.from(new Set(l)),c=await window.api.autocomplete({database:n,table:u,limit:1e3});if(!c.Success)return[];const m=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var i;const s=C(A(t.name),n),o=null!==(i=e[s])&&void 0!==i?i:[];return t.alias&&o.push(t.alias),e[s]=o,e}),{});return c.Result.Entities.forEach((t=>{if("column"!==t.Type)return;const i=y(t.Name),s=C(t.Parent,n),o=m[s];if(null!==o&&void 0!==o&&o.length)o.forEach((t=>{const n=`${t}.${i}`;r.push({label:n,insertText:n,kind:g.Field,detail:"Column",range:e,sortText:O(D("suggestColumns"))})}));else{let t=i;a&&(t=`${y(s)}.${i}`),r.push({label:t,insertText:t,kind:g.Field,detail:"Column",range:e,sortText:O(D("suggestColumns"))})}})),r}(i,a.suggestColumns,s),b=function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.value,insertText:t.value,kind:g.Keyword,detail:"Keyword",range:e,sortText:O(D("suggestKeywords"))}))):[]}(i,a.suggestKeywords),P=[...l,...u,...m,...T,...d,...p,...S,...L,...h,...b,...c,...I];return P}(t,i,r,e);return{suggestions:a}}}let G;function U(e){G&&G.dispose(),G=s.languages.registerCompletionItemProvider(o.m,{triggerCharacters:[" ",".","`","(","/"],provideCompletionItems:x(e)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/633.e316425c.chunk.js b/ydb/core/viewer/monitoring/static/js/633.e316425c.chunk.js new file mode 100644 index 0000000000..0f5bfaa88f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/633.e316425c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[633],{30633:(e,t,n)=>{n.r(t),n.d(t,{registerYQLCompletionItemProvider:()=>U});n(98098),n(23053),n(15968),n(32944),n(34564),n(19757),n(13391),n(50238),n(79623),n(52722),n(21476),n(61778),n(8295),n(63950),n(29134),n(1377),n(44870),n(61522),n(66953),n(17987),n(45713),n(63776),n(91135),n(13499),n(95851),n(95879),n(67069),n(76198),n(81584),n(11506),n(49116),n(48628),n(40335),n(37434),n(38259),n(54829),n(70597),n(25025),n(73166),n(27353),n(46030),n(36513),n(81927),n(10628),n(3394),n(71571),n(70902),n(40606),n(23977),n(36920),n(97737),n(89489),n(78201),n(79908),n(67017),n(34338),n(82148),n(53295),n(48208),n(77042),n(49724),n(39422),n(71636),n(78564),n(97235),n(77137);var i,s=n(56017);n(67709),n(41777),n(26525),n(52016),n(7067),n(86543),n(59134),n(65340),n(7389),n(66493),n(12867),n(78859),n(80198),n(39019),n(33693),n(76434),n(16842),n(14983),n(56454),n(61466),n(76799),n(29679),n(47281),n(13078),n(55799),n(45115),n(41645),n(82686),n(86703),n(1072),n(902),n(72107),n(66405),n(30539),n(45189),n(81888),n(13162),n(31518),n(60601),n(78626),n(13763),n(6581),n(44758),n(35281),n(97611),n(63874),n(29075),n(51083),n(97810),n(22920),n(89045),n(14366),n(54872),n(66333),n(34789),n(64646),n(31e3),n(94380),n(87133),n(87259),n(47526),n(30408),n(10211),n(55167),n(89673),n(56536),n(17535),n(21914),n(63235),n(70600),n(8940),n(187),n(92176),n(86394),n(59280),n(79397),n(13536),n(7717),n(32434),n(19736),n(94385),n(83443),n(54205),n(6174),n(23523),n(60951),n(91063);self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=n.p,o=(s?s.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,a.length)!==a){/^(\/\/)/.test(o)&&(o=window.location.protocol+o);var l=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return o}});var o=n(54975);const r=["Text","Bytes","String","Bool","Int32","Uint32","Int64","Uint64","Float","Double","Void","Yson","Utf8","Unit","Json","Date","Datetime","Timestamp","Interval","Null","Int8","Uint8","Int16","Uint16","TzDate","TzDatetime","TzTimestamp","Uuid","EmptyList","EmptyDict","JsonDocument","DyNumber"],a=["CAST","COALESCE","LENGTH","LEN","SUBSTRING","FIND","RFIND","StartsWith","EndsWith","IF","NANVL","Random","RandomNumber","RandomUuid","CurrentUtcDate","CurrentUtcDatetime","CurrentUtcTimestamp","CurrentTzDate","CurrentTzDatetime","CurrentTzTimestamp","AddTimezone","RemoveTimezone","MAX_OF","MIN_OF","GREATEST","LEAST","AsTuple","AsStruct","AsList","AsDict","AsSet","AsListStrict","AsDictStrict","AsSetStrict","Variant","AsVariant","Enum","AsEnum","AsTagged","Untag","TableRow","JoinTableRow","Ensure","EnsureType","EnsureConvertibleTo","ToBytes","FromBytes","ByteAt","TestBit","ClearBit","SetBit","FlipBit","Abs","Just","Unwrap","Nothing","Callable","StaticMap","StaticZip","ListCreate","AsListStrict","ListLength","ListHasItems","ListCollect","ListSort","ListSortAsc","ListSortDesc","ListExtend","ListExtendStrict","ListUnionAll","ListZip","ListZipAll","ListEnumerate","ListReverse","ListSkip","ListTake","ListIndexOf","ListMap","ListFilter","ListFlatMap","ListNotNull","ListFlatten","ListUniq","ListAny","ListAll","ListHas","ListHead","ListLast","ListMin","ListMax","ListSum","ListAvg","ListFold","ListFold1","ListFoldMap","ListFold1Map","ListFromRange","ListReplicate","ListConcat","ListExtract","ListTakeWhile","ListSkipWhile","ListAggregate","ToDict","ToMultiDict","ToSet","DictCreate","SetCreate","DictLength","DictHasItems","DictItems","DictKeys","DictPayloads","DictLookup","DictContains","DictAggregate","SetIsDisjoint","SetIntersection","SetIncludes","SetUnion","SetDifference","SetSymmetricDifference","TryMember","ExpandStruct","AddMember","RemoveMember","ForceRemoveMember","ChooseMembers","RemoveMembers","ForceRemoveMembers","CombineMembers","FlattenMembers","StructMembers","RenameMembers","ForceRenameMembers","GatherMembers","SpreadMembers","ForceSpreadMembers","FormatType","ParseType","TypeOf","InstanceOf","DataType","OptionalType","ListType","StreamType","DictType","TupleType","StructType","VariantType","ResourceType","CallableType","GenericType","UnitType","VoidType","OptionalItemType","ListItemType","StreamItemType","DictKeyType","DictPayloadType","TupleElementType","StructMemberType","CallableResultType","CallableArgumentType","VariantUnderlyingType","JSON_EXISTS","JSON_VALUE","JSON_QUERY"],l=["COUNT","MIN","MAX","SUM","AVG","COUNT_IF","SUM_IF","AVG_IF","SOME","CountDistinctEstimate","HyperLogLog","AGGREGATE_LIST","AGGREGATE_LIST_DISTINCT","AGG_LIST","AGG_LIST_DISTINCT","MAX_BY","MIN_BY","AGGREGATE_BY","MULTI_AGGREGATE_BY","TOP","BOTTOM","TOP_BY","BOTTOM_BY","TOPFREQ","MODE","STDDEV","VARIANCE","CORRELATION","COVARIANCE","PERCENTILE","MEDIAN","HISTOGRAM","LogarithmicHistogram","LogHistogram","LinearHistogram","BOOL_AND","BOOL_OR","BOOL_XOR","BIT_AND","BIT_OR","BIT_XOR","SessionStart"],u=Object.entries({DateTime:["EndOfMonth","Format","FromMicroseconds","FromMilliseconds","FromSeconds","GetDayOfMonth","GetDayOfWeek","GetDayOfWeekName","GetDayOfYear","GetHour","GetMicrosecondOfSecond","GetMillisecondOfSecond","GetMinute","GetMonth","GetMonthName","GetSecond","GetTimezoneId","GetTimezoneName","GetWeekOfYear","GetWeekOfYearIso8601","GetYear","IntervalFromDays","IntervalFromHours","IntervalFromMicroseconds","IntervalFromMilliseconds","IntervalFromMinutes","IntervalFromSeconds","MakeDate","MakeDatetime","MakeTimestamp","MakeTzDate","MakeTzDatetime","MakeTzTimestamp","Parse","ParseHttp","ParseIso8601","ParseRfc822","ParseX509","ShiftMonths","ShiftQuarters","ShiftYears","Split","StartOf","StartOfDay","StartOfMonth","StartOfQuarter","StartOfWeek","StartOfYear","TimeOfDay","ToDays","ToHours","ToMicroseconds","ToMilliseconds","ToMinutes","ToSeconds","Update"],Dsv:["Parse","ReadRecord","Serialize"],String:["AsciiToLower","AsciiToTitle","AsciiToUpper","Base32Decode","Base32Encode","Base32StrictDecode","Base64Decode","Base64Encode","Base64EncodeUrl","Base64StrictDecode","Bin","BinText","CgiEscape","CgiUnescape","Collapse","CollapseText","Contains","DecodeHtml","EncodeHtml","EndsWith","EndsWithIgnoreCase","EscapeC","FromByteList","HasPrefix","HasPrefixIgnoreCase","HasSuffix","HasSuffixIgnoreCase","Hex","HexDecode","HexEncode","HexText","HumanReadableBytes","HumanReadableDuration","HumanReadableQuantity","IsAscii","IsAsciiAlnum","IsAsciiAlpha","IsAsciiDigit","IsAsciiHex","IsAsciiLower","IsAsciiSpace","IsAsciiUpper","JoinFromList","LeftPad","LevensteinDistance","Prec","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","RightPad","SBin","SHex","SplitToList","StartsWith","StartsWithIgnoreCase","Strip","ToByteList","UnescapeC"],Unicode:["Find","Fold","FromCodePointList","GetLength","IsAlnum","IsAlpha","IsAscii","IsDigit","IsHex","IsLower","IsSpace","IsUnicodeSet","IsUpper","IsUtf","JoinFromList","LevensteinDistance","Normalize","NormalizeNFC","NormalizeNFD","NormalizeNFKC","NormalizeNFKD","RFind","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","Reverse","SplitToList","Strip","Substring","ToCodePointList","ToLower","ToTitle","ToUint64","ToUpper","Translit","TryToUint64"],Url:["BuildQueryString","CanBePunycodeHostName","CutQueryStringAndFragment","CutScheme","CutWWW","CutWWW2","Decode","Encode","ForceHostNameToPunycode","ForcePunycodeToHostName","GetCGIParam","GetDomain","GetDomainLevel","GetFragment","GetHost","GetHostPort","GetOwner","GetPath","GetPort","GetScheme","GetSchemeHost","GetSchemeHostPort","GetSignificantDomain","GetTLD","GetTail","HostNameToPunycode","IsAllowedByRobotsTxt","IsKnownTLD","IsWellKnownTLD","Normalize","NormalizeWithDefaultHttpScheme","Parse","PunycodeToHostName","QueryStringToDict","QueryStringToList"],Yson:["Attributes","Contains","ConvertTo","ConvertToBool","ConvertToBoolDict","ConvertToBoolList","ConvertToDict","ConvertToDouble","ConvertToDoubleDict","ConvertToDoubleList","ConvertToInt64","ConvertToInt64Dict","ConvertToInt64List","ConvertToList","ConvertToString","ConvertToStringDict","ConvertToStringList","ConvertToUint64","ConvertToUint64Dict","ConvertToUint64List","Equals","From","GetHash","GetLength","IsBool","IsDict","IsDouble","IsEntity","IsInt64","IsList","IsString","IsUint64","Lookup","LookupBool","LookupDict","LookupDouble","LookupInt64","LookupList","LookupString","LookupUint64","Options","Parse","ParseJson","ParseJsonDecodeUtf8","Serialize","SerializeJson","SerializePretty","SerializeText","WithAttributes","YPath","YPathBool","YPathDict","YPathDouble","YPathInt64","YPathList","YPathString","YPathUint64"],HyperLogLog:["AddValue","Create","Deserialize","GetResult","Merge","Serialize"],Hyperscan:["BacktrackingGrep","BacktrackingMatch","Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Ip:["ConvertToIPv6","FromString","GetSubnet","GetSubnetByMask","IsEmbeddedIPv4","IsIPv4","IsIPv6","SubnetFromString","SubnetMatch","SubnetToString","ToFixedIPv6String","ToString"],Json:["BoolAsJsonNode","CompilePath","DoubleAsJsonNode","JsonAsJsonNode","JsonDocumentSqlExists","JsonDocumentSqlQuery","JsonDocumentSqlQueryConditionalWrap","JsonDocumentSqlQueryWrap","JsonDocumentSqlTryExists","JsonDocumentSqlValueBool","JsonDocumentSqlValueConvertToUtf8","JsonDocumentSqlValueInt64","JsonDocumentSqlValueNumber","JsonDocumentSqlValueUtf8","Parse","Serialize","SerializeToJsonDocument","SqlExists","SqlQuery","SqlQueryConditionalWrap","SqlQueryWrap","SqlTryExists","SqlValueBool","SqlValueConvertToUtf8","SqlValueInt64","SqlValueNumber","SqlValueUtf8","Utf8AsJsonNode"],Math:["Abs","Acos","Asin","Asinh","Atan","Atan2","Cbrt","Ceil","Cos","Cosh","E","Eps","Erf","ErfInv","ErfcInv","Exp","Exp2","Fabs","Floor","Fmod","FuzzyEquals","Hypot","IsFinite","IsInf","IsNaN","Ldexp","Lgamma","Log","Log10","Log2","Mod","NearbyInt","Pi","Pow","Rem","Remainder","Rint","Round","RoundDownward","RoundToNearest","RoundTowardZero","RoundUpward","Sigmoid","Sin","Sinh","Sqrt","Tan","Tanh","Tgamma","Trunc"],Pire:["Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Re2:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Re2posix:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Digest:["Argon2","Blake2B","CityHash","CityHash128","Crc32c","Crc64","FarmHashFingerprint","FarmHashFingerprint128","FarmHashFingerprint2","FarmHashFingerprint32","FarmHashFingerprint64","Fnv32","Fnv64","HighwayHash","IntHash64","Md5HalfMix","Md5Hex","Md5Raw","MurMurHash","MurMurHash2A","MurMurHash2A32","MurMurHash32","NumericHash","Sha1","Sha256","SipHash","SuperFastHash","XXH3","XXH3_128"],Histogram:["CalcLowerBound","CalcLowerBoundSafe","CalcUpperBound","CalcUpperBoundSafe","GetSumAboveBound","GetSumBelowBound","GetSumInRange","Normalize","Print","ToCumulativeDistributionFunction"]}).reduce(((e,t)=>{let[n,i]=t;const s=i.map((e=>`${n}::${e}`));return e.concat(s)}),[]),c=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],m=[],d=["TablePathPrefix","Warning"],T={table:["AUTO_PARTITIONING_BY_SIZE","AUTO_PARTITIONING_PARTITION_SIZE_MB","AUTO_PARTITIONING_BY_LOAD","AUTO_PARTITIONING_MIN_PARTITIONS_COUNT","AUTO_PARTITIONING_MAX_PARTITIONS_COUNT","UNIFORM_PARTITIONS","READ_REPLICAS_SETTINGS","TTL","KEY_BLOOM_FILTER","STORE"],view:["security_invoker"],topic:["min_active_partitions","partition_count_limit","retention_period","retention_storage_mb","partition_write_speed_bytes_per_second","partition_write_burst_bytes","metering_mode"],object:[],user:[],group:[],externalDataSource:[],externalTable:[],tableStore:[],replication:["ENDPOINT","DATABASE","USER","PASSWORD"],tableIndex:[],topicConsumer:["important","read_from"]},g={Method:0,Function:1,Constructor:2,Field:3,Variable:4,Class:5,Struct:6,Interface:7,Module:8,Property:9,Event:10,Operator:11,Unit:12,Value:13,Constant:14,Enum:15,EnumMember:16,Keyword:17,Text:18,Color:19,File:20,Reference:21,Customcolor:22,Folder:23,TypeParameter:24,User:25,Issue:26,Snippet:27},p=/[\s'"-/@]/,S={externalDataSource:["external_data_source"],externalTable:["external_table"],replication:["replication"],table:["table","column_table"],tableStore:["column_store"],topic:["pers_queue_group"],view:["view"],tableIndex:["table_index","index"]},I=["dir","unknown","ext_sub_domain"],L=["dir","ext_sub_domain"];function h(e){let t=e;return e.match(p)&&(t=`\`${e}\``),t}function y(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function A(e){return e.startsWith("/")?e.slice(1):e}function C(){let e=arguments.length>1?arguments[1]:void 0;const t=y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");if(!t.startsWith("/"))return t;let n=A(t);const i=A(e);return n.startsWith(i)&&(n=n.slice(i.length)),A(n)}const b={suggestTemplates:0,suggestPragmas:1,suggestEntity:2,suggestAllColumns:3,suggestColumns:4,suggestColumnAliases:5,suggestTableIndexes:6,suggestTableHints:7,suggestEntitySettings:8,suggestKeywords:9,suggestAggregateFunctions:10,suggestTableFunctions:11,suggestWindowFunctions:12,suggestFunctions:13,suggestSimpleTypes:14,suggestUdfs:15};function D(e){return b[e]}async function f(e,t,n,i){const o=C(i,n),r=await window.api.autocomplete({database:n,prefix:o,limit:1e3}),a=null===i||void 0===i?void 0:i.startsWith("`");if(r.Success){return function(e,t){const n=t.reduce(((e,t)=>{const n=S[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(I));return e.filter((e=>{let{Type:t}=e;return n.has(t)}))}(r.Result.Entities,t).reduce(((t,n)=>{var i;let{Name:o,Type:r}=n;const l=L.includes(r),u=l?`${o}/`:o;let c;l&&!a&&(c=`\`${u}$0\``);const m=t.length;return t.push({label:u,insertText:null!==(i=c)&&void 0!==i?i:u,kind:l?g.Folder:g.Text,insertTextRules:c?s.languages.CompletionItemInsertTextRule.InsertAsSnippet:s.languages.CompletionItemInsertTextRule.None,detail:r,range:e,command:u.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:P(D("suggestEntity"))+P(m)}),t}),[])}return[]}async function v(e){return(await async function(){return a}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Function",range:e,sortText:P(D("suggestFunctions"))})))}async function F(e){return(await async function(){return r}()).map((t=>({label:t,insertText:t,kind:g.TypeParameter,detail:"Type",range:e,sortText:P(D("suggestSimpleTypes"))})))}async function E(e){return(await async function(){return u}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"UDF",range:e,sortText:P(D("suggestUdfs"))})))}async function M(e){return(await async function(){return c}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Window function",range:e,sortText:P(D("suggestWindowFunctions"))})))}async function R(e){return(await async function(){return m}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Table function",range:e,sortText:P(D("suggestTableFunctions"))})))}async function N(e){return(await async function(){return l}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Aggregate function",range:e,sortText:P(D("suggestAggregateFunctions"))})))}async function w(e){return(await async function(){return d}()).map((t=>({label:t,insertText:t,kind:g.Module,detail:"Pragma",range:e,sortText:P(D("suggestPragmas"))})))}async function _(e,t){const n=await async function(e){return T[e]}(t);return n.map((t=>({label:t,insertText:t,kind:g.Property,detail:"Setting",range:e,sortText:P(D("suggestEntitySettings"))})))}const x="abcdefghijklmnopqrstuvwxyz";function P(e){const t=x[e];if(t)return t;const n=Math.floor(e/x.length),i=e%x.length;return x.slice(-1).repeat(n)+x[i]}function O(e){return async(t,i,s,o)=>{const r=function(e,t){const{startColumn:n,endColumn:i}=e.getWordUntilPosition(t),s="$"===e.getLineContent(t.lineNumber)[n-2]?1:0;return{startColumn:n-s,startLineNumber:t.lineNumber,endColumn:i,endLineNumber:t.lineNumber}}(t,i),a=await async function(e,t,i,s){const{parseYqlQuery:o}=await n.e(2840).then(n.bind(n,32840)),r={line:t.lineNumber,column:t.column},a=o(e.getValue(),r);let l=[],u=[],c=[],m=[],d=[],T=[],p=[],S=[],I=[];if(a.suggestEntity){const n=function(e,t){var n,i,s,o;const r=e.findPreviousMatch("\\s(`?[^\\s]*)",t,!0,!1,null,!0),a=e.findNextMatch("([^\\s]*)`?",t,!0,!1,null,!0);return`${null!==(n=null===r||void 0===r||null===(i=r.matches)||void 0===i?void 0:i[1])&&void 0!==n?n:""}${null!==(s=null===a||void 0===a||null===(o=a.matches)||void 0===o?void 0:o[1])&&void 0!==s?s:""}`}(e,t);l=await f(i,a.suggestEntity,s,n)}a.suggestFunctions&&(u=await v(i));a.suggestAggregateFunctions&&(c=await N(i));a.suggestWindowFunctions&&(m=await M(i));a.suggestTableFunctions&&(d=await R(i));a.suggestSimpleTypes&&(p=await F(i));a.suggestUdfs&&(T=await E(i));a.suggestPragmas&&(S=await w(i));a.suggestEntitySettings&&(I=await _(i,a.suggestEntitySettings));const L=await function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.name,insertText:t.name,kind:g.Field,detail:"Column alias",range:e,sortText:P(D("suggestColumnAliases"))}))):[]}(i,a.suggestColumnAliases),A=await async function(e,t,n){var i,s,o;if(null===t||void 0===t||!t.tables)return[];const r=[],a=t.all?[]:void 0,l=t.tables.length>1,u=null!==(i=null===(s=t.tables)||void 0===s?void 0:s.map((e=>{let t=y(e.name);return t.endsWith("/")||(t=`${t}/`),C(t,n)})))&&void 0!==i?i:[],c=Array.from(new Set(u)),m=await window.api.autocomplete({database:n,table:c,limit:1e3});if(!m.Success)return[];const d=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var i;const s=C(y(t.name),n),o=null!==(i=e[s])&&void 0!==i?i:[];return t.alias&&o.push(t.alias),e[s]=o,e}),{});if(m.Result.Entities.forEach((t=>{if("column"!==t.Type)return;const i=h(t.Name),s=C(t.Parent,n),o=d[s],u=r.length;if(null!==o&&void 0!==o&&o.length)o.forEach((t=>{const n=`${t}.${i}`;r.push({label:n,insertText:n,kind:g.Field,detail:"Column",range:e,sortText:P(D("suggestColumns"))+P(u)}),null===a||void 0===a||a.push(n)}));else{let t=i;l&&(t=`${h(s)}.${i}`),r.push({label:t,insertText:t,kind:g.Field,detail:"Column",range:e,sortText:P(D("suggestColumns"))+P(u)}),null===a||void 0===a||a.push(t)}})),a&&a.length>0){const t=a.join(", ");r.push({label:t,insertText:t,kind:g.Field,detail:"All columns",range:e,sortText:P(D("suggestAllColumns"))})}return r}(i,a.suggestColumns,s),b=function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.value,insertText:t.value,kind:g.Keyword,detail:"Keyword",range:e,sortText:P(D("suggestKeywords"))}))):[]}(i,a.suggestKeywords),x=[...l,...u,...m,...d,...T,...p,...S,...L,...A,...b,...c,...I];return x}(t,i,r,e);return{suggestions:a}}}let G;function U(e){G&&G.dispose(),G=s.languages.registerCompletionItemProvider(o.m,{triggerCharacters:[" ",".","`","(","/"],provideCompletionItems:O(e)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6395.9408fa97.chunk.js b/ydb/core/viewer/monitoring/static/js/6395.c9121a28.chunk.js index 512a7cf669..2683910623 100644 --- a/ydb/core/viewer/monitoring/static/js/6395.9408fa97.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/6395.c9121a28.chunk.js @@ -1 +1 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6395],{89516:(e,a,s)=>{s.d(a,{a:()=>u});var l=s(99294),t=s(73287),r=s(10161);const n=(0,l.cn)("ydb-entity-page-title");function u(e){let{entityName:a,status:s,id:l,className:u}=e;return(0,r.jsxs)("div",{className:n(null,u),children:[(0,r.jsx)("span",{className:n("prefix"),children:a}),(0,r.jsx)(t.J,{className:n("icon"),status:s,size:"s"}),l]})}},21711:(e,a,s)=>{s.d(a,{b:()=>c});var l=s(34706),t=s(5194),r=s(99294),n=s(83658),u=s(10161);const o=(0,r.cn)("ydb-info-viewer-skeleton"),i=()=>(0,u.jsxs)("div",{className:o("label"),children:[(0,u.jsx)(t.O,{className:o("label__text")}),(0,u.jsx)("div",{className:o("label__dots")})]}),c=e=>{let{rows:a=8,className:s,delay:r=600}=e;const[c]=(0,n.$)(r);let p=(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)(i,{}),(0,u.jsx)(t.O,{className:o("value")})]});return c||(p=null),(0,u.jsx)("div",{className:o(null,s),children:[...new Array(a)].map(((e,a)=>(0,u.jsx)("div",{className:o("row"),children:p},`skeleton-row-${a}`)))})}},84573:(e,a,s)=>{s.d(a,{B:()=>c});var l=s(79777),t=s(99294),r=s(74003),n=s(43464),u=s(10161);const o=(0,t.cn)("ydb-page-meta");function i(e){let{items:a,loading:s}=e;return(0,u.jsx)("div",{className:o("info"),children:s?(0,u.jsx)(n.O,{className:o("skeleton")}):a.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:a,...s}=e;return(0,u.jsxs)(l.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:o(null,a),children:[(0,u.jsx)(i,{...s}),(0,u.jsx)(r.q,{})]})}},43464:(e,a,s)=>{s.d(a,{O:()=>n});var l=s(5194),t=s(83658),r=s(10161);const n=e=>{let{delay:a=600,className:s}=e;const[n]=(0,t.$)(a);return n?(0,r.jsx)(l.O,{className:s}):null}},13812:(e,a,s)=>{s.r(a),s.d(a,{StorageGroupPage:()=>_});var l=s(34706),t=s(64485),r=s(42152),n=s(99495),u=s(89516),o=s(15327),i=s(21711),c=s(84573),p=s(79777),d=s(25665),g=s(14075),m=s(83627),v=s(73689),b=s(41591),h=s(20760),y=s(73287),N=s(37711);const j=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)"}'),x=(0,N.wZ)("storage-group-info",{en:j});var D=s(10161);function f(e){let{data:a,className:s,...l}=e;const{Encryption:t,Overall:r,DiskSpace:n,MediaType:u,ErasureSpecies:o,Used:i,Limit:c,Usage:N,Read:j,Write:f,GroupGeneration:k,Latency:w,AllocationUnits:S,State:G,MissingDisks:L,Available:P,LatencyPutTabletLogMs:O,LatencyPutUserDataMs:T,LatencyGetFastMs:U}=a||{},$=[];(0,d.D)(k)&&$.push({label:x("group-generation"),value:k}),(0,d.D)(o)&&$.push({label:x("erasure-species"),value:o}),(0,d.D)(u)&&$.push({label:x("media-type"),value:u}),(0,d.D)(t)&&$.push({label:x("encryption"),value:x(t?"yes":"no")}),(0,d.D)(r)&&$.push({label:x("overall"),value:(0,D.jsx)(y.J,{status:r})}),(0,d.D)(G)&&$.push({label:x("state"),value:G}),(0,d.D)(L)&&$.push({label:x("missing-disks"),value:L});const _=[];return(0,d.D)(i)&&(0,d.D)(c)&&_.push({label:x("used-space"),value:(0,D.jsx)(h.y,{value:Number(i),capacity:Number(c),formatValues:g.q3,colorizeProgress:!0})}),(0,d.D)(P)&&_.push({label:x("available"),value:(0,g.q3)(Number(P))}),(0,d.D)(N)&&_.push({label:x("usage"),value:`${N.toFixed(2)}%`}),(0,d.D)(n)&&_.push({label:x("disk-space"),value:(0,D.jsx)(y.J,{status:n})}),(0,d.D)(w)&&_.push({label:x("latency"),value:(0,D.jsx)(y.J,{status:w})}),(0,d.D)(O)&&_.push({label:x("latency-put-tablet-log"),value:(0,m.zm)(O)}),(0,d.D)(T)&&_.push({label:x("latency-put-user-data"),value:(0,m.zm)(T)}),(0,d.D)(U)&&_.push({label:x("latency-get-fast"),value:(0,m.zm)(U)}),(0,d.D)(S)&&_.push({label:x("allocation-units"),value:S}),(0,d.D)(j)&&_.push({label:x("read-throughput"),value:(0,v.Qt)(Number(j))}),(0,d.D)(f)&&_.push({label:x("write-throughput"),value:(0,v.Qt)(Number(f))}),(0,D.jsxs)(p.k,{className:s,gap:2,direction:"row",wrap:!0,children:[(0,D.jsx)(b._P,{info:$,...l}),(0,D.jsx)(b._P,{info:_,...l})]})}var k=s(39202),w=s(85709),S=s(89085),G=s(77468),L=s(99294),P=s(55842),O=s(92025);const T=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),U=(0,N.wZ)("ydb-storage-group-page",{en:T}),$=(0,L.cn)("ydb-storage-group-page");function _(){var e,a;const s=(0,P.zL)(),[{groupId:p}]=(0,n.useQueryParams)({groupId:n.StringParam});l.useEffect((()=>{s((0,w.J)("storageGroup",{groupId:p}))}),[s,p]);const[g]=(0,P.Rj)(),m=(0,k.tS)(),v=(0,k.rU)(),b=S.y.useGetStorageGroupsInfoQuery((0,d.D)(p)?{groupId:p,shouldUseGroupsHandler:m,with:"all",fieldsRequired:"all"}:t.CN,{pollingInterval:g,skip:!v}),h=null===(e=b.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],y=b.isFetching&&void 0===h;return(0,D.jsxs)("div",{className:$(null),children:[(()=>{const e=p?`${U("storage-group")} ${p}`:U("storage-group");return(0,D.jsx)(r.ql,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!p)return null;const e=[`${U("pool-name")}: ${null===h||void 0===h?void 0:h.PoolName}`];return(0,D.jsx)(c.B,{className:$("meta"),loading:y,items:e})})(),(0,D.jsx)(u.a,{className:$("title"),entityName:U("storage-group"),status:(null===h||void 0===h?void 0:h.Overall)||G.K.Grey,id:p}),b.error?(0,D.jsx)(o.V,{error:b.error}):null,y?(0,D.jsx)(i.b,{className:$("info"),rows:10}):(0,D.jsx)(f,{data:h,className:$("info")}),p?(0,D.jsxs)(l.Fragment,{children:[(0,D.jsx)("div",{className:$("storage-title"),children:U("storage")}),(0,D.jsx)(O.V,{groupId:p})]}):null]})}}}]);
\ No newline at end of file +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6395],{89516:(e,a,s)=>{s.d(a,{a:()=>u});var l=s(99294),t=s(73287),r=s(10161);const n=(0,l.cn)("ydb-entity-page-title");function u(e){let{entityName:a,status:s,id:l,className:u}=e;return(0,r.jsxs)("div",{className:n(null,u),children:[(0,r.jsx)("span",{className:n("prefix"),children:a}),(0,r.jsx)(t.J,{className:n("icon"),status:s,size:"s"}),l]})}},21711:(e,a,s)=>{s.d(a,{b:()=>c});var l=s(34706),t=s(5194),r=s(99294),n=s(83658),u=s(10161);const o=(0,r.cn)("ydb-info-viewer-skeleton"),i=()=>(0,u.jsxs)("div",{className:o("label"),children:[(0,u.jsx)(t.O,{className:o("label__text")}),(0,u.jsx)("div",{className:o("label__dots")})]}),c=e=>{let{rows:a=8,className:s,delay:r=600}=e;const[c]=(0,n.$)(r);let p=(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)(i,{}),(0,u.jsx)(t.O,{className:o("value")})]});return c||(p=null),(0,u.jsx)("div",{className:o(null,s),children:[...new Array(a)].map(((e,a)=>(0,u.jsx)("div",{className:o("row"),children:p},`skeleton-row-${a}`)))})}},84573:(e,a,s)=>{s.d(a,{B:()=>c});var l=s(79777),t=s(99294),r=s(74003),n=s(43464),u=s(10161);const o=(0,t.cn)("ydb-page-meta");function i(e){let{items:a,loading:s}=e;return(0,u.jsx)("div",{className:o("info"),children:s?(0,u.jsx)(n.O,{className:o("skeleton")}):a.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:a,...s}=e;return(0,u.jsxs)(l.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:o(null,a),children:[(0,u.jsx)(i,{...s}),(0,u.jsx)(r.q,{})]})}},43464:(e,a,s)=>{s.d(a,{O:()=>n});var l=s(5194),t=s(83658),r=s(10161);const n=e=>{let{delay:a=600,className:s}=e;const[n]=(0,t.$)(a);return n?(0,r.jsx)(l.O,{className:s}):null}},13812:(e,a,s)=>{s.r(a),s.d(a,{StorageGroupPage:()=>_});var l=s(34706),t=s(64485),r=s(42152),n=s(99495),u=s(89516),o=s(15327),i=s(21711),c=s(84573),p=s(79777),d=s(25665),g=s(38980),m=s(83627),v=s(73689),b=s(41591),h=s(20760),y=s(73287),N=s(37711);const j=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)"}'),x=(0,N.wZ)("storage-group-info",{en:j});var D=s(10161);function f(e){let{data:a,className:s,...l}=e;const{Encryption:t,Overall:r,DiskSpace:n,MediaType:u,ErasureSpecies:o,Used:i,Limit:c,Usage:N,Read:j,Write:f,GroupGeneration:k,Latency:w,AllocationUnits:S,State:G,MissingDisks:L,Available:P,LatencyPutTabletLogMs:O,LatencyPutUserDataMs:T,LatencyGetFastMs:U}=a||{},$=[];(0,d.D)(k)&&$.push({label:x("group-generation"),value:k}),(0,d.D)(o)&&$.push({label:x("erasure-species"),value:o}),(0,d.D)(u)&&$.push({label:x("media-type"),value:u}),(0,d.D)(t)&&$.push({label:x("encryption"),value:x(t?"yes":"no")}),(0,d.D)(r)&&$.push({label:x("overall"),value:(0,D.jsx)(y.J,{status:r})}),(0,d.D)(G)&&$.push({label:x("state"),value:G}),(0,d.D)(L)&&$.push({label:x("missing-disks"),value:L});const _=[];return(0,d.D)(i)&&(0,d.D)(c)&&_.push({label:x("used-space"),value:(0,D.jsx)(h.y,{value:Number(i),capacity:Number(c),formatValues:g.q3,colorizeProgress:!0})}),(0,d.D)(P)&&_.push({label:x("available"),value:(0,g.q3)(Number(P))}),(0,d.D)(N)&&_.push({label:x("usage"),value:`${N.toFixed(2)}%`}),(0,d.D)(n)&&_.push({label:x("disk-space"),value:(0,D.jsx)(y.J,{status:n})}),(0,d.D)(w)&&_.push({label:x("latency"),value:(0,D.jsx)(y.J,{status:w})}),(0,d.D)(O)&&_.push({label:x("latency-put-tablet-log"),value:(0,m.zm)(O)}),(0,d.D)(T)&&_.push({label:x("latency-put-user-data"),value:(0,m.zm)(T)}),(0,d.D)(U)&&_.push({label:x("latency-get-fast"),value:(0,m.zm)(U)}),(0,d.D)(S)&&_.push({label:x("allocation-units"),value:S}),(0,d.D)(j)&&_.push({label:x("read-throughput"),value:(0,v.Qt)(Number(j))}),(0,d.D)(f)&&_.push({label:x("write-throughput"),value:(0,v.Qt)(Number(f))}),(0,D.jsxs)(p.k,{className:s,gap:2,direction:"row",wrap:!0,children:[(0,D.jsx)(b._P,{info:$,...l}),(0,D.jsx)(b._P,{info:_,...l})]})}var k=s(39202),w=s(85709),S=s(89085),G=s(77468),L=s(99294),P=s(55842),O=s(58095);const T=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),U=(0,N.wZ)("ydb-storage-group-page",{en:T}),$=(0,L.cn)("ydb-storage-group-page");function _(){var e,a;const s=(0,P.zL)(),p=l.useRef(null),[{groupId:g}]=(0,n.useQueryParams)({groupId:n.StringParam});l.useEffect((()=>{s((0,w.J)("storageGroup",{groupId:g}))}),[s,g]);const[m]=(0,P.Rj)(),v=(0,k.tS)(),b=(0,k.rU)(),h=S.y.useGetStorageGroupsInfoQuery((0,d.D)(g)?{groupId:g,shouldUseGroupsHandler:v,with:"all",fieldsRequired:"all"}:t.CN,{pollingInterval:m,skip:!b}),y=null===(e=h.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],N=h.isFetching&&void 0===y;return(0,D.jsxs)("div",{className:$(null),ref:p,children:[(()=>{const e=g?`${U("storage-group")} ${g}`:U("storage-group");return(0,D.jsx)(r.ql,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!g)return null;const e=[`${U("pool-name")}: ${null===y||void 0===y?void 0:y.PoolName}`];return(0,D.jsx)(c.B,{className:$("meta"),loading:N,items:e})})(),(0,D.jsx)(u.a,{className:$("title"),entityName:U("storage-group"),status:(null===y||void 0===y?void 0:y.Overall)||G.K.Grey,id:g}),h.error?(0,D.jsx)(o.V,{error:h.error}):null,N?(0,D.jsx)(i.b,{className:$("info"),rows:10}):(0,D.jsx)(f,{data:y,className:$("info")}),g?(0,D.jsxs)(l.Fragment,{children:[(0,D.jsx)("div",{className:$("storage-title"),children:U("storage")}),(0,D.jsx)(O.V,{groupId:g,parentRef:p})]}):null]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6703.8678859a.chunk.js b/ydb/core/viewer/monitoring/static/js/6703.8678859a.chunk.js deleted file mode 100644 index 56215fdd94..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6703.8678859a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6703],{89516:(e,i,s)=>{s.d(i,{a:()=>a});var t=s(99294),d=s(73287),o=s(10161);const n=(0,t.cn)("ydb-entity-page-title");function a(e){let{entityName:i,status:s,id:t,className:a}=e;return(0,o.jsxs)("div",{className:n(null,a),children:[(0,o.jsx)("span",{className:n("prefix"),children:i}),(0,o.jsx)(d.J,{className:n("icon"),status:s,size:"s"}),t]})}},21711:(e,i,s)=>{s.d(i,{b:()=>c});var t=s(34706),d=s(5194),o=s(99294),n=s(83658),a=s(10161);const l=(0,o.cn)("ydb-info-viewer-skeleton"),r=()=>(0,a.jsxs)("div",{className:l("label"),children:[(0,a.jsx)(d.O,{className:l("label__text")}),(0,a.jsx)("div",{className:l("label__dots")})]}),c=e=>{let{rows:i=8,className:s,delay:o=600}=e;const[c]=(0,n.$)(o);let v=(0,a.jsxs)(t.Fragment,{children:[(0,a.jsx)(r,{}),(0,a.jsx)(d.O,{className:l("value")})]});return c||(v=null),(0,a.jsx)("div",{className:l(null,s),children:[...new Array(i)].map(((e,i)=>(0,a.jsx)("div",{className:l("row"),children:v},`skeleton-row-${i}`)))})}},84573:(e,i,s)=>{s.d(i,{B:()=>c});var t=s(79777),d=s(99294),o=s(74003),n=s(43464),a=s(10161);const l=(0,d.cn)("ydb-page-meta");function r(e){let{items:i,loading:s}=e;return(0,a.jsx)("div",{className:l("info"),children:s?(0,a.jsx)(n.O,{className:l("skeleton")}):i.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:i,...s}=e;return(0,a.jsxs)(t.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:l(null,i),children:[(0,a.jsx)(r,{...s}),(0,a.jsx)(o.q,{})]})}},43464:(e,i,s)=>{s.d(i,{O:()=>n});var t=s(5194),d=s(83658),o=s(10161);const n=e=>{let{delay:i=600,className:s}=e;const[n]=(0,d.$)(i);return n?(0,o.jsx)(t.O,{className:s}):null}},49038:(e,i,s)=>{s.r(i),s.d(i,{VDiskPage:()=>C});var t=s(34706);const d=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:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06l2.5-2.5Zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06ZM14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0ZM3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z",clipRule:"evenodd"}));var o=s(14561),n=s(64485),a=s(42152),l=s(99495),r=s(55982),c=s(89516),v=s(15327),u=s(21711),D=s(84573),k=s(49263),p=s(78759),g=s(65e3),m=s(39202),I=s(85709),x=s(53458),N=s(84953),h=s(96183);const f=p.h.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async(e,i)=>{let{nodeId:s,pDiskId:t,vDiskSlotId:d}=e,{signal:o}=i;try{const e=function(e){var i,s,t,d,o,n,a;let[l,r,c]=e;const v=null===(i=l.VDiskStateInfo)||void 0===i?void 0:i[0],u=(0,N.w)(v),D=null===(s=r.PDiskStateInfo)||void 0===s?void 0:s[0],k=(0,N.b)(D),p=null===(t=c.SystemStateInfo)||void 0===t?void 0:t[0],g=(0,h.Ns)(p),m=null!==(d=null!==(o=u.NodeId)&&void 0!==o?o:k.NodeId)&&void 0!==d?d:g.NodeId,I=g.Host,x=null===(n=g.Roles)||void 0===n?void 0:n[0],f=g.DC,j=null!==(a=u.PDiskId)&&void 0!==a?a:k.PDiskId,y=k.Type;return{...u,NodeId:m,NodeHost:I,NodeType:x,NodeDC:f,PDiskId:j,PDiskType:y}}(await Promise.all([window.api.getVDiskInfo({nodeId:s,pDiskId:t,vDiskSlotId:d},{signal:o}),window.api.getNodeWhiteboardPDiskInfo({nodeId:s,pDiskId:t},{signal:o}),window.api.getNodeInfo(s,{signal:o})]));return{data:e}}catch(n){return{error:n}}},providesTags:(e,i,s)=>["All",{type:"VDiskData",id:(0,x.FR)(s.nodeId,s.pDiskId,s.vDiskSlotId)}]})}),overrideExisting:"throw"});var j=s(25665),y=s(99294),w=s(55842),b=s(92025),S=s(37711);const V=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"}'),$=(0,S.wZ)("ydb-vDisk-page",{en:V});var P=s(10161);const T=(0,y.cn)("ydb-vdisk-page");function C(){const e=(0,w.zL)(),i=(0,w.ix)(g.VH),s=(0,m.X_)(),[{nodeId:N,pDiskId:h,vDiskSlotId:y}]=(0,l.useQueryParams)({nodeId:l.StringParam,pDiskId:l.StringParam,vDiskSlotId:l.StringParam});t.useEffect((()=>{e((0,I.J)("vDisk",{nodeId:N,pDiskId:h,vDiskSlotId:y}))}),[e,N,h,y]);const[S]=(0,w.Rj)(),V=(0,j.D)(N)&&(0,j.D)(h)&&(0,j.D)(y)?{nodeId:N,pDiskId:h,vDiskSlotId:y}:n.CN,{currentData:C={},isFetching:R,error:_}=f.useGetVDiskDataQuery(V,{pollingInterval:S}),E=R&&void 0===C,{NodeHost:F,NodeId:O,NodeType:B,NodeDC:H,PDiskId:q,PDiskType:G,Severity:M,VDiskId:Z}=C,{GroupID:A,GroupGeneration:J,Ring:L,Domain:Q,VDisk:Y}=Z||{},z=(0,j.D)(A)&&(0,j.D)(J)&&(0,j.D)(L)&&(0,j.D)(Q)&&(0,j.D)(Y),K=async e=>{if(z)return window.api[s?"evictVDisk":"evictVDiskOld"]({groupId:A,groupGeneration:J,failRealmIdx:L,failDomainIdx:Q,vDiskIdx:Y,force:e}).then((e=>{if(!1===(null===e||void 0===e?void 0:e.result)){throw{statusText:e.error,retryPossible:e.forceRetryPossible}}}))},U=()=>{e(p.h.util.invalidateTags([{type:"VDiskData",id:(0,x.FR)(N||0,h||0,y||0)},"StorageData"]))};return(0,P.jsxs)("div",{className:T(null),children:[(()=>{const e=y?`${$("vdisk")} ${y}`:$("vdisk"),i=h?`${$("pdisk")} ${h}`:$("pdisk"),s=F||$("node");return(0,P.jsx)(a.ql,{titleTemplate:`%s - ${e} - ${i} \u2014 ${s} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${i} \u2014 ${s} \u2014 YDB Monitoring`})})(),(()=>{const e=F?`${$("fqdn")}: ${F}`:void 0,i=O?`${$("node")}: ${O}`:void 0,s=O?`${$("pdisk")}: ${q}`:void 0;return(0,P.jsx)(D.B,{className:T("meta"),loading:E,items:[e,i,B,H,s,G]})})(),(0,P.jsx)(c.a,{className:T("title"),entityName:$("vdisk"),status:(0,x.b2)(M),id:null===C||void 0===C?void 0:C.StringifiedId}),(0,P.jsx)("div",{className:T("controls"),children:(0,P.jsxs)(r.U,{onConfirmAction:K,onConfirmActionSuccess:U,buttonDisabled:!z||!i,buttonView:"normal",dialogHeader:$("evict-vdisk-dialog-header"),dialogText:$("evict-vdisk-dialog-text"),retryButtonText:$("force-evict-vdisk-button"),withPopover:!0,popoverContent:$("evict-vdisk-not-allowed"),popoverDisabled:i,children:[(0,P.jsx)(o.J,{data:d}),$("evict-vdisk-button")]})}),E?(0,P.jsx)(u.b,{rows:20}):(0,P.jsxs)(t.Fragment,{children:[_?(0,P.jsx)(v.V,{error:_}):null,(0,P.jsx)(k.K,{data:C,className:T("info")}),(0,j.D)(A)&&(0,j.D)(N)?(0,P.jsxs)(t.Fragment,{children:[(0,P.jsx)("div",{className:T("storage-title"),children:$("storage")}),(0,P.jsx)(b.V,{groupId:A,nodeId:N,pDiskId:null!==h&&void 0!==h?h:void 0,vDiskSlotId:null!==y&&void 0!==y?y:void 0})]}):null]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6894.46e65325.chunk.js b/ydb/core/viewer/monitoring/static/js/6894.46e65325.chunk.js new file mode 100644 index 0000000000..3145cdf1eb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6894.46e65325.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6894],{21711:(e,t,s)=>{s.d(t,{b:()=>c});var r=s(34706),n=s(5194),l=s(99294),a=s(83658),o=s(10161);const i=(0,l.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(n.O,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:l=600}=e;const[c]=(0,a.$)(l);let u=(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(n.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}`)))})}},43464:(e,t,s)=>{s.d(t,{O:()=>a});var r=s(5194),n=s(83658),l=s(10161);const a=e=>{let{delay:t=600,className:s}=e;const[a]=(0,n.$)(t);return a?(0,l.jsx)(r.O,{className:s}):null}},13618:(e,t,s)=>{s.d(t,{$:()=>i});s(34706);var r=s(79777),n=s(99294),l=s(10161);const a=(0,n.cn)("tag"),o=e=>{let{text:t,type:s}=e;return(0,l.jsx)("div",{className:a({type:s}),children:t})},i=e=>{let{tags:t,tagsType:s,className:n="",gap:a=1}=e;return(0,l.jsx)(r.k,{className:n,gap:a,wrap:"wrap",alignItems:"center",children:t&&t.map(((e,t)=>(0,l.jsx)(o,{text:e,type:s},t)))})}},62787:(e,t,s)=>{s.r(t),s.d(t,{Cluster:()=>Et});var r=s(34706),n=s(5194),l=s(72555),a=s(42152),o=s(55783),i=s(99495),d=s(74003),c=s(62508),u=s(67653),v=s(46878),h=s(39202),m=s(10730),p=s(85709),x=s(99294),g=s(55842),j=s(80819),N=s(78294),f=s(58095),b=s(72427),y=s(71624),w=s(72616),C=s(34973),T=s(15327),k=s(91538),S=s(31580),P=s(52154),E=s(74116),O=s(17784),D=s(74640),L=s(83797),M=s(2194),_=s(60064),z=s(65e3),V=s(61168),A=s(90808),I=s(37711);const G=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),Z=(0,I.wZ)("ydb-tenant-name-wrapper",{en:G});var $=s(10161);const F=(e,t)=>{var s,r;if("function"!==typeof(null===t||void 0===t?void 0:t.prepareTenantBackend))return;let n=null!==(s=e.MonitoringEndpoint)&&void 0!==s?s:e.backend;const l=null!==(r=e.NodeIds)&&void 0!==r?r:e.sharedNodeIds;if(!n&&l&&l.length>0){n={NodeId:l[Math.floor(Math.random()*l.length)]}}return t.prepareTenantBackend(n)};function R(e){var t;let{tenant:s,additionalTenantsProps:r}=e;const n=(0,g.ix)(z.VH),l=F(s,r),a=Boolean(l),o=null===r||void 0===r||null===(t=r.getMonitoringLink)||void 0===t?void 0:t.call(r,s.Name,s.Type);return(0,$.jsx)(V.l,{disabled:!n||!o,delayClosing:200,content:o?(0,$.jsx)(L.w,{responsive:!0,children:(0,$.jsx)(L.w.Item,{name:Z("field_links"),children:(0,$.jsx)(A.j,{title:Z("field_monitoring-link"),url:o})})}):null,placement:["top","bottom"],behavior:M.x.Immediate,children:(0,$.jsx)(c.A,{externalLink:a,name:s.Name||Z("context_unknown"),withLeftTrim:!0,status:s.Overall,hasClipboardButton:!0,path:(0,_.Sj)({database:s.Name,backend:l})})})}var B=s(78276),W=s(32341),H=s(67386),U=s(78171),q=s.n(U),Q=s(77468),Y=s(27810),J=s(14739);const K=(0,H.P1)((e=>e),(e=>J.Xv.endpoints.getTenantsInfo.select({clusterName:e}))),X=(0,H.P1)((e=>e),((e,t)=>K(t)),(e=>(0,W.Cx)(e,Y.Zy)),((e,t,s)=>{var r;const n=null!==(r=t(e).data)&&void 0!==r?r:[];return!s&&n.length>1?n.filter((e=>"Domain"!==e.Type)):n})),ee=e=>e.tenants.searchValue,te=(0,H.P1)([X,W.qz,ee],((e,t,s)=>{let r=((e,t)=>t===W.pu.ALL?e:e.filter((e=>e.Overall&&e.Overall!==Q.K.Green)))(e,t);return r=((e,t)=>e.filter((e=>{const s=new RegExp(q()(t),"i");return s.test(e.Name||"")||s.test(e.controlPlaneName)})))(r,s),r}));var se=s(38980);const re=(0,x.cn)("tenants"),ne=e=>{let{additionalTenantsProps:t}=e;const s=(0,g.zL)(),[n]=(0,g.Rj)(),{currentData:l,isFetching:a,error:o}=J.Xv.useGetTenantsInfoQuery({clusterName:B.qw},{pollingInterval:n}),i=a&&void 0===l,d=(0,g.ix)((e=>X(e,B.qw))),c=(0,g.ix)(ee),u=(0,g.ix)((e=>te(e,B.qw))),v=(0,g.ix)(W.qz),h=e=>{s((0,W.M6)(e))},m=e=>{s((0,J.gI)(e))};return(0,$.jsxs)(D.l,{children:[(0,$.jsx)(D.l.Controls,{children:(0,$.jsxs)(r.Fragment,{children:[(0,$.jsx)(O.o,{value:c,onChange:m,placeholder:"Database name",className:re("search")}),(0,$.jsx)(P.T,{value:v,onChange:h}),(0,$.jsx)(C.C,{total:d.length,current:(null===u||void 0===u?void 0:u.length)||0,label:"Databases",loading:i})]})}),o?(0,$.jsx)(T.V,{error:o}):null,(0,$.jsx)(D.l.Table,{loading:i,children:l?(()=>{const e=[{name:"Name",header:"Database",render:e=>{let{row:s}=e;return(0,$.jsx)(R,{tenant:s,additionalTenantsProps:t})},width:440,sortable:!0,defaultOrder:y.ZP.DESCENDING},{name:"controlPlaneName",header:"Name",render:e=>{let{row:t}=e;return t.controlPlaneName},width:200,sortable:!0,defaultOrder:y.ZP.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:e=>{let{row:t}=e;return"Serverless"!==t.Type?t.Type:(0,$.jsxs)("div",{className:re("type"),children:[(0,$.jsx)("span",{className:re("type-value"),children:t.Type}),(0,$.jsx)(w.z,{className:re("type-button"),onClick:()=>m(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,se.LO)(t.cpu):"\u2014"},align:y.ZP.RIGHT,defaultOrder:y.ZP.DESCENDING},{name:"memory",header:"Memory",width:120,render:e=>{let{row:t}=e;return t.memory?(0,se.q3)(t.memory):"\u2014"},align:y.ZP.RIGHT,defaultOrder:y.ZP.DESCENDING},{name:"storage",header:"Storage",width:120,render:e=>{let{row:t}=e;return t.storage?(0,se.q3)(t.storage):"\u2014"},align:y.ZP.RIGHT,defaultOrder:y.ZP.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:e=>{let{row:t}=e;return t.nodesCount?(0,se.uf)(t.nodesCount):"\u2014"},align:y.ZP.RIGHT,defaultOrder:y.ZP.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:e=>{let{row:t}=e;return t.groupsCount?(0,se.uf)(t.groupsCount):"\u2014"},align:y.ZP.RIGHT,defaultOrder:y.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:y.ZP.DESCENDING,align:y.ZP.LEFT,render:e=>{let{row:t}=e;return(0,$.jsx)(S.m,{pools:t.PoolStats})}}];return 0===u.length&&v!==W.pu.ALL?(0,$.jsx)(k.Q,{name:"thumbsUp",width:"200"}):(0,$.jsx)(E.G,{columnsWidthLSKey:"databasesTableColumnsWidth",data:u,columns:e,settings:Y.LE,emptyDataMessage:"No such tenants"})})():null})]})};var le=s(67661),ae=s(19912),oe=s(66498),ie=s(88366),de=s(30963);const ce=(0,x.cn)("ydb-cluster-versions-bar"),ue=e=>{let{versionsValues:t=[],size:s="s",progressClassName:r}=e;return(0,$.jsxs)("div",{className:ce(),children:[(0,$.jsx)(de.E,{value:100,stack:t,size:s,className:r}),(0,$.jsx)("div",{className:ce("versions"),children:t.map(((e,s)=>(0,$.jsx)("div",{className:ce("version-title"),style:{color:e.color},title:e.version,children:`${e.version}${s===t.length-1?"":","}`},e.version)))})]})};var ve=s(83202),he=s(20760),me=s(96183),pe=s(75544);const xe=[{name:"NodeId",header:"#",width:80,resizeMinWidth:80,align:y.ZP.LEFT,render:e=>{let{row:t}=e;return t.NodeId}},{name:"Host",render:e=>{var t;let{row:s}=e;const r=s.Endpoints&&(null===(t=s.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address),n=s.Host&&`${s.Host}${r||""}`||"unknown",l=!(0,me.TA)(s)&&s.NodeId?(0,pe.a3)(s.NodeId):void 0;return(0,$.jsx)(c.A,{name:n,path:l,hasClipboardButton:!0,showStatus:!1})},width:400,align:y.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:y.ZP.LEFT},{name:"Uptime",header:"Uptime",sortAccessor:e=>{let{StartTime:t}=e;return t&&-t},width:120,align:y.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:y.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryUsed?(0,se.td)(t.MemoryUsed):"\u2014"},width:120,align:y.ZP.RIGHT},{name:"MemoryLimit",header:"Memory limit",sortAccessor:e=>{let{MemoryLimit:t=0}=e;return Number(t)},defaultOrder:y.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryLimit?(0,se.td)(t.MemoryLimit):"\u2014"},width:120,align:y.ZP.RIGHT},{name:"PoolStats",header:"Pools",sortAccessor:e=>{let{PoolStats:t=[]}=e;return t.reduce(((e,t)=>e+(t.Usage||0)),0)},defaultOrder:y.ZP.DESCENDING,width:80,resizeMinWidth:60,render:e=>{let{row:t}=e;return t.PoolStats?(0,$.jsx)(S.m,{pools:t.PoolStats}):"\u2014"},align:y.ZP.LEFT},{name:"LoadAverage",header:"Load average",sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:y.ZP.DESCENDING,width:170,resizeMinWidth:170,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,$.jsx)(he.y,{value:t.LoadAveragePercents[0],percents:!0,capacity:100,colorizeProgress:!0}):"\u2014"},align:y.ZP.LEFT}],ge=e=>{let{nodes:t}=e;return(0,$.jsx)(E.G,{columnsWidthLSKey:"versionsTableColumnsWidth",data:t,columns:xe,settings:Y.LE})};var je=s(99175);const Ne=(0,x.cn)("ydb-versions-nodes-tree-title"),fe=e=>{let t,{title:s,nodes:r,items:n,versionColor:l,versionsValues:a}=e;return t=n?n.reduce(((e,t)=>t.nodes?e+t.nodes.length:e),0):r?r.length:0,(0,$.jsxs)("div",{className:Ne("overview"),children:[(0,$.jsxs)("div",{className:Ne("overview-container"),children:[l?(0,$.jsx)("div",{className:Ne("version-color"),style:{background:l}}):null,s?(0,$.jsxs)("span",{className:Ne("overview-title"),children:[s,(0,$.jsx)(je.m,{text:s,size:"s",className:Ne("clipboard-button"),view:"normal"})]}):null]}),(0,$.jsxs)("div",{className:Ne("overview-info"),children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("span",{className:Ne("info-value"),children:t}),(0,$.jsx)("span",{className:Ne("info-label",{margin:"left"}),children:"Nodes"})]}),a?(0,$.jsxs)("div",{className:Ne("version-progress"),children:[(0,$.jsx)("span",{className:Ne("info-label",{margin:"right"}),children:"Versions"}),(0,$.jsx)(de.E,{size:"s",value:100,stack:a})]}):null]})]})},be=(0,x.cn)("ydb-versions-grouped-node-tree"),ye=e=>{let{title:t,nodes:s,items:n,expanded:l=!1,versionColor:a,versionsValues:o,level:i=0}=e;const[d,c]=r.useState(!1);r.useEffect((()=>{c(l)}),[l]);const u=(0,$.jsx)(fe,{title:t,nodes:s,items:n,versionColor:a,versionsValues:o}),v=()=>{c((e=>!e))};return n?(0,$.jsx)("div",{className:be({"first-level":0===i}),children:(0,$.jsx)(ve.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:n.map(((e,t)=>(0,$.jsx)(ye,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:i+1},t)))},t)}):(0,$.jsx)("div",{className:be({"first-level":0===i}),children:(0,$.jsx)(ve.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:(0,$.jsx)("div",{className:be("dt-wrapper"),children:(0,$.jsx)(ge,{nodes:s||[]})})},t)})};var we=s(69144),Ce=s.n(we),Te=s(58274);const ke=.5,Se=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 Ee(Object.keys(s).map((r=>{const n=s[r]/e.length*100;return{title:r,version:r,color:null===t||void 0===t?void 0:t.get((0,Te.H)(r)),value:n<ke?ke:n}})))};function Pe(e,t,s){const r=null!==s&&void 0!==s?s:e.reduce(((e,t)=>e+t.count),0);return Ee(e.map((e=>{const s=e.count/r*100;return{title:e.name,version:e.name,color:null===t||void 0===t?void 0:t.get(e.name),value:s<ke?ke:s}})))}function Ee(e){let t=e[0].value,s=0,r=0;e.forEach(((e,n)=>{r+=e.value,e.value>t&&(t=e.value,s=n)}));const n=[...e];return n[s]={...e[s],value:t+100-r},n}let Oe;!function(e){e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage"}(Oe||(Oe={}));const De=(e,t)=>{var s;return(null===(s=e.title)||void 0===s?void 0:s.localeCompare(t.title||""))||-1},Le=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Me=(0,I.wZ)("ydb-versions",{en:Le});var _e=s(64485),ze=s(39242);const Ve=(0,x.cn)("ydb-versions"),Ae=e=>{let{versionToColor:t,cluster:s}=e;const[n]=(0,g.Rj)(),l=((e,t)=>{const{currentData:s}=ie.k.useGetNodesQuery((0,ze.j)(e)?_e.CN:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return r.useMemo((()=>(0,ze.j)(e)&&e.MapVersions?Pe(Object.entries(e.MapVersions).map((e=>{let[t,s]=e;return{name:t,count:s}})),t,e.NodesTotal):s?Array.isArray(s.NodeGroups)?Pe(s.NodeGroups,t,null===e||void 0===e?void 0:e.NodesTotal):Se(s.Nodes,t):[]),[s,t,e])})(s,t),{currentData:a,isLoading:o}=ie.k.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),i=null===a||void 0===a?void 0:a.Nodes,[d,c]=r.useState(Oe.VERSION),[u,v]=r.useState(!1),h=e=>{c(e)};if(o)return(0,$.jsx)(oe.a,{});const m=((e,t,s)=>{if(e&&e.length){if(s===Oe.VERSION){const s=Ce()(e,"Version");return Object.keys(s).map((e=>{const r=s[e].filter((e=>{let{Tenants:t}=e;return Boolean(t)})),n=Ce()(r,"Tenants"),l=Object.keys(n).map((e=>({title:e,nodes:n[e]}))).sort(De);return l.length?{title:e,items:l,versionColor:null===t||void 0===t?void 0:t.get((0,Te.H)(e))}:null})).filter((e=>Boolean(e)))}{const s=e.filter((e=>{let{Tenants:t}=e;return Boolean(t)})),r=Ce()(s,"Tenants");return Object.keys(r).map((e=>{const s=Se(r[e],t),n=Ce()(r[e],"Version"),l=Object.keys(n).map((e=>({title:e,nodes:n[e],versionColor:null===t||void 0===t?void 0:t.get((0,Te.H)(e))})));return l.length?{title:e,items:l,versionsValues:s}:null})).filter((e=>Boolean(e))).sort(De)}}})(i,t,d),p=((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")})),r=Ce()(s,"Version");return Object.keys(r).map((e=>({title:e,nodes:r[e],versionColor:null===t||void 0===t?void 0:t.get((0,Te.H)(e))})))})(i,t),x=((e,t)=>{if(!e||!e.length)return;const s=e.filter((e=>{let{Roles:t,Version:s}=e;return!t&&s})),r=Ce()(s,"Version");return Object.keys(r).map((e=>({title:e,nodes:r[e],versionColor:null===t||void 0===t?void 0:t.get((0,Te.H)(e))})))})(i,t),j=null!==p&&void 0!==p&&p.length?(0,$.jsxs)(r.Fragment,{children:[(0,$.jsx)("h4",{children:Me("title_storage")}),p.map((e=>{let{title:t,nodes:s,items:r,versionColor:n}=e;return(0,$.jsx)(ye,{title:t,nodes:s,items:r,versionColor:n},`storage-nodes-${t}`)}))]}):null,N=null!==m&&void 0!==m&&m.length?(0,$.jsxs)(r.Fragment,{children:[(0,$.jsx)("h4",{children:Me("title_database")}),(0,$.jsxs)("div",{className:Ve("controls"),children:[(0,$.jsxs)("div",{className:Ve("group"),children:[(0,$.jsx)("span",{className:Ve("label"),children:"Group by:"}),(0,$.jsxs)(le.E,{value:d,onUpdate:h,children:[(0,$.jsx)(le.E.Option,{value:Oe.TENANT,children:Oe.TENANT}),(0,$.jsx)(le.E.Option,{value:Oe.VERSION,children:Oe.VERSION})]})]}),(0,$.jsx)(ae.X,{className:Ve("checkbox"),onChange:()=>v((e=>!e)),checked:u,children:"All expanded"})]}),m.map((e=>{let{title:t,nodes:s,items:r,versionColor:n,versionsValues:l}=e;return(0,$.jsx)(ye,{title:t,nodes:s,items:r,expanded:u,versionColor:n,versionsValues:l},`tenant-nodes-${t}`)}))]}):null,f=null!==x&&void 0!==x&&x.length?(0,$.jsxs)(r.Fragment,{children:[(0,$.jsx)("h4",{children:Me("title_other")}),x.map((e=>{let{title:t,nodes:s,items:r,versionColor:n,versionsValues:l}=e;return(0,$.jsx)(ye,{title:t,nodes:s,items:r,versionColor:n,versionsValues:l},`other-nodes-${t}`)}))]}):null,b=(0,$.jsxs)(r.Fragment,{children:[(0,$.jsx)("h4",{children:Me("title_overall")}),(0,$.jsx)("div",{className:Ve("overall-wrapper"),children:(0,$.jsx)(ue,{progressClassName:Ve("overall-progress"),versionsValues:l.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,$.jsxs)("div",{className:Ve(),children:[b,j,N,f]})};var Ie=s(23795),Ge=s(79777),Ze=s(13618),$e=s(25665);const Fe=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),Re=(0,I.wZ)("ydb-cluster",{en:Fe});var Be=s(29331);const We=(0,x.cn)("ydb-doughnut-metrics");function He(e){let{status:t,fillWidth:s,children:r,className:n}=e,l="var(--g-color-line-generic-solid)",a=3.6*s-90;s>50&&(l="var(--doughnut-color)",a=3.6*s+90);const o=a;return(0,$.jsx)("div",{className:We(null,n),children:(0,$.jsx)("div",{style:{backgroundImage:`linear-gradient(${o}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:We("doughnut",{status:t}),children:(0,$.jsx)("div",{className:We("text-wrapper"),children:r})})})}He.Legend=function(e){let{children:t,variant:s="subheader-3"}=e;return(0,$.jsx)(Ie.x,{variant:s,color:"secondary",className:We("legend"),children:t})},He.Value=function(e){let{children:t,variant:s="subheader-2"}=e;return(0,$.jsx)(Ie.x,{variant:s,color:"secondary",className:We("value"),children:t})};var Ue=s(43464);const qe=(0,x.cn)("ydb-cluster-dashboard");function Qe(e){let{children:t,title:s,size:r,className:n}=e;return(0,$.jsxs)(Be.Q,{className:qe("card",{size:r},n),size:r,interactive:!1,children:[s?(0,$.jsx)(Ie.x,{variant:"subheader-3",className:qe("card-title"),children:s}):null,t]})}function Ye(e){let{title:t,children:s,size:r,...n}=e;return(0,$.jsx)(Qe,{title:t,size:r,children:(0,$.jsx)(He,{...n,className:qe("doughnut"),children:s})})}function Je(){return(0,$.jsx)(Qe,{className:qe("skeleton-wrapper"),children:(0,$.jsx)(Ue.O,{className:qe("skeleton")})})}function Ke(){return(0,$.jsxs)(r.Fragment,{children:[(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{})]})}var Xe=s(95440),et=s(20134),tt=s(43926),st=s(10142);const rt=(0,x.cn)("ydb-disk-groups-stats"),nt=e=>{let{stats:t,children:s}=e;return(0,$.jsx)("div",{className:rt(),children:(0,$.jsx)(tt.f,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(lt,{stats:t}),children:s})})};function lt(e){let{stats:t}=e;const{diskType:s,erasure:r,allocatedSize:n,availableSize:l}=t,a=(0,st.dT)(Math.max(n,l),2),o=(0,st.td)({value:n,size:a}),i=(0,st.td)({value:l,size:a}),d=Math.round(n/(n+l)*100),c=[{name:Re("disk-type"),content:s},{name:Re("erasure"),content:r},{name:Re("allocated"),content:o},{name:Re("available"),content:i},{name:Re("usage"),content:d+"%"}];return(0,$.jsx)(et.w,{items:c,className:rt("popup-content"),responsive:!0})}function at(e){let{value:t,capacity:s,colorizeProgress:r=!0,warningThreshold:n=60,dangerThreshold:l=80,inverseColorize:a=!1,legendFormatter:o}=e;const i=parseFloat(String(t)),d=parseFloat(String(s));let c=i/d*100||0;c=c>100?100:c;const u=c<1?.5:c;return{status:(0,Xe.S)({fillWidth:c,warningThreshold:n,dangerThreshold:l,colorizeProgress:r,inverseColorize:a}),percents:(0,se.T3)(c/100),legend:o({value:i,capacity:d}),fill:u}}const ot=["storage","tenant"];const it=e=>Object.values(e).reduce(((e,t)=>(Object.values(t).forEach((t=>{e+=t.createdGroups})),e)),0);function dt(e){let{value:t,capacity:s}=e,r=[];return r=s<1e4?[(0,se.uf)(Math.round(t)),(0,se.uf)(Math.round(s))]:(0,se.cN)(t,s,void 0,"",!0),`${r[0]} / ${r[1]}\n${Re("context_cores")}`}function ct(e){let{value:t,capacity:s,...r}=e;const{status:n,percents:l,legend:a,fill:o}=at({value:t,capacity:s,legendFormatter:dt,...r});return(0,$.jsxs)(Ye,{status:n,fillWidth:o,title:Re("title_cpu"),children:[(0,$.jsx)(He.Legend,{children:a}),(0,$.jsx)(He.Value,{children:l})]})}function ut(e){let{value:t,capacity:s}=e;const r=(0,se.QO)(t,s,void 0,"\n");return`${r[0]} / ${r[1]}`}function vt(e){let{value:t,capacity:s,...r}=e;const{status:n,percents:l,legend:a,fill:o}=at({value:t,capacity:s,legendFormatter:ut,...r});return(0,$.jsxs)(Ye,{status:n,fillWidth:o,title:Re("title_memory"),children:[(0,$.jsx)(He.Legend,{children:a}),(0,$.jsx)(He.Value,{children:l})]})}function ht(e){let{value:t,capacity:s}=e;const r=(0,se.QO)(t,s,void 0,"\n");return`${r[0]} / ${r[1]}`}function mt(e){let{value:t,capacity:s,...r}=e;const{status:n,percents:l,legend:a,fill:o}=at({value:t,capacity:s,legendFormatter:ht,...r});return(0,$.jsxs)(Ye,{status:n,fillWidth:o,title:Re("title_storage"),children:[(0,$.jsx)(He.Legend,{children:a}),(0,$.jsx)(He.Value,{children:l})]})}function pt(e){let{value:t}=e;return(0,$e.D)(t)?(0,$.jsx)(Ie.x,{variant:"subheader-3",color:"secondary",children:(0,se.uf)(t)}):null}function xt(e){let{cluster:t,...s}=e;return s.error?(0,$.jsx)(T.V,{error:s.error,className:qe("error")}):(0,$.jsx)("div",{className:qe(),children:(0,$.jsxs)(Ge.k,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.k,{gap:4,wrap:"nowrap",children:(0,$.jsx)(gt,{...s,cluster:t})}),(0,$.jsx)("div",{className:qe("cards-container"),children:(0,$.jsx)(jt,{...s,cluster:t})})]})})}function gt(e){let{cluster:t,loading:s}=e;if(s)return(0,$.jsx)(Ke,{});const r=[];if((0,ze.j)(t)){const{CoresUsed:e,NumberOfCpus:s,CoresTotal:n}=t,l=null!==n&&void 0!==n?n:s;(0,$e.D)(e)&&(0,$e.D)(l)&&r.push((0,$.jsx)(ct,{value:e,capacity:l},"cores"))}const{StorageTotal:n,StorageUsed:l}=t;(0,$e.D)(n)&&(0,$e.D)(l)&&r.push((0,$.jsx)(mt,{value:l,capacity:n},"storage"));const{MemoryTotal:a,MemoryUsed:o}=t;return(0,$e.D)(a)&&(0,$e.D)(o)&&r.push((0,$.jsx)(vt,{value:o,capacity:a},"memory")),r}function jt(e){let{cluster:t,groupStats:s={},loading:n}=e;if(n)return null;const l=[],a=function(e){const t=[];if((0,ze.j)(e)&&e.MapNodeRoles)for(const[s,n]of Object.entries(e.MapNodeRoles))ot.includes(s.toLowerCase())&&t.push((0,$.jsxs)(r.Fragment,{children:[s,": ",(0,se.uf)(n)]},s));return t}(t);if(l.push((0,$.jsx)(Qe,{size:"l",title:Re("label_nodes"),children:(0,$.jsxs)(Ge.k,{gap:2,direction:"column",children:[(0,$.jsx)(pt,{value:null===t||void 0===t?void 0:t.NodesAlive}),null!==a&&void 0!==a&&a.length?(0,$.jsx)(Ze.$,{tags:a,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const t=[];return Object.entries(e).forEach((e=>{let[s,r]=e;Object.values(r).forEach((e=>{t.push((0,$.jsxs)(nt,{stats:e,children:[s,": ",(0,se.uf)(e.createdGroups)," /"," ",(0,se.uf)(e.totalGroups)]},`${s}|${e.erasure}`))}))})),t}(s),t=it(s);l.push((0,$.jsx)(Qe,{size:"l",title:Re("label_storage-groups"),children:(0,$.jsxs)(Ge.k,{gap:2,direction:"column",children:[(0,$.jsx)(pt,{value:t}),(0,$.jsx)(Ze.$,{tags:e,gap:3})]})},"groups"))}const o=function(e){var t;return(0,ze.j)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(t=e.DataCenters)||void 0===t?void 0:t.filter(Boolean)}(t);return null!==o&&void 0!==o&&o.length&&l.push((0,$.jsx)(Qe,{size:"l",title:Re("label_hosts"),children:(0,$.jsxs)(Ge.k,{gap:2,direction:"column",children:[(0,$.jsx)(pt,{value:null===t||void 0===t?void 0:t.Hosts}),(0,$.jsx)(Ze.$,{tags:o,gap:3})]})},"hosts")),t.Tenants&&l.push((0,$.jsx)(Qe,{size:"l",title:Re("label_databases"),children:(0,$.jsx)(pt,{value:null===t||void 0===t?void 0:t.Tenants})},"tenants")),l}var Nt=s(43862),ft=s(21711);const bt=(0,x.cn)("cluster-info");s(9038);const yt=(0,x.cn)("ydb-nodes-state");function wt(e){let{state:t,children:s}=e;return(0,$.jsx)("div",{className:yt({[t.toLowerCase()]:!0}),children:s})}const Ct={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},Tt=(e,t,s)=>{const n=[];if((0,ze.j)(e)&&e.MapNodeStates){const t=Object.entries(e.MapNodeStates);t.sort(((e,t)=>Ct[t[0]]-Ct[e[0]]));const s=t.map((e=>{let[t,s]=e;return(0,$.jsx)(wt,{state:t,children:(0,se.uf)(s)},t)}));n.push({label:Re("label_nodes-state"),value:(0,$.jsx)(Ge.k,{gap:2,children:s})})}const l=(e=>{if((0,ze.j)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((e=>{let[t,s]=e;return(0,$.jsxs)(r.Fragment,{children:[t,": ",(0,se.uf)(s)]},t)}))})(e);return null!==l&&void 0!==l&&l.length&&n.push({label:Re("label_dc"),value:(0,$.jsx)(Ze.$,{tags:l,gap:2})}),n.push({label:Re("label_load"),value:(0,$.jsx)(he.y,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),n.push(...t),s.length&&n.push({label:Re("links"),value:(0,$.jsx)("div",{className:bt("links"),children:s.map((e=>{let{title:t,url:s}=e;return(0,$.jsx)(A.j,{title:t,url:s},t)}))})}),n},kt=e=>{let{cluster:t,loading:s,error:r,additionalClusterProps:n={}}=e;const{info:l=[],links:a=[]}=n,o=Tt(null!==t&&void 0!==t?t:{},l,a);return(0,$.jsxs)("div",{className:bt(),children:[r?(0,$.jsx)(T.V,{error:r,className:bt("error")}):null,(0,$.jsx)("div",{className:bt("info"),children:s?(0,$.jsx)(ft.b,{className:bt("skeleton"),rows:9}):r&&!t?null:(0,$.jsx)(Nt._,{dots:!0,info:o})})]})};var St=s(4128);const Pt=(0,x.cn)("ydb-cluster");function Et(e){let{additionalClusterProps:t,additionalTenantsProps:s,additionalNodesProps:x,additionalVersionsProps:y}=e;const w=r.useRef(null),C=(0,h.I8)(),T=(0,g.zL)(),k=function(){const e=(0,g.zL)(),t=(0,g.ix)((e=>e.cluster.defaultClusterTab)),s=(0,o.$B)(v.ZP.cluster),{activeTab:n}=(null===s||void 0===s?void 0:s.params)||{};let l;l=(0,St.V2)(n)?n:t;return r.useEffect((()=>{l!==t&&e((0,m.LQ)(l))}),[l,t,e]),l}(),[{clusterName:S,backend:P}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),E=(0,g.ix)((e=>(0,m.le)(e,null!==S&&void 0!==S?S:void 0))),{data:{clusterData:O={},groupsStats:D}={},isLoading:L,error:M}=m.UM.useGetClusterInfoQuery(null!==S&&void 0!==S?S:void 0),_=M&&"object"===typeof M?M:void 0,z=(0,g.ix)((e=>(0,m.DS)(e,null!==S&&void 0!==S?S:void 0)));r.useEffect((()=>{T((0,p.J)("cluster",{}))}),[T]);const V=r.useMemo((()=>null!==y&&void 0!==y&&y.getVersionToColorMap?null===y||void 0===y?void 0:y.getVersionToColorMap():(0,j.ZP)(null===O||void 0===O?void 0:O.Versions)),[y,O]),A=r.useMemo((()=>St._Y.find((e=>{let{id:t}=e;return t===k}))),[k]);return(0,$.jsxs)("div",{className:Pt(),ref:w,children:[(0,$.jsx)(a.ql,{defaultTitle:`${E} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${E} \u2014 YDB Monitoring`,children:A?(0,$.jsx)("title",{children:A.title}):null}),(0,$.jsx)("div",{className:Pt("header"),children:L?(0,$.jsx)(n.O,{className:Pt("title-skeleton")}):(0,$.jsx)(c.A,{size:"m",status:null===O||void 0===O?void 0:O.Overall,name:E,className:Pt("title")})}),(0,$.jsx)("div",{className:Pt("sticky-wrapper"),children:(0,$.jsx)(d.q,{className:Pt("auto-refresh-control")})}),C&&(0,$.jsx)(xt,{cluster:O,groupStats:D,loading:L,error:_||(null===O||void 0===O?void 0:O.error)}),(0,$.jsx)("div",{className:Pt("tabs-sticky-wrapper"),children:(0,$.jsx)(l.m,{size:"l",allowNotSelected:!0,activeTab:k,items:St._Y,wrapTo:(e,t)=>{let{id:s}=e;const r=(0,St.B7)(s,{clusterName:S,backend:P});return(0,$.jsx)(u.h,{to:r,onClick:()=>{T((0,m.LQ)(s))},children:t},s)}})}),(0,$.jsxs)(o.rs,{children:[(0,$.jsx)(o.AW,{path:(0,v.Fz)((0,St.B7)(St.xu.overview)).pathname,children:(0,$.jsx)(kt,{cluster:O,versionToColor:V,loading:L,error:_,additionalClusterProps:t})}),(0,$.jsx)(o.AW,{path:(0,v.Fz)((0,St.B7)(St.xu.tablets)).pathname,children:(0,$.jsx)("div",{className:Pt("tablets"),children:(0,$.jsx)(b.O,{loading:L,tablets:z,className:Pt("tablets-table")})})}),(0,$.jsx)(o.AW,{path:(0,v.Fz)((0,St.B7)(St.xu.tenants)).pathname,children:(0,$.jsx)(ne,{additionalTenantsProps:s})}),(0,$.jsx)(o.AW,{path:(0,v.Fz)((0,St.B7)(St.xu.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:w,additionalNodesProps:x})}),(0,$.jsx)(o.AW,{path:(0,v.Fz)((0,St.B7)(St.xu.storage)).pathname,children:(0,$.jsx)(f.V,{parentRef:w})}),(0,$.jsx)(o.AW,{path:(0,v.Fz)((0,St.B7)(St.xu.versions)).pathname,children:(0,$.jsx)(Ae,{versionToColor:V,cluster:O})}),(0,$.jsx)(o.AW,{render:()=>(0,$.jsx)(o.l_,{to:(0,v.Fz)((0,St.B7)(k))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6906.a88e05fd.chunk.js b/ydb/core/viewer/monitoring/static/js/6906.a88e05fd.chunk.js deleted file mode 100644 index 6f0899733d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6906.a88e05fd.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6906],{20134:(e,t,n)=>{"use strict";n.d(t,{w:()=>v});var a=n(34706),s=n(99175);const l=(0,n(38534).G)("definition-list");const o=e=>"label"in e&&!("name"in e);function i(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function r(e){let{copyText:t,content:n,copyPosition:o}=e;const i="inside"===o,r=null!==n&&void 0!==n?n:"\u2014";return t?a.createElement("div",{className:l("copy-container",{"icon-inside":i})},a.createElement("span",null,r),a.createElement(s.m,{size:"s",text:t,className:l("copy-button"),view:i?"raised":"flat-secondary"})):r}var c=n(23795);function d(e){let{label:t}=e;return a.createElement("div",{className:l("title")},a.createElement(c.x,{variant:"subheader-1",color:"complementary"},t))}var m=n(91807);function u(e){let{note:t}=e;if(!t)return null;const n=l("item-note-tooltip");return"string"===typeof t?a.createElement(m.J,{className:n,content:t,placement:["bottom","top"]}):"object"===typeof t?a.createElement(m.J,Object.assign({className:n,placement:["bottom","top"]},t)):null}function p(e){let{note:t,name:n,nameTitle:s,multilineName:o}=e;const r=a.createElement(a.Fragment,null,"\xa0",a.createElement(u,{note:t}));return a.createElement(a.Fragment,null,a.createElement("div",{className:l("term-wrapper")},a.createElement("span",{title:i(s,n)},n),o&&r),!o&&r,a.createElement("div",{className:l("dots",{"with-note":Boolean(t)})}))}function v(e){let{items:t,responsive:n,nameMaxWidth:s,contentMaxWidth:c="auto",className:m,itemClassName:u,copyPosition:v="outside",qa:h}=e;const E=s?{flexBasis:s}:{},b="number"===typeof c?{flexBasis:c,maxWidth:c}:{},f=a.useMemo((()=>function(e){return e.reduce(((e,t)=>{var n;if(o(t)){e.push({label:t.label});const a=[...null!==(n=t.items)&&void 0!==n?n:[]].map((e=>Object.assign(Object.assign({},e),{isGrouped:!0})));e.push(...a)}else e.push(t);return e}),[])}(t).map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("dl",{className:l({responsive:n},m),"data-qa":h},f.map((e=>{if(o(e)){const{key:t,label:n}=e;return a.createElement(d,{key:t,label:n})}const{name:t,key:n,content:s,contentTitle:c,nameTitle:m,copyText:h,note:f,multilineName:y,isGrouped:w}=e;return a.createElement("div",{key:n,className:l("item",{grouped:w},u)},a.createElement("dt",{className:l("term-container",{multiline:y}),style:E},a.createElement(p,{name:t,nameTitle:m,note:f,multilineName:y})),a.createElement("dd",{className:l("definition"),title:i(c,s),style:Object.assign(Object.assign({},b),{lineBreak:"string"===typeof s&&(N=20,function(e){return e.split(/\s+/).some((e=>e.length>N))})(s)?"anywhere":void 0})},a.createElement(r,{copyPosition:v,copyText:h,content:s})));var N})))}},91807:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var a=n(34706),s=n(29837),l=n(16318),o=n(14561);const i=(0,n(38534).G)("help-popover"),r=16;function c(e){var t;return a.createElement(l.J,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(o.J,{data:s.Z,size:r})))}},38534:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var a=n(95936);(0,a.withNaming)({e:"__",m:"_",v:"_"});const s=(0,a.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},73878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(34706);const s=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.501 6.501 0 0 0-6.445 5.649.75.75 0 1 0 1.488.194A5.001 5.001 0 0 1 11.57 4.5h-1.32a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.06A6.48 6.48 0 0 0 8 1.5Zm-5.25 13a.75.75 0 0 1-.75-.75v-3a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5H4.43a5.001 5.001 0 0 0 8.528-2.843.75.75 0 1 1 1.487.194A6.501 6.501 0 0 1 3.5 12.691v1.059a.75.75 0 0 1-.75.75Z",clipRule:"evenodd"}))},3948:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(34706);const s=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 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},19912:(e,t,n)=>{"use strict";n.d(t,{X:()=>c});var a=n(34706),s=n(75447),l=n(19694);function o(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.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 r=(0,n(87578).Ge)("checkbox"),c=a.forwardRef((function(e,t){const{size:n="m",indeterminate:c,disabled:d=!1,content:m,children:u,title:p,style:v,className:h,qa:E}=e,{checked:b,inputProps:f}=(0,s.O)(e),y=m||u,w=a.createElement("span",{className:r("indicator")},a.createElement("span",{className:r("icon"),"aria-hidden":!0},c?a.createElement(o,{className:r("icon-svg",{type:"dash"})}):a.createElement(i,{className:r("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},f,{className:r("control")})),a.createElement("span",{className:r("outline")}));return a.createElement(l.J,{ref:t,title:p,style:v,size:n,disabled:d,className:r({size:n,disabled:d,indeterminate:c,checked:b},h),qa:E,control:w},y)}))},68585:(e,t,n)=>{"use strict";n.d(t,{V:()=>K});var a=n(34706),s=n(77498),l=n(9446),o=n(38873),i=n(41715),r=n(47741),c=n(87578),d=n(90512),m=n(98960);const u=(0,c.Ge)("modal");function p(e){let{open:t=!1,keepMounted:n=!1,disableBodyScrollLock:c=!1,disableEscapeKeyDown:p,disableOutsideClick:v,disableFocusTrap:h,disableAutoFocus:E,focusTrap:b=!0,autoFocus:f=!0,restoreFocusRef:y,onEscapeKeyDown:w,onEnterKeyDown:N,onOutsideClick:g,onClose:x,onTransitionEnter:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:T,children:j,style:B,contentOverflow:K="visible",className:D,contentClassName:L,"aria-labelledby":z,"aria-label":R,container:_,qa:A}=e;const F=a.useRef(null),G=a.useRef(null),[M,P]=a.useState(!1);(0,l.y)({enabled:!c&&(t||M)});const S=(0,o.H)({enabled:t||M,restoreFocusRef:y,focusTrapped:!0});return(0,d.s)({open:t,disableEscapeKeyDown:p,disableOutsideClick:v,onEscapeKeyDown:w,onEnterKeyDown:N,onOutsideClick:g,onClose:x,contentRefs:[G],type:"modal"}),a.createElement(s.Z,{nodeRef:F,in:t,addEndListener:e=>{var t;return null===(t=F.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,m.Y)(u),mountOnEnter:!n,unmountOnExit:!n,appear:!0,onEnter:()=>{P(!0),null===k||void 0===k||k()},onExit:()=>{P(!0),null===O||void 0===O||O()},onEntered:()=>{P(!1),null===C||void 0===C||C()},onExited:()=>{P(!1),null===T||void 0===T||T()}},a.createElement(i.h,{container:_},a.createElement("div",{ref:F,style:B,className:u({open:t},D),"data-qa":A},a.createElement("div",{className:u("content-aligner")},a.createElement("div",{className:u("content-wrapper")},a.createElement(r.i,{enabled:!h&&b&&t&&!M,autoFocus:!E&&f},a.createElement("div",Object.assign({ref:G,tabIndex:-1,role:"dialog","aria-modal":t,"aria-label":R,"aria-labelledby":z,className:u("content",{"has-scroll":"auto"===K},L)},S),j)))))))}var v=n(2915),h=n(72616),E=n(14561),b=n(3581);const f=JSON.parse('{"close":"Close dialog"}'),y=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,b.e)({en:f,ru:y},"Dialog"),N=(0,c.Ge)("dialog-btn-close");function g(e){let{onClose:t}=e;return a.createElement("div",{className:N()},a.createElement(h.z,{view:"flat",size:"l",className:N("btn"),onClick:e=>t(e,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},a.createElement(E.J,{data:v.Z,size:20})))}const x=(0,c.Ge)("dialog-body");const k=(0,c.Ge)("dialog-divider");var C=n(24874);const O=(0,c.Ge)("dialog-footer");class T extends a.Component{constructor(){super(...arguments),this.errorTooltipRef=a.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:s,textButtonApply:l,propsButtonCancel:o,propsButtonApply:i,preset:r,children:c,errorText:d,showError:m,renderButtons:u,className:p}=this.props,v=a.createElement("div",{className:O("button",{action:"cancel"})},a.createElement(h.z,Object.assign({view:l?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},o),s)),E=a.createElement("div",{className:O("button",{action:"apply"})},a.createElement(h.z,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:O("button-apply",{preset:r})},i),l),d&&a.createElement(C.G,{open:m,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},a.createElement("div",{className:O("error")},d)));return a.createElement("div",{className:O(null,p)},a.createElement("div",{className:O("children")},c),a.createElement("div",{className:O("bts-wrapper")},u?u(E,v):a.createElement(a.Fragment,null,s&&v,l&&E)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}T.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const j=(0,c.Ge)("dialog-header");const B=(0,c.Ge)("dialog");class K extends a.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:s,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,size:m,contentOverflow:u="visible",className:v,modalClassName:h,hasCloseButton:E,onEscapeKeyDown:b,onEnterKeyDown:f,onOutsideClick:y,onClose:w,onTransitionEnter:N,onTransitionEntered:x,onTransitionExit:k,onTransitionExited:C,"aria-label":O,"aria-labelledby":T,qa:j}=this.props;return a.createElement(p,{open:n,contentOverflow:u,disableBodyScrollLock:s,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,onEscapeKeyDown:b,onEnterKeyDown:f,onOutsideClick:y,onClose:w,onTransitionEnter:N,onTransitionEntered:x,onTransitionExit:k,onTransitionExited:C,className:B("modal",h),"aria-label":O,"aria-labelledby":T,container:e,qa:j},a.createElement("div",{className:B({size:m,"has-close":E,"has-scroll":"auto"===u},v)},t,E&&a.createElement(g,{onClose:this.handleCloseButtonClick})))}}K.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},K.Footer=T,K.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:s,className:l,id:o}=e;return a.createElement("div",{className:j(null,l)},n,a.createElement("div",{className:j("caption"),id:o},t),s)},K.Body=function(e){const{className:t,hasBorders:n=!1}=e;return a.createElement("div",{className:x({"has-borders":n},t)},e.children)},K.Divider=function(e){let{className:t}=e;return a.createElement("div",{className:k(null,t)})}},30963:(e,t,n)=>{"use strict";n.d(t,{E:()=>m});var a=n(34706);const s=(0,n(87578).Ge)("progress");function l(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function o(e){let{item:t}=e;const{value:n,color:l,className:o,theme:i,title:r,content:c,loading:d}=t,m={loading:d};return"undefined"===typeof l&&(m.theme=i||"default"),Number.isFinite(n)?a.createElement("div",{className:s("item",m,o),style:{width:`${n}%`,backgroundColor:l},title:r},c):null}function i(e){return e<100?e-100:0}function r(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const l="number"===typeof a?a:s,o=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return l>=o&&l<=i}));return e?e.theme:t}return t}function c(e){const{stack:t,stackClassName:n,value:r,text:c}=e,d=i(r||function(e){return e.reduce(((e,t)=>{let{value:n}=t;return e+n}),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},a.createElement("div",{className:s("item"),style:{width:-d+"%"}}),t.map(((e,t)=>a.createElement(o,{key:t,item:e}))),a.createElement(l,{offset:d,text:c}))}function d(e){const{value:t,loading:n,text:o}=e,c=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:r(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},a.createElement(l,{offset:c,text:o})):null}const m=a.forwardRef((function(e,t){const{text:n="",theme:l="default",size:o="m",loading:i=!1,className:r,qa:m}=e,u=Object.assign(Object.assign({},e),{text:n,theme:l,size:o,loading:i});return a.createElement("div",{ref:t,className:s({size:o},r),"data-qa":m},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(u)?a.createElement(c,Object.assign({},u)):a.createElement(d,Object.assign({},u)))}))},55658:e=>{e.exports=function(e,t,n,a){for(var s=-1,l=null==e?0:e.length;++s<l;){var o=e[s];t(a,o,n(o),e)}return a}},25116:(e,t,n)=>{var a=n(54655);e.exports=function(e,t,n,s){return a(e,(function(e,a,l){t(s,e,n(e),l)})),s}},99902:(e,t,n)=>{var a=n(55658),s=n(25116),l=n(17370),o=n(97182);e.exports=function(e,t){return function(n,i){var r=o(n)?a:s,c=t?t():{};return r(n,e,l(i,2),c)}}},69144:(e,t,n)=>{var a=n(91560),s=n(99902),l=Object.prototype.hasOwnProperty,o=s((function(e,t,n){l.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=o},83202:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var a=n(10161),s=n(34706),l=n(36413),o=n(67303);const i="--ydb-tree-view-level",r=(0,o.G)("ydb-tree-view");function c(e){let{children:t,name:n,title:o,icon:c,collapsed:d=!0,active:m=!1,onClick:u,onArrowClick:p,hasArrow:v=!1,actions:h,additionalNodeElements:E,level:b}=e;const f=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),y=p||u;let w="tree-view_arrow",N="tree-view_children";return d&&(w+=" tree-view_arrow-collapsed",N+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:r(),style:{[i]:b},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${r("item",{active:m})}`,onClick:f,children:[(0,a.jsx)("button",{type:"button",className:`${w} ${r("arrow",{collapsed:d,hidden:!v})}`,disabled:!y,onClick:y}),(0,a.jsxs)("div",{className:r("content"),children:[c&&(0,a.jsx)("div",{className:r("icon"),children:c}),(0,a.jsx)("div",{className:r("text"),title:o,children:n}),h&&h.length>0&&(0,a.jsxs)("div",{className:r("actions"),children:[E,(0,a.jsx)(l.h,{defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:h})]})]})]}),(0,a.jsx)("div",{className:`${N} ${r("container",{collapsed:d})}`,children:d?null:t})]})})}},67303:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});const a=(0,n(95936).withNaming)({e:"__",m:"_"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7054.356e5176.chunk.js b/ydb/core/viewer/monitoring/static/js/7054.356e5176.chunk.js new file mode 100644 index 0000000000..4e4921ad38 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7054.356e5176.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7054],{74003:(e,t,a)=>{a.d(t,{q:()=>v});var l=a(26714),n=a(72616),s=a(26390),i=a(78759),o=a(99294),r=a(55842),d=a(37711);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=a(10161);const m=(0,o.cn)("auto-refresh-control");function v(e){let{className:t}=e;const a=(0,r.zL)(),[o,d]=(0,r.Rj)();return(0,h.jsxs)("div",{className:m(null,t),children:[(0,h.jsx)(n.z,{view:"flat-secondary",onClick:()=>{a(i.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(n.z.Icon,{children:(0,h.jsx)(l.Z,{})})}),(0,h.jsxs)(s.P,{value:[String(o)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.P.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.P.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.P.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.P.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.P.Option,{value:"300000",children:u("5 min")})]})]})}},55982:(e,t,a)=>{a.d(t,{U:()=>d});var l=a(34706),n=a(72616),s=a(16318),i=a(47945),o=a(51403),r=a(10161);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:h,buttonDisabled:m=!1,buttonView:v="action",buttonTitle:p,buttonClassName:b,withPopover:g=!1,popoverContent:x,popoverPlacement:f="right",popoverDisabled:j=!0}=e;const[w,y]=l.useState(!1),[N,S]=l.useState(!1),[T,_]=l.useState(!1),C=()=>(0,r.jsx)(n.z,{onClick:()=>y(!0),view:v,disabled:m,loading:!m&&N,className:b,title:p,children:t});return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(i.g,{visible:w,header:c,text:u,withRetry:T,retryButtonText:h,onConfirm:async e=>{S(!0),await a(e)},onConfirmActionSuccess:async()=>{_(!1);try{await(null===d||void 0===d?void 0:d())}finally{S(!1)}},onConfirmActionError:e=>{_((0,o.q)(e)),S(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(s.J,{content:x,placement:f,disabled:j,children:C()}):C()]})}},47945:(e,t,a)=>{a.d(t,{g:()=>g});var l=a(34706),n=a(3948),s=a(15268),i=a(19912),o=a(68585),r=a(14561),d=a(58231),c=a(99294),u=a(37711);const h=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,u.wZ)("ydb-critical-action-dialog",{en:h});var v=a(10161);const p=(0,c.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,v.jsx)(d.I,{hideSeverity:!0,data:e.data}):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:h,onClose:g,onConfirm:x,onConfirmActionSuccess:f,onConfirmActionError:j}=e;const[w,y]=l.useState(!1),[N,S]=l.useState(),[T,_]=l.useState(!1),C=async e=>(y(!0),x(e).then((()=>{f(),g()})).catch((e=>{j(e),S(e)})).finally((()=>{y(!1)})));return(0,v.jsx)(o.V,{open:t,hasCloseButton:!1,className:p(),size:"s",onClose:g,onTransitionExited:()=>{S(void 0),_(!1)},children:N?(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(o.V.Header,{caption:a}),(0,v.jsx)(o.V.Body,{className:p("body"),children:(0,v.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,v.jsx)("span",{className:p("error-icon"),children:(0,v.jsx)(n.Z,{width:"24",height:"22"})}),b(N)]})}),(0,v.jsx)(o.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:g})]}):(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(o.V.Header,{caption:a}),(0,v.jsxs)(o.V.Body,{className:p("body"),children:[(0,v.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,v.jsx)("span",{className:p("warning-icon"),children:(0,v.jsx)(r.J,{data:s.Z,size:24})}),d]}),h?(0,v.jsx)(i.X,{checked:T,onUpdate:_,children:m("checkbox-text")}):null]}),(0,v.jsx)(o.V.Footer,{loading:w,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:h&&!T},onClickButtonCancel:g,onClickButtonApply:()=>C()})]})})}},51403:(e,t,a)=>{a.d(t,{q:()=>l});const l=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},89516:(e,t,a)=>{a.d(t,{a:()=>o});var l=a(99294),n=a(73287),s=a(10161);const i=(0,l.cn)("ydb-entity-page-title");function o(e){let{entityName:t,status:a,id:l,className:o}=e;return(0,s.jsxs)("div",{className:i(null,o),children:[(0,s.jsx)("span",{className:i("prefix"),children:t}),(0,s.jsx)(n.J,{className:i("icon"),status:a,size:"s"}),l]})}},62508:(e,t,a)=>{a.d(t,{A:()=>u});var l=a(17823),n=a(99175),s=a(77468),i=a(99294),o=a(32489),r=a(73287),d=a(10161);const c=(0,i.cn)("entity-status");function u(e){let{status:t=s.K.Grey,name:a="",label:i,path:u,iconPath:h,size:m="s",mode:v="color",showStatus:p=!0,externalLink:b=!1,withLeftTrim:g=!1,hasClipboardButton:x,clipboardButtonAlwaysVisible:f=!1,className:j}=e;const w=()=>p?(0,d.jsx)(r.J,{className:c("icon"),status:t,size:m,mode:v}):null;return(0,d.jsxs)("div",{className:c(null,j),children:[h?(y=h,(0,d.jsx)(l.r,{target:"_blank",href:y,children:w()})):w(),i&&(0,d.jsx)("span",{title:i,className:c("label",{size:m,state:t.toLowerCase()}),children:i}),(u||a)&&(0,d.jsxs)("div",{className:c("wrapper",{"with-button":x}),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":g}),title:a,children:u?b?(0,d.jsx)(l.r,{className:c("name"),href:u,children:a}):(0,d.jsx)(o.h,{className:c("name"),to:u,children:a}):a&&(0,d.jsx)("span",{className:c("name"),children:a})}),x&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:f}),children:(0,d.jsx)(n.m,{text:a,size:"xs",view:"normal",className:c("clipboard-button",{visible:f})})})]})]});var y}},84573:(e,t,a)=>{a.d(t,{B:()=>c});var l=a(79777),n=a(99294),s=a(74003),i=a(43464),o=a(10161);const r=(0,n.cn)("ydb-page-meta");function d(e){let{items:t,loading:a}=e;return(0,o.jsx)("div",{className:r("info"),children:a?(0,o.jsx)(i.O,{className:r("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:t,...a}=e;return(0,o.jsxs)(l.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,t),children:[(0,o.jsx)(d,{...a}),(0,o.jsx)(s.q,{})]})}},74116:(e,t,a)=>{a.d(t,{G:()=>d});var l=a(59769),n=a(71624),s=a(99294),i=a(46154),o=a(10161);const r=(0,s.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:t,columns:a,settings:s,wrapperClassName:d,...c}=e;const[u,h]=(0,i.M)(t),m=(0,l.B)(a,u),v={...s,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,d),children:(0,o.jsx)(n.ZP,{theme:"yandex-cloud",columns:m,onResize:h,settings:v,...c})})}},43464:(e,t,a)=>{a.d(t,{O:()=>i});var l=a(5194),n=a(83658),s=a(10161);const i=e=>{let{delay:t=600,className:a}=e;const[i]=(0,n.$)(t);return i?(0,s.jsx)(l.O,{className:a}):null}},73287:(e,t,a)=>{a.d(t,{J:()=>h});var l=a(29254),n=a(96334),s=a(15268),i=a(14561),o=a(77468),r=a(99294),d=a(10161);const c=(0,r.cn)("ydb-status-icon"),u={[o.K.Blue]:l.Z,[o.K.Yellow]:n.Z,[o.K.Orange]:s.Z,[o.K.Red]:n.Z};function h(e){let{status:t=o.K.Grey,size:a="s",mode:l="color",className:n}=e;const s={state:t.toLowerCase(),size:a};return"icons"===l&&t in u?(0,d.jsx)(i.J,{className:c("status-icon",s,n),data:u[t]}):(0,d.jsx)("div",{className:c("status-color",s,n)})}},59907:(e,t,a)=>{a.d(t,{f:()=>i});var l=a(2634),n=a(55973),s=a(10161);function i(e){let{state:t}=e;return(0,s.jsx)(l._,{theme:(0,n.KR)(t),children:t})}},65874:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be,b:()=>he});var l=a(34706),n=a(79777),s=a(72555),i=a(64485),o=a(42152),r=a(55783),d=a(99495),c=a(75475),u=a(90205),h=a(89516),m=a(15327),v=a(67653),p=a(48653),b=a(84573),g=a(46878),x=a(65e3),f=a(85709),j=a(6215),w=a(77468),y=a(99294),N=a(27810),S=a(55842),T=a(42568),_=a(87130);const C=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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 I=a(14561),k=a(55982),A=a(9038),R=a(37711);const z=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"}'),D=(0,R.wZ)("ydb-tablet-page",{en:z});function Z(e){return Boolean(e&&"0"!==e)}var B=a(10161);const K=e=>{let{tablet:t}=e;const{TabletId:a,HiveId:s}=t,i=(0,S.ix)(x.VH),[o]=j._.useKillTabletMutation(),[r]=j._.useStopTabletMutation(),[d]=j._.useResumeTabletMutation();if(!a)return null;const c=Z(s),u=t.State===A.g.Stopped,h=t.State!==A.g.Stopped&&t.State!==A.g.Dead,m=t.State===A.g.Stopped||t.State===A.g.Deleted;return(0,B.jsxs)(n.k,{gap:2,wrap:"nowrap",children:[(0,B.jsxs)(k.U,{dialogHeader:D("dialog.kill-header"),dialogText:D("dialog.kill-text"),onConfirmAction:()=>o({id:a}).unwrap(),buttonDisabled:u||!i,withPopover:!0,buttonView:"normal",popoverContent:D("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:i,children:[(0,B.jsx)(I.J,{data:T.Z}),D("controls.kill")]}),c&&(0,B.jsxs)(l.Fragment,{children:[(0,B.jsxs)(k.U,{dialogHeader:D("dialog.stop-header"),dialogText:D("dialog.stop-text"),onConfirmAction:()=>r({id:a,hiveId:s}).unwrap(),buttonDisabled:m||!i,withPopover:!0,buttonView:"normal",popoverContent:D("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:i,children:[(0,B.jsx)(I.J,{data:_.Z}),D("controls.stop")]}),(0,B.jsxs)(k.U,{dialogHeader:D("dialog.resume-header"),dialogText:D("dialog.resume-text"),onConfirmAction:()=>d({id:a,hiveId:s}).unwrap(),buttonDisabled:h||!i,withPopover:!0,buttonView:"normal",popoverContent:D("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:i,children:[(0,B.jsx)(I.J,{data:C}),D("controls.resume")]})]})]})};var O=a(26836),P=a(41591),E=a(90808),F=a(59907),G=a(38980),L=a(70340),V=a(75544);const H=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"}'),q=(0,R.wZ)("ydb-tablet-info",{en:H}),J=(0,y.cn)("ydb-tablet-info"),M=e=>{let{tablet:t}=e;const a=(0,S.ix)(x.VH),{ChangeTime:l,Generation:s,FollowerId:i,NodeId:o,HiveId:r,State:d,TenantId:{SchemeShard:c}={},TabletId:u}=t,h=Z(r),m=d===A.g.Active,v=[];h&&v.push({label:q("field_hive"),value:(0,B.jsx)(O.rU,{to:(0,g.fK)(r),className:J("link"),children:r})}),c&&v.push({label:q("field_scheme-shard"),value:(0,B.jsx)(O.rU,{to:(0,g.fK)(c),className:J("link"),children:c})}),v.push({label:q("field_state"),value:(0,B.jsx)(F.f,{state:d})}),m&&v.push({label:q("field_uptime"),value:(0,G.fG)(l)}),v.push({label:q("field_generation"),value:s},{label:q("field_node"),value:(0,B.jsx)(O.rU,{className:J("link"),to:(0,V.a3)(String(o)),children:o})}),i&&v.push({label:q("field_follower"),value:i});return(0,B.jsxs)(n.k,{gap:10,wrap:"nowrap",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("div",{className:J("section-title"),children:q("title_info")}),(0,B.jsx)(P._P,{info:v})]}),a&&u?(0,B.jsxs)("div",{children:[(0,B.jsx)("div",{className:J("section-title"),children:q("title_links")}),(0,B.jsxs)(n.k,{direction:"column",gap:3,children:[(0,B.jsx)(E.j,{title:q("field_developer-ui-app"),url:(0,L.wz)(u,"app")}),(0,B.jsx)(E.j,{title:q("field_developer-ui-counters"),url:(0,L.wz)(u,"counters")}),(0,B.jsx)(E.j,{title:q("field_developer-ui-executor"),url:(0,L.wz)(u,"executorInternals")}),(0,B.jsx)(E.j,{title:q("field_developer-ui-state"),url:(0,L.wz)(u,void 0,"SsId")})]})]}):null]})};var Y=a(8475),U=a(72001),$=a(72616),W=a(81778);const Q=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),X=(0,R.wZ)("ydb-tablet-storage-info",{en:Q}),ee=(0,y.cn)("ydb-tablet-storage-info");function te(e){let{name:t,className:a}=e;return(0,B.jsx)("div",{className:ee("table-header-content",a),children:t})}function ae(e,t){const a=e.getValue(),l="function"===typeof t?t(a):a;return(0,B.jsx)("div",{className:ee("metrics-cell"),children:l})}function le(e){let{row:t,name:a,hasExpand:l}=e;const s=t.getCanExpand();return(0,B.jsxs)(n.k,{gap:1,alignItems:"flex-start",className:ee("name-wrapper"),children:[s&&(0,B.jsx)($.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,B.jsx)($.z.Icon,{children:(0,B.jsx)(W.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,B.jsx)("div",{className:ee("name-content",{"no-control":l&&!s}),children:a})]})}function ne(e){let{data:t}=e;const[a,n]=l.useState({}),s=l.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:l={}}=e,n=null!==(t=l.Channels)&&void 0!==t?t:[],s=[];for(const o of n){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const l=[...t];l.reverse();const[n,...r]=l,d={...n,storagePoolName:null===a||void 0===a||null===(i=a[e])||void 0===i?void 0:i.StoragePoolName,channelIndex:e,children:r};s.push(d)}return s}(t)),[t]),i=l.useMemo((()=>s.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[s]),o=l.useMemo((()=>{return e=i,[{accessorKey:"channelIndex",header:()=>(0,B.jsx)(te,{name:X("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,B.jsx)(te,{name:X("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,B.jsx)(te,{name:X("label_group-id"),className:e?ee("with-padding"):void 0}),size:100,cell:t=>(0,B.jsx)(le,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,B.jsx)(te,{name:X("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,B.jsx)(te,{name:X("label_timestamp")}),size:200,cell:e=>ae(e,G.i$),meta:{align:"right"}}];var e}),[i]),r=(0,Y.x)({columns:o,data:s,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:n,state:{expanded:a}});return(0,B.jsx)("div",{children:(0,B.jsx)(U.i,{table:r,headerCellClassName:e=>{var t;let{column:a}=e;const l=null===(t=a.columnDef.meta)||void 0===t?void 0:t.align;return ee("table-header-cell",{align:l})},cellClassName:e=>{var t,a;const l=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,n=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return ee("table-cell",{align:l,"vertical-align":n})},className:ee("table")})})}var se=a(71624),ie=a(62508),oe=a(32489),re=a(74116);const de=[{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,G.fG)(t.changeTime)}},{name:"State",sortable:!1,render:e=>{let{row:t}=e;return(0,B.jsx)(F.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,B.jsx)(oe.h,{to:(0,V.a3)(t.nodeId),children:t.nodeId})}},{name:"Node FQDN",sortable:!1,width:300,render:e=>{let{row:t}=e;return t.fqdn?(0,B.jsx)(ie.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,B.jsx)("span",{children:"\u2014"})}}],ce={displayIndices:!1},ue=e=>{let{history:t}=e;return(0,B.jsx)(re.G,{columnsWidthLSKey:"tabletTableColumnsWidth",data:t,columns:de,settings:ce,initialSortOrder:{columnId:"Generation",order:se.ZP.DESCENDING}})},he=(0,y.cn)("ydb-tablet-page"),me={history:"history",channels:"channels"},ve=[{id:me.history,get title(){return D("label_tablet-history")}},{id:me.channels,get title(){return D("label_tablet-channels")},isAdvanced:!0}],pe=c.z.nativeEnum(me).catch(me.history);function be(){var e;const t=(0,S.zL)(),{id:a}=(0,r.UO)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.eB),[u]=(0,S.Rj)(),{currentData:h,isFetching:v,error:x}=j._.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),w=v&&void 0===h,{data:y={},history:T=[]}=h||{},{currentData:_}=j._.useGetTabletDescribeQuery(y.TenantId?{tenantId:y.TenantId}:i.CN),C=null!==(e=_||s)&&void 0!==e?e:void 0,I=y.Type;l.useEffect((()=>{t((0,f.J)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:I}))}),[t,s,a,I]);const{Leader:k,Type:A}=y,R=[];return C&&R.push(`${D("tablet.meta-database")}: ${C}`),A&&R.push(A),!1===k&&R.push(D("tablet.meta-follower").toUpperCase()),(0,B.jsxs)(n.k,{gap:5,direction:"column",className:he(),children:[(0,B.jsx)(o.ql,{children:(0,B.jsx)("title",{children:`${a} \u2014 ${D("tablet.header")} \u2014 ${C||c||N.DO}`})}),(0,B.jsx)(b.B,{items:R}),(0,B.jsxs)(p.s,{loading:w,size:"l",children:[x?(0,B.jsx)(m.V,{error:x}):null,h?(0,B.jsx)(ge,{id:a,tablet:y,history:T}):null]})]})}function ge(e){let{id:t,tablet:a,history:l}=e;const s=!Object.keys(a).length,{Overall:i,HiveId:o}=a;return(0,B.jsxs)(u.$,{title:D("emptyState"),className:he("placeholder"),isEmpty:s,children:[(0,B.jsxs)(n.k,{gap:5,direction:"column",children:[(0,B.jsx)(h.a,{entityName:D("tablet.header"),status:null!==i&&void 0!==i?i:w.K.Grey,id:t}),(0,B.jsx)(K,{tablet:a}),(0,B.jsx)(M,{tablet:a})]}),(0,B.jsx)(xe,{id:t,hiveId:o,history:l})]})}function xe(e){var t;let{id:a,hiveId:i,history:o}=e;const[{activeTab:r,...c},u]=(0,d.useQueryParams)(g.eB),h=!(0,S.ix)(x.VH)||!Z(i);let m=pe.parse(r);return h&&null!==(t=ve.find((e=>e.id===m)))&&void 0!==t&&t.isAdvanced&&(m=me.history),l.useEffect((()=>{r!==m&&u({activeTab:m},"replaceIn")}),[r,m,u]),(0,B.jsxs)(n.k,{gap:5,direction:"column",children:[(0,B.jsx)("div",{children:(0,B.jsx)(s.m,{size:"l",items:ve.filter((e=>{let{isAdvanced:t}=e;return!t||!h})),activeTab:m,wrapTo:(e,t)=>{const l=(0,g.fK)(a,{...c,activeTab:e.id});return(0,B.jsx)(v.h,{to:l,children:t},e.id)}})}),"history"===m?(0,B.jsx)(ue,{history:o}):null,"channels"!==m||h?null:(0,B.jsx)(fe,{id:a,hiveId:i})]})}function fe(e){let{id:t,hiveId:a}=e;const[l]=(0,S.Rj)(),{currentData:n,error:s,isFetching:i}=j._.useGetAdvancedTableInfoQuery({id:t,hiveId:a},{pollingInterval:l}),o=i&&void 0===n;return(0,B.jsxs)(p.s,{loading:o,size:"l",children:[s?(0,B.jsx)(m.V,{error:s}):null,n?(0,B.jsx)(ne,{data:n}):null]})}},58231:(e,t,a)=>{a.d(t,{I:()=>_});var l=a(34706),n=a(29254),s=a(96334),i=a(15268),o=a(3948),r=a(72616),d=a(81778),c=a(14561),u=a(17823),h=a(99294),m=a(37711);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=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)"]}'),b=(0,m.wZ)("ydb-shorty-string",{ru:p,en:v});var g=a(10161);const x=(0,h.cn)("kv-shorty-string");function f(e){let{value:t="",limit:a=200,strict:n=!1,displayLength:s=!0,render:i=(e=>e),onToggle:o,expandLabel:r=b("default_expand_label"),collapseLabel:d=b("default_collapse_label")}=e;const[c,h]=l.useState(!1),m=(c?d:r)+(s&&!c?b("chars_count",{count:t.length}):""),v=t.length>a+(n?0:m.length),p=c||!v?t:t.slice(0,a-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[i(p),v?(0,g.jsx)(u.r,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),h((e=>!e)),null===o||void 0===o||o()},children:m}):null]})}var j=a(73689);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function y(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function _(e){let{data:t,hideSeverity:a}=e;const[n,s]=l.useState(!1),i="string"===typeof t||null===t||void 0===t?void 0:t.issues,o=Array.isArray(i)&&i.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let e;if("string"===typeof t)e=t;else{var n,s;const i=y(null===t||void 0===t||null===(n=t.error)||void 0===n?void 0:n.severity);e=(0,g.jsxs)(l.Fragment,{children:[a?null:(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)(z,{severity:i})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===t||void 0===t||null===(s=t.error)||void 0===s?void 0:s.message})]})}return e})(),o&&(0,g.jsx)(r.z,{view:"normal",onClick:()=>s(!n),children:n?"Hide details":"Show details"})]}),o&&n&&(0,g.jsx)(C,{hideSeverity:a,issues:i})]})}function C(e){let{issues:t,hideSeverity:a}=e;const l=null===t||void 0===t?void 0:t.reduce(((e,t)=>{var a;const l=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,l)}),10);return(0,g.jsx)("div",{className:S(null),children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,g.jsx)(I,{hideSeverity:a,issue:e,expanded:e===l},t)))})}function I(e){let{issue:t,hideSeverity:a,level:n=0}=e;const[s,i]=l.useState(!0),o=y(t.severity),c=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,j.kE)(t.row))return"";const{row:a,column:l}=t;return(0,j.kE)(l)?`${a}:${l}`:`line ${a}`}(t),u=t.issues,h=Array.isArray(u)&&u.length>0,m=s?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!h,"has-issues":h}),children:[(0,g.jsxs)("div",{className:T("line"),children:[h&&(0,g.jsx)(r.z,{view:"flat-secondary",onClick:()=>i(!s),className:T("arrow-toggle"),children:(0,g.jsx)(d.F,{direction:m,size:16})}),a?null:(0,g.jsx)(z,{severity:o}),(0,g.jsxs)("span",{className:T("message"),children:[c&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:c}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(f,{value:t.message,expandLabel:"Show full message"})})]}),t.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",t.issue_code]}):null]}),h&&s&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:u,level:n+1,expanded:s})})]})}function k(e){const{issues:t,level:a,expanded:l}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(I,{issue:e,level:a,expanded:l},t)))})}const A={S_INFO:n.Z,S_WARNING:s.Z,S_ERROR:i.Z,S_FATAL:o.Z},R=(0,h.cn)("yql-issue-severity");function z(e){let{severity:t}=e;const a=t.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:R({severity:a}),children:[(0,g.jsx)(c.J,{className:R("icon"),data:A[t]}),(0,g.jsx)("span",{className:R("title"),children:a})]})}},6215:(e,t,a)=>{a.d(t,{_:()=>n});var l=a(96183);const n=a(78759).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:n}=e,{signal:s}=t;try{const[e,t,i]=await Promise.all([window.api.getTablet({id:a,database:n},{signal:s}),window.api.getTabletHistory({id:a,database:n},{signal:s}),window.api.getNodesList({signal:s})]),o=(0,l.Xs)(i),r=Object.keys(t).reduce(((e,a)=>{var l;const n=null===(l=t[a])||void 0===l?void 0:l.TabletStateInfo;if(n&&n.length){const t=n.find((e=>e.Leader))||n[0],{ChangeTime:l,Generation:s,State:i,Leader:r,FollowerId:d}=t,c=o&&a?o.get(Number(a)):void 0;"Dead"!==i&&e.push({nodeId:a,generation:s,changeTime:l,state:i,leader:r,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:d=[]}=e,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(i){return{error:i}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:a}=e,{signal:l}=t;try{const e=await window.api.getTabletDescribe(a,{signal:l}),{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:l}=e,{signal:n}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:l},{signal:n})}}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(l){return{error:l}}},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(l){return{error:l}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},46154:(e,t,a)=>{a.d(t,{M:()=>i});var l=a(34706),n=a(59769),s=a(9951);const i=e=>{const t=l.useCallback((()=>e?s.r.readUserSettingsValue(e,{}):{}),[e]),a=l.useCallback((t=>{e&&s.r.setUserSettingsValue(e,t)}),[e]);return(0,n.M)({saveSizes:a,getSizes:t})}},55973:(e,t,a)=>{a.d(t,{FW:()=>i,KR:()=>o});var l=a(77468),n=a(9038);const s={[n.g.Dead]:l.K.Red,[n.g.Created]:l.K.Yellow,[n.g.ResolveStateStorage]:l.K.Yellow,[n.g.Candidate]:l.K.Yellow,[n.g.BlockBlobStorage]:l.K.Yellow,[n.g.WriteZeroEntry]:l.K.Yellow,[n.g.Restored]:l.K.Yellow,[n.g.Discover]:l.K.Yellow,[n.g.Lock]:l.K.Yellow,[n.g.Stopped]:l.K.Yellow,[n.g.ResolveLeader]:l.K.Yellow,[n.g.RebuildGraph]:l.K.Yellow,[n.g.Deleted]:l.K.Green,[n.g.Active]:l.K.Green},i=(Object.keys(n.g),Object.entries(s).reduce(((e,t)=>{let[a,l]=t;return e[l]?e[l].push(a):e[l]=[a],e}),{}),e=>{if(!e)return l.K.Grey;return t=e,Object.values(l.K).includes(t)?e:s[e];var t});function o(e){if(!e)return"unknown";switch(e){case n.g.Dead:return"danger";case n.g.Active:case n.g.Deleted:return"success";default:return"warning"}}},96334:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},29254:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},15268:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},5194:(e,t,a)=>{a.d(t,{O:()=>s});var l=a(34706);const n=(0,a(87578).Ge)("skeleton");function s(e){let{className:t,style:a,qa:s}=e;return l.createElement("div",{className:n(null,t),style:a,"data-qa":s})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7054.89f72d9d.chunk.js b/ydb/core/viewer/monitoring/static/js/7054.89f72d9d.chunk.js deleted file mode 100644 index e207946c3a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7054.89f72d9d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7054],{74003:(e,t,a)=>{a.d(t,{q:()=>p});var l=a(26714),n=a(72616),s=a(26390),o=a(78759),r=a(99294),i=a(55842),d=a(37711);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=a(10161);const m=(0,r.cn)("auto-refresh-control");function p(e){let{className:t}=e;const a=(0,i.zL)(),[r,d]=(0,i.Rj)();return(0,h.jsxs)("div",{className:m(null,t),children:[(0,h.jsx)(n.z,{view:"flat",onClick:()=>{a(o.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(n.z.Icon,{children:(0,h.jsx)(l.Z,{})})}),(0,h.jsxs)(s.P,{value:[String(r)],onUpdate:e=>{d(Number(e))},width:85,children:[(0,h.jsx)(s.P.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.P.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.P.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.P.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.P.Option,{value:"300000",children:u("5 min")})]})]})}},55982:(e,t,a)=>{a.d(t,{U:()=>d});var l=a(34706),n=a(72616),s=a(16318),o=a(47945),r=a(51403),i=a(10161);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:h,buttonDisabled:m=!1,buttonView:p="action",buttonClassName:b,withPopover:g=!1,popoverContent:v,popoverPlacement:x="right",popoverDisabled:w=!0}=e;const[f,j]=l.useState(!1),[y,T]=l.useState(!1),[N,S]=l.useState(!1),C=()=>(0,i.jsx)(n.z,{onClick:()=>j(!0),view:p,disabled:m,loading:!m&&y,className:b,children:t});return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(o.g,{visible:f,header:c,text:u,withRetry:N,retryButtonText:h,onConfirm:async e=>{T(!0),await a(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===d||void 0===d?void 0:d())}finally{T(!1)}},onConfirmActionError:e=>{S((0,r.q)(e)),T(!1)},onClose:()=>{j(!1)}}),g?(0,i.jsx)(s.J,{content:v,placement:x,disabled:w,children:C()}):C()]})}},47945:(e,t,a)=>{a.d(t,{g:()=>g});var l=a(34706),n=a(3948),s=a(15268),o=a(19912),r=a(68585),i=a(14561),d=a(99294),c=a(37711);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=a(10161);const p=(0,d.cn)("ydb-critical-dialog"),b=e=>403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function g(e){let{visible:t,header:a,text:d,withRetry:c,retryButtonText:u,withCheckBox:g,onClose:v,onConfirm:x,onConfirmActionSuccess:w,onConfirmActionError:f}=e;const[j,y]=l.useState(!1),[T,N]=l.useState(),[S,C]=l.useState(!1),I=async e=>(y(!0),x(e).then((()=>{w(),v()})).catch((e=>{f(e),N(e)})).finally((()=>{y(!1)})));return(0,m.jsx)(r.V,{open:t,hasCloseButton:!1,className:p(),size:"s",onClose:v,onTransitionExited:()=>{N(void 0),C(!1)},children:T?(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)(r.V.Header,{caption:a}),(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)(n.Z,{width:"24",height:"22"})}),b(T)]})}),(0,m.jsx)(r.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:v})]}):(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)(r.V.Header,{caption:a}),(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:s.Z,size:24})}),d]}),g?(0,m.jsx)(o.X,{checked:S,onUpdate:C,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:g&&!S},onClickButtonCancel:v,onClickButtonApply:()=>I()})]})})}},51403:(e,t,a)=>{a.d(t,{q:()=>l});const l=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},89516:(e,t,a)=>{a.d(t,{a:()=>r});var l=a(99294),n=a(73287),s=a(10161);const o=(0,l.cn)("ydb-entity-page-title");function r(e){let{entityName:t,status:a,id:l,className:r}=e;return(0,s.jsxs)("div",{className:o(null,r),children:[(0,s.jsx)("span",{className:o("prefix"),children:t}),(0,s.jsx)(n.J,{className:o("icon"),status:a,size:"s"}),l]})}},62508:(e,t,a)=>{a.d(t,{A:()=>u});var l=a(17823),n=a(99175),s=a(77468),o=a(99294),r=a(32489),i=a(73287),d=a(10161);const c=(0,o.cn)("entity-status");function u(e){let{status:t=s.K.Grey,name:a="",label:o,path:u,iconPath:h,size:m="s",mode:p="color",showStatus:b=!0,externalLink:g=!1,withLeftTrim:v=!1,hasClipboardButton:x,clipboardButtonAlwaysVisible:w=!1,className:f}=e;const j=()=>b?(0,d.jsx)(i.J,{className:c("icon"),status:t,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:c(null,f),title:a,children:[h?(y=h,(0,d.jsx)(l.r,{target:"_blank",href:y,children:j()})):j(),o&&(0,d.jsx)("span",{title:o,className:c("label",{size:m,state:t.toLowerCase()}),children:o}),(u||a)&&(0,d.jsxs)("div",{className:c("wrapper"),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":v}),children:u?g?(0,d.jsx)(l.r,{className:c("name"),href:u,children:a}):(0,d.jsx)(r.h,{className:c("name"),to:u,children:a}):a&&(0,d.jsx)("span",{className:c("name"),children:a})}),x&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:w}),children:(0,d.jsx)(n.m,{text:a,size:"xs",view:"normal",className:c("clipboard-button",{visible:w})})})]})]});var y}},84573:(e,t,a)=>{a.d(t,{B:()=>c});var l=a(79777),n=a(99294),s=a(74003),o=a(43464),r=a(10161);const i=(0,n.cn)("ydb-page-meta");function d(e){let{items:t,loading:a}=e;return(0,r.jsx)("div",{className:i("info"),children:a?(0,r.jsx)(o.O,{className:i("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:t,...a}=e;return(0,r.jsxs)(l.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:i(null,t),children:[(0,r.jsx)(d,{...a}),(0,r.jsx)(s.q,{})]})}},74116:(e,t,a)=>{a.d(t,{G:()=>d});var l=a(59769),n=a(71624),s=a(99294),o=a(46154),r=a(10161);const i=(0,s.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:t,columns:a,settings:s,wrapperClassName:d,...c}=e;const[u,h]=(0,o.M)(t),m=(0,l.B)(a,u),p={...s,defaultResizeable:!0};return(0,r.jsx)("div",{className:i(null,d),children:(0,r.jsx)(n.ZP,{theme:"yandex-cloud",columns:m,onResize:h,settings:p,...c})})}},43464:(e,t,a)=>{a.d(t,{O:()=>o});var l=a(5194),n=a(83658),s=a(10161);const o=e=>{let{delay:t=600,className:a}=e;const[o]=(0,n.$)(t);return o?(0,s.jsx)(l.O,{className:a}):null}},73287:(e,t,a)=>{a.d(t,{J:()=>h});var l=a(29254),n=a(96334),s=a(15268),o=a(14561),r=a(77468),i=a(99294),d=a(10161);const c=(0,i.cn)("ydb-status-icon"),u={[r.K.Blue]:l.Z,[r.K.Yellow]:n.Z,[r.K.Orange]:s.Z,[r.K.Red]:n.Z};function h(e){let{status:t=r.K.Grey,size:a="s",mode:l="color",className:n}=e;const s={state:t.toLowerCase(),size:a};return"icons"===l&&t in u?(0,d.jsx)(o.J,{className:c("status-icon",s,n),data:u[t]}):(0,d.jsx)("div",{className:c("status-color",s,n)})}},59907:(e,t,a)=>{a.d(t,{f:()=>o});var l=a(2634),n=a(55973),s=a(10161);function o(e){let{state:t}=e;return(0,s.jsx)(l._,{theme:(0,n.KR)(t),children:t})}},65874:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>ve,b:()=>he});var l=a(34706),n=a(79777),s=a(72555),o=a(64485),r=a(42152),i=a(55783),d=a(99495),c=a(75475),u=a(90205),h=a(89516),m=a(15327),p=a(67653),b=a(48653),g=a(84573),v=a(46878),x=a(65e3),w=a(85709),f=a(6215),j=a(77468),y=a(99294),T=a(27810),N=a(55842),S=a(42568),C=a(87130);const I=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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 _=a(14561),k=a(55982),A=a(9038),D=a(37711);const z=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"}'),K=(0,D.wZ)("ydb-tablet-page",{en:z});function P(e){return Boolean(e&&"0"!==e)}var R=a(10161);const B=e=>{let{tablet:t}=e;const{TabletId:a,HiveId:s}=t,o=(0,N.ix)(x.VH),[r]=f._.useKillTabletMutation(),[i]=f._.useStopTabletMutation(),[d]=f._.useResumeTabletMutation();if(!a)return null;const c=P(s),u=t.State===A.g.Stopped,h=t.State!==A.g.Stopped&&t.State!==A.g.Dead,m=t.State===A.g.Stopped||t.State===A.g.Deleted;return(0,R.jsxs)(n.k,{gap:2,wrap:"nowrap",children:[(0,R.jsxs)(k.U,{dialogHeader:K("dialog.kill-header"),dialogText:K("dialog.kill-text"),onConfirmAction:()=>r({id:a}).unwrap(),buttonDisabled:u||!o,withPopover:!0,buttonView:"normal",popoverContent:K("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:o,children:[(0,R.jsx)(_.J,{data:S.Z}),K("controls.kill")]}),c&&(0,R.jsxs)(l.Fragment,{children:[(0,R.jsxs)(k.U,{dialogHeader:K("dialog.stop-header"),dialogText:K("dialog.stop-text"),onConfirmAction:()=>i({id:a,hiveId:s}).unwrap(),buttonDisabled:m||!o,withPopover:!0,buttonView:"normal",popoverContent:K("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:o,children:[(0,R.jsx)(_.J,{data:C.Z}),K("controls.stop")]}),(0,R.jsxs)(k.U,{dialogHeader:K("dialog.resume-header"),dialogText:K("dialog.resume-text"),onConfirmAction:()=>d({id:a,hiveId:s}).unwrap(),buttonDisabled:h||!o,withPopover:!0,buttonView:"normal",popoverContent:K("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:o,children:[(0,R.jsx)(_.J,{data:I}),K("controls.resume")]})]})]})};var Z=a(26836),E=a(41591),O=a(90808),G=a(59907),F=a(14075),V=a(70340),H=a(75544);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"}'),q=(0,D.wZ)("ydb-tablet-info",{en:L}),M=(0,y.cn)("ydb-tablet-info"),Y=e=>{let{tablet:t}=e;const a=(0,N.ix)(x.VH),{ChangeTime:l,Generation:s,FollowerId:o,NodeId:r,HiveId:i,State:d,TenantId:{SchemeShard:c}={},TabletId:u}=t,h=P(i),m=d===A.g.Active,p=[];h&&p.push({label:q("field_hive"),value:(0,R.jsx)(Z.rU,{to:(0,v.fK)(i),className:M("link"),children:i})}),c&&p.push({label:q("field_scheme-shard"),value:(0,R.jsx)(Z.rU,{to:(0,v.fK)(c),className:M("link"),children:c})}),p.push({label:q("field_state"),value:(0,R.jsx)(G.f,{state:d})}),m&&p.push({label:q("field_uptime"),value:(0,F.fG)(l)}),p.push({label:q("field_generation"),value:s},{label:q("field_node"),value:(0,R.jsx)(Z.rU,{className:M("link"),to:(0,H.a3)(String(r)),children:r})}),o&&p.push({label:q("field_follower"),value:o});return(0,R.jsxs)(n.k,{gap:10,wrap:"nowrap",children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:M("section-title"),children:q("title_info")}),(0,R.jsx)(E._P,{info:p})]}),a&&u?(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:M("section-title"),children:q("title_links")}),(0,R.jsxs)(n.k,{direction:"column",gap:3,children:[(0,R.jsx)(O.j,{title:q("field_developer-ui-app"),url:(0,V.wz)(u,"app")}),(0,R.jsx)(O.j,{title:q("field_developer-ui-counters"),url:(0,V.wz)(u,"counters")}),(0,R.jsx)(O.j,{title:q("field_developer-ui-executor"),url:(0,V.wz)(u,"executorInternals")}),(0,R.jsx)(O.j,{title:q("field_developer-ui-state"),url:(0,V.wz)(u,void 0,"SsId")})]})]}):null]})};var J=a(8475),U=a(72001),$=a(72616),Q=a(81778);const W=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),X=(0,D.wZ)("ydb-tablet-storage-info",{en:W}),ee=(0,y.cn)("ydb-tablet-storage-info");function te(e){let{name:t,className:a}=e;return(0,R.jsx)("div",{className:ee("table-header-content",a),children:t})}function ae(e,t){const a=e.getValue(),l="function"===typeof t?t(a):a;return(0,R.jsx)("div",{className:ee("metrics-cell"),children:l})}function le(e){let{row:t,name:a,hasExpand:l}=e;const s=t.getCanExpand();return(0,R.jsxs)(n.k,{gap:1,alignItems:"flex-start",className:ee("name-wrapper"),children:[s&&(0,R.jsx)($.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,R.jsx)($.z.Icon,{children:(0,R.jsx)(Q.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,R.jsx)("div",{className:ee("name-content",{"no-control":l&&!s}),children:a})]})}function ne(e){let{data:t}=e;const[a,n]=l.useState({}),s=l.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:l={}}=e,n=null!==(t=l.Channels)&&void 0!==t?t:[],s=[];for(const r of n){var o;const e=r.Channel,t=r.History;if(!e||!t||!t.length)continue;const l=[...t];l.reverse();const[n,...i]=l,d={...n,storagePoolName:null===a||void 0===a||null===(o=a[e])||void 0===o?void 0:o.StoragePoolName,channelIndex:e,children:i};s.push(d)}return s}(t)),[t]),o=l.useMemo((()=>s.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[s]),r=l.useMemo((()=>{return e=o,[{accessorKey:"channelIndex",header:()=>(0,R.jsx)(te,{name:X("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,R.jsx)(te,{name:X("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,R.jsx)(te,{name:X("label_group-id"),className:e?ee("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)(te,{name:X("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,R.jsx)(te,{name:X("label_timestamp")}),size:200,cell:e=>ae(e,F.i$),meta:{align:"right"}}];var e}),[o]),i=(0,J.x)({columns:r,data:s,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:n,state:{expanded:a}});return(0,R.jsx)("div",{children:(0,R.jsx)(U.i,{table:i,headerCellClassName:e=>{var t;let{column:a}=e;const l=null===(t=a.columnDef.meta)||void 0===t?void 0:t.align;return ee("table-header-cell",{align:l})},cellClassName:e=>{var t,a;const l=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,n=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return ee("table-cell",{align:l,"vertical-align":n})},className:ee("table")})})}var se=a(71624),oe=a(62508),re=a(32489),ie=a(74116);const de=[{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,F.fG)(t.changeTime)}},{name:"State",sortable:!1,render:e=>{let{row:t}=e;return(0,R.jsx)(G.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)(re.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)(oe.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,R.jsx)("span",{children:"\u2014"})}}],ce={displayIndices:!1},ue=e=>{let{history:t}=e;return(0,R.jsx)(ie.G,{columnsWidthLSKey:"tabletTableColumnsWidth",data:t,columns:de,settings:ce,initialSortOrder:{columnId:"Generation",order:se.ZP.DESCENDING}})},he=(0,y.cn)("ydb-tablet-page"),me={history:"history",channels:"channels"},pe=[{id:me.history,get title(){return K("label_tablet-history")}},{id:me.channels,get title(){return K("label_tablet-channels")},isAdvanced:!0}],be=c.z.nativeEnum(me).catch(me.history),ge={tenantName:d.StringParam,clusterName:d.StringParam,activeTab:d.StringParam};function ve(){var e;const t=(0,N.zL)(),{id:a}=(0,i.UO)(),[{tenantName:s,clusterName:c}]=(0,d.useQueryParams)(ge),[u]=(0,N.Rj)(),{currentData:h,isFetching:p,error:v}=f._.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),x=p&&void 0===h,{data:j={},history:y=[]}=h||{},{currentData:S}=f._.useGetTabletDescribeQuery(j.TenantId?{tenantId:j.TenantId}:o.CN),C=null!==(e=S||s)&&void 0!==e?e:void 0,I=j.Type;l.useEffect((()=>{t((0,w.J)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:I}))}),[t,s,a,I]);const{Leader:_,Type:k}=j,A=[];return C&&A.push(`${K("tablet.meta-database")}: ${C}`),k&&A.push(k),!1===_&&A.push(K("tablet.meta-follower").toUpperCase()),(0,R.jsxs)(n.k,{gap:5,direction:"column",className:he(),children:[(0,R.jsx)(r.ql,{children:(0,R.jsx)("title",{children:`${a} \u2014 ${K("tablet.header")} \u2014 ${C||c||T.DO}`})}),(0,R.jsx)(g.B,{items:A}),(0,R.jsxs)(b.s,{loading:x,size:"l",children:[v?(0,R.jsx)(m.V,{error:v}):null,h?(0,R.jsx)(xe,{id:a,tablet:j,history:y}):null]})]})}function xe(e){let{id:t,tablet:a,history:l}=e;const s=!Object.keys(a).length,{Overall:o,HiveId:r}=a;return(0,R.jsxs)(u.$,{title:K("emptyState"),className:he("placeholder"),isEmpty:s,children:[(0,R.jsxs)(n.k,{gap:5,direction:"column",children:[(0,R.jsx)(h.a,{entityName:K("tablet.header"),status:null!==o&&void 0!==o?o:j.K.Grey,id:t}),(0,R.jsx)(B,{tablet:a}),(0,R.jsx)(Y,{tablet:a})]}),(0,R.jsx)(we,{id:t,hiveId:r,history:l})]})}function we(e){var t;let{id:a,hiveId:o,history:r}=e;const[{activeTab:i,...c},u]=(0,d.useQueryParams)(ge),h=!(0,N.ix)(x.VH)||!P(o);let m=be.parse(i);return h&&null!==(t=pe.find((e=>e.id===m)))&&void 0!==t&&t.isAdvanced&&(m=me.history),l.useEffect((()=>{i!==m&&u({activeTab:m},"replaceIn")}),[i,m,u]),(0,R.jsxs)(n.k,{gap:5,direction:"column",children:[(0,R.jsx)("div",{children:(0,R.jsx)(s.m,{size:"l",items:pe.filter((e=>{let{isAdvanced:t}=e;return!t||!h})),activeTab:m,wrapTo:(e,t)=>{const l=(0,v.fK)(a,{...c,activeTab:e.id});return(0,R.jsx)(p.h,{to:l,children:t},e.id)}})}),"history"===m?(0,R.jsx)(ue,{history:r}):null,"channels"!==m||h?null:(0,R.jsx)(fe,{id:a,hiveId:o})]})}function fe(e){let{id:t,hiveId:a}=e;const[l]=(0,N.Rj)(),{currentData:n,error:s,isFetching:o}=f._.useGetAdvancedTableInfoQuery({id:t,hiveId:a},{pollingInterval:l}),r=o&&void 0===n;return(0,R.jsxs)(b.s,{loading:r,size:"l",children:[s?(0,R.jsx)(m.V,{error:s}):null,n?(0,R.jsx)(ne,{data:n}):null]})}},6215:(e,t,a)=>{a.d(t,{_:()=>n});var l=a(96183);const n=a(78759).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:n}=e,{signal:s}=t;try{const[e,t,o]=await Promise.all([window.api.getTablet({id:a,database:n},{signal:s}),window.api.getTabletHistory({id:a,database:n},{signal:s}),window.api.getNodesList({signal:s})]),r=(0,l.Xs)(o),i=Object.keys(t).reduce(((e,a)=>{var l;const n=null===(l=t[a])||void 0===l?void 0:l.TabletStateInfo;if(n&&n.length){const t=n.find((e=>e.Leader))||n[0],{ChangeTime:l,Generation:s,State:o,Leader:i,FollowerId:d}=t,c=r&&a?r.get(Number(a)):void 0;"Dead"!==o&&e.push({nodeId:a,generation:s,changeTime:l,state:o,leader:i,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:d=[]}=e,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:i}}}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:l}=t;try{const e=await window.api.getTabletDescribe(a,{signal:l}),{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:l}=e,{signal:n}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:l},{signal:n})}}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(l){return{error:l}}},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(l){return{error:l}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},46154:(e,t,a)=>{a.d(t,{M:()=>o});var l=a(34706),n=a(59769),s=a(9951);const o=e=>{const t=l.useCallback((()=>e?s.r.readUserSettingsValue(e,{}):{}),[e]),a=l.useCallback((t=>{e&&s.r.setUserSettingsValue(e,t)}),[e]);return(0,n.M)({saveSizes:a,getSizes:t})}},55973:(e,t,a)=>{a.d(t,{FW:()=>o,KR:()=>r});var l=a(77468),n=a(9038);const s={[n.g.Dead]:l.K.Red,[n.g.Created]:l.K.Yellow,[n.g.ResolveStateStorage]:l.K.Yellow,[n.g.Candidate]:l.K.Yellow,[n.g.BlockBlobStorage]:l.K.Yellow,[n.g.WriteZeroEntry]:l.K.Yellow,[n.g.Restored]:l.K.Yellow,[n.g.Discover]:l.K.Yellow,[n.g.Lock]:l.K.Yellow,[n.g.Stopped]:l.K.Yellow,[n.g.ResolveLeader]:l.K.Yellow,[n.g.RebuildGraph]:l.K.Yellow,[n.g.Deleted]:l.K.Green,[n.g.Active]:l.K.Green},o=(Object.keys(n.g),Object.entries(s).reduce(((e,t)=>{let[a,l]=t;return e[l]?e[l].push(a):e[l]=[a],e}),{}),e=>{if(!e)return l.K.Grey;return t=e,Object.values(l.K).includes(t)?e:s[e];var t});function r(e){if(!e)return"unknown";switch(e){case n.g.Dead:return"danger";case n.g.Active:case n.g.Deleted:return"success";default:return"warning"}}},42568:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},96334:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},29254:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},15268:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(34706);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.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"}))},5194:(e,t,a)=>{a.d(t,{O:()=>s});var l=a(34706);const n=(0,a(87578).Ge)("skeleton");function s(e){let{className:t,style:a,qa:s}=e;return l.createElement("div",{className:n(null,t),style:a,"data-qa":s})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7474.a87e4163.chunk.js b/ydb/core/viewer/monitoring/static/js/7474.a87e4163.chunk.js deleted file mode 100644 index b43b2aeb9a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7474.a87e4163.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7474],{74003:(e,t,s)=>{s.d(t,{q:()=>h});var r=s(26714),n=s(72616),a=s(26390),o=s(78759),i=s(99294),l=s(55842),d=s(37711);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=s(10161);const m=(0,i.cn)("auto-refresh-control");function h(e){let{className:t}=e;const s=(0,l.zL)(),[i,d]=(0,l.Rj)();return(0,p.jsxs)("div",{className:m(null,t),children:[(0,p.jsx)(n.z,{view:"flat",onClick:()=>{s(o.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,p.jsx)(n.z.Icon,{children:(0,p.jsx)(r.Z,{})})}),(0,p.jsxs)(a.P,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,children:[(0,p.jsx)(a.P.Option,{value:"0",children:c("None")}),(0,p.jsx)(a.P.Option,{value:"15000",children:c("15 sec")}),(0,p.jsx)(a.P.Option,{value:"60000",children:c("1 min")}),(0,p.jsx)(a.P.Option,{value:"120000",children:c("2 min")}),(0,p.jsx)(a.P.Option,{value:"300000",children:c("5 min")})]})]})}},61168:(e,t,s)=>{s.d(t,{l:()=>l});var r=s(16318),n=s(99294),a=s(10161);const o=(0,n.cn)("ydb-cell-with-popover"),i=100;function l(e){let{children:t,className:s,wrapperClassName:n,...l}=e;return(0,a.jsx)("div",{className:o(null,n),children:(0,a.jsx)(r.J,{delayClosing:i,delayOpening:i,className:o("popover",s),...l,children:t})})}},43926:(e,t,s)=>{s.d(t,{f:()=>o});var r=s(34706),n=s(24874),a=s(10161);const o=e=>{let{children:t,content:s,className:o,pinOnClick:i,hasArrow:l=!0,placement:d=["top","bottom"],...u}=e;const[c,p]=r.useState(!1),[m,h]=r.useState(!1),g=r.useRef(null);return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)(n.G,{anchorRef:g,open:m||c,placement:d,hasArrow:l,onOutsideClick:()=>{h(!1)},...u,children:s}),(0,a.jsx)("span",{className:o,ref:g,onClick:i?()=>{h(!0)}:void 0,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},children:t})]})}},90457:(e,t,s)=>{s.d(t,{p:()=>d});s(34706);var r=s(99294),n=s(27810),a=s(53458),o=s(55842),i=s(10161);const l=(0,r.cn)("storage-disk-progress-bar");function d(e){let{diskAllocatedPercent:t=-1,severity:s,compact:r,faded:d,inactive:u,empty:c,content:p,className:m}=e;const[h]=(0,o.yu)(n.yT),g={inverted:h,compact:r,faded:d,empty:c,inactive:u},v=void 0!==s&&(0,a.b2)(s);v&&(g[v.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(g,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:[(()=>{if(r)return(0,i.jsx)("div",{className:l("fill-bar",g),style:{width:"100%"}});const e=h?100-t:t;return t>=0?(0,i.jsx)("div",{className:l("fill-bar",g),style:{width:`${e}%`}}):null})(),p||(!r&&t>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(t)}%`}):null)]})}},14325:(e,t,s)=>{s.d(t,{C:()=>l});var r=s(2634),n=s(99294);const a=(0,s(37711).wZ)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(10161);const i=(0,n.cn)("ydb-entities-count"),l=e=>{let{total:t,current:s,label:n,loading:l,className:d}=e,u="";return n&&(u+=`${n}: `),l?u+="...":(u+=`${s}`,t&&Number(t)!==Number(s)&&(u+=` ${a("of")} ${t}`)),(0,o.jsx)(r._,{theme:"info",size:"m",className:i(null,d),children:u})}},62508:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(17823),n=s(99175),a=s(77468),o=s(99294),i=s(32489),l=s(73287),d=s(10161);const u=(0,o.cn)("entity-status");function c(e){let{status:t=a.K.Grey,name:s="",label:o,path:c,iconPath:p,size:m="s",mode:h="color",showStatus:g=!0,externalLink:v=!1,withLeftTrim:N=!1,hasClipboardButton:S,clipboardButtonAlwaysVisible:b=!1,className:f}=e;const x=()=>g?(0,d.jsx)(l.J,{className:u("icon"),status:t,size:m,mode:h}):null;return(0,d.jsxs)("div",{className:u(null,f),title:s,children:[p?(w=p,(0,d.jsx)(r.r,{target:"_blank",href:w,children:x()})):x(),o&&(0,d.jsx)("span",{title:o,className:u("label",{size:m,state:t.toLowerCase()}),children:o}),(c||s)&&(0,d.jsxs)("div",{className:u("wrapper"),children:[(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:s}):(0,d.jsx)(i.h,{className:u("name"),to:c,children:s}):s&&(0,d.jsx)("span",{className:u("name"),children:s})}),S&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:b}),children:(0,d.jsx)(n.m,{text:s,size:"xs",view:"normal",className:u("clipboard-button",{visible:b})})})]})]});var w}},91890:(e,t,s)=>{s.d(t,{I:()=>u});var r=s(34706),n=s(24874),a=s(58399),o=s.n(a),i=s(99294),l=s(10161);const d=(0,i.cn)("hover-popup"),u=e=>{let{children:t,popupContent:s,showPopup:a,offset:i,anchorRef:u,onShowPopup:c,onHidePopup:p,placement:m=["top","bottom"],contentClassName:h}=e;const[g,v]=r.useState(!1),N=r.useRef(null),S=r.useMemo((()=>o()((()=>{v(!0),null===c||void 0===c||c()}),100)),[c]),b=r.useCallback((()=>{v(!1),null===p||void 0===p||p()}),[p]),f=r.useMemo((()=>o()(b,100)),[b]),x=S,[w,D]=r.useState(!1),[k,y]=r.useState(!1),I=r.useCallback((()=>{D(!0)}),[]),j=r.useCallback((()=>{D(!1)}),[]),C=r.useCallback((()=>{y(!0)}),[]),P=r.useCallback((()=>{y(!1)}),[]),E=r.useCallback((()=>{y(!1),D(!1),b()}),[b]),G=g||a||w||k;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("span",{ref:N,onMouseEnter:x,onMouseLeave:()=>{S.cancel(),f()},children:t}),(0,l.jsx)(n.G,{contentClassName:d(null,h),anchorRef:u||N,open:G,onMouseEnter:I,onMouseLeave:j,onEscapeKeyDown:E,onBlur:P,placement:m,hasArrow:!0,offset:i||[0,12],children:(0,l.jsx)("div",{onContextMenu:C,children:s})})]})}},66970:(e,t,s)=>{s.d(t,{J:()=>S,b:()=>N});var r=s(34706),n=s(65e3),a=s(4969),o=s(77468),i=s(25665),l=s(27810),d=s(70340),u=s(53458),c=s(55842),p=s(73689),m=s(41591),h=s(90808),g=s(10161);const v=[o.K.Orange,o.K.Red,o.K.Yellow],N=(e,t,s)=>{var r;const{AvailableSize:n,TotalSize:a,State:o,PDiskId:c,NodeId:m,Path:N,Realtime:S,Type:b,Device:f}=e,x=[{label:"PDisk",value:null!==(r=(0,u.CH)(m,c))&&void 0!==r?r:l.jX},{label:"State",value:o||"not available"},{label:"Type",value:b||"unknown"}];if(m&&x.push({label:"Node Id",value:m}),t&&x.push({label:"Host",value:t}),N&&x.push({label:"Path",value:N}),x.push({label:"Available",value:`${(0,p.Uz)(n)} of ${(0,p.Uz)(a)}`}),S&&v.includes(S)&&x.push({label:"Realtime",value:S}),f&&v.includes(f)&&x.push({label:"Device",value:f}),s&&(0,i.D)(m)&&(0,i.D)(c)){const e=(0,d.ok)({nodeId:m,pDiskId:c});x.push({label:"Links",value:(0,g.jsx)(h.j,{title:"Developer UI",url:e})})}return x},S=e=>{let{data:t}=e;const s=(0,c.ix)(n.VH),o=(0,c.ix)(a.s),l=(0,i.D)(t.NodeId)?null===o||void 0===o?void 0:o.get(t.NodeId):void 0,d=r.useMemo((()=>N(t,l,s)),[t,l,s]);return(0,g.jsx)(m._P,{title:"PDisk",info:d,size:"s"})}},79317:(e,t,s)=>{s.d(t,{WQ:()=>U});var r=s(34706),n=s(25665),a=s(74640);const o=s(78759).h.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async(e,t)=>{let{offset:s,limit:r,sortParams:n,filters:a,columnsIds:o,fetchData:i}=e,{signal:l}=t;try{return{data:await i({limit:r,offset:s,filters:a,sortParams:n,columnsIds:o,signal:l})}}catch(d){return{error:d}}},providesTags:["All"]})}}});var i=s(55842),l=s(15327),d=s(5194);const u="left",c=!0,p=-1,m=40;const h=(0,s(99294).cn)("ydb-paginated-table");var g=s(10161);const v=e=>{let{children:t,className:s,height:r,width:n,align:a=u,resizeable:o}=e;return(0,g.jsx)("td",{className:h("row-cell",{align:a},s),style:{height:`${r}px`,width:`${n}px`,maxWidth:o?`${n}px`:void 0},children:t})},N=e=>{let{index:t,columns:s,height:r}=e;return(0,g.jsx)("tr",{className:h("row",{loading:!0}),children:s.map((e=>{var s;const n=null!==(s=e.resizeable)&&void 0!==s?s:c;return(0,g.jsx)(v,{height:r,width:e.width,align:e.align,className:e.className,resizeable:n,children:(0,g.jsx)(d.O,{className:h("row-skeleton"),style:{width:"80%",height:"50%"}})},`${e.name}${t}`)}))})},S=e=>{let{row:t,index:s,columns:r,getRowClassName:n,height:a}=e;const o=null===n||void 0===n?void 0:n(t);return(0,g.jsx)("tr",{className:h("row",o),children:r.map((e=>{var r;const n=null!==(r=e.resizeable)&&void 0!==r?r:c;return(0,g.jsx)(v,{height:a,width:e.width,align:e.align,className:e.className,resizeable:n,children:e.render({row:t,index:s})},`${e.name}${s}`)}))})},b=e=>{let{columns:t,children:s}=e;return(0,g.jsx)("tr",{className:h("row",{empty:!0}),children:(0,g.jsx)("td",{colSpan:t.length,className:h("td"),children:s})})},f=e=>{var t;let{id:s,limit:a,totalLength:d,rowHeight:u,columns:c,fetchData:p,tableName:m,filters:h,sortParams:v,getRowClassName:f,renderErrorMessage:x,onDataFetched:w,isActive:D}=e;const[k,y]=r.useState(!0),[I]=(0,i.Rj)(),j={offset:s*a,limit:a,fetchData:p,filters:h,sortParams:v,columnsIds:c.map((e=>e.name)),tableName:m};o.useFetchTableChunkQuery(j,{skip:k||!D,pollingInterval:I});const{currentData:C,error:P}=o.endpoints.fetchTableChunk.useQueryState(j);r.useEffect((()=>{let e=0;return D&&k&&(e=window.setTimeout((()=>{y(!1)}),200)),()=>{window.clearTimeout(e)}}),[D,k]),r.useEffect((()=>{if(C&&D){const{total:e=0,found:t=0}=C;w(e,t)}}),[C,D,w]);const E=d-s*a,G=E<a?E:a,T=(null===C||void 0===C||null===(t=C.data)||void 0===t?void 0:t.length)||G,U=T?T*u:a*u;return(0,g.jsx)("tbody",{id:s.toString(),style:{height:`${U}px`,display:D?"table-row-group":"block"},children:(()=>{if(!D)return null;if(!C){if(P){const e=P;return(0,g.jsx)(b,{columns:c,children:x?x(e):(0,g.jsx)(l.V,{error:e})})}return(0,n.c$)(T).map((e=>(0,g.jsx)(N,{columns:c,height:u,index:e},e)))}return C.data.map(((e,t)=>(0,g.jsx)(S,{index:t,row:e,columns:c,height:u,getRowClassName:f},t)))})()})};function x(e){let{minWidth:t,maxWidth:s,getCurrentColumnWidth:n,onResize:a}=e;const o=r.useRef(null),[i,l]=r.useState(!1);return r.useEffect((()=>{const e=o.current;if(!e)return;let r,i,d;const u=function(e){let t,s=null;return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];t=n,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((e=>{if(w(e),"number"!==typeof r||"number"!==typeof i)return;const n=e.clientX-r,o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.max(t,Math.min(e,s))}(i+n,t,s);o!==d&&(d=o,null===a||void 0===a||a(d))})),c=e=>{w(e),void 0!==d&&(null===a||void 0===a||a(d)),l(!1),r=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},p=e=>{i=n(),w(e),r=e.clientX,l(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return e.addEventListener("mousedown",p),()=>{e.removeEventListener("mousedown",p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[a,t,s,n]),(0,g.jsx)("span",{ref:o,className:h("resize-handler",{resizing:i}),onClick:e=>w(e)})}function w(e){e.preventDefault(),e.stopPropagation()}const D=e=>{let{order:t}=e;return(0,g.jsx)("svg",{className:h("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"})})},k=e=>{let{sortOrder:t,sortable:s,defaultSortOrder:r}=e;return s?(0,g.jsx)("span",{className:h("sort-icon-container",{shadow:!t}),children:(0,g.jsx)(D,{order:t||r})}):null},y=e=>{var t;let{column:s,resizeable:n,sortOrder:a,defaultSortOrder:o,onSort:i,rowHeight:l,onCellMount:d,onCellUnMount:u,onColumnsResize:c}=e;const p=r.useRef(null);r.useEffect((()=>{const e=p.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=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),v=r.useCallback((e=>{null===c||void 0===c||c(s.name,e)}),[c,s.name]),N=null!==(t=s.header)&&void 0!==t?t:s.name,S={height:`${l}px`,width:`${s.width}px`,minWidth:n?`${s.width}px`:void 0,maxWidth:n?`${s.width}px`:void 0};return(0,g.jsxs)("th",{ref:p,className:h("head-cell-wrapper"),style:S,children:[(0,g.jsxs)("div",{className:h("head-cell",{align:s.align,sortable:s.sortable},s.className),onClick:()=>{s.sortable&&(null===i||void 0===i||i(s.name))},children:[(0,g.jsx)("div",{className:h("head-cell-content"),children:N}),(0,g.jsx)(k,{sortOrder:a,sortable:s.sortable,defaultSortOrder:o})]}),n?(0,g.jsx)(x,{maxWidth:s.resizeMaxWidth,minWidth:s.resizeMinWidth,getCurrentColumnWidth:m,onResize:v}):null]})},I=e=>{let{columns:t,onSort:s,onColumnsResize:n,defaultSortOrder:a=p,rowHeight:o=m}=e;const[i,l]=r.useState({}),d=e=>{let t={};if(e===i.columnId){if(i.sortOrder&&i.sortOrder!==a)return l(t),void(null===s||void 0===s||s(t));t={sortOrder:1===i.sortOrder?-1:1,columnId:e}}else t={sortOrder:a,columnId:e};null===s||void 0===s||s(t),l(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:h("head"),children:(0,g.jsx)("tr",{children:t.map((e=>{var t;const s=i.columnId===e.name?i.sortOrder:void 0,r=n&&(null!==(t=e.resizeable)&&void 0!==t?t:c);return(0,g.jsx)(y,{column:e,resizeable:r,sortOrder:s,defaultSortOrder:a,onSort:d,rowHeight:o,onColumnsResize:n},e.name)}))})})]})};var j=s(37711);const C=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),P=(0,j.wZ)("ydb-paginated-table",{ru:C,en:{empty:"No data"}});var E=s(76421);const G=e=>{let{limit:t,initialEntitiesCount:s,fetchData:o,filters:i,tableName:l,columns:d,getRowClassName:u,rowHeight:c=m,parentRef:p,initialSortParams:v,onColumnsResize:N,renderControls:S,renderErrorMessage:x,renderEmptyDataMessage:w,containerClassName:D}=e;const k=s||t,y=s||0,[j,C]=r.useState(v),[G,T]=r.useState(k),[U,R]=r.useState(y),[L,M]=r.useState(!0),A=r.useRef(null),V=(e=>{let{containerRef:t,totalItems:s,itemHeight:a,chunkSize:o}=e;const[i,l]=r.useState((0,n.c$)(2).map((e=>e))),d=r.useCallback((()=>{const e=t.current;if(!e)return;const{scrollTop:r,clientHeight:i}=e,d=Math.floor(r/a),u=Math.min(Math.ceil((r+i)/a),s-1),c=Math.floor(d/o),p=Math.floor(u/o),m=(0,n.c$)(p-c+1+1).map((e=>c+e));l(m)}),[o,t,a,s]),u=r.useMemo((()=>(0,E.throttle)(d,100)),[d]);return r.useEffect((()=>{const e=t.current;if(e)return e.addEventListener("scroll",u),()=>{e.removeEventListener("scroll",u),u.cancel()}}),[t,u]),i})({containerRef:null!==p&&void 0!==p?p:A,totalItems:U,itemHeight:c,chunkSize:t}),z=r.useCallback(((e,t)=>{T(e),R(t),M(!1)}),[]);r.useLayoutEffect((()=>{var e;(T(k),R(y),M(!0),null!==p&&void 0!==p&&p.current)?p.current.scrollTo(0,0):null===(e=A.current)||void 0===e||e.scrollTo(0,0)}),[i,y,k,t,p]);const O=()=>{if(!L&&0===U)return(0,g.jsx)("tbody",{children:(0,g.jsx)(b,{columns:d,children:w?w():P("empty")})});const e=U||t,s=Math.ceil(e/t);return(0,n.c$)(s).map((s=>(0,g.jsx)(f,{id:s,limit:t,totalLength:e,rowHeight:c,columns:d,fetchData:o,filters:i,tableName:l,sortParams:j,getRowClassName:u,renderErrorMessage:x,onDataFetched:z,isActive:V.includes(s)},s)))},F=()=>(0,g.jsxs)("table",{className:h("table"),children:[(0,g.jsx)(I,{columns:d,onSort:C,onColumnsResize:N}),O()]});return(0,g.jsx)("div",{ref:A,className:h(null,D),children:S?(0,g.jsxs)(a.l,{children:[(0,g.jsx)(a.l.Controls,{children:S({inited:!L,totalEntities:G,foundEntities:U})}),(0,g.jsx)(a.l.Table,{children:F()})]}):F()})};var T=s(46154);function U(e){let{columnsWidthLSKey:t,columns:s,...r}=e;const[n,a]=(0,T.M)(t),o=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(s,n);return(0,g.jsx)(G,{columns:o,onColumnsResize:a,containerClassName:h("resizeable-table-container"),...r})}},31580:(e,t,s)=>{s.d(t,{m:()=>u});var r=s(99294),n=s(43926),a=s(13467),o=s(10161);const i=(0,r.cn)("ydb-pool-bar"),l=e=>{let{data:t={}}=e;const{Usage:s=0}=t,r=Math.min(100*s,100),l=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(r);return(0,o.jsx)(n.f,{className:i({type:l}),content:(0,o.jsx)(a.A8,{data:t,className:i("popup-content")}),children:(0,o.jsx)("div",{style:{height:`${r}%`},className:i("value",{type:l})})})},d=(0,r.cn)("ydb-pools-graph"),u=e=>{let{pools:t=[]}=e;return(0,o.jsx)("div",{className:d(),children:t.map(((e,t)=>(0,o.jsx)(l,{data:e},t)))})}},20760:(e,t,s)=>{s.d(t,{y:()=>p});var r=s(53216),n=s(99294),a=s(14075),o=s(95440),i=s(73689),l=s(10161);const d=(0,n.cn)("progress-viewer"),u=e=>(0,a.uf)((0,a.W0)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function p(e){let{value:t,capacity:s,formatValues:n=c,percents:a,className:u,size:p="xs",colorizeProgress:m,inverseColorize:h,warningThreshold:g=60,dangerThreshold:v=80}=e;const N=(0,r.F)();let S=Math.round(parseFloat(String(t))/parseFloat(String(s))*100)||0;S=S>100?100:S;let b=t,f=s,x="/";a?(b=S+"%",f="",x=""):n&&([b,f]=n(Number(t),Number(s)));const w=(0,o.S)({fillWidth:S,warningThreshold:g,dangerThreshold:v,colorizeProgress:m,inverseColorize:h});m&&!(0,i.kE)(s)&&(S=100);const D={width:S+"%"};return(0,i.kE)(t)?(0,l.jsxs)("div",{className:d({size:p,theme:N,status:w},u),children:[(0,l.jsx)("div",{className:d("line"),style:D}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kE)(s)?`${b} ${x} ${f}`:b})]}):(0,l.jsx)("div",{className:`${d({size:p})} ${u} error`,children:"no data"})}},74116:(e,t,s)=>{s.d(t,{G:()=>d});var r=s(59769),n=s(71624),a=s(99294),o=s(46154),i=s(10161);const l=(0,a.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:t,columns:s,settings:a,wrapperClassName:d,...u}=e;const[c,p]=(0,o.M)(t),m=(0,r.B)(s,c),h={...a,defaultResizeable:!0};return(0,i.jsx)("div",{className:l(null,d),children:(0,i.jsx)(n.ZP,{theme:"yandex-cloud",columns:m,onResize:p,settings:h,...u})})}},76485:(e,t,s)=>{s.d(t,{o:()=>l});var r=s(34706),n=s(86357),a=s(99294),o=s(10161);const i=(0,a.cn)("ydb-search"),l=e=>{let{onChange:t,value:s="",className:a,debounce:l=200,placeholder:d}=e;const[u,c]=r.useState(s),p=r.useRef();r.useEffect((()=>{c((e=>e!==s?s:e))}),[s]);return(0,o.jsx)(n.o,{hasClear:!0,autoFocus:!0,className:i(null,a),placeholder:d,value:u,onUpdate:e=>{c(e),window.clearTimeout(p.current),p.current=window.setTimeout((()=>{null===t||void 0===t||t(e)}),l)}})}},73287:(e,t,s)=>{s.d(t,{J:()=>p});var r=s(29254),n=s(96334),a=s(15268),o=s(14561),i=s(77468),l=s(99294),d=s(10161);const u=(0,l.cn)("ydb-status-icon"),c={[i.K.Blue]:r.Z,[i.K.Yellow]:n.Z,[i.K.Orange]:a.Z,[i.K.Red]:n.Z};function p(e){let{status:t=i.K.Grey,size:s="s",mode:r="color",className:n}=e;const a={state:t.toLowerCase(),size:s};return"icons"===r&&t in c?(0,d.jsx)(o.J,{className:u("status-icon",a,n),data:c[t]}):(0,d.jsx)("div",{className:u("status-color",a,n)})}},22877:(e,t,s)=>{s.d(t,{h:()=>l});var r=s(5194),n=s(99294),a=s(83658),o=s(10161);const i=(0,n.cn)("table-skeleton"),l=e=>{let{rows:t=2,delay:s=600,className:n}=e;const[l]=(0,a.$)(s);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!l},n),children:[(0,o.jsxs)("div",{className:i("row"),children:[(0,o.jsx)(r.O,{className:i("col-1")}),(0,o.jsx)(r.O,{className:i("col-2")}),(0,o.jsx)(r.O,{className:i("col-3")}),(0,o.jsx)(r.O,{className:i("col-4")}),(0,o.jsx)(r.O,{className:i("col-5")})]}),[...new Array(t)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:(0,o.jsx)(r.O,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},74640:(e,t,s)=>{s.d(t,{l:()=>i});var r=s(99294),n=s(22877),a=s(10161);const o=(0,r.cn)("ydb-table-with-controls-layout"),i=e=>{let{children:t,className:s}=e;return(0,a.jsx)("div",{className:o(null,s),children:t})};i.Controls=function(e){let{children:t,className:s}=e;return(0,a.jsx)("div",{className:o("controls-wrapper"),children:(0,a.jsx)("div",{className:o("controls",s),children:t})})},i.Table=function(e){let{children:t,loading:s,className:r}=e;return s?(0,a.jsx)(n.h,{className:o("loader")}):(0,a.jsx)("div",{className:o("table",r),children:t})}},56065:(e,t,s)=>{s.d(t,{X:()=>o});var r=s(67661),n=s(96183),a=s(10161);const o=e=>{let{value:t,onChange:s,className:o}=e;return(0,a.jsxs)(r.E,{value:t,onUpdate:s,className:o,children:[(0,a.jsx)(r.E.Option,{value:n.Uu.All,children:n.qU[n.Uu.All]}),(0,a.jsx)(r.E.Option,{value:n.Uu.SmallUptime,children:n.qU[n.Uu.SmallUptime]})]})}},46931:(e,t,s)=>{s.d(t,{a:()=>i});var r=s(2634),n=s(99294),a=s(10161);const o=(0,n.cn)("ydb-usage-label");function i(e){let{value:t,overloadThreshold:s=90,theme:n,...i}=e;return(0,a.jsxs)(r._,{theme:n,className:o({overload:Number(t)>=s}),...i,children:[t||0,"%"]})}},4893:(e,t,s)=>{s.d(t,{T:()=>P});var r=s(99294),n=s(90457),a=s(91890),o=s(67653),i=s(34706),l=s(2634),d=s(65e3),u=s(4969),c=s(77468),p=s(25665),m=s(27810),h=s(14075),g=s(70340),v=s(53458),N=s(55842),S=s(73689),b=s(41591),f=s(90808),x=s(66970),w=s(75544),D=s(46878);function k(e){let t;const s=(0,v.Iz)(e)?e.VDiskSlotId:e.VSlotId;return(0,p.D)(s)&&(0,p.D)(e.PDiskId)&&(0,p.D)(e.NodeId)?t=(0,D.By)(s,e.PDiskId,e.NodeId):(0,p.D)(e.NodeId)&&(0,v.Iz)(e)&&(t=(0,D.ax)(D.ZP.node,{id:e.NodeId,activeTab:w.pV},{pdiskId:e.PDiskId,vdiskId:(0,h.a2)(e.VDiskId)})),t}var y=s(10161);const I=(0,r.cn)("vdisk-storage-popup"),j=e=>{let{data:t}=e;const s=(0,v.Iz)(t),r=(0,N.ix)(d.VH),n=i.useMemo((()=>s?((e,t)=>{var s,r,n,a;const{NodeId:o,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:u,SatisfactionRank:m,DiskSpace:h,FrontQueues:v,Replicated:N,UnsyncedVDisks:b,AllocatedSize:x,ReadThroughput:w,WriteThroughput:D,StoragePoolName:k}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==u&&void 0!==u?u:"not available"}];var j,C;if(k&&I.push({label:"StoragePool",value:k}),m&&(null===(s=m.FreshRank)||void 0===s?void 0:s.Flag)!==c.K.Green&&I.push({label:"Fresh",value:null===(j=m.FreshRank)||void 0===j?void 0:j.Flag}),m&&(null===(r=m.LevelRank)||void 0===r?void 0:r.Flag)!==c.K.Green&&I.push({label:"Level",value:null===(C=m.LevelRank)||void 0===C?void 0:C.Flag}),m&&null!==(n=m.FreshRank)&&void 0!==n&&n.RankPercent&&I.push({label:"Fresh",value:m.FreshRank.RankPercent}),m&&null!==(a=m.LevelRank)&&void 0!==a&&a.RankPercent&&I.push({label:"Level",value:m.LevelRank.RankPercent}),h&&h!==c.K.Green&&I.push({label:"Space",value:h}),v&&v!==c.K.Green&&I.push({label:"FrontQueues",value:v}),N||I.push({label:"Replicated",value:"NO"}),b&&I.push({label:"UnsyncVDisks",value:b}),Number(x)&&I.push({label:"Allocated",value:(0,S.Uz)(x)}),Number(w)&&I.push({label:"Read",value:(0,S.Qt)(w)}),Number(D)&&I.push({label:"Write",value:(0,S.Qt)(D)}),t&&(0,p.D)(o)&&(0,p.D)(i)&&(0,p.D)(l)){const e=(0,g.yf)({nodeId:o,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,y.jsx)(f.j,{title:"Developer UI",url:e})})}return I})(t,r):((e,t)=>{const{NodeId:s,PDiskId:r,VSlotId:n,StoragePoolName:a}=e,o=[{label:"State",value:"not available"}];if(a&&o.push({label:"StoragePool",value:a}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:m.jX},{label:"PDiskId",value:null!==r&&void 0!==r?r:m.jX},{label:"VSlotId",value:null!==n&&void 0!==n?n:m.jX}),t&&(0,p.D)(s)&&(0,p.D)(r)&&(0,p.D)(n)){const e=(0,g.yf)({nodeId:s,pDiskId:r,vDiskSlotId:n});o.push({label:"Links",value:(0,y.jsx)(f.j,{title:"Developer UI",url:e})})}return o})(t,r)),[t,s,r]),a=(0,N.ix)(u.s),w=(0,p.D)(t.NodeId)?null===a||void 0===a?void 0:a.get(t.NodeId):void 0,D=i.useMemo((()=>s&&t.PDisk&&(0,x.b)(t.PDisk,w,r)),[t,w,s,r]),j=[];if("Donors"in t&&t.Donors){const e=t.Donors;for(const t of e){const e=(0,v.Iz)(t);j.push({label:"VDisk",value:(0,y.jsx)(o.h,{to:k(t),children:(0,h.a2)(e?t.VDiskId:{NodeId:t.NodeId,PDiskId:t.PDiskId,VSlotId:t.VSlotId})})})}}return(0,y.jsxs)("div",{className:I(),children:[t.DonorMode&&(0,y.jsx)(l._,{className:I("donor-label"),children:"Donor"}),(0,y.jsx)(b._P,{title:"VDisk",info:n,size:"s"}),D&&(0,y.jsx)(b._P,{title:"PDisk",info:D,size:"s"}),j.length>0&&(0,y.jsx)(b._P,{title:"Donors",info:j,size:"s"})]})},C=(0,r.cn)("ydb-vdisk-component"),P=e=>{let{data:t={},compact:s,inactive:r,showPopup:i,onShowPopup:l,onHidePopup:d,progressBarClassName:u}=e;const c=k(t);return(0,y.jsx)(a.I,{showPopup:i,onShowPopup:l,onHidePopup:d,popupContent:(0,y.jsx)(j,{data:t}),children:(0,y.jsx)("div",{className:C(),children:(0,y.jsx)(o.h,{to:c,className:C("content"),children:(0,y.jsx)(n.p,{diskAllocatedPercent:t.AllocatedPercent,severity:t.Severity,compact:s,inactive:r,className:u})})})})}},9796:(e,t,s)=>{s.d(t,{eb:()=>A,EF:()=>G,cB:()=>O,Up:()=>P,gs:()=>V,OJ:()=>z,rh:()=>L,Fi:()=>H,A6:()=>C,iJ:()=>E,KO:()=>T,As:()=>F,Zn:()=>M,TX:()=>W,VQ:()=>R,Zi:()=>U});var r=s(71624),n=s(16124),a=s(25665),o=s(27810),i=s(14075),l=s(61734),d=s(61168),u=s(2194),c=s(75544),p=s(70340),m=s(96183),h=s(62508),g=s(13467),v=s(10161);const N=e=>{let{node:t,getNodeRef:s,database:r}=e;if(!t.Host)return(0,v.jsx)("span",{children:"\u2014"});const n=!(0,m.TA)(t);let a;s?a=s(t)+"internal":t.NodeId&&(a=(0,p.wq)(t.NodeId)+"internal");const o=n?(0,c.a3)(t.NodeId,{tenantName:null!==r&&void 0!==r?r:t.TenantName}):void 0;return(0,v.jsx)(d.l,{disabled:!n,content:(0,v.jsx)(g.bP,{data:t,nodeHref:a}),placement:["top","bottom"],behavior:u.x.Immediate,children:(0,v.jsx)(h.A,{name:t.Host,status:t.SystemState,path:o,hasClipboardButton:!0})})};var S=s(31580),b=s(20760),f=s(26836),x=s(46878),w=s(99294),D=s(55973);const k=(0,w.cn)("tablets-statistic"),y=e=>{let{tablets:t=[],tenantName:s,nodeId:r,backend:n}=e;const a=(e=>e.map((e=>({label:(0,o.qV)(e.Type),type:e.Type,count:e.Count,state:(0,D.FW)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(t);return(0,v.jsx)("div",{className:k(),children:a.map(((e,t)=>{var a;const o=(0,x.ax)(x.ZP.node,{id:r,activeTab:c.IA},{tenantName:s,backend:n}),i=`${e.label}: ${e.count}`,l=k("tablet",{state:null===(a=e.state)||void 0===a?void 0:a.toLowerCase()});return n?(0,v.jsx)("a",{href:o,className:l,children:i},t):(0,v.jsx)(f.rU,{to:o,className:l,children:i},t)}))})};var I=s(46931),j=s(27660);function C(){return{name:j.xv.NodeId,header:"#",width:80,render:e=>{let{row:t}=e;return t.NodeId},align:r.ZP.RIGHT}}function P(e){let{getNodeRef:t,database:s}=e;return{name:j.xv.Host,header:j.Pr.Host,render:e=>{let{row:r}=e;return(0,v.jsx)(N,{node:r,getNodeRef:t,database:s})},width:350,align:r.ZP.LEFT}}function E(){return{name:j.xv.NodeName,header:j.Pr.NodeName,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.NodeName||o.jX},width:200}}function G(){return{name:j.xv.DC,header:j.Pr.DC,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.DC||o.jX},width:60}}function T(){return{name:j.xv.Rack,header:j.Pr.Rack,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.Rack||o.jX},width:100}}function U(){return{name:j.xv.Version,header:j.Pr.Version,width:200,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return(0,v.jsx)(d.l,{content:t.Version,children:t.Version})}}}function R(){return{name:j.xv.Uptime,header:j.Pr.Uptime,sortAccessor:e=>{let{StartTime:t}=e;return t?-t:0},render:e=>{let{row:t}=e;return t.Uptime},align:r.ZP.RIGHT,width:110}}function L(){return{name:j.xv.Memory,header:j.Pr.Memory,sortAccessor:e=>{let{MemoryUsed:t=0}=e;return Number(t)},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,v.jsx)(b.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:i.q3,colorizeProgress:!0})},align:r.ZP.LEFT,width:170,resizeMinWidth:170}}function M(){return{name:j.xv.SharedCacheUsage,header:j.Pr.SharedCacheUsage,render:e=>{let{row:t}=e;return(0,v.jsx)(b.y,{value:t.SharedCacheUsed,capacity:t.SharedCacheLimit,formatValues:i.q3,colorizeProgress:!0})},align:r.ZP.LEFT,width:170,resizeMinWidth:170}}function A(){return{name:j.xv.CPU,header:j.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,v.jsx)(S.m,{pools:t.PoolStats}):o.jX},align:r.ZP.LEFT,width:80,resizeMinWidth:60}}function V(){return{name:j.xv.LoadAverage,header:j.Pr.LoadAverage,sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,v.jsx)(b.y,{value:t.LoadAveragePercents&&t.LoadAveragePercents.length>0?t.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100})},align:r.ZP.LEFT,width:170,resizeMinWidth:170}}function z(){return{name:j.xv.Load,header:j.Pr.Load,sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,v.jsx)(I.a,{value:t.LoadAveragePercents[0].toFixed(),theme:(0,n.w)(t.LoadAveragePercents[0])}):o.jX},align:r.ZP.LEFT,width:80,resizeMinWidth:70}}function O(){return{name:j.xv.DiskSpaceUsage,header:j.Pr.DiskSpaceUsage,render:e=>{let{row:t}=e;return(0,a.D)(t.DiskSpaceUsage)?(0,v.jsx)(I.a,{value:Math.floor(t.DiskSpaceUsage),theme:(0,l.HQ)(t.DiskSpaceUsage)}):o.jX},align:r.ZP.LEFT,width:115,resizeMinWidth:75}}function F(){return{name:j.xv.TotalSessions,header:j.Pr.TotalSessions,render:e=>{var t;let{row:s}=e;return null!==(t=s.TotalSessions)&&void 0!==t?t:o.jX},align:r.ZP.RIGHT,width:100}}function W(e){let{database:t}=e;return{name:j.xv.Tablets,header:j.Pr.Tablets,width:500,resizeMinWidth:500,render:e=>{let{row:s}=e;return s.Tablets?(0,v.jsx)(y,{tenantName:null!==t&&void 0!==t?t:s.TenantName,nodeId:s.NodeId,tablets:s.Tablets}):o.jX},align:r.ZP.LEFT,sortable:!1}}function H(){return{name:j.xv.Missing,header:j.Pr.Missing,render:e=>{let{row:t}=e;return t.Missing},align:r.ZP.CENTER,defaultOrder:r.ZP.DESCENDING}}},27660:(e,t,s)=>{s.d(t,{xv:()=>i,Pr:()=>l,WN:()=>d,t5:()=>o});var r=s(37711);const n=JSON.parse('{"node-id":"Node ID","host":"Host","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Memory","cpu":"CPU","disk-usage":"Disk usage","tablets":"Tablets","load-average":"Load Average","load":"Load","caches":"Caches","sessions":"Sessions","missing":"Missing","pdisks":"PDisks"}'),a=(0,r.wZ)("ydb-nodes-columns",{en:n}),o="nodesTableColumnsWidth",i={NodeId:"NodeId",Host:"Host",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",CPU:"CPU",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",SharedCacheUsage:"SharedCacheUsage",TotalSessions:"TotalSessions",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},l={get NodeId(){return a("node-id")},get Host(){return a("host")},get NodeName(){return a("node-name")},get DC(){return a("dc")},get Rack(){return a("rack")},get Version(){return a("version")},get Uptime(){return a("uptime")},get Memory(){return a("memory")},get CPU(){return a("cpu")},get LoadAverage(){return a("load-average")},get Load(){return a("load")},get DiskSpaceUsage(){return a("disk-usage")},get SharedCacheUsage(){return a("caches")},get TotalSessions(){return a("sessions")},get Missing(){return a("missing")},get Tablets(){return a("tablets")},get PDisks(){return a("pdisks")}},d={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime"],Memory:["Memory"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],SharedCacheUsage:["SystemState"],TotalSessions:["SystemState"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]}},98530:(e,t,s)=>{s.d(t,{l:()=>g});var r=s(34706),n=s(90457),a=s(91890),o=s(67653),i=s(66970),l=s(4893),d=s(46878),u=s(25665),c=s(99294),p=s(14418),m=s(10161);const h=(0,c.cn)("pdisk-storage"),g=e=>{let{data:t={},vDisks:s,showPopup:c,onShowPopup:g,onHidePopup:v,className:N,progressBarClassName:S,viewContext:b}=e;const{NodeId:f,PDiskId:x}=t,w=(0,u.D)(f)&&(0,u.D)(x),D=r.useRef(null);let k;return w&&(k=(0,d.ds)(x,f)),(0,m.jsxs)("div",{className:h(null,N),ref:D,children:[null!==s&&void 0!==s&&s.length?(0,m.jsx)("div",{className:h("vdisks"),children:s.map((e=>(0,m.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,m.jsx)(l.T,{data:e,inactive:!(0,p.XW)(e,b),compact:!0})},e.StringifiedId)))}):null,(0,m.jsx)(a.I,{showPopup:c,anchorRef:D,onShowPopup:g,onHidePopup:v,popupContent:(0,m.jsx)(i.J,{data:t}),children:(0,m.jsxs)(o.h,{to:k,className:h("content"),children:[(0,m.jsx)(n.p,{diskAllocatedPercent:t.AllocatedPercent,severity:t.Severity,className:S}),(0,m.jsx)("div",{className:h("media-type"),children:t.Type})]})})]})}},96635:(e,t,s)=>{s.d(t,{V:()=>re,m:()=>se});var r=s(34706),n=s(51553),a=s(71624),o=s(2194),i=s(2634),l=s(16318),d=s(14561),u=s(61168),c=s(67653),p=s(73287),m=s(46931),h=s(14075),g=s(53458),v=s(99294),N=s(10161);const S=(0,v.cn)("stack"),b=e=>{let{children:t,className:s}=e;return(0,N.jsx)("div",{className:S(null,s),children:r.Children.map(t,((e,t)=>r.isValidElement(e)?(0,N.jsx)("div",{className:S("layer"),style:{"--ydb-stack-level":t},children:e}):null))})};var f=s(4893);function x(e){let{data:t,className:s,stackClassName:r,...n}=e;const{Donors:a,...o}=t||{},i=a&&a.length>0?(0,N.jsxs)(b,{className:r,children:[(0,N.jsx)(f.T,{data:o,...n}),a.map((e=>{const t=(0,g.Iz)(e);return(0,N.jsx)(f.T,{data:e,...n},(0,h.a2)(t?e.VDiskId:e))}))]}):(0,N.jsx)(f.T,{data:t,...n});return(0,N.jsx)("div",{className:s,children:i})}var w=s(46878),D=s(25665),k=s(27810),y=s(61734),I=s(83627),j=s(73689),C=s(75246),P=s(79777),E=s(98530),G=s(14418);const T=(0,v.cn)("ydb-storage-disks"),U=300;function R(e){let{vDisks:t=[],viewContext:s}=e;const[n,a]=r.useState(),{theme:{spaceBaseSize:o}}=(0,C.l)();if(!t.length)return null;const i=(U-o*(t.length-1))/t.length;return(0,N.jsxs)("div",{className:T(null),children:[(0,N.jsx)(P.k,{direction:"row",gap:1,grow:!0,style:{width:U},children:null===t||void 0===t?void 0:t.map((e=>(0,N.jsx)(L,{vDisk:e,inactive:!(0,G.XW)(e,s),highlightedVDisk:n,setHighlightedVDisk:a,unavailableVDiskWidth:i},e.StringifiedId)))}),(0,N.jsx)("div",{className:T("pdisks-wrapper"),children:null===t||void 0===t?void 0:t.map((e=>{var t;return(0,N.jsx)(M,{vDisk:e,highlightedVDisk:n,setHighlightedVDisk:a},(0,g.CH)(e.NodeId,null===e||void 0===e||null===(t=e.PDisk)||void 0===t?void 0:t.PDiskId))}))})]})}function L(e){let{vDisk:t,highlightedVDisk:s,inactive:r,setHighlightedVDisk:n,unavailableVDiskWidth:a}=e;const o={...t,PDisk:void 0},i=t.StringifiedId,l=(0,D.D)(o.AllocatedSize)?void 0:a,d=Number(o.AllocatedSize)||1;return(0,N.jsx)("div",{style:{flexGrow:d,minWidth:l},className:T("vdisk-item"),children:(0,N.jsx)(f.T,{data:o,compact:!0,inactive:r,showPopup:s===i,onShowPopup:()=>n(i),onHidePopup:()=>n(void 0),progressBarClassName:T("vdisk-progress-bar")})})}function M(e){let{vDisk:t,highlightedVDisk:s,setHighlightedVDisk:r}=e;const n=t.StringifiedId;return t.PDisk?(0,N.jsx)(E.l,{className:T("pdisk-item"),progressBarClassName:T("pdisk-progress-bar"),data:t.PDisk,showPopup:s===n,onShowPopup:()=>r(n),onHidePopup:()=>r(void 0)}):null}var A=s(50791),V=s(78090);const z=(0,v.cn)("ydb-storage-groups-columns"),O={name:V.tn.PoolName,header:V.G0.PoolName,width:250,render:e=>{let{row:t}=e;return t.PoolName?(0,N.jsx)(u.l,{content:t.PoolName,placement:["right"],behavior:o.x.Immediate,className:z("pool-name-wrapper"),children:(0,N.jsx)("span",{className:z("pool-name"),children:t.PoolName})}):k.jX},align:a.ZP.LEFT},F={name:V.tn.MediaType,header:V.G0.MediaType,width:100,resizeMinWidth:100,align:a.ZP.LEFT,render:e=>{let{row:t}=e;return(0,N.jsxs)(r.Fragment,{children:[(0,N.jsx)(i._,{children:t.MediaType||"\u2014"}),"\xa0",t.Encryption&&(0,N.jsx)(l.J,{content:(0,A.Z)("encrypted"),placement:"right",behavior:o.x.Immediate,children:(0,N.jsx)(i._,{children:(0,N.jsx)(d.J,{data:n.Z,size:18})})})]})},sortable:!1},W={name:V.tn.Erasure,header:V.G0.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:e=>{let{row:t}=e;return t.ErasureSpecies?t.ErasureSpecies:"-"},align:a.ZP.LEFT},H={name:V.tn.Degraded,header:V.G0.Degraded,width:110,resizeMinWidth:110,render:e=>{let{row:t}=e;return t.Degraded?(0,N.jsxs)(i._,{theme:(0,G._O)(t),children:["Degraded: ",t.Degraded]}):"-"},align:a.ZP.LEFT,defaultOrder:a.ZP.DESCENDING},_={name:V.tn.Usage,header:V.G0.Usage,width:85,resizeMinWidth:75,render:e=>{let{row:t}=e;return(0,D.D)(t.Usage)?(0,N.jsx)(m.a,{value:Math.floor(t.Usage),theme:(0,y.HQ)(t.Usage)}):k.jX},align:a.ZP.LEFT},Z={name:V.tn.DiskSpaceUsage,header:V.G0.DiskSpaceUsage,width:115,resizeMinWidth:75,render:e=>{let{row:t}=e;return(0,D.D)(t.DiskSpaceUsage)?(0,N.jsx)(m.a,{value:Math.floor(t.DiskSpaceUsage),theme:(0,y.HQ)(t.DiskSpaceUsage)}):k.jX},align:a.ZP.LEFT},B={name:V.tn.GroupId,header:V.G0.GroupId,width:130,render:e=>{let{row:t}=e;return t.GroupId?(0,N.jsx)(c.h,{className:z("group-id"),to:(0,w.Uu)(t.GroupId),children:t.GroupId}):"-"},sortAccessor:e=>Number(e.GroupId),align:a.ZP.RIGHT},K={name:V.tn.Used,header:V.G0.Used,width:100,render:e=>{let{row:t}=e;return(0,j.Uz)(t.Used,!0)},align:a.ZP.RIGHT},$={name:V.tn.Limit,header:V.G0.Limit,width:100,render:e=>{let{row:t}=e;return(0,j.Uz)(t.Limit)},align:a.ZP.RIGHT},Q={name:V.tn.DiskSpace,header:V.G0.DiskSpace,width:70,render:e=>{let{row:t}=e;return(0,N.jsx)(p.J,{status:t.DiskSpace})},align:a.ZP.CENTER},X={name:V.tn.Read,header:V.G0.Read,width:100,render:e=>{let{row:t}=e;return t.Read?(0,j.Qt)(t.Read):"-"},align:a.ZP.RIGHT},J={name:V.tn.Write,header:V.G0.Write,width:100,render:e=>{let{row:t}=e;return t.Write?(0,j.Qt)(t.Write):"-"},align:a.ZP.RIGHT},Y={name:V.tn.Latency,header:V.G0.Latency,width:100,render:e=>{let{row:t}=e;return(0,D.D)(t.LatencyPutTabletLogMs)?(0,I.zm)(t.LatencyPutTabletLogMs):k.jX},align:a.ZP.RIGHT},q={name:V.tn.AllocationUnits,header:V.G0.AllocationUnits,width:150,render:e=>{let{row:t}=e;return(0,D.D)(t.AllocationUnits)?(0,h.uf)(t.AllocationUnits):k.jX},align:a.ZP.RIGHT},ee=e=>({name:V.tn.VDisks,header:V.G0.VDisks,className:z("vdisks-column"),render:t=>{var s;let{row:r}=t;return(0,N.jsx)("div",{className:z("vdisks-wrapper"),children:null===(s=r.VDisks)||void 0===s?void 0:s.map((t=>(0,N.jsx)(x,{data:t,inactive:!(0,G.XW)(t,null===e||void 0===e?void 0:e.viewContext),className:z("vdisks-item")},t.StringifiedId)))})},align:a.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),te=e=>({name:V.tn.VDisksPDisks,header:V.G0.VDisksPDisks,className:z("disks-column"),render:t=>{let{row:s}=t;return(0,N.jsx)(R,{vDisks:s.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext})},align:a.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),se=()=>[B,F,W,_,K,$].map((e=>({...e,sortable:!1}))),re=e=>[B,O,F,W,H,_,Z,K,$,Q,X,J,Y,q,ee(e),te(e)].map((e=>({...e,sortable:(0,y.P7)(e.name)})))},78090:(e,t,s)=>{s.d(t,{nu:()=>u,h2:()=>v,Rt:()=>c,tn:()=>d,G0:()=>p,Ty:()=>i,r8:()=>h,j0:()=>l,Hx:()=>g});var r=s(75475),n=s(37711);const a=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk 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"}'),o=(0,n.wZ)("ydb-storage-groups-columns",{en:a}),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 o("pool-name")},get MediaType(){return o("type")},get Encryption(){return o("encryption")},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 DiskSpaceUsage(){return o("disk-usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get Latency(){return o("latency")},get AllocationUnits(){return o("allocation-units")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("missing-disks")},get MissingDisks(){return o("missing-disks")},get State(){return o("state")}},m=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],h=m.map((e=>({value:e,content:p[e]}))),g=r.z.custom((e=>m.includes(e))).catch(void 0),v={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Encryption:["Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],MissingDisks:["MissingDisks"],Degraded:["MissingDisks"],State:["State"]}},50791:(e,t,s)=>{s.d(t,{Z:()=>o});var r=s(37711);const n=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"}'),a=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"}'),o=(0,r.wZ)("ydb-storage-groups",{ru:a,en:n})},92025:(e,t,s)=>{s.d(t,{V:()=>st});var r=s(27810),n=s(55842),a=s(34706),o=s(87149),i=s(48653),l=s(74640),d=s(39202),u=s(89085),c=s(53366),p=s(23795),m=s(26390),h=s(14325),g=s(76485),v=s(56065),N=s(78090),S=s(75475),b=s(27660);const f="storageNodesColumnsWidth",x="storageNodesSelectedColumns",w=["NodeId","Host","DC","Rack","CPU","Uptime","PDisks"],D=["NodeId"],k=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],y=k.map((e=>({value:e,content:b.Pr[e]}))),I=S.z.custom((e=>k.includes(e))).catch(void 0);var j=s(67661),C=s(34695),P=s(10161);const E={[C.d.groups]:"Groups",[C.d.nodes]:"Nodes"},G=e=>{let{value:t,onChange:s}=e;return(0,P.jsxs)(j.E,{value:t,onUpdate:s,qa:"storage-type-filter",children:[(0,P.jsx)(j.E.Option,{value:C.d.groups,children:E[C.d.groups]}),(0,P.jsx)(j.E.Option,{value:C.d.nodes,children:E[C.d.nodes]})]})},T={[C.G.all]:"All",[C.G.missing]:"Degraded",[C.G.space]:"Out of Space"},U=e=>{let{value:t,onChange:s}=e;return(0,P.jsxs)(j.E,{value:t,onUpdate:s,qa:"storage-visible-entities-filter",children:[(0,P.jsx)(j.E.Option,{value:C.G.missing,children:T[C.G.missing]}),(0,P.jsx)(j.E.Option,{value:C.G.space,children:T[C.G.space]}),(0,P.jsx)(j.E.Option,{value:C.G.all,children:T[C.G.all]})]})};var R=s(37711);const L=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"}'),M=(0,R.wZ)("ydb-storage",{en:L});var A=s(71037),V=s(15327),z=s(99294);const O=(0,z.cn)("global-storage"),F=e=>403===e.status?(0,P.jsx)(A.J,{position:"left"}):(0,P.jsx)(V.V,{error:e});var W=s(99495);const H=S.z.nativeEnum(C.G).catch(C.G.all),_=S.z.nativeEnum(C.d).catch(C.d.groups);var Z=s(96183);function B(){var e;const[t,s]=(0,W.useQueryParams)({type:W.StringParam,visible:W.StringParam,search:W.StringParam,uptimeFilter:W.StringParam,storageNodesGroupBy:W.StringParam,storageGroupsGroupBy:W.StringParam}),r=_.parse(t.type),n=H.parse(t.visible),a=null!==(e=t.search)&&void 0!==e?e:"",o=Z.U8.parse(t.uptimeFilter),i=N.Hx.parse(t.storageGroupsGroupBy),l=I.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:r,visibleEntities:n,searchValue:a,nodesUptimeFilter:o,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(Z.Uu.All)}}}function K(e){let{withTypeSelector:t,withGroupBySelect:s,entitiesCountCurrent:r,entitiesCountTotal:n,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}=e;const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:S,handleTextFilterChange:b,handleStorageTypeChange:f,handleVisibleEntitiesChange:x,handleStorageGroupsGroupByParamChange:w}=B();return(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(g.o,{value:d,onChange:b,placeholder:M("controls_groups-search-placeholder"),className:O("search")}),t&&(0,P.jsx)(G,{value:u,onChange:f}),s?null:(0,P.jsx)(U,{value:v,onChange:x}),(0,P.jsx)(h.C,{label:M("groups"),loading:o,total:n,current:r}),(0,P.jsx)(c.N,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),s?(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(p.x,{variant:"body-2",children:M("controls_group-by-placeholder")}),(0,P.jsx)(m.P,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{w(e[0])},options:N.r8})]}):null]})}function $(e){let{withTypeSelector:t,withGroupBySelect:s,entitiesCountCurrent:r,entitiesCountTotal:n,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}=e;const{searchValue:d,storageType:u,visibleEntities:N,nodesUptimeFilter:S,storageNodesGroupByParam:b,handleTextFilterChange:f,handleStorageTypeChange:x,handleVisibleEntitiesChange:w,handleUptimeFilterChange:D,handleStorageNodesGroupByParamChange:k}=B();return(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(g.o,{value:d,onChange:f,placeholder:M("controls_nodes-search-placeholder"),className:O("search")}),t&&(0,P.jsx)(G,{value:u,onChange:x}),s?null:(0,P.jsx)(U,{value:N,onChange:w}),s?null:(0,P.jsx)(v.X,{value:S,onChange:D}),(0,P.jsx)(h.C,{label:M("nodes"),loading:o,total:n,current:r}),(0,P.jsx)(c.N,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),s?(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(p.x,{variant:"body-2",children:M("controls_group-by-placeholder")}),(0,P.jsx)(m.P,{hasClear:!0,placeholder:"-",width:150,defaultValue:b?[b]:void 0,onUpdate:e=>{k(e[0])},options:y})]}):null]})}var Q=s(79317),X=s(72616),J=s(90205),Y=s(91538);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),ee=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"}'),te=(0,R.wZ)("ydb-storage-empty-filter",{ru:ee,en:q}),se=e=>{let{title:t,message:s=te("default_message"),showAll:r=te("default_button_label"),onShowAll:n}=e;return(0,P.jsx)(J.u,{image:(0,P.jsx)(Y.Q,{name:"thumbsUp"}),position:"left",title:t,description:s,actions:n&&[(0,P.jsx)(X.z,{onClick:n,children:r},"show-all")]})};var re=s(50791);const ne=e=>{let t,{visibleEntities:s,onShowAll:r}=e;return s===C.G.space&&(t=(0,re.Z)("empty.out_of_space")),s===C.G.missing&&(t=(0,re.Z)("empty.degraded")),t?(0,P.jsx)(se,{title:t,showAll:(0,re.Z)("show_all"),onShowAll:r}):null};var ae=s(55993),oe=s(89991),ie=s(61734),le=s(83023);const de=e=>{let{columns:t,database:s,nodeId:r,groupId:n,pDiskId:o,filterGroup:l,filterGroupBy:u,searchValue:c,visibleEntities:p,onShowAll:m,parentRef:h,renderControls:g,renderErrorMessage:v,initialEntitiesCount:S}=e;const b=(0,d.rU)(),f=(0,d.tS)(),x=(w=f,a.useCallback((async e=>{const{limit:t,offset:s,sortParams:r,filters:n,columnsIds:a}=e,{sortOrder:o,columnId:i}=null!==r&&void 0!==r?r:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:p,pDiskId:m,filterGroup:h,filterGroupBy:g}=null!==n&&void 0!==n?n:{},v=(0,ie.P7)(i)?(0,oe.A)(i,o):void 0,S=(0,le.w)(a,N.h2),{groups:b,found:f,total:x}=await(0,ae.R)({limit:t,offset:s,sort:v,filter:l,with:d,database:u,nodeId:c,groupId:p,pDiskId:m,filter_group:h,filter_group_by:g,fieldsRequired:S,shouldUseGroupsHandler:w});return{data:b||[],found:f||0,total:x||0}}),[w]));var w;const D=a.useMemo((()=>({searchValue:c,visibleEntities:p,database:s,nodeId:r,groupId:n,pDiskId:o,filterGroup:l,filterGroupBy:u})),[c,p,s,r,n,o,l,u]);return(0,P.jsx)(i.s,{loading:!b,children:(0,P.jsx)(Q.WQ,{columnsWidthLSKey:N.Ty,parentRef:h,columns:t,fetchData:x,limit:50,initialEntitiesCount:S,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:()=>p!==C.G.all?(0,P.jsx)(ne,{onShowAll:m,visibleEntities:p}):(0,re.Z)("empty.default"),filters:D,tableName:"storage-groups"})})};var ue=s(97485),ce=s(96635);function pe(e){return a.useMemo((()=>(0,ce.V)({viewContext:e})),[e])}function me(e){let{visibleEntities:t,viewContext:s}=e;const r=pe(s),n=a.useMemo((()=>t===C.G.missing?[...N.Rt,N.tn.Degraded]:t===C.G.space?[...N.Rt,N.tn.DiskSpace]:N.Rt),[t]);return(0,ue.N)(r,N.j0,N.G0,N.nu,n)}var he=s(81778),ge=s(2634);const ve=(0,z.cn)("ydb-table-group");function Ne(e){let{children:t,title:s,entityName:r,count:n,expanded:a=!1,onIsExpandedChange:o}=e;const i=()=>{o(s,!a)};return(0,P.jsxs)("div",{className:ve(null),children:[(0,P.jsx)("button",{onClick:i,className:ve("button"),title:s,children:(0,P.jsxs)("div",{className:ve("title-wrapper"),children:[(0,P.jsx)(he.F,{direction:a?"top":"bottom"}),(0,P.jsxs)("div",{className:ve("title"),children:[(0,P.jsx)(p.x,{variant:"subheader-2",children:s}),(0,P.jsxs)(p.x,{variant:"body-2",color:"secondary",className:ve("count"),children:[r,": ",(0,P.jsx)(ge._,{theme:"normal",children:n})]})]})]})}),a?(0,P.jsx)("div",{className:ve("content"),children:t}):null]})}function Se(e){const[t,s]=a.useState({});a.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,s)=>{let{name:r}=s;const n=t[r];return{...e,[r]:null!==n&&void 0!==n&&n}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:a.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}function be(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:r}=B(),n=(0,d.rU)(),o=(0,d.Pq)();a.useEffect((()=>{o&&"all"!==s&&r()}),[r,o,s]);return(0,P.jsx)(i.s,{loading:!n,children:o&&t?(0,P.jsx)(xe,{...e}):(0,P.jsx)(fe,{...e})})}function fe(e){let{database:t,nodeId:s,groupId:r,pDiskId:n,viewContext:a,parentRef:o,initialEntitiesCount:i}=e;const{searchValue:l,visibleEntities:u,handleShowAllGroups:c}=B(),p=(0,d.Pq)(),{columnsToShow:m,columnsToSelect:h,setColumns:g}=me({visibleEntities:u,viewContext:a});return(0,P.jsx)(de,{database:t,nodeId:s,groupId:r,pDiskId:n,searchValue:l,visibleEntities:u,onShowAll:c,parentRef:o,renderControls:e=>{let{totalEntities:t,foundEntities:s,inited:r}=e;return(0,P.jsx)(K,{withTypeSelector:!0,withGroupBySelect:p,entitiesCountCurrent:s,entitiesCountTotal:t,entitiesLoading:!r,columnsToSelect:h,handleSelectedColumnsUpdate:g})},renderErrorMessage:F,columns:m,initialEntitiesCount:i})}function xe(e){let{database:t,nodeId:s,groupId:r,pDiskId:a,viewContext:i}=e;const[d]=(0,n.Rj)(),{searchValue:c,storageGroupsGroupByParam:p,visibleEntities:m,handleShowAllGroups:h}=B(),{columnsToShow:g,columnsToSelect:v,setColumns:N}=me({visibleEntities:m,viewContext:i}),{currentData:S,isFetching:b,error:f}=u.y.useGetStorageGroupsInfoQuery({database:t,with:"all",nodeId:s,groupId:r,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:p},{pollingInterval:d}),x=void 0===S&&b,{tableGroups:w,found:D=0,total:k=0}=S||{},{expandedGroups:y,setIsGroupExpanded:I}=Se(w);return(0,P.jsxs)(l.l,{children:[(0,P.jsx)(l.l.Controls,{children:(0,P.jsx)(K,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:D,entitiesCountTotal:k,entitiesLoading:x,columnsToSelect:v,handleSelectedColumnsUpdate:N})}),f?(0,P.jsx)(o.V,{error:f}):null,(0,P.jsx)(l.l.Table,{loading:x,className:O("groups-wrapper"),children:null!==w&&void 0!==w&&w.length?w.map((e=>{let{name:n,count:o}=e;const i=y[n];return(0,P.jsx)(Ne,{title:n,count:o,entityName:M("groups"),expanded:i,onIsExpandedChange:I,children:(0,P.jsx)(de,{database:t,nodeId:s,groupId:r,pDiskId:a,filterGroup:n,filterGroupBy:p,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:F,columns:g,initialEntitiesCount:o})},n)})):M("no-groups")})]})}var we=s(10730),De=s(61979);const ke=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"}'),ye=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"}'),Ie=(0,R.wZ)("ydb-storage-nodes",{ru:ye,en:ke}),je=e=>{let t,{visibleEntities:s,nodesUptimeFilter:r,onShowAll:n}=e;return s===C.G.space&&(t=Ie("empty.out_of_space")),s===C.G.missing&&(t=Ie("empty.degraded")),r===Z.Uu.SmallUptime&&(t=Ie("empty.small_uptime")),s!==C.G.all&&r!==Z.Uu.All&&(t=Ie("empty.several_filters")),t?(0,P.jsx)(se,{title:t,showAll:Ie("show_all"),onShowAll:n}):null};var Ce=s(32527);const Pe=async e=>{const{type:t="static",storage:s=!0,limit:r,offset:n,sortParams:a,filters:o,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:p,groupId:m,filterGroup:h,filterGroupBy:g}=null!==o&&void 0!==o?o:{},{sortOrder:v,columnId:N}=null!==a&&void 0!==a?a:{},S=(0,Z.oh)(N)?(0,oe.A)(N,v):void 0,f=(0,le.w)(i,b.WN),x=await window.api.getNodes({type:t,storage:s,limit:r,offset:n,sort:S,filter:l,uptime:(0,Z.RW)(d),with:u,database:c,node_id:p,group_id:m,filter_group:h,filter_group_by:g,fieldsRequired:f}),w=(0,Ce.Y2)(x);return{data:w.nodes||[],found:w.found||0,total:w.total||0}},Ee=(0,z.cn)("ydb-storage-nodes"),Ge=e=>Ee("node",{unavailable:(0,Z.TA)(e)}),Te=e=>{let{columns:t,database:s,nodeId:r,groupId:n,filterGroup:o,filterGroupBy:i,searchValue:l,visibleEntities:d,nodesUptimeFilter:u,onShowAll:c,parentRef:p,renderControls:m,renderErrorMessage:h,initialEntitiesCount:g}=e;const v=a.useMemo((()=>({searchValue:l,visibleEntities:d,nodesUptimeFilter:u,database:s,nodeId:r,groupId:n,filterGroup:o,filterGroupBy:i})),[l,d,u,s,r,n,o,i]);return(0,P.jsx)(Q.WQ,{columnsWidthLSKey:f,parentRef:p,columns:t,fetchData:Pe,rowHeight:51,limit:50,initialEntitiesCount:g,renderControls:m,renderErrorMessage:h,renderEmptyDataMessage:()=>d!==C.G.all||u!==Z.Uu.All?(0,P.jsx)(je,{onShowAll:c,nodesUptimeFilter:u,visibleEntities:d}):Ie("empty.default"),getRowClassName:Ge,filters:v,tableName:"storage-nodes"})};var Ue=s(71624),Re=s(9796),Le=s(98530);const Me=(0,z.cn)("ydb-storage-nodes-columns"),Ae=e=>{let{viewContext:t}=e;return{name:b.xv.PDisks,header:b.Pr.PDisks,className:Me("pdisks-column"),render:e=>{var s;let{row:r}=e;return(0,P.jsx)("div",{className:Me("pdisks-wrapper"),children:null===(s=r.PDisks)||void 0===s?void 0:s.map((e=>{var s;const n=null===(s=r.VDisks)||void 0===s?void 0:s.filter((t=>t.PDiskId===e.PDiskId));return(0,P.jsx)("div",{className:Me("pdisks-item"),children:(0,P.jsx)(Le.l,{data:e,vDisks:n,viewContext:t})},e.PDiskId)}))})},align:Ue.ZP.CENTER,sortable:!1,width:900,resizeable:!1}},Ve=e=>{let{database:t,additionalNodesProps:s,viewContext:r}=e;const n=null===s||void 0===s?void 0:s.getNodeRef;return[(0,Re.A6)(),(0,Re.iJ)(),(0,Re.Up)({getNodeRef:n,database:t}),(0,Re.EF)(),(0,Re.KO)(),(0,Re.Zi)(),(0,Re.rh)(),(0,Re.eb)(),(0,Re.cB)(),(0,Re.VQ)(),(0,Re.Fi)(),Ae({viewContext:r})].map((e=>({...e,sortable:(0,Z.oh)(e.name)})))};function ze(e){let{visibleEntities:t,database:s,additionalNodesProps:r,viewContext:n}=e;const o=a.useMemo((()=>Ve({database:s,additionalNodesProps:r,viewContext:n})),[s,r,n]),i=a.useMemo((()=>t===C.G.missing?[...D,b.xv.Missing]:D),[t]);return(0,ue.N)(o,x,b.Pr,w,i)}const Oe=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:r,handleShowAllNodes:n}=B(),o=(0,d.rU)(),l=(0,d.th)();a.useEffect((()=>{l&&"all"!==s&&r!==Z.Uu.All&&n()}),[n,r,l,s]);return(0,P.jsx)(i.s,{loading:!o,children:l&&t?(0,P.jsx)(We,{...e}):(0,P.jsx)(Fe,{...e})})};function Fe(e){let{database:t,nodeId:s,groupId:r,viewContext:n,parentRef:a,initialEntitiesCount:o}=e;const{searchValue:i,visibleEntities:l,nodesUptimeFilter:u,handleShowAllNodes:c}=B(),p=(0,d.th)(),{columnsToShow:m,columnsToSelect:h,setColumns:g}=He({database:t,viewContext:n});return(0,P.jsx)(Te,{database:t,nodeId:s,groupId:r,searchValue:i,visibleEntities:l,nodesUptimeFilter:u,onShowAll:c,parentRef:a,renderControls:e=>{let{totalEntities:t,foundEntities:s,inited:r}=e;return(0,P.jsx)($,{withTypeSelector:!0,withGroupBySelect:p,entitiesCountCurrent:s,entitiesCountTotal:t,entitiesLoading:!r,columnsToSelect:h,handleSelectedColumnsUpdate:g})},renderErrorMessage:F,columns:m,initialEntitiesCount:o})}function We(e){let{database:t,groupId:s,nodeId:r,viewContext:a}=e;const[o]=(0,n.Rj)(),{searchValue:i,storageNodesGroupByParam:d,handleShowAllNodes:c}=B(),{columnsToShow:p,columnsToSelect:m,setColumns:h}=He({database:t,viewContext:a}),{currentData:g,isFetching:v,error:N}=u.y.useGetStorageNodesInfoQuery({database:t,with:"all",filter:i,node_id:r,group_id:s,group:d},{pollingInterval:o}),S=void 0===g&&v,{tableGroups:b,found:f=0,total:x=0}=g||{},{expandedGroups:w,setIsGroupExpanded:D}=Se(b);return(0,P.jsxs)(l.l,{children:[(0,P.jsx)(l.l.Controls,{children:(0,P.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:f,entitiesCountTotal:x,entitiesLoading:S,columnsToSelect:m,handleSelectedColumnsUpdate:h})}),N?(0,P.jsx)(V.V,{error:N}):null,(0,P.jsx)(l.l.Table,{loading:S,className:O("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((e=>{let{name:n,count:a}=e;const o=w[n];return(0,P.jsx)(Ne,{title:n,count:a,entityName:M("nodes"),expanded:o,onIsExpandedChange:D,children:(0,P.jsx)(Te,{database:t,nodeId:r,groupId:s,searchValue:i,visibleEntities:"all",nodesUptimeFilter:Z.Uu.All,onShowAll:c,filterGroup:n,filterGroupBy:d,renderErrorMessage:F,columns:p,initialEntitiesCount:a})},n)})):M("no-nodes")})]})}function He(e){let{database:t,viewContext:s}=e;const{balancer:r}=(0,we.kW)(),{additionalNodesProps:n}=(0,De.f)({balancer:r}),{visibleEntities:a}=B();return ze({additionalNodesProps:n,visibleEntities:a,database:t,viewContext:s})}var _e=s(14418);const Ze=e=>{const{storageType:t}=B();return"nodes"===t?(0,P.jsx)(Oe,{initialEntitiesCount:(0,_e._M)(e.viewContext),...e}):(0,P.jsx)(be,{initialEntitiesCount:(0,_e.le)(e.viewContext),...e})};var Be=s(93225),Ke=s(82114);const $e=e=>e.trim().toLowerCase(),Qe=(e,t)=>{const s=$e(t);return s?e.filter((e=>{var t,r;return(null===(t=e.NodeId)||void 0===t?void 0:t.toString().includes(s))||(null===(r=e.Host)||void 0===r?void 0:r.toLowerCase().includes(s))})):e},Xe=(e,t)=>{const s=$e(t);return s?e.filter((e=>{var t,r;return(null===(t=e.PoolName)||void 0===t?void 0:t.toLowerCase().includes(s))||(null===(r=e.GroupId)||void 0===r?void 0:r.toString().includes(s))})):e};var Je=s(74116);function Ye(e){let{data:t,columns:s,visibleEntities:n,onShowAll:a,sort:o,handleSort:i}=e;return t.length||n===C.G.all?(0,P.jsx)(Je.G,{columnsWidthLSKey:N.Ty,data:t,columns:s,settings:r.LE,emptyDataMessage:(0,re.Z)("empty.default"),sortOrder:o,onSort:i},n):(0,P.jsx)(ne,{onShowAll:a,visibleEntities:n})}const qe={...r.LE,dynamicRenderMinSize:51};function et(e){let{data:t,columns:s,visibleEntities:r,nodesUptimeFilter:n,sort:a,onShowAll:o,handleSort:i}=e;return t.length||r===C.G.all&&n===Z.Uu.All?(0,P.jsx)(Je.G,{columnsWidthLSKey:f,data:t,columns:s,settings:qe,emptyDataMessage:Ie("empty.default"),rowClassName:Ge,sortOrder:a,onSort:i},r):(0,P.jsx)(je,{visibleEntities:r,nodesUptimeFilter:n,onShowAll:o})}const tt=e=>{var t,s;let{database:r,viewContext:o,nodeId:i,groupId:c,pDiskId:p}=e;const{balancer:m}=(0,we.kW)(),{additionalNodesProps:h}=(0,De.f)({balancer:m}),{storageType:g,searchValue:v,visibleEntities:N,nodesUptimeFilter:S,handleShowAllGroups:b,handleShowAllNodes:f}=B(),x=(0,d.rU)(),w=(0,d.tS)(),[D]=(0,n.Rj)(),k="groups"===g,y="nodes"===g,[I,j]=a.useState({sortOrder:void 0,sortValue:void 0}),C=I.sortValue?I:_e.TP,[E,G]=a.useState({sortOrder:void 0,sortValue:void 0}),T=E.sortOrder?E:(0,_e._r)(N),{columnsToShow:U,columnsToSelect:R,setColumns:L}=ze({additionalNodesProps:h,visibleEntities:N,database:r,viewContext:o}),{columnsToShow:M,columnsToSelect:z,setColumns:F}=me({visibleEntities:N,viewContext:o}),W=u.y.useGetStorageNodesInfoQuery({database:r,with:N,node_id:i,group_id:c},{skip:!y,pollingInterval:D}),H=u.y.useGetStorageGroupsInfoQuery({database:r,with:N,nodeId:i,groupId:c,pDiskId:p,shouldUseGroupsHandler:w,fieldsRequired:"all"},{skip:!k||!x,pollingInterval:D}),{currentData:_,isFetching:Z,error:Q}=y?W:H,{currentData:{nodes:X=[]}={}}=W,{currentData:{groups:J=[]}={}}=H,Y=(null===(t=W.currentData)||void 0===t?void 0:t.total)||0,q=(null===(s=H.currentData)||void 0===s?void 0:s.total)||0,ee=void 0===_&&Z,te=a.useMemo((()=>function(e,t,s){let r=e||[];return r=Qe(r,t),r=(0,Ke.f)(r,s),r}(X,v,S)),[X,S,v]),se=a.useMemo((()=>function(e,t){let s=e||[];return s=Xe(s,t),s}(J,v)),[v,J]),[re,ne]=(0,n.sC)(C,(e=>j(e))),[ae,oe]=(0,n.sC)(T,(e=>G(e)));return(0,Be.u)(Q)?(0,P.jsx)(A.J,{position:"left"}):(0,P.jsxs)(l.l,{children:[(0,P.jsx)(l.l.Controls,{children:(0,P.jsxs)(a.Fragment,{children:[k?(0,P.jsx)(K,{withTypeSelector:!0,entitiesCountCurrent:se.length,entitiesCountTotal:q,entitiesLoading:ee,columnsToSelect:z,handleSelectedColumnsUpdate:F}):null,y?(0,P.jsx)($,{withTypeSelector:!0,entitiesCountCurrent:te.length,entitiesCountTotal:Y,entitiesLoading:ee,columnsToSelect:R,handleSelectedColumnsUpdate:L}):null]})}),Q?(0,P.jsx)(V.V,{error:Q}):null,(0,P.jsx)(l.l.Table,{loading:ee||!x,className:O("table"),children:_?(0,P.jsxs)(a.Fragment,{children:[k?(0,P.jsx)(Ye,{visibleEntities:N,data:se,onShowAll:b,sort:ae,handleSort:oe,columns:M},"groups"):null,y?(0,P.jsx)(et,{visibleEntities:N,nodesUptimeFilter:S,data:te,onShowAll:f,sort:re,handleSort:ne,columns:U},"nodes"):null]}):null})]})},st=e=>{var t,s,a,o;let{parentRef:i,...l}=e;const[d]=(0,n.yu)(r.Qy),u={nodeId:null===(t=l.nodeId)||void 0===t?void 0:t.toString(),pDiskId:null===(s=l.pDiskId)||void 0===s?void 0:s.toString(),groupId:null===(a=l.groupId)||void 0===a?void 0:a.toString(),vDiskSlotId:null===(o=l.vDiskSlotId)||void 0===o?void 0:o.toString()};return d?(0,P.jsx)(Ze,{parentRef:i,viewContext:u,...l}):(0,P.jsx)(tt,{viewContext:u,...l})}},14418:(e,t,s)=>{s.d(t,{TP:()=>p,XW:()=>N,_M:()=>b,_O:()=>c,_r:()=>v,le:()=>f});var r=s(20560),n=s(27660),a=s(34695),o=s(25665),i=s(84029),l=s(78090);const d=(0,i.p)(1,2,["success","warning","danger"]),u={"block-4-2":(0,i.p)(1,2,["success","warning","danger"]),"mirror-3-dc":(0,i.p)(1,3,["success","warning","danger"])},c=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in u?u[e.ErasureSpecies]:d)(e.Degraded)},p={sortValue:n.xv.NodeId,sortOrder:r.zE},m={sortValue:l.tn.PoolName,sortOrder:r.zE},h={sortValue:l.tn.Degraded,sortOrder:r.hr},g={sortValue:l.tn.Usage,sortOrder:r.hr};function v(e){return e===a.G.missing?h:e===a.G.space?g:m}function N(e,t){var s;let r=!0;return(0,o.D)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(r&&=String(e.VDiskId.GroupID)===t.groupId),(0,o.D)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(r&&=String(e.NodeId)===t.nodeId),(0,o.D)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(r&&=String(e.PDiskId)===t.pDiskId),(0,o.D)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(r&&=String(e.VDiskSlotId)===t.vDiskSlotId),r}const S=10;function b(e){let{nodeId:t,pDiskId:s,vDiskSlotId:r}=e;return(0,o.D)(t)||(0,o.D)(s)||(0,o.D)(r)?1:S}function f(e){let{vDiskSlotId:t,groupId:s}=e;return(0,o.D)(s)||(0,o.D)(t)?1:S}},82114:(e,t,s)=>{s.d(t,{A:()=>p,f:()=>u});var r=s(77468),n=s(27810),a=s(14075),o=s(89991),i=s(96183),l=s(32341);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:t}=e;return t&&t!==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:t}=e;return!t||(0,a.OW)(t)<n.RQ}))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!t)return e;const s=(0,o.Y)(t);return e.filter((e=>!e.Host||(s.test(e.Host)||s.test(String(e.NodeId)))))};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{uptimeFilter:t,searchValue:s,problemFilter:r}=arguments.length>1?arguments[1]:void 0,n=u(e,t);return n=d(n,r),n=c(n,s),n}},16124:(e,t,s)=>{s.d(t,{n:()=>a,w:()=>o});var r=s(84029),n=s(96183);const a=e=>{var t;const s=(e.Nodes||[]).map((e=>({...(0,n.Ns)(e.SystemState),Tablets:e.Tablets,NodeId:e.NodeId})));return{Nodes:s,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((e=>({name:e.GroupName,count:e.NodeCount}))),TotalNodes:Number(e.TotalNodes)||s.length,FoundNodes:Number(e.FoundNodes)}},o=(0,r.p)(60,80,["success","warning","danger"])},34695:(e,t,s)=>{s.d(t,{G:()=>r,d:()=>n});const r={all:"all",missing:"missing",space:"space"},n={groups:"groups",nodes:"nodes"}},55993:(e,t,s)=>{s.d(t,{R:()=>n});var r=s(32527);async function n(e,t){let{version:s="v2",shouldUseGroupsHandler:n,...a}=e;if(n&&"v1"!==s){const e=await window.api.getStorageGroups({...a},t);return(0,r._u)(e)}{const e=await window.api.getStorageInfo({version:s,...a},t);return(0,r.S9)(e)}}},89085:(e,t,s)=>{s.d(t,{y:()=>o});var r=s(78759),n=s(55993),a=s(32527);const o=r.h.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,t)=>{let{signal:s}=t;try{const t=await window.api.getNodes({storage:!0,type:"static",...e},{signal:s});return{data:(0,a.Y2)(t)}}catch(r){return{error:r}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,t)=>{let{signal:s}=t;try{return{data:await(0,n.R)(e,{signal:s})}}catch(r){return{error:r}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},32527:(e,t,s)=>{s.d(t,{S9:()=>v,Y2:()=>g,_u:()=>N});var r=s(96234),n=s(38392),a=s(53458),o=s(84953),i=s(96183),l=s(61734),d=s(83627);function u(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,a.b2)(Math.max(...s.map((e=>(0,a.Or)(e.DiskSpace)))))}const c=(e,t)=>{var s;const r=(0,o.w)(e);return{...r,StoragePoolName:t,Donors:null===r||void 0===r||null===(s=r.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},p=e=>{const{VDisks:t=[],PoolName:s,Usage:r=0,Read:n=0,Write:a=0,Used:o=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:p,GroupID:m,Overall:h,GroupGeneration:g}=e,v=t.map((e=>c(e,s))),N=100*Number(r),S=u(e);return{...e,PoolName:s,GroupId:m,MediaType:p||d,VDisks:v,Usage:N,Overall:h,GroupGeneration:g?String(g):void 0,Read:Number(n),Write:Number(a),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},m=(e,t)=>{let s=[];return e?s=e.map(p):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(((e,t)=>{var s;let a,i=0,d=0,p=0,m=0,h=0;const{Name:g,MediaType:v}=t;if(e.VDisks)for(const l of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:u,PDisk:c,ReadThroughput:g,WriteThroughput:v}=l,{Type:N,State:S,AvailableSize:b}=(0,o.b)(c);e&&S===r.w.Normal&&t===n.H.OK||(i+=1);const f=Number(null!==s&&void 0!==s?s:b)||0,x=Number(u)||0;d+=x,p+=f+x,m+=Number(g)||0,h+=Number(v)||0,a=!N||N!==a&&a?"Mixed":N}const N=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>c(e,g))),S=p?(0,l.Ic)({Used:d,Limit:p},5):void 0,b=u(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:N,Usage:S,Read:m,Write:h,PoolName:g,Used:d,Limit:p,Degraded:i,MediaType:v||a||void 0,DiskSpace:b}})(t,e))}))})),s},h=e=>{var t,s,n;const a=(null===(t=e.PDisks)||void 0===t?void 0:t.filter((e=>e.State!==r.w.Normal)).length)||0,l=null===(s=e.PDisks)||void 0===s?void 0:s.map((t=>({...(0,o.b)(t),NodeId:e.NodeId}))),d=null===(n=e.VDisks)||void 0===n?void 0:n.map((t=>({...(0,o.w)(t),NodeId:e.NodeId})));return{...(0,i.Ns)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:l,VDisks:d,Missing:a}},g=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:r,NodeGroups:n}=e,a=null===n||void 0===n?void 0:n.map((e=>{let{GroupName:t,NodeCount:s}=e;if(t&&s)return{name:t,count:Number(s)}})).filter((e=>Boolean(e))),o=null===t||void 0===t?void 0:t.map(h);return{nodes:o,total:Number(s)||(null===o||void 0===o?void 0:o.length),found:Number(r),tableGroups:a}},v=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:r,FoundGroups:n}=e,a=m(s,t);return{groups:a,total:Number(r)||a.length,found:Number(n)}};function N(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:r=[],StorageGroupGroups:n}=e,a=r.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:r,Write:n,Used:a,Limit:i,MissingDisks:l,VDisks:c=[],Overall:p,LatencyPutTabletLog:m,LatencyPutUserData:h,LatencyGetFast:g}=e,v=c.map((e=>{const{Whiteboard:t,PDisk:s,VDiskId:r,NodeId:n,AllocatedSize:a,AvailableSize:i,DiskSpace:l,Status:d}=e,u=null===s||void 0===s?void 0:s.Whiteboard,c={...t,PDiskId:null===u||void 0===u?void 0:u.PDiskId,NodeId:n,AllocatedSize:a,AvailableSize:i,DiskSpace:l,Status:d,PDisk:{...u,NodeId:n}},p=(0,o.w)(c);return{...p,StringifiedId:p.StringifiedId||r}})),N=u(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(r),Write:Number(n),Used:Number(a),Limit:Number(i),LatencyPutTabletLogMs:(0,d.BO)(m),LatencyPutUserDataMs:(0,d.BO)(h),LatencyGetFastMs:(0,d.BO)(g),Degraded:Number(l),Overall:p,VDisks:v,DiskSpace:N}})),i=null===n||void 0===n?void 0:n.map((e=>{let{GroupName:t,GroupCount:s}=e;if(t&&s)return{name:t,count:Number(s)}})).filter((e=>Boolean(e)));return{groups:a,total:Number(s)||a.length,found:Number(t),tableGroups:i}}},96234:(e,t,s)=>{let r;s.d(t,{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={}))},38392:(e,t,s)=>{let r;s.d(t,{H:()=>r}),function(e){e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError"}(r||(r={}))},53443:(e,t,s)=>{s.d(t,{i6:()=>i,mG:()=>o,mr:()=>d,oO:()=>a,s:()=>l,tH:()=>u});var r=s(96234),n=s(38392);const a={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(a).reduce(((e,t)=>{let[s,r]=t;return{...e,[r]:s}}),{}),i=a.Grey,l=o[i],d={[n.H.OK]:a.Green,[n.H.Initial]:a.Yellow,[n.H.SyncGuidRecovery]:a.Yellow,[n.H.LocalRecoveryError]:a.Red,[n.H.SyncGuidRecoveryError]:a.Red,[n.H.PDiskError]:a.Red},u={[r.w.Initial]:a.Grey,[r.w.Normal]:a.Green,[r.w.InitialFormatRead]:a.Yellow,[r.w.InitialSysLogRead]:a.Yellow,[r.w.InitialCommonLogRead]:a.Yellow,[r.w.InitialFormatReadError]:a.Red,[r.w.InitialSysLogReadError]:a.Red,[r.w.InitialSysLogParseError]:a.Red,[r.w.InitialCommonLogReadError]:a.Red,[r.w.InitialCommonLogParseError]:a.Red,[r.w.CommonLoggerInitError]:a.Red,[r.w.OpenFileError]:a.Red,[r.w.ChunkQuotaError]:a.Red,[r.w.DeviceIoError]:a.Red}},53458:(e,t,s)=>{s.d(t,{CH:()=>l,FR:()=>d,Iz:()=>a,Or:()=>i,b2:()=>o});var r=s(25665),n=s(53443);function a(e){return"VDiskId"in e}function o(e){return void 0===e?n.s:n.mG[e]||n.s}function i(e){return e?n.oO[e]:0}function l(e,t){if((0,r.D)(e)&&(0,r.D)(t))return`${e}-${t}`}function d(e,t,s){return[e,t,s].join("-")}},84953:(e,t,s)=>{s.d(t,{b:()=>g,w:()=>h});var r=s(14075),n=s(77468),a=s(84029),o=s(53443);const i=(0,a.p)(85,95,[n.K.Green,n.K.Yellow,n.K.Red]);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const s=function(e){return t=e,void 0!==t&&t in o.tH?o.tH[e]:o.i6;var t}(e.State),r=i(t);return s!==o.i6&&r?Math.max(s,o.oO[r]):s}var d=s(53458);function u(e){if(!(0,d.Iz)(e))return o.i6;const{DiskSpace:t,VDiskState:s,FrontQueues:r,Replicated:n}=e;if(!s)return o.i6;const a=c(t),i=function(e){var t;if(!e)return o.i6;return null!==(t=o.mr[e])&&void 0!==t?t:o.i6}(s),l=Math.min(o.oO.Orange,c(r));let u=Math.max(a,i,l);return n||u!==o.oO.Green||(u=o.oO.Blue),u}function c(e){var t;return e&&null!==(t=o.oO[e])&&void 0!==t?t:o.i6}const p={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function m(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,r)=>{let[n,a]=r;const o=e.length-t,i=o-a;return s[n]=e.substring(i,o)||"0",t+a}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return p.SSD;case 2:return p.MVME}else if("0"===t.typeExt)return p.HDD}function h(){var e,t,s,n;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,i=null!==(t=a.PDiskId)&&void 0!==t?t:null===o||void 0===o?void 0:o.PDiskId,l=Number(null!==(s=a.AvailableSize)&&void 0!==s?s:null===o||void 0===o?void 0:o.AvailableSize),d=Number(a.AllocatedSize),c=d+l,p=Math.round(100*d/c),m=null===(n=a.Donors)||void 0===n?void 0:n.map((e=>h({...e,DonorMode:!0}))),v=u(a),N=(0,r.a2)(a.VDiskId);return{...a,PDisk:o,PDiskId:i,Donors:m,Severity:v,StringifiedId:N,TotalSize:c,AllocatedPercent:p}}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{AvailableSize:s,TotalSize:r,Category:n}=e,a=m(n),o=Number(s),i=Number(r),d=i-o,u=Math.round(100*d/i),c=l(e,u);return{...t,...e,Type:a,Severity:c,AllocatedSize:d,AllocatedPercent:u}}},89991:(e,t,s)=>{s.d(t,{A:()=>o,Y:()=>i});var r=s(20560),n=s(78171),a=s.n(n);const o=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(a()(e),"i")}},84029:(e,t,s)=>{s.d(t,{p:()=>r});const r=(e,t,s)=>r=>0<=r&&r<e?s[0]:e<=r&&r<t?s[1]:t<=r?s[2]:void 0},97485:(e,t,s)=>{s.d(t,{N:()=>a});var r=s(34706),n=s(9951);const a=(e,t,s,a,o)=>{const[i,l]=r.useState((()=>n.r.readUserSettingsValue(t,a)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),r=null===o||void 0===o?void 0:o.includes(t);return s||r}))),[e,o,i]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===o||void 0===o?void 0:o.includes(e),r=i.includes(e);return{id:e,title:s[e],selected:t||r,required:t,sticky:t?"start":void 0}}))),[e,s,o,i]),setColumns:r.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));n.r.setUserSettingsValue(t,s),l(s)}),[t])}}},46154:(e,t,s)=>{s.d(t,{M:()=>o});var r=s(34706),n=s(59769),a=s(9951);const o=e=>{const t=r.useCallback((()=>e?a.r.readUserSettingsValue(e,{}):{}),[e]),s=r.useCallback((t=>{e&&a.r.setUserSettingsValue(e,t)}),[e]);return(0,n.M)({saveSizes:s,getSizes:t})}},95440:(e,t,s)=>{function r(e){let{inverseColorize:t,warningThreshold:s=60,dangerThreshold:r=80,colorizeProgress:n,fillWidth:a}=e,o=t?"danger":"good";return n&&(a>s&&a<=r?o="warning":a>r&&(o=t?"good":"danger")),o}s.d(t,{S:()=>r})},61734:(e,t,s)=>{s.d(t,{HQ:()=>a,Ic:()=>n,P7:()=>i});var r=s(84029);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t},a=(0,r.p)(80,85,["success","warning","danger"]),o=["PoolName","Kind","MediaType","Erasure","Degraded","Usage","GroupId","Used","Limit","Read","Write","AllocationUnits","Latency","DiskSpaceUsage"],i=e=>o.includes(e)},83023:(e,t,s)=>{function r(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{w:()=>r})},55973:(e,t,s)=>{s.d(t,{FW:()=>o,KR:()=>i});var r=s(77468),n=s(9038);const a={[n.g.Dead]:r.K.Red,[n.g.Created]:r.K.Yellow,[n.g.ResolveStateStorage]:r.K.Yellow,[n.g.Candidate]:r.K.Yellow,[n.g.BlockBlobStorage]:r.K.Yellow,[n.g.WriteZeroEntry]:r.K.Yellow,[n.g.Restored]:r.K.Yellow,[n.g.Discover]:r.K.Yellow,[n.g.Lock]:r.K.Yellow,[n.g.Stopped]:r.K.Yellow,[n.g.ResolveLeader]:r.K.Yellow,[n.g.RebuildGraph]:r.K.Yellow,[n.g.Deleted]:r.K.Green,[n.g.Active]:r.K.Green},o=(Object.keys(n.g),Object.entries(a).reduce(((e,t)=>{let[s,r]=t;return e[r]?e[r].push(s):e[r]=[s],e}),{}),e=>{if(!e)return r.K.Grey;return t=e,Object.values(r.K).includes(t)?e:a[e];var t});function i(e){if(!e)return"unknown";switch(e){case n.g.Dead:return"danger";case n.g.Active:case n.g.Deleted:return"success";default:return"warning"}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7641.f4b4d38a.chunk.js b/ydb/core/viewer/monitoring/static/js/7641.f4b4d38a.chunk.js deleted file mode 100644 index a23d82e650..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7641.f4b4d38a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7641],{89516:(e,t,s)=>{s.d(t,{a:()=>l});var i=s(99294),o=s(73287),n=s(10161);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]})}},21711:(e,t,s)=>{s.d(t,{b:()=>c});var i=s(34706),o=s(5194),n=s(99294),a=s(83658),l=s(10161);const d=(0,n.cn)("ydb-info-viewer-skeleton"),r=()=>(0,l.jsxs)("div",{className:d("label"),children:[(0,l.jsx)(o.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,a.$)(n);let m=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(r,{}),(0,l.jsx)(o.O,{className:d("value")})]});return c||(m=null),(0,l.jsx)("div",{className:d(null,s),children:[...new Array(t)].map(((e,t)=>(0,l.jsx)("div",{className:d("row"),children:m},`skeleton-row-${t}`)))})}},50377:(e,t,s)=>{s.d(t,{P:()=>y});var i=s(79777),o=s(46878),n=s(65e3),a=s(25665),l=s(10142),d=s(99294),r=s(14075),c=s(70340),m=s(55842),u=s(43862),p=s(90808),h=s(20760),g=s(73287),v=s(37711);const D=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"}'),b=(0,v.wZ)("ydb-pDisk-info",{en:D});var k=s(10161);const x=(0,d.cn)("ydb-pdisk-info");function y(e){let{pDisk:t,nodeId:s,withPDiskPageLink:d,className:v}=e;const D=(0,m.ix)(n.VH),[y,N,S,j]=function(e){let{pDisk:t,nodeId:s,withPDiskPageLink:i,isUserAllowedToMakeChanges:n}=e;const{PDiskId:d,Path:m,Guid:u,Category:v,Type:D,Device:y,Realtime:N,State:S,SerialNumber:j,TotalSize:f,AllocatedSize:w,StatusV2:I,NumActiveSlots:T,ExpectedSlotCount:P,LogUsedSize:E,LogTotalSize:C,SystemSize:z,SharedWithOs:M}=t||{},O=[];(0,a.D)(v)&&O.push({label:b("type"),value:D}),(0,a.D)(m)&&O.push({label:b("path"),value:m}),(0,a.D)(u)&&O.push({label:b("guid"),value:u}),j&&O.push({label:b("serial-number"),value:j}),(0,a.D)(M)&&O.push({label:b("shared-with-os"),value:b("yes")});const _=[];(0,a.D)(I)&&_.push({label:b("drive-status"),value:I}),(0,a.D)(S)&&_.push({label:b("state"),value:S}),(0,a.D)(y)&&_.push({label:b("device"),value:(0,k.jsx)(g.J,{status:y})}),(0,a.D)(N)&&_.push({label:b("realtime"),value:(0,k.jsx)(g.J,{status:N})});const A=[];A.push({label:b("space"),value:(0,k.jsx)(h.y,{value:w,capacity:f,formatValues:r.q3,colorizeProgress:!0})}),(0,a.D)(T)&&(0,a.D)(P)&&A.push({label:b("slots"),value:(0,k.jsx)(h.y,{value:T,capacity:P})}),(0,a.D)(E)&&(0,a.D)(C)&&A.push({label:b("log-size"),value:(0,k.jsx)(h.y,{value:E,capacity:C,formatValues:r.q3})}),(0,a.D)(z)&&A.push({label:b("system-size"),value:(0,l.td)({value:z})});const L=[];if((i||n)&&(0,a.D)(d)&&(0,a.D)(s)){const e=(0,o.ds)(d,s),t=(0,c.ok)({nodeId:s,pDiskId:d});L.push({label:b("links"),value:(0,k.jsxs)("span",{className:x("links"),children:[i&&(0,k.jsx)(p.j,{title:b("pdisk-page"),url:e,external:!1}),n&&(0,k.jsx)(p.j,{title:b("developer-ui"),url:t})]})})}return[O,_,A,L]}({pDisk:t,nodeId:s,withPDiskPageLink:d,isUserAllowedToMakeChanges:D});return(0,k.jsxs)(i.k,{className:v,gap:2,direction:"row",wrap:!0,children:[(0,k.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(u._,{info:y,renderEmptyState:()=>null}),(0,k.jsx)(u._,{info:S,renderEmptyState:()=>null})]}),(0,k.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(u._,{info:N,renderEmptyState:()=>null}),(0,k.jsx)(u._,{info:j,renderEmptyState:()=>null})]})]})}},84573:(e,t,s)=>{s.d(t,{B:()=>c});var i=s(79777),o=s(99294),n=s(74003),a=s(43464),l=s(10161);const d=(0,o.cn)("ydb-page-meta");function r(e){let{items:t,loading:s}=e;return(0,l.jsx)("div",{className:d("info"),children:s?(0,l.jsx)(a.O,{className:d("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c(e){let{className:t,...s}=e;return(0,l.jsxs)(i.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:d(null,t),children:[(0,l.jsx)(r,{...s}),(0,l.jsx)(n.q,{})]})}},43464:(e,t,s)=>{s.d(t,{O:()=>a});var i=s(5194),o=s(83658),n=s(10161);const a=e=>{let{delay:t=600,className:s}=e;const[a]=(0,o.$)(t);return a?(0,n.jsx)(i.O,{className:s}):null}},71676:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>xe});var i=s(34706),o=s(42568),n=s(14561),a=s(72555),l=s(64485),d=s(42152),r=s(99495),c=s(75475),m=s(55982),u=s(89516),p=s(15327),h=s(21711),g=s(32489),v=s(50377),D=s(84573),b=s(46878),k=s(78759),x=s(65e3),y=s(39202),N=s(85709),S=s(53458),j=s(32677),f=s(25665),w=s(84953),I=s(96183);const T=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,j.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 a=null===(t=n.SystemStateInfo)||void 0===t?void 0:t[0],l=(0,I.Ns)(a),{BSC:d={},Whiteboard:r={}}=o||{},{PDisk:c={},VDisks:m=[]}=r,{PDisk:u={}}=d,p=(0,w.b)(c,u),h=null!==(s=p.NodeId)&&void 0!==s?s:l.NodeId,{LogUsedSize:g,LogTotalSize:v,TotalSize:D,SystemSize:b,ExpectedSlotCount:k,EnforcedDynamicSlotSize:x}=p;let y;(0,f.D)(v)&&(y={SlotType:"log",Used:Number(g),Total:Number(v),UsagePercent:100*Number(g)/Number(v),Severity:1,SlotData:{LogUsedSize:g,LogTotalSize:v,SystemSize:b}});const N=m.map((e=>(0,w.w)({...e,NodeId:h})));N.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const S=N.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 j=[];if(k&&k>S.length){const e=k-S.length;let t=Number(x);if(isNaN(t)){const s=S.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(D)-s-Number(v))/e}j=(0,f.c$)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const T=[...S,...j];return y&&T.length>0&&T.unshift(y),{...p,NodeId:h,NodeHost:l.Host,NodeType:null===(i=l.Roles)||void 0===i?void 0:i[0],NodeDC:l.DC,SlotItems:T}}(await Promise.all([l,window.api.getNodeInfo(s,{signal:o})]));return{data:e}}catch(d){return{error:d}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,S.CH)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var P=s(99294),E=s(55842),C=s(92025),z=s(85996),M=s(36413),O=s(16318),_=s(72616),A=s(47945),L=s(51403),R=s(37711);const U=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"}'),V=(0,R.wZ)("ydb-pDisk-page",{en:U});var $,H,J,B;function q(){return q=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},q.apply(this,arguments)}const G=function(e){return i.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),$||($=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})),H||(H=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})),J||(J=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)"})),B||(B=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 W=s(10161);const Z=(0,P.cn)("ydb-pdisk-decommission-button");function F(e){return"DECOMMIT_IMMINENT"===e?V("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?V("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?V("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?V("decommission-dialog-none-warning"):void 0}function Y(e){let{decommission:t,onConfirmAction:s,onConfirmActionSuccess:o,buttonDisabled:n,popoverDisabled:a}=e;const[l,d]=i.useState(),[r,c]=i.useState(!1),[m,u]=i.useState(!1),p=function(e,t){return[{text:V("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:V("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:V("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:V("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(t,d);return(0,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(M.h,{renderSwitcher:e=>(0,W.jsx)(Q,{popoverDisabled:a,loading:r,disabled:n,...e}),items:p,popupProps:{className:Z("popup")}}),(0,W.jsx)(A.g,{visible:Boolean(l),header:V("decommission-dialog-title"),text:F(l),withRetry:m,withCheckBox:!0,retryButtonText:V("decommission-dialog-force-change"),onConfirm:async e=>{c(!0),await s(l,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,f.Dc)(5e3);try{await o()}finally{c(!1)}},onConfirmActionError:e=>{u((0,L.q)(e)),c(!1)},onClose:()=>{d(void 0)}})]})}function Q(e){let{popoverDisabled:t,...s}=e;return(0,W.jsx)(O.J,{content:V("decommission-change-not-allowed"),placement:"right",disabled:t,children:(0,W.jsxs)(_.z,{view:"normal",className:Z("button"),...s,children:[(0,W.jsx)(n.J,{data:G}),V("decommission-button"),(0,W.jsx)(n.J,{data:z.Z})]})})}var K=s(2634);function X(e){return V("decommission-label",{decommission:e})}function ee(e){let{decommission:t}=e;return"DECOMMIT_IMMINENT"===t?(0,W.jsx)(K._,{theme:"danger",size:"m",children:X(V("decommission-imminent"))}):"DECOMMIT_PENDING"===t?(0,W.jsx)(K._,{theme:"warning",size:"m",children:X(V("decommission-pending"))}):"DECOMMIT_REJECTED"===t?(0,W.jsx)(K._,{theme:"normal",size:"m",children:X(V("decommission-rejected"))}):null}var te=s(90457),se=s(91890),ie=s(41591),oe=s(67653),ne=s(20760),ae=s(49263),le=s(10142),de=s(14075);const re=(0,P.cn)("ydb-pdisk-space-distribution"),ce=40;function me(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,W.jsx)("div",{className:re(null),style:{height:n,minHeight:n},children:(0,W.jsx)(te.p,{className:re("pdisk-bar"),severity:t.Severity,diskAllocatedPercent:t.AllocatedPercent,content:null===s||void 0===s?void 0:s.map(((e,t)=>(0,W.jsx)(ue,{item:e,pDiskId:i,nodeId:o},t))),faded:!0})}):V("no-slots-data")}function ue(e){let{item:t,pDiskId:s,nodeId:i}=e;return(0,W.jsx)("div",{className:re("slot-wrapper"),style:{flexGrow:Number(t.Total)||1},children:(()=>{if("vDisk"===t.SlotType){var e;const o=(0,f.D)(null===(e=t.SlotData)||void 0===e?void 0:e.VDiskSlotId)&&(0,f.D)(s)&&(0,f.D)(i)?(0,b.By)(t.SlotData.VDiskSlotId,s,i):void 0;return(0,W.jsx)(se.I,{popupContent:(0,W.jsx)(ae.K,{data:t.SlotData,withTitle:!0}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(oe.h,{to:o,children:(0,W.jsx)(te.p,{className:re("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,W.jsx)(pe,{id:t.Id,title:t.Title,used:t.Used,total:t.Total})})})})}return function(e){return"log"===e.SlotType}(t)?(0,W.jsx)(se.I,{popupContent:(0,W.jsx)(he,{data:t.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.p,{className:re("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,W.jsx)(pe,{title:V("log"),used:t.Used,total:t.Total})})}):function(e){return"empty"===e.SlotType}(t)?(0,W.jsx)(se.I,{popupContent:(0,W.jsx)(ge,{data:t.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.p,{className:re("slot"),severity:t.Severity,empty:!0,content:(0,W.jsx)(pe,{title:V("empty-slot"),used:t.Total})})}):null})()})}function pe(e){let{id:t,title:s,used:i,total:o}=e;return(0,W.jsxs)("div",{className:re("slot-content"),children:[(0,W.jsxs)("span",{children:[(0,f.D)(t)?(0,W.jsx)("span",{className:re("slot-id"),children:t}):null,s]}),(0,W.jsx)("span",{className:re("slot-size"),children:(()=>{const[e,t]=(0,de.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:V("label.log-size"),value:(0,W.jsx)(ne.y,{value:i,capacity:s,formatValues:de.q3})}];return(0,f.D)(o)&&n.push({label:V("label.system-size"),value:(0,le.td)({value:o})}),(0,W.jsx)(ie._P,{title:V("log"),info:n})}function ge(e){let{data:t}=e;const{Size:s}=t,i=[{label:V("label.slot-size"),value:(0,le.td)({value:s})}];return(0,W.jsx)(ie._P,{title:V("empty-slot"),info:i})}const ve=(0,P.cn)("ydb-pdisk-page"),De={diskDistribution:"diskDistribution",storage:"storage"},be=[{id:De.diskDistribution,get title(){return V("disk-distribution")}},{id:De.storage,get title(){return V("storage")}}],ke=c.z.nativeEnum(De).catch(De.diskDistribution);function xe(){const e=(0,E.zL)(),t=(0,E.ix)(x.VH),s=(0,y.X_)(),[{nodeId:c,pDiskId:j,activeTab:w}]=(0,r.useQueryParams)({activeTab:r.StringParam,nodeId:r.StringParam,pDiskId:r.StringParam}),I=(0,f.D)(c)&&(0,f.D)(j),P=ke.parse(w);i.useEffect((()=>{e((0,N.J)("pDisk",{nodeId:c,pDiskId:j}))}),[e,c,j]);const[z]=(0,E.Rj)(),M=I?{nodeId:c,pDiskId:j}:l.CN,O=T.useGetPdiskInfoQuery(M,{pollingInterval:z}),_=O.isFetching&&void 0===O.currentData,A=O.currentData,{NodeHost:L,NodeId:R,NodeType:U,NodeDC:$,Severity:H,DecommitStatus:J}=A||{},B=async e=>{if(I){const t=await window.api[s?"restartPDisk":"restartPDiskOld"]({nodeId:c,pDiskId:j,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},q=async(e,t)=>{if(I){const s=await window.api.changePDiskStatus({nodeId:c,pDiskId:j,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},G=()=>{I&&e(k.h.util.invalidateTags([{type:"PDiskData",id:(0,S.CH)(c,j)}]),"StorageData")};return(0,W.jsxs)("div",{className:ve(null),children:[(()=>{const e=j?`${V("pdisk")} ${j}`:V("pdisk"),t=L||V("node");return(0,W.jsx)(d.ql,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=L?`${V("fqdn")}: ${L}`:void 0,t=R?`${V("node")}: ${R}`:void 0;return(0,W.jsx)(D.B,{loading:_,items:[e,t,U,$],className:ve("meta")})})(),(0,W.jsxs)("div",{className:ve("title"),children:[(0,W.jsx)(u.a,{entityName:V("pdisk"),status:(0,S.b2)(H),id:(0,S.CH)(c,j)}),(0,W.jsx)(ee,{decommission:J})]}),(0,W.jsxs)("div",{className:ve("controls"),children:[(0,W.jsxs)(m.U,{onConfirmAction:B,onConfirmActionSuccess:G,buttonDisabled:!I||!t,buttonView:"normal",dialogHeader:V("restart-pdisk-dialog-header"),dialogText:V("restart-pdisk-dialog-text"),retryButtonText:V("force-restart-pdisk-button"),withPopover:!0,popoverContent:V("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,W.jsx)(n.J,{data:o.Z}),V("restart-pdisk-button")]}),s?(0,W.jsx)(Y,{decommission:J,onConfirmAction:q,onConfirmActionSuccess:G,buttonDisabled:!I||!t,popoverDisabled:t}):null]}),O.error?(0,W.jsx)(p.V,{error:O.error}):null,_?(0,W.jsx)(h.b,{className:ve("info"),rows:10}):(0,W.jsx)(v.P,{pDisk:A,nodeId:c,className:ve("info")}),(0,W.jsx)("div",{className:ve("tabs"),children:(0,W.jsx)(a.m,{size:"l",items:be,activeTab:P,wrapTo:(e,t)=>{let{id:s}=e;const i=I?(0,b.ds)(j,c,{activeTab:s}):void 0;return(0,W.jsx)(g.h,{to:i,children:t},s)}})}),(()=>{switch(P){case"diskDistribution":return A?(0,W.jsx)("div",{className:ve("disk-distribution"),children:(0,W.jsx)(me,{data:A})}):null;case"storage":return I?(0,W.jsx)(C.V,{nodeId:c,pDiskId:j}):null;default:return null}})()]})}},42568:(e,t,s)=>{s.d(t,{Z:()=>o});var i=s(34706);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.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/8337.5c096a37.chunk.js b/ydb/core/viewer/monitoring/static/js/8337.5c096a37.chunk.js deleted file mode 100644 index 01a3d17912..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8337.5c096a37.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8337.5c096a37.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8337],{3948:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(34706);const l=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:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},87130:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(34706);const l=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:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-7Z",clipRule:"evenodd"}))},72001:(e,t,n)=>{n.d(t,{i:()=>ot});var o=n(34706);n(72985);const l="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function i(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function r(e){return"nodeType"in e}function a(e){var t,n;return e?i(e)?e:r(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){const{Document:t}=a(e);return e instanceof t}function u(e){return!i(e)&&e instanceof a(e).HTMLElement}function d(e){return e instanceof a(e).SVGElement}function c(e){return e?i(e)?e.document:r(e)?s(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const g=l?o.useLayoutEffect:o.useEffect;function p(e){const t=(0,o.useRef)(e);return g((()=>{t.current=e})),(0,o.useCallback)((function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)}),[])}function m(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return g((()=>{n.current!==e&&(n.current=e)}),t),n}function f(e){const t=p(e),n=(0,o.useRef)(null),l=(0,o.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,l]}let h={};function v(e,t){return(0,o.useMemo)((()=>{if(t)return t;const n=null==h[e]?0:h[e]+1;return h[e]=n,e+"-"+n}),[e,t])}function w(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];return o.reduce(((t,n)=>{const o=Object.entries(n);for(const[l,i]of o){const n=t[l];null!=n&&(t[l]=n+e*i)}return t}),{...t})}}const b=w(1),C=w(-1);function S(e){if(!e)return!1;const{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function R(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const y=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[y.Translate.toString(e),y.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}});var x;function E(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(x||(x={}));const I=Object.freeze({x:0,y:0});function M(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const F={ignoreTransform:!1};function D(e,t){void 0===t&&(t=F);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=a(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=M(t);if(!o)return e;const{scaleX:l,scaleY:i,x:r,y:a}=o,s=e.left-r-(1-l)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=l?e.width/l:e.width,c=i?e.height/i:e.height;return{width:d,height:c,top:u,right:s+d,bottom:u+c,left:s}}(n,t,o))}const{top:o,left:l,width:i,height:r,bottom:s,right:u}=n;return{top:o,left:l,width:i,height:r,bottom:s,right:u}}function P(e){return D(e,{ignoreTransform:!0})}function V(e,t){const n=[];return e?function o(l){if(null!=t&&n.length>=t)return n;if(!l)return n;if(s(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!u(l)||d(l))return n;if(n.includes(l))return n;const i=a(e).getComputedStyle(l);return l!==e&&function(e,t){void 0===t&&(t=a(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const o=t[e];return"string"===typeof o&&n.test(o)}))}(l,i)&&n.push(l),function(e,t){return void 0===t&&(t=a(e).getComputedStyle(e)),"fixed"===t.position}(l,i)?n:o(l.parentNode)}(e):n}function N(e){const[t]=V(e,1);return null!=t?t:null}var z;function O(e){return!(!l||!e)&&e===document.scrollingElement}function _(e){const t={x:0,y:0},n=O(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(z||(z={}));function L(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:l,width:e.clientWidth,height:e.clientHeight}}function A(e,t){if(void 0===t&&(t=D),!e)return;const{top:n,left:o,bottom:l,right:i}=t(e);N(e)&&(l<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}class G{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function T(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var H,k;function B(e){e.preventDefault()}function j(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(H||(H={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(k||(k={}));const K={start:[k.Space,k.Enter],cancel:[k.Esc],end:[k.Space,k.Enter]},q=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case k.Right:return{...n,x:n.x+25};case k.Left:return{...n,x:n.x-25};case k.Down:return{...n,y:n.y+25};case k.Up:return{...n,y:n.y-25}}};class U{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new G(c(t)),this.windowListeners=new G(a(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(H.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&A(n),t(I)}handleKeyDown(e){if(S(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:l=K,coordinateGetter:i=q,scrollBehavior:r="smooth"}=o,{code:a}=e;if(l.end.includes(a))return void this.handleEnd(e);if(l.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:I;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=C(d,u),o={x:0,y:0},{scrollableAncestors:l}=n.current;for(const n of l){const l=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:u,maxScroll:c,minScroll:g}=_(n),p=L(n),m={x:Math.min(l===k.Right?p.right-p.width/2:p.right,Math.max(l===k.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(l===k.Down?p.bottom-p.height/2:p.bottom,Math.max(l===k.Down?p.top:p.top+p.height/2,d.y))},f=l===k.Right&&!a||l===k.Left&&!s,h=l===k.Down&&!u||l===k.Up&&!i;if(f&&m.x!==d.x){const e=n.scrollLeft+t.x,i=l===k.Right&&e<=c.x||l===k.Left&&e>=g.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:r});o.x=i?n.scrollLeft-e:l===k.Right?n.scrollLeft-c.x:n.scrollLeft-g.x,o.x&&n.scrollBy({left:-o.x,behavior:r});break}if(h&&m.y!==d.y){const e=n.scrollTop+t.y,i=l===k.Down&&e<=c.y||l===k.Up&&e>=g.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:r});o.y=i?n.scrollTop-e:l===k.Down?n.scrollTop-c.y:n.scrollTop-g.y,o.y&&n.scrollBy({top:-o.y,behavior:r});break}}this.handleMove(e,b(C(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function X(e){return Boolean(e&&"distance"in e)}function $(e){return Boolean(e&&"delay"in e)}U.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=K,onActivation:l}=t,{active:i}=n;const{code:r}=e.nativeEvent;if(o.start.includes(r)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class W{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=a(e);return e instanceof t?e:c(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=c(i),this.documentListeners=new G(this.document),this.listeners=new G(n),this.windowListeners=new G(a(i)),this.initialCoordinates=null!=(o=R(l))?o:I,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.DragStart,B),this.windowListeners.add(H.VisibilityChange,this.handleCancel),this.windowListeners.add(H.ContextMenu,B),this.documentListeners.add(H.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if($(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(X(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(H.Click,j,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(H.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:l}=this,{onMove:i,options:{activationConstraint:r}}=l;if(!o)return;const a=null!=(t=R(e))?t:I,s=C(o,a);if(!n&&r){if(X(r)){if(null!=r.tolerance&&T(s,r.tolerance))return this.handleCancel();if(T(s,r.distance))return this.handleStart()}return $(r)&&T(s,r.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(a)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===k.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Y={move:{name:"pointermove"},end:{name:"pointerup"}};class Z extends W{constructor(e){const{event:t}=e,n=c(t.target);super(e,Y,n)}}Z.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const J={move:{name:"mousemove"},end:{name:"mouseup"}};var Q;!function(e){e[e.RightClick=2]="RightClick"}(Q||(Q={}));(class extends W{constructor(e){super(e,J,c(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Q.RightClick&&(null==o||o({event:n}),!0)}}];const ee={move:{name:"touchmove"},end:{name:"touchend"}};var te,ne;(class extends W{constructor(e){super(e,ee)}static setup(){return window.addEventListener(ee.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ee.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:l}=n;return!(l.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(te||(te={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ne||(ne={}));z.Backward,z.Forward,z.Backward,z.Forward;var oe,le;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(oe||(oe={})),function(e){e.Optimized="optimized"}(le||(le={}));function ie(e){let{callback:t,disabled:n}=e;const l=p(t),i=(0,o.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(l)}),[n]);return(0,o.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}oe.WhileDragging,le.Optimized;class re extends Map{get(e){var t;return null!=e&&null!=super.get(e)?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(null==this.get(e)?void 0:n.node.current)?t:void 0}}const ae={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:E,draggableNodes:new Map,over:null,measureDroppableContainers:E},se=(0,o.createContext)(ae);const ue=(0,o.createContext)({...I,scaleX:1,scaleY:1});var de;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(de||(de={}));const ce=(0,o.createContext)(null),ge="button",pe="Droppable";function me(e){let{id:t,data:n,disabled:l=!1,attributes:i}=e;const r=v(pe),{activators:a,activatorEvent:s,active:u,activeNodeRect:d,ariaDescribedById:c,draggableNodes:p,over:h}=(0,o.useContext)(se),{role:w=ge,roleDescription:b="draggable",tabIndex:C=0}=null!=i?i:{},S=(null==u?void 0:u.id)===t,R=(0,o.useContext)(S?ue:ce),[y,x]=f(),[E,I]=f(),M=function(e,t){return(0,o.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:o,handler:l}=n;return e[o]=e=>{l(e,t)},e}),{})),[e,t])}(a,t),F=m(n);g((()=>(p.set(t,{id:t,key:r,node:y,activatorNode:E,data:F}),()=>{const e=p.get(t);e&&e.key===r&&p.delete(t)})),[p,t]);return{active:u,activatorEvent:s,activeNodeRect:d,attributes:(0,o.useMemo)((()=>({role:w,tabIndex:C,"aria-disabled":l,"aria-pressed":!(!S||w!==ge)||void 0,"aria-roledescription":b,"aria-describedby":c.draggable})),[l,w,C,S,b,c.draggable]),isDragging:S,listeners:l?void 0:M,node:y,over:h,setNodeRef:x,setActivatorNodeRef:I,transform:R}}const fe="Droppable",he={timeout:25};function ve(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function we(e){return null!==e&&e>=0}const be=e=>{let{rects:t,activeIndex:n,overIndex:o,index:l}=e;const i=ve(t,o,n),r=t[l],a=i[l];return a&&r?{x:a.left-r.left,y:a.top-r.top,scaleX:a.width/r.width,scaleY:a.height/r.height}:null};const Ce="Sortable",Se=o.createContext({activeIndex:-1,containerId:Ce,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:be,disabled:{draggable:!1,droppable:!1}});const Re=e=>{let{id:t,items:n,activeIndex:o,overIndex:l}=e;return ve(n,o,l).indexOf(t)},ye=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:l,items:i,newIndex:r,previousItems:a,previousContainerId:s,transition:u}=e;return!(!u||!o)&&((a===i||l!==r)&&(!!n||r!==l&&t===s))},xe={duration:200,easing:"ease"},Ee="transform",Ie=y.Transition.toString({property:Ee,duration:0,easing:"linear"}),Me={roleDescription:"sortable"};function Fe(e){let{animateLayoutChanges:t=ye,attributes:n,disabled:l,data:i,getNewIndex:r=Re,id:a,strategy:s,resizeObserverConfig:u,transition:d=xe}=e;const{items:c,containerId:p,activeIndex:h,disabled:w,disableTransforms:b,sortedRects:C,overIndex:R,useDragOverlay:E,strategy:I}=(0,o.useContext)(Se),M=function(e,t){var n,o;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(l,w),F=c.indexOf(a),P=(0,o.useMemo)((()=>({sortable:{containerId:p,index:F,items:c},...i})),[p,i,F,c]),V=(0,o.useMemo)((()=>c.slice(c.indexOf(a))),[c,a]),{rect:N,node:z,isOver:O,setNodeRef:_}=function(e){let{data:t,disabled:n=!1,id:l,resizeObserverConfig:i}=e;const r=v(fe),{active:a,dispatch:s,over:u,measureDroppableContainers:d}=(0,o.useContext)(se),c=(0,o.useRef)({disabled:n}),p=(0,o.useRef)(!1),h=(0,o.useRef)(null),w=(0,o.useRef)(null),{disabled:b,updateMeasurementsFor:C,timeout:S}={...he,...i},R=m(null!=C?C:l),y=ie({callback:(0,o.useCallback)((()=>{p.current?(null!=w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{d(Array.isArray(R.current)?R.current:[R.current]),w.current=null}),S)):p.current=!0}),[S]),disabled:b||!a}),E=(0,o.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),p.current=!1),e&&y.observe(e))}),[y]),[I,M]=f(E),F=m(t);return(0,o.useEffect)((()=>{y&&I.current&&(y.disconnect(),p.current=!1,y.observe(I.current))}),[I,y]),g((()=>(s({type:x.RegisterDroppable,element:{id:l,key:r,disabled:n,node:I,rect:h,data:F}}),()=>s({type:x.UnregisterDroppable,key:r,id:l}))),[l]),(0,o.useEffect)((()=>{n!==c.current.disabled&&(s({type:x.SetDroppableDisabled,id:l,key:r,disabled:n}),c.current.disabled=n)}),[l,r,n,s]),{active:a,rect:h,isOver:(null==u?void 0:u.id)===l,node:I,over:u,setNodeRef:M}}({id:a,data:P,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:V,...u}}),{active:L,activatorEvent:A,activeNodeRect:G,attributes:T,setNodeRef:H,listeners:k,isDragging:B,over:j,setActivatorNodeRef:K,transform:q}=me({id:a,data:P,attributes:{...Me,...n},disabled:M.draggable}),U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(_,H),X=Boolean(L),$=X&&!b&&we(h)&&we(R),W=!E&&B,Y=W&&$?q:null,Z=$?null!=Y?Y:(null!=s?s:I)({rects:C,activeNodeRect:G,activeIndex:h,overIndex:R,index:F}):null,J=we(h)&&we(R)?r({id:a,items:c,activeIndex:h,overIndex:R}):F,Q=null==L?void 0:L.id,ee=(0,o.useRef)({activeId:Q,items:c,newIndex:J,containerId:p}),te=c!==ee.current.items,ne=t({active:L,containerId:p,isDragging:B,isSorting:X,id:a,index:F,items:c,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:d,wasDragging:null!=ee.current.activeId}),oe=function(e){let{disabled:t,index:n,node:l,rect:i}=e;const[r,a]=(0,o.useState)(null),s=(0,o.useRef)(n);return g((()=>{if(!t&&n!==s.current&&l.current){const e=i.current;if(e){const t=D(l.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==s.current&&(s.current=n)}),[t,n,l,i]),(0,o.useEffect)((()=>{r&&a(null)}),[r]),r}({disabled:!ne,index:F,node:z,rect:N});return(0,o.useEffect)((()=>{X&&ee.current.newIndex!==J&&(ee.current.newIndex=J),p!==ee.current.containerId&&(ee.current.containerId=p),c!==ee.current.items&&(ee.current.items=c)}),[X,J,p,c]),(0,o.useEffect)((()=>{if(Q===ee.current.activeId)return;if(Q&&!ee.current.activeId)return void(ee.current.activeId=Q);const e=setTimeout((()=>{ee.current.activeId=Q}),50);return()=>clearTimeout(e)}),[Q]),{active:L,activeIndex:h,attributes:T,data:P,rect:N,index:F,newIndex:J,items:c,isOver:O,isSorting:X,isDragging:B,listeners:k,node:z,overIndex:R,over:j,setNodeRef:U,setActivatorNodeRef:K,setDroppableNodeRef:_,setDraggableNodeRef:H,transform:null!=oe?oe:Z,transition:function(){if(oe||te&&ee.current.newIndex===F)return Ie;if(W&&!S(A)||!d)return;if(X||ne)return y.Transition.toString({...d,property:Ee});return}()}}k.Down,k.Right,k.Up,k.Left;var De=n(15178);const Pe=o.createContext(void 0),Ve=o.createContext({getRowByIndex:()=>{},enableNesting:!1}),Ne={};var ze=n(11399);const Oe=e=>{const t=e.column.getIsPinned(),n="left"===t,o="right"===t;return{"pinned-left":n,"pinned-right":o,"last-pinned-left":n&&e.column.getIsLastColumn("left"),"first-pinned-right":o&&e.column.getIsFirstColumn("right")}},_e=e=>e?Object.assign({id:e.column.id},Oe(e)):null,Le=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0,position:n?"sticky":void 0,zIndex:n?1:void 0},t)};var Ae=n(95936);(0,Ae.withNaming)({e:"__",m:"_"});const Ge=(0,Ae.withNaming)({n:"gt-",e:"__",m:"_"}),Te=Ge("table");var He=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const ke=e=>{var{cell:t,children:n,className:l,style:i}=e,r=He(e,["cell","children","className","style"]);const a=o.useMemo((()=>"function"===typeof l?l(t):l),[t,l]);return o.createElement("td",Object.assign({className:Te("cell",_e(t),a),style:Le(t,i)},r),t?(0,ze.ie)(t.column.columnDef.cell,t.getContext()):n)},Be=Ge("group-header"),je=e=>{let{className:t,getGroupTitle:n,row:l}=e;var i;return o.createElement("h2",{className:Be(null,t)},o.createElement("button",{className:Be("button"),onClick:l.getToggleExpandedHandler()},o.createElement("svg",{className:Be("icon",{expanded:l.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},o.createElement("path",{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",fill:"currentColor"})),o.createElement("span",{className:Be("content")},o.createElement("span",{className:Be("title")},null!==(i=null===n||void 0===n?void 0:n(l))&&void 0!==i?i:l.id),o.createElement("span",{className:Be("total")},l.subRows.length))))},Ke=o.forwardRef(((e,t)=>{let{cellClassName:n,className:l,getGroupTitle:i,getIsCustomRow:r,getIsGroupHeaderRow:a,getRowAttributes:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:c,renderGroupHeader:g,renderGroupHeaderRowContent:p,row:m,rowVirtualizer:f,style:h,virtualItem:v}=e;const w=(0,De.c)(null===f||void 0===f?void 0:f.measureElement,t),b=o.useMemo((()=>"function"===typeof l?l(m):l),[l,m]),C=o.useCallback((e=>{null===d||void 0===d||d(m,e)}),[d,m]);return o.createElement("tr",Object.assign({ref:w,style:Object.assign({top:null===v||void 0===v?void 0:v.start},h),className:Te("row",{selected:m.getIsSelected(),interactive:Boolean(d)},b),onClick:C,"data-index":null===v||void 0===v?void 0:v.index},null===s||void 0===s?void 0:s(m)),(null===a||void 0===a?void 0:a(m))?p?p({Cell:ke,cellClassName:n,getGroupTitle:i,row:m}):o.createElement(ke,{className:n,colSpan:m.getVisibleCells().length},g?g({className:Te("group-header",u),getGroupTitle:i,row:m}):o.createElement(je,{className:Te("group-header",u),getGroupTitle:i,row:m})):(null===r||void 0===r?void 0:r(m))&&c?c({Cell:ke,cellClassName:n,row:m}):m.getVisibleCells().map((e=>o.createElement(ke,{key:e.id,cell:e,className:n}))))}));Ke.displayName="Row";var qe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const Ue=o.forwardRef(((e,t)=>{var n,{getRowAttributes:l,row:i,style:r}=e,a=qe(e,["getRowAttributes","row","style"]);const{setNodeRef:s,transform:u,transition:d,isDragging:c}=Fe({id:i.id}),{isChildMode:g,activeItemKey:p,targetItemIndex:m=-1}=null!==(n=o.useContext(Pe))&&void 0!==n?n:{},{enableNesting:f}=o.useContext(Ve),h=Boolean(p),v=g&&m===i.index,w=(0,De.c)(s,t),{isFirstChild:b,depth:C}=(e=>{let{row:t,isDragging:n}=e;var l,i,r,a,s;const{isChildMode:u,isParentMode:d,isNextChildMode:c,targetItemIndex:g=-1}=null!==(l=o.useContext(Pe))&&void 0!==l?l:{},{getRowByIndex:p,enableNesting:m}=o.useContext(Ve);let f=n&&-1===g,h=0;if(m)if(n&&-1!==g){const e=null!==(r=null===(i=p(g))||void 0===i?void 0:i.depth)&&void 0!==r?r:0,t=null!==(s=null===(a=p(g+1))||void 0===a?void 0:a.depth)&&void 0!==s?s:0;if(f=t>e,f)h=t,d&&h--;else{let n=0;d?n=-1:u&&(n=1),h=(c?e:Math.min(e,t))+n}h=Math.max(0,h)}else h=f?0:t.depth;return{depth:h,isFirstChild:f}})({row:i,isDragging:c}),S=(e=>{let{style:t=Ne,transform:n,transition:l,isDragging:i,isDragActive:r,isFirstChild:a,draggableChildRowOffset:s=32,nestingEnabled:u}=e;var d;const{isChildMode:c,isParentMode:g}=null!==(d=o.useContext(Pe))&&void 0!==d?d:{};return o.useMemo((()=>{if(!r||!n)return t;let e=0;return u&&i&&(g?e=-s:c&&!a&&(e=s)),Object.assign(Object.assign({},t),{transition:l,transform:`translate3d(${Math.max(e,0)}px, ${n.y}px, 0)`})}),[s,c,r,i,a,g,t,n,l,u])})({style:r,transform:u,transition:d,isDragging:c,isDragActive:h,isFirstChild:b,nestingEnabled:f}),R=o.useCallback((e=>Object.assign(Object.assign({},null===l||void 0===l?void 0:l(e)),{"data-key":e.id,"data-depth":C,"data-draggable":!0,"data-dragging":c,"data-drag-active":h,"data-expanded":h&&v})),[l,C,c,h,v]);return o.createElement(Ke,Object.assign({ref:w,getRowAttributes:R,row:i,style:S},a))}));Ue.displayName="DraggableRow";const Xe=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},Oe(e)),$e=e=>{let{className:t,header:n}=e;if(n.isPlaceholder)return null;const l=n.depth-n.column.depth;return o.createElement("th",{className:Te("footer-cell",Xe(n),t),colSpan:n.colSpan>1?n.colSpan:void 0,rowSpan:l>1?l:void 0,style:Le(n)},(0,ze.ie)(n.column.columnDef.footer,n.getContext()))},We=e=>{let{cellClassName:t,className:n,footerGroup:l}=e;return l.headers.every((e=>!e.column.columnDef.footer))?null:o.createElement("tr",{className:Te("footer-row",n)},l.headers.map((e=>o.createElement($e,{key:e.column.id,className:t,header:e}))))},Ye=Ge("resize-handle"),Ze=e=>{let{className:t,header:n}=e;var l;const{table:i}=n.getContext(),{columnResizeDirection:r,columnResizeMode:a}=i.options,{columnSizingInfo:s}=i.getState(),u=("rtl"===r?-1:1)*(null!==(l=s.deltaOffset)&&void 0!==l?l:0);return o.createElement("div",{className:Ye({direction:r,resizing:n.column.getIsResizing()},t),onDoubleClick:()=>n.column.resetSize(),onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),style:{transform:"onEnd"===a&&n.column.getIsResizing()?`translateX(${u}px)`:void 0}})},Je=Ge("sort-indicator"),Qe=e=>{let{className:t,header:n}=e;const l=n.column.getIsSorted();return o.createElement("span",{className:Je({order:l,invisible:!l},t)},o.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},o.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},et=e=>{let{className:t,header:n,parentHeader:l,renderResizeHandle:i,renderSortIndicator:r,resizeHandleClassName:a,sortIndicatorClassName:s}=e;const u=o.useMemo((()=>"function"===typeof t?t(n,l):t),[t,n,l]),d=n.isPlaceholder&&(null===l||void 0===l?void 0:l.isPlaceholder)&&l.placeholderId===n.placeholderId,c=!n.isPlaceholder&&n.id===n.column.id&&n.depth-n.column.depth>1;if(d||c)return null;const g=n.isPlaceholder?n.getLeafHeaders().length:1;return o.createElement("th",{className:Te("header-cell",Xe(n),u),colSpan:n.colSpan>1?n.colSpan:void 0,rowSpan:g>1?g:void 0,onClick:n.column.getToggleSortingHandler(),style:Le(n)},(0,ze.ie)(n.column.columnDef.header,n.getContext())," ",n.column.getCanSort()&&(r?r({className:Te("sort-indicator",s),header:n}):o.createElement(Qe,{className:Te("sort-indicator",s),header:n})),n.column.getCanResize()&&(i?i({className:Te("resize-handle",a),header:n}):o.createElement(Ze,{className:Te("resize-handle",a),header:n})))},tt=e=>{let{cellClassName:t,className:n,headerGroup:l,parentHeaderGroup:i,renderResizeHandle:r,renderSortIndicator:a,resizeHandleClassName:s,sortIndicatorClassName:u}=e;const d=o.useMemo((()=>"function"===typeof n?n(l,i):n),[n,l,i]);return o.createElement("tr",{className:Te("header-row",d)},l.headers.map((e=>o.createElement(et,{key:e.column.id,className:t,header:e,parentHeader:null===i||void 0===i?void 0:i.headers.find((t=>e.column.id===t.column.id)),renderResizeHandle:r,renderSortIndicator:a,resizeHandleClassName:s,sortIndicatorClassName:u}))))},nt=e=>{let{children:t,enableNesting:n,getRowByIndex:l}=e;const i=o.useMemo((()=>({getRowByIndex:l,enableNesting:n})),[l,n]);return o.createElement(Ve.Provider,{value:i},t)},ot=o.forwardRef(((e,t)=>{let{bodyClassName:n,cellClassName:l,className:i,enableNesting:r,footerCellClassName:a,footerClassName:s,footerRowClassName:u,getGroupTitle:d,getIsGroupHeaderRow:c,getRowAttributes:g,headerCellClassName:p,headerClassName:m,headerRowClassName:f,onRowClick:h,renderGroupHeader:v,renderGroupHeaderRowContent:w,renderResizeHandle:b,renderSortIndicator:C,resizeHandleClassName:S,rowClassName:R,rowVirtualizer:y,sortIndicatorClassName:x,stickyFooter:E,stickyHeader:I,table:M,withFooter:F,withHeader:D=!0}=e;var P;const V=o.useContext(Pe),N=null!==(P=null===V||void 0===V?void 0:V.activeItemIndex)&&void 0!==P?P:-1,z=o.useCallback((e=>M.getRowModel().rows[e]),[M]),{rows:O}=M.getRowModel(),_=D&&M.getHeaderGroups(),L=F&&M.getFooterGroups();return o.createElement(nt,{getRowByIndex:z,enableNesting:r},o.createElement("table",{ref:t,className:Te({"with-row-virtualization":Boolean(y)},i),"data-dragging-row-index":N>-1?N:void 0},_&&o.createElement("thead",{className:Te("header",{sticky:I},m)},_.map(((e,t)=>o.createElement(tt,{key:e.id,cellClassName:p,className:f,headerGroup:e,parentHeaderGroup:_[t-1],renderResizeHandle:b,renderSortIndicator:C,resizeHandleClassName:S,sortIndicatorClassName:x})))),o.createElement("tbody",{className:Te("body",n),style:{height:null===y||void 0===y?void 0:y.getTotalSize()}},((null===y||void 0===y?void 0:y.getVirtualItems())||O).map((e=>{const t=y?O[e.index]:e,n={cellClassName:l,className:R,getGroupTitle:d,getIsGroupHeaderRow:c,getRowAttributes:g,onClick:h,renderGroupHeader:v,renderGroupHeaderRowContent:w,row:t,rowVirtualizer:y,virtualItem:y?e:void 0};return V?o.createElement(Ue,Object.assign({key:t.id},n)):o.createElement(Ke,Object.assign({key:t.id},n))}))),L&&o.createElement("tfoot",{className:Te("footer",{sticky:E},s)},L.map((e=>o.createElement(We,{key:e.id,cellClassName:a,className:u,footerGroup:e}))))))}));ot.displayName="Table"},8475:(e,t,n)=>{n.d(t,{x:()=>i});var o=n(95219),l=n(11399);const i=e=>{var t,n,i,r,a,s,u,d,c,g,p,m,f;const h=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(i=e.enableExpanding)&&void 0!==i&&i,enableGrouping:null!==(r=e.enableGrouping)&&void 0!==r&&r,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,o.sC)(),getExpandedRowModel:e.enableExpanding?null!==(c=e.getExpandedRowModel)&&void 0!==c?c:(0,o.rV)():void 0,getGroupedRowModel:e.enableGrouping?null!==(g=e.getGroupedRowModel)&&void 0!==g?g:(0,o.qe)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,o.tj)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,l.b7)(h)}},19912:(e,t,n)=>{n.d(t,{X:()=>u});var o=n(34706),l=n(75447),i=n(19694);function r(e){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),o.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),o.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 s=(0,n(87578).Ge)("checkbox"),u=o.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:c,children:g,title:p,style:m,className:f,qa:h}=e,{checked:v,inputProps:w}=(0,l.O)(e),b=c||g,C=o.createElement("span",{className:s("indicator")},o.createElement("span",{className:s("icon"),"aria-hidden":!0},u?o.createElement(r,{className:s("icon-svg",{type:"dash"})}):o.createElement(a,{className:s("icon-svg",{type:"tick"})})),o.createElement("input",Object.assign({},w,{className:s("control")})),o.createElement("span",{className:s("outline")}));return o.createElement(i.J,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:v},f),qa:h,control:C},b)}))},68585:(e,t,n)=>{n.d(t,{V:()=>P});var o=n(34706),l=n(77498),i=n(9446),r=n(38873),a=n(41715),s=n(47741),u=n(87578),d=n(90512),c=n(98960);const g=(0,u.Ge)("modal");function p(e){let{open:t=!1,keepMounted:n=!1,disableBodyScrollLock:u=!1,disableEscapeKeyDown:p,disableOutsideClick:m,disableFocusTrap:f,disableAutoFocus:h,focusTrap:v=!0,autoFocus:w=!0,restoreFocusRef:b,onEscapeKeyDown:C,onEnterKeyDown:S,onOutsideClick:R,onClose:y,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:I,onTransitionExited:M,children:F,style:D,contentOverflow:P="visible",className:V,contentClassName:N,"aria-labelledby":z,"aria-label":O,container:_,qa:L}=e;const A=o.useRef(null),G=o.useRef(null),[T,H]=o.useState(!1);(0,i.y)({enabled:!u&&(t||T)});const k=(0,r.H)({enabled:t||T,restoreFocusRef:b,focusTrapped:!0});return(0,d.s)({open:t,disableEscapeKeyDown:p,disableOutsideClick:m,onEscapeKeyDown:C,onEnterKeyDown:S,onOutsideClick:R,onClose:y,contentRefs:[G],type:"modal"}),o.createElement(l.Z,{nodeRef:A,in:t,addEndListener:e=>{var t;return null===(t=A.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,c.Y)(g),mountOnEnter:!n,unmountOnExit:!n,appear:!0,onEnter:()=>{H(!0),null===x||void 0===x||x()},onExit:()=>{H(!0),null===I||void 0===I||I()},onEntered:()=>{H(!1),null===E||void 0===E||E()},onExited:()=>{H(!1),null===M||void 0===M||M()}},o.createElement(a.h,{container:_},o.createElement("div",{ref:A,style:D,className:g({open:t},V),"data-qa":L},o.createElement("div",{className:g("content-aligner")},o.createElement("div",{className:g("content-wrapper")},o.createElement(s.i,{enabled:!f&&v&&t&&!T,autoFocus:!h&&w},o.createElement("div",Object.assign({ref:G,tabIndex:-1,role:"dialog","aria-modal":t,"aria-label":O,"aria-labelledby":z,className:g("content",{"has-scroll":"auto"===P},N)},k),F)))))))}var m=n(2915),f=n(72616),h=n(14561),v=n(3581);const w=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),C=(0,v.e)({en:w,ru:b},"Dialog"),S=(0,u.Ge)("dialog-btn-close");function R(e){let{onClose:t}=e;return o.createElement("div",{className:S()},o.createElement(f.z,{view:"flat",size:"l",className:S("btn"),onClick:e=>t(e,{isOutsideClick:!1}),extraProps:{"aria-label":C("close")}},o.createElement(h.J,{data:m.Z,size:20})))}const y=(0,u.Ge)("dialog-body");const x=(0,u.Ge)("dialog-divider");var E=n(24874);const I=(0,u.Ge)("dialog-footer");class M extends o.Component{constructor(){super(...arguments),this.errorTooltipRef=o.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:l,textButtonApply:i,propsButtonCancel:r,propsButtonApply:a,preset:s,children:u,errorText:d,showError:c,renderButtons:g,className:p}=this.props,m=o.createElement("div",{className:I("button",{action:"cancel"})},o.createElement(f.z,Object.assign({view:i?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},r),l)),h=o.createElement("div",{className:I("button",{action:"apply"})},o.createElement(f.z,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:I("button-apply",{preset:s})},a),i),d&&o.createElement(E.G,{open:c,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},o.createElement("div",{className:I("error")},d)));return o.createElement("div",{className:I(null,p)},o.createElement("div",{className:I("children")},u),o.createElement("div",{className:I("bts-wrapper")},g?g(h,m):o.createElement(o.Fragment,null,l&&m,i&&h)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}M.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const F=(0,u.Ge)("dialog-header");const D=(0,u.Ge)("dialog");class P extends o.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:l,disableEscapeKeyDown:i,disableOutsideClick:r,disableFocusTrap:a,disableAutoFocus:s,restoreFocusRef:u,keepMounted:d,size:c,contentOverflow:g="visible",className:m,modalClassName:f,hasCloseButton:h,onEscapeKeyDown:v,onEnterKeyDown:w,onOutsideClick:b,onClose:C,onTransitionEnter:S,onTransitionEntered:y,onTransitionExit:x,onTransitionExited:E,"aria-label":I,"aria-labelledby":M,qa:F}=this.props;return o.createElement(p,{open:n,contentOverflow:g,disableBodyScrollLock:l,disableEscapeKeyDown:i,disableOutsideClick:r,disableFocusTrap:a,disableAutoFocus:s,restoreFocusRef:u,keepMounted:d,onEscapeKeyDown:v,onEnterKeyDown:w,onOutsideClick:b,onClose:C,onTransitionEnter:S,onTransitionEntered:y,onTransitionExit:x,onTransitionExited:E,className:D("modal",f),"aria-label":I,"aria-labelledby":M,container:e,qa:F},o.createElement("div",{className:D({size:c,"has-close":h,"has-scroll":"auto"===g},m)},t,h&&o.createElement(R,{onClose:this.handleCloseButtonClick})))}}P.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},P.Footer=M,P.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:l,className:i,id:r}=e;return o.createElement("div",{className:F(null,i)},n,o.createElement("div",{className:F("caption"),id:r},t),l)},P.Body=function(e){const{className:t,hasBorders:n=!1}=e;return o.createElement("div",{className:y({"has-borders":n},t)},e.children)},P.Divider=function(e){let{className:t}=e;return o.createElement("div",{className:x(null,t)})}},11399:(e,t,n)=>{n.d(t,{b7:()=>r,ie:()=>i});var o=n(34706),l=n(95219);function i(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}function r(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:(0,l.W_)(t)}))),[i,r]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{r(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},95219:(e,t,n)=>{function o(e,t){return"function"===typeof e?e(t):e}function l(e,t){return n=>{t.setState((t=>({...t,[e]:o(n,t[e])})))}}function i(e){return e instanceof Function}function r(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const l=t(e);null!=l&&l.length&&o(l)}))};return o(e),n}function a(e,t,n){let o,l=[];return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(!(a.length!==l.length||a.some(((e,t)=>l[t]!==e))))return o;let s;if(l=a,n.key&&n.debug&&(s=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-s))/100,o=t/16,l=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${l(t,5)} /${l(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function s(e,t,n,o){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:o}}n.d(t,{W_:()=>$,qe:()=>J,rV:()=>Y,sC:()=>W,tj:()=>Q});const u="debugHeaders";function d(e,t,n){var o;let l={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(l),e},getContext:()=>({table:e,header:l,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(l,e)})),l}const c={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,l)=>{var i,r;const a=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[];return g(t,[...a,...n.filter((e=>!(null!=o&&o.includes(e.id))&&!(null!=l&&l.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,l)=>g(t,n=n.filter((e=>!(null!=o&&o.includes(e.id))&&!(null!=l&&l.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var l;return g(t,null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var l;return g(t,null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,l,i,r,a,s;return[...null!=(o=null==(l=e[0])?void 0:l.headers)?o:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function g(e,t,n,o){var l,i;let r=0;const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const l={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const r=[...i].reverse()[0];let a,s=!1;if(e.column.depth===l.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e);else{const l=d(n,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===a)).length}`:void 0,depth:t,index:i.length});l.subHeaders.push(e),i.push(l)}l.headers.push(e),e.headerGroup=l})),s.push(l),t>0&&u(i,t-1)},c=t.map(((e,t)=>d(n,e,{depth:r,index:t})));u(c,r-1),s.reverse();const g=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],g(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:l}=e;t+=n,o.push(l)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return g(null!=(l=null==(i=s[0])?void 0:i.headers)?l:[]),s}const p=(e,t,n,o,l,i,u)=>{let d={id:t,index:o,original:n,depth:l,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,o),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,o),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>r(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=l.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,l]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((o=>{null==o.createCell||o.createCell(l,n,t,e)}),{}),l}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let r=0;r<e._features.length;r++){const t=e._features[r];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var o;const l=n.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(l))};f.autoRemove=e=>E(e);const h=(e,t,n)=>{var o;return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.includes(n))};h.autoRemove=e=>E(e);const v=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};v.autoRemove=e=>E(e);const w=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};w.autoRemove=e=>E(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));b.autoRemove=e=>E(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));C.autoRemove=e=>E(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>E(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>E(e);const y=(e,t,n)=>{let[o,l]=n;const i=e.getValue(t);return i>=o&&i<=l};y.resolveFilterValue=e=>{let[t,n]=e,o="number"!==typeof t?parseFloat(t):t,l="number"!==typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,r=null===n||Number.isNaN(l)?1/0:l;if(i>r){const e=i;i=r,r=e}return[i,r]},y.autoRemove=e=>E(e)||E(e[0])&&E(e[1]);const x={includesString:f,includesStringSensitive:h,equalsString:v,arrIncludes:w,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function E(e){return void 0===e||null===e||""===e}const I={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:l("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"===typeof o?x.includesString:"number"===typeof o?x.inNumberRange:"boolean"===typeof o||null!==o&&"object"===typeof o?x.equals:Array.isArray(o)?x.arrIncludes:x.weakEquals},e.getFilterFn=()=>{var n,o;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:x[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,l;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(l=t.options.enableFilters)||l)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const l=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),r=o(n,i?i.value:void 0);var a;if(M(l,r,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:r};var u;return i?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var l;return null==(l=o(t,e))?void 0:l.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(M(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function M(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const F={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"===typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=l=n):(o>n&&(o=n),l<n&&(l=n)))})),[o,l]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let l=t.getValue(e);null!=l&&(l=+l)>=l&&(++n,o+=l)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(o=n,!Array.isArray(o)||!o.every((e=>"number"===typeof e)))return;var o;if(1===n.length)return n[0];const l=Math.floor(n.length/2),i=n.sort(((e,t)=>e-t));return n.length%2!==0?i[l]:(i[l-1]+i[l])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},D={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:l("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,o;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(o=t.options.enableGrouping)||o)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"===typeof o?F.sum:"[object Date]"===Object.prototype.toString.call(o)?F.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:F[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const P={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:l("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[L(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var o;return(null==(o=L(t,n)[0])?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const l=L(t,n);return(null==(o=l[l.length-1])?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let l=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&l.push(n.splice(o,1)[0])}l=[...l,...n]}else l=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(l,t,n)}),s(e.options,"debugTable"))}},V={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:l("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,l,i,r,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,l;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(l=t.options.enableColumnPinning)?l:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:l}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),r=n.some((e=>null==l?void 0:l.includes(e)));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,o;const l=e.getIsPinned();return l?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[l])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var l,i;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(l=o.left)?void 0:l.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.id)))}),s(e.options,"debugColumns"))}},N={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>N,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:l("columnSizing",e),onColumnSizingInfoChange:l("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,l;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:N.minSize,null!=(o=null!=i?i:e.columnDef.size)?o:N.size),null!=(l=e.columnDef.maxSize)?l:N.maxSize)},e.getStart=a((e=>[e,L(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,L(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),l=null==o?void 0:o.getCanResize();return i=>{if(!o||!l)return;if(null==i.persist||i.persist(),_(i)&&i.touches&&i.touches.length>1)return;const r=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],s=_(i)?Math.round(i.touches[0].clientX):i.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var o,l;const i="rtl"===t.options.columnResizeDirection?-1:1,r=(n-(null!=(o=null==e?void 0:e.startOffset)?o:0))*i,a=Math.max(r/(null!=(l=null==e?void 0:e.startSize)?l:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:r,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},c=e=>d("move",e),g=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>c(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),g(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"===typeof O)return O;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return O=e,O}()&&{passive:!1};_(i)?(null==p||p.addEventListener("touchmove",f.moveHandler,h),null==p||p.addEventListener("touchend",f.upHandler,h)):(null==p||p.addEventListener("mousemove",m.moveHandler,h),null==p||p.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let O=null;function _(e){return"touchstart"===e.type}function L(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:l("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const o={...n},l=e.getPreGroupedRowModel().flatRows;return t?l.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):l.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),l={...n};return e.getRowModel().rows.forEach((t=>{G(l,t.id,o,!0,e)})),l})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?T(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?T(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?T(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=Boolean(t.length&&Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const l=e.getIsSelected();t.setRowSelection((i=>{var r;if(n="undefined"!==typeof n?n:!l,e.getCanSelect()&&l===n)return i;const a={...i};return G(a,e.id,n,null==(r=null==o?void 0:o.selectChildren)||r,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return H(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===k(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===k(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},G=(e,t,n,o,l)=>{var i;const r=l.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),r.getCanSelect()&&(e[t]=!0)):delete e[t],o&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach((t=>G(e,t.id,n,o,l)))};function T(e,t){const n=e.getState().rowSelection,o=[],l={},i=function(e,t){return e.map((e=>{var t;const r=H(e,n);if(r&&(o.push(e),l[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),r)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:l}}function H(e,t){var n;return null!=(n=t[e.id])&&n}function k(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let l=!0,i=!1;return e.subRows.forEach((e=>{if((!i||l)&&(e.getCanSelect()&&(H(e,t)?i=!0:l=!1),e.subRows&&e.subRows.length)){const n=k(e,t);"all"===n?i=!0:"some"===n?(i=!0,l=!1):l=!1}})),l?"all":!!i&&"some"}const B=/([0-9]+)/gm;function j(e,t){return e===t?0:e>t?1:-1}function K(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function q(e,t){const n=e.split(B).filter(Boolean),o=t.split(B).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),l=parseInt(e,10),i=parseInt(t,10),r=[l,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(l)?-1:1;if(l>i)return 1;if(i>l)return-1}}return n.length-o.length}const U={alphanumeric:(e,t,n)=>q(K(e.getValue(n)).toLowerCase(),K(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>q(K(e.getValue(n)),K(t.getValue(n))),text:(e,t,n)=>j(K(e.getValue(n)).toLowerCase(),K(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>j(K(e.getValue(n)),K(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),l=t.getValue(n);return o>l?1:o<l?-1:0},basic:(e,t,n)=>j(e.getValue(n),t.getValue(n))},X=[c,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:l("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;const l=e.columns;return null==(n=l.length?l.some((e=>e.getIsVisible())):null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},P,V,m,I,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:l("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof o||"number"===typeof o}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,l,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(l=t.options.enableFilters)||l)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>x.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return i(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:x[o]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:l("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(o=!0,n.split(B).length>1))return U.alphanumeric}return o?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const l=e.getNextSortingOrder(),i="undefined"!==typeof n&&null!==n;t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),s=null==r?void 0:r.findIndex((t=>t.id===e.id));let u,d=[],c=i?n:"desc"===l;var g;(u=null!=r&&r.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=r&&r.length&&s!==r.length-1?"replace":a?"toggle":"replace","toggle"===u&&(i||l||(u="remove")),"add"===u)?(d=[...r,{id:e.id,desc:c}],d.splice(0,d.length-(null!=(g=t.options.maxMultiSortColCount)?g:Number.MAX_SAFE_INTEGER))):d="toggle"===u?r.map((t=>t.id===e.id?{...t,desc:c}:t)):"remove"===u?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:c}];return d}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,l;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?!!(r===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(l=t.options.enableMultiRemove)&&!l)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},D,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:l("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,l;if(t){if(null!=(o=null!=(l=e.options.autoResetAll)?l:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var l;const i=!0===o||!(null==o||!o[e.id]);let r={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{r[e]=!0})):r=o,n=null!=(l=n)?l:!i,!i&&n)return{...r,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=r;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||(null==o?void 0:o[e.id]))},e.getCanExpand=()=>{var n,o,l;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(l=e.subRows)||!l.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:l("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,l;if(t){if(null!=(o=null!=(l=e.options.autoResetAll)?l:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>o(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let l=o(t,n.pageIndex);const i="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...n,pageIndex:l}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,o(t,e.pageSize)),l=e.pageSize*e.pageIndex,i=Math.floor(l/n);return{...e,pageIndex:i,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var l;let i=o(t,null!=(l=e.options.pageCount)?l:-1);return"number"===typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:l("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,l)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],r=l?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...r,e.id,...i]);t.setRowPinning((e=>{var t,o,l,i,r,s;return"bottom"===n?{top:(null!=(l=null==e?void 0:e.top)?l:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:l}=t.options;return"function"===typeof o?o(e):null==(n=null!=o?o:l)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:l}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),r=n.some((e=>null==l?void 0:l.includes(e)));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,o;const l=e.getIsPinned();if(!l)return-1;const i=null==(n="top"===l?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var l,i;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(l=o.top)?void 0:l.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,o)=>{var l;return(null==(l=e.options.keepPinnedRows)||l?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:o})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!o.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function $(e){var t,n;const l=[...X,...null!=(t=e._features)?t:[]];let i={_features:l};const r=i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i))),{});let u={...null!=(n=e.initialState)?n:{}};i._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let c=!1;const g={_features:l,options:{...r,...e},initialState:u,_queue:e=>{d.push(e),c||(c=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();c=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=o(e,i.options);i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,n)=>{var o;return null!=(o=null==i.options.getRowId?void 0:i.options.getRowId(e,t,n))?o:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?i.getPrePaginationRowModel():i.getRowModel()).rowsById[e];if(!n&&(n=i.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[i.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:a((()=>[i._getColumnDefs()]),(e=>{const t=function(e,n,o){return void 0===o&&(o=0),e.map((e=>{const l=function(e,t,n,o){var l,i;const r={...e._getDefaultColumnDef(),...t},u=r.accessorKey;let d,c=null!=(l=null!=(i=r.id)?i:u?u.replace(".","_"):void 0)?l:"string"===typeof r.header?r.header:void 0;if(r.accessorFn?d=r.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const o of u.split(".")){var n;t=null==(n=t)?void 0:n[o]}return t}:e=>e[r.accessorKey]),!c)throw new Error;let g={id:`${String(c)}`,accessorFn:d,parent:o,depth:n,columnDef:r,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[g,...null==(e=g.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=g.columns)&&t.length){let t=g.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[g]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(g,e);return g}(i,e,o,n),r=e;return l.columns=r.columns?t(r.columns,l,o+1):[],l}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>i._getAllFlatColumnsById()[e]};Object.assign(i,g);for(let o=0;o<i._features.length;o++){const e=i._features[o];null==e||null==e.createTable||e.createTable(i)}return i}function W(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,l,i){void 0===l&&(l=0);const r=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,i),t[s],s,l,void 0,null==i?void 0:i.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,r.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=o(u.originalSubRows,l+1,u))}return r};return n.rows=o(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function Y(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?Z(t):t),s(e.options,"debugTable"))}function Z(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function J(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const o=t.filter((t=>e.getColumn(t))),l=[],i={},a=function(t,n,s){if(void 0===n&&(n=0),n>=o.length)return t.map((e=>(e.depth=n,l.push(e),i[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=o[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const o=`${n.getGroupingValue(t)}`,l=e.get(o);return l?l.push(n):e.set(o,[n]),e}),n)}(t,u),c=Array.from(d.entries()).map(((t,d)=>{let[c,g]=t,m=`${u}:${c}`;m=s?`${s}>${m}`:m;const f=a(g,n+1,m);f.forEach((e=>{e.parentId=m}));const h=n?r(g,(e=>e.subRows)):g,v=p(e,m,h[0].original,d,n,void 0,s);return Object.assign(v,{groupingColumnId:u,groupingValue:c,subRows:f,leafRows:h,getValue:t=>{if(o.includes(t)){if(v._valuesCache.hasOwnProperty(t))return v._valuesCache[t];var n;if(g[0])v._valuesCache[t]=null!=(n=g[0].getValue(t))?n:void 0;return v._valuesCache[t]}if(v._groupingValuesCache.hasOwnProperty(t))return v._groupingValuesCache[t];const l=e.getColumn(t),i=null==l?void 0:l.getAggregationFn();return i?(v._groupingValuesCache[t]=i(t,h,g),v._groupingValuesCache[t]):void 0}}),f.forEach((e=>{l.push(e),i[e.id]=e})),v}));return c},s=a(n.rows,0);return s.forEach((e=>{l.push(e),i[e.id]=e})),{rows:s,flatRows:l,rowsById:i}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Q(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,l=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),r={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(r[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const l=i[o],a=r[l.id],s=a.sortUndefined,u=null!=(n=null==l?void 0:l.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(l.id),o=void 0===t.getValue(l.id);if(n||o){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&o?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,l.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;l.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:l,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8918.4e9353d7.chunk.js b/ydb/core/viewer/monitoring/static/js/8918.4e9353d7.chunk.js deleted file mode 100644 index dc4942f59d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8918.4e9353d7.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8918.4e9353d7.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8918],{47471:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n,s=i(34706);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}const r=function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06l2.5 2.5zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3v.25z",clipRule:"evenodd"})))}},22884:(e,t,i)=>{"use strict";i.d(t,{a:()=>a,p:()=>r});var n=i(21975);const s=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),o=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),r=new n.mb;r.registerKeysets("en",s),r.registerKeysets("ru",o);const a=r.i18n.bind(r)},14345:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>b});var n=i(23337),s=i(34706),o=i(22884),r=i(86636),a=i(51281);const l=()=>`ck.${((e,t)=>{let i="";for(let n=e;n>0;--n)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,d=s.memo;var h=i(95936);const c=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends s.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.Wn.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,o.a)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):s.createElement("div",null,t)}return this.props.children}}var p=i(81550);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,n._T)(e,["renderPluginLoader"]);const o=null===t||void 0===t?void 0:t();return"undefined"!==typeof o?o:s.createElement("div",{className:m()},s.createElement(p.a,Object.assign({},i)))},_=c("chartkit"),v=e=>{const t=s.useRef(),{instanceRef:i,id:d,type:h,isMobile:c,renderPluginLoader:u}=e,g=(0,n._T)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=s.useMemo((()=>l()),[]),m=d||p,v=r.X.get("lang"),b=r.X.get("plugins").find((e=>e.type===h));if(!b)throw new a.Dx({code:a.Wn.UNKNOWN_PLUGIN,message:(0,o.a)("error","label_unknown-plugin",{type:h})});const C=b.renderer;return s.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),s.createElement(s.Suspense,{fallback:s.createElement(f,{renderPluginLoader:u})},s.createElement("div",{className:_({mobile:c},"chartkit-theme_common")},s.createElement(C,Object.assign({ref:t,id:m,lang:v},g))))},b=d(s.forwardRef((function(e,t){return s.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},s.createElement(v,Object.assign({instanceRef:t},e)))})))},51281:(e,t,i)=>{"use strict";i.d(t,{Dx:()=>s,Wn:()=>n});const n={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class s extends Error{constructor(){let{originalError:e,message:t,code:i=n.UNKNOWN}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},86636:(e,t,i)=>{"use strict";i.d(t,{X:()=>p});var n=i(10859),s=i(74718),o=i.n(s),r=i(6395),a=i.n(r),l=i(22884);var d=i(76986),h=i.n(d);function c(e,t,i){if("plugins"===i){const i=[...e],n=[...t];let s=i.map((e=>{const t=n.findIndex((t=>{let{type:i}=t;return i===e.type}));if(-1!==t){const i=n[t];return n.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return n.length>0&&(s=[...s,...n]),s}return h()(e)?a()(e,t,c):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((e=>{let{id:i}=e;return i!==t})))}dispatch(e,t){this.events[e]&&this.events[e].forEach((e=>{let{action:i}=e;i(t)}))}},g=e=>{(0,n.jQ)({lang:e}),l.p.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return o()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,t)=>{let[i,n]=t;return"undefined"!==typeof n&&(e[i]=n),e}),{}));var i;if(this.settings=a()(this.settings,t,c),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},19214:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>n});const n={type:"yagr",renderer:i(34706).lazy((()=>Promise.all([i.e(5130),i.e(5118)]).then(i.bind(i,55130))))}},20134:(e,t,i)=>{"use strict";i.d(t,{w:()=>p});var n=i(34706),s=i(99175);const o=(0,i(38534).G)("definition-list");const r=e=>"label"in e&&!("name"in e);function a(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function l(e){let{copyText:t,content:i,copyPosition:r}=e;const a="inside"===r,l=null!==i&&void 0!==i?i:"\u2014";return t?n.createElement("div",{className:o("copy-container",{"icon-inside":a})},n.createElement("span",null,l),n.createElement(s.m,{size:"s",text:t,className:o("copy-button"),view:a?"raised":"flat-secondary"})):l}var d=i(23795);function h(e){let{label:t}=e;return n.createElement("div",{className:o("title")},n.createElement(d.x,{variant:"subheader-1",color:"complementary"},t))}var c=i(91807);function u(e){let{note:t}=e;if(!t)return null;const i=o("item-note-tooltip");return"string"===typeof t?n.createElement(c.J,{className:i,content:t,placement:["bottom","top"]}):"object"===typeof t?n.createElement(c.J,Object.assign({className:i,placement:["bottom","top"]},t)):null}function g(e){let{note:t,name:i,nameTitle:s,multilineName:r}=e;const l=n.createElement(n.Fragment,null,"\xa0",n.createElement(u,{note:t}));return n.createElement(n.Fragment,null,n.createElement("div",{className:o("term-wrapper")},n.createElement("span",{title:a(s,i)},i),r&&l),!r&&l,n.createElement("div",{className:o("dots",{"with-note":Boolean(t)})}))}function p(e){let{items:t,responsive:i,nameMaxWidth:s,contentMaxWidth:d="auto",className:c,itemClassName:u,copyPosition:p="outside",qa:m}=e;const f=s?{flexBasis:s}:{},_="number"===typeof d?{flexBasis:d,maxWidth:d}:{},v=n.useMemo((()=>function(e){return e.reduce(((e,t)=>{var i;if(r(t)){e.push({label:t.label});const n=[...null!==(i=t.items)&&void 0!==i?i:[]].map((e=>Object.assign(Object.assign({},e),{isGrouped:!0})));e.push(...n)}else e.push(t);return e}),[])}(t).map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return n.createElement("dl",{className:o({responsive:i},c),"data-qa":m},v.map((e=>{if(r(e)){const{key:t,label:i}=e;return n.createElement(h,{key:t,label:i})}const{name:t,key:i,content:s,contentTitle:d,nameTitle:c,copyText:m,note:v,multilineName:b,isGrouped:C}=e;return n.createElement("div",{key:i,className:o("item",{grouped:C},u)},n.createElement("dt",{className:o("term-container",{multiline:b}),style:f},n.createElement(g,{name:t,nameTitle:c,note:v,multilineName:b})),n.createElement("dd",{className:o("definition"),title:a(d,s),style:Object.assign(Object.assign({},_),{lineBreak:"string"===typeof s&&(y=20,function(e){return e.split(/\s+/).some((e=>e.length>y))})(s)?"anywhere":void 0})},n.createElement(l,{copyPosition:p,copyText:m,content:s})));var y})))}},91807:(e,t,i)=>{"use strict";i.d(t,{J:()=>d});var n=i(34706),s=i(29837),o=i(16318),r=i(14561);const a=(0,i(38534).G)("help-popover"),l=16;function d(e){var t;return n.createElement(o.J,Object.assign({},e,{className:a(null,e.className)}),n.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),n.createElement(r.J,{data:s.Z,size:l})))}},38534:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(95936);(0,n.withNaming)({e:"__",m:"_",v:"_"});const s=(0,n.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},54431:(e,t,i)=>{"use strict";i.d(t,{H:()=>Qt});var n=i(10161),s=i(34706);const o=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.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75ZM10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0v.75ZM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8H3Z",clipRule:"evenodd"}));var r=i(56952),a=i(7947),l=i(14082),d=i(86357),h=i(72616),c=i(14561);const u="g-date-",g=(0,i(95936).withNaming)({n:u,e:"__",m:"_"});function p(e){let{name:t,value:i,onReset:o,form:r,disabled:a,toStringValue:l}=e;const d=function(e){let{initialValue:t,onReset:i}=e;const[n,o]=s.useState(null),r=s.useRef(t);s.useEffect((()=>{if(!n||!i)return;const e=()=>{i(r.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,i]);const a=s.useCallback((e=>{var t;o(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return a}({initialValue:i,onReset:o});if(!t)return null;const h=l?l(i):`${null!==i&&void 0!==i?i:""}`;return(0,n.jsx)("input",{ref:d,type:"hidden",name:t,value:h,disabled:a,form:r})}function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(42805),_=i(7360),v=i(24874);const b=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("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21l.102-1.21Zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328l-.674-.808ZM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431Zm5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97Z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),C=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:"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 0ZM8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275V4.5Z",clipRule:"evenodd"}));var y=i(15178),w=i(67904),S=i(67258),x=i(81778);var L=i(3581);const k=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),D=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),N=(0,L.e)({en:k,ru:D},`${u}calendar`),E="yc-button_disabled g-button_disabled";function T(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:N("Switch to months view"),quarters:N("Switch to quarters view"),years:N("Switch to years view")}[t[i]]}function I(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}const M=["days","months","quarters","years"],A=g("calendar"),R=s.forwardRef((function(e,t){const{state:i}=e,{calendarProps:o,modeButtonProps:r,nextButtonProps:a,previousButtonProps:d}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:t.focusedDate.format("days"===t.mode?"MMMM YYYY":"YYYY"),{focusWithinProps:n}=(0,l.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),o=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},n),r=t.availableModes.indexOf(t.mode),a=r+1===t.availableModes.length,d=r+2===t.availableModes.length,h=t.disabled||a,c={disabled:t.disabled,className:h?E:void 0,onClick:h?void 0:()=>{t.zoomOut(),d&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":T(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=s.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();s.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?E:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":N("Previous"),"aria-disabled":g?"true":void 0}},m=s.useRef(!1),f=t.disabled||t.isNextPageInvalid();return s.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:o,modeButtonProps:c,nextButtonProps:{disabled:t.disabled,className:f?E:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":N("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return s.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,n.jsxs)("div",Object.assign({},o,{className:A({size:e.size}),children:[(0,n.jsxs)("div",{className:A("header"),children:[(0,n.jsx)(h.z,Object.assign({},r,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,n.jsx)("span",{className:A("mode-label",A("years-label")),children:r.children},"label"):[(0,n.jsx)("span",{className:A("mode-label"),children:r.children},"label"),(0,n.jsx)(h.z.Icon,{children:(0,n.jsx)(x.F,{direction:"bottom"})},"icon")]})),(0,n.jsxs)("div",{className:A("controls"),children:[(0,n.jsx)(h.z,Object.assign({},d,{view:"flat",size:e.size,children:(0,n.jsx)(h.z.Icon,{children:(0,n.jsx)(w.Z,{className:A("control-icon")})})})),(0,n.jsx)(h.z,Object.assign({},a,{view:"flat",size:e.size,children:(0,n.jsx)(h.z.Icon,{children:(0,n.jsx)(S.Z,{className:A("control-icon")})})}))]})]}),(0,n.jsx)(O,{state:i})]}))}));function O(e){let{state:t}=e;const[i,o]=s.useState((()=>Object.assign(Object.assign({},t),{isFocused:!1}))),r=t.mode!==i.mode,a=!t.startDate.isSame(i.startDate,"days");let d;r?d=M.indexOf(i.mode)>M.indexOf(t.mode)?"zoom-out":"zoom-in":a&&(d=t.startDate.isBefore(i.startDate)?"forward":"backward");const{gridProps:h}=function(e){const{focusWithinProps:t}=(0,l.L)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:e.focusedDate.format("days"===e.mode?"MMMM YYYY":"YYYY"),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(t);return(0,n.jsxs)("div",Object.assign({className:A("grid")},h,{children:[d&&(0,n.jsx)(P,{className:A("previous-state"),state:i,animation:d}),(0,n.jsx)(P,{className:A("current-state"),state:t,animation:d,onAnimationEnd:()=>{o(Object.assign(Object.assign({},t),{isFocused:!1}))}},"current")]}))}function P(e){let{className:t,state:i,animation:s,onAnimationEnd:o}=e;return(0,n.jsxs)("div",{className:A("content",{animation:s},t),onAnimationEnd:o,role:"presentation",children:["days"===i.mode&&(0,n.jsx)(F,{state:i}),(0,n.jsx)(B,{state:i})]})}function F(e){let{state:t}=e;const i=function(){const e=[],t=(0,f.CQ)().startOf("week");for(let i=0;i<7;i++){const n=t.add({days:i});e.push(n)}return e}();return(0,n.jsx)("div",{className:A("grid-row"),role:"row",children:i.map((e=>(0,n.jsx)("div",{className:A("weekday",{weekend:t.isWeekend(e)}),role:"columnheader","aria-label":e.format("dddd"),children:e.format("dd")},e.day())))})}function B(e){let{state:t}=e;const i="days"===t.mode?6:4,s="days"===t.mode?7:3+("quarters"===t.mode?1:0),o=function(e,t,i){const n=[];if("days"===i){const t=e.startOf("week");for(let e=0;e<42;e++)n.push(t.add({days:e}))}else if("quarters"===i)for(let s=0;s<16;s++)n.push(e.add(s,"quarters"));else for(let s=0;s<12;s++)n.push(e.add({[i]:s}));return n}(t.startDate,t.endDate,t.mode);return(0,n.jsx)("div",{className:A("grid-rowgroup",{mode:t.mode}),role:"rowgroup",children:[...new Array(i).keys()].map((e=>(0,n.jsxs)("div",{className:A("grid-row"),role:"row",children:["quarters"===t.mode?(0,n.jsx)("span",{role:"rowheader",className:A("grid-rowgroup-header"),children:o[e*s].format("YYYY")}):null,o.slice(e*s,(e+1)*s).map((e=>(0,n.jsx)(V,{date:e,state:t},e.unix())))]},e)))})}function V(e){let{date:t,state:i}=e;const{cellProps:o,buttonProps:r,formattedDate:a,isDisabled:l,isSelected:d,isRangeSelection:h,isSelectionStart:c,isSelectionEnd:u,isOutsideCurrentRange:g,isUnavailable:p,isCurrent:m,isWeekend:f}=function(e,t){const i=s.useRef(null),n=t.isCellFocused(e);s.useEffect((()=>{var e;n&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[n]);const o=t.focusedDate.isSame(e,t.mode)?0:-1,r=t.isCellDisabled(e),a=t.isSelected(e),l="highlightedRange"in t&&t.highlightedRange,d=Boolean(l&&a),h=a&&l&&e.isSame(l.start,t.mode),c=a&&l&&e.isSame(l.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!r&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){let i="";return"days"===t?i=`${e.format("dddd")}, ${e.format("LL")}`:"months"===t?i=`${e.format("MMMM YYYY")}`:"quarters"===t?i=`${e.format("[Q]Q YYYY")}`:"years"===t&&(i=`${e.format("YYYY")}`),i}(e,t.mode),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":r?"true":void 0},b={ref:i,role:"button",tabIndex:r?void 0:o,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let C=e.format("D");return"months"===t.mode?C=e.format("MMM"):"quarters"===t.mode?C=e.format("[Q]Q"):"years"===t.mode&&(C=e.format("YYYY")),{cellProps:v,buttonProps:b,formattedDate:C,isDisabled:r,isSelected:a,isRangeSelection:d,isSelectionStart:h,isSelectionEnd:c,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}(t,i);return(0,n.jsx)("div",Object.assign({},o,{children:(0,n.jsx)("div",Object.assign({},r,{className:A("button",{disabled:l,selected:d,"range-selection":h,"selection-start":c,"selection-end":u,"out-of-boundary":g,unavailable:p,current:m,weekend:f}),children:a}))}))}function W(e){let{placeholderValue:t,timeZone:i}=e;return null!==t&&void 0!==t?t:(0,f.CQ)({timeZone:i}).set("hour",0).set("minute",0).set("second",0)}function H(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function z(e){const t=e?e.timeZone():"default",[i,n]=s.useState(t);e&&t!==i&&n(t);return e?t:i}const j={days:!0,months:!0,quarters:!1,years:!0};function U(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function K(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=U(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function q(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"days";return!I(e,t,i).isSame(e,n)}const $=s.forwardRef((function(e,t){const i=function(e){var t,i,n;const{disabled:o,readOnly:r,modes:l=j}=e,[d,h]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),c=M.filter((e=>l[e])),u=c[0]||"days",[g,p]=(0,a.z)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&c.includes(g)?g:u,_=z(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,b=s.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),C=s.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),y=s.useMemo((()=>e.focusedValue?I(e.focusedValue.timeZone(v),b,C):e.focusedValue),[e.focusedValue,b,C,v]),w=s.useMemo((()=>{var t;return I((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:d)||void 0===t?void 0:t.timeZone(v))||W({timeZone:v}).startOf(u),b,C)}),[C,b,e.defaultFocusedValue,v,d,u]),[S,x]=(0,a.z)(y,w,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),L=null!==(n=null===S||void 0===S?void 0:S.timeZone(v))&&void 0!==n?n:I(W({timeZone:v}),b,C);function k(e){x(I(e.startOf(m),b,C))}q(L,b,C)&&x(I(L,b,C));const[D,N]=s.useState(e.autoFocus||!1),E=U(L,m),T=K(L,m);return{disabled:o,readOnly:r,value:d,setValue(e){if(!o&&!r){let t=I(e,b,C);if(this.isCellUnavailable(t))return;d&&(t=H(t,d.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o||(r||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:b,maxValue:C,focusedDate:L,startDate:E,endDate:T,setFocusedDate(e){k(e),N(!0)},focusNextCell(){k(L.add(1,this.mode))},focusPreviousCell(){k(L.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?k(L.add(1,"week")):"quarters"===this.mode?k(L.add(1,"years")):k(L.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?k(L.subtract(1,"week")):"quarters"===this.mode?k(L.subtract(1,"years")):k(L.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?k(L.add({months:e?12:1})):"quarters"===this.mode?k(L.add(4,"years")):k(L.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?k(L.subtract({months:e?12:1})):"quarters"===this.mode?k(L.subtract(4,"years")):k(L.subtract(12,this.mode))},focusSectionStart(){k(U(L,this.mode))},focusSectionEnd(){k(K(L,this.mode))},zoomIn(){const e=c[c.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=c[c.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(L,!0)},isFocused:D,setFocused:N,isInvalid(e){return q(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(d&&e.isSame(d.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&L&&e.isSame(L,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(e){return"days"===this.mode&&[0,6].includes(e.day())},isCurrent(e){return(0,f.CQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:c}}(e);return(0,n.jsx)(R,Object.assign({ref:t},e,{state:i}))}));var G=i(23337);const Y=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),Z=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),Q=(0,L.e)({en:Y,ru:Z},`${u}date-field`),X={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},J={start:"[",end:"]"},ee={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function te(e){return 4===(0,f.CQ)().format(e).length}function ie(e,t){const{type:i,format:n}=e;switch(i){case"year":{const e=te(n);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.CQ)().set("hour",15).format(e)}(n)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function ne(e,t){const i=e.type;switch(i){case"year":return te(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const se={weekday:"day",day:"date",dayPeriod:"hour"};function oe(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in se?se[e]:e}function re(e,t){switch(e.type){case"year":return Q("year_placeholder").repeat((0,f.CQ)().format(t).length);case"month":return Q("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return Q("day_placeholder").repeat(2);case"weekday":return Q("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return Q("hour_placeholder").repeat(2);case"minute":return Q("minute_placeholder").repeat(2);case"second":return Q("second_placeholder").repeat(2);case"dayPeriod":return Q("dayPeriod_placeholder");default:return t}}function ae(e){const t=[],i=(0,f._u)(e);let n="",s=!1,o=!1;for(let r=0;r<i.length;r++){const e=i[r]||"";if(o){if(e===J.end){o=!1;continue}n+=e}else e.match(/[a-zA-Z]/)?(s&&(de(t,n),n=""),s=!1,n+=e):(s||(le(t,n),n=""),s=!0,e===J.start?o=!0:n+=e)}return n&&(s?de(t,n):le(t,n)),t}function le(e,t){if(!t)return;const i=function(e){const t=ee[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),n=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return te(i)?"0001"===(0,f.CQ)().set("year",1).format(i):"01"===(0,f.CQ)().set("year",2001).format(i);case"month":return(0,f.CQ)().startOf("year").format(i).length>1;case"day":return(0,f.CQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.CQ)().startOf("week").format(i).length>1;case"hour":return(0,f.CQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.CQ)().set("minute",1).format(i).length>1;case"second":return(0,f.CQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:re(i,t),options:he(i,t),hasLeadingZeros:n}))}function de(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function he(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let n=(0,f.CQ)().startOf("year");const s=[];for(let e=0;e<12;e++)s.push(n.format(i).toLocaleUpperCase()),n=n.add(1,"months");return s}case"dayPeriod":{const e=(0,f.CQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let n=(0,f.CQ)().day(0);const s=[];for(let e=0;e<7;e++)s.push(n.format(i).toLocaleUpperCase()),n=n.add(1,"day");return s}}}function ce(e,t,i){let n=1;const s=[];let o=-1;for(let r=0;r<e.length;r++){const a=e[r];if(!a)continue;const l=ge(a,t,i,n,o);if(s.push(l),ue(a)){for(let e=Math.max(0,o);e<=r;e++){const t=s[e];t&&(t.nextEditableSection=r,-1===t.previousEditableSection&&(t.previousEditableSection=r))}o=r}n+=l.textValue.length}return s}function ue(e){var t;return null!==(t=X[e.type])&&void 0!==t&&t}function ge(e,t,i,n,s){const o=ue(e);let r=e.placeholder;(o&&i[e.type]||"timeZoneName"===e.type)&&(r=t.format(e.format),"digit"===e.contentType&&r.length<e.placeholder.length&&(r=r.padStart(e.placeholder.length,"0"))),r="\u2068"+r+"\u2069";const a=r.length;return Object.assign(Object.assign(Object.assign({},e),{value:ne(e,t),textValue:r,start:n,end:n+a,modified:!1,previousEditableSection:s,nextEditableSection:s}),ie(e,t))}function pe(e,t){const i="all"===t||-1===t?0:t,n=e[i];return n&&!X[n.type]?n.nextEditableSection:n?i:-1}function me(e){let t=(0,f.CQ)(e);return(0,f.JY)(t)||(t=(0,f.CQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function fe(e,t){return Object.keys(e).every((e=>t[e]))}function _e(e,t){const i=s.useRef(null),[,n]=s.useState({});function o(t){e.setSelectedSections(t),n({})}function r(){var t,s;e.readOnly?o(-1):(e.focusSectionInPosition(null!==(s=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==s?s:0),n({}))}s.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const n=e.sections[e.selectedSectionIndexes.startIndex],s=e.sections[e.selectedSectionIndexes.endIndex];if(n&&s){const e=n.start,i=s.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=s.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(n){var s;if(null===(s=t.onFocus)||void 0===s||s.call(t,n),null!==e.selectedSectionIndexes)return;const a=n.target,l=!i.current;setTimeout((()=>{a&&a===i.current&&(l?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?o("all"):r())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),o(-1)},onKeyDown(i){var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),o("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,inputMode:a,onClick(){r()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],n=/^\d+$/.test(i),s=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&n||"letter"===t.contentType&&s)))return void e.onInput(i);if(n||s)return}e.setValueFromString(i)}}}}}const ve={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function be(e){var t,i;const[n,o]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),r=z(e.value||e.defaultValue||e.placeholderValue),l=e.timeZone||r,d=e=>{o(e?e.timeZone(r):e)},[h,c]=s.useState((()=>W({placeholderValue:e.placeholderValue,timeZone:l}))),u=e.format||"L",g=function(e){const t=e,[i,n]=s.useState((()=>ae(t))),[o,r]=s.useState(t);return t!==o&&(r(t),n(ae(t))),i}(u),p=s.useMemo((()=>g.filter((e=>X[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=s.useState((()=>n?Object.assign({},p):{}));let _=m[0];const v=m[1];n&&!fe(p,_)&&v(Object.assign({},p)),!n&&fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),c(W({placeholderValue:e.placeholderValue,timeZone:l})));const b=n&&(0,f.JY)(n)&&fe(p,_)?n.timeZone(l):h.timeZone(l),C=function(e,t,i){const[n,o]=s.useState((()=>({value:t,sections:e,validSegments:i,editableSections:ce(e,t,i)})));e===n.sections&&i===n.validSegments&&t.isSame(n.value)&&t.timeZone()===n.value.timeZone()||o({value:t,sections:e,validSegments:i,editableSections:ce(e,t,i)});return n}(g,b,_),[y,w]=s.useState(-1),S=s.useMemo((()=>{if(-1===y)return null;if("all"===y)return{startIndex:0,endIndex:C.editableSections.length-1};if("number"===typeof y)return{startIndex:y,endIndex:y};if("string"===typeof y){const e=C.editableSections.findIndex((e=>e.type===y));return{startIndex:e,endIndex:e}}return y}),[y,C.editableSections]);function x(t){e.disabled||e.readOnly||(fe(p,_)?n&&t.isSame(n)||d(t):(n&&d(null),c(t)))}function L(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const k=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(n,e.minValue,e.maxValue)?"invalid":void 0)||(n&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,n))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:n,editableSections:o,selectedSectionIndexes:r,selectedSections:a,isEmpty:l,flushAllValidSections:d,flushValidSection:h,setSelectedSections:c,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:b}=e,C=s.useRef(""),{hasDate:y,hasTime:w}=s.useMemo((()=>{let e=!1,t=!1;for(const i of o)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[o]);return{value:t,isEmpty:l,displayValue:n,setValue:u,setDate:g,text:(S=o,"\u2066"+S.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:o,hasDate:y,hasTime:w,selectedSectionIndexes:r,validationState:i,setSelectedSections(e){C.current="",c(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,n=this.sections[i];n&&this.setSelectedSections(X[n.type]?i:n.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,n=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==n&&this.setSelectedSections(n)},focusPreviousSection(){var e,t;const i="all"===a?0:a,n=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==n&&this.setSelectedSections(n)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&c(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,ve[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,-(ve[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(C.current="","all"===a)return void this.clearAll();const t=pe(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],n=W({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),s=f(t);let o=s;if("dayPeriod"===i.type){const e=s.hour()>=12,t=n.hour()>=12;e&&!t?o=s.set("hour",s.hour()-12):!e&&t&&(o=s.set("hour",s.hour()+12))}else{const e=oe(i.type);o=s.set(e,n[e]())}_(t,o)},clearAll(){if(this.readOnly||this.disabled)return;C.current="",d(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=pe(this.sections,a);if(-1===t)return;const i=this.sections[t];let n=C.current+e;const s=s=>{var o,r,a;let l="month"===i.type?s-1:s;const d=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(l>(null!==(o=i.maxValue)&&void 0!==o?o:0)&&(l=Number(e)-("month"===i.type?1:0),n=e,l>(null!==(r=i.maxValue)&&void 0!==r?r:0)))return void(C.current="")}else s>12&&(l=Number(e)),12===i.minValue&&l>1&&(l+=12);const h=l>0||0===l&&d;h&&m(t,l),Number(s+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||n.length>=String(i.maxValue).length?(C.current="",h&&this.focusNextSection()):C.current=n},o=s=>{var o;const r=null!==(o=i.options)&&void 0!==o?o:[];let a=s.toLocaleUpperCase(),l=r.filter((e=>e.startsWith(a)));if(0===l.length&&(s!==e&&(a=e.toLocaleUpperCase(),l=r.filter((e=>e.startsWith(a)))),0===l.length))return void(C.current="");const d=l[0],h=r.indexOf(d);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),l.length>1?C.current=n:(C.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(n)))return;s(Number(n));break;case"dayPeriod":o(n);break;case"weekday":case"month":Number.isInteger(Number(n))?s(Number(n)):o(n)}},setValueFromString:e=>(C.current="",b(e))};var S}({value:n,displayValue:b,placeholderValue:e.placeholderValue,timeZone:l,validationState:k,editableSections:C.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:S,selectedSections:y,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=C.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:w,setValue:x,setDate:d,adjustSection:function(e,t){const i=C.editableSections[e];i&&(_[i.type]?x(function(e,t,i){var n;let s=null!==(n=e.value)&&void 0!==n?n:0;if("dayPeriod"===e.type)s=t.hour()+(t.hour()>=12?-12:12);else{s+=i;const t=e.minValue,n=e.maxValue;if("number"===typeof t&&"number"===typeof n){const e=n-t+1;s=(s-t+e)%e+t}}"year"!==e.type||te(e.format)||(s=(0,f.CQ)({input:`${s}`.padStart(2,"0"),format:e.format}).year());const o=oe(e.type);return t.set(o,s)}(i,b,t)):(L(i.type),Object.keys(_).length>=Object.keys(p).length&&x(b)))},setSection:function(e,t){const i=C.editableSections[e];i&&(L(i.type),x(function(e,t,i){const n=e.type;switch(n){case"year":return t.set("year",te(e.format)?i:(0,f.CQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(oe(n),i);case"dayPeriod":{const e=t.hour(),n=e>=12;return i>=12===n?t:t.set("hour",n?e-12:e+12)}case"hour":{let n=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==n||(n=0),e&&n<12&&(n+=12)}return t.set("hour",n)}case"minute":case"second":return t.set(n,i)}return t}(i,b,t)))},getSectionValue:function(e){return b},setSectionValue:function(e,t){x(t)},createPlaceholder:function(){return W({placeholderValue:e.placeholderValue,timeZone:l}).timeZone(l)},setValueFromString:function(e){const t=function(e,t,i){let n=me({input:e,format:t,timeZone:i});(0,f.JY)(n)&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(n=H(n,me({input:e,format:t})));return n}(e,u,l);return!!(0,f.JY)(t)&&(d(t),!0)}})}const Ce=g("date-field");function ye(e){var{className:t}=e,i=(0,G._T)(e,["className"]);const o=be(i),{inputProps:r}=_e(o,i),[a,h]=s.useState(!1),{focusWithinProps:c}=(0,l.L)({onFocusWithinChange(e){h(e)}});return(0,n.jsxs)("div",Object.assign({className:Ce(null,t),style:i.style},c,{children:[(0,n.jsx)(d.o,Object.assign({},r,{value:o.isEmpty&&!a&&i.placeholder?"":r.value})),(0,n.jsx)(p,{name:i.name,value:o.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{o.setDate(e)},disabled:o.disabled,form:i.form})]}))}const we=g("mobile-calendar");function Se(e){let{props:t,state:i}=e;var s,o;let r="date";return i.hasTime&&i.hasDate?r="datetime-local":i.hasTime&&(r="time"),(0,n.jsx)("input",{className:we(),disabled:t.disabled,type:r,value:Le(i.dateFieldState.displayValue,r),id:t.id,min:Le(null===(s=t.minValue)||void 0===s?void 0:s.timeZone(i.timeZone),r),max:Le(null===(o=t.maxValue)||void 0===o?void 0:o.timeZone(i.timeZone),r),tabIndex:-1,onChange:e=>{var n,s;if(t.readOnly)return;const o=e.target.value;if(o){const e=(0,f.CQ)({input:o,format:xe(r),timeZone:"system"}).timeZone(i.timeZone,!0);let a=i.hasDate?e:W({placeholderValue:null===(n=t.placeholderValue)||void 0===n?void 0:n.timeZone(i.timeZone),timeZone:i.timeZone});a=i.hasTime?H(a,e):i.value?H(a,i.value.timeZone(i.timeZone)):H(a,W({placeholderValue:null===(s=t.placeholderValue)||void 0===s?void 0:s.timeZone(i.timeZone),timeZone:i.timeZone})),i.setValue(a)}else i.setValue(null)}})}function xe(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Le(e,t){if(!e)return"";const i=xe(t);return e.format(i)}const ke=g("stub-button");function De(e){let{size:t,icon:i}=e;return(0,n.jsx)("span",{className:ke({size:t}),children:(0,n.jsx)("span",{className:ke("icon"),children:(0,n.jsx)(c.J,{data:i})})})}function Ne(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const i=t<0||arguments.length<=t?void 0:arguments[t];if(i)for(const t of Object.keys(i)){const n=e[t],s=i[t];"function"===typeof n&&"function"===typeof s&&t.startsWith("on")&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?e[t]=Ee(n,s):e[t]="className"===t&&"string"===typeof n&&"string"===typeof s?n+" "+s:"controlProps"===t&&"object"===typeof n&&"object"===typeof s?Ne(n,s):void 0===s?n:s}}return e}function Ee(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(){for(const e of t)"function"===typeof e&&e(...arguments)}}const Te=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ie=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Me=(0,L.e)({en:Te,ru:Ie},`${u}relative-date-picker`);function Ae(e,t){var{onFocus:i,onBlur:n}=t,o=(0,G._T)(t,["onFocus","onBlur"]);const{mode:r,setMode:d,datePickerState:h,relativeDateState:c}=e,[u,g]=s.useState("relative"===r?c.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=s.useState(c.lastCorrectDate);p!==c.lastCorrectDate&&(f(c.lastCorrectDate),g(c.lastCorrectDate));const[_,v]=s.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:b}=(0,l.L)({onFocusWithin:i,onBlurWithin:n,onFocusWithinChange(t){t||e.setActive(!1)}}),[C,w]=(0,a.z)(void 0,!1,o.onOpenChange);!e.isActive&&C&&w(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),w(!0))},errorMessage:o.errorMessage,errorPlacement:o.errorPlacement,controlProps:{onClick:()=>{e.disabled||C||(e.setActive(!0),w(!0))}}},{inputProps:x}=_e(h.dateFieldState,Object.assign(Object.assign({},o),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:L}=function(e,t){const[i,n]=s.useState(e.lastCorrectDate),[o,r]=s.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(n(e.lastCorrectDate),r(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:o,onFocusUpdate:r},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(c,Object.assign(Object.assign({},o),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let k=o.validationState;k||(k="relative"===r?c.validationState:h.dateFieldState.validationState);const D=s.useRef(null),N=(0,y.c)(D,"relative"===r?L.controlRef:x.controlRef),E=s.useRef(null);function T(){setTimeout((()=>{var e;null===(e=E.current)||void 0===e||e.focus()}))}function I(){setTimeout((()=>{var e;null===(e=D.current)||void 0===e||e.focus({preventScroll:!0})}))}const M=s.useRef(null);return{groupProps:Object.assign(Object.assign({ref:M,tabIndex:-1,role:"group"},b),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),w(!0),T())}}),fieldProps:Ne(S,"relative"===r?L:x,"absolute"===r&&h.dateFieldState.isEmpty&&!e.isActive&&o.placeholder?{value:""}:void 0,{controlRef:N,validationState:k}),modeSwitcherProps:{size:m(o.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===r,extraProps:{"aria-label":Me("Formula input mode")},onClick:()=>{if(d("relative"===r?"absolute":"relative"),"relative"===r){const e=h.value;e&&g(e)}else c.parsedDate&&g(c.parsedDate);I()}},calendarButtonProps:{size:m(o.size),disabled:e.disabled,extraProps:{"aria-label":Me("Calendar"),"aria-haspopup":"dialog","aria-expanded":C},view:"flat-secondary",onClick:()=>{e.setActive(!0),w(!C),C||T()}},popupProps:{open:C,onEscapeKeyDown:()=>{w(!1),I()},onOutsideClick:e=>{var t;e.target&&!(null===(t=M.current)||void 0===t?void 0:t.contains(e.target))&&w(!1)},onTransitionExited:()=>{g("relative"===r?c.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:E,size:"s"===o.size?"m":o.size,readOnly:o.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(w(!1),I())},focusedValue:u,onFocusUpdate:g,minValue:o.minValue,maxValue:o.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:o.timeZone,hasClear:o.hasClear,size:o.size}}}const Re=function(e){let{getPlaceholderTime:t,mergeDateTime:i,setTimezone:n,getDateTime:o,useDateFieldState:r}=e;return function(e){var l,d;const{disabled:h,readOnly:c}=e,[u,g]=(0,a.z)(e.open,null!==(l=e.defaultOpen)&&void 0!==l&&l,e.onOpenChange),p=g,[m,f]=(0,a.z)(e.value,null!==(d=e.defaultValue)&&void 0!==d?d:null,e.onUpdate),[_,v]=s.useState(null),[b,C]=s.useState(null),y=z(o(e.value)||o(e.defaultValue)||e.placeholderValue),w=e.timeZone||y;let S=_,x=b;const L=e.format||"L",k=(e,t)=>{h||c||(f(n(i(e,t),y)),v(null),C(null))},D=r(Object.assign(Object.assign({},e),{value:m,onUpdate(e){e?k(e,e):f(null)},disabled:h,readOnly:c,validationState:e.validationState,minValue:e.minValue,maxValue:e.maxValue,isDateUnavailable:e.isDateUnavailable,format:L,placeholderValue:e.placeholderValue,timeZone:w})),N=s.useMemo((()=>{if(!D.hasTime)return;const e=[],t=D.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=D.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const n=D.sections.find((e=>"second"===e.type));n&&e.push(n.format);const s=D.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(s?` ${s.format}`:"")}),[D.hasTime,D.sections]);m&&(S=n(m,w),D.hasTime&&(x=n(m,w)));return D.hasTime&&!x&&(x=D.displayValue),{value:m,setValue(t){e.readOnly||e.disabled||f(t?n(t,y):null)},dateValue:S,timeValue:x,setDateValue:e=>{if(h||c)return;const t=!D.hasTime;D.hasTime?x||t?k(e,x||e):v(e):k(e,e),t&&p(!1,"ValueSelected")},setTimeValue:i=>{if(h||c)return;const n=null!==i&&void 0!==i?i:t(e.placeholderValue,w);S?k(S,n):C(n)},disabled:h,readOnly:c,format:L,hasDate:D.hasDate,hasTime:D.hasTime,timeFormat:N,timeZone:w,isOpen:u,setOpen(i,n){!i&&!m&&S&&D.hasTime&&k(S,x||t(e.placeholderValue,e.timeZone)),p(i,n)},dateFieldState:D}}}({getPlaceholderTime:function(e,t){return W({placeholderValue:e,timeZone:t})},mergeDateTime:H,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:be});function Oe(e){var t;const[i,n]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[o,r]=s.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[l,d]=s.useState(i);i!==l&&(d(i),i&&i.type!==o&&r(i.type));const[h,c]=s.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&c(i.value);const u=Re({value:h,onUpdate:e=>{c(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||n(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=s.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,n]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[o,r]=s.useState(null!==i&&void 0!==i?i:"");i&&i!==o&&r(i);const l=s.useMemo((()=>{var t;return i&&null!==(t=(0,f.J)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[d,h]=s.useState(l);l&&l!==d&&h(l);const c=e.validationState||o&&!l?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||n(t)},text:o,setText:t=>{if(!e.disabled&&!e.readOnly)if(r(t),(0,f.KN)(t)){const e=(0,f.J)(t);e&&(0,f.JY)(e)?n(t):n(null)}else n(null)},parsedDate:l,lastCorrectDate:d,validationState:c,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||n(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===o&&h?c(null):"relative"===o&&g&&p(null));const _="relative"===o?m.parsedDate:u.dateFieldState.displayValue,[v,b]=s.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||n(t)},disabled:e.disabled,readOnly:e.readOnly,mode:o,setMode(t){e.readOnly||e.disabled||t===o||(r(t),"relative"===t?(!i&&g||i)&&n(g?{type:"relative",value:g}:null):(!i&&h||i)&&n(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:b}}const Pe=g("relative-date-picker");function Fe(e){var t;const i=Oe(e),{groupProps:a,fieldProps:l,modeSwitcherProps:u,calendarButtonProps:g,popupProps:m,calendarProps:f,timeInputProps:_}=Ae(i,e),w=s.useRef(null),S=(0,y.c)(w,a.ref),x=(0,r.X)(),L=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,n.jsxs)("div",Object.assign({},a,{ref:S,className:Pe(null,e.className),children:[x&&"absolute"===i.mode&&(0,n.jsx)(Se,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,n.jsx)(d.o,Object.assign({},l,{controlProps:Object.assign(Object.assign({},l.controlProps),{disabled:x&&"absolute"===i.mode,className:Pe("input",{mobile:x&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(x&&"absolute"===i.mode),startContent:(0,n.jsx)(h.z,Object.assign({},u,{children:(0,n.jsx)(c.J,{data:b})})),endContent:(0,n.jsxs)(s.Fragment,{children:[!x&&!L&&(0,n.jsx)(h.z,Object.assign({},g,{children:(0,n.jsx)(c.J,{data:o})})),!x&&L&&(0,n.jsx)(De,{size:g.size,icon:C}),x&&"absolute"===i.mode&&(0,n.jsx)(De,{size:g.size,icon:L?C:o})]})})),(0,n.jsx)(p,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,n.jsx)(p,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!x&&!L&&(0,n.jsx)(v.G,Object.assign({},m,{anchorRef:w,children:(0,n.jsxs)("div",{className:Pe("popup-content"),children:["function"===typeof e.children?e.children(f):(0,n.jsx)($,Object.assign({},f)),i.datePickerState.hasTime&&(0,n.jsx)("div",{className:Pe("time-field-wrapper"),children:(0,n.jsx)(ye,Object.assign({},_))})]})}))]}))}var Be=i(72555),Ve=i(76943),We=i(29837),He=i(74718),ze=i.n(He),je=i(48509),Ue=i.n(je),Ke=i(68062),qe=i.n(Ke),$e=i(87578),Ge=i(35035);const Ye=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),Ze=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),Qe=(0,L.e)({en:Ye,ru:Ze},"Table");function Xe(e){(0,Ge.O)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Je(e,t){return"left"===e?(Xe(t),"start"):"right"===e?(Xe(t),"end"):e}const et=(0,$e.Ge)("table");class tt extends s.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>s.createRef()))},this.tableRef=s.createRef(),this.scrollContainerRef=s.createRef(),this.horizontalScrollBarRef=s.createRef(),this.horizontalScrollBarInnerRef=s.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:n,onRowClick:o,onRowMouseEnter:r,onRowMouseLeave:a,onRowMouseDown:l,getRowClassNames:d,verticalAlign:h,edgePadding:c,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===n||void 0===n?void 0:n(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===d||void 0===d?void 0:d(e,t))||[],v=Boolean(!f&&o);return s.createElement("tr",{key:tt.getRowId(this.props,e,t),onClick:!f&&o?o.bind(null,e,t):void 0,onMouseEnter:!f&&r?r.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&l?l.bind(null,e,t):void 0,className:et("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,n)=>{const{id:o,align:r,primary:a,className:l,sticky:d}=i,h=tt.getBodyCellContent(i,e,t),g=Je(r,"column.align"),m=Je(d,"column.sticky");return s.createElement("td",{key:o,style:p[n],className:et("cell",{align:g,primary:a,sticky:m,"edge-padding":c,"word-wrap":u},l)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:n,getRowId:s,getRowDescriptor:o}=e,r=null!==i&&void 0!==i?i:n.indexOf(t),a=null===o||void 0===o?void 0:o(t,r);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof s?s(t,r):String(s&&s in t?t[s]:r)}static getHeadCellContent(e){const{id:t,name:i}=e;let n;return n="function"===typeof i?i():"string"===typeof i?i:t,n}static getBodyCellContent(e,t,i){const{id:n,template:s,placeholder:o}=e;let r,a;return r="function"===typeof o?o(t,i):null!==o&&void 0!==o?o:"\u2014","function"===typeof s?a=s(t,i):"string"===typeof s?a=ze()(t,s):Ue()(t,n)&&(a=ze()(t,n)),[void 0,null,""].includes(a)&&r?r:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>s.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:n}=this.props,o=e.some((e=>{let{primary:t}=e;return t}));return s.createElement("div",{className:et({"with-primary":o,"with-sticky-scroll":t},i),"data-qa":n},t?s.createElement(s.Fragment,null,s.createElement("div",{ref:this.scrollContainerRef,className:et("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:n}=this.state;return s.createElement("thead",{className:et("head")},s.createElement("tr",{className:et("row")},e.map(((e,o)=>{const{id:r,align:a,primary:l,sticky:d,className:h}=e,c=Je(a,"column.align"),u=Je(d,"column.sticky"),g=tt.getHeadCellContent(e);return s.createElement("th",{key:r,ref:this.state.columnHeaderRefs[o],style:n[o],className:et("cell",{align:c,primary:l,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return s.createElement("tbody",{className:et("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return s.createElement("table",{ref:this.tableRef,className:et("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return s.createElement("tr",{className:et("row",{empty:!0})},s.createElement("td",{className:et("cell"),colSpan:e.length},t||Qe("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return s.createElement("div",{ref:this.horizontalScrollBarRef,className:et("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},s.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:et("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,n=i[e],s={};if("string"===typeof n.width)return{maxWidth:0,width:n.width};if("undefined"!==typeof n.width&&(s.width=n.width),!n.sticky)return s;const o="left"===n.sticky||"start"===n.sticky?t.slice(0,e):t.slice(e+1);return s["left"===n.sticky||"start"===n.sticky?"insetInlineStart":"insetInlineEnd"]=o.reduce(((e,t)=>qe()(t)?e+t:e),0),s}}tt.defaultProps={edgePadding:!0};var it=i(16318);const nt=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last {count} {unit}":"Last {{count}} {{unit}}","m":["minute","minutes","minutes"],"h":["hour","hours","hours"],"d":["day","days","days"],"w":["week","weeks","weeks"],"M":["month","months","months"],"y":["year","years","years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),st=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last {count} {unit}":"Last {{count}} {{unit}}","m":["minute","minutes","minutes"],"h":["hour","hours","hours"],"d":["day","days","days"],"w":["week","weeks","weeks"],"M":["month","months","months"],"y":["year","years","years"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),ot=(0,L.e)({en:nt,ru:st},`${u}relative-range-date-picker-presets`),rt=g("relative-range-date-picker-presets-doc"),at=[{id:"title",name:()=>ot("Range")},{id:"from",name:()=>ot("From")},{id:"to",name:()=>ot("To")}],lt=[{get title(){return ot("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return ot("From start of day")},from:"now/d",to:"now"},{get title(){return ot("This week")},from:"now/w",to:"now/w"},{get title(){return ot("From start of week")},from:"now/w",to:"now"},{get title(){return ot("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function dt(e){let{size:t,docs:i}=e;return(0,n.jsx)(tt,{columns:at,data:i,className:rt("table",{size:t})})}function ht(e){let{className:t,size:i,docs:s}=e;return(0,n.jsx)(it.J,{className:rt(null,t),tooltipContentClassName:rt("content"),hasArrow:!1,content:(0,n.jsx)(dt,{size:i,docs:s}),children:(0,n.jsx)(h.z,{className:rt("button"),view:"flat-secondary",size:m(i),children:(0,n.jsx)(c.J,{data:We.Z})})})}function ct(e){let{className:t,size:i,docs:o}=e;const[r,a]=s.useState(!1);return(0,n.jsxs)("div",{className:rt(null,t),children:[(0,n.jsx)(h.z,{className:rt("button"),view:"flat-secondary",size:"l",onClick:()=>{a(!0)},children:(0,n.jsx)(c.J,{data:We.Z})}),(0,n.jsx)(_.y,{visible:r,onClose:()=>a(!1),children:(0,n.jsx)(dt,{size:i,docs:o})})]})}function ut(e){let{className:t,size:i,docs:s=lt}=e;const o=(0,r.X)();return Array.isArray(s)&&0!==s.length?o?(0,n.jsx)(ct,{className:t,size:i,docs:s}):(0,n.jsx)(ht,{className:t,size:i,docs:s}):null}const gt=[{from:"now-1d",to:"now",get title(){return ot("Last day")}},{from:"now-3d",to:"now",get title(){return ot("Last 3 days")}},{from:"now-1w",to:"now",get title(){return ot("Last week")}},{from:"now-1M",to:"now",get title(){return ot("Last month")}},{from:"now-3M",to:"now",get title(){return ot("Last 3 months")}},{from:"now-6M",to:"now",get title(){return ot("Last 6 months")}},{from:"now-1y",to:"now",get title(){return ot("Last year")}},{from:"now-3y",to:"now",get title(){return ot("Last 3 years")}}],pt=[{from:"now-5m",to:"now",get title(){return ot("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return ot("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return ot("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return ot("Last hour")}},{from:"now-3h",to:"now",get title(){return ot("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return ot("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return ot("Last 12 hours")}}],mt=[{from:"now/d",to:"now/d",get title(){return ot("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return ot("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return ot("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return ot("This week")}},{from:"now/M",to:"now/M",get title(){return ot("This month")}},{from:"now/y",to:"now/y",get title(){return ot("This year")}},{from:"now/d",to:"now",get title(){return ot("From start of day")}},{from:"now/w",to:"now",get title(){return ot("From start of week")}},{from:"now/M",to:"now",get title(){return ot("From start of month")}},{from:"now/y",to:"now",get title(){return ot("From start of year")}}],ft=pt.concat(gt,mt);function _t(e,t){return e.filter((e=>{const i=(0,f.J)(e.from),n=(0,f.J)(e.to,{roundUp:!0});return!(!i||!n)&&(!n.isBefore(i)&&(!t||!i.isBefore(t)))}))}const vt=g("relative-range-date-picker-presets");function bt(e){let{className:t,size:i="m",minValue:o,withTime:r,onChoosePreset:a,presetTabs:l,docs:d}=e;var h,c;const u=s.useMemo((()=>function(e){let{minValue:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(((e,i)=>{const n=_t(i.presets,t);return n.length&&e.push(Object.assign(Object.assign({},i),{presets:n})),e}),[])}(null!==l&&void 0!==l?l:function(e){let{withTime:t,minValue:i}=e;const n=[],s={id:"main",title:ot("Main"),presets:[]},o=gt;t&&o.unshift(...pt),s.presets=_t(o,i),s.presets.length>0&&n.push(s);const r={id:"other",title:ot("Other"),presets:_t(mt,i)};return r.presets.length>0&&n.push(r),n}({withTime:r}),{minValue:o})),[r,o,l]),[g,p]=s.useState(null===(h=u[0])||void 0===h?void 0:h.id);if(0===u.length)return null;const m=null!==(c=u.find((e=>e.id===g)))&&void 0!==c?c:u[0];return m?(m.id!==g&&p(m.id),(0,n.jsxs)("div",{className:vt({size:i},t),children:[(0,n.jsxs)("div",{className:vt("tabs"),children:[(0,n.jsx)(Be.m,{activeTab:g,onSelectTab:p,items:u,size:"s"===i?"m":i}),(0,n.jsx)(ut,{className:vt("doc"),size:i,docs:d})]}),(0,n.jsx)("div",{className:vt("content"),children:(0,n.jsx)(yt,{presets:m.presets,onChoosePreset:a,size:i})})]})):null}const Ct={s:28,m:28,l:32,xl:36};function yt(e){let{presets:t,onChoosePreset:i,size:o="m"}=e;const r=s.useRef(null);return s.useEffect((()=>{var e,t;const i=r.current,n=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&n)try{n.setAttribute("tabindex","0"),n.setAttribute("class",vt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return n.addEventListener("focus",e),()=>{n.removeEventListener("focus",e)}}catch(s){}}),[]),(0,n.jsx)(Ve.a,{ref:r,className:vt("list"),itemClassName:vt("item"),items:t,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ct[o],onItemClick:e=>{i(e.from,e.to)}})}var wt=i(26390),St=i(23795);function xt(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.CQ)({timeZone:e}).timeZone():e}(e)}function Lt(e){return`UTC ${(0,f.CQ)({timeZone:e}).format("Z")}`}function kt(e){let{value:t,timeZone:i,alwaysShowAsAbsolute:n,format:s="L",presets:o}=e;var r,a,l,d,h,c;if(!t)return"";const u="default"===i?"":` (${Lt(i)})`;let g="";t.start&&(g="relative"!==t.start.type||n?null!==(a=null===(r=(0,f.J)(t.start.value,{timeZone:i}))||void 0===r?void 0:r.format(s))&&void 0!==a?a:"":t.start.value);let p="";if(t.end&&(p="relative"!==t.end.type||n?null!==(d=null===(l=(0,f.J)(t.end.value,{timeZone:i,roundUp:!0}))||void 0===l?void 0:l.format(s))&&void 0!==d?d:"":t.end.value),!n&&"relative"===(null===(h=t.start)||void 0===h?void 0:h.type)&&"relative"===(null===(c=t.end)||void 0===c?void 0:c.type))return`${function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft;const n=e.replace(/\s+/g,""),s=t.replace(/\s+/g,"");for(const o of i)if(o.from===n&&o.to===s)return o.title;if("now"===t){const t=/^now-(\d+)([m|h|d|w|M|y])$/.exec(e);if(t){const[,e,i]=t;if(["m","h","d","w","M","y"].includes(i))return ot("Last {count} {unit}",{count:e,unit:ot(i,{count:Number(e)})})}}return n+" \u2014 "+s}(t.start.value,t.end.value,o)}${u}`;return`${g} \u2014 ${p}${u}`}const Dt=JSON.parse('{"default":"Default","system":"Browser time"}'),Nt=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Et=(0,L.e)({en:Dt,ru:Nt},`${u}relative-range-date-picker-zones`),Tt={},It=(0,f.m3)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let n=Tt[i];n||(n={label:i,options:[]},Tt[i]=n,e.push(n)),n.options.push({value:t})}return e}),[]);It.unshift({value:"UTC"}),It.unshift({value:"system",get content(){return Et("system")}}),It.unshift({value:"default",get content(){return Et("default")}});const Mt=g("relative-range-date-picker-zones");function At(e){const t=xt(e.value),i=e.isMobile?"xl":e.size;return(0,n.jsx)(wt.P,{value:[t],options:It,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:s=>{const o="system"===t||"default"===t?Et(t):t;return(0,n.jsxs)(h.z,{onClick:s.onClick,ref:s.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,extraProps:{"aria-haspopup":"listbox","aria-expanded":s.open,onKeyDown:s.onKeyDown},className:Mt("control"),children:[`${o} (${Lt(t)})`,(0,n.jsx)(c.J,{className:Mt("control-icon"),data:S.Z,size:e.isMobile?20:16})]})},renderOption:e=>{let{value:t,content:i}=e;const s=null!==i&&void 0!==i?i:t;return(0,n.jsxs)("span",{className:Mt("item"),children:[(0,n.jsxs)("span",{className:Mt("item-title"),title:t,children:[s,"\xa0"]}),(0,n.jsx)(St.x,{color:"secondary",children:Lt(t)})]})},filterable:!0})}const Rt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),Ot=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Pt=(0,L.e)({en:Rt,ru:Ot},`${u}relative-range-date-picker-dialog`),Ft=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),Bt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),Vt=(0,L.e)({en:Ft,ru:Bt},`${u}validation`);function Wt(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Value";const r=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),l=e&&(null===n||void 0===n?void 0:n(e))||!1,d=r||a||l,h=[];return d&&(a&&t&&h.push(Vt("Value must be {minValue} or later.",{minValue:t.timeZone(s).format(),value:o})),r&&i&&h.push(Vt("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(s).format(),value:o})),l&&h.push(Vt("Selected date unavailable."))),{isInvalid:d,errors:h}}function Ht(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n;if(!e&&!t)return null;const{isInvalid:s}=zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(n=i.timeZone)&&void 0!==n?n:"default");return s?null:{start:e,end:t}}function zt(e,t,i,n,s,o,r){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.J)(e.value,{timeZone:r}):null,l=t?(0,f.J)(t.value,{timeZone:r,roundUp:!0}):null,d=Wt(a,n,s,o,r);a||i||(d.isInvalid=!0,d.errors.push(Pt("Value is required.")));const h=Wt(l,n,s,o,r);return l||i||(h.isInvalid=!0,h.errors.push(Pt("Value is required."))),a&&l&&l.isBefore(a)&&(d.isInvalid=!0,d.errors.push(Pt('"From" can\'t be after "To".'))),{isInvalid:d.isInvalid||h.isInvalid,startValidationResult:d,endValidationResult:h}}const jt=g("relative-range-date-picker-dialog");function Ut(e){let{props:t,state:i,open:s,onClose:o,focusInput:r,isMobile:a,anchorRef:l,className:d}=e;return a?(0,n.jsx)(_.y,{visible:s,onClose:o,contentClassName:jt("content",{mobile:!0,size:"xl"},d),children:(0,n.jsx)(Kt,Object.assign({},t,{size:"xl",state:i,onApply:o}))}):(0,n.jsx)(v.G,{open:s,onEscapeKeyDown:()=>{o(),r()},onClose:o,role:"dialog",anchorRef:l,contentClassName:jt("content",{size:t.size},d),autoFocus:!0,focusTrap:!0,children:(0,n.jsx)(Kt,Object.assign({},t,{state:i,onApply:o}))})}function Kt(e){var t,i,o,r,a,l,d;const c=function(e,t){var i,n,o,r;const{withApplyButton:a,allowNullableValues:l}=t,[d,h]=s.useState(null!==(n=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==n?n:null),[c,u]=s.useState(null!==(r=null===(o=e.value)||void 0===o?void 0:o.end)&&void 0!==r?r:null),[g,p]=s.useState(e.timeZone),m=a?g:e.timeZone,f=s.useMemo((()=>zt(d,c,l,t.minValue,t.maxValue,t.isDateUnavailable,m)),[l,c,t.isDateUnavailable,t.maxValue,t.minValue,d,m]);return{start:d,end:c,timeZone:m,setStart:function(i){h(i),a||e.setValue(Ht(i,c,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Ht(d,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,n){h(i),u(n),a||e.setValue(Ht(i,n,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Ht(d,c,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Ht(d,c,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),u=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.CQ)({timeZone:e.state.timeZone}),g={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:jt("pickers"),children:[(0,n.jsx)(Fe,Object.assign({},g,{validationState:(null===(i=c.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(r=null===(o=c.startValidation)||void 0===o?void 0:o.errors)||void 0===r?void 0:r.join("\n"))||Pt("Value is incorrect."),placeholderValue:u.startOf("day"),label:Pt("From"),value:c.start,onUpdate:c.setStart})),(0,n.jsx)(Fe,Object.assign({},g,{validationState:(null===(a=c.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(d=null===(l=c.endValidation)||void 0===l?void 0:l.errors)||void 0===d?void 0:d.join("\n"))||Pt("Value is incorrect."),placeholderValue:u.endOf("day"),label:Pt("To"),value:c.end,onUpdate:c.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,n.jsx)(h.z,{disabled:c.isInvalid,size:e.size,onClick:()=>{c.applyValue(),e.onApply()},className:jt("apply"),width:"max",children:Pt("Apply")}):null,e.withPresets&&!e.readOnly?(0,n.jsx)(bt,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{c.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:jt("presets")}):null,e.withZonesList?(0,n.jsx)("div",{className:jt("zone"),children:(0,n.jsx)(At,{value:c.timeZone,onUpdate:c.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const qt=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),$t=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),Gt=(0,L.e)({en:qt,ru:$t},`${u}relative-range-date-picker`);function Yt(e){var t,i;const[n,o]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[r,l]=(0,a.z)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),d=s.useMemo((()=>function(e,t,i,n,s,o){if(!e)return{isInvalid:!1,errors:[]};const r=e.start?(0,f.J)(e.start.value,{timeZone:o}):null,a=e.end?(0,f.J)(e.end.value,{timeZone:o,roundUp:!0}):null,l=Wt(r,i,n,s,o,Gt('"From"'));r||t||(l.isInvalid=!0,l.errors.push(Gt('"From" is required.')));const d=Wt(a,i,n,s,o,Gt('"To"'));a||t||(d.isInvalid=!0,d.errors.push(Gt('"To" is required.')));r&&a&&a.isBefore(r)&&(l.isInvalid=!0,l.errors.push(Gt('"From" can\'t be after "To".')));return{isInvalid:l.isInvalid||d.isInvalid,errors:l.errors.concat(d.errors)}}(n,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,r)),[n,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,r]);return Object.assign({value:n,timeZone:r,setValue(t,i){var s;o(t),l(i),(n!==t||n&&r!==i)&&(null===(s=e.onUpdate)||void 0===s||s.call(e,t,i))}},d)}const Zt=g("relative-range-date-picker");function Qt(e){var t;const i=Yt(e),u=(0,r.X)(),g=s.useRef(null),f=s.useRef(null),[_,v]=s.useState(!1),[b,C]=(0,a.z)(void 0,!1,e.onOpenChange),{focusWithinProps:y}=(0,l.L)({isDisabled:e.disabled,onFocusWithin:t=>{var i;_||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;b||(v(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}}),{alwaysShowAsAbsolute:w,presetTabs:S,getRangeTitle:x}=e,L=e.format||"L",k=s.useMemo((()=>"function"===typeof x?x(i.value,i.timeZone):kt({value:i.value,timeZone:i.timeZone,alwaysShowAsAbsolute:w,format:L,presets:null===S||void 0===S?void 0:S.flatMap((e=>{let{presets:t}=e;return t}))})),[w,L,x,S,i.timeZone,i.value]),D=e.validationState||(i.isInvalid?"invalid":void 0),N=null!==(t=e.errorMessage)&&void 0!==t?t:i.errors.join("\n");return(0,n.jsxs)("div",Object.assign({ref:g},y,{className:Zt(null,e.className),style:e.style,children:[(0,n.jsx)(d.o,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:k,placeholder:e.placeholder,onUpdate:t=>{e.readOnly||t||i.setValue(null,"default")},controlProps:{"aria-haspopup":"dialog","aria-expanded":b,disabled:u,className:Zt("input",{mobile:u}),onClick:()=>{e.disabled||b||(v(!0),C(!0))}},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),C(!0))},onFocus:()=>{_||(v(!0),C(!0))},validationState:D,errorMessage:N,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,n.jsx)(h.z,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":b},onClick:()=>{v(!0),C(!b)},children:(0,n.jsx)(c.J,{data:o})})}),u?(0,n.jsx)("button",{className:Zt("mobile-trigger",{"has-clear":Boolean(e.hasClear&&i.value),"has-errors":i.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:()=>{v(!0),C(!0)}}):null,(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t;return Xt(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t;return Xt(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,onReset:e=>{i.setValue(e.value,e.timeZone)},value:{value:i.value,timeZone:i.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,n.jsx)(Ut,{state:i,props:e,open:b,onClose:()=>{C(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:g,isMobile:u,className:e.popupClassName})]}))}function Xt(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},73878:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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 1.5a6.501 6.501 0 0 0-6.445 5.649.75.75 0 1 0 1.488.194A5.001 5.001 0 0 1 11.57 4.5h-1.32a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.06A6.48 6.48 0 0 0 8 1.5Zm-5.25 13a.75.75 0 0 1-.75-.75v-3a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5H4.43a5.001 5.001 0 0 0 8.528-2.843.75.75 0 1 1 1.487.194A6.501 6.501 0 0 1 3.5 12.691v1.059a.75.75 0 0 1-.75.75Z",clipRule:"evenodd"}))},58903:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56l2.97 2.97Zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56l2.97 2.97Z",clipRule:"evenodd"}))},29651:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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 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.056-1.645.28-.196.402-.332.46-.425a.543.543 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a.997.997 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},12205:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"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 0ZM5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Z",clipRule:"evenodd"}))},92921:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"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 0ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},49459:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M13.5 6H8.75v2.5h4.75V6ZM7.25 6H2.5v2.5h4.75V6ZM1 6V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6Zm7.75 4h4.75v1a1.5 1.5 0 0 1-1.5 1.5H8.75V10ZM2.5 10h4.75v2.5H4A1.5 1.5 0 0 1 2.5 11v-1Z",clipRule:"evenodd"}))},7603:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299Zm-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.077 2.077 0 0 0-1.88-1.88Zm3.098.658a3.59 3.59 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88l-1.28 1.28Z",clipRule:"evenodd"}))},87669:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm1 1.225a.71.71 0 0 0-.679-.72A11.087 11.087 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10c.058 0 .117 0 .175.002.442.008.825-.335.825-.777Zm3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848l2.822-2.822Zm-.883 4.76 3.068-3.067a.767.767 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.766.766 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848Z",clipRule:"evenodd"}))},81101:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164l8.505-4.917Z",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},71267:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1Z",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},13872:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.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 3Zm-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3v-7Zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07l3.5-4.5Z",clipRule:"evenodd"}))},1995:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5H4.5ZM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25ZM2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9Zm11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))},34996:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5ZM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H4Zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0ZM8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5h-2.5Z",clipRule:"evenodd"}))},44899:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(34706);const s=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:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2Zm2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5H11Zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438l.315-7.562Zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0Zm3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))},92243:(e,t,i)=>{"use strict";i.d(t,{hP:()=>E,od:()=>we});var n=i(37547);function s(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const o="ParanoidC";function r(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const r=s("+","plus"),a=s("-","minus"),l=s("1:1","normal"),d=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",o),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const s=t.colors||{};return new n.fabric.Canvas(o,{selection:!1,backgroundColor:s.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,n){const s=document.createElement("div");s.className="paranoid-controls";const o=document.createElement("style");return o.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(n),s.appendChild(o),s.appendChild(t),s.appendChild(e),s.appendChild(i),s}(r,a,l,t.colors);return i.appendChild(h),function(e,t,i,n,s){const o=s.minZoom||.2,r=s.zoomStep||.2,a=s.maxZoom||2,l=s.startZoom||1;e.setZoom(l),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=r,i<o&&(i=o),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=r,i>a&&(i=a),e.setZoom(i)})),n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(d,r,a,l,t),function(e){let t=!1,i=0,n=0;e.on("mouse:down",(s=>{s.target||(e.setCursor("grabbing"),t=!0,i=s.pointer.x,n=s.pointer.y)})),e.on("mouse:move",(s=>{t&&(e.viewportTransform[4]+=s.pointer.x-i,e.viewportTransform[5]+=s.pointer.y-n,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=s.pointer.x,n=s.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(d),d}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},l={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},d="Arial, sans-serif",h=13,c=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(1868);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let n=!1;i&&(i.children.length>0?t.unshift(...i.children):n=!0,e(i,n))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const n=this.findSources(i,e.links);let s=[],o={},r=new Map;return n.forEach((t=>{const n=this.mapNodesToTree(t,i,e.links);o=Object.assign(Object.assign({},n.groups),o),r=new Map([...r,...n.notGroupMemebersChildren]),s.push(n.tree)})),r.forEach(((e,t)=>{o[t]&&o[t].addNodes(e)})),s=s.reduce(((e,t)=>{const i=t.root.data.group;return i?o[i].members.push(t):e.push(t),e}),[]),s}getGroups(e){let{nodes:t}=e;const i=new Map;return t.forEach((e=>{if(e.group){const t=i.get(e.group);t?t.push(e.name):i.set(e.group,[e.name])}})),i}findSources(e,t){const i=t.map((e=>{let{to:t}=e;return t}));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var n;const s=this.createNode(e),o={};this.appendGoup(o,s);const r=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(r,o)(s,(null===(n=r.find((t=>t.name===e.name)))||void 0===n?void 0:n.children)||[]);return{tree:new p(s),groups:o,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,n=(s,o)=>{const r=o.map((i=>{const s=e.find((e=>{let{name:t}=e;return t===i})),o=this.createNode(s);return this.appendGoup(t,o),s.children.length>0&&n(o,s.children),o})),a=s.data.group,l=Boolean(a),d=[],h=[];if(r.forEach((e=>{const t=e.data.group;l?a===t?d.push(e):h.push(e):d.push(e)})),s.addNodes(d),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return n}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}const v=16,b=16,C=24;function y(e){switch(e){case 0:return 0;case 1:return b;default:return C}}function w(e,t,i,n,s,o){const r=function(e,t,i,n,s,o,r){const a=new Map,l=new Map,d=new Map,h=[];return n.traverseBF((n=>{const{object:s,width:o,height:l}=function(e,t,i,n,s,o,r){var a,l;const d=null!==(a=t.shapeInstance)&&void 0!==a?a:o.node(e,{top:i,left:n},t,s,r),h=null!==(l=t.canvasNode)&&void 0!==l?l:d.getShape();return t.addShapeInstance(d),t.addCanvasNode(h),{object:h,top:i,left:n,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,n,0,0,t,i,r);a.set(n,{width:o,height:l}),h.push(s)})),function e(t){const{width:i}=a.get(t);let n=i,s=0;if(t.parent&&1===t.parent.children.length&&l.has(t.parent)){const e=l.get(t.parent);n<e&&(n=e)}return l.set(t,n),t.children.length>0&&(s=(t.children.length-1)*v+t.children.reduce(((t,i)=>t+e(i)),0),d.set(t,s)),n=Math.max(n,s),l.set(t,n),n}(n.root),function e(t,i,n){let s=n,o=n;for(const r of t){const{width:t,height:n}=a.get(r),h=l.get(r),c=i,u=s+Math.floor(h/2)-Math.floor(t/2);if(r.canvasNode.set({top:c,left:u}),r.canvasNode.setCoords(),s=s+h+v,r.children.length){let t=0;const s=d.get(r);s<h&&(t=Math.floor((h-s)/2));const a=i+n+y(r.children.length),l=o+t;e(r.children,a,l)}o=s}}([n.root],s,o),h}(e.canvas,n,s,e,t,i,o);let a=0,l=0;return r.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),l=Math.max(l,(e.top||0)+e.getScaledHeight())})),{nodes:r,bottom:l,right:a}}function S(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function x(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class L{constructor(e,t,i,n){this.canvas=r(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=n,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(o);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,s=t;const o=this.opts.initialTop;let r=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:n,right:a}=w(e,o,r,this.opts,this.shapes,this.em);r=a+15,i=Math.max(n,i),s=Math.max(a,s),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,s=[];return e.data.links.reduce(((t,o)=>{let{from:r}=o;const a=e.nodes.get(r);if(a&&1===a.children.length&&!s.includes(r)){const{x:e,y:o}=S(a),d=new n.fabric.Path(`M ${e} ${o}\n V ${o+b}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new n.fabric.Group([d],Object.assign({},l))),s.push(r)}if(a&&a.children.length>1&&!s.includes(r)){const{x:e,y:o}=S(a),d=C/2,h=6,c=[new n.fabric.Path(`M ${e} ${o}\n V ${o+d}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=x(a.children[0]),{x:p,y:m}=x(a.children[a.children.length-1]),f=new n.fabric.Path(`M ${u} ${g}\n V ${g-d+h}\n Q ${u} ${g-d} ${u+h} ${g-d}\n H ${p-h}\n Q ${p} ${m-d} ${p} ${m+h-d}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});c.push(f),a.children.forEach(((e,t)=>{if(0===t||t===a.children.length-1)return;const{x:s,y:o}=x(e),r=new n.fabric.Path(`M ${s} ${o}\n V ${o-d}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});c.push(r)})),t.push(new n.fabric.Group(c,Object.assign({},l))),s.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:n,left:s,height:o,width:r}=i.getBoundingRect(),a=s+r,l=n+o;a>e&&(e=a),l>t&&(t=l)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,s=this.canvas.getHeight()/t,o=Math.min(i,s);if(o<1){this.canvas.setZoom(o);const e=this.opts.initialTop*o,t=this.opts.initialLeft*o,i=this.opts.initialTop-e,s=this.opts.initialLeft-t;this.canvas.relativePan(new n.fabric.Point(s,i))}}}function k(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,n)=>{const s=t.getPropertyValue(e[n]).replace(/ /g,"");return s&&(i[n]=s),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const D={linkType:"arrow"};function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),k()),t)})}function E(e,t,i,n){const s=N(i);return new L(e,s,t,n)}var T=i(34706),I=(i(58399),i(74647),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,n){return e[0]===t&&(i=n,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},t.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,n=this.__entries__;i<n.length;i++){var s=n[i];e.call(t,s[1],s[0])}},t}()}()),M="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),R="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},O=2;var P=20,F=["top","right","bottom","left","width","height","size","weight"],B="undefined"!==typeof MutationObserver,V=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,n=!1,s=0;function o(){i&&(i=!1,e()),n&&a()}function r(){R(o)}function a(){var e=Date.now();if(i){if(e-s<O)return;n=!0}else i=!0,n=!1,setTimeout(r,t);s=e}return a}(this.refresh.bind(this),P)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){M&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){M&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;F.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),W=function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var s=n[i];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},H=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},z=G(0,0,0,0);function j(e){return parseFloat(e)||0}function U(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+j(e["border-"+i+"-width"])}),0)}function K(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return z;var n=H(e).getComputedStyle(e),s=function(e){for(var t={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var s=n[i],o=e["padding-"+s];t[s]=j(o)}return t}(n),o=s.left+s.right,r=s.top+s.bottom,a=j(n.width),l=j(n.height);if("border-box"===n.boxSizing&&(Math.round(a+o)!==t&&(a-=U(n,"left","right")+o),Math.round(l+r)!==i&&(l-=U(n,"top","bottom")+r)),!function(e){return e===H(e).document.documentElement}(e)){var d=Math.round(a+o)-t,h=Math.round(l+r)-i;1!==Math.abs(d)&&(a-=d),1!==Math.abs(h)&&(l-=h)}return G(s.left,s.top,a,l)}var q="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof H(e).SVGGraphicsElement}:function(e){return e instanceof H(e).SVGElement&&"function"===typeof e.getBBox};function $(e){return M?q(e)?function(e){var t=e.getBBox();return G(0,0,t.width,t.height)}(e):K(e):z}function G(e,t,i,n){return{x:e,y:t,width:i,height:n}}var Y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=G(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=$(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Z=function(e,t){var i=function(e){var t=e.x,i=e.y,n=e.width,s=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(o.prototype);return W(r,{x:t,y:i,width:n,height:s,top:i,right:t+n,bottom:s+i,left:t}),r}(t);W(this,{target:e,contentRect:i})},Q=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new I,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof H(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof H(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Z(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),X="undefined"!==typeof WeakMap?new WeakMap:new I,J=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=V.getInstance(),n=new Q(t,i,this);X.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){J.prototype[e]=function(){var t;return(t=X.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;class ee extends T.Component{constructor(e){super(e),this.handleResize=debounce((e=>{var t,i,n;const{contentRect:s}=e[0];null===this.paranoid||void 0===t||t.getCanvas().setWidth(s.width),null===this.paranoid||void 0===i||i.getCanvas().setHeight(s.height),null===this.paranoid||void 0===n||n.getCanvas().renderAll()}),300),this.container=React.createRef(),this.resizeObserver=new ResizeObserver(this.handleResize)}componentDidMount(){this.paranoid=getTopology(paranoidRoot,this.props.data,this.props.opts,this.props.shapes),this.paranoid.render(),this.resizeObserver.observe(this.container.current),this.props.initListeners&&this.props.initListeners(this.paranoid)}componentDidUpdate(e){let{data:t,opts:i}=e;var n;!this.paranoid||isEqual(t,this.props.data)&&isEqual(i,this.props.opts)||(null===this.paranoid||void 0===n||n.destroy(),this.paranoid=getTopology(paranoidRoot,this.props.data,this.props.opts,this.props.shapes),this.paranoid.render(),this.props.initListeners&&this.props.initListeners(this.paranoid))}componentWillUnmount(){this.paranoid&&(this.paranoid.destroy(),this.paranoid=void 0),this.resizeObserver.disconnect()}render(){const{styles:e}=this.props;return React.createElement("div",{ref:this.container,id:paranoidRoot,style:e||{height:"100%"}})}}class te extends T.Component{componentDidMount(){this.paranoid=getCompactTopology(CompactTopology_paranoidRoot,this.props.data,this.props.opts),this.paranoid.renderCompactTopology()}componentDidUpdate(e){let{data:t,opts:i}=e;var n;!this.paranoid||isEqual(t,this.props.data)&&isEqual(i,this.props.opts)||(null===this.paranoid||void 0===n||n.destroy(),this.paranoid=getCompactTopology(CompactTopology_paranoidRoot,this.props.data,this.props.opts),this.paranoid.renderCompactTopology())}componentWillUnmount(){this.paranoid&&this.paranoid.destroy()}render(){const{styles:e}=this.props;return React.createElement("div",{id:CompactTopology_paranoidRoot,style:e||{height:"100%"}})}}var ie=i(74718),ne=i.n(ie);const se={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class oe{constructor(e,t,i,n){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=n,this.textProps={fontSize:se.textFontSize,lineHeight:se.textLineHeight,fontFamily:d,fill:null===n||void 0===n?void 0:n.titleColor},this.selectedGroup=t[0].group;const s=this.createTitles(),o=s.map((e=>e.getScaledHeight())),r=Math.max.apply(null,o);this.lineTop=this.top+r+se.textOffset;const a=this.createLine();this.content=this.createContent(s),this.group=this.createGroup(s,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((e=>{let{group:t}=e;return t})).map((t=>{var i,s;const o=new n.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(s=this.colors)||void 0===s?void 0:s.textColor}));return e+=o.getScaledWidth()+se.statsOffset,o}))}createLine(){return new n.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${se.expandedWidth-2*se.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map(((t,i)=>{let{group:s,stats:o}=t;const r=this.getContentItems(o,this.lineTop),a=e[i],l=a.left||0,d=l+a.getScaledWidth();return{group:s,items:new n.fabric.Group(r,{opacity:this.selectedGroup===s?1:0}),title:a,hoverLine:this.createHoverLine(l,d,s)}}))}getContentItems(e,t){let i=t+2*se.textOffset;const s=[],o=e=>{e.forEach((e=>{let{name:t,value:o}=e;var r;const a=new n.fabric.Text(t,Object.assign({left:this.left,top:i},this.textProps)),l=se.expandedWidth/2-se.padding,d=se.expandedWidth-2*se.padding,h=new n.fabric.Textbox(String(o),Object.assign(Object.assign({left:l,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:d-l}));s.push(a,h),i+=Math.max(a.getScaledHeight(),h.getScaledHeight())+se.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?o(e):e.forEach(((t,r)=>{let{name:a,items:l}=t;const d=new n.fabric.Text(a,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(s.push(d),i+=d.getScaledHeight()+se.textOffset,o(l),r!==e.length-1){const e=new n.fabric.Path(`M ${this.left} ${i}\n H ${se.expandedWidth-2*se.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});s.push(e),i+=e.getScaledHeight()+se.textOffset}})),s}createGroup(e,t,i){const s=i.map((e=>{let{items:t}=e;return t})),o=i.map((e=>{let{hoverLine:t}=e;return t}));return new n.fabric.Group([...e,t,...s,...o],Object.assign({left:this.coords.left,top:this.coords.top},l))}createHoverLine(e,t,i){return new n.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((e=>{let{group:t,title:i,items:n,hoverLine:s}=e;i.on("mousedown",(()=>{const e=this.selectedGroup,o=this.content.find((t=>t.group===e));o&&(o.title.set({fill:this.colors.textColor}),o.items.set({opacity:0}),o.hoverLine.set({opacity:0}),i.set({fill:this.colors.titleColor}),n.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=t,this.canvas.requestRenderAll())}))}))}}function re(e,t,i,n,s){return new oe(e,t,{top:i,left:n},s).getCanvasObject()}function ae(e,t,i){return new n.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:d,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const le={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:16,textOffset:8},de={scaleX:16/512,scaleY:16/512,originY:"center"};function he(e,t,i){const s=new n.fabric.Text(e,{fontSize:le.textFontSize,lineHeight:le.textFontSize,fontFamily:d,fill:i.getCommonColor("text-misc"),originY:"center"}),o=[s];let r;switch(e){case"Merge":r=new n.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",de);break;case"UnionAll":r=new n.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",de);break;case"HashShuffle":r=new n.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",de);break;case"Map":r=new n.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",de);break;case"Broadcast":r=new n.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",de)}return r&&(r.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),s.set({left:22}),o.push(r)),new n.fabric.Group(o,Object.assign(Object.assign({},l),{hoverCursor:t?"pointer":"default"}))}class ce{constructor(e,t,i,n,s){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=s,this.data=ne()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+le.padding,new n.fabric.Rect({width:le.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:le.borderRadius,ry:le.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ae(this.data.id,this.isExpandable(),this.opts.colors),he(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=le.padding,n=this.expanded?le.expandedWidth:le.width,s=t.getScaledWidth();e.set({left:0,top:4,width:n-4}),t.set({left:n/2-s/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,n=i.getScaledWidth();let s,o;this.expanded?(this.stats=re(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+le.padding,(this.group.left||0)+le.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*le.padding,s=le.expandedWidth,o=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(s=le.width,o=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const r=function(e,t){const i=[];return t.forEachObject((n=>{i.push(n),t.removeWithUpdate(n),e.add(n)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:s,height:o,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:s-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-n/2}),r()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const ue={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:c,padding:12};class ge{constructor(e,t,i,s,o){this.nodeHeight=0,this.coords=t,this.opts=s,this.data=ne()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ue.padding,new n.fabric.Polygon([{x:ue.bevelSize,y:0},{x:ue.width-ue.bevelSize,y:0},{x:ue.width,y:ue.bevelSize},{x:ue.width,y:this.nodeHeight-ue.bevelSize},{x:ue.width-ue.bevelSize,y:this.nodeHeight},{x:ue.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-ue.bevelSize},{x:0,y:ue.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new n.fabric.Text(e.join("\n"),{fontSize:ue.titleFontSize,lineHeight:ue.titleLineHeight,left:0,top:26,fontFamily:d,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=ue.padding,i=e.getScaledWidth();e.set({left:ue.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const pe=40,me=40,fe=20;class _e{constructor(e,t,i,s,o){this.coords=t,this.opts=s,this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new n.fabric.Rect({width:pe,height:me,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:fe,ry:fe,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body],Object.assign({top:e,left:t},l))}}const ve={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,textOffset:8};class be{constructor(e,t,i,s,o){this.nodeHeight=0,this.coords=t,this.opts=s,this.data=ne()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ve.padding,new n.fabric.Rect({width:ve.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new n.fabric.Text(e.join("\n"),{fontSize:ve.textFontSize,lineHeight:ve.textLineHeight,left:0,top:26,fontFamily:d,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=ve.padding,i=e.getScaledWidth();e.set({left:ve.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const Ce={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,textOffset:8};class ye{constructor(e,t,i,s,o){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=o,this.data=ne()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+Ce.padding,new n.fabric.Rect({width:Ce.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:Ce.borderRadius,ry:Ce.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ae(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],s=this.isExpandable(),o=this.opts.colors,new n.fabric.Text(i.join("\n"),{fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:o.getCommonColor("text-primary"),hoverCursor:s?"pointer":"default"}));var i,s,o;const r=function(e,t){if(0===e.length)return new n.fabric.Group([],Object.assign({top:0,left:0},l));const i=new n.fabric.Text("Tables:",{fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),s=i.getScaledWidth()+2,o=Ce.width-2*Ce.padding-s,r=new n.fabric.Textbox(e.join("\n"),{left:s,width:o,fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new n.fabric.Group([i,r],Object.assign({top:0,left:0},l))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new n.fabric.Group([],Object.assign({top:0,left:0},l));const i=new n.fabric.Text("CTE:",{fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),s=i.getScaledWidth()+2,o=Ce.width-2*Ce.padding-s,r=new n.fabric.Textbox(e,{left:s,width:o,fontSize:Ce.textFontSize,lineHeight:Ce.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new n.fabric.Group([i,r],Object.assign({top:0,left:0},l))}(this.data.cte||"",this.opts.colors);return[e,t,r,a]}setShapeObjectsCoords(){const[e,t,i,n]=this.objects;let s=Ce.padding;const o=Ce.padding;e.set({left:0,top:4,width:(this.expanded?Ce.expandedWidth:Ce.width)-4}),t.set({left:o,top:s}),s+=t.getScaledHeight(),i.set({left:o,top:s+(0===i.size()?0:Ce.textOffset)}),s+=i.getScaledHeight(),n.set({left:o,top:s+(0===n.size()?0:Ce.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=Ce.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=re(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+Ce.padding,(this.group.left||0)+Ce.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*Ce.padding;const t=Ce.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function we(e,t,i,n,s){return function(e){const t=ne()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ce(e,t,i,n,s):function(e){const t=ne()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new be(e,t,i,n,s):function(e){const t=ne()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new _e(e,t,i,n,s):function(e){const t=ne()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new ge(e,t,i,n,s):new ye(e,t,i,n,s)}},74679:(e,t,i)=>{"use strict";i.d(t,{b:()=>R});var n=i(34706),s=i(2915),o=i(72616),r=i(38610),a=i(14561),l=i(24840),d=i(1713),h=i(79777);const c=n.createContext(null),u=()=>{const e=n.useContext(c);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return n.createElement(o.z,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(87578);const m=18,f=(0,p.Ge)("alert"),_=e=>{let{layout:t,view:i,children:s}=e;return n.createElement(c.Provider,{value:{layout:t,view:i}},s)};var v=i(3948),b=i(92921),C=i(29254),y=i(52232);const w=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 14Zm3.1-8.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"}));var S=i(22927),x=i(15268),L=i(78167);const k=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",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.216 2.216 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414Z"}));var D=i(83619);const N={danger:{filled:v.Z,outlined:b.Z},info:{filled:C.Z,outlined:y.Z},success:{filled:w,outlined:S.Z},warning:{filled:x.Z,outlined:L.Z},utility:{filled:k,outlined:D.Z},normal:null};var E=i(23795);var T=i(3581);const I=JSON.parse('{"label_close":"Close"}'),M=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),A=(0,T.e)({en:I,ru:M},"Alert"),R=e=>{const{theme:t="normal",view:i="filled",layout:c="vertical",message:u,className:g,corners:p,style:v,onClose:b,align:C,qa:y}=e;return n.createElement(_,{layout:c,view:i},n.createElement(r.Z,{style:v,className:f({corners:p},(0,d.W)({py:4,px:5},g)),theme:t,view:i,qa:y},n.createElement(h.k,{gap:"3",alignItems:C},"undefined"===typeof e.icon?n.createElement(R.Icon,{theme:t,view:i}):e.icon,n.createElement(h.k,{direction:"vertical"===c?"column":"row",gap:"5",grow:!0},n.createElement(h.k,{gap:"2",grow:!0,className:f("text-content")},n.createElement(h.k,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?n.createElement(R.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(R.Actions,{items:e.actions}):e.actions),b&&n.createElement(o.z,{view:"flat",className:f("close-btn"),onClick:b,extraProps:{"aria-label":A("label_close")}},n.createElement(a.J,{data:s.Z,size:m,className:(0,l.V)({color:"secondary"})})))))};R.Icon=e=>{let{className:t,theme:i,view:s="filled",size:o=m}=e;const r=N[i];if(!r)return null;let d;return"success"===i?d="positive":"normal"!==i&&(d=i),n.createElement("div",{className:f("icon",(0,l.V)({color:d},t))},n.createElement(a.J,{data:r[s],size:o}))},R.Title=e=>{let{text:t,className:i}=e;return n.createElement(E.x,{variant:"subheader-2",className:f("title",i)},t)},R.Actions=e=>{let{items:t,children:i,className:s}=e;const{layout:o}=u();return n.createElement(h.k,{className:f("actions",{minContent:"horizontal"===o},s),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===o?"center":"flex-start"},(null===t||void 0===t?void 0:t.map(((e,t)=>{let{handler:i,text:s}=e;return n.createElement(g,{key:t,onClick:i},s)})))||i)},R.Action=g},38610:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(23337),s=i(34706),o=i(75813),r=i(22396);const a=(0,i(87578).Ge)("card"),l=s.forwardRef((function(e,t){const{type:i="container",theme:l,view:d,size:h="m",children:c,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,n._T)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,b=("action"===i||_)&&Boolean(g)&&!p,C=v?"normal":void 0,y=v||_?"outlined":void 0,w=b?g:void 0,{onKeyDown:S}=(0,o.b)(g);return s.createElement(r.x,Object.assign({ref:t,role:b?"button":void 0,className:a({theme:l||C,view:d||y,type:i,selected:m,size:h,disabled:p,clickable:b},u),onClick:w,onKeyDown:b?S:void 0,tabIndex:b?0:void 0},f),c)}))},46640:(e,t,i)=>{"use strict";i.d(t,{y:()=>o});var n=i(34706);const s=(0,i(87578).Ge)("spin"),o=n.forwardRef((function(e,t){const{size:i="m",style:o,className:r,qa:a}=e;return n.createElement("div",{ref:t,style:o,className:s({size:i},r),"data-qa":a},n.createElement("div",{className:s("inner")}))}))},81187:(e,t,i)=>{"use strict";i.d(t,{u:()=>h});var n=i(34706),s=i(15178),o=i(95868),r=i(24874),a=i(23795);const l=(0,i(87578).Ge)("tooltip"),d=["bottom","top"],h=e=>{const{children:t,content:i,disabled:h,placement:c=d,qa:u,id:g,className:p,style:m,disablePortal:f,contentClassName:_,openDelay:v=1e3,closeDelay:b}=e,[C,y]=n.useState(null),w=(0,o.p)(C,{openDelay:v,closeDelay:b,preventTriggerOnFocus:!0}),S=n.Children.only(t),x=S.ref,L=(0,s.c)(y,x);return n.createElement(n.Fragment,null,n.cloneElement(S,{ref:L}),C?n.createElement(r.G,{id:g,role:"tooltip",className:l(null,p),style:m,open:w&&!h,placement:c,anchorRef:{current:C},disablePortal:f,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:u},n.createElement("div",{className:l("content",_)},n.createElement(a.x,{variant:"body-short",color:"complementary"},i))):null)}},57857:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,n=0,s="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)s[n]=e[n];for(n=0;256!=n;++n)for(i=e[n],t=256+n;t<4096;t+=256)i=s[t]=i>>>8^e[255&i];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!==typeof Int32Array?s.subarray(256*n,256*n+256):s.slice(256*n,256*n+256);return o}(t),n=i[0],s=i[1],o=i[2],r=i[3],a=i[4],l=i[5],d=i[6],h=i[7],c=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var n=-1^i,s=0,o=e.length;s<o;)n=n>>>8^t[255&(n^e.charCodeAt(s++))];return~n},e.buf=function(e,i){for(var v=-1^i,b=e.length-15,C=0;C<b;)v=_[e[C++]^255&v]^f[e[C++]^v>>8&255]^m[e[C++]^v>>16&255]^p[e[C++]^v>>>24]^g[e[C++]]^u[e[C++]]^c[e[C++]]^h[e[C++]]^d[e[C++]]^l[e[C++]]^a[e[C++]]^r[e[C++]]^o[e[C++]]^s[e[C++]]^n[e[C++]]^t[e[C++]];for(b+=15;C<b;)v=v>>>8^t[255&(v^e[C++])];return~v},e.str=function(e,i){for(var n=-1^i,s=0,o=e.length,r=0,a=0;s<o;)(r=e.charCodeAt(s++))<128?n=n>>>8^t[255&(n^r)]:r<2048?n=(n=n>>>8^t[255&(n^(192|r>>6&31))])>>>8^t[255&(n^(128|63&r))]:r>=55296&&r<57344?(r=64+(1023&r),a=1023&e.charCodeAt(s++),n=(n=(n=(n=n>>>8^t[255&(n^(240|r>>8&7))])>>>8^t[255&(n^(128|r>>2&63))])>>>8^t[255&(n^(128|a>>6&15|(3&r)<<4))])>>>8^t[255&(n^(128|63&a))]):n=(n=(n=n>>>8^t[255&(n^(224|r>>12&15))])>>>8^t[255&(n^(128|r>>6&63))])>>>8^t[255&(n^(128|63&r))];return~n}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},37547:(e,t,i)=>{var n,s=s||{version:"5.3.0"};if(t.fabric=s,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?s.document=document:s.document=document.implementation.createHTMLDocument(""),s.window=window;else{var o=new(i(24960).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;s.document=o.document,s.jsdomImplForWrapper=i(26759).implForWrapper,s.nodeCanvas=i(56272).Canvas,s.window=o,DOMParser=s.window.DOMParser}function r(e,t){var i=e.canvas,n=t.targetCanvas,s=n.getContext("2d");s.translate(0,n.height),s.scale(1,-1);var o=i.height-n.height;s.drawImage(i,0,o,n.width,n.height,0,0,n.width,n.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),n=t.destinationWidth,s=t.destinationHeight,o=n*s*4,r=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);e.readPixels(0,0,n,s,e.RGBA,e.UNSIGNED_BYTE,r);var l=new ImageData(a,n,s);i.putImageData(l,0,0)}s.isTouchSupported="ontouchstart"in s.window||"ontouchstart"in s.document||s.window&&s.window.navigator&&s.window.navigator.maxTouchPoints>0,s.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,s.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],s.DPI=96,s.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",s.commaWsp="(?:\\s+,?\\s*|,\\s*)",s.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,s.reNonWord=/[ \n\.,;!\?\-]/,s.fontPaths={},s.iMatrix=[1,0,0,1,0,0],s.svgNS="http://www.w3.org/2000/svg",s.perfLimitSizeTotal=2097152,s.maxCacheSideLimit=4096,s.minCacheSideLimit=256,s.charWidthsCache={},s.textureSize=2048,s.disableStyleCopyPaste=!1,s.enableGLFiltering=!0,s.devicePixelRatio=s.window.devicePixelRatio||s.window.webkitDevicePixelRatio||s.window.mozDevicePixelRatio||1,s.browserShadowBlurConstant=1,s.arcToSegmentsCache={},s.boundsOfCurveCache={},s.cachesBoundsOfCurve=!0,s.forceGLPutImageData=!1,s.initFilterBackend=function(){return s.enableGLFiltering&&s.isWebglSupported&&s.isWebglSupported(s.textureSize)?(console.log("max texture size: "+s.maxTextureSize),new s.WebglFilterBackend({tileSize:s.textureSize})):s.Canvas2dFilterBackend?new s.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=s),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:s.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}s.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var n=0,s=i.length;n<s;n++)i[n]&&i[n].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var n in e)t.call(this,n,e[n]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var n in t)e.call(this,n,t[n]);else e.call(this,t,i);return this}}}(),s.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var n=this._objects;return i?n[t]=e:n.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,n=0,s=arguments.length;n<s;n++)-1!==(e=t.indexOf(arguments[n]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[n]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),n=0,s=i.length;n<s;n++)e.call(t,i[n],n,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},s.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof s.Gradient||this.set(t,new s.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof s.Pattern?i&&i():this.set(t,new s.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,n=Math.pow,o=Math.PI/180,r=Math.PI/2;s.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/r){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/r){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*o},radiansToDegrees:function(e){return e/o},rotatePoint:function(e,t,i){var n=new s.Point(e.x-t.x,e.y-t.y),o=s.util.rotateVector(n,i);return new s.Point(o.x,o.y).addEquals(t)},rotateVector:function(e,t){var i=s.util.sin(t),n=s.util.cos(t);return{x:e.x*n-e.y*i,y:e.x*i+e.y*n}},createVector:function(e,t){return new s.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new s.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var n=s.util.createVector(e,t),o=s.util.createVector(e,i),r=s.util.calcAngleBetweenVectors(n,o),a=r*(0===s.util.calcAngleBetweenVectors(s.util.rotateVector(n,r),o)?1:-1)/2;return{vector:s.util.getHatVector(s.util.rotateVector(n,a)),angle:r}},projectStrokeOnPoints:function(e,t,i){var n=[],o=t.strokeWidth/2,r=t.strokeUniform?new s.Point(1/t.scaleX,1/t.scaleY):new s.Point(1,1),a=function(e){var t=o/Math.hypot(e.x,e.y);return new s.Point(e.x*t*r.x,e.y*t*r.y)};return e.length<=1||e.forEach((function(l,d){var h,c,u=new s.Point(l.x,l.y);0===d?(c=e[d+1],h=i?a(s.util.createVector(c,u)).addEquals(u):e[e.length-1]):d===e.length-1?(h=e[d-1],c=i?a(s.util.createVector(h,u)).addEquals(u):e[0]):(h=e[d-1],c=e[d+1]);var g,p,m=s.util.getBisector(u,h,c),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-o/Math.sin(_/2),p=new s.Point(f.x*g*r.x,f.y*g*r.y),Math.hypot(p.x,p.y)/o<=t.strokeMiterLimit))return n.push(u.add(p)),void n.push(u.subtract(p));g=-o*Math.SQRT2,p=new s.Point(f.x*g*r.x,f.y*g*r.y),n.push(u.add(p)),n.push(u.subtract(p))})),n},transformPoint:function(e,t,i){return i?new s.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new s.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=s.util.transformPoint(e[i],t);var n=[e[0].x,e[1].x,e[2].x,e[3].x],o=s.util.array.min(n),r=s.util.array.max(n)-o,a=[e[0].y,e[1].y,e[2].y,e[3].y],l=s.util.array.min(a);return{left:o,top:l,width:r,height:s.util.array.max(a)-l}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],n=s.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-n.x,i[5]=-n.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),n=parseFloat(e);switch(t||(t=s.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return n*s.DPI/25.4;case"cm":return n*s.DPI/2.54;case"in":return n*s.DPI;case"pt":return n*s.DPI/72;case"pc":return n*s.DPI/72*12;case"em":return n*t;default:return n}},falseFunction:function(){return!1},getKlass:function(e,t){return e=s.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),s.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return s;var i,n=t.split("."),o=n.length,r=e||s.window;for(i=0;i<o;++i)r=r[n[i]];return r},loadImage:function(e,t,i,n){if(e){var o=s.util.createImage(),r=function(){t&&t.call(i,o,!1),o=o.onload=o.onerror=null};o.onload=r,o.onerror=function(){s.log("Error loading "+o.src),t&&t.call(i,null,!0),o=o.onload=o.onerror=null},0!==e.indexOf("data")&&void 0!==n&&null!==n&&(o.crossOrigin=n),"data:image/svg"===e.substring(0,14)&&(o.onload=null,s.util.loadImageInDom(o,r)),o.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=s.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),s.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,n){var o=[],r=0,a=(e=e||[]).length;function l(){++r===a&&t&&t(o.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?s.util.getKlass(e.type,i).fromObject(e,(function(i,s){s||(o[t]=i),n&&n(e,i,s),l()})):l()})):t&&t(o)},enlivenObjectEnlivables:function(e,t,i){var n=s.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));s.util.enlivenObjects(n.map((function(t){return e[t]})),(function(e){var s={};n.forEach((function(i,n){s[i]=e[n],t&&(t[i]=e[n])})),i&&i(s)}))},enlivenPatterns:function(e,t){function i(){++o===r&&t&&t(n)}var n=[],o=0,r=(e=e||[]).length;r?e.forEach((function(e,t){e&&e.source?new s.Pattern(e,(function(e){n[t]=e,i()})):(n[t]=e,i())})):t&&t(n)},groupSVGElements:function(e,t,i){var n;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),n=new s.Group(e,t),"undefined"!==typeof i&&(n.sourcePath=i),n)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var n=0,s=i.length;n<s;n++)i[n]in e&&(t[i[n]]=e[i[n]])},createCanvasElement:function(){return s.document.createElement("canvas")},copyCanvasElement:function(e){var t=s.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return s.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var s=i(e[1],e[0]),r=n(e[0],2)+n(e[1],2),a=t(r),l=(e[0]*e[3]-e[2]*e[1])/a,d=i(e[0]*e[2]+e[1]*e[3],r);return{angle:s/o,scaleX:a,scaleY:l,skewX:d/o,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return s.iMatrix.concat();var t=s.util.degreesToRadians(e.angle),i=s.util.cos(t),n=s.util.sin(t);return[i,n,-n,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,n=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],o=s.util.multiplyTransformMatrices,r=s.util.degreesToRadians;return e.skewX&&(n=o(n,[1,0,Math.tan(r(e.skewX)),1],!0)),e.skewY&&(n=o(n,[1,Math.tan(r(e.skewY)),0,1],!0)),n},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=s.util.multiplyTransformMatrices;return e.angle&&(t=i(t,s.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,s.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,n){n>0&&(t>n?t-=n:t=0,i>n?i-=n:i=0);var s,o=!0,r=e.getImageData(t,i,2*n||1,2*n||1),a=r.data.length;for(s=3;s<a&&!1!==(o=r.data[s]<=0);s+=4);return r=null,o},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",n=e.split(" ");return n&&n.length&&("meet"!==(i=n.pop())&&"slice"!==i?(t=i,i="meet"):n.length&&(t=n.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?s.charWidthsCache[e]&&delete s.charWidthsCache[e]:s.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),n=Math.floor(t/i);return{x:Math.floor(i),y:n}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return s.util.toFixed(e,s.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=s.util.invertTransform(t),n=s.util.multiplyTransformMatrices(i,e.calcOwnMatrix());s.util.applyTransformToObject(e,n)},addTransformToObject:function(e,t){s.util.applyTransformToObject(e,s.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=s.util.qrDecompose(t),n=new s.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(n,"center","center")},sizeAfterTransform:function(e,t,i){var n=e/2,o=t/2,r=[{x:-n,y:-o},{x:n,y:-o},{x:-n,y:o},{x:n,y:o}],a=s.util.calcDimensionsMatrix(i),l=s.util.makeBoundingBoxFromPoints(r,a);return{x:l.width,y:l.height}},mergeClipPaths:function(e,t){var i=e,n=t;i.inverted&&!n.inverted&&(i=t,n=e),s.util.applyTransformToObject(n,s.util.multiplyTransformMatrices(s.util.invertTransform(i.calcTransformMatrix()),n.calcTransformMatrix()));var o=i.inverted&&n.inverted;return o&&(i.inverted=n.inverted=!1),new s.Group([i],{clipPath:n,inverted:o})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=s.util.object.clone(e,!0);for(var i=t.split("\n"),n=-1,o={},r=[],a=0;a<i.length;a++)if(e[a])for(var l=0;l<i[a].length;l++){n++;var d=e[a][l];if(d&&Object.keys(d).length>0)s.util.hasStyleChanged(o,d,!0)?r.push({start:n,end:n+1,style:d}):r[r.length-1].end++;o=d||{}}else n+=i[a].length;return r},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),n=-1,s=0,o={},r=0;r<i.length;r++)for(var a=0;a<i[r].length;a++)n++,e[s]&&e[s].start<=n&&n<e[s].end&&(o[r]=o[r]||{},o[r][a]=Object.assign({},e[s].style),n===e[s].end-1&&s++);return o}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function n(e,t,i,n,o,r,a,l,d,h,c){var u=s.util.cos(e),g=s.util.sin(e),p=s.util.cos(t),m=s.util.sin(t),f=i*o*p-n*r*m+a,_=n*o*p+i*r*m+l;return["C",h+d*(-i*o*g-n*r*u),c+d*(-n*o*g+i*r*u),f+d*(i*o*m+n*r*p),_+d*(n*o*m-i*r*p),f,_]}function o(e,t,i,n){var s=Math.atan2(t,e),o=Math.atan2(n,i);return o>=s?o-s:2*Math.PI-(s-o)}function r(e,t,i){for(var r=i[1],a=i[2],l=i[3],d=i[4],h=i[5],c=function(e,t,i,r,a,l,d){var h=Math.PI,c=d*h/180,u=s.util.sin(c),g=s.util.cos(c),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,b=(r=Math.abs(r))*r,C=_*_,y=f*f,w=v*b-v*C-b*y,S=0;if(w<0){var x=Math.sqrt(1-w/(v*b));i*=x,r*=x}else S=(a===l?-1:1)*Math.sqrt(w/(v*C+b*y));var L=S*i*_/r,k=-S*r*f/i,D=g*L-u*k+.5*e,N=u*L+g*k+.5*t,E=o(1,0,(f-L)/i,(_-k)/r),T=o((f-L)/i,(_-k)/r,(-f-L)/i,(-_-k)/r);0===l&&T>0?T-=2*h:1===l&&T<0&&(T+=2*h);for(var I=Math.ceil(Math.abs(T/h*2)),M=[],A=T/I,R=8/3*Math.sin(A/4)*Math.sin(A/4)/Math.sin(A/2),O=E+A,P=0;P<I;P++)M[P]=n(E,O,g,u,i,r,D,N,R,p,m),p=M[P][5],m=M[P][6],E=O,O+=A;return M}(i[6]-e,i[7]-t,r,a,d,h,l),u=0,g=c.length;u<g;u++)c[u][1]+=e,c[u][2]+=t,c[u][3]+=e,c[u][4]+=t,c[u][5]+=e,c[u][6]+=t;return c}function a(e,t,i,n){return Math.sqrt((i-e)*(i-e)+(n-t)*(n-t))}function l(e,t,i,n,s,o,r,a){return function(l){var d,h=(d=l)*d*d,c=function(e){return 3*e*e*(1-e)}(l),u=function(e){return 3*e*(1-e)*(1-e)}(l),g=function(e){return(1-e)*(1-e)*(1-e)}(l);return{x:r*h+s*c+i*u+e*g,y:a*h+o*c+n*u+t*g}}}function d(e,t,i,n,s,o,r,a){return function(l){var d=1-l,h=3*d*d*(i-e)+6*d*l*(s-i)+3*l*l*(r-s),c=3*d*d*(n-t)+6*d*l*(o-n)+3*l*l*(a-o);return Math.atan2(c,h)}}function h(e,t,i,n,s,o){return function(r){var a,l=(a=r)*a,d=function(e){return 2*e*(1-e)}(r),h=function(e){return(1-e)*(1-e)}(r);return{x:s*l+i*d+e*h,y:o*l+n*d+t*h}}}function c(e,t,i,n,s,o){return function(r){var a=1-r,l=2*a*(i-e)+2*r*(s-i),d=2*a*(n-t)+2*r*(o-n);return Math.atan2(d,l)}}function u(e,t,i){var n,s,o={x:t,y:i},r=0;for(s=1;s<=100;s+=1)n=e(s/100),r+=a(o.x,o.y,n.x,n.y),o=n;return r}function g(e,t){for(var i,n,s,o=0,r=0,l=e.iterator,d={x:e.x,y:e.y},h=.01,c=e.angleFinder;r<t&&h>1e-4;)i=l(o),s=o,(n=a(d.x,d.y,i.x,i.y))+r>t?(o-=h,h/=2):(d=i,o+=h,r+=n);return i.angle=c(s),i}function p(e){for(var t,i,n,s,o=0,r=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<r;v++){switch(n={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":n.length=0,m=g=t[1],f=p=t[2];break;case"L":n.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s=d(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n.iterator=i,n.angleFinder=s,n.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),s=c(g,p,t[1],t[2],t[3],t[4]),n.iterator=i,n.angleFinder=s,n.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":n.destX=m,n.destY=f,n.length=a(g,p,m,f),g=m,p=f}o+=n.length,_.push(n)}return _.push({length:o,x:g,y:p}),_}s.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},s.util.parsePath=function(e){var n,o,r,a,l,d=[],h=[],c=s.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+s.commaWsp,p="([01])"+s.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return d;for(var f,_=0,v=(l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(n=l[_]).slice(1).trim(),h.length=0;var b=n.charAt(0);if(f=[b],"a"===b.toLowerCase())for(var C;C=m.exec(a);)for(var y=1;y<C.length;y++)h.push(C[y]);else for(;r=c.exec(a);)h.push(r[0]);y=0;for(var w=h.length;y<w;y++)o=parseFloat(h[y]),isNaN(o)||f.push(o);var S=t[b.toLowerCase()],x=i[b]||b;if(f.length-1>S)for(var L=1,k=f.length;L<k;L+=S)d.push([b].concat(f.slice(L,L+S))),b=x;else d.push(f)}return d},s.util.makePathSimpler=function(e){var t,i,n,s,o,a,l=0,d=0,h=e.length,c=0,u=0,g=[];for(i=0;i<h;++i){switch(n=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=l,t[2]+=d;case"L":l=t[1],d=t[2];break;case"h":t[1]+=l;case"H":t[0]="L",t[2]=d,l=t[1];break;case"v":t[1]+=d;case"V":t[0]="L",d=t[1],t[1]=l,t[2]=d;break;case"m":t[0]="M",t[1]+=l,t[2]+=d;case"M":l=t[1],d=t[2],c=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d,t[5]+=l,t[6]+=d;case"C":o=t[3],a=t[4],l=t[5],d=t[6];break;case"s":t[0]="S",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d;case"S":"C"===s?(o=2*l-o,a=2*d-a):(o=l,a=d),l=t[3],d=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=o,t[2]=a,o=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d;case"Q":o=t[1],a=t[2],l=t[3],d=t[4];break;case"t":t[0]="T",t[1]+=l,t[2]+=d;case"T":"Q"===s?(o=2*l-o,a=2*d-a):(o=l,a=d),t[0]="Q",l=t[1],d=t[2],t[1]=o,t[2]=a,t[3]=l,t[4]=d;break;case"a":t[0]="A",t[6]+=l,t[7]+=d;case"A":n=!0,g=g.concat(r(l,d,t)),l=t[6],d=t[7];break;case"z":case"Z":l=c,d=u}n||g.push(t),s=t[0]}return g},s.util.getSmoothPathFromPoints=function(e,t){var i,n=[],o=new s.Point(e[0].x,e[0].y),r=new s.Point(e[1].x,e[1].y),a=e.length,l=1,d=0,h=a>2;for(t=t||0,h&&(l=e[2].x<r.x?-1:e[2].x===r.x?0:1,d=e[2].y<r.y?-1:e[2].y===r.y?0:1),n.push(["M",o.x-l*t,o.y-d*t]),i=1;i<a;i++){if(!o.eq(r)){var c=o.midPointFrom(r);n.push(["Q",o.x,o.y,c.x,c.y])}o=e[i],i+1<e.length&&(r=e[i+1])}return h&&(l=o.x>e[i-2].x?1:o.x===e[i-2].x?0:-1,d=o.y>e[i-2].y?1:o.y===e[i-2].y?0:-1),n.push(["L",o.x+l*t,o.y+d*t]),n},s.util.getPathSegmentsInfo=p,s.util.getBoundsOfCurve=function(t,i,n,o,r,a,l,d){var h;if(s.cachesBoundsOfCurve&&(h=e.call(arguments),s.boundsOfCurveCache[h]))return s.boundsOfCurveCache[h];var c,u,g,p,m,f,_,v,b=Math.sqrt,C=Math.min,y=Math.max,w=Math.abs,S=[],x=[[],[]];u=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*l,g=3*n-3*t;for(var L=0;L<2;++L)if(L>0&&(u=6*i-12*o+6*a,c=-3*i+9*o-9*a+3*d,g=3*o-3*i),w(c)<1e-12){if(w(u)<1e-12)continue;0<(p=-g/u)&&p<1&&S.push(p)}else(_=u*u-4*g*c)<0||(0<(m=(-u+(v=b(_)))/(2*c))&&m<1&&S.push(m),0<(f=(-u-v)/(2*c))&&f<1&&S.push(f));for(var k,D,N,E=S.length,T=E;E--;)k=(N=1-(p=S[E]))*N*N*t+3*N*N*p*n+3*N*p*p*r+p*p*p*l,x[0][E]=k,D=N*N*N*i+3*N*N*p*o+3*N*p*p*a+p*p*p*d,x[1][E]=D;x[0][T]=t,x[1][T]=i,x[0][T+1]=l,x[1][T+1]=d;var I=[{x:C.apply(null,x[0]),y:C.apply(null,x[1])},{x:y.apply(null,x[0]),y:y.apply(null,x[1])}];return s.cachesBoundsOfCurve&&(s.boundsOfCurveCache[h]=I),I},s.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var n=0;t-i[n].length>0&&n<i.length-2;)t-=i[n].length,n++;var o,r=i[n],a=t/r.length,l=r.command,d=e[n];switch(l){case"M":return{x:r.x,y:r.y,angle:0};case"Z":case"z":return(o=new s.Point(r.x,r.y).lerp(new s.Point(r.destX,r.destY),a)).angle=Math.atan2(r.destY-r.y,r.destX-r.x),o;case"L":return(o=new s.Point(r.x,r.y).lerp(new s.Point(d[1],d[2]),a)).angle=Math.atan2(d[2]-r.y,d[1]-r.x),o;case"C":case"Q":return g(r,t)}},s.util.transformPath=function(e,t,i){return i&&(t=s.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),n={},o=1;o<e.length-1;o+=2)n.x=e[o],n.y=e[o+1],n=s.util.transformPoint(n,t),i[o]=n.x,i[o+1]=n.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var n=e.length-1,s=t?e[n][t]:e[n];if(t)for(;n--;)i(e[n][t],s)&&(s=e[n][t]);else for(;n--;)i(e[n],s)&&(s=e[n]);return s}}s.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var n=e.call(arguments,2),s=[],o=0,r=t.length;o<r;o++)s[o]=n.length?t[o][i].apply(t[o],n):t[o][i].call(t[o]);return s},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,n){if(n)if(!s.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var o=0,r=i.length;o<r;o++)t[o]=e({},i[o],n)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],n));else t=i;else for(var a in i)t[a]=i[a];return t}s.util.object={extend:e,clone:function(t,i){return e({},t,i)}},s.util.object.extend(s.util,s.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var n=e.charCodeAt(t+1);if(56320>n||n>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var s=e.charCodeAt(t-1);if(55296>s||s>56319)throw"Low surrogate without preceding high surrogate";return!1}s.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,n=0,s=[];for(n=0;n<t.length;n++)!1!==(i=e(t,n))&&s.push(i);return s}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),n=function(e,t,n){for(var s in t)s in e.prototype&&"function"===typeof e.prototype[s]&&(t[s]+"").indexOf("callSuper")>-1?e.prototype[s]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=n;var s=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return s}}(s):e.prototype[s]=t[s],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function o(){}function r(t){for(var i=null,n=this;n.constructor.superclass;){var s=n.constructor.superclass.prototype[t];if(n[t]!==s){i=s;break}n=n.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}s.util.createClass=function(){var i=null,s=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof s[0]&&(i=s.shift()),a.superclass=i,a.subclasses=[],i&&(o.prototype=i.prototype,a.prototype=new o,i.subclasses.push(a));for(var l=0,d=s.length;l<d;l++)n(a,s[l],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=r,a}}(),function(){var e=!!s.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];s.util.addListener=function(t,i,n,s){t&&t.addEventListener(i,n,!e&&s)},s.util.removeListener=function(t,i,n,s){t&&t.removeEventListener(i,n,!e&&s)},s.util.getPointer=function(e){var t=e.target,i=s.util.getScrollLeftTop(t),n=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:n.clientX+i.left,y:n.clientY+i.top}},s.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=s.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,n=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,o=function(e){return e};t?o=function(e,t){return e.style.opacity=t,e}:i&&(o=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),n.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(n,t)):i.filter+=" alpha(opacity="+100*t+")",e}),s.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?o(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var n in t)if("opacity"===n)o(e,t[n]);else{var s="float"===n||"cssFloat"===n?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":n;i.setProperty(s,t[n])}return e}}(),function(){var e=Array.prototype.slice;var t,i,n=function(t){return e.call(t,0)};try{t=n(s.document.childNodes)instanceof Array}catch(a){}function o(e,t){var i=s.document.createElement(e);for(var n in t)"class"===n?i.className=t[n]:"for"===n?i.htmlFor=t[n]:i.setAttribute(n,t[n]);return i}function r(e){for(var t=0,i=0,n=s.document.documentElement,o=s.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===s.document?(t=o.scrollLeft||n.scrollLeft||0,i=o.scrollTop||n.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(n=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=s.document.defaultView&&s.document.defaultView.getComputedStyle?function(e,t){var i=s.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=s.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";s.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=s.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},s.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),s.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},s.util.getById=function(e){return"string"===typeof e?s.document.getElementById(e):e},s.util.toArray=n,s.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},s.util.makeElement=o,s.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=o(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},s.util.getScrollLeftTop=r,s.util.getElementOffset=function(e){var t,n,s=e&&e.ownerDocument,o={left:0,top:0},a={left:0,top:0},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!s)return a;for(var d in l)a[l[d]]+=parseInt(i(e,d),10)||0;return t=s.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=r(e),{left:o.left+n.left-(t.clientLeft||0)+a.left,top:o.top+n.top-(t.clientTop||0)+a.top}},s.util.getNodeCanvas=function(e){var t=s.jsdomImplForWrapper(e);return t._canvas||t._image},s.util.cleanUpJsdomNode=function(e){if(s.isLikelyNode){var t=s.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}s.util.request=function(t,i){i||(i={});var n=i.method?i.method.toUpperCase():"GET",o=i.onComplete||function(){},r=new s.window.XMLHttpRequest,a=i.body||i.parameters;return r.onreadystatechange=function(){4===r.readyState&&(o(r),r.onreadystatechange=e)},"GET"===n&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),r.open(n,t,!0),"POST"!==n&&"PUT"!==n||r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(a),r}}(),s.log=console.log,s.warn=console.warn,function(){var e=s.util.object.extend,t=s.util.object.clone,i=[];function n(){return!1}function o(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t}s.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var r=s.window.requestAnimationFrame||s.window.webkitRequestAnimationFrame||s.window.mozRequestAnimationFrame||s.window.oRequestAnimationFrame||s.window.msRequestAnimationFrame||function(e){return s.window.setTimeout(e,1e3/60)},a=s.window.cancelAnimationFrame||s.window.clearTimeout;function l(){return r.apply(s.window,arguments)}s.util.animate=function(i){i||(i={});var r,a=!1,d=function(){var e=s.runningAnimations.indexOf(r);return e>-1&&s.runningAnimations.splice(e,1)[0]};return r=e(t(i),{cancel:function(){return a=!0,d()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),s.runningAnimations.push(r),l((function(e){var t,s=e||+new Date,h=i.duration||500,c=s+h,u=i.onChange||n,g=i.abort||n,p=i.onComplete||n,m=i.easing||o,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,b=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var n=(t=i||+new Date)>c?h:t-s,o=n/h,C=f?_.map((function(e,t){return m(n,_[t],b[t],h)})):m(n,_,b,h),y=f?Math.abs((C[0]-_[0])/b[0]):Math.abs((C-_)/b);if(r.currentValue=f?C.slice():C,r.completionRate=y,r.durationRate=o,!a){if(!g(C,y,o))return t>c?(r.currentValue=f?v.slice():v,r.completionRate=1,r.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void d()):(u(C,y,o),void l(e));d()}}(s)})),r.cancel},s.util.requestAnimFrame=l,s.util.cancelAnimFrame=function(){return a.apply(s.window,arguments)},s.runningAnimations=i}(),function(){function e(e,t,i){var n="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return n+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),n+=")"}s.util.animateColor=function(t,i,n,o){var r=new s.Color(t).getSource(),a=new s.Color(i).getSource(),l=o.onComplete,d=o.onChange;return o=o||{},s.util.animate(s.util.object.extend(o,{duration:n||500,startValue:r,endValue:a,byValue:a,easing:function(t,i,n,s){return e(i,n,o.colorEasing?o.colorEasing(t,s):1-Math.cos(t/s*(Math.PI/2)))},onComplete:function(t,i,n){if(l)return l(e(a,a,0),i,n)},onChange:function(t,i,n){if(d){if(Array.isArray(t))return d(e(t,t,0),i,n);d(t,i,n)}}}))}}(),function(){function e(e,t,i,n){return e<Math.abs(t)?(e=t,n=i/4):n=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:n}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,s){return i-n(s-e,0,i,s)+t}function n(e,t,i,n){return(e/=n)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}s.util.ease={easeInQuad:function(e,t,i,n){return i*(e/=n)*e+t},easeOutQuad:function(e,t,i,n){return-i*(e/=n)*(e-2)+t},easeInOutQuad:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,n){return i*(e/=n)*e*e+t},easeOutCubic:function(e,t,i,n){return i*((e=e/n-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,n){return i*(e/=n)*e*e*e+t},easeOutQuart:function(e,t,i,n){return-i*((e=e/n-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,n){return i*(e/=n)*e*e*e*e+t},easeOutQuint:function(e,t,i,n){return i*((e=e/n-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,n){return i*Math.sin(e/n*(Math.PI/2))+t},easeInOutSine:function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t},easeInExpo:function(e,t,i,n){return 0===e?t:i*Math.pow(2,10*(e/n-1))+t},easeOutExpo:function(e,t,i,n){return e===n?t+i:i*(1-Math.pow(2,-10*e/n))+t},easeInOutExpo:function(e,t,i,n){return 0===e?t:e===n?t+i:(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,n){return-i*(Math.sqrt(1-(e/=n)*e)-1)+t},easeOutCirc:function(e,t,i,n){return i*Math.sqrt(1-(e=e/n-1)*e)+t},easeInOutCirc:function(e,t,i,n){return(e/=n/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,n,s,o){var r=0;return 0===i?n:1===(i/=o)?n+s:(r||(r=.3*o),-t(e(s,s,r,1.70158),i,o)+n)},easeOutElastic:function(t,i,n,s){var o=0;if(0===t)return i;if(1===(t/=s))return i+n;o||(o=.3*s);var r=e(n,n,o,1.70158);return r.a*Math.pow(2,-10*t)*Math.sin((t*s-r.s)*(2*Math.PI)/r.p)+r.c+i},easeInOutElastic:function(i,n,s,o){var r=0;if(0===i)return n;if(2===(i/=o/2))return n+s;r||(r=o*(.3*1.5));var a=e(s,s,r,1.70158);return i<1?-.5*t(a,i,o)+n:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+n},easeInBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),i*(e/=n)*e*((s+1)*e-s)+t},easeOutBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),i*((e=e/n-1)*e*((s+1)*e+s)+1)+t},easeInOutBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),(e/=n/2)<1?i/2*(e*e*((1+(s*=1.525))*e-s))+t:i/2*((e-=2)*e*((1+(s*=1.525))*e+s)+2)+t},easeInBounce:i,easeOutBounce:n,easeInOutBounce:function(e,t,s,o){return e<o/2?.5*i(2*e,0,s,o)+t:.5*n(2*e-o,0,s,o)+.5*s+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s=t.util.toFixed,o=t.util.parseUnit,r=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},l={stroke:"strokeOpacity",fill:"fillOpacity"},d="font-size",h="clip-path";function c(e){return e in a?a[e]:e}function u(e,i,n,s){var a,l=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=n&&n.transformMatrix?r(n.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,n&&!1===n.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),n&&"undefined"!==typeof n.opacity&&(i*=n.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=o(i,s)/s*1e3;else if("paintFirst"===e){var d=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(d>-1&&h>-1&&h<d||-1===d&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=l?i.map(o):o(i,s)}}else i="";return!l&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,n,s,o,r=[];for(s=0,o=t.length;s<o;s++)i=t[s],n=e.getElementsByTagName(i),r=r.concat(Array.prototype.slice.call(n));return r}function m(e,t){var i,n=!0;return(i=f(e,t.pop()))&&t.length&&(n=function(e,t){var i,n=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)n&&(i=t.pop()),n=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&n&&0===t.length}function f(e,t){var i,n,s=e.nodeName,o=e.getAttribute("class"),r=e.getAttribute("id");if(i=new RegExp("^"+s,"i"),t=t.replace(i,""),r&&t.length&&(i=new RegExp("#"+r+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),o&&t.length)for(n=(o=o.split(" ")).length;n--;)i=new RegExp("\\."+o[n]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var n,s,o,r=e.getElementsByTagName("*");for(s=0,o=r.length;s<o;s++)if(t===(n=r[s]).getAttribute("id"))return n}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,n){e[n]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,n=t.reNum,s=t.commaWsp,o="(?:"+("(?:(matrix)\\s*\\(\\s*("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+n+")(?:"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+n+")(?:"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+n+")(?:"+s+"("+n+")"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+n+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+n+")\\s*\\))")+")",r=new RegExp("^\\s*(?:"+("(?:"+o+"(?:"+s+"*"+o+")*)")+"?)\\s*$"),a=new RegExp(o,"g");return function(n){var s=i.concat(),l=[];if(!n||n&&!r.test(n))return s;n.replace(a,(function(n){var r=new RegExp(o).exec(n).filter((function(e){return!!e})),a=r[1],d=r.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(s,d);break;case"rotate":d[0]=t.util.degreesToRadians(d[0]),function(e,i){var n=t.util.cos(i[0]),s=t.util.sin(i[0]),o=0,r=0;3===i.length&&(o=i[1],r=i[2]),e[0]=n,e[1]=s,e[2]=-s,e[3]=n,e[4]=o-(n*o-s*r),e[5]=r-(s*o+n*r)}(s,d);break;case"scale":!function(e,t){var i=t[0],n=2===t.length?t[1]:t[0];e[0]=i,e[3]=n}(s,d);break;case"skewX":e(s,d,2);break;case"skewY":e(s,d,1);break;case"matrix":s=d}l.push(s.concat()),s=i.concat()}));for(var d=l[0];l.length>1;)l.shift(),d=t.util.multiplyTransformMatrices(d,l[0]);return d}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function b(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,n,s,r,a,l,d=e.getAttribute("viewBox"),h=1,c=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!d||!(d=d.match(v)),b=!u||!g||"100%"===u||"100%"===g,C=_&&b,y={},w="",S=0,x=0;if(y.width=0,y.height=0,y.toBeParsed=C,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(w=" translate("+o(p)+" "+o(m)+") ",a=(e.getAttribute("transform")||"")+w,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),C)return y;if(_)return y.width=o(u),y.height=o(g),y;if(i=-parseFloat(d[1]),n=-parseFloat(d[2]),s=parseFloat(d[3]),r=parseFloat(d[4]),y.minX=i,y.minY=n,y.viewBoxWidth=s,y.viewBoxHeight=r,b?(y.width=s,y.height=r):(y.width=o(u),y.height=o(g),h=y.width/s,c=y.height/r),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(c=h=h>c?c:h),"slice"===f.meetOrSlice&&(c=h=h>c?h:c),S=y.width-s*h,x=y.height-r*h,"Mid"===f.alignX&&(S/=2),"Mid"===f.alignY&&(x/=2),"Min"===f.alignX&&(S=0),"Min"===f.alignY&&(x=0)),1===h&&1===c&&0===i&&0===n&&0===p&&0===m)return y;if((p||m)&&"#document"!==e.parentNode.nodeName&&(w=" translate("+o(p)+" "+o(m)+") "),a=w+" matrix("+h+" 0 0 "+c+" "+(i*h+S)+" "+(n*c+x)+") ","svg"===e.nodeName){for(l=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)l.appendChild(e.firstChild);e.appendChild(l)}else(l=e).removeAttribute("x"),l.removeAttribute("y"),a=l.getAttribute("transform")+a;return l.setAttribute("transform",a),y}function C(e,t){var i="xlink:href",n=_(e,t.getAttribute(i).slice(1));if(n&&n.getAttribute(i)&&C(e,n),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){n&&!t.hasAttribute(e)&&n.hasAttribute(e)&&t.setAttribute(e,n.getAttribute(e))})),!t.children.length)for(var s=n.cloneNode(!0);s.firstChild;)t.appendChild(s.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,s,o){if(e){!function(e){for(var i=p(e,["use","svg:use"]),n=0;i.length&&n<i.length;){var s=i[n],o=s.getAttribute("xlink:href")||s.getAttribute("href");if(null===o)return;var r,a,l,d,h=o.slice(1),c=s.getAttribute("x")||0,u=s.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+c+", "+u+")",f=i.length,v=t.svgNS;if(b(g),/^svg$/i.test(g.nodeName)){var C=g.ownerDocument.createElementNS(v,"g");for(a=0,d=(l=g.attributes).length;a<d;a++)r=l.item(a),C.setAttributeNS(v,r.nodeName,r.nodeValue);for(;g.firstChild;)C.appendChild(g.firstChild);g=C}for(a=0,d=(l=s.attributes).length;a<d;a++)"x"!==(r=l.item(a)).nodeName&&"y"!==r.nodeName&&"xlink:href"!==r.nodeName&&"href"!==r.nodeName&&("transform"===r.nodeName?m=r.nodeValue+" "+m:g.setAttribute(r.nodeName,r.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),s.parentNode.replaceChild(g,s),i.length===f&&n++}}(e);var r,a,l=t.Object.__uid++,d=b(e),h=t.util.toArray(e.getElementsByTagName("*"));if(d.crossOrigin=o&&o.crossOrigin,d.svgUid=l,0===h.length&&t.isLikelyNode){var c=[];for(r=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;r<a;r++)c[r]=h[r];h=c}var u=h.filter((function(e){return b(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=g,t.parseElements(u,(function(e,n){i&&(i(e,d,n,h),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),n(d),s,o)}}};var y=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(y);if(i){var n=i[1],s=i[3],r=i[4],a=i[5],l=i[6];n&&(t.fontStyle=n),s&&(t.fontWeight=isNaN(parseFloat(s))?s:parseFloat(s)),r&&(t.fontSize=o(r)),l&&(t.fontFamily=l),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),n=0,s={};for(n=i.length;n--;)(t=i[n]).getAttribute("xlink:href")&&C(e,t),s[t.getAttribute("id")]=t;return s},parseAttributes:function(e,n,r){if(e){var a,g,p,f={};"undefined"===typeof r&&(r=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,n,r));var _=n.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var n={};for(var s in t.cssRules[i])if(m(e,s.split(" ")))for(var o in t.cssRules[i][s])n[o]=t.cssRules[i][s][o];return n}(e,r),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[d]&&(_[d]=g=o(_[d],p));var b,C,y={};for(var w in _)C=u(b=c(w),_[w],f,g),y[b]=C;y&&y.font&&t.parseFontDeclaration(y.font,y);var S=i(f,y);return t.svgValidParentsRegEx.test(e.nodeName)?S:function(e){for(var i in l)if("undefined"!==typeof e[l[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var n=new t.Color(e[i]);e[i]=n.setAlpha(s(n.getAlpha()*e[l[i]],2)).toRgba()}}return e}(S)}},parseElements:function(e,i,n,s,o){new t.ElementsParser(e,i,n,s,o).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,n;e.replace(/;\s*$/,"").split(";").forEach((function(e){var s=e.split(":");i=s[0].trim().toLowerCase(),n=s[1].trim(),t[i]=n}))}(i,t):function(e,t){var i,n;for(var s in e)"undefined"!==typeof e[s]&&(i=s.toLowerCase(),n=e[s],t[i]=n)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,n=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)n.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return n},getCSSRules:function(e){var i,n,s=e.getElementsByTagName("style"),o={};for(i=0,n=s.length;i<n;i++){var r=s[i].textContent;""!==(r=r.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&r.split("}").filter((function(e){return e.trim()})).forEach((function(e){var s=e.split("{"),r={},a=s[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,n=a.length;i<n;i++){var l=a[i].split(":"),d=l[0].trim(),h=l[1].trim();r[d]=h}(e=s[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(o[e]?t.util.object.extend(o[e],r):o[e]=t.util.object.clone(r))}))}))}return o},loadSVGFromURL:function(e,i,n,s){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var o=e.responseXML;if(!o||!o.documentElement)return i&&i(null),!1;t.parseSVGDocument(o.documentElement,(function(e,t,n,s){i&&i(e,t,n,s)}),n,s)}})},loadSVGFromString:function(e,i,n,s){var o=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(o.documentElement,(function(e,t,n,s){i(e,t,n,s)}),n,s)}})}(t),s.ElementsParser=function(e,t,i,n,s,o){this.elements=e,this.callback=t,this.options=i,this.reviver=n,this.svgUid=i&&i.svgUid||0,this.parsingOptions=s,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=o},(n=s.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},n.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},n.findTag=function(e){return s[s.util.string.capitalize(e.tagName.replace("svg:",""))]},n.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(n){s.log(n)}else this.checkIfDone()},n.createCallback=function(e,t){var i=this;return function(n){var o;i.resolveGradient(n,t,"fill"),i.resolveGradient(n,t,"stroke"),n instanceof s.Image&&n._originalElement&&(o=n.parsePreserveAspectRatioAttribute(t)),n._removeTransformMatrix(o),i.resolveClipPath(n,t),i.reviver&&i.reviver(t,n),i.instances[e]=n,i.checkIfDone()}},n.extractPropertyDefinition=function(e,t,i){var n=e[t],o=this.regexUrl;if(o.test(n)){o.lastIndex=0;var r=o.exec(n)[1];return o.lastIndex=0,s[i][this.svgUid][r]}},n.resolveGradient=function(e,t,i){var n=this.extractPropertyDefinition(e,i,"gradientDefs");if(n){var o=t.getAttribute(i+"-opacity"),r=s.Gradient.fromElement(n,e,o,this.options);e.set(i,r)}},n.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},n.resolveClipPath=function(e,t){var i,n,o,r,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){o=[],n=s.util.invertTransform(e.calcTransformMatrix());for(var l=a[0].parentNode,d=t;d.parentNode&&d.getAttribute("clip-path")!==e.clipPath;)d=d.parentNode;d.parentNode.appendChild(l);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,o),this.options);a=1===o.length?o[0]:new s.Group(o),r=s.util.multiplyTransformMatrices(n,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,d);var c=s.util.qrDecompose(r);a.flipX=!1,a.flipY=!1,a.set("scaleX",c.scaleX),a.set("scaleY",c.scaleY),a.angle=c.angle,a.skewX=c.skewX,a.skewY=0,a.setPositionByOrigin({x:c.translateX,y:c.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},n.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,n,s,o){var r,a=(o.x-s.x)*(e.y-s.y)-(o.y-s.y)*(e.x-s.x),l=(n.x-e.x)*(e.y-s.y)-(n.y-e.y)*(e.x-s.x),d=(o.y-s.y)*(n.x-e.x)-(o.x-s.x)*(n.y-e.y);if(0!==d){var h=a/d,c=l/d;0<=h&&h<=1&&0<=c&&c<=1?(r=new i("Intersection")).appendPoint(new t.Point(e.x+h*(n.x-e.x),e.y+h*(n.y-e.y))):r=new i}else r=new i(0===a||0===l?"Coincident":"Parallel");return r},t.Intersection.intersectLinePolygon=function(e,t,n){var s,o,r,a,l=new i,d=n.length;for(a=0;a<d;a++)s=n[a],o=n[(a+1)%d],r=i.intersectLineLine(e,t,s,o),l.appendPoints(r.points);return l.points.length>0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var n,s=new i,o=e.length;for(n=0;n<o;n++){var r=e[n],a=e[(n+1)%o],l=i.intersectLinePolygon(r,a,t);s.appendPoints(l.points)}return s.points.length>0&&(s.status="Intersection"),s},t.Intersection.intersectPolygonRectangle=function(e,n,s){var o=n.min(s),r=n.max(s),a=new t.Point(r.x,o.y),l=new t.Point(o.x,r.y),d=i.intersectLinePolygon(o,a,e),h=i.intersectLinePolygon(a,r,e),c=i.intersectLinePolygon(r,l,e),u=i.intersectLinePolygon(l,o,e),g=new i;return g.appendPoints(d.points),g.appendPoints(h.points),g.appendPoints(c.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function n(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,n){e/=255,i/=255,n/=255;var s,o,r,a=t.util.array.max([e,i,n]),l=t.util.array.min([e,i,n]);if(r=(a+l)/2,a===l)s=o=0;else{var d=a-l;switch(o=r>.5?d/(2-a-l):d/(a+l),a){case e:s=(i-n)/d+(i<n?6:0);break;case i:s=(n-e)/d+2;break;case n:s=(e-i)/d+4}s/=6}return[Math.round(360*s),Math.round(100*o),Math.round(100*r)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,n=this.getSource();return e=1===(e=n[0].toString(16)).length?"0"+e:e,t=1===(t=n[1].toString(16)).length?"0"+t:t,i=1===(i=n[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),n=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,n]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,n=[],s=this.getAlpha(),o=this.getSource(),r=e.getSource();for(t=0;t<3;t++)n.push(Math.round(.5*o[t]+.5*r[t]));return n[3]=s,this.setSource(n),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var n=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),s=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),o=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(n,10),parseInt(s,10),parseInt(o,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var s,o,r,a=(parseFloat(t[1])%360+360)%360/360,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),d=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)s=o=r=d;else{var h=d<=.5?d*(l+1):d+l-d*l,c=2*d-h;s=n(c,h,a+1/3),o=n(c,h,a),r=n(c,h,a-1/3)}return[Math.round(255*s),Math.round(255*o),Math.round(255*r),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),n=3===t.length||4===t.length,s=8===t.length||4===t.length,o=n?t.charAt(0)+t.charAt(0):t.substring(0,2),r=n?t.charAt(1)+t.charAt(1):t.substring(2,4),a=n?t.charAt(2)+t.charAt(2):t.substring(4,6),l=s?n?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(o,16),parseInt(r,16),parseInt(a,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],n=["ns","nesw","ew","nwse"],s={},o="left",r="top",a="right",l="bottom",d="center",h={top:l,bottom:r,left:a,right:o,center:d},c=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+c(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var n=i.transform.target,s=n.canvas,o=t.util.object.clone(i);o.target=n,s&&s.fire("object:"+e,o),n.fire(e,i)}function m(e,t){var i=t.canvas,n=e[i.uniScaleKey];return i.uniformScaling&&!n||!i.uniformScaling&&n}function f(e){return e.originX===d&&e.originY===d}function _(e,t,i){var n=e.lockScalingX,s=e.lockScalingY;return!(!n||!s)||(!(t||!n&&!s||!i)||(!(!n||"x"!==t)||!(!s||"y"!==t)))}function v(e,t,i,n){return{e:e,transform:t,pointer:{x:i,y:n}}}function b(e){return function(t,i,n,s){var o=i.target,r=o.getCenterPoint(),a=o.translateToOriginPoint(r,i.originX,i.originY),l=e(t,i,n,s);return o.setPositionByOrigin(a,i.originX,i.originY),l}}function C(e,t){return function(i,n,s,o){var r=t(i,n,s,o);return r&&p(e,v(i,n,s,o)),r}}function y(e,i,n,s,o){var r=e.target,a=r.controls[e.corner],l=r.canvas.getZoom(),d=r.padding/l,h=r.toLocalPoint(new t.Point(s,o),i,n);return h.x>=d&&(h.x-=d),h.x<=-d&&(h.x+=d),h.y>=d&&(h.y-=d),h.y<=d&&(h.y+=d),h.x-=a.offsetX,h.y-=a.offsetY,h}function w(e){return e.flipX!==e.flipY}function S(e,t,i,n,s){if(0!==e[t]){var o=s/e._getTransformedDimensions()[n]*e[i];e.set(i,o)}}function x(e,t,i,n){var s,d=t.target,h=d._getTransformedDimensions(0,d.skewY),u=y(t,t.originX,t.originY,i,n),g=Math.abs(2*u.x)-h.x,p=d.skewX;g<2?s=0:(s=c(Math.atan2(g/d.scaleX,h.y/d.scaleY)),t.originX===o&&t.originY===l&&(s=-s),t.originX===a&&t.originY===r&&(s=-s),w(d)&&(s=-s));var m=p!==s;if(m){var f=d._getTransformedDimensions().y;d.set("skewX",s),S(d,"skewY","scaleY","y",f)}return m}function L(e,t,i,n){var s,d=t.target,h=d._getTransformedDimensions(d.skewX,0),u=y(t,t.originX,t.originY,i,n),g=Math.abs(2*u.y)-h.y,p=d.skewY;g<2?s=0:(s=c(Math.atan2(g/d.scaleY,h.x/d.scaleX)),t.originX===o&&t.originY===l&&(s=-s),t.originX===a&&t.originY===r&&(s=-s),w(d)&&(s=-s));var m=p!==s;if(m){var f=d._getTransformedDimensions().x;d.set("skewY",s),S(d,"skewX","scaleX","x",f)}return m}function k(e,t,i,n,s){s=s||{};var o,r,a,l,d,c,g=t.target,p=g.lockScalingX,v=g.lockScalingY,b=s.by,C=m(e,g),w=_(g,b,C),S=t.gestureScale;if(w)return!1;if(S)r=t.scaleX*S,a=t.scaleY*S;else{if(o=y(t,t.originX,t.originY,i,n),d="y"!==b?u(o.x):1,c="x"!==b?u(o.y):1,t.signX||(t.signX=d),t.signY||(t.signY=c),g.lockScalingFlip&&(t.signX!==d||t.signY!==c))return!1;if(l=g._getTransformedDimensions(),C&&!b){var x=Math.abs(o.x)+Math.abs(o.y),L=t.original,k=x/(Math.abs(l.x*L.scaleX/g.scaleX)+Math.abs(l.y*L.scaleY/g.scaleY));r=L.scaleX*k,a=L.scaleY*k}else r=Math.abs(o.x*g.scaleX/l.x),a=Math.abs(o.y*g.scaleY/l.y);f(t)&&(r*=2,a*=2),t.signX!==d&&"y"!==b&&(t.originX=h[t.originX],r*=-1,t.signX=d),t.signY!==c&&"x"!==b&&(t.originY=h[t.originY],a*=-1,t.signY=c)}var D=g.scaleX,N=g.scaleY;return b?("x"===b&&g.set("scaleX",r),"y"===b&&g.set("scaleY",a)):(!p&&g.set("scaleX",r),!v&&g.set("scaleY",a)),D!==g.scaleX||N!==g.scaleY}s.scaleCursorStyleHandler=function(e,t,n){var s=m(e,n),o="";if(0!==t.x&&0===t.y?o="x":0===t.x&&0!==t.y&&(o="y"),_(n,o,s))return"not-allowed";var r=g(n,t);return i[r]+"-resize"},s.skewCursorStyleHandler=function(e,t,i){var s="not-allowed";if(0!==t.x&&i.lockSkewingY)return s;if(0!==t.y&&i.lockSkewingX)return s;var o=g(i,t)%4;return n[o]+"-resize"},s.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?s.skewCursorStyleHandler(e,t,i):s.scaleCursorStyleHandler(e,t,i)},s.rotationWithSnapping=C("rotating",b((function(e,t,i,n){var s=t,o=s.target,r=o.translateToOriginPoint(o.getCenterPoint(),s.originX,s.originY);if(o.lockRotation)return!1;var a,l=Math.atan2(s.ey-r.y,s.ex-r.x),d=Math.atan2(n-r.y,i-r.x),h=c(d-l+s.theta);if(o.snapAngle>0){var u=o.snapAngle,g=o.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=o.angle!==h,o.angle=h,a}))),s.scalingEqually=C("scaling",b((function(e,t,i,n){return k(e,t,i,n)}))),s.scalingX=C("scaling",b((function(e,t,i,n){return k(e,t,i,n,{by:"x"})}))),s.scalingY=C("scaling",b((function(e,t,i,n){return k(e,t,i,n,{by:"y"})}))),s.scalingYOrSkewingX=function(e,t,i,n){return e[t.target.canvas.altActionKey]?s.skewHandlerX(e,t,i,n):s.scalingY(e,t,i,n)},s.scalingXOrSkewingY=function(e,t,i,n){return e[t.target.canvas.altActionKey]?s.skewHandlerY(e,t,i,n):s.scalingX(e,t,i,n)},s.changeWidth=C("resizing",b((function(e,t,i,n){var s=t.target,o=y(t,t.originX,t.originY,i,n),r=s.strokeWidth/(s.strokeUniform?s.scaleX:1),a=f(t)?2:1,l=s.width,d=Math.abs(o.x*a/s.scaleX)-r;return s.set("width",Math.max(d,0)),l!==d}))),s.skewHandlerX=function(e,t,i,n){var s,l=t.target,h=l.skewX,c=t.originY;return!l.lockSkewingX&&(0===h?s=y(t,d,d,i,n).x>0?o:a:(h>0&&(s=c===r?o:a),h<0&&(s=c===r?a:o),w(l)&&(s=s===o?a:o)),t.originX=s,C("skewing",b(x))(e,t,i,n))},s.skewHandlerY=function(e,t,i,n){var s,a=t.target,h=a.skewY,c=t.originX;return!a.lockSkewingY&&(0===h?s=y(t,d,d,i,n).y>0?r:l:(h>0&&(s=c===o?r:l),h<0&&(s=c===o?l:r),w(a)&&(s=s===r?l:r)),t.originY=s,C("skewing",b(L))(e,t,i,n))},s.dragHandler=function(e,t,i,n){var s=t.target,o=i-t.offsetX,r=n-t.offsetY,a=!s.get("lockMovementX")&&s.left!==o,l=!s.get("lockMovementY")&&s.top!==r;return a&&s.set("left",o),l&&s.set("top",r),(a||l)&&p("moving",v(e,t,i,n)),a||l},s.scaleOrSkewActionName=function(e,t,i){var n=e[i.canvas.altActionKey];return 0===t.x?n?"skewX":"scaleY":0===t.y?n?"skewY":"scaleX":void 0},s.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},s.fireEvent=p,s.wrapWithFixedAnchor=b,s.wrapWithFireEvent=C,s.getLocalPoint=y,t.controlsUtils=s}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,n=t.controlsUtils;n.renderCircleControl=function(e,t,i,n,s){n=n||{};var o,r=this.sizeX||n.cornerSize||s.cornerSize,a=this.sizeY||n.cornerSize||s.cornerSize,l="undefined"!==typeof n.transparentCorners?n.transparentCorners:s.transparentCorners,d=l?"stroke":"fill",h=!l&&(n.cornerStrokeColor||s.cornerStrokeColor),c=t,u=i;e.save(),e.fillStyle=n.cornerColor||s.cornerColor,e.strokeStyle=n.cornerStrokeColor||s.cornerStrokeColor,r>a?(o=r,e.scale(1,a/r),u=i*r/a):a>r?(o=a,e.scale(r/a,1),c=t*a/r):o=r,e.lineWidth=1,e.beginPath(),e.arc(c,u,o/2,0,2*Math.PI,!1),e[d](),h&&e.stroke(),e.restore()},n.renderSquareControl=function(e,t,n,s,o){s=s||{};var r=this.sizeX||s.cornerSize||o.cornerSize,a=this.sizeY||s.cornerSize||o.cornerSize,l="undefined"!==typeof s.transparentCorners?s.transparentCorners:o.transparentCorners,d=l?"stroke":"fill",h=!l&&(s.cornerStrokeColor||o.cornerStrokeColor),c=r/2,u=a/2;e.save(),e.fillStyle=s.cornerColor||o.cornerColor,e.strokeStyle=s.cornerStrokeColor||o.cornerStrokeColor,e.lineWidth=1,e.translate(t,n),e.rotate(i(o.angle)),e[d+"Rect"](-c,-u,r,a),h&&e.strokeRect(-c,-u,r,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,n,s,o){var r,a,l,d,h=o?this.touchSizeX:this.sizeX,c=o?this.touchSizeY:this.sizeY;if(h&&c&&h!==c){var u=Math.atan2(c,h),g=Math.sqrt(h*h+c*c)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);r=g*t.util.cos(p),a=g*t.util.sin(p),l=g*t.util.cos(m),d=g*t.util.sin(m)}else{g=.7071067812*(h&&c?h:i);p=t.util.degreesToRadians(45-e);r=l=g*t.util.cos(p),a=d=g*t.util.sin(p)}return{tl:{x:n-d,y:s-l},tr:{x:n+r,y:s-a},bl:{x:n-r,y:s+a},br:{x:n+d,y:s+l}}},render:function(e,i,n,s,o){if("circle"===((s=s||{}).cornerStyle||o.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,n,s,o);else t.controlsUtils.renderSquareControl.call(this,e,i,n,s,o)}}}(t),function(){function e(e,t){var i,n,o,r,a=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,a){var d=a.split(/\s*;\s*/);for(""===d[d.length-1]&&d.pop(),r=d.length;r--;){var h=d[r].split(/\s*:\s*/),c=h[0].trim(),u=h[1].trim();"stop-color"===c?i=u:"stop-opacity"===c&&(o=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),o||(o=e.getAttribute("stop-opacity")),n=(i=new s.Color(i)).getAlpha(),o=isNaN(parseFloat(o))?1:parseFloat(o),o*=n*t,{offset:l,color:i.toRgb(),opacity:o}}var t=s.util.object.clone;s.Gradient=s.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+s.Object.__uid++:this.id=s.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new s.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return s.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var n,o,r,a,l=t(this.coords,!0),d=(i=i||{},t(this.colorStops,!0)),h=l.r1>l.r2,c=this.gradientTransform?this.gradientTransform.concat():s.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(d.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),c[4]-=u,c[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+s.util.matrixToSVG(c)+'" ',"linear"===this.type?r=["<linearGradient ",a,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(r=["<radialGradient ",a,' cx="',h?l.x1:l.x2,'" cy="',h?l.y1:l.y2,'" r="',h?l.r1:l.r2,'" fx="',h?l.x2:l.x1,'" fy="',h?l.y2:l.y1,'">\n']),"radial"===this.type){if(h)for((d=d.concat()).reverse(),n=0,o=d.length;n<o;n++)d[n].offset=1-d[n].offset;var f=Math.min(l.r1,l.r2);if(f>0){var _=f/Math.max(l.r1,l.r2);for(n=0,o=d.length;n<o;n++)d[n].offset+=_*(1-d[n].offset)}}for(n=0,o=d.length;n<o;n++){var v=d[n];r.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return r.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),r.join("")},toLive:function(e){var t,i,n,o=s.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(o.x1,o.y1,o.x2,o.y2):"radial"===this.type&&(t=e.createRadialGradient(o.x1,o.y1,o.r1,o.x2,o.y2,o.r2)),i=0,n=this.colorStops.length;i<n;i++){var r=this.colorStops[i].color,a=this.colorStops[i].opacity,l=this.colorStops[i].offset;"undefined"!==typeof a&&(r=new s.Color(r).setAlpha(a).toRgba()),t.addColorStop(l,r)}return t}}}),s.util.object.extend(s.Gradient,{fromElement:function(t,i,n,o){var r=parseFloat(n)/(/%$/.test(n)?100:1);r=r<0?0:r>1?1:r,isNaN(r)&&(r=1);var a,l,d,h,c=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",l=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",l=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),d=c.length;d--;)p.push(e(c[d],r));return h=s.parseTransformAttribute(g),function(e,t,i,n){var s,o;Object.keys(t).forEach((function(e){"Infinity"===(s=t[e])?o=1:"-Infinity"===s?o=0:(o=parseFloat(t[e],10),"string"===typeof s&&/^(\d+\.\d+)%|(\d+)%$/.test(s)&&(o*=.01,"pixels"===n&&("x1"!==e&&"x2"!==e&&"r2"!==e||(o*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(o*=i.viewBoxHeight||i.height)))),t[e]=o}))}(0,l,o,u),"pixels"===u&&(m=-i.left,f=-i.top),new s.Gradient({id:t.getAttribute("id"),type:a,coords:l,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=s.util.toFixed;s.Pattern=s.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=s.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=s.util.createImage(),s.util.loadImage(e.source,(function(e,n){i.source=e,t&&t(i,n)}),null,this.crossOrigin)}},toObject:function(t){var i,n,o=s.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),n={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,o),offsetY:e(this.offsetY,o),patternTransform:this.patternTransform?this.patternTransform.concat():null},s.util.populateWithProperties(this,n,t),n},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,n=t.height/e.height,s=this.offsetX/e.width,o=this.offsetY/e.height,r="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(n=1,o&&(n+=Math.abs(o))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,s&&(i+=Math.abs(s))),t.src?r=t.src:t.toDataURL&&(r=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+s+'" y="'+o+'" width="'+i+'" height="'+n+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+r+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),n=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(n[1],10)||0,offsetY:parseFloat(n[2],10)||0,blur:parseFloat(n[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var n=40,s=40,o=t.Object.NUM_FRACTION_DIGITS,r=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(n=100*i((Math.abs(r.x)+this.blur)/e.width,o)+20,s=100*i((Math.abs(r.y)+this.blur)/e.height,o)+20),e.flipX&&(r.x*=-1),e.flipY&&(r.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+s+'%" height="'+(100+2*s)+'%" x="-'+n+'%" width="'+(100+2*n)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,o)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(r.x,o)+'" dy="'+i(r.y,o)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(s.StaticCanvas)s.warn("fabric.StaticCanvas is already defined.");else{var e=s.util.object.extend,t=s.util.getElementOffset,i=s.util.removeFromArray,n=s.util.toFixed,o=s.util.transformPoint,r=s.util.invertTransform,a=s.util.getNodeCanvas,l=s.util.createCanvasElement,d=new Error("Could not initialize `canvas` element");s.StaticCanvas=s.util.createClass(s.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:s.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return s.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,s.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=s.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,n){return"string"===typeof t?s.util.loadImage(t,(function(t,o){if(t){var r=new s.Image(t,n);this[e]=r,r.canvas=this}i&&i(t,o)}),this,n&&n.crossOrigin):(n&&t.setOptions(n),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=l();if(!e)throw d;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw d;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=s.util.getById(e)||this._createCanvasElement(),s.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var n in t=t||{},e)i=e[n],t.cssOnly||(this._setBackstoreDimension(n,e[n]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(n,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,n,s=this._activeObject,o=this.backgroundImage,r=this.overlayImage;for(this.viewportTransform=e,i=0,n=this._objects.length;i<n;i++)(t=this._objects[i]).group||t.setCoords(!0);return s&&s.setCoords(),o&&o.setCoords(!0),r&&r.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,n=this.viewportTransform.slice(0);e=o(e,r(this.viewportTransform)),n[0]=t,n[3]=t;var s=o(e,n);return n[4]+=i.x-s.x,n[5]+=i.y-s.y,this.setViewportTransform(n)},setZoom:function(e){return this.zoomToPoint(new s.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new s.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=s.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,n=r(this.viewportTransform);return e.tl=o({x:0,y:0},n),e.br=o({x:t,y:i},n),e.tr=new s.Point(e.br.x,e.tl.y),e.bl=new s.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(s.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,n=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),s.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),n&&(n.canvas=this,n.shouldCache(),n._transformDone=!0,n.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,n;for(i=0,n=t.length;i<n;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],n=this[t+"Image"],s=this.viewportTransform,o=this[t+"Vpt"];if(i||n){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,o&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var r=i.gradientTransform||i.patternTransform;r&&e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.fill(),e.restore()}n&&(e.save(),o&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),n.render(e),e.restore())}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new s.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new s.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new s.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new s.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new s.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=r(this.viewportTransform);return o(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var n=this.clipPath,o={version:s.version,objects:this._toObjects(t,i)};return n&&!n.excludeFromExport&&(o.clipPath=this._toObject(this.clipPath,t,i)),e(o,this.__serializeBgOverlay(t,i)),s.util.populateWithProperties(this,o,i),o},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var n;this.includeDefaultValues||(n=e.includeDefaultValues,e.includeDefaultValues=!1);var s=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=n),s},__serializeBgOverlay:function(e,t){var i={},n=this.backgroundImage,s=this.overlayImage,o=this.backgroundColor,r=this.overlayColor;return o&&o.toObject?o.excludeFromExport||(i.background=o.toObject(t)):o&&(i.background=o),r&&r.toObject?r.excludeFromExport||(i.overlay=r.toObject(t)):r&&(i.overlay=r),n&&!n.excludeFromExport&&(i.backgroundImage=this._toObject(n,e,t)),s&&!s.excludeFromExport&&(i.overlayImage=this._toObject(s,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,o=t.width||this.width,r=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',l=s.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+n(-i[4]/i[0],l)+" "+n(-i[5]/i[3],l)+" "+n(this.width/i[0],l)+" "+n(this.height/i[3],l)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',o,'" ','height="',r,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",s.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+s.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var n=e[t+"Vpt"],o=e.viewportTransform,r={width:e.width/(n?o[0]:1),height:e.height/(n?o[3]:1)};return i.toSVG(r,{additionalTransform:n?s.util.matrixToSVG(o):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,n,o,r,a,l,d="",h={},c=s.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,l=u.length;a<l;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&c[t]&&(h[t]=!0,e.styles))for(o in i=e.styles)for(r in n=i[o])!h[t=n[r].fontFamily]&&c[t]&&(h[t]=!0);for(var g in h)d+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",c[g],"');\n","\t\t}\n"].join("");return d&&(d=['\t<style type="text/css">',"<![CDATA[\n",d,"]]>","</style>\n"].join("")),d},_setSVGObjects:function(e,t){var i,n,s,o=this._objects;for(n=0,s=o.length;n<s;n++)(i=o[n]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],n=this.viewportTransform,o=this.width,r=this.height;if(i)if(i.toLive){var a=i.repeat,l=s.util.invertTransform(n),d=this[t+"Vpt"]?s.util.matrixToSVG(l):"";e.push('<rect transform="'+d+" translate(",o/2,",",r/2,')"',' x="',i.offsetX-o/2,'" y="',i.offsetY-r/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:o,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:r,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,n,s,o=this._activeObject;if(e===o&&"activeSelection"===e.type)for(t=(s=o._objects).length;t--;)n=s[t],i(this._objects,n),this._objects.unshift(n);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,n,s,o=this._activeObject;if(e===o&&"activeSelection"===e.type)for(s=o._objects,t=0;t<s.length;t++)n=s[t],i(this._objects,n),this._objects.push(n);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var n,s,o,r,a,l=this._activeObject,d=0;if(e===l&&"activeSelection"===e.type)for(a=l._objects,n=0;n<a.length;n++)s=a[n],(o=this._objects.indexOf(s))>0+d&&(r=o-1,i(this._objects,s),this._objects.splice(r,0,s)),d++;else 0!==(o=this._objects.indexOf(e))&&(r=this._findNewLowerIndex(e,o,t),i(this._objects,e),this._objects.splice(r,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var n,s;if(i)for(n=t,s=t-1;s>=0;--s){if(e.intersectsWithObject(this._objects[s])||e.isContainedWithinObject(this._objects[s])||this._objects[s].isContainedWithinObject(e)){n=s;break}}else n=t-1;return n},bringForward:function(e,t){if(!e)return this;var n,s,o,r,a,l=this._activeObject,d=0;if(e===l&&"activeSelection"===e.type)for(n=(a=l._objects).length;n--;)s=a[n],(o=this._objects.indexOf(s))<this._objects.length-1-d&&(r=o+1,i(this._objects,s),this._objects.splice(r,0,s)),d++;else(o=this._objects.indexOf(e))!==this._objects.length-1&&(r=this._findNewUpperIndex(e,o,t),i(this._objects,e),this._objects.splice(r,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var n,s,o;if(i)for(n=t,s=t+1,o=this._objects.length;s<o;++s){if(e.intersectsWithObject(this._objects[s])||e.isContainedWithinObject(this._objects[s])||this._objects[s].isContainedWithinObject(e)){n=s;break}}else n=t+1;return n},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(s.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),s.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),s.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(s.StaticCanvas.prototype,s.Observable),e(s.StaticCanvas.prototype,s.Collection),e(s.StaticCanvas.prototype,s.DataURLExporter),e(s.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),s.StaticCanvas.prototype.toJSON=s.StaticCanvas.prototype.toObject,s.isLikelyNode&&(s.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},s.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),s.BaseBrush=s.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,n=e.getZoom();e&&e._isRetinaScaling()&&(n*=s.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*n,i.shadowOffsetX=t.offsetX*n,i.shadowOffsetY=t.offsetY*n}},needsFullRender:function(){return new s.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),s.PencilBrush=s.util.createClass(s.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var n=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,n.x,n.y),n},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,n=i.length,s=this.canvas.contextTop;this._saveAndTransform(s),this.oldEnd&&(s.beginPath(),s.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(s,i[n-2],i[n-1],!0),s.stroke(),s.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new s.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new s.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,n=this._points[0],o=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&n.x===o.x&&n.y===o.y){var r=this.width/1e3;n=new s.Point(n.x,n.y),o=new s.Point(o.x,o.y),n.x-=r,o.x+=r}for(e.moveTo(n.x,n.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,n,o),n=this._points[t],o=this._points[t+1];e.lineTo(n.x,n.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return s.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===s.util.joinPath(e)},createPath:function(e){var t=new s.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new s.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,n=this.canvas.getZoom(),s=Math.pow(t/n,2),o=e.length-1,r=e[0],a=[r];for(i=1;i<o-1;i++)Math.pow(r.x-e[i].x,2)+Math.pow(r.y-e[i].y,2)>=s&&(r=e[i],a.push(r));return a.push(e[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),s.CircleBrush=s.util.createClass(s.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,n=this.points;for(this._saveAndTransform(i),e=0,t=n.length;e<t;e++)this.dot(i,n[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var n=[];for(e=0,t=this.points.length;e<t;e++){var o=this.points[e],r=new s.Circle({radius:o.radius,left:o.x,top:o.y,originX:"center",originY:"center",fill:o.fill});this.shadow&&(r.shadow=new s.Shadow(this.shadow)),n.push(r)}var a=new s.Group(n);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new s.Point(e.x,e.y),i=s.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,n=new s.Color(this.color).setAlpha(s.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=n,this.points.push(t),t}}),s.SprayBrush=s.util.createClass(s.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,n=this.sprayChunks.length;i<n;i++)for(var o=this.sprayChunks[i],r=0,a=o.length;r<a;r++){var l=new s.Rect({width:o[r].width,height:o[r].width,left:o[r].x+1,top:o[r].y+1,originX:"center",originY:"center",fill:this.color});t.push(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var d=new s.Group(t);this.shadow&&d.set("shadow",new s.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:d}),this.canvas.add(d),this.canvas.fire("path:created",{path:d}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,n,s={};for(i=0,n=e.length;i<n;i++)s[t=e[i].left+""+e[i].top]||(s[t]=e[i]);var o=[];for(t in s)o.push(s[t]);return o},render:function(e){var t,i,n=this.canvas.contextTop;for(n.fillStyle=this.color,this._saveAndTransform(n),t=0,i=e.length;t<i;t++){var s=e[t];"undefined"!==typeof s.opacity&&(n.globalAlpha=s.opacity),n.fillRect(s.x,s.y,s.width,s.width)}n.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,n,o,r=this.width/2;for(o=0;o<this.density;o++){t=s.util.getRandomInt(e.x-r,e.x+r),i=s.util.getRandomInt(e.y-r,e.y+r),n=this.dotWidthVariance?s.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new s.Point(t,i);a.width=n,this.randomOpacity&&(a.opacity=s.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),s.PatternBrush=s.util.createClass(s.PencilBrush,{getPatternSrc:function(){var e=s.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new s.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=s.util.getPointer,t=s.util.degreesToRadians,i=s.util.isTouchEvent;for(var n in s.Canvas=s.util.createClass(s.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=s.PencilBrush&&new s.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,n=this.getActiveObjects();if(n.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var s=0,o=this._objects.length;s<o;s++)e=this._objects[s],-1===n.indexOf(e)?t.push(e):i.push(e);n.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),n=s.util.invertTransform(i),o=this.restorePointerVpt(t);return s.util.transformPoint(o,n)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var n=this._normalizePointer(e,{x:t,y:i}),o=Math.max(e.cacheTranslationX+n.x*e.zoomX,0),r=Math.max(e.cacheTranslationY+n.y*e.zoomY,0);return s.util.isTransparent(e._cacheContext,Math.round(o),Math.round(r),this.targetFindTolerance)}var a=this.contextCache,l=e.selectionBackgroundColor,d=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),e.render(a),a.restore(),e.selectionBackgroundColor=l,s.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),n=this._activeObject;return!t||t&&n&&i.length>1&&-1===i.indexOf(t)&&n!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&n&&n!==t},_shouldCenterTransform:function(e,t,i){var n;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?n=this.centeredScaling||e.centeredScaling:"rotate"===t&&(n=this.centeredRotation||e.centeredRotation),n?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,n){if(!t||!e)return"drag";var s=n.controls[t];return s.getActionName(i,s,n)},_setupCurrentTransform:function(e,i,n){if(i){var o=this.getPointer(e),r=i.__corner,a=i.controls[r],l=n&&r?a.getActionHandler(e,i,a):s.controlsUtils.dragHandler,d=this._getActionFromCorner(n,r,e,i),h=this._getOriginFromCorner(i,r),c=e[this.centeredKey],u={target:i,action:d,actionHandler:l,corner:r,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:o.x-i.left,offsetY:o.y-i.top,originX:h.x,originY:h.y,ex:o.x,ey:o.y,lastX:o.x,lastY:o.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:c,original:s.util.saveObjectTransform(i)};this._shouldCenterTransform(i,d,c)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new s.Point(t.ex,t.ey),n=s.util.transformPoint(i,this.viewportTransform),o=new s.Point(t.ex+t.left,t.ey+t.top),r=s.util.transformPoint(o,this.viewportTransform),a=Math.min(n.x,r.x),l=Math.min(n.y,r.y),d=Math.max(n.x,r.x),h=Math.max(n.y,r.y),c=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,l,d-a,h-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=c,l+=c,d-=c,h-=c,s.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,l,d-a,h-l))},findTarget:function(e,t){if(!this.skipTargetFind){var n,s,o=this.getPointer(e,!0),r=this._activeObject,a=this.getActiveObjects(),l=i(e),d=a.length>1&&!t||1===a.length;if(this.targets=[],d&&r._findTargetCorner(o,l))return r;if(a.length>1&&!t&&r===this._searchPossibleTargets([r],o))return r;if(1===a.length&&r===this._searchPossibleTargets([r],o)){if(!this.preserveObjectStacking)return r;n=r,s=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,o);return e[this.altSelectionKey]&&h&&n&&h!==n&&(h=n,this.targets=s),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,n,o=e.length;o--;){var r=e[o],a=r.group?this._normalizePointer(r.group,t):t;if(this._checkTarget(a,r,t)){(i=e[o]).subTargetCheck&&i instanceof s.Group&&(n=this._searchPossibleTargets(i._objects,t))&&this.targets.push(n);break}}return i},restorePointerVpt:function(e){return s.util.transformPoint(e,s.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var n,s=e(t),o=this.upperCanvasEl,r=o.getBoundingClientRect(),a=r.width||0,l=r.height||0;a&&l||("top"in r&&"bottom"in r&&(l=Math.abs(r.top-r.bottom)),"right"in r&&"left"in r&&(a=Math.abs(r.right-r.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,i||(s=this.restorePointerVpt(s));var d=this.getRetinaScaling();return 1!==d&&(s.x/=d,s.y/=d),n=0===a||0===l?{width:1,height:1}:{width:o.width/a,height:o.height/l},{x:s.x*n.width,y:s.y*n.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),s.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=s.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),s.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),s.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;s.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,s.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,n=this.getActiveObjects(),s=[],o=[];e.forEach((function(e){-1===n.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),o.push(e))})),n.forEach((function(n){-1===e.indexOf(n)&&(i=!0,n.fire("selected",{e:t,target:n}),s.push(n))})),e.length>0&&n.length>0?i&&this.fire("selection:updated",{e:t,selected:s,deselected:o}):n.length>0?this.fire("selection:created",{e:t,selected:s}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:o})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){s.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,s.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var n=this._realizeGroupTransformOnObject(e),s=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,n),s},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),s.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var n=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,n)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),s.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),s.StaticCanvas)"prototype"!==n&&(s.Canvas[n]=s.StaticCanvas[n])}(),function(){var e=s.util.addListener,t=s.util.removeListener,i={passive:!1};function n(e,t){return e.button&&e.button===t-1}s.util.object.extend(s.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var n=this.upperCanvasEl,o=this._getEventPrefix();e(s.window,"resize",this._onResize),e(n,o+"down",this._onMouseDown),e(n,o+"move",this._onMouseMove,i),e(n,o+"out",this._onMouseOut),e(n,o+"enter",this._onMouseEnter),e(n,"wheel",this._onMouseWheel),e(n,"contextmenu",this._onContextMenu),e(n,"dblclick",this._onDoubleClick),e(n,"dragover",this._onDragOver),e(n,"dragenter",this._onDragEnter),e(n,"dragleave",this._onDragLeave),e(n,"drop",this._onDrop),this.enablePointerEvents||e(n,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](n,"gesture",this._onGesture),eventjs[t](n,"drag",this._onDrag),eventjs[t](n,"orientation",this._onOrientationChange),eventjs[t](n,"shake",this._onShake),eventjs[t](n,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(s.document,e+"up",this._onMouseUp),t(s.document,"touchend",this._onTouchEnd,i),t(s.document,e+"move",this._onMouseMove,i),t(s.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(n){i.fire("mouse:out",{target:t,e:e}),n&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(n){n.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(n)),this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();e(s.document,"touchend",this._onTouchEnd,i),e(s.document,"touchmove",this._onMouseMove,i),t(o,r+"down",this._onMouseDown)},_onMouseDown:function(n){this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();t(o,r+"move",this._onMouseMove,i),e(s.document,r+"up",this._onMouseUp),e(s.document,r+"move",this._onMouseMove,i)},_onTouchEnd:function(n){if(!(n.touches.length>0)){this.__onMouseUp(n),this._resetTransformEventData(),this.mainTouchId=null;var o=this._getEventPrefix();t(s.document,"touchend",this._onTouchEnd,i),t(s.document,"touchmove",this._onMouseMove,i);var r=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(r.upperCanvasEl,o+"down",r._onMouseDown),r._willAddMouseDown=0}),400)}},_onMouseUp:function(n){this.__onMouseUp(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();this._isMainEvent(n)&&(t(s.document,r+"up",this._onMouseUp),t(s.document,r+"move",this._onMouseMove,i),e(o,r+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,o=this._groupSelector,r=!1,a=!o||0===o.left&&0===o.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),n(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(n(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),r=i.actionPerformed),!a){var l=t===this._activeObject;this._maybeGroupObjects(e),r||(r=this._shouldRender(t)||!l&&t===this._activeObject)}var d,h;if(t){if(d=t._findTargetCorner(this.getPointer(e,!0),s.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),r=!0;else{var c=t.controls[d],u=c&&c.getMouseUpHandler(e,t,c);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==d)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,c);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),r?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),n=this.targets,s={e:t,target:i,subTargets:n};if(this.fire(e,s),i&&i.fire(e,s),!n)return i;for(var o=0;o<n.length;o++)n[o].fire(e,s);return i},_handleEvent:function(e,t,i,n){var s=this._target,o=this.targets||[],r={e:e,target:s,subTargets:o,button:i||1,isClick:n||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(r.currentTarget=this.findTarget(e),r.currentSubTargets=this.targets),this.fire("mouse:"+t,r),s&&s.fire("mouse"+t,r);for(var a=0;a<o.length;a++)o[a].fire("mouse"+t,r)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,n={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",n)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(n(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(n(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var o=this._shouldRender(t),r=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):r&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var l=t._findTargetCorner(this.getPointer(e,!0),s.util.isTouchEvent(e));if(t.__corner=l,t===this._activeObject&&(l||!r)){this._setupCurrentTransform(e,t,a);var d=t.controls[l],h=(i=this.getPointer(e),d&&d.getMouseDownHandler(e,t,d));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(o||r)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var n=this._groupSelector;n?(i=this._absolutePointer,n.left=i.x-n.ex,n.top=i.y-n.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,n=this._hoveredTargets,s=this.targets,o=Math.max(n.length,s.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var r=0;r<o;r++)this.fireSyntheticInOutEvents(s[r],t,{oldTarget:n[r],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,n=this._hoveredTargets,s=this.targets,o=Math.max(n.length,s.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var r=0;r<o;r++)this.fireSyntheticInOutEvents(s[r],t,{oldTarget:n[r],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var n,s,o,r=i.oldTarget,a=r!==e,l=i.canvasEvtIn,d=i.canvasEvtOut;a&&(n={e:t,target:e,previousTarget:r},s={e:t,target:r,nextTarget:e}),o=e&&a,r&&a&&(d&&this.fire(d,s),r.fire(i.evtOut,s)),o&&(l&&this.fire(l,n),e.fire(i.evtIn,n))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var n=i.x,s=i.y,o=t.action,r=!1,a=t.actionHandler;a&&(r=a(e,t,n,s)),"drag"===o&&r&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||r},_fire:s.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,n=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,s=(!n||!n.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));s?this.setCursor(this.getCornerCursor(s,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var n=t.controls[e];return n.cursorStyleHandler(i,n,t)}})}(),function(){var e=Math.min,t=Math.max;s.util.object.extend(s.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,n=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(n,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),n=this._createGroup(e);this._hoveredTarget=n,this._setActiveObject(n,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new s.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new s.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var n,o=[],r=this._groupSelector.ex,a=this._groupSelector.ey,l=r+this._groupSelector.left,d=a+this._groupSelector.top,h=new s.Point(e(r,l),e(a,d)),c=new s.Point(t(r,l),t(a,d)),u=!this.selectionFullyContained,g=r===l&&a===d,p=this._objects.length;p--&&!((n=this._objects[p])&&n.selectable&&n.visible&&(u&&n.intersectsWithRect(h,c,!0)||n.isContainedWithinRect(h,c,!0)||u&&n.containsPoint(h,null,!0)||u&&n.containsPoint(c,null,!0))&&(o.push(n),g)););return o.length>1&&(o=o.filter((function(e){return!e.onSelect({e:i})}))),o},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),s.util.object.extend(s.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,n=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),o=this.toCanvasElement(n,e);return s.util.toDataURL(o,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,n=(t.height||this.height)*e,o=this.getZoom(),r=this.width,a=this.height,l=o*e,d=this.viewportTransform,h=(d[4]-(t.left||0))*e,c=(d[5]-(t.top||0))*e,u=this.interactive,g=[l,0,0,l,h,c],p=this.enableRetinaScaling,m=s.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=n,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=n,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=d,this.width=r,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),s.util.object.extend(s.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var n="string"===typeof e?JSON.parse(e):s.util.object.clone(e),o=this,r=n.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete n.clipPath,this._enlivenObjects(n.objects,(function(e){o.clear(),o._setBgOverlay(n,(function(){r?o._enlivenObjects([r],(function(i){o.clipPath=i[0],o.__setupCanvas.call(o,n,e,a,t)})):o.__setupCanvas.call(o,n,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,n){var s=this;t.forEach((function(e,t){s.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),n&&n()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var n=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,n),this.__setBgOverlay("overlayImage",e.overlayImage,i,n),this.__setBgOverlay("backgroundColor",e.background,i,n),this.__setBgOverlay("overlayColor",e.overlay,i,n)}else t&&t()},__setBgOverlay:function(e,t,i,n){var o=this;if(!t)return i[e]=!0,void(n&&n());"backgroundImage"===e||"overlayImage"===e?s.util.enlivenObjects([t],(function(t){o[e]=t[0],i[e]=!0,n&&n()})):this["set"+s.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,n&&n()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?s.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(n){i(n.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=s.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new s.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s=t.util.toFixed,o=t.util.string.capitalize,r=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,n=e.width,s=e.height,o=t.maxCacheSideLimit,r=t.minCacheSideLimit;if(n<=o&&s<=o&&n*s<=i)return n<r&&(e.width=r),s<r&&(e.height=r),e;var a=n/s,l=t.util.limitDimsByArea(a,i),d=t.util.capValue,h=d(r,l.x,o),c=d(r,l.y,o);return n>h&&(e.zoomX/=n/h,e.width=h,e.capped=!0),s>c&&(e.zoomY/=s/c,e.height=c,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,n=t.y*e.scaleY/this.scaleY;return{width:i+2,height:n+2,zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:n}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var i=e._currentTransform.target,n=e._currentTransform.action;if(this===i&&n.slice&&"scale"===n.slice(0,5))return!1}var s,o,r=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),l=t.minCacheSideLimit,d=a.width,h=a.height,c=a.zoomX,u=a.zoomY,g=d!==this.cacheWidth||h!==this.cacheHeight,p=this.zoomX!==c||this.zoomY!==u,m=g||p,f=0,_=0,v=!1;if(g){var b=this._cacheCanvas.width,C=this._cacheCanvas.height,y=d>b||h>C;v=y||(d<.9*b||h<.9*C)&&b>l&&C>l,y&&!a.capped&&(d>l||h>l)&&(f=.1*d,_=.1*h)}return this instanceof t.Text&&this.path&&(m=!0,v=!0,f+=this.getHeightOfLine(0)*this.zoomX,_+=this.getHeightOfLine(0)*this.zoomY),!!m&&(v?(r.width=Math.ceil(d+f),r.height=Math.ceil(h+_)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-o)+o,this.cacheWidth=d,this.cacheHeight=h,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(c,u),this.zoomX=c,this.zoomY=u,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,n={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:s(this.left,i),top:s(this.top,i),width:s(this.width,i),height:s(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:s(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:s(this.strokeMiterLimit,i),scaleX:s(this.scaleX,i),scaleY:s(this.scaleY,i),angle:s(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:s(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:s(this.skewX,i),skewY:s(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(n.clipPath=this.clipPath.toObject(e),n.clipPath.inverted=this.clipPath.inverted,n.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,n,e),this.includeDefaultValues||(n=this._removeDefaultValues(n)),n},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+o(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var n=this.canvas.getZoom(),s=this.canvas.getRetinaScaling();t*=n*s,i*=n*s}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var n="scaleX"===e||"scaleY"===e,s=this[e]!==i,o=!1;return n&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,s&&(o=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,o&&this.group.set("dirty",!0)):o&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var n=t.util.invertTransform(this.calcTransformMatrix());e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,n=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=n},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var n,s,o,a=this.getViewportTransform(),l=this.calcTransformMatrix();s="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(a,l),n=t.util.qrDecompose(l),e.save(),e.translate(n.translateX,n.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(n.angle-=180),e.rotate(r(this.group?n.angle:this.angle)),i.forActiveSelection||this.group?s&&this.drawBordersInGroup(e,n,i):s&&this.drawBorders(e,i),o&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,n=this.shadow,s=this.canvas,o=s&&s.viewportTransform[0]||1,r=s&&s.viewportTransform[3]||1;i=n.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),s&&s._isRetinaScaling()&&(o*=t.devicePixelRatio,r*=t.devicePixelRatio),e.shadowColor=n.color,e.shadowBlur=n.blur*t.browserShadowBlurConstant*(o+r)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=n.offsetX*o*i.scaleX,e.shadowOffsetY=n.offsetY*r*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,n=-this.width/2+t.offsetX||0,s=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,n,s):e.transform(1,0,0,1,n,s),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:n,offsetY:s}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var n,s=this._limitCacheSize(this._getCacheCanvasDimensions()),o=t.util.createCanvasElement(),r=this.canvas.getRetinaScaling(),a=s.x/this.scaleX/r,l=s.y/this.scaleY/r;o.width=a,o.height=l,(n=o.getContext("2d")).beginPath(),n.moveTo(0,0),n.lineTo(a,0),n.lineTo(a,l),n.lineTo(0,l),n.closePath(),n.translate(a/2,l/2),n.scale(s.zoomX/this.scaleX/r,s.zoomY/this.scaleY/r),this._applyPatternGradientTransform(n,i),n.fillStyle=i.toLive(e),n.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(r*this.scaleX/s.zoomX,r*this.scaleY/s.zoomY),e.strokeStyle=n.createPattern(o,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var n=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(n,e):t.Object._fromObject("Object",n,e)},cloneAsImage:function(e,i){var n=this.toCanvasElement(i);return e&&e(new t.Image(n)),this},toCanvasElement:function(e){e||(e={});var i=t.util,n=i.saveObjectTransform(this),s=this.group,o=this.shadow,r=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,d,h,c,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(d=p.blur,l=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(r(p.offsetX)+d)*r(l.scaleX),m.y=2*Math.round(r(p.offsetY)+d)*r(l.scaleY)),h=g.width+m.x,c=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(c);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=o,this.set("canvas",_),s&&(this.group=s),this.set(n).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var n=new t.Point(i.x,i.y),s=this._getLeftTopCoords();return this.angle&&(n=t.util.rotatePoint(n,s,r(-this.angle))),{x:n.x-s.x,y:n.y-s.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,s,o){var r=t[e];i=n(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=o?new r(i[o],i):new r(i);s&&s(e)}))}))},t.Object.__uid=0)}(t),function(){var e=s.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};s.util.object.extend(s.Object.prototype,{translateToGivenOrigin:function(e,n,o,r,a){var l,d,h,c=e.x,u=e.y;return"string"===typeof n?n=t[n]:n-=.5,"string"===typeof r?r=t[r]:r-=.5,"string"===typeof o?o=i[o]:o-=.5,"string"===typeof a?a=i[a]:a-=.5,d=a-o,((l=r-n)||d)&&(h=this._getTransformedDimensions(),c=e.x+l*h.x,u=e.y+d*h.y),new s.Point(c,u)},translateToCenterPoint:function(t,i,n){var o=this.translateToGivenOrigin(t,i,n,"center","center");return this.angle?s.util.rotatePoint(o,t,e(this.angle)):o},translateToOriginPoint:function(t,i,n){var o=this.translateToGivenOrigin(t,"center","center",i,n);return this.angle?s.util.rotatePoint(o,t,e(this.angle)):o},getCenterPoint:function(){var e=new s.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,n){var o,r,a=this.getCenterPoint();return o="undefined"!==typeof i&&"undefined"!==typeof n?this.translateToGivenOrigin(a,"center","center",i,n):new s.Point(this.left,this.top),r=new s.Point(t.x,t.y),this.angle&&(r=s.util.rotatePoint(r,a,-e(this.angle))),r.subtractEquals(o)},setPositionByOrigin:function(e,t,i){var n=this.translateToCenterPoint(e,t,i),s=this.translateToOriginPoint(n,this.originX,this.originY);this.set("left",s.x),this.set("top",s.y)},adjustPosition:function(i){var n,o,r=e(this.angle),a=this.getScaledWidth(),l=s.util.cos(r)*a,d=s.util.sin(r)*a;n="string"===typeof this.originX?t[this.originX]:this.originX-.5,o="string"===typeof i?t[i]:i-.5,this.left+=l*(o-n),this.top+=d*(o-n),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=s.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,n=e.transformPoint;e.object.extend(s.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new s.Point(i.tl.x,i.tl.y),new s.Point(i.tr.x,i.tr.y),new s.Point(i.br.x,i.br.y),new s.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,n){var o=this.getCoords(i,n);return"Intersection"===s.Intersection.intersectPolygonRectangle(o,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===s.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var n=this.getCoords(t,i),s=t?e.aCoords:e.lineCoords,o=0,r=e._getImageLines(s);o<4;o++)if(!e.containsPoint(n[o],r))return!1;return!0},isContainedWithinRect:function(e,t,i,n){var s=this.getBoundingRect(i,n);return s.left>=e.x&&s.left+s.width<=t.x&&s.top>=e.y&&s.top+s.height<=t.y},containsPoint:function(e,t,i,n){var s=this._getCoords(i,n),o=(t=t||this._getImageLines(s),this._findCrossPoints(e,t));return 0!==o&&o%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var n={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(n,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,n,s,o=0;for(var r in t)if(!((s=t[r]).o.y<e.y&&s.d.y<e.y)&&!(s.o.y>=e.y&&s.d.y>=e.y)&&(s.o.x===s.d.x&&s.o.x>=e.x?n=s.o.x:(0,i=(s.d.y-s.o.y)/(s.d.x-s.o.x),n=-(e.y-0*e.x-(s.o.y-i*s.o.x))/(0-i)),n>=e.x&&(o+=1),2===o))break;return o},getBoundingRect:function(t,i){var n=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(n)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),s=this.padding,o=t(this.angle),r=e.cos(o)*s,a=e.sin(o)*s,l=r+a,d=r-a,h=this.calcACoords(),c={tl:n(h.tl,i),tr:n(h.tr,i),bl:n(h.bl,i),br:n(h.br,i)};return s&&(c.tl.x-=d,c.tl.y-=l,c.tr.x+=l,c.tr.y-=d,c.bl.x-=l,c.bl.y+=d,c.br.x+=d,c.br.y+=l),c},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=this.getViewportTransform(),s=i(n,t),o=i(s,e),r=(o=i(o,[1/n[0],0,0,1/n[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(r,o,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=i(t,e),o=this._getTransformedDimensions(),r=o.x/2,a=o.y/2;return{tl:n({x:-r,y:-a},s),tr:n({x:r,y:-a},s),bl:n({x:-r,y:a},s),br:n({x:r,y:a},s)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var n=this.transformMatrixKey(e),s=this.matrixCache||(this.matrixCache={});return s.key===n?s.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),s.key=n,s.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var n=this._calcTranslateMatrix(),s={angle:this.angle,translateX:n[4],translateY:n[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(s),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var n,s,o,r=0===t&&0===i;if(this.strokeUniform?(s=this.width,o=this.height):(s=(n=this._getNonTransformedDimensions()).x,o=n.y),r)return this._finalizeDimensions(s*this.scaleX,o*this.scaleY);var a=e.sizeAfterTransform(s,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return n(t,e,!0).scalarAdd(2*this.padding)}})}(),s.util.object.extend(s.Object.prototype,{sendToBack:function(){return this.group?s.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?s.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?s.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?s.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?s.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new s.Color(t),n=e+": "+i.toRgb()+"; ",o=i.getAlpha();return 1!==o&&(n+=e+"-opacity: "+o.toString()+"; "),n}return e+": none; "}var t=s.util.toFixed;s.util.object.extend(s.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",n=this.strokeWidth?this.strokeWidth:"0",s=this.strokeDashArray?this.strokeDashArray.join(" "):"none",o=this.strokeDashOffset?this.strokeDashOffset:"0",r=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",d="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",c=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",n,"; ","stroke-dasharray: ",s,"; ","stroke-linecap: ",r,"; ","stroke-dashoffset: ",o,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",l,"; ",u,"fill-rule: ",i,"; ","opacity: ",d,";",c,h].join("")},getSvgSpanStyles:function(t,i){var n="; ",s=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+n:"",o=t.strokeWidth?"stroke-width: "+t.strokeWidth+n:"",r=(s=s,t.fontSize?"font-size: "+t.fontSize+"px"+n:""),a=t.fontStyle?"font-style: "+t.fontStyle+n:"",l=t.fontWeight?"font-weight: "+t.fontWeight+n:"",d=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",c=this.getSvgTextDecoration(t);return c&&(c="text-decoration: "+c+n),[h,o,s,r,a,l,c,d,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+s.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=s.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,n=t.additionalTransform||"",s=[this.getSvgTransform(!0,n),this.getSvgCommons()].join(""),o=e.indexOf("COMMON_PARTS");return e[o]=s,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,n,o=(t=t||{}).noStyle,r=t.reviver,a=o?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",d=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",c=d&&d.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return d&&(d.clipPathId="CLIPPATH_"+s.Object.__uid++,n='<clipPath id="'+d.clipPathId+'" >\n'+d.toClipPathSVG(r)+"</clipPath>\n"),c&&m.push("<g ",l,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),c?"":l+this.getSvgCommons()," >\n"),i=[a,h,o?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),d&&m.push(n),m.push(e.join("")),m.push("</g>\n"),c&&m.push("</g>\n"),r?r(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=s.util.object.extend,t="stateProperties";function i(t,i,n){var s={};n.forEach((function(e){s[e]=t[e]})),e(t[i],s,!0)}function n(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var s=0,o=e.length;s<o;s++)if(!n(e[s],t[s]))return!1;return!0}if(e&&"object"===typeof e){var r,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(s=0,o=a.length;s<o;s++)if("canvas"!==(r=a[s])&&"group"!==r&&!n(e[r],t[r]))return!1;return!0}}s.util.object.extend(s.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!n(this[i],this,!0)},saveState:function(e){var n=e&&e.propertySet||t,s="_"+n;return this[s]?(i(this,s,this[n]),e&&e.stateProperties&&i(this,s,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=s.util.degreesToRadians;s.util.object.extend(s.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,n,s,o=e.x,r=e.y,a=Object.keys(this.oCoords),l=a.length-1;for(this.__corner=0;l>=0;l--)if(s=a[l],this.isControlVisible(s)&&(n=this._getImageLines(t?this.oCoords[s].touchCorner:this.oCoords[s].corner),0!==(i=this._findCrossPoints({x:o,y:r},n))&&i%2===1))return this.__corner=s,s;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),n=this._calculateCurrentDimensions(),s=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/s[0],1/s[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-n.x/2,-n.y/2,n.x,n.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),n=this.borderScaleFactor,s=i.x+n,o=i.y+n,r="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-s/2,-o/2,s,o),r&&(e.beginPath(),this.forEachControl((function(t,i,n){t.withConnection&&t.getVisibility(n,i)&&(a=!0,e.moveTo(t.x*s,t.y*o),e.lineTo(t.x*s+t.offsetX,t.y*o+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var n=s.util.sizeAfterTransform(this.width,this.height,t),o=this.strokeWidth,r=this.strokeUniform,a=this.borderScaleFactor,l=n.x+o*(r?this.canvas.getZoom():t.scaleX)+a,d=n.y+o*(r?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-l/2,-d/2,l,d),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,n,o=this.canvas.getRetinaScaling();return e.setTransform(o,0,0,o,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(o,r,a){n=a.oCoords[r],o.getVisibility(a,r)&&(i&&(n=s.util.transformPoint(n,i)),o.render(e,n.x,n.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),s.util.object.extend(s.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),r.requestRenderAll(),o()},onComplete:function(){e.setCoords(),n()}})},fxCenterObjectV:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),r.requestRenderAll(),o()},onComplete:function(){e.setCoords(),n()}})},fxRemove:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),r.requestRenderAll(),o()},onComplete:function(){r.remove(e),n()}})}}),s.util.object.extend(s.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],n=[];for(e in arguments[0])i.push(e);for(var s=0,o=i.length;s<o;s++)e=i[s],t=s!==o-1,n.push(this._animate(e,arguments[0][e],arguments[1],t));return n}return this._animate.apply(this,arguments)},_animate:function(e,t,i,n){var o,r=this;t=t.toString(),i=i?s.util.object.clone(i):{},~e.indexOf(".")&&(o=e.split("."));var a=r.colorProperties.indexOf(e)>-1||o&&r.colorProperties.indexOf(o[1])>-1,l=o?this.get(o[0])[o[1]]:this.get(e);"from"in i||(i.from=l),a||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var d={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,n){return i.abort.call(r,e,t,n)},onChange:function(t,s,a){o?r[o[0]][o[1]]=t:r.set(e,t),n||i.onChange&&i.onChange(t,s,a)},onComplete:function(e,t,s){n||(r.setCoords(),i.onComplete&&i.onComplete(e,t,s))}};return a?s.util.animateColor(d.startValue,d.endValue,d.duration,d):s.util.animate(d)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s={x1:1,x2:1,y1:1,y2:1};function o(e,t){var i=e.origin,n=e.axis1,s=e.axis2,o=e.dimension,r=t.nearest,a=t.center,l=t.farthest;return function(){switch(this.get(i)){case r:return Math.min(this.get(n),this.get(s));case a:return Math.min(this.get(n),this.get(s))+.5*this.get(o);case l:return Math.max(this.get(n),this.get(s))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof s[e]&&this._setWidthHeight(),this},_getLeftToOriginX:o({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:o({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,n=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:n,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,n,s){s=s||{};var o=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),r=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];n(new t.Line(r,i(o,s)))},t.Line.fromObject=function(e,i){var s=n(e,!0);s.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",s,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,n=(this.endAngle-this.startAngle)%360;if(0===n)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var s=i(this.startAngle),o=i(this.endAngle),r=this.radius;e=['<path d="M '+t.util.cos(s)*r+" "+t.util.sin(s)*r," A "+r+" "+r," 0 ",+(n>180?"1":"0")+" 1"," "+t.util.cos(o)*r+" "+t.util.sin(o)*r,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var n,s=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(n=s)&&n.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,i(new t.Circle(s))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var n=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);n.left=(n.left||0)-n.rx,n.top=(n.top||0)-n.ry,i(new t.Ellipse(n))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,n=this.width,s=this.height,o=-this.width/2,r=-this.height/2,a=0!==t||0!==i,l=.4477152502;e.beginPath(),e.moveTo(o+t,r),e.lineTo(o+n-t,r),a&&e.bezierCurveTo(o+n-l*t,r,o+n,r+l*i,o+n,r+i),e.lineTo(o+n,r+s-i),a&&e.bezierCurveTo(o+n,r+s-l*i,o+n-l*t,r+s,o+n-t,r+s),e.lineTo(o+t,r+s),a&&e.bezierCurveTo(o+l*t,r+s,o,r+s-l*i,o,r+s-i),e.lineTo(o,r+i),a&&e.bezierCurveTo(o,r+l*i,o+l*t,r,o+t,r),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,n,s){if(!e)return n(null);s=s||{};var o=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var r=new t.Rect(i(s?t.util.object.clone(s):{},o));r.visible=r.visible&&r.width>0&&r.height>0,n(r)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.array.min,s=t.util.array.max,o=t.util.toFixed,r=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return r(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),n=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-n,this.height=i.height-n,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+n/2,y:i.top-this.strokeWidth/2+n/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+n/2,y:i.top+this.height/2+n/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=n(e,"x")||0,i=n(e,"y")||0;return{left:t,top:i,width:(s(e,"x")||0)-t,height:(s(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,n=this.pathOffset.y,s=t.Object.NUM_FRACTION_DIGITS,r=0,a=this.points.length;r<a;r++)e.push(o(this.points[r].x-i,s),",",o(this.points[r].y-n,s)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,n=this.pathOffset.x,s=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-n,this.points[0].y-s);for(var o=0;o<i;o++)t=this.points[o],e.lineTo(t.x-n,t.y-s);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(n,s,o){if(!n)return s(null);o||(o={});var r=t.parsePointsAttribute(n.getAttribute("points")),a=t.parseAttributes(n,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,s(new t[e](r,i(a,o)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,n=t.util.array.max,s=t.util.object.extend,o=t.util.object.clone,r=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=o(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,n=0,s=0,o=0,r=0,a=0,l=-this.pathOffset.x,d=-this.pathOffset.y;e.beginPath();for(var h=0,c=this.path.length;h<c;++h)switch((t=this.path[h])[0]){case"L":s=t[1],o=t[2],e.lineTo(s+l,o+d);break;case"M":i=s=t[1],n=o=t[2],e.moveTo(s+l,o+d);break;case"C":s=t[5],o=t[6],r=t[3],a=t[4],e.bezierCurveTo(t[1]+l,t[2]+d,r+l,a+d,s+l,o+d);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+d,t[3]+l,t[4]+d),s=t[3],o=t[4],r=t[1],a=t[2];break;case"z":case"Z":s=i,o=n,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return s(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+r(-this.pathOffset.x,e)+", "+r(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,s,o=[],r=[],a=0,l=0,d=0,h=0,c=0,u=this.path.length;c<u;++c){switch((e=this.path[c])[0]){case"L":d=e[1],h=e[2],s=[];break;case"M":a=d=e[1],l=h=e[2],s=[];break;case"C":s=t.util.getBoundsOfCurve(d,h,e[1],e[2],e[3],e[4],e[5],e[6]),d=e[5],h=e[6];break;case"Q":s=t.util.getBoundsOfCurve(d,h,e[1],e[2],e[1],e[2],e[3],e[4]),d=e[3],h=e[4];break;case"z":case"Z":d=a,h=l}s.forEach((function(e){o.push(e.x),r.push(e.y)})),o.push(d),r.push(h)}var g=i(o)||0,p=i(r)||0;return{left:g,top:p,width:(n(o)||0)-g,height:(n(r)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var n=e.sourcePath;t.loadSVGFromURL(n,(function(n){var s=n[0];s.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){s.clipPath=e[0],i&&i(s)})):i&&i(s)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,n){var o=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new t.Path(o.d,s(o,n)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,n=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var n=this._objects.length;n--;)this._objects[n].group=this;if(i)this._updateObjectsACoords();else{var s=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),s||this._calcBounds(),this._updateObjectsCoords(s),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,n=e.top;e.set({left:i-t.x,top:n-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var n=this._objects.length;if(this.useSetOnGroup)for(;n--;)this._objects[n].setOnGroup(e,i);if("canvas"===e)for(;n--;)this._objects[n]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,n=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var n=t.includeDefaultValues;t.includeDefaultValues=i;var s=t.toObject(e);return t.includeDefaultValues=n,s})),s=t.Object.prototype.toObject.call(this,e);return s.objects=n,s},toDatalessObject:function(e){var i,n=this.sourcePath;if(n)i=n;else{var s=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=s;var n=t.toDatalessObject(e);return t.includeDefaultValues=i,n}))}var o=t.Object.prototype.toDatalessObject.call(this,e);return o.objects=i,o},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,n=this._objects.length;i<n;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var n=this.cacheWidth/this.zoomX,s=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-n/2,-s/2,n,s)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var n=this.toObject();delete n.objects;var s=new t.ActiveSelection([]);return s.set(n),s.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=s,e.dirty=!0,i.add(e)})),s.canvas=i,s._objects=e,i._activeObject=s,s.setCoords(),s}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,n,s,o=[],r=[],a=["tr","br","bl","tl"],l=0,d=this._objects.length,h=a.length;l<d;++l){for(n=(t=this._objects[l]).calcACoords(),s=0;s<h;s++)i=a[s],o.push(n[i].x),r.push(n[i].y);t.aCoords=n}this._getBounds(o,r,e)},_getBounds:function(e,s,o){var r=new t.Point(i(e),i(s)),a=new t.Point(n(e),n(s)),l=r.y||0,d=r.x||0,h=a.x-r.x||0,c=a.y-r.y||0;this.width=h,this.height=c,o||this.setPositionByOrigin({x:d,y:l},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,n=this._objects.length;i<n;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,n=this._objects.length;i<n;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var n=e.objects,s=t.util.object.clone(e,!0);delete s.objects,"string"!==typeof n?t.util.enlivenObjects(n,(function(n){t.util.enlivenObjectEnlivables(e,s,(function(){i&&i(new t.Group(n,s,!0))}))})):t.loadSVGFromURL(n,(function(o){var r=t.util.groupSVGElements(o,e,n),a=s.clipPath;delete s.clipPath,r.set(s),a?t.util.enlivenObjects([a],(function(e){r.clipPath=e[0],i&&i(r)})):i&&i(r)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var n=this._objects.length;n--;)this._objects[n].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),n=new t.Group([]);if(delete i.type,n.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=n})),n._objects=e,!this.canvas)return n;var s=this.canvas;return s.add(n),s._activeObject=n,n.setCoords(),n},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",e,t),"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var n=0,s=this._objects.length;n<s;n++)this._objects[n]._renderControls(e,i);e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(n){delete e.objects,i&&i(new t.ActiveSelection(n,e,!0))}))})}(t),function(e){"use strict";var t=s.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?s.warn("fabric.Image is already defined."):(s.Image=s.util.createClass(s.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:s.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:s.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+s.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=s.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){s.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var n=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(n.resizeFilter=this.resizeFilter.toObject()),n},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],n=this._element,o=-this.width/2,r=-this.height/2,a="",l="";if(!n)return[];if(this.hasCrop()){var d=s.Object.__uid++;t.push('<clipPath id="imageCrop_'+d+'">\n','\t<rect x="'+o+'" y="'+r+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+d+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',o-this.cropX,'" y="',r-this.cropY,'" width="',n.width||n.naturalWidth,'" height="',n.height||n.height,l,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',o,'" y="',r,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return s.util.loadImage(e,(function(e,n){this.setElement(e,i),this._setWidthHeight(),t&&t(this,n)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),n=i.scaleX,o=i.scaleY,r=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||n>t&&o>t)return this._element=r,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=n,void(this._lastScaleY=o);s.filterBackend||(s.filterBackend=s.initFilterBackend());var a=s.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,d=r.width,h=r.height;a.width=d,a.height=h,this._element=a,this._lastScaleX=e.scaleX=n,this._lastScaleY=e.scaleY=o,s.filterBackend.applyFilters([e],r,d,h,this._element,l),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,n=t.naturalHeight||t.height;if(this._element===this._originalElement){var o=s.util.createCanvasElement();o.width=i,o.height=n,this._element=o,this._filteredEl=o}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,n),this._lastScaleX=1,this._lastScaleY=1;return s.filterBackend||(s.filterBackend=s.initFilterBackend()),s.filterBackend.applyFilters(e,this._originalElement,i,n,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){s.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){s.util.setImageSmoothing(e,this.imageSmoothing),s.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,n=this._filterScalingY,s=this.width,o=this.height,r=Math.min,a=Math.max,l=a(this.cropX,0),d=a(this.cropY,0),h=t.naturalWidth||t.width,c=t.naturalHeight||t.height,u=l*i,g=d*n,p=r(s*i,h-u),m=r(o*n,c-g),f=-s/2,_=-o/2,v=r(s,h/i-l),b=r(o,c/n-d);t&&e.drawImage(t,u,g,p,m,f,_,v,b)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(s.util.getById(e),t),s.util.addClass(this.getElement(),s.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?s.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=s.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,n=this._element.height,o=1,r=1,a=0,l=0,d=0,h=0,c=this.width,u=this.height,g={width:c,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(o=c/i,r=u/n):("meet"===t.meetOrSlice&&(e=(c-i*(o=r=s.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-n*r)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(e=i-c/(o=r=s.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(d=e/2),"Max"===t.alignX&&(d=e),e=n-u/r,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=c/o,n=u/r)),{width:i,height:n,scaleX:o,scaleY:r,offsetLeft:a,offsetTop:l,cropX:d,cropY:h}}}),s.Image.CSS_CANVAS="canvas-img",s.Image.prototype.getSvgSrc=s.Image.prototype.getSrc,s.Image.fromObject=function(e,t){var i=s.util.object.clone(e);s.util.loadImage(i.src,(function(e,n){n?t&&t(null,!0):s.Image.prototype._initFilters.call(i,i.filters,(function(n){i.filters=n||[],s.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(n){i.resizeFilter=n[0],s.util.enlivenObjectEnlivables(i,i,(function(){var n=new s.Image(e,i);t(n,!1)}))}))}))}),null,i.crossOrigin)},s.Image.fromURL=function(e,t,i){s.util.loadImage(e,(function(e,n){t&&t(new s.Image(e,i),n)}),null,i&&i.crossOrigin)},s.Image.ATTRIBUTE_NAMES=s.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),s.Image.fromElement=function(e,i,n){var o=s.parseAttributes(e,s.Image.ATTRIBUTE_NAMES);s.Image.fromURL(o["xlink:href"],i,t(n?s.util.object.clone(n):{},o))})}(t),s.util.object.extend(s.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,n=e.onChange||t,o=this;return s.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){o.rotate(e),n()},onComplete:function(){o.setCoords(),i()}})}}),s.util.object.extend(s.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",n=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(n,i),e.compileShader(n),!!e.getShaderParameter(n,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}s.isWebglSupported=function(t){if(s.isLikelyNode)return!1;t=t||s.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),n=i.getContext("webgl")||i.getContext("experimental-webgl"),o=!1;if(n){s.maxTextureSize=n.getParameter(n.MAX_TEXTURE_SIZE),o=s.maxTextureSize>=t;for(var r=["highp","mediump","lowp"],a=0;a<3;a++)if(e(n,r[a])){s.webGlPrecision=r[a];break}}return this.isSupported=o,o},s.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,n="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var o="undefined"!==typeof ArrayBuffer,l="undefined"!==typeof Uint8ClampedArray;if(n&&i&&o&&l){var d=s.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(s.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var c,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:d};d.width=e,d.height=t,c=window.performance.now(),r.call(g,this.gl,g),u=window.performance.now()-c,c=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-c?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=r}},createWebGLCanvas:function(e,t){var i=s.util.createCanvasElement();i.width=e,i.height=t;var n={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},o=i.getContext("webgl",n);o||(o=i.getContext("experimental-webgl",n)),o&&(o.clearColor(0,0,0,0),this.canvas=i,this.gl=o)},applyFilters:function(e,t,i,n,s,o){var r,a=this.gl;o&&(r=this.getCachedTexture(o,t));var l={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:n,destinationWidth:i,destinationHeight:n,context:a,sourceTexture:this.createTexture(a,i,n,!r&&t),targetTexture:this.createTexture(a,i,n),originalTexture:r||this.createTexture(a,i,n,!r&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},d=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,d),e.forEach((function(e){e&&e.applyTo(l)})),function(e){var t=e.targetCanvas,i=t.width,n=t.height,s=e.destinationWidth,o=e.destinationHeight;i===s&&n===o||(t.width=s,t.height=o)}(l),this.copyGLTo2D(a,l),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(l.sourceTexture),a.deleteTexture(l.targetTexture),a.deleteFramebuffer(d),s.getContext("2d").setTransform(1,0,0,1,0,0),l},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,n,s){var o=e.createTexture();return e.bindTexture(e.TEXTURE_2D,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,s||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,s||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),o},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:r,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var n=e.getParameter(i.UNMASKED_RENDERER_WEBGL),s=e.getParameter(i.UNMASKED_VENDOR_WEBGL);n&&(t.renderer=n.toLowerCase()),s&&(t.vendor=s.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}s.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,n,s){var o=s.getContext("2d");o.drawImage(t,0,0,i,n);var r={sourceWidth:i,sourceHeight:n,imageData:o.getImageData(0,0,i,n),originalEl:t,originalImageData:o.getImageData(0,0,i,n),canvasEl:s,ctx:o,filterBackend:this};return e.forEach((function(e){e.applyTo(r)})),r.imageData.width===i&&r.imageData.height===n||(s.width=r.imageData.width,s.height=r.imageData.height),o.putImageData(r.imageData,0,0),r}}}(),s.Image=s.Image||{},s.Image.filters=s.Image.filters||{},s.Image.filters.BaseFilter=s.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==s.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+s.webGlPrecision+" float"));var n=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(n,i),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(n));var o=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(o,t),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(o));var r=e.createProgram();if(e.attachShader(r,n),e.attachShader(r,o),e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(r));var a=this.getAttributeLocations(e,r),l=this.getUniformLocations(e,r)||{};return l.uStepW=e.getUniformLocation(r,"uStepW"),l.uStepH=e.getUniformLocation(r,"uStepH"),{program:r,attributeLocations:a,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var n=t.aPosition,s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.enableVertexAttribArray(n),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,n=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(n.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(n,t,i)),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.targetTexture,0)):(n.bindFramebuffer(n.FRAMEBUFFER,null),n.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=s.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),s.Image.filters.BaseFilter.fromObject=function(e,t){var i=new s.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.ColorMatrix=n(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,n,s,o,r=e.imageData.data,a=r.length,l=this.matrix,d=this.colorsOnly;for(o=0;o<a;o+=4)t=r[o],i=r[o+1],n=r[o+2],d?(r[o]=t*l[0]+i*l[1]+n*l[2]+255*l[4],r[o+1]=t*l[5]+i*l[6]+n*l[7]+255*l[9],r[o+2]=t*l[10]+i*l[11]+n*l[12]+255*l[14]):(s=r[o+3],r[o]=t*l[0]+i*l[1]+n*l[2]+s*l[3]+255*l[4],r[o+1]=t*l[5]+i*l[6]+n*l[7]+s*l[8]+255*l[9],r[o+2]=t*l[10]+i*l[11]+n*l[12]+s*l[13]+255*l[14],r[o+3]=t*l[15]+i*l[16]+n*l[17]+s*l[18]+255*l[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,n=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],s=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,n),e.uniform4fv(t.uConstants,s)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Brightness=n(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,n=i.length,s=Math.round(255*this.brightness);for(t=0;t<n;t+=4)i[t]=i[t]+s,i[t+1]=i[t+1]+s,i[t+2]=i[t+2]+s}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.Convolute=s(n.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),n=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,n)),e.programCache[i]},applyTo2d:function(e){var t,i,n,s,o,r,a,l,d,h,c,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),b=p.width,C=p.height,y=e.ctx.createImageData(b,C),w=y.data,S=this.opaque?1:0;for(c=0;c<C;c++)for(h=0;h<b;h++){for(o=4*(c*b+h),t=0,i=0,n=0,s=0,g=0;g<_;g++)for(u=0;u<_;u++)r=h+u-v,(a=c+g-v)<0||a>=C||r<0||r>=b||(l=4*(a*b+r),d=f[g*_+u],t+=m[l]*d,i+=m[l+1]*d,n+=m[l+2]*d,S||(s+=m[l+3]*d));w[o]=t,w[o+1]=i,w[o+2]=n,w[o+3]=S?m[o+3]:s}e.imageData=y},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Grayscale=n(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,n=e.imageData.data,s=n.length,o=this.mode;for(t=0;t<s;t+=4)"average"===o?i=(n[t]+n[t+1]+n[t+2])/3:"lightness"===o?i=(Math.min(n[t],n[t+1],n[t+2])+Math.max(n[t],n[t+1],n[t+2]))/2:"luminosity"===o&&(i=.21*n[t]+.72*n[t+1]+.07*n[t+2]),n[t]=i,n[t+1]=i,n[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Invert=n(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,n=i.length;for(t=0;t<n;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.Noise=s(n.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,n=e.imageData.data,s=n.length,o=this.noise;for(t=0,s=n.length;t<s;t+=4)i=(.5-Math.random())*o,n[t]+=i,n[t+1]+=i,n[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Pixelate=n(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,n,s,o,r,a,l,d,h,c,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(n=0;n<m;n+=this.blocksize)for(s=g[t=4*i*m+4*n],o=g[t+1],r=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),c=Math.min(n+this.blocksize,m),l=i;l<h;l++)for(d=n;d<c;d++)g[t=4*l*m+4*d]=s,g[t+1]=o,g[t+2]=r,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.RemoveColor=s(n.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,n,s,o,r=e.imageData.data,a=255*this.distance,l=new t.Color(this.color).getSource(),d=[l[0]-a,l[1]-a,l[2]-a],h=[l[0]+a,l[1]+a,l[2]+a];for(i=0;i<r.length;i+=4)n=r[i],s=r[i+1],o=r[i+2],n>d[0]&&s>d[1]&&o>d[2]&&n<h[0]&&s<h[1]&&o<h[2]&&(r[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var n=new t.Color(this.color).getSource(),s=parseFloat(this.distance),o=[0+n[0]/255-s,0+n[1]/255-s,0+n[2]/255-s,1],r=[n[0]/255+s,n[1]/255+s,n[2]/255+s,1];e.uniform4fv(i.uLow,o),e.uniform4fv(i.uHigh,r)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass,s={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in s)i[o]=n(i.ColorMatrix,{type:o,matrix:s[o],mainParameter:!1,colorsOnly:!0}),t.Image.filters[o].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,n=t.util.createClass;i.BlendColor=n(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,n,s,o,r,a,l,d=e.imageData.data,h=d.length,c=1-this.alpha;i=(l=new t.Color(this.color).getSource())[0]*this.alpha,n=l[1]*this.alpha,s=l[2]*this.alpha;for(var u=0;u<h;u+=4)switch(o=d[u],r=d[u+1],a=d[u+2],this.mode){case"multiply":d[u]=o*i/255,d[u+1]=r*n/255,d[u+2]=a*s/255;break;case"screen":d[u]=255-(255-o)*(255-i)/255,d[u+1]=255-(255-r)*(255-n)/255,d[u+2]=255-(255-a)*(255-s)/255;break;case"add":d[u]=o+i,d[u+1]=r+n,d[u+2]=a+s;break;case"diff":case"difference":d[u]=Math.abs(o-i),d[u+1]=Math.abs(r-n),d[u+2]=Math.abs(a-s);break;case"subtract":d[u]=o-i,d[u+1]=r-n,d[u+2]=a-s;break;case"darken":d[u]=Math.min(o,i),d[u+1]=Math.min(r,n),d[u+2]=Math.min(a,s);break;case"lighten":d[u]=Math.max(o,i),d[u+1]=Math.max(r,n),d[u+2]=Math.max(a,s);break;case"overlay":d[u]=i<128?2*o*i/255:255-2*(255-o)*(255-i)/255,d[u+1]=n<128?2*r*n/255:255-2*(255-r)*(255-n)/255,d[u+2]=s<128?2*a*s/255:255-2*(255-a)*(255-s)/255;break;case"exclusion":d[u]=i+o-2*i*o/255,d[u+1]=n+r-2*n*r/255,d[u+2]=s+a-2*s*a/255;break;case"tint":d[u]=i+o*c,d[u+1]=n+r*c,d[u+2]=s+a*c}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var n=new t.Color(this.color).getSource();n[0]=this.alpha*n[0]/255,n[1]=this.alpha*n[1]/255,n[2]=this.alpha*n[2]/255,n[3]=this.alpha,e.uniform4fv(i.uColor,n)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,n=t.util.createClass;i.BlendImage=n(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,n,s,o,r,a,l,d,h,c,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,b=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),c=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):c.clearRect(0,0,_,v),c.setTransform(b.scaleX,0,0,b.scaleY,b.left,b.top),c.drawImage(b._element,0,0,_,v),u=c.getImageData(0,0,_,v).data;for(var C=0;C<f;C+=4)switch(r=m[C],a=m[C+1],l=m[C+2],d=m[C+3],i=u[C],n=u[C+1],s=u[C+2],o=u[C+3],this.mode){case"multiply":m[C]=r*i/255,m[C+1]=a*n/255,m[C+2]=l*s/255,m[C+3]=d*o/255;break;case"mask":m[C+3]=o}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(n){var s=t.util.object.clone(e);s.image=n,i(new t.Image.filters.BlendImage(s))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,n=Math.floor,s=Math.sqrt,o=Math.abs,r=Math.round,a=Math.sin,l=Math.ceil,d=t.Image.filters,h=t.util.createClass;d.Resize=h(d.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var n=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,n)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),n=new Array(i),s=1;s<=i;s++)n[s-1]=e(s*t);return n},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,n=1;n<=e;n++)t[n-1]=n+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,n=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/n;var s,o=t.width,a=t.height,l=r(o*i),d=r(a*n);"sliceHack"===this.resizeType?s=this.sliceByTwo(e,o,a,l,d):"hermite"===this.resizeType?s=this.hermiteFastResize(e,o,a,l,d):"bilinear"===this.resizeType?s=this.bilinearFiltering(e,o,a,l,d):"lanczos"===this.resizeType&&(s=this.lanczosResize(e,o,a,l,d)),e.imageData=s},sliceByTwo:function(e,i,s,o,r){var a,l,d=e.imageData,h=.5,c=!1,u=!1,g=i*h,p=s*h,m=t.filterBackend.resources,f=0,_=0,v=i,b=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<s)&&(a.width=1.5*i,a.height=s),(l=a.getContext("2d")).clearRect(0,0,1.5*i,s),l.putImageData(d,0,0),o=n(o),r=n(r);!c||!u;)i=g,s=p,o<n(g*h)?g=n(g*h):(g=o,c=!0),r<n(p*h)?p=n(p*h):(p=r,u=!0),l.drawImage(a,f,_,i,s,v,b,g,p),f=v,_=b,b+=p;return l.getImageData(f,_,o,r)},lanczosResize:function(e,t,r,a,d){var h=e.imageData.data,c=e.ctx.createImageData(a,d),u=c.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=l(p*this.lanczosLobes/2),b=l(m*this.lanczosLobes/2),C={},y={},w={};return function e(l){var S,x,L,k,D,N,E,T,I,M,A;for(y.x=(l+.5)*p,w.x=n(y.x),S=0;S<d;S++){for(y.y=(S+.5)*m,w.y=n(y.y),D=0,N=0,E=0,T=0,I=0,x=w.x-v;x<=w.x+v;x++)if(!(x<0||x>=t)){M=n(1e3*o(x-y.x)),C[M]||(C[M]={});for(var R=w.y-b;R<=w.y+b;R++)R<0||R>=r||(A=n(1e3*o(R-y.y)),C[M][A]||(C[M][A]=g(s(i(M*f,2)+i(A*_,2))/1e3)),(L=C[M][A])>0&&(D+=L,N+=L*h[k=4*(R*t+x)],E+=L*h[k+1],T+=L*h[k+2],I+=L*h[k+3]))}u[k=4*(S*a+l)]=N/D,u[k+1]=E/D,u[k+2]=T/D,u[k+3]=I/D}return++l<a?e(l):c}(0)},bilinearFiltering:function(e,t,i,s,o){var r,a,l,d,h,c,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),b=e.imageData.data,C=e.ctx.createImageData(s,o),y=C.data;for(l=0;l<o;l++)for(d=0;d<s;d++)for(h=f*d-(r=n(f*d)),c=_*l-(a=n(_*l)),p=4*(a*t+r),u=0;u<4;u++)g=b[p+u]*(1-h)*(1-c)+b[p+4+u]*h*(1-c)+b[p+v+u]*c*(1-h)+b[p+v+4+u]*h*c,y[m++]=g;return C},hermiteFastResize:function(e,t,i,r,a){for(var d=this.rcpScaleX,h=this.rcpScaleY,c=l(d/2),u=l(h/2),g=e.imageData.data,p=e.ctx.createImageData(r,a),m=p.data,f=0;f<a;f++)for(var _=0;_<r;_++){for(var v=4*(_+f*r),b=0,C=0,y=0,w=0,S=0,x=0,L=0,k=(f+.5)*h,D=n(f*h);D<(f+1)*h;D++)for(var N=o(k-(D+.5))/u,E=(_+.5)*d,T=N*N,I=n(_*d);I<(_+1)*d;I++){var M=o(E-(I+.5))/c,A=s(T+M*M);A>1&&A<-1||(b=2*A*A*A-3*A*A+1)>0&&(L+=b*g[(M=4*(I+D*t))+3],y+=b,g[M+3]<255&&(b=b*g[M+3]/250),w+=b*g[M],S+=b*g[M+1],x+=b*g[M+2],C+=b)}m[v]=w/C,m[v+1]=S/C,m[v+2]=x/C,m[v+3]=L/y}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Contrast=n(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,n=i.length,s=Math.floor(255*this.contrast),o=259*(s+255)/(255*(259-s));for(t=0;t<n;t+=4)i[t]=o*(i[t]-128)+128,i[t+1]=o*(i[t+1]-128)+128,i[t+2]=o*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Saturation=n(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,n=e.imageData.data,s=n.length,o=-this.saturation;for(t=0;t<s;t+=4)i=Math.max(n[t],n[t+1],n[t+2]),n[t]+=i!==n[t]?(i-n[t])*o:0,n[t+1]+=i!==n[t+1]?(i-n[t+1])*o:0,n[t+2]+=i!==n[t+2]?(i-n[t+2])*o:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Vibrance=n(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,n,s,o=e.imageData.data,r=o.length,a=-this.vibrance;for(t=0;t<r;t+=4)i=Math.max(o[t],o[t+1],o[t+2]),n=(o[t]+o[t+1]+o[t+2])/3,s=2*Math.abs(i-n)/255*a,o[t]+=i!==o[t]?(i-o[t])*s:0,o[t+1]+=i!==o[t+1]?(i-o[t+1])*s:0,o[t+2]+=i!==o[t+2]?(i-o[t+2])*s:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Blur=n(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,n,s=e.filterBackend.resources,o=e.imageData.width,r=e.imageData.height;s.blurLayer1||(s.blurLayer1=t.util.createCanvasElement(),s.blurLayer2=t.util.createCanvasElement()),i=s.blurLayer1,n=s.blurLayer2,i.width===o&&i.height===r||(n.width=i.width=o,n.height=i.height=r);var a,l,d,h,c=i.getContext("2d"),u=n.getContext("2d"),g=15,p=.06*this.blur*.5;for(c.putImageData(e.imageData,0,0),u.clearRect(0,0,o,r),h=-15;h<=g;h++)d=p*(l=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,d,a),c.drawImage(n,0,0),u.globalAlpha=1,u.clearRect(0,0,n.width,n.height);for(h=-15;h<=g;h++)d=p*(l=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,a,d),c.drawImage(n,0,0),u.globalAlpha=1,u.clearRect(0,0,n.width,n.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return c.globalAlpha=1,c.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Gamma=n(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,n=this.gamma,s=i.length,o=1/n[0],r=1/n[1],a=1/n[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,s=256;t<s;t++)this.rVals[t]=255*Math.pow(t/255,o),this.gVals[t]=255*Math.pow(t/255,r),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,s=i.length;t<s;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Composed=n(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var n=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),s=new t.Image.filters.Composed({subFilters:n});return i&&i(s),s}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.HueRotation=n(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),n=t.util.sin(e),s=1/3,o=Math.sqrt(s)*n,r=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+r/3,this.matrix[1]=s*r-o,this.matrix[2]=s*r+o,this.matrix[5]=s*r+o,this.matrix[6]=i+s*r,this.matrix[7]=s*r-o,this.matrix[10]=s*r-o,this.matrix[11]=s*r+o,this.matrix[12]=i+s*r},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var n="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(n),cacheProperties:t.Object.prototype.cacheProperties.concat(n),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var e,t,i,n,s,o,r,a=0,l=this._textLines.length;a<l;a++)if(("justify"===this.textAlign||a!==l-1&&!this.isEndOfWrapping(a))&&(n=0,s=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(r=this.textLines[a].match(this._reSpacesAndTabs)))){i=r.length,e=(this.width-t)/i;for(var d=0,h=s.length;d<=h;d++)o=this.__charBounds[a][d],this._reSpaceAndTab.test(s[d])?(o.width+=e,o.kernedWidth+=e,o.left+=n,n+=e):o.left+=n}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var n=this.getLineWidth(t);n>e&&(e=n)}return e},_renderTextLine:function(e,t,i,n,s,o){this._renderChars(e,t,i,n,s,o)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,n,s,o,r,a,l=e.fillStyle,d=this._getLeftOffset(),h=this._getTopOffset(),c=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){n=this._textLines[p],i=this._getLineLeftOffset(p),u=0,c=0,s=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=n.length;f<_;f++)o=this.__charBounds[p][f],r=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(o.renderLeft,o.renderTop),e.rotate(o.angle),e.fillStyle=r,r&&e.fillRect(-o.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),o.width,t/this.lineHeight),e.restore()):r!==s?(a=d+i+c,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=s,s&&e.fillRect(a,h,u,t/this.lineHeight),c=o.left,u=o.width,s=r):u+=o.kernedWidth;r&&!g&&(a=d+i+c,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=r,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=l,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var n=t.charWidthsCache[i],s=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return n[s]||(n[s]={}),n[s]},_measureChar:function(e,t,i,n){var s,o,r,a,l=this.getFontCache(t),d=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(n),c=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==l[i]&&(r=l[i]),void 0!==l[e]&&(a=s=l[e]),h&&void 0!==l[d]&&(a=(o=l[d])-r),void 0===s||void 0===r||void 0===o){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===s&&(a=s=u.measureText(e).width,l[e]=s),void 0===r&&h&&i&&(r=u.measureText(i).width,l[i]=r),h&&void 0===o&&(o=u.measureText(d).width,l[d]=o,a=o-r),{width:s*c,kernedWidth:a*c}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,n,s,o,r,a,l=0,d=this._textLines[e],h=new Array(d.length),c=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<d.length;i++)n=d[i],o=this._getGraphemeBox(n,e,i,s),h[i]=o,l+=o.kernedWidth,s=n;if(h[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(r=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,r.y+=u.pathOffset.y,this.textAlign){case"left":c=g?a-l:0;break;case"center":c=(a-l)/2;break;case"right":c=g?0:a-l}for(c+=this.pathStartOffset*(g?-1:1),i=g?d.length-1:0;g?i>=0:i<d.length;g?i--:i++)o=h[i],c>a?c%=a:c<0&&(c+=a),this._setGraphemeOnPath(c,o,r),c+=o.kernedWidth}return{width:l,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,n){var s=e+i.kernedWidth/2,o=this.path,r=t.util.getPointOnPath(o.path,s,o.segmentsInfo);i.renderLeft=r.x-n.x,i.renderTop=r.y-n.y,i.angle=r.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,n,s){var o,r=this.getCompleteStyleDeclaration(t,i),a=n?this.getCompleteStyleDeclaration(t,i-1):{},l=this._measureChar(e,r,n,a),d=l.kernedWidth,h=l.width;0!==this.charSpacing&&(h+=o=this._getWidthOfCharSpacing(),d+=o);var c={width:h,left:0,height:r.fontSize,kernedWidth:d,deltaY:r.deltaY};if(i>0&&!s){var u=this.__charBounds[t][i-1];c.left=u.left+u.width+l.kernedWidth-l.width}return c},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),n=1,s=t.length;n<s;n++)i=Math.max(this.getHeightOfChar(e,n),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,n=this._textLines.length;i<n;i++)e=this.getHeightOfLine(i),t+=i===n-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,n=this._getLeftOffset(),s=this._getTopOffset(),o=0,r=this._textLines.length;o<r;o++){var a=this.getHeightOfLine(o),l=a/this.lineHeight,d=this._getLineLeftOffset(o);this._renderTextLine(t,e,this._textLines[o],n+d,s+i+l,o),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,n,s,o,r){var a,l,d,h,c,u=this.getHeightOfLine(r),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(r)&&!f,v="ltr"===this.direction,b="ltr"===this.direction?1:-1,C=i.canvas.getAttribute("dir");if(i.save(),C!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),o-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,r,0,n.join(""),s,o,u),void i.restore();for(var y=0,w=n.length-1;y<=w;y++)h=y===w||this.charSpacing||f,p+=n[y],d=this.__charBounds[r][y],0===m?(s+=b*(d.kernedWidth-d.width),m+=d.width):m+=d.kernedWidth,g&&!h&&this._reSpaceAndTab.test(n[y])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(r,y),l=this.getCompleteStyleDeclaration(r,y+1),h=t.util.hasStyleChanged(a,l,!1)),h&&(f?(i.save(),i.translate(d.renderLeft,d.renderTop),i.rotate(d.angle),this._renderChar(e,i,r,y,p,-m/2,0,u),i.restore()):(c=s,this._renderChar(e,i,r,y,p,c,o,u)),p="",a=l,s+=b*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,n=t.util.createCanvasElement(),s=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return n.width=s,n.height=o,(i=n.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(s,0),i.lineTo(s,o),i.lineTo(0,o),i.closePath(),i.translate(s/2,o/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(n,"no-repeat")},handleFiller:function(e,t,i){var n,s;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(n=-this.width/2,s=-this.height/2,e.translate(n,s),e[t]=this._applyPatternGradientTransformText(i),{offsetX:n,offsetY:s}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,n,s,o,r){var a,l,d=this._getStyleDeclaration(i,n),h=this.getCompleteStyleDeclaration(i,n),c="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||c)&&(t.save(),c&&(a=this._setFillStyles(t,h)),u&&(l=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),d&&d.textBackgroundColor&&this._removeShadow(t),d&&d.deltaY&&(r+=d.deltaY),c&&t.fillText(s,o-a.offsetX,r-a.offsetY),u&&t.strokeText(s,o-l.offsetX,r-l.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var n=this.get2DCursorLocation(e,!0),s=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"fontSize"),o=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"deltaY"),r={fontSize:s*i.size,deltaY:o+s*i.baseline};return this.setSelectionStyles(r,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,n=this.textAlign,s=this.direction,o=0,r=this.isEndOfWrapping(e);return"justify"===n||"justify-center"===n&&!r||"justify-right"===n&&!r||"justify-left"===n&&!r?0:("center"===n&&(o=i/2),"right"===n&&(o=i),"justify-center"===n&&(o=i/2),"justify-right"===n&&(o=i),"rtl"===s&&(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var n=this._getStyleDeclaration(e,t);return n&&"undefined"!==typeof n[i]?n[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){for(var i,n,s,o,r,a,l,d,h,c,u,g,p,m,f,_,v=this._getLeftOffset(),b=this._getTopOffset(),C=this.path,y=this._getWidthOfCharSpacing(),w=this.offsets[t],S=0,x=this._textLines.length;S<x;S++)if(i=this.getHeightOfLine(S),this[t]||this.styleHas(t,S)){l=this._textLines[S],m=i/this.lineHeight,o=this._getLineLeftOffset(S),c=0,u=0,d=this.getValueOfPropertyAt(S,0,t),_=this.getValueOfPropertyAt(S,0,"fill"),h=b+m*(1-this._fontSizeFraction),n=this.getHeightOfChar(S,0),r=this.getValueOfPropertyAt(S,0,"deltaY");for(var L=0,k=l.length;L<k;L++)if(g=this.__charBounds[S][L],p=this.getValueOfPropertyAt(S,L,t),f=this.getValueOfPropertyAt(S,L,"fill"),s=this.getHeightOfChar(S,L),a=this.getValueOfPropertyAt(S,L,"deltaY"),C&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,w*s+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==d||f!==_||s!==n||a!==r)&&u>0){var D=v+o+c;"rtl"===this.direction&&(D=this.width-D-u),d&&_&&(e.fillStyle=_,e.fillRect(D,h+w*n+r,u,this.fontSize/15)),c=g.left,u=g.width,d=p,_=f,n=s,r=a}else u+=g.kernedWidth;D=v+o+c;"rtl"===this.direction&&(D=this.width-D-u),e.fillStyle=f,p&&f&&e.fillRect(D,h+w*n+r,u-y,this.fontSize/15),b+=i}else b+=i;this._removeShadow(e)}},_getFontDeclaration:function(e,i){var n=e||this,s=this.fontFamily,o=t.Text.genericFonts.indexOf(s.toLowerCase())>-1,r=void 0===s||s.indexOf("'")>-1||s.indexOf(",")>-1||s.indexOf('"')>-1||o?n.fontFamily:'"'+n.fontFamily+'"';return[t.isLikelyNode?n.fontWeight:n.fontStyle,t.isLikelyNode?n.fontStyle:n.fontWeight,i?this.CACHE_FONT_SIZE+"px":n.fontSize+"px",r].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),n=new Array(i.length),s=["\n"],o=[],r=0;r<i.length;r++)n[r]=t.util.string.graphemeSplit(i[r]),o=o.concat(n[r],s);return o.pop(),{_unwrappedLines:n,lines:i,graphemeText:o,graphemeLines:n}},toObject:function(e){var i=n.concat(e),s=this.callSuper("toObject",i);return s.styles=t.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(e,t){this.callSuper("set",e,t);var i=!1,n=!1;if("object"===typeof e)for(var s in e)"path"===s&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(s),n=n||"path"===s;else i=-1!==this._dimensionAffectingProps.indexOf(e),n="path"===e;return n&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,n,s){if(!e)return n(null);var o=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),r=o.textAnchor||"left";if((s=t.util.object.extend(s?i(s):{},o)).top=s.top||0,s.left=s.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf("underline")&&(s.underline=!0),-1!==a.indexOf("overline")&&(s.overline=!0),-1!==a.indexOf("line-through")&&(s.linethrough=!0),delete s.textDecoration}"dx"in o&&(s.left+=o.dx),"dy"in o&&(s.top+=o.dy),"fontSize"in s||(s.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var d=s.strokeWidth;s.strokeWidth=0;var h=new t.Text(l,s),c=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*c,g=h.getScaledHeight()+u,p=0;"center"===r&&(p=h.getScaledWidth()/2),"right"===r&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof d?d:1}),n(h)},t.Text.fromObject=function(e,n){var s=i(e),o=e.path;return delete s.path,t.Object._fromObject("Text",s,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),o?t.Object._fromObject("Path",o,(function(e){i.set("path",e),n(i)}),"path"):n(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),s.util.object.extend(s.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var n in t[i])for(var s in t[i][n])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var n in i)for(var s in i[n])if("undefined"!==typeof i[n][s][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,n=this.styles,s=0,o=!0,r=0;for(var a in n){for(var l in t=0,n[a]){var d;s++,(d=n[a][l]).hasOwnProperty(e)?(i?d[e]!==i&&(o=!1):i=d[e],d[e]===this[e]&&delete d[e]):o=!1,0!==Object.keys(d).length?t++:delete n[a][l]}0===t&&delete n[a]}for(var h=0;h<this._textLines.length;h++)r+=this._textLines[h].length;o&&s===r&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,n,s=this.styles;for(i in s){for(n in t=s[i])delete t[n][e],0===Object.keys(t[n]).length&&delete t[n];0===Object.keys(t).length&&delete s[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),s.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,n=i.length,s=0;s<n;s++){if(e<=i[s].length)return{lineIndex:s,charIndex:e};e-=i[s].length+this.missingNewlineOffset(s)}return{lineIndex:s-1,charIndex:i[s-1].length<e?i[s-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var n=[],s=e;s<t;s++)n.push(this.getStyleAtPosition(s,i));return n},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var n=t;n<i;n++)this._extendStyles(n,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,n=this._getStyleDeclaration(e,t)||{},s={},o=0;o<this._styleProperties.length;o++)s[i=this._styleProperties[o]]="undefined"===typeof n[i]?this[i]:n[i];return s},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}s.IText=s.util.createClass(s.Text,s.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),n=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:n.left,topOffset:n.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,n,s,o=0,r=0,a=this.get2DCursorLocation(e);n=a.charIndex,i=a.lineIndex;for(var l=0;l<i;l++)o+=this.getHeightOfLine(l);t=this._getLineLeftOffset(i);var d=this.__charBounds[i][n];return d&&(r=d.left),0!==this.charSpacing&&n===this._textLines[i].length&&(r-=this._getWidthOfCharSpacing()),s={top:o,left:t+(r>0?r:0)},"rtl"===this.direction&&(s.left*=-1),this.cursorOffsetCache=s,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),n=i.lineIndex,s=i.charIndex>0?i.charIndex-1:0,o=this.getValueOfPropertyAt(n,s,"fontSize"),r=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/r,l=e.topOffset,d=this.getValueOfPropertyAt(n,s,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(n)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(n,s,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,l+e.top+d,a,o)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,n=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,s=-1!==this.textAlign.indexOf("justify"),o=this.get2DCursorLocation(i),r=this.get2DCursorLocation(n),a=o.lineIndex,l=r.lineIndex,d=o.charIndex<0?0:o.charIndex,h=r.charIndex<0?0:r.charIndex,c=a;c<=l;c++){var u,g=this._getLineLeftOffset(c)||0,p=this.getHeightOfLine(c),m=0,f=0;if(c===a&&(m=this.__charBounds[a][d].left),c>=a&&c<l)f=s&&!this.isEndOfWrapping(c)?this.width:this.getLineWidth(c)||5;else if(c===l)if(0===h)f=this.__charBounds[l][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[l][h-1].left+this.__charBounds[l][h-1].width-_}u=p,(this.lineHeight<1||c===l&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,b=f-m,C=p,y=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",C=1,y=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-b),t.fillRect(v,e.top+e.topOffset+y,b,C),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),s.IText.fromObject=function(t,i){var n=s.util.stylesFromArray(t.styles,t.text),o=Object.assign({},t,{styles:n});if(e(o),o.styles)for(var r in o.styles)for(var a in o.styles[r])e(o.styles[r][a]);s.Object._fromObject("IText",o,i,"text")}}(),function(){var e=s.util.object.clone;s.util.object.extend(s.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],s.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,n){var s;return s={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){s.isAborted||e[n]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return s.isAborted}}),s},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,n=this._reSpace.test(i[e])?e-1:e,o=i[n],r=s.reNonWord;!r.test(o)&&n>0&&n<i.length;)o=i[n+=t];return r.test(o)&&(n+=1===t?0:1),n},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,n=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==n||i!==t&&n!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===n||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var n=i.slice(0,e),o=s.util.string.graphemeSplit(n).length;if(e===t)return{selectionStart:o,selectionEnd:o};var r=i.slice(e,t);return{selectionStart:o,selectionEnd:o+s.util.string.graphemeSplit(r).length}},fromGraphemeToStringSelection:function(e,t,i){var n=i.slice(0,e).join("").length;return e===t?{selectionStart:n,selectionEnd:n}:{selectionStart:n,selectionEnd:n+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),n=i.lineIndex,o=i.charIndex,r=this.getValueOfPropertyAt(n,o,"fontSize")*this.lineHeight,a=t.leftOffset,l=this.calcTransformMatrix(),d={x:t.left+a,y:t.top+t.topOffset+r},h=this.canvas.getRetinaScaling(),c=this.canvas.upperCanvasEl,u=c.width/h,g=c.height/h,p=u-r,m=g-r,f=c.clientWidth/u,_=c.clientHeight/g;return d=s.util.transformPoint(d,l),(d=s.util.transformPoint(d,this.canvas.viewportTransform)).x*=f,d.y*=_,d.x<0&&(d.x=0),d.x>p&&(d.x=p),d.y<0&&(d.y=0),d.y>m&&(d.y=m),d.x+=this.canvas._offset.left,d.y+=this.canvas._offset.top,{left:d.x+"px",top:d.y+"px",fontSize:r+"px",charHeight:r}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,n,s=this.get2DCursorLocation(e,!0),o=this.get2DCursorLocation(t,!0),r=s.lineIndex,a=s.charIndex,l=o.lineIndex,d=o.charIndex;if(r!==l){if(this.styles[r])for(i=a;i<this._unwrappedTextLines[r].length;i++)delete this.styles[r][i];if(this.styles[l])for(i=d;i<this._unwrappedTextLines[l].length;i++)(n=this.styles[l][i])&&(this.styles[r]||(this.styles[r]={}),this.styles[r][a+i-d]=n);for(i=r+1;i<=l;i++)delete this.styles[i];this.shiftLineStyles(l,r-l)}else if(this.styles[r]){n=this.styles[r];var h,c,u=d-a;for(i=a;i<d;i++)delete n[i];for(c in this.styles[r])(h=parseInt(c,10))>=d&&(n[h-u]=n[c],delete n[c])}},shiftLineStyles:function(t,i){var n=e(this.styles);for(var s in this.styles){var o=parseInt(s,10);o>t&&(this.styles[o+i]=n[o],n[o-i]||delete this.styles[o])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,n,s){var o,r={},a=!1,l=this._unwrappedTextLines[t].length===i;for(var d in n||(n=1),this.shiftLineStyles(t,n),this.styles[t]&&(o=this.styles[t][0===i?i:i-1]),this.styles[t]){var h=parseInt(d,10);h>=i&&(a=!0,r[h-i]=this.styles[t][d],l&&0===i||delete this.styles[t][d])}var c=!1;for(a&&!l&&(this.styles[t+n]=r,c=!0),c&&n--;n>0;)s&&s[n-1]?this.styles[t+n]={0:e(s[n-1])}:o?this.styles[t+n]={0:e(o)}:delete this.styles[t+n],n--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,n,s){this.styles||(this.styles={});var o=this.styles[t],r=o?e(o):{};for(var a in n||(n=1),r){var l=parseInt(a,10);l>=i&&(o[l+n]=r[l],r[l-n]||delete o[l])}if(this._forceClearCache=!0,s)for(;n--;)Object.keys(s[n]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+n]=e(s[n]));else if(o)for(var d=o[i?i-1:1];d&&n--;)this.styles[t][i+n]=e(d)},insertNewStyleBlock:function(e,t,i){for(var n=this.get2DCursorLocation(t,!0),s=[0],o=0,r=0;r<e.length;r++)"\n"===e[r]?s[++o]=0:s[o]++;s[0]>0&&(this.insertCharStyleObject(n.lineIndex,n.charIndex,s[0],i),i=i&&i.slice(s[0]+1)),o&&this.insertNewlineStyleObject(n.lineIndex,n.charIndex+s[0],o);for(r=1;r<o;r++)s[r]>0?this.insertCharStyleObject(n.lineIndex+r,0,s[r],i):i&&this.styles[n.lineIndex+r]&&i[0]&&(this.styles[n.lineIndex+r][0]=i[0]),i=i&&i.slice(s[r]+1);s[r]>0&&this.insertCharStyleObject(n.lineIndex+r,0,s[r],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),s.util.object.extend(s.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,n=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,n,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),n=0,s=0,o=0,r=0,a=0,l=0,d=this._textLines.length;l<d&&o<=i.y;l++)o+=this.getHeightOfLine(l)*this.scaleY,a=l,l>0&&(r+=this._textLines[l-1].length+this.missingNewlineOffset(l-1));s=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+s);for(var h=0,c=t.length;h<c&&(n=s,(s+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)r++;return this._getNewSelectionStartFromOffset(i,n,s,r,c)},_getNewSelectionStartFromOffset:function(e,t,i,n,s){var o=e.x-t,r=i-e.x,a=n+(r>o||r<0?0:1);return this.flipX&&(a=s-a),a>this._text.length&&(a=this._text.length),a}}),s.util.object.extend(s.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=s.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):s.document.body.appendChild(this.hiddenTextarea),s.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),s.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),s.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),s.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),s.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),s.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(s.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,n,o,r,a,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,d=this._text.length,h=l.length,c=h-d,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),c+=g-u):h<d&&(i=f?this._text.slice(g+c,g):this._text.slice(u,u-c)),n=l.slice(m.selectionEnd-c,m.selectionEnd),i&&i.length&&(n.length&&(o=this.getSelectionStyles(u,u+1,!1),o=n.map((function(){return o[0]}))),p?(r=u,a=g):f?(r=g-i.length,a=g):(r=g,a=g+i.length),this.removeStyleFromTo(r,a)),n.length&&(t&&n.join("")===s.copiedText&&!s.disableStyleCopyPaste&&(o=s.copiedTextStyle),this.insertNewStyleBlock(n,u,o)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(s.copiedText=this.getSelectedText(),s.disableStyleCopyPaste?s.copiedTextStyle=null:s.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||s.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,n=this._getLineLeftOffset(e);return t>0&&(n+=(i=this.__charBounds[e][t-1]).left+i.width),n},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),n=this.get2DCursorLocation(i),s=n.lineIndex;if(s===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var o=n.charIndex,r=this._getWidthBeforeCursor(s,o),a=this._getIndexOnLine(s+1,r);return this._textLines[s].slice(o).length+a+1+this.missingNewlineOffset(s)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),n=this.get2DCursorLocation(i),s=n.lineIndex;if(0===s||e.metaKey||33===e.keyCode)return-i;var o=n.charIndex,r=this._getWidthBeforeCursor(s,o),a=this._getIndexOnLine(s-1,r),l=this._textLines[s].slice(0,o),d=this.missingNewlineOffset(s-1);return-this._textLines[s-1].length+a-l.length+(1-d)},_getIndexOnLine:function(e,t){for(var i,n,s=this._textLines[e],o=this._getLineLeftOffset(e),r=0,a=0,l=s.length;a<l;a++)if((o+=i=this.__charBounds[e][a].width)>t){n=!0;var d=o-i,h=o,c=Math.abs(d-t);r=Math.abs(h-t)<c?a:a-1;break}return n||(r=s.length-1),r},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var n;if(e.altKey)n=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;n=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof n&&this[t]!==n)return this[t]=n,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,n){"undefined"===typeof n&&(n=i),n>i&&this.removeStyleFromTo(i,n);var o=s.util.string.graphemeSplit(e);this.insertNewStyleBlock(o,i,t),this._text=[].concat(this._text.slice(0,i),o,this._text.slice(n)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=s.util.toFixed,t=/ +/g;s.util.object.extend(s.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,n=[],s=[],o=e;this._setSVGBg(s);for(var r=0,a=this._textLines.length;r<a;r++)i=this._getLineLeftOffset(r),(this.textBackgroundColor||this.styleHas("textBackgroundColor",r))&&this._setSVGTextLineBg(s,r,t+i,o),this._setSVGTextLineText(n,r,t+i,o),o+=this.getHeightOfLine(r);return{textSpans:n,textBgRects:s}},_createTextCharSpan:function(i,n,o,r){var a=i!==i.trim()||i.match(t),l=this.getSvgSpanStyles(n,a),d=l?'style="'+l+'"':"",h=n.deltaY,c="",u=s.Object.NUM_FRACTION_DIGITS;return h&&(c=' dy="'+e(h,u)+'" '),['<tspan x="',e(o,u),'" y="',e(r,u),'" ',c,d,">",s.util.string.escapeXml(i),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,n){var o,r,a,l,d,h=this.getHeightOfLine(t),c=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];n+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)d=m===f||this.charSpacing,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,c&&!d&&this._reSpaceAndTab.test(p[m])&&(d=!0),d||(o=o||this.getCompleteStyleDeclaration(t,m),r=this.getCompleteStyleDeclaration(t,m+1),d=s.util.hasStyleChanged(o,r,!0)),d&&(l=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,l,i,n)),u="",o=r,i+=g,g=0)},_pushTextBgRect:function(t,i,n,o,r,a){var l=s.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(n,l),'" y="',e(o,l),'" width="',e(r,l),'" height="',e(a,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,n){for(var s,o,r=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,l=0,d=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),c=0,u=r.length;c<u;c++)s=this.__charBounds[t][c],(o=this.getValueOfPropertyAt(t,c,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+d,n,l,a),d=s.left,l=s.width,h=o):l+=s.kernedWidth;o&&this._pushTextBgRect(e,o,i+d,n,l,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new s.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,n=0;n<e;n++)i+=this.getHeightOfLine(n);return t=this.getHeightOfLine(n),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return s.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,n=0,s={},o=0;o<e.graphemeLines.length;o++)"\n"===e.graphemeText[n]&&o>0?(i=0,n++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[n])&&o>0&&(i++,n++),s[o]={line:t,offset:i},n+=e.graphemeLines[o].length,i+=e.graphemeLines[o].length;return s},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[i];n&&(i=n.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,n=0,s=!1,o=this._styleMap[e],r=this._styleMap[e+1];for(var a in o&&(e=o.line,n=o.offset),r&&(s=r.line===e,t=r.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var l in i[a])if(l>=n&&(!s||l<t))for(var d in i[a][l])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var n=this._styleMap[e];e=n.line,t=n.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,n=[];for(this.isWrapping=!0,i=0;i<e.length;i++)n=n.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,n},_measureWord:function(e,t,i){var n,s=0;i=i||0;for(var o=0,r=e.length;o<r;o++){s+=this._getGraphemeBox(e[o],t,o+i,n,true).kernedWidth,n=e[o]}return s},_wrapLine:function(e,i,n,s){var o=0,r=this.splitByGrapheme,a=[],l=[],d=r?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",c=0,u=r?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();s=s||0;0===d.length&&d.push([]),n-=s;for(var v=0;v<d.length;v++)h=r?d[v]:t.util.string.graphemeSplit(d[v]),g=this._measureWord(h,i,c),c+=h.length,(o+=p+g-_)>n&&!f?(a.push(l),l=[],o=g,f=!0):o+=_,f||r||l.push(u),l=l.concat(h),p=r?0:this._measureWord([u],i,c),c++,f=!1,g>m&&(m=g);return v&&a.push(l),m+s>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+s),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e){return this.splitByGrapheme?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),n=this._wrapText(i.lines,this.width),s=new Array(n.length),o=0;o<n.length;o++)s[o]=n[o].join("");return i.lines=s,i.graphemeLines=n,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var n=t.util.stylesFromArray(e.styles,e.text),s=Object.assign({},e,{styles:n});return t.Object._fromObject("Textbox",s,i,"text")}}(t),function(){var e=s.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,n=e.scalingEqually,o=e.scalingYOrSkewingX,r=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,l=s.Object.prototype.controls;if(l.ml=new s.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mr=new s.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mb=new s.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mt=new s.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.tl=new s.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:n}),l.tr=new s.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:n}),l.bl=new s.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:n}),l.br=new s.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:n}),l.mtr=new s.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),s.Textbox){var d=s.Textbox.prototype.controls={};d.mtr=l.mtr,d.tr=l.tr,d.br=l.br,d.tl=l.tl,d.bl=l.bl,d.mt=l.mt,d.mb=l.mb,d.mr=new s.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),d.ml=new s.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},47943:(e,t,i)=>{var n=i(75719),s=i(54670);e.exports=function e(t,i,o,r,a){var l=-1,d=t.length;for(o||(o=s),a||(a=[]);++l<d;){var h=t[l];i>0&&o(h)?i>1?e(h,i-1,o,r,a):n(a,h):r||(a[a.length]=h)}return a}},38697:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},21873:(e,t,i)=>{var n=i(10834),s=i(77691),o=i(24495),r=i(22413);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[r(s(t))]}},51976:(e,t,i)=>{var n=i(18975);e.exports=function(e){return n(e)?void 0:e}},49611:(e,t,i)=>{var n=i(12038),s=i(60466),o=i(11646);e.exports=function(e){return o(s(e,void 0,n),e+"")}},54670:(e,t,i)=>{var n=i(72211),s=i(15543),o=i(97182),r=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||s(e)||!!(r&&e&&e[r])}},24495:(e,t,i)=>{var n=i(33270),s=i(48077);e.exports=function(e,t){return t.length<2?e:n(e,s(t,0,-1))}},12038:(e,t,i)=>{var n=i(47943);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},48509:(e,t,i)=>{var n=i(38697),s=i(5832);e.exports=function(e,t){return null!=e&&s(e,t,n)}},68062:(e,t,i)=>{var n=i(71519),s=i(80640),o="[object Number]";e.exports=function(e){return"number"==typeof e||s(e)&&n(e)==o}},77691:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6395:(e,t,i)=>{var n=i(20085),s=i(63379)((function(e,t,i,s){n(e,t,i,s)}));e.exports=s},83351:(e,t,i)=>{var n=i(6703),s=i(54721),o=i(21873),r=i(10834),a=i(44526),l=i(51976),d=i(49611),h=i(87859),c=d((function(e,t){var i={};if(null==e)return i;var d=!1;t=n(t,(function(t){return t=r(t,e),d||(d=t.length>1),t})),a(e,h(e),i),d&&(i=s(i,7,l));for(var c=t.length;c--;)o(i,t[c]);return i}));e.exports=c},56017:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Vl,Emitter:()=>Wl,KeyCode:()=>Hl,KeyMod:()=>zl,MarkerSeverity:()=>$l,MarkerTag:()=>Gl,Position:()=>jl,Range:()=>Ul,Selection:()=>Kl,SelectionDirection:()=>ql,Token:()=>Zl,Uri:()=>Yl,default:()=>td,editor:()=>Ql,languages:()=>Xl});var n={};i.r(n),i.d(n,{CancellationTokenSource:()=>Vl,Emitter:()=>Wl,KeyCode:()=>Hl,KeyMod:()=>zl,MarkerSeverity:()=>$l,MarkerTag:()=>Gl,Position:()=>jl,Range:()=>Ul,Selection:()=>Kl,SelectionDirection:()=>ql,Token:()=>Zl,Uri:()=>Yl,editor:()=>Ql,languages:()=>Xl});i(98098),i(23053),i(15968),i(32944),i(34564),i(19757),i(13391);var s=i(50238),o=(i(79623),i(52722),i(21476),i(61778),i(8295),i(63950),i(29134),i(1377),i(44870),i(61522),i(66953),i(17987),i(45713),i(63776),i(91135),i(13499),i(95851),i(95879),i(67069),i(76198),i(81584),i(11506),i(49116),i(48628),i(40335),i(37434),i(38259),i(54829),i(70597),i(25025),i(73166),i(27353),i(46030),i(36513),i(81927),i(10628),i(3394),i(71571),i(70902),i(40606),i(23977),i(36920),i(97737),i(89489),i(78201),i(79908),i(67017),i(34338),i(82148),i(53295),i(48208),i(77042),i(49724),i(39422),i(71636),i(78564),i(97235),i(77137),i(67364)),r=i(31197),a=i(11801),l=i(53186),d=i(78701),h=i(91387),c=i(88775),u=i(60548),g=i(74246),p=i(53335),m=i(65184);class f extends m.Q8{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const e of t)s[e]=n(e,i);return s}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var _=i(90582),v=i(13785),b=i(36362),C=i(18841),y=i(91342),w=i(5580),S=i(76326),x=i(31708),L=i(24032),k=i(23058),D=i(82335),N=i(58296),E=i(34415),T=i(97869),I=i(23614);function M(e){return!function(e){return Array.isArray(e)}(e)}function A(e){return"string"===typeof e}function R(e){return!A(e)}function O(e){return!e}function P(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function F(e){return e.replace(/[&<>'"_]/g,"-")}function B(e,t){return new Error(`${e.languageId}: ${t}`)}function V(e,t,i,n,s){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,d,h,c,u,g){return O(a)?O(l)?!O(d)&&d<n.length?P(e,n[d]):!O(c)&&e&&"string"===typeof e[c]?e[c]:(null===o&&(o=s.split("."),o.unshift(s)),!O(h)&&h<o.length?P(e,o[h]):""):P(e,i):"$"}))}function W(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var H,z=i(30600),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};class K{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new q(e,t);let i=q.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new q(e,t),this._entries[i]=n,n)}}K._INSTANCE=new K(5);class q{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return q._equals(this,e)}push(e){return K.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return K.create(this.parent,e)}}class ${constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new $(this.languageId,this.state)}}class G{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new Y(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Y(e,t);const i=q.getStackElementId(e);let n=this._entries[i];return n||(n=new Y(e,null),this._entries[i]=n,n)}}G._INSTANCE=new G(5);class Y{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:G.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof Y&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class Z{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new C.WU(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,o=i.state,r=C.RW.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;const a=r.tokenize(e,t,o);if(0!==n)for(const l of a.tokens)this._tokens.push(new C.WU(l.offset+n,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new C.hG(this._tokens,e)}}class Q{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,s=t.length,o=null!==i?i.length:0;if(0===n&&0===s&&0===o)return new Uint32Array(0);if(0===n&&0===s)return i;if(0===s&&0===o)return e;const r=new Uint32Array(n+s+o);null!==e&&r.set(e);for(let a=0;a<s;a++)r[n+a]=t[a];return null!==i&&r.set(i,n+s),r}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,o=i.state,r=C.RW.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;const a=r.tokenizeEncoded(e,t,o);if(0!==n)for(let l=0,d=a.tokens.length;l<d;l+=2)a.tokens[l]+=n;return this._prependTokens=Q._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new C.DI(Q._merge(this._prependTokens,this._tokens,null),e)}}let X=H=class extends l.JT{constructor(e,t,i,n,s){super(),this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let o=!1;this._register(C.RW.onDidChange((e=>{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){const n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(o=!0,C.RW.handleChange([this._languageId]),o=!1)}))),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=C.RW.get(t);if(i){if(i instanceof H){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else C.RW.isResolved(t)||e.push(C.RW.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=K.create(null,this._lexer.start);return G.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Ri)(this._languageId,i);const n=new Z,s=this._tokenize(e,t,i,n);return n.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,x.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new Q(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=W(this._lexer,t.stack.state),!i))throw B(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(const o of i){if(!R(o.action)||"@pop"!==o.action.nextEmbedded)continue;s=!0;let i=o.resolveRegex(t.stack.state);const r=i.source;if("^(?:"===r.substr(0,4)&&")"===r.substr(r.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(r.substr(4,r.length-5),e)}const a=e.search(i);-1===a||0!==a&&o.matchOnlyAtLineStart||(-1===n||a<n)&&(n=a)}if(!s)throw B(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,s){const o=this._findLeavingNestedLanguageOffset(e,i);if(-1===o){const o=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return G.create(i.stack,new $(i.embeddedLanguageData.languageId,o))}const r=e.substring(0,o);r.length>0&&s.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(o);return this._myTokenize(a,t,i,n+o,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);const o=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,d=i.stack,h=0,c=null,u=!0;for(;u||h<a;){const i=h,m=d.depth,f=c?c.groups.length:0,_=d.state;let v=null,b=null,C=null,y=null,w=null;if(c){v=c.matches;const e=c.groups.shift();b=e.matched,C=e.action,y=c.rule,0===c.groups.length&&(c=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=W(this._lexer,_),!e))throw B(this._lexer,"tokenizer state is not defined: "+_);const t=r.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(h<a&&(v=[r.charAt(h)],b=v[0]),C=this._lexer.defaultToken),null===b)break;for(h+=b.length;M(C)&&R(C)&&C.test;)C=C.test(b,v,_,h===a);let S=null;if("string"===typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){if(S=C.tokenSubst?V(this._lexer,C.token,b,v,_):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw B(this._lexer,"cannot pop embedded language if not inside one");l=null}else{if(l)throw B(this._lexer,"cannot enter embedded language from within an embedded language");w=V(this._lexer,C.nextEmbedded,b,v,_)}if(C.goBack&&(h=Math.max(0,h-C.goBack)),C.switchTo&&"string"===typeof C.switchTo){let e=V(this._lexer,C.switchTo,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!W(this._lexer,e))throw B(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.switchTo(e)}else{if(C.transform&&"function"===typeof C.transform)throw B(this._lexer,"action.transform not supported");if(C.next)if("@push"===C.next){if(d.depth>=this._lexer.maxStack)throw B(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(_)}else if("@pop"===C.next){if(d.depth<=1)throw B(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));d=d.pop()}else if("@popall"===C.next)d=d.popall();else{let e=V(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!W(this._lexer,e))throw B(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.push(e)}}C.log&&"string"===typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+V(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw B(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));const x=i=>{const o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(o);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,G.create(d,r),n+h,s)}return G.create(d,r)};if(Array.isArray(S)){if(c&&c.groups.length>0)throw B(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(v.length!==S.length+1)throw B(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==b.length)throw B(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));c={rule:y,matches:v,groups:[]};for(let t=0;t<S.length;t++)c.groups[t]={action:S[t],matched:v[t+1]};h-=b.length}else{{if("@rematch"===S&&(h-=b.length,b="",v=null,S="",null!==w))return x(w);if(0===b.length){if(0===a||m!==d.depth||_!==d.state||(c?c.groups.length:0)!==f)continue;throw B(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(y))}let e=null;if(A(S)&&0===S.indexOf("@brackets")){const t=S.substr("@brackets".length),i=J(this._lexer,b);if(!i)throw B(this._lexer,"@brackets token returned but no bracket defined as: "+b);e=F(i.token+t)}else{e=F(""===S?"":S+this._lexer.tokenPostfix)}i<o&&s.emit(i+n,e)}if(null!==w)return x(w)}}var g,p;return G.create(d,l)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new $(e,x.TJ);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),C.RW.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=C.RW.get(e);return new $(e,t?t.getInitialState():x.TJ)}};function J(e,t){if(!t)return null;t=P(e,t);const i=e.brackets;for(const n of i){if(n.open===t)return{token:n.token,bracketType:1};if(n.close===t)return{token:n.token,bracketType:-1}}return null}X=H=j([U(4,z.Ui)],X);const ee=(0,N.Z)("standaloneColorizer",{createHTML:e=>e});class te{static colorizeElement(e,t,i,n){const s=(n=n||{}).theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const r=t.getLanguageIdByMimeType(o)||o;e.setTheme(s);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+s;return this.colorize(t,a||"",r,n).then((e=>{var t;const n=null!==(t=null===ee||void 0===ee?void 0:ee.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>console.error(e)))}static async colorize(e,t,i,n){const s=e.languageIdCodec;let o=4;n&&"number"===typeof n.tabSize&&(o=n.tabSize),d.uS(t)&&(t=t.substr(1));const r=d.uq(t);if(!e.isRegisteredLanguageId(i))return ie(r,o,s);const a=await C.RW.getOrCreate(i);return a?function(e,t,i,n){return new Promise(((s,o)=>{const r=()=>{const a=function(e,t,i,n){let s=[],o=i.getInitialState();for(let r=0,a=e.length;r<a;r++){const a=e[r],l=i.tokenizeEncoded(a,!0,o);E.A.convertToEndOffset(l.tokens,a.length);const d=new E.A(l.tokens,a,n),h=I.wA.isBasicASCII(a,!0),c=I.wA.containsRTL(a,h,!0),u=(0,T.tF)(new T.IJ(!1,!0,a,!1,h,c,0,d.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(u.html),s.push("<br/>"),o=l.endState}return s.join("")}(e,t,i,n);if(i instanceof X){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,o)}s(a)};r()}))}(r,o,a,s):ie(r,o,s)}static colorizeLine(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:4;const o=I.wA.isBasicASCII(e,t),r=I.wA.containsRTL(e,o,i);return(0,T.tF)(new T.IJ(!1,!0,e,!1,o,r,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const s=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i)}}function ie(e,t,i){let n=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let o=0,r=e.length;o<r;o++){const r=e[o];s[0]=r.length;const a=new E.A(s,r,i),l=I.wA.isBasicASCII(r,!0),d=I.wA.containsRTL(r,l,!0),h=(0,T.tF)(new T.IJ(!1,!0,r,!1,l,d,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(h.html),n.push("<br/>")}return n.join("")}var ne=i(83945),se=i(87545),oe=i(76595),re=i(32060),ae=i(39706),le=i(64450),de=i(46673),he=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ce=function(e,t){return function(i,n){t(i,n,e)}};let ue=class extends l.JT{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new ae.Q5),this._onCodeEditorAdd=this._register(new ae.Q5),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new ae.Q5),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new ae.Q5),this._onDiffEditorAdd=this._register(new ae.Q5),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new ae.Q5),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new le.S,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const s=await n(e,t,i);if(null!==s)return s}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,l.OF)(t)}};ue=he([ce(0,de.XE)],ue);var ge=i(47116),pe=i(23026),me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},fe=function(e,t){return function(i,n){t(i,n,e)}};let _e=class extends ue{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===re.lg.http||i===re.lg.https)return(0,oe.V3)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};_e=me([fe(0,ge.i6),fe(1,de.XE)],_e),(0,pe.z)(g.$,_e,0);var ve=i(51833),be=i(87775);const Ce=(0,be.yh)("layoutService");var ye=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},we=function(e,t){return function(i,n){t(i,n,e)}};let Se=class{get mainContainer(){var e,t;return null!==(t=null===(e=(0,ve.Xh)(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:a.E.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null===i||void 0===i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return oe.D6(this.mainContainer)}get activeContainerDimension(){return oe.D6(this.activeContainer)}get containers(){return(0,ve.kX)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=ae.ju.None,this.onDidLayoutActiveContainer=ae.ju.None,this.onDidLayoutContainer=ae.ju.None,this.onDidChangeActiveContainer=ae.ju.None,this.onDidAddContainer=ae.ju.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Se=ye([we(0,g.$)],Se);let xe=class extends Se{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};xe=ye([we(1,g.$)],xe),(0,pe.z)(Ce,Se,1);var Le=i(16015),ke=i(28889),De=i(5887),Ne=i(21182),Ee=i(61758),Te=i(40938),Ie=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};const Ae=!1;function Re(e){return e.scheme===re.lg.file?e.fsPath:e.path}let Oe=0;class Pe{constructor(e,t,i,n,s,o,r){this.id=++Oe,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=o,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Fe{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Be{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements){(0===n.reason?e:t).push(n.resourceLabel)}const i=[];return e.length>0&&i.push(De.NC({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(De.NC({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Ve{constructor(e,t,i,n,s,o,r){this.id=++Oe,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=o,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new Be),this.removedResources.has(t)||this.removedResources.set(t,new Fe(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Be),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Fe(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class We{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i<n;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new Te.YO(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let r=0,a=this._past.length;r<a;r++,n++){const o=this._past[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=0),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let r=this._future.length-1;r>=0;r--,n++){const s=this._future[r];i&&(n>=t||s.id!==e.elements[n])&&(i=!1,o=r),i||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}-1!==s&&(this._past=this._past.slice(0,s)),-1!==o&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class He{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const ze=new We("","");ze.locked=!0;let je=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te.Xt.None,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Te.gJ.None;if(0===e.type){const n=Re(e.resource),s=this.getUriComparisonKey(e.resource);this._pushElement(new Pe(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const n=new Set,s=[],o=[];for(const t of e.resources){const e=Re(t),i=this.getUriComparisonKey(t);n.has(i)||(n.add(i),s.push(e),o.push(i))}1===s.length?this._pushElement(new Pe(e,s[0],o[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Ve(e,s,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],n=e.strResources[t];let s;this._editStacks.has(n)?s=this._editStacks.get(n):(s=new We(i,n),this._editStacks.set(n,s)),s.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),n=new Map;for(const s of i){const e=Re(s.resource),t=this.getUriComparisonKey(s.resource),i=new Pe(s,e,t,0,0,0,0);n.set(i.strResource,i)}for(const s of e.strResources){if(t&&t.has(s))continue;this._editStacks.get(s).splitPastWorkspaceElement(e,n)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),n=new Map;for(const s of i){const e=Re(s.resource),t=this.getUriComparisonKey(s.resource),i=new Pe(s,e,t,0,0,0,0);n.set(i.strResource,i)}for(const s of e.strResources){if(t&&t.has(s))continue;this._editStacks.get(s).splitFutureWorkspaceElement(e,n)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const n=this.getUriComparisonKey(e);if(this._editStacks.has(n)){this._editStacks.get(n).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new Te.YO(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestPastElement();o&&(o.sourceId===e&&(!t||o.sourceOrder>t.sourceOrder)&&(t=o,i=n))}return[t,i]}canUndo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,Le.dL)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){const o=this._acquireLocks(i);let r;try{r=t()}catch(a){return o(),n.dispose(),this._onError(a,e)}return r?r.then((()=>(o(),n.dispose(),s())),(t=>(o(),n.dispose(),this._onError(t,e)))):(o(),n.dispose(),s())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return l.JT.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?l.JT.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(l.JT.None);const i=e.actual.prepareUndoRedo();return i?(0,l.Wf)(i)?t(i):i.then((e=>t(e))):t(l.JT.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||ze);return new He(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Ue(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Ue}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,De.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,De.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const r of i.editStacks)r.getClosestPastElement()!==t&&s.push(r.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,De.NC({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const o=[];for(const r of i.editStacks)r.locked&&o.push(r.resourceLabel);return o.length>0?this._tryToSplitAndUndo(e,t,null,De.NC({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,De.NC({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let s;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(s||(s={}));const{result:o}=await this._dialogService.prompt({type:ke.Z.Info,message:De.NC("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:De.NC({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>s.All},{label:De.NC({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>s.This}],cancelButton:{run:()=>s.Cancel}});if(o===s.Cancel)return;if(o===s.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;n=!0}let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const o=this._checkWorkspaceUndo(e,t,i,!0);if(o)return s.dispose(),o.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,s,(()=>this._continueUndoInGroup(t.groupId,n)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new He([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=De.NC({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestPastElement();o&&(o.groupId===e&&(!t||o.groupOrder>t.groupOrder)&&(t=o,i=n))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[e,n]=this._findClosestUndoElementInGroup(s.groupId);if(s!==e&&n)return this._undo(n,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return 1===s.type?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{Ae}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:De.NC("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:De.NC({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:De.NC("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestFutureElement();o&&(o.sourceId===e&&(!t||o.sourceOrder<t.sourceOrder)&&(t=o,i=n))}return[t,i]}canRedo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new Ue(this._redo(e));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Ue}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,De.NC({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,De.NC({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const r of i.editStacks)r.getClosestFutureElement()!==t&&s.push(r.resourceLabel);if(s.length>0)return this._tryToSplitAndRedo(e,t,null,De.NC({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const o=[];for(const r of i.editStacks)r.locked&&o.push(r.resourceLabel);return o.length>0?this._tryToSplitAndRedo(e,t,null,De.NC({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,De.NC({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new He([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=De.NC({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestFutureElement();o&&(o.groupId===e&&(!t||o.groupOrder<t.groupOrder)&&(t=o,i=n))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof Te.gJ){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ae}}}};je=Ie([Me(0,Ne.S),Me(1,Ee.lT)],je);class Ue{constructor(e){this.returnValue=e}}(0,pe.z)(Te.tJ,je,1);i(14386);var Ke=i(33454),qe=i(4085),$e=i(15688),Ge=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ye=function(e,t){return function(i,n){t(i,n,e)}};let Ze=class extends l.JT{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new qe.$(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};Ze=Ge([Ye(0,de.XE),Ye(1,Ke.VZ),Ye(2,y.O)],Ze),(0,pe.z)($e.s,Ze,1);var Qe=i(45298);function Xe(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(Xe):!!e.exclusive)}class Je{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class et{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new ae.Q5,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,l.OF)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),s=n?new Je(e.uri,e.getLanguageId(),n.uri,n.type):new Je(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(s))){this._lastCandidate=s;for(const t of this._entries)if(t._score=(0,Qe.G)(t.selector,s.uri,s.languageId,(0,L.pt)(e),s.notebookUri,s.notebookType),Xe(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(et._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:tt(e.selector)&&!tt(t.selector)?1:!tt(e.selector)&&tt(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function tt(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(tt):Boolean(e.isBuiltin))}var it=i(53869);(0,pe.z)(it.p,class{constructor(){this.referenceProvider=new et(this._score.bind(this)),this.renameProvider=new et(this._score.bind(this)),this.newSymbolNamesProvider=new et(this._score.bind(this)),this.codeActionProvider=new et(this._score.bind(this)),this.definitionProvider=new et(this._score.bind(this)),this.typeDefinitionProvider=new et(this._score.bind(this)),this.declarationProvider=new et(this._score.bind(this)),this.implementationProvider=new et(this._score.bind(this)),this.documentSymbolProvider=new et(this._score.bind(this)),this.inlayHintsProvider=new et(this._score.bind(this)),this.colorProvider=new et(this._score.bind(this)),this.codeLensProvider=new et(this._score.bind(this)),this.documentFormattingEditProvider=new et(this._score.bind(this)),this.documentRangeFormattingEditProvider=new et(this._score.bind(this)),this.onTypeFormattingEditProvider=new et(this._score.bind(this)),this.signatureHelpProvider=new et(this._score.bind(this)),this.hoverProvider=new et(this._score.bind(this)),this.documentHighlightProvider=new et(this._score.bind(this)),this.multiDocumentHighlightProvider=new et(this._score.bind(this)),this.selectionRangeProvider=new et(this._score.bind(this)),this.foldingRangeProvider=new et(this._score.bind(this)),this.linkProvider=new et(this._score.bind(this)),this.inlineCompletionsProvider=new et(this._score.bind(this)),this.inlineEditProvider=new et(this._score.bind(this)),this.completionProvider=new et(this._score.bind(this)),this.linkedEditingRangeProvider=new et(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new et(this._score.bind(this)),this.documentSemanticTokensProvider=new et(this._score.bind(this)),this.documentOnDropEditProvider=new et(this._score.bind(this)),this.documentPasteEditProvider=new et(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1);var nt=i(6009),st=i(82854),ot=i(79086),rt=i(25371),at=i(22367),lt=i(7341),dt=i(34912),ht=i(35978),ct=i(73971),ut=i(90388),gt=i(71940),pt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},mt=function(e,t){return function(i,n){t(i,n,e)}};const ft=oe.$;let _t=class extends lt.${get _targetWindow(){return oe.Jj(this._target.targetElements[0])}get _targetDocumentElement(){return oe.Jj(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,n,s,r){var a,d,h,c,u,g,p,m;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=s,this._accessibilityService=r,this._messageListeners=new l.SL,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new ae.Q5),this._onRequestLayout=this._register(new ae.Q5),this._linkHandler=e.linkHandler||(t=>(0,ht.N)(this._openerService,t,(0,ct.Fr)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new bt(e.target),this._hoverPointer=(null===(a=e.appearance)||void 0===a?void 0:a.showPointer)?ft("div.workbench-hover-pointer"):void 0,this._hover=this._register(new at.c8),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),(null===(d=e.appearance)||void 0===d?void 0:d.compact)&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),(null===(h=e.appearance)||void 0===h?void 0:h.skipFadeInAnimation)&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),(null===(c=e.position)||void 0===c?void 0:c.forcePosition)&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=null!==(g=null===(u=e.position)||void 0===u?void 0:u.hoverPosition)&&void 0!==g?g:3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(oe.nm(this._targetWindow,"blur",(()=>this.dispose())));const f=ft("div.hover-row.markdown-hover"),_=ft("div.hover-contents");if("string"===typeof e.content)_.textContent=e.content,_.style.whiteSpace="pre-wrap";else if(e.content instanceof HTMLElement)_.appendChild(e.content),_.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(ht.$,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||o.hL.fontFamily}),{element:n}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{_.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});_.appendChild(n)}if(f.appendChild(_),this._hover.contentsDomNode.appendChild(f),e.actions&&e.actions.length>0){const t=ft("div.hover-row.status-bar"),i=ft("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;at.Sr.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let v;if(this._hoverContainer=ft("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),v=!(e.actions&&e.actions.length>0)&&(void 0===(null===(p=e.persistence)||void 0===p?void 0:p.hideOnHover)?"string"===typeof e.content||(0,ct.Fr)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),v&&(null===(m=e.appearance)||void 0===m?void 0:m.showHoverHint)){const e=ft("div.hover-row.status-bar"),t=ft("div.info");t.textContent=(0,De.NC)("hoverhint","Hold {0} key to mouse over",ut.dz?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const b=[...this._target.targetElements];v||b.push(this._hoverContainer);const C=this._register(new vt(b));if(this._register(C.onMouseOut((()=>{this._isLocked||this.dispose()}))),v){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new vt(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=C}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=oe.Ce(this._hoverContainer,ft("div")),n=oe.R3(this._hoverContainer,ft("div"));i.tabIndex=0,n.tabIndex=0,this._register(oe.nm(n,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(oe.nm(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,at.uX)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===t?void 0:t.getAriaLabel());i&&(0,ne.i7)(i),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=oe.I8(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:n,left:s}=e[0],o=i-s,r=n-t,a={top:t,right:i,bottom:n,left:s,width:o,height:r,center:{x:s+o/2,y:t+r/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+o/2,a.center.y=a.top+r/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(n<e.left||n>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};_t=pt([mt(1,rt.d),mt(2,z.Ui),mt(3,dt.v),mt(4,be.TG),mt(5,gt.F)],_t);class vt extends lt.${get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new ae.Q5),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=oe.Jj(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(oe.Jj(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class bt{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Ct,yt=i(10381),wt=i(81068),St=i(32906);function xt(e,t,i){const n=i.mode===Ct.ALIGN?i.offset:i.offset+i.size,s=i.mode===Ct.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=s?s-t:Math.max(e-t,0):t<=s?s-t:t<=e-n?n:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Ct||(Ct={}));class Lt extends l.JT{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=l.JT.None,this.toDisposeOnSetContainer=l.JT.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=oe.$(".context-view"),oe.Cp(this.view),this.setContainer(e,t),this._register((0,l.OF)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;this.useFixedPosition=1!==t;const n=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||n!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=oe.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=kt,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(oe.$("slot"))}else this.container.appendChild(this.view);const t=new l.SL;Lt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(oe.mu(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),Lt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(oe.mu(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){var t,i,n;this.isVisible()&&this.hide(),oe.PO(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(null!==(t=e.layer)&&void 0!==t?t:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",oe.$Z(this.view),this.toDisposeOnClean=e.render(this.view)||l.JT.None,this.delegate=e,this.doLayout(),null===(n=(i=this.delegate).focus)||void 0===n||n.call(i)}getViewElement(){return this.view}layout(){var e,t;this.isVisible()&&(!1!==this.delegate.canRelayout||ut.gn&&wt.D.pointerEvents?(null===(t=null===(e=this.delegate)||void 0===e?void 0:e.layout)||void 0===t||t.call(e),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(e instanceof HTMLElement){const i=oe.i(e),n=oe.I8(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=oe.w(this.view),n=oe.wn(this.view),s=this.delegate.anchorPosition||0,o=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,l;const d=oe.WN();if(0===r){const e={offset:t.top-d.pageYOffset,size:t.height,position:0===s?0:1},r={offset:t.left,size:t.width,position:0===o?0:1,mode:Ct.ALIGN};a=xt(d.innerHeight,n,e)+d.pageYOffset,St.e.intersects({start:a,end:a+n},{start:e.offset,end:e.offset+e.size})&&(r.mode=Ct.AVOID),l=xt(d.innerWidth,i,r)}else{const e={offset:t.left,size:t.width,position:0===o?0:1},r={offset:t.top,size:t.height,position:0===s?0:1,mode:Ct.ALIGN};l=xt(d.innerWidth,i,e),St.e.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(r.mode=Ct.AVOID),a=xt(d.innerHeight,n,r)+d.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===s?"bottom":"top"),this.view.classList.add(0===o?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=oe.i(this.container);this.view.style.top=a-(this.useFixedPosition?oe.i(this.view).top:h.top)+"px",this.view.style.left=l-(this.useFixedPosition?oe.i(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),oe.Cp(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,oe.Jj(e).document.activeElement):t&&!oe.jg(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Lt.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Lt.BUBBLE_DOWN_EVENTS=["click"];const kt='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Dt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Nt=function(e,t){return function(i,n){t(i,n,e)}};let Et=class extends l.JT{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=this._register(new l.XK),this.contextView=this._register(new Lt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,oe.Jj)(t))?1:i?3:2:1,this.contextView.setContainer(null!==t&&void 0!==t?t:this.layoutService.activeContainer,n),this.contextView.show(e);const s=(0,l.OF)((()=>{this.currentViewDisposable===s&&this.hideContextView()}));return this.currentViewDisposable.value=s,s}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};Et=Dt([Nt(0,Ce)],Et);class Tt extends Et{getContextViewElement(){return this.contextView.getViewElement()}}var It=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Mt=function(e,t){return function(i,n){t(i,n,e)}};let At=class extends l.JT{constructor(e,t,i,n,s){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=n,this._accessibilityService=s,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new Et(this._layoutService))}showHover(e,t,i){var n,s,o,r;if(Rt(this._currentHoverOptions)===Rt(e))return;if(this._currentHover&&(null===(s=null===(n=this._currentHoverOptions)||void 0===n?void 0:n.persistence)||void 0===s?void 0:s.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const d=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),h=(0,oe.vY)();i||(this._lastFocusedElementBeforeOpen=d&&h?h:void 0);const c=new l.SL,u=this._instantiationService.createInstance(_t,e);if((null===(o=e.persistence)||void 0===o?void 0:o.sticky)&&(u.isLocked=!0),u.onDispose((()=>{var t,i;(null===(t=this._currentHover)||void 0===t?void 0:t.domNode)&&(0,oe.b5)(this._currentHover.domNode)&&(null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),c.dispose()})),!e.container){const t=e.target instanceof HTMLElement?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,oe.Jj)(t))}if(this._contextViewHandler.showContextView(new Ot(u,t),e.container),u.onRequestLayout((()=>this._contextViewHandler.layout())),null===(r=e.persistence)||void 0===r?void 0:r.sticky)c.add((0,oe.nm)((0,oe.Jj)(e.container).document,oe.tw.MOUSE_DOWN,(e=>{(0,oe.jg)(e.target,u.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)c.add((0,oe.nm)(i,oe.tw.CLICK,(()=>this.hideHover())));else c.add((0,oe.nm)(e.target,oe.tw.CLICK,(()=>this.hideHover())));const t=(0,oe.vY)();if(t){const i=(0,oe.Jj)(t).document;c.add((0,oe.nm)(t,oe.tw.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add((0,oe.nm)(i,oe.tw.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add((0,oe.nm)(t,oe.tw.KEY_UP,(e=>this._keyUp(e,u)))),c.add((0,oe.nm)(i,oe.tw.KEY_UP,(e=>this._keyUp(e,u))))}}if("IntersectionObserver"in a.E){const t=new IntersectionObserver((e=>this._intersectionChange(e,u)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),c.add((0,l.OF)((()=>t.disconnect())))}return this._currentHover=u,u}hideHover(){var e;!(null===(e=this._currentHover)||void 0===e?void 0:e.isLocked)&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}_keyDown(e,t,i){var n,s;if("Alt"===e.key)return void(t.isLocked=!0);const o=new yt.y(e);this._keybindingService.resolveKeyboardEvent(o).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(o,o.target).kind||!i||(null===(n=this._currentHoverOptions)||void 0===n?void 0:n.trapFocus)&&"Tab"===e.key||(this.hideHover(),null===(s=this._lastFocusedElementBeforeOpen)||void 0===s||s.focus())}_keyUp(e,t){var i;"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()))}};function Rt(e){var t;if(void 0!==e)return null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:e}At=It([Mt(0,be.TG),Mt(1,ot.i),Mt(2,rt.d),Mt(3,Ce),Mt(4,gt.F)],At);class Ot{get anchorPosition(){return this._hover.anchor}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}(0,pe.z)(st.Bs,At,1),(0,de.Ic)(((e,t)=>{const i=e.getColor(nt.CNo);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var Pt=i(91811),Ft=i(80427),Bt=i(50142),Vt=i(56154),Wt=i(74633),Ht=i(28928),zt=i(43537),jt=i(19399),Ut=i(94943),Kt=i(38079),qt=i(47624),$t=i(49817),Gt=i(76322);function Yt(e){return Object.isFrozen(e)?e:p._A(e)}class Zt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0;this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof Zt)return e;const t=new Qt("");return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,z.Mt)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Yt(i.rawConfiguration.getValue(e))},get override(){return t?Yt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Yt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:n,identifiers:s,keys:o}of i.rawConfiguration.overrides){const i=new Zt(n,o).getValue(e);void 0!==i&&t.push({identifiers:s,value:i})}return t.length?Yt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,z.Mt)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(){var e,t;const i=p.I8(this.contents),n=p.I8(this.overrides),s=[...this.keys],o=(null===(e=this.raw)||void 0===e?void 0:e.length)?[...this.raw]:[this];for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];for(const d of a)if(o.push(...(null===(t=d.raw)||void 0===t?void 0:t.length)?d.raw:[d]),!d.isEmpty()){this.mergeContents(i,d.contents);for(const e of d.overrides){const[t]=n.filter((t=>ve.fS(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=ve.EB(t.keys)):n.push(p.I8(e))}for(const e of d.keys)-1===s.indexOf(e)&&s.push(e)}return new Zt(i,s,n,o.every((e=>e instanceof Zt))?void 0:o)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const n of ve.EB([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[n];const s=t[n];s&&("object"===typeof e&&"object"===typeof s?(e=p.I8(e),this.mergeContents(e,s)):e=s),i[n]=e}return new Zt(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&qt.Kn(e[i])&&qt.Kn(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.I8(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=p.I8(e))};for(const s of this.overrides)1===s.identifiers.length&&s.identifiers[0]===e?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,z.xL)(this.contents,e),$t.eU.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>ve.fS(t.identifiers,(0,$t.ny)(e)))),1))}updateValue(e,t,i){(0,z.KV)(this.contents,e,t,(e=>console.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),$t.eU.test(e)&&this.overrides.push({identifiers:(0,$t.ny)(e),keys:Object.keys(this.contents[e]),contents:(0,z.Od)(this.contents[e],(e=>console.error(e)))})}}class Qt{constructor(e){this._name=e,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||new Zt}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:s,restricted:o,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new Zt(i,n,s,r?[e]:void 0),this._restrictedConfigurations=o||[]}doParseRaw(e,t){const i=Gt.B.as($t.IP.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);e=n.raw;return{contents:(0,z.Od)(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var s,o,r;let a=!1;if(!(null===n||void 0===n?void 0:n.scopes)&&!(null===n||void 0===n?void 0:n.skipRestricted)&&!(null===(s=null===n||void 0===n?void 0:n.exclude)||void 0===s?void 0:s.length))return{raw:e,restricted:[],hasExcludedProperties:a};const l={},d=[];for(const h in e)if($t.eU.test(h)&&i){const i=this.filter(e[h],t,!1,n);l[h]=i.raw,a=a||i.hasExcludedProperties,d.push(...i.restricted)}else{const i=t[h],s=i?"undefined"!==typeof i.scope?i.scope:3:void 0;(null===i||void 0===i?void 0:i.restricted)&&d.push(h),(null===(o=n.exclude)||void 0===o?void 0:o.includes(h))||!(null===(r=n.include)||void 0===r?void 0:r.includes(h))&&(void 0!==s&&void 0!==n.scopes&&!n.scopes.includes(s)||n.skipRestricted&&(null===i||void 0===i?void 0:i.restricted))?a=!0:l[h]=e[h]}return{raw:l,restricted:d,hasExcludedProperties:a}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if($t.eU.test(n)){const s={};for(const t in e[n])s[t]=e[n][t];i.push({identifiers:(0,$t.ny)(n),keys:Object.keys(s),contents:(0,z.Od)(s,t)})}return i}}class Xt{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=s,this.policyConfiguration=o,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=d,this.workspaceConfiguration=h,this.folderConfigurationModel=c,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==(null===e||void 0===e?void 0:e.value)||void 0!==(null===e||void 0===e?void 0:e.override)||void 0!==(null===e||void 0===e?void 0:e.overrides)?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class Jt{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Zt,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Zt,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Kt.Y9,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:new Zt,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new Kt.Y9;this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=s,this._workspaceConfiguration=o,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Kt.Y9,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new Zt,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),s=this.getFolderConfigurationModelForResource(t.resource,i),o=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const a of n.overrides)for(const t of a.identifiers)void 0!==n.getOverrideValue(e,t)&&r.add(t);return new Xt(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,s||void 0,o)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource(e,t){let{resource:i}=e,n=this.getWorkspaceConsolidatedConfiguration();if(t&&i){const e=t.getFolder(i);e&&(n=this.getFolderConsolidatedConfiguration(e.uri)||n);const s=this._memoryConfigurationByResource.get(i);s&&(n=n.merge(s))}return n}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e}),[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),o=this.parseConfigurationModel(e.workspace),r=e.folders.reduce(((e,t)=>(e.set(h.o.revive(t[0]),this.parseConfigurationModel(t[1])),e)),new Kt.Y9);return new Jt(t,i,n,s,new Zt,o,r,new Zt,new Kt.Y9)}static parseConfigurationModel(e){return new Zt(e.contents,e.keys,e.overrides)}}class ei{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const s of e.keys)this.affectedKeys.add(s);for(const[,s]of e.overrides)for(const e of s)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const s of this.affectedKeys)this._affectsConfigStr+=s+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Jt.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,s=this._affectsConfigStr.indexOf(n);if(s<0)return!1;const o=s+n.length;if(o>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(o);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.fS(n,s)}return!0}}var ti=i(53372),ii=i(11052);const ni={kind:0},si={kind:1};class oi{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=oi.handleRemovals([].concat(e).concat(t));for(let s=0,o=this._keybindings.length;s<o;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=null===(n=e.when)||void 0===n?void 0:n.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let n=0;n<t.length;n++)if(t[n]!==e.chords[n])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ge.Fb)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let n=0,s=e.length;n<s;n++){const i=e[n];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];if(!s.command||0===s.command.length){i.push(s);continue}if("-"===s.command.charAt(0))continue;const o=t.get(s.command);if(!o||!s.isDefault){i.push(s);continue}let r=!1;for(const e of o){const t=e.when;if(this._isTargetedForRemoval(s,e.chords,t)){r=!0;break}}r||i.push(s)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let n=i.length-1;n>=0;n--){const e=i[n];if(e.command===t.command)continue;let s=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){s=!1;break}s&&(oi.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,n=t.length;i<n;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ge.K8)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let n=i.length-1;n>=0;n--){const e=i[n];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const s=this._map.get(n[0]);if(void 0===s)return this._log("\\ No keybinding entries."),ni;let o=null;if(n.length<2)o=s;else{o=[];for(let e=0,t=s.length;e<t;e++){const t=s[e];if(n.length>t.chords.length)continue;let i=!0;for(let e=1;e<n.length;e++)if(t.chords[e]!==n[e]){i=!1;break}i&&o.push(t)}}const r=this._findCommand(e,o);return r?n.length<r.chords.length?(this._log(`\\ From ${o.length} keybinding entries, awaiting ${r.chords.length-n.length} more chord(s), when: ${ri(r.when)}, source: ${ai(r)}.`),si):(this._log(`\\ From ${o.length} keybinding entries, matched ${r.command}, when: ${ri(r.when)}, source: ${ai(r)}.`),a=r.command,l=r.commandArgs,d=r.bubble,{kind:2,commandId:a,commandArgs:l,isBubble:d}):(this._log(`\\ From ${o.length} keybinding entries, no when clauses matched the context.`),ni);var a,l,d}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(oi._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function ri(e){return e?`${e.serialize()}`:"no when condition"}function ai(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const li=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class di extends l.JT{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ae.ju.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new ae.Q5),this._currentChords=[],this._currentChordChecker=new ti.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new ti._F,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),ni;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),ni;const s=this._contextKeyService.getContext(t),o=this._currentChords.map((e=>{let{keypress:t}=e;return t}));return this._getResolver().resolve(s,o,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,Le.L6)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(De.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((e=>{let{label:t}=e;return t})).join(", ");this._currentChordStatusMessage=this._notificationService.status(De.NC("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),ii.F.enabled&&ii.F.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],ii.F.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=hi.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getChords();return this._ignoreSingleModifiers=new hi(s),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n;let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let o=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();o=t,r=t?[t]:[]}else[o]=e.getDispatchChords(),r=this._currentChords.map((e=>{let{keypress:t}=e;return t}));if(null===o)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const a=this._contextKeyService.getContext(t),l=e.getLabel(),d=this._getResolver().resolve(a,r,o);switch(d.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((e=>{let{label:t}=e;return t})).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(De.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(o,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${d.commandId} ]`),null===d.commandId||""===d.commandId){if(this.inChordMode){const e=this._currentChords.map((e=>{let{label:t}=e;return t})).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(De.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),d.isBubble||(s=!0),this._log(`+ Invoking command ${d.commandId}.`),this._currentlyDispatchingCommandId=d.commandId;try{"undefined"===typeof d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}li.test(d.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class hi{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}hi.EMPTY=new hi(null);var ci=i(85412);class ui{constructor(e,t,i,n,s,o,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?gi(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=gi(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=o,this.isBuiltinExtension=r}}function gi(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n)return[];t.push(n)}return t}var pi=i(17344),mi=i(47202);class fi extends Pt.f1{constructor(e,t){if(super(),0===t.length)throw(0,Le.b1)("chords");this._os=e,this._chords=t}getLabel(){return mi.xo.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return mi.X4.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:mi.jC.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return mi.r6.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new Pt.aZ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class _i extends fi{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return pi.kL.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":pi.kL.toString(e.keyCode)}_getElectronAccelerator(e){return pi.kL.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=pi.kL.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return _i.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=pi.kL.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=pi.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Pt.$M)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Pt.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=gi(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new _i(i,t)]:[]}}var vi=i(60297),bi=i(97757),Ci=i(57823),yi=i(99818),wi=i(23523),Si=i(30506),xi=i(72514),Li=i(27351),ki=i(90255),Di=i(96682);let Ni=[],Ei=[],Ti=[];function Ii(e){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,Li.Qc)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Di.KR.sep)>=0}}(e,t);Ni.push(n),n.userConfigured?Ti.push(n):Ei.push(n);i&&!n.userConfigured&&Ni.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function Mi(e,t){return function(e,t){let i;if(e)switch(e.scheme){case re.lg.file:i=e.fsPath;break;case re.lg.data:i=Si.Vb.parseMetaData(e).get(Si.Vb.META_DATA_LABEL);break;case re.lg.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:ki.v.unknown}];i=i.toLowerCase();const n=(0,Di.EZ)(i),s=Ai(i,n,Ti);if(s)return[s,{id:S.bd,mime:ki.v.text}];const o=Ai(i,n,Ei);if(o)return[o,{id:S.bd,mime:ki.v.text}];if(t){const e=function(e){(0,d.uS)(e)&&(e=e.substr(1));if(e.length>0)for(let t=Ni.length-1;t>=0;t--){const i=Ni[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}return}(t);if(e)return[e,{id:S.bd,mime:ki.v.text}]}return[{id:"unknown",mime:ki.v.unknown}]}(e,t).map((e=>e.id))}function Ai(e,t,i){var n;let s,o,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){s=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return s||(o||(r||void 0))}const Ri=Object.prototype.hasOwnProperty,Oi="vs.editor.nullLanguage";class Pi{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Oi,0),this._register(S.bd,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||Oi}}class Fi extends l.JT{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this._onDidChange=this._register(new ae.Q5),this.onDidChange=this._onDidChange.event,Fi.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Pi,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(S.dQ.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){Fi.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Ni=Ni.filter((e=>e.userConfigured)),Ei=[];const e=[].concat(S.dQ.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),Gt.B.as($t.IP.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ri.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)Ii({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Ii({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Ii({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,d.IO)(t)||Ii({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(r){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,r)}}e.aliases.push(i);let s=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(const a of s)a&&0!==a.length&&e.aliases.push(a);const o=null!==s&&s.length>0;if(o&&null===s[0]);else{const t=(o?s[0]:null)||i;!o&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&Ri.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ri.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ri.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?Mi(e,t):[]}}Fi.instanceCount=0;class Bi extends l.JT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];super(),this._onDidRequestBasicLanguageFeatures=this._register(new ae.Q5),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new ae.Q5),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new ae.Q5({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,Bi.instanceCount++,this._registry=this._register(new Fi(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){Bi.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,ve.Xh)(i,null)}createById(e){return new Vi(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new Vi(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=S.bd),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),C.RW.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}Bi.instanceCount=0;class Vi{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new ae.Q5({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}var Wi=i(51828),Hi=i(51887),zi=i(6178),ji=i(65179),Ui=i(27748),Ki=i(68068),qi=i(7144),$i=i(26031),Gi=i(24622),Yi=i(61542),Zi=i(87487),Qi=i(73045),Xi=i(77048);const Ji=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,en=/(&)?(&)([^\s&])/g;var tn,nn;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(tn||(tn={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(nn||(nn={}));class sn extends qi.o{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),super(s,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...ut.dz||ut.IJ?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=s,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(Ki.o.addTarget(s)),this._register((0,oe.nm)(s,oe.tw.KEY_DOWN,(e=>{new yt.y(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,oe.nm)(s,oe.tw.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){oe.zB.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof rn&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),ut.IJ&&this._register((0,oe.nm)(s,oe.tw.KEY_DOWN,(e=>{const t=new yt.y(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),oe.zB.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),oe.zB.stop(e,!0))}))),this._register((0,oe.nm)(this.domNode,oe.tw.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,oe.jg)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,oe.nm)(this.actionsList,oe.tw.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,oe.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(Ki.o.addTarget(this.actionsList)),this._register((0,oe.nm)(this.actionsList,Ki.t.Tap,(e=>{let t=e.initialTarget;if(t&&(0,oe.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Gi.s$(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this.styleScrollElement(r,n),this._register((0,oe.nm)(s,Ki.t.Change,(e=>{oe.zB.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,oe.nm)(r,oe.tw.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,oe.Jj)(e);s.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,n)=>{var s;if(null===(s=i.submenuIds)||void 0===s?void 0:s.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof Wi.Z0){if(n===t.length-1||0===n)return!1;if(t[n-1]instanceof Wi.Z0)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof an))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,oe.OO)(e)?this.styleSheet=(0,oe.dS)(e):(sn.globalStyleSheet||(sn.globalStyleSheet=(0,oe.dS)()),this.styleSheet=sn.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${ln(Yi.l.menuSelection)}\n${ln(Yi.l.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderHoverBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderActiveBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,oe.OO)(e))}styleScrollElement(e,t){var i,n;const s=null!==(i=t.foregroundColor)&&void 0!==i?i:"",o=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius="5px",e.style.color=s,e.style.backgroundColor=o,e.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof Wi.Z0)return new an(t.context,e,{icon:!0},this.menuStyles);if(e instanceof Wi.wY){const n=new rn(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const n=t.getKeyBinding(e);if(n){const e=n.getLabel();e&&(i.keybinding=e)}}const n=new on(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}}}class on extends $i.YH{constructor(e,t,i,n){if(i.isMenu=!0,super(t,t,i),this.menuStyle=n,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=Ji.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new ti.pY((()=>{this.element&&(this._register((0,oe.nm)(this.element,oe.tw.MOUSE_UP,(e=>{if(oe.zB.stop(e,!0),Ui.vU){if(new ji.n((0,oe.Jj)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,oe.nm)(this.element,oe.tw.CONTEXT_MENU,(e=>{oe.zB.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,oe.R3)(this.element,(0,oe.$)("a.action-menu-item")),this._action.id===Wi.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,oe.R3)(this.item,(0,oe.$)("span.menu-item-check"+Qi.k.asCSSSelector(Yi.l.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,oe.R3)(this.item,(0,oe.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,oe.R3)(this.item,(0,oe.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,oe.PO)(this.label);let t=(0,Xi.x$)(this.action.label);if(t){const i=function(e){const t=Ji,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=Ji.exec(t);if(n){t=d.YU(t),en.lastIndex=0;let i=en.exec(t);for(;i&&i[1];)i=en.exec(t);const s=e=>e.replace(/&&/g,"&");i?this.label.append(d.j3(s(t.substr(0,i.index))," "),(0,oe.$)("u",{"aria-hidden":"true"},i[3]),d.oL(s(t.substr(i.index+i[0].length))," ")):this.label.innerText=s(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!==t&&void 0!==t?t:"",this.item.style.backgroundColor=null!==i&&void 0!==i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=null!==t&&void 0!==t?t:"")}}class rn extends on{constructor(e,t,i,n,s){super(e,e,n,s),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new l.SL),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:{horizontal:tn.Right,vertical:nn.Below},this.showScheduler=new ti.pY((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new ti.pY((()=>{this.element&&!(0,oe.jg)((0,oe.vY)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,oe.R3)(this.item,(0,oe.$)("span.submenu-indicator"+Qi.k.asCSSSelector(Yi.l.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,oe.nm)(this.element,oe.tw.KEY_UP,(e=>{const t=new yt.y(e);(t.equals(17)||t.equals(3))&&(oe.zB.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,oe.nm)(this.element,oe.tw.KEY_DOWN,(e=>{const t=new yt.y(e);(0,oe.vY)()===this.item&&(t.equals(17)||t.equals(3))&&oe.zB.stop(e,!0)}))),this._register((0,oe.nm)(this.element,oe.tw.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,oe.nm)(this.element,oe.tw.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,oe.nm)(this.element,oe.tw.FOCUS_OUT,(e=>{this.element&&!(0,oe.jg)((0,oe.vY)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){oe.zB.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(t){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=xt(e.width,t.width,{position:n.horizontal===tn.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(s.left=i.left+10),i.top+=10,i.height=0),s.top=xt(e.height,t.height,{position:0,offset:i.top,size:0}),s.top+t.height===i.top&&s.top+i.height+t.height<=e.height&&(s.top+=i.height),s}createSubmenu(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,oe.R3)(this.element,(0,oe.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,oe.Jj)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new sn(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new Wi.eZ],this.submenuOptions,this.menuStyle);const n=this.element.getBoundingClientRect(),s={top:n.top-i,left:n.left,height:n.height+2*i,width:n.width},o=this.submenuContainer.getBoundingClientRect(),r=(0,oe.Jj)(this.element),{top:a,left:l}=this.calculateSubmenuMenuLayout(new oe.Ro(r.innerWidth,r.innerHeight),oe.Ro.lift(o),s,this.expandDirection);this.submenuContainer.style.left=l-o.left+"px",this.submenuContainer.style.top=a-o.top+"px",this.submenuDisposables.add((0,oe.nm)(this.submenuContainer,oe.tw.KEY_UP,(e=>{new yt.y(e).equals(15)&&(oe.zB.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,oe.nm)(this.submenuContainer,oe.tw.KEY_DOWN,(e=>{new yt.y(e).equals(15)&&oe.zB.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!==e&&void 0!==e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class an extends $i.gU{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function ln(e){const t=(0,Zi.u)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var dn=i(93617);class hn{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,oe.vY)();const n=e.domForShadowRoot instanceof HTMLElement?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var s;this.lastContainer=n;const o=e.getMenuClassName?e.getMenuClassName():"";o&&(n.className+=" "+o),this.options.blockMouse&&(this.block=n.appendChild((0,oe.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(s=this.blockDisposable)||void 0===s||s.dispose(),this.blockDisposable=(0,oe.nm)(this.block,oe.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new l.SL,a=e.actionRunner||new Wi.Wi;a.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),a.onDidRun(this.onDidActionRun,this,r),i=new sn(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},dn.ZR),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const d=(0,oe.Jj)(n);return r.add((0,oe.nm)(d,oe.tw.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,oe.nm)(d,oe.tw.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ji.n(d,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,l.F8)(r,i)},focus:()=>{null===i||void 0===i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,s;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&((0,oe.vY)()===this.lastContainer||(0,oe.jg)((0,oe.vY)(),this.lastContainer))&&(null===(s=this.focusToReturn)||void 0===s||s.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,Le.n2)(e.error)&&this.notificationService.error(e.error)}}var cn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},un=function(e,t){return function(i,n){t(i,n,e)}};let gn=class extends l.JT{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new hn(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,s,o){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=s,this.contextKeyService=o,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new ae.Q5),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new ae.Q5)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=pn.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}}),oe._q.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var pn;gn=cn([un(0,Ci.b),un(1,Ee.lT),un(2,ot.u),un(3,rt.d),un(4,zi.co),un(5,ge.i6)],gn),function(e){e.transform=function(e,t,i){if(!((n=e)&&n.menuId instanceof zi.eH))return e;var n;const{menuId:s,menuActionOptions:o,contextKeyService:r}=e;return{...e,getActions:()=>{const n=[];if(s){const e=t.createMenu(s,null!==r&&void 0!==r?r:i);(0,Hi.LJ)(e,o,n),e.dispose()}return e.getActions?Wi.Z0.join(e.getActions(),n):n}}}}(pn||(pn={}));var mn,fn=i(76946),_n=i(33080);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(mn||(mn={}));var vn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},bn=function(e,t){return function(i,n){t(i,n,e)}};let Cn=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,re.xn)(e,re.lg.command))return!1;if(!(null===t||void 0===t?void 0:t.allowCommands))return!0;if("string"===typeof e&&(e=h.o.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,_n.Qc)(decodeURIComponent(e.query))}catch(n){try{i=(0,_n.Qc)(e.query)}catch(s){}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Cn=vn([bn(0,Ut.H)],Cn);let yn=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.o.parse(e));const{selection:i,uri:n}=(0,dt.x)(e);return(e=n).scheme===re.lg.file&&(e=(0,Si.AH)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null===t||void 0===t?void 0:t.fromUserGesture)?mn.USER:mn.API,...null===t||void 0===t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}};yn=vn([bn(0,g.$)],yn);let wn=class{constructor(e,t){this._openers=new le.S,this._validators=new le.S,this._resolvers=new le.S,this._resolvedUriTargets=new Kt.Y9((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new le.S,this._defaultExternalOpener={openExternal:async e=>((0,re.Gs)(e,re.lg.http,re.lg.https)?oe.V3(e):a.E.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!(null===t||void 0===t?void 0:t.openExternal)&&!(0,re.Gs)(e,re.lg.mailto,re.lg.http,re.lg.https,re.lg.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Cn(t)),this._openers.push(new yn(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;const n="string"===typeof e?h.o.parse(e):e,s=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const o of this._validators)if(!await o.shouldOpen(s,t))return!1;for(const o of this._openers){if(await o.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const n of this._resolvers)try{const i=await n.resolveExternalUri(e,t);if(i)return this._resolvedUriTargets.has(i.resolved)||this._resolvedUriTargets.set(i.resolved,e),i}catch(i){}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.o.parse(e):e;let n,s;try{n=(await this.resolveExternalUri(i,t)).resolved}catch(o){n=i}if(s="string"===typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null===t||void 0===t?void 0:t.allowContributedOpeners){const e="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(s,{sourceUri:i,preferredOpenerId:e},fn.T.None))return!0}}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},fn.T.None)}dispose(){this._validators.clear()}};wn=vn([bn(0,g.$),bn(1,Ut.H)],wn);var Sn=i(69115),xn=i(76390),Ln=i(12354),kn=i(35863),Dn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Nn=function(e,t){return function(i,n){t(i,n,e)}};let En=class extends l.JT{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new ae.Q5),this._markerDecorations=new Kt.Y9,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Tn(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==re.lg.inMemory&&e.uri.scheme!==re.lg.internal&&e.uri.scheme!==re.lg.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};En=Dn([Nn(0,k.q),Nn(1,xn.lT)],En);class Tn extends l.JT{constructor(e){super(),this.model=e,this._map=new Kt.YQ,this._register((0,l.OF)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,kn.q)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const n=i.map((e=>this._map.get(e))),s=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),o=this.model.deltaDecorations(n,s);for(const r of i)this._map.delete(r);for(let r=0;r<o.length;r++)this._map.set(t[r],o[r]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=Ht.e.lift(t);if(t.severity!==xn.ZL.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new Ht.e(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n<i.endColumn&&(i=new Ht.e(i.startLineNumber,n,i.endLineNumber,i.endColumn),t.startColumn=n)}return i}_createDecorationOption(e){let t,i,n,s,o;switch(e.severity){case xn.ZL.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case xn.ZL.Info:t="squiggly-info",i=(0,de.EN)(Ln.eS),n=10,o={color:(0,de.EN)(nt.Gvr),position:1};break;case xn.ZL.Warning:t="squiggly-warning",i=(0,de.EN)(Ln.Re),n=20,o={color:(0,de.EN)(nt.Ivo),position:1};break;case xn.ZL.Error:default:t="squiggly-error",i=(0,de.EN)(Ln.lK),n=30,o={color:(0,de.EN)(nt.Gj_),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(s="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(s="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:L.sh.Right},minimap:o,zIndex:n,inlineClassName:s}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}var In,Mn=i(79316),An=i(13277),Rn=i(47998),On=i(95075),Pn=i(81158),Fn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Bn=function(e,t){return function(i,n){t(i,n,e)}};function Vn(e){return e.toString()}class Wn{constructor(e,t,i){this.model=e,this._modelEventListeners=new l.SL,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const Hn=ut.IJ||ut.dz?1:2;class zn{constructor(e,t,i,n,s,o,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=o,this.versionId=r,this.alternativeVersionId=a}}let jn=In=class extends l.JT{constructor(e,t,i,n,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=s,this._onModelAdded=this._register(new ae.Q5),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new ae.Q5),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new ae.Q5),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=Rn.D.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let o=Rn.D.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=Hn;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=Rn.D.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let d=Rn.D.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=Rn.D.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=Rn.D.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:s,insertSpaces:o,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===ut.OS||2===ut.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let s=this._modelCreationOptionsByLanguageAndResource[n+t];if(!s){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);s=In._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=s}return s}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,s=i.length;n<s;n++){const s=i[n],o=this._models[s],r=o.model.getLanguageId(),a=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:r,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:r,resource:a}))continue;const l=t[r+a],d=this.getCreationOptions(r,a,o.model.isForSimpleWidget);In._setModelOptionsForModel(o.model,d,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,p.fS)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(Vn(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(Vn(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(Vn(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),o=new An.yO(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(Vn(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),s=!!n.canComputeSHA1(o)&&n.computeSHA1(o)===e.sha1;if(s||e.sharesUndoRedoStack){for(const e of t.past)(0,Pn.e9)(e)&&e.matchesResource(i)&&e.setModel(o);for(const e of t.future)(0,Pn.e9)(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Pn.e9)(e)&&e.matchesResource(i))),s&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=Vn(o.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new Wn(o,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i){let n,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n=t?this._createModelData(e,t,i,s):this._createModelData(e,S.bd,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push(this._models[n].model)}return e}getModel(e){const t=Vn(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===re.lg.file||e.scheme===re.lg.vscodeRemote||e.scheme===re.lg.vscodeUserData||e.scheme===re.lg.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=Vn(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let s=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,Pn.e9)(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,Pn.e9)(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const r=In.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(s)if(n||!(o>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,Pn.e9)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new zn(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);In._setModelOptionsForModel(e,o,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new Un}};jn.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,jn=In=Fn([Bn(0,z.Ui),Bn(1,jt.y),Bn(2,Te.tJ),Bn(3,y.O),Bn(4,w.c_)],jn);class Un{canComputeSHA1(e){return e.getValueLength()<=Un.MAX_MODEL_SIZE}computeSHA1(e){const t=new On.yP,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}}Un.MAX_MODEL_SIZE=10485760;var Kn=i(99009),qn=i(2033),$n=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Gn=function(e,t){return function(i,n){t(i,n,e)}};let Yn=class extends l.JT{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Gt.B.as(Kn.IP.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n,s,o;const[r,a]=this.getOrInstantiateProvider(e),d=this.visibleQuickAccess,h=null===d||void 0===d?void 0:d.descriptor;if(d&&a&&h===a)return e===a.prefix||(null===i||void 0===i?void 0:i.preserveValue)||(d.picker.value=e),void this.adjustValueSelection(d.picker,a,i);if(a&&!(null===i||void 0===i?void 0:i.preserveValue)){let t;if(d&&h&&h!==a){const e=d.value.substr(h.prefix.length);e&&(t=`${a.prefix}${e}`)}if(!t){const e=null===r||void 0===r?void 0:r.defaultFilterValue;e===Kn.Ry.LAST?t=this.lastAcceptedPickerValues.get(a):"string"===typeof e&&(t=`${a.prefix}${e}`)}"string"===typeof t&&(e=t)}const c=null===(n=null===d||void 0===d?void 0:d.picker)||void 0===n?void 0:n.valueSelection,u=null===(s=null===d||void 0===d?void 0:d.picker)||void 0===s?void 0:s.value,g=new l.SL,p=g.add(this.quickInputService.createQuickPick());let m;p.value=e,this.adjustValueSelection(p,a,i),p.placeholder=null===a||void 0===a?void 0:a.placeholder,p.quickNavigate=null===i||void 0===i?void 0:i.quickNavigateConfiguration,p.hideInput=!!p.quickNavigate&&!d,("number"===typeof(null===i||void 0===i?void 0:i.itemActivation)||(null===i||void 0===i?void 0:i.quickNavigateConfiguration))&&(p.itemActivation=null!==(o=null===i||void 0===i?void 0:i.itemActivation)&&void 0!==o?o:qn.jG.SECOND),p.contextKey=null===a||void 0===a?void 0:a.contextKey,p.filterValue=e=>e.substring(a?a.prefix.length:0),t&&(m=new ti.CR,g.add(ae.ju.once(p.onWillAccept)((e=>{e.veto(),p.hide()})))),g.add(this.registerPickerListeners(p,r,a,e,null===i||void 0===i?void 0:i.providerOptions));const f=g.add(new fn.A);return r&&g.add(r.provide(p,f.token,null===i||void 0===i?void 0:i.providerOptions)),ae.ju.once(p.onDidHide)((()=>{0===p.selectedItems.length&&f.cancel(),g.dispose(),null===m||void 0===m||m.complete(p.selectedItems.slice(0))})),p.show(),c&&u===e&&(p.valueSelection=c),t?null===m||void 0===m?void 0:m.p:void 0}adjustValueSelection(e,t,i){var n;let s;s=(null===i||void 0===i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n,s){const o=new l.SL,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add((0,l.OF)((()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),o.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:s}):r.value=e}))),i&&o.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};Yn=$n([Gn(0,qn.eJ),Gn(1,be.TG)],Yn);var Zn=i(81502),Qn=i(24199),Xn=i(27691),Jn=i(30441),es=i(21150),ts=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class is{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}ts([es.H],is.prototype,"toString",null);const ns=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ss={},os=new Jn.R("quick-input-button-icon-");function rs(e,t,i){let n=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ss[i]?t=ss[i]:(t=os.nextId(),oe.fk(`.${t}, .hc-light .${t}`,`background-image: ${oe.wY(e.light||e.dark)}`),oe.fk(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${oe.wY(e.dark)}`),ss[i]=t),t}(e.iconPath);return e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:i}}function as(e,t,i){oe.mc(t);const n=function(e){const t=[];let i,n=0;for(;i=ns.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,s,o,,r]=i;r?t.push({label:s,href:o,title:r}):t.push({label:s,href:o}),n=i.index+i[0].length}return n<e.length&&t.push(e.substring(n)),new is(t)}(e);let s=0;for(const o of n.nodes)if("string"===typeof o)t.append(...(0,Xn.T)(o));else{let e=o.title;!e&&o.href.startsWith("command:")?e=(0,De.NC)("executeCommand","Click to execute command '{0}'",o.href.substring("command:".length)):e||(e=o.href);const n=oe.$("a",{href:o.href,title:e,tabIndex:s++},o.label);n.style.textDecoration="underline";const r=e=>{oe.cl(e)&&oe.zB.stop(e,!0),i.callback(o.href)},a=i.disposables.add(new Qn.Y(n,oe.tw.CLICK)).event,l=i.disposables.add(new Qn.Y(n,oe.tw.KEY_DOWN)).event,d=ae.ju.chain(l,(e=>e.filter((e=>{const t=new yt.y(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(Ki.o.addTarget(n));const h=i.disposables.add(new Qn.Y(n,Ki.t.Tap)).event;ae.ju.any(a,h,d)(r,null,i.disposables),t.appendChild(n)}}var ls=i(35412),ds=i(83172),hs=i(23014),cs=i(25112),us=i(20447);const gs=new us.o((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new us.o((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new us.o((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function ps(e,t,i){const n=e.toLowerCase(),s=t.toLowerCase(),o=function(e,t,i){const n=e.toLowerCase(),s=t.toLowerCase(),o=n.startsWith(i),r=s.startsWith(i);if(o!==r)return o?-1:1;if(o&&r){if(n.length<s.length)return-1;if(n.length>s.length)return 1}return 0}(e,t,i);if(o)return o;const r=n.endsWith(i);if(r!==s.endsWith(i))return r?-1:1;const a=function(e,t){const i=e||"",n=t||"",s=gs.value.collator.compare(i,n);return gs.value.collatorIsNumeric&&0===s&&i!==n?i<n?-1:1:s}(n,s);return 0!==a?a:n.localeCompare(s)}var ms,fs=i(47213),_s=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},vs=function(e,t){return function(i,n){t(i,n,e)}};const bs=oe.$;var Cs,ys;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(Cs||(Cs={}));class ws{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new us.o((()=>{var e;const t=null!==(e=i.label)&&void 0!==e?e:"",n=(0,Xi.Ho)(t).text.trim(),s=i.ariaLabel||[t,this.saneDescription,this.saneDetail].map((e=>(0,Xi.JL)(e))).filter((e=>!!e)).join(", ");return{saneLabel:t,saneSortLabel:n,saneAriaLabel:s}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class Ss extends ws{constructor(e,t,i,n,s,o){var r,a,l;super(e,t,s),this.fireButtonTriggered=i,this._onChecked=n,this.item=s,this._separator=o,this._checked=!1,this.onChecked=t?ae.ju.map(ae.ju.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):ae.ju.None,this._saneDetail=s.detail,this._labelHighlights=null===(r=s.highlights)||void 0===r?void 0:r.label,this._descriptionHighlights=null===(a=s.highlights)||void 0===a?void 0:a.description,this._detailHighlights=null===(l=s.highlights)||void 0===l?void 0:l.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(ys||(ys={}));class xs extends ws{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=ys.NONE}}class Ls{getHeight(e){return e instanceof xs?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof Ss?Ns.ID:Es.ID}}class ks{getWidgetAriaLabel(){return(0,De.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof Ss)return{value:e.checked,onDidChange:e.onChecked}}}class Ds{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new l.SL,t.toDisposeTemplate=new l.SL,t.entry=oe.R3(e,bs(".quick-input-list-entry"));const i=oe.R3(t.entry,bs("label.quick-input-list-label"));t.toDisposeTemplate.add(oe.mu(i,oe.tw.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=oe.R3(i,bs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const n=oe.R3(i,bs(".quick-input-list-rows")),s=oe.R3(n,bs(".quick-input-list-row")),o=oe.R3(n,bs(".quick-input-list-row"));t.label=new ds.g(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=oe.Ce(t.label.element,bs(".quick-input-list-icon"));const r=oe.R3(s,bs(".quick-input-list-entry-keybinding"));t.keybinding=new hs.e(r,ut.OS),t.toDisposeTemplate.add(t.keybinding);const a=oe.R3(o,bs(".quick-input-list-label-meta"));return t.detail=new ds.g(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=oe.R3(t.entry,bs(".quick-input-list-separator")),t.actionBar=new qi.o(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Ns=ms=class extends Ds{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return ms.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(oe.mu(t.checkbox,oe.tw.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){var n,s,o;const r=e.element;i.element=r,r.element=null!==(n=i.entry)&&void 0!==n?n:void 0;const a=r.item;i.checkbox.checked=r.checked,i.toDisposeElement.add(r.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=r.checkboxDisabled;const{labelHighlights:l,descriptionHighlights:d,detailHighlights:c}=r;if(a.iconPath){const e=(0,cs._T)(this.themeService.getColorTheme().type)?a.iconPath.dark:null!==(s=a.iconPath.light)&&void 0!==s?s:a.iconPath.dark,t=h.o.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=oe.wY(t)}else i.icon.style.backgroundImage="",i.icon.className=a.iconClass?`quick-input-list-icon ${a.iconClass}`:"";let u;!r.saneTooltip&&r.saneDescription&&(u={markdown:{value:r.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDescription});const g={matches:l||[],descriptionTitle:u,descriptionMatches:d||[],labelEscapeNewLines:!0};if(g.extraClasses=a.iconClasses,g.italic=a.italic,g.strikethrough=a.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(r.saneLabel,r.saneDescription,g),i.keybinding.set(a.keybinding),r.saneDetail){let e;r.saneTooltip||(e={markdown:{value:r.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(r.saneDetail,void 0,{matches:c,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";(null===(o=r.separator)||void 0===o?void 0:o.label)?(i.separator.textContent=r.separator.label,i.separator.style.display="",this.addItemWithSeparator(r)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!r.separator);const p=a.buttons;p&&p.length?(i.actionBar.push(p.map(((e,t)=>rs(e,`id-${t}`,(()=>r.fireButtonTriggered({button:e,item:r.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Ns.ID="quickpickitem",Ns=ms=_s([vs(1,de.XE)],Ns);class Es extends Ds{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return Es.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;const s=e.element;i.element=s,s.element=null!==(n=i.entry)&&void 0!==n?n:void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const o=s.separator,{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=s;let d;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(d={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const h={matches:r||[],descriptionTitle:d,descriptionMatches:a||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,h),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const c=o.buttons;c&&c.length?(i.actionBar.push(c.map(((e,t)=>rs(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||null===(n=e.element.element)||void 0===n||n.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}Es.ID="quickpickseparator";let Ts=class extends l.JT{constructor(e,t,i,n,s){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this._onKeyDown=new ae.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new ae.Q5,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new ae.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new ae.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new ae.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new ae.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new ae.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new ae.Q5,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onTriggerEmptySelectionOrFocus=new ae.Q5,this._elementChecked=new ae.Q5,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new l.SL),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._container=oe.R3(this.parent,bs(".quick-input-list")),this._separatorRenderer=new Es(t),this._itemRenderer=s.createInstance(Ns,t),this._tree=this._register(s.createInstance(ls.PF,"QuickInput",this._container,new Ls,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new ks,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:fs.E4.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,identityProvider:{getId:e=>{var t,i,n,s,o,r,a,l;return null!==(l=null!==(r=null!==(s=null!==(i=null===(t=e.item)||void 0===t?void 0:t.id)&&void 0!==i?i:null===(n=e.item)||void 0===n?void 0:n.label)&&void 0!==s?s:null===(o=e.separator)||void 0===o?void 0:o.id)&&void 0!==r?r:null===(a=e.separator)||void 0===a?void 0:a.label)&&void 0!==l?l:""}},alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return ae.ju.map(ae.ju.any(this._tree.onDidChangeFocus,this._onTriggerEmptySelectionOrFocus.event),(e=>e.elements.filter((e=>e instanceof Ss)).map((e=>e.item))))}get onDidChangeSelection(){return ae.ju.map(ae.ju.any(this._tree.onDidChangeSelection,this._onTriggerEmptySelectionOrFocus.event),(e=>({items:e.elements.filter((e=>e instanceof Ss)).map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=null!==e&&void 0!==e?e:""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new yt.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(ut.dz?e.metaKey:e.ctrlKey)&&this._tree.setFocus(this._itemElements);break;case 16:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case 18:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}}this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(oe.nm(this._container,oe.tw.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(oe.nm(this._container,oe.tw.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnElementChecked(){this._register(this._elementChecked.event((e=>this._fireCheckedEvents())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new ti.rH(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{var i;if(t.browserEvent.target instanceof HTMLAnchorElement)e.cancel();else if(t.browserEvent.relatedTarget instanceof HTMLAnchorElement||!oe.jg(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element))try{await e.trigger((async()=>{t.element instanceof Ss&&this.showHover(t.element)}))}catch(t){if(!(0,Le.n2)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{var i;oe.jg(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&ys.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=ys.ACTIVE_ITEM:i.focusInsideSeparator&=~ys.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&ys.MOUSE_HOVER)||(i.focusInsideSeparator|=ys.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&ys.MOUSE_HOVER)&&(i.focusInsideSeparator&=~ys.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof Ss));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof xs&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter((e=>e.checked)).length}getVisibleCount(){return this._itemElements.filter((e=>!e.hidden)).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){this._elementDisposable.clear(),this._inputElements=e;const t=this.parent.classList.contains("show-checkboxes");let i;this._itemElements=new Array,this._elementTree=e.reduce(((n,s,o)=>{let r;if("separator"===s.type){if(!s.buttons)return n;i=new xs(o,(e=>this.fireSeparatorButtonTriggered(e)),s),r=i}else{const a=o>0?e[o-1]:void 0;let l;a&&"separator"===a.type&&!a.buttons&&(i=void 0,l=a);const d=new Ss(o,t,(e=>this.fireButtonTriggered(e)),this._elementChecked,s,l);if(this._itemElements.push(d),i)return i.children.push(d),n;r=d}return n.push(r),n}),new Array);const n=new Array;let s=0;for(const o of this._elementTree)o instanceof xs?(n.push({element:o,collapsible:!1,collapsed:!1,children:o.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}),s+=o.children.length+1):(n.push({element:o,collapsible:!1,collapsed:!1}),s++);this._tree.setChildren(null,n),this._onChangedVisibleCount.fire(s)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var t;if(this._itemElements.length)switch(e===Cs.Second&&this._itemElements.length<2&&(e=Cs.First),e){case Cs.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof Ss));break;case Cs.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case Cs.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case Cs.Next:this._tree.focusNext(void 0,!0,void 0,(e=>e.element instanceof Ss&&(this._tree.reveal(e.element),!0)));break;case Cs.Previous:this._tree.focusPrevious(void 0,!0,void 0,(e=>{if(!(e.element instanceof Ss))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Cs.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof Ss&&(this._tree.reveal(e.element),!0)));break;case Cs.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof Ss))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Cs.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof xs)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof Ss){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}));t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case Cs.PreviousSeparator:{let e,i=!!(null===(t=this._tree.getFocus()[0])||void 0===t?void 0:t.separator);this._tree.focusPrevious(void 0,!0,void 0,(t=>{if(t.element instanceof xs)i?e||(this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element.children[0]):i=!0;else if(t.element instanceof Ss&&!e)if(t.element.separator)this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._elementTree.forEach((n=>{var s,o,r,a;let l;l="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(s=(0,Xi.Gt)(e,(0,Xi.Ho)(n.saneLabel)))&&void 0!==s?s:void 0:this.matchOnLabel&&null!==(o=function(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return Is(e,i);const s=(0,d.j3)(i," "),o=i.length-s.length,r=Is(e,s);if(r)for(const a of r){const e=n[a.start+o]+o;a.start+=e,a.end+=e}return r}(t,(0,Xi.Ho)(n.saneLabel)))&&void 0!==o?o:void 0;const h=this.matchOnDescription&&null!==(r=(0,Xi.Gt)(e,(0,Xi.Ho)(n.saneDescription||"")))&&void 0!==r?r:void 0,c=this.matchOnDetail&&null!==(a=(0,Xi.Gt)(e,(0,Xi.Ho)(n.saneDetail||"")))&&void 0!==a?a:void 0;if(l||h||c?(n.labelHighlights=l,n.descriptionHighlights=h,n.detailHighlights=c,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){const e=n.index&&this._inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this._elementTree.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>function(e,t,i){const n=e.labelHighlights||[],s=t.labelHighlights||[];if(n.length&&!s.length)return-1;if(!n.length&&s.length)return 1;if(0===n.length&&0===s.length)return 0;return ps(e.saneSortLabel,t.saneSortLabel,i)}(e,i,t)))}let n;const s=i.reduce(((e,t,i)=>(t instanceof Ss?n?n.children.push(t):e.push(t):t instanceof xs&&(t.children=[],n=t,e.push(t)),e)),new Array),o=new Array;for(const a of s)a instanceof xs?o.push({element:a,collapsible:!1,collapsed:!1,children:a.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):o.push({element:a,collapsible:!1,collapsed:!1});const r=this._tree.getFocus().length;return this._tree.setChildren(null,o),r>0&&0===o.length&&this._onTriggerEmptySelectionOrFocus.fire({elements:[]}),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;const e=this._tree.getFocus().filter((e=>e instanceof Ss)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return"none"!==this._container.style.display}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!(null===e||void 0===e?void 0:e.saneTooltip)||!(e instanceof Ss))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new l.SL;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof Ss&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_allVisibleChecked(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}_fireCheckedEvents(){this._shouldFireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}fireSeparatorButtonTriggered(e){this._onSeparatorButtonTriggered.fire(e)}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function Is(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}_s([es.H],Ts.prototype,"onDidChangeFocus",null),_s([es.H],Ts.prototype,"onDidChangeSelection",null),Ts=_s([vs(4,be.TG)],Ts);var Ms=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},As=function(e,t){return function(i,n){t(i,n,e)}};const Rs={iconClass:Qi.k.asClassName(Yi.l.quickInputBack),tooltip:(0,De.NC)("quickInput.back","Back"),handle:-1};class Os extends l.JT{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=Os.noPromptMessage,this._severity=ke.Z.Ignore,this.onDidTriggerButtonEmitter=this._register(new ae.Q5),this.onDidHideEmitter=this._register(new ae.Q5),this.onWillHideEmitter=this._register(new ae.Q5),this.onDisposeEmitter=this._register(new ae.Q5),this.visibleDisposables=this._register(new l.SL),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!ut.gn;this._ignoreFocusOut=e&&!ut.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!==e&&void 0!==e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Jq.Other;this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Jq.Other;this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?oe.mc(this.ui.widget,this._widget):oe.mc(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new ti._F,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===Rs)).map(((e,t)=>rs(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==Rs)).map(((e,t)=>rs(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof Zn.Z)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const s=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==s&&(this._lastValidationMessage=s,oe.mc(this.ui.message),as(s,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,De.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ke.Z.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Os.noPromptMessage=(0,De.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Ps extends Os{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new ae.Q5),this.onWillAcceptEmitter=this._register(new ae.Q5),this.onDidAcceptEmitter=this._register(new ae.Q5),this.onDidCustomEmitter=this._register(new ae.Q5),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=qn.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new ae.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new ae.Q5),this.onDidTriggerItemButtonEmitter=this._register(new ae.Q5),this.onDidTriggerSeparatorButtonEmitter=this._register(new ae.Q5),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?qn.X5:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(Cs.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:(ut.dz?e.metaKey:e.altKey)?this.ui.list.focus(Cs.NextSeparator):this.ui.list.focus(Cs.Next),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 16:(ut.dz?e.metaKey:e.altKey)?this.ui.list.focus(Cs.PreviousSeparator):this.ui.list.focus(Cs.Previous),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 12:this.ui.list.focus(Cs.NextPage),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 11:this.ui.list.focus(Cs.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),oe.zB.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cs.First),oe.zB.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cs.Last),oe.zB.stop(e,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,ve.fS)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((e=>{let{items:t,event:i}=e;this.canSelectMany?t.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,ve.fS)(t,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=t,this.onDidChangeSelectionEmitter.fire(t),t.length&&this.handleAccept(oe.N5(i)&&1===i.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,ve.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return oe.nm(this.ui.container,oe.tw.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new yt.y(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const n=e.getChords();return!(n.length>1)&&(n[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!n[0].altKey||6!==i)||(!(!n[0].ctrlKey||5!==i)||!(!n[0].metaKey||57!==i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(!n&&i.inputBox&&(n=this.placeholder||Ps.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=null!==n&&void 0!==n?n:null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated){this.itemsUpdated=!1;const e=this._activeItems;switch(this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case qn.jG.NONE:e.length>0&&(this._activeItems=[],this.onDidChangeActiveEmitter.fire(this._activeItems)),this._itemActivation=qn.jG.FIRST;break;case qn.jG.SECOND:this.ui.list.focus(Cs.Second),this._itemActivation=qn.jG.FIRST;break;case qn.jG.LAST:this.ui.list.focus(Cs.Last),this._itemActivation=qn.jG.FIRST;break;default:this.trySelectFirst()}}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Cs.First)),this.keepScrollPosition&&(this.scrollTop=e)}}Ps.DEFAULT_ARIA_LABEL=(0,De.NC)("quickInputBox.ariaLabel","Type to narrow down results.");class Fs extends Os{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new ae.Q5),this.onDidAcceptEmitter=this._register(new ae.Q5),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Bs=class extends st.mQ{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){var t;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(e.content instanceof HTMLElement?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Bs=Ms([As(0,z.Ui),As(1,st.Bs)],Bs);var Vs=i(33013),Ws=i(45337);const Hs="done",zs="active",js="infinite",Us="infinite-long-running",Ks="discrete";class qs extends l.JT{constructor(e,t){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new ti.pY((()=>(0,oe.$Z)(this.element)),0)),this.longRunningScheduler=this._register(new ti.pY((()=>this.infiniteLongRunning()),qs.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null===t||void 0===t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(zs,js,Us,Ks),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Hs),this.element.classList.contains(js)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Ks,Hs,Us),this.element.classList.add(zs,js),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Us)}getContainer(){return this.element}}qs.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var $s=i(22406);const Gs=oe.$;class Ys extends l.JT{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>oe.mu(this.findInput.inputBox.inputElement,oe.tw.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=oe.R3(this.parent,Gs(".quick-input-box")),this.findInput=this._register(new $s.V(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ke.Z.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ke.Z.Info?1:e===ke.Z.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ke.Z.Info?1:e===ke.Z.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Zs,Qs=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Xs=function(e,t){return function(i,n){t(i,n,e)}};const Js=oe.$;let eo=Zs=class extends l.JT{get container(){return this._container}constructor(e,t,i){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.enabled=!0,this.onDidAcceptEmitter=this._register(new ae.Q5),this.onDidCustomEmitter=this._register(new ae.Q5),this.onDidTriggerButtonEmitter=this._register(new ae.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new ae.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new ae.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(ae.ju.runAndSubscribe(oe.Xo,(e=>{let{window:t,disposables:i}=e;return this.registerKeyModsListeners(t,i)}),{window:a.E,disposables:this._store})),this._register(oe.Jc((e=>{this.ui&&oe.Jj(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const n of[oe.tw.KEY_DOWN,oe.tw.KEY_UP,oe.tw.MOUSE_DOWN])t.add(oe.nm(e,n,i,!0))}getUI(e){if(this.ui)return e&&oe.Jj(this._container)!==oe.Jj(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=oe.R3(this._container,Js(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=oe.dS(t),n=oe.R3(t,Js(".quick-input-titlebar")),s=this._register(new qi.o(n,{hoverDelegate:this.options.hoverDelegate}));s.domNode.classList.add("quick-input-left-action-bar");const o=oe.R3(n,Js(".quick-input-title")),r=this._register(new qi.o(n,{hoverDelegate:this.options.hoverDelegate}));r.domNode.classList.add("quick-input-right-action-bar");const a=oe.R3(t,Js(".quick-input-header")),l=oe.R3(a,Js("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,De.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(oe.mu(l,oe.tw.CHANGE,(e=>{const t=l.checked;k.setAllVisibleChecked(t)}))),this._register(oe.nm(l,oe.tw.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const d=oe.R3(a,Js(".quick-input-description")),h=oe.R3(a,Js(".quick-input-and-message")),c=oe.R3(h,Js(".quick-input-filter")),u=this._register(new Ys(c,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=oe.R3(c,Js(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new Ws.Z(g,{countFormat:(0,De.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=oe.R3(c,Js(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new Ws.Z(m,{countFormat:(0,De.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=oe.R3(a,Js(".quick-input-action")),v=this._register(new Vs.z(_,this.styles.button));v.label=(0,De.NC)("ok","OK"),this._register(v.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=oe.R3(a,Js(".quick-input-action")),C=this._register(new Vs.z(b,{...this.styles.button,supportIcons:!0}));C.label=(0,De.NC)("custom","Custom"),this._register(C.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=oe.R3(h,Js(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new qs(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const S=oe.R3(t,Js(".quick-input-html-widget"));S.tabIndex=-1;const x=oe.R3(t,Js(".quick-input-description")),L=this.idPrefix+"list",k=this._register(this.instantiationService.createInstance(Ts,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,L));u.setAttribute("aria-controls",L),this._register(k.onDidChangeFocus((()=>{var e;u.setAttribute("aria-activedescendant",null!==(e=k.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(k.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(k.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(k.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(k.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof Ps&&this.controller.canSelectMany&&k.clearFocus())}),0)})));const D=oe.go(t);return this._register(D),this._register(oe.nm(t,oe.tw.FOCUS,(e=>{oe.jg(e.relatedTarget,t)||(this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0)}),!0)),this._register(D.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(qn.Jq.Blur),this.previousFocusElement=void 0}))),this._register(oe.nm(t,oe.tw.FOCUS,(e=>{u.setFocus()}))),this._register(oe.mu(t,oe.tw.KEY_DOWN,(e=>{if(!oe.jg(e.target,S))switch(e.keyCode){case 3:oe.zB.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:oe.zB.stop(e,!0),this.hide(qn.Jq.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(oe.jg(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(oe.zB.stop(e,!0),k.clearFocus()):!e.shiftKey&&oe.jg(e.target,n[n.length-1])&&(oe.zB.stop(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(oe.zB.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:s,titleBar:n,title:o,description1:x,description2:d,widget:S,rightActionBar:r,checkAll:l,inputContainer:h,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:_,ok:v,message:y,customButtonContainer:b,customButton:C,list:k,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,oe.R3(this._container,this.ui.container))}pick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn.T.None;return new Promise(((n,s)=>{let o=e=>{var i;o=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,r.keyMods),n(e)};if(i.isCancellationRequested)return void o(void 0);const r=this.createQuickPick();let a;const d=[r,r.onDidAccept((()=>{if(r.canSelectMany)o(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(o(e),r.hide())}})),r.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),r.onDidChangeSelection((e=>{if(!r.canSelectMany){const t=e[0];t&&(o(t),r.hide())}})),r.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice(),i=e.splice(t,1),n=r.activeItems.filter((e=>e!==i[0])),s=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=e,n&&(r.activeItems=n),r.keepScrollPosition=s}}}))),r.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),r.onDidChangeValue((e=>{!a||e||1===r.activeItems.length&&r.activeItems[0]===a||(r.activeItems=[a])})),i.onCancellationRequested((()=>{r.hide()})),r.onDidHide((()=>{(0,l.B9)(d),o(void 0)}))];r.title=t.title,r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.quickNavigate=t.quickNavigate,r.hideInput=!!t.hideInput,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then((e=>{let[t,i]=e;a=i,r.busy=!1,r.items=t,r.canSelectMany&&(r.selectedItems=t.filter((e=>"separator"!==e.type&&e.picked))),a&&(r.activeItems=[a])})),r.show(),Promise.resolve(e).then(void 0,(e=>{s(e),r.hide()}))}))}createQuickPick(){const e=this.getUI(!0);return new Ps(e)}createInputBox(){const e=this.getUI(!0);return new Fs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,null===i||void 0===i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",oe.mc(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ke.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oe.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();Rs.tooltip=n?(0,De.NC)("quickInput.backWithKeybinding","Back ({0})",n):(0,De.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;n.willHide(e);const s=null===(t=this.ui)||void 0===t?void 0:t.container,o=s&&!oe.b5(s);if(this.controller=null,this.onHideEmitter.fire(),s&&(s.style.display="none"),!o){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null===e||void 0===e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,Zs.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!==e&&void 0!==e?e:"",this.ui.container.style.backgroundColor=null!==t&&void 0!==t?t:"",this.ui.container.style.color=null!==i&&void 0!==i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.list.style(this.styles.list);const o=[];this.styles.pickerGroup.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&o.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(o.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&o.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&o.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&o.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&o.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&o.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),o.push("}"));const r=o.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}};eo.MAX_WIDTH=600,eo=Zs=Qs([Xs(1,Ce),Xs(2,be.TG)],eo);var to=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},io=function(e,t){return function(i,n){t(i,n,e)}};let no=class extends de.bB{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Yn))),this._quickAccess}constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=s,this._onShow=this._register(new ae.Q5),this._onHide=this._register(new ae.Q5),this.contexts=new Map}createController(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.layoutService,t=arguments.length>1?arguments[1]:void 0;const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(dt.v).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Bs))},n=this._register(this.instantiationService.createInstance(eo,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,oe.Jj)(e.activeContainer)===(0,oe.Jj)(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ge.uy(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null===t||void 0===t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn.T.None;return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,nt.n_1)(nt.zKr),quickInputForeground:(0,nt.n_1)(nt.tZ6),quickInputTitleBackground:(0,nt.n_1)(nt.loF),widgetBorder:(0,nt.n_1)(nt.A42),widgetShadow:(0,nt.n_1)(nt.rh)},inputBox:dn.Hc,toggle:dn.pl,countBadge:dn.ku,button:dn.wG,progressBar:dn.b5,keybindingLabel:dn.eO,list:(0,dn.TU)({listBackground:nt.zKr,listFocusBackground:nt.Vqd,listFocusForeground:nt.NPS,listInactiveFocusForeground:nt.NPS,listInactiveSelectionIconForeground:nt.cbQ,listInactiveFocusBackground:nt.Vqd,listFocusOutline:nt.xL1,listInactiveFocusOutline:nt.xL1}),pickerGroup:{pickerGroupBorder:(0,nt.n_1)(nt.opG),pickerGroupForeground:(0,nt.n_1)(nt.kJk)}}}};no=to([io(0,be.TG),io(1,ge.i6),io(2,de.XE),io(3,Ce),io(4,z.Ui)],no);var so=i(66870),oo=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ro=function(e,t){return function(i,n){t(i,n,e)}};let ao=class extends no{constructor(e,t,i,n,s,o){super(t,i,n,new xe(e.getContainerDomNode(),s),o),this.host=void 0;const r=ho.get(e);if(r){const t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return ae.ju.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return ae.ju.None},get onDidAddContainer(){return ae.ju.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};ao=oo([ro(1,be.TG),ro(2,ge.i6),ro(3,de.XE),ro(4,g.$),ro(5,z.Ui)],ao);let lo=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(ao,e);this.mapEditorToService.set(e,t),(0,so.M)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn.T.None;return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};lo=oo([ro(0,be.TG),ro(1,g.$)],lo);class ho{static get(e){return e.getContribution(ho.ID)}constructor(e){this.editor=e,this.widget=new co(this.editor)}dispose(){this.widget.dispose()}}ho.ID="editor.controller.quickInput";class co{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return co.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}co.ID="editor.contrib.quickInputWidget",(0,u._K)(ho.ID,ho,4);var uo=i(84633),go=i(79737),po=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},mo=function(e,t){return function(i,n){t(i,n,e)}};let fo=class extends l.JT{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new ae.Q5,this._onDidChangeReducedMotion=new ae.Q5,this._accessibilityModeEnabledContext=gt.U.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const s=a.E.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(s)}initReducedMotionListeners(e){this._register((0,oe.nm)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};fo=po([mo(0,ge.i6),mo(1,Ce),mo(2,z.Ui)],fo);var _o,vo,bo=i(87650),Co=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},yo=function(e,t){return function(i,n){t(i,n,e)}};let wo=class{constructor(e,t){this._commandService=e,this._hiddenStates=new So(t)}createMenu(e,t,i){return new Lo(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};wo=Co([yo(0,Ut.H),yo(1,bo.Uy)],wo);let So=_o=class{constructor(e){this._storageService=e,this._disposables=new l.SL,this._onDidChange=new ae.Q5,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(_o._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,_o._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(_o._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const s=this._isHiddenByDefault(e,t),o=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return s?!o:o}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const n=this._data[e.id];if(i)if(n){n.indexOf(t)<0&&n.push(t)}else this._data[e.id]=[t];else if(n){const i=n.indexOf(t);i>=0&&(0,ve.LS)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(_o._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};So._key="menu.hiddenCommands",So=_o=Co([yo(0,bo.Uy)],So);let xo=vo=class{constructor(e,t,i,n,s){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._contextKeyService=s,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=zi.BH.getMenuItems(this._id);let t;e.sort(vo._compareMenuItems);for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(vo._fillInKbExprKeys(e.when,this._structureContextKeys),(0,zi.vr)(e)){if(e.command.precondition&&vo._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;vo._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&zi.BH.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,s]=i,o=[];for(const t of s)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,zi.vr)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const n=ko(this._id,i?t.command:t,this._hiddenStates);if(i)o.push(new zi.U8(t.command,t.alt,e,n,this._contextKeyService,this._commandService));else{const i=new vo(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(e),s=Wi.Z0.join(...i.map((e=>e[1])));s.length>0&&o.push(new zi.NZ(t,n,s))}}o.length>0&&t.push([n,o])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(!i)return 1;if(!n)return-1;if("navigation"===i)return-1;if("navigation"===n)return 1;const e=i.localeCompare(n);if(0!==e)return e}const s=e.order||0,o=t.order||0;return s<o?-1:s>o?1:vo._compareTitles((0,zi.vr)(e)?e.command.title:e.title,(0,zi.vr)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,n="string"===typeof t?t:t.original;return i.localeCompare(n)}};xo=vo=Co([yo(3,Ut.H),yo(4,ge.i6)],xo);let Lo=class{constructor(e,t,i,n,s){this._disposables=new l.SL,this._menuInfo=new xo(e,t,i.emitEventsForSubmenuChanges,n,s);const o=new ti.pY((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(o),this._disposables.add(zi.BH.onDidChangeMenu((t=>{t.has(e)&&o.schedule()})));const r=this._disposables.add(new l.SL);this._onDidChange=new ae.D0({onWillAddFirstListener:()=>{r.add(s.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),r.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:r.clear.bind(r),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,n=!1;for(const s of e)if(t=t||s.isStructuralChange,i=i||s.isEnablementChange,n=n||s.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function ko(e,t,i){const n=(0,zi.f6)(t)?t.submenu.id:t.id,s="string"===typeof t.title?t.title:t.title.value,o=(0,Wi.xw)({id:`hide/${e.id}/${n}`,label:(0,De.NC)("hide.label","Hide '{0}'",s),run(){i.updateHidden(e,n,!0)}}),r=(0,Wi.xw)({id:`toggle/${e.id}/${n}`,label:s,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:o,toggle:r,get isHidden(){return!r.checked}}}Lo=Co([yo(3,Ut.H),yo(4,ge.i6)],Lo);var Do,No=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Eo=function(e,t){return function(i,n){t(i,n,e)}};let To=Do=class extends l.JT{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(Ui.G6||Ui.MG)&&this.installWebKitWriteTextWorkaround(),this._register(ae.ju.runAndSubscribe(oe.Xo,(e=>{let{window:t,disposables:i}=e;i.add((0,oe.nm)(t.document,"copy",(()=>this.clearResources())))}),{window:a.E,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new ti.CR;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(ae.ju.runAndSubscribe(this.layoutService.onDidAddContainer,(t=>{let{container:i,disposables:n}=t;n.add((0,oe.nm)(i,"click",e)),n.add((0,oe.nm)(i,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,oe.uP)(),i=t.activeElement,n=t.body.appendChild((0,oe.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),i instanceof HTMLElement&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,On.vp)(e.substring(0,Do.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};To.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,To=Do=No([Eo(0,Ce),Eo(1,Ke.VZ)],To);var Io=i(63826),Mo=i(2706),Ao=i(61700),Ro=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Oo=function(e,t){return function(i,n){t(i,n,e)}};const Po="data-keybinding-context";class Fo{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Bo extends Fo{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Bo.INSTANCE=new Bo;class Vo extends Fo{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Ao.Id.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(e=>{let[t]=e;return t}));this._values.clear(),i.fire(new zo(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...Mo.$.map(n,(e=>{let[t]=e;return t}))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new zo(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(Vo._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Vo._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Vo._keyPrefix="config.";class Wo{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Ho{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class zo{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class jo{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Uo extends l.JT{constructor(e){super(),this._onDidChangeContext=this._register(new ae.K3({merge:e=>new jo(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Wo(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new qo(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Ho(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Ho(e))}getContext(e){return this._isDisposed?Bo.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Po)){const t=e.getAttribute(Po);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Ko=class extends Uo{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new Vo(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Bo.INSTANCE:this._contexts.get(e)||Bo.INSTANCE}createChildContext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._myContextId;if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new Fo(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Ko=Ro([Oo(0,z.Ui)],Ko);class qo extends Uo{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new l.XK),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Po)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Po,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Po),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Bo.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._myContextId;if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}Ut.P.registerCommand("_setContext",(function(e,t,i){e.get(ge.i6).createKey(String(t),function(e){return(0,p.rs)(e,(e=>"object"===typeof e&&1===e.$mid?h.o.revive(e).toString():e instanceof h.o?e.toString():void 0))}(i))})),Ut.P.registerCommand({id:"getContextKeyInfo",handler:()=>[...ge.uy.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,De.NC)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),Ut.P.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ge.uy.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var $o=i(46479);class Go{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class Yo{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new Go(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}var Zo=i(45234);class Qo extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class Xo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zo.y,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var s;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._activeInstantiations=new Set,this._services.set(be.TG,this),this._globalGraph=n?null!==(s=null===i||void 0===i?void 0:i._globalGraph)&&void 0!==s?s:new Yo((e=>e)):void 0}createChild(e){return new Xo(e,this._strict,this,this._enableTracing)}invokeFunction(e){const t=Jo.traceInvocation(this._enableTracing,e);let i=!1;try{const r={get:e=>{if(i)throw(0,Le.L6)("service accessor is only valid during the invocation of its target method");const n=this._getOrCreateServiceInstance(e,t);if(!n)throw new Error(`[invokeFunction] unknown service '${e}'`);return n}};for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return e(r,...s)}finally{i=!0,t.stop()}}createInstance(e){let t,i;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return e instanceof $o.M?(t=Jo.traceCreation(this._enableTracing,e.ctor),i=this._createInstance(e.ctor,e.staticArguments.concat(s),t)):(t=Jo.traceCreation(this._enableTracing,e),i=this._createInstance(e,s,t)),t.stop(),i}_createInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;const n=be.I8.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),s=[];for(const r of n){const t=this._getOrCreateServiceInstance(r.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`,!1),s.push(t)}const o=n.length>0?n[0].index:t.length;if(t.length!==o){console.trace(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);const i=o-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,o)}return Reflect.construct(e,t.concat(s))}_setServiceInstance(e,t){if(this._services.get(e)instanceof $o.M)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof $o.M?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const s=new Yo((e=>e.id.toString()));let o=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const t=r.pop();if(s.lookupOrInsertNode(t),o++>1e3)throw new Qo(s);for(const i of be.I8.getServiceDependencies(t.desc.ctor)){const o=this._getServiceInstanceOrDescriptor(i.id);if(o||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),o instanceof $o.M){const e={id:i.id,desc:o,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new Qo(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof $o.M){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(this._services.get(e)instanceof $o.M)return this._createServiceInstance(e,t,i,n,s);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,s);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>4?arguments[4]:void 0;if(arguments.length>3?arguments[3]:void 0){const s=new Xo(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,r=new ti.R5((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const n=e[t];if("function"===typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return o.clear(),e}));return new Proxy(Object.create(null),{get(e,t){if(!r.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=o.get(t);e||(e=new le.S,o.set(t,e));return(i,n,s)=>{if(r.isInitialized)return r.value[t](i,n,s);{const t={listener:[i,n,s],disposable:void 0},o=e.push(t);return(0,l.OF)((()=>{var e;o(),null===(e=t.disposable)||void 0===e||e.dispose()}))}}}if(t in e)return e[t];const i=r.value;let n=i[t];return"function"!==typeof n||(n=n.bind(i),e[t]=n),n},set:(e,t,i)=>(r.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}return this._createInstance(t,i,n)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class Jo{static traceInvocation(e,t){return e?new Jo(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):Jo._None}static traceCreation(e,t){return e?new Jo(1,t.name):Jo._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new Jo(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;Jo._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){const s=[],o=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,s.push(`${o}CREATES -> ${r}`);const n=e(i+1,l);n&&s.push(n)}else s.push(`${o}uses -> ${r}`);return s.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Jo._totals.toFixed(2)}ms)`];(e>2||t)&&Jo.all.add(i.join("\n"))}}Jo.all=new Set,Jo._None=new class extends Jo{constructor(){super(0,null)}stop(){}branch(){return this}},Jo._totals=0;const er=new Set([re.lg.inMemory,re.lg.vscodeSourceControl,re.lg.walkThrough,re.lg.walkThroughSnippet,re.lg.vscodeChatCodeBlock]);class tr{constructor(){this._byResource=new Kt.Y9,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let s=this._byOwner.get(t);s||(s=new Kt.Y9,this._byOwner.set(t,s)),s.set(e,i)}get(e,t){const i=this._byResource.get(e);return null===i||void 0===i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const s=this._byResource.get(e);s&&(i=s.delete(t));const o=this._byOwner.get(t);if(o&&(n=o.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,s;return"string"===typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:Mo.$.empty():h.o.isUri(e)?null!==(s=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==s?s:Mo.$.empty():Mo.$.map(Mo.$.concat(...this._byOwner.values()),(e=>e[1]))}}class ir{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Kt.Y9,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(er.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===xn.ZL.Error?t.errors+=1:i===xn.ZL.Warning?t.warnings+=1:i===xn.ZL.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class nr{constructor(){this._onMarkerChanged=new ae.D0({delay:0,merge:nr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new tr,this._stats=new ir(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,ve.XY)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const n=[];for(const s of i){const i=nr._toMarker(e,t,s);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:h,relatedInformation:c,tags:u}=i;if(o)return a=a>0?a:1,l=l>0?l:1,d=d>=a?d:a,h=h>0?h:l,{resource:t,owner:e,code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:h,relatedInformation:c,tags:u}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const s of n){const t=Mo.$.first(s);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,ve.Of)(t)){const n=new Kt.Y9;for(const{resource:s,marker:o}of t){const t=nr._toMarker(e,s,o);if(!t)continue;const r=n.get(s);r?r.push(t):(n.set(s,[t]),i.push(s))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null),{owner:t,resource:i,severities:n,take:s}=e;if((!s||s<0)&&(s=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(nr._accept(i,n)){const e=t.push(i);if(s>0&&e===s)break}return t}return[]}if(t||i){const e=this._data.values(null!==i&&void 0!==i?i:t),o=[];for(const t of e)for(const e of t)if(nr._accept(e,n)){const t=o.push(e);if(s>0&&t===s)return o}return o}{const e=[];for(const t of this._data.values())for(const i of t)if(nr._accept(i,n)){const t=e.push(i);if(s>0&&t===s)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new Kt.Y9;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}class sr extends l.JT{constructor(){super(...arguments),this._configurationModel=new Zt}get configurationModel(){return this._configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=new Zt;const e=Gt.B.as($t.IP.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],s=t[n];void 0!==e?this._configurationModel.addValue(n,e):s?this._configurationModel.addValue(n,s.default):this._configurationModel.removeValue(n)}}}var or=i(88622);class rr extends l.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];super(),this.logger=new Ke.qA([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.trace(e,...i)}debug(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.debug(e,...i)}info(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.info(e,...i)}warn(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.warn(e,...i)}error(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.logger.error(e,...i)}}var ar=i(26993),lr=i(68664),dr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},hr=function(e,t){return function(i,n){t(i,n,e)}};class cr{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new ae.Q5}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let ur=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new l.Jz(new cr(t))):Promise.reject(new Error("Model not found"))}};ur=dr([hr(0,k.q)],ur);class gr{show(){return gr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}gr.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class pr{info(e){return this.notify({severity:ke.Z.Info,message:e})}warn(e){return this.notify({severity:ke.Z.Warning,message:e})}error(e){return this.notify({severity:ke.Z.Error,message:e})}notify(e){switch(e.severity){case ke.Z.Error:console.error(e.message);break;case ke.Z.Warning:console.warn(e.message);break;default:console.log(e.message)}return pr.NO_OP}prompt(e,t,i,n){return pr.NO_OP}status(e,t){return l.JT.None}}pr.NO_OP=new Ee.EO;let mr=class{constructor(e){this._onWillExecuteCommand=new ae.Q5,this._onDidExecuteCommand=new ae.Q5,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e){const t=Ut.P.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];this._onWillExecuteCommand.fire({commandId:e,args:n});const o=this._instantiationService.invokeFunction.apply(this._instantiationService,[t.handler,...n]);return this._onDidExecuteCommand.fire({commandId:e,args:n}),Promise.resolve(o)}catch(o){return Promise.reject(o)}}};mr=dr([hr(0,be.TG)],mr);let fr=class extends di{constructor(e,t,i,n,s,o){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const r=e=>{const t=new l.SL;t.add(oe.nm(e,oe.tw.KEY_DOWN,(e=>{const t=new yt.y(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(oe.nm(e,oe.tw.KEY_UP,(e=>{const t=new yt.y(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new _r(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},d=e=>{e.getOption(61)||r(e.getContainerDomNode())};this._register(o.onCodeEditorAdd(d)),this._register(o.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),o.listCodeEditors().forEach(d);const h=e=>{r(e.getContainerDomNode())};this._register(o.onDiffEditorAdd(h)),this._register(o.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),o.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return(0,l.F8)(Ut.P.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:(0,Pt.Z9)(e.keybinding,ut.OS),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,l.OF)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(ci.W.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new oi(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.E.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const s of e){const e=s.when||void 0,o=s.keybinding;if(o){const r=_i.resolveKeybinding(o,ut.OS);for(const o of r)i[n++]=new ui(o,s.command,s.commandArgs,e,t,null,!1)}else i[n++]=new ui(void 0,s.command,s.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new Pt.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new _i([t],ut.OS)}};fr=dr([hr(0,ge.i6),hr(1,Ut.H),hr(2,Ci.b),hr(3,Ee.lT),hr(4,Ke.VZ),hr(5,g.$)],fr);class _r extends l.JT{constructor(e,t){super(),this.domNode=e,this._register(t)}}function vr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.o)}class br{constructor(){this._onDidChangeConfiguration=new ae.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new sr;this._configuration=new Jt(e.reload(),new Zt,new Zt,new Zt),e.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,n=vr(e)?e:vr(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new ei({keys:i,overrides:[]},t,this._configuration);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._configuration.inspect(e,t,void 0)}}let Cr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new ae.Q5,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=Wt.L.isIPosition(t)?t:null,s=n?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,o=e?this.getLanguage(e,n):void 0;return"undefined"===typeof s?this.configurationService.getValue({resource:e,overrideIdentifier:o}):this.configurationService.getValue(s,{resource:e,overrideIdentifier:o})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Cr=dr([hr(0,z.Ui),hr(1,k.q),hr(2,y.O)],Cr);let yr=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:ut.IJ||ut.dz?"\n":"\r\n"}};yr=dr([hr(0,z.Ui)],yr);class wr{constructor(){const e=h.o.from({scheme:wr.SCHEME,authority:"model",path:"/"});this.workspace={id:yi.p$,folders:[new yi.md({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===wr.SCHEME?this.workspace.folders[0]:null}}function Sr(e,t,i){if(!t)return;if(!(e instanceof br))return;const n=[];Object.keys(t).forEach((e=>{(0,Bt.ei)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,Bt.Pe)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}wr.SCHEME="inmemory";let xr=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:Ft.fo.convert(e),n=new Map;for(const r of i){if(!(r instanceof Ft.Gl))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let t=n.get(e);t||(t=[],n.set(e,t)),t.push(Vt.h.replaceMove(Ht.e.lift(r.textEdit.range),r.textEdit.text))}let s=0,o=0;for(const[r,a]of n)r.pushStackElement(),r.pushEditOperations([],a,(()=>[])),r.pushStackElement(),o+=1,s+=a.length;return{ariaSummary:d.WU(wi.iN.bulkEditServiceSummary,s,o),isApplied:s>0}}};xr=dr([hr(0,k.q)],xr);let Lr=class extends Tt{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Lr=dr([hr(0,Ce),hr(1,g.$)],Lr);let kr=class extends gn{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o),this.configure({blockMouse:!1})}};kr=dr([hr(0,Ci.b),hr(1,Ee.lT),hr(2,ot.u),hr(3,rt.d),hr(4,zi.co),hr(5,ge.i6)],kr);var Dr;(0,pe.z)(z.Ui,br,0),(0,pe.z)(jt.V,Cr,0),(0,pe.z)(jt.y,yr,0),(0,pe.z)(yi.ec,wr,0),(0,pe.z)(vi.e,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Si.EZ)(e)}},0),(0,pe.z)(Ci.b,class{publicLog2(){}},0),(0,pe.z)(Ne.S,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),a.E.confirm(i)}async prompt(e){var t,i;let n;if(this.doConfirm(e.message,e.detail)){const s=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&s.push(e.cancelButton),n=await(null===(i=s[0])||void 0===i?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:ke.Z.Error,message:e,detail:t})}},0),(0,pe.z)(lr.Y,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,pe.z)(Ee.lT,pr,0),(0,pe.z)(xn.lT,nr,0),(0,pe.z)(y.O,class extends Bi{constructor(){super()}},0),(0,pe.z)(go.Z,uo.nI,0),(0,pe.z)(Ke.VZ,class extends rr{constructor(){super(new Ke.kw)}},0),(0,pe.z)(k.q,jn,0),(0,pe.z)(Mn.i,En,0),(0,pe.z)(ge.i6,Ko,0),(0,pe.z)(bi.R9,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,pe.z)(bi.ek,gr,0),(0,pe.z)(bo.Uy,bo.vm,0),(0,pe.z)(Sn.p,m.eu,0),(0,pe.z)(Ft.vu,xr,0),(0,pe.z)(xi.Y,class{constructor(){this._neverEmitter=new ae.Q5,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,pe.z)(zt.S,ur,0),(0,pe.z)(gt.F,fo,0),(0,pe.z)(ls.Lw,ls.XN,0),(0,pe.z)(Ut.H,mr,0),(0,pe.z)(rt.d,fr,0),(0,pe.z)(qn.eJ,lo,0),(0,pe.z)(ot.u,Lr,0),(0,pe.z)(dt.v,wn,0),(0,pe.z)(Io.p,To,0),(0,pe.z)(ot.i,kr,0),(0,pe.z)(zi.co,wo,0),(0,pe.z)(or.IV,class{async playSignal(e,t){}},0),function(e){const t=new Zo.y;for(const[r,a]of(0,pe.d)())t.set(r,a);const i=new Xo(t,!0);t.set(be.TG,i),e.get=function(e){n||o({});const s=t.get(e);if(!s)throw new Error("Missing service "+e);return s instanceof $o.M?i.invokeFunction((t=>t.get(e))):s};let n=!1;const s=new ae.Q5;function o(e){if(n)return i;n=!0;for(const[i,n]of(0,pe.d)())t.get(i)||t.set(i,n);for(const i in e)if(e.hasOwnProperty(i)){const n=(0,be.yh)(i);t.get(n)instanceof $o.M&&t.set(n,e[i])}const o=(0,ar.n)();for(const t of o)try{i.createInstance(t)}catch(r){(0,Le.dL)(r)}return s.fire(),i}e.initialize=o,e.withServices=function(e){if(n)return e();const t=new l.SL,i=t.add(s.event((()=>{i.dispose(),t.add(e())})));return t}}(Dr||(Dr={}));var Nr=i(61369),Er=i(97133),Tr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ir=function(e,t){return function(i,n){t(i,n,e)}};let Mr=0,Ar=!1;let Rr=class extends s.Gm{constructor(e,t,i,n,s,o,r,l,d,h,c,u){const g={...t};g.ariaLabel=g.ariaLabel||wi.B8.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+wi.B8.accessibilityHelpMessage,super(e,g,{},i,n,s,o,l,d,h,c,u),this._standaloneKeybindingService=r instanceof fr?r:null,function(e){if(!e){if(Ar)return;Ar=!0}ne.wW(e||a.E.document.body)}(g.ariaContainerElement),(0,Er.rM)(((e,t)=>i.createInstance(st.mQ,e,t,{})))}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Mr,s=ge.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){var t=this;if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.JT.None;const i=e.id,n=e.label,s=ge.Ao.and(ge.Ao.equals("editorId",this.getId()),ge.Ao.deserialize(e.precondition)),o=e.keybindings,r=ge.Ao.and(s,ge.Ao.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,d=e.contextMenuOrder||0,h=function(i){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return Promise.resolve(e.run(t,...s))},c=new l.SL,u=this.getId()+":"+i;if(c.add(Ut.P.registerCommand(u,h)),a){const e={command:{id:u,title:n},when:s,group:a,order:d};c.add(zi.BH.appendMenuItem(zi.eH.EditorContext,e))}if(Array.isArray(o))for(const l of o)c.add(this._standaloneKeybindingService.addDynamicKeybinding(u,l,h,r));const g=new se.p(u,n,n,void 0,s,(function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return Promise.resolve(e.run(t,...n))}),this._contextKeyService);return this._actions.set(i,g),c.add((0,l.OF)((()=>{this._actions.delete(i)}))),c}_triggerCommand(e,t){if(this._codeEditorService instanceof _e)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};Rr=Tr([Ir(2,be.TG),Ir(3,g.$),Ir(4,Ut.H),Ir(5,ge.i6),Ir(6,rt.d),Ir(7,de.XE),Ir(8,Ee.lT),Ir(9,gt.F),Ir(10,w.c_),Ir(11,it.p)],Rr);let Or=class extends Rr{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p){const m={...t};Sr(d,m,!1);const f=a.registerEditorContainer(e);"string"===typeof m.theme&&a.setTheme(m.theme),"undefined"!==typeof m.autoDetectHighContrast&&a.setAutoDetectHighContrast(Boolean(m.autoDetectHighContrast));const _=m.model;let v;if(delete m.model,super(e,m,i,n,s,o,r,a,l,h,g,p),this._configurationService=d,this._standaloneThemeService=a,this._register(f),"undefined"===typeof _){const e=u.getLanguageIdByMimeType(m.language)||m.language||S.bd;v=Fr(c,u,m.value||"",e,void 0),this._ownsModel=!0}else v=_,this._ownsModel=!1;if(this._attachModel(v),v){const e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Sr(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Or=Tr([Ir(2,be.TG),Ir(3,g.$),Ir(4,Ut.H),Ir(5,ge.i6),Ir(6,rt.d),Ir(7,go.Z),Ir(8,Ee.lT),Ir(9,z.Ui),Ir(10,gt.F),Ir(11,k.q),Ir(12,y.O),Ir(13,w.c_),Ir(14,it.p)],Or);let Pr=class extends Nr.p{constructor(e,t,i,n,s,o,r,a,l,d,h,c){const u={...t};Sr(a,u,!0);const g=o.registerEditorContainer(e);"string"===typeof u.theme&&o.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&o.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},n,i,s,c,d),this._configurationService=a,this._standaloneThemeService=o,this._register(g)}dispose(){super.dispose()}updateOptions(e){Sr(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(Rr,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function Fr(e,t,i,n,s){if(i=i||"",!n){const n=i.indexOf("\n");let o=i;return-1!==n&&(o=i.substring(0,n)),Br(e,i,t.createByFilepathOrFirstLine(s||null,o),s)}return Br(e,i,t.createById(n),s)}function Br(e,t,i,n){return e.createModel(t,i,n)}Pr=Tr([Ir(2,be.TG),Ir(3,ge.i6),Ir(4,g.$),Ir(5,go.Z),Ir(6,Ee.lT),Ir(7,z.Ui),Ir(8,ot.i),Ir(9,bi.ek),Ir(10,Io.p),Ir(11,or.IV)],Pr);var Vr=i(43704),Wr=i(36348),Hr=i(91206),zr=i(82297),jr=i(91181),Ur=i(93845),Kr=i(24854),qr=i(35770),$r=i(31936),Gr=i(70006),Yr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Zr=function(e,t){return function(i,n){t(i,n,e)}};class Qr{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Xr=class extends l.JT{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,zr.uh)(this,void 0),this._collapsed=(0,Vr.nK)(this,(e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)})),this._editorContentHeight=(0,zr.uh)(this,500),this.contentHeight=(0,Vr.nK)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,zr.uh)(this,0),this._modifiedWidth=(0,zr.uh)(this,0),this._originalContentWidth=(0,zr.uh)(this,0),this._originalWidth=(0,zr.uh)(this,0),this.maxScroll=(0,Vr.nK)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,oe.h)("div.multiDiffEntry",[(0,oe.h)("div.header@header",[(0,oe.h)("div.header-content",[(0,oe.h)("div.collapse-button@collapseButton"),(0,oe.h)("div.file-path",[(0,oe.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,oe.h)("div.status.deleted@status",["R"]),(0,oe.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,oe.h)("div.actions@actions")])]),(0,oe.h)("div.editorParent",[(0,oe.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Nr.p,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=Jr(this.editor.getModifiedEditor()),this.isOriginalFocused=Jr(this.editor.getOriginalEditor()),this.isFocused=(0,Vr.nK)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new l.SL,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const s=new Vs.z(this._elements.collapseButton,{});this._register((0,Vr.EH)((e=>{s.element.className="",s.icon=this._collapsed.read(e)?Yi.l.chevronRight:Yi.l.chevronDown}))),this._register(s.onDidClick((()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Vr.EH)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,zr.Bl)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Vr.EH)((e=>{const t=this.isFocused.read(e);this._elements.root.classList.toggle("focused",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance($r.r,this._elements.actions,zi.eH.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Gr.D((()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri}))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,Hi.Id)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))}))),(0,zr.Bl)((n=>{var s,o,r,a;null===(s=this._resourceLabel)||void 0===s||s.setUri(null!==(o=e.viewModel.modifiedUri)&&void 0!==o?o:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let l=!1,d=!1,h=!1,c="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(c="R",l=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(c="A",h=!0):(c="D",d=!0),this._elements.status.classList.toggle("renamed",l),this._elements.status.classList.toggle("deleted",d),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=c,null===(r=this._resourceLabel2)||void 0===r||r.setUri(l?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(a=i.options)&&void 0!==a?a:{}))}))}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const s=e.length-this._headerHeight,o=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${o}px)`,(0,zr.Bl)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",o>0||i>0),this._elements.header.classList.toggle("collapsed",o===s)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function Jr(e){return(0,Vr.rD)((t=>{const i=new l.SL;return i.add(e.onDidFocusEditorWidget((()=>t(!0)))),i.add(e.onDidBlurEditorWidget((()=>t(!1)))),i}),(()=>e.hasTextFocus()))}Xr=Yr([Zr(3,be.TG)],Xr);class ea{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=null!==(t=n.find((t=>this._itemData.get(t).getId()===e.getId())))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var ta=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ia=function(e,t){return function(i,n){t(i,n,e)}};let na=class extends l.JT{constructor(e,t,i,n,s,o){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=s,this._parentInstantiationService=o,this._elements=(0,oe.h)("div.monaco-component.multiDiffEditor",[(0,oe.h)("div@content",{style:{overflow:"hidden"}}),(0,oe.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._sizeObserver=this._register(new Wr.DU(this._element,void 0)),this._objectPool=this._register(new ea((e=>{const t=this._instantiationService.createInstance(Xr,this._elements.content,this._elements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this._scrollable=this._register(new jr.Rm({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,oe.jL)((0,oe.Jj)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new Gi.$Z(this._elements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.scrollTop=(0,Vr.rD)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Vr.rD)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItems=(0,Vr.Be)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return[];return i.items.read(e).map((e=>{var i;const n=t.add(new sa(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=null===(i=this._lastDocStates)||void 0===i?void 0:i[n.getKey()];return s&&(0,zr.PS)((e=>{n.setViewState(s,e)})),n}))})),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this.activeDiffItem=(0,Vr.nK)(this,(e=>this._viewItems.read(e).find((t=>{var i;return null===(i=t.template.read(e))||void 0===i?void 0:i.isFocused.read(e)})))),this.lastActiveDiffItem=(0,Vr.bx)(((e,t)=>{var i;return null!==(i=this.activeDiffItem.read(e))&&void 0!==i?i:t})),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._parentInstantiationService.createChild(new Zo.y([ge.i6,this._contextKeyService])),this._lastDocStates={},this._contextKeyService.createKey(qr.u.inMultiDiffEditor.key,!0),this._register((0,Vr.gp)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[n,s]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(n,void 0);e.set(s),t.add((0,l.OF)((()=>e.reset())))}})));const r=this._parentContextKeyService.createKey(qr.u.multiDiffEditorAllCollapsed.key,!1);this._register((0,Vr.EH)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));r.set(i)}}))),this._register((0,Vr.EH)((e=>{const t=this.lastActiveDiffItem.read(e);(0,zr.PS)((i=>{var n;null===(n=this._viewModel.read(e))||void 0===n||n.activeDiffItem.set(null===t||void 0===t?void 0:t.viewModel,i)}))}))),this._register((0,Vr.EH)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._elements.content.style.position="relative",this._register((0,Vr.EH)((e=>{const t=this._sizeObserver.height.read(e);this._elements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._elements.content.style.height=`${i}px`;const n=this._sizeObserver.width.read(e);let s=n;const o=this._viewItems.read(e),r=(0,Hr.dI)(o,(t=>t.maxScroll.read(e).maxScroll));if(r){s=n+r.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:n,height:t,scrollHeight:i,scrollWidth:s})}))),e.replaceChildren(this._scrollableElement.getDomNode()),this._register((0,l.OF)((()=>{e.replaceChildren()}))),this._register(this._register((0,Vr.EH)((e=>{(0,zr.Bl)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,s=0;const o=this._sizeObserver.height.read(e),r=Ur.q.ofStartAndLength(t,o),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const d=l.contentHeight.read(e),h=Math.min(d,o),c=Ur.q.ofStartAndLength(n,h),u=Ur.q.ofStartAndLength(s,d);if(u.isBefore(r))i-=d-h,l.hide();else if(u.isAfter(r))l.hide();else{const e=Math.max(0,Math.min(r.start-u.start,d-h));i-=e;const n=Ur.q.ofStartAndLength(t+i,o);l.render(c,e,a,n)}n+=h+this._spaceBetweenPx,s+=d+this._spaceBetweenPx}this._elements.content.style.transform=`translateY(${-(t+i)}px)`}};na=ta([ia(4,ge.i6),ia(5,be.TG)],na);class sa extends l.JT{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register((0,zr.DN)(this,void 0)),this.contentHeight=(0,Vr.nK)(this,(e=>{var t,i,n;return null!==(n=null===(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.contentHeight)||void 0===i?void 0:i.read(e))&&void 0!==n?n:this.viewModel.lastTemplateData.read(e).contentHeight})),this.maxScroll=(0,Vr.nK)(this,(e=>{var t,i;return null!==(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.maxScroll.read(e))&&void 0!==i?i:{maxScroll:0,scrollWidth:0}})),this.template=(0,Vr.nK)(this,(e=>{var t;return null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object})),this._isHidden=(0,Vr.uh)(this,!1),this._register((0,Vr.EH)((e=>{var t;const i=this._scrollLeft.read(e);null===(t=this._templateRef.read(e))||void 0===t||t.object.setScrollLeft(i)}))),this._register((0,Vr.EH)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${null===(e=this.viewModel.entry.value.modified)||void 0===e?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),s=null===(i=e.selections)||void 0===i?void 0:i.map(Kr.Y.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:s},t);const o=this._templateRef.get();o&&s&&o.object.editor.setSelections(s)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:null!==(t=i.object.editor.getSelections())&&void 0!==t?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,zr.PS)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let s=this._templateRef.get();if(!s){s=this._objectPool.getUnusedObj(new Qr(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(s,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&s.object.editor.setSelections(e)}s.object.render(e,i,t,n)}}(0,nt.P6G)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,De.NC)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,nt.P6G)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,De.NC)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,nt.P6G)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,De.NC)("multiDiffEditor.border","The border color of the multi file diff editor"));var oa=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ra=function(e,t){return function(i,n){t(i,n,e)}};let aa=class extends l.JT{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Vr.uh)(this,void 0),this._viewModel=(0,Vr.uh)(this,void 0),this._widgetImpl=(0,Vr.Be)(this,((e,t)=>((0,Wr.NW)(Xr,e),t.add(this._instantiationService.createInstance((0,Wr.NW)(na,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Vr.jx)(this._widgetImpl))}};function la(e,t,i){return Dr.initialize(i||{}).createInstance(Or,e,t)}function da(e){return Dr.get(g.$).onCodeEditorAdd((t=>{e(t)}))}function ha(e){return Dr.get(g.$).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Dr.get(g.$).listCodeEditors()}function ua(){return Dr.get(g.$).listDiffEditors()}function ga(e,t,i){return Dr.initialize(i||{}).createInstance(Pr,e,t)}function pa(e,t){const i=Dr.initialize(t||{});return new aa(e,{},i)}function ma(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Ut.P.registerCommand(e.id,e.run)}function fa(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ge.Ao.deserialize(e.precondition),i=new l.SL;if(i.add(Ut.P.registerCommand(e.id,(function(i){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return u._l.runEditorCommand(i,s,t,((t,i,n)=>Promise.resolve(e.run(i,...n))))}))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(zi.BH.appendMenuItem(zi.eH.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=Dr.get(rt.d);if(n instanceof fr){const s=ge.Ao.and(t,ge.Ao.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:s})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function _a(e){return va([e])}function va(e){const t=Dr.get(rt.d);return t instanceof fr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ge.Ao.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.JT.None)}function ba(e,t,i){const n=Dr.get(y.O),s=n.getLanguageIdByMimeType(t)||t;return Fr(Dr.get(k.q),n,e,s,i)}function Ca(e,t){const i=Dr.get(y.O),n=i.getLanguageIdByMimeType(t)||t||S.bd;e.setLanguage(i.createById(n))}function ya(e,t,i){if(e){Dr.get(xn.lT).changeOne(t,e.uri,i)}}function wa(e){Dr.get(xn.lT).changeAll(e,[])}function Sa(e){return Dr.get(xn.lT).read(e)}function xa(e){return Dr.get(xn.lT).onMarkerChanged(e)}function La(e){return Dr.get(k.q).getModel(e)}function ka(){return Dr.get(k.q).getModels()}function Da(e){return Dr.get(k.q).onModelAdded(e)}function Na(e){return Dr.get(k.q).onModelRemoved(e)}function Ea(e){return Dr.get(k.q).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t,i){return new f(e,t,i)}(Dr.get(k.q),Dr.get(w.c_),e)}function Ia(e,t){const i=Dr.get(y.O),n=Dr.get(go.Z);return te.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))}function Ma(e,t,i){const n=Dr.get(y.O);return Dr.get(go.Z).registerEditorContainer(a.E.document.body),te.colorize(n,e,t,i)}function Aa(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;return Dr.get(go.Z).registerEditorContainer(a.E.document.body),te.colorizeModelLine(e,t,i)}function Ra(e,t){C.RW.getOrCreate(t);const i=function(e){const t=C.RW.get(e);return t||{getInitialState:()=>x.TJ,tokenize:(t,i,n)=>(0,x.Ri)(e,n)}}(t),n=(0,d.uq)(e),s=[];let o=i.getInitialState();for(let r=0,a=n.length;r<a;r++){const e=n[r],t=i.tokenize(e,!0,o);s[r]=t.tokens,o=t.endState}return s}function Oa(e,t){Dr.get(go.Z).defineTheme(e,t)}function Pa(e){Dr.get(go.Z).setTheme(e)}function Fa(){c.g.clearAllFontInfos()}function Ba(e,t){return Ut.P.registerCommand({id:e,handler:t})}function Va(e){return Dr.get(dt.v).registerOpener({open:async t=>("string"===typeof t&&(t=h.o.parse(t)),e.open(t))})}function Wa(e){return Dr.get(g.$).registerCodeEditorOpenHandler((async(t,i,n)=>{var s;if(!i)return null;const o=null===(s=t.options)||void 0===s?void 0:s.selection;let r;return o&&"number"===typeof o.endLineNumber&&"number"===typeof o.endColumn?r=o:o&&(r={lineNumber:o.startLineNumber,column:o.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}aa=oa([ra(2,be.TG)],aa);var Ha=i(63932);function za(e,t){return"boolean"===typeof e?e:t}function ja(e,t){return"string"===typeof e?e:t}function Ua(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Ka(e,t,i){t=t.replace(/@@/g,"\x01");let n,s=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,s){n=!0;let o="";if("string"===typeof e[s])o=e[s];else{if(!(e[s]&&e[s]instanceof RegExp))throw void 0===e[s]?B(e,"language definition does not contain attribute '"+s+"', used at: "+t):B(e,"attribute reference '"+s+"' must be a string, used at: "+t);o=e[s].source}return O(o)?"":"(?:"+o+")"})),s++}while(n&&s<5);t=t.replace(/\x01/g,"@");const o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return s=>(n&&i===s||(i=s,n=new RegExp(function(e,t,i){let n=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,s){return null===n&&(n=i.split("."),n.unshift(i)),!O(s)&&s<n.length?P(e,n[s]):""}))}(e,t,s),o)),n)}}return new RegExp(t,o)}function qa(e,t,i,n){let s=-1,o=i,r=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);r&&(r[3]&&(s=parseInt(r[3]),r[2]&&(s+=100)),o=r[4]);let a,l="~",d=o;if(o&&0!==o.length?/^\w*$/.test(d)?l="==":(r=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),r&&(l=r[1],d=r[2])):(l="!=",d=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(d))if("@"===l||"!@"===l){const i=e[d];if(!i)throw B(e,"the @ match target '"+d+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw B(e,"the @ match target '"+d+"' must be an array of strings, in rule: "+t);const n=Ua(i,e.ignoreCase);a=function(e){return"@"===l?n(e):!n(e)}}else if("~"===l||"!~"===l)if(d.indexOf("$")<0){const t=Ka(e,"^"+d+"$",!1);a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,n,s){return Ka(e,"^"+V(e,d,i,n,s)+"$",!1).test(t)};else if(d.indexOf("$")<0){const t=P(e,d);a=function(e){return"=="===l?e===t:e!==t}}else{const t=P(e,d);a=function(i,n,s,o,r){const a=V(e,t,n,s,o);return"=="===l?i===a:i!==a}}else{const t=Ua(d.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===s?{name:i,value:n,test:function(e,t,i,n){return a(e,e,t,i,n)}}:{name:i,value:n,test:function(e,t,i,n){const o=function(e,t,i,n){if(n<0)return e;if(n<t.length)return t[n];if(n>=100){n-=100;const e=i.split(".");if(e.unshift(i),n<e.length)return e[n]}return null}(e,t,i,s);return a(o||"",e,t,i,n)}}}function $a(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw B(e,"a 'token' attribute must be of type string, in rule: "+t);{const n={token:i.token};if(i.token.indexOf("$")>=0&&(n.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw B(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!==typeof i.next)throw B(e,"the next state must be a string value in rule: "+t);{let s=i.next;if(!/^(@pop|@push|@popall)$/.test(s)&&("@"===s[0]&&(s=s.substr(1)),s.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,V(e,s,"",[],""))))throw B(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=s}}return"number"===typeof i.goBack&&(n.goBack=i.goBack),"string"===typeof i.switchTo&&(n.switchTo=i.switchTo),"string"===typeof i.log&&(n.log=i.log),"string"===typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=$a(e,t,i[s]);return{group:n}}if(i.cases){const n=[];for(const o in i.cases)if(i.cases.hasOwnProperty(o)){const s=$a(e,t,i.cases[o]);"@default"===o||"@"===o||""===o?n.push({test:void 0,value:s,name:o}):"@eos"===o?n.push({test:function(e,t,i,n){return n},value:s,name:o}):n.push(qa(e,t,o,s))}const s=e.defaultToken;return{test:function(e,t,i,o){for(const s of n){if(!s.test||s.test(e,t,i,o))return s.value}return s}}}throw B(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class Ga{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"===typeof t)i=t;else{if(!(t instanceof RegExp))throw B(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Ka(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=$a(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ya(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={};i.languageId=e,i.includeLF=za(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"===typeof t.start?t.start:null,i.ignoreCase=za(t.ignoreCase,!1),i.unicode=za(t.unicode,!1),i.tokenPostfix=ja(t.tokenPostfix,"."+i.languageId),i.defaultToken=ja(t.defaultToken,"source"),i.usesEmbedded=!1;const n=t;function s(e,o,r){for(const a of r){let r=a.include;if(r){if("string"!==typeof r)throw B(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw B(i,"include target '"+r+"' is not defined at: "+e);s(e+"."+r,o,t.tokenizer[r])}else{const t=new Ga(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw B(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw B(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=za(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}o.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw B(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const r in t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){i.start||(i.start=r);const e=t.tokenizer[r];i.tokenizer[r]=new Array,s("tokenizer."+r,i.tokenizer[r],e)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw B(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(const r of t.brackets){let e=r;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw B(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw B(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:e.token+i.tokenPostfix,open:P(i,e.open),close:P(i,e.close)})}return i.brackets=o,i.noThrow=!0,i}function Za(e){S.dQ.registerLanguage(e)}function Qa(){let e=[];return e=e.concat(S.dQ.getLanguages()),e}function Xa(e){return Dr.get(y.O).languageIdCodec.encodeLanguageId(e)}function Ja(e,t){return Dr.withServices((()=>{const i=Dr.get(y.O).onDidRequestRichLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))}function el(e,t){return Dr.withServices((()=>{const i=Dr.get(y.O).onDidRequestBasicLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))}function tl(e,t){if(!Dr.get(y.O).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Dr.get(w.c_).register(e,t,100)}class il{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return nl.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new C.DI(n.tokens,n.endState)}}class nl{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,o=e.length;s<o;s++){const o=e[s];let r=o.startIndex;0===s?r=0:r<n&&(r=n),i[s]=new C.WU(r,o.scopes,t),n=r}return i}static adaptTokenize(e,t,i,n){const s=t.tokenize(i,n),o=nl._toClassicTokens(s.tokens,e);let r;return r=s.endState.equals(n)?n:s.endState,new C.hG(o,r)}tokenize(e,t,i){return nl.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),n=this._standaloneThemeService.getColorTheme().tokenTheme,s=[];let o=0,r=0;for(let l=0,d=t.length;l<d;l++){const e=t[l],a=1024|n.match(i,e.scopes);if(o>0&&s[o-1]===a)continue;let d=e.startIndex;0===l?d=0:d<r&&(d=r),s[o++]=d,s[o++]=a,r=d}const a=new Uint32Array(o);for(let l=0;l<o;l++)a[l]=s[l];return a}tokenizeEncoded(e,t,i){const n=this._actual.tokenize(e,i),s=this._toBinaryTokens(this._languageService.languageIdCodec,n.tokens);let o;return o=n.endState.equals(i)?i:n.endState,new C.DI(s,o)}}function sl(e){return e&&"function"===typeof e.then}function ol(e){const t=Dr.get(go.Z);if(e){const i=[null];for(let t=1,n=e.length;t<n;t++)i[t]=Ha.Il.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function rl(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new il(e,t):new nl(e,t,Dr.get(y.O),Dr.get(go.Z))}function al(e,t){const i=new C.MO((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?rl(e,i):new X(Dr.get(y.O),Dr.get(go.Z),e,Ya(e,i),Dr.get(z.Ui)):null}));return C.RW.registerFactory(e,i)}function ll(e,t){if(!Dr.get(y.O).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return sl(t)?al(e,{create:()=>t}):C.RW.register(e,rl(e,t))}function dl(e,t){return sl(t)?al(e,{create:()=>t}):C.RW.register(e,(t=>new X(Dr.get(y.O),Dr.get(go.Z),e,Ya(e,t),Dr.get(z.Ui)))(t))}function hl(e,t){return Dr.get(it.p).referenceProvider.register(e,t)}function cl(e,t){return Dr.get(it.p).renameProvider.register(e,t)}function ul(e,t){return Dr.get(it.p).newSymbolNamesProvider.register(e,t)}function gl(e,t){return Dr.get(it.p).signatureHelpProvider.register(e,t)}function pl(e,t){return Dr.get(it.p).hoverProvider.register(e,{provideHover:(e,i,n)=>{const s=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then((e=>{if(e)return!e.range&&s&&(e.range=new Ht.e(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)),e.range||(e.range=new Ht.e(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function ml(e,t){return Dr.get(it.p).documentSymbolProvider.register(e,t)}function fl(e,t){return Dr.get(it.p).documentHighlightProvider.register(e,t)}function _l(e,t){return Dr.get(it.p).linkedEditingRangeProvider.register(e,t)}function vl(e,t){return Dr.get(it.p).definitionProvider.register(e,t)}function bl(e,t){return Dr.get(it.p).implementationProvider.register(e,t)}function Cl(e,t){return Dr.get(it.p).typeDefinitionProvider.register(e,t)}function yl(e,t){return Dr.get(it.p).codeLensProvider.register(e,t)}function wl(e,t,i){return Dr.get(it.p).codeActionProvider.register(e,{providedCodeActionKinds:null===i||void 0===i?void 0:i.providedCodeActionKinds,documentation:null===i||void 0===i?void 0:i.documentation,provideCodeActions:(e,i,n,s)=>{const o=Dr.get(xn.lT).read({resource:e.uri}).filter((e=>Ht.e.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:o,only:n.only,trigger:n.trigger},s)},resolveCodeAction:t.resolveCodeAction})}function Sl(e,t){return Dr.get(it.p).documentFormattingEditProvider.register(e,t)}function xl(e,t){return Dr.get(it.p).documentRangeFormattingEditProvider.register(e,t)}function Ll(e,t){return Dr.get(it.p).onTypeFormattingEditProvider.register(e,t)}function kl(e,t){return Dr.get(it.p).linkProvider.register(e,t)}function Dl(e,t){return Dr.get(it.p).completionProvider.register(e,t)}function Nl(e,t){return Dr.get(it.p).colorProvider.register(e,t)}function El(e,t){return Dr.get(it.p).foldingRangeProvider.register(e,t)}function Tl(e,t){return Dr.get(it.p).declarationProvider.register(e,t)}function Il(e,t){return Dr.get(it.p).selectionRangeProvider.register(e,t)}function Ml(e,t){return Dr.get(it.p).documentSemanticTokensProvider.register(e,t)}function Al(e,t){return Dr.get(it.p).documentRangeSemanticTokensProvider.register(e,t)}function Rl(e,t){return Dr.get(it.p).inlineCompletionsProvider.register(e,t)}function Ol(e,t){return Dr.get(it.p).inlineEditProvider.register(e,t)}function Pl(e,t){return Dr.get(it.p).inlayHintsProvider.register(e,t)}var Fl=i(37806);o.BH.wrappingIndent.defaultValue=0,o.BH.glyphMargin.defaultValue=!1,o.BH.autoIndent.defaultValue=3,o.BH.overviewRulerLanes.defaultValue=2,Fl.xC.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Bl=(0,r.O)();Bl.editor={create:la,getEditors:ca,getDiffEditors:ua,onDidCreateEditor:da,onDidCreateDiffEditor:ha,createDiffEditor:ga,addCommand:ma,addEditorAction:fa,addKeybindingRule:_a,addKeybindingRules:va,createModel:ba,setModelLanguage:Ca,setModelMarkers:ya,getModelMarkers:Sa,removeAllMarkers:wa,onDidChangeMarkers:xa,getModels:ka,getModel:La,onDidCreateModel:Da,onWillDisposeModel:Na,onDidChangeModelLanguage:Ea,createWebWorker:Ta,colorizeElement:Ia,colorize:Ma,colorizeModelLine:Aa,tokenize:Ra,defineTheme:Oa,setTheme:Pa,remeasureFonts:Fa,registerCommand:Ba,registerLinkOpener:Va,registerEditorOpener:Wa,AccessibilitySupport:D.ao,ContentWidgetPositionPreference:D.r3,CursorChangeReason:D.Vi,DefaultEndOfLine:D._x,EditorAutoIndentStrategy:D.rf,EditorOption:D.wT,EndOfLinePreference:D.gm,EndOfLineSequence:D.jl,MinimapPosition:D.F5,MinimapSectionHeaderStyle:D.WG,MouseTargetType:D.MG,OverlayWidgetPositionPreference:D.E$,OverviewRulerLane:D.sh,GlyphMarginLane:D.U,RenderLineNumbersType:D.Lu,RenderMinimap:D.vQ,ScrollbarVisibility:D.g_,ScrollType:D.g4,TextEditorCursorBlinkingStyle:D.In,TextEditorCursorStyle:D.d2,TrackedRangeStickiness:D.OI,WrappingIndent:D.up,InjectedTextCursorStops:D.RM,PositionAffinity:D.py,ShowLightbulbIconMode:D.$r,ConfigurationChangedEvent:o.Bb,BareFontInfo:v.E4,FontInfo:v.pR,TextModelResolvedOptions:L.dJ,FindMatch:L.tk,ApplyUpdateResult:o.rk,EditorZoom:_.C,createMultiFileDiffEditor:pa,EditorType:b.g,EditorOptions:o.BH},Bl.languages={register:Za,getLanguages:Qa,onLanguage:Ja,onLanguageEncountered:el,getEncodedLanguageId:Xa,setLanguageConfiguration:tl,setColorMap:ol,registerTokensProviderFactory:al,setTokensProvider:ll,setMonarchTokensProvider:dl,registerReferenceProvider:hl,registerRenameProvider:cl,registerNewSymbolNameProvider:ul,registerCompletionItemProvider:Dl,registerSignatureHelpProvider:gl,registerHoverProvider:pl,registerDocumentSymbolProvider:ml,registerDocumentHighlightProvider:fl,registerLinkedEditingRangeProvider:_l,registerDefinitionProvider:vl,registerImplementationProvider:bl,registerTypeDefinitionProvider:Cl,registerCodeLensProvider:yl,registerCodeActionProvider:wl,registerDocumentFormattingEditProvider:Sl,registerDocumentRangeFormattingEditProvider:xl,registerOnTypeFormattingEditProvider:Ll,registerLinkProvider:kl,registerColorProvider:Nl,registerFoldingRangeProvider:El,registerDeclarationProvider:Tl,registerSelectionRangeProvider:Il,registerDocumentSemanticTokensProvider:Ml,registerDocumentRangeSemanticTokensProvider:Al,registerInlineCompletionsProvider:Rl,registerInlineEditProvider:Ol,registerInlayHintsProvider:Pl,DocumentHighlightKind:D.MY,CompletionItemKind:D.cm,CompletionItemTag:D.we,CompletionItemInsertTextRule:D.a7,SymbolKind:D.cR,SymbolTag:D.r4,IndentAction:D.wU,CompletionTriggerKind:D.Ij,SignatureHelpTriggerKind:D.WW,InlayHintKind:D.gl,InlineCompletionTriggerKind:D.bw,InlineEditTriggerKind:D.rn,CodeActionTriggerType:D.np,NewSymbolNameTag:D.w,PartialAcceptTriggerKind:D.NA,FoldingRangeKind:C.AD,SelectedSuggestionInfo:C.ln};const Vl=Bl.CancellationTokenSource,Wl=Bl.Emitter,Hl=Bl.KeyCode,zl=Bl.KeyMod,jl=Bl.Position,Ul=Bl.Range,Kl=Bl.Selection,ql=Bl.SelectionDirection,$l=Bl.MarkerSeverity,Gl=Bl.MarkerTag,Yl=Bl.Uri,Zl=Bl.Token,Ql=Bl.editor,Xl=Bl.languages,Jl=globalThis.MonacoEnvironment;((null===Jl||void 0===Jl?void 0:Jl.globalAPI)||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Bl),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var ed;i(67709),i(41777),i(26525),i(52016),i(7067),i(86543),i(59134),i(65340),i(7389),i(66493),i(12867),i(78859),i(94385),i(80198),i(39019),i(33693),i(76434),i(16842),i(14983),i(61466),i(56454),i(76799),i(29679),i(47281),i(13078),i(55799),i(83443),i(45115),i(41645),i(82686),i(54205),i(86703),i(1072),i(902),i(72107),i(30539),i(66405),i(45189),i(81888),i(13162),i(31518),i(60601),i(78626),i(13763),i(6581),i(44758),i(35281),i(97611),i(63874),i(29075),i(51083),i(97810),i(22920),i(89045),i(14366),i(54872),i(66333),i(34789),i(64646),i(31e3),i(94380),i(87133),i(87259),i(47526),i(30408),i(10211),i(55167),i(89673),i(56536),i(17535),i(21914),i(63235),i(70600),i(8940),i(187),i(92176),i(86394),i(59280),i(79397),i(6174),i(13536),i(7717),i(32434),i(19736),i(91063);self.MonacoEnvironment=(ed={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var n=i.p,s=(n?n.replace(/\/$/,"")+"/":"")+ed[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var o=String(window.location),r=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,r.length)!==r){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var a=new Blob(["/*"+t+'*/importScripts("'+s+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return s}});const td=n},27748:(e,t,i)=>{"use strict";i.d(t,{$W:()=>m,Dt:()=>g,G6:()=>c,MG:()=>u,Pf:()=>d,i7:()=>h,ie:()=>r,uB:()=>o,vU:()=>l});var n=i(11801);class s{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function o(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function r(e){return s.INSTANCE.getZoomFactor(e)}s.INSTANCE=new s;const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,d=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,c=!h&&a.indexOf("Safari")>=0,u=!h&&!c&&d,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof n.E.matchMedia){const e=n.E.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.E.matchMedia("(display-mode: fullscreen)");p=e.matches,o(n.E,e,(e=>{let{matches:i}=e;p&&t.matches||(p=i)}))}function m(){return p}},81068:(e,t,i)=>{"use strict";i.d(t,{D:()=>r});var n=i(27748),s=i(11801),o=i(90388);const r={clipboard:{writeText:o.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.tY||n.$W()?0:navigator.keyboard||n.G6?1:2,touch:"ontouchstart"in s.E||navigator.maxTouchPoints>0,pointerEvents:s.E.PointerEvent&&("ontouchstart"in s.E||navigator.maxTouchPoints>0)}},37405:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(90255).v.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},76595:(e,t,i)=>{"use strict";i.d(t,{$:()=>Oe,$Z:()=>Fe,Ay:()=>te,Ce:()=>Te,Cp:()=>Be,D6:()=>W,Dx:()=>V,FK:()=>G,GQ:()=>M,H9:()=>ne,I8:()=>q,If:()=>Y,Jc:()=>L,Jj:()=>_,N5:()=>be,OO:()=>ee,PO:()=>D,R3:()=>Ee,Ro:()=>z,Uh:()=>Ve,V3:()=>We,WN:()=>re,XT:()=>Ue,Xo:()=>x,ZY:()=>y,_0:()=>Le,_F:()=>Ke,_h:()=>je,_q:()=>$e,aU:()=>le,b5:()=>se,cl:()=>we,dS:()=>he,dp:()=>U,e4:()=>Ne,ed:()=>w,eg:()=>Ge,ey:()=>k,fk:()=>fe,go:()=>De,h:()=>Ze,i:()=>K,iJ:()=>Pe,jL:()=>P,jg:()=>Q,jt:()=>He,lI:()=>O,mc:()=>Ie,mu:()=>I,ne:()=>F,nm:()=>E,sQ:()=>qe,se:()=>A,tw:()=>ye,uN:()=>_e,uP:()=>oe,uU:()=>X,vL:()=>xe,vY:()=>ie,vd:()=>Ce,vx:()=>R,w:()=>$,wY:()=>ze,wn:()=>Z,xQ:()=>j,zB:()=>Se});var n=i(27748),s=i(81068),o=i(10381),r=i(65179),a=i(53372),l=i(16015),d=i(39706),h=i(20707),c=i(53186),u=i(32060),g=i(90388),p=i(95075),m=i(11801);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:b,getWindowsCount:C,getWindowId:y,getWindowById:w,hasWindow:S,onDidRegisterWindow:x,onWillUnregisterWindow:L,onDidUnregisterWindow:k}=function(){const e=new Map;(0,m.H)(m.E,1);const t={window:m.E,disposables:new c.SL};e.set(m.E.vscodeWindowId,t);const i=new d.Q5,n=new d.Q5,s=new d.Q5;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:s.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return c.JT.None;const o=new c.SL,r={window:t,disposables:o.add(new c.SL)};return e.set(t.vscodeWindowId,r),o.add((0,c.OF)((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),o.add(E(t,ye.BEFORE_UNLOAD,(()=>{s.fire(t)}))),i.fire(r),o},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){const s="number"===typeof i?e.get(i):void 0;return null!==s&&void 0!==s?s:n?t:void 0},getWindow(e){var t;const i=e;if(null===(t=null===i||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null===n||void 0===n?void 0:n.view)?n.view.window:m.E},getDocument:e=>_(e).document}}();function D(e){for(;e.firstChild;)e.firstChild.remove()}class N{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function E(e,t,i,n){return new N(e,t,i,n)}function T(e,t){return function(i){return t(new r.n(e,i))}}const I=function(e,t,i,n){let s=i;return"click"===t||"mousedown"===t?s=T(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(s=function(e){return function(t){return e(new o.y(t))}}(i)),E(e,t,s,n)},M=function(e,t,i){return function(e,t,i){return E(e,g.gn&&s.D.pointerEvents?ye.POINTER_DOWN:ye.MOUSE_DOWN,t,i)}(e,T(_(e),t),i)};function A(e,t,i){return(0,a.y5)(e,t,i)}class R extends a.hF{constructor(e,t){super(e,t)}}let O,P;class F extends a.zh{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!==i&&void 0!==i?i:this.defaultTarget)}}class B{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function V(e){return _(e).getComputedStyle(e,null)}function W(e,t){const i=_(e),n=i.document;if(e!==n.body)return new z(e.clientWidth,e.clientHeight);if(g.gn&&(null===i||void 0===i?void 0:i.visualViewport))return new z(i.visualViewport.width,i.visualViewport.height);if((null===i||void 0===i?void 0:i.innerWidth)&&i.innerHeight)return new z(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new z(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new z(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return W(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,n=new Map,s=s=>{var o;i.set(s,!1);const r=null!==(o=e.get(s))&&void 0!==o?o:[];for(t.set(s,r),e.set(s,[]),n.set(s,!0);r.length>0;){r.sort(B.sort);r.shift().execute()}n.set(s,!1)};P=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=y(t),a=new B(n,o);let l=e.get(r);return l||(l=[],e.set(r,l)),l.push(a),i.get(r)||(i.set(r,!0),t.requestAnimationFrame((()=>s(r)))),a},O=(e,i,s)=>{const o=y(e);if(n.get(o)){const e=new B(i,s);let n=t.get(o);return n||(n=[],t.set(o,n)),n.push(e),e}return P(e,i,s)}}();class H{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=V(e),s=n?n.getPropertyValue(t):"0";return H.convertToPixels(e,s)}static getBorderLeftWidth(e){return H.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return H.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return H.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return H.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return H.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return H.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return H.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return H.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return H.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return H.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return H.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return H.getDimension(e,"margin-bottom","marginBottom")}}class z{constructor(e,t){this.width=e,this.height=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.width,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.height;return e!==this.width||t!==this.height?new z(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof z?e:new z(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function j(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const s=J(e)?null:V(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=H.getBorderLeftWidth(e),i+=H.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function U(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function K(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function q(e){let t=e,i=1;do{const e=V(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function $(e){const t=H.getMarginLeft(e)+H.getMarginRight(e);return e.offsetWidth+t}function G(e){const t=H.getBorderLeftWidth(e)+H.getBorderRightWidth(e),i=H.getPaddingLeft(e)+H.getPaddingRight(e);return e.offsetWidth-t-i}function Y(e){const t=H.getBorderTopWidth(e)+H.getBorderBottomWidth(e),i=H.getPaddingTop(e)+H.getPaddingBottom(e);return e.offsetHeight-t-i}function Z(e){const t=H.getMarginTop(e)+H.getMarginBottom(e);return e.offsetHeight+t}function Q(e,t){return Boolean(null===t||void 0===t?void 0:t.contains(e))}function X(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(var t;e.parentNode;){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=oe().activeElement;for(;null===e||void 0===e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ne(e){return ie()===e}function se(e){return Q(ie(),e)}function oe(){var e;if(C()<=1)return m.E.document;return null!==(e=Array.from(b()).map((e=>{let{window:t}=e;return t.document})).find((e=>e.hasFocus())))&&void 0!==e?e:m.E.document}function re(){var e,t;return null!==(t=null===(e=oe().defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:m.E}z.None=new z(0,0);const ae=new Map;function le(){return new de}class de{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.E.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.E.document.head,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;const n=document.createElement("style");if(n.type="text/css",n.media="screen",null===t||void 0===t||t(n),e.appendChild(n),i&&i.add((0,c.OF)((()=>e.removeChild(n)))),e===m.E.document.head){const e=new Set;ae.set(n,e);for(const{window:t,disposables:s}of b()){if(t===m.E)continue;const o=s.add(ce(n,e,t));null===i||void 0===i||i.add(o)}}return n}function ce(e,t,i){var n,s;const o=new c.SL,r=e.cloneNode(!0);i.document.head.appendChild(r),o.add((0,c.OF)((()=>i.document.head.removeChild(r))));for(const a of me(e))null===(n=r.sheet)||void 0===n||n.insertRule(a.cssText,null===(s=r.sheet)||void 0===s?void 0:s.cssRules.length);return o.add(ue.observe(e,o,{childList:!0})((()=>{r.textContent=e.textContent}))),t.add(r),o.add((0,c.OF)((()=>t.delete(r)))),o}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const s=(0,p.vp)(i);let o=n.get(s);if(o)o.users+=1;else{const r=new d.Q5,a=new MutationObserver((e=>r.fire(e)));a.observe(e,i);const l=o={users:1,observer:a,onDidMutate:r.event};t.add((0,c.OF)((()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),null===n||void 0===n||n.delete(s),0===(null===n||void 0===n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(s,o)}return o.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){var t,i;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null===e||void 0===e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function fe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pe();var n,s;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(s=ae.get(i))&&void 0!==s?s:[])fe(e,t,n)}}function _e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe();var i,n;if(!t)return;const s=me(t),o=[];for(let r=0;r<s.length;r++){const t=s[r];ve(t)&&-1!==t.selectorText.indexOf(e)&&o.push(r)}for(let r=o.length-1;r>=0;r--)null===(i=t.sheet)||void 0===i||i.deleteRule(o[r]);for(const r of null!==(n=ae.get(t))&&void 0!==n?n:[])_e(e,r)}function ve(e){return"string"===typeof e.selectorText}function be(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function Ce(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const ye={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Pf?"webkitAnimationIteration":"animationiteration"};function we(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Se={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function xe(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function Le(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ke extends c.JT{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=te(e);return Q(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return Q(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new d.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.Q5),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,(e instanceof HTMLElement?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?s():n())},this._register(E(e,ye.FOCUS,n,!0)),this._register(E(e,ye.BLUR,s,!0)),e instanceof HTMLElement&&(this._register(E(e,ye.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(E(e,ye.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function De(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ee(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(e.append(...i),1===i.length&&"string"!==typeof i[0])return i[0]}function Te(e,t){return e.insertBefore(t,e.firstChild),t}function Ie(e){e.innerText="";for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];Ee(e,...i)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ae;function Re(e,t,i){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const s=n[1]||"div";let o;o=e!==Ae.HTML?document.createElementNS(e,s):document.createElement(s),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((e=>{let[t,i]=e;"undefined"!==typeof i&&(/^on\w+$/.test(t)?o[t]=i:"selected"===t?i&&o.setAttribute(t,"true"):o.setAttribute(t,i))}));for(var r=arguments.length,a=new Array(r>3?r-3:0),l=3;l<r;l++)a[l-3]=arguments[l];return o.append(...a),o}function Oe(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return Re(Ae.HTML,e,t,...n)}function Pe(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];e?Fe(...i):Be(...i)}function Fe(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const n of t)n.style.display="",n.removeAttribute("aria-hidden")}function Be(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const n of t)n.style.display="none",n.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function We(e){m.E.open(e,"_blank","noopener")}function He(e,t){const i=()=>{t(),n=P(e,i)};let n=P(e,i);return(0,c.OF)((()=>n.dispose()))}function ze(e){return e?`url('${u.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function je(e){return`'${e.replace(/'/g,"%27")}'`}function Ue(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ue(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Ke(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=document.createElement("a");return h.v5("afterSanitizeAttributes",(n=>{for(const s of["href","src"])if(n.hasAttribute(s)){const o=n.getAttribute(s);if("href"===s&&o.startsWith("#"))continue;if(i.href=o,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===s&&i.href.startsWith("data:"))continue;n.removeAttribute(s)}}})),(0,c.OF)((()=>{h.ok("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Ae||(Ae={})),Oe.SVG=function(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return Re(Ae.SVG,e,t,...n)},u.WX.setPreferredWebSchema(/^https:/.test(m.E.location.href)?"https":"http");const qe=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class $e extends d.Q5{constructor(){super(),this._subscriptions=new c.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(d.ju.runAndSubscribe(x,(e=>{let{window:t,disposables:i}=e;return this.registerListeners(t,i)}),{window:m.E,disposables:this._subscriptions}))}registerListeners(e,t){t.add(E(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new o.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(E(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(E(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(E(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(E(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(E(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return $e.instance||($e.instance=new $e),$e.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Ge extends c.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(E(this.element,ye.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(E(this.element,ye.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(E(this.element,ye.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(E(this.element,ye.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(E(this.element,ye.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(E(this.element,ye.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(E(this.element,ye.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Ye=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Ze(e){let t,i;Array.isArray(arguments.length<=1?void 0:arguments[1])?(t={},i=arguments.length<=1?void 0:arguments[1]):(t=(arguments.length<=1?void 0:arguments[1])||{},i=arguments.length<=2?void 0:arguments[2]);const n=Ye.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const s=n.groups.tag||"div",o=document.createElement(s);n.groups.id&&(o.id=n.groups.id);const r=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&r.push(l);if(void 0!==t.className)for(const l of t.className.split("."))""!==l&&r.push(l);r.length>0&&(o.className=r.join(" "));const a={};if(n.groups.name&&(a[n.groups.name]=o),i)for(const l of i)l instanceof HTMLElement?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(a,l),o.appendChild(l.root));for(const[l,d]of Object.entries(t))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(d))o.style.setProperty(Qe(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=d:o.setAttribute(Qe(l),d.toString());return a.root=o,a}function Qe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},20707:(e,t,i)=>{"use strict";i.d(t,{Nw:()=>J,ok:()=>te,v5:()=>ee});const{entries:n,setPrototypeOf:s,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:d,create:h}=Object,{apply:c,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e,t,i){return e.apply(t,i)}),l||(l=function(e){return e}),d||(d=function(e){return e}),u||(u=function(e,t){return new e(...t)});const g=L(Array.prototype.forEach),p=L(Array.prototype.pop),m=L(Array.prototype.push),f=L(String.prototype.toLowerCase),_=L(String.prototype.toString),v=L(String.prototype.match),b=L(String.prototype.replace),C=L(String.prototype.indexOf),y=L(String.prototype.trim),w=L(RegExp.prototype.test),S=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(x,t)});var x;function L(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return c(e,t,n)}}function k(e,t,i){var n;i=null!==(n=i)&&void 0!==n?n:f,s&&s(e,null);let r=t.length;for(;r--;){let n=t[r];if("string"===typeof n){const e=i(n);e!==n&&(o(t)||(t[r]=e),n=e)}e[n]=!0}return e}function D(e){const t=h(null);for(const[i,s]of n(e))t[i]=s;return t}function N(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return L(i.get);if("function"===typeof i.value)return L(i.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const E=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=l(["#text"]),P=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),F=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=d(/<%[\w\W]*|[\w\W]*%>/gm),z=d(/\${[\w\W]*}/gm),j=d(/^data-[\-\w.\u00B7-\uFFFF]/),U=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=d(/^(?:\w+script|data):/i),$=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=d(/^html$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:H,TMPLIT_EXPR:z,DATA_ATTR:j,ARIA_ATTR:U,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:G});const Z=()=>"undefined"===typeof window?null:window,Q=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}};var X=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const i=t=>e(t);if(i.version="3.0.5",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;const s=t.document,o=s.currentScript;let{document:r}=t;const{DocumentFragment:a,HTMLTemplateElement:d,Node:h,Element:c,NodeFilter:u,NamedNodeMap:x=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:W,trustedTypes:H}=t,z=c.prototype,j=N(z,"cloneNode"),U=N(z,"nextSibling"),q=N(z,"childNodes"),$=N(z,"parentNode");if("function"===typeof d){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let X,J="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ie,getElementsByTagName:ne}=r,{importNode:se}=s;let oe={};i.isSupported="function"===typeof n&&"function"===typeof $&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:re,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:de,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:ue}=Y;let{IS_ALLOWED_URI:ge}=Y,pe=null;const me=k({},[...E,...T,...I,...A,...O]);let fe=null;const _e=k({},[...P,...F,...B,...V]);let ve=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,Ce=null,ye=!0,we=!0,Se=!1,xe=!0,Le=!1,ke=!1,De=!1,Ne=!1,Ee=!1,Te=!1,Ie=!1,Me=!0,Ae=!1,Re=!0,Oe=!1,Pe={},Fe=null;const Be=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const We=k({},["audio","video","img","source","image","track"]);let He=null;const ze=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),je="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let qe=Ke,$e=!1,Ge=null;const Ye=k({},[je,Ue,Ke],_);let Ze;const Qe=["application/xhtml+xml","text/html"];let Xe,Je=null;const et=r.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},it=function(e){if(!Je||Je!==e){if(e&&"object"===typeof e||(e={}),e=D(e),Ze=Ze=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===Ze?_:f,pe="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS,Xe):me,fe="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR,Xe):_e,Ge="ALLOWED_NAMESPACES"in e?k({},e.ALLOWED_NAMESPACES,_):Ye,He="ADD_URI_SAFE_ATTR"in e?k(D(ze),e.ADD_URI_SAFE_ATTR,Xe):ze,Ve="ADD_DATA_URI_TAGS"in e?k(D(We),e.ADD_DATA_URI_TAGS,Xe):We,Fe="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS,Xe):Be,be="FORBID_TAGS"in e?k({},e.FORBID_TAGS,Xe):{},Ce="FORBID_ATTR"in e?k({},e.FORBID_ATTR,Xe):{},Pe="USE_PROFILES"in e&&e.USE_PROFILES,ye=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Ae=e.SANITIZE_NAMED_PROPS||!1,Re=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||K,qe=e.NAMESPACE||Ke,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(we=!1),Te&&(Ee=!0),Pe&&(pe=k({},[...O]),fe=[],!0===Pe.html&&(k(pe,E),k(fe,P)),!0===Pe.svg&&(k(pe,T),k(fe,F),k(fe,V)),!0===Pe.svgFilters&&(k(pe,I),k(fe,F),k(fe,V)),!0===Pe.mathMl&&(k(pe,A),k(fe,B),k(fe,V))),e.ADD_TAGS&&(pe===me&&(pe=D(pe)),k(pe,e.ADD_TAGS,Xe)),e.ADD_ATTR&&(fe===_e&&(fe=D(fe)),k(fe,e.ADD_ATTR,Xe)),e.ADD_URI_SAFE_ATTR&&k(He,e.ADD_URI_SAFE_ATTR,Xe),e.FORBID_CONTENTS&&(Fe===Be&&(Fe=D(Fe)),k(Fe,e.FORBID_CONTENTS,Xe)),Re&&(pe["#text"]=!0),ke&&k(pe,["html","head","body"]),pe.table&&(k(pe,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=e.TRUSTED_TYPES_POLICY,J=X.createHTML("")}else void 0===X&&(X=Q(H,o)),null!==X&&"string"===typeof J&&(J=X.createHTML(""));l&&l(e),Je=e}},nt=k({},["mi","mo","mn","ms","mtext"]),st=k({},["foreignobject","desc","title","annotation-xml"]),ot=k({},["title","style","font","a","script"]),rt=k({},T);k(rt,I),k(rt,M);const at=k({},A);k(at,R);const lt=function(e){m(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},dt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!fe[e])if(Ee||Te)try{lt(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},ht=function(e){let t,i;if(Ne)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Ze&&qe===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=X?X.createHTML(e):e;if(qe===Ke)try{t=(new W).parseFromString(n,Ze)}catch(o){}if(!t||!t.documentElement){t=ee.createDocument(qe,"template",null);try{t.documentElement.innerHTML=$e?J:n}catch(o){}}const s=t.body||t.documentElement;return e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),qe===Ke?ne.call(t,ke?"html":"body")[0]:ke?t.documentElement:s},ct=function(e){return te.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ut=function(e){return"object"===typeof h?e instanceof h:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},gt=function(e,t,n){oe[e]&&g(oe[e],(e=>{e.call(i,t,n,Je)}))},pt=function(e){let t;if(gt("beforeSanitizeElements",e,null),(n=e)instanceof L&&("string"!==typeof n.nodeName||"string"!==typeof n.textContent||"function"!==typeof n.removeChild||!(n.attributes instanceof x)||"function"!==typeof n.removeAttribute||"function"!==typeof n.setAttribute||"string"!==typeof n.namespaceURI||"function"!==typeof n.insertBefore||"function"!==typeof n.hasChildNodes))return lt(e),!0;var n;const s=Xe(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:s,allowedTags:pe}),e.hasChildNodes()&&!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return lt(e),!0;if(!pe[s]||be[s]){if(!be[s]&&ft(s)){if(ve.tagNameCheck instanceof RegExp&&w(ve.tagNameCheck,s))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(s))return!1}if(Re&&!Fe[s]){const t=$(e)||e.parentNode,i=q(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n)t.insertBefore(j(i[n],!0),U(e))}}return lt(e),!0}return e instanceof c&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:qe,tagName:"template"});const i=f(e.tagName),n=f(t.tagName);return!!Ge[e.namespaceURI]&&(e.namespaceURI===Ue?t.namespaceURI===Ke?"svg"===i:t.namespaceURI===je?"svg"===i&&("annotation-xml"===n||nt[n]):Boolean(rt[i]):e.namespaceURI===je?t.namespaceURI===Ke?"math"===i:t.namespaceURI===Ue?"math"===i&&st[n]:Boolean(at[i]):e.namespaceURI===Ke?!(t.namespaceURI===Ue&&!st[n])&&!(t.namespaceURI===je&&!nt[n])&&!at[i]&&(ot[i]||!rt[i]):!("application/xhtml+xml"!==Ze||!Ge[e.namespaceURI]))}(e)?(lt(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=b(t,re," "),t=b(t,ae," "),t=b(t,le," "),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(lt(e),!0)},mt=function(e,t,i){if(Me&&("id"===t||"name"===t)&&(i in r||i in et))return!1;if(we&&!Ce[t]&&w(de,t));else if(ye&&w(he,t));else if(!fe[t]||Ce[t]){if(!(ft(e)&&(ve.tagNameCheck instanceof RegExp&&w(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&w(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&w(ve.tagNameCheck,i)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(i))))return!1}else if(He[t]);else if(w(ge,b(i,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(i,"data:")||!Ve[e]){if(Se&&!w(ce,b(i,ue,"")));else if(i)return!1}else;return!0},ft=function(e){return e.indexOf("-")>0},_t=function(e){let t,n,s,o;gt("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:fe};for(o=r.length;o--;){t=r[o];const{name:d,namespaceURI:h}=t;if(n="value"===d?t.value:y(t.value),s=Xe(d),a.attrName=s,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(dt(d,e),!a.keepAttr)continue;if(!xe&&w(/\/>/i,n)){dt(d,e);continue}Le&&(n=b(n,re," "),n=b(n,ae," "),n=b(n,le," "));const c=Xe(e.nodeName);if(mt(c,s,n)){if(!Ae||"id"!==s&&"name"!==s||(dt(d,e),n="user-content-"+n),X&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(h);else switch(H.getAttributeType(c,s)){case"TrustedHTML":n=X.createHTML(n);break;case"TrustedScriptURL":n=X.createScriptURL(n)}try{h?e.setAttributeNS(h,d,n):e.setAttribute(d,n),p(i.removed)}catch(l){}}}gt("afterSanitizeAttributes",e,null)},vt=function e(t){let i;const n=ct(t);for(gt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)gt("uponSanitizeShadowNode",i,null),pt(i)||(i.content instanceof a&&e(i.content),_t(i));gt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t,n,o,r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($e=!e,$e&&(e="\x3c!--\x3e"),"string"!==typeof e&&!ut(e)){if("function"!==typeof e.toString)throw S("toString is not a function");if("string"!==typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!i.isSupported)return e;if(De||it(l),i.removed=[],"string"===typeof e&&(Oe=!1),Oe){if(e.nodeName){const t=Xe(e.nodeName);if(!pe[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)t=ht("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Ee&&!Le&&!ke&&-1===e.indexOf("<"))return X&&Ie?X.createHTML(e):e;if(t=ht(e),!t)return Ee?null:Ie?J:""}t&&Ne&<(t.firstChild);const d=ct(Oe?e:t);for(;o=d.nextNode();)pt(o)||(o.content instanceof a&&vt(o.content),_t(o));if(Oe)return e;if(Ee){if(Te)for(r=ie.call(t.ownerDocument);t.firstChild;)r.appendChild(t.firstChild);else r=t;return(fe.shadowroot||fe.shadowrootmode)&&(r=se.call(s,r,!0)),r}let c=ke?t.outerHTML:t.innerHTML;return ke&&pe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&w(G,t.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+c),Le&&(c=b(c,re," "),c=b(c,ae," "),c=b(c,le," ")),X&&Ie?X.createHTML(c):c},i.setConfig=function(e){it(e),De=!0},i.clearConfig=function(){Je=null,De=!1},i.isValidAttribute=function(e,t,i){Je||it({});const n=Xe(e),s=Xe(t);return mt(n,s,i)},i.addHook=function(e,t){"function"===typeof t&&(oe[e]=oe[e]||[],m(oe[e],t))},i.removeHook=function(e){if(oe[e])return p(oe[e])},i.removeHooks=function(e){oe[e]&&(oe[e]=[])},i.removeAllHooks=function(){oe={}},i}();X.version,X.isSupported;const J=X.sanitize,ee=(X.setConfig,X.clearConfig,X.isValidAttribute,X.addHook),te=X.removeHook;X.removeHooks,X.removeAllHooks},24199:(e,t,i)=>{"use strict";i.d(t,{Y:()=>s});var n=i(39706);class s{get event(){return this.emitter.event}constructor(e,t,i){const s=e=>this.emitter.fire(e);this.emitter=new n.Q5({onWillAddFirstListener:()=>e.addEventListener(t,s,i),onDidRemoveLastListener:()=>e.removeEventListener(t,s,i)})}dispose(){this.emitter.dispose()}}},75816:(e,t,i)=>{"use strict";i.d(t,{X:()=>o,Z:()=>n});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=s(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=s(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=s(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=s(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=s(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=s(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=s(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=s(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=s(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=s(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=s(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function s(e){return"number"===typeof e?`${e}px`:e}function o(e){return new n(e)}},90030:(e,t,i)=>{"use strict";i.d(t,{BO:()=>o,IY:()=>s,az:()=>r});var n=i(76595);function s(e){const t=r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return t.textContent=e,t}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=r(t);return l(i,function(e,t){const i={type:1,children:[]};let n=0,s=i;const o=[],r=new a(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==h(r.peek(),t);if(i&&(e=r.next()),!i&&d(e,t)&&e===r.peek()){r.advance(),2===s.type&&(s=o.pop());const i=h(e,t);if(s.type===i||5===s.type&&6===i)s=o.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),s.children.push(e),o.push(s),s=e}}else if("\n"===e)2===s.type&&(s=o.pop()),s.children.push({type:8});else if(2!==s.type){const t={type:2,content:e};s.children.push(t),o.push(s),s=t}else s.content+=e}2===s.type&&(s=o.pop());o.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,s){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&s)o=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(n.mu(e,"click",(e=>{i.callback(String(t.index),e)}))),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach((e=>{l(o,e,i,s)}))}function d(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},21406:(e,t,i)=>{"use strict";i.d(t,{C:()=>o});var n=i(76595),s=i(53186);class o{constructor(){this._hooks=new s.SL,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,o,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=o,this._onStopCallback=r;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,s.OF)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(l){a=n.Jj(e)}this._hooks.add(n.nm(a,n.tw.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(n.nm(a,n.tw.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},10381:(e,t,i)=>{"use strict";i.d(t,{y:()=>d});var n=i(27748),s=i(17344),o=i(91811),r=i(90388);const a=r.dz?256:2048,l=r.dz?2048:256;class d{constructor(e){var t;this._standardKeyboardEventBrand=!0;const i=e;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=null===(t=i.getModifierState)||void 0===t?void 0:t.call(i,"AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return s.kL.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.vU)switch(t){case 59:return 85;case 60:if(r.IJ)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(r.dz)return 57}else if(n.Pf){if(r.dz&&93===t)return 57;if(!r.dz&&92===t)return 57}return s.H_[t]||0}(i),this.code=i.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.$M(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},16315:(e,t,i)=>{"use strict";i.d(t,{ap:()=>k,et:()=>I});var n=i(76595),s=i(20707),o=i(24199),r=i(90030),a=i(10381),l=i(65179),d=i(27691),h=i(16015),c=i(39706),u=i(73971),g=i(77048),p=i(30441),m=i(20447),f=i(53186);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function n(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},h=function(e){return d[e]};function c(e,t){if(t){if(o.test(e))return e.replace(r,h)}else if(a.test(e))return e.replace(l,h);return e}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;function m(e,t){e="string"===typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var f=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,i){if(e){var n;try{n=decodeURIComponent(g(i)).replace(f,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!_.test(i)&&(i=function(e,t){b[" "+e]||(C.test(e)?b[" "+e]=e+"/":b[" "+e]=k(e,"/",!0));var i=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(w,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i}var b={},C=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,w=/^([^:]+:\/*[^/]*)[\s\S]*$/,S={exec:function(){}};function x(e){for(var t,i,n=1;n<arguments.length;n++)for(i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}function L(e,t){var i=e.replace(/\|/g,(function(e,t,i){for(var n=!1,s=t;--s>=0&&"\\"===i[s];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function k(e,t,i){var n=e.length;if(0===n)return"";for(var s=0;s<n;){var o=e.charAt(n-s-1);if(o!==t||i){if(o===t||!i)break;s++}else s++}return e.slice(0,n-s)}function D(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function N(e,t){if(t<1)return"";for(var i="";t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function E(e,t,i,n){var s=t.href,o=t.title?c(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:s,title:o,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:s,title:o,text:c(r)}}var T=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:k(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=k(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,s,o,r,a,l,d,h,c,u,g,p,m=t[1].trim(),f=m.length>1,_={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=f?m:"[*+-]");for(var v=new RegExp("^( {0,3}"+m+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(i=t[0],e=e.substring(i.length),h=t[2].split("\n",1)[0],c=e.split("\n",1)[0],this.options.pedantic?(r=2,g=h.trimLeft()):(r=(r=t[2].search(/[^ ]/))>4?1:r,g=h.slice(r),r+=t[1].length),l=!1,!h&&/^ *$/.test(c)&&(i+=c+"\n",e=e.substring(c.length+1),p=!0),!p)for(var b=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),C=new RegExp("^ {0,"+Math.min(3,r-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,r-1)+"}#");e&&(h=u=e.split("\n",1)[0],this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(h))&&!w.test(h)&&!b.test(h)&&!C.test(e);){if(h.search(/[^ ]/)>=r||!h.trim())g+="\n"+h.slice(r);else{if(l)break;g+="\n"+h}l||h.trim()||(l=!0),i+=u+"\n",e=e.substring(u.length+1)}_.loose||(d?_.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==s[0],g=g.replace(/^\[[ xX]\] +/,"")),_.items.push({type:"list_item",raw:i,task:!!s,checked:o,loose:!1,text:g}),_.raw+=i}_.items[_.items.length-1].raw=i.trimRight(),_.items[_.items.length-1].text=g.trimRight(),_.raw=_.raw.trimRight();var S=_.items.length;for(a=0;a<S;a++){this.lexer.state.top=!1,_.items[a].tokens=this.lexer.blockTokens(_.items[a].text,[]);var x=_.items[a].tokens.filter((function(e){return"space"===e.type})),L=x.every((function(e){for(var t,i=0,s=n(e.raw.split(""));!(t=s()).done;)if("\n"===t.value&&(i+=1),i>1)return!0;return!1}));!_.loose&&x.length&&L&&(_.loose=!0,_.items[a].loose=!0)}return _}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):c(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:L(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,s,o,r,a=i.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(a=i.rows.length,n=0;n<a;n++)i.rows[n]=L(i.rows[n],i.header.length).map((function(e){return{text:e}}));for(a=i.header.length,s=0;s<a;s++)i.header[s].tokens=this.lexer.inline(i.header[s].text);for(a=i.rows.length,s=0;s<a;s++)for(r=i.rows[s],o=0;o<r.length;o++)r[o].tokens=this.lexer.inline(r[o].text);return i}}},i.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},i.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}},i.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},i.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:c(t[1])}},i.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):c(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;var n=k(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{var s=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var i=e.length,n=0,s=0;s<i;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&--n<0)return s;return-1}(t[2],"()");if(s>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(i)?r.slice(1):r.slice(1,-1)),E(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return E(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var s=n[1]||n[2]||"";if(!s||s&&(""===i||this.rules.inline.punctuation.exec(i))){var o,r,a=n[0].length-1,l=a,d=0,h="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=h.exec(t));)if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=o.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+d),Math.min(a,r)%2){var c=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:c,tokens:this.lexer.inlineTokens(c)}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u)}}}else d+=r}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=c(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,s=this.rules.inline.autolink.exec(e);if(s)return n="@"===s[2]?"mailto:"+(i=c(this.options.mangle?t(s[1]):s[1])):i=c(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,s;if("@"===i[2])s="mailto:"+(n=c(this.options.mangle?t(i[0]):i[0]));else{var o;do{o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(o!==i[0]);n=c(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):c(n[0]):n[0]:c(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),I={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:S,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};I.def=m(I.def).replace("label",I._label).replace("title",I._title).getRegex(),I.bullet=/(?:[*+-]|\d{1,9}[.)])/,I.listItemStart=m(/^( *)(bull) */).replace("bull",I.bullet).getRegex(),I.list=m(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex(),I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,I.html=m(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.blockquote=m(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=x({},I),I.gfm=x({},I.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.table=m(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.gfm.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",I.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.pedantic=x({},I.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:S,paragraph:m(I.normal._paragraph).replace("hr",I.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function A(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function R(e){var t,i,n="",s=e.length;for(t=0;t<s;t++)i=e.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}M._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",M.punctuation=m(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=m(I._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=m(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=m(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=m(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,M.autolink=m(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=m(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=m(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=m(M.reflink).replace("label",M._label).replace("ref",I._label).getRegex(),M.nolink=m(M.nolink).replace("ref",I._label).getRegex(),M.reflinkSearch=m(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=x({},M),M.pedantic=x({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=x({},M.normal,{escape:m(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),M.gfm.url=m(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=x({},M.gfm,{br:m(M.br).replace("{2,}","*").getRegex(),text:m(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var O=function(){function i(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new T,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var i={block:I.normal,inline:M.normal};this.options.pedantic?(i.block=I.pedantic,i.inline=M.pedantic):this.options.gfm&&(i.block=I.gfm,this.options.breaks?i.inline=M.breaks:i.inline=M.gfm),this.tokenizer.rules=i}i.lex=function(e,t){return new i(t).lex(e)},i.lexInline=function(e,t){return new i(t).inlineTokens(e)};var n,s,o,r=i.prototype;return r.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},r.blockTokens=function(e,t){var i,n,s,o,r=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,i){return t+" ".repeat(i.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(s=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"===typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(s)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),o=s.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},r.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},r.inlineTokens=function(e,t){var i,n,s,o=this;void 0===t&&(t=[]);var r,a,l,d=e;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(d));)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,r.index)+"["+N("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,r.index)+"["+N("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,r.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:o},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,d,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,R))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,R))){if(s=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;o.options.extensions.startInline.forEach((function(e){"number"===typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(s,A))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},n=i,o=[{key:"rules",get:function(){return{block:I,inline:M}}}],(s=null)&&t(n.prototype,s),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),P=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,n);null!=s&&s!==e&&(i=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+c(n,!0)+'">'+(i?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:c(e,!0))+"</code></pre>\n"},i.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+n.slug(i))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},i.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"},i.listitem=function(e){return"<li>"+e+"</li>\n"},i.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},i.paragraph=function(e){return"<p>"+e+"</p>\n"},i.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},i.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"</"+i+">\n"},i.strong=function(e){return"<strong>"+e+"</strong>"},i.em=function(e){return"<em>"+e+"</em>"},i.codespan=function(e){return"<code>"+e+"</code>"},i.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.del=function(e){return"<del>"+e+"</del>"},i.link=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<a href="'+c(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>"},i.image=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<img src="'+e+'" alt="'+i+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},i.text=function(e){return e},t}(),F=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),V=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new B}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,s,o,r,a,l,d,h,c,u,p,m,f,_,v,b,C,y,w="",S=e.length;for(i=0;i<S;i++)if(c=e[i],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(y=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(c.tokens),c.depth,g(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",o=c.header.length,n=0;n<o;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(d+=this.renderer.tablerow(l),h="",o=c.rows.length,n=0;n<o;n++){for(l="",r=(a=c.rows[n]).length,s=0;s<r;s++)l+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:c.align[s]});h+=this.renderer.tablerow(l)}w+=this.renderer.table(d,h);continue;case"blockquote":h=this.parse(c.tokens),w+=this.renderer.blockquote(h);continue;case"list":for(u=c.ordered,p=c.start,m=c.loose,o=c.items.length,h="",n=0;n<o;n++)v=(_=c.items[n]).checked,b=_.task,f="",_.task&&(C=this.renderer.checkbox(v),m?_.tokens.length>0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=C+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=C+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:C}):f+=C),f+=this.parse(_.tokens,m),h+=this.renderer.listitem(f,b,v);w+=this.renderer.list(h,u,p);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(h=c.tokens?this.parseInline(c.tokens):c.text;i+1<S&&"text"===e[i+1].type;)h+="\n"+((c=e[++i]).tokens?this.parseInline(c.tokens):c.text);w+=t?this.renderer.paragraph(h):h;continue;default:var x='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(x);throw new Error(x)}else w+=y||"";return w},i.parseInline=function(e,t){t=t||this.renderer;var i,n,s,o="",r=e.length;for(i=0;i<r;i++)if(n=e[i],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(s=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":case"text":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=s||"";return o},t}();function W(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(i=t,t=null),D(t=x({},W.defaults,t||{})),i){var n,s=t.highlight;try{n=O.lex(e,t)}catch(d){return i(d)}var o=function(e){var o;if(!e)try{t.walkTokens&&W.walkTokens(n,t.walkTokens),o=V.parse(n,t)}catch(d){e=d}return t.highlight=s,e?i(e):i(null,o)};if(!s||s.length<3)return o();if(delete t.highlight,!n.length)return o();var r=0;return W.walkTokens(n,(function(e){"code"===e.type&&(r++,setTimeout((function(){s(e.text,e.lang,(function(t,i){if(t)return o(t);null!=i&&i!==e.text&&(e.text=i,e.escaped=!0),0===--r&&o()}))}),0))})),void(0===r&&o())}function a(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+c(e.message+"",!0)+"</pre>";throw e}try{var l=O.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(W.walkTokens(l,t.walkTokens)).then((function(){return V.parse(l,t)})).catch(a);W.walkTokens(l,t.walkTokens)}return V.parse(l,t)}catch(d){a(d)}}W.options=W.setOptions=function(t){var i;return x(W.defaults,t),i=W.defaults,e.defaults=i,W},W.getDefaults=s,W.defaults=e.defaults,W.use=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,s=x.apply(void 0,[{}].concat(t)),o=W.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=W.defaults.renderer||new P,i=function(i){var n=t[i];t[i]=function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];var a=e.renderer[i].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.renderer)i(n);s.renderer=t}(),e.tokenizer&&function(){var t=W.defaults.tokenizer||new T,i=function(i){var n=t[i];t[i]=function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];var a=e.tokenizer[i].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.tokenizer)i(n);s.tokenizer=t}(),e.walkTokens){var t=W.defaults.walkTokens;s.walkTokens=function(i){var n=[];return n.push(e.walkTokens.call(this,i)),t&&(n=n.concat(t.call(this,i))),n}}n&&(s.extensions=o),W.setOptions(s)}))},W.walkTokens=function(e,t){for(var i,s=[],o=function(){var e=i.value;switch(s=s.concat(t.call(W,e)),e.type){case"table":for(var o,r=n(e.header);!(o=r()).done;){var a=o.value;s=s.concat(W.walkTokens(a.tokens,t))}for(var l,d=n(e.rows);!(l=d()).done;)for(var h,c=n(l.value);!(h=c()).done;){var u=h.value;s=s.concat(W.walkTokens(u.tokens,t))}break;case"list":s=s.concat(W.walkTokens(e.items,t));break;default:W.defaults.extensions&&W.defaults.extensions.childTokens&&W.defaults.extensions.childTokens[e.type]?W.defaults.extensions.childTokens[e.type].forEach((function(i){s=s.concat(W.walkTokens(e[i],t))})):e.tokens&&(s=s.concat(W.walkTokens(e.tokens,t)))}},r=n(e);!(i=r()).done;)o();return s},W.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");D(t=x({},W.defaults,t||{}));try{var i=O.lexInline(e,t);return t.walkTokens&&W.walkTokens(i,t.walkTokens),V.parseInline(i,t)}catch(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+c(n.message+"",!0)+"</pre>";throw n}},W.Parser=V,W.parser=V.parse,W.Renderer=P,W.TextRenderer=F,W.Lexer=O,W.lexer=O.lex,W.Tokenizer=T,W.Slugger=B,W.parse=W;var H=W.options,z=W.setOptions,j=W.use,U=W.walkTokens,K=W.parseInline,q=W,$=V.parse,G=O.lex;e.Lexer=O,e.Parser=V,e.Renderer=P,e.Slugger=B,e.TextRenderer=F,e.Tokenizer=T,e.getDefaults=s,e.lexer=G,e.marked=W,e.options=H,e.parse=q,e.parseInline=K,e.parser=$,e.setOptions=z,e.use=j,e.walkTokens=U,Object.defineProperty(e,"__esModule",{value:!0})},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Lexer||exports.Lexer,_.Parser||exports.Parser,_.Renderer||exports.Renderer,_.Slugger||exports.Slugger,_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.getDefaults||exports.getDefaults,_.lexer||exports.lexer;var v=_.marked||exports.marked,b=(_.options||exports.options,_.parse||exports.parse,_.parseInline||exports.parseInline,_.parser||exports.parser,_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(33080)),C=i(32060),y=i(53335),w=i(30506),S=i(78701),x=i(91387);const L=Object.freeze({image:(e,t,i)=>{let n=[],s=[];return e&&(({href:e,dimensions:n}=(0,u.v1)(e)),s.push(`src="${(0,u.d9)(e)}"`)),i&&s.push(`alt="${(0,u.d9)(i)}"`),t&&s.push(`title="${(0,u.d9)(t)}"`),n.length&&(s=s.concat(n)),"<img "+s.join(" ")+">"},paragraph:e=>`<p>${e}</p>`,link:(e,t,i)=>"string"!==typeof e?"":(e===i&&(i=(0,u.oR)(i)),t="string"===typeof t?(0,u.d9)((0,u.oR)(t)):"",`<a href="${e=(e=(0,u.oR)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${i}</a>`)});function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var s,u;const m=new f.SL;let _=!1;const w=(0,r.az)(t),k=function(t){let i;try{i=(0,b.Qc)(decodeURIComponent(t))}catch(n){}return i?(i=(0,y.rs)(i,(t=>e.uris&&e.uris[t]?x.o.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},T=function(t,i){const n=e.uris&&e.uris[t];let s=x.o.revive(n);return i?t.startsWith(C.lg.data+":")?t:(s||(s=x.o.parse(t)),C.Gi.uriToBrowserUri(s).toString(!0)):s?x.o.parse(t).toString()===s.toString()?t:(s.query&&(s=s.with({query:k(s.query)})),s.toString()):t},I=new v.Renderer;I.image=L.image,I.link=L.link,I.paragraph=L.paragraph;const M=[],A=[];if(t.codeBlockRendererSync?I.code=(e,i)=>{const n=p.a.nextId(),s=t.codeBlockRendererSync(D(i),e);return A.push([n,s]),`<div class="code" data-code="${n}">${(0,S.YU)(e)}</div>`}:t.codeBlockRenderer&&(I.code=(e,i)=>{const n=p.a.nextId(),s=t.codeBlockRenderer(D(i),e);return M.push(s.then((e=>[n,e]))),`<div class="code" data-code="${n}">${(0,S.YU)(e)}</div>`}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let s=n.dataset.href;s&&(e.baseUri&&(s=N(x.o.from(e.baseUri),s)),t.actionHandler.callback(s,i))}catch(s){(0,h.dL)(s)}finally{i.preventDefault()}},s=t.actionHandler.disposables.add(new o.Y(w,"click")),r=t.actionHandler.disposables.add(new o.Y(w,"auxclick"));t.actionHandler.disposables.add(c.ju.any(s.event,r.event)((e=>{const t=new l.n(n.Jj(w),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.nm(w,"keydown",(e=>{const t=new a.y(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=I;let R,P=null!==(s=e.value)&&void 0!==s?s:"";if(P.length>1e5&&(P=`${P.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(P=(0,g.f$)(P)),t.fillInIncompleteTokens){const e={...v.defaults,...i},t=function(e){let t,i;for(t=0;t<e.length;t++){const n=e[t];let s;if("paragraph"===n.type&&(s=n.raw.match(/(\n|^)(````*)/))){const n=s[2];i=F(e.slice(t),n);break}if("paragraph"===n.type&&n.raw.match(/(\n|^)\|/)){i=q(e.slice(t));break}if(t===e.length-1&&"paragraph"===n.type){const e=O(n);if(e){i=[e];break}}}if(i){const n=[...e.slice(0,t),...i];return n.links=e.links,n}return e}(v.lexer(P,e));R=v.parser(t,e)}else R=v.parse(P,i);if(e.supportThemeIcons){R=(0,d.T)(R).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const B=(new DOMParser).parseFromString(E(e,R),"text/html");if(B.body.querySelectorAll("img").forEach((t=>{const i=t.getAttribute("src");if(i){let s=i;try{e.baseUri&&(s=N(x.o.from(e.baseUri),s))}catch(n){}t.src=T(s,!0)}})),B.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=T(i,!1);e.baseUri&&(n=N(x.o.from(e.baseUri),i)),t.dataset.href=n}})),w.innerHTML=E(e,B.body.innerHTML),M.length>0)Promise.all(M).then((e=>{var i,s;if(_)return;const o=new Map(e),r=w.querySelectorAll("div[data-code]");for(const t of r){const e=o.get(null!==(i=t.dataset.code)&&void 0!==i?i:"");e&&n.mc(t,e)}null===(s=t.asyncRenderCallback)||void 0===s||s.call(t)}));else if(A.length>0){const e=new Map(A),t=w.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(u=i.dataset.code)&&void 0!==u?u:"");t&&n.mc(i,t)}}if(t.asyncRenderCallback)for(const o of w.getElementsByTagName("img")){const e=m.add(n.nm(o,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:w,dispose:()=>{_=!0,m.dispose()}}}function D(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function N(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,w.i3)(e,t).toString():(0,w.i3)((0,w.XX)(e),t).toString()}function E(e,t){const{config:i,allowedSchemes:o}=function(e){const t=[C.lg.http,C.lg.https,C.lg.mailto,C.lg.data,C.lg.file,C.lg.vscodeFileResource,C.lg.vscodeRemote,C.lg.vscodeRemoteResource];e.isTrusted&&t.push(C.lg.command);return{config:{ALLOWED_TAGS:[...n.sQ],ALLOWED_ATTR:T,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);s.v5("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}})),s.v5("uponSanitizeElement",((e,t)=>{var i,n;"input"===t.tagName&&("checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)?e.setAttribute("disabled",""):null===(n=e.parentElement)||void 0===n||n.removeChild(e))}));const r=n._F(o);try{return s.Nw(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{s.ok("uponSanitizeAttribute"),r.dispose()}}const T=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];function I(e){return"string"===typeof e?e:function(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return E({isTrusted:!1},v.parse(i,{renderer:A.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=M.get(e))&&void 0!==t?t:e}))).toString()}(e)}const M=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),A=new m.o((()=>{const e=new v.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function R(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function O(e){var t,i;for(let n=0;n<e.tokens.length;n++){const s=e.tokens[n];if("text"===s.type){const o=s.raw.split("\n"),r=o[o.length-1];if(r.includes("`"))return B(e);if(r.includes("**"))return K(e,"**");if(r.match(/\*\w/))return V(e);if(r.match(/(^|\s)__\w/))return U(e);if(r.match(/(^|\s)_\w/))return W(e);if(r.match(/(^|\s)\[.*\]\(\w*/)){const s=e.tokens.slice(n+1);return"link"===(null===(t=s[0])||void 0===t?void 0:t.type)&&"text"===(null===(i=s[1])||void 0===i?void 0:i.type)&&s[1].raw.match(/^ *"[^"]*$/)?z(e):H(e)}if(P(r))return H(e);if(r.match(/(^|\s)\[\w/)&&!e.tokens.slice(n+1).some((e=>P(e.raw))))return j(e)}}}function P(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function F(e,t){const i=R(e);return v.lexer(i+`\n${t}`)}function B(e){return K(e,"`")}function V(e){return K(e,"*")}function W(e){return K(e,"_")}function H(e){return K(e,")")}function z(e){return K(e,'")')}function j(e){return K(e,"](about:blank)")}function U(e){return K(e,"__")}function K(e,t){const i=R(Array.isArray(e)?e:[e]);return v.lexer(i+t)[0]}function q(e){const t=R(e),i=t.split("\n");let n,s=!1;for(let o=0;o<i.length;o++){const e=i[o].trim();if("undefined"===typeof n&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(n=t.length)}else if("number"===typeof n){if(!e.match(/^\s*\|/))return;if(o!==i.length-1)return;s=!0}}if("number"===typeof n&&n>0){const e=s?i.slice(0,-1).join("\n"):t,o=!!e.match(/\|\s*$/),r=e+(o?"":"|")+`\n|${" --- |".repeat(n)}`;return v.lexer(r)}}},65179:(e,t,i)=>{"use strict";i.d(t,{n:()=>l,q:()=>d});var n=i(27748);const s=new WeakMap;function o(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class r{static getSameOriginWindowChain(e){let t=s.get(e);if(!t){t=[],s.set(e,t);let i,n=e;do{i=o(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let s=0,o=0;const r=this.getSameOriginWindowChain(e);for(const a of r){const e=a.window.deref();if(s+=null!==(i=null===e||void 0===e?void 0:e.scrollY)&&void 0!==i?i:0,o+=null!==(n=null===e||void 0===e?void 0:e.scrollX)&&void 0!==n?n:0,e===t)break;if(!a.iframeElement)break;const r=a.iframeElement.getBoundingClientRect();s+=r.top,o+=r.left}return{top:s,left:o}}}var a=i(90388);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=r.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class d{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;var s;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let o=!1;if(n.i7){const e=navigator.userAgent.match(/Chrome\/(\d+)/);o=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=(null===(s=e.view)||void 0===s?void 0:s.devicePixelRatio)||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=o?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)n.G6&&a.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=o?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=o?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},9922:(e,t,i)=>{"use strict";var n;i.d(t,{B:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},s={...t};let o=0;const r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function l(){performance.mark("input/start"),r.input=1,c()}function d(){1===r.input&&(performance.mark("input/end"),r.input=2)}function h(){1===r.render&&(performance.mark("render/end"),r.render=2)}function c(){setTimeout(u)}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",s),o++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/o,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(d)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(h),c())},e.getAndClearMeasurements=function(){if(0===o)return;const e={keydown:p(t),input:p(i),render:p(n),total:p(s),sampleCount:o};return m(t),m(i),m(n),m(s),o=0,e}}(n||(n={}))},20796:(e,t,i)=>{"use strict";i.d(t,{T:()=>l});var n=i(76595),s=i(39706),o=i(53186);class r extends o.JT{constructor(e){super(),this._onDidChange=this._register(new s.Q5),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends o.JT{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new s.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new r(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const l=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,n.ZY)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,o.dk)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,o.dk)(s.ju.once(n.ey)((e=>{let{vscodeWindowId:n}=e;n===t&&(null===i||void 0===i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},68068:(e,t,i)=>{"use strict";i.d(t,{o:()=>u,t:()=>n});var n,s=i(76595),o=i(11801),r=i(51833),a=i(21150),l=i(39706),d=i(53186),h=i(64450),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class u extends d.JT{constructor(){super(),this.dispatched=!1,this.targets=new h.S,this.ignoreTargets=new h.S,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.ju.runAndSubscribe(s.Xo,(e=>{let{window:t,disposables:i}=e;i.add(s.nm(t.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),i.add(s.nm(t.document,"touchend",(e=>this.onTouchEnd(t,e)))),i.add(s.nm(t.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:o.E,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return d.JT.None;u.INSTANCE||(u.INSTANCE=(0,d.dk)(new u));const t=u.INSTANCE.targets.push(e);return(0,d.OF)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return d.JT.None;u.INSTANCE||(u.INSTANCE=(0,d.dk)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,d.OF)(t)}static isTouchDevice(){return"ontouchstart"in o.E||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,s=e.targetTouches.length;i<s;i++){const s=e.targetTouches.item(i);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:t,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[t],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};const o=this.newGestureEvent(n.Start,s.target);o.pageX=s.pageX,o.pageY=s.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),s=Object.keys(this.activeTouches).length;for(let o=0,a=t.changedTouches.length;o<a;o++){const a=t.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const l=this.activeTouches[a.identifier],d=Date.now()-l.initialTimeStamp;if(d<u.HOLD_DELAY&&Math.abs(l.initialPageX-r.Gb(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.Gb(l.rollingPageY))<30){const e=this.newGestureEvent(n.Tap,l.initialTarget);e.pageX=r.Gb(l.rollingPageX),e.pageY=r.Gb(l.rollingPageY),this.dispatchEvent(e)}else if(d>=u.HOLD_DELAY&&Math.abs(l.initialPageX-r.Gb(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.Gb(l.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,l.initialTarget);e.pageX=r.Gb(l.rollingPageX),e.pageY=r.Gb(l.rollingPageY),this.dispatchEvent(e)}else if(1===s){const t=r.Gb(l.rollingPageX),n=r.Gb(l.rollingPageY),s=r.Gb(l.rollingTimestamps)-l.rollingTimestamps[0],o=t-l.rollingPageX[0],a=n-l.rollingPageY[0],d=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,d,i,Math.abs(o)/s,o>0?1:-1,t,Math.abs(a)/s,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(n.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let n=0,s=e.initialTarget;for(;s&&s!==i;)n++,s=s.parentElement;t.push([n,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,n]of t)n.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,o,r,a,l,d,h){this.handle=s.jL(e,(()=>{const s=Date.now(),c=s-i;let g=0,p=0,m=!0;o+=u.SCROLL_FRICTION*c,l+=u.SCROLL_FRICTION*c,o>0&&(m=!1,g=r*o*c),l>0&&(m=!1,p=d*l*c);const f=this.newGestureEvent(n.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,s,o,r,a+g,l,d,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,s=e.changedTouches.length;i<s;i++){const s=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}const o=this.activeTouches[s.identifier],a=this.newGestureEvent(n.Change,o.initialTarget);a.translationX=s.pageX-r.Gb(o.rollingPageX),a.translationY=s.pageY-r.Gb(o.rollingPageY),a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(s.pageX),o.rollingPageY.push(s.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}u.SCROLL_FRICTION=-.005,u.HOLD_DELAY=700,u.CLEAR_TAP_COUNT_TIME=400,c([a.H],u,"isTouchDevice",null)},58296:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(11801),s=i(16015);function o(e,t){var i;const o=globalThis.MonacoEnvironment;if(null===o||void 0===o?void 0:o.createTrustedTypesPolicy)try{return o.createTrustedTypesPolicy(e,t)}catch(r){return void(0,s.dL)(r)}try{return null===(i=n.E.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(r){return void(0,s.dL)(r)}}},26031:(e,t,i)=>{"use strict";i.d(t,{gU:()=>E,YH:()=>N,Lc:()=>T});var n=i(27748),s=i(37405),o=i(76595),r=i(68068),a=i(97133),l=i(71371),d=i(24199),h=i(10381),c=i(16315),u=i(69394),g=i(51833),p=i(39706),m=i(17344),f=i(53186),_=i(90388),v=i(5887);const b=o.$,C="selectOption.entry.template";class y{get templateId(){return C}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=o.R3(e,b(".option-text")),t.detail=o.R3(e,b(".option-detail")),t.decoratorRight=o.R3(e,b(".option-decorator-right")),t}renderElement(e,t,i){const n=i,s=e.text,o=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=s,n.detail.textContent=o||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class w extends f.JT{constructor(e,t,i,n,s){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=s||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=w.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.Q5,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,l.g)((0,a.tM)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return C}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=o.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=o.R3(this.selectDropDownContainer,b(".select-box-details-pane"));const t=o.R3(this.selectDropDownContainer,b(".select-box-dropdown-container-width-control")),i=o.R3(t,b(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",o.R3(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=o.dS(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(o.nm(this.selectDropDownContainer,o.tw.DRAG_START,(e=>{o.zB.stop(e,!0)})))}registerListeners(){let e;this._register(o.mu(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(o.nm(this.selectElement,o.tw.CLICK,(e=>{o.zB.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(o.nm(this.selectElement,o.tw.MOUSE_DOWN,(e=>{o.zB.stop(e)}))),this._register(o.nm(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(o.nm(this.selectElement,"touchend",(t=>{o.zB.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(o.nm(this.selectElement,o.tw.KEY_DOWN,(e=>{const t=new h.y(e);let i=!1;_.dz?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),o.zB.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",s=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",o=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=s,this.selectElement.style.borderColor=o}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=o.XT(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const s=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=s,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(t){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=o.Jj(this.selectElement),i=o.i(this.selectElement),n=o.Jj(this.selectElement).getComputedStyle(this.selectElement),s=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,d=this.setWidthControlElement(this.widthControlElement),h=Math.max(d,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let c=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=c+s+u,p=Math.floor((r-s-u)/this.getHeight()),m=Math.floor((a-s-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<w.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>r&&(c=p*this.getHeight())}else g>a&&(c=m*this.getHeight());return this.selectList.layout(c),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=c+s+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=c+s+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const s=e.detail?e.detail.length:0,o=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+s+o;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=o.w(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=o.R3(e,b(".select-box-dropdown-list-container")),this.listRenderer=new y,this.selectList=new u.aV("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.NC)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.dz?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new d.Y(this.selectDropDownListContainer,"keydown")),i=p.ju.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new h.y(e)))));this._register(p.ju.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(o.nm(this.selectList.getHTMLElement(),o.tw.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(o.nm(this.selectDropDownContainer,o.tw.FOCUS_OUT,(e=>{this._isVisible&&!o.jg(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;o.zB.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),s=i.classList.contains("option-disabled");n>=0&&n<this.options.length&&!s&&(this.selected=n,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes.item(t);"img"===(n.tagName&&n.tagName.toLowerCase())?e.removeChild(n):i(n)}},n=(0,c.ap)({value:e,supportThemeIcons:!0},{actionHandler:t});return n.element.classList.add("select-box-description-markdown"),i(n.element),n.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){var t,i;this.selectionDetailsPane.innerText="";const n=this.options[e],s=null!==(t=null===n||void 0===n?void 0:n.description)&&void 0!==t?t:"",o=null!==(i=null===n||void 0===n?void 0:n.descriptionIsMarkdown)&&void 0!==i&&i;if(s){if(o){const e=n.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(s,e))}else this.selectionDetailsPane.innerText=s;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){o.zB.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){o.zB.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){o.zB.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){o.zB.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){o.zB.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){o.zB.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){o.zB.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){o.zB.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.kL.toString(e.keyCode);let i=-1;for(let n=0;n<this.options.length-1;n++)if(i=(n+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),o.zB.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}w.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32,w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2,w.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3;class S extends f.JT{constructor(e,t,i,n){super(),this.selected=0,this.selectBoxOptions=n||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.Q5),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(r.o.addTarget(this.selectElement)),[r.t.Tap].forEach((e=>{this._register(o.nm(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(o.mu(this.selectElement,"click",(e=>{o.zB.stop(e,!0)}))),this._register(o.mu(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(o.mu(this.selectElement,"keydown",(e=>{let t=!1;_.dz?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){var e,t,i;this.selectElement&&(this.selectElement.style.backgroundColor=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",this.selectElement.style.color=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",this.selectElement.style.borderColor=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"")}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}}var x=i(7341);class L extends x.${constructor(e,t,i,n,s){super(),_.dz&&!(null===s||void 0===s?void 0:s.useCustomDrawn)?this.selectBoxDelegate=new S(e,t,n,s):this.selectBoxDelegate=new w(e,t,i,n,s),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var k=i(51828),D=i(47624);i(4025);class N extends f.JT{get action(){return this._action}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(),this.options=i,this._context=e||this,this._action=t,t instanceof k.aU&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new k.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,o.nm)(e,o.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(s.g.TEXT,this._action.label)})))),this._register((0,o.nm)(t,r.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,o.nm)(t,o.tw.MOUSE_DOWN,(e=>{i||o.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.dz&&this._register((0,o.nm)(t,o.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,o.nm)(t,o.tw.CLICK,(e=>{o.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,o.nm)(t,o.tw.DBLCLICK,(e=>{o.zB.stop(e,!0)}))),[o.tw.MOUSE_UP,o.tw.MOUSE_OUT].forEach((e=>{this._register((0,o.nm)(t,e,(e=>{o.zB.stop(e),t.classList.remove("active")})))}))}onClick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i;o.zB.stop(e,!0);const n=D.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover||""===n)this.customHover&&this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,a.tM)("element");this.customHover=this._store.add((0,l.g)(e,this.element,n))}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class E extends N{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),D.p_(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===k.Z0.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!==e&&void 0!==e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class T extends N{constructor(e,t,i,n,s,o,r){super(e,t),this.selectBox=new L(i,n,s,o,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},7144:(e,t,i)=>{"use strict";i.d(t,{o:()=>c});var n=i(76595),s=i(10381),o=i(26031),r=i(97133),a=i(51828),l=i(39706),d=i(53186),h=i(47624);i(4025);class c extends d.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i,h,c,u,g,p,m;let f,_;switch(super(),this._actionRunnerDisposables=this._register(new d.SL),this.viewItemDisposables=this._register(new d.b2),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.Q5({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.Q5),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.Q5),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(h=this.options.orientation)&&void 0!==h?h:0,this._triggerKeys={keyDown:null!==(u=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keyDown)&&void 0!==u&&u,keys:null!==(p=null===(g=this.options.triggerKeys)||void 0===g?void 0:g.keys)&&void 0!==p?p:[3,10]},this._hoverDelegate=null!==(m=t.hoverDelegate)&&void 0!==m?m:this._register((0,r.p0)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.Wi,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:f=[15],_=[17];break;case 1:f=[16],_=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new s.y(e);let i=!0;const n="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;f&&(t.equals(f[0])||t.equals(f[1]))?i=this.focusPrevious():_&&(t.equals(_[0])||t.equals(_[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof o.YH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new s.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof o.YH&&e.isEnabled()));e instanceof o.YH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof o.YH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;i<this.actionsList.children.length;i++){const s=this.actionsList.children[i];if(n.jg(n.vY(),s)){this.focusedItem=i,null===(t=null===(e=this.viewItems[this.focusedItem])||void 0===e?void 0:e.showHover)||void 0===t||t.call(e);break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"===typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Array.isArray(e)?e:[e];let s=h.hj(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e,a)),r||(r=new o.gU(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(r,n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof o.YH&&0===this.viewItems.length&&r.setFocusable(!0),null===s||s<0||s>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r)):(this.actionsList.insertBefore(i,this.actionsList.children[s]),this.viewItems.splice(s,0,r),s++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,d.B9)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.PO(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n,s;"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const o=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(o){let n=!0;h.mf(o.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.mf(o.isEnabled)&&!o.isEnabled()&&(n=!1),o.action.id===a.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(s=o.showHover)||void 0===s||s.call(o))}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof o.YH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,d.B9)(this.viewItems),this.getContainer().remove(),super.dispose()}}},83945:(e,t,i)=>{"use strict";i.d(t,{Z9:()=>c,wW:()=>h,i7:()=>u});var n=i(76595);const s=2e4;let o,r,a,l,d;function h(e){o=document.createElement("div"),o.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),o.appendChild(e),e};r=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),o.appendChild(e),e};l=i(),d=i(),e.appendChild(o)}function c(e){o&&(r.textContent!==e?(n.PO(a),g(r,e)):(n.PO(r),g(a,e)))}function u(e){o&&(l.textContent!==e?(n.PO(d),g(l,e)):(n.PO(l),g(d,e)))}function g(e,t){n.PO(e),t.length>s&&(t=t.substr(0,s)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},33013:(e,t,i)=>{"use strict";i.d(t,{z:()=>f});var n=i(76595),s=i(20707),o=i(10381),r=i(16315),a=i(68068),l=i(97133),d=i(71371),h=i(27691),c=i(63932),u=i(39706),g=i(73971),p=i(53186),m=i(73045);c.Il.white.toString(),c.Il.white.toString();class f extends p.JT{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new u.Q5),this._onDidEscape=this._register(new u.Q5),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,s=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=s||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.title&&this.setTitle(t.title),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.o.addTarget(this._element)),[n.tw.CLICK,a.t.Tap].forEach((e=>{this._register((0,n.nm)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.zB.stop(e)})))})),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.zB.stop(t,!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,h.T)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,g.Fr)(this._label)&&(0,g.Fr)(e)&&(0,g.g_)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,g.Fr)(e)){const o=(0,r.ap)(e,{inline:!0});o.dispose();const a=null===(t=o.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,s.Nw)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.mc)(i)}else this.options.supportIcons?(0,n.mc)(i,...this.getContentElements(e)):i.textContent=e;let o="";"string"===typeof this.options.title?o=this.options.title:this.options.title&&(o=(0,r.et)(e)),this.setTitle(o),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",o),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...m.k.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){var t;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,d.g)(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,l.tM)("mouse"),this._element,e))}}},60951:()=>{},45337:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(76595),s=i(78701);class o{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,s.WU)(this.countFormat,this.count),this.element.title=(0,s.WU)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},86406:(e,t,i)=>{"use strict";i.d(t,{C:()=>g});var n=i(76595),s=i(26031),o=i(10381),r=i(68068),a=i(51828),l=i(39706);class d extends a.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.R3)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.R3)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const o of[n.tw.CLICK,n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this.element,o,(e=>n.zB.stop(e,!0))));for(const o of[n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this._label,o,(e=>{(0,n.N5)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.nm)(this._label,n.tw.KEY_UP,(e=>{const t=new o.y(e);(t.equals(3)||t.equals(10))&&(n.zB.stop(e,!0),this.visible?this.hide():this.show())})));const s=i(this._label);s&&this._register(s),this._register(r.o.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends d{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var c=i(71371),u=i(97133);class g extends s.YH{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object.create(null);super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{var t;this.element=(0,n.R3)(e,(0,n.$)("a.action-label"));let i=[];return"string"===typeof this.options.classNames?i=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(i=this.options.classNames),i.find((e=>"icon"===e))||i.push("codicon"),this.element.classList.add(...i),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,c.g)(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,u.tM)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!==e&&void 0!==e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},22406:(e,t,i)=>{"use strict";i.d(t,{V:()=>u});var n=i(76595),s=i(33741),o=i(58799),r=i(7341),a=i(39706),l=(i(69850),i(5887)),d=i(53186),h=i(97133);const c=l.NC("defaultLabel","input");class u extends r.${constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new d.XK),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.Q5),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.Q5),this._onKeyUp=this._register(new a.Q5),this._onCaseSensitiveKeyDown=this._register(new a.Q5),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.Q5),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||c,this.showCommonFindToggles=!!i.showCommonFindToggles;const r=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.pG(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.p0)());if(this.showCommonFindToggles){this.regex=this._register(new s.eH({appendTitle:u,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new s.Qx({appendTitle:l,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new s.rk({appendTitle:r,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let s=-1;t.equals(17)?s=(i+1)%e.length:t.equals(15)&&(s=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):s>=0&&e[s].focus(),n.zB.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null===i||void 0===i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null===e||void 0===e||e.appendChild(this.domNode),this._register(n.nm(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.nm(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new d.SL;for(const t of null!==e&&void 0!==e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t,i,n,s,o,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(s=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==s?s:0)+(null!==(r=null===(o=this.regex)||void 0===o?void 0:o.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},33741:(e,t,i)=>{"use strict";i.d(t,{Qx:()=>c,eH:()=>u,rk:()=>h});var n=i(97133),s=i(81502),o=i(61542),r=i(5887);const a=r.NC("caseDescription","Match Case"),l=r.NC("wordsDescription","Match Whole Word"),d=r.NC("regexDescription","Use Regular Expression");class h extends s.Z{constructor(e){var t;super({icon:o.l.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class c extends s.Z{constructor(e){var t;super({icon:o.l.wholeWord,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends s.Z{constructor(e){var t;super({icon:o.l.regex,title:d+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},24504:(e,t,i)=>{"use strict";i.d(t,{q:()=>d});var n=i(76595),s=i(97133),o=i(71371),r=i(27691),a=i(53186),l=i(53335);class d extends a.JT{constructor(e,t){var i;super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null===t||void 0===t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.R3(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=""),(arguments.length>3?arguments[3]:void 0)&&(e=d.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&l.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,a;const l=[];let d=0;for(const s of this.highlights){if(s.end===s.start)continue;if(d<s.start){const e=this.text.substring(d,s.start);this.supportIcons?l.push(...(0,r.T)(e)):l.push(e),d=s.start}const e=this.text.substring(d,s.end),t=n.$("span.highlight",void 0,...this.supportIcons?(0,r.T)(e):[e]);s.extraClasses&&t.classList.add(...s.extraClasses),l.push(t),d=s.end}if(d<this.text.length){const e=this.text.substring(d);this.supportIcons?l.push(...(0,r.T)(e)):l.push(e)}if(n.mc(this.domNode,...l),null===(t=null===(e=this.options)||void 0===e?void 0:e.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=null!==(a=null===(i=this.options)||void 0===i?void 0:i.hoverDelegate)&&void 0!==a?a:(0,s.tM)("mouse");this.customHover=this._register((0,o.g)(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,n=0;return e.replace(/\r\n|\r|\n/g,((e,s)=>{n="\r\n"===e?-1:0,s+=i;for(const i of t)i.end<=s||(i.start>=s&&(i.start+=n),i.end>=s&&(i.end+=n));return i+=n,"\u23ce"}))}}},97133:(e,t,i)=>{"use strict";i.d(t,{p0:()=>d,rM:()=>a,tM:()=>l});var n=i(20447);let s=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const o=new n.o((()=>s("mouse",!1))),r=new n.o((()=>s("element",!1)));function a(e){s=e}function l(e){return"element"===e?r.value:o.value}function d(){return s("element",!0)}},22367:(e,t,i)=>{"use strict";i.d(t,{Sr:()=>h,c8:()=>d,uX:()=>c});var n=i(76595),s=i(10381),o=i(24622),r=i(53186),a=i(5887);const l=n.$;class d extends r.JT{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new o.s$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends r.JT{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionContainer=n.R3(e,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.R3(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.R3(this.action,l(`span.icon.${t.iconClass}`));n.R3(this.action,l("span")).textContent=i?`${t.label} (${i})`:t.label,this._register(n.nm(this.actionContainer,n.tw.CLICK,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this._register(n.nm(this.actionContainer,n.tw.KEY_DOWN,(e=>{const i=new s.y(e);(i.equals(3)||i.equals(10))&&(e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer))}))),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function c(e,t){return e&&t?(0,a.NC)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.NC)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},71371:(e,t,i)=>{"use strict";i.d(t,{O:()=>c,g:()=>p});var n=i(76595),s=i(53372),o=i(76946),r=i(73971),a=i(77048),l=i(53186),d=i(47624),h=i(5887);function c(e,t){(0,d.HD)(t)?e.title=(0,a.x$)(t):(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class u{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,d.HD)(e)||e instanceof HTMLElement)s=e;else if((0,d.mf)(e.markdown)){this._hoverWidget||this.show((0,h.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new o.A;const i=this._cancellationTokenSource.token;if(s=await e.markdown(i),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else s=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(s,t)}null===n||void 0===n||n.dispose()}hasContent(e){return!!e&&(!(0,r.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function g(e,t){for(t=null!==t&&void 0!==t?t:n.Jj(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}function p(e,t,i,o){let r,a;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const d=(t,i)=>{var n;const s=void 0!==a;t&&(null===a||void 0===a||a.dispose(),a=void 0),i&&(null===r||void 0===r||r.dispose(),r=void 0),s&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),a=void 0)},h=(n,r,l)=>new s._F((async()=>{a&&!a.isDisposed||(a=new u(e,l||t,n>0),await a.update("function"===typeof i?i():i,r,o))}),n);let c=!1;const p=n.nm(t,n.tw.MOUSE_DOWN,(()=>{c=!0,d(!0,!0)}),!0),m=n.nm(t,n.tw.MOUSE_UP,(()=>{c=!1}),!0),f=n.nm(t,n.tw.MOUSE_LEAVE,(e=>{c=!1,d(!1,e.fromElement===t)}),!0),_=n.nm(t,n.tw.MOUSE_OVER,(i=>{if(r)return;const s=new l.SL,o={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{o.x=e.x+10,e.target instanceof HTMLElement&&g(e.target,t)!==t&&d(!0,!0)};s.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}r=s,i.target instanceof HTMLElement&&g(i.target,t)!==t||s.add(h(e.delay,!1,o))}),!0),v=()=>{if(c||r)return;const i={targetElements:[t],dispose:()=>{}},s=new l.SL;s.add(n.nm(t,n.tw.BLUR,(()=>d(!0,!0)),!0)),s.add(h(e.delay,!1,i)),r=s};let b;const C=t.tagName.toLowerCase();"input"!==C&&"textarea"!==C&&(b=n.nm(t,n.tw.FOCUS,v,!0));return{show:e=>{d(!1,!0),h(0,e)},hide:()=>{d(!0,!0)},update:async(e,t)=>{i=e,await(null===a||void 0===a?void 0:a.update(i,void 0,t))},dispose:()=>{_.dispose(),f.dispose(),p.dispose(),m.dispose(),null===b||void 0===b||b.dispose(),d(!0,!0)}}}},83172:(e,t,i)=>{"use strict";i.d(t,{g:()=>c});var n=i(76595),s=i(24504),o=i(71371),r=i(53186),a=i(53335),l=i(32906),d=i(97133);class h{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class c extends r.JT{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new h(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container")),(null===t||void 0===t?void 0:t.supportHighlights)||(null===t||void 0===t?void 0:t.supportIcons)?this.nameNode=this._register(new g(this.nameContainer,!!t.supportIcons)):this.nameNode=new u(this.nameContainer),this.hoverDelegate=null!==(i=null===t||void 0===t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,d.tM)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const o=["monaco-icon-label"],r=["monaco-icon-label-container"];let a="";if(i&&(i.extraClasses&&o.push(...i.extraClasses),i.italic&&o.push("italic"),i.strikethrough&&o.push("strikethrough"),i.disabledCommand&&r.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e)),this.domNode.className=o.join(" "),this.domNode.element.setAttribute("aria-label",a),this.labelContainer.className=r.join(" "),this.setupHover((null===i||void 0===i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null===i||void 0===i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof s.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null===i||void 0===i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null===i||void 0===i?void 0:i.descriptionTitle)):(e.textContent=t&&(null===i||void 0===i?void 0:i.labelEscapeNewLines)?s.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null===i||void 0===i?void 0:i.descriptionTitle)||""),e.empty=!t)}if((null===i||void 0===i?void 0:i.suffix)||this.suffixNode){this.getOrCreateSuffixNode().textContent=null!==(n=null===i||void 0===i?void 0:i.suffix)&&void 0!==n?n:""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover)(0,o.O)(e,t);else{const i=(0,o.g)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new h(n.e4(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new h(n.R3(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new h(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new s.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new h(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class u{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const s=e[i],o=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${i}`;n.R3(this.container,n.$("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},s)),i<e.length-1&&n.R3(this.container,n.$("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}}}class g extends r.JT{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new s.q(n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(null===t||void 0===t?void 0:t.separator)||"/",o=function(e,t,i){if(!i)return;let n=0;return e.map((e=>{const s={start:n,end:n+e.length},o=i.map((e=>l.e.intersect(s,e))).filter((e=>!l.e.isEmpty(e))).map((e=>{let{start:t,end:i}=e;return{start:t-n,end:i-n}}));return n=s.end+t.length,o}))}(e,i,null===t||void 0===t?void 0:t.matches);for(let r=0;r<e.length;r++){const a=e[r],l=o?o[r]:void 0,d=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${r}`,h=n.$("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"});this._register(new s.q(n.R3(this.container,h),{supportIcons:this.supportIcons})).set(a,l,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines),r<e.length-1&&n.R3(h,n.$("span.label-separator",void 0,i))}}}}},27691:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,h:()=>a});var n=i(76595),s=i(73045);const o=new RegExp(`(\\\\)?\\$\\((${s.k.iconNameExpression}(?:${s.k.iconModifierExpression})?)\\)`,"g");function r(e){const t=new Array;let i,n=0,s=0;for(;null!==(i=o.exec(e));){s=i.index||0,n<s&&t.push(e.substring(n,s)),n=(i.index||0)+i[0].length;const[,o,r]=i;t.push(o?`$(${r})`:a({id:r}))}return n<e.length&&t.push(e.substring(n)),t}function a(e){const t=n.$("span");return t.classList.add(...s.k.asClassNameArray(e)),t}},58799:(e,t,i)=>{"use strict";i.d(t,{pG:()=>C,g4:()=>v});var n=i(76595),s=i(24199),o=i(90030),r=i(7144),a=i(83945),l=i(97133),d=i(71371),h=i(24622),c=i(7341),u=i(39706);class g{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t-1;this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(53335),f=i(5887);const _=n.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class b extends c.${constructor(e,t,i){var o;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(o=this.options.tooltip)&&void 0!==o?o:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,_(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",l=n.R3(this.element,_(".ibwrapper"));if(this.input=n.R3(l,_(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(l,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new s.Y(e.ownerDocument,"selectionchange")),i=u.ju.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null===t||void 0===t?void 0:t.anchorNode)===l}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,d.g)((0,l.tM)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.H9(this.input)}select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;const t=this.input.selectionStart;if(null===t)return null;return{start:t,end:null!==(e=this.input.selectionEnd)&&void 0!==e?e:t}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.fS)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.XT(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.w(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var s,r;if(!this.message)return null;e=n.R3(i,_(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,o.BO)(this.message.content,a):(0,o.IY)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const d=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(s=d.background)&&void 0!==s?s:"",l.style.color=null!==(r=d.foreground)&&void 0!==r?r:"",l.style.border=d.border?`1px solid ${d.border}`:"",n.R3(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.NC("alertWarningMessage","Warning: {0}",this.message.content):f.NC("alertInfoMessage","Info: {0}",this.message.content),a.Z9(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){var e,t,i;const s=this.options.inputBoxStyles,o=null!==(e=s.inputBackground)&&void 0!==e?e:"",r=null!==(t=s.inputForeground)&&void 0!==t?t:"",a=null!==(i=s.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=o,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${n.XT(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;null!==i&&null!==n&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class C extends b{constructor(e,t,i){const s=f.NC({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),o=f.NC({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.Q5),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(o)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?s:o,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.H9(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(o)||e(s)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!==e&&void 0!==e?e:"",a.i7(this.value?this.value:f.NC("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},23014:(e,t,i)=>{"use strict";i.d(t,{e:()=>u,F:()=>c});var n=i(76595),s=i(97133),o=i(71371),r=i(47202),a=i(53186),l=i(53335),d=i(5887);const h=n.$,c={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.JT{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const r=this.options.keybindingLabelForeground;this.domNode=n.R3(e,h(".monaco-keybinding")),r&&(this.domNode.style.color=r),this.hover=this._register((0,o.g)((0,s.tM)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e<t.length;e++)n.R3(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,t[e],this.matches?this.matches.chordPart:null);const i=null!==(e=this.options.disableTitle)&&void 0!==e&&e?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(i),this.domNode.setAttribute("aria-label",i||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){n.PO(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const n=r.xo.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,Boolean(null===i||void 0===i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,Boolean(null===i||void 0===i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,Boolean(null===i||void 0===i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,Boolean(null===i||void 0===i?void 0:i.metaKey),n.separator);const s=t.keyLabel;s&&this.renderKey(e,s,Boolean(null===i||void 0===i?void 0:i.keyCode),"")}renderKey(e,t,i,s){n.R3(e,this.createKeyElement(t,i?".highlight":"")),s&&n.R3(e,h("span.monaco-keybinding-key-separator",void 0,s))}renderUnbound(e){n.R3(e,this.createKeyElement((0,d.NC)("unbound","Unbound")))}createKeyElement(e){const t=h("span.monaco-keybinding-key"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),void 0,e);return this.keyElements.add(t),this.options.keybindingLabelBackground&&(t.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(t.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(t.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(t.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),t}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,l.fS)(e.firstPart,t.firstPart)&&(0,l.fS)(e.chordPart,t.chordPart)}}},23252:(e,t,i)=>{"use strict";i.d(t,{kX:()=>x,Bv:()=>N});var n=i(37405),s=i(76595),o=i(24199),r=i(68068),a=i(24622),l=i(51833),d=i(53372),h=i(21150),c=i(39706),u=i(53186),g=i(32906),p=i(91181);function m(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end<n.range.start)break;const t=g.e.intersect(e,n.range);g.e.isEmpty(t)||i.push({range:t,size:n.size})}return i}function f(e,t){let{start:i,end:n}=e;return{start:i+t,end:n+t}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=null!==e&&void 0!==e?e:0,this._size=this._paddingTop}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=i.length-t,s=m({start:0,end:e},this.groups),o=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){const t=[];let i=null;for(const n of e){const e=n.range.start,s=n.range.end,o=n.size;i&&o===i.size?i.range.end=s:(i={range:{start:e,end:s},size:o},t.push(i))}return t}(t.reduce(((e,t)=>e.concat(t)),[]))}(s,r,o),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const n of this.groups){const s=n.range.end-n.range.start,o=i+s*n.size;if(e<o)return t+Math.floor((e-i)/n.size);t+=s,i=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,o=i+s;if(e<o)return this._paddingTop+t+(e-i)*n.size;t+=s*n.size,i=o}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,s.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),function(e){var t;try{null===(t=e.parentElement)||void 0===t||t.removeChild(e)}catch(i){}}(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var b=i(16015),C=i(56155),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};const w={CurrentDragAndDropData:void 0},S={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class x{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class k{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class D{constructor(e){(null===e||void 0===e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,i)=>i,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class N{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S;var o,l,h,g,m,f,_,b,C,y,w,x,L;if(this.virtualDelegate=t,this.domId="list_id_"+ ++N.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.JT.None,this.onDragLeaveTimeout=u.JT.None,this.disposables=new u.SL,this._onDidChangeContentHeight=new c.Q5,this._onDidChangeContentWidth=new c.Q5,this.onDidChangeContentHeight=c.ju.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(o=n.paddingTop)&&void 0!==o?o:0);for(const s of i)this.renderers.set(s.templateId,s);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(l=n.horizontalScrolling)&&void 0!==l?l:S.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new D(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(null!==(h=n.transformOptimization)&&void 0!==h?h:S.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(r.o.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,s.jL)((0,s.Jj)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(m=n.alwaysConsumeMouseWheel)&&void 0!==m?m:S.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(f=n.verticalScrollMode)&&void 0!==f?f:S.verticalScrollMode,useShadows:null!==(_=n.useShadows)&&void 0!==_?_:S.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.nm)(this.rowsContainer,r.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,s.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,s.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(b=n.setRowLineHeight)&&void 0!==b?b:S.setRowLineHeight,this.setRowHeight=null!==(C=n.setRowHeight)&&void 0!==C?C:S.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:S.supportDynamicHeights,this.dnd=null!==(w=n.dnd)&&void 0!==w?w:this.disposables.add(S.dnd),this.layout(null===(x=n.initialSize)||void 0===x?void 0:x.height,null===(L=n.initialSize)||void 0===L?void 0:L.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!==t&&void 0!==t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},o=g.e.intersect(n,s),r=new Map;for(let u=o.end-1;u>=o.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=r.get(e.templateId);t||(t=[],r.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.push(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=g.e.intersect(a,n),d=g.e.relativeComplement(a,n),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.JT.None,checkedDisposable:u.JT.None,stale:!1})));let c;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),c=this.items,this.items=h):(this.rangeMap.splice(e,t,h),c=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(l,p),v=g.e.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const b=g.e.relativeComplement(_,m);for(const u of b)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const C=d.map((e=>f(e,p))),y=[{start:e,end:e+i.length},...C].map((e=>g.e.intersect(m,e))).reverse();for(const u of y)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=r.get(t.templateId),n=null===i||void 0===i?void 0:i.pop();this.insertItemInDOM(e,n)}for(const u of r.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),c.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,s.jL)((0,s.Jj)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,s.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,s.FK)(this.domNode)})}render(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const r=this.getRenderRange(t,i),a=g.e.relativeComplement(r,e).reverse(),l=g.e.relativeComplement(e,r);if(o){const t=g.e.intersect(e,r);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of l)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==s&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,o;const r=this.items[e];if(!r.row)if(t)r.row=t,r.stale=!0;else{const e=this.cache.alloc(r.templateId);r.row=e.row,r.stale||(r.stale=e.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(r.element);if("boolean"===typeof l)r.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const e=e=>r.row.domNode.setAttribute("aria-checked",String(!!e));e(l.value),r.checkedDisposable=l.onDidChange(e)}if(r.stale||!r.row.domNode.parentElement){const t=null!==(o=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==o?o:null;this.rowsContainer.insertBefore(r.row.domNode,t),r.stale=!1}this.updateItemInDOM(r,e);const d=this.renderers.get(r.templateId);if(!d)throw new Error(`No renderer found for template id ${r.templateId}`);null===d||void 0===d||d.renderElement(r.element,e,r.row.templateData,r.size);const h=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!h,h&&(r.dragStartDisposable=(0,s.nm)(r.row.domNode,"dragstart",(e=>this.onDragStart(r.element,h,e)))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,s.FK)(e.row.domNode);const t=(0,s.Jj)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return c.ju.filter(c.ju.map(this.disposables.add(new o.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return c.ju.any(c.ju.map(this.disposables.add(new o.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),c.ju.map(this.disposables.add(new o.Y(this.domNode,r.t.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return c.ju.map(this.disposables.add(new o.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return c.ju.map(this.disposables.add(new o.Y(this.rowsContainer,r.t.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var o,r;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),"undefined"===typeof e&&(e=String(a.length));const t=(0,s.$)(".monaco-drag-image");t.textContent=e;const n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>n.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new x(a),w.CurrentDragAndDropData=new L(a),null===(r=(o=this.dnd).onDragStart)||void 0===r||r.call(o,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),w.CurrentDragAndDropData&&"vscode-ui"===w.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(w.CurrentDragAndDropData)this.currentDragData=w.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new k}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let s;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",s="boolean"!==typeof n&&n.feedback?n.feedback:"undefined"===typeof e.index?[-1]:[e.index],s=(0,l.EB)(s).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),s=-1===s[0]?[-1]:s;let o="boolean"!==typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(r=this.currentDragFeedback,a=s,(Array.isArray(r)&&Array.isArray(a)?(0,l.fS)(r,a):r===a)&&this.currentDragFeedbackPosition===o)return!0;var r,a;if(this.currentDragFeedback=s,this.currentDragFeedbackPosition=o,this.currentDragFeedbackDisposable.dispose(),-1===s[0])this.domNode.classList.add(o),this.rowsContainer.classList.add(o),this.currentDragFeedbackDisposable=(0,u.OF)((()=>{this.domNode.classList.remove(o),this.rowsContainer.classList.remove(o)}));else{if(s.length>1&&"drop-target"!==o)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===o&&s[0]<this.length-1&&(s[0]+=1,o="drop-target-before");for(const e of s){const t=this.items[e];t.dropTarget=!0,null===(i=t.row)||void 0===i||i.domNode.classList.add(o)}this.currentDragFeedbackDisposable=(0,u.OF)((()=>{var e;for(const t of s){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(o)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.Vg)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,w.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,w.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,s.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.jt)((0,s.Jj)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return(0,C.uZ)(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let s,o;e===this.elementTop(n.start)?(s=n.start,o=0):n.end-n.start>1&&(s=n.start+1,o=this.elementTop(s)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),r+=t,l=l||0!==t}if(!l){0!==r&&this.eventuallyUpdateScrollDimensions();const t=g.e.relativeComplement(n,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const l=g.e.relativeComplement(a,n).reverse();for(const e of l)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof s){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,n=this.elementTop(s)-o+t;this.setScrollTop(n,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){var t,i,n;const o=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(o.element);if(null!==e){const t=o.size;return o.size=e,o.lastDynamicHeightWidth=this.renderWidth,e-t}}if(!o.hasDynamicHeight||o.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(o.element))return 0;const r=o.size;if(o.row)return o.row.domNode.style.height="",o.size=o.row.domNode.offsetHeight,0!==o.size||(0,s.jg)(o.row.domNode,(0,s.Jj)(o.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!"),o.lastDynamicHeightWidth=this.renderWidth,o.size-r;const{row:a}=this.cache.alloc(o.templateId);a.domNode.style.height="",this.rowsContainer.appendChild(a.domNode);const l=this.renderers.get(o.templateId);if(!l)throw new b.he("Missing renderer for templateId: "+o.templateId);return l.renderElement(o.element,e,a.templateData,void 0),o.size=a.domNode.offsetHeight,null===(t=l.disposeElement)||void 0===t||t.call(l,o.element,e,a.templateData,void 0),null===(n=(i=this.virtualDelegate).setDynamicHeight)||void 0===n||n.call(i,o.element,o.size),o.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(a.domNode),this.cache.release(a),o.size-r}getElementDomId(e){return`${this.domId}_${e}`}dispose(){var e,t;for(const i of this.items)if(i.dragStartDisposable.dispose(),i.checkedDisposable.dispose(),i.row){const t=this.renderers.get(i.row.templateId);t&&(null===(e=t.disposeElement)||void 0===e||e.call(t,i.element,-1,i.row.templateData,void 0),t.disposeTemplate(i.row.templateData))}this.items=[],this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),null===(t=this.dragOverAnimationDisposable)||void 0===t||t.dispose(),this.disposables.dispose()}}N.InstanceCount=0,y([h.H],N.prototype,"onMouseClick",null),y([h.H],N.prototype,"onMouseDblClick",null),y([h.H],N.prototype,"onMouseMiddleClick",null),y([h.H],N.prototype,"onMouseDown",null),y([h.H],N.prototype,"onMouseOver",null),y([h.H],N.prototype,"onMouseOut",null),y([h.H],N.prototype,"onContextMenu",null),y([h.H],N.prototype,"onTouchStart",null),y([h.H],N.prototype,"onTap",null)},69394:(e,t,i)=>{"use strict";i.d(t,{wD:()=>q,aV:()=>ee,sx:()=>K,AA:()=>C,dk:()=>R,iK:()=>F,cK:()=>T,$B:()=>A,hD:()=>M,wn:()=>j,Zo:()=>z,xf:()=>P,Et:()=>O,uZ:()=>$});var n=i(76595),s=i(24199),o=i(10381),r=i(68068),a=i(83945);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var d=i(51833),h=i(53372),c=i(63932),u=i(21150),g=i(39706),p=i(34835),m=i(53186),f=i(56155),_=i(90388),v=i(47624);i(40753);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var C,y,w=i(23252),S=i(65179),x=i(43704),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class k{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index<e?n.push(s):s.index>=e+t&&n.push({index:s.index+i-t,templateData:s.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class D{get name(){return this._trait}get renderer(){return new k(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,s=e+t,o=[];let r=0;for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]<e;)o.push(this.sortedIndexes[r++]);for(let a=0;a<i.length;a++)i[a]&&o.push(a+e);for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]>=s;)o.push(this.sortedIndexes[r++]+n);this.renderer.splice(e,t,i.length),this._set(o,o)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Z),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=Y(s,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,d.ry)(this.sortedIndexes,e,Z)>=0}dispose(){(0,m.B9)(this._onChange)}}L([u.H],D.prototype,"renderer",null);class N extends D{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class E{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=new Set(n),o=i.map((e=>s.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,o)}}function T(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function I(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&I(e.parentElement,t))}function M(e){return I(e,"monaco-editor")}function A(e){return I(e,"monaco-custom-toggle")}function R(e){return I(e,"action-item")}function O(e){return I(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class B{get onKeyDown(){return g.ju.chain(this.disposables.add(new s.Y(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!T(e.target))).map((e=>new o.y(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.SL,this.multipleSelectionDisposables=new m.SL,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.dz?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,d.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}L([u.H],B.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(C||(C={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(y||(y={}));const V=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class W{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=y.Idle,this.mode=C.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.SL,this.disposables=new m.SL,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:C.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.ju.chain(this.enabledDisposables.add(new s.Y(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!T(e.target))).filter((()=>this.mode===C.Automatic||this.triggered)).map((e=>new o.y(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.zB.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.ju.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.ju.reduce(g.ju.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));"string"===typeof i?(0,a.Z9)(i):i&&(0,a.Z9)(i.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=y.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===y.Idle?1:0;this.state=y.Typing;for(let s=0;s<this.list.length;s++){const t=(i+s+n)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),r=o&&o.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof r){if((0,p.Ji)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const n=(0,p.XU)(e,r);if(n){if(n[0].end-n[0].start>1&&1===n.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof r||(0,p.Ji)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class H{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.SL;const i=g.ju.chain(this.disposables.add(new s.Y(t.domNode,"keydown")).event,(e=>e.filter((e=>!T(e.target))).map((e=>new o.y(e)))));g.ju.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const s=i.querySelector("[tabIndex]");if(!s||!(s instanceof HTMLElement)||-1===s.tabIndex)return;const o=(0,n.Jj)(s).getComputedStyle(s);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),s.focus())}dispose(){this.disposables.dispose()}}function z(e){return _.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}const U={isSelectionSingleChangeEvent:z,isSelectionRangeChangeEvent:j};class K{constructor(e){this.list=e,this.disposables=new m.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){M(e.browserEvent.target)||(0,n.vY)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(T(e.browserEvent.target)||M(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(T(e.browserEvent.target)||M(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,n.N5)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(T(e.browserEvent.target)||M(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){const e=this.list.getFocus()[0];i=null!==e&&void 0!==e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),o=(0,d.w6)(n,s+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let s=i-1;for(;s>=0&&e[s]===t-(i-s);)n.push(e[s--]);n.reverse(),s=i;for(;s<e.length&&e[s]===t+(s-i);)n.push(e[s++]);return n}(Y(r,[i]),i);if(0===a.length)return;const l=Y(o,function(e,t){const i=[];let n=0,s=0;for(;n<e.length||s<t.length;)if(n>=e.length)i.push(t[s++]);else if(s>=t.length)i.push(e[n++]);else{if(e[n]===t[s]){n++,s++;continue}e[n]<t[s]?i.push(e[n++]):s++}return i}(r,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),n=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class q{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const s=this.selectorSuffix&&`.${this.selectorSuffix}`,o=[];e.listBackground&&o.push(`.monaco-list${s} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(o.push(`.monaco-list${s}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),o.push(`.monaco-list${s}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(o.push(`.monaco-list${s}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),o.push(`.monaco-list${s}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(o.push(`.monaco-list${s} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),o.push(`.monaco-list${s} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&o.push(`.monaco-list${s} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(o.push(`.monaco-list${s} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),o.push(`.monaco-list${s} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(o.push(`.monaco-list${s} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),o.push(`.monaco-list${s} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&o.push(`.monaco-list${s} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&o.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&o.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=(0,n.XT)(e.listFocusAndSelectionOutline,(0,n.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));r&&o.push(`.monaco-list${s}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${s}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.XT)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&o.push(`.monaco-list${s} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&o.push(`.monaco-list${s} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&o.push(`.monaco-list${s} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&o.push(`.monaco-list${s} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&o.push(`\n\t\t\t\t.monaco-list${s}.drop-target,\n\t\t\t\t.monaco-list${s} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${s} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(o.push(`\n\t\t\t.monaco-list${s} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${s} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),o.push(`\n\t\t\t.monaco-list${s} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${s} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&o.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&o.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=o.join("\n")}}const $={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:c.Il.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:c.Il.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:c.Il.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},G={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function Y(e,t){const i=[];let n=0,s=0;for(;n<e.length||s<t.length;)if(n>=e.length)i.push(t[s++]);else if(s>=t.length)i.push(e[n++]);else{if(e[n]===t[s]){i.push(e[n]),n++,s++;continue}e[n]<t[s]?i.push(e[n++]):i.push(t[s++])}return i}const Z=(e,t)=>e-t;class Q{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let s=0;for(const o of this.renderers)o.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let o=0;for(const r of this.renderers)null===(s=r.disposeElement)||void 0===s||s.call(r,e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class X{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.SL}}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e),s=n&&"string"!==typeof n?n:(0,x.Dz)(n);i.disposables.add((0,x.EH)((e=>{this.setAriaLabel(e.readObservable(s),i.container)})));const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?i.container.setAttribute("aria-level",`${o}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,n){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,s){return this.dnd.onDragOver(e,t,i,n,s)}onDragLeave(e,t,i,n){var s,o;null===(o=(s=this.dnd).onDragLeave)||void 0===o||o.call(s,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,s){this.dnd.drop(e,t,i,n,s)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.ju.chain(this.disposables.add(new s.Y(this.view.domNode,"keydown")).event,(t=>t.map((e=>new o.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.zB.stop(e,!0))).filter((()=>!1)))),i=g.ju.chain(this.disposables.add(new s.Y(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new o.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.zB.stop(e,!0))).map((e=>{let{browserEvent:t}=e;const i=this.getFocus(),n=i.length?i[0]:void 0;return{index:n,element:"undefined"!==typeof n?this.view.element(n):void 0,anchor:"undefined"!==typeof n?this.view.domElement(n):this.view.domNode,browserEvent:t}})))),r=g.ju.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((e=>{let{element:t,index:i,browserEvent:s}=e;return{element:t,index:i,anchor:new S.n((0,n.Jj)(this.view.domNode),s),browserEvent:s}}))));return g.ju.any(t,i,r)}get onKeyDown(){return this.disposables.add(new s.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new s.Y(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.ju.signal(this.disposables.add(new s.Y(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:G;var r,a,d,h;this.user=e,this._options=o,this.focus=new D("focused"),this.anchor=new D("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new m.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const c=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new N("listbox"!==c);const u=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(u.push(new X(this.accessibilityProvider)),null===(d=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===d||d.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),s=s.map((e=>new Q(e.templateId,[...u,e])));const p={...o,dnd:o.dnd&&new J(this,o.dnd)};if(this.view=this.createListView(t,i,s,p),this.view.domNode.setAttribute("role",c),o.styleController)this.styleController=o.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new q(e,this.view.domId)}if(this.spliceable=new l([new E(this.focus,this.view,o.identityProvider),new E(this.selection,this.view,o.identityProvider),new E(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new H(this,this.view)),("boolean"!==typeof o.keyboardSupport||o.keyboardSupport)&&(this.keyboardController=new B(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const e=o.keyboardNavigationDelegate||V;this.typeNavigationController=new W(this,this.view,o.keyboardNavigationLabelProvider,null!==(h=o.keyboardNavigationEventFilter)&&void 0!==h?h:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new w.Bv(e,t,i,n)}createMouseController(e){return new K(this)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,d.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if(0===this.length)return;const s=this.focus.get(),o=this.findNextIndex(s.length>0?s[0]+e:0,t,n);o>-1&&this.setFocus([o],i)}focusPrevious(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if(0===this.length)return;const s=this.focus.get(),o=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);o>-1&&this.setFocus([o],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let o=s+this.view.renderHeight;i>n&&(o-=this.view.elementHeight(i)),this.view.setScrollTop(o),this.view.getScrollTop()!==s&&(this.setFocus([]),await(0,h.Vs)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>0;const s=n(),o=this.view.getScrollTop()+s;i=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);const r=this.getFocus()[0];if(r!==i&&(void 0===r||r>=i)){const n=this.findNextIndex(i,!1,t);n>-1&&r!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const i=o;this.view.setScrollTop(o-this.view.renderHeight-s),this.view.getScrollTop()+n()!==i&&(this.setFocus([]),await(0,h.Vs)(0),await this.focusPreviousPage(e,t,n))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;for(let n=0;n<this.length;n++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;for(let n=0;n<this.length;n++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),s=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,v.hj)(t)){const e=o-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.uZ)(t,0,1)+s-i)}else{const e=s+o,t=n+this.view.renderHeight;s<n+i&&e>=t||(s<n+i||e>=t&&o>=this.view.renderHeight?this.view.setScrollTop(s-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(n<i+t||n+s>i+this.view.renderHeight)return null;const o=s-this.view.renderHeight+t;return Math.abs((i+t-n)/o)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent(e){let{indexes:t,browserEvent:i}=e;return{indexes:t,elements:t.map((e=>this.view.element(e))),browserEvent:i}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}L([u.H],ee.prototype,"onDidChangeFocus",null),L([u.H],ee.prototype,"onDidChangeSelection",null),L([u.H],ee.prototype,"onContextMenu",null),L([u.H],ee.prototype,"onKeyDown",null),L([u.H],ee.prototype,"onDidFocus",null),L([u.H],ee.prototype,"onDidBlur",null)},10173:(e,t,i)=>{"use strict";i.d(t,{f:()=>a});var n=i(76595),s=i(38571),o=i(39706),r=i(53186);class a{constructor(){let e;this._onDidWillResize=new o.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new o.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new r.SL,this._size=new n.Ro(0,0),this._minSize=new n.Ro(0,0),this._maxSize=new n.Ro(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new s.g(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new s.g(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new s.g(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:s.l.North}),this._southSash=new s.g(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:s.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(o.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(o.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(o.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(o.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.size.height,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size.width;const{height:i,width:s}=this._minSize,{height:o,width:r}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(s,Math.min(r,t));const a=new n.Ro(t,e);n.Ro.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},38571:(e,t,i)=>{"use strict";i.d(t,{l:()=>u,g:()=>b});var n=i(76595),s=i(24199),o=i(68068),r=i(53372),a=i(21150),l=i(39706),d=i(53186),h=i(90388),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new l.Q5;const p=new l.Q5;class m{constructor(e){this.el=e,this.disposables=new d.SL}get onPointerMove(){return this.disposables.add(new s.Y((0,n.Jj)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new s.Y((0,n.Jj)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}c([a.H],m.prototype,"onPointerMove",null),c([a.H],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new s.Y(this.el,o.t.Change)).event}get onPointerUp(){return this.disposables.add(new s.Y(this.el,o.t.End)).event}constructor(e){this.el=e,this.disposables=new d.SL}dispose(){this.disposables.dispose()}}c([a.H],f.prototype,"onPointerMove",null),c([a.H],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}c([a.H],_.prototype,"onPointerMove",null),c([a.H],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class b extends d.JT{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,d.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new s.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new s.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,d.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new s.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new s.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new r.vp(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.Q5),this._onDidStart=this._register(new l.Q5),this._onDidChange=this._register(new l.Q5),this._onDidReset=this._register(new l.Q5),this._onDidEnd=this._register(new l.Q5),this.orthogonalStartSashDisposables=this._register(new d.SL),this.orthogonalStartDragHandleDisposables=this._register(new d.SL),this.orthogonalEndSashDisposables=this._register(new d.SL),this.orthogonalEndDragHandleDisposables=this._register(new d.SL),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,n.R3)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.dz&&this.el.classList.add("mac");const a=this._register(new s.Y(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const c=this._register(new s.Y(this.el,"dblclick")).event;this._register(c(this.onPointerDoublePress,this));const u=this._register(new s.Y(this.el,"mouseenter")).event;this._register(u((()=>b.onMouseEnter(this))));const _=this._register(new s.Y(this.el,"mouseleave")).event;this._register(_((()=>b.onMouseLeave(this)))),this._register(o.o.addTarget(this.el));const v=this._register(new s.Y(this.el,o.t.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const C=this._register(new s.Y(this.el,o.t.Tap)).event;let y;this._register(C((e=>{if(y)return clearTimeout(y),y=void 0,void this.onPointerDoublePress(e);clearTimeout(y),y=setTimeout((()=>y=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}onPointerStart(e,t){n.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const s=this.el.ownerDocument.getElementsByTagName("iframe");for(const n of s)n.classList.add(v);const o=e.pageX,r=e.pageY,a=e.altKey,l={startX:o,currentX:o,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=(0,n.dS)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.dz?"col-resize":"ew-resize",c.textContent=`* { cursor: ${e} !important; }`},g=new d.SL;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{n.zB.stop(e,!1);const t={startX:o,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{n.zB.stop(e,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of s)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&b.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&b.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){b.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},24622:(e,t,i)=>{"use strict";i.d(t,{s$:()=>N,Io:()=>x,NB:()=>k,$Z:()=>D});var n=i(27748),s=i(76595),o=i(75816),r=i(65179),a=i(21406),l=i(7341),d=i(53372),h=i(73045);const c=11;class u extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.k.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a.C),this._register(s.mu(this.bgDomNode,s.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(s.mu(this.domNode,s.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new s.ne),this._pointerdownScheduleRepeatTimer=this._register(new d._F)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,s.Jj(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(53186);class p extends g.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new d._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(90388);class f extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a.C),this._shouldRender=!0,this.domNode=(0,o.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(s.nm(this.domNode.domNode,s.tw.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,o.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(s.nm(this.slider.domNode,s.tw.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=s.i(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const s=this._sliderOrthogonalPointerPosition(e),o=Math.abs(s-i);if(m.ED&&o>140)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(32657),v=i(61542);class b extends f{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,s.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-c)/2,i=(t.horizontalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v.l.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,1,0))}),this._createArrow({className:"scra",icon:v.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class C extends f{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-c)/2,i=(t.verticalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v.l.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,1))}),this._createArrow({className:"scra",icon:v.l.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var y=i(39706),w=i(91181);class S{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class x{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const s=n===this._front?e:Math.pow(2,-i);if(e-=s,t+=this._memory[n].score*s,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(n.i7){const t=s.Jj(e.browserEvent),i=(0,n.ie)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let n=null;const s=new S(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=s,this._front=0,this._rear=0):(n=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=s),s.score=this._computeScore(s,n)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const n=Math.abs(e.deltaX),s=Math.abs(e.deltaY),o=Math.abs(t.deltaX),r=Math.abs(t.deltaY),a=Math.max(Math.min(n,o),1),l=Math.max(Math.min(s,r),1),d=Math.max(n,o),h=Math.max(s,r);d%a===0&&h%l===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}x.INSTANCE=new x;class L extends l.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new y.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new y.Q5),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.dz&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new C(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new b(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,o.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,o.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,o.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new d._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new r.q(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.q(e))};this._mouseWheelToDispose.push(s.nm(this._listenOnDomNode,s.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=x.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,s=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&s+t===0?s=t=0:Math.abs(t)>=Math.abs(s)?s=0:t=0),this._options.flipAxes&&([t,s]=[s,t]);const o=!m.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||s||(s=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(s*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=50*t,i=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(s){const e=50*s,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let s=n;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",s=t?" top":"",o=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${o}${s}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class k extends L{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new w.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>s.jL(s.Jj(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class D extends L{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class N extends L{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new w.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>s.jL(s.Jj(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},32657:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e,t,i,n,s,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const o=Math.max(0,i-e),r=Math.max(0,o-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),d=(r-l)/(n-i),h=s*d;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=n._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},41090:(e,t,i)=>{"use strict";i.d(t,{M:()=>b,z:()=>C});var n=i(76595),s=i(24199),o=i(38571),r=i(24622),a=i(51833),l=i(63932),d=i(39706),h=i(53186),c=i(56155),u=i(91181),g=i(47624);const p={separatorBorder:l.Il.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,c.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(s){console.error("Splitview: Failed to set visible view"),console.error(s)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,b;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(b||(b={}));class C extends h.JT{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i,o,a,l,h;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new d.Q5),this._onDidSashReset=this._register(new d.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(o=t.inverseAltBehavior)&&void 0!==o&&o,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=this._register(new u.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,n.jL)((0,n.Jj)(this.el),e)})),this.scrollableElement=this._register(new r.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(h=t.scrollbarVisibility)&&void 0!==h?h:1:2},this.scrollable));const c=this._register(new s.Y(this.viewContainer,"scroll")).event;this._register(c((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.length,n=arguments.length>3?arguments[3]:void 0;this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){const n=this.viewItems[i],s=this.proportions[i];"number"===typeof s?t+=s:e-=n.size}for(let i=0;i<this.viewItems.length;i++){const n=this.viewItems[i],s=this.proportions[i];"number"===typeof s&&t>0&&(n.size=(0,c.uZ)(Math.round(s*e/t),n.minimumSize,n.maximumSize))}}else{const t=(0,a.w6)(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),s=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,s)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart(e){let{sash:t,start:i,alt:s}=e;for(const n of this.viewItems)n.enabled=!1;const o=this.sashItems.findIndex((e=>e.sash===t)),r=(0,h.F8)((0,n.nm)(this.el.ownerDocument.body,"keydown",(e=>l(this.sashDragState.current,e.altKey))),(0,n.nm)(this.el.ownerDocument.body,"keyup",(()=>l(this.sashDragState.current,!1)))),l=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,s,l=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(o===this.sashItems.length-1){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,d=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,d=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.w6)(o,-1),t=(0,a.w6)(o+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),d=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),c=Math.max(r,h),u=Math.min(d,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?c-t:c+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);s={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:d,alt:t,snapBefore:n,snapAfter:s,disposable:r}};l(i,s)}onSashChange(e){let{current:t}=e;const{index:i,start:n,sizes:s,alt:o,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:d}=this.sashDragState;this.sashDragState.current=t;const h=t-n,c=this.resize(i,h,s,void 0,void 0,r,a,l,d);if(o){const e=i===this.sashItems.length-1,t=this.viewItems.map((e=>e.size)),n=e?i:i+1,s=this.viewItems[n],o=s.size-s.maximumSize,r=s.size-s.minimumSize,a=e?i-1:i+1;this.resize(a,-c,t,void 0,void 0,o,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,c.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],s=i.filter((e=>2===this.viewItems[e].priority)),o=this.viewItems[e];t=Math.round(t),t=(0,c.uZ)(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(n,s)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const r of this.viewItems)r.maximumSize-r.minimumSize>0&&(e.push(r),t+=r.size);const i=Math.floor(t/e.length);for(const r of e)r.size=(0,c.uZ)(i,r.minimumSize,r.maximumSize);const n=(0,a.w6)(this.viewItems.length),s=n.filter((e=>1===this.viewItems[e].priority)),o=n.filter((e=>2===this.viewItems[e].priority));this.relayout(s,o)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.length,s=arguments.length>3?arguments[3]:void 0;if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const r=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),c=(0,h.OF)((()=>this.viewContainer.removeChild(r))),u=(0,h.F8)(l,c);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(r,e,g,u):new _(r,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new o.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new o.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=d.ju.map(t.onDidStart,n)(this.onSashStart,this),r=d.ju.map(t.onDidChange,n)(this.onSashChange,this),l=d.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),c=l(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.w6)(e,-1),n=(0,a.w6)(e+1,this.viewItems.length),s=this.findFirstSnapIndex(i),o=this.findFirstSnapIndex(n);("number"!==typeof s||this.viewItems[s].visible)&&("number"!==typeof o||this.viewItems[o].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.F8)(s,r,c,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;r.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),s||this.relayout([i],m),s||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.map((e=>e.size)),n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Number.NEGATIVE_INFINITY,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Number.POSITIVE_INFINITY,l=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0;if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.w6)(e,-1),u=(0,a.w6)(e+1,this.viewItems.length);if(s)for(const c of s)(0,a.zI)(h,c),(0,a.zI)(u,c);if(n)for(const c of n)(0,a.al)(h,c),(0,a.al)(u,c);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),y=Math.max(_,C,o),w=Math.min(b,v,r);let S=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;S=i!==e.visible,e.setVisible(i,l.size)}if(!S&&d){const e=this.viewItems[d.index],i=t<d.limitDelta;S=i!==e.visible,e.setVisible(i,d.size)}if(S)return this.resize(e,t,i,n,s,o,r);for(let a=0,x=t=(0,c.uZ)(t,y,w);a<g.length;a++){const e=g[a],t=(0,c.uZ)(p[a]+x,e.minimumSize,e.maximumSize);x-=t-p[a],e.size=t}for(let a=0,x=t;a<m.length;a++){const e=m[a],t=(0,c.uZ)(f[a]-x,e.minimumSize,e.maximumSize);x+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const n=(0,a.w6)(this.viewItems.length-1,-1),s=n.filter((e=>1===this.viewItems[e].priority)),o=n.filter((e=>2===this.viewItems[e].priority));for(const r of o)(0,a.zI)(n,r);for(const r of s)(0,a.al)(n,r);"number"===typeof e&&(0,a.al)(n,e);for(let r=0;0!==i&&r<n.length;r++){const e=this.viewItems[n[r]],t=(0,c.uZ)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const s=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const o=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let l=0;l<this.sashItems.length;l++){const{sash:e}=this.sashItems[l];r+=this.viewItems[l].size;const n=!(t[l]&&o[l+1]),d=!(i[l]&&s[l+1]);if(n&&d){const i=(0,a.w6)(l,-1),n=(0,a.w6)(l+1,this.viewItems.length),o=this.findFirstSnapIndex(i),d=this.findFirstSnapIndex(n),h="number"===typeof o&&!this.viewItems[o].visible,c="number"===typeof d&&!this.viewItems[d].visible;h&&s[l]&&(r>0||this.startSnappingEnabled)?e.state=1:c&&t[l]&&(r<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=n&&!d?1:!n&&d?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,h.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},81502:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d,D:()=>l});var n=i(7341),s=i(73045),o=i(39706),r=i(71371),a=i(97133);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class d extends n.${constructor(e){var t;super(),this._onChange=this._register(new o.Q5),this.onChange=this._onChange.event,this._onKeyDown=this._register(new o.Q5),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const i=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,i.push(...s.k.asClassNameArray(this._icon))),this._opts.actionClassName&&i.push(...this._opts.actionClassName.split(" ")),this._checked&&i.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,r.g)(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,a.tM)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...i),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},47213:(e,t,i)=>{"use strict";i.d(t,{CH:()=>$,cz:()=>D,E4:()=>n,Zd:()=>M,sZ:()=>I});var n,s=i(76595),o=(i(24199),i(10381)),r=(i(7144),i(22406),i(58799)),a=i(23252),l=i(69394),d=i(81502),h=i(5572),c=i(73337),u=(i(51828),i(51833)),g=i(53372),p=i(61542),m=i(73045),f=i(38079),_=i(39706),v=i(34835),b=i(53186),C=i(56155),y=i(47624),w=i(5887),S=(i(97133),i(43704));class x extends a.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function L(e){return e instanceof a.kX?new x(e):e}class k{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=b.JT.None,this.disposables=new b.SL}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,L(e),t)}onDragOver(e,t,i,n,s){let o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const r=this.dnd.onDragOver(L(e),t&&t.element,i,n,s),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return r;if(a&&"boolean"!==typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,g.Vg)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof r||!r.accept||"undefined"===typeof r.bubble||r.feedback){if(!o){return{accept:"boolean"===typeof r?r:r.accept,effect:"boolean"===typeof r?void 0:r.effect,feedback:[i]}}return r}if(1===r.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,s,!1)}const l=this.modelProvider(),d=l.getNodeLocation(t),h=l.getListIndex(d),c=l.getListRenderCount(d);return{...r,feedback:(0,u.w6)(h,h+c)}}drop(e,t,i,n,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(L(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class D{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(n||(n={}));class N{get elements(){return this._elements}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._elements=t,this.disposables=new b.SL,this.onDidChange=_.ju.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class E{constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=s,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=E.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=b.JT.None,this.disposables=new b.SL,this.templateId=e.templateId,this.updateOptions(o),_.ju.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(r=e.onDidChangeTwistieState)||void 0===r||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!==typeof e.indent){const t=(0,C.uZ)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==n.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new b.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,s.R3)(e,(0,s.$)(".monaco-tl-row")),i=(0,s.R3)(t,(0,s.$)(".monaco-tl-indent")),n=(0,s.R3)(t,(0,s.$)(".monaco-tl-twistie")),o=(0,s.R3)(t,(0,s.$)(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:n,indentGuidesDisposable:b.JT.None,templateData:r}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,o;i.indentGuidesDisposable.dispose(),null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,e,t,i.templateData,n),"number"===typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=E.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.k.asClassNameArray(p.l.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...m.k.asClassNameArray(p.l.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,s.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new b.SL,n=this.modelProvider();for(;;){const o=n.getNodeLocation(e),r=n.getParentNodeLocation(o);if(!r)break;const a=n.getNode(r),l=(0,s.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add((0,b.OF)((()=>this.renderedIndentGuides.delete(a,l)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const s=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):s&&t.add(i.getNode(s))}catch(s){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,b.B9)(this.disposables)}}E.DefaultIndent=8;class T{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new b.SL,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"===typeof n?n?1:0:(0,h.gB)(n)?(0,h.aG)(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.CL.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const o of s){const e=o&&o.toString();if("undefined"===typeof e)return{data:v.CL.Default,visibility:i};let t;if(this.tree.findMatchType===M.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.EW)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===s.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.CL.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,b.B9)(this.disposables)}}r.g4,d.D;var I,M;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(M||(M={}));class A{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var r,a;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this.options=o,this._pattern="",this.width=0,this._onDidChangeMode=new _.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.Q5,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.Q5,this._onDidChangeOpenState=new _.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new b.SL,this.disposables=new b.SL,this._mode=null!==(r=e.options.defaultFindMode)&&void 0!==r?r:I.Highlight,this._matchType=null!==(a=e.options.defaultFindMatchType)&&void 0!==a?a:M.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const s=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&s?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,w.NC)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.CL.isDefault(e.filterData))}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function R(e,t){return e.position===t.position&&O(e,t)}function O(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.fS)(this.stickyNodes,e.stickyNodes,R)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.fS)(this.stickyNodes,e.stickyNodes,O))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class F{constrainStickyScrollNodes(e,t,i){for(let n=0;n<e.length;n++){const s=e[n];if(s.position+s.height>i||n>=t)return e.slice(0,n)}return e}}class B extends b.JT{constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var r;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=s,this.maxWidgetViewRatio=.4;const a=this.validateStickySettings(o);this.stickyScrollMaxItemCount=a.stickyScrollMaxItemCount,this.stickyScrollDelegate=null!==(r=o.stickyScrollDelegate)&&void 0!==r?r:new F,this._widget=this._register(new V(i.getScrollableElement(),i,e,n,s,o.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,n=0,s=this.getNextStickyNode(i,void 0,n);for(;s&&(t.push(s),n+=s.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(s),i));)s=this.getNextStickyNode(i,s.node,n);const o=this.constrainStickyNodes(t);return o.length?new P(o):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),s=t;return this.view.scrollTop===n-s}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:s}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(s,t,i),height:i,startIndex:n,endIndex:s}}getAncestorUnderPrevious(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let n=this.view.getRelativeTop(e);if(null===n&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);n=i?i-t/this.view.renderHeight:null}if(null===n)return t;const s=this.view.element(e),o=this.treeDelegate.getHeight(s),r=n*this.view.renderHeight+o;return t+i>r&&t<=r?r-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];const s=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||s.position+s.height>t)throw new Error("stickyScrollDelegate violates constraints");return n}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let s=0;s<t.length&&s<this.stickyScrollMaxItemCount;s++)n+=this.treeDelegate.getHeight(t[s]);return n}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.stickyScrollMaxItemCount)return;const t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update())}validateStickySettings(e){let t=7;return"number"===typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t}}}class V{constructor(e,t,i,n,o,r){this.view=t,this.tree=i,this.treeRenderers=n,this.treeDelegate=o,this.accessibilityProvider=r,this._previousElements=[],this._previousStateDisposables=new b.SL,this._rootDomNode=(0,s.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,s.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const n=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${n.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const n=e.stickyNodes[i],{element:s,disposable:o}=this.createElement(n,i,e.count);t[i]=s,this._rootDomNode.appendChild(s),this._previousStateDisposables.add(o)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${n.position+n.height}px`}createElement(e,t,i){const n=e.startIndex,s=document.createElement("div");s.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(s.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(s.style.lineHeight=`${e.height}px`),s.classList.add("monaco-tree-sticky-row"),s.classList.add("monaco-list-row"),s.setAttribute("data-index",`${n}`),s.setAttribute("data-parity",n%2===0?"even":"odd"),s.setAttribute("id",this.view.getElementID(n));const o=this.setAccessibilityAttributes(s,e.node.element,t,i),r=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===r));if(!a)throw new Error(`No renderer found for template id ${r}`);let l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const d=a.renderTemplate(s);a.renderElement(l,e.startIndex,d,e.height);const h=(0,b.OF)((()=>{o.dispose(),a.disposeElement(l,e.startIndex,d,e.height),a.disposeTemplate(d),s.remove()}));return{element:s,disposable:h}}setAccessibilityAttributes(e,t,i,n){var s;if(!this.accessibilityProvider)return b.JT.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",null!==(s=this.accessibilityProvider.getRole(t))&&void 0!==s?s:"treeitem");const o=this.accessibilityProvider.getAriaLabel(t),r=o&&"string"!==typeof o?o:(0,S.Dz)(o),a=(0,S.EH)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof o||o&&e.setAttribute("aria-label",o.get());const l=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof l&&e.setAttribute("aria-level",`${l}`),e.setAttribute("aria-selected",String(!1)),a}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends b.JT{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new _.Q5,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.Q5,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",(()=>this.onFocus())),this.container.addEventListener("blur",(()=>this.onBlur())),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,l.xf)(t)&&!(0,l.Et)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,s.vd)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>{var i;return t.node.element===(null===(i=e.element)||void 0===i?void 0:i.element)}));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,n=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:n,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,l.xf)(t)||(0,l.Et)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,C.uZ)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],n=t.count>1?t.stickyNodes[t.count-2]:void 0,s=this.view.getElementTop(e),o=n?n.position+n.height+i.height:i.height;this.view.scrollTop=s-o}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function H(e){let t=c.sD.Unknown;return(0,s.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=c.sD.Twistie:(0,s.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=c.sD.Element:(0,s.uU)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=c.sD.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,l.xf)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function j(e,t){t(e),e.children.forEach((e=>j(e,t)))}class U{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new _.Q5,this.onDidChange=this._onDidChange.event}set(e,t){!(null===t||void 0===t?void 0:t.__forceEvent)&&(0,u.fS)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice(e){let{insertedNodes:t,deletedNodes:i}=e;if(!this.identityProvider){const e=this.createNodeSet(),t=t=>e.delete(t);return i.forEach((e=>j(e,t))),void this.set([...e.values()])}const n=new Set,s=e=>n.add(this.identityProvider.getId(e.element).toString());i.forEach((e=>j(e,s)));const o=new Map,r=e=>o.set(this.identityProvider.getId(e.element).toString(),e);t.forEach((e=>j(e,r)));const a=[];for(const l of this.nodes){const e=this.identityProvider.getId(l.element).toString();if(n.has(e)){const t=o.get(e);t&&t.visible&&a.push(t)}else a.push(l)}if(this.nodes.length>0&&0===a.length){const e=this.getFirstViewElementWithTrait();e&&a.push(e)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends l.sx{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.iK)(e.browserEvent.target)||(0,l.cK)(e.browserEvent.target)||(0,l.hD)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,s=(0,l.Et)(e.browserEvent.target);let o=!1;if(o=!!s||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),s)this.handleStickyScrollMouseEvent(e,t);else{if(o&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!s||n)){const i=this.tree.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,s),o&&n)return void(e.browserEvent.isHandledByList=!0)}s||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,l.$B)(e.browserEvent.target)||(0,l.dk)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),s=this.list.getElementTop(n),o=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=s-o,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,l.xf)(t)||(0,l.Et)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,l.xf)(t)||(0,l.Et)(t)||super.onContextMenu(e)}}class q extends l.aV{constructor(e,t,i,n,s,o,r,a){super(e,t,i,n,a),this.focusTrait=s,this.selectionTrait=o,this.anchorTrait=r}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(super.splice(e,t,i),0===i.length)return;const n=[],s=[];let o;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&s.push(e+i),this.anchorTrait.has(t)&&(o=e+i)})),n.length>0&&super.setFocus((0,u.EB)([...super.getFocus(),...n])),s.length>0&&super.setSelection((0,u.EB)([...super.getSelection(),...s])),"number"===typeof o&&super.setAnchor(o)}setFocus(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class ${get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return _.ju.filter(_.ju.map(this.view.onMouseDblClick,H),(e=>e.target!==c.sD.Filter))}get onMouseOver(){return _.ju.map(this.view.onMouseOver,H)}get onMouseOut(){return _.ju.map(this.view.onMouseOut,H)}get onContextMenu(){var e,t;return _.ju.any(_.ju.filter(_.ju.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.onContextMenu)&&void 0!==t?t:_.ju.None)}get onPointer(){return _.ju.map(this.view.onPointer,H)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.ju.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:M.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};var d;this._user=e,this._options=a,this.eventBufferer=new _.E7,this.onDidChangeFindOpenState=_.ju.None,this.onDidChangeStickyScrollFocused=_.ju.None,this.disposables=new b.SL,this._onWillRefilter=new _.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.Q5,this.treeDelegate=new D(i);const h=new _.ZD,c=new _.ZD,u=this.disposables.add(new N(c.event)),p=new f.ri;this.renderers=r.map((e=>new E(e,(()=>this.model),h.event,u,p,a)));for(const n of this.renderers)this.disposables.add(n);let m;var v,C;a.keyboardNavigationLabelProvider&&(m=new T(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:m},this.disposables.add(m)),this.focus=new U((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new U((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new U((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new q(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(v=()=>this.model,C=a,C&&{...C,identityProvider:C.identityProvider&&{getId:e=>C.identityProvider.getId(e.element)},dnd:C.dnd&&new k(v,C.dnd),multipleSelectionController:C.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>C.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>C.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:C.accessibilityProvider&&{...C.accessibilityProvider,getSetSize(e){const t=v(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:C.accessibilityProvider&&C.accessibilityProvider.isChecked?e=>C.accessibilityProvider.isChecked(e.element):void 0,getRole:C.accessibilityProvider&&C.accessibilityProvider.getRole?e=>C.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>C.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>C.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:C.accessibilityProvider&&C.accessibilityProvider.getWidgetRole?()=>C.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:C.accessibilityProvider&&C.accessibilityProvider.getAriaLevel?e=>C.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:C.accessibilityProvider.getActiveDescendantId&&(e=>C.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:C.keyboardNavigationLabelProvider&&{...C.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>C.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),h.input=this.model.onDidChangeCollapseState;const y=_.ju.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);y((()=>null),null,this.disposables);const w=this.disposables.add(new _.Q5),S=this.disposables.add(new g.vp(0));if(this.disposables.add(_.ju.any(y,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);w.fire([...e.values()])}))}))),c.input=w.event,!1!==a.keyboardSupport){const e=_.ju.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.cK)(e.target))).map((e=>new o.y(e)))));_.ju.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.ju.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.ju.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(d=a.findWidgetEnabled)||void 0===d||d)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new A(this,this.model,this.view,m,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.ju.None,this.onDidChangeFindMatchType=_.ju.None;a.enableStickyScroll&&(this.stickyScrollController=new B(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,s.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===n.Always)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===n.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new B(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.ju.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){var e;(null===(e=this.stickyScrollController)||void 0===e?void 0:e.focusedLast())?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,y.hj)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),e.listBackground&&(n.push(`.monaco-list${i} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${e.listBackground}; }`),n.push(`.monaco-list${i} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${e.listBackground}; }`)),e.listFocusForeground&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const o=(0,s.XT)(e.listFocusAndSelectionOutline,(0,s.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));o&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${o}; outline-offset: -1px;}`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=n.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,!0,t)}expand(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}))}focusNext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,s.vd)(i)&&i.altKey?void 0:this.focusNavigationFilter;this.view.focusNext(e,t,i,n)}focusPrevious(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,s.vd)(i)&&i.altKey?void 0:this.focusNavigationFilter;this.view.focusPrevious(e,t,i,n)}focusNextPage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.vd)(e)&&e.altKey?void 0:this.focusNavigationFilter;return this.view.focusNextPage(e,t)}focusPreviousPage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.vd)(e)&&e.altKey?void 0:this.focusNavigationFilter;return this.view.focusPreviousPage(e,t,(()=>{var e,t;return null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.height)&&void 0!==t?t:0}))}focusFirst(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.vd)(e)&&e.altKey?void 0:this.focusNavigationFilter;this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){var e;(0,b.B9)(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}},5572:(e,t,i)=>{"use strict";i.d(t,{X:()=>g,aG:()=>c,gB:()=>h});var n=i(73337),s=i(51833),o=i(53372),r=i(76294),a=i(1794),l=i(39706),d=i(2706);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function c(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var s;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new l.E7,this._onDidChangeCollapseState=new l.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new o.vp(r.n),this.collapseByDefault="undefined"!==typeof n.collapseByDefault&&n.collapseByDefault,this.allowNonCollapsibleParents=null!==(s=n.allowNonCollapsibleParents)&&void 0!==s&&s,this.filter=n.filter,this.autoExpandSingleChildren="undefined"!==typeof n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.$.empty(),s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0===e.length)throw new n.ac(this.user,"Invalid tree location");s.diffIdentityProvider?this.spliceSmart(s.diffIdentityProvider,e,t,i,s):this.spliceSimple(e,t,i,s)}spliceSmart(e,t,i,n,s,o){var r;void 0===n&&(n=d.$.empty()),void 0===o&&(o=null!==(r=s.diffDepth)&&void 0!==r?r:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const h=[...n],c=t[t.length-1],u=new a.Hs({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,c),...h,...l.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(u.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,h,s);const g=t.slice(0,-1),p=(t,i,n)=>{if(o>0)for(let r=0;r<n;r++)t--,i--,this.spliceSmart(e,[...g,t,0],Number.MAX_SAFE_INTEGER,h[i].children,s,o-1)};let m=Math.min(l.children.length,c+i),f=h.length;for(const a of u.changes.sort(((e,t)=>t.originalStart-e.originalStart)))p(m,f,m-(a.originalStart+a.originalLength)),m=a.originalStart,f=a.modifiedStart-c,this.spliceSimple([...g,m],a.originalLength,d.$.slice(h,f,f+a.modifiedLength),s);p(m,f,m)}spliceSimple(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.$.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:r}=arguments.length>3?arguments[3]:void 0;const{parentNode:a,listIndex:l,revealed:h,visible:c}=this.getParentNodeWithListIndex(e),u=[],g=d.$.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,n))),p=e[e.length-1];let m=0;for(let s=p;s>=0&&s<a.children.length;s--){const e=a.children[s];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const s of g)f.push(s),v+=s.renderNodeCount,s.visible&&(s.visibleChildIndex=m+_++);const b=(0,s.db)(a.children,p,t,f);r?a.lastDiffIds?(0,s.db)(a.lastDiffIds,p,t,f.map((e=>r.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>r.getId(e.element).toString())):a.lastDiffIds=void 0;let C=0;for(const s of b)s.visible&&C++;if(0!==C)for(let s=p+f.length;s<a.children.length;s++){const e=a.children[s];e.visible&&(e.visibleChildIndex-=C)}if(a.visibleChildrenCount+=_-C,h&&c){const e=b.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,u)}if(b.length>0&&o){const e=t=>{o(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:b});let y=a;for(;y;){if(2===y.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}y=y.parent}}rerender(e){if(0===e.length)throw new n.ac(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:s}=this.getTreeNodeWithListIndex(e);t.visible&&s&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&o&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(n>-1){n=-1;break}n=e}}n>-1&&this._setCollapseState([...e,n],t)}return o}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const o=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=o-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(u(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,o){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&s.push(r);const l=e.children||d.$.empty(),h=n&&0!==a&&!r.collapsed;let c=0,u=1;for(const d of l){const e=this.createTreeNode(d,r,a,h,s,o);r.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=c++)}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=c,r.visible=2===a?c>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=u):(r.renderNodeCount=0,n&&s.pop()),null===o||void 0===o||o(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i){let n,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const o=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const o of e.children)r=this._updateNodeAfterFilterChange(o,n,i,s&&!e.collapsed)||r,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?r:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-o):(e.renderNodeCount=0,s&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,c(i.visibility)):(e.filterData=void 0,c(i))}hasTreeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root;if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root;if(!e||0===e.length)return t;const[i,...s]=e;if(i<0||i>t.children.length)throw new n.ac(this.user,"Invalid tree location");return this.getTreeNode(s,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:s,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new n.ac(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:s,visible:o&&a.visible}}getParentNodeWithListIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const[r,...a]=e;if(r<0||r>t.children.length)throw new n.ac(this.user,"Invalid tree location");for(let n=0;n<r;n++)i+=t.children[n].renderNodeCount;return s=s&&!t.collapsed,o=o&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:s,visible:o}:this.getParentNodeWithListIndex(a,t.children[r],i+1,s,o)}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.getTreeNode(e)}getNodeLocation(e){const t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,s.JH)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},73337:(e,t,i)=>{"use strict";var n,s;i.d(t,{VA:()=>r,ac:()=>o,kn:()=>n,sD:()=>s}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(n||(n={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(s||(s={}));class o extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class r{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},7341:(e,t,i)=>{"use strict";i.d(t,{$:()=>l});var n=i(76595),s=i(10381),o=i(65179),r=i(68068),a=i(53186);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(i=>t(new o.n(n.Jj(e),i)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(i=>t(new o.n(n.Jj(e),i)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(i=>t(new o.n(n.Jj(e),i)))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,(i=>t(new o.n(n.Jj(e),i)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new s.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new s.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){return r.o.ignoreTarget(e)}}},11801:(e,t,i)=>{"use strict";function n(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{E:()=>s,H:()=>n});const s=window},51828:(e,t,i)=>{"use strict";i.d(t,{Wi:()=>a,Z0:()=>l,aU:()=>r,eZ:()=>h,wY:()=>d,xw:()=>c});var n=i(39706),s=i(53186),o=i(5887);class r extends s.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends s.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(){let e=[];for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];for(const s of i)s.length&&(e=e.length?[...e,new l,...s]:s);return e}async run(){}}l.ID="vs.actions.separator";class d{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class h extends r{constructor(){super(h.ID,o.NC("submenu.empty","(empty)"),void 0,!1)}}function c(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async function(){return e.run(...arguments)},tooltip:e.label}}h.ID="vs.actions.empty"},51833:(e,t,i)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[e.length-(1+t)]}function s(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,s=e.length;n<s;n++)if(!i(e[n],t[n]))return!1;return!0}function r(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,n=e-1;for(;i<=n;){const e=(i+n)/2|0,s=t(e);if(s<0)i=e+1;else{if(!(s>0))return e;n=e-1}}return-(i+1)}(e.length,(n=>i(e[n],t)))}function l(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],s=[],o=[],r=[];for(const a of t){const e=i(a,n);e<0?s.push(a):e>0?o.push(a):r.push(a)}return e<s.length?l(e,s,i):e<s.length+r.length?r[0]:l(e-(s.length+r.length),o,i)}function d(e,t){const i=[];let n;for(const s of e.slice(0).sort(t))n&&0===t(n[0],s)?n.push(s):(n=[s],i.push(n));return i}function*h(e,t){let i,n;for(const s of e)void 0!==n&&t(n,s)?i.push(s):(i&&(yield i),i=[s]),n=s;i&&(yield i)}function c(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function v(e,t){return e.length>0?e[0]:t}function b(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let s=i;s<t;s++)n.push(s);else for(let s=i;s>t;s--)n.push(s);return n}function C(e,t,i){const n=e.slice(0,t),s=e.slice(t);return n.concat(i,s)}function y(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function w(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function S(e,t){for(const i of t)e.push(i)}function x(e){return Array.isArray(e)?e:[e]}function L(e,t,i,n){const s=k(e,t);let o=e.splice(s,i);return void 0===o&&(o=[]),function(e,t,i){const n=k(e,t),s=e.length,o=i.length;e.length=s+o;for(let r=s-1;r>=n;r--)e[r+o]=e[r];for(let r=0;r<o;r++)e[r+n]=i[r]}(e,s,n),o}function k(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var D;function N(e,t){return(i,n)=>t(e(i),e(n))}function E(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(e,i)=>{for(const n of t){const t=n(e,i);if(!D.isNeitherLessOrGreaterThan(t))return t}return D.neitherLessOrGreaterThan}}i.d(t,{BV:()=>M,EB:()=>_,Gb:()=>n,H9:()=>A,HW:()=>l,JH:()=>s,KO:()=>u,LS:()=>r,Of:()=>f,Rs:()=>p,W$:()=>R,XY:()=>m,Xh:()=>v,Zv:()=>C,_2:()=>x,_i:()=>O,al:()=>w,db:()=>L,fS:()=>o,f_:()=>E,fv:()=>T,kX:()=>g,mw:()=>h,nW:()=>I,ry:()=>a,tT:()=>N,vA:()=>S,vM:()=>d,w6:()=>b,zI:()=>y,zy:()=>c}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(D||(D={}));const T=(e,t)=>e-t,I=(e,t)=>T(e?1:0,t?1:0);function M(e){return(t,i)=>-e(t,i)}class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class R{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new R((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new R((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||D.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}R.empty=new R((e=>{}));class O{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,n)=>t(e[i],e[n])));return new O(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new O(e)}}},91206:(e,t,i)=>{"use strict";function n(e,t,i){const n=function(e,t){for(let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function s(e,t){const i=o(e,t);return-1===i?void 0:e[i]}function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;for(;i<n;){const s=Math.floor((i+n)/2);t(e[s])?i=s+1:n=s}return i-1}function r(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;for(;i<n;){const s=Math.floor((i+n)/2);t(e[s])?n=s:i=s+1}return i}i.d(t,{Fr:()=>g,J_:()=>a,Jw:()=>o,Ph:()=>c,b1:()=>l,cn:()=>r,dF:()=>n,dI:()=>d,jV:()=>h,tQ:()=>u,ti:()=>s});class l{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=o(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){const s=e[n];t(s,i)>0&&(i=s)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){const s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return d(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n<e.length;n++){t(e[n],e[i])>0&&(i=n)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}l.assertInvariants=!1},56702:(e,t,i)=>{"use strict";i.d(t,{DM:()=>l,eZ:()=>a,ok:()=>s,vE:()=>o,wN:()=>r});var n=i(16015);function s(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function o(e){throw new Error(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unreachable")}function r(e){e||(0,n.dL)(new n.he("Soft Assertion Failed"))}function a(e){e()||(e(),(0,n.dL)(new n.he("Assertion Failed")))}function l(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},53372:(e,t,i)=>{"use strict";i.d(t,{Aq:()=>D,CR:()=>L,J8:()=>d,PG:()=>h,Ps:()=>_,R5:()=>x,Vg:()=>f,Vs:()=>m,_F:()=>v,eP:()=>c,hF:()=>S,jT:()=>k,jg:()=>y,pY:()=>C,rH:()=>p,vp:()=>g,y5:()=>w,zS:()=>E,zh:()=>b});var n=i(76946),s=i(16015),o=i(39706),r=i(53186),a=i(90388),l=i(76294);function d(e){return!!e&&"function"===typeof e.then}function h(e){const t=new n.A,i=e(t.token),o=new Promise(((e,n)=>{const o=t.token.onCancellationRequested((()=>{o.dispose(),n(new s.FU)}));Promise.resolve(i).then((i=>{o.dispose(),t.dispose(),e(i)}),(e=>{o.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}function c(e,t,i){return new Promise(((n,s)=>{const o=t.onCancellationRequested((()=>{o.dispose(),n(i)}));e.then(n,s).finally((()=>o.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultDelay;this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.n?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}})(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new s.FU),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,n)=>{const o=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(o),r.dispose(),n(new s.FU)}))})):h((t=>m(e,t)))}function f(e){let t=arguments.length>2?arguments[2]:void 0;const i=setTimeout((()=>{e(),t&&n.dispose()}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=(0,r.OF)((()=>{clearTimeout(i),null===t||void 0===t||t.deleteAndLeak(n)}));return null===t||void 0===t||t.add(n),n}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>!!e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=0;const s=e.length,o=()=>{if(n>=s)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):o()))};return o()}class v{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class b{constructor(){this.disposable=void 0}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis;this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=(0,r.OF)((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel()}}class C{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let y,w;w="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a.fn)((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let s=!1;return{dispose(){s||(s=!0,e.cancelIdleCallback(n))}}},y=e=>w(globalThis,e);class S{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=w(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class x extends S{constructor(e){super(globalThis,e)}}class L{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new s.FU)}}var k;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(n){i(n)}}))}}(k||(k={}));class D{static fromArray(e){return new D((t=>{t.emitMany(e)}))}static fromPromise(e){return new D((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new D((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new D((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new o.Q5,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await o.ju.toPromise(this._onStateChanged.event)}}}}static map(e,t){return new D((async i=>{for await(const n of e)i.emitOne(t(n))}))}map(e){return D.map(this,e)}static filter(e,t){return new D((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return D.filter(this,e)}static coalesce(e){return D.filter(e,(e=>!!e))}coalesce(){return D.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return D.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}D.EMPTY=D.fromArray([]);class N extends D{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function E(e){const t=new n.A,i=e(t.token);return new N(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new s.FU)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(o){n.dispose(),t.dispose(),e.reject(o)}}))}},9730:(e,t,i)=>{"use strict";i.d(t,{Ag:()=>d,Cg:()=>u,KN:()=>r,Q$:()=>c,T4:()=>h,mP:()=>a,oq:()=>l});var n=i(20447);const s="undefined"!==typeof Buffer;new n.o((()=>new Uint8Array(256)));let o;class r{static wrap(e){return s&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return s?this.buffer.toString():(o||(o=new TextDecoder),o.decode(this.buffer))}}function a(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function d(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function c(e,t){return e[t]}function u(e,t,i){e[i]=t}},40084:(e,t,i)=>{"use strict";i.d(t,{b:()=>s,t:()=>n});class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify;this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},76946:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,T:()=>o});var n=i(39706);const s=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof r||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s})}(o||(o={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=o.Cancelled}dispose(){var e;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.cancel(),null===(e=this._parentListener)||void 0===e||e.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=o.None}}},61542:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(87487);const s={...{add:(0,n.z)("add",6e4),plus:(0,n.z)("plus",6e4),gistNew:(0,n.z)("gist-new",6e4),repoCreate:(0,n.z)("repo-create",6e4),lightbulb:(0,n.z)("lightbulb",60001),lightBulb:(0,n.z)("light-bulb",60001),repo:(0,n.z)("repo",60002),repoDelete:(0,n.z)("repo-delete",60002),gistFork:(0,n.z)("gist-fork",60003),repoForked:(0,n.z)("repo-forked",60003),gitPullRequest:(0,n.z)("git-pull-request",60004),gitPullRequestAbandoned:(0,n.z)("git-pull-request-abandoned",60004),recordKeys:(0,n.z)("record-keys",60005),keyboard:(0,n.z)("keyboard",60005),tag:(0,n.z)("tag",60006),gitPullRequestLabel:(0,n.z)("git-pull-request-label",60006),tagAdd:(0,n.z)("tag-add",60006),tagRemove:(0,n.z)("tag-remove",60006),person:(0,n.z)("person",60007),personFollow:(0,n.z)("person-follow",60007),personOutline:(0,n.z)("person-outline",60007),personFilled:(0,n.z)("person-filled",60007),gitBranch:(0,n.z)("git-branch",60008),gitBranchCreate:(0,n.z)("git-branch-create",60008),gitBranchDelete:(0,n.z)("git-branch-delete",60008),sourceControl:(0,n.z)("source-control",60008),mirror:(0,n.z)("mirror",60009),mirrorPublic:(0,n.z)("mirror-public",60009),star:(0,n.z)("star",60010),starAdd:(0,n.z)("star-add",60010),starDelete:(0,n.z)("star-delete",60010),starEmpty:(0,n.z)("star-empty",60010),comment:(0,n.z)("comment",60011),commentAdd:(0,n.z)("comment-add",60011),alert:(0,n.z)("alert",60012),warning:(0,n.z)("warning",60012),search:(0,n.z)("search",60013),searchSave:(0,n.z)("search-save",60013),logOut:(0,n.z)("log-out",60014),signOut:(0,n.z)("sign-out",60014),logIn:(0,n.z)("log-in",60015),signIn:(0,n.z)("sign-in",60015),eye:(0,n.z)("eye",60016),eyeUnwatch:(0,n.z)("eye-unwatch",60016),eyeWatch:(0,n.z)("eye-watch",60016),circleFilled:(0,n.z)("circle-filled",60017),primitiveDot:(0,n.z)("primitive-dot",60017),closeDirty:(0,n.z)("close-dirty",60017),debugBreakpoint:(0,n.z)("debug-breakpoint",60017),debugBreakpointDisabled:(0,n.z)("debug-breakpoint-disabled",60017),debugHint:(0,n.z)("debug-hint",60017),terminalDecorationSuccess:(0,n.z)("terminal-decoration-success",60017),primitiveSquare:(0,n.z)("primitive-square",60018),edit:(0,n.z)("edit",60019),pencil:(0,n.z)("pencil",60019),info:(0,n.z)("info",60020),issueOpened:(0,n.z)("issue-opened",60020),gistPrivate:(0,n.z)("gist-private",60021),gitForkPrivate:(0,n.z)("git-fork-private",60021),lock:(0,n.z)("lock",60021),mirrorPrivate:(0,n.z)("mirror-private",60021),close:(0,n.z)("close",60022),removeClose:(0,n.z)("remove-close",60022),x:(0,n.z)("x",60022),repoSync:(0,n.z)("repo-sync",60023),sync:(0,n.z)("sync",60023),clone:(0,n.z)("clone",60024),desktopDownload:(0,n.z)("desktop-download",60024),beaker:(0,n.z)("beaker",60025),microscope:(0,n.z)("microscope",60025),vm:(0,n.z)("vm",60026),deviceDesktop:(0,n.z)("device-desktop",60026),file:(0,n.z)("file",60027),fileText:(0,n.z)("file-text",60027),more:(0,n.z)("more",60028),ellipsis:(0,n.z)("ellipsis",60028),kebabHorizontal:(0,n.z)("kebab-horizontal",60028),mailReply:(0,n.z)("mail-reply",60029),reply:(0,n.z)("reply",60029),organization:(0,n.z)("organization",60030),organizationFilled:(0,n.z)("organization-filled",60030),organizationOutline:(0,n.z)("organization-outline",60030),newFile:(0,n.z)("new-file",60031),fileAdd:(0,n.z)("file-add",60031),newFolder:(0,n.z)("new-folder",60032),fileDirectoryCreate:(0,n.z)("file-directory-create",60032),trash:(0,n.z)("trash",60033),trashcan:(0,n.z)("trashcan",60033),history:(0,n.z)("history",60034),clock:(0,n.z)("clock",60034),folder:(0,n.z)("folder",60035),fileDirectory:(0,n.z)("file-directory",60035),symbolFolder:(0,n.z)("symbol-folder",60035),logoGithub:(0,n.z)("logo-github",60036),markGithub:(0,n.z)("mark-github",60036),github:(0,n.z)("github",60036),terminal:(0,n.z)("terminal",60037),console:(0,n.z)("console",60037),repl:(0,n.z)("repl",60037),zap:(0,n.z)("zap",60038),symbolEvent:(0,n.z)("symbol-event",60038),error:(0,n.z)("error",60039),stop:(0,n.z)("stop",60039),variable:(0,n.z)("variable",60040),symbolVariable:(0,n.z)("symbol-variable",60040),array:(0,n.z)("array",60042),symbolArray:(0,n.z)("symbol-array",60042),symbolModule:(0,n.z)("symbol-module",60043),symbolPackage:(0,n.z)("symbol-package",60043),symbolNamespace:(0,n.z)("symbol-namespace",60043),symbolObject:(0,n.z)("symbol-object",60043),symbolMethod:(0,n.z)("symbol-method",60044),symbolFunction:(0,n.z)("symbol-function",60044),symbolConstructor:(0,n.z)("symbol-constructor",60044),symbolBoolean:(0,n.z)("symbol-boolean",60047),symbolNull:(0,n.z)("symbol-null",60047),symbolNumeric:(0,n.z)("symbol-numeric",60048),symbolNumber:(0,n.z)("symbol-number",60048),symbolStructure:(0,n.z)("symbol-structure",60049),symbolStruct:(0,n.z)("symbol-struct",60049),symbolParameter:(0,n.z)("symbol-parameter",60050),symbolTypeParameter:(0,n.z)("symbol-type-parameter",60050),symbolKey:(0,n.z)("symbol-key",60051),symbolText:(0,n.z)("symbol-text",60051),symbolReference:(0,n.z)("symbol-reference",60052),goToFile:(0,n.z)("go-to-file",60052),symbolEnum:(0,n.z)("symbol-enum",60053),symbolValue:(0,n.z)("symbol-value",60053),symbolRuler:(0,n.z)("symbol-ruler",60054),symbolUnit:(0,n.z)("symbol-unit",60054),activateBreakpoints:(0,n.z)("activate-breakpoints",60055),archive:(0,n.z)("archive",60056),arrowBoth:(0,n.z)("arrow-both",60057),arrowDown:(0,n.z)("arrow-down",60058),arrowLeft:(0,n.z)("arrow-left",60059),arrowRight:(0,n.z)("arrow-right",60060),arrowSmallDown:(0,n.z)("arrow-small-down",60061),arrowSmallLeft:(0,n.z)("arrow-small-left",60062),arrowSmallRight:(0,n.z)("arrow-small-right",60063),arrowSmallUp:(0,n.z)("arrow-small-up",60064),arrowUp:(0,n.z)("arrow-up",60065),bell:(0,n.z)("bell",60066),bold:(0,n.z)("bold",60067),book:(0,n.z)("book",60068),bookmark:(0,n.z)("bookmark",60069),debugBreakpointConditionalUnverified:(0,n.z)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,n.z)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,n.z)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,n.z)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,n.z)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,n.z)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,n.z)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,n.z)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,n.z)("debug-breakpoint-log-disabled",60075),briefcase:(0,n.z)("briefcase",60076),broadcast:(0,n.z)("broadcast",60077),browser:(0,n.z)("browser",60078),bug:(0,n.z)("bug",60079),calendar:(0,n.z)("calendar",60080),caseSensitive:(0,n.z)("case-sensitive",60081),check:(0,n.z)("check",60082),checklist:(0,n.z)("checklist",60083),chevronDown:(0,n.z)("chevron-down",60084),chevronLeft:(0,n.z)("chevron-left",60085),chevronRight:(0,n.z)("chevron-right",60086),chevronUp:(0,n.z)("chevron-up",60087),chromeClose:(0,n.z)("chrome-close",60088),chromeMaximize:(0,n.z)("chrome-maximize",60089),chromeMinimize:(0,n.z)("chrome-minimize",60090),chromeRestore:(0,n.z)("chrome-restore",60091),circleOutline:(0,n.z)("circle-outline",60092),circle:(0,n.z)("circle",60092),debugBreakpointUnverified:(0,n.z)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,n.z)("terminal-decoration-incomplete",60092),circleSlash:(0,n.z)("circle-slash",60093),circuitBoard:(0,n.z)("circuit-board",60094),clearAll:(0,n.z)("clear-all",60095),clippy:(0,n.z)("clippy",60096),closeAll:(0,n.z)("close-all",60097),cloudDownload:(0,n.z)("cloud-download",60098),cloudUpload:(0,n.z)("cloud-upload",60099),code:(0,n.z)("code",60100),collapseAll:(0,n.z)("collapse-all",60101),colorMode:(0,n.z)("color-mode",60102),commentDiscussion:(0,n.z)("comment-discussion",60103),creditCard:(0,n.z)("credit-card",60105),dash:(0,n.z)("dash",60108),dashboard:(0,n.z)("dashboard",60109),database:(0,n.z)("database",60110),debugContinue:(0,n.z)("debug-continue",60111),debugDisconnect:(0,n.z)("debug-disconnect",60112),debugPause:(0,n.z)("debug-pause",60113),debugRestart:(0,n.z)("debug-restart",60114),debugStart:(0,n.z)("debug-start",60115),debugStepInto:(0,n.z)("debug-step-into",60116),debugStepOut:(0,n.z)("debug-step-out",60117),debugStepOver:(0,n.z)("debug-step-over",60118),debugStop:(0,n.z)("debug-stop",60119),debug:(0,n.z)("debug",60120),deviceCameraVideo:(0,n.z)("device-camera-video",60121),deviceCamera:(0,n.z)("device-camera",60122),deviceMobile:(0,n.z)("device-mobile",60123),diffAdded:(0,n.z)("diff-added",60124),diffIgnored:(0,n.z)("diff-ignored",60125),diffModified:(0,n.z)("diff-modified",60126),diffRemoved:(0,n.z)("diff-removed",60127),diffRenamed:(0,n.z)("diff-renamed",60128),diff:(0,n.z)("diff",60129),diffSidebyside:(0,n.z)("diff-sidebyside",60129),discard:(0,n.z)("discard",60130),editorLayout:(0,n.z)("editor-layout",60131),emptyWindow:(0,n.z)("empty-window",60132),exclude:(0,n.z)("exclude",60133),extensions:(0,n.z)("extensions",60134),eyeClosed:(0,n.z)("eye-closed",60135),fileBinary:(0,n.z)("file-binary",60136),fileCode:(0,n.z)("file-code",60137),fileMedia:(0,n.z)("file-media",60138),filePdf:(0,n.z)("file-pdf",60139),fileSubmodule:(0,n.z)("file-submodule",60140),fileSymlinkDirectory:(0,n.z)("file-symlink-directory",60141),fileSymlinkFile:(0,n.z)("file-symlink-file",60142),fileZip:(0,n.z)("file-zip",60143),files:(0,n.z)("files",60144),filter:(0,n.z)("filter",60145),flame:(0,n.z)("flame",60146),foldDown:(0,n.z)("fold-down",60147),foldUp:(0,n.z)("fold-up",60148),fold:(0,n.z)("fold",60149),folderActive:(0,n.z)("folder-active",60150),folderOpened:(0,n.z)("folder-opened",60151),gear:(0,n.z)("gear",60152),gift:(0,n.z)("gift",60153),gistSecret:(0,n.z)("gist-secret",60154),gist:(0,n.z)("gist",60155),gitCommit:(0,n.z)("git-commit",60156),gitCompare:(0,n.z)("git-compare",60157),compareChanges:(0,n.z)("compare-changes",60157),gitMerge:(0,n.z)("git-merge",60158),githubAction:(0,n.z)("github-action",60159),githubAlt:(0,n.z)("github-alt",60160),globe:(0,n.z)("globe",60161),grabber:(0,n.z)("grabber",60162),graph:(0,n.z)("graph",60163),gripper:(0,n.z)("gripper",60164),heart:(0,n.z)("heart",60165),home:(0,n.z)("home",60166),horizontalRule:(0,n.z)("horizontal-rule",60167),hubot:(0,n.z)("hubot",60168),inbox:(0,n.z)("inbox",60169),issueReopened:(0,n.z)("issue-reopened",60171),issues:(0,n.z)("issues",60172),italic:(0,n.z)("italic",60173),jersey:(0,n.z)("jersey",60174),json:(0,n.z)("json",60175),kebabVertical:(0,n.z)("kebab-vertical",60176),key:(0,n.z)("key",60177),law:(0,n.z)("law",60178),lightbulbAutofix:(0,n.z)("lightbulb-autofix",60179),linkExternal:(0,n.z)("link-external",60180),link:(0,n.z)("link",60181),listOrdered:(0,n.z)("list-ordered",60182),listUnordered:(0,n.z)("list-unordered",60183),liveShare:(0,n.z)("live-share",60184),loading:(0,n.z)("loading",60185),location:(0,n.z)("location",60186),mailRead:(0,n.z)("mail-read",60187),mail:(0,n.z)("mail",60188),markdown:(0,n.z)("markdown",60189),megaphone:(0,n.z)("megaphone",60190),mention:(0,n.z)("mention",60191),milestone:(0,n.z)("milestone",60192),gitPullRequestMilestone:(0,n.z)("git-pull-request-milestone",60192),mortarBoard:(0,n.z)("mortar-board",60193),move:(0,n.z)("move",60194),multipleWindows:(0,n.z)("multiple-windows",60195),mute:(0,n.z)("mute",60196),noNewline:(0,n.z)("no-newline",60197),note:(0,n.z)("note",60198),octoface:(0,n.z)("octoface",60199),openPreview:(0,n.z)("open-preview",60200),package:(0,n.z)("package",60201),paintcan:(0,n.z)("paintcan",60202),pin:(0,n.z)("pin",60203),play:(0,n.z)("play",60204),run:(0,n.z)("run",60204),plug:(0,n.z)("plug",60205),preserveCase:(0,n.z)("preserve-case",60206),preview:(0,n.z)("preview",60207),project:(0,n.z)("project",60208),pulse:(0,n.z)("pulse",60209),question:(0,n.z)("question",60210),quote:(0,n.z)("quote",60211),radioTower:(0,n.z)("radio-tower",60212),reactions:(0,n.z)("reactions",60213),references:(0,n.z)("references",60214),refresh:(0,n.z)("refresh",60215),regex:(0,n.z)("regex",60216),remoteExplorer:(0,n.z)("remote-explorer",60217),remote:(0,n.z)("remote",60218),remove:(0,n.z)("remove",60219),replaceAll:(0,n.z)("replace-all",60220),replace:(0,n.z)("replace",60221),repoClone:(0,n.z)("repo-clone",60222),repoForcePush:(0,n.z)("repo-force-push",60223),repoPull:(0,n.z)("repo-pull",60224),repoPush:(0,n.z)("repo-push",60225),report:(0,n.z)("report",60226),requestChanges:(0,n.z)("request-changes",60227),rocket:(0,n.z)("rocket",60228),rootFolderOpened:(0,n.z)("root-folder-opened",60229),rootFolder:(0,n.z)("root-folder",60230),rss:(0,n.z)("rss",60231),ruby:(0,n.z)("ruby",60232),saveAll:(0,n.z)("save-all",60233),saveAs:(0,n.z)("save-as",60234),save:(0,n.z)("save",60235),screenFull:(0,n.z)("screen-full",60236),screenNormal:(0,n.z)("screen-normal",60237),searchStop:(0,n.z)("search-stop",60238),server:(0,n.z)("server",60240),settingsGear:(0,n.z)("settings-gear",60241),settings:(0,n.z)("settings",60242),shield:(0,n.z)("shield",60243),smiley:(0,n.z)("smiley",60244),sortPrecedence:(0,n.z)("sort-precedence",60245),splitHorizontal:(0,n.z)("split-horizontal",60246),splitVertical:(0,n.z)("split-vertical",60247),squirrel:(0,n.z)("squirrel",60248),starFull:(0,n.z)("star-full",60249),starHalf:(0,n.z)("star-half",60250),symbolClass:(0,n.z)("symbol-class",60251),symbolColor:(0,n.z)("symbol-color",60252),symbolConstant:(0,n.z)("symbol-constant",60253),symbolEnumMember:(0,n.z)("symbol-enum-member",60254),symbolField:(0,n.z)("symbol-field",60255),symbolFile:(0,n.z)("symbol-file",60256),symbolInterface:(0,n.z)("symbol-interface",60257),symbolKeyword:(0,n.z)("symbol-keyword",60258),symbolMisc:(0,n.z)("symbol-misc",60259),symbolOperator:(0,n.z)("symbol-operator",60260),symbolProperty:(0,n.z)("symbol-property",60261),wrench:(0,n.z)("wrench",60261),wrenchSubaction:(0,n.z)("wrench-subaction",60261),symbolSnippet:(0,n.z)("symbol-snippet",60262),tasklist:(0,n.z)("tasklist",60263),telescope:(0,n.z)("telescope",60264),textSize:(0,n.z)("text-size",60265),threeBars:(0,n.z)("three-bars",60266),thumbsdown:(0,n.z)("thumbsdown",60267),thumbsup:(0,n.z)("thumbsup",60268),tools:(0,n.z)("tools",60269),triangleDown:(0,n.z)("triangle-down",60270),triangleLeft:(0,n.z)("triangle-left",60271),triangleRight:(0,n.z)("triangle-right",60272),triangleUp:(0,n.z)("triangle-up",60273),twitter:(0,n.z)("twitter",60274),unfold:(0,n.z)("unfold",60275),unlock:(0,n.z)("unlock",60276),unmute:(0,n.z)("unmute",60277),unverified:(0,n.z)("unverified",60278),verified:(0,n.z)("verified",60279),versions:(0,n.z)("versions",60280),vmActive:(0,n.z)("vm-active",60281),vmOutline:(0,n.z)("vm-outline",60282),vmRunning:(0,n.z)("vm-running",60283),watch:(0,n.z)("watch",60284),whitespace:(0,n.z)("whitespace",60285),wholeWord:(0,n.z)("whole-word",60286),window:(0,n.z)("window",60287),wordWrap:(0,n.z)("word-wrap",60288),zoomIn:(0,n.z)("zoom-in",60289),zoomOut:(0,n.z)("zoom-out",60290),listFilter:(0,n.z)("list-filter",60291),listFlat:(0,n.z)("list-flat",60292),listSelection:(0,n.z)("list-selection",60293),selection:(0,n.z)("selection",60293),listTree:(0,n.z)("list-tree",60294),debugBreakpointFunctionUnverified:(0,n.z)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,n.z)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,n.z)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,n.z)("debug-stackframe-active",60297),circleSmallFilled:(0,n.z)("circle-small-filled",60298),debugStackframeDot:(0,n.z)("debug-stackframe-dot",60298),terminalDecorationMark:(0,n.z)("terminal-decoration-mark",60298),debugStackframe:(0,n.z)("debug-stackframe",60299),debugStackframeFocused:(0,n.z)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,n.z)("debug-breakpoint-unsupported",60300),symbolString:(0,n.z)("symbol-string",60301),debugReverseContinue:(0,n.z)("debug-reverse-continue",60302),debugStepBack:(0,n.z)("debug-step-back",60303),debugRestartFrame:(0,n.z)("debug-restart-frame",60304),debugAlt:(0,n.z)("debug-alt",60305),callIncoming:(0,n.z)("call-incoming",60306),callOutgoing:(0,n.z)("call-outgoing",60307),menu:(0,n.z)("menu",60308),expandAll:(0,n.z)("expand-all",60309),feedback:(0,n.z)("feedback",60310),gitPullRequestReviewer:(0,n.z)("git-pull-request-reviewer",60310),groupByRefType:(0,n.z)("group-by-ref-type",60311),ungroupByRefType:(0,n.z)("ungroup-by-ref-type",60312),account:(0,n.z)("account",60313),gitPullRequestAssignee:(0,n.z)("git-pull-request-assignee",60313),bellDot:(0,n.z)("bell-dot",60314),debugConsole:(0,n.z)("debug-console",60315),library:(0,n.z)("library",60316),output:(0,n.z)("output",60317),runAll:(0,n.z)("run-all",60318),syncIgnored:(0,n.z)("sync-ignored",60319),pinned:(0,n.z)("pinned",60320),githubInverted:(0,n.z)("github-inverted",60321),serverProcess:(0,n.z)("server-process",60322),serverEnvironment:(0,n.z)("server-environment",60323),pass:(0,n.z)("pass",60324),issueClosed:(0,n.z)("issue-closed",60324),stopCircle:(0,n.z)("stop-circle",60325),playCircle:(0,n.z)("play-circle",60326),record:(0,n.z)("record",60327),debugAltSmall:(0,n.z)("debug-alt-small",60328),vmConnect:(0,n.z)("vm-connect",60329),cloud:(0,n.z)("cloud",60330),merge:(0,n.z)("merge",60331),export:(0,n.z)("export",60332),graphLeft:(0,n.z)("graph-left",60333),magnet:(0,n.z)("magnet",60334),notebook:(0,n.z)("notebook",60335),redo:(0,n.z)("redo",60336),checkAll:(0,n.z)("check-all",60337),pinnedDirty:(0,n.z)("pinned-dirty",60338),passFilled:(0,n.z)("pass-filled",60339),circleLargeFilled:(0,n.z)("circle-large-filled",60340),circleLarge:(0,n.z)("circle-large",60341),circleLargeOutline:(0,n.z)("circle-large-outline",60341),combine:(0,n.z)("combine",60342),gather:(0,n.z)("gather",60342),table:(0,n.z)("table",60343),variableGroup:(0,n.z)("variable-group",60344),typeHierarchy:(0,n.z)("type-hierarchy",60345),typeHierarchySub:(0,n.z)("type-hierarchy-sub",60346),typeHierarchySuper:(0,n.z)("type-hierarchy-super",60347),gitPullRequestCreate:(0,n.z)("git-pull-request-create",60348),runAbove:(0,n.z)("run-above",60349),runBelow:(0,n.z)("run-below",60350),notebookTemplate:(0,n.z)("notebook-template",60351),debugRerun:(0,n.z)("debug-rerun",60352),workspaceTrusted:(0,n.z)("workspace-trusted",60353),workspaceUntrusted:(0,n.z)("workspace-untrusted",60354),workspaceUnknown:(0,n.z)("workspace-unknown",60355),terminalCmd:(0,n.z)("terminal-cmd",60356),terminalDebian:(0,n.z)("terminal-debian",60357),terminalLinux:(0,n.z)("terminal-linux",60358),terminalPowershell:(0,n.z)("terminal-powershell",60359),terminalTmux:(0,n.z)("terminal-tmux",60360),terminalUbuntu:(0,n.z)("terminal-ubuntu",60361),terminalBash:(0,n.z)("terminal-bash",60362),arrowSwap:(0,n.z)("arrow-swap",60363),copy:(0,n.z)("copy",60364),personAdd:(0,n.z)("person-add",60365),filterFilled:(0,n.z)("filter-filled",60366),wand:(0,n.z)("wand",60367),debugLineByLine:(0,n.z)("debug-line-by-line",60368),inspect:(0,n.z)("inspect",60369),layers:(0,n.z)("layers",60370),layersDot:(0,n.z)("layers-dot",60371),layersActive:(0,n.z)("layers-active",60372),compass:(0,n.z)("compass",60373),compassDot:(0,n.z)("compass-dot",60374),compassActive:(0,n.z)("compass-active",60375),azure:(0,n.z)("azure",60376),issueDraft:(0,n.z)("issue-draft",60377),gitPullRequestClosed:(0,n.z)("git-pull-request-closed",60378),gitPullRequestDraft:(0,n.z)("git-pull-request-draft",60379),debugAll:(0,n.z)("debug-all",60380),debugCoverage:(0,n.z)("debug-coverage",60381),runErrors:(0,n.z)("run-errors",60382),folderLibrary:(0,n.z)("folder-library",60383),debugContinueSmall:(0,n.z)("debug-continue-small",60384),beakerStop:(0,n.z)("beaker-stop",60385),graphLine:(0,n.z)("graph-line",60386),graphScatter:(0,n.z)("graph-scatter",60387),pieChart:(0,n.z)("pie-chart",60388),bracket:(0,n.z)("bracket",60175),bracketDot:(0,n.z)("bracket-dot",60389),bracketError:(0,n.z)("bracket-error",60390),lockSmall:(0,n.z)("lock-small",60391),azureDevops:(0,n.z)("azure-devops",60392),verifiedFilled:(0,n.z)("verified-filled",60393),newline:(0,n.z)("newline",60394),layout:(0,n.z)("layout",60395),layoutActivitybarLeft:(0,n.z)("layout-activitybar-left",60396),layoutActivitybarRight:(0,n.z)("layout-activitybar-right",60397),layoutPanelLeft:(0,n.z)("layout-panel-left",60398),layoutPanelCenter:(0,n.z)("layout-panel-center",60399),layoutPanelJustify:(0,n.z)("layout-panel-justify",60400),layoutPanelRight:(0,n.z)("layout-panel-right",60401),layoutPanel:(0,n.z)("layout-panel",60402),layoutSidebarLeft:(0,n.z)("layout-sidebar-left",60403),layoutSidebarRight:(0,n.z)("layout-sidebar-right",60404),layoutStatusbar:(0,n.z)("layout-statusbar",60405),layoutMenubar:(0,n.z)("layout-menubar",60406),layoutCentered:(0,n.z)("layout-centered",60407),target:(0,n.z)("target",60408),indent:(0,n.z)("indent",60409),recordSmall:(0,n.z)("record-small",60410),errorSmall:(0,n.z)("error-small",60411),terminalDecorationError:(0,n.z)("terminal-decoration-error",60411),arrowCircleDown:(0,n.z)("arrow-circle-down",60412),arrowCircleLeft:(0,n.z)("arrow-circle-left",60413),arrowCircleRight:(0,n.z)("arrow-circle-right",60414),arrowCircleUp:(0,n.z)("arrow-circle-up",60415),layoutSidebarRightOff:(0,n.z)("layout-sidebar-right-off",60416),layoutPanelOff:(0,n.z)("layout-panel-off",60417),layoutSidebarLeftOff:(0,n.z)("layout-sidebar-left-off",60418),blank:(0,n.z)("blank",60419),heartFilled:(0,n.z)("heart-filled",60420),map:(0,n.z)("map",60421),mapHorizontal:(0,n.z)("map-horizontal",60421),foldHorizontal:(0,n.z)("fold-horizontal",60421),mapFilled:(0,n.z)("map-filled",60422),mapHorizontalFilled:(0,n.z)("map-horizontal-filled",60422),foldHorizontalFilled:(0,n.z)("fold-horizontal-filled",60422),circleSmall:(0,n.z)("circle-small",60423),bellSlash:(0,n.z)("bell-slash",60424),bellSlashDot:(0,n.z)("bell-slash-dot",60425),commentUnresolved:(0,n.z)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,n.z)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,n.z)("git-pull-request-new-changes",60428),searchFuzzy:(0,n.z)("search-fuzzy",60429),commentDraft:(0,n.z)("comment-draft",60430),send:(0,n.z)("send",60431),sparkle:(0,n.z)("sparkle",60432),insert:(0,n.z)("insert",60433),mic:(0,n.z)("mic",60434),thumbsdownFilled:(0,n.z)("thumbsdown-filled",60435),thumbsupFilled:(0,n.z)("thumbsup-filled",60436),coffee:(0,n.z)("coffee",60437),snake:(0,n.z)("snake",60438),game:(0,n.z)("game",60439),vr:(0,n.z)("vr",60440),chip:(0,n.z)("chip",60441),piano:(0,n.z)("piano",60442),music:(0,n.z)("music",60443),micFilled:(0,n.z)("mic-filled",60444),repoFetch:(0,n.z)("repo-fetch",60445),copilot:(0,n.z)("copilot",60446),lightbulbSparkle:(0,n.z)("lightbulb-sparkle",60447),robot:(0,n.z)("robot",60448),sparkleFilled:(0,n.z)("sparkle-filled",60449),diffSingle:(0,n.z)("diff-single",60450),diffMultiple:(0,n.z)("diff-multiple",60451),surroundWith:(0,n.z)("surround-with",60452),share:(0,n.z)("share",60453),gitStash:(0,n.z)("git-stash",60454),gitStashApply:(0,n.z)("git-stash-apply",60455),gitStashPop:(0,n.z)("git-stash-pop",60456),vscode:(0,n.z)("vscode",60457),vscodeInsiders:(0,n.z)("vscode-insiders",60458),codeOss:(0,n.z)("code-oss",60459),runCoverage:(0,n.z)("run-coverage",60460),runAllCoverage:(0,n.z)("run-all-coverage",60461),coverage:(0,n.z)("coverage",60462),githubProject:(0,n.z)("github-project",60463),mapVertical:(0,n.z)("map-vertical",60464),foldVertical:(0,n.z)("fold-vertical",60464),mapVerticalFilled:(0,n.z)("map-vertical-filled",60465),foldVerticalFilled:(0,n.z)("fold-vertical-filled",60465)},...{dialogError:(0,n.z)("dialog-error","error"),dialogWarning:(0,n.z)("dialog-warning","warning"),dialogInfo:(0,n.z)("dialog-info","info"),dialogClose:(0,n.z)("dialog-close","close"),treeItemExpanded:(0,n.z)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,n.z)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,n.z)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,n.z)("tree-filter-clear","close"),treeItemLoading:(0,n.z)("tree-item-loading","loading"),menuSelection:(0,n.z)("menu-selection","check"),menuSubmenu:(0,n.z)("menu-submenu","chevron-right"),menuBarMore:(0,n.z)("menubar-more","more"),scrollbarButtonLeft:(0,n.z)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,n.z)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,n.z)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,n.z)("scrollbar-button-down","triangle-down"),toolBarMore:(0,n.z)("toolbar-more","more"),quickInputBack:(0,n.z)("quick-input-back","arrow-left"),dropDownButton:(0,n.z)("drop-down-button",60084),symbolCustomColor:(0,n.z)("symbol-customcolor",60252),exportIcon:(0,n.z)("export",60332),workspaceUnspecified:(0,n.z)("workspace-unspecified",60355),newLine:(0,n.z)("newline",60394),thumbsDownFilled:(0,n.z)("thumbsdown-filled",60435),thumbsUpFilled:(0,n.z)("thumbsup-filled",60436),gitFetch:(0,n.z)("git-fetch",60445),lightbulbSparkleAutofix:(0,n.z)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,n.z)("debug-breakpoint-pending",60377)}}},87487:(e,t,i)=>{"use strict";i.d(t,{u:()=>r,z:()=>o});var n=i(47624);const s=Object.create(null);function o(e,t){if((0,n.HD)(t)){const i=s[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return s[e]=t,{id:e}}function r(){return s}},35863:(e,t,i)=>{"use strict";function n(e,t){const i=[],n=[];for(const s of e)t.has(s)||i.push(s);for(const s of t)e.has(s)||n.push(s);return{removed:i,added:n}}function s(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}i.d(t,{j:()=>s,q:()=>n})},63932:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:()=>a,Oz:()=>o,VS:()=>s,tx:()=>r});class s{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class o{constructor(e,t,i,s){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,d=0;const h=(a+r)/2,c=r-a;if(c>0){switch(d=Math.min(h<=.5?c/(2*h):c/(2-2*h),1),r){case t:l=(i-n)/c+(i<n?6:0);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l*=60,l=Math.round(l)}return new o(l,d,h,s)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,d;if(0===i)a=l=d=n;else{const e=n<.5?n*(1+i):n+i-n*i,s=2*n-e;a=o._hue2rgb(s,e,t+1/3),l=o._hue2rgb(s,e,t),d=o._hue2rgb(s,e,t-1/3)}return new s(Math.round(255*a),Math.round(255*l),Math.round(255*d),r)}}class r{constructor(e,t,i,s){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),o=s-Math.min(t,i,n),a=0===s?0:o/s;let l;return l=0===o?0:s===t?((i-n)/o%6+6)%6:s===i?(n-t)/o+2:(t-i)/o+4,new r(Math.round(60*l),a,s,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:o}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[d,h,c]=[0,0,0];return t<60?(d=r,h=a):t<120?(d=a,h=r):t<180?(h=r,c=a):t<240?(h=a,c=r):t<300?(d=a,c=r):t<=360&&(d=r,c=a),d=Math.round(255*(d+l)),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),new s(d,h,c,o)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof s)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}equals(e){return!!e&&s.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:n,a:o}=this.rgba;return new a(new s(t,i,n,o*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new s(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:n,a:o}=this.rgba;return new a(new s(e.rgba.r-o*(e.rgba.r-t),e.rgba.g-o*(e.rgba.g-i),e.rgba.b-o*(e.rgba.b-n),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(s-n)/s,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const n=e.getRelativeLuminance();return i=i*(n-t.getRelativeLuminance())/n,e.darken(i)}}a.white=new a(new s(255,255,255,1)),a.black=new a(new s(0,0,0,1)),a.red=new a(new s(255,0,0,1)),a.blue=new a(new s(0,0,255,1)),a.green=new a(new s(0,255,0,1)),a.cyan=new a(new s(0,255,255,1)),a.lightgrey=new a(new s(211,211,211,1)),a.transparent=new a(new s(0,0,0,0)),function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function n(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*n(t.charCodeAt(1))+n(t.charCodeAt(2)),o=16*n(t.charCodeAt(3))+n(t.charCodeAt(4)),r=16*n(t.charCodeAt(5))+n(t.charCodeAt(6));return new e(new s(i,o,r,1))}if(9===i){const i=16*n(t.charCodeAt(1))+n(t.charCodeAt(2)),o=16*n(t.charCodeAt(3))+n(t.charCodeAt(4)),r=16*n(t.charCodeAt(5))+n(t.charCodeAt(6)),a=16*n(t.charCodeAt(7))+n(t.charCodeAt(8));return new e(new s(i,o,r,a/255))}if(4===i){const i=n(t.charCodeAt(1)),o=n(t.charCodeAt(2)),r=n(t.charCodeAt(3));return new e(new s(16*i+i,16*o+o,16*r+r))}if(5===i){const i=n(t.charCodeAt(1)),o=n(t.charCodeAt(2)),r=n(t.charCodeAt(3)),a=n(t.charCodeAt(4));return new e(new s(16*i+i,16*o+o,16*r+r,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},44609:(e,t,i)=>{"use strict";i.d(t,{Hl:()=>l,Ix:()=>a,SN:()=>h,Z0:()=>u,ZO:()=>r});var n=i(51833),s=i(2706),o=i(94913);function r(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const n={id:(0,o.R)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>n,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return s.$.some(this,(e=>{let[t,i]=e;return i.asFile()}))&&t.push("files"),c(d(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return d(e)}}function d(e){return e.toLowerCase()}function h(e,t){return c(d(e),t.map(d))}function c(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,s,o]=i;return"*"===o&&t.some((e=>e.startsWith(s+"/")))}const u=Object.freeze({create:e=>(0,n.EB)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},21150:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,s=null;if("function"===typeof i.value?(n="value",s=i.value,0!==s.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(n="get",s=i.get),!s)throw new Error("not supported");const o=`$memoize$${t}`;i[n]=function(){if(!this.hasOwnProperty(o)){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:s.apply(this,t)})}return this[o]}}i.d(t,{H:()=>n})},1794:(e,t,i)=>{"use strict";i.d(t,{Hs:()=>h,a$:()=>r});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var s=i(95075);class o{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i<n;i++)t[i]=e.charCodeAt(i);return t}}function r(e,t,i){return new h(new o(e),new o(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,i,n,s){for(let o=0;o<s;o++)i[n+o]=e[t+o]}static Copy2(e,t,i,n,s){for(let o=0;o<s;o++)i[n+o]=e[t+o]}}class d{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,s,o]=h._getElements(e),[r,a,l]=h._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=s,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i<n;i++)e[i]=(0,s.Cv)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,n,s){const o=[!1];let r=this.ComputeDiffRecursive(e,t,i,n,o);return s&&(r=this.PrettifyChanges(r)),{quitEarly:o[0],changes:r}}ComputeDiffRecursive(e,t,i,s,o){for(o[0]=!1;e<=t&&i<=s&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&s>=i&&this.ElementsAreEqual(t,s);)t--,s--;if(e>t||i>s){let o;return i<=s?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new n(e,0,i,s-i+1)]):e<=t?(a.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),o=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const r=[0],l=[0],d=this.ComputeRecursionPoint(e,t,i,s,r,l,o),h=r[0],c=l[0];if(null!==d)return d;if(!o[0]){const r=this.ComputeDiffRecursive(e,h,i,c,o);let a=[];return a=o[0]?[new n(h+1,t-(h+1)+1,c+1,s-(c+1)+1)]:this.ComputeDiffRecursive(h+1,t,c+1,s,o),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,s-i+1)]}WALKTRACE(e,t,i,s,o,r,a,l,h,c,u,g,p,m,f,_,v,b){let C=null,y=null,w=new d,S=t,x=i,L=p[0]-_[0]-s,k=-1073741824,D=this.m_forwardHistory.length-1;do{const t=L+e;t===S||t<x&&h[t-1]<h[t+1]?(m=(u=h[t+1])-L-s,u<k&&w.MarkNextChange(),k=u,w.AddModifiedElement(u+1,m),L=t+1-e):(m=(u=h[t-1]+1)-L-s,u<k&&w.MarkNextChange(),k=u-1,w.AddOriginalElement(u,m+1),L=t-1-e),D>=0&&(e=(h=this.m_forwardHistory[D])[0],S=1,x=h.length-1)}while(--D>=-1);if(C=w.getReverseChanges(),b[0]){let e=p[0]+1,t=_[0]+1;if(null!==C&&C.length>0){const i=C[C.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}y=[new n(e,g-e+1,t,f-t+1)]}else{w=new d,S=r,x=a,L=p[0]-_[0]-l,k=1073741824,D=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=L+o;e===S||e<x&&c[e-1]>=c[e+1]?(m=(u=c[e+1]-1)-L-l,u>k&&w.MarkNextChange(),k=u+1,w.AddOriginalElement(u+1,m+1),L=e+1-o):(m=(u=c[e-1])-L-l,u>k&&w.MarkNextChange(),k=u,w.AddModifiedElement(u+1,m+1),L=e-1-o),D>=0&&(o=(c=this.m_reverseHistory[D])[0],S=1,x=c.length-1)}while(--D>=-1);y=w.getChanges()}return this.ConcatenateChanges(C,y)}ComputeRecursionPoint(e,t,i,s,o,r,a){let d=0,h=0,c=0,u=0,g=0,p=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(s-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),b=s-i,C=t-e,y=e-i,w=t-s,S=(C-b)%2===0;_[b]=e,v[C]=t,a[0]=!1;for(let x=1;x<=m/2+1;x++){let m=0,L=0;c=this.ClipDiagonalBound(b-x,x,b,f),u=this.ClipDiagonalBound(b+x,x,b,f);for(let e=c;e<=u;e+=2){d=e===c||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=d-(e-b)-y;const i=d;for(;d<t&&h<s&&this.ElementsAreEqual(d+1,h+1);)d++,h++;if(_[e]=d,d+h>m+L&&(m=d,L=h),!S&&Math.abs(e-C)<=x-1&&d>=v[e])return o[0]=d,r[0]=h,i<=v[e]&&x<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):null}const k=(m-e+(L-i)-x)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,k))return a[0]=!0,o[0]=m,r[0]=L,k>0&&x<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):(e++,i++,[new n(e,t-e+1,i,s-i+1)]);g=this.ClipDiagonalBound(C-x,x,C,f),p=this.ClipDiagonalBound(C+x,x,C,f);for(let n=g;n<=p;n+=2){d=n===g||n<p&&v[n-1]>=v[n+1]?v[n+1]-1:v[n-1],h=d-(n-C)-w;const l=d;for(;d>e&&h>i&&this.ElementsAreEqual(d,h);)d--,h--;if(v[n]=d,S&&Math.abs(n-b)<=x&&d<=_[n])return o[0]=d,r[0]=h,l>=_[n]&&x<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):null}if(x<=1447){let e=new Int32Array(u-c+2);e[0]=b-c+1,l.Copy2(_,c,e,1,u-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],n=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,s=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=i.originalLength>0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength<n&&i.modifiedStart+i.modifiedLength<s&&(!o||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!r||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let n=0,s=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,s=i.modifiedStart+i.modifiedLength}const o=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,d=i.modifiedStart-e;if(t<n||d<s)break;if(o&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(r&&!this.ModifiedElementsAreEqual(d,d+i.modifiedLength))break;const h=(t===n&&d===s?5:0)+this._boundaryScore(t,i.originalLength,d,i.modifiedLength);h>l&&(l=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const d=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],d)&&(e[t-1]=d[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const i=e[t-1],n=e[t],s=n.originalStart-i.originalStart-i.originalLength,o=i.originalStart,r=n.originalStart+n.originalLength,a=r-o,l=i.modifiedStart,d=n.modifiedStart+n.modifiedLength,h=d-l;if(s<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(o,a,l,h,s);if(e){const[t,o]=e;t===i.originalStart+i.originalLength&&o===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=o-i.modifiedStart,n.originalStart=t+s,n.modifiedStart=o+s,n.originalLength=r-n.originalStart,n.modifiedLength=d-n.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,n,s){if(t<s||n<s)return null;const o=e+t-s+1,r=i+n-s+1;let a=0,l=0,d=0;for(let h=e;h<o;h++)for(let e=i;e<r;e++){const t=this._contiguousSequenceScore(h,e,s);t>0&&t>a&&(a=t,l=h,d=e)}return a>0?[l,d]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,t+s))return 0;n+=this._originalStringElements[e+s].length}return n}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const s=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(s,o,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e<n)return e;const s=t%2===0;if(e<0){return s===(i%2===0)?0:1}return s===((n-i-1)%2===0)?n-1:n-2}}},16015:(e,t,i)=>{"use strict";i.d(t,{B8:()=>g,Cp:()=>o,F0:()=>h,FU:()=>d,L6:()=>u,b1:()=>c,dL:()=>s,he:()=>m,n2:()=>l,ri:()=>r});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function s(e){l(e)||n.onUnexpectedError(e)}function o(e){l(e)||n.onUnexpectedExternalError(e)}function r(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof d||e instanceof Error&&e.name===a&&e.message===a}class d extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},39706:(e,t,i)=>{"use strict";i.d(t,{D0:()=>b,E7:()=>w,K3:()=>v,Q5:()=>m,SZ:()=>C,Sp:()=>f,ZD:()=>S,ju:()=>d,z5:()=>y});var n=i(16015),s=i(66870),o=i(53186),r=i(64450),a=i(6617);const l=!1;var d;!function(e){function t(e){if(l){const{onDidAddListener:t}=e,i=u.create();let n=0;e.onDidAddListener=()=>{2===++n&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),i.print()),null===t||void 0===t||t()}}}function i(e){return function(t){let i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,arguments.length>2?arguments[2]:void 0),s&&i.dispose(),i}}function n(e,t,i){return r((function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>i.call(n,t(e))),null,arguments.length>2?arguments[2]:void 0)}),i)}function s(e,t,i){return r((function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>t(e)&&i.call(n,e)),null,arguments.length>2?arguments[2]:void 0)}),i)}function r(e,i){let n;const s={onWillAddFirstListener(){n=e(o.fire,o)},onDidRemoveLastListener(){null===n||void 0===n||n.dispose()}};i||t(s);const o=new m(s);return null===i||void 0===i||i.add(o),o.event}function a(e,i){let n,s,o,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],h=arguments.length>6?arguments[6]:void 0,c=0;const u={leakWarningThreshold:arguments.length>5?arguments[5]:void 0,onWillAddFirstListener(){n=e((e=>{c++,s=i(s,e),l&&!o&&(g.fire(s),s=void 0),r=()=>{const e=s;s=void 0,o=void 0,(!l||c>1)&&g.fire(e),c=0},"number"===typeof a?(clearTimeout(o),o=setTimeout(r,a)):void 0===o&&(o=0,queueMicrotask(r))}))},onWillRemoveListener(){d&&c>0&&(null===r||void 0===r||r())},onDidRemoveLastListener(){r=void 0,n.dispose()}};h||t(u);const g=new m(u);return null===h||void 0===h||h.add(g),g.event}e.None=()=>o.JT.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.map=n,e.forEach=function(e,t,i){return r((function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>{t(e),i.call(n,e)}),null,arguments.length>2?arguments[2]:void 0)}),i)},e.filter=s,e.signal=function(e){return e},e.any=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,o.F8)(...t.map((t=>t((t=>e.call(i,t)))))),n)}},e.reduce=function(e,t,i,s){let o=i;return n(e,(e=>(o=t(o,e),o)),s)},e.debounce=a,e.accumulate=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)},e.latch=function(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,t)=>e===t,n=!0;return s(e,(e=>{const s=n||!i(e,t);return n=!1,t=e,s}),arguments.length>2?arguments[2]:void 0)},e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]},e.buffer=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>3?arguments[3]:void 0,n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).slice(),s=e((e=>{n?n.push(e):r.fire(e)}));i&&i.add(s);const o=()=>{null===n||void 0===n||n.forEach((e=>r.fire(e))),n=null},r=new m({onWillAddFirstListener(){s||(s=e((e=>r.fire(e))),i&&i.add(s))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(r),r.event},e.chain=function(e,t){return(i,n,s)=>{const o=t(new h);return e((function(e){const t=o.evaluate(e);t!==d&&i.call(n,t)}),void 0,s)}};const d=Symbol("HaltChainable");class h{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:d)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(e,t)=>e===t,i=!0;return this.steps.push((n=>{const s=i||!t(n,e);return i=!1,e=n,s?n:d})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===d)break;return e}}e.fromNodeEventEmitter=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;const n=function(){return s.fire(i(...arguments))},s=new m({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return s.event},e.fromDOMEventEmitter=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;const n=function(){return s.fire(i(...arguments))},s=new m({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return s.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class c{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(n),this.emitter=new m(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,n)=>{let s=0,r=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),r&&(r=!1,t.call(i)))},handlePossibleChange(){},handleChange(){r=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return n instanceof o.SL?n.add(l):Array.isArray(n)&&n.push(l),l}}}(d||(d={}));class h{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${h._idPool++}`,h.all.add(this)}start(e){this._stopWatch=new a.G,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}h.all=new Set,h._idPool=0;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random().toString(18).slice(2,5);this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(const[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class u{static create(){var e;return new u(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class g{constructor(e){this.value=e}}const p=void 0;class m{constructor(e){var t,i,n,s,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new c(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(s=this._options)||void 0===s?void 0:s._profName)?new h(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,s,r,a,l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),o.JT.None;if(this._disposed)return o.JT.None;t&&(e=e.bind(t));const d=new g(e);let h;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=u.create(),h=this._leakageMon.check(d.stack,this._size+1)),this._listeners?this._listeners instanceof g?(null!==(l=this._deliveryQueue)&&void 0!==l||(this._deliveryQueue=new _),this._listeners=[this._listeners,d]):this._listeners.push(d):(null===(s=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===s||s.call(n,this),this._listeners=d,null===(a=null===(r=this._options)||void 0===r?void 0:r.onDidAddFirstListener)||void 0===a||a.call(r,this)),this._size++;const c=(0,o.OF)((()=>{null===p||void 0===p||p.unregister(c),null===h||void 0===h||h(),this._removeListener(d)}));if(i instanceof o.SL?i.add(c):Array.isArray(i)&&i.push(c),p){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();p.register(c,e,c)}return c}),this._event}_removeListener(e){var t,i,n,s;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(s=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===s||s.call(n,this),void(this._size=0);const o=this._listeners,r=o.indexOf(e);if(-1===r)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[r]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t<o.length;t++)o[t]?o[e++]=o[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);o.length=e}}_deliver(e,t){var i;if(!e)return;const s=(null===(i=this._options)||void 0===i?void 0:i.onListenerError)||n.dL;if(s)try{e.value(t)}catch(o){s(o)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,i,n,s;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(i=this._perfMon)||void 0===i||i.stop()),null===(n=this._perfMon)||void 0===n||n.start(this._size),this._listeners)if(this._listeners instanceof g)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(s=this._perfMon)||void 0===s||s.stop()}hasListeners(){return this._size>0}}const f=()=>new _;class _{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class v extends m{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.S,this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends v{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class C extends m{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null===e||void 0===e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class y{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new m({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,o.OF)((0,s.M)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class w{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class S{constructor(){this.listening=!1,this.inputEvent=d.None,this.inputEventListener=o.JT.None,this.emitter=new m({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},51082:(e,t,i)=>{"use strict";i.d(t,{KM:()=>h,ej:()=>a,fn:()=>l,oP:()=>u,yj:()=>d});var n=i(96682),s=i(90388),o=i(78701);function r(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.KR.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.KR.sep;if(!e)return"";const i=e.length,s=e.charCodeAt(0);if(r(s)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let n=3;const s=n;for(;n<i&&!r(e.charCodeAt(n));n++);if(s!==n&&!r(e.charCodeAt(n+1)))for(n+=1;n<i;n++)if(r(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(c(s)&&58===e.charCodeAt(1))return r(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<i;o++)if(r(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.ir;if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,o.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===s&&i--,e.charAt(i)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.ED)&&(c(e.charCodeAt(0))&&58===e.charCodeAt(1))}},34835:(e,t,i)=>{"use strict";i.d(t,{CL:()=>ie,mX:()=>ne,jB:()=>H,mB:()=>z,EW:()=>se,l7:()=>re,ir:()=>f,Oh:()=>V,XU:()=>W,Ji:()=>p,Sy:()=>_,KZ:()=>A,or:()=>g});var n=i(38079);function s(e){const t=function(e){if(o=0,a(e,l,4352),o>0)return r.subarray(0,o);if(a(e,d,4449),o>0)return r.subarray(0,o);if(a(e,h,4520),o>0)return r.subarray(0,o);if(a(e,c,12593),o)return r.subarray(0,o);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),s=Math.floor(i/28),u=i%28-1;if(n<l.length?a(n,l,0):4352+n-12593<c.length&&a(4352+n,c,12593),s<d.length?a(s,d,0):4449+s-12593<c.length&&a(4449+s-12593,c,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<c.length&&a(4520+u-12593,c,12593)),o>0)return r.subarray(0,o)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let o=0;const r=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;r[o++]=255&e,e>>8&&(r[o++]=e>>8&255);e>>16&&(r[o++]=e>>16&255)}(t[e-i])}const l=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),d=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),c=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(78701);function g(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e,i){for(let n=0,s=t.length;n<s;n++){const s=t[n](e,i);if(s)return s}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let n;return n=e?u.ok(i,t):0===i.indexOf(t),n?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let s=null;return(s=v(e,t,i+1,n+1))?E({start:n,end:n+1},s):null}return v(e,t,i,n+1)}function b(e){return 97<=e&&e<=122}function C(e){return 65<=e&&e<=90}function y(e){return 48<=e&&e<=57}function w(e){return 32===e||9===e||10===e||13===e}const S=new Set;function x(e){return w(e)||S.has(e)}function L(e,t){return e===t||x(e)&&x(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>S.add(e.charCodeAt(0))));const k=new Map;function D(e){if(k.has(e))return k.get(e);let t;const i=s(e);return i&&(t=i),k.set(e,t),t}function N(e){return b(e)||C(e)||y(e)}function E(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function T(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(C(t)||y(t)||i>0&&!N(e.charCodeAt(i-1)))return i}return e.length}function I(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let s=null,o=n+1;for(s=I(e,t,i+1,n+1);!s&&(o=T(t,o))<t.length;)s=I(e,t,i+1,o),o++;return null===s?null:E({start:n,end:n+1},s)}}function M(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,n=0,s=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o),C(n)&&t++,b(n)&&i++,w(n)&&s++;return 0!==t&&0!==i||0!==s?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,n=0,s=0,o=0;for(let r=0;r<e.length;r++)o=e.charCodeAt(r),C(o)&&t++,b(o)&&i++,N(o)&&n++,y(o)&&s++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:n/e.length,numericPercent:s/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:s}=e;return i>.2&&t<.8&&n>.6&&s<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,s=0;for(e=e.toLowerCase();s<t.length&&null===(n=I(e,t,0,s));)s=T(t,s+1);return n}function A(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||0===t.length)return null;let n=null,s=0;for(e=e.toLowerCase(),t=t.toLowerCase();s<t.length&&(n=R(e,t,0,s,i),null===n);)s=O(t,s+1);return n}function R(e,t,i,n,s){let o=0;if(i===e.length)return[];if(n===t.length)return null;if(!L(e.charCodeAt(i),t.charCodeAt(n))){const s=D(e.charCodeAt(i));if(!s)return null;for(let e=0;e<s.length;e++)if(!L(s[e],t.charCodeAt(n+e)))return null;o+=s.length-1}let r=null,a=n+o+1;if(r=R(e,t,i+1,a,s),!s)for(;!r&&(a=O(t,a))<t.length;)r=R(e,t,i+1,a,s),a++;if(!r)return null;if(e.charCodeAt(i)!==t.charCodeAt(n)){const s=D(e.charCodeAt(i));if(!s)return r;for(let e=0;e<s.length;e++)if(s[e]!==t.charCodeAt(n+e))return r}return E({start:n,end:n+o+1},r)}function O(e,t){for(let i=t;i<e.length;i++)if(x(e.charCodeAt(i))||i>0&&x(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,M,f),F=g(p,M,_),B=new n.z6(1e4);function V(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e||"string"!==typeof t)return null;let n=B.get(e);n||(n=new RegExp(u.un(e),"i"),B.set(e,n));const s=n.exec(t);return s?[{start:s.index,end:s.index+s[0].length}]:i?F(e,t):P(e,t)}function W(e,t){const i=se(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?z(i):null}function H(e,t,i,n,s,o){const r=Math.min(13,e.length);for(;i<r;i++){const r=se(e,t,i,n,s,o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(r)return r}return[0,o]}function z(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let n=e.length-1;n>1;n--){const s=e[n]+i,o=t[t.length-1];o&&o.end===s?o.end=s+1:t.push({start:s,end:s+1})}return t}const j=128;function U(){const e=[],t=[];for(let i=0;i<=j;i++)t[i]=0;for(let i=0;i<=j;i++)e.push(t.slice(0));return e}function K(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const q=K(2*j),$=K(2*j),G=U(),Y=U(),Z=U(),Q=!1;function X(e,t,i,n,s){function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";for(;e.length<t;)e=i+e;return e}let r=` | |${n.split("").map((e=>o(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)r+=0===a?" |":`${t[a-1]}|`,r+=e[a].slice(0,s+1).map((e=>o(e.toString(),3))).join("|")+"\n";return r}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.C8(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class ne{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function se(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:ne.default;const a=e.length>j?j:e.length,l=n.length>j?j:n.length;if(i>=a||o>=l||a-i>l-o)return;if(!function(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]&&arguments[6];for(;t<i&&s<o;)e[t]===n[s]&&(r&&(q[t]=s),t+=1),s+=1;return t===i}(t,i,a,s,o,l,!0))return;!function(e,t,i,n,s,o){let r=e-1,a=t-1;for(;r>=i&&a>=n;)s[r]===o[a]&&($[r]=a,r--),a--}(a,l,i,o,t,s);let d=1,h=1,c=i,u=o;const g=[!1];for(d=1,c=i;c<a;d++,c++){const r=q[c],p=$[c],m=c+1<a?$[c+1]:l;for(h=r-o+1,u=r;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=oe(e,t,c,i,n,s,u,l,o,0===G[d-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+Y[d-1][h-1]);const _=u>r,v=_?Y[d][h-1]+(G[d][h-1]>0?-5:0):0,b=u>r+1&&G[d][h-1]>0,C=b?Y[d][h-2]+(G[d][h-2]>0?-5:0):0;if(b&&(!_||C>=v)&&(!m||C>=f))Y[d][h]=C,Z[d][h]=3,G[d][h]=0;else if(_&&(!m||v>=f))Y[d][h]=v,Z[d][h]=2,G[d][h]=0;else{if(!m)throw new Error("not possible");Y[d][h]=f,Z[d][h]=1,G[d][h]=G[d-1][h-1]+1}}}if(Q&&function(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(X(Y,e,e.length,i,i.length)),console.log(X(Z,e,e.length,i,i.length)),console.log(X(G,e,e.length,i,i.length))}(e,i,n,o),!g[0]&&!r.firstMatchCanBeWeak)return;d--,h--;const p=[Y[d][h],o];let m=0,f=0;for(;d>=1;){let e=h;do{const t=Z[d][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+d-1]===s[o+h-1]&&!te(e+o-1,n,s)&&m+1>G[d][e]&&(e=h),e===h?m++:m=1,f||(f=e),d--,h=e-1,p.push(h)}l===a&&r.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function oe(e,t,i,n,s,o,r,a,l,d,h){if(t[i]!==o[r])return Number.MIN_SAFE_INTEGER;let c=1,u=!1;return r===i-n?c=e[i]===s[r]?7:5:!te(r,s,o)||0!==r&&te(r-1,s,o)?!J(o,r)||0!==r&&J(o,r-1)?(J(o,r-1)||ee(o,r-1))&&(c=5,u=!0):c=5:(c=e[i]===s[r]?7:5,u=!0),c>1&&i===n&&(h[0]=!0),u||(u=te(r,s,o)||J(o,r-1)||ee(o,r-1)),i===n?r>l&&(c-=u?3:5):c+=d?u?2:0:u?0:1,r+1===a&&(c-=u?3:5),c}function re(e,t,i,n,s,o,r){return function(e,t,i,n,s,o,r,a){let l=se(e,t,i,n,s,o,a);if(l&&!r)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;r<t;r++){const t=ae(e,r);if(t){const e=se(t,t.toLowerCase(),i,n,s,o,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,i,n,s,o,!0,r)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}ne.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},66870:(e,t,i)=>{"use strict";function n(e,t){const i=this;let n,s=!1;return function(){if(s)return n;if(s=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}i.d(t,{M:()=>n})},27351:(e,t,i)=>{"use strict";i.d(t,{EQ:()=>T,Qc:()=>I});var n=i(53372),s=i(51082),o=i(38079),r=i(96682),a=i(90388),l=i(78701);const d="**",h="/",c="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${c}|${u}+${c}${t?`|${c}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let n=!1,s=!1,o="";for(const r of e){switch(r){case t:if(!n&&!s){i.push(o),o="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}o+=r}return o&&i.push(o),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===d)))t=".*";else{let e=!1;i.forEach(((n,s)=>{if(n===d){if(e)return;t+=p(2,s===i.length-1)}else{let e=!1,o="",r=!1,a="";for(const i of n)if("}"!==i&&e)o+=i;else if(!r||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=`(?:${m(o,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,o="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,l.ec)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,l.ec)(i):"^",a+=e}s<i.length-1&&(i[s+1]!==d||s+2<i.length)&&(t+=c)}e=n===d}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,b=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,C=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,y=/^\*\*((\/[\w\.-]+)+)\/?$/,w=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,S=new o.z6(1e4),x=function(){return!1},L=function(){return null};function k(e,t){if(!e)return L;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const n=`${i}_${!!t.trimForExclusions}`;let s,o=S.get(n);return o||(o=_.test(i)?function(e,t){return function(i,n){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(s=v.exec(N(i,t)))?function(e,t){const i=`/${e}`,n=`\\${e}`,s=function(s,o){return"string"!==typeof s?null:o?o===e?t:null:s===e||s.endsWith(i)||s.endsWith(n)?t:null},o=[e];return s.basenames=o,s.patterns=[t],s.allBasenames=o,s}(s[1],i):(t.trimForExclusions?C:b).test(i)?function(e,t){const i=M(e.slice(1,-1).split(",").map((e=>k(e,t))).filter((e=>e!==L)),e),n=i.length;if(!n)return L;if(1===n)return i[0];const s=function(t,n){for(let s=0,o=i.length;s<o;s++)if(i[s](t,n))return e;return null},o=i.find((e=>!!e.allBasenames));o&&(s.allBasenames=o.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);r.length&&(s.allPaths=r);return s}(i,t):(s=y.exec(N(i,t)))?E(s[1].substr(1),i,!0):(s=w.exec(N(i,t)))?E(s[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return L}}(i),S.set(n,o)),D(o,e)}function D(e,t){if("string"===typeof t)return e;const i=function(i,n){return(0,s.KM)(i,t.base,!a.IJ)?e((0,l.j3)(i.substr(t.base.length),r.ir),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function E(e,t,i){const n=r.ir===r.KR.sep,s=n?e:e.replace(g,r.ir),o=r.ir+s,a=r.KR.sep+e;let l;return l=i?function(i,r){return"string"!==typeof i||i!==s&&!i.endsWith(o)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,o){return"string"!==typeof i||i!==s&&(n||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function T(e,t,i){return!(!e||"string"!==typeof t)&&I(e)(t,void 0,i)}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return x;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=k(e,t);if(i===L)return x;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=M(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return L;const s=k(e,i);if(s===L)return L;if("boolean"===typeof t)return s;if(t){const i=t.when;if("string"===typeof i){const t=(t,o,r,a)=>{if(!a||!s(t,o))return null;const l=a(i.replace("$(basename)",(()=>r)));return(0,n.J8)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return s}(i,e[i],t))).filter((e=>e!==L))),s=i.length;if(!s)return L;if(!i.some((e=>!!e.requiresSiblings))){if(1===s)return i[0];const e=function(e,t){let s;for(let o=0,r=i.length;o<r;o++){const r=i[o](e,t);if("string"===typeof r)return r;(0,n.J8)(r)&&(s||(s=[]),s.push(r))}return s?(async()=>{for(const e of s){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,s){let o,a;for(let l=0,d=i.length;l<d;l++){const d=i[l];d.requiresSiblings&&s&&(t||(t=(0,r.EZ)(e)),o||(o=t.substr(0,t.length-(0,r.DZ)(e).length)));const h=d(e,t,o,s);if("string"===typeof h)return h;(0,n.J8)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(o.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(o.allPaths=l);return o}(e,t)}function M(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let s;if(t){s=[];for(let e=0,i=n.length;e<i;e++)s.push(t)}else s=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const o=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?s[i]:null};o.basenames=n,o.patterns=s,o.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(o),r}},95075:(e,t,i)=>{"use strict";i.d(t,{Cv:()=>a,SP:()=>o,vp:()=>s,yP:()=>c});var n=i(78701);function s(e){return o(e,0)}function o(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>o(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),o(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i<n;i++)t=r(e.charCodeAt(i),t);return t}function l(e,t){const i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:32)-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(let s=0;s<i;s++)e[t+s]=n}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let s,o,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(s=a,o=-1,a=0):(s=e.charCodeAt(0),o=0);;){let l=s;if(n.ZG(s)){if(!(o+1<t)){a=s;break}{const t=e.charCodeAt(o+1);n.YK(t)?(o++,l=n.rL(s,t)):l=65533}}else n.YK(s)&&(l=65533);if(r=this._push(i,r,l),o++,!(o<t))break;s=e.charCodeAt(o)}this._buffLen=r,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let l=0;l<64;l+=4)e.setUint32(l,t.getUint32(l,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,l(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let i,n,s,o=this._h0,r=this._h1,a=this._h2,d=this._h3,h=this._h4;for(let c=0;c<80;c++)c<20?(i=r&a|~r&d,n=1518500249):c<40?(i=r^a^d,n=1859775393):c<60?(i=r&a|r&d|a&d,n=2400959708):(i=r^a^d,n=3395469782),s=l(o,5)+i+h+n+e.getUint32(4*c,!1)&4294967295,h=d,d=a,a=l(r,30),r=o,o=s;this._h0=this._h0+o&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+h&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},34277:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+n.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return new n((this.value?[this.value,...t]:t).join(n.sep))}}n.sep=".",n.None=new n("@@none@@"),n.Empty=new n("")},73971:(e,t,i)=>{"use strict";i.d(t,{CP:()=>d,Fr:()=>h,W5:()=>l,d9:()=>u,g_:()=>c,oR:()=>g,v1:()=>p});var n=i(16015),s=i(77048),o=i(30506),r=i(78701),a=i(91387);class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i,s,o;if(this.value=e,"string"!==typeof this.value)throw(0,n.b1)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(s=t.supportThemeIcons)&&void 0!==s&&s,this.supportHtml=null!==(o=t.supportHtml)&&void 0!==o&&o)}appendText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var i;return this.value+=(i=this.supportThemeIcons?(0,s.Qo)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){var i,n;const s=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,o=s>=3?s+1:3;return[`${"`".repeat(o)}${t}`,e,`${"`".repeat(o)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,r.ec)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function d(e){return h(e)?!e.value:!Array.isArray(e)||e.every(d)}function h(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function c(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,o.Xy)(a.o.from(e.baseUri),a.o.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),s=e?e[1]:"",o=i?i[1]:"",r=isFinite(parseInt(o)),a=isFinite(parseInt(s));r&&t.push(`width="${o}"`),a&&t.push(`height="${s}"`)}return{href:e,dimensions:t}}},77048:(e,t,i)=>{"use strict";i.d(t,{Gt:()=>_,Ho:()=>f,JL:()=>p,Qo:()=>d,f$:()=>c,x$:()=>g});var n=i(34835),s=i(78701),o=i(73045);const r="$(",a=new RegExp(`\\$\\(${o.k.iconNameExpression}(?:${o.k.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function d(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function c(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${o.k.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let n=0;for(;;){const s=m.lastIndex,o=m.exec(e),r=e.substring(s,null===o||void 0===o?void 0:o.index);if(r.length>0){t+=r;for(let e=0;e<r.length;e++)i.push(n)}if(!o)break;n+=o[0].length}return{text:t,iconOffsets:i}}function _(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{text:o,iconOffsets:r}=t;if(!r||0===r.length)return(0,n.Oh)(e,o,i);const a=(0,s.j3)(o," "),l=o.length-a.length,d=(0,n.Oh)(e,a,i);if(d)for(const n of d){const e=r[n.start+l]+l;n.start+=e,n.end+=e}return d}},30441:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,a:()=>s});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const s=new n("id#")},11052:(e,t,i)=>{"use strict";i.d(t,{F:()=>s});var n=i(39706);const s=new class{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},2706:(e,t,i)=>{"use strict";var n;i.d(t,{$:()=>n}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.concat=function*(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const n of t)yield*n},e.reduce=function(e,t,i){let n=i;for(const s of e)n=t(n,s);return n},e.slice=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return function*(){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]}()},e.consume=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;const n=[];if(0===i)return[n,t];const s=t[Symbol.iterator]();for(let o=0;o<i;o++){const t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(n||(n={}))},17344:(e,t,i)=>{"use strict";i.d(t,{H_:()=>a,Vd:()=>u,gx:()=>m,kL:()=>p});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const s=new n,o=new n,r=new n,a=new Array(230),l={},d=[],h=Object.create(null),c=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const p of t){const[e,t,m,f,_,v,b,C,y]=p;if(n[t]||(n[t]=!0,d[t]=m,h[m]=t,c[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);s.define(f,_),o.define(f,C||_),r.define(f,y||C||_)}v&&(a[v]=f),b&&(l[b]=f)}g[3]=46}(),function(e){e.toString=function(e){return s.keyCodeToStr(e)},e.fromString=function(e){return s.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return s.keyCodeToStr(e)}}(p||(p={}))},47202:(e,t,i)=>{"use strict";i.d(t,{X4:()=>r,jC:()=>a,r6:()=>l,xo:()=>o});var n=i(5887);class s{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=i(o);if(null===r)return null;n[s]=d(o,r,this.modifierLabels[e])}return n.join(" ")}}const o=new s({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:n.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),r=new s({ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:n.NC({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new s({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),l=new s({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function d(e,t,i){if(null===t)return"";const n=[];return e.ctrlKey&&n.push(i.ctrlKey),e.shiftKey&&n.push(i.shiftKey),e.altKey&&n.push(i.altKey),e.metaKey&&n.push(i.metaKey),""!==t&&n.push(t),n.join(i.separator)}},91811:(e,t,i)=>{"use strict";i.d(t,{$M:()=>r,Z9:()=>s,aZ:()=>l,f1:()=>d});var n=i(16015);function s(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[o(i,t),o(n,t)]:[o(i,t)])}{const i=[];for(let n=0;n<e.length;n++)i.push(o(e[n],t));return new a(i)}}function o(e,t){const i=!!(2048&e),n=!!(256&e);return new r(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}class r{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s}equals(e){return e instanceof r&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,n.b1)("chords");this.chords=e}}class l{constructor(e,t,i,n,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=o}}class d{}},20447:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},53186:(e,t,i)=>{"use strict";i.d(t,{B9:()=>c,F8:()=>u,JT:()=>m,Jz:()=>v,L6:()=>_,Nq:()=>a,OF:()=>g,SL:()=>p,Wf:()=>h,XK:()=>f,b2:()=>b,dk:()=>d,wi:()=>r});var n=i(66870),s=i(2706);let o=null;function r(e){return null===o||void 0===o||o.trackDisposable(e),e}function a(e){null===o||void 0===o||o.markAsDisposed(e)}function l(e,t){null===o||void 0===o||o.setParent(e,t)}function d(e){return null===o||void 0===o||o.markAsSingleton(e),e}function h(e){return"function"===typeof e.dispose&&0===e.dispose.length}function c(e){if(s.$.is(e)){const i=[];for(const n of e)if(n)try{n.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=g((()=>c(t)));return function(e,t){if(o)for(const i of e)o.setParent(i,t)}(t,n),n}function g(e){const t=r({dispose:(0,n.M)((()=>{a(t),e()}))});return t}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,r(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}p.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new p,r(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,r(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,a(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class b{constructor(){this._store=new Map,this._isDisposed=!1,r(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},64450:(e,t,i)=>{"use strict";i.d(t,{S:()=>s});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class s{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},38079:(e,t,i)=>{"use strict";var n,s;i.d(t,{Y9:()=>r,YQ:()=>d,ri:()=>h,z6:()=>l});class o{constructor(e,t){this.uri=e,this.value=t}}class r{constructor(e,t){if(this[n]="ResourceMap",e instanceof r)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:r.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:r.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:r.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new o(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}r.defaultToKey=e=>e.toString();class a{constructor(){this[s]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(s=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class l extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class h{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},33080:(e,t,i)=>{"use strict";i.d(t,{Pz:()=>o,Qc:()=>r});var n=i(9730),s=i(91387);function o(e){return JSON.stringify(e,a)}function r(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return s.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=l(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=l(e[i],t+1))}return e}},90255:(e,t,i)=>{"use strict";i.d(t,{v:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},32060:(e,t,i)=>{"use strict";i.d(t,{Gi:()=>g,Gs:()=>h,WX:()=>c,lg:()=>n,xn:()=>d});var n,s=i(16015),o=i(90388),r=i(78701),a=i(91387),l=i(96682);function d(e,t){return a.o.isUri(e)?(0,r.qq)(e.scheme,t):(0,r.ok)(e,t+":")}function h(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return i.some((t=>d(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.codeSetting="code-setting"}(n||(n={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.KR.join(this._serverRootPath,n.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return s.dL(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const r=this._ports[t],l=this._connectionTokens[t];let d=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(d+=`&tkn=${encodeURIComponent(l)}`),a.o.from({scheme:o.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:d})}};class u{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?c.rewrite(e):e.scheme!==n.file||!o.tY&&o.qB!==`${n.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:n.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}}u.FALLBACK_AUTHORITY="vscode-app";const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"===typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:a.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const s=null===n||void 0===n?void 0:n.get(i);if(s)return t.get(s)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const s=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,s):e[i]=s}}(p||(p={}))},56155:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{N:()=>o,nM:()=>s,uZ:()=>n});class s{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class o{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},53335:(e,t,i)=>{"use strict";i.d(t,{$E:()=>c,I8:()=>s,IU:()=>u,_A:()=>o,fS:()=>h,jB:()=>d,rs:()=>a});var n=i(47624);function s(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((e=>{let[i,n]=e;t[i]=n&&"object"===typeof n?s(n):n})),t}function o(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const s=e[i];"object"!==typeof s||Object.isFrozen(s)||(0,n.fU)(s)||t.push(s)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const s=t(e);if("undefined"!==typeof s)return s;if(Array.isArray(e)){const n=[];for(const s of e)n.push(l(s,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const s in e)r.call(e,s)&&(n[s]=l(e[s],t,i));return i.delete(e),n}return e}function d(e,t){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((s=>{s in e?i&&((0,n.Kn)(e[s])&&(0,n.Kn)(t[s])?d(e[s],t[s],i):e[s]=t[s]):e[s]=t[s]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const s=[];for(n in e)s.push(n);s.sort();const o=[];for(n in t)o.push(n);if(o.sort(),!h(s,o))return!1;for(i=0;i<s.length;i++)if(!h(e[s[i]],t[s[i]]))return!1}return!0}function c(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const s of e)n[s]=i(s);return n}},43704:(e,t,i)=>{"use strict";i.d(t,{EH:()=>d,nJ:()=>c,UV:()=>h,gp:()=>u,Dz:()=>p.Dz,nK:()=>s.nK,aK:()=>s.aK,bx:()=>p.bx,bk:()=>s.bk,Be:()=>s.Be,DN:()=>n.DN,rD:()=>p.rD,GN:()=>p.GN,aq:()=>p.aq,uh:()=>n.uh,jx:()=>p.DN,c8:()=>n.c8,PS:()=>n.PS,F_:()=>m});var n=i(82297),s=i(205),o=i(56702),r=i(53186),a=i(38530),l=i(91870);function d(e){return new g(new a.IZ(void 0,void 0,e),e,void 0,void 0)}function h(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function c(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e){const t=new r.SL,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,r.OF)((()=>{i.dispose(),t.dispose()}))}class g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var s,o;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(s=this.createChangeSummary)||void 0===s?void 0:s.call(this),null===(o=(0,l.jl)())||void 0===o||o.handleAutorunCreated(this),this._runIfNeeded(),(0,r.wi)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.Nq)(this)}_runIfNeeded(){var e,t,i;if(3===this.state)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const s=this.disposed;try{if(!s){null===(e=(0,l.jl)())||void 0===e||e.handleAutorunTriggered(this);const i=this.changeSummary;this.changeSummary=null===(t=this.createChangeSummary)||void 0===t?void 0:t.call(this),this._runFn(this,i)}}finally{s||null===(i=(0,l.jl)())||void 0===i||i.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,o.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=g}(d||(d={}));var p=i(92441);function m(e,t,i){return new Promise(((n,s)=>{let o=!0,r=!1;const a=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),l=d((e=>{const{isFinished:t,error:i,state:d}=a.read(e);(t||i)&&(o?r=!0:l.dispose(),i?s(!0===i?d:i):n(d))}));o=!1,r&&l.dispose()}))}},82297:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>m,DN:()=>y,Hr:()=>f,Jn:()=>h,MK:()=>d,Nc:()=>u,PS:()=>p,c8:()=>_,hm:()=>g,mT:()=>c,uh:()=>b});var n=i(38530),s=i(91870);let o,r,a,l;function d(e){o=e}function h(e){r=e}function c(e){a=e}class u{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return a({owner:i,debugName:()=>{const e=(0,n.$P)(s);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`}},(e=>s(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}}class g extends u{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function p(e,t){const i=new v(e,t);try{e(i)}finally{i.finish()}}function m(e){if(l)e(l);else{const t=new v(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function f(e,t){const i=new v(e,t);try{await e(i)}finally{i.finish()}}function _(e,t,i){e?t(e):p(t,i)}class v{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,s.jl)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.$P)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let i=0;i<t.length;i++){const{observer:e,observable:n}=t[i];e.endUpdate(n)}this.updatingObservers=null,null===(e=(0,s.jl)())||void 0===e||e.handleEndTransaction()}}function b(e,t){return"string"===typeof e?new C(void 0,e,t):new C(e,void 0,t)}class C extends g{get debugName(){var e;return null!==(e=new n.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"ObservableValue"}constructor(e,t,i){super(),this._owner=e,this._debugName=t,this._value=i}get(){return this._value}set(e,t,i){var n;if(this._value===e)return;let o;t||(t=o=new v((()=>{}),(()=>`Setting ${this.debugName}`)));try{const o=this._value;this._setValue(e),null===(n=(0,s.jl)())||void 0===n||n.handleObservableChanged(this,{oldValue:o,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{o&&o.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function y(e,t){return"string"===typeof e?new w(void 0,e,t):new w(e,void 0,t)}class w extends C{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},38530:(e,t,i)=>{"use strict";i.d(t,{$P:()=>l,IZ:()=>n});class n{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){var i;const n=o.get(e);if(n)return n;const d=function(e,t){const i=o.get(e);if(i)return i;const n=t.owner?function(e){var t;const i=a.get(e);if(i)return i;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=null!==(t=r.get(n))&&void 0!==t?t:0;s++,r.set(n,s);const o=1===s?n:`${n}#${s}`;return a.set(e,o),o}(t.owner)+".":"";let s;const d=t.debugNameSource;if(void 0!==d){if("function"!==typeof d)return n+d;if(s=d(),void 0!==s)return n+s}const h=t.referenceFn;if(void 0!==h&&(s=l(h),void 0!==s))return n+s;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return n+i}return}(e,t);if(d){let t=null!==(i=s.get(d))&&void 0!==i?i:0;t++,s.set(d,t);const n=1===t?d:`${d}#${t}`;return o.set(e,n),n}return}(e,this)}}const s=new Map,o=new WeakMap;const r=new Map,a=new WeakMap;function l(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return null===n||void 0===n?void 0:n.trim()}},205:(e,t,i)=>{"use strict";i.d(t,{Be:()=>u,aK:()=>c,bk:()=>h,kA:()=>g,nK:()=>d});var n=i(56702),s=i(53186),o=i(82297),r=i(38530),a=i(91870);const l=(e,t)=>e===t;function d(e,t){return void 0!==t?new p(new r.IZ(e,void 0,t),t,void 0,void 0,void 0,l):new p(new r.IZ(void 0,void 0,e),e,void 0,void 0,void 0,l)}function h(e,t){var i;return new p(new r.IZ(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function c(e,t){var i;return new p(new r.IZ(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function u(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new s.SL;return new p(new r.IZ(n,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),l)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new s.SL;return new p(new r.IZ(n,void 0,i),(e=>{o.clear();const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>o.dispose()),l)}(0,o.mT)(h);class p extends o.hm{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;var r,l;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=s,this._equalityComparator=o,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(r=this.createChangeSummary)||void 0===r?void 0:r.call(this),null===(l=(0,a.jl)())||void 0===l||l.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=0!==this.state,s=this.value;this.state=3;const o=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,o)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=n&&!this._equalityComparator(s,this.value);if(null===(t=(0,a.jl)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:s,newValue:this.value,change:void 0,didChange:r,hadValue:n}),r)for(const a of this.observers)a.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}},91870:(e,t,i)=>{"use strict";let n;function s(e){n=e}function o(){return n}i.d(t,{EK:()=>s,Qy:()=>r,jl:()=>o});class r{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let n="";function s(e){if("length"in e)for(const t of e)t&&s(t);else"text"in e?(n+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}s(e);const o=[n,...t];return o.push(...i),o}([a(c("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),d(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),d(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),d(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return d(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("derived recomputed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([l("observable from event triggered"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("autorun"),d(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([l("transaction"),d(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return d(e,{color:"black"})}function l(e){return d(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{color:"black"};const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(n=i,Object.entries(n).reduce(((e,t)=>{let[i,n]=t;return`${e}${i}:${n};`}),""))};var n}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",n=!0;for(const s of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${h(s,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",n=!0;for(const[s,o]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${s}: ${h(o,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function c(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}},92441:(e,t,i)=>{"use strict";i.d(t,{DN:()=>f,Dz:()=>l,GN:()=>p,Zg:()=>b,aq:()=>u,bx:()=>v,rD:()=>h});var n=i(53186),s=i(82297),o=i(38530),r=i(205),a=i(91870);function l(e){return new d(e)}class d extends s.Nc{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function h(e,t){return new c(e,t)}class c extends s.hm{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,o=!this.hasValue||n!==i;let r=!1;o&&(this.value=i,this.hasValue&&(r=!0,(0,s.c8)(c.globalTransaction,(e=>{var t;null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue});for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue})}}getDebugName(){return(0,o.$P)(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function u(e,t){return new g(e,t)}!function(e){e.Observer=c,e.batchEventsGlobally=function(e,t){let i=!1;void 0===c.globalTransaction&&(c.globalTransaction=e,i=!0);try{t()}finally{i&&(c.globalTransaction=void 0)}}}(h||(h={}));class g extends s.hm{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,s.PS)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function p(e){return"string"===typeof e?new m(e):new m(void 0,e)}class m extends s.hm{get debugName(){var e;return null!==(e=new o.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,s.PS)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function f(e,t){const i=new _(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.OF)((()=>{e.removeObserver(i)}))}(0,s.Jn)((function(e){const t=new _(!1,void 0);return e.addObserver(t),(0,n.OF)((()=>{e.removeObserver(t)}))})),(0,s.MK)(f);class _{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function v(e){let t;return(0,r.nK)((i=>(t=e(i,t),t)))}function b(e,t,i,n){let s=new C(i,n);return(0,r.bk)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{s.dispose(),s=new C(i)}},(e=>(s.setItems(t.read(e)),s.getItems())))}class C{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const s of e){const e=this._keySelector?this._keySelector(s):s;let o=this._cache.get(e);if(o)i.delete(e);else{const t=new n.SL;o={out:this._map(s,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(const n of i){this._cache.get(n).store.dispose(),this._cache.delete(n)}this._items=t}getItems(){return this._items}}},96682:(e,t,i)=>{"use strict";i.d(t,{DB:()=>x,DZ:()=>N,EZ:()=>D,Fv:()=>S,Gf:()=>L,KR:()=>w,Ku:()=>C,XX:()=>k,ir:()=>E});var n=i(3739);const s=65,o=97,r=90,a=122,l=46,d=47,h=92,c=58;class u extends Error{constructor(e,t,i){let n;"string"===typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${s} ${n} of type ${t}`;o+=". Received type "+typeof i,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const p="win32"===n.Jv;function m(e){return e===d||e===h}function f(e){return e===d}function _(e){return e>=s&&e<=r||e>=o&&e<=a}function v(e,t,i,n){let s="",o=0,r=-1,a=0,h=0;for(let c=0;c<=e.length;++c){if(c<e.length)h=e.charCodeAt(c);else{if(n(h))break;h=d}if(n(h)){if(r===c-1||1===a);else if(2===a){if(s.length<2||2!==o||s.charCodeAt(s.length-1)!==l||s.charCodeAt(s.length-2)!==l){if(s.length>2){const e=s.lastIndexOf(i);-1===e?(s="",o=0):(s=s.slice(0,e),o=s.length-1-s.lastIndexOf(i)),r=c,a=0;continue}if(0!==s.length){s="",o=0,r=c,a=0;continue}}t&&(s+=s.length>0?`${i}..`:"..",o=2)}else s.length>0?s+=`${i}${e.slice(r+1,c)}`:s=e.slice(r+1,c),o=c-r-1;r=c,a=0}else h===l&&-1!==a?++a:a=-1}return s}function b(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const C={resolve(){let e="",t="",i=!1;for(let s=arguments.length-1;s>=-1;s--){let o;if(s>=0){if(o=s<0||arguments.length<=s?void 0:arguments[s],g(o,"path"),0===o.length)continue}else 0===e.length?o=n.Vj():(o={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${e}`]||n.Vj(),(void 0===o||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===h)&&(o=`${e}\\`));const r=o.length;let a=0,l="",d=!1;const u=o.charCodeAt(0);if(1===r)m(u)&&(a=1,d=!0);else if(m(u))if(d=!0,m(o.charCodeAt(1))){let e=2,t=e;for(;e<r&&!m(o.charCodeAt(e));)e++;if(e<r&&e!==t){const i=o.slice(t,e);for(t=e;e<r&&m(o.charCodeAt(e));)e++;if(e<r&&e!==t){for(t=e;e<r&&!m(o.charCodeAt(e));)e++;e!==r&&e===t||(l=`\\\\${i}\\${o.slice(t,e)}`,a=e)}}}else a=1;else _(u)&&o.charCodeAt(1)===c&&(l=o.slice(0,2),a=2,r>2&&m(o.charCodeAt(2))&&(d=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=d,d&&e.length>0)break}return t=v(t,!i,"\\",m),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let i,n=0,s=!1;const o=e.charCodeAt(0);if(1===t)return f(o)?"\\":e;if(m(o))if(s=!0,m(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!m(e.charCodeAt(s));)s++;if(s<t&&s!==o){const r=e.slice(o,s);for(o=s;s<t&&m(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&!m(e.charCodeAt(s));)s++;if(s===t)return`\\\\${r}\\${e.slice(o)}\\`;s!==o&&(i=`\\\\${r}\\${e.slice(o,s)}`,n=s)}}}else n=1;else _(o)&&e.charCodeAt(1)===c&&(i=e.slice(0,2),n=2,t>2&&m(e.charCodeAt(2))&&(s=!0,n=3));let r=n<t?v(e.slice(n),!s,"\\",m):"";return 0!==r.length||s||(r="."),r.length>0&&m(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?s?`\\${r}`:r:s?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return m(i)||t>2&&_(i)&&e.charCodeAt(1)===c&&m(e.charCodeAt(2))},join(){if(0===arguments.length)return".";let e,t;for(let s=0;s<arguments.length;++s){const i=s<0||arguments.length<=s?void 0:arguments[s];g(i,"path"),i.length>0&&(void 0===e?e=t=i:e+=`\\${i}`)}if(void 0===e)return".";let i=!0,n=0;if("string"===typeof t&&m(t.charCodeAt(0))){++n;const e=t.length;e>1&&m(t.charCodeAt(1))&&(++n,e>2&&(m(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n<e.length&&m(e.charCodeAt(n));)n++;n>=2&&(e=`\\${e.slice(n)}`)}return C.normalize(e)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const i=C.resolve(e),n=C.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===h;)s++;let o=e.length;for(;o-1>s&&e.charCodeAt(o-1)===h;)o--;const r=o-s;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const d=l-a,c=r<d?r:d;let u=-1,p=0;for(;p<c;p++){const i=e.charCodeAt(s+p);if(i!==t.charCodeAt(a+p))break;i===h&&(u=p)}if(p!==c){if(-1===u)return n}else{if(d>c){if(t.charCodeAt(a+p)===h)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}r>c&&(e.charCodeAt(s+p)===h?u=p:2===p&&(u=3)),-1===u&&(u=0)}let m="";for(p=s+u+1;p<=o;++p)p!==o&&e.charCodeAt(p)!==h||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${n.slice(a,l)}`:(n.charCodeAt(a)===h&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=C.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===c&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const s=e.charCodeAt(0);if(1===t)return m(s)?e:".";if(m(s)){if(i=n=1,m(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!m(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&m(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&!m(e.charCodeAt(s));)s++;if(s===t)return e;s!==o&&(i=n=s+1)}}}}else _(s)&&e.charCodeAt(1)===c&&(i=t>2&&m(e.charCodeAt(2))?3:2,n=i);let o=-1,r=!0;for(let a=t-1;a>=n;--a)if(m(e.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,s=-1,o=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===c&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(m(l)){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(m(e.charCodeAt(i))){if(!o){n=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname(e){g(e,"path");let t=0,i=-1,n=0,s=-1,o=!0,r=0;e.length>=2&&e.charCodeAt(1)===c&&_(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!o){n=a+1;break}}else-1===s&&(o=!1,s=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===s||0===r||1===r&&i===s-1&&i===n+1?"":e.slice(i,s)},format:b.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,s=e.charCodeAt(0);if(1===i)return m(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(s)){if(n=1,m(e.charCodeAt(1))){let t=2,s=t;for(;t<i&&!m(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&m(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&!m(e.charCodeAt(t));)t++;t===i?n=t:t!==s&&(n=t+1)}}}}else if(_(s)&&e.charCodeAt(1)===c){if(i<=2)return t.root=t.dir=e,t;if(n=2,m(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let o=-1,r=n,a=-1,d=!0,h=e.length-1,u=0;for(;h>=n;--h)if(s=e.charCodeAt(h),m(s)){if(!d){r=h+1;break}}else-1===a&&(d=!1,a=h+1),s===l?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1);return-1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,o),t.base=e.slice(r,a),t.ext=e.slice(o,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y=(()=>{if(p){const e=/\\/g;return()=>{const t=n.Vj().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n.Vj()})(),w={resolve(){let e="",t=!1;for(let i=arguments.length-1;i>=-1&&!t;i--){const n=i>=0?i<0||arguments.length<=i?void 0:arguments[i]:y();g(n,"path"),0!==n.length&&(e=`${n}/${e}`,t=n.charCodeAt(0)===d)}return e=v(e,!t,"/",f),t?`/${e}`:e.length>0?e:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===d,i=e.charCodeAt(e.length-1)===d;return 0===(e=v(e,!t,"/",f)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===d),join(){if(0===arguments.length)return".";let e;for(let t=0;t<arguments.length;++t){const i=t<0||arguments.length<=t?void 0:arguments[t];g(i,"path"),i.length>0&&(void 0===e?e=i:e+=`/${i}`)}return void 0===e?".":w.normalize(e)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=w.resolve(e))===(t=w.resolve(t)))return"";const i=e.length,n=i-1,s=t.length-1,o=n<s?n:s;let r=-1,a=0;for(;a<o;a++){const i=e.charCodeAt(1+a);if(i!==t.charCodeAt(1+a))break;i===d&&(r=a)}if(a===o)if(s>o){if(t.charCodeAt(1+a)===d)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(e.charCodeAt(1+a)===d?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==d||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===d;let i=-1,n=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===d){if(!n){i=s;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===d){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===d){if(!o){n=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname(e){g(e,"path");let t=-1,i=0,n=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==d)-1===n&&(s=!1,n=r+1),a===l?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){i=r+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:b.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===d;let n;i?(t.root="/",n=1):n=0;let s=-1,o=0,r=-1,a=!0,h=e.length-1,c=0;for(;h>=n;--h){const t=e.charCodeAt(h);if(t!==d)-1===r&&(a=!1,r=h+1),t===l?-1===s?s=h:1!==c&&(c=1):-1!==s&&(c=-1);else if(!a){o=h+1;break}}if(-1!==r){const n=0===o&&i?1:o;-1===s||0===c||1===c&&s===r-1&&s===o+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,s),t.base=e.slice(n,r),t.ext=e.slice(s,r))}return o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=C.win32=C,w.posix=C.posix=w;const S=p?C.normalize:w.normalize,x=p?C.resolve:w.resolve,L=p?C.relative:w.relative,k=p?C.dirname:w.dirname,D=p?C.basename:w.basename,N=p?C.extname:w.extname,E=p?C.sep:w.sep},90388:(e,t,i)=>{"use strict";i.d(t,{$L:()=>I,Dt:()=>$,ED:()=>D,G6:()=>K,IJ:()=>E,OS:()=>V,dK:()=>P,dz:()=>N,fn:()=>B,gn:()=>A,i7:()=>j,qB:()=>M,r:()=>z,tY:()=>T,tq:()=>R,un:()=>q,vU:()=>U});var n,s,o=i(5887);const r="en";let a,l,d=!1,h=!1,c=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=!1,v=!1,b=r,C=null,y=null;const w=globalThis;let S;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?S=w.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(n=null===process||void 0===process?void 0:process.versions)||void 0===n?void 0:n.node)&&(S=process);const x="string"===typeof(null===(s=null===S||void 0===S?void 0:S.versions)||void 0===s?void 0:s.electron),L=x&&"renderer"===(null===S||void 0===S?void 0:S.type);if("object"===typeof S){d="win32"===S.platform,h="darwin"===S.platform,c="linux"===S.platform,u=c&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,m=x,_=!!S.env.CI||!!S.env.BUILD_ARTIFACTSTAGINGDIRECTORY,a=r,b=r;const e=S.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];a=t.locale,C=t.osLocale,b=i||r,y=t._translationsConfigFile}catch(G){}g=!0}else if("object"!==typeof navigator||L)console.error("Unable to resolve platform.");else{l=navigator.userAgent,d=l.indexOf("Windows")>=0,h=l.indexOf("Macintosh")>=0,f=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=l.indexOf("Linux")>=0,v=(null===l||void 0===l?void 0:l.indexOf("Mobi"))>=0,p=!0;a=o.aj(o.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||r,b=a,C=navigator.language}let k=0;h?k=1:d?k=3:c&&(k=2);const D=d,N=h,E=c,T=g,I=p,M=p&&"function"===typeof w.importScripts?w.origin:void 0,A=f,R=v,O=l,P=b,F="function"===typeof w.postMessage&&!w.importScripts,B=(()=>{if(F){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i<n;i++){const n=e[i];if(n.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void n.callback()}}));let t=0;return i=>{const n=++t;e.push({id:n,callback:i}),w.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),V=h||f?2:d?1:3;let W=!0,H=!1;function z(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);W=513===t[0]}return W}const j=!!(O&&O.indexOf("Chrome")>=0),U=!!(O&&O.indexOf("Firefox")>=0),K=!!(!j&&O&&O.indexOf("Safari")>=0),q=!!(O&&O.indexOf("Edg/")>=0),$=!!(O&&O.indexOf("Android")>=0)},3739:(e,t,i)=>{"use strict";i.d(t,{Jv:()=>l,OB:()=>a,Vj:()=>r});var n=i(90388);let s;const o=globalThis.vscode;if("undefined"!==typeof o&&"undefined"!==typeof o.process){const e=o.process;s={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else s="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return n.ED?"win32":n.dz?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const r=s.cwd,a=s.env,l=s.platform},32906:(e,t,i)=>{"use strict";var n;i.d(t,{e:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],s={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return i(s)||n.push(s),i(o)||n.push(o),n}}(n||(n={}))},30506:(e,t,i)=>{"use strict";i.d(t,{AH:()=>v,DZ:()=>m,EZ:()=>p,Hx:()=>g,SF:()=>c,Vb:()=>S,Vo:()=>_,XX:()=>f,Xy:()=>u,i3:()=>C,lX:()=>b,z_:()=>d});var n=i(51082),s=i(32060),o=i(96682),r=i(90388),a=i(78701),l=i(91387);function d(e){return(0,l.q)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t?0:(0,a.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.scheme===t.scheme){if(e.scheme===s.lg.file)return n.KM(d(e),d(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(y(e.authority,t.authority))return n.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return l.o.joinPath(e,...i)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return o.KR.basename(e.path)}extname(e){return o.KR.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===s.lg.file?t=l.o.file(o.XX(d(e))).path:(t=o.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===s.lg.file?l.o.file(o.Fv(d(e))).path:o.KR.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!y(e.authority,t.authority))return;if(e.scheme===s.lg.file){const i=o.Gf(d(e),d(t));return r.ED?n.ej(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return o.KR.relative(i,a)}resolvePath(e,t){if(e.scheme===s.lg.file){const i=l.o.file(o.DB(d(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.fn(t),e.with({path:o.KR.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.qq)(e,t)}hasTrailingPathSeparator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ir;if(e.scheme===s.lg.file){const i=d(e);return i.length>n.yj(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ir;return w(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ir,i=!1;if(e.scheme===s.lg.file){const s=d(e);i=void 0!==s&&s.length===n.yj(s).length&&s[s.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||w(e,t)?e:e.with({path:e.path+"/"})}}const c=new h((()=>!1)),u=(new h((e=>e.scheme!==s.lg.file||!r.IJ)),new h((e=>!0)),c.isEqual.bind(c)),g=(c.isEqualOrParent.bind(c),c.getComparisonKey.bind(c),c.basenameOrAuthority.bind(c)),p=c.basename.bind(c),m=c.extname.bind(c),f=c.dirname.bind(c),_=c.joinPath.bind(c),v=c.normalizePath.bind(c),b=c.relativePath.bind(c),C=c.resolvePath.bind(c),y=(c.isAbsolutePath.bind(c),c.isEqualAuthority.bind(c)),w=c.hasTrailingPathSeparator.bind(c);c.removeTrailingPathSeparator.bind(c),c.addTrailingPathSeparator.bind(c);var S;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(S||(S={}))},91181:(e,t,i)=>{"use strict";i.d(t,{Rm:()=>r});var n=i(39706),s=i(53186);class o{constructor(e,t,i,n,s,o,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,s|=0,o|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),r+s>o&&(r=o-s),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=o,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new o(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new o(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:s,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends s.JT{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new o(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new d(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class d{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e<t?(r=e+.75*i,a=t-.75*i):(r=e-.75*i,a=t+.75*i),n=l(e,r),s=l(a,t),o=.33,function(e){return e<o?n(e/o):s((e-o)/(1-o))}}var n,s,o;return l(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return d.start(e,t,i)}static start(e,t,i){i+=10;const n=Date.now()-10;return new d(e,t,n,i)}}},28889:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n,s=i(78701);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",i="warning",n="warn",o="info",r="ignore";e.fromValue=function(r){return r?s.qq(t,r)?e.Error:s.qq(i,r)||s.qq(n,r)?e.Warning:s.qq(o,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return o;default:return r}}}(n||(n={}));const o=n},6617:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});const n=globalThis.performance&&"function"===typeof globalThis.performance.now;class s{static create(e){return new s(e)}constructor(e){this._now=n&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},78701:(e,t,i)=>{"use strict";i.d(t,{$i:()=>$,B4:()=>re,C8:()=>Q,Fw:()=>C,GF:()=>_,HO:()=>z,IO:()=>v,J_:()=>j,K7:()=>Z,Kw:()=>ee,LC:()=>y,Mh:()=>A,P1:()=>R,PJ:()=>te,Qe:()=>G,R1:()=>f,T5:()=>N,TT:()=>L,Ut:()=>K,V8:()=>w,W1:()=>W,WU:()=>l,YK:()=>P,YU:()=>h,ZG:()=>O,ZH:()=>B,ZK:()=>ae,ab:()=>Y,c1:()=>X,df:()=>T,ec:()=>c,fA:()=>d,fy:()=>u,j3:()=>g,j_:()=>D,m5:()=>r,mK:()=>E,oH:()=>se,oL:()=>p,ok:()=>M,ow:()=>S,qq:()=>I,qu:()=>x,rL:()=>F,uS:()=>J,un:()=>m,uq:()=>b,vH:()=>H,vU:()=>le,zY:()=>k});var n,s=i(40084),o=i(20447);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return 0===i.length?e:e.replace(a,(function(e,t){const n=parseInt(t,10);return isNaN(n)||n<0||n>=i.length?e:i[n]}))}function d(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function h(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function c(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return p(g(e,t),t)}function g(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function p(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let s=n,o=-1;for(;o=e.lastIndexOf(t,s-1),-1!==o&&o+i===s;){if(0===o)return"";s=o}return e.substring(0,s)}function m(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e){return e.replace(/\*/g,"")}function _(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("Cannot create regex from empty string");t||(e=c(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function v(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function b(e){return e.split(/\r\n|\r|\n/)}function C(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(n.length/2);s++)i.push(n[2*s]+(null!==(t=n[2*s+1])&&void 0!==t?t:""));return i}function y(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;for(let n=t;n<i;n++){const i=e.charCodeAt(n);if(32!==i&&9!==i)return e.substring(t,n)}return e.substring(t,i)}function S(e){for(let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;t>=0;t--){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function x(e,t){return e<t?-1:e>t?1:0}function L(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;for(;i<n&&s<o;i++,s++){const n=e.charCodeAt(i),o=t.charCodeAt(s);if(n<o)return-1;if(n>o)return 1}const r=n-i,a=o-s;return r<a?-1:r>a?1:0}function k(e,t){return D(e,t,0,e.length,0,t.length)}function D(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.length;for(;i<n&&s<o;i++,s++){let r=e.charCodeAt(i),a=t.charCodeAt(s);if(r===a)continue;if(r>=128||a>=128)return L(e.toLowerCase(),t.toLowerCase(),i,n,s,o);E(r)&&(r-=32),E(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=o-s;return r<a?-1:r>a?1:0}function N(e){return e>=48&&e<=57}function E(e){return e>=97&&e<=122}function T(e){return e>=65&&e<=90}function I(e,t){return e.length===t.length&&0===D(e,t)}function M(e,t){const i=t.length;return!(t.length>e.length)&&0===D(e,t,0,i)}function A(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function R(e,t){const i=Math.min(e.length,t.length);let n;const s=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(s-n)!==t.charCodeAt(o-n))return n;return i}function O(e){return 55296<=e&&e<=56319}function P(e){return 56320<=e&&e<=57343}function F(e,t){return t-56320+(e-55296<<10)+65536}function B(e,t,i){const n=e.charCodeAt(i);if(O(n)&&i+1<t){const t=e.charCodeAt(i+1);if(P(t))return F(n,t)}return n}class V{get offset(){return this._offset}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(P(i)&&t>1){const n=e.charCodeAt(t-2);if(O(n))return F(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=B(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class W{get offset(){return this._iterator.offset}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._iterator=new V(e,t)}nextGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,s=e.getGraphemeBreakType(t.nextCodePoint());if(ie(n,s)){t.setOffset(i);break}n=s}return t.offset-i}prevGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,s=e.getGraphemeBreakType(t.prevCodePoint());if(ie(s,n)){t.setOffset(i);break}n=s}return i-t.offset}eol(){return this._iterator.eol()}}function H(e,t){return new W(e,t).nextGraphemeLength()}function z(e,t){return new W(e,t).prevGraphemeLength()}function j(e,t){t>0&&P(e.charCodeAt(t))&&t--;const i=t+H(e,t);return[i-z(e,i),i]}let U;function K(e){return U||(U=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),U.test(e)}const q=/^[\t\n\r\x20-\x7E]*$/;function $(e){return q.test(e)}const G=/[\u2028\u2029]/;function Y(e){return G.test(e)}function Z(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function J(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ee(e){return!!e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function te(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function ie(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ne{static getInstance(){return ne._INSTANCE||(ne._INSTANCE=new ne),ne._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(e<t[3*n])n*=2;else{if(!(e>t[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new V(t,e);let n=i.prevCodePoint();for(;oe(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!Q(n))return;let s=i.offset;if(s>0){8205===i.prevCodePoint()&&(s=i.offset)}return s}(e,t);if(void 0!==i)return i;const n=new V(t,e);return n.prevCodePoint(),n.offset}function oe(e){return 127995<=e&&e<=127999}ne._INSTANCE=null;const re="\xa0";class ae{static getInstance(e){return n.cache.get(Array.from(e))}static getLocales(){return n._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=ae,ae.ambiguousCharacterData=new o.o((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ae.cache=new s.t((e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[n,s]of e)t.has(n)&&i.set(n,s);return i}const s=n.ambiguousCharacterData.value;let o,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const n of r){o=i(o,t(s[n]))}const a=function(e,t){const i=new Map(e);for(const[n,s]of t)i.set(n,s);return i}(t(s._common),o);return new n(a)})),ae._locales=new o.o((()=>Object.keys(n.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class le{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(le.getRawData())),this._data}static isInvisibleCharacter(e){return le.getData().has(e)}static get codePoints(){return le.getData()}}le._data=void 0},76294:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=Symbol("MicrotaskDelay")},61700:(e,t,i)=>{"use strict";i.d(t,{Id:()=>d});var n=i(78701);class s{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class o{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.TT)(e,this._value,0,e.length,this._from,this._to):(0,n.j_)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class r{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.TT)(e,this._value,0,e.length,this._from,this._to):(0,n.j_)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new r(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,n.zY)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,n.zY)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,n.qu)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,n.qu)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class l{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}get heightRight(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}class d{static forUris(){return new d(new a(arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!1))}static forStrings(){return new d(new s)}static forConfigKeys(){return new d(new o)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const s=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),s.push([0,n]),n=n.mid}}const o=n.value;n.value=t,n.key=e;for(let r=s.length-1;r>=0;r--){const e=s[r][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=s[r][0],i=s[r+1][0];if(1===t&&1===i)s[r][1]=e.rotateLeft();else if(-1===t&&-1===i)s[r][1]=e.rotateRight();else if(1===t&&-1===i)e.right=s[r+1][1]=s[r+1][1].rotateRight(),s[r][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=s[r+1][1]=s[r+1][1].rotateLeft(),s[r][1]=e.rotateRight()}if(r>0)switch(s[r-1][0]){case-1:s[r-1][1].left=s[r][1];break;case 1:s[r-1][1].right=s[r][1];break;case 0:s[r-1][1].mid=s[r][1]}else this._root=s[0][1]}}return o}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),s=[];let o=this._root;for(;o;){const e=n.cmp(o.segment);if(e>0)s.push([-1,o]),o=o.left;else if(e<0)s.push([1,o]),o=o.right;else{if(!n.hasNext())break;n.next(),s.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const e=this._min(o.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),o.key=t,o.value=i,o.segment=n}}else{const e=null!==(i=o.left)&&void 0!==i?i:o.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},73045:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});var n,s,o=i(61542);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(o.l.error);const[,s,r]=n,a=["codicon","codicon-"+s];return r&&a.push("codicon-modifier-"+r.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||n.isThemeColor(e.color))};const s=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=s.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(s||(s={}))},47624:(e,t,i)=>{"use strict";function n(e){return"string"===typeof e}function s(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function r(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function d(e){return"undefined"===typeof e}function h(e){return!c(e)}function c(e){return d(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(c(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let n=0;n<i;n++)f(e[n],t[n])}function f(e,t){if(n(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch(i){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{$K:()=>h,D8:()=>m,HD:()=>n,Jp:()=>c,Kn:()=>s,TW:()=>a,cW:()=>g,fU:()=>o,hj:()=>r,jn:()=>l,mf:()=>p,o8:()=>d,p_:()=>u})},47228:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function s(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:()=>s,K:()=>n})},91387:(e,t,i)=>{"use strict";i.d(t,{o:()=>c,q:()=>_});var n=i(96682),s=i(90388);const o=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;const l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,n,s){let h=arguments.length>5&&void 0!==arguments[5]&&arguments[5];"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||l),this.query=n||l,this.fragment=s||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:s,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===i?i=this.authority:null===i&&(i=l),void 0===n?n=this.path:null===n&&(n=l),void 0===s?s=this.query:null===s&&(s=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&i===this.authority&&n===this.path&&s===this.query&&o===this.fragment?this:new g(t,i,n,s,o)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=h.exec(e);return i?new g(i[2]||l,y(i[4]||l),y(i[5]||l),y(i[7]||l),y(i[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(s.ED&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return t=s.ED&&"file"===e.scheme?c.file(n.Ku.join(_(e,!0),...o)).path:n.KR.join(e.path,...o),e.with({path:t})}toString(){return v(this,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof c)return e;{const n=new g(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===u&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const u=s.ED?1:void 0;class g extends c{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let n,s=-1;for(let o=0;o<e.length;o++){const r=e.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==s&&(n+=encodeURIComponent(e.substring(s,o)),s=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));const t=p[r];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,o)),s=-1),n+=t):-1===s&&(s=o)}}return-1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function f(e){let t;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);35===n||63===n?(void 0===t&&(t=e.substr(0,i)),t+=p[n]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,s.ED&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let n="",{scheme:s,authority:o,path:r,query:a,fragment:l}=e;if(s&&(n+=s,n+=":"),(o||"file"===s)&&(n+=d,n+=d),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?n+=i(o,!1,!0):(n+=i(o.substr(0,e),!1,!0),n+=o.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:m(l,!1,!1)),n}function b(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const C=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(C)?e.replace(C,(e=>b(e))):e}},94913:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let n=0;n<256;n++)i.push(n.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let n=0,s="";return s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s}}()},48398:(e,t,i)=>{"use strict";i.d(t,{H:()=>m});var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,c.languages.register(e);const i=p.getOrCreate(t);c.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),c.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();c.languages.setLanguageConfiguration(t,e.conf)}))}},67709:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(4609).then(i.bind(i,54609))})},41777:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9530).then(i.bind(i,29530))})},26525:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(4535).then(i.bind(i,34535))})},52016:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(5682).then(i.bind(i,45682))})},7067:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(7043).then(i.bind(i,97043))})},86543:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(2262).then(i.bind(i,22262))})},59134:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(6062).then(i.bind(i,96062))})},65340:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(1222).then(i.bind(i,11222))})},7389:(e,t,i)=>{"use strict";var n=i(48398);(0,n.H)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(4231).then(i.bind(i,44231))}),(0,n.H)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(4231).then(i.bind(i,44231))})},66493:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(4628).then(i.bind(i,84628))})},12867:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>i.e(5685).then(i.bind(i,85685))})},78859:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(6659).then(i.bind(i,16659))})},80198:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(1410).then(i.bind(i,1410))})},39019:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(6010).then(i.bind(i,56010))})},33693:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(7828).then(i.bind(i,57828))})},76434:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(6435).then(i.bind(i,96435))})},16842:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(8504).then(i.bind(i,68504))})},14983:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(835).then(i.bind(i,10835))})},61466:(e,t,i)=>{"use strict";var n=i(48398);(0,n.H)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAutoInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAngleInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagBracketInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAngleInterpolationBracket))}),(0,n.H)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagBracketInterpolationBracket))}),(0,n.H)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAutoInterpolationDollar))}),(0,n.H)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(3164).then(i.bind(i,83164)).then((e=>e.TagAutoInterpolationBracket))})},56454:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7852).then(i.bind(i,57852))})},76799:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(1460).then(i.bind(i,91460))})},29679:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(453).then(i.bind(i,60453))})},47281:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(3230).then(i.bind(i,3230))})},13078:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(4859).then(i.bind(i,14859))})},55799:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(346).then(i.bind(i,40346))})},45115:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(5467).then(i.bind(i,75467))})},41645:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(5319).then(i.bind(i,15319))})},82686:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(6914).then(i.bind(i,56914))})},86703:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(8297).then(i.bind(i,98297))})},1072:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(5484).then(i.bind(i,85484))})},902:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(4087).then(i.bind(i,44087))})},72107:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(8427).then(i.bind(i,18427))})},30539:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(5160).then(i.bind(i,95160))})},66405:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(682).then(i.bind(i,10682))})},45189:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(228).then(i.bind(i,30228))})},81888:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(6953).then(i.bind(i,36953))})},13162:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(7441).then(i.bind(i,17441))})},31518:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(521).then(i.bind(i,60521))})},60601:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2570).then(i.bind(i,12570))})},78626:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6698).then(i.bind(i,56698))})},13763:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(3972).then(i.bind(i,43972))})},6581:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(1854).then(i.bind(i,61854))})},44758:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(5124).then(i.bind(i,75124))})},35281:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(8908).then(i.bind(i,48908))})},97611:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(6289).then(i.bind(i,66289))})},63874:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(4099).then(i.bind(i,54099))})},29075:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pla",extensions:[".pla"],loader:()=>i.e(1758).then(i.bind(i,6751))})},51083:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(5605).then(i.bind(i,75605))})},97810:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(9776).then(i.bind(i,89776))})},22920:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(2293).then(i.bind(i,92293))})},89045:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(9396).then(i.bind(i,49396))})},14366:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(7690).then(i.bind(i,47690))})},54872:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(6246).then(i.bind(i,26246))})},66333:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(778).then(i.bind(i,40778))})},34789:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(3421).then(i.bind(i,23421))})},64646:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8835).then(i.bind(i,88835))})},31e3:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(1376).then(i.bind(i,71376))})},94380:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(6118).then(i.bind(i,76118))})},87133:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(1670).then(i.bind(i,1670))})},87259:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(5154).then(i.bind(i,55154))})},47526:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(6898).then(i.bind(i,36898))})},30408:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(1957).then(i.bind(i,21957))})},10211:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(8606).then(i.bind(i,48606))})},55167:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7628).then(i.bind(i,57628))})},89673:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(8329).then(i.bind(i,18329))})},56536:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(7083).then(i.bind(i,87083))})},17535:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(1948).then(i.bind(i,1948))})},21914:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(7289).then(i.bind(i,17289))})},63235:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(9811).then(i.bind(i,19811))})},70600:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(8122).then(i.bind(i,8122))})},8940:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(3107).then(i.bind(i,23107))})},187:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(2807).then(i.bind(i,92807))})},92176:(e,t,i)=>{"use strict";var n=i(48398);(0,n.H)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(4222).then(i.bind(i,75503))}),(0,n.H)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(4222).then(i.bind(i,75503))})},86394:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(766).then(i.bind(i,30766))})},59280:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(4066).then(i.bind(i,44066))})},79397:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(2869).then(i.bind(i,2869))})},13536:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(1640).then(i.bind(i,11640))})},7717:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3166).then(i.bind(i,83166))})},32434:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(3010).then(i.bind(i,33010))})},19736:(e,t,i)=>{"use strict";(0,i(48398).H)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(1487).then(i.bind(i,45247))})},64295:(e,t,i)=>{"use strict";i.d(t,{N:()=>s});var n=i(75816);function s(e,t){e instanceof n.Z?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},17067:(e,t,i)=>{"use strict";i.d(t,{I:()=>r});var n=i(53186),s=i(39706),o=i(76595);class r extends n.JT{constructor(e,t){super(),this._onDidChange=this._register(new s.Q5),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const s=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{(0,o.jL)((0,o.Jj)(this._referenceDomElement),(()=>{n=!1,s()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,s()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},88775:(e,t,i)=>{"use strict";i.d(t,{g:()=>p});var n=i(76595),s=i(20796),o=i(39706),r=i(53186),a=i(64295);class l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class d{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.N)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.N)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");(0,a.N)(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const s=[];for(const o of this._requests){let e;0===o.type&&(e=t),2===o.type&&(e=i),1===o.type&&(e=n),e.appendChild(document.createElement("br"));const r=document.createElement("span");d._render(r,o),e.appendChild(r),s.push(r)}this._container=e,this._testElements=s}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(67364),c=i(13785);class u extends r.JT{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=(0,n.ZY)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const s of i)s.isTrusted||(n=!0,t.remove(s));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new c.pR({pixelRatio:s.T.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,n){const s=new l(e,t);return i.push(s),null===n||void 0===n||n.push(s),s}_actualReadFontInfo(e,t){const i=[],n=[],o=this._createRequest("n",0,i,n),r=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),u=this._createRequest("1",0,i,n),g=this._createRequest("2",0,i,n),p=this._createRequest("3",0,i,n),m=this._createRequest("4",0,i,n),f=this._createRequest("5",0,i,n),_=this._createRequest("6",0,i,n),v=this._createRequest("7",0,i,n),b=this._createRequest("8",0,i,n),C=this._createRequest("9",0,i,n),y=this._createRequest("\u2192",0,i,n),w=this._createRequest("\uffeb",0,i,null),S=this._createRequest("\xb7",0,i,n),x=this._createRequest(String.fromCharCode(11825),0,i,null),L="|/-_ilm%";for(let s=0,d=L.length;s<d;s++)this._createRequest(L.charAt(s),0,i,n),this._createRequest(L.charAt(s),1,i,n),this._createRequest(L.charAt(s),2,i,n);!function(e,t,i){new d(t,i).read(e)}(e,t,i);const k=Math.max(l.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,b.width,C.width);let D=t.fontFeatureSettings===h.n0.OFF;const N=n[0].width;for(let s=1,d=n.length;D&&s<d;s++){const e=N-n[s].width;if(e<-.001||e>.001){D=!1;break}}let E=!0;return D&&w.width!==N&&(E=!1),w.width>y.width&&(E=!1),new c.pR({pixelRatio:s.T.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:E,spaceWidth:a.width,middotWidth:S.width,wsmiddotWidth:x.width,maxDigitWidth:k},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},52274:(e,t,i)=>{"use strict";i.d(t,{n:()=>s});var n=i(39706);const s=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},90356:(e,t,i)=>{"use strict";i.d(t,{Fz:()=>S,Nl:()=>y,RA:()=>C,Tj:()=>L,b6:()=>x,pd:()=>n});var n,s=i(27748),o=i(76595),r=i(24199),a=i(10381),l=i(9922),d=i(53372),h=i(39706),c=i(53186),u=i(90255),g=i(78701),p=i(13593),m=i(24854),f=i(71940),_=i(33454),v=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const C={forceCopyWithSyntaxHighlighting:!1};class y{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}y.INSTANCE=new y;class w{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let S=class extends c.JT{get textAreaState(){return this._textAreaState}constructor(e,t,i,n,s,o){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._accessibilityService=s,this._logService=o,this._onFocus=this._register(new h.Q5),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.Q5),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.Q5),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.Q5),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.Q5),this.onCut=this._onCut.event,this._onPaste=this._register(new h.Q5),this.onPaste=this._onPaste.event,this._onType=this._register(new h.Q5),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.Q5),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.Q5),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.Q5),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.Q5),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new c.XK),this._asyncTriggerCut=this._register(new d.pY((()=>this._onCut.fire()),0)),this._textAreaState=p.un.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.ju.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new d.pY((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let r=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.y(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),r=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.y(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.al&&console.log("[compositionstart]",e);const t=new w;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&r&&r.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===r.code||"ArrowLeft"===r.code))return p.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.al&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p.un.readFromTextArea(this._textArea,this._textAreaState),i=p.un.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p.un.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.al&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p.un.readFromTextArea(this._textArea,this._textAreaState),t=p.un.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p.un.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.al&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p.un.readFromTextArea(this._textArea,this._textAreaState),i=p.un.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.ZG(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=x.getTextData(e.clipboardData);t&&(i=i||y.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new d.pY((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return o.nm(this._textArea.ownerDocument,"selectionchange",(t=>{if(l.B.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100)return;if(!this._textAreaState.selection)return;const o=this._textArea.getValue();if(this._textAreaState.value!==o)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const d=this._textAreaState.deduceEditorPosition(r),h=this._host.deduceModelPosition(d[0],d[1],d[2]),c=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(c[0],c[1],c[2]),g=new m.Y(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};y.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&x.setTextData(e.clipboardData,t.text,t.html,i)}};S=v([b(4,f.F),b(5,_.VZ)],S);const x={getTextData(e){const t=e.getData(u.v.text);let i=null;const n=e.getData("vscode-editor-data");if("string"===typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(s){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,n){e.setData(u.v.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}};class L extends c.JT{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new r.Y(this._actual,"keydown")).event,this.onKeyUp=this._register(new r.Y(this._actual,"keyup")).event,this.onCompositionStart=this._register(new r.Y(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new r.Y(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new r.Y(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new r.Y(this._actual,"beforeinput")).event,this.onInput=this._register(new r.Y(this._actual,"input")).event,this.onCut=this._register(new r.Y(this._actual,"cut")).event,this.onCopy=this._register(new r.Y(this._actual,"copy")).event,this.onPaste=this._register(new r.Y(this._actual,"paste")).event,this.onFocus=this._register(new r.Y(this._actual,"focus")).event,this.onBlur=this._register(new r.Y(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.Q5),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>l.B.onKeyDown()))),this._register(this.onBeforeInput((()=>l.B.onBeforeInput()))),this._register(this.onInput((()=>l.B.onInput()))),this._register(this.onKeyUp((()=>l.B.onKeyUp()))),this._register(o.nm(this._actual,n.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=o.Ay(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&o.vY()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let r=null;const a=o.Ay(n);r=a?a.activeElement:o.vY();const l=o.Jj(r),d=r===n,h=n.selectionStart,c=n.selectionEnd;if(d&&h===t&&c===i)s.vU&&l.parent!==l&&n.focus();else{if(d)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(s.vU&&l.parent!==l&&n.focus());try{const e=o.vL(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),o._0(n,e)}catch(u){}}}}},13593:(e,t,i)=>{"use strict";i.d(t,{al:()=>o,ee:()=>a,un:()=>r});var n=i(78701),s=i(28928);const o=!1;class r{constructor(e,t,i,n,s){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=s}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),s=e.getSelectionEnd();let o;if(t){i.substring(0,n)===t.value.substring(0,t.selectionStart)&&(o=t.newlineCountBeforeSelection)}return new r(i,n,s,null,o)}collapseSelection(){return this.selectionStart===this.value.length?this:new r(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){o&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,s,o,r,a,l;if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(null!==(i=null===(t=this.selection)||void 0===t?void 0:t.getStartPosition())&&void 0!==i?i:null,n,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(null!==(s=null===(n=this.selection)||void 0===n?void 0:n.getEndPosition())&&void 0!==s?s:null,t,1)}const d=this.value.substring(this.selectionStart,e);if(-1===d.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(null!==(r=null===(o=this.selection)||void 0===o?void 0:o.getStartPosition())&&void 0!==r?r:null,d,1);const h=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(null!==(l=null===(a=this.selection)||void 0===a?void 0:a.getEndPosition())&&void 0!==l?l:null,h,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,s=-1;for(;-1!==(s=t.indexOf("\n",s+1));)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};o&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const s=Math.min(n.Mh(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(s,e.value.length-r),l=t.value.substring(s,t.value.length-r),d=e.selectionStart-s,h=e.selectionEnd-s,c=t.selectionStart-s,u=t.selectionEnd-s;if(o&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${d}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${c}, selectionEnd: ${u}`)),c===u){const t=e.selectionStart-s;return o&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:h-d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(o&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Mh(e.value,t.value),e.selectionEnd),s=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(i,e.value.length-s),a=t.value.substring(i,t.value.length-s),l=e.selectionStart-i,d=e.selectionEnd-i,h=t.selectionStart-i,c=t.selectionEnd-i;return o&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${r}>, selectionStart: ${l}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${c}`)),{text:a,replacePrevCharCnt:d,replaceNextCharCnt:r.length-d,positionDelta:c-a.length}}}r.EMPTY=new r("",0,0,null,void 0);class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new s.e(n,1,o+1,1)}static fromEditorSelection(e,t,i,n){const o=500,l=a._getPageOfLine(t.startLineNumber,i),d=a._getRangeForPage(l,i),h=a._getPageOfLine(t.endLineNumber,i),c=a._getRangeForPage(h,i);let u=d.intersectRanges(new s.e(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(u,1)>o){const t=e.modifyPosition(u.getEndPosition(),-500);u=s.e.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=c.intersectRanges(new s.e(t.endLineNumber,t.endColumn,p,m));if(n&&e.getValueLengthInRange(f,1)>o){const t=e.modifyPosition(f.getStartPosition(),o);f=s.e.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(l===h||l+1===h)v=e.getValueInRange(t,1);else{const i=d.intersectRanges(t),n=c.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(n,1)}return n&&v.length>1e3&&(v=v.substring(0,o)+String.fromCharCode(8230)+v.substring(v.length-o,v.length)),new r(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},15968:(e,t,i)=>{"use strict";i.d(t,{wk:()=>E,Ox:()=>x});var n=i(5887),s=i(27748),o=i(47624),r=i(83945),a=i(60548),l=i(74246),d=i(80646),h=i(74633),c=i(28928);class u{static columnSelect(e,t,i,n,s,o){const r=Math.abs(s-i)+1,a=i>s,l=n>o,u=n<o,g=[];for(let p=0;p<r;p++){const s=i+(a?-p:p),r=e.columnFromVisibleColumn(t,s,n),m=e.columnFromVisibleColumn(t,s,o),f=e.visibleColumnFromColumn(t,new h.L(s,r)),_=e.visibleColumnFromColumn(t,new h.L(s,m));if(u){if(f>o)continue;if(_<n)continue}if(l){if(_>n)continue;if(f<o)continue}g.push(new d.rS(new c.e(s,r,s,r),0,0,new h.L(s,m),0))}if(0===g.length)for(let p=0;p<r;p++){const e=i+(a?-p:p),n=t.getLineMaxColumn(e);g.push(new d.rS(new c.e(e,n,e,n),0,0,new h.L(e,n),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:n,toLineNumber:s,toVisualColumn:o}}static columnSelectLeft(e,t,i){let n=i.toViewVisualColumn;return n>0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const s=Math.min(i.fromViewLineNumber,i.toViewLineNumber),o=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=s;a<=o;a++){const i=t.getLineMaxColumn(a),s=e.visibleColumnFromColumn(t,new h.L(a,i));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r<n&&r++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}static columnSelectUp(e,t,i,n){const s=n?e.pageSize:1,o=Math.max(1,i.toViewLineNumber-s);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}static columnSelectDown(e,t,i,n){const s=n?e.pageSize:1,o=Math.min(t.getLineCount(),i.toViewLineNumber+s);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}}var g=i(1603),p=i(93033),m=i(69922),f=i(35770),_=i(47116),v=i(85412),b=i(76595);const C=0;class y extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i||{})}}var w,S,x;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!o.Kn(e))return!1;const t=e;return!!o.HD(t.to)&&(!(!o.o8(t.by)&&!o.HD(t.by))&&(!(!o.o8(t.value)&&!o.hj(t.value))&&!(!o.o8(t.revealCursor)&&!o.jn(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,n;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Page:n=3;break;case e.RawUnit.HalfPage:n=4;break;case e.RawUnit.Editor:n=5;break;case e.RawUnit.Column:n=6;break;default:n=2}return{direction:i,unit:n,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(w||(w={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!o.Kn(e))return!1;const t=e;return!(!o.hj(t.lineNumber)&&!o.HD(t.lineNumber))&&!(!o.o8(t.at)&&!o.HD(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(S||(S={}));class L{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.$).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,b.vY)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.$).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}!function(e){class t extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends y{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>d.Vi.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.fK)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if("undefined"===typeof n.position||"undefined"===typeof n.viewPosition||"undefined"===typeof n.mouseColumn)return null;const s=e.model.validatePosition(n.position),o=e.coordinatesConverter.validateViewPosition(new h.L(n.viewPosition.lineNumber,n.viewPosition.column),s),r=n.doColumnSelect?i.fromViewLineNumber:o.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,o.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class o extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.fK)(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.fK)(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.fK)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.fK)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends y{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.N.metadata})}runCoreEditorCommand(e,t){const i=p.N.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const n=i.select,s=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.P.simpleMove(e,t,i.direction,n,s,i.unit);case 11:case 13:case 12:case 14:return p.P.viewportMove(e,t,i.direction,n,s);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.fK)(new g);class m extends y{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.fK)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.fK)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1039}})),e.CursorRight=(0,a.fK)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.fK)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1041}})),e.CursorUp=(0,a.fK)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.fK)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.fK)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.fK)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1035}})),e.CursorDown=(0,a.fK)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.fK)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.fK)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.fK)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.fK)(new class extends y{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const s=i.modelState?i.modelState.position:null,o=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;i<r;i++){const r=n[i];if((!s||r.modelState.selection.containsPosition(s))&&(!o||r.viewState.selection.containsPosition(o)))return n.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,n)}}n.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}),e.LastCursorMoveToSelect=(0,a.fK)(new class extends y{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0);s[i]=p.P.moveTo(e,n[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}});class _ extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.fK)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.fK)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i],s=n.modelState.position.lineNumber;t[i]=d.Vi.fromModelState(n.modelState.move(this._inSelectionMode,s,1,0))}return t}}e.CursorLineStart=(0,a.fK)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.fK)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:1311}}}));class b extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.fK)(new b({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:C,kbExpr:f.u.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.fK)(new b({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:C,kbExpr:f.u.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class x extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n],o=s.modelState.position.lineNumber,r=e.model.getLineMaxColumn(o);i[n]=d.Vi.fromModelState(s.modelState.move(this._inSelectionMode,o,r,0))}return i}}e.CursorLineEnd=(0,a.fK)(new x({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.fK)(new x({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:1315}}}));class k extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.fK)(new k({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.fK)(new k({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3086,mac:{primary:3088}}}));class D extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.fK)(new D({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.fK)(new D({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:3085,mac:{primary:3090}}}));class N extends y{constructor(){super({id:"editorScroll",precondition:void 0,metadata:w.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=w.parse(t);if(!i)return;const n=this.determineScrollMethod(i);n&&n(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const n=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const s=e.getCompletelyVisibleViewRangeAtScrollTop(n);e.setCursorStates(t,3,[p.P.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),s,i.select)])}e.viewLayout.setScrollPosition({scrollTop:n},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),n=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),s=e.coordinatesConverter.convertViewRangeToModelRange(n);let o;o=1===t.direction?Math.max(1,s.startLineNumber-t.value):Math.min(e.model.getLineCount(),s.startLineNumber+t.value);const r=e.coordinatesConverter.convertModelPositionToViewPosition(new h.L(o,1));return e.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const n=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+n*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const n=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:n},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=N,e.EditorScroll=(0,a.fK)(new N),e.ScrollLineUp=(0,a.fK)(new class extends y{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Up,by:w.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.fK)(new class extends y{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Up,by:w.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.fK)(new class extends y{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Up,by:w.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.fK)(new class extends y{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Down,by:w.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.fK)(new class extends y{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Down,by:w.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.fK)(new class extends y{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Down,by:w.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.fK)(new class extends y{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Left,by:w.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.fK)(new class extends y{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:w.RawDirection.Right,by:w.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class E extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.fK)(new E({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.fK)(new E({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.fK)(new class extends y{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0),o=n[i];s[i]=p.P.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}});class T extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.fK)(new T({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.fK)(new T({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class I extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0);s[i]=p.P.line(e,n[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}e.LastCursorLineSelect=(0,a.fK)(new I({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.fK)(new I({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.fK)(new class extends y{constructor(){super({id:"cancelSelection",precondition:f.u.hasNonEmptySelection,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.fK)(new class extends y{constructor(){super({id:"removeSecondaryCursors",precondition:f.u.hasMultipleSelections,kbOpts:{weight:C+1,kbExpr:f.u.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,r.i7)(n.NC("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.fK)(new class extends y{constructor(){super({id:"revealLine",precondition:void 0,metadata:S.metadata})}runCoreEditorCommand(e,t){const i=t,n=i.lineNumber||0;let s="number"===typeof n?n+1:parseInt(n)+1;s<1&&(s=1);const o=e.model.getLineCount();s>o&&(s=o);const r=new c.e(s,1,s,e.model.getLineMaxColumn(s));let a=0;if(i.at)switch(i.at){case S.RawAtArgument.Top:a=3;break;case S.RawAtArgument.Center:a=1;break;case S.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends L{constructor(){super(a.Sq)}runDOMCommand(e){s.vU&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.P.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.fK)(new class extends y{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[d.Vi.fromModelSelection(t.selection)]))}})}(x||(x={}));const k=_.Ao.and(f.u.textInputFocus,f.u.columnSelection);function D(e,t){v.W.registerKeybindingRule({id:e,primary:t,when:k,weight:C+1})}function N(e){return e.register(),e}var E;D(x.CursorColumnSelectLeft.id,1039),D(x.CursorColumnSelectRight.id,1041),D(x.CursorColumnSelectUp.id,1040),D(x.CursorColumnSelectPageUp.id,1035),D(x.CursorColumnSelectDown.id,1042),D(x.CursorColumnSelectPageDown.id,1036),function(e){class t extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.fK)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.u.writable,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u6.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.fK)(new class extends t{constructor(){super({id:"outdent",precondition:f.u.writable,kbOpts:{weight:C,kbExpr:_.Ao.and(f.u.editorTextFocus,f.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u6.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.fK)(new class extends t{constructor(){super({id:"tab",precondition:f.u.writable,kbOpts:{weight:C,kbExpr:_.Ao.and(f.u.editorTextFocus,f.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u6.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.fK)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,s]=g.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.fK)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:C,kbExpr:f.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,s]=g.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(3)}}),e.Undo=new class extends L{constructor(){super(a.n_)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().undo()}},e.Redo=new class extends L{constructor(){super(a.kz)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().redo()}}}(E||(E={}));class T extends a.mY{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.$).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function I(e,t){N(new T("default:"+e,e)),N(new T(e,e,t))}I("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),I("replacePreviousChar"),I("compositionType"),I("compositionStart"),I("compositionEnd"),I("paste"),I("cut")},32613:(e,t,i)=>{"use strict";i.d(t,{B:()=>l,L:()=>c});var n=i(37405),s=i(44609),o=i(90255),r=i(91387),a=i(90601);function l(e){const t=new s.Hl;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise((e=>i.getAsString(e)));t.append(e,(0,s.ZO)(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,d(n))}}return t}function d(e){const t=e.path?r.o.parse(e.path):void 0;return(0,s.Ix)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.Km.EDITORS,a.Km.FILES,n.g.RESOURCES,n.g.INTERNAL_URI_LIST]);function c(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=l(e),a=i.get(n.g.INTERNAL_URI_LIST);if(a)i.replace(o.v.uriList,a);else if(t||!i.has(o.v.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(r.o.file(i).toString()):t.push(r.o.parse(e.name,!0).toString())}catch(d){}}}t.length&&i.replace(o.v.uriList,(0,s.ZO)(s.Z0.create(t)))}for(const n of h)i.delete(n);return i}},48850:(e,t,i)=>{"use strict";i.d(t,{CL:()=>s,Pi:()=>r,QI:()=>o});var n=i(36362);function s(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===n.g.ICodeEditor}function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===n.g.IDiffEditor}function r(e){return s(e)?e:o(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&s(e.activeCodeEditor)?e.activeCodeEditor:null}},76046:(e,t,i)=>{"use strict";i.d(t,{AL:()=>v,N5:()=>f,Pp:()=>p,YN:()=>d,gy:()=>m,kG:()=>g,rU:()=>h,t7:()=>b,tC:()=>_});var n=i(76595),s=i(21406),o=i(65179),r=i(53372),a=i(53186),l=i(6009);class d{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new d(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class c{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=n.i(e);return new c(t.left,t.top,t.width,t.height)}function p(e,t,i){const n=t.width/e.offsetWidth,s=t.height/e.offsetHeight,o=(i.x-t.x)/n,r=(i.y-t.y)/s;return new u(o,r)}class m extends o.n{constructor(e,t,i){super(n.Jj(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new d(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return n.nm(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return n.nm(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return n.nm(e,n.tw.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.nm(e,n.tw.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return n.nm(e,n.tw.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return n.nm(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return n.nm(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.nm(e,n.tw.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return n.nm(e,n.tw.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return n.nm(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.JT{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new s.C),this._keydownListener=null}startMonitoring(e,t,i,s,o){this._keydownListener=n.mu(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{s(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),o(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class b{constructor(e){this._editor=e,this._instanceId=++b._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new r.pY((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const s=this._counter++;i=new C(t,`dyn-rule-${this._instanceId}-${s}`,n.OO(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}b._idPool=0;class C{constructor(e,t,i,s){this.key=e,this.className=t,this.properties=s,this._referenceCount=0,this._styleElementDisposables=new a.SL,this._styleElement=n.dS(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const n in t){const e=t[n];let s;s="object"===typeof e?(0,l.n_1)(e.id):e;i+=`\n\t${y(n)}: ${s};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function y(e){return e.replace(/(^[A-Z])/,(e=>{let[t]=e;return t.toLowerCase()})).replace(/([A-Z])/g,(e=>{let[t]=e;return`-${t.toLowerCase()}`}))}},60548:(e,t,i)=>{"use strict";i.d(t,{AJ:()=>y,QG:()=>I,Qr:()=>E,R6:()=>x,Sq:()=>F,Uc:()=>n,_K:()=>M,_l:()=>S,fK:()=>N,jY:()=>L,kz:()=>P,mY:()=>C,n_:()=>O,rn:()=>T,sb:()=>D,x1:()=>k});var n,s=i(5887),o=i(91387),r=i(74246),a=i(74633),l=i(23058),d=i(43537),h=i(6178),c=i(94943),u=i(47116),g=i(87775),p=i(85412),m=i(76322),f=i(57823),_=i(47624),v=i(33454),b=i(76595);class C{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.Ao.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.W.registerKeybindingRule(i)}}c.P.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class y extends C{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.VZ),n=e.get(u.i6);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const s of this._implementations){if(s.when){const e=n.getContext((0,b.vY)());if(!s.when.evaluate(e))continue}const o=s.implementation(e,t);if(o){if(i.trace(`Command '${this.id}' was handled by '${s.name}'.`),"boolean"===typeof o)return;return o}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class w extends C{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class S extends C{static bindToContribution(e){return class extends S{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,n){const s=e(i);s&&this._callback(s,n)}}}static runEditorCommand(e,t,i,n){const s=e.get(r.$),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{if(e.get(u.i6).contextMatchesRules(null!==i&&void 0!==i?i:void 0))return n(e,o,t)}))}runCommand(e,t){return S.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class x extends S{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.eH.EditorContext),t.title||(t.title=e.label),t.when=u.Ao.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(x.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class L extends x{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const n of this._implementations){const s=n[1](e,t,i);if(s){if("boolean"===typeof s)return;return s}}}}class k extends h.Ke{run(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const s=e.get(r.$),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{var t,n;const s=e.get(u.i6),r=e.get(v.VZ);if(s.contextMatchesRules(null!==(t=this.desc.precondition)&&void 0!==t?t:void 0))return this.runEditorCommand(e,o,...i);r.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,null===(n=this.desc.precondition)||void 0===n?void 0:n.serialize())}))}}function D(e,t){c.P.registerCommand(e,(function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];const r=e.get(g.TG),[h,c]=n;(0,_.p_)(o.o.isUri(h)),(0,_.p_)(a.L.isIPosition(c));const u=e.get(l.q).getModel(h);if(u){const e=a.L.lift(c);return r.invokeFunction(t,u,e,...n.slice(2))}return e.get(d.S).createModelReference(h).then((e=>new Promise(((i,s)=>{try{i(r.invokeFunction(t,e.object.textEditorModel,a.L.lift(c),n.slice(2)))}catch(o){s(o)}})).finally((()=>{e.dispose()}))))}))}function N(e){return A.INSTANCE.registerEditorCommand(e),e}function E(e){const t=new e;return A.INSTANCE.registerEditorAction(t),t}function T(e){return A.INSTANCE.registerEditorAction(e),e}function I(e){A.INSTANCE.registerEditorAction(e)}function M(e,t,i){A.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return A.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return A.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return A.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return A.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return A.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class A{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function R(e){return e.register(),e}A.INSTANCE=new A,m.B.add("editor.contributions",A.INSTANCE);const O=R(new y({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:s.NC({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.eH.CommandPalette,group:"",title:s.NC("undo","Undo"),order:1}]}));R(new w(O,{id:"default:undo",precondition:void 0}));const P=R(new y({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:s.NC({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.eH.CommandPalette,group:"",title:s.NC("redo","Redo"),order:1}]}));R(new w(P,{id:"default:redo",precondition:void 0}));const F=R(new y({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.eH.MenubarSelectionMenu,group:"1_basic",title:s.NC({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.eH.CommandPalette,group:"",title:s.NC("selectAll","Select All"),order:1}]}))},80427:(e,t,i)=>{"use strict";i.d(t,{Gl:()=>l,fo:()=>a,vu:()=>r});var n=i(87775),s=i(91387),o=i(47624);const r=(0,n.yh)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(l.is(e))return l.lift(e);if(d.is(e))return d.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,o.Kn)(e)&&s.o.isUri(e.resource)&&(0,o.Kn)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;super(arguments.length>3?arguments[3]:void 0),this.resource=e,this.textEdit=t,this.versionId=i}}class d extends a{static is(e){return e instanceof d||(0,o.Kn)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof d?e:new d(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(arguments.length>3?arguments[3]:void 0),this.oldResource=e,this.newResource=t,this.options=i}}},74246:(e,t,i)=>{"use strict";i.d(t,{$:()=>n});const n=(0,i(87775).yh)("codeEditorService")},65184:(e,t,i)=>{"use strict";i.d(t,{Q8:()=>He,eu:()=>Oe});var n=i(53372),s=i(53186),o=i(16015),r=i(39706),a=i(53335),l=i(90388),d=i(78701);const h="$initialize";let c=!1;function u(e){l.$L&&(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class p{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class m{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise(((n,s)=>{this._pendingReplies[i]={resolve:n,reject:s},this._send(new g(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new r.Q5({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new m(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,o.ri)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,o.ri)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class b extends s.JT{constructor(e,t,i){super();let n=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",(e=>{this._protocol.handleMessage(e)}),(e=>{null===n||void 0===n||n(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!==typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}},handleEvent:(e,t)=>{if(y(e)){const n=i[e].call(i,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(C(e)){const t=i[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let s=null;const o=globalThis.require;"undefined"!==typeof o&&"function"===typeof o.getConfig?s=o.getConfig():"undefined"!==typeof globalThis.requirejs&&(s=globalThis.requirejs.s.contexts._.config);const r=(0,a.$E)(i);this._onModuleLoaded=this._protocol.sendMessage(h,[this._worker.getId(),JSON.parse(JSON.stringify(s)),t,r]);const l=(e,t)=>this._request(e,t),d=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(w(t,l,d))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){console.error(e),console.info(t)}}function C(e){return"o"===e[0]&&"n"===e[1]&&d.df(e.charCodeAt(2))}function y(e){return/^onDynamic/.test(e)&&d.df(e.charCodeAt(9))}function w(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s=e=>function(t){return i(e,t)},o={};for(const r of e)y(r)?o[r]=s(r):C(r)?o[r]=i(r,void 0):o[r]=n(r);return o}const S=(0,i(58296).Z)("defaultWorkerFactory",{createScriptURL:e=>e});class x extends s.JT{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;const r=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"===typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"===typeof t.getWorkerUrl){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(S?S.createScriptURL(i):i,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"===typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"===typeof e.addEventListener&&e.addEventListener("error",o)})),this._register((0,s.OF)((()=>{var e;null===(e=this.worker)||void 0===e||e.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",o),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then((i=>{try{i.postMessage(e,t)}catch(n){(0,o.dL)(n),(0,o.dL)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:n}))}}))}}class L{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++L.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new x(e,n,this._label||"anonymous"+n,t,(e=>{u(e),this._webWorkerFailedBeforeError=e,i(e)}))}}L.LAST_WORKER_ID=0;var k=i(28928),D=i(5580),N=i(1794),E=i(91387),T=i(74633),I=i(48749);class M{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new T.L(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;n<t;n++)i[n]=this._lines[n].length+e;this._lineStarts=new I.oQ(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,d.uq)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const n=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(e.lineNumber+s-1,0,i[s]),n[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}var A=i(67331),R=i(47498);class O{constructor(e,t,i){const n=new Uint8Array(e*t);for(let s=0,o=e*t;s<o;s++)n[s]=i;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class P{constructor(e){let t=0,i=0;for(let s=0,o=e.length;s<o;s++){const[n,o,r]=e[s];o>t&&(t=o),n>i&&(i=n),r>i&&(i=r)}t++,i++;const n=new O(i,t,0);for(let s=0,o=e.length;s<o;s++){const[t,i,o]=e[s];n.set(t,i,o)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let F=null;let B=null;class V{static _createLink(e,t,i,n,s){let o=s-1;do{const i=t.charCodeAt(o);if(2!==e.get(i))break;o--}while(o>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null===F&&(F=new P([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),F);const i=function(){if(null===B){B=new R.N(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)B.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)B.set(t.charCodeAt(i),2)}return B}(),n=[];for(let s=1,o=e.getLineCount();s<=o;s++){const o=e.getLineContent(s),r=o.length;let a=0,l=0,d=0,h=1,c=!1,u=!1,g=!1,p=!1;for(;a<r;){let e=!1;const r=o.charCodeAt(a);if(13===h){let t;switch(r){case 40:c=!0,t=0;break;case 41:t=c?0:1;break;case 91:g=!0,u=!0,t=0;break;case 93:g=!1,t=u?0:1;break;case 123:p=!0,t=0;break;case 125:t=p?0:1;break;case 39:case 34:case 96:t=d===r?1:39===d||34===d||96===d?0:1;break;case 42:t=42===d?1:0;break;case 124:t=124===d?1:0;break;case 32:t=g?0:1;break;default:t=i.get(r)}1===t&&(n.push(V._createLink(i,o,s,l,a)),e=!0)}else if(12===h){let t;91===r?(u=!0,t=0):t=i.get(r),1===t?e=!0:h=13}else h=t.nextState(h,r),0===h&&(e=!0);e&&(h=1,c=!1,u=!1,p=!1,l=a+1,d=r),a++}13===h&&n.push(V._createLink(i,o,s,l,r))}return n}}class W{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,n,s){if(e&&t){const i=this.doNavigateValueSet(t,s);if(i)return{range:e,value:i}}if(i&&n){const e=this.doNavigateValueSet(n,s);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let n=Number(e);const s=parseFloat(e);return isNaN(n)||isNaN(s)||n!==s?null:0!==n||t?(n=Math.floor(n*i),n+=t?i:-i,String(n/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let n=null;for(let s=0,o=e.length;null===n&&s<o;s++)n=this.valueSetReplace(e[s],t,i);return n}valueSetReplace(e,t,i){let n=e.indexOf(t);return n>=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}W.INSTANCE=new W;var H=i(31197),z=i(6617),j=i(97050),U=i(67391),K=i(17053),q=i(56702),$=i(47638);const G=3;class Y{computeDiff(e,t,i){var n;const s=new te(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let r=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new $.z(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new $.z(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new $.z(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new $.z(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new K.gB(e,t,null===(n=a.charChanges)||void 0===n?void 0:n.map((e=>new K.iy(new k.e(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new k.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));r&&(r.modified.endLineNumberExclusive!==i.modified.startLineNumber&&r.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new K.gB(r.original.join(i.original),r.modified.join(i.modified),r.innerChanges&&i.innerChanges?r.innerChanges.concat(i.innerChanges):void 0),o.pop())),o.push(i),r=i}return(0,q.eZ)((()=>(0,q.DM)(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new U.h(o,[],s.quitEarly)}}function Z(e,t,i,n){return new N.Hs(e,t,i).ComputeDiff(n)}class Q{constructor(e){const t=[],i=[];for(let n=0,s=e.length;n<s;n++)t[n]=ie(e[n],1),i[n]=ne(e[n],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const n=[],s=[],o=[];let r=0;for(let a=t;a<=i;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,d=e?this._endColumns[a]:t.length+1;for(let e=l;e<d;e++)n[r]=t.charCodeAt(e-1),s[r]=a+1,o[r]=e,r++;!e&&a<i&&(n[r]=10,s[r]=a+1,o[r]=t.length+1,r++)}return new X(n,s,o)}}class X{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class J{constructor(e,t,i,n,s,o,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),s=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),d=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new J(n,s,o,r,a,l,d,h)}}class ee{constructor(e,t,i,n,s){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=s}static createFromDiffResult(e,t,i,n,s,o,r){let a,l,d,h,c;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(d=n.getStartLineNumber(t.modifiedStart)-1,h=0):(d=n.getStartLineNumber(t.modifiedStart),h=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&s()){const o=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=Z(o,a,s,!0).changes;r&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,s=e.length;n<s;n++){const s=e[n],o=s.originalStart-(i.originalStart+i.originalLength),r=s.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(o,r)<G?(i.originalLength=s.originalStart+s.originalLength-i.originalStart,i.modifiedLength=s.modifiedStart+s.modifiedLength-i.modifiedStart):(t.push(s),i=s)}return t}(e)),c=[];for(let t=0,i=e.length;t<i;t++)c.push(J.createFromDiffChange(e[t],o,a))}}return new ee(a,l,d,h,c)}}class te{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Q(e),this.modified=new Q(t),this.continueLineDiff=se(i.maxComputationTime),this.continueCharDiff=se(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Z(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,n=t.length;i<n;i++)e.push(ee.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const n=[];let s=0,o=0;for(let r=-1,a=t.length;r<a;r++){const e=r+1<a?t[r+1]:null,i=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;s<i&&o<l;){const e=this.originalLines[s],t=this.modifiedLines[o];if(e!==t){{let i=ie(e,1),r=ie(t,1);for(;i>1&&r>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(r-2))break;i--,r--}(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,s+1,1,i,o+1,1,r)}{let i=ne(e,1),r=ne(t,1);const a=e.length+1,l=t.length+1;for(;i<a&&r<l;){if(e.charCodeAt(i-1)!==e.charCodeAt(r-1))break;i++,r++}(i<a||r<l)&&this._pushTrimWhitespaceCharChange(n,s+1,i,a,o+1,r,l)}}s++,o++}e&&(n.push(ee.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:i,changes:n}}_pushTrimWhitespaceCharChange(e,t,i,n,s,o,r){if(this._mergeTrimWhitespaceCharChange(e,t,i,n,s,o,r))return;let a;this.shouldComputeCharChanges&&(a=[new J(t,i,t,n,s,o,s,r)]),e.push(new ee(t,t,s,s,a))}_mergeTrimWhitespaceCharChange(e,t,i,n,s,o,r){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new J(t,i,t,n,s,o,s,r)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===s&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new J(t,i,t,n,s,o,s,r)),!0))}}function ie(e,t){const i=d.LC(e);return-1===i?t:i+1}function ne(e,t){const i=d.ow(e);return-1===i?t:i+2}function se(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var oe=i(809);const re=()=>new Y,ae=()=>new oe.DW;var le=i(63932);function de(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function he(e,t,i,n){return{red:e/255,blue:i/255,green:t/255,alpha:n}}function ce(e,t){const i=t.index,n=t[0].length;if(!i)return;const s=e.positionAt(i);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+n}}function ue(e,t){if(!e)return;const i=le.Il.Format.CSS.parseHex(t);return i?{range:e,color:he(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function ge(e,t,i){if(!e||1!==t.length)return;const n=de(t[0].values());return{range:e,color:he(n[0],n[1],n[2],i?n[3]:1)}}function pe(e,t,i){if(!e||1!==t.length)return;const n=de(t[0].values()),s=new le.Il(new le.Oz(n[0],n[1]/100,n[2]/100,i?n[3]:1));return{range:e,color:he(s.rgba.r,s.rgba.g,s.rgba.b,s.rgba.a)}}function me(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function fe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=me(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter((e=>void 0!==e)),s=i[1],o=i[2];if(!o)continue;let r;if("rgb"===s){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;r=ge(ce(e,n),me(o,t),!1)}else if("rgba"===s){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=ge(ce(e,n),me(o,t),!0)}else if("hsl"===s){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;r=pe(ce(e,n),me(o,t),!1)}else if("hsla"===s){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=pe(ce(e,n),me(o,t),!0)}else"#"===s&&(r=ue(ce(e,n),s+o));r&&t.push(r)}return t}(e):[]}const _e=/\bMARK:\s*(.*)$/d,ve=/^-+|-+$/g;function be(e,t){var i;let n=[];if(t.findRegionSectionHeaders&&(null===(i=t.foldingRules)||void 0===i?void 0:i.markers)){const i=function(e,t){const i=[],n=e.getLineCount();for(let s=1;s<=n;s++){const n=e.getLineContent(s),o=n.match(t.foldingRules.markers.start);if(o){const e={startLineNumber:s,startColumn:o[0].length+1,endLineNumber:s,endColumn:n.length+1};if(e.endColumn>e.startColumn){const t={range:e,...ye(n.substring(o[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let n=1;n<=i;n++){Ce(e.getLineContent(n),n,t)}return t}(e);n=n.concat(t)}return n}function Ce(e,t,i){_e.lastIndex=0;const n=_e.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...ye(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function ye(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(ve,""),hasSeparatorLine:t}}class we extends M{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const n=this._lines[i],s=this.offsetAt(new T.L(i+1,1)),o=n.matchAll(e);for(const e of o)(e.index||0===e.index)&&(e.index=e.index+s),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=(0,A.t2)(e.column,(0,A.eq)(t),this._lines[e.lineNumber-1],0);return i?new k.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let n=0,s="",o=0,r=[];return{*[Symbol.iterator](){for(;;)if(o<r.length){const e=s.substring(r[o].start,r[o].end);o+=1,yield e}else{if(!(n<t.length))break;s=t[n],r=i(s,e),o=0,n+=1}}}}getLineWords(e,t){const i=this._lines[e-1],n=this._wordenize(i,t),s=[];for(const o of n)s.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(e,t){const i=[];let n;for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,n=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let o=i+1;o<n;o++)s.push(this._lines[o]);return s.push(this._lines[n].substring(0,e.endColumn-1)),s.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!T.L.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,n=!1;if(t<1)t=1,i=1,n=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class Se{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new we(E.o.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,i){const n=this._getModel(e);return n?j.a.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const i=this._getModel(e);return i?be(i,t):[]}async computeDiff(e,t,i,n){const s=this._getModel(e),o=this._getModel(t);if(!s||!o)return null;return Se.computeDiff(s,o,i,n)}static computeDiff(e,t,i,n){const s="advanced"===n?ae():re(),o=e.getLinesContent(),r=t.getLinesContent(),a=s.computeDiff(o,r,i);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++){if(e.getLineContent(n)!==t.getLineContent(n))return!1}return!0}async computeMoreMinimalEdits(e,t,i){const n=this._getModel(e);if(!n)return t;const s=[];let o;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return k.e.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let r=0;for(let a=1;a<t.length;a++)k.e.getEndPosition(t[r].range).equals(k.e.getStartPosition(t[a].range))?(t[r].range=k.e.fromPositions(k.e.getStartPosition(t[r].range),k.e.getEndPosition(t[a].range)),t[r].text+=t[a].text):(r++,t[r]=t[a]);t.length=r+1;for(let{range:a,text:l,eol:d}of t){if("number"===typeof d&&(o=d),k.e.isEmpty(a)&&!l)continue;const e=n.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,n.eol),e===l)continue;if(Math.max(l.length,e.length)>Se._diffLimit){s.push({range:a,text:l});continue}const t=(0,N.a$)(e,l,i),r=n.offsetAt(k.e.lift(a).getStartPosition());for(const i of t){const e=n.positionAt(r+i.originalStart),t=n.positionAt(r+i.originalStart+i.originalLength),o={text:l.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};n.getValueInRange(o.range)!==o.text&&s.push(o)}}return"number"===typeof o&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?V.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?fe(t):null}async textualSuggest(e,t,i,n){const s=new z.G,o=new RegExp(i,n),r=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(o))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>Se._suggestionsLimit))break e}return{words:Array.from(r),duration:s.elapsed()}}async computeWordRanges(e,t,i,n){const s=this._getModel(e);if(!s)return Object.create(null);const o=new RegExp(i,n),r=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=s.getLineWords(a,o);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=r[t.word];e||(e=[],r[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return r}async navigateValueSet(e,t,i,n,s){const o=this._getModel(e);if(!o)return null;const r=new RegExp(n,s);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},r);if(!l)return null;const d=o.getValueInRange(l);return W.INSTANCE.navigateValueSet(t,a,l,d,i)}loadForeignModule(e,t,i){const n={host:(0,a.IU)(i,((e,t)=>this._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,a.$E)(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}Se._diffLimit=1e5,Se._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco=(0,H.O)());var xe=i(23058),Le=i(19399),ke=i(51833),De=i(33454),Ne=i(53869),Ee=i(11801),Te=i(76595),Ie=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};const Ae=3e5;function Re(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let Oe=class extends s.JT{constructor(e,t,i,n,s){super(),this._modelService=e,this._workerManager=this._register(new Fe(this._modelService,n)),this._logService=i,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>Re(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(s.completionProvider.register("*",new Pe(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return Re(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((n=>n.computedUnicodeHighlights(e,t,i)))}async computeDiff(e,t,i,n){const s=await this._workerManager.withWorker().then((s=>s.computeDiff(e,t,i,n)));if(!s)return null;return{identical:s.identical,quitEarly:s.quitEarly,changes:o(s.changes),moves:s.moves.map((e=>new U.y(new K.f0(new $.z(e[0],e[1]),new $.z(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>{var t;return new K.gB(new $.z(e[0],e[1]),new $.z(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map((e=>new K.iy(new k.e(e[0],e[1],e[2],e[3]),new k.e(e[4],e[5],e[6],e[7])))))}))}}computeMoreMinimalEdits(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,ke.Of)(t)){if(!Re(this._modelService,e))return Promise.resolve(t);const s=z.G.create(),o=this._workerManager.withWorker().then((n=>n.computeMoreMinimalEdits(e,t,i)));return o.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([o,(0,n.Vs)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return Re(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return Re(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}findSectionHeaders(e,t){return this._workerManager.withWorker().then((i=>i.findSectionHeaders(e,t)))}};Oe=Ie([Me(0,xe.q),Me(1,Le.V),Me(2,De.VZ),Me(3,D.c_),Me(4,Ne.p)],Oe);class Pe{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestions)Re(this._modelService,e.uri)&&n.push(e.uri);else for(const h of this._modelService.getModels())Re(this._modelService,h.uri)&&(h===e?n.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||n.push(h.uri));if(0===n.length)return;const s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),r=o?new k.e(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):k.e.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=await this._workerManager.withWorker(),d=await l.textualSuggest(n,null===o||void 0===o?void 0:o.word,s);return d?{duration:d.duration,suggestions:d.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}}class Fe extends s.JT{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new Te.ne).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),Ee.E),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>Ae&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new He(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Be extends s.JT{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new n.zh;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,s.B9)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new s.SL;o.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),o.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),o.add((0,s.OF)((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,s.B9)(t)}}class Ve{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class We{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class He extends s.JT{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new L(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new b(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new We(this)))}catch(e){u(e),this._worker=new Ve(new Se(new We(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(u(e),this._worker=new Ve(new Se(new We(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Be(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._disposed?Promise.reject((0,o.F0)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((s=>s.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeMoreMinimalEdits(e.toString(),t,i)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then((t=>t.computeDefaultDocumentColors(e.toString())))}async textualSuggest(e,t,i){const n=await this._withSyncedResources(e),s=i.source,o=i.flags;return n.textualSuggest(e.map((e=>e.toString())),t,s,o)}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const s=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=s.source,r=s.flags;return i.computeWordRanges(e.toString(),t,o,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{const s=this._modelService.getModel(e);if(!s)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=o.source,a=o.flags;return n.navigateValueSet(e.toString(),t,i,r,a)}))}findSectionHeaders(e,t){return this._withSyncedResources([e]).then((i=>i.findSectionHeaders(e.toString(),t)))}dispose(){super.dispose(),this._disposed=!0}}},52432:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});class n{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new n(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const s=e.getVisibleRanges();if(s.length>0){t=s[0].getStartPosition();const n=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-n}return new n(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=s}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}},55751:(e,t,i)=>{"use strict";i.d(t,{CH:()=>d,CR:()=>a,D4:()=>l,u7:()=>o,xh:()=>s,yu:()=>r});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class s extends n{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class o{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class r{static from(e){const t=new Array(e.length);for(let i=0,n=e.length;i<n;i++){const n=e[i];t[i]=new r(n.left,n.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class d{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},13056:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>m,ob:()=>p,dL:()=>w});var n=i(27748),s=i(75816),o=i(90388),r=i(55751);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,s){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,n),o.getClientRects()}catch(r){return null}finally{this._detachRange(o,s)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(r.CR.compare);const t=[];let i=0,n=e[0];for(let s=1,o=e.length;s<o;s++){const o=e[s];n.left+n.width+.9>=o.left?n.width=Math.max(n.width,o.left+o.width-n.left):(t[i++]=n,n=o)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const n=[];for(let s=0,o=e.length;s<o;s++){const o=e[s];n[s]=new r.CR(Math.max(0,(o.left-t)/i),o.width/i)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,i,n,s,o){const r=e.children.length-1;if(0>r)return null;if((t=Math.min(r,Math.max(0,t)))===(n=Math.min(r,Math.max(0,n)))&&i===s&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,o.clientRectDeltaLeft,o.clientRectScale)}t!==n&&n>0&&0===s&&(n--,s=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===s&&n>0&&(l=e.children[n-1].firstChild,s=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),s=Math.min(l.textContent.length,Math.max(0,s));const d=this._readClientRects(a,i,l,s,o.endNode);return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(d,o.clientRectDeltaLeft,o.clientRectScale)}}var l=i(21770),d=i(97869),h=i(25112),c=i(67364);const u=!!o.tY||!(o.IJ||n.vU||n.G6);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(50),s=i.get(38);this.renderWhitespace="off"===s?i.get(99):"none",this.renderControlCharacters=i.get(94),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(117),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,s.X)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.c3)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n,s){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const o=n.getViewLineRenderingData(e),r=this._options,a=l.Kp.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let p=null;if((0,h.c3)(r.themeType)||"selection"===this._options.renderWhitespace){const t=n.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:o.minColumn,n=i.endLineNumber===e?i.endColumn:o.maxColumn;t<n&&((0,h.c3)(r.themeType)&&a.push(new l.Kp(t,n,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new d.zG(t-1,n-1))))}}const _=new d.IJ(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==c.n0.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;" class="'),s.appendString(m.CLASS_NAME),s.appendString('">');const v=(0,d.d1)(_,s);s.appendString("</div>");let C=null;return g&&u&&o.isBasicASCII&&r.useMonospaceOptimizations&&0===v.containsForeignElements&&(C=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),C||(C=b(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=C,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const s=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==s&&t>s+1&&i>s+1)return new r.CH(!0,[new r.CR(this.getWidth(n),0)]);-1!==s&&t>s+1&&(t=s+1),-1!==s&&i>s+1&&(i=s+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return o&&o.length>0?new r.CH(!1,o):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}m.CLASS_NAME="view-line";class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e<n;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null===e||void 0===e||e.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return b(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const s=this._getColumnPixelOffset(e,t,n),o=this._getColumnPixelOffset(e,i,n);return[new r.CR(s,o-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const n=Math.floor((t-1)/300)-1,s=300*(n+1)+1;let o=-1;if(this._keyColumnPixelOffsetCache&&(o=this._keyColumnPixelOffsetCache[n],-1===o&&(o=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[n]=o)),-1===o){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const r=this._characterMapping.getHorizontalOffset(s),a=this._characterMapping.getHorizontalOffset(t);return o+this._charWidth*(a-r)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),s=a.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return s&&0!==s.length?s[0].left:-1}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class _{constructor(e,t,i,n,s){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=s,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null===e||void 0===e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const s=this._readPixelOffset(this.domNode,e,t,n);if(-1===s)return null;const o=this._readPixelOffset(this.domNode,e,i,n);return-1===o?null:[new r.CR(s,o-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,s){if(i===n){const n=this._readPixelOffset(e,t,i,s);return-1===n?null:[new r.CR(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,s)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);const t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const s=this._pixelOffsetCache[i];if(-1!==s)return s;const o=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=o,o}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);const s=this._characterMapping.getDomPosition(i),o=a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!o||0===o.length)return-1;const r=o[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new r.CR(0,this.getWidth(n))];const s=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,o.partIndex,o.charIndex,n)}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,n,s){const o=super._readVisibleRangesForRange(e,t,i,n,s);if(!o||0===o.length||i===n||1===i&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,s);if(-1!==i){const e=o[o.length-1];e.left<i&&(e.width=i-e.left)}}return o}}const b=n.Pf?C:y;function C(e,t,i,n,s){return new v(e,t,i,n,s)}function y(e,t,i,n,s){return new _(e,t,i,n,s)}function w(e,t,i){const n=t.textContent.length;let s=-1;for(;t;)t=t.previousSibling,s++;return e.getColumn(new d.Nd(s,i),n)}},50238:(e,t,i)=>{"use strict";i.d(t,{Gm:()=>Ys});var n=i(79316),s=i(60548),o=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},r=function(e,t){return function(i,n){t(i,n,e)}};let a=class{constructor(e,t){}dispose(){}};a.ID="editor.contrib.markerDecorations",a=o([r(1,n.i)],a),(0,s._K)(a.ID,a,0);var l=i(76595),d=i(16015),h=i(39706),c=i(53186),u=i(32060),g=i(64295),p=i(27748),m=i(51833),f=i(53335),_=i(90388),v=i(17067),b=i(88775);class C{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=C._read(e,this.key);this.migrate(t,(t=>C._read(e,t)),((t,i)=>C._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const s=t.substring(0,n);return e[s]=e[s]||{},void this._write(e[s],t.substring(n+1),i)}e[t]=i}}function y(e,t){C.items.push(new C(e,t))}function w(e,t){y(e,((i,n,s)=>{if("undefined"!==typeof i)for(const[o,r]of t)if(i===o)return void s(e,r)}))}C.items=[],w("wordWrap",[[!0,"on"],[!1,"off"]]),w("lineNumbers",[[!0,"on"],[!1,"off"]]),w("cursorBlinking",[["visible","solid"]]),w("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),w("renderLineHighlight",[[!0,"line"],[!1,"none"]]),w("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),w("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),w("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("autoIndent",[[!1,"advanced"],[!0,"full"]]),w("matchBrackets",[[!0,"always"],[!1,"never"]]),w("renderFinalNewline",[[!0,"on"],[!1,"off"]]),w("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),w("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),w("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),y("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),y("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),y("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const S={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};y("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const n of Object.entries(S)){!1===e[n[0]]&&"undefined"===typeof t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),y("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),y("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),y("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),y("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const n={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,n[i[0]]=i[1]?"explicit":"never"):n[i[0]]=i[1];t&&i("codeActionsOnSave",n)}})),y("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),y("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var x=i(52274),L=i(67364),k=i(90582),D=i(13785),N=i(71940),E=i(20796),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=class extends c.JT{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.Q5),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.Q5),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new L.LJ,this.isSimpleWidget=e,this._containerObserver=this._register(new v.I(i,t.dimension)),this._targetWindowId=(0,l.Jj)(i).vscodeWindowId,this._rawOptions=F(t),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(k.C.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(x.n.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(b.g.onDidChange((()=>this._recomputeOptions()))),this._register(E.T.getInstance((0,l.Jj)(i)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=D.E4.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:x.n.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:A(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Pf||p.vU,pixelRatio:E.T.getInstance((0,l.ed)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return b.g.readFontInfo((0,l.ed)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function A(){let e="";return p.G6||p.MG||(e+="no-user-select "),p.G6&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.dz&&(e+="mac "),e}M=T([I(3,N.F)],M);class R{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class O{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new R;for(const i of L.Bc){const n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new O;for(const n of L.Bc)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.fS(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const s of L.Bc){const o=!P._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=o,o&&(n=!0)}return n?new L.Bb(i):null}static applyUpdate(e,t){let i=!1;for(const n of L.Bc)if(t.hasOwnProperty(n.name)){const s=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=s.newValue,i=i||s.didChange}return i}}function F(e){const t=f.I8(e);return function(e){C.items.forEach((t=>t.apply(e)))}(t),t}var B=i(74246),V=i(75816),W=i(9922),H=i(76046);class z extends c.JT{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i<n;i++){const n=e[i];switch(n.type){case 0:this.onCompositionStart(n)&&(t=!0);break;case 1:this.onCompositionEnd(n)&&(t=!0);break;case 2:this.onConfigurationChanged(n)&&(t=!0);break;case 3:this.onCursorStateChanged(n)&&(t=!0);break;case 4:this.onDecorationsChanged(n)&&(t=!0);break;case 5:this.onFlushed(n)&&(t=!0);break;case 6:this.onFocusChanged(n)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(n)&&(t=!0);break;case 8:this.onLineMappingChanged(n)&&(t=!0);break;case 9:this.onLinesChanged(n)&&(t=!0);break;case 10:this.onLinesDeleted(n)&&(t=!0);break;case 11:this.onLinesInserted(n)&&(t=!0);break;case 12:this.onRevealRangeRequest(n)&&(t=!0);break;case 13:this.onScrollChanged(n)&&(t=!0);break;case 15:this.onTokensChanged(n)&&(t=!0);break;case 14:this.onThemeChanged(n)&&(t=!0);break;case 16:this.onTokensColorsChanged(n)&&(t=!0);break;case 17:this.onZonesChanged(n)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(n)}}t&&(this._shouldRender=!0)}}class j extends z{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class U{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let n=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[n++]=this.read(e)),e=e.parentElement;const s=new Uint8Array(n);for(let o=0;o<n;o++)s[o]=i[n-o-1];return s}}var K,q=i(13056),$=i(74633),G=i(28928),Y=i(32653),Z=i(54256),Q=i(20447);class X{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const n=e.getPositionFromDOMInfo(t,i);return n?new J(n,t,null):new X(t)}}(K||(K={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!t&&e?new G.e(e.lineNumber,e.column,e.lineNumber,e.column):null!==t&&void 0!==t?t:null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,n,s,o){return{type:e,element:t,mouseColumn:i,position:n,range:s,detail:o}}static createViewZone(e,t,i,n,s){return{type:e,element:t,mouseColumn:i,position:n,range:this._deduceRage(n),detail:s}}static createContentText(e,t,i,n,s){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,n),detail:s}}static createContentEmpty(e,t,i,n){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:n}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,n){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:n}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class ne{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(145),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(116),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return ne.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,s=e.viewModel.getLineCount();let o,r=null,a=null;return i.afterLineNumber!==s&&(a=new $.L(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new $.L(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),o=null===a?r:null===r?a:t<n?r:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:r,positionAfter:a,position:o}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new G.e(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new G.e(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return ne._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class se{constructor(e,t,i,n){this.editorPos=t,this.pos=i,this.relativePos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,le._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class oe extends se{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=U.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,s){super(e,t,i,n),this.hitTestResult=new Q.o((()=>le.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=s;const o=Boolean(this._eventTarget);this._useHitTestTarget=!o}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?Y.i.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,n){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,n)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const re={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class le{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=U.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,n,s){const o=new ne(this._context,this._viewHelper,e),r=new oe(o,t,i,n,s);try{const e=le._createMouseTarget(o,r);if(6===e.type&&o.stickyTabStops&&null!==e.position){const t=le._snapToSoftTabBoundary(e.position,o.viewModel),i=G.e.fromPositions(t,t).plusRange(e.range);return r.fulfillContentText(t,i,e.detail)}return e}catch(a){return r.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let n=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(n=n||t.fulfillUnknown()),n=n||le._hitTestContentWidget(e,i),n=n||le._hitTestOverlayWidget(e,i),n=n||le._hitTestMinimap(e,i),n=n||le._hitTestScrollbarSlider(e,i),n=n||le._hitTestViewZone(e,i),n=n||le._hitTestMargin(e,i),n=n||le._hitTestViewCursor(e,i),n=n||le._hitTestTextArea(e,i),n=n||le._hitTestViewLines(e,i),n=n||le._hitTestScrollbar(e,i),n||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,n=t.mouseContentHorizontalOffset,s=t.mouseVerticalOffset;for(const o of i){if(n<o.contentLeft)continue;if(n>o.contentLeft+o.width)continue;const i=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(i<=s&&s<=i+o.height)return t.fulfillContentText(o.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let s=Math.abs(t.relativePos.x);const o={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:s};if(s-=e.layoutInfo.glyphMarginLeft,s<=e.layoutInfo.glyphMarginWidth){const r=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(r.lineNumber);return o.glyphMarginLane=a[Math.floor(s/e.lineHeight)],t.fulfillMargin(2,n,i.range,o)}return s-=e.layoutInfo.glyphMarginWidth,s<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,o):(s-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,o))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new $.L(1,1),re);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new $.L(i,n),re)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const n=e.getLineWidth(i),s=ae(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new $.L(i,1),s)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const s=ae(t.mouseContentHorizontalOffset-n),o=new $.L(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(o,s)}}const i=t.hitTestResult.value;return 1===i.type?le.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.L(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.L(i,n))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.L(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(145),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return le._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,s){const o=n.lineNumber,r=n.column,a=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(n,e)}const d=e.visibleRangeForPosition(o,r);if(!d)return t.fulfillUnknown(n);const h=d.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!s,injectedText:s});const c=[];if(c.push({offset:d.left,column:r}),r>1){const t=e.visibleRangeForPosition(o,r-1);t&&c.push({offset:t.left,column:r-1})}if(r<e.viewModel.getLineMaxColumn(o)){const t=e.visibleRangeForPosition(o,r+1);t&&c.push({offset:t.left,column:r+1})}c.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(l.Jj(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let l=1;l<c.length;l++){const e=c[l-1],i=c[l];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new G.e(o,e.column,o,i.column);n=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new $.L(o,e.column):new $.L(o,i.column);break}}return t.fulfillContentText(n,m,{mightBeForeignElement:!p||!!s,injectedText:s})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.getVerticalOffsetForLineNumber(i),s=n+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>s)){const i=Math.floor((n+s)/2);let o=t.pos.y+(i-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+t.editorPos.height&&(o=t.editorPos.y+t.editorPos.height-1);const r=new H.YN(t.pos.x,o),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates(l.Jj(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(l.Jj(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=l.Ay(e.viewDomNode);let n;if(n=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let s=e.elementFromPoint(t,i);if(null!==s){for(;s&&s.firstChild&&s.firstChild.nodeType!==s.firstChild.TEXT_NODE&&s.lastChild&&s.lastChild.firstChild;)s=s.lastChild;const e=s.getBoundingClientRect(),i=l.Jj(s),o=`${i.getComputedStyle(s,null).getPropertyValue("font-style")} ${i.getComputedStyle(s,null).getPropertyValue("font-variant")} ${i.getComputedStyle(s,null).getPropertyValue("font-weight")} ${i.getComputedStyle(s,null).getPropertyValue("font-size")}/${i.getComputedStyle(s,null).getPropertyValue("line-height")} ${i.getComputedStyle(s,null).getPropertyValue("font-family")}`,r=s.innerText;let a,d=e.left,h=0;if(t>e.left+e.width)h=r.length;else{const e=de.getInstance();for(let i=0;i<r.length+1;i++){if(a=e.getCharWidth(r.charAt(i),o)/2,d+=a,t<d){h=i;break}d+=a}}n.setStart(s.firstChild,h),n.setEnd(s.firstChild,h)}return n}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new X;const s=n.startContainer;if(s.nodeType===s.TEXT_NODE){const t=s.parentNode,i=t?t.parentNode:null,o=i?i.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===q.Nt.CLASS_NAME?K.createFromDOMInfo(e,t,n.startOffset):new X(s.parentNode)}if(s.nodeType===s.ELEMENT_NODE){const t=s.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===q.Nt.CLASS_NAME?K.createFromDOMInfo(e,s,s.textContent.length):new X(s)}return new X}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,n=t?t.parentNode:null,s=n?n.parentNode:null;return(s&&s.nodeType===s.ELEMENT_NODE?s.className:null)===q.Nt.CLASS_NAME?K.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new X(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,n=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,s=t?t.parentNode:null,o=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(n===q.Nt.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return K.createFromDOMInfo(e,t,0)}else if(o===q.Nt.CLASS_NAME)return K.createFromDOMInfo(e,i.offsetNode,0)}return new X(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),s=Z.l.atomicPosition(i,e.column-1,n,2);return-1!==s?new $.L(e.lineNumber,s+1):e}static doHitTest(e,t){let i=new X;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(l.Jj(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),n=e.viewModel.normalizePosition(i.position,2);!t&&n.equals(i.position)||(i=new J(n,i.spanNode,t))}return i}}class de{static getInstance(){return de._INSTANCE||(de._INSTANCE=new de),de._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const n=this._canvas.getContext("2d");n.font=t;const s=n.measureText(e).width;return this._cache[i]=s,s}}de._INSTANCE=null;var he=i(81068),ce=i(68068),ue=i(11801),ge=i(65179),pe=i(24854),me=i(24622);class fe extends z{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new le(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;const n=new H.N5(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=l.nm(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new H.gy(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let s=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{s=t}))),this._register(l.nm(this.viewHelper.viewDomNode,l.tw.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,s)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.Io.INSTANCE;let t=0,i=k.C.getZoomLevel(),n=!1,s=0;function o(e){return _.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(l.nm(this.viewHelper.viewDomNode,l.tw.MOUSE_WHEEL,(r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(76))return;const a=new ge.q(r);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(o(r)){const e=k.C.getZoomLevel(),t=a.deltaY>0?1:-1;k.C.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=k.C.getZoomLevel(),n=o(r),s=0),t=Date.now(),s+=a.deltaY,n&&(k.C.setZoomLevel(i+s/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(145)){const e=this._context.configuration.options.get(145).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new H.rU(e,t).toPageCoordinates(l.Jj(this.viewHelper.viewDomNode)),n=(0,H.kG)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;const s=(0,H.Pp)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,s,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=l.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,s=2===i.type||3===i.type||4===i.type,o=3===i.type,r=this._context.configuration.options.get(109),a=8===i.type||5===i.type,l=9===i.type;let d=e.leftButton||e.middleButton;_.dz&&e.leftButton&&e.ctrlKey&&(d=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(d&&(n||o&&r))h(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(a){const n=i.detail;d&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends c.JT{constructor(e,t,i,n,s,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=s,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new H.AL(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ce,this._currentSelection=new pe.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const s=this._context.configuration.options;if(!s.get(91)&&s.get(35)&&!s.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);l.vd(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,o=Math.max(n.getCurrentScrollTop()-i,0),r=ne.getZoneAtCoord(this._context,o);if(r){const e=this._helpPositionJumpOverViewZone(r);if(e)return te.createOutsideEditor(s,e,"above",i)}const a=n.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(s,new $.L(a,1),"above",i)}if(e.posy>t.y+t.height){const o=e.posy-t.y-t.height,r=n.getCurrentScrollTop()+e.relativePos.y,a=ne.getZoneAtCoord(this._context,r);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(s,e,"below",o)}const l=n.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(s,new $.L(l,i.getLineMaxColumn(l)),"below",o)}const o=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(s,new $.L(o,1),"left",i)}if(e.posx>t.x+t.width){const n=e.posx-t.x-t.width;return te.createOutsideEditor(s,new $.L(o,i.getLineMaxColumn(o)),"right",n)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return te.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new $.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends c.JT{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new be(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class be extends c.JT{constructor(e,t,i,n,s,o){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=s,this._mouseEvent=o,this._lastTime=Date.now(),this._animationFrameDisposable=l.jL(l.Jj(o.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(145).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const n=this._context.viewLayout.getLinesViewportData(),s="above"===this._position.outsidePosition?n.startLineNumber:n.endLineNumber;let o;{const e=(0,H.kG)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(145).horizontalScrollbarHeight,i=new H.YN(this._mouseEvent.pos.x,e.y+e.height-t-.1),n=(0,H.Pp)(this._viewHelper.viewDomNode,e,i);o=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,n,null)}o.position&&o.position.lineNumber===s||(o="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new $.L(s,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new $.L(s,this._context.viewModel.getLineMaxColumn(s)),"below",this._position.outsideDistance)),this._dispatchMouse(o,!0,2),this._animationFrameDisposable=l.jL(l.Jj(o.element),(()=>this._execute()))}}class Ce{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ce.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Ce.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ye=i(90356);class we extends fe{constructor(e,t,i){super(e,t,i),this._register(ce.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Tap,(e=>this.onTap(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Change,(e=>this.onChange(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Contextmenu,(e=>this._onContextMenu(new H.gy(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(l.nm(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new H.tC(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new H.gy(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(ce.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Tap,(e=>this.onTap(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Change,(e=>this.onChange(e)))),this._register(l.nm(this.viewHelper.linesContentDomNode,ce.t.Contextmenu,(e=>this._onContextMenu(new H.gy(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new H.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(ye.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class xe extends c.JT{constructor(e,t,i){super();(_.gn||_.Dt&&_.tq)&&he.D.pointerEvents?this.handler=this._register(new we(e,t,i)):ue.E.TouchEvent?this.handler=this._register(new Se(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Le=i(5887),ke=i(78701),De=i(13593);class Ne extends z{}var Ee=i(46673),Te=i(12354);class Ie extends Ne{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new $.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);const i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.IJ?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));s.sort(((e,t)=>G.e.compareRangesUsingEnds(e.range,t.range)));let o=0;const r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=n;l++){const e=l-i;let n=this._getLineRenderLineNumber(l),d="";for(;o<s.length&&s[o].range.endLineNumber<l;)o++;for(let t=o;t<s.length;t++){const{range:e,options:i}=s[t];e.startLineNumber<=l&&(d+=" "+i.lineNumberClassName)}n||d?(l===r&&0===this._context.viewModel.getLineLength(l)&&("off"===this._renderFinalNewline&&(n=""),"dimmed"===this._renderFinalNewline&&(d+=" dimmed-line-number")),l===this._activeLineNumber&&(d+=" active-line-number"),a[e]=`<div class="${Ie.CLASS_NAME}${t}${d}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${n}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ie.CLASS_NAME="line-numbers",(0,Ee.Ic)(((e,t)=>{const i=e.getColor(Te.hw),n=e.getColor(Te.Bj);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Me extends j{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setClassName(Me.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,V.X)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Me.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Me.CLASS_NAME="glyph-margin",Me.OUTER_CLASS_NAME="margin";var Ae=i(55412);const Re="monaco-mouse-cursor-text";var Oe=i(18841),Pe=i(63932),Fe=i(11052),Be=i(25371),Ve=i(87775),We=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},He=function(e,t){return function(i,n){t(i,n,e)}};class ze{constructor(e,t,i,n,s){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=s,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new $.L(this.modelLineNumber,this.distanceToModelLineStart+1),i=new $.L(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const je=p.vU;let Ue=class extends j{constructor(e,t,i,n,s){super(e),this._keybindingService=n,this._instantiationService=s,this._primaryCursorPosition=new $.L(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const o=this._context.configuration.options,r=o.get(145);this._setAccessibilityOptions(o),this._contentLeft=r.contentLeft,this._contentWidth=r.contentWidth,this._contentHeight=r.height,this._fontInfo=o.get(50),this._lineHeight=o.get(67),this._emptySelectionClipboard=o.get(37),this._copyWithSyntaxHighlighting=o.get(25),this._visibleTextArea=null,this._selections=[new pe.Y(1,1,1,1)],this._modelSelections=[new pe.Y(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,V.X)(document.createElement("textarea")),U.write(this.textArea,7),this.textArea.setClassName(`inputarea ${Re}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(o)),this.textArea.setAttribute("aria-required",o.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(o.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Le.NC("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",o.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,V.X)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const l={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},d={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.ED),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),n=Array.isArray(e)?e:null,s=Array.isArray(e)?e.join(t):e;let o,r=null;if(ye.RA.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&s.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(o=e.html,r=e.mode)}return{isFromEmptySelection:i,multicursorText:n,text:s,html:o,mode:r}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.dz&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new De.un(i,i.length,i.length,G.e.fromPositions(t),0)}const t=500;if(_.dz&&!e.isEmpty()&&l.getValueLengthInRange(e,0)<t){const t=l.getValueInRange(e,0);return new De.un(t,0,t.length,e,0)}if(p.G6&&!e.isEmpty()){const e="vscode-placeholder";return new De.un(e,0,e.length,null,void 0)}return De.un.EMPTY}if(p.Dt){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,n]=this._getAndroidWordAtPosition(t);if(i.length>0)return new De.un(i,n,n,G.e.fromPositions(t),0)}return De.un.EMPTY}return De.ee.fromEditorSelection(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new ye.Tj(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(ye.Fz,d,h,_.OS,{isAndroid:p.Dt,isChrome:p.i7,isFirefox:p.vU,isSafari:p.G6})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(De.al&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(De.al&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:n,widthOfHiddenTextBefore:s}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),n=e.lastIndexOf("\n"),s=e.substring(n+1),o=s.lastIndexOf("\t"),r=s.length-o-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),d=a.column-1-l,h=s.substring(0,s.length-l),{tabSize:c}=this._context.viewModel.model.getOptions(),u=function(e,t,i,n){if(0===t.length)return 0;const s=e.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";const o=e.createElement("span");(0,g.N)(o,i),o.style.whiteSpace="pre",o.style.tabSize=n*i.spaceWidth+"px",o.append(t),s.appendChild(o),e.body.appendChild(s);const r=o.offsetWidth;return e.body.removeChild(s),r}(this.textArea.domNode.ownerDocument,h,this._fontInfo,c);return{distanceToModelLineStart:d,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:o}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),n=e.indexOf("\n"),s=-1===n?e:e.substring(0,n),o=s.indexOf("\t"),r=-1===o?s.length:s.length-o-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,G.e.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new ze(this._context,i.startLineNumber,n,s,o),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Re} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${Re}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.F.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ae.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let n=!0,s=e.column,o=!0,r=e.column,a=0;for(;a<50&&(n||o);){if(n&&s<=1&&(n=!1),n){const e=t.charCodeAt(s-2);0!==i.get(e)?n=!1:s--}if(o&&r>t.length&&(o=!1),o){const e=t.charCodeAt(r-1);0!==i.get(e)?o=!1:r++}a++}return[t.substring(s-1,r-1),e.column-s]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ae.u)(this._context.configuration.options.get(131),[]);let n=e.column,s=0;for(;n>1;){const o=t.charCodeAt(n-2);if(0!==i.get(o)||s>50)return t.substring(n-1,e.column-1);s++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!ke.ZG(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){var t,i,n;if(1===e.get(2)){const e=null===(t=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))||void 0===t?void 0:t.getAriaLabel(),s=null===(i=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))||void 0===i?void 0:i.getAriaLabel(),o=null===(n=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))||void 0===n?void 0:n.getAriaLabel(),r=Le.NC("accessibilityModeOff","The editor is not accessible at this time.");return e?Le.NC("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",r,e):s?Le.NC("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",r,s):o?Le.NC("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",r,o):r}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===L.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(145).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=je?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=n*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(124))),(e.hasChanged(34)||e.hasChanged(91))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.F.enabled||e.get(34)&&e.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new $.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,n=this._visibleTextArea.endPosition;if(i&&n&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const s=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,o=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,r+=e,l-=e}l>this._contentWidth&&(l=this._contentWidth);const d=this._context.viewModel.getViewLineData(i.lineNumber),h=d.tokens.findTokenIndexAtOffset(i.column-1),c=h===d.tokens.findTokenIndexAtOffset(n.column-1),u=this._visibleTextArea.definePresentation(c?d.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=o*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:s,left:a,width:l,height:this._lineHeight,useCover:!1,color:(Oe.RW.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight)this._renderAtTopLeft();else if(_.dz||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=null!==(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)&&void 0!==e?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:je?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:je?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.N)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Il.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Me.OUTER_CLASS_NAME):0!==n.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ie.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ue=We([He(3,Be.d),He(4,Ve.TG)],Ue);var Ke=i(55751),qe=i(15968);class $e{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){qe.Ox.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new $.L(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.IJ&&t.get(107),n=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){qe.Ox.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){qe.Ox.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),qe.Ox.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),qe.Ox.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){qe.Ox.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){qe.Ox.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){qe.Ox.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){qe.Ox.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){qe.Ox.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){qe.Ox.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){qe.Ox.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){qe.Ox.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){qe.Ox.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var Ge=i(58296),Ye=i(130);class Ze{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new d.he("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>n)return null;let s=0,o=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===o?(s=i,o=1):o++)}if(e<i){let n=0;n=t<i?t-e+1:i-e,this._rendLineNumberStart-=n}return this._lines.splice(s,o)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const n=this.getStartLineNumber(),s=this.getEndLineNumber();let o=!1;for(let r=e;r<=i;r++)r>=n&&r<=s&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s){return this._lines.splice(e-this._rendLineNumberStart,s-e+1)}const o=[];for(let h=0;h<i;h++)o[h]=this._createLine();const r=e-this._rendLineNumberStart,a=this._lines.slice(0,r),l=this._lines.slice(r,this._lines.length-i),d=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(o).concat(l),d}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let n=!1;for(let s=0,o=e.length;s<o;s++){const o=e[s];if(o.toLineNumber<t||o.fromLineNumber>i)continue;const r=Math.max(t,o.fromLineNumber),a=Math.min(i,o.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class Qe{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Ze((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,V.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;i<n;i++){const e=t[i].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;i<n;i++){const e=t[i].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Xe(this.domNode.domNode,this._host,e),n={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},s=i.render(n,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(s.rendLineNumberStart,s.lines)}}class Xe{constructor(e,t,i){this.domNode=e,this.host=t,this.viewportData=i}render(e,t,i,n){const s={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(s.rendLineNumberStart+s.linesLength-1<t||i<s.rendLineNumberStart){s.rendLineNumberStart=t,s.linesLength=i-t+1,s.lines=[];for(let e=t;e<=i;e++)s.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(s,!0,n),s}if(this._renderUntouchedLines(s,Math.max(t-s.rendLineNumberStart,0),Math.min(i-s.rendLineNumberStart,s.linesLength-1),n,t),s.rendLineNumberStart>t){const e=t,o=Math.min(i,s.rendLineNumberStart-1);e<=o&&(this._insertLinesBefore(s,e,o,n,t),s.linesLength+=o-e+1)}else if(s.rendLineNumberStart<t){const e=Math.min(s.linesLength,t-s.rendLineNumberStart);e>0&&(this._removeLinesBefore(s,e),s.linesLength-=e)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1<i){const e=s.rendLineNumberStart+s.linesLength,o=i;e<=o&&(this._insertLinesAfter(s,e,o,n,t),s.linesLength+=o-e+1)}else if(s.rendLineNumberStart+s.linesLength-1>i){const e=Math.max(0,i-s.rendLineNumberStart+1),t=s.linesLength-1-e+1;t>0&&(this._removeLinesAfter(s,t),s.linesLength-=t)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const o=e.rendLineNumberStart,r=e.lines;for(let a=t;a<=i;a++){const e=o+a;r[a].layoutLine(e,n[e-s],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,s){const o=[];let r=0;for(let a=t;a<=i;a++)o[r++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,n,s){const o=[];let r=0;for(let a=t;a<=i;a++)o[r++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let n=0;n<t;n++){const t=e.lines[i+n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,n){Xe._ttPolicy&&(i=Xe._ttPolicy.createHTML(i));const s=this.domNode.lastChild;t||!s?this.domNode.innerHTML=i:s.insertAdjacentHTML("afterend",i);let o=this.domNode.lastChild;for(let r=e.linesLength-1;r>=0;r--){const t=e.lines[r];n[r]&&(t.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Xe._ttPolicy&&(t=Xe._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;s<e.linesLength;s++){const t=e.lines[s];if(i[s]){const e=n.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}_finishRendering(e,t,i){const n=Xe._sb,s=e.linesLength,o=e.lines,r=e.rendLineNumberStart,a=[];{n.reset();let l=!1;for(let e=0;e<s;e++){const t=o[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+r,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(a[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,n.build(),a)}{n.reset();let t=!1;const l=[];for(let e=0;e<s;e++){const s=o[e];if(l[e]=!1,a[e])continue;s.renderLine(e+r,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,n.build(),l)}}}Xe._ttPolicy=(0,Ge.Z)("editorViewLayer",{createHTML:e=>e}),Xe._sb=new Ye.HT(1e5);class Je extends j{constructor(e){super(e),this._visibleLines=new Qe(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.N)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new et(this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.N)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,n=t.length;i<n;i++){const n=t[i];n.prepareRender(e),n.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,V.X)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,n,s){let o="";for(let r=0,a=this._dynamicOverlays.length;r<a;r++){o+=this._dynamicOverlays[r].render(n.startLineNumber,e)}return this._renderedContent!==o&&(this._renderedContent=o,s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;">'),s.appendString(o),s.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(145);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.N)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.N)(this.domNode,t.get(50));const i=t.get(145);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class nt{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}emitKeyUp(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}emitContextMenu(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}emitMouseWheel(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return nt.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new $.L(e.afterLineNumber,1)).lineNumber}}}class st extends j{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(145),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const n=t.contentLeft;return this.contentLeft!==n&&(this.contentLeft=n,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;const n=e.getDecorationsInViewport();for(const s of n){if(!s.options.blockClassName)continue;let n,o,r=this.blocks[i];r||(r=this.blocks[i]=(0,V.X)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),o=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(n=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),o=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[a,l,d,h]=null!==(t=s.options.blockPadding)&&void 0!==t?t:[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-h),r.setWidth(this.contentWidth+h+l),r.setTop(n-e.scrollTop-a),r.setHeight(o-n+a+d),i++}for(let s=i;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=i}}class ot extends j{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,V.X)(document.createElement("div")),U.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,V.X)(document.createElement("div")),U.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new rt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n,s){this._widgets[e.getId()].setPosition(t,i,n,s),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class rt{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,V.X)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(145);this._fixedOverflowWidgets=n.get(42),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(145)){const e=t.get(145);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function n(e,t,i){if(!e)return new at(null,null);const n=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(n)){const s=t.coordinatesConverter.convertModelPositionToViewPosition(n,null!==i&&void 0!==i?i:void 0);return new at(e,s)}return new at(e,null)}this._affinity=e,this._primaryAnchor=n(t,this._context.viewModel,this._affinity),this._secondaryAnchor=n(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?(null===t||void 0===t?void 0:t.innerWidth)||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,n){this._setPosition(n,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const s=e.top,o=s,r=e.top+e.height,a=s-i,l=o>=i,d=r,h=n.viewportHeight-r>=i;let c=e.left;return c+t>n.scrollLeft+n.viewportWidth&&(c=n.scrollLeft+n.viewportWidth-t),c<n.scrollLeft&&(c=n.scrollLeft),{fitsAbove:l,aboveTop:a,fitsBelow:h,belowTop:d,left:c}}_layoutHorizontalSegmentInPage(e,t,i,n){var s;const o=Math.max(15,t.left-n),r=Math.min(t.left+t.width+n,e.width-15),a=this._viewDomNode.domNode.ownerDocument.defaultView;let l=t.left+i-(null!==(s=null===a||void 0===a?void 0:a.scrollX)&&void 0!==s?s:0);if(l+n>r){const e=l-(r-n);l-=e,i-=e}if(l<o){const e=l-o;l-=e,i-=e}return[i,l]}_layoutBoxInPage(e,t,i,n){var s,o;const r=e.top-i,a=e.top+e.height,d=l.i(this._viewDomNode.domNode),h=this._viewDomNode.domNode.ownerDocument,c=h.defaultView,u=d.top+r-(null!==(s=null===c||void 0===c?void 0:c.scrollY)&&void 0!==s?s:0),g=d.top+a-(null!==(o=null===c||void 0===c?void 0:c.scrollY)&&void 0!==o?o:0),p=l.D6(h.body),[m,f]=this._layoutHorizontalSegmentInPage(p,d,e.left-n.scrollLeft+this._contentLeft,t),_=u>=22,v=g+i<=p.height-22;return this._fixedOverflowWidgets?{fitsAbove:_,aboveTop:Math.max(u,22),fitsBelow:v,belowTop:g,left:f}:{fitsAbove:_,aboveTop:r,fitsBelow:v,belowTop:a,left:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new lt(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;return{primary:n(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:n((null===(t=this._secondaryAnchor.viewPosition)||void 0===t?void 0:t.lineNumber)===(null===(i=this._primaryAnchor.viewPosition)||void 0===i?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function n(t,i,n){if(!t)return null;const s=e.visibleRangeForPosition(t);if(!s)return null;const o=1===t.column&&3===i?0:s.left,r=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new dt(r,o,n)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(50);let s=t.left;return s=s<e.left?Math.max(s,e.left-i+n.typicalFullwidthCharacterWidth):Math.min(s,e.left+i-n.typicalFullwidthCharacterWidth),new dt(e.top,s,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return null;if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const n=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let s;s=this.allowEditorOverflow?this._layoutBoxInPage(n,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(n,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let o=1;o<=2;o++)for(const e of this._preference)if(1===e){if(!s)return null;if(2===o||s.fitsAbove)return{coordinate:new lt(s.aboveTop,s.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new lt(n.top,n.left)),position:0}:{coordinate:new lt(n.top,n.left),position:0};if(!s)return null;if(2===o||s.fitsBelow)return{coordinate:new lt(s.belowTop,s.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class lt{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class dt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t){try{for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.call(t,...n)}catch(o){return null}}var ct=i(25112);class ut extends Ne{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(145);this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.Y(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const s of this._selections)t.add(s.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.fS(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=[];for(let o=t;o<=i;o++){n[o-t]=""}if(this._wordWrap){const s=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const o=this._context.viewModel.coordinatesConverter,r=o.convertViewPositionToModelPosition(new $.L(e,1)).lineNumber,a=o.convertModelPositionToViewPosition(new $.L(r,1)).lineNumber,l=o.convertModelPositionToViewPosition(new $.L(r,this._context.viewModel.model.getLineMaxColumn(r))).lineNumber,d=Math.max(a,t),h=Math.min(l,i);for(let e=d;e<=h;e++){n[e-t]=s}}}const s=this._renderOne(e,!0);for(const o of this._cursorLineNumbers){if(o<t||o>i)continue;n[o-t]=s}this._renderData=n}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,Ee.Ic)(((e,t)=>{const i=e.getColor(Te.Kh);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Te.Mm)){const i=e.getColor(Te.Mm);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,ct.c3)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends Ne{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let a=0,l=t.length;a<l;a++){const e=t[a];e.options.className&&(i[n++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return i<n?-1:i>n?1:G.e.compareRangesUsingStarts(e.range,t.range)}));const s=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,r=[];for(let a=s;a<=o;a++){r[a-s]=""}this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let o=0,r=t.length;o<r;o++){const e=t[o];if(!e.options.isWholeLine)continue;const r='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,n),l=Math.min(e.range.endLineNumber,s);for(let t=a;t<=l;t++){i[t-n]+=r}}}_renderNormalDecorations(e,t,i){var n;const s=e.visibleRange.startLineNumber;let o=null,r=!1,a=null,l=!1;for(let d=0,h=t.length;d<h;d++){const h=t[d];if(h.options.isWholeLine)continue;const c=h.options.className,u=Boolean(h.options.showIfCollapsed);let g=h.range;u&&1===g.endColumn&&g.endLineNumber!==g.startLineNumber&&(g=new G.e(g.startLineNumber,g.startColumn,g.endLineNumber-1,this._context.viewModel.getLineMaxColumn(g.endLineNumber-1))),o===c&&r===u&&G.e.areIntersectingOrTouching(a,g)?a=G.e.plusRange(a,g):(null!==o&&this._renderNormalDecoration(e,a,o,l,r,s,i),o=c,r=u,a=g,l=null!==(n=h.options.shouldFillLineOnLineBreak)&&void 0!==n&&n)}null!==o&&this._renderNormalDecoration(e,a,o,l,r,s,i)}_renderNormalDecoration(e,t,i,n,s,o,r){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let l=0,d=a.length;l<d;l++){const e=a[l];if(e.outsideRenderedLine)continue;const t=e.lineNumber-o;if(s&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),n=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new Ke.yu(n,this._typicalHalfwidthCharacterWidth)}}for(let s=0,o=e.ranges.length;s<o;s++){const a=n&&e.continuesOnNextLine&&1===o,l=e.ranges[s],d='<div class="cdr '+i+'" style="left:'+String(l.left)+"px;width:"+(a?"100%;":String(l.width)+"px;")+'"></div>';r[t]+=d}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends j{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,o=s.get(103),r=s.get(75),a=s.get(40),d=s.get(106),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,Ee.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:o.vertical,horizontal:o.horizontal,verticalHasArrows:o.verticalHasArrows,horizontalHasArrows:o.horizontalHasArrows,verticalScrollbarSize:o.verticalScrollbarSize,verticalSliderSize:o.verticalSliderSize,horizontalScrollbarSize:o.horizontalScrollbarSize,horizontalSliderSize:o.horizontalSliderSize,handleMouseWheel:o.handleMouseWheel,alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel,arrowSize:o.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:d,scrollByPage:o.scrollByPage};this.scrollbar=this._register(new me.$Z(t.domNode,h,this._context.viewLayout.getScrollable())),U.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,V.X)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const c=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(n,1)};this._register(l.nm(i.domNode,"scroll",(e=>c(i.domNode,!0,!0)))),this._register(l.nm(t.domNode,"scroll",(e=>c(t.domNode,!0,!1)))),this._register(l.nm(n.domNode,"scroll",(e=>c(n.domNode,!0,!1)))),this._register(l.nm(this.scrollbarDomNode.domNode,"scroll",(e=>c(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(145);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(103)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(103),i=e.get(75),n=e.get(40),s=e.get(106),o={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:s};this.scrollbar.updateOptions(o)}return e.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Ee.m6)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(24032);class vt{constructor(e,t,i,n,s){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=n,this._decorationToRenderBrand=void 0,this.zIndex=null!==s&&void 0!==s?s:0}}class bt{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Ct{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class yt extends Ne{_render(e,t,i){const n=[];for(let r=e;r<=t;r++){n[r-e]=new Ct}if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let s=null,o=0;for(let r=0,a=i.length;r<a;r++){const a=i[r],l=a.className,d=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const c=Math.min(a.endLineNumber,t)-e;s===l?(h=Math.max(o+1,h),o=Math.max(o,c)):(s=l,o=c);for(let e=h;e<=o;e++)n[e].add(new bt(l,d,a.tooltip))}return n}}class wt extends j{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(145);this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,V.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!G.e.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){var t;const i=e.getId();if(this._widgets[i]){const e=this._widgets[i].domNode.domNode;delete this._widgets[i],null===(t=e.parentNode)||void 0===t||t.removeChild(e),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){var i,n,s;const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.getDecorationsInViewport();for(const l of a){const e=l.options.glyphMarginClassName;if(!e)continue;const a=Math.max(l.range.startLineNumber,o),d=Math.min(l.range.endLineNumber,r),h=null!==(n=null===(i=l.options.glyphMargin)||void 0===i?void 0:i.position)&&void 0!==n?n:_t.U.Center,c=null!==(s=l.options.zIndex)&&void 0!==s?s:0;for(let i=a;i<=d;i++){const n=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(i,0)),s=this._context.viewModel.glyphLanes.getLanesAtLine(n.lineNumber).indexOf(h);t.push(new St(i,s,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(const s of Object.values(this._widgets)){const e=s.preference.range,{startLineNumber:o,endLineNumber:r}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(G.e.lift(e));if(!o||!r||r<i||o>n)continue;const a=Math.max(o,i),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(a,0)),d=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(s.preference.lane);t.push(new xt(a,d,s.preference.zIndex,s))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const n of Object.values(this._widgets))n.renderInfo=null;const t=new m.H9(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const n=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!n||0===n.length)break;const s=n[0];if(0===s.type){const e=[];for(const t of n){if(t.zIndex!==s.zIndex||t.type!==s.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(s.accept(e.join(" ")))}else s.widget.renderInfo={lineNumber:s.lineNumber,laneIndex:s.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();null===e||void 0===e||e.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const n=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],s=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(n),i.domNode.setLeft(s),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const n=this._decorationGlyphsToRender[i],s=e.viewportData.relativeVerticalOffset[n.lineNumber-e.viewportData.startLineNumber],o=this._glyphMarginLeft+n.laneIndex*this._lineHeight;let r;i<this._managedDomNodes.length?r=this._managedDomNodes[i]:(r=(0,V.X)(document.createElement("div")),this._managedDomNodes.push(r),this.domNode.appendChild(r)),r.setClassName("cgmr codicon "+n.combinedClassName),r.setPosition("absolute"),r.setTop(s),r.setLeft(o),r.setWidth(t),r.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();null===e||void 0===e||e.domNode.remove()}}}class St{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=n,this.type=0}accept(e){return new Lt(this.lineNumber,this.laneIndex,e)}}class xt{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=n,this.type=1}}class Lt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var kt=i(47624),Dt=i(67263),Nt=i(58410);class Et extends Ne{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(146),n=t.get(50);this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146),n=t.get(50);return this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,s;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._primaryPosition,d=this.getGuidesByLine(o,Math.min(r+1,this._context.viewModel.getLineCount()),l),h=[];for(let c=o;c<=r;c++){const r=c-o,l=d[r];let u="";const g=null!==(i=null===(t=e.visibleRangeForPosition(new $.L(c,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of l){const i=-1===t.column?g+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new $.L(c,t.column)).left;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const o=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(s=null===(n=e.visibleRangeForPosition(new $.L(c,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==s?s:i+this._spaceWidth)-i:this._spaceWidth;u+=`<div class="core-guide ${t.className} ${o}" style="left:${i}px;width:${r}px"></div>`}h[r]=u}this._renderResult=h}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?Nt.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?Nt.s6.EnabledForActive:Nt.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let o=0,r=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);o=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const t=new Array;d.push(t);const i=n?n[h-e]:[],c=new m.H9(i),u=s?s[h-e]:0;for(let e=1;e<=u;e++){const n=(e-1)*l+1,s=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&o<=h&&h<=r&&e===a;t.push(...c.takeWhile((e=>e.visibleColumn<n))||[]);const d=c.peek();d&&d.visibleColumn===n&&!d.horizontalLine||t.push(new Nt.UO(n,-1,"core-guide-indent lvl-"+(e-1)%30+(s?" indent-active":""),null,-1,-1))}t.push(...c.takeWhile((e=>!0))||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Tt(e){if(!e||!e.isTransparent())return e}(0,Ee.Ic)(((e,t)=>{const i=[{bracketColor:Te.zJ,guideColor:Te.oV,guideColorActive:Te.Qb},{bracketColor:Te.Vs,guideColor:Te.m$,guideColorActive:Te.m3},{bracketColor:Te.CE,guideColor:Te.DS,guideColorActive:Te.To},{bracketColor:Te.UP,guideColor:Te.lS,guideColorActive:Te.L7},{bracketColor:Te.r0,guideColor:Te.Jn,guideColorActive:Te.HV},{bracketColor:Te.m1,guideColor:Te.YF,guideColorActive:Te.f9}],n=new Dt.W,s=[{indentColor:Te.gS,indentColorActive:Te.qe},{indentColor:Te.Tf,indentColorActive:Te.Xy},{indentColor:Te.H_,indentColorActive:Te.cK},{indentColor:Te.h1,indentColorActive:Te.N8},{indentColor:Te.vP,indentColorActive:Te.zd},{indentColor:Te.e9,indentColorActive:Te.ll}],o=i.map((t=>{var i,n;const s=e.getColor(t.bracketColor),o=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=Tt(null!==(i=Tt(o))&&void 0!==i?i:null===s||void 0===s?void 0:s.transparent(.3)),l=Tt(null!==(n=Tt(r))&&void 0!==n?n:s);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(kt.$K),r=s.map((t=>{const i=e.getColor(t.indentColor),n=e.getColor(t.indentColorActive),s=Tt(i),o=Tt(n);if(s&&o)return{indentColor:s,indentColorActive:o}})).filter(kt.$K);if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${n.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${n.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${n.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var It=i(53372);class Mt{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class At{constructor(){this._currentVisibleRange=new G.e(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Rt{constructor(e,t,i,n,s,o,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=o,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Ot{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let o=t[0].startLineNumber,r=t[0].endLineNumber;for(let a=1,l=t.length;a<l;a++){const e=t[a];o=Math.min(o,e.startLineNumber),r=Math.max(r,e.endLineNumber)}this.minLineNumber=o,this.maxLineNumber=r}}class Pt extends j{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Qe(this),this.domNode=this._visibleLines.domNode;const i=this._context.configuration,n=this._context.configuration.options,s=n.get(50),o=n.get(146);this._lineHeight=n.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=n.get(100),this._cursorSurroundingLines=n.get(29),this._cursorSurroundingLinesStyle=n.get(30),this._canUseLayerHinting=!n.get(32),this._viewLineOptions=new q.ob(i,this._context.theme.type),U.write(this.domNode,8),this.domNode.setClassName(`view-lines ${Re}`),(0,g.N)(this.domNode,s),this._maxLineWidth=0,this._asyncUpdateLineWidths=new It.pY((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new It.pY((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new At,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(115).enabled,this._maxNumberStickyLines=n.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new q.Nt(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(146)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),n=t.get(146);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(100),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(115).enabled,this._maxNumberStickyLines=t.get(115).maxLineCount,(0,g.N)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new q.ob(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Rt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Ot(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(n))return new $.L(n,1);const s=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(n<s||n>o)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(n);return r<a&&(r=a),new $.L(n,r)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===q.Nt.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++){if(e===this._visibleLines.getVisibleLine(n).getDomNode())return n}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=G.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let o=0;const r=new Mt(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(h<l||h>d)continue;const e=h===n.startLineNumber?n.startColumn:1,c=h!==n.endLineNumber,u=c?this._context.viewModel.getLineMaxColumn(h):n.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,r);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.L(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}s[o++]=new Ke.u7(g.outsideRenderedLine,h,Ke.yu.from(g.ranges),c)}}return this._updateLineWidthsSlowIfDomDidLayout(r),0===o?null:s}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new Ke.D4(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let o=t;o<=i;o++){const t=this._visibleLines.getVisibleLine(o);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth(null)):s=!1}return s&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const i=this._visibleLines.getVisibleLine(s);if(i.needsMonospaceFontCheck()){const n=i.getWidth(null);n>t&&(t=n,e=s)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++){this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,n,s,o){const r=e.top,a=e.height,l=r+a;let d,h,c;if(s&&s.length>0){let e=s[0].startLineNumber,t=s[0].endLineNumber;for(let i=1,n=s.length;i<n;i++){const n=s[i];e=Math.min(e,n.startLineNumber),t=Math.max(t,n.endLineNumber)}d=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),c=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!n)return-1;d=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),c=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=Math.min(a/this._lineHeight/2,this._cursorSurroundingLines);g=this._stickyScrollEnabled?Math.max(e,this._maxNumberStickyLines)*this._lineHeight:e*this._lineHeight,p=Math.max(0,e-1)*this._lineHeight}if(i||0!==o&&4!==o||(p+=this._lineHeight),h-=g,c+=p,c-h>a){if(!d)return-1;u=h}else if(5===o||6===o)if(6===o&&r<=h&&c<=l)u=r;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=c-a;u=Math.max(t,e)}else if(1===o||2===o)if(2===o&&r<=h&&c<=l)u=r;else{const e=(h+c)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(r,l,h,c,3===o,4===o);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(145),n=t.left,s=n+t.width-i.verticalScrollbarWidth;let o=1073741824,r=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)o=Math.min(o,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)o=Math.min(o,Math.round(t.left)),r=Math.max(r,Math.round(t.left+t.width))}if(e.minimalReveal||(o=Math.max(0,o-Pt.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),"selections"===e.type&&r-o>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(n,s,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,o){s=!!s,o=!!o;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)<r?s?i:o?Math.max(0,n-r):i<e?i:n>t?Math.max(0,n-r):e:i}}Pt.HORIZONTAL_EXTRA_PX=30;class Ft extends yt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(145);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t,i;const n=e.getDecorationsInViewport(),s=[];let o=0;for(let r=0,a=n.length;r<a;r++){const e=n[r],a=e.options.linesDecorationsClassName,l=e.options.zIndex;a&&(s[o++]=new vt(e.range.startLineNumber,e.range.endLineNumber,a,null!==(t=e.options.linesDecorationsTooltip)&&void 0!==t?t:null,l));const d=e.options.firstLineDecorationClassName;d&&(s[o++]=new vt(e.range.startLineNumber,e.range.startLineNumber,d,null!==(i=e.options.linesDecorationsTooltip)&&void 0!==i?i:null,l))}return s}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',o=[];for(let r=t;r<=i;r++){const e=r-t,i=n[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=s,a+=e}o[e]=a}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Bt extends yt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,o=t.length;s<o;s++){const e=t[s],o=e.options.marginClassName,r=e.options.zIndex;o&&(i[n++]=new vt(e.range.startLineNumber,e.range.endLineNumber,o,null,r))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s=[];for(let o=t;o<=i;o++){const e=o-t,i=n[e].getDecorations();let r="";for(const t of i)r+='<div class="cmdr '+t.className+'" style=""></div>';s[e]=r}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Vt=i(21406);class Wt{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Wt._clamp(e),this.g=Wt._clamp(t),this.b=Wt._clamp(i),this.a=Wt._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Wt.Empty=new Wt(0,0,0,0);class Ht extends c.JT{static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,c.dk)(new Ht)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Oe.RW.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Oe.RW.getColorMap();if(!e)return this._colors=[Wt.Empty],void(this._backgroundIsLight=!0);this._colors=[Wt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Wt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Ht._INSTANCE=null;var zt=i(23614),jt=i(6009);const Ut=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var Kt=i(47228);class qt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=qt.soften(e,.8),this.charDataLight=qt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;n<s;n++)i[n]=(0,Kt.K)(e[n]*t);return i}renderChar(e,t,i,n,s,o,r,a,l,d,h){const c=1*this.scale,u=2*this.scale,g=h?1:u;if(t+c>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=d?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,_=r.r,v=r.g,b=r.b,C=s.r-_,y=s.g-v,w=s.b-b,S=Math.max(o,a),x=e.data;let L=m*c*u,k=i*f+4*t;for(let D=0;D<g;D++){let e=k;for(let t=0;t<c;t++){const t=p[L++]/255*(o/255);x[e++]=_+C*t,x[e++]=v+y*t,x[e++]=b+w*t,x[e++]=S}k+=f}}blockRenderChar(e,t,i,n,s,o,r,a){const l=1*this.scale,d=2*this.scale,h=a?1:d;if(t+l>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const c=4*e.width,u=s/255*.5,g=o.r,p=o.g,m=o.b,f=g+(n.r-g)*u,_=p+(n.g-p)*u,v=m+(n.b-m)*u,b=Math.max(s,r),C=e.data;let y=i*c+4*t;for(let w=0;w<h;w++){let e=y;for(let t=0;t<l;t++)C[e++]=f,C[e++]=_,C[e++]=v,C[e++]=b;y+=c}}}var $t=i(66870);const Gt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},Yt=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=Gt[e[i]]<<4|15&Gt[e[i+1]];return t},Zt={1:(0,$t.M)((()=>Yt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,$t.M)((()=>Yt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Qt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Zt[e]?new qt(Zt[e](),e):Qt.createFromSampleData(Qt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const s of Ut)i.fillText(String.fromCharCode(s),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Qt._downsample(e,t);return new qt(i,t)}static _downsampleChar(e,t,i,n,s){const o=1*s,r=2*s;let a=n,l=0;for(let d=0;d<r;d++){const n=d/r*16,s=(d+1)/r*16;for(let r=0;r<o;r++){const d=r/o*10,h=(r+1)/o*10;let c=0,u=0;for(let i=n;i<s;i++){const n=t+3840*Math.floor(i),s=1-(i-Math.floor(i));for(let t=d;t<h;t++){const i=1-(t-Math.floor(t)),o=n+4*Math.floor(t),r=i*s;u+=r,c+=e[o]*e[o+3]/255*r}}const g=c/u;l=Math.max(l,g),i[a++]=(0,Kt.K)(g)}}return l}static _downsample(e,t){const i=2*t*1*t,n=96*i,s=new Uint8ClampedArray(n);let o=0,r=0,a=0;for(let l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,r,s,o,t)),o+=i,r+=40;if(a>0){const e=255/a;for(let t=0;t<n;t++)s[t]*=e}return s}}var Xt=i(38079);const Jt=_.ED?'"Segoe WPC", "Segoe UI", sans-serif':_.dz?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif';class ei{constructor(e,t,i){const n=e.options,s=n.get(143),o=n.get(145),r=o.minimap,a=n.get(50),l=n.get(73);this.renderMinimap=r.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=r.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=n.get(105),this.paddingTop=n.get(84).top,this.paddingBottom=n.get(84).bottom,this.showSlider=l.showSlider,this.autohide=l.autohide,this.pixelRatio=s,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(67),this.minimapLeft=r.minimapLeft,this.minimapWidth=r.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=r.minimapCanvasInnerWidth,this.canvasInnerHeight=r.minimapCanvasInnerHeight,this.canvasOuterWidth=r.minimapCanvasOuterWidth,this.canvasOuterHeight=r.minimapCanvasOuterHeight,this.isSampling=r.minimapIsSampling,this.editorHeight=o.height,this.fontScale=r.minimapScale,this.minimapLineHeight=r.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt,this.sectionHeaderFontSize=l.sectionHeaderFontSize*s,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,$t.M)((()=>Qt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(jt.kVY);return i?new Wt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(jt.Itd);return t?Wt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(jt.NOs);return i?new Wt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,n,s,o,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=o,this.topPaddingLineCount=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,s,o,r,a,l,d,h){const c=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,s-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(s*s/t)),n=Math.max(0,e.minimapHeight-i),o=n/(d-s),h=l*o,c=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(l,d,c,o,h,i,g,1,Math.min(r,u))}let m;if(o&&i!==r){const e=i-t+1;m=Math.floor(e*u/c)}else{const e=s/p;m=Math.floor(e*u/c)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=s/p;v=Math.max(v,e-1)}if(v>0){_=(f+r+v-s/p-1)*u/c}else _=Math.max(0,(f+r)*u/c-m);_=Math.min(e.minimapHeight-m,_);const b=_/(d-s),C=l*b;if(g>=f+r+v){return new ti(l,d,_>0,b,C,m,f,1,r)}{let i,s;i=t>1?t+f:Math.max(1,l/p);let o=Math.max(1,Math.floor(i-C*c/u));o<f?(s=f-o+1,o=1):(s=0,o=Math.max(1,o-f)),h&&h.scrollHeight===d&&(h.scrollTop>l&&(o=Math.min(o,h.startLineNumber),s=Math.max(s,h.topPaddingLineCount)),h.scrollTop<l&&(o=Math.max(o,h.startLineNumber),s=Math.min(s,h.topPaddingLineCount)));const a=Math.min(r,o-s+g-1),_=(l-n)/p;let v;return v=l>=e.paddingTop?(t-o+s+_)*u/c:l/e.paddingTop*(s+_)*u/c,new ti(l,d,!0,b,v,m,s,o,a)}}}class ii{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}ii.INVALID=new ii(-1);class ni{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Ze((()=>ii.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,n=t.length;i<n;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class si{constructor(e,t,i,n){this._backgroundFillData=si._createBackgroundFillData(t,i,n),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const n=i.r,s=i.g,o=i.b,r=i.a,a=new Uint8ClampedArray(e*t*4);let l=0;for(let d=0;d<t;d++)for(let t=0;t<e;t++)a[l]=n,a[l+1]=s,a[l+2]=o,a[l+3]=r,l+=4;return a}}class oi{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:n}=L.gk.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),s=t/n,o=s/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,n>1){for(let t=0,i=n-1;t<i;t++)e[t]=Math.round(t*s+o);e[n-1]=t}return[new oi(s,e),[]]}const r=i.minimapLines,a=r.length,l=[];let d=0,h=0,c=1;let u=[],g=null;for(let p=0;p<n;p++){const e=Math.max(c,Math.round(p*s)),i=Math.max(e,Math.round((p+1)*s));for(;d<a&&r[d]<e;){if(u.length<10){const e=d+1+h;g&&"deleted"===g.type&&g._oldIndex===d-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}d++}let m;if(d<a&&r[d]<=i)m=r[d],d++;else if(m=0===p?1:p+1===n?t:Math.round(p*s+o),u.length<10){const e=d+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}l[p]=m,c=m}if(u.length<10)for(;d<a;){const e=d+1+h;g&&"deleted"===g.type&&g._oldIndex===d-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,d++}else u=[{type:"flush"}];return[new oi(s,l),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1<this.minimapLines.length&&this.minimapLines[n+1]<=t;)n++;if(i===n){const n=this.minimapLines[i];if(n<e||n>t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]<e.fromLineNumber);s--)this.minimapLines[s]<=e.toLineNumber?(this.minimapLines[s]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,s),n=Math.max(n,s)):this.minimapLines[s]-=t;return[i,n]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class ri extends j{constructor(e){super(e),this._sectionHeaderCache=new Xt.z6(10,1.5),this.tokensColorTracker=Ht.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=oi.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const n={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=oi.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,o=t-e+1;s<o;s++)i[s]?n[s]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+s-1]):n[s]=null;return n}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.Y(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),s=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new zt.$l(new G.e(n,i.startColumn,s,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,n=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-n)),this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const n=this._samplingState.minimapLines[e-1],s=this._samplingState.minimapLines[t-1];i=new G.e(n,1,s,this._context.viewModel.getLineMaxColumn(s))}else i=new G.e(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;const n=null===(i=e.options.minimap)||void 0===i?void 0:i.sectionHeaderText;if(!n)return null;const s=this._sectionHeaderCache.get(n);if(s)return s;const o=t(n);return this._sectionHeaderCache.set(n,o),o}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new G.e(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends c.JT{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(jt.ov3),this._domNode=(0,V.X)(document.createElement("div")),U.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,V.X)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,V.X)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,V.X)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,V.X)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,V.X)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=l.mu(this._domNode.domNode,l.tw.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=l.i(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderPointerMoveMonitor=new Vt.C,this._sliderPointerDownListener=l.mu(this._slider.domNode,l.tw.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=ce.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=l.nm(this._domNode.domNode,ce.t.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=l.nm(this._domNode.domNode,ce.t.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=l.mu(this._domNode.domNode,ce.t.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(e,s)=>{const o=l.i(this._domNode.domNode),r=Math.min(Math.abs(s-n),Math.abs(s-o.left),Math.abs(s-o.left-o.width));if(_.ED&&r>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>s(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new si(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(jt.ov3),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(G.e.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,o=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,s);const d=new li(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,d,e,o),this._renderDecorationsLineHighlights(l,i,d,e,o);const h=new li(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,h,e,o,a,r,n),this._renderDecorationsHighlights(l,i,h,e,o,a,r,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let o=0,r=0;for(const a of t){const t=n.intersectWithViewport(a);if(!t)continue;const[l,d]=t;for(let e=l;e<=d;e++)i.set(e,!0);const h=n.getYForLineNumber(l,s),c=n.getYForLineNumber(d,s);r>=h||(r>o&&e.fillRect(L.y0,o,e.canvas.width,r-o),o=h),r=c}r>o&&e.fillRect(L.y0,o,e.canvas.width,r-o)}_renderDecorationsLineHighlights(e,t,i,n,s){const o=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||1!==l.position)continue;const d=n.intersectWithViewport(a.range);if(!d)continue;const[h,c]=d,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=o.get(u.toString());g||(g=u.transparent(.5).toString(),o.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=c;t++){if(i.has(t))continue;i.set(t,!0);const o=n.getYForLineNumber(h,s);e.fillRect(L.y0,o,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,o,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=n.intersectWithViewport(l);if(!t)continue;const[d,h]=t;for(let c=d;c<=h;c++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,c,s,s,o,r,a)}}_renderDecorationsHighlights(e,t,i,n,s,o,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const d=n.intersectWithViewport(l.range);if(!d)continue;const[h,c]=d,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=c;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,n,g,s,s,o,r,a);continue;case 2:{const t=n.getYForLineNumber(g,s),i=2;this.renderDecoration(e,u,i,t,2,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,o,r,a,l,d,h){const c=s.getYForLineNumber(o,a);if(c+r<0||c>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===o?i.startColumn:1,m=g===o?i.endColumn:this._model.getLineMaxColumn(o),f=this.getXOffsetForPosition(t,o,p,l,d,h),_=this.getXOffsetForPosition(t,o,m,l,d,h);this.renderDecoration(e,n,f,c,_-f,r)}getXOffsetForPosition(e,t,i,n,s,o){if(1===i)return L.y0;if((i-1)*s>=o)return o;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[L.y0];let a=L.y0;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),l=a+(9===t?n*s:ke.K7(t)?2*s:s);if(l>=o){r[e]=o;break}r[e]=l,a=l}e.set(t,r)}return i-1<r.length?r[i-1]:o}renderDecoration(e,t,i,n,s,o){e.fillStyle=t&&t.toString()||"",e.fillRect(i,n,s,o)}_renderSectionHeaders(e){var t;const i=this._model.options.minimapLineHeight,n=this._model.options.sectionHeaderFontSize,s=1.5*n,{canvasInnerWidth:o}=this._model.options,r=this._model.options.backgroundColor,a=`rgb(${r.r} ${r.g} ${r.b} / .7)`,l=this._model.options.sectionHeaderFontColor,d=`rgb(${l.r} ${l.g} ${l.b})`,h=d,c=this._decorationsCanvas.domNode.getContext("2d");c.font=n+"px "+this._model.options.sectionHeaderFontFamily,c.strokeStyle=h,c.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,c,o-L.y0);for(const p of u){const r=e.getYForLineNumber(p.range.startLineNumber,i)+n,l=r-n,h=l+2,u=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(c,u,2===(null===(t=p.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle),a,d,o,l,s,r,h)}}static _fitSectionHeader(e,t,i){if(!i)return i;const n=e.measureText(i).width,s=e.measureText("\u2026").width;if(n<=t||n<=s)return i;const o=i.length,r=n/i.length,a=Math.floor((t-s)/r)-1;let l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"\u2026"+i.substring(o-(a-l))}static _renderSectionLabel(e,t,i,n,s,o,r,a,l,d){t&&(e.fillStyle=n,e.fillRect(0,r,o,a),e.fillStyle=s,e.fillText(t,L.y0,l)),i&&(e.beginPath(),e.moveTo(0,d),e.lineTo(o,d),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new ni(e,t.imageData,t.lines)}const s=this._getBuffer();if(!s)return null;const[o,r,a]=ai._renderUntouchedLines(s,e.topPaddingLineCount,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),d=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,c=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,b=(1===m?2:3)*_,C=n>b?Math.floor((n-b)/2):0,y=c.a/255,w=new Wt(Math.round((c.r-h.r)*y+h.r),Math.round((c.g-h.g)*y+h.g),Math.round((c.b-h.b)*y+h.b),255);let S=e.topPaddingLineCount*n;const x=[];for(let D=0,N=i-t+1;D<N;D++)a[D]&&ai._renderLine(s,w,c.a,p,m,v,g,u,f,S,C,d,l[D],_,n),x[D]=new ii(S),S+=n;const L=-1===o?0:o,k=(-1===r?s.height:r)-L;return this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,L,s.width,k),new ni(e,s,x)}static _renderUntouchedLines(e,t,i,n,s,o){const r=[];if(!o){for(let e=0,t=n-i+1;e<t;e++)r[e]=!0;return[-1,-1,r]}const a=o._get(),l=a.imageData.data,d=a.rendLineNumberStart,h=a.lines,c=h.length,u=e.width,g=e.data,p=(n-i+1)*s*u*4;let m=-1,f=-1,_=-1,v=-1,b=-1,C=-1,y=t*s;for(let w=i;w<=n;w++){const e=w-i,t=w-d,n=t>=0&&t<c?h[t].dy:-1;if(-1===n){r[e]=!0,y+=s;continue}const o=n*u*4,a=(n+s)*u*4,S=y*u*4,x=(y+s)*u*4;v===o&&C===S?(v=a,C=x):(-1!==_&&(g.set(l.subarray(_,v),b),-1===m&&0===_&&_===b&&(m=v),-1===f&&v===p&&_===b&&(f=_)),_=o,v=a,b=S,C=x),r[e]=!1,y+=s}-1!==_&&(g.set(l.subarray(_,v),b),-1===m&&0===_&&_===b&&(m=v),-1===f&&v===p&&_===b&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),r]}static _renderLine(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p){const m=u.content,f=u.tokens,_=e.width-o,v=1===p;let b=L.y0,C=0,y=0;for(let w=0,S=f.getCount();w<S;w++){const u=f.getEndOffset(w),p=f.getForeground(w),S=r.getColor(p);for(;C<u;C++){if(b>_)return;const r=m.charCodeAt(C);if(9===r){const e=c-(C+y)%c;y+=e-1,b+=e*o}else if(32===r)b+=o;else{const c=ke.K7(r)?2:1;for(let u=0;u<c;u++)if(2===s?l.blockRenderChar(e,b,d+h,S,a,t,i,v):l.renderChar(e,b,d+h,r,S,a,t,i,g,n,v),b+=o,b>_)return}}}}}class li{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;n<s;n++)this._values[n]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class di extends j{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,V.X)(document.createElement("div")),U.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,V.X)(document.createElement("div")),U.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,V.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?(this._updateMaxMinWidth(),!1):(i.preference=t,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,t;let i=0;const n=Object.keys(this._widgets);for(let s=0,o=n.length;s<o;s++){const o=n[s],r=null===(t=(e=this._widgets[o].widget).getMinContentWidthInPx)||void 0===t?void 0:t.call(e);"undefined"!==typeof r&&(i=Math.max(i,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(i)}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else if(2===e.preference)t.setTop(0),t.domNode.style.right="50%";else{const{top:i,left:n}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;t.setTop(i+e.top),t.setLeft(n+e.left),t.setPosition("fixed")}else t.setTop(i),t.setLeft(n),t.setPosition("absolute")}else t.setTop("")}prepareRender(e){this._viewDomNodeRect=l.i(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i<n;i++){const e=t[i];this._renderWidget(this._widgets[e])}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(143),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const n=t.getColor(Te.zw);this.borderColor=n?n.toString():null,this.hideCursor=i.get(59);const s=t.getColor(Te.n0);this.cursorColorSingle=s?s.transparent(.7).toString():null;const o=t.getColor(Te.jD);this.cursorColorPrimary=o?o.transparent(.7).toString():null;const r=t.getColor(Te.x_);this.cursorColorSecondary=r?r.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),l=a.enabled,d=a.side,h=t.getColor(Te.e_),c=Oe.RW.getDefaultBackground();this.backgroundColor=h||(l&&"right"===d?c:null);const u=i.get(145).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const n=t-e;if(i>=3){const t=Math.floor(n/3),i=Math.floor(n/3),s=n-t-i,o=e+t;return[[0,e,o,e,e+t+s,e,o,e],[0,t,s,t+s,i,t+s+i,s+i,t+s+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Il.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class ci extends j{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,V.X)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Oe.RW.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new $.L(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let n=this._settings.cursorColorSingle;i>1&&(n=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:n})}return this._cursorPositions.sort(((e,t)=>$.L.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Il.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(zt.SQ.compareByRenderingProps),1!==this._actualShouldRender||zt.SQ.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.fS)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,n=this._settings.canvasHeight,s=this._settings.lineHeight,o=this._context.viewLayout,r=n/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,l=a/2|0,d=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(d.fillStyle=Pe.Il.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):(d.clearRect(0,0,i,n),d.fillStyle=Pe.Il.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):d.clearRect(0,0,i,n);const h=this._settings.x,c=this._settings.w;for(const u of t){const e=u.color,t=u.data;d.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=o.getVerticalOffsetForLineNumber(m)*r|0,v=(o.getVerticalOffsetForLineNumber(f)+s)*r|0;if(v-_<a){let e=(_+v)/2|0;e<l?e=l:e+l>n&&(e=n-l),_=e-l,v=e+l}_>p+1||e!==i?(0!==u&&d.fillRect(h[i],g,c[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}d.fillRect(h[i],g,c[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],s=this._settings.w[7];let a=-100,l=-100,h=null;for(let c=0,u=this._cursorPositions.length;c<u;c++){const u=this._cursorPositions[c].color;if(!u)continue;const g=this._cursorPositions[c].position;let p=o.getVerticalOffsetForLineNumber(g.lineNumber)*r|0;p<t?p=t:p+t>n&&(p=n-t);const m=p-t,f=m+e;m>l+1||u!==h?(0!==c&&h&&d.fillRect(i,a,s,l-a),a=m,l=f):f>l&&(l=f),h=u,d.fillStyle=u}h&&d.fillRect(i,a,s,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,n),d.stroke(),d.moveTo(0,0),d.lineTo(i,0),d.stroke())}}var ui,gi=i(86950);class pi extends z{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,V.X)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.Tj((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(143)&&(this._zoneManager.setPixelRatio(t.get(143)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,o=0,r=0;for(const a of t){const t=a.colorId,l=a.from,d=a.to;t!==s?(e.fillRect(0,o,n,r-o),s=t,e.fillStyle=i[s],o=l,r=d):r>=l?r=Math.max(r,d):(e.fillRect(0,o,n,r-o),o=l,r=d)}e.fillRect(0,o,n,r-o)}}class mi extends j{constructor(e){super(e),this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),n=i;let s=t-e;for(;s>0;){const e=(0,V.X)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),s--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],n=this._rulers[t];i.setBoxShadow(n.color?`1px 0 0 0 ${n.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(n.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends j{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(103);this._useShadows=t.useShadows,this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(145);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(103);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function bi(e){return new _i(e)}function Ci(e){return new vi(e.lineNumber,e.ranges.map(bi))}class yi extends Ne{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,o=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!s&&e<i.length;e++)i[e].lineNumber===n&&(s=i[e].ranges[0]);const r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!o&&e>=0;e--)i[e].lineNumber===r&&(o=i[e].ranges[0]);s&&!s.startStyle&&(s=null),o&&!o.startStyle&&(o=null)}for(let r=0,a=t.length;r<a;r++){const e=t[r].ranges[0],i=e.left,l=e.left+e.width,d={top:0,bottom:0},h={top:0,bottom:0};if(r>0){const e=t[r-1].ranges[0].left,s=t[r-1].ranges[0].left+t[r-1].ranges[0].width;wi(i-e)<n?d.top=2:i>e&&(d.top=1),wi(l-s)<n?h.top=2:e<l&&l<s&&(h.top=1)}else s&&(d.top=s.startStyle.top,h.top=s.endStyle.top);if(r+1<a){const e=t[r+1].ranges[0].left,s=t[r+1].ranges[0].left+t[r+1].ranges[0].width;wi(i-e)<n?d.bottom=2:e<i&&i<s&&(d.bottom=1),wi(l-s)<n?h.bottom=2:l<s&&(h.bottom=1)}else o&&(d.bottom=o.startStyle.bottom,h.bottom=o.endStyle.bottom);e.startStyle=d,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const n=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ci);return!this._visibleRangesHaveGaps(n)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,n,i),n}_createSelectionPiece(e,t,i,n,s){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+n.toString()+"px;width:"+s.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const s=!!n[0].ranges[0].startStyle,o=n[0].lineNumber,r=n[n.length-1].lineNumber;for(let a=0,l=n.length;a<l;a++){const l=n[a],d=l.lineNumber,h=d-t,c=i&&d===o?1:0,u=i&&d!==o&&d===r?1:0;let g="",p="";for(let e=0,t=l.ranges.length;e<t;e++){const t=l.ranges[e];if(s){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(c,u,yi.SELECTION_CLASS_NAME,t.left-yi.ROUNDED_PIECE_WIDTH,yi.ROUNDED_PIECE_WIDTH);let i=yi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+yi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+yi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(c,u,i,t.left-yi.ROUNDED_PIECE_WIDTH,yi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(c,u,yi.SELECTION_CLASS_NAME,t.left+t.width,yi.ROUNDED_PIECE_WIDTH);let e=yi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+yi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+yi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(c,u,e,t.left+t.width,yi.ROUNDED_PIECE_WIDTH)}}let i=yi.SELECTION_CLASS_NAME;if(s){const e=t.startStyle,n=t.endStyle;0===e.top&&(i+=" "+yi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+yi.SELECTION_BOTTOM_LEFT),0===n.top&&(i+=" "+yi.SELECTION_TOP_RIGHT),0===n.bottom&&(i+=" "+yi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(c,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let o=i;o<=n;o++){t[o-i]=["",""]}const s=[];for(let o=0,r=this._selections.length;o<r;o++){const n=this._selections[o];if(n.isEmpty()){s[o]=null;continue}const r=this._getVisibleRangesWithStyle(n,e,this._previousFrameVisibleRangesWithStyle[o]);s[o]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map((e=>{let[t,i]=e;return t+i}))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function wi(e){return e<0?-e:e}yi.SELECTION_CLASS_NAME="selected-text",yi.SELECTION_TOP_LEFT="top-left-radius",yi.SELECTION_BOTTOM_LEFT="bottom-left-radius",yi.SELECTION_TOP_RIGHT="top-right-radius",yi.SELECTION_BOTTOM_RIGHT="bottom-right-radius",yi.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",yi.ROUNDED_PIECE_WIDTH=10,(0,Ee.Ic)(((e,t)=>{const i=e.getColor(jt.yb5);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class Si{constructor(e,t,i,n,s,o,r){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=s,this.textContent=o,this.textContentClassName=r}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class xi{constructor(e,t){this._context=e;const i=this._context.configuration.options,n=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setClassName(`cursor ${Re}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.N)(this._domNode,n),this._domNode.setDisplay("none"),this._position=new $.L(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.N)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=ke.J_(i,t-1);return[new $.L(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="",i="";const[n,s]=this._getGraphemeAwarePosition();if(this._cursorStyle===L.d2.Line||this._cursorStyle===L.d2.LineThin){const o=e.visibleRangeForPosition(n);if(!o||o.outsideRenderedLine)return null;const r=l.Jj(this._domNode.domNode);let a;this._cursorStyle===L.d2.Line?(a=l.Uh(r,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=s,i=this._getTokenClassName(n))):a=l.Uh(r,1);let d=o.left,h=0;a>=2&&d>=1&&(h=1,d-=h);const c=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new Si(c,d,h,a,this._lineHeight,t,i)}const o=e.linesVisibleRangesForRange(new G.e(n.lineNumber,n.column,n.lineNumber,n.column+s.length),!1);if(!o||0===o.length)return null;const r=o[0];if(r.outsideRenderedLine||0===r.ranges.length)return null;const a=r.ranges[0],d="\t"===s||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===L.d2.Block&&(t=s,i=this._getTokenClassName(n));let h=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,c=this._lineHeight;return this._cursorStyle!==L.d2.Underline&&this._cursorStyle!==L.d2.UnderlineThin||(h+=this._lineHeight-2,c=2),new Si(h,a.left,0,d,c,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${Re} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Li extends j{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new xi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,V.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new It._F,this._cursorFlatBlinkInterval=new l.ne,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;i<n;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const n=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,n),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new xi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let s=0;s<t.length;s++)this._secondaryCursors[s].onCursorPositionChanged(t[s],n)}onCursorStateChanged(e){const t=[];for(let n=0,s=e.selections.length;n<s;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,n=e.ranges.length;i<n;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Li.BLINK_INTERVAL,(0,l.Jj)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Li.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case L.d2.Line:e+=" cursor-line-style";break;case L.d2.Block:e+=" cursor-block-style";break;case L.d2.Underline:e+=" cursor-underline-style";break;case L.d2.LineThin:e+=" cursor-line-thin-style";break;case L.d2.BlockOutline:e+=" cursor-block-outline-style";break;case L.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const n=this._primaryCursor.render(e);n&&(t[i++]=n);for(let s=0,o=this._secondaryCursors.length;s<o;s++){const n=this._secondaryCursors[s].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}Li.BLINK_INTERVAL=500,(0,Ee.Ic)(((e,t)=>{const i=[{class:".cursor",foreground:Te.n0,background:Te.fY},{class:".cursor-primary",foreground:Te.jD,background:Te.s2},{class:".cursor-secondary",foreground:Te.x_,background:Te.P0}];for(const n of i){const i=e.getColor(n.foreground);if(i){let s=e.getColor(n.background);s||(s=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${n.class} { background-color: ${i}; border-color: ${i}; color: ${s}; }`),(0,ct.c3)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${n.class} { border-left: 1px solid ${s}; border-right: 1px solid ${s}; }`)}}}));const ki=()=>{throw new Error("Invalid change accessor")};class Di extends j{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,V.X)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let s=0,o=n.length;s<o;s++){const o=n[s],r=this._zones[o],a=this._computeWhitespaceProps(r.delegate);r.isInHiddenArea=a.isInHiddenArea;const l=t.get(o);!l||l.afterLineNumber===a.afterViewLineNumber&&l.height===a.heightInPx||(e.changeOneWhitespace(o,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(r.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){var t,i;return null!==(i=null!==(t=e.ordinal)&&void 0!==t?t:e.afterColumn)&&void 0!==i?i:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new $.L(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),s=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!s,afterViewLineNumber:n.lineNumber,heightInPx:s?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,d.dL)(i)}}(e,n),n.addZone=ki,n.removeZone=ki,n.layoutZone=ki})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,V.X)(t.domNode),marginDomNode:t.marginDomNode?(0,V.X)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,d.dL)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,d.dL)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const o of t)this._zones[o.id].isInHiddenArea||(i[o.id]=o,n=!0);const s=Object.keys(this._zones);for(let o=0,r=s.length;o<r;o++){const t=s[o],n=this._zones[t];let r=0,a=0,l="none";i.hasOwnProperty(t)?(r=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,l="block",n.isVisible||(n.domNode.setAttribute("monaco-visible-view-zone","true"),n.isVisible=!0),this._safeCallOnDomNodeTop(n.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(n.isVisible&&(n.domNode.removeAttribute("monaco-visible-view-zone"),n.isVisible=!1),this._safeCallOnDomNodeTop(n.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),n.domNode.setTop(r),n.domNode.setHeight(a),n.domNode.setDisplay(l),n.marginDomNode&&(n.marginDomNode.setTop(r),n.marginDomNode.setHeight(a),n.marginDomNode.setDisplay(l))}n&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var Ni=i(97869);class Ei extends Ne{constructor(e){super(),this._context=e,this._options=new Ti(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ti(this._context.configuration);return this._options.equals(t)?e.hasChanged(145):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,n=new Array(i);for(let o=0;o<i;o++)n[o]=!0;const s=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,n);this._renderResult=[];for(let o=e.viewportData.startLineNumber;o<=e.viewportData.endLineNumber;o++){const t=o-e.viewportData.startLineNumber,i=s.data[t];let n=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<o||t.startLineNumber>o)continue;const e=t.startLineNumber===o?t.startColumn:i.minColumn,s=t.endLineNumber===o?t.endColumn:i.maxColumn;e<s&&(n||(n=[]),n.push(new Ni.zG(e-1,s-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,o,n,i)}}_applyRenderWhitespace(e,t,i,n){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&n.continuesWithWrappedLine)return"";const s=this._context.theme.getColor(Te.dI),o=this._options.renderWithSVG,r=n.content,a=-1===this._options.stopRenderingLineAfter?r.length:Math.min(this._options.stopRenderingLineAfter,r.length),l=n.continuesWithWrappedLine,d=n.minColumn-1,h="boundary"===this._options.renderWhitespace,c="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,b="",C=!1,y=ke.LC(r);-1===y?(C=!0,y=a,v=a):v=ke.ow(r);let w=0,S=i&&i[w],x=0;for(let L=d;L<a;L++){const n=r.charCodeAt(L);if(S&&L>=S.endOffset&&(w++,S=i&&i[w]),9!==n&&32!==n)continue;if(c&&!C&&L<=v)continue;if(h&&L>=y&&L<=v&&32===n){const e=L-1>=0?r.charCodeAt(L-1):0,t=L+1<a?r.charCodeAt(L+1):0;if(32!==e&&32!==t)continue}if(h&&l&&L===a-1){const e=L-1>=0?r.charCodeAt(L-1):0;if(32===n&&32!==e&&9!==e)continue}if(i&&(!S||S.startOffset>L||S.endOffset<=L))continue;const s=e.visibleRangeForPosition(new $.L(t,L+1));s&&(o?(x=Math.max(x,s.left),b+=9===n?this._renderArrow(u,m,s.left):`<circle cx="${(s.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):b+=9===n?`<div class="mwh" style="left:${s.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${s.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return o?(x=Math.round(x+m),`<svg style="bottom:0;position:absolute;width:${x}px;height:${u}px" viewBox="0 0 ${x} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${s}">`+b+"</svg>"):b}_renderArrow(e,t,i){const n=e/2,s=i,o={x:0,y:t/7/2},r={x:.8*t,y:o.y},a={x:r.x-.2*r.x,y:r.y+.2*r.x},l={x:a.x+.1*r.x,y:a.y+.1*r.x},d={x:l.x+.35*r.x,y:l.y-.35*r.x};return`<path d="M ${[o,r,a,l,d,{x:d.x,y:-d.y},{x:l.x,y:-l.y},{x:a.x,y:-a.y},{x:r.x,y:-r.y},{x:o.x,y:-o.y}].map((e=>`${(s+e.x).toFixed(2)} ${(n+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ti{constructor(e){const t=e.options,i=t.get(50),n=t.get(38);"off"===n?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===n?(this.renderWhitespace=t.get(99),this.renderWithSVG=!0):(this.renderWhitespace=t.get(99),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(117)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ii{constructor(e,t,i,n){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new G.e(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Mi{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Ai{constructor(e,t,i){this.configuration=e,this.theme=new Mi(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Ri=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Oi=function(e,t){return function(i,n){t(i,n,e)}};let Pi=class extends z{constructor(e,t,i,n,s,o,r){super(),this._instantiationService=r,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.Y(1,1,1,1)],this._renderAnimationFrame=null;const a=new $e(t,n,s,e);this._context=new Ai(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ue,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,V.X)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,V.X)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,V.X)(document.createElement("div")),U.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Di(this._context),this._viewParts.push(this._viewZones);const l=new ci(this._context);this._viewParts.push(l);const d=new fi(this._context);this._viewParts.push(d);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new yi(this._context)),h.addDynamicOverlay(new Et(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new Ei(this._context));const c=new it(this._context);this._viewParts.push(c),c.addDynamicOverlay(new pt(this._context)),c.addDynamicOverlay(new Bt(this._context)),c.addDynamicOverlay(new Ft(this._context)),c.addDynamicOverlay(new Ie(this._context)),this._glyphMarginWidgets=new wt(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Me(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(c.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new ot(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Li(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new di(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new st(this._context);this._viewParts.push(p);const m=new ri(this._context);if(this._viewParts.push(m),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),o?(o.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),o.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new xe(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],n=0;i=i.concat(e.getAllMarginDecorations().map((e=>{var t,i,s;const o=null!==(i=null===(t=e.options.glyphMargin)||void 0===t?void 0:t.position)&&void 0!==i?i:_t.U.Center;return n=Math.max(n,e.range.endLineNumber),{range:e.range,lane:o,persist:null===(s=e.options.glyphMargin)||void 0===s?void 0:s.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return n=Math.max(n,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>G.e.compareRangesUsingStarts(e.range,t.range))),t.reset(n);for(const s of i)t.push(s.lane,s.range,s.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new $.L(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(145);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+(0,Ee.m6)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new d.he;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Bi.INSTANCE.scheduleCoordinatedRendering({window:l.Jj(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new d.he;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new d.he;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new d.he;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new d.he;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,n]=t;Fi((()=>e.prepareRender(i,n))),Fi((()=>e.render(i,n)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}W.B.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ii(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new Ke.xh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new $.L(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?nt.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,s,o,r,a,l;this._contentWidgets.setWidgetPosition(e.widget,null!==(i=null===(t=e.position)||void 0===t?void 0:t.position)&&void 0!==i?i:null,null!==(s=null===(n=e.position)||void 0===n?void 0:n.secondaryPosition)&&void 0!==s?s:null,null!==(r=null===(o=e.position)||void 0===o?void 0:o.preference)&&void 0!==r?r:null,null!==(l=null===(a=e.position)||void 0===a?void 0:a.positionAffinity)&&void 0!==l?l:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,d.dL)(t),null}}Pi=Ri([Oi(6,Ve.TG)],Pi);class Bi{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,l.lI(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];t[i]=Fi((()=>n.renderText()))}for(let i=0,n=e.length;i<n;i++){const n=e[i],s=t[i];if(!s)continue;const[o,r]=s;Fi((()=>n.prepareRender(o,r)))}for(let i=0,n=e.length;i<n;i++){const n=e[i],s=t[i];if(!s)continue;const[o,r]=s;Fi((()=>n.render(o,r)))}}}Bi.INSTANCE=new Bi;var Vi=i(56702);class Wi{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&i>this.injectionOffsets[n];n++)i<this.injectionOffsets[n]+this.injectionOptions[n].content.length?i=this.injectionOffsets[n]:i-=this.injectionOptions[n].content.length;return i}translateToOutputPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=e;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&!(e<this.injectionOffsets[n])&&(1===t||e!==this.injectionOffsets[n]);n++)i+=this.injectionOptions[n].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=0,n=this.breakOffsets.length-1,s=0,o=0;for(;i<=n;){s=i+(n-i)/2|0;const r=this.breakOffsets[s];if(o=s>0?this.breakOffsets[s-1]:0,0===t)if(e<=o)n=s-1;else{if(!(e>r))break;i=s+1}else if(e<o)n=s-1;else{if(!(e>=r))break;i=s+1}}let r=e-o;return s>0&&(r+=this.wrappedTextIndentLength),new ji(s,r)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new ji(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new ji(e+1,this.getMinOutputOffset(e+1))}return new ji(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Hi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(zi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Hi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!zi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Vi.vE)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let s=0;s<t.length;s++){const o=i[s].content.length,r=t[s]+n,a=t[s]+n+o;if(r>e)break;if(e<=a)return{injectedTextIndex:s,offsetInInputWithInjections:r,length:o};n+=o}}}}function Hi(e){return null===e||void 0===e||(e===_t.RM.Right||e===_t.RM.Both)}function zi(e){return null===e||void 0===e||(e===_t.RM.Left||e===_t.RM.Both)}class ji{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new $.L(e+this.outputLineIndex,this.outputOffset+1)}}var Ui=i(75324);const Ki=(0,Ge.Z)("domLineBreaksComputer",{createHTML:e=>e});class qi{static create(e){return new qi(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,s){const o=[],r=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t)},finalize:()=>function(e,t,i,n,s,o,r,a){var l;function d(e){const i=a[e];if(i){const n=Ui.gk.applyInjectedText(t[e],i),s=i.map((e=>e.options)),o=i.map((e=>e.column-1));return new Wi(o,s,[n.length],[],0)}return null}if(-1===s){const e=[];for(let i=0,n=t.length;i<n;i++)e[i]=d(i);return e}const h=Math.round(s*i.typicalHalfwidthCharacterWidth),c=3===o?2:2===o?1:0,u=Math.round(n*c),p=Math.ceil(i.spaceWidth*u),m=document.createElement("div");(0,g.N)(m,i);const f=new Ye.HT(1e4),_=[],v=[],b=[],C=[],y=[];for(let g=0;g<t.length;g++){const e=Ui.gk.applyInjectedText(t[g],a[g]);let s=0,r=0,l=h;if(0!==o)if(s=ke.LC(e),-1===s)s=0;else{for(let i=0;i<s;i++){r+=9===e.charCodeAt(i)?n-r%n:1}const t=Math.ceil(i.spaceWidth*r);t+i.typicalFullwidthCharacterWidth>h?(s=0,r=0):l=h-t}const d=e.substr(s),c=$i(d,r,n,l,f,p);_[g]=s,v[g]=r,b[g]=d,C[g]=c[0],y[g]=c[1]}const w=f.build(),S=null!==(l=null===Ki||void 0===Ki?void 0:Ki.createHTML(w))&&void 0!==l?l:w;m.innerHTML=S,m.style.position="absolute",m.style.top="10000","keepAll"===r?(m.style.wordBreak="keep-all",m.style.overflowWrap="anywhere"):(m.style.wordBreak="inherit",m.style.overflowWrap="break-word");e.document.body.appendChild(m);const x=document.createRange(),L=Array.prototype.slice.call(m.children,0),k=[];for(let g=0;g<t.length;g++){const e=Gi(x,L[g],b[g],C[g]);if(null===e){k[g]=d(g);continue}const t=_[g],i=v[g]+u,n=y[g],s=[];for(let a=0,d=e.length;a<d;a++)s[a]=n[e[a]];if(0!==t)for(let a=0,d=e.length;a<d;a++)e[a]+=t;let o,r;const l=a[g];l?(o=l.map((e=>e.options)),r=l.map((e=>e.column-1))):(o=null,r=null),k[g]=new Wi(r,o,e,s,i)}return e.document.body.removeChild(m),k}((0,kt.cW)(this.targetWindow.deref()),o,e,t,i,n,s,r)}}}function $i(e,t,i,n,s,o){if(0!==o){const e=String(o);s.appendString('<div style="text-indent: -'),s.appendString(e),s.appendString("px; padding-left: "),s.appendString(e),s.appendString("px; box-sizing: border-box; width:")}else s.appendString('<div style="width:');s.appendString(String(n)),s.appendString('px;">');const r=e.length;let a=t,l=0;const d=[],h=[];let c=0<r?e.charCodeAt(0):0;s.appendString("<span>");for(let u=0;u<r;u++){0!==u&&u%16384===0&&s.appendString("</span><span>"),d[u]=l,h[u]=a;const t=c;c=u+1<r?e.charCodeAt(u+1):0;let n=1,o=1;switch(t){case 9:n=i-a%i,o=n;for(let e=1;e<=n;e++)e<n?s.appendCharCode(160):s.appendASCIICharCode(32);break;case 32:32===c?s.appendCharCode(160):s.appendASCIICharCode(32);break;case 60:s.appendString("<");break;case 62:s.appendString(">");break;case 38:s.appendString("&");break;case 0:s.appendString("�");break;case 65279:case 8232:case 8233:case 133:s.appendCharCode(65533);break;default:ke.K7(t)&&o++,t<32?s.appendCharCode(9216+t):s.appendCharCode(t)}l+=n,a+=o}return s.appendString("</span>"),d[e.length]=l,h[e.length]=a,s.appendString("</div>"),[d,h]}function Gi(e,t,i,n){if(i.length<=1)return null;const s=Array.prototype.slice.call(t.children,0),o=[];try{Yi(e,s,n,0,null,i.length-1,null,o)}catch(r){return console.log(r),null}return 0===o.length?null:(o.push(i.length),o)}function Yi(e,t,i,n,s,o,r,a){if(n===o)return;if(s=s||Zi(e,t,i[n],i[n+1]),r=r||Zi(e,t,i[o],i[o+1]),Math.abs(s[0].top-r[0].top)<=.1)return;if(n+1===o)return void a.push(o);const l=n+(o-n)/2|0,d=Zi(e,t,i[l],i[l+1]);Yi(e,t,i,n,s,l,d,a),Yi(e,t,i,l,d,o,r,a)}function Zi(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}class Qi extends c.JT{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new c.b2),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const n of t)this._pending.has(n.id)?(0,d.dL)(new Error(`Cannot have two contributions with the same id ${n.id}`)):this._pending.set(n.id,n);this._instantiateSome(0),this._register((0,l.se)((0,l.Jj)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,l.se)((0,l.Jj)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,l.se)((0,l.Jj)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return(0,l.se)((0,l.Jj)(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,d.dL)(i)}}}}var Xi=i(59571),Ji=i(87545),en=i(36362),tn=i(35770),nn=i(5580),sn=i(13277),on=i(53869),rn=i(47498);class an{static create(e){return new an(e.get(134),e.get(133))}constructor(e,t){this.classifier=new ln(e,t)}createLineBreaksComputer(e,t,i,n,s){const o=[],r=[],a=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,d=[];for(let e=0,h=o.length;e<h;e++){const h=r[e],c=a[e];!c||c.injectionOptions||h?d[e]=un(this.classifier,o[e],h,t,i,l,n,s):d[e]=cn(this.classifier,c,o[e],t,i,l,n,s)}return dn.length=0,hn.length=0,d}}}}class ln extends rn.N{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let dn=[],hn=[];function cn(e,t,i,n,s,o,r,a){if(-1===s)return null;const l=i.length;if(l<=1)return null;const d="keepAll"===a,h=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=fn(i,n,s,o,r),g=s-u,p=dn,m=hn;let f=0,_=0,v=0,b=s;const C=h.length;let y=0;if(y>=0){let e=Math.abs(c[y]-b);for(;y+1<C;){const t=Math.abs(c[y+1]-b);if(t>=e)break;e=t,y++}}for(;y<C;){let t=y<0?0:h[y],s=y<0?0:c[y];_>t&&(t=_,s=v);let r=0,a=0,u=0,w=0;if(s<=b){let v=s,C=0===t?0:i.charCodeAt(t-1),y=0===t?0:e.get(C),S=!0;for(let s=t;s<l;s++){const t=s,l=i.charCodeAt(s);let h,c;if(ke.ZG(l)?(s++,h=0,c=2):(h=e.get(l),c=gn(l,v,n,o)),t>_&&mn(C,y,l,h,d)&&(r=t,a=v),v+=c,v>b){t>_?(u=t,w=v-c):(u=s+1,w=v),v-a>g&&(r=0),S=!1;break}C=l,y=h}if(S){f>0&&(p[f]=h[h.length-1],m[f]=c[h.length-1],f++);break}}if(0===r){let l=s,h=i.charCodeAt(t),c=e.get(h),p=!1;for(let n=t-1;n>=_;n--){const t=n+1,s=i.charCodeAt(n);if(9===s){p=!0;break}let m,f;if(ke.YK(s)?(n--,m=0,f=2):(m=e.get(s),f=ke.K7(s)?o:1),l<=b){if(0===u&&(u=t,w=l),l<=b-g)break;if(mn(s,m,h,c,d)){r=t,a=l;break}}l-=f,h=s,c=m}if(0!==r){const e=g-(w-a);if(e<=n){const t=i.charCodeAt(u);let s;s=ke.ZG(t)?2:gn(t,w,n,o),e-s<0&&(r=0)}}if(p){y--;continue}}if(0===r&&(r=u,a=w),r<=_){const e=i.charCodeAt(_);ke.ZG(e)?(r=_+2,a=v+2):(r=_+1,a=v+gn(e,v,n,o))}for(_=r,p[f]=r,v=a,m[f]=a,f++,b=a+g;y<0||y<C&&c[y]<a;)y++;let S=Math.abs(c[y]-b);for(;y+1<C;){const e=Math.abs(c[y+1]-b);if(e>=S)break;S=e,y++}}return 0===f?null:(p.length=f,m.length=f,dn=t.breakOffsets,hn=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function un(e,t,i,n,s,o,r,a){const l=Ui.gk.applyInjectedText(t,i);let d,h;if(i&&i.length>0?(d=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(d=null,h=null),-1===s)return d?new Wi(h,d,[l.length],[],0):null;const c=l.length;if(c<=1)return d?new Wi(h,d,[l.length],[],0):null;const u="keepAll"===a,g=fn(l,n,s,o,r),p=s-g,m=[],f=[];let _=0,v=0,b=0,C=s,y=l.charCodeAt(0),w=e.get(y),S=gn(y,0,n,o),x=1;ke.ZG(y)&&(S+=1,y=l.charCodeAt(1),w=e.get(y),x++);for(let L=x;L<c;L++){const t=L,i=l.charCodeAt(L);let s,r;ke.ZG(i)?(L++,s=0,r=2):(s=e.get(i),r=gn(i,S,n,o)),mn(y,w,i,s,u)&&(v=t,b=S),S+=r,S>C&&((0===v||S-b>p)&&(v=t,b=S-r),m[_]=v,f[_]=b,_++,C=b+p,v=0),y=i,w=s}return 0!==_||i&&0!==i.length?(m[_]=c,f[_]=S,new Wi(h,d,m,f,g)):null}function gn(e,t,i,n){return 9===e?i-t%i:ke.K7(e)||e<32?n:1}function pn(e,t){return t-e%t}function mn(e,t,i,n,s){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!s&&3===t&&2!==n||!s&&3===n&&1!==t)}function fn(e,t,i,n,s){let o=0;if(0!==s){const r=ke.LC(e);if(-1!==r){for(let i=0;i<r;i++){o+=9===e.charCodeAt(i)?pn(o,t):1}const a=3===s?2:2===s?1:0;for(let e=0;e<a;e++){o+=pn(o,t)}o+n>i&&(o=0)}}return o}var _n=i(91206),vn=i(80646);class bn{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new vn.rS(new G.e(1,1,1,1),0,0,new $.L(1,1),0),new vn.rS(new G.e(1,1,1,1),0,0,new $.L(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new vn.Vi(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.Y.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.Y.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),o=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,o),a=this._validatePositionWithCache(e,s,n,r);return i.equals(o)&&n.equals(r)&&s.equals(a)?t:new vn.rS(G.e.fromPositions(r,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-r.column,o,t.leftoverVisibleColumns+i.column-o.column)}_setState(e,t,i){if(i&&(i=bn._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,s=e.model.validatePosition(t.position),o=t.position.equals(s)?t.leftoverVisibleColumns:0;t=new vn.rS(i,t.selectionStartKind,n,s,o)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new vn.rS(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new vn.rS(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new $.L(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new $.L(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),o=new G.e(n.lineNumber,n.column,s.lineNumber,s.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new vn.rS(o,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cn{constructor(e){this.context=e,this.cursors=[new bn(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,_n.Ph)(this.cursors,(0,m.tT)((e=>e.viewState.position),$.L.compare)).viewState.position}getBottomMostViewPosition(){return(0,_n.jV)(this.cursors,(0,m.tT)((e=>e.viewState.position),$.L.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(vn.Vi.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let n=0;n<i;n++)this.cursors[n+1].setState(this.context,e[n].modelState,e[n].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new bn(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;i<n;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.tT)((e=>e.selection),G.e.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const n=t[i],s=t[i+1],o=n.selection,r=s.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=r.isEmpty()||o.isEmpty()?r.getStartPosition().isBeforeOrEqual(o.getEndPosition()):r.getStartPosition().isBefore(o.getEndPosition()),a){const o=n.index<s.index?i:i+1,r=n.index<s.index?i+1:i,a=t[r].index,l=t[o].index,d=t[r].selection,h=t[o].selection;if(!d.equalsSelection(h)){const i=d.plusRange(h),n=d.selectionStartLineNumber===d.startLineNumber&&d.selectionStartColumn===d.startColumn,s=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let r,c;a===this.lastAddedCursorIndex?(r=n,this.lastAddedCursorIndex=l):r=s,c=r?new pe.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.Y(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[o].selection=c;const u=vn.Vi.fromModelSelection(c);e[l].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}class yn{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}var wn=i(1603),Sn=i(69922);class xn{constructor(){this.type=0}}class Ln{constructor(){this.type=1}}class kn{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Dn{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class Nn{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class En{constructor(){this.type=5}}class Tn{constructor(e){this.type=6,this.isFocused=e}}class In{constructor(){this.type=7}}class Mn{constructor(){this.type=8}}class An{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Rn{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class On{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Pn{constructor(e,t,i,n,s,o,r){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=s,this.revealHorizontal=o,this.scrollType=r,this.type=12}}class Fn{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Bn{constructor(e){this.theme=e,this.type=14}}class Vn{constructor(e){this.type=15,this.ranges=e}}class Wn{constructor(){this.type=16}}class Hn{constructor(){this.type=17}}class zn extends c.JT{constructor(){super(),this._onEvent=this._register(new h.Q5),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new jn),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class jn{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Un{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Un(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Kn{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new Kn(this.oldHasFocus,e.hasFocus)}}class qn{constructor(e,t,i,n,s,o,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=o,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new qn(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class $n{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Gn{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Yn{constructor(e,t,i,n,s,o,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=o,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!e[n].equalsSelection(t[n]))return!1;return!0}isNoOp(){return Yn._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new Yn(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Zn{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Qn{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Xn{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Jn{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class es{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class ts{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class is{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class ns extends c.JT{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new yn(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new Cn(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,c.B9)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new yn(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,n){let s=!1;const o=this.context.cursorConfig.multiCursorLimit;null!==n&&n.length>o&&(n=n.slice(0,o),s=!0);const r=ss.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,s,o){const r=this._cursors.getViewPositions();let a=null,l=null;r.length>1?l=this._cursors.getViewSelections():a=G.e.fromPositions(r[0],r[0]),e.emitViewEvent(new Pn(t,i,a,l,n,s,o))}revealPrimary(e,t,i,n,s,o){const r=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Pn(t,i,null,r,n,s,o))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push({inSelectionMode:!n.isEmpty(),selectionStart:{lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn},position:{lineNumber:n.positionLineNumber,column:n.positionColumn}})}return e}restoreState(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const e=t[n];let s=1,o=1;e.position&&e.position.lineNumber&&(s=e.position.lineNumber),e.position&&e.position.column&&(o=e.position.column);let r=s,a=o;e.selectionStart&&e.selectionStart.lineNumber&&(r=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:r,selectionStartColumn:a,positionLineNumber:s,positionColumn:o})}this.setStates(e,"restoreState",0,vn.Vi.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Ui.D8){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const n=i.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new Cn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=vn.Vi.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,vn.Vi.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,vn.Vi.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let r=0,a=e.length;r<a;r++)i.push({range:e[r],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),n.push({range:t[r],options:{description:"auto-closed-enclosing",stickiness:1}});const s=this._model.deltaDecorations([],i),o=this._model.deltaDecorations([],n);this._autoClosedActions.push(new os(this._model,s,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=rs.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],n=[];for(let t=0;t<e.commands.length;t++){const s=e.commands[t];s instanceof Sn.g_&&s.enclosingRange&&s.closeCharacterRange&&(i.push(s.closeCharacterRange),n.push(s.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const o=ss.from(this._model,this);if(o.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Dn(a,r,i)),!n||n.cursorState.length!==o.cursorState.length||o.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Yn(a,r,l,o.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n.text||n.text.indexOf("\n")>=0)return null;const s=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!s)return null;const o=s[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(o);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-s[2].length-1,d=n.text.lastIndexOf(a,l-1);if(-1===d)return null;t.push([d,l])}return t}executeEdits(e,t,i,n){let s=null;"snippet"===t&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const o=[],r=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(s)for(let i=0,n=s.length;i<n;i++){const[t,n]=s[i],a=e[i],l=a.range.startLineNumber,d=a.range.startColumn-1+t,h=a.range.startColumn-1+n;o.push(new G.e(l,h+1,l,h+2)),r.push(new G.e(l,d+1,l,h+2))}const t=n(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),o.length>0&&this._pushAutoClosedAction(o,r)}_executeEdit(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.context.cursorConfig.readOnly)return;const s=ss.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){(0,d.dL)(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return os.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ls(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Sn.u6.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=ke.vH(t,i),n=t.substr(i,e);this._executeEditOperation(Sn.u6.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),n)),i+=e}}else this._executeEditOperation(Sn.u6.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,n,s,o){if(0!==t.length||0!==i||0!==n)this._executeEdit((()=>{this._executeEditOperation(Sn.u6.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))}),e,o);else if(0!==s){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.Y(t.lineNumber,t.column+s,t.lineNumber,t.column+s)}));this.setSelections(e,o,t,0)}}paste(e,t,i,n,s){this._executeEdit((()=>{this._executeEditOperation(Sn.u6.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,s,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(wn.A.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new vn.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new vn.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class ss{static from(e,t){return new ss(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class os{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(G.e.compareRangesUsingStarts),e.sort(G.e.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class rs{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let o=0,r=n.trackedRanges.length;o<r;o++)n.model._setTrackedRange(n.trackedRanges[o],null,0);return s}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const n=i.operations,s=this._getLoserCursorMap(n);if(s.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const o=[];for(let l=0,d=n.length;l<d;l++)s.hasOwnProperty(n[l].identifier.major.toString())||o.push(n[l]);i.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,o,(i=>{const n=[];for(let t=0;t<e.selectionsBefore.length;t++)n[t]=[];for(const e of i)e.identifier&&n[e.identifier.major].push(e);const s=(e,t)=>e.identifier.minor-t.identifier.minor,o=[];for(let r=0;r<e.selectionsBefore.length;r++)n[r].length>0?(n[r].sort(s),o[r]=t[r].computeCursorState(e.model,{getInverseEditOperations:()=>n[r],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.Y(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new pe.Y(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):o[r]=e.selectionsBefore[r];return o}));r||(r=e.selectionsBefore);const a=[];for(const l in s)s.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort(((e,t)=>t-e));for(const l of a)r.splice(l,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],n=!1;for(let s=0,o=t.length;s<o;s++){const o=t[s];if(o){const t=this._getEditOperationsFromCommand(e,s,o);i=i.concat(t.operations),n=n||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:n}}static _getEditOperationsFromCommand(e,t,i){const n=[];let s=0;const o=function(e,o){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];G.e.isEmpty(e)&&""===o||n.push({identifier:{major:t,minor:s++},range:e,text:o,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:o,addTrackedEditOperation:(e,t,i)=>{r=!0,o(e,t,i)},trackSelection:(t,i)=>{const n=pe.Y.liftSelection(t);let s;if(n.isEmpty())if("boolean"===typeof i)s=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);s=n.startColumn===t?2:3}else s=1;const o=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,s);return e.trackedRanges[o]=r,e.trackedRangesDirection[o]=n.getDirection(),o.toString()}};try{i.getEditOperations(e.model,a)}catch(l){return(0,d.dL)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-G.e.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const n=e[i-1],s=e[i];if(G.e.getStartPosition(n.range).isBefore(G.e.getEndPosition(s.range))){let o;o=n.identifier.major>s.identifier.major?n.identifier.major:s.identifier.major,t[o.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===o&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class as{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ls{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new as(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=ls._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ls._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const n=[];for(let s=0,o=this._original.length;s<o;s++)n.push(ls._deduceOutcome(this._original[s],i[s]));return n}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,ke.Mh(e.text,t.text)),n=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,ke.P1(e.text,t.text)),s=e.text.substring(i,e.text.length-n),o=t.text.substring(i,t.text.length-n);return new Sn.Nu(s,e.startSelection-i,e.endSelection-i,o,t.startSelection-i,t.endSelection-i)}}var ds=i(76326),hs=i(85779),cs=i(91181);class us{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class gs{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class ps{constructor(e,t,i,n){this._instanceId=ke.PJ(++ps.INSTANCE_COUNT),this._pendingChanges=new us,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n<s;){const o=n+s>>>1;t===e[o].afterLineNumber?i<e[o].ordinal?s=o:n=o+1:t<e[o].afterLineNumber?s=o:n=o+1}return n}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,n,s)=>{t=!0,e|=0,i|=0,n|=0,s|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new gs(o,e,i,n,s)),o},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const a of i)n.add(a.id);const s=new Map;for(const a of t)s.set(a.id,a);const o=e=>{const t=[];for(const i of e)if(!n.has(i.id)){if(s.has(i.id)){const e=s.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=o(this._arr).concat(o(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=ps.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;i<n;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const n=this._findWhitespaceIndex(e);if(-1!==n&&(this._arr[n].height!==i&&(this._arr[n].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)),this._arr[n].afterLineNumber!==t)){const e=this._arr[n];this._removeWhitespace(n),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,n=this._arr.length;i<n;i++){const n=this._arr[i].afterLineNumber;e<=n&&n<=t?this._arr[i].afterLineNumber=e-1:n>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i<n;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,n=t.length-1;for(;i<=n;){const s=i+((n-i|0)/2|0)|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;i=s+1|0}else n=s-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e){let t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkPendingChanges(),t=(e|=0)>1?this._lineHeight*(e-1):0;return t+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(i?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,s=t;for(;n<s;){const t=(n+s)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+i)n=t+1;else{if(e>=o)return t;s=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(n);let o=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,d;-1===r?(r=a,d=o+1,l=0):(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let h=s,c=h;const u=5e5;let g=0;s>=u&&(g=Math.floor(s/u)*u,g=Math.floor(g/i)*i,c-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let C=n;C<=o;C++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=C)}for(h+=i,p[C-n]=c,c+=i;d===C;)c+=l,h+=l,r++,r>=a?d=o+1:(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(h>=t){o=C;break}}-1===f&&(f=o);const _=0|this.getVerticalOffsetForLineNumber(o);let v=n,b=o;return v<b&&s<e&&v++,v<b&&_+i>t&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:o,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const n=Math.floor((t+i)/2),s=this.getVerticalOffsetForWhitespaceIndex(n);if(e>=s+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=s)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let o=i;o<=n;o++){const e=this.getVerticalOffsetForWhitespaceIndex(o),i=this.getHeightForWhitespaceIndex(o);if(e>=t)break;s.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:e,height:i})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}ps.INSTANCE_COUNT=0;class ms{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class fs extends c.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new ms(0,0,0,0),this._scrollable=this._register(new cs.Rm({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Un(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class _s extends c.JT{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(145),o=n.get(84);this._linesLayout=new ps(t,n.get(67),o.top,o.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new fs(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new ms(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(145)){const e=t.get(145),i=e.contentWidth,n=e.height,s=this._scrollable.getScrollDimensions(),o=s.contentWidth;this._scrollable.setScrollDimensions(new ms(i,s.contentWidth,n,this._getContentHeight(i,n,o)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(103);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(105)?s+=Math.max(0,t-n.get(67)-n.get(84).bottom):n.get(103).ignoreHorizontalScrollbarInContentHeight||(s+=this._getHorizontalScrollbarHeight(e,i)),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new ms(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new zt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new zt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),s=e.get(145);if(i.isViewportWrapping){const i=e.get(73);return t>s.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+s.verticalScrollbarWidth:t}{const i=e.get(104)*n.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+s.verticalScrollbarWidth,o,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ms(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var vs=i(61558),bs=i(34415);function Cs(e,t){return null===e?t?ws.INSTANCE:Ss.INSTANCE:new ys(e,t)}class ys{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let o;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Ui.gk(0,0,e+1,this._projectionData.injectionOptions[t],0)));o=Ui.gk.applyInjectedText(e.getLineContent(t),i).substring(n,s)}else o=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(o=Ls(this._projectionData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,o,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,d=a.injectionOptions;let h,c=null;if(l){c=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const n=new Array;c[i]=n;const s=i>0?a.breakOffsets[i-1]:0,o=a.breakOffsets[i];for(;t<l.length;){const r=d[t].content.length,h=l[t]+e,c=h+r;if(h>o)break;if(s<c){const e=d[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,r=t+Math.max(h-s,0),l=t+Math.min(c-s,o-s);r!==l&&n.push(new zt.Wx(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(c<=o))break;e+=r,t++}}}h=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:d[t].content,tokenMetadata:bs.A.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+n;u++){const e=s+u-i;o[e]?r[e]=this._getViewLineData(h,c?c[u]:null,u):r[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const n=this._projectionData,s=i>0?n.wrappedTextIndentLength:0,o=i>0?n.breakOffsets[i-1]:0,r=n.breakOffsets[i],a=e.sliceAndInflate(o,r,s);let l=a.getLineContent();i>0&&(l=Ls(n.wrappedTextIndentLength)+l);const d=this._projectionData.getMinOutputOffset(i)+1,h=l.length+1,c=i+1<this.getViewLineCount(),u=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new zt.IP(l,c,d,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class ws{constructor(){}isVisible(){return!0}setVisible(e){return e?this:Ss.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const n=e.tokenization.getLineTokens(t),s=n.getLineContent();return new zt.IP(s,!1,1,s.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,s,o,r){o[s]?r[s]=this.getViewLineData(e,t,0):r[s]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new $.L(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}ws.INSTANCE=new ws;class Ss{constructor(){}isVisible(){return!1}setVisible(e){return e?ws.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,n,s,o,r){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}Ss.INSTANCE=new Ss;const xs=[""];function Ls(e){if(e>=xs.length)for(let t=1;t<=e;t++)xs[t]=ks(t);return xs[e]}function ks(e){return new Array(e+1).join(" ")}var Ds=i(48749);class Ns{constructor(e,t,i,n,s,o,r,a,l,d){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=o,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=d,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Is(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,o=this.createLineBreaksComputer(),r=new m.H9(Ui.gk.fromDecorations(n));for(let p=0;p<s;p++){const e=r.takeWhile((e=>e.lineNumber===p+1));o.addRequest(i[p],e,t?t[p]:null)}const a=o.finalize(),l=[],d=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(G.e.compareRangesUsingStarts);let h=1,c=0,u=-1,g=u+1<d.length?c+1:s+2;for(let p=0;p<s;p++){const e=p+1;e===g&&(u++,h=d[u].startLineNumber,c=d[u].endLineNumber,g=u+1<d.length?c+1:s+2);const t=e>=h&&e<=c,i=Cs(a[p],!t);l[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Ds.Ck(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(G.e.compareRangesUsingStarts);const i=[];let n=t[0].startLineNumber,s=t[0].endLineNumber;for(let o=1,r=t.length;o<r;o++){const e=t[o];e.startLineNumber>s+1?(i.push(new G.e(n,1,s,1)),n=e.startLineNumber,s=e.endLineNumber):e.endLineNumber>s&&(s=e.endLineNumber)}return i.push(new G.e(n,1,s,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(G.e.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n<t.length;n++)if(!t[n].equalsRange(i[n])){e=!0;break}if(!e)return!1}const n=t.map((e=>({range:e,options:sn.qx.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,n);const s=t;let o=1,r=0,a=-1,l=a+1<s.length?r+1:this.modelLineProjections.length+2,d=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===l&&(a++,o=s[a].startLineNumber,r=s[a].endLineNumber,l=a+1<s.length?r+1:this.modelLineProjections.length+2);let t=!1;if(e>=o&&e<=r?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(d=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,s){const o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n,d=this.wordBreak===s;if(o&&r&&a&&l&&d)return!1;const h=o&&r&&!a&&l&&d;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=s;let c=null;if(h){c=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)c[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,c),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const n=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,s=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Rn(n,s)}onModelLinesInserted(e,t,i,n){if(!e||e<=this._validModelVersionId)return null;const s=t>2&&!this.modelLineProjections[t-2].isVisible(),o=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let d=0,h=n.length;d<h;d++){const e=Cs(n[d],!s);a.push(e);const t=e.getViewLineCount();r+=t,l[d]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new On(o,o+r-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const n=t-1,s=this.modelLineProjections[n].getViewLineCount(),o=Cs(i,this.modelLineProjections[n].isVisible());this.modelLineProjections[n]=o;const r=this.modelLineProjections[n].getViewLineCount();let a=!1,l=0,d=-1,h=0,c=-1,u=0,g=-1;s>r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1,u=d+1,g=u+(s-r)-1,a=!0):s<r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+s-1,h=d+1,c=h+(r-s)-1,a=!0):(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1),this.projectedModelLineLineCounts.setValue(n,r);return[a,l<=d?new An(l,d-l+1):null,h<=c?new On(h,c):null,u<=g?new Rn(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new Es(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new $.L(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new $.L(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let o=this.getModelStartPositionOfViewLine(i),r=new Array;for(let a=i.modelLineNumber;a<=n.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=a===n.modelLineNumber?n.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<s;e++)r.push(new Es(a,e))}if(!e.isVisible()&&o){const e=new $.L(a-1,this.model.getLineMaxColumn(a-1)+1),t=G.e.fromPositions(o,e);s.push(new Ts(t,r)),r=[],o=null}else e.isVisible()&&!o&&(o=new $.L(a,1))}if(o){const e=G.e.fromPositions(o,this.getModelEndPositionOfViewLine(n));s.push(new Ts(e,r))}return s}getViewLinesBracketGuides(e,t,i,n){const s=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,o=[];for(const r of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=r.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,r.modelRange.endLineNumber,s,n);for(const i of r.viewLines){const n=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(n.lineNumber===i.modelLineWrappedLineIdx)t=n.column;else if(n.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(n.lineNumber>i.modelLineWrappedLineIdx)return}const n=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return s.lineNumber===i.modelLineWrappedLineIdx?new Nt.UO(e.visibleColumn,t,e.className,new Nt.vW(e.horizontalLine.top,n.column),-1,-1):s.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new Nt.UO(e.visibleColumn,t,e.className,new Nt.vW(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));o.push(n.filter((e=>!!e)))}}return o}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const o=[],r=[],a=i.lineNumber-1,l=n.lineNumber-1;let d=null;for(let g=a;g<=l;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),n=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),s=n-t+1;let l=0;s>1&&1===e.getViewLineMinColumn(this.model,g+1,n)&&(l=0===t?1:2),o.push(s),r.push(l),null===d&&(d=new $.L(g+1,0))}else null!==d&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,g)),d=null)}null!==d&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,c=new Array(h);let u=0;for(let g=0,p=s.length;g<p;g++){let e=s[g];const t=Math.min(h-u,o[g]),i=r[g];let n;n=2===i?0:1===i?1:t;for(let s=0;s<t;s++)s===n&&(e=0),c[u++]=e}return c}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.projectedModelLineLineCounts.getIndexOf(e-1);let s=e;const o=n.index,r=n.remainder,a=[];for(let l=o,d=this.model.getLineCount();l<d;l++){const n=this.modelLineProjections[l];if(!n.isVisible())continue;const d=l===o?r:0;let h=n.getViewLineCount()-d,c=!1;if(s+h>t&&(c=!0,h=t-s+1),n.getViewLinesData(this.model,l+1,d,h,s-e,i,a),s+=h,c)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,o=n.remainder,r=this.modelLineProjections[s],a=r.getViewLineMinColumn(this.model,s+1,o),l=r.getViewLineMaxColumn(this.model,s+1,o);t<a&&(t=a),t>l&&(t=l);const d=r.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new $.L(s+1,d)).equals(i)?new $.L(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new G.e(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new $.L(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new G.e(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=this.model.validatePosition(new $.L(e,t)),r=o.lineNumber,a=o.column;let l=r-1,d=!1;if(s)for(;l<this.modelLineProjections.length&&!this.modelLineProjections[l].isVisible();)l++,d=!0;else for(;l>0&&!this.modelLineProjections[l].isVisible();)l--,d=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new $.L(n?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(l);let c;return c=d?s?this.modelLineProjections[l].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(l+1),i):this.modelLineProjections[r-1].getViewPositionOfModelPosition(h,a,i),c}convertModelRangeToViewRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return G.e.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new G.e(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,s){const o=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-o.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new G.e(o.lineNumber,1,r.lineNumber,r.column),t,i,n,s);let a=[];const l=o.lineNumber-1,d=r.lineNumber-1;let h=null;for(let p=l;p<=d;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new $.L(p+1,p===l?o.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new G.e(h.lineNumber,h.column,p,e),t,i,n)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new G.e(h.lineNumber,h.column,r.lineNumber,r.column),t,i,n)),h=null),a.sort(((e,t)=>{const i=G.e.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const c=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,c[u++]=p)}return c}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class Es{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Ts{constructor(e,t){this.modelRange=e,this.viewLines=t}}class Is{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,n){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,n)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class Ms{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new As(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Rn(t,i)}onModelLinesInserted(e,t,i,n){return new On(t,i)}onModelLineChanged(e,t,i){return[!1,new An(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;s<i;s++)n[s]=0;return n}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new zt.IP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const n=this.model.getLineCount();e=Math.min(Math.max(1,e),n),t=Math.min(Math.max(1,t),n);const s=[];for(let o=e;o<=t;o++){const t=o-e;s[t]=i[t]?this.getViewLineData(o):null}return s}getDecorationsInRange(e,t,i,n,s){return this.model.getDecorationsInRange(e,t,i,n,s)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class As{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Rs=_t.U.Right;class Os{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Rs/8))}reset(e){const t=Math.ceil((e+1)*Rs/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const t=Rs*n+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(n))}}getLanesAtLine(e){const t=[];let i=Rs*e;for(let n=0;n<Rs;n++)(this.persist&1<<n||this.lanes[i>>>3]&1<<i%8)&&t.push(n+1),i++;return t.length?t:[_t.U.Center]}countAtLine(e){let t=Rs*e,i=0;for(let n=0;n<Rs;n++)(this.persist&1<<n||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Ps extends c.JT{constructor(e,t,i,n,s,o,r,a,l){if(super(),this.languageConfigurationService=r,this._themeService=a,this._attachedView=l,this.hiddenAreasModel=new Vs,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new zn,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new It.pY((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Fs.create(this.model),this.glyphLanes=new Os(0),this.model.isTooLargeForTokenization())this._lines=new Ms(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(139),o=e.get(146),r=e.get(138),a=e.get(129);this._lines=new Ns(this._editorId,this.model,n,s,t,this.model.getOptions().tabSize,i,o.wrappingColumn,r,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new ns(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new _s(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fn(e)),this._eventDispatcher.emitOutgoingEvent(new qn(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new vs.CU(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Ht.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Wn)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Bn(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new G.e(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Tn(e)),this._eventDispatcher.emitOutgoingEvent(new Kn(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new xn)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Ln)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new $.L(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Hs(t,this._viewportStart.startLineDelta)}return new Hs(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,s=n.get(50),o=n.get(139),r=n.get(146),a=n.get(138),l=n.get(129);this._lines.setWrappingSettings(s,o,r.wrappingColumn,a,l)&&(e.emitViewEvent(new En),e.emitViewEvent(new Mn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(91)&&(this._decorations.reset(),e.emitViewEvent(new Nn(null))),t.hasChanged(98)&&(this._decorations.reset(),e.emitViewEvent(new Nn(null))),e.emitViewEvent(new kn(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),vn.LM.shouldRecreate(t)&&(this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const s=e instanceof Ui.fV?e.rawContentChangedEvent.changes:e.changes,o=e instanceof Ui.fV?e.rawContentChangedEvent.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of s)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let n=e.injectedTexts[t];n&&(n=n.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize(),l=new m.H9(a);for(const e of s)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new En),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(o,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=l.takeCount(e.detail.length),s=this._lines.onModelLinesInserted(o,e.fromLineNumber,e.toLineNumber,n);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesInserted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[s,r,a,d]=this._lines.onModelLineChanged(o,e.lineNumber,i);n=s,r&&t.emitViewEvent(r),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}null!==o&&this._lines.acceptVersionId(o),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Mn),t.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Ui.fV&&t.emitOutgoingEvent(new es(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,n=e.ranges.length;i<n;i++){const n=e.ranges[i],s=this.coordinatesConverter.convertModelPositionToViewPosition(new $.L(n.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new $.L(n.toLineNumber,this.model.getLineMaxColumn(n.toLineNumber))).lineNumber;t[i]={fromLineNumber:s,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new Vn(t)),this._eventDispatcher.emitOutgoingEvent(new is(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new In),this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Jn(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Xn(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new En),e.emitViewEvent(new Mn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new vn.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new ts(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Nn(e)),this._eventDispatcher.emitOutgoingEvent(new Qn(e))})))}setHiddenAreas(e,t){var i;this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const s=this._captureStableViewport();let o=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();o=this._lines.setHiddenAreas(n),o&&(e.emitViewEvent(new En),e.emitViewEvent(new Mn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=null===(i=s.viewportStartModelPosition)||void 0===i?void 0:i.lineNumber;t&&n.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),o&&this._eventDispatcher.emitOutgoingEvent(new Gn)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(145),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),o=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new G.e(s,this.getLineMinColumn(s),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const n=[];let s=0,o=t.startLineNumber,r=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let d=0,h=i.length;d<h;d++){const e=i[d].startLineNumber,t=i[d].endLineNumber;t<o||(e>a||(o<e&&(n[s++]=new G.e(o,r,e-1,this.model.getLineMaxColumn(e-1))),o=t+1,r=1))}return(o<a||o===a&&r<l)&&(n[s++]=new G.e(o,r,a,l)),n}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new G.e(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,n=t.completelyVisibleEndLineNumber;return new G.e(i,this.getLineMinColumn(i),n,this.getLineMaxColumn(n))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),n=this.coordinatesConverter.convertViewPositionToModelPosition(new $.L(i,this.getLineMinColumn(i))),s=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:n,firstPositionDeltaTop:s}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=ke.LC(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=ke.ow(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),o=this._lines.getViewLineData(e);return o.inlineDecorations&&(t=[...t,...o.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new zt.wA(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,i,n,o.tokens,t,s,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new zt.ud(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,L.$J)(this._configuration.options)),i=new Bs;for(const n of t){const t=n.options,s=t.overviewRuler;if(!s)continue;const o=s.position;if(0===o)continue;const r=s.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,o)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;null===e||void 0===e||e.invalidateCachedColor();const i=t.options.minimap;null===i||void 0===i||i.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),n=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(n)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const s=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(s)}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(G.e.compareRangesUsingStarts);let s=!1,o=!1;for(const a of e)a.isEmpty()?s=!0:o=!0;if(!o){if(!t)return"";const i=e.map((e=>e.startLineNumber));let s="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(s+=this.model.getLineContent(i[e])+n);return s}if(s&&t){const t=[];let n=0;for(const s of e){const e=s.startLineNumber;s.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(s,i?2:0)),n=e}return 1===t.length?t[0]:t}const r=[];for(const a of e)a.isEmpty()||r.push(this.model.getValueInRange(a,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===ds.bd)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new G.e(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const s=this._configuration.options.get(50),o=this._getColorMap();let r;if(/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===L.hL.fontFamily)r=L.hL.fontFamily;else{r=s.fontFamily,r=r.replace(/"/g,"'");if(!/[,']/.test(r)){/[+ ]/.test(r)&&(r=`'${r}'`)}r=`${r}, ${L.hL.fontFamily}`}return{mode:i,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${r};font-weight: ${s.fontWeight};font-size: ${s.fontSize}px;line-height: ${s.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(n,o)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn,r=this.getTabSize();let a="";for(let l=i;l<=s;l++){const e=this.model.tokenization.getLineTokens(l),d=e.getLineContent(),h=l===i?n-1:0,c=l===s?o-1:d.length;a+=""===d?"<br>":(0,hs.Fq)(d,e.inflate(),t,h,c,r,_.ED)}return a}_getColorMap(){const e=Oe.RW.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;i<n;i++)t[i]=Pe.Il.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((n=>this._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Zn):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,s){this._executeCursorEdit((o=>this._cursor.compositionType(o,e,t,i,n,s)))}paste(e,t,i,n){this._executeCursorEdit((s=>this._cursor.paste(s,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._withViewEventsCollector((n=>this._cursor.revealAll(n,e,i,0,t,0)))}revealPrimaryCursor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._withViewEventsCollector((n=>this._cursor.revealPrimary(n,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new G.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pn(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new G.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pn(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,n,s){this._withViewEventsCollector((o=>o.emitViewEvent(new Pn(e,!1,i,null,n,t,s))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Hn),this._eventDispatcher.emitOutgoingEvent(new $n))}_withViewEventsCollector(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Fs{static create(e){const t=e._setTrackedRange(null,new G.e(1,1,1,1),1);return new Fs(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new $.L(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new G.e(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),o=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=o-s}invalidate(){this._isValid=!1}}class Bs{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const o=this._asMap[e];if(o){const e=o.data,t=e[e.length-3],r=e[e.length-1];if(t===s&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(s,i,n)}else{const o=new zt.SQ(e,t,[s,i,n]);this._asMap[e]=o,this.asArray.push(o)}}}class Vs{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Ws(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let n=0,s=0;for(;n<e.length&&s<t.length;){const o=e[n],r=t[s];if(o.endLineNumber<r.startLineNumber-1)i.push(e[n++]);else if(r.endLineNumber<o.startLineNumber-1)i.push(t[s++]);else{const e=Math.min(o.startLineNumber,r.startLineNumber),t=Math.max(o.endLineNumber,r.endLineNumber);i.push(new G.e(e,1,t,1)),n++,s++}}for(;n<e.length;)i.push(e[n++]);for(;s<t.length;)i.push(t[s++]);return i}(e,t)),[]);return Ws(this.ranges,e)||(this.ranges=e),this.ranges}}function Ws(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Hs{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),n=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:n+this.startLineDelta},1)}}var zs,js=i(94943),Us=i(47116),Ks=i(45234),qs=i(61758),$s=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Gs=function(e,t){return function(i,n){t(i,n,e)}};let Ys=zs=class extends c.JT{get isSimpleWidget(){return this._configuration.isSimpleWidget}constructor(e,t,i,n,o,r,a,c,u,g,p,m){var f;super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Sp)(),this._contributions=this._register(new Qi),this._onDidDispose=this._register(new h.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Xs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Xs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new Js(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new Js(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new Js(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new Js(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),o.willCreateCodeEditor();const _={...t};let v;this._domElement=e,this._overflowWidgetsDomNode=_.overflowWidgetsDomNode,delete _.overflowWidgetsDomNode,this._id=++Zs,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,_,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(145)){const e=t.get(145);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=o,this._commandService=r,this._themeService=c,this._register(new eo(this,this._contextKeyService)),this._register(new to(this,this._contextKeyService,m)),this._instantiationService=n.createChild(new Ks.y([Us.i6,this._contextKeyService])),this._modelData=null,this._focusTracker=new io(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},v=Array.isArray(i.contributions)?i.contributions:s.Uc.getEditorContributions(),this._contributions.initialize(this,v,this._instantiationService);for(const l of s.Uc.getEditorActions()){if(this._actions.has(l.id)){(0,d.dL)(new Error(`Cannot have two actions with the same id ${l.id}`));continue}const e=new Ji.p(l.id,l.label,l.alias,l.metadata,null!==(f=l.precondition)&&void 0!==f?f:void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(l.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const b=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new l.eg(this._domElement,{onDragOver:e=>{if(!b())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!b())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;null===(t=this._modelData)||void 0===t||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i){return new M(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return en.g.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Xi.w.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),e):null}getValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(){var e;const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:(null===(e=this._modelData)||void 0===e?void 0:e.model.uri)||null,newModelUrl:(null===t||void 0===t?void 0:t.uri)||null};this._onWillChangeModel.fire(i);const n=this.hasTextFocus(),s=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(s),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const s=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(o.lineNumber,n)}getTopForLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._modelData?zs._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zs._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber,n)}getBottomForLineNumber(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._modelData?zs._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e,t){var i;null===(i=this._modelData)||void 0===i||i.viewModel.setHiddenAreas(e.map((e=>G.e.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Y.i.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";if(this._modelData){if(!$.L.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!G.e.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,o,t,n)}revealLine(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,0,t)}revealLineInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,2,t)}revealLineNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new G.e(e,1,e,1),t,!1,i)}revealPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,0,!0,t)}revealPositionInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,2,!0,t)}revealPositionNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!$.L.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new G.e(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";const i=pe.Y.isISelection(e),n=G.e.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.Y(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,0,i)}revealLinesInCenter(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,2,i)}revealLinesNearTop(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new G.e(e,1,t,1),i,!1,n)}revealRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,2,!0,t)}revealRangeNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,6,!0,t)}revealRangeAtTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!G.e.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(G.e.lift(e),t,i,n)}setSelections(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.Y.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){var e;null===(e=this._getViewModel())||void 0===e||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run(i)).then(void 0,d.dL):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s,o){if(!this._modelData)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:o,range:new G.e(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=s.Uc.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,d.dL)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(91)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(91)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(91))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new no(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,L.$J)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,L.$J)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(145);return{top:zs._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.N)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new Ps(this._id,this._configuration,e,qi.create(l.Jj(this._domElement)),an.create(this._configuration.options),(e=>l.jL(l.Jj(this._domElement),e)),this.languageConfigurationService,this._themeService,i);t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(n.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Le.NC("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(qs.zb.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Le.NC("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let s=0,o=t.selections.length;s<o;s++)e[s]=t.selections[s].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const n={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(n);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[s,o]=this._createView(n);if(o){this._domElement.appendChild(s.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addGlyphMarginWidget(this._glyphMarginWidgets[i])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Qs(e,n,s,o,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,n)=>{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const s={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",s)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const s={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",s)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new nt(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){null===e||void 0===e||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if(null===(e=this._contributionsDisposable)||void 0===e||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&this._domElement.removeChild(i),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),t}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new G.e(e.lineNumber,e.column,e.lineNumber,e.column),options:zs.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}};Ys.dropIntoEditorDecorationOptions=sn.qx.register({description:"workbench-dnd-target",className:"dnd-target"}),Ys=zs=$s([Gs(3,Ve.TG),Gs(4,B.$),Gs(5,js.H),Gs(6,Us.i6),Gs(7,Ee.XE),Gs(8,qs.lT),Gs(9,N.F),Gs(10,nn.c_),Gs(11,on.p)],Ys);let Zs=0;class Qs{constructor(e,t,i,n,s,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s,this.attachedView=o}dispose(){(0,c.B9)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class Xs extends c.JT{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.Q5(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.Q5(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class Js extends h.Q5{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class eo extends c.JT{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=tn.u.editorSimpleInput.bindTo(t),this._editorFocus=tn.u.focus.bindTo(t),this._textInputFocus=tn.u.textInputFocus.bindTo(t),this._editorTextFocus=tn.u.editorTextFocus.bindTo(t),this._tabMovesFocus=tn.u.tabMovesFocus.bindTo(t),this._editorReadonly=tn.u.readOnly.bindTo(t),this._inDiffEditor=tn.u.inDiffEditor.bindTo(t),this._editorColumnSelection=tn.u.columnSelection.bindTo(t),this._hasMultipleSelections=tn.u.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=tn.u.hasNonEmptySelection.bindTo(t),this._canUndo=tn.u.canUndo.bindTo(t),this._canRedo=tn.u.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(x.n.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(x.n.getTabFocusMode()),this._editorReadonly.set(e.get(91)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class to extends c.JT{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=tn.u.languageId.bindTo(t),this._hasCompletionItemProvider=tn.u.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=tn.u.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=tn.u.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=tn.u.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=tn.u.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=tn.u.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=tn.u.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=tn.u.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=tn.u.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=tn.u.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=tn.u.hasReferenceProvider.bindTo(t),this._hasRenameProvider=tn.u.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=tn.u.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=tn.u.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=tn.u.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=tn.u.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=tn.u.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=tn.u.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=tn.u.isInEmbeddedEditor.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.lg.walkThroughSnippet||e.uri.scheme===u.lg.vscodeChatCodeBlock)})):this.reset()}}class io extends c.JT{constructor(e,t){super(),this._onChange=this._register(new h.Q5),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(l.go(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(l.go(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return null!==(e=this._hadFocus)&&void 0!==e&&e}}class no{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const so=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),oo=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function ro(e){return so+encodeURIComponent(e.toString())+oo}const ao=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),lo=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,Ee.Ic)(((e,t)=>{const i=e.getColor(jt.lXJ);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${ro(i)}") repeat-x bottom left; }`);const n=e.getColor(jt.uoC);n&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${ro(n)}") repeat-x bottom left; }`);const s=e.getColor(jt.c63);s&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${ro(s)}") repeat-x bottom left; }`);const o=e.getColor(jt.Dut);o&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return ao+encodeURIComponent(e.toString())+lo}(o)}") no-repeat bottom left; }`);const r=e.getColor(Te.zu);r&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${r.rgba.a}; }`)}))},2822:(e,t,i)=>{"use strict";i.d(t,{H:()=>f});var n=i(53335),s=i(74246),o=i(50238),r=i(5580),a=i(53869),l=i(71940),d=i(94943),h=i(47116),c=i(87775),u=i(61758),g=i(46673),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=class extends o.Gm{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,s,o,r,a,l,d,h,c,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.jB(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,c.TG),m(5,s.$),m(6,d.H),m(7,h.i6),m(8,g.XE),m(9,u.lT),m(10,l.F),m(11,r.c_),m(12,a.p)],f)},29134:(e,t,i)=>{"use strict";var n=i(61542),s=i(76595),o=i(60548),r=i(74246),a=i(61369),l=i(35770),d=i(5887),h=i(6178),c=i(30600),u=i(47116);i(79987);class g extends h.Ke{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,d.vv)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:n.l.map,toggled:u.Ao.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.Ao.has("isInDiffEditor"),menu:{when:u.Ao.has("isInDiffEditor"),id:h.eH.EditorTitle,order:22,group:"navigation"}})}run(e){const t=e.get(c.Ui),i=!t.getValue("diffEditor.hideUnchangedRegions.enabled");t.updateValue("diffEditor.hideUnchangedRegions.enabled",i)}}class p extends h.Ke{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,d.vv)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.Ao.has("isInDiffEditor")})}run(e){const t=e.get(c.Ui),i=!t.getValue("diffEditor.experimental.showMoves");t.updateValue("diffEditor.experimental.showMoves",i)}}class m extends h.Ke{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,d.vv)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.Ao.has("isInDiffEditor")})}run(e){const t=e.get(c.Ui),i=!t.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");t.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",i)}}const f=(0,d.vv)("diffEditor","Diff Editor");class _ extends o.x1{constructor(){super({id:"diffEditor.switchSide",title:(0,d.vv)("switchSide","Switch Side"),icon:n.l.arrowSwap,precondition:u.Ao.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const n=L(e);if(n instanceof a.p){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class v extends o.x1{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,d.vv)("exitCompareMove","Exit Compare Move"),icon:n.l.close,precondition:l.u.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t){const i=L(e);i instanceof a.p&&i.exitCompareMove()}}class b extends o.x1{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,d.vv)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:n.l.fold,precondition:u.Ao.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t){const i=L(e);i instanceof a.p&&i.collapseAllUnchangedRegions()}}class C extends o.x1{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,d.vv)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:n.l.unfold,precondition:u.Ao.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t){const i=L(e);i instanceof a.p&&i.showAllUnchangedRegions()}}class y extends h.Ke{constructor(){super({id:"diffEditor.revert",title:(0,d.vv)("revert","Revert"),f1:!1,category:f})}run(e,t){var i;const n=function(e,t,i){const n=e.get(r.$);return n.listDiffEditors().find((e=>{var n,s;const o=e.getModifiedEditor(),r=e.getOriginalEditor();return o&&(null===(n=o.getModel())||void 0===n?void 0:n.uri.toString())===i.toString()&&r&&(null===(s=r.getModel())||void 0===s?void 0:s.uri.toString())===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);n instanceof a.p&&n.revertRangeMappings(null!==(i=t.mapping.innerChanges)&&void 0!==i?i:[])}}const w=(0,d.vv)("accessibleDiffViewer","Accessible Diff Viewer");class S extends h.Ke{constructor(){super({id:S.id,title:(0,d.vv)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:w,precondition:u.Ao.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=L(e);null===t||void 0===t||t.accessibleDiffViewerNext()}}S.id="editor.action.accessibleDiffViewer.next";class x extends h.Ke{constructor(){super({id:x.id,title:(0,d.vv)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:w,precondition:u.Ao.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=L(e);null===t||void 0===t||t.accessibleDiffViewerPrev()}}function L(e){const t=e.get(r.$).listDiffEditors(),i=(0,s.vY)();if(i)for(const n of t){if(k(n.getContainerDomNode(),i))return n}return null}function k(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}x.id="editor.action.accessibleDiffViewer.prev";var D=i(94943);(0,h.r1)(g),(0,h.r1)(p),(0,h.r1)(m),h.BH.appendMenuItem(h.eH.EditorTitle,{command:{id:(new m).desc.id,title:(0,d.NC)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.Ao.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.Ao.has("isInDiffEditor")},order:11,group:"1_diff",when:u.Ao.and(l.u.diffEditorRenderSideBySideInlineBreakpointReached,u.Ao.has("isInDiffEditor"))}),h.BH.appendMenuItem(h.eH.EditorTitle,{command:{id:(new p).desc.id,title:(0,d.NC)("showMoves","Show Moved Code Blocks"),icon:n.l.move,toggled:u.cP.create("config.diffEditor.experimental.showMoves",!0),precondition:u.Ao.has("isInDiffEditor")},order:10,group:"1_diff",when:u.Ao.has("isInDiffEditor")}),(0,h.r1)(y);for(const N of[{icon:n.l.arrowRight,key:l.u.diffEditorInlineMode.toNegated()},{icon:n.l.discard,key:l.u.diffEditorInlineMode}])h.BH.appendMenuItem(h.eH.DiffEditorHunkToolbar,{command:{id:(new y).desc.id,title:(0,d.NC)("revertHunk","Revert Block"),icon:N.icon},when:u.Ao.and(l.u.diffEditorModifiedWritable,N.key),order:5,group:"primary"}),h.BH.appendMenuItem(h.eH.DiffEditorSelectionToolbar,{command:{id:(new y).desc.id,title:(0,d.NC)("revertSelection","Revert Selection"),icon:N.icon},when:u.Ao.and(l.u.diffEditorModifiedWritable,N.key),order:5,group:"primary"});(0,h.r1)(_),(0,h.r1)(v),(0,h.r1)(b),(0,h.r1)(C),h.BH.appendMenuItem(h.eH.EditorTitle,{command:{id:S.id,title:(0,d.NC)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.Ao.has("isInDiffEditor")},order:10,group:"2_diff",when:u.Ao.and(l.u.accessibleDiffViewerVisible.negate(),u.Ao.has("isInDiffEditor"))}),D.P.registerCommandAlias("editor.action.diffReview.next",S.id),(0,h.r1)(S),D.P.registerCommandAlias("editor.action.diffReview.prev",x.id),(0,h.r1)(x)},61369:(e,t,i)=>{"use strict";i.d(t,{p:()=>zt});var n=i(76595),s=i(91206),o=i(16015),r=i(39706),a=i(53186),l=i(43704),d=i(205),h=i(60548),c=i(74246),u=i(52432),g=i(50238),p=i(58296),m=i(7144),f=i(24622),_=i(51828),v=i(51833),b=i(61542),C=i(73045),y=i(64295),w=i(36348),S=i(67364),x=i(47638),L=i(93845),k=i(74633),D=i(28928),N=i(17053),E=i(91342),T=i(34415),I=i(97869),M=i(23614),A=i(5887),R=i(88622),O=i(87775),P=i(54329),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};const V=(0,P.q5)("diff-review-insert",b.l.add,(0,A.NC)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),W=(0,P.q5)("diff-review-remove",b.l.remove,(0,A.NC)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),H=(0,P.q5)("diff-review-close",b.l.close,(0,A.NC)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let z=class extends a.JT{constructor(e,t,i,n,s,o,r,a,d){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=s,this._height=o,this._diffs=r,this._models=a,this._instantiationService=d,this._state=(0,l.Be)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const n=t.add(this._instantiationService.createInstance(j,this._diffs,this._models,this._setVisible,this._canClose));return{model:n,view:t.add(this._instantiationService.createInstance(Q,this._parentNode,n,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,l.PS)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,l.PS)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,l.PS)((e=>{this._setVisible(!1,e)}))}};z._ttPolicy=(0,p.Z)("diffReview",{createHTML:e=>e}),z=F([B(8,O.TG)],z);let j=class extends a.JT{constructor(e,t,i,n,s){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=s,this._groups=(0,l.uh)(this,[]),this._currentGroupIdx=(0,l.uh)(this,0),this._currentElementIdx=(0,l.uh)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>{var i;return null===(i=this.currentGroup.read(t))||void 0===i?void 0:i.lines[e]})),this._register((0,l.EH)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const n=[];for(const s of(0,v.mw)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*U))){const e=[];e.push(new $);const o=new x.z(Math.max(1,s[0].original.startLineNumber-U),Math.min(s[s.length-1].original.endLineNumberExclusive+U,t+1)),r=new x.z(Math.max(1,s[0].modified.startLineNumber-U),Math.min(s[s.length-1].modified.endLineNumberExclusive+U,i+1));(0,v.zy)(s,((t,i)=>{const n=new x.z(t?t.original.endLineNumberExclusive:o.startLineNumber,i?i.original.startLineNumber:o.endLineNumberExclusive),s=new x.z(t?t.modified.endLineNumberExclusive:r.startLineNumber,i?i.modified.startLineNumber:r.endLineNumberExclusive);n.forEach((t=>{e.push(new Z(t,s.startLineNumber+(t-n.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new G(i,t))})),i.modified.forEach((t=>{e.push(new Y(i,t))})))}));const a=s[0].modified.join(s[s.length-1].modified),l=s[0].original.join(s[s.length-1].original);n.push(new q(new N.f0(a,l),e))}return n}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,l.PS)((e=>{const t=this._models.getModifiedPosition();if(t){const n=i.findIndex((e=>(null===t||void 0===t?void 0:t.lineNumber)<e.range.modified.endLineNumberExclusive));-1!==n&&this._currentGroupIdx.set(n,e)}this._groups.set(i,e)}))}))),this._register((0,l.EH)((e=>{const t=this.currentElement.read(e);(null===t||void 0===t?void 0:t.type)===K.Deleted?this._accessibilitySignalService.playSignal(R.iP.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(null===t||void 0===t?void 0:t.type)===K.Added&&this._accessibilitySignalService.playSignal(R.iP.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,l.EH)((e=>{var t;const i=this.currentElement.read(e);if(i&&i.type!==K.Header){const e=null!==(t=i.modifiedLineNumber)&&void 0!==t?t:i.diff.modified.startLineNumber;this._models.modifiedSetSelection(D.e.fromPositions(new k.L(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,l.c8)(t,(t=>{this._currentGroupIdx.set(L.q.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,l.PS)((i=>{this._currentElementIdx.set(L.q.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,l.PS)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===K.Deleted?this._models.originalReveal(D.e.fromPositions(new k.L(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==K.Header?D.e.fromPositions(new k.L(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};j=F([B(4,R.IV)],j);const U=3;var K;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(K||(K={}));class q{constructor(e,t){this.range=e,this.lines=t}}class ${constructor(){this.type=K.Header}}class G{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=K.Deleted,this.modifiedLineNumber=void 0}}class Y{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=K.Added,this.originalLineNumber=void 0}}class Z{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=K.Unchanged}}let Q=class extends a.JT{constructor(e,t,i,s,o,r){super(),this._element=e,this._model=t,this._width=i,this._height=s,this._models=o,this._languageService=r,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const d=document.createElement("div");d.className="diff-review-actions",this._actionBar=this._register(new m.o(d)),this._register((0,l.EH)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.aU("diffreview.close",(0,A.NC)("label.close","Close"),"close-diff-review "+C.k.asClassName(H),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new f.s$(this._content,{})),(0,n.mc)(this.domNode,this._scrollbar.getDomNode(),d),this._register((0,l.EH)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.OF)((()=>{(0,n.mc)(this.domNode)}))),this._register((0,w.bg)(this.domNode,{width:this._width,height:this._height})),this._register((0,w.bg)(this._content,{width:this._width,height:this._height})),this._register((0,l.gp)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,n.mu)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),s=document.createElement("div");s.className="diff-review-table",s.setAttribute("role","list"),s.setAttribute("aria-label",(0,A.NC)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,y.N)(s,i.get(50)),(0,n.mc)(this._content,s);const o=this._models.getOriginalModel(),r=this._models.getModifiedModel();if(!o||!r)return;const a=o.getOptions(),d=r.getOptions(),h=i.get(67),c=this._model.currentGroup.get();for(const u of(null===c||void 0===c?void 0:c.lines)||[]){if(!c)break;let g;if(u.type===K.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=c.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,s=e=>0===e?(0,A.NC)("no_lines_changed","no lines changed"):1===e?(0,A.NC)("one_line_changed","1 line changed"):(0,A.NC)("more_lines_changed","{0} lines changed",e),o=s(t.original.length),r=s(t.modified.length);e.setAttribute("aria-label",(0,A.NC)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,o,t.modified.startLineNumber,r));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,o,a,i,r,d);s.appendChild(g);const p=(0,l.nK)((e=>this._model.currentElement.read(e)===u));e.add((0,l.EH)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,n.nm)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,s,o,r,a,l){const d=n.get(145),h=d.glyphMarginWidth+d.lineNumbersWidth,c=r.get(145),u=10+c.glyphMarginWidth+c.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case K.Added:g="diff-review-row line-insert",p=" char-insert",m=V;break;case K.Deleted:g="diff-review-row line-delete",p=" char-delete",m=W}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const b=document.createElement("span");b.style.width=u+"px",b.style.minWidth=u+"px",b.style.paddingRight="10px",b.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?b.appendChild(document.createTextNode(String(e.modifiedLineNumber))):b.innerText="\xa0",_.appendChild(b);const y=document.createElement("span");if(y.className="diff-review-spacer",m){const e=document.createElement("span");e.className=C.k.asClassName(m),e.innerText="\xa0\xa0",y.appendChild(e)}else y.innerText="\xa0\xa0";let w;if(_.appendChild(y),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,r,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);z._ttPolicy&&(t=z._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),w=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(s,n,o.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);z._ttPolicy&&(t=z._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),w=s.getLineContent(e.originalLineNumber)}0===w.length&&(w=(0,A.NC)("blankLine","blank"));let S="";switch(e.type){case K.Unchanged:S=e.originalLineNumber===e.modifiedLineNumber?(0,A.NC)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",w,e.originalLineNumber):(0,A.NC)("equalLine","{0} original line {1} modified line {2}",w,e.originalLineNumber,e.modifiedLineNumber);break;case K.Added:S=(0,A.NC)("insertLine","+ {0} modified line {1}",w,e.modifiedLineNumber);break;case K.Deleted:S=(0,A.NC)("deleteLine","- {0} original line {1}",w,e.originalLineNumber)}return f.setAttribute("aria-label",S),f}_getLineHtml(e,t,i,n,s){const o=e.getLineContent(n),r=t.get(50),a=T.A.createEmpty(o,s),l=M.wA.isBasicASCII(o,e.mightContainNonBasicASCII()),d=M.wA.containsRTL(o,l,e.mightContainRTL());return(0,I.tF)(new I.IJ(r.isMonospace&&!t.get(33),r.canUseHalfwidthRightwardsArrow,o,!1,l,d,0,a,[],i,0,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,t.get(117),t.get(99),t.get(94),t.get(51)!==S.n0.OFF,null)).html}};Q=F([B(5,E.O)],Q);class X{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return null!==(e=this.editors.modified.getPosition())&&void 0!==e?e:void 0}}class J extends a.JT{constructor(e,t,i,n,s){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=s,this._originalScrollTop=(0,l.rD)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.rD)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,l.aq)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,l.uh)(this,0),this._modifiedViewZonesChangedSignal=(0,l.aq)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,l.aq)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,l.Be)(this,((e,t)=>{var i;this._element.replaceChildren();const n=this._diffModel.read(e),s=null===(i=null===n||void 0===n?void 0:n.diff.read(e))||void 0===i?void 0:i.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const o=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!o||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const a=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const n=i(t.lineRangeMapping.original,this._editors.original),s=this._originalScrollTop.read(e),o=i(t.lineRangeMapping.modified,this._editors.modified),r=n-s,a=o-this._modifiedScrollTop.read(e),l=Math.min(n,o),d=Math.max(n,o);return{range:new L.q(l,d),from:r,to:a,fromWithoutScroll:n,toWithoutScroll:o,move:t}}));a.sort((0,v.f_)((0,v.tT)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.nW),(0,v.tT)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.fv)));const d=ee.compute(a.map((e=>e.range))),h=o.verticalScrollbarWidth,c=10*(d.getTrackCount()-1)+20,u=h+c+(r.contentLeft-J.movedCodeBlockPadding);let g=0;for(const p of a){const e=h+10+10*d.getTrack(g),i=15,s=15,o=u,a=r.glyphMarginWidth+r.lineNumbersWidth,c=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-a)),m.setAttribute("y",""+(p.to-c/2)),m.setAttribute("width",`${a}`),m.setAttribute("height",`${c}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${p.from} L ${e} ${p.from} L ${e} ${p.to} L ${o-s} ${p.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,l.EH)((e=>{_.classList.toggle("currentMove",p.move===n.activeMovedText.read(e)),v.classList.toggle("currentMove",p.move===n.activeMovedText.read(e))}))),v.setAttribute("points",`${o-s},${p.to-i/2} ${o},${p.to} ${o-s},${p.to+i/2}`),f.appendChild(v),this._element.appendChild(f),g++}this.width.set(c,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.OF)((()=>this._element.remove()))),this._register((0,l.EH)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-J.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,l.jx)(this._state));const o=(0,l.nK)((e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new w.GD((0,l.Dz)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new w.GD((0,l.Dz)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,w.Sv)(this._editors.original,o.map((e=>e.map((e=>e.original)))))),this._register((0,w.Sv)(this._editors.modified,o.map((e=>e.map((e=>e.modified)))))),this._register((0,l.gp)(((e,t)=>{const i=o.read(e);for(const n of i)t.add(new te(this._editors.original,n.original,n.move,"original",this._diffModel.get())),t.add(new te(this._editors.modified,n.modified,n.move,"modified",this._diffModel.get()))})));const r=(0,l.aq)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),d=(0,l.aq)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,l.nJ)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(r)&&(h="original"),e.didChange(d)&&(h="modified"),!0)},(e=>{r.read(e),d.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let n;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}n!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(n)})))}}J.movedCodeBlockPadding=4;class ee{static compute(e){const t=[],i=[];for(const n of e){let e=t.findIndex((e=>!e.intersectsStrict(n)));if(-1===e){const i=6;t.length>=i?e=(0,s.tQ)(t,(0,v.tT)((e=>e.intersectWithRangeLength(n)),v.fv)):(e=t.length,t.push(new L.M))}t[e].addRange(n),i.push(e)}return new ee(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class te extends w.N9{constructor(e,t,i,s,o){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._editor=e,this._move=i,this._kind=s,this._diffModel=o,this._nodes=(0,n.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,n.h)("div.text-content@textContent"),(0,n.h)("div.action-bar@actionBar")]),r.root.appendChild(this._nodes.root);const a=(0,l.rD)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let d;this._register((0,w.bg)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),d=i.changes.length>0?"original"===this._kind?(0,A.NC)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.NC)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,A.NC)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.NC)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.o(this._nodes.actionBar,{highlightToggledItems:!0})),c=new _.aU("",d,"",!1);h.push(c,{icon:!1,label:!0});const u=new _.aU("","Compare",C.k.asClassName(b.l.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,l.EH)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}var ie=i(79987);class ne extends a.JT{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,l.nK)(this,(e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e);if(!i)return null;const n=this._diffModel.read(e).movedTextToCompare.read(e),s=this._options.renderIndicators.read(e),o=this._options.showEmptyDecorations.read(e),r=[],a=[];if(!n)for(const d of i.mappings)if(d.lineRangeMapping.original.isEmpty||r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:s?ie.iq:ie.i_}),d.lineRangeMapping.modified.isEmpty||a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:s?ie.vv:ie.rd}),d.lineRangeMapping.modified.isEmpty||d.lineRangeMapping.original.isEmpty)d.lineRangeMapping.original.isEmpty||r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:ie.W3}),d.lineRangeMapping.modified.isEmpty||a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:ie.Jv});else for(const e of d.lineRangeMapping.innerChanges||[])d.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&r.push({range:e.originalRange,options:e.originalRange.isEmpty()&&o?ie.$F:ie.rq}),d.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&o?ie.n_:ie.LE});if(n)for(const d of n.changes){const e=d.original.toInclusiveRange();e&&r.push({range:e,options:s?ie.iq:ie.i_});const t=d.modified.toInclusiveRange();t&&a.push({range:t,options:s?ie.vv:ie.rd});for(const i of d.innerChanges||[])r.push({range:i.originalRange,options:ie.rq}),a.push({range:i.modifiedRange,options:ie.LE})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const d of i.movedTexts)r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(d===l?" currentMove":""),blockPadding:[J.movedCodeBlockPadding,0,J.movedCodeBlockPadding,J.movedCodeBlockPadding]}}),a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(d===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:r,modifiedDecorations:a}})),this._register((0,w.RP)(this._editors.original,this._decorations.map((e=>(null===e||void 0===e?void 0:e.originalDecorations)||[])))),this._register((0,w.RP)(this._editors.modified,this._decorations.map((e=>(null===e||void 0===e?void 0:e.modifiedDecorations)||[]))))}}var se=i(38571);class oe extends a.JT{constructor(e,t,i,n){super(),this._options=e,this._domNode=t,this._dimensions=i,this._sashes=n,this._sashRatio=(0,l.uh)(this,void 0),this.sashLeft=(0,l.nK)(this,(e=>{var t;const i=null!==(t=this._sashRatio.read(e))&&void 0!==t?t:this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(i,e)})),this._sash=this._register(new se.g(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{const t=this._dimensions.width.get(),i=this._computeSashLeft((this._startSashPosition+(e.currentX-e.startX))/t,void 0);this._sashRatio.set(i/t,void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._sashRatio.set(void 0,void 0)))),this._register((0,l.EH)((e=>{const t=this._sashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,l.EH)((e=>{const t=this._options.enableSplitViewResizing.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}_computeSashLeft(e,t){const i=this._dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),s=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n,o=100;return i<=200?n:s<o?o:s>i-o?i-o:s}}var re,ae=i(53372),le=i(47624),de=i(76946),he=i(23026),ce=i(6617),ue=i(69115),ge=i(57823),pe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},me=function(e,t){return function(i,n){t(i,n,e)}};const fe=(0,O.yh)("diffProviderFactoryService");let _e=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(ve,e)}};_e=pe([me(0,O.TG)],_e),(0,he.z)(fe,_e,1);let ve=re=class{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new r.Q5,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;null===(e=this.diffAlgorithmOnDidChangeSubscription)||void 0===e||e.dispose()}async computeDiff(e,t,i,n){var s,o;if("string"!==typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new N.gB(new x.z(1,2),new x.z(1,t.getLineCount()+1),[new N.iy(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),a=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),l=re.diffCache.get(r);if(l&&l.context===a)return l.result;const d=ce.G.create(),h=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),c=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:c,timedOut:null===(s=null===h||void 0===h?void 0:h.quitEarly)||void 0===s||s,detectedMoves:i.computeMoves?null!==(o=null===h||void 0===h?void 0:h.moves.length)&&void 0!==o?o:0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!h)throw new Error("no diff result available");return re.diffCache.size>10&&re.diffCache.delete(re.diffCache.keys().next().value),re.diffCache.set(r,{result:h,context:a}),h}setOptions(e){var t;let i=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(null===(t=this.diffAlgorithmOnDidChangeSubscription)||void 0===t||t.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!==typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),i=!0),i&&this.onDidChangeEventEmitter.fire()}};ve.diffCache=new Map,ve=re=pe([me(1,ue.p),me(2,ge.b)],ve);var be=i(809),Ce=i(41432),ye=i(70266),we=i(30886),Se=i(56702),xe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Le=function(e,t){return function(i,n){t(i,n,e)}};let ke=class extends a.JT{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,l.uh)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,l.uh)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,l.uh)(this,void 0),this.unchangedRegions=(0,l.nK)(this,(e=>{var t,i;return this._options.hideUnchangedRegions.read(e)?null!==(i=null===(t=this._unchangedRegions.read(e))||void 0===t?void 0:t.regions)&&void 0!==i?i:[]:((0,l.PS)((e=>{var t;for(const i of(null===(t=this._unchangedRegions.get())||void 0===t?void 0:t.regions)||[])i.collapseAll(e)})),[])})),this.movedTextToCompare=(0,l.uh)(this,void 0),this._activeMovedText=(0,l.uh)(this,void 0),this._hoveredMovedText=(0,l.uh)(this,void 0),this.activeMovedText=(0,l.nK)(this,(e=>{var t,i;return null!==(i=null!==(t=this.movedTextToCompare.read(e))&&void 0!==t?t:this._hoveredMovedText.read(e))&&void 0!==i?i:this._activeMovedText.read(e)})),this._cancellationTokenSource=new de.A,this._diffProvider=(0,l.nK)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,l.aq)("onDidChange",t.onDidChange)}})),this._register((0,a.OF)((()=>this._cancellationTokenSource.cancel())));const n=(0,l.GN)("contentChangedSignal"),s=this._register(new ae.pY((()=>n.trigger(void 0)),200));this._register((0,l.EH)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const n=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0)),s=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0)),o=i.regions.map(((e,i)=>n[i]&&s[i]?new Ee(n[i].startLineNumber,s[i].startLineNumber,n[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(le.$K),r=[];let a=!1;for(const e of(0,v.mw)(o,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new Ee(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());r.push(i)}else r.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,r.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),n=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,l.PS)((e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:n},e)}))}})));const o=(t,i,n)=>{const s=Ee.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(n),this._options.hideUnchangedRegionsContextLineCount.read(n));let o;const r=this._unchangedRegions.get();if(r){const t=r.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0)),i=r.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?x.z.fromRangeInclusive(e):void 0));let s=(0,w.W7)(r.regions.map(((e,n)=>{if(!t[n]||!i[n])return;const s=t[n].length;return new Ee(t[n].startLineNumber,i[n].startLineNumber,s,Math.min(e.visibleLineCountTop.get(),s),Math.min(e.visibleLineCountBottom.get(),s-e.visibleLineCountTop.get()))})).filter(le.$K),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new N.f0(e.getHiddenOriginalRange(n),e.getHiddenModifiedRange(n))));s=N.f0.clip(s,x.z.ofLength(1,e.original.getLineCount()),x.z.ofLength(1,e.modified.getLineCount())),o=N.f0.inverse(s,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(o)for(const e of s){const t=o.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...s);const l=e.original.deltaDecorations((null===r||void 0===r?void 0:r.originalDecorationIds)||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),d=e.modified.deltaDecorations((null===r||void 0===r?void 0:r.modifiedDecorationIds)||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:d},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=Ce.Q.fromModelContentChanges(t.changes),n=Ie(this._lastDiff,i,e.original,e.modified);n&&(this._lastDiff=n,(0,l.PS)((e=>{this._diff.set(De.fromDiffResult(this._lastDiff),e),o(n,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),s.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=Ce.Q.fromModelContentChanges(t.changes),n=Te(this._lastDiff,i,e.original,e.modified);n&&(this._lastDiff=n,(0,l.PS)((e=>{this._diff.set(De.fromDiffResult(this._lastDiff),e),o(n,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),s.schedule()}))),this._register((0,l.gp)((async(t,i)=>{var r,a;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),s.cancel(),n.read(t);const d=this._diffProvider.read(t);d.onChangeSignal.read(t),(0,w.NW)(be.DW,t),(0,w.NW)(we.xG,t),this._isDiffUpToDate.set(!1,void 0);let h=[];i.add(e.original.onDidChangeContent((e=>{const t=Ce.Q.fromModelContentChanges(e.changes);h=(0,ye.o)(h,t)})));let c=[];i.add(e.modified.onDidChangeContent((e=>{const t=Ce.Q.fromModelContentChanges(e.changes);c=(0,ye.o)(c,t)})));let u=await d.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var g,p,m;this._cancellationTokenSource.token.isCancellationRequested||(g=u,p=e.original,m=e.modified,u={changes:g.changes.map((e=>new N.gB(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let n=e.originalRange,s=e.modifiedRange;return(1!==n.endColumn||1!==s.endColumn)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&s.endColumn===i.getLineMaxColumn(s.endLineNumber)&&n.endLineNumber<t.getLineCount()&&s.endLineNumber<i.getLineCount()&&(n=n.setEndPosition(n.endLineNumber+1,1),s=s.setEndPosition(s.endLineNumber+1,1)),new N.iy(n,s)}(e,p,m))):void 0))),moves:g.moves,identical:g.identical,quitEarly:g.quitEarly},u=null!==(r=Te(u,h,e.original,e.modified))&&void 0!==r?r:u,u=null!==(a=Ie(u,c,e.original,e.modified))&&void 0!==a?a:u,(0,l.PS)((e=>{o(u,e),this._lastDiff=u;const t=De.fromDiffResult(u);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)})))})))}ensureModifiedLineIsVisible(e,t,i){var n,s;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const o=(null===(s=this._unchangedRegions.get())||void 0===s?void 0:s.regions)||[];for(const r of o)if(r.getHiddenModifiedRange(void 0).contains(e))return void r.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){var n,s;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const o=(null===(s=this._unchangedRegions.get())||void 0===s?void 0:s.regions)||[];for(const r of o)if(r.getHiddenOriginalRange(void 0).contains(e))return void r.showOriginalLine(e,t,i)}async waitForDiff(){await(0,l.F_)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:null===e||void 0===e?void 0:e.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){var t;const i=null===(t=e.collapsedRegions)||void 0===t?void 0:t.map((e=>x.z.deserialize(e.range))),n=this._unchangedRegions.get();n&&i&&(0,l.PS)((e=>{for(const t of n.regions)for(const n of i)if(t.modifiedUnchangedRange.intersect(n)){t.setHiddenModifiedRange(n,e);break}}))}};ke=xe([Le(2,fe)],ke);class De{static fromDiffResult(e){return new De(e.changes.map((e=>new Ne(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n}}class Ne{constructor(e){this.lineRangeMapping=e}}class Ee{static fromDiffs(e,t,i,n,s){const o=N.gB.inverse(e,t,i),r=[];for(const a of o){let e=a.original.startLineNumber,o=a.modified.startLineNumber,l=a.original.length;const d=1===e&&1===o,h=e+l===t+1&&o+l===i+1;(d||h)&&l>=s+n?(d&&!h&&(l-=s),h&&!d&&(e+=s,o+=s,l-=s),r.push(new Ee(e,o,l,0,0))):l>=2*s+n&&(e+=s,o+=s,l-=2*s,r.push(new Ee(e,o,l,0,0)))}return r}get originalUnchangedRange(){return x.z.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return x.z.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,n,s){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,l.uh)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,l.uh)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,l.nK)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,l.uh)(this,void 0);const o=Math.max(Math.min(n,this.lineCount),0),r=Math.max(Math.min(s,this.lineCount-n),0);(0,Se.wN)(n===o),(0,Se.wN)(s===r),this._visibleLineCountTop.set(o,void 0),this._visibleLineCountBottom.set(r,void 0)}setVisibleRanges(e,t){const i=[],n=new x.i(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let s=this.originalLineNumber,o=this.modifiedLineNumber;const r=this.modifiedLineNumber+this.lineCount;if(0===n.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of n.ranges){const l=e===n.ranges.length-1;e++;const d=(l?r:a.endLineNumberExclusive)-o,h=new Ee(s,o,d,0,0);h.setHiddenModifiedRange(a,t),i.push(h),s=h.originalUnchangedRange.endLineNumberExclusive,o=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return x.z.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return x.z.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),s=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+n,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+s,i)}showOriginalLine(e,t,i){const n=e-this.originalLineNumber,s=this.originalLineNumber+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+s-n,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+n-s,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function Te(e,t,i,n){}function Ie(e,t,i,n){}var Me=i(90388);class Ae extends a.JT{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,i,s,o,r,a,l,d){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=s,this._editor=o,this._viewLineCounts=r,this._originalTextModel=a,this._contextMenuService=l,this._clipboardService=d,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=C.k.asClassName(b.l.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let c=0;const u=i.getOption(127)&&!Me.gn,g=(e,t)=>{var n;this._contextMenuService.showContextMenu({domForShadowRoot:u&&null!==(n=i.getDomNode())&&void 0!==n?n:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=s.modified.isEmpty;e.push(new _.aU("diff.clipboard.copyDeletedContent",t?s.original.length>1?(0,A.NC)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,A.NC)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):s.original.length>1?(0,A.NC)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,A.NC)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(s.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),s.original.length>1&&e.push(new _.aU("diff.clipboard.copyDeletedLineContent",t?(0,A.NC)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",s.original.startLineNumber+c):(0,A.NC)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",s.original.startLineNumber+c),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(s.original.startLineNumber+c);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(91)||e.push(new _.aU("diff.inline.revertChange",(0,A.NC)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,n.mu)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,n.i)(this._diffActions),s=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+s)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:s}=(0,n.i)(e),o=t-s,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],r<e)return t}return r}}var Re=i(130),Oe=i(21770);const Pe=(0,p.Z)("diffEditorWidget",{createHTML:e=>e});function Fe(e,t,i,n){(0,y.N)(n,t.fontInfo);const s=i.length>0,o=new Re.HT(1e4);let r=0,a=0;const l=[];for(let c=0;c<e.lineTokens.length;c++){const n=c+1,d=e.lineTokens[c],h=e.lineBreakData[c],u=Oe.Kp.filter(i,n,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const n of h.breakOffsets){const l=d.sliceAndInflate(i,n,0);r=Math.max(r,We(a,l,Oe.Kp.extractWrapped(u,i,n),s,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++,i=n}l.push(h.breakOffsets.length)}else l.push(1),r=Math.max(r,We(a,d,u,s,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++}r+=t.scrollBeyondLastColumn;const d=o.build(),h=Pe?Pe.createHTML(d):d;n.innerHTML=h;return{heightInLines:a,minWidthInPx:r*t.typicalHalfwidthCharacterWidth,viewLineCounts:l}}class Be{constructor(e,t,i,n){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=n}}class Ve{static fromEditor(e){var t;const i=e.getOptions(),n=i.get(50),s=i.get(145);return new Ve((null===(t=e.getModel())||void 0===t?void 0:t.getOptions().tabSize)||0,n,i.get(33),n.typicalHalfwidthCharacterWidth,i.get(104),i.get(67),s.decorationsWidth,i.get(117),i.get(99),i.get(94),i.get(51))}constructor(e,t,i,n,s,o,r,a,l,d,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=n,this.scrollBeyondLastColumn=s,this.lineHeight=o,this.lineDecorationsWidth=r,this.stopRenderingLineAfter=a,this.renderWhitespace=l,this.renderControlCharacters=d,this.fontLigatures=h}}function We(e,t,i,n,s,o,r,a){a.appendString('<div class="view-line'),n||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*r.lineHeight)),a.appendString('px;width:1000000px;">');const l=t.getLineContent(),d=M.wA.isBasicASCII(l,s),h=M.wA.containsRTL(l,d,o),c=(0,I.d1)(new I.IJ(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==S.n0.OFF,null),a);return a.appendString("</div>"),c.characterMapping.getHorizontalOffset(c.characterMapping.length)}var He=i(63826),ze=i(79086),je=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ue=function(e,t){return function(i,n){t(i,n,e)}};let Ke=class extends a.JT{constructor(e,t,i,s,o,r,d,h,c,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=s,this._diffEditorWidget=o,this._canIgnoreViewZoneUpdateEvent=r,this._origViewZonesToIgnore=d,this._modViewZonesToIgnore=h,this._clipboardService=c,this._contextMenuService=u,this._originalTopPadding=(0,l.uh)(this,0),this._originalScrollOffset=(0,l.uh)(this,0),this._originalScrollOffsetAnimated=(0,w.Vm)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,l.uh)(this,0),this._modifiedScrollOffset=(0,l.uh)(this,0),this._modifiedScrollOffsetAnimated=(0,w.Vm)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,l.uh)("invalidateAlignmentsState",0),p=this._register(new ae.pY((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,l.rD)(e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>null===e||void 0===e?void 0:e.read(t))),f=(0,l.nK)((e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!t||!i)return null;g.read(e);const n=this._options.renderSideBySide.read(e);return qe(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,n)})),_=(0,l.nK)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);if(!i)return null;g.read(e);const n=i.changes.map((e=>new Ne(e)));return qe(this._editors.original,this._editors.modified,n,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const S=this._register(new a.SL);this.viewZones=(0,l.Be)(this,((e,t)=>{var i,s,r,a,l,d,h,c;S.clear();const u=f.read(e)||[],g=[],p=[],w=this._modifiedTopPadding.read(e);w>0&&p.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:w,showInHiddenAreas:!0,suppressMouseDown:!0});const x=this._originalTopPadding.read(e);x>0&&g.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:x,showInHiddenAreas:!0,suppressMouseDown:!0});const L=this._options.renderSideBySide.read(e),k=L||null===(i=this._editors.modified._getViewModel())||void 0===i?void 0:i.createLineBreaksComputer();if(k){const O=this._editors.original.getModel();for(const P of u)if(P.diff)for(let F=P.originalRange.startLineNumber;F<P.originalRange.endLineNumberExclusive;F++){if(F>O.getLineCount())return{orig:g,mod:p};null===k||void 0===k||k.addRequest(O.getLineContent(F),null,null)}}const D=null!==(s=null===k||void 0===k?void 0:k.finalize())&&void 0!==s?s:[];let N=0;const E=this._editors.modified.getOption(67),T=null===(r=this._diffModel.read(e))||void 0===r?void 0:r.movedTextToCompare.read(e),I=null!==(l=null===(a=this._editors.original.getModel())||void 0===a?void 0:a.mightContainNonBasicASCII())&&void 0!==l&&l,A=null!==(h=null===(d=this._editors.original.getModel())||void 0===d?void 0:d.mightContainRTL())&&void 0!==h&&h,R=Ve.fromEditor(this._editors.modified);for(const B of u)if(B.diff&&!L){if(!B.originalRange.isEmpty){m.read(e);const W=document.createElement("div");W.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const H=this._editors.original.getModel();if(B.originalRange.endLineNumberExclusive-1>H.getLineCount())return{orig:g,mod:p};const z=new Be(B.originalRange.mapToLineArray((e=>H.tokenization.getLineTokens(e))),B.originalRange.mapToLineArray((e=>D[N++])),I,A),j=[];for(const $ of B.diff.innerChanges||[])j.push(new M.$t($.originalRange.delta(-(B.diff.original.startLineNumber-1)),ie.rq.className,0));const U=Fe(z,R,j,W),K=document.createElement("div");if(K.className="inline-deleted-margin-view-zone",(0,y.N)(K,R.fontInfo),this._options.renderIndicators.read(e))for(let G=0;G<U.heightInLines;G++){const Y=document.createElement("div");Y.className=`delete-sign ${C.k.asClassName(ie.fO)}`,Y.setAttribute("style",`position:absolute;top:${G*E}px;width:${R.lineDecorationsWidth}px;height:${E}px;right:0;`),K.appendChild(Y)}let q;S.add(new Ae((()=>(0,le.cW)(q)),K,this._editors.modified,B.diff,this._diffEditorWidget,U.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let Z=0;Z<U.viewLineCounts.length;Z++){const Q=U.viewLineCounts[Z];Q>1&&g.push({afterLineNumber:B.originalRange.startLineNumber+Z,domNode:v(),heightInPx:(Q-1)*E,showInHiddenAreas:!0,suppressMouseDown:!0})}p.push({afterLineNumber:B.modifiedRange.startLineNumber-1,domNode:W,heightInPx:U.heightInLines*E,minWidthInPx:U.minWidthInPx,marginDomNode:K,setZoneId(e){q=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const V=document.createElement("div");V.className="gutter-delete",g.push({afterLineNumber:B.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:B.modifiedHeightInPx,marginDomNode:V,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const X=B.modifiedHeightInPx-B.originalHeightInPx;if(X>0){if(null===T||void 0===T?void 0:T.lineRangeMapping.original.delta(-1).deltaLength(2).contains(B.originalRange.endLineNumberExclusive-1))continue;g.push({afterLineNumber:B.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:X,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(null===T||void 0===T?void 0:T.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(B.modifiedRange.endLineNumberExclusive-1))continue;function J(){const e=document.createElement("div");return e.className="arrow-revert-change "+C.k.asClassName(b.l.arrowRight),t.add((0,n.nm)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,n.nm)(e,"click",(e=>{e.stopPropagation(),o.revert(B.diff)}))),(0,n.$)("div",{},e)}let ee;B.diff&&B.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(ee=J()),p.push({afterLineNumber:B.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-X,marginDomNode:ee,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const te of null!==(c=_.read(e))&&void 0!==c?c:[]){if(!(null===T||void 0===T?void 0:T.lineRangeMapping.original.intersect(te.originalRange))||!(null===T||void 0===T?void 0:T.lineRangeMapping.modified.intersect(te.modifiedRange)))continue;const ne=te.modifiedHeightInPx-te.originalHeightInPx;ne>0?g.push({afterLineNumber:te.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:ne,showInHiddenAreas:!0,suppressMouseDown:!0}):p.push({afterLineNumber:te.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-ne,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:g,mod:p}}));let x=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!x&&(x=!0,this._editors.modified.setScrollLeft(e.scrollLeft),x=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!x&&(x=!0,this._editors.original.setScrollLeft(e.scrollLeft),x=!1)}))),this._originalScrollTop=(0,l.rD)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.rD)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,l.EH)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,l.EH)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,l.EH)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);let n=0;if(i){const e=this._editors.original.getTopForLineNumber(i.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();n=this._editors.modified.getTopForLineNumber(i.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}n>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(n,void 0)):n<0?(this._modifiedTopPadding.set(-n,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-n,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+n,void 0,!0)})))}};function qe(e,t,i,n,s,o){const r=new v.H9($e(e,n)),a=new v.H9($e(t,s)),l=e.getOption(67),d=t.getOption(67),h=[];let c=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;const s=i?i.lineNumber-c:Number.MAX_VALUE,o=n?n.lineNumber-u:Number.MAX_VALUE;s<o?(r.dequeue(),n={lineNumber:i.lineNumber-c+u,heightInPx:0}):s>o?(a.dequeue(),i={lineNumber:n.lineNumber-u+c,heightInPx:0}):(r.dequeue(),a.dequeue()),h.push({originalRange:x.z.ofLength(i.lineNumber,1),modifiedRange:x.z.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:d+n.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,b=m.original.startLineNumber;function C(e,t){var i,n,s,o;if(e<b||t<_)return;if(f)f=!1;else if(e===b||t===_)return;const c=new x.z(b,e),u=new x.z(_,t);if(c.isEmpty&&u.isEmpty)return;const g=null!==(n=null===(i=r.takeWhile((t=>t.lineNumber<e)))||void 0===i?void 0:i.reduce(((e,t)=>e+t.heightInPx),0))&&void 0!==n?n:0,m=null!==(o=null===(s=a.takeWhile((e=>e.lineNumber<t)))||void 0===s?void 0:s.reduce(((e,t)=>e+t.heightInPx),0))&&void 0!==o?o:0;h.push({originalRange:c,modifiedRange:u,originalHeightInPx:c.length*l+g,modifiedHeightInPx:u.length*d+m,diff:p.lineRangeMapping}),b=e,_=t}if(o)for(const y of m.innerChanges||[]){y.originalRange.startColumn>1&&y.modifiedRange.startColumn>1&&C(y.originalRange.startLineNumber,y.modifiedRange.startLineNumber);const w=e.getModel(),S=y.originalRange.endLineNumber<=w.getLineCount()?w.getLineMaxColumn(y.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;y.originalRange.endColumn<S&&C(y.originalRange.endLineNumber,y.modifiedRange.endLineNumber)}C(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive),c=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function $e(e,t){const i=[],n=[],s=-1!==e.getOption(146).wrappingColumn,o=e._getViewModel().coordinatesConverter,r=e.getOption(67);if(s)for(let a=1;a<=e.getModel().getLineCount();a++){const e=o.getModelLineViewLineCount(a);e>1&&n.push({lineNumber:a,heightInPx:r*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:o.convertViewPositionToModelPosition(new k.L(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,w.Ap)(i,n,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}Ke=je([Ue(8,He.p),Ue(9,ze.i)],Ke);var Ge,Ye=i(20289),Ze=i(75816),Qe=i(32657),Xe=i(86950),Je=i(6009),et=i(46673),tt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},it=function(e,t){return function(i,n){t(i,n,e)}};let nt=Ge=class extends a.JT{constructor(e,t,i,s,o,r,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=s,this._rootHeight=o,this._modifiedEditorLayoutInfo=r,this._themeService=a,this.width=Ge.ENTIRE_DIFF_OVERVIEW_WIDTH;const d=(0,l.rD)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,l.nK)((e=>{const t=d.read(e);return{insertColor:t.getColor(Je.P6Y)||(t.getColor(Je.ypS)||Je.CzK).transparent(2),removeColor:t.getColor(Je.F9q)||(t.getColor(Je.P4M)||Je.keg).transparent(2)}})),c=(0,Ze.X)(document.createElement("div"));c.setClassName("diffViewport"),c.setPosition("absolute");const u=(0,n.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:Ge.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,w.xx)(u,c.domNode)),this._register((0,n.mu)(u,n.tw.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,n.nm)(u,n.tw.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,w.xx)(this._rootElement,u)),this._register((0,l.gp)(((e,t)=>{const i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add((0,w.xx)(u,n.getDomNode())));const s=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(s&&(t.add(s),t.add((0,w.xx)(u,s.getDomNode()))),!n||!s)return;const o=(0,l.aq)("viewZoneChanged",this._editors.original.onDidChangeViewZones),r=(0,l.aq)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,l.aq)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),d=(0,l.aq)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,l.EH)((e=>{var t;o.read(e),r.read(e),a.read(e),d.read(e);const l=h.read(e),c=null===(t=null===i||void 0===i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function u(e,t,i){const n=i._getViewModel();return n?e.filter((e=>e.length>0)).map((e=>{const i=n.coordinatesConverter.convertModelPositionToViewPosition(new k.L(e.startLineNumber,1)),s=n.coordinatesConverter.convertModelPositionToViewPosition(new k.L(e.endLineNumberExclusive,1)),o=s.lineNumber-i.lineNumber;return new Xe.EY(i.lineNumber,s.lineNumber,o,t.toString())})):[]}const g=u((c||[]).map((e=>e.lineRangeMapping.original)),l.removeColor,this._editors.original),p=u((c||[]).map((e=>e.lineRangeMapping.modified)),l.insertColor,this._editors.modified);null===n||void 0===n||n.setZones(g),null===s||void 0===s||s.setZones(p)}))),t.add((0,l.EH)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),o=this._modifiedEditorLayoutInfo.read(e);if(o){const i=Ge.ENTIRE_DIFF_OVERVIEW_WIDTH-2*Ge.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+Ge.ONE_OVERVIEW_WIDTH,width:Ge.ONE_OVERVIEW_WIDTH}),s.setLayout({top:0,height:t,right:0,width:Ge.ONE_OVERVIEW_WIDTH});const r=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(103),d=new Qe.M(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,o.height,a,r);c.setTop(d.getSliderPosition()),c.setHeight(d.getSliderSize())}else c.setTop(0),c.setHeight(0);u.style.height=t+"px",u.style.left=i-Ge.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",c.setWidth(Ge.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};nt.ONE_OVERVIEW_WIDTH=15,nt.ENTIRE_DIFF_OVERVIEW_WIDTH=2*Ge.ONE_OVERVIEW_WIDTH,nt=Ge=tt([it(6,et.XE)],nt);var st=i(27691),ot=i(24032);const rt=[];class at extends a.JT{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=(0,l.nK)(this,(e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!i)return rt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return rt;const s=new x.i(n.map((e=>x.z.fromRangeInclusive(e)))),o=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>D.e.areIntersecting(e.modifiedRange,t)))))})));return 0===o.length||o.every((e=>0===e.rangeMappings.length))?rt:o})),this._register((0,l.gp)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),n=null===i||void 0===i?void 0:i.diff.read(e);if(!i||!n)return;if(i.movedTextToCompare.read(e))return;const s=[],o=this._selectedDiffs.read(e),r=new Set(o.map((e=>e.mapping)));if(o.length>0){const i=this._editors.modifiedSelections.read(e),n=t.add(new lt(i[i.length-1].positionLineNumber,this._widget,o.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(n),s.push(n)}for(const a of n.mappings)if(!r.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new lt(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),s.push(e)}t.add((0,a.OF)((()=>{for(const e of s)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class lt extends a.JT{getId(){return this._id}constructor(e,t,i,s){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=s,this._id="revertButton"+lt.counter++,this._domNode=(0,n.h)("div.revertButton",{title:this._revertSelection?(0,A.NC)("revertSelectedChanges","Revert Selected Changes"):(0,A.NC)("revertChange","Revert Change")},[(0,st.h)(b.l.arrowRight)]).root,this._register((0,n.nm)(this._domNode,n.tw.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,n.nm)(this._domNode,n.tw.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,n.nm)(this._domNode,n.tw.CLICK,(e=>{this._diffs instanceof N.f0?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ot.U.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}lt.counter=0;var dt=i(36362),ht=i(35770),ct=i(47116),ut=i(45234),gt=i(97757),pt=i(25371),mt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ft=function(e,t){return function(i,n){t(i,n,e)}};let _t=class extends a.JT{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,n,s,o,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=s,this._instantiationService=o,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new r.Q5),this.modifiedScrollTop=(0,l.rD)(this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,l.rD)(this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedModel=(0,l.rD)(this.modified.onDidChangeModel,(()=>this.modified.getModel())),this.modifiedSelections=(0,l.rD)(this.modified.onDidChangeCursorSelection,(()=>{var e;return null!==(e=this.modified.getSelections())&&void 0!==e?e:[]})),this.modifiedCursor=(0,l.bk)({owner:this,equalityComparer:k.L.equals},(e=>{var t,i;return null!==(i=null===(t=this.modifiedSelections.read(e)[0])||void 0===t?void 0:t.getPosition())&&void 0!==i?i:new k.L(1,1)})),this.originalCursor=(0,l.rD)(this.original.onDidChangeCursorPosition,(()=>{var e;return null!==(e=this.original.getPosition())&&void 0!==e?e:new k.L(1,1)})),this._argCodeEditorWidgetOptions=null,this._register((0,l.nJ)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){const s=this._createInnerEditor(e,t,i,n);return this._register(s.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+nt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),s}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=S.BH.revealHorizontalRightPadding.defaultValue+nt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;e||(e="");const i=(0,A.NC)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))||void 0===t?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};_t=mt([ft(5,O.TG),ft(6,pt.d)],_t);class vt extends a.JT{constructor(){super(...arguments),this._id=++vt.idCounter,this._onDidDispose=this._register(new r.Q5),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._targetEditor.setPosition(e,t)}revealLine(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLine(e,t)}revealLineInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealLineNearTop(e,t)}revealPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._targetEditor.setSelection(e,t)}setSelections(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";this._targetEditor.setSelections(e,t)}revealLines(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._targetEditor.revealRange(e,t,i,n)}revealRangeInCenter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}vt.idCounter=0;var bt=i(50328),Ct=i(71940),yt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},wt=function(e,t){return function(i,n){t(i,n,e)}};let St=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,l.uh)(this,0),this._screenReaderMode=(0,l.rD)(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,l.nK)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,l.nK)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,l.nK)(this,(e=>this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e)))),this.readOnly=(0,l.nK)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,l.nK)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,l.nK)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,l.nK)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,l.nK)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,l.nK)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,l.nK)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,l.nK)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,l.nK)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,l.nK)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,l.nK)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,l.nK)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,l.nK)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,l.nK)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,l.nK)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,l.nK)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,l.nK)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.hideUnchangedRegions=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,l.nK)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount));const i={...e,...xt(e,bt.k)};this._options=(0,l.uh)(this,i)}updateOptions(e){const t=xt(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};function xt(e,t){var i,n,s,o,r,a,l,d;return{enableSplitViewResizing:(0,S.O7)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,S.L_)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,S.O7)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,S.O7)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,S.Zc)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,S.Zc)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,S.O7)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,S.O7)(e.renderIndicators,t.renderIndicators),originalEditable:(0,S.O7)(e.originalEditable,t.originalEditable),diffCodeLens:(0,S.O7)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,S.O7)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,S.NY)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,S.NY)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,S.O7)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,S.O7)(null===(i=e.experimental)||void 0===i?void 0:i.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,S.O7)(null===(n=e.experimental)||void 0===n?void 0:n.showEmptyDecorations,t.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:(0,S.O7)(null!==(o=null===(s=e.hideUnchangedRegions)||void 0===s?void 0:s.enabled)&&void 0!==o?o:null===(r=e.experimental)||void 0===r?void 0:r.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,S.Zc)(null===(a=e.hideUnchangedRegions)||void 0===a?void 0:a.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,S.Zc)(null===(l=e.hideUnchangedRegions)||void 0===l?void 0:l.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,S.Zc)(null===(d=e.hideUnchangedRegions)||void 0===d?void 0:d.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,S.O7)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,S.O7)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,S.Zc)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,S.O7)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,S.O7)(e.renderGutterMenu,t.renderGutterMenu)}}St=yt([wt(1,Ct.F)],St);class Lt extends a.JT{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,l.rD)(this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,l.rD)(this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,l.aq)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,l.aq)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,l.GN)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const s=this._domNode.appendChild((0,n.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),o=new ResizeObserver((()=>{(0,l.PS)((e=>{this.domNodeSizeChanged.trigger(e)}))}));o.observe(this._domNode),this._register((0,a.OF)((()=>o.disconnect()))),this._register((0,l.EH)((e=>{s.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,l.EH)((e=>this.render(e))))}dispose(){super.dispose(),(0,n.mc)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),s=L.q.ofStartAndLength(0,this._domNode.clientHeight);if(!s.isEmpty)for(const o of i){const i=new x.z(o.startLineNumber,o.endLineNumber+1),r=this.itemProvider.getIntersectingGutterItems(i,e);(0,l.PS)((e=>{for(const o of r){if(!o.range.intersect(i))continue;n.delete(o.id);let r=this.views.get(o.id);if(r)r.item.set(o,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,l.uh)("item",o),i=this.itemProvider.createView(t,e);r=new kt(t,i,e),this.views.set(o.id,r)}const a=o.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(o.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(o.range.startLineNumber-1,!1)-t,d=(o.range.isEmpty?a:this._editor.getBottomForLineNumber(o.range.endLineNumberExclusive-1,!0)-t)-a;r.domNode.style.top=`${a}px`,r.domNode.style.height=`${d}px`,r.gutterItemView.layout(L.q.ofStartAndLength(a,d),s)}}))}for(const o of n){const e=this.views.get(o);e.gutterItemView.dispose(),this._domNode.removeChild(e.domNode),this.views.delete(o)}}}class kt{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var Dt=i(70006),Nt=i(44053),Et=i(78757);class Tt extends Nt.MS{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Et.A(e-1,t)}}var It=i(31936),Mt=i(6178),At=i(82854),Rt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ot=function(e,t){return function(i,n){t(i,n,e)}};const Pt=[];let Ft=class extends a.JT{constructor(e,t,i,s,o,r){super(),this._diffModel=t,this._editors=i,this._instantiationService=s,this._contextKeyService=o,this._menuService=r,this._menu=this._register(this._menuService.createMenu(Mt.eH.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,l.rD)(this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this.width=(0,l.nK)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,n.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,l.nK)(this,(e=>{var t;const i=this._diffModel.read(e);if(!i)return;const n=null===(t=i.diff.read(e))||void 0===t?void 0:t.mappings,s=this._editors.modifiedCursor.read(e);return s?null===n||void 0===n?void 0:n.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,l.nK)(this,(e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!i)return Pt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return Pt;const s=new x.i(n.map((e=>x.z.fromRangeInclusive(e)))),o=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>D.e.areIntersecting(e.modifiedRange,t)))))})));return 0===o.length||o.every((e=>0===e.rangeMappings.length))?Pt:o})),this._register((0,w.RL)(e,this.elements.root)),this._register((0,n.nm)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,w.bg)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),this._register(new Lt(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const n=i.diff.read(t);if(!n)return[];const s=this._selectedDiffs.read(t);if(s.length>0){const e=N.gB.fromRangeMappings(s.flatMap((e=>e.rangeMappings)));return[new Bt(e,!0,Mt.eH.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const o=this._currentDiff.read(t);return n.mappings.map((e=>new Bt(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===(null===o||void 0===o?void 0:o.lineRangeMapping),Mt.eH.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(Vt,e,t,this)})),this._register((0,n.nm)(this.elements.gutter,n.tw.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){var t;const i=null!==(t=e.innerChanges)&&void 0!==t?t:[];return new Nt.PY(i.map((e=>new Nt.At(e.originalRange,this._editors.modifiedModel.get().getValueInRange(e.modifiedRange))))).apply(new Tt(this._editors.original.getModel()))}layout(e){this.elements.gutter.style.left=e+"px"}};Ft=Rt([Ot(3,O.TG),Ot(4,ct.i6),Ot(5,Mt.co)],Ft);class Bt{constructor(e,t,i,n,s,o){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=s,this.modifiedUri=o}get id(){return this.mapping.modified.toString()}get range(){var e;return null!==(e=this.rangeOverride)&&void 0!==e?e:this.mapping.modified}}let Vt=class extends a.JT{constructor(e,t,i,s){super(),this._item=e,this._elements=(0,n.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,n.h)("div.background@background",{},[]),(0,n.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,l.uh)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const o=this._register(s.createInstance(At.mQ,"element",!0,{position:{hoverPosition:1}}));this._register((0,w.xx)(t,this._elements.root)),this._register((0,l.EH)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,l.gp)(((e,t)=>{this._elements.buttons.replaceChildren();const n=t.add(s.createInstance(It.r,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:o,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new Dt.D((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(n.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight,this._elements.root.style.top=e.start+"px",this._elements.root.style.height=e.length+"px";const n=e.length/2-i/2,s=i;let o=e.start+n;const r=L.q.tryCreate(s,t.endExclusive-s-i),a=L.q.tryCreate(e.start+s,e.endExclusive-i-s);a&&r&&a.start<a.endExclusive&&(o=r.clip(o),o=a.clip(o)),this._elements.buttons.style.top=o-e.start+"px"}};Vt=Rt([Ot(3,O.TG)],Vt);var Wt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ht=function(e,t){return function(i,n){t(i,n,e)}};let zt=class extends vt{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,s,o,h,c,g){var p;super(),this._domElement=e,this._parentContextKeyService=s,this._parentInstantiationService=o,this._accessibilitySignalService=c,this._editorProgressService=g,this.elements=(0,n.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,n.h)("div.noModificationsOverlay@overlay",{style:{position:"absolute",height:"100%",visibility:"hidden"}},[(0,n.$)("span",{},"No Changes")]),(0,n.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=(0,l.uh)(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=r.ju.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._parentInstantiationService.createChild(new ut.y([ct.i6,this._contextKeyService])),this._boundarySashes=(0,l.uh)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,l.uh)(this,!1),this._accessibleDiffViewerVisible=(0,l.nK)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,l.uh)(this,void 0),this._layoutInfo=(0,l.nK)(this,(e=>{var t,i,n,s,o;const r=this._rootSizeObserver.width.read(e),a=this._rootSizeObserver.height.read(e),l=this._sash.read(e),d=this._gutter.read(e),h=null!==(t=null===d||void 0===d?void 0:d.width.read(e))&&void 0!==t?t:0,c=null!==(n=null===(i=this._overviewRulerPart.read(e))||void 0===i?void 0:i.width)&&void 0!==n?n:0;let u,g,p,m,f;if(!!l){const t=l.sashLeft.read(e);u=0,g=t-h-(null!==(o=null===(s=this._movedBlocksLinesPart.read(e))||void 0===s?void 0:s.width.read(e))&&void 0!==o?o:0),f=t-h,p=t,m=r-p-c}else f=0,u=h,g=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),p=h+g,m=r-p-c;return this.elements.original.style.left=u+"px",this.elements.original.style.width=g+"px",this._editors.original.layout({width:g,height:a},!0),null===d||void 0===d||d.layout(f),this.elements.modified.style.left=p+"px",this.elements.modified.style.width=m+"px",this._editors.modified.layout({width:m,height:a},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>null===e||void 0===e?void 0:e.diff.read(t))),this.onDidUpdateDiff=r.ju.fromObservableLight(this._diffValue),h.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.OF)((()=>this._domElement.removeChild(this.elements.root)))),this._rootSizeObserver=this._register(new w.DU(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(null!==(p=t.automaticLayout)&&void 0!==p&&p),this._options=this._instantiationService.createInstance(St,t),this._register((0,l.EH)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(ht.u.isEmbeddedDiffEditor.key,!1),this._register((0,w.GU)(ht.u.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,w.GU)(ht.u.comparingMovedCode,this._contextKeyService,(e=>{var t;return!!(null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e))}))),this._register((0,w.GU)(ht.u.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,w.GU)(ht.u.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,w.GU)(ht.u.hasChanges,this._contextKeyService,(e=>{var t,i,n;return(null!==(n=null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)&&void 0!==n?n:0)>0}))),this._editors=this._register(this._instantiationService.createInstance(_t,this.elements.original,this.elements.modified,this._options,i,((e,t,i,n)=>this._createInnerEditor(e,t,i,n)))),this._register((0,w.GU)(ht.u.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,w.GU)(ht.u.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,w.GU)(ht.u.diffEditorOriginalUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.original.uri.toString())&&void 0!==i?i:""}))),this._register((0,w.GU)(ht.u.diffEditorModifiedUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.modified.uri.toString())&&void 0!==i?i:""}))),this._overviewRulerPart=(0,d.kA)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,w.NW)(nt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store),this._sash=(0,d.kA)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new oe(this._options,this.elements.root,{height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>{var i,n;return e-(null!==(n=null===(i=this._overviewRulerPart.read(t))||void 0===i?void 0:i.width)&&void 0!==n?n:0)}))},this._boundarySashes):void 0})).recomputeInitiallyAndOnChange(this._store);const m=(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(Ye.O,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(ne,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const f=new Set,_=new Set;let v=!1;const b=(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(Ke,e),(0,n.Jj)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>v||m.get().isUpdatingHiddenAreas),f,_))).recomputeInitiallyAndOnChange(this._store),C=(0,l.nK)(this,(e=>{const t=b.read(e).viewZones.read(e).orig,i=m.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,l.nK)(this,(e=>{const t=b.read(e).viewZones.read(e).mod,i=m.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let S;this._register((0,w.Sv)(this._editors.original,C,(e=>{v=e}),f)),this._register((0,w.Sv)(this._editors.modified,y,(e=>{v=e,v?S=u.Z.capture(this._editors.modified):(null===S||void 0===S||S.restore(this._editors.modified),S=void 0)}),_)),this._accessibleDiffViewer=(0,d.kA)(this,(e=>this._instantiationService.createInstance((0,w.NW)(z,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>{var i;return null===(i=null===e||void 0===e?void 0:e.diff.read(t))||void 0===i?void 0:i.mappings.map((e=>e.lineRangeMapping))})),new X(this._editors)))).recomputeInitiallyAndOnChange(this._store);const x=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,w.bg)(this.elements.modified,{visibility:x})),this._register((0,w.bg)(this.elements.original,{visibility:x})),this._createDiffEditorContributions(),h.addDiffEditor(this),this._gutter=(0,d.kA)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,w.NW)(Ft,e),this.elements.root,this._diffModel,this._editors):void 0)),this._register((0,l.jx)(this._layoutInfo)),(0,d.kA)(this,(e=>new((0,w.NW)(J,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register((0,w.bg)(this.elements.overlay,{width:this._layoutInfo.map(((e,t)=>e.originalEditor.width+(this._options.renderSideBySide.read(t)?0:e.modifiedEditor.width))),visibility:(0,l.nK)((e=>{var t,i;return this._options.hideUnchangedRegions.read(e)&&0===(null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)?"visible":"hidden"}))})),this._register(r.ju.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(r.ju.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const L=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,l.gp)(((e,t)=>{if(!0===L.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.OF)((()=>e.done())))}}))),this._register((0,a.OF)((()=>{var e;this._shouldDisposeDiffModel&&(null===(e=this._diffModel.get())||void 0===e||e.dispose())}))),this._register((0,l.gp)(((e,t)=>{t.add(new((0,w.NW)(at,e))(this._editors,this._diffModel,this._options,this))})))}_createInnerEditor(e,t,i,n){return e.createInstance(g.Gm,t,i,n)}_createDiffEditorContributions(){const e=h.Uc.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,o.dL)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return dt.g.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:null===(e=this._diffModel.get())||void 0===e?void 0:e.serializeState()}}restoreViewState(e){var t;if(e&&e.original&&e.modified){const i=e;this._editors.original.restoreViewState(i.original),this._editors.modified.restoreViewState(i.modified),i.modelState&&(null===(t=this._diffModel.get())||void 0===t||t.restoreSerializedState(i.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ke,e,this._options)}getModel(){var e,t;return null!==(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.model)&&void 0!==t?t:null}setModel(e,t){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const i=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==(null===i||void 0===i?void 0:i.model)&&(0,l.c8)(t,(e=>{var t;l.rD.batchEventsGlobally(e,(()=>{this._editors.original.setModel(i?i.model.model.original:null),this._editors.modified.setModel(i?i.model.model.modified:null)}));const n=this._diffModel.get(),s=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=null!==(t=null===i||void 0===i?void 0:i.shouldDispose)&&void 0!==t&&t,this._diffModel.set(null===i||void 0===i?void 0:i.model,e),s&&(null===n||void 0===n||n.dispose())}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get();return t?t.mappings.map((e=>{const t=e.lineRangeMapping;let i,n,s,o,r=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,n=0,r=void 0):(i=t.original.startLineNumber,n=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(s=t.modified.startLineNumber-1,o=0,r=void 0):(s=t.modified.startLineNumber,o=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:n,modifiedStartLineNumber:s,modifiedEndLineNumber:o,charChanges:null===r||void 0===r?void 0:r.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new k.L(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var t,i,n,o;const r=null===(i=null===(t=this._diffModel.get())||void 0===t?void 0:t.diff.get())||void 0===i?void 0:i.mappings;if(!r||0===r.length)return;const a=this._editors.modified.getPosition().lineNumber;let l;l="next"===e?null!==(n=r.find((e=>e.lineRangeMapping.modified.startLineNumber>a)))&&void 0!==n?n:r[0]:null!==(o=(0,s.dF)(r,(e=>e.lineRangeMapping.modified.startLineNumber<a)))&&void 0!==o?o:r[r.length-1],this._goTo(l),l.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(R.iP.diffLineDeleted,{source:"diffEditor.goToDiff"}):l.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(R.iP.diffLineInserted,{source:"diffEditor.goToDiff"}):l&&this._accessibilitySignalService.playSignal(R.iP.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{var t;const i=null===(t=e.diff.get())||void 0===t?void 0:t.mappings;i&&0!==i.length&&this._goTo(i[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,t;const i=this._editors.modified.hasWidgetFocus(),n=i?this._editors.modified:this._editors.original,s=i?this._editors.original:this._editors.modified;let o;const r=n.getSelection();if(r){const n=null===(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get())||void 0===t?void 0:t.mappings.map((e=>i?e.lineRangeMapping.flip():e.lineRangeMapping));if(n){const e=(0,w.cV)(r.getStartPosition(),n),t=(0,w.cV)(r.getEndPosition(),n);o=D.e.plusRange(e,t)}}return{destination:s,destinationSelection:o}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.PS)((e=>{for(const i of t)i.collapseAll(e)}))}showAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.PS)((e=>{for(const i of t)i.showAll(e)}))}_handleCursorPositionChange(e,t){var i,n;if(3===(null===e||void 0===e?void 0:e.reason)){const s=null===(n=null===(i=this._diffModel.get())||void 0===i?void 0:i.diff.get())||void 0===n?void 0:n.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));(null===s||void 0===s?void 0:s.lineRangeMapping.modified.isEmpty)?this._accessibilitySignalService.playSignal(R.iP.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):(null===s||void 0===s?void 0:s.lineRangeMapping.original.isEmpty)?this._accessibilitySignalService.playSignal(R.iP.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):s&&this._accessibilitySignalService.playSignal(R.iP.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};zt=Wt([Ht(3,ct.i6),Ht(4,O.TG),Ht(5,c.$),Ht(6,R.IV),Ht(7,gt.ek)],zt)},20289:(e,t,i)=>{"use strict";i.d(t,{O:()=>w});var n,s=i(76595),o=i(27691),r=i(61542),a=i(73971),l=i(53186),d=i(43704),h=i(205),c=i(73045),u=i(47624),g=i(36348),p=i(47638),m=i(74633),f=i(28928),_=i(18841),v=i(5887),b=i(87775),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};let w=n=class extends l.JT{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=s,this._modifiedOutlineSource=(0,h.kA)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=n._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.PS)((e=>{for(const i of this._editors.original.getSelections()||[])null===t||void 0===t||t.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),null===t||void 0===t||t.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.PS)((e=>{for(const i of this._editors.modified.getSelections()||[])null===t||void 0===t||t.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),null===t||void 0===t||t.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const o=this._diffModel.map(((e,t)=>{var i,n;const s=null!==(i=null===e||void 0===e?void 0:e.unchangedRegions.read(t))&&void 0!==i?i:[];return 1===s.length&&1===s[0].modifiedLineNumber&&s[0].lineCount===(null===(n=this._editors.modifiedModel.read(t))||void 0===n?void 0:n.getLineCount())?[]:s}));this.viewZones=(0,d.Be)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const n=[],s=[],r=this._options.renderSideBySide.read(e),a=o.read(e);for(const o of a)if(!o.shouldHideControls(e)){{const e=(0,d.nK)(this,(e=>o.getHiddenOriginalRange(e).startLineNumber-1)),s=new g.GD(e,24);n.push(s),t.add(new S(this._editors.original,s,o,o.originalUnchangedRange,!r,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,d.nK)(this,(e=>o.getHiddenModifiedRange(e).startLineNumber-1)),n=new g.GD(e,24);s.push(n),t.add(new S(this._editors.modified,n,o,o.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}return{origViewZones:n,modViewZones:s}}));const l={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},_={description:"Fold Unchanged",glyphMarginHoverMessage:new a.W5(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,v.NC)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+c.k.asClassName(r.l.fold),zIndex:10001};this._register((0,g.RP)(this._editors.original,(0,d.nK)(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:f.e.fromPositions(new m.L(n.originalLineNumber,1)),options:_});return i})))),this._register((0,g.RP)(this._editors.modified,(0,d.nK)(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:p.z.ofLength(n.modifiedLineNumber,1).toInclusiveRange(),options:_});return i})))),this._register((0,d.EH)((e=>{const t=o.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.$K)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.$K))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};w._breadcrumbsSourceFactory=(0,d.uh)("breadcrumbsSourceFactory",void 0),w=n=C([y(3,b.TG)],w);class S extends g.N9{constructor(e,t,i,n,a,l,h,c){const u=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=a,this._modifiedOutlineSource=l,this._revealModifiedHiddenLine=h,this._options=c,this._nodes=(0,s.h)("div.diff-hidden-lines",[(0,s.h)("div.top@top",{title:(0,v.NC)("diff.hiddenLines.top","Click or drag to show more above")}),(0,s.h)("div.center@content",{style:{display:"flex"}},[(0,s.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,s.$)("a",{title:(0,v.NC)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,o.T)("$(unfold)"))]),(0,s.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,s.h)("div.bottom@bottom",{title:(0,v.NC)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root);const p=(0,d.rD)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));this._hide?(0,s.mc)(this._nodes.first):this._register((0,g.bg)(this._nodes.first,{width:p.map((e=>e.contentLeft))})),this._register((0,d.EH)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),n=this._editor.getDomNode();n&&(n.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(n.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),n.classList.toggle("canMoveBottom",!t)):"bottom"===i?(n.classList.toggle("canMoveTop",!t),n.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(n.classList.toggle("canMoveTop",!1),n.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,s.nm)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const o=(0,s.Jj)(this._nodes.top),r=(0,s.nm)(o,"mousemove",(e=>{const s=e.clientY-t;i=i||Math.abs(s)>2;const o=Math.round(s/m.getOption(67)),r=Math.max(0,Math.min(n+o,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(r,void 0)})),a=(0,s.nm)(o,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),r.dispose(),a.dispose()}))}))),this._register((0,s.nm)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const o=(0,s.Jj)(this._nodes.bottom),r=(0,s.nm)(o,"mousemove",(e=>{const s=e.clientY-t;i=i||Math.abs(s)>2;const o=Math.round(s/m.getOption(67)),r=Math.max(0,Math.min(n-o,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(r,void 0);const l=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(l-a))})),a=(0,s.nm)(o,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),r.dispose(),a.dispose()}))}))),this._register((0,d.EH)((e=>{const t=[];if(!this._hide){const n=i.getHiddenModifiedRange(e).length,a=(0,v.NC)("hiddenLines","{0} hidden lines",n),l=(0,s.$)("span",{title:(0,v.NC)("diff.hiddenLines.expandAll","Double click to unfold")},a);l.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(l);const d=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(d,e);if(h.length>0){t.push((0,s.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],n=_.uZ.toIcon(i.kind),a=(0,s.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,o.h)(n),"\xa0",i.name,...e===h.length-1?[]:[(0,o.h)(r.l.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,s.mc)(this._nodes.others,...t)})))}}},79987:(e,t,i)=>{"use strict";i.d(t,{$F:()=>C,Jv:()=>f,LE:()=>m,W3:()=>b,fO:()=>h,i_:()=>p,iq:()=>u,n_:()=>_,rd:()=>g,rq:()=>v,vv:()=>c});var n=i(61542),s=i(73045),o=i(13277),r=i(5887),a=i(6009),l=i(54329);(0,a.P6G)("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},(0,r.NC)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.P6G)("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},(0,r.NC)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.P6G)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,r.NC)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const d=(0,l.q5)("diff-insert",n.l.add,(0,r.NC)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,l.q5)("diff-remove",n.l.remove,(0,r.NC)("diffRemoveIcon","Line decoration for removals in the diff editor.")),c=o.qx.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+s.k.asClassName(d),marginClassName:"gutter-insert"}),u=o.qx.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+s.k.asClassName(h),marginClassName:"gutter-delete"}),g=o.qx.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=o.qx.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=o.qx.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=o.qx.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=o.qx.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=o.qx.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),b=o.qx.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),C=o.qx.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},36348:(e,t,i)=>{"use strict";i.d(t,{t2:()=>D,DU:()=>b,GD:()=>w,N9:()=>y,Vm:()=>C,xx:()=>_,RP:()=>f,bg:()=>x,Sv:()=>k,GU:()=>E,W7:()=>T,Ap:()=>m,RL:()=>v,NW:()=>L,cV:()=>N});var n=i(91206),s=i(76946),o=i(3739);function r(){return o.OB&&!!o.OB.VSCODE_DEV}function a(e){if(r()){const t=function(){l||(l=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e};for(const i of l){const e=i(t);if(e)return e}});return l}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let l;r()&&a((e=>{let{oldExports:t,newSrc:i,config:n}=e;if("patch-prototype"===n.mode)return e=>{var i,n;for(const s in e){const o=e[s];if(console.log(`[hot-reload] Patching prototype methods of '${s}'`,{exportedItem:o}),"function"===typeof o&&o.prototype){const r=t[s];if(r){for(const e of Object.getOwnPropertyNames(o.prototype)){const t=Object.getOwnPropertyDescriptor(o.prototype,e),a=Object.getOwnPropertyDescriptor(r.prototype,e);(null===(i=null===t||void 0===t?void 0:t.value)||void 0===i?void 0:i.toString())!==(null===(n=null===a||void 0===a?void 0:a.value)||void 0===n?void 0:n.toString())&&console.log(`[hot-reload] Patching prototype method '${s}.${e}'`),Object.defineProperty(r.prototype,e,t)}e[s]=r}}}return!0}}));var d=i(53186),h=i(43704),c=i(17067),u=i(74633),g=i(28928),p=i(78757);function m(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;const s=[];let o=0,r=0;for(;o<e.length&&r<t.length;){const a=e[o],l=t[r],d=i(a),h=i(l);d<h?(s.push(a),o++):d>h?(s.push(l),r++):(s.push(n(a,l)),o++,r++)}for(;o<e.length;)s.push(e[o]),o++;for(;r<t.length;)s.push(t[r]),r++;return s}function f(e,t){const i=new d.SL,n=e.createDecorationsCollection();return i.add((0,h.UV)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function _(e,t){return e.appendChild(t),(0,d.OF)((()=>{e.removeChild(t)}))}function v(e,t){return e.prepend(t),(0,d.OF)((()=>{e.removeChild(t)}))}class b extends d.JT{get width(){return this._width}get height(){return this._height}constructor(e,t){super(),this.elementSizeObserver=this._register(new c.I(e,t)),this._width=(0,h.uh)(this,this.elementSizeObserver.getWidth()),this._height=(0,h.uh)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,h.PS)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function C(e,t,i){let n=t.get(),s=n,o=n;const r=(0,h.uh)("animatedValue",n);let a=-1;const l=300;let d;function c(){const t=Date.now()-a;var i,h,u,g;o=Math.floor((h=s,u=n-s,(i=t)===(g=l)?h+u:u*(1-Math.pow(2,-10*i/g))+h)),t<l?d=e.requestAnimationFrame(c):o=n,r.set(o,void 0)}return i.add((0,h.nJ)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,r)=>{void 0!==d&&(e.cancelAnimationFrame(d),d=void 0),s=o,n=t.read(i),a=Date.now()-(r.animate?0:l),c()}))),r}class y extends d.JT{constructor(e,t,i){super(),this._register(new S(e,i)),this._register(x(i,{height:t.actualHeight,top:t.actualTop}))}}class w{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,h.uh)(this,void 0),this._actualHeight=(0,h.uh)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class S{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+S._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function x(e,t){return(0,h.EH)((i=>{for(let[n,s]of Object.entries(t))s&&"object"===typeof s&&"read"in s&&(s=s.read(i)),"number"===typeof s&&(s=`${s}px`),n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[n]=s}))}function L(e,t){return function(e,t){if(r()){(0,h.aq)("reload",(t=>a((i=>{let{oldExports:n}=i;if([...Object.values(n)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}function k(e,t,i,n){const s=new d.SL,o=[];return s.add((0,h.gp)(((s,r)=>{const a=t.read(s),l=new Map,d=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of o)e.removeZone(t),null===n||void 0===n||n.delete(t);o.length=0;for(const t of a){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),o.push(i),null===n||void 0===n||n.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,h.nJ)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=d.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,n)=>{for(const e of a)e.onChange&&(d.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of n.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),s.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of o)e.removeZone(t)})),null===n||void 0===n||n.clear(),i&&i(!1)}}),s}S._counter=0;class D extends s.A{dispose(){super.dispose(!0)}}function N(e,t){const i=(0,n.dF)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return g.e.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return g.e.fromPositions(new u.L(t,e.column))}if(!i.innerChanges)return g.e.fromPositions(new u.L(i.modified.startLineNumber,1));const s=(0,n.dF)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!s){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return g.e.fromPositions(new u.L(t,e.column))}if(s.originalRange.containsPosition(e))return s.modifiedRange;{const t=(o=s.originalRange.getEndPosition(),r=e,o.lineNumber===r.lineNumber?new p.A(0,r.column-o.column):new p.A(r.lineNumber-o.lineNumber,r.column-1));return g.e.fromPositions(t.addToPosition(s.modifiedRange.getEndPosition()))}var o,r}function E(e,t,i){const n=e.bindTo(t);return(0,h.UV)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}function T(e,t){let i;return e.filter((e=>{const n=t(e,i);return i=e,n}))}},35978:(e,t,i)=>{"use strict";i.d(t,{$:()=>f,N:()=>_});var n,s=i(16315),o=i(58296),r=i(16015),a=i(39706),l=i(53186),d=i(64295),h=i(91342),c=i(76326),u=i(85779),g=i(34912),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=n=class{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.Q5,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const n=new l.SL,o=n.add((0,s.ap)(e,{...this._getRenderOptions(e,n),...t},i));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{var i,s,o;let r;e?r=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(r=null===(i=this._options.editor.getModel())||void 0===i?void 0:i.getLanguageId()),r||(r=c.bd);const a=await(0,u.C2)(this._languageService,t,r),l=document.createElement("span");if(l.innerHTML=null!==(o=null===(s=n._ttpTokenizer)||void 0===s?void 0:s.createHTML(a))&&void 0!==o?o:a,this._options.editor){const e=this._options.editor.getOption(50);(0,d.N)(l,e)}else this._options.codeBlockFontFamily&&(l.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(l.style.fontSize=this._options.codeBlockFontSize),l},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(n){return(0,r.dL)(n),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f._ttpTokenizer=(0,o.Z)("tokenizeToString",{createHTML:e=>e}),f=n=p([m(1,h.O),m(2,g.v)],f)},70006:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});var n=i(51828);class s extends n.Wi{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},2196:(e,t,i)=>{"use strict";i.d(t,{OY:()=>o,Sj:()=>r,T4:()=>s,Uo:()=>a,hP:()=>l});var n=i(24854);class s{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getEndPosition())}}class o{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromRange(i,0)}}class r{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=s}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class l{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},80869:(e,t,i)=>{"use strict";i.d(t,{U:()=>p});var n,s=i(78701),o=i(32653),r=i(28928),a=i(24854),l=i(37036),d=i(5580),h=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,n){t(i,n,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}let p=n=class{static unshiftIndent(e,t,i,n,s){const r=o.i.visibleColumnFromColumn(e,t,i);if(s){const e=g(" ",n);return g(e,o.i.prevIndentTabStop(r,n)/n)}return g("\t",o.i.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,s){const r=o.i.visibleColumnFromColumn(e,t,i);if(s){const e=g(" ",n);return g(e,o.i.nextIndentTabStop(r,n)/n)}return g("\t",o.i.nextRenderTabStop(r,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:d,indentSize:h,insertSpaces:c}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=s.LC(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(o.i.visibleColumnFromColumn(a,_+1,d)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,l.A)(this._opts.autoIndent,e,new r.e(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?n.unshiftIndent(a,_+1,d,h,c):n.shiftIndent(a,_+1,d,h,c),this._addEditOperation(t,new r.e(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const n=c?g(" ",h):"\t";for(let o=i;o<=a;o++){const a=e.getLineContent(o);let l=s.LC(a);if((!this._opts.isUnshift||0!==a.length&&0!==l)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===l&&(l=a.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,h);for(let e=0;e<l;e++){if(9===a.charCodeAt(e)){l=e+1;break}}this._addEditOperation(t,new r.e(o,1,o,l+1),"")}else this._addEditOperation(t,new r.e(o,1,o,1),n),o!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.Y(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.Y(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.Y(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=n=h([c(2,d.c_)],p)},50328:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});const n={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}},50142:(e,t,i)=>{"use strict";i.d(t,{Pe:()=>m,ei:()=>p,wk:()=>d});var n=i(50328),s=i(67364),o=i(47998),r=i(5887),a=i(49817),l=i(76322);const d=Object.freeze({id:"editor",order:5,type:"object",title:r.NC("editorConfigurationTitle","Editor"),scope:5}),h={...d,properties:{"editor.tabSize":{type:"number",default:o.D.tabSize,minimum:1,markdownDescription:r.NC("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:r.NC("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:o.D.insertSpaces,markdownDescription:r.NC("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:o.D.detectIndentation,markdownDescription:r.NC("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:o.D.trimAutoWhitespace,description:r.NC("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:o.D.largeFileOptimizations,description:r.NC("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[r.NC("wordBasedSuggestions.off","Turn off Word Based Suggestions."),r.NC("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),r.NC("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),r.NC("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:r.NC("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[r.NC("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),r.NC("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),r.NC("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:r.NC("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r.NC("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r.NC("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:r.NC("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:r.NC("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:r.NC("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:r.NC("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:r.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:r.NC("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:r.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:n.k.maxComputationTime,description:r.NC("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:n.k.maxFileSize,description:r.NC("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:n.k.renderSideBySide,description:r.NC("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:n.k.renderSideBySideInlineBreakpoint,description:r.NC("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:n.k.useInlineViewWhenSpaceIsLimited,description:r.NC("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:n.k.renderMarginRevertIcon,description:r.NC("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:n.k.renderGutterMenu,description:r.NC("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:n.k.ignoreTrimWhitespace,description:r.NC("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:n.k.renderIndicators,description:r.NC("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:n.k.diffCodeLens,description:r.NC("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:n.k.diffWordWrap,markdownEnumDescriptions:[r.NC("wordWrap.off","Lines will never wrap."),r.NC("wordWrap.on","Lines will wrap at the viewport width."),r.NC("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:n.k.diffAlgorithm,markdownEnumDescriptions:[r.NC("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),r.NC("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:n.k.hideUnchangedRegions.enabled,markdownDescription:r.NC("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:n.k.hideUnchangedRegions.revealLineCount,markdownDescription:r.NC("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:n.k.hideUnchangedRegions.minimumLineCount,markdownDescription:r.NC("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:n.k.hideUnchangedRegions.contextLineCount,markdownDescription:r.NC("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:n.k.experimental.showMoves,markdownDescription:r.NC("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:n.k.experimental.showEmptyDecorations,description:r.NC("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(const f of s.Bc){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(c=e).type||"undefined"!==typeof c.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var c;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}l.B.as(a.IP.Configuration).registerConfiguration(h)},67364:(e,t,i)=>{"use strict";i.d(t,{$J:()=>A,$r:()=>N,Av:()=>O,BH:()=>H,Bb:()=>h,Bc:()=>V,Bo:()=>T,LJ:()=>c,L_:()=>y,NY:()=>x,O7:()=>_,Zc:()=>b,d2:()=>D,gk:()=>M,hL:()=>B,n0:()=>E,qt:()=>P,rk:()=>g,y0:()=>d});var n=i(51833),s=i(53335),o=i(90388),r=i(47998),a=i(67331),l=i(5887);const d=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class c{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&n.fS(e,t);return new g(t,!i)}let i=!1;for(const n in t)if(t.hasOwnProperty(n)){const s=p(e[n],t[n]);s.didChange&&(e[n]=s.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;"undefined"!==typeof n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return _(e,this.defaultValue)}}function b(e,t,i,n){if("undefined"===typeof e)return t;let s=parseInt(e,10);return isNaN(s)?t:(s=Math.max(i,s),s=Math.min(n,s),0|s)}class C extends f{static clampedInt(e,t,i,n){return b(e,t,i,n)}constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;"undefined"!==typeof o&&(o.type="integer",o.default=i,o.minimum=n,o.maximum=s),super(e,t,i,o),this.minimum=n,this.maximum=s}validate(e){return C.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function y(e,t,i,n){if("undefined"===typeof e)return t;const s=w.float(e,t);return w.clamp(s,i,n)}class w extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){"undefined"!==typeof s&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(w.float(e,this.defaultValue))}}class S extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;"undefined"!==typeof n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return S.string(e,this.defaultValue)}}function x(e,t,i,n){return"string"!==typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class L extends f{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;"undefined"!==typeof s&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return x(e,this.defaultValue,this._allowedValues)}}class k extends u{constructor(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;"undefined"!==typeof r&&(r.type="string",r.enum=s,r.default=n),super(e,t,i,r),this._allowedValues=s,this._convert=o}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var D,N;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(D||(D={}));class E extends u{constructor(){super(51,"fontLigatures",E.OFF,{anyOf:[{type:"boolean",description:l.NC("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:l.NC("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:l.NC("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?E.OFF:"true"===e?E.ON:e:Boolean(e)?E.ON:E.OFF}}E.OFF='"liga" off, "calt" off',E.ON='"liga" on, "calt" on';class T extends u{constructor(){super(54,"fontVariations",T.OFF,{anyOf:[{type:"boolean",description:l.NC("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:l.NC("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:l.NC("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?T.OFF:"true"===e?T.TRANSLATE:e:Boolean(e)?T.TRANSLATE:T.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}T.OFF="normal",T.TRANSLATE="translate";class I extends u{constructor(){super(53,"fontWeight",B.fontWeight,{anyOf:[{type:"number",minimum:I.MINIMUM_VALUE,maximum:I.MAXIMUM_VALUE,errorMessage:l.NC("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:I.SUGGESTION_VALUES}],default:B.fontWeight,description:l.NC("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(C.clampedInt(e,B.fontWeight,I.MINIMUM_VALUE,I.MAXIMUM_VALUE))}}I.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],I.MINIMUM_VALUE=1,I.MAXIMUM_VALUE=1e3;class M extends m{constructor(){super(145)}compute(e,t,i){return M.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:Math.floor(e.viewLineCount/s)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const o=t.stableMinimapLayoutInput,r=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=s>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,b=e.isViewportWrapping,C=c?2:3;let y=Math.floor(s*n);const w=y/s;let S=!1,x=!1,L=C*u,k=u/s,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:c}=M.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:s});if(_/c>1)S=!0,x=!0,u=1,L=1,k=u/s;else{let n=!1,h=u+1;if("fit"===p){const e=Math.ceil((o+_+l)*L);b&&r&&v<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>y}if("fill"===p||n){S=!0;const n=u;L=Math.min(a*s,Math.max(1,Math.floor(1/d))),b&&r&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(L/C))),u>n&&(D=Math.min(2,u/n)),k=u/s/D,y=Math.ceil(Math.max(i,o+_+l)*L),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(g*k),E=Math.min(N,Math.max(0,Math.floor((v-f-2)*k/(l+k)))+d);let T=Math.floor(s*E);const I=T/s;T=Math.floor(T*D);return{renderMinimap:c?1:2,minimapLeft:"left"===m?0:i-E-f,minimapWidth:E,minimapHeightIsEditorHeight:S,minimapIsSampling:x,minimapScale:u,minimapLineHeight:L,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,s=0|t.lineHeight,o=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,h=e.get(137),u="inherit"===h?e.get(136):h,g="inherit"===u?e.get(132):u,p=e.get(135),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),b=e.get(105),C=e.get(84),y=e.get(73),w=e.get(103),S=w.verticalScrollbarSize,x=w.verticalHasArrows,L=w.arrowSize,k=w.horizontalScrollbarSize,D=e.get(43),N="never"!==e.get(110);let E=e.get(66);D&&N&&(E+=16);let T=0;if(_){const e=Math.max(o,v);T=Math.round(e*a)}let I=0;f&&(I=s*t.glyphMarginDecorationLaneCount);let A=0,R=A+I,O=R+T,P=O+E;const F=i-I-T-E;let B=!1,V=!1,W=-1;"inherit"===u&&m?(B=!0,V=!0):"on"===g||"bounded"===g?V=!0:"wordWrapColumn"===g&&(W=p);const H=M._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:C.top,paddingBottom:C.bottom,minimap:y,verticalScrollbarWidth:S,viewLineCount:d,remainingWidth:F,isViewportWrapping:V},t.memory||new c);0!==H.renderMinimap&&0===H.minimapLeft&&(A+=H.minimapWidth,R+=H.minimapWidth,O+=H.minimapWidth,P+=H.minimapWidth);const z=F-H.minimapWidth,j=Math.max(1,Math.floor((z-S-2)/r)),U=x?L:0;return V&&(W=Math.max(1,j),"bounded"===g&&(W=Math.min(W,p))),{width:i,height:n,glyphMarginLeft:A,glyphMarginWidth:I,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:T,decorationsLeft:O,decorationsWidth:E,contentLeft:P,contentWidth:z,minimap:H,viewportColumn:j,isWordWrapMinified:B,isViewportWrapping:V,wrappingColumn:W,verticalScrollbarWidth:S,horizontalScrollbarHeight:k,overviewRuler:{top:U,width:S,height:n-2*U,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(N||(N={}));function A(e){const t=e.get(98);return"editable"===t?e.get(91):"on"!==t}function R(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const O="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const B={fontFamily:o.dz?"Menlo, Monaco, 'Courier New', monospace":o.IJ?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.dz?12:14,lineHeight:0,letterSpacing:0},V=[];function W(e){return V[e.id]=e,e}const H={acceptSuggestionOnCommitCharacter:W(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:l.NC("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:W(new L(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",l.NC("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:l.NC("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:W(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[l.NC("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),l.NC("accessibilitySupport.on","Optimize for usage with a Screen Reader."),l.NC("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:l.NC("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:W(new C(3,"accessibilityPageSize",10,1,1073741824,{description:l.NC("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:W(new S(4,"ariaLabel",l.NC("editorViewAccessibleLabel","Editor content"))),ariaRequired:W(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:W(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:l.NC("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:W(new L(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.NC("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),l.NC("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:l.NC("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:W(new L(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.NC("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),l.NC("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:l.NC("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:W(new L(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",l.NC("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:l.NC("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:W(new L(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",l.NC("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:l.NC("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:W(new L(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.NC("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),l.NC("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:l.NC("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:W(new k(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[l.NC("editor.autoIndent.none","The editor will not insert indentation automatically."),l.NC("editor.autoIndent.keep","The editor will keep the current line's indentation."),l.NC("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),l.NC("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),l.NC("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:l.NC("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:W(new v(13,"automaticLayout",!1)),autoSurround:W(new L(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[l.NC("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),l.NC("editor.autoSurround.quotes","Surround with quotes but not brackets."),l.NC("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:l.NC("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:W(new class extends u{constructor(){const e={enabled:r.D.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:r.D.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.NC("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:l.NC("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:W(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.NC("editor.guides.bracketPairs.true","Enables bracket pair guides."),l.NC("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),l.NC("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:l.NC("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.NC("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),l.NC("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),l.NC("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:l.NC("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:l.NC("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:l.NC("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[l.NC("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),l.NC("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),l.NC("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:l.NC("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:W(new v(116,"stickyTabStops",!1,{description:l.NC("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:W(new v(17,"codeLens",!0,{description:l.NC("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:W(new S(18,"codeLensFontFamily","",{description:l.NC("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:W(new C(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:l.NC("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:W(new v(20,"colorDecorators",!0,{description:l.NC("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:W(new L(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[l.NC("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),l.NC("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),l.NC("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:l.NC("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:W(new C(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:l.NC("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:W(new v(22,"columnSelection",!1,{description:l.NC("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:W(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:l.NC("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:l.NC("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:W(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:W(new v(25,"copyWithSyntaxHighlighting",!0,{description:l.NC("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:W(new k(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:l.NC("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:W(new L(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[l.NC("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),l.NC("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),l.NC("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:l.NC("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:W(new k(28,"cursorStyle",D.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return D.Line;case"block":return D.Block;case"underline":return D.Underline;case"line-thin":return D.LineThin;case"block-outline":return D.BlockOutline;case"underline-thin":return D.UnderlineThin}}),{description:l.NC("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:W(new C(29,"cursorSurroundingLines",0,0,1073741824,{description:l.NC("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:W(new L(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[l.NC("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),l.NC("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:l.NC("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:W(new C(31,"cursorWidth",0,0,1073741824,{markdownDescription:l.NC("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:W(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:W(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:W(new v(34,"domReadOnly",!1)),dragAndDrop:W(new v(35,"dragAndDrop",!0,{description:l.NC("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:W(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:l.NC("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:W(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.NC("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:l.NC("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[l.NC("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),l.NC("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:x(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:W(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:l.NC("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:l.NC("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:l.NC("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:l.NC("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:C.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:x(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:W(new L(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[l.NC("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),l.NC("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),l.NC("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:l.NC("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:W(new S(39,"extraEditorClassName","")),fastScrollSensitivity:W(new w(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:l.NC("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:W(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:l.NC("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[l.NC("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),l.NC("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),l.NC("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:l.NC("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[l.NC("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),l.NC("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),l.NC("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:l.NC("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:l.NC("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:l.NC("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:l.NC("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":x(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":x(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:W(new v(42,"fixedOverflowWidgets",!1)),folding:W(new v(43,"folding",!0,{description:l.NC("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:W(new L(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[l.NC("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),l.NC("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:l.NC("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:W(new v(45,"foldingHighlight",!0,{description:l.NC("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:W(new v(46,"foldingImportsByDefault",!1,{description:l.NC("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:W(new C(47,"foldingMaximumRegions",5e3,10,65e3,{description:l.NC("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:W(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:l.NC("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:W(new S(49,"fontFamily",B.fontFamily,{description:l.NC("fontFamily","Controls the font family.")})),fontInfo:W(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:W(new E),fontSize:W(new class extends f{constructor(){super(52,"fontSize",B.fontSize,{type:"number",minimum:6,maximum:100,default:B.fontSize,description:l.NC("fontSize","Controls the font size in pixels.")})}validate(e){const t=w.float(e,this.defaultValue);return 0===t?B.fontSize:w.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:W(new I),fontVariations:W(new T),formatOnPaste:W(new v(55,"formatOnPaste",!1,{description:l.NC("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:W(new v(56,"formatOnType",!1,{description:l.NC("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:W(new v(57,"glyphMargin",!0,{description:l.NC("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:W(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[l.NC("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),l.NC("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),l.NC("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:l.NC("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:l.NC("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:l.NC("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:l.NC("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:l.NC("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:l.NC("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:l.NC("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:l.NC("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:l.NC("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:l.NC("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:l.NC("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,o;if(!e||"object"!==typeof e)return this.defaultValue;const r=e;return{multiple:x(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:x(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:x(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:x(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(s=r.multipleImplementations)&&void 0!==s?s:x(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=r.multipleReferences)&&void 0!==o?o:x(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:S.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:S.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:S.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:S.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:S.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:W(new v(59,"hideCursorInOverviewRuler",!1,{description:l.NC("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:W(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:l.NC("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:l.NC("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:l.NC("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:l.NC("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:l.NC("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:C.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:C.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:W(new v(61,"inDiffEditor",!1)),letterSpacing:W(new w(64,"letterSpacing",B.letterSpacing,(e=>w.clamp(e,-5,20)),{description:l.NC("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:W(new class extends u{constructor(){const e={enabled:N.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[N.Off,N.OnCode,N.On],default:e.enabled,enumDescriptions:[l.NC("editor.lightbulb.enabled.off","Disable the code action menu."),l.NC("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),l.NC("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:l.NC("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:x(e.enabled,this.defaultValue.enabled,[N.Off,N.OnCode,N.On])}}}),lineDecorationsWidth:W(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return C.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?C.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:W(new class extends w{constructor(){super(67,"lineHeight",B.lineHeight,(e=>w.clamp(e,0,150)),{markdownDescription:l.NC("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:W(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[l.NC("lineNumbers.off","Line numbers are not rendered."),l.NC("lineNumbers.on","Line numbers are rendered as absolute number."),l.NC("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),l.NC("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:l.NC("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:W(new C(69,"lineNumbersMinChars",5,1,300)),linkedEditing:W(new v(70,"linkedEditing",!1,{description:l.NC("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:W(new v(71,"links",!0,{description:l.NC("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:W(new L(72,"matchBrackets","always",["always","near","never"],{description:l.NC("matchBrackets","Highlight matching brackets.")})),minimap:W(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:l.NC("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:l.NC("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[l.NC("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),l.NC("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),l.NC("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:l.NC("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:l.NC("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:l.NC("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:l.NC("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:l.NC("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:l.NC("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:l.NC("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:l.NC("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:l.NC("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;if(!e||"object"!==typeof e)return this.defaultValue;const i=e;return{enabled:_(i.enabled,this.defaultValue.enabled),autohide:_(i.autohide,this.defaultValue.autohide),size:x(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:x(i.side,this.defaultValue.side,["right","left"]),showSlider:x(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(i.renderCharacters,this.defaultValue.renderCharacters),scale:C.clampedInt(i.scale,1,1,3),maxColumn:C.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(i.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(i.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:w.clamp(null!==(t=i.sectionHeaderFontSize)&&void 0!==t?t:this.defaultValue.sectionHeaderFontSize,4,32)}}}),mouseStyle:W(new L(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:W(new w(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:l.NC("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:W(new v(76,"mouseWheelZoom",!1,{markdownDescription:o.dz?l.NC("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):l.NC("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:W(new v(77,"multiCursorMergeOverlapping",!0,{description:l.NC("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:W(new k(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?o.dz?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[l.NC("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),l.NC("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:l.NC({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:W(new L(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[l.NC("multiCursorPaste.spread","Each cursor pastes a single line of the text."),l.NC("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:l.NC("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:W(new C(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:l.NC("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:W(new L(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[l.NC("occurrencesHighlight.off","Does not highlight occurrences."),l.NC("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),l.NC("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:l.NC("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:W(new v(82,"overviewRulerBorder",!0,{description:l.NC("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:W(new C(83,"overviewRulerLanes",3,0,3)),padding:W(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:l.NC("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:l.NC("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:C.clampedInt(t.top,0,0,1e3),bottom:C.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:W(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.NC("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:l.NC("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[l.NC("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),l.NC("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:x(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:W(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:l.NC("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:l.NC("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:W(new L(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[l.NC("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),l.NC("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:l.NC("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:W(new v(88,"definitionLinkOpensInPeek",!1,{description:l.NC("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:W(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[l.NC("on","Quick suggestions show inside the suggest widget"),l.NC("inline","Quick suggestions show as ghost text"),l.NC("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:l.NC("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:l.NC("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:l.NC("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:l.NC("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let o,r,a;return o="boolean"===typeof t?t?"on":"off":x(t,this.defaultValue.other,s),r="boolean"===typeof i?i?"on":"off":x(i,this.defaultValue.comments,s),a="boolean"===typeof n?n?"on":"off":x(n,this.defaultValue.strings,s),{other:o,comments:r,strings:a}}}),quickSuggestionsDelay:W(new C(90,"quickSuggestionsDelay",10,0,1073741824,{description:l.NC("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:W(new v(91,"readOnly",!1)),readOnlyMessage:W(new class extends u{constructor(){super(92,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:W(new v(93,"renameOnType",!1,{description:l.NC("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:l.NC("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:W(new v(94,"renderControlCharacters",!0,{description:l.NC("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:W(new L(95,"renderFinalNewline",o.IJ?"dimmed":"on",["off","on","dimmed"],{description:l.NC("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:W(new L(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",l.NC("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:l.NC("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:W(new v(97,"renderLineHighlightOnlyWhenFocus",!1,{description:l.NC("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:W(new L(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:W(new L(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",l.NC("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),l.NC("renderWhitespace.selection","Render whitespace characters only on selected text."),l.NC("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:l.NC("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:W(new C(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:W(new v(101,"roundedSelection",!0,{description:l.NC("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:W(new class extends u{constructor(){const e=[],t={type:"number",description:l.NC("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:l.NC("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:l.NC("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:C.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:C.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:W(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.NC("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),l.NC("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),l.NC("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:l.NC("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.NC("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),l.NC("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),l.NC("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:l.NC("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:l.NC("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:l.NC("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:l.NC("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:l.NC("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,i=C.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=C.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:C.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R(t.vertical,this.defaultValue.vertical),horizontal:R(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:C.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:C.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:W(new C(104,"scrollBeyondLastColumn",4,0,1073741824,{description:l.NC("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:W(new v(105,"scrollBeyondLastLine",!0,{description:l.NC("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:W(new v(106,"scrollPredominantAxis",!0,{description:l.NC("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:W(new v(107,"selectionClipboard",!0,{description:l.NC("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.IJ})),selectionHighlight:W(new v(108,"selectionHighlight",!0,{description:l.NC("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:W(new v(109,"selectOnLineNumbers",!0)),showFoldingControls:W(new L(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[l.NC("showFoldingControls.always","Always show the folding controls."),l.NC("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),l.NC("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:l.NC("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:W(new v(111,"showUnused",!0,{description:l.NC("showUnused","Controls fading out of unused code.")})),showDeprecated:W(new v(140,"showDeprecated",!0,{description:l.NC("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:W(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:l.NC("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[l.NC("editor.inlayHints.on","Inlay hints are enabled"),l.NC("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",o.dz?"Ctrl+Option":"Ctrl+Alt"),l.NC("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",o.dz?"Ctrl+Option":"Ctrl+Alt"),l.NC("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:l.NC("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:l.NC("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:l.NC("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:x(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:C.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:W(new L(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[l.NC("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),l.NC("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),l.NC("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),l.NC("snippetSuggestions.none","Do not show snippet suggestions.")],description:l.NC("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:W(new class extends u{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:l.NC("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:l.NC("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:W(new v(114,"smoothScrolling",!1,{description:l.NC("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:W(new C(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:W(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[l.NC("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),l.NC("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:l.NC("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:l.NC("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:l.NC("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:l.NC("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[l.NC("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),l.NC("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),l.NC("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),l.NC("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:l.NC("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:l.NC("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:l.NC("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:l.NC("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:l.NC("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:l.NC("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:l.NC("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:l.NC("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:l.NC("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:x(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:x(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:x(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:W(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:l.NC("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.NC("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),l.NC("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),l.NC("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:l.NC("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:l.NC("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:l.NC("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:x(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:x(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:W(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:l.NC("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.NC("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),l.NC("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),l.NC("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:l.NC("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:l.NC("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:l.NC("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:x(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:_(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}),inlineCompletionsAccessibilityVerbose:W(new v(149,"inlineCompletionsAccessibilityVerbose",!1,{description:l.NC("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:W(new C(119,"suggestFontSize",0,0,1e3,{markdownDescription:l.NC("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:W(new C(120,"suggestLineHeight",0,0,1e3,{markdownDescription:l.NC("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:W(new v(121,"suggestOnTriggerCharacters",!0,{description:l.NC("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:W(new L(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[l.NC("suggestSelection.first","Always select the first suggestion."),l.NC("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),l.NC("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:l.NC("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:W(new L(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[l.NC("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.NC("tabCompletion.off","Disable tab completions."),l.NC("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.NC("tabCompletion","Enables tab completions.")})),tabIndex:W(new C(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:W(new class extends u{constructor(){const e={nonBasicASCII:O,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:O,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.nonBasicASCII,description:l.NC("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:l.NC("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:l.NC("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.includeComments,description:l.NC("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.includeStrings,description:l.NC("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:l.NC("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:l.NC("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(s.fS(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(s.fS(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new g(n.newValue,!0):n}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,O,[!0,!1,O]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,O,[!0,!1,O]),includeStrings:F(t.includeStrings,O,[!0,!1,O]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[n,s]of Object.entries(e))!0===s&&(i[n]=!0);return i}}),unusualLineTerminators:W(new L(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[l.NC("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),l.NC("unusualLineTerminators.off","Unusual line terminators are ignored."),l.NC("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:l.NC("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:W(new v(127,"useShadowDOM",!0)),useTabStops:W(new v(128,"useTabStops",!0,{description:l.NC("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:W(new L(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[l.NC("wordBreak.normal","Use the default line break rule."),l.NC("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:l.NC("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:W(new class extends u{constructor(){super(130,"wordSegmenterLocales",[],{anyOf:[{description:l.NC("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:l.NC("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const i=[];for(const n of e)if("string"===typeof n)try{Intl.Segmenter.supportedLocalesOf(n).length>0&&i.push(n)}catch(t){}return i}return this.defaultValue}}),wordSeparators:W(new S(131,"wordSeparators",a.vu,{description:l.NC("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:W(new L(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[l.NC("wordWrap.off","Lines will never wrap."),l.NC("wordWrap.on","Lines will wrap at the viewport width."),l.NC({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),l.NC({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:l.NC({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:W(new S(133,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:W(new S(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:W(new C(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:l.NC({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:W(new L(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:W(new L(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:W(new class extends m{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(74)?n.push("mouse-default"):"copy"===t.get(74)&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:W(new v(147,"defaultColorDecorators",!1,{markdownDescription:l.NC("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:W(new class extends m{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:W(new v(144,"tabFocusMode",!1,{markdownDescription:l.NC("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:W(new M),wrappingInfo:W(new class extends m{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:W(new class extends u{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[l.NC("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),l.NC("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),l.NC("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),l.NC("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:l.NC("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:W(new class extends u{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[l.NC("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),l.NC("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:l.NC("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return x(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},90582:(e,t,i)=>{"use strict";i.d(t,{C:()=>s});var n=i(39706);const s=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},13785:(e,t,i)=>{"use strict";i.d(t,{E4:()=>a,pR:()=>l});var n=i(90388),s=i(67364),o=i(90582);const r=n.dz?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const n=e.get(49),s=e.get(53),o=e.get(52),r=e.get(51),l=e.get(54),d=e.get(67),h=e.get(64);return a._create(n,s,o,r,l,d,h,t,i)}static _create(e,t,i,n,l,d,h,c,u){0===d?d=r*i:d<8&&(d*=i),(d=Math.round(d))<8&&(d=8);const g=1+(u?0:.1*o.C.getZoomLevel());if(i*=g,d*=g,l===s.Bo.TRANSLATE)if("normal"===t||"bold"===t)l=s.Bo.OFF;else{l=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:l,lineHeight:d,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=s.hL.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},47498:(e,t,i)=>{"use strict";i.d(t,{N:()=>s,q:()=>o});var n=i(47228);class s{constructor(e){const t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class o{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},32653:(e,t,i)=>{"use strict";i.d(t,{i:()=>s});var n=i(78701);class s{static _nextVisibleColumn(e,t,i){return 9===e?s.nextRenderTabStop(t,i):n.K7(e)||n.C8(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const s=Math.min(t-1,e.length),o=e.substring(0,s),r=new n.W1(o);let a=0;for(;!r.eol();){const e=n.ZH(o,s,r.offset);r.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const s=e.length,o=new n.W1(e);let r=0,a=1;for(;!o.eol();){const l=n.ZH(e,s,o.offset);o.nextGraphemeLength();const d=this._nextVisibleColumn(l,r,i),h=o.offset+1;if(d>=t){return d-t<t-r?h:a}r=d,a=h}return s+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},56154:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});var n=i(28928);class s{static insert(e,t){return{range:new n.e(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},12354:(e,t,i)=>{"use strict";i.d(t,{Bj:()=>M,CE:()=>j,DS:()=>Z,HV:()=>se,H_:()=>y,Jn:()=>X,Kh:()=>a,L7:()=>ne,Mm:()=>l,N8:()=>N,P0:()=>p,Qb:()=>ee,Re:()=>V,Tf:()=>C,To:()=>ie,UP:()=>U,Vs:()=>z,Xy:()=>k,YF:()=>J,cK:()=>D,dI:()=>m,e9:()=>x,eS:()=>W,e_:()=>R,f9:()=>oe,fY:()=>h,gS:()=>b,h1:()=>w,hw:()=>f,jD:()=>c,lK:()=>B,lS:()=>Q,ll:()=>T,m$:()=>Y,m1:()=>q,m3:()=>te,m9:()=>F,n0:()=>d,oV:()=>G,qe:()=>L,r0:()=>K,s2:()=>u,ts:()=>$,vP:()=>S,x_:()=>g,zJ:()=>H,zd:()=>E,zu:()=>O,zw:()=>A});var n=i(5887),s=i(63932),o=i(6009),r=i(46673);const a=(0,o.P6G)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,o.P6G)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.lRK},n.NC("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),d=((0,o.P6G)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},n.NC("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,o.P6G)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},n.NC("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),(0,o.P6G)("editor.symbolHighlightBackground",{dark:o.MUv,light:o.MUv,hcDark:null,hcLight:null},n.NC("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,o.P6G)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},n.NC("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),(0,o.P6G)("editorCursor.foreground",{dark:"#AEAFAD",light:s.Il.black,hcDark:s.Il.white,hcLight:"#0F4A85"},n.NC("caret","Color of the editor cursor."))),h=(0,o.P6G)("editorCursor.background",null,n.NC("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=(0,o.P6G)("editorMultiCursor.primary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},n.NC("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,o.P6G)("editorMultiCursor.primary.background",{dark:h,light:h,hcDark:h,hcLight:h},n.NC("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,o.P6G)("editorMultiCursor.secondary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},n.NC("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,o.P6G)("editorMultiCursor.secondary.background",{dark:h,light:h,hcDark:h,hcLight:h},n.NC("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,o.P6G)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},n.NC("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,o.P6G)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:s.Il.white,hcLight:"#292929"},n.NC("editorLineNumbers","Color of editor line numbers.")),_=(0,o.P6G)("editorIndentGuide.background",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorIndentGuides","Color of the editor indentation guides."),!1,n.NC("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,o.P6G)("editorIndentGuide.activeBackground",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,n.NC("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),b=(0,o.P6G)("editorIndentGuide.background1",{dark:_,light:_,hcDark:_,hcLight:_},n.NC("editorIndentGuides1","Color of the editor indentation guides (1).")),C=(0,o.P6G)("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides2","Color of the editor indentation guides (2).")),y=(0,o.P6G)("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides3","Color of the editor indentation guides (3).")),w=(0,o.P6G)("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides4","Color of the editor indentation guides (4).")),S=(0,o.P6G)("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides5","Color of the editor indentation guides (5).")),x=(0,o.P6G)("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorIndentGuides6","Color of the editor indentation guides (6).")),L=(0,o.P6G)("editorIndentGuide.activeBackground1",{dark:v,light:v,hcDark:v,hcLight:v},n.NC("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),k=(0,o.P6G)("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),D=(0,o.P6G)("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),N=(0,o.P6G)("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),E=(0,o.P6G)("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),T=(0,o.P6G)("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),I=(0,o.P6G)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.xL1,hcLight:o.xL1},n.NC("editorActiveLineNumber","Color of editor active line number"),!1,n.NC("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),M=((0,o.P6G)("editorLineNumber.activeForeground",{dark:I,light:I,hcDark:I,hcLight:I},n.NC("editorActiveLineNumber","Color of editor active line number")),(0,o.P6G)("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),A=((0,o.P6G)("editorRuler.foreground",{dark:"#5A5A5A",light:s.Il.lightgrey,hcDark:s.Il.white,hcLight:"#292929"},n.NC("editorRuler","Color of the editor rulers.")),(0,o.P6G)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},n.NC("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,o.P6G)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},n.NC("editorBracketMatchBackground","Background color behind matching brackets")),(0,o.P6G)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.lRK,hcLight:o.lRK},n.NC("editorBracketMatchBorder","Color for matching brackets boxes")),(0,o.P6G)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},n.NC("editorOverviewRulerBorder","Color of the overview ruler border."))),R=(0,o.P6G)("editorOverviewRuler.background",null,n.NC("editorOverviewRulerBackground","Background color of the editor overview ruler.")),O=((0,o.P6G)("editorGutter.background",{dark:o.cvW,light:o.cvW,hcDark:o.cvW,hcLight:o.cvW},n.NC("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,o.P6G)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:s.Il.fromHex("#fff").transparent(.8),hcLight:o.lRK},n.NC("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,o.P6G)("editorUnnecessaryCode.opacity",{dark:s.Il.fromHex("#000a"),light:s.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,o.P6G)("editorGhostText.border",{dark:null,light:null,hcDark:s.Il.fromHex("#fff").transparent(.8),hcLight:s.Il.fromHex("#292929").transparent(.8)},n.NC("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,o.P6G)("editorGhostText.foreground",{dark:s.Il.fromHex("#ffffff56"),light:s.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,o.P6G)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorGhostTextBackground","Background color of the ghost text in the editor.")),new s.Il(new s.VS(0,122,204,.6))),F=(0,o.P6G)("editorOverviewRuler.rangeHighlightForeground",{dark:P,light:P,hcDark:P,hcLight:P},n.NC("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),B=(0,o.P6G)("editorOverviewRuler.errorForeground",{dark:new s.Il(new s.VS(255,18,18,.7)),light:new s.Il(new s.VS(255,18,18,.7)),hcDark:new s.Il(new s.VS(255,50,50,1)),hcLight:"#B5200D"},n.NC("overviewRuleError","Overview ruler marker color for errors.")),V=(0,o.P6G)("editorOverviewRuler.warningForeground",{dark:o.uoC,light:o.uoC,hcDark:o.pW3,hcLight:o.pW3},n.NC("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,o.P6G)("editorOverviewRuler.infoForeground",{dark:o.c63,light:o.c63,hcDark:o.T83,hcLight:o.T83},n.NC("overviewRuleInfo","Overview ruler marker color for infos.")),H=(0,o.P6G)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},n.NC("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,o.P6G)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},n.NC("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),j=(0,o.P6G)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},n.NC("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),U=(0,o.P6G)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,o.P6G)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),q=(0,o.P6G)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),$=(0,o.P6G)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new s.Il(new s.VS(255,18,18,.8)),light:new s.Il(new s.VS(255,18,18,.8)),hcDark:new s.Il(new s.VS(255,50,50,1)),hcLight:""},n.NC("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),G=(0,o.P6G)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Y=(0,o.P6G)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),Z=(0,o.P6G)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Q=(0,o.P6G)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),X=(0,o.P6G)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),J=(0,o.P6G)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),ee=(0,o.P6G)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),te=(0,o.P6G)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),ie=(0,o.P6G)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,o.P6G)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),se=(0,o.P6G)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,o.P6G)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,o.P6G)("editorUnicodeHighlight.border",{dark:o.uoC,light:o.uoC,hcDark:o.uoC,hcLight:o.uoC},n.NC("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,o.P6G)("editorUnicodeHighlight.background",{dark:o.gpD,light:o.gpD,hcDark:o.gpD,hcLight:o.gpD},n.NC("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,r.Ic)(((e,t)=>{const i=e.getColor(o.cvW),n=e.getColor(a),s=n&&!n.isTransparent()?n:i;s&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${s}; }`)}))},47056:(e,t,i)=>{"use strict";function n(e){let t=0,i=0,n=0,s=0;for(let o=0,r=e.length;o<r;o++){const a=e.charCodeAt(o);13===a?(0===t&&(i=o),t++,o+1<r&&10===e.charCodeAt(o+1)?(s|=2,o++):s|=3,n=o+1):10===a&&(s|=1,0===t&&(i=o),t++,n=o+1)}return 0===t&&(i=e.length),[t,i,e.length-n,s]}i.d(t,{Q:()=>n})},42156:(e,t,i)=>{"use strict";i.d(t,{x:()=>o});var n=i(78701),s=i(32653);function o(e,t,i){let o=n.LC(e);return-1===o&&(o=e.length),function(e,t,i){let n=0;for(let r=0;r<e.length;r++)"\t"===e.charAt(r)?n=s.i.nextIndentTabStop(n,t):n++;let o="";if(!i){const e=Math.floor(n/t);n%=t;for(let t=0;t<e;t++)o+="\t"}for(let s=0;s<n;s++)o+=" ";return o}(e.substring(0,o),t,i)+e.substring(o)}},47638:(e,t,i)=>{"use strict";i.d(t,{i:()=>l,z:()=>a});var n=i(16015),s=i(93845),o=i(28928),r=i(91206);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new l(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new n.he("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let n=1;n<e.length;n++)t=Math.min(t,e[n].startLineNumber),i=Math.max(i,e[n].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new n.he(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new o.e(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new o.e(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new s.q(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,r.J_)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.Jw)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const n=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,n)}}contains(e){const t=(0,r.ti)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,r.ti)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,n=0,s=null;for(;i<this._normalizedRanges.length||n<e._normalizedRanges.length;){let o=null;if(i<this._normalizedRanges.length&&n<e._normalizedRanges.length){const t=this._normalizedRanges[i],s=e._normalizedRanges[n];t.startLineNumber<s.startLineNumber?(o=t,i++):(o=s,n++)}else i<this._normalizedRanges.length?(o=this._normalizedRanges[i],i++):(o=e._normalizedRanges[n],n++);null===s?s=o:s.endLineNumberExclusive>=o.startLineNumber?s=new a(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(t.push(s),s=o)}return null!==s&&t.push(s),new l(t)}subtractFrom(e){const t=(0,r.J_)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.Jw)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new l([e]);const n=[];let s=e.startLineNumber;for(let o=t;o<i;o++){const e=this._normalizedRanges[o];e.startLineNumber>s&&n.push(new a(s,e.startLineNumber)),s=e.endLineNumberExclusive}return s<e.endLineNumberExclusive&&n.push(new a(s,e.endLineNumberExclusive)),new l(n)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,n=0;for(;i<this._normalizedRanges.length&&n<e._normalizedRanges.length;){const s=this._normalizedRanges[i],o=e._normalizedRanges[n],r=s.intersect(o);r&&!r.isEmpty&&t.push(r),s.endLineNumberExclusive<o.endLineNumberExclusive?i++:n++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},93845:(e,t,i)=>{"use strict";i.d(t,{M:()=>o,q:()=>s});var n=i(16015);class s{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let n=i;for(;n<t.length&&t[n].start<=e.endExclusive;)n++;if(i===n)t.splice(i,0,e);else{const o=Math.min(e.start,t[i].start),r=Math.max(e.endExclusive,t[n-1].endExclusive);t.splice(i,n-i,new s(o,r))}}static tryCreate(e,t){if(!(e>t))return new s(e,t)}static ofLength(e){return new s(0,e)}static ofStartAndLength(e,t){return new s(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new n.he(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new s(this.start+e,this.endExclusive+e)}deltaStart(e){return new s(this.start+e,this.endExclusive)}deltaEnd(e){return new s(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new s(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new s(t,i)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new n.he(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new n.he(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}class o{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const n=Math.min(e.start,this._sortedRanges[t].start),o=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new s(n,o))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new o;for(const i of this._sortedRanges){const n=i.intersect(e);n&&t.addRange(n)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},74633:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return n.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,n=0|t.lineNumber;if(i===n){return(0|e.column)-(0|t.column)}return i-n}clone(){return new n(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new n(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},28928:(e,t,i)=>{"use strict";i.d(t,{e:()=>s});var n=i(74633);class s{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return s.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return s.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return s.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return s.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return s.plusRange(this,e)}static plusRange(e,t){let i,n,o,r;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,n=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,n=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,n=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new s(i,n,o,r)}intersectRanges(e){return s.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,h=t.endColumn;return i<a?(i=a,n=l):i===a&&(n=Math.max(n,l)),o>d?(o=d,r=h):o===d&&(r=Math.min(r,h)),i>o||i===o&&n>r?null:new s(i,n,o,r)}equalsRange(e){return s.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return s.getEndPosition(this)}static getEndPosition(e){return new n.L(e.endLineNumber,e.endColumn)}getStartPosition(){return s.getStartPosition(this)}static getStartPosition(e){return new n.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new s(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new s(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return s.collapseToStart(this)}static collapseToStart(e){return new s(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return s.collapseToEnd(this)}static collapseToEnd(e){return new s(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new s(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,n=0|t.startLineNumber;if(i===n){const i=0|e.startColumn,n=0|t.startColumn;if(i===n){const i=0|e.endLineNumber,n=0|t.endLineNumber;if(i===n){return(0|e.endColumn)-(0|t.endColumn)}return i-n}return i-n}return i-n}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},24854:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(74633),s=i(28928);class o extends s.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.L(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new o(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,n,s){return 0===s?new o(e,t,i,n):new o(i,n,e,t)}}},130:(e,t,i)=>{"use strict";i.d(t,{HT:()=>u,kH:()=>c,oe:()=>h});var n=i(78701),s=i(90388),o=i(9730);let r,a,l;function d(){return r||(r=new TextDecoder("UTF-16LE")),r}function h(){return l||(l=s.r()?d():(a||(a=new TextDecoder("UTF-16BE")),a)),l}function c(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let s=0;for(let r=0;r<i;r++){const i=o.mP(e,t);t+=2,n[s++]=String.fromCharCode(i)}return n.join("")}(e,t,i):d().decode(n)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.ZG(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},53687:(e,t,i)=>{"use strict";i.d(t,{b:()=>a,q:()=>r});var n=i(9730),s=i(130);function o(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${o(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${o(this.oldText)}")`:`(replace@${this.oldPosition} "${o(this.oldText)}" with "${o(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const s=t.length;n.T4(e,s,i),i+=4;for(let o=0;o<s;o++)n.oq(e,t.charCodeAt(o),i),i+=2;return i}static _readString(e,t){const i=n.Ag(e,t);return t+=4,(0,s.kH)(e,t,i)}writeSize(){return 8+r._writeStringSize(this.oldText)+r._writeStringSize(this.newText)}write(e,t){return n.T4(e,this.oldPosition,t),t+=4,n.T4(e,this.newPosition,t),t+=4,t=r._writeString(e,this.oldText,t),t=r._writeString(e,this.newText,t)}static read(e,t,i){const s=n.Ag(e,t);t+=4;const o=n.Ag(e,t);t+=4;const a=r._readString(e,t);t+=r._writeStringSize(a);const l=r._readString(e,t);return t+=r._writeStringSize(l),i.push(new r(s,a,o,l)),t}}function a(e,t){if(null===e||0===e.length)return t;return new l(e,t).compress()}class l{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),n=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(n),n=this._getCurr(++t);continue}if(null===n){this._acceptPrev(i),i=this._getPrev(++e);continue}if(n.oldEnd<=i.newPosition){this._acceptCurr(n),n=this._getCurr(++t);continue}if(i.newEnd<=n.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(n.oldPosition<i.newPosition){const[e,t]=l._splitCurr(n,i.newPosition-n.oldPosition);this._acceptCurr(e),n=t;continue}if(i.newPosition<n.oldPosition){const[e,t]=l._splitPrev(i,n.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let s,o;if(n.oldEnd===i.newEnd)s=i,o=n,i=this._getPrev(++e),n=this._getCurr(++t);else if(n.oldEnd<i.newEnd){const[e,r]=l._splitPrev(i,n.oldLength);s=e,o=n,i=r,n=this._getCurr(++t)}else{const[t,r]=l._splitCurr(n,i.newLength);s=i,o=t,i=this._getPrev(++e),n=r}this._result[this._resultLen++]=new r(s.oldPosition,s.oldText,o.newPosition,o.newText),this._prevDeltaOffset+=s.newLength-s.oldLength,this._currDeltaOffset+=o.newLength-o.oldLength}const s=l._merge(this._result);return l._removeNoOps(s)}_acceptCurr(e){this._result[this._resultLen++]=l._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=l._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new r(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new r(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),n=e.newText.substr(t);return[new r(e.oldPosition,e.oldText,e.newPosition,i),new r(e.oldEnd,"",e.newPosition+t,n)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),n=e.oldText.substr(t);return[new r(e.oldPosition,i,e.newPosition,e.newText),new r(e.oldPosition+t,n,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,n=e[0];for(let s=1;s<e.length;s++){const o=e[s];n.oldEnd===o.oldPosition?n=new r(n.oldPosition,n.oldText+o.oldText,n.newPosition,n.newText+o.newText):(t[i++]=n,n=o)}return t[i++]=n,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let n=0;n<e.length;n++){const s=e[n];s.oldText!==s.newText&&(t[i++]=s)}return t}}},44053:(e,t,i)=>{"use strict";i.d(t,{MS:()=>g,At:()=>c,PY:()=>h});var n=i(56702),s=i(16015),o=i(74633),r=i(93845),a=i(78757);class l{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new r.q(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.A(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var d=i(28928);class h{constructor(e){this.edits=e,(0,n.eZ)((()=>(0,n.DM)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new o.L(1,1);for(const s of this.edits){const n=s.range,o=n.getStartPosition(),r=n.getEndPosition(),a=u(i,o);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=s.text,i=r}const n=u(i,e.endPositionExclusive);return n.isEmpty()||(t+=e.getValueOfRange(n)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,n=0;for(const s of this.edits){const r=a.A.ofText(s.text),l=o.L.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===t?n:0)}),d=r.createRange(l);e.push(d),i=d.endLineNumber-s.range.endLineNumber,n=d.endColumn-s.range.endColumn,t=s.range.endLineNumber}return e}}class c{constructor(e,t){this.range=e,this.text=t}}function u(e,t){if(!e.isBeforeOrEqual(t))throw new s.he("start must be before end");return new d.e(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new o.L(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new l(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},78757:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(74633),s=i(28928);class o{static ofText(e){let t=0,i=0;for(const n of e)"\n"===n?(t++,i=0):i++;return new o(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}createRange(e){return 0===this.lineCount?new s.e(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new s.e(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new n.L(e.lineNumber,e.column+this.columnCount):new n.L(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}o.zero=new o(0,0)},47998:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});const n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},55412:(e,t,i)=>{"use strict";i.d(t,{u:()=>a});var n=i(38079),s=i(47498);class o extends s.N{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,n=e.length;i<n;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const n of this._getIntlSegmenterWordsOnLine(e)){if(n.index>t)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const r=new n.z6(10);function a(e,t){const i=`${e}/${t.join(",")}`;let n=r.get(i);return n||(n=new o(e,t),r.set(i,n)),n}},67331:(e,t,i)=>{"use strict";i.d(t,{Af:()=>r,eq:()=>a,t2:()=>d,vu:()=>o});var n=i(2706),s=i(64450);const o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="(-?\\d*\\.\\d\\w*)|([^";for(const i of o)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const l=new s.S;function d(e,t,i,s,o){if(t=a(t),o||(o=n.$.first(l)),i.length>o.maxLen){let n=e-o.maxLen/2;return n<0?n=0:s+=n,d(e,t,i=i.substring(n,e+o.maxLen/2),s,o)}const r=Date.now(),c=e-1-s;let u=-1,g=null;for(let n=1;!(Date.now()-r>=o.timeBudget);n++){const e=c-o.windowSize*n;t.lastIndex=Math.max(0,e);const s=h(t,i,c,u);if(!s&&g)break;if(g=s,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:s+1+g.index,endColumn:s+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,n){let s;for(;s=e.exec(t);){const t=s.index||0;if(t<=i&&e.lastIndex>=i)return s;if(n>0&&t>n)return null}return null}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},54256:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(32653);class s{static whitespaceVisibleColumn(e,t,i){const s=e.length;let o=0,r=-1,a=-1;for(let l=0;l<s;l++){if(l===t)return[r,a,o];o%i===0&&(r=l,a=o);switch(e.charCodeAt(l)){case 32:o+=1;break;case 9:o=n.i.nextRenderTabStop(o,i);break;default:return[-1,-1,-1]}}return t===s?[r,a,o]:[-1,-1,-1]}static atomicPosition(e,t,i,o){const r=e.length,[a,l,d]=s.whitespaceVisibleColumn(e,t,i);if(-1===d)return-1;let h;switch(o){case 0:h=!0;break;case 1:h=!1;break;case 2:if(d%i===0)return t;h=d%i<=i/2}if(h){if(-1===a)return-1;let t=l;for(let s=a;s<r;++s){if(t===l+i)return a;switch(e.charCodeAt(s)){case 32:t+=1;break;case 9:t=n.i.nextRenderTabStop(t,i);break;default:return-1}}return t===l+i?a:-1}const c=n.i.nextRenderTabStop(d,i);let u=d;for(let s=t;s<r;s++){if(u===c)return s;switch(e.charCodeAt(s)){case 32:u+=1;break;case 9:u=n.i.nextRenderTabStop(u,i);break;default:return-1}}return u===c?r:-1}}},1603:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(78701),s=i(2196),o=i(80646),r=i(32653),a=i(67663),l=i(28928),d=i(74633);class h{static deleteRight(e,t,i,n){const o=[];let r=3!==e;for(let d=0,h=n.length;d<h;d++){const e=n[d];let h=e;if(h.isEmpty()){const n=e.getPosition(),s=a.o.right(t,i,n);h=new l.e(s.lineNumber,s.column,n.lineNumber,n.column)}h.isEmpty()?o[d]=null:(h.startLineNumber!==h.endLineNumber&&(r=!0),o[d]=new s.T4(h,""))}return[r,o]}static isAutoClosingPairDelete(e,t,i,n,s,r,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let l=0,d=r.length;l<d;l++){const d=r[l],h=d.getPosition();if(!d.isEmpty())return!1;const c=s.getLineContent(h.lineNumber);if(h.column<2||h.column>=c.length+1)return!1;const u=c.charAt(h.column-2),g=n.get(u);if(!g)return!1;if((0,o.LN)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=c.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const n=[];for(let o=0,r=i.length;o<r;o++){const e=i[o].getPosition(),t=new l.e(e.lineNumber,e.column-1,e.lineNumber,e.column+1);n[o]=new s.T4(t,"")}return[!0,n]}static deleteLeft(e,t,i,n,o){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,n,o))return this._runAutoClosingPairDelete(t,i,n);const r=[];let a=2!==e;for(let l=0,d=n.length;l<d;l++){const e=h.getDeleteRange(n[l],i,t);e.isEmpty()?r[l]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),r[l]=new s.T4(e,""))}return[a,r]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const s=e.getPosition();if(i.useTabStops&&s.column>1){const e=t.getLineContent(s.lineNumber),o=n.LC(e),a=-1===o?e.length+1:o+1;if(s.column<=a){const e=i.visibleColumnFromColumn(t,s),n=r.i.prevIndentTabStop(e,i.indentSize),o=i.columnFromVisibleColumn(t,s.lineNumber,n);return new l.e(s.lineNumber,o,s.lineNumber,s.column)}}return l.e.fromPositions(h.getPositionAfterDeleteLeft(s,t),s)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.oH(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new d.L(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let r=null;i.sort(((e,t)=>d.L.compare(e.getStartPosition(),t.getEndPosition())));for(let o=0,a=i.length;o<a;o++){const a=i[o];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,d,h,c;e.lineNumber<t.getLineCount()?(i=e.lineNumber,d=1,h=e.lineNumber+1,c=1):e.lineNumber>1&&(null===r||void 0===r?void 0:r.endLineNumber)!==e.lineNumber?(i=e.lineNumber-1,d=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,d=1,h=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber));const u=new l.e(i,d,h,c);r=u,u.isEmpty()?n[o]=null:n[o]=new s.T4(u,"")}else n[o]=null;else n[o]=new s.T4(a,"")}return new o.Tp(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},93033:(e,t,i)=>{"use strict";i.d(t,{N:()=>n,P:()=>h});var n,s=i(47624),o=i(80646),r=i(67663),a=i(59571),l=i(74633),d=i(28928);class h{static addCursorDown(e,t,i){const n=[];let s=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];n[s++]=new o.Vi(l.modelState,l.viewState),n[s++]=i?o.Vi.fromModelState(r.o.translateDown(e.cursorConfig,e.model,l.modelState)):o.Vi.fromViewState(r.o.translateDown(e.cursorConfig,e,l.viewState))}return n}static addCursorUp(e,t,i){const n=[];let s=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];n[s++]=new o.Vi(l.modelState,l.viewState),n[s++]=i?o.Vi.fromModelState(r.o.translateUp(e.cursorConfig,e.model,l.modelState)):o.Vi.fromViewState(r.o.translateUp(e.cursorConfig,e,l.viewState))}return n}static moveToBeginningOfLine(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s];n[s]=this._moveToLineStart(e,o,i)}return n}static _moveToLineStart(e,t,i){const n=t.viewState.position.column,s=n===t.modelState.position.column,o=t.viewState.position.lineNumber,r=e.getLineFirstNonWhitespaceColumn(o);return s||n===r?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return o.Vi.fromViewState(r.o.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return o.Vi.fromModelState(r.o.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,n){const s=[];for(let o=0,r=t.length;o<r;o++){const r=t[o];s[o]=this._moveToLineEnd(e,r,i,n)}return s}static _moveToLineEnd(e,t,i,n){const s=t.viewState.position,o=e.getLineMaxColumn(s.lineNumber),r=s.column===o,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),d=o-s.column===l-a.column;return r||d?this._moveToLineEndByModel(e,t,i,n):this._moveToLineEndByView(e,t,i,n)}static _moveToLineEndByView(e,t,i,n){return o.Vi.fromViewState(r.o.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,n))}static _moveToLineEndByModel(e,t,i,n){return o.Vi.fromModelState(r.o.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,n))}static expandLineSelection(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n],r=s.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,c=s.modelState.selection.endLineNumber;c===a?h=e.model.getLineMaxColumn(a):(c++,h=1),i[n]=o.Vi.fromModelState(new o.rS(new d.e(r,1,r,1),0,0,new l.L(c,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];n[s]=o.Vi.fromModelState(r.o.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return n}static moveToEndOfBuffer(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];n[s]=o.Vi.fromModelState(r.o.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return n}static selectAll(e,t){const i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return o.Vi.fromModelState(new o.rS(new d.e(1,1,1,1),0,0,new l.L(i,n),0))}static line(e,t,i,n,s){const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new l.L(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);if(!i){const t=e.model.getLineCount();let i=r.lineNumber+1,n=1;return i>t&&(i=t,n=e.model.getLineMaxColumn(i)),o.Vi.fromModelState(new o.rS(new d.e(r.lineNumber,1,i,n),2,0,new l.L(i,n),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<h)return o.Vi.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(r.lineNumber>h){const i=e.getLineCount();let n=a.lineNumber+1,s=1;return n>i&&(n=i,s=e.getLineMaxColumn(n)),o.Vi.fromViewState(t.viewState.move(!0,n,s,0))}{const e=t.modelState.selectionStart.getEndPosition();return o.Vi.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const s=e.model.validatePosition(n);return o.Vi.fromModelState(a.w.word(e.cursorConfig,e.model,t.modelState,i,s))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new o.Vi(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return o.Vi.fromViewState(new o.rS(new d.e(i,n,i,n),0,0,new l.L(i,n),0))}static moveTo(e,t,i,n,s){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,s)}const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new l.L(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return o.Vi.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,s,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,s);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,s);case 2:return 2===a?this._moveUpByViewLines(e,t,n,s):this._moveUpByModelLines(e,t,n,s);case 3:return 2===a?this._moveDownByViewLines(e,t,n,s):this._moveDownByModelLines(e,t,n,s);case 4:return 2===a?t.map((t=>o.Vi.fromViewState(r.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>o.Vi.fromModelState(r.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>o.Vi.fromViewState(r.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>o.Vi.fromModelState(r.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,s){const o=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,s),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,s),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 14:{const i=[];for(let s=0,r=t.length;s<r;s++){const r=t[s];i[s]=this.findPositionInViewportIfOutside(e,r,o,n)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,n){const s=t.viewState.position.lineNumber;if(i.startLineNumber<=s&&s<=i.endLineNumber-1)return new o.Vi(t.modelState,t.viewState);{let a;a=s>i.endLineNumber-1?i.endLineNumber-1:s<i.startLineNumber?i.startLineNumber:s;const l=r.o.vertical(e.cursorConfig,e,s,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return o.Vi.fromViewState(t.viewState.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.min(t.endLineNumber,n+i-1)}static _lastLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.max(n,t.endLineNumber-i+1)}static _moveLeft(e,t,i,n){return t.map((t=>o.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s],l=a.viewState.position.lineNumber,d=Math.round(e.getLineLength(l)/2);n[s]=o.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,a.viewState,i,d))}return n}static _moveRight(e,t,i,n){return t.map((t=>o.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s],l=a.viewState.position.lineNumber,d=Math.round(e.getLineLength(l)/2);n[s]=o.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,a.viewState,i,d))}return n}static _moveDownByViewLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromViewState(r.o.moveDown(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveDownByModelLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromModelState(r.o.moveDown(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveUpByViewLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromViewState(r.o.moveUp(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveUpByModelLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.Vi.fromModelState(r.o.moveUp(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveToViewPosition(e,t,i,n,s){return o.Vi.fromViewState(t.viewState.move(i,n,s,0))}static _moveToModelPosition(e,t,i,n,s){return o.Vi.fromModelState(t.modelState.move(i,n,s,0))}static _moveToViewMinColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineMinColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewCenterColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(r)+e.getLineMinColumn(r))/2);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewMaxColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineMaxColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewLastNonWhitespaceColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!s.Kn(e))return!1;const t=e;return!!s.HD(t.to)&&(!(!s.o8(t.select)&&!s.jn(t.select))&&(!(!s.o8(t.by)&&!s.HD(t.by))&&!(!s.o8(t.value)&&!s.hj(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let n=0;switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Character:n=3;break;case e.RawUnit.HalfLine:n=4}return{direction:i,unit:n,select:!!t.select,value:t.value||1}}}(n||(n={}))},67663:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var n=i(78701),s=i(32653),o=i(74633),r=i(28928),a=i(54256),l=i(80646);class d{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-n.HO(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new o.L(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),s=e.getLineContent(t.lineNumber),r=a.l.atomicPosition(s,t.column-1,i,0);if(-1!==r&&r+1>=n)return new o.L(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new d(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,s){let o,r;if(i.hasSelection()&&!n)o=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(s-1)),a=t.normalizePosition(h.clipPositionColumn(n,t),0),l=h.left(e,t,a);o=l.lineNumber,r=l.column}return i.move(n,o,r,0)}static clipPositionColumn(e,t){return new o.L(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=n.vH(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new o.L(t,i)}static rightPositionAtomicSoftTabs(e,t,i,n,s){if(i<e.getLineIndentColumn(t)){const s=e.getLineContent(t),r=a.l.atomicPosition(s,i-1,n,1);if(-1!==r)return new o.L(t,r+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const n=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new d(n.lineNumber,n.column,0)}static moveRight(e,t,i,n,s){let o,r;if(i.hasSelection()&&!n)o=i.selection.endLineNumber,r=i.selection.endColumn;else{const n=i.position.delta(void 0,s-1),a=t.normalizePosition(h.clipPositionColumn(n,t),1),l=h.right(e,t,a);o=l.lineNumber,r=l.column}return i.move(n,o,r,0)}static vertical(e,t,i,n,r,a,l,h){const c=s.i.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize)+r,u=t.getLineCount(),g=1===i&&1===n,p=i===u&&n===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,n=l?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),n)):i>u?(i=u,n=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,c),r=m?0:c-s.i.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==h){const e=new o.L(i,n),s=t.normalizePosition(e,h);r+=n-s.column,i=s.lineNumber,n=s.column}return new d(i,n,r)}static down(e,t,i,n,s,o,r){return this.vertical(e,t,i,n,s,i+o,r,4)}static moveDown(e,t,i,n,s){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);let l,d=0;do{l=h.down(e,t,r+d,a,i.leftoverVisibleColumns,s,!0);if(t.normalizePosition(new o.L(l.lineNumber,l.column),2).lineNumber>r)break}while(d++<10&&r+d<t.getLineCount());return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const n=i.selection,s=h.down(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.rS(new r.e(s.lineNumber,s.column,s.lineNumber,s.column),0,s.leftoverVisibleColumns,new o.L(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,n,s,o,r){return this.vertical(e,t,i,n,s,i-o,r,3)}static moveUp(e,t,i,n,s){let o,r;i.hasSelection()&&!n?(o=i.selection.startLineNumber,r=i.selection.startColumn):(o=i.position.lineNumber,r=i.position.column);const a=h.up(e,t,o,r,i.leftoverVisibleColumns,s,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const n=i.selection,s=h.up(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.rS(new r.e(s.lineNumber,s.column,s.lineNumber,s.column),0,s.leftoverVisibleColumns,new o.L(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let s=i.position.lineNumber;for(;s>1&&this._isBlankLine(t,s);)s--;for(;s>1&&!this._isBlankLine(t,s);)s--;return i.move(n,s,t.getLineMinColumn(s),0)}static moveToNextBlankLine(e,t,i,n){const s=t.getLineCount();let o=i.position.lineNumber;for(;o<s&&this._isBlankLine(t,o);)o++;for(;o<s&&!this._isBlankLine(t,o);)o++;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToBeginningOfLine(e,t,i,n){const s=i.position.lineNumber,o=t.getLineMinColumn(s),r=t.getLineFirstNonWhitespaceColumn(s)||o;let a;return a=i.position.column===r?o:r,i.move(n,s,a,0)}static moveToEndOfLine(e,t,i,n,s){const o=i.position.lineNumber,r=t.getLineMaxColumn(o);return i.move(n,o,r,s?1073741824-r:0)}static moveToBeginningOfBuffer(e,t,i,n){return i.move(n,1,1,0)}static moveToEndOfBuffer(e,t,i,n){const s=t.getLineCount(),o=t.getLineMaxColumn(s);return i.move(n,s,o,0)}}},69922:(e,t,i)=>{"use strict";i.d(t,{Nu:()=>y,u6:()=>b,g_:()=>C});var n=i(16015),s=i(78701),o=i(2196),r=i(80869),a=i(28928),l=i(24854);class d{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.e(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),n=i[0].range,s=i[1].range;return new l.Y(n.endLineNumber,n.endColumn,s.endLineNumber,s.endColumn-this._charAfterSelection.length)}}class h{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new l.Y(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}var c=i(80646),u=i(55412),g=i(74633),p=i(39260),m=i(5580),f=i(35734),_=i(62553),v=i(37036);class b{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=new r.U(i[s],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=new r.U(i[s],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.U.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.U.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){const s=[];for(let r=0,a=i.length;r<a;r++)s[r]=new o.T4(i[r],n[r]);return new c.Tp(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,s){const r=[];for(let l=0,d=i.length;l<d;l++){const e=i[l],t=e.getPosition();if(s&&!e.isEmpty()&&(s=!1),s&&n.indexOf("\n")!==n.length-1&&(s=!1),s){const i=new a.e(t.lineNumber,1,t.lineNumber,1);r[l]=new o.hP(i,n,e,!0)}else r[l]=new o.T4(e,n)}return new c.Tp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,o){if(n)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));const e=s.uq(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,s,o){const r=this._distributePasteToCursors(e,i,n,s,o);return r?(i=i.sort(a.e.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,s)}static _goodIndentForLine(e,t,i){let n=null,o="";const r=(0,_.r7)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,o=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(s.ow(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),l=(0,v.A)(e.autoIndent,t,new a.e(n,r,n,r),e.languageConfigurationService);l&&(o=l.indentation+l.appendText)}return n&&(n===p.wU.Indent&&(o=b.shiftIndent(e,o)),n===p.wU.Outdent&&(o=b.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,n){let s="";const r=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,r),n=e.indentSize,o=n-i%n;for(let e=0;e<o;e++)s+=" "}else s="\t";return new o.T4(i,s,n)}static tab(e,t,i){const n=[];for(let s=0,l=i.length;s<l;s++){const l=i[s];if(l.isEmpty()){const i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||"\t";const d=e.normalizeIndentation(r);if(!i.startsWith(d)){n[s]=new o.T4(new a.e(l.startLineNumber,1,l.startLineNumber,i.length+1),d,!0);continue}}n[s]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){const i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[s]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[s]=new r.U(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,s,o,r,a){const l=n.map((e=>this._compositionType(i,e,s,o,r,a)));return new c.Tp(4,l,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,s,r){if(!t.isEmpty())return null;const l=t.getPosition(),d=Math.max(1,l.column-n),h=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+s),c=new a.e(l.lineNumber,d,l.lineNumber,h);return e.getValueInRange(c)===i&&0===r?null:new o.Uo(c,i,0,r)}static _typeCommand(e,t,i){return i?new o.Sj(e,t,!0):new o.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return b._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){const o=t.getLineContent(n.startLineNumber),r=s.V8(o).substring(0,n.startColumn-1);return b._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}const r=(0,v.A)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===p.wU.None)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.wU.Indent)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.wU.IndentOutdent){const t=e.normalizeIndentation(r.indentation),s=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+s+"\n"+t;return i?new o.Sj(n,a,!0):new o.Uo(n,a,-1,s.length-t.length,!0)}if(r.indentAction===p.wU.Outdent){const t=b.unshiftIndent(e,r.indentation);return b._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}const a=t.getLineContent(n.startLineNumber),l=s.V8(a).substring(0,n.startColumn-1);if(e.autoIndent>=4){const r=(0,_.UF)(e.autoIndent,t,n,{unshiftIndent:t=>b.unshiftIndent(e,t),shiftIndent:t=>b.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let a=e.visibleColumnFromColumn(t,n.getEndPosition());const l=n.endColumn,d=t.getLineContent(n.endLineNumber),h=s.LC(d);if(n=h>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,h+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new o.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new o.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return b._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,s=i.length;n<s;n++)if(!t.tokenization.isCheapToTokenize(i[n].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){const s=(0,m.u0)(t,i.startLineNumber,i.startColumn),o=(0,_.$9)(e.autoIndent,t,i,n,{shiftIndent:t=>b.shiftIndent(e,t),unshiftIndent:t=>b.unshiftIndent(e,t)},e.languageConfigurationService);if(null===o)return null;if(o!==e.normalizeIndentation(s)){const s=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===s?b._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+n,!1):b._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+t.getLineContent(i.startLineNumber).substring(s-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let o=0,r=i.length;o<r;o++){const r=i[o];if(!r.isEmpty())return!1;const a=r.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==s)return!1;const d=(0,c.LN)(s);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&d)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){const i=n[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,s){const r=[];for(let l=0,d=n.length;l<d;l++){const e=n[l].getPosition(),t=new a.e(e.lineNumber,e.column,e.lineNumber,e.column+1);r[l]=new o.T4(t,s)}return new c.Tp(4,r,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],s=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],o=n.some((e=>t.startsWith(e.open))),r=s.some((e=>t.startsWith(e.close)));return!o&&r}static _findAutoClosingPairOpen(e,t,i,n){const s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let o=null;for(const r of s)if(null===o||r.open.length>o.open.length){let e=!0;for(const s of i){if(t.getValueInRange(new a.e(s.lineNumber,s.column-r.open.length+1,s.lineNumber,s.column))+n!==r.open){e=!1;break}}e&&(o=r)}return o}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let s=null;for(const o of n)o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!s||o.open.length>s.open.length)&&(s=o);return s}static _getAutoClosingPairClose(e,t,i,n,s){for(const c of i)if(!c.isEmpty())return null;const o=i.map((e=>{const t=e.getPosition();return s?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),r=this._findAutoClosingPairOpen(e,t,o.map((e=>new g.L(e.lineNumber,e.beforeColumn))),n);if(!r)return null;let a,l;if((0,c.LN)(n))a=e.autoClosingQuotes,l=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&r.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,l=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,l=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const d=this._findContainedAutoClosingPair(e,r),h=d?d.close:"";let p=!0;for(const c of o){const{lineNumber:i,beforeColumn:s,afterColumn:o}=c,d=t.getLineContent(i),g=d.substring(0,s-1),m=d.substring(o-1);if(m.startsWith(h)||(p=!1),m.length>0){const t=m.charAt(0);if(!b._isBeforeClosingBrace(e,m)&&!l(t))return null}if(1===r.open.length&&("'"===n||'"'===n)&&"always"!==a){const t=(0,u.u)(e.wordSeparators,[]);if(g.length>0){const e=g.charCodeAt(g.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,f.wH)(_,s-1);if(!r.shouldAutoClose(v,s-v.firstCharOffset))return null;const C=r.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,s,C);if(!r.isOK(e))return null}}return p?r.close.substring(0,r.close.length-h.length):r.close}static _runAutoClosingOpenCharType(e,t,i,n,s,o,r){const a=[];for(let l=0,d=n.length;l<d;l++){const e=n[l];a[l]=new C(e,s,!o,r)}return new c.Tp(4,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,c.LN)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!b._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;const s=(0,c.LN)(n);for(const o of i){if(o.isEmpty())return!1;let e=!0;for(let i=o.startLineNumber;i<=o.endLineNumber;i++){const n=t.getLineContent(i),s=i===o.startLineNumber?o.startColumn-1:0,r=i===o.endLineNumber?o.endColumn-1:n.length,a=n.substring(s,r);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(s&&o.startLineNumber===o.endLineNumber&&o.startColumn+1===o.endColumn){const e=t.getValueInRange(o);if((0,c.LN)(e))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,s){const o=[];for(let r=0,a=n.length;r<a;r++){const e=n[r],i=t.surroundingPairs[s];o[r]=new d(e,s,i)}return new c.Tp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,r,l){if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;const d=r.getPosition();i.tokenization.forceTokenization(d.lineNumber);const h=i.tokenization.getLineTokens(d.lineNumber);let u;try{u=t.onElectricCharacter(l,h,d.column)}catch(g){return(0,n.dL)(g),null}if(!u)return null;if(u.matchOpenBracket){const n=(h.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:d.lineNumber,column:n},500);if(r){if(r.startLineNumber===d.lineNumber)return null;const n=i.getLineContent(r.startLineNumber),h=s.V8(n),u=t.normalizeIndentation(h),g=i.getLineContent(d.lineNumber),p=i.getLineFirstNonWhitespaceColumn(d.lineNumber)||d.column,m=u+g.substring(p-1,d.column-1)+l,f=new a.e(d.lineNumber,1,d.lineNumber,d.column),_=new o.T4(f,m);return new c.Tp(w(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,s,r){if(!n)return null;let l=null;for(const o of n)if(null===l)l=o.insertedText;else if(l!==o.insertedText)return null;if(!l||1!==l.length)return null;const d=l;let u=!1;for(const o of n)if(0!==o.deletedText.length){u=!0;break}if(u){if(!b._shouldSurroundChar(t,d)||!t.surroundingPairs.hasOwnProperty(d))return null;const e=(0,c.LN)(d);for(const t of n){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,c.LN)(t.deletedText))return null}const i=[];for(const t of s){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==n.length)return null;const o=[];for(let s=0,r=i.length;s<r;s++)o.push(new h(i[s],n[s].deletedText,t.surroundingPairs[d]));return new c.Tp(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,s,r,d)){const e=s.map((e=>new o.T4(new a.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const g=this._getAutoClosingPairClose(t,i,s,d,!0);return null!==g?this._runAutoClosingOpenCharType(e,t,i,s,d,!0,g):null}static typeWithInterceptors(e,t,i,n,s,r,a){if(!e&&"\n"===a){const e=[];for(let t=0,o=s.length;t<o;t++)e[t]=b._enter(i,n,!1,s[t]);return new c.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,s)){const e=[];let t=!1;for(let o=0,r=s.length;o<r;o++)if(e[o]=this._runAutoIndentType(i,n,s[o],a),!e[o]){t=!0;break}if(!t)return new c.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,s,r,a))return this._runAutoClosingOvertype(t,i,n,s,a);if(!e){const e=this._getAutoClosingPairClose(i,n,s,a,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,s,a,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,s,a))return this._runSurroundSelectionType(t,i,n,s,a);if(!e&&this._isTypeInterceptorElectricChar(i,n,s)){const e=this._typeInterceptorElectricChar(t,i,n,s[0],a);if(e)return e}const l=[];for(let h=0,c=s.length;h<c;h++)l[h]=new o.T4(s[h],a);const d=w(a,t);return new c.Tp(d,l,{shouldPushStackElementBefore:S(t,d),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,s){const r=[];for(let l=0,d=n.length;l<d;l++)r[l]=new o.T4(n[l],s);const a=w(s,e);return new c.Tp(a,r,{shouldPushStackElementBefore:S(e,a),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,r=i.length;s<r;s++){let r=i[s].positionLineNumber;if(1===r)n[s]=new o.Sj(new a.e(1,1,1,1),"\n");else{r--;const i=t.getLineMaxColumn(r);n[s]=this._enter(e,t,!1,new a.e(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,o=i.length;s<o;s++){const o=i[s].positionLineNumber,r=t.getLineMaxColumn(o);n[s]=this._enter(e,t,!1,new a.e(o,r,o,r))}return n}static lineBreakInsert(e,t,i){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=this._enter(e,t,!0,i[s]);return n}}class C extends o.Uo{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.e(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new a.e(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class y{constructor(e,t,i,n,s,o){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=s,this.insertedSelectionEnd=o}}function w(e,t){return" "===e?5===t||6===t?6:5:4}function S(e,t){return!(!L(e)||L(t))||5!==e&&x(e)!==x(t)}function x(e){return 6===e||5===e?"space":e}function L(e){return 4===e||5===e||6===e}},59571:(e,t,i)=>{"use strict";i.d(t,{L:()=>h,w:()=>d});var n=i(78701),s=i(80646),o=i(1603),r=i(55412),a=i(74633),l=i(28928);class d{static _createWord(e,t,i,n,s){return{start:n,end:s,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;const s=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let o=i.column-2;o>=0;o--){const i=e.charCodeAt(o),r=t.get(i);if(s&&o===s.index)return this._createIntlWord(s,r);if(0===r){if(2===n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const s=t.findNextIntlWordAtOrAfterOffset(e,n),o=e.length;for(let r=n;r<o;r++){const n=e.charCodeAt(r),o=t.get(n);if(s&&r===s.index+s.segment.length)return r;if(1===o)return r;if(1===i&&2===o)return r;if(2===i&&0===o)return r}return o}static _findNextWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(n,e,i)}static _doFindNextWordOnLine(e,t,i){let n=0;const s=e.length,o=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let r=i.column-1;r<s;r++){const i=e.charCodeAt(r),s=t.get(i);if(o&&r===o.index)return this._createIntlWord(o,s);if(0===s){if(2===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r);n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r);n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r)}return 0!==n?this._createWord(e,n,1,this._findStartOfWord(e,t,n,s-1),s):null}static _findStartOfWord(e,t,i,n){const s=t.findPrevIntlWordBeforeOrAtOffset(e,n);for(let o=n;o>=0;o--){const n=e.charCodeAt(o),r=t.get(n);if(s&&o===s.index)return o;if(1===r)return o+1;if(1===i&&2===r)return o+1;if(2===i&&0===r)return o+1}return 0}static moveWordLeft(e,t,i,n){let s=i.lineNumber,o=i.column;1===o&&s>1&&(s-=1,o=t.getLineMaxColumn(s));let r=d._findPreviousWordOnLine(e,t,new a.L(s,o));if(0===n)return new a.L(s,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start===1&&0===r.nextCharClass&&(r=d._findPreviousWordOnLine(e,t,new a.L(s,r.start+1))),new a.L(s,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=d._findPreviousWordOnLine(e,t,new a.L(s,r.start+1));return new a.L(s,r?r.start+1:1)}return r&&o<=r.end+1&&(r=d._findPreviousWordOnLine(e,t,new a.L(s,r.start+1))),new a.L(s,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.L(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const e=o.charCodeAt(r-2),t=o.charCodeAt(r-1);if(95===e&&95!==t)return new a.L(i,r);if(45===e&&45!==t)return new a.L(i,r);if((n.mK(e)||n.T5(e))&&n.df(t))return new a.L(i,r);if(n.df(e)&&n.df(t)&&r+1<s){const e=o.charCodeAt(r);if(n.mK(e)||n.T5(e))return new a.L(i,r)}}return new a.L(i,1)}static moveWordRight(e,t,i,n){let s=i.lineNumber,o=i.column,r=!1;o===t.getLineMaxColumn(s)&&s<t.getLineCount()&&(r=!0,s+=1,o=1);let l=d._findNextWordOnLine(e,t,new a.L(s,o));if(2===n)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new a.L(s,l.end+1))),o=l?l.end+1:t.getLineMaxColumn(s);else if(3===n){for(r&&(o=0);l&&(2===l.wordType||l.start+1<=o);)l=d._findNextWordOnLine(e,t,new a.L(s,l.end+1));o=l?l.start+1:t.getLineMaxColumn(s)}else l&&!r&&o>=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.L(s,l.end+1))),o=l?l.start+1:t.getLineMaxColumn(s);return new a.L(s,o)}static _moveWordPartRight(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(t.column===s)return i<e.getLineCount()?new a.L(i+1,1):t;const o=e.getLineContent(i);for(let r=t.column+1;r<s;r++){const e=o.charCodeAt(r-2),t=o.charCodeAt(r-1);if(95!==e&&95===t)return new a.L(i,r);if(45!==e&&45===t)return new a.L(i,r);if((n.mK(e)||n.T5(e))&&n.df(t))return new a.L(i,r);if(n.df(e)&&n.df(t)&&r+1<s){const e=o.charCodeAt(r);if(n.mK(e)||n.T5(e))return new a.L(i,r)}}return new a.L(i,s)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-2,o=n.ow(i,s);return o+1<s?new l.e(t.lineNumber,o+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,n=e.model,s=e.selection,r=e.whitespaceHeuristics;if(!s.isEmpty())return s;if(o.A.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new l.e(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.L(s.positionLineNumber,s.positionColumn);let c=h.lineNumber,u=h.column;if(1===c&&1===u)return null;if(r){const e=this._deleteWordLeftWhitespace(n,h);if(e)return e}let g=d._findPreviousWordOnLine(i,n,h);return 0===t?g?u=g.start+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c)):(g&&u<=g.end+1&&(g=d._findPreviousWordOnLine(i,n,new a.L(c,g.start+1))),g?u=g.end+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c))),new l.e(c,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.L(i.positionLineNumber,i.positionColumn),s=this._deleteInsideWordWhitespace(t,n);return s||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let s=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,s))return null;let o=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,o))return null;for(;s>0&&this._charAtIsWhitespace(i,s-1);)s--;for(;o+1<n&&this._charAtIsWhitespace(i,o+1);)o++;return new l.e(t.lineNumber,s+1,t.lineNumber,o+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const n=t.getLineContent(i.lineNumber),s=n.length;if(0===s)return i.lineNumber>1?new l.e(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.e(i.lineNumber,1,i.lineNumber+1,1):new l.e(i.lineNumber,1,i.lineNumber,1);const o=e=>e.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.e(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<s&&this._charAtIsWhitespace(n,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},h=d._findPreviousWordOnLine(e,t,i);if(h&&o(h))return a(h);const c=d._findNextWordOnLine(e,t,i);return c&&o(c)?a(c):h&&c?r(h.end+1,c.start+1):h?r(h.start+1,h.end+1):c?r(c.start+1,c.end+1):r(1,s+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartLeft(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n<i;n++){const t=e.charAt(n);if(" "!==t&&"\t"!==t)return n}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-1,s=this._findFirstNonWhitespaceChar(i,n);return n+1<s?new l.e(t.lineNumber,t.column,t.lineNumber,s+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,n=e.model,s=e.selection,o=e.whitespaceHeuristics;if(!s.isEmpty())return s;const r=new a.L(s.positionLineNumber,s.positionColumn);let h=r.lineNumber,c=r.column;const u=n.getLineCount(),g=n.getLineMaxColumn(h);if(h===u&&c===g)return null;if(o){const e=this._deleteWordRightWhitespace(n,r);if(e)return e}let p=d._findNextWordOnLine(i,n,r);return 2===t?p?c=p.end+1:c<g||h===u?c=g:(h++,p=d._findNextWordOnLine(i,n,new a.L(h,1)),c=p?p.start+1:n.getLineMaxColumn(h)):(p&&c>=p.start+1&&(p=d._findNextWordOnLine(i,n,new a.L(h,p.end+1))),p?c=p.start+1:c<g||h===u?c=g:(h++,p=d._findNextWordOnLine(i,n,new a.L(h,1)),c=p?p.start+1:n.getLineMaxColumn(h))),new l.e(h,c,r.lineNumber,r.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartRight(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _createWordAtPosition(e,t,i){const n=new l.e(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(n),startColumn:n.startColumn,endColumn:n.endColumn}}static getWordAtPosition(e,t,i,n){const s=(0,r.u)(t,i),o=d._findPreviousWordOnLine(s,e,n);if(o&&1===o.wordType&&o.start<=n.column-1&&n.column-1<=o.end)return d._createWordAtPosition(e,n.lineNumber,o);const a=d._findNextWordOnLine(s,e,n);return a&&1===a.wordType&&a.start<=n.column-1&&n.column-1<=a.end?d._createWordAtPosition(e,n.lineNumber,a):null}static word(e,t,i,n,o){const h=(0,r.u)(e.wordSeparators,e.wordSegmenterLocales),c=d._findPreviousWordOnLine(h,t,o),u=d._findNextWordOnLine(h,t,o);if(!n){let e,i;return c&&1===c.wordType&&c.start<=o.column-1&&o.column-1<=c.end?(e=c.start+1,i=c.end+1):u&&1===u.wordType&&u.start<=o.column-1&&o.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=c?c.end+1:1,i=u?u.start+1:t.getLineMaxColumn(o.lineNumber)),new s.rS(new l.e(o.lineNumber,e,o.lineNumber,i),1,0,new a.L(o.lineNumber,i),0)}let g,p;c&&1===c.wordType&&c.start<o.column-1&&o.column-1<c.end?(g=c.start+1,p=c.end+1):u&&1===u.wordType&&u.start<o.column-1&&o.column-1<u.end?(g=u.start+1,p=u.end+1):(g=o.column,p=o.column);const m=o.lineNumber;let f;if(i.selectionStart.containsPosition(o))f=i.selectionStart.endColumn;else if(o.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.L(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.L(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends d{static deleteWordPartLeft(e){const t=c([d.deleteWordLeft(e,0),d.deleteWordLeft(e,2),d._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.e.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=c([d.deleteWordRight(e,0),d.deleteWordRight(e,2),d._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.e.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){const n=c([d.moveWordLeft(e,t,i,0),d.moveWordLeft(e,t,i,2),d._moveWordPartLeft(t,i)]);return n.sort(a.L.compare),n[2]}static moveWordPartRight(e,t,i){const n=c([d.moveWordRight(e,t,i,0),d.moveWordRight(e,t,i,2),d._moveWordPartRight(t,i)]);return n.sort(a.L.compare),n[0]}}function c(e){return e.filter((e=>Boolean(e)))}},80646:(e,t,i)=>{"use strict";i.d(t,{LM:()=>u,LN:()=>v,Tp:()=>_,Vi:()=>g,rS:()=>f});var n=i(74633),s=i(28928),o=i(24854),r=i(35734),a=i(32653),l=i(42156);const d=()=>!0,h=()=>!1,c=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(145)||e.hasChanged(131)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(128)||e.hasChanged(50)||e.hasChanged(91)||e.hasChanged(130)}constructor(e,t,i,n){var s;this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,r=o.get(145),a=o.get(50);this.readOnly=o.get(91),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(116),this.lineHeight=a.lineHeight,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(128),this.wordSeparators=o.get(131),this.emptySelectionClipboard=o.get(37),this.copyWithSyntaxHighlighting=o.get(25),this.multiCursorMergeOverlapping=o.get(77),this.multiCursorPaste=o.get(79),this.multiCursorLimit=o.get(80),this.autoClosingBrackets=o.get(6),this.autoClosingComments=o.get(7),this.autoClosingQuotes=o.get(11),this.autoClosingDelete=o.get(9),this.autoClosingOvertype=o.get(10),this.autoSurround=o.get(14),this.autoIndent=o.get(12),this.wordSegmenterLocales=o.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const l=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(l)for(const h of l)this.surroundingPairs[h.open]=h.close;const d=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=null!==(s=null===d||void 0===d?void 0:d.blockCommentStartToken)&&void 0!==s?s:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t)for(const e of t)this._electricChars[e]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=(0,r.wH)(t,i-1),s=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return s?s.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return(0,l.x)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return c;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return d;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.i.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=a.i.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),s=e.getLineMinColumn(t);if(n<s)return s;const o=e.getLineMaxColumn(t);return n>o?o:n}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=o.Y.liftSelection(e),i=new f(s.e.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,n,s){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=n,this.leftoverVisibleColumns=s,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,o){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new n.L(t,i),o):new f(new s.e(t,i,t,i),0,o,new n.L(t,i),o)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?o.Y.fromPositions(e.getStartPosition(),t):o.Y.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},36598:(e,t,i)=>{"use strict";i.d(t,{KU:()=>r,NT:()=>h,i8:()=>a,n0:()=>d,zl:()=>l});var n=i(51833),s=i(16015),o=i(93845);class r{static trivial(e,t){return new r([new a(o.q.ofLength(e.length),o.q.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new r([new a(o.q.ofLength(e.length),o.q.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,n.zy)(e,((e,n)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():l.zero,n?n.getStarts():new l(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new o.q(e.offset1,t.offset1),new o.q(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}l.zero=new l(0,0),l.max=new l(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class d{isValid(){return!0}}d.instance=new d;class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new s.he("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},809:(e,t,i)=>{"use strict";i.d(t,{DW:()=>M});var n=i(51833),s=i(56702),o=i(47638),r=i(93845),a=i(28928),l=i(36598);class d{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class c{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let n=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const e=t[s];for(let t=0;t<e.length;t++){n++;const i=e[t],s=c.getKey(i);this.histogram[s]=(this.histogram[s]||0)+1}n++;const i=c.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=n}computeSimilarity(e){var t,i;let n=0;const s=Math.max(this.histogram.length,e.histogram.length);for(let o=0;o<s;o++)n+=Math.abs((null!==(t=this.histogram[o])&&void 0!==t?t:0)-(null!==(i=e.histogram[o])&&void 0!==i?i:0));return 1-n/(this.totalCount+e.totalCount)}}c.chrKeys=new Map;class u{compute(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.n0.instance,n=arguments.length>3?arguments[3]:void 0;if(0===e.length||0===t.length)return l.KU.trivial(e,t);const s=new d(e.length,t.length),o=new d(e.length,t.length),a=new d(e.length,t.length);for(let r=0;r<e.length;r++)for(let d=0;d<t.length;d++){if(!i.isValid())return l.KU.trivialTimedOut(e,t);const h=0===r?0:s.get(r-1,d),c=0===d?0:s.get(r,d-1);let u;e.getElement(r)===t.getElement(d)?(u=0===r||0===d?0:s.get(r-1,d-1),r>0&&d>0&&3===o.get(r-1,d-1)&&(u+=a.get(r-1,d-1)),u+=n?n(r,d):1):u=-1;const g=Math.max(h,c,u);if(g===u){const e=r>0&&d>0?a.get(r-1,d-1):0;a.set(r,d,e+1),o.set(r,d,3)}else g===h?(a.set(r,d,0),o.set(r,d,1)):g===c&&(a.set(r,d,0),o.set(r,d,2));s.set(r,d,g)}const h=[];let c=e.length,u=t.length;function g(e,t){e+1===c&&t+1===u||h.push(new l.i8(new r.q(e+1,c),new r.q(t+1,u))),c=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===o.get(p,m)?(g(p,m),p--,m--):1===o.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new l.KU(h,!1)}}class g{compute(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.n0.instance;if(0===e.length||0===t.length)return l.KU.trivial(e,t);const n=e,s=t;function o(e,t){for(;e<n.length&&t<s.length&&n.getElement(e)===s.getElement(t);)e++,t++;return e}let a=0;const d=new m;d.set(0,o(0,0));const h=new f;h.set(0,0===d.get(0)?null:new p(null,0,0,d.get(0)));let c=0;e:for(;;){if(a++,!i.isValid())return l.KU.trivialTimedOut(n,s);const e=-Math.min(a,s.length+a%2),t=Math.min(a,n.length+a%2);for(c=e;c<=t;c+=2){let i=0;const r=c===t?-1:d.get(c+1),a=c===e?-1:d.get(c-1)+1;i++;const l=Math.min(Math.max(r,a),n.length),u=l-c;if(i++,l>n.length||u>s.length)continue;const g=o(l,u);d.set(c,g);const m=l===r?h.get(c+1):h.get(c-1);if(h.set(c,g!==l?new p(m,l,u,g-l):m),d.get(c)===n.length&&d.get(c)-c===s.length)break e}}let u=h.get(c);const g=[];let _=n.length,v=s.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new l.i8(new r.q(e,_),new r.q(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new l.KU(g,!1)}}class p{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var _=i(17053),v=i(91206),b=i(38079),C=i(74633);class y{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let n=!1;t.start>0&&t.endExclusive>=e.length&&(t=new r.q(t.start-1,t.endExclusive),n=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let t=e[s],o=0;if(n)o=t.length,t="",n=!1;else if(!i){const e=t.trimStart();o=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(o);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));s<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new r.q(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=L(e>0?this.elements[e-1]:-1),i=L(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let n=0;return t!==i&&(n+=10,0===t&&1===i&&(n+=1)),n+=x(t),n+=x(i),n}translateOffset(e){if(this.lineRange.isEmpty)return new C.L(this.lineRange.start+1,1);const t=(0,v.Jw)(this.firstCharOffsetByLine,(t=>t<=e));return new C.L(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return a.e.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!w(this.elements[e]))return;let t=e;for(;t>0&&w(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&w(this.elements[i]);)i++;return new r.q(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,i;const n=null!==(t=(0,v.ti)(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,s=null!==(i=(0,v.cn)(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==i?i:this.elements.length;return new r.q(n,s)}}function w(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const S={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function x(e){return S[e]}function L(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function k(e,t,i,s,r,a){let{moves:l,excludedChanges:d}=function(e,t,i,n){const s=[],o=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new c(e.original,t,e))),r=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new c(e.modified,i,e)))),a=new Set;for(const l of o){let e,t=-1;for(const i of r){const n=l.computeSimilarity(i);n>t&&(t=n,e=i)}if(t>.9&&e&&(r.delete(e),s.push(new _.f0(l.range,e.range)),a.add(l.source),a.add(e.source)),!n.isValid())return{moves:s,excludedChanges:a}}return{moves:s,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,s,r,a){const l=[],d=new b.ri;for(const n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;d.add(i,{range:new o.z(e,e+3)})}const h=[];e.sort((0,n.tT)((e=>e.modified.startLineNumber),n.fv));for(const n of e){let e=[];for(let t=n.modified.startLineNumber;t<n.modified.endLineNumberExclusive-2;t++){const n=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,s=new o.z(t,t+3),r=[];d.forEach(n,(t=>{let{range:i}=t;for(const a of e)if(a.originalLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive&&a.modifiedLineRange.endLineNumberExclusive+1===s.endLineNumberExclusive)return a.originalLineRange=new o.z(a.originalLineRange.startLineNumber,i.endLineNumberExclusive),a.modifiedLineRange=new o.z(a.modifiedLineRange.startLineNumber,s.endLineNumberExclusive),void r.push(a);const n={modifiedLineRange:s,originalLineRange:i};h.push(n),r.push(n)})),e=r}if(!a.isValid())return[]}h.sort((0,n.BV)((0,n.tT)((e=>e.modifiedLineRange.length),n.fv)));const c=new o.i,u=new o.i;for(const n of h){const e=n.modifiedLineRange.startLineNumber-n.originalLineRange.startLineNumber,t=c.subtractFrom(n.modifiedLineRange),i=u.subtractFrom(n.originalLineRange).getWithDelta(e),s=t.getIntersection(i);for(const n of s.ranges){if(n.length<3)continue;const t=n,i=n.delta(-e);l.push(new _.f0(i,t)),c.addRange(t),u.addRange(i)}}l.sort((0,n.tT)((e=>e.original.startLineNumber),n.fv));const g=new v.b1(e);for(let n=0;n<l.length;n++){const t=l[n],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),d=(0,v.ti)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-d.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.ti)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let b,C;for(b=0;b<h;b++){const e=t.original.startLineNumber-b-1,i=t.modified.startLineNumber-b-1;if(e>s.length||i>r.length)break;if(c.contains(i)||u.contains(e))break;if(!D(s[e-1],r[i-1],a))break}for(b>0&&(u.addRange(new o.z(t.original.startLineNumber-b,t.original.startLineNumber)),c.addRange(new o.z(t.modified.startLineNumber-b,t.modified.startLineNumber))),C=0;C<f;C++){const e=t.original.endLineNumberExclusive+C,i=t.modified.endLineNumberExclusive+C;if(e>s.length||i>r.length)break;if(c.contains(i)||u.contains(e))break;if(!D(s[e-1],r[i-1],a))break}C>0&&(u.addRange(new o.z(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+C)),c.addRange(new o.z(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+C))),(b>0||C>0)&&(l[n]=new _.f0(new o.z(t.original.startLineNumber-b,t.original.endLineNumberExclusive+C),new o.z(t.modified.startLineNumber-b,t.modified.endLineNumberExclusive+C)))}return l}(e.filter((e=>!d.has(e))),s,r,t,i,a);return(0,n.vA)(l,h),l=function(e){if(0===e.length)return e;e.sort((0,n.tT)((e=>e.original.startLineNumber),n.fv));const t=[e[0]];for(let i=1;i<e.length;i++){const n=t[t.length-1],s=e[i],o=s.original.startLineNumber-n.original.endLineNumberExclusive,r=s.modified.startLineNumber-n.modified.endLineNumberExclusive;o>=0&&r>=0&&o+r<=2?t[t.length-1]=n.join(s):t.push(s)}return t}(l),l=l.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const n of e)t(n)&&i++;return i}(i,(e=>e.length>=2))>=2})),l=function(e,t){const i=new v.b1(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.f0(new o.z(1,1),new o.z(1,1)))!==(0,v.ti)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,l),l}function D(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const n=(new g).compute(new y([e],new r.q(0,1),!1),new y([t],new r.q(0,1),!1),i);let s=0;const o=l.i8.invert(n.diffs,e.length);for(const r of o)r.seq1Range.forEach((t=>{h(e.charCodeAt(t))||s++}));const a=function(t){let i=0;for(let n=0;n<e.length;n++)h(t.charCodeAt(n))||i++;return i}(e.length>t.length?e:t);return s/a>.6&&a>10}var N=i(30886);class E{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:T(this.lines[e-1]))+(e===this.lines.length?0:T(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function T(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var I=i(67391);class M{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,n.fS)(e,t,((e,t)=>e===t)))return new I.h([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new I.h([new _.gB(new o.z(1,e.length+1),new o.z(1,t.length+1),[new _.iy(new a.e(1,1,e.length,e[0].length+1),new a.e(1,1,t.length,t[0].length+1))])],[],!1);const d=0===i.maxComputationTimeMs?l.n0.instance:new l.NT(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,c=new Map;function u(e){let t=c.get(e);return void 0===t&&(t=c.size,c.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new E(g,e),f=new E(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,d,((i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99)):this.myersDiffingAlgorithm.compute(m,f))();let b=v.diffs,C=v.hitTimeout;b=(0,N.xG)(m,f,b),b=(0,N.rh)(m,f,b);const y=[],w=i=>{if(h)for(let n=0;n<i;n++){const i=S+n,s=x+n;if(e[i]!==t[s]){const n=this.refineDiff(e,t,new l.i8(new r.q(i,i+1),new r.q(s,s+1)),d,h);for(const e of n.mappings)y.push(e);n.hitTimeout&&(C=!0)}}};let S=0,x=0;for(const n of b){(0,s.eZ)((()=>n.seq1Range.start-S===n.seq2Range.start-x));w(n.seq1Range.start-S),S=n.seq1Range.endExclusive,x=n.seq2Range.endExclusive;const i=this.refineDiff(e,t,n,d,h);i.hitTimeout&&(C=!0);for(const e of i.mappings)y.push(e)}w(e.length-S);const L=A(y,e,t);let k=[];return i.computeMoves&&(k=this.computeMoves(L,e,t,g,p,d,h)),(0,s.eZ)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const s of L){if(!s.innerChanges)return!1;for(const n of s.innerChanges){if(!(i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e)))return!1}if(!n(s.modified,t)||!n(s.original,e))return!1}return!0})),new I.h(L,k,C)}computeMoves(e,t,i,n,s,o,r){return k(e,t,i,n,s,o).map((e=>{const n=A(this.refineDiff(t,i,new l.i8(e.original.toOffsetRange(),e.modified.toOffsetRange()),o,r).mappings,t,i,!0);return new I.y(e,n)}))}refineDiff(e,t,i,n,s){const o=new y(e,i.seq1Range,s),r=new y(t,i.seq2Range,s),a=o.length+r.length<500?this.dynamicProgrammingDiffing.compute(o,r,n):this.myersDiffingAlgorithm.compute(o,r,n);let l=a.diffs;l=(0,N.xG)(o,r,l),l=(0,N.g0)(o,r,l),l=(0,N.oK)(o,r,l),l=(0,N.DI)(o,r,l);return{mappings:l.map((e=>new _.iy(o.translateRange(e.seq1Range),r.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function A(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=[];for(const s of(0,n.mw)(e.map((e=>function(e,t,i){let n=0,s=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(s=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(n=1);const r=new o.z(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+s),a=new o.z(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+s);return new _.gB(r,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];a.push(new _.gB(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,s.eZ)((()=>{if(!r&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,s.DM)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),a}},30886:(e,t,i)=>{"use strict";i.d(t,{DI:()=>u,g0:()=>h,oK:()=>d,rh:()=>c,xG:()=>r});var n=i(51833),s=i(93845),o=i(36598);function r(e,t,i){let n=i;return n=a(e,t,n),n=a(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n<i.length;n++){const o=n>0?i[n-1]:void 0,r=i[n],a=n+1<i.length?i[n+1]:void 0,d=new s.q(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new s.q(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);r.seq1Range.isEmpty?i[n]=l(r,e,t,d,h):r.seq2Range.isEmpty&&(i[n]=l(r.swap(),t,e,h,d).swap())}return i}(e,t,n),n}function a(e,t,i){if(0===i.length)return i;const n=[];n.push(i[0]);for(let a=1;a<i.length;a++){const r=n[n.length-1];let l=i[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const i=l.seq1Range.start-r.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(l.seq1Range.start-a)===e.getElement(l.seq1Range.endExclusive-a)&&t.getElement(l.seq2Range.start-a)===t.getElement(l.seq2Range.endExclusive-a));a++);if(a--,a===i){n[n.length-1]=new o.i8(new s.q(r.seq1Range.start,l.seq1Range.endExclusive-i),new s.q(r.seq2Range.start,l.seq2Range.endExclusive-i));continue}l=l.delta(-a)}n.push(l)}const r=[];for(let a=0;a<n.length-1;a++){const i=n[a+1];let l=n[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const r=i.seq1Range.start-l.seq1Range.endExclusive;let d;for(d=0;d<r&&(e.isStronglyEqual(l.seq1Range.start+d,l.seq1Range.endExclusive+d)&&t.isStronglyEqual(l.seq2Range.start+d,l.seq2Range.endExclusive+d));d++);if(d===r){n[a+1]=new o.i8(new s.q(l.seq1Range.start+r,i.seq1Range.endExclusive),new s.q(l.seq2Range.start+r,i.seq2Range.endExclusive));continue}d>0&&(l=l.delta(d))}r.push(l)}return n.length>0&&r.push(n[n.length-1]),r}function l(e,t,i,n,s){let o=1;for(;e.seq1Range.start-o>=n.start&&e.seq2Range.start-o>=s.start&&i.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let r=0;for(;e.seq1Range.start+r<n.endExclusive&&e.seq2Range.endExclusive+r<s.endExclusive&&i.isStronglyEqual(e.seq2Range.start+r,e.seq2Range.endExclusive+r)&&r<100;)r++;if(0===o&&0===r)return e;let a=0,l=-1;for(let d=-o;d<=r;d++){const n=e.seq2Range.start+d,s=e.seq2Range.endExclusive+d,o=e.seq1Range.start+d,r=t.getBoundaryScore(o)+i.getBoundaryScore(n)+i.getBoundaryScore(s);r>l&&(l=r,a=d)}return e.delta(a)}function d(e,t,i){const n=[];for(const s of i){const e=n[n.length-1];e?s.seq1Range.start-e.seq1Range.endExclusive<=2||s.seq2Range.start-e.seq2Range.endExclusive<=2?n[n.length-1]=new o.i8(e.seq1Range.join(s.seq1Range),e.seq2Range.join(s.seq2Range)):n.push(s):n.push(s)}return n}function h(e,t,i){const n=o.i8.invert(i,e.length),s=[];let r=new o.zl(0,0);function a(i,a){if(i.offset1<r.offset1||i.offset2<r.offset2)return;const l=e.findWordContaining(i.offset1),d=t.findWordContaining(i.offset2);if(!l||!d)return;let h=new o.i8(l,d);const c=h.intersect(a);let u=c.seq1Range.length,g=c.seq2Range.length;for(;n.length>0;){const i=n[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const s=e.findWordContaining(i.seq1Range.start),r=t.findWordContaining(i.seq2Range.start),a=new o.i8(s,r),l=a.intersect(i);if(u+=l.seq1Range.length,g+=l.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;n.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&s.push(h),r=h.getEndExclusives()}for(;n.length>0;){const e=n.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const n=e[0],s=t[0];let o;o=n&&(!s||n.seq1Range.start<s.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=o.seq1Range.start?i[i.length-1]=i[i.length-1].join(o):i.push(o)}return i}(i,s)}function c(e,t,i){let n=i;if(0===n.length)return n;let o,r=0;do{o=!1;const a=[n[0]];for(let l=1;l<n.length;l++){const d=n[l],h=a[a.length-1];function c(t,i){const n=new s.q(h.seq1Range.endExclusive,d.seq1Range.start);return e.getText(n).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}c(h,d)?(o=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}n=a}while(r++<10&&o);return n}function u(e,t,i){let r=i;if(0===r.length)return r;let a,l=0;do{a=!1;const h=[r[0]];for(let c=1;c<r.length;c++){const u=r[c],g=h[h.length-1];function p(i,n){const o=new s.q(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const r=e.getText(o).trim();if(r.length>20||r.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),l=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,c=e.countLinesIn(n.seq1Range),p=n.seq1Range.length,m=t.countLinesIn(n.seq2Range),f=n.seq2Range.length,_=130;function v(e){return Math.min(e,_)}return Math.pow(Math.pow(v(40*a+l),1.5)+Math.pow(v(40*d+h),1.5),1.5)+Math.pow(Math.pow(v(40*c+p),1.5)+Math.pow(v(40*m+f),1.5),1.5)>(_**1.5)**1.5*1.3}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}r=h}while(l++<10&&a);const d=[];return(0,n.KO)(r,((t,i,n)=>{let r=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const l=e.extendToFullLines(i.seq1Range),h=e.getText(new s.q(l.start,i.seq1Range.start));a(h)&&(r=r.deltaStart(-h.length));const c=e.getText(new s.q(i.seq1Range.endExclusive,l.endExclusive));a(c)&&(r=r.deltaEnd(c.length));const u=o.i8.fromOffsetPairs(t?t.getEndExclusives():o.zl.zero,n?n.getStarts():o.zl.max),g=r.intersect(u);d.length>0&&g.getStarts().equals(d[d.length-1].getEndExclusives())?d[d.length-1]=d[d.length-1].join(g):d.push(g)})),d}},67391:(e,t,i)=>{"use strict";i.d(t,{h:()=>n,y:()=>s});class n{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class s{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},17053:(e,t,i)=>{"use strict";i.d(t,{f0:()=>s,gB:()=>o,iy:()=>r});var n=i(47638);class s{static inverse(e,t,i){const o=[];let r=1,a=1;for(const d of e){const e=new s(new n.z(r,d.original.startLineNumber),new n.z(a,d.modified.startLineNumber));e.modified.isEmpty||o.push(e),r=d.original.endLineNumberExclusive,a=d.modified.endLineNumberExclusive}const l=new s(new n.z(r,t+1),new n.z(a,i+1));return l.modified.isEmpty||o.push(l),o}static clip(e,t,i){const n=[];for(const o of e){const e=o.original.intersect(t),r=o.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&n.push(new s(e,r))}return n}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new s(this.modified,this.original)}join(e){return new s(this.original.join(e.original),this.modified.join(e.modified))}}class o extends s{static fromRangeMappings(e){const t=n.z.join(e.map((e=>n.z.fromRangeInclusive(e.originalRange)))),i=n.z.join(e.map((e=>n.z.fromRangeInclusive(e.modifiedRange))));return new o(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){var e;return new o(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new o(this.original,this.modified,[new r(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class r{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new r(this.modifiedRange,this.originalRange)}}},87545:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});class n{constructor(e,t,i,n,s,o,r){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=s,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},36362:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});const n={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},35770:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});var n,s=i(5887),o=i(47116);!function(e){e.editorSimpleInput=new o.uy("editorSimpleInput",!1,!0),e.editorTextFocus=new o.uy("editorTextFocus",!1,s.NC("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new o.uy("editorFocus",!1,s.NC("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new o.uy("textInputFocus",!1,s.NC("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new o.uy("editorReadonly",!1,s.NC("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new o.uy("inDiffEditor",!1,s.NC("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new o.uy("isEmbeddedDiffEditor",!1,s.NC("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new o.uy("inMultiDiffEditor",!1,s.NC("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new o.uy("multiDiffEditorAllCollapsed",void 0,s.NC("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new o.uy("diffEditorHasChanges",!1,s.NC("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new o.uy("comparingMovedCode",!1,s.NC("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new o.uy("accessibleDiffViewerVisible",!1,s.NC("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new o.uy("diffEditorRenderSideBySideInlineBreakpointReached",!1,s.NC("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new o.uy("diffEditorInlineMode",!1,s.NC("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new o.uy("diffEditorOriginalWritable",!1,s.NC("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new o.uy("diffEditorModifiedWritable",!1,s.NC("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new o.uy("diffEditorOriginalUri","",s.NC("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new o.uy("diffEditorModifiedUri","",s.NC("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new o.uy("editorColumnSelection",!1,s.NC("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new o.uy("editorHasSelection",!1,s.NC("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new o.uy("editorHasMultipleSelections",!1,s.NC("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new o.uy("editorTabMovesFocus",!1,s.NC("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new o.uy("isInEmbeddedEditor",!1,!0),e.canUndo=new o.uy("canUndo",!1,!0),e.canRedo=new o.uy("canRedo",!1,!0),e.hoverVisible=new o.uy("editorHoverVisible",!1,s.NC("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new o.uy("editorHoverFocused",!1,s.NC("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new o.uy("stickyScrollFocused",!1,s.NC("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new o.uy("stickyScrollVisible",!1,s.NC("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new o.uy("standaloneColorPickerVisible",!1,s.NC("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new o.uy("standaloneColorPickerFocused",!1,s.NC("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new o.uy("inCompositeEditor",void 0,s.NC("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new o.uy("editorLangId","",s.NC("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new o.uy("editorHasCompletionItemProvider",!1,s.NC("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new o.uy("editorHasCodeActionsProvider",!1,s.NC("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new o.uy("editorHasCodeLensProvider",!1,s.NC("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new o.uy("editorHasDefinitionProvider",!1,s.NC("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new o.uy("editorHasDeclarationProvider",!1,s.NC("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new o.uy("editorHasImplementationProvider",!1,s.NC("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new o.uy("editorHasTypeDefinitionProvider",!1,s.NC("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new o.uy("editorHasHoverProvider",!1,s.NC("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new o.uy("editorHasDocumentHighlightProvider",!1,s.NC("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new o.uy("editorHasDocumentSymbolProvider",!1,s.NC("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new o.uy("editorHasReferenceProvider",!1,s.NC("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new o.uy("editorHasRenameProvider",!1,s.NC("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new o.uy("editorHasSignatureHelpProvider",!1,s.NC("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new o.uy("editorHasInlayHintsProvider",!1,s.NC("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new o.uy("editorHasDocumentFormattingProvider",!1,s.NC("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new o.uy("editorHasDocumentSelectionFormattingProvider",!1,s.NC("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new o.uy("editorHasMultipleDocumentFormattingProvider",!1,s.NC("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new o.uy("editorHasMultipleDocumentSelectionFormattingProvider",!1,s.NC("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(n||(n={}))},26993:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,y:()=>s});const n=[];function s(e){n.push(e)}function o(){return n.slice(0)}},9556:(e,t,i)=>{"use strict";i.d(t,{N:()=>n});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(s+=`text-decoration:${o};`),s}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},45298:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});var n=i(27351),s=i(96682);function o(e,t,i,r,a,l){if(Array.isArray(e)){let n=0;for(const s of e){const e=o(s,t,i,r,a,l);if(10===e)return e;e>n&&(n=e)}return n}if("string"===typeof e)return r?"*"===e?5:e===i?10:0:0;if(e){const{language:o,pattern:d,scheme:h,hasAccessToAllModels:c,notebookType:u}=e;if(!r&&!c)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(o)if(o===i)g=10;else{if("*"!==o)return 0;g=Math.max(g,5)}if(u)if(u===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}if(d){let e;if(e="string"===typeof d?d:{...d,base:(0,s.Fv)(d.base)},e!==t.fsPath&&!(0,n.EQ)(e,t.fsPath))return 0;g=10}return g}return 0}},18841:(e,t,i)=>{"use strict";i.d(t,{mY:()=>x,gX:()=>d,MY:()=>g,Nq:()=>c,DI:()=>_,AD:()=>k,gl:()=>L,bw:()=>h,rn:()=>E,MO:()=>D,w:()=>S,ln:()=>v,WW:()=>u,uZ:()=>w,WU:()=>m,RW:()=>N,hG:()=>f,R4:()=>y,vx:()=>b});var n=i(61542),s=i(91387),o=i(28928),r=i(39706),a=i(53186);class l extends a.JT{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var d,h,c,u,g,p=i(5887);class m{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class f{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class _{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){const t=new Map;t.set(0,n.l.symbolMethod),t.set(1,n.l.symbolFunction),t.set(2,n.l.symbolConstructor),t.set(3,n.l.symbolField),t.set(4,n.l.symbolVariable),t.set(5,n.l.symbolClass),t.set(6,n.l.symbolStruct),t.set(7,n.l.symbolInterface),t.set(8,n.l.symbolModule),t.set(9,n.l.symbolProperty),t.set(10,n.l.symbolEvent),t.set(11,n.l.symbolOperator),t.set(12,n.l.symbolUnit),t.set(13,n.l.symbolValue),t.set(15,n.l.symbolEnum),t.set(14,n.l.symbolConstant),t.set(15,n.l.symbolEnum),t.set(16,n.l.symbolEnumMember),t.set(17,n.l.symbolKeyword),t.set(27,n.l.symbolSnippet),t.set(18,n.l.symbolText),t.set(19,n.l.symbolColor),t.set(20,n.l.symbolFile),t.set(21,n.l.symbolReference),t.set(22,n.l.symbolCustomColor),t.set(23,n.l.symbolFolder),t.set(24,n.l.symbolTypeParameter),t.set(25,n.l.account),t.set(26,n.l.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=n.l.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let n=i.get(e);return"undefined"!==typeof n||t||(n=9),n}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));class v{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return o.e.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&s.o.isUri(e.uri)&&o.e.isIRange(e.range)&&(o.e.isIRange(e.originSelectionRange)||o.e.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(c||(c={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));const C={17:(0,p.NC)("Array","array"),16:(0,p.NC)("Boolean","boolean"),4:(0,p.NC)("Class","class"),13:(0,p.NC)("Constant","constant"),8:(0,p.NC)("Constructor","constructor"),9:(0,p.NC)("Enum","enumeration"),21:(0,p.NC)("EnumMember","enumeration member"),23:(0,p.NC)("Event","event"),7:(0,p.NC)("Field","field"),0:(0,p.NC)("File","file"),11:(0,p.NC)("Function","function"),10:(0,p.NC)("Interface","interface"),19:(0,p.NC)("Key","key"),5:(0,p.NC)("Method","method"),1:(0,p.NC)("Module","module"),2:(0,p.NC)("Namespace","namespace"),20:(0,p.NC)("Null","null"),15:(0,p.NC)("Number","number"),18:(0,p.NC)("Object","object"),24:(0,p.NC)("Operator","operator"),3:(0,p.NC)("Package","package"),6:(0,p.NC)("Property","property"),14:(0,p.NC)("String","string"),22:(0,p.NC)("Struct","struct"),25:(0,p.NC)("TypeParameter","type parameter"),12:(0,p.NC)("Variable","variable")};function y(e,t){return(0,p.NC)("symbolAriaLabel","{0} ({1})",e,C[t])}var w,S,x,L;!function(e){const t=new Map;t.set(0,n.l.symbolFile),t.set(1,n.l.symbolModule),t.set(2,n.l.symbolNamespace),t.set(3,n.l.symbolPackage),t.set(4,n.l.symbolClass),t.set(5,n.l.symbolMethod),t.set(6,n.l.symbolProperty),t.set(7,n.l.symbolField),t.set(8,n.l.symbolConstructor),t.set(9,n.l.symbolEnum),t.set(10,n.l.symbolInterface),t.set(11,n.l.symbolFunction),t.set(12,n.l.symbolVariable),t.set(13,n.l.symbolConstant),t.set(14,n.l.symbolString),t.set(15,n.l.symbolNumber),t.set(16,n.l.symbolBoolean),t.set(17,n.l.symbolArray),t.set(18,n.l.symbolObject),t.set(19,n.l.symbolKey),t.set(20,n.l.symbolNull),t.set(21,n.l.symbolEnumMember),t.set(22,n.l.symbolStruct),t.set(23,n.l.symbolEvent),t.set(24,n.l.symbolOperator),t.set(25,n.l.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=n.l.symbolProperty),i}}(w||(w={}));class k{static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}k.Comment=new k("comment"),k.Imports=new k("imports"),k.Region=new k("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(S||(S={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(x||(x={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(L||(L={}));class D{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.OF)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();const n=new l(this,e,t);return this._factories.set(e,n),(0,a.OF)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var E;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(E||(E={}))},62553:(e,t,i)=>{"use strict";i.d(t,{$9:()=>h,UF:()=>d,n8:()=>l,r7:()=>a,tI:()=>c});var n=i(78701),s=i(39260),o=i(35734),r=i(5580);function a(e,t,i){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e<4)return null;const r=(arguments.length>4?arguments[4]:void 0).getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!r)return null;if(i<=1)return{indentation:"",action:null};for(let n=i-1;n>0&&""===t.getLineContent(n);n--)if(1===n)return{indentation:"",action:null};const a=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let s,o=-1;for(s=t-1;s>=1;s--){if(e.tokenization.getLanguageIdAtPosition(s,0)!==n)return o;const t=e.getLineContent(s);if(!i.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return s;o=s}}return-1}(t,i,r);if(a<0)return null;if(a<1)return{indentation:"",action:null};const l=t.getLineContent(a);if(r.shouldIncrease(l)||r.shouldIndentNextLine(l))return{indentation:n.V8(l),action:s.wU.Indent,line:a};if(r.shouldDecrease(l))return{indentation:n.V8(l),action:null,line:a};{if(1===a)return{indentation:n.V8(t.getLineContent(a)),action:null,line:a};const e=a-1,i=r.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--)if(!r.shouldIndentNextLine(t.getLineContent(n))){i=n;break}return{indentation:n.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:n.V8(t.getLineContent(a)),action:null,line:a};for(let o=a;o>0;o--){const e=t.getLineContent(o);if(r.shouldIncrease(e))return{indentation:n.V8(e),action:s.wU.Indent,line:o};if(r.shouldIndentNextLine(e)){let e=0;for(let i=o-1;i>0;i--)if(!r.shouldIndentNextLine(t.getLineContent(o))){e=i;break}return{indentation:n.V8(t.getLineContent(e+1)),action:null,line:e+1}}if(r.shouldDecrease(e))return{indentation:n.V8(e),action:null,line:o}}return{indentation:n.V8(t.getLineContent(1)),action:null,line:1}}}function l(e,t,i,o,r,l){if(e<4)return null;const d=l.getLanguageConfiguration(i);if(!d)return null;const h=l.getLanguageConfiguration(i).indentRulesSupport;if(!h)return null;const c=a(e,t,o,void 0,l),u=t.getLineContent(o);if(c){const i=c.line;if(void 0!==i){let a=!0;for(let e=i;e<o-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){a=!1;break}if(a){const o=d.onEnter(e,"",t.getLineContent(i),"");if(o){let e=n.V8(t.getLineContent(i));return o.removeText&&(e=e.substring(0,e.length-o.removeText)),o.indentAction===s.wU.Indent||o.indentAction===s.wU.IndentOutdent?e=r.shiftIndent(e):o.indentAction===s.wU.Outdent&&(e=r.unshiftIndent(e)),h.shouldDecrease(u)&&(e=r.unshiftIndent(e)),o.appendText&&(e+=o.appendText),n.V8(e)}}}return h.shouldDecrease(u)?c.action===s.wU.Indent?c.indentation:r.unshiftIndent(c.indentation):c.action===s.wU.Indent?r.shiftIndent(c.indentation):c.indentation}return null}function d(e,t,i,l,d){if(e<4)return null;t.tokenization.forceTokenization(i.startLineNumber);const h=t.tokenization.getLineTokens(i.startLineNumber),c=(0,o.wH)(h,i.startColumn-1),u=c.getLineContent();let g,p,m=!1;if(c.firstCharOffset>0&&h.getLanguageId(0)!==c.languageId?(m=!0,g=u.substr(0,i.startColumn-1-c.firstCharOffset)):g=h.getLineContent().substring(0,i.startColumn-1),i.isEmpty())p=u.substr(i.startColumn-1-c.firstCharOffset);else{p=(0,r.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-c.firstCharOffset)}const f=d.getLanguageConfiguration(c.languageId).indentRulesSupport;if(!f)return null;const _=g,v=n.V8(g),b={tokenization:{getLineTokens:e=>t.tokenization.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i)},getLineContent:e=>e===i.startLineNumber?_:t.getLineContent(e)},C=n.V8(h.getLineContent()),y=a(e,b,i.startLineNumber+1,void 0,d);if(!y){const e=m?C:v;return{beforeEnter:e,afterEnter:e}}let w=m?C:y.indentation;return y.action===s.wU.Indent&&(w=l.shiftIndent(w)),f.shouldDecrease(p)&&(w=l.unshiftIndent(w)),{beforeEnter:m?C:v,afterEnter:w}}function h(e,t,i,n,o,l){if(e<4)return null;const d=(0,r.n2)(t,i.startLineNumber,i.startColumn);if(d.firstCharOffset)return null;const h=l.getLanguageConfiguration(d.languageId).indentRulesSupport;if(!h)return null;const c=d.getLineContent(),u=c.substr(0,i.startColumn-1-d.firstCharOffset);let g;if(i.isEmpty())g=c.substr(i.startColumn-1-d.firstCharOffset);else{g=(0,r.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-d.firstCharOffset)}if(!h.shouldDecrease(u+g)&&h.shouldDecrease(u+n+g)){const n=a(e,t,i.startLineNumber,!1,l);if(!n)return null;let r=n.indentation;return n.action!==s.wU.Indent&&(r=o.unshiftIndent(r)),r}return null}function c(e,t,i){const n=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}},37036:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(39260),s=i(5580);function o(e,t,i,o){const r=(0,s.n2)(t,i.startLineNumber,i.startColumn),a=o.getLanguageConfiguration(r.languageId);if(!a)return null;const l=r.getLineContent(),d=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;if(i.isEmpty())h=l.substr(i.startColumn-1-r.firstCharOffset);else{h=(0,s.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset)}let c="";if(i.startLineNumber>1&&0===r.firstCharOffset){const e=(0,s.n2)(t,i.startLineNumber-1);e.languageId===r.languageId&&(c=e.getLineContent())}const u=a.onEnter(e,c,d,h);if(!u)return null;const g=u.indentAction;let p=u.appendText;const m=u.removeText||0;p?g===n.wU.Indent&&(p="\t"+p):p=g===n.wU.Indent||g===n.wU.IndentOutdent?"\t":"";let f=(0,s.u0)(t,i.startLineNumber,i.startColumn);return m&&(f=f.substring(0,f.length-m)),{indentAction:g,appendText:p,removeText:m,indentation:f}}},91342:(e,t,i)=>{"use strict";i.d(t,{O:()=>n});const n=(0,i(87775).yh)("languageService")},39260:(e,t,i)=>{"use strict";var n;i.d(t,{V6:()=>s,c$:()=>o,wU:()=>n}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class s{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class o{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}}function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},5580:(e,t,i)=>{"use strict";i.d(t,{c_:()=>I,u0:()=>O,n2:()=>P});var n=i(39706),s=i(53186),o=i(78701),r=i(67331),a=i(39260),l=i(35734);class d{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.V6(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.V6({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.V6({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t";var h=i(51833),c=i(516);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,h.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if((0,l.Bu)(t.getStandardTokenType(n)))return null;const s=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,r=c.Vr.findPrevBracketInRange(s,1,o,0,o.length);if(!r)return null;const a=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const d=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(16015);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let s=0,o=this._regExpRules.length;s<o;s++){const e=this._regExpRules[s];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:n},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&n.length>0)for(let s=0,o=this._brackets.length;s<o;s++){const e=this._brackets[s];if(e.openRegExp.test(i)&&e.closeRegExp.test(n))return{indentAction:a.wU.IndentOutdent}}if(e>=2&&i.length>0)for(let s=0,o=this._brackets.length;s<o;s++){if(this._brackets[s].openRegExp.test(i))return{indentAction:a.wU.Indent}}return null}static _createOpenBracketRegExp(e){let t=o.ec(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=o.ec(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dL)(t),null}}}var _=i(87775),v=i(30600),b=i(91342),C=i(23026),y=i(76326),w=i(40084);class S{constructor(e,t){this.languageId=e;const i=t.brackets?x(t.brackets):[],n=new w.b((e=>{const t=new Set;return{info:new k(this,e,t),closing:t}})),s=new w.b((e=>{const t=new Set,i=new Set;return{info:new D(this,e,t,i),opening:t,openingColorized:i}}));for(const[r,a]of i){const e=n.get(r),t=s.get(a);e.closing.add(t.info),t.opening.add(e.info)}const o=t.colorizedBracketPairs?x(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[r,a]of o){const e=n.get(r),t=s.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...n.cachedValues].map((e=>{let[t,i]=e;return[t,i.info]}))),this._closingBrackets=new Map([...s.cachedValues].map((e=>{let[t,i]=e;return[t,i.info]})))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function x(e){return e.filter((e=>{let[t,i]=e;return""!==t&&""!==i}))}class L{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class k extends L{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class D extends L{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var N=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},E=function(e,t){return function(i,n){t(i,n,e)}};class T{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const I=(0,_.yh)("languageConfigurationService");let M=class extends s.JT{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new H),this.onDidChangeEmitter=this._register(new n.Q5),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(A));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((e=>{let[t,n]=e;return n.some((e=>i.has(e)))})).map((e=>{let[t]=e;return t}));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new T(void 0));else for(const i of n)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new T(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new T(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let s=t.getLanguageConfiguration(e);if(!s){if(!n.isRegisteredLanguageId(e))return new z(e,{});s=new z(e,{})}const o=function(e,t){const i=t.getValue(A.brackets,{overrideIdentifier:e}),n=t.getValue(A.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:R(i),colorizedBracketPairs:R(n)}}(s.languageId,i),r=B([s.underlyingConfig,o]);return new z(s.languageId,r)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};M=N([E(0,v.Ui),E(1,b.O)],M);const A={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function R(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function O(e,t,i){const n=e.getLineContent(t);let s=o.V8(n);return s.length>i-1&&(s=s.substring(0,i-1)),s}function P(e,t,i){e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t),s="undefined"===typeof i?e.getLineMaxColumn(t)-1:i-1;return(0,l.wH)(n,s)}class F{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new V(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,s.OF)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new z(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(V.cmp),B(this._entries.map((e=>e.configuration))))}}function B(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class V{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class W{constructor(e){this.languageId=e}}class H extends s.JT{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._register(this.register(y.bd,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this._entries.get(e);n||(n=new F(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new W(e)),(0,s.OF)((()=>{o.dispose(),this._onDidChange.fire(new W(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return(null===t||void 0===t?void 0:t.getResolvedConfiguration())||null}}class z{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=z._handleComments(this.underlyingConfig),this.characterPair=new d(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||r.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new S(e,this.underlyingConfig)}getWordDefinition(){return(0,r.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new c.EA(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new a.c$(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}(0,C.z)(I,M,1)},76326:(e,t,i)=>{"use strict";i.d(t,{bd:()=>d,dQ:()=>l});var n=i(5887),s=i(39706),o=i(76322),r=i(90255),a=i(49817);const l=new class{constructor(){this._onDidChangeLanguages=new s.Q5,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};o.B.add("editor.modesRegistry",l);const d="plaintext";l.registerLanguage({id:d,extensions:[".txt"],aliases:[n.NC("plainText.alias","Plain Text"),"text"],mimetypes:[r.v.text]}),o.B.as(a.IP.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},31708:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,Ri:()=>o,TJ:()=>s});var n=i(18841);const s=new class{clone(){return this}equals(e){return this===e}};function o(e,t){return new n.hG([new n.WU(0,"",e)],t)}function r(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e<<0|2<<24)>>>0,new n.DI(i,null===t?s:t)}},35734:(e,t,i)=>{"use strict";function n(e,t){const i=e.getCount(),n=e.findTokenIndexAtOffset(t),o=e.getLanguageId(n);let r=n;for(;r+1<i&&e.getLanguageId(r+1)===o;)r++;let a=n;for(;a>0&&e.getLanguageId(a-1)===o;)a--;return new s(e,o,a,r+1,e.getStartOffset(a),e.getEndOffset(r))}i.d(t,{Bu:()=>o,wH:()=>n});class s{constructor(e,t,i,n,s,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=s,this._lastCharOffset=o}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function o(e){return 0!==(3&e)}},516:(e,t,i)=>{"use strict";i.d(t,{EA:()=>a,Vr:()=>p});var n=i(78701),s=i(130),o=i(28928);class r{constructor(e,t,i,n,s,o){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=s,this.reversedRegex=o,this._openSet=r._toSet(this.open),this._closeSet=r._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let r=0;r<t;r++)i[r]=r;const n=(e,t)=>{const[i,n]=e,[s,o]=t;return i===s||i===o||n===s||n===o},s=(e,n)=>{const s=Math.min(e,n),o=Math.max(e,n);for(let r=0;r<t;r++)i[r]===o&&(i[r]=s)};for(let r=0;r<t;r++){const o=e[r];for(let a=r+1;a<t;a++)n(o,e[a])&&s(i[r],i[a])}const o=[];for(let r=0;r<t;r++){const n=[],s=[];for(let o=0;o<t;o++)if(i[o]===r){const[t,i]=e[o];n.push(t),s.push(i)}n.length>0&&o.push({open:n,close:s})}return o}(t);this.brackets=i.map(((t,n)=>new r(e,n,t.open,t.close,function(e,t,i,n){let s=[];s=s.concat(e),s=s.concat(t);for(let o=0,r=s.length;o<r;o++)l(s[o],i,n,s);return s=h(s),s.sort(d),s.reverse(),u(s)}(t.open,t.close,i,n),function(e,t,i,n){let s=[];s=s.concat(e),s=s.concat(t);for(let o=0,r=s.length;o<r;o++)l(s[o],i,n,s);return s=h(s),s.sort(d),s.reverse(),u(s.map(g))}(t.open,t.close,i,n)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const e of n.open)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of n.close)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function l(e,t,i,n){for(let s=0,o=t.length;s<o;s++){if(s===i)continue;const o=t[s];for(const t of o.open)t.indexOf(e)>=0&&n.push(t);for(const t of o.close)t.indexOf(e)>=0&&n.push(t)}}function d(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function c(e){const t=/^[\w ]+$/.test(e);return e=n.ec(e),t?`\\b${e}\\b`:e}function u(e){const t=`(${e.map(c).join(")|(")})`;return n.GF(t,!0)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return s.oe().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=i.length-(s.index||0),a=s[0].length,l=n+r;return new o.e(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,s){const o=g(i).substring(i.length-s,i.length-n);return this._findPrevBracketInText(e,t,o,n)}static findNextBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=s.index||0,a=s[0].length;if(0===a)return null;const l=n+r;return new o.e(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,s){const o=i.substring(n,s);return this.findNextBracketInText(e,t,o,n)}}},85779:(e,t,i)=>{"use strict";i.d(t,{C2:()=>l,Fq:()=>d});var n=i(78701),s=i(34415),o=i(18841),r=i(31708);const a={getInitialState:()=>r.TJ,tokenizeEncoded:(e,t,i)=>(0,r.Dy)(0,i)};async function l(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const n=await o.RW.getOrCreate(i);return h(t,e.languageIdCodec,n||a)}function d(e,t,i,n,s,o,r){let a="<div>",l=n,d=0,h=!0;for(let c=0,u=t.getCount();c<u;c++){const u=t.getEndOffset(c);if(u<=n)continue;let g="";for(;l<u&&l<s;l++){const t=e.charCodeAt(l);switch(t){case 9:{let e=o-(l+d)%o;for(d+=e-1;e>0;)r&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:r&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(c,i)}">${g}</span>`,u>s||l>=s)break}return a+="</div>",a}function h(e,t,i){let o='<div class="monaco-tokenized-source">';const r=n.uq(e);let a=i.getInitialState();for(let l=0,d=r.length;l<d;l++){const e=r[l];l>0&&(o+="<br/>");const d=i.tokenizeEncoded(e,!0,a);s.A.convertToEndOffset(d.tokens,e.length);const h=new s.A(d.tokens,e,t).inflate();let c=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),s=h.getEndOffset(t);o+=`<span class="${i}">${n.YU(e.substring(c,s))}</span>`,c=s}a=d.endState}return o+="</div>",o}},24032:(e,t,i)=>{"use strict";i.d(t,{Hf:()=>d,Qi:()=>h,RM:()=>o,Tx:()=>c,U:()=>s,dJ:()=>a,je:()=>u,pt:()=>g,sh:()=>n,tk:()=>l});var n,s,o,r=i(53335);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(s||(s={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(o||(o={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,r.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function d(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,n,s,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=s,this._isTracked=o}}class c{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},22671:(e,t,i)=>{"use strict";i.d(t,{BH:()=>f,Dm:()=>v,Kd:()=>l,Y0:()=>d,n2:()=>_});var n=i(16015),s=i(32653),o=i(41525),r=i(74809);class a{get length(){return this._length}constructor(e){this._length=e}}class l extends a{static create(e,t,i){let n=e.length;return t&&(n=(0,o.Ii)(n,t.length)),i&&(n=(0,o.Ii)(n,i.length)),new l(n,e,t,i,t?t.missingOpeningBracketIds:r.tS.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,n,s){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=s}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,o.Ii)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class d extends a{static create23(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e.length,r=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(s=(0,o.Ii)(s,t.length),r=r.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");s=(0,o.Ii)(s,i.length),r=r.merge(i.missingOpeningBracketIds)}return n?new c(s,e.listHeight+1,e,t,i,r):new h(s,e.listHeight+1,e,t,i,r)}static getEmpty(){return new g(o.xl,0,[],r.tS.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new n.he;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;n<e;n++){const e=this.getChild(n);t=(0,o.Ii)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,n=e;for(let s=0;s<this.childrenLength;s++){const e=this.getChild(s);e&&(i=Math.min(i,e.computeMinIndentation(n,t)),n=(0,o.Ii)(n,e.length))}return this.cachedMinIndentation=i,i}}class h extends d{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,n,s,o){super(e,t,o),this._item1=i,this._item2=n,this._item3=s}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class c extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends d{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,n){super(e,t,n),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return r.tS.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,o.Hw)(e),n=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,r=(0,o.W9)((0,o.Ii)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let o=n;o<=r;o++){const e=t.getLineFirstNonWhitespaceColumn(o),i=t.getLineContent(o);if(0===e)continue;const n=s.i.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,n)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return r.tS.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},41432:(e,t,i)=>{"use strict";i.d(t,{Q:()=>o,Y:()=>r});var n=i(28928),s=i(41525);class o{static fromModelContentChanges(e){return e.map((e=>{const t=n.e.lift(e.range);return new o((0,s.PZ)(t.getStartPosition()),(0,s.PZ)(t.getEndPosition()),(0,s.oR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,s.Hw)(this.startOffset)}...${(0,s.Hw)(this.endOffset)}) -> ${(0,s.Hw)(this.newLength)}`}}class r{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,s.BE)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,s.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,s.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,s.Hw)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,s.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,s.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,s.By)(i,e))break;{this.nextEditIdx++;const e=(0,s.Hw)(i),n=(0,s.Hw)(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-n.lineCount;this.deltaOldToNewLineCount+=o;const r=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-n.columnCount;this.deltaOldToNewColumnCount=r+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,s.Hw)(t),this.endOffsetAfterObj=(0,s.Hw)((0,s.Ii)(e,i)),this.offsetObj=(0,s.Hw)(e)}}},6872:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(78701),s=i(22671),o=i(41525),r=i(74809),a=i(13549);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const n=new Map;for(const l of e.bracketsNew.openingBrackets){const e=(0,o.Hg)(0,l.bracketText.length),t=i(l),d=r.tS.getEmpty().add(t,r.Qw);n.set(l.bracketText,new a.WU(e,1,t,d,s.n2.create(e,l,d)))}for(const l of e.bracketsNew.closingBrackets){const e=(0,o.Hg)(0,l.bracketText.length);let t=r.tS.getEmpty();const d=l.getOpeningBrackets();for(const n of d)t=t.add(i(n),r.Qw);n.set(l.bracketText,new a.WU(e,2,i(d[0]),t,s.n2.create(e,l,t)))}return new l(n)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,n.ec)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class d{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},70266:(e,t,i)=>{"use strict";i.d(t,{o:()=>r});var n=i(51833),s=i(41432),o=i(41525);function r(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new n.H9(l(e)),r=l(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let d=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return d&&e.unshift(d),e}const t=[];for(;d&&!(0,o.xd)(e);){const[n,s]=d.splitAt(e);t.push(n),e=(0,o.BE)(n.lengthAfter,e),d=null!==s&&void 0!==s?s:i.dequeue()}return(0,o.xd)(e)||t.push(new a(!1,e,e)),t}const c=[];function u(e,t,i){if(c.length>0&&(0,o.rM)(c[c.length-1].endOffset,e)){const e=c[c.length-1];c[c.length-1]=new s.Q(e.startOffset,t,(0,o.Ii)(e.newLength,i))}else c.push({startOffset:e,endOffset:t,newLength:i})}let g=o.xl;for(const n of r){const e=h(n.lengthBefore);if(n.modified){const t=(0,o.tQ)(e,(e=>e.lengthBefore)),i=(0,o.Ii)(g,t);u(g,i,n.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,o.Ii)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return c}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,o.BE)(e,this.lengthAfter);return(0,o.rM)(t,o.xl)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,o.xl,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,o.Hw)(this.lengthBefore)} -> ${(0,o.Hw)(this.lengthAfter)}`}}function l(e){const t=[];let i=o.xl;for(const n of e){const e=(0,o.BE)(i,n.startOffset);(0,o.xd)(e)||t.push(new a(!1,e,e));const s=(0,o.BE)(n.startOffset,n.endOffset);t.push(new a(!0,s,n.newLength)),i=n.endOffset}return t}},41525:(e,t,i)=>{"use strict";i.d(t,{BE:()=>_,By:()=>b,F_:()=>g,Hg:()=>h,Hw:()=>c,Ii:()=>p,PZ:()=>y,Qw:()=>w,VR:()=>v,W9:()=>u,Zq:()=>C,av:()=>r,oR:()=>S,rM:()=>f,tQ:()=>m,xd:()=>l,xl:()=>a});var n=i(78701),s=i(28928),o=i(78757);function r(e,t,i,n){return e!==i?h(i-e,n):h(0,n-t)}const a=0;function l(e){return 0===e}const d=2**26;function h(e,t){return e*d+t}function c(e){const t=e,i=Math.floor(t/d),n=t-i*d;return new o.A(i,n)}function u(e){return Math.floor(e/d)}function g(e){return e}function p(e,t){let i=e+t;return t>=d&&(i-=e%d),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,n=t;if(n-i<=0)return a;const s=Math.floor(i/d),o=Math.floor(n/d),r=n-o*d;if(s===o){return h(0,r-(i-s*d))}return h(o-s,r)}function v(e,t){return e<t}function b(e,t){return e<=t}function C(e,t){return e>=t}function y(e){return h(e.lineNumber-1,e.column-1)}function w(e,t){const i=e,n=Math.floor(i/d),o=i-n*d,r=t,a=Math.floor(r/d),l=r-a*d;return new s.e(n+1,o+1,a+1,l+1)}function S(e){const t=(0,n.uq)(e);return h(t.length-1,t[t.length-1].length)}},86649:(e,t,i)=>{"use strict";i.d(t,{w:()=>g});var n=i(22671),s=i(41432),o=i(74809),r=i(41525);function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const s=i>>1;for(let o=0;o<s;o++){const s=o<<1;e[o]=n.Y0.create23(e[s],e[s+1],s+3===i?e[s+2]:null,t)}i=s}return n.Y0.create23(e[0],e[1],i>=3?e[2]:null,t)}function l(e,t){return Math.abs(e.listHeight-t.listHeight)}function d(e,t){return e.listHeight===t.listHeight?n.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const s=[];let o;for(;;){if(t.listHeight===i.listHeight){o=t;break}if(4!==i.kind)throw new Error("unexpected");s.push(i),i=i.makeLastElementMutable()}for(let r=s.length-1;r>=0;r--){const e=s[r];o?e.childrenLength>=3?o=n.Y0.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?n.Y0.create23(e,o,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const s=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");s.push(i),i=i.makeFirstElementMutable()}let o=t;for(let r=s.length-1;r>=0;r--){const e=s[r];o?e.childrenLength>=3?o=n.Y0.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?n.Y0.create23(o,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=r.xl,this.nextNodes=[e],this.offsets=[r.xl],this.idxs=[]}readLongestNodeAt(e,t){if((0,r.VR)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const n=u(this.offsets);if((0,r.VR)(e,n))return;if((0,r.VR)(n,e))if((0,r.Ii)(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=c(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=c(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),n=c(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push((0,r.Ii)(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;for(;;){if(t++,t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,n){return new p(e,t,i,n).parseDocument()}class p{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new s.Y(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(o.tS.getEmpty(),0);return e||(e=n.Y0.getEmpty()),e}parseList(e,t){const i=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}4===n.kind&&0===n.childrenLength||i.push(n)}const n=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===n;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),s=i();if(!s)return n;for(let o=i();o;o=i())l(n,s)<=l(s,o)?(n=d(n,s),s=o):s=d(s,o);return d(n,s)}(i):a(i,this.createImmutableLists);return n}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,r.xd)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,r.VR)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new n.Dm(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new n.BH(i.length);const s=e.merge(i.bracketIds),o=this.parseList(s,t+1),r=this.tokenizer.peek();return r&&2===r.kind&&(r.bracketId===i.bracketId||r.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),n.Kd.create(i.astNode,o,r.astNode)):n.Kd.create(i.astNode,o,null)}default:throw new Error("unexpected")}}}},74809:(e,t,i)=>{"use strict";i.d(t,{FE:()=>r,Qw:()=>o,tS:()=>s});const n=[];class s{static create(e,t){if(e<=128&&0===t.length){let i=s.cache[e];return i||(i=new s(e,t),s.cache[e]=i),i}return new s(e,t)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let n=i>>5;if(0===n){const e=1<<i|this.items;return e===this.items?this:s.create(e,this.additionalItems)}n--;const o=this.additionalItems.slice(0);for(;o.length<n;)o.push(0);return o[n]|=1<<(31&i),s.create(this.items,o)}merge(e){const t=this.items|e.items;if(this.additionalItems===n&&e.additionalItems===n)return t===this.items?this:t===e.items?e:s.create(t,n);const i=[];for(let n=0;n<Math.max(this.additionalItems.length,e.additionalItems.length);n++){const t=this.additionalItems[n]||0,s=e.additionalItems[n]||0;i.push(t|s)}return s.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}s.cache=new Array(129),s.empty=s.create(0,n);const o={getKey:e=>e};class r{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},13549:(e,t,i)=>{"use strict";i.d(t,{WU:()=>l,g:()=>c,xH:()=>d});var n=i(16015),s=i(9556),o=i(22671),r=i(41525),a=i(74809);class l{constructor(e,t,i,n,s){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=n,this.astNode=s}}class d{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=r.xl,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,r.Hg)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,r.Ii)(this._offset,e);const t=(0,r.Hw)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,r.Ii)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,r.F_)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,o=n.getCount();let a=null;if(this.lineTokenOffset<o){const l=n.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&l===n.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const d=0===s.N.getTokenType(l),h=s.N.containsBalancedBrackets(l),c=n.getEndOffset(this.lineTokenOffset);if(h&&d&&this.lineCharOffset<c){const e=n.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),i=this.bracketTokens.getSingleLanguageBracketTokens(e),s=i.regExpGlobal;if(s){s.lastIndex=0;const e=s.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=c-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,r.F_)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const n=(0,r.av)(e,t,this.lineIdx,this.lineCharOffset);return new l(n,0,-1,a.tS.getEmpty(),new o.BH(n))}}class c{constructor(e,t){this.text=e,this._offset=r.xl,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+"|\n","gi"):null,s=[];let d,h=0,c=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new l((0,r.Hg)(0,_),0,-1,a.tS.getEmpty(),new o.BH((0,r.Hg)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new l((0,r.Hg)(1,_),0,-1,a.tS.getEmpty(),new o.BH((0,r.Hg)(1,_))));if(n)for(n.lastIndex=0;null!==(d=n.exec(e));){const e=d.index,i=d[0];if("\n"===i)h++,c=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,r.Hg)(0,i);t=new l(e,0,-1,a.tS.getEmpty(),new o.BH(e))}}else{const i=h-g,n=e-c;if(1===i&&n<m.length)t=m[n];else{const e=(0,r.Hg)(i,n);t=new l(e,0,-1,a.tS.getEmpty(),new o.BH(e))}}s.push(t)}s.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,r.Hg)(0,f-u):(0,r.Hg)(h-g,f-c);s.push(new l(e,0,-1,a.tS.getEmpty(),new o.BH(e)))}this.length=(0,r.Hg)(h,f-c),this.tokens=s}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new n.B8}}},81158:(e,t,i)=>{"use strict";i.d(t,{NL:()=>f,e9:()=>m});var n=i(5887),s=i(16015),o=i(24854),r=i(91387),a=i(53687),l=i(9730),d=i(30506);function h(e){return e.toString()}class c{static create(e,t){const i=e.getAlternativeVersionId(),n=p(e);return new c(i,i,n,n,t,t,[])}constructor(e,t,i,n,s,o,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=o,this.changes=r}append(e,t,i,n,s){t.length>0&&(this.changes=(0,a.b)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.T4(e,t?t.length:0,i),i+=4,t)for(const n of t)l.T4(e,n.selectionStartLineNumber,i),i+=4,l.T4(e,n.selectionStartColumn,i),i+=4,l.T4(e,n.positionLineNumber,i),i+=4,l.T4(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.Ag(e,t);t+=4;for(let s=0;s<n;s++){const n=l.Ag(e,t);t+=4;const s=l.Ag(e,t);t+=4;const r=l.Ag(e,t);t+=4;const a=l.Ag(e,t);t+=4,i.push(new o.Y(n,s,r,a))}return t}serialize(){let e=10+c._writeSelectionsSize(this.beforeCursorState)+c._writeSelectionsSize(this.afterCursorState)+4;for(const n of this.changes)e+=n.writeSize();const t=new Uint8Array(e);let i=0;l.T4(t,this.beforeVersionId,i),i+=4,l.T4(t,this.afterVersionId,i),i+=4,l.Cg(t,this.beforeEOL,i),i+=1,l.Cg(t,this.afterEOL,i),i+=1,i=c._writeSelections(t,this.beforeCursorState,i),i=c._writeSelections(t,this.afterCursorState,i),l.T4(t,this.changes.length,i),i+=4;for(const n of this.changes)i=n.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const n=l.Ag(t,i);i+=4;const s=l.Ag(t,i);i+=4;const o=l.Q$(t,i);i+=1;const r=l.Q$(t,i);i+=1;const d=[];i=c._readSelections(t,i,d);const h=[];i=c._readSelections(t,i,h);const u=l.Ag(t,i);i+=4;const g=[];for(let l=0;l<u;l++)i=a.q.read(t,i,g);return new c(n,s,o,r,d,h,g)}}class u{get type(){return 0}get resource(){return r.o.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,n){this.label=e,this.code=t,this.model=i,this._data=c.create(i,n)}toString(){return(this._data instanceof c?this._data:c.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(r.o.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof c}append(e,t,i,n,s){this._data instanceof c&&this._data.append(e,t,i,n,s)}close(){this._data instanceof c&&(this._data=this._data.serialize())}open(){this._data instanceof c||(this._data=c.deserialize(this._data))}undo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof c&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const e=h(n.resource);this._editStackElementsMap.set(e,n)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(r.o.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,n,s){const o=h(e.uri);this._editStackElementsMap.get(o).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,d.EZ)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const s=new u(n.NC("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(s,t),s}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const s=this._getOrCreateEditStackElement(e,n),o=this._model.applyEdits(t,!0),r=f._computeCursorState(i,o),a=o.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),s.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,s.dL)(i),null}}}},67263:(e,t,i)=>{"use strict";i.d(t,{W:()=>u,l:()=>c});var n=i(91206),s=i(78701),o=i(32653),r=i(28928),a=i(42101),l=i(82412),d=i(58410),h=i(16015);class c extends a.U{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.q)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new h.he("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(s&&s.offSide);let r=-2,a=-1,l=-2,d=-1;const c=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,d=-1;for(let t=e;t<n;t++){const e=this._computeIndentLevel(t);if(e>=0){l=t,d=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<n;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,b=0,C=!0,y=0,w=0;for(let h=0;v||C;h++){const s=e-h,r=e+h;h>1&&(s<1||s<t)&&(v=!1),h>1&&(r>n||r>i)&&(C=!1),h>5e4&&(v=!1,C=!1);let p=-1;if(v&&s>=1){const e=this._computeIndentLevel(s-1);e>=0?(l=s-1,d=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(c(s),p=this._getIndentLevelForWhitespaceLine(o,a,d))}let S=-1;if(C&&r<=n){const e=this._computeIndentLevel(r-1);e>=0?(u=r-1,g=e,S=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(r),S=this._getIndentLevelForWhitespaceLine(o,g,m))}if(0!==h){if(1===h){if(r<=n&&S>=0&&w+1===S){v=!1,_=r,b=r,y=S;continue}if(s>=1&&p>=0&&p-1===w){C=!1,_=s,b=s,y=p;continue}if(_=e,b=e,y=w,0===y)return{startLineNumber:_,endLineNumber:b,indent:y}}v&&(p>=y?_=s:v=!1),C&&(S>=y?b=r:C=!1)}else w=p}return{startLineNumber:_,endLineNumber:b,indent:y}}getLinesBracketGuides(e,t,i,o){var a;const l=[];for(let n=e;n<=t;n++)l.push([]);const h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new r.e(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let c;if(i&&h.length>0){const s=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(r.e.fromPositions(i)).toArray()).filter((e=>r.e.strictContainsPosition(e.range,i)));c=null===(a=(0,n.dF)(s,(e=>true)))||void 0===a?void 0:a.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const n of h){if(!n.closingBracketRange)continue;const i=c&&n.range.equalsRange(c);if(!i&&!o.includeInactive)continue;const r=p.getInlineClassName(n.nestingLevel,n.nestingLevelOfEqualBracketType,g)+(o.highlightActive&&i?" "+p.activeClassName:""),a=n.openingBracketRange.getStartPosition(),h=n.closingBracketRange.getStartPosition(),u=o.horizontalGuides===d.s6.Enabled||o.horizontalGuides===d.s6.EnabledForActive&&i;if(n.range.startLineNumber===n.range.endLineNumber){u&&l[n.range.startLineNumber-e].push(new d.UO(-1,n.openingBracketRange.getEndPosition().column,r,new d.vW(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(n.openingBracketRange.getStartPosition()),_=Math.min(f,m,n.minVisibleColumnIndentation+1);let v=!1;s.LC(this.textModel.getLineContent(n.closingBracketRange.startLineNumber))<n.closingBracketRange.startColumn-1&&(v=!0);const b=Math.max(a.lineNumber,e),C=Math.min(h.lineNumber,t),y=v?1:0;for(let t=b;t<C+y;t++)l[t-e].push(new d.UO(_,-1,r,null,t===a.lineNumber?a.column:-1,t===h.lineNumber?h.column:-1));u&&(a.lineNumber>=e&&f>_&&l[a.lineNumber-e].push(new d.UO(_,-1,r,new d.vW(!1,a.column),-1,-1)),h.lineNumber<=t&&m>_&&l[h.lineNumber-e].push(new d.UO(_,-1,r,new d.vW(!v,h.column),-1,-1)))}for(const n of l)n.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return l}getVisibleColumnFromPosition(e){return o.i.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(s&&s.offSide),r=new Array(t-e+1);let a=-2,l=-1,d=-2,h=-1;for(let c=e;c<=t;c++){const t=c-e,s=this._computeIndentLevel(c-1);if(s>=0)a=c-1,l=s,r[t]=Math.ceil(s/n.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=c-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==d&&(-2===d||d<c-1)){d=-1,h=-1;for(let e=c;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){d=e,h=t;break}}}r[t]=this._getIndentLevelForWhitespaceLine(o,l,h)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/n.indentSize):t===i||e?Math.ceil(i/n.indentSize):1+Math.floor(i/n.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},48749:(e,t,i)=>{"use strict";i.d(t,{Ck:()=>r,oQ:()=>o});var n=i(51833),s=i(47228);class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,s.A)(e);const i=this.values,n=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,s.A)(e),t=(0,s.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,s.A)(e),t=(0,s.A)(t);const i=this.values,n=this.prefixSum;if(e>=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,s.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,s=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,s=this.prefixSum[n],o=s-this.values[n],e<o)i=n-1;else{if(!(e>=s))break;t=n+1}return new a(n,e-o)}}class r{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,n.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n<t;n++)this._indexBySum[i+n]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},13277:(e,t,i)=>{"use strict";i.d(t,{HS:()=>Ht,qx:()=>zt,yO:()=>Mt});var n=i(51833),s=i(63932),o=i(16015),r=i(39706),a=i(53186),l=i(78701),d=i(91387),h=i(47056),c=i(42156),u=i(47638),g=i(74633),p=i(28928),m=i(24854),f=i(47998),_=i(91342),v=i(5580),b=i(24032),C=i(35734),y=i(516);class w{constructor(e,t,i,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=n}}class S{constructor(e,t,i,n,s,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=s,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class x extends S{constructor(e,t,i,n,s,o,r){super(e,t,i,n,s,o),this.minVisibleColumnIndentation=r}}var L=i(41432),k=i(6872),D=i(41525),N=i(86649),E=i(74809),T=i(13549),I=i(70266);class M extends a.JT{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.Q5,this.denseKeyProvider=new E.FE,this.brackets=new k.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new T.g(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,N.w)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens(e){let{ranges:t}=e;const i=t.map((e=>new L.Q((0,D.Hg)(e.fromLineNumber-1,0),(0,D.Hg)(e.toLineNumber,0),(0,D.Hg)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(i,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=L.Q.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,I.o)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,I.o)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new T.xH(this.textModel,this.brackets);return(0,N.w)(s,e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,D.Hg)(e.startLineNumber-1,e.startColumn-1),s=(0,D.Hg)(e.endLineNumber-1,e.endColumn-1);return new n.W$((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens;O(n,D.xl,n.length,i,s,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,D.PZ)(e.getStartPosition()),s=(0,D.PZ)(e.getEndPosition());return new n.W$((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens,o=new P(e,t,this.textModel);F(n,D.xl,n.length,i,s,o,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return R(t,D.xl,t.length,(0,D.PZ)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return A(t,D.xl,t.length,(0,D.PZ)(e))}}function A(e,t,i,n){if(4===e.kind||2===e.kind){const s=[];for(const n of e.children)i=(0,D.Ii)(t,n.length),s.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=s.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:o}=s[t];if((0,D.VR)(i,n)){const s=A(e.children[t],i,o,n);if(s)return s}}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qw)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function R(e,t,i,n){if(4===e.kind||2===e.kind){for(const s of e.children){if(i=(0,D.Ii)(t,s.length),(0,D.VR)(n,i)){const e=R(s,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qw)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function O(e,t,i,n,s,o,r,a,l,d){let h=arguments.length>10&&void 0!==arguments[10]&&arguments[10];if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,D.Ii)(t,a.length),(0,D.By)(t,s)&&(0,D.Zq)(i,n)){if((0,D.Zq)(i,s)){e=a;continue e}if(!O(a,t,i,n,s,o,r,0,l,d))return!1}t=i}}return!0}case 2:{const h=!d||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let c=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),c=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,D.Ii)(t,u.length),(0,D.By)(t,s)&&(0,D.Zq)(i,n)){if((0,D.Zq)(i,s)&&1!==u.kind){e=u,h?(r++,a=c+1):a=c;continue e}if(h||1!==u.kind||!e.closingBracket){if(!O(u,t,i,n,s,o,h?r+1:r,h?c+1:c,l,d,!e.closingBracket))return!1}}t=i}}return null===l||void 0===l||l.set(e.openingBracket.text,c),!0}case 3:{const e=(0,D.Qw)(t,i);return o(new w(e,r-1,0,!0))}case 1:{const e=(0,D.Qw)(t,i);return o(new w(e,r-1,a-1,h))}case 0:return!0}}class P{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function F(e,t,i,n,s,o,r,a){var l;if(r>200)return!0;let d=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=(0,D.Ii)(t,e.openingBracket.length);let u=-1;if(o.includeMinIndentation&&(u=e.computeMinIndentation(t,o.textModel)),d=o.push(new x((0,D.Qw)(t,i),(0,D.Qw)(t,c),e.closingBracket?(0,D.Qw)((0,D.Ii)(c,(null===(l=e.child)||void 0===l?void 0:l.length)||D.xl),i):void 0,r,h,e,u)),t=c,d&&e.child){const l=e.child;if(i=(0,D.Ii)(t,l.length),(0,D.By)(t,s)&&(0,D.Zq)(i,n)&&(d=F(l,t,i,n,s,o,r+1,a),!d))return!1}null===a||void 0===a||a.set(e.openingBracket.text,h)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,D.Ii)(i,t.length),(0,D.By)(e,s)&&(0,D.By)(n,i)&&(d=F(t,e,i,n,s,o,r,a),!d))return!1}}return d}class B extends a.JT{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.XK),this.onDidChangeEmitter=new r.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange((e=>{var t;e.languageId&&!(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())})))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.SL;this.bracketPairsTree.value=(e=i.add(new M(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null===t||void 0===t?void 0:t.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||n.W$.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||n.W$.empty}getBracketsInRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(i=this.bracketPairsTree.value)||void 0===i?void 0:i.object.getBracketsInRange(e,t))||n.W$.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const n=this.getBracketPairsInRange(p.e.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),o=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!o)return null;const r=o.textIsBracket[t];return r?H(this._findMatchingBracketUp(r,n,V(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(p.e.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,n.tT)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),p.e.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=V(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),o=t.getLanguageId(n);let r=Math.max(0,e.column-1-i.maxBracketLength);for(let l=n-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=r)break;if((0,C.Bu)(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){r=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let l=n+1;l<s;l++){const e=t.getStartOffset(l);if(e>=a)break;if((0,C.Bu)(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){a=e;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(o)).brackets;if(r&&!(0,C.Bu)(n.getStandardTokenType(o))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,r,o),d=null;for(;;){const n=y.Vr.findNextBracketInRange(r.forwardRegex,i,s,a,l);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=s.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),i=this._matchFoundBracket(n,r.textIsBracket[e],r.textIsOpenBracket[e],t);if(i){if(i instanceof W)return null;d=i}}a=n.endColumn-1}if(d)return d}if(o>0&&n.getStartOffset(o)===e.column-1){const r=o-1,a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!(0,C.Bu)(n.getStandardTokenType(r))){const{searchStartOffset:o,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,a,r),d=y.Vr.findPrevBracketInRange(a.reversedRegex,i,s,o,l);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn){const e=s.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),i=this._matchFoundBracket(d,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof W?null:i}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof W?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let o=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100===0&&!i())return W.INSTANCE;const d=y.Vr.findPrevBracketInRange(s,t,n,a,l);if(!d)break;const h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return d;l=d.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),s=this.textModel.getLineContent(l);let o=i-1,r=s.length,d=s.length;l===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,d=t.column-1);let h=!0;for(;o>=0;o--){const t=e.getLanguageId(o)===n&&!(0,C.Bu)(e.getStandardTokenType(o));if(t)h?r=e.getStartOffset(o):(r=e.getStartOffset(o),d=e.getEndOffset(o));else if(h&&r!==d){const e=a(l,s,r,d);if(e)return e}h=t}if(h&&r!==d){const e=a(l,s,r,d);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let o=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100===0&&!i())return W.INSTANCE;const d=y.Vr.findNextBracketInRange(s,t,n,a,l);if(!d)break;const h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return d;a=d.endColumn-1}return null},l=this.textModel.getLineCount();for(let d=t.lineNumber;d<=l;d++){const e=this.textModel.tokenization.getLineTokens(d),i=e.getCount(),s=this.textModel.getLineContent(d);let o=0,r=0,l=0;d===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,l=t.column-1);let h=!0;for(;o<i;o++){const t=e.getLanguageId(o)===n&&!(0,C.Bu)(e.getStandardTokenType(o));if(t)h||(r=e.getStartOffset(o)),l=e.getEndOffset(o);else if(h&&r!==l){const e=a(d,s,r,l);if(e)return e}h=t}if(h&&r!==l){const e=a(d,s,r,l);if(e)return e}}return null}findPrevBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketBefore(i))||null;let n=null,s=null,o=null;for(let r=i.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),t=e.getCount(),a=this.textModel.getLineContent(r);let l=t-1,d=a.length,h=a.length;if(r===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),d=i.column-1,h=i.column-1;const t=e.getLanguageId(l);n!==t&&(n=t,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let c=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(s&&o&&c&&d!==h){const e=y.Vr.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e);c=!1}n=t,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const i=!!s&&!(0,C.Bu)(e.getStandardTokenType(l));if(i)c?d=e.getStartOffset(l):(d=e.getStartOffset(l),h=e.getEndOffset(l));else if(o&&s&&c&&d!==h){const e=y.Vr.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e)}c=i}if(o&&s&&c&&d!==h){const e=y.Vr.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,o=null,r=null;for(let a=i.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),t=e.getCount(),n=this.textModel.getLineContent(a);let l=0,d=0,h=0;if(a===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),d=i.column-1,h=i.column-1;const t=e.getLanguageId(l);s!==t&&(s=t,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let c=!0;for(;l<t;l++){const t=e.getLanguageId(l);if(s!==t){if(r&&o&&c&&d!==h){const e=y.Vr.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e);c=!1}s=t,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!o&&!(0,C.Bu)(e.getStandardTokenType(l));if(i)c||(d=e.getStartOffset(l)),h=e.getEndOffset(l);else if(r&&o&&c&&d!==h){const e=y.Vr.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e)}c=i}if(r&&o&&c&&d!==h){const e=y.Vr.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=p.e.fromPositions(i),t=this.getBracketPairsInRange(p.e.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=V(t),s=this.textModel.getLineCount(),o=new Map;let r=[];const a=(e,t)=>{if(!o.has(e)){const i=[];for(let e=0,n=t?t.brackets.length:0;e<n;e++)i[e]=0;o.set(e,i)}r=o.get(e)};let l=0;const d=(e,t,i,s,o)=>{for(;;){if(n&&++l%100===0&&!n())return W.INSTANCE;const a=y.Vr.findNextBracketInRange(e.forwardRegex,t,i,s,o);if(!a)break;const d=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[d];if(h&&(h.isOpen(d)?r[h.index]++:h.isClose(d)&&r[h.index]--,-1===r[h.index]))return this._matchFoundBracket(a,h,!1,n);s=a.endColumn-1}return null};let h=null,c=null;for(let u=i.lineNumber;u<=s;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),n=this.textModel.getLineContent(u);let s=0,o=0,r=0;if(u===i.lineNumber){s=e.findTokenIndexAtOffset(i.column-1),o=i.column-1,r=i.column-1;const t=e.getLanguageId(s);h!==t&&(h=t,c=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,c))}let l=!0;for(;s<t;s++){const t=e.getLanguageId(s);if(h!==t){if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e);l=!1}h=t,c=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,c)}const i=!!c&&!(0,C.Bu)(e.getStandardTokenType(s));if(i)l||(o=e.getStartOffset(s)),r=e.getEndOffset(s);else if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e)}l=i}if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function V(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class W{constructor(){this._searchCanceledBrand=void 0}}function H(e){return e instanceof W?null:e}W.INSTANCE=new W;var z=i(12354),j=i(46673);class U extends a.JT{constructor(e){super(),this.textModel=e,this.colorProvider=new K,this.onDidChangeEmitter=new r.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){if(n)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new p.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}class K{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,j.Ic)(((e,t)=>{const i=[z.zJ,z.Vs,z.CE,z.UP,z.r0,z.m1],n=new K;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(z.ts)}; }`);const s=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let o=0;o<30;o++){const e=s[o%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(o)} { color: ${e}; }`)}}));var q=i(81158),$=i(67263);class G{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Y(e,t,i,n,s){let o;for(s.spacesDiff=0,s.looksLikeAlignment=!1,o=0;o<t&&o<n;o++){if(e.charCodeAt(o)!==i.charCodeAt(o))break}let r=0,a=0;for(let u=o;u<t;u++){32===e.charCodeAt(u)?r++:a++}let l=0,d=0;for(let u=o;u<n;u++){32===i.charCodeAt(u)?l++:d++}if(r>0&&a>0)return;if(l>0&&d>0)return;const h=Math.abs(a-d),c=Math.abs(r-l);if(0===h)return s.spacesDiff=c,void(c>0&&0<=l-1&&l-1<e.length&&l<i.length&&32!==i.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(s.looksLikeAlignment=!0));c%h!==0||(s.spacesDiff=c/h)}function Z(e,t,i){const n=Math.min(e.getLineCount(),1e4);let s=0,o=0,r="",a=0;const l=[2,4,6,8,3,5,7],d=[0,0,0,0,0,0,0,0,0],h=new G;for(let g=1;g<=n;g++){const n=e.getLineLength(g),l=e.getLineContent(g),c=n<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=n;t<i;t++){const i=c?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?s++:m>1&&o++,Y(r,a,l,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&d[_]++,r=l,a=p}let c=i;s!==o&&(c=s<o);let u=t;if(c){let e=c?0:.1*n;l.forEach((t=>{const i=d[t];i>e&&(e=i,u=t)})),4===u&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(u=2)}return{insertSpaces:c,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t<<0}function J(e){return(2&e.metadata)>>>1===1}function ee(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function te(e){return(4&e.metadata)>>>2===1}function ie(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ne(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function oe(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class ae{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,ie(this,!1),se(this,!1),oe(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ee(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;ie(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),oe(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const le=new ae(null,0,0);le.parent=le,le.left=le,le.right=le,X(le,0);class de{constructor(){this.root=le,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s,o){return this.root===le?[]:function(e,t,i,n,s,o,r){let a=e.root,l=0,d=0,h=0,c=0;const u=[];let g=0;for(;a!==le;)if(J(a))ee(a.left,!1),ee(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!J(a.left)){if(d=l+a.maxEnd,d<t){ee(a,!0);continue}if(a.left!==le){a=a.left;continue}}if(h=l+a.start,h>i)ee(a,!0);else{if(c=l+a.end,c>=t){a.setCachedOffsets(h,c,o);let e=!0;n&&a.ownerId&&a.ownerId!==n&&(e=!1),s&&te(a)&&(e=!1),r&&!ne(a)&&(e=!1),e&&(u[g++]=a)}ee(a,!0),a.right===le||J(a.right)||(l+=a.delta,a=a.right)}}return ee(e.root,!1),u}(this,e,t,i,n,s,o)}search(e,t,i,n){return this.root===le?[]:function(e,t,i,n,s){let o=e.root,r=0,a=0,l=0;const d=[];let h=0;for(;o!==le;){if(J(o)){ee(o.left,!1),ee(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;continue}if(o.left!==le&&!J(o.left)){o=o.left;continue}a=r+o.start,l=r+o.end,o.setCachedOffsets(a,l,n);let e=!0;t&&o.ownerId&&o.ownerId!==t&&(e=!1),i&&te(o)&&(e=!1),s&&!ne(o)&&(e=!1),e&&(d[h++]=o),ee(o,!0),o.right===le||J(o.right)||(r+=o.delta,o=o.right)}return ee(e.root,!1),d}(this,e,t,i,n)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const n=[];let s=0;for(;i!==le;)J(i)?(ee(i.left,!1),ee(i.right,!1),i=i.parent):i.left===le||J(i.left)?(i.ownerId===t&&(n[s++]=i),ee(i,!0),i.right===le||J(i.right)||(i=i.right)):i=i.left;return ee(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let n=0;for(;t!==le;)J(t)?(ee(t.left,!1),ee(t.right,!1),t=t.parent):t.left===le||J(t.left)?t.right===le||J(t.right)?(i[n++]=t,ee(t,!0)):t=t.right:t=t.left;return ee(e.root,!1),i}(this)}insert(e){ue(this,e),this._normalizeDeltaIfNecessary()}delete(e){ge(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,o=i.end+n;i.setCachedOffsets(s,o,t)}acceptReplace(e,t,i,n){const s=function(e,t,i){let n=e.root,s=0,o=0,r=0,a=0;const l=[];let d=0;for(;n!==le;)if(J(n))ee(n.left,!1),ee(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;else{if(!J(n.left)){if(o=s+n.maxEnd,o<t){ee(n,!0);continue}if(n.left!==le){n=n.left;continue}}r=s+n.start,r>i?ee(n,!0):(a=s+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[d++]=n),ee(n,!0),n.right===le||J(n.right)||(s+=n.delta,n=n.right))}return ee(e.root,!1),l}(this,e,e+t);for(let o=0,r=s.length;o<r;o++){ge(this,s[o])}this._normalizeDeltaIfNecessary(),function(e,t,i,n){let s=e.root,o=0,r=0,a=0;const l=n-(i-t);for(;s!==le;)if(J(s))ee(s.left,!1),ee(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),ve(s),s=s.parent;else{if(!J(s.left)){if(r=o+s.maxEnd,r<t){ee(s,!0);continue}if(s.left!==le){s=s.left;continue}}a=o+s.start,a>i?(s.start+=l,s.end+=l,s.delta+=l,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0),ee(s,!0)):(ee(s,!0),s.right===le||J(s.right)||(o+=s.delta,s=s.right))}ee(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let o=0,r=s.length;o<r;o++){const r=s[o];r.start=r.cachedAbsoluteStart,r.end=r.cachedAbsoluteEnd,ce(r,e,e+t,i,n),r.maxEnd=r.end,ue(this,r)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==le;)t.left===le||J(t.left)?t.right===le||J(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,ve(t),ee(t,!0),ee(t.left,!1),ee(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;ee(e.root,!1)}(this))}}function he(e,t,i,n){return e<i||!(e>i)&&(1!==n&&(2===n||t))}function ce(e,t,i,n,s){const o=function(e){return(24&e.metadata)>>>3}(e),r=0===o||2===o,a=1===o||2===o,l=i-t,d=n,h=Math.min(l,d),c=e.start;let u=!1;const g=e.end;let p=!1;t<=c&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=s?1:l>0?2:0;!u&&he(c,r,t,e)&&(u=!0),!p&&he(g,a,t,e)&&(p=!0)}if(h>0&&!s){const e=l>d?2:0;!u&&he(c,r,t+h,e)&&(u=!0),!p&&he(g,a,t+h,e)&&(p=!0)}{const n=s?1:0;!u&&he(c,r,i,n)&&(e.start=t+d,u=!0),!p&&he(g,a,i,n)&&(e.end=t+d,p=!0)}const m=d-l;u||(e.start=Math.max(0,c+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function ue(e,t){if(e.root===le)return t.parent=le,t.left=le,t.right=le,X(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const s=t.start,o=t.end;for(;;){if(Ce(s,o,n.start+i,n.end+i)<0){if(n.left===le){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===le){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}}t.parent=n,t.left=le,t.right=le,X(t,1)}(e,t),be(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),fe(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,fe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}return X(e.root,0),t}function ge(e,t){let i,n;if(t.left===le?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===le?(i=t.left,n=t):(n=function(e){for(;e.left!==le;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,X(i,0),t.detach(),pe(),ve(i),void(e.root.parent=le);const s=1===Q(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,X(n,Q(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==le&&(n.left.parent=n),n.right!==le&&(n.right.parent=n)),t.detach(),s)return be(i.parent),n!==t&&(be(n),be(n.parent)),void pe();let o;for(be(i),be(i.parent),n!==t&&(be(n),be(n.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(o=i.parent.right,1===Q(o)&&(X(o,0),X(i.parent,1),me(e,i.parent),o=i.parent.right),0===Q(o.left)&&0===Q(o.right)?(X(o,1),i=i.parent):(0===Q(o.right)&&(X(o.left,0),X(o,1),fe(e,o),o=i.parent.right),X(o,Q(i.parent)),X(i.parent,0),X(o.right,0),me(e,i.parent),i=e.root)):(o=i.parent.left,1===Q(o)&&(X(o,0),X(i.parent,1),fe(e,i.parent),o=i.parent.left),0===Q(o.left)&&0===Q(o.right)?(X(o,1),i=i.parent):(0===Q(o.left)&&(X(o.right,0),X(o,1),me(e,o),o=i.parent.left),X(o,Q(i.parent)),X(i.parent,0),X(o.left,0),fe(e,i.parent),i=e.root));X(i,0),pe()}function pe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==le&&(i.left.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,ve(t),ve(i)}function fe(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==le&&(i.right.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,ve(t),ve(i)}function _e(e){let t=e.end;if(e.left!==le){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==le){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function ve(e){e.maxEnd=_e(e)}function be(e){for(;e!==le;){const t=_e(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,n){return e===i?t-n:e-i}class ye{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==we)return Se(this.right);let e=this;for(;e.parent!==we&&e.parent.left!==e;)e=e.parent;return e.parent===we?we:e.parent}prev(){if(this.left!==we)return xe(this.left);let e=this;for(;e.parent!==we&&e.parent.right!==e;)e=e.parent;return e.parent===we?we:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const we=new ye(null,0);function Se(e){for(;e.left!==we;)e=e.left;return e}function xe(e){for(;e.right!==we;)e=e.right;return e}function Le(e){return e===we?0:e.size_left+e.piece.length+Le(e.right)}function ke(e){return e===we?0:e.lf_left+e.piece.lineFeedCnt+ke(e.right)}function De(){we.parent=we}function Ne(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==we&&(i.left.parent=t),i.parent=t.parent,t.parent===we?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function Ee(e,t){const i=t.left;t.left=i.right,i.right!==we&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===we?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function Te(e,t){let i,n;if(t.left===we?(n=t,i=n.right):t.right===we?(n=t,i=n.left):(n=Se(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),De(),void(e.root.parent=we);const s=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Ae(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Ae(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==we&&(n.left.parent=n),n.right!==we&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Ae(e,n)),t.detach(),i.parent.left===i){const t=Le(i),n=ke(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const s=t-i.parent.size_left,o=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Me(e,i.parent,s,o)}}if(Ae(e,i.parent),s)return void De();let o;for(;i!==e.root&&0===i.color;)i===i.parent.left?(o=i.parent.right,1===o.color&&(o.color=0,i.parent.color=1,Ne(e,i.parent),o=i.parent.right),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.right.color&&(o.left.color=0,o.color=1,Ee(e,o),o=i.parent.right),o.color=i.parent.color,i.parent.color=0,o.right.color=0,Ne(e,i.parent),i=e.root)):(o=i.parent.left,1===o.color&&(o.color=0,i.parent.color=1,Ee(e,i.parent),o=i.parent.left),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.left.color&&(o.right.color=0,o.color=1,Ne(e,o),o=i.parent.left),o.color=i.parent.color,i.parent.color=0,o.left.color=0,Ee(e,i.parent),i=e.root));i.color=0,De()}function Ie(e,t){for(Ae(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Ne(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ee(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Ee(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ne(e,t.parent.parent))}e.root.color=0}function Me(e,t,i,n){for(;t!==e.root&&t!==we;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Ae(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=Le((t=t.parent).left)-t.size_left,n=ke(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}we.parent=we,we.left=we,we.right=we,we.color=0;var Re=i(39471);const Oe=65535;function Pe(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Fe{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Be(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=[0];let n=1;for(let s=0,o=e.length;s<o;s++){const t=e.charCodeAt(s);13===t?s+1<o&&10===e.charCodeAt(s+1)?(i[n++]=s+2,s++):i[n++]=s+1:10===t&&(i[n++]=s+1)}return t?Pe(i):i}class Ve{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class We{constructor(e,t){this.buffer=e,this.lineStarts=t}}class He{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==we&&e.iterate(e.root,(e=>(e!==we&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class ze{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n<i.length;n++){const s=i[n];(null===s.node.parent||s.nodeStartOffset>=e)&&(i[n]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class je{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new We("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=we,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,o=e.length;s<o;s++)if(e[s].buffer.length>0){e[s].lineStarts||(e[s].lineStarts=Be(e[s].buffer));const t=new Ve(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,t)}this._searchCache=new ze(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=65535-Math.floor(21845),i=2*t;let n="",s=0;const o=[];if(this.iterate(this.root,(r=>{const a=this.getNodeContent(r),l=a.length;if(s<=t||s+l<i)return n+=a,s+=l,!0;const d=n.replace(/\r\n|\r|\n/g,e);return o.push(new We(d,Be(d))),n=a,s=l,!0})),s>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new We(t,Be(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new He(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==we;)if(n.left!==we&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;return i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1)}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==we;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){const e=n-this.getOffsetAt(i+1,1);return new g.L(i+1,e+1)}return new g.L(i+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===we){const t=n-e-this.getOffsetAt(i+1,1);return new g.L(i+1,t+1)}t=t.right}return new g.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(s+e.remainder,s+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let o=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==we;){const e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){o+=e.substring(n,n+t.remainder);break}o+=e.substr(n,i.piece.length),i=i.next()}return o}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,(s=>{if(s===we)return!0;const o=s.piece;let r=o.length;if(0===r)return!0;const a=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,d=o.start.line,h=o.end.line;let c=l[d]+o.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(d===h)return this._EOLNormalized||13!==a.charCodeAt(c+r-1)?i+=a.substr(c,r):(n=!0,i+=a.substr(c,r-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,l[d+1]-this._EOLLength)):a.substring(c,l[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=d+1;n<h;n++)i=this._EOLNormalized?a.substring(l[n],l[n+1]-this._EOLLength):a.substring(l[n],l[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(l[h]+o.end.column-1)?i=a.substr(l[h],o.end.column):(n=!0,0===o.end.column?t--:i=a.substr(l[h],o.end.column-1)),!0})),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],n=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(n)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,s,o,r,a,l,d,h){const c=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,s),m=this.offsetInBuffer(e.piece.bufferIndex,o);let f;const _={line:0,column:0};let v,b;t._wordSeparators?(v=c.buffer.substring(g,m),b=e=>e+g,t.reset(0)):(v=c.buffer,b=e=>e,t.reset(g));do{if(f=t.next(v),f){if(b(f.index)>=m)return d;this.positionInBuffer(e,b(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,s,_),o=_.line===s.line?_.column-s.column+n:_.column+1,r=o+f[0].length;if(h[d++]=(0,Re.iE)(new p.e(i+t,o,i+t,r),f,a),b(f.index)+f[0].length>=m)return d;if(d>=l)return d}}while(f);return d}findMatchesLineByLine(e,t,i,n){const s=[];let o=0;const r=new Re.sz(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let d=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,h,t,i,n,o,s),s;let c=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,d,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[d.line+l],p=c===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(u,r,c,p,d,this.positionInBuffer(u,g-h),t,i,n,o,s),o>=n)return s;c+=l}const h=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){const a=this.getLineContent(c).substring(h,e.endColumn-1);return o=this._findMatchesInLine(t,r,a,e.endLineNumber,h,o,s,i,n),s}if(o=this._findMatchesInLine(t,r,this.getLineContent(c).substr(h),c,h,o,s,i,n),o>=n)return s;c++,a=this.nodeAt2(c,1),u=a.node,d=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){const a=c===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(c).substring(a,e.endColumn-1);return o=this._findMatchesInLine(t,r,l,e.endLineNumber,a,o,s,i,n),s}const g=c===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,r,c,g,d,h,t,i,n,o,s),s}_findMatchesInLine(e,t,i,n,s,o,r,a,l){const d=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let c=-a;for(;-1!==(c=i.indexOf(t,c+a));)if((!d||(0,Re.cM)(d,i,h,c,a))&&(r[o++]=new b.tk(new p.e(n,c+1+s,n,c+1+a+s),null),o>=l))return o;return o}let h;t.reset(0);do{if(h=t.next(i),h&&(r[o++]=(0,Re.iE)(new p.e(n,h.index+1+s,n,h.index+1+h[0].length+s),h,a),o>=l))return o}while(h);return o}insert(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==we){const{node:i,remainder:n,nodeStartOffset:s}=this.nodeAt(e),o=i.piece,r=o.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&s+o.length===e&&t.length<Oe)return this.appendToNode(i,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(s+i.piece.length>e){const e=[];let s=new Ve(o.bufferIndex,a,o.end,this.getLineFeedCnt(o.bufferIndex,a,o.end),this.offsetInBuffer(r,o.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,n)){const e={line:s.start.line+1,column:0};s=new Ve(s.bufferIndex,e,s.end,this.getLineFeedCnt(s.bufferIndex,e,s.end),s.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){const s=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,s),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);s.length>0&&this.rbInsertRight(i,s);let d=i;for(let t=0;t<l.length;t++)d=this.rbInsertRight(d,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===we)return;const i=this.nodeAt(e),n=this.nodeAt(e+t),s=i.node,o=n.node;if(s===o){const o=this.positionInBuffer(s,i.remainder),r=this.positionInBuffer(s,n.remainder);if(i.nodeStartOffset===e){if(t===s.piece.length){const e=s.next();return Te(this,s),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(s,r),this._searchCache.validate(e),this.validateCRLFWithPrevNode(s),void this.computeBufferMetadata()}return i.nodeStartOffset+s.piece.length===e+t?(this.deleteNodeTail(s,o),this.validateCRLFWithNextNode(s),void this.computeBufferMetadata()):(this.shrinkNode(s,o,r),void this.computeBufferMetadata())}const r=[],a=this.positionInBuffer(s,i.remainder);this.deleteNodeTail(s,a),this._searchCache.validate(e),0===s.piece.length&&r.push(s);const l=this.positionInBuffer(o,n.remainder);this.deleteNodeHead(o,l),0===o.piece.length&&r.push(o);for(let h=s.next();h!==we&&h!==o;h=h.next())r.push(h);const d=0===s.piece.length?s.prev():s;this.deleteNodes(r),this.validateCRLFWithNextNode(d),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const n=t.piece,s={line:n.start.line+1,column:0},o=new Ve(n.bufferIndex,s,n.end,this.getLineFeedCnt(n.bufferIndex,s,n.end),n.length-1);t.piece=o,e+="\n",Me(this,t,-1,-1),0===t.piece.length&&i.push(t)}const n=this.createNewPieces(e);let s=this.rbInsertLeft(t,n[n.length-1]);for(let o=n.length-2;o>=0;o--)s=this.rbInsertLeft(s,n[o]);this.validateCRLFWithPrevNode(s),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let s=n;for(let o=1;o<i.length;o++)s=this.rbInsertRight(s,i[o]);this.validateCRLFWithPrevNode(n)}positionInBuffer(e,t,i){const n=e.piece,s=e.piece.bufferIndex,o=this._buffers[s].lineStarts,r=o[n.start.line]+n.start.column+t;let a=n.start.line,l=n.end.line,d=0,h=0,c=0;for(;a<=l&&(d=a+(l-a)/2|0,c=o[d],d!==l);)if(h=o[d+1],r<c)l=d-1;else{if(!(r>=h))break;a=d+1}return i?(i.line=d,i.column=r-c,null):{line:d,column:r-c}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const s=n[i.line+1],o=n[i.line]+i.column;if(s>o+1)return i.line-t.line;const r=o-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Te(this,e[t])}createNewPieces(e){if(e.length>Oe){const t=[];for(;e.length>Oe;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,Oe),e=e.substring(Oe));const s=Be(n);t.push(new Ve(this._buffers.length,{line:0,column:0},{line:s.length-1,column:n.length-s[s.length-1]},s.length-1,n.length)),this._buffers.push(new We(n,s))}const i=Be(e);return t.push(new Ve(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new We(e,i)),t}let t=this._buffers[0].buffer.length;const i=Be(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const s=this._buffers[0].buffer.length,o=this._buffers[0].lineStarts.length-1,r={line:o,column:s-this._buffers[0].lineStarts[o]},a=new Ve(0,n,r,this.getLineFeedCnt(0,n,r),s-t);return this._lastChangeBufferPos=r,[a]}getLineRawContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.root,n="";const s=this._searchCache.get2(e);if(s){i=s.node;const o=this.getAccumulatedValue(i,e-s.nodeStartLineNumber-1),r=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(s.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const n=this.getAccumulatedValue(i,e-s.nodeStartLineNumber);return r.substring(a+o,a+n-t)}n=r.substring(a+o,a+i.piece.length)}else{let s=0;const o=e;for(;i!==we;)if(i.left!==we&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:s,nodeStartLineNumber:o-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),s=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=s.substring(o+t,o+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==we;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(i,0),o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(o,o+s-t),n}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==we;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),s=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==s)return{index:t,remainder:0}}return{index:s,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,s=i.start.line+t+1;return s>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[s]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.end),o=t,r=this.offsetInBuffer(i.bufferIndex,o),a=this.getLineFeedCnt(i.bufferIndex,i.start,o),l=a-n,d=r-s,h=i.length+d;e.piece=new Ve(i.bufferIndex,i.start,o,a,h),Me(this,e,d,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.start),o=t,r=this.getLineFeedCnt(i.bufferIndex,o,i.end),a=r-n,l=s-this.offsetInBuffer(i.bufferIndex,o),d=i.length+l;e.piece=new Ve(i.bufferIndex,o,i.end,r,d),Me(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,s=n.start,o=n.end,r=n.length,a=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,s);e.piece=new Ve(n.bufferIndex,n.start,l,d,h),Me(this,e,h-r,d-a);const c=new Ve(n.bufferIndex,i,o,this.getLineFeedCnt(n.bufferIndex,i,o),this.offsetInBuffer(n.bufferIndex,o)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const s=Be(t,!1);for(let c=0;c<s.length;c++)s[c]+=n;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1));const o=this._buffers[0].lineStarts.length-1,r={line:o,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[o]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,r),h=d-l;e.piece=new Ve(e.piece.bufferIndex,e.piece.start,r,d,a),this._lastChangeBufferPos=r,Me(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let n=0;for(;t!==we;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==we;)if(i.left!==we&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(s+t-1,o),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2);if(s+t-1<=i.piece.length)return{node:i,remainder:s+t-1,nodeStartOffset:n};t-=i.piece.length-s;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==we;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===we||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,s=i[n]+t.start.column;if(n===i.length-1)return!1;return!(i[n+1]>s+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(s)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==we&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let s;s=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new Ve(e.piece.bufferIndex,e.piece.start,s,r,o),Me(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ve(t.piece.bufferIndex,a,t.piece.end,d,l),Me(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let c=0;c<i.length;c++)Te(this,i[c])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)Te(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},n=e.length-1,s=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ve(e.bufferIndex,t,e.end,s,n),Me(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===we)return t(we);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===we)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,n=this.offsetInBuffer(i.bufferIndex,i.start),s=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(n,s)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),n=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,n)}rbInsertRight(e,t){const i=new ye(t,1);i.left=we,i.right=we,i.parent=we,i.size_left=0,i.lf_left=0;if(this.root===we)this.root=i,i.color=0;else if(e.right===we)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ie(this,i),i}rbInsertLeft(e,t){const i=new ye(t,1);if(i.left=we,i.right=we,i.parent=we,i.size_left=0,i.lf_left=0,this.root===we)this.root=i,i.color=0;else if(e.left===we)e.left=i,i.parent=e;else{const t=xe(e.left);t.right=i,i.parent=t}return Ie(this,i),i}}var Ue=i(53687);class Ke extends a.JT{constructor(e,t,i,n,s,o,a){super(),this._onDidChangeContent=this._register(new r.Q5),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._pieceTree=new je(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,n=this.getPositionAt(e),s=this.getPositionAt(i);return new p.e(n.lineNumber,n.column,s.lineNumber,s.column)}getValueInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),n=this.getOffsetAt(e.endLineNumber,e.endColumn);let s=0;const o=this._getEndOfLine(t),r=this.getEOL();if(o.length!==r.length){s=(o.length-r.length)*(e.endLineNumber-e.startLineNumber)}return n-i+s}getCharacterCountInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._mightContainNonBasicASCII){let i=0;const n=e.startLineNumber,s=e.endLineNumber;for(let t=n;t<=s;t++){const o=this.getLineContent(t),r=t===n?e.startColumn-1:0,a=t===s?e.endColumn-1:o.length;for(let e=r;e<a;e++)l.ZG(o.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(s-n),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=l.LC(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=l.ow(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let n=this._mightContainRTL,s=this._mightContainUnusualLineTerminators,o=this._mightContainNonBasicASCII,r=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];r&&t._isTracked&&(r=!1);const i=t.range;if(t.text){let e=!0;o||(e=!l.$i(t.text),o=e),!n&&e&&(n=l.Ut(t.text)),!s&&e&&(s=l.ab(t.text))}let d="",c=0,u=0,g=0;if(t.text){let e;[c,u,g,e]=(0,h.Q)(t.text);const i=this.getEOL();d=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:d,eolCount:c,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ke._sortOpsAscending);let d=!1;for(let l=0,h=a.length-1;l<h;l++){const e=a[l].range.getEndPosition(),t=a[l+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");d=!0}}r&&(a=this._reduceOperations(a));const c=i||t?Ke._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=c[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let n="";i===t.startLineNumber&&(n=this.getLineContent(e.range.startLineNumber),-1!==l.LC(n))||u.push({lineNumber:i,oldContent:n})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],n=c[t],s=this.getValueInRange(i.range),o=i.rangeOffset+e;e+=i.text.length-s.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:n,text:s,textChange:new Ue.q(i.rangeOffset,s,o,i.text)}}d||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=o;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===l.LC(n)&&m.push(t)}}return this._onDidChangeContent.fire(),new b.je(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,s=new p.e(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let o=i.startLineNumber,r=i.startColumn;const a=[];for(let h=0,g=e.length;h<g;h++){const i=e[h],n=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new p.e(o,r,n.startLineNumber,n.startColumn))),i.text.length>0&&a.push(i.text),o=n.endLineNumber,r=n.endColumn}const l=a.join(""),[d,c,u]=(0,h.Q)(l);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:l,eolCount:d,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ke._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const n=e[i],s=n.range.startLineNumber,o=n.range.startColumn,r=n.range.endLineNumber,a=n.range.endColumn;if(s===r&&o===a&&0===n.text.length)continue;n.text?(this._pieceTree.delete(n.rangeOffset,n.rangeLength),this._pieceTree.insert(n.rangeOffset,n.text,!0)):this._pieceTree.delete(n.rangeOffset,n.rangeLength);const l=new p.e(s,o,r,a);t.push({range:l,rangeLength:n.rangeLength,text:n.text,rangeOffset:n.rangeOffset,forceMoveMarkers:n.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,n){return this._pieceTree.findMatchesLineByLine(e,t,i,n)}static _getInverseEditRanges(e){const t=[];let i=0,n=0,s=null;for(let o=0,r=e.length;o<r;o++){const r=e[o];let a,l,d;if(s?s.range.endLineNumber===r.range.startLineNumber?(a=i,l=n+(r.range.startColumn-s.range.endColumn)):(a=i+(r.range.startLineNumber-s.range.endLineNumber),l=r.range.startColumn):(a=r.range.startLineNumber,l=r.range.startColumn),r.text.length>0){const e=r.eolCount+1;d=1===e?new p.e(a,l,a,l+r.firstLineLength):new p.e(a,l,a+e-1,r.lastLineLength+1)}else d=new p.e(a,l,a,l);i=d.endLineNumber,n=d.endColumn,t.push(d),s=r}return t}static _sortOpsAscending(e,t){const i=p.e.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=p.e.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class qe{constructor(e,t,i,n,s,o,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=s,this._containsRTL=o,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let s=0,o=i.length;s<o;s++){const e=i[s].buffer.replace(/\r\n|\r|\n/g,t),n=Be(e);i[s]=new We(e,n)}const n=new Ke(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}class $e{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&l.uS(e)&&(this.BOM=l.c1,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,s=0,o=0,r=!0;for(let l=0,d=t.length;l<d;l++){const a=t.charCodeAt(l);13===a?l+1<d&&10===t.charCodeAt(l+1)?(o++,e[i++]=l+2,l++):(n++,e[i++]=l+1):10===a?(s++,e[i++]=l+1):r&&9!==a&&(a<32||a>126)&&(r=!1)}const a=new Fe(Pe(e),n,s,o,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new We(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=l.Ut(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=l.ab(e)))}finish(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._finish(),new qe(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Be(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ge=i(53372),Ye=i(67331),Ze=i(18841),Qe=i(42101),Xe=i(90388),Je=i(6617),et=i(93845),tt=i(31708);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const n=this._store.slice(0,e),s=this._store.slice(e+t),o=function(e,t){const i=[];for(let n=0;n<e;n++)i[n]=t;return i}(i,this._default);this._store=n.concat(o,s)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let n=0;n<t;n++)i[n]=this._default;this._store=(0,n.Zv)(this._store,e,i)}}class nt{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class st{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new nt(e,[t]))}finalize(){return this._tokens}}var ot=i(34415);class rt{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lt(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends rt{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const s=this._textModel.getLineContent(n.lineNumber),o=ct(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n.startState);e.add(n.lineNumber,o.tokens),this.store.setEndState(n.lineNumber,o.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),o=s.substring(0,e.column-1)+t+s.substring(e.column-1),r=ct(this._languageIdCodec,n,this.tokenizationSupport,o,!0,i),a=new ot.A(r.tokens,o,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column,o=this.getStartState(n);if(!o)return null;const r=this._textModel.getLineContent(n),a=r.substring(0,s-1)+i+r.substring(s-1+t),l=this._textModel.getLanguageIdAtPosition(n,0),d=ct(this._languageIdCodec,l,this.tokenizationSupport,a,!0,o);return new ot.A(d.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let n=this.guessStartState(t);const s=this._textModel.getLanguageId();for(let o=t;o<=i;o++){const t=this._textModel.getLineContent(o),i=ct(this._languageIdCodec,s,this.tokenizationSupport,t,!0,n);e.add(o,i.tokens),n=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let n=null;for(let r=e-1;t>1&&r>=1;r--){const e=this._textModel.getLineFirstNonWhitespaceColumn(r);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(r)),t=e,n=this.getStartState(r),n)))break}n||(n=this.tokenizationSupport.getInitialState()),i.reverse();const s=this._textModel.getLanguageId();let o=n;for(const r of i){o=ct(this._languageIdCodec,s,this.tokenizationSupport,r,!1,o).endState}return o}}class lt{constructor(e){this.lineCount=e,this._tokenizationStateStore=new dt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.q(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new o.he("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.q(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.q(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.Q)(t.text);this.acceptChange(new u.z(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.q(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new o.he("Start state must be defined");return{lineNumber:t,startState:i}}}class dt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.q(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.q(i.start,e):this._ranges.splice(t,1,new et.q(i.start,e),new et.q(e+1,i.endExclusive))}}addRange(e){et.q.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusive<this._ranges[n].start);)n++;const s=t-e.length;for(let o=n;o<this._ranges.length;o++)this._ranges[o]=this._ranges[o].delta(s);if(i===n){const n=new et.q(e.start,e.start+t);n.isEmpty||this._ranges.splice(i,0,n)}else{const t=Math.min(e.start,this._ranges[i].start),o=Math.max(e.endExclusive,this._ranges[n-1].endExclusive),r=new et.q(t,o+s);r.isEmpty?this._ranges.splice(i,n-i):this._ranges.splice(i,n-i,r)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ct(e,t,i,n,s,r){let a=null;if(i)try{a=i.tokenizeEncoded(n,s,r.clone())}catch(l){(0,o.dL)(l)}return a||(a=(0,tt.Dy)(e.encodeLanguageId(t),r)),ot.A.convertToEndOffset(a.tokens,n.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Ge.jg)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Xe.fn)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new st,i=Je.G.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){var t;const i=null===(t=this._tokenizerWithStateStore)||void 0===t?void 0:t.getFirstInvalidLine();return i?(this._tokenizerWithStateStore.updateTokensUntilLine(e,i.lineNumber),i.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new u.z(e,t))}}const gt=new Uint32Array(0).buffer;class pt{static deleteBeginning(e,t){return null===e||e===gt?e:pt.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===gt)return e;const i=mt(e),n=i[i.length-2];return pt.delete(e,t,n)}static delete(e,t,i){if(null===e||e===gt||t===i)return e;const n=mt(e),s=n.length>>>1;if(0===t&&n[n.length-2]===i)return gt;const o=ot.A.findIndexInTokensArray(n,t),r=o>0?n[o-1<<1]:0;if(i<n[o<<1]){const r=i-t;for(let e=o;e<s;e++)n[e<<1]-=r;return e}let a,l;r!==t?(n[o<<1]=t,a=o+1<<1,l=t):(a=o<<1,l=r);const d=i-t;for(let c=o+1;c<s;c++){const e=n[c<<1]-d;e>l&&(n[a++]=e,n[a++]=n[1+(c<<1)],l=e)}if(a===n.length)return e;const h=new Uint32Array(a);return h.set(n.subarray(0,a),0),h.buffer}static append(e,t){if(t===gt)return e;if(e===gt)return t;if(null===e)return e;if(null===t)return null;const i=mt(e),n=mt(t),s=n.length>>>1,o=new Uint32Array(i.length+n.length);o.set(i,0);let r=i.length;const a=i[i.length-2];for(let l=0;l<s;l++)o[r++]=n[l<<1]+a,o[r++]=n[1+(l<<1)];return o.buffer}static insert(e,t,i){if(null===e||e===gt)return e;const n=mt(e),s=n.length>>>1;let o=ot.A.findIndexInTokensArray(n,t);if(o>0){n[o-1<<1]===t&&o--}for(let r=o;r<s;r++)n[r<<1]+=i;return e}}function mt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var ft=i(9556);class _t{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let n=null;if(t<this._len&&(n=this._lineTokens[t]),null!==n&&n!==gt)return new ot.A(mt(n),i,this._languageIdCodec);const s=new Uint32Array(2);return s[0]=i.length,s[1]=vt(this._languageIdCodec.encodeLanguageId(e)),new ot.A(s,i,this._languageIdCodec)}static _massageTokens(e,t,i){const n=i?mt(i):null;if(0===t){let t=!1;if(n&&n.length>1&&(t=ft.N.getLanguageId(n[1])!==e),!t)return gt}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=vt(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let n=0;n<t;n++)i[n]=null;this._lineTokens=n.Zv(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,n,s){const o=_t._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,n);this._ensureLine(t);const r=this._lineTokens[t];return this._lineTokens[t]=o,!!s&&!_t._equals(r,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=mt(e),n=mt(t);if(i.length!==n.length)return!1;for(let s=0,o=i.length;s<o;s++)if(i[s]!==n[s])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new g.L(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=pt.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=pt.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i<this._len&&(n=pt.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=pt.append(this._lineTokens[t],n),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const n=e.lineNumber-1;n>=this._len||(0!==t?(this._lineTokens[n]=pt.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=pt.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=pt.insert(this._lineTokens[n],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];let o=0,r=0,a=!1;for(let e=s.startLineNumber;e<=s.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),s.getLineTokens(e),!1),r=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),s.getLineTokens(e),!0)&&(a=!0,o=e,r=e)}a&&i.push({fromLineNumber:o,toLineNumber:r})}return{changes:i}}}function vt(e){return(32768|e<<0|2<<24|1024)>>>0}class bt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),s=t[t.length-1].getRange();if(!n||!s)return e;i=e.plusRange(n).plusRange(s)}let s=null;for(let n=0,o=this._pieces.length;n<o;n++){const e=this._pieces[n];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){s=s||{index:n};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(n,1),n--,o--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){s=s||{index:n};continue}const[t,r]=e.split(i);t.isEmpty()?s=s||{index:n}:r.isEmpty()||(this._pieces.splice(n,1,t,r),n++,o++,s=s||{index:n})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=n.Zv(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const n=i[bt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const s=t.getCount(),o=n.getCount();let r=0;const a=[];let l=0,d=0;const h=(e,t)=>{e!==d&&(d=e,a[l++]=e,a[l++]=t)};for(let c=0;c<o;c++){const e=n.getStartCharacter(c),i=n.getEndCharacter(c),o=n.getMetadata(c),a=((1&o?2048:0)|(2&o?4096:0)|(4&o?8192:0)|(8&o?16384:0)|(16&o?16744448:0)|(32&o?4278190080:0))>>>0,l=~a>>>0;for(;r<s&&t.getEndOffset(r)<=e;)h(t.getEndOffset(r),t.getMetadata(r)),r++;for(r<s&&t.getStartOffset(r)<e&&h(e,t.getMetadata(r));r<s&&t.getEndOffset(r)<i;)h(t.getEndOffset(r),t.getMetadata(r)&l|o&a),r++;if(r<s)h(i,t.getMetadata(r)&l|o&a),t.getEndOffset(r)===i&&r++;else{const e=Math.min(Math.max(0,r-1),s-1);h(i,t.getMetadata(e)&l|o&a)}}for(;r<s;)h(t.getEndOffset(r),t.getMetadata(r)),r++;return new ot.A(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,n=e.length-1;for(;i<n;){let s=i+Math.floor((n-i)/2);if(e[s].endLineNumber<t)i=s+1;else{if(!(e[s].startLineNumber>t)){for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}n=s-1}}return i}acceptEdit(e,t,i,n,s){for(const o of this._pieces)o.acceptEdit(e,t,i,n,s)}}class Ct extends Qe.U{constructor(e,t,i,n,s,o){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=s,this._attachedViews=o,this._semanticTokens=new bt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.Q5),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.Q5),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.Q5),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new yt(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews)),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(this.grammarTokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,n]=(0,h.Q)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,n,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new o.he("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[o,r]=Ct._findLanguageBoundaries(n,s),a=(0,Ye.t2)(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(o,r),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(s>0&&o===t.column-1){const[o,r]=Ct._findLanguageBoundaries(n,s-1),a=(0,Ye.t2)(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(o,r),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let s=e.getLineContent().length;for(let o=t,r=e.getCount();o<r&&e.getLanguageId(o)===i;o++)s=e.getEndOffset(o);return[n,s]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new g.L(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}setLanguageId(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api";if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this.grammarTokens.resetTokenization(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}}class yt extends a.JT{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.XK),this._tokens=new _t(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.XK),this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.Q5),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.Q5),this.onDidChangeTokens=this._onDidChangeTokens.event,this._attachedViewStates=this._register(new a.b2),this._register(Ze.RW.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((e=>{let{view:t,state:i}=e;if(i){let e=this._attachedViewStates.get(t);e||(e=new wt((()=>this.refreshRanges(e.lineRanges))),this._attachedViewStates.set(t,e)),e.handleStateChange(i)}else this._attachedViewStates.deleteAndDispose(t)})))}resetTokenization(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;this._tokens.flush(),null===(t=this._debugBackgroundTokens)||void 0===t||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lt(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[i,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Ze.RW.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,o.dL)(i),[null,null]}return[e,t]})();if(this._tokenizer=i&&n?new at(this._textModel.getLineCount(),i,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{var i;if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&(null===(i=this._tokenizer)||void 0===i||i.store.setEndState(e,t))}};i&&i.createBackgroundTokenizer&&!i.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),(null===i||void 0===i?void 0:i.backgroundTokenizerShouldOnlyVerifyTokens)&&i.createBackgroundTokenizer?(this._debugBackgroundTokens=new _t(this._languageIdCodec),this._debugBackgroundStates=new lt(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,{setTokens:e=>{var t;null===(t=this._debugBackgroundTokens)||void 0===t||t.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{var i;null===(i=this._debugBackgroundStates)||void 0===i||i.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;null===(e=this._defaultBackgroundTokenizer)||void 0===e||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const i of e.changes){const[e,n]=(0,h.Q)(i.text);this._tokens.acceptEdit(i.range,e,n),null===(t=this._debugBackgroundTokens)||void 0===t||t.acceptEdit(i.range,e,n)}null===(i=this._debugBackgroundStates)||void 0===i||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=u.z.joinMany([...this._attachedViewStates].map((e=>{let[t,i]=e;return i.lineRanges})));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const s=new st,{heuristicTokens:o}=this._tokenizer.tokenizeHeuristically(s,e,t),r=this.setTokens(s.finalize());if(o)for(const a of r.changes)null===(i=this._backgroundTokenizer.value)||void 0===i||i.requestTokens(a.fromLineNumber,a.toLineNumber+1);null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.checkFinished()}forceTokenization(e){var t,i;const n=new st;null===(t=this._tokenizer)||void 0===t||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),null===(i=this._defaultBackgroundTokenizer)||void 0===i||i.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(s)&&(null===(t=this._debugBackgroundTokenizer.value)||void 0===t?void 0:t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new g.L(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class wt extends a.JT{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Ge.pY((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,n.fS)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}var St,xt=i(75324),Lt=i(40938),kt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Dt=function(e,t){return function(i,n){t(i,n,e)}};function Nt(e,t){let i;return i="string"===typeof e?function(e){const t=new $e;return t.acceptChunk(e),t.finish()}(e):b.Hf(e)?function(e){const t=new $e;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Et=0;class Tt{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const It=()=>{throw new Error("Invalid change accessor")};let Mt=St=class extends a.JT{static resolveOptions(e,t){if(t.detectIndentation){const i=Z(e,t.tabSize,t.insertSpaces);return new b.dJ({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new b.dJ(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.F8)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,h=arguments.length>6?arguments[6]:void 0;super(),this._undoRedoService=s,this._languageService=o,this._languageConfigurationService=h,this._onWillDispose=this._register(new r.Q5),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Kt((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.Q5),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.Q5),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.Q5),this._eventEmitter=this._register(new qt),this._languageSelectionListener=this._register(new a.XK),this._deltaDecorationCallCnt=0,this._attachedViews=new $t,Et++,this.id="$model"+Et,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof n||null===n?d.o.parse("inmemory://model/"+Et):n,this._attachedEditorCount=0;const{textBuffer:c,disposable:u}=Nt(e,i.defaultEOL);this._buffer=c,this._bufferDisposable=u,this._options=St.resolveOptions(this._buffer,i);const g="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new B(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new $.l(this,this._languageConfigurationService)),this._decorationProvider=this._register(new U(this)),this._tokenizationTextModelPart=new Ct(this._languageService,this._languageConfigurationService,this,this._bracketPairs,g,this._attachedViews);const m=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new p.e(1,1,m,this._buffer.getLineLength(m)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=f>St.LARGE_FILE_SIZE_THRESHOLD||m>St.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=f>St.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=f>St._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=l.PJ(Et),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ot,this._commandManager=new q.NL(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(g)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ke([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.JT.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new xt.fV(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,o.b1)();const{textBuffer:t,disposable:i}=Nt(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,o,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:s,isRedoing:o,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Ot,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new xt.dQ([new xt.Jx],this._versionId,!1,!1),this._createContentChanged2(new p.e(1,1,s,o),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new xt.dQ([new xt.CZ],this._versionId,!1,!1),this._createContentChanged2(new p.e(1,1,s,o),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i<n;i++){const n=t[i],s=n.range,o=n.cachedAbsoluteStart-n.start,r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);n.cachedAbsoluteStart=r,n.cachedAbsoluteEnd=a,n.cachedVersionId=e,n.start=r-o,n.end=a-o,ve(n)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,n="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,s="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new b.dJ({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:o});if(this._options.equals(r))return;const a=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=Z(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,c.x)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.findMatches(l.Qe.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new o.he("Operation would exceed heap memory limits");const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Tt(this._buffer.createSnapshot(e))}getValueLength(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new o.he("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.he("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let s=Math.floor("number"!==typeof i||isNaN(i)?1:i),o=Math.floor("number"!==typeof n||isNaN(n)?1:n);if(s<1)s=1,o=1;else if(s>t)s=t,o=this.getLineMaxColumn(s);else if(o<=1)o=1;else{const e=this.getLineMaxColumn(s);o>=e&&(o=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof r||isNaN(r)?1:r),d=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,d=1;else if(l>t)l=t,d=this.getLineMaxColumn(l);else if(d<=1)d=1;else{const e=this.getLineMaxColumn(l);d>=e&&(d=e)}return i===s&&n===o&&r===l&&a===d&&e instanceof p.e&&!(e instanceof m.Y)?e:new p.e(s,o,l,d)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(l.ZG(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!==typeof e||isNaN(e)?1:e),s=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(n<1)return new g.L(1,1);if(n>o)return new g.L(o,this.getLineMaxColumn(o));if(s<=1)return new g.L(n,1);const r=this.getLineMaxColumn(n);if(s>=r)return new g.L(n,r);if(1===i){const e=this._buffer.getLineCharCode(n,s-2);if(l.ZG(e))return new g.L(n,s-1)}return new g.L(n,s)}validatePosition(e){return this._assertNotDisposed(),e instanceof g.L&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(s,o,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,r=l.ZG(e),a=l.ZG(t);return!r&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof p.e&&!(e instanceof m.Y)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,s=t.column,o=i.lineNumber,r=i.column;{const e=s>1?this._buffer.getLineCharCode(n,s-2):0,t=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,i=l.ZG(e),a=l.ZG(t);return i||a?n===o&&s===r?new p.e(n,s-1,o,r-1):i&&a?new p.e(n,s-1,o,r+1):i?new p.e(n,s-1,o,r):new p.e(n,s,o,r+1):new p.e(n,s,o,r)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new p.e(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:999;this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>p.e.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let d;if(l.push(a.reduce(((e,t)=>p.e.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Re.bc(e,i,n,s).parseSearchRequest();if(!t)return[];d=e=>this.findMatchesLineByLine(e,t,o,r)}else d=t=>Re.pM.findMatches(this,new Re.bc(e,i,n,s),t,o,r);return l.map(d).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,s,o){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Re.bc(e,i,n,s).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new p.e(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),d=this.findMatchesLineByLine(l,t,o,1);return Re.pM.findNextMatch(this,new Re.bc(e,i,n,s),r,o),d.length>0?d[0]:(l=new p.e(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),d=this.findMatchesLineByLine(l,t,o,1),d.length>0?d[0]:null)}return Re.pM.findNextMatch(this,new Re.bc(e,i,n,s),r,o)}findPreviousMatch(e,t,i,n,s,o){this._assertNotDisposed();const r=this.validatePosition(t);return Re.pM.findPreviousMatch(this,new Re.bc(e,i,n,s),r,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof b.Qi?e:new b.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,n){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,s=e.length;t<s;t++){const s=e[t];let o=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,n=t.startLineNumber>s.endLineNumber,r=s.startLineNumber>t.endLineNumber;if(!n&&!r){o=!0;break}}if(!o){n=!1;break}}if(n)for(let e=0,s=this._trimAutoWhitespaceLines.length;e<s;e++){const n=this._trimAutoWhitespaceLines[e],s=this.getLineMaxColumn(n);let o=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,r=i[e].text;if(!(n<t.startLineNumber||n>t.endLineNumber)&&(!(n===t.startLineNumber&&t.startColumn===s&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0))&&!(n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1)))){o=!1;break}}if(o){const e=new p.e(n,1,n,s);t.push(new b.Qi(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const s=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new p.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new p.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),s=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=s.changes;if(this._trimAutoWhitespaceLines=s.trimAutoWhitespaceLineNumbers,0!==r.length){for(let i=0,n=r.length;i<n;i++){const e=r[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,s=r.length;i<s;i++){const s=r[i],[a]=(0,h.Q)(s.text);this._onDidChangeDecorations.fire();const l=s.range.startLineNumber,d=s.range.endLineNumber,c=d-l,u=a,p=Math.min(c,u),m=u-c,f=o-t-m+l,_=f,v=f+u,b=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new g.L(_,1)),this.getOffsetAt(new g.L(v,this.getLineMaxColumn(v))),0),C=xt.gk.fromDecorations(b),y=new n.H9(C);for(let t=p;t>=0;t--){const i=l+t,n=f+t;y.takeFromEndWhile((e=>e.lineNumber>n));const s=y.takeFromEndWhile((e=>e.lineNumber===n));e.push(new xt.rU(i,this.getLineContent(n),s))}if(p<c){const t=l+p;e.push(new xt.lN(t+1,d))}if(p<u){const i=new n.H9(C),s=l+p,r=u-p,a=o-t-r+s+1,d=[],h=[];for(let e=0;e<r;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),d[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new xt.Tx(s+1,l+u,h,d))}t+=m}this._emitContentChangedEvent(new xt.dQ(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===s.reverseEdits?void 0:s.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new xt.rU(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new xt.D8(t))}changeDecorations(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Ut(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let n=null;try{n=t(i)}catch(s){(0,o.dL)(s)}return i.addDecoration=It,i.changeDecoration=It,i.changeDecorationOptions=It,i.removeDecoration=It,i.deltaDecorations=It,n}deltaDecorations(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,o.dL)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:jt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,s),n.setOptions(jt[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;i<n;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const r=this.getLineCount(),a=Math.min(r,Math.max(1,e)),l=Math.min(r,Math.max(1,t)),d=this.getLineMaxColumn(l),h=new p.e(a,1,l,d),c=this._getDecorationsInRange(h,i,s,o);return(0,n.vA)(c,this._decorationProvider.getDecorationsInRange(h,i,s)),c}getDecorationsInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const r=this.validateRange(e),a=this._getDecorationsInRange(r,t,i,o);return(0,n.vA)(a,this._decorationProvider.getDecorationsInRange(r,t,i,s)),a}getOverviewRulerDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return xt.gk.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const s=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,s,o,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),s=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const o=n!==s,r=function(e){return!!e.after||!!e.before}(t)!==Rt(i);o||r?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=this.getVersionId(),o=t.length;let r=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const d=new Array(a);for(;r<o||l<a;){let h=null;if(r<o){do{h=this._decorations[t[r++]]}while(!h&&r<o);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),n||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new ae(t,0,0),this._decorations[t]=h}const t=i[l],o=this._validateRangeRelaxedNoAllocations(t.range),r=Ut(t.options),a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),c=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);h.ownerId=e,h.reset(s,a,c,o),h.setOptions(r),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber),n||this._onDidChangeDecorations.checkAffectedAndFire(r),this._decorationsTree.insert(h),d[l]=h.id,l++}else h&&delete this._decorations[h.id]}return d}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function At(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Rt(e){return!!e.options.after||!!e.options.before}Mt._MODEL_SYNC_LIMIT=52428800,Mt.LARGE_FILE_SIZE_THRESHOLD=20971520,Mt.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Mt.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456,Mt.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:f.D.tabSize,indentSize:f.D.indentSize,insertSpaces:f.D.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:f.D.trimAutoWhitespace,largeFileOptimizations:f.D.largeFileOptimizations,bracketPairColorizationOptions:f.D.bracketPairColorizationOptions},Mt=St=kt([Dt(4,Lt.tJ),Dt(5,_.O),Dt(6,v.c_)],Mt);class Ot{constructor(){this._decorationsTree0=new de,this._decorationsTree1=new de,this._injectedTextDecorationsTree=new de}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,s,o){const r=e.getVersionId(),a=this._intervalSearch(t,i,n,s,r,o);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,n,s,o){const r=this._decorationsTree0.intervalSearch(e,t,i,n,s,o),a=this._decorationsTree1.intervalSearch(e,t,i,n,s,o),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,s,o);return r.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,n){const s=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,s,!1);return this._ensureNodesHaveRanges(e,o).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n,s){const o=e.getVersionId(),r=this._search(t,i,n,o,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n,s){if(i)return this._decorationsTree1.search(e,t,n,s);{const i=this._decorationsTree0.search(e,t,n,s),o=this._decorationsTree1.search(e,t,n,s),r=this._injectedTextDecorationsTree.search(e,t,n,s);return i.concat(o).concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){Rt(e)?this._injectedTextDecorationsTree.insert(e):At(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Rt(e)?this._injectedTextDecorationsTree.delete(e):At(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Rt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):At(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function Pt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Ft{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Bt extends Ft{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:b.sh.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Vt{constructor(e){var t;this.position=null!==(t=null===e||void 0===e?void 0:e.position)&&void 0!==t?t:b.U.Center,this.persistLane=null===e||void 0===e?void 0:e.persistLane}}class Wt extends Ft{constructor(e){var t,i;super(e),this.position=e.position,this.sectionHeaderStyle=null!==(t=e.sectionHeaderStyle)&&void 0!==t?t:null,this.sectionHeaderText=null!==(i=e.sectionHeaderText)&&void 0!==i?i:null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?s.Il.fromHex(e):t.getColor(e.id)}}class Ht{static from(e){return e instanceof Ht?e:new Ht(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class zt{static register(e){return new zt(e)}static createDynamic(e){return new zt(e)}constructor(e){var t,i,n,s,o,r;this.description=e.description,this.blockClassName=e.blockClassName?Pt(e.blockClassName):null,this.blockDoesNotCollapse=null!==(t=e.blockDoesNotCollapse)&&void 0!==t?t:null,this.blockIsAfterEnd=null!==(i=e.blockIsAfterEnd)&&void 0!==i?i:null,this.blockPadding=null!==(n=e.blockPadding)&&void 0!==n?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Pt(e.className):null,this.shouldFillLineOnLineBreak=null!==(s=e.shouldFillLineOnLineBreak)&&void 0!==s?s:null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Bt(e.overviewRuler):null,this.minimap=e.minimap?new Wt(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new Vt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Pt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Pt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Pt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?l.fA(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Pt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Pt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Pt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Pt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Pt(e.afterContentClassName):null,this.after=e.after?Ht.from(e.after):null,this.before=e.before?Ht.from(e.before):null,this.hideInCommentTokens=null!==(o=e.hideInCommentTokens)&&void 0!==o&&o,this.hideInStringTokens=null!==(r=e.hideInStringTokens)&&void 0!==r&&r}}zt.EMPTY=zt.register({description:"empty"});const jt=[zt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),zt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),zt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),zt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Ut(e){return e instanceof zt?e:zt.createDynamic(e)}class Kt extends a.JT{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.Q5),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var t,i;this._affectsMinimap||(this._affectsMinimap=!!(null===(t=e.minimap)||void 0===t?void 0:t.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(null===(i=e.overviewRuler)||void 0===i?void 0:i.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class qt extends a.JT{constructor(){super(),this._fastEmitter=this._register(new r.Q5),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.Q5),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}class $t{constructor(){this._onDidChangeVisibleRanges=new r.Q5,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new Gt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class Gt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new u.z(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}},42101:(e,t,i)=>{"use strict";i.d(t,{U:()=>s});var n=i(53186);class s extends n.JT{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},39471:(e,t,i)=>{"use strict";i.d(t,{bc:()=>l,cM:()=>u,iE:()=>d,pM:()=>c,sz:()=>g});var n=i(78701),s=i(55412),o=i(74633),r=i(28928),a=i(24032);class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const n=e.charCodeAt(t);if(10===n)return!0;if(92===n){if(t++,t>=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.GF(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.Tx(t,this.wordSeparators?(0,s.u)(this.wordSeparators,[]):null,i?this.searchString:null)}}function d(e,t,i){if(!i)return new a.tk(e,null);const n=[];for(let s=0,o=t.length;s<o;s++)n[s]=t[s];return new a.tk(e,n)}class h{constructor(e){const t=[];let i=0;for(let n=0,s=e.length;n<s;n++)10===e.charCodeAt(n)&&(t[i++]=n);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,n=t.length-1;if(-1===n)return 0;if(e<=t[0])return 0;for(;i<n;){const s=i+((n-i)/2>>0);t[s]>=e?n=s-1:t[s+1]>=e?(i=s,n=s):i=s+1}return i+1}}class c{static findMatches(e,t,i,n,s){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new g(o.wordSeparators,o.regex),n,s):this._doFindMatchesLineByLine(e,i,o,n,s):[]}static _getMultilineMatchRange(e,t,i,n,s,o){let a,l,d=0;if(n?(d=n.findLineFeedCountBeforeOffset(s),a=t+s+d):a=t+s,n){const e=n.findLineFeedCountBeforeOffset(s+o.length)-d;l=a+o.length+e}else l=a+o.length;const h=e.getPositionAt(a),c=e.getPositionAt(l);return new r.e(h.lineNumber,h.column,c.lineNumber,c.column)}static _doFindMatchesMultiline(e,t,i,n,s){const o=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(r):null,l=[];let c,u=0;for(i.reset(0);c=i.next(r);)if(l[u++]=d(this._getMultilineMatchRange(e,o,r,a,c.index,c[0]),c,n),u>=s)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,s){const o=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,o,n,s),o}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,o,n,s);for(let l=t.startLineNumber+1;l<t.endLineNumber&&r<s;l++)r=this._findMatchesInLine(i,e.getLineContent(l),l,0,r,o,n,s);if(r<s){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);r=this._findMatchesInLine(i,a,t.endLineNumber,0,r,o,n,s)}return o}static _findMatchesInLine(e,t,i,n,s,o,l,h){const c=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,d=l.length,g=t.length;let p=-d;for(;-1!==(p=t.indexOf(l,p+d));)if((!c||u(c,t,g,p,d))&&(o[s++]=new a.tk(new r.e(i,p+1+n,i,p+1+d+n),null),s>=h))return s;return s}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(o[s++]=d(new r.e(i,m.index+1+n,i,m.index+1+m[0].length+n),m,l),s>=h))return s}while(m);return s}static findNextMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const o=new g(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)}static _doFindNextMatchMultiline(e,t,i,n){const s=new o.L(t.lineNumber,1),a=e.getOffsetAt(s),l=e.getLineCount(),c=e.getValueInRange(new r.e(s.lineNumber,s.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(c):null;i.reset(t.column-1);const g=i.next(c);return g?d(this._getMultilineMatchRange(e,a,c,u,g.index,g[0]),g,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o.L(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const s=e.getLineCount(),o=t.lineNumber,r=e.getLineContent(o),a=this._findFirstMatchInLine(i,r,o,t.column,n);if(a)return a;for(let l=1;l<=s;l++){const t=(o+l-1)%s,r=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,r,t+1,1,n);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,n,s){e.reset(n-1);const o=e.next(t);return o?d(new r.e(i,o.index+1,i,o.index+1+o[0].length),o,s):null}static findPreviousMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const o=new g(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const s=this._doFindMatchesMultiline(e,new r.e(1,1,t.lineNumber,t.column),i,n,9990);if(s.length>0)return s[s.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new o.L(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const s=e.getLineCount(),o=t.lineNumber,r=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,o,n);if(a)return a;for(let l=1;l<=s;l++){const t=(s+o-l-1)%s,r=e.getLineContent(t+1),a=this._findLastMatchInLine(i,r,t+1,n);if(a)return a}return null}static _findLastMatchInLine(e,t,i,n){let s,o=null;for(e.reset(0);s=e.next(t);)o=d(new r.e(i,s.index+1,i,s.index+1+s[0].length),s,n);return o}}function u(e,t,i,n,s){return function(e,t,i,n,s){if(0===n)return!0;const o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(s>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,s)&&function(e,t,i,n,s){if(n+s===i)return!0;const o=t.charCodeAt(n+s);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(s>0){const i=t.charCodeAt(n+s-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,s)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const s=i.index,o=i[0].length;if(s===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){n.ZH(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=o,!this._wordSeparators||u(this._wordSeparators,e,t,s,o))return i}while(i);return null}}},82412:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0;const s=e.length;for(;n<s;){const s=e.charCodeAt(n);if(32===s)i++;else{if(9!==s)break;i=i-i%t+t}n++}return n===s?-1:i}i.d(t,{q:()=>n})},31197:(e,t,i)=>{"use strict";i.d(t,{O:()=>g});var n=i(76946),s=i(39706),o=i(17344),r=i(91387),a=i(74633),l=i(28928),d=i(24854),h=i(18841),c=i(82335);class u{static chord(e,t){return(0,o.gx)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.A,Emitter:s.Q5,KeyCode:c.VD,KeyMod:u,Position:a.L,Range:l.e,Selection:d.Y,SelectionDirection:c.a$,MarkerSeverity:c.ZL,MarkerTag:c.eB,Uri:r.o,Token:h.WU}}u.CtrlCmd=2048,u.Shift=1024,u.Alt=512,u.WinCtrl=256},69115:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(87775).yh)("editorWorkerService")},14386:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var n=i(95075),s=i(38079),o=i(56155),r=i(68664),a=i(23026),l=i(87775),d=i(33454),h=i(32060),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};const g=(0,l.yh)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new s.z6(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,n.SP)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,o.uZ)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new o.N(6),this._cache.set(i,n));const s=(0,o.uZ)(n.update(t),this._min,this._max);return(0,h.xn)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o.nM;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,o.uZ)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){var n,s,o;const r=null!==(n=null===i||void 0===i?void 0:i.min)&&void 0!==n?n:50,a=null!==(s=null===i||void 0===i?void 0:i.max)&&void 0!==s?s:r**2,l=null!==(o=null===i||void 0===i?void 0:i.key)&&void 0!==o?o:void 0,d=`${p.of(e)},${r}${l?","+l:""}`;let h=this._data.get(d);return h||(this._isDev?h=new f(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a):(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),h=new m(1.5*r)),this._data.set(d,h)),h}_overallAverage(){const e=new o.nM;for(const t of this._data.values())e.update(t.default());return e.value}};_=c([u(0,d.VZ),u(1,r.Y)],_),(0,a.z)(g,_,1)},53869:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(87775).yh)("ILanguageFeaturesService")},79316:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});const n=(0,i(87775).yh)("markerDecorationsService")},23058:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});const n=(0,i(87775).yh)("modelService")},43537:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(87775).yh)("textModelService")},4085:(e,t,i)=>{"use strict";i.d(t,{$:()=>m,h:()=>f});var n=i(9556),s=i(46673),o=i(33454),r=i(74633),a=i(28928),l=i(47056);class d{static create(e,t){return new d(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.e(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,o]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new d(this._startLineNumber,n),new d(this._startLineNumber+o,s)]}applyEdit(e,t){const[i,n,s]=(0,l.Q)(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new r.L(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(0===t&&0===i)return;const o=e.lineNumber-this._startLineNumber;if(o<0)return void(this._startLineNumber+=t);o>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(o,e.column-1,t,i,n,s)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new a.e(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const n=t+Math.floor((i-t)/2),s=this._getDeltaLine(n);if(s<e)t=n+1;else{if(!(s>e)){let s=n;for(;s>t&&this._getDeltaLine(s-1)===e;)s--;let o=n;for(;o<i&&this._getDeltaLine(o+1)===e;)o++;return new c(this._tokens.subarray(4*s,4*o+4))}i=n-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){const s=this._tokens,o=this._tokenCount;let r=0,a=!1,l=0;for(let d=0;d<o;d++){const o=4*d,h=s[o],c=s[o+1],u=s[o+2],g=s[o+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&c<=n))a=!0;else{if(0===r&&(l=h),a){const e=4*r;s[e]=h-l,s[e+1]=c,s[e+2]=u,s[e+3]=g}r++}}return this._tokenCount=r,l}split(e,t,i,n){const s=this._tokens,o=this._tokenCount,r=[],a=[];let l=r,d=0,c=0;for(let h=0;h<o;h++){const o=4*h,r=s[o],u=s[o+1],g=s[o+2],p=s[o+3];if(r>e||r===e&&g>=t){if(r<i||r===i&&u<=n)continue;l!==a&&(l=a,d=0,c=r)}l[d++]=r-c,l[d++]=u,l[d++]=g,l[d++]=p}return[new h(new Uint32Array(r)),new h(new Uint32Array(a)),c]}acceptDeleteRange(e,t,i,n,s){const o=this._tokens,r=this._tokenCount,a=n-t;let l=0,d=!1;for(let h=0;h<r;h++){const c=4*h;let u=o[c],g=o[c+1],p=o[c+2];const m=o[c+3];if(u<t||u===t&&p<=i){l++;continue}if(u===t&&g<i)u===n&&p>s?p-=s-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>s)){d=!0;continue}p-=s-i}else if(u<n||u===n&&g<s){if(!(u===n&&p>s)){d=!0;continue}u=t,g=i,p=g+(p-s)}else if(u>n){if(0===a&&!d){l=r;break}u-=a}else{if(!(u===n&&g>=s))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=s-i,p-=s-i}const f=4*l;o[f]=u,o[f+1]=g,o[f+2]=p,o[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,s,o){const r=0===i&&1===n&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,l=this._tokenCount;for(let d=0;d<l;d++){const o=4*d;let l=a[o],h=a[o+1],c=a[o+2];if(!(l<e||l===e&&c<t)){if(l===e&&c===t){if(!r)continue;c+=1}else if(l===e&&h<t&&t<c)0===i?c+=n:c=t;else{if(l===e&&h===t&&r)continue;if(l===e)if(l+=i,0===i)h+=n,c+=n;else{const e=c-h;h=s+(h-t),c=h+e}else l+=i}a[o]=l,a[o+1]=h,a[o+2]=c}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=i(91342),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};let m=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),r=this._hashTable.get(e,t,s);let a;if(r)a=r.metadata,this._logService.getLevel()===o.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${n.N.getForeground(a)}, fontStyle ${n.N.getFontStyle(a).toString(2)}`);else{let r=this._legend.tokenTypes[e];const l=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&l.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===o.in.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const n=this._themeService.getColorTheme().getTokenStyleMetadata(r,l,i);if("undefined"===typeof n)a=2147483647;else{if(a=0,"undefined"!==typeof n.italic){a|=1|(n.italic?1:0)<<11}if("undefined"!==typeof n.bold){a|=2|(n.bold?2:0)<<11}if("undefined"!==typeof n.underline){a|=4|(n.underline?4:0)<<11}if("undefined"!==typeof n.strikethrough){a|=8|(n.strikethrough?8:0)<<11}if(n.foreground){a|=16|n.foreground<<15}0===a&&(a=2147483647)}}else this._logService.getLevel()===o.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,r="not-in-legend";this._hashTable.add(e,t,s,a),this._logService.getLevel()===o.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${r}) / ${t} (${l.join(" ")}): foreground ${n.N.getForeground(a)}, fontStyle ${n.N.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};function f(e,t,i){const n=e.data,s=e.data.length/5|0,o=Math.max(Math.ceil(s/1024),400),r=[];let a=0,l=1,h=0;for(;a<s;){const e=a;let c=Math.min(e+o,s);if(c<s){let t=c;for(;t-1>e&&0===n[5*t];)t--;if(t-1===e){let e=c;for(;e+1<s&&0===n[5*e];)e++;c=e}else c=t}let u=new Uint32Array(4*(c-e)),g=0,p=0,m=0,f=0;for(;a<c;){const e=5*a,s=n[e],o=n[e+1],r=l+s|0,d=0===s?h+o|0:o,c=d+n[e+2]|0,_=n[e+3],v=n[e+4];if(c<=d)t.warnInvalidLengthSemanticTokens(r,d+1);else if(m===r&&f>d)t.warnOverlappingSemanticTokens(r,d+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=r),u[g]=r-p,u[g+1]=d,u[g+2]=c,u[g+3]=e,g+=4,m=r,f=c)}l=r,h=d,a++}g!==u.length&&(u=u.subarray(0,g));const _=d.create(p,u);r.push(_)}return r}m=g([p(1,s.XE),p(2,u.O),p(3,o.VZ)],m);class _{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class v{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const n=this._hashFunc(e,t,i);let s=this._elements[n];for(;s;){if(s.tokenTypeIndex===e&&s.tokenModifierSet===t&&s.languageId===i)return s;s=s.next}return null}add(e,t,i,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,n))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}v._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},15688:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});const n=(0,i(87775).yh)("semanticTokensStylingService")},19399:(e,t,i)=>{"use strict";i.d(t,{V:()=>s,y:()=>o});var n=i(87775);const s=(0,n.yh)("textResourceConfigurationService"),o=(0,n.yh)("textResourcePropertiesService")},97050:(e,t,i)=>{"use strict";i.d(t,{a:()=>l});var n=i(28928),s=i(39471),o=i(78701),r=i(56702),a=i(67331);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),c=new d(t),u=c.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${o.ec(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new s.sz(null,g),f=[];let _,v=!1,b=0,C=0,y=0;e:for(let s=l,d=h;s<=d;s++){const t=e.getLineContent(s),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);o.ZG(i)&&e--}if(l+1<i){const e=t.charCodeAt(l-1);o.ZG(e)&&l++}const d=t.substring(e,l);let h=(0,a.t2)(e+1,a.Af,t,0);h&&h.endColumn<=e+1&&(h=null);const u=c.shouldHighlightNonBasicASCII(d,h?h.word:null);if(0!==u){3===u?b++:2===u?C++:1===u?y++:(0,r.vE)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new n.e(s,e+1,s,l+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:b,invisibleCharacterCount:C,nonBasicAsciiCharacterCount:y}}static computeUnicodeHighlightReason(e,t){const i=new d(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const n=e.codePointAt(0),s=i.ambiguousCharacters.getPrimaryConfusable(n),r=o.ZK.getLocales().filter((e=>!o.ZK.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n)));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class d{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=o.ZK.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of o.vU.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,s=!1;if(t)for(const r of t){const e=r.codePointAt(0),t=o.$i(r);n=n||t,t||this.ambiguousCharacters.isAmbiguous(e)||o.vU.isInvisibleCharacter(e)||(s=!0)}return!n&&s?0:this.options.invisibleCharacters&&!h(e)&&o.vU.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},82335:(e,t,i)=>{"use strict";var n,s,o,r,a,l,d,h,c,u,g,p,m,f,_,v,b,C,y,w,S,x,L,k,D,N,E,T,I,M,A,R,O,P,F,B,V,W,H,z,j,U,K,q;i.d(t,{$r:()=>V,E$:()=>T,F5:()=>k,Ij:()=>l,In:()=>j,Lu:()=>R,MG:()=>N,MY:()=>u,NA:()=>M,OI:()=>K,RM:()=>b,U:()=>_,VD:()=>S,Vi:()=>h,WG:()=>D,WW:()=>W,ZL:()=>x,_x:()=>c,a$:()=>B,a7:()=>o,ao:()=>n,bw:()=>y,cR:()=>H,cm:()=>r,d2:()=>U,eB:()=>L,g4:()=>P,g_:()=>F,gl:()=>C,gm:()=>m,jl:()=>f,np:()=>s,py:()=>A,r3:()=>d,r4:()=>z,rf:()=>g,rn:()=>w,sh:()=>I,up:()=>q,vQ:()=>O,w:()=>E,wT:()=>p,wU:()=>v,we:()=>a}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(n||(n={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(s||(s={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(o||(o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(r||(r={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(d||(d={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(c||(c={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(y||(y={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(w||(w={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(x||(x={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(k||(k={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(D||(D={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(N||(N={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(E||(E={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(I||(I={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(M||(M={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(A||(A={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(R||(R={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(O||(O={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(P||(P={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(F||(F={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(V||(V={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(W||(W={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(H||(H={})),function(e){e[e.Deprecated=1]="Deprecated"}(z||(z={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(j||(j={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(U||(U={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(K||(K={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},23523:(e,t,i)=>{"use strict";i.d(t,{B8:()=>l,UX:()=>r,aq:()=>a,iN:()=>h,ld:()=>o,qq:()=>s,ug:()=>n,xi:()=>d});var n,s,o,r,a,l,d,h,c=i(5887);!function(e){e.inspectTokensAction=c.NC("inspectTokens","Developer: Inspect Tokens")}(n||(n={})),function(e){e.gotoLineActionLabel=c.NC("gotoLineActionLabel","Go to Line/Column...")}(s||(s={})),function(e){e.helpQuickAccessActionLabel=c.NC("helpQuickAccess","Show all Quick Access Providers")}(o||(o={})),function(e){e.quickCommandActionLabel=c.NC("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=c.NC("quickCommandActionHelp","Show And Run Commands")}(r||(r={})),function(e){e.quickOutlineActionLabel=c.NC("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=c.NC("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=c.NC("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=c.NC("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=c.NC("toggleHighContrast","Toggle High Contrast Theme")}(d||(d={})),function(e){e.bulkEditServiceSummary=c.NC("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},75324:(e,t,i)=>{"use strict";i.d(t,{CZ:()=>l,D8:()=>h,Jx:()=>n,Tx:()=>a,dQ:()=>d,fV:()=>c,gk:()=>s,lN:()=>r,rU:()=>o});class n{constructor(){this.changeType=1}}class s{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new s(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new s(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}}class o{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class d{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),n=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new d(i,n,s,o)}}class h{constructor(e){this.changes=e}}class c{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=d.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=c._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new c(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),n=t.eol,s=t.versionId,o=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:n,isEolChange:e.isEolChange&&t.isEolChange,versionId:s,isUndoing:o,isRedoing:r,isFlush:a}}}},58410:(e,t,i)=>{"use strict";var n;i.d(t,{UO:()=>s,s6:()=>n,vW:()=>o}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(n||(n={}));class s{constructor(e,t,i,n,s,o){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=n,this.forWrappedLinesAfterColumn=s,this.forWrappedLinesBeforeOrAtColumn=o,-1!==e===(-1!==t))throw new Error}}class o{constructor(e,t){this.top=e,this.endColumn=t}}},34415:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(9556);class s{static createEmpty(e,t){const i=s.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new s(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof s&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,s=n+(i<<1);for(let o=n;o<s;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.N.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.N.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.N.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.N.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.N.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return n.N.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return s.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new o(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let n=0;n<i;n++)e[n<<1]=e[n+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,n=(e.length>>>1)-1;for(;i<n;){const s=i+Math.floor((n-i)/2),o=e[s<<1];if(o===t)return s+1;o<t?i=s+1:o>t&&(n=s)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const o=new Array;let r=0;for(;;){const s=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==s&&(null===a||s<=a.offset)){n+=this._text.substring(r,s);const e=this._tokens[1+(t<<1)];o.push(n.length,e),t++,r=s}else{if(!a)break;if(a.offset>r){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];o.push(n.length,e),r=a.offset}n+=a.text,o.push(n.length,a.tokenMetadata),i++}}return new s(new Uint32Array(o),n,this._languageIdCodec)}}s.defaultTokenMetadata=33587200;class o{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let s=this._firstTokenIndex,o=e.getCount();s<o;s++){if(e.getStartOffset(s)>=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},21770:(e,t,i)=>{"use strict";i.d(t,{Kp:()=>s,k:()=>a});var n=i(78701);class s{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!s._equals(e[n],t[n]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const n=t+1,o=i+1,r=i-t,a=[];let l=0;for(const d of e)d.endColumn<=n||d.startColumn>=o||(a[l++]=new s(Math.max(1,d.startColumn-n+1),Math.min(r+1,d.endColumn-n+1),d.className,d.type));return a}static filter(e,t,i,n){if(0===e.length)return[];const o=[];let r=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],d=l.range;if(d.endLineNumber<t||d.startLineNumber>t)continue;if(d.isEmpty()&&(0===l.type||3===l.type))continue;const h=d.startLineNumber===t?d.startColumn:i,c=d.endLineNumber===t?d.endColumn:n;o[r++]=new s(h,c,l.inlineClassName,l.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=s._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class o{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=n}}class r{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,n=e.length;i<n;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new o(t,this.stopOffsets[e],this.classNames.join(" "),r._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(i.push(new o(t,e-1,this.classNames.join(" "),r._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],s=new r;let o=0;for(let r=0,a=t.length;r<a;r++){const a=t[r];let l=a.startColumn,d=a.endColumn;const h=a.className,c=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);n.ZG(t)&&l--}if(d>1){const t=e.charCodeAt(d-2);n.ZG(t)&&d--}const u=l-1,g=d-2;o=s.consumeLowerThan(u,o,i),0===s.count&&(o=u),s.insert(g,h,c)}return s.consumeLowerThan(1073741824,o,i),i}}},97869:(e,t,i)=>{"use strict";i.d(t,{Nd:()=>h,zG:()=>l,IJ:()=>d,d1:()=>g,tF:()=>m});var n=i(5887),s=i(78701),o=i(130),r=i(21770);class a{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class d{constructor(e,t,i,n,s,o,a,l,d,h,c,u,g,p,m,f,_,v,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=s,this.containsRTL=o,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=d.sort(r.Kp.compare),this.tabSize=h,this.startVisibleColumn=c,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.Kp.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class c{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const s=(t<<16|i<<0)>>>0;this._data[e-1]=s,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=c.getPartIndex(t),n=c.getCharIndex(t);return new h(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const n=(e<<16|i<<0)>>>0;let s=0,o=this.length-1;for(;s+1<o;){const e=s+o>>>1,t=this._data[e];if(t===n)return e;t>n?o=e:s=e}if(s===o)return s;const r=this._data[s],a=this._data[o];if(r===n)return s;if(a===n)return o;const l=c.getPartIndex(r),d=c.getCharIndex(r);let h;h=l!==c.getPartIndex(a)?t:c.getCharIndex(a);return i-d<=h-i?s:o}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,n=0,s=0;for(const r of e.lineDecorations)1!==r.type&&2!==r.type||(t.appendString('<span class="'),t.appendString(r.className),t.appendString('"></span>'),1===r.type&&(s|=1,i++),2===r.type&&(s|=2,n++));t.appendString("</span>");const o=new c(1,i+n);return o.setColumnInfo(1,i,0,0),new u(o,!1,s)}return t.appendString("<span><span></span></span>"),new u(new c(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,a=e.lineContent,l=e.len,d=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,b=e.containsRTL,C=e.spaceWidth,y=e.renderSpaceCharCode,w=e.renderWhitespace,S=e.renderControlCharacters,x=new c(l+1,g.length);let L=!1,k=0,D=f,N=0,E=0,T=0;b?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let n=0,c=g.length;n<c;n++){const e=g[n],d=e.endIndex,h=e.type,c=e.containsRTL,u=0!==w&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!r),b=k===d&&e.isPseudoAfter();if(N=0,t.appendString("<span "),c&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=k,i=D;for(;t<d;t++){const n=0|(9===a.charCodeAt(t)?m-i%m:1);e+=n,t>=p&&(i+=n)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(C*e)),t.appendString('px"')),t.appendASCIICharCode(62);k<d;k++){x.setColumnInfo(k+1,n-T,N,E),T=0;let e,i;if(9===a.charCodeAt(k)){e=m-D%m|0,i=e,!o||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(y),t.appendCharCode(8204);N+=e,E+=i,k>=p&&(D+=i)}}else for(t.appendASCIICharCode(62);k<d;k++){x.setColumnInfo(k+1,n-T,N,E),T=0;const e=a.charCodeAt(k);let i=1,o=1;switch(e){case 9:i=m-D%m,o=i;for(let e=1;e<=i;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:S?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:s.K7(e)&&o++,S&&e<32?t.appendCharCode(9216+e):S&&127===e?t.appendCharCode(9249):S&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,o=i):t.appendCharCode(e)}N+=i,E+=o,k>=p&&(D+=o)}b?T++:T=0,k>=l&&!L&&e.isPseudoAfter()&&(L=!0,x.setColumnInfo(k+1,n,N,E)),t.appendString("</span>")}L||x.setColumnInfo(l+1,g.length-1,N,E);d&&(t.appendString('<span class="mtkoverflow">'),t.appendString(n.NC("showMore","Show more ({0})",function(e){if(e<1024)return n.NC("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(x,b,r)}(function(e){const t=e.lineContent;let i,n,o;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,n=t.length-e.stopRenderingLineAfter,o=e.stopRenderingLineAfter):(i=!1,n=0,o=t.length);let l=function(e,t,i,n,o){const r=[];let l=0;n>0&&(r[l++]=new a(n,"",0,!1));let d=n;for(let h=0,c=i.getCount();h<c;h++){const c=i.getEndOffset(h);if(c<=n)continue;const u=i.getClassName(h);if(c>=o){const i=!!t&&s.Ut(e.substring(d,o));r[l++]=new a(o,u,0,i);break}const g=!!t&&s.Ut(e.substring(d,c));r[l++]=new a(c,u,0,g),d=c}return r}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,o);e.renderControlCharacters&&!e.isBasicASCII&&(l=function(e,t){const i=[];let n=new a(0,"",0,!1),s=0;for(const o of t){const t=o.endIndex;for(;s<t;s++){_(e.charCodeAt(s))&&(s>n.endIndex&&(n=new a(s,o.type,o.metadata,o.containsRTL),i.push(n)),n=new a(s+1,"mtkcontrol",o.metadata,!1),i.push(n))}s>n.endIndex&&(n=new a(t,o.type,o.metadata,o.containsRTL),i.push(n))}return i}(t,l));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,n){const o=e.continuesWithWrappedLine,r=e.fauxIndentLength,l=e.tabSize,d=e.startVisibleColumn,h=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex;const y=n.length;let w,S=!1,x=s.LC(t);-1===x?(S=!0,x=i,w=i):w=s.ow(t);let L=!1,k=0,D=c&&c[k],N=d%l;for(let T=r;T<i;T++){const e=t.charCodeAt(T);let o;if(D&&T>=D.endOffset&&(k++,D=c&&c[k]),T<x||T>w)o=!0;else if(9===e)o=!0;else if(32===e)if(u)if(L)o=!0;else{const e=T+1<i?t.charCodeAt(T+1):0;o=32===e||9===e}else o=!0;else o=!1;if(o&&c&&(o=!!D&&D.startOffset<=T&&D.endOffset>T),o&&g&&(o=S||T>w),o&&b&&T>=x&&T<=w&&(o=!1),L){if(!o||!h&&N>=l){if(p){for(let e=(f>0?m[f-1].endIndex:r)+1;e<=T;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(T,"mtkw",1,!1);N%=l}}else(T===C||o&&T>r)&&(m[f++]=new a(T,v,0,b),N%=l);for(9===e?N=l:s.K7(e)?N+=2:N++,L=o;T===C&&(_++,_<y);)v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex}let E=!1;if(L)if(o&&u){const e=i>0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(E=!0)}else E=!0;if(E)if(p){for(let e=(f>0?m[f-1].endIndex:r)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,b);return m}(e,t,o,l));let d=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?d|=1:2===i.type&&(d|=2)}l=function(e,t,i,n){n.sort(r.Kp.compare);const s=r.k.normalize(e,n),o=s.length;let l=0;const d=[];let h=0,c=0;for(let r=0,g=i.length;r<g;r++){const e=i[r],t=e.endIndex,n=e.type,u=e.metadata,g=e.containsRTL;for(;l<o&&s[l].startOffset<t;){const e=s[l];if(e.startOffset>c&&(c=e.startOffset,d[h++]=new a(c,n,u,g)),!(e.endOffset+1<=t)){c=t,d[h++]=new a(c,n+" "+e.className,u|e.metadata,g);break}c=e.endOffset+1,d[h++]=new a(c,n+" "+e.className,u|e.metadata,g),l++}t>c&&(c=t,d[h++]=new a(c,n,u,g))}const u=i[i.length-1].endIndex;if(l<o&&s[l].startOffset===u)for(;l<o&&s[l].startOffset===u;){const e=s[l];d[h++]=new a(c,e.className,e.metadata,!1),l++}return d}(t,0,l,e.lineDecorations)}e.containsRTL||(l=function(e,t,i){let n=0;const s=[];let o=0;if(i)for(let r=0,l=t.length;r<l;r++){const i=t[r],l=i.endIndex;if(n+50<l){const t=i.type,r=i.metadata,d=i.containsRTL;let h=-1,c=n;for(let i=n;i<l;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-c>=50&&(s[o++]=new a(h+1,t,r,d),c=h+1,h=-1);c!==l&&(s[o++]=new a(l,t,r,d))}else s[o++]=i;n=l}else for(let r=0,l=t.length;r<l;r++){const e=t[r],i=e.endIndex,l=i-n;if(l>50){const t=e.type,r=e.metadata,d=e.containsRTL,h=Math.ceil(l/50);for(let e=1;e<h;e++){const i=n+50*e;s[o++]=new a(i,t,r,d)}s[o++]=new a(i,t,r,d)}else s[o++]=e;n=i}return s}(t,l,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,o,i,n,l,d,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function m(e){const t=new o.HT(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=s,this.overflowingCharCount=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=d,this.startVisibleColumn=h,this.containsRTL=c,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},23614:(e,t,i)=>{"use strict";i.d(t,{$l:()=>u,$t:()=>h,IP:()=>l,SQ:()=>g,Wx:()=>c,l_:()=>r,ud:()=>a,wA:()=>d});var n=i(51833),s=i(78701),o=i(28928);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class l{constructor(e,t,i,n,s,o,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=o,this.inlineDecorations=r}}class d{constructor(e,t,i,n,s,o,r,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=d.isBasicASCII(i,o),this.containsRTL=d.containsRTL(i,this.isBasicASCII,s),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||s.$i(e)}static containsRTL(e,t,i){return!(t||!i)&&s.Ut(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class c{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new h(new o.e(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&n.fS(e.data,t.data)}static equalsArr(e,t){return n.fS(e,t,g.equals)}}},86950:(e,t,i)=>{"use strict";i.d(t,{EY:()=>s,Tj:()=>o});class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class s{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class o{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(s.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),s=i/Math.floor(this._outerHeight),o=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){r.push(e);continue}}const d=this._getVerticalOffsetForLine(l.startLineNumber),h=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:d+l.heightInLines*t,c=Math.floor(s*d),u=Math.floor(s*h);let g=Math.floor((c+u)/2),p=u-g;p<o&&(p=o),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=l.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new n(g-p,g+p,f);l.setColorZone(_),r.push(_)}return this._colorZonesInvalid=!1,r.sort(n.compare),r}}},61558:(e,t,i)=>{"use strict";i.d(t,{$t:()=>d,CU:()=>a,Fd:()=>l,zg:()=>h});var n=i(74633),s=i(28928),o=i(23614),r=i(67364);class a{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const r=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(r.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);l=new s.e(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(r,1);i=new o.$l(l,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=new s.e(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$J)(this.configuration.options),t,i),a=e.startLineNumber,d=e.endLineNumber,h=[];let c=0;const u=[];for(let s=a;s<=d;s++)u[s-a]=[];for(let r=0,g=n.length;r<g;r++){const e=n[r],t=e.options;if(!l(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[c++]=i,t.inlineClassName){const e=new o.$t(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),n=Math.min(d,g.endLineNumber);for(let t=i;t<=n;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=d){const e=new o.$t(new s.e(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=d){const e=new o.$t(new s.e(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function l(e,t){return(!t.options.hideInCommentTokens||!d(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function d(e,t){return c(e,t.range,(e=>1===e))}function h(e,t){return c(e,t.range,(e=>2===e))}function c(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const s=e.tokenization.getLineTokens(n),o=n===t.startLineNumber,r=n===t.endLineNumber;let a=o?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<s.getCount();){if(r){if(s.getStartOffset(a)>t.endColumn-1)break}if(!i(s.getStandardTokenType(a)))return!1;a++}}return!0}},98098:(e,t,i)=>{"use strict";var n,s=i(83945),o=i(73971),r=i(17344),a=i(60548),l=i(24854),d=i(35770),h=i(5887),c=i(47116),u=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=new c.uy("selectionAnchorSet",!1);let m=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(l.Y.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new o.W5).appendText((0,h.NC)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,s.Z9)((0,h.NC)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(l.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=n=u([g(1,c.i6)],m);class f extends a.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.NC)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,r.gx)(2089,2080),weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.setSelectionAnchor()}}class _ extends a.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.NC)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.goToSelectionAnchor()}}class v extends a.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.NC)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,r.gx)(2089,2089),weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.selectFromAnchorToCursor()}}class b extends a.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.NC)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:d.u.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.cancelSelectionAnchor()}}(0,a._K)(m.ID,m,4),(0,a.Qr)(f),(0,a.Qr)(_),(0,a.Qr)(v),(0,a.Qr)(b)},23053:(e,t,i)=>{"use strict";var n=i(53372),s=i(53186),o=i(60548),r=i(74633),a=i(28928),l=i(24854),d=i(35770),h=i(24032),c=i(13277),u=i(5887),g=i(6178),p=i(6009),m=i(46673);const f=(0,p.P6G)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},u.NC("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends o.R6{constructor(){super({id:"editor.action.jumpToBracket",label:u.NC("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.jumpToBracket()}}class v extends o.R6{constructor(){super({id:"editor.action.selectToBracket",label:u.NC("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.vv("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&!1===i.selectBrackets&&(s=!1),null===(n=y.get(t))||void 0===n||n.selectToBracket(s)}}class b extends o.R6{constructor(){super({id:"editor.action.removeBrackets",label:u.NC("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.removeBrackets(this.id)}}class C{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class y extends s.JT{static get(e){return e.getContribution(y.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new n.pY((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.bracketPairs.matchBracket(i);let s=null;if(n)n[0].containsPosition(i)&&!n[1].containsPosition(i)?s=n[1].getStartPosition():n[1].containsPosition(i)&&(s=n[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)s=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(s=t.range.getStartPosition())}}return s?new l.Y(s.lineNumber,s.column,s.lineNumber,s.column):new l.Y(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const e=t.bracketPairs.findNextBracket(s);e&&e.range&&(o=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,d=null;if(o){o.sort(a.e.compareRangesUsingStarts);const[t,i]=o;if(r=e?t.getStartPosition():t.getEndPosition(),d=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(s)){const e=r;r=d,d=e}}r&&d&&i.push(new l.Y(r.lineNumber,r.column,d.lineNumber,d.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())}))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let r=0,c=e.length;r<c;r++){const t=e[r];t.isEmpty()&&(s[o++]=t.getStartPosition())}s.length>1&&s.sort(r.L.compare);const a=[];let l=0,d=0;const h=n.length;for(let r=0,c=s.length;r<c;r++){const e=s[r];for(;d<h&&n[d].position.isBefore(e);)d++;if(d<h&&n[d].position.equals(e))a[l++]=n[d];else{let i=t.bracketPairs.matchBracket(e,20),n=y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),n=y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new C(e,i,n)}}this._lastBracketsData=a,this._lastVersionId=i}}y.ID="editor.contrib.bracketMatchingController",y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=c.qx.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.EN)(f),position:h.sh.Center}}),y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=c.qx.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,o._K)(y.ID,y,1),(0,o.Qr)(v),(0,o.Qr)(_),(0,o.Qr)(b),g.BH.appendMenuItem(g.eH.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.NC({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},32944:(e,t,i)=>{"use strict";var n=i(60548),s=i(35770),o=i(28928),r=i(24854);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if((!this._isMovingLeft||1!==n)&&(this._isMovingLeft||s!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new o.e(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new o.e(i,s,i,s),a)}else{const r=new o.e(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new o.e(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new r.Y(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new r.Y(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var l=i(5887);class d extends n.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new a(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Qr)(class extends d{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:s.u.writable})}}),(0,n.Qr)(class extends d{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:s.u.writable})}})},34564:(e,t,i)=>{"use strict";var n=i(60548),s=i(2196),o=i(67663),r=i(28928),a=i(35770),l=i(5887);class d extends n.R6{constructor(){super({id:"editor.action.transposeLetters",label:l.NC("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.u.writable,kbOpts:{kbExpr:a.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],a=t.getSelections();for(const l of a){if(!l.isEmpty())continue;const e=l.startLineNumber,t=l.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const d=t===a?l.getPosition():o.o.rightPosition(i,l.getPosition().lineNumber,l.getPosition().column),h=o.o.leftPosition(i,d),c=o.o.leftPosition(i,h),u=i.getValueInRange(r.e.fromPositions(c,h)),g=i.getValueInRange(r.e.fromPositions(h,d)),p=r.e.fromPositions(c,d);n.push(new s.T4(p,g+u))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Qr)(d)},19757:(e,t,i)=>{"use strict";var n=i(27748),s=i(76595),o=i(90388),r=i(90356),a=i(60548),l=i(74246),d=i(35770),h=i(21981),c=i(5887),u=i(6178),g=i(63826),p=i(47116);const m="9_cutcopypaste",f=o.tY||document.queryCommandSupported("cut"),_=o.tY||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!n.vU||document.queryCommandSupported("paste");function b(e){return e.register(),e}const C=f?b(new a.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.eH.EditorContext,group:m,title:c.NC("actions.clipboard.cutLabel","Cut"),when:d.u.writable,order:1},{menuId:u.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.eH.SimpleEditorContext,group:m,title:c.NC("actions.clipboard.cutLabel","Cut"),when:d.u.writable,order:1}]})):void 0,y=_?b(new a.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.eH.EditorContext,group:m,title:c.NC("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.eH.SimpleEditorContext,group:m,title:c.NC("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.BH.appendMenuItem(u.eH.MenubarEditMenu,{submenu:u.eH.MenubarCopy,title:c.vv("copy as","Copy As"),group:"2_ccp",order:3}),u.BH.appendMenuItem(u.eH.EditorContext,{submenu:u.eH.EditorContextCopy,title:c.vv("copy as","Copy As"),group:m,order:3}),u.BH.appendMenuItem(u.eH.EditorContext,{submenu:u.eH.EditorContextShare,title:c.vv("share","Share"),group:"11_share",order:-1,when:p.Ao.and(p.Ao.notEquals("resourceScheme","output"),d.u.editorTextFocus)}),u.BH.appendMenuItem(u.eH.EditorTitleContext,{submenu:u.eH.EditorTitleContextShare,title:c.vv("share","Share"),group:"11_share",order:-1}),u.BH.appendMenuItem(u.eH.ExplorerContext,{submenu:u.eH.ExplorerContextShare,title:c.vv("share","Share"),group:"11_share",order:-1});const w=v?b(new a.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.eH.EditorContext,group:m,title:c.NC("actions.clipboard.pasteLabel","Paste"),when:d.u.writable,order:4},{menuId:u.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.eH.SimpleEditorContext,group:m,title:c.NC("actions.clipboard.pasteLabel","Paste"),when:d.u.writable,order:4}]})):void 0;class S extends a.R6{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:c.NC("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.u.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(r.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),r.RA.forceCopyWithSyntaxHighlighting=!1)}}function x(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(l.$).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(37),i=n.getSelection();return i&&i.isEmpty()&&!e||n.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,s.uP)().execCommand(t),!0))))}x(C,"cut"),x(y,"copy"),w&&(w.addImplementation(1e4,"code-editor",((e,t)=>{var i,n;const s=e.get(l.$),a=e.get(g.p),d=s.getFocusedCodeEditor();if(d&&d.hasTextFocus()){return d.getContainerDomNode().ownerDocument.execCommand("paste")?null!==(n=null===(i=h.bO.get(d))||void 0===i?void 0:i.finishedPaste())&&void 0!==n?n:Promise.resolve():!o.$L||(async()=>{const e=await a.readText();if(""!==e){const t=r.Nl.INSTANCE.get(e);let i=!1,n=null,s=null;t&&(i=d.getOption(37)&&!!t.isFromEmptySelection,n="undefined"!==typeof t.multicursorText?t.multicursorText:null,s=t.mode),d.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:s})}})()}return!1})),w.addImplementation(0,"generic-dom",((e,t)=>((0,s.uP)().execCommand("paste"),!0)))),_&&(0,a.Qr)(S)},87851:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>x,LR:()=>A,MN:()=>L,RB:()=>y,TM:()=>D,UX:()=>M,aI:()=>T,cz:()=>w,pZ:()=>S,uH:()=>k});var n=i(51833),s=i(76946),o=i(16015),r=i(53186),a=i(91387),l=i(80427),d=i(28928),h=i(24854),c=i(53869),u=i(23058),g=i(8037),p=i(5887),m=i(94943),f=i(61758),_=i(97757),v=i(57823),b=i(33215),C=i(34277);const y="editor.action.codeAction",w="editor.action.quickFix",S="editor.action.autoFix",x="editor.action.refactor",L="editor.action.sourceAction",k="editor.action.organizeImports",D="editor.action.fixAll";class N extends r.JT{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator(e,t){let{action:i}=e,{action:s}=t;return i.isAI&&!s.isAI?1:!i.isAI&&s.isAI?-1:(0,n.Of)(i.diagnostics)?(0,n.Of)(s.diagnostics)?N.codeActionsPreferredComparator(i,s):-1:(0,n.Of)(s.diagnostics)?1:N.codeActionsPreferredComparator(i,s)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(N.codeActionsComparator),this.validActions=this.allActions.filter((e=>{let{action:t}=e;return!t.disabled}))}get hasAutoFix(){return this.validActions.some((e=>{let{action:t}=e;return!!t.kind&&b.yN.QuickFix.contains(new C.o(t.kind))&&!!t.isPreferred}))}get hasAIFix(){return this.validActions.some((e=>{let{action:t}=e;return!!t.isAI}))}get allAIFixes(){return this.validActions.every((e=>{let{action:t}=e;return!!t.isAI}))}}const E={actions:[],documentation:void 0};async function T(e,t,i,s,a,l){var d;const h=s.filter||{},c={...h,excludes:[...h.excludes||[],b.yN.Notebook]},u={only:null===(d=h.include)||void 0===d?void 0:d.value,trigger:s.type},p=new g.YQ(t,l),m=2===s.type,f=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,b.EU)(i,new C.o(e))))))}(e,t,m?c:h),_=new r.SL,v=f.map((async e=>{try{a.report(e);const n=await e.provideCodeActions(t,i,u,p.token);if(n&&_.add(n),p.token.isCancellationRequested)return E;const s=((null===n||void 0===n?void 0:n.actions)||[]).filter((e=>e&&(0,b.Yl)(h,e))),o=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new C.o(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null===e||void 0===e?void 0:e.command}for(const s of t)if(s.kind)for(const e of n)if(e.kind.contains(new C.o(s.kind)))return e.command;return}(e,s,h.include);return{actions:s.map((t=>new b.bA(t,e))),documentation:o}}catch(n){if((0,o.n2)(n))throw n;return(0,o.Cp)(n),E}})),y=e.onDidChange((()=>{const i=e.all(t);(0,n.fS)(i,f)||p.cancel()}));try{const i=await Promise.all(v),o=i.map((e=>e.actions)).flat(),r=[...(0,n.kX)(i.map((e=>e.documentation))),...I(e,t,s,o)];return new N(o,r,_)}finally{y.dispose(),p.dispose()}}function*I(e,t,i,n){var s,o,r;if(t&&n.length)for(const a of e.all(t))a._getAdditionalMenuItems&&(yield*null===(s=a._getAdditionalMenuItems)||void 0===s?void 0:s.call(a,{trigger:i.type,only:null===(r=null===(o=i.filter)||void 0===o?void 0:o.include)||void 0===r?void 0:r.value},n.map((e=>e.action))))}var M;async function A(e,t,i,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.T.None;var r;const a=e.get(l.vu),d=e.get(m.H),h=e.get(v.b),c=e.get(f.lT);if(h.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(o),!o.isCancellationRequested){if(null===(r=t.action.edit)||void 0===r?void 0:r.edits.length){if(!(await a.apply(t.action.edit,{editor:null===n||void 0===n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==M.OnSave,showPreview:null===n||void 0===n?void 0:n.preview})).isApplied)return}if(t.action.command)try{await d.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(u){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(u);c.error("string"===typeof e?e:p.NC("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(M||(M={})),m.P.registerCommand("_executeCodeActionProvider",(async function(e,t,i,n,r){if(!(t instanceof a.o))throw(0,o.b1)();const{codeActionProvider:l}=e.get(c.p),g=e.get(u.q).getModel(t);if(!g)throw(0,o.b1)();const p=h.Y.isISelection(i)?h.Y.liftSelection(i):d.e.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,o.b1)();const m="string"===typeof n?new C.o(n):void 0,f=await T(l,g,p,{type:1,triggerAction:b.aQ.Default,filter:{includeSourceActions:!0,include:m}},_.Ex.None,s.T.None),v=[],y=Math.min(f.validActions.length,"number"===typeof r?r:0);for(let o=0;o<y;o++)v.push(f.validActions[o].resolve(s.T.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},13391:(e,t,i)=>{"use strict";var n=i(60548),s=i(50142),o=i(34277),r=i(78701),a=i(35770),l=i(87851),d=i(5887),h=i(47116),c=i(33215),u=i(30796),g=i(31385);function p(e){return h.Ao.regex(g.fj.keys()[0],new RegExp("(\\s|^)"+(0,r.ec)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:d.NC("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:d.NC("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[d.NC("args.schema.apply.first","Always apply the first returned code action."),d.NC("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),d.NC("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:d.NC("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:c.aQ.Default;if(e.hasModel()){const o=u.G.get(e);null===o||void 0===o||o.manualTriggerAtCurrentPosition(t,s,i,n)}}class _ extends n.R6{constructor(){super({id:l.cz,label:d.NC("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),kbOpts:{kbExpr:a.u.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,d.NC("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,c.aQ.QuickFix)}}class v extends n._l{constructor(){super({id:l.RB,precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const n=c.wZ.fromUser(i,{kind:o.o.Empty,apply:"ifSingle"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.NC("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):d.NC("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?d.NC("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):d.NC("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class b extends n.R6{constructor(){super({id:l.Bb,label:d.NC("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),kbOpts:{kbExpr:a.u.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.Ao.and(a.u.writable,p(c.yN.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=c.wZ.fromUser(i,{kind:c.yN.Refactor,apply:"never"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.NC("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):d.NC("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?d.NC("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):d.NC("editor.action.refactor.noneMessage","No refactorings available"),{include:c.yN.Refactor.contains(n.kind)?n.kind:o.o.None,onlyIncludePreferredActions:n.preferred},n.apply,c.aQ.Refactor)}}class C extends n.R6{constructor(){super({id:l.MN,label:d.NC("source.label","Source Action..."),alias:"Source Action...",precondition:h.Ao.and(a.u.writable,a.u.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.Ao.and(a.u.writable,p(c.yN.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=c.wZ.fromUser(i,{kind:c.yN.Source,apply:"never"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.NC("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):d.NC("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?d.NC("editor.action.source.noneMessage.preferred","No preferred source actions available"):d.NC("editor.action.source.noneMessage","No source actions available"),{include:c.yN.Source.contains(n.kind)?n.kind:o.o.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,c.aQ.SourceAction)}}class y extends n.R6{constructor(){super({id:l.uH,label:d.NC("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.Ao.and(a.u.writable,p(c.yN.SourceOrganizeImports)),kbOpts:{kbExpr:a.u.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,d.NC("editor.action.organize.noneMessage","No organize imports action available"),{include:c.yN.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",c.aQ.OrganizeImports)}}class w extends n.R6{constructor(){super({id:l.TM,label:d.NC("fixAll.label","Fix All"),alias:"Fix All",precondition:h.Ao.and(a.u.writable,p(c.yN.SourceFixAll))})}run(e,t){return f(t,d.NC("fixAll.noneMessage","No fix all action available"),{include:c.yN.SourceFixAll,includeSourceActions:!0},"ifSingle",c.aQ.FixAll)}}class S extends n.R6{constructor(){super({id:l.pZ,label:d.NC("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.Ao.and(a.u.writable,p(c.yN.QuickFix)),kbOpts:{kbExpr:a.u.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,d.NC("editor.action.autoFix.noneMessage","No auto fixes available"),{include:c.yN.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",c.aQ.AutoFix)}}var x=i(38859),L=i(49817),k=i(76322);(0,n._K)(u.G.ID,u.G,3),(0,n._K)(x.f.ID,x.f,4),(0,n.Qr)(_),(0,n.Qr)(b),(0,n.Qr)(C),(0,n.Qr)(y),(0,n.Qr)(S),(0,n.Qr)(w),(0,n.fK)(new v),k.B.as(L.IP.Configuration).registerConfiguration({...s.wk,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:d.NC("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),k.B.as(L.IP.Configuration).registerConfiguration({...s.wk,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:d.NC("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}})},30796:(e,t,i)=>{"use strict";i.d(t,{G:()=>ce});var n,s=i(76595),o=i(83945),r=i(16015),a=i(20447),l=i(53186),d=i(74633),h=i(13277),c=i(53869),u=i(87851),g=i(34277),p=i(33215),m=i(25371),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=n=class{constructor(e){this.keybindingService=e}getResolver(){const e=new a.o((()=>this.keybindingService.getKeybindings().filter((e=>n.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.uH?t={kind:p.yN.SourceOrganizeImports.value}:e.command===u.TM&&(t={kind:p.yN.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.wZ.fromUser(t,{kind:g.o.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return null===i||void 0===i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.o(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v.codeActionCommands=[u.Bb,u.RB,u.MN,u.uH,u.TM],v=n=f([_(0,m.d)],v);i(60951);var b=i(61542),C=(i(95451),i(5887));const y=Object.freeze({kind:g.o.Empty,title:(0,C.NC)("codeAction.widget.id.more","More Actions...")}),w=Object.freeze([{kind:p.yN.QuickFix,title:(0,C.NC)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.yN.RefactorExtract,title:(0,C.NC)("codeAction.widget.id.extract","Extract"),icon:b.l.wrench},{kind:p.yN.RefactorInline,title:(0,C.NC)("codeAction.widget.id.inline","Inline"),icon:b.l.wrench},{kind:p.yN.RefactorRewrite,title:(0,C.NC)("codeAction.widget.id.convert","Rewrite"),icon:b.l.wrench},{kind:p.yN.RefactorMove,title:(0,C.NC)("codeAction.widget.id.move","Move"),icon:b.l.wrench},{kind:p.yN.SurroundWith,title:(0,C.NC)("codeAction.widget.id.surround","Surround With"),icon:b.l.surroundWith},{kind:p.yN.Source,title:(0,C.NC)("codeAction.widget.id.source","Source Action"),icon:b.l.symbolFile},y]);var S=i(38859),x=i(10843),L=i(7144),k=i(23014),D=i(69394),N=i(76946),E=i(90388),T=i(73045),I=i(79086),M=i(93617),A=i(6009),R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},O=function(e,t){return function(i,n){t(i,n,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class B{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=null!==(s=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==s?s:""}disposeTemplate(e){}}let V=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new k.e(e,E.OS)}}renderElement(e,t,i){var n,o,r;if((null===(n=e.group)||void 0===n?void 0:n.icon)?(i.icon.className=T.k.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,A.n_1)(e.group.icon.color.id))):(i.icon.className=T.k.asClassName(b.l.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=U(e.label),i.keybinding.set(e.keybinding),s.iJ(!!e.keybinding,i.keybinding.element);const a=null===(o=this._keybindingService.lookupKeybinding(P))||void 0===o?void 0:o.getLabel(),l=null===(r=this._keybindingService.lookupKeybinding(F))||void 0===r?void 0:r.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview&&e.canPreview?i.container.title=(0,C.NC)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,l):i.container.title=(0,C.NC)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};V=R([O(1,m.d)],V);class W extends UIEvent{constructor(){super("acceptSelectedAction")}}class H extends UIEvent{constructor(){super("previewSelectedAction")}}function z(e){if("action"===e.kind)return e.label}let j=class extends l.JT{constructor(e,t,i,n,s,o){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=o,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new N.A),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const r={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new D.aV(e,this.domNode,r,[new V(t,this._keybindingService),new B],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:z},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?U(null===e||void 0===e?void 0:e.label):"";return e.disabled&&(t=(0,C.NC)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,C.NC)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(M.O2),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let n=e;if(this._allMenuItems.length>=50)n=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));n=Math.max(...t,e)}const s=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(s,n),this.domNode.style.height=`${s}px`,this._list.domFocus(),n}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new H:new W;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof H):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(0===i.length)return;const n=i[0],s=this._list.element(n);null===(t=(e=this._delegate).onFocus)||void 0===t||t.call(e,s.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function U(e){return e.replace(/\r\n|\r|\n/g," ")}j=R([O(4,I.u),O(5,m.d)],j);var K=i(6178),q=i(47116),$=i(23026),G=i(87775),Y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Z=function(e,t){return function(i,n){t(i,n,e)}};(0,A.P6G)("actionBar.toggledBackground",{dark:A.XEs,light:A.XEs,hcDark:A.XEs,hcLight:A.XEs},(0,C.NC)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const Q={Visible:new q.uy("codeActionMenuVisible",!1,(0,C.NC)("codeActionMenuVisible","Whether the action widget list is visible"))},X=(0,G.yh)("actionWidgetService");let J=class extends l.JT{get isVisible(){return Q.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new l.XK)}show(e,t,i,n,s,o,r){const a=Q.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(j,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:e=>(a.set(!0),this._renderWidget(e,l,null!==r&&void 0!==r?r:[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},o,!1)}acceptSelected(e){var t;null===(t=this._list.value)||void 0===t||t.acceptSelected(e)}focusPrevious(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusPrevious()}focusNext(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusNext()}hide(){var e;null===(e=this._list.value)||void 0===e||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,!this._list.value)throw new Error("List has no value");o.appendChild(this._list.value.domNode);const r=new l.SL,a=document.createElement("div"),d=e.appendChild(a);d.classList.add("context-view-block"),r.add(s.nm(d,s.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const h=document.createElement("div"),c=e.appendChild(h);c.classList.add("context-view-pointerBlock"),r.add(s.nm(c,s.tw.POINTER_MOVE,(()=>c.remove()))),r.add(s.nm(c,s.tw.MOUSE_DOWN,(()=>c.remove())));let u=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(o.appendChild(e.getContainer().parentElement),r.add(e),u=e.getContainer().offsetWidth)}const g=null===(n=this._list.value)||void 0===n?void 0:n.layout(u);o.style.width=`${g}px`;const p=r.add(s.go(e));return r.add(p.onDidBlur((()=>this.hide()))),r}_createActionBar(e,t){if(!t.length)return;const i=s.$(e),n=new L.o(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e)}};J=Y([Z(0,I.u),Z(1,q.i6),Z(2,G.TG)],J),(0,$.z)(X,J,1);const ee=1100;(0,K.r1)(class extends K.Ke{constructor(){super({id:"hideCodeActionWidget",title:(0,C.vv)("hideCodeActionWidget.title","Hide action widget"),precondition:Q.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(X).hide()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:"selectPrevCodeAction",title:(0,C.vv)("selectPrevCodeAction.title","Select previous action"),precondition:Q.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(X);t instanceof J&&t.focusPrevious()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:"selectNextCodeAction",title:(0,C.vv)("selectNextCodeAction.title","Select next action"),precondition:Q.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(X);t instanceof J&&t.focusNext()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:P,title:(0,C.vv)("acceptSelected.title","Accept selected action"),precondition:Q.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(X);t instanceof J&&t.acceptSelected()}}),(0,K.r1)(class extends K.Ke{constructor(){super({id:F,title:(0,C.vv)("previewSelected.title","Preview selected action"),precondition:Q.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(X);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(94943),ne=i(30600),se=i(76390),oe=i(97757),re=i(25112),ae=i(46673),le=i(31385),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};let ce=te=class extends l.JT{static get(e){return e.getContribution(te.ID)}constructor(e,t,i,n,s,o,r,d,h,c){super(),this._commandService=r,this._configurationService=d,this._actionWidgetService=h,this._instantiationService=c,this._activeCodeActions=this._register(new l.XK),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new le.Jt(this._editor,s.codeActionProvider,t,i,o,d)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.o((()=>{const e=this._editor.getContribution(S.f.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=n.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.UX.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var s;if(!this._editor.hasModel())return;null===(s=x.O.get(this._editor))||void 0===s||s.closeMessage();const o=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:o}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,n){try{await this._instantiationService.invokeFunction(u.LR,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.aQ.QuickFix,filter:{}})}}async update(e){var t,i,n,s,o,a,l;if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let d;try{d=await e.actions}catch(h){return void(0,r.dL)(h)}if(!this._disposed)if(null===(i=this._lightBulbWidget.value)||void 0===i||i.update(d,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,d);if(t){try{null===(s=this._lightBulbWidget.value)||void 0===s||s.hide(),await this._applyCodeAction(t,!1,!1,u.UX.FromCodeActions)}finally{d.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,d);if(t&&t.action.disabled)return null===(o=x.O.get(this._editor))||void 0===o||o.showMessage(t.action.disabled,e.trigger.context.position),void d.dispose()}}const t=!!(null===(a=e.trigger.filter)||void 0===a?void 0:a.include);if(e.trigger.context&&(!d.allActions.length||!t&&!d.validActions.length))return null===(l=x.O.get(this._editor))||void 0===l||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=d,void d.dispose();this._activeCodeActions.value=d,this.showCodeActionList(d,this.toCoords(e.position),{includeDisabledActions:t,fromLightbulb:!1})}else this._actionWidgetService.isVisible?d.dispose():this._activeCodeActions.value=d}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((e=>{let{action:t}=e;return t.disabled})):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}async showCodeActionList(e,t,i){const n=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const r=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!r.length)return;const a=d.L.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,u.UX.FromCodeActions),this._actionWidgetService.hide(),n.clear()},onHide:()=>{var e;null===(e=this._editor)||void 0===e||e.focus(),n.clear()},onHover:async(e,t)=>{var i;if(t.isCancellationRequested)return;let n=!1;const s=e.action.kind;if(s){const e=new g.o(s);n=[p.yN.RefactorExtract,p.yN.RefactorInline,p.yN.RefactorRewrite].some((t=>t.contains(e)))}return{canPreview:n||!!(null===(i=e.action.edit)||void 0===i?void 0:i.edits.length)}},onFocus:e=>{var t,i;if(e&&e.action){const s=e.action.ranges,r=e.action.diagnostics;if(n.clear(),s&&s.length>0){const e=r&&(null===r||void 0===r?void 0:r.length)>1?r.map((e=>({range:e,options:te.DECORATION}))):s.map((e=>({range:e,options:te.DECORATION})));n.set(e)}else if(r&&r.length>0){const e=r.map((e=>({range:e,options:te.DECORATION})));n.set(e);const s=r[0];if(s.startLineNumber&&s.startColumn){const e=null===(i=null===(t=this._editor.getModel())||void 0===t?void 0:t.getWordAtPosition({lineNumber:s.startLineNumber,column:s.startColumn}))||void 0===i?void 0:i.word;o.i7((0,C.NC)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,s.startLineNumber,s.startColumn))}}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>{var t;return{kind:"action",item:e,group:y,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!(null===(t=e.action.edit)||void 0===t?void 0:t.edits.length)}}));const n=w.map((e=>({group:e,actions:[]})));for(const o of e){const e=o.action.kind?new g.o(o.action.kind):g.o.None;for(const t of n)if(t.group.kind.contains(e)){t.actions.push(o);break}}const s=[];for(const o of n)if(o.actions.length){s.push({kind:"header",group:o.group});for(const e of o.actions){const t=o.group;s.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:b.l.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return s}(r,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,s,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,s.i)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:null===t||void 0===t?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map((e=>{var t;return{id:e.id,label:e.title,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:"",class:void 0,enabled:!0,run:()=>{var t;return this._commandService.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}}}));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:(0,C.NC)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,C.NC)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};ce.ID="editor.contrib.codeActionController",ce.DECORATION=h.qx.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"}),ce=te=de([he(1,se.lT),he(2,q.i6),he(3,G.TG),he(4,c.p),he(5,oe.ek),he(6,ie.H),he(7,ne.Ui),he(8,X),he(9,G.TG)],ce),(0,ae.Ic)(((e,t)=>{var i,n;i=".quickfix-edit-highlight",(n=e.getColor(A.MUv))&&t.addRule(`.monaco-editor ${i} { background-color: ${n}; }`);const s=e.getColor(A.EiJ);s&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,re.c3)(e.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`)}))},31385:(e,t,i)=>{"use strict";i.d(t,{Jt:()=>y,fj:()=>f});var n=i(53372),s=i(16015),o=i(39706),r=i(53186),a=i(30506),l=i(67364),d=i(74633),h=i(24854),c=i(47116),u=i(97757),g=i(33215),p=i(87851),m=i(34277);const f=new c.uy("supportedCodeAction",""),_="_typescript.applyFixAllCodeAction";class v extends r.JT{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:250;super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=s,this._autoTriggerTimer=this._register(new n._F),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.Xy)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.aQ.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==l.$r.Off){if(i===l.$r.On)return t;if(i===l.$r.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:n}=t.getPosition(),s=e.getLineContent(i);if(0===s.length)return;if(1===n){if(/\s/.test(s[0]))return}else if(n===e.getLineMaxColumn(i)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[n-2])&&/\s/.test(s[n-1]))return}return t}}}var b;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,s.n2)(e))return C;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(b||(b={}));const C=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class y extends r.JT{constructor(e,t,i,n,s,a){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._configurationService=a,this._codeActionOracle=this._register(new r.XK),this._state=b.Empty,this._onDidChangeState=this._register(new o.Q5),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=f.bindTo(n),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(b.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:null===t||void 0===t?void 0:t.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(b.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap((e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]}));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new v(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(b.Empty);const s=t.selection.getStartPosition(),o=(0,n.PG)((async i=>{var n,s,o,r,a,l,c,f,v,b;if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.aQ.QuickFix||(null===(s=null===(n=t.trigger.filter)||void 0===n?void 0:n.include)||void 0===s?void 0:s.contains(g.yN.QuickFix)))){const n=await(0,p.aI)(this._registry,e,t.selection,t.trigger,u.Ex.None,i),s=[...n.allActions];if(i.isCancellationRequested)return C;const y=null===(o=n.validActions)||void 0===o?void 0:o.some((e=>!!e.action.kind&&g.yN.QuickFix.contains(new m.o(e.action.kind)))),w=this._markerService.read({resource:e.uri});if(y){for(const e of n.validActions)(null===(a=null===(r=e.action.command)||void 0===r?void 0:r.arguments)||void 0===a?void 0:a.some((e=>"string"===typeof e&&e.includes(_))))&&(e.action.diagnostics=[...w.filter((e=>e.relatedInformation))]);return{validActions:n.validActions,allActions:s,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}if(!y&&w.length>0){const o=t.selection.getPosition();let r=o,a=Number.MAX_VALUE;const m=[...n.validActions];for(const y of w){const C=y.endColumn,S=y.endLineNumber,x=y.startLineNumber;if(S===o.lineNumber||x===o.lineNumber){r=new d.L(S,C);const y={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:(null===(l=t.trigger.filter)||void 0===l?void 0:l.include)?null===(c=t.trigger.filter)||void 0===c?void 0:c.include:g.yN.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:(null===(f=t.trigger.context)||void 0===f?void 0:f.notAvailableMessage)||"",position:r}},x=new h.Y(r.lineNumber,r.column,r.lineNumber,r.column),L=await(0,p.aI)(this._registry,e,x,y,u.Ex.None,i);if(0!==L.validActions.length){for(const e of L.validActions)(null===(b=null===(v=e.action.command)||void 0===v?void 0:v.arguments)||void 0===b?void 0:b.some((e=>"string"===typeof e&&e.includes(_))))&&(e.action.diagnostics=[...w.filter((e=>e.relatedInformation))]);0===n.allActions.length&&s.push(...L.allActions),Math.abs(o.column-C)<a?m.unshift(...L.validActions):m.push(...L.validActions)}a=Math.abs(o.column-C)}}const C=m.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return C.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:C,allActions:s,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}}return(0,p.aI)(this._registry,e,t.selection,t.trigger,u.Ex.None,i)}));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(o,250));const r=new b.Triggered(t.trigger,s,o);let a=!1;1===this._state.type&&(a=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),a||this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.aQ.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},38859:(e,t,i)=>{"use strict";i.d(t,{f:()=>v});var n,s,o=i(76595),r=i(68068),a=i(61542),l=i(39706),d=i(53186),h=i(73045),c=i(82412),u=i(87851),g=i(5887),p=i(94943),m=i(25371),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(s||(s={}));let v=n=class extends d.JT{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new l.Q5),this.onClick=this._onClick.event,this._state=s.Hidden,this._iconClasses=[],this._domNode=o.$("div.lightBulbWidget"),this._register(r.o.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),this._register(o.GQ(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=o.i(this._domNode),n=this._editor.getOption(67);let s=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(s+=n),this._onClick.fire({x:e.posx,y:t+i+s,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(o.nm(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(l.ju.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{var e,t,i,n;this._preferredKbLabel=null!==(t=null===(e=this._keybindingService.lookupKeybinding(u.pZ))||void 0===e?void 0:e.getLabel())&&void 0!==t?t:void 0,this._quickFixKbLabel=null!==(n=null===(i=this._keybindingService.lookupKeybinding(u.cz))||void 0===i?void 0:i.getLabel())&&void 0!==n?n:void 0,this._updateLightBulbTitleAndIcon()})))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=this._editor.getOptions().get(50),h=o.getLineContent(r),u=(0,c.q)(h,l),g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let p=r,m=1;if(!(d.spaceWidth*u>22)){if(r>1&&!g(r-1))p-=1;else if(r<o.getLineCount()&&!g(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide();m=/^\S\s*$/.test(o.getLineContent(p))?2:1}this.state=new s.Showing(e,t,i,{position:{lineNumber:p,column:m},preference:n._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==s.Hidden&&(this.state=s.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=a.l.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?a.l.lightbulbSparkleAutofix:a.l.lightbulbAutofix:this.state.actions.hasAIFix?a.l.lightbulbSparkle:a.l.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=h.k.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=g.NC("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=g.NC("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=g.NC("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=g.NC("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};v.ID="editor.contrib.lightbulbWidget",v._posPref=[0],v=n=f([_(1,m.d),_(2,p.H)],v)},33215:(e,t,i)=>{"use strict";i.d(t,{EU:()=>a,Yl:()=>l,aQ:()=>r,bA:()=>c,wZ:()=>h,yN:()=>o});var n=i(16015),s=i(34277);const o=new class{constructor(){this.QuickFix=new s.o("quickfix"),this.Refactor=new s.o("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new s.o("notebook"),this.Source=new s.o("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var r;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>d(t,i,e.include))))&&!(!e.includeSourceActions&&o.Source.contains(t)))}function l(e,t){const i=t.kind?new s.o(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>d(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&o.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function d(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(r||(r={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new s.o(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class c{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(i){(0,n.Cp)(i)}t&&(this.action.edit=t.edit)}return this}}},79623:(e,t,i)=>{"use strict";var n=i(53372),s=i(16015),o=i(53186),r=i(52432),a=i(60548),l=i(67364),d=i(35770),h=i(76946),c=i(47624),u=i(91387),g=i(23058),p=i(94943),m=i(53869);class f{constructor(){this.lenses=[],this._disposables=new o.SL}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const n=e.ordered(t),o=new Map,r=new f,a=n.map((async(e,n)=>{o.set(e,n);try{const n=await Promise.resolve(e.provideCodeLenses(t,i));n&&r.add(n,e)}catch(a){(0,s.Cp)(a)}}));return await Promise.all(a),r.lenses=r.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:o.get(e.provider)<o.get(t.provider)?-1:o.get(e.provider)>o.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),r}p.P.registerCommand("_executeCodeLensProvider",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];let[r,a]=i;(0,c.p_)(u.o.isUri(r)),(0,c.p_)("number"===typeof a||!a);const{codeLensProvider:l}=e.get(m.p),d=e.get(g.q).getModel(r);if(!d)throw(0,s.b1)();const p=[],f=new o.SL;return _(l,d,h.T.None).then((e=>{f.add(e);const t=[];for(const i of e.lenses)void 0===a||null===a||Boolean(i.symbol.command)?p.push(i.symbol):a-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(d,i.symbol,h.T.None)).then((e=>p.push(e||i.symbol))));return Promise.all(t)})).then((()=>p)).finally((()=>{setTimeout((()=>f.dispose()),100)}))}));var v=i(39706),b=i(38079),C=i(28928),y=i(23026),w=i(87775),S=i(87650),x=i(11801),L=i(76595),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const N=(0,w.yh)("ICodeLensCache");class E{constructor(e,t){this.lineCount=e,this.data=t}}let T=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new b.z6(20,.75);(0,L.se)(x.E,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),v.ju.once(e.onWillSaveState)((i=>{i.reason===S.fk.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new f;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new E(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new C.e(e,1,e,11)});const s=new f;s.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new E(i.lineCount,s))}}catch(t){}}};T=k([D(0,S.Uy)],T),(0,y.z)(N,T,1);var I=i(27691),M=i(13277);class A{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class R{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+R._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s<e.length;s++){const t=e[s];if(t&&(n=!0,t.command)){const n=(0,I.T)(t.command.title.trim());if(t.command.id){const e="c"+R._idPool++;i.push(L.$("a",{id:e,title:t.command.tooltip,role:"button"},...n)),this._commands.set(e,t.command)}else i.push(L.$("span",{title:t.command.tooltip},...n));s+1<e.length&&i.push(L.$("span",void 0,"\xa0|\xa0"))}}n?(L.mc(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):L.mc(this._domNode,L.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}R._idPool=0;class O{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,n=t.length;i<n;i++)this._addDecorationsCallbacks[i](t[i])}}const P=M.qx.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,n,s,o){let r;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),r=r?C.e.plusRange(r,e.symbol.range):C.e.lift(e.symbol.range)})),this._viewZone=new A(r.startLineNumber-1,s,o),this._viewZoneId=n.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new R(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null===t||void 0===t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||C.e.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var B=i(5887),V=i(61758),W=i(2033),H=i(14386),z=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},j=function(e,t){return function(i,n){t(i,n,e)}};let U=class{constructor(e,t,i,s,r,a){this._editor=e,this._languageFeaturesService=t,this._commandService=s,this._notificationService=r,this._codeLensCache=a,this._disposables=new o.SL,this._localToDispose=new o.SL,this._lenses=[],this._oldCodeLensModels=new o.SL,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new n.pY((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.hL.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,n.Vg)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const n of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof n.onDidChange){const e=n.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new n.pY((()=>{var t;const o=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.PG)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const n=this._provideCodeLensDebounce.update(e,Date.now()-o);i.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),s.dL)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,o.OF)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{var e;this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));const s=new O;i.forEach((e=>{e.dispose(s,t),this._lenses.splice(this._lenses.indexOf(e),1)})),s.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,o.OF)((()=>{if(this._editor.getModel()){const e=r.Z.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null===t||void 0===t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null===t||void 0===t?void 0:t.tagName))for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new O;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const r of e.lenses){const e=r.symbol.range.startLineNumber;e<1||e>t||(n&&n[n.length-1].symbol.range.startLineNumber===e?n.push(r):(n=[r],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=r.Z.capture(this._editor),o=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const n=new O;let s=0,r=0;for(;r<i.length&&s<this._lenses.length;){const e=i[r][0].symbol.range.startLineNumber,a=this._lenses[s].getLineNumber();a<e?(this._lenses[s].dispose(n,t),this._lenses.splice(s,1)):a===e?(this._lenses[s].updateCodeLensSymbols(i[r],n),r++,s++):(this._lenses.splice(s,0,new F(i[r],this._editor,n,t,o.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),s++,r++)}for(;s<this._lenses.length;)this._lenses[s].dispose(n,t),this._lenses.splice(s,1);for(;r<i.length;)this._lenses.push(new F(i[r],this._editor,n,t,o.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),r++;n.commit(e)}))})),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],o=[];if(this._lenses.forEach((e=>{const n=e.computeIfNecessary(t);n&&(i.push(n),o.push(e))})),0===i.length)return;const r=Date.now(),a=(0,n.PG)((e=>{const n=i.map(((i,n)=>{const r=new Array(i.length),a=i.map(((i,n)=>i.symbol.command||"function"!==typeof i.provider.resolveCodeLens?(r[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{r[n]=e}),s.Cp)));return Promise.all(a).then((()=>{e.isCancellationRequested||o[n].isDisposed()||o[n].updateCommands(r)}))}));return Promise.all(n)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,s.dL)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,(null===(e=this._currentCodeLensModel)||void 0===e?void 0:e.isDisposed)?void 0:this._currentCodeLensModel}};U.ID="css.editor.codeLens",U=z([j(1,m.p),j(2,H.A),j(3,p.H),j(4,V.lT),j(5,N)],U),(0,a._K)(U.ID,U,1),(0,a.Qr)(class extends a.R6{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:d.u.hasCodeLensProvider,label:(0,B.NC)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(W.eJ),n=e.get(p.H),s=e.get(V.lT),o=t.getSelection().positionLineNumber,r=t.getContribution(U.ID);if(!r)return;const a=await r.getModel();if(!a)return;const l=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===o&&l.push({label:u.symbol.command.title,command:u.symbol.command});if(0===l.length)return;const d=await i.pick(l,{canPickMany:!1,placeHolder:(0,B.NC)("placeHolder","Select a command")});if(!d)return;let h=d.command;if(a.isDisposed){const e=await r.getModel(),t=null===e||void 0===e?void 0:e.lenses.find((e=>{var t;return e.symbol.range.startLineNumber===o&&(null===(t=e.symbol.command)||void 0===t?void 0:t.title)===h.title}));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await n.executeCommand(h.id,...h.arguments||[])}catch(c){s.error(c)}}})},54919:(e,t,i)=>{"use strict";i.d(t,{E:()=>u,R:()=>g});var n=i(76946),s=i(16015),o=i(91387),r=i(28928),a=i(23058),l=i(94943),d=i(53869),h=i(20161),c=i(30600);async function u(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return _(new p,e,t,i,n)}function g(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}class p{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const o of s)n.push({colorInfo:o,provider:e});return Array.isArray(s)}}class m{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const o of s)n.push({range:o.range,color:[o.color.red,o.color.green,o.color.blue,o.color.alpha]});return Array.isArray(s)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,s){const o=await e.provideColorPresentations(t,this.colorInfo,n.T.None);return Array.isArray(o)&&s.push(...o),Array.isArray(o)}}async function _(e,t,i,n,o){let r,a=!1;const l=[],d=t.ordered(i);for(let u=d.length-1;u>=0;u--){const t=d[u];if(t instanceof h.G)r=t;else try{await e.compute(t,i,n,l)&&(a=!0)}catch(c){(0,s.Cp)(c)}}return a?l:r&&o?(await e.compute(r,i,n,l),l):[]}function v(e,t){const{colorProvider:i}=e.get(d.p),n=e.get(a.q).getModel(t);if(!n)throw(0,s.b1)();return{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(c.Ui).getValue("editor.defaultColorDecorators",{resource:t})}}l.P.registerCommand("_executeDocumentColorProvider",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];const[a]=i;if(!(a instanceof o.o))throw(0,s.b1)();const{model:l,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:h}=v(e,a);return _(new m,d,l,n.T.None,h)})),l.P.registerCommand("_executeColorPresentationProvider",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];const[l,d]=i,{uri:h,range:c}=d;if(!(h instanceof o.o)||!Array.isArray(l)||4!==l.length||!r.e.isIRange(c))throw(0,s.b1)();const{model:u,colorProviderRegistry:g,isDefaultColorDecoratorsEnabled:p}=v(e,h),[m,b,C,y]=l;return _(new f({range:c,color:{red:m,green:b,blue:C,alpha:y}}),g,u,n.T.None,p)}))},52722:(e,t,i)=>{"use strict";var n=i(53186),s=i(60548),o=i(28928),r=i(14900),a=i(61672),l=i(81584),d=i(82213);class h extends n.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==r.Ak)return;if(!i.range)return;const n=this._editor.getContribution(l.c.ID);if(n&&!n.isColorPickerVisible){const e=new o.e(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(e,1,0,!1,!0)}}}h.ID="editor.contrib.colorContribution",(0,s._K)(h.ID,h,2),d.Ae.register(a.nh)},14900:(e,t,i)=>{"use strict";i.d(t,{Ak:()=>y,if:()=>w});var n,s=i(53372),o=i(63932),r=i(16015),a=i(39706),l=i(53186),d=i(6617),h=i(78701),c=i(76046),u=i(60548),g=i(28928),p=i(13277),m=i(14386),f=i(53869),_=i(54919),v=i(30600),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=Object.create({});let w=n=class extends l.JT{constructor(e,t,i,s){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new l.SL),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new c.t7(this._editor),this._decoratorLimitReporter=new S,this._colorDecorationClassRefs=this._register(new l.SL),this._debounceInformation=s.for(i.colorProvider,"Document Colors",{min:n.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),n=e.hasChanged(147);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new s._F,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,s.PG)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new d.G(!1),n=await(0,_.E)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,r.dL)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.qx.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let s=0;s<e.length&&t.length<i;s++){const{red:i,green:n,blue:r,alpha:a}=e[s].colorInfo.color,l=new o.VS(Math.round(255*i),Math.round(255*n),Math.round(255*r),a),d=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`,c=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:d}));t.push({range:{startLineNumber:e[s].colorInfo.range.startLineNumber,startColumn:e[s].colorInfo.range.startColumn,endLineNumber:e[s].colorInfo.range.endLineNumber,endColumn:e[s].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.B4,inlineClassName:`${c.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:y}}})}const n=i<e.length&&i;this._decoratorLimitReporter.update(e.length,n),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.e.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};w.ID="editor.contrib.colorDetector",w.RECOMPUTE_TIME=1e3,w=n=b([C(1,v.Ui),C(2,f.p),C(3,m.A)],w);class S{constructor(){this._onDidChange=new a.Q5,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u._K)(w.ID,w,1)},61672:(e,t,i)=>{"use strict";i.d(t,{nh:()=>O,PQ:()=>F});var n=i(53372),s=i(76946),o=i(63932),r=i(53186),a=i(28928),l=i(54919),d=i(14900),h=i(39706);class c{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){i=n;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(20796),g=i(76595),p=i(21406),m=i(7341),f=i(61542),_=i(73045),v=(i(32416),i(5887)),b=i(6009),C=i(54329);const y=g.$;class w extends r.JT{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=y(".colorpicker-header"),g.R3(e,this._domNode),this._pickedColorNode=g.R3(this._domNode,y(".picked-color")),g.R3(this._pickedColorNode,y("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.R3(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const s=(0,v.NC)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",s),this._originalColorNode=g.R3(this._domNode,y(".original-color")),this._originalColorNode.style.backgroundColor=o.Il.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(b.yJx)||o.Il.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(b.yJx)||o.Il.white}))),this._register(g.nm(this._pickedColorNode,g.tw.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.nm(this._originalColorNode,g.tw.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=o.Il.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new S(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=o.Il.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class S extends r.JT{constructor(e){super(),this._onClicked=this._register(new h.Q5),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.R3(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.R3(this._button,t);g.R3(t,y(".button"+_.k.asCSSSelector((0,C.q5)("color-picker-close",f.l.close,(0,v.NC)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.nm(this._button,g.tw.CLICK,(()=>{this._onClicked.fire()})))}}class x extends r.JT{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=y(".colorpicker-body"),g.R3(e,this._domNode),this._saturationBox=new L(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new D(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new N(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new E(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange(e){let{s:t,v:i}=e;const n=this.model.color.hsva;this.model.color=new o.Il(new o.tx(n.h,t,i,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new o.Il(new o.tx(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new o.Il(new o.tx(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class L extends r.JT{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,this._domNode=y(".saturation-wrap"),g.R3(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.R3(this._domNode,this._canvas),this.selection=y(".saturation-selection"),g.R3(this._domNode,this.selection),this.layout(),this._register(g.nm(this._domNode,g.tw.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p.C);const t=g.i(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.nm(e.target.ownerDocument,g.tw.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new o.Il(new o.tx(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this._canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=o.Il.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class k extends r.JT{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super(),this.model=t,this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.R3(e,y(".standalone-strip")),this.overlay=g.R3(this.domNode,y(".standalone-overlay"))):(this.domNode=g.R3(e,y(".strip")),this.overlay=g.R3(this.domNode,y(".overlay"))),this.slider=g.R3(this.domNode,y(".slider")),this.slider.style.top="0px",this._register(g.nm(this.domNode,g.tw.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p.C),i=g.i(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const n=g.nm(e.target.ownerDocument,g.tw.POINTER_UP,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class D extends k{constructor(e,t){super(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,s=new o.Il(new o.VS(t,i,n,1)),r=new o.Il(new o.VS(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class N extends k{constructor(e,t){super(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class E extends r.JT{constructor(e){super(),this._onClicked=this._register(new h.Q5),this.onClicked=this._onClicked.event,this._button=g.R3(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.nm(this._button,g.tw.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class T extends m.${constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];super(),this.model=t,this.pixelRatio=i,this._register(u.T.getInstance(g.Jj(e)).onDidChange((()=>this.layout())));const o=y(".colorpicker-widget");e.appendChild(o),this.header=this._register(new w(o,this.model,n,s)),this.body=this._register(new x(o,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}var I=i(46673),M=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let O=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return n.Aq.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const n=d.if.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const e=n.getColorData(s.range.getStartPosition());if(e){return[await B(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){return V(this,this._editor,this._themeService,t,e)}};O=M([A(1,I.XE)],O);class P{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let F=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!d.if.get(this._editor))return null;const n=await(0,l.E)(i,this._editor.getModel(),s.T.None);let o=null,r=null;for(const s of n){const t=s.colorInfo;a.e.containsRange(t.range,e.range)&&(o=t,r=s.provider)}const h=null!==o&&void 0!==o?o:e,c=null!==r&&void 0!==r?r:t,u=!!o;return{colorHover:await B(this,this._editor.getModel(),h,c),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.e(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await H(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return V(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function B(e,t,i,n){const r=t.getValueInRange(i.range),{red:d,green:h,blue:u,alpha:g}=i.color,p=new o.VS(Math.round(255*d),Math.round(255*h),Math.round(255*u),g),m=new o.Il(p),f=await(0,l.R)(t,i,n,s.T.None),_=new c(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,r),e instanceof O?new R(e,a.e.lift(i.range),_,n):new P(e,a.e.lift(i.range),_,n)}function V(e,t,i,n,s){if(0===n.length||!t.hasModel())return r.JT.None;if(s.setMinimumDimensions){const e=t.getOption(67)+8;s.setMinimumDimensions(new g.Ro(302,e))}const o=new r.SL,l=n[0],d=t.getModel(),h=l.model,c=o.add(new T(s.fragment,h,t.getOption(143),i,e instanceof F));s.setColorPicker(c);let u=!1,p=new a.e(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof F){const t=n[0].model.color;e.color=t,H(d,h,t,p,l),o.add(h.onColorFlushed((t=>{e.color=t})))}else o.add(h.onColorFlushed((async e=>{await H(d,h,e,p,l),u=!0,p=W(t,p,h)})));return o.add(h.onDidChangeColor((e=>{H(d,h,e,p,l)}))),o.add(t.onDidChangeModelContent((e=>{u?u=!1:(s.hide(),t.focus())}))),o}function W(e,t,i){var n,s;const o=[],r=null!==(n=i.presentation.textEdit)&&void 0!==n?n:{range:t,text:i.presentation.label,forceMoveMarkers:!1};o.push(r),i.presentation.additionalTextEdits&&o.push(...i.presentation.additionalTextEdits);const l=a.e.lift(r.range),d=e.getModel()._setTrackedRange(null,l,3);return e.executeEdits("colorpicker",o),e.pushUndoStop(),null!==(s=e.getModel()._getTrackedRange(d))&&void 0!==s?s:l}async function H(e,t,i,n,o){const r=await(0,l.R)(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},o.provider,s.T.None);t.colorPresentations=r||[]}F=M([A(1,I.XE)],F)},20161:(e,t,i)=>{"use strict";i.d(t,{G:()=>u});var n=i(63932),s=i(65184),o=i(23058),r=i(5580),a=i(53186),l=i(53869),d=i(26993),h=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,n){t(i,n,e)}};class u{constructor(e,t){this._editorWorkerClient=new s.Q8(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const s=t.range,o=t.color,r=o.alpha,a=new n.Il(new n.VS(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),r)),l=r?n.Il.Format.CSS.formatRGB(a):n.Il.Format.CSS.formatRGBA(a),d=r?n.Il.Format.CSS.formatHSL(a):n.Il.Format.CSS.formatHSLA(a),h=r?n.Il.Format.CSS.formatHex(a):n.Il.Format.CSS.formatHexA(a),c=[];return c.push({label:l,textEdit:{range:s,text:l}}),c.push({label:d,textEdit:{range:s,text:d}}),c.push({label:h,textEdit:{range:s,text:h}}),c}}let g=class extends a.JT{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new u(e,t)))}};g=h([c(0,o.q),c(1,r.c_),c(2,l.p)],g),(0,d.y)(g)},21476:(e,t,i)=>{"use strict";var n,s,o=i(60548),r=i(5887),a=i(53186),l=i(61672),d=i(87775),h=i(48171),c=i(25371),u=i(39706),g=i(53869),p=i(35770),m=i(47116),f=i(23058),_=i(5580),v=i(20161),b=i(76595),C=(i(32416),function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}),y=function(e,t){return function(i,n){t(i,n,e)}};let w=n=class extends a.JT{constructor(e,t,i,n,s,o,r){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=s,this._languageFeatureService=o,this._languageConfigurationService=r,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.u.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.u.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||null===(e=this._standaloneColorPickerWidget)||void 0===e||e.focus():this._standaloneColorPickerWidget=new S(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),null===(e=this._standaloneColorPickerWidget)||void 0===e||e.hide(),this._editor.focus()}insertColor(){var e;null===(e=this._standaloneColorPickerWidget)||void 0===e||e.updateEditor(),this.hide()}static get(e){return e.getContribution(n.ID)}};w.ID="editor.contrib.standaloneColorPickerController",w=n=C([y(1,m.i6),y(2,f.q),y(3,c.d),y(4,d.TG),y(5,g.p),y(6,_.c_)],w),(0,o._K)(w.ID,w,1);let S=s=class extends a.JT{constructor(e,t,i,n,s,o,r,a){var d;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=s,this._keybindingService=o,this._languageFeaturesService=r,this._languageConfigurationService=a,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.Q5),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(l.PQ,this._editor),this._position=null===(d=this._editor._getViewModel())||void 0===d?void 0:d.getPrimaryCursorState().modelState.position;const h=this._editor.getSelection(),c=h?{startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},g=this._register(b.go(this._body));this._register(g.onDidBlur((e=>{this.hide()}))),this._register(g.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{var t;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList;i&&i.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(c),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return s.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new x(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new v.G(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment();let n;const s={fragment:i,statusBar:this._register(new h.mR(this._keybindingService)),setColorPicker:e=>n=e,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),void 0===n)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),n.layout();const o=n.body,r=o.saturationBox.domNode.clientWidth,a=o.domNode.clientWidth-r-22-8,l=n.body.enterButton;null===l||void 0===l||l.onClicked((()=>{this.updateEditor(),this.hide()}));const d=n.header;d.pickedColorNode.style.width=r+8+"px";d.originalColorNode.style.width=a+"px";const c=n.header.closeButton;null===c||void 0===c||c.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S.ID="editor.contrib.standaloneColorPickerWidget",S=s=C([y(3,d.TG),y(4,f.q),y(5,c.d),y(6,g.p),y(7,_.c_)],S);class x{constructor(e,t){this.value=e,this.foundInEditor=t}}var L=i(6178);class k extends o.x1{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,r.vv)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,r.NC)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:L.eH.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=w.get(t))||void 0===i||i.showOrFocus()}}class D extends o.R6{constructor(){super({id:"editor.action.hideColorPicker",label:(0,r.NC)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.u.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var i;null===(i=w.get(t))||void 0===i||i.hide()}}class N extends o.R6{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,r.NC)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.u.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var i;null===(i=w.get(t))||void 0===i||i.insertColor()}}(0,o.Qr)(D),(0,o.Qr)(N),(0,L.r1)(k)},61778:(e,t,i)=>{"use strict";var n=i(17344),s=i(60548),o=i(28928),r=i(35770),a=i(5580),l=i(56154),d=i(74633),h=i(24854);class c{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length;if(i+n>e.length)return!1;for(let s=0;s<n;s++){const n=e.charCodeAt(i+s),o=t.charCodeAt(s);if(n!==o&&(!(n>=65&&n<=90&&n+32===o)&&!(o>=65&&o<=90&&o+32===n)))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,h=e.endColumn,u=s.getLineContent(a),g=s.getLineContent(d);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===d){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),n=g.substring(0,f);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(n&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),n&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=c._createRemoveBlockCommentOperations(new o.e(a,m+t.length+1,d,f+1),t,i)):(p=c._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const o of p)r.addTrackedEditOperation(o.range,o.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return o.e.isEmpty(e)?n.push(l.h.delete(new o.e(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(l.h.delete(new o.e(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(l.h.delete(new o.e(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return o.e.isEmpty(e)?s.push(l.h.replace(new o.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(l.h.insert(new d.L(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(l.h.insert(new d.L(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),o=this.languageConfigurationService.getLanguageConfiguration(s).comments;o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.Y(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.Y(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(78701);class g{constructor(e,t,i,n,s,o,r){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=o,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),o=n.getLanguageConfiguration(s).comments,r=o?o.lineCommentToken:null;if(!r)return null;const a=[];for(let l=0,d=i-t+1;l<d;l++)a[l]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return a}static _analyzeLines(e,t,i,n,s,o,r,a){let l,d=!0;l=0===e||1!==e;for(let h=0,g=n.length;h<g;h++){const a=n[h],g=s+h;if(g===s&&r){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.LC(p);if(-1!==m){if(d=!1,a.ignore=!1,a.commentStrOffset=m,l&&!c._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?l=!1:1===e||(a.ignore=!0)),l&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=o,a.commentStrOffset=p.length}if(0===e&&d){l=!1;for(let e=0,t=n.length;e<t;e++)n[e].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:n}}static _gatherPreflightData(e,t,i,n,s,o,r,a){const l=g._gatherPreflightCommentStrings(i,n,s,a);return null===l?{supported:!1}:g._analyzeLines(e,t,i,l,n,o,r,a)}_executeLineComments(e,t,i,n){let s;i.shouldRemoveComments?s=g._createRemoveLineCommentsOperations(i.lines,n.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,n.startLineNumber,this._indentSize),s=this._createAddLineCommentsOperations(i.lines,n.startLineNumber));const r=new d.L(n.positionLineNumber,n.positionColumn);for(let a=0,l=s.length;a<l;a++)if(t.addEditOperation(s[a].range,s[a].text),o.e.isEmpty(s[a].range)&&o.e.getStartPosition(s[a].range).equals(r)){e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(s[a].text||"").length)}this._selectionId=t.trackSelection(n)}_attemptRemoveBlockComment(e,t,i,n){let s=t.startLineNumber,r=t.endLineNumber;const a=n.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let l=e.getLineContent(s).lastIndexOf(i,a-1),d=e.getLineContent(r).indexOf(n,t.endColumn-1-i.length);return-1!==l&&-1===d&&(d=e.getLineContent(s).indexOf(n,l+i.length),r=s),-1===l&&-1!==d&&(l=e.getLineContent(r).lastIndexOf(i,d),s=r),!t.isEmpty()||-1!==l&&-1!==d||(l=e.getLineContent(s).indexOf(i),-1!==l&&(d=e.getLineContent(s).indexOf(n,l+i.length))),-1!==l&&32===e.getLineContent(s).charCodeAt(l+i.length)&&(i+=" "),-1!==d&&32===e.getLineContent(r).charCodeAt(d-1)&&(n=" "+n,d-=1),-1!==l&&-1!==d?c._createRemoveBlockCommentOperations(new o.e(s,l+i.length+1,r,d+1),i,n):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const n=e.getLanguageIdAtPosition(i.startLineNumber,1),s=this.languageConfigurationService.getLanguageConfiguration(n).comments;if(!s||!s.blockCommentStartToken||!s.blockCommentEndToken)return;const r=s.blockCommentStartToken,a=s.blockCommentEndToken;let l=this._attemptRemoveBlockComment(e,i,r,a);if(!l){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let n=u.LC(t);-1===n&&(n=t.length),l=c._createAddBlockCommentOperations(new o.e(i.startLineNumber,n+1,i.startLineNumber,t.length+1),r,a,this._insertSpace)}else l=c._createAddBlockCommentOperations(new o.e(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),r,a,this._insertSpace);1===l.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(i);for(const o of l)t.addEditOperation(o.range,o.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new o.e(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return n.supported?this._executeLineComments(e,t,n,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.Y(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];s.ignore||i.push(l.h.delete(new o.e(t+n,s.commentStrOffset+1,t+n,s.commentStrOffset+s.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],n=this._insertSpace?" ":"";for(let s=0,o=e.length;s<o;s++){const o=e[s];o.ignore||i.push(l.h.insert(new d.L(t+s,o.commentStrOffset+1),o.commentStr+n))}return i}static nextVisibleColumn(e,t,i,n){return i?e+(t-e%t):e+n}static _normalizeInsertionPoint(e,t,i,n){let s,o,r=1073741824;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const s=e.getLineContent(i+a);let o=0;for(let e=0,i=t[a].commentStrOffset;o<r&&e<i;e++)o=g.nextVisibleColumn(o,n,9===s.charCodeAt(e),1);o<r&&(r=o)}r=Math.floor(r/n)*n;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(i+a);let d=0;for(s=0,o=t[a].commentStrOffset;d<r&&s<o;s++)d=g.nextVisibleColumn(d,n,9===l.charCodeAt(s),1);t[a].commentStrOffset=d>r?s-1:s}}}var p=i(5887),m=i(6178);class f extends s.R6{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.c_);if(!t.hasModel())return;const n=[],s=t.getModel().getOptions(),r=t.getOption(23),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>o.e.compareRangesUsingStarts(e.selection,t.selection)));let d=l[0];for(let o=1;o<l.length;o++){const e=l[o];d.selection.endLineNumber===e.selection.startLineNumber&&(d.index<e.index?e.ignoreFirstLine=!0:(d.ignoreFirstLine=!0,d=e))}for(const o of l)n.push(new g(i,o.selection,s.indentSize,this._type,r.insertSpace,r.ignoreEmptyLines,o.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class _ extends s.R6{constructor(){super({id:"editor.action.blockComment",label:p.NC("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.eH.MenubarEditMenu,group:"5_insert",title:p.NC({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.c_);if(!t.hasModel())return;const n=t.getOption(23),s=[],o=t.getSelections();for(const r of o)s.push(new c(r,n.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}(0,s.Qr)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.NC("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.eH.MenubarEditMenu,group:"5_insert",title:p.NC({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,s.Qr)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.NC("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:(0,n.gx)(2089,2081),weight:100}})}}),(0,s.Qr)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.NC("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:r.u.writable,kbOpts:{kbExpr:r.u.editorTextFocus,primary:(0,n.gx)(2089,2099),weight:100}})}}),(0,s.Qr)(_)},8295:(e,t,i)=>{"use strict";var n,s=i(76595),o=i(26031),r=i(51828),a=i(53186),l=i(90388),d=i(60548),h=i(35770),c=i(5887),u=i(6178),g=i(47116),p=i(79086),m=i(25371),f=i(30600),_=i(99818),v=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};let C=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,o,r,l,d){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=o,this._menuService=r,this._configurationService=l,this._workspaceContextService=d,this._toDispose=new a.SL,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&s.Ay(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?u.eH.SimpleEditorContext:u.eH.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const o of s){const[,t]=o;let n=0;for(const s of t)if(s instanceof u.NZ){const t=this._getMenuActions(e,s.item.submenu);t.length>0&&(i.push(new r.wY(s.id,s.label,t)),n++)}else i.push(s),n++;n&&i.push(new r.Z0)}return i.length&&i.pop(),i}_doShowContextMenu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=s.i(this._editor.getDomNode()),i=t.left+e.left,o=t.top+e.top+e.height;n={x:i,y:o}}const r=this._editor.getOption(127)&&!l.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new o.gU(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new o.gU(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.x)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const n=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),s=(e,t,s,o,a)=>{if(!t)return n({label:e,enabled:t,run:()=>{}});const l=e=>()=>{this._configurationService.updateValue(s,e)},d=[];for(const i of a)d.push(n({label:i.label,checked:o===i.value,run:l(i.value)}));return((e,t)=>new r.wY("menu-action-"+ ++i,e,t,void 0))(e,d)},o=[];o.push(n({label:c.NC("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),o.push(new r.Z0),o.push(n({label:c.NC("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),o.push(s(c.NC("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:c.NC("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:c.NC("context.minimap.size.fill","Fill"),value:"fill"},{label:c.NC("context.minimap.size.fit","Fit"),value:"fit"}])),o.push(s(c.NC("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:c.NC("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:c.NC("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(127)&&!l.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>o,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};C.ID="editor.contrib.contextmenu",C=n=v([b(1,p.i),b(2,p.u),b(3,g.i6),b(4,m.d),b(5,u.co),b(6,f.Ui),b(7,_.ec)],C);class y extends d.R6{constructor(){super({id:"editor.action.showContextMenu",label:c.NC("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.u.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=C.get(t))||void 0===i||i.showContextMenu()}}(0,d._K)(C.ID,C,2),(0,d.Qr)(y)},63950:(e,t,i)=>{"use strict";var n=i(53186),s=i(60548),o=i(35770),r=i(5887);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class l{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class d extends n.JT{static get(e){return e.getContribution(d.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new l(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}d.ID="editor.contrib.cursorUndoRedoController";class h extends s.R6{constructor(){super({id:"cursorUndo",label:r.NC("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:o.u.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorUndo()}}class c extends s.R6{constructor(){super({id:"cursorRedo",label:r.NC("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorRedo()}}(0,s._K)(d.ID,d,0),(0,s.Qr)(h),(0,s.Qr)(c)},1377:(e,t,i)=>{"use strict";var n=i(51833),s=i(43704),o=i(20289),r=i(36348),a=i(53869),l=i(9895),d=i(53186),h=i(39706),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends d.JT{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,s.uh)(this,void 0);const n=(0,s.aq)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),o=(0,s.aq)("_textModel.onDidChangeContent",h.ju.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,s.gp)((async(e,t)=>{n.read(e),o.read(e);const i=t.add(new r.t2),s=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(s,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const s=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return s.sort((0,n.BV)((0,n.tT)((e=>e.range.endLineNumber-e.range.startLineNumber),n.fv))),s.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=c([u(1,a.p),u(2,l.Je)],g),o.O.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},44870:(e,t,i)=>{"use strict";var n=i(53186),s=i(90388),o=i(60548),r=i(74633),a=i(28928),l=i(24854),d=i(13277);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.e(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function c(e){return s.dz?e.altKey:e.ctrlKey}class u extends n.JT{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(c(e)&&(this._modifierPressed=!0),this._mouseDown&&c(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(c(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}c(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new r.L(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:s}=e;i=[new l.Y(n,s,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new l.Y(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(c(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,c(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new a.e(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}u.ID="editor.contrib.dragAndDrop",u.TRIGGER_KEY_VALUE=s.dz?6:5,u._DECORATION_OPTIONS=d.qx.register({description:"dnd-target",className:"dnd-target"}),(0,o._K)(u.ID,u,2)},61522:(e,t,i)=>{"use strict";var n=i(76946),s=i(47624),o=i(91387),r=i(43537),a=i(9895);i(94943).P.registerCommand("_executeDocumentSymbolProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),l=1;l<t;l++)i[l-1]=arguments[l];const[d]=i;(0,s.p_)(o.o.isUri(d));const h=e.get(a.Je),c=e.get(r.S),u=await c.createModelReference(d);try{return(await h.getOrCreate(u.object.textEditorModel,n.T.None)).getTopLevelSymbols()}finally{u.dispose()}}))},9895:(e,t,i)=>{"use strict";i.d(t,{C3:()=>y,H3:()=>C,Je:()=>w,sT:()=>b});var n=i(51833),s=i(76946),o=i(16015),r=i(2706),a=i(38079),l=i(74633),d=i(28928),h=i(14386),c=i(87775),u=i(23026),g=i(23058),p=i(53186),m=i(53869),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};class v{remove(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let s=0;void 0!==t.children.get(n);s++)n=`${i}_${s}`;return n}static empty(e){return 0===e.children.size}}class b extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class C extends v{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class y extends v{static create(e,t,i){const r=new s.A(i),a=new y(t.uri),l=e.ordered(t),d=l.map(((e,i)=>{var n;const s=v.findId(`provider_${i}`,a),l=new C(s,a,null!==(n=e.displayName)&&void 0!==n?n:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,r.token)).then((e=>{for(const t of e||[])y._makeOutlineElement(t,l);return l}),(e=>((0,o.Cp)(e),l))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,n.fS)(i,l)||r.cancel()}));return Promise.all(d).then((()=>r.token.isCancellationRequested&&!i.isCancellationRequested?y.create(e,t,i):a._compact())).finally((()=>{r.dispose(),h.dispose(),r.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),n=new b(i,t,e);if(e.children)for(const s of e.children)y._makeOutlineElement(s,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=r.$.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof b?e.push(t.symbol):e.push(...r.$.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>d.e.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return y._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.L.compare(d.e.getStartPosition(e.range),d.e.getStartPosition(t.range))||l.L.compare(d.e.getEndPosition(t.range),d.e.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&y._flattenDocumentSymbols(e,n.children,n.name)}}const w=(0,c.yh)("IOutlineModelService");let S=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.SL,this._cache=new a.z6(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,o=i.ordered(e);let r=this._cache.get(e.id);if(!r||r.versionId!==e.getVersionId()||!(0,n.fS)(r.provider,o)){const t=new s.A;r={versionId:e.getVersionId(),provider:o,promiseCnt:0,source:t,promise:y.create(i,e,t.token),model:void 0},this._cache.set(e.id,r);const n=Date.now();r.promise.then((t=>{r.model=t,this._debounceInformation.update(e,Date.now()-n)})).catch((t=>{this._cache.delete(e.id)}))}if(r.model)return r.model;r.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--r.promiseCnt&&(r.source.cancel(),this._cache.delete(e.id))}));try{return await r.promise}finally{a.dispose()}}};S=f([_(0,m.p),_(1,h.A),_(2,g.q)],S),(0,u.z)(w,S,1)},66953:(e,t,i)=>{"use strict";var n,s=i(34277),o=i(60548),r=i(35770),a=i(26993),l=i(21981),d=i(51916),h=i(5887);(0,o._K)(l.bO.ID,l.bO,0),(0,a.y)(d.vJ),(0,o.fK)(new class extends o._l{constructor(){super({id:l.iE,precondition:l.wS,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){var i;return null===(i=l.bO.get(t))||void 0===i?void 0:i.changePasteType()}}),(0,o.fK)(new class extends o._l{constructor(){super({id:"editor.hidePasteWidget",precondition:l.wS,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){var i;null===(i=l.bO.get(t))||void 0===i||i.clearWidgets()}}),(0,o.Qr)(((n=class extends o.R6{constructor(){super({id:"editor.action.pasteAs",label:h.NC("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.u.writable,metadata:{description:"Paste as",args:[{name:"args",schema:n.argsSchema}]}})}run(e,t,i){var n;let o="string"===typeof(null===i||void 0===i?void 0:i.kind)?i.kind:void 0;return!o&&i&&(o="string"===typeof i.id?i.id:void 0),null===(n=l.bO.get(t))||void 0===n?void 0:n.pasteAs(o?new s.o(o):void 0)}}).argsSchema={type:"object",properties:{kind:{type:"string",description:h.NC("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},n)),(0,o.Qr)(class extends o.R6{constructor(){super({id:"editor.action.pasteAsText",label:h.NC("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.u.writable})}run(e,t){var i;return null===(i=l.bO.get(t))||void 0===i?void 0:i.pasteAs({providerId:d.f8.id})}})},21981:(e,t,i)=>{"use strict";i.d(t,{bO:()=>P,iE:()=>A,wS:()=>R});var n,s=i(76595),o=i(51833),r=i(53372),a=i(44609),l=i(34277),d=i(53186),h=i(90255),c=i(90388),u=i(94913),g=i(90356),p=i(32613),m=i(80427),f=i(28928),_=i(18841),v=i(53869),b=i(51916),C=i(73472),y=i(8037),w=i(54829),S=i(10843),x=i(5887),L=i(63826),k=i(47116),D=i(87775),N=i(97757),E=i(2033),T=i(97818),I=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const A="editor.changePasteType",R=new k.uy("pasteWidgetVisible",!1,(0,x.NC)("pasteWidgetVisible","Whether the paste widget is showing")),O="application/vnd.code.copyMetadata";let P=n=class extends d.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,o,r,a){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=r,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register((0,s.nm)(l,"copy",(e=>this.handleCopy(e)))),this._register((0,s.nm)(l,"cut",(e=>this.handleCopy(e)))),this._register((0,s.nm)(l,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new w.r("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(T.p,"pasteIntoEditor",e,R,{id:A,label:(0,x.NC)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,s.uP)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus())return;if(c.$L&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled())return;const s=this._editor.getModel(),a=this._editor.getSelections();if(!s||!(null===a||void 0===a?void 0:a.length))return;const l=this._editor.getOption(37);let d=a;const h=1===a.length&&a[0].isEmpty();if(h){if(!l)return;d=[new f.e(d[0].startLineNumber,1,d[0].startLineNumber,1+s.getLineLength(d[0].startLineNumber))]}const g=null===(t=this._editor._getViewModel())||void 0===t?void 0:t.getPlainTextToCopy(a,l,c.ED),m={multicursorText:Array.isArray(g)?g:null,pasteOnNewLine:h,mode:null},_=this._languageFeaturesService.documentPasteEditProvider.ordered(s).filter((e=>!!e.prepareDocumentPaste));if(!_.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:m});const v=(0,p.B)(e.clipboardData),b=_.flatMap((e=>{var t;return null!==(t=e.copyMimeTypes)&&void 0!==t?t:[]})),C=(0,u.R)();this.setCopyMetadata(e.clipboardData,{id:C,providerCopyMimeTypes:b,defaultPastePayload:m});const y=(0,r.PG)((async e=>{const t=(0,o.kX)(await Promise.all(_.map((async t=>{try{return await t.prepareDocumentPaste(s,d,v,e)}catch(i){return void console.error(i)}}))));t.reverse();for(const i of t)for(const[e,t]of i)v.replace(e,t);return v}));null===(i=n._currentCopyOperation)||void 0===i||i.dataTransferPromise.cancel(),n._currentCopyOperation={handle:C,dataTransferPromise:y}}async handlePaste(e){var t,i,n,s;if(!e.clipboardData||!this._editor.hasTextFocus())return;null===(t=S.O.get(this._editor))||void 0===t||t.closeMessage(),null===(i=this._currentPasteOperation)||void 0===i||i.cancel(),this._currentPasteOperation=void 0;const o=this._editor.getModel(),r=this._editor.getSelections();if(!(null===r||void 0===r?void 0:r.length)||!o)return;if(!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const l=this.fetchCopyMetadata(e),d=(0,p.L)(e.clipboardData);d.delete(O);const c=[...e.clipboardData.types,...null!==(n=null===l||void 0===l?void 0:l.providerCopyMimeTypes)&&void 0!==n?n:[],h.v.uriList],u=this._languageFeaturesService.documentPasteEditProvider.ordered(o).filter((e=>{var t,i;const n=null===(t=this._pasteAsActionContext)||void 0===t?void 0:t.preferred;return!(n&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,n))&&(null===(i=e.pasteMimeTypes)||void 0===i?void 0:i.some((e=>(0,a.SN)(e,c))))}));u.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,u,r,d,l):this.doPasteInline(u,r,d,l,e)):(null===(s=this._pasteAsActionContext)||void 0===s?void 0:s.preferred)&&this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){var i;null===(i=S.O.get(this._editor))||void 0===i||i.showMessage((0,x.NC)("pasteAsError","No paste edits for '{0}' found",t instanceof l.o?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,s){const o=(0,r.PG)((async r=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),d=new y.Dl(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(i,n,d.token),d.token.isCancellationRequested)return;const o=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!o.length||1===o.length&&o[0]instanceof b.f8)return this.applyDefaultPasteHandler(i,n,d.token,s);const r={triggerKind:_.Nq.Automatic},h=await this.getPasteEdits(o,i,l,t,r,d.token);if(d.token.isCancellationRequested)return;if(1===h.length&&h[0].provider instanceof b.f8)return this.applyDefaultPasteHandler(i,n,d.token,s);if(h.length){const e="afterPaste"===a.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:h},e,(async(e,t)=>{var i,n;const s=await(null===(n=(i=e.provider).resolveDocumentPasteEdit)||void 0===n?void 0:n.call(i,e,t));return s&&(e.additionalEdit=s.additionalEdit),e}),d.token)}await this.applyDefaultPasteHandler(i,n,d.token,s)}finally{d.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,x.NC)("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,i,n,s){const o=(0,r.PG)((async r=>{const a=this._editor;if(!a.hasModel())return;const d=a.getModel(),h=new y.Dl(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(n,s,h.token),h.token.isCancellationRequested)return;let o=t.filter((t=>this.isSupportedPasteProvider(t,n,e)));e&&(o=o.filter((t=>this.providerMatchesPreference(t,e))));const r={triggerKind:_.Nq.PasteAs,only:e&&e instanceof l.o?e:void 0};let a,c=await this.getPasteEdits(o,n,d,i,r,h.token);if(h.token.isCancellationRequested)return;if(e&&(c=c.filter((t=>e instanceof l.o?e.contains(t.kind):e.providerId===t.provider.id))),!c.length)return void(r.only&&this.showPasteAsNoEditMessage(i,r.only));if(e)a=c.at(0);else{const e=await this._quickInputService.pick(c.map((e=>{var t;return{label:e.title,description:null===(t=e.kind)||void 0===t?void 0:t.value,edit:e}})),{placeHolder:(0,x.NC)("pasteAsPickerPlaceholder","Select Paste Action")});a=null===e||void 0===e?void 0:e.edit}if(!a)return;const u=(0,C.n)(d.uri,i,a);await this._bulkEditService.apply(u,{editor:this._editor})}finally{h.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,x.NC)("pasteAsProgress","Running paste handlers")},(()=>o))}setCopyMetadata(e,t){e.setData(O,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(O);if(i)try{return JSON.parse(i)}catch(o){return}const[n,s]=g.b6.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:null!==(t=s.multicursorText)&&void 0!==t?t:null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){var s;if((null===t||void 0===t?void 0:t.id)&&(null===(s=n._currentCopyOperation)||void 0===s?void 0:s.handle)===t.id){const t=await n._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,n]of t)e.replace(i,n)}if(!e.has(h.v.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(h.v.uriList,(0,a.ZO)(a.Z0.create(t)))}}async getPasteEdits(e,t,i,n,s,a){const l=await(0,r.eP)(Promise.all(e.map((async e=>{var o,r;try{const l=await(null===(o=e.provideDocumentPasteEdits)||void 0===o?void 0:o.call(e,i,n,t,s,a));return null===(r=null===l||void 0===l?void 0:l.edits)||void 0===r?void 0:r.map((t=>({...t,provider:e})))}catch(l){console.error(l)}}))),a),d=(0,o.kX)(null!==l&&void 0!==l?l:[]).flat().filter((e=>!s.only||s.only.contains(e.kind)));return(0,C.C)(d)}async applyDefaultPasteHandler(e,t,i,n){var s,o,r,a;const l=null!==(s=e.get(h.v.text))&&void 0!==s?s:e.get("text"),d=null!==(o=await(null===l||void 0===l?void 0:l.asString()))&&void 0!==o?o:"";if(i.isCancellationRequested)return;const c={clipboardEvent:n,text:d,pasteOnNewLine:null!==(r=null===t||void 0===t?void 0:t.defaultPastePayload.pasteOnNewLine)&&void 0!==r&&r,multicursorText:null!==(a=null===t||void 0===t?void 0:t.defaultPastePayload.multicursorText)&&void 0!==a?a:null,mode:null};this._editor.trigger("keyboard","paste",c)}isSupportedPasteProvider(e,t,i){var n;return!!(null===(n=e.pasteMimeTypes)||void 0===n?void 0:n.some((e=>t.matches(e))))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.o?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};P.ID="editor.contrib.copyPasteActionController",P=n=I([M(1,D.TG),M(2,m.vu),M(3,L.p),M(4,v.p),M(5,E.eJ),M(6,N.R9)],P)},51916:(e,t,i)=>{"use strict";i.d(t,{P4:()=>S,f8:()=>v,vJ:()=>x});var n=i(51833),s=i(44609),o=i(34277),r=i(53186),a=i(90255),l=i(32060),d=i(30506),h=i(91387),c=i(18841),u=i(53869),g=i(5887),p=i(99818),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};class _{async provideDocumentPasteEdits(e,t,i,n,s){const o=await this.getEdit(i,s);if(o)return{dispose(){},edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}]}}async provideDocumentOnDropEdits(e,t,i,n){const s=await this.getEdit(i,n);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.v.text],this.pasteMimeTypes=[a.v.text]}async getEdit(e,t){const i=e.get(a.v.text);if(!i)return;if(e.has(a.v.uriList))return;const n=await i.asString();return{handledMimeType:a.v.text,title:(0,g.NC)("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}v.id="text",v.kind=new o.o("text.plain");class b extends _{constructor(){super(...arguments),this.kind=new o.o("uri.absolute"),this.dropMimeTypes=[a.v.uriList],this.pasteMimeTypes=[a.v.uriList]}async getEdit(e,t){const i=await w(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map((e=>{let{uri:t,originalText:i}=e;return t.scheme===l.lg.file?t.fsPath:(n++,i)})).join(" ");let o;return o=n>0?i.length>1?(0,g.NC)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.NC)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.NC)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.NC)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.v.uriList,insertText:s,title:o,kind:this.kind}}}let C=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new o.o("uri.relative"),this.dropMimeTypes=[a.v.uriList],this.pasteMimeTypes=[a.v.uriList]}async getEdit(e,t){const i=await w(e);if(!i.length||t.isCancellationRequested)return;const s=(0,n.kX)(i.map((e=>{let{uri:t}=e;const i=this._workspaceContextService.getWorkspaceFolder(t);return i?(0,d.lX)(i.uri,t):void 0})));return s.length?{handledMimeType:a.v.uriList,insertText:s.join(" "),title:i.length>1?(0,g.NC)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.NC)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};C=m([f(0,p.ec)],C);class y{constructor(){this.kind=new o.o("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.v.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var o;if(n.triggerKind!==c.Nq.PasteAs&&!(null===(o=n.only)||void 0===o?void 0:o.contains(this.kind)))return;const r=i.get("text/html"),a=await(null===r||void 0===r?void 0:r.asString());return a&&!s.isCancellationRequested?{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:(0,g.NC)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function w(e){const t=e.get(a.v.uriList);if(!t)return[];const i=await t.asString(),n=[];for(const r of s.Z0.parse(i))try{n.push({uri:h.o.parse(r),originalText:r})}catch(o){}return n}let S=class extends r.JT{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new v)),this._register(e.documentOnDropEditProvider.register("*",new b)),this._register(e.documentOnDropEditProvider.register("*",new C(t)))}};S=m([f(0,u.p),f(1,p.ec)],S);let x=class extends r.JT{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new b)),this._register(e.documentPasteEditProvider.register("*",new C(t))),this._register(e.documentPasteEditProvider.register("*",new y))}};x=m([f(0,u.p),f(1,p.ec)],x)},17987:(e,t,i)=>{"use strict";var n=i(60548),s=i(50142),o=i(26993),r=i(51916),a=i(5887),l=i(49817),d=i(76322),h=i(51833),c=i(53372),u=i(44609),g=i(34277),p=i(53186),m=i(32613),f=i(28928),_=i(53869);class v{constructor(e){this.identifier=e}}var b=i(23026),C=i(87775);const y=(0,C.yh)("treeViewsDndService");(0,b.z)(y,class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},1);var w,S=i(8037),x=i(54829),L=i(30600),k=i(47116),D=i(90601),N=i(73472),E=i(97818),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};const M="editor.experimental.dropIntoEditor.defaultProvider",A="editor.changeDropType",R=new k.uy("dropWidgetVisible",!1,(0,a.NC)("dropWidgetVisible","Whether the drop widget is showing"));let O=w=class extends p.JT{static get(e){return e.getContribution(w.ID)}constructor(e,t,i,n,s){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=D.Ej.getInstance(),this._dropProgressManager=this._register(t.createInstance(x.r,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(E.p,"dropIntoEditor",e,R,{id:A,label:(0,a.NC)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;null===(n=this._currentOperation)||void 0===n||n.cancel(),e.focus(),e.setPosition(t);const s=(0,c.PG)((async n=>{const o=new S.Dl(e,1,void 0,n);try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const r=e.getModel();if(!r)return;const a=this._languageFeaturesService.documentOnDropEditProvider.ordered(r).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=await this.getDropEdits(a,r,t,s,o);if(o.token.isCancellationRequested)return;if(l.length){const i=this.getInitialActiveEditIndex(r,l),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([f.e.fromPositions(t)],{activeEditIndex:i,allEdits:l},s,(async e=>e),n)}}finally{o.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,a.NC)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s),this._currentOperation=s}async getDropEdits(e,t,i,n,s){const o=await(0,c.eP)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentOnDropEdits(t,i,n,s.token);return null===o||void 0===o?void 0:o.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),s.token),r=(0,h.kX)(null!==o&&void 0!==o?o:[]).flat();return(0,N.C)(r)}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(M,{resource:e.uri});for(const[n,s]of Object.entries(i)){const e=new g.o(s),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,u.SN)(n,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new u.Hl;const t=(0,m.L)(e.dataTransfer);if(this.treeItemsTransfer.hasData(v.prototype)){const e=this.treeItemsTransfer.getData(v.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,n]of e)t.replace(i,n)}}return t}};O.ID="editor.contrib.dropIntoEditorController",O=w=T([I(1,C.TG),I(2,L.Ui),I(3,_.p),I(4,y)],O),(0,n._K)(O.ID,O,2),(0,o.y)(r.P4),(0,n.fK)(new class extends n._l{constructor(){super({id:A,precondition:R,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){var n;null===(n=O.get(t))||void 0===n||n.changeDropType()}}),(0,n.fK)(new class extends n._l{constructor(){super({id:"editor.hideDropWidget",precondition:R,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){var n;null===(n=O.get(t))||void 0===n||n.clearWidgets()}}),d.B.as(l.IP.Configuration).registerConfiguration({...s.wk,properties:{[M]:{type:"object",scope:5,description:a.NC("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},73472:(e,t,i)=>{"use strict";i.d(t,{C:()=>r,n:()=>o});var n=i(80427),s=i(86532);function o(e,t,i){var o,r,a,l;return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(r=null===(o=i.additionalEdit)||void 0===o?void 0:o.edits)&&void 0!==r?r:[]}:{edits:[...t.map((t=>new n.Gl(e,{range:t,text:"string"===typeof i.insertText?s.Yj.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...null!==(l=null===(a=i.additionalEdit)||void 0===a?void 0:a.edits)&&void 0!==l?l:[]]}}function r(e){var t;function i(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const n=new Map;for(const r of e)for(const s of null!==(t=r.yieldTo)&&void 0!==t?t:[])for(const t of e)if(t!==r&&i(s,t)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(t)}if(!n.size)return Array.from(e);const s=new Set,o=[];return function e(t){if(!t.length)return[];const i=t[0];if(o.includes(i))return console.warn("Yield to cycle detected",i),t;if(s.has(i))return e(t.slice(1));let r=[];const a=n.get(i);return a&&(o.push(i),r=e(a),o.pop()),s.add(i),[...r,i,...e(t.slice(1))]}(Array.from(e))}},97818:(e,t,i)=>{"use strict";i.d(t,{p:()=>v});var n,s=i(76595),o=i(33013),r=i(51828),a=i(39706),l=i(53186),d=i(80427),h=i(73472),c=i(47116),u=i(79086),g=i(87775),p=i(25371),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=n=class extends l.JT{constructor(e,t,i,n,s,o,r,d,h,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=o,this.onSelectNewEdit=r,this._contextMenuService=d,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(h),this.visibleContext.set(!0),this._register((0,l.OF)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,l.OF)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{s.containsPosition(e.position)||this.dispose()}))),this._register(a.ju.runAndSubscribe(c.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){var e;const t=null===(e=this._keybindingService.lookupKeybinding(this.showCommand.id))||void 0===e?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=s.$(".post-edit-widget"),this.button=this._register(new o.z(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(s.nm(this.domNode,s.tw.CLICK,(()=>this.showSelector())))}getId(){return n.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=s.i(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,r.xw)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};_.baseId="editor.widget.postEditWidget",_=n=m([f(7,u.i),f(8,c.i6),f(9,p.d)],_);let v=class extends l.JT{constructor(e,t,i,n,s,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=o,this._currentWidget=this._register(new l.XK),this._register(a.ju.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,n,s){const o=this._editor.getModel();if(!o||!e.length)return;const r=t.allEdits.at(t.activeEditIndex);if(!r)return;const a=await n(r,s),l=(0,h.n)(o.uri,e,a),d=e[0],c=o.deltaDecorations([],[{range:d,options:{description:"paste-line-suffix",stickiness:0}}]);let u,g;try{u=await this._bulkEditService.apply(l,{editor:this._editor,token:s}),g=o.getDecorationRange(c[0])}finally{o.deltaDecorations(c,[])}i&&u.isApplied&&t.allEdits.length>1&&this.show(null!==g&&void 0!==g?g:d,t,(async o=>{const r=this._editor.getModel();r&&(await r.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:o,allEdits:t.allEdits},i,n,s))}))}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(_,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showSelector()}};v=m([f(4,g.TG),f(5,d.vu)],v)},8037:(e,t,i)=>{"use strict";i.d(t,{yy:()=>f,Dl:()=>_,YQ:()=>v});var n=i(78701),s=i(28928),o=i(76946),r=i(53186),a=i(60548),l=i(47116),d=i(64450),h=i(87775),c=i(23026),u=i(5887);const g=(0,h.yh)("IEditorCancelService"),p=new l.uy("cancellableOperation",!1,(0,u.NC)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,c.z)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.i6)),tokens:new d.S}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends o.A{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.fK)(new class extends a._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?n.WU("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.SL,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&s.e.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&s.e.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends o.A{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},45713:(e,t,i)=>{"use strict";i.d(t,{pR:()=>ft});var n=i(53372),s=i(53186),o=i(78701),r=i(60548),a=i(12354),l=i(35770),d=i(24032),h=i(91206),c=i(2196),u=i(74633),g=i(28928),p=i(24854),m=i(39471),f=i(13277),_=i(6009),v=i(46673);class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===b._FIND_MATCH_DECORATION||e===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n<s;n++){const s=this._editor.getModel().getDecorationRange(this._decorations[n]);if(e.equalsRange(s)){t=this._decorations[n],i=n+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.e(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let n=b._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,o=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let n=1,l=e.length;n<l;n++){const t=e[n].range;a+o>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(s.push({range:new g.e(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=t.startLineNumber,a=t.endLineNumber)}s.push({range:new g.e(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const o=new Array(e.length);for(let t=0,r=e.length;t<r;t++)o[t]={range:e[t].range,options:n};this._decorations=i.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,s),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),(null===t||void 0===t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,b._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.endLineNumber>e.lineNumber)){if(n.endLineNumber<e.lineNumber)return n;if(!(n.endColumn>e.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.startLineNumber<e.lineNumber)){if(n.startLineNumber>e.lineNumber)return n;if(!(n.startColumn<e.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}b._CURRENT_FIND_MATCH_DECORATION=f.qx.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,v.EN)(_.Fm_),position:d.sh.Center},minimap:{color:(0,v.EN)(_.SUY),position:1}}),b._FIND_MATCH_DECORATION=f.qx.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,v.EN)(_.Fm_),position:d.sh.Center},minimap:{color:(0,v.EN)(_.SUY),position:1}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=f.qx.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.qx.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.EN)(_.Fm_),position:d.sh.Center}}),b._RANGE_HIGHLIGHT_DECORATION=f.qx.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=f.qx.register({description:"find-scope",className:"findScope",isWholeLine:!0});class C{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.e.compareRangesUsingStarts(e.range,t.range)));const i=[];let n=e[0];for(let t=1;t<e.length;t++)n.range.endLineNumber===e[t].range.startLineNumber&&n.range.endColumn===e[t].range.startColumn?(n.range=n.range.plusRange(e[t].range),n.text=n.text+e[t].text):(i.push(n),n=e[t]);i.push(n);for(const s of i)t.addEditOperation(s.range,s.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function y(e,t){if(e&&""!==e[0]){const i=w(e,t,"-"),n=w(e,t,"_");return i&&!n?S(e,t,"-"):!i&&n?S(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():o.Kw(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function w(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function S(e,t,i){const n=t.split(i),s=e[0].split(i);let o="";return n.forEach(((e,t)=>{o+=y([s[t]],e)+i})),o.slice(0,-1)}class x{constructor(e){this.staticValue=e,this.kind=0}}class L{constructor(e){this.pieces=e,this.kind=1}}class k{static fromStaticValue(e){return new k([D.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new x(e[0].staticValue):this._state=new L(e):this._state=new x("")}buildReplaceString(e,t){if(0===this._state.kind)return t?y(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n<s;n++){const t=this._state.pieces[n];if(null!==t.staticValue){i+=t.staticValue;continue}let s=k._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let n=0;for(let o=0,r=s.length;o<r;o++){if(n>=i){e.push(s.slice(o));break}switch(t.caseOps[n]){case"U":e.push(s[o].toUpperCase());break;case"u":e.push(s[o].toUpperCase()),n++;break;case"L":e.push(s[o].toLowerCase());break;case"l":e.push(s[o].toLowerCase()),n++;break;default:e.push(s[o])}}s=e.join("")}i+=s}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class D{static staticValue(e){return new D(e,-1,null)}static caseOps(e,t){return new D(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class N{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=D.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new k(this._result)}}var E=i(47116);const T=new E.uy("findWidgetVisible",!1),I=(T.toNegated(),new E.uy("findInputFocussed",!1)),M=new E.uy("replaceInputFocussed",!1),A={primary:545,mac:{primary:2593}},R={primary:565,mac:{primary:2613}},O={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},B="actions.find",V="actions.findWithSelection",W="editor.actions.findWithArgs",H="editor.action.nextMatchFindAction",z="editor.action.previousMatchFindAction",j="editor.action.goToMatchFindAction",U="editor.action.nextSelectionMatchFindAction",K="editor.action.previousSelectionMatchFindAction",q="editor.action.startFindReplaceAction",$="closeFindWidget",G="toggleFindCaseSensitive",Y="toggleFindWholeWord",Z="toggleFindRegex",Q="toggleFindInSelection",X="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class ne{constructor(e,t){this._toDispose=new s.SL,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new n._F,this._decorations=new b(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new n.pY((()=>this.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,s.B9)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.e(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const n=this._findMatches(i,!1,ie);this._decorations.set(n,i);const s=this._editor.getSelection();let o=this._decorations.getCurrentMatchesPosition(s);if(0===o&&n.length>0){const e=(0,h.J_)(n.map((e=>e.range)),(e=>g.e.compareRangesUsingStarts(e,s)>=0));o=e>0?e-1+1:o}this._state.changeMatchInfo(o,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||1===n?(1===i?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new u.L(i,n)}_moveToPrevMatch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),n=ne._getSearchRange(this._editor.getModel(),i);n.getEndPosition().isBefore(e)&&(e=n.getEndPosition()),e.isBefore(n.getStartPosition())&&(e=n.getEndPosition());const{lineNumber:s,column:o}=e,r=this._editor.getModel();let a=new u.L(s,o),l=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1)),l?t||n.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new u.L(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._cannotFind())return null;const s=this._decorations.getFindScope(),o=ne._getSearchRange(this._editor.getModel(),s);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());const{lineNumber:r,column:a}=e,l=this._editor.getModel();let d=new u.L(r,a),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t)),h?n||o.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new k(null);const t=[],i=new N(e);for(let n=0,s=e.length;n<s;n++){const o=e.charCodeAt(n);if(92!==o){if(36===o){if(n++,n>=s)break;const o=e.charCodeAt(n);if(36===o){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===o||38===o){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=o&&o<=57){let r=o-48;if(n+1<s){const s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),i.emitUnchanged(n-2),i.emitMatchIndex(r,n+1,t),t.length=0;continue}}i.emitUnchanged(n-1),i.emitMatchIndex(r,n+1,t),t.length=0;continue}}}else{if(n++,n>=s)break;const o=e.charCodeAt(n);switch(o){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(o))}}}return i.finalize()}(this._state.replaceString):k.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const n=e.buildReplaceString(i.matches,this._state.preserveCase),s=new c.T4(t,n);this._executeEditorCommand("replace",s),this._decorations.setStartPosition(new u.L(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const n=(e||[null]).map((e=>ne._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.bc(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),n=i.getValue(1),s=i.getFullModelRange(),o=this._getReplacePattern();let r;const a=this._state.preserveCase;r=o.hasReplacementPatterns||a?n.replace(t,(function(){return o.buildReplaceString(arguments,a)})):n.replace(t,o.buildReplaceString(null,a));const l=new c.hP(s,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let o=0,r=i.length;o<r;o++)n[o]=t.buildReplaceString(i[o].matches,this._state.preserveCase);const s=new C(this._editor.getSelection(),i.map((e=>e.range)),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let n=0,s=t.length;n<s;n++){if(t[n].equalsRange(i)){t=[i].concat(t.slice(0,n)).concat(t.slice(n+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var se=i(76595),oe=i(33741),re=i(7341),ae=i(97133);class le extends re.${constructor(e,t,i){super(),this._hideSoon=this._register(new n.pY((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s={inputActiveOptionBorder:(0,_.n_1)(_.PRb),inputActiveOptionForeground:(0,_.n_1)(_.Pvw),inputActiveOptionBackground:(0,_.n_1)(_.XEs)},o=this._register((0,ae.p0)());this.caseSensitive=this._register(new oe.rk({appendTitle:this._keybindingLabelFor(G),isChecked:this._state.matchCase,hoverDelegate:o,...s})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new oe.Qx({appendTitle:this._keybindingLabelFor(Y),isChecked:this._state.wholeWord,hoverDelegate:o,...s})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new oe.eH({appendTitle:this._keybindingLabelFor(Z),isChecked:this._state.isRegex,hoverDelegate:o,...s})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(se.nm(this._domNode,se.tw.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(se.nm(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return le.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}le.ID="editor.contrib.findOptionsWidget";var de=i(39706);function he(e,t){return 1===e||2!==e&&t}class ce extends s.JT{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new de.Q5),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),"undefined"!==typeof i&&(g.e.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t){var i;const n={moveCursor:t,updateHistory:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;const o=this.isRegex,r=this.wholeWord,a=this.matchCase,l=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,n.searchString=!0,s=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,n.replaceString=!0,s=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,n.isRevealed=!0,s=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,n.isReplaceRevealed=!0,s=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&((null===(i=e.searchScope)||void 0===i?void 0:i.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!g.e.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,n.searchScope=!0,s=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,n.loop=!0,s=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,n.isSearching=!0,s=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,n.filters=!0,s=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,o!==this.isRegex&&(s=!0,n.isRegex=!0),r!==this.wholeWord&&(s=!0,n.wholeWord=!0),a!==this.matchCase&&(s=!0,n.matchCase=!0),l!==this.preserveCase&&(s=!0,n.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(n)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(83945),ge=i(81502),pe=i(38571),me=i(61542),fe=i(16015),_e=i(90388),ve=i(5887),be=i(35650);function Ce(e){var t,i;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(i=e.lookupKeybinding("history.showNext"))||void 0===i?void 0:i.getElectronAccelerator())}var ye=i(54329),we=i(73045),Se=i(25112),xe=i(47624),Le=i(93617),ke=i(71371);const De=(0,ye.q5)("find-selection",me.l.selection,ve.NC("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Ne=(0,ye.q5)("find-collapsed",me.l.chevronRight,ve.NC("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Ee=(0,ye.q5)("find-expanded",me.l.chevronDown,ve.NC("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Te=(0,ye.q5)("find-replace",me.l.replace,ve.NC("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ie=(0,ye.q5)("find-replace-all",me.l.replaceAll,ve.NC("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Me=(0,ye.q5)("find-previous-match",me.l.arrowUp,ve.NC("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ae=(0,ye.q5)("find-next-match",me.l.arrowDown,ve.NC("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Re=ve.NC("label.findDialog","Find / Replace"),Oe=ve.NC("label.find","Find"),Pe=ve.NC("placeholder.find","Find"),Fe=ve.NC("label.previousMatchButton","Previous Match"),Be=ve.NC("label.nextMatchButton","Next Match"),Ve=ve.NC("label.toggleSelectionFind","Find in Selection"),We=ve.NC("label.closeButton","Close"),He=ve.NC("label.replace","Replace"),ze=ve.NC("placeholder.replace","Replace"),je=ve.NC("label.replaceButton","Replace"),Ue=ve.NC("label.replaceAllButton","Replace All"),Ke=ve.NC("label.toggleReplaceButton","Toggle Replace"),qe=ve.NC("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),$e=ve.NC("label.matchesLocation","{0} of {1}"),Ge=ve.NC("label.noResults","No results"),Ye=419;let Ze=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.dz?256:2048;class Je{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function et(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function tt(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEnd<i.value.length&&e.stopPropagation()}class it extends re.${constructor(e,t,i,o,r,a,l,d,h){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=o,this._keybindingService=r,this._contextKeyService=a,this._storageService=d,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!d.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new n.vp(500),this._register((0,s.OF)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(91)&&(this._codeEditor.getOption(91)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(145)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Je(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=I.bindTo(a),this._findFocusTracker=this._register(se.go(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=M.bindTo(a),this._replaceFocusTracker=this._register(se.go(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Je(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return it.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(91)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=se.w(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dL)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Ze+"px",this._state.matchesCount>=ie?this._matchesCount.title=qe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=o.WU($e,i,t)}else e=Ge;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.Z9)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Ze=Math.max(Ze,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ge)return""===i?ve.NC("ariaSearchNoResultEmpty","{0} found",e):ve.NC("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=ve.NC("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();if(s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1){return`${s.getLineContent(t.startLineNumber)}, ${n}`}return n}return ve.NC("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(91);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=se.i(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),o=n.left+(s?s.left:0),r=s?s.top:0;if(this._viewZone&&r<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=se.xQ(this._domNode).left;o>i&&(t=!1);const s=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(s?s.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Je(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const n=this._getHeight();if(n===t.heightInPx)return;const s=n-t.heightInPx;return t.heightInPx=n,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s))}{let n=this._getHeight();if(n-=this._codeEditor.getOption(84).top,n<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let n=!1,s=!1,o=!1;if(this._resized){if(se.w(this._domNode)>Ye)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=se.w(this._findInput.domNode))}if(447+i>=t&&(s=!0),447+i-Ze>=t&&(o=!0),447+i-Ze>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",o),this._domNode.classList.toggle("reduced-find-widget",s),o||n||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:o,reducedFindWidget:s}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.e.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?tt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.ED&&_e.tY&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.NC("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?tt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new be.Yb(null,this._contextViewProvider,{width:221,label:Oe,placeholder:Pe,appendCaseSensitiveLabel:this._keybindingLabelFor(G),appendWholeWordsLabel:this._keybindingLabelFor(Y),appendRegexLabel:this._keybindingLabelFor(Z),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:true,flexibleWidth:true,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ce(this._keybindingService),inputBoxStyles:Le.Hc,toggleStyles:Le.pl},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.IJ&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const e=this._register((0,ae.p0)());this._prevBtn=this._register(new nt({label:Fe+this._keybindingLabelFor(z),icon:Me,hoverDelegate:e,onTrigger:()=>{(0,xe.cW)(this._codeEditor.getAction(z)).run().then(void 0,fe.dL)}})),this._nextBtn=this._register(new nt({label:Be+this._keybindingLabelFor(H),icon:Ae,hoverDelegate:e,onTrigger:()=>{(0,xe.cW)(this._codeEditor.getAction(H)).run().then(void 0,fe.dL)}}));const t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);const i=document.createElement("div");i.className="find-actions",t.appendChild(i),i.appendChild(this._matchesCount),i.appendChild(this._prevBtn.domNode),i.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.Z({icon:De,title:Ve+this._keybindingLabelFor(Q),isChecked:!1,hoverDelegate:e,inputActiveOptionBackground:(0,_.n_1)(_.XEs),inputActiveOptionBorder:(0,_.n_1)(_.PRb),inputActiveOptionForeground:(0,_.n_1)(_.Pvw)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),i.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new nt({label:We+this._keybindingLabelFor($),icon:ye.s_,hoverDelegate:e,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),this._replaceInput=this._register(new be.Nq(null,void 0,{label:He,placeholder:ze,appendPreserveCaseLabel:this._keybindingLabelFor(X),history:[],flexibleHeight:true,flexibleWidth:true,flexibleMaxHeight:118,showHistoryHint:()=>Ce(this._keybindingService),inputBoxStyles:Le.Hc,toggleStyles:Le.pl},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const n=this._register((0,ae.p0)());this._replaceBtn=this._register(new nt({label:je+this._keybindingLabelFor(J),icon:Te,hoverDelegate:n,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new nt({label:Ue+this._keybindingLabelFor(ee),icon:Ie,hoverDelegate:n,onTrigger:()=>{this._controller.replaceAll()}}));const s=document.createElement("div");s.className="replace-part",s.appendChild(this._replaceInput.domNode);const o=document.createElement("div");o.className="replace-actions",s.appendChild(o),o.appendChild(this._replaceBtn.domNode),o.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new nt({label:Ke,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Re,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(s),this._resizeSash=this._register(new pe.g(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let r=Ye;this._register(this._resizeSash.onDidStart((()=>{r=se.w(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=r+e.startX-e.currentX;if(t<Ye)return;t>(parseFloat(se.Dx(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=se.w(this._domNode);if(e<Ye)return;let t=Ye;if(!this._resized||e===Ye){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=se.w(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}it.ID="editor.contrib.findWidget";class nt extends re.${constructor(e){var t;super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+we.k.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register((0,ke.g)(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,ae.tM)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...we.k.asClassNameArray(Ne)),this._domNode.classList.add(...we.k.asClassNameArray(Ee))):(this._domNode.classList.remove(...we.k.asClassNameArray(Ee)),this._domNode.classList.add(...we.k.asClassNameArray(Ne)))}}(0,v.Ic)(((e,t)=>{const i=e.getColor(_.EiJ);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,Se.c3)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const n=e.getColor(_.gkn);n&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,Se.c3)(e.type)?"dashed":"solid"} ${n}; }`);const s=e.getColor(_.lRK);s&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${s}; }`)}));var st,ot=i(6178),rt=i(63826),at=i(79086),lt=i(25371),dt=i(61758),ht=i(2033),ct=i(87650),ut=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},gt=function(e,t){return function(i,n){t(i,n,e)}};const pt=524288;function mt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)<pt)return e.getModel().getValueInRange(n);return null}let ft=st=class extends s.JT{get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,s,o){super(),this._editor=e,this._findWidgetVisible=T.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=s,this._notificationService=o,this._updateHistoryDelayer=new n.vp(500),this._state=this._register(new ce),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!I.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=o.ec(e)),this._state.change({searchString:e},!1)}highlightFindOptions(){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=mt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=o.ec(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=mt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new ne(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){var e;return!!this._model&&((null===(e=this._editor.getModel())||void 0===e?void 0:e.isTooLargeForHeapOperation())?(this._notificationService.warn(ve.NC("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ft.ID="editor.contrib.findController",ft=st=ut([gt(1,E.i6),gt(2,ct.Uy),gt(3,rt.p),gt(4,dt.lT)],ft);let _t=class extends ft{constructor(e,t,i,n,s,o,r,a){super(e,i,r,a,o),this._contextViewService=t,this._keybindingService=n,this._themeService=s,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||n,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new it(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new le(this._editor,this._state,this._keybindingService))}};_t=ut([gt(1,at.u),gt(2,E.i6),gt(3,lt.d),gt(4,v.XE),gt(5,dt.lT),gt(6,ct.Uy),gt(7,rt.p)],_t);(0,r.rn)(new r.jY({id:B,label:ve.NC("startFindAction","Find"),alias:"Find",precondition:E.Ao.or(l.u.focus,E.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ot.eH.MenubarEditMenu,group:"3_find",title:ve.NC({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const n=ft.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const vt={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class bt extends r.R6{constructor(){super({id:W,label:ve.NC("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:vt})}async run(e,t,i){const n=ft.get(t);if(n){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null===i||void 0===i?void 0:i.findInSelection)||!1,loop:t.getOption(41).loop},e),n.setGlobalBufferTerm(n.getState().searchString)}}}class Ct extends r.R6{constructor(){super({id:V,label:ve.NC("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=ft.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class yt extends r.R6{async run(e,t){const i=ft.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class wt extends r.R6{constructor(){super({id:j,label:ve.NC("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:T}),this._highlightDecorations=[]}run(e,t,i){const n=ft.get(t);if(!n)return;const s=n.getState().matchesCount;if(s<1){return void e.get(dt.lT).notify({severity:dt.zb.Warning,message:ve.NC("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(ht.eJ).createInputBox();o.placeholder=ve.NC("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",s);const r=e=>{const t=parseInt(e);if(isNaN(t))return;const i=n.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},a=e=>{const i=r(e);if("number"===typeof i){o.validationMessage=void 0,n.goToMatch(i);const e=n.getState().currentMatch;e&&this.addDecorations(t,e)}else o.validationMessage=ve.NC("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};o.onDidChangeValue((e=>{a(e)})),o.onDidAccept((()=>{const e=r(o.value);"number"===typeof e?(n.goToMatch(e),o.hide()):o.validationMessage=ve.NC("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)})),o.onDidHide((()=>{this.clearDecorations(t),o.dispose()})),o.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.EN)(a.m9),position:d.sh.Full}}}])}))}}class St extends r.R6{async run(e,t){const i=ft.get(t);if(!i)return;const n=mt(t,"single",!1);n&&i.setSearchString(n),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,r.rn)(new r.jY({id:q,label:ve.NC("startReplace","Replace"),alias:"Replace",precondition:E.Ao.or(l.u.focus,E.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ot.eH.MenubarEditMenu,group:"3_find",title:ve.NC({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(91))return!1;const n=ft.get(t);if(!n)return!1;const s=t.getSelection(),o=n.isFindInputFocused(),r=!s.isEmpty()&&s.startLineNumber===s.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!o,a=o||r?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,r._K)(ft.ID,_t,0),(0,r.Qr)(bt),(0,r.Qr)(Ct),(0,r.Qr)(class extends yt{constructor(){super({id:H,label:ve.NC("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.u.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:E.Ao.and(l.u.focus,I),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,r.Qr)(class extends yt{constructor(){super({id:z,label:ve.NC("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.u.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:E.Ao.and(l.u.focus,I),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,r.Qr)(wt),(0,r.Qr)(class extends St{constructor(){super({id:U,label:ve.NC("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,r.Qr)(class extends St{constructor(){super({id:K,label:ve.NC("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const xt=r._l.bindToContribution(ft.get);(0,r.fK)(new xt({id:$,precondition:T,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:E.Ao.and(l.u.focus,E.Ao.not("isComposing")),primary:9,secondary:[1033]}})),(0,r.fK)(new xt({id:G,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),(0,r.fK)(new xt({id:Y,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),(0,r.fK)(new xt({id:Z,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,r.fK)(new xt({id:Q,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,r.fK)(new xt({id:X,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,r.fK)(new xt({id:J,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:3094}})),(0,r.fK)(new xt({id:J,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:E.Ao.and(l.u.focus,M),primary:3}})),(0,r.fK)(new xt({id:ee,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:2563}})),(0,r.fK)(new xt({id:ee,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:E.Ao.and(l.u.focus,M),primary:void 0,mac:{primary:2051}}})),(0,r.fK)(new xt({id:te,precondition:T,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:515}}))},63776:(e,t,i)=>{"use strict";i.d(t,{f:()=>W,n:()=>H});var n=i(53372),s=i(76946),o=i(16015),r=i(17344),a=i(53186),l=i(78701),d=i(47624),h=i(52432),c=i(60548),u=i(35770),g=i(18841),p=i(5580),m=i(91421),f=i(91206),_=i(39706),v=i(28928),b=i(47056);class C{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.Q5,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,b.Q)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,s=Number.MAX_VALUE,o=-1;const r=this._foldingModel.regions;for(;i<r.length;i++){if(!r.isCollapsed(i))continue;const a=r.getStartLineNumber(i)+1,l=r.getEndLineNumber(i);s<=a&&l<=o||(!e&&n<this._hiddenRanges.length&&this._hiddenRanges[n].startLineNumber===a&&this._hiddenRanges[n].endLineNumber===l?(t.push(this._hiddenRanges[n]),n++):(e=!0,t.push(new v.e(a,1,l,1))),s=a,o=l)}(this._hasLineChanges||e||n<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==y(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const s=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=y(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let o=0,r=e.length;o<r;o++){let n=e[o];const r=s(n.startLineNumber);r&&(n=n.setStartPosition(r,i.getLineMaxColumn(r)),t=!0);const a=s(n.endLineNumber);a&&(n=n.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[o]=n}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function y(e,t){const i=(0,f.J_)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var w,S=i(44687),x=i(5887),L=i(47116),k=i(10960),D=i(58012),N=i(2943),E=i(61758),T=i(14386),I=i(6617),M=i(53869),A=i(94943),R=i(91387),O=i(23058),P=i(30600),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};const V=new L.uy("foldingEnabled",!1);let W=w=class extends a.JT{static get(e){return e.getContribution(w.ID)}static getFoldingRangeProviders(e,t){var i,n;const s=e.foldingRangeProvider.ordered(t);return null!==(n=null===(i=w._foldingRangeSelector)||void 0===i?void 0:i.call(w,s,t))&&void 0!==n?n:s}constructor(e,t,i,n,s,o){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=o,this.localToDispose=this._register(new a.SL),this.editor=e,this._foldingLimitReporter=new H(e);const r=this.editor.getOptions();this._isEnabled=r.get(43),this._useFoldingProviders="indentation"!==r.get(44),this._unfoldOnClickAfterEndOfLine=r.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=r.get(46),this.updateDebounceInfo=s.for(o.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new k.fF(e),this.foldingDecorationProvider.showFoldingControls=r.get(110),this.foldingDecorationProvider.showFoldingHighlights=r.get(45),this.foldingEnabled=V.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(110)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(110),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.av(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new C(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new n.vp(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.pY((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{var e,t;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),null===(e=this.updateScheduler)||void 0===e||e.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,null===(t=this.rangeProvider)||void 0===t||t.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;null===(e=this.rangeProvider)||void 0===e||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new S.aI(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=w.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new N.e(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new I.G,i=this.getRangeProvider(e.textModel),s=this.foldingRegionPromise=(0,n.PG)((e=>i.compute(e)));return s.then((i=>{if(i&&s===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.AD.Imports.value,!0);e&&(n=h.Z.capture(this.editor),this._currentModelHasFoldedImports=e)}const s=this.editor.getSelections(),o=s?s.map((e=>e.startLineNumber)):[];e.update(i,o),null===n||void 0===n||n.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,o.dL)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,o.dL)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,s=e.target.range;if(!s||s.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||s.startColumn!==e.getLineMaxColumn(i))return}const o=t.getRegionAtLine(i);if(o&&o.startLineNumber===i){const s=o.isCollapsed;if(n||s){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(o)&&!o.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&n.push(t);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(o))e.isCollapsed===s&&n.push(e);!s&&i&&0!==n.length||n.push(o)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};W.ID="editor.contrib.folding",W=w=F([B(1,L.i6),B(2,p.c_),B(3,E.lT),B(4,T.A),B(5,M.p)],W);class H{constructor(e){this.editor=e,this._onDidChange=new _.Q5,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class z extends c.R6{runEditorCommand(e,t,i){const n=e.get(p.c_),s=W.get(t);if(!s)return;const o=s.getFoldingModel();return o?(this.reportTelemetry(e,t),o.then((e=>{if(e){this.invoke(s,e,t,i,n);const o=t.getSelection();o&&s.reveal(o.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function j(e){if(!d.o8(e)){if(!d.Kn(e))return!1;const t=e;if(!d.o8(t.levels)&&!d.hj(t.levels))return!1;if(!d.o8(t.direction)&&!d.HD(t.direction))return!1;if(!d.o8(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(d.hj)))return!1}return!0}class U extends z{getFoldingLevel(){return parseInt(this.id.substr(U.ID_PREFIX.length))}invoke(e,t,i){(0,m.Ln)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}U.ID_PREFIX="editor.foldLevel",U.ID=e=>U.ID_PREFIX+e;(0,c._K)(W.ID,W,0),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfold",label:x.NC("unfoldAction.label","Unfold"),alias:"Unfold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:j,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=n&&n.levels||1,o=this.getLineNumbers(n,i);n&&"up"===n.direction?(0,m.gU)(t,!1,s,o):(0,m.R$)(t,!1,s,o)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldRecursively",label:x.NC("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2142),weight:100}})}invoke(e,t,i,n){(0,m.R$)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.fold",label:x.NC("foldAction.label","Fold"),alias:"Fold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:j,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=this.getLineNumbers(n,i),o=n&&n.levels,r=n&&n.direction;"number"!==typeof o&&"string"!==typeof r?(0,m.HX)(t,!0,s):"up"===r?(0,m.gU)(t,!0,o||1,s):(0,m.R$)(t,!0,o||1,s)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldRecursively",label:x.NC("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.R$)(t,!0,Number.MAX_VALUE,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAll",label:x.NC("foldAllAction.label","Fold All"),alias:"Fold All",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.R$)(t,!0)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldAll",label:x.NC("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.R$)(t,!1)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAllBlockComments",label:x.NC("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2138),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.MW)(t,g.AD.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).comments;if(n&&n.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,l.ec)(n.blockCommentStartToken));(0,m.DW)(t,e,!0)}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAllMarkerRegions",label:x.NC("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2077),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.MW)(t,g.AD.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,m.DW)(t,e,!0)}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:x.NC("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2078),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.MW)(t,g.AD.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,m.DW)(t,e,!1)}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.foldAllExcept",label:x.NC("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2136),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.YT)(t,!0,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.unfoldAllExcept",label:x.NC("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2134),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.YT)(t,!1,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.toggleFold",label:x.NC("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2090),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.d8)(t,1,n)}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.gotoParentFold",label:x.NC("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.PV)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.gotoPreviousFold",label:x.NC("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.sK)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.gotoNextFold",label:x.NC("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.hE)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:x.NC("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2135),weight:100}})}invoke(e,t,i){var n;const s=[],o=i.getSelections();if(o){for(const e of o){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=D.MN.sanitizeAndMerge(t.regions,s,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(D.MN.fromFoldRanges(e))}}}}),(0,c.Qr)(class extends z{constructor(){super({id:"editor.removeManualFoldingRanges",label:x.NC("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const i=[];for(const e of n){const{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let K=1;K<=7;K++)(0,c.QG)(new U({id:U.ID(K),label:x.NC("foldLevelAction.label","Fold Level {0}",K),alias:`Fold Level ${K}`,precondition:V,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2048|21+K),weight:100}}));A.P.registerCommand("_executeFoldingRangeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[r]=i;if(!(r instanceof R.o))throw(0,o.b1)();const a=e.get(M.p),l=e.get(O.q).getModel(r);if(!l)throw(0,o.b1)();const d=e.get(P.Ui);if(!d.getValue("editor.folding",{resource:r}))return[];const h=e.get(p.c_),c=d.getValue("editor.foldingStrategy",{resource:r}),u={get limit(){return d.getValue("editor.foldingMaximumRegions",{resource:r})},update:(e,t)=>{}},m=new S.aI(l,h,u);let f=m;if("indentation"!==c){const e=W.getFoldingRangeProviders(a,l);e.length&&(f=new N.e(l,e,(()=>{}),u,m))}const _=await f.compute(s.T.None),v=[];try{if(_)for(let e=0;e<_.length;e++){const t=_.getType(e);v.push({start:_.getStartLineNumber(e),end:_.getEndLineNumber(e),kind:t?g.AD.fromValue(t):void 0})}return v}finally{f.dispose()}}))},10960:(e,t,i)=>{"use strict";i.d(t,{Iy:()=>c,f5:()=>u,fF:()=>v});var n=i(61542),s=i(13277),o=i(5887),r=i(6009),a=i(54329),l=i(46673),d=i(73045);const h=(0,r.P6G)("editor.foldBackground",{light:(0,r.ZnX)(r.hEj,.3),dark:(0,r.ZnX)(r.hEj,.3),hcDark:null,hcLight:null},(0,o.NC)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6G)("editorGutter.foldingControlForeground",{dark:r.XZx,light:r.XZx,hcDark:r.XZx,hcLight:r.XZx},(0,o.NC)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const c=(0,a.q5)("folding-expanded",n.l.chevronDown,(0,o.NC)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.q5)("folding-collapsed",n.l.chevronRight,(0,o.NC)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.q5)("folding-manual-collapsed",u,(0,o.NC)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.q5)("folding-manual-expanded",c,(0,o.NC)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,l.EN)(h),position:1},f=(0,o.NC)("linesCollapsed","Click to expand the range."),_=(0,o.NC)("linesExpanded","Click to collapse the range.");class v{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}v.COLLAPSED_VISUAL_DECORATION=s.qx.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(u)}),v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=s.qx.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(u)}),v.MANUALLY_COLLAPSED_VISUAL_DECORATION=s.qx.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(g)}),v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=s.qx.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.k.asClassName(g)}),v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=s.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f}),v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=s.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f}),v.EXPANDED_VISUAL_DECORATION=s.qx.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.k.asClassName(c),linesDecorationsTooltip:_}),v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=s.qx.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:d.k.asClassName(c),linesDecorationsTooltip:_}),v.MANUALLY_EXPANDED_VISUAL_DECORATION=s.qx.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.k.asClassName(p),linesDecorationsTooltip:_}),v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=s.qx.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:d.k.asClassName(p),linesDecorationsTooltip:_}),v.NO_CONTROLS_EXPANDED_RANGE_DECORATION=s.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),v.HIDDEN_RANGE_DECORATION=s.qx.register({description:"folding-hidden-range-decoration",stickiness:1})},91421:(e,t,i)=>{"use strict";i.d(t,{DW:()=>g,HX:()=>h,Ln:()=>c,MW:()=>p,PV:()=>m,R$:()=>l,YT:()=>u,av:()=>r,d8:()=>a,gU:()=>d,hE:()=>_,sK:()=>f});var n=i(39706),s=i(58012),o=i(95075);class r{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new n.Q5,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new s.MN(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,s=-1,o=-1;const r=e=>{for(;n<e;){const e=this._regions.getEndLineNumber(n),t=this._regions.isCollapsed(n);if(e<=s){const s=0!==this.regions.getSource(n);i.changeDecorationOptions(this._editorDecorationIds[n],this._decorationProvider.getDecorationOption(t,e<=o,s))}t&&e>o&&(o=e),n++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,r(e);const n=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,n),s=Math.max(s,this._regions.getEndLineNumber(e))}}r(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let n=0;n<this._regions.length;n++){const e=this._regions.toFoldRange(n);0!==e.source&&i(e)||t.push(e)}this.updatePost(s.MN.fromFoldRanges(t))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const i=this._currentFoldedOrManualRanges(t),n=s.MN.sanitizeAndMerge(e,i,this._textModel.getLineCount());this.updatePost(s.MN.fromFoldRanges(n))}updatePost(e){const t=[];let i=-1;for(let n=0,s=e.length;n<s;n++){const s=e.getStartLineNumber(n),o=e.getEndLineNumber(n),r=e.isCollapsed(n),a=0!==e.getSource(n),l={startLineNumber:s,startColumn:this._textModel.getLineMaxColumn(s),endLineNumber:o,endColumn:this._textModel.getLineMaxColumn(o)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(r,o<=i,a)}),r&&o>i&&(i=o)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=(t,i)=>{for(const n of e)if(t<n&&n<=i)return!0;return!1},i=[];for(let n=0,s=this._regions.length;n<s;n++){let e=this.regions.isCollapsed(n);const s=this.regions.getSource(n);if(e||0!==s){const o=this._regions.toFoldRange(n),r=this._textModel.getDecorationRange(this._editorDecorationIds[n]);r&&(e&&t(r.startLineNumber,r.endLineNumber)&&(e=!1),i.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,type:o.type,isCollapsed:e,source:s}))}}return i}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let n=0,s=e.length;n<s;n++){const s=e[n];if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>i)continue;const o=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:o})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],o=this._textModel.getLineCount();for(const s of e){if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>o)continue;const e=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);s.checksum&&e!==s.checksum||n.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,type:void 0,isCollapsed:null===(t=s.isCollapsed)||void 0===t||t,source:null!==(i=s.source)&&void 0!==i?i:0})}const r=s.MN.sanitizeAndMerge(this._regions,n,o);this.updatePost(s.MN.fromFoldRanges(r))}_getLinesChecksum(e,t){return(0,o.vp)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),s=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,s)||i.push(e),s++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,s=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let o=n,r=this._regions.length;o<r;o++){const n=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<s))break;for(;e.length>0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let o=n,r=this._regions.length;o<r;o++){const e=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<s))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const n=[];for(const s of i){const i=e.getRegionAtLine(s);if(i){const s=!i.isCollapsed;if(n.push(i),t>1){const o=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==s&&i<t));n.push(...o)}}}e.toggleCollapseState(n)}function l(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_VALUE,n=arguments.length>3?arguments[3]:void 0;const s=[];if(n&&n.length>0)for(const o of n){const n=e.getRegionAtLine(o);if(n&&(n.isCollapsed!==t&&s.push(n),i>1)){const o=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&n<i));s.push(...o)}}else{const n=e.getRegionsInside(null,((e,n)=>e.isCollapsed!==t&&n<i));s.push(...n)}e.toggleCollapseState(s)}function d(e,t,i,n){const s=[];for(const o of n){const n=e.getAllRegionsAtLine(o,((e,n)=>e.isCollapsed!==t&&n<=i));s.push(...n)}e.toggleCollapseState(s)}function h(e,t,i){const n=[];for(const s of i){const i=e.getAllRegionsAtLine(s,(e=>e.isCollapsed!==t));i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}function c(e,t,i,n){const s=e.getRegionsInside(null,((e,s)=>s===t&&e.isCollapsed!==i&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(s)}function u(e,t,i){const n=[];for(const o of i){const t=e.getAllRegionsAtLine(o,void 0);t.length>0&&n.push(t[0])}const s=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(s)}function g(e,t,i){const n=e.textModel,s=e.regions,o=[];for(let r=s.length-1;r>=0;r--)if(i!==s.isCollapsed(r)){const e=s.getStartLineNumber(r);t.test(n.getLineContent(e))&&o.push(s.toRegion(r))}e.toggleCollapseState(o)}function p(e,t,i){const n=e.regions,s=[];for(let o=n.length-1;o>=0;o--)i!==n.isCollapsed(o)&&t===n.getType(o)&&s.push(n.toRegion(o));e.toggleCollapseState(s)}function m(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},58012:(e,t,i)=>{"use strict";i.d(t,{MN:()=>a,Xl:()=>s});const n={0:" ",1:"u",2:"r"},s=16777215,o=4278190080;class r{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,n=e%32,s=this._states[i];this._states[i]=t?s|1<<n:s&~(1<<n)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new r(e.length),this._userDefinedStates=new r(e.length),this._recoveredStates=new r(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;i<n;i++){const n=this._startIndexes[i],o=this._endIndexes[i];if(n>s||o>s)throw new Error("startLineNumber or endLineNumber must not exceed "+s);for(;e.length>0&&!t(n,o);)e.pop();const r=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&r)<<24),this._endIndexes[i]=o+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&s}getEndLineNumber(e){return this._endIndexes[e]&s}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n<this._types.length;n++)this._types[n]===e&&(this.setCollapsed(n,t),i=!0);return i}toRegion(e){return new l(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&o)>>>24)+((this._endIndexes[e]&o)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const n=Math.floor((t+i)/2);e<this.getStartLineNumber(n)?i=n:t=n+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${n[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&s,endLineNumber:this._endIndexes[e]&s,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),n=new Uint32Array(t);let s=[],o=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,n[a]=t.endLineNumber,s.push(t.type),t.type&&(o=!0)}o||(s=void 0);const r=new a(i,n,s);for(let a=0;a<t;a++)e[a].isCollapsed&&r.setCollapsed(a,!0),r.setSource(a,e[a].source);return r}static sanitizeAndMerge(e,t,i){i=null!==i&&void 0!==i?i:Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,s=n(e,e.length),o=n(t,t.length);let r=0,a=0,l=s(0),d=o(0);const h=[];let c,u=0;const g=[];for(;l||d;){let e;if(d&&(!l||l.startLineNumber>=d.startLineNumber))l&&l.startLineNumber===d.startLineNumber?(1===d.source?e=d:(e=l,e.isCollapsed=d.isCollapsed&&l.endLineNumber===d.endLineNumber,e.source=0),l=s(++r)):(e=d,d.isCollapsed&&0===d.source&&(e.source=2)),d=o(++a);else{let t=a,i=d;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=s(++r)}if(e){for(;c&&c.endLineNumber<e.startLineNumber;)c=h.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!c||c.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,c&&h.push(c),c=e)}}return g}}class l{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},44687:(e,t,i)=>{"use strict";i.d(t,{aI:()=>o});var n=i(82412),s=i(58012);class o{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,s=t&&t.markers;return Promise.resolve(function(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;const o=e.getOptions().tabSize,l=new r(s);let d;i&&(d=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],c=e.getLineCount()+1;h.push({indent:-1,endAbove:c,line:c});for(let r=e.getLineCount();r>0;r--){const i=e.getLineContent(r),s=(0,n.q)(i,o);let a,c=h[h.length-1];if(-1!==s){if(d&&(a=i.match(d))){if(!a[1]){h.push({indent:-2,endAbove:r,line:r});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,c=h[e],l.insertFirst(r,c.line,s),c.line=r,c.indent=s,c.endAbove=r;continue}}}if(c.indent>s){do{h.pop(),c=h[h.length-1]}while(c.indent>s);const e=c.endAbove-1;e-r>=1&&l.insertFirst(r,e,s)}c.indent===s?c.endAbove=r:h.push({indent:s,endAbove:r,line:r})}else t&&(c.endAbove=r)}return l.toIndentRanges(e)}(this.editorModel,i,s,this.foldingRangesLimit))}}class r{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>s.Xl||t>s.Xl)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new s.MN(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,o=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const n=this._indentOccurrences[e];if(n){if(n+i>t){o=e;break}i+=n}}const r=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let s=this._length-1,d=0;s>=0;s--){const h=this._startIndexes[s],c=e.getLineContent(h),u=(0,n.q)(c,r);(u<o||u===o&&i++<t)&&(a[d]=h,l[d]=this._endIndexes[s],d++)}return new s.MN(a,l)}}}const a={limit:5e3,update:()=>{}}},2943:(e,t,i)=>{"use strict";i.d(t,{e:()=>a});var n=i(16015),s=i(53186),o=i(58012);const r={};class a{constructor(e,t,i,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id="syntax",this.disposables=new s.SL,o&&this.disposables.add(o);for(const s of t)"function"===typeof s.onDidChange&&this.disposables.add(s.onDidChange(i))}compute(e){return function(e,t,i){let s=null;const o=e.map(((e,o)=>Promise.resolve(e.provideFoldingRanges(t,r,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(s)||(s=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&s.push({start:t.start,end:t.end,rank:o,kind:t.kind})}}),n.Cp)));return Promise.all(o).then((e=>s))}(this.providers,this.editorModel,e).then((t=>{var i,n;if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),n=new l(t);let s;const o=[];for(const r of i)if(s){if(r.start>s.start)if(r.end<=s.end)o.push(s),s=r,n.add(r.start,r.end,r.kind&&r.kind.value,o.length);else{if(r.start>s.end){do{s=o.pop()}while(s&&r.start>s.end);s&&o.push(s),s=r}n.add(r.start,r.end,r.kind&&r.kind.value,o.length)}}else s=r,n.add(r.start,r.end,r.kind&&r.kind.value,o.length);return n.toIndentRanges()}(t,this.foldingRangesLimit)}return null!==(n=null===(i=this.fallbackRangeProvider)||void 0===i?void 0:i.compute(e))&&void 0!==n?n:null}))}dispose(){this.disposables.dispose()}}class l{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>o.Xl||t>o.Xl)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._nestingLevels[s]=n,this._types[s]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new o.MN(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let o=0;o<this._nestingLevelCounts.length;o++){const n=this._nestingLevelCounts[o];if(n){if(n+t>e){i=o;break}t+=n}}const n=new Uint32Array(e),s=new Uint32Array(e),r=[];for(let o=0,a=0;o<this._length;o++){const l=this._nestingLevels[o];(l<i||l===i&&t++<e)&&(n[a]=this._startIndexes[o],s[a]=this._endIndexes[o],r[a]=this._types[o],a++)}return new o.MN(n,s,r)}}}},91135:(e,t,i)=>{"use strict";var n=i(60548),s=i(90582),o=i(5887);class r extends n.R6{constructor(){super({id:"editor.action.fontZoomIn",label:o.NC("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){s.C.setZoomLevel(s.C.getZoomLevel()+1)}}class a extends n.R6{constructor(){super({id:"editor.action.fontZoomOut",label:o.NC("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){s.C.setZoomLevel(s.C.getZoomLevel()-1)}}class l extends n.R6{constructor(){super({id:"editor.action.fontZoomReset",label:o.NC("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){s.C.setZoomLevel(0)}}(0,n.Qr)(r),(0,n.Qr)(a),(0,n.Qr)(l)},37806:(e,t,i)=>{"use strict";i.d(t,{xC:()=>k,x$:()=>D,Qq:()=>E,Qs:()=>I});var n=i(51833),s=i(76946),o=i(16015),r=i(2706),a=i(64450),l=i(47624),d=i(91387),h=i(8037),c=i(48850),u=i(74633),g=i(28928),p=i(24854),m=i(69115),f=i(43537),_=i(75549),v=i(94943);class b{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class C{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(b.toKey(e))}has(e){return this._set.has(b.toKey(e))}}var y=i(87775),w=i(53869),S=i(33454),x=i(88622);function L(e,t,i){const n=[],s=new C,o=e.ordered(i);for(const a of o)n.push(a),a.extensionId&&s.add(a.extensionId);const r=t.ordered(i);for(const a of r){if(a.extensionId){if(s.has(a.extensionId))continue;s.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return n}class k{static setFormatterSelector(e){return{dispose:k._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;const s=r.$.first(k._selectors);return s?await s(e,t,i,n):void 0}}async function D(e,t,i,n,s,o,r){const a=e.get(y.TG),{documentRangeFormattingEditProvider:l}=e.get(w.p),d=(0,c.CL)(t)?t.getModel():t,h=l.ordered(d),u=await k.select(h,d,n,2);u&&(s.report(u),await a.invokeFunction(N,u,t,i,o,r))}async function N(e,t,i,s,o,r){var a,l;const d=e.get(m.p),u=e.get(S.VZ),f=e.get(x.IV);let v,b;(0,c.CL)(i)?(v=i.getModel(),b=new h.Dl(i,5,void 0,o)):(v=i,b=new h.YQ(i,o));const C=[];let y=0;for(const h of(0,n._2)(s).sort(g.e.compareRangesUsingStarts))y>0&&g.e.areIntersectingOrTouching(C[y-1],h)?C[y-1]=g.e.fromPositions(C[y-1].getStartPosition(),h.getEndPosition()):y=C.push(h);const w=async e=>{var i,n;u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);const s=await t.provideDocumentRangeFormattingEdits(v,e,v.getFormattingOptions(),b.token)||[];return u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,s),s},L=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.e.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.e.intersectRanges(i,e.range))))return!1;for(const n of e)for(const e of t)if(g.e.intersectRanges(n.range,e.range))return!0;return!1},k=[],D=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(a=t.extensionId)||void 0===a?void 0:a.value,C);const e=await t.provideDocumentRangesFormattingEdits(v,C,v.getFormattingOptions(),b.token)||[];u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(l=t.extensionId)||void 0===l?void 0:l.value,e),D.push(e)}else{for(const e of C){if(b.token.isCancellationRequested)return!0;D.push(await w(e))}for(let e=0;e<C.length;++e)for(let t=e+1;t<C.length;++t){if(b.token.isCancellationRequested)return!0;if(L(D[e],D[t])){const i=g.e.plusRange(C[e],C[t]),n=await w(i);C.splice(t,1),C.splice(e,1),C.push(i),D.splice(t,1),D.splice(e,1),D.push(n),e=0,t=0}}}for(const e of D){if(b.token.isCancellationRequested)return!0;const t=await d.computeMoreMinimalEdits(v.uri,e);t&&k.push(...t)}}finally{b.dispose()}if(0===k.length)return!1;if((0,c.CL)(i))_.V.execute(i,k,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=k,t=new p.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);v.pushEditOperations([t],k.map((e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new p.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return f.playSignal(x.iP.format,{userGesture:r}),!0}async function E(e,t,i,n,s,o){const r=e.get(y.TG),a=e.get(w.p),l=(0,c.CL)(t)?t.getModel():t,d=L(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),h=await k.select(d,l,i,1);h&&(n.report(h),await r.invokeFunction(T,h,t,i,s,o))}async function T(e,t,i,n,s,o){const r=e.get(m.p),a=e.get(x.IV);let l,d,u;(0,c.CL)(i)?(l=i.getModel(),d=new h.Dl(i,5,void 0,s)):(l=i,d=new h.YQ(i,s));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),d.token);if(u=await r.computeMoreMinimalEdits(l.uri,e),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!u||0===u.length)return!1;if((0,c.CL)(i))_.V.execute(i,u,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],u.map((e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new p.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(x.iP.format,{userGesture:o}),!0}function I(e,t,i,n,s,r,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(s)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,s,r,a)).catch(o.Cp).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}k._selectors=new a.S,v.P.registerCommand("_executeFormatRangeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];const[a,h,c]=i;(0,l.p_)(d.o.isUri(a)),(0,l.p_)(g.e.isIRange(h));const u=e.get(f.S),p=e.get(m.p),_=e.get(w.p),v=await u.createModelReference(a);try{return async function(e,t,i,s,r,a){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const d of l){const t=await Promise.resolve(d.provideDocumentRangeFormattingEdits(i,s,r,a)).catch(o.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(p,_,v.object.textEditorModel,g.e.lift(h),c,s.T.None)}finally{v.dispose()}})),v.P.registerCommand("_executeFormatDocumentProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];const[a,h]=i;(0,l.p_)(d.o.isUri(a));const c=e.get(f.S),u=e.get(m.p),g=e.get(w.p),p=await c.createModelReference(a);try{return async function(e,t,i,s,r){const a=L(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const l of a){const t=await Promise.resolve(l.provideDocumentFormattingEdits(i,s,r)).catch(o.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(u,g,p.object.textEditorModel,h,s.T.None)}finally{p.dispose()}})),v.P.registerCommand("_executeFormatOnTypeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[o,r,a,h]=i;(0,l.p_)(d.o.isUri(o)),(0,l.p_)(u.L.isIPosition(r)),(0,l.p_)("string"===typeof a);const c=e.get(f.S),g=e.get(m.p),p=e.get(w.p),_=await c.createModelReference(o);try{return I(g,p,_.object.textEditorModel,u.L.lift(r),a,h,s.T.None)}finally{_.dispose()}}))},13499:(e,t,i)=>{"use strict";var n=i(51833),s=i(76946),o=i(16015),r=i(17344),a=i(53186),l=i(60548),d=i(74246),h=i(47498),c=i(28928),u=i(35770),g=i(69115),p=i(53869),m=i(37806),f=i(75549),_=i(5887),v=i(88622),b=i(94943),C=i(47116),y=i(87775),w=i(97757),S=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},x=function(e,t){return function(i,n){t(i,n,e)}};let L=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new a.SL,this._sessionDisposables=new a.SL,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.q;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),o=new s.A,r=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return o.cancel(),void r.dispose();for(let t=0,n=e.changes.length;t<n;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return o.cancel(),void r.dispose()}}));(0,m.Qs)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),o.token).then((e=>{o.token.isCancellationRequested||(0,n.Of)(e)&&(this._accessibilitySignalService.playSignal(v.iP.format,{userGesture:!1}),f.V.execute(this._editor,e,!0))})).finally((()=>{r.dispose()}))}};L.ID="editor.contrib.autoFormat",L=S([x(1,p.p),x(2,g.p),x(3,v.IV)],L);let k=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.SL,this._callOnModel=new a.SL,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((e=>{let{range:t}=e;return this._trigger(t)})))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.x$,this.editor,e,2,w.Ex.None,s.T.None,!1).catch(o.dL))}};k.ID="editor.contrib.formatOnPaste",k=S([x(1,p.p),x(2,y.TG)],k);class D extends l.R6{constructor(){super({id:"editor.action.formatDocument",label:_.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:C.Ao.and(u.u.notInCompositeEditor,u.u.writable,u.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(y.TG),n=e.get(w.ek);await n.showWhile(i.invokeFunction(m.Qq,t,1,w.Ex.None,s.T.None,!0),250)}}}class N extends l.R6{constructor(){super({id:"editor.action.formatSelection",label:_.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:C.Ao.and(u.u.writable,u.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2084),weight:100},contextMenuOpts:{when:u.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(y.TG),n=t.getModel(),o=t.getSelections().map((e=>e.isEmpty()?new c.e(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),r=e.get(w.ek);await r.showWhile(i.invokeFunction(m.x$,t,o,1,w.Ex.None,s.T.None,!0),250)}}(0,l._K)(L.ID,L,2),(0,l._K)(k.ID,k,2),(0,l.Qr)(D),(0,l.Qr)(N),b.P.registerCommand("editor.action.format",(async e=>{const t=e.get(d.$).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(b.H);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},75549:(e,t,i)=>{"use strict";i.d(t,{V:()=>r});var n=i(56154),s=i(28928),o=i(52432);class r{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)"number"===typeof s.eol&&(i=s.eol),s.range&&"string"===typeof s.text&&n.push(s);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const a=o.Z.capture(e),l=r._handleEolEdits(e,t);1===l.length&&r._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>n.h.replace(s.e.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>n.h.replaceMove(s.e.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},95851:(e,t,i)=>{"use strict";i.d(t,{c:()=>re,v:()=>le});var n=i(61542),s=i(53186),o=i(60548),r=i(74246),a=i(74633),l=i(28928),d=i(35770),h=i(51833),c=i(39706),u=i(64450),g=i(78701),p=i(91387),m=i(23026),f=i(87775),_=i(76390),v=i(30600),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let w=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new c.Q5,this.onDidChange=this._onDidChange.event,this._dispoables=new s.SL,this._markers=[],this._nextIdx=-1,p.o.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),o=(e,t)=>{let i=(0,g.qu)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?l.e.compareRangesUsingStarts(e,t)||_.ZL.compare(e.severity,t.severity):_.ZL.compare(e.severity,t.severity)||l.e.compareRangesUsingStarts(e,t)),i},r=()=>{this._markers=this._markerService.read({resource:p.o.isUri(e)?e:void 0,severities:_.ZL.Error|_.ZL.Warning|_.ZL.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(o)};r(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(r(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new y(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));s<0&&(s=(0,h.ry)(this._markers,{resource:e.uri},((e,t)=>(0,g.qu)(e.resource.toString(),t.resource.toString()))),s<0&&(s=~s));for(let o=s;o<this._markers.length;o++){let i=l.e.lift(this._markers[o]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new l.e(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=o,n=!0;break}if(this._markers[o].resource.toString()!==e.uri.toString())break}n||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const n=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),n!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(l.e.containsPosition(this._markers[i],t))return new y(this._markers[i],i+1,this._markers.length)}};w=b([C(1,_.lT),C(2,v.Ui)],w);const S=(0,f.yh)("IMarkerNavigationService");let x=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.S}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new w(e,this._markerService,this._configService)}};x=b([C(0,_.lT),C(1,v.Ui)],x),(0,m.z)(S,x,1);var L,k=i(5887),D=i(6178),N=i(47116),E=i(54329),T=i(76595),I=i(24622),M=i(63932),A=i(30506),R=i(60737),O=i(51887),P=i(60297),F=i(34912),B=i(73045),V=i(28889);!function(e){e.className=function(e){switch(e){case V.Z.Ignore:return"severity-ignore "+B.k.asClassName(n.l.info);case V.Z.Info:return B.k.asClassName(n.l.info);case V.Z.Warning:return B.k.asClassName(n.l.warning);case V.Z.Error:return B.k.asClassName(n.l.error);default:return""}}}(L||(L={}));var W,H=i(6009),z=i(46673),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};class K{constructor(e,t,i,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new s.SL,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(T.mu(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new I.NB(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{r.style.left=`-${e.scrollLeft}px`,r.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,s.B9)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let o=((null===t||void 0===t?void 0:t.length)||0)+"()".length;s&&(o+="string"===typeof s?s.length:s.value.length);const r=(0,g.uq)(i);this._lines=r.length,this._longestLineLength=0;for(const h of r)this._longestLineLength=Math.max(h.length+o,this._longestLineLength);T.PO(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of r)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||s){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(s)if("string"===typeof s){const t=document.createElement("span");t.innerText=`(${s})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=T.$("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(s.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};T.R3(this._codeLink,T.$("span")).innerText=s.value,e.appendChild(this._codeLink)}}if(T.PO(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.Of)(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const s=document.createElement("span");s.innerText=t.message,i.appendChild(n),i.appendChild(s),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(50),d=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),c=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:c})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.ZL.Error:t=k.NC("Error","Error");break;case _.ZL.Warning:t=k.NC("Warning","Warning");break;case _.ZL.Info:t=k.NC("Info","Info");break;case _.ZL.Hint:t=k.NC("Hint","Hint")}let i=k.NC("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();if(n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1){i=`${n.getLineContent(e.startLineNumber)}, ${i}`}return i}}let q=W=class extends R.vk{constructor(e,t,i,n,o,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new s.SL,this._onDidSelectRelatedInformation=new c.Q5,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.ZL.Warning,this._backgroundColor=M.Il.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Z,i=Q;this._severity===_.ZL.Warning?(t=X,i=J):this._severity===_.ZL.Info&&(t=ee,i=te);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(R.IH),secondaryHeadingColor:e.getColor(R.R7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.createMenu(W.TitleMenu,this._contextKeyService);(0,O.vr)(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=T.R3(e,T.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new K(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=l.e.lift(e),s=this.editor.getPosition(),o=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(o,this.computeRequiredHeight());const r=this.editor.getModel();if(r){const e=i>1?k.NC("problems","{0} of {1} problems",t,i):k.NC("change","{0} of {1} problem",t,i);this.setTitle((0,A.EZ)(r.uri),e)}this._icon.className=`codicon ${L.className(_.ZL.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(o,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};q.TitleMenu=new D.eH("gotoErrorTitleMenu"),q=W=j([U(1,z.XE),U(2,F.v),U(3,D.co),U(4,f.TG),U(5,N.i6),U(6,P.e)],q);const $=(0,H.kwl)(H.lXJ,H.b6y),G=(0,H.kwl)(H.uoC,H.pW3),Y=(0,H.kwl)(H.c63,H.T83),Z=(0,H.P6G)("editorMarkerNavigationError.background",{dark:$,light:$,hcDark:H.lRK,hcLight:H.lRK},k.NC("editorMarkerNavigationError","Editor marker navigation widget error color.")),Q=(0,H.P6G)("editorMarkerNavigationError.headerBackground",{dark:(0,H.ZnX)(Z,.1),light:(0,H.ZnX)(Z,.1),hcDark:null,hcLight:null},k.NC("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),X=(0,H.P6G)("editorMarkerNavigationWarning.background",{dark:G,light:G,hcDark:H.lRK,hcLight:H.lRK},k.NC("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,H.P6G)("editorMarkerNavigationWarning.headerBackground",{dark:(0,H.ZnX)(X,.1),light:(0,H.ZnX)(X,.1),hcDark:"#0C141F",hcLight:(0,H.ZnX)(X,.2)},k.NC("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,H.P6G)("editorMarkerNavigationInfo.background",{dark:Y,light:Y,hcDark:H.lRK,hcLight:H.lRK},k.NC("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,H.P6G)("editorMarkerNavigationInfo.headerBackground",{dark:(0,H.ZnX)(ee,.1),light:(0,H.ZnX)(ee,.1),hcDark:null,hcLight:null},k.NC("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,H.P6G)("editorMarkerNavigation.background",{dark:H.cvW,light:H.cvW,hcDark:H.cvW,hcLight:H.cvW},k.NC("editorMarkerNavigationBackground","Editor marker navigation widget background."));var ne,se=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},oe=function(e,t){return function(i,n){t(i,n,e)}};let re=ne=class{static get(e){return e.getContribution(ne.ID)}constructor(e,t,i,n,o){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new s.SL,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(q,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.e.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.e.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.L(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){var i,n;if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const o=await this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);o&&(null===(i=ne.get(o))||void 0===i||i.close(),null===(n=ne.get(o))||void 0===n||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}}};re.ID="editor.contrib.markerController",re=ne=se([oe(1,S),oe(2,N.i6),oe(3,r.$),oe(4,f.TG)],re);class ae extends o.R6{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){var i;t.hasModel()&&(null===(i=re.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}}class le extends ae{constructor(){super(!0,!1,{id:le.ID,label:le.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:578,weight:100},menuOpts:{menuId:q.TitleMenu,title:le.LABEL,icon:(0,E.q5)("marker-navigation-next",n.l.arrowDown,k.NC("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}le.ID="editor.action.marker.next",le.LABEL=k.NC("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class de extends ae{constructor(){super(!1,!1,{id:de.ID,label:de.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:1602,weight:100},menuOpts:{menuId:q.TitleMenu,title:de.LABEL,icon:(0,E.q5)("marker-navigation-previous",n.l.arrowUp,k.NC("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}de.ID="editor.action.marker.prev",de.LABEL=k.NC("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");(0,o._K)(re.ID,re,4),(0,o.Qr)(le),(0,o.Qr)(de),(0,o.Qr)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:k.NC("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:66,weight:100},menuOpts:{menuId:D.eH.MenubarGoMenu,title:k.NC({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,o.Qr)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:k.NC("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:1090,weight:100},menuOpts:{menuId:D.eH.MenubarGoMenu,title:k.NC({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new N.uy("markersNavigationVisible",!1),ce=o._l.bindToContribution(re.get);(0,o.fK)(new ce({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.u.focus,primary:9,secondary:[1033]}}))},67069:(e,t,i)=>{"use strict";i.d(t,{BT:()=>ee,Bj:()=>J,_k:()=>X});var n=i(83945),s=i(53372),o=i(17344),r=i(47624),a=i(91387),l=i(8037),d=i(48850),h=i(60548),c=i(74246),u=i(2822),g=i(74633),p=i(28928),m=i(35770),f=i(18841),_=i(6823),v=i(37080),b=i(39706),C=i(53186),y=i(30506),w=i(5887),S=i(47116),x=i(23026),L=i(87775),k=i(25371),D=i(85412),N=i(61758),E=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};const I=new S.uy("hasSymbols",!1,(0,w.NC)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),M=(0,L.yh)("ISymbolNavigationService");let A=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=I.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new R(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),s=i.getPosition();if(!n||!s)return;let o=!1,r=!1;for(const a of t.references)if((0,y.Xy)(a.uri,n.uri))o=!0,r=r||p.e.containsPosition(a.range,s);else if(o)break;o&&r||this.reset()}));this._currentState=(0,C.F8)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.e.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,w.NC)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,w.NC)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};A=E([T(0,S.i6),T(1,c.$),T(2,N.lT),T(3,k.d)],A),(0,x.z)(M,A,1),(0,h.fK)(new class extends h._l{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:I,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(M).revealNext(t)}}),D.W.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:I,primary:9,handler(e){e.get(M).reset()}});let R=class{constructor(e){this._listener=new Map,this._disposables=new C.SL,this._onDidChange=new b.Q5,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,C.B9)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,C.F8)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};R=E([T(0,c.$)],R);var O,P,F,B,V,W,H,z,j=i(10843),U=i(60737),K=i(6178),q=i(94943),$=i(97757),G=i(18277),Y=i(53869),Z=i(2706),Q=i(48495);K.BH.appendMenuItem(K.eH.EditorContext,{submenu:K.eH.EditorContextPeek,title:w.NC("peek.submenu","Peek"),group:"navigation",order:100});class X{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof X||!(!g.L.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class J extends h.x1{static all(){return J._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of Z.$.wrap(t.menu))i.id!==K.eH.EditorContext&&i.id!==K.eH.EditorContextPeek||(i.when=S.Ao.and(e.precondition,i.when));return t}constructor(e,t){super(J._patchConfig(t)),this.configuration=e,J._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,o){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(N.lT),a=e.get(c.$),d=e.get($.ek),h=e.get(M),u=e.get(Y.p),g=e.get(L.TG),p=t.getModel(),m=t.getPosition(),f=X.is(i)?i:new X(p,m),_=new l.Dl(t,5),v=(0,s.eP)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{var s;if(!e||_.token.isCancellationRequested)return;let r;if((0,n.Z9)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!J._activeAlternativeCommands.has(e)&&J._allSymbolNavigationCommands.has(e)&&(r=J._allSymbolNavigationCommands.get(e))}const l=e.references.length;if(0===l){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);null===(s=j.O.get(t))||void 0===s||s.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==l||!r)return this._onResult(a,h,t,e,o);J._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>r.runEditorCommand(e,t,i,o).finally((()=>{J._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{r.error(e)})).finally((()=>{_.dispose()}));return d.showWhile(v,250),v}async _onResult(e,t,i,n,s){const o=this._getGoToPreference(i);if(i instanceof u.H||!(this.configuration.openInPeek||"peek"===o&&n.references.length>1)){const r=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===o,l=await this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n,s):n.dispose(),"goto"===o&&t.put(r)}else this._openInPeek(i,n,s)}async _openReference(e,t,i,n,s){let o;if((0,f.vx)(i)&&(o=i.targetSelectionRange),o||(o=i.range),!o)return;const r=await t.openCodeEditor({resource:i.uri,options:{selection:p.e.collapseToStart(o),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(r){if(s){const e=r.getModel(),t=r.createDecorationsCollection([{range:o,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{r.getModel()===e&&t.clear()}),350)}return r}}_openInPeek(e,t,i){const n=_.J.get(e);n&&e.hasModel()?n.toggleWidget(null!==i&&void 0!==i?i:e.getSelection(),(0,s.PG)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}J._allSymbolNavigationCommands=new Map,J._activeAlternativeCommands=new Set;class ee extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.nD)(e.definitionProvider,t,i,n),w.NC("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("noResultWord","No definition found for '{0}'",e.word):w.NC("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,K.r1)(((O=class extends ee{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:O.id,title:{...w.vv("actions.goToDecl.label","Go to Definition"),mnemonicTitle:w.NC({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.u.hasDefinitionProvider,keybinding:[{when:m.u.editorTextFocus,primary:70,weight:100},{when:S.Ao.and(m.u.editorTextFocus,Q.Pf),primary:2118,weight:100}],menu:[{id:K.eH.EditorContext,group:"navigation",order:1.1},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),q.P.registerCommandAlias("editor.action.goToDeclaration",O.id)}}).id="editor.action.revealDefinition",O)),(0,K.r1)(((P=class extends ee{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:P.id,title:w.vv("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:S.Ao.and(m.u.hasDefinitionProvider,m.u.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.u.editorTextFocus,primary:(0,o.gx)(2089,70),weight:100},{when:S.Ao.and(m.u.editorTextFocus,Q.Pf),primary:(0,o.gx)(2089,2118),weight:100}]}),q.P.registerCommandAlias("editor.action.openDeclarationToTheSide",P.id)}}).id="editor.action.revealDefinitionAside",P)),(0,K.r1)(((F=class extends ee{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:F.id,title:w.vv("actions.previewDecl.label","Peek Definition"),precondition:S.Ao.and(m.u.hasDefinitionProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),keybinding:{when:m.u.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:K.eH.EditorContextPeek,group:"peek",order:2}}),q.P.registerCommandAlias("editor.action.previewDeclaration",F.id)}}).id="editor.action.peekDefinition",F));class te extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.zq)(e.declarationProvider,t,i,n),w.NC("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("decl.noResultWord","No declaration found for '{0}'",e.word):w.NC("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,K.r1)(((B=class extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:B.id,title:{...w.vv("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:w.NC({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:S.Ao.and(m.u.hasDeclarationProvider,m.u.isInEmbeddedEditor.toNegated()),menu:[{id:K.eH.EditorContext,group:"navigation",order:1.3},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?w.NC("decl.noResultWord","No declaration found for '{0}'",e.word):w.NC("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",B)),(0,K.r1)(class extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:w.vv("actions.peekDecl.label","Peek Declaration"),precondition:S.Ao.and(m.u.hasDeclarationProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),menu:{id:K.eH.EditorContextPeek,group:"peek",order:3}})}});class ie extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.L3)(e.typeDefinitionProvider,t,i,n),w.NC("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):w.NC("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,K.r1)(((V=class extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:V.ID,title:{...w.vv("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:w.NC({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.u.hasTypeDefinitionProvider,keybinding:{when:m.u.editorTextFocus,primary:0,weight:100},menu:[{id:K.eH.EditorContext,group:"navigation",order:1.4},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",V)),(0,K.r1)(((W=class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:W.ID,title:w.vv("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:S.Ao.and(m.u.hasTypeDefinitionProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),menu:{id:K.eH.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",W));class ne extends J{async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.f4)(e.implementationProvider,t,i,n),w.NC("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?w.NC("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):w.NC("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,K.r1)(((H=class extends ne{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:H.ID,title:{...w.vv("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:w.NC({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.u.hasImplementationProvider,keybinding:{when:m.u.editorTextFocus,primary:2118,weight:100},menu:[{id:K.eH.EditorContext,group:"navigation",order:1.45},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",H)),(0,K.r1)(((z=class extends ne{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:z.ID,title:w.vv("actions.peekImplementation.label","Peek Implementations"),precondition:S.Ao.and(m.u.hasImplementationProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),keybinding:{when:m.u.editorTextFocus,primary:3142,weight:100},menu:{id:K.eH.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",z));class se extends J{_getNoResultFoundMessage(e){return e?w.NC("references.no","No references found for '{0}'",e.word):w.NC("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,K.r1)(class extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...w.vv("goToReferences.label","Go to References"),mnemonicTitle:w.NC({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:S.Ao.and(m.u.hasReferenceProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),keybinding:{when:m.u.editorTextFocus,primary:1094,weight:100},menu:[{id:K.eH.EditorContext,group:"navigation",order:1.45},{id:K.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.aA)(e.referenceProvider,t,i,!0,n),w.NC("ref.title","References"))}}),(0,K.r1)(class extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:w.vv("references.action.label","Peek References"),precondition:S.Ao.and(m.u.hasReferenceProvider,U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated()),menu:{id:K.eH.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new v.oQ(await(0,G.aA)(e.referenceProvider,t,i,!1,n),w.NC("ref.title","References"))}});class oe extends J{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:w.vv("label.generic","Go to Any Symbol"),precondition:S.Ao.and(U.Jy.notInPeekEditor,m.u.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new v.oQ(this._references,w.NC("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&w.NC("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}q.P.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.o},{name:"position",description:"The position at which to start",constraint:g.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,n,s,o,l)=>{(0,r.p_)(a.o.isUri(t)),(0,r.p_)(g.L.isIPosition(i)),(0,r.p_)(Array.isArray(n)),(0,r.p_)("undefined"===typeof s||"string"===typeof s),(0,r.p_)("undefined"===typeof l||"boolean"===typeof l);const h=e.get(c.$),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,d.CL)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends oe{_getNoResultFoundMessage(e){return o||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(o),openInPeek:Boolean(l),openToSide:!1},n,s);e.get(L.TG).invokeFunction(t.run.bind(t),u)}))}}),q.P.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.o},{name:"position",description:"The position at which to start",constraint:g.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,n,s)=>{e.get(q.H).executeCommand("editor.action.goToLocations",t,i,n,s,void 0,!0)}}),q.P.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,r.p_)(a.o.isUri(t)),(0,r.p_)(g.L.isIPosition(i));const n=e.get(Y.p),o=e.get(c.$);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((e=>{if(!(0,d.CL)(e)||!e.hasModel())return;const t=_.J.get(e);if(!t)return;const o=(0,s.PG)((t=>(0,G.aA)(n.referenceProvider,e.getModel(),g.L.lift(i),!1,t).then((e=>new v.oQ(e,w.NC("ref.title","References")))))),r=new p.e(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(r,o,!1))}))}}),q.P.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},18277:(e,t,i)=>{"use strict";i.d(t,{L3:()=>g,aA:()=>p,f4:()=>u,nD:()=>h,zq:()=>c});var n=i(51833),s=i(76946),o=i(16015),r=i(60548),a=i(53869),l=i(37080);async function d(e,t,i,s){const r=i.ordered(e).map((i=>Promise.resolve(s(i,e,t)).then(void 0,(e=>{(0,o.Cp)(e)})))),a=await Promise.all(r);return(0,n.kX)(a.flat())}function h(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function c(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function u(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function g(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function p(e,t,i,n,s){return d(t,i,e,(async(e,t,i)=>{const o=await e.provideReferences(t,i,{includeDeclaration:!0},s);if(!n||!o||2!==o.length)return o;const r=await e.provideReferences(t,i,{includeDeclaration:!1},s);return r&&1===r.length?r:o}))}async function m(e){const t=await e(),i=new l.oQ(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}(0,r.sb)("_executeDefinitionProvider",((e,t,i)=>{const n=h(e.get(a.p).definitionProvider,t,i,s.T.None);return m((()=>n))})),(0,r.sb)("_executeTypeDefinitionProvider",((e,t,i)=>{const n=g(e.get(a.p).typeDefinitionProvider,t,i,s.T.None);return m((()=>n))})),(0,r.sb)("_executeDeclarationProvider",((e,t,i)=>{const n=c(e.get(a.p).declarationProvider,t,i,s.T.None);return m((()=>n))})),(0,r.sb)("_executeReferenceProvider",((e,t,i)=>{const n=p(e.get(a.p).referenceProvider,t,i,!1,s.T.None);return m((()=>n))})),(0,r.sb)("_executeImplementationProvider",((e,t,i)=>{const n=u(e.get(a.p).implementationProvider,t,i,s.T.None);return m((()=>n))}))},18519:(e,t,i)=>{"use strict";i.d(t,{yN:()=>c});var n=i(39706),s=i(53186),o=i(90388);function r(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=r(e.event,t.triggerModifier),this.hasSideBySideModifier=r(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=r(e,t.triggerModifier)}}class d{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?o.dz?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):o.dz?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}class c extends s.JT{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.Q5),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.Q5),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.Q5),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=null!==(i=null===t||void 0===t?void 0:t.extractLineNumberFromMouseEvent)&&void 0!==i?i:e=>e.target.position?e.target.position.lineNumber:0,this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},76198:(e,t,i)=>{"use strict";i.d(t,{S:()=>S});var n,s=i(53372),o=i(16015),r=i(73971),a=i(53186),l=i(8037),d=i(60548),h=i(28928),c=i(91342),u=i(43537),g=i(18519),p=i(60737),m=i(5887),f=i(47116),_=i(67069),v=i(18277),b=i(53869),C=i(13277),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};let S=n=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new a.SL,this.toUnhookForKeyboard=new a.SL,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new g.yN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown((e=>{let[t,i]=e;this.startFindDefinitionFromMouse(t,null!==i&&void 0!==i?i:void 0)}))),this.toUnhook.add(s.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,o.dL)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(s.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(n.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new l.yy(this.editor,15);let a;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,s.PG)((t=>this.findDefinition(e,t)));try{a=await this.previousPromise}catch(c){return void(0,o.dL)(c)}if(!a||!a.length||!n.validate(this.editor))return void this.removeLinkDecorations();const d=a[0].originSelectionRange?h.e.lift(a[0].originSelectionRange):new h.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(a.length>1){let e=d;for(const{originSelectionRange:t}of a)t&&(e=h.e.plusRange(e,t));this.addDecoration(e,(new r.W5).appendText(m.NC("multipleResults","Click to show {0} definitions.",a.length)))}else{const e=a[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:n}=e.range;if(n<1||n>i.getLineCount())return void t.dispose();const s=this.getPreviewValue(i,n,e),o=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(d,s?(new r.W5).appendCodeblock(o||"",s):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let s=i.range;s.endLineNumber-s.startLineNumber>=n.MAX_SOURCE_PREVIEW_LINES&&(s=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,s)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let s=t+1;s<i.endLineNumber;s++){const t=e.getLineFirstNonWhitespaceColumn(s);n=Math.min(n,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${n-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),s=Math.min(e.getLineCount(),t+n.MAX_SOURCE_PREVIEW_LINES);let o=t+1;for(;o<s;o++){if(i===e.getLineFirstNonWhitespaceColumn(o))break}return new h.e(t,1,o+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){var i;return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!((null===(i=e.target.detail.injectedText)||void 0===i?void 0:i.options)instanceof C.HS)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.nD)(this.languageFeaturesService.definitionProvider,i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(88)&&!this.isInPeekEditor(e);return new _.BT({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.i6);return p.Jy.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=n=y([w(1,u.S),w(2,c.O),w(3,b.p)],S),(0,d._K)(S.ID,S,2)},6823:(e,t,i)=>{"use strict";i.d(t,{J:()=>ue});var n,s=i(53372),o=i(16015),r=i(17344),a=i(53186),l=i(74246),d=i(74633),h=i(28928),c=i(60737),u=i(5887),g=i(94943),p=i(30600),m=i(47116),f=i(87775),_=i(85412),v=i(35412),b=i(61758),C=i(87650),y=i(37080),w=i(76595),S=i(41090),x=i(63932),L=i(39706),k=i(32060),D=i(30506),N=i(2822),E=i(13277),T=i(5580),I=i(76326),M=i(91342),A=i(43537),R=i(45337),O=i(24504),P=i(83172),F=i(34835),B=i(25371),V=i(60297),W=i(93617),H=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}};let j=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof y.oQ||e instanceof y.F2}getChildren(e){if(e instanceof y.oQ)return e.groups;if(e instanceof y.F2)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};j=H([z(0,A.S)],j);class U{getHeight(){return 23}getTemplateId(e){return e instanceof y.F2?G.id:Z.id}}let K=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof y.WX){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,D.EZ)(e.uri)}};K=H([z(0,B.d)],K);class q{getId(e){return e instanceof y.WX?e.id:e.uri}}let $=class extends a.JT{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new P.g(i,{supportHighlights:!0})),this.badge=new R.Z(w.R3(i,w.$(".count")),{},W.ku),e.appendChild(i)}set(e,t){const i=(0,D.XX)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,u.NC)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,u.NC)("referenceCount","{0} reference",n))}};$=H([z(1,V.e)],$);let G=n=class{constructor(e){this._instantiationService=e,this.templateId=n.id}renderTemplate(e){return this._instantiationService.createInstance($,e)}renderElement(e,t,i){i.set(e.element,(0,F.mB)(e.filterData))}disposeTemplate(e){e.dispose()}};G.id="FileReferencesRenderer",G=n=H([z(0,f.TG)],G);class Y extends a.JT{constructor(e){super(),this.label=this._register(new O.q(e))}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!F.CL.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,F.mB)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,D.EZ)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Z{constructor(){this.templateId=Z.id}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}Z.id="OneReferenceRenderer";class Q{getWidgetAriaLabel(){return(0,u.NC)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var X=i(46673),J=i(40938),ee=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},te=function(e,t){return function(i,n){t(i,n,e)}};class ie{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.SL,this._callOnModelChange=new a.SL,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n];this._decorationIgnoreSet.has(s.id)||s.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:s.range,options:ie.DecorationOptions}),i.push(n))}this._editor.changeDecorations((n=>{const s=n.deltaDecorations([],t);for(let t=0;t<s.length;t++)this._decorations.set(s[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,n]of this._decorations){const s=t.getDecorationRange(i);if(!s)continue;let o=!1;if(!h.e.equalsRange(s,n.range)){if(h.e.spansMultipleLines(s))o=!0;else{n.range.endColumn-n.range.startColumn!==s.endColumn-s.startColumn&&(o=!0)}o?(this._decorationIgnoreSet.add(n.id),e.push(i)):n.range=s}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}ie.DecorationOptions=E.qx.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class ne{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(n){}return{ratio:t||.7,heightInLines:i||18}}}class se extends v.ls{}let oe=class extends c.vk{constructor(e,t,i,n,s,o,r,l,d,h,c,u){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},o),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=s,this._instantiationService=o,this._peekViewService=r,this._uriLabel=l,this._undoRedoService=d,this._keybindingService=h,this._languageService=c,this._languageConfigurationService=u,this._disposeOnNewModel=new a.SL,this._callOnDispose=new a.SL,this._onDidSelectReference=new L.Q5,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new w.Ro(0,0),this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.B9)(this._preview),(0,a.B9)(this._previewNotAvailableMessage),(0,a.B9)(this._tree),(0,a.B9)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(c.SC)||x.Il.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(c.KY)||x.Il.transparent,primaryHeadingColor:e.getColor(c.IH),secondaryHeadingColor:e.getColor(c.R7)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=w.R3(e,w.$("div.messages")),w.Cp(this._messageContainer),this._splitView=new S.z(e,{orientation:1}),this._previewContainer=w.R3(e,w.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(N.H,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),w.Cp(this._previewContainer),this._previewNotAvailableMessage=new E.yO(u.NC("missingPreviewMessage","no preview available"),I.bd,E.yO.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=w.R3(e,w.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Q,keyboardNavigationLabelProvider:this._instantiationService.createInstance(K),identityProvider:new q,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:c.M8}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(w.mu(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(se,"ReferencesWidget",this._treeContainer,new U,[this._instantiationService.createInstance(G),this._instantiationService.createInstance(Z)],this._instantiationService.createInstance(j),t),this._splitView.addView({onDidChange:L.ju.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},S.M.Distribute),this._splitView.addView({onDidChange:L.ju.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},S.M.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof y.WX&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),w.Cp(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new w.Ro(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.NC("noResults","No results"),w.$Z(this._messageContainer),Promise.resolve(void 0)):(w.Cp(this._messageContainer),this._decorationsManager=new ie(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),w.$Z(this._treeContainer),w.$Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof y.WX?e:e instanceof y.F2&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==k.lg.inMemory?this.setTitle((0,D.Hx)(e.uri),this._uriLabel.getUriLabel((0,D.XX)(e.uri))):this.setTitle(u.NC("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const n=await i;if(!this._model)return void n.dispose();(0,a.B9)(this._previewModelReference);const s=n.object;if(s){const t=this._preview.getModel()===s.textEditorModel?0:1,i=h.e.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}};oe=ee([te(3,X.XE),te(4,A.S),te(5,f.TG),te(6,c.Fw),te(7,V.e),te(8,J.tJ),te(9,B.d),te(10,M.O),te(11,T.c_)],oe);var re,ae=i(35770),le=i(48495),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};const ce=new m.uy("referenceSearchVisible",!1,u.NC("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ue=re=class{static get(e){return e.getContribution(re.ID)}constructor(e,t,i,n,s,o,r,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=o,this._storageService=r,this._configurationService=l,this._disposables=new a.SL,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const s="peekViewLayout",o=ne.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oe,this._editor,this._defaultTreeKeyboardSupport,o),this._widget.setTitle(u.NC("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.NC("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new d.L(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),o=this._widget.isPreviewEditorFocused();await this._widget.setSelection(n),await this._gotoReference(n,!1),s?this._editor.focus():this._widget&&o&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;null===(i=this._widget)||void 0===i||i.hide(),this._ignoreModelChangeEvent=!0;const n=h.e.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{var t;if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(n),this._widget.focusOnReferenceTree();else{const i=re.get(e),o=this._model.clone();this.closeWidget(),e.focus(),null===i||void 0===i||i.toggleWidget(n,(0,s.PG)((e=>Promise.resolve(o))),null!==(t=this._peekMode)&&void 0!==t&&t)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,o.dL)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function ge(e,t){const i=(0,c.rc)(e);if(!i)return;const n=ue.get(i);n&&t(n)}ue.ID="editor.contrib.referencesController",ue=re=de([he(2,m.i6),he(3,l.$),he(4,b.lT),he(5,f.TG),he(6,C.Uy),he(7,p.Ui)],ue),_.W.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,r.gx)(2089,60),when:m.Ao.or(ce,c.Jy.inPeekEditor),handler(e){ge(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.W.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.Ao.or(ce,c.Jy.inPeekEditor),handler(e){ge(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.W.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.Ao.or(ce,c.Jy.inPeekEditor),handler(e){ge(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.P.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.P.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.P.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.P.registerCommand("closeReferenceSearch",(e=>ge(e,(e=>e.closeWidget())))),_.W.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.Ao.and(c.Jy.inPeekEditor,m.Ao.not("config.editor.stablePeek"))}),_.W.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.Ao.and(ce,m.Ao.not("config.editor.stablePeek"),m.Ao.or(ae.u.editorTextFocus,le.Ul.negate()))}),_.W.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.Ao.and(ce,v.CQ,v.PS.negate(),v.uJ.negate()),handler(e){var t;const i=null===(t=e.get(v.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.WX&&ge(e,(e=>e.revealReference(i[0])))}}),_.W.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.Ao.and(ce,v.CQ,v.PS.negate(),v.uJ.negate()),handler(e){var t;const i=null===(t=e.get(v.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.WX&&ge(e,(e=>e.openReference(i[0],!0,!0)))}}),g.P.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(v.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.WX&&ge(e,(e=>e.openReference(i[0],!1,!0)))}))},37080:(e,t,i)=>{"use strict";i.d(t,{F2:()=>p,WX:()=>u,oQ:()=>m});var n=i(16015),s=i(39706),o=i(30441),r=i(53186),a=i(38079),l=i(30506),d=i(78701),h=i(28928),c=i(5887);class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=o.a.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,c.NC)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,c.NC)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:o,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:s-t}),l=new h.e(n,a.startColumn,n,s),d=new h.e(o,r,o,1073741824),c=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:c+u+i.getValueInRange(d).replace(/\s+$/,""),highlight:{start:c.length,end:c.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.Y9}dispose(){(0,r.B9)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,c.NC)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.EZ)(this.uri),this.uri.fsPath):(0,c.NC)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.EZ)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,n.dL)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new s.Q5,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(m._compareReferences);for(const s of e)if(n&&l.SF.isEqual(n.uri,s.uri,!0)||(n=new p(this,s.uri),this.groups.push(n)),0===n.children.length||0!==m._compareReferences(s,n.children[n.children.length-1])){const e=new u(i===s,n,s,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,r.B9)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,c.NC)("aria.result.0","No results found"):1===this.references.length?(0,c.NC)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,c.NC)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,c.NC)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,o=i.parent.groups.length;return 1===o||t&&n+1<s||!t&&n>0?(n=t?(n+1)%s:(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%o,i.parent.groups[n].children[0]):(n=(n+o-1)%o,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:d.Mh(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.e.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.SF.compare(e.uri,t.uri)||h.e.compareRangesUsingStarts(e.range,t.range)}}},48171:(e,t,i)=>{"use strict";i.d(t,{hT:()=>D,Hb:()=>I,mR:()=>M});var n=i(76595),s=i(22367),o=i(51833),r=i(53186),a=i(74633),l=i(28928),d=i(13277),h=i(18841),c=i(16902),u=i(82213),g=i(87775),p=i(25371),m=i(53372),f=i(35770),_=i(47116),v=i(10173);class b extends r.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new n.Ro(10,10);super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new v.f),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=n.Ro.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new n.Ro(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return(null===(e=this._contentPosition)||void 0===e?void 0:e.position)?a.L.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return n.i(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=n.i(t),o=n.D6(t.ownerDocument.body),r=s.top+i.top+i.height;return o.height-r-24}_findPositionPreference(e,t){var i,n;const s=Math.min(null!==(i=this._availableVerticalSpaceBelow(t))&&void 0!==i?i:1/0,e),o=Math.min(null!==(n=this._availableVerticalSpaceAbove(t))&&void 0!==n?n:1/0,e),r=Math.min(Math.max(o,s),e),a=Math.min(e,r);let l;return l=this._editor.getOption(60).above?a<=o?1:2:a<=s?2:1,1===l?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var C,y,w=i(30600),S=i(71940),x=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}};const k=n.$;let D=C=class extends r.JT{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(I,this._editor)),this._participants=[];for(const n of u.Ae.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._computer=new A(this._editor,this._participants),this._hoverOperation=this._register(new c.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new N(this._computer.anchor,t,e.isComplete))}))),this._register(n.mu(this._widget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.RW.onDidChange((()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,n,s){if(!this._widget.position||!this._currentResult)return!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0);return this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!(!e||!this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){if(this._widget.position&&this._currentResult&&this._currentResult.isComplete){if(!e.isComplete)return;if(this._computer.insistOnKeepingHoverVisible&&0===e.messages.length)return}this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=C.computeHoverRanges(this._editor,e.range,t),o=new r.SL,a=o.add(new M(this._keybindingService)),l=document.createDocumentFragment();let d=null;const h={fragment:l,statusBar:a,setColorPicker:e=>d=e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:e=>this._widget.setMinimumDimensions(e),hide:()=>this.hide()};for(const r of this._participants){const e=t.filter((e=>e.owner===r));e.length>0&&o.add(r.renderHoverParts(h,e))}const c=t.some((e=>e.isBeforeContent));if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const e=this._editor.createDecorationsCollection();e.set([{range:s,options:C._DECORATION_OPTIONS}]),o.add((0,r.OF)((()=>{e.clear()})))}this._widget.showAt(l,new T(e.initialMousePosX,e.initialMousePosY,d,i,n,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,c,o))}else o.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const i=e._getViewModel(),s=i.coordinatesConverter,o=s.convertModelRangeToViewRange(t),r=new a.L(o.startLineNumber,i.getLineMinColumn(o.startLineNumber));n=s.convertViewPositionToModelPosition(r).column}const s=t.startLineNumber;let o=t.startColumn,r=i[0].range,d=null;for(const a of i)r=l.e.plusRange(r,a.range),a.range.startLineNumber===s&&a.range.endLineNumber===s&&(o=Math.max(Math.min(o,a.range.startColumn),n)),a.forceShowAtRange&&(d=a.range);return{showAtPosition:d?d.getStartPosition():new a.L(s,t.startColumn),showAtSecondaryPosition:d?d.getStartPosition():new a.L(s,o),highlightRange:r}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const i=n.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;if(6===i.type&&t.push(new u.Qj(0,i.range,e.event.posx,e.event.posy)),7===i.type){const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<n&&t.push(new u.Qj(0,i.range,e.event.posx,e.event.posy))}return 0===t.length?this._startShowingOrUpdateHover(null,0,0,!1,e):(t.sort(((e,t)=>t.priority-e.priority)),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new u.Qj(0,e,void 0,void 0),t,i,n,null)}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};D._DECORATION_OPTIONS=d.qx.register({description:"content-hover-highlight",className:"hoverHighlight"}),D=C=x([L(1,g.TG),L(2,p.d)],D);class N{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.messages.length?this:new E(this,this.anchor,t,this.isComplete)}}class E extends N{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class T{constructor(e,t,i,n,s,o,r,a,l,d){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=n,this.showAtSecondaryPosition=s,this.preferAbove=o,this.stoleFocus=r,this.source=a,this.isBeforeContent=l,this.disposables=d,this.closestMouseDistance=void 0}}let I=y=class extends b{get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}get isVisibleFromKeyboard(){var e;return 1===(null===(e=this._visibleData)||void 0===e?void 0:e.source)}get isVisible(){var e;return null!==(e=this._hoverVisibleKey.get())&&void 0!==e&&e}get isFocused(){var e;return null!==(e=this._hoverFocusedKey.get())&&void 0!==e&&e}constructor(e,t,i,o,r){const a=e.getOption(67)+8,l=new n.Ro(150,a);super(e,l),this._configurationService=i,this._accessibilityService=o,this._keybindingService=r,this._hover=this._register(new s.c8),this._minimumSize=l,this._hoverVisibleKey=f.u.hoverVisible.bindTo(t),this._hoverFocusedKey=f.u.hoverFocused.bindTo(t),n.R3(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const d=this._register(n.go(this._resizableNode.domNode));this._register(d.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(d.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),null===(e=this._visibleData)||void 0===e||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return y.ID}static _applyDimensions(e,t,i){const n="number"===typeof t?`${t}px`:t,s="number"===typeof i?`${i}px`:i;e.style.width=n,e.style.height=s}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return y._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return y._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n="number"===typeof t?`${t}px`:t,s="number"===typeof i?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=s}_setHoverWidgetMaxDimensions(e,t){y._applyMaxDimensions(this._hover.contentsDomNode,e,t),y._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){const e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){const e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,i-10))}_updateResizableNodeMaxDimensions(){var e,t;const i=null!==(e=this._findMaximumRenderingWidth())&&void 0!==e?e:1/0,s=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._resizableNode.maxSize=new n.Ro(i,s),this._setHoverWidgetMaxDimensions(i,s)}_resize(e){var t,i;y._lastDimensions=new n.Ro(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),null===(i=null===(t=this._visibleData)||void 0===t?void 0:t.colorPicker)||void 0===i||i.layout()}_findAvailableSpaceVertically(){var e;const t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition;if(t)return 1===this._positionPreference?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),this._hasHorizontalScrollbar()&&(t+=10),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return n.D6(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if("undefined"===typeof this._visibleData.initialMousePosX||"undefined"===typeof this._visibleData.initialMousePosY)return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=n.i(this.getDomNode());"undefined"===typeof this._visibleData.closestMouseDistance&&(this._visibleData.closestMouseDistance=R(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const s=R(e,t,i.left,i.top,i.width,i.height);return!(s>this._visibleData.closestMouseDistance+4)&&(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,s),!0)}_setHoverData(e){var t;null===(t=this._visibleData)||void 0===t||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,y._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,y._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[null!==(e=this._positionPreference)&&void 0!==e?e:1]}:null}showAt(e,t){var i,o,r,a;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const l=n.wn(this._hover.containerDomNode),d=t.showAtPosition;this._positionPreference=null!==(i=this._findPositionPreference(l,d))&&void 0!==i?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),null===(o=t.colorPicker)||void 0===o||o.layout();const h=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,s.uX)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null!==(a=null===(r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===r?void 0:r.getAriaLabel())&&void 0!==a?a:"");h&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+h)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new n.Ro(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;const i=this._hover.containerDomNode,s=this._hover.contentsDomNode,o=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._setContainerDomNodeDimensions(n.w(i),Math.min(o,e)),this._setContentsDomNodeDimensions(n.w(s),Math.min(o,e-10))}setMinimumDimensions(e){this._minimumSize=new n.Ro(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new n.Ro(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=n.wn(t),s=n.w(t);if(this._resizableNode.layout(i,s),this._setHoverWidgetDimensions(s,i),i=n.wn(t),s=n.w(t),this._contentWidth=s,this._updateMinimumWidth(),this._resizableNode.layout(i,s),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(i)),null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition){const e=n.wn(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};I.ID="editor.contrib.resizableContentHoverWidget",I._lastDimensions=new n.Ro(0,0),I=y=x([L(1,_.i6),L(2,w.Ui),L(3,S.F),L(4,p.d)],I);let M=class extends r.JT{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=k("div.hover-row.status-bar"),this.actionsElement=n.R3(this.hoverElement,k("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(s.Sr.render(this.actionsElement,e,i))}append(e){const t=n.R3(this.actionsElement,e);return this._hasContent=!0,t}};M=x([L(0,p.d)],M);class A{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,o=e.range.endLineNumber===n?e.range.endColumn:s;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>o)return!1}else if(i>t.range.startColumn||t.range.endColumn>o)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return m.Aq.EMPTY;const i=A._getLineDecorations(this._editor,t);return m.Aq.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):m.Aq.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=A._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,o.kX)(t)}}function R(e,t,i,n,s,o){const r=i+s/2,a=n+o/2,l=Math.max(Math.abs(e-r)-s/2,0),d=Math.max(Math.abs(t-a)-o/2,0);return Math.sqrt(l*l+d*d)}},94293:(e,t,i)=>{"use strict";i.d(t,{R8:()=>d});var n=i(53372),s=i(76946),o=i(16015),r=i(60548),a=i(53869);class l{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function d(e,t,i,s){const r=e.ordered(t).map(((e,n)=>async function(e,t,i,n,s){try{const o=await Promise.resolve(e.provideHover(i,n,s));if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new l(e,o,t)}catch(r){(0,o.Cp)(r)}}(e,n,t,i,s)));return n.Aq.fromPromises(r).coalesce()}(0,r.sb)("_executeHoverProvider",((e,t,i)=>function(e,t,i,n){return d(e,t,i,n).map((e=>e.hover)).toPromise()}(e.get(a.p).hoverProvider,t,i,s.T.None)))},81584:(e,t,i)=>{"use strict";i.d(t,{c:()=>Z});var n=i(17344),s=i(53186),o=i(60548),r=i(28928),a=i(35770),l=i(91342),d=i(76198),h=i(48171),c=i(76595),u=i(51833),g=i(73971),p=i(35978),m=i(16902),f=i(22367),_=i(24032);const v=c.$;class b extends s.JT{constructor(e,t,i){super(),this._renderDisposeables=this._register(new s.SL),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new f.c8),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new p.$({editor:this._editor},t,i)),this._computer=new C(this._editor),this._hoverOperation=this._register(new m.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return b.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const e=v("div.hover-row.markdown-hover"),t=c.R3(e,v("div.hover-contents")),s=this._renderDisposeables.add(this._markdownRenderer.render(n.value));t.appendChild(s.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(67),o=i-n-(this._hover.containerDomNode.clientHeight-s)/2,r=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${r}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(o),0)}px`}}b.ID="editor.contrib.modesGlyphHoverWidget";class C{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=_.U.Center}computeSync(){var e,t;const i=e=>({value:e}),n=this._editor.getLineDecorations(this._lineNumber),s=[],o="lineNo"===this._laneOrLine;if(!n)return s;for(const r of n){const n=null!==(t=null===(e=r.options.glyphMargin)||void 0===e?void 0:e.position)&&void 0!==t?t:_.U.Center;if(!o&&n!==this._laneOrLine)continue;const a=o?r.options.lineNumberHoverMessage:r.options.glyphMarginHoverMessage;a&&!(0,g.CP)(a)&&s.push(...(0,u._2)(a).map(i))}return s}}var y=i(87775),w=i(34912),S=i(6009),x=i(46673),L=i(82213),k=i(58354),D=i(53372),N=i(16015),E=i(30506),T=i(53869),I=i(79316),M=i(87851),A=i(30796),R=i(33215),O=i(95851),P=i(5887),F=i(76390),B=i(97757),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};const H=c.$;class z{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const j={type:1,filter:{include:R.yN.QuickFix},triggerAction:R.aQ.QuickFixHover};let U=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),o=[];for(const a of t){const t=a.range.startLineNumber===n?a.range.startColumn:1,l=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new r.e(e.range.startLineNumber,t,e.range.startLineNumber,l);o.push(new z(this,h,d))}return o}renderHoverParts(e,t){if(!t.length)return s.JT.None;const i=new s.SL;t.forEach((t=>e.fragment.appendChild(this.renderMarkerHover(t,i))));const n=1===t.length?t[0]:t.sort(((e,t)=>F.ZL.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=H("div.hover-row"),n=c.R3(i,H("div.marker.hover-contents")),{source:s,message:o,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=c.R3(n,H("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=o,s||r)if(r&&"string"!==typeof r){const e=H("span");if(s){c.R3(e,H("span")).innerText=s}const i=c.R3(e,H("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(c.nm(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));c.R3(i,H("span")).innerText=r.value;const o=c.R3(n,e);o.style.opacity="0.6",o.style.paddingLeft="6px"}else{const e=c.R3(n,H("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=s&&r?`${s}(${r})`:s||`(${r})`}if((0,u.Of)(a))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of a){const e=c.R3(n,H("div"));e.style.marginTop="8px";const i=c.R3(e,H("a"));i.innerText=`${(0,E.EZ)(h)}(${u}, ${g}): `,i.style.cursor="pointer",t.add(c.nm(i,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(N.dL)})));const s=c.R3(e,H("span"));s.innerText=d,this._editor.applyFontInfo(s)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===F.ZL.Error||t.marker.severity===F.ZL.Warning||t.marker.severity===F.ZL.Info){const i=O.c.get(this._editor);i&&e.statusBar.addAction({label:P.NC("view problem","View Problem"),commandId:O.v.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const n=e.statusBar.append(H("div"));this.recentMarkerCodeActionsInfo&&(F.H0.makeKey(this.recentMarkerCodeActionsInfo.marker)===F.H0.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=P.NC("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?s.JT.None:(0,D.Vg)((()=>n.textContent=P.NC("checkingForQuickFixes","Checking for quick fixes...")),200,i);n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,s.OF)((()=>r.cancel()))),r.then((r=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(n.textContent=P.NC("noQuickFixes","No quick fixes available"));n.style.display="none";let a=!1;i.add((0,s.OF)((()=>{a||r.dispose()}))),e.statusBar.addAction({label:P.NC("quick fixes","Quick Fix..."),commandId:M.cz,run:t=>{a=!0;const i=A.G.get(this._editor),n=c.i(t);e.hide(),null===i||void 0===i||i.showCodeActions(j,r,{x:n.left,y:n.top,width:n.width,height:n.height})}})}),N.dL)}}getCodeActions(e){return(0,D.PG)((t=>(0,M.aI)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new r.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),j,B.Ex.None,t)))}};U=V([W(1,I.i),W(2,w.v),W(3,T.p)],U);var K,q=i(12062),$=i(25371),G=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Y=function(e,t){return function(i,n){t(i,n,e)}};let Z=K=class extends s.JT{constructor(e,t,i,n,o){super(),this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._keybindingService=o,this._listenersStore=new s.SL,this._hoverState={mouseDown:!1,contentHoverFocused:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new D.pY((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(K.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._hoverState.mouseDown=!0;const i=e.target;9!==i.type||i.detail!==h.Hb.ID?12===i.type&&i.detail===b.ID||(12!==i.type&&(this._hoverState.contentHoverFocused=!1),(null===(t=this._contentWidget)||void 0===t?void 0:t.widget.isResizing)||this._hideWidgets()):this._hoverState.contentHoverFocused=!0}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){var t,i;this._cancelScheduler();const n=e.event.browserEvent.relatedTarget;(null===(t=this._contentWidget)||void 0===t?void 0:t.widget.isResizing)||(null===(i=this._contentWidget)||void 0===i?void 0:i.containsNode(n))||this._hideWidgets()}_isMouseOverWidget(e){var t,i,n,s,o;const r=e.target,a=this._hoverSettings.sticky;return!(!a||9!==r.type||r.detail!==h.Hb.ID)||(!(!a||!(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(null===(i=e.event.browserEvent.view)||void 0===i?void 0:i.document.activeElement))||(null===(s=null===(n=e.event.browserEvent.view)||void 0===n?void 0:n.getSelection())||void 0===s?void 0:s.isCollapsed))||(!(a||9!==r.type||r.detail!==h.Hb.ID||!(null===(o=this._contentWidget)||void 0===o?void 0:o.isColorPickerVisible))||!(!a||12!==r.type||r.detail!==b.ID)))}_onEditorMouseMove(e){var t,i,n,s;if(this._mouseMoveEvent=e,(null===(t=this._contentWidget)||void 0===t?void 0:t.isFocused)||(null===(i=this._contentWidget)||void 0===i?void 0:i.isResizing))return;if(this._hoverState.mouseDown&&this._hoverState.contentHoverFocused)return;const o=this._hoverSettings.sticky;if(o&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isVisibleFromKeyboard))return;if(this._isMouseOverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const r=this._hoverSettings.hidingDelay;(null===(s=this._contentWidget)||void 0===s?void 0:s.isVisible)&&o&&r>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(r):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t,i,n,s;if(!e)return;const o=e.target,r=null===(t=o.element)||void 0===t?void 0:t.classList.contains("colorpicker-color-decoration"),a=this._editor.getOption(148),l=this._hoverSettings.enabled,d=this._hoverState.activatedByDecoratorClick;if(r&&("click"===a&&!d||"hover"===a&&!l||"clickAndHover"===a&&!l&&!d)||!r&&!l&&!d)return void this._hideWidgets();if(this._getOrCreateContentWidget().showsOrWillShow(e))null===(i=this._glyphWidget)||void 0===i||i.hide();else if(2===o.type&&o.position&&o.detail.glyphMarginLane){null===(n=this._contentWidget)||void 0===n||n.hide();this._getOrCreateGlyphWidget().startShowingAt(o.position.lineNumber,o.detail.glyphMarginLane)}else if(3===o.type&&o.position){null===(s=this._contentWidget)||void 0===s||s.hide();this._getOrCreateGlyphWidget().startShowingAt(o.position.lineNumber,"lineNo")}else this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=1===i.kind||2===i.kind&&"editor.action.showHover"===i.commandId&&(null===(t=this._contentWidget)||void 0===t?void 0:t.isVisible);5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&this._hoverState.contentHoverFocused&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible)||q.QG.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._hoverState.contentHoverFocused=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(h.hT,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=new b(this._editor,this._languageService,this._openerService)),this._glyphWidget}showContentHover(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}focus(){var e;null===(e=this._contentWidget)||void 0===e||e.focus()}scrollUp(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollUp()}scrollDown(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollDown()}scrollLeft(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollLeft()}scrollRight(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollRight()}pageUp(){var e;null===(e=this._contentWidget)||void 0===e||e.pageUp()}pageDown(){var e;null===(e=this._contentWidget)||void 0===e||e.pageDown()}goToTop(){var e;null===(e=this._contentWidget)||void 0===e||e.goToTop()}goToBottom(){var e;null===(e=this._contentWidget)||void 0===e||e.goToBottom()}get isColorPickerVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};var Q;Z.ID="editor.contrib.hover",Z=K=G([Y(1,y.TG),Y(2,w.v),Y(3,l.O),Y(4,$.d)],Z),function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(Q||(Q={}));class X extends o.R6{constructor(){super({id:"editor.action.showHover",label:P.NC({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[Q.NoAutoFocus,Q.FocusIfVisible,Q.AutoFocusImmediately],enumDescriptions:[P.NC("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),P.NC("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),P.NC("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:Q.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:a.u.editorTextFocus,primary:(0,n.gx)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=Z.get(t);if(!n)return;const s=null===i||void 0===i?void 0:i.focus;let o=Q.FocusIfVisible;Object.values(Q).includes(s)?o=s:"boolean"===typeof s&&s&&(o=Q.AutoFocusImmediately);const a=e=>{const i=t.getPosition(),s=new r.e(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==Q.NoAutoFocus?n.focus():a(l):a(l||o===Q.AutoFocusImmediately)}}class J extends o.R6{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:P.NC({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Z.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new r.e(n.lineNumber,n.column,n.lineNumber,n.column),o=d.S.get(t);if(!o)return;o.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(s,1,1,!0)}))}}class ee extends o.R6{constructor(){super({id:"editor.action.scrollUpHover",label:P.NC({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:16,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollUp()}}class te extends o.R6{constructor(){super({id:"editor.action.scrollDownHover",label:P.NC({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:18,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollDown()}}class ie extends o.R6{constructor(){super({id:"editor.action.scrollLeftHover",label:P.NC({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:15,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollLeft()}}class ne extends o.R6{constructor(){super({id:"editor.action.scrollRightHover",label:P.NC({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:17,weight:100}})}run(e,t){const i=Z.get(t);i&&i.scrollRight()}}class se extends o.R6{constructor(){super({id:"editor.action.pageUpHover",label:P.NC({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const i=Z.get(t);i&&i.pageUp()}}class oe extends o.R6{constructor(){super({id:"editor.action.pageDownHover",label:P.NC({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const i=Z.get(t);i&&i.pageDown()}}class re extends o.R6{constructor(){super({id:"editor.action.goToTopHover",label:P.NC({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const i=Z.get(t);i&&i.goToTop()}}class ae extends o.R6{constructor(){super({id:"editor.action.goToBottomHover",label:P.NC({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const i=Z.get(t);i&&i.goToBottom()}}(0,o._K)(Z.ID,Z,2),(0,o.Qr)(X),(0,o.Qr)(J),(0,o.Qr)(ee),(0,o.Qr)(te),(0,o.Qr)(ie),(0,o.Qr)(ne),(0,o.Qr)(se),(0,o.Qr)(oe),(0,o.Qr)(re),(0,o.Qr)(ae),L.Ae.register(k.D5),L.Ae.register(U),(0,x.Ic)(((e,t)=>{const i=e.getColor(S.CNo);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))}))},16902:(e,t,i)=>{"use strict";i.d(t,{H:()=>l});var n=i(53372),s=i(16015),o=i(39706),r=i(53186);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class l extends r.JT{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new o.Q5),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new n.pY((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new n.pY((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new n.pY((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,n.zS)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,s.dL)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},82213:(e,t,i)=>{"use strict";i.d(t,{Ae:()=>o,Qj:()=>n,YM:()=>s});class n{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class s{constructor(e,t,i,n,s,o){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=o,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},58354:(e,t,i)=>{"use strict";i.d(t,{D5:()=>y,c:()=>w,hU:()=>C});var n=i(76595),s=i(51833),o=i(53372),r=i(73971),a=i(53186),l=i(35978),d=i(74633),h=i(28928),c=i(91342),u=i(94293),g=i(5887),p=i(30600),m=i(34912),f=i(53869),_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};const b=n.$;class C{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let y=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=3}createLoadingMessage(e){return new C(this,e.range,[(new r.W5).appendText(g.NC("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),a=[];let l=1e3;const d=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(117),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let m=!1;u>=0&&d>u&&e.range.startColumn>=u&&(m=!0,a.push(new C(this,e.range,[{value:g.NC("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,l++))),!m&&"number"===typeof p&&d>=p&&a.push(new C(this,e.range,[{value:g.NC("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,l++));let f=!1;for(const g of t){const t=g.range.startLineNumber===n?g.range.startColumn:1,i=g.range.endLineNumber===n?g.range.endColumn:o,d=g.options.hoverMessage;if(!d||(0,r.CP)(d))continue;g.options.beforeContentClassName&&(f=!0);const c=new h.e(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new C(this,c,(0,s._2)(d),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return o.Aq.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return o.Aq.EMPTY;const s=new d.L(e.range.startLineNumber,e.range.startColumn);return(0,u.R8)(this._languageFeaturesService.hoverProvider,n,s,i).filter((e=>!(0,r.CP)(e.hover.contents))).map((t=>{const i=t.hover.range?h.e.lift(t.hover.range):e.range;return new C(this,i,t.hover.contents,!1,t.ordinal)}))}renderHoverParts(e,t){return w(e,t,this._editor,this._languageService,this._openerService)}};function w(e,t,i,s,o){t.sort(((e,t)=>e.ordinal-t.ordinal));const d=new a.SL;for(const a of t)for(const t of a.contents){if((0,r.CP)(t))continue;const a=b("div.hover-row.markdown-hover"),h=n.R3(a,b("div.hover-contents")),c=d.add(new l.$({editor:i},s,o));d.add(c.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()})));const u=d.add(c.render(t));h.appendChild(u.element),e.fragment.appendChild(a)}return d}y=_([v(1,c.O),v(2,m.v),v(3,p.Ui),v(4,f.p)],y)},49116:(e,t,i)=>{"use strict";var n=i(53372),s=i(16015),o=i(8037),r=i(60548),a=i(28928),l=i(24854),d=i(35770),h=i(13277),c=i(69115),u=i(5887);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.Y(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.Y(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var i;null===(i=this.currentRequest)||void 0===i||i.cancel();const r=this.editor.getSelection(),d=this.editor.getModel();if(!d||!r)return;let h=r;if(h.startLineNumber!==h.endLineNumber)return;const c=new o.yy(this.editor,5),u=d.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=(0,n.PG)((e=>this.editorWorkerService.navigateValueSet(u,h,t))),this.currentRequest.then((t=>{var i;if(!t||!t.range||!t.value)return;if(!c.validate(this.editor))return;const o=a.e.lift(t.range);let r=t.range;const d=t.value.length-(h.endColumn-h.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},d>1&&(h=new l.Y(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+d-1));const u=new g(o,h,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),null===(i=this.decorationRemover)||void 0===i||i.cancel(),this.decorationRemover=(0,n.Vs)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(s.dL)})).catch(s.dL)):Promise.resolve(void 0)}};_.ID="editor.contrib.inPlaceReplaceController",_.DECORATION=h.qx.register({description:"in-place-replace",className:"valueSetReplacement"}),_=p=m([f(1,c.p)],_);class v extends r.R6{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.NC("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class b extends r.R6{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.NC("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:d.u.writable,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,r._K)(_.ID,_,4),(0,r.Qr)(v),(0,r.Qr)(b)},48628:(e,t,i)=>{"use strict";var n=i(53186),s=i(78701),o=i(60548),r=i(80869),a=i(28928),l=i(35770),d=i(5580),h=i(23058),c=i(27847),u=i(5887),g=i(2033),p=i(62553),m=i(56154),f=i(42156),_=i(24854);function v(e,t,i,n,o){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const a=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!a)return[];for(n=Math.min(n,e.getLineCount());i<=n&&a.unIndentedLinePattern;){const t=e.getLineContent(i);if(!a.unIndentedLinePattern.test(t))break;i++}if(i>n-1)return[];const{tabSize:l,indentSize:d,insertSpaces:h}=e.getOptions(),c=(e,t)=>(t=t||1,r.U.shiftIndent(e,e.length+t,l,d,h)),u=(e,t)=>(t=t||1,r.U.unshiftIndent(e,e.length+t,l,d,h)),g=[];let p;const v=e.getLineContent(i);let b=v;if(void 0!==o&&null!==o){p=o;const e=s.V8(v);b=p+v.substring(e.length),a.decreaseIndentPattern&&a.decreaseIndentPattern.test(b)&&(p=u(p),b=p+v.substring(e.length)),v!==b&&g.push(m.h.replaceMove(new _.Y(i,1,i,e.length+1),(0,f.x)(p,d,h)))}else p=s.V8(v);let C=p;a.increaseIndentPattern&&a.increaseIndentPattern.test(b)?(C=c(C),p=c(p)):a.indentNextLinePattern&&a.indentNextLinePattern.test(b)&&(C=c(C));for(let r=++i;r<=n;r++){const t=e.getLineContent(r),i=s.V8(t),n=C+t.substring(i.length);a.decreaseIndentPattern&&a.decreaseIndentPattern.test(n)&&(C=u(C),p=u(p)),i!==C&&g.push(m.h.replaceMove(new _.Y(r,1,r,i.length+1),(0,f.x)(C,d,h))),a.unIndentedLinePattern&&a.unIndentedLinePattern.test(t)||(a.increaseIndentPattern&&a.increaseIndentPattern.test(n)?(p=c(p),C=p):C=a.indentNextLinePattern&&a.indentNextLinePattern.test(n)?c(C):p)}return g}var b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y extends o.R6{constructor(){super({id:y.ID,label:u.NC("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.u.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const o=new A(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}y.ID="editor.action.indentationToSpaces";class w extends o.R6{constructor(){super({id:w.ID,label:u.NC("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.u.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const o=new R(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}w.ID="editor.action.indentationToTabs";class S extends o.R6{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.eJ),n=e.get(h.q),s=t.getModel();if(!s)return;const o=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),r=s.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===o.tabSize&&e===r.tabSize?u.NC("configuredTabSize","Configured Tab Size"):e===o.tabSize?u.NC("defaultTabSize","Default Tab Size"):e===r.tabSize?u.NC("currentTabSize","Current Tab Size"):void 0}))),l=Math.min(s.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.NC({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&s&&!s.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?s.updateOptions({tabSize:t}):s.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class x extends S{constructor(){super(!1,!1,{id:x.ID,label:u.NC("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}x.ID="editor.action.indentUsingTabs";class L extends S{constructor(){super(!0,!1,{id:L.ID,label:u.NC("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}L.ID="editor.action.indentUsingSpaces";class k extends S{constructor(){super(!0,!0,{id:k.ID,label:u.NC("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}}k.ID="editor.action.changeTabDisplaySize";class D extends o.R6{constructor(){super({id:D.ID,label:u.NC("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(h.q),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}D.ID="editor.action.detectIndentation";class N extends o.R6{constructor(){super({id:"editor.action.reindentlines",label:u.NC("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.u.writable})}run(e,t){const i=e.get(d.c_),n=t.getModel();if(!n)return;const s=v(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class E extends o.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:u.NC("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.u.writable})}run(e,t){const i=e.get(d.c_),n=t.getModel();if(!n)return;const s=t.getSelections();if(null===s)return;const o=[];for(const r of s){let e=r.startLineNumber,t=r.endLineNumber;if(e!==t&&1===r.endColumn&&t--,1===e){if(e===t)continue}else e--;const s=v(n,i,e,t);o.push(...s)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class T{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(a.e.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let I=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new n.SL,this.callOnModel=new n.SL,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((e=>{let{range:t}=e;this.trigger(t)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(12),{tabSize:o,indentSize:l,insertSpaces:d}=i.getOptions(),h=[],u={shiftIndent:e=>r.U.shiftIndent(e,e.length+1,o,l,d),unshiftIndent:e=>r.U.unshiftIndent(e,e.length+1,o,l,d)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.n8)(n,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=s.V8(m),n=c.Y(e,o);if(n!==c.Y(t,o)){const e=c.J(n,o,d);h.push({range:new a.e(g,1,g,t.length+1),text:e}),m=e+m.substr(t.length)}else{const e=(0,p.tI)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},r=(0,p.n8)(n,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==r){const t=c.Y(r,o),n=c.Y(s.V8(i.getLineContent(g+1)),o);if(t!==n){const r=t-n;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),n=s.V8(e),l=c.Y(n,o)+r,u=c.J(l,o,d);u!==n&&h.push({range:new a.e(t,1,t,n.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new T(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let s="";for(let r=0;r<i;r++)s+=" ";const o=new RegExp(s,"gi");for(let r=1,l=e.getLineCount();r<=l;r++){let i=e.getLineFirstNonWhitespaceColumn(r);if(0===i&&(i=e.getLineMaxColumn(r)),1===i)continue;const l=new a.e(r,1,r,i),d=e.getValueInRange(l),h=n?d.replace(/\t/gi,s):d.replace(o,"\t");t.addEditOperation(l,h)}}I.ID="editor.contrib.autoIndentOnPaste",I=b([C(1,d.c_)],I);class A{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class R{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,o._K)(I.ID,I,2),(0,o.Qr)(y),(0,o.Qr)(w),(0,o.Qr)(x),(0,o.Qr)(L),(0,o.Qr)(k),(0,o.Qr)(D),(0,o.Qr)(N),(0,o.Qr)(E)},27847:(e,t,i)=>{"use strict";function n(e,t){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;return i}function s(e,t,i){e=e<0?0:e;let n="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)n+="\t"}for(let s=0;s<e;s++)n+=" ";return n}i.d(t,{J:()=>s,Y:()=>n})},40335:(e,t,i)=>{"use strict";var n=i(60548),s=i(82213),o=i(76595),r=i(51833),a=i(53372),l=i(76946),d=i(16015),h=i(53186),c=i(38079),u=i(47624),g=i(91387),p=i(76046),m=i(52432),f=i(67364),_=i(56154),v=i(28928),b=i(18841),C=i(24032),y=i(13277),w=i(14386),S=i(53869),x=i(43537),L=i(18519),k=i(74633),D=i(32060);class N{constructor(e,t){this.range=e,this.direction=t}}class E{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new E(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){var t,i,n;try{const s=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null===s||void 0===s?void 0:s.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null===s||void 0===s?void 0:s.label)&&void 0!==i?i:this.hint.label,this.hint.textEdits=null!==(n=null===s||void 0===s?void 0:s.textEdits)&&void 0!==n?n:this.hint.textEdits,this._isResolved=!0}catch(s){(0,d.Cp)(s),this._isResolved=!1}}}class T{static async create(e,t,i,n){const s=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const o=await e.provideInlayHints(t,i,n);((null===o||void 0===o?void 0:o.hints.length)||e.onDidChangeInlayHints)&&s.push([null!==o&&void 0!==o?o:T._emptyInlayHintList,e])}catch(o){(0,d.Cp)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new d.FU;return new T(i,s,t)}constructor(e,t,i){this._disposables=new h.SL,this.ranges=e,this.provider=new Set;const n=[];for(const[s,o]of t){this._disposables.add(s),this.provider.add(o);for(const e of s.hints){const t=i.validatePosition(e.position);let s="before";const r=T._getRangeAtPosition(i,t);let a;r.getStartPosition().isBefore(t)?(a=v.e.fromPositions(r.getStartPosition(),t),s="after"):(a=v.e.fromPositions(t,r.getEndPosition()),s="before"),n.push(new E(e,new N(a,s),o))}}this.items=n.sort(((e,t)=>k.L.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new v.e(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),o=t.column-1,r=s.findTokenIndexAtOffset(o);let a=s.getStartOffset(r),l=s.getEndOffset(r);return l-a===1&&(a===o&&r>1?(a=s.getStartOffset(r-1),l=s.getEndOffset(r-1)):l===o&&r<s.getCount()-1&&(a=s.getStartOffset(r+1),l=s.getEndOffset(r+1))),new v.e(i,a+1,i,l+1)}}T._emptyInlayHintList=Object.freeze({dispose(){},hints:[]});var I,M=i(31368),A=i(94943),R=i(23026),O=i(87775),P=i(61758),F=i(6009),B=i(46673),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};class H{constructor(){this._entries=new c.z6(50)}get(e){const t=H._key(e);return this._entries.get(t)}set(e,t){const i=H._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const z=(0,O.yh)("IInlayHintsCache");(0,R.z)(z,H,1);class j{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let K=I=class{static get(e){var t;return null!==(t=e.getContribution(I.ID))&&void 0!==t?t:void 0}constructor(e,t,i,n,s,o,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=o,this._instaService=r,this._disposables=new h.SL,this._sessionDisposables=new h.SL,this._decorationsMetadata=new Map,this._ruleFactory=new p.t7(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(141)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(141);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(o._q.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),r.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,h.OF)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const s=new Set,r=new a.pY((async()=>{const e=Date.now();null===n||void 0===n||n.dispose(!0),n=new l.A;const i=t.onWillDispose((()=>null===n||void 0===n?void 0:n.cancel()));try{const i=n.token,o=await T.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(r.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void o.dispose();for(const e of o.provider)"function"!==typeof e.onDidChangeInlayHints||s.has(e)||(s.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{r.isScheduled()||r.schedule()}))));this._sessionDisposables.add(o),this._updateHintsDecorators(o.ranges,o.items),this._cacheHintsForFastRestore(t)}catch(o){(0,d.dL)(o)}finally{n.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(r),this._sessionDisposables.add((0,h.OF)((()=>null===n||void 0===n?void 0:n.dispose(!0)))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&r.isScheduled()||r.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{null===n||void 0===n||n.cancel();const t=Math.max(r.delay,1250);r.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>r.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new h.SL,t=e.add(new L.yN(this._editor)),i=new h.SL;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),s=this._editor.getModel();if(!n||!s)return void i.clear();const o=new l.A;i.add((0,h.OF)((()=>o.dispose(!0)))),n.item.resolve(o.token),this._activeInlayHintPart=n.part.command||n.part.location?new U(n,t.hasTriggerModifier):void 0;const r=s.validatePosition(n.item.hint.position).lineNumber,a=new v.e(r,1,r,s.getLineMaxColumn(r)),d=this._getInlineHintsForRange(a);this._updateHintsDecorators([a],d),i.add((0,h.OF)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([a],d)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(M.K,e,this._editor,i.location):b.mY.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(l.T.None),(0,r.Of)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>_.h.replace(v.e.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(M.u,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.HS&&(null===i||void 0===i?void 0:i.attachedData)instanceof j?i.attachedData:void 0}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(n){this._notificationService.notify({severity:P.zb.Error,source:t.provider.displayName,message:n})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const e=new N(s,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(v.e.compareRangesUsingStarts)){const t=e.validateRange(new v.e(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&v.e.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=v.e.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){var i,n;const s=[],o=(e,t,i,n,o)=>{const r={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o};s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?r:void 0}}})},a=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(l/3|0)+"px",display:"inline-block"});o(e,i,"\u200a",t?C.RM.Right:C.RM.None)},{fontSize:l,fontFamily:d,padding:h,isUniform:c}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,d);let g={line:0,totalLen:0};for(const m of t){if(g.line!==m.anchor.range.startLineNumber&&(g={line:m.anchor.range.startLineNumber,totalLen:0}),g.totalLen>I._MAX_LABEL_LEN)continue;m.hint.paddingLeft&&a(m,!1);const e="string"===typeof m.hint.label?[{label:m.hint.label}]:m.hint.label;for(let t=0;t<e.length;t++){const n=e[t],s=0===t,a=t===e.length-1,d={fontSize:`${l}px`,fontFamily:`var(${u}), ${f.hL.fontFamily}`,verticalAlign:c?"baseline":"middle",unicodeBidi:"isolate"};(0,r.Of)(m.hint.textEdits)&&(d.cursor="default"),this._fillInColors(d,m.hint),(n.command||n.location)&&(null===(i=this._activeInlayHintPart)||void 0===i?void 0:i.part.item)===m&&this._activeInlayHintPart.part.index===t&&(d.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(d.color=(0,B.EN)(F._Yy),d.cursor="pointer")),h&&(s&&a?(d.padding=`1px ${0|Math.max(1,l/4)}px`,d.borderRadius=(l/4|0)+"px"):s?(d.padding=`1px 0 1px ${0|Math.max(1,l/4)}px`,d.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):a?(d.padding=`1px ${0|Math.max(1,l/4)}px 1px 0`,d.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):d.padding="1px 0 1px 0");let p=n.label;g.totalLen+=p.length;let _=!1;const v=g.totalLen-I._MAX_LABEL_LEN;if(v>0&&(p=p.slice(0,-v)+"\u2026",_=!0),o(m,this._ruleFactory.createClassNameRef(d),q(p),a&&!m.hint.paddingRight?C.RM.Right:C.RM.None,new j(m,t)),_)break}if(m.hint.paddingRight&&a(m,!0),s.length>I._MAX_DECORATORS)break}const p=[];for(const[r,m]of this._decorationsMetadata){const t=null===(n=this._editor.getModel())||void 0===n?void 0:n.getDecorationRange(r);t&&e.some((e=>e.containsRange(t)))&&(p.push(r),m.classNameRef.dispose(),this._decorationsMetadata.delete(r))}const _=m.Z.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(p,s.map((e=>e.decoration)));for(let i=0;i<t.length;i++){const e=s[i];this._decorationsMetadata.set(t[i],e)}})),_.restore(this._editor)}_fillInColors(e,t){t.kind===b.gl.Parameter?(e.backgroundColor=(0,B.EN)(F.phM),e.color=(0,B.EN)(F.HCL)):t.kind===b.gl.Type?(e.backgroundColor=(0,B.EN)(F.bKB),e.color=(0,B.EN)(F.hX8)):(e.backgroundColor=(0,B.EN)(F.PpC),e.color=(0,B.EN)(F.VVv))}_getLayoutInfo(){const e=this._editor.getOption(141),t=e.padding,i=this._editor.getOption(52),n=this._editor.getOption(49);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const o=e.fontFamily||n;return{fontSize:s,fontFamily:o,padding:t,isUniform:!t&&o===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function q(e){return e.replace(/[ \t]/g,"\xa0")}K.ID="editor.contrib.InlayHints",K._MAX_DECORATORS=1500,K._MAX_LABEL_LEN=43,K=I=V([W(1,S.p),W(2,w.A),W(3,z),W(4,A.H),W(5,P.lT),W(6,O.TG)],K),A.P.registerCommand("_executeInlayHintProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[s,o]=i;(0,u.p_)(g.o.isUri(s)),(0,u.p_)(v.e.isIRange(o));const{inlayHintsProvider:r}=e.get(S.p),a=await e.get(x.S).createModelReference(s);try{const e=await T.create(r,a.object.textEditorModel,[v.e.lift(o)],l.T.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{a.dispose()}}));var $=i(73971),G=i(91342),Y=i(94293),Z=i(58354),Q=i(30600),X=i(34912),J=i(5887),ee=i(90388),te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};class ne extends s.YM{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let se=class extends Z.D5{constructor(e,t,i,n,s,o){super(e,t,i,n,o),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!K.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.HS&&i.attachedData instanceof j?new ne(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof ne?new a.Aq((async t=>{const{part:n}=e;if(await n.item.resolve(i),i.isCancellationRequested)return;let s,o;if("string"===typeof n.item.hint.tooltip?s=(new $.W5).appendText(n.item.hint.tooltip):n.item.hint.tooltip&&(s=n.item.hint.tooltip),s&&t.emitOne(new Z.hU(this,e.range,[s],!1,0)),(0,r.Of)(n.item.hint.textEdits)&&t.emitOne(new Z.hU(this,e.range,[(new $.W5).appendText((0,J.NC)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof n.part.tooltip?o=(new $.W5).appendText(n.part.tooltip):n.part.tooltip&&(o=n.part.tooltip),o&&t.emitOne(new Z.hU(this,e.range,[o],!1,1)),n.part.location||n.part.command){let i;const s="altKey"===this._editor.getOption(78)?ee.dz?(0,J.NC)("links.navigate.kb.meta.mac","cmd + click"):(0,J.NC)("links.navigate.kb.meta","ctrl + click"):ee.dz?(0,J.NC)("links.navigate.kb.alt.mac","option + click"):(0,J.NC)("links.navigate.kb.alt","alt + click");n.part.location&&n.part.command?i=(new $.W5).appendText((0,J.NC)("hint.defAndCommand","Go to Definition ({0}), right click for more",s)):n.part.location?i=(new $.W5).appendText((0,J.NC)("hint.def","Go to Definition ({0})",s)):n.part.command&&(i=new $.W5(`[${(0,J.NC)("hint.cmd","Execute Command")}](${a=n.part.command,g.o.from({scheme:D.lg.command,path:a.id,query:a.arguments&&encodeURIComponent(JSON.stringify(a.arguments))}).toString()} "${n.part.command.title}") (${s})`,{isTrusted:!0})),i&&t.emitOne(new Z.hU(this,e.range,[i],!1,1e4))}var a;const l=await this._resolveInlayHintLabelPartHover(n,i);for await(const e of l)t.emitOne(e)})):a.Aq.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return a.Aq.EMPTY;const{uri:i,range:n}=e.part.location,s=await this._resolverService.createModelReference(i);try{const i=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,Y.R8)(this._languageFeaturesService.hoverProvider,i,new k.L(n.startLineNumber,n.startColumn),t).filter((e=>!(0,$.CP)(e.hover.contents))).map((t=>new Z.hU(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):a.Aq.EMPTY}finally{s.dispose()}}};se=te([ie(1,G.O),ie(2,X.v),ie(3,Q.Ui),ie(4,x.S),ie(5,S.p)],se),(0,n._K)(K.ID,K,1),s.Ae.register(se)},31368:(e,t,i)=>{"use strict";i.d(t,{K:()=>v,u:()=>_});var n=i(76595),s=i(51828),o=i(76946),r=i(94913),a=i(28928),l=i(43537),d=i(67069),h=i(60737),c=i(6178),u=i(94943),g=i(47116),p=i(79086),m=i(87775),f=i(61758);async function _(e,t,i,h){var g;const _=e.get(l.S),v=e.get(p.i),b=e.get(u.H),C=e.get(m.TG),y=e.get(f.lT);if(await h.item.resolve(o.T.None),!h.part.location)return;const w=h.part.location,S=[],x=new Set(c.BH.getMenuItems(c.eH.EditorContext).map((e=>(0,c.vr)(e)?e.command.id:(0,r.R)())));for(const n of d.Bj.all())x.has(n.desc.id)&&S.push(new s.aU(n.desc.id,c.U8.label(n.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await _.createModelReference(w.uri);try{const i=new d._k(e.object.textEditorModel,a.e.getStartPosition(w.range)),s=h.item.anchor.range;await C.invokeFunction(n.runEditorCommand.bind(n),t,i,s)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new s.Z0),S.push(new s.aU(e.id,e.title,void 0,!0,(async()=>{var t;try{await b.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(i){y.notify({severity:f.zb.Error,source:h.item.provider.displayName,message:i})}})))}const L=t.getOption(127);v.showContextMenu({domForShadowRoot:L&&null!==(g=t.getDomNode())&&void 0!==g?g:void 0,getAnchor:()=>{const e=n.i(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,n){const s=e.get(l.S),o=await s.createModelReference(n.uri);await i.invokeWithinContext((async e=>{const s=t.hasSideBySideModifier,r=e.get(g.i6),l=h.Jy.inPeekEditor.getValue(r),c=!s&&i.getOption(88)&&!l;return new d.BT({openToSide:s,openInPeek:c,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new d._k(o.object.textEditorModel,a.e.getStartPosition(n.range)),a.e.lift(n.range))})),o.dispose()}},37318:(e,t,i)=>{"use strict";i.d(t,{Np:()=>s,OW:()=>o,Ou:()=>n});const n="editor.action.inlineSuggest.commit",s="editor.action.inlineSuggest.showPrevious",o="editor.action.inlineSuggest.showNext"},28160:(e,t,i)=>{"use strict";i.d(t,{HL:()=>u,NY:()=>d,Vb:()=>l,bY:()=>c,s1:()=>h});var n=i(51833),s=i(78701),o=i(74633),r=i(28928),a=i(44053);class l{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.PY([...this.parts.map((e=>new a.At(r.e.fromPositions(new o.L(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class d{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,s.uq)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=n,this.parts=[new d(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,s.uq)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function c(e,t){return(0,n.fS)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof l&&t instanceof l||e instanceof h&&t instanceof h)&&e.equals(t))}},75118:(e,t,i)=>{"use strict";i.d(t,{rw:()=>x,Wd:()=>S});var n=i(58296),s=i(39706),o=i(53186),r=i(43704),a=i(78701),l=i(64295),d=i(67364),h=i(74633),c=i(28928),u=i(130),g=i(91342),p=i(24032),m=i(34415),f=i(21770),_=i(97869),v=i(28160),b=i(88782),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};const w="ghost-text";let S=class extends o.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.uh)(this,!1),this.currentTextModel=(0,r.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.nK)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const n=i instanceof v.s1?i.columnRange:void 0,s=[],o=[];function r(e,t){if(o.length>0){const i=o[o.length-1];t&&i.decorations.push(new f.Kp(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)o.push({content:i,decorations:t?[new f.Kp(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,d=0;for(const c of i.parts){let e=c.lines;void 0===l?(s.push({column:c.column,text:e[0],preview:c.preview}),e=e.slice(1)):r([a.substring(d,c.column-1)],void 0),e.length>0&&(r(e,w),void 0===l&&c.column<=a.length&&(l=c.column)),d=c.column-1}void 0!==l&&r([a.substring(d)],void 0);const h=void 0!==l?new b.rv(l,a.length+1):void 0;return{replacedRange:n,inlineTexts:s,additionalLines:o,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.nK)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const n of t.inlineTexts)i.push({range:c.e.fromPositions(new h.L(t.lineNumber,n.column)),options:{description:w,after:{content:n.text,inlineClassName:n.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:p.RM.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new x(this.editor,this.languageService.languageIdCodec,(0,r.nK)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,o.OF)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,b.RP)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};S=C([y(2,g.O)],S);class x extends o.JT{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.aq)("editorOptionChanged",s.ju.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(117)||e.hasChanged(99)||e.hasChanged(94)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.EH)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const o=Math.max(t.length,i);if(o>0){const i=document.createElement("div");!function(e,t,i,n,s){const o=n.get(33),r=n.get(117),h="none",c=n.get(94),g=n.get(51),p=n.get(50),f=n.get(67),v=new u.HT(1e4);v.appendString('<div class="suggest-preview-text">');for(let l=0,u=i.length;l<u;l++){const e=i[l],n=e.content;v.appendString('<div class="view-line'),v.appendString('" style="top:'),v.appendString(String(l*f)),v.appendString('px;width:1000000px;">');const u=a.$i(n),b=a.Ut(n),C=m.A.createEmpty(n,s);(0,_.d1)(new _.IJ(p.isMonospace&&!o,p.canUseHalfwidthRightwardsArrow,n,!1,u,b,0,C,e.decorations,t,0,p.spaceWidth,p.middotWidth,p.wsmiddotWidth,r,h,c,g!==d.n0.OFF,null),v),v.appendString("</div>")}v.appendString("</div>"),(0,l.N)(e,p);const b=v.build(),C=L?L.createHTML(b):b;e.innerHTML=C}(i,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:o,domNode:i,afterColumnAffinity:1})}}))}}const L=(0,n.Z)("editorGhostText",{createHTML:e=>e})},51842:(e,t,i)=>{"use strict";i.d(t,{f:()=>d});var n=i(43704),s=i(78701),o=i(32653),r=i(47116),a=i(53186),l=i(5887);class d extends a.JT{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=d.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=d.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=d.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=d.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,n.EH)((e=>{const t=this.model.read(e),i=null===t||void 0===t?void 0:t.state.read(e),n=!!(null===i||void 0===i?void 0:i.inlineCompletion)&&void 0!==(null===i||void 0===i?void 0:i.primaryGhostText)&&!(null===i||void 0===i?void 0:i.primaryGhostText.isEmpty());this.inlineCompletionVisible.set(n),(null===i||void 0===i?void 0:i.primaryGhostText)&&(null===i||void 0===i?void 0:i.inlineCompletion)&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,n.EH)((e=>{const t=this.model.read(e);let i=!1,n=!0;const r=null===t||void 0===t?void 0:t.primaryGhostText.read(e);if((null===t||void 0===t?void 0:t.selectedSuggestItem)&&r&&r.parts.length>0){const{column:e,lines:a}=r.parts[0],l=a[0];if(e<=t.textModel.getLineIndentColumn(r.lineNumber)){let e=(0,s.LC)(l);-1===e&&(e=l.length-1),i=e>0;const r=t.textModel.getOptions().tabSize;n=o.i.visibleColumnFromColumn(l,e+1,r)<r}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(n)})))}}d.inlineSuggestionVisible=new r.uy("inlineSuggestionVisible",!1,(0,l.NC)("inlineSuggestionVisible","Whether an inline suggestion is visible")),d.inlineSuggestionHasIndentation=new r.uy("inlineSuggestionHasIndentation",!1,(0,l.NC)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),d.inlineSuggestionHasIndentationLessThanTabSize=new r.uy("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,l.NC)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),d.suppressSuggestions=new r.uy("inlineSuggestionSuppressSuggestions",void 0,(0,l.NC)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))},37434:(e,t,i)=>{"use strict";var n=i(60548),s=i(82213),o=i(43704),r=i(82297),a=i(35770),l=i(37318),d=i(51842),h=i(76595),c=i(83945),u=i(53186),g=i(15968),p=i(74633),m=i(14386),f=i(53869),_=i(75118),v=i(12062),b=i(51833),C=i(91206),y=i(16015),w=i(78701),S=i(47624),x=i(56154),L=i(28928),k=i(24854),D=i(18841),N=i(5580),E=i(28160),T=i(76946),I=i(34835),M=i(56702),A=i(53372),R=i(38079),O=i(6872),P=i(41525),F=i(86649),B=i(74809),V=i(13549);class W{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var H=i(88782),z=i(86532);async function j(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:T.T.None,o=arguments.length>5?arguments[5]:void 0;const r=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new L.e(e.lineNumber,i.startColumn,e.lineNumber,n):L.e.fromPositions(e,e.with(void 0,n))}(t,i),a=e.all(i),l=new R.ri;for(const _ of a)_.groupId&&l.add(_.groupId,_);function d(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=l.get(i);for(const i of e)t.push(i)}return t}const h=new Map,c=new Set;function u(e,t){if(t=[...t,e],c.has(e))return t;c.add(e);try{const i=d(e);for(const e of i){const i=u(e,t);if(i)return i}}finally{c.delete(e)}}function g(e){const o=h.get(e);if(o)return o;const r=u(e,[]);r&&(0,y.Cp)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${r.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const a=new A.CR;return h.set(e,a.p),(async()=>{if(!r){const t=d(e);for(const e of t){const t=await g(e);if(t&&t.items.length>0)return}}try{return await e.provideInlineCompletions(i,t,n,s)}catch(o){return void(0,y.Cp)(o)}})().then((e=>a.complete(e)),(e=>a.error(e))),a.p}const p=await Promise.all(a.map((async e=>({provider:e,completions:await g(e)})))),m=new Map,f=[];for(const _ of p){const e=_.completions;if(!e)continue;const t=new K(e,_.provider);f.push(t);for(const n of e.items){const e=q.from(n,t,r,i,o);m.set(e.hash(),e)}}return new U(Array.from(m.values()),new Set(m.keys()),f)}class U{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class K{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class q{static from(e,t,i,n,s){let o,r,a=e.range?L.e.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,s&&e.completeBracketPairs){o=$(o,a.getStartPosition(),n,s);const t=o.length-e.insertText.length;0!==t&&(a=new L.e(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+t))}r=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(s&&e.completeBracketPairs){e.insertText.snippet=$(e.insertText.snippet,a.getStartPosition(),n,s);const i=e.insertText.snippet.length-t;0!==i&&(a=new L.e(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+i))}const i=(new z.Yj).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof z.xv?(o=i.children[0].value,r=void 0):(o=i.toString(),r={snippet:e.insertText.snippet,range:a})}else(0,M.vE)(e.insertText);return new q(o,e.command,a,o,r,e.additionalTextEdits||(0,H.He)(),e,t)}constructor(e,t,i,n,s,o,r,a){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=s,this.additionalTextEdits=o,this.sourceInlineCompletion=r,this.source=a,n=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new q(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function $(e,t,i,n){const s=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,o=i.tokenization.tokenizeLineWithEdit(t,s.length-(t.column-1),e),r=null===o||void 0===o?void 0:o.sliceAndInflate(t.column-1,s.length,0);if(!r)return e;const a=function(e,t){const i=new B.FE,n=new O.Z(i,(e=>t.getLanguageConfiguration(e))),s=new V.xH(new W([e]),n),o=(0,F.w)(s,[],void 0,!0);let r="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,P.Ii)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,P.Ii)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,P.Ii)(i,t.closingBracket.length);else{const e=n.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);r+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)r+=a.substring((0,P.F_)(i),(0,P.F_)((0,P.Ii)(i,t.length)));else if(4===t.kind)for(const n of t.children)e(n,i),i=(0,P.Ii)(i,n.length)}(o,P.xl),r}(r,n);return a}var G=i(44053),Y=i(1794),Z=i(78757);function Q(e,t,i){const n=i?e.range.intersectRanges(i):e.range;if(!n)return e;const s=t.getValueInRange(n,1),o=(0,w.Mh)(s,e.text),r=Z.A.ofText(s.substring(0,o)).addToPosition(e.range.getStartPosition()),a=e.text.substring(o),l=L.e.fromPositions(r,e.range.getEndPosition());return new G.At(l,a)}function X(e,t){return e.text.startsWith(t.text)&&(i=e.range,(n=t.range).getStartPosition().equals(i.getStartPosition())&&n.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,n}function J(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=Q(e,t);if(o.range.endLineNumber!==o.range.startLineNumber)return;const r=t.getLineContent(o.range.startLineNumber),a=(0,w.V8)(r).length;if(o.range.startColumn-1<=a){const e=(0,w.V8)(o.text).length,t=r.substring(o.range.startColumn-1,a),[i,n]=[o.range.getStartPosition(),o.range.getEndPosition()],s=i.column+t.length<=n.column?i.delta(0,t.length):n,l=L.e.fromPositions(s,n),d=o.text.startsWith(t)?o.text.substring(t.length):o.text.substring(e);o=new G.At(l,d)}const l=t.getValueInRange(o.range),d=function(e,t){if((null===ee||void 0===ee?void 0:ee.originalValue)===e&&(null===ee||void 0===ee?void 0:ee.newValue)===t)return null===ee||void 0===ee?void 0:ee.changes;{let i=ie(e,t,!0);if(i){const n=te(i);if(n>0){const s=ie(e,t,!1);s&&te(s)<n&&(i=s)}}return ee={originalValue:e,newValue:t,changes:i},i}}(l,o.text);if(!d)return;const h=o.range.startLineNumber,c=new Array;if("prefix"===i){const e=d.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=o.text.length-s;for(const g of d){const e=o.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===o.range.startLineNumber&&e<n.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,s=Math.max(g.modifiedStart,Math.min(t,u)),r=o.text.substring(g.modifiedStart,s),a=o.text.substring(s,Math.max(g.modifiedStart,t));r.length>0&&c.push(new E.NY(e,r,!1)),a.length>0&&c.push(new E.NY(e,a,!0))}return new E.Vb(h,c)}let ee;function te(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ie(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);n>t&&(t=n)}return t}const s=Math.max(n(e),n(t));function o(e){if(e<0)throw new Error("unexpected");return s+e+1}function r(e){let t=0,n=0;const s=new Int32Array(e.length);for(let r=0,a=e.length;r<a;r++)if(i&&"("===e[r]){const e=100*n+t;s[r]=o(2*e),t++}else if(i&&")"===e[r]){t=Math.max(t-1,0);const e=100*n+t;s[r]=o(2*e+1),0===t&&n++}else s[r]=e.charCodeAt(r);return s}const a=r(e),l=r(t);return new Y.Hs({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},se=function(e,t){return function(i,n){t(i,n,e)}};let oe=class extends u.JT{constructor(e,t,i,n,s){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=s,this._updateOperation=this._register(new u.XK),this.inlineCompletions=(0,o.DN)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,o.DN)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){var n,s;const r=new re(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(null===(n=this._updateOperation.value)||void 0===n?void 0:n.request.satisfies(r))return this._updateOperation.value.promise;if(null===(s=a.get())||void 0===s?void 0:s.request.satisfies(r))return Promise.resolve(!0);const l=!!this._updateOperation.value;this._updateOperation.clear();const d=new T.A,h=(async()=>{var n,s;if((l||t.triggerKind===D.bw.Automatic)&&await(n=this._debounceValue.get(this.textModel),s=d.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),n);s&&(t=s.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const h=new Date,c=await j(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,d.token,this.languageConfigurationService);if(d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new le(c,r,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!c.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,o.PS)((e=>{a.set(g,e)})),!0})(),c=new ae(r,d,h);return this._updateOperation.value=c,h}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;(null===(t=this._updateOperation.value)||void 0===t?void 0:t.request.context.selectedSuggestionInfo)&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};oe=ne([se(3,f.p),se(4,N.c_)],oe);class re{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&function(e,t,i){if(!e||!t)return e===t;return i(e,t)}(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,((e,t)=>e.equals(t)))&&(e.context.triggerKind===D.bw.Automatic||this.context.triggerKind===D.bw.Explicit)&&this.versionId===e.versionId}}class ae{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class le{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=i,this.versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=(0,o.nK)(this,(e=>{this.versionId.read(e);let t=!1;for(const i of this._inlineCompletions)t=t||i._updateRange(this.textModel);return t&&this._rangeVersionIdValue++,this._rangeVersionIdValue}));const s=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new de(e,s[t],this._rangeVersionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this.textModel.isDisposed()||this.textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new de(e,n,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}}class de{get forwardStable(){var e;return null!==(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)&&void 0!==e&&e}constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=i,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=null!==n&&void 0!==n?n:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new G.At(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,i){const n=Q(this._toFilterTextReplacement(i),e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(i).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const s=e.getValueInRange(n.range,1),o=n.text,r=Math.max(0,t.column-n.range.startColumn);let a=o.substring(0,r),l=o.substring(r),d=s.substring(0,r),h=s.substring(r);const c=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=c&&(d=d.trimStart(),0===d.length&&(h=h.trimStart()),a=a.trimStart(),0===a.length&&(l=l.trimStart())),a.startsWith(d)&&!!(0,I.Sy)(h,l)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new G.At(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return he(this._getUpdatedRange(e)).isBefore(he(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){const t=e.getDecorationRange(this.decorationId);return t?!this._updatedRange.equalsRange(t)&&(this._updatedRange=t,!0):(this._isValid=!1,!0)}}function he(e){return e.startLineNumber===e.endLineNumber?new p.L(1,1+e.endColumn-e.startColumn):new p.L(1+e.endLineNumber-e.startLineNumber,e.endColumn)}var ce,ue=i(67017),ge=i(94943),pe=i(87775),me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},fe=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ce||(ce={}));let _e=class extends u.JT{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,n,s,r,a,l,d,h,c,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this.textModelVersionId=i,this._positions=n,this._debounceValue=s,this._suggestPreviewEnabled=r,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=d,this._instantiationService=h,this._commandService=c,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(oe,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=(0,o.uh)(this,!1),this._forceUpdateSignal=(0,o.GN)("forceUpdate"),this._selectedInlineCompletionId=(0,o.uh)(this,void 0),this._primaryPosition=(0,o.nK)(this,(e=>{var t;return null!==(t=this._positions.read(e)[0])&&void 0!==t?t:new p.L(1,1)})),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ce.Redo,ce.Undo,ce.AcceptWord]),this._fetchInlineCompletions=(0,o.aK)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:D.bw.Automatic}),handleChange:(e,t)=>(e.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(e.change)?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateSignal)&&(t.inlineCompletionTriggerKind=e.change),!0)},((e,t)=>{this._forceUpdateSignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this.textModelVersionId.read(e);const i=this.selectedInlineCompletion.get(),n=t.preserveCurrentCompletion||(null===i||void 0===i?void 0:i.forwardStable)?i:void 0,s=this._source.suggestWidgetInlineCompletions.get(),r=this.selectedSuggestItem.read(e);if(s&&!r){const e=this._source.inlineCompletions.get();(0,o.PS)((t=>{(!e||s.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(s.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const a=this._primaryPosition.read(e),l={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:null===r||void 0===r?void 0:r.toSelectedSuggestionInfo()};return this._source.fetch(a,l,n)})),this._filteredInlineCompletionItems=(0,o.nK)(this,(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),n=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return n})),this.selectedInlineCompletionIndex=(0,o.nK)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),n=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===n?(this._selectedInlineCompletionId.set(void 0,void 0),0):n})),this.selectedInlineCompletion=(0,o.nK)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>null===e||void 0===e?void 0:e.request.context.triggerKind)),this.inlineCompletionsCount=(0,o.nK)(this,(e=>this.lastTriggerKind.read(e)===D.bw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,o.bk)({owner:this,equalityComparer:(e,t)=>e&&t?(0,E.bY)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{var t,i;const n=this.textModel,s=this.selectedSuggestItem.read(e);if(s){const o=Q(s.toSingleTextEdit(),n),r=this._computeAugmentation(o,e);if(!this._suggestPreviewEnabled.read(e)&&!r)return;const a=null!==(t=null===r||void 0===r?void 0:r.edit)&&void 0!==t?t:o,l=r?r.edit.text.length-o.text.length:0,d=this._suggestPreviewMode.read(e),h=this._positions.read(e),c=[a,...ve(this.textModel,h,a)],u=c.map(((e,t)=>J(e,n,d,h[t],l))).filter(S.$K);return{edits:c,primaryGhostText:null!==(i=u[0])&&void 0!==i?i:new E.Vb(a.range.endLineNumber,[]),ghostTexts:u,inlineCompletion:null===r||void 0===r?void 0:r.completion,suggestItem:s}}{if(!this._isActive.read(e))return;const t=this.selectedInlineCompletion.read(e);if(!t)return;const i=t.toSingleTextEdit(e),s=this._inlineSuggestMode.read(e),o=this._positions.read(e),r=[i,...ve(this.textModel,o,i)],a=r.map(((e,t)=>J(e,n,s,o[t],0))).filter(S.$K);if(!a[0])return;return{edits:r,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:t,suggestItem:void 0}}})),this.ghostTexts=(0,o.bk)({owner:this,equalityComparer:E.bY},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,o.bk)({owner:this,equalityComparer:E.HL},(e=>{const t=this.state.read(e);if(t)return null===t||void 0===t?void 0:t.primaryGhostText})),this._register((0,o.jx)(this._fetchInlineCompletions)),this._register((0,o.EH)((e=>{var t,i;const n=this.state.read(e),s=null===n||void 0===n?void 0:n.inlineCompletion;if((null===s||void 0===s?void 0:s.semanticId)!==(null===g||void 0===g?void 0:g.semanticId)&&(g=s,s)){const e=s.inlineCompletion,n=e.source;null===(i=(t=n.provider).handleItemDidShow)||void 0===i||i.call(t,n.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletions.get()}async triggerExplicitly(e){(0,o.c8)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateSignal.trigger(e,D.bw.Explicit)})),await this._fetchInlineCompletions.get()}stop(e){(0,o.c8)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),s=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(S.$K);return(0,C.Fr)(s,(n=>{let s=n.toSingleTextEdit(t);return s=Q(s,i,L.e.fromPositions(s.range.getStartPosition(),e.range.getEndPosition())),X(s,e)?{completion:n,edit:s}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){var t;if(e.getModel()!==this.textModel)throw new y.he;const i=this.state.get();if(!i||i.primaryGhostText.isEmpty()||!i.inlineCompletion)return;const n=i.inlineCompletion.toInlineCompletion(void 0);if(e.pushUndoStop(),n.snippetInfo)e.executeEdits("inlineSuggestion.accept",[x.h.replaceMove(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),null===(t=ue.f.get(e))||void 0===t||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1});else{const t=i.edits,s=be(t).map((e=>k.Y.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...t.map((e=>x.h.replaceMove(e.range,e.text))),...n.additionalTextEdits]),e.setSelections(s,"inlineCompletionAccept")}n.command&&n.source.addRef(),(0,o.PS)((e=>{this._source.clear(e),this._isActive.set(!1,e)})),n.command&&(await this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,y.Cp),n.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),n=this._languageConfigurationService.getLanguageConfiguration(i),s=new RegExp(n.wordDefinition.source,n.wordDefinition.flags.replace("g","")),o=t.match(s);let r=0;r=o&&void 0!==o.index?0===o.index?o[0].length:o.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<r&&(r=a.index+a[0].length),r}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new y.he;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const s=n.primaryGhostText,o=n.inlineCompletion.toInlineCompletion(void 0);if(o.snippetInfo||o.filterText!==o.insertText)return void await this.accept(e);const r=s.parts[0],a=new p.L(s.lineNumber,r.column),l=r.text,d=t(a,l);if(d===l.length&&1===s.parts.length)return void this.accept(e);const h=l.substring(0,d),c=this._positions.get(),u=c[0];o.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=L.e.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,n=new G.At(t,i),s=[n,...ve(this.textModel,c,n)],o=be(s).map((e=>k.Y.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",s.map((e=>x.h.replaceMove(e.range,e.text)))),e.setSelections(o,"inlineCompletionPartialAccept")}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){const t=L.e.fromPositions(o.range.getStartPosition(),Z.A.ofText(h).addToPosition(a)),n=e.getModel().getValueInRange(t,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,n.length,{kind:i})}}finally{o.source.removeRef()}}handleSuggestAccepted(e){var t,i;const n=Q(e.toSingleTextEdit(),this.textModel),s=this._computeAugmentation(n,void 0);if(!s)return;const o=s.completion.inlineCompletion;null===(i=(t=o.source.provider).handlePartialAccept)||void 0===i||i.call(t,o.source.inlineCompletions,o.sourceInlineCompletion,n.text.length,{kind:2})}};function ve(e,t,i){if(1===t.length)return[];const n=t[0],s=t.slice(1),o=i.range.getStartPosition(),r=i.range.getEndPosition(),a=e.getValueInRange(L.e.fromPositions(n,r)),l=(0,H.Bm)(n,o);if(l.lineNumber<1)return(0,y.dL)(new y.he(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${n.toString()} and ${o.toString()}`)),[];const d=function(e,t){let i="";const n=(0,w.Fw)(e);for(let s=t.lineNumber-1;s<n.length;s++)i+=n[s].substring(s===t.lineNumber-1?t.column-1:0);return i}(i.text,l);return s.map((t=>{const i=(0,H.QO)((0,H.Bm)(t,o),r),n=e.getValueInRange(L.e.fromPositions(t,i)),s=(0,w.Mh)(a,n),l=L.e.fromPositions(t,t.delta(0,s));return new G.At(l,d)}))}function be(e){const t=b._i.createSortPermutation(e,((e,t)=>L.e.compareRangesUsingStarts(e.range,t.range))),i=new G.PY(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}_e=me([fe(9,pe.TG),fe(10,ge.H),fe(11,N.c_)],_e);var Ce=i(39706),ye=i(32676),we=i(82148);class Se extends u.JT{get selectedItem(){return this._selectedItem}constructor(e,t,i,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,o.uh)(this,void 0),this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=we.n.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{(0,o.PS)((e=>this.checkModelVersion(e)));const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),a=r?Q(r,n):void 0;if(!a)return-1;const l=p.L.lift(t),d=i.map(((e,t)=>{const i=Q(xe.fromSuggestion(s,n,l,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:X(a,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),h=(0,C.dI)(d,(0,b.tT)((e=>e.prefixLength),b.fv));return h?h.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(Ce.ju.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=xe.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,(0,o.PS)((e=>{this.checkModelVersion(e),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,e)})))}getSuggestItemInfo(){const e=we.n.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();return t&&i&&n?xe.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=we.n.get(this.editor);null===e||void 0===e||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=we.n.get(this.editor);null===e||void 0===e||e.forceRenderingAbove()}}class xe{static fromSuggestion(e,t,i,n,s){let{insertText:o}=n.completion,r=!1;if(4&n.completion.insertTextRules){const e=(new z.Yj).parse(o);e.children.length<100&&ye.l.adjustWhitespace(t,i,!0,e),o=e.toString(),r=!0}const a=e.getOverwriteInfo(n,s);return new xe(L.e.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),o,n.completion.kind,r)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new D.ln(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new G.At(this.range,this.insertText)}}var Le,ke=i(5887),De=i(88622),Ne=i(30600),Ee=i(47116),Te=i(25371),Ie=i(92441),Me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ae=function(e,t){return function(i,n){t(i,n,e)}};let Re=Le=class extends u.JT{static get(e){return e.getContribution(Le.ID)}constructor(e,t,i,n,s,r,a,c,m){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=s,this._debounceService=r,this._languageFeaturesService=a,this._accessibilitySignalService=c,this._keybindingService=m,this.model=this._register((0,o.DN)("inlineCompletionModel",void 0)),this._textModelVersionId=(0,o.uh)(this,-1),this._positions=(0,o.uh)(this,[new p.L(1,1)]),this._suggestWidgetAdaptor=this._register(new Se(this.editor,(()=>{var e,t;return null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)}),(e=>this.updateObservables(e,ce.Other)),(e=>{(0,o.PS)((t=>{var i;this.updateObservables(t,ce.Other),null===(i=this.model.get())||void 0===i||i.handleSuggestAccepted(e)}))}))),this._enabled=(0,o.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._fontFamily=(0,o.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._ghostTexts=(0,o.nK)(this,(e=>{var t;const i=this.model.read(e);return null!==(t=null===i||void 0===i?void 0:i.ghostTexts.read(e))&&void 0!==t?t:[]})),this._stablizedGhostTexts=function(e,t){const i=(0,o.uh)("result",[]),n=[];return t.add((0,o.EH)((t=>{const s=e.read(t);(0,o.PS)((e=>{if(s.length!==n.length){n.length=s.length;for(let e=0;e<n.length;e++)n[e]||(n[e]=(0,o.uh)("item",s[e]));i.set([...n],e)}n.forEach(((t,i)=>t.set(s[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,Ie.Zg)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(_.Wd,this.editor,{ghostText:e,minReservedLineCount:(0,o.Dz)(0),targetTextModel:this.model.map((e=>null===e||void 0===e?void 0:e.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=(0,o.GN)(this),this._isReadonly=(0,o.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(91))),this._textModel=(0,o.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this._textModelIfWritable=(0,o.nK)((e=>this._isReadonly.read(e)?void 0:this._textModel.read(e))),this._register(new d.f(this._contextKeyService,this.model)),this._register((0,o.EH)((i=>{const n=this._textModelIfWritable.read(i);(0,o.PS)((i=>{if(this.model.set(void 0,i),this.updateObservables(i,ce.Other),n){const s=t.createInstance(_e,n,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,(0,o.rD)(e.onDidChangeConfiguration,(()=>e.getOption(118).preview)),(0,o.rD)(e.onDidChangeConfiguration,(()=>e.getOption(118).previewMode)),(0,o.rD)(e.onDidChangeConfiguration,(()=>e.getOption(62).mode)),this._enabled);this.model.set(s,i)}}))})));const f=this._register((0,h.aU)());this._register((0,o.EH)((e=>{const t=this._fontFamily.read(e);f.setStyle(""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`)})));const b=e=>{var t;return e.isUndoing?ce.Undo:e.isRedoing?ce.Redo:(null===(t=this.model.get())||void 0===t?void 0:t.isAcceptingPartially)?ce.AcceptWord:ce.Other};let C;this._register(e.onDidChangeModelContent((e=>(0,o.PS)((t=>this.updateObservables(t,b(e))))))),this._register(e.onDidChangeCursorPosition((e=>(0,o.PS)((t=>{var i;this.updateObservables(t,ce.Other),3!==e.reason&&"api"!==e.source||null===(i=this.model.get())||void 0===i||i.stop(t)}))))),this._register(e.onDidType((()=>(0,o.PS)((e=>{var t;this.updateObservables(e,ce.Other),this._enabled.get()&&(null===(t=this.model.get())||void 0===t||t.trigger(e))}))))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([g.wk.Tab.id,g.wk.DeleteLeft.id,g.wk.DeleteRight.id,l.Ou,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&(0,o.PS)((e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)}))}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||v.QG.dropDownVisible||(0,o.PS)((e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)}))}))),this._register((0,o.EH)((e=>{var t;const i=null===(t=this.model.read(e))||void 0===t?void 0:t.state.read(e);(null===i||void 0===i?void 0:i.suggestItem)?i.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,u.OF)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,o.nJ)({handleChange:(e,t)=>(e.didChange(this._playAccessibilitySignal)&&(C=void 0),!0)},(async e=>{this._playAccessibilitySignal.read(e);const t=this.model.read(e),i=null===t||void 0===t?void 0:t.state.read(e);if(t&&i&&i.inlineCompletion){if(i.inlineCompletion.semanticId!==C){C=i.inlineCompletion.semanticId;const e=t.textModel.getLineContent(i.primaryGhostText.lineNumber);this._accessibilitySignalService.playSignal(De.iP.inlineSuggestion).then((()=>{this.editor.getOption(8)&&this.provideScreenReaderUpdate(i.primaryGhostText.renderForScreenReader(e))}))}}else C=void 0}))),this._register(new v.oU(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let n;!t&&i&&this.editor.getOption(149)&&(n=(0,ke.NC)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),n?(0,c.Z9)(e+", "+n):(0,c.Z9)(e)}updateObservables(e,t){var i,n,s;const o=this.editor.getModel();this._textModelVersionId.set(null!==(i=null===o||void 0===o?void 0:o.getVersionId())&&void 0!==i?i:-1,e,t),this._positions.set(null!==(s=null===(n=this.editor.getSelections())||void 0===n?void 0:n.map((e=>e.getPosition())))&&void 0!==s?s:[new p.L(1,1)],e)}shouldShowHoverAt(e){var t;const i=null===(t=this.model.get())||void 0===t?void 0:t.primaryGhostText.get();return!!i&&i.parts.some((t=>e.containsPosition(new p.L(i.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._ghostTextWidgets.get()[0])||void 0===t?void 0:t.ownsViewZone(e))&&void 0!==i&&i}};Re.ID="editor.contrib.inlineCompletionsController",Re=Le=Me([Ae(1,pe.TG),Ae(2,Ee.i6),Ae(3,Ne.Ui),Ae(4,ge.H),Ae(5,m.A),Ae(6,f.p),Ae(7,De.IV),Ae(8,Te.d)],Re);var Oe=i(34042),Pe=i(6178);class Fe extends n.R6{constructor(){super({id:Fe.ID,label:ke.NC("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=Re.get(t);null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i||i.next()}}Fe.ID=l.OW;class Be extends n.R6{constructor(){super({id:Be.ID,label:ke.NC("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=Re.get(t);null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i||i.previous()}}Be.ID=l.Np;class Ve extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:ke.NC("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.u.writable})}async run(e,t){const i=Re.get(t);await(0,r.Hr)((async e=>{var t;await(null===(t=null===i||void 0===i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e)),null===i||void 0===i||i.playAccessibilitySignal(e)}))}}class We extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:ke.NC("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible)},menuOpts:[{menuId:Pe.eH.InlineSuggestionToolbar,title:ke.NC("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;const n=Re.get(t);await(null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextWord(n.editor))}}class He extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:ke.NC("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Ee.Ao.and(a.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Pe.eH.InlineSuggestionToolbar,title:ke.NC("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;const n=Re.get(t);await(null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextLine(n.editor))}}class ze extends n.R6{constructor(){super({id:l.Ou,label:ke.NC("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:d.f.inlineSuggestionVisible,menuOpts:[{menuId:Pe.eH.InlineSuggestionToolbar,title:ke.NC("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Ee.Ao.and(d.f.inlineSuggestionVisible,a.u.tabMovesFocus.toNegated(),d.f.inlineSuggestionHasIndentationLessThanTabSize,Oe._y.Visible.toNegated(),a.u.hoverFocused.toNegated())}})}async run(e,t){var i;const n=Re.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}class je extends n.R6{constructor(){super({id:je.ID,label:ke.NC("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:d.f.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Re.get(t);(0,o.PS)((e=>{var t;null===(t=null===i||void 0===i?void 0:i.model.get())||void 0===t||t.stop(e)}))}}je.ID="editor.action.inlineSuggest.hide";class Ue extends Pe.Ke{constructor(){super({id:Ue.ID,title:ke.NC("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Pe.eH.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Ee.Ao.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Ne.Ui),n="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",n)}}Ue.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Ke=i(73971),qe=i(91342),$e=i(35978),Ge=i(71940),Ye=i(34912),Ze=i(57823),Qe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Xe=function(e,t){return function(i,n){t(i,n,e)}};class Je{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let et=class{constructor(e,t,i,n,s,o){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=s,this._telemetryService=o,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Re.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new s.YM(1e3,this,L.e.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Re.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new Je(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new u.SL,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&this.renderScreenReaderText(e,n,i);const s=n.controller.model.get(),r=this._instantiationService.createInstance(v.QG,this._editor,!1,(0,o.Dz)(null),s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]})));return e.fragment.appendChild(r.getDomNode()),s.triggerExplicitly(),i.add(r),i}renderScreenReaderText(e,t,i){const n=h.$,s=n("div.hover-row.markdown-hover"),r=h.R3(s,n("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new $e.$({editor:this._editor},this._languageService,this._openerService));i.add((0,o.EH)((n=>{var s;const o=null===(s=t.controller.model.read(n))||void 0===s?void 0:s.primaryGhostText.read(n);if(o){const t=this._editor.getModel().getLineContent(o.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{r.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=ke.NC("inlineSuggestionFollows","Suggestion:"),s=i.add(a.render((new Ke.W5).appendText(n).appendCodeblock("text",t)));r.replaceChildren(s.element)})(o.renderForScreenReader(t))}else h.mc(r)}))),e.fragment.appendChild(s)}};et=Qe([Xe(1,qe.O),Xe(2,Ye.v),Xe(3,Ge.F),Xe(4,pe.TG),Xe(5,Ze.b)],et),(0,n._K)(Re.ID,Re,3),(0,n.Qr)(Ve),(0,n.Qr)(Fe),(0,n.Qr)(Be),(0,n.Qr)(We),(0,n.Qr)(He),(0,n.Qr)(ze),(0,n.Qr)(je),(0,Pe.r1)(Ue),s.Ae.register(et)},12062:(e,t,i)=>{"use strict";i.d(t,{oU:()=>I,QG:()=>R});var n,s=i(76595),o=i(26031),r=i(23014),a=i(51828),l=i(51833),d=i(53372),h=i(61542),c=i(53186),u=i(43704),g=i(90388),p=i(73045),m=i(74633),f=i(18841),_=i(37318),v=i(5887),b=i(51887),C=i(31936),y=i(6178),w=i(94943),S=i(47116),x=i(79086),L=i(87775),k=i(25371),D=i(57823),N=i(54329),E=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};let I=class extends c.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.rD)(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.nK)(this,(e=>{var t,i,n;const s=null===(t=this.model.read(e))||void 0===t?void 0:t.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!s||0===s.parts.length)return this.sessionPosition=void 0,null;const o=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const r=new m.L(s.lineNumber,Math.min(o,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,u.gp)(((t,i)=>{const n=this.model.read(t);if(!n||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(R,this.editor,!0,this.position,n.selectedInlineCompletionIndex,n.inlineCompletionsCount,n.selectedInlineCompletion.map((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]}))));e.addContentWidget(s),i.add((0,c.OF)((()=>e.removeContentWidget(s)))),i.add((0,u.EH)((e=>{this.position.read(e)&&n.lastTriggerKind.read(e)!==f.bw.Explicit&&n.triggerExplicitly()})))})))}};I=E([T(2,L.TG)],I);const M=(0,N.q5)("inline-suggestion-hints-next",h.l.chevronRight,(0,v.NC)("parameterHintsNextIcon","Icon for show next parameter hint.")),A=(0,N.q5)("inline-suggestion-hints-previous",h.l.chevronLeft,(0,v.NC)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let R=n=class extends c.JT{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new a.aU(e,t,i,!0,(()=>this._commandService.executeCommand(e))),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let o=t;return s&&(o=(0,v.NC)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=o,n}constructor(e,t,i,o,r,h,c,g,m,f,b){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=o,this._suggestionCount=r,this._extraCommands=h,this._commandService=c,this.keybindingService=m,this._contextKeyService=f,this._menuService=b,this.id="InlineSuggestionHintsContentWidget"+n.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,s.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,s.h)("div@toolBar")]),this.previousAction=this.createCommandAction(_.Np,(0,v.NC)("previous","Previous"),p.k.asClassName(A)),this.availableSuggestionCountAction=new a.aU("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(_.OW,(0,v.NC)("next","Next"),p.k.asClassName(M)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(y.eH.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new d.pY((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new d.pY((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.lastCommands=[],this.toolBar=this._register(g.createInstance(F,this.nodes.toolBar,y.eH.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof y.U8)return g.createInstance(P,e,void 0);if(e===this.availableSuggestionCountAction){const t=new O(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{n._dropDownVisible=e}))),this._register((0,u.EH)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.EH)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.EH)((e=>{const t=this._extraCommands.read(e);if((0,l.fS)(this.lastCommands,t))return;this.lastCommands=t;const i=t.map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[n,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof y.U8&&i.push(e);i.length>0&&i.unshift(new a.Z0),this.toolBar.setAdditionalSecondaryActions(i)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};R._dropDownVisible=!1,R.id=0,R=n=E([T(6,w.H),T(7,L.TG),T(8,k.d),T(9,S.i6),T(10,y.co)],R);class O extends o.gU{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class P extends b.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,s.h)("div.keybinding").root;this._register(new r.e(t,g.OS,{disableTitle:!0,...r.F})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let F=class extends C.T{constructor(e,t,i,n,s,o,r,a){super(e,{resetMenu:t,...i},n,s,o,r,a),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,o,r;const a=[],l=[];(0,b.vr)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(s=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===s?void 0:s.shouldInlineSubmenu,null===(r=null===(o=this.options2)||void 0===o?void 0:o.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setPrependedPrimaryActions(e){(0,l.fS)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,l.fS)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};F=E([T(3,y.co),T(4,S.i6),T(5,x.i),T(6,k.d),T(7,D.b)],F)},88782:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>g,He:()=>d,QO:()=>u,RP:()=>c,rv:()=>h});var n=i(16015),s=i(53186),o=i(43704),r=i(74633),a=i(28928);const l=[];function d(){return l}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new n.he(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.e(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function c(e,t){const i=new s.SL,n=e.createDecorationsCollection();return i.add((0,o.UV)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function u(e,t){return new r.L(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new r.L(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},38259:(e,t,i)=>{"use strict";var n=i(60548),s=i(82213),o=i(35770);var r=i(53186),a=i(43704),l=i(56154),d=i(74633),h=i(28928),c=i(91342),u=i(24032),g=i(21770),p=i(75118),m=i(88782),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const v="inline-edit";let b=class extends r.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,a.uh)(this,!1),this.currentTextModel=(0,a.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,a.nK)(this,(e=>{var t;if(this.isDisposed.read(e))return;const i=this.currentTextModel.read(e);if(i!==this.model.targetTextModel.read(e))return;const n=this.model.ghostText.read(e);if(!n)return;let s=null===(t=this.model.range)||void 0===t?void 0:t.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const o=(!s||s.startLineNumber===s.endLineNumber)&&1===n.parts.length&&1===n.parts[0].lines.length,r=1===n.parts.length&&n.parts[0].lines.every((e=>0===e.length)),a=[],l=[];function d(e,t){if(l.length>0){const i=l[l.length-1];t&&i.decorations.push(new g.Kp(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)l.push({content:i,decorations:t?[new g.Kp(1,i.length+1,t,0)]:[]})}const h=i.getLineContent(n.lineNumber);let c,u=0;if(!r){for(const e of n.parts){let t=e.lines;s&&!o&&(d(t,v),t=[]),void 0===c?(a.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):d([h.substring(u,e.column-1)],void 0),t.length>0&&(d(t,v),void 0===c&&e.column<=h.length&&(c=e.column)),u=e.column-1}void 0!==c&&d([h.substring(u)],void 0)}const p=void 0!==c?new m.rv(c,h.length+1):void 0,f=o||!s?n.lineNumber:s.endLineNumber-1;return{inlineTexts:a,additionalLines:l,hiddenRange:p,lineNumber:f,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:i,range:s,isSingleLine:o,isPureRemove:r,backgroundColoring:this.model.backgroundColoring.read(e)}})),this.decorations=(0,a.nK)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n<i;n++){const i=t.range.startLineNumber+n,s=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),o=t.targetTextModel.getLineLastNonWhitespaceColumn(i),r=new h.e(i,s,i,o);e.push(r)}}else{const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n<i;n++){const i=t.range.startLineNumber+n,s=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),o=t.targetTextModel.getLineLastNonWhitespaceColumn(i),r=new h.e(i,s,i,o);e.push(r)}}const n=t.backgroundColoring?"inline-edit-remove backgroundColoring":"inline-edit-remove";for(const t of e)i.push({range:t,options:{inlineClassName:n,description:"inline-edit-remove"}})}for(const n of t.inlineTexts)i.push({range:h.e.fromPositions(new d.L(t.lineNumber,n.column)),options:{description:v,after:{content:n.text,inlineClassName:n.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:u.RM.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new p.rw(this.editor,this.languageService.languageIdCodec,(0,a.nK)((e=>{const t=this.uiState.read(e);return t&&!t.isPureRemove?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,r.OF)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,m.RP)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};b=f([_(2,c.O)],b);var C,y=i(47116),w=i(87775),S=i(18841),x=i(53869),L=i(76946),k=i(28160),D=i(94943),N=i(76595),E=i(23014),T=i(51828),I=i(51833),M=i(90388),A=i(51887),R=i(31936),O=i(6178),P=i(79086),F=i(25371),B=i(57823),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};let H=class extends r.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,a.nK)(this,(e=>{var t,i,n;const s=null===(t=this.model.read(e))||void 0===t?void 0:t.widget.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!s||0===s.parts.length)return this.sessionPosition=void 0,null;const o=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const r=new d.L(s.lineNumber,Math.min(o,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,a.gp)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const n=i.add(this.instantiationService.createInstance(z,this.editor,!0,this.position));e.addContentWidget(n),i.add((0,r.OF)((()=>e.removeContentWidget(n))))})))}};H=V([W(2,w.TG)],H);let z=C=class extends r.JT{constructor(e,t,i,n,s,o){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=s,this._menuService=o,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,N.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,N.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(O.eH.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(n.createInstance(U,this.nodes.toolBar,this.editor,O.eH.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof O.U8)return n.createInstance(j,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,a.EH)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,a.EH)((e=>{const t=[];for(const[i,n]of this.inlineCompletionsActionsMenus.getActions())for(const e of n)e instanceof O.U8&&t.push(e);t.length>0&&t.unshift(new T.Z0),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};z._dropDownVisible=!1,z.id=0,z=C=V([W(3,w.TG),W(4,y.i6),W(5,O.co)],z);class j extends A.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,N.h)("div.keybinding").root;this._register(new E.e(t,M.OS,{disableTitle:!0,...E.F})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let U=class extends R.T{constructor(e,t,i,n,s,o,r,a,l){super(e,{resetMenu:i,...n},s,o,r,a,l),this.editor=t,this.menuId=i,this.options2=n,this.menuService=s,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,o,r;const a=[],l=[];(0,A.vr)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(s=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===s?void 0:s.shouldInlineSubmenu,null===(r=null===(o=this.options2)||void 0===o?void 0:o.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setAdditionalSecondaryActions(e){(0,I.fS)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=V([W(4,O.co),W(5,y.i6),W(6,P.i),W(7,F.d),W(8,B.b)],U);var K,q=i(30600),$=i(16015),G=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Y=function(e,t){return function(i,n){t(i,n,e)}};class Z{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let Q=K=class extends r.JT{static get(e){return e.getContribution(K.ID)}constructor(e,t,i,n,s,o){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=n,this._commandService=s,this._configurationService=o,this._isVisibleContext=K.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=K.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register((0,a.DN)(this,void 0)),this._isAccepting=(0,a.uh)(this,!1),this._enabled=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily)),this._backgroundColoring=(0,a.rD)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).backgroundColoring));const r=(0,a.aq)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,a.EH)((t=>{this._enabled.read(t)&&(r.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const l=(0,a.rD)(e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,a.EH)((e=>{if(!this._enabled.read(e))return;const t=l.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,a.EH)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const n=e.getPosition();n&&this.checkCursorPosition(n)})));const d=(0,a.aq)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,a.EH)((async t=>{var i;this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(null===(i=this._currentRequestCts)||void 0===i||i.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const h=(0,a.aq)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,a.EH)((t=>{this._enabled.read(t)&&(h.read(t),this.getInlineEdit(e,!0))})));const c=this._register((0,N.aU)());this._register((0,a.EH)((e=>{const t=this._fontFamily.read(e);c.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new H(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(e){var t;if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i?this._isCursorAtInlineEditContext.set(h.e.containsPosition(i.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){var i,n;if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const s=t.range.endLineNumber;if(t.range.endColumn!==(null!==(n=null===(i=e.getModel())||void 0===i?void 0:i.getLineLength(s))&&void 0!==n?n:0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const n=i.getVersionId(),s=this.languageFeaturesService.inlineEditProvider.all(i);if(0===s.length)return;const o=s[0];this._currentRequestCts=new L.A;const r=this._currentRequestCts.token,a=t?S.rn.Automatic:S.rn.Invoke;var l,d;if(t&&await(l=50,d=r,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);d&&(t=d.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),r.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)return;const h=await o.provideInlineEdit(i,{triggerKind:a},r);return h&&!r.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===n&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){var i;this._isCursorAtInlineEditContext.set(!1),await this.clear();const n=await this.fetchInlineEdit(e,t);if(!n)return;const s=n.range.endLineNumber,o=n.range.endColumn,r=new k.Vb(s,[new k.NY(o,n.text,!1)]),l=this.instantiationService.createInstance(b,this.editor,{ghostText:(0,a.Dz)(r),minReservedLineCount:(0,a.Dz)(0),targetTextModel:(0,a.Dz)(null!==(i=this.editor.getModel())&&void 0!==i?i:void 0),range:(0,a.Dz)(n.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new Z(l,n),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var e;this._isAccepting.set(!0,void 0);const t=null===(e=this._currentEdit.get())||void 0===e?void 0:e.edit;if(!t)return;let i=t.text;t.text.startsWith("\n")&&(i=t.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[l.h.replace(h.e.lift(t.range),i)]),t.accepted&&await this._commandService.executeCommand(t.accepted.id,...t.accepted.arguments||[]).then(void 0,$.Cp),this.freeEdit(t),(0,a.PS)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){var e,t;this._jumpBackPosition=null===(e=this.editor.getSelection())||void 0===e?void 0:e.getStartPosition();const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;if(!i)return;const n=d.L.lift({lineNumber:i.range.startLineNumber,column:i.range.startColumn});this.editor.setPosition(n),this.editor.revealPositionInCenterIfOutsideViewport(n)}async clear(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i&&(null===i||void 0===i?void 0:i.rejected)&&e&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,$.Cp),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}shouldShowHoverAt(e){const t=this._currentEdit.get();if(!t)return!1;const i=t.edit,n=t.widget.model;if(h.e.containsPosition(i.range,e.getStartPosition())||h.e.containsPosition(i.range,e.getEndPosition()))return!0;const s=n.ghostText.get();return!!s&&s.parts.some((t=>e.containsPosition(new d.L(s.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.widget.ownsViewZone(e))&&void 0!==i&&i}};Q.ID="editor.contrib.inlineEditController",Q.inlineEditVisibleKey="inlineEditVisible",Q.inlineEditVisibleContext=new y.uy(K.inlineEditVisibleKey,!1),Q.cursorAtInlineEditKey="cursorAtInlineEdit",Q.cursorAtInlineEditContext=new y.uy(K.cursorAtInlineEditKey,!1),Q=K=G([Y(1,w.TG),Y(2,y.i6),Y(3,x.p),Y(4,D.H),Y(5,q.Ui)],Q);class X extends n.R6{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:y.Ao.and(o.u.writable,Q.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:y.Ao.and(o.u.writable,Q.inlineEditVisibleContext,Q.cursorAtInlineEditContext)}],menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=Q.get(t);await(null===i||void 0===i?void 0:i.accept())}}class J extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,y.Ao.not(Q.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=Q.get(t);null===i||void 0===i||i.trigger()}}class ee extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,Q.inlineEditVisibleContext,y.Ao.not(Q.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=Q.get(t);null===i||void 0===i||i.jumpToCurrent()}}class te extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,Q.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=Q.get(t);null===i||void 0===i||i.jumpBack()}}class ie extends n.R6{constructor(){const e=y.Ao.and(o.u.writable,Q.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:O.eH.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=Q.get(t);await(null===i||void 0===i?void 0:i.clear())}}var ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},se=function(e,t){return function(i,n){t(i,n,e)}};class oe{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let re=class{constructor(e,t,i){this._editor=e,this._instantiationService=t,this._telemetryService=i,this.hoverOrdinal=5}suggestHoverAnchor(e){const t=Q.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId)){const t=i.range;return new s.YM(1e3,this,t,e.event.posx,e.event.posy,!1)}}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(63).showToolbar)return[];const i=Q.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new oe(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new r.SL;this._telemetryService.publicLog2("inlineEditHover.shown");const n=this._instantiationService.createInstance(z,this._editor,!1,(0,a.Dz)(null));return e.fragment.appendChild(n.getDomNode()),i.add(n),i}};re=ne([se(1,w.TG),se(2,B.b)],re),(0,n.Qr)(X),(0,n.Qr)(ie),(0,n.Qr)(ee),(0,n.Qr)(te),(0,n.Qr)(J),(0,n._K)(Q.ID,Q,3),s.Ae.register(re)},54829:(e,t,i)=>{"use strict";i.d(t,{r:()=>f});var n=i(76595),s=i(53372),o=i(61542),r=i(53186),a=i(78701),l=i(73045),d=i(28928),h=i(13277),c=i(87775),u=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=h.qx.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.B4,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends r.JT{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=n.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=n.$("span.icon");this.domNode.append(t),t.classList.add(...l.k.asClassNameArray(o.l.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(n.nm(this.domNode,n.tw.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}m.baseId="editor.widget.inlineProgressWidget";let f=class extends r.JT{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new r.XK),this._currentWidget=new r.XK,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=(0,s.Vg)((()=>{const n=d.e.fromPositions(e);this._currentDecorations.set([{range:n,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,n,t,i))}),this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,c.TG)],f)},25025:(e,t,i)=>{"use strict";var n=i(60548),s=i(93033),o=i(35770),r=i(5887);class a extends n.R6{constructor(){super({id:"expandLineSelection",label:r.NC("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:o.u.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,s.P.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(i.source,!0)}}(0,n.Qr)(a)},73166:(e,t,i)=>{"use strict";var n=i(17344),s=i(15968),o=i(60548),r=i(2196),a=i(78701),l=i(56154),d=i(28928);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const n=[];let s=0,o=0;const r=t.length;for(let h=1,c=e.getLineCount();h<=c;h++){const c=e.getLineContent(h),u=c.length+1;let g=0;if(o<r&&t[o].lineNumber===h&&(g=t[o].column,o++,g===u))continue;if(0===c.length)continue;const p=a.ow(c);let m=0;if(-1===p)m=1;else{if(p===c.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),n[s++]=l.h.delete(new d.e(h,m,h,u))}return n}(e,this._cursors,this._trimInRegexesAndStrings);for(let n=0,s=i.length;n<s;n++){const e=i[n];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var c=i(69922),u=i(74633),g=i(24854),p=i(35770);class m{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=[];for(let o=i.startLineNumber;o<=i.endLineNumber;o++)n.push(e.getLineContent(o));const s=n.join("\n");""===s&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new d.e(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new d.e(i.startLineNumber,1,i.startLineNumber,1),s+"\n"):t.addEditOperation(new d.e(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+s),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,n=i.endLineNumber,s=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(n+=this._endLineNumberDelta,s=1),i=g.Y.createWithDirection(e,t,n,s,this._selectionDirection)}return i}}var f=i(80869),_=i(39260),v=i(5580),b=i(27847),C=i(62553),y=i(37036),w=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};let x=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const{tabSize:s,indentSize:o,insertSpaces:r}=e.getOptions(),l=this.buildIndentConverter(s,o,r),h={tokenization:{getLineTokens:t=>e.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){const i=n.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new d.e(1,1,1,1),null):(t.addEditOperation(new d.e(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new d.e(s,1,s,e.getLineMaxColumn(s)),null)),n=new g.Y(s,1,s,1)}else{let i,o;if(this._isMovingDown){i=n.endLineNumber+1,o=e.getLineContent(i),t.addEditOperation(new d.e(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let c=o;if(this.shouldAutoIndent(e,n)){const u=this.matchEnterRule(e,l,s,i,n.startLineNumber-1);if(null!==u){const t=a.V8(e.getLineContent(i)),n=u+b.Y(t,s),l=b.J(n,s,r);c=l+this.trimStart(o)}else{h.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);const t=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber,l,this._languageConfigurationService);if(null!==t){const n=a.V8(e.getLineContent(i)),l=b.Y(t,s);if(l!==b.Y(n,s)){const e=b.J(l,s,r);c=e+this.trimStart(o)}}}t.addEditOperation(new d.e(n.startLineNumber,1,n.startLineNumber,1),c+"\n");const g=this.matchEnterRuleMovingDown(e,l,s,n.startLineNumber,i,c);if(null!==g)0!==g&&this.getIndentEditsOfMovingBlock(e,t,n,s,r,g);else{h.getLineContent=t=>t===n.startLineNumber?c:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);const o=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,l,this._languageConfigurationService);if(null!==o){const i=a.V8(e.getLineContent(n.startLineNumber)),l=b.Y(o,s),d=b.Y(i,s);if(l!==d){const i=l-d;this.getIndentEditsOfMovingBlock(e,t,n,s,r,i)}}}}else t.addEditOperation(new d.e(n.startLineNumber,1,n.startLineNumber,1),c+"\n")}else if(i=n.startLineNumber-1,o=e.getLineContent(i),t.addEditOperation(new d.e(i,1,i+1,1),null),t.addEditOperation(new d.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,n)){h.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);const o=this.matchEnterRule(e,l,s,n.startLineNumber,n.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,n,s,r,o);else{const o=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(n.startLineNumber,1),i,l,this._languageConfigurationService);if(null!==o){const i=a.V8(e.getLineContent(n.startLineNumber)),l=b.Y(o,s),d=b.Y(i,s);if(l!==d){const i=l-d;this.getIndentEditsOfMovingBlock(e,t,n,s,r,i)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>f.U.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>f.U.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,s){if(s){let o=s.indentation;s.indentAction===_.wU.None||s.indentAction===_.wU.Indent?o=s.indentation+s.appendText:s.indentAction===_.wU.IndentOutdent?o=s.indentation:s.indentAction===_.wU.Outdent&&(o=t.unshiftIndent(s.indentation)+s.appendText);const r=e.getLineContent(n);if(this.trimStart(r).indexOf(this.trimStart(o))>=0){const s=a.V8(e.getLineContent(n));let r=a.V8(o);const l=(0,C.tI)(e,n,this._languageConfigurationService);null!==l&&2&l&&(r=t.unshiftIndent(r));return b.Y(r,i)-b.Y(s,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,s,o){if(a.ow(o)>=0){const o=e.getLineMaxColumn(s),r=(0,y.A)(this._autoIndent,e,new d.e(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let s=n-1;for(;s>=1;){const t=e.getLineContent(s);if(a.ow(t)>=0)break;s--}if(s<1||n>e.getLineCount())return null;const o=e.getLineMaxColumn(s),r=(0,y.A)(this._autoIndent,e,new d.e(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,s,o){let r=s;for(;r>=1;){let t;t=r===s&&void 0!==o?o:e.getLineContent(r);if(a.ow(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(r),h=(0,y.A)(this._autoIndent,e,new d.e(r,l,r,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,s,o){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const l=e.getLineContent(r),h=a.V8(l),c=b.Y(h,n)+o,u=b.J(c,n,s);u!==h&&(t.addEditOperation(new d.e(r,1,r,h.length+1),u),r===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};x=w([S(3,v.c_)],x);class L{static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const n=k(e,t,i);if(!n)return null;return l.h.replace(new d.e(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),n.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const n=k(e,t,i);if(!n)return!1;for(let s=0,o=n.before.length;s<o;s++)if(n.before[s]!==n.after[s])return!0;return!1}}function k(e,t,i){const n=t.startLineNumber;let s=t.endLineNumber;if(1===t.endColumn&&s--,n>=s)return null;const o=[];for(let a=n;a<=s;a++)o.push(e.getLineContent(a));let r=o.slice(0);return r.sort(L.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:s,before:o,after:r}}L._COLLATOR=null;var D=i(5887),N=i(6178),E=i(30600);class T extends o.R6{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>d.e.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let o=1;o<i.length;o++){const e=i[o];n.selection.endLineNumber===e.selection.startLineNumber&&(n.index<e.index?e.ignore=!0:(n.ignore=!0,n=e))}const s=[];for(const o of i)s.push(new m(o.selection,this.down,o.ignore));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class I extends o.R6{constructor(){super({id:"editor.action.duplicateSelection",label:D.NC("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:p.u.writable,menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const n=[],s=t.getSelections(),o=t.getModel();for(const a of s)if(a.isEmpty())n.push(new m(a,!0));else{const e=new g.Y(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);n.push(new r.OY(e,o.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends o.R6{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(v.c_),n=[],s=t.getSelections()||[],o=t.getOption(12);for(const r of s)n.push(new x(r,this.down,o,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class A extends o.R6{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let n=t.getSelections();1===n.length&&n[0].isEmpty()&&(n=[new g.Y(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const o of n)if(!L.canRun(t.getModel(),o,this.descending))return;const s=[];for(let o=0,r=n.length;o<r;o++)s[o]=new L(n[o],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class R extends o.R6{constructor(){super({id:"editor.action.removeDuplicateLines",label:D.NC("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:p.u.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const n=[],s=[];let o=0,r=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new g.Y(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],r=!1);for(const d of a){const e=new Set,t=[];for(let n=d.startLineNumber;n<=d.endLineNumber;n++){const s=i.getLineContent(n);e.has(s)||(t.push(s),e.add(s))}const r=new g.Y(d.startLineNumber,1,d.endLineNumber,i.getLineMaxColumn(d.endLineNumber)),a=d.startLineNumber-o,h=new g.Y(a,1,a+t.length-1,t[t.length-1].length);n.push(l.h.replace(r,t.join("\n"))),s.push(h),o+=d.endLineNumber-d.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,n,r?s:void 0),t.pushUndoStop()}}class O extends o.R6{constructor(){super({id:O.ID,label:D.NC("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:(0,n.gx)(2089,2102),weight:100}})}run(e,t,i){let n=[];"auto-save"===i.reason&&(n=(t.getSelections()||[]).map((e=>new u.L(e.positionLineNumber,e.positionColumn))));const s=t.getSelection();if(null===s)return;const o=e.get(E.Ui),r=t.getModel(),a=o.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:null===r||void 0===r?void 0:r.getLanguageId(),resource:null===r||void 0===r?void 0:r.uri}),l=new h(s,n,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),t.pushUndoStop()}}O.ID="editor.action.trimTrailingWhitespace";class P extends o.R6{constructor(){super({id:"editor.action.deleteLines",label:D.NC("lines.delete","Delete Line"),alias:"Delete Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let s=0;const o=[],r=[];for(let a=0,d=i.length;a<d;a++){const e=i[a];let t=e.startLineNumber,d=e.endLineNumber,h=1,c=n.getLineMaxColumn(d);d<n.getLineCount()?(d+=1,c=1):t>1&&(t-=1,h=n.getLineMaxColumn(t)),o.push(l.h.replace(new g.Y(t,h,d,c),"")),r.push(new g.Y(t-s,e.positionColumn,t-s,e.positionColumn)),s+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let s=1;s<t.length;s++)n.endLineNumber+1>=t[s].startLineNumber?n.endLineNumber=t[s].endLineNumber:(i.push(n),n=t[s]);return i.push(n),i}}class F extends o.R6{constructor(){super({id:"editor.action.indentLines",label:D.NC("lines.indent","Indent Line"),alias:"Indent Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.u6.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class B extends o.R6{constructor(){super({id:"editor.action.outdentLines",label:D.NC("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2140,weight:100}})}run(e,t){s.wk.Outdent.runEditorCommand(e,t,null)}}class V extends o.R6{constructor(){super({id:"editor.action.insertLineBefore",label:D.NC("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.u6.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends o.R6{constructor(){super({id:"editor.action.insertLineAfter",label:D.NC("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.u6.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class H extends o.R6{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),s=[];for(let a=0,l=n.length-1;a<l;a++){const e=n[a],t=n[a+1];null===d.e.intersectRanges(e,t)?s.push(e):n[a+1]=d.e.plusRange(e,t)}s.push(n[n.length-1]);const o=this._getEndCursorState(i,s),r=s.map((e=>l.h.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}}class z extends o.R6{constructor(){super({id:"editor.action.joinLines",label:D.NC("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(d.e.compareRangesUsingStarts);const s=[],o=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(s.push(e),t):new g.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(s.push(e),t):new g.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));s.push(o);const r=t.getModel();if(null===r)return;const a=[],h=[];let c=n,u=0;for(let p=0,m=s.length;p<m;p++){const e=s[p],t=e.startLineNumber,i=1;let o,m,f=0;const _=r.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<r.getLineCount()?(o=t+1,m=r.getLineMaxColumn(o)):(o=i.lineNumber,m=r.getLineMaxColumn(i.lineNumber))}else o=e.endLineNumber,m=r.getLineMaxColumn(o);let v=r.getLineContent(t);for(let n=t+1;n<=o;n++){const e=r.getLineContent(n),t=r.getLineFirstNonWhitespaceColumn(n);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const n=e.substr(t-1);v+=(i?" ":"")+n,f=i?n.length+1:n.length}else f=0}const b=new d.e(t,i,o,m);if(!b.isEmpty()){let i;e.isEmpty()?(a.push(l.h.replace(b,v)),i=new g.Y(b.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(l.h.replace(b,v)),i=new g.Y(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(l.h.replace(b,v)),i=new g.Y(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==d.e.intersectRanges(b,n)?c=i:h.push(i)}u+=b.endLineNumber-b.startLineNumber}h.unshift(c),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class j extends o.R6{constructor(){super({id:"editor.action.transpose",label:D.NC("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:p.u.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const s=[];for(let o=0,a=i.length;o<a;o++){const e=i[o];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=n.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===n.getLineCount())continue;const e=new d.e(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=n.getValueInRange(e).split("").reverse().join("");s.push(new r.T4(new g.Y(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new d.e(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=n.getValueInRange(e).split("").reverse().join("");s.push(new r.hP(e,i,new g.Y(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class U extends o.R6{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const s=t.getOption(131),o=[];for(const r of i)if(r.isEmpty()){const e=r.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new d.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=n.getValueInRange(a);o.push(l.h.replace(a,this._modifyText(h,s)))}else{const e=n.getValueInRange(r);o.push(l.h.replace(r,this._modifyText(e,s)))}t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class q extends U{constructor(){super({id:"editor.action.transformToTitlecase",label:D.NC("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:p.u.writable})}_modifyText(e,t){const i=q.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}q.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class $ extends U{constructor(){super({id:"editor.action.transformToSnakecase",label:D.NC("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:p.u.writable})}_modifyText(e,t){const i=$.caseBoundary.get(),n=$.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}$.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu"),$.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class G extends U{constructor(){super({id:"editor.action.transformToCamelcase",label:D.NC("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:p.u.writable})}_modifyText(e,t){const i=G.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}G.wordBoundary=new K("[_\\s-]","gm");class Y extends U{constructor(){super({id:"editor.action.transformToPascalcase",label:D.NC("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:p.u.writable})}_modifyText(e,t){const i=Y.wordBoundary.get(),n=Y.wordBoundaryToMaintain.get();if(!i||!n)return e;return e.split(n).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}Y.wordBoundary=new K("[_\\s-]","gm"),Y.wordBoundaryToMaintain=new K("(?<=\\.)","gm");class Z extends U{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}constructor(){super({id:"editor.action.transformToKebabcase",label:D.NC("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:p.u.writable})}_modifyText(e,t){const i=Z.caseBoundary.get(),n=Z.singleLetters.get(),s=Z.underscoreBoundary.get();return i&&n&&s?e.replace(s,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}Z.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu"),Z.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),Z.underscoreBoundary=new K("(\\S)(_)(\\S)","gm"),(0,o.Qr)(class extends T{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:D.NC("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,o.Qr)(class extends T{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:D.NC("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,o.Qr)(I),(0,o.Qr)(class extends M{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:D.NC("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,o.Qr)(class extends M{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:D.NC("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:D.NC({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,o.Qr)(class extends A{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:D.NC("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:p.u.writable})}}),(0,o.Qr)(class extends A{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:D.NC("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:p.u.writable})}}),(0,o.Qr)(R),(0,o.Qr)(O),(0,o.Qr)(P),(0,o.Qr)(F),(0,o.Qr)(B),(0,o.Qr)(V),(0,o.Qr)(W),(0,o.Qr)(class extends H{constructor(){super({id:"deleteAllLeft",label:D.NC("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let s=0;return t.forEach((t=>{let o;if(1===t.endColumn&&s>0){const e=t.startLineNumber-s;o=new g.Y(e,t.startColumn,e,t.startColumn)}else o=new g.Y(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);s+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=o:n.push(o)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(d.e.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineLength(t)+1;return new d.e(t,i,e.startLineNumber,1)}return new d.e(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new d.e(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,o.Qr)(class extends H{constructor(){super({id:"deleteAllRight",label:D.NC("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let s=0,o=t.length,r=0;s<o;s++){const o=t[s],a=new g.Y(o.startLineNumber-r,o.startColumn,o.startLineNumber-r,o.startColumn);o.intersectRanges(e)?i=a:n.push(a)}return i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const n=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new d.e(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new d.e(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(d.e.compareRangesUsingStarts),n}}),(0,o.Qr)(z),(0,o.Qr)(j),(0,o.Qr)(class extends U{constructor(){super({id:"editor.action.transformToUppercase",label:D.NC("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:p.u.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,o.Qr)(class extends U{constructor(){super({id:"editor.action.transformToLowercase",label:D.NC("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:p.u.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),$.caseBoundary.isSupported()&&$.singleLetters.isSupported()&&(0,o.Qr)($),G.wordBoundary.isSupported()&&(0,o.Qr)(G),Y.wordBoundary.isSupported()&&(0,o.Qr)(Y),q.titleBoundary.isSupported()&&(0,o.Qr)(q),Z.isSupported()&&(0,o.Qr)(Z)},27353:(e,t,i)=>{"use strict";var n,s=i(51833),o=i(53372),r=i(76946),a=i(63932),l=i(16015),d=i(39706),h=i(53186),c=i(78701),u=i(91387),g=i(60548),p=i(74246),m=i(74633),f=i(28928),_=i(35770),v=i(13277),b=i(5580),C=i(5887),y=i(47116),w=i(53869),S=i(6009),x=i(14386),L=i(6617),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const N=new y.uy("LinkedEditingInputVisible",!1);let E=n=class extends h.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,s){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new h.SL),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=N.bindTo(t),this._debounceInformation=s.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(93))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(93))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(d.ju.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new o.vp(this._debounceInformation.get(t)),s=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},r=new o.vp(0),a=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{s()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}s()}))),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const s=[];for(let o=1,r=this._currentDecorations.length;o<r;o++){const e=this._currentDecorations.getRange(o);if(e)if(e.startLineNumber!==e.endLineNumber)s.push({range:e,text:n});else{let i=t.getValueInRange(e),o=n,r=e.startColumn,a=e.endColumn;const l=c.Mh(i,o);r+=l,i=i.substr(l),o=o.substr(l);const d=c.P1(i,o);a-=d,i=i.substr(0,i.length-d),o=o.substr(0,o.length-d),r===a&&0===o.length||s.push({range:new f.e(e.startLineNumber,r,e.endLineNumber,a),text:o})}}if(0!==s.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",s),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),s=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===s){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=s;const o=this._currentRequestCts=new r.A;try{const e=new L.G(!1),r=await M(this._providers,i,t,o.token);if(this._debounceInformation.update(i,e.elapsed()),o!==this._currentRequestCts)return;if(this._currentRequestCts=null,s!==i.getVersionId())return;let a=[];(null===r||void 0===r?void 0:r.ranges)&&(a=r.ranges),this._currentWordPattern=(null===r||void 0===r?void 0:r.wordPattern)||this._languageWordPattern;let l=!1;for(let i=0,n=a.length;i<n;i++)if(f.e.containsPosition(a[i],t)){if(l=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!l)return void this.clearRanges();const d=a.map((e=>({range:e,options:n.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(d),this._syncRangesToken++}catch(a){(0,l.n2)(a)||(0,l.dL)(a),this._currentRequestCts!==o&&this._currentRequestCts||this.clearRanges()}}};E.ID="editor.contrib.linkedEditing",E.DECORATION=v.qx.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),E=n=k([D(1,y.i6),D(2,w.p),D(3,b.c_),D(4,x.A)],E);class T extends g.R6{constructor(){super({id:"editor.action.linkedEditing",label:C.NC("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:y.Ao.and(_.u.writable,_.u.hasRenameProvider),kbOpts:{kbExpr:_.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.$),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return u.o.isUri(n)&&m.L.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(s),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),l.dL):super.runCommand(e,t)}run(e,t){const i=E.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const I=g._l.bindToContribution(E.get);function M(e,t,i,n){const r=e.ordered(t);return(0,o.Ps)(r.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,n)}catch(s){return void(0,l.Cp)(s)}})),(e=>!!e&&s.Of(null===e||void 0===e?void 0:e.ranges)))}(0,g.fK)(new I({id:"cancelLinkedEditingInput",precondition:N,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,S.P6G)("editor.linkedEditingBackground",{dark:a.Il.fromHex("#f00").transparent(.3),light:a.Il.fromHex("#f00").transparent(.3),hcDark:a.Il.fromHex("#f00").transparent(.3),hcLight:a.Il.white},C.NC("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.sb)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(w.p);return M(n,t,i,r.T.None)})),(0,g._K)(E.ID,E,1),(0,g.Qr)(T)},46030:(e,t,i)=>{"use strict";var n=i(53372),s=i(76946),o=i(16015),r=i(73971),a=i(53186),l=i(32060),d=i(90388),h=i(30506),c=i(6617),u=i(91387),g=i(60548),p=i(13277),m=i(14386),f=i(53869),_=i(18519),v=i(51833),b=i(47624),C=i(28928),y=i(23058),w=i(94943);class S{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class x{constructor(e){this._disposables=new a.SL;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new S(e,n)));t=x._union(t,e),(0,a.Wf)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,s,o,r;for(n=0,o=0,s=e.length,r=t.length;n<s&&o<r;){const s=e[n],r=t[o];if(C.e.areIntersectingOrTouching(s.range,r.range)){n++;continue}C.e.compareRangesUsingStarts(s.range,r.range)<0?(i.push(s),n++):(i.push(r),o++)}for(;n<s;n++)i.push(e[n]);for(;o<r;o++)i.push(t[o]);return i}}function L(e,t,i){const n=[],s=e.ordered(t).reverse().map(((e,s)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[s]=[t,e])}),o.Cp)));return Promise.all(s).then((()=>{const e=new x((0,v.kX)(n));return i.isCancellationRequested?(e.dispose(),new x([])):e}))}w.P.registerCommand("_executeLinkProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];let[o,r]=i;(0,b.p_)(o instanceof u.o),"number"!==typeof r&&(r=0);const{linkProvider:a}=e.get(f.p),l=e.get(y.q).getModel(o);if(!l)return[];const d=await L(a,l,s.T.None);if(!d)return[];for(let c=0;c<Math.min(r,d.links.length);c++)await d.links[c].resolve(s.T.None);const h=d.links.slice(0);return d.dispose(),h}));var k,D=i(5887),N=i(61758),E=i(34912),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=k=class extends a.JT{static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s,o){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=s,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new n.pY((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new _.yN(e));this._register(r.onMouseMoveOrRelevantKeyDown((e=>{let[t,i]=e;this._onEditorMouseMove(t,i)}))),this._register(r.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(r.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,n.PG)((t=>L(this.providers,e,t)));try{const t=new c.G(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,o.dL)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],n=Object.keys(this.currentOccurrences);for(const o of n){const e=this.currentOccurrences[o];i.push(e.decorationId)}const s=[];if(e)for(const o of e)s.push(O.decoration(o,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,s=n.length;i<s;i++){const t=new O(e[i],n[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.openerService)return;const{link:n}=e;n.resolve(s.T.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.lg.file&&e.startsWith(`${l.lg.file}:`)){const i=u.o.parse(e);if(i.scheme===l.lg.file){const n=h.z_(i);let s=null;n.startsWith("/./")||n.startsWith("\\.\\")?s=`.${n.substr(1)}`:(n.startsWith("//./")||n.startsWith("\\\\.\\"))&&(s=`.${n.substr(2)}`),s&&(e=h.Vo(t,s))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(D.NC("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(D.NC("missing.url","Failed to open this link because its target is missing.")):(0,o.dL)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};M.ID="editor.linkDetector",M=k=T([I(1,E.v),I(2,N.lT),I(3,f.p),I(4,m.A)],M);const A=p.qx.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),R=p.qx.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class O{static decoration(e,t){return{range:e.range,options:O._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n={...i?R:A};return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?D.NC("links.navigate.executeCmd","Execute command"):D.NC("links.navigate.follow","Follow link"),s=t?d.dz?D.NC("links.navigate.kb.meta.mac","cmd + click"):D.NC("links.navigate.kb.meta","ctrl + click"):d.dz?D.NC("links.navigate.kb.alt.mac","option + click"):D.NC("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=D.NC("tooltip.explanation","Execute command {0}",e)}}return new r.W5("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${s})`)}return(new r.W5).appendText(`${n} (${s})`)}(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,O._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,O._getOptions(this.link,t,!1))}}class P extends g.R6{constructor(){super({id:"editor.action.openLink",label:D.NC("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=M.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const s of n){const e=i.getLinkOccurrence(s.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g._K)(M.ID,M,1),(0,g.Qr)(P)},36513:(e,t,i)=>{"use strict";var n=i(53186),s=i(60548);class o extends n.JT{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(117);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}o.ID="editor.contrib.longLinesHelper",(0,s._K)(o.ID,o,2)},10843:(e,t,i)=>{"use strict";i.d(t,{O:()=>v});var n,s=i(16315),o=i(83945),r=i(39706),a=i(73971),l=i(53186),d=i(60548),h=i(28928),c=i(35978),u=i(5887),g=i(47116),p=i(34912),m=i(76595),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new l.XK,this._messageListeners=new l.SL,this._mouseOverMessage=!1,this._editor=e,this._visible=n.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;null===(e=this._message)||void 0===e||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,o.Z9)((0,a.Fr)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.Fr)(e)?(0,s.ap)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,c.N)(this._openerService,t,(0,a.Fr)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new C(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(r.ju.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.jg(m.vY(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.nm(this._messageWidget.value.getDomNode(),m.tw.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.nm(this._messageWidget.value.getDomNode(),m.tw.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.e(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(C.fadeOut(this._messageWidget.value))}};v.ID="editor.contrib.messageController",v.MESSAGE_VISIBLE=new g.uy("messageVisible",!1,u.NC("messageVisible","Whether the editor is currently showing an inline message")),v=n=f([_(1,g.i6),_(2,p.v)],v);const b=d._l.bindToContribution(v.get);(0,d.fK)(new b({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class C{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,t,i){let{lineNumber:n,column:s}=t;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(n,n,0),this._position={lineNumber:n,column:s},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");"string"===typeof i?(r.classList.add("message"),r.textContent=i):(i.classList.add("message"),r.appendChild(i)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,d._K)(v.ID,v,4)},81927:(e,t,i)=>{"use strict";var n,s=i(83945),o=i(53372),r=i(17344),a=i(53186),l=i(60548),d=i(93033),h=i(28928),c=i(24854),u=i(35770),g=i(45713),p=i(5887),m=i(6178),f=i(47116),_=i(53869),v=i(11797),b=i(87775),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};function w(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.NC("cursorAdded","Cursor added: {0}",e):p.NC("cursorsAdded","Cursors added: {0}",e);(0,s.i7)(t)}}class S extends l.R6{constructor(){super({id:"editor.action.insertCursorAbove",label:p.NC("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.u.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const o=s.getCursorStates();s.setCursorStates(i.source,3,d.P.addCursorUp(s,o,n)),s.revealTopMostCursor(i.source),w(o,s.getCursorStates())}}class x extends l.R6{constructor(){super({id:"editor.action.insertCursorBelow",label:p.NC("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.u.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const o=s.getCursorStates();s.setCursorStates(i.source,3,d.P.addCursorDown(s,o,n)),s.revealBottomMostCursor(i.source),w(o,s.getCursorStates())}}class L extends l.R6{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.NC("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.u.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){const e=t.getLineMaxColumn(n);i.push(new c.Y(n,e,n,e))}e.endColumn>1&&i.push(new c.Y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),s=t._getViewModel(),o=s.getCursorStates(),r=[];n.forEach((e=>this.getCursorsForSelection(e,i,r))),r.length>0&&t.setSelections(r),w(o,s.getCursorStates())}}class k extends l.R6{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.NC("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),s=[];for(let a=i[0].startLineNumber;a<=n;a++)s.push(new c.Y(a,i[0].startColumn,a,i[0].endColumn));const o=t._getViewModel(),r=o.getCursorStates();s.length>0&&t.setSelections(s),w(r,o.getCursorStates())}}class D extends l.R6{constructor(){super({id:"editor.action.addCursorsToTop",label:p.NC("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let r=i[0].startLineNumber;r>=1;r--)n.push(new c.Y(r,i[0].startColumn,r,i[0].endColumn));const s=t._getViewModel(),o=s.getCursorStates();n.length>0&&t.setSelections(n),w(o,s.getCursorStates())}}class N{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class E{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new E(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,s,o=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(o=!0,n=!0,s=!0):(n=i.wholeWord,s=i.matchCase);const a=e.getSelection();let l,d=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,d=new c.Y(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new E(e,t,o,l,n,s,d)}constructor(e,t,i,n,s,o,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=s,this.matchCase=o,this.currentMatch=r}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new c.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new N(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new c.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}class T extends a.JT{static get(e){return e.getContribution(T.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.SL),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=E.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new c.Y(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!R(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let n=0,s=t.length;n<s;n++)i[n]=this._expandEmptyToWord(e,t[n]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){const n=t[i];if(n.range.intersectRanges(e)){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map((e=>new c.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}T.ID="editor.contrib.multiCursorController";class I extends l.R6{run(e,t){const i=T.get(t);if(!i)return;const n=t._getViewModel();if(n){const s=n.getCursorStates(),o=g.pR.get(t);if(o)this._run(i,o);else{const n=e.get(b.TG).createInstance(g.pR,t);this._run(i,n),n.dispose()}w(s,n.getCursorStates())}}}class M{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.e.compareRangesUsingStarts)),this._cachedFindMatches}}let A=n=class extends a.JT{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(108),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new o.pY((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(108)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.pR.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(n._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const s=T.get(i);if(!s)return null;const o=g.pR.get(i);if(!o)return null;let r=s.getSession(o);if(!r){const e=i.getSelections();if(e.length>1){const t=o.getState().matchCase;if(!R(i.getModel(),e,t))return null}r=E.create(i,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=o.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=r.searchText;if(l||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new M(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(131):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(h.e.compareRangesUsingStarts);const s=[];for(let l=0,d=0,c=i.length,u=n.length;l<c;){const e=i[l];if(d>=u)s.push(e),l++;else{const t=h.e.compareRangesUsingStarts(e,n[d]);t<0?(!n[d].isEmpty()&&h.e.areIntersecting(e,n[d])||s.push(e),l++):(t>0||l++,d++)}}const o="off"!==this.editor.getOption(81),r=this._languageFeaturesService.documentHighlightProvider.has(t)&&o,a=s.map((e=>({range:e,options:(0,v.w)(r)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function R(e,t,i){const n=O(e,t[0],!i);for(let s=1,o=t.length;s<o;s++){const o=t[s];if(o.isEmpty())return!1;if(n!==O(e,o,!i))return!1}return!0}function O(e,t,i){const n=e.getValueInRange(t);return i?n.toLowerCase():n}A.ID="editor.contrib.selectionHighlighter",A=n=C([y(1,_.p)],A);class P extends l.R6{constructor(){super({id:"editor.action.focusNextCursor",label:p.NC("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.NC("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const s=Array.from(n.getCursorStates()),o=s.shift();o&&(s.push(o),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),w(s,n.getCursorStates()))}}class F extends l.R6{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.NC("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.NC("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const s=Array.from(n.getCursorStates()),o=s.pop();o&&(s.unshift(o),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),w(s,n.getCursorStates()))}}(0,l._K)(T.ID,T,4),(0,l._K)(A.ID,A,1),(0,l.Qr)(S),(0,l.Qr)(x),(0,l.Qr)(L),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.NC("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.u.focus,primary:2082,weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.NC("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.NC("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.u.focus,primary:(0,r.gx)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.NC("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.selectHighlights",label:p.NC("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.u.focus,primary:3114,weight:100},menuOpts:{menuId:m.eH.MenubarSelectionMenu,group:"3_multi",title:p.NC({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,l.Qr)(class extends I{constructor(){super({id:"editor.action.changeAll",label:p.NC("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.Ao.and(u.u.writable,u.u.editorTextFocus),kbOpts:{kbExpr:u.u.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,l.Qr)(k),(0,l.Qr)(D),(0,l.Qr)(P),(0,l.Qr)(F)},10628:(e,t,i)=>{"use strict";var n=i(20447),s=i(53186),o=i(60548),r=i(35770),a=i(18841),l=i(53869),d=i(53372),h=i(16015),c=i(39706),u=i(47498),g=i(76946),p=i(47624),m=i(91387),f=i(74633),_=i(43537),v=i(94943),b=i(47116);const C={Visible:new b.uy("parameterHintsVisible",!1),MultipleSignatures:new b.uy("parameterHintsMultipleSignatures",!1)};async function y(e,t,i,n,s){const o=e.ordered(t);for(const a of o)try{const e=await a.provideSignatureHelp(t,i,s,n);if(e)return e}catch(r){(0,h.Cp)(r)}}var w;v.P.registerCommand("_executeSignatureHelpProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[s,o,r]=i;(0,p.p_)(m.o.isUri(s)),(0,p.p_)(f.L.isIPosition(o)),(0,p.p_)("string"===typeof r||!r);const d=e.get(l.p),h=await e.get(_.S).createModelReference(s);try{const e=await y(d.signatureHelpProvider,h.object.textEditorModel,f.L.lift(o),{triggerKind:a.WW.Invoke,isRetrigger:!1,triggerCharacter:r},g.T.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{h.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(w||(w={}));class S extends s.JT{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.DEFAULT_DELAY;super(),this._onChangedHints=this._register(new c.Q5),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=w.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new s.XK),this.triggerChars=new u.q,this.retriggerChars=new u.q,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new d.vp(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state=w.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(n)),t).catch(h.dL)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new w.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(x);this._pendingTriggers=[];const s={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const o=this.editor.getModel(),r=this.editor.getPosition();this.state=new w.Pending((0,d.PG)((e=>y(this.providers,o,r,s,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(null===t||void 0===t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new w.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null===t||void 0===t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=w.Default),(0,h.dL)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WW.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WW.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function x(e,t){switch(t.triggerKind){case a.WW.Invoke:return t;case a.WW.ContentChange:return e;case a.WW.TriggerCharacter:default:return t}}S.DEFAULT_DELAY=120;var L,k=i(5887),D=i(87775),N=i(76595),E=i(83945),T=i(24622),I=i(61542),M=i(78701),A=i(91342),R=i(35978),O=i(34912),P=i(6009),F=i(54329),B=i(73045),V=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};const H=N.$,z=(0,F.q5)("parameter-hints-next",I.l.chevronDown,k.NC("parameterHintsNextIcon","Icon for show next parameter hint.")),j=(0,F.q5)("parameter-hints-previous",I.l.chevronUp,k.NC("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let U=L=class extends s.JT{constructor(e,t,i,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new s.SL),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new R.$({editor:e},o,n)),this.keyVisible=C.Visible.bindTo(i),this.keyMultipleSignatures=C.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=H(".editor-widget.parameter-hints-widget"),t=N.R3(e,H(".phwrapper"));t.tabIndex=-1;const i=N.R3(t,H(".controls")),n=N.R3(i,H(".button"+B.k.asCSSSelector(j))),s=N.R3(i,H(".overloads")),o=N.R3(i,H(".button"+B.k.asCSSSelector(z)));this._register(N.nm(n,"click",(e=>{N.zB.stop(e),this.previous()}))),this._register(N.nm(o,"click",(e=>{N.zB.stop(e),this.next()})));const r=H(".body"),a=new T.s$(r,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=N.R3(r,H(".signature")),d=N.R3(r,H(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:s,docs:d,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${e.fontSize}px`,this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};h(),this._register(c.ju.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{var e;null===(e=this.domNodes)||void 0===e||e.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const s=N.R3(this.domNodes.signature,H(".code")),o=this.editor.getOption(50);s.style.fontSize=`${o.fontSize}px`,s.style.fontFamily=o.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;if(r)this.renderParameters(s,n,a);else{N.R3(s,H("span")).textContent=n.label}const l=n.parameters[a];if(null===l||void 0===l?void 0:l.documentation){const e=H("span.documentation");if("string"===typeof l.documentation)e.textContent=l.documentation;else{const t=this.renderMarkdownDocs(l.documentation);e.appendChild(t.element)}N.R3(this.domNodes.docs,H("p",{},e))}if(void 0===n.documentation);else if("string"===typeof n.documentation)N.R3(this.domNodes.docs,H("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);N.R3(this.domNodes.docs,e.element)}const d=this.hasDocs(n,l);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,l){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+="string"===typeof n.documentation?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(E.Z9(k.NC("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.cW)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.cW)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.cW)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.cW)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[n,s]=this.getParameterLabelOffsets(t,i),o=document.createElement("span");o.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,s),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(s),N.R3(e,o,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,M.ec)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return L.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};U.ID="editor.widget.parameterHintsWidget",U=L=V([W(2,b.i6),W(3,O.v),W(4,A.O)],U),(0,P.P6G)("editorHoverWidget.highlightForeground",{dark:P.Gwp,light:P.Gwp,hcDark:P.Gwp,hcLight:P.Gwp},k.NC("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var K,q=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},$=function(e,t){return function(i,n){t(i,n,e)}};let G=K=class extends s.JT{static get(e){return e.getContribution(K.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new S(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{var t;e?(this.widget.value.show(),this.widget.value.render(e)):null===(t=this.widget.rawValue)||void 0===t||t.hide()}))),this.widget=new n.o((()=>this._register(t.createInstance(U,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){var e;null===(e=this.widget.rawValue)||void 0===e||e.previous()}next(){var e;null===(e=this.widget.rawValue)||void 0===e||e.next()}trigger(e){this.model.trigger(e,0)}};G.ID="editor.controller.parameterHints",G=K=q([$(1,D.TG),$(2,l.p)],G);class Y extends o.R6{constructor(){super({id:"editor.action.triggerParameterHints",label:k.NC("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:r.u.hasSignatureHelpProvider,kbOpts:{kbExpr:r.u.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=G.get(t);null===i||void 0===i||i.trigger({triggerKind:a.WW.Invoke})}}(0,o._K)(G.ID,G,2),(0,o.Qr)(Y);const Z=o._l.bindToContribution(G.get);(0,o.fK)(new Z({id:"closeParameterHints",precondition:C.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:9,secondary:[1033]}})),(0,o.fK)(new Z({id:"showPrevParameterHint",precondition:b.Ao.and(C.Visible,C.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,o.fK)(new Z({id:"showNextParameterHint",precondition:b.Ao.and(C.Visible,C.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},60737:(e,t,i)=>{"use strict";i.d(t,{Fw:()=>A,Jy:()=>R,vk:()=>B,rc:()=>P,SC:()=>z,M8:()=>j,KY:()=>V,IH:()=>W,R7:()=>H});var n=i(76595),s=i(7144),o=i(51828),r=i(61542),a=i(73045),l=i(63932),d=i(39706),h=i(53335),c=i(60548),u=i(74246),g=i(2822),p=i(38571),m=i(30441),f=i(53186),_=i(28928),v=i(13277);const b=new l.Il(new l.VS(0,122,204)),C={showArrow:!0,showFrame:!0,className:"",frameColor:b,arrowColor:b,keepEditorSelection:!1};class y{constructor(e,t,i,n,s,o,r,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=r,this.ordinal=a,this._onDomNodeTop=s,this._onComputedHeight=o}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class w{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class S{constructor(e){this._editor=e,this._ruleName=S._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),n.uN(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){n.uN(this._ruleName),n.fk(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.e.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}S._IdGenerator=new m.R(".arrow-decoration-");class x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.SL,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.I8(t),h.jB(this.options,C,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}null===(t=this._resizeSash)||void 0===t||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.e.isIRange(e)?_.e.lift(e):_.e.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.qx.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),null===(e=this._arrow)||void 0===e||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const o=document.createElement("div");o.style.overflow="hidden";const r=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,e)}let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(r/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new y(o,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new w("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const d=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,s),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.e(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.g(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var L=i(5887),k=i(51887),D=i(47116),N=i(23026),E=i(87775),T=i(6009),I=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const A=(0,E.yh)("IPeekViewService");var R;(0,N.z)(A,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new D.uy("inReferenceSearchEditor",!0,L.NC("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(R||(R={}));let O=class{constructor(e,t){e instanceof g.H&&R.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.$).getFocusedCodeEditor();return t instanceof g.H?t.getParentEditor():t}O.ID="editor.contrib.referenceController",O=I([M(1,D.i6)],O),(0,c._K)(O.ID,O,0);const F={headerBackgroundColor:l.Il.white,primaryHeadingColor:l.Il.fromHex("#333333"),secondaryHeadingColor:l.Il.fromHex("#6c6c6cb3")};let B=class extends x{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new d.Q5,this.onDidClose=this._onDidClose.event,h.jB(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n.$(".head"),this._bodyElement=n.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=n.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),n.mu(this._titleElement,"click",(e=>this._onTitleClick(e)))),n.R3(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=n.$("span.filename"),this._secondaryHeading=n.$("span.dirname"),this._metaHeading=n.$("span.meta"),n.R3(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=n.$(".peekview-actions");n.R3(this._headElement,i);const l=this._getActionBarOptions();this._actionbarWidget=new s.o(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new o.aU("peekview.close",L.NC("label.close","Close"),a.k.asClassName(r.l.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:k.Id.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:n.PO(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n.$Z(this._metaHeading)):n.Cp(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};B=I([M(2,E.TG)],B);const V=(0,T.P6G)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Il.black,hcLight:l.Il.white},L.NC("peekViewTitleBackground","Background color of the peek view title area.")),W=(0,T.P6G)("peekViewTitleLabel.foreground",{dark:l.Il.white,light:l.Il.black,hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewTitleForeground","Color of the peek view title.")),H=(0,T.P6G)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},L.NC("peekViewTitleInfoForeground","Color of the peek view title info.")),z=(0,T.P6G)("peekView.border",{dark:T.c63,light:T.c63,hcDark:T.lRK,hcLight:T.lRK},L.NC("peekViewBorder","Color of the peek view borders and arrow.")),j=(0,T.P6G)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Il.black,hcLight:l.Il.white},L.NC("peekViewResultsBackground","Background color of the peek view result list.")),U=((0,T.P6G)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,T.P6G)("peekViewResult.fileForeground",{dark:l.Il.white,light:"#1E1E1E",hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,T.P6G)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},L.NC("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,T.P6G)("peekViewResult.selectionForeground",{dark:l.Il.white,light:"#6C6C6C",hcDark:l.Il.white,hcLight:T.NOs},L.NC("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,T.P6G)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Il.black,hcLight:l.Il.white},L.NC("peekViewEditorBackground","Background color of the peek view editor.")));(0,T.P6G)("peekViewEditorGutter.background",{dark:U,light:U,hcDark:U,hcLight:U},L.NC("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,T.P6G)("peekViewEditorStickyScroll.background",{dark:U,light:U,hcDark:U,hcLight:U},L.NC("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,T.P6G)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},L.NC("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,T.P6G)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},L.NC("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,T.P6G)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:T.xL1,hcLight:T.xL1},L.NC("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},28599:(e,t,i)=>{"use strict";i.d(t,{X:()=>h});var n=i(66870),s=i(53186),o=i(48850),r=i(24032),a=i(12354),l=i(46673),d=i(83945);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new s.SL;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new s.XK);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange((()=>{o.value=void 0,o.value=this.doProvide(e,t)}))),n}doProvide(e,t){var i;const r=new s.SL,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const l={editor:a},d=(0,o.Pi)(a);if(d){let e=null!==(i=a.saveViewState())&&void 0!==i?i:void 0;r.add(d.onDidChangeCursorPosition((()=>{var t;e=null!==(t=a.saveViewState())&&void 0!==t?t:void 0}))),l.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},r.add((0,n.M)(t.onCancellationRequested)((()=>{var e;return null===(e=l.restoreViewState)||void 0===e?void 0:e.call(l)})))}r.add((0,s.OF)((()=>this.clearDecorations(a)))),r.add(this.provideWithTextEditor(l,e,t))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation(e,t){let{editor:i}=e;i.setSelection(t.range,"code.jump"),i.revealRangeInCenter(t.range,0),t.preserveFocus||i.focus();const n=i.getModel();n&&"getLineContent"in n&&(0,d.i7)(`${n.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return(0,o.QI)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,l.EN)(a.m9),position:r.sh.Full}}}],[s,o]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:o}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},40606:(e,t,i)=>{"use strict";var n=i(73971),s=i(53186),o=i(60548),r=i(10843),a=i(5887);class l extends s.JT{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=r.O.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(92);t||(t=this.editor.isSimpleWidget?new n.W5(a.NC("editor.simple.readonly","Cannot edit in read-only input")):new n.W5(a.NC("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}l.ID="editor.contrib.readOnlyMessageController",(0,o._K)(l.ID,l,2)},36920:(e,t,i)=>{"use strict";var n=i(83945),s=i(53372),o=i(76946),r=i(16015),a=i(73971),l=i(53186),d=i(47624),h=i(91387),c=i(60548),u=i(80427),g=i(74246),p=i(74633),m=i(28928),f=i(35770),_=i(53869),v=i(19399),b=i(8037),C=i(10843),y=i(5887),w=i(6178),S=i(49817),x=i(47116),L=i(87775),k=i(33454),D=i(61758),N=i(97757),E=i(76322),T=i(57823),I=i(76595),M=i(27691),A=i(69394),R=i(51833),O=i(61542),P=i(39706),F=i(6617),B=i(64295),V=i(18841),W=i(25371),H=i(93617),z=i(6009),j=i(46673),U=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},K=function(e,t){return function(i,n){t(i,n,e)}};const q=new x.uy("renameInputVisible",!1,(0,y.NC)("renameInputVisible","Whether the rename input widget is visible"));new x.uy("renameInputFocused",!1,(0,y.NC)("renameInputFocused","Whether the rename input widget is focused"));let $=class{constructor(e,t,i,n,s,o){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=o,this.allowEditorOverflow=!0,this._disposables=new l.SL,this._visibleContextKey=q.bindTo(s),this._isEditingRenameCandidate=!1,this._beforeFirstInputFieldEditSW=new F.G,this._input=new Y,this._disposables.add(this._input),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._input.domNode),this._renameCandidateListView=this._disposables.add(new G(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._input.domNode.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._input.onDidChange((()=>{var e,t,i,n;void 0!==(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),!1===(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,s;if(!this._domNode)return;const o=e.getColor(z.rh),r=e.getColor(z.A42);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(z.D0T))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?` 0 0 8px 2px ${o}`:"",this._domNode.style.border=r?`1px solid ${r}`:"",this._domNode.style.color=String(null!==(i=e.getColor(z.zJb))&&void 0!==i?i:""),this._input.domNode.style.backgroundColor=String(null!==(n=e.getColor(z.sEe))&&void 0!==n?n:"");const a=e.getColor(z.dt_);this._input.domNode.style.borderWidth=a?"1px":"0px",this._input.domNode.style.borderStyle=a?"solid":"none",this._input.domNode.style.borderColor=null!==(s=null===a||void 0===a?void 0:a.toString())&&void 0!==s?s:"none"}_updateFont(){if(void 0===this._domNode)return;(0,d.p_)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._input.domNode);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.D6(this.getDomNode().ownerDocument.body),t=I.i(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const n=this._editor.getOption(67),{totalHeight:s}=Z.getLayoutInfo({lineHeight:n}),o=this._nPxAvailableBelow>6*s?[2,1]:[1,2];return{position:this._position,preference:o}}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=(0,y.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,d.p_)(this._renameCandidateListView),(0,d.p_)(void 0!==this._nPxAvailableAbove),(0,d.p_)(void 0!==this._nPxAvailableBelow);const t=I.wn(this._input.domNode),i=I.wn(this._label);let n;n=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:n-i-t,width:I.w(this._input.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())||(this._input.domNode.value=this._currentName)}focusPreviousRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())||(this._input.domNode.value=this._currentName)}getInput(e,t,i,n,r){const{start:a,end:h}=this._getSelection(e,t);this._renameCandidateProvidersCts=new o.A;const c=n(this._renameCandidateProvidersCts.token);this._updateRenameCandidates(c,t,r.token),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.L(e.startLineNumber,e.startColumn),this._currentName=t,this._input.domNode.value=t,this._input.domNode.setAttribute("selectionStart",a.toString()),this._input.domNode.setAttribute("selectionEnd",h.toString()),this._input.domNode.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset();const u=new l.SL;u.add((0,l.OF)((()=>r.dispose(!0)))),u.add((0,l.OF)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})));const g=new s.CR;return g.p.finally((()=>{u.dispose(),this._hide()})),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),g.complete(e),!0},this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,d.p_)(void 0!==this._renameCandidateListView);const n=this._renameCandidateListView.nCandidates;let s,o;const r=this._renameCandidateListView.focusedCandidate;void 0!==r?(this._trace("using new name from renameSuggestion"),s=r,o={k:"renameSuggestion"}):(this._trace("using new name from inputField"),s=this._input.domNode.value,o=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),s!==t&&0!==s.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),g.complete({newName:s,wantsPreview:i&&e,stats:{source:o,nRenameSuggestions:n,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},u.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),u.add(this._editor.onDidBlurEditorWidget((()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")}))),this._show(),g.p}_getSelection(e,t){(0,d.p_)(this._editor.hasModel());const i=this._editor.getSelection();let n=0,s=t.length;return m.e.isEmpty(i)||m.e.spansMultipleLines(i)||!m.e.containsRange(e,i)||(n=Math.max(0,i.startColumn-e.startColumn),s=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._input.domNode.focus(),this._input.domNode.setSelectionRange(parseInt(this._input.domNode.getAttribute("selectionStart")),parseInt(this._input.domNode.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){var n=this;const o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n._trace("_updateRenameCandidates",...t)};o("start");const r=await(0,s.eP)(Promise.allSettled(e),i);if(void 0===r)return void o("returning early - received updateRenameCandidates results - undefined");const a=r.flatMap((e=>"fulfilled"===e.status&&(0,d.$K)(e.value)?e.value:[]));o(`received updateRenameCandidates results - total (unfiltered) ${a.length} candidates.`);const l=R.EB(a,(e=>e.newSymbolName));o(`distinct candidates - ${l.length} candidates.`);const h=l.filter((e=>{let{newSymbolName:i}=e;return i.trim().length>0&&i!==this._input.domNode.value&&i!==t}));o(`valid distinct candidates - ${a.length} candidates.`),h.length<1?o("returning early - no valid distinct candidates"):(o("setting candidates"),this._renameCandidateListView.setCandidates(h),o("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];this._logService.trace("RenameWidget",...t)}};$=U([K(2,j.XE),K(3,W.d),K(4,x.i6),K(5,k.VZ)],$);class G{constructor(e,t){this._disposables=new l.SL,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),e.appendChild(this._listContainer),this._listWidget=G._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,H.TU)({listInactiveFocusForeground:z.NPS,listInactiveFocusBackground:z.Vqd}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout(e){let{height:t,width:i}=e;this._availableHeight=t,this._minimumWidth=i}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(e.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,n.i7((0,y.NC)("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();return 0===e.length?(this._listWidget.focusFirst(),!0):e[0]===this._listWidget.length-1?(this._listWidget.setFocus([]),!1):(this._listWidget.focusNext(),!0)}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();return 0===e.length?(this._listWidget.focusLast(),!0):0===e[0]?(this._listWidget.setFocus([]),!1):(this._listWidget.focusPrevious(),!0)}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=Z.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new Z(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new A.aV("NewSymbolNameCandidates",e,n,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Y{constructor(){this._onDidChange=new P.Q5,this.onDidChange=this._onDidChange.event,this._disposables=new l.SL}get domNode(){return this._domNode||(this._domNode=document.createElement("input"),this._domNode.className="rename-input",this._domNode.type="text",this._domNode.setAttribute("aria-label",(0,y.NC)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._disposables.add(I.nm(this._domNode,"input",(()=>this._onDidChange.fire())))),this._domNode}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}}class Z{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${Z._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,M.h)(O.l.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),(0,B.N)(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;const i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(V.w.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo(e){let{lineHeight:t}=e;return{totalHeight:t+2*Z._PADDING}}dispose(){}}Z._PADDING=2;var Q,X=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},J=function(e,t){return function(i,n){t(i,n,e)}};class ee{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const n=await i.resolveRenameLocation(this.model,this.position,e);if(n){if(!n.rejectReason)return n;t.push(n.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.e(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.e.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,n){const s=this._providers[t];if(!s)return{edits:[],rejectReason:i.join("\n")};const o=await s.provideRenameEdits(this.model,this.position,e,n);return o?o.rejectReason?this._provideRenameEdits(e,t+1,i.concat(o.rejectReason),n):o:this._provideRenameEdits(e,t+1,i.concat(y.NC("no result","No result.")),n)}}let te=Q=class{static get(e){return e.getContribution(Q.ID)}constructor(e,t,i,n,s,r,a,d,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=d,this._telemetryService=h,this._disposableStore=new l.SL,this._cts=new o.A,this._renameWidget=this._disposableStore.add(this._instaService.createInstance($,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;const i=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new o.A,!this.editor.hasModel())return void i("editor has no model");const l=this.editor.getPosition(),d=new ee(this.editor.getModel(),l,this._languageFeaturesService.renameProvider);if(!d.hasProvider())return void i("skeleton has no provider");const h=new b.Dl(this.editor,5,void 0,this._cts.token);let c;try{i("resolving rename location");const e=d.resolveRenameLocation(h.token);this._progressService.showWhile(e,250),c=await e,i("resolved rename location")}catch(w){return void(w instanceof r.FU?i("resolve rename location cancelled",JSON.stringify(w,null,"\t")):(i("resolve rename location failed",w instanceof Error?w:JSON.stringify(w,null,"\t")),("string"===typeof w||(0,a.Fr)(w))&&(null===(e=C.O.get(this.editor))||void 0===e||e.showMessage(w||y.NC("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),l))))}finally{h.dispose()}if(!c)return void i("returning early - no loc");if(c.rejectReason)return i(`returning early - rejected with reason: ${c.rejectReason}`,c.rejectReason),void(null===(t=C.O.get(this.editor))||void 0===t||t.showMessage(c.rejectReason,l));if(h.token.isCancellationRequested)return void i("returning early - cts1 cancelled");const u=new b.Dl(this.editor,5,c.range,this._cts.token),g=this.editor.getModel(),p=this._languageFeaturesService.newSymbolNamesProvider.all(g);i("creating rename input field and awaiting its result");const f=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),_=await this._renameWidget.getInput(c.range,c.text,f,(e=>p.map((t=>t.provideNewSymbolNames(g,c.range,e)))),u);if(i("received response from rename input field"),p.length>0&&this._reportTelemetry(p.length,g.getLanguageId(),_),"boolean"===typeof _)return i(`returning early - rename input field response - ${_}`),_&&this.editor.focus(),void u.dispose();this.editor.focus(),i("requesting rename edits");const v=(0,s.eP)(d.provideRenameEdits(_.newName,u.token),u.token).then((async e=>{if(e)if(this.editor.hasModel()){if(e.rejectReason)return i(`returning early - rejected with reason: ${e.rejectReason}`),void this._notificationService.info(e.rejectReason);this.editor.setSelection(m.e.fromPositions(this.editor.getSelection().getPosition())),i("applying edits"),this._bulkEditService.apply(e,{editor:this.editor,showPreview:_.wantsPreview,label:y.NC("label","Renaming '{0}' to '{1}'",null===c||void 0===c?void 0:c.text,_.newName),code:"undoredo.rename",quotableLabel:y.NC("quotableLabel","Renaming {0} to {1}",null===c||void 0===c?void 0:c.text,_.newName),respectAutoSaveConfig:!0}).then((e=>{i("edits applied"),e.ariaSummary&&(0,n.Z9)(y.NC("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",c.text,_.newName,e.ariaSummary))})).catch((e=>{i(`error when applying edits ${JSON.stringify(e,null,"\t")}`),this._notificationService.error(y.NC("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))}else i("returning early - no model after rename edits are provided");else i("returning early - no rename edits result")}),(e=>{i("error when providing rename edits",JSON.stringify(e,null,"\t")),this._notificationService.error(y.NC("rename.failed","Rename failed to compute edits")),this._logService.error(e)})).finally((()=>{u.dispose()}));return i("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const n="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview};this._telemetryService.publicLog2("renameInvokedEvent",n)}};te.ID="editor.contrib.renameController",te=Q=X([J(1,L.TG),J(2,D.lT),J(3,u.vu),J(4,N.ek),J(5,k.VZ),J(6,v.V),J(7,_.p),J(8,T.b)],te);class ie extends c.R6{constructor(){super({id:"editor.action.rename",label:y.NC("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:x.Ao.and(f.u.writable,f.u.hasRenameProvider),kbOpts:{kbExpr:f.u.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.$),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return h.o.isUri(n)&&p.L.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(s),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),r.dL):super.runCommand(e,t)}run(e,t){const i=e.get(k.VZ),n=te.get(t);return n?(i.trace("[RenameAction] got controller, running..."),n.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,c._K)(te.ID,te,4),(0,c.Qr)(ie);const ne=c._l.bindToContribution(te.get);(0,c.fK)(new ne({id:"acceptRenameInput",precondition:q,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:x.Ao.and(f.u.focus,x.Ao.not("isComposing")),primary:3}})),(0,c.fK)(new ne({id:"acceptRenameInputWithPreview",precondition:x.Ao.and(q,x.Ao.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:x.Ao.and(f.u.focus,x.Ao.not("isComposing")),primary:2051}})),(0,c.fK)(new ne({id:"cancelRenameInput",precondition:q,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.u.focus,primary:9,secondary:[1033]}})),(0,w.r1)(class extends w.Ke{constructor(){super({id:"focusNextRenameSuggestion",title:{...y.vv("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:q,keybinding:[{primary:2,secondary:[18],weight:199}]})}run(e){const t=e.get(g.$).getFocusedCodeEditor();if(!t)return;const i=te.get(t);i&&i.focusNextRenameSuggestion()}}),(0,w.r1)(class extends w.Ke{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...y.vv("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:q,keybinding:[{primary:1026,secondary:[16],weight:199}]})}run(e){const t=e.get(g.$).getFocusedCodeEditor();if(!t)return;const i=te.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,c.sb)("_executeDocumentRenameProvider",(function(e,t,i){for(var n=arguments.length,s=new Array(n>3?n-3:0),r=3;r<n;r++)s[r-3]=arguments[r];const[a]=s;(0,d.p_)("string"===typeof a);const{renameProvider:l}=e.get(_.p);return async function(e,t,i,n){const s=new ee(t,i,e),r=await s.resolveRenameLocation(o.T.None);return(null===r||void 0===r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:s.provideRenameEdits(n,o.T.None)}(l,t,i,a)})),(0,c.sb)("_executePrepareRename",(async function(e,t,i){const{renameProvider:n}=e.get(_.p),s=new ee(t,i,n),r=await s.resolveRenameLocation(o.T.None);if(null===r||void 0===r?void 0:r.rejectReason)throw new Error(r.rejectReason);return r})),E.B.as(S.IP.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:y.NC("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},97737:(e,t,i)=>{"use strict";var n=i(53372),s=i(53186),o=i(60548),r=i(5580),a=i(13277),l=i(69115),d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};let c=class extends s.JT{constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{var i;const n=null===(i=this.editor.getModel())||void 0===i?void 0:i.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this.computeSectionHeaders=this._register(new n.pY((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,n=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||(null===n||void 0===n?void 0:n.markers)?{foldingRules:n,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){var e,t;if(!this.editor.hasModel()||!(null===(e=this.options)||void 0===e?void 0:e.findMarkSectionHeaders)&&!(null===(t=this.options)||void 0===t?void 0:t.findRegionSectionHeaders))return;const i=this.editor.getModel();if(i.isDisposed()||i.isTooLargeForSyncing())return;const n=i.getVersionId();this.editorWorkerService.findSectionHeaders(i.uri,this.options).then((e=>{i.isDisposed()||i.getVersionId()!==n||this.updateDecorations(e)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),n=t.tokenization.getLineTokens(i.startLineNumber),s=n.findTokenIndexAtOffset(i.startColumn-1),o=n.getStandardTokenType(s);return n.getLanguageId(s)===t.getLanguageId()&&1===o})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),n=e.map((e=>function(e){return{range:e.range,options:a.qx.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={};for(let i=0,n=s.length;i<n;i++){const t={sectionHeader:e[i],decorationId:s[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};c.ID="editor.sectionHeaderDetector",c=d([h(1,r.c_),h(2,l.p)],c),(0,o._K)(c.ID,c,1)},89489:(e,t,i)=>{"use strict";var n,s=i(53186),o=i(16015),r=i(23058),a=i(30600),l=i(53372),d=i(76946),h=i(46673),c=i(4085),u=i(28020),g=i(14386),p=i(6617),m=i(53869),f=i(15688),_=i(26993),v=i(38573),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};let y=class extends s.JT{constructor(e,t,i,n,s,o){super(),this._watchers=Object.create(null);const r=t=>{this._watchers[t.uri.toString()]=new w(t,e,i,s,o)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.t)(e,i,n)?t||r(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.t)(e,i,n)&&r(e)})),this._register(t.onModelAdded((e=>{(0,v.t)(e,i,n)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(n.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.e)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};y=b([C(0,f.s),C(1,r.q),C(2,h.XE),C(3,a.Ui),C(4,g.A),C(5,m.p)],y);let w=n=class extends s.JT{constructor(e,t,i,o,r){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentSemanticTokens",{min:n.REQUEST_MIN_DELAY,max:n.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new l.pY((()=>this._fetchDocumentSemanticTokensNow()),n.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,s.B9)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,s.B9)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.Jc)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new d.A,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=(0,u.ML)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const s=[],r=this._model.onDidChangeContent((e=>{s.push(e)})),a=new p.G(!1);n.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,n,s)}else this._setDocumentSemanticTokens(null,null,null,s)}),(e=>{e&&(o.n2(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||o.dL(e),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(s.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let o=0;o<s;o++)i[n+o]=e[t+o]}_setDocumentSemanticTokens(e,t,i,s){const o=this._currentDocumentResponse,r=()=>{(s.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void r();if((0,u.Vj)(t)){if(!o)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const s=o.data,r=new Uint32Array(s.length+e);let a=s.length,l=r.length;for(let d=t.edits.length-1;d>=0;d--){const e=t.edits[d];if(e.start>s.length)return i.warnInvalidEditStart(o.resultId,t.resultId,d,e.start,s.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(n._copy(s,a-h,r,l-h,h),l-=h),e.data&&(n._copy(e.data,0,r,l-e.data.length,e.data.length),l-=e.data.length),a=e.start}a>0&&n._copy(s,0,r,0,a),t={resultId:t.resultId,data:r}}}if((0,u.Vl)(t)){this._currentDocumentResponse=new S(e,t.resultId,t.data);const n=(0,c.h)(t,i,this._model.getLanguageId());if(s.length>0)for(const e of s)for(const t of n)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(n,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}else this._model.tokenization.setSemanticTokens(null,!1)}};w.REQUEST_MIN_DELAY=300,w.REQUEST_MAX_DELAY=2e3,w=n=b([C(1,f.s),C(2,h.XE),C(3,g.A),C(4,m.p)],w);class S{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.y)(y)},78201:(e,t,i)=>{"use strict";var n=i(53372),s=i(53186),o=i(60548),r=i(28020),a=i(38573),l=i(4085),d=i(30600),h=i(46673),c=i(14386),u=i(6617),g=i(53869),p=i(15688),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=class extends s.JT{constructor(e,t,i,s,o,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=s,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new n.pY((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.e)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.t)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,r.KO)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),s=(0,n.PG)((i=>Promise.resolve((0,r.OG)(this._provider,e,t,i)))),o=new u.G(!1);return s.then((n=>{if(this._debounceInformation.update(e,o.elapsed()),!n||!n.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:s,tokens:r}=n,a=this._semanticTokensStylingService.getStyling(s);e.tokenization.setPartialSemanticTokens(t,(0,l.h)(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(s)),(()=>this._removeOutstandingRequest(s))),s}};_.ID="editor.contrib.viewportSemanticTokens",_=m([f(1,p.s),f(2,h.XE),f(3,d.Ui),f(4,c.A),f(5,g.p)],_),(0,o._K)(_.ID,_,1)},28020:(e,t,i)=>{"use strict";i.d(t,{OG:()=>w,ML:()=>v,KO:()=>C,Jc:()=>_,Vl:()=>p,Vj:()=>m});var n=i(76946),s=i(16015),o=i(91387),r=i(23058),a=i(94943),l=i(47624),d=i(9730),h=i(90388);function c(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return h.r()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],n=e[t+1],s=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=s,e[t+2]=n,e[t+3]=i}}(t),d.KN.wrap(t)}(t)}var u=i(28928),g=i(53869);function p(e){return e&&!!e.data}function m(e){return e&&Array.isArray(e.edits)}class f{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function _(e,t){return e.has(t)}async function v(e,t,i,n,s){const o=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),r=await Promise.all(o.map((async e=>{let o,r=null;try{o=await e.provideDocumentSemanticTokens(t,e===i?n:null,s)}catch(a){r=a,o=null}return o&&(p(o)||m(o))||(o=null),new f(e,o,r)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null}class b{constructor(e,t){this.provider=e,this.tokens=t}}function C(e,t){return e.has(t)}function y(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function w(e,t,i,n){const o=y(e,t),r=await Promise.all(o.map((async e=>{let o;try{o=await e.provideDocumentRangeSemanticTokens(t,i,n)}catch(r){(0,s.Cp)(r),o=null}return o&&p(o)||(o=null),new b(e,o)})));for(const s of r)if(s.tokens)return s;return r.length>0?r[0]:null}a.P.registerCommand("_provideDocumentSemanticTokensLegend",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[s]=i;(0,l.p_)(s instanceof o.o);const d=e.get(r.q).getModel(s);if(!d)return;const{documentSemanticTokensProvider:h}=e.get(g.p),c=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(h,d);return c?c[0].getLegend():e.get(a.H).executeCommand("_provideDocumentRangeSemanticTokensLegend",s)})),a.P.registerCommand("_provideDocumentSemanticTokens",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[d]=i;(0,l.p_)(d instanceof o.o);const h=e.get(r.q).getModel(d);if(!h)return;const{documentSemanticTokensProvider:u}=e.get(g.p);if(!_(u,h))return e.get(a.H).executeCommand("_provideDocumentRangeSemanticTokens",d,h.getFullModelRange());const m=await v(u,h,null,null,n.T.None);if(!m)return;const{provider:f,tokens:b}=m;if(!b||!p(b))return;const C=c({id:0,type:"full",data:b.data});return b.resultId&&f.releaseDocumentSemanticTokens(b.resultId),C})),a.P.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[a,d]=i;(0,l.p_)(a instanceof o.o);const h=e.get(r.q).getModel(a);if(!h)return;const{documentRangeSemanticTokensProvider:c}=e.get(g.p),p=y(c,h);if(0===p.length)return;if(1===p.length)return p[0].getLegend();if(!d||!u.e.isIRange(d))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),p[0].getLegend();const m=await w(c,h,u.e.lift(d),n.T.None);return m?m.provider.getLegend():void 0})),a.P.registerCommand("_provideDocumentRangeSemanticTokens",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[a,d]=i;(0,l.p_)(a instanceof o.o),(0,l.p_)(u.e.isIRange(d));const h=e.get(r.q).getModel(a);if(!h)return;const{documentRangeSemanticTokensProvider:p}=e.get(g.p),m=await w(p,h,u.e.lift(d),n.T.None);return m&&m.tokens?c({id:0,type:"full",data:m.tokens.data}):void 0}))},38573:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,t:()=>s});const n="editor.semanticHighlighting";function s(e,t,i){var s;const o=null===(s=i.getValue(n,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===s?void 0:s.enabled;return"boolean"===typeof o?o:t.getColorTheme().semanticHighlighting}},6880:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var n=i(64450),s=i(74633),o=i(28928);class r{async provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t);const s=new Map;await new Promise((t=>r._bracketsRightYield(t,0,e,n,s))),await new Promise((i=>r._bracketsLeftYield(i,0,e,n,s,t)))}return i}static _bracketsRightYield(e,t,i,s,o){const a=new Map,l=Date.now();for(;;){if(t>=r._maxRounds){e();break}if(!s){e();break}const d=i.bracketPairs.findNextBracket(s);if(!d){e();break}if(Date.now()-l>r._maxDuration){setTimeout((()=>r._bracketsRightYield(e,t+1,i,s,o)));break}if(d.bracketInfo.isOpeningBracket){const e=d.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=d.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=o.get(e);t||(t=new n.S,o.set(e,t)),t.push(d.range)}}s=d.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,s,a){const l=new Map,d=Date.now();for(;;){if(t>=r._maxRounds&&0===s.size){e();break}if(!n){e();break}const h=i.bracketPairs.findPrevBracket(n);if(!h){e();break}if(Date.now()-d>r._maxDuration){setTimeout((()=>r._bracketsLeftYield(e,t+1,i,n,s,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.set(e,Math.max(0,t)),t<0){const t=s.get(e);if(t){const n=t.shift();0===t.size&&s.delete(e);const l=o.e.fromPositions(h.range.getEndPosition(),n.getStartPosition()),d=o.e.fromPositions(h.range.getStartPosition(),n.getEndPosition());a.push({range:l}),a.push({range:d}),r._addBracketLeading(i,d,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.set(e,t+1)}n=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(n);0!==r&&r!==t.startColumn&&(i.push({range:o.e.fromPositions(new s.L(n,r),t.getEndPosition())}),i.push({range:o.e.fromPositions(new s.L(n,1),t.getEndPosition())}));const a=n-1;if(a>0){const n=e.getLineFirstNonWhitespaceColumn(a);n===t.startColumn&&n!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:o.e.fromPositions(new s.L(a,n),t.getEndPosition())}),i.push({range:o.e.fromPositions(new s.L(a,1),t.getEndPosition())}))}}}r._maxDuration=30,r._maxRounds=2},79908:(e,t,i)=>{"use strict";var n=i(51833),s=i(76946),o=i(16015),r=i(60548),a=i(74633),l=i(28928),d=i(24854),h=i(35770),c=i(6880),u=i(78701);class g{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:o}=n,r=i.column-o;let a=r,d=r,h=0;for(;a>=0;a--){const e=s.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if((0,u.mK)(e)&&(0,u.df)(h))break;h=e}for(a+=1;d<s.length;d++){const e=s.charCodeAt(d);if((0,u.df)(e)&&(0,u.mK)(h))break;if(95===e||45===e)break;h=e}a<d&&e.push({range:new l.e(i.lineNumber,o+a,i.lineNumber,o+d)})}_addWordRanges(e,t,i){const n=t.getWordAtPosition(i);n&&e.push({range:new l.e(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new l.e(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(5887),f=i(6178),_=i(94943),v=i(53869),b=i(43537),C=i(47624),y=i(91387),w=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};class x{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new x(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let L=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await D(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(113),s.T.None).then((e=>{var i;if(n.Of(e)&&e.length===t.length&&this._editor.hasModel()&&n.fS(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new x(0,e))),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const o=this._state.map((e=>d.Y.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}};L.ID="editor.contrib.smartSelectController",L=p=w([S(1,v.p)],L);class k extends r.R6{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=L.get(t);i&&await i.run(this._forward)}}_.P.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function D(e,t,i,s,r){const d=e.all(t).concat(new g(s.selectSubwords));1===d.length&&d.unshift(new c.x);const h=[],u=[];for(const a of d)h.push(Promise.resolve(a.provideSelectionRanges(t,i,r)).then((e=>{if(n.Of(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const n of e[t])l.e.isIRange(n.range)&&l.e.containsPosition(n.range,i[t])&&u[t].push(l.e.lift(n.range))}}),o.Cp));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.L.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.L.isBefore(t.getStartPosition(),e.getStartPosition())||a.L.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.L.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let n;for(const t of e)(!n||l.e.containsRange(t,n)&&!l.e.equalsRange(t,n))&&(i.push(t),n=t);if(!s.selectLeadingAndTrailingWhitespace)return i;const o=[i[0]];for(let s=1;s<i.length;s++){const e=i[s-1],n=i[s];if(n.startLineNumber!==e.startLineNumber||n.endLineNumber!==e.endLineNumber){const i=new l.e(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&n.containsRange(i)&&!n.equalsRange(i)&&o.push(i);const s=new l.e(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));s.containsRange(e)&&!s.equalsRange(i)&&n.containsRange(s)&&!n.equalsRange(s)&&o.push(s)}o.push(n)}return o}))}(0,r._K)(L.ID,L,4),(0,r.Qr)(class extends k{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.NC("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.u.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.eH.MenubarSelectionMenu,group:"1_basic",title:m.NC({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,r.Qr)(class extends k{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.NC("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.u.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.eH.MenubarSelectionMenu,group:"1_basic",title:m.NC({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.P.registerCommand("_executeSelectionRangeProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const[o,r]=i;(0,C.p_)(y.o.isUri(o));const a=e.get(v.p).selectionRangeProvider,l=await e.get(b.S).createModelReference(o);try{return D(a,l.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},s.T.None)}finally{l.dispose()}}))},67017:(e,t,i)=>{"use strict";i.d(t,{f:()=>b});var n,s=i(53186),o=i(47624),r=i(60548),a=i(74633),l=i(35770),d=i(5580),h=i(53869),c=i(34042),u=i(5887),g=i(47116),p=i(33454),m=i(32676),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let b=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,o,r){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=r,this._snippetListener=new s.SL,this._modelVersionId=-1,this._inSnippet=n.InSnippetMode.bindTo(o),this._hasNextTabstop=n.HasNextTabstop.bindTo(o),this._hasPrevTabstop=n.HasPrevTabstop.bindTo(o)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,o.p_)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.l(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.L.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const n=e.getValueInRange(i.range),s=Boolean(i.choice.options.find((e=>e.value===n))),o=[];for(let r=0;r<i.choice.options.length;r++){const e=i.choice.options[r];o.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(r+1),range:i.range,filterText:s?`${n}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.NC)("next","Go to next placeholder...")}})}return{suggestions:o}}},t=this._editor.getModel();let i,n=!1;const s=()=>{null===i||void 0===i||i.dispose(),n=!1},o=()=>{n||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),n=!0)};this._choiceCompletions={provider:e,enable:o,disable:s}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:t}=this._session;if(!t||!this._choiceCompletions)return null===(e=this._choiceCompletions)||void 0===e||e.disable(),void(this._currentChoice=void 0);this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,c.i5)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};b.ID="snippetController2",b.InSnippetMode=new g.uy("inSnippetMode",!1,(0,u.NC)("inSnippetMode","Whether the editor in current in snippet mode")),b.HasNextTabstop=new g.uy("hasNextTabstop",!1,(0,u.NC)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),b.HasPrevTabstop=new g.uy("hasPrevTabstop",!1,(0,u.NC)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),b=n=f([_(1,p.VZ),_(2,h.p),_(3,g.i6),_(4,d.c_)],b),(0,r._K)(b.ID,b,4);const C=r._l.bindToContribution(b.get);(0,r.fK)(new C({id:"jumpToNextSnippetPlaceholder",precondition:g.Ao.and(b.InSnippetMode,b.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:l.u.editorTextFocus,primary:2}})),(0,r.fK)(new C({id:"jumpToPrevSnippetPlaceholder",precondition:g.Ao.and(b.InSnippetMode,b.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:l.u.editorTextFocus,primary:1026}})),(0,r.fK)(new C({id:"leaveSnippet",precondition:b.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:l.u.editorTextFocus,primary:9,secondary:[1033]}})),(0,r.fK)(new C({id:"acceptSnippet",precondition:b.InSnippetMode,handler:e=>e.finish()}))},86532:(e,t,i)=>{"use strict";i.d(t,{Lv:()=>l,Vm:()=>a,Yj:()=>p,xv:()=>o,y1:()=>g});class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,s=this.value.charCodeAt(e);if(t=n._table[s],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(n.isDigitCharacter(s)){t=8;do{i+=1,s=this.value.charCodeAt(e+i)}while(n.isDigitCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}if(n.isVariableCharacter(s)){t=9;do{s=this.value.charCodeAt(e+ ++i)}while(n.isVariableCharacter(s)||n.isDigitCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,s=this.value.charCodeAt(e+i)}while(!isNaN(s)&&"undefined"===typeof n._table[s]&&!n.isDigitCharacter(s)&&!n.isVariableCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}}n._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class s{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class o extends s{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new o(this.value)}}class r extends s{}class a extends r{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class l extends s{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new l;return this.options.forEach(e.appendChild,e),e}}class d extends s{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new d;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends s{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class c extends r{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}clone(){const e=new c(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends s{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((n=>n===e?(i=!0,!1):(t+=n.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof c&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new g;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!==i&&void 0!==i&&i,null!==t&&void 0!==t&&t),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):s.push(e)),!0)));const o=(e,i)=>{const s=n.get(e.index);if(!s)return;const r=new a(e.index);r.transform=e.transform;for(const t of s){const e=t.clone();r.appendChild(e),e instanceof a&&n.has(e.index)&&!i.has(e.index)&&(i.add(e.index),o(e,i),i.delete(e.index))}t.replace(e,[r])},r=new Set;for(const a of s)o(a,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new c(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new c(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new d;let i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(s){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(n))),!0;if(this._accept(4))return e.appendChild(new h(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(n),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},32676:(e,t,i)=>{"use strict";i.d(t,{l:()=>P});var n=i(51833),s=i(53186),o=i(78701),r=i(56154),a=i(28928),l=i(24854),d=i(5580),h=i(13277),c=i(60297),u=i(99818),g=i(86532),p=i(51082),m=i(90388);function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.ED;return(0,p.oP)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(96682),v=i(30506),b=i(94913),C=i(5887),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class S{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class x{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),n=(0,o.V8)(i,0,this._selection.startColumn-1);let s=n;e.snippet.walk((t=>t!==e&&(t instanceof g.xv&&(s=(0,o.V8)((0,o.uq)(t.value).pop())),!0)));const r=(0,o.Mh)(s,n);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${s.substr(r)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class L{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.EZ(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.EZ(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.XX(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.XX)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class k{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,o.m5)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let D=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n)return"LINE_COMMENT"===t?n.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?n.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&n.blockCommentEndToken||void 0}};D=y([w(2,d.c_)],D);class N{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return N.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return N.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return N.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return N.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),n=i<10?"0"+i:i,s=Math.abs(e)-60*i;return t+n+":"+(s<10?"0"+s:s)}}}N.dayNames=[C.NC("Sunday","Sunday"),C.NC("Monday","Monday"),C.NC("Tuesday","Tuesday"),C.NC("Wednesday","Wednesday"),C.NC("Thursday","Thursday"),C.NC("Friday","Friday"),C.NC("Saturday","Saturday")],N.dayNamesShort=[C.NC("SundayShort","Sun"),C.NC("MondayShort","Mon"),C.NC("TuesdayShort","Tue"),C.NC("WednesdayShort","Wed"),C.NC("ThursdayShort","Thu"),C.NC("FridayShort","Fri"),C.NC("SaturdayShort","Sat")],N.monthNames=[C.NC("January","January"),C.NC("February","February"),C.NC("March","March"),C.NC("April","April"),C.NC("May","May"),C.NC("June","June"),C.NC("July","July"),C.NC("August","August"),C.NC("September","September"),C.NC("October","October"),C.NC("November","November"),C.NC("December","December")],N.monthNamesShort=[C.NC("JanuaryShort","Jan"),C.NC("FebruaryShort","Feb"),C.NC("MarchShort","Mar"),C.NC("AprilShort","Apr"),C.NC("MayShort","May"),C.NC("JuneShort","Jun"),C.NC("JulyShort","Jul"),C.NC("AugustShort","Aug"),C.NC("SeptemberShort","Sep"),C.NC("OctoberShort","Oct"),C.NC("NovemberShort","Nov"),C.NC("DecemberShort","Dec")];class E{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.uT)(this._workspaceService.getWorkspace());return(0,u.c$)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.eb)(e))return _.EZ(e.uri.path);let t=_.EZ(e.configPath.path);return t.endsWith(u.A6)&&(t=t.substr(0,t.length-u.A6.length-1)),t}_resoveWorkspacePath(e){if((0,u.eb)(e))return f(e.uri.fsPath);const t=_.EZ(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class T{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,b.R)():void 0}}var I,M=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,n.vM)(t.placeholders,g.Vm.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),s=this._snippet.fullLen(i),o=a.e.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+s)),r=i.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive,l=t.addDecoration(o,r);this._placeholderDecorations.set(i,l)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(i),s=this._editor.getModel().getValueInRange(n),o=t.transform.resolve(s).split(/\r\n|\r|\n/);for(let e=1;e<o.length;e++)o[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+o[e]);e.push(r.h.replace(n,o.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,n=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const o=this._placeholderDecorations.get(s),r=this._editor.getModel().getDecorationRange(o);n.push(new l.Y(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(s),e.changeDecorationOptions(o,s.isFinalTabstop?R._decor.activeFinal:R._decor.active),i.add(s);for(const t of this._snippet.enclosingPlaceholders(s)){const n=this._placeholderDecorations.get(t);e.changeDecorationOptions(n,t.isFinalTabstop?R._decor.activeFinal:R._decor.active),i.add(t)}}for(const[t,s]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(s,t.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive);return n}));return t?this.move(e):null!==i&&void 0!==i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Vm){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const t=this._placeholderDecorations.get(n),s=this._editor.getModel().getDecorationRange(t);if(!s){e.delete(n.index);break}i.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null===e||void 0===e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.Lv,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(-1!==s._offset),console.assert(!s._placeholderDecorations);const o=s._snippet.placeholderInfo.last.index;for(const e of s._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(o+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,s._snippet.children);const r=this._placeholderDecorations.get(n);i.removeDecoration(r),this._placeholderDecorations.delete(n);for(const e of s._snippet.placeholders){const n=s._snippet.offset(e),o=s._snippet.fullLen(e),r=a.e.fromPositions(t.getPositionAt(s._offset+n),t.getPositionAt(s._offset+n+o)),l=i.addDecoration(r,R._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=(0,n.vM)(this._snippet.placeholders,g.Vm.compareByIndex)}))}}R._decor={active:h.qx.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.qx.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.qx.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.qx.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const O={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=I=class{static adjustWhitespace(e,t,i,n,s){const r=e.getLineContent(t.lineNumber),a=(0,o.V8)(r,0,t.column-1);let l;return n.walk((t=>{if(!(t instanceof g.xv)||t.parent instanceof g.Lv)return!0;if(s&&!s.has(t))return!0;const o=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)o[0]=e.normalizeIndentation(o[0]);else{l=null!==l&&void 0!==l?l:n.toString();const t=l.charCodeAt(i-1);10!==t&&13!==t||(o[0]=e.normalizeIndentation(a+o[0]))}for(let t=1;t<o.length;t++)o[t]=e.normalizeIndentation(a+o[t])}const r=o.join(e.getEOL());return r!==t.value&&(t.parent.replace(t,[new g.xv(r)]),l=void 0),!0})),a}static adjustSelection(e,t,i,n){if(0!==i||0!==n){const{positionLineNumber:s,positionColumn:o}=t,r=o-i,a=o+n,d=e.validateRange({startLineNumber:s,startColumn:r,endLineNumber:s,endColumn:a});t=l.Y.createWithDirection(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,n,s,o,l,d,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.ec))),v=e.invokeWithinContext((e=>new L(e.get(c.e),f))),b=()=>l,C=f.getValueInRange(I.adjustSelection(f,e.getSelection(),i,0)),y=f.getValueInRange(I.adjustSelection(f,e.getSelection(),0,n)),w=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),M=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.e.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:c}of M){let l=I.adjustSelection(f,a,i,0),u=I.adjustSelection(f,a,0,n);C!==f.getValueInRange(l)&&(l=a),y!==f.getValueInRange(u)&&(u=a);const L=a.setStartPosition(l.startLineNumber,l.startColumn).setEndPosition(u.endLineNumber,u.endColumn),A=(new g.Yj).parse(t,!0,s),O=L.getStartPosition(),P=I.adjustWhitespace(f,O,o||c>0&&w!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),A);A.resolveVariables(new S([v,new k(b,c,M.length,"spread"===e.getOption(79)),new x(f,a,c,d),new D(f,a,h),new N,new E(_),new T])),p[c]=r.h.replace(L,A.toString()),p[c].identifier={major:c,minor:0},p[c]._isTracked=!0,m[c]=new R(e,A,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,n,s,o,l){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const d=[],h=e.getModel(),p=new g.Yj,m=new g.y1,f=new S([e.invokeWithinContext((e=>new L(e.get(c.e),h))),new k((()=>s),0,e.getSelections().length,"spread"===e.getOption(79)),new x(h,e.getSelection(),0,o),new D(h,e.getSelection(),l),new N,new E(e.invokeWithinContext((e=>e.get(u.ec)))),new T]);t=t.sort(((e,t)=>a.e.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let c=0;c<t.length;c++){const{range:e,template:i}=t[c];if(c>0){const i=t[c-1].range,n=a.e.fromPositions(i.getEndPosition(),e.getStartPosition()),s=new g.xv(h.getValueInRange(n));m.appendChild(s),_+=s.value.length}const n=p.parseFragment(i,m);I.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(n)),m.resolveVariables(f);const s=m.toString(),o=s.slice(_);_=s.length;const l=r.h.replace(e,o);l.identifier={major:c,minor:0},l._isTracked=!0,d.push(l)}return p.ensureFinalTabstop(m,i,!0),{edits:d,snippets:[new R(e,m,"")]}}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,n=arguments.length>3?arguments[3]:void 0;this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){(0,s.B9)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?I.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):I.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let n=0;n<t.length;n++)t[n].initialize(i[n].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>l.Y.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O;if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=I.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let s=0;s<n.length;s++)n[s].initialize(t[s].textChange);const i=n[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(n);console.assert(0===n.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>l.Y.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const n=i.computePossibleSelections();if(0===t.size)for(const[i,s]of n){s.sort(a.e.compareRangesUsingStarts);for(const n of e)if(s[0].containsRange(n)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...n.get(t))}))}e.sort(a.e.compareRangesUsingStarts);for(const[i,n]of t)if(n.length===e.length){n.sort(a.e.compareRangesUsingStarts);for(let s=0;s<n.length;s++)n[s].containsRange(e[s])||t.delete(i)}else t.delete(i);return t.size>0}};P=I=M([A(3,d.c_)],P)},34338:(e,t,i)=>{"use strict";var n=i(60548),s=i(5887);const o=Object.freeze({View:(0,s.vv)("view","View"),Help:(0,s.vv)("help","Help"),Test:(0,s.vv)("test","Test"),File:(0,s.vv)("file","File"),Preferences:(0,s.vv)("preferences","Preferences"),Developer:(0,s.vv)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var r=i(6178),a=i(30600),l=i(47116),d=i(35770),h=i(53186),c=i(53869),u=i(76595),g=i(58296),p=i(51833),m=i(73045),f=i(13056),_=i(2822),v=i(74633),b=i(130),C=i(21770),y=i(97869),w=i(10960);class S{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=n}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.fS)(this.startLineNumbers,e.startLineNumbers)&&(0,p.fS)(this.endLineNumbers,e.endLineNumbers)}}const x=(0,g.Z)("stickyScrollViewLayer",{createHTML:e=>e}),L="data-sticky-line-index",k="data-sticky-is-line",D="data-sticky-is-folding-icon";class N extends h.JT{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.SL,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.H),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(115).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const n=this._isWidgetHeightZero(e),s=n?void 0:e,o=n?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(s,t,o),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,n=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===n?0:n}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const r of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(r);const n=this._editor.getLayoutInfo(),s=this._lineNumbers.slice(i);for(const[r,a]of s.entries()){const e=this._renderChildNode(r+i,a,t,n);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const o=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${o}px`,this._linesDomNodeScrollable.style.height=`${o}px`,this._rootDomNode.style.height=`${o}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+n.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(110)&&(this._foldingIconStore.add(u.nm(this._lineNumbersDomNode,u.tw.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.nm(this._lineNumbersDomNode,u.tw.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,n){const s=this._editor._getViewModel();if(!s)return;const o=s.coordinatesConverter.convertModelPositionToViewPosition(new v.L(t,1)).lineNumber,r=s.getViewLineRenderingData(o),a=this._editor.getOption(68);let l;try{l=C.Kp.filter(r.inlineDecorations,o,r.minColumn,r.maxColumn)}catch(S){l=[]}const d=new y.IJ(!0,!0,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,0,r.tokens,l,r.tabSize,r.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new b.HT(2e3),c=(0,y.d1)(d,h);let u;u=x?x.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(L,String(e)),g.setAttribute(k,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(L,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=n.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${n.lineNumbersWidth}px`,f.style.paddingLeft=`${n.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const w=new E(e,t,g,p,_,c.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(w)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,s=e.lineNumberDomNode,o=i===this._lineNumbers.length-1;n.style.zIndex=o?"0":"1",s.style.zIndex=o?"0":"1";const r=`${i*this._lineHeight+this._lastLineRelativePosition+((null===(t=e.foldingIcon)||void 0===t?void 0:t.isCollapsed)?1:0)}px`,a=i*this._lineHeight+"px";return n.style.top=o?r:a,s.style.top=o?r:a,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(110);if(!e||"never"===i)return;const n=e.regions,s=n.findRange(t),o=n.getStartLineNumber(s);if(!(t===o))return;const r=n.isCollapsed(s),a=new T(r,o,n.getEndLineNumber(s),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(r||"always"===i)),a.domNode.setAttribute(D,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.dL)(t.characterMapping,e,0);return new v.L(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return null!==(i=null===(t=this._getRenderedStickyLineFromChildDomNode(e))||void 0===t?void 0:t.lineNumber)&&void 0!==i?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,L);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,k)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,D)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class E{constructor(e,t,i,n,s,o,r){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=s,this.characterMapping=o,this.scrollWidth=r}}class T{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=m.k.asClassName(e?w.f5:w.Iy)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var I=i(76946),M=i(53372),A=i(39706),R=i(5580),O=i(9895),P=i(63776),F=i(2943),B=i(44687),V=i(16015);class W{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class H{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class z{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var j,U,K=i(2706),q=i(87775),$=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},G=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(j||(j={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(U||(U={}));let Y=class extends h.JT{constructor(e,t,i,n){switch(super(),this._editor=e,this._languageConfigurationService=i,this._languageFeaturesService=n,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new M.vp(300)),this._updateOperation=this._register(new h.SL),this._editor.getOption(115).defaultModel){case j.OUTLINE_MODEL:this._modelProviders.push(new Q(this._editor,n));case j.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,n));case j.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:n}=t.computeStickyModel(e);this._modelPromise=n;const s=await i;if(this._modelPromise!==n)return null;switch(s){case U.CANCELED:return this._updateOperation.clear(),null;case U.VALID:return t.stickyModel}}return null})).catch((e=>((0,V.dL)(e),null)))}};Y=$([G(2,q.TG),G(3,c.p)],Y);class Z extends h.JT{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,U.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,M.PG)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?U.CANCELED:(this._stickyModel=this.createStickyModel(e,t),U.VALID):this._invalid())).then(void 0,(e=>((0,V.dL)(e),U.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let Q=class extends Z{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return O.C3.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){var i;const{stickyOutlineElement:n,providerID:s}=this._stickyModelFromOutlineModel(t,null===(i=this._stickyModel)||void 0===i?void 0:i.outlineProviderId),o=this._editor.getModel();return new z(o.uri,o.getVersionId(),n,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(K.$.first(e.children.values())instanceof O.H3){const n=K.$.find(e.children.values(),(e=>e.id===t));if(n)i=n.children;else{let n,s="",o=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>o&&(n=i,o=e,s=i.id)}t=s,i=n.children}}else i=e.children;const n=[],s=Array.from(i.values()).sort(((e,t)=>{const i=new W(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),n=new W(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,n)}));for(const o of s)n.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new H(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const s of e.children.values())if(s.symbol.selectionRange.startLineNumber!==s.symbol.range.endLineNumber)if(s.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(s,s.symbol.selectionRange.startLineNumber));else for(const e of s.children.values())i.push(this._stickyModelFromOutlineElement(e,s.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const n=new W(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new H(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof O.sT?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};Q=$([G(1,c.p)],Q);class X extends Z{constructor(e){super(e),this._foldingLimitReporter=new P.n(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),n=this._editor.getModel();return new z(n.uri,n.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],n=new H(void 0,[],void 0);for(let s=0;s<t;s++){const t=e.getParentIndex(s);let o;o=-1!==t?i[t]:n;const r=new H(new W(e.getStartLineNumber(s),e.getEndLineNumber(s)+1),[],o);o.children.push(r),i.push(r)}return n}}let J=class extends X{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new B.aI(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=$([G(1,R.c_)],J);let ee=class extends X{constructor(e,t,i){super(e),this._languageFeaturesService=i;const n=P.f.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());n.length>0&&(this.provider=this._register(new F.e(e.getModel(),n,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){var t,i;return null!==(i=null===(t=this.provider)||void 0===t?void 0:t.compute(e))&&void 0!==i?i:null}};ee=$([G(2,c.p)],ee);var te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};class ne{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let se=class extends h.JT{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new A.Q5),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.SL),this._updateSoon=this._register(new M.pY((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(115).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.OF)((()=>{var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){var e;return null===(e=this._model)||void 0===e?void 0:e.version}updateStickyModelProvider(){var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new Y(t,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){var e;null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new I.A,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,s){if(0===t.children.length)return;let o=s;const r=[];for(let d=0;d<t.children.length;d++){const e=t.children[d];e.range&&r.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.ry)(r,e.startLineNumber,((e,t)=>e-t))),l=this.updateIndex((0,p.ry)(r,e.startLineNumber+n,((e,t)=>e-t)));for(let d=a;d<=l;d++){const r=t.children[d];if(!r)return;if(r.range){const t=r.range.startLineNumber,s=r.range.endLineNumber;e.startLineNumber<=s+1&&t-1<=e.endLineNumber&&t!==o&&(o=t,i.push(new ne(t,s-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n,s)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(null===(t=this._model)||void 0===t?void 0:t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const s=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(s)for(const o of s)n=n.filter((e=>!(e.startLineNumber>=o.startLineNumber&&e.endLineNumber<=o.endLineNumber+1)));return n}};se=te([ie(1,c.p),ie(2,R.c_)],se);var oe,re=i(79086),ae=i(18519),le=i(28928),de=i(18277),he=i(31368),ce=i(14386),ue=i(65179),ge=i(91421),pe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},me=function(e,t){return function(i,n){t(i,n,e)}};let fe=oe=class extends h.JT{constructor(e,t,i,n,s,o,r){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=r,this._sessionStore=new h.SL,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new N(this._editor),this._stickyLineCandidateProvider=new se(this._editor,i,s),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new S([],[],0),this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(115)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(110))&&this._readConfiguration()}))),this._register(u.nm(a,u.tw.CONTEXT_MENU,(async e=>{this._onContextMenu(u.Jj(a),e)}))),this._stickyScrollFocusedContextKey=d.u.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=d.u.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(u.go(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.nm(a,u.tw.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(oe.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),null===(e=this._focusDisposableStore)||void 0===e||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.SL,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(le.e.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.SL),t=this._register(new ae.yN(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new le.e(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},n=this._stickyScrollWidget.getDomNode();this._register(u.mu(n,u.tw.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.L(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.L(i,1)}this._revealPosition(t)}))),this._register(u.mu(n,u.tw.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(u.nm(n,u.tw.MOUSE_LEAVE,(e=>{null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((t=>{let[n,s]=t;const o=i(n);if(!o||!n.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:a}=o;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===a.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const l=new I.A;let d;e.add((0,h.OF)((()=>l.dispose(!0)))),(0,de.nD)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.L(r.startLineNumber,r.startColumn+1),l.token).then((t=>{if(!l.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=a;d!==i?(e.clear(),d=i,d.style.textDecoration="underline",e.add((0,h.OF)((()=>{d.style.textDecoration="none"})))):d||(d=i,d.style.textDecoration="underline",e.add((0,h.OF)((()=>{d.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.K,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.n(e,t);this._contextMenuService.showContextMenu({menuId:r.eH.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=null===t||void 0===t?void 0:t.foldingIcon;if(!i)return;(0,ge.d8)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(115);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=null,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=null,this._renderStickyScroll(0)})))}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){var t,i;const n=this._editor.getModel();if(!n||n.isTooLargeForTokenization())return this._foldingModel=null,void this._stickyScrollWidget.setState(void 0,null);const s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===n.getVersionId())if(this._foldingModel=null!==(i=await(null===(t=P.f.get(this._editor))||void 0===t?void 0:t.getFoldingModel()))&&void 0!==i?i:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(!(0===this._widgetState.startLineNumbers.length)),this._focused)if(-1===this._focusedStickyElementIndex)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const t=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(t)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(115).maxLineCount),i=this._editor.getScrollTop();let n=0;const s=[],o=[],r=this._editor.getVisibleRanges();if(0!==r.length){const a=new W(r[0].startLineNumber,r[r.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const r of l){const a=r.startLineNumber,l=r.endLineNumber,d=r.nestingDepth;if(l-a>0){const r=(d-1)*e,h=d*e,c=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(r>u&&r<=g){s.push(a),o.push(l+1),n=g-h;break}if(h>c&&h<=g&&(s.push(a),o.push(l+1)),s.length===t)break}}}return this._endLineNumbers=o,new S(s,o,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe.ID="store.contrib.stickyScrollController",fe=oe=pe([me(1,re.i),me(2,c.p),me(3,q.TG),me(4,R.c_),me(5,ce.A),me(6,l.i6)],fe);class _e extends r.Ke{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,s.vv)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,s.NC)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},category:o.View,toggled:{condition:l.Ao.equals("config.editor.stickyScroll.enabled",!0),title:(0,s.NC)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,s.NC)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:r.eH.CommandPalette},{id:r.eH.MenubarAppearanceMenu,group:"4_editor",order:3},{id:r.eH.StickyScrollContext}]})}async run(e){const t=e.get(a.Ui),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class be extends n.x1{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,s.vv)("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:(0,s.NC)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:l.Ao.and(l.Ao.has("config.editor.stickyScroll.enabled"),d.u.stickyScrollVisible),menu:[{id:r.eH.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focus()}}class Ce extends n.x1{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,s.vv)("selectNextStickyScrollLine.title","Select next sticky scroll line"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focusNext()}}class ye extends n.x1{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,s.vv)("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focusPrevious()}}class we extends n.x1{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,s.vv)("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.goToFocused()}}class Se extends n.x1{constructor(){super({id:"editor.action.selectEditor",title:(0,s.vv)("selectEditor.title","Select Editor"),precondition:d.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.selectEditor()}}(0,n._K)(fe.ID,fe,1),(0,r.r1)(_e),(0,r.r1)(be),(0,r.r1)(ye),(0,r.r1)(Ce),(0,r.r1)(we),(0,r.r1)(Se)},473:(e,t,i)=>{"use strict";i.d(t,{_:()=>a,t:()=>r});var n=i(51833),s=i(34835),o=i(78701);class r{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,n,o,r){let l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:s.mX.default,d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0;this.clipboardText=d,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===r?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,d=[],h=!this._options.filterGraceful||l.length>2e3?s.EW:s.l7;for(let n=0;n<l.length;n++){const c=l[n];if(c.isInvalid)continue;const u=this._itemsByProvider.get(c.provider);u?u.push(c):this._itemsByProvider.set(c.provider,[c]);const g=c.position.column-c.editStart.column,p=g+i-(c.position.column-this._column);if(r.length!==p&&(r=0===p?"":t.slice(-p),a=r.toLowerCase()),c.word=r,0===p)c.score=s.CL.Default;else{let e=0;for(;e<g;){const t=r.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)c.score=s.CL.Default;else if("string"===typeof c.completion.filterText){const t=h(r,a,e,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,o.zY)(c.completion.filterText,c.textLabel)?c.score=t:(c.score=(0,s.jB)(r,a,e,c.textLabel,c.labelLow,0),c.score[0]=t[0])}else{const t=h(r,a,e,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;c.score=t}}c.idx=n,c.distance=this._wordDistance.distance(c.position,c.completion),d.push(c),e.push(c.textLabel.length)}this._filteredItems=d.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,n.HW)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},34042:(e,t,i)=>{"use strict";i.d(t,{A9:()=>w,GI:()=>C,ZJ:()=>x,_y:()=>b,i5:()=>E,kL:()=>k,tG:()=>T});var n=i(76946),s=i(16015),o=i(34835),r=i(53186),a=i(6617),l=i(47624),d=i(91387),h=i(74633),c=i(28928),u=i(43537),g=i(86532),p=i(5887),m=i(6178),f=i(94943),_=i(47116),v=i(53869);const b={Visible:i(35650).iX,HasFocusedSuggestion:new _.uy("suggestWidgetHasFocusedSuggestion",!1,(0,p.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.uy("suggestWidgetDetailsVisible",!1,(0,p.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.uy("suggestWidgetMultipleSuggestions",!1,(0,p.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.uy("suggestionMakesTextEdit",!0,(0,p.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.uy("acceptSuggestionOnEnter",!0,(0,p.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.uy("suggestionHasInsertAndReplaceRange",!1,(0,p.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.uy("suggestionInsertMode",void 0,{type:"string",description:(0,p.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.uy("suggestionCanResolve",!1,(0,p.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},C=new m.eH("suggestWidgetStatusBar");class y{constructor(e,t,i,n){var s;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=o.CL.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:null===(s=t.label)||void 0===s?void 0:s.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,c.e.isIRange(t.range)?(this.editStart=new h.L(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.L(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.L(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||c.e.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.L(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.L(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.L(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||c.e.spansMultipleLines(t.range.insert)||c.e.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.G(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,s.n2)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class w{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}let S;function x(){return S}w.default=new w;class L{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function k(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w.default,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{triggerKind:0},d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:n.T.None;const h=new a.G;i=i.clone();const u=t.getWordAtPosition(i),p=u?new c.e(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):c.e.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new r.SL,v=[];let b=!1;const C=(e,t,n)=>{var s,a,l;let d=!1;if(!t)return d;for(const r of t.suggestions)if(!o.kindFilter.has(r.kind)){if(!o.showDeprecated&&(null===(s=null===r||void 0===r?void 0:r.tags)||void 0===s?void 0:s.includes(1)))continue;r.range||(r.range=m),r.sortText||(r.sortText="string"===typeof r.label?r.label:r.label.label),!b&&r.insertTextRules&&4&r.insertTextRules&&(b=g.Yj.guessNeedsClipboard(r.insertText)),f.push(new y(i,r,t,e)),d=!0}return(0,r.Wf)(t)&&_.add(t),v.push({providerName:null!==(a=e._debugDisplayName)&&void 0!==a?a:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),d},x=(async()=>{if(!S||o.kindFilter.has(27))return;const e=o.providerItemsToReuse.get(S);if(e)return void e.forEach((e=>f.push(e)));if(o.providerFilter.size>0&&!o.providerFilter.has(S))return;const n=new a.G,s=await S.provideCompletionItems(t,i,l,d);C(S,s,n)})();for(const n of e.orderedGroups(t)){let e=!1;if(await Promise.all(n.map((async n=>{if(o.providerItemsToReuse.has(n)){const t=o.providerItemsToReuse.get(n);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(o.providerFilter.size>0)||o.providerFilter.has(n))try{const s=new a.G,o=await n.provideCompletionItems(t,i,l,d);e=C(n,o,s)||e}catch(r){(0,s.Cp)(r)}}))),e||d.isCancellationRequested)break}return await x,d.isCancellationRequested?(_.dispose(),Promise.reject(new s.FU)):new L(f.sort((k=o.snippetSortOrder,N.get(k))),b,{entries:v,elapsed:h.elapsed()},_);var k}function D(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const N=new Map;function E(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)}N.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return D(e,t)})),N.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return D(e,t)})),N.set(1,D),f.P.registerCommand("_executeCompletionItemProvider",(async function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];const[o,r,a,c]=i;(0,l.p_)(d.o.isUri(o)),(0,l.p_)(h.L.isIPosition(r)),(0,l.p_)("string"===typeof a||!a),(0,l.p_)("number"===typeof c||!c);const{completionProvider:g}=e.get(v.p),p=await e.get(u.S).createModelReference(o);try{const e={incomplete:!1,suggestions:[]},t=[],i=p.object.textEditorModel.validatePosition(r),s=await k(g,p.object.textEditorModel,i,void 0,{triggerCharacter:null!==a&&void 0!==a?a:void 0,triggerKind:a?1:0});for(const o of s.items)t.length<(null!==c&&void 0!==c?c:0)&&t.push(o.resolve(n.T.None)),e.incomplete=e.incomplete||o.container.incomplete,e.suggestions.push(o.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>s.disposable.dispose()),100)}}finally{p.dispose()}}));class T{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},82148:(e,t,i)=>{"use strict";i.d(t,{n:()=>Qe});var n,s=i(83945),o=i(51833),r=i(76946),a=i(16015),l=i(39706),d=i(91811),h=i(53186),c=i(90388),u=i(6617),g=i(47624),p=i(52432),m=i(60548),f=i(56154),_=i(74633),v=i(28928),b=i(35770),C=i(67017),y=i(86532),w=i(71435),S=i(47116),x=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}};let k=n=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=n.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(123)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(123);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};k.AtEnd=new S.uy("atEndOfWord",!1),k=n=x([L(1,S.i6)],k);var D,N=i(5887),E=i(94943),T=i(87775),I=i(33454),M=i(34042),A=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}};let O=D=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=D.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set(e,t){let{model:i,index:n}=e;if(0===i.items.length)return void this.reset();D._moveIndex(!0,i,n)!==n?(this._acceptNext=t,this._model=i,this._index=n,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let n=i;for(let s=t.items.length;s>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,n!==i)&&t.items[n].completion.additionalTextEdits;s--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=D._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};O.OtherSuggestions=new S.uy("hasOtherSuggestions",!1),O=D=A([R(1,S.i6)],O);var P=i(47498);class F{constructor(e,t,i,n){this._disposables=new h.SL,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((s=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=s.charCodeAt(s.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}})))}_onItem(e){if(!e||!(0,o.Of)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.q;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var B=i(95703);class V{constructor(e,t){this._disposables=new h.SL,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let n=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){n=!0;break}if(!n)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const s=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(s.getValueLengthInRange(i)>V._maxSelectionLength)return;this._lastOvertyped[e]={value:s.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}V._maxSelectionLength=51200;var W=i(76595),H=(i(60951),i(69394)),z=i(53372),j=i(56155),U=i(78701),K=i(2822),q=i(7144),$=i(51887),G=i(6178),Y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Z=function(e,t){return function(i,n){t(i,n,e)}};class Q extends $.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=(0,N.NC)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,Q.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"\u23ce")}}let X=class{constructor(e,t,i,n,s){this._menuId=t,this._menuService=n,this._contextKeyService=s,this._menuDisposables=new h.SL,this.element=W.R3(e,W.$(".suggest-status-bar"));const o=e=>e instanceof G.U8?i.createInstance(Q,e,void 0):void 0;this._leftActions=new q.o(this.element,{actionViewItemProvider:o}),this._rightActions=new q.o(this.element,{actionViewItemProvider:o}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[n,s]of e.getActions())"left"===n?t.push(...s):i.push(...s);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=Y([Z(2,T.TG),Z(3,G.co),Z(4,S.i6)],X);i(95451);var J=i(87650),ee=i(6009),te=i(25112),ie=i(46673),ne=i(10173),se=i(24622),oe=i(61542),re=i(73045),ae=i(73971),le=i(35978),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};function ce(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let ue=class{constructor(e,t){this._editor=e,this._onDidClose=new l.Q5,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.Q5,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.SL,this._renderDisposeable=new h.SL,this._borderWidth=1,this._size=new W.Ro(330,0),this.domNode=W.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(le.$,{editor:e}),this._body=W.$(".body"),this._scrollbar=new se.s$(this._body,{alwaysConsumeMouseWheel:!0}),W.R3(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=W.R3(this._body,W.$(".header")),this._close=W.R3(this._header,W.$("span"+re.k.asCSSSelector(oe.l.close))),this._close.title=N.NC("details.close","Close"),this._type=W.R3(this._header,W.$("p.type")),this._docs=W.R3(this._body,W.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),n=e.get(119)||t.fontSize,s=e.get(120)||t.lineHeight,o=t.fontWeight,r=`${n}px`,a=`${s}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+s/n,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(120)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=N.NC("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:o}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(n=e.completion.commitCharacters)||void 0===n?void 0:n.join("")}\n`,o=(new ae.W5).appendCodeblock("empty",t),s=`Provider: ${e.provider._debugDisplayName}`}if(t||ce(e)){if(this.domNode.classList.remove("no-docs","no-type"),s){const e=s.length>1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=e,this._type.title=e,W.$Z(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else W.PO(this._type),this._type.title="",W.Cp(this._type),this.domNode.classList.add("no-type");if(W.PO(this._docs),"string"===typeof o)this._docs.classList.remove("markdown-docs"),this._docs.textContent=o;else if(o){this._docs.classList.add("markdown-docs"),W.PO(this._docs);const e=this._markdownRenderer.render(o);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new W.Ro(e,t);W.Ro.equals(i,this._size)||(this._size=i,W.dp(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;this._body.scrollTop+=e}scrollUp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};ue=de([he(1,T.TG)],ue);class ge{constructor(e,t){let i,n;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.SL,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ne.f,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let s=0,o=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,n=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(o=n.width-e.dimension.width,t=!0),e.north&&(s=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+s,left:i.left+o})}e.done&&(i=void 0,n=void 0,s=0,o=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=W.D6(this.getDomNode().ownerDocument.body),o=this.widget.getLayoutInfo(),r=new W.Ro(220,2*o.lineHeight),a=e.top,l=function(){const i=s.width-(e.left+e.width+o.borderWidth+o.horizontalPadding),n=-o.borderWidth+e.left+e.width,l=new W.Ro(i,s.height-e.top-o.borderHeight-o.verticalPadding),d=l.with(void 0,e.top+e.height-o.borderHeight-o.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),d=function(){const i=e.left-o.borderWidth-o.horizontalPadding,n=Math.max(o.horizontalPadding,e.left-t.width-o.borderWidth),l=new W.Ro(i,s.height-e.top-o.borderHeight-o.verticalPadding),d=l.with(void 0,e.top+e.height-o.borderHeight-o.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),h=function(){const i=e.left,n=-o.borderWidth+e.top+e.height,a=new W.Ro(e.width-o.borderHeight,s.height-e.top-e.height-o.verticalPadding);return{top:n,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),c=[l,d,h],u=null!==(n=c.find((e=>e.fit>=0)))&&void 0!==n?n:c.sort(((e,t)=>t.fit-e.fit))[0],g=e.top+e.height-o.borderHeight;let p,m=t.height;const f=Math.max(u.maxSizeTop.height,u.maxSizeBottom.height);let _;m>f&&(m=f),i?m<=u.maxSizeTop.height?(p=!0,_=u.maxSizeTop):(p=!1,_=u.maxSizeBottom):m<=u.maxSizeBottom.height?(p=!1,_=u.maxSizeBottom):(p=!0,_=u.maxSizeTop);let{top:v,left:b}=u;!p&&m>e.height&&(v=g-m);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();v-=e.top,b-=e.left}this._applyTopLeft({left:b,top:v}),this._resizable.enableSashes(!p,u===l,p,u!==l),this._resizable.minSize=u.minSize,this._resizable.maxSize=_,this._resizable.layout(m,Math.min(_.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var pe,me=i(83172),fe=i(34835),_e=i(91387),ve=i(18841),be=i(32060),Ce=i(30506),ye=i(76326);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(pe||(pe={}));const we=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function Se(e,t,i,n,s){if(s)return[`codicon-${s.id}`,"predefined-file-icon"];const o=n===pe.ROOT_FOLDER?["rootfolder-icon"]:n===pe.FOLDER?["folder-icon"]:["file-icon"];if(i){let s;if(i.scheme===be.lg.data){s=Ce.Vb.parseMetaData(i).get(Ce.Vb.META_DATA_LABEL)}else{const e=i.path.match(we);e?(s=xe(e[2].toLowerCase()),e[1]&&o.push(`${xe(e[1].toLowerCase())}-name-dir-icon`)):s=xe(i.authority.toLowerCase())}if(n===pe.ROOT_FOLDER)o.push(`${s}-root-name-folder-icon`);else if(n===pe.FOLDER)o.push(`${s}-name-folder-icon`);else{if(s){if(o.push(`${s}-name-file-icon`),o.push("name-file-icon"),s.length<=255){const e=s.split(".");for(let t=1;t<e.length;t++)o.push(`${e.slice(t).join(".")}-ext-file-icon`)}o.push("ext-file-icon")}const n=function(e,t,i){if(!i)return null;let n=null;if(i.scheme===be.lg.data){const e=Ce.Vb.parseMetaData(i).get(Ce.Vb.META_DATA_MIME);e&&(n=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(n=t.getLanguageId())}if(n&&n!==ye.bd)return n;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);n&&o.push(`${xe(n)}-lang-file-icon`)}}return o}function xe(e){return e.replace(/[\11\12\14\15\40]/g,"/")}var Le,ke=i(23058),De=i(91342),Ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ee=function(e,t){return function(i,n){t(i,n,e)}};function Te(e){return`suggest-aria-id:${e}`}const Ie=(0,i(54329).q5)("suggest-more-info",oe.l.chevronRight,N.NC("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Me=new((Le=class{extract(e,t){if(e.textLabel.match(Le._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(Le._regexStrict))return t[0]=e.completion.detail,!0;if(e.completion.documentation){const i="string"===typeof e.completion.documentation?e.completion.documentation:e.completion.documentation.value,n=Le._regexRelaxed.exec(i);if(n&&(0===n.index||n.index+n[0].length===i.length))return t[0]=n[0],!0}return!1}})._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Le._regexStrict=new RegExp(`^${Le._regexRelaxed.source}$`,"i"),Le);let Ae=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new l.Q5,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.SL,i=e;i.classList.add("show-file-icons");const n=(0,W.R3)(e,(0,W.$)(".icon")),s=(0,W.R3)(n,(0,W.$)("span.colorspan")),o=(0,W.R3)(e,(0,W.$)(".contents")),r=(0,W.R3)(o,(0,W.$)(".main")),a=(0,W.R3)(r,(0,W.$)(".icon-label.codicon")),l=(0,W.R3)(r,(0,W.$)("span.left")),d=(0,W.R3)(r,(0,W.$)("span.right")),c=new me.g(l,{supportHighlights:!0,supportIcons:!0});t.add(c);const u=(0,W.R3)(l,(0,W.$)("span.signature-label")),g=(0,W.R3)(l,(0,W.$)("span.qualifier-label")),p=(0,W.R3)(d,(0,W.$)("span.details-label")),m=(0,W.R3)(d,(0,W.$)("span.readMore"+re.k.asCSSSelector(Ie)));m.title=N.NC("readMore","Read More");return{root:i,left:l,right:d,icon:n,colorspan:s,iconLabel:c,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),s=t.getMassagedFontFamily(),o=t.fontFeatureSettings,a=e.get(119)||t.fontSize,l=e.get(120)||t.lineHeight,d=t.fontWeight,h=`${a}px`,c=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=d,i.style.letterSpacing=u,r.style.fontFamily=s,r.style.fontFeatureSettings=o,r.style.lineHeight=c,n.style.height=c,n.style.width=c,m.style.height=c,m.style.width=c}}}renderElement(e,t,i){i.configureFont();const{completion:n}=e;i.root.id=Te(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:(0,fe.mB)(e.score)},o=[];if(19===n.kind&&Me.extract(e,o))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=o[0];else if(20===n.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:e.textLabel}),pe.FILE),o=Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:n.detail}),pe.FILE);s.extraClasses=t.length>o.length?t:o}else 23===n.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:e.textLabel}),pe.FOLDER),Se(this._modelService,this._languageService,_e.o.from({scheme:"fake",path:n.detail}),pe.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.k.asClassNameArray(ve.gX.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),"string"===typeof n.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Re(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Re(n.label.detail||""),i.detailsLabel.textContent=Re(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(118).showInlineDetails?(0,W.$Z)(i.detailsLabel):(0,W.Cp)(i.detailsLabel),ce(e)?(i.right.classList.add("can-expand-details"),(0,W.$Z)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,W.Cp)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Re(e){return e.replace(/\r\n|\r|\n/g,"")}Ae=Ne([Ee(1,ke.q),Ee(2,De.O),Ee(3,ie.XE)],Ae);var Oe,Pe=i(93617),Fe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Be=function(e,t){return function(i,n){t(i,n,e)}};(0,ee.P6G)("editorSuggestWidget.background",{dark:ee.D0T,light:ee.D0T,hcDark:ee.D0T,hcLight:ee.D0T},N.NC("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,ee.P6G)("editorSuggestWidget.border",{dark:ee.D1_,light:ee.D1_,hcDark:ee.D1_,hcLight:ee.D1_},N.NC("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ve=(0,ee.P6G)("editorSuggestWidget.foreground",{dark:ee.NOs,light:ee.NOs,hcDark:ee.NOs,hcLight:ee.NOs},N.NC("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,ee.P6G)("editorSuggestWidget.selectedForeground",{dark:ee.NPS,light:ee.NPS,hcDark:ee.NPS,hcLight:ee.NPS},N.NC("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,ee.P6G)("editorSuggestWidget.selectedIconForeground",{dark:ee.cbQ,light:ee.cbQ,hcDark:ee.cbQ,hcLight:ee.cbQ},N.NC("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const We=(0,ee.P6G)("editorSuggestWidget.selectedBackground",{dark:ee.Vqd,light:ee.Vqd,hcDark:ee.Vqd,hcLight:ee.Vqd},N.NC("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,ee.P6G)("editorSuggestWidget.highlightForeground",{dark:ee.Gwp,light:ee.Gwp,hcDark:ee.Gwp,hcLight:ee.Gwp},N.NC("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,ee.P6G)("editorSuggestWidget.focusHighlightForeground",{dark:ee.PX0,light:ee.PX0,hcDark:ee.PX0,hcLight:ee.PX0},N.NC("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,ee.P6G)("editorSuggestWidgetStatus.foreground",{dark:(0,ee.ZnX)(Ve,.5),light:(0,ee.ZnX)(Ve,.5),hcDark:(0,ee.ZnX)(Ve,.5),hcLight:(0,ee.ZnX)(Ve,.5)},N.NC("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class He{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof K.H}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(W.Ro.is(e))return W.Ro.lift(e)}catch(i){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let ze=Oe=class{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.XK,this._pendingShowDetails=new h.XK,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new z._F,this._disposables=new h.SL,this._onDidSelect=new l.K3,this._onDidFocus=new l.K3,this._onDidHide=new l.Q5,this._onDidShow=new l.Q5,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.Q5,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ne.f,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new je(this,e),this._persistedSize=new He(t,e);class o{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let r;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),r=new o(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,n,s;if(this._resize(e.dimension.width,e.dimension.height),r&&(r.persistHeight=r.persistHeight||!!e.north||!!e.south,r.persistWidth=r.persistWidth||!!e.east||!!e.west),e.done){if(r){const{itemHeight:e,defaultSize:o}=this.getLayoutInfo(),a=Math.round(e/2);let{width:l,height:d}=this.element.size;(!r.persistHeight||Math.abs(r.currentSize.height-d)<=a)&&(d=null!==(i=null===(t=r.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:o.height),(!r.persistWidth||Math.abs(r.currentSize.width-l)<=a)&&(l=null!==(s=null===(n=r.persistedSize)||void 0===n?void 0:n.width)&&void 0!==s?s:o.width),this._persistedSize.store(new W.Ro(l,d))}this._contentWidget.unlockPreference(),r=void 0}}))),this._messageElement=W.R3(this.element.domNode,W.$(".message")),this._listElement=W.R3(this.element.domNode,W.$(".tree"));const a=this._disposables.add(s.createInstance(ue,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ge(a,this.editor);const d=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(118).showIcons);d();const c=s.createInstance(Ae,this.editor);this._disposables.add(c),this._disposables.add(c.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new H.aV("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[c],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>N.NC("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:n}=e.completion.label;i&&n?t=N.NC("label.full","{0} {1}, {2}",t,i,n):i?t=N.NC("label.detail","{0} {1}",t,i):n&&(t=N.NC("label.desc","{0}, {1}",t,n))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:n}=e.completion,s=U.WU("{0}{1}",n||"",i?"string"===typeof i?i:i.value:"");return N.NC("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,s)}}}),this._list.style((0,Pe.TU)({listInactiveFocusBackground:We,listInactiveFocusOutline:ee.xL1})),this._status=s.createInstance(X,this.element.domNode,M.GI);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(118).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(118)&&(u(),d()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(119)||e.hasChanged(120))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=M._y.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=M._y.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=M._y.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=M._y.HasFocusedSuggestion.bindTo(i),this._disposables.add(W.mu(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,te.c3)(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=(0,z.PG)((async e=>{const t=(0,z.Vg)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),n=e.onCancellationRequested((()=>t.dispose()));try{return await i.resolve(e)}finally{t.dispose(),n.dispose()}})),this._currentSuggestionDetails.then((()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Te(n)}))})).catch(a.dL)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:W.Cp(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Oe.LOADING_MESSAGE,W.Cp(this._listElement,this._status.element),W.$Z(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,s.i7)(Oe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Oe.NO_SUGGESTIONS_MESSAGE,W.Cp(this._listElement,this._status.element),W.$Z(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,s.i7)(Oe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:W.Cp(this._messageElement),W.$Z(this._listElement,this._status.element),this._show();break;case 5:W.Cp(this._messageElement),W.$Z(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,z.Vg)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,n,s){var o,r;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(o=this._loadingTimeout)||void 0===o||o.dispose(),null===(r=this._currentSuggestionDetails)||void 0===r||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const a=this._completionModel.items.length,l=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l)return this._setState(n?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(s?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=W.lI(W.Jj(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!ce(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=W.lI(W.Jj(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.height<i&&this._persistedSize.store(t.with(void 0,i))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){var t,i,n;if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const s=W.D6(this.element.domNode.ownerDocument.body),o=this.getLayoutInfo();e||(e=o.defaultSize);let r=e.height,a=e.width;if(this._status.element.style.height=`${o.itemHeight}px`,2===this._state||1===this._state)r=o.itemHeight+o.borderHeight,a=o.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new W.Ro(a,r),this._contentWidget.setPreference(2);else{const l=s.width-o.borderHeight-2*o.horizontalPadding;a>l&&(a=l);const d=this._completionModel?this._completionModel.stats.pLabelLen*o.typicalHalfwidthCharacterWidth:a,h=o.statusBarHeight+this._list.contentHeight+o.borderHeight,c=o.itemHeight+o.statusBarHeight,u=W.i(this.editor.getDomNode()),g=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=u.top+g.top+g.height,m=Math.min(s.height-p-o.verticalPadding,h),f=u.top+g.top-o.verticalPadding,_=Math.min(f,h);let v=Math.min(Math.max(_,m)+o.borderHeight,h);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),r<c&&(r=c),r>v&&(r=v);const b=150;r>m||this._forceRenderingAbove&&f>b?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),v=_):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),v=m),this.element.preferredSize=new W.Ro(d,o.defaultSize.height),this.element.maxSize=new W.Ro(l,v),this.element.minSize=new W.Ro(220,c),this._cappedHeight=r===h?{wanted:null!==(n=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==n?n:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=t-s+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,j.uZ)(this.editor.getOption(120)||e.lineHeight,8,1e3),i=this.editor.getOption(118).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new W.Ro(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};ze.LOADING_MESSAGE=N.NC("suggestWidget.loading","Loading..."),ze.NO_SUGGESTIONS_MESSAGE=N.NC("suggestWidget.noSuggestions","No suggestions."),ze=Oe=Fe([Be(1,J.Uy),Be(2,S.i6),Be(3,ie.XE),Be(4,T.TG)],ze);class je{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new W.Ro(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Ue,Ke=i(57823),qe=i(95075),$e=i(13277),Ge=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ye=function(e,t){return function(i,n){t(i,n,e)}};class Ze{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=$e.qx.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),n=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.e.fromPositions(t,n),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Qe=Ue=class{static get(e){return e.getContribution(Ue.ID)}constructor(e,t,i,n,s,o,r){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=o,this._telemetryService=r,this._lineSuffix=new h.XK,this._toDispose=new h.SL,this._selectors=new Xe((e=>e.priority)),this._onWillInsertSuggestItem=new l.Q5,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=s.createInstance(B.U,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=M._y.InsertMode.bindTo(n);a.set(e.getOption(118).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(118).insertMode)))),this.widget=this._toDispose.add(new W.vx((0,W.Jj)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(ze,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=M._y.MakesTextEdit.bindTo(this._contextKeyService),n=M._y.HasInsertAndReplaceRange.bindTo(this._contextKeyService),s=M._y.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.OF)((()=>{i.reset(),n.reset(),s.reset()}))),this._toDispose.add(e.onDidFocus((e=>{let{item:t}=e;const o=this.editor.getPosition(),r=t.editStart.column,a=o.column;let l=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!t.completion.additionalTextEdits&&!(4&t.completion.insertTextRules)&&a-r===t.completion.insertText.length){l=this.editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:r,endLineNumber:o.lineNumber,endColumn:a})!==t.completion.insertText}i.set(l),n.set(!_.L.equals(t.editInsertEnd,t.editReplaceEnd)),s.set(Boolean(t.provider.resolveCompletionItem)||Boolean(t.completion.documentation)||t.completion.detail!==t.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new d.$M(!0,!1,!1,!1,33))||c.dz&&e.toKeyCodeChord().equals(new d.$M(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new W.vx((0,W.Jj)(e.getDomNode()),(()=>this._toDispose.add(new V(this.editor,this.model))))),this._alternatives=this._toDispose.add(new W.vx((0,W.Jj)(e.getDomNode()),(()=>this._toDispose.add(new O(this.editor,this._contextKeyService))))),this._toDispose.add(s.createInstance(k,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ze(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const n of this._selectors.itemsOrderedByPriorityDesc)if(t=n.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(118);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=M._y.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=C.f.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:o}=e,l=[],d=new r.A;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(o,Boolean(8&t));this._memoryService.memorize(n,this.editor.getPosition(),o);const c=o.isResolved;let g=-1,m=-1;if(Array.isArray(o.completion.additionalTextEdits)){this.model.cancel();const e=p.Z.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",o.completion.additionalTextEdits.map((e=>{let t=v.e.lift(e.range);if(t.startLineNumber===o.position.lineNumber&&t.startColumn>o.position.column){const e=this.editor.getPosition().column-o.position.column,i=e,n=v.e.spansMultipleLines(t)?0:e;t=new v.e(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+n)}return f.h.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!c){const e=new u.G;let i;const s=n.onDidChangeContent((e=>{if(e.isFlush)return d.cancel(),void s.dispose();for(const t of e.changes){const e=v.e.getEndPosition(t.range);i&&!_.L.isBefore(e,i)||(i=e)}})),r=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&r||this.editor.pushUndoStop()}));l.push(o.resolve(d.token).then((()=>{if(!o.completion.additionalTextEdits||d.token.isCancellationRequested)return;if(i&&o.completion.additionalTextEdits.some((e=>_.L.isBefore(i,v.e.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.Z.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",o.completion.additionalTextEdits.map((e=>f.h.replaceMove(v.e.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{s.dispose(),h.dispose()})))}let{insertText:b}=o.completion;if(4&o.completion.insertTextRules||(b=y.Yj.escape(b)),this.model.cancel(),i.insert(b,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&o.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),o.completion.command)if(o.completion.command.id===Je.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.G;l.push(this._commandService.executeCommand(o.completion.command.id,...o.completion.command.arguments?[...o.completion.command.arguments]:[]).catch((e=>{o.completion.extensionId?(0,a.Cp)(e):(0,a.dL)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(d.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(o),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(o,n,c,g,m),this.model.clear(),d.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,n,s){var o,r,a;0!==Math.floor(100*Math.random())&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:null!==(r=null===(o=e.extensionId)||void 0===o?void 0:o.value)&&void 0!==r?r:"unknown",providerId:null!==(a=e.provider._debugDisplayName)&&void 0!==a?a:"unknown",kind:e.completion.kind,basenameHash:(0,qe.vp)((0,Ce.EZ)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,Ce.DZ)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:s})}getOverwriteInfo(e,t){(0,g.p_)(this.editor.hasModel());let i="replace"===this.editor.getOption(118).insertMode;t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:n+(this.editor.getPosition().column-e.position.column),overwriteAfter:s+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,o.Of)(e.completion.additionalTextEdits)){const t=N.NC("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,s.Z9)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:null!==t&&void 0!==t&&t,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,n=t.column;if(n-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.ju.once(this.model.onDidTrigger)((e=>{const t=[];l.ju.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.B9)(t),i()}),void 0,t),this.model.onDidSuggest((e=>{let{completionModel:s}=e;if((0,h.B9)(t),0===s.items.length)return void i();const o=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),s.items),r=s.items[o];n(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:o,item:r,model:s},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Qe.ID="editor.contrib.suggestController",Qe=Ue=Ge([Ye(1,w.Fh),Ye(2,E.H),Ye(3,S.i6),Ye(4,T.TG),Ye(5,I.VZ),Ye(6,Ke.b)],Qe);class Xe{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Je extends m.R6{constructor(){super({id:Je.id,label:N.NC("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:S.Ao.and(b.u.writable,b.u.hasCompletionItemProvider,M._y.Visible.toNegated()),kbOpts:{kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=Qe.get(t);if(!n)return;let s;i&&"object"===typeof i&&!0===i.auto&&(s=!0),n.triggerSuggest(void 0,s,void 0)}}Je.id="editor.action.triggerSuggest",(0,m._K)(Qe.ID,Qe,2),(0,m.Qr)(Je);const et=190,tt=m._l.bindToContribution(Qe.get);(0,m.fK)(new tt({id:"acceptSelectedSuggestion",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:S.Ao.and(M._y.Visible,b.u.textInputFocus),weight:et},{primary:3,kbExpr:S.Ao.and(M._y.Visible,b.u.textInputFocus,M._y.AcceptSuggestionsOnEnter,M._y.MakesTextEdit),weight:et}],menuOpts:[{menuId:M.GI,title:N.NC("accept.insert","Insert"),group:"left",order:1,when:M._y.HasInsertAndReplaceRange.toNegated()},{menuId:M.GI,title:N.NC("accept.insert","Insert"),group:"left",order:1,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("insert"))},{menuId:M.GI,title:N.NC("accept.replace","Replace"),group:"left",order:1,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("replace"))}]})),(0,m.fK)(new tt({id:"acceptAlternativeSelectedSuggestion",precondition:S.Ao.and(M._y.Visible,b.u.textInputFocus,M._y.HasFocusedSuggestion),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:M.GI,group:"left",order:2,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("insert")),title:N.NC("accept.replace","Replace")},{menuId:M.GI,group:"left",order:2,when:S.Ao.and(M._y.HasInsertAndReplaceRange,M._y.InsertMode.isEqualTo("replace")),title:N.NC("accept.insert","Insert")}]})),E.P.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.fK)(new tt({id:"hideSuggestWidget",precondition:M._y.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:9,secondary:[1033]}})),(0,m.fK)(new tt({id:"selectNextSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.fK)(new tt({id:"selectNextPageSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:12,secondary:[2060]}})),(0,m.fK)(new tt({id:"selectLastSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.fK)(new tt({id:"selectPrevSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.fK)(new tt({id:"selectPrevPageSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:11,secondary:[2059]}})),(0,m.fK)(new tt({id:"selectFirstSuggestion",precondition:S.Ao.and(M._y.Visible,S.Ao.or(M._y.MultipleSuggestions,M._y.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.fK)(new tt({id:"focusSuggestion",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.fK)(new tt({id:"focusAndAcceptSuggestion",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.fK)(new tt({id:"toggleSuggestionDetails",precondition:S.Ao.and(M._y.Visible,M._y.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:M.GI,group:"right",order:1,when:S.Ao.and(M._y.DetailsVisible,M._y.CanResolve),title:N.NC("detail.more","show less")},{menuId:M.GI,group:"right",order:1,when:S.Ao.and(M._y.DetailsVisible.toNegated(),M._y.CanResolve),title:N.NC("detail.less","show more")}]})),(0,m.fK)(new tt({id:"toggleExplainMode",precondition:M._y.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.fK)(new tt({id:"toggleSuggestionFocus",precondition:M._y.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.fK)(new tt({id:"insertBestCompletion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),k.AtEnd,M._y.Visible.toNegated(),O.OtherSuggestions.toNegated(),C.f.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Kn)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:et,primary:2}})),(0,m.fK)(new tt({id:"insertNextSuggestion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),O.OtherSuggestions,M._y.Visible.toNegated(),C.f.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:2}})),(0,m.fK)(new tt({id:"insertPrevSuggestion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),O.OtherSuggestions,M._y.Visible.toNegated(),C.f.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:et,kbExpr:b.u.textInputFocus,primary:1026}})),(0,m.Qr)(class extends m.R6{constructor(){super({id:"editor.action.resetSuggestSize",label:N.NC("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=Qe.get(t))||void 0===i||i.resetWidgetSize()}})},53295:(e,t,i)=>{"use strict";var n=i(76946),s=i(34835),o=i(2706),r=i(53186),a=i(74246),l=i(28928),d=i(26993),h=i(53869),c=i(473),u=i(34042),g=i(71435),p=i(95703),m=i(39671),f=i(63826),_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};class b{constructor(e,t,i,n,s,o){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=o}}let C=class extends r.L6{constructor(e,t,i,n,s,o){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=o}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){var e;const t=[],{items:i}=this.completionModel,r=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},i),a=o.$.slice(i,r),d=o.$.slice(i,0,r);let h=5;for(const c of o.$.concat(a,d)){if(c.score===s.CL.Default)continue;const i=new l.e(c.editStart.lineNumber,c.editStart.column,c.editInsertEnd.lineNumber,c.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),o=c.completion.insertTextRules&&4&c.completion.insertTextRules?{snippet:c.completion.insertText}:c.completion.insertText;t.push(new b(i,o,null!==(e=c.filterTextLow)&&void 0!==e?e:c.labelLow,c.completion.additionalTextEdits,c.completion.command,c)),h-- >=0&&c.resolve(n.T.None)}return t}};C=_([v(5,g.Fh)],C);let y=class extends r.JT{constructor(e,t,i,n){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=n,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,n){var s;if(i.selectedSuggestionInfo)return;let o;for(const l of this._editorService.listCodeEditors())if(l.getModel()===e){o=l;break}if(!o)return;const r=o.getOption(89);if(u.tG.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),d=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.tG.valueFor(r,d))return;let h,g,f=e.getWordAtPosition(t);if((null===f||void 0===f?void 0:f.word)||(h=this._getTriggerCharacterInfo(e,t)),!(null===f||void 0===f?void 0:f.word)&&!h)return;if(f||(f=e.getWordUntilPosition(t)),f.endColumn!==t.column)return;const _=e.getValueInRange(new l.e(t.lineNumber,1,t.lineNumber,t.column));if(!h&&(null===(s=this._lastResult)||void 0===s?void 0:s.canBeReused(e,t.lineNumber,f))){const e=new c.t(_,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),g=this._lastResult}else{const i=await(0,u.kL)(this._languageFeatureService.completionProvider,e,t,new u.A9(void 0,p.U.createSuggestFilter(o).itemKind,null===h||void 0===h?void 0:h.providers),h&&{triggerKind:1,triggerCharacter:h.ch},n);let s;i.needsClipboard&&(s=await this._clipboardService.readText());const r=new c._(i.items,t.column,new c.t(_,0),m.K.None,o.getOption(118),o.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},s);g=new C(e,t.lineNumber,f,r,i,this._suggestMemoryService)}return this._lastResult=g,g}handleItemDidShow(e,t){t.completion.resolve(n.T.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(l.e.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const o of this._languageFeatureService.completionProvider.all(e))(null===(i=o.triggerCharacters)||void 0===i?void 0:i.includes(n))&&s.add(o);if(0!==s.size)return{providers:s,ch:n}}};y=_([v(0,h.p),v(1,f.p),v(2,g.Fh),v(3,a.$)],y),(0,d.y)(y)},71435:(e,t,i)=>{"use strict";i.d(t,{Fh:()=>v});var n,s=i(53372),o=i(53186),r=i(38079),a=i(61700),l=i(18841),d=i(30600),h=i(23026),c=i(87775),u=i(87650),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const n=i[0].score[0];for(let s=0;s<i.length;s++){const{score:e,completion:t}=i[s];if(e[0]!==n)break;if(t.preselect)return s}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}let _=n=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new o.SL,this._persistSoon=new s.pY((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.fk.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const s=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if((null===(i=this._strategy)||void 0===i?void 0:i.name)!==s){this._saveState();const e=n._strategyCtors.get(s)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${n._storagePrefix}/${s}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(o){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${n._storagePrefix}/${this._strategy.name}`,t,e,1)}}};_._strategyCtors=new Map([["recentlyUsedByPrefix",class extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.Id.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${n}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const s=`${e.getLanguageId()}/${n}`;let o=this._trie.get(s);if(o||(o=this._trie.findSubstr(s)),o)for(let r=0;r<i.length;r++){const{kind:e,insertText:t}=i[r].completion;if(e===o.type&&t===o.insertText)return r}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:l.gX.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends m{constructor(){super("recentlyUsed"),this._cache=new r.z6(300,.66),this._seq=0}memorize(e,t,i){const n=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(n,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);const s=i[0].score[0];let o=-1,r=-1,a=-1;for(let l=0;l<i.length&&i[l].score[0]===s;l++){const t=`${e.getLanguageId()}/${i[l].textLabel}`,n=this._cache.peek(t);if(n&&n.touch>a&&n.type===i[l].completion.kind&&n.insertText===i[l].completion.insertText&&(a=n.touch,r=l),i[l].completion.preselect&&-1===o)return l}return-1!==r?r:-1!==o?o:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:l.gX.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",f]]),_._storagePrefix="suggest/memories",_=n=g([p(0,u.Uy),p(1,d.Ui)],_);const v=(0,c.yh)("ISuggestMemories");(0,h.z)(v,_,1)},95703:(e,t,i)=>{"use strict";i.d(t,{U:()=>E});var n,s=i(53372),o=i(76946),r=i(16015),a=i(39706),l=i(53186),d=i(78701),h=i(24854),c=i(69115),u=i(39671),g=i(63826),p=i(30600),m=i(47116),f=i(33454),_=i(57823),v=i(473),b=i(34042),C=i(53869),y=i(34835),w=i(47624),S=i(51842),x=i(67017),L=i(68664),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};class N{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!!n&&((n.endColumn===i.column||n.startColumn+1===i.column)&&!!isNaN(Number(n.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let E=n=class{constructor(e,t,i,n,o,r,d,c,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=r,this._configurationService=d,this._languageFeaturesService=c,this._envService=u,this._toDispose=new l.SL,this._triggerCharacterListener=new l.SL,this._triggerQuickSuggest=new s._F,this._triggerState=void 0,this._completionDisposables=new l.SL,this._onDidCancel=new a.Q5,this._onDidTrigger=new a.Q5,this._onDidSuggest=new a.Q5,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.Y(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,l.B9)(this._triggerCharacterListener),(0,l.B9)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let n=e.get(t);n||(n=new Set,n.add((0,b.ZJ)()),e.set(t,n)),n.add(i)}const t=t=>{var i;if(!function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const n=t.getContextKeyValue(S.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(N.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";(0,d.YK)(t.charCodeAt(t.length-1))?(0,d.ZG)(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const s=e.get(n);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:Boolean(this._completionModel),clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;b.tG.isAllOff(this._editor.getOption(89))||this._editor.getOption(118).snippetsPreventQuickSuggestions&&(null===(e=x.f.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!N.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(89);if(!b.tG.isAllOff(i)){if(!b.tG.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),s=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==b.tG.valueFor(i,s))return}(function(e,t,i){if(!Boolean(t.getContextKeyValue(S.f.inlineSuggestionVisible.key)))return!0;const n=t.getContextKeyValue(S.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(90)))}_refilterCompletionItems(){(0,w.p_)(this._editor.hasModel()),(0,w.p_)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new N(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){var t,i,s,a,l,d;if(!this._editor.hasModel())return;const h=this._editor.getModel(),c=new N(h,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:null!==(t=e.shy)&&void 0!==t&&t,position:this._editor.getPosition()}),this._context=c;let g={triggerKind:null!==(i=e.triggerKind)&&void 0!==i?i:0};e.triggerCharacter&&(g={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new o.A;let p=1;switch(this._editor.getOption(112)){case"top":p=0;break;case"bottom":p=2}const{itemKind:m,showDeprecated:f}=n.createSuggestFilter(this._editor),_=new b.A9(p,null!==(a=null===(s=e.completionOptions)||void 0===s?void 0:s.kindFilter)&&void 0!==a?a:m,null===(l=e.completionOptions)||void 0===l?void 0:l.providerFilter,null===(d=e.completionOptions)||void 0===d?void 0:d.providerItemsToReuse,f),C=u.K.create(this._editorWorkerService,this._editor),w=(0,b.kL)(this._languageFeaturesService.completionProvider,h,this._editor.getPosition(),_,g,this._requestToken.token);Promise.all([w,C]).then((async t=>{let[i,n]=t;var s;if(null===(s=this._requestToken)||void 0===s||s.dispose(),!this._editor.hasModel())return;let o=null===e||void 0===e?void 0:e.clipboardText;if(!o&&i.needsClipboard&&(o=await this._clipboardService.readText()),void 0===this._triggerState)return;const r=this._editor.getModel(),a=new N(r,this._editor.getPosition(),e),l={...y.mX.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new v._(i.items,this._context.column,{leadingLineContent:a.leadingLineContent,characterCountDelta:a.column-this._context.column},n,this._editor.getOption(118),this._editor.getOption(112),l,o),this._completionDisposables.add(i.disposable),this._onNewContext(a),this._reportDurationsTelemetry(i.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of i.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(r.dL)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(112)&&t.add(27);const i=e.getOption(118);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,d.V8)(e.leadingLineContent)===(0,d.V8)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(N.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const n=N.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(n&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};E=n=k([D(1,c.p),D(2,g.p),D(3,_.b),D(4,f.VZ),D(5,m.i6),D(6,p.Ui),D(7,C.p),D(8,L.Y)],E)},39671:(e,t,i)=>{"use strict";i.d(t,{K:()=>r});var n=i(51833),s=i(28928),o=i(6880);class r{static async create(e,t){if(!t.getOption(118).localityBonus)return r.None;if(!t.hasModel())return r.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return r.None;const[l]=await(new o.x).provideSelectionRanges(i,[a]);if(0===l.length)return r.None;const d=await e.computeWordRanges(i.uri,l[0].range);if(!d)return r.None;const h=i.getWordUntilPosition(a);return delete d[h.word],new class extends r{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const o="string"===typeof i.label?i.label:i.label.label,r=d[o];if((0,n.XY)(r))return 2<<20;const h=(0,n.ry)(r,s.e.fromPositions(e),s.e.compareRangesUsingStarts),c=h>=0?r[h]:r[Math.max(0,~h-1)];let u=l.length;for(const t of l){if(!s.e.containsRange(t.range,c))break;u-=1}return u}}}}r.None=new class extends r{distance(){return 0}}},95451:(e,t,i)=>{"use strict";var n=i(5887),s=i(6009);(0,s.P6G)("symbolIcon.arrayForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.booleanForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.colorForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.constantForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.fileForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.folderForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.keyForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.keywordForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.moduleForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.namespaceForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.nullForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.numberForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.objectForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.operatorForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.packageForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.propertyForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.referenceForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.snippetForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.stringForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.structForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.textForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.typeParameterForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.unitForeground",{dark:s.dRz,light:s.dRz,hcDark:s.dRz,hcLight:s.dRz},(0,n.NC)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.P6G)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},77042:(e,t,i)=>{"use strict";var n=i(83945),s=i(52274),o=i(5887),r=i(6178);class a extends r.Ke{constructor(){super({id:a.ID,title:o.vv({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(){const e=!s.n.getTabFocusMode();s.n.setTabFocusMode(e),e?(0,n.Z9)(o.NC("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.Z9)(o.NC("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",(0,r.r1)(a)},49724:(e,t,i)=>{"use strict";var n=i(6617),s=i(60548),o=i(5887);class r extends s.R6{constructor(){super({id:"editor.action.forceRetokenize",label:o.NC("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const s=new n.G;i.tokenization.forceTokenization(i.getLineCount()),s.stop(),console.log(`tokenization took ${s.elapsed()}`)}}(0,s.Qr)(r)},39422:(e,t,i)=>{"use strict";var n=i(53372),s=i(61542),o=i(73971),r=i(53186),a=i(90388),l=i(78701),d=i(60548),h=i(67364),c=i(13277),u=i(97050),g=i(69115),p=i(91342),m=i(61558),f=i(82213),_=i(58354),v=i(76595),b=i(7144),C=i(51828),y=i(35978),w=i(87775),S=i(24199),x=i(10381),L=i(68068),k=i(39706),D=i(34912),N=i(71371),E=i(97133),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=class extends r.JT{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;var s,o;super(),this._link=t,this._enabled=!0,this.el=(0,v.R3)(e,(0,v.$)("a.monaco-link",{tabIndex:null!==(s=t.tabIndex)&&void 0!==s?s:0,href:t.href},t.label)),this.hoverDelegate=null!==(o=i.hoverDelegate)&&void 0!==o?o:(0,E.tM)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new S.Y(this.el,"click")),a=this._register(new S.Y(this.el,"keypress")),l=k.ju.chain(a.event,(e=>e.map((e=>new x.y(e))).filter((e=>3===e.keyCode)))),d=this._register(new S.Y(this.el,L.t.Tap)).event;this._register(L.o.addTarget(this.el));const h=k.ju.any(r.event,l,d);this._register(h((e=>{this.enabled&&(v.zB.stop(e,!0),(null===i||void 0===i?void 0:i.opener)?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=null!==e&&void 0!==e?e:"":!this.hover&&e?this.hover=this._register((0,N.g)(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};M=T([I(3,D.v)],M);var A=i(54329),R=i(73045),O=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},P=function(e,t){return function(i,n){t(i,n,e)}};let F=class extends r.JT{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(B))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}}),this._editor.setBanner(this.banner.element,26)}};F=O([P(1,w.TG)],F);let B=class extends r.JT{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(y.$,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.PO)(this.element)}show(e){(0,v.PO)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.R3)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${R.k.asCSSSelector(e.icon)}`));const n=(0,v.R3)(this.element,(0,v.$)("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.R3)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const o of e.actions)this._register(this.instantiationService.createInstance(M,this.messageActionsContainer,{...o,tabIndex:-1},{}));const s=(0,v.R3)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new b.o(s)),this.actionBar.push(this._register(new C.aU("banner.close","Close Banner",R.k.asClassName(A.s_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};B=O([P(0,w.TG)],B);var V=i(5887),W=i(30600),H=i(2033),z=i(72514),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};const K=(0,A.q5)("extensions-warning-message",s.l.warning,V.NC("warningIcon","Icon shown with a warning message in the extensions editor."));let q=class extends r.JT{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:V.NC("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new oe};else if(e.ambiguousCharacterCount>=t)i={message:V.NC("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new ne};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:V.NC("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new se}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:K,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(125),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(125)&&(this._options=e.getOption(125),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.Av?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.Av?!e:t.includeComments,includeStrings:t.includeStrings===h.Av?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.dK:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new $(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new G(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};q.ID="editor.contrib.unicodeHighlighter",q=j([U(1,g.p),U(2,z.Y),U(3,w.TG)],q);let $=class extends r.JT{constructor(e,t,i,s){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=s,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.Fd)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.$t)(t,e),inString:(0,m.zg)(t,e)}}};$=j([U(3,g.p)],$);class G extends r.JT{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const e=u.a.computeUnicodeHighlights(this._model,this._options,n);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.Fd)(t,e)?{reason:J(i,this._options),inComment:(0,m.$t)(t,e),inString:(0,m.zg)(t,e)}:null}}const Y=V.NC("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Z=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=this._editor.getContribution(q.ID);if(!n)return[];const s=[],r=new Set;let a=300;for(const d of t){const e=n.getDecorationInfo(d);if(!e)continue;const t=i.getValueInRange(d.range).codePointAt(0),h=X(t);let c;switch(e.reason.kind){case 0:c=(0,l.$i)(e.reason.confusableWith)?V.NC("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,X(e.reason.confusableWith.codePointAt(0))):V.NC("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,X(e.reason.confusableWith.codePointAt(0)));break;case 1:c=V.NC("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:c=V.NC("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(r.has(c))continue;r.add(c);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=V.NC("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${re.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new o.W5("",!0).appendMarkdown(c).appendText(" ").appendLink(p,g,Y);s.push(new _.hU(this,d.range,[m],!1,a++))}return s}renderHoverParts(e,t){return(0,_.c)(e,t,this._editor,this._languageService,this._openerService)}};function Q(e){return`U+${e.toString(16).padStart(4,"0")}`}function X(e){let t=`\`${Q(e)}\``;return l.vU.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.a.computeUnicodeHighlightReason(e,t)}Z=j([U(1,p.O),U(2,D.v)],Z);class ee{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=c.qx.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}ee.instance=new ee;class te extends d.R6{constructor(){super({id:ne.ID,label:V.NC("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.includeComments,!1,2)}}class ie extends d.R6{constructor(){super({id:ne.ID,label:V.NC("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.includeStrings,!1,2)}}class ne extends d.R6{constructor(){super({id:ne.ID,label:V.NC("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.ambiguousCharacters,!1,2)}}ne.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class se extends d.R6{constructor(){super({id:se.ID,label:V.NC("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.invisibleCharacters,!1,2)}}se.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class oe extends d.R6{constructor(){super({id:oe.ID,label:V.NC("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=V.NC("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(W.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.qt.nonBasicASCII,!1,2)}}oe.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class re extends d.R6{constructor(){super({id:re.ID,label:V.NC("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:n,reason:s,inString:o,inComment:r}=i,a=String.fromCodePoint(n),d=e.get(H.eJ),c=e.get(W.Ui);const u=[];if(0===s.kind)for(const l of s.notAmbiguousInLocales)u.push({label:V.NC("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',l),run:async()=>{ae(c,[l])}});if(u.push({label:function(e){return l.vU.isInvisibleCharacter(e)?V.NC("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Q(e)):V.NC("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Q(e)} "${a}"`)}(n),run:()=>async function(e,t){const i=e.getValue(h.qt.allowedCharacters);let n;n="object"===typeof i&&i?i:{};for(const s of t)n[String.fromCodePoint(s)]=!0;await e.updateValue(h.qt.allowedCharacters,n,2)}(c,[n])}),r){const e=new te;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(o){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(c)})}if(0===s.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(1===s.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(2===s.kind){const e=new oe;u.push({label:e.label,run:async()=>e.runAction(c)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(s);const g=await d.pick(u,{title:Y});g&&await g.run()}}async function ae(e,t){var i;const n=null===(i=e.inspect(h.qt.allowedLocales).user)||void 0===i?void 0:i.value;let s;s="object"===typeof n&&n?Object.assign({},n):{};for(const o of t)s[o]=!0;await e.updateValue(h.qt.allowedLocales,s,2)}re.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,d.Qr)(ne),(0,d.Qr)(se),(0,d.Qr)(oe),(0,d.Qr)(re),(0,d._K)(q.ID,q,1),f.Ae.register(Z)},71636:(e,t,i)=>{"use strict";var n=i(53186),s=i(30506),o=i(60548),r=i(74246),a=i(5887),l=i(21182),d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};const c="ignoreUnusualLineTerminators";let u=class extends n.JT{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,c)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(91))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.NC("unusualLineTerminators.title","Unusual Line Terminators"),message:a.NC("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.NC("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,s.EZ)(e.uri)),primaryButton:a.NC({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.NC("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,c,i)}(this._codeEditorService,e,!0)}};u.ID="editor.contrib.unusualLineTerminatorsDetector",u=d([h(1,l.S),h(2,r.$)],u),(0,o._K)(u.ID,u,1)},11797:(e,t,i)=>{"use strict";i.d(t,{G:()=>b,w:()=>C});var n=i(24032),s=i(13277),o=i(18841),r=i(5887),a=i(6009),l=i(46673);const d=(0,a.P6G)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},r.NC("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.P6G)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},r.NC("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.P6G)("editor.wordHighlightTextBackground",{light:d,dark:d,hcDark:d,hcLight:d},r.NC("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.P6G)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},r.NC("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.P6G)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},r.NC("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.P6G)("editor.wordHighlightTextBorder",{light:h,dark:h,hcDark:h,hcLight:h},r.NC("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const c=(0,a.P6G)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},r.NC("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.P6G)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},r.NC("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.P6G)("editorOverviewRuler.wordHighlightTextForeground",{dark:a.SPM,light:a.SPM,hcDark:a.SPM,hcLight:a.SPM},r.NC("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=s.qx.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.EN)(u),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),m=s.qx.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.EN)(g),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),f=s.qx.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.EN)(a.SPM),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),_=s.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=s.qx.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.EN)(c),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}});function b(e){return e===o.MY.Write?p:e===o.MY.Text?m:v}function C(e){return e?_:f}(0,l.Ic)(((e,t)=>{const i=e.getColor(a.Rzx);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},78564:(e,t,i)=>{"use strict";var n,s,o=i(5887),r=i(51833),a=i(83945),l=i(53372),d=i(76946),h=i(16015),c=i(53186),u=i(48850),g=i(60548),p=i(74246),m=i(28928),f=i(35770),_=i(18841),v=i(24032),b=i(53869),C=i(11797),y=i(47116),w=i(32060),S=i(38079),x=i(45298),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},k=function(e,t){return function(i,n){t(i,n,e)}};const D=new y.uy("hasWordHighlights",!1);function N(e,t,i,n){const s=e.ordered(t);return(0,l.Ps)(s.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,h.Cp))),r.Of).then((e=>{if(e){const i=new S.Y9;return i.set(t.uri,e),i}return new S.Y9}))}class E{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,l.PG)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new m.e(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,o=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let l=0,d=i.length;!a&&l<d;l++){const e=i.getRange(l);e&&e.startLineNumber===n&&e.startColumn<=s&&e.endColumn>=o&&(a=!0)}return a}cancel(){this.result.cancel()}}class T extends E{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return N(this._providers,e,t.getPosition(),n).then((e=>e||new S.Y9))}}class I extends E{constructor(e,t,i,n,s){super(e,t,i),this._providers=n,this._otherModels=s}_compute(e,t,i,n){return function(e,t,i,n,s,o){const r=e.ordered(t);return(0,l.Ps)(r.map((e=>()=>{const n=o.filter((e=>(0,v.pt)(e))).filter((t=>(0,x.G)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,n,s)).then(void 0,h.Cp)})),(e=>e instanceof S.Y9&&e.size>0))}(this._providers,e,t.getPosition(),0,n,this._otherModels).then((e=>e||new S.Y9))}}class M extends E{constructor(e,t,i,n,s){super(e,t,n),this._otherModels=s,this._selectionIsEmpty=t.isEmpty(),this._word=i}_compute(e,t,i,n){return(0,l.Vs)(250,n).then((()=>{const n=new S.Y9;let s;if(s=this._word?this._word:e.getWordAtPosition(t.getPosition()),!s)return new S.Y9;const o=[e,...this._otherModels];for(const e of o){if(e.isDisposed())continue;const t=e.findMatches(s.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:_.MY.Text})));t&&n.set(e.uri,t)}return n}))}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}(0,g.sb)("_executeDocumentHighlights",(async(e,t,i)=>{const n=e.get(b.p),s=await N(n.documentHighlightProvider,t,i,d.T.None);return null===s||void 0===s?void 0:s.get(t.uri)}));let A=n=class{constructor(e,t,i,s,o){this.toUnhook=new c.SL,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new S.Y9,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=o,this._hasWordHighlights=D.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this._run())}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():n.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,n.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(m.e.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.Z9)(`${s}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.Z9)(`${s}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=n.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),n.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const e=this.codeEditorService.listCodeEditors(),t=[];for(const i of e){if(!i.hasModel())continue;const e=n.storedDecorations.get(i.getModel().uri);if(!e)continue;i.removeDecorations(e),t.push(i.getModel().uri);const s=R.get(i);(null===s||void 0===s?void 0:s.wordHighlighter)&&(s.wordHighlighter.decorations.length>0&&(s.wordHighlighter.decorations.clear(),s.wordHighlighter.workerRequest=null,s.wordHighlighter._hasWordHighlights.set(!1)))}for(const i of t)n.storedDecorations.delete(i)}_stopSingular(){var e,t,i,s;this._removeSingleDecorations(),this.editor.hasTextFocus()&&((null===(e=this.editor.getModel())||void 0===e?void 0:e.uri.scheme)!==w.lg.vscodeNotebookCell&&(null===(i=null===(t=n.query)||void 0===t?void 0:t.modelInfo)||void 0===i?void 0:i.model.uri.scheme)!==w.lg.vscodeNotebookCell?(n.query=null,this._run()):(null===(s=n.query)||void 0===s?void 0:s.modelInfo)&&(n.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){var t;"off"!==this.occurrencesHighlight&&(3===e.reason||(null===(t=this.editor.getModel())||void 0===t?void 0:t.uri.scheme)===w.lg.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===w.lg.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){const i=n.getModel();i&&i!==e&&i.uri.scheme===w.lg.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){if(!(0,u.QI)(n))continue;const i=n.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const n of i){const i=n.getModel();i&&i!==e&&t.push(i)}return t}_run(){var e;let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return n.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,o=this._getWord();if(!o||o.startColumn>i||o.endColumn<s)return n.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),n.query={modelInfo:{model:this.model,selection:e},word:o}}else if(!n.query)return;if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!n.query.modelInfo||n.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(n.query.modelInfo.model,n.query.modelInfo.selection,n.query.word,i),null===(e=this.workerRequest)||void 0===e||e.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),h.dL)}}computeWithModel(e,t,i,n){return n.length?function(e,t,i,n,s,o){return e.has(t)?new I(t,i,s,e,o):new M(t,i,n,s,o)}(this.multiDocumentProviders,e,t,i,this.editor.getOption(131),n):function(e,t,i,n,s){return e.has(t)?new T(t,i,s,e):new M(t,i,n,s,[])}(this.providers,e,t,i,this.editor.getOption(131))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){var e,t,i;this.renderDecorationsTimer=-1;const s=this.codeEditorService.listCodeEditors();for(const o of s){const s=R.get(o);if(!s)continue;const r=[],a=null===(e=o.getModel())||void 0===e?void 0:e.uri;if(a&&this.workerRequestValue.has(a)){const e=n.storedDecorations.get(a),l=this.workerRequestValue.get(a);if(l)for(const t of l)t.range&&r.push({range:t.range,options:(0,C.G)(t.kind)});let d=[];o.changeDecorations((t=>{d=t.deltaDecorations(null!==e&&void 0!==e?e:[],r)})),n.storedDecorations=n.storedDecorations.set(a,d),r.length>0&&(null===(t=s.wordHighlighter)||void 0===t||t.decorations.set(r),null===(i=s.wordHighlighter)||void 0===i||i._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};A.storedDecorations=new S.Y9,A.query=null,A=n=L([k(4,p.$)],A);let R=s=class extends c.JT{static get(e){return e.getContribution(s.ID)}constructor(e,t,i,n){super(),this._wordHighlighter=null;const s=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new A(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,n))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),s()}))),s()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveNext()}moveBack(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};R.ID="editor.contrib.wordHighlighter",R=s=L([k(1,y.i6),k(2,b.p),k(3,p.$)],R);class O extends g.R6{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=R.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class P extends g.R6{constructor(){super({id:"editor.action.wordHighlight.trigger",label:o.NC("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:D.toNegated(),kbOpts:{kbExpr:f.u.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=R.get(t);n&&n.restoreViewState(!0)}}(0,g._K)(R.ID,R,0),(0,g.Qr)(class extends O{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:o.NC("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.u.editorTextFocus,primary:65,weight:100}})}}),(0,g.Qr)(class extends O{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:o.NC("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.u.editorTextFocus,primary:1089,weight:100}})}}),(0,g.Qr)(P)},97235:(e,t,i)=>{"use strict";i.d(t,{IA:()=>v,t8:()=>y});var n=i(60548),s=i(2196),o=i(67364),r=i(80646),a=i(59571),l=i(55412),d=i(74633),h=i(28928),c=i(24854),u=i(35770),g=i(5580),p=i(5887),m=i(71940),f=i(47116),_=i(48495);class v extends n._l{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=(0,l.u)(t.getOption(131),t.getOption(130)),s=t.getModel(),o=t.getSelections().map((e=>{const t=new d.L(e.positionLineNumber,e.positionColumn),i=this._move(n,s,t,this._wordNavigationType);return this._moveTo(e,i,this._inSelectionMode)}));if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,o.map((e=>r.Vi.fromModelSelection(e)))),1===o.length){const e=new d.L(o[0].positionLineNumber,o[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new c.Y(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new c.Y(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends v{_move(e,t,i,n){return a.w.moveWordLeft(e,t,i,n)}}class C extends v{_move(e,t,i,n){return a.w.moveWordRight(e,t,i,n)}}class y extends n._l{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(g.c_);if(!t.hasModel())return;const o=(0,l.u)(t.getOption(131),t.getOption(130)),r=t.getModel(),a=t.getSelections(),d=t.getOption(6),h=t.getOption(11),c=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:o,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:d,autoClosingQuotes:h,autoClosingPairs:c,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new s.T4(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class w extends y{_delete(e,t){const i=a.w.deleteWordLeft(e,t);return i||new h.e(1,1,1,1)}}class S extends y{_delete(e,t){const i=a.w.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new h.e(n,s,n,s)}}class x extends n.R6{constructor(){super({id:"deleteInsideWord",precondition:u.u.writable,label:p.NC("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=(0,l.u)(t.getOption(131),t.getOption(130)),o=t.getModel(),r=t.getSelections().map((e=>{const t=a.w.deleteInsideWord(n,o,e);return new s.T4(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,n.fK)(new class extends C{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,n.fK)(new class extends C{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(o.BH.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.fK)(new class extends w{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.u.writable})}}),(0,n.fK)(new class extends w{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.u.writable})}}),(0,n.fK)(new class extends w{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,n.fK)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.u.writable})}}),(0,n.fK)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.u.writable})}}),(0,n.fK)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,n.Qr)(x)},77137:(e,t,i)=>{"use strict";var n=i(60548),s=i(59571),o=i(28928),r=i(35770),a=i(97235),l=i(94943);class d extends a.t8{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.u.writable,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=s.L.deleteWordPartLeft(e);return i||new o.e(1,1,1,1)}}class h extends a.t8{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.u.writable,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=s.L.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),r=e.model.getLineMaxColumn(n);return new o.e(n,r,n,r)}}class c extends a.IA{_move(e,t,i,n){return s.L.moveWordPartLeft(e,t,i)}}l.P.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");l.P.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.IA{_move(e,t,i,n){return s.L.moveWordPartRight(e,t,i)}}(0,n.fK)(new d),(0,n.fK)(new h),(0,n.fK)(new class extends c{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,n.fK)(new class extends c{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,n.fK)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,n.fK)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},11506:(e,t,i)=>{"use strict";var n=i(76595),s=i(53186),o=i(60548),r=i(90388);class a extends s.JT{constructor(e){super(),this.editor=e,this.widget=null,r.gn&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(91);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}a.ID="editor.contrib.iPadShowKeyboard";class l extends s.JT{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(n.nm(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(n.nm(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}l.ID="editor.contrib.ShowKeyboardWidget",(0,o._K)(a.ID,a,3)},70597:(e,t,i)=>{"use strict";var n,s=i(76595),o=i(63932),r=i(53186),a=i(60548),l=i(18841),d=i(9556),h=i(31708),c=i(91342),u=i(79737),g=i(23523),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=n=class extends r.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(l.RW.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f.ID="editor.contrib.inspectTokens",f=n=p([m(1,u.Z),m(2,c.O)],f);class _ extends a.R6{constructor(){super({id:"editor.action.inspectTokens",label:g.ug.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);null===i||void 0===i||i.launch()}}class v extends r.JT{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=l.RW.get(t);if(i)return i;const n=e.encodeLanguageId(t);return{getInitialState:()=>h.TJ,tokenize:(e,i,n)=>(0,h.Ri)(t,n),tokenizeEncoded:(e,t,i)=>(0,h.Dy)(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let s=t.tokens1.length-1;s>=0;s--){const n=t.tokens1[s];if(e.column-1>=n.offset){i=s;break}}let n=0;for(let s=t.tokens2.length>>>1;s>=0;s--)if(e.column-1>=t.tokens2[s<<1]){n=s;break}const r=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,n=i+1<t.tokens1.length?t.tokens1[i+1].offset:r.length;a=r.substring(e,n)}(0,s.mc)(this._domNode,(0,s.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);switch(n){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(n)}}return t}(a),(0,s.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,s.R3)(this._domNode,(0,s.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const l=1+(n<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(n<<1)]):null;(0,s.R3)(this._domNode,(0,s.$)("table.tm-metadata-table",void 0,(0,s.$)("tbody",void 0,(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"language"),(0,s.$)("td.tm-metadata-value",void 0,`${l?l.languageId:"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"token type"),(0,s.$)("td.tm-metadata-value",void 0,`${l?this._tokenTypeToString(l.tokenType):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"font style"),(0,s.$)("td.tm-metadata-value",void 0,`${l?this._fontStyleToString(l.fontStyle):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"foreground"),(0,s.$)("td.tm-metadata-value",void 0,`${l?o.Il.Format.CSS.formatHex(l.foreground):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"background"),(0,s.$)("td.tm-metadata-value",void 0,`${l?o.Il.Format.CSS.formatHex(l.background):"-?-"}`))))),(0,s.R3)(this._domNode,(0,s.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,s.R3)(this._domNode,(0,s.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=l.RW.getColorMap(),i=d.N.getLanguageId(e),n=d.N.getTokenType(e),s=d.N.getFontStyle(e),o=d.N.getForeground(e),r=d.N.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:n,fontStyle:s,foreground:t[o],background:t[r]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),n=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:n.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}v._ID="editor.contrib.inspectTokensWidget",(0,a._K)(f.ID,f,4),(0,a.Qr)(_)},3394:(e,t,i)=>{"use strict";var n=i(76322),s=i(99009),o=i(23523),r=i(74246),a=i(77048),l=i(51833),d=i(47624),h=i(5887);function c(e,t){return t&&(e.stack||e.stacktrace)?h.NC("stackTrace.format","{0}: {1}",g(e),u(e.stack)||u(e.stacktrace)):g(e)}function u(e){return Array.isArray(e)?e.join("\n"):e}function g(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?h.NC("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=l.kX(e),n=p(i[0],t);return i.length>1?h.NC("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(d.HD(e))return e;if(e.detail){const i=e.detail;if(i.error)return c(i.error,t);if(i.exception)return c(i.exception,t)}return e.stack?c(e,t):e.message?e.message:h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var m=i(16015),f=i(34835),_=i(66870),v=i(53186),b=i(38079);class C{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,s=[];for(const[o,r]of this.documents){if(t.isCancellationRequested)return[];for(const e of r.chunks){const t=this.computeSimilarityScore(e,i,n);t>0&&s.push({key:o,score:t})}}return s}static termFrequencies(e){return function(e){var t;const i=new Map;for(const n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(C.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const e=[];for(const n of i.textChunks){const i=C.termFrequencies(n);for(const e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:n,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[s,o]of Object.entries(t)){const t=e.tf.get(s);if(!t)continue;let r=i.get(s);"number"!==typeof r&&(r=this.computeIdf(s),i.set(s,r));n+=t*r*o}return n}computeEmbedding(e){const t=C.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}var y,w=i(94943),S=i(30600),x=i(21182),L=i(87775),k=i(25371),D=i(33454),N=i(53372),E=i(76946);function T(e){const t=e;return Array.isArray(t.items)}function I(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(y||(y={}));class M extends v.JT{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const s=new v.SL;let o;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new v.XK),a=async()=>{var n;const s=r.value=new v.SL;null===o||void 0===o||o.dispose(!0),e.busy=!1,o=new E.A(t);const a=o.token;let l=e.value.substring(this.prefix.length);(null===(n=this.options)||void 0===n?void 0:n.shouldSkipTrimPickFilter)||(l=l.trim());const h=this._getPicks(l,s,a,i),c=(t,i)=>{var n;let s,o;if(T(t)?(s=t.items,o=t.active):s=t,0===s.length){if(i)return!1;(l.length>0||e.hideInput)&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(s=(0,d.mf)(this.options.noResultsPick)?[this.options.noResultsPick(l)]:[this.options.noResultsPick])}return e.items=s,o&&(e.activeItems=[o]),!0},u=async t=>{let i=!1,n=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,N.Vs)(t.mergeDelay),a.isCancellationRequested)||n||(i=c(t.picks,!0))})(),(async()=>{e.busy=!0;try{const n=await t.additionalPicks;if(a.isCancellationRequested)return;let s,o,r,l;if(T(t.picks)?(s=t.picks.items,o=t.picks.active):s=t.picks,T(n)?(r=n.items,l=n.active):r=n,r.length>0||!i){let t;if(!o&&!l){const i=e.activeItems[0];i&&-1!==s.indexOf(i)&&(t=i)}c({items:[...s,...r],active:o||l||t})}}finally{a.isCancellationRequested||(e.busy=!1),n=!0}})()])};if(null===h);else if(I(h))await u(h);else if(h instanceof Promise){e.busy=!0;try{const e=await h;if(a.isCancellationRequested)return;I(e)?await u(e):c(e)}finally{a.isCancellationRequested||(e.busy=!1)}}else c(h)};s.add(e.onDidChangeValue((()=>a()))),a(),s.add(e.onDidAccept((t=>{const[i]=e.selectedItems;"function"===typeof(null===i||void 0===i?void 0:i.accept)&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))})));const l=async(i,n)=>{var s,o;if("function"!==typeof n.trigger)return;const r=null!==(o=null===(s=n.buttons)||void 0===s?void 0:s.indexOf(i))&&void 0!==o?o:-1;if(r>=0){const i=n.trigger(r,e.keyMods),s="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(s){case y.NO_ACTION:break;case y.CLOSE_PICKER:e.hide();break;case y.REFRESH_PICKER:a();break;case y.REMOVE_ITEM:{const t=e.items.indexOf(n);if(-1!==t){const i=e.items.slice(),n=i.splice(t,1),s=e.activeItems.filter((e=>e!==n[0])),o=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,s&&(e.activeItems=s),e.keepScrollPosition=o}break}}}};return s.add(e.onDidTriggerItemButton((e=>{let{button:t,item:i}=e;return l(t,i)}))),s.add(e.onDidTriggerSeparatorButton((e=>{let{button:t,separator:i}=e;return l(t,i)}))),s}}var A,R,O=i(87650),P=i(57823),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};let V=A=class extends M{constructor(e,t,i,n,s,o){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=o,this.commandsHistory=this._register(this.instantiationService.createInstance(W)),this.options=e}async _getPicks(e,t,i,n){var s,o,r,a;const l=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const d=(0,_.M)((()=>{const t=new C;t.updateDocuments(l.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){var t,i;const n=e.slice(0);n.sort(((e,t)=>t.score-e.score));const s=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(s>0)for(const o of n)o.score/=s;return n}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),c=[];for(const h of l){const t=null!==(s=A.WORD_FILTER(e,h.label))&&void 0!==s?s:void 0,n=h.commandAlias&&null!==(o=A.WORD_FILTER(e,h.commandAlias))&&void 0!==o?o:void 0;if(t||n)h.highlights={label:t,detail:this.options.showAlias?n:void 0},c.push(h);else if(e===h.commandId)c.push(h);else if(e.length>=3){const e=d();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===h.commandId));t&&(h.tfIdfScore=t.score,c.push(h))}}const u=new Map;for(const h of c){const e=u.get(h.label);e?(h.description=h.commandId,e.description=e.commandId):u.set(h.label,h)}c.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);if(i&&n)return i>n?-1:1;if(i)return-1;if(n)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),n=this.options.suggestedCommandIds.has(t.commandId);if(i&&n)return 0;if(i)return-1;if(n)return 1}return e.label.localeCompare(t.label)}));const g=[];let p=!1,m=!0,f=!!this.options.suggestedCommandIds;for(let _=0;_<c.length;_++){const e=c[_];0===_&&this.commandsHistory.peek(e.commandId)&&(g.push({type:"separator",label:(0,h.NC)("recentlyUsed","recently used")}),p=!0),m&&void 0!==e.tfIdfScore&&(g.push({type:"separator",label:(0,h.NC)("suggested","similar commands")}),m=!1),f&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&(null===(r=this.options.suggestedCommandIds)||void 0===r?void 0:r.has(e.commandId))&&(g.push({type:"separator",label:(0,h.NC)("commonlyUsed","commonly used")}),p=!0,f=!1),!p||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||(null===(a=this.options.suggestedCommandIds)||void 0===a?void 0:a.has(e.commandId))||(g.push({type:"separator",label:(0,h.NC)("morecCommands","other commands")}),p=!1),g.push(this.toCommandPick(e,n))}return this.hasAdditionalCommandPicks(e,i)?{picks:g,additionalPicks:(async()=>{var t;const s=await this.getAdditionalCommandPicks(l,c,e,i);if(i.isCancellationRequested)return[];const o=s.map((e=>this.toCommandPick(e,n)));return m&&"separator"!==(null===(t=o[0])||void 0===t?void 0:t.type)&&o.unshift({type:"separator",label:(0,h.NC)("suggested","similar commands")}),o})()}:g}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?(0,h.NC)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{var i,n;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:null!==(i=null===t||void 0===t?void 0:t.from)&&void 0!==i?i:"quick open"});try{(null===(n=e.args)||void 0===n?void 0:n.length)?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(s){(0,m.n2)(s)||this.dialogService.error((0,h.NC)("canNotRun","Command '{0}' resulted in an error",e.label),p(s))}}}}getTfIdfChunk(e){let{label:t,commandAlias:i,commandDescription:n}=e,s=t;return i&&i!==t&&(s+=` - ${i}`),n&&n.value!==t&&(s+=` - ${n.value===n.original?n.value:`${n.value} (${n.original})`}`),s}};V.PREFIX=">",V.TFIDF_THRESHOLD=.5,V.TFIDF_MAX_RESULTS=5,V.WORD_FILTER=(0,f.or)(f.Ji,f.KZ,f.ir),V=A=F([B(1,L.TG),B(2,k.d),B(3,w.H),B(4,P.b),B(5,x.S)],V);let W=R=class extends v.JT{constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===O.fk.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=R.getConfiguredCommandHistoryLength(this.configurationService),R.cache&&R.cache.limit!==this.configuredCommandsHistoryLength&&(R.cache.limit=this.configuredCommandsHistoryLength,R.hasChanges=!0))}load(){const e=this.storageService.get(R.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(n){this.logService.error(`[CommandsHistory] invalid data: ${n}`)}const i=R.cache=new b.z6(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}R.counter=this.storageService.getNumber(R.PREF_KEY_COUNTER,0,R.counter)}push(e){R.cache&&(R.cache.set(e,R.counter++),R.hasChanges=!0)}peek(e){var t;return null===(t=R.cache)||void 0===t?void 0:t.peek(e)}saveState(){if(!R.cache)return;if(!R.hasChanges)return;const e={usesLRU:!0,entries:[]};R.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(R.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(R.PREF_KEY_COUNTER,R.counter,0,0),R.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var t,i;const n=null===(i=null===(t=e.getValue().workbench)||void 0===t?void 0:t.commandPalette)||void 0===i?void 0:i.history;return"number"===typeof n?n:R.DEFAULT_COMMANDS_HISTORY_LENGTH}};W.DEFAULT_COMMANDS_HISTORY_LENGTH=50,W.PREF_KEY_CACHE="commandPalette.mru.cache",W.PREF_KEY_COUNTER="commandPalette.mru.counter",W.counter=1,W.hasChanges=!1,W=R=F([B(0,O.Uy),B(1,S.Ui),B(2,D.VZ)],W);class H extends V{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,a.x$)(i.label)||i.id});return t}}var z=i(60548),j=i(35770),U=i(2033),K=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},q=function(e,t){return function(i,n){t(i,n,e)}};let $=class extends H{get activeTextEditorControl(){var e;return null!==(e=this.codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}constructor(e,t,i,n,s,o){super({showAlias:!1},e,i,n,s,o),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};$=K([q(0,L.TG),q(1,r.$),q(2,k.d),q(3,w.H),q(4,P.b),q(5,x.S)],$);class G extends z.R6{constructor(){super({id:G.ID,label:o.UX.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:j.u.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(U.eJ).quickAccess.show($.PREFIX)}}G.ID="editor.action.quickCommand",(0,z.Qr)(G),n.B.as(s.IP.Quickaccess).registerQuickAccessProvider({ctor:$,prefix:$.PREFIX,helpEntries:[{description:o.UX.quickCommandHelp,commandId:G.ID}]})},95879:(e,t,i)=>{"use strict";var n=i(53186),s=i(48850),o=i(28599),r=i(5887);class a extends o.X{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,r.NC)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n.JT.None}provideWithTextEditor(e,t,i){const o=e.editor,r=new n.SL;r.add(t.onDidAccept((i=>{const[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(o,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const l=()=>{const e=this.parsePosition(o,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(o,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(o,e.lineNumber))return void this.clearDecorations(o);const n=this.toRange(e.lineNumber,e.column);o.revealRangeInCenter(n,0),this.addDecorations(o,n)};l(),r.add(t.onDidChangeValue((()=>l())));const d=(0,s.Pi)(o);if(d){2===d.getOptions().get(68).renderType&&(d.updateOptions({lineNumbers:"on"}),r.add((0,n.OF)((()=>d.updateOptions({lineNumbers:"relative"})))))}return r}toRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,r.NC)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,r.NC)("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?(0,r.NC)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):(0,r.NC)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}a.PREFIX=":";var l=i(76322),d=i(99009),h=i(74246),c=i(23523),u=i(39706),g=i(60548),p=i(35770),m=i(2033),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.ju.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};v=f([_(0,h.$)],v);class b extends g.R6{constructor(){super({id:b.ID,label:c.qq.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.eJ).quickAccess.show(v.PREFIX)}}b.ID="editor.action.gotoLine",(0,g.Qr)(b),l.B.as(d.IP.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:c.qq.gotoLineActionLabel,commandId:b.ID}]})},70902:(e,t,i)=>{"use strict";i(60951),i(95451);var n=i(53372),s=i(76946),o=i(61542),r=i(73045),a=i(34835),l=i(96682),d=i(90388),h=i(78701);const c=[void 0,[]];function u(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=t;return s.values&&s.values.length>1?function(e,t,i,n){let s=0;const o=[];for(const r of t){const[t,a]=g(e,r,i,n);if("number"!==typeof t)return c;s+=t,o.push(...a)}return[s,p(o)]}(e,s.values,i,n):g(e,t,i,n)}function g(e,t,i,n){const s=(0,a.EW)(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return s?[s[0],(0,a.mB)(s)]:c}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let n;for(const s of t)n&&m(n,s)?(n.start=Math.min(n.start,s.start),n.end=Math.max(n.end,s.end)):(n=s,i.push(s));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}const _=" ";function v(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:n,normalizedLowercase:s}=b(e),o=i.indexOf(l.ir)>=0,r=f(e);let a;const d=e.split(_);if(d.length>1)for(const l of d){const e=f(l),{pathNormalized:t,normalized:i,normalizedLowercase:n}=b(l);i&&(a||(a=[]),a.push({original:l,originalLowercase:l.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:n,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:s,values:a,containsPathSeparator:o,expectContiguousMatch:r}}function b(e){let t;t=d.ED?e.replace(/\//g,l.ir):e.replace(/\\/g,l.ir);const i=(0,h.R1)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?v(e.map((e=>e.original)).join(_)):v(e.original)}var y,w=i(53186),S=i(28928),x=i(18841),L=i(9895),k=i(28599),D=i(5887),N=i(53869),E=i(91206),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=y=class extends k.X{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.create(null);super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,D.NC)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),w.JT.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):w.JT.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new w.SL;return this.provideLabelPick(i,(0,D.NC)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,s)&&!n.isCancellationRequested&&s.add(this.doProvideWithEditorSymbols(e,t,i,n))})(),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new n.CR,s=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(s.dispose(),i.complete(!0))})));return t.add((0,w.OF)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,n){var o;const r=e.editor,a=new w.SL;a.add(i.onDidAccept((t=>{const[n]=i.selectedItems;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((t=>{let{item:n}=t;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const l=this.getDocumentSymbols(t,n);let d;const h=async e=>{null===d||void 0===d||d.dispose(!0),i.busy=!1,d=new s.A(n),i.busy=!0;try{const t=v(i.value.substr(y.PREFIX.length).trim()),s=await this.doGetSymbolPicks(l,t,void 0,d.token);if(n.isCancellationRequested)return;if(s.length>0){if(i.items=s,e&&0===t.original.length){const t=(0,E.dF)(s,(t=>Boolean("separator"!==t.type&&t.range&&S.e.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else t.original.length>0?this.provideLabelPick(i,(0,D.NC)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,D.NC)("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(null===(o=r.getSelection())||void 0===o?void 0:o.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(r.revealRangeInCenter(e.range.selection,0),this.addDecorations(r,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,n){var s,a;const l=await e;if(n.isCancellationRequested)return[];const d=0===t.original.indexOf(y.SCOPE_PREFIX),c=d?1:0;let g,p,m;t.values&&t.values.length>1?(g=C(t.values[0]),p=C(t.values.slice(1))):g=t;const f=null===(a=null===(s=this.options)||void 0===s?void 0:s.openSideBySideDirection)||void 0===a?void 0:a.call(s);f&&(m=[{iconClass:"right"===f?r.k.asClassName(o.l.splitHorizontal):r.k.asClassName(o.l.splitVertical),tooltip:"right"===f?(0,D.NC)("openToSide","Open to the Side"):(0,D.NC)("openToBottom","Open to the Bottom")}]);const _=[];for(let w=0;w<l.length;w++){const L=l[w],k=(0,h.fy)(L.name),N=`$(${x.uZ.toIcon(L.kind).id}) ${k}`,E=N.length-k.length;let T,I,M,O,P=L.containerName;if((null===i||void 0===i?void 0:i.extraContainerLabel)&&(P=P?`${i.extraContainerLabel} \u2022 ${P}`:i.extraContainerLabel),t.original.length>c){let B=!1;if(g!==t&&([T,I]=u(N,{...t,values:void 0},c,E),"number"===typeof T&&(B=!0)),"number"!==typeof T&&([T,I]=u(N,g,c,E),"number"!==typeof T))continue;if(!B&&p){if(P&&p.original.length>0&&([M,O]=u(P,p)),"number"!==typeof M)continue;"number"===typeof T&&(T+=M)}}const F=L.tags&&L.tags.indexOf(1)>=0;_.push({index:w,kind:L.kind,score:T,label:N,ariaLabel:(0,x.R4)(L.name,L.kind),description:P,highlights:F?void 0:{label:I,description:O},range:{selection:S.e.collapseToStart(L.selectionRange),decoration:L.range},strikethrough:F,buttons:m})}const v=_.sort(((e,t)=>d?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let b=[];if(d){let V,W,H=0;function z(){W&&"number"===typeof V&&H>0&&(W.label=(0,h.WU)(R[V]||A,H))}for(const j of v)V!==j.kind?(z(),V=j.kind,H=1,W={type:"separator"},b.push(W)):H++,b.push(j);z()}else v.length>0&&(b=[{label:(0,D.NC)("symbols","symbols ({0})",_.length),type:"separator"},...v]);return b}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=R[e.kind]||A,n=R[t.kind]||A,s=i.localeCompare(n);return 0===s?this.compareByScore(e,t):s}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};M.PREFIX="@",M.SCOPE_PREFIX=":",M.PREFIX_BY_CATEGORY=`${y.PREFIX}${y.SCOPE_PREFIX}`,M=y=T([I(0,N.p),I(1,L.Je)],M);const A=(0,D.NC)("property","properties ({0})"),R={5:(0,D.NC)("method","methods ({0})"),11:(0,D.NC)("function","functions ({0})"),8:(0,D.NC)("_constructor","constructors ({0})"),12:(0,D.NC)("variable","variables ({0})"),4:(0,D.NC)("class","classes ({0})"),22:(0,D.NC)("struct","structs ({0})"),23:(0,D.NC)("event","events ({0})"),24:(0,D.NC)("operator","operators ({0})"),10:(0,D.NC)("interface","interfaces ({0})"),2:(0,D.NC)("namespace","namespaces ({0})"),3:(0,D.NC)("package","packages ({0})"),25:(0,D.NC)("typeParameter","type parameters ({0})"),1:(0,D.NC)("modules","modules ({0})"),6:(0,D.NC)("property","properties ({0})"),9:(0,D.NC)("enum","enumerations ({0})"),21:(0,D.NC)("enumMember","enumeration members ({0})"),14:(0,D.NC)("string","strings ({0})"),0:(0,D.NC)("file","files ({0})"),17:(0,D.NC)("array","arrays ({0})"),15:(0,D.NC)("number","numbers ({0})"),16:(0,D.NC)("boolean","booleans ({0})"),18:(0,D.NC)("object","objects ({0})"),19:(0,D.NC)("key","keys ({0})"),7:(0,D.NC)("field","fields ({0})"),13:(0,D.NC)("constant","constants ({0})")};var O=i(76322),P=i(99009),F=i(74246),B=i(23523),V=i(39706),W=i(60548),H=i(35770),z=i(2033),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};let K=class extends M{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=V.ju.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};K=j([U(0,F.$),U(1,N.p),U(2,L.Je)],K);class q extends W.R6{constructor(){super({id:q.ID,label:B.aq.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:H.u.hasDocumentSymbolProvider,kbOpts:{kbExpr:H.u.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(z.eJ).quickAccess.show(M.PREFIX,{itemActivation:z.jG.NONE})}}q.ID="editor.action.quickOutline",(0,W.Qr)(q),O.B.as(P.IP.Quickaccess).registerQuickAccessProvider({ctor:K,prefix:M.PREFIX,helpEntries:[{description:B.aq.quickOutlineActionLabel,prefix:M.PREFIX,commandId:q.ID},{description:B.aq.quickOutlineByCategoryActionLabel,prefix:M.PREFIX_BY_CATEGORY}]})},71571:(e,t,i)=>{"use strict";var n,s=i(76322),o=i(99009),r=i(23523),a=i(5887),l=i(53186),d=i(25371),h=i(2033),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=n=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=s.B.as(o.IP.Quickaccess)}provide(e){const t=new l.SL;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(n.PREFIX.length));t&&t.prefix&&t.prefix!==n.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==n.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,n=i||"\u2026";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.NC)("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}}))}};g.PREFIX="?",g=n=c([u(0,h.eJ),u(1,d.d)],g),s.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:r.ld.helpQuickAccessActionLabel}]})},23977:(e,t,i)=>{"use strict";var n=i(60548),s=i(74246),o=i(6823),r=i(30600),a=i(47116),l=i(87775),d=i(61758),h=i(87650),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends o.J{constructor(e,t,i,n,s,o,r){super(!0,e,t,i,n,s,o,r)}};g=c([u(1,a.i6),u(2,s.$),u(3,d.lT),u(4,l.TG),u(5,h.Uy),u(6,r.Ui)],g),(0,n._K)(o.J.ID,g,4)},84633:(e,t,i)=>{"use strict";i.d(t,{kR:()=>M,MU:()=>A,nI:()=>W,rW:()=>I,TG:()=>T});var n=i(76595),s=i(27748),o=i(63932),r=i(39706),a=i(18841),l=i(9556);class d{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class c{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=o.Il.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let n=0,s=e.length;n<s;n++){const s=e[n];let o=-1;if("string"===typeof s.fontStyle){o=0;const e=s.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let r=null;"string"===typeof s.foreground&&(r=s.foreground);let a=null;"string"===typeof s.background&&(a=s.background),t[i++]=new d(s.token||"",n,o,r,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,n="000000",s="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(s=t.background)}const o=new c;for(const h of t)o.getId(h);const r=o.getId(n),a=o.getId(s),l=new p(i,r,a),d=new m(l);for(let h=0,c=e.length;h<c;h++){const t=e[h];d.insert(t.token,t.fontStyle,o.getId(t.foreground),o.getId(t.background))}return new u(o,d)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),n=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|n<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,n;-1===t?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return"undefined"!==typeof s?s.match(n):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);const s=e.indexOf(".");let o,r;-1===s?(o=e,r=""):(o=e.substring(0,s),r=e.substring(s+1));let a=this._children.get(o);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,i,n)}}var f=i(12354),_=i(6009);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.cvW]:"#FFFFFE",[_.NOs]:"#000000",[_.ES4]:"#E5EBF1",[f.gS]:"#D3D3D3",[f.qe]:"#939393",[_.Rzx]:"#ADD6FF4D"}},b={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.cvW]:"#1E1E1E",[_.NOs]:"#D4D4D4",[_.ES4]:"#3A3D41",[f.gS]:"#404040",[f.qe]:"#707070",[_.Rzx]:"#ADD6FF26"}},C={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.cvW]:"#000000",[_.NOs]:"#FFFFFF",[f.gS]:"#FFFFFF",[f.qe]:"#FFFFFF"}},y={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.cvW]:"#FFFFFF",[_.NOs]:"#292929",[f.gS]:"#292929",[f.qe]:"#292929"}};var w=i(76322),S=i(46673),x=i(53186),L=i(25112),k=i(73045),D=i(54329);class N{getIcon(e){const t=(0,D.Ks)();let i=e.defaults;for(;k.k.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var E=i(11801);const T="vs",I="vs-dark",M="hc-black",A="hc-light",R=w.B.as(_.IPX.ColorContribution),O=w.B.as(S.IP.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,o.Il.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=B(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,o.Il.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=R.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case T:return L.eL.LIGHT;case M:return L.eL.HIGH_CONTRAST_DARK;case A:return L.eL.HIGH_CONTRAST_LIGHT;default:return L.eL.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=B(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,s=l.N.getForeground(n),o=l.N.getFontStyle(n);return{foreground:s,italic:Boolean(1&o),bold:Boolean(2&o),underline:Boolean(4&o),strikethrough:Boolean(8&o)}}}function F(e){return e===T||e===I||e===M||e===A}function B(e){switch(e){case T:return v;case I:return b;case M:return C;case A:return y}}function V(e){const t=B(e);return new P(e,t)}class W extends x.JT{constructor(){super(),this._onColorThemeChange=this._register(new r.Q5),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.Q5),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new N,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(T,V(T)),this._knownThemes.set(I,V(I)),this._knownThemes.set(M,V(M)),this._knownThemes.set(A,V(A));const e=this._register(function(e){const t=new x.SL,i=t.add(new r.Q5),s=(0,D.Ks)();return t.add(s.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new N,i={},o=e=>{const s=t.getIcon(e);if(!s)return;const o=s.font;return o?(i[o.id]=o.definition,`.codicon-${e.id}:before { content: '${s.fontCharacter}'; font-family: ${(0,n._h)(o.id)}; }`):`.codicon-${e.id}:before { content: '${s.fontCharacter}'; }`},r=[];for(const e of s.getIcons()){const t=o(e);t&&r.push(t)}for(const e in i){const t=i[e],s=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,n.wY)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,n._h)(e)};${s}${o} font-display: block; }`)}return r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(T),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,s.uB)(E.E,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return n.OO(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=n.dS(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),x.JT.None}_registerShadowDomContainer(e){const t=n.dS(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(e)&&this._knownThemes.forEach((t=>{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(T),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=E.E.matchMedia("(forced-colors: active)").matches;if(e!==(0,L.c3)(this._theme.type)){let t;t=(0,L._T)(this._theme.type)?e?M:I:e?A:T,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};O.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=[];for(const o of R.getColors()){const e=this._theme.getColor(o.id,!0);e&&n.push(`${(0,_.QO2)(o.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join("\n")} }`);const s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,n=e.length;i<n;i++){const n=e[i];t[i]=`.mtk${i} { color: ${n}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(s)),this._themeCSS=e.join("\n"),this._updateCSS(),a.RW.setColorMap(s),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},48208:(e,t,i)=>{"use strict";var n=i(60548),s=i(79737),o=i(23523),r=i(25112),a=i(84633);class l extends n.R6{constructor(){super({id:"editor.action.toggleHighContrast",label:o.xi.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(s.Z),n=i.getColorTheme();(0,r.c3)(n.type)?(i.setTheme(this._originalThemeName||((0,r._T)(n.type)?a.rW:a.TG)),this._originalThemeName=null):(i.setTheme((0,r._T)(n.type)?a.kR:a.MU),this._originalThemeName=n.themeName)}}(0,n.Qr)(l)},79737:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=(0,i(87775).yh)("themeService")},94385:(e,t,i)=>{"use strict";var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=class{constructor(e,t,i){this._onDidChange=new c.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(4465).then(i.bind(i,94465))}c.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},c.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),c.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),c.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},83443:(e,t,i)=>{"use strict";var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=class{constructor(e,t,i){this._onDidChange=new c.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=x(m,g,p(m)),b=v.defaults,C=x(f,g,p(f)),y=C.defaults,w=x(_,g,p(_)),S=w.defaults;function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(e);const s=new u(e,t,n);let o;const r=c.languages.onLanguage(e,(async()=>{o=(await i.e(1109).then(i.bind(i,71109))).setupMode(s)}));return{defaults:s,dispose(){r.dispose(),o?.dispose(),o=void 0}}}c.languages.html={htmlDefaults:b,razorDefaults:S,handlebarDefaults:y,htmlLanguageService:v,handlebarLanguageService:C,razorLanguageService:w,registerHTMLLanguageService:x}},54205:(e,t,i)=>{"use strict";var n=i(56017),s=new class{constructor(e,t,i){this._onDidChange=new n.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function o(){return i.e(2769).then(i.bind(i,32769))}n.languages.json={jsonDefaults:s,getWorker:()=>o().then((e=>e.getWorker()))},n.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),n.languages.onLanguage("json",(()=>{o().then((e=>e.setupMode(s)))}))},6174:(e,t,i)=>{"use strict";i.d(t,{TG:()=>b});var n,s,o=i(56017),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,n,s){this._onDidChange=new c.Emitter,this._onDidExtraLibsChange=new c.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(s),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},b=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),C=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function y(){return i.e(5503).then(i.bind(i,25503))}c.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.0.2",typescriptDefaults:b,javascriptDefaults:C,getTypeScriptWorker:()=>y().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>y().then((e=>e.getJavaScriptWorker()))},c.languages.onLanguage("typescript",(()=>y().then((e=>e.setupTypeScript(b))))),c.languages.onLanguage("javascript",(()=>y().then((e=>e.setupJavaScript(C)))))},5887:(e,t,i)=>{"use strict";i.d(t,{NC:()=>o,aj:()=>a,vv:()=>r});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],s=t[n];let o=e;return"string"===typeof s?o=s:"number"!==typeof s&&"boolean"!==typeof s&&void 0!==s&&null!==s||(o=String(s)),o})),n&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function o(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];return s(t,n)}function r(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];const r=s(t,n);return{value:r,original:r}}function a(e){}},71940:(e,t,i)=>{"use strict";i.d(t,{F:()=>s,U:()=>o});var n=i(47116);const s=(0,i(87775).yh)("accessibilityService"),o=new n.uy("accessibilityModeEnabled",!1)},88622:(e,t,i)=>{"use strict";i.d(t,{IV:()=>o,iP:()=>l});var n=i(87775),s=i(5887);const o=(0,n.yh)("accessibilitySignalService");class r{static register(e){return new r(e.fileName)}constructor(e){this.fileName=e}}r.error=r.register({fileName:"error.mp3"}),r.warning=r.register({fileName:"warning.mp3"}),r.foldedArea=r.register({fileName:"foldedAreas.mp3"}),r.break=r.register({fileName:"break.mp3"}),r.quickFixes=r.register({fileName:"quickFixes.mp3"}),r.taskCompleted=r.register({fileName:"taskCompleted.mp3"}),r.taskFailed=r.register({fileName:"taskFailed.mp3"}),r.terminalBell=r.register({fileName:"terminalBell.mp3"}),r.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"}),r.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"}),r.diffLineModified=r.register({fileName:"diffLineModified.mp3"}),r.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"}),r.chatResponsePending=r.register({fileName:"chatResponsePending.mp3"}),r.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"}),r.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"}),r.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"}),r.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"}),r.clear=r.register({fileName:"clear.mp3"}),r.save=r.register({fileName:"save.mp3"}),r.format=r.register({fileName:"format.mp3"}),r.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"}),r.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"});class a{constructor(e){this.randomOneOf=e}}class l{static register(e){const t=new a("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new l(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return l._signals.add(i),i}constructor(e,t,i,n,s,o){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=n,this.legacyAnnouncementSettingsKey=s,this.announcementMessage=o}}l._signals=new Set,l.error=l.register({name:(0,s.NC)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.NC)("accessibility.signals.lineHasError","Error"),settingsKey:"accessibility.signals.lineHasError"}),l.warning=l.register({name:(0,s.NC)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.NC)("accessibility.signals.lineHasWarning","Warning"),settingsKey:"accessibility.signals.lineHasWarning"}),l.foldedArea=l.register({name:(0,s.NC)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.NC)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),l.break=l.register({name:(0,s.NC)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.NC)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),l.inlineSuggestion=l.register({name:(0,s.NC)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),l.terminalQuickFix=l.register({name:(0,s.NC)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.NC)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),l.onDebugBreak=l.register({name:(0,s.NC)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.NC)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),l.noInlayHints=l.register({name:(0,s.NC)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.NC)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),l.taskCompleted=l.register({name:(0,s.NC)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.NC)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),l.taskFailed=l.register({name:(0,s.NC)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.NC)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),l.terminalCommandFailed=l.register({name:(0,s.NC)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.NC)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),l.terminalBell=l.register({name:(0,s.NC)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.NC)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),l.notebookCellCompleted=l.register({name:(0,s.NC)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.NC)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),l.notebookCellFailed=l.register({name:(0,s.NC)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.NC)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),l.diffLineInserted=l.register({name:(0,s.NC)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),l.diffLineDeleted=l.register({name:(0,s.NC)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),l.diffLineModified=l.register({name:(0,s.NC)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),l.chatRequestSent=l.register({name:(0,s.NC)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.NC)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),l.chatResponseReceived=l.register({name:(0,s.NC)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),l.chatResponsePending=l.register({name:(0,s.NC)("accessibilitySignals.chatResponsePending","Chat Response Pending"),sound:r.chatResponsePending,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.chatResponsePending",announcementMessage:(0,s.NC)("accessibility.signals.chatResponsePending","Chat Response Pending"),settingsKey:"accessibility.signals.chatResponsePending"}),l.clear=l.register({name:(0,s.NC)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.NC)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),l.save=l.register({name:(0,s.NC)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.NC)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),l.format=l.register({name:(0,s.NC)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.NC)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),l.voiceRecordingStarted=l.register({name:(0,s.NC)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),l.voiceRecordingStopped=l.register({name:(0,s.NC)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})},51887:(e,t,i)=>{"use strict";i.d(t,{Mm:()=>I,Id:()=>O,vr:()=>E,LJ:()=>N});var n=i(76595),s=i(10381),o=i(26031),r=i(86406),a=i(51828),l=i(47202),d=i(53186),h=i(90388),c=i(5887),u=i(6178);var g=i(47116),p=i(79086),m=i(87775),f=i(25371),_=i(61758),v=i(87650),b=i(46673),C=i(73045),y=i(25112),w=i(47624),S=i(6009),x=i(93617),L=i(71940),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};function N(e,t,i,s){const o=e.getActions(t),r=n._q.getInstance();T(o,i,r.keyStatus.altKey||(h.ED||h.IJ)&&r.keyStatus.shiftKey,s?e=>e===s:e=>"navigation"===e)}function E(e,t,i,n,s,o){T(e.getActions(t),i,!1,"string"===typeof n?e=>e===n:n,s,o)}function T(e,t,i){let n,s,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>"navigation"===e,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Array.isArray(t)?(n=t,s=t):(n=t.primary,s=t.secondary);const d=new Set;for(const[h,c]of e){let e;o(h)?(e=n,e.length>0&&l&&e.push(new a.Z0)):(e=s,e.length>0&&e.push(new a.Z0));for(let t of c){i&&(t=t instanceof u.U8&&t.alt?t.alt:t);const n=e.push(t);t instanceof a.wY&&d.add({group:h,action:t,index:n-1})}}for(const{group:a,action:h,index:c}of d){const e=o(a)?n:s,t=h.actions;r(h,a,e.length)&&e.splice(c,1,...t)}}let I=class extends o.gU{constructor(e,t,i,s,o,r,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===t||void 0===t?void 0:t.draggable,keybinding:null===t||void 0===t?void 0:t.keybinding,hoverDelegate:null===t||void 0===t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=s,this._contextKeyService=o,this._themeService=r,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new d.XK),this._altKey=n._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.nm)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,n.nm)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let s=i?(0,c.NC)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,c.NC)("titleAndKb","{0} ({1})",e,i):e;s=(0,c.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,l.xo.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const s=this._commandAction.checked&&((o=e.toggled)&&void 0!==o.condition)&&e.toggled.icon?e.toggled.icon:e.icon;var o;if(s)if(C.k.isThemeIcon(s)){const e=C.k.asClassNameArray(s);i.classList.add(...e),this._itemClassDispose.value=(0,d.OF)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,y._T)(this._themeService.getColorTheme().type)?(0,n.wY)(s.dark):(0,n.wY)(s.light),i.classList.add("icon"),this._itemClassDispose.value=(0,d.F8)((0,d.OF)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=k([D(2,f.d),D(3,_.lT),D(4,g.i6),D(5,b.XE),D(6,p.i),D(7,L.F)],I);let M=class extends r.C{constructor(e,t,i,n,s){var o,r,a;const l={...t,menuAsChild:null!==(o=null===t||void 0===t?void 0:t.menuAsChild)&&void 0!==o&&o,classNames:null!==(r=null===t||void 0===t?void 0:t.classNames)&&void 0!==r?r:C.k.isThemeIcon(e.item.icon)?C.k.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null===t||void 0===t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=s}render(e){super.render(e),(0,w.p_)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!C.k.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,y._T)(this._themeService.getColorTheme().type)?(0,n.wY)(i.dark):(0,n.wY)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};M=k([D(2,f.d),D(3,p.i),D(4,b.XE)],M);let A=class extends o.YH{constructor(e,t,i,n,s,o,l,d){var h,c,g;let p;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=o,this._instaService=l,this._storageService=d,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const m=(null===t||void 0===t?void 0:t.persistLastActionId)?d.get(this._storageKey,1):void 0;m&&(p=e.actions.find((e=>m===e.id))),p||(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});const f={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(h=null===t||void 0===t?void 0:t.menuAsChild)||void 0===h||h,classNames:null!==(c=null===t||void 0===t?void 0:t.classNames)&&void 0!==c?c:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null===t||void 0===t?void 0:t.actionRunner)&&void 0!==g?g:new a.Wi};this._dropdown=new r.C(e,e.actions,this._contextMenuService,f),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.U8&&this.update(e.action)})))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Ce)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.R3)(this._container,t)),this._register((0,n.nm)(t,n.tw.KEY_DOWN,(e=>{const t=new s.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.R3)(this._container,i)),this._register((0,n.nm)(i,n.tw.KEY_DOWN,(e=>{var t;const i=new s.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};A=k([D(2,f.d),D(3,_.lT),D(4,p.i),D(5,u.co),D(6,m.TG),D(7,v.Uy)],A);let R=class extends o.Lc{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.Z0.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,x.BM,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,S.n_1)(S.a9O)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function O(e,t,i){return t instanceof u.U8?e.createInstance(I,t,i):t instanceof u.NZ?t.item.isSelection?e.createInstance(R,t):t.item.rememberDefaultAction?e.createInstance(A,t,{...i,persistLastActionId:!0}):e.createInstance(M,t,i):void 0}R=k([D(1,p.u)],R)},31936:(e,t,i)=>{"use strict";i.d(t,{r:()=>E,T:()=>N});var n=i(76595),s=i(65179),o=i(7144),r=i(86406),a=i(51828),l=i(61542),d=i(73045),h=i(39706),c=i(53186),u=i(5887),g=i(97133);class p extends c.JT{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{orientation:0};var n;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h.z5),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new c.SL),i.hoverDelegate=null!==(n=i.hoverDelegate)&&void 0!==n?n:this._register((0,g.p0)()),this.options=i,this.lookupKeybindings="function"===typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new m((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new o.o(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var s;if(e.id===m.ID)return this.toggleMenuActionViewItem=new r.C(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:d.k.asClassNameArray(null!==(s=i.moreIcon)&&void 0!==s?s:l.l.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof a.wY){const i=new r.C(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const s=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return null!==(n=null===s||void 0===s?void 0:s.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.aU{constructor(e,t){t=t||u.NC("moreActions","More Actions..."),super(m.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}m.ID="toolbar.toggle.more";var f=i(51833),_=i(35863),v=i(16015),b=i(2706),C=i(51887),y=i(6178),w=i(47116),S=i(79086),x=i(25371),L=i(57823),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};let N=class extends p{constructor(e,t,i,n,s,o,r){super(e,s,{getKeyBinding:e=>{var t;return null!==(t=o.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"===typeof(null===t||void 0===t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new c.SL);const a=null===t||void 0===t?void 0:t.telemetrySource;a&&this._store.add(this.actionBar.onDidRun((e=>r.publicLog2("workbenchActionExecuted",{id:e.action.id,from:a}))))}setActions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;var o,r,l;this._sessionDisposables.clear();const d=e.slice(),h=t.slice(),c=[];let g=0;const p=[];let m=!1;if(-1!==(null===(o=this._options)||void 0===o?void 0:o.hiddenItemStrategy))for(let n=0;n<d.length;n++){const e=d[n];(e instanceof y.U8||e instanceof y.NZ)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&g++,e.hideActions.isHidden&&(m=!0,d[n]=void 0,0!==(null===(r=this._options)||void 0===r?void 0:r.hiddenItemStrategy)&&(p[n]=e))))}if(void 0!==(null===(l=this._options)||void 0===l?void 0:l.overflowBehavior)){const e=(0,_.j)(new Set(this._options.overflowBehavior.exempted),b.$.map(d,(e=>null===e||void 0===e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n<d.length;n++){const s=d[n];s&&(i++,e.has(s.id)||i>=t&&(d[n]=void 0,p[n]=s))}}(0,f.Rs)(d),(0,f.Rs)(p),super.setActions(d,a.Z0.join(p,h)),c.length>0&&this._sessionDisposables.add((0,n.nm)(this.getElement(),"contextmenu",(e=>{var t,o,r,l,d;const h=new s.n((0,n.Jj)(this.getElement()),e),p=this.getItemAction(h.target);if(!p)return;h.preventDefault(),h.stopPropagation();let f,_=!1;if(1===g&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){_=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.xw)({id:p.id,label:p.label,checked:!0,enabled:!1,run(){}});break}}if(!_&&(p instanceof y.U8||p instanceof y.NZ)){if(!p.hideActions)return;f=p.hideActions.hide}else f=(0,a.xw)({id:"label",label:(0,u.NC)("hide","Hide"),enabled:!1,run(){}});const v=a.Z0.join([f],c);(null===(o=this._options)||void 0===o?void 0:o.resetMenu)&&!i&&(i=[this._options.resetMenu]),m&&i&&(v.push(new a.Z0),v.push((0,a.xw)({id:"resetThisMenu",label:(0,u.NC)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>h,getActions:()=>v,menuId:null===(r=this._options)||void 0===r?void 0:r.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(l=this._options)||void 0===l?void 0:l.menuOptions},skipTelemetry:"string"===typeof(null===(d=this._options)||void 0===d?void 0:d.telemetrySource),contextKeyService:this._contextKeyService})})))}};N=k([D(2,y.co),D(3,w.i6),D(4,S.i),D(5,x.d),D(6,L.b)],N);let E=class extends N{constructor(e,t,i,n,s,o,r,a){super(e,{resetMenu:t,...i},n,s,o,r,a),this._onDidChangeMenuItems=this._store.add(new h.Q5),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(n.createMenu(t,s,{emitEventsForSubmenuChanges:!0})),d=()=>{var t,n,s;const o=[],r=[];(0,C.vr)(l,null===i||void 0===i?void 0:i.menuOptions,{primary:o,secondary:r},null===(t=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(s=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===s?void 0:s.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===o.length&&0===r.length),super.setActions(o,r)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.he("This toolbar is populated from a menu.")}};E=k([D(3,y.co),D(4,w.i6),D(5,S.i),D(6,x.d),D(7,L.b)],E)},6178:(e,t,i)=>{"use strict";i.d(t,{BH:()=>C,Ke:()=>S,NZ:()=>y,U8:()=>w,co:()=>v,eH:()=>_,f6:()=>f,r1:()=>x,vr:()=>m});var n,s=i(51828),o=i(73045),r=i(39706),a=i(53186),l=i(64450),d=i(94943),h=i(47116),c=i(87775),u=i(85412),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}_._instances=new Map,_.CommandPalette=new _("CommandPalette"),_.DebugBreakpointsContext=new _("DebugBreakpointsContext"),_.DebugCallStackContext=new _("DebugCallStackContext"),_.DebugConsoleContext=new _("DebugConsoleContext"),_.DebugVariablesContext=new _("DebugVariablesContext"),_.NotebookVariablesContext=new _("NotebookVariablesContext"),_.DebugHoverContext=new _("DebugHoverContext"),_.DebugWatchContext=new _("DebugWatchContext"),_.DebugToolBar=new _("DebugToolBar"),_.DebugToolBarStop=new _("DebugToolBarStop"),_.EditorContext=new _("EditorContext"),_.SimpleEditorContext=new _("SimpleEditorContext"),_.EditorContent=new _("EditorContent"),_.EditorLineNumberContext=new _("EditorLineNumberContext"),_.EditorContextCopy=new _("EditorContextCopy"),_.EditorContextPeek=new _("EditorContextPeek"),_.EditorContextShare=new _("EditorContextShare"),_.EditorTitle=new _("EditorTitle"),_.EditorTitleRun=new _("EditorTitleRun"),_.EditorTitleContext=new _("EditorTitleContext"),_.EditorTitleContextShare=new _("EditorTitleContextShare"),_.EmptyEditorGroup=new _("EmptyEditorGroup"),_.EmptyEditorGroupContext=new _("EmptyEditorGroupContext"),_.EditorTabsBarContext=new _("EditorTabsBarContext"),_.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu"),_.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu"),_.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu"),_.ExplorerContext=new _("ExplorerContext"),_.ExplorerContextShare=new _("ExplorerContextShare"),_.ExtensionContext=new _("ExtensionContext"),_.GlobalActivity=new _("GlobalActivity"),_.CommandCenter=new _("CommandCenter"),_.CommandCenterCenter=new _("CommandCenterCenter"),_.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu"),_.LayoutControlMenu=new _("LayoutControlMenu"),_.MenubarMainMenu=new _("MenubarMainMenu"),_.MenubarAppearanceMenu=new _("MenubarAppearanceMenu"),_.MenubarDebugMenu=new _("MenubarDebugMenu"),_.MenubarEditMenu=new _("MenubarEditMenu"),_.MenubarCopy=new _("MenubarCopy"),_.MenubarFileMenu=new _("MenubarFileMenu"),_.MenubarGoMenu=new _("MenubarGoMenu"),_.MenubarHelpMenu=new _("MenubarHelpMenu"),_.MenubarLayoutMenu=new _("MenubarLayoutMenu"),_.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu"),_.PanelAlignmentMenu=new _("PanelAlignmentMenu"),_.PanelPositionMenu=new _("PanelPositionMenu"),_.ActivityBarPositionMenu=new _("ActivityBarPositionMenu"),_.MenubarPreferencesMenu=new _("MenubarPreferencesMenu"),_.MenubarRecentMenu=new _("MenubarRecentMenu"),_.MenubarSelectionMenu=new _("MenubarSelectionMenu"),_.MenubarShare=new _("MenubarShare"),_.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu"),_.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu"),_.MenubarTerminalMenu=new _("MenubarTerminalMenu"),_.MenubarViewMenu=new _("MenubarViewMenu"),_.MenubarHomeMenu=new _("MenubarHomeMenu"),_.OpenEditorsContext=new _("OpenEditorsContext"),_.OpenEditorsContextShare=new _("OpenEditorsContextShare"),_.ProblemsPanelContext=new _("ProblemsPanelContext"),_.SCMInputBox=new _("SCMInputBox"),_.SCMChangesSeparator=new _("SCMChangesSeparator"),_.SCMIncomingChanges=new _("SCMIncomingChanges"),_.SCMIncomingChangesContext=new _("SCMIncomingChangesContext"),_.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting"),_.SCMOutgoingChanges=new _("SCMOutgoingChanges"),_.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext"),_.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting"),_.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext"),_.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext"),_.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext"),_.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext"),_.SCMChangeContext=new _("SCMChangeContext"),_.SCMResourceContext=new _("SCMResourceContext"),_.SCMResourceContextShare=new _("SCMResourceContextShare"),_.SCMResourceFolderContext=new _("SCMResourceFolderContext"),_.SCMResourceGroupContext=new _("SCMResourceGroupContext"),_.SCMSourceControl=new _("SCMSourceControl"),_.SCMSourceControlInline=new _("SCMSourceControlInline"),_.SCMSourceControlTitle=new _("SCMSourceControlTitle"),_.SCMTitle=new _("SCMTitle"),_.SearchContext=new _("SearchContext"),_.SearchActionMenu=new _("SearchActionContext"),_.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu"),_.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu"),_.StickyScrollContext=new _("StickyScrollContext"),_.TestItem=new _("TestItem"),_.TestItemGutter=new _("TestItemGutter"),_.TestMessageContext=new _("TestMessageContext"),_.TestMessageContent=new _("TestMessageContent"),_.TestPeekElement=new _("TestPeekElement"),_.TestPeekTitle=new _("TestPeekTitle"),_.TouchBarContext=new _("TouchBarContext"),_.TitleBarContext=new _("TitleBarContext"),_.TitleBarTitleContext=new _("TitleBarTitleContext"),_.TunnelContext=new _("TunnelContext"),_.TunnelPrivacy=new _("TunnelPrivacy"),_.TunnelProtocol=new _("TunnelProtocol"),_.TunnelPortInline=new _("TunnelInline"),_.TunnelTitle=new _("TunnelTitle"),_.TunnelLocalAddressInline=new _("TunnelLocalAddressInline"),_.TunnelOriginInline=new _("TunnelOriginInline"),_.ViewItemContext=new _("ViewItemContext"),_.ViewContainerTitle=new _("ViewContainerTitle"),_.ViewContainerTitleContext=new _("ViewContainerTitleContext"),_.ViewTitle=new _("ViewTitle"),_.ViewTitleContext=new _("ViewTitleContext"),_.CommentEditorActions=new _("CommentEditorActions"),_.CommentThreadTitle=new _("CommentThreadTitle"),_.CommentThreadActions=new _("CommentThreadActions"),_.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions"),_.CommentThreadTitleContext=new _("CommentThreadTitleContext"),_.CommentThreadCommentContext=new _("CommentThreadCommentContext"),_.CommentTitle=new _("CommentTitle"),_.CommentActions=new _("CommentActions"),_.CommentsViewThreadActions=new _("CommentsViewThreadActions"),_.InteractiveToolbar=new _("InteractiveToolbar"),_.InteractiveCellTitle=new _("InteractiveCellTitle"),_.InteractiveCellDelete=new _("InteractiveCellDelete"),_.InteractiveCellExecute=new _("InteractiveCellExecute"),_.InteractiveInputExecute=new _("InteractiveInputExecute"),_.IssueReporter=new _("IssueReporter"),_.NotebookToolbar=new _("NotebookToolbar"),_.NotebookStickyScrollContext=new _("NotebookStickyScrollContext"),_.NotebookCellTitle=new _("NotebookCellTitle"),_.NotebookCellDelete=new _("NotebookCellDelete"),_.NotebookCellInsert=new _("NotebookCellInsert"),_.NotebookCellBetween=new _("NotebookCellBetween"),_.NotebookCellListTop=new _("NotebookCellTop"),_.NotebookCellExecute=new _("NotebookCellExecute"),_.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo"),_.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary"),_.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle"),_.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle"),_.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle"),_.NotebookOutputToolbar=new _("NotebookOutputToolbar"),_.NotebookOutlineFilter=new _("NotebookOutlineFilter"),_.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu"),_.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure"),_.NotebookKernelSource=new _("NotebookKernelSource"),_.BulkEditTitle=new _("BulkEditTitle"),_.BulkEditContext=new _("BulkEditContext"),_.TimelineItemContext=new _("TimelineItemContext"),_.TimelineTitle=new _("TimelineTitle"),_.TimelineTitleContext=new _("TimelineTitleContext"),_.TimelineFilterSubMenu=new _("TimelineFilterSubMenu"),_.AccountsContext=new _("AccountsContext"),_.SidebarTitle=new _("SidebarTitle"),_.PanelTitle=new _("PanelTitle"),_.AuxiliaryBarTitle=new _("AuxiliaryBarTitle"),_.AuxiliaryBarHeader=new _("AuxiliaryBarHeader"),_.TerminalInstanceContext=new _("TerminalInstanceContext"),_.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext"),_.TerminalNewDropdownContext=new _("TerminalNewDropdownContext"),_.TerminalTabContext=new _("TerminalTabContext"),_.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext"),_.TerminalStickyScrollContext=new _("TerminalStickyScrollContext"),_.WebviewContext=new _("WebviewContext"),_.InlineCompletionsActions=new _("InlineCompletionsActions"),_.InlineEditActions=new _("InlineEditActions"),_.NewFile=new _("NewFile"),_.MergeInput1Toolbar=new _("MergeToolbar1Toolbar"),_.MergeInput2Toolbar=new _("MergeToolbar2Toolbar"),_.MergeBaseToolbar=new _("MergeBaseToolbar"),_.MergeInputResultToolbar=new _("MergeToolbarResultToolbar"),_.InlineSuggestionToolbar=new _("InlineSuggestionToolbar"),_.InlineEditToolbar=new _("InlineEditToolbar"),_.ChatContext=new _("ChatContext"),_.ChatCodeBlock=new _("ChatCodeblock"),_.ChatMessageTitle=new _("ChatMessageTitle"),_.ChatExecute=new _("ChatExecute"),_.ChatExecuteSecondary=new _("ChatExecuteSecondary"),_.ChatInputSide=new _("ChatInputSide"),_.AccessibleView=new _("AccessibleView"),_.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar"),_.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar"),_.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar");const v=(0,c.yh)("menuService");class b{static for(e){let t=this._all.get(e);return t||(t=new b(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof b&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}b._all=new Map;const C=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new r.SZ({merge:b.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(b.for(_.CommandPalette)),(0,a.OF)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(b.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.S,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(b.for(e)),(0,a.OF)((()=>{n(),this._onDidChangeMenu.fire(b.for(e))}))}appendMenuItems(e){const t=new a.SL;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class y extends s.wY{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let w=n=class{static label(e,t){return(null===t||void 0===t?void 0:t.renderShortTitle)&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,s,r,a){var l,d;let h;if(this.hideActions=s,this._commandService=a,this.id=e.id,this.label=n.label(e,i),this.tooltip=null!==(d="string"===typeof e.tooltip?e.tooltip:null===(l=e.tooltip)||void 0===l?void 0:l.value)&&void 0!==d?d:"",this.enabled=!e.precondition||r.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=r.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&o.k.isThemeIcon(t.icon)&&(h=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}h||(h=o.k.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new n(t,void 0,i,s,r,a):void 0,this._options=i,this.class=h&&o.k.asClassName(h)}run(){var e,t;let i=[];if((null===(e=this._options)||void 0===e?void 0:e.arg)&&(i=[...i,this._options.arg]),null===(t=this._options)||void 0===t?void 0:t.shouldForwardArgs){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];i=[...i,...s]}return this._commandService.executeCommand(this.id,...i)}};w=n=g([p(4,h.i6),p(5,d.H)],w);class S{constructor(e){this.desc=e}}function x(e){const t=new a.SL,i=new e,{f1:n,menu:s,keybinding:o,...r}=i.desc;if(d.P.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(t.add(d.P.registerCommand({id:r.id,handler:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return i.run(e,...n)},metadata:r.metadata})),Array.isArray(s))for(const a of s)t.add(C.appendMenuItem(a.id,{command:{...r,precondition:null===a.precondition?void 0:r.precondition},...a}));else s&&t.add(C.appendMenuItem(s.id,{command:{...r,precondition:null===s.precondition?void 0:r.precondition},...s}));if(n&&(t.add(C.appendMenuItem(_.CommandPalette,{command:r,when:r.precondition})),t.add(C.addCommand(r))),Array.isArray(o))for(const a of o)t.add(u.W.registerKeybindingRule({...a,id:r.id,when:r.precondition?h.Ao.and(r.precondition,a.when):a.when}));else o&&t.add(u.W.registerKeybindingRule({...o,id:r.id,when:r.precondition?h.Ao.and(r.precondition,o.when):o.when}));return t}},63826:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(87775).yh)("clipboardService")},94943:(e,t,i)=>{"use strict";i.d(t,{H:()=>l,P:()=>d});var n=i(39706),s=i(2706),o=i(53186),r=i(64450),a=i(47624);const l=(0,i(87775).yh)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const n of e.metadata.args)t.push(n.constraint);const i=e.handler;e.handler=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return(0,a.D8)(s,t),i(e,...s)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new r.S,this._commands.set(i,n));const s=n.unshift(e),l=(0,o.OF)((()=>{s();const e=this._commands.get(i);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return d.registerCommand(e,(function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return e.get(l).executeCommand(t,...n)}))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return s.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};d.registerCommand("noop",(()=>{}))},30600:(e,t,i)=>{"use strict";i.d(t,{KV:()=>o,Mt:()=>l,Od:()=>s,UI:()=>d,Ui:()=>n,xL:()=>r});const n=(0,i(87775).yh)("configurationService");function s(e,t){const i=Object.create(null);for(const n in e)o(i,n,e[n],t);return i}function o(e,t,i,n){const s=t.split("."),o=s.pop();let r=e;for(let l=0;l<s.length;l++){const e=s[l];let i=r[e];switch(typeof i){case"undefined":i=r[e]=Object.create(null);break;case"object":break;default:return void n(`Ignoring ${t} as ${s.slice(0,l+1).join(".")} is ${JSON.stringify(i)}`)}r=i}if("object"===typeof r&&null!==r)try{r[o]=i}catch(a){n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`)}else n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`)}function r(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const n=e[i];"object"!==typeof n||Array.isArray(n)||(a(n,t),0===Object.keys(n).length&&delete e[i])}}else delete e[i]}function l(e,t,i){const n=function(e,t){let i=e;for(const n of t){if("object"!==typeof i||null===i)return;i=i[n]}return i}(e,t.split("."));return"undefined"===typeof n?i:n}function d(e){return e.replace(/[\[\]]/g,"")}},49817:(e,t,i)=>{"use strict";i.d(t,{IP:()=>h,eU:()=>w,ny:()=>S});var n=i(51833),s=i(39706),o=i(47624),r=i(5887),a=i(30600),l=i(97830),d=i(76322);const h={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=d.B.as(l.I.JSONContribution);const b="\\[([^\\]]+)\\]",C=new RegExp(b,"g"),y=`^(${b})+$`,w=new RegExp(y);function S(e){const t=[];if(w.test(e)){let i=C.exec(e);for(;null===i||void 0===i?void 0:i.length;){const n=i[1].trim();n&&t.push(n),i=C.exec(e)}}return(0,n.EB)(t)}const x=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new s.Q5,this._onDidUpdateConfiguration=new s.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.registerConfigurations([e],t)}registerConfigurations(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:s,source:l}of e)for(const e in s)if(t.add(e),w.test(e)){const t=this.configurationDefaultsOverrides.get(e),d=null!==(i=null===t||void 0===t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(l)for(const i of Object.keys(s[e]))d.set(i,l);const h={...(null===t||void 0===t?void 0:t.value)||{},...s[e]};this.configurationDefaultsOverrides.set(e,{source:l,value:h,valuesSources:d});const c=(0,a.UI)(e),u={type:"object",default:h,description:r.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",c),$ref:_,defaultDefaultValue:h,source:o.HD(l)?void 0:l,defaultValueSource:l};n.push(...S(e)),this.configurationProperties[e]=u,this.defaultLanguageConfigurationOverridesNode.properties[e]=u}else{this.configurationDefaultsOverrides.set(e,{value:s[e],source:l});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,r=arguments.length>5?arguments[5]:void 0;var a;s=o.Jp(e.scope)?s:e.scope;const l=e.properties;if(l)for(const h in l){const e=l[h];t&&L(h,e)?delete l[h]:(e.source=i,e.defaultDefaultValue=l[h].default,this.updatePropertyDefaultValue(h,e),w.test(h)?e.scope=void 0:(e.scope=o.Jp(e.scope)?s:e.scope,e.restricted=o.Jp(e.restricted)?!!(null===n||void 0===n?void 0:n.includes(h)):e.restricted),!l[h].hasOwnProperty("included")||l[h].included?(this.configurationProperties[h]=l[h],(null===(a=l[h].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[h].policy.name,h),!l[h].deprecationMessage&&l[h].markdownDeprecationMessage&&(l[h].deprecationMessage=l[h].markdownDeprecationMessage),r.add(h)):(this.excludedConfigurationProperties[h]=l[h],delete l[h]))}const d=e.allOf;if(d)for(const o of d)this.validateAndRegisterProperties(o,t,i,n,s,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const n=e.allOf;null===n||void 0===n||n.forEach(t)};t(e)}updateSchema(e,t){switch(c.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),c.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};c.patternProperties[y]=e,u.patternProperties[y]=e,g.patternProperties[y]=e,p.patternProperties[y]=e,m.patternProperties[y]=e,f.patternProperties[y]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null===i||void 0===i?void 0:i.value,s=null===i||void 0===i?void 0:i.source;o.o8(n)&&(n=t.defaultDefaultValue,s=void 0),o.o8(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=s}};function L(e,t){var i,n,s,o;return e.trim()?w.test(e)?r.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==x.getConfigurationProperties()[e]?r.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==x.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?r.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(s=t.policy)||void 0===s?void 0:s.name,x.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:r.NC("config.property.empty","Cannot register an empty property")}d.B.add(h.Configuration,x)},47116:(e,t,i)=>{"use strict";i.d(t,{cP:()=>T,Ao:()=>x,i6:()=>q,uy:()=>K,Fb:()=>L,K8:()=>Y});var n=i(90388),s=i(78701),o=i(16015),r=i(5887);function a(){switch(arguments.length){case 1:return(0,r.NC)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",arguments.length<=0?void 0:arguments[0]);case 2:return(0,r.NC)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]);case 3:return(0,r.NC)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]);default:return}}const l=(0,r.NC)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,r.NC)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.L6)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}h._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),h._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var c=i(87775);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.dz),u.set("isLinux",n.IJ),u.set("isWindows",n.ED),u.set("isWeb",n.$L),u.set("isMacNative",n.dz&&!n.$L),u.set("isEdge",n.un),u.set("isFirefox",n.vU),u.set("isChrome",n.i7),u.set("isSafari",n.G6);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,r.NC)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,r.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,r.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,r.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,r.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,r.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,r.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),w=(0,r.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),D.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),null===e||void 0===e?void 0:e.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,s=i.lastIndexOf("/"),o=s===i.length-1?void 0:this._removeFlagsGY(i.substring(s+1));let r;try{r=new RegExp(i.substring(1,s),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(n,r)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let s=this._peek(),o=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:o++;break;case 1:o--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--}if(o<0)break;i.push(h.getLexeme(s)),this._advance(),s=this._peek()}const r=i.join(""),a=r.lastIndexOf("/"),l=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));let d;try{d=new RegExp(r.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(n,d)}case 18:{const t=e.lexeme;this._advance();let o=null;if(!(0,s.m5)(t)){const n=t.indexOf("/"),s=t.lastIndexOf("/");if(n!==s&&n>=0){const r=t.slice(n+1,s),a="i"===t[s+1]?"i":"";try{o=new RegExp(r,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===o)throw this._errExpectedButGot("REGEX",e);return W.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return x.notIn(n,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(n,e);switch(e){case"true":return x.has(n);case"false":return x.not(n);default:return x.equals(n,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(n,e);switch(e){case"true":return x.not(n);case"false":return x.has(n);default:return x.notEquals(n,e)}}case 5:return this._advance(),B.create(n,this._value());case 6:return this._advance(),V.create(n,this._value());case 7:return this._advance(),P.create(n,this._value());case 8:return this._advance(),F.create(n,this._value());case 13:return this._advance(),x.in(n,this._value());default:return x.has(n)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:w}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,r.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),s=t.offset,o=h.getLexeme(t);return this._parsingErrors.push({message:n,offset:s,lexeme:o,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}S._parseError=new Error;class x{static false(){return D.INSTANCE}static true(){return N.INSTANCE}static has(e){return E.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return A.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return M.create(e,t)}static not(e){return R.create(e)}static and(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return j.create(t,null,!0)}static or(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return U.create(t,null,!0)}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function L(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function k(e,t){return e.cmp(t)}x._parser=new S({regexParsingWithErrorRecovery:!1});class D{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}D.INSTANCE=new D;class N{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}N.INSTANCE=new N;class E{static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=u.get(e);return"boolean"===typeof i?i?N.INSTANCE:D.INSTANCE:new E(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:D.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class T{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("boolean"===typeof t)return t?E.create(e,i):R.create(e,i);const n=u.get(e);if("boolean"===typeof n){return t===(n?"true":"false")?N.INSTANCE:D.INSTANCE}return new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:D.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=M.create(this.key,this.valueKey)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class A{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("boolean"===typeof t)return t?R.create(e,i):E.create(e,i);const n=u.get(e);if("boolean"===typeof n){return t===(n?"true":"false")?D.INSTANCE:N.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?D.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class R{static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=u.get(e);return"boolean"===typeof i?i?D.INSTANCE:N.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?D.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):D.INSTANCE}class P{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class F{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(t,(t=>new V(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this)),this.negated}}class H{static create(e){return new H(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;i<n;i++){const n=e[i].substituteConstants();if(e[i]!==n&&null===t){t=[];for(let n=0;n<i;n++)t[n]=e[n]}null!==t&&(t[i]=n)}return null===t?e:t}class j{static create(e,t,i){return j._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=k(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=z(this.expr);return e===this.expr?this:j.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const n=[];let s=!1;for(const o of e)if(o)if(1!==o.type){if(0===o.type)return D.INSTANCE;6!==o.type?n.push(o):n.push(...o.expr)}else s=!0;if(0===n.length&&s)return N.INSTANCE;if(0!==n.length){if(1===n.length)return n[0];n.sort(k);for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];for(;n.length>1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),s=0===n.length,o=U.create(e.expr.map((e=>j.create([e,t],null,i))),null,s);o&&(n.push(o),n.sort(k))}if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return D.INSTANCE;if(1===n.length)return n[0]}return new j(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=k(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=z(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],s=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return N.INSTANCE;9!==i.type?n.push(i):n=n.concat(i.expr)}else s=!0}if(0===n.length&&s)return D.INSTANCE;n.sort(k)}if(0!==n.length){if(1===n.length)return n[0];for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return N.INSTANCE;if(1===n.length)return n[0]}return new U(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of Q(t))for(const t of Q(i))n.push(j.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class K extends E{static all(){return K._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?K._info.push({...i,key:e}):!0!==i&&K._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}K._info=[];const q=(0,c.yh)("contextKeyService");function $(e,t){return e<t?-1:e>t?1:0}function G(e,t,i,n){return e<i?-1:e>i?1:t<n?-1:t>n?1:0}function Y(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Z(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Y(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Z(t.expr,e.expr);for(const i of e.expr)if(Y(i,t))return!0;return!1}return e.equals(t)}function Z(e,t){let i=0,n=0;for(;i<e.length&&n<t.length;){const s=e[i].cmp(t[n]);if(s<0)return!1;0===s?(i++,n++):n++}return i===e.length}function Q(e){return 9===e.type?e.expr:[e]}},48495:(e,t,i)=>{"use strict";i.d(t,{Pf:()=>a,Ul:()=>d,cv:()=>r,d0:()=>l});var n=i(90388),s=i(5887),o=i(47116);new o.uy("isMac",n.dz,(0,s.NC)("isMac","Whether the operating system is macOS")),new o.uy("isLinux",n.IJ,(0,s.NC)("isLinux","Whether the operating system is Linux"));const r=new o.uy("isWindows",n.ED,(0,s.NC)("isWindows","Whether the operating system is Windows")),a=new o.uy("isWeb",n.$L,(0,s.NC)("isWeb","Whether the platform is a web browser")),l=(new o.uy("isMacNative",n.dz&&!n.$L,(0,s.NC)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new o.uy("isIOS",n.gn,(0,s.NC)("isIOS","Whether the operating system is iOS")),new o.uy("isMobile",n.tq,(0,s.NC)("isMobile","Whether the platform is a mobile web browser")),new o.uy("isDevelopment",!1,!0),new o.uy("productQualityType","",(0,s.NC)("productQualityType","Quality type of VS Code")),"inputFocus"),d=new o.uy(l,!1,(0,s.NC)("inputFocus","Whether keyboard focus is inside an input box"))},79086:(e,t,i)=>{"use strict";i.d(t,{i:()=>o,u:()=>s});var n=i(87775);const s=(0,n.yh)("contextViewService"),o=(0,n.yh)("contextMenuService")},21182:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(87775).yh)("dialogService")},90601:(e,t,i)=>{"use strict";i.d(t,{Ej:()=>o,Km:()=>s});var n=i(76322);const s={EDITORS:"CodeEditors",FILES:"CodeFiles"};n.B.add("workbench.contributions.dragAndDrop",new class{});class o{constructor(){}static getInstance(){return o.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}o.INSTANCE=new o},68664:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n});const n=(0,i(87775).yh)("environmentService")},35650:(e,t,i)=>{"use strict";i.d(t,{Yb:()=>N,Nq:()=>E,iX:()=>y});var n=i(22406),s=i(76595),o=i(81502),r=i(58799),a=i(7341),l=i(61542),d=i(39706),h=(i(69850),i(5887)),c=i(97133);const u=h.NC("defaultLabel","input"),g=h.NC("label.preserveCaseToggle","Preserve Case");class p extends o.Z{constructor(e){var t;super({icon:l.l.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,c.tM)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.${constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new d.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new d.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new d.Q5),this._onInput=this._register(new d.Q5),this._onKeyUp=this._register(new d.Q5),this._onPreserveCaseKeyDown=this._register(new d.Q5),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||u;const o=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,h=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.pG(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:h,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:o,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),s.zB.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),null===e||void 0===e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(47116),_=i(85412),v=i(53186),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=new f.uy("suggestWidgetVisible",!1,(0,h.NC)("suggestWidgetVisible","Whether suggestion are visible")),w="historyNavigationWidgetFocus",S="historyNavigationForwardsEnabled",x="historyNavigationBackwardsEnabled";let L;const k=[];function D(e,t){if(k.includes(t))throw new Error("Cannot register the same widget multiple times");k.push(t);const i=new v.SL,n=new f.uy(w,!1).bindTo(e),o=new f.uy(S,!0).bindTo(e),r=new f.uy(x,!0).bindTo(e),a=()=>{n.set(!0),L=t},l=()=>{n.set(!1),L===t&&(L=void 0)};return(0,s.H9)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,v.OF)((()=>{k.splice(k.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:r,dispose(){i.dispose()}}}let N=class extends n.V{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(D(s,this.inputBox))}};N=b([C(3,f.i6)],N);let E=class extends m{constructor(e,t,i,n){super(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4],i);const s=this._register(n.createScoped(this.inputBox.element));this._register(D(s,this.inputBox))}};E=b([C(3,f.i6)],E),_.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(x,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null===L||void 0===L||L.showPreviousValue()}}),_.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(S,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null===L||void 0===L||L.showNextValue()}})},82854:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>d,mQ:()=>h});var n=i(87775),s=i(53186),o=i(30600),r=i(76595),a=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},l=function(e,t){return function(i,n){t(i,n,e)}};const d=(0,n.yh)("hoverService");let h=class extends s.JT{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=n,this.hoverService=o,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new s.SL),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=e.target instanceof HTMLElement?[e.target]:e.target.targetElements;for(const o of n)this.hoverDisposables.add((0,r.mu)(o,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const s=e.content instanceof HTMLElement?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:s,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([l(3,o.Ui),l(4,d)],h)},46479:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},23026:(e,t,i)=>{"use strict";i.d(t,{d:()=>r,z:()=>o});var n=i(46479);const s=[];function o(e,t,i){t instanceof n.M||(t=new n.M(t,[],Boolean(i))),s.push([e,t])}function r(){return s}},87775:(e,t,i)=>{"use strict";var n;i.d(t,{I8:()=>n,TG:()=>s,yh:()=>o}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const s=o("instantiationService");function o(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,s){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}(t,e,s)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},45234:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(){this._entries=new Map;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(const[n,s]of t)this.set(n,s)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},97830:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(39706),s=i(76322);const o={JSONContribution:"base.contributions.json"};const r=new class{constructor(){this._onDidChangeSchema=new n.Q5,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};s.B.add(o.JSONContribution,r)},25371:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});const n=(0,i(87775).yh)("keybindingService")},85412:(e,t,i)=>{"use strict";i.d(t,{W:()=>h});var n=i(91811),s=i(90388),o=i(94943),r=i(76322),a=i(53186),l=i(64450);class d{constructor(){this._coreKeybindings=new l.S,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===s.OS){if(e&&e.win)return e.win}else if(2===s.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=d.bindToCurrentPlatform(e),i=new a.SL;if(t&&t.primary){const o=(0,n.Z9)(t.primary,s.OS);o&&i.add(this._registerDefaultKeybinding(o,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let o=0,r=t.secondary.length;o<r;o++){const r=t.secondary[o],a=(0,n.Z9)(r,s.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-o-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.F8)(this.registerKeybindingRule(e),o.P.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,s,o){const r=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:o,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.OF)((()=>{r(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)}}const h=new d;function c(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}r.B.add("platform.keybindingsRegistry",h)},60297:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});const n=(0,i(87775).yh)("labelService")},35412:(e,t,i)=>{"use strict";i.d(t,{Lw:()=>be,XN:()=>Ce,ls:()=>ft,CQ:()=>Le,PF:()=>gt,PS:()=>Ie,uJ:()=>Ae});var n=i(76595),s=i(51833),o=i(76946),r=i(39706),a=i(53186),l=(i(40753),i(69394));class d{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.JT.None}}renderElement(e,t,i,n){var s;if(null===(s=i.disposable)||void 0===s||s.dispose(),!i.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,i.data,n);const a=new o.A,l=r.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class c{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=()=>this.model,r=n.map((e=>new d(e,o)));this.list=new l.aV(e,t,i,r,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(o,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return r.ju.map(this.list.onMouseDblClick,(e=>{let{element:t,index:i,browserEvent:n}=e;return{element:void 0===t?void 0:this._model.get(t),index:i,browserEvent:n}}))}get onPointer(){return r.ju.map(this.list.onPointer,(e=>{let{element:t,index:i,browserEvent:n}=e;return{element:void 0===t?void 0:this._model.get(t),index:i,browserEvent:n}}))}get onDidChangeSelection(){return r.ju.map(this.list.onDidChangeSelection,(e=>{let{elements:t,indexes:i,browserEvent:n}=e;return{elements:t.map((e=>this._model.get(e))),indexes:i,browserEvent:n}}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,s.w6)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(97133),g=i(71371),p=i(41090);class m{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const s of e){const e=n.get(s.templateId);if(!e)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],s=[];for(let r=0;r<this.columns.length;r++){const e=this.renderers[r],o=(0,n.R3)(t,(0,n.$)(".monaco-table-td",{"data-col-index":r}));o.style.width=`${this.getColumnSize(r)}px`,i.push(o),s.push(e.renderTemplate(o))}const o={container:e,cellContainers:i,cellTemplateData:s};return this.renderedTemplates.add(o),o}renderElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){const o=this.columns[s].project(e);this.renderers[s].renderElement(o,t,i.cellTemplateData[s],n)}}disposeElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){const o=this.renderers[s];if(o.disposeElement){const r=this.columns[s].project(e);o.disposeElement(r,t,i.cellTemplateData[s],n)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,n.PO)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}m.TemplateId="row";class f extends a.JT{get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:r.ju.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new r.Q5,this.onDidLayout=this._onDidLayout.event,this.element=(0,n.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,g.g)((0,u.tM)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(e,t,i,s,o,d){this.virtualDelegate=i,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.SL,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,n.R3)(t,(0,n.$)(`.monaco-table.${this.domId}`));const h=s.map(((e,t)=>this.disposables.add(new f(e,t)))),c={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:c})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(s,o,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new l.aV(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],d)),r.ju.any(...h.map((e=>e.onDidLayout)))((e=>{let[t,i]=e;return u.layoutColumn(t,i)}),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=s.reduce(((e,t)=>e+t.weight),0),i=s[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style(l.uZ)}updateOptions(e){this.list.updateOptions(e)}splice(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}_.InstanceCount=0;var v=i(47213),b=i(23252),C=i(5572),y=i(73337),w=i(2706);class S{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new C.X(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;const n=new Set,s=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{var t;if(null===e.element)return;const o=e;if(n.add(o.element),this.nodes.set(o.element,o),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();s.add(e),this.nodesByIdentity.set(e,o)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,o)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const o=e;if(n.has(o.element)||this.nodes.delete(o.element),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();s.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,o)}})}preserveCollapseState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.$.empty();return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),w.$.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===y.kn.Collapsed||e.collapsed===y.kn.PreserveOrCollapsed||e.collapsed!==y.kn.Expanded&&e.collapsed!==y.kn.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let n;return n="undefined"===typeof e.collapsed||e.collapsed===y.kn.PreserveOrCollapsed||e.collapsed===y.kn.PreserveOrExpanded?t.collapsed:e.collapsed===y.kn.Collapsed||e.collapsed!==y.kn.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new y.ac(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function x(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:w.$.map(w.$.from(e.children),x),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e){const t=[e.element],i=e.incompressible||!1;let n,s;for(;[s,n]=w.$.consume(w.$.from(e.children),2),1===s.length&&!s[0].incompressible;)e=s[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:w.$.map(w.$.concat(s,n),L),collapsible:e.collapsible,collapsed:e.collapsed}}function k(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=i<e.element.elements.length-1?[k(e,i+1)]:w.$.map(w.$.from(e.children),(e=>k(e,0))),0===i&&e.element.incompressible?{element:e.element.elements[i],children:t,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[i],children:t,collapsible:e.collapsible,collapsed:e.collapsed}}function D(e){return k(e,0)}function N(e,t,i){return e.element===t?{...e,children:i}:{...e,children:w.$.map(w.$.from(e.children),(e=>N(e,t,i)))}}class E{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new S(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;const n=i.diffIdentityProvider&&(o=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>o.getId(e).toString())).join("\0")});var o;if(null===e){const e=w.$.map(t,this.enabled?L:x);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new y.ac(this.user,"Unknown compressed tree node");const a=this.model.getNode(r),l=this.model.getParentNodeLocation(r),d=this.model.getNode(l),h=N(D(a),e,t),c=(this.enabled?L:x)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,s.fS)(c.element.elements,a.element.elements,u))return void this._setChildren(r,c.children||w.$.empty(),{diffIdentityProvider:n,diffDepth:1});const g=d.children.map((e=>e===a?c:e));this._setChildren(d.element,g,{diffIdentityProvider:n,diffDepth:a.depth-d.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=w.$.map(t,D),n=w.$.map(i,e?L:x);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new y.ac(this.user,`Tree element not found: ${e}`);return t}}const T=e=>e[e.length-1];class I{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new I(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class M{get onDidSplice(){return r.ju.map(this.model.onDidSplice,(e=>{let{insertedNodes:t,deletedNodes:i}=e;return{insertedNodes:t.map((e=>this.nodeMapper.map(e))),deletedNodes:i.map((e=>this.nodeMapper.map(e)))}}))}get onDidChangeCollapseState(){return r.ju.map(this.model.onDidChangeCollapseState,(e=>{let{node:t,deep:i}=e;return{node:this.nodeMapper.map(t),deep:i}}))}get onDidChangeRenderNodeCount(){return r.ju.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.rootRef=null,this.elementMapper=i.elementMapper||T;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new y.VA((e=>new I(n,e))),this.model=new E(e,function(e,t){return{splice(i,n,s){t.splice(i,n,s.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}}}(n,i))}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.model.getNode(e)}}var A=i(21150),R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class O extends v.CH{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n){super(e,t,i,n,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}),this.user=e}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new S(e,t,i)}}class P{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let s=this.stickyScrollDelegate.getCompressedNode(e);s||(s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===s.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,o,r,a;i.compressedTreeNode?null===(o=(s=this.renderer).disposeCompressedElements)||void 0===o||o.call(s,i.compressedTreeNode,t,i.data,n):null===(a=(r=this.renderer).disposeElement)||void 0===a||a.call(r,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}R([A.H],P.prototype,"compressedTreeNodeProvider",null);class F{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;n<e.length;n++){const s=e[n],o=s.position+s.height;if(n+1<e.length&&o+e[n+1].height>i||n>=t-1&&t<e.length){const t=e.slice(0,n),i=e.slice(n);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");if(!this.modelProvider().isCompressionEnabled())return e[0];const t=[];for(const a of e){const e=this.modelProvider().getCompressedTreeNode(a.node.element);if(e.element){if(e.element.incompressible)break;t.push(...e.element.elements)}}if(t.length<2)return e[0];const i=e[e.length-1],n={elements:t,incompressible:!1},s={...i.node,children:[],element:n},o=new Proxy(e[0].node,{}),r={node:o,startIndex:e[0].startIndex,endIndex:i.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,s),r}}function B(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(s){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}}}class V extends O{constructor(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=()=>this,r=new F((()=>this.model));super(e,t,i,n.map((e=>new P(o,r,e))),{...B(o,s),stickyScrollDelegate:r})}setChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.$.empty(),i=arguments.length>2?arguments[2]:void 0;this.model.setChildren(e,t,i)}createModel(e,t,i){return new M(e,t,i)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.model.getCompressedTreeNode(e)}}var W=i(53372),H=i(61542),z=i(73045),j=i(16015),U=i(47624);function K(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function q(e,t){return!!t.parent&&(t.parent===e||q(e,t.parent))}class ${get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new $(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class G{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...z.k.asClassNameArray(H.l.treeItemLoading)),!0):(t.classList.remove(...z.k.asClassNameArray(H.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function Y(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Z(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Q extends b.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function X(e){return e instanceof b.kX?new Q(e):e}class J{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,X(e),t)}onDragOver(e,t,i,n,s){return this.dnd.onDragOver(X(e),t&&t.element,i,n,s)}drop(e,t,i,n,s){this.dnd.drop(X(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return r.ju.map(this.tree.onDidChangeFocus,Y)}get onDidChangeSelection(){return r.ju.map(this.tree.onDidChangeSelection,Y)}get onMouseDblClick(){return r.ju.map(this.tree.onMouseDblClick,Z)}get onPointer(){return r.ju.map(this.tree.onPointer,Z)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.Q5,this._onDidChangeNodeSlowState=new r.Q5,this.nodeMapper=new y.VA((e=>new $(e))),this.disposables=new a.SL,this.identityProvider=o.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.getDefaultCollapseState=e=>o.collapseByDefault?o.collapseByDefault(e)?y.kn.PreserveOrCollapsed:y.kn.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,o),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=K({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,s){const o=new v.cz(i),r=n.map((e=>new G(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(s)||{};return new O(e,t,o,r,a)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if("undefined"===typeof this.root.element)throw new y.ac(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event));const o=this.getDataNode(e);if(await this.refreshAndRenderNode(o,t,n,s),i)try{this.tree.rerender(o)}catch(a){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element;const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"===typeof this.root.element)throw new y.ac(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await r.ju.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root.element;const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new y.ac(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n)}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach(((s,o)=>{!n&&function(e,t){return e===t||q(e,t)||q(t,e)}(o,e)&&(n=s.then((()=>this.refreshNode(e,t,i))))})),n)return n;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await W.jT.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,U.TW)(t))n=Promise.resolve(t);else{const i=(0,W.Vs)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(w.$.empty());try{const s=await n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,j.n2)(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,U.TW)(i)?this.processChildren(i):(t=(0,W.PG)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState(e){let{node:t,deep:i}=e;null!==t.element&&!t.collapsed&&t.element.stale&&(i?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(j.dL))}setChildren(e,t,i,n){const s=[...t];if(0===e.children.length&&0===s.length)return[];const o=new Map,r=new Map;for(const d of e.children)o.set(d.element,d),this.identityProvider&&r.set(d.id,{node:d,collapsed:this.tree.hasElement(d)&&this.tree.isCollapsed(d)});const a=[],l=s.map((t=>{const s=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=K({element:t,parent:e,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&i.defaultCollapseState===y.kn.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),d=r.get(l);if(d){const e=d.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=s,i?d.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):s&&!d.collapsed&&a.push(e),e}const h=K({element:t,parent:e,id:l,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(h),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(h),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||s&&h.defaultCollapseState===y.kn.PreserveOrExpanded)&&a.push(h),h}));for(const d of o.values())te(d,(e=>this.nodes.delete(e.element)));for(const d of l)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),s=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?w.$.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class ne{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new ne(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class se{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...z.k.asClassNameArray(H.l.treeItemLoading)),!0):(t.classList.remove(...z.k.asClassNameArray(H.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeCompressedElements)||void 0===o||o.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.B9)(this.disposables)}}class oe extends ie{constructor(e,t,i,n,s,o){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};super(e,t,i,s,o,r),this.compressionDelegate=n,this.compressibleNodeMapper=new y.VA((e=>new ne(e))),this.filter=r.filter}createTree(e,t,i,n,s){const o=new v.cz(i),r=n.map((e=>new se(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(s)||{};return new V(e,t,o,r,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),s=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},o=s(this.tree.getSelection()),r=s(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let l=!1;const d=this.getFocus();let h=!1;const c=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=n(t.elements[i].element),s=t.elements[t.elements.length-1].element;o.has(e)&&-1===a.indexOf(s)&&(a.push(s),l=!0),r.has(e)&&-1===d.indexOf(s)&&(d.push(s),h=!0)}e.children.forEach(c)};c(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),h&&this.setFocus(d)}processChildren(e){return this.filter&&(e=w.$.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(n=t)?n?1:0:(0,C.gB)(n)?(0,C.aG)(n.visibility):(0,C.aG)(n);var n;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class re extends v.CH{constructor(e,t,i,n,s){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};super(e,t,i,n,o),this.user=e,this.dataSource=s,this.identityProvider=o.identityProvider}createModel(e,t,i){return new S(e,t,i)}}var ae=i(5887),le=i(30600),de=i(49817),he=i(47116),ce=i(48495),ue=i(79086),ge=i(87775),pe=i(25371),me=i(76322),fe=i(93617),_e=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ve=function(e,t){return function(i,n){t(i,n,e)}};const be=(0,ge.yh)("listService");class Ce{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new l.wD((0,n.dS)(),"").style(fe.O2)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,n.H9)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.F8)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.OF)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const ye=new he.uy("listScrollAtBoundary","none"),we=(he.Ao.or(ye.isEqualTo("top"),ye.isEqualTo("both")),he.Ao.or(ye.isEqualTo("bottom"),ye.isEqualTo("both")),new he.uy("listFocus",!0)),Se=new he.uy("treestickyScrollFocused",!1),xe=new he.uy("listSupportsMultiselect",!0),Le=he.Ao.and(we,he.Ao.not(ce.d0),Se.negate()),ke=new he.uy("listHasSelectionOrFocus",!1),De=new he.uy("listDoubleSelection",!1),Ne=new he.uy("listMultiSelection",!1),Ee=new he.uy("listSelectionNavigation",!1),Te=new he.uy("listSupportsFind",!0),Ie=new he.uy("treeElementCanCollapse",!1),Me=new he.uy("treeElementHasParent",!1),Ae=new he.uy("treeElementCanExpand",!1),Re=new he.uy("treeElementHasChild",!1),Oe=new he.uy("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Be(e,t){const i=e.createScoped(t.getHTMLElement());return we.bindTo(i),i}function Ve(e,t){const i=ye.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const We="workbench.list.multiSelectModifier",He="workbench.list.openMode",ze="workbench.list.horizontalScrolling",je="workbench.list.defaultFindMode",Ue="workbench.list.typeNavigationMode",Ke="workbench.list.keyboardNavigation",qe="workbench.list.scrollByPage",$e="workbench.list.defaultFindMatchType",Ge="workbench.tree.indent",Ye="workbench.tree.renderIndentGuides",Ze="workbench.list.smoothScrolling",Qe="workbench.list.mouseWheelScrollSensitivity",Xe="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(We)}class nt extends a.JT{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.Zo)(e)}isSelectionRangeChangeEvent(e){return(0,l.wn)(e)}}function st(e,t){var i;const n=e.get(le.Ui),s=e.get(pe.d),o=new a.SL;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(n.getValue(Ze)),mouseWheelScrollSensitivity:n.getValue(Qe),fastScrollSensitivity:n.getValue(Xe),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:o.add(new nt(n)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(n.getValue(qe))},o]}let ot=class extends l.aV{constructor(e,t,i,n,s,o,r,a,l){const d="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(a.getValue(ze)),[h,c]=l.invokeFunction(st,s);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(c),this.contextKeyService=Be(o,this),this.disposables.add(Ve(this.contextKeyService,this)),this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.listDoubleSelection=De.bindTo(this.contextKeyService),this.listMultiSelection=Ne.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(qe)){const e=Boolean(a.getValue(qe));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ze)){const e=Boolean(a.getValue(Ze));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Qe)){const e=a.getValue(Qe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new dt(this,{configurationService:a,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.TU)(e):fe.O2)}};ot=_e([ve(5,he.i6),ve(6,be),ve(7,le.Ui),ve(8,ge.TG)],ot);let rt=class extends c{constructor(e,t,i,n,s,o,r,l,d){const h="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(l.getValue(ze)),[c,u]=d.invokeFunction(st,s);super(e,t,i,n,{keyboardSupport:!1,...c,horizontalScrolling:h}),this.disposables=new a.SL,this.disposables.add(u),this.contextKeyService=Be(o,this),this.disposables.add(Ve(this.contextKeyService,this.widget)),this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(qe)){const e=Boolean(l.getValue(qe));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ze)){const e=Boolean(l.getValue(Ze));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Qe)){const e=l.getValue(Qe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new dt(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.TU)(e):fe.O2)}dispose(){this.disposables.dispose(),super.dispose()}};rt=_e([ve(5,he.i6),ve(6,be),ve(7,le.Ui),ve(8,ge.TG)],rt);let at=class extends _{constructor(e,t,i,n,s,o,r,a,l,d){const h="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(ze)),[c,u]=d.invokeFunction(st,o);super(e,t,i,n,s,{keyboardSupport:!1,...c,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Be(r,this),this.disposables.add(Ve(this.contextKeyService,this)),this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.listDoubleSelection=De.bindTo(this.contextKeyService),this.listMultiSelection=Ne.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(qe)){const e=Boolean(l.getValue(qe));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ze)){const e=Boolean(l.getValue(Ze));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Qe)){const e=l.getValue(Qe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.TU)(e):fe.O2)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.i6),ve(7,be),ve(8,le.Ui),ve(9,ge.TG)],at);class lt extends a.JT{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new r.Q5),this.onDidOpen=this._onDidOpen.event,this._register(r.ju.filter(this.widget.onDidChangeSelection,(e=>(0,n.vd)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(He)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(He)&&(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(He)))})))):this.openOnSingleClick=null===(i=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,n="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,s){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class dt extends lt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends lt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ct extends lt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let gt=class extends O{constructor(e,t,i,n,s,o,r,a,l){const{options:d,getTypeNavigationMode:h,disposable:c}=o.invokeFunction(Ct,s);super(e,t,i,n,d),this.disposables.add(c),this.internals=new yt(this,s,h,s.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge.TG),ve(6,he.i6),ve(7,be),ve(8,le.Ui)],gt);let pt=class extends V{constructor(e,t,i,n,s,o,r,a,l){const{options:d,getTypeNavigationMode:h,disposable:c}=o.invokeFunction(Ct,s);super(e,t,i,n,d),this.disposables.add(c),this.internals=new yt(this,s,h,s.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge.TG),ve(6,he.i6),ve(7,be),ve(8,le.Ui)],pt);let mt=class extends re{constructor(e,t,i,n,s,o,r,a,l,d){const{options:h,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Ct,o);super(e,t,i,n,s,h),this.disposables.add(u),this.internals=new yt(this,o,c,o.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge.TG),ve(7,he.i6),ve(8,be),ve(9,le.Ui)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,s,o,r,a,l,d){const{options:h,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Ct,o);super(e,t,i,n,s,h),this.disposables.add(u),this.internals=new yt(this,o,c,o.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge.TG),ve(7,he.i6),ve(8,be),ve(9,le.Ui)],ft);let _t=class extends oe{constructor(e,t,i,n,s,o,r,a,l,d,h){const{options:c,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Ct,r);super(e,t,i,n,s,o,c),this.disposables.add(g),this.internals=new yt(this,r,u,r.overrideStyles,l,d,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(je);if("highlight"===t)return v.sZ.Highlight;if("filter"===t)return v.sZ.Filter;const i=e.getValue(Ke);return"simple"===i||"highlight"===i?v.sZ.Highlight:"filter"===i?v.sZ.Filter:void 0}function bt(e){const t=e.getValue($e);return"fuzzy"===t?v.Zd.Fuzzy:"contiguous"===t?v.Zd.Contiguous:void 0}function Ct(e,t){var i;const n=e.get(le.Ui),s=e.get(ue.u),o=e.get(he.i6),r=e.get(ge.TG),a=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(ze)),[d,h]=r.invokeFunction(st,t),c=t.paddingBottom,u=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(Ye);return{getTypeNavigationMode:()=>{const e=o.getContextKeyValue(Pe);if("automatic"===e)return l.AA.Automatic;if("trigger"===e)return l.AA.Trigger;if(!1===o.getContextKeyValue(Fe))return l.AA.Trigger;const t=n.getValue(Ue);return"automatic"===t?l.AA.Automatic:"trigger"===t?l.AA.Trigger:void 0},disposable:h,options:{keyboardSupport:!1,...d,indent:"number"===typeof n.getValue(Ge)?n.getValue(Ge):void 0,renderIndentGuides:u,smoothScrolling:Boolean(n.getValue(Ze)),defaultFindMode:vt(n),defaultFindMatchType:bt(n),horizontalScrolling:a,scrollByPage:Boolean(n.getValue(qe)),paddingBottom:c,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.uX,enableStickyScroll:Boolean(n.getValue(et)),stickyScrollMaxItemCount:Number(n.getValue(tt))}}}_t=_e([ve(7,ge.TG),ve(8,he.i6),ve(9,be),ve(10,le.Ui)],_t);let yt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,s,o,r){var a;this.tree=e,this.disposables=[],this.contextKeyService=Be(s,e),this.disposables.push(Ve(this.contextKeyService,e)),this.listSupportsMultiSelect=xe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);Ee.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Te.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.hasDoubleSelection=De.bindTo(this.contextKeyService),this.hasMultiSelection=Ne.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ie.bindTo(this.contextKeyService),this.treeElementHasParent=Me.bindTo(this.contextKeyService),this.treeElementCanExpand=Ae.bindTo(this.contextKeyService),this.treeElementHasChild=Re.bindTo(this.contextKeyService),this.treeFindOpen=Oe.bindTo(this.contextKeyService),this.treeStickyScrollFocused=Se.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(r),this.updateStyleOverrides(n);const l=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},d=new Set;d.add(Pe),d.add(Fe),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),l()})),e.onDidChangeCollapseState(l),e.onDidChangeModel(l),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),r.onDidChangeConfiguration((n=>{let s={};if(n.affectsConfiguration(We)&&(this._useAltAsMultipleSelectionModifier=it(r)),n.affectsConfiguration(Ge)){const e=r.getValue(Ge);s={...s,indent:e}}if(n.affectsConfiguration(Ye)&&void 0===t.renderIndentGuides){const e=r.getValue(Ye);s={...s,renderIndentGuides:e}}if(n.affectsConfiguration(Ze)){const e=Boolean(r.getValue(Ze));s={...s,smoothScrolling:e}}if(n.affectsConfiguration(je)||n.affectsConfiguration(Ke)){const e=vt(r);s={...s,defaultFindMode:e}}if(n.affectsConfiguration(Ue)||n.affectsConfiguration(Ke)){const e=i();s={...s,typeNavigationMode:e}}if(n.affectsConfiguration($e)){const e=bt(r);s={...s,defaultFindMatchType:e}}if(n.affectsConfiguration(ze)&&void 0===t.horizontalScrolling){const e=Boolean(r.getValue(ze));s={...s,horizontalScrolling:e}}if(n.affectsConfiguration(qe)){const e=Boolean(r.getValue(qe));s={...s,scrollByPage:e}}if(n.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(s={...s,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(Je)}),n.affectsConfiguration(et)){const e=r.getValue(et);s={...s,enableStickyScroll:e}}if(n.affectsConfiguration(tt)){const e=Math.max(1,r.getValue(tt));s={...s,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(Qe)){const e=r.getValue(Qe);s={...s,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(Xe)){const e=r.getValue(Xe);s={...s,fastScrollSensitivity:e}}Object.keys(s).length>0&&e.updateOptions(s)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new ct(e,{configurationService:r,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.TU)(e):fe.O2)}dispose(){this.disposables=(0,a.B9)(this.disposables)}};yt=_e([ve(4,he.i6),ve(5,be),ve(6,le.Ui)],yt);me.B.as(de.IP.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.NC)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[We]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.NC)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.NC)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.NC)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[He]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.NC)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[ze]:{type:"boolean",default:!1,description:(0,ae.NC)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[qe]:{type:"boolean",default:!1,description:(0,ae.NC)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[Ge]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.NC)("tree indent setting","Controls tree indentation in pixels.")},[Ye]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.NC)("render tree indent guides","Controls whether the tree should render indent guides.")},[Ze]:{type:"boolean",default:!1,description:(0,ae.NC)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Qe]:{type:"number",default:1,markdownDescription:(0,ae.NC)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Xe]:{type:"number",default:5,markdownDescription:(0,ae.NC)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[je]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.NC)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.NC)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.NC)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[Ke]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.NC)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.NC)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.NC)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.NC)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.NC)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[$e]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.NC)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.NC)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.NC)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.NC)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[et]:{type:"boolean",default:!0,description:(0,ae.NC)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.NC)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[Ue]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.NC)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},33454:(e,t,i)=>{"use strict";i.d(t,{VZ:()=>r,in:()=>a,kw:()=>h,qA:()=>c});var n=i(39706),s=i(53186),o=i(47116);const r=(0,i(87775).yh)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const l=a.Info;class d extends s.JT{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new n.Q5),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];super(),this.useColors=t,this.setLevel(e)}trace(e){if(this.checkLogLevel(a.Trace)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%cTRACE","color: #888",e,...i):console.log(e,...i)}}debug(e){if(this.checkLogLevel(a.Debug)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...i):console.log(e,...i)}}info(e){if(this.checkLogLevel(a.Info)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%c INFO","color: #33f",e,...i):console.log(e,...i)}}warn(e){if(this.checkLogLevel(a.Warning)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%c WARN","color: #993",e,...i):console.log(e,...i)}}error(e){if(this.checkLogLevel(a.Error)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.useColors?console.log("%c ERR","color: #f33",e,...i):console.error(e,...i)}}}class c extends d{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.trace(e,...i)}debug(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.debug(e,...i)}info(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.info(e,...i)}warn(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.warn(e,...i)}error(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(const s of this.loggers)s.error(e,...i)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new o.uy("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},76390:(e,t,i)=>{"use strict";i.d(t,{H0:()=>s,ZL:()=>n,lT:()=>l});var n,s,o=i(28889),r=i(5887),a=i(87775);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,r.NC)("sev.error","Error"),t[e.Warning]=(0,r.NC)("sev.warning","Warning"),t[e.Info]=(0,r.NC)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case o.Z.Error:return e.Error;case o.Z.Warning:return e.Warning;case o.Z.Info:return e.Info;case o.Z.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return o.Z.Error;case e.Warning:return o.Z.Warning;case e.Info:return o.Z.Info;case e.Hint:return o.Z.Ignore}}}(n||(n={})),function(e){const t="";function i(e,i){const s=[t];return e.source?s.push(e.source.replace("\xa6","\\\xa6")):s.push(t),e.code?"string"===typeof e.code?s.push(e.code.replace("\xa6","\\\xa6")):s.push(e.code.value.replace("\xa6","\\\xa6")):s.push(t),void 0!==e.severity&&null!==e.severity?s.push(n.toString(e.severity)):s.push(t),e.message&&i?s.push(e.message.replace("\xa6","\\\xa6")):s.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?s.push(e.startLineNumber.toString()):s.push(t),void 0!==e.startColumn&&null!==e.startColumn?s.push(e.startColumn.toString()):s.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?s.push(e.endLineNumber.toString()):s.push(t),void 0!==e.endColumn&&null!==e.endColumn?s.push(e.endColumn.toString()):s.push(t),s.push(t),s.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(s||(s={}));const l=(0,a.yh)("markerService")},61758:(e,t,i)=>{"use strict";i.d(t,{EO:()=>a,lT:()=>r,zb:()=>o});var n=i(28889),s=i(87775),o=n.Z;const r=(0,s.yh)("notificationService");class a{}},34912:(e,t,i)=>{"use strict";i.d(t,{v:()=>n,x:()=>s});const n=(0,i(87775).yh)("openerService");function s(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},97757:(e,t,i)=>{"use strict";i.d(t,{Ex:()=>o,R9:()=>s,ek:()=>r});var n=i(87775);const s=(0,n.yh)("progressService");Object.freeze({total(){},worked(){},done(){}});class o{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}o.None=Object.freeze({report(){}});const r=(0,n.yh)("editorProgressService")},99009:(e,t,i)=>{"use strict";i.d(t,{IP:()=>a,Ry:()=>n});var n,s=i(51833),o=i(53186),r=i(76322);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.B.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,o.OF)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,s.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},2033:(e,t,i)=>{"use strict";i.d(t,{Jq:()=>o,X5:()=>s,eJ:()=>a,jG:()=>r});var n=i(87775);const s={ctrlCmd:!1,alt:!1};var o,r;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(o||(o={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={}));new class{constructor(e){this.options=e}};const a=(0,n.yh)("quickInputService")},76322:(e,t,i)=>{"use strict";i.d(t,{B:()=>o});var n=i(56702),s=i(47624);const o=new class{constructor(){this.data=new Map}add(e,t){n.ok(s.HD(e)),n.ok(s.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},87650:(e,t,i)=>{"use strict";i.d(t,{Uy:()=>p,vm:()=>_,fk:()=>m});var n,s,o=i(39706),r=i(53186),a=i(47624),l=i(53372),d=i(33080);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(s||(s={}));class h extends r.JT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o.K3),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=s.None,this.cache=new Map,this.flushDelayer=this._register(new l.rH(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===s.Closed)return;let i=!1;if((0,a.Jp)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.Jp)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:parseInt(i,10)}async set(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.state===s.Closed)return;if((0,a.Jp)(t))return this.delete(e,i);const n=(0,a.Kn)(t)||Array.isArray(t)?(0,d.Pz)(t):String(t);return this.cache.get(e)!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.state===s.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===n.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}h.DEFAULT_FLUSH_DELAY=100;class c{constructor(){this.onDidChangeItemsExternal=o.ju.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}var u=i(87775);const g="__$__targetStorageMarker",p=(0,u.yh)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends r.JT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flushInterval:f.DEFAULT_FLUSH_INTERVAL};super(),this.options=e,this._onDidChangeValue=this._register(new o.K3),this._onDidChangeTarget=this._register(new o.K3),this._onWillSaveState=this._register(new o.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return o.ju.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,a.Jp)(t)?this.remove(e,i,s):this.withPausedEmitters((()=>{var o;this.updateKeyTarget(e,i,n),null===(o=this.getStorage(i))||void 0===o||o.set(e,t,s)}))}remove(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var s,o;const r=this.getKeyTargets(t);"number"===typeof i?r[e]!==i&&(r[e]=i,null===(s=this.getStorage(t))||void 0===s||s.set(g,JSON.stringify(r),n)):"number"===typeof r[e]&&(delete r[e],null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(r),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}f.DEFAULT_FLUSH_INTERVAL=6e4;class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},57823:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(87775).yh)("telemetryService")},93617:(e,t,i)=>{"use strict";i.d(t,{BM:()=>p,Hc:()=>d,O2:()=>u,TU:()=>g,ZR:()=>m,b5:()=>a,eO:()=>o,ku:()=>c,pl:()=>l,uX:()=>h,wG:()=>r});var n=i(6009),s=i(63932);const o={keybindingLabelBackground:(0,n.n_1)(n.oQ$),keybindingLabelForeground:(0,n.n_1)(n.lWp),keybindingLabelBorder:(0,n.n_1)(n.AWI),keybindingLabelBottomBorder:(0,n.n_1)(n.K19),keybindingLabelShadow:(0,n.n_1)(n.rh)},r={buttonForeground:(0,n.n_1)(n.j5u),buttonSeparator:(0,n.n_1)(n.iFQ),buttonBackground:(0,n.n_1)(n.b7$),buttonHoverBackground:(0,n.n_1)(n.GO4),buttonSecondaryForeground:(0,n.n_1)(n.qBU),buttonSecondaryBackground:(0,n.n_1)(n.ESD),buttonSecondaryHoverBackground:(0,n.n_1)(n.xEn),buttonBorder:(0,n.n_1)(n.GYc)},a={progressBarBackground:(0,n.n_1)(n.zRJ)},l={inputActiveOptionBorder:(0,n.n_1)(n.PRb),inputActiveOptionForeground:(0,n.n_1)(n.Pvw),inputActiveOptionBackground:(0,n.n_1)(n.XEs)},d=((0,n.n_1)(n.SUp),(0,n.n_1)(n.nd),(0,n.n_1)(n.BQ0),(0,n.n_1)(n.D0T),(0,n.n_1)(n.Hfx),(0,n.n_1)(n.rh),(0,n.n_1)(n.lRK),(0,n.n_1)(n.JpG),(0,n.n_1)(n.BOY),(0,n.n_1)(n.OLZ),(0,n.n_1)(n.url),{inputBackground:(0,n.n_1)(n.sEe),inputForeground:(0,n.n_1)(n.zJb),inputBorder:(0,n.n_1)(n.dt_),inputValidationInfoBorder:(0,n.n_1)(n.EPQ),inputValidationInfoBackground:(0,n.n_1)(n._lC),inputValidationInfoForeground:(0,n.n_1)(n.YI3),inputValidationWarningBorder:(0,n.n_1)(n.C3g),inputValidationWarningBackground:(0,n.n_1)(n.RV_),inputValidationWarningForeground:(0,n.n_1)(n.SUG),inputValidationErrorBorder:(0,n.n_1)(n.OZR),inputValidationErrorBackground:(0,n.n_1)(n.paE),inputValidationErrorForeground:(0,n.n_1)(n._t9)}),h={listFilterWidgetBackground:(0,n.n_1)(n.vGG),listFilterWidgetOutline:(0,n.n_1)(n.oSI),listFilterWidgetNoMatchesOutline:(0,n.n_1)(n.Saq),listFilterWidgetShadow:(0,n.n_1)(n.y65),inputBoxStyles:d,toggleStyles:l},c={badgeBackground:(0,n.n_1)(n.g8u),badgeForeground:(0,n.n_1)(n.qeD),badgeBorder:(0,n.n_1)(n.lRK)},u=((0,n.n_1)(n.ixd),(0,n.n_1)(n.l80),(0,n.n_1)(n.H6q),(0,n.n_1)(n.H6q),(0,n.n_1)(n.fSI),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.n_1)(n._bK),listFocusForeground:(0,n.n_1)(n._2n),listFocusOutline:(0,n.n_1)(n.Oop),listActiveSelectionBackground:(0,n.n_1)(n.dCr),listActiveSelectionForeground:(0,n.n_1)(n.M6C),listActiveSelectionIconForeground:(0,n.n_1)(n.Tnx),listFocusAndSelectionOutline:(0,n.n_1)(n.Bqu),listFocusAndSelectionBackground:(0,n.n_1)(n.dCr),listFocusAndSelectionForeground:(0,n.n_1)(n.M6C),listInactiveSelectionBackground:(0,n.n_1)(n.rg2),listInactiveSelectionIconForeground:(0,n.n_1)(n.kvU),listInactiveSelectionForeground:(0,n.n_1)(n.ytC),listInactiveFocusBackground:(0,n.n_1)(n.s$),listInactiveFocusOutline:(0,n.n_1)(n.F3d),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listDropOverBackground:(0,n.n_1)(n.pdn),listDropBetweenBackground:(0,n.n_1)(n.XVp),listSelectionOutline:(0,n.n_1)(n.xL1),listHoverOutline:(0,n.n_1)(n.xL1),treeIndentGuidesStroke:(0,n.n_1)(n.UnT),treeInactiveIndentGuidesStroke:(0,n.n_1)(n.KjV),tableColumnsBorder:(0,n.n_1)(n.uxu),tableOddRowsBackgroundColor:(0,n.n_1)(n.EQn)});function g(e){return function(e,t){const i={...t};for(const s in e){const t=e[s];i[s]=void 0!==t?(0,n.n_1)(t):void 0}return i}(e,u)}const p={selectBackground:(0,n.n_1)(n.XV0),selectListBackground:(0,n.n_1)(n.Fgs),selectForeground:(0,n.n_1)(n._g0),decoratorRightForeground:(0,n.n_1)(n.kJk),selectBorder:(0,n.n_1)(n.a9O),focusBorder:(0,n.n_1)(n.R80),listFocusBackground:(0,n.n_1)(n.Vqd),listInactiveSelectionIconForeground:(0,n.n_1)(n.cbQ),listFocusForeground:(0,n.n_1)(n.NPS),listFocusOutline:(0,n.BtC)(n.xL1,s.Il.transparent.toString()),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listHoverOutline:(0,n.n_1)(n.xL1),selectListBorder:(0,n.n_1)(n.D1_),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,n.n_1)(n.rh),borderColor:(0,n.n_1)(n.Cdg),foregroundColor:(0,n.n_1)(n.DEr),backgroundColor:(0,n.n_1)(n.Hz8),selectionForegroundColor:(0,n.n_1)(n.jbW),selectionBackgroundColor:(0,n.n_1)(n.$DX),selectionBorderColor:(0,n.n_1)(n.E3h),separatorColor:(0,n.n_1)(n.ZGJ),scrollbarShadow:(0,n.n_1)(n._wn),scrollbarSliderBackground:(0,n.n_1)(n.etL),scrollbarSliderHoverBackground:(0,n.n_1)(n.ABB),scrollbarSliderActiveBackground:(0,n.n_1)(n.ynu)}},6009:(e,t,i)=>{"use strict";i.d(t,{IPX:()=>u,xL1:()=>E,n_1:()=>h,QO2:()=>d,BtC:()=>c,g8u:()=>I,qeD:()=>M,fSI:()=>ke,ixd:()=>xe,H6q:()=>Le,l80:()=>Se,b7$:()=>mt,GYc:()=>_t,j5u:()=>gt,GO4:()=>ft,ESD:()=>bt,qBU:()=>vt,xEn:()=>Ct,iFQ:()=>pt,SUp:()=>yt,nd:()=>St,BQ0:()=>wt,lRK:()=>N,CzK:()=>pe,keg:()=>me,ypS:()=>fe,P6Y:()=>ve,F9q:()=>be,P4M:()=>_e,_Yy:()=>Q,cvW:()=>B,b6y:()=>U,lXJ:()=>j,MUv:()=>ie,EiJ:()=>ne,gkn:()=>se,NOs:()=>V,Dut:()=>Z,yJx:()=>oe,CNo:()=>re,ES4:()=>ee,T83:()=>Y,c63:()=>G,PpC:()=>le,VVv:()=>ae,phM:()=>ue,HCL:()=>ce,bKB:()=>he,hX8:()=>de,hEj:()=>X,yb5:()=>J,Rzx:()=>te,gpD:()=>K,pW3:()=>$,uoC:()=>q,D0T:()=>W,D1_:()=>z,Hfx:()=>H,R80:()=>D,dRz:()=>L,XZx:()=>k,XEs:()=>Xe,PRb:()=>Qe,Pvw:()=>Je,sEe:()=>Ge,dt_:()=>Ze,zJb:()=>Ye,paE:()=>rt,OZR:()=>lt,_t9:()=>at,_lC:()=>et,EPQ:()=>it,YI3:()=>tt,RV_:()=>nt,C3g:()=>ot,SUG:()=>st,oQ$:()=>xt,AWI:()=>kt,K19:()=>Dt,lWp:()=>Lt,dCr:()=>Mt,M6C:()=>At,Tnx:()=>Rt,XVp:()=>jt,pdn:()=>zt,vGG:()=>Yt,Saq:()=>Qt,oSI:()=>Zt,y65:()=>Xt,Bqu:()=>It,_bK:()=>Nt,_2n:()=>Et,PX0:()=>Kt,Oop:()=>Tt,Gwp:()=>Ut,mV1:()=>Wt,$d5:()=>Ht,s$:()=>Bt,F3d:()=>Vt,rg2:()=>Ot,ytC:()=>Pt,kvU:()=>Ft,Hz8:()=>oi,Cdg:()=>ni,DEr:()=>si,$DX:()=>ai,E3h:()=>li,jbW:()=>ri,ZGJ:()=>di,kVY:()=>qe,Gj_:()=>Ke,SUY:()=>We,Itd:()=>$e,Gvr:()=>je,ov3:()=>ze,IYc:()=>He,Ivo:()=>Ue,kwl:()=>v,Fm_:()=>Oe,SPM:()=>Pe,opG:()=>pi,kJk:()=>gi,JpG:()=>Fe,OLZ:()=>Ve,BOY:()=>Be,zRJ:()=>F,zKr:()=>hi,tZ6:()=>ci,Vqd:()=>vi,NPS:()=>fi,cbQ:()=>_i,loF:()=>ui,P6G:()=>p,_wn:()=>A,ynu:()=>P,etL:()=>R,ABB:()=>O,XV0:()=>dt,a9O:()=>ut,_g0:()=>ct,Fgs:()=>ht,uxu:()=>ti,EQn:()=>ii,url:()=>T,ZnX:()=>_,KjV:()=>ei,UnT:()=>Jt,A42:()=>ye,rh:()=>Ce});var n=i(56702),s=i(53372),o=i(63932),r=i(39706),a=i(97830),l=i(76322);function d(e){return`--vscode-${e.replace(/\./g,"-")}`}function h(e){return`var(${d(e)})`}function c(e,t){return`var(${d(e)}, ${t})`}const u={ColorContribution:"base.contributions.colors"};const g=new class{constructor(){this._onDidChangeSchema=new r.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0;const o={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:s};this.colorsById[e]=o;const r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(r.deprecationMessage=s),n&&(r.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",r.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=r,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){return C(i.defaults[t.type],t)}}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function p(e,t,i,n,s){return g.registerColor(e,t,i,n,s)}function m(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function _(e,t){return{op:2,value:e,factor:t}}function v(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return{op:4,values:t}}function b(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function C(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?o.Il.fromHex(e):t.getColor(e):e instanceof o.Il?e:"object"===typeof e?function(e,t){var i,s,r,a;switch(e.op){case 0:return null===(i=C(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(s=C(e.value,t))||void 0===s?void 0:s.lighten(e.factor);case 2:return null===(r=C(e.value,t))||void 0===r?void 0:r.transparent(e.factor);case 3:{const i=C(e.background,t);return i?null===(a=C(e.value,t))||void 0===a?void 0:a.makeOpaque(i):C(e.value,t)}case 4:for(const i of e.values){const e=C(i,t);if(e)return e}return;case 6:return C(t.defines(e.if)?e.then:e.else,t);case 5:{const i=C(e.value,t);if(!i)return;const n=C(e.background,t);return n?i.isDarkerThan(n)?o.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):o.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,n.vE)(e)}}(e,t):void 0}l.B.add(u.ColorContribution,g);const y="vscode://schemas/workbench-colors",w=l.B.as(a.I.JSONContribution);w.registerSchema(y,g.getColorSchema());const S=new s.pY((()=>w.notifySchemaChanged(y)),200);g.onDidChangeSchema((()=>{S.isScheduled()||S.schedule()}));var x=i(5887);const L=p("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},x.NC("foreground","Overall foreground color. This color is only used if not overridden by a component.")),k=(p("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},x.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),p("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},x.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),p("descriptionForeground",{light:"#717171",dark:_(L,.7),hcDark:_(L,.7),hcLight:_(L,.7)},x.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),p("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},x.NC("iconForeground","The default color for icons in the workbench."))),D=p("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},x.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),N=p("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},x.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),E=p("contrastActiveBorder",{light:null,dark:null,hcDark:D,hcLight:D},x.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),T=(p("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},x.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),p("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},x.NC("textLinkForeground","Foreground color for links in text."))),I=(p("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},x.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),p("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:o.Il.black,hcLight:"#292929"},x.NC("textSeparatorForeground","Color for text separators.")),p("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},x.NC("textPreformatForeground","Foreground color for preformatted text segments.")),p("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},x.NC("textPreformatBackground","Background color for preformatted text segments.")),p("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},x.NC("textBlockQuoteBackground","Background color for block quotes in text.")),p("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:o.Il.white,hcLight:"#292929"},x.NC("textBlockQuoteBorder","Border color for block quotes in text.")),p("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:o.Il.black,hcLight:"#F2F2F2"},x.NC("textCodeBlockBackground","Background color for code blocks in text.")),p("sash.hoverBorder",{dark:D,light:D,hcDark:D,hcLight:D},x.NC("sashActiveBorder","Border color of active sashes.")),p("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:o.Il.black,hcLight:"#0F4A85"},x.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),M=p("badge.foreground",{dark:o.Il.white,light:"#333",hcDark:o.Il.white,hcLight:o.Il.white},x.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),A=p("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},x.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),R=p("scrollbarSlider.background",{dark:o.Il.fromHex("#797979").transparent(.4),light:o.Il.fromHex("#646464").transparent(.4),hcDark:_(N,.6),hcLight:_(N,.4)},x.NC("scrollbarSliderBackground","Scrollbar slider background color.")),O=p("scrollbarSlider.hoverBackground",{dark:o.Il.fromHex("#646464").transparent(.7),light:o.Il.fromHex("#646464").transparent(.7),hcDark:_(N,.8),hcLight:_(N,.8)},x.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),P=p("scrollbarSlider.activeBackground",{dark:o.Il.fromHex("#BFBFBF").transparent(.4),light:o.Il.fromHex("#000000").transparent(.6),hcDark:N,hcLight:N},x.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),F=p("progressBar.background",{dark:o.Il.fromHex("#0E70C0"),light:o.Il.fromHex("#0E70C0"),hcDark:N,hcLight:N},x.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),B=p("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("editorBackground","Editor background color.")),V=p("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Il.white,hcLight:L},x.NC("editorForeground","Editor default foreground color.")),W=(p("editorStickyScroll.background",{light:B,dark:B,hcDark:B,hcLight:B},x.NC("editorStickyScrollBackground","Background color of sticky scroll in the editor")),p("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),p("editorStickyScroll.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("editorStickyScrollBorder","Border color of sticky scroll in the editor")),p("editorStickyScroll.shadow",{dark:A,light:A,hcDark:A,hcLight:A},x.NC("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),p("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Il.white},x.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),H=p("editorWidget.foreground",{dark:L,light:L,hcDark:L,hcLight:L},x.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),z=p("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:N,hcLight:N},x.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),j=(p("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},x.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),p("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},x.NC("editorError.foreground","Foreground color of error squigglies in the editor."))),U=p("editorError.border",{dark:null,light:null,hcDark:o.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},x.NC("errorBorder","If set, color of double underlines for errors in the editor.")),K=p("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),q=p("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},x.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$=p("editorWarning.border",{dark:null,light:null,hcDark:o.Il.fromHex("#FFCC00").transparent(.8),hcLight:o.Il.fromHex("#FFCC00").transparent(.8)},x.NC("warningBorder","If set, color of double underlines for warnings in the editor.")),G=(p("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},x.NC("editorInfo.foreground","Foreground color of info squigglies in the editor."))),Y=p("editorInfo.border",{dark:null,light:null,hcDark:o.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},x.NC("infoBorder","If set, color of double underlines for infos in the editor.")),Z=p("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},x.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Q=(p("editorHint.border",{dark:null,light:null,hcDark:o.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},x.NC("hintBorder","If set, color of double underlines for hints in the editor.")),p("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hcDark:o.Il.cyan,hcLight:"#292929"},x.NC("activeLinkForeground","Color of active links."))),X=p("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},x.NC("editorSelectionBackground","Color of the editor selection.")),J=p("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Il.white},x.NC("editorSelectionForeground","Color of the selected text for high contrast.")),ee=p("editor.inactiveSelectionBackground",{light:_(X,.5),dark:_(X,.5),hcDark:_(X,.7),hcLight:_(X,.5)},x.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),te=p("editor.selectionHighlightBackground",{light:b(X,B,.3,.6),dark:b(X,B,.3,.6),hcDark:null,hcLight:null},x.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),ie=(p("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},x.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),p("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},x.NC("editorFindMatch","Color of the current search match.")),p("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},x.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ne=(p("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},x.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),p("editor.findMatchBorder",{light:null,dark:null,hcDark:E,hcLight:E},x.NC("editorFindMatchBorder","Border color of the current search match.")),p("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},x.NC("findMatchHighlightBorder","Border color of the other search matches."))),se=p("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:_(E,.4),hcLight:_(E,.4)},x.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),oe=(p("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},x.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorHoverWidget.background",{light:W,dark:W,hcDark:W,hcLight:W},x.NC("hoverBackground","Background color of the editor hover."))),re=(p("editorHoverWidget.foreground",{light:H,dark:H,hcDark:H,hcLight:H},x.NC("hoverForeground","Foreground color of the editor hover.")),p("editorHoverWidget.border",{light:z,dark:z,hcDark:z,hcLight:z},x.NC("hoverBorder","Border color of the editor hover."))),ae=(p("editorHoverWidget.statusBarBackground",{dark:f(oe,.2),light:m(oe,.05),hcDark:W,hcLight:W},x.NC("statusBarBackground","Background color of the editor hover status bar.")),p("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:o.Il.white,hcLight:o.Il.black},x.NC("editorInlayHintForeground","Foreground color of inline hints"))),le=p("editorInlayHint.background",{dark:_(I,.1),light:_(I,.1),hcDark:_(o.Il.white,.1),hcLight:_(I,.1)},x.NC("editorInlayHintBackground","Background color of inline hints")),de=p("editorInlayHint.typeForeground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},x.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),he=p("editorInlayHint.typeBackground",{dark:le,light:le,hcDark:le,hcLight:le},x.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),ce=p("editorInlayHint.parameterForeground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},x.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),ue=p("editorInlayHint.parameterBackground",{dark:le,light:le,hcDark:le,hcLight:le},x.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),ge=p("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},x.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),pe=(p("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},x.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),p("editorLightBulbAi.foreground",{dark:ge,light:ge,hcDark:ge,hcLight:ge},x.NC("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),p("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hcDark:new o.Il(new o.VS(124,124,124,.3)),hcLight:new o.Il(new o.VS(10,50,100,.2))},x.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),p("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),p("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),p("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},x.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new o.Il(new o.VS(155,185,85,.2))),me=new o.Il(new o.VS(255,0,0,.2)),fe=p("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},x.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),_e=p("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},x.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ve=(p("diffEditor.insertedLineBackground",{dark:pe,light:pe,hcDark:null,hcLight:null},x.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),p("diffEditor.removedLineBackground",{dark:me,light:me,hcDark:null,hcLight:null},x.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),p("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),p("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),p("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),be=p("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Ce=(p("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},x.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),p("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},x.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),p("diffEditor.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("diffEditorBorder","Border color between the two text editors.")),p("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},x.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),p("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},x.NC("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),p("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},x.NC("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),p("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},x.NC("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),p("widget.shadow",{dark:_(o.Il.black,.36),light:_(o.Il.black,.16),hcDark:null,hcLight:null},x.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ye=p("widget.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("widgetBorder","Border color of widgets such as find/replace inside the editor.")),we=p("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},x.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Se=(p("toolbar.hoverOutline",{dark:null,light:null,hcDark:E,hcLight:E},x.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),p("toolbar.activeBackground",{dark:f(we,.1),light:m(we,.1),hcDark:null,hcLight:null},x.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),p("breadcrumb.foreground",{light:_(L,.8),dark:_(L,.8),hcDark:_(L,.8),hcLight:_(L,.8)},x.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),xe=p("breadcrumb.background",{light:B,dark:B,hcDark:B,hcLight:B},x.NC("breadcrumbsBackground","Background color of breadcrumb items.")),Le=p("breadcrumb.focusForeground",{light:m(L,.2),dark:f(L,.1),hcDark:f(L,.1),hcLight:f(L,.1)},x.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),ke=p("breadcrumb.activeSelectionForeground",{light:m(L,.2),dark:f(L,.1),hcDark:f(L,.1),hcLight:f(L,.1)},x.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),De=(p("breadcrumbPicker.background",{light:W,dark:W,hcDark:W,hcLight:W},x.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),o.Il.fromHex("#40C8AE").transparent(.5)),Ne=o.Il.fromHex("#40A6FF").transparent(.5),Ee=o.Il.fromHex("#606060").transparent(.4),Te=.4,Ie=p("merge.currentHeaderBackground",{dark:De,light:De,hcDark:null,hcLight:null},x.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Me=(p("merge.currentContentBackground",{dark:_(Ie,Te),light:_(Ie,Te),hcDark:_(Ie,Te),hcLight:_(Ie,Te)},x.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.incomingHeaderBackground",{dark:Ne,light:Ne,hcDark:null,hcLight:null},x.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Ae=(p("merge.incomingContentBackground",{dark:_(Me,Te),light:_(Me,Te),hcDark:_(Me,Te),hcLight:_(Me,Te)},x.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.commonHeaderBackground",{dark:Ee,light:Ee,hcDark:null,hcLight:null},x.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Re=(p("merge.commonContentBackground",{dark:_(Ae,Te),light:_(Ae,Te),hcDark:_(Ae,Te),hcLight:_(Ae,Te)},x.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},x.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),Oe=(p("editorOverviewRuler.currentContentForeground",{dark:_(Ie,1),light:_(Ie,1),hcDark:Re,hcLight:Re},x.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.incomingContentForeground",{dark:_(Me,1),light:_(Me,1),hcDark:Re,hcLight:Re},x.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.commonContentForeground",{dark:_(Ae,1),light:_(Ae,1),hcDark:Re,hcLight:Re},x.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},x.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),Pe=p("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},x.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Fe=p("problemsErrorIcon.foreground",{dark:j,light:j,hcDark:j,hcLight:j},x.NC("problemsErrorIconForeground","The color used for the problems error icon.")),Be=p("problemsWarningIcon.foreground",{dark:q,light:q,hcDark:q,hcLight:q},x.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),Ve=p("problemsInfoIcon.foreground",{dark:G,light:G,hcDark:G,hcLight:G},x.NC("problemsInfoIconForeground","The color used for the problems info icon.")),We=p("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},x.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),He=p("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},x.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),ze=p("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},x.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),je=p("minimap.infoHighlight",{dark:G,light:G,hcDark:Y,hcLight:Y},x.NC("minimapInfo","Minimap marker color for infos.")),Ue=p("minimap.warningHighlight",{dark:q,light:q,hcDark:$,hcLight:$},x.NC("overviewRuleWarning","Minimap marker color for warnings.")),Ke=p("minimap.errorHighlight",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:"#B5200D"},x.NC("minimapError","Minimap marker color for errors.")),qe=p("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("minimapBackground","Minimap background color.")),$e=p("minimap.foregroundOpacity",{dark:o.Il.fromHex("#000f"),light:o.Il.fromHex("#000f"),hcDark:o.Il.fromHex("#000f"),hcLight:o.Il.fromHex("#000f")},x.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ge=(p("minimapSlider.background",{light:_(R,.5),dark:_(R,.5),hcDark:_(R,.5),hcLight:_(R,.5)},x.NC("minimapSliderBackground","Minimap slider background color.")),p("minimapSlider.hoverBackground",{light:_(O,.5),dark:_(O,.5),hcDark:_(O,.5),hcLight:_(O,.5)},x.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),p("minimapSlider.activeBackground",{light:_(P,.5),dark:_(P,.5),hcDark:_(P,.5),hcLight:_(P,.5)},x.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),p("charts.foreground",{dark:L,light:L,hcDark:L,hcLight:L},x.NC("chartsForeground","The foreground color used in charts.")),p("charts.lines",{dark:_(L,.5),light:_(L,.5),hcDark:_(L,.5),hcLight:_(L,.5)},x.NC("chartsLines","The color used for horizontal lines in charts.")),p("charts.red",{dark:j,light:j,hcDark:j,hcLight:j},x.NC("chartsRed","The red color used in chart visualizations.")),p("charts.blue",{dark:G,light:G,hcDark:G,hcLight:G},x.NC("chartsBlue","The blue color used in chart visualizations.")),p("charts.yellow",{dark:q,light:q,hcDark:q,hcLight:q},x.NC("chartsYellow","The yellow color used in chart visualizations.")),p("charts.orange",{dark:We,light:We,hcDark:We,hcLight:We},x.NC("chartsOrange","The orange color used in chart visualizations.")),p("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},x.NC("chartsGreen","The green color used in chart visualizations.")),p("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},x.NC("chartsPurple","The purple color used in chart visualizations.")),p("input.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputBoxBackground","Input box background."))),Ye=p("input.foreground",{dark:L,light:L,hcDark:L,hcLight:L},x.NC("inputBoxForeground","Input box foreground.")),Ze=p("input.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("inputBoxBorder","Input box border.")),Qe=p("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:N,hcLight:N},x.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Xe=(p("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},x.NC("inputOption.hoverBackground","Background color of activated options in input fields.")),p("inputOption.activeBackground",{dark:_(D,.4),light:_(D,.2),hcDark:o.Il.transparent,hcLight:o.Il.transparent},x.NC("inputOption.activeBackground","Background hover color of options in input fields."))),Je=p("inputOption.activeForeground",{dark:o.Il.white,light:o.Il.black,hcDark:L,hcLight:L},x.NC("inputOption.activeForeground","Foreground color of activated options in input fields.")),et=(p("input.placeholderForeground",{light:_(L,.5),dark:_(L,.5),hcDark:_(L,.7),hcLight:_(L,.7)},x.NC("inputPlaceholderForeground","Input box foreground color for placeholder text.")),p("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputValidationInfoBackground","Input validation background color for information severity."))),tt=p("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:L},x.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),it=p("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:N,hcLight:N},x.NC("inputValidationInfoBorder","Input validation border color for information severity.")),nt=p("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),st=p("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:L},x.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),ot=p("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:N,hcLight:N},x.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),rt=p("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:o.Il.black,hcLight:o.Il.white},x.NC("inputValidationErrorBackground","Input validation background color for error severity.")),at=p("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:L},x.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),lt=p("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:N,hcLight:N},x.NC("inputValidationErrorBorder","Input validation border color for error severity.")),dt=p("dropdown.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},x.NC("dropdownBackground","Dropdown background.")),ht=p("dropdown.listBackground",{dark:null,light:null,hcDark:o.Il.black,hcLight:o.Il.white},x.NC("dropdownListBackground","Dropdown list background.")),ct=p("dropdown.foreground",{dark:"#F0F0F0",light:L,hcDark:o.Il.white,hcLight:L},x.NC("dropdownForeground","Dropdown foreground.")),ut=p("dropdown.border",{dark:dt,light:"#CECECE",hcDark:N,hcLight:N},x.NC("dropdownBorder","Dropdown border.")),gt=p("button.foreground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:o.Il.white},x.NC("buttonForeground","Button foreground color.")),pt=p("button.separator",{dark:_(gt,.4),light:_(gt,.4),hcDark:_(gt,.4),hcLight:_(gt,.4)},x.NC("buttonSeparator","Button separator color.")),mt=p("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},x.NC("buttonBackground","Button background color.")),ft=p("button.hoverBackground",{dark:f(mt,.2),light:m(mt,.2),hcDark:mt,hcLight:mt},x.NC("buttonHoverBackground","Button background color when hovering.")),_t=p("button.border",{dark:N,light:N,hcDark:N,hcLight:N},x.NC("buttonBorder","Button border color.")),vt=p("button.secondaryForeground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:L},x.NC("buttonSecondaryForeground","Secondary button foreground color.")),bt=p("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:o.Il.white},x.NC("buttonSecondaryBackground","Secondary button background color.")),Ct=p("button.secondaryHoverBackground",{dark:f(bt,.2),light:m(bt,.2),hcDark:null,hcLight:null},x.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),yt=p("checkbox.background",{dark:dt,light:dt,hcDark:dt,hcLight:dt},x.NC("checkbox.background","Background color of checkbox widget.")),wt=(p("checkbox.selectBackground",{dark:W,light:W,hcDark:W,hcLight:W},x.NC("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),p("checkbox.foreground",{dark:ct,light:ct,hcDark:ct,hcLight:ct},x.NC("checkbox.foreground","Foreground color of checkbox widget."))),St=p("checkbox.border",{dark:ut,light:ut,hcDark:ut,hcLight:ut},x.NC("checkbox.border","Border color of checkbox widget.")),xt=(p("checkbox.selectBorder",{dark:k,light:k,hcDark:k,hcLight:k},x.NC("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),p("keybindingLabel.background",{dark:new o.Il(new o.VS(128,128,128,.17)),light:new o.Il(new o.VS(221,221,221,.4)),hcDark:o.Il.transparent,hcLight:o.Il.transparent},x.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),Lt=p("keybindingLabel.foreground",{dark:o.Il.fromHex("#CCCCCC"),light:o.Il.fromHex("#555555"),hcDark:o.Il.white,hcLight:L},x.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),kt=p("keybindingLabel.border",{dark:new o.Il(new o.VS(51,51,51,.6)),light:new o.Il(new o.VS(204,204,204,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:N},x.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Dt=p("keybindingLabel.bottomBorder",{dark:new o.Il(new o.VS(68,68,68,.6)),light:new o.Il(new o.VS(187,187,187,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:L},x.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Nt=p("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Et=p("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Tt=p("list.focusOutline",{dark:D,light:D,hcDark:E,hcLight:E},x.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),It=p("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),Mt=p("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),At=p("list.activeSelectionForeground",{dark:o.Il.white,light:o.Il.white,hcDark:null,hcLight:null},x.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Rt=p("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ot=p("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Pt=p("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ft=p("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Bt=p("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Vt=p("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Wt=p("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:o.Il.white.transparent(.1),hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},x.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ht=p("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},x.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),zt=p("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},x.NC("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),jt=p("list.dropBetweenBackground",{dark:k,light:k,hcDark:null,hcLight:null},x.NC("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Ut=p("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:D,hcLight:D},x.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Kt=p("list.focusHighlightForeground",{dark:Ut,light:(qt=Mt,$t=Ut,Gt="#BBE7FF",{op:6,if:qt,then:$t,else:Gt}),hcDark:Ut,hcLight:Ut},x.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var qt,$t,Gt;p("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},x.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),p("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},x.NC("listErrorForeground","Foreground color of list items containing errors.")),p("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},x.NC("listWarningForeground","Foreground color of list items containing warnings."));const Yt=p("listFilterWidget.background",{light:m(W,0),dark:f(W,0),hcDark:W,hcLight:W},x.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Zt=p("listFilterWidget.outline",{dark:o.Il.transparent,light:o.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},x.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Qt=p("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:N,hcLight:N},x.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Xt=p("listFilterWidget.shadow",{dark:Ce,light:Ce,hcDark:Ce,hcLight:Ce},x.NC("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Jt=(p("list.filterMatchBackground",{dark:ie,light:ie,hcDark:null,hcLight:null},x.NC("listFilterMatchHighlight","Background color of the filtered match.")),p("list.filterMatchBorder",{dark:ne,light:ne,hcDark:N,hcLight:E},x.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),p("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},x.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),p("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},x.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),ei=p("tree.inactiveIndentGuidesStroke",{dark:_(Jt,.4),light:_(Jt,.4),hcDark:_(Jt,.4),hcLight:_(Jt,.4)},x.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),ti=p("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},x.NC("tableColumnsBorder","Table border color between columns.")),ii=p("tree.tableOddRowsBackground",{dark:_(L,.04),light:_(L,.04),hcDark:null,hcLight:null},x.NC("tableOddRowsBackgroundColor","Background color for odd table rows.")),ni=p("menu.border",{dark:null,light:null,hcDark:N,hcLight:N},x.NC("menuBorder","Border color of menus.")),si=p("menu.foreground",{dark:ct,light:ct,hcDark:ct,hcLight:ct},x.NC("menuForeground","Foreground color of menu items.")),oi=p("menu.background",{dark:dt,light:dt,hcDark:dt,hcLight:dt},x.NC("menuBackground","Background color of menu items.")),ri=p("menu.selectionForeground",{dark:At,light:At,hcDark:At,hcLight:At},x.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),ai=p("menu.selectionBackground",{dark:Mt,light:Mt,hcDark:Mt,hcLight:Mt},x.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),li=p("menu.selectionBorder",{dark:null,light:null,hcDark:E,hcLight:E},x.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),di=p("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:N,hcLight:N},x.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),hi=p("quickInput.background",{dark:W,light:W,hcDark:W,hcLight:W},x.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ci=p("quickInput.foreground",{dark:H,light:H,hcDark:H,hcLight:H},x.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),ui=p("quickInputTitle.background",{dark:new o.Il(new o.VS(255,255,255,.105)),light:new o.Il(new o.VS(0,0,0,.06)),hcDark:"#000000",hcLight:o.Il.white},x.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),gi=p("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:o.Il.white,hcLight:"#0F4A85"},x.NC("pickerGroupForeground","Quick picker color for grouping labels.")),pi=p("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:o.Il.white,hcLight:"#0F4A85"},x.NC("pickerGroupBorder","Quick picker color for grouping borders.")),mi=p("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,x.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),fi=p("quickInputList.focusForeground",{dark:At,light:At,hcDark:At,hcLight:At},x.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),_i=p("quickInputList.focusIconForeground",{dark:Rt,light:Rt,hcDark:Rt,hcLight:Rt},x.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),vi=p("quickInputList.focusBackground",{dark:v(mi,Mt),light:v(mi,Mt),hcDark:null,hcLight:null},x.NC("quickInput.listFocusBackground","Quick picker background color for the focused item."));p("search.resultsInfoForeground",{light:L,dark:_(L,.65),hcDark:L,hcLight:L},x.NC("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),p("searchEditor.findMatchBackground",{light:_(ie,.66),dark:_(ie,.66),hcDark:ie,hcLight:ie},x.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),p("searchEditor.findMatchBorder",{light:_(ne,.66),dark:_(ne,.66),hcDark:ne,hcLight:ne},x.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},54329:(e,t,i)=>{"use strict";i.d(t,{Ks:()=>_,q5:()=>f,s_:()=>y});var n=i(53372),s=i(61542),o=i(87487),r=i(73045),a=i(39706),l=i(47624),d=i(91387),h=i(5887),c=i(97830),u=i(76322);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;r.k.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,l.HD)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,l.HD)(e.format)&&(0,l.HD)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:d.o.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${r.k.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return s}const o={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=o;const r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;r.k.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const s of n.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${r.k.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter((e=>!r.k.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n")}};function f(e,t,i,n){return m.registerIcon(e,t,i,n)}function _(){return m}u.B.add("base.contributions.icons",m),function(){const e=(0,o.u)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",b=u.B.as(c.I.JSONContribution);b.registerSchema(v,m.getIconSchema());const C=new n.pY((()=>b.notifySchemaChanged(v)),200);m.onDidChange((()=>{C.isScheduled()||C.schedule()}));const y=f("widget-close",s.l.close,(0,h.NC)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",s.l.arrowUp,(0,h.NC)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",s.l.arrowDown,(0,h.NC)("nextChangeIcon","Icon for goto next editor location.")),r.k.modify(s.l.sync,"spin"),r.k.modify(s.l.loading,"spin")},25112:(e,t,i)=>{"use strict";var n;function s(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function o(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{_T:()=>o,c3:()=>s,eL:()=>n}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(n||(n={}))},46673:(e,t,i)=>{"use strict";i.d(t,{EN:()=>d,IP:()=>c,Ic:()=>g,XE:()=>l,bB:()=>p,m6:()=>h});var n=i(39706),s=i(53186),o=i(87775),r=i(76322),a=i(25112);const l=(0,o.yh)("themeService");function d(e){return{id:e}}function h(e){switch(e){case a.eL.DARK:return"vs-dark";case a.eL.HIGH_CONTRAST_DARK:return"hc-black";case a.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const c={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}r.B.add(c.ThemingContribution,u);class p extends s.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},40938:(e,t,i)=>{"use strict";i.d(t,{Xt:()=>o,YO:()=>s,gJ:()=>r,tJ:()=>n});const n=(0,i(87775).yh)("undoRedoService");class s{constructor(e,t){this.resource=e,this.elements=t}}class o{constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}o._ID=0,o.None=new o;class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r},99818:(e,t,i)=>{"use strict";i.d(t,{A6:()=>g,c$:()=>l,eb:()=>a,ec:()=>r,md:()=>u,p$:()=>p,uT:()=>c,x:()=>m});var n=i(5887),s=i(96682),o=(i(61700),i(91387));const r=(0,i(87775).yh)("contextService");function a(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&o.o.isUri(t.uri)}function l(e){return"string"===typeof(null===e||void 0===e?void 0:e.id)&&!a(e)&&!function(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&o.o.isUri(t.configPath)}(e)}const d={id:"ext-dev"},h={id:"empty-window"};function c(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,s.EZ)(e)}:t?d:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,n.NC)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},72514:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n});const n=(0,i(87775).yh)("workspaceTrustManagementService")},72549:(e,t,i)=>{"use strict";i.d(t,{yt:()=>h,pR:()=>u,Vl:()=>c,HT:()=>l});const n=new RegExp("^[$A-Z_\\s]+$");var s=i(30586);const o={},r={};class a{static getOrCreate(e){return r[e]||(r[e]=new a(e)),r[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function l(e){const t=e.id;o[t]=e,s.Mj.register(e);const i=a.getOrCreate(t);s.Mj.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),s.Mj.onLanguage(t,(()=>{i.load().then((e=>{s.Mj.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&d(t,e.completions)}))}function d(e,t){const i=[];const o=s.Mj[e];o&&!o.modeConfiguration.completionItems||i.push(s.Mj.registerCompletionItemProvider(e,function(e,t){const i=[];for(const s in t)if(!isNaN(Number(s))){const o=`${t[s].toLowerCase()}List`;if(o in e)for(const t of e[o])i.push({label:t,filterText:n.test(t)?t.toLowerCase():t,insertText:t,kind:Number(s),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,n,s){const o=e.getWordUntilPosition(t),r={startLineNumber:t.lineNumber,startColumn:o.startColumn,endLineNumber:t.lineNumber,endColumn:o.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:r})))}}}}(t,s.Mj.CompletionItemKind))),o&&i.push(o.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),d(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new s.Q5,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const c={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},30586:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>n.languages,Q5:()=>n.Emitter,j6:()=>n.editor});var n=i(56017)},91063:(e,t,i)=>{"use strict";var n=i(72549),s=i(30586);const o="clickhouse";(0,n.HT)({id:o,extensions:[],loader:()=>i.e(3828).then(i.bind(i,43828)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const r=new n.yt(o,n.pR,n.Vl);s.Mj[o]=r;(0,n.HT)({id:"s-expression",extensions:[],loader:()=>i.e(2598).then(i.bind(i,72598))}),s.j6.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),s.j6.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(54975);(0,n.HT)({id:"yql_ansi",extensions:[],loader:()=>i.e(856).then(i.bind(i,60856)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))})},54975:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});var n=i(72549);const s="yql";(0,n.HT)({id:s,extensions:[],loader:()=>i.e(856).then(i.bind(i,60856)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},39862:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>d,default:()=>g,monaco:()=>n});var n=i(56017),s=i(34706);function o(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function r(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},a.apply(this,arguments)};function l(e){var t=e.width,i=e.height,r=e.value,l=e.defaultValue,d=e.language,h=e.theme,c=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,b=e.originalUri,C=e.modifiedUri,y=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null),x=(0,s.useRef)(null),L=o(t),k=o(i),D=(0,s.useMemo)((function(){return{width:L,height:k}}),[L,k]);return(0,s.useEffect)((function(){y.current&&(g(n),w.current=n.editor.createDiffEditor(y.current,a(a(a({},_?{extraEditorClassName:_}:{}),c),h?{theme:h}:{}),u),function(){var e=null!=r?r:l,t=null===b||void 0===b?void 0:b(n),i=null===C||void 0===C?void 0:C(n),s=t&&n.editor.getModel(t),o=i&&n.editor.getModel(i);s?(s.setValue(v),n.editor.setModelLanguage(s,d)):s=n.editor.createModel(e,d,t),o?(s.setValue(e),n.editor.setModelLanguage(o,d)):o=n.editor.createModel(e,d,i),w.current.setModel({original:s,modified:o})}(),function(){p(w.current,n);var e=w.current.getModel().modified;S.current=e.onDidChangeContent((function(t){x.current||f(e.getValue(),t)}))}())}),[]),(0,s.useEffect)((function(){w.current&&w.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),c))}),[_,c]),(0,s.useEffect)((function(){w.current&&w.current.layout()}),[t,i]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel(),t=e.original,i=e.modified;n.editor.setModelLanguage(t,d),n.editor.setModelLanguage(i,d)}}),[d]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel().modified;x.current=!0,w.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:r}]),w.current.getModifiedEditor().pushUndoStop(),x.current=!1}}),[r]),(0,s.useEffect)((function(){n.editor.setTheme(h)}),[h]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,s.useEffect)((function(){return function(){if(w.current){m(w.current,n),w.current.dispose();var e=w.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}S.current&&S.current.dispose()}}),[]),s.createElement("div",{ref:y,style:D,className:"react-monaco-editor-container"})}l.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:r,editorDidMount:r,editorWillUnmount:r,onChange:r,className:null},l.displayName="MonacoDiffEditor";const d=l;var h=function(){return h=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},h.apply(this,arguments)},c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]])}return i};function u(e){var t=e.width,i=e.height,r=e.value,a=e.defaultValue,l=e.language,d=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,b=e.uri,C=(0,s.useRef)(null),y=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null),x=o(t),L=o(i),k=(0,s.useMemo)((function(){return{width:x,height:L}}),[x,L]);return(0,s.useEffect)((function(){var e=null!==r?r:a;if(C.current){var t=h(h({},u),p(n)||{}),i=null===b||void 0===b?void 0:b(n),s=i&&n.editor.getModel(i);s?(s.setValue(e),n.editor.setModelLanguage(s,l)):s=n.editor.createModel(e,l,i),y.current=n.editor.create(C.current,h(h(h({model:s},v?{extraEditorClassName:v}:{}),t),d?{theme:d}:{}),g),m(y.current,n),w.current=y.current.onDidChangeModelContent((function(e){S.current||_(y.current.getValue(),e)}))}}),[]),(0,s.useEffect)((function(){if(y.current){if(r===y.current.getValue())return;var e=y.current.getModel();S.current=!0,y.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:r}],void 0),y.current.pushUndoStop(),S.current=!1}}),[r]),(0,s.useEffect)((function(){if(y.current){var e=y.current.getModel();n.editor.setModelLanguage(e,l)}}),[l]),(0,s.useEffect)((function(){if(y.current){u.model;var e=c(u,["model"]);y.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,s.useEffect)((function(){y.current&&y.current.layout()}),[t,i]),(0,s.useEffect)((function(){n.editor.setTheme(d)}),[d]),(0,s.useEffect)((function(){return function(){y.current&&(f(y.current,n),y.current.dispose()),w.current&&w.current.dispose()}}),[]),s.createElement("div",{ref:C,style:k,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:r,editorDidMount:r,editorWillUnmount:r,onChange:r,className:null},u.displayName="MonacoEditor";const g=u},28206:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});var n=i(34706),s=i(21035),o=i.n(s),r="undefined"!==typeof window?window:null,a=null===r,l=a?void 0:r.document,d="addEventListener",h="removeEventListener",c="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},b=function(e){if(v(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},C=function(e,t,i){var n=e[t];return void 0!==n?n:i},y=function(e,t,i,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(i){if("start"===n)return 0;if("center"===n)return e/2}return e},w=function(e,t){var i=l.createElement("div");return i.className="gutter gutter-"+t,i},S=function(e,t,i){var n={};return v(t)?n[e]=t:n[e]=_+"("+t+"% - "+i+"px)",n},x=function(e,t){var i;return(i={})[e]=t+"px",i};const L=function(e,t){if(void 0===t&&(t={}),a)return{};var i,n,s,o,_,v,L=e;Array.from&&(L=Array.from(L));var k=b(L[0]).parentNode,D=getComputedStyle?getComputedStyle(k):null,N=D?D.flexDirection:null,E=C(t,"sizes")||L.map((function(){return 100/L.length})),T=C(t,"minSize",100),I=Array.isArray(T)?T:L.map((function(){return T})),M=C(t,"maxSize",1/0),A=Array.isArray(M)?M:L.map((function(){return M})),R=C(t,"expandToMin",!1),O=C(t,"gutterSize",10),P=C(t,"gutterAlign","center"),F=C(t,"snapOffset",30),B=Array.isArray(F)?F:L.map((function(){return F})),V=C(t,"dragInterval",1),W=C(t,"direction",m),H=C(t,"cursor",W===m?"col-resize":"row-resize"),z=C(t,"gutter",w),j=C(t,"elementStyle",S),U=C(t,"gutterStyle",x);function K(e,t,n,s){var o=j(i,t,n,s);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function q(){return v.map((function(e){return e.size}))}function $(e){return"touches"in e?e.touches[0][n]:e[n]}function G(e){var t=v[this.a],i=v[this.b],n=t.size+i.size;t.size=e/this.size*n,i.size=n-e/this.size*n,K(t.element,t.size,this[g],t.i),K(i.element,i.size,this[p],i.i)}function Y(e){var i,n=v[this.a],s=v[this.b];this.dragging&&(i=$(e)-this.start+(this[g]-this.dragOffset),V>1&&(i=Math.round(i/V)*V),i<=n.minSize+n.snapOffset+this[g]?i=n.minSize+this[g]:i>=this.size-(s.minSize+s.snapOffset+this[p])&&(i=this.size-(s.minSize+this[p])),i>=n.maxSize-n.snapOffset+this[g]?i=n.maxSize+this[g]:i<=this.size-(s.maxSize-s.snapOffset+this[p])&&(i=this.size-(s.maxSize+this[p])),G.call(this,i),C(t,"onDrag",f)(q()))}function Z(){var e=v[this.a].element,t=v[this.b].element,n=e[c](),r=t[c]();this.size=n[i]+r[i]+this[g]+this[p],this.start=n[s],this.end=n[o]}function Q(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=W===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(k);if(null===t)return e;if(I.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,n=[],s=e.map((function(s,o){var r=t*s/100,a=y(O,0===o,o===e.length-1,P),l=I[o]+a;return r<l?(i+=l-r,n.push(0),l):(n.push(r-l),r)}));return 0===i?e:s.map((function(e,s){var o=e;if(i>0&&n[s]-i>0){var r=Math.min(i,n[s]-i);i-=r,o=e-r}return o/t*100}))}function X(){var e=this,i=v[e.a].element,n=v[e.b].element;e.dragging&&C(t,"onDragEnd",f)(q()),e.dragging=!1,r[h]("mouseup",e.stop),r[h]("touchend",e.stop),r[h]("touchcancel",e.stop),r[h]("mousemove",e.move),r[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),n[h]("selectstart",f),n[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,n=v[i.a].element,s=v[i.b].element;i.dragging||C(t,"onDragStart",f)(q()),e.preventDefault(),i.dragging=!0,i.move=Y.bind(i),i.stop=X.bind(i),r[d]("mouseup",i.stop),r[d]("touchend",i.stop),r[d]("touchcancel",i.stop),r[d]("mousemove",i.move),r[d]("touchmove",i.move),n[d]("selectstart",f),n[d]("dragstart",f),s[d]("selectstart",f),s[d]("dragstart",f),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",i.gutter.style.cursor=H,i.parent.style.cursor=H,l.body.style.cursor=H,Z.call(i),i.dragOffset=$(e)-i.end}}W===m?(i="width",n="clientX",s="left",o="right",_="clientWidth"):"vertical"===W&&(i="height",n="clientY",s="top",o="bottom",_="clientHeight"),E=Q(E);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Z.call(i);var n=t?i.size-e.minSize-i[p]:e.minSize+i[g];G.call(i,n)}return(v=L.map((function(e,t){var n,s={element:b(e),size:E[t],minSize:I[t],maxSize:A[t],snapOffset:B[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:W,parent:k})[g]=y(O,t-1===0,!1,P),n[p]=y(O,!1,t===L.length-1,P),"row-reverse"===N||"column-reverse"===N)){var o=n.a;n.a=n.b,n.b=o}if(t>0){var r=z(t,W,s.element);!function(e,t,n){var s=U(i,t,n);Object.keys(s).forEach((function(t){e.style[t]=s[t]}))}(r,O,t),n[u]=J.bind(n),r[d]("mousedown",n[u]),r[d]("touchstart",n[u]),k.insertBefore(r,s.element),n.gutter=r}return K(s.element,s.size,y(O,0===t,t===L.length-1,P),t),t>0&&ee.push(n),s}))).forEach((function(e){var t=e.element[c]()[i];t<e.minSize&&(R?te(e):e.minSize=t)})),{setSizes:function(e){var t=Q(e);t.forEach((function(e,i){if(i>0){var n=ee[i-1],s=v[n.a],o=v[n.b];s.size=t[i-1],o.size=e,K(s.element,s.size,n[g],s.i),K(o.element,o.size,n[p],o.i)}}))},getSizes:q,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[h]("mousedown",n[u]),n.gutter[h]("touchstart",n[u])),!0!==e){var s=j(i,n.a.size,n[g]);Object.keys(s).forEach((function(e){v[n.a].element.style[e]="",v[n.b].element.style[e]=""}))}}))},parent:k,pairs:ee}};function k(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(i[n]=e[n]);return i}var D=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=k(e,["children","gutter"]);i.gutter=function(e,i){var n;return t?n=t(e,i):(n=document.createElement("div")).className="gutter gutter-"+i,n.__isSplitGutter=!0,n},this.split=L(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var n=i.minSize,s=i.sizes,o=i.collapsed,r=k(i,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,d=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(n)&&Array.isArray(a)){var c=!1;n.forEach((function(e,t){c=c||e!==a[t]})),h=h||c}else h=!(!Array.isArray(n)&&!Array.isArray(a))||(h||n!==a);if(h)r.minSize=n,r.sizes=s||this.split.getSizes(),this.split.destroy(!0,!0),r.gutter=function(e,t,i){return i.previousSibling},this.split=L(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),r);else if(s){var u=!1;s.forEach((function(e,t){u=u||e!==l[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==d||h)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,s=k(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return n.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},s),i)},t}(n.Component);D.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},D.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const N=D},40145:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});const n={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var s,o=new Uint8Array(16);function r(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}for(var a=[],l=0;l<256;++l)a.push((l+256).toString(16).slice(1));function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(n.randomUUID&&!t&&!e)return n.randomUUID();var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=s[o];return t}return d(s)}},91517:(e,t,i)=>{"use strict";i.d(t,{f:()=>W});var n=i(10161),s=i(34706),o=i(75868),r=i.n(o),a=i(67303),l=i(83202),d=i(3581);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),c=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,d.e)({en:h,ru:c},"ydb-navigation-tree"),g=(0,a.G)("ydb-navigation-tree-view-empty");function p(e){let{level:t}=e;return(0,n.jsx)(l.L,{name:(0,n.jsx)("span",{className:g(),children:u("label_empty")}),level:t})}const m=(0,a.G)("ydb-navigation-tree-view-error");function f(e){let{level:t}=e;return(0,n.jsx)(l.L,{name:(0,n.jsx)("span",{className:m(),children:u("label_error")}),level:t})}var _=i(46640);const v=(0,a.G)("ydb-navigation-tree-view-loader");function b(e){let{level:t}=e;return(0,n.jsx)(l.L,{name:(0,n.jsx)("div",{className:v(),children:(0,n.jsx)(_.y,{size:"xs"})}),level:t})}function C(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function y(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function w(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function S(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function x(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function L(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function k(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function D(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function N(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function E(e){return(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,n.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,n.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,n.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function T(e){return(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function I(e){return"status"in e}function M(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=e[t];if(s&&(i(s,n,t,e),!s.collapsed))for(const o of s.children)M(e,`${t}/${o}`,i,n+1)}var A;function R(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var i,n;switch(t.type){case A.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case A.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case A.FinishLoading:{const s=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){s[t.payload.path].children=t.payload.data.map((e=>{let{name:t}=e;return t}));for(const o of t.payload.data){const r=`${t.payload.path}/${o.name}`,{activePath:a=""}=t.payload,l=null!==(n=null===(i=e[r])||void 0===i?void 0:i.collapsed)&&void 0!==n?n:!a.startsWith(`${r}/`);s[r]=R(Object.assign(Object.assign({},o),{collapsed:l,path:r}))}}return s}case A.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case A.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function P(e,t){const i=[];return M(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const n=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);n&&i.push(n)})),i}function F(e,t){switch(e){case"async_replication":return(0,n.jsx)(C,{height:16});case"database":return(0,n.jsx)(w,{height:14});case"directory":return t?(0,n.jsx)(L,{height:16}):(0,n.jsx)(k,{height:16});case"index":return(0,n.jsx)(D,{height:16});case"table":case"index_table":return(0,n.jsx)(N,{height:16});case"column_table":return(0,n.jsx)(y,{height:16});case"stream":case"topic":return(0,n.jsx)(E,{height:16});case"external_table":return(0,n.jsx)(x,{height:16});case"external_data_source":return(0,n.jsx)(S,{height:16});case"view":return(0,n.jsx)(T,{height:16});default:return null}}function B(e){let{path:t,fetchPath:i,activePath:o,state:r,level:a,dispatch:d,children:h,onActivate:c,getActions:u,renderAdditionalNodeElements:g,cache:p}=e;const m=r[t];s.useEffect((()=>{m.collapsed?p||d({type:A.ResetNode,payload:{path:t}}):m.loaded||m.loading||(d({type:A.StartLoading,payload:{path:t}}),i(t).then((e=>{d({type:A.FinishLoading,payload:{path:t,activePath:o,data:e}})})).catch((e=>{d({type:A.ErrorLoading,payload:{path:t,error:e}})})))}),[m.collapsed]);const f=s.useCallback((()=>{c&&c(t)}),[t,c]),_=s.useCallback((()=>{d({type:A.ToggleCollapsed,payload:{path:t}})}),[d,t]),v=s.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),b=s.useMemo((()=>null===u||void 0===u?void 0:u(m.path,m.type)),[u,m]);return(0,n.jsx)(l.L,{name:m.name,icon:F(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===o,actions:b,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,level:a,children:h})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(A||(A={}));const V=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,n.jsx)(b,{level:e.level},t):"error"===e.status?(0,n.jsx)(f,{level:e.level},t):(0,n.jsx)(p,{level:e.level},t)};function W(e){let{rootState:t,fetchPath:i,getActions:o,renderAdditionalNodeElements:a,activePath:l,onActivePathUpdate:d,cache:h=!0,virtualize:c=!1}=e;const[u,g]=s.useReducer(O,{[t.path]:R(t)}),p=s.useMemo((()=>P(u,t.path)),[t.path,u]),m=e=>(0,n.jsx)(B,{state:u,path:e.path,activePath:l,fetchPath:i,dispatch:g,onActivate:d,getActions:o,renderAdditionalNodeElements:a,cache:h,level:e.level},e.path);return c?(0,n.jsx)(r(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return I(t)?V(t):m(t)}}):(0,n.jsx)(s.Fragment,{children:p.map((e=>I(e)?V(e):m(e)))})}},83202:(e,t,i)=>{"use strict";i.d(t,{L:()=>d});var n=i(10161),s=i(34706),o=i(36413),r=i(67303);const a="--ydb-tree-view-level",l=(0,r.G)("ydb-tree-view");function d(e){let{children:t,name:i,title:r,icon:d,collapsed:h=!0,active:c=!1,onClick:u,onArrowClick:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}=e;const v=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),b=g||u;let C="tree-view_arrow",y="tree-view_children";return h&&(C+=" tree-view_arrow-collapsed",y+=" tree-view_children-collapsed"),(0,n.jsx)("div",{className:l(),style:{[a]:_},children:(0,n.jsxs)("div",{className:"tree-view",children:[(0,n.jsxs)("div",{className:`tree-view_item ${l("item",{active:c})}`,onClick:v,children:[(0,n.jsx)("button",{type:"button",className:`${C} ${l("arrow",{collapsed:h,hidden:!p})}`,disabled:!b,onClick:b}),(0,n.jsxs)("div",{className:l("content"),children:[d&&(0,n.jsx)("div",{className:l("icon"),children:d}),(0,n.jsx)("div",{className:l("text"),title:r,children:i}),m&&m.length>0&&(0,n.jsxs)("div",{className:l("actions"),children:[f,(0,n.jsx)(o.h,{defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,n.jsx)("div",{className:`${y} ${l("container",{collapsed:h})}`,children:h?null:t})]})})}},67303:(e,t,i)=>{"use strict";i.d(t,{G:()=>n});const n=(0,i(95936).withNaming)({e:"__",m:"_"})},4025:()=>{},69850:()=>{},40753:()=>{},32416:()=>{},25219:()=>{},94941:(e,t,i)=>{"use strict";i.d(t,{F:()=>d});var n=i(55247);const s=(e,t,i)=>{if(e&&"reportValidity"in e){const s=(0,n.U2)(i,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},o=(e,t)=>{for(const i in t.fields){const n=t.fields[i];n&&n.ref&&"reportValidity"in n.ref?s(n.ref,i,e):n.refs&&n.refs.forEach((t=>s(t,i,e)))}},r=(e,t)=>{t.shouldUseNativeValidation&&o(e,t);const i={};for(const s in e){const o=(0,n.U2)(t.fields,s),r=Object.assign(e[s]||{},{ref:o&&o.ref});if(a(t.names||Object.keys(e),s)){const e=Object.assign({},(0,n.U2)(i,s));(0,n.t8)(e,"root",r),(0,n.t8)(i,s,e)}else(0,n.t8)(i,s,r)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var l=function(e,t){for(var i={};e.length;){var s=e[0],o=s.code,r=s.message,a=s.path.join(".");if(!i[a])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];i[a]={message:l.message,type:l.code}}else i[a]={message:r,type:o};if("unionErrors"in s&&s.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var d=i[a].types,h=d&&d[s.code];i[a]=(0,n.KN)(a,t,i,o,h?[].concat(h,s.message):s.message)}e.shift()}return i},d=function(e,t,i){return void 0===i&&(i={}),function(n,s,a){try{return Promise.resolve(function(s,r){try{var l=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](n,t)).then((function(e){return a.shouldUseNativeValidation&&o({},a),{errors:{},values:i.raw?n:e}}))}catch(d){return r(d)}return l&&l.then?l.then(void 0,r):l}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:r(l(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(d){return Promise.reject(d)}}}},62105:(e,t,i)=>{"use strict";i.d(t,{Vi:()=>E});var n={grad:.9,turn:360,rad:360/(2*Math.PI)},s=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:r(e.r,0,255),g:r(e.g,0,255),b:r(e.b,0,255),a:r(e.a)}},d=function(e){return{r:o(e.r),g:o(e.g),b:o(e.b),a:o(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,c=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,n=e.b,s=e.a,o=Math.max(t,i,n),r=o-Math.min(t,i,n),a=r?o===t?(i-n)/r:o===i?2+(n-t)/r:4+(t-i)/r:0;return{h:60*(a<0?a+6:a),s:o?r/o*100:0,v:o/255*100,a:s}},g=function(e){var t=e.h,i=e.s,n=e.v,s=e.a;t=t/360*6,i/=100,n/=100;var o=Math.floor(t),r=n*(1-i),a=n*(1-(t-o)*i),l=n*(1-(1-t+o)*i),d=o%6;return{r:255*[n,a,r,r,l,n][d],g:255*[l,n,n,a,r,r][d],b:255*[r,r,l,n,n,a][d],a:s}},p=function(e){return{h:a(e.h),s:r(e.s,0,100),l:r(e.l,0,100),a:r(e.a)}},m=function(e){return{h:o(e.h),s:o(e.s),l:o(e.l),a:o(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((n=t.l)<50?n:100-n)/100)>0?2*i/(n+i)*100:0,v:n+i,a:t.a}));var t,i,n},_=function(e){return{h:(t=u(e)).h,s:(s=(200-(i=t.s))*(n=t.v)/100)>0&&s<200?i*n/100/(s<=100?s:200-s)*100:0,l:s/2,a:t.a};var t,i,n,s},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?o(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?o(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=C.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||b.exec(e);if(!t)return null;var i,s,o=p({h:(i=t[1],s=t[2],void 0===s&&(s="deg"),Number(i)*(n[s]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(o)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,n=e.b,o=e.a,r=void 0===o?1:o;return s(t)&&s(i)&&s(n)?l({r:Number(t),g:Number(i),b:Number(n),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,i=e.s,n=e.l,o=e.a,r=void 0===o?1:o;if(!s(t)||!s(i)||!s(n))return null;var a=p({h:Number(t),s:Number(i),l:Number(n),a:Number(r)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,n=e.v,o=e.a,l=void 0===o?1:o;if(!s(t)||!s(i)||!s(n))return null;var d=function(e){return{h:a(e.h),s:r(e.s,0,100),v:r(e.v,0,100),a:r(e.a)}}({h:Number(t),s:Number(i),v:Number(n),a:Number(l)});return g(d)},"hsv"]]},S=function(e,t){for(var i=0;i<t.length;i++){var n=t[i][0](e);if(n)return[n,t[i][1]]}return[null,void 0]},x=function(e){return"string"==typeof e?S(e.trim(),w.string):"object"==typeof e&&null!==e?S(e,w.object):[null,void 0]},L=function(e,t){var i=_(e);return{h:i.h,s:r(i.s+100*t,0,100),l:i.l,a:i.a}},k=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},D=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:r(i.l+100*t,0,100),a:i.a}},N=function(){function e(e){this.parsed=x(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return o(k(this.rgba),2)},e.prototype.isDark=function(){return k(this.rgba)<.5},e.prototype.isLight=function(){return k(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=d(this.rgba)).r,i=e.g,n=e.b,r=(s=e.a)<1?c(o(255*s)):"","#"+c(t)+c(i)+c(n)+r;var e,t,i,n,s,r},e.prototype.toRgb=function(){return d(this.rgba)},e.prototype.toRgbString=function(){return t=(e=d(this.rgba)).r,i=e.g,n=e.b,(s=e.a)<1?"rgba("+t+", "+i+", "+n+", "+s+")":"rgb("+t+", "+i+", "+n+")";var e,t,i,n,s},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,n=e.l,(s=e.a)<1?"hsla("+t+", "+i+"%, "+n+"%, "+s+")":"hsl("+t+", "+i+"%, "+n+"%)";var e,t,i,n,s},e.prototype.toHsv=function(){return e=u(this.rgba),{h:o(e.h),s:o(e.s),v:o(e.v),a:o(e.a,3)};var e},e.prototype.invert=function(){return E({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),E(L(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),E(L(this.rgba,-e))},e.prototype.grayscale=function(){return E(L(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),E(D(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),E(D(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?E({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):o(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?E({h:e,s:t.s,l:t.l,a:t.a}):o(t.h)},e.prototype.isEqual=function(e){return this.toHex()===E(e).toHex()},e}(),E=function(e){return e instanceof N?e:new N(e)}},55247:(e,t,i)=>{"use strict";i.d(t,{KN:()=>P,Qr:()=>O,U2:()=>f,cI:()=>we,t8:()=>C});var n=i(34706),s=e=>"checkbox"===e.type,o=e=>e instanceof Date,r=e=>null==e;const a=e=>"object"===typeof e;var l=e=>!r(e)&&!Array.isArray(e)&&a(e)&&!o(e),d=e=>l(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),c=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||e instanceof FileList)||!i&&!l(e))return e;if(t=i?[]:{},i||c(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!l(e))return i;const n=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>r(e)?e:e[t]),e);return m(n)||n===e?m(e[t])?i:e[t]:n},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),b=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,t,i)=>{let n=-1;const s=v(t)?[t]:b(t),o=s.length,r=o-1;for(;++n<o;){const t=s[n];let o=i;if(n!==r){const i=e[t];o=l(i)||Array.isArray(i)?i:isNaN(+s[n+1])?{}:[]}if("__proto__"===t)return;e[t]=o,e=e[t]}return e};const y={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},w={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},x=n.createContext(null),L=()=>n.useContext(x);var k=function(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const s=o;return t._proxyFormState[s]!==w.all&&(t._proxyFormState[s]=!n||w.all),i&&(i[s]=!0),e[s]}});return s},D=e=>l(e)&&!Object.keys(e).length,N=(e,t,i,n)=>{i(e);const{name:s,...o}=e;return D(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||w.all)))},E=e=>Array.isArray(e)?e:[e],T=(e,t,i)=>!e||!t||e===t||E(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function I(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var M=e=>"string"===typeof e,A=(e,t,i,n,s)=>M(e)?(n&&t.watch.add(e),f(i,e,s)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),f(i,e)))):(n&&(t.watchAll=!0),i);function R(e){const t=L(),{name:i,disabled:s,control:o=t.control,shouldUnregister:r}=e,a=h(o._names.array,i),l=function(e){const t=L(),{control:i=t.control,name:s,defaultValue:o,disabled:r,exact:a}=e||{},l=n.useRef(s);l.current=s,I({disabled:r,subject:i._subjects.values,next:e=>{T(l.current,e.name,a)&&h(g(A(l.current,i._names,e.values||i._formValues,!1,o)))}});const[d,h]=n.useState(i._getWatch(s,o));return n.useEffect((()=>i._removeUnmounted())),d}({control:o,name:i,defaultValue:f(o._formValues,i,f(o._defaultValues,i,e.defaultValue)),exact:!0}),c=function(e){const t=L(),{control:i=t.control,disabled:s,name:o,exact:r}=e||{},[a,l]=n.useState(i._formState),d=n.useRef(!0),h=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=n.useRef(o);return c.current=o,I({disabled:s,next:e=>d.current&&T(c.current,e.name,r)&&N(e,h.current,i._updateFormState)&&l({...i._formState,...e}),subject:i._subjects.state}),n.useEffect((()=>(d.current=!0,h.current.isValid&&i._updateValid(!0),()=>{d.current=!1})),[i]),k(a,i,h.current,!1)}({control:o,name:i}),u=n.useRef(o.register(i,{...e.rules,value:l,..._(e.disabled)?{disabled:e.disabled}:{}}));return n.useEffect((()=>{const e=o._options.shouldUnregister||r,t=(e,t)=>{const i=f(o._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(o._options.defaultValues,i));C(o._defaultValues,i,e),m(f(o._formValues,i))&&C(o._formValues,i,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(i):t(i,!1)}}),[i,o,a,r]),n.useEffect((()=>{f(o._fields,i)&&o._updateDisabledField({disabled:s,fields:o._fields,name:i,value:f(o._fields,i)._f.value})}),[s,i,o]),{field:{name:i,value:l,..._(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:n.useCallback((e=>u.current.onChange({target:{value:d(e),name:i},type:y.CHANGE})),[i]),onBlur:n.useCallback((()=>u.current.onBlur({target:{value:f(o._formValues,i),name:i},type:y.BLUR})),[i,o]),ref:e=>{const t=f(o._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(c.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(c.validatingFields,i)},error:{enumerable:!0,get:()=>f(c.errors,i)}})}}const O=e=>e.render(R(e));var P=(e,t,i,n,s)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[n]:s||!0}}:{},F=e=>({isOnSubmit:!e||e===w.onSubmit,isOnBlur:e===w.onBlur,isOnChange:e===w.onChange,isOnAll:e===w.all,isOnTouch:e===w.onTouched}),B=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const V=(e,t,i,n)=>{for(const s of i||Object.keys(e)){const i=f(e,s);if(i){const{_f:e,...o}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],s)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;V(o,t)}else l(o)&&V(o,t)}}};var W=(e,t,i)=>{const n=E(f(e,i));return C(n,"root",t[i]),C(e,i,n),e},H=e=>"file"===e.type,z=e=>"function"===typeof e,j=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},U=e=>M(e),K=e=>"radio"===e.type,q=e=>e instanceof RegExp;const $={value:!1,isValid:!1},G={value:!0,isValid:!0};var Y=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?G:{value:e[0].value,isValid:!0}:G:$}return $};const Z={isValid:!1,value:null};var Q=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Z):Z;function X(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(U(e)||Array.isArray(e)&&e.every(U)||_(e)&&!e)return{type:i,message:U(e)?e:"",ref:t}}var J=e=>l(e)&&!q(e)?e:{value:e,message:""},ee=async(e,t,i,n,o)=>{const{ref:a,refs:d,required:h,maxLength:c,minLength:u,min:g,max:p,pattern:v,validate:b,name:C,valueAsNumber:y,mount:w,disabled:x}=e._f,L=f(t,C);if(!w||x)return{};const k=d?d[0]:a,N=e=>{n&&k.reportValidity&&(k.setCustomValidity(_(e)?"":e||""),k.reportValidity())},E={},T=K(a),I=s(a),A=T||I,R=(y||H(a))&&m(a.value)&&m(L)||j(a)&&""===a.value||""===L||Array.isArray(L)&&!L.length,O=P.bind(null,C,i,E),F=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S.maxLength,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:S.minLength;const o=e?t:i;E[C]={type:e?n:s,message:o,ref:a,...O(e?n:s,o)}};if(o?!Array.isArray(L)||!L.length:h&&(!A&&(R||r(L))||_(L)&&!L||I&&!Y(d).isValid||T&&!Q(d).isValid)){const{value:e,message:t}=U(h)?{value:!!h,message:h}:J(h);if(e&&(E[C]={type:S.required,message:t,ref:k,...O(S.required,t)},!i))return N(t),E}if(!R&&(!r(g)||!r(p))){let e,t;const n=J(p),s=J(g);if(r(L)||isNaN(L)){const i=a.valueAsDate||new Date(L),o=e=>new Date((new Date).toDateString()+" "+e),r="time"==a.type,l="week"==a.type;M(n.value)&&L&&(e=r?o(L)>o(n.value):l?L>n.value:i>new Date(n.value)),M(s.value)&&L&&(t=r?o(L)<o(s.value):l?L<s.value:i<new Date(s.value))}else{const i=a.valueAsNumber||(L?+L:L);r(n.value)||(e=i>n.value),r(s.value)||(t=i<s.value)}if((e||t)&&(F(!!e,n.message,s.message,S.max,S.min),!i))return N(E[C].message),E}if((c||u)&&!R&&(M(L)||o&&Array.isArray(L))){const e=J(c),t=J(u),n=!r(e.value)&&L.length>+e.value,s=!r(t.value)&&L.length<+t.value;if((n||s)&&(F(n,e.message,t.message),!i))return N(E[C].message),E}if(v&&!R&&M(L)){const{value:e,message:t}=J(v);if(q(e)&&!L.match(e)&&(E[C]={type:S.pattern,message:t,ref:a,...O(S.pattern,t)},!i))return N(t),E}if(b)if(z(b)){const e=X(await b(L,t),k);if(e&&(E[C]={...e,...O(S.validate,e.message)},!i))return N(e.message),E}else if(l(b)){let e={};for(const n in b){if(!D(e)&&!i)break;const s=X(await b[n](L,t),k,n);s&&(e={...s,...O(n,s.message)},N(s.message),i&&(E[C]=e))}if(!D(e)&&(E[C]={ref:k,...e},!i))return E}return N(!0),E};function te(e,t){const i=Array.isArray(t)?t:v(t)?[t]:b(t),n=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let n=0;for(;n<i;)e=m(e)?n++:e[t[n++]];return e}(e,i),s=i.length-1,o=i[s];return n&&delete n[o],0!==s&&(l(n)&&D(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(n))&&te(e,i.slice(0,-1)),e}var ie=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},ne=e=>r(e)||!a(e);function se(e,t){if(ne(e)||ne(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const s of i){const i=e[s];if(!n.includes(s))return!1;if("ref"!==s){const e=t[s];if(o(i)&&o(e)||l(i)&&l(e)||Array.isArray(i)&&Array.isArray(e)?!se(i,e):i!==e)return!1}}return!0}var oe=e=>"select-multiple"===e.type,re=e=>K(e)||s(e),ae=e=>j(e)&&e.isConnected,le=e=>{for(const t in e)if(z(e[t]))return!0;return!1};function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Array.isArray(e);if(l(e)||i)for(const n in e)Array.isArray(e[n])||l(e[n])&&!le(e[n])?(t[n]=Array.isArray(e[n])?[]:{},de(e[n],t[n])):r(e[n])||(t[n]=!0);return t}function he(e,t,i){const n=Array.isArray(e);if(l(e)||n)for(const s in e)Array.isArray(e[s])||l(e[s])&&!le(e[s])?m(t)||ne(i[s])?i[s]=Array.isArray(e[s])?de(e[s],[]):{...de(e[s])}:he(e[s],r(t)?{}:t[s],i[s]):i[s]=!se(e[s],t[s]);return i}var ce=(e,t)=>he(e,t,de(t)),ue=(e,t)=>{let{valueAsNumber:i,valueAsDate:n,setValueAs:s}=t;return m(e)?e:i?""===e?NaN:e?+e:e:n&&M(e)?new Date(e):s?s(e):e};function ge(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return H(t)?t.files:K(t)?Q(e.refs).value:oe(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):s(t)?Y(e.refs).value:ue(m(t.value)?e.ref.value:t.value,e)}var pe=(e,t,i,n)=>{const s={};for(const o of e){const e=f(t,o);e&&C(s,o,e._f)}return{criteriaMode:i,names:[...e],fields:s,shouldUseNativeValidation:n}},me=e=>m(e)?e:q(e)?e.source:l(e)?q(e.value)?e.value.source:e.value:e,fe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _e(e,t,i){const n=f(e,i);if(n||v(i))return{error:n,name:i};const s=i.split(".");for(;s.length;){const n=s.join("."),o=f(t,n),r=f(e,n);if(o&&!Array.isArray(o)&&i!==n)return{name:i};if(r&&r.type)return{name:n,error:r};s.pop()}return{name:i}}var ve=(e,t,i,n,s)=>!s.isOnAll&&(!i&&s.isOnTouch?!(t||e):(i?n.isOnBlur:s.isOnBlur)?!e:!(i?n.isOnChange:s.isOnChange)||e),be=(e,t)=>!p(f(e,t)).length&&te(e,t);const Ce={mode:w.onSubmit,reValidateMode:w.onChange,shouldFocusError:!0};function ye(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={...Ce,...t},n={submitCount:0,isDirty:!1,isLoading:z(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},c=(l(i.defaultValues)||l(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(c),b={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},x=0;const L={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},k={values:ie(),array:ie(),state:ie()},N=F(i.mode),T=F(i.reValidateMode),I=i.criteriaMode===w.all,R=async e=>{if(L.isValid||e){const e=i.resolver?D((await q()).errors):await G(a,!0);e!==n.isValid&&k.state.next({isValid:e})}},O=(e,t)=>{(L.isValidating||L.validatingFields)&&((e||Array.from(S.mount)).forEach((e=>{e&&(t?C(n.validatingFields,e,t):te(n.validatingFields,e))})),k.state.next({validatingFields:n.validatingFields,isValidating:!D(n.validatingFields)}))},P=(e,t,i,n)=>{const s=f(a,e);if(s){const o=f(v,e,m(i)?f(c,e):i);m(o)||n&&n.defaultChecked||t?C(v,e,t?o:ge(s._f)):Q(e,o),b.mount&&R()}},U=(e,t,i,s,o)=>{let r=!1,l=!1;const d={name:e},h=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!i||s){L.isDirty&&(l=n.isDirty,n.isDirty=d.isDirty=Y(),r=l!==d.isDirty);const i=h||se(f(c,e),t);l=!(h||!f(n.dirtyFields,e)),i||h?te(n.dirtyFields,e):C(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,r=r||L.dirtyFields&&l!==!i}if(i){const t=f(n.touchedFields,e);t||(C(n.touchedFields,e,i),d.touchedFields=n.touchedFields,r=r||L.touchedFields&&t!==i)}return r&&o&&k.state.next(d),r?d:{}},K=(i,s,o,r)=>{const a=f(n.errors,i),l=L.isValid&&_(s)&&n.isValid!==s;var d;if(t.delayError&&o?(d=()=>((e,t)=>{C(n.errors,e,t),k.state.next({errors:n.errors})})(i,o),e=e=>{clearTimeout(x),x=setTimeout(d,e)},e(t.delayError)):(clearTimeout(x),e=null,o?C(n.errors,i,o):te(n.errors,i)),(o?!se(a,o):a)||!D(r)||l){const e={...r,...l&&_(s)?{isValid:s}:{},errors:n.errors,name:i};n={...n,...e},k.state.next(e)}},q=async e=>{O(e,!0);const t=await i.resolver(v,i.context,pe(e||S.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return O(e),t},$=async e=>{const{errors:t}=await q(e);if(e)for(const i of e){const e=f(t,i);e?C(n.errors,i,e):te(n.errors,i)}else n.errors=t;return t},G=async function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const o in e){const r=e[o];if(r){const{_f:e,...a}=r;if(e){const a=S.array.has(e.name);O([o],!0);const l=await ee(r,v,I,i.shouldUseNativeValidation&&!t,a);if(O([o]),l[e.name]&&(s.valid=!1,t))break;!t&&(f(l,e.name)?a?W(n.errors,l,e.name):C(n.errors,e.name,l[e.name]):te(n.errors,e.name))}a&&await G(a,t,s)}}return s.valid},Y=(e,t)=>(e&&t&&C(v,e,t),!se(ye(),c)),Z=(e,t,i)=>A(e,S,{...b.mount?v:m(t)?c:M(e)?{[e]:t}:t},i,t),Q=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=f(a,e);let o=t;if(n){const i=n._f;i&&(!i.disabled&&C(v,e,ue(t,i)),o=j(i.ref)&&r(t)?"":t,oe(i.ref)?[...i.ref.options].forEach((e=>e.selected=o.includes(e.value))):i.refs?s(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):i.refs[0]&&(i.refs[0].checked=!!o):i.refs.forEach((e=>e.checked=e.value===o)):H(i.ref)?i.ref.value="":(i.ref.value=o,i.ref.type||k.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&U(e,o,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&he(e)},X=(e,t,i)=>{for(const n in t){const s=t[n],r=`${e}.${n}`,l=f(a,r);!S.array.has(e)&&ne(s)&&(!l||l._f)||o(s)?Q(r,s,i):X(r,s,i)}},J=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=f(a,e),o=S.array.has(e),l=g(t);C(v,e,l),o?(k.array.next({name:e,values:{...v}}),(L.isDirty||L.dirtyFields)&&i.shouldDirty&&k.state.next({name:e,dirtyFields:ce(c,v),isDirty:Y(e,l)})):!s||s._f||r(l)?Q(e,l,i):X(e,l,i),B(e,S)&&k.state.next({...n}),k.values.next({name:b.mount?e:void 0,values:{...v}})},le=async t=>{b.mount=!0;const s=t.target;let o=s.name,r=!0;const l=f(a,o),h=e=>{r=Number.isNaN(e)||e===f(v,o,e)};if(l){let c,u;const g=s.type?ge(l._f):d(t),p=t.type===y.BLUR||t.type===y.FOCUS_OUT,m=!fe(l._f)&&!i.resolver&&!f(n.errors,o)&&!l._f.deps||ve(p,f(n.touchedFields,o),n.isSubmitted,T,N),_=B(o,S,p);C(v,o,g),p?(l._f.onBlur&&l._f.onBlur(t),e&&e(0)):l._f.onChange&&l._f.onChange(t);const b=U(o,g,p,!1),w=!D(b)||_;if(!p&&k.values.next({name:o,type:t.type,values:{...v}}),m)return L.isValid&&R(),w&&k.state.next({name:o,..._?{}:b});if(!p&&_&&k.state.next({...n}),i.resolver){const{errors:e}=await q([o]);if(h(g),r){const t=_e(n.errors,a,o),i=_e(e,a,t.name||o);c=i.error,o=i.name,u=D(e)}}else O([o],!0),c=(await ee(l,v,I,i.shouldUseNativeValidation))[o],O([o]),h(g),r&&(c?u=!1:L.isValid&&(u=await G(a,!0)));r&&(l._f.deps&&he(l._f.deps),K(o,u,c,b))}},de=(e,t)=>{if(f(n.errors,t)&&e.focus)return e.focus(),1},he=async function(e){let t,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=E(e);if(i.resolver){const i=await $(m(e)?e:r);t=D(i),s=e?!r.some((e=>f(i,e))):t}else e?(s=(await Promise.all(r.map((async e=>{const t=f(a,e);return await G(t&&t._f?{[e]:t}:t)})))).every(Boolean),(s||n.isValid)&&R()):s=t=await G(a);return k.state.next({...!M(e)||L.isValid&&t!==n.isValid?{}:{name:e},...i.resolver||!e?{isValid:t}:{},errors:n.errors}),o.shouldFocus&&!s&&V(a,de,e?r:S.mount),s},ye=e=>{const t={...b.mount?v:c};return m(e)?t:M(e)?f(t,e):e.map((e=>f(t,e)))},we=(e,t)=>({invalid:!!f((t||n).errors,e),isDirty:!!f((t||n).dirtyFields,e),error:f((t||n).errors,e),isValidating:!!f(n.validatingFields,e),isTouched:!!f((t||n).touchedFields,e)}),Se=(e,t,i)=>{const s=(f(a,e,{_f:{}})._f||{}).ref,o=f(n.errors,e)||{},{ref:r,message:l,type:d,...h}=o;C(n.errors,e,{...h,...t,ref:s}),k.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&s&&s.focus&&s.focus()},xe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const s of e?E(e):S.mount)S.mount.delete(s),S.array.delete(s),t.keepValue||(te(a,s),te(v,s)),!t.keepError&&te(n.errors,s),!t.keepDirty&&te(n.dirtyFields,s),!t.keepTouched&&te(n.touchedFields,s),!t.keepIsValidating&&te(n.validatingFields,s),!i.shouldUnregister&&!t.keepDefaultValue&&te(c,s);k.values.next({values:{...v}}),k.state.next({...n,...t.keepDirty?{isDirty:Y()}:{}}),!t.keepIsValid&&R()},Le=e=>{let{disabled:t,name:i,field:n,fields:s,value:o}=e;if(_(t)&&b.mount||t){const e=t?void 0:m(o)?ge(n?n._f:f(s,i)._f):o;C(v,i,e),U(i,e,!1,!1,!0)}},ke=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(a,e);const s=_(t.disabled);return C(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),n?Le({field:n,disabled:t.disabled,name:e,value:t.value}):P(e,!0,t.value),{...s?{disabled:t.disabled}:{},...i.progressive?{required:!!t.required,min:me(t.min),max:me(t.max),minLength:me(t.minLength),maxLength:me(t.maxLength),pattern:me(t.pattern)}:{},name:e,onChange:le,onBlur:le,ref:s=>{if(s){ke(e,t),n=f(a,e);const i=m(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,o=re(i),r=n._f.refs||[];if(o?r.find((e=>e===i)):i===n._f.ref)return;C(a,e,{_f:{...n._f,...o?{refs:[...r.filter(ae),i,...Array.isArray(f(c,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),P(e,!1,void 0,i)}else n=f(a,e,{}),n._f&&(n._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(S.array,e)||!b.action)&&S.unMount.add(e)}}},De=()=>i.shouldFocusError&&V(a,de,S.mount),Ne=(e,t)=>async s=>{let o;s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist());let r=g(v);if(k.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await q();n.errors=e,r=t}else await G(a);if(te(n.errors,"root"),D(n.errors)){k.state.next({errors:{}});try{await e(r,s)}catch(l){o=l}}else t&&await t({...n.errors},s),De(),setTimeout(De);if(k.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:D(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},Ee=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e?g(e):c,o=g(s),r=D(e),l=r?c:o;if(i.keepDefaultValues||(c=s),!i.keepValues){if(i.keepDirtyValues)for(const e of S.mount)f(n.dirtyFields,e)?C(l,e,f(v,e)):J(e,f(l,e));else{if(u&&m(e))for(const e of S.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(j(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=t.shouldUnregister?i.keepDefaultValues?g(c):{}:g(l),k.array.next({values:{...l}}),k.values.next({values:{...l}})}S={mount:i.keepDirtyValues?S.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!L.isValid||!!i.keepIsValid||!!i.keepDirtyValues,b.watch=!!t.shouldUnregister,k.state.next({submitCount:i.keepSubmitCount?n.submitCount:0,isDirty:!r&&(i.keepDirty?n.isDirty:!(!i.keepDefaultValues||se(e,c))),isSubmitted:!!i.keepIsSubmitted&&n.isSubmitted,dirtyFields:r?{}:i.keepDirtyValues?i.keepDefaultValues&&v?ce(c,v):n.dirtyFields:i.keepDefaultValues&&e?ce(c,e):i.keepDirty?n.dirtyFields:{},touchedFields:i.keepTouched?n.touchedFields:{},errors:i.keepErrors?n.errors:{},isSubmitSuccessful:!!i.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},Te=(e,t)=>Ee(z(e)?e(v):e,t);return{control:{register:ke,unregister:xe,getFieldState:we,handleSubmit:Ne,setError:Se,_executeSchema:q,_getWatch:Z,_getDirty:Y,_updateValid:R,_removeUnmounted:()=>{for(const e of S.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ae(e))):!ae(t._f.ref))&&xe(e)}S.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(s&&i){if(b.action=!0,r&&Array.isArray(f(a,e))){const t=i(f(a,e),s.argA,s.argB);o&&C(a,e,t)}if(r&&Array.isArray(f(n.errors,e))){const t=i(f(n.errors,e),s.argA,s.argB);o&&C(n.errors,e,t),be(n.errors,e)}if(L.touchedFields&&r&&Array.isArray(f(n.touchedFields,e))){const t=i(f(n.touchedFields,e),s.argA,s.argB);o&&C(n.touchedFields,e,t)}L.dirtyFields&&(n.dirtyFields=ce(c,v)),k.state.next({name:e,isDirty:Y(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(v,e,t)},_updateDisabledField:Le,_getFieldArray:e=>p(f(b.mount?v:c,e,t.shouldUnregister?f(c,e,[]):[])),_reset:Ee,_resetDefaultValues:()=>z(i.defaultValues)&&i.defaultValues().then((e=>{Te(e,i.resetOptions),k.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{_(e)&&(k.state.next({disabled:e}),V(a,((t,i)=>{const n=f(a,i);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:k,_proxyFormState:L,_setErrors:e=>{n.errors=e,k.state.next({errors:n.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return b},set _state(e){b=e},get _defaultValues(){return c},get _names(){return S},set _names(e){S=e},get _formState(){return n},set _formState(e){n=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:he,register:ke,handleSubmit:Ne,watch:(e,t)=>z(e)?k.values.subscribe({next:i=>e(Z(void 0,t),i)}):Z(e,t,!0),setValue:J,getValues:ye,reset:Te,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(a,e)&&(m(t.defaultValue)?J(e,g(f(c,e))):(J(e,t.defaultValue),C(c,e,g(t.defaultValue))),t.keepTouched||te(n.touchedFields,e),t.keepDirty||(te(n.dirtyFields,e),n.isDirty=t.defaultValue?Y(e,g(f(c,e))):Y()),t.keepError||(te(n.errors,e),L.isValid&&R()),k.state.next({...n}))},clearErrors:e=>{e&&E(e).forEach((e=>te(n.errors,e))),k.state.next({errors:e?n.errors:{}})},unregister:xe,setError:Se,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=f(a,e),n=i&&i._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:we}}function we(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=n.useRef(),i=n.useRef(),[s,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ye(e),formState:s});const r=t.current.control;return r._options=e,I({subject:r._subjects.state,next:e=>{N(e,r._proxyFormState,r._updateFormState,!0)&&o({...r._formState})}}),n.useEffect((()=>r._disableForm(e.disabled)),[r,e.disabled]),n.useEffect((()=>{if(r._proxyFormState.isDirty){const e=r._getDirty();e!==s.isDirty&&r._subjects.state.next({isDirty:e})}}),[r,s.isDirty]),n.useEffect((()=>{e.values&&!se(e.values,i.current)?(r._reset(e.values,r._options.resetOptions),i.current=e.values,o((e=>({...e})))):r._resetDefaultValues()}),[e.values,r]),n.useEffect((()=>{e.errors&&r._setErrors(e.errors)}),[e.errors,r]),n.useEffect((()=>{r._state.mount||(r._updateValid(),r._state.mount=!0),r._state.watch&&(r._state.watch=!1,r._subjects.state.next({...r._formState})),r._removeUnmounted()})),n.useEffect((()=>{e.shouldUnregister&&r._subjects.values.next({values:r._getWatch()})}),[e.shouldUnregister,r]),t.current.formState=k(s,r),t.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/896.178c5b16.chunk.js b/ydb/core/viewer/monitoring/static/js/896.178c5b16.chunk.js new file mode 100644 index 0000000000..6ca458b920 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/896.178c5b16.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[896],{55982:(e,t,s)=>{s.d(t,{U:()=>c});var n=s(34706),a=s(72616),l=s(16318),o=s(47945),i=s(51403),r=s(10161);function c(e){let{children:t,onConfirmAction:s,onConfirmActionSuccess:c,dialogHeader:d,dialogText:u,retryButtonText:p,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:b,withPopover:y=!1,popoverContent:x,popoverPlacement:g="right",popoverDisabled:f=!0}=e;const[k,w]=n.useState(!1),[E,N]=n.useState(!1),[C,j]=n.useState(!1),D=()=>(0,r.jsx)(a.z,{onClick:()=>w(!0),view:m,disabled:h,loading:!h&&E,className:b,title:v,children:t});return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(o.g,{visible:k,header:d,text:u,withRetry:C,retryButtonText:p,onConfirm:async e=>{N(!0),await s(e)},onConfirmActionSuccess:async()=>{j(!1);try{await(null===c||void 0===c?void 0:c())}finally{N(!1)}},onConfirmActionError:e=>{j((0,i.q)(e)),N(!1)},onClose:()=>{w(!1)}}),y?(0,r.jsx)(l.J,{content:x,placement:g,disabled:f,children:D()}):D()]})}},47945:(e,t,s)=>{s.d(t,{g:()=>y});var n=s(34706),a=s(3948),l=s(15268),o=s(19912),i=s(68585),r=s(14561),c=s(58231),d=s(99294),u=s(37711);const p=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,u.wZ)("ydb-critical-action-dialog",{en:p});var m=s(10161);const v=(0,d.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(c.I,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function y(e){let{visible:t,header:s,text:c,withRetry:d,retryButtonText:u,withCheckBox:p,onClose:y,onConfirm:x,onConfirmActionSuccess:g,onConfirmActionError:f}=e;const[k,w]=n.useState(!1),[E,N]=n.useState(),[C,j]=n.useState(!1),D=async e=>(w(!0),x(e).then((()=>{g(),y()})).catch((e=>{f(e),N(e)})).finally((()=>{w(!1)})));return(0,m.jsx)(i.V,{open:t,hasCloseButton:!1,className:v(),size:"s",onClose:y,onTransitionExited:()=>{N(void 0),j(!1)},children:E?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(i.V.Header,{caption:s}),(0,m.jsx)(i.V.Body,{className:v("body"),children:(0,m.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:v("error-icon"),children:(0,m.jsx)(a.Z,{width:"24",height:"22"})}),b(E)]})}),(0,m.jsx)(i.V.Footer,{loading:!1,preset:"default",textButtonApply:d?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>D(!0),onClickButtonCancel:y})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(i.V.Header,{caption:s}),(0,m.jsxs)(i.V.Body,{className:v("body"),children:[(0,m.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:v("warning-icon"),children:(0,m.jsx)(r.J,{data:l.Z,size:24})}),c]}),p?(0,m.jsx)(o.X,{checked:C,onUpdate:j,children:h("checkbox-text")}):null]}),(0,m.jsx)(i.V.Footer,{loading:k,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:p&&!C},onClickButtonCancel:y,onClickButtonApply:()=>D()})]})})}},51403:(e,t,s)=>{s.d(t,{q:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},49263:(e,t,s)=>{s.d(t,{K:()=>k});s(34706);var n=s(46878),a=s(65e3),l=s(25665),o=s(99294),i=s(38980),r=s(70340),c=s(53458),d=s(55842),u=s(73689),p=s(41591),h=s(90808),m=s(20760),v=s(73287),b=s(37711);const y=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:y});var g=s(10161);const f=(0,o.cn)("ydb-vdisk-info");function k(e){var t,s;let{data:o,withVDiskPageLink:c,withTitle:b,...y}=e;const k=(0,d.ix)(a.VH),{AllocatedSize:E,DiskSpace:N,FrontQueues:C,Guid:j,Replicated:D,VDiskState:S,VDiskSlotId:B,Kind:T,SatisfactionRank:R,AvailableSize:F,HasUnreadableBlobs:A,IncarnationGuid:O,InstanceGuid:L,StoragePoolName:K,ReadThroughput:_,WriteThroughput:z,PDiskId:I,NodeId:P}=o||{},V=[];var G,J;((0,l.D)(B)&&V.push({label:x("slot-id"),value:B}),(0,l.D)(K)&&V.push({label:x("pool-name"),value:K}),(0,l.D)(S)&&V.push({label:x("state-status"),value:S}),Number(E)>=0&&Number(F)>=0&&V.push({label:x("size"),value:(0,g.jsx)(m.y,{value:E,capacity:Number(E)+Number(F),formatValues:i.q3,colorizeProgress:!0})}),(0,l.D)(T)&&V.push({label:x("kind"),value:T}),(0,l.D)(j)&&V.push({label:x("guid"),value:j}),(0,l.D)(O)&&V.push({label:x("incarnation-guid"),value:O}),(0,l.D)(L)&&V.push({label:x("instance-guid"),value:L}),(0,l.D)(D)&&V.push({label:x("replication-status"),value:x(D?"yes":"no")}),(0,l.D)(N)&&V.push({label:x("space-status"),value:(0,g.jsx)(v.J,{status:N})}),(0,l.D)(null===R||void 0===R||null===(t=R.FreshRank)||void 0===t?void 0:t.Flag))&&V.push({label:x("fresh-rank-satisfaction"),value:(0,g.jsx)(v.J,{status:null===R||void 0===R||null===(G=R.FreshRank)||void 0===G?void 0:G.Flag})});(0,l.D)(null===R||void 0===R||null===(s=R.LevelRank)||void 0===s?void 0:s.Flag)&&V.push({label:x("level-rank-satisfaction"),value:(0,g.jsx)(v.J,{status:null===R||void 0===R||null===(J=R.LevelRank)||void 0===J?void 0:J.Flag})});(0,l.D)(C)&&V.push({label:x("front-queues"),value:(0,g.jsx)(v.J,{status:C})}),(0,l.D)(A)&&V.push({label:x("has-unreadable-blobs"),value:x(A?"yes":"no")}),(0,l.D)(_)&&V.push({label:x("read-throughput"),value:(0,u.Qt)(_)}),(0,l.D)(z)&&V.push({label:x("write-throughput"),value:(0,u.Qt)(z)});if((0,l.D)(I)&&(0,l.D)(P)&&(0,l.D)(B)){const e=[];if(c){const t=(0,n.By)(B,I,P);e.push((0,g.jsx)(h.j,{title:x("vdisk-page"),url:t,external:!1},t))}if(k){const t=(0,r.yf)({nodeId:P,pDiskId:I,vDiskSlotId:B});e.push((0,g.jsx)(h.j,{title:x("developer-ui"),url:t},t))}e.length&&V.push({label:x("links"),value:(0,g.jsx)("div",{className:f("links"),children:e})})}const Z=o&&b?(0,g.jsx)(w,{data:o}):null;return(0,g.jsx)(p._P,{info:V,title:Z,...y})}function w(e){let{data:t}=e;return(0,g.jsxs)("div",{className:f("title"),children:[x("vdiks-title"),(0,g.jsx)(v.J,{status:(0,c.b2)(t.Severity)}),t.StringifiedId]})}},58231:(e,t,s)=>{s.d(t,{I:()=>j});var n=s(34706),a=s(29254),l=s(96334),o=s(15268),i=s(3948),r=s(72616),c=s(81778),d=s(14561),u=s(17823),p=s(99294),h=s(37711);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=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)"]}'),b=(0,h.wZ)("ydb-shorty-string",{ru:v,en:m});var y=s(10161);const x=(0,p.cn)("kv-shorty-string");function g(e){let{value:t="",limit:s=200,strict:a=!1,displayLength:l=!0,render:o=(e=>e),onToggle:i,expandLabel:r=b("default_expand_label"),collapseLabel:c=b("default_collapse_label")}=e;const[d,p]=n.useState(!1),h=(d?c:r)+(l&&!d?b("chars_count",{count:t.length}):""),m=t.length>s+(a?0:h.length),v=d||!m?t:t.slice(0,s-4)+"\xa0...";return(0,y.jsxs)("div",{className:x(),children:[o(v),m?(0,y.jsx)(u.r,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),p((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var f=s(73689);const k=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==k[e]}(e)?k[e]:"S_INFO"}const E=(0,p.cn)("kv-result-issues"),N=(0,p.cn)("kv-issues"),C=(0,p.cn)("kv-issue");function j(e){let{data:t,hideSeverity:s}=e;const[a,l]=n.useState(!1),o="string"===typeof t||null===t||void 0===t?void 0:t.issues,i=Array.isArray(o)&&o.length>0;return(0,y.jsxs)("div",{className:E(),children:[(0,y.jsxs)("div",{className:E("error-message"),children:[(()=>{let e;if("string"===typeof t)e=t;else{var a,l;const o=w(null===t||void 0===t||null===(a=t.error)||void 0===a?void 0:a.severity);e=(0,y.jsxs)(n.Fragment,{children:[s?null:(0,y.jsxs)(n.Fragment,{children:[(0,y.jsx)(F,{severity:o})," "]}),(0,y.jsx)("span",{className:E("error-message-text"),children:null===t||void 0===t||null===(l=t.error)||void 0===l?void 0:l.message})]})}return e})(),i&&(0,y.jsx)(r.z,{view:"normal",onClick:()=>l(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,y.jsx)(D,{hideSeverity:s,issues:o})]})}function D(e){let{issues:t,hideSeverity:s}=e;const n=null===t||void 0===t?void 0:t.reduce(((e,t)=>{var s;const n=null!==(s=t.severity)&&void 0!==s?s:10;return Math.min(e,n)}),10);return(0,y.jsx)("div",{className:N(null),children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,y.jsx)(S,{hideSeverity:s,issue:e,expanded:e===n},t)))})}function S(e){let{issue:t,hideSeverity:s,level:a=0}=e;const[l,o]=n.useState(!0),i=w(t.severity),d=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,f.kE)(t.row))return"";const{row:s,column:n}=t;return(0,f.kE)(n)?`${s}:${n}`:`line ${s}`}(t),u=t.issues,p=Array.isArray(u)&&u.length>0,h=l?"bottom":"right";return(0,y.jsxs)("div",{className:C({leaf:!p,"has-issues":p}),children:[(0,y.jsxs)("div",{className:C("line"),children:[p&&(0,y.jsx)(r.z,{view:"flat-secondary",onClick:()=>o(!l),className:C("arrow-toggle"),children:(0,y.jsx)(c.F,{direction:h,size:16})}),s?null:(0,y.jsx)(F,{severity:i}),(0,y.jsxs)("span",{className:C("message"),children:[d&&(0,y.jsx)("span",{className:C("place-text"),title:"Position",children:d}),(0,y.jsx)("div",{className:C("message-text"),children:(0,y.jsx)(g,{value:t.message,expandLabel:"Show full message"})})]}),t.issue_code?(0,y.jsxs)("span",{className:C("code"),children:["Code: ",t.issue_code]}):null]}),p&&l&&(0,y.jsx)("div",{className:C("issues"),children:(0,y.jsx)(B,{issues:u,level:a+1,expanded:l})})]})}function B(e){const{issues:t,level:s,expanded:n}=e;return(0,y.jsx)("div",{className:C("list"),children:t.map(((e,t)=>(0,y.jsx)(S,{issue:e,level:s,expanded:n},t)))})}const T={S_INFO:a.Z,S_WARNING:l.Z,S_ERROR:o.Z,S_FATAL:i.Z},R=(0,p.cn)("yql-issue-severity");function F(e){let{severity:t}=e;const s=t.slice(2).toLowerCase();return(0,y.jsxs)("span",{className:R({severity:s}),children:[(0,y.jsx)(d.J,{className:R("icon"),data:T[t]}),(0,y.jsx)("span",{className:R("title"),children:s})]})}},3948:(e,t,s)=>{s.d(t,{Z:()=>a});var n=s(34706);const a=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 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},19912:(e,t,s)=>{s.d(t,{X:()=>c});var n=s(34706),a=s(75447),l=s(19694);function o(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 i(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 r=(0,s(87578).Ge)("checkbox"),c=n.forwardRef((function(e,t){const{size:s="m",indeterminate:c,disabled:d=!1,content:u,children:p,title:h,style:m,className:v,qa:b}=e,{checked:y,inputProps:x}=(0,a.O)(e),g=u||p,f=n.createElement("span",{className:r("indicator")},n.createElement("span",{className:r("icon"),"aria-hidden":!0},c?n.createElement(o,{className:r("icon-svg",{type:"dash"})}):n.createElement(i,{className:r("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},x,{className:r("control")})),n.createElement("span",{className:r("outline")}));return n.createElement(l.J,{ref:t,title:h,style:m,size:s,disabled:d,className:r({size:s,disabled:d,indeterminate:c,checked:y},v),qa:b,control:f},g)}))},68585:(e,t,s)=>{s.d(t,{V:()=>T});var n=s(34706),a=s(77498),l=s(9446),o=s(38873),i=s(41715),r=s(47741),c=s(87578),d=s(90512),u=s(98960);const p=(0,c.Ge)("modal");function h(e){let{open:t=!1,keepMounted:s=!1,disableBodyScrollLock:c=!1,disableEscapeKeyDown:h,disableOutsideClick:m,disableFocusTrap:v,disableAutoFocus:b,focusTrap:y=!0,autoFocus:x=!0,restoreFocusRef:g,onEscapeKeyDown:f,onEnterKeyDown:k,onOutsideClick:w,onClose:E,onTransitionEnter:N,onTransitionEntered:C,onTransitionExit:j,onTransitionExited:D,children:S,style:B,contentOverflow:T="visible",className:R,contentClassName:F,"aria-labelledby":A,"aria-label":O,container:L,qa:K}=e;const _=n.useRef(null),z=n.useRef(null),[I,P]=n.useState(!1);(0,l.y)({enabled:!c&&(t||I)});const V=(0,o.H)({enabled:t||I,restoreFocusRef:g,focusTrapped:!0});return(0,d.s)({open:t,disableEscapeKeyDown:h,disableOutsideClick:m,onEscapeKeyDown:f,onEnterKeyDown:k,onOutsideClick:w,onClose:E,contentRefs:[z],type:"modal"}),n.createElement(a.Z,{nodeRef:_,in:t,addEndListener:e=>{var t;return null===(t=_.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,u.Y)(p),mountOnEnter:!s,unmountOnExit:!s,appear:!0,onEnter:()=>{P(!0),null===N||void 0===N||N()},onExit:()=>{P(!0),null===j||void 0===j||j()},onEntered:()=>{P(!1),null===C||void 0===C||C()},onExited:()=>{P(!1),null===D||void 0===D||D()}},n.createElement(i.h,{container:L},n.createElement("div",{ref:_,style:B,className:p({open:t},R),"data-qa":K},n.createElement("div",{className:p("content-aligner")},n.createElement("div",{className:p("content-wrapper")},n.createElement(r.i,{enabled:!v&&y&&t&&!I,autoFocus:!b&&x},n.createElement("div",Object.assign({ref:z,tabIndex:-1,role:"dialog","aria-modal":t,"aria-label":O,"aria-labelledby":A,className:p("content",{"has-scroll":"auto"===T},F)},V),S)))))))}var m=s(2915),v=s(72616),b=s(14561),y=s(3581);const x=JSON.parse('{"close":"Close dialog"}'),g=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),f=(0,y.e)({en:x,ru:g},"Dialog"),k=(0,c.Ge)("dialog-btn-close");function w(e){let{onClose:t}=e;return n.createElement("div",{className:k()},n.createElement(v.z,{view:"flat",size:"l",className:k("btn"),onClick:e=>t(e,{isOutsideClick:!1}),extraProps:{"aria-label":f("close")}},n.createElement(b.J,{data:m.Z,size:20})))}const E=(0,c.Ge)("dialog-body");const N=(0,c.Ge)("dialog-divider");var C=s(24874);const j=(0,c.Ge)("dialog-footer");class D extends n.Component{constructor(){super(...arguments),this.errorTooltipRef=n.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:s,textButtonCancel:a,textButtonApply:l,propsButtonCancel:o,propsButtonApply:i,preset:r,children:c,errorText:d,showError:u,renderButtons:p,className:h}=this.props,m=n.createElement("div",{className:j("button",{action:"cancel"})},n.createElement(v.z,Object.assign({view:l?"flat":"normal",size:"l",width:"max",onClick:e,disabled:s},o),a)),b=n.createElement("div",{className:j("button",{action:"apply"})},n.createElement(v.z,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:s,className:j("button-apply",{preset:r})},i),l),d&&n.createElement(C.G,{open:u,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},n.createElement("div",{className:j("error")},d)));return n.createElement("div",{className:j(null,h)},n.createElement("div",{className:j("children")},c),n.createElement("div",{className:j("bts-wrapper")},p?p(b,m):n.createElement(n.Fragment,null,a&&m,l&&b)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}D.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const S=(0,c.Ge)("dialog-header");const B=(0,c.Ge)("dialog");class T extends n.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:s,disableBodyScrollLock:a,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,size:u,contentOverflow:p="visible",className:m,modalClassName:v,hasCloseButton:b,onEscapeKeyDown:y,onEnterKeyDown:x,onOutsideClick:g,onClose:f,onTransitionEnter:k,onTransitionEntered:E,onTransitionExit:N,onTransitionExited:C,"aria-label":j,"aria-labelledby":D,qa:S}=this.props;return n.createElement(h,{open:s,contentOverflow:p,disableBodyScrollLock:a,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,onEscapeKeyDown:y,onEnterKeyDown:x,onOutsideClick:g,onClose:f,onTransitionEnter:k,onTransitionEntered:E,onTransitionExit:N,onTransitionExited:C,className:B("modal",v),"aria-label":j,"aria-labelledby":D,container:e,qa:S},n.createElement("div",{className:B({size:u,"has-close":b,"has-scroll":"auto"===p},m)},t,b&&n.createElement(w,{onClose:this.handleCloseButtonClick})))}}T.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},T.Footer=D,T.Header=function(e){const{caption:t="",insertBefore:s,insertAfter:a,className:l,id:o}=e;return n.createElement("div",{className:S(null,l)},s,n.createElement("div",{className:S("caption"),id:o},t),a)},T.Body=function(e){const{className:t,hasBorders:s=!1}=e;return n.createElement("div",{className:E({"has-borders":s},t)},e.children)},T.Divider=function(e){let{className:t}=e;return n.createElement("div",{className:N(null,t)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/896.420e70ab.chunk.js b/ydb/core/viewer/monitoring/static/js/896.420e70ab.chunk.js deleted file mode 100644 index eb54aa94dc..0000000000 --- a/ydb/core/viewer/monitoring/static/js/896.420e70ab.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[896],{55982:(e,t,n)=>{n.d(t,{U:()=>c});var a=n(34706),s=n(72616),o=n(16318),l=n(47945),i=n(51403),r=n(10161);function c(e){let{children:t,onConfirmAction:n,onConfirmActionSuccess:c,dialogHeader:d,dialogText:u,retryButtonText:p,buttonDisabled:h=!1,buttonView:m="action",buttonClassName:b,withPopover:v=!1,popoverContent:y,popoverPlacement:f="right",popoverDisabled:g=!0}=e;const[E,k]=a.useState(!1),[w,x]=a.useState(!1),[C,D]=a.useState(!1),N=()=>(0,r.jsx)(s.z,{onClick:()=>k(!0),view:m,disabled:h,loading:!h&&w,className:b,children:t});return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(l.g,{visible:E,header:d,text:u,withRetry:C,retryButtonText:p,onConfirm:async e=>{x(!0),await n(e)},onConfirmActionSuccess:async()=>{D(!1);try{await(null===c||void 0===c?void 0:c())}finally{x(!1)}},onConfirmActionError:e=>{D((0,i.q)(e)),x(!1)},onClose:()=>{k(!1)}}),v?(0,r.jsx)(o.J,{content:y,placement:f,disabled:g,children:N()}):N()]})}},47945:(e,t,n)=>{n.d(t,{g:()=>v});var a=n(34706),s=n(3948),o=n(15268),l=n(19912),i=n(68585),r=n(14561),c=n(99294),d=n(37711);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"}'),p=(0,d.wZ)("ydb-critical-action-dialog",{en:u});var h=n(10161);const m=(0,c.cn)("ydb-critical-dialog"),b=e=>403===e.status?p("no-rights-error"):e.statusText?e.statusText:p("default-error");function v(e){let{visible:t,header:n,text:c,withRetry:d,retryButtonText:u,withCheckBox:v,onClose:y,onConfirm:f,onConfirmActionSuccess:g,onConfirmActionError:E}=e;const[k,w]=a.useState(!1),[x,C]=a.useState(),[D,N]=a.useState(!1),B=async e=>(w(!0),f(e).then((()=>{g(),y()})).catch((e=>{E(e),C(e)})).finally((()=>{w(!1)})));return(0,h.jsx)(i.V,{open:t,hasCloseButton:!1,className:m(),size:"s",onClose:y,onTransitionExited:()=>{C(void 0),N(!1)},children:x?(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(i.V.Header,{caption:n}),(0,h.jsx)(i.V.Body,{className:m("body"),children:(0,h.jsxs)("div",{className:m("body-message",{error:!0}),children:[(0,h.jsx)("span",{className:m("error-icon"),children:(0,h.jsx)(s.Z,{width:"24",height:"22"})}),b(x)]})}),(0,h.jsx)(i.V.Footer,{loading:!1,preset:"default",textButtonApply:d?u||p("button-retry"):void 0,textButtonCancel:p("button-close"),onClickButtonApply:()=>B(!0),onClickButtonCancel:y})]}):(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(i.V.Header,{caption:n}),(0,h.jsxs)(i.V.Body,{className:m("body"),children:[(0,h.jsxs)("div",{className:m("body-message",{warning:!0}),children:[(0,h.jsx)("span",{className:m("warning-icon"),children:(0,h.jsx)(r.J,{data:o.Z,size:24})}),c]}),v?(0,h.jsx)(l.X,{checked:D,onUpdate:N,children:p("checkbox-text")}):null]}),(0,h.jsx)(i.V.Footer,{loading:k,preset:"default",textButtonApply:p("button-confirm"),textButtonCancel:p("button-cancel"),propsButtonApply:{type:"submit",disabled:v&&!D},onClickButtonCancel:y,onClickButtonApply:()=>B()})]})})}},51403:(e,t,n)=>{n.d(t,{q:()=>a});const a=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},49263:(e,t,n)=>{n.d(t,{K:()=>w});n(34706);var a=n(46878),s=n(65e3),o=n(25665),l=n(99294),i=n(14075),r=n(70340),c=n(53458),d=n(55842),u=n(73689),p=n(62508),h=n(41591),m=n(90808),b=n(20760),v=n(73287),y=n(37711);const f=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"}'),g=(0,y.wZ)("ydb-vDisk-info",{en:f});var E=n(10161);const k=(0,l.cn)("ydb-vdisk-info");function w(e){var t,n;let{data:l,withVDiskPageLink:c,withTitle:p,...y}=e;const f=(0,d.ix)(s.VH),{AllocatedSize:w,DiskSpace:C,FrontQueues:D,Guid:N,Replicated:B,VDiskState:j,VDiskSlotId:S,Kind:T,SatisfactionRank:K,AvailableSize:R,HasUnreadableBlobs:F,IncarnationGuid:O,InstanceGuid:L,StoragePoolName:A,ReadThroughput:z,WriteThroughput:I,PDiskId:V,NodeId:P}=l||{},G=[];var J,q;((0,o.D)(S)&&G.push({label:g("slot-id"),value:S}),(0,o.D)(A)&&G.push({label:g("pool-name"),value:A}),(0,o.D)(j)&&G.push({label:g("state-status"),value:j}),Number(w)>=0&&Number(R)>=0&&G.push({label:g("size"),value:(0,E.jsx)(b.y,{value:w,capacity:Number(w)+Number(R),formatValues:i.q3,colorizeProgress:!0})}),(0,o.D)(T)&&G.push({label:g("kind"),value:T}),(0,o.D)(N)&&G.push({label:g("guid"),value:N}),(0,o.D)(O)&&G.push({label:g("incarnation-guid"),value:O}),(0,o.D)(L)&&G.push({label:g("instance-guid"),value:L}),(0,o.D)(B)&&G.push({label:g("replication-status"),value:g(B?"yes":"no")}),(0,o.D)(C)&&G.push({label:g("space-status"),value:(0,E.jsx)(v.J,{status:C})}),(0,o.D)(null===K||void 0===K||null===(t=K.FreshRank)||void 0===t?void 0:t.Flag))&&G.push({label:g("fresh-rank-satisfaction"),value:(0,E.jsx)(v.J,{status:null===K||void 0===K||null===(J=K.FreshRank)||void 0===J?void 0:J.Flag})});(0,o.D)(null===K||void 0===K||null===(n=K.LevelRank)||void 0===n?void 0:n.Flag)&&G.push({label:g("level-rank-satisfaction"),value:(0,E.jsx)(v.J,{status:null===K||void 0===K||null===(q=K.LevelRank)||void 0===q?void 0:q.Flag})});(0,o.D)(D)&&G.push({label:g("front-queues"),value:(0,E.jsx)(v.J,{status:D})}),(0,o.D)(F)&&G.push({label:g("has-unreadable-blobs"),value:g(F?"yes":"no")}),(0,o.D)(z)&&G.push({label:g("read-throughput"),value:(0,u.Qt)(z)}),(0,o.D)(I)&&G.push({label:g("write-throughput"),value:(0,u.Qt)(I)});if((0,o.D)(V)&&(0,o.D)(P)&&(0,o.D)(S)){const e=[];if(c){const t=(0,a.By)(S,V,P);e.push((0,E.jsx)(m.j,{title:g("vdisk-page"),url:t,external:!1},t))}if(f){const t=(0,r.yf)({nodeId:P,pDiskId:V,vDiskSlotId:S});e.push((0,E.jsx)(m.j,{title:g("developer-ui"),url:t},t))}e.length&&G.push({label:g("links"),value:(0,E.jsx)("div",{className:k("links"),children:e})})}const U=l&&p?(0,E.jsx)(x,{data:l}):null;return(0,E.jsx)(h._P,{info:G,title:U,...y})}function x(e){let{data:t}=e;return(0,E.jsxs)("div",{className:k("title"),children:[g("vdiks-title"),(0,E.jsx)(p.A,{status:(0,c.b2)(t.Severity),name:t.StringifiedId})]})}},3948:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(34706);const s=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 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},19912:(e,t,n)=>{n.d(t,{X:()=>c});var a=n(34706),s=n(75447),o=n(19694);function l(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.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 r=(0,n(87578).Ge)("checkbox"),c=a.forwardRef((function(e,t){const{size:n="m",indeterminate:c,disabled:d=!1,content:u,children:p,title:h,style:m,className:b,qa:v}=e,{checked:y,inputProps:f}=(0,s.O)(e),g=u||p,E=a.createElement("span",{className:r("indicator")},a.createElement("span",{className:r("icon"),"aria-hidden":!0},c?a.createElement(l,{className:r("icon-svg",{type:"dash"})}):a.createElement(i,{className:r("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},f,{className:r("control")})),a.createElement("span",{className:r("outline")}));return a.createElement(o.J,{ref:t,title:h,style:m,size:n,disabled:d,className:r({size:n,disabled:d,indeterminate:c,checked:y},b),qa:v,control:E},g)}))},68585:(e,t,n)=>{n.d(t,{V:()=>T});var a=n(34706),s=n(77498),o=n(9446),l=n(38873),i=n(41715),r=n(47741),c=n(87578),d=n(90512),u=n(98960);const p=(0,c.Ge)("modal");function h(e){let{open:t=!1,keepMounted:n=!1,disableBodyScrollLock:c=!1,disableEscapeKeyDown:h,disableOutsideClick:m,disableFocusTrap:b,disableAutoFocus:v,focusTrap:y=!0,autoFocus:f=!0,restoreFocusRef:g,onEscapeKeyDown:E,onEnterKeyDown:k,onOutsideClick:w,onClose:x,onTransitionEnter:C,onTransitionEntered:D,onTransitionExit:N,onTransitionExited:B,children:j,style:S,contentOverflow:T="visible",className:K,contentClassName:R,"aria-labelledby":F,"aria-label":O,container:L,qa:A}=e;const z=a.useRef(null),I=a.useRef(null),[V,P]=a.useState(!1);(0,o.y)({enabled:!c&&(t||V)});const G=(0,l.H)({enabled:t||V,restoreFocusRef:g,focusTrapped:!0});return(0,d.s)({open:t,disableEscapeKeyDown:h,disableOutsideClick:m,onEscapeKeyDown:E,onEnterKeyDown:k,onOutsideClick:w,onClose:x,contentRefs:[I],type:"modal"}),a.createElement(s.Z,{nodeRef:z,in:t,addEndListener:e=>{var t;return null===(t=z.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,u.Y)(p),mountOnEnter:!n,unmountOnExit:!n,appear:!0,onEnter:()=>{P(!0),null===C||void 0===C||C()},onExit:()=>{P(!0),null===N||void 0===N||N()},onEntered:()=>{P(!1),null===D||void 0===D||D()},onExited:()=>{P(!1),null===B||void 0===B||B()}},a.createElement(i.h,{container:L},a.createElement("div",{ref:z,style:S,className:p({open:t},K),"data-qa":A},a.createElement("div",{className:p("content-aligner")},a.createElement("div",{className:p("content-wrapper")},a.createElement(r.i,{enabled:!b&&y&&t&&!V,autoFocus:!v&&f},a.createElement("div",Object.assign({ref:I,tabIndex:-1,role:"dialog","aria-modal":t,"aria-label":O,"aria-labelledby":F,className:p("content",{"has-scroll":"auto"===T},R)},G),j)))))))}var m=n(2915),b=n(72616),v=n(14561),y=n(3581);const f=JSON.parse('{"close":"Close dialog"}'),g=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),E=(0,y.e)({en:f,ru:g},"Dialog"),k=(0,c.Ge)("dialog-btn-close");function w(e){let{onClose:t}=e;return a.createElement("div",{className:k()},a.createElement(b.z,{view:"flat",size:"l",className:k("btn"),onClick:e=>t(e,{isOutsideClick:!1}),extraProps:{"aria-label":E("close")}},a.createElement(v.J,{data:m.Z,size:20})))}const x=(0,c.Ge)("dialog-body");const C=(0,c.Ge)("dialog-divider");var D=n(24874);const N=(0,c.Ge)("dialog-footer");class B extends a.Component{constructor(){super(...arguments),this.errorTooltipRef=a.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:s,textButtonApply:o,propsButtonCancel:l,propsButtonApply:i,preset:r,children:c,errorText:d,showError:u,renderButtons:p,className:h}=this.props,m=a.createElement("div",{className:N("button",{action:"cancel"})},a.createElement(b.z,Object.assign({view:o?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},l),s)),v=a.createElement("div",{className:N("button",{action:"apply"})},a.createElement(b.z,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:N("button-apply",{preset:r})},i),o),d&&a.createElement(D.G,{open:u,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},a.createElement("div",{className:N("error")},d)));return a.createElement("div",{className:N(null,h)},a.createElement("div",{className:N("children")},c),a.createElement("div",{className:N("bts-wrapper")},p?p(v,m):a.createElement(a.Fragment,null,s&&m,o&&v)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}B.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const j=(0,c.Ge)("dialog-header");const S=(0,c.Ge)("dialog");class T extends a.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:s,disableEscapeKeyDown:o,disableOutsideClick:l,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,size:u,contentOverflow:p="visible",className:m,modalClassName:b,hasCloseButton:v,onEscapeKeyDown:y,onEnterKeyDown:f,onOutsideClick:g,onClose:E,onTransitionEnter:k,onTransitionEntered:x,onTransitionExit:C,onTransitionExited:D,"aria-label":N,"aria-labelledby":B,qa:j}=this.props;return a.createElement(h,{open:n,contentOverflow:p,disableBodyScrollLock:s,disableEscapeKeyDown:o,disableOutsideClick:l,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,onEscapeKeyDown:y,onEnterKeyDown:f,onOutsideClick:g,onClose:E,onTransitionEnter:k,onTransitionEntered:x,onTransitionExit:C,onTransitionExited:D,className:S("modal",b),"aria-label":N,"aria-labelledby":B,container:e,qa:j},a.createElement("div",{className:S({size:u,"has-close":v,"has-scroll":"auto"===p},m)},t,v&&a.createElement(w,{onClose:this.handleCloseButtonClick})))}}T.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},T.Footer=B,T.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:s,className:o,id:l}=e;return a.createElement("div",{className:j(null,o)},n,a.createElement("div",{className:j("caption"),id:l},t),s)},T.Body=function(e){const{className:t,hasBorders:n=!1}=e;return a.createElement("div",{className:x({"has-borders":n},t)},e.children)},T.Divider=function(e){let{className:t}=e;return a.createElement("div",{className:C(null,t)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/949.6da34892.chunk.js b/ydb/core/viewer/monitoring/static/js/949.6da34892.chunk.js deleted file mode 100644 index b50696e149..0000000000 --- a/ydb/core/viewer/monitoring/static/js/949.6da34892.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[949],{28265:(e,t,a)=>{"use strict";a.d(t,{J:()=>b});var n=a(64485),r=a(15327),s=a(67386),i=a(74647),o=a.n(i),l=a(78759),c=a(4969);const d=l.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"}),u=(0,s.P1)((e=>e),(e=>d.endpoints.getTabletsInfo.select(e)),{argsMemoize:s.PP,argsMemoizeOptions:{equalityCheck:o()}}),p=(0,s.P1)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),m=(0,s.P1)(((e,t)=>p(e,t)),(e=>(0,c.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 h=a(99294),v=a(55842),x=a(72427),g=a(10161);const y=(0,h.cn)("tablets");function b(e){let{nodeId:t,path:a,database:s,className:i}=e;const[o]=(0,v.Rj)();let l={};const c=void 0===t?void 0:String(t);void 0!==c?l={nodeId:c,database:s}:a&&(l={path:a,database:s});const{currentData:u,isFetching:p,error:h}=d.useGetTabletsInfoQuery(0===Object.keys(l).length?n.CN:l,{pollingInterval:o}),b=p&&void 0===u,f=(0,v.ix)((e=>m(e,l)));return(0,g.jsxs)("div",{className:y(null,i),children:[h?(0,g.jsx)(r.V,{error:h}):null,u||b?(0,g.jsx)(x.O,{tablets:f,database:s,loading:b}):null]})}},1513:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>zv});var n=a(34706),r=a(42152),s=a(99495),i=a(93225),o=a(48653),l=a(28206),c=a(99294),d=a(10161);const u=(0,c.cn)("kv-split"),p=[0,100],m=[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||p;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,s=n||m;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=m,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,x,g=a(85709),y=a(67386),b=a(64485);let f,E;var S;let T,N;var j,C,w,P,I;let D;var R,_,A,O,M,k,L;!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"}(v||(v={})),function(e){e.UNKNOWN="UNKNOWN",e.USER="USER",e.GROUP="GROUP"}(x||(x={})),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"}(f||(f={})),function(e){e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl"}(E||(E={})),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"}(T||(T={})),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"}(N||(N={})),function(e){e.ECdcStreamModeInvalid="ECdcStreamModeInvalid",e.ECdcStreamModeKeysOnly="ECdcStreamModeKeysOnly",e.ECdcStreamModeUpdate="ECdcStreamModeUpdate",e.ECdcStreamModeNewImage="ECdcStreamModeNewImage",e.ECdcStreamModeOldImage="ECdcStreamModeOldImage",e.ECdcStreamModeNewAndOldImages="ECdcStreamModeNewAndOldImages"}(j||(j={})),function(e){e.ECdcStreamFormatInvalid="ECdcStreamFormatInvalid",e.ECdcStreamFormatProto="ECdcStreamFormatProto",e.ECdcStreamFormatJson="ECdcStreamFormatJson"}(C||(C={})),function(e){e.ECdcStreamStateInvalid="ECdcStreamStateInvalid",e.ECdcStreamStateReady="ECdcStreamStateReady",e.ECdcStreamStateDisabled="ECdcStreamStateDisabled"}(w||(w={})),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"}(I||(I={})),function(e){e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS"}(D||(D={})),function(e){e.SysLog="SysLog",e.Log="Log",e.Data="Data",e.External="External"}(R||(R={})),function(e){e.Unspecified="Unspecified",e.Freeze="Freeze",e.Unfreeze="Unfreeze"}(_||(_={})),function(e){e.ColumnCacheNone="ColumnCacheNone",e.ColumnCacheOnce="ColumnCacheOnce",e.ColumnCacheEver="ColumnCacheEver"}(A||(A={})),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"}(O||(O={})),function(e){e.CompactionStrategyUnset="CompactionStrategyUnset",e.CompactionStrategyGenerational="CompactionStrategyGenerational",e.CompactionStrategySharded="CompactionStrategySharded"}(M||(M={})),function(e){e.EIndexTypeInvalid="EIndexTypeInvalid",e.EIndexTypeGlobal="EIndexTypeGlobal",e.EIndexTypeGlobalAsync="EIndexTypeGlobalAsync"}(k||(k={})),function(e){e.EIndexStateInvalid="EIndexStateInvalid",e.EIndexStateReady="EIndexStateReady",e.EIndexStateNotReady="EIndexStateNotReady",e.EIndexStateWriteOnly="EIndexStateWriteOnly"}(L||(L={}));const z={[E.EPathSubTypeSyncIndexImplTable]:"index_table",[E.EPathSubTypeAsyncIndexImplTable]:"index_table",[E.EPathSubTypeStreamImpl]:void 0,[E.EPathSubTypeEmpty]:void 0},q={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:"database",[f.EPathTypeExtSubDomain]:"database",[f.EPathTypeDir]:"directory",[f.EPathTypeColumnStore]:"directory",[f.EPathTypeTable]:"table",[f.EPathTypeTableIndex]:"index",[f.EPathTypeColumnTable]:"column_table",[f.EPathTypeCdcStream]:"stream",[f.EPathTypePersQueueGroup]:"topic",[f.EPathTypeExternalDataSource]:"external_data_source",[f.EPathTypeExternalTable]:"external_table",[f.EPathTypeView]:"view",[f.EPathTypeReplication]:"async_replication"},U={table:f.EPathTypeTable,index:f.EPathTypeTableIndex,column_table:f.EPathTypeColumnTable,external_table:f.EPathTypeExternalTable,view:f.EPathTypeView},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.EPathTypeDir,t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"directory";return t&&z[t]||q[e]||a},Q={[E.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[E.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[E.EPathSubTypeStreamImpl]:void 0,[E.EPathSubTypeEmpty]:void 0},G={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:"Database",[f.EPathTypeExtSubDomain]:"Database",[f.EPathTypeDir]:"Directory",[f.EPathTypeTable]:"Table",[f.EPathTypeTableIndex]:"Secondary Index",[f.EPathTypeColumnStore]:"Tablestore",[f.EPathTypeColumnTable]:"Column-oriented table",[f.EPathTypeCdcStream]:"Changefeed",[f.EPathTypePersQueueGroup]:"Topic",[f.EPathTypeExternalDataSource]:"External Data Source",[f.EPathTypeExternalTable]:"External Table",[f.EPathTypeView]:"View",[f.EPathTypeReplication]:"Async Replication"},B={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},V=e=>e&&B[e],H={[f.EPathTypeTable]:!0,[f.EPathTypeColumnTable]:!0,[f.EPathTypeExternalTable]:!0,[f.EPathTypeView]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeReplication]:!1},$=e=>{var t;return null!==(t=e&&H[e])&&void 0!==t&&t},Z={[E.EPathSubTypeSyncIndexImplTable]:!0,[E.EPathSubTypeAsyncIndexImplTable]:!0,[E.EPathSubTypeStreamImpl]:!1,[E.EPathSubTypeEmpty]:!1},W=e=>{var t;return null!==(t=e&&Z[e])&&void 0!==t&&t},J={[f.EPathTypeColumnStore]:!0,[f.EPathTypeColumnTable]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},K=e=>{var t;return null!==(t=e&&J[e])&&void 0!==t&&t},X={[f.EPathTypeSubDomain]:!0,[f.EPathTypeExtSubDomain]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},Y=e=>{var t;return null!==(t=e&&X[e])&&void 0!==t&&t},ee={[f.EPathTypeCdcStream]:!0,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeInvalid]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},te=e=>{var t;return null!==(t=e&&ee[e])&&void 0!==t&&t},ae={[E.EPathSubTypeSyncIndexImplTable]:!0,[E.EPathSubTypeAsyncIndexImplTable]:!0,[E.EPathSubTypeStreamImpl]:!1,[E.EPathSubTypeEmpty]:!1},ne={[f.EPathTypeCdcStream]:!0,[f.EPathTypePersQueueGroup]:!0,[f.EPathTypeExternalDataSource]:!0,[f.EPathTypeExternalTable]:!0,[f.EPathTypeView]:!0,[f.EPathTypeReplication]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1},re=(e,t)=>{var a;return null!==(a=t&&ae[t]||e&&ne[e])&&void 0!==a&&a},se=(f.EPathTypeCdcStream,f.EPathTypePersQueueGroup,f.EPathTypeInvalid,f.EPathTypeColumnStore,f.EPathTypeColumnTable,f.EPathTypeDir,f.EPathTypeTable,f.EPathTypeSubDomain,f.EPathTypeTableIndex,f.EPathTypeExtSubDomain,f.EPathTypeExternalDataSource,f.EPathTypeExternalTable,f.EPathTypeView,f.EPathTypeReplication,e=>e===f.EPathTypeExternalTable),ie=e=>e===f.EPathTypeTable,oe=e=>e===f.EPathTypeView;var le=a(78759);const ce=le.h.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async(e,t)=>{let{paths:a,database:n}=e,{signal:r}=t;try{return{data:await Promise.all(a.map((e=>window.api.getDescribe({path:e,database:n},{signal:r}))))}}catch(s){return{error:s}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:r}=t;try{return{data:await window.api.getDescribe({path:a,database:n},{signal:r})}}catch(s){return{error:s}}},keepUnusedDataFor:0,providesTags:["All"]})})}),de=(0,y.P1)((e=>e),((e,t)=>t),((e,t)=>ce.endpoints.getOverview.select({path:e,database:t}))),ue=(0,y.P1)((e=>e),((e,t,a)=>de(t,a)),((e,t)=>t(e).data)),pe=(0,y.P1)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=ue(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>te(t)?null===a||void 0===a?void 0:a.map((t=>{let{Name:a}=t;return e+"/"+a})):void 0));function me(e){let{paths:t,database:a,autoRefreshInterval:n}=e;const[r,...s]=t,{currentData:i,isFetching:o,error:l}=ce.useGetOverviewQuery({path:r,database:a},{pollingInterval:n}),{currentData:c,isFetching:d,error:u}=ce.useGetMultiOverviewQuery(s.length?{paths:s,database:a}:b.CN,{pollingInterval:n});return{loading:o&&void 0===i||d&&void 0===c,error:l||u,mergedDescribe:[i,...null!==c&&void 0!==c?c:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var he=a(27810),ve=a(55842),xe=a(53785),ge=a(53096),ye=a(72555),be=a(26836),fe=a(74003),Ee=a(46878),Se=a(39202),Te=a(27084),Ne=a(26390),je=a(19912),Ce=a(15327),we=a(66498),Pe=a(51992),Ie=a(32678),De=a(14075),Re=a(42542),_e=a.n(Re),Ae=a(78276);const Oe=(0,c.cn)("heatmap"),Me={width:0,height:0},ke=10,Le=2,ze=e=>{const[t,a]=n.useState(Me),{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*(ke+Le),i=Math.floor(n/r)*(ke+Le);e.fillStyle=a.color||"grey",e.fillRect(s,i,ke,ke)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/(ke+Le)),s=Math.ceil(r.length/n);a({width:t,height:s*(ke+Le),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=ke+Le,s=ke+Le,i=Math.floor(e/r);return n*Math.floor(a/s)+i},u=_e()(((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),p=r[u];if(p){const n={name:p.currentMetric,value:p.formattedValue};e.showTooltip(void 0,p,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:Oe("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,Ee.fK)(t);return`https://${[a,Ae.EZ,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},qe={r:255,g:4,b:0},Ue={r:255,g:219,b:77},Fe={r:59,g:201,b:53},Qe={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}},Ge=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Be=(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`#${Ge(t)}${Ge(a)}${Ge(n)}`})(e)))},Ve=e=>{const t=Math.floor(e/2),a=t+1;return[...Be(e%2===0?t:t+1,Fe,Ue),...Be(a,Ue,qe).slice(1)]},He=(e,t)=>{const a=new Set,n=Qe[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]}},$e=(0,c.cn)("histogram"),Ze=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:$e("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:s,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},We=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=He(a,t),s=Ve(50),i=(r-n)/50,o=s.map(((e,t)=>({color:e,count:0,leftBound:(0,De.uf)(n+t*i),rightBound:(0,De.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:$e(),children:(0,d.jsxs)("div",{className:$e("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(Ze,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:$e("x-min"),children:(0,De.uf)(n)}),(0,d.jsx)("div",{className:$e("x-max"),children:(0,De.uf)(r)}),(0,d.jsx)("div",{className:$e("y-min"),children:"0"}),(0,d.jsx)("div",{className:$e("y-max"),children:(0,De.uf)(l)})]})})},Je=(0,c.cn)("heatmap"),Ke=Ve(500),Xe=e=>{let{path:t,database:a}=e;const r=(0,ve.zL)(),s=n.createRef(),[i]=(0,ve.Rj)(),{currentData:o,isFetching:l,error:c}=Pe.Vc.useGetHeatmapTabletsInfoQuery({path:t,database:a},{pollingInterval:i}),u=l&&void 0===o,{tablets:p=[],metrics:m}=o||{},{sort:h,heatmap:v,currentMetric:x}=(0,ve.ix)((e=>e.heatmap)),g=function(){r((0,Ie.hJ)(...arguments))},y=()=>{r((0,Ie.i8)())},b=e=>{r((0,Pe.U_)({currentMetric:e[0]}))},f=()=>{r((0,Pe.U_)({sort:!h}))},E=()=>{r((0,Pe.U_)({heatmap:!v}))},S=()=>{const{min:e,max:t}=He(x,p),a=p.map((a=>{var n;const r=x&&Number(null===(n=a.metrics)||void 0===n?void 0:n[x]),s=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),i=Ke[s];return{...a,color:i,value:r,formattedValue:(0,De.uf)(r),currentMetric:x}})),n=h?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:s,className:Je("items"),children:(0,d.jsx)(ze,{tablets:n,parentRef:s,showTooltip:g,hideTooltip:y})})};return u?(0,d.jsx)(we.a,{}):(()=>{const{min:e,max:t}=He(x,p);let a;return c&&!o||(a=v?S():(0,d.jsx)(We,{tablets:p,currentMetric:x,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:Je(),children:[(0,d.jsxs)("div",{className:Je("filters"),children:[(0,d.jsx)(Ne.P,{className:Je("heatmap-select"),value:x?[x]:[],options:m,onUpdate:b,width:200}),(0,d.jsx)("div",{className:Je("sort-checkbox"),children:(0,d.jsx)(je.X,{onUpdate:f,checked:h,children:"Sort"})}),(0,d.jsx)("div",{className:Je("histogram-checkbox"),children:(0,d.jsx)(je.X,{onUpdate:E,checked:v,children:"Heatmap"})}),(0,d.jsxs)("div",{className:Je("limits"),children:[(0,d.jsxs)("div",{className:Je("limits-block"),children:[(0,d.jsx)("div",{className:Je("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:Je("limits-value"),children:Number.isInteger(e)?(0,De.uf)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:Je("limits-block"),children:[(0,d.jsx)("div",{className:Je("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:Je("limits-value"),children:Number.isInteger(t)?(0,De.uf)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:Je("limits-block"),children:[(0,d.jsx)("div",{className:Je("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:Je("limits-value"),children:(0,De.uf)(p.length)})]})]})]}),c?(0,d.jsx)(Ce.V,{error:c}):null,a]})})()};var Ye=a(26612),et=a(71037),tt=a(74116),at=a(74640);const nt=le.h.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getOperationList(e,{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});var rt=a(34973),st=a(17784),it=a(37711);const ot=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)"}'),lt=(0,it.wZ)("ydb-operations",{en:ot}),ct={ID:"id",STATUS:"status",CREATED_BY:"created_by",CREATE_TIME:"create_time",END_TIME:"end_time",DURATION:"duration"},dt={[ct.ID]:lt("column_operationId"),[ct.STATUS]:lt("column_status"),[ct.CREATED_BY]:lt("column_createdBy"),[ct.CREATE_TIME]:lt("column_createTime"),[ct.END_TIME]:lt("column_endTime"),[ct.DURATION]:lt("column_duration")},ut=(ct.ID,ct.STATUS,ct.CREATED_BY,ct.CREATE_TIME,ct.END_TIME,ct.DURATION,[{value:"export",content:lt("kind_export")},{value:"ss/backgrounds",content:lt("kind_ssBackgrounds")},{value:"buildindex",content:lt("kind_buildIndex")}]),pt=(0,c.cn)("operations");function mt(e){let{kind:t,searchValue:a,entitiesCountCurrent:r,entitiesCountTotal:s,entitiesLoading:i,handleKindChange:o,handleSearchChange:l}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(st.o,{value:a,onChange:l,placeholder:lt("pleaceholder_search"),className:pt("search")}),(0,d.jsx)(Ne.P,{value:[t],width:150,options:ut,onUpdate:e=>o(e[0])}),(0,d.jsx)(rt.C,{label:lt("label_operations"),loading:i,total:s,current:r})]})}var ht=a(42805),vt=a(23795),xt=a(61168);let gt,yt;!function(e){e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR"}(gt||(gt={})),function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.STATE_PREPARING="STATE_PREPARING",e.STATE_TRANSFERING_DATA="STATE_TRANSFERING_DATA",e.STATE_APPLYING="STATE_APPLYING",e.STATE_DONE="STATE_DONE",e.STATE_CANCELLATION="STATE_CANCELLATION",e.STATE_CANCELLED="STATE_CANCELLED",e.STATE_REJECTION="STATE_REJECTION",e.STATE_REJECTED="STATE_REJECTED"}(yt||(yt={}));var bt=a(83627);var ft=a(75475);const Et=ft.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function St(e){var t;let{database:a}=e;const[r]=(0,ve.Rj)(),{kind:o,searchValue:l,pageSize:c,pageToken:u,handleKindChange:p,handleSearchChange:m}=function(){var e,t,a;const[n,r]=(0,s.useQueryParams)({kind:s.StringParam,search:s.StringParam,pageSize:s.NumberParam,pageToken:s.StringParam});return{kind:Et.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:h,isFetching:v,error:x}=nt.useGetOperationListQuery({database:a,kind:o,page_size:c,page_token:u},{pollingInterval:r}),g=n.useMemo((()=>null!==h&&void 0!==h&&h.operations?h.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(l.toLowerCase())})):[]),[null===h||void 0===h?void 0:h.operations,l]);return(0,i.u)(x)?(0,d.jsx)(et.J,{position:"left"}):(0,d.jsxs)(at.l,{children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(mt,{kind:o,searchValue:l,entitiesCountCurrent:g.length,entitiesCountTotal:null===h||void 0===h||null===(t=h.operations)||void 0===t?void 0:t.length,entitiesLoading:v,handleKindChange:p,handleSearchChange:m})}),x?(0,d.jsx)(Ce.V,{error:x}):null,(0,d.jsx)(at.l.Table,{loading:v,className:pt("table"),children:h?(0,d.jsx)(tt.G,{columns:[{name:ct.ID,header:dt[ct.ID],width:340,render:e=>{let{row:t}=e;return t.id?(0,d.jsx)(xt.l,{placement:["top","bottom"],content:t.id,children:t.id}):he.jX}},{name:ct.STATUS,header:dt[ct.STATUS],render:e=>{let{row:t}=e;return t.status?(0,d.jsx)(vt.x,{color:t.status===gt.SUCCESS?"positive":"danger",children:t.status}):he.jX}},{name:ct.CREATED_BY,header:dt[ct.CREATED_BY],render:e=>{let{row:t}=e;return t.created_by?t.created_by:he.jX}},{name:ct.CREATE_TIME,header:dt[ct.CREATE_TIME],render:e=>{let{row:t}=e;return t.create_time?(0,De.o0)((0,bt.aR)(t.create_time)):he.jX},sortAccessor:e=>e.create_time?(0,bt.aR)(e.create_time):0},{name:ct.END_TIME,header:dt[ct.END_TIME],render:e=>{let{row:t}=e;return t.end_time?(0,De.o0)((0,bt.aR)(t.end_time)):he.jX},sortAccessor:e=>e.end_time?(0,bt.aR)(e.end_time):Number.MAX_SAFE_INTEGER},{name:ct.DURATION,header:dt[ct.DURATION],render:e=>{let{row:t}=e,a=0;if(!t.create_time)return he.jX;const n=(0,bt.aR)(t.create_time);a=t.end_time?(0,bt.aR)(t.end_time)-n:Date.now()-n;const r=a>he.RQ*he.NO?(0,ht.x9)(a).format("hh:mm:ss"):(0,ht.x9)(a).format("mm:ss");return t.end_time?r:lt("label_duration-ongoing",{value:r})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,bt.aR)(e.create_time);return e.end_time?(0,bt.aR)(e.end_time)-t:Date.now()-t}}],data:g,emptyDataMessage:lt("title_empty")}):null})]})}var Tt=a(92025),Nt=a(28265),jt=a(22877),Ct=a(83751);function wt(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const Pt=le.h.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async e=>{let{database:t,path:a}=e;try{var n,r;const e=await window.api.sendQuery({query:wt(a),database:t,action:"execute-scan"},{withRetries:!0});return(0,Ct.gW)(e)?{error:e}:{data:(null===e||void 0===e||null===(n=e.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(s){return{error:s}}},providesTags:["All"]})}),overrideExisting:"throw"});var It=a(2634),Dt=a(43926);const Rt=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:"}'),_t=(0,it.wZ)("ydb-schema-viewer",{en:Rt}),At=(0,c.cn)("schema-viewer");const Ot=e=>{let{tableData:t,extended:a,type:n}=e;const r="primary"===n?function(e){return e.filter((e=>void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name)).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).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:At("keys",{summary:!a,type:n}),children:[(0,d.jsx)("div",{className:At("keys-header"),children:_t("primary"===n?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:At("keys-values"),children:[" "+i.join(", "),o.length?(0,d.jsx)(Dt.f,{className:At("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:At("popup-content"),children:o.map((e=>(0,d.jsx)("div",{className:At("popup-item"),children:e},e)))}),children:(0,d.jsx)(It._,{className:At("keys-label"),children:`+${o.length}`})}):null]})]}):null};var Mt=a(71624);const kt="autoIncrement",Lt="defaultValue",zt="familyName",qt="prefferedPoolKind",Ut="columnCodec",Ft={name:"id",get header(){return _t("column-title.id")},width:60,render:e=>{let{row:t}=e;return t.id}},Qt={name:"name",get header(){return _t("column-title.name")},width:100,render:e=>{let{row:t}=e;return t.name}},Gt={name:"type",get header(){return _t("column-title.type")},width:100,render:e=>{let{row:t}=e;return t.type}},Bt={name:"notNull",get header(){return _t("column-title.notNull")},width:100,defaultOrder:Mt.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.notNull)return"\u2713"}},Vt={name:kt,get header(){return _t("column-title.autoIncrement")},width:100,defaultOrder:Mt.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.autoIncrement)return"\u2713"}},Ht={name:Lt,get header(){return _t("column-title.defaultValue")},width:100,render:e=>{let{row:t}=e;return String(t.defaultValue)}},$t={name:zt,get header(){return _t("column-title.family")},width:100,render:e=>{let{row:t}=e;return t.familyName}},Zt={name:qt,get header(){return _t("column-title.media")},width:100,render:e=>{let{row:t}=e;return t.prefferedPoolKind}},Wt={name:Ut,get header(){return _t("column-title.compression")},width:100,render:e=>{let{row:t}=e;return t.columnCodec}};function Jt(){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,s;const{Id:i,Name:o,NotNull:l,Type:c,Family:d,DefaultFromSequence:u,DefaultFromLiteral:p}=e,m=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===i)))&&void 0!==a?a:-1,h=d?t[d].Name:void 0,v=d?null===(r=t[d].StorageConfig)||void 0===r||null===(s=r.Data)||void 0===s?void 0:s.PreferredPoolKind:void 0,x=d?function(e){if(e)return e===T.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[d].ColumnCodec):void 0;return{id:i,name:o,keyColumnIndex:m,type:c,notNull:l,autoIncrement:Boolean(u),defaultValue:Object.values((null===p||void 0===p?void 0:p.value)||{})[0]||"-",familyName:h,prefferedPoolKind:v,columnCodec:x}}));return[...(null===r||void 0===r?void 0:r.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===r||void 0===r?void 0:r.filter((e=>-1===e.keyColumnIndex)))||[]]}function Kt(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return ie(e)?Jt(a):K(e)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnIds:r}=t,{HashSharding:s={}}=a,{Columns:i=[]}=s,o=null===n||void 0===n?void 0:n.map((e=>{var t;const{Id:a,Name:n,Type:s,NotNull:o}=e,l=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===a)))&&void 0!==t?t:-1,c=Boolean(null===i||void 0===i?void 0:i.find((e=>e===n)));return{id:a,name:n,keyColumnIndex:l,isPartitioningKeyColumn:c,type:s,notNull:o}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):se(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):[]}function Xt(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}})))||[]}const Yt=e=>{let{type:t,path:a,tenantName:r,extended:s=!1}=e;const[i]=(0,ve.Rj)(),{currentData:o,isLoading:l}=ce.useGetOverviewQuery({path:a,database:r},{pollingInterval:i}),c=oe(t)?{path:a,database:r}:b.CN,{data:u,isLoading:p}=Pt.useGetViewSchemaQuery(c),m=n.useMemo((()=>oe(t)?Xt(u):Kt(t,o)),[o,t,u]),h=n.useMemo((()=>m.some((e=>e.autoIncrement))),[m]),v=n.useMemo((()=>m.some((e=>e.defaultValue))),[m]),x=n.useMemo((()=>oe(t)?[Qt,Gt]:se(t)||K(t)?[Ft,Qt,Gt,Bt]:ie(t)?function(e,t,a){const n=[Ft,Qt,Gt,Bt];return a&&n.push(Ht),e&&n.push($t,Zt,Wt),t&&n.push(Vt),n}(s,h,v):[]),[t,s,h,v]);return l||p?(0,d.jsx)(jt.h,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:At("keys-wrapper"),children:[(0,d.jsx)(Ot,{tableData:m,extended:s,type:"primary"}),(0,d.jsx)(Ot,{tableData:m,extended:s,type:"partitioning"})]}),(0,d.jsx)("div",{className:At(),children:(0,d.jsx)(tt.G,{columnsWidthLSKey:"schemaTableColumnsWidth",data:m,columns:x,settings:he.LE})})]})};var ea=a(60064),ta=a(87669),aa=a(16318),na=a(14561),ra=a(77315);const sa=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"}'),ia=(0,it.wZ)("ydb-diagnostics-configs",{en:sa}),oa=(0,c.cn)("ydb-diagnostics-configs"),la=[{name:"Touched",header:"",render:e=>{let{row:t}=e;return t.Current?(0,d.jsx)(aa.J,{content:ia("flag-touched"),className:oa("icon-touched"),placement:"left",children:(0,d.jsx)(na.J,{data:ta.Z})}):null},width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return ia("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 ia("td-default")},render:e=>{let{row:t}=e;switch(t.Default){case!0:return ia("enabled");case!1:return ia("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return ia("td-current")},render:e=>{var t;let{row:a}=e;return(0,d.jsx)(ra.r,{disabled:!0,checked:(null!==(t=a.Current)&&void 0!==t?t:a.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ca=e=>{let{database:t}=e;const[a,n]=(0,s.useQueryParam)("search",s.StringParam),{currentData:r=[],isFetching:i,error:o}=Te.$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)(at.l,{children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(st.o,{value:l,onChange:e=>{n(e||void 0,"replaceIn")},placeholder:ia("search-placeholder")})}),(0,d.jsx)(at.l.Table,{loading:i,children:o?(0,d.jsx)(Ce.V,{error:o}):(0,d.jsx)(tt.G,{emptyDataMessage:ia(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:la,data:c,settings:he.LE})})]})};var da=a(78171),ua=a.n(da),pa=a(10142);const ma=le.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"}),ha=(0,y.P1)((e=>e),((e,t)=>t),((e,t)=>ma.endpoints.getTopic.select({path:e,database:t}))),va=(0,y.P1)((e=>e),((e,t,a)=>ha(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),xa=(0,y.P1)((e=>e),((e,t,a)=>ha(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),ga=(0,y.P1)(xa,(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)))),ya=(0,y.P1)(va,(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,bt.lE)(a),partitionsWriteLag:(0,bt.DA)(n),writeSpeed:(0,pa.c4)(r)}})),ba=(0,y.P1)(xa,(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,pa.c4)(i),writeLag:(0,bt.DA)(s),readLag:(0,bt.DA)(r),readIdleTime:(0,bt.lE)(n)}})))),fa=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),Ea=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"}'),Sa=(0,it.wZ)("ydb-components-speed-multimeter",{ru:Ea,en:fa}),Ta=(0,c.cn)("speed-multimeter"),Na=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,pa.td)({value:e,size:a,withSpeedLabel:!0}),p=[{value:u(i),label:Sa("perMinute")},{value:u(o),label:Sa("perHour")},{value:u(l),label:Sa("perDay")}],[m,h]=n.useState(i),[v,x]=n.useState(r?0:void 0),[g,y]=n.useState(),b=(e,t)=>{h(e[t]),x(t),y(t)},f=e=>v===e,E=e=>g===e;return(0,d.jsx)("div",{className:Ta(),children:(0,d.jsxs)("div",{className:Ta("content"),children:[r&&(0,d.jsx)("div",{className:Ta("displayed-value"),children:u(m)}),(0,d.jsx)(aa.J,{content:(0,d.jsxs)("div",{className:Ta("popover-content"),children:[(0,d.jsx)("span",{className:Ta("popover-header"),children:Sa("averageSpeed")}),p.map(((e,t)=>{return(0,d.jsx)("span",{className:Ta("popover-row",(a=f(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:Ta("popover-container"),placement:"bottom",disabled:!s,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:Ta("bars"),onMouseLeave:()=>{h(i),x(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:Ta("bar-container",{highlighted:E(a)}),onMouseEnter:b.bind(null,c,a),children:(0,d.jsx)("div",{className:Ta("bar",{color:f(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},ja=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ca=e=>{let{data:t}=e;const{writeSpeed:a,partitionsWriteLag:n,partitionsIdleTime:r}=t||{},s=[{label:"Write speed",value:(0,d.jsx)(Na,{data:a})},{label:"Write lag",value:(0,De.gC)(n||0)},{label:"Write idle time",value:(0,De.gC)(r||0)}];return(0,d.jsx)("div",{className:ja("wrapper"),children:s.map(((e,t)=>(0,d.jsxs)("div",{className:ja("item"),children:[(0,d.jsx)("div",{className:ja("label"),children:e.label}),(0,d.jsx)("div",{className:ja("value"),children:e.value})]},t)))})};var wa=a(88726),Pa=a.n(wa),Ia=a(67653),Da=a(91807);const Ra=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)(Da.J,{className:n,buttonProps:i,content:a,contentClassName:s})]})},_a=70,Aa=54,Oa=268,Ma="#ADE8F5",ka="#f5be9d",La=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})},za=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`})},qa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:ka,children:(0,d.jsx)(za,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(La,{width:_a,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)(La,{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:ka}),(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:ka}),(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"})})})]})]}),Ua=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Ma,children:(0,d.jsx)(za,{width:Oa})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(La,{width:_a,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)(La,{width:_a,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)(La,{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:Ma}),(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:Ma}),(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:Ma}),(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"})})})]})]}),Fa=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})})},Qa=()=>(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:Oa,height:Aa,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)(Fa,{id:"latest-read",fill:Ma}),(0,d.jsx)(Fa,{id:"latest-write",fill:ka})]}),(0,d.jsx)(qa,{})]}),Ga=()=>(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:Oa,height:Aa,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)(Fa,{id:"latest-read",fill:Ma}),(0,d.jsx)(Fa,{id:"latest-write",fill:ka})]}),(0,d.jsx)(Ua,{})]}),Ba=(0,c.cn)("ydb-lag-popover-content"),Va=e=>{let{text:t,type:a}=e;return(0,d.jsxs)("div",{className:Ba({type:a}),children:[(0,d.jsx)("div",{className:Ba("text"),children:t}),(0,d.jsx)("div",{children:"read"===a?(0,d.jsx)(Ga,{}):(0,d.jsx)(Qa,{})})]})},Ha=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"}'),$a=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"}'),Za=(0,it.wZ)("ydb-diagnostics-consumers",{ru:$a,en:Ha}),Wa="consumer",Ja="readSpeed",Ka="readLags",Xa={[Wa]:"Consumer",[Ja]:"Read speed",[Ka]:"Read lags, duration"},Ya="writeLag",en="readLag",tn="readIdleTime",an={[Ya]:"write lag",[en]:"read lag",[tn]:"read idle time"},nn=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),rn=()=>(0,d.jsx)(Ra,{className:nn("lags"),text:Xa[Ka],popoverContent:(0,d.jsx)(Va,{text:Za("lagsPopover.readLags"),type:"read"})}),sn=(0,c.cn)("ydb-diagnostics-consumers-columns"),on=[{name:Wa,header:Xa[Wa],align:Mt.ZP.LEFT,render:e=>{let{row:t}=e;if(!t.name)return"\u2013";const a=Pa().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(Ia.h,{to:(0,Ee.ax)(Ee.ZP.tenant,void 0,{...a,[ea.XV.diagnosticsTab]:ge.qQ.partitions,selectedConsumer:t.name}),children:t.name})}},{name:Ja,header:Xa[Ja],align:Mt.ZP.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:e=>{let{row:t}=e;return(0,d.jsx)(Na,{data:t.readSpeed})}},{name:Ka,header:(0,d.jsx)(rn,{}),className:sn("lags-header"),sub:[{name:Ya,header:an[Ya],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.writeLag)}},{name:en,header:an[en],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.readLag)}},{name:tn,header:an[tn],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.readIdleTime)}}]}],ln=(0,c.cn)("ydb-diagnostics-consumers"),cn=e=>{let{path:t,database:a,type:r}=e;const s=(e=>e===f.EPathTypeCdcStream)(r),[i,o]=n.useState(""),[l]=(0,ve.Rj)(),{currentData:c,isFetching:u,error:p}=ma.useGetTopicQuery({path:t,database:a},{pollingInterval:l}),m=u&&void 0===c,h=(0,ve.ix)((e=>ba(e,t,a))),v=(0,ve.ix)((e=>ya(e,t,a))),x=n.useMemo((()=>{if(!h)return[];const e=new RegExp(ua()(i),"i");return h.filter((t=>e.test(String(t.name))))}),[h,i]);return m?(0,d.jsx)(we.a,{size:"m"}):p||h&&h.length?(0,d.jsxs)("div",{className:ln(),children:[(0,d.jsxs)("div",{className:ln("controls"),children:[(0,d.jsx)(st.o,{onChange:e=>{o(e)},placeholder:Za("controls.search"),className:ln("search"),value:i}),v&&(0,d.jsx)(Ca,{data:v})]}),p?(0,d.jsx)(Ce.V,{error:p}):null,h?(0,d.jsx)("div",{className:ln("table-wrapper"),children:(0,d.jsx)("div",{className:ln("table-content"),children:(0,d.jsx)(tt.G,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:ln("table"),data:x,columns:on,settings:he.LE,emptyDataMessage:Za("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Za("noConsumersMessage."+(s?"stream":"topic"))})};var dn=a(99175),un=a(19992),pn=a.n(un),mn=a(95877);a(25219);const hn=(0,c.cn)("ydb-describe"),vn=new Map,xn=e=>{let{path:t,database:a,type:n}=e;const[r]=(0,ve.Rj)(),s=te(n),i=(0,ve.ix)((e=>pe(e,t,n,a)),mn.wU);let o=[];s?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=me({paths:o,autoRefreshInterval:r,database:a});let p;if(l){const e=Object.keys(l);p=1===e.length?l[e[0]]:l}return c||s&&!i?(0,d.jsx)(we.a,{size:"m"}):p||u?(0,d.jsxs)("div",{className:hn(),children:[u?(0,d.jsx)(Ce.V,{error:u}):null,p?(0,d.jsxs)("div",{className:hn("result"),children:[(0,d.jsx)(pn(),{data:p,className:hn("tree"),onClick:e=>{let{path:t}=e;const a=!vn.get(t);vn.set(t,a)},searchOptions:{debounceTime:300},isExpanded:e=>vn.get(e)||!1}),(0,d.jsx)(dn.m,{view:"flat-secondary",text:JSON.stringify(p),className:hn("copy")})]}):null]}):(0,d.jsx)("div",{className:hn("message-container"),children:"Empty"})};var gn=a(41591);const yn=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&Q[r]||n&&G[n];var n,r},bn=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 fn=a(73211),En=a(9379);const Sn=(0,En.a)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring("EPathType".length),CreateStep:De.o0},labels:{PathType:(0,fn.Z)("common.type"),CreateStep:(0,fn.Z)("common.created")}}),Tn=e=>{let{value:t,withSpeedLabel:a,...n}=e;const r=(0,pa.td)({value:t,withSpeedLabel:a,...n}),s=(0,pa.td)({value:t,withSpeedLabel:a,size:"b"});return(0,d.jsx)("span",{title:s,children:r})},Nn=(e,t)=>e?(0,d.jsx)(Tn,{value:e,significantDigits:2,...t}):null,jn=(0,En.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:Nn},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Cn={[D.METERING_MODE_REQUEST_UNITS]:"request-units",[D.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},wn=(0,En.a)({values:{Partitions:e=>(0,De.uf)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/he.RQ*100)/100;return`${(0,De.uf)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),Pn=(0,En.a)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Cn[e]},labels:{MeteringMode:"Metering mode"}}),In=(0,En.a)({values:{StorageLimitBytes:De.td,WriteSpeedInBytesPerSecond:De.t$},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),Dn=(0,En.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)}}),Rn=(0,En.a)({values:{CPU:De.LO,Memory:Nn,Storage:Nn,Network:De.t$,ReadThroughput:De.t$,WriteThroughput:De.t$},defaultValueFormatter:De.uf}),_n=(0,En.a)({values:{FollowerCount:De.uf},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),An=(0,En.a)({values:{FollowerCount:De.uf,CrossDataCenterFollowerCount:De.uf}}),On=(0,En.a)({values:{DataSize:Nn,IndexSize:Nn,LastAccessTime:De.o0,LastUpdateTime:De.o0},defaultValueFormatter:De.uf}),Mn=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),kn=e=>{var t;let{data:a}=e;const n=yn(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)Mn.has(i)&&s.push(jn(i,null===r||void 0===r?void 0:r[i]));return(0,d.jsx)(gn._P,{title:n,info:s})};var Ln=a(62508);const zn=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"}'),qn=(0,it.wZ)("ydb-tenant-objects-info",{en:zn}),Un=(0,c.cn)("ydb-external-data-source-info"),Fn=e=>{var t,a,n,r;return[{label:qn("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},Sn("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},Qn=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Fn(e),{label:qn("external-objects.location"),value:(0,d.jsx)(Ln.A,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Un("location")})},{label:qn("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?qn("external-objects.auth-method.service-account"):qn("external-objects.auth-method.none")}]},Gn=e=>{let{data:t,prepareData:a}=e;const n=yn(null===t||void 0===t?void 0:t.PathDescription);return t?(0,d.jsx)(gn._P,{title:n,info:a(t)}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})},Bn=e=>{let{data:t}=e;return(0,d.jsx)(Gn,{data:t,prepareData:Qn})};var Vn=a(55783),Hn=a(90808);const $n=(0,c.cn)("ydb-external-table-info"),Zn=(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:qn("external-objects.source-type"),value:s},Sn("CreateStep",r),{label:qn("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(Hn.j,{title:o||"",url:t})})}]},Wn=(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[...Zn(e,t),{label:qn("external-objects.location"),value:(0,d.jsx)(Ln.A,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:$n("location")})}]},Jn=e=>{var t,a;let{data:n,prepareData:r}=e;const s=(0,Vn.TH)(),i=(0,Ee.mB)(s),o=(0,Ee.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=yn(null===n||void 0===n?void 0:n.PathDescription);return n?(0,d.jsx)(gn._P,{title:l,info:r(n,o)}):(0,d.jsxs)("div",{className:"error",children:["No ",l," data"]})},Kn=e=>{let{data:t}=e;return(0,d.jsx)(Jn,{data:t,prepareData:Wn})};var Xn=a(20134);const Yn=JSON.parse('{"no-data":"No data"}'),er=(0,it.wZ)("ydb-definition-list",{en:Yn}),tr=(0,c.cn)("ydb-definition-list");function ar(e){let{title:t,items:a,nameMaxWidth:n=220,copyPosition:r="outside",className:s,itemClassName:i,...o}=e;return(0,d.jsxs)("div",{className:tr(null),children:[t?(0,d.jsx)("div",{className:tr("title"),children:t}):null,a.length?(0,d.jsx)(Xn.w,{items:a,nameMaxWidth:n,copyPosition:r,className:tr("properties-list",s),itemClassName:tr("item",i),...o}):er("no-data")]})}const nr=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:qn("view.query-text"),copyText:n,content:(0,d.jsx)(vt.x,{variant:"code-2",wordBreak:"break-word",children:n})}]};function rr(e){let{data:t}=e;const a=yn(null===t||void 0===t?void 0:t.PathDescription);if(!t)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=nr(t);return(0,d.jsx)(ar,{title:a,items:n})}var sr=a(79777);function ir(e){let{state:t}=e;return t?"StandBy"in t?(0,d.jsx)(It._,{theme:"info",children:"Standby"}):"Paused"in t?(0,d.jsx)(It._,{theme:"info",children:"Paused"}):"Done"in t?(0,d.jsx)(It._,{theme:"success",children:"Done"}):"Error"in t?(0,d.jsx)(It._,{theme:"danger",children:"Error"}):(0,d.jsx)(It._,{size:"s",children:"Unknown"}):null}const or=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),lr=(0,it.wZ)("ydb-diagnostics-async-replication-paths",{en:or}),cr=(0,c.cn)("ydb-async-replication-paths"),dr=[{name:lr("column.srcPath.name"),render:e=>{let{row:t}=e;return t.SrcPath},sortAccessor:e=>e.SrcPath},{name:lr("column.dstPath.name"),render:e=>{let{row:t}=e;return t.DstPath},sortAccessor:e=>e.DstPath}];function ur(e){let{config:t}=e;if(!t)return null;let a=lr("noData");var n,r;t.Everything&&(a=(0,d.jsxs)("span",{children:[lr("everythingWithPrefix")," ",(0,d.jsx)(vt.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)(tt.G,{data:t.Specific.Targets,settings:he.E6,columns:dr})),(0,d.jsxs)("div",{className:cr(),children:[(0,d.jsx)("div",{className:cr("title"),children:lr("title")}),a]})}function pr(e){let{connection:t}=e;return t?t.StaticCredentials?(0,d.jsx)(It._,{value:t.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in t?"OAuth":"unknown":null}const mr=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"}'),hr=(0,it.wZ)("ydb-diagnostics-async-replication-info",{en:mr});function vr(e){var t,a;let{data:n}=e;const r=yn(null===n||void 0===n?void 0:n.PathDescription);if(!n)return(0,d.jsxs)("div",{className:"error",children:[hr("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:hr("state.label"),content:(0,d.jsx)(ir,{state:r})});i&&l.push({name:hr("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(vt.x,{variant:"code-inline-2",children:i})});o&&l.push({name:hr("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(vt.x,{variant:"code-inline-2",children:o})});s&&l.push({name:hr("credentials.label"),content:(0,d.jsx)(pr,{connection:s})});return l}(n);return(0,d.jsxs)(sr.k,{direction:"column",gap:"4",children:[(0,d.jsx)(ar,{title:r,items:s}),(0,d.jsx)(ur,{config:null===(t=n.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const xr=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),gr=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"}'),yr=(0,it.wZ)("ydb-diagnostics-overview-topic-stats",{ru:gr,en:xr}),br=(0,c.cn)("ydb-overview-topic-stats"),fr=e=>[{label:"Store size",value:(0,De.td)(e.storeSize)},{label:(0,d.jsx)(Ra,{text:"Write idle time",popoverContent:(0,d.jsx)(Va,{text:yr("writeIdleTimePopover"),type:"write"})}),value:(0,bt.tt)(e.partitionsIdleTime)},{label:(0,d.jsx)(Ra,{text:"Write lag",popoverContent:(0,d.jsx)(Va,{text:yr("writeLagPopover"),type:"write"})}),value:(0,bt.tt)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Na,{data:e.writeSpeed,withValue:!1})}],Er=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,De.t$)(t.perMinute)},{label:"per hour",value:(0,De.t$)(t.perHour)},{label:"per day",value:(0,De.t$)(t.perDay)}]},Sr=e=>{let{path:t,database:a}=e;const[r]=(0,ve.Rj)(),{currentData:s,isFetching:i,error:o}=ma.useGetTopicQuery({path:t,database:a},{pollingInterval:r}),l=i&&void 0===s,c=(0,ve.ix)((e=>ya(e,t,a)));if(l)return(0,d.jsx)("div",{className:br(),children:(0,d.jsx)(we.a,{size:"s"})});const u=o||!c?(0,d.jsx)(Ce.V,{error:o}):null;return(0,d.jsxs)("div",{className:br(),children:[(0,d.jsx)("div",{className:br("title"),children:"Stats"}),u,c?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:br("info"),children:(0,d.jsx)(gn._P,{info:fr(c),multilineLabels:!0})}),(0,d.jsx)("div",{className:br("bytes-written"),children:(0,d.jsx)(gn._P,{info:Er(c)})})]}):null]})},Tr=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,gn.Z6)(wn,{Partitions:n,PQTabletConfig:r}),...(0,gn.Z6)(In,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,gn.Z6)(Pn,{Codecs:s,MeteringMode:i})]},Nr=(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[Sn("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,gn.Z6)(Dn,{Mode:i,Format:o}),...Tr(t)]},jr=e=>{let{path:t,database:a,data:n,topic:r}=e;const s=yn(null===n||void 0===n?void 0:n.PathDescription);return n&&r?(0,d.jsxs)("div",{children:[(0,d.jsx)(gn._P,{title:s,info:Nr(n,r)}),(0,d.jsx)(Sr,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",s," data"]})},Cr=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.dropIndex":"Drop index","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.addTableIndex":"Add index...","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"}'),wr=(0,it.wZ)("ydb-tenant",{en:Cr});function Pr(e){let{data:t}=e;const a=yn(t);return bn(t)?(0,d.jsxs)(sr.k,{gap:1,wrap:"nowrap",children:[a," ",(0,d.jsx)(It._,{children:wr("label.read-only")})]}):a}const Ir=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"}'),Dr=(0,it.wZ)("ydb-diagnostics-overview-table-info",{en:Ir});var Rr=a(83351),_r=a.n(Rr),Ar=a(25665),Or=a(73689);const Mr=e=>e.SchemaPresetName&&void 0!==e.SchemaPresetId,kr=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Dr("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,bt.tt)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Dr("label.ttl"),value:t}}};const Lr=(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:p,ByKeyFilterSize:m,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:x,PlannedTxCompleted:g,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:E,InFlightTxCount:S,RowUpdates:T,RowDeletes:N,RowReads:j,RangeReads:C,RangeReadRows:w}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=s;let R=[];switch(t){case f.EPathTypeTable:R=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:s}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Dr("value.partitioning-by-size.enabled",{size:(0,De.td)(n.SizeToSplit)}):Dr("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Dr("enabled"):Dr("disabled");if(i.push({label:Dr("label.partitioning-by-size"),value:o},{label:Dr("label.partitioning-by-load"),value:l},{label:Dr("label.partitions-min"),value:(0,De.uf)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Dr("label.partitions-max"),value:(0,De.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:Dr("label.read-replicas"),value:n})}if(t){const e=kr(t);e&&i.push(e)}return(0,Ar.D)(s)&&i.push({label:Dr("label.bloom-filter"),value:Dr(s?"enabled":"disabled")}),i})(s,i);break;case f.EPathTypeColumnTable:R=function(e){var t,a;const n=[];if(n.push({label:Dr("label.standalone"),value:String(!Mr(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:Dr("label.partitioning"),value:(0,d.jsx)(vt.x,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=kr(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,gn.Z6)(On,{PartCount:l,RowCount:c,DataSize:u,IndexSize:p});(0,Or.kE)(m)&&(s.EnableFilterByKey||Number(m)>0)&&_.push({label:"BloomFilterSize",value:Nn(m)});const A=[_,(0,gn.Z6)(On,{LastAccessTime:h,LastUpdateTime:v}),(0,gn.Z6)(On,{ImmediateTxCompleted:x,PlannedTxCompleted:g,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:E,InFlightTxCount:S}),(0,gn.Z6)(On,{RowUpdates:T,RowDeletes:N,RowReads:j,RangeReads:C,RangeReadRows:w})],O=(0,gn.Z6)(Rn,_r()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let M=[];return Array.isArray(P)&&P.length>0?M=(0,gn.Z6)(_n,P[0]):void 0!==I?M.push(An("FollowerCount",I)):void 0!==D&&M.push(An("CrossDataCenterFollowerCount",D)),{generalInfo:R,tableStatsInfo:A,tabletMetricsInfo:O,partitionConfigInfo:M}},zr=(0,c.cn)("ydb-diagnostics-table-info"),qr=e=>{let{data:t,type:a}=e;const r=(0,d.jsx)(Pr,{data:null===t||void 0===t?void 0:t.PathDescription}),{generalInfo:s,tableStatsInfo:i,tabletMetricsInfo:o=[],partitionConfigInfo:l=[]}=n.useMemo((()=>Lr(t,a)),[t,a]);return(0,d.jsxs)("div",{className:zr(),children:[(0,d.jsx)(gn._P,{info:s,title:r,className:zr("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:zr("title"),children:r})}),(0,d.jsxs)("div",{className:zr("row"),children:[i?(0,d.jsx)("div",{className:zr("col"),children:i.map(((e,t)=>(0,d.jsx)(gn._P,{info:e,title:0===t?Dr("tableStats"):void 0,className:zr("info-block"),renderEmptyState:()=>null},t)))}):null,o.length>0||l.length>0?(0,d.jsxs)("div",{className:zr("col"),children:[(0,d.jsx)(gn._P,{info:o,title:Dr("tabletMetrics"),className:zr("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(gn._P,{info:l,title:Dr("partitionConfig"),className:zr("info-block"),renderEmptyState:()=>null})]}):null]})]})},Ur=e=>{let{data:t,path:a,database:n}=e;const r=yn(null===t||void 0===t?void 0:t.PathDescription);return t?(0,d.jsxs)("div",{children:[(0,d.jsx)(gn._P,{title:r,info:Tr(t)}),(0,d.jsx)(Sr,{path:a,database:n})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})};const Fr=function(e){let{type:t,path:a,database:r}=e;const[s]=(0,ve.Rj)(),i=te(t),o=(0,ve.ix)((e=>pe(e,a,t,r)),mn.wU);let l=[];i?o&&(l=[a,...o]):l=[a];const{mergedDescribe:c,loading:u,error:p}=me({paths:l,database:r,autoRefreshInterval:s}),m=c[a];return u||i&&!o?(0,d.jsx)(we.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(Ce.V,{error:p}):null,p&&!m?null:(()=>{var e;const n=null!==m&&void 0!==m?m:void 0,s={[f.EPathTypeInvalid]:void 0,[f.EPathTypeDir]:void 0,[f.EPathTypeTable]:void 0,[f.EPathTypeSubDomain]:void 0,[f.EPathTypeTableIndex]:()=>(0,d.jsx)(kn,{data:n}),[f.EPathTypeExtSubDomain]:void 0,[f.EPathTypeColumnStore]:void 0,[f.EPathTypeColumnTable]:void 0,[f.EPathTypeCdcStream]:()=>{const e=null===o||void 0===o?void 0:o[0];var t;if(e)return(0,d.jsx)(jr,{path:a,database:r,data:n,topic:null!==(t=null===c||void 0===c?void 0:c[e])&&void 0!==t?t:void 0})},[f.EPathTypePersQueueGroup]:()=>(0,d.jsx)(Ur,{data:n,path:a,database:r}),[f.EPathTypeExternalTable]:()=>(0,d.jsx)(Kn,{data:n}),[f.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Bn,{data:n}),[f.EPathTypeView]:()=>(0,d.jsx)(rr,{data:n}),[f.EPathTypeReplication]:()=>(0,d.jsx)(vr,{data:n})};return t&&(null===(e=s[t])||void 0===e?void 0:e.call(s))||(0,d.jsx)(qr,{data:n,type:t})})()]})};var Qr,Gr=a(81550),Br=a(72616);function Vr(){return Vr=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},Vr.apply(this,arguments)}const Hr=function(e){return n.createElement("svg",Vr({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Qr||(Qr=n.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"})))};function $r(e){let{href:t,className:a,size:n="xs"}=e;return(0,d.jsx)(Br.z,{href:t,target:"_blank",className:a,size:n,title:"Monitoring dashboard",children:(0,d.jsx)(na.J,{data:Hr})})}var Zr=a(46987),Wr=a(86636),Jr=a(14345),Kr=a(19214),Xr=a(62105);const Yr=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];const es=e=>{switch(e){case"ms":return ts;case"size":return as;case"percent":return ns;default:return}};function ts(e){return null===e?he.jX:(0,bt.zm)((0,De.W0)(rs(e),2))}function as(e){return null===e?he.jX:(0,pa.td)({value:rs(e),precision:3})}function ns(e){return null===e?he.jX:Math.round(100*rs(e))+"%"}function rs(e){return(0,Or.kE)(e)?Number(e):0}const ss={"30m":30*he.sU,"1h":he.RQ,"1d":he.ii,"1w":7*he.ii},is=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),os=(0,it.wZ)("ydb-metric-chart",{en:is}),ls=le.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-ss[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?os("not-supported"):t.error)}}catch(n){return{error:n}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),cs=(0,c.cn)("ydb-metric-chart");Wr.X.set({plugins:[Kr.YagrPlugin]});const ds=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dataType:a,scaleRange:n}=t,r=es(a),s=!e.metrics.length,i=e.metrics.map(((e,t)=>{const a=e.color||Yr[t],n=function(e,t){const a=(0,Xr.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"}}}},us={timeline:[],metrics:[]},ps=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:p}=e;const{currentData:m,error:h,isFetching:v,status:x}=ls.useGetChartDataQuery({database:t,metrics:r,timeFrame:s,maxDataPoints:o/2},{pollingInterval:i}),g=v&&!m;n.useEffect((()=>null===u||void 0===u?void 0:u("fulfilled"===x?"success":"loading")),[x,u]);const y=ds(m||us,c);return(0,d.jsxs)("div",{className:cs(null),style:{height:l,width:o},children:[(0,d.jsx)("div",{className:cs("title"),children:a}),g?(0,d.jsx)(we.a,{}):p?(0,d.jsxs)("div",{className:cs("chart"),children:[(0,d.jsx)(Jr.ZP,{type:"yagr",data:y}),h?(0,d.jsx)(Ce.V,{className:cs("error"),error:h}):null]}):null]})},ms=(0,c.cn)("ydb-timeframe-selector"),hs=e=>{let{value:t,onChange:a,className:n}=e;return(0,d.jsx)("div",{className:ms(null,n),children:Object.keys(ss).map((e=>(0,d.jsx)(Br.z,{view:"flat",selected:t===e,onClick:()=>a(e),children:e},e)))})},vs=(0,c.cn)("ydb-tenant-dashboard"),xs=e=>{let{database:t,charts:a}=e;const[r,i]=n.useState(!0),[o="1h",l]=(0,s.useQueryParam)("timeframe",s.StringParam),[c]=(0,ve.Rj)(),u=r?0:c,p=e=>{"success"===e&&i(!1)},m=1===a.length?872:428;return(0,d.jsxs)("div",{className:vs(null),style:{display:r?"none":void 0},children:[(0,d.jsx)("div",{className:vs("controls"),children:(0,d.jsx)(hs,{value:o,onChange:l})}),(0,d.jsx)("div",{className:vs("charts"),children:a.map((e=>{const a=e.metrics.map((e=>{let{target:t}=e;return t})).join("&");return(0,d.jsx)(ps,{database:t,title:e.title,metrics:e.metrics,timeFrame:o,chartOptions:e.options,autorefresh:u,width:m,height:285.3333333333333,onChartDataStatusChange:p,isChartVisible:!r},a)}))})]})},gs=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","column-header.process":"Process"}'),ys=(0,it.wZ)("ydb-diagnostics-tenant-overview",{en:gs}),bs=[{title:ys("charts.queries-per-second"),metrics:[{target:"queries.requests",title:ys("charts.queries-per-second")}]},{title:ys("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:ys("charts.transaction-latency",{percentile:"p50"})},{target:"queries.latencies.p75",title:ys("charts.transaction-latency",{percentile:"p75"})},{target:"queries.latencies.p90",title:ys("charts.transaction-latency",{percentile:"p90"})},{target:"queries.latencies.p99",title:ys("charts.transaction-latency",{percentile:"p99"})}],options:{dataType:"ms"}}],fs=e=>{let{database:t}=e;return(0,d.jsx)(xs,{database:t,charts:bs})},Es=le.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"}),Ss={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},Ts=e=>e.sort(((e,t)=>(Ss[e.status]||0)-(Ss[t.status]||0))),Ns=e=>{let{issue:t,data:a}=e;return Ts(a.filter((e=>t.reason&&-1!==t.reason.indexOf(e.id))))},js=e=>Ts(e.filter((t=>!e.find((e=>e.reason&&-1!==e.reason.indexOf(t.id)))))),Cs=e=>{let{data:t,roots:a}=e;return a?a.map((e=>{const a=Cs({roots:Ns({issue:e,data:t}),data:t});return{...e,reasonsItems:a}})):[]},ws=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(Ss[a]||0)-(Ss[n]||0)}))},Ps=(0,y.P1)((e=>e),(e=>Es.endpoints.getHealthcheckInfo.select({database:e}))),Is=(0,y.P1)((e=>e),((e,t)=>Ps(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),Ds=(0,y.P1)(Is,(function(){return js(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])})),Rs=(0,y.P1)([Is,Ds],(function(){return Cs({data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],roots:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})})),_s=(0,y.P1)(Is,(function(){return ws(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])}));let As,Os;!function(e){e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY"}(As||(As={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED"}(Os||(Os={}));const Ms=function(e){let{autorefresh:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{currentData:a,isFetching:n,error:r,refetch:s}=Es.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||As.UNSPECIFIED,o=(0,ve.ix)((t=>_s(t,e)));return{issueTrees:(0,ve.ix)((t=>Rs(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:s,selfCheckResult:i}};var ks=a(83202),Ls=a(77468);const zs={[Os.UNSPECIFIED]:Ls.K.Grey,[Os.GREY]:Ls.K.Grey,[Os.GREEN]:Ls.K.Green,[Os.BLUE]:Ls.K.Blue,[Os.YELLOW]:Ls.K.Yellow,[Os.ORANGE]:Ls.K.Orange,[Os.RED]:Ls.K.Red},qs=(0,c.cn)("issue-tree-item"),Us=e=>{let{status:t,message:a,type:n,onClick:r}=e;return(0,d.jsxs)("div",{className:qs(),onClick:r,children:[(0,d.jsx)("div",{className:qs("field",{status:!0}),children:(0,d.jsx)(Ln.A,{mode:"icons",status:t,name:n})}),(0,d.jsx)("div",{className:qs("field",{message:!0}),children:a})]})},Fs=(0,c.cn)("issue-tree"),Qs=e=>{let{issueTree:t}=e;const[a,r]=n.useState({}),s=n.useCallback((e=>e?(0,d.jsx)("div",{className:Fs("info-panel"),children:(0,d.jsx)(pn(),{data:e,search:!1,isExpanded:()=>!0,className:Fs("inspector")})}):null),[]),i=n.useCallback((e=>e.map((e=>{const{id:t}=e,{status:n,message:o,type:l,reasonsItems:c,level:u,...p}=e,m="undefined"===typeof a[t]||a[t],h=()=>{r((e=>({...e,[t]:!m})))};return(0,d.jsxs)(ks.L,{name:(0,d.jsx)(Us,{status:zs[n],message:o,type:l}),collapsed:m,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[s(_r()(p,["reason"])),i(c||[])]},t)}))),[a,s]);return(0,d.jsx)("div",{className:Fs(),children:(0,d.jsx)("div",{className:Fs("block"),children:i([t])})})},Gs=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"}'),Bs=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"}'),Vs=(0,it.wZ)("ydb-diagnostics-healthcheck",{ru:Bs,en:Gs}),Hs=(0,c.cn)("healthcheck");function $s(e){let{tenantName:t}=e;const[a]=(0,ve.Rj)(),{issueTrees:r,loading:s,error:i}=Ms(t,{autorefresh:a});return(0,d.jsx)("div",{className:Hs("details"),children:(0,d.jsx)("div",{className:Hs("details-content-wrapper"),children:i?(0,d.jsx)(Ce.V,{error:i,defaultMessage:Vs("no-data")}):s?(0,d.jsx)(we.a,{size:"m"}):r&&r.length?(0,d.jsx)(n.Fragment,{children:r.map((e=>(0,d.jsx)(Qs,{issueTree:e},e.id)))}):Vs("status_message.ok")})})}var Zs=a(93145),Ws=a(29837),Js=a(22927),Ks=a(52232),Xs=a(92921),Ys=a(15268),ei=a(29331);const ti=(0,c.cn)("healthcheck"),ai={[As.UNSPECIFIED]:Ws.Z,[As.GOOD]:Js.Z,[As.DEGRADED]:Ks.Z,[As.MAINTENANCE_REQUIRED]:Xs.Z,[As.EMERGENCY]:Ys.Z};function ni(e){const{tenantName:t,active:a}=e,[n]=(0,ve.Rj)(),{currentData:r,isFetching:s,error:i}=Es.useGetHealthcheckInfoQuery({database:t},{pollingInterval:n}),o=s&&void 0===r;return(0,d.jsxs)(ei.Q,{className:ti("preview"),active:a,children:[(0,d.jsx)("div",{className:ti("preview-header"),children:(0,d.jsx)("div",{className:ti("preview-title-wrapper"),children:(0,d.jsx)("div",{className:ti("preview-title"),children:Vs("title.healthcheck")})})}),(()=>{if(i)return(0,d.jsx)(Ce.V,{error:i,defaultMessage:Vs("no-data")});if(o)return(0,d.jsx)(we.a,{size:"m"});const e=(null===r||void 0===r?void 0:r.self_check_result)||As.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:ti("preview-content"),children:(0,d.jsxs)("div",{className:ti("preview-issue",{[t]:!0}),children:[(0,d.jsx)(na.J,{className:ti("preview-status-icon"),data:ai[e]}),(0,d.jsx)("div",{className:ti("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var ri=a(20760),si=a(73287);const ii=(0,c.cn)("ydb-metrics-card"),oi=e=>{let t;return"Warning"===e&&(t=Ls.K.Yellow),"Danger"===e&&(t=Ls.K.Red),t?(0,d.jsx)(si.J,{status:t,mode:"icons",size:"l"}):null};function li(e){let{active:t,label:a,status:n,metrics:r}=e;return(0,d.jsxs)(ei.Q,{className:ii({active:t}),active:t,children:[(0,d.jsxs)("div",{className:ii("header"),children:[a&&(0,d.jsx)("div",{className:ii("label"),children:a}),oi(n)]}),(0,d.jsx)("div",{className:ii("content"),children:r.map(((e,t)=>{let{title:a,...n}=e;return(0,d.jsxs)("div",{className:ii("metric"),children:[(0,d.jsx)("div",{className:ii("metric-title"),children:a}),(0,d.jsx)(ri.y,{size:"xs",colorizeProgress:!0,...n})]},t)}))})]})}const ci=(0,c.cn)("metrics-cards");function di(e){let{poolsCpuStats:t,memoryStats:a,blobStorageStats:n,tabletStorageStats:r,tenantName:s}=e;const i=(0,Vn.TH)(),{metricsTab:o}=(0,ve.ix)((e=>e.tenant)),l=(0,Ee.mB)(i),c=e=>e===o?"":e,u={[ge.Xk.cpu]:(0,ea.Sj)({...l,[ea.XV.metricsTab]:c(ge.Xk.cpu)}),[ge.Xk.storage]:(0,ea.Sj)({...l,[ea.XV.metricsTab]:c(ge.Xk.storage)}),[ge.Xk.memory]:(0,ea.Sj)({...l,[ea.XV.metricsTab]:c(ge.Xk.memory)}),[ge.Xk.healthcheck]:(0,ea.Sj)({...l,[ea.XV.metricsTab]:c(ge.Xk.healthcheck)})};return(0,d.jsxs)("div",{className:ci(),children:[(0,d.jsx)(be.rU,{to:u.cpu,className:ci("tab"),children:(0,d.jsx)(ui,{poolsCpuStats:t,active:o===ge.Xk.cpu})}),(0,d.jsx)(be.rU,{to:u.storage,className:ci("tab"),children:(0,d.jsx)(pi,{blobStorageStats:n,tabletStorageStats:r,active:o===ge.Xk.storage})}),(0,d.jsx)(be.rU,{to:u.memory,className:ci("tab"),children:(0,d.jsx)(mi,{memoryStats:a,active:o===ge.Xk.memory})}),(0,d.jsx)(be.rU,{to:u.healthcheck,className:ci("tab"),children:(0,d.jsx)(ni,{tenantName:s,active:o===ge.Xk.healthcheck})})]})}function ui(e){let{poolsCpuStats:t=[],active:a}=e,n=Zs.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,Zr.Vn)(a);return Zs.l[i]>Zs.l[n]&&(n=i),{title:t,value:s,capacity:r,warningThreshold:Zr.hJ,dangerThreshold:Zr.Gz}}));return(0,d.jsx)(li,{label:ys("cards.cpu-label"),active:a,metrics:r,status:n})}function pi(e){let{blobStorageStats:t=[],tabletStorageStats:a,active:n}=e,r=Zs.L.Unspecified;const s=(a||t).map((e=>{const{name:t,used:a,limit:n,usage:s}=e,i=(0,Zr._W)(s);return Zs.l[i]>Zs.l[r]&&(r=i),{title:t,value:a,capacity:n,warningThreshold:Zr._g,dangerThreshold:Zr.nD,formatValues:De.QO}}));return(0,d.jsx)(li,{label:ys("cards.storage-label"),active:n,metrics:s,status:r})}function mi(e){let{active:t,memoryStats:a=[]}=e,n=Zs.L.Unspecified;const r=a.map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,Zr.Lv)(s);return Zs.l[i]>Zs.l[n]&&(n=i),{title:t,value:a,capacity:r,warningThreshold:Zr.B8,dangerThreshold:Zr.nr,formatValues:De.QO}}));return(0,d.jsx)(li,{label:ys("cards.memory-label"),active:t,metrics:r,status:n})}var hi=a(9796),vi=a(27660),xi=a(88366),gi=a(83023);const yi=(0,c.cn)("tenant-overview");function bi(e){let{title:t,error:a,loading:r,tableClassNameModifiers:s={},...i}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:yi("title"),children:t}),a?(0,d.jsx)(Ce.V,{error:a}):null,(0,d.jsx)("div",{className:yi("table",s),children:a&&0===i.data.length?null:r?(0,d.jsx)(jt.h,{rows:he.fl}):(0,d.jsx)(tt.G,{settings:he.E6,...i})})]})}var fi=a(32489);const Ei=e=>{let{prefix:t=ys("top"),entity:a,postfix:r,link:s,onClick:i}=e;return s?(0,d.jsxs)(n.Fragment,{children:[t," ",(0,d.jsx)(fi.h,{to:s,onClick:i,children:a})," ",r]}):`${t} ${a} ${r}`};function Si(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,ve.A3)(),[r]=(0,ve.Rj)(),[s,i]=function(e){const t={...(0,hi.Up)(e),width:void 0},a=[(0,hi.eb)(),(0,hi.A6)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,gi.w)(n,vi.WN)]}({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef,database:t}),{currentData:o,isFetching:l,error:c}=xi.k.useGetNodesQuery({tenant:t,type:"any",sort:"-CPU",limit:he.fl,tablets:!1,fieldsRequired:i},{pollingInterval:r}),u=l&&void 0===o,p=(null===o||void 0===o?void 0:o.Nodes)||[],m=Ei({entity:ys("nodes"),postfix:ys("by-pools-usage"),link:(0,ea.Sj)({...n,[ea.XV.diagnosticsTab]:ge.qQ.nodes})});return(0,d.jsx)(bi,{columnsWidthLSKey:vi.t5,data:p,columns:s,title:m,loading:u,error:c,emptyDataMessage:ys("top-nodes.empty-data")})}function Ti(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,ve.A3)(),[r]=(0,ve.Rj)(),[s,i]=function(e){const t={...(0,hi.Up)(e),width:void 0},a=[(0,hi.OJ)(),(0,hi.A6)(),t,(0,hi.Zi)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,gi.w)(n,vi.WN)]}({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef,database:t}),{currentData:o,isFetching:l,error:c}=xi.k.useGetNodesQuery({tenant:t,type:"any",sort:"-LoadAverage",limit:he.fl,tablets:!1,fieldsRequired:i},{pollingInterval:r}),u=l&&void 0===o,p=(null===o||void 0===o?void 0:o.Nodes)||[],m=Ei({entity:ys("nodes"),postfix:ys("by-load"),link:(0,ea.Sj)({...n,[ea.XV.diagnosticsTab]:ge.qQ.nodes})});return(0,d.jsx)(bi,{columnsWidthLSKey:vi.t5,data:p,columns:s,title:m,loading:u,error:c,emptyDataMessage:ys("top-nodes.empty-data")})}var Ni=a(43363),ji=a(55159);const Ci=(0,c.cn)("kv-truncated-query"),wi=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:Ci(),children:e}),(0,d.jsx)("span",{className:Ci("message",{color:"secondary"}),children:t})]})}return(0,d.jsx)(n.Fragment,{children:t})},Pi=e=>{let{value:t=""}=e;return(0,d.jsx)(xt.l,{contentClassName:Ci("popover-content"),content:t,children:t})},Ii="CPUTime",Di="QueryText",Ri="EndTime",_i="ReadRows",Ai="ReadBytes",Oi="UserSID",Mi="OneLineQueryText",ki="QueryHash",Li="Duration",zi="CPUCores",qi="PeakTime",Ui="IntervalEnd",Fi=[zi,"DataSize","InFlightTxCount"],Qi=[Ii,Ri,_i,Ai,Oi,Li],Gi=e=>Object.values(Fi).includes(e);var Bi=a(57857),Vi=a.n(Bi);const Hi=6,$i={...he.LE,dynamicRenderType:"variable"},Zi=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running","col_user":"User","col_start-time":"Start time","col_query-text":"Query text","col_app":"Application"}'),Wi=(0,it.wZ)("ydb-diagnostics-top-queries",{en:Zi}),Ji=(0,c.cn)("kv-top-queries"),Ki="topQueriesColumnsWidth",Xi={name:Ii,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,bt.zm)((0,bt.BO)(null!==(t=a.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:Mt.ZP.RIGHT,sortable:!1},Yi={name:Di,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,d.jsx)("div",{className:Ji("query"),children:(0,d.jsx)(wi,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:Hi})})},sortable:!1,width:500},eo={name:Ri,render:e=>{let{row:t}=e;return(0,De.o0)(new Date(t.EndTime).getTime())},align:Mt.ZP.RIGHT,width:200},to={name:_i,render:e=>{let{row:t}=e;return(0,De.uf)(t.ReadRows)},sortAccessor:e=>Number(e.ReadRows),align:Mt.ZP.RIGHT,width:150},ao={name:Ai,render:e=>{let{row:t}=e;return(0,De.uf)(t.ReadBytes)},sortAccessor:e=>Number(e.ReadBytes),align:Mt.ZP.RIGHT,width:150},no={name:Oi,render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:Ji("user-sid"),children:t.UserSID||"\u2013"})},sortAccessor:e=>String(e.UserSID),align:Mt.ZP.LEFT},ro={name:Mi,header:"QueryText",render:e=>{var t;let{row:a}=e;return(0,d.jsx)(Pi,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString()})},sortable:!1,width:500},so={name:ki,render:e=>{let{row:t}=e;return a=String(t.QueryText),(Vi().str(a)>>>0).toString(16).toUpperCase().padStart(8,"0");var a},width:130,sortable:!1},io={name:Li,header:"Duration",render:e=>{var t;let{row:a}=e;return(0,bt.zm)((0,bt.BO)(null!==(t=a.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:Mt.ZP.RIGHT,width:150},oo={name:"QueryStartAt",get header(){return Wi("col_start-time")},render:e=>{let{row:t}=e;return(0,De.o0)(new Date(t.QueryStartAt).getTime())},sortable:!0,resizeable:!1,defaultOrder:Mt.ZP.DESCENDING},lo=[Xi,Yi,eo,io,to,ao,no],co=[so,ro,Xi],uo=[no,oo,Yi,{name:"ApplicationName",get header(){return Wi("col_app")},render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:Ji("user-sid"),children:t.ApplicationName||"\u2013"})},sortable:!0}];function po(e){var t,a;let{tenantName:r}=e;const s=(0,ve.zL)(),i=(0,Vn.TH)(),o=(0,Vn.k6)(),l=(0,Ee.mB)(i),[c]=(0,ve.Rj)(),u=co,{currentData:p,isFetching:m,error:h}=ji.MU.useGetTopQueriesQuery({database:r},{pollingInterval:c}),v=m&&void 0===p,x=(null===p||void 0===p||null===(t=p.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=n.useCallback((e=>{const{QueryText:t}=e;s((0,Ni.B8)({input:t}));const a=(0,Ee.mB)(i),n=(0,ea.Sj)({...a,[ge.bS]:ge.m2.query,[ea.XV.queryTab]:ge._0.newQuery});o.push(n)}),[s,o,i]),y=Ei({entity:ys("queries"),postfix:ys("by-cpu-time",{executionPeriod:ys("executed-last-hour")}),onClick:()=>{s((0,ji.Im)({from:void 0,to:void 0}))},link:(0,ea.Sj)({...l,[ea.XV.diagnosticsTab]:ge.qQ.topQueries})});return(0,d.jsx)(bi,{columnsWidthLSKey:Ki,data:x||[],columns:u,onRowClick:g,title:y,loading:v,error:(0,Ct.fV)(h),rowClassName:()=>yi("top-queries-row")})}function mo(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 ${he.fl}`}const ho=le.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({query:mo(n,a),database:a,action:"execute-scan"},{signal:r,withRetries:!0});return(0,Ct.gW)(e)?{error:e}:{data:(0,Ct.gY)(e)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var vo=a(17823);function xo(e){let{path:t,location:a,...n}=e;const r=(0,Ee.mB)(a),s=(0,Ee.vF)({...r,schema:t});return(0,d.jsx)(vo.r,{view:"normal",...n,href:s})}var go=a(76217),yo=a(46931);const bo=(0,a(84029).p)(60,80,["success","warning","danger"]);var fo=a(75544);const Eo="topShardsColumnsWidth",So="TabletId",To="CPUCores",No="DataSize",jo="Path",Co="NodeId",wo="InFlightTxCount",Po={TabletId:"TabletId",CPUCores:"CPUCores",DataSize:"DataSize (B)",Path:"Path",NodeId:"NodeId",PeakTime:"PeakTime",InFlightTxCount:"InFlightTxCount",IntervalEnd:"IntervalEnd"};const Io=(e,t)=>({name:jo,header:Po[jo],render:a=>{let{row:n}=a;return(0,d.jsx)(xo,{path:e+n.Path,location:t,children:n.Path})},sortable:!1,width:300}),Do={name:To,header:Po[To],render:e=>{let{row:t}=e;return a=t.CPUCores||0,`${(0,De.W0)(100*Number(a),2)}%`;var a},align:Mt.ZP.RIGHT},Ro={name:No,header:Po[No],render:e=>{let{row:t}=e;return(0,De.uf)(t.DataSize)},align:Mt.ZP.RIGHT},_o={name:So,header:Po[So],render:e=>{let{row:t}=e;return t.TabletId?(0,d.jsx)(go.P,{tabletId:t.TabletId}):"\u2013"},sortable:!1,width:220},Ao={name:Co,header:Po[Co],render:e=>{let{row:t}=e;return t.NodeId?(0,d.jsx)(Ia.h,{to:(0,fo.a3)(t.NodeId),children:t.NodeId}):"\u2013"},align:Mt.ZP.RIGHT},Oo={name:To,header:Po[To],render:e=>{let{row:t}=e;return(0,d.jsx)(yo.a,{value:(0,De.W0)(100*Number(t.CPUCores),2),theme:bo(100*Number(t.CPUCores))})},align:Mt.ZP.RIGHT,sortable:!1,width:140,resizeMinWidth:140},Mo={name:wo,header:Po[wo],render:e=>{let{row:t}=e;return(0,De.uf)(t.InFlightTxCount)},align:Mt.ZP.RIGHT},ko=e=>{var t,a;let{tenantName:n,path:r}=e;const s=(0,Vn.TH)(),i=(0,Ee.mB)(s),[o]=(0,ve.Rj)(),{currentData:l,isFetching:c,error:u}=ho.useGetTopShardsQuery({database:n,path:r},{pollingInterval:o}),p=c&&void 0===l,m=(null===l||void 0===l||null===(t=l.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],h=((e,t)=>[_o,Io(e,t),Oo])(n,s),v=Ei({entity:ys("shards"),postfix:ys("by-cpu-usage"),link:(0,ea.Sj)({...i,[ea.XV.diagnosticsTab]:ge.qQ.topShards})});return(0,d.jsx)(bi,{columnsWidthLSKey:Eo,data:m||[],columns:h,title:v,loading:p,error:(0,Ct.fV)(u)})},Lo=[{title:ys("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 zo(e){let{tenantName:t,additionalNodesProps:a}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(xs,{database:t,charts:Lo}),(0,d.jsx)(Ti,{tenantName:t,additionalNodesProps:a}),(0,d.jsx)(Si,{tenantName:t,additionalNodesProps:a}),(0,d.jsx)(ko,{tenantName:t,path:t}),(0,d.jsx)(po,{tenantName:t})]})}function qo(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,ve.A3)(),[r]=(0,ve.Rj)(),[s,i]=function(e){const t={...(0,hi.rh)(),header:ys("column-header.process")},a=[(0,hi.A6)(),(0,hi.Up)(e),(0,hi.VQ)(),(0,hi.OJ)(),t,(0,hi.Zn)(),(0,hi.As)(),(0,hi.TX)(e)].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,gi.w)(n,vi.WN)]}({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef,database:t}),{currentData:o,isFetching:l,error:c}=xi.k.useGetNodesQuery({tenant:t,type:"any",tablets:!0,sort:"-Memory",limit:he.fl,fieldsRequired:i},{pollingInterval:r}),u=l&&void 0===o,p=(null===o||void 0===o?void 0:o.Nodes)||[],m=Ei({entity:ys("nodes"),postfix:ys("by-memory"),link:(0,ea.Sj)({...n,[ea.XV.diagnosticsTab]:ge.qQ.nodes})});return(0,d.jsx)(bi,{columnsWidthLSKey:vi.t5,data:p,columns:s,title:m,loading:u,error:c,emptyDataMessage:ys("top-nodes.empty-data")})}const Uo=[{title:ys("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:ys("charts.memory-usage")}],options:{dataType:"size"}}];function Fo(e){let{tenantName:t}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(xs,{database:t,charts:Uo}),(0,d.jsx)(qo,{tenantName:t})]})}var Qo=a(43862),Go=a(89085),Bo=a(96635),Vo=a(78090);function Ho(e){let{tenant:t}=e;const a=(0,ve.A3)(),n=(0,Se.rU)(),r=(0,Se.tS)(),[s]=(0,ve.Rj)(),[i,o]=function(){const e=(0,Bo.m)(),t=e.map((e=>e.name));return[e,(0,gi.w)(t,Vo.h2)]}(),{currentData:l,isFetching:c,error:u}=Go.y.useGetStorageGroupsInfoQuery({tenant:t,sort:"-Usage",with:"all",limit:he.fl,shouldUseGroupsHandler:r,fieldsRequired:o},{pollingInterval:s,skip:!n}),p=c&&void 0===l,m=(null===l||void 0===l?void 0:l.groups)||[],h=Ei({entity:ys("groups"),postfix:ys("by-usage"),link:(0,ea.Sj)({...a,[ea.XV.diagnosticsTab]:ge.qQ.storage})});return(0,d.jsx)(bi,{columnsWidthLSKey:Vo.Ty,data:m,columns:i,title:h,loading:p||!n,error:u})}const $o=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${he.fl}\n`,Zo=le.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({query:$o(a),database:a,action:"execute-scan"},{signal:n,withRetries:!0});return(0,Ct.gW)(e)?{error:e}:{data:(0,Ct.gY)(e)}}catch(r){return{error:r||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"}),Wo="topTablesTableColumnsWidth";function Jo(e){var t,a;let{path:n}=e;const r=(0,Vn.TH)(),[s]=(0,ve.Rj)(),{currentData:i,error:o,isFetching:l}=Zo.useGetTopTablesQuery({path:n},{pollingInterval:s}),c=l&&void 0===i,u=(null===i||void 0===i||null===(t=i.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],p=[{name:"Size",width:100,sortable:!1,render:e=>{let{row:t}=e;return(e=>{const t=(0,pa.dT)(null!==u&&void 0!==u&&u.length?Number(u[0].Size):0,0);return(0,pa.td)({value:e,size:t,precision:1})})(Number(t.Size))},align:Mt.ZP.RIGHT},{name:"Path",width:700,sortable:!1,render:e=>{let{row:t}=e;return t.Path?(0,d.jsx)(xt.l,{content:t.Path,children:(0,d.jsx)(xo,{path:String(t.Path),location:r,children:t.Path})}):null}}],m=Ei({entity:ys("tables"),postfix:ys("by-size")});return(0,d.jsx)(bi,{columnsWidthLSKey:Wo,data:u||[],columns:p,title:m,loading:c,error:(0,Ct.fV)(o)})}const Ko=[{title:ys("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:ys("charts.storage-usage")}],options:{dataType:"size"}}];function Xo(e){let{tenantName:t,metrics:a}=e;const{blobStorageUsed:r,tabletStorageUsed:s,blobStorageLimit:i,tabletStorageLimit:o}=a,l=[{label:(0,d.jsx)(Ra,{text:ys("storage.tablet-storage-title"),popoverContent:ys("storage.tablet-storage-description")}),value:(0,d.jsx)(ri.y,{value:s,capacity:o,formatValues:De.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})},{label:(0,d.jsx)(Ra,{text:ys("storage.db-storage-title"),popoverContent:ys("storage.db-storage-description")}),value:(0,d.jsx)(ri.y,{value:r,capacity:i,formatValues:De.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(xs,{database:t,charts:Ko}),(0,d.jsx)(Qo._,{className:yi("storage-info"),title:"Storage details",info:l}),(0,d.jsx)(Jo,{path:t}),(0,d.jsx)(Ho,{tenant:t})]})}function Yo(e){var t,a,n;let{tenantName:r,additionalTenantProps:s,additionalNodesProps:i}=e;const{metricsTab:o}=(0,ve.ix)((e=>e.tenant)),[l]=(0,ve.Rj)(),{currentData:c,isFetching:u}=Te.$1.useGetTenantInfoQuery({path:r},{pollingInterval:l}),p=u&&void 0===c,{Name:m,Type:h,Overall:v}=c||{},x=V(h),{currentData:g}=ce.useGetOverviewQuery({path:r,database:r},{pollingInterval:l}),{Tables:y,Topics:b}=(null===g||void 0===g||null===(t=g.PathDescription)||void 0===t||null===(a=t.DomainDescription)||void 0===a?void 0:a.DiskSpaceUsage)||{},f=[null===y||void 0===y?void 0:y.TotalSize,null===b||void 0===b?void 0:b.AccountSize,null===b||void 0===b?void 0:b.DataSize,null===b||void 0===b?void 0:b.ReserveSize,null===b||void 0===b?void 0:b.UsedReserveSize].reduce(((e,t)=>t?e+Number(t):e),0),E={...c,Metrics:{...null===c||void 0===c?void 0:c.Metrics,Storage:String(f)}},{blobStorage:S,tabletStorage:T,blobStorageLimit:N,tabletStorageLimit:j,poolsStats:C,memoryStats:w,blobStorageStats:P,tabletStorageStats:I}=(0,Zr.HH)(E),D={blobStorageUsed:S,blobStorageLimit:N,tabletStorageUsed:T,tabletStorageLimit:j};if(p)return(0,d.jsx)("div",{className:yi("loader"),children:(0,d.jsx)(Gr.a,{size:"m"})});const R=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,m,h);return(0,d.jsxs)("div",{className:yi(),children:[(0,d.jsxs)("div",{className:yi("info"),children:[(0,d.jsx)("div",{className:yi("top-label"),children:x}),(0,d.jsxs)("div",{className:yi("top"),children:[(0,d.jsx)("div",{className:yi("tenant-name-wrapper"),children:(0,d.jsx)(Ln.A,{status:v,name:m||he.FU,withLeftTrim:!0,hasClipboardButton:Boolean(c),clipboardButtonAlwaysVisible:!0})}),R&&(0,d.jsx)($r,{href:R})]}),(0,d.jsx)(di,{poolsCpuStats:C,memoryStats:w,blobStorageStats:P,tabletStorageStats:I,tenantName:r})]}),(()=>{switch(o){case ge.Xk.cpu:return(0,d.jsx)(zo,{tenantName:r,additionalNodesProps:i});case ge.Xk.storage:return(0,d.jsx)(Xo,{tenantName:r,metrics:D});case ge.Xk.memory:return(0,d.jsx)(Fo,{tenantName:r});case ge.Xk.healthcheck:return(0,d.jsx)($s,{tenantName:r});default:return(0,d.jsx)(fs,{database:r})}})()]})}const el=(0,c.cn)("kv-detailed-overview");const tl=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:el(),children:i?(0,d.jsx)("div",{className:el("section"),children:(0,d.jsx)(Yo,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(Fr,{type:t,path:n,database:a})})},al={id:ge.qQ.overview,title:"Info"},nl={id:ge.qQ.schema,title:"Schema"},rl={id:ge.qQ.topQueries,title:"Queries"},sl={id:ge.qQ.topShards,title:"Top shards"},il={id:ge.qQ.nodes,title:"Nodes"},ol={id:ge.qQ.tablets,title:"Tablets"},ll={id:ge.qQ.storage,title:"Storage"},cl={id:ge.qQ.network,title:"Network"},dl={id:ge.qQ.describe,title:"Describe"},ul={id:ge.qQ.hotKeys,title:"Hot keys"},pl={id:ge.qQ.graph,title:"Graph"},ml={id:ge.qQ.consumers,title:"Consumers"},hl={id:ge.qQ.partitions,title:"Partitions"},vl=[al,ol,dl],xl=[al,rl,sl,il,ol,ll,cl,dl,{id:ge.qQ.configs,title:"Configs"},{id:ge.qQ.operations,title:"Operations"}],gl=[al,nl,sl,il,pl,ol,ul,dl],yl=[al,nl,sl,il,ol,dl],bl=[al,sl,il,dl],fl=[al,ml,hl,il,ol,dl],El=[al,ml,hl,il,ol,dl],Sl=[al,dl],Tl=[al,nl,dl],Nl=[al,nl,dl],jl={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:xl,[f.EPathTypeExtSubDomain]:xl,[f.EPathTypeColumnStore]:xl,[f.EPathTypeTable]:gl,[f.EPathTypeColumnTable]:yl,[f.EPathTypeDir]:bl,[f.EPathTypeTableIndex]:bl,[f.EPathTypeCdcStream]:fl,[f.EPathTypePersQueueGroup]:El,[f.EPathTypeExternalDataSource]:Sl,[f.EPathTypeExternalTable]:Tl,[f.EPathTypeView]:Nl,[f.EPathTypeReplication]:vl},Cl=e=>e&&jl[e]||bl,wl=e=>{let{hasFeatureFlags:t}=e;return t?xl:xl.filter((e=>e.id!==ge.qQ.configs))};var Pl=a(2915),Il=a(38610);const Dl=le.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"}),Rl=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."}'),_l=(0,it.wZ)("ydb-hot-keys",{en:Rl});var Al;function Ol(){return Ol=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},Ol.apply(this,arguments)}const Ml=function(e){return n.createElement("svg",Ol({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Al||(Al=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"})))},kl=(0,c.cn)("ydb-hot-keys"),Ll={accessSample:"accessSample",keyValues:"keyValues"},zl=function(){return[...(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:kl("primary-key-column"),children:[(0,d.jsx)(na.J,{data:Ml,width:12,height:7}),e]}),render:e=>{let{row:a}=e;return a.keyValues[t]},align:Mt.ZP.RIGHT,sortable:!1}))),{name:Ll.accessSample,header:"Samples",render:e=>{let{row:t}=e;return t.accessSample},align:Mt.ZP.RIGHT,sortable:!1}]};function ql(e){var t,a;let{path:r,database:s}=e;const{currentData:i,isFetching:o,error:l}=Dl.useGetHotKeysQuery({path:r,database:s}),c=o&&void 0===i,[u]=(0,ve.Rj)(),{currentData:p,isLoading:m}=ce.useGetOverviewQuery({path:r,database:s},{pollingInterval:u}),h=null===p||void 0===p||null===(t=p.PathDescription)||void 0===t||null===(a=t.Table)||void 0===a?void 0:a.KeyColumnNames,v=n.useMemo((()=>zl(h)),[h]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ul,{}),c||m?(0,d.jsx)("div",{children:_l("hot-keys-collecting")}):l?(0,d.jsx)(Ce.V,{error:l}):i?(0,d.jsx)(tt.G,{wrapperClassName:kl("table"),columns:v,data:i,settings:he.LE,initialSortOrder:{columnId:Ll.accessSample,order:Mt.ZP.DESCENDING}}):(0,d.jsx)("div",{children:_l("no-data")})]})}function Ul(){const[e,t]=(0,ve.yu)(he.RI);return e?null:(0,d.jsxs)(Il.Z,{theme:"info",view:"filled",type:"container",className:kl("help-card"),children:[_l("help"),(0,d.jsx)(Br.z,{className:kl("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(na.J,{data:Pl.Z,size:18})})]})}var Fl=a(91538),Ql=a(52154);const Gl=le.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 Bl=a(32341);const Vl=(0,c.cn)("node-network");function Hl(){}function $l(e){let{nodeId:t,connected:a,capacity:r,rack:s,status:i,onClick:o=Hl,onMouseEnter:l=Hl,onMouseLeave:c=Hl,showID:u,isBlurred:p}=e;const m=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?Ls.K.Green:a>=70?Ls.K.Yellow:a>=1?Ls.K.Red:Ls.K.Grey}(a,r);return(0,d.jsx)("div",{ref:m,className:Vl({[h.toLowerCase()]:!0,id:u,blur:p}),onMouseEnter:()=>{l(m.current,{nodeId:t,connected:a,capacity:r,rack:s},"node")},onMouseLeave:()=>{c()},onClick:()=>o(t),children:u?t:null})}const Zl=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var Wl,Jl,Kl,Xl,Yl,ec,tc,ac,nc,rc,sc,ic,oc,lc,cc;function dc(){return dc=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},dc.apply(this,arguments)}const uc=function(e){return n.createElement("svg",dc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),Wl||(Wl=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"})),Jl||(Jl=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"})),Kl||(Kl=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"})),Xl||(Xl=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"})),Yl||(Yl=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),ec||(ec=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"})),tc||(tc=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"})),ac||(ac=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"})),nc||(nc=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"})),rc||(rc=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"})),sc||(sc=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"})),ic||(ic=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"})),oc||(oc=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"})),lc||(lc=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),cc||(cc=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"})))},pc=(0,c.cn)("network");function mc(e){var t,a;let{tenantName:r}=e;const[s]=(0,ve.Rj)(),i=(0,ve.ix)(Bl.qz),o=(0,ve.zL)(),[l,c]=n.useState(),[u,p]=n.useState(!1),[m,h]=n.useState(!1),{currentData:v,isFetching:x,error:g}=Gl.useGetNetworkInfoQuery(r,{pollingInterval:s});if(x&&void 0===v)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Gr.a,{size:"l"})});const y=v,b=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===b.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const f=vc(b,"NodeType"),E=l?vc(null!==(a=l.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:pc(),children:[g?(0,d.jsx)(Ce.V,{error:g}):null,b.length>0?(0,d.jsx)("div",{className:pc("inner"),children:(0,d.jsxs)("div",{className:pc("nodes-row"),children:[(0,d.jsxs)("div",{className:pc("left"),children:[(0,d.jsx)("div",{className:pc("controls-wrapper"),children:(0,d.jsxs)("div",{className:pc("controls"),children:[(0,d.jsx)(Ql.T,{value:i,onChange:e=>{o((0,Bl.M6)(e))},className:pc("problem-filter")}),(0,d.jsx)("div",{className:pc("checkbox-wrapper"),children:(0,d.jsx)(je.X,{onUpdate:()=>{p(!u)},checked:u,children:"ID"})}),(0,d.jsx)("div",{className:pc("checkbox-wrapper"),children:(0,d.jsx)(je.X,{onUpdate:()=>{h(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(hc,{nodes:f,showId:u,showRacks:m,clickedNode:l,onClickNode:c})]}),(0,d.jsx)("div",{className:pc("right"),children:l?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:pc("label"),children:["Connectivity of node"," ",(0,d.jsx)(be.rU,{className:pc("link"),to:(0,fo.a3)(l.NodeId),children:l.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:pc("nodes-row"),children:(0,d.jsx)(hc,{nodes:E,isRight:!0,showId:u,showRacks:m,clickedNode:l,onClickNode:c})})]}):(0,d.jsxs)("div",{className:pc("placeholder"),children:[(0,d.jsx)("div",{className:pc("placeholder-img"),children:(0,d.jsx)(na.J,{data:uc,width:221,height:204})}),(0,d.jsx)("div",{className:pc("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function hc(e){let{nodes:t,isRight:a,showId:n,showRacks:r,clickedNode:s,onClickNode:i}=e;const o=(0,ve.ix)(Bl.qz),l=(0,ve.zL)();let c=0;const u=Object.keys(t).map(((e,u)=>{const p=vc(t[e],"Rack");return(0,d.jsxs)("div",{className:pc("nodes-container",{right:a}),children:[(0,d.jsxs)("div",{className:pc("nodes-title"),children:[e," nodes"]}),(0,d.jsx)("div",{className:pc("nodes"),children:r?Object.keys(p).map(((e,t)=>(0,d.jsxs)("div",{className:pc("rack-column"),children:[(0,d.jsx)("div",{className:pc("rack-index"),children:"undefined"===e?"?":e}),p[e].map(((e,t)=>{let r,u;return!a&&"Peers"in e&&e.Peers&&(r=Object.keys(e.Peers).length,u=Zl(e.Peers)),o===Bl.pu.PROBLEMS&&r!==u||o===Bl.pu.ALL||a?(c++,(0,d.jsx)($l,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:r,connected:u,onMouseEnter:function(){l((0,Ie.hJ)(...arguments))},onMouseLeave:()=>{l((0,Ie.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 p=e&&"Peers"in e?e.Peers:void 0;return!a&&"Peers"in e&&e.Peers&&(r=e.Peers.length,u=Zl(p)),o===Bl.pu.PROBLEMS&&r!==u||o===Bl.pu.ALL||a?(c++,(0,d.jsx)($l,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===p||void 0===p?void 0:p.length,connected:u,onMouseEnter:function(){l((0,Ie.hJ)(...arguments))},onMouseLeave:()=>{l((0,Ie.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===Bl.pu.PROBLEMS&&0===c?(0,d.jsx)(Fl.Q,{name:"thumbsUp",width:"200"}):u}function vc(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}var xc=a(4969),gc=a(72736),yc=a(53366),bc=a(76485);const fc=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"}'),Ec=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"}'),Sc=(0,it.wZ)("ydb-diagnostics-partitions",{ru:Ec,en:fc}),Tc={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"},Nc={[Tc.PARTITION_ID]:"Partition ID",[Tc.STORE_SIZE]:"Store size",[Tc.WRITE_SPEED]:"Write speed",[Tc.READ_SPEED]:"Read speed",[Tc.WRITE_LAGS]:"Write lags, duration",[Tc.READ_LAGS]:"Read lags, duration",[Tc.UNCOMMITED_MESSAGES]:"Uncommited messages",[Tc.UNREAD_MESSAGES]:"Unread messages",[Tc.START_OFFSET]:"Start offset",[Tc.END_OFFSET]:"End offset",[Tc.COMMITED_OFFSET]:"Commited offset",[Tc.READ_SESSION_ID]:"Read session ID",[Tc.READER_NAME]:"Reader name",[Tc.PARTITION_HOST]:"Partition host",[Tc.CONNECTION_HOST]:"Connection host"},jc="partitionWriteLag",Cc="partitionWriteIdleTime",wc={[jc]:"write lag",[Cc]:"write idle time"},Pc="consumerWriteLag",Ic="consumerReadLag",Dc="consumerReadIdleTime",Rc={[Pc]:"write lag",[Ic]:"read lag",[Dc]:"read idle time"},_c=[Tc.PARTITION_ID,Tc.STORE_SIZE,Tc.WRITE_SPEED,Tc.WRITE_LAGS,Tc.START_OFFSET,Tc.END_OFFSET,Tc.PARTITION_HOST],Ac=Object.values(Tc),Oc=e=>{let{consumers:t,selectedConsumer:a,onSelectedConsumerChange:r,selectDisabled:s,partitions:i,onSearchChange:o,hiddenColumns:l,onHiddenColumnsChange:c,initialColumnsIds:u}=e;const[p,m]=n.useState(""),[h,v]=n.useState("");n.useEffect((()=>{if(!i)return;const e=new RegExp(ua()(h),"i"),t=new RegExp(ua()(p),"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),p=0===u.length||u.some((e=>t.test(e)));return d&&p}));o(a)}),[h,p,i,o]);const x=n.useMemo((()=>{const e=t&&t.length?t.map((e=>({value:e,content:e}))):[];return[{value:"",content:Sc("controls.consumerSelector.emptyOption")},...e]}),[t]),g=n.useMemo((()=>{const e=[];for(const t of u){const a=t===Tc.PARTITION_ID,n={title:Nc[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:Vc("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ne.P,{className:Vc("consumer-select"),label:Sc("controls.consumerSelector"),options:x,value:[a],onUpdate:e=>{r(e[0])},filterable:t&&t.length>5,disabled:s||!t||!t.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(bc.o,{onChange:e=>{v(e)},placeholder:Sc("controls.partitionSearch"),className:Vc("search",{partition:!0}),value:h}),(0,d.jsx)(bc.o,{onChange:e=>{m(e)},placeholder:Sc("controls.generalSearch"),className:Vc("search",{general:!0}),value:p}),(0,d.jsx)(yc.N,{popupWidth:242,items:g,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")]})},Mc=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),kc=e=>{let{title:t}=e;return(0,d.jsx)("div",{className:Mc("multiline"),children:t})},Lc=()=>(0,d.jsx)("div",{className:Mc("read-session"),children:Nc[Tc.READ_SESSION_ID]}),zc=()=>(0,d.jsx)(Ra,{className:Mc("lags"),text:Nc[Tc.WRITE_LAGS],popoverContent:(0,d.jsx)(Va,{text:Sc("lagsPopover.writeLags"),type:"write"})}),qc=()=>(0,d.jsx)(Ra,{className:Mc("lags"),text:Nc[Tc.READ_LAGS],popoverContent:(0,d.jsx)(Va,{text:Sc("lagsPopover.readLags"),type:"read"})}),Uc=()=>(0,d.jsx)(Ra,{className:Mc("messages"),text:Nc[Tc.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:Mc("messages-popover-content"),children:Sc("headers.unread")})}),Fc=()=>(0,d.jsx)(Ra,{className:Mc("messages"),text:Nc[Tc.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:Mc("messages-popover-content"),children:Sc("headers.uncommited")})}),Qc=(0,c.cn)("ydb-diagnostics-partitions-columns"),Gc=[{name:Tc.PARTITION_ID,header:(0,d.jsx)(kc,{title:Nc[Tc.PARTITION_ID]}),sortAccessor:e=>(0,Or.kE)(e.partitionId)&&Number(e.partitionId),align:Mt.ZP.LEFT,render:e=>{let{row:t}=e;return t.partitionId}},{name:Tc.STORE_SIZE,header:(0,d.jsx)(kc,{title:Nc[Tc.STORE_SIZE]}),align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.td)(t.storeSize)}},{name:Tc.WRITE_SPEED,header:Nc[Tc.WRITE_SPEED],align:Mt.ZP.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:e=>{let{row:t}=e;return(0,d.jsx)(Na,{data:t.writeSpeed})}},{name:Tc.READ_SPEED,header:Nc[Tc.READ_SPEED],align:Mt.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)(Na,{data:t.readSpeed})}},{name:Tc.WRITE_LAGS,header:(0,d.jsx)(zc,{}),className:Qc("lags-header"),sub:[{name:jc,header:wc[jc],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.partitionWriteLag)}},{name:Cc,header:wc[Cc],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.partitionWriteIdleTime)}}]},{name:Tc.READ_LAGS,header:(0,d.jsx)(qc,{}),className:Qc("lags-header"),sub:[{name:Pc,header:Rc[Pc],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.consumerWriteLag)}},{name:Ic,header:Rc[Ic],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.consumerReadLag)}},{name:Dc,header:Rc[Dc],align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,De.gC)(t.consumerReadIdleTime)}}]},{name:Tc.UNCOMMITED_MESSAGES,header:(0,d.jsx)(Fc,{}),align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return t.uncommitedMessages}},{name:Tc.UNREAD_MESSAGES,header:(0,d.jsx)(Uc,{}),align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return t.unreadMessages}},{name:Tc.START_OFFSET,header:(0,d.jsx)(kc,{title:Nc[Tc.START_OFFSET]}),sortAccessor:e=>(0,Or.kE)(e.startOffset)&&Number(e.startOffset),align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return t.startOffset}},{name:Tc.END_OFFSET,header:(0,d.jsx)(kc,{title:Nc[Tc.END_OFFSET]}),sortAccessor:e=>(0,Or.kE)(e.endOffset)&&Number(e.endOffset),align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return t.endOffset}},{name:Tc.COMMITED_OFFSET,header:(0,d.jsx)(kc,{title:Nc[Tc.COMMITED_OFFSET]}),sortAccessor:e=>(0,Or.kE)(e.commitedOffset)&&Number(e.commitedOffset),align:Mt.ZP.RIGHT,render:e=>{let{row:t}=e;return t.commitedOffset}},{name:Tc.READ_SESSION_ID,header:(0,d.jsx)(Lc,{}),align:Mt.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readSessionId?(0,d.jsx)(Ln.A,{name:t.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:Tc.READER_NAME,header:(0,d.jsx)(kc,{title:Nc[Tc.READER_NAME]}),align:Mt.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readerName?(0,d.jsx)(Ln.A,{name:t.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:Tc.PARTITION_HOST,header:(0,d.jsx)(kc,{title:Nc[Tc.PARTITION_HOST]}),align:Mt.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.partitionNodeId&&t.partitionHost?(0,d.jsx)(Ln.A,{name:t.partitionHost,path:(0,fo.a3)(t.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:Tc.CONNECTION_HOST,header:(0,d.jsx)(kc,{title:Nc[Tc.CONNECTION_HOST]}),align:Mt.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.connectionNodeId&&t.connectionHost?(0,d.jsx)(Ln.A,{name:t.connectionHost,path:(0,fo.a3)(t.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}}],Bc=Gc.filter((e=>_c.includes(e.name))),Vc=(0,c.cn)("ydb-diagnostics-partitions"),Hc=e=>{let{path:t,database:a}=e;const r=(0,ve.zL)(),[s,i]=n.useState([]),o=(0,ve.ix)((e=>ga(e,t,a))),[l]=(0,ve.Rj)(),{selectedConsumer:c}=(0,ve.ix)((e=>e.partitions)),{currentData:u,isFetching:p,error:m}=ma.useGetTopicQuery({path:t,database:a}),h=p&&void 0===u,{currentData:v,isFetching:x,error:g}=xc.W.useGetNodesListQuery(void 0),y=x&&void 0===v,f=(0,ve.ix)(xc.s),[E,S]=(0,ve.yu)(he.ZY),[T,N]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(Gc),s(Ac)):(a(Bc),s(_c))}),[e]),[t,r]})(c),j=h?b.CN:{path:t,database:a,consumerName:c},{currentData:C,isFetching:w,error:P}=gc.TB.useGetPartitionsQuery(j,{pollingInterval:l}),I=w&&void 0===C,D=C,R=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}}))}(D,f)),[D,f]);n.useEffect((()=>{const e=!h&&!o,t=c&&o&&!o.includes(c);(e||t)&&r((0,gc.M$)(""))}),[r,h,c,o]);const _=n.useMemo((()=>T.filter((e=>!E.includes(e.name)))),[T,E]),A=e=>{S(e)},O=e=>{r((0,gc.M$)(e))},M=h||y||I,k=g||m||P;return(0,d.jsxs)("div",{className:Vc(),children:[(0,d.jsx)("div",{className:Vc("controls"),children:(0,d.jsx)(Oc,{consumers:o,selectedConsumer:c,onSelectedConsumerChange:O,selectDisabled:Boolean(k)||M,partitions:R,onSearchChange:i,hiddenColumns:E,onHiddenColumnsChange:A,initialColumnsIds:N})}),k?(0,d.jsx)(Ce.V,{error:k}):null,(0,d.jsx)("div",{className:Vc("table-wrapper"),children:(0,d.jsx)("div",{className:Vc("table-content"),children:C?M?(0,d.jsx)(jt.h,{className:Vc("loader")}):(0,d.jsx)(tt.G,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:Vc("table"),data:s,columns:_,settings:he.LE,emptyDataMessage:Sc("table.emptyDataMessage")}):null})})]})};var $c=a(67661),Zc=a(54431);const Wc=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Jc=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Kc=(0,it.wZ)("ydb-date-range",{ru:Jc,en:Wc});function Xc(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 Yc=(0,c.cn)("date-range"),ed={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},td=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,ht.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,ht.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,ht.KN)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,ht.KN)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,ht.J)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,ht.J)(Number(e.to))}:null}}({from:t,to:a})}),[t,a]),l=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:Yc(null,r),children:(0,d.jsx)(Zc.H,{withPresets:!0,className:Yc("range-input",{[Xc(o)]:!0}),timeZone:l,value:o||ed,allowNullableValues:!0,size:"m",format:Kc("date-time-format"),onUpdate:i,placeholder:`${Kc("date-time-format")} - ${Kc("date-time-format")}`,withApplyButton:!0})})},ad=e=>{var t;let{database:a,onRowClick:r,rowClassName:s}=e;const[i]=(0,ve.Rj)(),o=(0,ve.ix)((e=>e.executeTopQueries)),{currentData:l,isLoading:c,error:u}=ji.MU.useGetRunningQueriesQuery({database:a,filters:o},{pollingInterval:i}),p=(null===l||void 0===l||null===(t=l.resultSets)||void 0===t?void 0:t[0].result)||[];return(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(Ce.V,{error:(0,Ct.fV)(u)}):null,(0,d.jsx)(at.l.Table,{loading:c,children:(0,d.jsx)(tt.G,{emptyDataMessage:Wi("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:uo,data:p,settings:$i,onRowClick:e=>r(e.QueryText),rowClassName:()=>s})})]})},nd=e=>{var t,a;let{database:r,onRowClick:s,rowClassName:i}=e;const[o]=(0,ve.Rj)(),l=(0,ve.ix)((e=>e.executeTopQueries)),{currentData:c,isLoading:u,error:p}=ji.MU.useGetTopQueriesQuery({database:r,filters:l},{pollingInterval:o}),m=(null===c||void 0===c||null===(t=c.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],h=lo.map((e=>{return{...e,sortable:(t=e.name,Object.values(Qi).includes(t))};var t}));return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(Ce.V,{error:(0,Ct.fV)(p)}):null,(0,d.jsx)(at.l.Table,{loading:u,children:(0,d.jsx)(tt.G,{emptyDataMessage:Wi("no-data"),columnsWidthLSKey:Ki,columns:h,data:m||[],settings:$i,onRowClick:e=>s(e.QueryText),rowClassName:()=>i})})]})},rd=(0,c.cn)("kv-top-queries"),sd={top:"top",running:"running"},id=[{value:sd.top,get content(){return Wi("mode_top")}},{value:sd.running,get content(){return Wi("mode_running")}}],od=ft.z.nativeEnum(sd).catch(sd.top),ld=e=>{let{tenantName:t}=e;const a=(0,ve.zL)(),r=(0,Vn.TH)(),i=(0,Vn.k6)(),[o=sd.top,l]=(0,s.useQueryParam)("queryMode",s.StringParam),c=od.parse(o),u=c===sd.top,p=(0,ve.ix)((e=>e.executeTopQueries)),m=n.useCallback((e=>{a((0,Ni.B8)({input:e}));const t=(0,Ee.mB)(r),n=(0,ea.Sj)({...t,[ge.bS]:ge.m2.query,[ea.XV.queryTab]:ge._0.newQuery});i.push(n)}),[a,i,r]),h=u?nd:ad;return(0,d.jsxs)(at.l,{children:[(0,d.jsxs)(at.l.Controls,{children:[(0,d.jsx)($c.E,{options:id,value:c,onUpdate:l}),(0,d.jsx)(st.o,{value:p.text,onChange:e=>{a((0,ji.Im)({text:e}))},placeholder:Wi("filter.text.placeholder"),className:rd("search")}),u?(0,d.jsx)(td,{from:p.from,to:p.to,onChange:e=>{a((0,ji.Im)(e))}}):null]}),(0,d.jsx)(h,{database:t,onRowClick:m,rowClassName:rd("row")})]})};var cd=a(43647),dd=a(70337);const ud=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%"}'),pd=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%"}'),md=(0,it.wZ)("ydb-diagnostics-top-shards",{ru:pd,en:ud}),hd=e=>{let{value:t,onChange:a}=e;const r=t.mode===dd.F.Immediate?void 0:t.from,s=t.mode===dd.F.Immediate?void 0:t.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)($c.E,{value:t.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(dd.F,e)){const t=Object.values(dd.F).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}a({mode:e})},children:[(0,d.jsx)($c.E.Option,{value:dd.F.Immediate,children:md("filters.mode.immediate")}),(0,d.jsx)($c.E.Option,{value:dd.F.History,children:md("filters.mode.history")})]}),(0,d.jsx)(td,{from:r,to:s,onChange:e=>{a({mode:dd.F.History,...e})}})]})},vd=(0,c.cn)("top-shards"),xd={...he.LE,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Mt.ZP.DESCENDING};function gd(e){return e?(0,De.o0)(new Date(e).getTime()):"\u2013"}function yd(e){return e?e.split(",").map((e=>({columnId:e,order:Mt.ZP.DESCENDING}))):void 0}function bd(e){return e.to="now",e.from="now-1h",e}const fd=e=>{var t,a;let{tenantName:r,path:s,type:i}=e;const o=(0,ve.zL)(),l=(0,Vn.TH)(),[c]=(0,ve.Rj)(),u=(0,ve.ix)((e=>e.shardsWorkload)),[p,m]=n.useState((()=>{const e={...u};return e.mode||(e.mode=dd.F.Immediate),e.from||e.to||bd(e),e})),[h,v]=n.useState(zi),{currentData:x,isFetching:g,error:y}=cd.Ag.useSendShardQueryQuery({database:r,path:s,sortOrder:(b=h,b?b.split(",").map((e=>({columnId:e,order:"DESC"}))):void 0),filters:p},{pollingInterval:c});var b;const f=g&&void 0===x,E=(null===x||void 0===x||null===(t=x.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],S=e=>{v(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))},T=e=>{const t={...e};if(!u.from&&!u.to&&!e.from&&!e.to)switch(e.mode){case dd.F.Immediate:t.from=t.to=void 0;break;case dd.F.History:bd(t)}o((0,cd.K2)(e)),m((e=>({...e,...t})))},N=n.useMemo((()=>{const e=((e,t)=>[Io(e,t),Do,Ro,_o,Ao,Mo])(r,l),t=e.map((e=>({...e,sortable:Gi(e.name)})));return p.mode===dd.F.History&&(t.splice(5,0,{name:qi,render:e=>{let{row:t}=e;return gd(t.PeakTime)},sortable:!1}),t.push({name:Ui,render:e=>{let{row:t}=e;return gd(t.IntervalEnd)}})),t}),[p.mode,l,r]);return(0,d.jsxs)(at.l,{children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(hd,{value:p,onChange:T})}),p.mode===dd.F.History&&(0,d.jsx)("div",{className:vd("hint"),children:md("description")}),y?(0,d.jsx)(Ce.V,{error:(0,Ct.fV)(y)}):null,(0,d.jsx)(at.l.Table,{loading:f,children:y&&!E?null:!E||K(i)?md("no-data"):(0,d.jsx)(tt.G,{columnsWidthLSKey:Eo,columns:N,data:E,settings:xd,onSort:S,sortOrder:yd(h)})})]})},Ed=(0,c.cn)("kv-tenant-diagnostics");const Sd=function(e){const t=n.useRef(null),a=(0,ve.zL)(),{diagnosticsTab:i=ge.qQ.overview}=(0,ve.ix)((e=>e.tenant)),[o]=(0,s.useQueryParams)({name:s.StringParam,schema:s.StringParam,backend:s.StringParam,clusterName:s.StringParam}),l=Y(e.type)?e.path:e.tenantName,c=Y(e.type)||e.path===e.tenantName,u=(0,Se.bq)(),p=c?wl({hasFeatureFlags:u}):Cl(e.type);let m=p.find((e=>e.id===i));return m||(m=p[0]),n.useEffect((()=>{m&&m.id!==i&&a((0,Te.$v)(m.id))}),[m,i,a]),(0,d.jsxs)("div",{className:Ed(),children:[m?(0,d.jsx)(r.ql,{children:(0,d.jsx)("title",{children:m.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:Ed("header-wrapper"),children:(0,d.jsxs)("div",{className:Ed("tabs"),children:[(0,d.jsx)(ye.m,{size:"l",items:p,activeTab:null===(e=m)||void 0===e?void 0:e.id,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,Ee.ax)(Ee.ZP.tenant,void 0,{...o,[ea.XV.diagnosticsTab]:a});return(0,d.jsx)(be.rU,{to:n,className:Ed("tab"),children:t},a)},allowNotSelected:!0}),(0,d.jsx)(fe.q,{})]})})})(),(0,d.jsx)("div",{className:Ed("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=m)||void 0===a?void 0:a.id){case ge.qQ.overview:return(0,d.jsx)(tl,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ge.qQ.schema:return(0,d.jsx)(Yt,{path:r,tenantName:l,type:n,extended:!0});case ge.qQ.topQueries:return(0,d.jsx)(ld,{tenantName:l});case ge.qQ.topShards:return(0,d.jsx)(fd,{tenantName:l,path:r,type:n});case ge.qQ.nodes:return(0,d.jsx)(Ye.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ge.qQ.tablets:return(0,d.jsx)(Nt.J,{path:r,database:l});case ge.qQ.storage:return(0,d.jsx)(Tt.V,{database:l,parentRef:t});case ge.qQ.network:return(0,d.jsx)(mc,{tenantName:l});case ge.qQ.describe:return(0,d.jsx)(xn,{path:r,database:l,type:n});case ge.qQ.hotKeys:return(0,d.jsx)(ql,{path:r,database:l});case ge.qQ.graph:return(0,d.jsx)(Xe,{path:r,database:l});case ge.qQ.consumers:return(0,d.jsx)(cn,{path:r,database:l,type:n});case ge.qQ.partitions:return(0,d.jsx)(Hc,{path:r,database:l});case ge.qQ.configs:return(0,d.jsx)(ca,{database:l});case ge.qQ.operations:return(0,d.jsx)(St,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},Td=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"}'),Nd=(0,it.wZ)("ydb-query-editor",{en:Td}),jd=(0,c.cn)("ydb-queries-history"),Cd="queriesHistoryTableColumnsWidth";const wd=function(e){let{changeUserInput:t}=e;const a=(0,ve.zL)(),n=(0,ve.ix)(Ni.qV),r=(0,ve.ix)(Ni.vS),s=[...n].reverse(),i=[{name:"queryText",header:Nd("history.queryText"),render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:jd("query"),children:(0,d.jsx)(wi,{value:t.queryText,maxQueryHeight:Hi})})},sortable:!1,width:600},{name:"EndTime",header:Nd("history.endTime"),render:e=>{let{row:t}=e;return t.endTime?(0,De.o0)(t.endTime.toString()):"-"},align:"right",width:200,sortable:!1},{name:"Duration",header:Nd("history.duration"),render:e=>{let{row:t}=e;return t.durationUs?(0,bt.zm)((0,bt.BO)(t.durationUs)):"-"},align:"right",width:150,sortable:!1}];return(0,d.jsxs)(at.l,{className:jd(),children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(st.o,{value:r,onChange:e=>{a((0,Ni.u$)(e))},placeholder:Nd("filter.text.placeholder"),className:jd("search")})}),(0,d.jsx)(at.l.Table,{children:(0,d.jsx)(tt.G,{columnsWidthLSKey:Cd,columns:i,data:s,settings:$i,emptyDataMessage:Nd(r?"history.empty-search":"history.empty"),onRowClick:e=>(t({input:e.queryText}),void a((0,Te.jk)(ge._0.newQuery))),rowClassName:()=>jd("table-row")})})]})};var Pd=a(76421),Id=a(40145);const Dd=(0,a(99669).k)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,39862))).default})),"Editor");var Rd=a(6782),_d=a(5594);const Ad=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function Od(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))Ad.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 Md(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function kd(e){const t=[],a=[];const n=e,r={name:String(n.PlanNodeId),data:{id:n.PlanNodeId,type:Md(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:Md(r),name:r["Node Type"],operators:null===(s=r.Operators)||void 0===s?void 0:s.map((e=>e.Name)),stats:Od(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 Ld(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,p={name:d,operationParams:u,aCpu:e,aRows:t,eCost:n,eRows:r,eSize:l,children:[]};if(o.push(p),s)for(let i=s.length-1;i>=0;i--)a.push({node:s[i],subNodes:p.children})}else if(s)for(let t=s.length-1;t>=0;t--)a.push({node:s[t],subNodes:o})}return t}const zd={v2:"0.2"},qd=Object.values(zd),Ud=le.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=Ct.jM.yql;l((0,Ni.Ae)({type:_d.X.EXPLAIN,queryId:i,isLoading:!0})),"pg"===(null===r||void 0===r?void 0:r.queryMode)?(c="explain-query",d=Ct.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?Rd.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,Or.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,Ct.gW)(e))return l((0,Ni.Ae)({type:_d.X.EXPLAIN,error:e,queryId:i,isLoading:!1})),{error:e};const t=(e=>{const{plan:t,ast:a}=(0,Ct.CC)(e);if(!t)return{ast:a};const{tables:n,meta:r,Plan:s,SimplifiedPlan:i}=(0,Ct.y5)(t);if(-1===qd.indexOf(r.version))return{plan:{pristine:t,version:r.version},ast:a};let o,l=[],c=[];if(s){const e=kd(s);l=e.links,c=e.nodes}return i&&(o=Ld([i])),{plan:{links:l,nodes:c,tables:n,version:r.version,pristine:t},simplifiedPlan:{plan:o,pristine:i},ast:a}})(e);return l((0,Ni.Ae)({type:_d.X.EXPLAIN,data:t,queryId:i,isLoading:!1})),{data:null}}catch(u){return l((0,Ni.Ae)({type:_d.X.EXPLAIN,error:u,queryId:i,isLoading:!1})),{error:u}}}})}),overrideExisting:"throw"});var Fd=a(6130),Qd=a(19580);function Gd(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 Bd=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"}'),Vd=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"}'),Hd=(0,it.wZ)("ydb-query-settings-dialog",{en:Bd,ru:Vd}),$d=[{value:Ct.cy.implicit,content:Ct.Nf[Ct.cy.implicit],text:Nd("transaction-mode-description.implicit"),isDefault:!0},{value:Ct.cy.serializable,content:Ct.Nf[Ct.cy.serializable],text:Nd("transaction-mode-description.serializable")},{value:Ct.cy.onlinero,content:Ct.Nf[Ct.cy.onlinero],text:Nd("transaction-mode-description.onlinero")},{value:Ct.cy.stalero,content:Ct.Nf[Ct.cy.stalero],text:Nd("transaction-mode-description.stalero")},{value:Ct.cy.snapshot,content:Ct.Nf[Ct.cy.snapshot],text:Nd("transaction-mode-description.snapshot")}],Zd=[{value:Ct.wZ.query,content:Ct.U4[Ct.wZ.query],text:Nd("method-description.query"),isDefault:!0},{value:Ct.wZ.script,content:Ct.U4[Ct.wZ.script],text:Nd("method-description.script")},{value:Ct.wZ.scan,content:Ct.U4[Ct.wZ.scan],text:Nd("method-description.scan")},{value:Ct.wZ.data,content:Ct.U4[Ct.wZ.data],text:Nd("method-description.data")},{value:Ct.wZ.pg,content:Ct.U4[Ct.wZ.pg],text:Nd("method-description.pg")}],Wd=[{value:Ct.$E.none,content:Ct.Ie[Ct.$E.none],text:Nd("statistics-mode-description.none"),isDefault:!0},{value:Ct.$E.basic,content:Ct.Ie[Ct.$E.basic],text:Nd("statistics-mode-description.basic")},{value:Ct.$E.full,content:Ct.Ie[Ct.$E.full],text:Nd("statistics-mode-description.full")},{value:Ct.$E.profile,content:Ct.Ie[Ct.$E.profile],text:Nd("statistics-mode-description.profile")}],Jd=[{value:Ct.Rm.off,content:Ct.Vj[Ct.Rm.off],text:Nd("tracing-level-description.off"),isDefault:!0},{value:Ct.Rm.toplevel,content:Ct.Vj[Ct.Rm.toplevel],text:Nd("tracing-level-description.toplevel")},{value:Ct.Rm.basic,content:Ct.Vj[Ct.Rm.basic],text:Nd("tracing-level-description.basic")},{value:Ct.Rm.detailed,content:Ct.Vj[Ct.Rm.detailed],text:Nd("tracing-level-description.detailed")},{value:Ct.Rm.diagnostic,content:Ct.Vj[Ct.Rm.diagnostic],text:Nd("tracing-level-description.diagnostic")},{value:Ct.Rm.trace,content:Ct.Vj[Ct.Rm.trace],text:Nd("tracing-level-description.trace")}],Kd={transactionMode:{title:Hd("form.transaction-mode"),options:$d},queryMode:{title:Hd("form.query-mode"),options:Zd},statisticsMode:{title:Hd("form.statistics-mode"),options:Wd},tracingLevel:{title:Hd("form.tracing-level"),options:Jd},timeout:{title:Hd("form.timeout")},limitRows:{title:Hd("form.limit-rows")}};function Xd(e){let{currentSettings:t,defaultSettings:a}=e;const n=Gd(t,a),r={};return n.forEach((e=>{const a=Kd[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 Yd=a(82202);const eu=()=>{const[e,t]=(0,Yd.y)(he.RE);let a;try{a=Ct.J7.parse(e)}catch(n){a=void 0}return[a,t]};var tu=a(8214);const au=()=>{const[e,t]=(0,Yd.y)(he.Rn),[a]=eu(),[n]=(0,tu.d)(),r=a?Gd(a,Ct.hl):[],s=n?Gd(n,Ct.hl):[],i=r.length>0,o=a?Xd({currentSettings:a,defaultSettings:Ct.hl}):{},l=n?Xd({currentSettings:n,defaultSettings:Ct.hl}):{},c=e&&Date.now()-e<1e3*he.nU;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:s,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}},nu="s-expression",ru="yql";var su=a(58903);let iu;!function(e){e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear"}(iu||(iu={}));const ou=e=>{localStorage.setItem(e,"true")},lu=e=>{localStorage.removeItem(e)};function cu(e){return function(t,a){switch(a){case iu.triggerCollapse:return ou(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case iu.triggerExpand:return lu(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case iu.clear:return lu(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const du=(0,c.cn)("kv-pane-visibility-button");function uu(e){let{onCollapse:t,onExpand:a,isCollapsed:r,initialDirection:s="top",className:i}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Br.z,{view:"flat-secondary",onClick:t,className:du({hidden:r},i),title:"Collapse",children:(0,d.jsx)(na.J,{data:su.Z,className:du({[s]:!0})})}),(0,d.jsx)(Br.z,{view:"flat-secondary",onClick:a,className:du({hidden:!r},i),title:"Expand",children:(0,d.jsx)(na.J,{data:su.Z,className:du({[s]:!0},"rotate")})})]})}const pu=(0,c.cn)("kv-divider");const mu=function(){return(0,d.jsx)("div",{className:pu()})},hu=(0,c.cn)("ydb-query-elapsed-time");function vu(e){let{className:t}=e;const[,a]=n.useState({}),[r]=n.useState(Date.now()),s=Date.now()-r;n.useEffect((()=>{const e=setInterval((()=>{a({})}),he.NO);return()=>{clearInterval(e)}}),[]);const i=s>he.RQ*he.NO?(0,ht.x9)(s).format("hh:mm:ss"):(0,ht.x9)(s).format("mm:ss");return(0,d.jsx)(It._,{className:hu(null,t),children:i})}var xu=a(1995),gu=a(50015);const yu=function(e){let{disabled:t}=e;const a=(0,ve.zL)();return(0,d.jsx)(Br.z,{onClick:()=>{a((0,gu.Xl)())},view:"flat-secondary",disabled:t,title:"Fullscreen",children:(0,d.jsx)(na.J,{data:xu.Z})})};var bu,fu=a(41715);function Eu(){return Eu=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},Eu.apply(this,arguments)}const Su=function(e){return n.createElement("svg",Eu({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),bu||(bu=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 Tu;const Nu=(0,c.cn)("ydb-fullscreen"),ju=null!==(Tu=document.getElementById("fullscreen-root"))&&void 0!==Tu?Tu:void 0;const Cu=function(e){let{children:t,className:a}=e;const r=(0,ve.ix)((e=>e.fullscreen)),s=(0,ve.zL)(),i=n.useCallback((()=>{s((0,gu.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===ju||void 0===ju||ju.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===ju||void 0===ju||ju.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)(fu.h,{container:o,children:(0,d.jsxs)("div",{className:Nu({fullscreen:r},a),children:[(0,d.jsx)(Br.z,{onClick:i,view:"raised",className:Nu("close-button"),children:(0,d.jsx)(na.J,{data:Su})}),t]})})}):null};var wu=a(92243);function Pu(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,wu.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 Iu={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},Du={node:wu.od};function Ru(e){return(0,d.jsx)(Pu,{...e,opts:Iu,shapes:Du})}var _u=a(29651),Au=a(12205),Ou=a(81187),Mu=a(46640);function ku(e){var t;const a=(0,Ct.dt)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}var Lu=a(87717);const zu=(0,c.cn)("ydb-query-settings-description"),qu=e=>{let{querySettings:t,prefix:a}=e;return(0,d.jsxs)("div",{className:zu("message"),children:[a,Object.entries(t).map(((e,t,a)=>{let[n,r]=e;return(0,d.jsxs)("span",{className:zu("description-item"),children:[`${n}: ${r}`,t<a.length-1?", ":null]},t)}))]})},Uu=(0,c.cn)("kv-query-execution-status"),Fu=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=au();return e?(0,d.jsx)(Ou.u,{openDelay:0,content:(0,d.jsx)(qu,{prefix:Nd("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(na.J,{data:Ks.Z,className:Uu("query-settings-icon")})}):null},Qu=e=>{let t,a,{className:n,error:r,loading:s}=e;if(s)t=(0,d.jsx)(Mu.y,{size:"xs"}),a="Running";else if((0,Lu.IZ)(r)&&"ECONNABORTED"===r.code)t=(0,d.jsx)(na.J,{data:_u.Z}),a="Connection aborted";else if(ku(r))t=(0,d.jsx)(na.J,{data:Au.Z}),a="Stopped";else{const e=Boolean(r);t=(0,d.jsx)(na.J,{data:e?Xs.Z:Js.Z,className:Uu("result-status-icon",{error:e})}),a=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:Uu(null,n),children:[t,a,ku(r)||s?null:(0,d.jsx)(Fu,{})]})},Gu=n.memo((function(e){const{className:t,value:a}=e,n=(0,ve.zL)();return(0,d.jsx)("span",{className:Wu("cell",t),onClick:e=>n((0,Ie.hJ)(e.target,a,"cell")),children:a})})),Bu=JSON.parse('{"empty":"Table is empty"}'),Vu=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Hu=(0,it.wZ)("ydb-query-result-table",{ru:Vu,en:Bu}),$u=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},Zu={...he.LE,stripedRows:!0,dynamicRenderType:"variable",dynamicItemSizeGetter:()=>40,sortable:!1},Wu=(0,c.cn)("ydb-query-result-table"),Ju=(e,t)=>t,Ku=e=>{const{columns:t,data:a,...r}=e,s=n.useMemo((()=>(0,Ct.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,Ct.T$)(n);return{name:t,width:$u({data:a,name:t}),align:"number"===r?Mt.ZP.RIGHT:Mt.ZP.LEFT,render:e=>{let{row:a}=e;return(0,d.jsx)(Gu,{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:$u({data:t,name:a}),align:(0,Or.kE)(e[0][a])?Mt.ZP.RIGHT:Mt.ZP.LEFT,render:e=>{let{row:t}=e;return(0,d.jsx)(Gu,{value:String(t[a])})}})))})(s)),[s,t]);return Array.isArray(a)?i.length?(0,d.jsx)(tt.G,{data:s,columns:i,settings:Zu,rowKey:Ju,...r}):(0,d.jsx)("div",{className:Wu("message"),children:Hu("empty")}):null};var Xu=a(87130);const Yu=le.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,Ct.gW)(e))return{error:e};return{data:(0,Ct.gY)(e)}}catch(s){return{error:s}}}})}),overrideExisting:"throw"}),ep=(0,c.cn)("cancel-query-button");function tp(e){let{queryId:t,tenantName:a}=e;const[r,s]=Yu.useCancelQueryMutation(),i=n.useCallback((()=>{r({queryId:t,database:a})}),[t,r,a]);return(0,d.jsxs)(Br.z,{loading:s.isLoading,onClick:i,className:ep("stop-button",{error:Boolean(s.error)}),children:[(0,d.jsx)(na.J,{data:Xu.Z,size:16}),Nd("action.stop")]})}var ap=a(8475),np=a(72001),rp=a(25089);const sp=(0,c.cn)("ydb-query-explain-simplified-plan");function ip(e){let{value:t,formatter:a}=e;if(!(0,Or.kE)(t))return;const n=a(Number(t));return(0,d.jsx)("div",{className:sp("metrics-cell"),children:n})}var op=a(81778);const lp={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function cp(e){return e in lp?lp[e]:"var(--g-color-text-secondary)"}function dp(){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=cp(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,De.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=cp(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,De.fm)(r)]},e))}}return t}function up(e){let{params:t}=e;return t?(0,d.jsxs)("span",{className:sp("operation-params"),children:["(",dp(t),")"]}):null}const pp=25,mp=9;function hp(e){let{modifiers:t,left:a}=e;return(0,d.jsx)("div",{className:sp("divider",t),style:{left:a}})}function vp(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)(hp,{modifiers:{horizontal:!0},left:mp+1+pp*(r-1)},"last")):n.push((0,d.jsx)(hp,{modifiers:{last:!0},left:mp+pp*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(hp,{modifiers:{first:!0},left:mp+pp*r},"first")),a[r]&&n.push((0,d.jsx)(hp,{left:mp+pp*(r-1)},r));return n}(o,l)),[o,l]);return(0,d.jsxs)("div",{style:{paddingLeft:pp*a},className:sp("operation-name"),children:[c,(0,d.jsxs)(sr.k,{gap:1,alignItems:"flex-start",className:sp("operation-content"),children:[t.getCanExpand()&&(0,d.jsx)(Br.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,d.jsx)(Br.z.Icon,{children:(0,d.jsx)(op.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:sp("operation-name-content"),children:(0,d.jsxs)("div",{children:[s,"\xa0",(0,d.jsx)(up,{params:i})]})})]})]})}function xp(e){return(0,d.jsx)(ip,{value:e.getValue(),formatter:e=>e<1e8?(0,rp.X)(e).format():(0,Or.t_)(e,1)})}function gp(e){let{name:t}=e;return(0,d.jsx)("div",{className:sp("table-header-content"),children:t})}const yp=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(gp,{name:"Operation"}),size:600,cell:e=>(0,d.jsx)(vp,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(gp,{name:"A-Cpu"}),size:90,minSize:100,cell:function(e){return(0,d.jsx)(ip,{value:e.getValue(),formatter:e=>(0,bt.zm)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(gp,{name:"A-Rows"}),size:90,minSize:100,cell:xp,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(gp,{name:"E-Cost"}),size:90,minSize:100,cell:xp,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(gp,{name:"E-Rows"}),size:90,minSize:100,cell:xp,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(gp,{name:"E-Size"}),size:90,minSize:100,cell:xp,meta:{align:"right",verticalAlign:"top"}}];function bp(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,ap.x)({columns:yp,data:a,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:s,state:{expanded:r}});return(0,d.jsx)("div",{className:sp(),children:(0,d.jsx)(np.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 sp("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 sp("table-cell",{align:n,"vertical-align":r})},className:sp("table"),stickyHeader:!0})})}var fp=a(29254),Ep=a(96334),Sp=a(3948);const Tp=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),Np=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)"]}'),jp=(0,it.wZ)("ydb-shorty-string",{ru:Np,en:Tp}),Cp=(0,c.cn)("kv-shorty-string");function wp(e){let{value:t="",limit:a=200,strict:r=!1,displayLength:s=!0,render:i=(e=>e),onToggle:o,expandLabel:l=jp("default_expand_label"),collapseLabel:c=jp("default_collapse_label")}=e;const[u,p]=n.useState(!1),m=(u?c:l)+(s&&!u?jp("chars_count",{count:t.length}):""),h=t.length>a+(r?0:m.length),v=u||!h?t:t.slice(0,a-4)+"\xa0...";return(0,d.jsxs)("div",{className:Cp(),children:[i(v),h?(0,d.jsx)(vo.r,{className:Cp("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),p((e=>!e)),null===o||void 0===o||o()},children:m}):null]})}const Pp=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function Ip(e){return function(e){return!!e&&void 0!==Pp[e]}(e)?Pp[e]:"S_INFO"}const Dp=(0,c.cn)("kv-result-issues"),Rp=(0,c.cn)("kv-issues"),_p=(0,c.cn)("kv-issue");function Ap(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:Dp(),children:[(0,d.jsxs)("div",{className:Dp("error-message"),children:[(()=>{let e;if("string"===typeof t)e=t;else{var a,r;const s=Ip(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)(qp,{severity:s})," ",(0,d.jsx)("span",{className:Dp("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)(Br.z,{view:"normal",onClick:()=>r(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,d.jsx)(Op,{issues:s})]})}function Op(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:Rp(null),children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,d.jsx)(Mp,{issue:e,expanded:e===a},t)))})}function Mp(e){let{issue:t,level:a=0}=e;const[r,s]=n.useState(!0),i=Ip(t.severity),o=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,Or.kE)(t.row))return"";const{row:a,column:n}=t;return(0,Or.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:_p({leaf:!c,"has-issues":c}),children:[(0,d.jsxs)("div",{className:_p("line"),children:[c&&(0,d.jsx)(Br.z,{view:"flat-secondary",onClick:()=>s(!r),className:_p("arrow-toggle"),children:(0,d.jsx)(op.F,{direction:u,size:16})}),(0,d.jsx)(qp,{severity:i}),(0,d.jsxs)("span",{className:_p("message"),children:[o&&(0,d.jsx)("span",{className:_p("place-text"),title:"Position",children:o}),(0,d.jsx)("div",{className:_p("message-text"),children:(0,d.jsx)(wp,{value:t.message,expandLabel:"Show full message"})})]}),t.issue_code?(0,d.jsxs)("span",{className:_p("code"),children:["Code: ",t.issue_code]}):null]}),c&&r&&(0,d.jsx)("div",{className:_p("issues"),children:(0,d.jsx)(kp,{issues:l,level:a+1,expanded:r})})]})}function kp(e){const{issues:t,level:a,expanded:n}=e;return(0,d.jsx)("div",{className:_p("list"),children:t.map(((e,t)=>(0,d.jsx)(Mp,{issue:e,level:a,expanded:n},t)))})}const Lp={S_INFO:fp.Z,S_WARNING:Ep.Z,S_ERROR:Ys.Z,S_FATAL:Sp.Z},zp=(0,c.cn)("yql-issue-severity");function qp(e){let{severity:t}=e;const a=t.slice(2).toLowerCase();return(0,d.jsxs)("span",{className:zp({severity:a}),children:[(0,d.jsx)(na.J,{className:zp("icon"),data:Lp[t]}),(0,d.jsx)("span",{className:zp("title"),children:a})]})}const Up=(0,c.cn)("ydb-query-duration"),Fp=e=>{let{duration:t}=e;if(!t)return null;const a=(0,bt.tt)((0,bt.BO)(t),1);return(0,d.jsx)("span",{className:Up(),children:(0,d.jsx)(Ra,{className:Up("item-with-popover"),contentClassName:Up("popover-content"),text:a,popoverClassName:Up("popover"),popoverContent:Nd("query-duration.description"),buttonProps:{className:Up("popover-button")}})})};var Qp=a(74679);const Gp=(0,c.cn)("ydb-query-settings-banner");function Bp(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=au();return e?(0,d.jsx)(Qp.b,{className:Gp(),theme:"info",align:"baseline",message:(0,d.jsx)(qu,{prefix:Nd("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function Vp(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Hp=a(15152),$p=a(10730);const Zp=le.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 Wp=a(83658);function Jp(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}const Kp=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"}'),Xp=(0,it.wZ)("ydb-execute-result",{en:Kp}),Yp=15*he.NO;function em(e){let{traceId:t}=e;const{traceCheck:a,traceView:r}=(0,$p.kW)(),s=null!==a&&void 0!==a&&a.url?Jp(a.url,{traceId:t}):"",i=null!==r&&void 0!==r&&r.url?Jp(r.url,{traceId:t}):"",[o,l]=(0,Wp.$)(Yp);n.useEffect((()=>{l()}),[t,l]);const{isFetching:c}=Zp.useCheckTraceQuery({url:s},{skip:!s||!o});if(!i)return null;const u=!o||c;return(0,d.jsxs)(Br.z,{view:u?"flat-secondary":"flat-info",loading:u,href:i,target:"_blank",children:[Xp("trace"),(0,d.jsx)(Br.z.Icon,{children:(0,d.jsx)(Hp.Z,{})})]})}const tm=(0,c.cn)("ydb-query-execute-result"),am={result:"result",stats:"stats",schema:"schema",simplified:"simplified"};function nm(e){var t,a;let{result:r,isResultsCollapsed:s,theme:i,tenantName:l,onCollapseResults:c,onExpandResults:u}=e;const[p,m]=n.useState(0),[h,v]=n.useState(am.result),x=(0,ve.zL)(),{error:g,isLoading:y,queryId:b,data:f}=r,E=null===f||void 0===f?void 0:f.stats,S=(null===f||void 0===f||null===(t=f.resultSets)||void 0===t?void 0:t.length)||0,T=null===f||void 0===f||null===(a=f.resultSets)||void 0===a?void 0:a[p],{plan:N,simplifiedPlan:j}=n.useMemo((()=>function(e){var t,a,n;if(!e)return{};const{plan:r}=e;if(r){const e=(0,Ct.y5)(r);if(e.meta.version!==zd.v2)return{};const{Plan:t,SimplifiedPlan:a}=e;return{plan:t?{...kd(t),tables:e.tables}:void 0,simplifiedPlan:{plan:a?Ld([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:kd(JSON.parse(i))}}catch(o){return{}}}(f)),[f]),C=[{value:am.result,content:Xp("action.result")},{value:am.stats,content:Xp("action.stats")}];N&&C.push({value:am.schema,content:Xp("action.schema")}),null!==j&&void 0!==j&&j.plan&&C.push({value:am.simplified,content:Xp("action.explain-plan")});const w=(0,Ct.dt)(g);n.useEffect((()=>()=>{x((0,gu.vj)())}),[x]);const P=()=>{switch(h){case am.result:{const e=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(Vp).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(Vp("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===T||void 0===T?void 0:T.result);return e}case am.stats:return E;case am.simplified:return null===j||void 0===j?void 0:j.pristine;default:return}};return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:tm("controls"),children:[(0,d.jsxs)("div",{className:tm("controls-right"),children:[(0,d.jsx)(Qu,{error:g,loading:y}),!g&&!y&&(0,d.jsxs)(n.Fragment,{children:[void 0!==(null===E||void 0===E?void 0:E.DurationUs)&&(0,d.jsx)(Fp,{duration:Number(E.DurationUs)}),C&&h&&(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(mu,{}),(0,d.jsx)($c.E,{options:C,value:h,onUpdate:e=>{v(e)}})]})]}),y?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(vu,{className:tm("elapsed-time")}),(0,d.jsx)(tp,{queryId:b,tenantName:l})]}):null,null!==f&&void 0!==f&&f.traceId?(0,d.jsx)(em,{traceId:f.traceId}):null]}),(0,d.jsxs)("div",{className:tm("controls-left"),children:[(()=>{const e=P(),t=(0,De.fm)(e);return t?(0,d.jsx)(dn.m,{text:t,view:"flat-secondary",title:Xp("action.copy",{activeSection:h})}):null})(),(0,d.jsx)(yu,{}),(0,d.jsx)(uu,{onCollapse:c,onExpand:u,isCollapsed:s,initialDirection:"bottom"})]})]}),y||ku(g)?null:(0,d.jsx)(Bp,{}),(0,d.jsx)(o.s,{loading:y,children:(0,d.jsx)(Cu,{children:g&&!ku(g)?w?"object"===typeof w?(0,d.jsx)(Ap,{data:w}):(0,d.jsx)("div",{className:tm("error"),children:w}):null:h===am.result?(0,d.jsxs)("div",{className:tm("result-wrapper"),children:[S>1&&(0,d.jsx)("div",{children:(0,d.jsx)(ye.m,{className:tm("result-tabs"),size:"l",items:(0,Ar.c$)(S).map((e=>{var t,a;return{id:String(e),title:`Result #${e+1}${null!==f&&void 0!==f&&null!==(t=f.resultSets)&&void 0!==t&&null!==(a=t[e])&&void 0!==a&&a.truncated?" (T)":""}`}})),activeTab:String(p),onSelectTab:e=>m(Number(e))})}),T&&(0,d.jsxs)("div",{className:tm("result"),children:[(0,d.jsxs)("div",{className:tm("result-head"),children:[(0,d.jsx)(vt.x,{variant:"subheader-3",children:null!==T&&void 0!==T&&T.truncated?Xp("title.truncated"):Xp("title.result")}),T.result&&(0,d.jsx)(vt.x,{color:"secondary",variant:"body-2",className:tm("row-count"),children:`(${T.result.length})`})]}),(0,d.jsx)(Ku,{data:T.result,columns:T.columns})]})]}):h===am.stats?(0,d.jsx)("div",{className:tm("inspector"),children:(0,d.jsx)(pn(),{data:E,isExpanded:()=>!0,searchOptions:{debounceTime:300}})}):h===am.schema?(null===N||void 0===N?void 0:N.links)&&(null===N||void 0===N?void 0:N.nodes)&&(null===N||void 0===N?void 0:N.nodes.length)?(0,d.jsx)("div",{className:tm("explain-canvas-container"),children:(0,d.jsx)(Ru,{data:N},i)}):Xp("description.graph-is-not-supported"):h===am.simplified?(()=>{const{plan:e}=null!==j&&void 0!==j?j:{};return e?(0,d.jsx)(bp,{plan:e}):null})():null})})]})}var rm=a(39862);const sm=(0,c.cn)("ydb-query-explain-ast"),im={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function om(e){let{ast:t,theme:a}=e;return(0,d.jsx)("div",{className:sm(),children:(0,d.jsx)(rm.default,{language:nu,value:t,options:im,theme:`vs-${a}`})})}const lm=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}}"}'),cm=(0,it.wZ)("ydb-explain-result",{en:lm}),dm=(0,c.cn)("ydb-query-explain-graph");function um(e){let{explain:t,theme:a}=e;const{links:n,nodes:r,version:s}=null!==t&&void 0!==t?t:{},i=s===zd.v2,o=n&&r&&r.length;return i&&o?(0,d.jsx)("div",{className:dm("canvas-container"),children:(0,d.jsx)(Ru,{data:{links:n,nodes:r}},a)}):(0,d.jsx)("div",{className:dm("text-message"),children:cm("description.graph-is-not-supported")})}const pm=(0,c.cn)("ydb-query-explain-text");function mm(e){let{explain:t}=e;return(0,d.jsx)(pn(),{data:t,isExpanded:()=>!0,className:pm("inspector"),searchOptions:{debounceTime:300}})}const hm=(0,c.cn)("ydb-query-explain-result"),vm={schema:"schema",json:"json",ast:"ast",simplified:"simplified"},xm={[vm.schema]:cm("action.schema"),[vm.json]:cm("action.json"),[vm.ast]:cm("action.ast"),[vm.simplified]:cm("action.explain-plan")},gm=[{value:vm.schema,content:xm[vm.schema]},{value:vm.simplified,content:xm[vm.simplified]},{value:vm.json,content:xm[vm.json]},{value:vm.ast,content:xm[vm.ast]}];function ym(e){let{theme:t,result:a,tenantName:r,onCollapseResults:s,onExpandResults:i,isResultsCollapsed:l}=e;const c=(0,ve.zL)(),[u,p]=n.useState(vm.schema),[m,h]=n.useTransition(),{error:v,isLoading:x,queryId:g}=a,{plan:y,ast:b,simplifiedPlan:f}=a.data||{};n.useEffect((()=>()=>{c((0,gu.vj)())}),[c]);const E=()=>(0,d.jsx)("div",{className:hm("text-message"),children:cm("description.empty-result",{activeOption:xm[u]})}),S=(()=>{switch(u){case vm.json:return null===y||void 0===y?void 0:y.pristine;case vm.ast:return b;case vm.simplified:return null===f||void 0===f?void 0:f.pristine;default:return}})(),T=(0,De.fm)(S);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:hm("controls"),children:[(0,d.jsxs)("div",{className:hm("controls-right"),children:[(0,d.jsx)(Qu,{error:v,loading:x}),!v&&!x&&(0,d.jsxs)(n.Fragment,{children:[void 0!==(null===y||void 0===y?void 0:y.DurationUs)&&(0,d.jsx)(Fp,{duration:y.DurationUs}),(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(mu,{}),(0,d.jsx)($c.E,{options:gm,value:u,onUpdate:e=>{h((()=>p(e)))}})]})]}),x?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(vu,{className:hm("elapsed-time")}),(0,d.jsx)(tp,{queryId:g,tenantName:r})]}):null]}),(0,d.jsxs)("div",{className:hm("controls-left"),children:[T&&(0,d.jsx)(dn.m,{text:T,view:"flat-secondary",title:cm("action.copy",{activeOption:u})}),(0,d.jsx)(yu,{disabled:Boolean(v)}),(0,d.jsx)(uu,{onCollapse:s,onExpand:i,isCollapsed:l,initialDirection:"bottom"})]})]}),x||ku(v)?null:(0,d.jsx)(Bp,{}),(0,d.jsx)(o.s,{loading:x||m,children:(0,d.jsx)(Cu,{className:hm("result"),children:(()=>{if(ku(v))return null;if(v)return(0,d.jsx)("div",{className:hm("text-message"),children:(0,Ct.fV)(v)});switch(u){case vm.json:return null!==y&&void 0!==y&&y.pristine?(0,d.jsx)(mm,{explain:y.pristine}):E();case vm.ast:return b?(0,d.jsx)(om,{ast:b,theme:t}):E();case vm.schema:var e;return null!==y&&void 0!==y&&null!==(e=y.nodes)&&void 0!==e&&e.length?(0,d.jsx)(um,{theme:t,explain:y}):E();case vm.simplified:{const{plan:e}=null!==f&&void 0!==f?f:{};return null!==e&&void 0!==e&&e.length?(0,d.jsx)(bp,{plan:e}):E()}default:return null}})()})})]})}const bm=le.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({query:a,database:n,action:r},{signal:s,withRetries:!0});return(0,Ct.gW)(e)?{error:e}:{data:(0,Ct.gY)(e)}}catch(i){return{error:i||new Error("Unauthorized")}}},providesTags:["All","PreviewData"]})}),overrideExisting:"throw"}),fm=(0,c.cn)("kv-preview"),Em=e=>{var t,a,n;let{database:r,path:s,type:i}=e;const o=(0,ve.zL)(),l=$(i),c=`select * from \`${s}\` limit 32`,{currentData:u,isFetching:p,error:m}=bm.useSendQueryQuery({database:r,query:c,action:se(i)?"execute-query":"execute-scan"},{skip:!l,refetchOnMountOrArgChange:!0}),h=p&&void 0===u,v=null!==(t=null===u||void 0===u||null===(a=u.resultSets)||void 0===a?void 0:a[0])&&void 0!==t?t:{},x=()=>{o((0,Qd.m7)(!1))};if(h)return(0,d.jsx)("div",{className:fm("loader-container"),children:(0,d.jsx)(Gr.a,{size:"m"})});let g;l?m&&(g=(0,d.jsx)("div",{className:fm("message-container","error"),children:(0,Ct.fV)(m)})):g=(0,d.jsx)("div",{className:fm("message-container"),children:Nd("preview.not-available")});const y=null!==(n=g)&&void 0!==n?n:(0,d.jsx)("div",{className:fm("result"),children:(0,d.jsx)(Ku,{data:v.result,columns:v.columns})});return(0,d.jsxs)("div",{className:fm(),children:[(0,d.jsxs)("div",{className:fm("header"),children:[(0,d.jsxs)("div",{className:fm("title"),children:[Nd("preview.title")," ",(0,d.jsx)("div",{className:fm("table-name"),children:s})]}),(0,d.jsxs)("div",{className:fm("controls-left"),children:[(0,d.jsx)(yu,{disabled:Boolean(m)}),(0,d.jsx)(Br.z,{view:"flat-secondary",onClick:x,title:Nd("preview.close"),children:(0,d.jsx)(na.J,{data:Pl.Z,size:18})})]})]}),(0,d.jsx)(Cu,{children:y})]})};var Sm=a(68045),Tm=a(81101),Nm=a(85996),jm=a(36413);const Cm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}/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)`,wm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}/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)`,Pm=()=>'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);',Im=e=>`ALTER TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`\n ADD COLUMN numeric_column Int32;`,Dm=e=>{var t;return`SELECT ${(null===e||void 0===e||null===(t=e.tableData)||void 0===t?void 0:t.map((e=>"`"+e.name+"`")).join(", "))||"*"}\n FROM \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`\n LIMIT 10;`},Rm=e=>{var t;const a=(null===e||void 0===e||null===(t=e.tableData)||void 0===t?void 0:t.map((e=>`\`${e.name}\``)).join(", "))||"`id`, `name`";return`UPSERT INTO \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`\n ( ${a} )\nVALUES ( );`},_m=e=>`DROP EXTERNAL TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`;`,Am=e=>`CREATE EXTERNAL TABLE \`${(null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/"))||"$path"}/my_external_table\` (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${(null===e||void 0===e?void 0:e.relativePath)||"$path"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`,Om=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_topic\nCREATE TOPIC \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}/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);`,Mm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`\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 );`,km=e=>`DROP TOPIC \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`;`,Lm=e=>`CREATE VIEW \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}/my_view\` WITH (security_invoker = TRUE) AS SELECT 1;`,zm=e=>`DROP VIEW \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`;`,qm=e=>`DROP ASYNC REPLICATION \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`;`,Um=e=>`ALTER ASYNC REPLICATION \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\` SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,Fm=e=>`ALTER TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\` ADD INDEX \`$indexName\` GLOBAL ON (\`$columnName\`);`,Qm=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop();return`ALTER TABLE \`${(null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/"))||"$path"}\` DROP INDEX \`${t||"$indexName"}\`;`},Gm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed\nALTER TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\` ADD 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.`,Bm=()=>"-- 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.",Vm=()=>"-- 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.",Hm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`\nWHERE Key1 == $key1 AND Key2 >= $key2;`,$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.",Zm=()=>"-- 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.",Wm=e=>`\nGRANT $permission_name [, ...] | ALL [PRIVILEGES]\nON \`${(null===e||void 0===e?void 0:e.relativePath)||"$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.`,Jm=e=>`\nREVOKE [GRANT OPTION FOR] $permission_name [, ...] | ALL [PRIVILEGES]\nON \`${(null===e||void 0===e?void 0:e.relativePath)||"$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.`,Km=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`\nSET Value1 = YQL::ToString($value2 + 1), Value2 = $value2 - 1\nWHERE Key1 > $key1;`,Xm=e=>`DROP TABLE \`${(null===e||void 0===e?void 0:e.relativePath)||"$path"}\`;`,Ym=e=>{const t=t=>()=>{e((0,Ni.B8)({input:t()}))};return{createRowTable:t(Cm),createColumnTable:t(wm),createAsyncReplication:t(Pm),alterAsyncReplication:t(Um),dropAsyncReplication:t(qm),alterTable:t(Im),selectQuery:t(Dm),upsertQuery:t(Rm),createExternalTable:t(Am),dropExternalTable:t(_m),selectQueryFromExternalTable:t(Dm),createTopic:t(Om),alterTopic:t(Mm),dropTopic:t(km),createView:t(Lm),dropTable:t(Xm),deleteRows:t(Hm),updateTable:t(Km),createUser:t(Vm),createGroup:t(Bm),createCdcStream:t(Gm),grantPrivilege:t(Wm),revokePrivilege:t(Jm),dropUser:t(Zm),dropGroup:t($m),addTableIndex:t(Fm),dropTableIndex:t(Qm)}},eh=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.add-index":"Add index","action.drop-index":"Drop index","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"}'),th=(0,it.wZ)("ydb-new-sql",{en:eh});function ah(){const e=(0,ve.zL)(),t=Ym(e),a=[{text:th("menu.tables"),items:[{text:th("action.create-row-table"),action:t.createRowTable},{text:th("action.create-column-table"),action:t.createColumnTable},{text:th("action.create-external-table"),action:t.createExternalTable},{text:th("action.upsert-to-table"),action:t.upsertQuery},{text:th("action.update-table"),action:t.updateTable},{text:th("action.alter-table"),action:t.alterTable},{text:th("action.select-rows"),action:t.selectQuery},{text:th("action.select-from-external-table"),action:t.selectQueryFromExternalTable},{text:th("action.delete-rows"),action:t.deleteRows},{text:th("action.drop-table"),action:t.dropTable},{text:th("action.drop-external-table"),action:t.dropExternalTable},{text:th("action.add-index"),action:t.addTableIndex},{text:th("action.drop-index"),action:t.dropTableIndex}]},{text:th("menu.topics"),items:[{text:th("action.create-topic"),action:t.createTopic},{text:th("action.alter-topic"),action:t.alterTopic},{text:th("action.drop-topic"),action:t.dropTopic}]},{text:th("menu.replication"),items:[{text:th("action.create-async-replication"),action:t.createAsyncReplication},{text:th("action.alter-async-replication"),action:t.alterAsyncReplication},{text:th("action.drop-async-replication"),action:t.dropAsyncReplication}]},{text:th("menu.capture"),items:[{text:th("action.create-cdc-stream"),action:t.createCdcStream}]},{text:th("menu.users"),items:[{text:th("action.create-user"),action:t.createUser},{text:th("action.create-group"),action:t.createGroup},{text:th("action.drop-user"),action:t.dropUser},{text:th("action.drop-group"),action:t.dropGroup},{text:th("action.grant-privilege"),action:t.grantPrivilege},{text:th("action.revoke-privilege"),action:t.revokePrivilege}]}];return(0,d.jsx)(jm.h,{items:a,renderSwitcher:e=>(0,d.jsxs)(Br.z,{...e,children:[th("button.new-sql"),(0,d.jsx)(Br.z.Icon,{children:(0,d.jsx)(Nm.Z,{})})]}),popupProps:{placement:"top"}})}var nh=a(68585),rh=a(86357);function sh(){const[e]=(0,ve.yu)(he.DG,[]),t=(0,ve.ix)(Fd.zC).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const ih=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"}'),oh=(0,it.wZ)("ydb-save-query-dialog",{en:ih}),lh=(0,c.cn)("ydb-save-query");function ch(e){let{isSaveButtonDisabled:t}=e;const a=(0,ve.zL)(),n=(0,ve.ix)(Fd.g0),r=()=>{a((0,Fd.lm)("save")),a((0,Fd.y3)())},s=()=>{a((0,Fd.PM)(n)),a((0,Fd.y3)())};return n?(()=>{const e=[{action:s,text:oh("action.edit-existing")},{action:r,text:oh("action.save-as-new")}];return(0,d.jsx)(jm.h,{items:e,renderSwitcher:e=>(0,d.jsx)(Br.z,{...e,disabled:t,children:oh("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(Br.z,{onClick:r,disabled:t,children:oh("action.save")})}function dh(){const e=sh(),t=(0,ve.zL)(),a=(0,ve.ix)(Fd.oK),[r,s]=n.useState(""),[i,o]=n.useState(),l=()=>{t((0,Fd.lm)("idle")),s(""),o(void 0)};return(0,d.jsxs)(nh.V,{open:"save"===a,hasCloseButton:!1,size:"s",onClose:l,children:[(0,d.jsx)(nh.V.Header,{caption:oh("action.save")}),(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault();const n=(s=r)?e.some((e=>e.name.toLowerCase()===s.trim().toLowerCase()))?oh("error.name-exists"):void 0:oh("error.name-not-empty");var s;o(n),n||(t((0,Fd.PM)(r)),l())},children:[(0,d.jsxs)(nh.V.Body,{className:lh("dialog-body"),children:[(0,d.jsx)("div",{className:lh("dialog-row"),children:oh("description")}),(0,d.jsxs)("div",{className:lh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:lh("field-title","required"),children:oh("input-label")}),(0,d.jsx)("div",{className:lh("control-wrapper"),children:(0,d.jsx)(rh.o,{id:"queryName",placeholder:oh("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)(nh.V.Footer,{textButtonApply:oh("button-apply"),textButtonCancel:oh("button-cancel"),onClickButtonCancel:l,propsButtonApply:{type:"submit"}})]})]})}const uh=(0,c.cn)("ydb-query-editor-controls"),ph=e=>{let{onClick:t,runIsLoading:a}=e;const{changedCurrentSettings:n,changedCurrentSettingsDescriptions:r}=au(),s=n.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(Ou.u,{disabled:0===n.length,content:(0,d.jsx)(qu,{prefix:Nd("gear.tooltip"),querySettings:r}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(Br.z,{onClick:t,loading:a,className:uh("gear-button"),...s,children:[(0,d.jsx)(na.J,{data:Sm.Z,size:16}),s?(0,d.jsxs)("div",{className:uh("changed-settings"),children:["(",n.length,")"]}):null]})})},mh=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:uh(),children:[(0,d.jsxs)("div",{className:uh("left"),children:[(0,d.jsxs)(Br.z,{onClick:()=>{r()},disabled:t,loading:a,view:o,className:uh("run-button"),children:[(0,d.jsx)(na.J,{data:Tm.Z,size:14}),"Run"]}),(0,d.jsx)(Br.z,{onClick:()=>{i()},disabled:t,loading:a,view:l,children:"Explain"}),(0,d.jsx)(ph,{onClick:s,runIsLoading:a})]}),(0,d.jsxs)("div",{className:uh("right"),children:[(0,d.jsx)(ah,{}),(0,d.jsx)(ch,{isSaveButtonDisabled:t})]})]})};var hh=a(94941),vh=a(55247);const xh=()=>-1,gh=(0,c.cn)("ydb-query-settings-select");function yh(e){return(0,d.jsx)("div",{className:gh("selector"),children:(0,d.jsx)(Ne.P,{id:e.id,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:xh,popupClassName:gh("popup"),renderOption:e=>(0,d.jsxs)("div",{className:gh("item"),children:[(0,d.jsxs)("div",{className:gh("item-title"),children:[e.content,e.isDefault?Hd("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:gh("item-description"),children:e.text})]}),width:"max"})})}const bh=(0,c.cn)("ydb-query-settings-dialog");function fh(){const e=(0,ve.zL)(),t=(0,ve.ix)(Fd.oK),[a,r]=(0,ve.dU)(),s=n.useCallback((()=>{e((0,Fd.lm)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(nh.V,{open:"settings"===t,size:"s",onClose:s,className:bh(),hasCloseButton:!1,children:[(0,d.jsx)(nh.V.Header,{caption:Hd("action.settings")}),(0,d.jsx)(Eh,{initialValues:a,onSubmit:i,onClose:s})]})}function Eh(e){let{initialValues:t,onSubmit:a,onClose:r}=e;const{control:s,handleSubmit:i,formState:{errors:o}}=(0,vh.cI)({defaultValues:t,resolver:(0,hh.F)(Ct.J7)}),l=(0,Se.uY)();return(0,d.jsxs)("form",{onSubmit:i(a),children:[(0,d.jsxs)(nh.V.Body,{className:bh("dialog-body"),children:[(0,d.jsxs)(sr.k,{direction:"row",alignItems:"flex-start",className:bh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:bh("field-title"),children:Kd.queryMode.title}),(0,d.jsx)("div",{className:bh("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(vh.Qr,{name:"queryMode",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(yh,{id:"queryMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Kd.queryMode.options})}})})]}),(0,d.jsxs)(sr.k,{direction:"row",alignItems:"flex-start",className:bh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:bh("field-title"),children:Kd.timeout.title}),(0,d.jsx)("div",{className:bh("control-wrapper"),children:(0,d.jsx)(vh.Qr,{name:"timeout",control:s,render:e=>{var t,a;let{field:r}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rh.o,{id:"timeout",type:"number",...r,value:null===(t=r.value)||void 0===t?void 0:t.toString(),className:bh("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:bh("timeout-suffix"),children:Hd("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(sr.k,{direction:"row",alignItems:"flex-start",className:bh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:bh("field-title"),children:Kd.tracingLevel.title}),(0,d.jsx)("div",{className:bh("control-wrapper"),children:(0,d.jsx)(vh.Qr,{name:"tracingLevel",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(yh,{id:"tracingLevel",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Kd.tracingLevel.options})}})})]}),(0,d.jsxs)(sr.k,{direction:"row",alignItems:"flex-start",className:bh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:bh("field-title"),children:Kd.transactionMode.title}),(0,d.jsx)("div",{className:bh("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(vh.Qr,{name:"transactionMode",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(yh,{id:"transactionMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Kd.transactionMode.options})}})})]}),(0,d.jsxs)(sr.k,{direction:"row",alignItems:"flex-start",className:bh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:bh("field-title"),children:Kd.statisticsMode.title}),(0,d.jsx)("div",{className:bh("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(vh.Qr,{name:"statisticsMode",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(yh,{id:"statisticsMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Kd.statisticsMode.options})}})})]}),(0,d.jsxs)(sr.k,{direction:"row",alignItems:"flex-start",className:bh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:bh("field-title"),children:Kd.limitRows.title}),(0,d.jsx)("div",{className:bh("control-wrapper"),children:(0,d.jsx)(vh.Qr,{name:"limitRows",control:s,render:e=>{var t,a;let{field:n}=e;return(0,d.jsx)(rh.o,{id:"limitRows",type:"number",...n,value:null===(t=n.value)||void 0===t?void 0:t.toString(),className:bh("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)(nh.V.Footer,{textButtonApply:Hd("button-done"),textButtonCancel:Hd("button-cancel"),onClickButtonCancel:r,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:bh("buttons-container"),children:[(0,d.jsx)(vo.r,{href:"https://ydb.tech/docs",target:"_blank",className:bh("documentation-link"),children:Hd("docs")}),(0,d.jsxs)("div",{className:bh("main-buttons"),children:[t,e]})]})})]})}const Sh={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1}};const Th="navigation",Nh=(0,c.cn)("query-editor"),jh={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};const Ch={saveQueryToHistory:Ni.hO,goToPreviousQuery:Ni.NU,goToNextQuery:Ni.AJ,setShowPreview:Qd.m7,setTenantPath:Ni.K0,setQueryAction:Fd.lm,setQueryResult:Ni.Ae},wh=(0,mn.$j)((e=>({executeQuery:e.executeQuery,showPreview:e.schema.showPreview})),Ch)((function(e){var t;const a=function(){const[e]=(0,ve.yu)(he.y6),[t]=(0,ve.yu)(he.XX);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...Sh}}),[e,t])}(),{tenantName:r,path:s,setTenantPath:i,executeQuery:o,type:l,theme:c,changeUserInput:u,setQueryResult:p,showPreview:m}=e,{tenantPath:v}=o,x=Boolean(o.result),[g]=(0,ve.dU)(),y=(0,Se.uY)(),[b,f]=eu(),{resetBanner:E}=au(),[S,T]=(0,ve.yu)(he.w7),[N]=Ni.mg.useExecuteQueryMutation(),[j]=Ud.useExplainQueryMutation();n.useEffect((()=>{v!==r&&(v&&(u({input:""}),p()),i(r))}),[u,i,p,r,v]);const[C,w]=n.useReducer(cu(he.eG),jh);n.useEffect((()=>{w(iu.triggerCollapse)}),[]),n.useEffect((()=>{e.showPreview||x?w(iu.triggerExpand):w(iu.triggerCollapse)}),[e.showPreview,x]);const P=(0,ve.xd)((()=>{var e;const{history:t}=o;return(null===(e=t.queries[t.queries.length-1])||void 0===e?void 0:e.queryText)||""})),I=(0,ve.xd)((t=>{const{input:a,history:n}=o,s=null!==t&&void 0!==t?t:a;T(Ct.Jf.execute),(0,Pd.isEqual)(b,g)||(E(),f(g));const i=(0,Id.Z)();if(N({query:s,database:r,querySettings:g,enableTracingLevel:y,queryId:i}),e.setShowPreview(!1),!t){var l;const{queries:t,currentIndex:r}=n;s!==(null===(l=t[r])||void 0===l?void 0:l.queryText)&&e.saveQueryToHistory(a,i)}w(iu.triggerExpand)})),D=()=>{e.setQueryAction("settings")},R=(0,ve.xd)((()=>{const{input:t}=o;T(Ct.Jf.explain),(0,Pd.isEqual)(b,g)||(E(),f(g));const a=(0,Id.Z)();j({query:t,database:r,querySettings:g,enableTracingLevel:y,queryId:a}),e.setShowPreview(!1),w(iu.triggerExpand)})),_=(0,ve.xd)((()=>{S===Ct.Jf.explain?R():I()}));return(0,d.jsxs)("div",{className:Nh(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:he.XN,triggerCollapse:C.triggerCollapse,triggerExpand:C.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{w(iu.clear)},children:[(0,d.jsxs)("div",{className:Nh("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Nh("monaco-wrapper"),children:(0,d.jsx)("div",{className:Nh("monaco"),children:(0,d.jsx)(Dd,{language:ru,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=_e()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(t),function(e,t){Ih(e.getValue(),t()),e.onDidChangeModelContent((()=>{Ih(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(t,P),t.focus(),t.addAction({id:"sendQuery",label:Nd("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Th,contextMenuOrder:1,run:()=>_()});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:Nd("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Th,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});I(e)}}}),t.addAction({id:"previous-query",label:Nd("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Th,contextMenuOrder:2,run:()=>{e.goToPreviousQuery()}}),t.addAction({id:"next-query",label:Nd("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Th,contextMenuOrder:3,run:()=>{e.goToNextQuery()}}),t.addAction({id:"save-query",label:Nd("action.save-query"),keybindings:[n.saveQuery],run:()=>{e.setQueryAction("save")}})},theme:`vs-${c}`})})}),(()=>{var e;return(0,d.jsx)(mh,{handleSendExecuteClick:I,onSettingsButtonClick:D,isLoading:Boolean(null===(e=o.result)||void 0===e?void 0:e.isLoading),handleGetExplainQueryClick:R,disabled:!o.input,highlightedAction:S})})()]}),(0,d.jsx)("div",{className:Nh("pane-wrapper"),children:(0,d.jsx)(Ph,{resultVisibilityState:C,onExpandResultHandler:()=>{w(iu.triggerExpand)},onCollapseResultHandler:()=>{w(iu.triggerCollapse)},type:l,theme:c,result:o.result,tenantName:r,path:s,showPreview:m},null===(t=o.result)||void 0===t?void 0:t.queryId)})]}),(0,d.jsx)(dh,{}),(0,d.jsx)(fh,{})]})}));function Ph(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)(Em,{database:o,path:l,type:r}):(null===i||void 0===i?void 0:i.type)===_d.X.EXECUTE?(0,d.jsx)(nm,{result:i,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n,theme:s,tenantName:o}):(null===i||void 0===i?void 0:i.type)===_d.X.EXPLAIN?(0,d.jsx)(ym,{result:i,theme:s,tenantName:o,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n}):null}function Ih(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Dh=[{id:ge._0.newQuery,title:Nd("tabs.newQuery")},{id:ge._0.history,title:Nd("tabs.history")},{id:ge._0.saved,title:Nd("tabs.saved")}],Rh=e=>{let{className:t,activeTab:a}=e;const n=(0,Vn.TH)(),r=(0,Ee.mB)(n);return(0,d.jsx)("div",{className:t,children:(0,d.jsx)(ye.m,{size:"l",allowNotSelected:!0,activeTab:a,items:Dh,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,ea.Sj)({...r,[ea.XV.queryTab]:a});return(0,d.jsx)(fi.h,{to:n,children:t},a)}})})};var _h=a(7603),Ah=a(44899);const Oh=(0,c.cn)("ydb-saved-queries"),Mh=e=>{let{visible:t,queryName:a,onCancelClick:n,onConfirmClick:r}=e;return(0,d.jsxs)(nh.V,{open:t,hasCloseButton:!1,size:"s",onClose:n,onEnterKeyDown:r,children:[(0,d.jsx)(nh.V.Header,{caption:Nd("delete-dialog.header")}),(0,d.jsxs)(nh.V.Body,{className:Oh("dialog-body"),children:[Nd("delete-dialog.question"),(0,d.jsx)("span",{className:Oh("dialog-query-name"),children:` ${a}?`})]}),(0,d.jsx)(nh.V.Footer,{textButtonApply:Nd("delete-dialog.delete"),textButtonCancel:Nd("delete-dialog.cancel"),onClickButtonCancel:n,onClickButtonApply:r})]})},kh=e=>{let{changeUserInput:t}=e;const a=sh(),r=(0,ve.zL)(),s=(0,ve.ix)(Fd.zC),[i,o]=n.useState(!1),[l,c]=n.useState(""),u=()=>{o(!1),c("")},p=[{name:"name",header:"Name",render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:Oh("query-name"),children:t.name})},width:200},{name:"body",header:"Query Text",render:e=>{let{row:t}=e;return(0,d.jsxs)("div",{className:Oh("query"),children:[(0,d.jsx)("div",{className:Oh("query-body"),children:(0,d.jsx)(wi,{value:t.body,maxQueryHeight:Hi})}),(0,d.jsxs)("span",{className:Oh("controls"),children:[(0,d.jsx)(Br.z,{view:"flat-secondary",children:(0,d.jsx)(na.J,{data:_h.Z})}),(0,d.jsx)(Br.z,{view:"flat-secondary",onClick:(a=t.name,e=>{e.stopPropagation(),o(!0),c(a)}),children:(0,d.jsx)(na.J,{data:Ah.Z})})]})]});var a},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(at.l,{className:Oh(),children:[(0,d.jsx)(at.l.Controls,{children:(0,d.jsx)(st.o,{onChange:e=>{r((0,Fd.b0)(e))},placeholder:Nd("filter.text.placeholder"),className:Oh("search")})}),(0,d.jsx)(at.l.Table,{children:(0,d.jsx)(tt.G,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:p,data:a,settings:$i,emptyDataMessage:Nd(s?"history.empty-search":"saved.empty"),rowClassName:()=>Oh("row"),onRowClick:e=>{return a=e.body,n=e.name,t({input:a}),r((0,Fd.GC)(n)),void r((0,Te.jk)(ge._0.newQuery));var a,n},initialSortOrder:{columnId:"name",order:Mt.ZP.ASCENDING}})})]}),(0,d.jsx)(Mh,{visible:i,queryName:l,onCancelClick:()=>{u()},onConfirmClick:()=>{u(),r((0,Fd.qF)(l)),c("")}})]})},Lh=(0,c.cn)("ydb-query"),zh=e=>{const t=(0,ve.zL)(),{queryTab:a=ge._0.newQuery}=(0,ve.ix)((e=>e.tenant)),s=e=>{t((0,Ni.B8)(e))},i=n.useMemo((()=>Dh.find((e=>{let{id:t}=e;return t===a}))),[a]);return(0,d.jsxs)("div",{className:Lh(),children:[i?(0,d.jsx)(r.ql,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(Rh,{className:Lh("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Lh("content"),children:(()=>{switch(a){case ge._0.newQuery:return(0,d.jsx)(wh,{changeUserInput:s,...e});case ge._0.history:return(0,d.jsx)(wd,{changeUserInput:s});case ge._0.saved:return(0,d.jsx)(kh,{changeUserInput:s});default:return null}})()})]})};var qh=a(34996),Uh=a(71267);const Fh=["query","diagnostics"],Qh={query:qh.Z,diagnostics:Uh.Z};const Gh=(0,c.cn)("ydb-tenant-navigation"),Bh=e=>{let{id:t,title:a,icon:n}=e;return{value:t,content:(0,d.jsxs)("span",{className:Gh("item"),children:[(0,d.jsx)(na.J,{data:n,size:16,className:Gh("icon")}),(0,d.jsx)("span",{className:Gh("text"),children:a})]})}},Vh=()=>{const e=function(){const e=(0,Vn.k6)(),t=(0,Vn.TH)(),a=(0,Ee.mB)(t),[,r]=(0,ve.yu)(he.pf),{tenantPage:s}=(0,ve.ix)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==Ee.ZP.tenant)return[];const n=Fh.map((t=>{const n=ge.m2[t],i=(0,ea.Sj)({...a,[ge.bS]:n});return{id:n,title:wr(`pages.${t}`),icon:Qh[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:Gh(),children:(0,d.jsx)($c.E,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Gh("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Bh)})})},Hh=(0,c.cn)("object-general");const $h=function(e){const t=(0,xe.C)(),{tenantPage:a}=(0,ve.ix)((e=>e.tenant));return(0,d.jsxs)("div",{className:Hh(),children:[(0,d.jsx)(Vh,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===ge.m2.query?(0,d.jsx)(zh,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(Sd,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var Zh=a(13872);const Wh=le.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"}),Jh=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"}'),Kh=(0,it.wZ)("ydb-acl",{en:Jh}),Xh=(0,c.cn)("ydb-acl"),Yh=e=>{if(e&&e.endsWith("@staff")&&!e.startsWith("svc_")){return e.split("@")[0]}return e},ev=["access","type","inheritance"],tv={access:"Access",type:"Access type",inheritance:"Inheritance type"},av="Allow",nv=new Set(["Object","Container"]);function rv(e){let{value:t}=e;const a="string"===typeof t?[t]:t;return(0,d.jsx)("div",{className:Xh("definition-content"),children:a.map((e=>(0,d.jsx)("span",{children:e},e)))})}function sv(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===av?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==nv.size||r.some((e=>!nv.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)(rv,{value:n[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:Xh("group-label"),children:t}),items:ev.map((e=>{const t=a[e];if(t)return{name:tv[e],content:(0,d.jsx)(rv,{value:t}),multilineName:!0}})).filter(Ar.D)}}))}const iv=e=>{let{path:t,database:a}=e;const{currentData:r,isFetching:s,error:i}=Wh.useGetSchemaAclQuery({path:t,database:a}),o=s&&!r,{acl:l,effectiveAcl:c,owner:u,interruptInheritance:p}=r||{},m=sv(l),h=sv(c),v=function(e){const t=Yh(e);return t?[{name:t,content:Kh("title_owner"),multilineName:!0}]:[]}(u),x=p?[{name:Kh("title_interupt-inheritance"),content:(0,d.jsx)(na.J,{data:Zh.Z,size:20}),multilineName:!0}]:[];if(o)return(0,d.jsx)(we.a,{});if(i)return(0,d.jsx)(Ce.V,{error:i});if(!l&&!u&&!c)return(0,d.jsx)(n.Fragment,{children:Kh("description_empty")});const g=v.concat(m);return(0,d.jsxs)("div",{className:Xh(),children:[(0,d.jsx)(ov,{items:x}),(0,d.jsx)(ov,{items:g,title:Kh("title_rights")}),(0,d.jsx)(ov,{items:h,title:Kh("title_effective-rights")})]})};function ov(e){let{items:t,title:a}=e;return t.length?(0,d.jsxs)(n.Fragment,{children:[a&&(0,d.jsx)("div",{className:Xh("list-title"),children:a}),(0,d.jsx)(Xn.w,{items:t,nameMaxWidth:200,className:Xh("result",{"no-title":!a}),responsive:!0})]}):null}var lv=a(49459);const cv=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(le.h.util.invalidateTags(["PreviewData"])),t((0,Qd.m7)(!0)),t((0,Te.Cs)(ge.m2.query)),t((0,Te.jk)(ge._0.newQuery)),n(e)}}},dv=(e,t)=>(0,d.jsx)(Br.z,{view:"flat-secondary",onClick:e.openPreview,title:wr("actions.openPreview"),size:t||"s",children:(0,d.jsx)(na.J,{data:lv.Z})}),uv=(e,t,a)=>(n,r)=>{const s=cv(n,e,t),i=dv(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]},pv=(e,t,a)=>(n,r)=>{const s=cv(n,e,t);return{preview:dv(s,a)}[r]};var mv=a(91517);const hv=le.h.injectEndpoints({endpoints:e=>({getTableSchemaData:e.mutation({queryFn:async(e,t)=>{let{path:a,tenantName:n,type:r}=e,{dispatch:s}=t;try{if(oe(r)){const e=await s(Pt.endpoints.getViewSchema.initiate({database:n,path:a}));if((0,Ct.gW)(e))return{error:e};return{data:Xt(e.data)}}const e=await s(ce.endpoints.getOverview.initiate({path:a,database:n}));return{data:Kt(r,e.data)}}catch(i){return{error:i}}}})})});var vv=a(1868),xv=a.n(vv),gv=a(72484);const yv=function(e){let{name:t,title:a,type:n,content:r}=e;return gv.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 bv(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 fv(e,t){return t===f.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Ev=(e,t,a)=>{const{setActivePath:n,updateQueryExecutionSettings:r,showCreateDirectoryDialog:s,getTableSchemaDataPromise:i}=a,o=(a,s)=>()=>{s&&r({queryMode:s});const o=U[e.type];([Dm,Rm].includes(a)&&o&&i?i({path:e.path,tenantName:e.tenantName,type:o}):Promise.resolve(void 0)).then((n=>{t((0,Ni.B8)({input:a({...e,tableData:n})}))})),t((0,Te.Cs)(ge.m2.query)),t((0,Te.jk)(ge._0.newQuery)),n(e.path)};return{createDirectory:s?()=>{s(e.path)}:void 0,createTable:o(Cm,"script"),createColumnTable:o(wm,"script"),createAsyncReplication:o(Pm,"script"),alterAsyncReplication:o(Um,"script"),dropAsyncReplication:o(qm,"script"),alterTable:o(Im,"script"),selectQuery:o(Dm),upsertQuery:o(Rm),createExternalTable:o(Am,"script"),dropExternalTable:o(_m,"script"),selectQueryFromExternalTable:o(Dm,"query"),createTopic:o(Om,"script"),alterTopic:o(Mm,"script"),dropTopic:o(km,"script"),createView:o(Lm,"script"),dropView:o(zm,"script"),dropIndex:o(Qm,"script"),addTableIndex:o(Fm,"script"),copyPath:()=>{try{xv()(e.relativePath),yv({name:"Copied",title:wr("actions.copied"),type:"success"})}catch{yv({name:"Not copied",title:wr("actions.notCopied"),type:"error"})}}}},Sv=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(n,r)=>{const s=bv(n,a),i=Ev({path:n,relativePath:s,tenantName:a,type:r},e,t),o={text:wr("actions.copyPath"),action:i.copyPath},l=[[o],[{text:wr("actions.createTable"),action:i.createTable},{text:wr("actions.createColumnTable"),action:i.createColumnTable},{text:wr("actions.createAsyncReplication"),action:i.createAsyncReplication},{text:wr("actions.createTopic"),action:i.createTopic},{text:wr("actions.createView"),action:i.createView}]];i.createDirectory&&l.splice(1,0,[{text:wr("actions.createDirectory"),action:i.createDirectory}]);const c=[[o],[{text:wr("actions.alterTable"),action:i.alterTable},{text:wr("actions.selectQuery"),action:i.selectQuery},{text:wr("actions.upsertQuery"),action:i.upsertQuery},{text:wr("actions.addTableIndex"),action:i.addTableIndex}]],d=[[o],[{text:wr("actions.alterTopic"),action:i.alterTopic},{text:wr("actions.dropTopic"),action:i.dropTopic}]],u=[[o],[{text:wr("actions.selectQuery"),action:i.selectQueryFromExternalTable}],[{text:wr("actions.dropTable"),action:i.dropExternalTable}]],p=[[o],[{text:wr("actions.createExternalTable"),action:i.createExternalTable}]],m=[[o],[{text:wr("actions.selectQuery"),action:i.selectQuery}],[{text:wr("actions.dropView"),action:i.dropView}]],h=[o];return{async_replication:[[o],[{text:wr("actions.alterReplication"),action:i.alterAsyncReplication},{text:wr("actions.dropReplication"),action:i.dropAsyncReplication}]],database:l,directory:l,table:c,column_table:c,index_table:h,topic:d,stream:h,index:[[o,{text:wr("actions.dropIndex"),action:i.dropIndex}]],external_table:u,external_data_source:p,view:m}[r]}},Tv=(0,c.cn)("ydb-schema-create-directory-dialog"),Nv="relativePath";function jv(e){let{open:t,onClose:a,database:r,parentPath:s,onSuccess:i}=e;const[o,l]=n.useState(""),[c,u]=n.useState(""),[p,m]=Qd.m3.useCreateDirectoryMutation(),h=()=>{l(""),m.reset()},v=()=>{a(),u(""),h()};return(0,d.jsxs)(nh.V,{open:t,onClose:v,size:"s",children:[(0,d.jsx)(nh.V.Header,{caption:wr("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(a=c)?/\s/.test(a)?wr("schema.tree.dialog.whitespace"):"":wr("schema.tree.dialog.empty");var a;l(t),t||p({database:r,path:`${s}/${c}`}).unwrap().then((()=>{v(),i(c)}))},children:[(0,d.jsxs)(nh.V.Body,{children:[(0,d.jsxs)("label",{htmlFor:Nv,className:Tv("label"),children:[(0,d.jsx)("span",{className:Tv("description"),children:wr("schema.tree.dialog.description")}),`${s}/`]}),(0,d.jsx)("div",{className:Tv("input-wrapper"),children:(0,d.jsx)(rh.o,{placeholder:wr("schema.tree.dialog.placeholder"),value:c,onUpdate:e=>{u(e),h()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:m.isLoading,validationState:o?"invalid":void 0,id:Nv,errorMessage:o})}),m.isError&&(0,d.jsx)(Ce.V,{error:m.error,defaultMessage:wr("schema.tree.dialog.invalid")})]}),(0,d.jsx)(nh.V.Footer,{loading:m.isLoading,textButtonApply:wr("schema.tree.dialog.buttonApply"),textButtonCancel:wr("schema.tree.dialog.buttonCancel"),onClickButtonCancel:v,propsButtonApply:{type:"submit"}})]})]})}const Cv=2*he.NO;function wv(e){const t=(0,Se.j0)(),{rootPath:a,rootName:r,rootType:s,currentPath:i,onActivePathUpdate:o}=e,l=(0,ve.zL)(),[c]=hv.useGetTableSchemaDataMutation(),u=n.useCallback((async e=>{try{return await Promise.race([c(e).unwrap(),(0,Ar.Dc)(Cv)])}catch(t){return}}),[c]),[p,m]=(0,ve.dU)(),[h,v]=n.useState(!1),[x,g]=n.useState(""),[y,b]=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)(jv,{onClose:()=>{v(!1)},open:h,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),b(t)}}),(0,d.jsx)(mv.f,{rootState:{path:a,name:r,type:F(s),collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(Qd.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:F(a,n),expandable:!re(a,n)}}))},getActions:Sv(l,{setActivePath:o,updateQueryExecutionSettings:e=>m({...p,...e}),showCreateDirectoryDialog:t?e=>{g(e),v(!0)}:void 0,getTableSchemaDataPromise:u},a),renderAdditionalNodeElements:uv(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},y)]})}const Pv=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"}'),Iv=(0,it.wZ)("ydb-object-summary",{en:Pv}),Dv=(0,c.cn)("ydb-object-summary");function Rv(e){var t;let{tenantName:a,path:n}=e;const{data:r={},isLoading:i}=(0,Qd.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)(we.a,{})}):(0,d.jsxs)("div",{className:Dv("tree-wrapper"),children:[(0,d.jsx)("div",{className:Dv("tree-header"),children:Iv("title_navigation")}),(0,d.jsx)("div",{className:Dv("tree"),children:o?(0,d.jsx)(wv,{rootPath:a,rootName:o.Name||a,rootType:o.PathType,currentPath:n,onActivePathUpdate:l}):null})]})}var _v=a(47471);function Av(){const e=(0,ve.zL)(),{diagnosticsTab:t,tenantPage:a}=(0,ve.ix)((e=>e.tenant)),n=a===ge.m2.diagnostics&&t===ge.qQ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(Br.z,{title:Iv("action_openInDiagnostics"),onClick:()=>{e((0,Te.Cs)(ge.m2.diagnostics)),e((0,Te.$v)(ge.qQ.schema))},size:"s",children:(0,d.jsx)(na.J,{data:_v.Z,size:14})})})}const Ov=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(he.Mn))});function Mv(e){var t;let{type:a,subType:r,tenantName:i,path:o,onCollapseSummary:l,onExpandSummary:c,isCollapsed:u}=e;const[p]=(0,ve.Rj)(),m=(0,ve.zL)(),[,v]=(0,s.useQueryParam)("schema",s.StringParam),[x,g]=n.useReducer(cu(he.Mn),void 0,Ov),{summaryTab:y=ge.uw.overview}=(0,ve.ix)((e=>e.tenant)),b=(0,Vn.TH)(),S=Pa().parse(b.search,{ignoreQueryPrefix:!0}),{currentData:T}=ce.useGetOverviewQuery({path:o,database:i},{pollingInterval:p}),N=null===T||void 0===T||null===(t=T.PathDescription)||void 0===t?void 0:t.Self;n.useEffect((()=>{const e=$(a);!a||e||ea.Cc.find((e=>e.id===y))||m((0,Te.Tu)(ge.uw.overview))}),[m,a,y]);const j=()=>{const e=$(a)?[...ea.Cc,...ea.c7]:ea.Cc;return(0,d.jsx)("div",{className:Dv("tabs"),children:(0,d.jsxs)(sr.k,{className:Dv("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ye.m,{size:"l",items:e,activeTab:y,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,Ee.ax)(Ee.ZP.tenant,void 0,{...S,name:i,[ea.XV.summaryTab]:a});return(0,d.jsx)(be.rU,{to:n,className:Dv("tab"),children:t},a)},allowNotSelected:!0}),y===ge.uw.schema&&(0,d.jsx)(Av,{})]})})},C=()=>{switch(y){case ge.uw.acl:return(0,d.jsx)(iv,{path:o,database:i});case ge.uw.schema:return(0,d.jsx)(Yt,{type:a,path:o,tenantName:i});default:return(()=>{var e;if(!N)return;const{CreateStep:t,PathType:a,PathSubType:r,PathId:s,PathVersion:i}=N,l=[],c=fv(o,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:Iv("field_type"),content:c}),r!==E.EPathSubTypeEmpty&&l.push({name:Iv("field_subtype"),content:null===r||void 0===r?void 0:r.replace(/^EPathSubType/,"")}),l.push({name:Iv("field_id"),content:s}),l.push({name:Iv("field_version"),content:i}),l.push({name:Iv("field_created"),content:(0,De.o0)(t)});const{PathDescription:u}=T;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:Iv("field_data-size"),content:Nn(e)},{name:Iv("field_row-count"),content:(0,De.uf)(t)})}const p=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let s=(0,De.uf)(t),i=(0,De.uf)(a);return s&&n&&(s=`${s} / ${(0,De.uf)(n)}`),i&&r&&(i=`${i} / ${(0,De.uf)(r)}`),[{name:Iv("field_paths"),content:s},{name:Iv("field_shards"),content:i}]},m={[f.EPathTypeInvalid]:void 0,[f.EPathTypeDir]:void 0,[f.EPathTypeTable]:()=>{var e;return[{name:Iv("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[f.EPathTypeSubDomain]:p,[f.EPathTypeTableIndex]:void 0,[f.EPathTypeExtSubDomain]:p,[f.EPathTypeColumnStore]:()=>{var e,t;return[{name:Iv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[f.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:Iv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[f.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:Iv("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:Iv("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[f.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.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[{name:Iv("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:Iv("field_retention"),content:r&&(0,De.xh)(r)}]},[f.EPathTypeExternalTable]:()=>{var e,t;const a=(0,Ee.vF)({...S,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},s=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:Iv("field_source-type"),content:n},{name:Iv("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(Hn.j,{title:s||"",url:a})})}]},[f.EPathTypeExternalDataSource]:()=>{var e;return[{name:Iv("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[f.EPathTypeView]:void 0,[f.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:Iv("field_state"),content:(0,d.jsx)(ir,{state:t})}]:[]}},h=a&&(null===(e=m[a])||void 0===e?void 0:e.call(m))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:Dv("overview-item-content"),children:e.content}),multilineName:!0})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Dv("overview-title"),children:(0,d.jsx)(Pr,{data:u})}),(0,d.jsx)(Xn.w,{items:v,responsive:!0,nameMaxWidth:150})]})})()}},w=()=>{g(iu.triggerCollapse)},P=()=>{g(iu.triggerExpand)},I=()=>{g(iu.clear)},D=bv(o,i),R=()=>{const e=$(a)&&!W(r);return(0,d.jsxs)(n.Fragment,{children:[e&&pv(m,{setActivePath:v},"m")(o,"preview"),(0,d.jsx)(dn.m,{text:D,view:"flat-secondary",title:Iv("action_copySchemaPath")}),(0,d.jsx)(uu,{onCollapse:w,onExpand:P,isCollapsed:x.collapsed,initialDirection:"bottom"})]})},_=()=>{const{Status:e,Reason:t}=null!==T&&void 0!==T?T:{};if(a){let e=a.replace("EPathType","");return fv(o,a)&&(e="domain"),(0,d.jsx)("div",{className:Dv("entity-type"),children:e})}let n;return e&&t&&(n=`${e}: ${t}`),(0,d.jsx)("div",{className:Dv("entity-type",{error:!0}),children:(0,d.jsx)(Da.J,{content:n,offset:{left:0}})})};return(0,d.jsxs)("div",{className:Dv(),children:[(0,d.jsx)("div",{className:Dv({hidden:u}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:he.wr,onSplitStartDragAdditional:I,triggerCollapse:x.triggerCollapse,triggerExpand:x.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Rv,{tenantName:i,path:o}),(0,d.jsxs)("div",{className:Dv("info"),children:[(0,d.jsxs)("div",{className:Dv("sticky-top"),children:[(0,d.jsxs)("div",{className:Dv("info-header"),children:[(0,d.jsxs)("div",{className:Dv("info-title"),children:[_(),(0,d.jsx)("div",{className:Dv("path-name"),children:D})]}),(0,d.jsx)("div",{className:Dv("info-controls"),children:R()})]}),j()]}),(0,d.jsx)("div",{className:Dv("overview-wrapper"),children:C()})]})]})}),(0,d.jsx)(uu,{onCollapse:l,onExpand:c,isCollapsed:u,initialDirection:"left",className:Dv("action-button")})]})}const kv=(0,c.cn)("tenant-page"),Lv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(he.sO))});function zv(e){var t;const[l]=(0,ve.Rj)(),[c,u]=n.useReducer(cu(he.sO),void 0,Lv),[{name:p,schema:m}]=(0,s.useQueryParams)({name:s.StringParam,schema:s.StringParam});if(!p)throw new Error("Tenant name is not defined");const v=n.useRef();n.useEffect((()=>{if(v.current!==p){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(633).then(a.bind(a,30633));e(p)})().catch(console.error),v.current=p}}),[p]);const x=(0,ve.zL)();n.useEffect((()=>{x((0,g.J)("tenant",{tenantName:p}))}),[p,x]);const y=null!==m&&void 0!==m?m:p,{currentData:b,error:f,isLoading:E}=ce.useGetOverviewQuery({path:y,database:p},{pollingInterval:l}),{PathType:S,PathSubType:T}=(null===b||void 0===b||null===(t=b.PathDescription)||void 0===t?void 0:t.Self)||{},N=(0,i.u)(f),[j,C]=n.useState(!0);j&&!E&&C(!1);const w=y||wr("page.title");return(0,d.jsxs)("div",{className:kv(),children:[(0,d.jsx)(r.ql,{defaultTitle:`${w} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${w} \u2014 YDB Monitoring`}),(0,d.jsx)(o.s,{loading:j,children:(0,d.jsx)(i.S,{error:N?f:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:he.z4,defaultSizes:[25,75],triggerCollapse:c.triggerCollapse,triggerExpand:c.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{u(iu.clear)},children:[(0,d.jsx)(Mv,{type:S,subType:T,tenantName:p,path:y,onCollapseSummary:()=>{u(iu.triggerCollapse)},onExpandSummary:()=>{u(iu.triggerExpand)},isCollapsed:c.collapsed}),(0,d.jsx)("div",{className:kv("main"),children:(0,d.jsx)($h,{type:S,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:p,path:y})})]})})})]})}},24960:()=>{},26759:()=>{},56272:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.29d0e3af.js b/ydb/core/viewer/monitoring/static/js/main.29d0e3af.js new file mode 100644 index 0000000000..f7d9b9f3a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/main.29d0e3af.js @@ -0,0 +1,2 @@ +/*! For license information please see main.29d0e3af.js.LICENSE.txt */ +(()=>{var e={75147:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,t:()=>a});var r=n(34706),o=n(10161);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)}},90205:(e,t,n)=>{"use strict";n.d(t,{u:()=>x,$:()=>E});var r,o,i,a,s,l,c,u,d,f,p,h=n(14561),m=n(99294),g=n(34706);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(10161);const w=(0,m.cn)("empty-state"),_={s:150,m:250,l:350},x=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:_[i],height:_[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 E(e){let{isEmpty:t,children:n,className:r,...o}=e;return t?(0,b.jsx)("div",{className:r,children:(0,b.jsx)(x,{...o})}):n}},38914:(e,t,n)=>{"use strict";n.d(t,{SV:()=>M,l2:()=>z,TI:()=>L});var r=n(34706),o=n(97604),i=n(11746);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(77498),d=n(98960);const f=(0,n(87578).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(81778),g=n(35035);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 _=(0,o.s)(b),x=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(_(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))}));x.Summary=b,x.displayName="Disclosure";var E=n(72616);const S=(0,r.createContext)(null),k={didCatch:!1,error:null};class C extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=k}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(k)}}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(k))}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(99294);var N=n(75147),T=n(91538),I=n(37711);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"}'),D=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"}'),R=(0,I.wZ)("ydb-error-boundary",{ru:D,en:P});var A=n(10161);const j=(0,O.cn)("ydb-error-boundary");function M(e){let{children:t}=e;const n=(0,N.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)(C,{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)(T.Q,{name:"error",className:j("illustration")}),(0,A.jsxs)("div",{className:j("content"),children:[(0,A.jsx)("h2",{className:j("error-title"),children:R("error-title")}),(0,A.jsx)("div",{className:j("error-description"),children:R("error-description")}),(0,A.jsx)(x,{summary:R("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)(E.z,{view:"outlined",onClick:n,children:R("button-reset")}),o&&(0,A.jsx)(E.z,{view:"outlined",onClick:()=>o(t),children:R("report-problem")})]})]})]})}},71037:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(90205),o=n(91538),i=n(56164),a=n(10161);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})}},93225:(e,t,n)=>{"use strict";n.d(t,{S:()=>u,u:()=>d});var r=n(34706),o=n(90205),i=n(91538),a=n(71037),s=n(15327),l=n(56164),c=n(10161);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))}},87149:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(56164),o=n(10161);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})}},15327:(e,t,n)=>{"use strict";n.d(t,{V:()=>r.V});var r=n(87149)},56164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(37711);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})},91538:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(34706),o=n(53785),i=n(99294),a=n(10161);const s={light:{403:()=>n.e(4226).then(n.bind(n,44226)),thumbsUp:()=>n.e(6595).then(n.bind(n,16595)),error:()=>n.e(2503).then(n.bind(n,12503))},dark:{403:()=>n.e(3768).then(n.bind(n,93768)),thumbsUp:()=>n.e(3283).then(n.bind(n,3283)),error:()=>n.e(1855).then(n.bind(n,71855))}},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}},43862:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(34706),o=n(99294),i=n(73211),a=n(10161);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})})}},73211:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(37711);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.wZ)("ydb-components-info-viewer",{en:o})},41591:(e,t,n)=>{"use strict";n.d(t,{Z6:()=>o.Z,_P:()=>r._,aE:()=>o.a});var r=n(43862),o=n(9379)},9379:(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)})):[]},32489:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(26836),o=n(99294),i=n(10161);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})}},67653:(e,t,n)=>{"use strict";n.d(t,{h:()=>r.h});var r=n(32489)},90808:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var r=n(34706),o=n(15152),i=n(17823),a=n(99294),s=n(67653),l=n(10161);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})}},41989:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(81550),o=n(99294),i=n(83658),a=n(10161);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}},48653:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});n(34706);var r=n(41989),o=n(10161);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}},13467:(e,t,n)=>{"use strict";n.d(t,{bP:()=>p,A8:()=>b,Fb:()=>v,gK:()=>y});var r=n(83797),o=n(65e3),i=n(99294),a=n(55842),s=n(90808),l=n(37711);const c=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),u=(0,l.wZ)("ydb-node-name-tooltip",{en:c});var d=n(10161);const f=(0,i.cn)("ydb-node-endpoints-tooltip-content"),p=e=>{var t,n;let{data:i,nodeHref:l}=e;const c=(0,a.ix)(o.VH),p=[];return null!==i&&void 0!==i&&null!==(t=i.Roles)&&void 0!==t&&t.length&&p.push({name:u("field_roles"),children:i.Roles.join(", "),key:"Roles"}),null!==i&&void 0!==i&&null!==(n=i.Tenants)&&void 0!==n&&n[0]&&p.push({name:u("field_database"),children:i.Tenants[0],key:"Database"}),null!==i&&void 0!==i&&i.Host&&p.push({name:u("field_host"),children:i.Host,copyText:i.Host,key:"Host"}),null!==i&&void 0!==i&&i.Rack&&p.push({name:u("field_rack"),children:i.Rack,key:"Rack"}),null!==i&&void 0!==i&&i.Endpoints&&i.Endpoints.length&&i.Endpoints.forEach((e=>{let{Name:t,Address:n}=e;t&&n&&p.push({name:t,children:n,key:t})})),c&&l&&p.push({name:"Links",children:(0,d.jsx)(s.j,{title:u("context_developer-ui"),url:l}),key:"developerUi"}),(0,d.jsx)("div",{className:f("list-container"),children:(0,d.jsx)(r.w,{responsive:!0,children:p.map((e=>{let{children:t,key:n,...o}=e;return(0,d.jsx)(r.w.Item,{...o,children:(0,d.jsx)("div",{className:f("definition"),children:t})},n)}))})})};var h=n(38980),m=n(41591);const g=(0,m.aE)({values:{ChangeTime:e=>(0,h.fG)(e)},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),v=e=>{let{data:t={},className:n}=e;const{TabletId:r,NodeId:o,State:i,Type:a,ChangeTime:s,Generation:l}=t,c=(0,m.Z6)(g,{TabletId:r,NodeId:o,State:i,Type:a,ChangeTime:s,Generation:l});return(0,d.jsx)(m._P,{className:n,info:c,dots:!1,size:"s"})},y=(0,m.aE)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),b=e=>{let{data:t={},className:n}=e;const r=(0,m.Z6)(y,t);return(0,d.jsx)(m._P,{className:n,info:r,dots:!1,size:"s"})}},61979:(e,t,n)=>{"use strict";n.d(t,{f:()=>f,r:()=>d});var r=n(34706),o=n(99495),i=n(33921),a=n(78276),s=n(12775);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(27810),u=n(55842);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}}},4128:(e,t,n)=>{"use strict";n.d(t,{B7:()=>f,V2:()=>d,_Y:()=>u,xu:()=>o});var r=n(46878);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},i={id:o.overview,title:"Overview"},a={id:o.tenants,title:"Databases"},s={id:o.nodes,title:"Nodes"},l={id:o.storage,title:"Storage"},c={id:o.versions,title:"Versions"},u=[i,a,s,l,{id:o.tablets,title:"Tablets"},c];function d(e){return Object.values(o).includes(e)}const f=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)}},75544:(e,t,n)=>{"use strict";n.d(t,{IA:()=>a,P_:()=>i,ZJ:()=>c,a3:()=>d,mD:()=>s,pV:()=>l,v3:()=>u});var r=n(99495),o=n(46878);const i="storage",a="tablets",s="overview",l="structure",c=[{id:s,name:"Overview"},{id:i,name:"Storage"},{id:l,name:"Structure"},{id:a,name:"Tablets"}],u={database:r.StringParam};function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;return(0,o.ax)(o.ZP.node,{id:e,activeTab:n},t)}},60064:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>a,Sj:()=>l,XV:()=>i,c7:()=>s});var r=n(46878),o=n(53096);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)},65186:(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:()=>wi,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,ENABLE_NETWORK_TABLE_KEY:()=>Be._X,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:()=>Ui,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,SAVED_QUERIES_KEY:()=>Be.DG,SECOND_IN_MS:()=>Be.NO,SHOW_DOMAIN_DATABASE_KEY:()=>Be.Zy,SingleClusterApp:()=>Si,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,USE_SHOW_PLAN_SVG_KEY:()=>Be.Mg,WEEK_IN_SECONDS:()=>Be.nU,YdbEmbeddedAPI:()=>$i.su,YdbWebVersionAPI:()=>$i.Iy,appRoutes:()=>de.ZP,cn:()=>fe.cn,componentsRegistry:()=>_i,configureStore:()=>qi.xC,createApi:()=>$i.LC,getMonitoringClusterLink:()=>Ci,getMonitoringLink:()=>ki,getSettingValue:()=>Hi.Cx,getTabletLabel:()=>Be.qV,getUserSettings:()=>ct,i18n:()=>pe.ag,registerKeysets:()=>pe.wZ,reportWebVitals:()=>Wi.Z,rootReducer:()=>qi.QW,setSettingValue:()=>Hi.xI,settingsManager:()=>Zi.r,toaster:()=>Vi.m,useSetting:()=>u.yu,useTypedSelector:()=>u.ix});var r={};n.r(r),n.d(r,{ClusterSlot:()=>xn,ClustersSlot:()=>_n,NodeSlot:()=>Sn,PDiskPageSlot:()=>kn,RedirectSlot:()=>In,RoutesSlot:()=>Tn,StorageGroupSlot:()=>On,TabletSlot:()=>Nn,TenantSlot:()=>En,VDiskPageSlot:()=>Cn});var o=n(34706),i=n(42152),a=n(95877),s=n(38914),l=n(75147),c=n(65e3),u=n(55842);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(14561),p=n(72555),h=n(86357),m=n(81550),g=n(79777),v=n(91528);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(6826),w=n(3581),_=n(2915),x=n(23795),E=n(72616),S={button_close:"Close"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.e)({en:S,ru:k},`${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"),N=e=>{let{children:t,closeIconSize:n=23,hasSeparator:r,closeTitle:i=C("button_close"),onClose:a}=e;return o.createElement("div",{className:O({separator:r})},o.createElement(x.x,{className:O("text"),as:"h3",variant:"subheader-3"},t),a&&o.createElement(E.z,{onClick:a,view:"flat",size:"l",extraProps:{"aria-label":i}},o.createElement(f.J,{data:_.Z,size:n})))};function T(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 D(e,"",new RegExp(t,"i"))}function D(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}=D(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}=D(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]=R(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 R(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}=R(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}}N.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=T(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 K(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=T((0,b.d)(r,i)),p=T((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 Y=(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:Y({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:Y("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:_}=P(i,y),x=M(_,r),E=Object.keys(_),S=x.page&&E.includes(x.page.id)?x.page.id:void 0,[k,C]=o.useState(S||(t&&E.includes(t)?t:void 0)),O=o.useRef(null),T=o.useRef(null),I="mobile"===u;o.useEffect((()=>{var e;null===(e=T.current)||void 0===e||e.clearFocus()}),[y]),o.useEffect((()=>{const e=()=>{var e;null===(e=T.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let D=k;D&&!(null===(p=_[D])||void 0===p?void 0:p.hidden)||(D=null===(h=Object.values(_).find((e=>{let{hidden:t}=e;return!t})))||void 0===h?void 0:h.id);const R=e=>{C((t=>(t!==e&&(null===d||void 0===d||d(e)),e)))};o.useEffect((()=>{D!==k&&R(D)})),o.useEffect((()=>{S&&C(S)}),[S]),o.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.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))}(x,e,t);return o.createElement("div",{key:t.title,className:Y("section",{selected:n}),ref:n?x.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:Y("section-heading")},m?o.createElement(g.k,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:Y("section-right-adornment",{hidden:v})},m(t))):t.title),t.header&&(I?o.createElement("div",{className:Y("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:Y("section-item")},o.cloneElement(n,Object.assign(Object.assign({},n.props),{highlightedTitle:y&&t?ne(t,y):t})))})(e))))};return o.createElement(L,{value:x},o.createElement("div",{className:Y({view:u})},I?o.createElement(o.Fragment,null,o.createElement(K,{inputRef:O,className:Y("search"),initialValue:n,onChange:b,autoFocus:!1,inputSize:"xl"}),o.createElement(Z,{items:w,onChange:R,activeItemId:D,className:Y("tabs")})):o.createElement("div",{className:Y("menu"),onClick:()=>{O.current&&O.current.focus()},onKeyDown:e=>{T.current&&T.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(N,null,s),o.createElement(K,{inputRef:O,className:Y("search"),initialValue:n,onChange:b,placeholder:l,autoFocus:!0}),o.createElement(B,{ref:T,items:w,onChange:R,activeItemId:D})),o.createElement("div",{className:Y("page")},(e=>{if(!e)return"function"===typeof a?a():o.createElement("div",{className:Y("not-found")},c);const t=_[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!I&&o.createElement(N,{hasSeparator:!0,onClose:f},ee(w,e)),o.createElement("div",{className:Y("content")},t.map((t=>A(e,t)))))})(D))))}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:Y("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:Y("item-title",{badge:s})},l(r));return o.createElement("div",{className:Y("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:Y("item-heading"),id:n},p?o.createElement(g.k,{className:Y("item-title-wrapper"),gap:3},m,o.createElement("div",{className:Y("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:Y("item-description")},u):null),o.createElement("div",{className:Y("item-content")},i))};var re=n(77315),oe=n(67661),ie=n(10161);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=[],showTitle:i}=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,showTitle:null===i||void 0===i||i,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(55783),de=n(46878),fe=n(99294),pe=n(37711);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)(E.z,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{n(void 0)},children:(0,ie.jsx)(f.J,{data:le})}):(0,ie.jsx)(E.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(24874),_e=n(32678),xe=n(19992),Ee=n.n(xe),Se=n(13467);const ke=(0,fe.cn)("node-tootltip"),Ce=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:ke(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"ID"}),(0,ie.jsx)("td",{className:ke("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Rack"}),(0,ie.jsx)("td",{className:ke("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Net"}),(0,ie.jsx)("td",{className:ke("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,fe.cn)("tabletsOverall-tooltip"),Ne=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)))})})})},Te=(0,fe.cn)("histogram-tooltip"),Ie=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Te(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"Count"}),(0,ie.jsx)("td",{className:Te("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"From"}),(0,ie.jsx)("td",{className:Te("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"To"}),(0,ie.jsx)("td",{className:Te("value"),children:t.rightBound||"?"})]})]})})})},Pe=(0,fe.cn)("cell-tooltip"),De=(0,fe.cn)("json-tooltip"),Re={pool:e=>(0,ie.jsx)(Se.A8,{data:e}),tablet:e=>(0,ie.jsx)(Se.Fb,{data:e}),node:e=>(0,ie.jsx)(Ce,{data:e}),nodeEndpoints:e=>(0,ie.jsx)(Se.bP,{data:e}),tabletsOverall:e=>(0,ie.jsx)(Ne,{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:De(),children:(0,ie.jsx)(Ee(),{data:e,search:!1,isExpanded:()=>!0,className:De("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:Re[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:_e.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(52232),Fe=n(51409),Be=n(27810);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.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","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._X,title:qe("settings.enableNetworkTable.title")},Ke={settingKey:Be.Mg,title:qe("settings.useShowPlanToSvg.title"),description:qe("settings.useShowPlanToSvg.description")},Ye={settingKey:Be.Zy,title:qe("settings.showDomainDatabase.title")},Qe={settingKey:Be.IG,title:qe("settings.useClusterBalancerAsBackend.title"),description:qe("settings.useClusterBalancerAsBackend.description")},Je={settingKey:Be.y6,title:qe("settings.editor.autocomplete.title"),description:qe("settings.editor.autocomplete.description")},Xe={settingKey:Be.XX,title:qe("settings.editor.autocomplete-on-enter.title"),description:qe("settings.editor.autocomplete-on-enter.description")},et={title:qe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"6.36.1"},tt={id:"appearanceSection",title:qe("section.appearance"),settings:[Ze,Ve,He,Ye]},nt={id:"experimentsSection",title:qe("section.experiments"),settings:[We,Ge,Ke]},rt={id:"devSettingsSection",title:qe("section.dev-setting"),settings:[Je,Xe]},ot={id:"aboutSettingsSection",title:qe("section.about"),settings:[et]},it={id:"generalPage",title:qe("page.general"),icon:{data:je,height:14,width:14},sections:[tt],showTitle:!1},at={id:"experimentsPage",title:qe("page.experiments"),icon:{data:Me},sections:[nt],showTitle:!1},st={id:"editorPage",title:qe("page.editor"),icon:{data:Le},sections:[rt]},lt={id:"aboutPage",title:qe("page.about"),icon:{data:ze.Z},sections:[ot],showTitle:!1};function ct(e){let{singleClusterMode:t}=e;const n=t?at:(0,Fe.Uy)(at,(e=>{e.sections[0].settings.push(Qe)}));return[it,st,n,lt]}var ut=n(93225),dt=n(48653);function ft(){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 pt(e){return"function"===typeof e&&"__slotName"in e}class ht{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)&&pt(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(!pt(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var mt=n(39202),gt=n(4969),vt=n(99669);const 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:"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"})),bt=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 wt,_t,xt=n(17823);function Et(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 St(){return St=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},St.apply(this,arguments)}const kt=function(e){return o.createElement("svg",St({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),wt||(wt=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"})),_t||(_t=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 Ot=function(e){let{closable:t=!1}=e;const n=(0,ue.k6)(),r=(0,ue.TH)(),[i,{isLoading:a}]=c.nc.useAuthenticateMutation(void 0),{returnUrl:s}=(0,de.mB)(r),[l,u]=o.useState(""),[d,p]=o.useState(""),[m,g]=o.useState(""),[v,y]=o.useState(""),[b,w]=o.useState(!1),x=()=>{i({user:l,password:d}).unwrap().then((()=>{if(s){const e=decodeURIComponent(s.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}})).catch((e=>{(function(e){return Et(e)&&e.data.error.includes("user")})(e)&&g(e.data.error),function(e){return Et(e)&&e.data.error.includes("password")}(e)&&y(e.data.error)}))},S=e=>{13===e.keyCode&&x()};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:kt,size:24}),"YDB"]}),(0,ie.jsx)(xt.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:l,onUpdate:e=>{u(e),g("")},placeholder:"Username",error:m,onKeyDown:S,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,ie.jsx)(h.o,{value:d,onUpdate:e=>{p(e),y("")},type:b?"text":"password",placeholder:"Password",error:v,onKeyDown:S,size:"l"}),(0,ie.jsx)(E.z,{onClick:()=>{w((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,ie.jsx)(f.J,{data:b?yt:bt,size:16})})]}),(0,ie.jsx)(E.z,{view:"action",onClick:x,width:"max",size:"l",disabled:Boolean(!l||m||v),loading:a,className:Ct("button-sign-in"),children:"Sign in"})]}),t&&n.length>1&&(0,ie.jsx)(E.z,{onClick:()=>{n.go(-1)},className:Ct("close"),children:(0,ie.jsx)(f.J,{data:_.Z,size:24})})]})};var Nt=n(4128),Tt=n(42542),It=n.n(Tt),Pt=n(87578);const Dt=(0,Pt.Ge)("breadcrumbs");function Rt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:Dt("switcher",{more:!0})}))}const At=(0,Pt.Ge)("breadcrumbs");const jt=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(xt.r,{key:t.text,view:"secondary",href:t.href,title:l,onClick:t.action,className:At("item",{"prev-current":r})},s):o.createElement(Rt,{key:t.text,title:l,onClick:t.action},s):o.createElement("div",{title:l,className:At("item",{current:!0})},s)}));jt.displayName="Breadcrumbs.Item";var Mt=n(36413);const Lt=JSON.parse('{"label_more":"Show more"}'),zt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),Ft=(0,w.e)({en:Lt,ru:zt},"Breadcrumbs"),Bt=(0,Pt.Ge)("breadcrumbs");function Ut(e){let{popupStyle:t,popupPlacement:n,items:r}=e;return o.createElement(Mt.h,{items:r,popupProps:{className:Bt("popup",{staircase:"staircase"===t}),placement:n},renderSwitcher:e=>{let{onClick:t}=e;return o.createElement(Rt,{title:Ft("label_more"),onClick:t},"...")}})}Ut.displayName="Breadcrumbs.More";const qt=(0,Pt.Ge)("breadcrumbs");function $t(e){let{renderItemDivider:t}=e;return o.createElement("div",{"aria-hidden":!0,className:qt("divider")},t?t():"/")}$t.displayName="Breadcrumbs.Separator";const Zt=(0,Pt.Ge)("breadcrumbs");var Ht,Vt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Ht||(Ht={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Vt||(Vt={}));class Wt 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?Wt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Wt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=It()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=o.createRef(),this.state=Wt.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:Zt({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:Zt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(jt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement($t,{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($t,{renderItemDivider:r}),o.createElement(Ut,{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(`.${Zt("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${Zt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Zt("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===Ht.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))})}}}Wt.defaultProps={popupPlacement:["bottom","top"]};var Gt=n(67653),Kt=n(90808),Yt=n(10730),Qt=n(70340);const 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 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"})),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:"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"})),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:"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"})),tn=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"})),nn=(0,fe.cn)("tablet-icon"),rn=e=>{let{text:t,className:n}=e;return(0,ie.jsx)("div",{className:nn(null,n),children:(0,ie.jsx)("div",{className:nn("type"),children:t||"T"})})};var on=n(53096),an=n(75544),sn=n(60064);const ln=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group"}'),cn=(0,pe.wZ)("ydb-header",{en:ln}),un=e=>e.startsWith("/")?e.slice(1):e,dn=e=>({[on.bS]:on.m2.diagnostics,[sn.XV.diagnosticsTab]:on.qQ[e]}),fn=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,Nt.B7)(r,t),icon:(0,ie.jsx)(Jt,{})}]},pn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{tenantName:n}=e,r=fn(e,t),o={text:n?un(n):cn("breadcrumbs.tenant"),link:n?(0,sn.Sj)({...t,database:n}):void 0,icon:(0,ie.jsx)(Xt,{})};return r.push(o),r},hn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{nodeId:n,nodeRole:r,nodeActiveTab:o,tenantName:i}=e,a=dn(o===an.IA?"tablets":"nodes"),s=i?pn(e,{...t,...a}):fn(e,t);let l=cn("breadcrumbs.node");n&&(l+=` ${n}`);const c={text:l,link:n?(0,an.a3)(n,{database:i,...t},o):void 0,icon:mn(r)};return s.push(c),s};function mn(e){switch(e){case"Storage":return(0,ie.jsx)(en,{});case"Compute":return(0,ie.jsx)(tn,{});default:return}}const gn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{nodeId:n,pDiskId:r,nodeRole:o}=e,i=hn({...e,nodeRole:null!==o&&void 0!==o?o:"Storage"});let a=cn("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},vn={cluster:fn,node:hn,pDisk:gn,tablet:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{tabletId:n,tabletType:r,tenantName:o}=e,i=o?pn(e,t):fn(e,t),a={text:n||cn("breadcrumbs.tablet"),icon:(0,ie.jsx)(rn,{text:(0,Be.qV)(r)})};return i.push(a),i},tenant:pn,vDisk:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{vDiskSlotId:n}=e,r=gn(e,t);let o=cn("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=fn(e,t);let o=cn("breadcrumbs.storageGroup");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r}},yn=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,vn[e])(t,r);return[...n,...o]},bn=(0,fe.cn)("header");const wn=function(e){let{mainPage:t}=e;const{page:n,pageBreadcrumbsOptions:r}=(0,u.ix)((e=>e.header)),i=(0,Yt.kW)(),a=i.title||i.name,s=o.useMemo((()=>{const e=[];let o=r;t&&e.push(t),a&&(o={...o,clusterName:a});return yn(n,o,e).map((e=>({...e,action:()=>{}})))}),[a,t,n,r]);return(0,ie.jsxs)("header",{className:bn(),children:[(0,ie.jsx)(Wt,{items:s,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:bn("breadcrumbs"),renderItem:e=>{let{item:t,isCurrent:n}=e;const{icon:r,text:o,link:i}=t;return(0,ie.jsxs)(Gt.h,{className:bn("breadcrumbs-item",{active:n,link:!n}),to:n?void 0:i,children:[r?(0,ie.jsx)("span",{className:bn("breadcrumbs-icon"),children:r}):null,(0,ie.jsx)("span",{children:o})]})}}),(0,ie.jsx)(Kt.j,{title:Be.Ah,url:(0,Qt.i1)()})]})},_n=ft("clusters"),xn=ft("cluster"),En=ft("tenant"),Sn=ft("node"),kn=ft("pDisk"),Cn=ft("vDisk"),On=ft("storageGroup"),Nn=ft("tablet"),Tn=ft("routes"),In=ft("redirect"),Pn=JSON.parse('{"pages.clusters":"All clusters"}'),Dn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Rn=(0,pe.wZ)("ydb-app-content",{ru:Dn,en:Pn}),An=(0,fe.cn)("app"),jn=[{path:de.ZP.cluster,slot:xn,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(3062),n.e(3017),n.e(5986),n.e(6894)]).then(n.bind(n,62787))),"Cluster"),wrapper:Fn},{path:de.ZP.tenant,slot:En,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(433),n.e(1198),n.e(3017),n.e(5986),n.e(3933)]).then(n.bind(n,16033))),"Tenant"),wrapper:Fn},{path:de.ZP.node,slot:Sn,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(3017),n.e(896),n.e(5879)]).then(n.bind(n,33100))),"Node"),wrapper:Fn},{path:de.ZP.pDisk,slot:kn,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(3017),n.e(896),n.e(2881)]).then(n.bind(n,71676))),"PDiskPage"),wrapper:Fn},{path:de.ZP.vDisk,slot:Cn,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(3017),n.e(896),n.e(4135)]).then(n.bind(n,49038))),"VDiskPage"),wrapper:Fn},{path:de.ZP.storageGroup,slot:On,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(3017),n.e(6395)]).then(n.bind(n,13812))),"StorageGroupPage"),wrapper:Fn},{path:de.ZP.tablet,slot:Nn,component:(0,vt.k)((()=>Promise.all([n.e(328),n.e(433),n.e(7054)]).then(n.bind(n,65874))),"Tablet"),wrapper:Fn}],Mn=(0,vt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(1276)]).then(n.bind(n,61490))),"Clusters");function Ln(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:An("main"),children:(0,ie.jsx)(s,{children:a})})}},t.path)}function zn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return o.useMemo((()=>new ht(t)),[t])}(e),i=r.get(Tn),a=r.get(In),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Nt.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:Ln(r,{path:de.ZP.clusters,exact:!0,component:Mn,slot:_n}),null===i||void 0===i?void 0:i.rendered,(0,ie.jsxs)(ue.AW,{children:[(0,ie.jsx)(wn,{mainPage:l}),(0,ie.jsxs)(ue.rs,{children:[jn.map((e=>Ln(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 Fn(e){let{children:t}=e;return(0,ie.jsxs)(Bn,{children:[(0,ie.jsx)(Un,{}),(0,ie.jsx)(qn,{}),t]})}function Bn(e){let{children:t}=e;const{isLoading:n,error:r}=c.nc.useWhoamiQuery(void 0);return(0,ie.jsx)(dt.s,{loading:n,size:"l",children:(0,ie.jsx)(ut.S,{error:r,children:t})})}function Un(){return gt.W.useGetNodesListQuery(void 0),null}function qn(){return(0,mt.Vh)(),null}const $n=(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)(Ot,{closable:!0})}),(0,ie.jsx)(ue.AW,{children:(0,ie.jsx)("div",{className:An({embedded:t}),children:n?e.children:(0,ie.jsx)(Ot,{})})})]})}));var Zn=n(15428),Hn=n(85507),Vn=n(99495);const Wn=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}})},Gn=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 Kn=n(29837),Yn=n(68045),Qn=n(41715),Jn=n(90132),Xn=n(76943);const er=o.createContext(void 0);er.displayName="AsideHeaderInnerContext";const tr=er.Provider,nr=()=>{const e=o.useContext(er);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},rr=o.createContext({compact:!1,size:0});rr.displayName="AsideHeaderContext";const or=rr.Provider,ir=()=>{const e=o.useContext(rr);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},ar=40;var sr=n(87382);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 lr=(0,v.b)("composite-bar-highlighted-item"),cr=e=>{let{iconRef:t,iconNode:n,onClick:r,onClickCapture:i}=e;const{openModalSubscriber:a}=nr(),[{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(Qn.h,null,o.createElement("div",{className:lr(),style:{left:l,top:s,width:c,height:u},onClick:r,onClickCapture:i,"data-toast":!0},o.createElement("div",{className:lr("icon")},n))):null};cr.displayName="HighlightedItem";const ur="collapse-item-id",dr=["right-start","right-end","right"],fr=28;function pr(e){if(!gr(e))return ar;switch(e.type){case"action":return 50;case"divider":return 15;default:return ar}}function hr(e){return e.reduce(((e,t)=>e+pr(t)),0)}function mr(e){const t=e.findIndex((e=>{let{current:t}=e;return Boolean(t)}));return-1===t?void 0:t}function gr(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 vr=(0,v.b)("composite-bar-item");function yr(e){let t=o.createElement("div",{className:vr("title-text")},e.title);return e.rightAdornment&&(t=o.createElement(o.Fragment,null,t,o.createElement("div",{className:vr("title-adornment")},e.rightAdornment))),t}const br=["right-end"],wr=[-20,8],_r=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:i,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=br,popupOffset:d=wr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,bringForward:b}=e,{compact:w}=ir(),[_,x]=o.useState(!1),E=o.useRef(null),S=c||E,k=o.useRef(null),C=t.type||"regular",O=t.current||!1,N=t.tooltipText||t.title,T=t.icon,I=t.iconSize||18,P=t.iconQa,D=t.id===ur,R=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=E.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:vr("menu-divider")});const j=e=>w?o.createElement(Jn.M,{title:"",description:N,disabled:!s||D&&_||l,placement:"right",className:vr("icon-tooltip",{"item-type":C})},o.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===i||void 0===i?void 0:i(),className:vr("btn-icon")},e)):e,M=e=>{let{icon:r,title:s}=e;const c=o.createElement(o.Fragment,null,o.createElement("div",{className:vr({type:C,current:O,compact:w},n),ref:E,"data-qa":t.qa,onClick:e=>{D?x(!_):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:vr("icon-place"),ref:k},j(r)),o.createElement("div",{className:vr("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:vr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:S,onClose:A,modifiers:R},m()));return t.link?o.createElement("a",{href:t.link,className:vr("link")},c):c},L=T?o.createElement(f.J,{qa:P,data:T,size:I,className:vr("icon")}):null,z={icon:L,title:yr(t)};let F,B=null;const U={compact:Boolean(w),collapsed:!1,item:t,ref:E};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(cr,{iconNode:B,iconRef:k,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),F,_&&D&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(xr,Object.assign({},e,{anchorRef:E,onClose:()=>x(!1)})))};function xr(e){let{onItemClick:t,collapseItems:n,anchorRef:r,onClose:i}=e;const{compact:a}=ir();return(null===n||void 0===n?void 0:n.length)?o.createElement(we.G,{placement:dr,open:!0,anchorRef:r,onClose:i},o.createElement("div",{className:vr("collapse-items-popup-content")},o.createElement(Xn.a,{itemClassName:vr("root-collapse-item"),items:n,selectedItemIndex:mr(n),itemHeight:fr,itemsHeight:n.length*fr,virtualized:!1,filterable:!1,sortable:!1,onItemClick:i,renderItem:e=>{const n=n=>{let{title:r}=n;const i=o.createElement("div",{className:vr("collapse-item"),onClick:n=>{null===t||void 0===t||t(e,!0,n)}},r);return e.link?o.createElement("a",{href:e.link,className:vr("link")},i):i},i={title:yr(e)},s={compact:Boolean(a),collapsed:!0,item:e,ref:r};return"function"===typeof e.itemWrapper?e.itemWrapper(i,n,s):n(i)}}))):null}_r.displayName="Item";n(95936);y(".gn-footer-item{height:40px;width:100%}");const Er=(0,v.b)("footer-item"),Sr=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(_r,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:Er({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},kr=o.memo((e=>{let{renderContent:t,size:n}=e;return o.createElement(o.Fragment,null,t({size:n}))}));kr.displayName="RenderContent";const Cr=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(kr,{size:t,renderContent:i}):a)};var Or=n(10824);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 Nr=o.lazy((()=>n.e(6866).then(n.bind(n,26866)).then((e=>({default:e.TopPanel}))))),Tr=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(or,{value:s},o.createElement("div",{className:(0,Or.b)({compact:t},n),style:Object.assign({},{"--gn-aside-header-size":`${a}px`})},i&&o.createElement(o.Suspense,{fallback:null},o.createElement(Nr,{topAlert:i})),o.createElement("div",{className:(0,Or.b)("pane-container")},r)))}),{Content:e=>{let{children:t,renderContent:n}=e;const{size:r}=ir();return o.createElement(Cr,{size:r,className:(0,Or.b)("content"),renderContent:n},t)}});var Ir=n(54695);const Pr=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"})),Dr=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 Rr;function Ar(){return Ar=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},Ar.apply(this,arguments)}var jr=function(e){return o.createElement("svg",Ar({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Rr||(Rr=o.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Mr=n(9446),Lr=n(72985);function zr(){return zr=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},zr.apply(this,arguments)}function Fr(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 Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Br(e,t)}function Ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}var qr,$r,Zr,Hr;function Vr(){if($r)return qr;$r=1;return qr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Wr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Hr)return Zr;Hr=1;var e=Vr();function t(){}function n(){}return n.resetWarningCache=t,Zr=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 Gr=!1,Kr=o.createContext(null),Yr=function(e){return e.scrollTop},Qr="unmounted",Jr="exited",Xr="entering",eo="entered",to="exiting",no=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=Jr,r.appearStatus=Xr):o=eo:o=t.unmountOnExit||t.mountOnEnter?Qr:Jr,r.state={status:o},r.nextCallback=null,r}Ur(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qr?{status:Jr}: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!==Xr&&n!==eo&&(t=Xr):n!==Xr&&n!==eo||(t=to)}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===Xr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this);n&&Yr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jr&&this.setState({status:Qr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Lr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Gr?this.safeSetState({status:eo},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Xr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:eo},(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:Lr.findDOMNode(this);t&&!Gr?(this.props.onExit(r),this.safeSetState({status:to},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Jr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Jr},(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:Lr.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===Qr)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=Fr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Kr.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function ro(){}no.contextType=Kr,no.propTypes={},no.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ro,onEntering:ro,onEntered:ro,onExit:ro,onExiting:ro,onExited:ro},no.UNMOUNTED=Qr,no.EXITED=Jr,no.ENTERING=Xr,no.ENTERED=eo,no.EXITING=to;var oo=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}))},io=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=Wr(n.className,r):n.setAttribute("class",Wr(n.className&&n.className.baseVal||"",r)));var n,r}))},ao=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}Ur(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&&Yr(e),r&&(this.appliedClasses[t][n]=r,oo(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&&io(e,r),o&&io(e,o),i&&io(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Fr(e,["classNames"]);return o.createElement(no,zr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function so(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 lo(e,t,n){return null!=n[t]?n[t]:e.props[t]}function co(e,t,n){var r=so(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:lo(s,"exit",e),enter:lo(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:lo(s,"exit",e),enter:lo(s,"enter",e)})}})),i}ao.defaultProps={classNames:""},ao.propTypes={};var uo,fo,po=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ho=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}Ur(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,so(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:lo(e,"appear",n),enter:lo(e,"enter",n),exit:lo(e,"exit",n)})}))):co(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=so(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=zr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Fr(e,["component","childFactory"]),i=this.state.contextValue,a=po(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Kr.Provider,{value:i},a):o.createElement(Kr.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);ho.propTypes={},ho.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}Ur(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:Lr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Fr(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(ho,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 mo="out-in",go="in-out",vo=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},yo=((uo={})[mo]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:vo(t,"onExited",(function(){n(Xr,null)}))})},uo[go]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:vo(r,"onEntered",(function(){n(Xr)}))})]},uo),bo=((fo={})[mo]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:vo(t,"onEntered",(function(){n(eo,o.cloneElement(t,{in:!0}))}))})},fo[go]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:vo(t,"onExited",(function(){r(eo,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},fo),wo=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:eo,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ur(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===Xr&&e.mode===go?{status:Xr}:!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:to};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 Xr:e=bo[r](l);break;case to:e=yo[r](l);break;case eo:e=s}return o.createElement(Kr.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);wo.propTypes={},wo.defaultProps={mode:mo};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 _o=(0,v.b)("drawer"),xo=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(ao,{in:t,timeout:300,unmountOnExit:!0,classNames:_o("item-transition",{direction:l}),nodeRef:s},o.createElement("div",{ref:s,className:_o("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===xo){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,Mr.y)({enabled:s&&l});const c=o.useRef(null),u=o.useRef(null);return o.createElement(no,{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:_o(null,t),style:r},o.createElement(ao,{in:a,timeout:300,unmountOnExit:!0,classNames:_o("veil-transition"),nodeRef:u},o.createElement("div",{ref:u,className:_o("veil"),onClick:i})),o.Children.map(n,(e=>{if(o.isValidElement(e)&&e.type===xo){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 So=(0,v.b)("all-pages-list-item"),ko=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:So(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.J,{className:So("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:So("text")},t.title),n&&o.createElement(E.z,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(E.z.Icon,null,t.hidden?o.createElement(Pr,null):o.createElement(Dr,null))))};var Co=(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 Oo="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 No=(0,v.b)("all-pages-panel"),To=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:i,onMenuItemsChanged:a}=nr(),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!==Oo));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||Co("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!==Oo));a(n.map((e=>e.id!==t.id?e:t)))}),[a]),m=(0,o.useCallback)(((e,t,n)=>o.createElement(ko,{item:e,editMode:l,onToggle:()=>h(e)})),[l,h]),v=(0,o.useCallback)((()=>{if(!a)return;const e=s.current.filter((e=>e.id!==Oo));a(e.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a]);return o.createElement(g.k,{className:No(null,r),gap:"5",direction:"column"},o.createElement(g.k,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(x.x,{variant:"subheader-2"},Co(l?"all-panel.title.editing":"all-panel.title.main")),o.createElement(E.z,{selected:l,view:"normal",onClick:u},t||o.createElement(f.J,{data:Yn.Z}))),o.createElement(g.k,{className:No("content"),gap:"5",direction:"column"},Object.keys(d).map((e=>o.createElement(g.k,{key:e,direction:"column",gap:"3"},o.createElement(x.x,{className:No("category"),variant:"body-1",color:"secondary"},e),o.createElement(Xn.a,{virtualized:!1,filterable:!1,items:d[e],onItemClick:p,renderItem:m}))))),l&&o.createElement(E.z,{onClick:v},Co("all-panel.resetToDefault")))};let Io;Io="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Po=null,Do=null;const Ro=Io.clearTimeout,Ao=Io.setTimeout,jo=Io.cancelAnimationFrame||Io.mozCancelAnimationFrame||Io.webkitCancelAnimationFrame,Mo=Io.requestAnimationFrame||Io.mozRequestAnimationFrame||Io.webkitRequestAnimationFrame;function Lo(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__&&Po(this.__resizeRAF__),this.__resizeRAF__=Do((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=Io.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==jo||null==Mo?(Po=Ro,Do=function(e){return Ao(e,20)}):(Po=function(e){let[t,n]=e;jo(t),Ro(n)},Do=function(e){const t=Mo((function(){Ro(n),e()})),n=Ao((function(){jo(t),e()}),20);return[t,n]});class zo 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=Lo(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 Fo={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},Bo=o.createContext(Fo);class Uo extends o.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Fo),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return o.createElement(Bo.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 qo=(0,v.b)("multiple-tooltip"),$o=[-32,4],Zo=[{name:"preventOverflow",enabled:!1}],Ho=e=>{let{items:t,open:n,anchorRef:r,placement:i}=e;const{activeIndex:a,hideCollapseItemTooltip:s}=o.useContext(Bo),l=void 0===a?null:t[a];return o.createElement(we.G,{open:n,anchorRef:r,placement:i,offset:$o,contentClassName:qo(null),modifiers:Zo,disableLayer:!0},o.createElement("div",{className:qo("items-container")},t.filter((e=>{let{type:t="regular",id:n}=e;return!s||n!==ur&&"action"!==t})).map(((e,t)=>"divider"===e.type?o.createElement("div",{className:qo("item",{divider:!0}),key:t},e.title):o.createElement("div",{className:qo("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 Vo=(0,v.b)("composite-bar"),Wo=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)(Bo),{compact:p}=ir();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!==ur&&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(Xn.a,{ref:s,items:n,selectedItemIndex:"menu"===t?mr(n):void 0,itemHeight:pr,itemsHeight:hr,itemClassName:Vo("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const r=gr(e)?{item:e}:e,s=gr(e)?!a:e.enableTooltip;return o.createElement(_r,Object.assign({},r,{enableTooltip:s,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),collapseItems:i}))}})),"menu"===t&&a&&o.createElement(Ho,{open:p&&u,anchorRef:l,placement:["right-start"],items:n}))},Go=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 hr(t)+hr(n)+(t.length===e.length?0:ar)}(r),n=function(e){return{id:ur,title:e,icon:sr.Z,iconSize:18}}(i);t=o.createElement("div",{className:Vo({autosizer:!0}),style:{minHeight:e}},0!==r.length&&o.createElement(zo,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=hr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=pr(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===ur||e.afterMoreButton||("divider"!==e.type?(f-=pr(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-=pr(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(Wo,{type:"menu",items:l,onItemClick:a,collapseItems:c,multipleTooltip:s}))})))}else t=o.createElement("div",{className:Vo({subheader:!0})},o.createElement(Wo,{type:"subheader",items:r,onItemClick:a}));return o.createElement(Uo,null,t)};var Ko={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Yo={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 Qo,Jo=(0,w.e)({en:Ko,ru:Yo},`${v.N}AsideHeader`);function Xo(){return Xo=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},Xo.apply(this,arguments)}var ei=function(e){return o.createElement("svg",Xo({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Qo||(Qo=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 ti=(0,v.b)("collapse-button"),ni=e=>{let{className:t}=e;const{onChangeCompact:n,compact:r,expandTitle:i,collapseTitle:a}=nr(),s=(0,o.useCallback)((()=>{null===n||void 0===n||n(!r)}),[r,n]),l=r?i||Jo("button_expand"):a||Jo("button_collapse");return o.createElement("button",{className:ti({compact:r},t),onClick:s,title:l},o.createElement(f.J,{data:ei,className:ti("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 ri=(0,v.b)("logo"),oi=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(E.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 _=o.createElement(E.z,{view:"flat",size:"l",className:ri("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 x;return x="function"===typeof t?t():o.createElement("div",{className:ri("logo"),style:{fontSize:s}},t),o.createElement("div",{className:ri(null,h)},o.createElement("div",{className:ri("logo-btn-place",m)},b?u(_,Boolean(p)):_),!p&&(b?o.createElement("div",{onClick:d},u(x,Boolean(p))):o.createElement("a",{href:null!==l&&void 0!==l?l:"/",target:c,rel:"_self"===c?void 0:"noreferrer",className:ri("logo-link"),onClick:d},x)))},ii=[],ai=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:i}=nr(),{compact:a}=ir(),{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,Or.b)("header",{"with-decoration":r})},o.createElement(oi,Object.assign({},e,{onClick:l,compact:a,buttonWrapperClassName:(0,Or.b)("logo-button-wrapper"),buttonClassName:(0,Or.b)("logo-button")})),o.createElement(Go,{type:"subheader",items:i||ii,onItemClick:t}),o.createElement(f.J,{data:jr,className:(0,Or.b)("header-divider"),width:56,height:29}))},si=()=>{const{panelItems:e,onClosePanel:t,size:n}=nr();return e?o.createElement(Eo,{className:(0,Or.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>o.createElement(xo,Object.assign({key:e.id},e))))):null},li=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}=nr(),m=(()=>{const{menuItems:e,allPagesIsAvailable:t}=nr();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,Ir.k)(t,g.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,Or.b)("aside",f),style:{width:n},"data-qa":h},o.createElement("div",{className:(0,Or.b)("aside-popup-anchor"),ref:g}),o.createElement("div",{className:(0,Or.b)("aside-content",{"with-decoration":i})},u&&o.createElement("div",{className:(0,Or.b)("aside-custom-background",d)},u),o.createElement(ai,null),(null===m||void 0===m?void 0:m.length)?o.createElement(Go,{type:"menu",items:m,menuMoreTitle:null!==s&&void 0!==s?s:Jo("label_more"),onItemClick:r,multipleTooltip:a}):o.createElement("div",{className:(0,Or.b)("menu-items")}),o.createElement("div",{className:(0,Or.b)("footer")},null===l||void 0===l?void 0:l({size:n,compact:Boolean(c),asideRef:g})),!p&&o.createElement(ni,null))),o.createElement(si,null))}));var ci;li.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(ci||(ci={}));const ui=[],di=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:i,onMenuItemsChanged:a}=e,[s,l]=(0,o.useState)(),c=o.useMemo((()=>({id:Oo,title:Co("menu-item.all-pages.title"),tooltipText:Co("menu-item.all-pages.title"),icon:sr.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===ci.AllPages?void 0:ci.AllPages)):d(),null===(r=e.onItemClick)||void 0===r||r.call(e,e,t,n)}),[d,c]),p=(0,o.useMemo)((()=>u?[...r||ui,Object.assign(Object.assign({},c),{current:s===ci.AllPages})]:r||ui),[u,r,s,c]),h=(0,o.useMemo)((()=>u?[...i||[],{id:ci.AllPages,content:o.createElement(To,null),visible:s===ci.AllPages}]:i),[u,i,s]);return Object.assign(Object.assign({},e),{onClosePanel:d,allPagesIsAvailable:u,menuItems:p,panelItems:h,size:t,onItemClick:f})},fi=o.forwardRef(((e,t)=>{const{size:n,compact:r}=ir(),i=di(Object.assign({size:n,compact:r},e));return o.createElement(tr,{value:i},o.createElement(li,{ref:t}))}));fi.displayName="PageLayoutAside";const pi=o.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:i}=e,a=d(e,["compact","className","topAlert"]);return o.createElement(Tr,{compact:n,className:r,topAlert:i},o.createElement(fi,Object.assign({ref:t},a)),o.createElement(Tr.Content,{renderContent:a.renderContent}))}));var hi;function mi(){return mi=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},mi.apply(this,arguments)}pi.displayName="AsideHeader";const gi=function(e){return o.createElement("svg",mi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),hi||(hi=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"})))},vi=(0,fe.cn)("kv-navigation");function yi(e){var t;let{isCompact:n,popupAnchor:r,user:i,children:a}=e;const[s,l]=o.useState(!1),c=i?null!==(t=i.icon)&&void 0!==t?t:Gn:gi;return(0,ie.jsx)(Sr,{compact:n,item:{id:"user-popup",title:null!==i&&void 0!==i&&i.login?i.login:me("navigation-item.account"),current:s,icon:c,onItemClick:()=>l((e=>!e))},enableTooltip:!s,popupAnchor:r,popupVisible:s,onClosePopup:()=>l(!1),renderPopupContent:()=>(0,ie.jsx)("div",{className:vi("ydb-user-wrapper"),children:a})})}var bi;function wi(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)(pi,{logo:{text:"YDB",icon:kt,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:i,onChangeCompact:a,className:vi(),renderContent:()=>e.content,renderFooter:t=>{let{compact:i,asideRef:a}=t;return(0,ie.jsxs)(o.Fragment,{children:[(0,ie.jsx)(Sr,{compact:i,item:{id:"documentation",title:me("navigation-item.documentation"),icon:Kn.Z,onItemClick:()=>{window.open("https://ydb.tech/docs","_blank","noreferrer")}}}),(0,ie.jsx)(Sr,{item:{id:"user-settings",title:me("navigation-item.settings"),icon:Yn.Z,current:n===bi.UserSettings,onItemClick:()=>{r(n===bi.UserSettings?void 0:bi.UserSettings)}},compact:i}),(0,ie.jsx)(yi,{isCompact:i,popupAnchor:a,user:e.user,children:e.ydbInternalUser})]})},panelItems:[{id:"user-settings",visible:n===bi.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}!function(e){e.UserSettings="UserSettings"}(bi||(bi={}));const _i=(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",wi).register("ErrorBoundary",s.TI);function xi(e){let{store:t,history:n,componentsRegistry:r=_i,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)(Vn.QueryParamProvider,{adapter:Wn,children:(0,ie.jsx)(Ei,{children:(0,ie.jsx)(Zn.zt,{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)(Hn.f,{theme:n,children:t})}const Si=(0,a.$j)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function(e){let{store:t,history:n,singleClusterMode:r,children:o,userSettings:a=ct({singleClusterMode:r})}=e;return(0,ie.jsxs)(xi,{store:t,history:n,children:[(0,ie.jsx)(i.ql,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,ie.jsx)($n,{children:(0,ie.jsx)(ye,{userSettings:a,children:(0,ie.jsxs)(s.SV,{children:[(0,ie.jsx)(zn,{singleClusterMode:r,children:o}),(0,ie.jsx)("div",{id:"fullscreen-root"})]})})}),(0,ie.jsx)(Ae,{})]})}));function ki(e){let{monitoring:t,dbName:n,dbType:r,clusterName:o}=e;try{const e=Oi(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 Ci(e,t){try{const n=Oi(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 Oi(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ni=n(99175),Ti=n(11383),Ii=n(25791),Pi=n(12775),Di=n(61979);const Ri=(0,fe.cn)("extended-cluster"),Ai=e=>{const t=(0,Ii.q)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Ri("balancer"),children:[t,(0,ie.jsx)(Ni.m,{text:t,size:"s",className:Ri("clipboard-button")})]})}},ji=(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=[Ai(n)]),o},Mi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{getVersionToColorMap:()=>(0,Ti.n$)((0,Ti.kn)(e))}},Li=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Ii.M2)(n);if(e)return"string"===typeof e?(0,Pi.sA)(e,n):null!==(t=(0,Pi.pY)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&o&&(i.getMonitoringLink=(n,r)=>n&&r?o({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),i};function zi(e){let{component:t,getMonitoringLink:n,getMonitoringClusterLink:r}=e;const{monitoring:o,balancer:i,versions:a,cluster:s,useClusterBalancerAsBackend:l,additionalNodesProps:c}=(0,Di.r)();return(0,ie.jsx)("div",{className:Ri(),children:(0,ie.jsx)(t,{additionalClusterProps:ji(null===s||void 0===s?void 0:s.Name,o,i,r),additionalVersionsProps:Mi(a),additionalTenantsProps:Li(null===s||void 0===s?void 0:s.Name,o,i,l,n),additionalNodesProps:c})})}function Fi(e){let{component:t}=e;const{balancer:n}=(0,Yt.kW)(),{additionalNodesProps:r}=(0,Di.f)({balancer:n});return(0,ie.jsx)(t,{additionalNodesProps:r})}function Bi(e){let{component:t,getMonitoringLink:n}=e;const{balancer:r,monitoring:o}=(0,Yt.kW)(),{additionalNodesProps:i}=(0,Di.f)({balancer:r}),a={getMonitoringLink:(e,t)=>o&&e&&t&&n?n({monitoring:o,dbName:e,dbType:t}):null};return(0,ie.jsx)(t,{additionalTenantProps:a,additionalNodesProps:i})}function Ui(e){let{store:t,history:n,getMonitoringLink:r=ki,getMonitoringClusterLink:o=Ci,userSettings:i,children:a}=e;return(0,ie.jsxs)(Si,{store:t,history:n,userSettings:i,children:[(0,ie.jsx)(xn,{children:e=>{let{component:t}=e;return(0,ie.jsx)(zi,{component:t,getMonitoringLink:r,getMonitoringClusterLink:o})}}),(0,ie.jsx)(Sn,{children:e=>{let{component:t}=e;return(0,ie.jsx)(Fi,{component:t})}}),(0,ie.jsx)(En,{children:e=>{let{component:t}=e;return(0,ie.jsx)(Bi,{component:t,getMonitoringLink:r})}}),a]})}var qi=n(78276),$i=n(83018),Zi=n(9951),Hi=n(32341),Vi=n(72484),Wi=n(81167)},81167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{e&&e instanceof Function&&n.e(1072).then(n.bind(n,21072)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))}},46878:(e,t,n)=>{"use strict";n.d(t,{By:()=>y,Fz:()=>g,Uu:()=>b,ZP:()=>d,ax:()=>h,ds:()=>v,eB:()=>w,fK:()=>_,mB:()=>f,vF:()=>m});var r=n(55102),o=n.n(r),i=n(13888),a=n(88726),s=n.n(a),l=n(99495),c=n(78276);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",tabletsFilters:"/tabletsFilters",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=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 h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;const a="backend"in n&&Boolean(n.backend);c.y3&&!a&&c.dx&&(r={...n,backend:c.y3});const l="clusterName"in n&&Boolean(n.clusterName);c.qw&&!l&&c.dx&&(r={...r,clusterName:c.qw});const u=o()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,i.compile)(d)(t)}${u}`}const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(window.location.pathname,void 0,e)};function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam};function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(u.tablet,{id:e},{...t})}},83018:(e,t,n)=>{"use strict";n.d(t,{su:()=>dn,Iy:()=>fn,LC:()=>pn});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>fe,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>me,origin:()=>ge});var o=n(47575),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)},_=d("Date"),x=d("File"),E=d("Blob"),S=d("FileList"),k=d("URLSearchParams"),[C,O,N,T]=["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 D="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,R=e=>!h(e)&&e!==D;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=[],D.addEventListener("message",(e=>{let{source:t,data:o}=e;t===D&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),D.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(D.postMessage)),H="undefined"!==typeof queueMicrotask?queueMicrotask.bind(D):"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:C,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:_,isFile:x,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:k,isTypedArray:A,isFileList:S,forEach:I,merge:function e(){const{caseless:t}=R(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:D,isContextDefined:R,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,K={};["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=>{K[e]={value:e}})),Object.defineProperties(W,K),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 Y=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 Y("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 Y.from(o,Y.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,_e=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"]),xe=Symbol("internals");function Ee(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 ke(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 Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ee(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]&&_e[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=Ee(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=Ee(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!ke(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ee(e)){const o=V.findKey(n,e);!o||t&&!ke(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&&!ke(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[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ee(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}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ce.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),V.freezeMethods(Ce);const Oe=Ce;function Ne(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 Te(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Ie,Y,{__CANCEL__:!0});const Pe=Ie;function De(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Re=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=Re(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());De((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 Y("Request aborted",Y.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Y("Network Error",Y.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 Y(t,o.clarifyTimeoutError?Y.ETIMEDOUT:Y.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 Y("Unsupported protocol "+v+":",Y.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 Y?t:new Pe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Y(`timeout ${t} of ms exceeded`,Y.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,Ke=Ge&&"function"===typeof ReadableStream,Ye=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=Ke&&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=Ke&&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 Y(`Response type '${e}' is not supported`,Y.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 Ye(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,Ye)}}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()}),Ye),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)=>{De(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 Y("Network Error",Y.ERR_NETWORK,e,h),{cause:b.cause||b});throw Y.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 Y(`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 Y("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=Ne.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=Ne.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return Te(t)||(ct(e),t&&t.response&&(t.response.data=Ne.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 Y(r(o," has been removed"+(t?" in "+t:"")),Y.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 Y("options must be an object",Y.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 Y("option "+i+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+i,Y.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 _t=wt;const xt=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);xt.Axios=vt,xt.CanceledError=Pe,xt.CancelToken=bt,xt.isCancel=Te,xt.VERSION=dt,xt.toFormData=ne,xt.AxiosError=Y,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=qe,xt.AxiosHeaders=Oe,xt.formToJSON=e=>ye(V.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=lt.getAdapter,xt.HttpStatusCode=_t,xt.default=xt;const Et=xt,{Axios:St,AxiosError:kt,CanceledError:Ct,isCancel:Ot,CancelToken:Nt,VERSION:Tt,all:It,Cancel:Pt,isAxiosError:Dt,spread:Rt,toFormData:At,AxiosHeaders:jt,HttpStatusCode:Mt,formToJSON:Lt,getAdapter:zt,mergeConfig:Ft}=Et;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=Et.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(Et.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:Et.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=Et.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(25440);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 Kt(){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 Yt={retries:3,retryCondition:Gt,retryDelay:function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Math.max(0,Kt(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{...Yt,...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,Kt(e));return n+.2*n*Math.random()},Jt.isRetryableError=Vt;const Xt=Jt;var en=n(78276),tn=n(27810),nn=n(70340),rn=n(87717),on=n(9759);const an=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});var sn=n(9951);const ln=4*tn.NO,cn=10*tn.NO,un=10*tn.NO;class dn 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(e){let{database:t}=e;return this.get(this.getPath("/viewer/capabilities"),{database:t},{})}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,memory:!0},{concurrentId:r,requestConfig:{signal:o}})}getNodes(e){let{type:t="any",tablets:n=!1,database:r,tenant:o,fieldsRequired:i,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,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,timeout:2e4,...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}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:n,filter:`(TabletId=${t})`},{concurrentId:r,requestConfig:{signal:o}})}getTabletHistory(e){let{id:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:n,filter:`(TabletId=${t})`},{concurrentId:r,requestConfig:{signal:o}})}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);return this.post(this.getPath("/viewer/json/query"),{...e,base64:o},{schema:"multi",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})}planToSvg(e){let{database:t,plan:n}=e,{signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.post(this.getPath("/viewer/plan2svg"),n,{database:t},{requestConfig:{signal:r,responseType:"text",headers:{Accept:"image/svg+xml"}}})}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:cn,"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:un},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.")}getOperationList(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}getClusterBaseInfo(e){throw new Error("Method is not implemented.")}}class fn extends dn{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 pn(){let{webVersion:e=!1,withCredentials:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={withCredentials:t};return e?new fn({config:n}):new dn({config:n})}},9759:(e,t,n)=>{"use strict";n.d(t,{i:()=>a,N:()=>s});var r=n(75475);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{}}},9951:(e,t,n)=>{"use strict";n.d(t,{r:()=>l,t:()=>s});var r=n(53096),o=n(27810),i=n(83751),a=n(73689);const s={[o.bw]:"system",[o.Px]:void 0,[o.yT]:!1,[o.N1]:!0,[o.DG]:[],[o.pf]:r.m2.query,[o.w7]:i.Jf.execute,[o.Ac]:!0,[o.ZY]:[],[o.Qy]:!0,[o._X]:!1,[o.Mg]:!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)}}},29226:(e,t,n)=>{"use strict";n.d(t,{y3:()=>O,EZ:()=>N,qw:()=>T,xC:()=>z,Vq:()=>M,dx:()=>A});var r=n(8064),o=n(63041),i=n(28733),a=n(83018);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(18671),c=n(78759),u=n(32341),d=n(32678),f=n(51244),p=n.n(f),h=n(15724),m=n.n(h),g=n(76564),v=n.n(g),y=n(88726),b=n.n(y),w=n(29622),_=n(36969),x=n(77936),E=n(54060),S=n(51992);const k={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 C(e,t){return v()({},e,t.query)}let O,N,T,I="";function P(e,t,n){const r=(0,E.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,_.getMatchingDeclaredPath)(k,e),a=i&&k[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(k.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 D(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,x.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function R(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zl)(k,C,e,t,P);return{locationMiddleware:n,reducersWithLocation:D(k,C,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/sendQuery/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:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.lX)({basename:N}),u=R(e,r,{singleClusterMode:t},[c.h.middleware]);return(0,i.C1)(u,r),window.api=n,{history:r,store:u}}},78276:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>r.EZ,QW:()=>o.Q,Vq:()=>r.Vq,dx:()=>r.dx,qw:()=>r.qw,xC:()=>r.xC,y3:()=>r.y3});var r=n(29226),o=n(18671)},78759:(e,t,n)=>{"use strict";n.d(t,{h:()=>w});var r=n(64485),o=n(84419),i=n(8064),a=n(34706),s=n(95877),l=n(67386);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:_,buildMutationHook:x,usePrefetch:E}=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 _=h(u?r.CN:n,f,b.endpointDefinitions[e],e),x=m({refetchOnReconnect:s,refetchOnFocus:l,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,a.useRef)(!1),S=(0,a.useRef)();let{queryCacheKey:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=y.current.isRequestSubscribed(k,C));const N=!O&&E.current;return w((()=>{E.current=O})),w((()=>{N&&(S.current=void 0)}),[N]),w((()=>{const e=S.current;if(_===r.CN)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===_)x!==t&&e.updateSubscriptionOptions(x);else{e?.unsubscribe();const t=v(g(_,{subscriptionOptions:x,forceRefetch:c}));S.current=t}}),[v,g,c,_,x,N]),(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()}})),[])},x=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])},E=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],_,{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),x=c(),E=m(x.getState(),p.current);return g((()=>{p.current=E}),[E]),w};return{useQueryState:E,useQuerySubscription:u,useLazyQuerySubscription:x,useLazyQuery(e){const[t,n]=x(e),r=E(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=E(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,_=(0,a.useCallback)((()=>{n((()=>{p&&h(void 0),i&&f(t.internalActions.removeMutationResult({requestId:g,fixedCacheKey:i}))}))}),[f,i,p,g]),{endpointName:x,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N}=b;(0,a.useDebugValue)({endpointName:x,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N});const T=(0,a.useMemo)((()=>({...b,originalArgs:w,reset:_})),[b,w,_]);return(0,a.useMemo)((()=>[m,T]),[m,T])}},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,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:E}),c(y,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=_(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=x(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()},65e3:(e,t,n)=>{"use strict";n.d(t,{VH:()=>u,ZP:()=>s,dy:()=>d,nc:()=>f});var r=n(8064),o=n(87717),i=n(78759);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"})},32677:(e,t,n)=>{"use strict";n.d(t,{AE:()=>l,Gi:()=>o,Yv:()=>s,az:()=>a});var r=n(67386);const o=n(78759).h.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.getClusterCapabilities(e)}}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),i=(0,r.P1)((e=>e),(e=>o.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.P1)((e=>e),((e,t)=>i(t)),((e,t)=>t(e))),s=(0,r.P1)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,o;return null===(r=a(e,n).data)||void 0===r||null===(o=r.Capabilities)||void 0===o?void 0:o[t]}));async function l(e,t,n){let{dispatch:r,getState:i}=n;const a=o.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await r(a),s(i(),e)||0}},39202:(e,t,n)=>{"use strict";n.d(t,{I8:()=>b,Pq:()=>h,Vh:()=>s,X_:()=>d,Zl:()=>g,bq:()=>y,j0:()=>u,rU:()=>l,tS:()=>p,th:()=>m,uY:()=>f,vX:()=>v});var r=n(99495),o=n(55842),i=n(32677);function a(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}function s(){const e=a();i.Gi.useGetClusterCapabilitiesQuery({database:e})}function l(){const e=a(),{data:t,error:n}=(0,o.ix)((t=>(0,i.az)(t,e)));return Boolean(t||n)}const c=e=>{const t=a();return(0,o.ix)((n=>(0,i.Yv)(n,e,t)||0))},u=()=>c("/scheme/directory")>0,d=()=>c("/pdisk/info")>0,f=()=>c("/viewer/query")>2,p=()=>c("/storage/groups")>2,h=()=>c("/storage/groups")>4,m=()=>c("/viewer/nodes")>6,g=()=>c("/viewer/nodes")>11,v=()=>c("/viewer/nodes")>12,y=()=>c("/viewer/feature_flags")>1,b=()=>c("/viewer/cluster")>4},10730:(e,t,n)=>{"use strict";n.d(t,{UM:()=>E,ZP:()=>x,DS:()=>N,le:()=>O,LQ:()=>_,kW:()=>S});var r=n(8064),o=n(67386),i=n(64485),a=n(99495),s=n(4128),l=n(9759),c=n(39242),u=n(27810),d=n(83751),f=n(78759),p=n(4969);const h=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 m(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&&h(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 g=e=>{var t,n;return m(null===(t=(0,d.Ae)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const v=localStorage.getItem(u.S7);let y;y=(0,s.V2)(v)?v:s.xu.overview;const b={defaultClusterTab:y},w=(0,r.oM)({name:"cluster",initialState:b,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function _(e){return t=>{(0,s.V2)(e)&&(localStorage.setItem(u.S7,e),t(w.actions.setDefaultClusterTab(e)))}}const x=w.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}),o=t.Domain;if(!o)return{data:{clusterData:t}};if((0,c.j)(t))return{data:{clusterData:t,groupsStats:(r=t,m(r.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`)(o),n=await window.api.sendQuery({query:e,database:o,action:"execute-scan"});return(0,d.gW)(n)?{data:{clusterData:t}}:{data:{clusterData:t,groupsStats:g(n)}}}catch{return{data:{clusterData:t}}}}catch(o){return{error:o}}var r},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 S(){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 k=(0,o.P1)((e=>e),(e=>E.endpoints.getClusterInfo.select(e))),C=(0,o.P1)((e=>e),((e,t)=>k(t)),((e,t)=>t(e).data)),O=(0,o.P1)(((e,t)=>t),((e,t)=>C(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})),N=(0,o.P1)(((e,t)=>C(e,t)),(e=>(0,p.s)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{const n=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:n}})):r:[]}))},33921:(e,t,n)=>{"use strict";n.d(t,{g_:()=>c,W1:()=>u,ZP:()=>l});var r=n(8064),o=n(78759),i=n(11383);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"})},55159:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,Im:()=>f,MU:()=>m});var r=n(42805),o=n(8064),i=n(83751),a=n(78759);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="/*UI-QUERY-EXCLUDE*/",d=(0,o.oM)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:f}=d.actions,p=d.reducer,h=(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}%' OR UserSID ILIKE '%${t.text}%')`),i.join(" AND ")}(e,t);return`\nSELECT ${u}\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"} AND QueryText NOT LIKE '%${u}%'\nORDER BY CPUTimeUs DESC\n`},m=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({query:h(n,a),database:n,action:"execute-scan"},{signal:o,withRetries:!0});if((0,i.gW)(e))throw e;return{data:(0,i.Ae)(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{const e=null!==r&&void 0!==r&&r.text?`Query ILIKE '%${r.text}%' OR UserSID ILIKE '%${r.text}%'`:"",t=`SELECT ${u}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${e||"true"} AND Query NOT LIKE '%${u}%'\n ORDER BY\n SessionStartAt\n LIMIT 100`,a=await window.api.sendQuery({query:t,database:n,action:"execute-scan"},{signal:o,withRetries:!0});if((0,i.gW)(a))throw a;return{data:(0,i.Ae)(a)}}catch(a){return{error:a}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},50015:(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}}},85709:(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}},51992:(e,t,n)=>{"use strict";n.d(t,{E3:()=>i,U_:()=>l,Vc:()=>c,ZP:()=>s});var r=n(8064),o=n(78759);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"})},18671:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E,Q:()=>x});var r=n(84419),o=n(78759),i=n(65e3),a=n(10730),s=n(33921),l=n(55159),c=n(50015),u=n(85709),d=n(51992),f=n(72736),p=n(23367),h=n(6130),m=n(19580),g=n(32341),v=n(43647);const y=function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]};var b=n(27084),w=n(14739),_=n(32678);const x={[o.h.reducerPath]:o.h.reducer,singleClusterMode:y,cluster:a.ZP,tenant:b.ZP,tooltip:_.ZP,schema:m.ZP,tenants:w.ZP,partitions:f.ZP,query:p.ZP,heatmap:d.ZP,settings:g.ZP,executeTopQueries:l.ZP,shardsWorkload:v.ZP,authentication:i.ZP,header:u.Z,queryActions:h.ZP,fullscreen:c.ZP,clusters:s.ZP},E=(0,r.UY)({...x})},4969:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,s:()=>s});var r=n(67386),o=n(96183);const i=n(78759).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)))},72736:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,TB:()=>f,M$:()=>u});var r=n(8064),o=n(78759),i=n(10142),a=n(83627),s=n(73689);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:{},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"})},45514:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,n:()=>s});var r=n(90035),o=n(83751);const i={v2:"0.2"},a=Object.values(i);function s(e){const t=(0,o.Ae)(e),{plan:n}=t;if(!n)return t;const{tables:i,meta:s,Plan:l,SimplifiedPlan:c}=(0,o.y5)(n);if(-1===a.indexOf(s.version))return{...t,preparedPlan:{pristine:n,version:s.version}};let u,d=[],f=[];if(l){const e=(0,r.G)(l);d=e.links,f=e.nodes}return c&&(u=(0,r.f)([c])),{...t,preparedPlan:{links:d,nodes:f,tables:i,version:s.version,pristine:n},simplifiedPlan:{plan:u,pristine:c}}}},23367:(e,t,n)=>{"use strict";n.d(t,{B8:()=>g,ZP:()=>m,AJ:()=>x,NU:()=>_,c4:()=>P,hO:()=>b,qV:()=>O,Wz:()=>C,vS:()=>k,tF:()=>T,m_:()=>N,jm:()=>I,u$:()=>S,Rp:()=>v,K0:()=>E});var r=n(8064),o=n(9951),i=n(83751);const a={[i.Rm.off]:0,[i.Rm.toplevel]:4,[i.Rm.basic]:9,[i.Rm.detailed]:13,[i.Rm.diagnostic]:14,[i.Rm.trace]:15};var s=n(27810),l=n(73689),c=n(78759),u=n(45514);const d=o.r.readUserSettingsValue(s.if,[]),f=d.length-20,p={input:"",history:{queries:d.slice(f<0?0:f).map((function(e){return"string"===typeof e?{queryText:e}:e})),currentIndex:d.length>20?19:d.length-1,filter:""}},h=(0,r.oM)({name:"query",initialState:p,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryTraceReady:e=>{e.result&&(e.result.isTraceReady=!0)},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,i=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);o.r.setUserSettingsValue(s.if,i);const a=i.length-1;e.history={queries:i,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const i=e.history.queries.findIndex((e=>e.queryId===n));if(-1===i)return;const a=[...e.history.queries],{durationUs:l,endTime:c}=r;a.splice(i,1,{...e.history.queries[i],durationUs:l,endTime:c}),o.r.setUserSettingsValue(s.if,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectResult:e=>e.result,selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),m=h.reducer,{changeUserInput:g,setQueryTraceReady:v,setQueryResult:y,saveQueryToHistory:b,updateQueryInHistory:w,goToPreviousQuery:_,goToNextQuery:x,setTenantPath:E,setQueryHistoryFilter:S}=h.actions,{selectQueriesHistoryFilter:k,selectQueriesHistoryCurrentIndex:C,selectQueriesHistory:O,selectTenantPath:N,selectResult:T,selectUserInput:I}=h.selectors,P=c.h.injectEndpoints({endpoints:e=>({useSendQuery:e.mutation({queryFn:async(e,t)=>{let{actionType:n="execute",query:r,database:o,querySettings:s={},enableTracingLevel:c,queryId:d}=e,{signal:f,dispatch:p}=t;p(y({type:n,queryId:d,isLoading:!0}));const{action:h,syntax:m}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"execute",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"query",n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}(n,null===s||void 0===s?void 0:s.queryMode);try{var g;const e=Date.now(),t=await window.api.sendQuery({query:r,database:o,action:h,syntax:m,stats:s.statisticsMode,tracingLevel:s.tracingLevel&&c?a[s.tracingLevel]:void 0,limit_rows:(0,l.kE)(s.limitRows)?Number(s.limitRows):void 0,transaction_mode:"implicit"===s.transactionMode?void 0:s.transactionMode,timeout:(0,l.kE)(s.timeout)?1e3*Number(s.timeout):void 0,query_id:d},{signal:f});if((0,i.gW)(t))return p(y({type:n,error:t,isLoading:!1,queryId:d})),{error:t};const v=(0,u.n)(t);if(v.traceId=null===t||void 0===t||null===(g=t._meta)||void 0===g?void 0:g.traceId,"execute"===n){const t={};if(v.stats){const{DurationUs:e,Executions:[{FinishTimeMs:n}]=[{}]}=v.stats;t.durationUs=e,t.endTime=n}else{const n=Date.now();t.durationUs=1e3*(n-e),t.endTime=n}p(w({stats:t,queryId:d}))}return p(y({type:n,data:v,isLoading:!1,queryId:d})),{data:null}}catch(v){return p(y({type:n,error:v,isLoading:!1,queryId:d})),{error:v}}}})}),overrideExisting:"throw"})},6130:(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(8064),o=n(27810),i=n(32341);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.query.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))}}},19580:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,bX:()=>u,hz:()=>p,m3:()=>d,m7:()=>c});var r=n(34706),o=n(8064),i=n(78759);const a={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},s=(0,o.oM)({name:"schema",initialState:a,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),l=s.reducer,{setShowPreview:c}=s.actions,{selectShowPreview:u}=s.selectors,d=i.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}function p(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}}},32341:(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(8064),o=n(9951),i=n(73689);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},43647:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>h,K2:()=>f,ZP:()=>p});var r=n(42805),o=n(8064),i=n(83751),a=n(78759),s=n(70337);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({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.Ae)(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"})},70337:(e,t,n)=>{"use strict";let r;n.d(t,{F:()=>r}),function(e){e.Immediate="immediate",e.History="history"}(r||(r={}))},53096:(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",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},27084:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,$v:()=>h,jk:()=>p,Tu:()=>m,Cs:()=>f,$1:()=>v});var r=n(8064),o=n(9951),i=n(27810),a=n(78759),s=n(75475),l=n(53096);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"})},93145:(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}},14739:(e,t,n)=>{"use strict";n.d(t,{Xv:()=>c,ZP:()=>l,gI:()=>s});var r=n(8064),o=n(78759),i=n(46987);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"})},46987:(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(10142),n(38980);var a=n(73689),s=n(93145);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,_=(0,a.kE)(f.data_size_soft_quota)?Number(f.data_size_soft_quota):void 0,x=l(c);let E,S;E=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)}})):_&&(S=[{name:i.SSD,used:y,limit:_,usage:d(y,_)}]);return{memory:g,blobStorage:v,tabletStorage:y,memoryLimit:b,blobStorageLimit:w,tabletStorageLimit:_,cpu:m,poolsStats:x,memoryStats:[{name:"Process",used:g,limit:b,usage:d(g,b)}],blobStorageStats:E,tabletStorageStats:S}},u=(e,t)=>e.map((n=>{const r=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,o=e.find((e=>e.Id===n.ResourceId)),i=null===o||void 0===o?void 0:o.Name,s=null===o||void 0===o?void 0:o.NodeIds,l=(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:u,memory:d,blobStorage:f}=c(n),{nodesCount:p,groupsCount:h}=(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:r,sharedTenantName:i,sharedNodeIds:s,controlPlaneName:l,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));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},32678:(e,t,n)=>{"use strict";n.d(t,{MB:()=>a,ZP:()=>u,hJ:()=>c,i8:()=>l});var r=n(74647),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}}},39242:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{j:()=>r})},77468:(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={}))},9038:(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={}))},75696:(e,t,n)=>{"use strict";n.d(t,{d:()=>l,t:()=>u});var r=n(27810),o=n(38980),i=n(73689),a=n(20339);const s={b:{value:1,label:(0,a.Z)("b")},kb:{value:r.h0,label:(0,a.Z)("kb")},mb:{value:r.nQ,label:(0,a.Z)("mb")},gb:{value:r.GS,label:(0,a.Z)("gb")},tb:{value:r.Bp,label:(0,a.Z)("tb")}},l=(e,t)=>{const n=10**t,r=s.tb.value*n,o=s.gb.value*n,i=s.mb.value*n;let a="b";return e>=s.kb.value*n&&(a="kb"),e>=i&&(a="mb"),e>=o&&(a="gb"),e>=r&&(a="tb"),a},c=function(e,t){return e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ud)+s[t].label},u=e=>{let{value:t,size:n,withSpeedLabel:r=!1,withSizeLabel:u=!0,significantDigits:d=0,delimiter:f,...p}=e;if(!(0,i.kE)(t))return"";const h=Number(t),m=null!==n&&void 0!==n?n:l(h,d),g=(e=>{let{value:t,size:n="mb",precision:r=0}=e;const i=(0,o.W0)(Number(t)/s[n].value,r);return(0,o.uf)(i)})({value:h,size:m,...p});return r?((e,t)=>c(e,t)+(0,a.Z)("perSecond"))(g,m):u?c(g,m,f):g}},20339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(37711);const o=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),i=(0,r.wZ)("ydb-bytes-parsers",{en:o})},10142:(e,t,n)=>{"use strict";n.d(t,{c4:()=>i,td:()=>r.t,dT:()=>r.d});var r=n(75696),o=n(27810);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})},11383:(e,t,n)=>{"use strict";n.d(t,{B_:()=>u,kn:()=>l,n$:()=>c});var r=n(36205),o=n.n(r),i=n(58274),a=n(80819);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.Dp);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}),[])}},99294:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(95936).withNaming)({e:"__",m:"_"})},27810:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>P,Ah:()=>S,Bp:()=>u,DG:()=>I,DO:()=>k,E6:()=>Z,FU:()=>C,GS:()=>c,HN:()=>v,IG:()=>te,Ik:()=>ie,KS:()=>R,KU:()=>j,LE:()=>$,ME:()=>a,Mg:()=>X,Mn:()=>B,N1:()=>A,NO:()=>d,Px:()=>N,Qy:()=>Q,RE:()=>V,RI:()=>oe,RQ:()=>p,Rn:()=>W,S7:()=>q,XN:()=>M,XX:()=>re,ZY:()=>K,Zi:()=>H,Zy:()=>ee,_X:()=>J,bw:()=>O,eG:()=>U,fl:()=>x,h0:()=>s,if:()=>D,ii:()=>h,jX:()=>E,nQ:()=>l,nU:()=>m,pf:()=>Y,qV:()=>b,sO:()=>F,sU:()=>f,sl:()=>_,tV:()=>y,t_:()=>i,w7:()=>G,wr:()=>L,x5:()=>w,y6:()=>ne,yD:()=>g,yT:()=>T,z4:()=>z});var r=n(71624),o=n(9038);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"],_={green:5,yellow:4,orange:3,red:2,blue:1,grey:1},x=5,E="\u2014",S="Developer UI",k="Cluster",C="Database",O="theme",N="language",T="invertedDisks",I="saved_queries",P="asideHeaderCompact",D="queries_history",R="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",K="partitionsHiddenColumns",Y="saved_tenant_initial_tab",Q="useBackendParamsForTables",J="enableNetworkTable",X="useShowPlanToSvg",ee="showDomainDatabase",te="useClusterBalancerAsBacked",ne="enableAutocomplete",re="autocompleteOnEnter",oe="isHotKeysHelpHidden",ie="enable_tracing_for_all_requests"},38980:(e,t,n)=>{"use strict";n.d(t,{fG:()=>A,OW:()=>R,t$:()=>v,td:()=>g,LO:()=>I,o0:()=>P,gC:()=>w,uf:()=>k,cN:()=>x,T3:()=>C,xh:()=>O,QO:()=>_,q3:()=>E,JD:()=>S,i$:()=>D,fm:()=>j,W0:()=>N,a2:()=>y});var r=n(42805),o=n(75696),i=n(27810),a=n(25089),s=n(73689);function l(e,t,n,r,o,i){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=t(Number(n),0),c=!0,u=0;(0,s.kE)(r)&&(l=t(Number(r),0),c=a,u=1);return[e({value:n,withSizeLabel:c,size:o||l,precision:u,delimiter:i}),e({value:r,size:o||l,delimiter:i})]}var c=n(20339);const u={thousand:{value:1e3,label:(0,c.Z)("label_thousand")},million:{value:1e6,label:(0,c.Z)("label_million")},billion:{value:1e9,label:(0,c.Z)("label_billion")},trillion:{value:1e12,label:(0,c.Z)("label_trillion")}},d=(e,t)=>{const n=10**t;let r="thousand";return e>u.thousand.value*n&&(r="thousand"),e>=u.million.value*n&&(r="million"),e>=u.billion.value*n&&(r="billion"),e>=u.trillion.value*n&&(r="trillion"),r},f=e=>{let{value:t,size:n,withSizeLabel:r=!0,significantDigits:o=0,delimiter:i,...a}=e;if(!(0,s.kE)(t))return"";const l=Number(t),c=null!==n&&void 0!==n?n:d(l,o),f=(e=>{let{value:t,size:n="thousand",precision:r=0}=e;const o=N(Number(t)/u[n].value,r);return k(o)})({value:l,size:c,...a});return r?function(e,t){return e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.ud)+u[t].label}(f,c,i):f};var p=n(37711);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"]}'),m=JSON.parse('{"format-cpu.cores":["\u044f\u0434\u0440\u043e","\u044f\u0434\u0440\u0430","\u044f\u0434\u0435\u0440","\u044f\u0434\u0435\u0440"]}'),g=((0,p.wZ)("ydb-format-cpu",{ru:m,en:h}),e=>(0,s.kE)(e)?(0,a.X)(e).format("0 b"):""),v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"",b=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(" ")},w=e=>e&&b(e/1e3);function _(e,t,n,r,i){return l(o.t,o.d,e,t,n,r,i)}function x(e,t,n,r,o){return l(f,d,e,t,n,r,o)}const E=(e,t)=>_(e,t,"gb"),S=(e,t)=>_(e,t,"tb"),k=e=>(0,s.kE)(e)?(0,a.X)(e).format("0,0.[00000]"):"",C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!(0,s.kE)(e))return"";const n=Number(e).toFixed(t);return(0,a.X)(n).format("0.[00]%")},O=e=>{const t=(e/i.RQ).toFixed(2);return`${k(t)} hours`},N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},T=e=>{const t=Number(e)/1e6;return N(t,3)},I=e=>{if(void 0!==e)return(0,a.X)(T(e)).format("0.[000]")},P=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},D=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},R=e=>{const t=(new Date).getTime()-Number(e);return t<=0?0:t/1e3},A=e=>b(R(Number(e)));function j(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},70340:(e,t,n)=>{"use strict";n.d(t,{i1:()=>i,ok:()=>s,wq:()=>a,wz:()=>c,yf:()=>l});var r=n(78276),o=n(73689);function i(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.y3)+"/internal"}const a=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}`},s=e=>{let{nodeId:t,pDiskId:n,host:r}=e;const i="/actors/pdisks/pdisk"+(0,o.bJ)(n);return a(t,r)+i},l=e=>{let{nodeId:t,pDiskId:n,vDiskSlotId:r,host:i}=e;const s="/actors/vdisks/vdisk"+(0,o.bJ)(n)+"_"+(0,o.bJ)(r);return a(t,i)+s};function c(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}`}},55842:(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(78137),o=n(98712),i=n(82202),a=n(8214),s=n(34706),l=n(20560);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(55783),d=n(46878);const f=()=>{const e=(0,u.TH)();return(0,d.mB)(e)};var p=n(27810);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)}),[])}},83658:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(34706);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))}),[])]}},8214:(e,t,n)=>{"use strict";n.d(t,{d:()=>l});var r=n(34706),o=n(39202),i=n(27810),a=n(83751),s=n(82202);const l=()=>{const e=(0,o.uY)(),[t,n]=(0,s.y)(i.Zi),l=a.nh.parse(t),[c]=(0,s.y)(i.Mg),u=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,statisticsMode:c?a.$E.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.hl.tracingLevel},u]}},82202:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(34706),o=n(32341),i=n(98712),a=n(78137);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])]}},98712:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=n(95877).I0},78137:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=n(95877).v9},37711:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>r,Fp:()=>l,ag:()=>u,wZ:()=>d});var r,o=n(21975),i=n(10859),a=n(9951),s=n(27810);!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})},25665:(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,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},99669:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r=n(34706),o=n(81550),i=n(75147),a=n(38914),s=n(10161);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"})})}},96183:(e,t,n)=>{"use strict";n.d(t,{Ns:()=>h,RW:()=>g,TA:()=>f,U8:()=>u,Uu:()=>c,Xs:()=>p,eV:()=>m,qU:()=>d});var r=n(75475),o=n(32341),i=n(77468),a=n(27810),s=n(38980),l=n(25665);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,n,r,o,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=(null===(e=a.Location)||void 0===e?void 0:e.Rack)||a.Rack,u=(null===(t=a.Location)||void 0===t?void 0:t.DataCenter)||a.DataCenter,d=null===a||void 0===a||null===(n=a.Tenants)||void 0===n?void 0:n[0],f=(0,s.fG)(a.StartTime),p=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))}(a),h=Number(null===(r=a.SharedCacheStats)||void 0===r?void 0:r.LimitBytes)||void 0,m=(0,l.D)(null===(o=a.SharedCacheStats)||void 0===o?void 0:o.UsedBytes)?Number(null===(i=a.SharedCacheStats)||void 0===i?void 0:i.UsedBytes):void 0;return{...a,Rack:c,DC:u,Uptime:f,LoadAveragePercents:p,TenantName:d,SharedCacheLimit:h,SharedCacheUsed:m}},m=e=>e===o.pu.PROBLEMS,g=e=>e===c.SmallUptime?a.RQ:void 0},25089:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(89630),o=n.n(r),i=(n(57730),n(37711)),a=n(73689);Object.values(i.Uo).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=a.ud)})),o().locale(i.ag.lang);const s=o()},25791:(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+$/,"")},12775:(e,t,n)=>{"use strict";n.d(t,{pY:()=>a,sA:()=>i});var r=n(25791);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}},90035:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,f:()=>s});const r=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function o(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,o]of Object.entries(e))r.has(t)||n.push({name:t,value:"string"===typeof o?o:JSON.stringify(o)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function i(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function a(e){const t=[],n=[];const r=e,a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:i(r),name:r["Node Type"]}};return t.push(a),function e(){let r=arguments.length>1?arguments[1]:void 0;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((a=>{var s;const l={name:String(a.PlanNodeId),data:{id:a.PlanNodeId,type:i(a),name:a["Node Type"],operators:null===(s=a.Operators)||void 0===s?void 0:s.map((e=>e.Name)),stats:o(a),tables:a.Tables}};t.push(l),n.push({from:r,to:l.name}),e(a.Plans,l.name)}))}(r.Plans,a.name),{nodes:t,links:n}}function s(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:o}=n.pop(),i=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=o||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":o,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:o,eSize:l,children:[]};if(s.push(f),i)for(let a=i.length-1;a>=0;a--)n.push({node:i[a],subNodes:f.children})}else if(i)for(let t=i.length-1;t>=0;t--)n.push({node:i[t],subNodes:s})}return t}},83751:(e,t,n)=>{"use strict";n.d(t,{hl:()=>k,Jf:()=>f,wZ:()=>p,U4:()=>h,$E:()=>l,Ie:()=>c,Rm:()=>u,Vj:()=>d,cy:()=>a,Nf:()=>s,T$:()=>m,gW:()=>b,Ae:()=>w,dt:()=>E,fV:()=>S,y5:()=>_,Xh:()=>x,nh:()=>P,J7:()=>I});var r=n(75475);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(87717);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=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}},g=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=((e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))))(t,n)),{columns:n,result:o,truncated:r}})),...n}},v=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),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)}function w(e){return y(e)?{}:v(e)?g(e):e}const _=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})):[],E=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,S=e=>{var t;const n=E(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.off},C=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),I=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:C,transactionMode:O,statisticsMode:N,tracingLevel:T}),P=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:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},87717:(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)}},83627:(e,t,n)=>{"use strict";n.d(t,{tt:()=>c,zm:()=>u,DA:()=>h,aR:()=>f,lE:()=>m,BO:()=>g});var r=n(27810),o=n(38980),i=n(37711);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),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(73689);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e&&(0,p.kE)(e)?(0,o.W0)(Number(e)/1e3,t):0}},73689:(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,ud:()=>d});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)}const d="\xa0"},80819:(e,t,n)=>{"use strict";n.d(t,{DM:()=>i,Dp:()=>a,ZP:()=>c,un:()=>o});var r=n(58274);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return n&n}),0),i=["#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#3cb371","#b22222"],a="#008000",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]:[]))}},58274:(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}},69855:(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},95936:(e,t,n)=>{"use strict";e.exports=n(69855)},15428:(e,t,n)=>{"use strict";n.d(t,{Ue:()=>E,ZP:()=>I,dd:()=>x,z2:()=>S,zt:()=>O});var r=n(34706),o=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=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},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,i;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return o(o({},e),((n={})[l]=o(o({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?o(o({},e),((r={})[l]=o(o({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=o({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return o(o({},e),((i={})[l]=o(o({},e[l]),p),i));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,o,i=new Promise((function(e,t){r=e,o=t}));g[n]={resolve:r,reject:o,promise:i}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,o=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:o}}return v[t].promise}var _=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function x(e,t){var n=(0,r.useContext)(l),o=(0,r.useContext)(c),i=null,a=e&&"string"!==typeof e;if(!(i=e?y(e):o))throw new Error("No modal id found in NiceModal.useModal.");var s=i;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return _(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),x=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:x,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,x,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=i(t,["defaultVisible","keepMounted","id"]),h=x(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,o({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},k=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return o({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,o({key:e.id,id:e.id},e.props))})))},C=function(e){var t=e.children,n=(0,r.useReducer)(m,s),o=n[0];return p=n[1],r.createElement(l.Provider,{value:o},t,r.createElement(k,null))},O=function(e){var t=e.children,n=e.dispatch,o=e.modals;return n&&o?(p=n,r.createElement(l.Provider,{value:o},t,r.createElement(k,null))):r.createElement(C,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const I={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=i(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,o({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:_,useModal:x,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},82652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},29152:(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"}},48909: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(82652),t),o(n(29152),t),o(n(71560),t)},71560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},44419: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(48909),a=o(n(71148)),s=n(99863),l=n(84990),c=n(55683),u=n(46668),d=n(39701),f=n(35858),p=n(74204),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(_({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,_=l.isoWeekNumber,x=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==_||void 0!==x||void 0!==E))throw new Error("Can't mix local week with ISO week");var k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?k.isoWeekday:E||7,weekNumber:null!==_&&void 0!==_?_:k.isoWeekNumber,weekYear:null!==x&&void 0!==x?x:k.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,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){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=_,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})}},39701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=t.FORMAT_DEFAULT=t.expandFormat=void 0;var r=n(48909),o=n(84990),i=n(55683);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)}},15103: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(44419),t),o(n(39701),t)},35858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromObject=t.getTimestampFromArray=void 0;var r=n(55683),o=n(46668);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},74204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=void 0;var r=n(44419),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)}},25954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateMath=t.parse=t.isLikeRelative=void 0;var r=n(15103),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},43970: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(25954),t)},71148: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(13398)),i=r(n(59524)),a=r(n(99621)),s=r(n(33766)),l=n(48909);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},60081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=void 0;var r=n(89945),o=n(6753),i=n(45206),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})}},6753: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(15103),s=n(84990),l=n(46668),c=n(26857),u=n(60081),d=n(45206),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,_=a;w<_.length;w++){var x=_[w];if(x.literal)p+=x.value;else{var E=f.get(x.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,o(o({useGrouping:!1},y),{minimumIntegerDigits:x.padTo})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).toString().padStart(x.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)}},99863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(60081);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var o=n(6753);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},45206: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[_=a[v]]&&null!==h[_])if(g){var y=(null!==(o=h[g])&&void 0!==o?o:0)*m,b=i[_][g],w=Math.floor(y/b);h[_]=(null!==(s=h[_])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=_}else g=_}g=null;for(v=0;v<t.orderedUnits.length;v++){var _;if(void 0!==h[_=t.orderedUnits[v]]&&null!==h[_])if(g){var x=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-x,h[_]=(null!==(d=h[_])&&void 0!==d?d:0)+x*i[g][_],g=_}else g=_}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}(E=e[f])&&(p+=E);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],_=w[0],x=w[1];0!==x&&(l[a]=(null!==(o=l[a])&&void 0!==o?o:0)+(_===a?x:x/i[a][_]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/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))}},42805:(e,t,n)=>{"use strict";t.x9=t.m3=t.KN=t.JY=t.J=t._u=t.CQ=void 0,n(84990).settings;var r=n(15103);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(43970);var i=n(81234);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(55683);Object.defineProperty(t,"m3",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(48909);var l=n(99863);Object.defineProperty(t,"x9",{enumerable:!0,get:function(){return l.duration}})},81234: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(16176),t)},16176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=t.dateTimeParse=t.isLikeRelative=void 0;var r=n(15103),o=n(84990);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()}},84990: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(72835),t)},81215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(3092).then(n.t.bind(n,43092,23))},am:function(){return n.e(3643).then(n.t.bind(n,93643,23))},"ar-dz":function(){return n.e(9974).then(n.t.bind(n,19974,23))},"ar-iq":function(){return n.e(4806).then(n.t.bind(n,94806,23))},"ar-kw":function(){return n.e(6943).then(n.t.bind(n,36943,23))},"ar-ly":function(){return n.e(4463).then(n.t.bind(n,4463,23))},"ar-ma":function(){return n.e(1455).then(n.t.bind(n,76395,23))},"ar-sa":function(){return n.e(4779).then(n.t.bind(n,44779,23))},"ar-tn":function(){return n.e(753).then(n.t.bind(n,80753,23))},ar:function(){return n.e(4563).then(n.t.bind(n,24563,23))},az:function(){return n.e(6332).then(n.t.bind(n,86332,23))},be:function(){return n.e(2100).then(n.t.bind(n,12100,23))},bg:function(){return n.e(2845).then(n.t.bind(n,32845,23))},bi:function(){return n.e(8169).then(n.t.bind(n,88169,23))},bm:function(){return n.e(5257).then(n.t.bind(n,85257,23))},"bn-bd":function(){return n.e(1074).then(n.t.bind(n,31074,23))},bn:function(){return n.e(8332).then(n.t.bind(n,88332,23))},bo:function(){return n.e(2216).then(n.t.bind(n,52216,23))},br:function(){return n.e(8726).then(n.t.bind(n,78726,23))},bs:function(){return n.e(9617).then(n.t.bind(n,89617,23))},ca:function(){return n.e(1971).then(n.t.bind(n,41971,23))},cs:function(){return n.e(7076).then(n.t.bind(n,47076,23))},cv:function(){return n.e(1035).then(n.t.bind(n,41035,23))},cy:function(){return n.e(9757).then(n.t.bind(n,69757,23))},da:function(){return n.e(7439).then(n.t.bind(n,67439,23))},"de-at":function(){return n.e(9711).then(n.t.bind(n,99711,23))},"de-ch":function(){return n.e(3235).then(n.t.bind(n,3235,23))},de:function(){return n.e(3830).then(n.t.bind(n,43830,23))},dv:function(){return n.e(3997).then(n.t.bind(n,53997,23))},el:function(){return n.e(9937).then(n.t.bind(n,89937,23))},"en-au":function(){return n.e(2972).then(n.t.bind(n,32972,23))},"en-ca":function(){return n.e(2804).then(n.t.bind(n,42804,23))},"en-gb":function(){return n.e(2070).then(n.t.bind(n,82070,23))},"en-ie":function(){return n.e(1388).then(n.t.bind(n,21388,23))},"en-il":function(){return n.e(1923).then(n.t.bind(n,61923,23))},"en-in":function(){return n.e(7132).then(n.t.bind(n,17132,23))},"en-nz":function(){return n.e(5821).then(n.t.bind(n,75821,23))},"en-sg":function(){return n.e(5957).then(n.t.bind(n,45957,23))},"en-tt":function(){return n.e(3145).then(n.t.bind(n,43145,23))},en:function(){return n.e(9765).then(n.t.bind(n,89765,23))},eo:function(){return n.e(6170).then(n.t.bind(n,46170,23))},"es-do":function(){return n.e(592).then(n.t.bind(n,80592,23))},"es-mx":function(){return n.e(2039).then(n.t.bind(n,92039,23))},"es-pr":function(){return n.e(6070).then(n.t.bind(n,66070,23))},"es-us":function(){return n.e(7446).then(n.t.bind(n,47446,23))},es:function(){return n.e(3520).then(n.t.bind(n,23520,23))},et:function(){return n.e(579).then(n.t.bind(n,579,23))},eu:function(){return n.e(6845).then(n.t.bind(n,26845,23))},fa:function(){return n.e(323).then(n.t.bind(n,40323,23))},fi:function(){return n.e(3607).then(n.t.bind(n,23607,23))},fo:function(){return n.e(9703).then(n.t.bind(n,69703,23))},"fr-ca":function(){return n.e(3998).then(n.t.bind(n,43998,23))},"fr-ch":function(){return n.e(2974).then(n.t.bind(n,92974,23))},fr:function(){return n.e(4408).then(n.t.bind(n,54408,23))},fy:function(){return n.e(2734).then(n.t.bind(n,92734,23))},ga:function(){return n.e(1236).then(n.t.bind(n,71236,23))},gd:function(){return n.e(4324).then(n.t.bind(n,24324,23))},gl:function(){return n.e(5203).then(n.t.bind(n,45203,23))},"gom-latn":function(){return n.e(4006).then(n.t.bind(n,64006,23))},gu:function(){return n.e(4413).then(n.t.bind(n,44413,23))},he:function(){return n.e(7367).then(n.t.bind(n,30610,23))},hi:function(){return n.e(3883).then(n.t.bind(n,13883,23))},hr:function(){return n.e(4018).then(n.t.bind(n,94018,23))},ht:function(){return n.e(6663).then(n.t.bind(n,26663,23))},hu:function(){return n.e(6079).then(n.t.bind(n,76079,23))},"hy-am":function(){return n.e(5070).then(n.t.bind(n,15070,23))},id:function(){return n.e(9685).then(n.t.bind(n,29685,23))},is:function(){return n.e(4254).then(n.t.bind(n,4254,23))},"it-ch":function(){return n.e(846).then(n.t.bind(n,60846,23))},it:function(){return n.e(3495).then(n.t.bind(n,3495,23))},ja:function(){return n.e(6625).then(n.t.bind(n,6625,23))},jv:function(){return n.e(862).then(n.t.bind(n,862,23))},ka:function(){return n.e(9139).then(n.t.bind(n,89139,23))},kk:function(){return n.e(7245).then(n.t.bind(n,27245,23))},km:function(){return n.e(610).then(n.t.bind(n,20610,23))},kn:function(){return n.e(7324).then(n.t.bind(n,80328,23))},ko:function(){return n.e(2670).then(n.t.bind(n,72670,23))},ku:function(){return n.e(7862).then(n.t.bind(n,97862,23))},ky:function(){return n.e(1389).then(n.t.bind(n,61389,23))},lb:function(){return n.e(2455).then(n.t.bind(n,22455,23))},lo:function(){return n.e(6731).then(n.t.bind(n,6731,23))},lt:function(){return n.e(2651).then(n.t.bind(n,22651,23))},lv:function(){return n.e(127).then(n.t.bind(n,90127,23))},me:function(){return n.e(9101).then(n.t.bind(n,59101,23))},mi:function(){return n.e(9433).then(n.t.bind(n,59433,23))},mk:function(){return n.e(7950).then(n.t.bind(n,17950,23))},ml:function(){return n.e(2421).then(n.t.bind(n,22421,23))},mn:function(){return n.e(2405).then(n.t.bind(n,62405,23))},mr:function(){return n.e(7273).then(n.t.bind(n,27273,23))},"ms-my":function(){return n.e(7443).then(n.t.bind(n,47443,23))},ms:function(){return n.e(178).then(n.t.bind(n,178,23))},mt:function(){return n.e(3950).then(n.t.bind(n,43950,23))},my:function(){return n.e(8446).then(n.t.bind(n,68446,23))},nb:function(){return n.e(8864).then(n.t.bind(n,28864,23))},ne:function(){return n.e(8828).then(n.t.bind(n,58828,23))},"nl-be":function(){return n.e(7994).then(n.t.bind(n,87994,23))},nl:function(){return n.e(182).then(n.t.bind(n,51957,23))},nn:function(){return n.e(5641).then(n.t.bind(n,5641,23))},"oc-lnc":function(){return n.e(4175).then(n.t.bind(n,14175,23))},"pa-in":function(){return n.e(3493).then(n.t.bind(n,33493,23))},pl:function(){return n.e(4320).then(n.t.bind(n,54320,23))},"pt-br":function(){return n.e(452).then(n.t.bind(n,10452,23))},pt:function(){return n.e(8505).then(n.t.bind(n,18505,23))},rn:function(){return n.e(4040).then(n.t.bind(n,44040,23))},ro:function(){return n.e(4442).then(n.t.bind(n,24442,23))},ru:function(){return n.e(9821).then(n.t.bind(n,79821,23))},rw:function(){return n.e(8731).then(n.t.bind(n,88731,23))},sd:function(){return n.e(4503).then(n.t.bind(n,94503,23))},se:function(){return n.e(2871).then(n.t.bind(n,92871,23))},si:function(){return n.e(9963).then(n.t.bind(n,19963,23))},sk:function(){return n.e(6789).then(n.t.bind(n,86789,23))},sl:function(){return n.e(6292).then(n.t.bind(n,45830,23))},sq:function(){return n.e(2516).then(n.t.bind(n,92516,23))},"sr-cyrl":function(){return n.e(5982).then(n.t.bind(n,15982,23))},sr:function(){return n.e(2967).then(n.t.bind(n,22967,23))},ss:function(){return n.e(9350).then(n.t.bind(n,39350,23))},"sv-fi":function(){return n.e(9008).then(n.t.bind(n,59008,23))},sv:function(){return n.e(6660).then(n.t.bind(n,16660,23))},sw:function(){return n.e(9625).then(n.t.bind(n,99625,23))},ta:function(){return n.e(8841).then(n.t.bind(n,48841,23))},te:function(){return n.e(5066).then(n.t.bind(n,45066,23))},tet:function(){return n.e(5014).then(n.t.bind(n,5014,23))},tg:function(){return n.e(7656).then(n.t.bind(n,57656,23))},th:function(){return n.e(4723).then(n.t.bind(n,24723,23))},tk:function(){return n.e(1577).then(n.t.bind(n,91577,23))},"tl-ph":function(){return n.e(4639).then(n.t.bind(n,24639,23))},tlh:function(){return n.e(5748).then(n.t.bind(n,35748,23))},tr:function(){return n.e(4712).then(n.t.bind(n,24712,23))},tzl:function(){return n.e(6679).then(n.t.bind(n,96679,23))},"tzm-latn":function(){return n.e(6927).then(n.t.bind(n,26927,23))},tzm:function(){return n.e(824).then(n.t.bind(n,30824,23))},"ug-cn":function(){return n.e(7275).then(n.t.bind(n,47275,23))},uk:function(){return n.e(9352).then(n.t.bind(n,19352,23))},ur:function(){return n.e(1728).then(n.t.bind(n,1728,23))},"uz-latn":function(){return n.e(1886).then(n.t.bind(n,91886,23))},uz:function(){return n.e(689).then(n.t.bind(n,50689,23))},vi:function(){return n.e(4023).then(n.t.bind(n,44023,23))},"x-pseudo":function(){return n.e(225).then(n.t.bind(n,225,23))},yo:function(){return n.e(7199).then(n.t.bind(n,37199,23))},"zh-cn":function(){return n.e(253).then(n.t.bind(n,70253,23))},"zh-hk":function(){return n.e(4657).then(n.t.bind(n,94657,23))},"zh-tw":function(){return n.e(2780).then(n.t.bind(n,62780,23))},zh:function(){return n.e(8645).then(n.t.bind(n,8645,23))}}},72835: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(47575)),s=n(43970),l=i(n(71148)),c=n(55683),u=n(81215),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},55683: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(45017),t)},45017: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(48909),i=n(26857);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:""}},46668: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(89945),t)},26857:(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}},89945:(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}},21975:(e,t,n)=>{"use strict";n.d(t,{mb:()=>u});const r=/{{(.*?)}}/g;const o=()=>new RegExp(/\$t{([^}]+)}/g);var i;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(i||(i={}));Object.values(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;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),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}_i18n(e,t,n,r){const{text:o,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let o=`Using language ${r}. `;switch(t){case i.EmptyKeyset:o+="Keyset is empty.";break;case i.EmptyLanguageData:o+="Language data is empty.";break;case i.KeysetNotFound:o+="Keyset not found.";break;case i.MissingKey:o+="Missing key.";break;case i.MissingKeyFor0:return o+="Missing key for 0",o;case i.MissingKeyParamsCount:o+="Missing params.count for key.";break;case i.MissingKeyPlurals:o+="Missing required plurals.";break;case i.NoLanguageData:o=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(o+=` Trying to use fallback language "${n}"...`),o}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return o}}class d{constructor(e,t,n,r,o,i){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=o,this.nestingDepth=null!==i&&void 0!==i?i:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(i.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=o().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(i.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(i.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.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}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(i.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(i.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(i.EmptyKeyset):{data:t}:this.getTranslationDataError(i.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=o();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,o]=r;if(o){if(this.nestingDepth+1>1)return this.getTranslationDataError(i.ExceedTranslationNestingDepth);let[e,t]=[o,void 0];const n=o.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(i.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(i.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},15152:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},85996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},67904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},67258:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},22927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},52232:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},29837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},87382:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},68045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))))},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},83619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},78167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},2915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},91528:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(95936);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},6826:(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},_=Object.prototype.toString;var x=w,E=function(e){return _.call(e)},S="[object Null]",k="[object Undefined]",C=h?h.toStringTag:void 0;var O=function(e){return null==e?void 0===e?k:S:C&&C in Object(e)?x(e):E(e)},N=function(e){return null!=e&&"object"==typeof e},T="[object Symbol]";var I=p,P=o,D=function(e){return"symbol"==typeof e||N(e)&&O(e)==T},R=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(D(e))return R;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)?R:+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}},10824:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(91528).b)("aside-header")},20560:(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__"},71624:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R});var r=n(23337),o=n(34706),i=n(75868),a=n.n(i),s=n(95936),l=n(20560);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"})),_={ICON_ASC:b,ICON_DESC:w};const x=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 _.ICON_ASC;case l.hr:return _.ICON_DESC;default:return!1}}(t||i)):null};class E 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}))})))}}E.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 _=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(_=Object.assign(Object.assign({},_),{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:_,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(x,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 k extends o.Component{constructor(){super(...arguments),this.state={style:{top:k.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})}}k.defaultProps={top:0};class C 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})}}C.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(E,{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(k,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(C,{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 N=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 T 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(N,{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),_=(null!==(n=e.resizeable)&&void 0!==n?n:o.defaultResizeable)&&Boolean(r),x="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):x,k="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},C="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:_,sortable:m&&d,_className:w,_getValue:x,_getTitle:E,_getSortValue:S,_renderValue:k,_getOnClick:O,customStyle:C,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({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.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=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.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:_=!1,headerMod:x=!1}=v,E=c({"highlight-rows":w,"striped-rows":_,header:x,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:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.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}T.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"},T.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 D extends o.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){_.ICON_ASC=e.ICON_ASC||b,_.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(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}D.FIXED=l.hA,D.MOVING=l.qA,D.ASCENDING=l.zE,D.DESCENDING=l.hr,D.LEFT=l.RL,D.CENTER=l.dv,D.RIGHT=l.pX;const R=D},90132:(e,t,n)=>{"use strict";n.d(t,{M:()=>k});var r=n(23337),o=n(34706),i=n(15178),a=n(95868),s=n(87578);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(29355),u=n.n(c),d=n(36205),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)},_=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 x=n(24874);const E=["bottom","top"],S=(0,s.Ge)("action-tooltip");function k(e){const{placement:t=E,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),k=o.Children.only(l),C=k.ref,O=(0,i.c)(b,C);return o.createElement(o.Fragment,null,o.cloneElement(k,{ref:O}),y?o.createElement(x.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(_,{view:"dark",value:s,className:S("hotkey")})),d&&o.createElement("div",{className:S("description")},d))):null)}},81778:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(34706),o=n(85996),i=n(14561);const a=(0,n(87578).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}))}},72616:(e,t,n)=>{"use strict";n.d(t,{z:()=>m});var r=n(34706),o=n(87578),i=n(15112),a=n(90287),s=n(97604),l=n(35035);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:_,onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,children:C,id:O,style:N,className:T,qa:I}=e;const P={title:d,tabIndex:f,onClick:_,onClickCapture:r.useCallback((e=>{a.P.publish({componentId:"Button",eventId:"click",domEvent:e,meta:{content:e.currentTarget.textContent,view:n}})}),[n]),onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,id:O,style:N,className:p({view:n,size:o,pin:i,selected:s,disabled:l||c,loading:c,width:u},T),"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(C))}return r.createElement("button",Object.assign({},w,P,{ref:t,type:h,disabled:l||c,"aria-pressed":s}),b(C))}));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]}}},99175:(e,t,n)=>{"use strict";n.d(t,{m:()=>b});var r=n(23337),o=n(34706),i=n(90132),a=n(72616),s=n(69847),l=n(92011),c=n(87578),u=n(3581);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=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"}'),p=(0,u.e)({en:d,ru:f},"ClipboardButton"),h=(0,c.Ge)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,_=(0,r._T)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),x=o.createElement(a.z.Icon,{className:h("icon")},o.createElement(s.K,{size:v[t],status:u}));return o.createElement(i.M,{title:"success"===u?c:l,disabled:!n,closeDelay:y},o.createElement(a.z,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},_),"start"===g?x:null,m,"end"===g?x:null))};function b(e){const{text:t,timeout:n=m,onCopy:i,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r._T)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=o.useRef(),[p,h]=o.useState(void 0),[v,b]=o.useState(!1);o.useEffect((()=>window.clearTimeout(f.current)),[]);const w=o.useCallback(((e,t)=>{null===i||void 0===i||i(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[i,n]),_=o.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),x=o.useCallback((e=>{null===c||void 0===c||c(e),_()}),[c,_]),E=o.useCallback((e=>{null===u||void 0===u||u(e),_()}),[u,_]);return o.createElement(l.h,{text:t,timeout:n,onCopy:w,options:a},(e=>o.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:x,onFocus:E}))))}},69847:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(23337),o=n(34706);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(14561);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))}},19694:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(34706);const o=(0,n(87578).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"},92011:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(34706),o=n(13469),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)}},83797:(e,t,n)=>{"use strict";n.d(t,{w:()=>C});var r=n(34706),o=n(97604),i=n(35035);const a=r.createContext(void 0);function s(e){let{direction:t,contentMaxWidth:n,nameMaxWidth:o,children:i}=e;const s=o?{maxWidth:o,width:o}:{},l="number"===typeof n?{width:n,maxWidth:n}:{};return r.createElement(a.Provider,{value:{keyStyle:s,valueStyle:l,direction:t}},i)}var l=n(87578);const c=(0,l.Ge)("definition-list");var u=n(99175);function d(e){let{copyText:t,children:n}=e;const o=null!==n&&void 0!==n?n:"\u2014";return t?r.createElement("div",{className:c("copy-container")},o,r.createElement(u.m,{size:"s",text:t,className:c("copy-button"),view:"flat-secondary"})):o}var f=n(23337),p=n(29837),h=n(14561),m=n(16318);const g=(0,l.Ge)("help-mark"),v=16;function y(e){var{buttonRef:t,buttonProps:n={},children:o,className:i}=e,a=(0,f._T)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.J,Object.assign({},a,{delayClosing:300,className:g(null,i),content:o}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.J,{data:p.Z,size:v}))))}var b=n(3581);const w=JSON.parse('{"label_note":"Note"}'),_=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),x=(0,b.e)({en:w,ru:_},"DefinitionList");function E(e){let{note:t}=e;if(!t)return null;const n=c("item-note-tooltip");if("string"===typeof t)return r.createElement(y,{className:n,placement:["bottom","top"],buttonProps:{"aria-label":x("label_note")}},t);if("object"===typeof t){const{buttonProps:e}=t,o=(0,f._T)(t,["buttonProps"]);return r.createElement(y,Object.assign({className:n,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":x("label_note")},e)},o))}return null}function S(e){let{note:t,name:n,direction:o}=e;const i=t?r.createElement(r.Fragment,null,"\xa0",r.createElement(E,{note:t})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},n,i),"horizontal"===o&&r.createElement("div",{className:c("dots")}))}function k(e){let{name:t,children:n,copyText:o,note:i}=e;const{direction:s,keyStyle:l,valueStyle:u}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:l},r.createElement(S,{direction:s,name:t,note:i})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},u),{lineBreak:"string"===typeof n&&(f=20,function(e){return e.split(/\s+/).some((e=>e.length>f))})(n)?"anywhere":void 0})},r.createElement(d,{copyText:o},n)));var f}function C(e){let{responsive:t,direction:n="horizontal",nameMaxWidth:o,contentMaxWidth:a,className:l,children:u,qa:d}=e;const f=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){O(r)?n.push(r):(0,i.O)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(u);return r.createElement(s,{direction:n,nameMaxWidth:o,contentMaxWidth:a},r.createElement("dl",{className:c({responsive:t,vertical:"vertical"===n},l),"data-qa":d},f))}k.displayName="DefinitionListItem";const O=(0,o.s)(k);C.Item=k,C.displayName="DefinitionList"},36413:(e,t,n)=>{"use strict";n.d(t,{h:()=>B});var r=n(34706),o=n(87382),i=n(75813),a=n(72616),s=n(14561),l=n(87578);const c=(0,l.Ge)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(23337),f=n(67904),p=n(67258),h=n(11746);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(90287);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:_,qa:x}=e;const{onKeyDown:E}=(0,i.b)(h),S=r.useCallback((e=>{v.P.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),k={role:"menuitem",onKeyDown:h&&!l?E:void 0},C={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":x},O=[o&&r.createElement("div",{key:"icon-start",className:y("item-icon")},o),r.createElement("div",{key:"content",className:y("item-content")},_),a&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},a)];let N;return N=d?r.createElement("a",Object.assign({},k,w,C,{href:d,target:f,rel:p}),O):r.createElement("div",Object.assign({},k,w,C),O),r.createElement("li",{ref:t,className:y("list-item")},N)})),w=(0,l.Ge)("menu"),_=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)}));_.Item=b,_.Group=g;var x=n(51099);function E(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])?E(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 k=n(24874);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=e=>{let{anchorRef:t,children:n,disabled:o}=e;const[i,a]=r.useState(C);r.useEffect((()=>{o&&a(C)}),[o]);const s=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:a,anchorRef:t})),[i,t]);return r.createElement(O.Provider,{value:s},n)},T={text:"",action:()=>{},path:[]};function I(e){return e===T}function P(e){return e.disabled||I(e)}function D(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const R=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]),x=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]),C=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]),N=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&&C(r,n),!1}}return!0}),[b,C,y,t]),T=n&&D(f)===D(m),{activeItemIndex:R,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=>E(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=>E(t,e,o,n)));break;case"Home":if(!i)return;e.preventDefault(),f((e=>E(t,e,e,n)));break;case"End":if(!a)return;e.preventDefault(),f((e=>E(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:N,disabled:!T,initialValue:y?0:-1});return r.useEffect((()=>{n||j()}),[n,j]),r.createElement(k.G,Object.assign({open:n,anchorRef:o,onClose:i},d,{onMouseEnter:w,onMouseLeave:x}),l||r.createElement(_,Object.assign({className:c("menu"),size:a},s),t.map(((e,t)=>{var o;const a=T&&R===t,s=n&&!a&&0!==m.length&&D(e.path)===D(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,x.g)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:k}=j({items:o,path:h}),C=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),C())}),[n,v,C,w]),N=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&&k()},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,k]),T=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(_.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:I}),t||l),w&&o&&r.createElement(R,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:T}),items:o,path:h,open:E,anchorRef:y,onClose:C}))},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:_,menuProps:x,popupProps:E,children:S}=e;const k=r.useRef(null),{isPopupShown:C,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,k,!C||!p);const P=r.useMemo((()=>({toggle:O,data:h})),[h,O]),D=r.useMemo((()=>F(t,T)),[t]),A=r.useCallback((e=>{m||(null===_||void 0===_||_(e),O())}),[m,_,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:k,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(N,{anchorRef:k,disabled:!C},r.createElement(R,{items:D,open:C,size:n,menuProps:x,anchorRef:k,onClose:I,popupProps:E},S)))}),{Item:M})},14561:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(34706),o=n(87578);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||"function"===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=""},2634:(e,t,n)=>{"use strict";n.d(t,{_:()=>u});var r=n(34706),o=n(2915),i=n(69847),a=n(92011),s=n(14561);const l=(0,n(87578).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",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:_=!1,value:x,onCopy:E,onClick:S,qa:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,I=Boolean(N&&y),P=(T||I||_)&&!v,{copyIconSize:D,closeIconSize:R}=c[d],A=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(x)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},x))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(i.K,{status:e||"pending",size:D})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,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:P,disabled:v},g),title:f,"data-qa":k},A,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return I&&y&&!T?r.createElement(a.h,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},17823:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(34706),o=n(87578),i=n(90287);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 _={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},x="_blank"!==c||u?u:"noopener noreferrer";return r.createElement("a",Object.assign({},p,_,{ref:t,href:l,target:c,rel:x}),f)}))},76943:(e,t,n)=>{"use strict";n.d(t,{a:()=>ce});var r=n(34706),o=n(74647),i=n.n(o),a=n(76986),s=n.n(a),l=n(52519);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),_=n(25586),x="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=x();var r={id:requestAnimationFrame((function o(){x()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function N(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 T=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,_.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,_.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,_.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(N()){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&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,T)},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 D(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?C():0:l.scrollHeight>l.clientHeight?C():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(N()){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&&E(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,_=this.state.isScrolling,x="horizontal"===i||"horizontal"===h,E=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?_:void 0,style:this._getItemStyle(N)}));var T=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,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:x?"100%":T,pointerEvents:_?"none":void 0,width:x?T:"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 D=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},R=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=R(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&&R(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 R(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=R(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=R(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=R(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(86357),F=n(73428),B=n(51099),U=n(87578),q=n(15112),$=n(69004),Z=n(81550);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(6982),G=n(14561),K=n(90287),Y=n(59143);const Q="list-active-item",J=[Y.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)}render(){var e,t;const{item:n,height:o,style:i,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:o},i),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Q:void 0,className:X("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},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,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,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=K.P.withEventPublisher("List");var re=n(16991),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,r,o;const i=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(i&&"function"===typeof i.getNode){const e=i.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(o=e.scrollIntoView)||void 0===o||o.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,activeItem:this.props.activeItemIndex,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,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));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,height:o,provided:i,isDragging:a}=e;var s;const{sortHandleAlign:l,role:c}=this.props,{items:u,activeItem:d}=this.state,f=this.getItemsWithLoading()[t],p=this.props.sortable&&u.length>1&&!this.getFilter(),h=t===d||t===this.props.activeItemIndex,m=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(t):t===this.props.selectedItemIndex;return r.createElement(ne,{key:t,style:n,height:o,itemIndex:t,item:f,sortable:p,sortHandleAlign:l,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:h,selected:m,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===c?"option":"listitem",listId:null!==(s=this.props.id)&&void 0!==s?s:this.uniqId,provided:i,isDragging:a})},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.blurTimer=null,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.handleBlur()},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}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(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,onScrollToItem:this.props.onScrollToItem},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,height:this.getItemHeight(t)}))))))))):r.createElement(ae,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,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}},81550:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(34706);const o=(0,n(87578).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")}))}},16318:(e,t,n)=>{"use strict";n.d(t,{J:()=>w});var r=n(34706),o=n(2915),i=n(72616),a=n(14561),s=n(24874),l=n(51099),c=n(35035);const u=(0,n(87578).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(17823);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(75813);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(2194);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,_]=y.q[l],x=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[w,a,v]),E=r.useCallback((()=>{d.current=setTimeout((()=>{d.current=null,b()}),null!==s&&void 0!==s?s:_)}),[b,_,s]);return{isOpen:f,closingTimeout:d,openTooltip:v,openTooltipDelayed:x,unsetOpeningTimeout:h,closeTooltip:b,closeTooltipDelayed:E,unsetClosingTimeout:m}},w=r.forwardRef((function(e,t){let{initialOpen:n=!1,disabled:d=!1,autoclosable:h=!0,openOnHover:g=!0,delayOpening:w,delayClosing:_,behavior:x=y.x.Delayed,placement:E,offset:S={},tooltipOffset:k,tooltipClassName:C,tooltipContentClassName:O,theme:N="info",size:T="s",hasArrow:I=!0,hasClose:P=!1,className:D,children:R,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:K,focusTrap:Y,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:_,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>E||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,E]);r.useImperativeHandle(t,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(A),he=r.createElement(s.G,{id:K,role:g?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:u("tooltip",{theme:N,size:T,"with-close":P,"force-links-appearance":F},C),contentClassName:u("tooltip-popup-content",O),open:oe,placement:fe,hasArrow:I,offset:k,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:G,focusTrap:Y,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"!==N,content:j,htmlContent:M,className:L}),z&&r.createElement(m,{links:z}),r.createElement(f,{theme:N,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},D),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},R),he)}));w.displayName="Popover"},2194:(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]}},24874:(e,t,n)=>{"use strict";n.d(t,{G:()=>$e});var r=n(34706),o=n(77498),i=n(15178),a=n(72985);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){return s(e).getComputedStyle(e)}function x(e){var t=_(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function E(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)||x(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 k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&x(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],x(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(k(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==_(e).position?e.offsetParent:null}function I(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===_(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===_(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===_(e).position)return null;var n=k(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=_(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",D="bottom",R="right",A="left",j="auto",M=[P,D,R,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 K(){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 Y(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(K(t,n)){o.rects={reference:E(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(!K(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 D:t={x:s,y:n.y+n.height};break;case R: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"),x=a.hasOwnProperty("y"),E=A,S=P,k=window;if(u){var C=I(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==_(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),o===P||(o===A||o===R)&&i===z)S=D,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(o===A||(o===P||o===D)&&i===z)E=R,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[N])-r.width,m*=c?1:-1}var T,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,((T={})[S]=x?"0":"",T[E]=w?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=x?v+"px":"",t[E]=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,R].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"===_(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(k(e)),n=["absolute","fixed"].indexOf(_(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)),_=p===U?q:U,x=e.rects.popper,E=e.elements[m?_:p],S=fe(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),k=g(e.elements.reference),C=te({reference:k,element:x,strategy:"absolute",placement:o}),O=ue(Object.assign({},x,C)),N=p===U?O:k,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},I=e.modifiersData.offset;if(p===U&&I){var A=I[o];Object.keys(T).forEach((function(e){var t=[R,D].indexOf(e)>=0?1:-1,n=[P,D].indexOf(e)>=0?"y":"x";T[e]+=A[n]*t}))}return T}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,_=t.rects.popper,x=new Map,E=!0,S=b[0],k=0;k<b.length;k++){var C=b[k],O=J(C),N=X(C)===L,T=[P,D].indexOf(O)>=0,I=T?"width":"height",z=me(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?R:A:N?D:P;w[I]>_[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=C,E=!1;break}x.set(C,U)}if(E)for(var q=function(e){var t=b.find((function(t){var n=x.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),_=!w,x=ee(b),E="x"===x?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var z,F="y"===x?P:A,B="y"===x?D:R,U="y"===x?"height":"width",q=k[x],$=q+y[F],Z=q-y[B],H=m?-O[U]/2:0,V=w===L?C[U]:O[U],W=w===L?-O[U]:-C[U],G=t.elements.arrow,K=m&&G?S(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=Y[F],te=Y[B],ne=ve(0,C[U],K[U]),re=_?C[U]/2-H-ne-Q-T.mainAxis:V-ne-Q-T.mainAxis,oe=_?-C[U]/2+H+ne+te+T.mainAxis:W+ne+te+T.mainAxis,ie=t.elements.arrow&&I(t.elements.arrow),ae=ie?"y"===x?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[x])?z:0,le=q+oe-se,ce=ve(m?f($,q+re-se-ae):$,q,m?d(Z,le):Z);k[x]=ce,M[x]=ce-q}if(s){var ue,de="x"===x?P:A,fe="x"===x?D:R,pe=k[E],he="y"===E?"height":"width",ge=pe+y[de],ye=pe-y[fe],be=-1!==[P,A].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,_e=be?ge:pe-C[he]-O[he]-we+T.altAxis,xe=be?pe+C[he]+O[he]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(_e,pe,xe):ve(m?_e:ge,pe,m?xe:ye);k[E]=Ee,M[E]=Ee-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,R].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?D:R,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],_=v/2-d[c]/2+y,x=ve(b,_,w),E=l;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-_,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 _e(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 xe(e){return[P,R,D,A].some((function(t){return e[t]>=0}))}var Ee=Y({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=_e(a,r),c=_e(s,o,i),u=xe(l),d=xe(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(67082),ke=n.n(Se),Ce=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,Ne=[],Te=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||Ne},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:Ce(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ce(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 ke()(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||Ee)(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(51099);const Pe=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],De={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 Re=n(38873),Ae=n(41715),je=n(47741),Me=n(87578),Le=n(90512),ze=n(98960);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:_,onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,onTransitionEnter:C,onTransitionEntered:O,onTransitionExit:N,onTransitionExited:T,disablePortal:I,container:P,strategy:D,qa:R,restoreFocus:A,restoreFocusRef:j,"aria-label":M,"aria-labelledby":L,role:z,id:F,focusTrap:B=!1,autoFocus:U=!1,"aria-modal":q=B}=e;const $=r.useRef(null);(0,Le.s)({open:s,disableEscapeKeyDown:u,disableOutsideClick:d,onEscapeKeyDown:y,onOutsideClick:b,onClose:w,contentRefs:[c,$],enabled:!f,type:"popup"});const{attributes:Z,styles:H,setPopperRef:V,setArrowRef:W}=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}=Te(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?[De]:[],...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:D,altBoundary:I,modifiers:[{name:"arrow",options:{enabled:n,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:I}},...g]}),G=(0,i.c)(V,$,(0,je.e)()),K=(0,Re.H)({enabled:Boolean(A&&s),restoreFocusRef:j});let Y=z;return!0!==q&&"true"!==q||Y||(Y="dialog"),r.createElement(o.Z,{nodeRef:$,in:s,addEndListener:e=>{var t;return null===(t=$.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,ze.Y)(Ue),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{null===C||void 0===C||C()},onEntered:()=>{null===O||void 0===O||O()},onExit:()=>{null===N||void 0===N||N()},onExited:()=>{null===T||void 0===T||T()}},r.createElement(Ae.h,{container:P,disablePortal:I},r.createElement("div",Object.assign({ref:G,style:H.popper},Z.popper,K,{className:Ue({open:s},h),"data-qa":R,id:F,role:Y,"aria-label":M,"aria-labelledby":L,"aria-modal":q&&s?q:void 0}),r.createElement(je.i,{enabled:B&&s,autoFocus:U},r.createElement("div",{onClick:_,onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,className:Ue("content",m),style:p,tabIndex:-1},n&&r.createElement(Be,{styles:H.arrow,attributes:Z.arrow,setArrowRef:W}),v)))))}},41715:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(34706),o=n(72985);const i=r.createContext({current:null});i.displayName="PortalContext";var a=n(85507),s=n(8349);const l=(0,n(87578).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}},67661:(e,t,n)=>{"use strict";n.d(t,{E:()=>y});var r=n(34706),o=n(11746),i=n(7947);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(65846);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),_=(0,c.q)({initialValue:b,onReset:w}),x=e=>{w(e.target.value),m&&m(e)},E=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:E,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:x,onFocus:g,onBlur:v,ref:_})))}}var d=n(87578),f=n(15178),p=n(90287);var h=n(15112);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),[_,x]=(0,i.z)(a,null!==s&&void 0!==s&&s,h),E=(0,c.q)({initialValue:_,onReset:x}),S=(0,f.c)(u,w,E);return{checked:_,inputProps:Object.assign(Object.assign({},d),{name:t||b,value:n,id:y,onFocus:g,onBlur:v,disabled:l,type:"radio",onChange:e=>{x(e.target.checked),m&&m(e)},onChangeCapture:e=>{p.P.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:a,defaultChecked:s,"aria-checked":_,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},77315:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(34706),o=n(75447),i=n(19694);const a=(0,n(87578).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)}))},72555:(e,t,n)=>{"use strict";n.d(t,{m:()=>p});var r=n(34706),o=n(87578);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(2634);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})},23795:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(23337),o=n(34706),i=n(24840);const a=(0,n(87578).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"},24840:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});const r=(0,n(87578).Ge)("color-text"),o=(e,t)=>{let{color:n}=e;return r({color:n},t)}},86357:(e,t,n)=>{"use strict";n.d(t,{o:()=>j});var r=n(34706),o=n(78167),i=n(7947),a=n(15178),s=n(11746),l=n(65846),c=n(81351),u=n.n(c),d=n(42542),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((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;o({width:u()(t.offsetWidth,h),height:u()(t.offsetHeight,h)});const n=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 n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var g=n(14561),v=n(16318),y=n(87578),b=n(2915),w=n(72616),_=n(3581);const x=JSON.parse('{"label_clear-button":"Clear"}'),E=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),S=(0,_.e)({en:x,ru:E},`${y.A7}clear-button`),k=(0,y.Ge)("clear-button"),C=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:k(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 N=n(99474),T=n(61784);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})),D=(0,y.Ge)("text-input");function R(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,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:D("control",{type:"input"},t.className),type:o,name:i,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}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,readOnly:b,hasClear:w=!1,error:_,errorMessage:x,errorPlacement:E="outside",validationState:S,autoComplete:k,id:I,tabIndex:D,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:Z,onUpdate:H,onChange:V}=e,{errorMessage:W,errorPlacement:G,validationState:K}=(0,T.II)({error:_,errorMessage:x,errorPlacement:E,validationState:S}),[Y,Q]=(0,i.z)(f,null!==p&&void 0!==p?p:"",H),J=r.useRef(null),X=(0,l.q)({initialValue:Y,onReset:Q}),ee=(0,a.c)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,T.O_)(K),oe=Boolean(h),ie="invalid"===K&&Boolean(W)&&"outside"===G,ae="invalid"===K&&Boolean(W)&&"inside"===G,se=Boolean(w&&!y&&!b&&Y),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=oe&&!I&&!d&&"undefined"===typeof k,fe=(0,s.u)(),pe=oe?I||fe:I,he=m(oe?te:null,c),me=m(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],Z?ve:void 0,ie?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),oe&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===K||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:D,name:d,onChange(e){Q(e.target.value),V&&V(e)},autoComplete:de?"off":(0,T.xp)(k),controlProps:be},_e=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=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:A({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:A("content")},le&&r.createElement(P,{ref:ne,placement:"start",onClick:_e},U),oe&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:A("label"),title:h,htmlFor:pe},`${h}`),r.createElement(R,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(O,{size:C(c),onClick:e=>{Q("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",V&&V(n)}},className:A("clear",{size:c})}),ue&&r.createElement(P,{placement:"end",onClick:_e},q),ae&&r.createElement(v.J,{content:W},r.createElement("span",{"data-qa":T.eP},r.createElement(g.J,{data:o.Z,className:A("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(P,{placement:"end",onClick:_e},$)),r.createElement(N.Z,{note:Z,errorMessage:ie?W:null,noteId:ve,errorMessageId:ge}))}))},99474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(34706),o=n(87578),i=n(61784);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}},61784:(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}}},22396:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(23337),o=n(34706),i=n(87578),a=n(1713);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 _=n||"div",x=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return o.createElement(_,Object.assign({},w,{"data-qa":l,style:x,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},79777:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var r=n(23337),o=n(34706),i=n(87578),a=n(22396),s=n(75246),l=n(89142);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:_,inline:x,gap:E,gapRow:S,className:k,space:C,centerContent:O}=e,N=(0,r._T)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:I,theme:{spaceBaseSize:P}}=(0,s.l)(),D=e=>"object"===typeof e&&null!==e?I(e):e,R=D(E),A=R?P*Number(R):void 0,j=D(S)||R,M=j?P*Number(j):void 0,L=D(C),z=E||S||!L?void 0:(0,l.cA)(L);return o.createElement(a.x,Object.assign({as:T,className:c({"center-content":O,inline:x,s:z},k),ref:t,style:Object.assign({flexDirection:D(i),flexGrow:!0===u?1:u,flexWrap:!0===_?"wrap":_,flexBasis:d,flexShrink:w,columnGap:A,rowGap:M,alignContent:D(h),alignItems:D(m),alignSelf:D(g),justifyContent:D(v),justifyItems:D(y),justifySelf:D(b)},p)},N),C?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},43730:(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"}}}}}},39098:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(34706),o=n(43730);const i=r.createContext({theme:o.A,activeMediaQuery:"s"})},75246:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(34706),o=n(39098),i=n(89142);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(o.V),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,i.ur)(e),getClosestMediaProps:(0,i.GD)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},1713:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,W:()=>a});var r=n(87578),o=n(89142);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},89142:(e,t,n)=>{"use strict";n.d(t,{GD:()=>s,cA:()=>l,ur:()=>i});var r=n(43730);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)},73428:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(34706);const o={mobile:!1,platform:n(74114).t.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},74114:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r,o=n(87578);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.Ge)("root")({mobile:!0}).split(/\s+/)[1]},56952:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r=n(34706),o=n(73428);function i(){return r.useContext(o.z).mobile}},1852:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(34706).createContext(void 0);r.displayName="ThemeContext"},85507:(e,t,n)=>{"use strict";n.d(t,{f:()=>O});var r=n(34706),o=n(39098);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(76564),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(87578),p=n(1852);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),_=w();function x(e){let{theme:t,nativeScrollbar:n=!1,className:r,prevClassName:o}=e;const i=document.body;if(i.classList.contains(_)||i.classList.add(_),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 E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function k(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)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 C=(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,_;const E=r.useContext(p.N),S=r.useContext(h),O=void 0!==E||s,N=null!==(f=null===E||void 0===E?void 0:E.theme)&&void 0!==f?f:m,T=null!==t&&void 0!==t?t:N,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,D=null!==(_=null===E||void 0===E?void 0:E.direction)&&void 0!==_?_:b,R=null!==i&&void 0!==i?i:D,A="light"===k()?I:P,j="system"===T?A:T,M=r.useRef("");r.useLayoutEffect((()=>{O||(x({theme:j,nativeScrollbar:a,className:l,prevClassName:M.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(R),M.current=l)}),[O,j,R,a,l]);const L=r.useMemo((()=>({theme:T,themeValue:j,direction:R,scoped:O})),[T,j,R,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:C({theme:j,"native-scrollbar":!1!==a},l),dir:R},c):c)))}O.displayName="ThemeProvider"},51099:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(8349);function o(){return(0,r.T)().direction}},8349:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(34706),o=n(1852);function i(){const e=r.useContext(o.N);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},53785:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(8349);function o(){return(0,r.T)().themeValue}},47741:(e,t,n)=>{"use strict";n.d(t,{i:()=>x,e:()=>E});var r=n(34706),o=n(7521);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}))}))},_=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},x=function(){var 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||_("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=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&&!_("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},k=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(x()))},C=function(e){var t=_("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),E();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=_("fallbackFocus");return a},N=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())},T=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)})),k(r||(y.mostRecentlyFocusedNode||x()))}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(),k(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())},D=function(){if(y.active)return l(i,n),y.delayInitialFocusTimer=s.delayInitialFocus?p((function(){k(x())})):k(x()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",I,{capture:!0,passive:!1}),n},R=function(){if(y.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!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}))}))&&k(x())})):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||E(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&E(),D(),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,R(),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&&k(C(y.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&l?(l(C(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(),R(),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(),E(),D(),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&&E(),j(),this}}).updateContainerElements(e),n},b=n(15178),w=n(11746);const _=r.createContext(void 0);function x(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(_.Provider,{value:d},r.cloneElement(p,{ref:m}))}function E(){const e=r.useContext(_),t=(0,w.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},87578:(e,t,n)=>{"use strict";n.d(t,{A7:()=>o,Ge:()=>i,Ui:()=>a});var r=n(95936);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},15112:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>l,xA:()=>s,yb:()=>c});var r=n(14561),o=n(87578),i=n(97604);let a=1;function s(){return`${o.A7}uniq-${a++}`}const l=(0,i.s)("svg"),c=(0,i.s)(r.J)},10859:(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,fallbackLang: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},90287:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(23337),o=n(87578);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)},97604:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(34706);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)}}},90512:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(34706),o=n(59143),i=n(90287);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])}},98960:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(87578);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"}))}}},35035:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});const r=new Map;function o(e){!e||r.has(e)}},59143:(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"}},75447:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(34706),o=n(7947),i=n(15178),a=n(90287),s=n(65846);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,_]=(0,o.z)(u,null!==c&&void 0!==c&&c,f),x=!d&&u,E=d?"mixed":w,S=(0,s.q)({initialValue:w,onReset:_}),k=(0,i.c)(h,b,S);r.useLayoutEffect((()=>{b.current&&(b.current.indeterminate=Boolean(d))}),[d]);const C=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.target.checked),p&&p(e)},onClickCapture:C,defaultChecked:c,checked:x,"aria-checked":E,ref:k})}}},65846:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(34706);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)}),[])}},38873:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(34706),o=n(7521);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)}}}},95868:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(34706),o=n(59143);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}},75813:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,b:()=>a});var r=n(34706),o=n(59143);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])}}},9446:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(34706),o=n(74718),i=n.n(o);const a=["overflow","paddingRight","paddingBottom"];let s=0,l={};function c(e){let{enabled:t}=e;r.useLayoutEffect((()=>{if(t)return s++,1===s&&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)}}();l=function(){const e={};for(const t of a)e[t]=i()(document.body.style,t);return e}(),document.body.style.overflow="hidden",e&&(document.body.style.paddingRight=`${n.right+e}px`);t&&(document.body.style.paddingBottom=`${n.bottom+t}px`)}(),()=>{s--,0===s&&function(){for(const e of a){const t=l[e];t?document.body.style[e]=t:document.body.style.removeProperty(e)}}()}}),[t])}},7947:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(34706);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]}},54695:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{k:()=>r})},15178:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(34706),o=n(54695);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)}},69004:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(34706);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])}},11746:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(34706),o=n(87578),i=n(15112);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}},3581:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(21975),o=n(10859);const{lang:i,fallbackLang:a}=(0,o.iE)(),s=new r.mb({lang:i,fallbackLang:a});function l(e,t){Object.entries(e).forEach((e=>{let[n,r]=e;return s.registerKeyset(n,t,r)}));return s.keyset(t)}(0,o.Pe)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},72484:(e,t,n)=>{"use strict";n.d(t,{m:()=>re});var r=n(37906),o=n(34706),i=n(74718),a=n.n(i),s=n(72985),l=n(87578);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(56952),g=n(63366),v=n(87462),y=n(97326),b=n(51721),w=n(97073);function _(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 x(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=_(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:x(s,"exit",e),enter:x(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:x(s,"exit",e),enter:x(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=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,_(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:x(e,"appear",n),enter:x(e,"enter",n),exit:x(e,"exit",n)})}))):E(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=_(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);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(77498),N=n(98960),T=n(52232),I=n(22927),P=n(78167),D=n(83619),R=n(2915);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(72616),M=n(14561),L=n(3581);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:T.Z,success:I.Z,warning:P.Z,danger:P.Z,utility:D.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,onClose:p,removeCallback:h}=e,m=o.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=A({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=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(v,s)},g,{"data-toast":!0}),w&&o.createElement("div",{className:U("icon-container")},w),o.createElement("div",{className:U("container")},y&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.z,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.J,{data:R.Z})),b&&o.createElement("div",{className:U("content",{"without-title":!y})},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:m})))})),H=(0,N.Y)((0,l.Ge)("toast-animation-desktop")),V=(0,N.Y)((0,l.Ge)("toast-animation-mobile"));function W(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(C,{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 K=n(41715);const Y=(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=Y({mobile:r},n))}),[n,r]),o.createElement(K.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:{}},55048:(e,t,n)=>{"use strict";var r=n(12076),o=n(493),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}},493:(e,t,n)=>{"use strict";var r=n(32089),o=n(12076),i=n(70936),a=n(656),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,s),u=n(41939),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},1868:(e,t,n)=>{"use strict";var r=n(80980),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}},41004:(e,t,n)=>{"use strict";var r=n(35356),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}}},63481:(e,t,n)=>{"use strict";var r=n(34706),o=n(41004);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)},13566:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},13398: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 _="$isDayjsObject",x=function(e){return e instanceof C||!(!e||!e[_])},E=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(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=E,k.i=x,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!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(k.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 k},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 k.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=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.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 k.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=k.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[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.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 k.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=k.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 k.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 k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.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 k.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 k.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 k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.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=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.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:k.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=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.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=C.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,C,S),e.$i=!0),S},S.locale=E,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},59524: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)}}}()},99621: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}}}()},33766: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)}}}()},14601:(e,t,n)=>{var r=n(13566);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}}},22338:(e,t,n)=>{"use strict";var r=n(41939),o=n(85658),i=n(656),a=n(11956);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}}},41939:(e,t,n)=>{"use strict";var r=n(12076)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},43085:e=>{"use strict";e.exports=EvalError},56922:e=>{"use strict";e.exports=Error},35292:e=>{"use strict";e.exports=RangeError},99406:e=>{"use strict";e.exports=ReferenceError},85658:e=>{"use strict";e.exports=SyntaxError},656:e=>{"use strict";e.exports=TypeError},32191:e=>{"use strict";e.exports=URIError},9323: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}},32089:(e,t,n)=>{"use strict";var r=n(9323);e.exports=Function.prototype.bind||r},12076:(e,t,n)=>{"use strict";var r,o=n(56922),i=n(43085),a=n(35292),s=n(99406),l=n(85658),c=n(656),u=n(32191),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(4248)(),v=n(16292)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,_={__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 x=y(y(M));_["%Error.prototype%"]=x}var E=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 _[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"]},k=n(32089),C=n(52710),O=k.call(Function.call,Array.prototype.concat),N=k.call(Function.apply,Array.prototype.splice),T=k.call(Function.call,String.prototype.replace),I=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/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 T(e,D,(function(e,t,n,o){r[r.length]=n?T(o,R,"$1"):t||e})),r},j=function(e,t){var n,r=e;if(C(S,r)&&(r="%"+(n=S[r])[0]+"%"),C(_,r)){var o=_[r];if(o===b&&(o=E(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],N(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),C(_,i="%"+(r+="."+h)+"%"))a=_[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=C(a,h),a=a[h];f&&!s&&(_[i]=a)}}return a}},11956:(e,t,n)=>{"use strict";var r=n(12076)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},18124:(e,t,n)=>{"use strict";var r=n(41939),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},16292:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},4248:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(75473);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},75473: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}},52710:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(32089);e.exports=i.call(r,o)},63041:(e,t,n)=>{"use strict";n.d(t,{lX:()=>E,q_:()=>T,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(41437);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",_="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function E(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,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function k(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 C(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.Z)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(k(e.state))}function I(){D(k(x()))}var P=!1;function D(e){if(P)P=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({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 R=k(x()),A=[R.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,T),o&&window.addEventListener(_,I)):0===L&&(window.removeEventListener(w,T),o&&window.removeEventListener(_,I))}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,C(),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,N({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,C(),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),N({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",k={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 C(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 N(e){window.location.replace(C(window.location.href)+"#"+e)}function T(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=k[s],g=d.encodePath,w=d.decodePath;function _(){var e=w(O());return l&&(e=f(e,l)),m(e)}var x=v();function E(e){(0,r.Z)(B,e),B.length=t.length,x.notifyListeners(B.location,B.action)}var T=!1,I=null;function P(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var o=_(),a=B.location;if(!T&&(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(T)T=!1,E();else{var t="POP";x.confirmTransitionTo(e,t,i,(function(n){n?E({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&&(T=!0,M(o))}(e)}))}}(o)}}var D=O(),R=g(D);D!==R&&N(R);var A=_(),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=C(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);x.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,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);x.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(I=t,N(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=x.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}},23513:(e,t,n)=>{"use strict";var r=n(89724),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}},32330:(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){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 x(e){return _(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 x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(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=_},89724:(e,t,n)=>{"use strict";e.exports=n(32330)},37362: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}}},25440: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)},79617:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},81665:(e,t,n)=>{var r=n(69457)(n(99046),"DataView");e.exports=r},24484:(e,t,n)=>{var r=n(95798),o=n(27763),i=n(24288),a=n(22891),s=n(23653);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},18207:(e,t,n)=>{var r=n(40048),o=n(6416),i=n(75019),a=n(67011),s=n(57290);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},42965:(e,t,n)=>{var r=n(69457)(n(99046),"Map");e.exports=r},17221:(e,t,n)=>{var r=n(1758),o=n(45050),i=n(95650),a=n(9773),s=n(94749);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},91619:(e,t,n)=>{var r=n(69457)(n(99046),"Promise");e.exports=r},24048:(e,t,n)=>{var r=n(69457)(n(99046),"Set");e.exports=r},17354:(e,t,n)=>{var r=n(17221),o=n(6991),i=n(62063);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},65007:(e,t,n)=>{var r=n(18207),o=n(22471),i=n(85941),a=n(74649),s=n(16151),l=n(26821);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},72211:(e,t,n)=>{var r=n(99046).Symbol;e.exports=r},53131:(e,t,n)=>{var r=n(99046).Uint8Array;e.exports=r},81456:(e,t,n)=>{var r=n(69457)(n(99046),"WeakMap");e.exports=r},69971: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)}},79553: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}},48527: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}},56278:(e,t,n)=>{var r=n(12714);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},52774: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}},16917:(e,t,n)=>{var r=n(19735),o=n(15543),i=n(97182),a=n(29821),s=n(45993),l=n(37330),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}},6703: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}},75719: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}},69102: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}},71854:e=>{e.exports=function(e){return e.split("")}},86114:(e,t,n)=>{var r=n(91560),o=n(1325);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},30058:(e,t,n)=>{var r=n(91560),o=n(1325),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)}},16524:(e,t,n)=>{var r=n(1325);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6745:(e,t,n)=>{var r=n(44526),o=n(15724);e.exports=function(e,t){return e&&r(t,o(t),e)}},80024:(e,t,n)=>{var r=n(44526),o=n(92390);e.exports=function(e,t){return e&&r(t,o(t),e)}},91560:(e,t,n)=>{var r=n(46572);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},54721:(e,t,n)=>{var r=n(65007),o=n(79553),i=n(30058),a=n(6745),s=n(80024),l=n(56685),c=n(54240),u=n(15091),d=n(23750),f=n(86038),p=n(87859),h=n(92333),m=n(92888),g=n(38838),v=n(58566),y=n(97182),b=n(29821),w=n(51351),_=n(76986),x=n(15973),E=n(15724),S=n(92390),k=1,C=2,O=4,N="[object Arguments]",T="[object Function]",I="[object GeneratorFunction]",P="[object Object]",D={};D[N]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[P]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[T]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,R,A,j,M){var L,z=n&k,F=n&C,B=n&O;if(R&&(L=j?R(t,A,j,M):R(t)),void 0!==L)return L;if(!_(t))return t;var U=y(t);if(U){if(L=m(t),!z)return c(t,L)}else{var q=h(t),$=q==T||q==I;if(b(t))return l(t,z);if(q==P||q==N||$&&!j){if(L=F||$?{}:v(t),!z)return F?d(t,s(L,t)):u(t,a(L,t))}else{if(!D[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),x(t)?t.forEach((function(r){L.add(e(r,n,R,r,t,M))})):w(t)&&t.forEach((function(r,o){L.set(o,e(r,n,R,o,t,M))}));var H=U?void 0:(B?F?p:f:F?S:E)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),i(L,o,e(r,n,R,o,t,M))})),L}},52942:(e,t,n)=>{var r=n(76986),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},54655:(e,t,n)=>{var r=n(51869),o=n(74322)(r);e.exports=o},22268: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}},83986:(e,t,n)=>{var r=n(16230)();e.exports=r},51869:(e,t,n)=>{var r=n(83986),o=n(15724);e.exports=function(e,t){return e&&r(e,t,o)}},33270:(e,t,n)=>{var r=n(10834),o=n(22413);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}},98590:(e,t,n)=>{var r=n(75719),o=n(97182);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},71519:(e,t,n)=>{var r=n(72211),o=n(17059),i=n(65044),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)}},51564:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},12714:(e,t,n)=>{var r=n(22268),o=n(15088),i=n(15768);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},98640:(e,t,n)=>{var r=n(71519),o=n(80640),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},89366:(e,t,n)=>{var r=n(74436),o=n(80640);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))}},74436:(e,t,n)=>{var r=n(65007),o=n(47145),i=n(88728),a=n(2716),s=n(92333),l=n(97182),c=n(29821),u=n(37330),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),_=b?p:s(e),x=w?p:s(t),E=(_=_==f?h:_)==h,S=(x=x==f?h:x)==h,k=_==x;if(k&&c(e)){if(!c(t))return!1;b=!0,E=!1}if(k&&!E)return y||(y=new r),b||u(e)?o(e,t,n,g,v,y):i(e,t,_,n,g,v,y);if(!(n&d)){var C=E&&m.call(e,"__wrapped__"),O=S&&m.call(t,"__wrapped__");if(C||O){var N=C?e.value():e,T=O?t.value():t;return y||(y=new r),v(N,T,n,g,y)}}return!!k&&(y||(y=new r),a(e,t,n,g,v,y))}},10319:(e,t,n)=>{var r=n(92333),o=n(80640),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},65320:(e,t,n)=>{var r=n(65007),o=n(89366),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}},15088:e=>{e.exports=function(e){return e!==e}},85722:(e,t,n)=>{var r=n(18437),o=n(54606),i=n(76986),a=n(24409),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))}},5532:(e,t,n)=>{var r=n(92333),o=n(80640),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},87120:(e,t,n)=>{var r=n(71519),o=n(6906),i=n(80640),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)]}},17370:(e,t,n)=>{var r=n(34249),o=n(65890),i=n(66379),a=n(97182),s=n(88791);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)}},556:(e,t,n)=>{var r=n(63691),o=n(89760),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}},5542:(e,t,n)=>{var r=n(76986),o=n(63691),i=n(6022),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}},34249:(e,t,n)=>{var r=n(65320),o=n(86651),i=n(18727);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)}}},65890:(e,t,n)=>{var r=n(89366),o=n(74718),i=n(15929),a=n(30621),s=n(69783),l=n(18727),c=n(22413),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)}}},20085:(e,t,n)=>{var r=n(65007),o=n(86114),i=n(83986),a=n(70939),s=n(76986),l=n(92390),c=n(78758);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)}},70939:(e,t,n)=>{var r=n(86114),o=n(56685),i=n(23713),a=n(54240),s=n(58566),l=n(15543),c=n(97182),u=n(70816),d=n(29821),f=n(18437),p=n(76986),h=n(18975),m=n(37330),g=n(78758),v=n(27158);e.exports=function(e,t,n,y,b,w,_){var x=g(e,n),E=g(t,n),S=_.get(E);if(S)r(e,n,S);else{var k=w?w(x,E,n+"",e,t,_):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(x)?k=x:u(x)?k=a(x):N?(C=!1,k=o(E,!0)):T?(C=!1,k=i(E,!0)):k=[]:h(E)||l(E)?(k=x,l(x)?k=v(x):p(x)&&!f(x)||(k=s(E))):C=!1}C&&(_.set(E,k),b(k,E,y,w,_),_.delete(E)),r(e,n,k)}}},35781:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},63873:(e,t,n)=>{var r=n(33270);e.exports=function(e){return function(t){return r(t,e)}}},53031: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}},73934:(e,t,n)=>{var r=n(66379),o=n(60466),i=n(11646);e.exports=function(e,t){return i(o(e,t,r),e+"")}},67539:(e,t,n)=>{var r=n(30058),o=n(10834),i=n(45993),a=n(76986),s=n(22413);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}},43860:(e,t,n)=>{var r=n(28663),o=n(46572),i=n(66379),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},48077: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}},19735:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},9561:(e,t,n)=>{var r=n(72211),o=n(6703),i=n(97182),a=n(34197),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}},63555:(e,t,n)=>{var r=n(35662),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},41944:e=>{e.exports=function(e){return function(t){return e(t)}}},11526:(e,t,n)=>{var r=n(17354),o=n(56278),i=n(52774),a=n(92602),s=n(23303),l=n(87707),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}},92602:e=>{e.exports=function(e,t){return e.has(t)}},52292:(e,t,n)=>{var r=n(66379);e.exports=function(e){return"function"==typeof e?e:r}},10834:(e,t,n)=>{var r=n(97182),o=n(30621),i=n(60287),a=n(28406);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},49063:(e,t,n)=>{var r=n(48077);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)}},61581:(e,t,n)=>{var r=n(53131);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},56685:(e,t,n)=>{e=n.nmd(e);var r=n(99046),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}},26645:(e,t,n)=>{var r=n(61581);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},50464:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},75686:(e,t,n)=>{var r=n(72211),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},23713:(e,t,n)=>{var r=n(61581);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},54240: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}},44526:(e,t,n)=>{var r=n(30058),o=n(91560);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}},15091:(e,t,n)=>{var r=n(44526),o=n(8324);e.exports=function(e,t){return r(e,o(e),t)}},23750:(e,t,n)=>{var r=n(44526),o=n(37255);e.exports=function(e,t){return r(e,o(e),t)}},59946:(e,t,n)=>{var r=n(99046)["__core-js_shared__"];e.exports=r},63379:(e,t,n)=>{var r=n(73934),o=n(39965);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}))}},74322:(e,t,n)=>{var r=n(96575);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}}},16230: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}}},85076:(e,t,n)=>{var r=n(49063),o=n(77819),i=n(94342),a=n(28406);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}}},77776:(e,t,n)=>{var r=n(53031),o=n(39965),i=n(84899);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)}}},45621:(e,t,n)=>{var r=n(99046),o=n(70696),i=n(59227),a=n(28406),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)}}},23303:(e,t,n)=>{var r=n(24048),o=n(15208),i=n(87707),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},46572:(e,t,n)=>{var r=n(69457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},47145:(e,t,n)=>{var r=n(17354),o=n(69102),i=n(92602),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 _=d?l(w,b,g,t,e,u):l(b,w,g,e,t,u);if(void 0!==_){if(_)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}},88728:(e,t,n)=>{var r=n(72211),o=n(53131),i=n(1325),a=n(47145),s=n(86450),l=n(87707),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]",_="[object DataView]",x=r?r.prototype:void 0,E=x?x.valueOf:void 0;e.exports=function(e,t,n,r,x,S,k){switch(n){case _: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 C=s;case v:var O=r&c;if(C||(C=l),e.size!=t.size&&!O)return!1;var N=k.get(e);if(N)return N==t;r|=u,k.set(e,t);var T=a(C(e),C(t),r,x,S,k);return k.delete(e),T;case b:if(E)return E.call(e)==E.call(t)}return!1}},2716:(e,t,n)=>{var r=n(86038),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.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return l.delete(e),l.delete(t),g}},85310:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},86038:(e,t,n)=>{var r=n(98590),o=n(8324),i=n(15724);e.exports=function(e){return r(e,i,o)}},87859:(e,t,n)=>{var r=n(98590),o=n(37255),i=n(92390);e.exports=function(e){return r(e,i,o)}},70782:(e,t,n)=>{var r=n(68727);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},86651:(e,t,n)=>{var r=n(69783),o=n(15724);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}},69457:(e,t,n)=>{var r=n(85722),o=n(78981);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},23856:(e,t,n)=>{var r=n(9305)(Object.getPrototypeOf,Object);e.exports=r},17059:(e,t,n)=>{var r=n(72211),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}},8324:(e,t,n)=>{var r=n(48527),o=n(4263),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},37255:(e,t,n)=>{var r=n(75719),o=n(23856),i=n(8324),a=n(4263),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},92333:(e,t,n)=>{var r=n(81665),o=n(42965),i=n(91619),a=n(24048),s=n(81456),l=n(71519),c=n(24409),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},78981:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5832:(e,t,n)=>{var r=n(10834),o=n(15543),i=n(97182),a=n(45993),s=n(6906),l=n(22413);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))}},77819:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},95798:(e,t,n)=>{var r=n(62527);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},27763:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},24288:(e,t,n)=>{var r=n(62527),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}},22891:(e,t,n)=>{var r=n(62527),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},23653:(e,t,n)=>{var r=n(62527),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}},92888: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}},38838:(e,t,n)=>{var r=n(61581),o=n(26645),i=n(50464),a=n(75686),s=n(23713),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]",_="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",C="[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 _:case x:case E:case S:case k:case C: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)}}},58566:(e,t,n)=>{var r=n(52942),o=n(23856),i=n(63691);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},45993: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}},39965:(e,t,n)=>{var r=n(1325),o=n(96575),i=n(45993),a=n(76986);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)}},30621:(e,t,n)=>{var r=n(97182),o=n(34197),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))}},68727:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},54606:(e,t,n)=>{var r=n(59946),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}},63691:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},69783:(e,t,n)=>{var r=n(76986);e.exports=function(e){return e===e&&!r(e)}},40048:e=>{e.exports=function(){this.__data__=[],this.size=0}},6416:(e,t,n)=>{var r=n(16524),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)}},75019:(e,t,n)=>{var r=n(16524);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67011:(e,t,n)=>{var r=n(16524);e.exports=function(e){return r(this.__data__,e)>-1}},57290:(e,t,n)=>{var r=n(16524);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}},1758:(e,t,n)=>{var r=n(24484),o=n(18207),i=n(42965);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},45050:(e,t,n)=>{var r=n(70782);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},95650:(e,t,n)=>{var r=n(70782);e.exports=function(e){return r(this,e).get(e)}},9773:(e,t,n)=>{var r=n(70782);e.exports=function(e){return r(this,e).has(e)}},94749:(e,t,n)=>{var r=n(70782);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}},86450:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},18727:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},51741:(e,t,n)=>{var r=n(21487),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},62527:(e,t,n)=>{var r=n(69457)(Object,"create");e.exports=r},89760:(e,t,n)=>{var r=n(9305)(Object.keys,Object);e.exports=r},6022:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4343:(e,t,n)=>{e=n.nmd(e);var r=n(85310),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},65044:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9305:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},60466:(e,t,n)=>{var r=n(69971),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)}}},99046:(e,t,n)=>{var r=n(85310),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},78758:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},6991:e=>{var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},62063:e=>{e.exports=function(e){return this.__data__.has(e)}},87707:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},11646:(e,t,n)=>{var r=n(43860),o=n(35535)(r);e.exports=o},35535: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)}}},22471:(e,t,n)=>{var r=n(18207);e.exports=function(){this.__data__=new r,this.size=0}},85941:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},74649:e=>{e.exports=function(e){return this.__data__.get(e)}},16151:e=>{e.exports=function(e){return this.__data__.has(e)}},26821:(e,t,n)=>{var r=n(18207),o=n(42965),i=n(17221),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}},15768: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}},94342:(e,t,n)=>{var r=n(71854),o=n(77819),i=n(44585);e.exports=function(e){return o(e)?i(e):r(e)}},60287:(e,t,n)=>{var r=n(51741),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},22413:(e,t,n)=>{var r=n(34197),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}},24409: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""}},35662:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},44585: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)||[]}},29355:(e,t,n)=>{var r=n(28406),o=n(21393);e.exports=function(e){return o(r(e).toLowerCase())}},47575:(e,t,n)=>{var r=n(54721),o=1,i=4;e.exports=function(e){return r(e,o|i)}},28663:e=>{e.exports=function(e){return function(){return e}}},58399:(e,t,n)=>{var r=n(76986),o=n(99978),i=n(59227),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 _(){var e=o();if(w(e))return x(e);p=setTimeout(_,function(e){var n=t-(e-h);return v?l(n,d-(e-m)):n}(e))}function x(e){return p=void 0,y&&c?b(e):(c=u=void 0,f)}function E(){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(_,t),g?b(e):f}(h);if(v)return clearTimeout(p),p=setTimeout(_,t),b(h)}return void 0===p&&(p=setTimeout(_,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),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},E.flush=function(){return void 0===p?f:x(o())},E}},51244:(e,t,n)=>{e.exports=n(13141)},1325:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},13141:(e,t,n)=>{var r=n(79553),o=n(54655),i=n(52292),a=n(97182);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},74718:(e,t,n)=>{var r=n(33270);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},15929:(e,t,n)=>{var r=n(51564),o=n(5832);e.exports=function(e,t){return null!=e&&o(e,t,r)}},66379:e=>{e.exports=function(e){return e}},15543:(e,t,n)=>{var r=n(98640),o=n(80640),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},97182:e=>{var t=Array.isArray;e.exports=t},96575:(e,t,n)=>{var r=n(18437),o=n(6906);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},70816:(e,t,n)=>{var r=n(96575),o=n(80640);e.exports=function(e){return o(e)&&r(e)}},29821:(e,t,n)=>{e=n.nmd(e);var r=n(99046),o=n(15454),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},55102:(e,t,n)=>{var r=n(556),o=n(92333),i=n(15543),a=n(97182),s=n(96575),l=n(29821),c=n(63691),u=n(37330),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}},74647:(e,t,n)=>{var r=n(89366);e.exports=function(e,t){return r(e,t)}},18437:(e,t,n)=>{var r=n(71519),o=n(76986),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}},6906:e=>{var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},51351:(e,t,n)=>{var r=n(10319),o=n(41944),i=n(4343),a=i&&i.isMap,s=a?o(a):r;e.exports=s},76986:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80640:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},18975:(e,t,n)=>{var r=n(71519),o=n(23856),i=n(80640),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}},15973:(e,t,n)=>{var r=n(5532),o=n(41944),i=n(4343),a=i&&i.isSet,s=a?o(a):r;e.exports=s},34197:(e,t,n)=>{var r=n(71519),o=n(80640),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},37330:(e,t,n)=>{var r=n(87120),o=n(41944),i=n(4343),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},15724:(e,t,n)=>{var r=n(16917),o=n(556),i=n(96575);e.exports=function(e){return i(e)?r(e):o(e)}},92390:(e,t,n)=>{var r=n(16917),o=n(5542),i=n(96575);e.exports=function(e){return i(e)?r(e,!0):o(e)}},21487:(e,t,n)=>{var r=n(17221),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},76564:(e,t,n)=>{var r=n(20085),o=n(63379)((function(e,t,n){r(e,t,n)}));e.exports=o},15208:e=>{e.exports=function(){}},99978:(e,t,n)=>{var r=n(99046);e.exports=function(){return r.Date.now()}},88791:(e,t,n)=>{var r=n(35781),o=n(63873),i=n(30621),a=n(22413);e.exports=function(e){return i(e)?r(a(e)):o(e)}},16991:(e,t,n)=>{var r=n(77776)();e.exports=r},81351:(e,t,n)=>{var r=n(45621)("round");e.exports=r},61120:(e,t,n)=>{var r=n(67539);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},4263:e=>{e.exports=function(){return[]}},15454:e=>{e.exports=function(){return!1}},42542:(e,t,n)=>{var r=n(58399),o=n(76986),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})}},84899:(e,t,n)=>{var r=n(59227),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}},70696:(e,t,n)=>{var r=n(84899);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},59227:(e,t,n)=>{var r=n(63555),o=n(76986),i=n(34197),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}},27158:(e,t,n)=>{var r=n(44526),o=n(92390);e.exports=function(e){return r(e,o(e))}},28406:(e,t,n)=>{var r=n(9561);e.exports=function(e){return null==e?"":r(e)}},36205:(e,t,n)=>{var r=n(17370),o=n(11526);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},21393:(e,t,n)=>{var r=n(85076)("toUpperCase");e.exports=r},9651: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)}},25586:(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}}},57730:function(e,t,n){var r,o,i;o=[n(89630)],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)},89630: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,_="",x=!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._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):_=e._.toFixed(t,l.length,r),s=_.split(".")[0],_=e._.includes(_,".")?f.delimiters.decimal+_.split(".")[1]:"",h&&0===Number(_.slice(1))&&(_="")):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),x=!0),s.length<m)for(var E=m-s.length;E>0;E--)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+_+(g||""),p?d=(p&&x?"(":"")+d+(p&&x?")":""):c>=0?d=0===c?(x?"-":"+")+d:d+(x?"-":"+"):x&&(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)},35356: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}},10159:(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,_=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="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,D=Object.prototype.propertyIsEnumerable,R=("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||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(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,""")}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||!T)return!1;try{return T.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 x=String(t);return w?A(t,x):x}if("bigint"===typeof t){var C=String(t)+"n";return w?A(t,C):C}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=N&&N>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=k.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"):T.call(t);return"object"!==typeof t||I?te:K(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="<"+_.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+="</"+_.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)||D.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+$(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-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 Y("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 Y("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return K($(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 K($(O.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return K(h.call(t));if(function(e){return"[object String]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return K($(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=R?R(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(E.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 K(e){return"Object("+e+")"}function Y(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 N?N(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||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)D.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},13888: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],_=o[5];if(!p&&u.length){var x=u.length-1,E=u[x];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,x))}u&&(i.push(u),u="",p=!1);var S="+"===_||"*"===_,k="?"===_||"*"===_,C=b||w,O=v||d;i.push({name:y||l++,prefix:v,delimiter:O,optional:k,repeat:S,pattern:C?s(C):"[^"+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)}},97262:(e,t,n)=>{"use strict";var r=n(96289);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}},21035:(e,t,n)=>{e.exports=n(97262)()},96289:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},91185: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}},88726:(e,t,n)=>{"use strict";var r=n(18187),o=n(56168),i=n(91185);e.exports={formats:i,parse:o,stringify:r}},56168:(e,t,n)=>{"use strict";var r=n(73880),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)}},18187:(e,t,n)=>{"use strict";var r=n(65742),o=n(73880),i=n(91185),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,_,x,E,S){for(var k,C=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var I=O.get(t);if(N+=1,"undefined"!==typeof I){if(I===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?C=g(n,C):C instanceof Date?C=b(C):"comma"===i&&l(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!x?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||o.isBuffer(C))return m?[_(x?n:m(n,p.encoder,E,"key",w))+"="+_(m(C,p.encoder,E,"value",w))]:[_(n)+"="+_(String(C))];var P,D=[];if("undefined"===typeof C)return D;if("comma"===i&&l(C))x&&m&&(C=o.maybeMap(C,m)),P=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))P=g;else{var R=Object.keys(C);P=v?R.sort(v):R}var A=f?n.replace(/\./g,"%2E"):n,j=a&&l(C)&&1===C.length?A+"[]":A;if(s&&l(C)&&0===C.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:C[L];if(!d||null!==z){var F=y&&f?L.replace(/\./g,"%2E"):L,B=l(C)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(D,e(z,B,i,a,s,c,d,f,"comma"===i&&x&&l(C)?null:m,g,v,y,b,w,_,x,E,U))}}return D};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:""}},73880:(e,t,n)=>{"use strict";var r=n(91185),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)}}},52519:(e,t,n)=>{"use strict";n.d(t,{Z5:()=>zo,_l:()=>xi,bK:()=>Ci});var r=n(34706),o=n(51721),i=n(87462),a=n(84419),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(23513),g=n.n(m),v=n(32252),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],_=[null,null];function x(e,t){var n=e[1];return[t.payload,n+1]}function E(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 k(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 C=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,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),I=void 0!==T&&T,P=n.context,D=void 0===P?s:P,R=(0,h.Z)(n,y),A=D;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.Z)({},R,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=R.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]),N=(0,r.useMemo)((function(){if(!m)return _;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],I=N[1],P=(0,r.useMemo)((function(){return g?p:(0,i.Z)({},p,{subscription:T})}),[g,p,T]),D=(0,r.useReducer)(x,w,C),R=D[0][0],j=D[1];if(R&&R.error)throw R.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,R,c]);E(S,[L,M,F,c,B,z,I]),E(k,[m,y,T,O,L,M,F,z,I,j],[y,T,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 N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(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])||!N(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 D(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 R=[function(e){return"function"===typeof e?D(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?D(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?R: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?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,_=void 0===w?T:w,x=(0,h.Z)(s,U),E=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),k=q(n,u,"mergeProps");return r(f,(0,i.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}const H=Z();var V,W=n(72985);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 K=G,Y=function(e,t){return G((function(){return e}),t)},Q=n(41437),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(25586);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,_e="Invariant failed";function xe(e){this.message=e}function Ee(e,t){if(!e)throw new xe(we?_e:_e+": "+(t||""))}xe.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 xe&&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 xe))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ke=function(e){return e+1},Ce=function(e,t){var n=e.droppableId===t.droppableId,r=ke(e.index),o=ke(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 "},Ne=function(e){return"\n The item has returned to its starting position\n of "+ke(e.index)+"\n"},Te={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 "+ke(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return Ce(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 "+Ne(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Ce(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 "+Ne(e.source)+"\n "}},Ie={x:0,y:0},Pe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},De=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Re=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||Ee(!1);var n=e.frame,r=De(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}),{})})),Ke=(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 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||Ee(!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||Ee(!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)},_t=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},xt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Et=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return je(t.line,n.marginBox[t.end]+_t(t,r),xt(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),xt(t,n.marginBox,r))},kt=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]+_t(t,r),xt(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 Et({axis:l,moveRelativeTo:m,isMoving:s})}return Et({axis:l,moveRelativeTo:h.page,isMoving:s})},Ct=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?kt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):wt({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Ct(n,t):t},Nt=function(e,t){var n=De(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 Tt(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=De(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=De(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)},Dt=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&&Ee(!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=De(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=Nt(n,Pe(n.scroll.current,a)),l=r.frame?$e(r,Pe(r.frame.scroll.current,a)):r,c=t.displaced,u=mt({afterDragging:Tt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=mt({afterDragging:Tt(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}},Rt=function(e){var t=e.subject.active;return t||Ee(!1),t},At=function(e,t){var n=e.page.borderBox.center;return yt(e.descriptor.id,t)?De(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)&&Ee(!1),e.subject.withPlaceholder&&Ee(!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=Ye(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)(Rt(e))})).filter((function(e){var n=Rt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Rt(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=Rt(e)[s.crossAxisStart],o=Rt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Rt(e)[s.crossAxisStart]===Rt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return at(Rt(e)[s.start],Rt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Rt(e)[s.start]-Rt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Le(n,Be(Rt(e))),o=Le(n,Be(Rt(t)));return r!==o?r-o:Rt(e)[s.start]-Rt(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,Ct(r,At(e,i))),a=Me(t,Ct(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?Dt({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=Ye(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))},Kt=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||Ee(!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||Ee(!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)},Yt=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=De(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=Kt({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&&Ee(!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||Ee(!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 Yt({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&&Ee(!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||Ee(!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?Yt({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&&Ee(!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=Ye(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&&Ee(!1),(0,i.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ee(!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=Ke(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)||Ee(!1);var g=t.payload.client;return Re(g,e.current.client.selection)?e:Yt({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)||Ee(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var _=$e(w,b);return an(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ee(!1);var x=t.payload,E=x.id,S=x.isEnabled,k=e.dimensions.droppables[E];k||Ee(!1),k.isEnabled===S&&Ee(!1);var C=(0,i.Z)({},k,{isEnabled:S});return an(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ee(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,I=e.dimensions.droppables[N];I||Ee(!1),I.isCombineEnabled===T&&Ee(!1);var P=(0,i.Z)({},I,{isCombineEnabled:T});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)||Ee(!1),e.isWindowScrollAllowed||Ee(!1);var D=t.payload.newScroll;if(Re(e.viewport.scroll.current,D))return sn(e);var R=Nt(e.viewport,D);return on(e)?Xt({state:e,viewport:R}):Yt({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!qt(e))return e;var A=t.payload.maxScroll;if(Re(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&&Ee(!1);var M=Ut({state:e,type:t.type});return M?Yt({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&&Ee(!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&&Ee(!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}},_n=function(){return{type:"FLUSH",payload:null}},xn=function(e){return{type:"DROP_COMPLETE",payload:e}},En=function(e){return{type:"DROP",payload:e}},Sn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var kn={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Cn={opacity:{drop:0,combining:.7},scale:{drop:.75}},On=.33,Nn=.55,Tn=.2+"s "+kn.outOfTheWay,In={fluid:"opacity "+Tn,snap:"transform "+Tn+", opacity "+Tn,drop:function(e){var t=e+"s "+kn.drop;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Tn,placeholder:"height "+Tn+", width "+Tn+", margin "+Tn},Pn=function(e){return Re(e,Ie)?null:"translate("+e.x+"px, "+e.y+"px)"},Dn={moveTo:Pn,drop:function(e,t){var n=Pn(e);return n?t?n+" scale("+Cn.scale.drop+")":n:null}},Rn=On,An=Nn,jn=An-Rn,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&&Ee(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ee(!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 De(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(!Re(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 Rn;if(o>=1500)return An;var i=Rn+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(xn({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()&&Ee(!1),o=be(window,[r])},stop:function(){i()||Ee(!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&&Ee(!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||Ee(!1),r=null,Un(0,(function(){return $n(e().onDragEnd,n,t,Te.onDragEnd)}))};return{beforeCapture:function(t,n){r&&Ee(!1),Un(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&Ee(!1),Un(0,(function(){var r=e().onBeforeDragStart;r&&r(qn(t,n))}))},start:function(o,i){r&&Ee(!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,Te.onDragStart)}))}))},update:function(o,a){var s=Xe(a),l=et(a);r||Ee(!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,Te.onDragUpdate)}))}))}},flush:function(){r||Ee(!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&&Ee(!1),e.dispatch(xn({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(En({reason:r.reason})))}}}},Gn=a.qC,Kn=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(xn({completed:c.completed})),"IDLE"!==n().phase&&Ee(!1),r(_n()),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&&Ee(!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))))},Yn=function(){return{additions:{},removals:{},modified:{}}};var Qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=De({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||Ee(!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:Ke(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=Yn(),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=Yn(),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=Yn())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||Ee(!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)||Ee(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||Ee(!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)||Ee(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&Ee(!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 Ye(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||Ee(!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(Re(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?Re(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 Re(a,Ie)?null:a}}(),_r=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)},xr=function(e,t){return _r({current:e.scroll.current,max:e.scroll.max,change:t})},Er=function(e,t){var n=e.frame;return!!n&&_r({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&&xr(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&&Er(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},kr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Er(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Er(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=De(t,r);return n(e.descriptor.id,o),De(t,o)},i=function(e,t,n){if(!e)return n;if(!xr(t,n))return n;var o=function(e,t){if(!xr(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=De(n,o);return r(i),De(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Bt(e.impact);r||Ee(!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)}}}},Cr=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||Ee(!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&&Ee(!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=kr({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",Nr=function(){var e=Or+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Tr=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"},Dr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Rr=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(Nr.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(Tr.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:Dr(o,"always"),resting:Dr(o,"resting"),dragging:Dr(o,"dragging"),dropAnimating:Dr(o,"dropAnimating"),userCancel:Dr(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||Ee(!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="["+Nr.contextId+'="'+e+'"]',r=We(document.querySelectorAll(n));if(!r.length)return null;var o=Ve(r,(function(e){return e.getAttribute(Nr.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||Ee(!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||Ee(!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||Ee(!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),K((function(){return""+e+t.separator+Hr++}),[t.separator,e])}var Gr=r.createContext(null);function Kr(e){0}function Yr(e,t){Kr()}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&&Ee(!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&&Ee(!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 _o(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&&_o(e,t.parentElement)}function xo(e,t){var n=t.target;return!!zr(n)&&_o(e,n)}var Eo=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 ko(e,t){return null==e?null:e[So](t)?e:ko(e.parentElement,t)}function Co(e,t){return e.closest?e.closest(t):ko(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"["+Nr.contextId+'="'+e+'"]'}(e),i=Co(r,o);return i&&zr(i)?i:null}function No(e){e.preventDefault()}function To(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="["+Tr.contextId+'="'+e+'"]',r=Ve(We(document.querySelectorAll(n)),(function(e){return e.getAttribute(Tr.id)===t}));return r&&zr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&xo(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){To({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:No,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(En({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&Ee(!1)),r.dispatch(un(e.liftActionArgs)),f="DRAGGING",(0,i.Z)({isActive:function(){return To({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 To({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:Eo(u),movementMode:"SNAP"},cleanup:ye,actions:e})},abort:function(){To({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var Do=[function(e){var t=(0,r.useRef)(fo),n=(0,r.useRef)(ye),o=K((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=K((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=Y((function(){n.current=be(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=Y((function(){"IDLE"!==t.current.type&&(t.current=fo,n.current(),a())}),[a]),l=Y((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Y((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=Y((function(e,n){"IDLE"!==t.current.type&&Ee(!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=K((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||Ee(!1),a=!1,t.current(),o()}}}}),[e]),o=Y((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=Y((function(){return t.current}),[]),i=Y((function(e){t.current=e}),[]),a=K((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=Y((function(){n.current=be(window,[a],{capture:!0,passive:!1})}),[a]),l=Y((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(vo),n.current(),s())}),[s,i]),c=Y((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Y((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&&Ee(!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=Y((function(){var e=o();"PENDING"!==e.type&&Ee(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=Y((function(e,t){"IDLE"!==o().type&&Ee(!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 Ro(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?Do:[],i||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||Ee(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Ee(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Y((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=Y((function(e){return Io({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=Y((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=Y((function(e){return function(e,t){var n=Oo(e,t);return n?n.getAttribute(Nr.draggableId):null}(t,e)}),[t]),p=Y((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Y((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(_n()))}),[l,n]),m=Y(l.isClaimed,[l]),g=K((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Kr();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||Ee(!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);Yr();var u=Qr(e),d=Y((function(){return Ao(u.current)}),[u]),f=function(e){var t=K((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]),Y((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=K((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=K((function(){return Rr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Y((0,le.Z)((function(e){var t=i.current;t||Ee(!1),t.textContent=e})),[]),s=Y((function(e){var t=o.current;t||Ee(!1),t.textContent=e}),[]);Ar((function(){(o.current||i.current)&&Ee(!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||Ee(!1),jr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=Y((function(){return a(n.dragging)}),[a,n.dragging]),c=Y((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Y((function(){i.current&&a(n.resting)}),[a,n.resting]);return K((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Y((function(e){jo(c).dispatch(e)}),[]),v=K((function(){return(0,a.DE)({publishWhileDragging:dn,updateDroppableScroll:pn,updateDroppableIsEnabled:hn,updateDroppableIsCombineEnabled:mn,collectionStarting:fn},g)}),[g]),y=function(){var e=K(Br,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=K((function(){return nr(y,v)}),[y,v]),w=K((function(){return Cr((0,i.Z)({scrollWindow:or,scrollDroppable:b.scrollDroppable},(0,a.DE)({move:gn},g)))}),[b.scrollDroppable,g]),_=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Y((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=Y((function(t){var n=Fr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Y((function(e,t){n.current===e&&(n.current=t)}),[]),c=Y((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Y((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Nr.draggableId)===e&&(n.current=e)}),[]);return Ar((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),K((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),x=K((function(){return Kn({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:_,getResponders:d,styleMarshal:m})}),[f,w,b,_,d,m]);c.current=x;var E=Y((function(){var e=jo(c);"IDLE"!==e.getState().phase&&e.dispatch(_n())}),[]),S=Y((function(){var e=jo(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(K((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var k=Y((function(e){return rr(jo(c).getState(),e)}),[]),C=Y((function(){return qt(jo(c).getState())}),[]),O=K((function(){return{marshal:b,focus:_,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,_,k,C,y]);return Ro({contextId:t,store:x,registry:y,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Gr.Provider,{value:O},r.createElement(p,{context:Ur,store:x},e.children))}var Lo=0;function zo(e){var t=K((function(){return""+Lo++}),[]),n=e.dragHandleUsageInstructions||Te.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},Ko={passive:!1},Yo={passive:!0},Qo=function(e){return e.shouldPublishImmediately?Ko:Yo};function Jo(e){var t=(0,r.useContext)(e);return t||Ee(!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=Y((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=Y((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?Cn.opacity.drop:Cn.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?Dn.drop(n,i):Dn.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:Dn.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=K((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Y((function(e){var t=i();return t||Ee(!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=K((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){Yr()}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:kn.drop,moveTo:r.newHomeClientOffset,opacity:g?Cn.opacity.drop:null,scale:g?Cn.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=Y((function(e){t.current=e}),[]),o=Y((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=K((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(),Kr(),y||di(K((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,v,g,m]));var _=K((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]),x=Y((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=K((function(){var e=ui(b),t="DRAGGING"===b.type&&b.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:_}}),[a,_,h,b,x,n]),S=K((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(E,b.snapshot,S)}));function _i(e){return Jo(oi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(wi,e):null}function xi(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(_i,(0,i.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var Ei=function(e,t){return e===t.droppable.type},Si=function(e,t){return t.draggables[e.draggable.id]};var ki={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ee(!1),document.body}},Ci=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(!Ei(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(!Ei(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(!Ei(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||Ee(!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=Y((function(){return i.current}),[]),w=Y((function(e){i.current=e}),[]),_=(Y((function(){return a.current}),[]),Y((function(e){a.current=e}),[]));Yr();var x=Y((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=K((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=K((function(){return(0,le.Z)((function(e,n){t.current||Ee(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Y((function(){var e=t.current;return e&&e.env.closestScrollable?Ho(e.env.closestScrollable):Ie}),[]),f=Y((function(){var e=d();u(e.x,e.y)}),[d,u]),p=K((function(){return ce(f)}),[f]),h=Y((function(){var e=t.current,n=Xo(e);e&&n||Ee(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Y((function(e,r){t.current&&Ee(!1);var o=s.current,i=o.getDroppableRef();i||Ee(!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=Y((function(){var e=t.current,n=Xo(e);return e&&n||Ee(!1),Ho(n)}),[]),v=Y((function(){var e=t.current;e||Ee(!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=Y((function(e){var n=t.current;n||Ee(!1);var r=Xo(n);r||Ee(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=K((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=K((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 E=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:_,animate:i,contextId:n,onTransitionEnd:x})})),S=K((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),k=g?g.dragging.draggableId:null,C=K((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(oi.Provider,{value:C},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(_i,{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())}())}));Ci.defaultProps=ki},43037:(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(34706)),i=s(n(1868)),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})},13469:(e,t,n)=>{"use strict";var r=n(43037).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},19135:(e,t,n)=>{"use strict";var r=n(34706),o=n(89289);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,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=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 E:return"Fragment";case x:return"Portal";case k:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N: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 D: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 K(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 Y(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 _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Se=null;function ke(e){if(e=wo(e)){if("function"!==typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ne(e,t,n)}finally{Ie=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(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 Re=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Re=!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,Ke=o.unstable_shouldYield,Ye=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 _t,xt,Et,St,kt,Ct=!1,Ot=[],Nt=null,Tt=null,It=null,Pt=new Map,Dt=new Map,Rt=[],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":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.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))&&xt(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 kt(e.priority,(function(){Et(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=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(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(){Ct=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==It&&zt(It)&&(It=null),Pt.forEach(Ft),Dt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!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!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==It&&Ut(It,e),Pt.forEach(t),Dt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.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=Kt(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 Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,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,Dt.set(i,Mt(Dt.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&&_t(i),null===(i=Kt(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 Kt(e,t,n,r){if(Gt=null,null!==(e=bo(e=_e(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 Yt(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:kn,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})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return Sn}var Cn=L({},dn,{key:function(e){if(e.key){var t=_n[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?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,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(Cn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),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}),Dn=on(Pn),Rn=[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!==Rn.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){Ce(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 Kn(e){if(W(_o(e)))return e}function Yn(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&&Kn(Wn)){var t=[];Hn(t,Wn,e,_e(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 Kn(Wn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(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 _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Er={},Sr={};function kr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("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 Dr(e,t){Ir.set(e,t),l(t,[e])}for(var Rr=0;Rr<Pr.length;Rr++){var Ar=Pr[Rr];Dr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Dr(Cr,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Nr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Tr,"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(Yt(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,!Re||"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=_e(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=Tn;break;case Cr:case Or:case Nr:l=vn;break;case Tr:l=In;break;case"scroll":l=fn;break;case"wheel":l=Dn;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=Nn}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=De(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=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==c?s:_o(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?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;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?_o(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=De(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=De(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=De(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=De(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}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 _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var Eo=[],So=-1;function ko(e){return{current:e}}function Co(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Oo(e,t){So++,Eo[So]=e.current,e.current=t}var No={},To=ko(No),Io=ko(!1),Po=No;function Do(e,t){var n=e.type.contextTypes;if(!n)return No;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 Ro(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ao(){Co(Io),Co(To)}function jo(e,t,n){if(To.current!==No)throw Error(i(168));Oo(To,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||No,Po=To.current,Oo(To,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,Co(Io),Co(To),Oo(To,e)):Co(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=[],Ko=0,Yo=null,Qo=1,Jo="";function Xo(e,t){Zo[Ho++]=Wo,Zo[Ho++]=Vo,Vo=e,Wo=t}function ei(e,t,n){Go[Ko++]=Qo,Go[Ko++]=Jo,Go[Ko++]=Yo,Yo=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===Yo;)Yo=Go[--Ko],Go[Ko]=null,Jo=Go[--Ko],Go[Ko]=null,Qo=Go[--Ko],Go[Ko]=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!==Yo?{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=Rc(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===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===D&&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 _:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case D: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 _:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case D: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 _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D: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===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===E){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===D&&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===E?((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 x: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 D: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 _i=wi(!0),xi=wi(!1),Ei=ko(null),Si=null,ki=null,Ci=null;function Oi(){Ci=ki=Si=null}function Ni(e){var t=Ei.current;Co(Ei),e._currentValue=t}function Ti(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,Ci=ki=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(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Si)throw Error(i(308));ki=e,Si.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Di=null;function Ri(e){null===Di?Di=[e]:Di.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ri(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&Nl)){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,Ri(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=ko(Hi),Wi=ko(Hi),Gi=ko(Hi);function Ki(e){if(e===Hi)throw Error(i(174));return e}function Yi(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)}Co(Vi),Oo(Vi,t)}function Qi(){Co(Vi),Co(Wi),Co(Gi)}function Ji(e){Ki(Gi.current);var t=Ki(Vi.current),n=le(t,e.type);t!==n&&(Oo(Wi,e),Oo(Vi,n))}function Xi(e){Wi.current===e&&(Co(Vi),Co(Wi))}var ea=ko(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 _a(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 xa(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 Ea(){}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,Ca.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));0!==(30&aa)||ka(n,t,o)}return o}function ka(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 Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(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 Da(){return ba().memoizedState}function Ra(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 Ra(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},Ka(e))Ya(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(Ka(e))Ya(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,Ri(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 Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(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,Ra(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(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===Tl)throw Error(i(349));0!==(30&aa)||ka(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,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.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:_a,useRef:Da,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Za(ba(),la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,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:xa,useRef:Da,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Za(t,la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,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=No,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Ro(t)?Po:To.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Do(e,o):No),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=Ro(t)?Po:To.current,o.context=Do(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=kc.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?xi(t,null,n,r):_i(t,e.child,n,r)}function _s(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 xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Dc(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,Es(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=Rc(i,r)).ref=t.ref,e.return=t,t.child=e}function Es(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 Cs(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(Rl,Dl),Dl|=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(Rl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Rl,Dl),Dl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Rl,Dl),Dl|=r;return ws(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Ro(n)?Po:To.current;return i=Do(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(Ro(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=Do(t,c=Ro(n)?Po:To.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=Do(t,l=Ro(n)?Po:To.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 Ns(e,t,n,r,i,o)}function Ns(e,t,n,r,o,i){ks(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=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Yi(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,Ds,Rs,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)&&_i(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=Tl)){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[Ko++]=Qo,Go[Ko++]=Jo,Go[Ko++]=Yo,Qo=e.id,Jo=e.overflow,Yo=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=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Rc(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=Rc(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),_i(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),Ti(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=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(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 Ro(t.type)&&Ao(),Vs(t),null;case 3:return r=t.stateNode,Qi(),Co(Io),Co(To),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))),Ds(e,t),Vs(t),null;case 5:Xi(t);var o=Ki(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(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=Ki(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":Y(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":Y(e,r),o=K(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=Ki(Gi.current),Ki(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(Co(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(),Ds(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ni(t.type._context),Vs(t),null;case 19:if(Co(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&Dl)&&(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 Ro(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Co(Io),Co(To),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(Co(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 Co(ea),null;case 4:return Qi(),null;case 10:return Ni(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}},Ds=function(){},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Vi.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(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 Ks=!1,Ys=!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:Ys||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(!Ys&&(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(!Ys&&(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?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=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=Nc.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?(Ys=(u=Ys)||d,ml(t,e),Ys=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){_l(f);continue}}null!==h?(h.return=p,Js=h):_l(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||Ks;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var c=Ys;if(Ks=a,(Ys=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Js=l):xl(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ks=s,Ys=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:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)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))}Ys||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 _l(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 xl(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 El,Sl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Il=null,Pl=0,Dl=0,Rl=ko(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,Kl=0,Yl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Pl?Pl&-Pl:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nc(e,t,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Al&&sc(e,Pl)),rc(e,r),1===n&&0===Nl&&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===Tl?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&Nl)&&$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=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(i(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?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=Nl;Nl|=2;var a=hc();for(Tl===e&&Pl===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),kl.current=a,Nl=o,null!==Il?t=0:(Tl=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:_c(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(_c.bind(null,e,Bl,$l),t);break}_c(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(_c.bind(null,e,Bl,$l),r);break}_c(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&Nl))throw Error(i(327));xc();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,_c(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Qe()+500,Bo&&$o())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&xc();var t=Nl;Nl|=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&(Nl=t))&&$o()}}function dc(){Dl=Rl.current,Co(Rl)}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(),Co(Io),Co(To),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:Co(ea);break;case 10:Ni(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Il=e=Rc(e.current,null),Pl=Dl=t,Al=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Di){for(t=0;t<Di.length;t++)if(null!==(r=(n=Di[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}Di=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,Cl.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=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Pl)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Pl===t||($l=null,fc(e,t));;)try{vc();break}catch(o){pc(e,o)}if(Oi(),Nl=n,kl.current=r,null!==Il)throw Error(i(261));return Tl=null,Pl=0,Al}function vc(){for(;null!==Il;)bc(Il)}function yc(){for(;null!==Il&&!Ke();)bc(Il)}function bc(e){var t=El(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?wc(e):Il=t,Cl.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,Dl)))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 _c(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{xc()}while(null!==Gl);if(0!==(6&Nl))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===Tl&&(Il=Tl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Wl||(Wl=!0,Tc(tt,(function(){return xc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,Cl.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(_){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(_){Sc(t,t.return,_)}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),Ye(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Kl=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&Kl)&&0!==e.tag&&xc(),a=e.pendingLanes,0!==(1&a)?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function xc(){if(null!==Gl){var e=wt(Kl),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,Kl=0,0!==(6&Nl))throw Error(i(331));var o=Nl;for(Nl|=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(x){Sc(l,l.return,x)}if(l===s){Js=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Js=_;break e}Js=l.return}}if(Nl=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(x){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(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)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(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 kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Pl&n)===n&&(4===Al||3===Al&&(130023424&Pl)===Pl&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(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),Cc(e,n)}function Nc(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),Cc(e,n)}function Tc(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 Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(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)Dc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,o,a,t);case S:s=8,o|=8;break;case k:return(e=Pc(12,n,t,2|o)).elementType=k,e.lanes=a,e;case T:return(e=Pc(13,n,t,o)).elementType=T,e.lanes=a,e;case I:return(e=Pc(19,n,t,o)).elementType=I,e.lanes=a,e;case R:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case N:s=11;break e;case P:s=14;break e;case D: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=R,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 No;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(Ro(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(Ro(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)}El=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:Ts(t),hi();break;case 5:Ji(t);break;case 1:Ro(t.type)&&Lo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Ei,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=Do(t,To.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,Ro(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=Ns(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 Dc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=xs(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,Cs(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(Ts(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=xi(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),ks(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 Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_s(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(Ei,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),Ti(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),Ti(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),xs(e,t,r,o=ns(r.type,o),n);case 15:return Es(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,Ro(r)?(e=!0,Lo(t)):e=!1,Ii(t,n),as(t,r,o),ls(t,r,o,n),Ns(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 Kc(e){this._internalRoot=e}function Yc(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)}Kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));$c(e,t,null,null)},Kc.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}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},_t=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&Nl)&&(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)}},xt=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=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},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=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=xo(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)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[wo,_o,xo,Ce,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(!Yc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(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(!Yc(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 Kc(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"},37906:(e,t,n)=>{"use strict";var r=n(72985);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},72985:(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(19135)},67082: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}}},42152:(e,t,n)=>{"use strict";n.d(t,{B6:()=>G,ql:()=>te});var r=n(34706),o=n(67082),i=n.n(o),a=n(37362),s=n.n(a),l=n(79961),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",_="onChangeClientState",x="titleTemplate",E="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},k=e=>{let t=S(e,"title");const n=S(e,x);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},C=e=>S(e,_)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(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}),[]),T=(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,D=(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:[]},R=(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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},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=D(t,p),a=D(n,d),s=D(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)}},K=(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}},Y=(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;Y("body",r),Y("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=P(e)),Y("title",t)})(d,f);const p={baseTag:K("base",n),linkTags:K("link",i),metaTags:K("meta",a),noscriptTags:K("noscript",s),scriptTags:K("script",c),styleTags:K("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:N(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:T("link",["rel","href"],o),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:T("noscript",["innerHTML"],o),onChangeClientState:C(o),scriptTags:T("script",["src","innerHTML"],o),styleTags:T("style",["cssText"],o),title:k(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:I(o,E)});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()(R(this.props,"helmetData"),R(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})))}}},28197:(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}},32252:(e,t,n)=>{"use strict";e.exports=n(28197)},19992:(e,t,n)=>{var r=n(34706),o=n(63481),i=n(21035),a=n(14601),s=r.createElement,l=n(80870),c=n(27801),u=n(76405),d=n(74336),f=n(630),p=n(73770);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)}})},76405:(e,t,n)=>{var r=n(56322),o=Object.keys,i=n(28908),a=n(74336);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]}}},20602:(e,t,n)=>{var r=n(34706),o=n(63481),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)})))}})},74336:e=>{e.exports=function(e){return 0===Object.keys(e).length}},28908:(e,t,n)=>{var r=n(33523);e.exports=function(e){var t=r(e);return"Object"!==t&&"Array"!==t}},80870:(e,t,n)=>{var r=n(34706),o=n(63481),i=n(9651),a=n(65871),s=n(33523),l=n(28908),c=n(20602),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},630:(e,t,n)=>{var r=n(33523),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}},73770:e=>{e.exports=function(){}},27801:(e,t,n)=>{var r=n(34706),o=n(63481),i=r.createElement,a=n(73770);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)}})},33523:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},65871:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},56322: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}},75868:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[n(21035),n(34706)],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,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,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={x:"clientWidth",y:"clientHeight"},E={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},k={x:"offsetWidth",y:"offsetHeight"},C={x:"offsetLeft",y:"offsetTop"},O={x:"overflowX",y:"overflowY"},N={x:"scrollWidth",y:"scrollHeight"},T={x:"scrollLeft",y:"scrollTop"},I={x:"width",y:"height"},P=function(){},D=!!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},R="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[x[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(R);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,D),this.scrollParent.removeEventListener("mousewheel",P,D)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[E[t]]||0,r=C[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=T[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[T[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=N[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[k[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=C[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,D),this.scrollParent.addEventListener("mousewheel",P,D))}},{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[k[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=k[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[k[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),_(r,"displayName","ReactList"),_(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}),_(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)},26836:(e,t,n)=>{"use strict";n.d(t,{rU:()=>m});var r=n(55783),o=n(51721),i=n(34706),a=n(63041),s=n(87462),l=n(63366),c=n(41437);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.sensitive,x=e.strict,E=e.style,S=e.to,k=e.innerRef,C=(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"),N=O?(0,r.LX)(n.pathname,{path:O,exact:y,sensitive:_,strict:x}):null,T=!!(b?b(N,n):N),I="function"===typeof h?h(T):h,P="function"===typeof E?E(T):E;T&&(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 D=(0,s.Z)({"aria-current":T&&o||null,className:I,style:P,to:a},C);return g!==v?D.ref=t||k:D.innerRef=k,i.createElement(m,D)}))}))},55783:(e,t,n)=>{"use strict";n.d(t,{$B:()=>U,AW:()=>I,F0:()=>b,LX:()=>T,TH:()=>F,UO:()=>B,k6:()=>z,l_:()=>k,rs:()=>M,s6:()=>y});var r=n(51721),o=n(34706),i=n(21035),a=n.n(i),s=n(63041),l=n(41437),c=n(87462),u=n(17865),d=n.n(u),f=(n(53247),n(63366)),p=(n(23513),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 _={},x=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(_[e])return _[e];var t=d().compile(e);return E<x&&(_[e]=t,E++),t}(e)(t,{pretty:!0})}function k(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 C={},O=1e4,N=0;function T(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=C[n]||(C[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return N<O&&(r[e]=i,N++),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?T(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 D(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 R(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?T(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?T(t.pathname,e):n}},17865:(e,t,n)=>{var r=n(79617);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 _=null!=m&&null!=h&&h!==m,x="+"===b||"*"===b,E="?"===b||"*"===b,S=n[2]||u,k=v||y;r.push({name:g||i++,prefix:m||"",delimiter:S,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:k?c(k):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)}},14177:(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){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 x(e){return _(e)===d}},53247:(e,t,n)=>{"use strict";n(14177)},77498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});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(34706),l=n(72985);const c=!1;var u=n(97073),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}))},_=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);_.defaultProps={classNames:""},_.propTypes={};const x=_},97073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(34706).createContext(null)},49514:(e,t,n)=>{"use strict";var r=n(34706),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},40554:(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 _=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(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)x.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:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(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 T(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?"."+N(l,0):i,_(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(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))for(var c=0;c<e.length;c++){var u=i+N(s=e[c],c);l+=T(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+=T(s=s.value,t,o,u=i+N(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 T(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 D={current:null},R={transition:null},A={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:R,ReactCurrentOwner:E};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(!C(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=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.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=k,t.createFactory=function(e){var t=k.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=C,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=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},34706:(e,t,n)=>{"use strict";e.exports=n(40554)},10161:(e,t,n)=>{"use strict";e.exports=n(49514)},29622:(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="-"},66236:(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(29622),i=n(36969),a=n(77936),s=n(54060)},36969:(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(74718)),o=a(n(74647)),i=a(n(61120));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]}},28733:(e,t,n)=>{"use strict";var r=n(66236);Object.defineProperty(t,"zl",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(46478);Object.defineProperty(t,"C1",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(36969)},46478:(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(29622)},77936:(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(36969),o=n(94091)},54060:(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(36969),a=n(94091)},94091:(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(29622),i=n(36969);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}),{})}}}},92769:(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){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(x);else{var t=r(u);null!==t&&A(_,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){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(_,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 E,S=!1,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function I(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(I)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,D=P.port2;P.port1.onmessage=I,E=function(){D.postMessage(null)}}else E=function(){v(I,0)};function R(e){k=e,S||(S=!0,E())}function A(e,n){C=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,R(x))},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(C),C=-1):g=!0,A(_,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},89289:(e,t,n)=>{"use strict";e.exports=n(92769)},70936:(e,t,n)=>{"use strict";var r=n(12076),o=n(22338),i=n(18124)(),a=n(11956),s=n(656),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}},79961: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}},65742:(e,t,n)=>{"use strict";var r=n(12076),o=n(55048),i=n(10159),a=n(656),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}},7521:(e,t,n)=>{"use strict";n.d(t,{EB:()=>C,KW:()=>E,Wq:()=>S,ht:()=>x,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)},_=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)},x=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)),_(n)},E=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)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,e)}},41437:(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)}}},80980: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()}}},99495:(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);if(null==t)return t;if(""===t)return null;return+t}function i(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>C,StringParam:()=>a,useQueryParam:()=>R,useQueryParams:()=>P});const a={encode:function(e){return null==e?e:String(e)},decode:i},s={encode:function(e){return null==e?e:String(e)},decode:o};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(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 c=n(34706);const u=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 d(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 f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,o;if(p(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:p;if(!f.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function m(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 g(){let e;return function(t,n,r){const o=m(t,n,r);return null!=e&&h(e,o)?e:(e=o,o)}}let v,y,b,w={};const _=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=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=w[i];h(a,e)&&(r[i]=e)}return w=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 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=c.createContext(E);function k(e){let{children:t,adapter:n,options:r}=e;const{adapter:o,options:i}=c.useContext(S),a=c.useMemo((()=>({adapter:null!=n?n:o,options:x(i,r)})),[n,r,o,i]);return c.createElement(S.Provider,{value:a},t)}function C(e){let{children:t,adapter:n,options:r}=e;const o=n;return o?c.createElement(o,null,(e=>c.createElement(k,{adapter:e,options:r},t))):c.createElement(k,{options:r},t)}function O(e){let{changes:t,updateType:n,currentSearchString:r,paramConfigMap:o,options:i}=e;const{searchStringToObject:a,objectToSearchString:s}=i;let c;null==n&&(n=i.updateType);const f=_(a,r),p=d(o,Object.keys(t),i.params);let h,g;if("function"===typeof t){h=t(m(f,p,u))}else h=t;return c=l(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)}(c,p),c=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}(c,p),g=s("push"===n||"replace"===n?c:{...f,...c}),(null==g?void 0:g.length)&&"?"!==g[0]&&(g=`?${g}`),null!=g?g:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),I=[];function P(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,c.useState)(g),{paramConfigMap:i,options:s}=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,c.useMemo)((()=>x(r,s)),[r,s]);let f=function(e,t){var n,r,o;const i={};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,i[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:a):i[u]=n}return s?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}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=o(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.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]:{};I.push(e);let n=t?N:T;1===I.length&&n((()=>{const t=I.slice();I.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(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=P;const R=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=D(r,n);return[o[e],(0,c.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},40645:(e,t,n)=>{"use strict";var r=n(34706);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}},90859:(e,t,n)=>{"use strict";e.exports=n(40645)},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})},64485:(e,t,n)=>{"use strict";n.d(t,{CN:()=>I,Tk:()=>M,hF:()=>K,oZ:()=>s});var r=n(84419),o=n(8064),i=n(51409),a=n(67386),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 _=Symbol("forceQueryFn"),x=e=>"function"===typeof e[_];function E(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 k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(t)];r&&n(r)}var N={};function T(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:N,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;k(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=x(r);e[r.queryCacheKey]??={status:"uninitialized",endpointName:r.endpointName},k(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;k(e,n.arg.queryCacheKey,(e=>{if(e.requestId!==n.requestId&&!x(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;k(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:N,reducers:{removeMutationResult:{reducer(e,t){let{payload:n}=t;const r=C(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[C(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)}))}}),_=(0,o.oM)({name:`${t}/invalidation`,initialState:N,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;_.caseReducers.updateProvidedBy(e,_.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),E=(0,o.oM)({name:`${t}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),T=(0,o.oM)({name:`${t}/internalSubscriptions`,initialState:N,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:_.reducer,subscriptions:T.reducer,config:I.reducer});return{reducer:(e,t)=>P(y.match(t)?void 0:e,t),actions:{...I.actions,...b.actions,...E.actions,...T.actions,...w.actions,..._.actions,resetApiState:y}}}var I=Symbol.for("RTKQ/skipToken"),P={status:"uninitialized"},D=(0,i.Uy)(P,(()=>{})),R=(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)?C(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(),K=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:k,refetchOnMountOrArgChange:O,refetchOnFocus:N,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:K,upsertQueryData:Y,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=E;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[_]: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=E;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!!x(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,[_]:()=>({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}=T({context:a,queryThunk:M,mutationThunk:L,reducerPath:u,assertTagType:j,config:{refetchOnFocus:N,refetchOnReconnect:P,refetchOnMountOrArgChange:O,keepUnusedDataFor:k,reducerPath:u,invalidationBehavior:A}});W(t.util,{patchQueryData:q,updateQueryData:K,upsertQueryData:Y,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=>D,i=e=>R;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]??D,a)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??I:e,r(t===I?i:e=>s(e)?.mutations?.[t]??R,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,[_]: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,[_]:h}),x=o.endpoints[e].select(s),E=g(b),S=x(v());d(g);const{requestId:k,abort:C}=E,O=S.requestId!==k,N=a.get(g)?.[y],T=()=>x(v()),I=Object.assign(h?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:s,requestId:k,subscriptionOptions:p,queryCacheKey:y,abort:C,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:k}))},updateSubscriptionOptions(t){I.subscriptionOptions=t,g(u({endpointName:e,requestId:k,queryCacheKey:y,options:t}))}});if(!N&&!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))}}}}};K()},8064:(e,t,n)=>{"use strict";n.d(t,{s4:()=>g,xC:()=>x,PH:()=>d,hg:()=>B,oM:()=>V,rJ:()=>te,A6:()=>N,Q:()=>O,Gx:()=>j,KD:()=>A,zR:()=>P,Iv:()=>D,h_:()=>R,x0:()=>k,cw:()=>v});var r=n(51409),o=n(67386),i=n(84419);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},_=!0;function x(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(!_&&r&&"function"!==typeof r)throw new Error(te(2));if("function"===typeof r){if(u=r(t),!_&&!Array.isArray(u))throw new Error(te(3))}else u=t();if(!_&&u.some((e=>"function"!==typeof e)))throw new Error(te(4));let d=i.qC;o&&(d=c({trace:!_,..."object"===typeof o&&o}));const f=(0,i.md)(...u),p=w(f);if(!_&&s&&"function"!==typeof s)throw new Error(te(5));let h="function"===typeof s?s(p):p();if(!_&&!Array.isArray(h))throw new Error(te(6));if(!_&&h.some((e=>"function"!==typeof e)))throw new Error(te(7));_||!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 E(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",k=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+=S[64*Math.random()|0];return e},C=(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=>C(t,e)))}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.every((t=>C(t,e)))}function T(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=>T(e,["pending"]):I(t)?e=>O(...t.map((e=>e.pending)))(e):P()(t[0])}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>T(e,["rejected"]):I(t)?e=>O(...t.map((e=>e.rejected)))(e):D()(t[0])}function R(){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=>N(D(...t),r)(e):R()(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=>T(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=>T(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):k(),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?E(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[o,i,a]=E(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:K}=Object,Y="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:k(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(te(22))}}}),{withTypes:()=>J}),X=Object.assign(d(`${Y}/add`),{withTypes:()=>X}),ee=(d(`${Y}/removeAll`),Object.assign(d(`${Y}/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. `}},51409:(e,t,n)=>{"use strict";n.d(t,{Js:()=>f,QE:()=>J,Uy:()=>Y,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,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 x(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=E),Object.freeze(e),t&&p(e,((e,t)=>x(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function I(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function P(e){D(e),e.drafts_.forEach(A),e.drafts_=null}function D(e){e===k&&(k=e.parent_)}function R(e){return k={drafts_:[],parent_:k,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_&&x(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.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_:T(),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_:T()).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,t.scope_.immer_.useStrictShallowCopy_)}else n=_(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}N("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 K=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=R(this),i=H(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?P(r):D(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_&&x(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=R(this),n=H(e,void 0);return n[i].isManual_=!0,D(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)))}},Y=K.produce,Q=K.produceWithPatches.bind(K),J=(K.setAutoFreeze.bind(K),K.setUseStrictShallowCopy.bind(K),K.applyPatches.bind(K));K.createDraft.bind(K),K.finishDraft.bind(K)},95877:(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(34706),o=n(90859),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"),_=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),E=Symbol.for("react.context"),S=Symbol.for("react.server_context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),k),P=N;function D(e){if("object"===typeof e&&null!==e){const t=e.$$typeof;switch(t){case v:{const n=e.type;switch(n){case b:case _:case w:case C:case O:return n;default:{const e=n&&n.$$typeof;switch(e){case S:case E:case k:case T:case N:case x:return e;default:return t}}}}case y:return t}}}function R(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},K={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y={[I]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[P]:K};function Q(e){return D(e)===N?K:Y[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 R(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),_=i.useRef(void 0),x=i.useRef(!1),E=i.useRef(!1),S=i.useRef(void 0);Z((()=>(E.current=!0,()=>{E.current=!1})),[]);const k=i.useMemo((()=>()=>_.current&&a===w.current?_.current:h(d.getState(),a)),[d,a]),C=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,N,T;let I;O=se,N=[w,b,x,a,_,v],Z((()=>O(...N)),T);try{I=ie(C,k,p?()=>h(p(),a):k)}catch(D){throw S.current&&(D.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),D}Z((()=>{S.current=void 0,_.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)},84419:(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}},67386:(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),_=a(t),x=p((function(){return l++,d.apply(null,arguments)}),...b);const E=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}(_,arguments);return r=x.apply(null,e),r}),...w);return Object.assign(E,{resultFunc:d,memoizedResultFunc:x,dependencies:_,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})},23337:(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},75475:(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=>"undefined"!==typeof Promise&&e instanceof Promise;function x(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 E(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,k,C;"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 N=(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 T(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(_(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 N(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(_(r)?r:Promise.resolve(r));return N(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 ke.create(this,this._def)}nullable(){return Ce.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ie.create(this,this._def)}promise(){return Ee.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({...T(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Oe({...T(this._def),innerType:this,defaultValue:t,typeName:Me.ZodDefault})}brand(){return new Pe({typeName:Me.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Ne({...T(this._def),innerType:this,catchValue:t,typeName:Me.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return De.create(this,e)}readonly(){return Re.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P=/^c[^\s-]{8,}$/i,D=/^[0-9a-z]+$/,R=/^[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)D.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)R.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,...T(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,...T(e)});class K 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 K({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new K({...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}}K.create=e=>{var t;return new K({checks:[],typeName:Me.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class Y 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)}}Y.create=e=>new Y({typeName:Me.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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]=ke.create(ae(r))}return new se({...e._def,shape:()=>t})}return e instanceof ie?new ie({...e._def,type:ae(e.element)}):e instanceof ke?ke.create(ae(e.unwrap())):e instanceof Ce?Ce.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,...T(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 ke;)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,...T(t)}),se.strictCreate=(e,t)=>new se({shape:()=>e,unknownKeys:"strict",catchall:re.create(),typeName:Me.ZodObject,...T(t)}),se.lazycreate=(e,t)=>new se({shape:e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...T(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,...T(t)});const ce=e=>e instanceof ye?ce(e.schema):e instanceof Se?ce(e.innerType()):e instanceof be?[e.value]:e instanceof _e?e.options:e instanceof xe?r.objectValues(e.enum):e instanceof Oe?ce(e._def.innerType):e instanceof X?[void 0]:e instanceof ee?[null]:e instanceof ke?[void 0,...ce(e.unwrap())]:e instanceof Ce?[null,...ce(e.unwrap())]:e instanceof Pe||e instanceof Re?ce(e.unwrap()):e instanceof Ne?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,...T(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,...T(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,...T(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,...T(n)}:{keyType:V.create(),valueType:e,typeName:Me.ZodRecord,...T(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,...T(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,...T(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 Ee){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,...T(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,...T(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 _e({values:e,typeName:Me.ZodEnum,...T(t)})}be.create=(e,t)=>new be({value:e,typeName:Me.ZodLiteral,...T(t)});class _e extends I{constructor(){super(...arguments),k.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(x(this,k,"f")||E(this,k,new Set(this._def.values),"f"),!x(this,k,"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 _e.create(e,{...this._def,...t})}exclude(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return _e.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}k=new WeakMap,_e.create=we;class xe extends I{constructor(){super(...arguments),C.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(x(this,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!x(this,C,"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}}C=new WeakMap,xe.create=(e,t)=>new xe({values:e,typeName:Me.ZodNativeEnum,...T(t)});class Ee 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}))))}}Ee.create=(e,t)=>new Ee({type:e,typeName:Me.ZodPromise,...T(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,...T(n)}),Se.createWithPreprocess=(e,t,n)=>new Se({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...T(n)});class ke extends I{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Me.ZodOptional,...T(t)});class Ce extends I{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:Me.ZodNullable,...T(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,...T(t)});class Ne 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 _(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}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Me.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class Te 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}}}Te.create=e=>new Te({typeName:Me.ZodNaN,...T(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 De 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 De({in:e,out:t,typeName:Me.ZodPipeline})}}class Re extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return _(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()}Re.create=(e,t)=>new Re({innerType:e,typeName:Me.ZodReadonly,...T(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=Te.create,Be=K.create,Ue=Y.create,qe=Q.create,$e=J.create,Ze=X.create,He=ee.create,Ve=te.create,We=ne.create,Ge=re.create,Ke=oe.create,Ye=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=_e.create,ut=xe.create,dt=Ee.create,ft=Se.create,pt=ke.create,ht=Ce.create,mt=Se.createWithPreprocess,gt=De.create,vt={string:e=>V.create({...e,coerce:!0}),number:e=>G.create({...e,coerce:!0}),boolean:e=>Y.create({...e,coerce:!0}),bigint:e=>K.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:_,get util(){return r},get objectUtil(){return o},ZodParsedType:i,getParsedType:a,ZodType:I,datetimeRegex:H,ZodString:V,ZodNumber:G,ZodBigInt:K,ZodBoolean:Y,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:_e,ZodNativeEnum:xe,ZodPromise:Ee,ZodEffects:Se,ZodTransformer:Se,ZodOptional:ke,ZodNullable:Ce,ZodDefault:Oe,ZodCatch:Ne,ZodNaN:Te,BRAND:Ie,ZodBranded:Pe,ZodPipeline:De,ZodReadonly:Re,custom:Ae,Schema:I,ZodSchema:I,late:je,get ZodFirstPartyTypeKind(){return Me},coerce:vt,any:Ve,array:Ye,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:Ke,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+"."+{127:"87732853",178:"06d01a51",182:"e718ea47",225:"6ec6c3bc",228:"15a25302",253:"f7d84b09",323:"04d21c99",328:"a089accc",346:"e1c8a643",433:"81528b91",452:"04a5841e",453:"2308e7f9",521:"dba82744",579:"70d17f7b",592:"33a5d27a",610:"f75b0536",633:"e316425c",682:"bf02377d",689:"96ae92f1",753:"86744d44",766:"1355c78d",778:"5edf04d9",824:"c19b1bc3",835:"95ce5d5d",846:"84557d12",856:"fd02cec2",862:"05757f0e",896:"178c5b16",1035:"3975a471",1072:"13801473",1074:"27b17806",1109:"834e0892",1198:"40c55cbb",1222:"5faf3e57",1236:"2027a259",1276:"bc76b58b",1376:"ef761c31",1388:"48ada893",1389:"b6125fec",1410:"5d95e270",1455:"867345a6",1460:"b46aac4e",1487:"e009a462",1577:"17bb1420",1640:"5929573a",1670:"2dbca85f",1728:"9b6329a2",1758:"6eae603b",1854:"d147fe93",1855:"56d941ac",1886:"28e0fe60",1923:"38b88781",1948:"5891b584",1957:"6f0516a3",1971:"4d7bf65b",2039:"1eea423d",2070:"aeb8e3ff",2100:"853fb83b",2216:"b37b568b",2262:"df0b7687",2293:"bb3e0c81",2405:"94de1a6b",2421:"996f12f5",2455:"e995eba9",2503:"69406a9c",2516:"ae307d9a",2570:"b620520c",2598:"ca5e9f76",2651:"3cdca23d",2670:"6f0af2f6",2734:"0ddcbf8e",2769:"5a17f94c",2780:"482ff693",2804:"16f024df",2807:"8fbe9929",2840:"9c4aae7d",2845:"5e07c0d9",2869:"a31f24d4",2871:"7f64530d",2881:"44a91214",2967:"f31227d9",2972:"e9dd6d38",2974:"2083f7ab",3010:"ba0b7e6c",3017:"cd53b447",3062:"5a010e35",3092:"b2453934",3107:"8a298574",3145:"6fe2a282",3164:"4fedcbc1",3166:"cccccfe6",3230:"9e1f2161",3235:"98e63dfc",3283:"d4976b24",3421:"67ee8518",3493:"f1cd881c",3495:"b1e292fa",3520:"038b81f7",3607:"c222c9e3",3643:"05f9828c",3768:"ce22b76d",3828:"d46cab67",3830:"f20a084f",3883:"fdb7b91a",3933:"1914913e",3950:"e7782b0d",3972:"a75c55f6",3997:"49583a3c",3998:"22c04eb2",4006:"14a73158",4018:"1e215668",4023:"da1a6eeb",4040:"5ec4aca9",4066:"21a0994b",4087:"76cc8418",4099:"049bf0b8",4135:"066e893b",4175:"84846314",4222:"a626a694",4226:"b1a9f9a0",4231:"75694c42",4254:"b0fb883a",4320:"2cdac293",4324:"9835557b",4408:"a9538443",4413:"5197a5f2",4442:"d3e799fe",4463:"8556c625",4465:"383f9181",4503:"e2e4d1e6",4535:"d2047797",4563:"c37ee423",4609:"4537e278",4628:"694b1225",4639:"06a52d60",4657:"375c590c",4712:"0fccf2f7",4723:"61d3b0c8",4779:"5a27c84f",4806:"7aabd034",4859:"99586a72",5014:"b76ade01",5066:"91e2d7b8",5070:"7db921b1",5118:"cc95f5a6",5124:"e2e4a17c",5130:"8076069a",5154:"74a87136",5160:"f92a5ad6",5203:"922e0927",5257:"5bc0f543",5319:"3a9cc4fa",5467:"289ca54e",5484:"4ee82172",5503:"3a78f1a9",5605:"6b78bfb4",5641:"f0e59fe6",5682:"853e9ee8",5685:"11cd560a",5748:"47ca831b",5821:"26335bd8",5879:"abdba9dc",5957:"1584eca6",5982:"cae758ee",5986:"f8e39c8a",6010:"c0760b69",6062:"2c4512c7",6070:"b32e6682",6079:"340afa32",6118:"062d9ccd",6170:"8626a56e",6246:"0425b742",6289:"d27d9a38",6292:"e0b2ffee",6332:"d1a078f2",6395:"c9121a28",6435:"70056056",6595:"bc7ea867",6625:"f5590154",6659:"cacbbf83",6660:"fd286d4f",6663:"debc2102",6679:"fb8e5993",6698:"31f9be10",6731:"3a45d4e4",6789:"2651b83a",6845:"d02f4e48",6866:"de45efb9",6894:"46e65325",6898:"5ae6e6cc",6914:"3401c32a",6927:"a118705d",6943:"27a31755",6953:"3813672a",7043:"adbaef91",7054:"356e5176",7076:"11720320",7083:"b229fb1f",7132:"d2e7640b",7199:"5dcadd74",7245:"cde86cfb",7273:"b27ab405",7275:"ee76d1bd",7289:"d83d9214",7324:"d07154de",7367:"090c8c59",7439:"1c298639",7441:"71fcae9c",7443:"79bf7ff1",7446:"a1010c10",7628:"839116b6",7656:"6c9df81e",7690:"c75c8231",7812:"f9c2eea9",7828:"4945daef",7852:"96468333",7862:"e14664b0",7950:"8f716467",7994:"b03482fd",8122:"e7079404",8169:"79ab989b",8297:"dda322b6",8329:"074348a0",8332:"d2782086",8427:"caeabc21",8446:"394ec1f3",8504:"a44b4097",8505:"d87e41c1",8606:"75e4ff18",8645:"597fca49",8726:"fe404098",8731:"50b8e539",8828:"9da287ba",8835:"8efe953e",8841:"4faa97c2",8864:"ed883bcc",8908:"92f2bf17",9008:"edcbe0c3",9101:"45d32e67",9139:"488e8581",9350:"ecc944e8",9352:"156d0fc5",9396:"bc133817",9433:"2ff2430b",9530:"f9b76944",9617:"96c8507d",9625:"9143bdfa",9685:"6eae880e",9687:"f3eeaa60",9703:"ba37cf9a",9711:"238b6021",9757:"3b30a50f",9765:"40c53742",9776:"4f121296",9811:"048274db",9821:"35ddadcd",9937:"5bd86e47",9963:"a094a76b",9974:"cbfc7c5f"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{328:"86929762",1198:"3fe0ca8d",1276:"4de79a91",2881:"afcb07f6",3017:"3afd70ce",3933:"5f7354e1",4135:"f4bca932",5118:"a86ede1f",5879:"555349bb",6395:"f2109564",6866:"2c643863",6894:"dec87f60",7054:"c5c1bf09"}[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]&&{328:1,1198:1,1276:1,2881:1,3017:1,3933:1,4135:1,5118:1,5879:1,6395:1,6866:1,6894:1,7054: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(5118!=t){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)}else e[t]=0};var t=(t,r)=>{var o,i,[a,s,l]=r,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=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(37906),t=n(65186),r=n(81167),o=n(29226);const{store:i,history:a}=(0,o.xC)();var s=n(10161);!async function(){let r;r=await Promise.resolve().then(n.bind(n,65186)).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.2e9a830c.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/main.29d0e3af.js.LICENSE.txt index f63f93dcd2..f63f93dcd2 100644 --- a/ydb/core/viewer/monitoring/static/js/main.2e9a830c.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/main.29d0e3af.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/main.2e9a830c.js b/ydb/core/viewer/monitoring/static/js/main.2e9a830c.js deleted file mode 100644 index e11c6e22f7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/main.2e9a830c.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.2e9a830c.js.LICENSE.txt */ -(()=>{var e={75147:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,t:()=>a});var r=n(34706),o=n(10161);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)}},90205:(e,t,n)=>{"use strict";n.d(t,{u:()=>x,$:()=>E});var r,o,i,a,s,l,c,u,d,f,p,h=n(14561),m=n(99294),g=n(34706);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(10161);const w=(0,m.cn)("empty-state"),_={s:150,m:250,l:350},x=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:_[i],height:_[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 E(e){let{isEmpty:t,children:n,className:r,...o}=e;return t?(0,b.jsx)("div",{className:r,children:(0,b.jsx)(x,{...o})}):n}},38914:(e,t,n)=>{"use strict";n.d(t,{SV:()=>M,l2:()=>z,TI:()=>L});var r=n(34706),o=n(97604),i=n(11746);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(77498),d=n(98960);const f=(0,n(87578).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(81778),g=n(35035);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 _=(0,o.s)(b),x=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(_(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))}));x.Summary=b,x.displayName="Disclosure";var E=n(72616);const S=(0,r.createContext)(null),k={didCatch:!1,error:null};class C extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=k}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(k)}}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(k))}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(99294);var N=n(75147),T=n(91538),I=n(37711);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"}'),D=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"}'),R=(0,I.wZ)("ydb-error-boundary",{ru:D,en:P});var A=n(10161);const j=(0,O.cn)("ydb-error-boundary");function M(e){let{children:t}=e;const n=(0,N.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)(C,{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)(T.Q,{name:"error",className:j("illustration")}),(0,A.jsxs)("div",{className:j("content"),children:[(0,A.jsx)("h2",{className:j("error-title"),children:R("error-title")}),(0,A.jsx)("div",{className:j("error-description"),children:R("error-description")}),(0,A.jsx)(x,{summary:R("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)(E.z,{view:"outlined",onClick:n,children:R("button-reset")}),o&&(0,A.jsx)(E.z,{view:"outlined",onClick:()=>o(t),children:R("report-problem")})]})]})]})}},71037:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(90205),o=n(91538),i=n(56164),a=n(10161);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})}},93225:(e,t,n)=>{"use strict";n.d(t,{S:()=>u,u:()=>d});var r=n(34706),o=n(90205),i=n(91538),a=n(71037),s=n(15327),l=n(56164),c=n(10161);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))}},87149:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(56164),o=n(10161);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})}},15327:(e,t,n)=>{"use strict";n.d(t,{V:()=>r.V});var r=n(87149)},56164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(37711);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})},91538:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(34706),o=n(53785),i=n(99294),a=n(10161);const s={light:{403:()=>n.e(4226).then(n.bind(n,44226)),thumbsUp:()=>n.e(6595).then(n.bind(n,16595)),error:()=>n.e(2503).then(n.bind(n,12503))},dark:{403:()=>n.e(3768).then(n.bind(n,93768)),thumbsUp:()=>n.e(3283).then(n.bind(n,3283)),error:()=>n.e(1855).then(n.bind(n,71855))}},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}},43862:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(34706),o=n(99294),i=n(73211),a=n(10161);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})})}},73211:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(37711);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.wZ)("ydb-components-info-viewer",{en:o})},41591:(e,t,n)=>{"use strict";n.d(t,{Z6:()=>o.Z,_P:()=>r._,aE:()=>o.a});var r=n(43862),o=n(9379)},9379:(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)})):[]},32489:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(26836),o=n(99294),i=n(10161);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})}},67653:(e,t,n)=>{"use strict";n.d(t,{h:()=>r.h});var r=n(32489)},90808:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var r=n(34706),o=n(15152),i=n(17823),a=n(99294),s=n(67653),l=n(10161);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})}},41989:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(81550),o=n(99294),i=n(83658),a=n(10161);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}},48653:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});n(34706);var r=n(41989),o=n(10161);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}},13467:(e,t,n)=>{"use strict";n.d(t,{bP:()=>p,A8:()=>b,Fb:()=>v});var r=n(83797),o=n(65e3),i=n(99294),a=n(55842),s=n(90808),l=n(37711);const c=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI"}'),u=(0,l.wZ)("ydb-node-name-tooltip",{en:c});var d=n(10161);const f=(0,i.cn)("ydb-node-endpoints-tooltip-content"),p=e=>{let{data:t,nodeHref:n}=e;const i=(0,a.ix)(o.VH),l=[];return null!==t&&void 0!==t&&t.Rack&&l.push({name:u("field_rack"),children:t.Rack,key:"Rack"}),null!==t&&void 0!==t&&t.Endpoints&&t.Endpoints.length&&t.Endpoints.forEach((e=>{let{Name:t,Address:n}=e;t&&n&&l.push({name:t,children:n,key:t})})),null!==t&&void 0!==t&&t.Host&&l.push({name:u("field_host"),children:t.Host,copyText:t.Host,key:"Host"}),i&&n&&l.push({name:"Links",children:(0,d.jsx)(s.j,{title:u("context_developer-ui"),url:n}),key:"developerUi"}),(0,d.jsx)("div",{className:f("list-container"),children:(0,d.jsx)(r.w,{responsive:!0,children:l.map((e=>{let{children:t,key:n,...o}=e;return(0,d.jsx)(r.w.Item,{...o,children:(0,d.jsx)("span",{className:f("definition"),children:t})},n)}))})})};var h=n(14075),m=n(41591);const g=(0,m.aE)({values:{ChangeTime:e=>(0,h.fG)(e)},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),v=e=>{let{data:t={},className:n}=e;const{TabletId:r,NodeId:o,State:i,Type:a,ChangeTime:s,Generation:l}=t,c=(0,m.Z6)(g,{TabletId:r,NodeId:o,State:i,Type:a,ChangeTime:s,Generation:l});return(0,d.jsx)(m._P,{className:n,info:c,dots:!1,size:"s"})},y=(0,m.aE)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),b=e=>{let{data:t={},className:n}=e;const r=(0,m.Z6)(y,t);return(0,d.jsx)(m._P,{className:n,info:r,dots:!1,size:"s"})}},61979:(e,t,n)=>{"use strict";n.d(t,{f:()=>f,r:()=>d});var r=n(34706),o=n(99495),i=n(33921),a=n(78276),s=n(12775);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(27810),u=n(55842);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}}},4128:(e,t,n)=>{"use strict";n.d(t,{B7:()=>f,V2:()=>d,_Y:()=>u,xu:()=>o});var r=n(46878);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},i={id:o.overview,title:"Overview"},a={id:o.tenants,title:"Databases"},s={id:o.nodes,title:"Nodes"},l={id:o.storage,title:"Storage"},c={id:o.versions,title:"Versions"},u=[i,a,s,l,{id:o.tablets,title:"Tablets"},c];function d(e){return Object.values(o).includes(e)}const f=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)}},75544:(e,t,n)=>{"use strict";n.d(t,{IA:()=>i,P_:()=>o,ZJ:()=>l,a3:()=>c,mD:()=>a,pV:()=>s});var r=n(46878);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)}},60064:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>a,Sj:()=>l,XV:()=>i,c7:()=>s});var r=n(46878),o=n(53096);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)},65186:(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:()=>Fi,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,SAVED_QUERIES_KEY:()=>Be.DG,SECOND_IN_MS:()=>Be.NO,SHOW_DOMAIN_DATABASE_KEY:()=>Be.Zy,SingleClusterApp:()=>xi,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:()=>Bi.su,YdbWebVersionAPI:()=>Bi.Iy,appRoutes:()=>de.ZP,cn:()=>fe.cn,componentsRegistry:()=>bi,configureStore:()=>Gt.xC,createApi:()=>Bi.LC,getMonitoringClusterLink:()=>Si,getMonitoringLink:()=>Ei,getSettingValue:()=>qi.Cx,getTabletLabel:()=>Be.qV,getUserSettings:()=>st,i18n:()=>pe.ag,registerKeysets:()=>pe.wZ,reportWebVitals:()=>Zi.Z,rootReducer:()=>Gt.QW,setSettingValue:()=>qi.xI,settingsManager:()=>Ui.r,toaster:()=>$i.m,useSetting:()=>u.yu,useTypedSelector:()=>u.ix});var r={};n.r(r),n.d(r,{ClusterSlot:()=>_n,ClustersSlot:()=>wn,NodeSlot:()=>En,PDiskPageSlot:()=>Sn,RedirectSlot:()=>Tn,RoutesSlot:()=>Nn,StorageGroupSlot:()=>Cn,TabletSlot:()=>On,TenantSlot:()=>xn,VDiskPageSlot:()=>kn});var o=n(34706),i=n(42152),a=n(95877),s=n(38914),l=n(75147),c=n(65e3),u=n(55842);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(14561),p=n(72555),h=n(86357),m=n(81550),g=n(79777),v=n(91528);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(6826),w=n(3581),_=n(2915),x=n(23795),E=n(72616),S={button_close:"Close"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.e)({en:S,ru:k},`${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"),N=e=>{let{children:t,closeIconSize:n=23,hasSeparator:r,closeTitle:i=C("button_close"),onClose:a}=e;return o.createElement("div",{className:O({separator:r})},o.createElement(x.x,{className:O("text"),as:"h3",variant:"subheader-3"},t),a&&o.createElement(E.z,{onClick:a,view:"flat",size:"l",extraProps:{"aria-label":i}},o.createElement(f.J,{data:_.Z,size:n})))};function T(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 D(e,"",new RegExp(t,"i"))}function D(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}=D(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}=D(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]=R(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 R(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}=R(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}}N.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=T(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 K(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=T((0,b.d)(r,i)),p=T((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 Y=(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:Y({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:Y("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:_}=P(i,y),x=M(_,r),E=Object.keys(_),S=x.page&&E.includes(x.page.id)?x.page.id:void 0,[k,C]=o.useState(S||(t&&E.includes(t)?t:void 0)),O=o.useRef(null),T=o.useRef(null),I="mobile"===u;o.useEffect((()=>{var e;null===(e=T.current)||void 0===e||e.clearFocus()}),[y]),o.useEffect((()=>{const e=()=>{var e;null===(e=T.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let D=k;D&&!(null===(p=_[D])||void 0===p?void 0:p.hidden)||(D=null===(h=Object.values(_).find((e=>{let{hidden:t}=e;return!t})))||void 0===h?void 0:h.id);const R=e=>{C((t=>(t!==e&&(null===d||void 0===d||d(e)),e)))};o.useEffect((()=>{D!==k&&R(D)})),o.useEffect((()=>{S&&C(S)}),[S]),o.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.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))}(x,e,t);return o.createElement("div",{key:t.title,className:Y("section",{selected:n}),ref:n?x.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:Y("section-heading")},m?o.createElement(g.k,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:Y("section-right-adornment",{hidden:v})},m(t))):t.title),t.header&&(I?o.createElement("div",{className:Y("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:Y("section-item")},o.cloneElement(n,Object.assign(Object.assign({},n.props),{highlightedTitle:y&&t?ne(t,y):t})))})(e))))};return o.createElement(L,{value:x},o.createElement("div",{className:Y({view:u})},I?o.createElement(o.Fragment,null,o.createElement(K,{inputRef:O,className:Y("search"),initialValue:n,onChange:b,autoFocus:!1,inputSize:"xl"}),o.createElement(Z,{items:w,onChange:R,activeItemId:D,className:Y("tabs")})):o.createElement("div",{className:Y("menu"),onClick:()=>{O.current&&O.current.focus()},onKeyDown:e=>{T.current&&T.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(N,null,s),o.createElement(K,{inputRef:O,className:Y("search"),initialValue:n,onChange:b,placeholder:l,autoFocus:!0}),o.createElement(B,{ref:T,items:w,onChange:R,activeItemId:D})),o.createElement("div",{className:Y("page")},(e=>{if(!e)return"function"===typeof a?a():o.createElement("div",{className:Y("not-found")},c);const t=_[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!I&&o.createElement(N,{hasSeparator:!0,onClose:f},ee(w,e)),o.createElement("div",{className:Y("content")},t.map((t=>A(e,t)))))})(D))))}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:Y("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:Y("item-title",{badge:s})},l(r));return o.createElement("div",{className:Y("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:Y("item-heading"),id:n},p?o.createElement(g.k,{className:Y("item-title-wrapper"),gap:3},m,o.createElement("div",{className:Y("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:Y("item-description")},u):null),o.createElement("div",{className:Y("item-content")},i))};var re=n(77315),oe=n(67661),ie=n(10161);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=[],showTitle:i}=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,showTitle:null===i||void 0===i||i,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(55783),de=n(46878),fe=n(99294),pe=n(37711);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)(E.z,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{n(void 0)},children:(0,ie.jsx)(f.J,{data:le})}):(0,ie.jsx)(E.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(24874),_e=n(32678),xe=n(19992),Ee=n.n(xe),Se=n(13467);const ke=(0,fe.cn)("node-tootltip"),Ce=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:ke(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"ID"}),(0,ie.jsx)("td",{className:ke("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Rack"}),(0,ie.jsx)("td",{className:ke("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Net"}),(0,ie.jsx)("td",{className:ke("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,fe.cn)("tabletsOverall-tooltip"),Ne=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)))})})})},Te=(0,fe.cn)("histogram-tooltip"),Ie=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Te(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"Count"}),(0,ie.jsx)("td",{className:Te("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"From"}),(0,ie.jsx)("td",{className:Te("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"To"}),(0,ie.jsx)("td",{className:Te("value"),children:t.rightBound||"?"})]})]})})})},Pe=(0,fe.cn)("cell-tooltip"),De=(0,fe.cn)("json-tooltip"),Re={pool:e=>(0,ie.jsx)(Se.A8,{data:e}),tablet:e=>(0,ie.jsx)(Se.Fb,{data:e}),node:e=>(0,ie.jsx)(Ce,{data:e}),nodeEndpoints:e=>(0,ie.jsx)(Se.bP,{data:e}),tabletsOverall:e=>(0,ie.jsx)(Ne,{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:De(),children:(0,ie.jsx)(Ee(),{data:e,search:!1,isExpanded:()=>!0,className:De("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:Re[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:_e.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(52232),Fe=n(51409),Be=n(27810);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.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")},Ke={settingKey:Be.IG,title:qe("settings.useClusterBalancerAsBackend.title"),description:qe("settings.useClusterBalancerAsBackend.description")},Ye={settingKey:Be.y6,title:qe("settings.editor.autocomplete.title"),description:qe("settings.editor.autocomplete.description")},Qe={settingKey:Be.XX,title:qe("settings.editor.autocomplete-on-enter.title"),description:qe("settings.editor.autocomplete-on-enter.description")},Je={title:qe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"6.28.0"},Xe={id:"appearanceSection",title:qe("section.appearance"),settings:[Ze,Ve,He,Ge]},et={id:"experimentsSection",title:qe("section.experiments"),settings:[We]},tt={id:"devSettingsSection",title:qe("section.dev-setting"),settings:[Ye,Qe]},nt={id:"aboutSettingsSection",title:qe("section.about"),settings:[Je]},rt={id:"generalPage",title:qe("page.general"),icon:{data:je,height:14,width:14},sections:[Xe],showTitle:!1},ot={id:"experimentsPage",title:qe("page.experiments"),icon:{data:Me},sections:[et],showTitle:!1},it={id:"editorPage",title:qe("page.editor"),icon:{data:Le},sections:[tt]},at={id:"aboutPage",title:qe("page.about"),icon:{data:ze.Z},sections:[nt],showTitle:!1};function st(e){let{singleClusterMode:t}=e;const n=t?ot:(0,Fe.Uy)(ot,(e=>{e.sections[0].settings.push(Ke)}));return[rt,it,n,at]}var lt=n(93225),ct=n(48653);function ut(){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 dt(e){return"function"===typeof e&&"__slotName"in e}class ft{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)&&dt(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(!dt(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var pt=n(32677),ht=n(4969),mt=n(99669);const gt=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"})),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:"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 yt,bt,wt=n(17823);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 Et=function(e){return o.createElement("svg",xt({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),yt||(yt=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"})),bt||(bt=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"})))},St=(0,fe.cn)("authentication");const kt=function(e){let{closable:t=!1}=e;const n=(0,ue.k6)(),r=(0,ue.TH)(),[i,{isLoading:a}]=c.nc.useAuthenticateMutation(void 0),{returnUrl:s}=(0,de.mB)(r),[l,u]=o.useState(""),[d,p]=o.useState(""),[m,g]=o.useState(""),[v,y]=o.useState(""),[b,w]=o.useState(!1),x=()=>{i({user:l,password:d}).unwrap().then((()=>{if(s){const e=decodeURIComponent(s.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}})).catch((e=>{(function(e){return _t(e)&&e.data.error.includes("user")})(e)&&g(e.data.error),function(e){return _t(e)&&e.data.error.includes("password")}(e)&&y(e.data.error)}))},S=e=>{13===e.keyCode&&x()};return(0,ie.jsxs)("section",{className:St(),children:[(0,ie.jsxs)("form",{className:St("form-wrapper"),children:[(0,ie.jsxs)("div",{className:St("header"),children:[(0,ie.jsxs)("div",{className:St("logo"),children:[(0,ie.jsx)(f.J,{data:Et,size:24}),"YDB"]}),(0,ie.jsx)(wt.r,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,ie.jsx)("h2",{className:St("title"),children:"Sign in"}),(0,ie.jsx)("div",{className:St("field-wrapper"),children:(0,ie.jsx)(h.o,{value:l,onUpdate:e=>{u(e),g("")},placeholder:"Username",error:m,onKeyDown:S,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:St("field-wrapper"),children:[(0,ie.jsx)(h.o,{value:d,onUpdate:e=>{p(e),y("")},type:b?"text":"password",placeholder:"Password",error:v,onKeyDown:S,size:"l"}),(0,ie.jsx)(E.z,{onClick:()=>{w((e=>!e))},size:"l",className:St("show-password-button"),children:(0,ie.jsx)(f.J,{data:b?gt:vt,size:16})})]}),(0,ie.jsx)(E.z,{view:"action",onClick:x,width:"max",size:"l",disabled:Boolean(!l||m||v),loading:a,className:St("button-sign-in"),children:"Sign in"})]}),t&&n.length>1&&(0,ie.jsx)(E.z,{onClick:()=>{n.go(-1)},className:St("close"),children:(0,ie.jsx)(f.J,{data:_.Z,size:24})})]})};var Ct=n(4128),Ot=n(42542),Nt=n.n(Ot),Tt=n(87578);const It=(0,Tt.Ge)("breadcrumbs");function Pt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:It("switcher",{more:!0})}))}const Dt=(0,Tt.Ge)("breadcrumbs");const Rt=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(wt.r,{key:t.text,view:"secondary",href:t.href,title:l,onClick:t.action,className:Dt("item",{"prev-current":r})},s):o.createElement(Pt,{key:t.text,title:l,onClick:t.action},s):o.createElement("div",{title:l,className:Dt("item",{current:!0})},s)}));Rt.displayName="Breadcrumbs.Item";var At=n(36413);const jt=JSON.parse('{"label_more":"Show more"}'),Mt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),Lt=(0,w.e)({en:jt,ru:Mt},"Breadcrumbs"),zt=(0,Tt.Ge)("breadcrumbs");function Ft(e){let{popupStyle:t,popupPlacement:n,items:r}=e;return o.createElement(At.h,{items:r,popupProps:{className:zt("popup",{staircase:"staircase"===t}),placement:n},renderSwitcher:e=>{let{onClick:t}=e;return o.createElement(Pt,{title:Lt("label_more"),onClick:t},"...")}})}Ft.displayName="Breadcrumbs.More";const Bt=(0,Tt.Ge)("breadcrumbs");function Ut(e){let{renderItemDivider:t}=e;return o.createElement("div",{"aria-hidden":!0,className:Bt("divider")},t?t():"/")}Ut.displayName="Breadcrumbs.Separator";const qt=(0,Tt.Ge)("breadcrumbs");var $t,Zt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}($t||($t={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Zt||(Zt={}));class Ht 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?Ht.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Ht.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=Ht.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:qt({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:qt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(Rt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement(Ut,{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(Ut,{renderItemDivider:r}),o.createElement(Ft,{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(`.${qt("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${qt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${qt("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===$t.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))})}}}Ht.defaultProps={popupPlacement:["bottom","top"]};var Vt=n(67653),Wt=n(90808),Gt=n(78276),Kt=n(10730);const 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:"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"})),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.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"})),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:"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"})),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:"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"})),en=(0,fe.cn)("tablet-icon"),tn=e=>{let{text:t,className:n}=e;return(0,ie.jsx)("div",{className:en(null,n),children:(0,ie.jsx)("div",{className:en("type"),children:t||"T"})})};var nn=n(53096),rn=n(75544),on=n(60064);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,Ct.B7)(r,t),icon:(0,ie.jsx)(Yt,{})}]},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)(Qt,{})};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)(Jt,{});case"Compute":return(0,ie.jsx)(Xt,{});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,tenantName:o}=e,i=o?dn(e,t):un(e,t),a={text:n||sn("breadcrumbs.tablet"),icon:(0,ie.jsx)(tn,{text:(0,Be.qV)(r)})};return i.push(a),i},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&&!Gt.j4?"/internal":Gt.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)(Ht,{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)(Vt.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)(Wt.j,{title:Be.Ah,url:yn(n)})]})},wn=ut("clusters"),_n=ut("cluster"),xn=ut("tenant"),En=ut("node"),Sn=ut("pDisk"),kn=ut("vDisk"),Cn=ut("storageGroup"),On=ut("tablet"),Nn=ut("routes"),Tn=ut("redirect"),In=JSON.parse('{"pages.clusters":"All clusters"}'),Pn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Dn=(0,pe.wZ)("ydb-app-content",{ru:Pn,en:In}),Rn=(0,fe.cn)("app"),An=[{path:de.ZP.cluster,slot:_n,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(6906),n.e(7474),n.e(2136),n.e(2740)]).then(n.bind(n,62787))),"Cluster"),wrapper:zn},{path:de.ZP.tenant,slot:xn,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(8337),n.e(8918),n.e(7474),n.e(2136),n.e(949)]).then(n.bind(n,1513))),"Tenant"),wrapper:zn},{path:de.ZP.node,slot:En,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(7474),n.e(896),n.e(3556)]).then(n.bind(n,33100))),"Node"),wrapper:zn},{path:de.ZP.pDisk,slot:Sn,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(7474),n.e(896),n.e(7641)]).then(n.bind(n,71676))),"PDiskPage"),wrapper:zn},{path:de.ZP.vDisk,slot:kn,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(7474),n.e(896),n.e(6703)]).then(n.bind(n,49038))),"VDiskPage"),wrapper:zn},{path:de.ZP.storageGroup,slot:Cn,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(9687),n.e(7474),n.e(6395)]).then(n.bind(n,13812))),"StorageGroupPage"),wrapper:zn},{path:de.ZP.tablet,slot:On,component:(0,mt.k)((()=>Promise.all([n.e(328),n.e(8337),n.e(7054)]).then(n.bind(n,65874))),"Tablet"),wrapper:zn}],jn=(0,mt.k)((()=>Promise.all([n.e(328),n.e(7812),n.e(1276)]).then(n.bind(n,61490))),"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:Rn("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 ft(t)),[t])}(e),i=r.get(Nn),a=r.get(Tn),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ct.B7)()}:{to:de.ZP.clusters};let l;return n||(l={text:Dn("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)(ct.s,{loading:n,size:"l",children:(0,ie.jsx)(lt.S,{error:r,children:t})})}function Bn(){return ht.W.useGetNodesListQuery(void 0),null}function Un(){return pt.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:Rn({embedded:t}),children:n?e.children:(0,ie.jsx)(kt,{})})})]})}));var $n=n(85507),Zn=n(99495);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(29837),Gn=n(68045),Kn=n(41715),Yn=n(90132),Qn=n(76943);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(87382);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(Kn.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(),[_,x]=o.useState(!1),E=o.useRef(null),S=c||E,k=o.useRef(null),C=t.type||"regular",O=t.current||!1,N=t.tooltipText||t.title,T=t.icon,I=t.iconSize||18,P=t.iconQa,D=t.id===lr,R=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=E.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(Yn.M,{title:"",description:N,disabled:!s||D&&_||l,placement:"right",className:mr("icon-tooltip",{"item-type":C})},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:C,current:O,compact:w},n),ref:E,"data-qa":t.qa,onClick:e=>{D?x(!_):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:k},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:R},m()));return t.link?o.createElement("a",{href:t.link,className:mr("link")},c):c},L=T?o.createElement(f.J,{qa:P,data:T,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:E};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:k,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),F,_&&D&&(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:E,onClose:()=>x(!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(95936);y(".gn-footer-item{height:40px;width:100%}");const _r=(0,v.b)("footer-item"),xr=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(br,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:_r({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},Er=o.memo((e=>{let{renderContent:t,size:n}=e;return o.createElement(o.Fragment,null,t({size:n}))}));Er.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(Er,{size:t,renderContent:i}):a)};var kr=n(10824);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 Cr=o.lazy((()=>n.e(6866).then(n.bind(n,26866)).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,kr.b)({compact:t},n),style:Object.assign({},{"--gn-aside-header-size":`${a}px`})},i&&o.createElement(o.Suspense,{fallback:null},o.createElement(Cr,{topAlert:i})),o.createElement("div",{className:(0,kr.b)("pane-container")},r)))}),{Content:e=>{let{children:t,renderContent:n}=e;const{size:r}=rr();return o.createElement(Sr,{size:r,className:(0,kr.b)("content"),renderContent:n},t)}});var Nr=n(54695);const Tr=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 Dr(){return Dr=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},Dr.apply(this,arguments)}var Rr=function(e){return o.createElement("svg",Dr({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(9446),jr=n(72985);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},Kr="unmounted",Yr="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=Yr,r.appearStatus=Qr):o=Jr:o=t.unmountOnExit||t.mountOnEnter?Kr:Yr,r.state={status:o},r.nextCallback=null,r}Fr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Kr?{status:Yr}: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===Yr&&this.setState({status:Kr})},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:Yr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Yr},(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===Kr)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=Kr,eo.EXITED=Yr,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))},_o=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 xo=(0,v.b)("all-pages-list-item"),Eo=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:xo(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.J,{className:xo("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:xo("text")},t.title),n&&o.createElement(E.z,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(E.z.Icon,null,t.hidden?o.createElement(Tr,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 ko="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 Co=(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!==ko));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!==ko));a(n.map((e=>e.id!==t.id?e:t)))}),[a]),m=(0,o.useCallback)(((e,t,n)=>o.createElement(Eo,{item:e,editMode:l,onToggle:()=>h(e)})),[l,h]),v=(0,o.useCallback)((()=>{if(!a)return;const e=s.current.filter((e=>e.id!==ko));a(e.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a]);return o.createElement(g.k,{className:Co(null,r),gap:"5",direction:"column"},o.createElement(g.k,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(x.x,{variant:"subheader-2"},So(l?"all-panel.title.editing":"all-panel.title.main")),o.createElement(E.z,{selected:l,view:"normal",onClick:u},t||o.createElement(f.J,{data:Gn.Z}))),o.createElement(g.k,{className:Co("content"),gap:"5",direction:"column"},Object.keys(d).map((e=>o.createElement(g.k,{key:e,direction:"column",gap:"3"},o.createElement(x.x,{className:Co("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(E.z,{onClick:v},So("all-panel.resetToDefault")))};let No;No="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let To=null,Io=null;const Po=No.clearTimeout,Do=No.setTimeout,Ro=No.cancelAnimationFrame||No.mozCancelAnimationFrame||No.webkitCancelAnimationFrame,Ao=No.requestAnimationFrame||No.mozRequestAnimationFrame||No.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__&&To(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=No.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==Ro||null==Ao?(To=Po,Io=function(e){return Do(e,20)}):(To=function(e){let[t,n]=e;Ro(t),Po(n)},Io=function(e){const t=Ao((function(){Po(n),e()})),n=Do((function(){Ro(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 Ko,Yo=(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),Ko||(Ko=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||Yo("button_expand"):a||Yo("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(E.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 _=o.createElement(E.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 x;return x="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(_,Boolean(p)):_),!p&&(b?o.createElement("div",{onClick:d},u(x,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},x)))},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,kr.b)("header",{"with-decoration":r})},o.createElement(ni,Object.assign({},e,{onClick:l,compact:a,buttonWrapperClassName:(0,kr.b)("logo-button-wrapper"),buttonClassName:(0,kr.b)("logo-button")})),o.createElement(Vo,{type:"subheader",items:i||ri,onItemClick:t}),o.createElement(f.J,{data:Rr,className:(0,kr.b)("header-divider"),width:56,height:29}))},ii=()=>{const{panelItems:e,onClosePanel:t,size:n}=er();return e?o.createElement(_o,{className:(0,kr.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,Nr.k)(t,g.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,kr.b)("aside",f),style:{width:n},"data-qa":h},o.createElement("div",{className:(0,kr.b)("aside-popup-anchor"),ref:g}),o.createElement("div",{className:(0,kr.b)("aside-content",{"with-decoration":i})},u&&o.createElement("div",{className:(0,kr.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:Yo("label_more"),onItemClick:r,multipleTooltip:a}):o.createElement("div",{className:(0,kr.b)("menu-items")}),o.createElement("div",{className:(0,kr.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:ko,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)(xr,{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:Et,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)(xr,{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)(xr,{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)(_i,{children:(0,ie.jsx)(l.t,{registry:r,children:o})})})})})})}function _i(e){let{children:t}=e;const[n]=(0,u.yu)(Be.bw);return(0,ie.jsx)($n.f,{theme:n,children:t})}const xi=(0,a.$j)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function(e){let{store:t,history:n,singleClusterMode:r,children:o,userSettings:a=st({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 Ei(e){let{monitoring:t,dbName:n,dbType:r,clusterName:o}=e;try{const e=ki(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=ki(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 ki(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ci=n(99175),Oi=n(11383),Ni=n(25791),Ti=n(12775),Ii=n(61979);const Pi=(0,fe.cn)("extended-cluster"),Di=e=>{const t=(0,Ni.q)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Pi("balancer"),children:[t,(0,ie.jsx)(Ci.m,{text:t,size:"s",className:Pi("clipboard-button")})]})}},Ri=(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=[Di(n)]),o},Ai=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{getVersionToColorMap:()=>(0,Oi.n$)((0,Oi.kn)(e))}},ji=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Ni.M2)(n);if(e)return"string"===typeof e?(0,Ti.sA)(e,n):null!==(t=(0,Ti.pY)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&o&&(i.getMonitoringLink=(n,r)=>n&&r?o({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),i};function Mi(e){let{component:t,getMonitoringLink:n,getMonitoringClusterLink:r}=e;const{monitoring:o,balancer:i,versions:a,cluster:s,useClusterBalancerAsBackend:l,additionalNodesProps:c}=(0,Ii.r)();return(0,ie.jsx)("div",{className:Pi(),children:(0,ie.jsx)(t,{additionalClusterProps:Ri(null===s||void 0===s?void 0:s.Name,o,i,r),additionalVersionsProps:Ai(a),additionalTenantsProps:ji(null===s||void 0===s?void 0:s.Name,o,i,l,n),additionalNodesProps:c})})}function Li(e){let{component:t}=e;const{balancer:n}=(0,Kt.kW)(),{additionalNodesProps:r}=(0,Ii.f)({balancer:n});return(0,ie.jsx)(t,{additionalNodesProps:r})}function zi(e){let{component:t,getMonitoringLink:n}=e;const{balancer:r,monitoring:o}=(0,Kt.kW)(),{additionalNodesProps:i}=(0,Ii.f)({balancer:r}),a={getMonitoringLink:(e,t)=>o&&e&&t&&n?n({monitoring:o,dbName:e,dbType:t}):null};return(0,ie.jsx)(t,{additionalTenantProps:a,additionalNodesProps:i})}function Fi(e){let{store:t,history:n,getMonitoringLink:r=Ei,getMonitoringClusterLink:o=Si,userSettings:i,children:a}=e;return(0,ie.jsxs)(xi,{store:t,history:n,userSettings:i,children:[(0,ie.jsx)(_n,{children:e=>{let{component:t}=e;return(0,ie.jsx)(Mi,{component:t,getMonitoringLink:r,getMonitoringClusterLink:o})}}),(0,ie.jsx)(En,{children:e=>{let{component:t}=e;return(0,ie.jsx)(Li,{component:t})}}),(0,ie.jsx)(xn,{children:e=>{let{component:t}=e;return(0,ie.jsx)(zi,{component:t,getMonitoringLink:r})}}),a]})}var Bi=n(83018),Ui=n(9951),qi=n(32341),$i=n(72484),Zi=n(81167)},81167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{e&&e instanceof Function&&n.e(1072).then(n.bind(n,21072)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))}},46878:(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(55102),o=n.n(r),i=n(13888),a=n(88726),s=n.n(a),l=n(78276);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})}},83018:(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(47575),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)},_=d("Date"),x=d("File"),E=d("Blob"),S=d("FileList"),k=d("URLSearchParams"),[C,O,N,T]=["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 D="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,R=e=>!h(e)&&e!==D;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=[],D.addEventListener("message",(e=>{let{source:t,data:o}=e;t===D&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),D.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(D.postMessage)),H="undefined"!==typeof queueMicrotask?queueMicrotask.bind(D):"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:C,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:_,isFile:x,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:k,isTypedArray:A,isFileList:S,forEach:I,merge:function e(){const{caseless:t}=R(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:D,isContextDefined:R,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,K={};["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=>{K[e]={value:e}})),Object.defineProperties(W,K),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 Y=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 Y("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 Y.from(o,Y.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,_e=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"]),xe=Symbol("internals");function Ee(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 ke(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 Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ee(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]&&_e[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=Ee(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=Ee(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!ke(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ee(e)){const o=V.findKey(n,e);!o||t&&!ke(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&&!ke(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[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ee(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}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ce.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),V.freezeMethods(Ce);const Oe=Ce;function Ne(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 Te(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Ie,Y,{__CANCEL__:!0});const Pe=Ie;function De(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Re=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=Re(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());De((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 Y("Request aborted",Y.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Y("Network Error",Y.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 Y(t,o.clarifyTimeoutError?Y.ETIMEDOUT:Y.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 Y("Unsupported protocol "+v+":",Y.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 Y?t:new Pe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Y(`timeout ${t} of ms exceeded`,Y.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,Ke=Ge&&"function"===typeof ReadableStream,Ye=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=Ke&&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=Ke&&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 Y(`Response type '${e}' is not supported`,Y.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 Ye(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,Ye)}}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()}),Ye),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)=>{De(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 Y("Network Error",Y.ERR_NETWORK,e,h),{cause:b.cause||b});throw Y.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 Y(`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 Y("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=Ne.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=Ne.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return Te(t)||(ct(e),t&&t.response&&(t.response.data=Ne.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 Y(r(o," has been removed"+(t?" in "+t:"")),Y.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 Y("options must be an object",Y.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 Y("option "+i+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+i,Y.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 _t=wt;const xt=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);xt.Axios=vt,xt.CanceledError=Pe,xt.CancelToken=bt,xt.isCancel=Te,xt.VERSION=dt,xt.toFormData=ne,xt.AxiosError=Y,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=qe,xt.AxiosHeaders=Oe,xt.formToJSON=e=>ye(V.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=lt.getAdapter,xt.HttpStatusCode=_t,xt.default=xt;const Et=xt,{Axios:St,AxiosError:kt,CanceledError:Ct,isCancel:Ot,CancelToken:Nt,VERSION:Tt,all:It,Cancel:Pt,isAxiosError:Dt,spread:Rt,toFormData:At,AxiosHeaders:jt,HttpStatusCode:Mt,formToJSON:Lt,getAdapter:zt,mergeConfig:Ft}=Et;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=Et.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(Et.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:Et.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=Et.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(25440);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 Kt(){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 Yt={retries:3,retryCondition:Gt,retryDelay:function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Math.max(0,Kt(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{...Yt,...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,Kt(e));return n+.2*n*Math.random()},Jt.isRetryableError=Vt;const Xt=Jt;var en=n(78276),tn=n(27810),nn=n(70340),rn=n(87717),on=n(9759);const an=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});var sn=n(9951);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,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,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,timeout:2e4,...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}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:n,filter:`(TabletId=${t})`},{concurrentId:r,requestConfig:{signal:o}})}getTabletHistory(e){let{id:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:n,filter:`(TabletId=${t})`},{concurrentId:r,requestConfig:{signal:o}})}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);return this.post(this.getPath("/viewer/json/query"),{...e,base64:o},{schema:"multi",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.")}getOperationList(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}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})}},9759:(e,t,n)=>{"use strict";n.d(t,{i:()=>a,N:()=>s});var r=n(75475);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{}}},9951:(e,t,n)=>{"use strict";n.d(t,{r:()=>l,t:()=>s});var r=n(53096),o=n(27810),i=n(83751),a=n(73689);const s={[o.bw]:"system",[o.Px]:void 0,[o.yT]:!1,[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)}}},29226:(e,t,n)=>{"use strict";n.d(t,{y3:()=>O,EZ:()=>N,qw:()=>T,xC:()=>z,j4:()=>j,Vq:()=>M,dx:()=>A});var r=n(8064),o=n(63041),i=n(28733),a=n(83018);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(18671),c=n(78759),u=n(32341),d=n(32678),f=n(51244),p=n.n(f),h=n(15724),m=n.n(h),g=n(76564),v=n.n(g),y=n(88726),b=n.n(y),w=n(29622),_=n(36969),x=n(77936),E=n(54060),S=n(51992);const k={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 C(e,t){return v()({},e,t.query)}let O,N,T,I="";function P(e,t,n){const r=(0,E.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,_.getMatchingDeclaredPath)(k,e),a=i&&k[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(k.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 D(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,x.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function R(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zl)(k,C,e,t,P);return{locationMiddleware:n,reducersWithLocation:D(k,C,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:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.lX)({basename:N}),u=R(e,r,{singleClusterMode:t},[c.h.middleware]);return(0,i.C1)(u,r),window.api=n,{history:r,store:u}}},78276:(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(29226),o=n(18671)},78759:(e,t,n)=>{"use strict";n.d(t,{h:()=>w});var r=n(64485),o=n(84419),i=n(8064),a=n(34706),s=n(95877),l=n(67386);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:_,buildMutationHook:x,usePrefetch:E}=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 _=h(u?r.CN:n,f,b.endpointDefinitions[e],e),x=m({refetchOnReconnect:s,refetchOnFocus:l,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,a.useRef)(!1),S=(0,a.useRef)();let{queryCacheKey:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=y.current.isRequestSubscribed(k,C));const N=!O&&E.current;return w((()=>{E.current=O})),w((()=>{N&&(S.current=void 0)}),[N]),w((()=>{const e=S.current;if(_===r.CN)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===_)x!==t&&e.updateSubscriptionOptions(x);else{e?.unsubscribe();const t=v(g(_,{subscriptionOptions:x,forceRefetch:c}));S.current=t}}),[v,g,c,_,x,N]),(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()}})),[])},x=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])},E=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],_,{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),x=c(),E=m(x.getState(),p.current);return g((()=>{p.current=E}),[E]),w};return{useQueryState:E,useQuerySubscription:u,useLazyQuerySubscription:x,useLazyQuery(e){const[t,n]=x(e),r=E(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=E(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,_=(0,a.useCallback)((()=>{n((()=>{p&&h(void 0),i&&f(t.internalActions.removeMutationResult({requestId:g,fixedCacheKey:i}))}))}),[f,i,p,g]),{endpointName:x,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N}=b;(0,a.useDebugValue)({endpointName:x,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N});const T=(0,a.useMemo)((()=>({...b,originalArgs:w,reset:_})),[b,w,_]);return(0,a.useMemo)((()=>[m,T]),[m,T])}},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,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:E}),c(y,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=_(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=x(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()},65e3:(e,t,n)=>{"use strict";n.d(t,{VH:()=>u,ZP:()=>s,dy:()=>d,nc:()=>f});var r=n(8064),o=n(87717),i=n(78759);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"})},32677:(e,t,n)=>{"use strict";n.d(t,{AE:()=>s,Gi:()=>o,Yv:()=>a});var r=n(67386);const o=n(78759).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}},39202:(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(55842),o=n(32677);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},10730:(e,t,n)=>{"use strict";n.d(t,{UM:()=>E,ZP:()=>x,DS:()=>N,le:()=>O,LQ:()=>_,kW:()=>S});var r=n(8064),o=n(67386),i=n(64485),a=n(99495),s=n(4128),l=n(9759),c=n(39242),u=n(27810),d=n(83751),f=n(78759),p=n(4969);const h=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 m(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&&h(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 g=e=>{var t,n;return m(null===(t=(0,d.gY)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const v=localStorage.getItem(u.S7);let y;y=(0,s.V2)(v)?v:s.xu.overview;const b={defaultClusterTab:y},w=(0,r.oM)({name:"cluster",initialState:b,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function _(e){return t=>{(0,s.V2)(e)&&(localStorage.setItem(u.S7,e),t(w.actions.setDefaultClusterTab(e)))}}const x=w.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}),o=t.Domain;if(!o)return{data:{clusterData:t}};if((0,c.j)(t))return{data:{clusterData:t,groupsStats:(r=t,m(r.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`)(o),n=await window.api.sendQuery({query:e,database:o,action:"execute-scan"});return(0,d.gW)(n)?{data:{clusterData:t}}:{data:{clusterData:t,groupsStats:g(n)}}}catch{return{data:{clusterData:t}}}}catch(o){return{error:o}}var r},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 S(){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 k=(0,o.P1)((e=>e),(e=>E.endpoints.getClusterInfo.select(e))),C=(0,o.P1)((e=>e),((e,t)=>k(t)),((e,t)=>t(e).data)),O=(0,o.P1)(((e,t)=>t),((e,t)=>C(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})),N=(0,o.P1)(((e,t)=>C(e,t)),(e=>(0,p.s)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{const n=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:n}})):r:[]}))},33921:(e,t,n)=>{"use strict";n.d(t,{g_:()=>c,W1:()=>u,ZP:()=>l});var r=n(8064),o=n(78759),i=n(11383);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"})},43363:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>C,Ae:()=>S,B8:()=>O,K0:()=>N,NU:()=>k,ZP:()=>D,hO:()=>E,mg:()=>x,qV:()=>I,u$:()=>P,vS:()=>T});var r=n(9951),o=n(6782),i=n(5594),a=n(27810),s=n(83751),l=n(73689),c=n(78759);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,_={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:""}},x=c.h.injectEndpoints({endpoints:e=>({executeQuery:e.mutation({queryFn:async(e,t)=>{let{query:n,database:r,querySettings:a={},enableTracingLevel:c,queryId:u}=e,{signal:d,dispatch:f}=t,p="execute",m=s.jM.yql;f(S({type:i.X.EXECUTE,queryId:u,isLoading:!0})),"pg"===a.queryMode?(p="execute-query",m=s.jM.pg):a.queryMode&&(p=`execute-${a.queryMode}`);try{var g;const e=Date.now(),t=await window.api.sendQuery({query:n,database:r,action:p,syntax:m,stats:a.statisticsMode,tracingLevel:a.tracingLevel&&c?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:u},{signal:d});if((0,s.gW)(t))return f(S({type:i.X.EXECUTE,error:t,isLoading:!1,queryId:u})),{error:t};const v=(0,s.gY)(t);v.traceId=null===t||void 0===t||null===(g=t._meta)||void 0===g?void 0:g.traceId;const y={};if(v.stats){const{DurationUs:e,Executions:[{FinishTimeMs:t}]=[{}]}=v.stats;y.durationUs=e,y.endTime=t}else{const t=Date.now();y.durationUs=1e3*(t-e),y.endTime=t}return f(function(e,t){return{type:h,data:{queryId:t,stats:e}}}(y,u)),f(S({type:i.X.EXECUTE,data:v,isLoading:!1,queryId:u})),{data:null}}catch(v){return f(S({type:i.X.EXECUTE,error:v,isLoading:!1,queryId:u})),{error:v}}}})}),overrideExisting:"throw"}),E=(e,t)=>({type:p,data:{queryText:e,queryId:t}});function S(e){return{type:f,data:e}}const k=()=>({type:g}),C=()=>({type:v}),O=e=>{let{input:t}=e;return{type:d,data:{input:t}}},N=e=>({type:y,data:e}),T=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}}),D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,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}}},55159:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,Im:()=>f,MU:()=>m});var r=n(42805),o=n(8064),i=n(83751),a=n(78759);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="/*UI-QUERY-EXCLUDE*/",d=(0,o.oM)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:f}=d.actions,p=d.reducer,h=(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}%' OR UserSID ILIKE '%${t.text}%')`),i.join(" AND ")}(e,t);return`\nSELECT ${u}\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"} AND QueryText NOT LIKE '%${u}%'\nORDER BY CPUTimeUs DESC\n`},m=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({query:h(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{const e=null!==r&&void 0!==r&&r.text?`Query ILIKE '%${r.text}%' OR UserSID ILIKE '%${r.text}%'`:"",t=`SELECT ${u}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${e||"true"} AND Query NOT LIKE '%${u}%'\n ORDER BY\n SessionStartAt\n LIMIT 100`,a=await window.api.sendQuery({query:t,database:n,action:"execute-scan"},{signal:o,withRetries:!0});if((0,i.gW)(a))throw a;return{data:(0,i.gY)(a)}}catch(a){return{error:a}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},50015:(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}}},85709:(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}},51992:(e,t,n)=>{"use strict";n.d(t,{E3:()=>i,U_:()=>l,Vc:()=>c,ZP:()=>s});var r=n(8064),o=n(78759);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"})},18671:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E,Q:()=>x});var r=n(84419),o=n(78759),i=n(65e3),a=n(10730),s=n(33921),l=n(43363),c=n(55159),u=n(50015),d=n(85709),f=n(51992),p=n(72736),h=n(6130),m=n(19580),g=n(32341),v=n(43647);const y=function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]};var b=n(27084),w=n(14739),_=n(32678);const x={[o.h.reducerPath]:o.h.reducer,singleClusterMode:y,cluster:a.ZP,tenant:b.ZP,tooltip:_.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},E=(0,r.UY)({...x})},4969:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,s:()=>s});var r=n(67386),o=n(96183);const i=n(78759).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)))},72736:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,TB:()=>f,M$:()=>u});var r=n(8064),o=n(78759),i=n(10142),a=n(83627),s=n(73689);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"})},6130:(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(8064),o=n(27810),i=n(32341);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))}}},19580:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,hz:()=>d,m3:()=>c,m7:()=>s});var r=n(34706),o=n(78759);const i="schema/SET_SHOW_PREVIEW",a={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1};function s(e){return{type:i,data:e}}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return t.type===i?{...e,showPreview:t.data}:e},c=o.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,...u(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 u(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}function d(e){let{path:t,database:n}=e;const{currentData:o,isFetching:i,error:a,refetch:s,originalArgs:l}=c.useGetSchemaQuery({path:t,database:n}),u=null===o||void 0===o?void 0:o[t],d=i&&void 0===u,f=(null===l||void 0===l?void 0:l.path)===t?a:void 0,p=!d&&(!u&&!a||(null===u||void 0===u?void 0:u.partial));return r.useEffect((()=>{p&&s()}),[s,t,p]),{data:u,isLoading:d,error:f}}},32341:(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(8064),o=n(9951),i=n(73689);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},43647:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>h,K2:()=>f,ZP:()=>p});var r=n(42805),o=n(8064),i=n(83751),a=n(78759),s=n(70337);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({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"})},70337:(e,t,n)=>{"use strict";let r;n.d(t,{F:()=>r}),function(e){e.Immediate="immediate",e.History="history"}(r||(r={}))},53096:(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",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},27084:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,$v:()=>h,jk:()=>p,Tu:()=>m,Cs:()=>f,$1:()=>v});var r=n(8064),o=n(9951),i=n(27810),a=n(78759),s=n(75475),l=n(53096);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"})},93145:(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}},14739:(e,t,n)=>{"use strict";n.d(t,{Xv:()=>c,ZP:()=>l,gI:()=>s});var r=n(8064),o=n(78759),i=n(46987);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"})},46987:(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(10142),n(14075);var a=n(73689),s=n(93145);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,_=(0,a.kE)(f.data_size_soft_quota)?Number(f.data_size_soft_quota):void 0,x=l(c);let E,S;E=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)}})):_&&(S=[{name:i.SSD,used:y,limit:_,usage:d(y,_)}]);return{memory:g,blobStorage:v,tabletStorage:y,memoryLimit:b,blobStorageLimit:w,tabletStorageLimit:_,cpu:m,poolsStats:x,memoryStats:[{name:"Process",used:g,limit:b,usage:d(g,b)}],blobStorageStats:E,tabletStorageStats:S}},u=(e,t)=>e.map((n=>{const r=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,o=e.find((e=>e.Id===n.ResourceId)),i=null===o||void 0===o?void 0:o.Name,s=null===o||void 0===o?void 0:o.NodeIds,l=(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:u,memory:d,blobStorage:f}=c(n),{nodesCount:p,groupsCount:h}=(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:r,sharedTenantName:i,sharedNodeIds:s,controlPlaneName:l,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));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},32678:(e,t,n)=>{"use strict";n.d(t,{MB:()=>a,ZP:()=>u,hJ:()=>c,i8:()=>l});var r=n(74647),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}}},39242:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{j:()=>r})},77468:(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={}))},6782:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(83751);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}},9038:(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={}))},5594:(e,t,n)=>{"use strict";let r;n.d(t,{X:()=>r}),function(e){e.EXECUTE="execute",e.EXPLAIN="explain"}(r||(r={}))},43457:(e,t,n)=>{"use strict";n.d(t,{t:()=>p,d:()=>d});var r=n(27810),o=n(14075),i=n(73689),a=n(37711);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=function(e,t){return e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ud)+u[t].label},p=e=>{let{value:t,size:n,withSpeedLabel:r=!1,withSizeLabel:a=!0,significantDigits:s=0,delimiter:l,...p}=e;if(!(0,i.kE)(t))return"";const h=Number(t),m=null!==n&&void 0!==n?n:d(h,s),g=(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:h,size:m,...p});return r?((e,t)=>f(e,t)+c("perSecond"))(g,m):a?f(g,m,l):g}},10142:(e,t,n)=>{"use strict";n.d(t,{c4:()=>i,td:()=>r.t,dT:()=>r.d});var r=n(43457),o=n(27810);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})},11383:(e,t,n)=>{"use strict";n.d(t,{B_:()=>u,kn:()=>l,n$:()=>c});var r=n(36205),o=n.n(r),i=n(58274),a=n(80819);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.Dp);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}),[])}},99294:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(95936).withNaming)({e:"__",m:"_"})},27810:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>P,Ah:()=>S,Bp:()=>u,DG:()=>I,DO:()=>k,E6:()=>Z,FU:()=>C,GS:()=>c,HN:()=>v,IG:()=>X,Ik:()=>re,KS:()=>R,KU:()=>j,LE:()=>$,ME:()=>a,Mn:()=>B,N1:()=>A,NO:()=>d,Px:()=>N,Qy:()=>Q,RE:()=>V,RI:()=>ne,RQ:()=>p,Rn:()=>W,S7:()=>q,XN:()=>M,XX:()=>te,ZY:()=>K,Zi:()=>H,Zy:()=>J,bw:()=>O,eG:()=>U,fl:()=>x,h0:()=>s,if:()=>D,ii:()=>h,jX:()=>E,nQ:()=>l,nU:()=>m,pf:()=>Y,qV:()=>b,sO:()=>F,sU:()=>f,sl:()=>_,tV:()=>y,t_:()=>i,w7:()=>G,wr:()=>L,x5:()=>w,y6:()=>ee,yD:()=>g,yT:()=>T,z4:()=>z});var r=n(71624),o=n(9038);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"],_={green:5,yellow:4,orange:3,red:2,blue:1,grey:1},x=5,E="\u2014",S="Developer UI",k="Cluster",C="Database",O="theme",N="language",T="invertedDisks",I="saved_queries",P="asideHeaderCompact",D="queries_history",R="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",K="partitionsHiddenColumns",Y="saved_tenant_initial_tab",Q="useBackendParamsForTables",J="showDomainDatabase",X="useClusterBalancerAsBacked",ee="enableAutocomplete",te="autocompleteOnEnter",ne="isHotKeysHelpHidden",re="enable_tracing_for_all_requests"},14075:(e,t,n)=>{"use strict";n.d(t,{fG:()=>T,OW:()=>N,t$:()=>f,td:()=>d,LO:()=>k,o0:()=>C,gC:()=>m,uf:()=>b,LA:()=>w,T3:()=>_,xh:()=>x,QO:()=>g,q3:()=>v,JD:()=>y,i$:()=>O,fm:()=>I,W0:()=>E,a2:()=>p});var r=n(42805),o=n(43457),i=n(27810),a=n(25089),s=n(73689),l=n(37711);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,r)=>{let i=(0,o.d)(Number(e),0),a=!0,l=0;(0,s.kE)(t)&&(i=(0,o.d)(Number(t),0),a=!1,l=1);let c=(0,o.t)({value:e,withSizeLabel:a,size:n||i,precision:l});if(e&&e>0)for(;"0"===c;)l+=1,c=(0,o.t)({value:e,withSizeLabel:a,size:n||i,precision:l});return[c,(0,o.t)({value:t,size:n||i,delimiter: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=>(0,a.X)(e).format("0.[0]a"),_=e=>{if(!(0,s.kE)(e))return"";const t=(0,a.X)(e),n=t.value();let r="0.[0]%";return n&&n<.001&&(r="0.[00]%"),t.format(r)},x=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))},S=e=>{const t=Number(e)/1e6;return E(t,3)},k=e=>{if(void 0!==e)return(0,a.X)(S(e)).format("0.[000]")},C=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},O=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},N=e=>{const t=(new Date).getTime()-Number(e);return t<=0?0:t/1e3},T=e=>h(N(Number(e)));function I(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},70340:(e,t,n)=>{"use strict";n.d(t,{ok:()=>a,wq:()=>i,wz:()=>l,yf:()=>s});var r=n(78276),o=n(73689);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}`}},55842:(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(78137),o=n(98712),i=n(82202),a=n(8214),s=n(34706),l=n(20560);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(55783),d=n(46878);const f=()=>{const e=(0,u.TH)();return(0,d.mB)(e)};var p=n(27810);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)}),[])}},83658:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(34706);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))}),[])]}},8214:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(39202),o=n(27810),i=n(83751),a=n(82202);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]}},82202:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(34706),o=n(32341),i=n(98712),a=n(78137);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])]}},98712:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=n(95877).I0},78137:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=n(95877).v9},37711:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>r,Fp:()=>l,ag:()=>u,wZ:()=>d});var r,o=n(21975),i=n(10859),a=n(9951),s=n(27810);!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})},25665:(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,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},99669:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r=n(34706),o=n(81550),i=n(75147),a=n(38914),s=n(10161);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"})})}},96183:(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(75475),o=n(32341),i=n(77468),a=n(27810),s=n(14075),l=n(25665);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,n,r,o,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=(null===(e=a.Location)||void 0===e?void 0:e.Rack)||a.Rack,u=(null===(t=a.Location)||void 0===t?void 0:t.DataCenter)||a.DataCenter,d=null===a||void 0===a||null===(n=a.Tenants)||void 0===n?void 0:n[0],f=(0,s.fG)(a.StartTime),p=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))}(a),h=Number(null===(r=a.SharedCacheStats)||void 0===r?void 0:r.LimitBytes)||void 0,m=(0,l.D)(null===(o=a.SharedCacheStats)||void 0===o?void 0:o.UsedBytes)?Number(null===(i=a.SharedCacheStats)||void 0===i?void 0:i.UsedBytes):void 0;return{...a,Rack:c,DC:u,Uptime:f,LoadAveragePercents:p,TenantName:d,SharedCacheLimit:h,SharedCacheUsed:m}},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)},25089:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(89630),o=n.n(r),i=(n(57730),n(37711)),a=n(73689);Object.values(i.Uo).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=a.ud)})),o().locale(i.ag.lang);const s=o()},25791:(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+$/,"")},12775:(e,t,n)=>{"use strict";n.d(t,{pY:()=>a,sA:()=>i});var r=n(25791);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}},83751:(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:()=>y,gY:()=>b,CC:()=>w,dt:()=>E,fV:()=>S,y5:()=>_,Xh:()=>x,nh:()=>P,J7:()=>I});var r=n(75475);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(87717);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=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function y(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}const b=e=>v(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=((e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))))(t,n)),{columns:n,result:o,truncated:r}})),...n}})(e):e,w=e=>v(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})):[],E=e=>"string"===typeof e||y(e)?e:(0,i.eE)(e)?e.message:(0,i.$z)(e)?"data"in e&&y(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(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.off},C=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),I=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:C,transactionMode:O,statisticsMode:N,tracingLevel:T}),P=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:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},87717:(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)}},83627:(e,t,n)=>{"use strict";n.d(t,{tt:()=>c,zm:()=>u,DA:()=>h,aR:()=>f,lE:()=>m,BO:()=>g});var r=n(27810),o=n(14075),i=n(37711);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),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(73689);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=e=>e&&(0,p.kE)(e)?Math.round(Number(e)/1e3):0},73689:(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,ud:()=>d});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)}const d="\xa0"},80819:(e,t,n)=>{"use strict";n.d(t,{DM:()=>i,Dp:()=>a,ZP:()=>c,un:()=>o});var r=n(58274);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return n&n}),0),i=["#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#3cb371","#b22222"],a="#008000",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]:[]))}},58274:(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}},69855:(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},95936:(e,t,n)=>{"use strict";e.exports=n(69855)},82652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},29152:(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"}},48909: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(82652),t),o(n(29152),t),o(n(71560),t)},71560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},44419: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(48909),a=o(n(71148)),s=n(99863),l=n(84990),c=n(55683),u=n(46668),d=n(39701),f=n(35858),p=n(74204),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(_({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,_=l.isoWeekNumber,x=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==_||void 0!==x||void 0!==E))throw new Error("Can't mix local week with ISO week");var k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?k.isoWeekday:E||7,weekNumber:null!==_&&void 0!==_?_:k.isoWeekNumber,weekYear:null!==x&&void 0!==x?x:k.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,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){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=_,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})}},39701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=t.FORMAT_DEFAULT=t.expandFormat=void 0;var r=n(48909),o=n(84990),i=n(55683);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)}},15103: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(44419),t),o(n(39701),t)},35858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromObject=t.getTimestampFromArray=void 0;var r=n(55683),o=n(46668);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},74204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=void 0;var r=n(44419),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)}},25954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateMath=t.parse=t.isLikeRelative=void 0;var r=n(15103),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},43970: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(25954),t)},71148: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(13398)),i=r(n(59524)),a=r(n(99621)),s=r(n(33766)),l=n(48909);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},60081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=void 0;var r=n(89945),o=n(6753),i=n(45206),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})}},6753: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(15103),s=n(84990),l=n(46668),c=n(26857),u=n(60081),d=n(45206),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,_=a;w<_.length;w++){var x=_[w];if(x.literal)p+=x.value;else{var E=f.get(x.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,o(o({useGrouping:!1},y),{minimumIntegerDigits:x.padTo})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).toString().padStart(x.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)}},99863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(60081);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var o=n(6753);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},45206: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[_=a[v]]&&null!==h[_])if(g){var y=(null!==(o=h[g])&&void 0!==o?o:0)*m,b=i[_][g],w=Math.floor(y/b);h[_]=(null!==(s=h[_])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=_}else g=_}g=null;for(v=0;v<t.orderedUnits.length;v++){var _;if(void 0!==h[_=t.orderedUnits[v]]&&null!==h[_])if(g){var x=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-x,h[_]=(null!==(d=h[_])&&void 0!==d?d:0)+x*i[g][_],g=_}else g=_}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}(E=e[f])&&(p+=E);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],_=w[0],x=w[1];0!==x&&(l[a]=(null!==(o=l[a])&&void 0!==o?o:0)+(_===a?x:x/i[a][_]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/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))}},42805:(e,t,n)=>{"use strict";t.x9=t.m3=t.KN=t.JY=t.J=t._u=t.CQ=void 0,n(84990).settings;var r=n(15103);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(43970);var i=n(81234);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(55683);Object.defineProperty(t,"m3",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(48909);var l=n(99863);Object.defineProperty(t,"x9",{enumerable:!0,get:function(){return l.duration}})},81234: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(16176),t)},16176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=t.dateTimeParse=t.isLikeRelative=void 0;var r=n(15103),o=n(84990);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()}},84990: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(72835),t)},81215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(3092).then(n.t.bind(n,43092,23))},am:function(){return n.e(3643).then(n.t.bind(n,93643,23))},"ar-dz":function(){return n.e(9974).then(n.t.bind(n,19974,23))},"ar-iq":function(){return n.e(4806).then(n.t.bind(n,94806,23))},"ar-kw":function(){return n.e(6943).then(n.t.bind(n,36943,23))},"ar-ly":function(){return n.e(4463).then(n.t.bind(n,4463,23))},"ar-ma":function(){return n.e(1455).then(n.t.bind(n,76395,23))},"ar-sa":function(){return n.e(4779).then(n.t.bind(n,44779,23))},"ar-tn":function(){return n.e(753).then(n.t.bind(n,80753,23))},ar:function(){return n.e(4563).then(n.t.bind(n,24563,23))},az:function(){return n.e(6332).then(n.t.bind(n,86332,23))},be:function(){return n.e(2100).then(n.t.bind(n,12100,23))},bg:function(){return n.e(2845).then(n.t.bind(n,32845,23))},bi:function(){return n.e(8169).then(n.t.bind(n,88169,23))},bm:function(){return n.e(5257).then(n.t.bind(n,85257,23))},"bn-bd":function(){return n.e(1074).then(n.t.bind(n,31074,23))},bn:function(){return n.e(8332).then(n.t.bind(n,88332,23))},bo:function(){return n.e(2216).then(n.t.bind(n,52216,23))},br:function(){return n.e(8726).then(n.t.bind(n,78726,23))},bs:function(){return n.e(9617).then(n.t.bind(n,89617,23))},ca:function(){return n.e(1971).then(n.t.bind(n,41971,23))},cs:function(){return n.e(7076).then(n.t.bind(n,47076,23))},cv:function(){return n.e(1035).then(n.t.bind(n,41035,23))},cy:function(){return n.e(9757).then(n.t.bind(n,69757,23))},da:function(){return n.e(7439).then(n.t.bind(n,67439,23))},"de-at":function(){return n.e(9711).then(n.t.bind(n,99711,23))},"de-ch":function(){return n.e(3235).then(n.t.bind(n,3235,23))},de:function(){return n.e(3830).then(n.t.bind(n,43830,23))},dv:function(){return n.e(3997).then(n.t.bind(n,53997,23))},el:function(){return n.e(9937).then(n.t.bind(n,89937,23))},"en-au":function(){return n.e(2972).then(n.t.bind(n,32972,23))},"en-ca":function(){return n.e(2804).then(n.t.bind(n,42804,23))},"en-gb":function(){return n.e(2070).then(n.t.bind(n,82070,23))},"en-ie":function(){return n.e(1388).then(n.t.bind(n,21388,23))},"en-il":function(){return n.e(1923).then(n.t.bind(n,61923,23))},"en-in":function(){return n.e(7132).then(n.t.bind(n,17132,23))},"en-nz":function(){return n.e(5821).then(n.t.bind(n,75821,23))},"en-sg":function(){return n.e(5957).then(n.t.bind(n,45957,23))},"en-tt":function(){return n.e(3145).then(n.t.bind(n,43145,23))},en:function(){return n.e(9765).then(n.t.bind(n,89765,23))},eo:function(){return n.e(6170).then(n.t.bind(n,46170,23))},"es-do":function(){return n.e(592).then(n.t.bind(n,80592,23))},"es-mx":function(){return n.e(2039).then(n.t.bind(n,92039,23))},"es-pr":function(){return n.e(6070).then(n.t.bind(n,66070,23))},"es-us":function(){return n.e(7446).then(n.t.bind(n,47446,23))},es:function(){return n.e(3520).then(n.t.bind(n,23520,23))},et:function(){return n.e(579).then(n.t.bind(n,579,23))},eu:function(){return n.e(6845).then(n.t.bind(n,26845,23))},fa:function(){return n.e(323).then(n.t.bind(n,40323,23))},fi:function(){return n.e(3607).then(n.t.bind(n,23607,23))},fo:function(){return n.e(9703).then(n.t.bind(n,69703,23))},"fr-ca":function(){return n.e(3998).then(n.t.bind(n,43998,23))},"fr-ch":function(){return n.e(2974).then(n.t.bind(n,92974,23))},fr:function(){return n.e(4408).then(n.t.bind(n,54408,23))},fy:function(){return n.e(2734).then(n.t.bind(n,92734,23))},ga:function(){return n.e(1236).then(n.t.bind(n,71236,23))},gd:function(){return n.e(4324).then(n.t.bind(n,24324,23))},gl:function(){return n.e(5203).then(n.t.bind(n,45203,23))},"gom-latn":function(){return n.e(4006).then(n.t.bind(n,64006,23))},gu:function(){return n.e(4413).then(n.t.bind(n,44413,23))},he:function(){return n.e(7367).then(n.t.bind(n,30610,23))},hi:function(){return n.e(3883).then(n.t.bind(n,13883,23))},hr:function(){return n.e(4018).then(n.t.bind(n,94018,23))},ht:function(){return n.e(6663).then(n.t.bind(n,26663,23))},hu:function(){return n.e(6079).then(n.t.bind(n,76079,23))},"hy-am":function(){return n.e(5070).then(n.t.bind(n,15070,23))},id:function(){return n.e(9685).then(n.t.bind(n,29685,23))},is:function(){return n.e(4254).then(n.t.bind(n,4254,23))},"it-ch":function(){return n.e(846).then(n.t.bind(n,60846,23))},it:function(){return n.e(3495).then(n.t.bind(n,3495,23))},ja:function(){return n.e(6625).then(n.t.bind(n,6625,23))},jv:function(){return n.e(862).then(n.t.bind(n,862,23))},ka:function(){return n.e(9139).then(n.t.bind(n,89139,23))},kk:function(){return n.e(7245).then(n.t.bind(n,27245,23))},km:function(){return n.e(610).then(n.t.bind(n,20610,23))},kn:function(){return n.e(7324).then(n.t.bind(n,80328,23))},ko:function(){return n.e(2670).then(n.t.bind(n,72670,23))},ku:function(){return n.e(7862).then(n.t.bind(n,97862,23))},ky:function(){return n.e(1389).then(n.t.bind(n,61389,23))},lb:function(){return n.e(2455).then(n.t.bind(n,22455,23))},lo:function(){return n.e(6731).then(n.t.bind(n,6731,23))},lt:function(){return n.e(2651).then(n.t.bind(n,22651,23))},lv:function(){return n.e(127).then(n.t.bind(n,90127,23))},me:function(){return n.e(9101).then(n.t.bind(n,59101,23))},mi:function(){return n.e(9433).then(n.t.bind(n,59433,23))},mk:function(){return n.e(7950).then(n.t.bind(n,17950,23))},ml:function(){return n.e(2421).then(n.t.bind(n,22421,23))},mn:function(){return n.e(2405).then(n.t.bind(n,62405,23))},mr:function(){return n.e(7273).then(n.t.bind(n,27273,23))},"ms-my":function(){return n.e(7443).then(n.t.bind(n,47443,23))},ms:function(){return n.e(178).then(n.t.bind(n,178,23))},mt:function(){return n.e(3950).then(n.t.bind(n,43950,23))},my:function(){return n.e(8446).then(n.t.bind(n,68446,23))},nb:function(){return n.e(8864).then(n.t.bind(n,28864,23))},ne:function(){return n.e(8828).then(n.t.bind(n,58828,23))},"nl-be":function(){return n.e(7994).then(n.t.bind(n,87994,23))},nl:function(){return n.e(182).then(n.t.bind(n,51957,23))},nn:function(){return n.e(5641).then(n.t.bind(n,5641,23))},"oc-lnc":function(){return n.e(4175).then(n.t.bind(n,14175,23))},"pa-in":function(){return n.e(3493).then(n.t.bind(n,33493,23))},pl:function(){return n.e(4320).then(n.t.bind(n,54320,23))},"pt-br":function(){return n.e(452).then(n.t.bind(n,10452,23))},pt:function(){return n.e(8505).then(n.t.bind(n,18505,23))},rn:function(){return n.e(4040).then(n.t.bind(n,44040,23))},ro:function(){return n.e(4442).then(n.t.bind(n,24442,23))},ru:function(){return n.e(9821).then(n.t.bind(n,79821,23))},rw:function(){return n.e(8731).then(n.t.bind(n,88731,23))},sd:function(){return n.e(4503).then(n.t.bind(n,94503,23))},se:function(){return n.e(2871).then(n.t.bind(n,92871,23))},si:function(){return n.e(9963).then(n.t.bind(n,19963,23))},sk:function(){return n.e(6789).then(n.t.bind(n,86789,23))},sl:function(){return n.e(6292).then(n.t.bind(n,45830,23))},sq:function(){return n.e(2516).then(n.t.bind(n,92516,23))},"sr-cyrl":function(){return n.e(5982).then(n.t.bind(n,15982,23))},sr:function(){return n.e(2967).then(n.t.bind(n,22967,23))},ss:function(){return n.e(9350).then(n.t.bind(n,39350,23))},"sv-fi":function(){return n.e(9008).then(n.t.bind(n,59008,23))},sv:function(){return n.e(6660).then(n.t.bind(n,16660,23))},sw:function(){return n.e(9625).then(n.t.bind(n,99625,23))},ta:function(){return n.e(8841).then(n.t.bind(n,48841,23))},te:function(){return n.e(5066).then(n.t.bind(n,45066,23))},tet:function(){return n.e(5014).then(n.t.bind(n,5014,23))},tg:function(){return n.e(7656).then(n.t.bind(n,57656,23))},th:function(){return n.e(4723).then(n.t.bind(n,24723,23))},tk:function(){return n.e(1577).then(n.t.bind(n,91577,23))},"tl-ph":function(){return n.e(4639).then(n.t.bind(n,24639,23))},tlh:function(){return n.e(5748).then(n.t.bind(n,35748,23))},tr:function(){return n.e(4712).then(n.t.bind(n,24712,23))},tzl:function(){return n.e(6679).then(n.t.bind(n,96679,23))},"tzm-latn":function(){return n.e(6927).then(n.t.bind(n,26927,23))},tzm:function(){return n.e(824).then(n.t.bind(n,30824,23))},"ug-cn":function(){return n.e(7275).then(n.t.bind(n,47275,23))},uk:function(){return n.e(9352).then(n.t.bind(n,19352,23))},ur:function(){return n.e(1728).then(n.t.bind(n,1728,23))},"uz-latn":function(){return n.e(1886).then(n.t.bind(n,91886,23))},uz:function(){return n.e(689).then(n.t.bind(n,50689,23))},vi:function(){return n.e(4023).then(n.t.bind(n,44023,23))},"x-pseudo":function(){return n.e(225).then(n.t.bind(n,225,23))},yo:function(){return n.e(7199).then(n.t.bind(n,37199,23))},"zh-cn":function(){return n.e(253).then(n.t.bind(n,70253,23))},"zh-hk":function(){return n.e(4657).then(n.t.bind(n,94657,23))},"zh-tw":function(){return n.e(2780).then(n.t.bind(n,62780,23))},zh:function(){return n.e(8645).then(n.t.bind(n,8645,23))}}},72835: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(47575)),s=n(43970),l=i(n(71148)),c=n(55683),u=n(81215),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},55683: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(45017),t)},45017: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(48909),i=n(26857);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:""}},46668: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(89945),t)},26857:(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}},89945:(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}},21975:(e,t,n)=>{"use strict";n.d(t,{mb:()=>u});const r=/{{(.*?)}}/g;const o=()=>new RegExp(/\$t{([^}]+)}/g);var i;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(i||(i={}));Object.values(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;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),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}_i18n(e,t,n,r){const{text:o,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let o=`Using language ${r}. `;switch(t){case i.EmptyKeyset:o+="Keyset is empty.";break;case i.EmptyLanguageData:o+="Language data is empty.";break;case i.KeysetNotFound:o+="Keyset not found.";break;case i.MissingKey:o+="Missing key.";break;case i.MissingKeyFor0:return o+="Missing key for 0",o;case i.MissingKeyParamsCount:o+="Missing params.count for key.";break;case i.MissingKeyPlurals:o+="Missing required plurals.";break;case i.NoLanguageData:o=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(o+=` Trying to use fallback language "${n}"...`),o}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return o}}class d{constructor(e,t,n,r,o,i){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=o,this.nestingDepth=null!==i&&void 0!==i?i:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(i.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=o().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(i.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(i.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.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}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(i.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(i.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(i.EmptyKeyset):{data:t}:this.getTranslationDataError(i.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=o();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,o]=r;if(o){if(this.nestingDepth+1>1)return this.getTranslationDataError(i.ExceedTranslationNestingDepth);let[e,t]=[o,void 0];const n=o.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(i.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(i.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},15152:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},85996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},67904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},67258:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},22927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},52232:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},29837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},87382:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},68045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))))},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},83619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},78167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},2915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34706);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"}))},91528:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(95936);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},6826:(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},_=Object.prototype.toString;var x=w,E=function(e){return _.call(e)},S="[object Null]",k="[object Undefined]",C=h?h.toStringTag:void 0;var O=function(e){return null==e?void 0===e?k:S:C&&C in Object(e)?x(e):E(e)},N=function(e){return null!=e&&"object"==typeof e},T="[object Symbol]";var I=p,P=o,D=function(e){return"symbol"==typeof e||N(e)&&O(e)==T},R=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(D(e))return R;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)?R:+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}},10824:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(91528).b)("aside-header")},20560:(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__"},71624:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R});var r=n(23337),o=n(34706),i=n(75868),a=n.n(i),s=n(95936),l=n(20560);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"})),_={ICON_ASC:b,ICON_DESC:w};const x=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 _.ICON_ASC;case l.hr:return _.ICON_DESC;default:return!1}}(t||i)):null};class E 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}))})))}}E.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 _=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(_=Object.assign(Object.assign({},_),{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:_,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(x,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 k extends o.Component{constructor(){super(...arguments),this.state={style:{top:k.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})}}k.defaultProps={top:0};class C 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})}}C.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(E,{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(k,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(C,{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 N=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 T 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(N,{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),_=(null!==(n=e.resizeable)&&void 0!==n?n:o.defaultResizeable)&&Boolean(r),x="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):x,k="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},C="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:_,sortable:m&&d,_className:w,_getValue:x,_getTitle:E,_getSortValue:S,_renderValue:k,_getOnClick:O,customStyle:C,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({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.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=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.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:_=!1,headerMod:x=!1}=v,E=c({"highlight-rows":w,"striped-rows":_,header:x,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:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.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}T.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"},T.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 D extends o.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){_.ICON_ASC=e.ICON_ASC||b,_.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(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}D.FIXED=l.hA,D.MOVING=l.qA,D.ASCENDING=l.zE,D.DESCENDING=l.hr,D.LEFT=l.RL,D.CENTER=l.dv,D.RIGHT=l.pX;const R=D},90132:(e,t,n)=>{"use strict";n.d(t,{M:()=>k});var r=n(23337),o=n(34706),i=n(15178),a=n(95868),s=n(87578);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(29355),u=n.n(c),d=n(36205),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)},_=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 x=n(24874);const E=["bottom","top"],S=(0,s.Ge)("action-tooltip");function k(e){const{placement:t=E,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),k=o.Children.only(l),C=k.ref,O=(0,i.c)(b,C);return o.createElement(o.Fragment,null,o.cloneElement(k,{ref:O}),y?o.createElement(x.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(_,{view:"dark",value:s,className:S("hotkey")})),d&&o.createElement("div",{className:S("description")},d))):null)}},81778:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(34706),o=n(85996),i=n(14561);const a=(0,n(87578).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}))}},72616:(e,t,n)=>{"use strict";n.d(t,{z:()=>m});var r=n(34706),o=n(87578),i=n(15112),a=n(90287),s=n(97604),l=n(35035);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:_,onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,children:C,id:O,style:N,className:T,qa:I}=e;const P={title:d,tabIndex:f,onClick:_,onClickCapture:r.useCallback((e=>{a.P.publish({componentId:"Button",eventId:"click",domEvent:e,meta:{content:e.currentTarget.textContent,view:n}})}),[n]),onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,id:O,style:N,className:p({view:n,size:o,pin:i,selected:s,disabled:l||c,loading:c,width:u},T),"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(C))}return r.createElement("button",Object.assign({},w,P,{ref:t,type:h,disabled:l||c,"aria-pressed":s}),b(C))}));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]}}},99175:(e,t,n)=>{"use strict";n.d(t,{m:()=>b});var r=n(23337),o=n(34706),i=n(90132),a=n(72616),s=n(69847),l=n(92011),c=n(87578),u=n(3581);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=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"}'),p=(0,u.e)({en:d,ru:f},"ClipboardButton"),h=(0,c.Ge)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,_=(0,r._T)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),x=o.createElement(a.z.Icon,{className:h("icon")},o.createElement(s.K,{size:v[t],status:u}));return o.createElement(i.M,{title:"success"===u?c:l,disabled:!n,closeDelay:y},o.createElement(a.z,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},_),"start"===g?x:null,m,"end"===g?x:null))};function b(e){const{text:t,timeout:n=m,onCopy:i,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r._T)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=o.useRef(),[p,h]=o.useState(void 0),[v,b]=o.useState(!1);o.useEffect((()=>window.clearTimeout(f.current)),[]);const w=o.useCallback(((e,t)=>{null===i||void 0===i||i(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[i,n]),_=o.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),x=o.useCallback((e=>{null===c||void 0===c||c(e),_()}),[c,_]),E=o.useCallback((e=>{null===u||void 0===u||u(e),_()}),[u,_]);return o.createElement(l.h,{text:t,timeout:n,onCopy:w,options:a},(e=>o.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:x,onFocus:E}))))}},69847:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(23337),o=n(34706);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(14561);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))}},19694:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(34706);const o=(0,n(87578).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"},92011:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(34706),o=n(13469),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)}},83797:(e,t,n)=>{"use strict";n.d(t,{w:()=>C});var r=n(34706),o=n(97604),i=n(35035);const a=r.createContext(void 0);function s(e){let{direction:t,contentMaxWidth:n,nameMaxWidth:o,children:i}=e;const s=o?{maxWidth:o,width:o}:{},l="number"===typeof n?{width:n,maxWidth:n}:{};return r.createElement(a.Provider,{value:{keyStyle:s,valueStyle:l,direction:t}},i)}var l=n(87578);const c=(0,l.Ge)("definition-list");var u=n(99175);function d(e){let{copyText:t,children:n}=e;const o=null!==n&&void 0!==n?n:"\u2014";return t?r.createElement("div",{className:c("copy-container")},o,r.createElement(u.m,{size:"s",text:t,className:c("copy-button"),view:"flat-secondary"})):o}var f=n(23337),p=n(29837),h=n(14561),m=n(16318);const g=(0,l.Ge)("help-mark"),v=16;function y(e){var{buttonRef:t,buttonProps:n={},children:o,className:i}=e,a=(0,f._T)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.J,Object.assign({},a,{delayClosing:300,className:g(null,i),content:o}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.J,{data:p.Z,size:v}))))}var b=n(3581);const w=JSON.parse('{"label_note":"Note"}'),_=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),x=(0,b.e)({en:w,ru:_},"DefinitionList");function E(e){let{note:t}=e;if(!t)return null;const n=c("item-note-tooltip");if("string"===typeof t)return r.createElement(y,{className:n,placement:["bottom","top"],buttonProps:{"aria-label":x("label_note")}},t);if("object"===typeof t){const{buttonProps:e}=t,o=(0,f._T)(t,["buttonProps"]);return r.createElement(y,Object.assign({className:n,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":x("label_note")},e)},o))}return null}function S(e){let{note:t,name:n,direction:o}=e;const i=t?r.createElement(r.Fragment,null,"\xa0",r.createElement(E,{note:t})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},n,i),"horizontal"===o&&r.createElement("div",{className:c("dots")}))}function k(e){let{name:t,children:n,copyText:o,note:i}=e;const{direction:s,keyStyle:l,valueStyle:u}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:l},r.createElement(S,{direction:s,name:t,note:i})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},u),{lineBreak:"string"===typeof n&&(f=20,function(e){return e.split(/\s+/).some((e=>e.length>f))})(n)?"anywhere":void 0})},r.createElement(d,{copyText:o},n)));var f}function C(e){let{responsive:t,direction:n="horizontal",nameMaxWidth:o,contentMaxWidth:a,className:l,children:u,qa:d}=e;const f=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){O(r)?n.push(r):(0,i.O)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(u);return r.createElement(s,{direction:n,nameMaxWidth:o,contentMaxWidth:a},r.createElement("dl",{className:c({responsive:t,vertical:"vertical"===n},l),"data-qa":d},f))}k.displayName="DefinitionListItem";const O=(0,o.s)(k);C.Item=k,C.displayName="DefinitionList"},36413:(e,t,n)=>{"use strict";n.d(t,{h:()=>B});var r=n(34706),o=n(87382),i=n(75813),a=n(72616),s=n(14561),l=n(87578);const c=(0,l.Ge)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(23337),f=n(67904),p=n(67258),h=n(11746);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(90287);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:_,qa:x}=e;const{onKeyDown:E}=(0,i.b)(h),S=r.useCallback((e=>{v.P.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),k={role:"menuitem",onKeyDown:h&&!l?E:void 0},C={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":x},O=[o&&r.createElement("div",{key:"icon-start",className:y("item-icon")},o),r.createElement("div",{key:"content",className:y("item-content")},_),a&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},a)];let N;return N=d?r.createElement("a",Object.assign({},k,w,C,{href:d,target:f,rel:p}),O):r.createElement("div",Object.assign({},k,w,C),O),r.createElement("li",{ref:t,className:y("list-item")},N)})),w=(0,l.Ge)("menu"),_=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)}));_.Item=b,_.Group=g;var x=n(51099);function E(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])?E(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 k=n(24874);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=e=>{let{anchorRef:t,children:n,disabled:o}=e;const[i,a]=r.useState(C);r.useEffect((()=>{o&&a(C)}),[o]);const s=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:a,anchorRef:t})),[i,t]);return r.createElement(O.Provider,{value:s},n)},T={text:"",action:()=>{},path:[]};function I(e){return e===T}function P(e){return e.disabled||I(e)}function D(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const R=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]),x=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]),C=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]),N=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&&C(r,n),!1}}return!0}),[b,C,y,t]),T=n&&D(f)===D(m),{activeItemIndex:R,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=>E(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=>E(t,e,o,n)));break;case"Home":if(!i)return;e.preventDefault(),f((e=>E(t,e,e,n)));break;case"End":if(!a)return;e.preventDefault(),f((e=>E(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:N,disabled:!T,initialValue:y?0:-1});return r.useEffect((()=>{n||j()}),[n,j]),r.createElement(k.G,Object.assign({open:n,anchorRef:o,onClose:i},d,{onMouseEnter:w,onMouseLeave:x}),l||r.createElement(_,Object.assign({className:c("menu"),size:a},s),t.map(((e,t)=>{var o;const a=T&&R===t,s=n&&!a&&0!==m.length&&D(e.path)===D(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,x.g)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:k}=j({items:o,path:h}),C=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),C())}),[n,v,C,w]),N=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&&k()},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,k]),T=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(_.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:I}),t||l),w&&o&&r.createElement(R,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:T}),items:o,path:h,open:E,anchorRef:y,onClose:C}))},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:_,menuProps:x,popupProps:E,children:S}=e;const k=r.useRef(null),{isPopupShown:C,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,k,!C||!p);const P=r.useMemo((()=>({toggle:O,data:h})),[h,O]),D=r.useMemo((()=>F(t,T)),[t]),A=r.useCallback((e=>{m||(null===_||void 0===_||_(e),O())}),[m,_,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:k,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(N,{anchorRef:k,disabled:!C},r.createElement(R,{items:D,open:C,size:n,menuProps:x,anchorRef:k,onClose:I,popupProps:E},S)))}),{Item:M})},14561:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(34706),o=n(87578);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||"function"===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=""},2634:(e,t,n)=>{"use strict";n.d(t,{_:()=>u});var r=n(34706),o=n(2915),i=n(69847),a=n(92011),s=n(14561);const l=(0,n(87578).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",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:_=!1,value:x,onCopy:E,onClick:S,qa:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,I=Boolean(N&&y),P=(T||I||_)&&!v,{copyIconSize:D,closeIconSize:R}=c[d],A=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(x)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},x))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(i.K,{status:e||"pending",size:D})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,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:P,disabled:v},g),title:f,"data-qa":k},A,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return I&&y&&!T?r.createElement(a.h,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},17823:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(34706),o=n(87578),i=n(90287);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 _={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},x="_blank"!==c||u?u:"noopener noreferrer";return r.createElement("a",Object.assign({},p,_,{ref:t,href:l,target:c,rel:x}),f)}))},76943:(e,t,n)=>{"use strict";n.d(t,{a:()=>ce});var r=n(34706),o=n(74647),i=n.n(o),a=n(76986),s=n.n(a),l=n(52519);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),_=n(25586),x="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=x();var r={id:requestAnimationFrame((function o(){x()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function N(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 T=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,_.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,_.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,_.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(N()){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&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,T)},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 D(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?C():0:l.scrollHeight>l.clientHeight?C():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(N()){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&&E(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,_=this.state.isScrolling,x="horizontal"===i||"horizontal"===h,E=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?_:void 0,style:this._getItemStyle(N)}));var T=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,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:x?"100%":T,pointerEvents:_?"none":void 0,width:x?T:"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 D=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},R=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=R(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&&R(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 R(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=R(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=R(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=R(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(86357),F=n(73428),B=n(51099),U=n(87578),q=n(15112),$=n(69004),Z=n(81550);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(6982),G=n(14561),K=n(90287),Y=n(59143);const Q="list-active-item",J=[Y.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)}render(){var e,t;const{item:n,height:o,style:i,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:o},i),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Q:void 0,className:X("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},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,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,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=K.P.withEventPublisher("List");var re=n(16991),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,r,o;const i=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(i&&"function"===typeof i.getNode){const e=i.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(o=e.scrollIntoView)||void 0===o||o.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,activeItem:this.props.activeItemIndex,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,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));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,height:o,provided:i,isDragging:a}=e;var s;const{sortHandleAlign:l,role:c}=this.props,{items:u,activeItem:d}=this.state,f=this.getItemsWithLoading()[t],p=this.props.sortable&&u.length>1&&!this.getFilter(),h=t===d||t===this.props.activeItemIndex,m=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(t):t===this.props.selectedItemIndex;return r.createElement(ne,{key:t,style:n,height:o,itemIndex:t,item:f,sortable:p,sortHandleAlign:l,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:h,selected:m,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===c?"option":"listitem",listId:null!==(s=this.props.id)&&void 0!==s?s:this.uniqId,provided:i,isDragging:a})},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.blurTimer=null,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.handleBlur()},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}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(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,onScrollToItem:this.props.onScrollToItem},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,height:this.getItemHeight(t)}))))))))):r.createElement(ae,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,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}},81550:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(34706);const o=(0,n(87578).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")}))}},16318:(e,t,n)=>{"use strict";n.d(t,{J:()=>w});var r=n(34706),o=n(2915),i=n(72616),a=n(14561),s=n(24874),l=n(51099),c=n(35035);const u=(0,n(87578).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(17823);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(75813);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(2194);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,_]=y.q[l],x=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[w,a,v]),E=r.useCallback((()=>{d.current=setTimeout((()=>{d.current=null,b()}),null!==s&&void 0!==s?s:_)}),[b,_,s]);return{isOpen:f,closingTimeout:d,openTooltip:v,openTooltipDelayed:x,unsetOpeningTimeout:h,closeTooltip:b,closeTooltipDelayed:E,unsetClosingTimeout:m}},w=r.forwardRef((function(e,t){let{initialOpen:n=!1,disabled:d=!1,autoclosable:h=!0,openOnHover:g=!0,delayOpening:w,delayClosing:_,behavior:x=y.x.Delayed,placement:E,offset:S={},tooltipOffset:k,tooltipClassName:C,tooltipContentClassName:O,theme:N="info",size:T="s",hasArrow:I=!0,hasClose:P=!1,className:D,children:R,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:K,focusTrap:Y,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:_,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>E||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,E]);r.useImperativeHandle(t,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(A),he=r.createElement(s.G,{id:K,role:g?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:u("tooltip",{theme:N,size:T,"with-close":P,"force-links-appearance":F},C),contentClassName:u("tooltip-popup-content",O),open:oe,placement:fe,hasArrow:I,offset:k,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:G,focusTrap:Y,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"!==N,content:j,htmlContent:M,className:L}),z&&r.createElement(m,{links:z}),r.createElement(f,{theme:N,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},D),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},R),he)}));w.displayName="Popover"},2194:(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]}},24874:(e,t,n)=>{"use strict";n.d(t,{G:()=>$e});var r=n(34706),o=n(77498),i=n(15178),a=n(72985);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){return s(e).getComputedStyle(e)}function x(e){var t=_(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function E(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)||x(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 k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&x(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],x(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(k(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==_(e).position?e.offsetParent:null}function I(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===_(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===_(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===_(e).position)return null;var n=k(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=_(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",D="bottom",R="right",A="left",j="auto",M=[P,D,R,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 K(){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 Y(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(K(t,n)){o.rects={reference:E(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(!K(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 D:t={x:s,y:n.y+n.height};break;case R: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"),x=a.hasOwnProperty("y"),E=A,S=P,k=window;if(u){var C=I(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==_(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),o===P||(o===A||o===R)&&i===z)S=D,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(o===A||(o===P||o===D)&&i===z)E=R,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[N])-r.width,m*=c?1:-1}var T,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,((T={})[S]=x?"0":"",T[E]=w?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=x?v+"px":"",t[E]=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,R].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"===_(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(k(e)),n=["absolute","fixed"].indexOf(_(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)),_=p===U?q:U,x=e.rects.popper,E=e.elements[m?_:p],S=fe(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),k=g(e.elements.reference),C=te({reference:k,element:x,strategy:"absolute",placement:o}),O=ue(Object.assign({},x,C)),N=p===U?O:k,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},I=e.modifiersData.offset;if(p===U&&I){var A=I[o];Object.keys(T).forEach((function(e){var t=[R,D].indexOf(e)>=0?1:-1,n=[P,D].indexOf(e)>=0?"y":"x";T[e]+=A[n]*t}))}return T}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,_=t.rects.popper,x=new Map,E=!0,S=b[0],k=0;k<b.length;k++){var C=b[k],O=J(C),N=X(C)===L,T=[P,D].indexOf(O)>=0,I=T?"width":"height",z=me(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?R:A:N?D:P;w[I]>_[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=C,E=!1;break}x.set(C,U)}if(E)for(var q=function(e){var t=b.find((function(t){var n=x.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),_=!w,x=ee(b),E="x"===x?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var z,F="y"===x?P:A,B="y"===x?D:R,U="y"===x?"height":"width",q=k[x],$=q+y[F],Z=q-y[B],H=m?-O[U]/2:0,V=w===L?C[U]:O[U],W=w===L?-O[U]:-C[U],G=t.elements.arrow,K=m&&G?S(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=Y[F],te=Y[B],ne=ve(0,C[U],K[U]),re=_?C[U]/2-H-ne-Q-T.mainAxis:V-ne-Q-T.mainAxis,oe=_?-C[U]/2+H+ne+te+T.mainAxis:W+ne+te+T.mainAxis,ie=t.elements.arrow&&I(t.elements.arrow),ae=ie?"y"===x?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[x])?z:0,le=q+oe-se,ce=ve(m?f($,q+re-se-ae):$,q,m?d(Z,le):Z);k[x]=ce,M[x]=ce-q}if(s){var ue,de="x"===x?P:A,fe="x"===x?D:R,pe=k[E],he="y"===E?"height":"width",ge=pe+y[de],ye=pe-y[fe],be=-1!==[P,A].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,_e=be?ge:pe-C[he]-O[he]-we+T.altAxis,xe=be?pe+C[he]+O[he]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(_e,pe,xe):ve(m?_e:ge,pe,m?xe:ye);k[E]=Ee,M[E]=Ee-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,R].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?D:R,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],_=v/2-d[c]/2+y,x=ve(b,_,w),E=l;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-_,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 _e(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 xe(e){return[P,R,D,A].some((function(t){return e[t]>=0}))}var Ee=Y({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=_e(a,r),c=_e(s,o,i),u=xe(l),d=xe(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(67082),ke=n.n(Se),Ce=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,Ne=[],Te=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||Ne},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:Ce(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ce(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 ke()(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||Ee)(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(51099);const Pe=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],De={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 Re=n(38873),Ae=n(41715),je=n(47741),Me=n(87578),Le=n(90512),ze=n(98960);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:_,onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,onTransitionEnter:C,onTransitionEntered:O,onTransitionExit:N,onTransitionExited:T,disablePortal:I,container:P,strategy:D,qa:R,restoreFocus:A,restoreFocusRef:j,"aria-label":M,"aria-labelledby":L,role:z,id:F,focusTrap:B=!1,autoFocus:U=!1,"aria-modal":q=B}=e;const $=r.useRef(null);(0,Le.s)({open:s,disableEscapeKeyDown:u,disableOutsideClick:d,onEscapeKeyDown:y,onOutsideClick:b,onClose:w,contentRefs:[c,$],enabled:!f,type:"popup"});const{attributes:Z,styles:H,setPopperRef:V,setArrowRef:W}=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}=Te(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?[De]:[],...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:D,altBoundary:I,modifiers:[{name:"arrow",options:{enabled:n,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:I}},...g]}),G=(0,i.c)(V,$,(0,je.e)()),K=(0,Re.H)({enabled:Boolean(A&&s),restoreFocusRef:j});let Y=z;return!0!==q&&"true"!==q||Y||(Y="dialog"),r.createElement(o.Z,{nodeRef:$,in:s,addEndListener:e=>{var t;return null===(t=$.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,ze.Y)(Ue),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{null===C||void 0===C||C()},onEntered:()=>{null===O||void 0===O||O()},onExit:()=>{null===N||void 0===N||N()},onExited:()=>{null===T||void 0===T||T()}},r.createElement(Ae.h,{container:P,disablePortal:I},r.createElement("div",Object.assign({ref:G,style:H.popper},Z.popper,K,{className:Ue({open:s},h),"data-qa":R,id:F,role:Y,"aria-label":M,"aria-labelledby":L,"aria-modal":q&&s?q:void 0}),r.createElement(je.i,{enabled:B&&s,autoFocus:U},r.createElement("div",{onClick:_,onMouseEnter:x,onMouseLeave:E,onFocus:S,onBlur:k,className:Ue("content",m),style:p,tabIndex:-1},n&&r.createElement(Be,{styles:H.arrow,attributes:Z.arrow,setArrowRef:W}),v)))))}},41715:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(34706),o=n(72985);const i=r.createContext({current:null});i.displayName="PortalContext";var a=n(85507),s=n(8349);const l=(0,n(87578).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}},67661:(e,t,n)=>{"use strict";n.d(t,{E:()=>y});var r=n(34706),o=n(11746),i=n(7947);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(65846);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),_=(0,c.q)({initialValue:b,onReset:w}),x=e=>{w(e.target.value),m&&m(e)},E=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:E,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:x,onFocus:g,onBlur:v,ref:_})))}}var d=n(87578),f=n(15178),p=n(90287);var h=n(15112);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),[_,x]=(0,i.z)(a,null!==s&&void 0!==s&&s,h),E=(0,c.q)({initialValue:_,onReset:x}),S=(0,f.c)(u,w,E);return{checked:_,inputProps:Object.assign(Object.assign({},d),{name:t||b,value:n,id:y,onFocus:g,onBlur:v,disabled:l,type:"radio",onChange:e=>{x(e.target.checked),m&&m(e)},onChangeCapture:e=>{p.P.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:a,defaultChecked:s,"aria-checked":_,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},77315:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(34706),o=n(75447),i=n(19694);const a=(0,n(87578).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)}))},72555:(e,t,n)=>{"use strict";n.d(t,{m:()=>p});var r=n(34706),o=n(87578);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(2634);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})},23795:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(23337),o=n(34706),i=n(24840);const a=(0,n(87578).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"},24840:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});const r=(0,n(87578).Ge)("color-text"),o=(e,t)=>{let{color:n}=e;return r({color:n},t)}},86357:(e,t,n)=>{"use strict";n.d(t,{o:()=>j});var r=n(34706),o=n(78167),i=n(7947),a=n(15178),s=n(11746),l=n(65846),c=n(81351),u=n.n(c),d=n(42542),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((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;o({width:u()(t.offsetWidth,h),height:u()(t.offsetHeight,h)});const n=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 n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var g=n(14561),v=n(16318),y=n(87578),b=n(2915),w=n(72616),_=n(3581);const x=JSON.parse('{"label_clear-button":"Clear"}'),E=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),S=(0,_.e)({en:x,ru:E},`${y.A7}clear-button`),k=(0,y.Ge)("clear-button"),C=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:k(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 N=n(99474),T=n(61784);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})),D=(0,y.Ge)("text-input");function R(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,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:D("control",{type:"input"},t.className),type:o,name:i,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}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,readOnly:b,hasClear:w=!1,error:_,errorMessage:x,errorPlacement:E="outside",validationState:S,autoComplete:k,id:I,tabIndex:D,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:Z,onUpdate:H,onChange:V}=e,{errorMessage:W,errorPlacement:G,validationState:K}=(0,T.II)({error:_,errorMessage:x,errorPlacement:E,validationState:S}),[Y,Q]=(0,i.z)(f,null!==p&&void 0!==p?p:"",H),J=r.useRef(null),X=(0,l.q)({initialValue:Y,onReset:Q}),ee=(0,a.c)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,T.O_)(K),oe=Boolean(h),ie="invalid"===K&&Boolean(W)&&"outside"===G,ae="invalid"===K&&Boolean(W)&&"inside"===G,se=Boolean(w&&!y&&!b&&Y),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=oe&&!I&&!d&&"undefined"===typeof k,fe=(0,s.u)(),pe=oe?I||fe:I,he=m(oe?te:null,c),me=m(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],Z?ve:void 0,ie?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),oe&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===K||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:D,name:d,onChange(e){Q(e.target.value),V&&V(e)},autoComplete:de?"off":(0,T.xp)(k),controlProps:be},_e=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=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:A({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:A("content")},le&&r.createElement(P,{ref:ne,placement:"start",onClick:_e},U),oe&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:A("label"),title:h,htmlFor:pe},`${h}`),r.createElement(R,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(O,{size:C(c),onClick:e=>{Q("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",V&&V(n)}},className:A("clear",{size:c})}),ue&&r.createElement(P,{placement:"end",onClick:_e},q),ae&&r.createElement(v.J,{content:W},r.createElement("span",{"data-qa":T.eP},r.createElement(g.J,{data:o.Z,className:A("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(P,{placement:"end",onClick:_e},$)),r.createElement(N.Z,{note:Z,errorMessage:ie?W:null,noteId:ve,errorMessageId:ge}))}))},99474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(34706),o=n(87578),i=n(61784);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}},61784:(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}}},22396:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(23337),o=n(34706),i=n(87578),a=n(1713);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 _=n||"div",x=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return o.createElement(_,Object.assign({},w,{"data-qa":l,style:x,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},79777:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var r=n(23337),o=n(34706),i=n(87578),a=n(22396),s=n(75246),l=n(89142);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:_,inline:x,gap:E,gapRow:S,className:k,space:C,centerContent:O}=e,N=(0,r._T)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:I,theme:{spaceBaseSize:P}}=(0,s.l)(),D=e=>"object"===typeof e&&null!==e?I(e):e,R=D(E),A=R?P*Number(R):void 0,j=D(S)||R,M=j?P*Number(j):void 0,L=D(C),z=E||S||!L?void 0:(0,l.cA)(L);return o.createElement(a.x,Object.assign({as:T,className:c({"center-content":O,inline:x,s:z},k),ref:t,style:Object.assign({flexDirection:D(i),flexGrow:!0===u?1:u,flexWrap:!0===_?"wrap":_,flexBasis:d,flexShrink:w,columnGap:A,rowGap:M,alignContent:D(h),alignItems:D(m),alignSelf:D(g),justifyContent:D(v),justifyItems:D(y),justifySelf:D(b)},p)},N),C?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},43730:(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"}}}}}},39098:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(34706),o=n(43730);const i=r.createContext({theme:o.A,activeMediaQuery:"s"})},75246:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(34706),o=n(39098),i=n(89142);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(o.V),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,i.ur)(e),getClosestMediaProps:(0,i.GD)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},1713:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,W:()=>a});var r=n(87578),o=n(89142);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},89142:(e,t,n)=>{"use strict";n.d(t,{GD:()=>s,cA:()=>l,ur:()=>i});var r=n(43730);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)},73428:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(34706);const o={mobile:!1,platform:n(74114).t.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},74114:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r,o=n(87578);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.Ge)("root")({mobile:!0}).split(/\s+/)[1]},56952:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r=n(34706),o=n(73428);function i(){return r.useContext(o.z).mobile}},1852:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(34706).createContext(void 0);r.displayName="ThemeContext"},85507:(e,t,n)=>{"use strict";n.d(t,{f:()=>O});var r=n(34706),o=n(39098);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(76564),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(87578),p=n(1852);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),_=w();function x(e){let{theme:t,nativeScrollbar:n=!1,className:r,prevClassName:o}=e;const i=document.body;if(i.classList.contains(_)||i.classList.add(_),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 E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function k(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)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 C=(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,_;const E=r.useContext(p.N),S=r.useContext(h),O=void 0!==E||s,N=null!==(f=null===E||void 0===E?void 0:E.theme)&&void 0!==f?f:m,T=null!==t&&void 0!==t?t:N,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,D=null!==(_=null===E||void 0===E?void 0:E.direction)&&void 0!==_?_:b,R=null!==i&&void 0!==i?i:D,A="light"===k()?I:P,j="system"===T?A:T,M=r.useRef("");r.useLayoutEffect((()=>{O||(x({theme:j,nativeScrollbar:a,className:l,prevClassName:M.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(R),M.current=l)}),[O,j,R,a,l]);const L=r.useMemo((()=>({theme:T,themeValue:j,direction:R,scoped:O})),[T,j,R,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:C({theme:j,"native-scrollbar":!1!==a},l),dir:R},c):c)))}O.displayName="ThemeProvider"},51099:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(8349);function o(){return(0,r.T)().direction}},8349:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(34706),o=n(1852);function i(){const e=r.useContext(o.N);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},53785:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(8349);function o(){return(0,r.T)().themeValue}},47741:(e,t,n)=>{"use strict";n.d(t,{i:()=>x,e:()=>E});var r=n(34706),o=n(7521);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}))}))},_=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},x=function(){var 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||_("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=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&&!_("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},k=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(x()))},C=function(e){var t=_("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),E();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=_("fallbackFocus");return a},N=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())},T=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)})),k(r||(y.mostRecentlyFocusedNode||x()))}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(),k(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())},D=function(){if(y.active)return l(i,n),y.delayInitialFocusTimer=s.delayInitialFocus?p((function(){k(x())})):k(x()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",I,{capture:!0,passive:!1}),n},R=function(){if(y.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!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}))}))&&k(x())})):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||E(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&E(),D(),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,R(),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&&k(C(y.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&l?(l(C(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(),R(),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(),E(),D(),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&&E(),j(),this}}).updateContainerElements(e),n},b=n(15178),w=n(11746);const _=r.createContext(void 0);function x(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(_.Provider,{value:d},r.cloneElement(p,{ref:m}))}function E(){const e=r.useContext(_),t=(0,w.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},87578:(e,t,n)=>{"use strict";n.d(t,{A7:()=>o,Ge:()=>i,Ui:()=>a});var r=n(95936);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},15112:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>l,xA:()=>s,yb:()=>c});var r=n(14561),o=n(87578),i=n(97604);let a=1;function s(){return`${o.A7}uniq-${a++}`}const l=(0,i.s)("svg"),c=(0,i.s)(r.J)},10859:(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,fallbackLang: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},90287:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(23337),o=n(87578);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)},97604:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(34706);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)}}},90512:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(34706),o=n(59143),i=n(90287);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])}},98960:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(87578);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"}))}}},35035:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});const r=new Map;function o(e){!e||r.has(e)}},59143:(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"}},75447:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(34706),o=n(7947),i=n(15178),a=n(90287),s=n(65846);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,_]=(0,o.z)(u,null!==c&&void 0!==c&&c,f),x=!d&&u,E=d?"mixed":w,S=(0,s.q)({initialValue:w,onReset:_}),k=(0,i.c)(h,b,S);r.useLayoutEffect((()=>{b.current&&(b.current.indeterminate=Boolean(d))}),[d]);const C=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.target.checked),p&&p(e)},onClickCapture:C,defaultChecked:c,checked:x,"aria-checked":E,ref:k})}}},65846:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(34706);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)}),[])}},38873:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(34706),o=n(7521);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)}}}},95868:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(34706),o=n(59143);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}},75813:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,b:()=>a});var r=n(34706),o=n(59143);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])}}},9446:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(34706),o=n(74718),i=n.n(o);const a=["overflow","paddingRight","paddingBottom"];let s=0,l={};function c(e){let{enabled:t}=e;r.useLayoutEffect((()=>{if(t)return s++,1===s&&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)}}();l=function(){const e={};for(const t of a)e[t]=i()(document.body.style,t);return e}(),document.body.style.overflow="hidden",e&&(document.body.style.paddingRight=`${n.right+e}px`);t&&(document.body.style.paddingBottom=`${n.bottom+t}px`)}(),()=>{s--,0===s&&function(){for(const e of a){const t=l[e];t?document.body.style[e]=t:document.body.style.removeProperty(e)}}()}}),[t])}},7947:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(34706);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]}},54695:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{k:()=>r})},15178:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(34706),o=n(54695);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)}},69004:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(34706);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])}},11746:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(34706),o=n(87578),i=n(15112);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}},3581:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(21975),o=n(10859);const{lang:i,fallbackLang:a}=(0,o.iE)(),s=new r.mb({lang:i,fallbackLang:a});function l(e,t){Object.entries(e).forEach((e=>{let[n,r]=e;return s.registerKeyset(n,t,r)}));return s.keyset(t)}(0,o.Pe)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},72484:(e,t,n)=>{"use strict";n.d(t,{m:()=>re});var r=n(37906),o=n(34706),i=n(74718),a=n.n(i),s=n(72985),l=n(87578);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(56952),g=n(63366),v=n(87462),y=n(97326),b=n(51721),w=n(97073);function _(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 x(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=_(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:x(s,"exit",e),enter:x(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:x(s,"exit",e),enter:x(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=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,_(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:x(e,"appear",n),enter:x(e,"enter",n),exit:x(e,"exit",n)})}))):E(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=_(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);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(77498),N=n(98960),T=n(52232),I=n(22927),P=n(78167),D=n(83619),R=n(2915);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(72616),M=n(14561),L=n(3581);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:T.Z,success:I.Z,warning:P.Z,danger:P.Z,utility:D.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,onClose:p,removeCallback:h}=e,m=o.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=A({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=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(v,s)},g,{"data-toast":!0}),w&&o.createElement("div",{className:U("icon-container")},w),o.createElement("div",{className:U("container")},y&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.z,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.J,{data:R.Z})),b&&o.createElement("div",{className:U("content",{"without-title":!y})},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:m})))})),H=(0,N.Y)((0,l.Ge)("toast-animation-desktop")),V=(0,N.Y)((0,l.Ge)("toast-animation-mobile"));function W(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(C,{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 K=n(41715);const Y=(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=Y({mobile:r},n))}),[n,r]),o.createElement(K.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:{}},55048:(e,t,n)=>{"use strict";var r=n(12076),o=n(493),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}},493:(e,t,n)=>{"use strict";var r=n(32089),o=n(12076),i=n(70936),a=n(656),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,s),u=n(41939),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},1868:(e,t,n)=>{"use strict";var r=n(80980),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}},41004:(e,t,n)=>{"use strict";var r=n(35356),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}}},63481:(e,t,n)=>{"use strict";var r=n(34706),o=n(41004);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)},13566:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},13398: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 _="$isDayjsObject",x=function(e){return e instanceof C||!(!e||!e[_])},E=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(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=E,k.i=x,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!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(k.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 k},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 k.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=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.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 k.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=k.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[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.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 k.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=k.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 k.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 k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.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 k.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 k.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 k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.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=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.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:k.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=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.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=C.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,C,S),e.$i=!0),S},S.locale=E,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},59524: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)}}}()},99621: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}}}()},33766: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)}}}()},14601:(e,t,n)=>{var r=n(13566);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}}},22338:(e,t,n)=>{"use strict";var r=n(41939),o=n(85658),i=n(656),a=n(11956);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}}},41939:(e,t,n)=>{"use strict";var r=n(12076)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},43085:e=>{"use strict";e.exports=EvalError},56922:e=>{"use strict";e.exports=Error},35292:e=>{"use strict";e.exports=RangeError},99406:e=>{"use strict";e.exports=ReferenceError},85658:e=>{"use strict";e.exports=SyntaxError},656:e=>{"use strict";e.exports=TypeError},32191:e=>{"use strict";e.exports=URIError},9323: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}},32089:(e,t,n)=>{"use strict";var r=n(9323);e.exports=Function.prototype.bind||r},12076:(e,t,n)=>{"use strict";var r,o=n(56922),i=n(43085),a=n(35292),s=n(99406),l=n(85658),c=n(656),u=n(32191),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(4248)(),v=n(16292)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,_={__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 x=y(y(M));_["%Error.prototype%"]=x}var E=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 _[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"]},k=n(32089),C=n(52710),O=k.call(Function.call,Array.prototype.concat),N=k.call(Function.apply,Array.prototype.splice),T=k.call(Function.call,String.prototype.replace),I=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/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 T(e,D,(function(e,t,n,o){r[r.length]=n?T(o,R,"$1"):t||e})),r},j=function(e,t){var n,r=e;if(C(S,r)&&(r="%"+(n=S[r])[0]+"%"),C(_,r)){var o=_[r];if(o===b&&(o=E(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],N(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),C(_,i="%"+(r+="."+h)+"%"))a=_[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=C(a,h),a=a[h];f&&!s&&(_[i]=a)}}return a}},11956:(e,t,n)=>{"use strict";var r=n(12076)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},18124:(e,t,n)=>{"use strict";var r=n(41939),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},16292:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},4248:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(75473);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},75473: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}},52710:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(32089);e.exports=i.call(r,o)},63041:(e,t,n)=>{"use strict";n.d(t,{lX:()=>E,q_:()=>T,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(41437);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",_="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function E(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,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function k(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 C(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.Z)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(k(e.state))}function I(){D(k(x()))}var P=!1;function D(e){if(P)P=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({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 R=k(x()),A=[R.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,T),o&&window.addEventListener(_,I)):0===L&&(window.removeEventListener(w,T),o&&window.removeEventListener(_,I))}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,C(),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,N({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,C(),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),N({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",k={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 C(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 N(e){window.location.replace(C(window.location.href)+"#"+e)}function T(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=k[s],g=d.encodePath,w=d.decodePath;function _(){var e=w(O());return l&&(e=f(e,l)),m(e)}var x=v();function E(e){(0,r.Z)(B,e),B.length=t.length,x.notifyListeners(B.location,B.action)}var T=!1,I=null;function P(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var o=_(),a=B.location;if(!T&&(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(T)T=!1,E();else{var t="POP";x.confirmTransitionTo(e,t,i,(function(n){n?E({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&&(T=!0,M(o))}(e)}))}}(o)}}var D=O(),R=g(D);D!==R&&N(R);var A=_(),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=C(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);x.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,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);x.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(I=t,N(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=x.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}},23513:(e,t,n)=>{"use strict";var r=n(89724),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}},32330:(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){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 x(e){return _(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 x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(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=_},89724:(e,t,n)=>{"use strict";e.exports=n(32330)},37362: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}}},25440: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)},79617:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},81665:(e,t,n)=>{var r=n(69457)(n(99046),"DataView");e.exports=r},24484:(e,t,n)=>{var r=n(95798),o=n(27763),i=n(24288),a=n(22891),s=n(23653);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},18207:(e,t,n)=>{var r=n(40048),o=n(6416),i=n(75019),a=n(67011),s=n(57290);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},42965:(e,t,n)=>{var r=n(69457)(n(99046),"Map");e.exports=r},17221:(e,t,n)=>{var r=n(1758),o=n(45050),i=n(95650),a=n(9773),s=n(94749);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},91619:(e,t,n)=>{var r=n(69457)(n(99046),"Promise");e.exports=r},24048:(e,t,n)=>{var r=n(69457)(n(99046),"Set");e.exports=r},17354:(e,t,n)=>{var r=n(17221),o=n(6991),i=n(62063);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},65007:(e,t,n)=>{var r=n(18207),o=n(22471),i=n(85941),a=n(74649),s=n(16151),l=n(26821);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},72211:(e,t,n)=>{var r=n(99046).Symbol;e.exports=r},53131:(e,t,n)=>{var r=n(99046).Uint8Array;e.exports=r},81456:(e,t,n)=>{var r=n(69457)(n(99046),"WeakMap");e.exports=r},69971: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)}},79553: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}},48527: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}},56278:(e,t,n)=>{var r=n(12714);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},52774: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}},16917:(e,t,n)=>{var r=n(19735),o=n(15543),i=n(97182),a=n(29821),s=n(45993),l=n(37330),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}},6703: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}},75719: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}},69102: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}},71854:e=>{e.exports=function(e){return e.split("")}},86114:(e,t,n)=>{var r=n(91560),o=n(1325);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},30058:(e,t,n)=>{var r=n(91560),o=n(1325),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)}},16524:(e,t,n)=>{var r=n(1325);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6745:(e,t,n)=>{var r=n(44526),o=n(15724);e.exports=function(e,t){return e&&r(t,o(t),e)}},80024:(e,t,n)=>{var r=n(44526),o=n(92390);e.exports=function(e,t){return e&&r(t,o(t),e)}},91560:(e,t,n)=>{var r=n(46572);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},54721:(e,t,n)=>{var r=n(65007),o=n(79553),i=n(30058),a=n(6745),s=n(80024),l=n(56685),c=n(54240),u=n(15091),d=n(23750),f=n(86038),p=n(87859),h=n(92333),m=n(92888),g=n(38838),v=n(58566),y=n(97182),b=n(29821),w=n(51351),_=n(76986),x=n(15973),E=n(15724),S=n(92390),k=1,C=2,O=4,N="[object Arguments]",T="[object Function]",I="[object GeneratorFunction]",P="[object Object]",D={};D[N]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[P]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[T]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,R,A,j,M){var L,z=n&k,F=n&C,B=n&O;if(R&&(L=j?R(t,A,j,M):R(t)),void 0!==L)return L;if(!_(t))return t;var U=y(t);if(U){if(L=m(t),!z)return c(t,L)}else{var q=h(t),$=q==T||q==I;if(b(t))return l(t,z);if(q==P||q==N||$&&!j){if(L=F||$?{}:v(t),!z)return F?d(t,s(L,t)):u(t,a(L,t))}else{if(!D[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),x(t)?t.forEach((function(r){L.add(e(r,n,R,r,t,M))})):w(t)&&t.forEach((function(r,o){L.set(o,e(r,n,R,o,t,M))}));var H=U?void 0:(B?F?p:f:F?S:E)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),i(L,o,e(r,n,R,o,t,M))})),L}},52942:(e,t,n)=>{var r=n(76986),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},54655:(e,t,n)=>{var r=n(51869),o=n(74322)(r);e.exports=o},22268: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}},83986:(e,t,n)=>{var r=n(16230)();e.exports=r},51869:(e,t,n)=>{var r=n(83986),o=n(15724);e.exports=function(e,t){return e&&r(e,t,o)}},33270:(e,t,n)=>{var r=n(10834),o=n(22413);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}},98590:(e,t,n)=>{var r=n(75719),o=n(97182);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},71519:(e,t,n)=>{var r=n(72211),o=n(17059),i=n(65044),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)}},51564:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},12714:(e,t,n)=>{var r=n(22268),o=n(15088),i=n(15768);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},98640:(e,t,n)=>{var r=n(71519),o=n(80640),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},89366:(e,t,n)=>{var r=n(74436),o=n(80640);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))}},74436:(e,t,n)=>{var r=n(65007),o=n(47145),i=n(88728),a=n(2716),s=n(92333),l=n(97182),c=n(29821),u=n(37330),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),_=b?p:s(e),x=w?p:s(t),E=(_=_==f?h:_)==h,S=(x=x==f?h:x)==h,k=_==x;if(k&&c(e)){if(!c(t))return!1;b=!0,E=!1}if(k&&!E)return y||(y=new r),b||u(e)?o(e,t,n,g,v,y):i(e,t,_,n,g,v,y);if(!(n&d)){var C=E&&m.call(e,"__wrapped__"),O=S&&m.call(t,"__wrapped__");if(C||O){var N=C?e.value():e,T=O?t.value():t;return y||(y=new r),v(N,T,n,g,y)}}return!!k&&(y||(y=new r),a(e,t,n,g,v,y))}},10319:(e,t,n)=>{var r=n(92333),o=n(80640),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},65320:(e,t,n)=>{var r=n(65007),o=n(89366),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}},15088:e=>{e.exports=function(e){return e!==e}},85722:(e,t,n)=>{var r=n(18437),o=n(54606),i=n(76986),a=n(24409),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))}},5532:(e,t,n)=>{var r=n(92333),o=n(80640),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},87120:(e,t,n)=>{var r=n(71519),o=n(6906),i=n(80640),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)]}},17370:(e,t,n)=>{var r=n(34249),o=n(65890),i=n(66379),a=n(97182),s=n(88791);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)}},556:(e,t,n)=>{var r=n(63691),o=n(89760),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}},5542:(e,t,n)=>{var r=n(76986),o=n(63691),i=n(6022),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}},34249:(e,t,n)=>{var r=n(65320),o=n(86651),i=n(18727);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)}}},65890:(e,t,n)=>{var r=n(89366),o=n(74718),i=n(15929),a=n(30621),s=n(69783),l=n(18727),c=n(22413),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)}}},20085:(e,t,n)=>{var r=n(65007),o=n(86114),i=n(83986),a=n(70939),s=n(76986),l=n(92390),c=n(78758);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)}},70939:(e,t,n)=>{var r=n(86114),o=n(56685),i=n(23713),a=n(54240),s=n(58566),l=n(15543),c=n(97182),u=n(70816),d=n(29821),f=n(18437),p=n(76986),h=n(18975),m=n(37330),g=n(78758),v=n(27158);e.exports=function(e,t,n,y,b,w,_){var x=g(e,n),E=g(t,n),S=_.get(E);if(S)r(e,n,S);else{var k=w?w(x,E,n+"",e,t,_):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(x)?k=x:u(x)?k=a(x):N?(C=!1,k=o(E,!0)):T?(C=!1,k=i(E,!0)):k=[]:h(E)||l(E)?(k=x,l(x)?k=v(x):p(x)&&!f(x)||(k=s(E))):C=!1}C&&(_.set(E,k),b(k,E,y,w,_),_.delete(E)),r(e,n,k)}}},35781:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},63873:(e,t,n)=>{var r=n(33270);e.exports=function(e){return function(t){return r(t,e)}}},53031: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}},73934:(e,t,n)=>{var r=n(66379),o=n(60466),i=n(11646);e.exports=function(e,t){return i(o(e,t,r),e+"")}},67539:(e,t,n)=>{var r=n(30058),o=n(10834),i=n(45993),a=n(76986),s=n(22413);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}},43860:(e,t,n)=>{var r=n(28663),o=n(46572),i=n(66379),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},48077: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}},19735:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},9561:(e,t,n)=>{var r=n(72211),o=n(6703),i=n(97182),a=n(34197),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}},63555:(e,t,n)=>{var r=n(35662),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},41944:e=>{e.exports=function(e){return function(t){return e(t)}}},11526:(e,t,n)=>{var r=n(17354),o=n(56278),i=n(52774),a=n(92602),s=n(23303),l=n(87707),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}},92602:e=>{e.exports=function(e,t){return e.has(t)}},52292:(e,t,n)=>{var r=n(66379);e.exports=function(e){return"function"==typeof e?e:r}},10834:(e,t,n)=>{var r=n(97182),o=n(30621),i=n(60287),a=n(28406);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},49063:(e,t,n)=>{var r=n(48077);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)}},61581:(e,t,n)=>{var r=n(53131);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},56685:(e,t,n)=>{e=n.nmd(e);var r=n(99046),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}},26645:(e,t,n)=>{var r=n(61581);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},50464:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},75686:(e,t,n)=>{var r=n(72211),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},23713:(e,t,n)=>{var r=n(61581);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},54240: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}},44526:(e,t,n)=>{var r=n(30058),o=n(91560);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}},15091:(e,t,n)=>{var r=n(44526),o=n(8324);e.exports=function(e,t){return r(e,o(e),t)}},23750:(e,t,n)=>{var r=n(44526),o=n(37255);e.exports=function(e,t){return r(e,o(e),t)}},59946:(e,t,n)=>{var r=n(99046)["__core-js_shared__"];e.exports=r},63379:(e,t,n)=>{var r=n(73934),o=n(39965);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}))}},74322:(e,t,n)=>{var r=n(96575);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}}},16230: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}}},85076:(e,t,n)=>{var r=n(49063),o=n(77819),i=n(94342),a=n(28406);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}}},77776:(e,t,n)=>{var r=n(53031),o=n(39965),i=n(84899);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)}}},45621:(e,t,n)=>{var r=n(99046),o=n(70696),i=n(59227),a=n(28406),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)}}},23303:(e,t,n)=>{var r=n(24048),o=n(15208),i=n(87707),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},46572:(e,t,n)=>{var r=n(69457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},47145:(e,t,n)=>{var r=n(17354),o=n(69102),i=n(92602),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 _=d?l(w,b,g,t,e,u):l(b,w,g,e,t,u);if(void 0!==_){if(_)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}},88728:(e,t,n)=>{var r=n(72211),o=n(53131),i=n(1325),a=n(47145),s=n(86450),l=n(87707),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]",_="[object DataView]",x=r?r.prototype:void 0,E=x?x.valueOf:void 0;e.exports=function(e,t,n,r,x,S,k){switch(n){case _: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 C=s;case v:var O=r&c;if(C||(C=l),e.size!=t.size&&!O)return!1;var N=k.get(e);if(N)return N==t;r|=u,k.set(e,t);var T=a(C(e),C(t),r,x,S,k);return k.delete(e),T;case b:if(E)return E.call(e)==E.call(t)}return!1}},2716:(e,t,n)=>{var r=n(86038),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.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return l.delete(e),l.delete(t),g}},85310:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},86038:(e,t,n)=>{var r=n(98590),o=n(8324),i=n(15724);e.exports=function(e){return r(e,i,o)}},87859:(e,t,n)=>{var r=n(98590),o=n(37255),i=n(92390);e.exports=function(e){return r(e,i,o)}},70782:(e,t,n)=>{var r=n(68727);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},86651:(e,t,n)=>{var r=n(69783),o=n(15724);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}},69457:(e,t,n)=>{var r=n(85722),o=n(78981);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},23856:(e,t,n)=>{var r=n(9305)(Object.getPrototypeOf,Object);e.exports=r},17059:(e,t,n)=>{var r=n(72211),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}},8324:(e,t,n)=>{var r=n(48527),o=n(4263),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},37255:(e,t,n)=>{var r=n(75719),o=n(23856),i=n(8324),a=n(4263),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},92333:(e,t,n)=>{var r=n(81665),o=n(42965),i=n(91619),a=n(24048),s=n(81456),l=n(71519),c=n(24409),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},78981:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5832:(e,t,n)=>{var r=n(10834),o=n(15543),i=n(97182),a=n(45993),s=n(6906),l=n(22413);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))}},77819:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},95798:(e,t,n)=>{var r=n(62527);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},27763:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},24288:(e,t,n)=>{var r=n(62527),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}},22891:(e,t,n)=>{var r=n(62527),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},23653:(e,t,n)=>{var r=n(62527),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}},92888: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}},38838:(e,t,n)=>{var r=n(61581),o=n(26645),i=n(50464),a=n(75686),s=n(23713),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]",_="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",C="[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 _:case x:case E:case S:case k:case C: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)}}},58566:(e,t,n)=>{var r=n(52942),o=n(23856),i=n(63691);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},45993: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}},39965:(e,t,n)=>{var r=n(1325),o=n(96575),i=n(45993),a=n(76986);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)}},30621:(e,t,n)=>{var r=n(97182),o=n(34197),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))}},68727:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},54606:(e,t,n)=>{var r=n(59946),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}},63691:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},69783:(e,t,n)=>{var r=n(76986);e.exports=function(e){return e===e&&!r(e)}},40048:e=>{e.exports=function(){this.__data__=[],this.size=0}},6416:(e,t,n)=>{var r=n(16524),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)}},75019:(e,t,n)=>{var r=n(16524);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67011:(e,t,n)=>{var r=n(16524);e.exports=function(e){return r(this.__data__,e)>-1}},57290:(e,t,n)=>{var r=n(16524);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}},1758:(e,t,n)=>{var r=n(24484),o=n(18207),i=n(42965);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},45050:(e,t,n)=>{var r=n(70782);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},95650:(e,t,n)=>{var r=n(70782);e.exports=function(e){return r(this,e).get(e)}},9773:(e,t,n)=>{var r=n(70782);e.exports=function(e){return r(this,e).has(e)}},94749:(e,t,n)=>{var r=n(70782);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}},86450:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},18727:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},51741:(e,t,n)=>{var r=n(21487),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},62527:(e,t,n)=>{var r=n(69457)(Object,"create");e.exports=r},89760:(e,t,n)=>{var r=n(9305)(Object.keys,Object);e.exports=r},6022:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4343:(e,t,n)=>{e=n.nmd(e);var r=n(85310),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},65044:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9305:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},60466:(e,t,n)=>{var r=n(69971),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)}}},99046:(e,t,n)=>{var r=n(85310),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},78758:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},6991:e=>{var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},62063:e=>{e.exports=function(e){return this.__data__.has(e)}},87707:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},11646:(e,t,n)=>{var r=n(43860),o=n(35535)(r);e.exports=o},35535: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)}}},22471:(e,t,n)=>{var r=n(18207);e.exports=function(){this.__data__=new r,this.size=0}},85941:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},74649:e=>{e.exports=function(e){return this.__data__.get(e)}},16151:e=>{e.exports=function(e){return this.__data__.has(e)}},26821:(e,t,n)=>{var r=n(18207),o=n(42965),i=n(17221),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}},15768: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}},94342:(e,t,n)=>{var r=n(71854),o=n(77819),i=n(44585);e.exports=function(e){return o(e)?i(e):r(e)}},60287:(e,t,n)=>{var r=n(51741),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},22413:(e,t,n)=>{var r=n(34197),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}},24409: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""}},35662:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},44585: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)||[]}},29355:(e,t,n)=>{var r=n(28406),o=n(21393);e.exports=function(e){return o(r(e).toLowerCase())}},47575:(e,t,n)=>{var r=n(54721),o=1,i=4;e.exports=function(e){return r(e,o|i)}},28663:e=>{e.exports=function(e){return function(){return e}}},58399:(e,t,n)=>{var r=n(76986),o=n(99978),i=n(59227),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 _(){var e=o();if(w(e))return x(e);p=setTimeout(_,function(e){var n=t-(e-h);return v?l(n,d-(e-m)):n}(e))}function x(e){return p=void 0,y&&c?b(e):(c=u=void 0,f)}function E(){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(_,t),g?b(e):f}(h);if(v)return clearTimeout(p),p=setTimeout(_,t),b(h)}return void 0===p&&(p=setTimeout(_,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),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},E.flush=function(){return void 0===p?f:x(o())},E}},51244:(e,t,n)=>{e.exports=n(13141)},1325:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},13141:(e,t,n)=>{var r=n(79553),o=n(54655),i=n(52292),a=n(97182);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},74718:(e,t,n)=>{var r=n(33270);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},15929:(e,t,n)=>{var r=n(51564),o=n(5832);e.exports=function(e,t){return null!=e&&o(e,t,r)}},66379:e=>{e.exports=function(e){return e}},15543:(e,t,n)=>{var r=n(98640),o=n(80640),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},97182:e=>{var t=Array.isArray;e.exports=t},96575:(e,t,n)=>{var r=n(18437),o=n(6906);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},70816:(e,t,n)=>{var r=n(96575),o=n(80640);e.exports=function(e){return o(e)&&r(e)}},29821:(e,t,n)=>{e=n.nmd(e);var r=n(99046),o=n(15454),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},55102:(e,t,n)=>{var r=n(556),o=n(92333),i=n(15543),a=n(97182),s=n(96575),l=n(29821),c=n(63691),u=n(37330),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}},74647:(e,t,n)=>{var r=n(89366);e.exports=function(e,t){return r(e,t)}},18437:(e,t,n)=>{var r=n(71519),o=n(76986),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}},6906:e=>{var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},51351:(e,t,n)=>{var r=n(10319),o=n(41944),i=n(4343),a=i&&i.isMap,s=a?o(a):r;e.exports=s},76986:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80640:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},18975:(e,t,n)=>{var r=n(71519),o=n(23856),i=n(80640),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}},15973:(e,t,n)=>{var r=n(5532),o=n(41944),i=n(4343),a=i&&i.isSet,s=a?o(a):r;e.exports=s},34197:(e,t,n)=>{var r=n(71519),o=n(80640),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},37330:(e,t,n)=>{var r=n(87120),o=n(41944),i=n(4343),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},15724:(e,t,n)=>{var r=n(16917),o=n(556),i=n(96575);e.exports=function(e){return i(e)?r(e):o(e)}},92390:(e,t,n)=>{var r=n(16917),o=n(5542),i=n(96575);e.exports=function(e){return i(e)?r(e,!0):o(e)}},21487:(e,t,n)=>{var r=n(17221),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},76564:(e,t,n)=>{var r=n(20085),o=n(63379)((function(e,t,n){r(e,t,n)}));e.exports=o},15208:e=>{e.exports=function(){}},99978:(e,t,n)=>{var r=n(99046);e.exports=function(){return r.Date.now()}},88791:(e,t,n)=>{var r=n(35781),o=n(63873),i=n(30621),a=n(22413);e.exports=function(e){return i(e)?r(a(e)):o(e)}},16991:(e,t,n)=>{var r=n(77776)();e.exports=r},81351:(e,t,n)=>{var r=n(45621)("round");e.exports=r},61120:(e,t,n)=>{var r=n(67539);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},4263:e=>{e.exports=function(){return[]}},15454:e=>{e.exports=function(){return!1}},42542:(e,t,n)=>{var r=n(58399),o=n(76986),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})}},84899:(e,t,n)=>{var r=n(59227),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}},70696:(e,t,n)=>{var r=n(84899);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},59227:(e,t,n)=>{var r=n(63555),o=n(76986),i=n(34197),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}},27158:(e,t,n)=>{var r=n(44526),o=n(92390);e.exports=function(e){return r(e,o(e))}},28406:(e,t,n)=>{var r=n(9561);e.exports=function(e){return null==e?"":r(e)}},36205:(e,t,n)=>{var r=n(17370),o=n(11526);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},21393:(e,t,n)=>{var r=n(85076)("toUpperCase");e.exports=r},9651: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)}},25586:(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}}},57730:function(e,t,n){var r,o,i;o=[n(89630)],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)},89630: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,_="",x=!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._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):_=e._.toFixed(t,l.length,r),s=_.split(".")[0],_=e._.includes(_,".")?f.delimiters.decimal+_.split(".")[1]:"",h&&0===Number(_.slice(1))&&(_="")):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),x=!0),s.length<m)for(var E=m-s.length;E>0;E--)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+_+(g||""),p?d=(p&&x?"(":"")+d+(p&&x?")":""):c>=0?d=0===c?(x?"-":"+")+d:d+(x?"-":"+"):x&&(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)},35356: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}},10159:(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,_=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="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,D=Object.prototype.propertyIsEnumerable,R=("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||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(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,""")}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||!T)return!1;try{return T.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 x=String(t);return w?A(t,x):x}if("bigint"===typeof t){var C=String(t)+"n";return w?A(t,C):C}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=N&&N>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=k.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"):T.call(t);return"object"!==typeof t||I?te:K(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="<"+_.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+="</"+_.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)||D.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+$(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-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 Y("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 Y("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return K($(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 K($(O.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return K(h.call(t));if(function(e){return"[object String]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return K($(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=R?R(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(E.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 K(e){return"Object("+e+")"}function Y(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 N?N(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||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)D.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},13888: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],_=o[5];if(!p&&u.length){var x=u.length-1,E=u[x];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,x))}u&&(i.push(u),u="",p=!1);var S="+"===_||"*"===_,k="?"===_||"*"===_,C=b||w,O=v||d;i.push({name:y||l++,prefix:v,delimiter:O,optional:k,repeat:S,pattern:C?s(C):"[^"+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)}},97262:(e,t,n)=>{"use strict";var r=n(96289);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}},21035:(e,t,n)=>{e.exports=n(97262)()},96289:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},91185: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}},88726:(e,t,n)=>{"use strict";var r=n(18187),o=n(56168),i=n(91185);e.exports={formats:i,parse:o,stringify:r}},56168:(e,t,n)=>{"use strict";var r=n(73880),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)}},18187:(e,t,n)=>{"use strict";var r=n(65742),o=n(73880),i=n(91185),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,_,x,E,S){for(var k,C=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var I=O.get(t);if(N+=1,"undefined"!==typeof I){if(I===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?C=g(n,C):C instanceof Date?C=b(C):"comma"===i&&l(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!x?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||o.isBuffer(C))return m?[_(x?n:m(n,p.encoder,E,"key",w))+"="+_(m(C,p.encoder,E,"value",w))]:[_(n)+"="+_(String(C))];var P,D=[];if("undefined"===typeof C)return D;if("comma"===i&&l(C))x&&m&&(C=o.maybeMap(C,m)),P=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))P=g;else{var R=Object.keys(C);P=v?R.sort(v):R}var A=f?n.replace(/\./g,"%2E"):n,j=a&&l(C)&&1===C.length?A+"[]":A;if(s&&l(C)&&0===C.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:C[L];if(!d||null!==z){var F=y&&f?L.replace(/\./g,"%2E"):L,B=l(C)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(D,e(z,B,i,a,s,c,d,f,"comma"===i&&x&&l(C)?null:m,g,v,y,b,w,_,x,E,U))}}return D};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:""}},73880:(e,t,n)=>{"use strict";var r=n(91185),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)}}},52519:(e,t,n)=>{"use strict";n.d(t,{Z5:()=>zo,_l:()=>xi,bK:()=>Ci});var r=n(34706),o=n(51721),i=n(87462),a=n(84419),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(23513),g=n.n(m),v=n(32252),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],_=[null,null];function x(e,t){var n=e[1];return[t.payload,n+1]}function E(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 k(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 C=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,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),I=void 0!==T&&T,P=n.context,D=void 0===P?s:P,R=(0,h.Z)(n,y),A=D;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.Z)({},R,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=R.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]),N=(0,r.useMemo)((function(){if(!m)return _;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],I=N[1],P=(0,r.useMemo)((function(){return g?p:(0,i.Z)({},p,{subscription:T})}),[g,p,T]),D=(0,r.useReducer)(x,w,C),R=D[0][0],j=D[1];if(R&&R.error)throw R.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,R,c]);E(S,[L,M,F,c,B,z,I]),E(k,[m,y,T,O,L,M,F,z,I,j],[y,T,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 N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(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])||!N(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 D(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 R=[function(e){return"function"===typeof e?D(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?D(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?R: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?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,_=void 0===w?T:w,x=(0,h.Z)(s,U),E=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),k=q(n,u,"mergeProps");return r(f,(0,i.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}const H=Z();var V,W=n(72985);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 K=G,Y=function(e,t){return G((function(){return e}),t)},Q=n(41437),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(25586);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,_e="Invariant failed";function xe(e){this.message=e}function Ee(e,t){if(!e)throw new xe(we?_e:_e+": "+(t||""))}xe.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 xe&&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 xe))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ke=function(e){return e+1},Ce=function(e,t){var n=e.droppableId===t.droppableId,r=ke(e.index),o=ke(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 "},Ne=function(e){return"\n The item has returned to its starting position\n of "+ke(e.index)+"\n"},Te={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 "+ke(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return Ce(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 "+Ne(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Ce(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 "+Ne(e.source)+"\n "}},Ie={x:0,y:0},Pe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},De=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Re=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||Ee(!1);var n=e.frame,r=De(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}),{})})),Ke=(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 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||Ee(!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||Ee(!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)},_t=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},xt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Et=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return je(t.line,n.marginBox[t.end]+_t(t,r),xt(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),xt(t,n.marginBox,r))},kt=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]+_t(t,r),xt(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 Et({axis:l,moveRelativeTo:m,isMoving:s})}return Et({axis:l,moveRelativeTo:h.page,isMoving:s})},Ct=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?kt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):wt({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Ct(n,t):t},Nt=function(e,t){var n=De(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 Tt(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=De(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=De(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)},Dt=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&&Ee(!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=De(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=Nt(n,Pe(n.scroll.current,a)),l=r.frame?$e(r,Pe(r.frame.scroll.current,a)):r,c=t.displaced,u=mt({afterDragging:Tt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=mt({afterDragging:Tt(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}},Rt=function(e){var t=e.subject.active;return t||Ee(!1),t},At=function(e,t){var n=e.page.borderBox.center;return yt(e.descriptor.id,t)?De(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)&&Ee(!1),e.subject.withPlaceholder&&Ee(!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=Ye(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)(Rt(e))})).filter((function(e){var n=Rt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Rt(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=Rt(e)[s.crossAxisStart],o=Rt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Rt(e)[s.crossAxisStart]===Rt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return at(Rt(e)[s.start],Rt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Rt(e)[s.start]-Rt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Le(n,Be(Rt(e))),o=Le(n,Be(Rt(t)));return r!==o?r-o:Rt(e)[s.start]-Rt(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,Ct(r,At(e,i))),a=Me(t,Ct(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?Dt({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=Ye(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))},Kt=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||Ee(!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||Ee(!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)},Yt=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=De(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=Kt({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&&Ee(!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||Ee(!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 Yt({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&&Ee(!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||Ee(!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?Yt({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&&Ee(!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=Ye(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&&Ee(!1),(0,i.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ee(!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=Ke(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)||Ee(!1);var g=t.payload.client;return Re(g,e.current.client.selection)?e:Yt({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)||Ee(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var _=$e(w,b);return an(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ee(!1);var x=t.payload,E=x.id,S=x.isEnabled,k=e.dimensions.droppables[E];k||Ee(!1),k.isEnabled===S&&Ee(!1);var C=(0,i.Z)({},k,{isEnabled:S});return an(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ee(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,I=e.dimensions.droppables[N];I||Ee(!1),I.isCombineEnabled===T&&Ee(!1);var P=(0,i.Z)({},I,{isCombineEnabled:T});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)||Ee(!1),e.isWindowScrollAllowed||Ee(!1);var D=t.payload.newScroll;if(Re(e.viewport.scroll.current,D))return sn(e);var R=Nt(e.viewport,D);return on(e)?Xt({state:e,viewport:R}):Yt({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!qt(e))return e;var A=t.payload.maxScroll;if(Re(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&&Ee(!1);var M=Ut({state:e,type:t.type});return M?Yt({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&&Ee(!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&&Ee(!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}},_n=function(){return{type:"FLUSH",payload:null}},xn=function(e){return{type:"DROP_COMPLETE",payload:e}},En=function(e){return{type:"DROP",payload:e}},Sn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var kn={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Cn={opacity:{drop:0,combining:.7},scale:{drop:.75}},On=.33,Nn=.55,Tn=.2+"s "+kn.outOfTheWay,In={fluid:"opacity "+Tn,snap:"transform "+Tn+", opacity "+Tn,drop:function(e){var t=e+"s "+kn.drop;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Tn,placeholder:"height "+Tn+", width "+Tn+", margin "+Tn},Pn=function(e){return Re(e,Ie)?null:"translate("+e.x+"px, "+e.y+"px)"},Dn={moveTo:Pn,drop:function(e,t){var n=Pn(e);return n?t?n+" scale("+Cn.scale.drop+")":n:null}},Rn=On,An=Nn,jn=An-Rn,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&&Ee(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ee(!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 De(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(!Re(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 Rn;if(o>=1500)return An;var i=Rn+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(xn({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()&&Ee(!1),o=be(window,[r])},stop:function(){i()||Ee(!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&&Ee(!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||Ee(!1),r=null,Un(0,(function(){return $n(e().onDragEnd,n,t,Te.onDragEnd)}))};return{beforeCapture:function(t,n){r&&Ee(!1),Un(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&Ee(!1),Un(0,(function(){var r=e().onBeforeDragStart;r&&r(qn(t,n))}))},start:function(o,i){r&&Ee(!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,Te.onDragStart)}))}))},update:function(o,a){var s=Xe(a),l=et(a);r||Ee(!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,Te.onDragUpdate)}))}))}},flush:function(){r||Ee(!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&&Ee(!1),e.dispatch(xn({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(En({reason:r.reason})))}}}},Gn=a.qC,Kn=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(xn({completed:c.completed})),"IDLE"!==n().phase&&Ee(!1),r(_n()),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&&Ee(!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))))},Yn=function(){return{additions:{},removals:{},modified:{}}};var Qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=De({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||Ee(!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:Ke(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=Yn(),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=Yn(),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=Yn())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||Ee(!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)||Ee(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||Ee(!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)||Ee(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&Ee(!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 Ye(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||Ee(!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(Re(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?Re(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 Re(a,Ie)?null:a}}(),_r=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)},xr=function(e,t){return _r({current:e.scroll.current,max:e.scroll.max,change:t})},Er=function(e,t){var n=e.frame;return!!n&&_r({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&&xr(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&&Er(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},kr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Er(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Er(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=De(t,r);return n(e.descriptor.id,o),De(t,o)},i=function(e,t,n){if(!e)return n;if(!xr(t,n))return n;var o=function(e,t){if(!xr(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=De(n,o);return r(i),De(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Bt(e.impact);r||Ee(!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)}}}},Cr=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||Ee(!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&&Ee(!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=kr({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",Nr=function(){var e=Or+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Tr=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"},Dr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Rr=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(Nr.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(Tr.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:Dr(o,"always"),resting:Dr(o,"resting"),dragging:Dr(o,"dragging"),dropAnimating:Dr(o,"dropAnimating"),userCancel:Dr(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||Ee(!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="["+Nr.contextId+'="'+e+'"]',r=We(document.querySelectorAll(n));if(!r.length)return null;var o=Ve(r,(function(e){return e.getAttribute(Nr.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||Ee(!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||Ee(!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||Ee(!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),K((function(){return""+e+t.separator+Hr++}),[t.separator,e])}var Gr=r.createContext(null);function Kr(e){0}function Yr(e,t){Kr()}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&&Ee(!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&&Ee(!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 _o(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&&_o(e,t.parentElement)}function xo(e,t){var n=t.target;return!!zr(n)&&_o(e,n)}var Eo=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 ko(e,t){return null==e?null:e[So](t)?e:ko(e.parentElement,t)}function Co(e,t){return e.closest?e.closest(t):ko(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"["+Nr.contextId+'="'+e+'"]'}(e),i=Co(r,o);return i&&zr(i)?i:null}function No(e){e.preventDefault()}function To(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="["+Tr.contextId+'="'+e+'"]',r=Ve(We(document.querySelectorAll(n)),(function(e){return e.getAttribute(Tr.id)===t}));return r&&zr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&xo(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){To({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:No,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(En({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&Ee(!1)),r.dispatch(un(e.liftActionArgs)),f="DRAGGING",(0,i.Z)({isActive:function(){return To({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 To({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:Eo(u),movementMode:"SNAP"},cleanup:ye,actions:e})},abort:function(){To({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var Do=[function(e){var t=(0,r.useRef)(fo),n=(0,r.useRef)(ye),o=K((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=K((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=Y((function(){n.current=be(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=Y((function(){"IDLE"!==t.current.type&&(t.current=fo,n.current(),a())}),[a]),l=Y((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Y((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=Y((function(e,n){"IDLE"!==t.current.type&&Ee(!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=K((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||Ee(!1),a=!1,t.current(),o()}}}}),[e]),o=Y((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=Y((function(){return t.current}),[]),i=Y((function(e){t.current=e}),[]),a=K((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=Y((function(){n.current=be(window,[a],{capture:!0,passive:!1})}),[a]),l=Y((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(vo),n.current(),s())}),[s,i]),c=Y((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Y((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&&Ee(!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=Y((function(){var e=o();"PENDING"!==e.type&&Ee(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=Y((function(e,t){"IDLE"!==o().type&&Ee(!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 Ro(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?Do:[],i||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||Ee(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Ee(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Y((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=Y((function(e){return Io({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=Y((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=Y((function(e){return function(e,t){var n=Oo(e,t);return n?n.getAttribute(Nr.draggableId):null}(t,e)}),[t]),p=Y((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Y((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(_n()))}),[l,n]),m=Y(l.isClaimed,[l]),g=K((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Kr();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||Ee(!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);Yr();var u=Qr(e),d=Y((function(){return Ao(u.current)}),[u]),f=function(e){var t=K((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]),Y((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=K((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=K((function(){return Rr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Y((0,le.Z)((function(e){var t=i.current;t||Ee(!1),t.textContent=e})),[]),s=Y((function(e){var t=o.current;t||Ee(!1),t.textContent=e}),[]);Ar((function(){(o.current||i.current)&&Ee(!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||Ee(!1),jr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=Y((function(){return a(n.dragging)}),[a,n.dragging]),c=Y((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Y((function(){i.current&&a(n.resting)}),[a,n.resting]);return K((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Y((function(e){jo(c).dispatch(e)}),[]),v=K((function(){return(0,a.DE)({publishWhileDragging:dn,updateDroppableScroll:pn,updateDroppableIsEnabled:hn,updateDroppableIsCombineEnabled:mn,collectionStarting:fn},g)}),[g]),y=function(){var e=K(Br,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=K((function(){return nr(y,v)}),[y,v]),w=K((function(){return Cr((0,i.Z)({scrollWindow:or,scrollDroppable:b.scrollDroppable},(0,a.DE)({move:gn},g)))}),[b.scrollDroppable,g]),_=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Y((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=Y((function(t){var n=Fr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Y((function(e,t){n.current===e&&(n.current=t)}),[]),c=Y((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Y((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Nr.draggableId)===e&&(n.current=e)}),[]);return Ar((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),K((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),x=K((function(){return Kn({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:_,getResponders:d,styleMarshal:m})}),[f,w,b,_,d,m]);c.current=x;var E=Y((function(){var e=jo(c);"IDLE"!==e.getState().phase&&e.dispatch(_n())}),[]),S=Y((function(){var e=jo(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(K((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var k=Y((function(e){return rr(jo(c).getState(),e)}),[]),C=Y((function(){return qt(jo(c).getState())}),[]),O=K((function(){return{marshal:b,focus:_,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,_,k,C,y]);return Ro({contextId:t,store:x,registry:y,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Gr.Provider,{value:O},r.createElement(p,{context:Ur,store:x},e.children))}var Lo=0;function zo(e){var t=K((function(){return""+Lo++}),[]),n=e.dragHandleUsageInstructions||Te.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},Ko={passive:!1},Yo={passive:!0},Qo=function(e){return e.shouldPublishImmediately?Ko:Yo};function Jo(e){var t=(0,r.useContext)(e);return t||Ee(!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=Y((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=Y((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?Cn.opacity.drop:Cn.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?Dn.drop(n,i):Dn.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:Dn.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=K((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Y((function(e){var t=i();return t||Ee(!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=K((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){Yr()}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:kn.drop,moveTo:r.newHomeClientOffset,opacity:g?Cn.opacity.drop:null,scale:g?Cn.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=Y((function(e){t.current=e}),[]),o=Y((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=K((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(),Kr(),y||di(K((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,v,g,m]));var _=K((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]),x=Y((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=K((function(){var e=ui(b),t="DRAGGING"===b.type&&b.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:_}}),[a,_,h,b,x,n]),S=K((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(E,b.snapshot,S)}));function _i(e){return Jo(oi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(wi,e):null}function xi(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(_i,(0,i.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var Ei=function(e,t){return e===t.droppable.type},Si=function(e,t){return t.draggables[e.draggable.id]};var ki={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ee(!1),document.body}},Ci=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(!Ei(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(!Ei(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(!Ei(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||Ee(!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=Y((function(){return i.current}),[]),w=Y((function(e){i.current=e}),[]),_=(Y((function(){return a.current}),[]),Y((function(e){a.current=e}),[]));Yr();var x=Y((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=K((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=K((function(){return(0,le.Z)((function(e,n){t.current||Ee(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Y((function(){var e=t.current;return e&&e.env.closestScrollable?Ho(e.env.closestScrollable):Ie}),[]),f=Y((function(){var e=d();u(e.x,e.y)}),[d,u]),p=K((function(){return ce(f)}),[f]),h=Y((function(){var e=t.current,n=Xo(e);e&&n||Ee(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Y((function(e,r){t.current&&Ee(!1);var o=s.current,i=o.getDroppableRef();i||Ee(!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=Y((function(){var e=t.current,n=Xo(e);return e&&n||Ee(!1),Ho(n)}),[]),v=Y((function(){var e=t.current;e||Ee(!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=Y((function(e){var n=t.current;n||Ee(!1);var r=Xo(n);r||Ee(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=K((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=K((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 E=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:_,animate:i,contextId:n,onTransitionEnd:x})})),S=K((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),k=g?g.dragging.draggableId:null,C=K((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(oi.Provider,{value:C},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(_i,{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())}())}));Ci.defaultProps=ki},43037:(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(34706)),i=s(n(1868)),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})},13469:(e,t,n)=>{"use strict";var r=n(43037).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},19135:(e,t,n)=>{"use strict";var r=n(34706),o=n(89289);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,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=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 E:return"Fragment";case x:return"Portal";case k:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N: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 D: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 K(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 Y(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 _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Se=null;function ke(e){if(e=wo(e)){if("function"!==typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ne(e,t,n)}finally{Ie=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(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 Re=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Re=!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,Ke=o.unstable_shouldYield,Ye=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 _t,xt,Et,St,kt,Ct=!1,Ot=[],Nt=null,Tt=null,It=null,Pt=new Map,Dt=new Map,Rt=[],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":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.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))&&xt(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 kt(e.priority,(function(){Et(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=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(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(){Ct=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==It&&zt(It)&&(It=null),Pt.forEach(Ft),Dt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!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!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==It&&Ut(It,e),Pt.forEach(t),Dt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.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=Kt(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 Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,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,Dt.set(i,Mt(Dt.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&&_t(i),null===(i=Kt(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 Kt(e,t,n,r){if(Gt=null,null!==(e=bo(e=_e(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 Yt(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:kn,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})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return Sn}var Cn=L({},dn,{key:function(e){if(e.key){var t=_n[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?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,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(Cn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),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}),Dn=on(Pn),Rn=[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!==Rn.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){Ce(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 Kn(e){if(W(_o(e)))return e}function Yn(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&&Kn(Wn)){var t=[];Hn(t,Wn,e,_e(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 Kn(Wn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(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 _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Er={},Sr={};function kr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("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 Dr(e,t){Ir.set(e,t),l(t,[e])}for(var Rr=0;Rr<Pr.length;Rr++){var Ar=Pr[Rr];Dr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Dr(Cr,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Nr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Tr,"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(Yt(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,!Re||"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=_e(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=Tn;break;case Cr:case Or:case Nr:l=vn;break;case Tr:l=In;break;case"scroll":l=fn;break;case"wheel":l=Dn;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=Nn}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=De(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=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==c?s:_o(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?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;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?_o(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=De(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=De(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=De(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=De(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}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 _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var Eo=[],So=-1;function ko(e){return{current:e}}function Co(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Oo(e,t){So++,Eo[So]=e.current,e.current=t}var No={},To=ko(No),Io=ko(!1),Po=No;function Do(e,t){var n=e.type.contextTypes;if(!n)return No;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 Ro(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ao(){Co(Io),Co(To)}function jo(e,t,n){if(To.current!==No)throw Error(i(168));Oo(To,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||No,Po=To.current,Oo(To,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,Co(Io),Co(To),Oo(To,e)):Co(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=[],Ko=0,Yo=null,Qo=1,Jo="";function Xo(e,t){Zo[Ho++]=Wo,Zo[Ho++]=Vo,Vo=e,Wo=t}function ei(e,t,n){Go[Ko++]=Qo,Go[Ko++]=Jo,Go[Ko++]=Yo,Yo=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===Yo;)Yo=Go[--Ko],Go[Ko]=null,Jo=Go[--Ko],Go[Ko]=null,Qo=Go[--Ko],Go[Ko]=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!==Yo?{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=Rc(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===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===D&&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 _:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case D: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 _:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case D: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 _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D: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===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===E){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===D&&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===E?((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 x: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 D: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 _i=wi(!0),xi=wi(!1),Ei=ko(null),Si=null,ki=null,Ci=null;function Oi(){Ci=ki=Si=null}function Ni(e){var t=Ei.current;Co(Ei),e._currentValue=t}function Ti(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,Ci=ki=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(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Si)throw Error(i(308));ki=e,Si.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Di=null;function Ri(e){null===Di?Di=[e]:Di.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ri(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&Nl)){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,Ri(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=ko(Hi),Wi=ko(Hi),Gi=ko(Hi);function Ki(e){if(e===Hi)throw Error(i(174));return e}function Yi(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)}Co(Vi),Oo(Vi,t)}function Qi(){Co(Vi),Co(Wi),Co(Gi)}function Ji(e){Ki(Gi.current);var t=Ki(Vi.current),n=le(t,e.type);t!==n&&(Oo(Wi,e),Oo(Vi,n))}function Xi(e){Wi.current===e&&(Co(Vi),Co(Wi))}var ea=ko(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 _a(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 xa(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 Ea(){}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,Ca.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));0!==(30&aa)||ka(n,t,o)}return o}function ka(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 Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(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 Da(){return ba().memoizedState}function Ra(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 Ra(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},Ka(e))Ya(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(Ka(e))Ya(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,Ri(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 Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(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,Ra(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(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===Tl)throw Error(i(349));0!==(30&aa)||ka(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,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.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:_a,useRef:Da,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Za(ba(),la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,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:xa,useRef:Da,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Za(t,la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,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=No,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Ro(t)?Po:To.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Do(e,o):No),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=Ro(t)?Po:To.current,o.context=Do(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=kc.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?xi(t,null,n,r):_i(t,e.child,n,r)}function _s(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 xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Dc(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,Es(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=Rc(i,r)).ref=t.ref,e.return=t,t.child=e}function Es(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 Cs(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(Rl,Dl),Dl|=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(Rl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Rl,Dl),Dl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Rl,Dl),Dl|=r;return ws(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Ro(n)?Po:To.current;return i=Do(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(Ro(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=Do(t,c=Ro(n)?Po:To.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=Do(t,l=Ro(n)?Po:To.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 Ns(e,t,n,r,i,o)}function Ns(e,t,n,r,o,i){ks(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=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Yi(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,Ds,Rs,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)&&_i(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=Tl)){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[Ko++]=Qo,Go[Ko++]=Jo,Go[Ko++]=Yo,Qo=e.id,Jo=e.overflow,Yo=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=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Rc(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=Rc(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),_i(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),Ti(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=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(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 Ro(t.type)&&Ao(),Vs(t),null;case 3:return r=t.stateNode,Qi(),Co(Io),Co(To),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))),Ds(e,t),Vs(t),null;case 5:Xi(t);var o=Ki(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(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=Ki(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":Y(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":Y(e,r),o=K(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=Ki(Gi.current),Ki(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(Co(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(),Ds(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ni(t.type._context),Vs(t),null;case 19:if(Co(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&Dl)&&(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 Ro(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Co(Io),Co(To),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(Co(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 Co(ea),null;case 4:return Qi(),null;case 10:return Ni(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}},Ds=function(){},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Vi.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(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 Ks=!1,Ys=!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:Ys||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(!Ys&&(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(!Ys&&(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?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=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=Nc.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?(Ys=(u=Ys)||d,ml(t,e),Ys=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){_l(f);continue}}null!==h?(h.return=p,Js=h):_l(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||Ks;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var c=Ys;if(Ks=a,(Ys=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Js=l):xl(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ks=s,Ys=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:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)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))}Ys||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 _l(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 xl(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 El,Sl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Il=null,Pl=0,Dl=0,Rl=ko(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,Kl=0,Yl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Pl?Pl&-Pl:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nc(e,t,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Al&&sc(e,Pl)),rc(e,r),1===n&&0===Nl&&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===Tl?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&Nl)&&$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=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(i(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?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=Nl;Nl|=2;var a=hc();for(Tl===e&&Pl===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),kl.current=a,Nl=o,null!==Il?t=0:(Tl=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:_c(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(_c.bind(null,e,Bl,$l),t);break}_c(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(_c.bind(null,e,Bl,$l),r);break}_c(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&Nl))throw Error(i(327));xc();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,_c(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Qe()+500,Bo&&$o())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&xc();var t=Nl;Nl|=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&(Nl=t))&&$o()}}function dc(){Dl=Rl.current,Co(Rl)}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(),Co(Io),Co(To),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:Co(ea);break;case 10:Ni(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Il=e=Rc(e.current,null),Pl=Dl=t,Al=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Di){for(t=0;t<Di.length;t++)if(null!==(r=(n=Di[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}Di=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,Cl.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=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Pl)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Pl===t||($l=null,fc(e,t));;)try{vc();break}catch(o){pc(e,o)}if(Oi(),Nl=n,kl.current=r,null!==Il)throw Error(i(261));return Tl=null,Pl=0,Al}function vc(){for(;null!==Il;)bc(Il)}function yc(){for(;null!==Il&&!Ke();)bc(Il)}function bc(e){var t=El(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?wc(e):Il=t,Cl.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,Dl)))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 _c(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{xc()}while(null!==Gl);if(0!==(6&Nl))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===Tl&&(Il=Tl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Wl||(Wl=!0,Tc(tt,(function(){return xc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,Cl.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(_){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(_){Sc(t,t.return,_)}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),Ye(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Kl=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&Kl)&&0!==e.tag&&xc(),a=e.pendingLanes,0!==(1&a)?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function xc(){if(null!==Gl){var e=wt(Kl),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,Kl=0,0!==(6&Nl))throw Error(i(331));var o=Nl;for(Nl|=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(x){Sc(l,l.return,x)}if(l===s){Js=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Js=_;break e}Js=l.return}}if(Nl=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(x){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(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)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(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 kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Pl&n)===n&&(4===Al||3===Al&&(130023424&Pl)===Pl&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(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),Cc(e,n)}function Nc(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),Cc(e,n)}function Tc(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 Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(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)Dc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,o,a,t);case S:s=8,o|=8;break;case k:return(e=Pc(12,n,t,2|o)).elementType=k,e.lanes=a,e;case T:return(e=Pc(13,n,t,o)).elementType=T,e.lanes=a,e;case I:return(e=Pc(19,n,t,o)).elementType=I,e.lanes=a,e;case R:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case N:s=11;break e;case P:s=14;break e;case D: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=R,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 No;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(Ro(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(Ro(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)}El=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:Ts(t),hi();break;case 5:Ji(t);break;case 1:Ro(t.type)&&Lo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Ei,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=Do(t,To.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,Ro(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=Ns(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 Dc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=xs(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,Cs(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(Ts(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=xi(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),ks(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 Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_s(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(Ei,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),Ti(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),Ti(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),xs(e,t,r,o=ns(r.type,o),n);case 15:return Es(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,Ro(r)?(e=!0,Lo(t)):e=!1,Ii(t,n),as(t,r,o),ls(t,r,o,n),Ns(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 Kc(e){this._internalRoot=e}function Yc(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)}Kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));$c(e,t,null,null)},Kc.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}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},_t=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&Nl)&&(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)}},xt=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=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},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=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=xo(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)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[wo,_o,xo,Ce,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(!Yc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(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(!Yc(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 Kc(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"},37906:(e,t,n)=>{"use strict";var r=n(72985);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},72985:(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(19135)},67082: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}}},42152:(e,t,n)=>{"use strict";n.d(t,{B6:()=>G,ql:()=>te});var r=n(34706),o=n(67082),i=n.n(o),a=n(37362),s=n.n(a),l=n(79961),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",_="onChangeClientState",x="titleTemplate",E="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},k=e=>{let t=S(e,"title");const n=S(e,x);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},C=e=>S(e,_)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(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}),[]),T=(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,D=(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:[]},R=(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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},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=D(t,p),a=D(n,d),s=D(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)}},K=(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}},Y=(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;Y("body",r),Y("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=P(e)),Y("title",t)})(d,f);const p={baseTag:K("base",n),linkTags:K("link",i),metaTags:K("meta",a),noscriptTags:K("noscript",s),scriptTags:K("script",c),styleTags:K("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:N(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:T("link",["rel","href"],o),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:T("noscript",["innerHTML"],o),onChangeClientState:C(o),scriptTags:T("script",["src","innerHTML"],o),styleTags:T("style",["cssText"],o),title:k(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:I(o,E)});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()(R(this.props,"helmetData"),R(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})))}}},28197:(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}},32252:(e,t,n)=>{"use strict";e.exports=n(28197)},19992:(e,t,n)=>{var r=n(34706),o=n(63481),i=n(21035),a=n(14601),s=r.createElement,l=n(80870),c=n(27801),u=n(76405),d=n(74336),f=n(630),p=n(73770);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)}})},76405:(e,t,n)=>{var r=n(56322),o=Object.keys,i=n(28908),a=n(74336);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]}}},20602:(e,t,n)=>{var r=n(34706),o=n(63481),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)})))}})},74336:e=>{e.exports=function(e){return 0===Object.keys(e).length}},28908:(e,t,n)=>{var r=n(33523);e.exports=function(e){var t=r(e);return"Object"!==t&&"Array"!==t}},80870:(e,t,n)=>{var r=n(34706),o=n(63481),i=n(9651),a=n(65871),s=n(33523),l=n(28908),c=n(20602),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},630:(e,t,n)=>{var r=n(33523),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}},73770:e=>{e.exports=function(){}},27801:(e,t,n)=>{var r=n(34706),o=n(63481),i=r.createElement,a=n(73770);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)}})},33523:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},65871:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},56322: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}},75868:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[n(21035),n(34706)],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,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,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={x:"clientWidth",y:"clientHeight"},E={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},k={x:"offsetWidth",y:"offsetHeight"},C={x:"offsetLeft",y:"offsetTop"},O={x:"overflowX",y:"overflowY"},N={x:"scrollWidth",y:"scrollHeight"},T={x:"scrollLeft",y:"scrollTop"},I={x:"width",y:"height"},P=function(){},D=!!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},R="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[x[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(R);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,D),this.scrollParent.removeEventListener("mousewheel",P,D)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[E[t]]||0,r=C[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=T[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[T[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=N[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[k[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=C[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,D),this.scrollParent.addEventListener("mousewheel",P,D))}},{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[k[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=k[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[k[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),_(r,"displayName","ReactList"),_(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}),_(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)},26836:(e,t,n)=>{"use strict";n.d(t,{rU:()=>m});var r=n(55783),o=n(51721),i=n(34706),a=n(63041),s=n(87462),l=n(63366),c=n(41437);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.sensitive,x=e.strict,E=e.style,S=e.to,k=e.innerRef,C=(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"),N=O?(0,r.LX)(n.pathname,{path:O,exact:y,sensitive:_,strict:x}):null,T=!!(b?b(N,n):N),I="function"===typeof h?h(T):h,P="function"===typeof E?E(T):E;T&&(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 D=(0,s.Z)({"aria-current":T&&o||null,className:I,style:P,to:a},C);return g!==v?D.ref=t||k:D.innerRef=k,i.createElement(m,D)}))}))},55783:(e,t,n)=>{"use strict";n.d(t,{$B:()=>U,AW:()=>I,F0:()=>b,LX:()=>T,TH:()=>F,UO:()=>B,k6:()=>z,l_:()=>k,rs:()=>M,s6:()=>y});var r=n(51721),o=n(34706),i=n(21035),a=n.n(i),s=n(63041),l=n(41437),c=n(87462),u=n(17865),d=n.n(u),f=(n(53247),n(63366)),p=(n(23513),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 _={},x=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(_[e])return _[e];var t=d().compile(e);return E<x&&(_[e]=t,E++),t}(e)(t,{pretty:!0})}function k(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 C={},O=1e4,N=0;function T(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=C[n]||(C[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return N<O&&(r[e]=i,N++),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?T(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 D(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 R(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?T(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?T(t.pathname,e):n}},17865:(e,t,n)=>{var r=n(79617);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 _=null!=m&&null!=h&&h!==m,x="+"===b||"*"===b,E="?"===b||"*"===b,S=n[2]||u,k=v||y;r.push({name:g||i++,prefix:m||"",delimiter:S,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:k?c(k):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)}},14177:(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){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 x(e){return _(e)===d}},53247:(e,t,n)=>{"use strict";n(14177)},77498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});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(34706),l=n(72985);const c=!1;var u=n(97073),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}))},_=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);_.defaultProps={classNames:""},_.propTypes={};const x=_},97073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(34706).createContext(null)},49514:(e,t,n)=>{"use strict";var r=n(34706),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},40554:(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 _=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(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)x.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:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(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 T(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?"."+N(l,0):i,_(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(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))for(var c=0;c<e.length;c++){var u=i+N(s=e[c],c);l+=T(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+=T(s=s.value,t,o,u=i+N(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 T(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 D={current:null},R={transition:null},A={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:R,ReactCurrentOwner:E};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(!C(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=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.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=k,t.createFactory=function(e){var t=k.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=C,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=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},34706:(e,t,n)=>{"use strict";e.exports=n(40554)},10161:(e,t,n)=>{"use strict";e.exports=n(49514)},29622:(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="-"},66236:(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(29622),i=n(36969),a=n(77936),s=n(54060)},36969:(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(74718)),o=a(n(74647)),i=a(n(61120));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]}},28733:(e,t,n)=>{"use strict";var r=n(66236);Object.defineProperty(t,"zl",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(46478);Object.defineProperty(t,"C1",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(36969)},46478:(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(29622)},77936:(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(36969),o=n(94091)},54060:(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(36969),a=n(94091)},94091:(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(29622),i=n(36969);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}),{})}}}},92769:(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){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(x);else{var t=r(u);null!==t&&A(_,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){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(_,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 E,S=!1,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function I(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(I)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,D=P.port2;P.port1.onmessage=I,E=function(){D.postMessage(null)}}else E=function(){v(I,0)};function R(e){k=e,S||(S=!0,E())}function A(e,n){C=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,R(x))},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(C),C=-1):g=!0,A(_,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},89289:(e,t,n)=>{"use strict";e.exports=n(92769)},70936:(e,t,n)=>{"use strict";var r=n(12076),o=n(22338),i=n(18124)(),a=n(11956),s=n(656),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}},79961: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}},65742:(e,t,n)=>{"use strict";var r=n(12076),o=n(55048),i=n(10159),a=n(656),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}},7521:(e,t,n)=>{"use strict";n.d(t,{EB:()=>C,KW:()=>E,Wq:()=>S,ht:()=>x,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)},_=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)},x=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)),_(n)},E=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)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,e)}},41437:(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)}}},80980: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()}}},99495:(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);if(null==t)return t;if(""===t)return null;return+t}function i(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>C,StringParam:()=>a,useQueryParam:()=>R,useQueryParams:()=>P});const a={encode:function(e){return null==e?e:String(e)},decode:i},s={encode:function(e){return null==e?e:String(e)},decode:o};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(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 c=n(34706);const u=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 d(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 f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,o;if(p(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:p;if(!f.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function m(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 g(){let e;return function(t,n,r){const o=m(t,n,r);return null!=e&&h(e,o)?e:(e=o,o)}}let v,y,b,w={};const _=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=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=w[i];h(a,e)&&(r[i]=e)}return w=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 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=c.createContext(E);function k(e){let{children:t,adapter:n,options:r}=e;const{adapter:o,options:i}=c.useContext(S),a=c.useMemo((()=>({adapter:null!=n?n:o,options:x(i,r)})),[n,r,o,i]);return c.createElement(S.Provider,{value:a},t)}function C(e){let{children:t,adapter:n,options:r}=e;const o=n;return o?c.createElement(o,null,(e=>c.createElement(k,{adapter:e,options:r},t))):c.createElement(k,{options:r},t)}function O(e){let{changes:t,updateType:n,currentSearchString:r,paramConfigMap:o,options:i}=e;const{searchStringToObject:a,objectToSearchString:s}=i;let c;null==n&&(n=i.updateType);const f=_(a,r),p=d(o,Object.keys(t),i.params);let h,g;if("function"===typeof t){h=t(m(f,p,u))}else h=t;return c=l(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)}(c,p),c=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}(c,p),g=s("push"===n||"replace"===n?c:{...f,...c}),(null==g?void 0:g.length)&&"?"!==g[0]&&(g=`?${g}`),null!=g?g:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),I=[];function P(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,c.useState)(g),{paramConfigMap:i,options:s}=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,c.useMemo)((()=>x(r,s)),[r,s]);let f=function(e,t){var n,r,o;const i={};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,i[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:a):i[u]=n}return s?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}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=o(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.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]:{};I.push(e);let n=t?N:T;1===I.length&&n((()=>{const t=I.slice();I.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(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=P;const R=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=D(r,n);return[o[e],(0,c.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},40645:(e,t,n)=>{"use strict";var r=n(34706);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}},90859:(e,t,n)=>{"use strict";e.exports=n(40645)},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})},64485:(e,t,n)=>{"use strict";n.d(t,{CN:()=>I,Tk:()=>M,hF:()=>K,oZ:()=>s});var r=n(84419),o=n(8064),i=n(51409),a=n(67386),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 _=Symbol("forceQueryFn"),x=e=>"function"===typeof e[_];function E(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 k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(t)];r&&n(r)}var N={};function T(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:N,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;k(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=x(r);e[r.queryCacheKey]??={status:"uninitialized",endpointName:r.endpointName},k(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;k(e,n.arg.queryCacheKey,(e=>{if(e.requestId!==n.requestId&&!x(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;k(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:N,reducers:{removeMutationResult:{reducer(e,t){let{payload:n}=t;const r=C(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[C(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)}))}}),_=(0,o.oM)({name:`${t}/invalidation`,initialState:N,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;_.caseReducers.updateProvidedBy(e,_.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),E=(0,o.oM)({name:`${t}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),T=(0,o.oM)({name:`${t}/internalSubscriptions`,initialState:N,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:_.reducer,subscriptions:T.reducer,config:I.reducer});return{reducer:(e,t)=>P(y.match(t)?void 0:e,t),actions:{...I.actions,...b.actions,...E.actions,...T.actions,...w.actions,..._.actions,resetApiState:y}}}var I=Symbol.for("RTKQ/skipToken"),P={status:"uninitialized"},D=(0,i.Uy)(P,(()=>{})),R=(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)?C(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(),K=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:k,refetchOnMountOrArgChange:O,refetchOnFocus:N,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:K,upsertQueryData:Y,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=E;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[_]: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=E;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!!x(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,[_]:()=>({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}=T({context:a,queryThunk:M,mutationThunk:L,reducerPath:u,assertTagType:j,config:{refetchOnFocus:N,refetchOnReconnect:P,refetchOnMountOrArgChange:O,keepUnusedDataFor:k,reducerPath:u,invalidationBehavior:A}});W(t.util,{patchQueryData:q,updateQueryData:K,upsertQueryData:Y,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=>D,i=e=>R;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]??D,a)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??I:e,r(t===I?i:e=>s(e)?.mutations?.[t]??R,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,[_]: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,[_]:h}),x=o.endpoints[e].select(s),E=g(b),S=x(v());d(g);const{requestId:k,abort:C}=E,O=S.requestId!==k,N=a.get(g)?.[y],T=()=>x(v()),I=Object.assign(h?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:s,requestId:k,subscriptionOptions:p,queryCacheKey:y,abort:C,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:k}))},updateSubscriptionOptions(t){I.subscriptionOptions=t,g(u({endpointName:e,requestId:k,queryCacheKey:y,options:t}))}});if(!N&&!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))}}}}};K()},8064:(e,t,n)=>{"use strict";n.d(t,{s4:()=>g,xC:()=>x,PH:()=>d,hg:()=>B,oM:()=>V,rJ:()=>te,A6:()=>N,Q:()=>O,Gx:()=>j,KD:()=>A,zR:()=>P,Iv:()=>D,h_:()=>R,x0:()=>k,cw:()=>v});var r=n(51409),o=n(67386),i=n(84419);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},_=!0;function x(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(!_&&r&&"function"!==typeof r)throw new Error(te(2));if("function"===typeof r){if(u=r(t),!_&&!Array.isArray(u))throw new Error(te(3))}else u=t();if(!_&&u.some((e=>"function"!==typeof e)))throw new Error(te(4));let d=i.qC;o&&(d=c({trace:!_,..."object"===typeof o&&o}));const f=(0,i.md)(...u),p=w(f);if(!_&&s&&"function"!==typeof s)throw new Error(te(5));let h="function"===typeof s?s(p):p();if(!_&&!Array.isArray(h))throw new Error(te(6));if(!_&&h.some((e=>"function"!==typeof e)))throw new Error(te(7));_||!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 E(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",k=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+=S[64*Math.random()|0];return e},C=(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=>C(t,e)))}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.every((t=>C(t,e)))}function T(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=>T(e,["pending"]):I(t)?e=>O(...t.map((e=>e.pending)))(e):P()(t[0])}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>T(e,["rejected"]):I(t)?e=>O(...t.map((e=>e.rejected)))(e):D()(t[0])}function R(){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=>N(D(...t),r)(e):R()(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=>T(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=>T(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):k(),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?E(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[o,i,a]=E(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:K}=Object,Y="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:k(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(te(22))}}}),{withTypes:()=>J}),X=Object.assign(d(`${Y}/add`),{withTypes:()=>X}),ee=(d(`${Y}/removeAll`),Object.assign(d(`${Y}/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. `}},51409:(e,t,n)=>{"use strict";n.d(t,{Js:()=>f,QE:()=>J,Uy:()=>Y,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,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 x(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=E),Object.freeze(e),t&&p(e,((e,t)=>x(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function I(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function P(e){D(e),e.drafts_.forEach(A),e.drafts_=null}function D(e){e===k&&(k=e.parent_)}function R(e){return k={drafts_:[],parent_:k,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_&&x(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.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_:T(),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_:T()).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,t.scope_.immer_.useStrictShallowCopy_)}else n=_(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}N("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 K=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=R(this),i=H(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?P(r):D(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_&&x(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=R(this),n=H(e,void 0);return n[i].isManual_=!0,D(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)))}},Y=K.produce,Q=K.produceWithPatches.bind(K),J=(K.setAutoFreeze.bind(K),K.setUseStrictShallowCopy.bind(K),K.applyPatches.bind(K));K.createDraft.bind(K),K.finishDraft.bind(K)},95877:(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(34706),o=n(90859),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"),_=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),E=Symbol.for("react.context"),S=Symbol.for("react.server_context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),k),P=N;function D(e){if("object"===typeof e&&null!==e){const t=e.$$typeof;switch(t){case v:{const n=e.type;switch(n){case b:case _:case w:case C:case O:return n;default:{const e=n&&n.$$typeof;switch(e){case S:case E:case k:case T:case N:case x:return e;default:return t}}}}case y:return t}}}function R(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},K={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y={[I]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[P]:K};function Q(e){return D(e)===N?K:Y[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 R(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),_=i.useRef(void 0),x=i.useRef(!1),E=i.useRef(!1),S=i.useRef(void 0);Z((()=>(E.current=!0,()=>{E.current=!1})),[]);const k=i.useMemo((()=>()=>_.current&&a===w.current?_.current:h(d.getState(),a)),[d,a]),C=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,N,T;let I;O=se,N=[w,b,x,a,_,v],Z((()=>O(...N)),T);try{I=ie(C,k,p?()=>h(p(),a):k)}catch(D){throw S.current&&(D.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),D}Z((()=>{S.current=void 0,_.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)},84419:(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}},67386:(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),_=a(t),x=p((function(){return l++,d.apply(null,arguments)}),...b);const E=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}(_,arguments);return r=x.apply(null,e),r}),...w);return Object.assign(E,{resultFunc:d,memoizedResultFunc:x,dependencies:_,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})},23337:(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},75475:(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=>"undefined"!==typeof Promise&&e instanceof Promise;function x(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 E(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,k,C;"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 N=(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 T(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(_(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 N(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(_(r)?r:Promise.resolve(r));return N(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 ke.create(this,this._def)}nullable(){return Ce.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ie.create(this,this._def)}promise(){return Ee.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({...T(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Oe({...T(this._def),innerType:this,defaultValue:t,typeName:Me.ZodDefault})}brand(){return new Pe({typeName:Me.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Ne({...T(this._def),innerType:this,catchValue:t,typeName:Me.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return De.create(this,e)}readonly(){return Re.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P=/^c[^\s-]{8,}$/i,D=/^[0-9a-z]+$/,R=/^[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)D.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)R.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,...T(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,...T(e)});class K 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 K({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new K({...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}}K.create=e=>{var t;return new K({checks:[],typeName:Me.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class Y 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)}}Y.create=e=>new Y({typeName:Me.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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,...T(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]=ke.create(ae(r))}return new se({...e._def,shape:()=>t})}return e instanceof ie?new ie({...e._def,type:ae(e.element)}):e instanceof ke?ke.create(ae(e.unwrap())):e instanceof Ce?Ce.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,...T(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 ke;)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,...T(t)}),se.strictCreate=(e,t)=>new se({shape:()=>e,unknownKeys:"strict",catchall:re.create(),typeName:Me.ZodObject,...T(t)}),se.lazycreate=(e,t)=>new se({shape:e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...T(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,...T(t)});const ce=e=>e instanceof ye?ce(e.schema):e instanceof Se?ce(e.innerType()):e instanceof be?[e.value]:e instanceof _e?e.options:e instanceof xe?r.objectValues(e.enum):e instanceof Oe?ce(e._def.innerType):e instanceof X?[void 0]:e instanceof ee?[null]:e instanceof ke?[void 0,...ce(e.unwrap())]:e instanceof Ce?[null,...ce(e.unwrap())]:e instanceof Pe||e instanceof Re?ce(e.unwrap()):e instanceof Ne?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,...T(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,...T(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,...T(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,...T(n)}:{keyType:V.create(),valueType:e,typeName:Me.ZodRecord,...T(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,...T(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,...T(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 Ee){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,...T(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,...T(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 _e({values:e,typeName:Me.ZodEnum,...T(t)})}be.create=(e,t)=>new be({value:e,typeName:Me.ZodLiteral,...T(t)});class _e extends I{constructor(){super(...arguments),k.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(x(this,k,"f")||E(this,k,new Set(this._def.values),"f"),!x(this,k,"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 _e.create(e,{...this._def,...t})}exclude(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return _e.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}k=new WeakMap,_e.create=we;class xe extends I{constructor(){super(...arguments),C.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(x(this,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!x(this,C,"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}}C=new WeakMap,xe.create=(e,t)=>new xe({values:e,typeName:Me.ZodNativeEnum,...T(t)});class Ee 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}))))}}Ee.create=(e,t)=>new Ee({type:e,typeName:Me.ZodPromise,...T(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,...T(n)}),Se.createWithPreprocess=(e,t,n)=>new Se({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...T(n)});class ke extends I{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Me.ZodOptional,...T(t)});class Ce extends I{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:Me.ZodNullable,...T(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,...T(t)});class Ne 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 _(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}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Me.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class Te 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}}}Te.create=e=>new Te({typeName:Me.ZodNaN,...T(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 De 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 De({in:e,out:t,typeName:Me.ZodPipeline})}}class Re extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return _(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()}Re.create=(e,t)=>new Re({innerType:e,typeName:Me.ZodReadonly,...T(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=Te.create,Be=K.create,Ue=Y.create,qe=Q.create,$e=J.create,Ze=X.create,He=ee.create,Ve=te.create,We=ne.create,Ge=re.create,Ke=oe.create,Ye=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=_e.create,ut=xe.create,dt=Ee.create,ft=Se.create,pt=ke.create,ht=Ce.create,mt=Se.createWithPreprocess,gt=De.create,vt={string:e=>V.create({...e,coerce:!0}),number:e=>G.create({...e,coerce:!0}),boolean:e=>Y.create({...e,coerce:!0}),bigint:e=>K.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:_,get util(){return r},get objectUtil(){return o},ZodParsedType:i,getParsedType:a,ZodType:I,datetimeRegex:H,ZodString:V,ZodNumber:G,ZodBigInt:K,ZodBoolean:Y,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:_e,ZodNativeEnum:xe,ZodPromise:Ee,ZodEffects:Se,ZodTransformer:Se,ZodOptional:ke,ZodNullable:Ce,ZodDefault:Oe,ZodCatch:Ne,ZodNaN:Te,BRAND:Ie,ZodBranded:Pe,ZodPipeline:De,ZodReadonly:Re,custom:Ae,Schema:I,ZodSchema:I,late:je,get ZodFirstPartyTypeKind(){return Me},coerce:vt,any:Ve,array:Ye,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:Ke,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+"."+{127:"87732853",165:"a31f2a03",178:"06d01a51",182:"e718ea47",225:"6ec6c3bc",228:"15a25302",253:"f7d84b09",323:"04d21c99",328:"a089accc",346:"e1c8a643",452:"04a5841e",453:"2308e7f9",521:"dba82744",579:"70d17f7b",592:"33a5d27a",610:"f75b0536",633:"220bc737",682:"bf02377d",689:"96ae92f1",753:"86744d44",766:"1355c78d",778:"5edf04d9",824:"c19b1bc3",835:"95ce5d5d",846:"84557d12",856:"fd02cec2",862:"05757f0e",896:"420e70ab",949:"6da34892",1035:"3975a471",1072:"13801473",1074:"27b17806",1109:"834e0892",1222:"5faf3e57",1236:"2027a259",1276:"0132c95a",1376:"ef761c31",1388:"48ada893",1389:"b6125fec",1410:"5d95e270",1455:"867345a6",1460:"b46aac4e",1487:"e009a462",1577:"17bb1420",1640:"5929573a",1670:"2dbca85f",1728:"9b6329a2",1758:"6eae603b",1854:"d147fe93",1855:"56d941ac",1886:"28e0fe60",1923:"38b88781",1948:"5891b584",1957:"6f0516a3",1971:"4d7bf65b",2039:"1eea423d",2070:"aeb8e3ff",2100:"853fb83b",2136:"b0ce42ab",2216:"b37b568b",2262:"df0b7687",2293:"bb3e0c81",2405:"94de1a6b",2421:"996f12f5",2455:"e995eba9",2503:"69406a9c",2516:"ae307d9a",2570:"b620520c",2598:"ca5e9f76",2651:"3cdca23d",2670:"6f0af2f6",2734:"0ddcbf8e",2740:"a9c16626",2769:"5a17f94c",2780:"482ff693",2804:"16f024df",2807:"8fbe9929",2845:"5e07c0d9",2869:"a31f24d4",2871:"7f64530d",2967:"f31227d9",2972:"e9dd6d38",2974:"2083f7ab",3010:"ba0b7e6c",3092:"b2453934",3107:"8a298574",3145:"6fe2a282",3164:"4fedcbc1",3166:"cccccfe6",3230:"9e1f2161",3235:"98e63dfc",3283:"d4976b24",3421:"67ee8518",3493:"f1cd881c",3495:"b1e292fa",3520:"038b81f7",3556:"12b7e853",3607:"c222c9e3",3643:"05f9828c",3768:"ce22b76d",3828:"d46cab67",3830:"f20a084f",3883:"fdb7b91a",3950:"e7782b0d",3972:"a75c55f6",3997:"49583a3c",3998:"22c04eb2",4006:"14a73158",4018:"1e215668",4023:"da1a6eeb",4040:"5ec4aca9",4066:"21a0994b",4087:"76cc8418",4099:"049bf0b8",4175:"84846314",4222:"a626a694",4226:"b1a9f9a0",4231:"75694c42",4254:"b0fb883a",4320:"2cdac293",4324:"9835557b",4408:"a9538443",4413:"5197a5f2",4442:"d3e799fe",4463:"8556c625",4465:"383f9181",4503:"e2e4d1e6",4535:"d2047797",4563:"c37ee423",4609:"4537e278",4628:"694b1225",4639:"06a52d60",4657:"375c590c",4712:"0fccf2f7",4723:"61d3b0c8",4779:"5a27c84f",4806:"7aabd034",4859:"99586a72",5014:"b76ade01",5066:"91e2d7b8",5070:"7db921b1",5118:"cc95f5a6",5124:"e2e4a17c",5130:"8076069a",5154:"74a87136",5160:"f92a5ad6",5203:"922e0927",5257:"5bc0f543",5319:"3a9cc4fa",5467:"289ca54e",5484:"4ee82172",5503:"3a78f1a9",5605:"6b78bfb4",5641:"f0e59fe6",5682:"853e9ee8",5685:"11cd560a",5748:"47ca831b",5821:"26335bd8",5957:"1584eca6",5982:"cae758ee",6010:"c0760b69",6062:"2c4512c7",6070:"b32e6682",6079:"340afa32",6118:"062d9ccd",6170:"8626a56e",6246:"0425b742",6289:"d27d9a38",6292:"e0b2ffee",6332:"d1a078f2",6395:"9408fa97",6435:"70056056",6595:"bc7ea867",6625:"f5590154",6659:"cacbbf83",6660:"fd286d4f",6663:"debc2102",6679:"fb8e5993",6698:"31f9be10",6703:"8678859a",6731:"3a45d4e4",6789:"2651b83a",6845:"d02f4e48",6866:"de45efb9",6898:"5ae6e6cc",6906:"a88e05fd",6914:"3401c32a",6927:"a118705d",6943:"27a31755",6953:"3813672a",7043:"adbaef91",7054:"89f72d9d",7076:"11720320",7083:"b229fb1f",7132:"d2e7640b",7199:"5dcadd74",7245:"cde86cfb",7273:"b27ab405",7275:"ee76d1bd",7289:"d83d9214",7324:"d07154de",7367:"090c8c59",7439:"1c298639",7441:"71fcae9c",7443:"79bf7ff1",7446:"a1010c10",7474:"a87e4163",7628:"839116b6",7641:"f4b4d38a",7656:"6c9df81e",7690:"c75c8231",7812:"f9c2eea9",7828:"4945daef",7852:"96468333",7862:"e14664b0",7950:"8f716467",7994:"b03482fd",8122:"e7079404",8169:"79ab989b",8297:"dda322b6",8329:"074348a0",8332:"d2782086",8337:"5c096a37",8427:"caeabc21",8446:"394ec1f3",8504:"a44b4097",8505:"d87e41c1",8606:"75e4ff18",8645:"597fca49",8726:"fe404098",8731:"50b8e539",8828:"9da287ba",8835:"8efe953e",8841:"4faa97c2",8864:"ed883bcc",8908:"92f2bf17",8918:"4e9353d7",9008:"edcbe0c3",9101:"45d32e67",9139:"488e8581",9350:"ecc944e8",9352:"156d0fc5",9396:"bc133817",9433:"2ff2430b",9530:"f9b76944",9617:"96c8507d",9625:"9143bdfa",9685:"6eae880e",9687:"f3eeaa60",9703:"ba37cf9a",9711:"238b6021",9757:"3b30a50f",9765:"40c53742",9776:"4f121296",9811:"048274db",9821:"35ddadcd",9937:"5bd86e47",9963:"a094a76b",9974:"cbfc7c5f"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{328:"86929762",949:"8587e62b",1276:"dace99fe",2740:"5d10d58b",3556:"7f1e27c2",5118:"a86ede1f",6395:"f2109564",6703:"b2a0c589",6866:"2c643863",7054:"948a6e7b",7474:"21806beb",7641:"5846cd46",8918:"3fe0ca8d"}[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]&&{328:1,949:1,1276:1,2740:1,3556:1,5118:1,6395:1,6703:1,6866:1,7054:1,7474:1,7641:1,8918: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(5118!=t){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)}else e[t]=0};var t=(t,r)=>{var o,i,[a,s,l]=r,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=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(37906),t=n(65186),r=n(81167),o=n(29226);const{store:i,history:a}=(0,o.xC)();var s=n(10161);!async function(){let r;r=await Promise.resolve().then(n.bind(n,65186)).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 13256f90ed..942dbc4d79 100644 --- a/ydb/core/viewer/ya.make +++ b/ydb/core/viewer/ya.make @@ -124,31 +124,33 @@ IF (NOT EXPORT_CMAKE) monitoring/index.html monitoring/index.html monitoring/json.worker.js monitoring/json.worker.js monitoring/json.worker.js.LICENSE.txt monitoring/json.worker.js.LICENSE.txt - monitoring/static/css/1276.dace99fe.chunk.css monitoring/static/css/1276.dace99fe.chunk.css - monitoring/static/css/2740.5d10d58b.chunk.css monitoring/static/css/2740.5d10d58b.chunk.css + monitoring/static/css/1198.3fe0ca8d.chunk.css monitoring/static/css/1198.3fe0ca8d.chunk.css + monitoring/static/css/1276.4de79a91.chunk.css monitoring/static/css/1276.4de79a91.chunk.css + monitoring/static/css/2881.afcb07f6.chunk.css monitoring/static/css/2881.afcb07f6.chunk.css + monitoring/static/css/3017.3afd70ce.chunk.css monitoring/static/css/3017.3afd70ce.chunk.css monitoring/static/css/328.86929762.chunk.css monitoring/static/css/328.86929762.chunk.css - monitoring/static/css/3556.7f1e27c2.chunk.css monitoring/static/css/3556.7f1e27c2.chunk.css + monitoring/static/css/3933.5f7354e1.chunk.css monitoring/static/css/3933.5f7354e1.chunk.css + monitoring/static/css/4135.f4bca932.chunk.css monitoring/static/css/4135.f4bca932.chunk.css monitoring/static/css/5118.a86ede1f.chunk.css monitoring/static/css/5118.a86ede1f.chunk.css + monitoring/static/css/5879.555349bb.chunk.css monitoring/static/css/5879.555349bb.chunk.css monitoring/static/css/6395.f2109564.chunk.css monitoring/static/css/6395.f2109564.chunk.css - monitoring/static/css/6703.b2a0c589.chunk.css monitoring/static/css/6703.b2a0c589.chunk.css monitoring/static/css/6866.2c643863.chunk.css monitoring/static/css/6866.2c643863.chunk.css - monitoring/static/css/7054.948a6e7b.chunk.css monitoring/static/css/7054.948a6e7b.chunk.css - monitoring/static/css/7474.21806beb.chunk.css monitoring/static/css/7474.21806beb.chunk.css - monitoring/static/css/7641.5846cd46.chunk.css monitoring/static/css/7641.5846cd46.chunk.css - monitoring/static/css/8918.3fe0ca8d.chunk.css monitoring/static/css/8918.3fe0ca8d.chunk.css - monitoring/static/css/949.8587e62b.chunk.css monitoring/static/css/949.8587e62b.chunk.css - monitoring/static/css/main.cc9be0a9.css monitoring/static/css/main.cc9be0a9.css + monitoring/static/css/6894.dec87f60.chunk.css monitoring/static/css/6894.dec87f60.chunk.css + monitoring/static/css/7054.c5c1bf09.chunk.css monitoring/static/css/7054.c5c1bf09.chunk.css + monitoring/static/css/main.26df18be.css monitoring/static/css/main.26df18be.css monitoring/static/favicon.png monitoring/static/favicon.png monitoring/static/js/1035.3975a471.chunk.js monitoring/static/js/1035.3975a471.chunk.js monitoring/static/js/1072.13801473.chunk.js monitoring/static/js/1072.13801473.chunk.js monitoring/static/js/1074.27b17806.chunk.js monitoring/static/js/1074.27b17806.chunk.js monitoring/static/js/1109.834e0892.chunk.js monitoring/static/js/1109.834e0892.chunk.js monitoring/static/js/1109.834e0892.chunk.js.LICENSE.txt monitoring/static/js/1109.834e0892.chunk.js.LICENSE.txt + monitoring/static/js/1198.40c55cbb.chunk.js monitoring/static/js/1198.40c55cbb.chunk.js + monitoring/static/js/1198.40c55cbb.chunk.js.LICENSE.txt monitoring/static/js/1198.40c55cbb.chunk.js.LICENSE.txt monitoring/static/js/1222.5faf3e57.chunk.js monitoring/static/js/1222.5faf3e57.chunk.js monitoring/static/js/1222.5faf3e57.chunk.js.LICENSE.txt monitoring/static/js/1222.5faf3e57.chunk.js.LICENSE.txt monitoring/static/js/1236.2027a259.chunk.js monitoring/static/js/1236.2027a259.chunk.js monitoring/static/js/127.87732853.chunk.js monitoring/static/js/127.87732853.chunk.js - monitoring/static/js/1276.0132c95a.chunk.js monitoring/static/js/1276.0132c95a.chunk.js + monitoring/static/js/1276.bc76b58b.chunk.js monitoring/static/js/1276.bc76b58b.chunk.js monitoring/static/js/1376.ef761c31.chunk.js monitoring/static/js/1376.ef761c31.chunk.js monitoring/static/js/1376.ef761c31.chunk.js.LICENSE.txt monitoring/static/js/1376.ef761c31.chunk.js.LICENSE.txt monitoring/static/js/1388.48ada893.chunk.js monitoring/static/js/1388.48ada893.chunk.js @@ -163,7 +165,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/1577.17bb1420.chunk.js monitoring/static/js/1577.17bb1420.chunk.js monitoring/static/js/1640.5929573a.chunk.js monitoring/static/js/1640.5929573a.chunk.js monitoring/static/js/1640.5929573a.chunk.js.LICENSE.txt monitoring/static/js/1640.5929573a.chunk.js.LICENSE.txt - monitoring/static/js/165.a31f2a03.chunk.js monitoring/static/js/165.a31f2a03.chunk.js monitoring/static/js/1670.2dbca85f.chunk.js monitoring/static/js/1670.2dbca85f.chunk.js monitoring/static/js/1670.2dbca85f.chunk.js.LICENSE.txt monitoring/static/js/1670.2dbca85f.chunk.js.LICENSE.txt monitoring/static/js/1728.9b6329a2.chunk.js monitoring/static/js/1728.9b6329a2.chunk.js @@ -184,7 +185,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/2039.1eea423d.chunk.js monitoring/static/js/2039.1eea423d.chunk.js monitoring/static/js/2070.aeb8e3ff.chunk.js monitoring/static/js/2070.aeb8e3ff.chunk.js monitoring/static/js/2100.853fb83b.chunk.js monitoring/static/js/2100.853fb83b.chunk.js - monitoring/static/js/2136.b0ce42ab.chunk.js monitoring/static/js/2136.b0ce42ab.chunk.js monitoring/static/js/2216.b37b568b.chunk.js monitoring/static/js/2216.b37b568b.chunk.js monitoring/static/js/225.6ec6c3bc.chunk.js monitoring/static/js/225.6ec6c3bc.chunk.js monitoring/static/js/2262.df0b7687.chunk.js monitoring/static/js/2262.df0b7687.chunk.js @@ -205,22 +205,25 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/2651.3cdca23d.chunk.js monitoring/static/js/2651.3cdca23d.chunk.js monitoring/static/js/2670.6f0af2f6.chunk.js monitoring/static/js/2670.6f0af2f6.chunk.js monitoring/static/js/2734.0ddcbf8e.chunk.js monitoring/static/js/2734.0ddcbf8e.chunk.js - monitoring/static/js/2740.a9c16626.chunk.js monitoring/static/js/2740.a9c16626.chunk.js monitoring/static/js/2769.5a17f94c.chunk.js monitoring/static/js/2769.5a17f94c.chunk.js monitoring/static/js/2769.5a17f94c.chunk.js.LICENSE.txt monitoring/static/js/2769.5a17f94c.chunk.js.LICENSE.txt monitoring/static/js/2780.482ff693.chunk.js monitoring/static/js/2780.482ff693.chunk.js monitoring/static/js/2804.16f024df.chunk.js monitoring/static/js/2804.16f024df.chunk.js monitoring/static/js/2807.8fbe9929.chunk.js monitoring/static/js/2807.8fbe9929.chunk.js monitoring/static/js/2807.8fbe9929.chunk.js.LICENSE.txt monitoring/static/js/2807.8fbe9929.chunk.js.LICENSE.txt + monitoring/static/js/2840.9c4aae7d.chunk.js monitoring/static/js/2840.9c4aae7d.chunk.js monitoring/static/js/2845.5e07c0d9.chunk.js monitoring/static/js/2845.5e07c0d9.chunk.js monitoring/static/js/2869.a31f24d4.chunk.js monitoring/static/js/2869.a31f24d4.chunk.js monitoring/static/js/2869.a31f24d4.chunk.js.LICENSE.txt monitoring/static/js/2869.a31f24d4.chunk.js.LICENSE.txt monitoring/static/js/2871.7f64530d.chunk.js monitoring/static/js/2871.7f64530d.chunk.js + monitoring/static/js/2881.44a91214.chunk.js monitoring/static/js/2881.44a91214.chunk.js monitoring/static/js/2967.f31227d9.chunk.js monitoring/static/js/2967.f31227d9.chunk.js monitoring/static/js/2972.e9dd6d38.chunk.js monitoring/static/js/2972.e9dd6d38.chunk.js monitoring/static/js/2974.2083f7ab.chunk.js monitoring/static/js/2974.2083f7ab.chunk.js monitoring/static/js/3010.ba0b7e6c.chunk.js monitoring/static/js/3010.ba0b7e6c.chunk.js monitoring/static/js/3010.ba0b7e6c.chunk.js.LICENSE.txt monitoring/static/js/3010.ba0b7e6c.chunk.js.LICENSE.txt + monitoring/static/js/3017.cd53b447.chunk.js monitoring/static/js/3017.cd53b447.chunk.js + monitoring/static/js/3062.5a010e35.chunk.js monitoring/static/js/3062.5a010e35.chunk.js monitoring/static/js/3092.b2453934.chunk.js monitoring/static/js/3092.b2453934.chunk.js monitoring/static/js/3107.8a298574.chunk.js monitoring/static/js/3107.8a298574.chunk.js monitoring/static/js/3107.8a298574.chunk.js.LICENSE.txt monitoring/static/js/3107.8a298574.chunk.js.LICENSE.txt @@ -242,13 +245,13 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/3493.f1cd881c.chunk.js monitoring/static/js/3493.f1cd881c.chunk.js monitoring/static/js/3495.b1e292fa.chunk.js monitoring/static/js/3495.b1e292fa.chunk.js monitoring/static/js/3520.038b81f7.chunk.js monitoring/static/js/3520.038b81f7.chunk.js - monitoring/static/js/3556.12b7e853.chunk.js monitoring/static/js/3556.12b7e853.chunk.js monitoring/static/js/3607.c222c9e3.chunk.js monitoring/static/js/3607.c222c9e3.chunk.js monitoring/static/js/3643.05f9828c.chunk.js monitoring/static/js/3643.05f9828c.chunk.js monitoring/static/js/3768.ce22b76d.chunk.js monitoring/static/js/3768.ce22b76d.chunk.js monitoring/static/js/3828.d46cab67.chunk.js monitoring/static/js/3828.d46cab67.chunk.js monitoring/static/js/3830.f20a084f.chunk.js monitoring/static/js/3830.f20a084f.chunk.js monitoring/static/js/3883.fdb7b91a.chunk.js monitoring/static/js/3883.fdb7b91a.chunk.js + monitoring/static/js/3933.1914913e.chunk.js monitoring/static/js/3933.1914913e.chunk.js monitoring/static/js/3950.e7782b0d.chunk.js monitoring/static/js/3950.e7782b0d.chunk.js monitoring/static/js/3972.a75c55f6.chunk.js monitoring/static/js/3972.a75c55f6.chunk.js monitoring/static/js/3972.a75c55f6.chunk.js.LICENSE.txt monitoring/static/js/3972.a75c55f6.chunk.js.LICENSE.txt @@ -264,6 +267,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/4087.76cc8418.chunk.js.LICENSE.txt monitoring/static/js/4087.76cc8418.chunk.js.LICENSE.txt monitoring/static/js/4099.049bf0b8.chunk.js monitoring/static/js/4099.049bf0b8.chunk.js monitoring/static/js/4099.049bf0b8.chunk.js.LICENSE.txt monitoring/static/js/4099.049bf0b8.chunk.js.LICENSE.txt + monitoring/static/js/4135.066e893b.chunk.js monitoring/static/js/4135.066e893b.chunk.js monitoring/static/js/4175.84846314.chunk.js monitoring/static/js/4175.84846314.chunk.js monitoring/static/js/4222.a626a694.chunk.js monitoring/static/js/4222.a626a694.chunk.js monitoring/static/js/4222.a626a694.chunk.js.LICENSE.txt monitoring/static/js/4222.a626a694.chunk.js.LICENSE.txt @@ -273,6 +277,8 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/4254.b0fb883a.chunk.js monitoring/static/js/4254.b0fb883a.chunk.js monitoring/static/js/4320.2cdac293.chunk.js monitoring/static/js/4320.2cdac293.chunk.js monitoring/static/js/4324.9835557b.chunk.js monitoring/static/js/4324.9835557b.chunk.js + monitoring/static/js/433.81528b91.chunk.js monitoring/static/js/433.81528b91.chunk.js + monitoring/static/js/433.81528b91.chunk.js.LICENSE.txt monitoring/static/js/433.81528b91.chunk.js.LICENSE.txt monitoring/static/js/4408.a9538443.chunk.js monitoring/static/js/4408.a9538443.chunk.js monitoring/static/js/4413.5197a5f2.chunk.js monitoring/static/js/4413.5197a5f2.chunk.js monitoring/static/js/4442.d3e799fe.chunk.js monitoring/static/js/4442.d3e799fe.chunk.js @@ -329,9 +335,11 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/5748.47ca831b.chunk.js monitoring/static/js/5748.47ca831b.chunk.js monitoring/static/js/579.70d17f7b.chunk.js monitoring/static/js/579.70d17f7b.chunk.js monitoring/static/js/5821.26335bd8.chunk.js monitoring/static/js/5821.26335bd8.chunk.js + monitoring/static/js/5879.abdba9dc.chunk.js monitoring/static/js/5879.abdba9dc.chunk.js monitoring/static/js/592.33a5d27a.chunk.js monitoring/static/js/592.33a5d27a.chunk.js monitoring/static/js/5957.1584eca6.chunk.js monitoring/static/js/5957.1584eca6.chunk.js monitoring/static/js/5982.cae758ee.chunk.js monitoring/static/js/5982.cae758ee.chunk.js + monitoring/static/js/5986.f8e39c8a.chunk.js monitoring/static/js/5986.f8e39c8a.chunk.js monitoring/static/js/6010.c0760b69.chunk.js monitoring/static/js/6010.c0760b69.chunk.js monitoring/static/js/6010.c0760b69.chunk.js.LICENSE.txt monitoring/static/js/6010.c0760b69.chunk.js.LICENSE.txt monitoring/static/js/6062.2c4512c7.chunk.js monitoring/static/js/6062.2c4512c7.chunk.js @@ -347,9 +355,9 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6289.d27d9a38.chunk.js monitoring/static/js/6289.d27d9a38.chunk.js monitoring/static/js/6289.d27d9a38.chunk.js.LICENSE.txt monitoring/static/js/6289.d27d9a38.chunk.js.LICENSE.txt monitoring/static/js/6292.e0b2ffee.chunk.js monitoring/static/js/6292.e0b2ffee.chunk.js - monitoring/static/js/633.220bc737.chunk.js monitoring/static/js/633.220bc737.chunk.js + monitoring/static/js/633.e316425c.chunk.js monitoring/static/js/633.e316425c.chunk.js monitoring/static/js/6332.d1a078f2.chunk.js monitoring/static/js/6332.d1a078f2.chunk.js - monitoring/static/js/6395.9408fa97.chunk.js monitoring/static/js/6395.9408fa97.chunk.js + monitoring/static/js/6395.c9121a28.chunk.js monitoring/static/js/6395.c9121a28.chunk.js monitoring/static/js/6435.70056056.chunk.js monitoring/static/js/6435.70056056.chunk.js monitoring/static/js/6435.70056056.chunk.js.LICENSE.txt monitoring/static/js/6435.70056056.chunk.js.LICENSE.txt monitoring/static/js/6595.bc7ea867.chunk.js monitoring/static/js/6595.bc7ea867.chunk.js @@ -361,7 +369,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6679.fb8e5993.chunk.js monitoring/static/js/6679.fb8e5993.chunk.js monitoring/static/js/6698.31f9be10.chunk.js monitoring/static/js/6698.31f9be10.chunk.js monitoring/static/js/6698.31f9be10.chunk.js.LICENSE.txt monitoring/static/js/6698.31f9be10.chunk.js.LICENSE.txt - monitoring/static/js/6703.8678859a.chunk.js monitoring/static/js/6703.8678859a.chunk.js monitoring/static/js/6731.3a45d4e4.chunk.js monitoring/static/js/6731.3a45d4e4.chunk.js monitoring/static/js/6789.2651b83a.chunk.js monitoring/static/js/6789.2651b83a.chunk.js monitoring/static/js/682.bf02377d.chunk.js monitoring/static/js/682.bf02377d.chunk.js @@ -369,9 +376,9 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6845.d02f4e48.chunk.js monitoring/static/js/6845.d02f4e48.chunk.js monitoring/static/js/6866.de45efb9.chunk.js monitoring/static/js/6866.de45efb9.chunk.js monitoring/static/js/689.96ae92f1.chunk.js monitoring/static/js/689.96ae92f1.chunk.js + monitoring/static/js/6894.46e65325.chunk.js monitoring/static/js/6894.46e65325.chunk.js monitoring/static/js/6898.5ae6e6cc.chunk.js monitoring/static/js/6898.5ae6e6cc.chunk.js monitoring/static/js/6898.5ae6e6cc.chunk.js.LICENSE.txt monitoring/static/js/6898.5ae6e6cc.chunk.js.LICENSE.txt - monitoring/static/js/6906.a88e05fd.chunk.js monitoring/static/js/6906.a88e05fd.chunk.js monitoring/static/js/6914.3401c32a.chunk.js monitoring/static/js/6914.3401c32a.chunk.js monitoring/static/js/6914.3401c32a.chunk.js.LICENSE.txt monitoring/static/js/6914.3401c32a.chunk.js.LICENSE.txt monitoring/static/js/6927.a118705d.chunk.js monitoring/static/js/6927.a118705d.chunk.js @@ -380,7 +387,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6953.3813672a.chunk.js.LICENSE.txt monitoring/static/js/6953.3813672a.chunk.js.LICENSE.txt monitoring/static/js/7043.adbaef91.chunk.js monitoring/static/js/7043.adbaef91.chunk.js monitoring/static/js/7043.adbaef91.chunk.js.LICENSE.txt monitoring/static/js/7043.adbaef91.chunk.js.LICENSE.txt - monitoring/static/js/7054.89f72d9d.chunk.js monitoring/static/js/7054.89f72d9d.chunk.js + monitoring/static/js/7054.356e5176.chunk.js monitoring/static/js/7054.356e5176.chunk.js monitoring/static/js/7076.11720320.chunk.js monitoring/static/js/7076.11720320.chunk.js monitoring/static/js/7083.b229fb1f.chunk.js monitoring/static/js/7083.b229fb1f.chunk.js monitoring/static/js/7083.b229fb1f.chunk.js.LICENSE.txt monitoring/static/js/7083.b229fb1f.chunk.js.LICENSE.txt @@ -398,11 +405,9 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/7441.71fcae9c.chunk.js.LICENSE.txt monitoring/static/js/7441.71fcae9c.chunk.js.LICENSE.txt monitoring/static/js/7443.79bf7ff1.chunk.js monitoring/static/js/7443.79bf7ff1.chunk.js monitoring/static/js/7446.a1010c10.chunk.js monitoring/static/js/7446.a1010c10.chunk.js - monitoring/static/js/7474.a87e4163.chunk.js monitoring/static/js/7474.a87e4163.chunk.js monitoring/static/js/753.86744d44.chunk.js monitoring/static/js/753.86744d44.chunk.js monitoring/static/js/7628.839116b6.chunk.js monitoring/static/js/7628.839116b6.chunk.js monitoring/static/js/7628.839116b6.chunk.js.LICENSE.txt monitoring/static/js/7628.839116b6.chunk.js.LICENSE.txt - monitoring/static/js/7641.f4b4d38a.chunk.js monitoring/static/js/7641.f4b4d38a.chunk.js monitoring/static/js/7656.6c9df81e.chunk.js monitoring/static/js/7656.6c9df81e.chunk.js monitoring/static/js/766.1355c78d.chunk.js monitoring/static/js/766.1355c78d.chunk.js monitoring/static/js/766.1355c78d.chunk.js.LICENSE.txt monitoring/static/js/766.1355c78d.chunk.js.LICENSE.txt @@ -427,8 +432,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/8329.074348a0.chunk.js monitoring/static/js/8329.074348a0.chunk.js monitoring/static/js/8329.074348a0.chunk.js.LICENSE.txt monitoring/static/js/8329.074348a0.chunk.js.LICENSE.txt monitoring/static/js/8332.d2782086.chunk.js monitoring/static/js/8332.d2782086.chunk.js - monitoring/static/js/8337.5c096a37.chunk.js monitoring/static/js/8337.5c096a37.chunk.js - monitoring/static/js/8337.5c096a37.chunk.js.LICENSE.txt monitoring/static/js/8337.5c096a37.chunk.js.LICENSE.txt monitoring/static/js/835.95ce5d5d.chunk.js monitoring/static/js/835.95ce5d5d.chunk.js monitoring/static/js/835.95ce5d5d.chunk.js.LICENSE.txt monitoring/static/js/835.95ce5d5d.chunk.js.LICENSE.txt monitoring/static/js/8427.caeabc21.chunk.js monitoring/static/js/8427.caeabc21.chunk.js @@ -452,9 +455,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/8864.ed883bcc.chunk.js monitoring/static/js/8864.ed883bcc.chunk.js monitoring/static/js/8908.92f2bf17.chunk.js monitoring/static/js/8908.92f2bf17.chunk.js monitoring/static/js/8908.92f2bf17.chunk.js.LICENSE.txt monitoring/static/js/8908.92f2bf17.chunk.js.LICENSE.txt - monitoring/static/js/8918.4e9353d7.chunk.js monitoring/static/js/8918.4e9353d7.chunk.js - monitoring/static/js/8918.4e9353d7.chunk.js.LICENSE.txt monitoring/static/js/8918.4e9353d7.chunk.js.LICENSE.txt - monitoring/static/js/896.420e70ab.chunk.js monitoring/static/js/896.420e70ab.chunk.js + monitoring/static/js/896.178c5b16.chunk.js monitoring/static/js/896.178c5b16.chunk.js monitoring/static/js/9008.edcbe0c3.chunk.js monitoring/static/js/9008.edcbe0c3.chunk.js monitoring/static/js/9101.45d32e67.chunk.js monitoring/static/js/9101.45d32e67.chunk.js monitoring/static/js/9139.488e8581.chunk.js monitoring/static/js/9139.488e8581.chunk.js @@ -463,7 +464,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9396.bc133817.chunk.js monitoring/static/js/9396.bc133817.chunk.js monitoring/static/js/9396.bc133817.chunk.js.LICENSE.txt monitoring/static/js/9396.bc133817.chunk.js.LICENSE.txt monitoring/static/js/9433.2ff2430b.chunk.js monitoring/static/js/9433.2ff2430b.chunk.js - monitoring/static/js/949.6da34892.chunk.js monitoring/static/js/949.6da34892.chunk.js monitoring/static/js/9530.f9b76944.chunk.js monitoring/static/js/9530.f9b76944.chunk.js monitoring/static/js/9530.f9b76944.chunk.js.LICENSE.txt monitoring/static/js/9530.f9b76944.chunk.js.LICENSE.txt monitoring/static/js/9617.96c8507d.chunk.js monitoring/static/js/9617.96c8507d.chunk.js @@ -483,8 +483,8 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9937.5bd86e47.chunk.js monitoring/static/js/9937.5bd86e47.chunk.js monitoring/static/js/9963.a094a76b.chunk.js monitoring/static/js/9963.a094a76b.chunk.js monitoring/static/js/9974.cbfc7c5f.chunk.js monitoring/static/js/9974.cbfc7c5f.chunk.js - monitoring/static/js/main.2e9a830c.js monitoring/static/js/main.2e9a830c.js - monitoring/static/js/main.2e9a830c.js.LICENSE.txt monitoring/static/js/main.2e9a830c.js.LICENSE.txt + monitoring/static/js/main.29d0e3af.js monitoring/static/js/main.29d0e3af.js + monitoring/static/js/main.29d0e3af.js.LICENSE.txt monitoring/static/js/main.29d0e3af.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 |